Commit b5ed9a71f9e41aae7bec4712854485603aeda200

Authored by Eric Fernandez
Exists in develop

Merge branch 'master' into 'develop'

Master(mpuebla)

See merge request !21
1 { 1 {
2 "name": "foca-botonera-facturador", 2 "name": "foca-botonera-facturador",
3 "version": "0.0.1", 3 "version": "0.0.1",
4 "description": "Componente de botonera en facturadores", 4 "description": "Componente de botonera en facturadores",
5 "main": "index.js", 5 "main": "index.js",
6 "scripts": { 6 "scripts": {
7 "frefresh": "gulp uglify && cp tmp/foca-botonera-facturador.js ../wrapper-facturador/node_modules/foca-botonera-facturador/dist/foca-botonera-facturador.min.js",
7 "refresh": "gulp uglify && cp tmp/foca-botonera-facturador.js ../wrapper-demo/node_modules/foca-botonera-facturador/dist/foca-botonera-facturador.min.js", 8 "refresh": "gulp uglify && cp tmp/foca-botonera-facturador.js ../wrapper-demo/node_modules/foca-botonera-facturador/dist/foca-botonera-facturador.min.js",
8 "test": "echo \"Error: no test specified\" && exit 1", 9 "test": "echo \"Error: no test specified\" && exit 1",
9 "compile": "gulp uglify", 10 "compile": "gulp uglify",
10 "gulp-pre-commit": "gulp pre-commit", 11 "gulp-pre-commit": "gulp pre-commit",
11 "postinstall": "npm run compile && gulp clean-post-install", 12 "postinstall": "npm run compile && gulp clean-post-install",
12 "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" 13 "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"
13 }, 14 },
14 "pre-commit": [ 15 "pre-commit": [
15 "gulp-pre-commit" 16 "gulp-pre-commit"
16 ], 17 ],
17 "repository": { 18 "repository": {
18 "type": "git", 19 "type": "git",
19 "url": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-facturador.git" 20 "url": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-facturador.git"
20 }, 21 },
21 "author": "Foca Software", 22 "author": "Foca Software",
22 "license": "ISC", 23 "license": "ISC",
23 "peerDependencies": { 24 "peerDependencies": {
24 "angular": "^1.7.x", 25 "angular": "^1.7.x",
25 "bootstrap": "^4.1.x", 26 "bootstrap": "^4.1.x",
26 "jquery": "^3.3.x", 27 "jquery": "^3.3.x",
27 "font-awesome": "^4.7.x", 28 "font-awesome": "^4.7.x",
28 "gulp": "^3.9.x", 29 "gulp": "^3.9.x",
29 "gulp-concat": "2.6.x", 30 "gulp-concat": "2.6.x",
30 "gulp-jshint": "^2.1.x", 31 "gulp-jshint": "^2.1.x",
31 "gulp-rename": "^1.4.x", 32 "gulp-rename": "^1.4.x",
32 "gulp-replace": "^1.0.x", 33 "gulp-replace": "^1.0.x",
33 "gulp-uglify-es": "^1.0.x", 34 "gulp-uglify-es": "^1.0.x",
34 "jshint": "^2.9.x", 35 "jshint": "^2.9.x",
35 "pump": "^3.0.x" 36 "pump": "^3.0.x"
36 }, 37 },
37 "devDependencies": { 38 "devDependencies": {
38 "angular": "^1.7.6", 39 "angular": "^1.7.6",
39 "angular-route": "^1.7.5", 40 "angular-route": "^1.7.5",
40 "angular-sanitize": "^1.7.6", 41 "angular-sanitize": "^1.7.6",
41 "bootstrap": "^4.2.1", 42 "bootstrap": "^4.2.1",
42 "font-awesome": "^4.7.0", 43 "font-awesome": "^4.7.0",
43 "gulp": "^3.9.1", 44 "gulp": "^3.9.1",
44 "gulp-angular-templatecache": "^2.2.6", 45 "gulp-angular-templatecache": "^2.2.6",
45 "gulp-clean": "^0.4.0", 46 "gulp-clean": "^0.4.0",
46 "gulp-concat": "^2.6.1", 47 "gulp-concat": "^2.6.1",
47 "gulp-connect": "^5.7.0", 48 "gulp-connect": "^5.7.0",
48 "gulp-htmlmin": "^5.0.1", 49 "gulp-htmlmin": "^5.0.1",
49 "gulp-jshint": "^2.1.0", 50 "gulp-jshint": "^2.1.0",
50 "gulp-rename": "^1.4.0", 51 "gulp-rename": "^1.4.0",
51 "gulp-replace": "^1.0.0", 52 "gulp-replace": "^1.0.0",
52 "gulp-sass": "^4.0.2", 53 "gulp-sass": "^4.0.2",
53 "gulp-uglify-es": "^1.0.4", 54 "gulp-uglify-es": "^1.0.4",
54 "jasmine-core": "^3.3.0", 55 "jasmine-core": "^3.3.0",
55 "jquery": "^3.3.1", 56 "jquery": "^3.3.1",
56 "jshint": "^2.9.7", 57 "jshint": "^2.9.7",
57 "pre-commit": "^1.2.2", 58 "pre-commit": "^1.2.2",
58 "pump": "^3.0.0" 59 "pump": "^3.0.0"
59 } 60 }
60 } 61 }
61 62
src/views/botonera-forma-pago.html
1 <div 1 <div
2 class="col-6 col-lg-3 py-2" 2 class="col-6 col-sm-3 py-2"
3 ng-repeat="boton in botones track by $index" 3 ng-repeat="boton in botones track by $index"
4 ng-class="{'d-md-grid': boton == ''}"> 4 ng-class="{'d-md-grid': boton == ''}">
5 <button 5 <button
6 type="button" 6 type="button"
7 class="btn btn-block btn-xs text-center rounded border border-light foca-overflow-hidden" 7 class="btn btn-block btn-xs text-center rounded border border-light foca-overflow-hidden"
8 ng-disabled="boton.disabled" 8 ng-disabled="boton.disabled"
9 ng-click=" 9 ng-click="
10 (boton != '') ? ejecutarFuncion(boton) : null; 10 (boton != '') ? ejecutarFuncion(boton) : null;
11 activarBoton(boton);" 11 activarBoton(boton);"
12 > 12 >
13 <img ng-src="./img/{{boton.image}}" alt=""> 13 <img ng-src="./img/{{boton.image}}" alt="">
14 <span>{{ boton.label }}</span> 14 <span>{{ boton.label }}</span>
15 </button> 15 </button>
16 </div> 16 </div>
17 17
src/views/botonera-tarjetas.html
1 <div 1 <div
2 class="col-4 col-lg-2 pb-3" 2 class="col-4 col-lg-2 px-1 pb-3"
3 ng-repeat="boton in botones track by $index" 3 ng-repeat="boton in botones track by $index"
4 ng-class="{'d-md-grid': boton == ''}"> 4 ng-class="{'d-md-grid': boton == ''}">
5 <button 5 <button
6 type="button" 6 type="button"
7 class="btn btn-block btn-tarjeta rounded border p-1" 7 class="btn btn-block btn-tarjeta rounded border p-1"
8 ng-click=" 8 ng-click="
9 (boton != '') ? ejecutarFuncion(boton) : null; 9 (boton != '') ? ejecutarFuncion(boton) : null;
10 activarBoton(boton);" 10 activarBoton(boton);"
11 ng-class=" 11 ng-class="
12 { 12 {
13 'd-sm-block h-100': boton == '', 13 'd-sm-block h-100': boton == '',
14 'border-light': !boton.active, 14 'border-light': !boton.active,
15 'border-warning': boton.active 15 'border-warning': boton.active
16 }" 16 }"
17 ng-disabled="boton.disable" 17 ng-disabled="boton.disable"
18 > 18 >
19 <img ng-src="./img/{{boton.image || boton.imageDefault}}" alt=""> 19 <img ng-src="./img/{{boton.image || boton.imageDefault}}" alt="">
20 <label ng-if="!boton.image" ng-bind="boton.nombre"></label> 20 <label ng-if="!boton.image" ng-bind="boton.nombre"></label>
21 </button> 21 </button>
22 </div> 22 </div>
23 23