Commit fa68786aaa681123fbb56b3e08b23e4f12d5c1a0
1 parent
7bd376d635
Exists in
master
and in
1 other branch
texto boton eliminar
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
package.json
1 | { | 1 | { |
2 | "name": "foca-teclado", | 2 | "name": "foca-teclado", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "Componente teclado", | 4 | "description": "Componente teclado", |
5 | "main": "dist/foca-teclado.min.js", | 5 | "main": "dist/foca-teclado.min.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | "compile": "gulp uglify", | 8 | "compile": "gulp uglify", |
9 | "gulp-pre-commit": "gulp pre-commit", | 9 | "gulp-pre-commit": "gulp pre-commit", |
10 | "postinstall": "npm run compile && gulp clean-post-install", | 10 | "postinstall": "npm run compile && gulp clean-post-install", |
11 | "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-clean gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es jasmine-core jquery jshint pre-commit pump && npm install angular-sanitize git+https://github.com/ericf97/angular-on-screen-keyboard.git" | 11 | "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-clean gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es gulp-sass jasmine-core jquery jshint pre-commit pump && npm install angular-sanitize git+https://github.com/ericf97/angular-on-screen-keyboard.git" |
12 | }, | 12 | }, |
13 | "pre-commit": [ | 13 | "pre-commit": [ |
14 | "gulp-pre-commit" | 14 | "gulp-pre-commit" |
15 | ], | 15 | ], |
16 | "repository": { | 16 | "repository": { |
17 | "type": "git", | 17 | "type": "git", |
18 | "url": "https://debo.suite.repo/modulos-npm/foca-teclado.git" | 18 | "url": "https://debo.suite.repo/modulos-npm/foca-teclado.git" |
19 | }, | 19 | }, |
20 | "author": "Foca Software", | 20 | "author": "Foca Software", |
21 | "license": "ISC", | 21 | "license": "ISC", |
22 | "peerDependencies": { | 22 | "peerDependencies": { |
23 | "angular": "^1.7.x", | 23 | "angular": "^1.7.x", |
24 | "bootstrap": "^4.1.x", | 24 | "bootstrap": "^4.1.x", |
25 | "jquery": "^3.3.x", | 25 | "jquery": "^3.3.x", |
26 | "font-awesome": "^4.7.x", | 26 | "font-awesome": "^4.7.x", |
27 | "gulp": "^3.9.x", | 27 | "gulp": "^3.9.x", |
28 | "gulp-concat": "2.6.x", | 28 | "gulp-concat": "2.6.x", |
29 | "gulp-jshint": "^2.1.x", | 29 | "gulp-jshint": "^2.1.x", |
30 | "gulp-rename": "^1.4.x", | 30 | "gulp-rename": "^1.4.x", |
31 | "gulp-replace": "^1.0.x", | 31 | "gulp-replace": "^1.0.x", |
32 | "gulp-uglify-es": "^1.0.x", | 32 | "gulp-uglify-es": "^1.0.x", |
33 | "jshint": "^2.9.x", | 33 | "jshint": "^2.9.x", |
34 | "pump": "^3.0.x" | 34 | "pump": "^3.0.x" |
35 | }, | 35 | }, |
36 | "devDependencies": { | 36 | "devDependencies": { |
37 | "angular": "1.7.5", | 37 | "angular": "1.7.5", |
38 | "angular-route": "^1.7.5", | 38 | "angular-route": "^1.7.5", |
39 | "angular-sanitize": "1.7.5", | 39 | "angular-sanitize": "1.7.5", |
40 | "bootstrap": "4.1.3", | 40 | "bootstrap": "4.1.3", |
41 | "font-awesome": "4.7.0", | 41 | "font-awesome": "4.7.0", |
42 | "gulp": "3.9.1", | 42 | "gulp": "3.9.1", |
43 | "gulp-angular-templatecache": "2.2.5", | 43 | "gulp-angular-templatecache": "2.2.5", |
44 | "gulp-clean": "0.4.0", | 44 | "gulp-clean": "0.4.0", |
45 | "gulp-concat": "2.6.1", | 45 | "gulp-concat": "2.6.1", |
46 | "gulp-connect": "5.6.1", | 46 | "gulp-connect": "5.6.1", |
47 | "gulp-htmlmin": "5.0.1", | 47 | "gulp-htmlmin": "5.0.1", |
48 | "gulp-jshint": "2.1.0", | 48 | "gulp-jshint": "2.1.0", |
49 | "gulp-rename": "1.4.0", | 49 | "gulp-rename": "1.4.0", |
50 | "gulp-replace": "1.0.0", | 50 | "gulp-replace": "1.0.0", |
51 | "gulp-sass": "4.0.2", | 51 | "gulp-sass": "4.0.2", |
52 | "gulp-uglify-es": "1.0.4", | 52 | "gulp-uglify-es": "1.0.4", |
53 | "jasmine-core": "3.3.0", | 53 | "jasmine-core": "3.3.0", |
54 | "jquery": "3.3.1", | 54 | "jquery": "3.3.1", |
55 | "jshint": "2.9.6", | 55 | "jshint": "2.9.6", |
56 | "pre-commit": "1.2.2", | 56 | "pre-commit": "1.2.2", |
57 | "pump": "3.0.0" | 57 | "pump": "3.0.0" |
58 | }, | 58 | }, |
59 | "dependencies": { | 59 | "dependencies": { |
60 | "angular-on-screen-keyboard": "git+https://github.com/ericf97/angular-on-screen-keyboard.git" | 60 | "angular-on-screen-keyboard": "git+https://github.com/ericf97/angular-on-screen-keyboard.git" |
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 |
src/js/controller.js
1 | angular.module('focaTeclado') | 1 | angular.module('focaTeclado') |
2 | .controller('focaTecladoController', [ | 2 | .controller('focaTecladoController', [ |
3 | '$scope', | 3 | '$scope', |
4 | function($scope) { | 4 | function($scope) { |
5 | $scope.rows = {}; | 5 | $scope.rows = {}; |
6 | $scope.rows.alfa = [ | 6 | $scope.rows.alfa = [ |
7 | ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'], | 7 | ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'], |
8 | ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ñ'], | 8 | ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ñ'], |
9 | ['z', 'x', 'c', 'v', 'b', 'n', 'm', | 9 | ['z', 'x', 'c', 'v', 'b', 'n', 'm', |
10 | {type: 'erase', colspan: 3, text: 'spr'} | 10 | {type: 'erase', colspan: 3, text: 'Del'} |
11 | ], | 11 | ], |
12 | [ | 12 | [ |
13 | {type: 'margin', colspan: 1}, | 13 | {type: 'margin', colspan: 1}, |
14 | {type: 'button', colspan: 6, text: ' '}, | 14 | {type: 'button', colspan: 6, text: ' '}, |
15 | {type: 'enter', colspan: 3, text: 'Enter'} | 15 | {type: 'enter', colspan: 3, text: 'Enter'} |
16 | ] | 16 | ] |
17 | ]; | 17 | ]; |
18 | 18 | ||
19 | $scope.rows.numeric = [ | 19 | $scope.rows.numeric = [ |
20 | [ | 20 | [ |
21 | {type: 'number', text: '7'}, | 21 | {type: 'number', text: '7'}, |
22 | {type: 'number', text: '8'}, | 22 | {type: 'number', text: '8'}, |
23 | {type: 'number', text: '9'} | 23 | {type: 'number', text: '9'} |
24 | ], | 24 | ], |
25 | [ | 25 | [ |
26 | {type: 'number', text: '4'}, | 26 | {type: 'number', text: '4'}, |
27 | {type: 'number', text: '5'}, | 27 | {type: 'number', text: '5'}, |
28 | {type: 'number', text: '6'} | 28 | {type: 'number', text: '6'} |
29 | ], | 29 | ], |
30 | [ | 30 | [ |
31 | {type: 'number', text: '1'}, | 31 | {type: 'number', text: '1'}, |
32 | {type: 'number', text: '2'}, | 32 | {type: 'number', text: '2'}, |
33 | {type: 'number', text: '3'} | 33 | {type: 'number', text: '3'} |
34 | ], | 34 | ], |
35 | [ | 35 | [ |
36 | {type: 'number', text: '0', colspan: 2}, | 36 | {type: 'number', text: '0', colspan: 2}, |
37 | {type: 'number', text: '/'} | 37 | {type: 'number', text: '/'} |
38 | ], | 38 | ], |
39 | [ | 39 | [ |
40 | {type: 'number', text: '.'}, | 40 | {type: 'number', text: '.'}, |
41 | {type: 'number', text: '*'}, | 41 | {type: 'number', text: '*'}, |
42 | {type: 'number', text: '+'} | 42 | {type: 'number', text: '+'} |
43 | ] | 43 | ] |
44 | ]; | 44 | ]; |
45 | }]); | 45 | }]); |
46 | 46 |