Commit ea2fd40fe5a31ef7a8556d10554c5a6ae4e18863

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master (pmarco)

See merge request modulos-npm/foca-modal!7
1 { 1 {
2 "name": "foca-modal", 2 "name": "foca-modal",
3 "version": "0.0.1", 3 "version": "0.0.1",
4 "description": "Modales de foca", 4 "description": "Modales de foca",
5 "main": "index.js", 5 "main": "index.js",
6 "scripts": { 6 "scripts": {
7 "test": "echo \"Error: no test specified\" && exit 1", 7 "test": "echo \"Error: no test specified\" && exit 1",
8 "gulp-pre-commit": "gulp pre-commit", 8 "gulp-pre-commit": "gulp pre-commit",
9 "compile": "gulp uglify", 9 "compile": "gulp uglify",
10 "postinstall": "npm run compile && gulp clean-post-install", 10 "postinstall": "npm run compile && gulp clean-post-install",
11 "install-dev": "npm install -D angular gulp gulp-angular-templatecache gulp-clean gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jshint pump" 11 "install-dev": "npm install -D angular gulp gulp-angular-templatecache gulp-clean gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jshint pump git+https://debo.suite.repo/modulos-npm/foca-directivas.git"
12 }, 12 },
13 "pre-commit": [ 13 "pre-commit": [
14 "gulp-pre-commit" 14 "gulp-pre-commit"
15 ], 15 ],
16 "repository": { 16 "repository": {
17 "type": "git", 17 "type": "git",
18 "url": "https://debo.suite.repo/modulos-npm/foca-modal.git" 18 "url": "https://debo.suite.repo/modulos-npm/foca-modal.git"
19 }, 19 },
20 "author": "Foca Software", 20 "author": "Foca Software",
21 "license": "ISC", 21 "license": "ISC",
22 "peerDependencies": {
23 "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git"
24 },
22 "devDependencies": { 25 "devDependencies": {
23 "angular": "^1.7.5", 26 "angular": "^1.7.5",
27 "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git",
24 "gulp": "^3.9.1", 28 "gulp": "^3.9.1",
25 "gulp-angular-templatecache": "^2.2.2", 29 "gulp-angular-templatecache": "^2.2.3",
26 "gulp-clean": "^0.4.0", 30 "gulp-clean": "^0.4.0",
27 "gulp-connect": "^5.6.1", 31 "gulp-connect": "^5.6.1",
28 "gulp-htmlmin": "^5.0.1", 32 "gulp-htmlmin": "^5.0.1",
29 "gulp-jshint": "^2.1.0", 33 "gulp-jshint": "^2.1.0",
30 "gulp-rename": "^1.4.0", 34 "gulp-rename": "^1.4.0",
31 "gulp-replace": "^1.0.0", 35 "gulp-replace": "^1.0.0",
32 "gulp-uglify": "^3.0.1", 36 "gulp-uglify": "^3.0.1",
33 "jshint": "^2.9.6", 37 "jshint": "^2.9.6",
34 "pump": "^3.0.0" 38 "pump": "^3.0.0"
35 } 39 }
36 } 40 }
37 41
src/views/modal-alert.html
1 <div class="modal-header"> 1 <div class="modal-header">
2 <h4>Alerta</h4> 2 <h4>Alerta</h4>
3 </div> 3 </div>
4 <div class="modal-body"> 4 <div class="modal-body">
5 <p ng-bind="textoModal"> 5 <p ng-bind="textoModal">
6 6
7 </p> 7 </p>
8 </div> 8 </div>
9 <div class="modal-footer"> 9 <div class="modal-footer">
10 <button class="btn btn-info" ng-click="aceptar()">Aceptar</button> 10 <button class="btn btn-info" ng-click="aceptar()" foca-focus="true">Aceptar</button>
11 </div> 11 </div>
12 12
src/views/modal-confirm.html
1 <div class="modal-header"> 1 <div class="modal-header">
2 <h4>Confirmar</h4> 2 <h4>Confirmar</h4>
3 </div> 3 </div>
4 <div class="modal-body"> 4 <div class="modal-body">
5 <p ng-bind="textoModal"> 5 <p ng-bind="textoModal">
6 6
7 </p> 7 </p>
8 </div> 8 </div>
9 <div class="modal-footer"> 9 <div class="modal-footer">
10 <button class="btn btn-danger" ng-click="aceptar()">Aceptar</button> 10 <button class="btn btn-danger" ng-click="aceptar()" foca-focus="true">Aceptar</button>
11 <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> 11 <button class="btn btn-default" ng-click="cancelar()">Cancelar</button>
12 </div> 12 </div>
13 13