Commit bf67f0746bc7bd95aabde99ed39411147d01b226
Exists in
develop
Merge branch 'develop' of http://git.focasoftware.com/brodriguez/foca-botonera-principal
Showing
3 changed files
 
Show diff stats
package.json
| ... | ... | @@ -3,6 +3,8 @@ | 
| 3 | 3 | "version": "0.0.1", | 
| 4 | 4 | "description": "Botonera principal", | 
| 5 | 5 | "scripts": { | 
| 6 | + "frefresh": "gulp uglify && cp tmp/foca-botonera-principal.js ../wrapper-facturador/node_modules/foca-botonera-principal/dist/foca-botonera-principal.min.js", | |
| 7 | + "refresh": "gulp uglify && cp tmp/foca-botonera-principal.js ../wrapper-demo/node_modules/foca-botonera-principal/dist/foca-botonera-principal.min.js", | |
| 6 | 8 | "test": "echo \"Error: no test specified\" && exit 1", | 
| 7 | 9 | "gulp-pre-commit": "gulp pre-commit", | 
| 8 | 10 | "compile": "gulp uglify", | 
src/js/controller.js
| ... | ... | @@ -9,7 +9,7 @@ angular.module('focaBotoneraPrincipal') | 
| 9 | 9 | if(APP === 'distribuidor' || APP === 'transportista') { | 
| 10 | 10 | botonesPorPagina = 3; | 
| 11 | 11 | } | 
| 12 | - for(var i = 0; i < botones.data.length; i += botonesPorPagina){ | |
| 12 | + for(var i = 0; i < botones.data.length; i += botonesPorPagina) { | |
| 13 | 13 | $scope.paginas.push(botones.data.slice(i, i + botonesPorPagina)); | 
| 14 | 14 | } | 
| 15 | 15 | 
src/views/foca-botonera-principal.html
| 1 | 1 | <div class="botonera-principal"> | 
| 2 | - <div class="row"> | |
| 3 | - <div class=" col-6"> | |
| 4 | - <img class="botonera-principal-logo" src="./img/logoMapa.png"/> | |
| 2 | + <div class="row mt-3 justify-content-center"> | |
| 3 | + <div class="col-auto p-0"> | |
| 4 | + <img src="./img/logoMapa.png"/> | |
| 5 | 5 | </div> | 
| 6 | 6 | </div> | 
| 7 | 7 | <div class="row"> | 
| 8 | 8 | <div class="col-12 mb-3"> | 
| 9 | 9 | <swiper on-init="inicioSwiper"> | 
| 10 | 10 | <slides> | 
| 11 | - <slide ng-repeat="pagina in paginas"> | |
| 11 | + <slide ng-repeat="(keyPagina, pagina) in paginas"> | |
| 12 | 12 | <menu class="botonera-principal-menu"> | 
| 13 | - <menuitem ng-class="boton.clase" ng-repeat="boton in pagina" ng-show="boton.accion != '/venta-hoja-ruta/lista'"> | |
| 14 | - <button ng-click="irA(boton.accion)"> | |
| 13 | + <menuitem | |
| 14 | + ng-class="boton.clase" | |
| 15 | + ng-repeat="(keyBoton, boton) in pagina" | |
| 16 | + ng-show="boton.accion != '/venta-hoja-ruta/lista'"> | |
| 17 | + <button | |
| 18 | + foca-focus="keyPagina === 0 && keyBoton === 0" | |
| 19 | + ng-click="irA(boton.accion)"> | |
| 15 | 20 | <span ng-bind="boton.texto"></span> | 
| 16 | 21 | </button> | 
| 17 | 22 | </menuitem> |