Commit 14429e90074cbd54b30456674270965237f82403
1 parent
a348305b1b
Exists in
master
files from wrapper-demo
Showing
10 changed files
with
157 additions
and
46 deletions
Show diff stats
index.html
... | ... | @@ -42,32 +42,24 @@ |
42 | 42 | <script src="./node_modules/foca-hoja-ruta/dist/foca-hoja-ruta.min.js"></script> |
43 | 43 | <script src="./node_modules/foca-login/dist/foca-login.min.js"></script> |
44 | 44 | <script src="./node_modules/foca-modal/dist/foca-modal.min.js"></script> |
45 | - <script src="./node_modules/foca-modal-banco/dist/foca-modal-banco.min.js"></script> | |
45 | + | |
46 | 46 | <script src="./node_modules/foca-modal-busqueda-productos/dist/foca-busqueda-productos.min.js"></script> |
47 | 47 | <script src="./node_modules/foca-modal-cheque/dist/foca-modal-cheque.min.js"></script> |
48 | - <script src="./node_modules/foca-modal-chofer/dist/foca-modal-chofer.min.js"></script> | |
49 | - <script src="./node_modules/foca-modal-cobrador/dist/foca-modal-cobradores.min.js"></script> | |
50 | 48 | <script src="./node_modules/foca-modal-cobranza/dist/foca-modal-cobranza.min.js"></script> |
51 | 49 | <script src="./node_modules/foca-modal-cotizacion/dist/foca-modal-cotizacion.min.js"></script> |
52 | 50 | <script src="./node_modules/foca-modal-detalle-hoja-ruta/dist/foca-modal-detalle-hoja-ruta.min.js"></script> |
51 | + <script src="./node_modules/foca-modal-detalles/dist/foca-modal-detalles.min.js"></script> | |
53 | 52 | <script src="./node_modules/foca-modal-domicilio/dist/foca-modal-domicilios.min.js"></script> |
54 | 53 | <script src="./node_modules/foca-modal-efectivo/dist/foca-modal-efectivo.min.js"></script> |
55 | 54 | <script src="./node_modules/foca-modal-factura/dist/foca-modal-factura.min.js"></script> |
56 | 55 | <script src="./node_modules/foca-modal-factura-detalle/dist/foca-modal-factura-detalle.min.js"></script> |
57 | 56 | <script src="./node_modules/foca-modal-flete/dist/foca-modal-flete.min.js"></script> |
58 | 57 | <script src="./node_modules/foca-modal-lista-precio/dist/foca-modal-lista-precio.min.js"></script> |
59 | - <script src="./node_modules/foca-modal-localidad/dist/foca-modal-localidad.min.js"></script> | |
60 | 58 | <script src="./node_modules/foca-modal-login/dist/foca-modal-login.min.js"></script> |
61 | - <script src="./node_modules/foca-modal-moneda/dist/foca-modal-moneda.min.js"></script> | |
62 | 59 | <script src="./node_modules/foca-modal-nota-pedido/dist/foca-modal-nota-pedido.min.js"></script> |
63 | 60 | <script src="./node_modules/foca-modal-precio-condiciones/dist/foca-modal-precio-condiciones.min.js"></script> |
64 | - <script src="./node_modules/foca-modal-proveedor/dist/foca-modal-proveedor.min.js"></script> | |
65 | - <script src="./node_modules/foca-modal-provincia/dist/foca-modal-provincia.min.js"></script> | |
66 | 61 | <script src="./node_modules/foca-modal-punto-descarga/dist/foca-modal-punto-descarga.min.js"></script> |
67 | 62 | <script src="./node_modules/foca-modal-tarifa-flete/dist/foca-modal-tarifa-flete.min.js"></script> |
68 | - <script src="./node_modules/foca-modal-transportista/dist/foca-modal-transportista.min.js"></script> | |
69 | - <script src="./node_modules/foca-modal-unidad-medida/dist/foca-modal-unidad-medida.min.js"></script> | |
70 | - <script src="./node_modules/foca-modal-vendedores/dist/foca-modal-vendedores.min.js"></script> | |
71 | 63 | <script src="./node_modules/foca-nombre-empresa/dist/foca-nombre-empresa.min.js"></script> |
72 | 64 | <script src="./node_modules/foca-seguimiento/dist/foca-seguimiento.min.js"></script> |
73 | 65 | <script src="./node_modules/foca-sqlite/dist/foca-sqlite.min.js"></script> |
package.json
... | ... | @@ -20,15 +20,15 @@ |
20 | 20 | "author": "Foca Software", |
21 | 21 | "license": "ISC", |
22 | 22 | "dependencies": { |
23 | - "angular": "^1.7.5", | |
23 | + "angular": "^1.7.7", | |
24 | 24 | "angular-chart.js": "1.1.1", |
25 | - "angular-cookies": "^1.7.5", | |
26 | - "angular-i18n": "^1.7.5", | |
25 | + "angular-cookies": "^1.7.7", | |
26 | + "angular-i18n": "^1.7.7", | |
27 | 27 | "angular-ladda": "^0.4.3", |
28 | - "angular-route": "^1.7.5", | |
29 | - "angular-sanitize": "^1.7.5", | |
28 | + "angular-route": "^1.7.7", | |
29 | + "angular-sanitize": "^1.7.7", | |
30 | 30 | "angular-ui-swiper": "^2.3.8", |
31 | - "bootstrap": "^4.1.3", | |
31 | + "bootstrap": "^4.3.1", | |
32 | 32 | "chart.js": "2.7.3", |
33 | 33 | "foca-abm-chofer": "git+http://git.focasoftware.com/npm/foca-abm-chofer.git", |
34 | 34 | "foca-abm-plazo-pago": "git+http://git.focasoftware.com/npm/foca-abm-plazo-pago.git", |
... | ... | @@ -64,6 +64,7 @@ |
64 | 64 | "foca-modal-cobranza": "git+http://git.focasoftware.com/npm/foca-modal-cobranza.git", |
65 | 65 | "foca-modal-cotizacion": "git+http://git.focasoftware.com/npm/foca-modal-cotizacion.git", |
66 | 66 | "foca-modal-detalle-hoja-ruta": "git+http://git.focasoftware.com/npm/foca-modal-detalle-hoja-ruta.git", |
67 | + "foca-modal-detalles": "git+http://git.focasoftware.com/npm/foca-modal-detalles.git", | |
67 | 68 | "foca-modal-domicilio": "git+http://git.focasoftware.com/npm/foca-modal-domicilio.git", |
68 | 69 | "foca-modal-efectivo": "git+http://git.focasoftware.com/npm/foca-modal-efectivo.git", |
69 | 70 | "foca-modal-factura": "git+http://git.focasoftware.com/npm/foca-modal-factura.git", |
... | ... | @@ -100,7 +101,7 @@ |
100 | 101 | "ngstorage": "^0.3.11", |
101 | 102 | "node-sass": "^4.10.0", |
102 | 103 | "uglify": "^0.1.5", |
103 | - "ui-bootstrap4": "^3.0.5" | |
104 | + "ui-bootstrap4": "^3.0.6" | |
104 | 105 | }, |
105 | 106 | "devDependencies": { |
106 | 107 | "gulp": "3.9.1", |
... | ... | @@ -114,7 +115,7 @@ |
114 | 115 | "gulp-uglify": "^1.0.4", |
115 | 116 | "gulp-watch": "^5.0.1", |
116 | 117 | "jasmine-core": "^3.2.1", |
117 | - "jshint": "^2.9.6", | |
118 | + "jshint": "^2.10.1", | |
118 | 119 | "pre-commit": "^1.2.2", |
119 | 120 | "pump": "^3.0.0" |
120 | 121 | } |
src/js/app.js
... | ... | @@ -4,11 +4,21 @@ angular.module('appWrapperDemo', [ |
4 | 4 | 'cordovaGeolocationModule', |
5 | 5 | 'ngCookies', |
6 | 6 | 'ngRoute', |
7 | + 'ngSanitize', | |
7 | 8 | 'ngStorage', |
9 | + 'onScreenKeyboard', | |
8 | 10 | 'ui.bootstrap', |
9 | 11 | 'ui.swiper', |
12 | + 'ui.grid', | |
13 | + 'ui.grid.exporter', | |
10 | 14 | |
11 | 15 | // MODULOS FOCA |
16 | + 'focaAbmPreciosCondiciones', | |
17 | + 'focaAbmVehiculo', | |
18 | + 'focaAbmChofer', | |
19 | + 'focaAbmVendedorCobrador', | |
20 | + 'focaActivarHojaRuta', | |
21 | + 'focaAdminSeguimiento', | |
12 | 22 | 'focaBotoneraFacturador', |
13 | 23 | 'focaBotoneraLateral', |
14 | 24 | 'focaBotoneraPrincipal', |
... | ... | @@ -16,39 +26,43 @@ angular.module('appWrapperDemo', [ |
16 | 26 | 'focaBusquedaProductos', |
17 | 27 | 'focaCabeceraFacturador', |
18 | 28 | 'focaConfiguracion', |
29 | + 'focaConfigurarTerminal', | |
19 | 30 | 'focaCrearCobranza', |
31 | + 'focaCrearHojaRuta', | |
32 | + 'focaCrearLogin', | |
20 | 33 | 'focaCrearNotaPedido', |
34 | + 'focaCrearRemito', | |
21 | 35 | 'focaDirectivas', |
36 | + 'focaEstadoCisternas', | |
22 | 37 | 'focaFiltros', |
23 | 38 | 'focaHojaRuta', |
39 | + 'focaInformes', | |
24 | 40 | 'focaLogin', |
25 | 41 | 'focaModal', |
26 | - 'focaModalBanco', | |
27 | 42 | 'focaModalCheque', |
28 | - 'focaModalChofer', | |
29 | - 'focaModalCobradores', | |
30 | 43 | 'focaModalCobranza', |
31 | 44 | 'focaModalCotizacion', |
45 | + 'focaModalDetalleCisternas', | |
32 | 46 | 'focaModalDetalleHojaRuta', |
47 | + 'focaModalDetalles', | |
33 | 48 | 'focaModalDomicilio', |
34 | 49 | 'focaModalEfectivo', |
35 | 50 | 'focaModalFactura', |
36 | 51 | 'focaModalFacturaDetalle', |
37 | 52 | 'focaModalFlete', |
53 | + 'focaModalGraficoCisternas', | |
54 | + 'focaModalInforme', | |
38 | 55 | 'focaModalListaPrecio', |
39 | - 'focaModalLocalidad', | |
56 | + 'focaModalLocalizar', | |
40 | 57 | 'focaModalLogin', |
41 | - 'focaModalMoneda', | |
42 | 58 | 'focaModalNotaPedido', |
43 | 59 | 'focaModalPrecioCondicion', |
44 | - 'focaModalProveedor', | |
45 | - 'focaModalProvincia', | |
46 | 60 | 'focaModalPuntoDescarga', |
61 | + 'focaModalRemito', | |
47 | 62 | 'focaModalTarifaFlete', |
48 | - 'focaModalTransportista', | |
49 | 63 | 'focaModalUnidadMedida', |
50 | - 'focaModalVendedores', | |
51 | 64 | 'focaNombreEmpresa', |
52 | 65 | 'focaSeguimiento', |
53 | - 'focaSqlite' | |
66 | + 'focaTeclado', | |
67 | + 'focaLogisticaPedidoRuta' | |
54 | 68 | ]); |
src/js/controller.js
... | ... | @@ -3,11 +3,7 @@ angular.module('appWrapperDemo') |
3 | 3 | '$scope', |
4 | 4 | '$rootScope', |
5 | 5 | '$timeout', |
6 | - 'focaSqliteService', | |
7 | - function($scope, $rootScope, $timeout, focaSqliteService) { | |
8 | - document.addEventListener('deviceready', function() { | |
9 | - focaSqliteService.openDataBase(); | |
10 | - }); | |
6 | + function($scope, $rootScope, $timeout) { | |
11 | 7 | $scope.usarTeclado = false; |
12 | 8 | $rootScope.$broadcast('usarTeclado', false); |
13 | 9 | $scope.mostrarTeclado = false; |
... | ... | @@ -23,7 +19,7 @@ angular.module('appWrapperDemo') |
23 | 19 | $rootScope.$broadcast('usarTeclado', true); |
24 | 20 | }; |
25 | 21 | |
26 | - $rootScope.$on('focus', function(event) { | |
22 | + $rootScope.$on('focus', function() { | |
27 | 23 | if(!$scope.usarTeclado) { |
28 | 24 | return; |
29 | 25 | } |
... | ... | @@ -33,7 +29,7 @@ angular.module('appWrapperDemo') |
33 | 29 | $scope.$apply(); |
34 | 30 | } |
35 | 31 | }); |
36 | - $rootScope.$on('blur', function(event) { | |
32 | + $rootScope.$on('blur', function() { | |
37 | 33 | $scope.timeout = $timeout(function() { |
38 | 34 | $scope.mostrarTeclado = false; |
39 | 35 | if(!$scope.$$phase) { |
src/sass/_botonera-lateral.scss
... | ... | @@ -28,6 +28,9 @@ |
28 | 28 | background-color: #17d236 !important; |
29 | 29 | color: #FFF !important; |
30 | 30 | } |
31 | + div[ladda]{ | |
32 | + background-color: #DDD; | |
33 | + } | |
31 | 34 | |
32 | 35 | button, .btn-group-toggle{ |
33 | 36 | background-color: #DDD; |
... | ... | @@ -63,4 +66,25 @@ |
63 | 66 | display: none; |
64 | 67 | } |
65 | 68 | } |
69 | + | |
70 | + .guardado{ | |
71 | + animation:guardado 4s 1; | |
72 | + -webkit-animation:guardado 4s 1; /* Safari and Chrome */ | |
73 | + } | |
74 | + | |
75 | + @keyframes guardado | |
76 | + { | |
77 | + 0% {background:#DDD; color: #000;} | |
78 | + 25% {background:#28a745; color: #FFF;} | |
79 | + 75% {background:#28a745; color: #FFF;} | |
80 | + 100% {background:#DDD; color: #000;} | |
81 | + } | |
82 | + | |
83 | + @-webkit-keyframes guardado /* Safari and Chrome */ | |
84 | + { | |
85 | + 0% {background:#DDD; color: #000;} | |
86 | + 25% {background:#28a745; color: #FFF;} | |
87 | + 75% {background:#28a745; color: #FFF;} | |
88 | + 100% {background:#DDD; color: #000;} | |
89 | + } | |
66 | 90 | } |
src/sass/_botonera-secundaria.scss
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | border-radius: 5px; |
4 | 4 | overflow: hidden; |
5 | 5 | } |
6 | - .btn { | |
6 | + .btn-xs { | |
7 | 7 | display: grid; |
8 | 8 | border-width: 3px !important; |
9 | 9 | border-radius: .7rem !important; |
... | ... | @@ -29,13 +29,13 @@ |
29 | 29 | } |
30 | 30 | } |
31 | 31 | @media(max-width: 992px){ |
32 | - .btn{ | |
32 | + .btn-xs{ | |
33 | 33 | font-weight: 700; |
34 | 34 | } |
35 | 35 | } |
36 | 36 | @media(min-width: 1200px){ |
37 | - .btn{ | |
38 | - min-height: 85px; | |
37 | + .btn-xs{ | |
38 | + height: 85px !important; | |
39 | 39 | } |
40 | 40 | .foca-facturador-px{ |
41 | 41 | padding-left: 3rem; |
... | ... | @@ -44,14 +44,26 @@ |
44 | 44 | } |
45 | 45 | |
46 | 46 | @media(min-width: 992px) and (max-width: 1200px){ |
47 | - .btn{ | |
48 | - min-height: 73px; | |
47 | + .btn-xs{ | |
48 | + height: 73px !important; | |
49 | 49 | } |
50 | 50 | } |
51 | 51 | |
52 | 52 | @media(min-width: 768px) and (max-width: 992px){ |
53 | - .btn{ | |
54 | - min-height: 62px; | |
53 | + .btn-xs{ | |
54 | + height: 62px !important; | |
55 | + } | |
56 | + } | |
57 | + | |
58 | + @media(min-width: 576px) and (max-width: 768px){ | |
59 | + .btn-xs{ | |
60 | + max-height: 51px; | |
61 | + } | |
62 | + } | |
63 | + | |
64 | + @media(max-width: 576px) { | |
65 | + .btn-xs{ | |
66 | + max-height: 13vw; | |
55 | 67 | } |
56 | 68 | } |
57 | 69 |
src/sass/_grid.scss
... | ... | @@ -0,0 +1,32 @@ |
1 | +.gridInforme { | |
2 | + width: 100%; | |
3 | + height: 350px; | |
4 | +} | |
5 | +.ui-grid-header-cell-wrapper{ | |
6 | + height: 40px !important; | |
7 | +} | |
8 | + | |
9 | + | |
10 | +.yellow { | |
11 | + max-width: unset !important; | |
12 | + >div { | |
13 | + background: yellow !important; | |
14 | + font-weight: bold; | |
15 | + } | |
16 | +} | |
17 | + | |
18 | +.red { | |
19 | + max-width: unset !important; | |
20 | + >div { | |
21 | + color: red; | |
22 | + font-weight: bold; | |
23 | + } | |
24 | +} | |
25 | + | |
26 | +.green { | |
27 | + max-width: unset !important; | |
28 | + >div { | |
29 | + color: green; | |
30 | + font-weight: bold; | |
31 | + } | |
32 | +} |
src/sass/_logistica-pedido-ruta.scss
src/sass/_paginador-abm.scss
... | ... | @@ -0,0 +1,18 @@ |
1 | +.paginador-abm { | |
2 | + margin-top: 1rem; | |
3 | + li { | |
4 | + &.active{ | |
5 | + > a { | |
6 | + background: $primary-color !important; | |
7 | + color: #FFF !important; | |
8 | + } | |
9 | + } | |
10 | + | |
11 | + > a { | |
12 | + background-color: transparent !important; | |
13 | + border-color: #67615e !important; | |
14 | + color: #000 !important; | |
15 | + | |
16 | + } | |
17 | + } | |
18 | +} |
src/sass/general.scss
... | ... | @@ -17,6 +17,8 @@ $primary-color: #e09125; |
17 | 17 | @import 'foca-crear'; |
18 | 18 | @import 'logistica-pedido-ruta'; |
19 | 19 | @import 'tabs'; |
20 | +@import 'grid'; | |
21 | +@import 'paginador-abm'; | |
20 | 22 | |
21 | 23 | |
22 | 24 | //OCULTA FLECHAS INPUT NUMBER |
... | ... | @@ -49,6 +51,26 @@ input::-webkit-inner-spin-button { |
49 | 51 | z-index: 9999; |
50 | 52 | } |
51 | 53 | |
52 | -.foca-overflow-hidden{ | |
53 | - overflow: hidden; | |
54 | +.uib-daypicker{ | |
55 | + outline: 0 | |
56 | +} | |
57 | + | |
58 | +.right-0{ | |
59 | + right: 0; | |
60 | +} | |
61 | + | |
62 | +.tabla-factura{ | |
63 | + word-wrap: break-word; | |
64 | + table-layout: fixed; | |
65 | +} | |
66 | + | |
67 | +.ladda-w-100 .ladda-label{ | |
68 | + width: 100% | |
69 | +} | |
70 | + | |
71 | +.btn-delete-image{ | |
72 | + height: 25px; | |
73 | + width: 25px; | |
74 | + top: -10px; | |
75 | + right: 0; | |
54 | 76 | } |