Commit e55433b54df0fc50cab36d831dcac1414eee1cb0
Exists in
master
Merge branch 'master' into 'master'
Master See merge request modulos-npm/foca-busqueda-cliente!1
Showing
3 changed files
Show diff stats
index.html
File was created | 1 | <html ng-app="focaBusquedaCliente"> | |
2 | |||
3 | <head> | ||
4 | <meta charset="UTF-8" /> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
6 | |||
7 | <!--CSS--> | ||
8 | <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" /> | ||
9 | <link href="node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> | ||
10 | |||
11 | <!--VENDOR JS--> | ||
12 | <script src="node_modules/jquery/dist/jquery.min.js"></script> | ||
13 | <script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script> | ||
14 | <script src="node_modules/angular/angular.min.js"></script> | ||
15 | <script src="node_modules/ui-bootstrap4/dist/ui-bootstrap-tpls.js"></script> | ||
16 | |||
17 | <!-- BUILD --> | ||
18 | <script src="src/js/app.js"></script> | ||
19 | <script src="src/js/controller.js"></script> | ||
20 | <script src="src/js/service.js"></script> | ||
21 | |||
22 | <!-- /BUILD --> | ||
23 | |||
24 | <!-- CONFIG PARA DEVELOP --> | ||
25 | <script type="text/javascript"> | ||
26 | angular.module('focaBusquedaCliente') | ||
27 | .controller('controller', ['$uibModal', function ($uibModal) { | ||
28 | var modalInstance = $uibModal.open( | ||
29 | { | ||
30 | ariaLabelledBy: 'Busqueda de Petroleras', | ||
31 | templateUrl: 'src/views/foca-busqueda-cliente-modal', | ||
32 | controller: 'focaBusquedaClienteModalController', | ||
33 | size: 'lg' | ||
34 | } | ||
35 | ); | ||
36 | }]); | ||
37 | </script> | ||
38 | </head> | ||
39 | |||
40 | <body ng-controller="controller"> | ||
41 | <style> | ||
42 | .p-5 { | ||
43 | padding: 5px !important; | ||
44 | } | ||
45 | </style> | ||
46 | </body> | ||
47 | |||
48 | </html> |
package.json
1 | { | 1 | { |
2 | "name": "foca-abm-sectores", | 2 | "name": "foca-busqueda-cliente", |
3 | "version": "1.0.0", | 3 | "version": "1.0.0", |
4 | "description": "ABM de sectores", | 4 | "description": "Búsqueda de clientes", |
5 | "main": "dist/foca-abm-sectores.js", | 5 | "main": "dist/foca-abm-sectores.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 && gulp html", | 8 | "compile": "gulp uglify && gulp html", |
9 | "pre-commit": [ | ||
10 | "gulp-pre-commit" | ||
11 | ], | ||
12 | "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js" | 9 | "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js" |
13 | }, | 10 | }, |
14 | "repository": { | 11 | "repository": { |
15 | "type": "git", | 12 | "type": "git", |
16 | "url": "https://192.168.0.11/modulos-npm/foca-abm-sectores.git" | 13 | "url": "https://192.168.0.11/modulos-npm/foca-busqueda-cliente.git" |
17 | }, | 14 | }, |
18 | "author": "Foca Software", | 15 | "author": "Foca Software", |
19 | "license": "ISC", | 16 | "license": "ISC", |
20 | "peerDependencies": { | 17 | "peerDependencies": { |
21 | "angular": "^1.7.x", | 18 | "angular": "^1.7.x", |
22 | "bootstrap": "^4.1.x", | 19 | "bootstrap": "^4.1.x", |
23 | "jquery": "^3.3.x", | 20 | "jquery": "^3.3.x", |
24 | "font-awesome": "^4.7.x", | 21 | "font-awesome": "^4.7.x", |
25 | "gulp": "^3.9.x", | 22 | "gulp": "^3.9.x", |
26 | "gulp-concat": "2.6.x", | 23 | "gulp-concat": "2.6.x", |
27 | "gulp-jshint": "^2.1.x", | 24 | "gulp-jshint": "^2.1.x", |
28 | "gulp-rename": "^1.4.x", | 25 | "gulp-rename": "^1.4.x", |
29 | "gulp-replace": "^1.0.x", | 26 | "gulp-replace": "^1.0.x", |
30 | "gulp-uglify-es": "^1.0.x", | 27 | "gulp-uglify-es": "^1.0.x", |
31 | "jshint": "^2.9.x", | 28 | "jshint": "^2.9.x", |
32 | "pump": "^3.0.x" | 29 | "pump": "^3.0.x" |
33 | }, | 30 | }, |
34 | "devDependencies": { | 31 | "devDependencies": { |
35 | "gulp-connect": "^5.6.1", | 32 | "gulp-connect": "^5.6.1", |
36 | "jasmine-core": "3.2.1", | 33 | "jasmine-core": "3.2.1", |
37 | "pre-commit": "^1.2.2" | 34 | "pre-commit": "^1.2.2" |
38 | }, | 35 | }, |
39 | "dependencies": { | 36 | "dependencies": { |
40 | "angular": "1.7.4", | 37 | "angular": "1.7.4", |
41 | "angular-ui-bootstrap": "2.5.6", | 38 | "angular-ui-bootstrap": "2.5.6", |
42 | "bootstrap": "4.1.3", | 39 | "bootstrap": "4.1.3", |
43 | "font-awesome": "4.7.0", | 40 | "font-awesome": "4.7.0", |
44 | "gulp": "3.9.1", | 41 | "gulp": "^3.9.1", |
45 | "gulp-angular-templatecache": "2.2.1", | 42 | "gulp-angular-templatecache": "2.2.1", |
46 | "gulp-concat": "2.6.1", | 43 | "gulp-concat": "2.6.1", |
47 | "gulp-htmlmin": "5.0.1", | 44 | "gulp-htmlmin": "5.0.1", |
48 | "gulp-jshint": "2.1.0", | 45 | "gulp-jshint": "2.1.0", |
49 | "gulp-rename": "1.4.0", | 46 | "gulp-rename": "1.4.0", |
50 | "gulp-replace": "1.0.0", | 47 | "gulp-replace": "1.0.0", |
51 | "gulp-uglify-es": "1.0.4", | 48 | "gulp-uglify-es": "1.0.4", |
52 | "jquery": "3.3.1", | 49 | "jquery": "3.3.1", |
53 | "jshint": "2.9.6", | 50 | "jshint": "2.9.6", |
54 | "pump": "3.0.0" | 51 | "pump": "3.0.0" |
55 | } | 52 | } |
56 | } | 53 | } |
57 | 54 |
src/views/foca-busqueda-cliente-modal.html
1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
2 | <h3 class="modal-title">Búsqueda de cliente</h3> | 2 | <h3 class="modal-title">Búsqueda de cliente</h3> |
3 | </div> | 3 | </div> |
4 | <div class="modal-body"> | 4 | <div class="modal-body"> |
5 | <form> | 5 | <form> |
6 | <div class="form-group row"> | 6 | <div class="form-group row"> |
7 | <label class="col-sm-4 col-form-label">Nombre o CUIT</label> | 7 | <label class="col-sm-4 col-form-label">Nombre o CUIT</label> |
8 | <div class="col-sm-8"> | 8 | <div class="col-sm-8"> |
9 | <input | 9 | <input |
10 | type="text" | 10 | type="text" |
11 | ng-model="cliente" | 11 | ng-model="cliente" |
12 | placeholder="Nombre o CUIT" | 12 | placeholder="Nombre o CUIT" |
13 | uib-typeahead=" | 13 | uib-typeahead=" |
14 | cliente.nom + ' (' + cliente.cuit + ')' | 14 | cliente.nom + ' (' + cliente.cuit + ')' |
15 | for cliente | 15 | for cliente |
16 | in obtenerClientesPorNombreOCuit($viewValue) | 16 | in obtenerClientesPorNombreOCuit($viewValue) |
17 | " | 17 | " |
18 | typeahead-loading="cargandoClientes" | 18 | typeahead-loading="cargandoClientes" |
19 | typeahead-no-results="sinResultados" | 19 | typeahead-no-results="sinResultados" |
20 | typeahead-min-length="3" | 20 | typeahead-min-length="3" |
21 | typeahead-on-select="seleccionar($item)" | 21 | typeahead-on-select="seleccionar($item)" |
22 | class="form-control" | 22 | class="form-control" |
23 | > | 23 | > |
24 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> | 24 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> |
25 | <div ng-show="sinResultados"> | 25 | <div ng-show="sinResultados"> |
26 | <i class="fas fa-minus"></i> No se encontraron resultados. | 26 | <i class="fa fa-minus"></i> No se encontraron resultados. |
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | </form> | 30 | </form> |
31 | </div> | 31 | </div> |
32 | <div class="modal-footer"> | 32 | <div class="modal-footer"> |
33 | <button ng-click="aceptar()">Aceptar</button> | 33 | <button class="btn" ng-click="aceptar()">Aceptar</button> |
34 | <button ng-click="cancelar()">Cancelar</button> | 34 | <button class="btn" ng-click="cancelar()">Cancelar</button> |
35 | </div> | 35 | </div> |
36 | 36 |