Commit 5a9f5eaed42264d0ac54609d8f735aa68a6654c6
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request Wrappers/wrapper-demo!11
Showing
6 changed files
Show diff stats
index.html
... | ... | @@ -16,7 +16,9 @@ |
16 | 16 | <script src="./node_modules/angular-route/angular-route.min.js"></script> |
17 | 17 | <script src="./node_modules/angular-cookies/angular-cookies.min.js"></script> |
18 | 18 | <script src="./node_modules/ui-bootstrap4/dist/ui-bootstrap-tpls.js"></script> |
19 | - | |
19 | + <script src="./node_modules/angular-on-screen-keyboard/dist/angular-on-screen-keyboard.min.js"></script> | |
20 | + <script src="./node_modules/angular-sanitize/angular-sanitize.min.js"></script> | |
21 | + | |
20 | 22 | <script src="./node_modules/foca-directivas/dist/foca-directivas.min.js"></script> |
21 | 23 | <script src="./node_modules/foca-botonera-principal/dist/foca-botonera-principal.min.js"></script> |
22 | 24 | <script src="./node_modules/foca-turno-apertura/dist/foca-turno-apertura.min.js"></script> |
... | ... | @@ -33,7 +35,8 @@ |
33 | 35 | <script src="./node_modules/foca-modal-precio-condiciones/dist/foca-modal-precio-condiciones.min.js"></script> |
34 | 36 | <script src="./node_modules/foca-modal-vendedores/dist/foca-modal-vendedores.min.js"></script> |
35 | 37 | <script src="./node_modules/foca-busqueda-cliente/dist/foca-busqueda-cliente.min.js"></script> |
36 | - | |
38 | + <script src="./node_modules/foca-teclado/dist/foca-teclado.min.js"></script> | |
39 | + | |
37 | 40 | <!-- BUILD --> |
38 | 41 | <script src="./src/js/app.js"></script> |
39 | 42 | <script src="./src/etc/develop.js"></script> |
... | ... | @@ -45,5 +48,13 @@ |
45 | 48 | </style> |
46 | 49 | <botonera-horizontal></botonera-horizontal> |
47 | 50 | <div ng-view class="container contenedor"></div> |
51 | + <div class="container contenedor-teclado"> | |
52 | + <div class="btn-group-toggle" data-toggle="buttons" ng-click="mostrarTeclado = !mostrarTeclado"> | |
53 | + <label class="btn btn-secondary active" ng-class="{'teclado-activar': mostrarTeclado}"> | |
54 | + <input type="checkbox" autocomplete="off"><i class="fa fa-keyboard-o fa-3x" aria-hidden="true"></i> | |
55 | + </label> | |
56 | + </div> | |
57 | + <foca-teclado ng-show="mostrarTeclado" alfanumeric="true" numeric="true"></foca-teclado> | |
58 | + </div> | |
48 | 59 | </body> |
49 | 60 | </html> |
package.json
... | ... | @@ -22,7 +22,9 @@ |
22 | 22 | "dependencies": { |
23 | 23 | "angular": "^1.7.5", |
24 | 24 | "angular-cookies": "^1.7.5", |
25 | + "angular-on-screen-keyboard": "git+https://github.com/ericf97/angular-on-screen-keyboard.git", | |
25 | 26 | "angular-route": "^1.7.5", |
27 | + "angular-sanitize": "^1.7.5", | |
26 | 28 | "bootstrap": "^4.1.3", |
27 | 29 | "foca-abm-plazo-pago": "git+https://debo.suite.repo/modulos-npm/foca-abm-plazo-pago.git", |
28 | 30 | "foca-abm-precios-condiciones": "git+https://debo.suite.repo/modulos-npm/foca-abm-precios-condiciones.git", |
... | ... | @@ -39,6 +41,7 @@ |
39 | 41 | "foca-modal-petroleras": "git+https://debo.suite.repo/modulos-npm/foca-modal-petroleras.git", |
40 | 42 | "foca-modal-precio-condiciones": "git+https://debo.suite.repo/modulos-npm/foca-modal-precio-condiciones.git", |
41 | 43 | "foca-modal-vendedores": "git+https://debo.suite.repo/modulos-npm/foca-modal-vendedores.git", |
44 | + "foca-teclado": "git+https://debo.suite.repo/modulos-npm/foca-teclado.git", | |
42 | 45 | "foca-turno-apertura": "git+https://debo.suite.repo/modulos-npm/foca-turno-apertura.git", |
43 | 46 | "font-awesome": "^4.7.0", |
44 | 47 | "gulp-angular-templatecache": "^2.2.1", |
src/js/app.js
src/sass/_contenedor.scss
src/sass/_teclado.scss
... | ... | @@ -0,0 +1,68 @@ |
1 | + | |
2 | +.keyboard { | |
3 | + -webkit-touch-callout: none; | |
4 | + -webkit-user-select: none; | |
5 | + -khtml-user-select: none; | |
6 | + -moz-user-select: none; | |
7 | + -ms-user-select: none; | |
8 | + user-select: none; | |
9 | + width: 70%; | |
10 | + height: 60%; | |
11 | + margin: auto; | |
12 | + margin-top: -6%; | |
13 | + table { | |
14 | + border-spacing: 10px; | |
15 | + border-collapse: separate; | |
16 | + z-index: 100000; | |
17 | + td { | |
18 | + touch-action: none; | |
19 | + } | |
20 | + } | |
21 | + | |
22 | + .letter { | |
23 | + background-color: #bdbdbd; | |
24 | + box-shadow: 2px 2px 3px #555555; | |
25 | + width: 47px; | |
26 | + height: 50px; | |
27 | + text-align: center; | |
28 | + font-family: "arial"; | |
29 | + cursor: pointer; | |
30 | + color: #000; | |
31 | + font-size: 22px; | |
32 | + | |
33 | + &:hover { | |
34 | + background-color: #fafafa; | |
35 | + } | |
36 | + &:active { | |
37 | + background-color: #999; | |
38 | + color: #fff; | |
39 | + } | |
40 | + } | |
41 | + .number { | |
42 | + background-color: #bdbdbd; | |
43 | + box-shadow: 2px 2px 3px #555555; | |
44 | + width: 47px; | |
45 | + height: 35px; | |
46 | + text-align: center; | |
47 | + font-family: "arial"; | |
48 | + cursor: pointer; | |
49 | + color: #000; | |
50 | + font-size: 22px; | |
51 | + | |
52 | + &:hover { | |
53 | + background-color: #fafafa; | |
54 | + } | |
55 | + &:active { | |
56 | + background-color: #999; | |
57 | + color: #fff; | |
58 | + } | |
59 | + } | |
60 | + | |
61 | + .margin { | |
62 | + width: 40px; | |
63 | + height: 50px; | |
64 | + } | |
65 | +} | |
66 | +.teclado-activar { | |
67 | + background-color: #17d236; | |
68 | +} |
src/sass/general.scss