From 3dfa758888577b2f244074b42b2b808fd054b7ee Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Mon, 7 Dec 2015 10:38:08 -0600 Subject: [PATCH] Updated version number --- backup/dialogs.js | 475 ------------------ bower.json | 2 +- dist/dialogs-default-translations.js | 2 +- dist/dialogs.js | 2 +- example/css/dialogs.min.css | 1 + ...js => dialogs-default-translations.min.js} | 0 example/js/dialogs.min.js | 1 + package.json | 2 +- 8 files changed, 6 insertions(+), 479 deletions(-) delete mode 100644 backup/dialogs.js create mode 100644 example/css/dialogs.min.css rename example/js/{dialogs-default-translations-min.min.js => dialogs-default-translations.min.js} (100%) create mode 100644 example/js/dialogs.min.js diff --git a/backup/dialogs.js b/backup/dialogs.js deleted file mode 100644 index d550629..0000000 --- a/backup/dialogs.js +++ /dev/null @@ -1,475 +0,0 @@ -/** - * Note: - * 1. This version requires Angular UI Bootstrap >= v0.10.0 with templates - * 2. Optional angular-translate for i18n support - */ - -(function(){ - 'use strict'; - -//== Translate Substitute Module =============================================// - -/** - * For those not use Angular-Translate (pascalprecht.translate), this will sub - * in for it so we don't have to include Angular-Translate if we don't want to. - */ - -var translateSubMod = angular.module('translate.sub',[]); - - translateSubMod.provider('$translate',[function(){ - var _translations = []; // object of key/value translation pairs - var _current = 'en-US'; // default language - - /** - * Translations - * Set the internal object of translation key/value pairs. - */ - this.translations = function(lang,obj){ - if(angular.isDefined(lang) && angular.isDefined(obj)){ - _translations[lang] = angular.copy(obj); - _current = lang; - } - }; // end translations - - this.$get = [function(){ - return { - /** - * Instant - * Retrieve the translation for the given key, if key not found - * return an empty string. - */ - instant : function(what){ - if(angular.isDefined(what) && angular.isDefined(_translations[_current][what])) - return _translations[_current][what]; - else - return ''; - } // end instant - }; // end return - }]; // end $get - - }]); // end $translate - - translateSubMod.filter('translate',['$translate',function($translate){ - return function(what){ - return $translate.instant(what); - }; - }]); // end translate / translate.sub - - -//== Controllers =============================================================// - -var ctrlrs; // will be dialogs.controllers module - -// determine if Angular-Translate is available, if not use the substitute -try{ - angular.module('pascalprecht.translate'); // throws error if module not loaded - console.log('Angular-Translate: OK'); - - // dialogs.controllers: module declaration - ctrlrs = angular.module('dialogs.controllers',['ui.bootstrap.modal','pascalprecht.translate']); -}catch(err){ - console.log('Angular-Translate: ' + err.message); - console.log('Attempting to use translate.sub module.'); - - // dialogs.controllers: module declaration - ctrlrs = angular.module('dialogs.controllers',['ui.bootstrap.modal','translate.sub']); -} // end try/catch - -// angular.module('dialogs.controllers',['ui.bootstrap.modal','pascalprecht.translate']) - -/** - * Error Dialog Controller - */ -ctrlrs.controller('errorDialogCtrl',['$scope','$uibModalInstance','$translate','data',function($scope,$uibModalInstance,$translate,data){ - //-- Variables -----// - - $scope.header = (angular.isDefined(data.header)) ? data.header : $translate.instant('DIALOGS_ERROR'); - $scope.msg = (angular.isDefined(data.msg)) ? data.msg : $translate.instant('DIALOGS_ERROR_MSG'); - - //-- Methods -----// - - $scope.close = function(){ - $uibModalInstance.close(); - $scope.$destroy(); - }; // end close -}]); // end ErrorDialogCtrl - -/** - * Wait Dialog Controller - */ -ctrlrs.controller('waitDialogCtrl',['$scope','$uibModalInstance','$translate','$timeout','data',function($scope,$uibModalInstance,$translate,$timeout,data){ - //-- Variables -----// - - $scope.header = (angular.isDefined(data.header)) ? data.header : $translate.instant('DIALOGS_PLEASE_WAIT_ELIPS'); - $scope.msg = (angular.isDefined(data.msg)) ? data.msg : $translate.instant('DIALOGS_PLEASE_WAIT_MSG'); - $scope.progress = (angular.isDefined(data.progress)) ? data.progress : 100; - - //-- Listeners -----// - - // Note: used $timeout instead of $scope.$apply() because I was getting a $$nextSibling error - - // close wait dialog - $scope.$on('dialogs.wait.complete',function(){ - $timeout(function(){ $uibModalInstance.close(); $scope.$destroy(); }); - }); // end on(dialogs.wait.complete) - - // update the dialog's message - $scope.$on('dialogs.wait.message',function(evt,args){ - $scope.msg = (angular.isDefined(args.msg)) ? args.msg : $scope.msg; - }); // end on(dialogs.wait.message) - - // update the dialog's progress (bar) and/or message - $scope.$on('dialogs.wait.progress',function(evt,args){ - $scope.msg = (angular.isDefined(args.msg)) ? args.msg : $scope.msg; - $scope.progress = (angular.isDefined(args.progress)) ? args.progress : $scope.progress; - }); // end on(dialogs.wait.progress) - - //-- Methods -----// - - $scope.getProgress = function(){ - return {'width': $scope.progress + '%'}; - }; // end getProgress -}]); // end WaitDialogCtrl - -/** - * Notify Dialog Controller - */ -ctrlrs.controller('notifyDialogCtrl',['$scope','$uibModalInstance','$translate','data',function($scope,$uibModalInstance,$translate,data){ - //-- Variables -----// - - $scope.header = (angular.isDefined(data.header)) ? data.header : $translate.instant('DIALOGS_NOTIFICATION'); - $scope.msg = (angular.isDefined(data.msg)) ? data.msg : $translate.instant('DIALOGS_NOTIFICATION_MSG'); - - //-- Methods -----// - - $scope.close = function(){ - $uibModalInstance.close(); - $scope.$destroy(); - }; // end close -}]); // end WaitDialogCtrl - -/** - * Confirm Dialog Controller - */ -ctrlrs.controller('confirmDialogCtrl',['$scope','$uibModalInstance','$translate','data',function($scope,$uibModalInstance,$translate,data){ - //-- Variables -----// - - $scope.header = (angular.isDefined(data.header)) ? data.header : $translate.instant('DIALOGS_CONFIRMATION'); - $scope.msg = (angular.isDefined(data.msg)) ? data.msg : $translate.instant('DIALOGS_CONFIRMATION_MSG'); - - //-- Methods -----// - - $scope.no = function(){ - $uibModalInstance.dismiss('no'); - }; // end close - - $scope.yes = function(){ - $uibModalInstance.close('yes'); - }; // end yes -}]); // end ConfirmDialogCtrl / dialogs.controllers - - -//== Services ================================================================// - -angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers']) - - .provider('dialogs',[function(){ - var _b = true; // backdrop - var _k = true; // keyboard - var _w = 'dialogs-default'; // windowClass - var _copy = true; // controls use of angular.copy - var _wTmpl = null; // window template - var _wSize = 'lg'; // large modal window default - - var _setOpts = function(opts){ - var _opts = {}; - opts = opts || {}; - _opts.kb = (angular.isDefined(opts.keyboard)) ? opts.keyboard : _k; // values: true,false - _opts.bd = (angular.isDefined(opts.backdrop)) ? opts.backdrop : _b; // values: 'static',true,false - _opts.ws = (angular.isDefined(opts.size) && (angular.equals(opts.size,'sm') || angular.equals(opts.size,'lg') || angular.equals(opts.size,'md'))) ? opts.size : _wSize; // values: 'sm', 'lg', 'md' - _opts.wc = (angular.isDefined(opts.windowClass)) ? opts.windowClass : _w; // additional CSS class(es) to be added to a modal window - - return _opts; - }; // end _setOpts - - /** - * Use Backdrop - * - * Sets the use of the modal backdrop. Either to have one or not and - * whether or not it responds to mouse clicks ('static' sets the - * backdrop to true and does not respond to mouse clicks). - * - * @param val mixed (true, false, 'static') - */ - this.useBackdrop = function(val){ // possible values : true, false, 'static' - if(angular.isDefined(val)) - _b = val; - }; // end useStaticBackdrop - - /** - * Use ESC Close - * - * Sets the use of the ESC (escape) key to close modal windows. - * - * @param val boolean - */ - this.useEscClose = function(val){ // possible values : true, false - if(angular.isDefined(val)) - _k = (!angular.equals(val,0) && !angular.equals(val,'false') && !angular.equals(val,'no') && !angular.equals(val,null) && !angular.equals(val,false)) ? true : false; - }; // end useESCClose - - /** - * Use Class - * - * Sets the additional CSS window class of the modal window template. - * - * @param val string - */ - this.useClass = function(val){ - if(angular.isDefined(val)) - _w = val; - }; // end useClass - - /** - * Use Copy - * - * Determines the use of angular.copy when sending data to the modal controller. - * - * @param val boolean - */ - this.useCopy = function(val){ - if(angular.isDefined(val)) - _copy = (!angular.equals(val,0) && !angular.equals(val,'false') && !angular.equals(val,'no') && !angular.equals(val,null) && !angular.equals(val,false)) ? true : false; - }; // end useCopy - - /** - * Set Window Template - * - * Sets a path to a template to use overriding modal's window template. - * - * @param val string - */ - this.setWindowTmpl = function(val){ - if(angular.isDefined(val)) - _wTmpl = val; - }; // end setWindowTmpl - - /** - * Set Size - * - * Sets the modal size to use (sm,lg,md), requires Angular-ui-Bootstrap 0.11.0 and Bootstrap 3.1.0 + - * - * @param val string (sm,lg,md) - */ - this.setSize = function(val){ - if(angular.isDefined(val)) - _wSize = (angular.equals(val,'sm') || angular.equals(val,'lg') || angular.equals(val,'md')) ? val : _wSize; - }; // end setSize - - - this.$get = ['$modal',function ($modal){ - - return { - /** - * Error Dialog - * - * @param header string - * @param msg string - * @param opts object - */ - error : function(header,msg,opts){ - opts = _setOpts(opts); - - return $modal.open({ - templateUrl : '/dialogs/error.html', - controller : 'errorDialogCtrl', - backdrop: opts.bd, - keyboard: opts.kb, - windowClass: opts.wc, - size: opts.ws, - resolve : { - data : function(){ - return { - header : angular.copy(header), - msg : angular.copy(msg) - }; - } - } - }); // end modal.open - }, // end error - - /** - * Wait Dialog - * - * @param header string - * @param msg string - * @param progress int - * @param opts object - */ - wait : function(header,msg,progress,opts){ - opts = _setOpts(opts); - - return $modal.open({ - templateUrl : '/dialogs/wait.html', - controller : 'waitDialogCtrl', - backdrop: opts.bd, - keyboard: opts.kb, - windowClass: opts.wc, - size: opts.ws, - resolve : { - data : function(){ - return { - header : angular.copy(header), - msg : angular.copy(msg), - progress : angular.copy(progress) - }; - } - } - }); // end modal.open - }, // end wait - - /** - * Notify Dialog - * - * @param header string - * @param msg string - * @param opts object - */ - notify : function(header,msg,opts){ - opts = _setOpts(opts); - - return $modal.open({ - templateUrl : '/dialogs/notify.html', - controller : 'notifyDialogCtrl', - backdrop: opts.bd, - keyboard: opts.kb, - windowClass: opts.wc, - size: opts.ws, - resolve : { - data : function(){ - return { - header : angular.copy(header), - msg : angular.copy(msg) - }; - } - } - }); // end modal.open - }, // end notify - - /** - * Confirm Dialog - * - * @param header string - * @param msg string - * @param opts object - */ - confirm : function(header,msg,opts){ - opts = _setOpts(opts); - - return $modal.open({ - templateUrl : '/dialogs/confirm.html', - controller : 'confirmDialogCtrl', - backdrop: opts.bd, - keyboard: opts.kb, - windowClass: opts.wc, - size: opts.ws, - resolve : { - data : function(){ - return { - header : angular.copy(header), - msg : angular.copy(msg) - }; - } - } - }); // end modal.open - }, // end confirm - - /** - * Create Custom Dialog - * - * @param url string - * @param ctrlr string - * @param data object - * @param opts object - */ - create : function(url,ctrlr,data,opts){ - var copy = (opts && angular.isDefined(opts.copy)) ? opts.copy : _copy; - opts = _setOpts(opts); - - return $modal.open({ - templateUrl : url, - controller : ctrlr, - keyboard : opts.kb, - backdrop : opts.bd, - windowClass: opts.wc, - size: opts.ws, - resolve : { - data : function() { - if(copy) - return angular.copy(data); - else - return data; - } - } - }); // end modal.open - } // end create - - }; // end return - - }]; // end $get - }]); // end provider dialogs - -//== Dialogs.Main Module =====================================================// - -/** - * Include this module 'dialogs.main' in your module's dependency list where you - * intend to use it. Then inject the 'dialogs' service in your controllers that - * need it. - */ - -angular.module('dialogs.main',['dialogs.services','ngSanitize']) // requires angular-sanitize.min.js (ngSanitize) //code.angularjs.org/1.2.1/angular-sanitize.min.js - - .config(['$translateProvider',function($translateProvider){ - /** - * if Angular-Translate is not loaded, use the translate substitute - * module and create default translations to use as default modal texts - */ - try{ - angular.module('pascalprecht.translate'); - }catch(err){ - console.log('Creating default translations for use without Angular-Translate.'); - - // This will set default modal buttons, header and message text - $translateProvider.translations('en-US',{ - DIALOGS_ERROR: "Error", - DIALOGS_ERROR_MSG: "An unknown error has occurred.", - DIALOGS_CLOSE: "Close", - DIALOGS_PLEASE_WAIT: "Please Wait", - DIALOGS_PLEASE_WAIT_ELIPS: "Please Wait...", - DIALOGS_PLEASE_WAIT_MSG: "Waiting on operation to complete.", - DIALOGS_PERCENT_COMPLETE: "% Complete", - DIALOGS_NOTIFICATION: "Notification", - DIALOGS_NOTIFICATION_MSG: "Unknown application notification.", - DIALOGS_CONFIRMATION: "Confirmation", - DIALOGS_CONFIRMATION_MSG: "Confirmation required.", - DIALOGS_OK: "OK", - DIALOGS_YES: "Yes", - DIALOGS_NO: "No" - }); - } // end try/catch - }]) // end config - - // Add default templates via $templateCache - .run(['$templateCache','$interpolate',function($templateCache,$interpolate){ - - // get interpolation symbol (possible that someone may have changed it in their application instead of using '{{}}') - var startSym = $interpolate.startSymbol(); - var endSym = $interpolate.endSymbol(); - - $templateCache.put('/dialogs/error.html',''); - $templateCache.put('/dialogs/wait.html',''); - $templateCache.put('/dialogs/notify.html',''); - $templateCache.put('/dialogs/confirm.html',''); - }]); // end run / dialogs.main - -})(); // end 'use strict' closure \ No newline at end of file diff --git a/bower.json b/bower.json index d676742..d365172 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "angular-dialog-service", "description": "A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal", - "version": "5.2.9", + "version": "5.2.10", "keywords": [ "angular", "dialog", diff --git a/dist/dialogs-default-translations.js b/dist/dialogs-default-translations.js index fe26593..bbc894e 100644 --- a/dist/dialogs-default-translations.js +++ b/dist/dialogs-default-translations.js @@ -1,6 +1,6 @@ /** * angular-dialog-service - A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal - * @version v5.2.9 + * @version v5.2.10 * @author Michael Conroy, michael.e.conroy@gmail.com * @license MIT, http://www.opensource.org/licenses/MIT */ diff --git a/dist/dialogs.js b/dist/dialogs.js index 66400c2..f8d1697 100644 --- a/dist/dialogs.js +++ b/dist/dialogs.js @@ -1,6 +1,6 @@ /** * angular-dialog-service - A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal - * @version v5.2.9 + * @version v5.2.10 * @author Michael Conroy, michael.e.conroy@gmail.com * @license MIT, http://www.opensource.org/licenses/MIT */ diff --git a/example/css/dialogs.min.css b/example/css/dialogs.min.css new file mode 100644 index 0000000..9f8085f --- /dev/null +++ b/example/css/dialogs.min.css @@ -0,0 +1 @@ +.dialog-header-error{background-color:#d2322d}.dialog-header-wait{background-color:#428bca}.dialog-header-notify{background-color:#eee}.dialog-header-confirm{background-color:#333}.dialog-header-confirm h4,.dialog-header-confirm span,.dialog-header-error h4,.dialog-header-error span,.dialog-header-wait h4,.dialog-header-wait span{color:#fff} \ No newline at end of file diff --git a/example/js/dialogs-default-translations-min.min.js b/example/js/dialogs-default-translations.min.js similarity index 100% rename from example/js/dialogs-default-translations-min.min.js rename to example/js/dialogs-default-translations.min.js diff --git a/example/js/dialogs.min.js b/example/js/dialogs.min.js new file mode 100644 index 0000000..f5d4657 --- /dev/null +++ b/example/js/dialogs.min.js @@ -0,0 +1 @@ +!function(){"use strict";var a=angular.module("translate.sub",[]);a.provider("$translate",[function(){var a=[],n="en-US";this.translations=function(e,s){angular.isDefined(e)&&angular.isDefined(s)&&(a[e]=angular.copy(s),n=e)},this.$get=[function(){return{instant:function(e){return angular.isDefined(e)&&angular.isDefined(a[n][e])?a[n][e]:""}}}]}]),a.filter("translate",["$translate",function(a){return function(n){return a.instant(n)}}]);var n;try{angular.module("pascalprecht.translate"),n=angular.module("dialogs.controllers",["ui.bootstrap.modal","pascalprecht.translate"])}catch(e){n=angular.module("dialogs.controllers",["ui.bootstrap.modal","translate.sub"])}n.controller("errorDialogCtrl",["$scope","$uibModalInstance","$translate","data",function(a,n,e,s){a.header=angular.isDefined(s.header)?s.header:e.instant("DIALOGS_ERROR"),a.msg=angular.isDefined(s.msg)?s.msg:e.instant("DIALOGS_ERROR_MSG"),a.icon=angular.isDefined(s.fa)&&angular.equals(s.fa,!0)?"fa fa-warning":"glyphicon glyphicon-warning-sign",a.close=function(){n.close(),a.$destroy()}}]),n.controller("waitDialogCtrl",["$scope","$uibModalInstance","$translate","$timeout","data",function(a,n,e,s,t){a.header=angular.isDefined(t.header)?t.header:e.instant("DIALOGS_PLEASE_WAIT_ELIPS"),a.msg=angular.isDefined(t.msg)?t.msg:e.instant("DIALOGS_PLEASE_WAIT_MSG"),a.progress=angular.isDefined(t.progress)?t.progress:100,a.icon=angular.isDefined(t.fa)&&angular.equals(t.fa,!0)?"fa fa-clock-o":"glyphicon glyphicon-time",a.$on("dialogs.wait.complete",function(){s(function(){n.close(),a.$destroy()})}),a.$on("dialogs.wait.message",function(n,e){a.msg=angular.isDefined(e.msg)?e.msg:a.msg}),a.$on("dialogs.wait.progress",function(n,e){a.msg=angular.isDefined(e.msg)?e.msg:a.msg,a.progress=angular.isDefined(e.progress)?e.progress:a.progress}),a.getProgress=function(){return{width:a.progress+"%"}}}]),n.controller("notifyDialogCtrl",["$scope","$uibModalInstance","$translate","data",function(a,n,e,s){a.header=angular.isDefined(s.header)?s.header:e.instant("DIALOGS_NOTIFICATION"),a.msg=angular.isDefined(s.msg)?s.msg:e.instant("DIALOGS_NOTIFICATION_MSG"),a.icon=angular.isDefined(s.fa)&&angular.equals(s.fa,!0)?"fa fa-info":"glyphicon glyphicon-info-sign",a.close=function(){n.close(),a.$destroy()}}]),n.controller("confirmDialogCtrl",["$scope","$uibModalInstance","$translate","data",function(a,n,e,s){a.header=angular.isDefined(s.header)?s.header:e.instant("DIALOGS_CONFIRMATION"),a.msg=angular.isDefined(s.msg)?s.msg:e.instant("DIALOGS_CONFIRMATION_MSG"),a.icon=angular.isDefined(s.fa)&&angular.equals(s.fa,!0)?"fa fa-check":"glyphicon glyphicon-check",a.no=function(){n.dismiss("no")},a.yes=function(){n.close("yes")}}]),angular.module("dialogs.services",["ui.bootstrap.modal","dialogs.controllers"]).provider("dialogs",[function(){var a=!0,n=!0,e="dialogs-default",s="dialogs-backdrop-default",t=!0,o=null,l="lg",i=!1,r=!1,d=function(t){var o={};return t=t||{},o.kb=angular.isDefined(t.keyboard)?!!t.keyboard:n,o.bd=angular.isDefined(t.backdrop)?t.backdrop:a,o.bdc=angular.isDefined(t.backdropClass)?t.backdropClass:s,o.ws=!angular.isDefined(t.size)||"sm"!==t.size&&"lg"!==t.size&&"md"!==t.size?l:t.size,o.wc=angular.isDefined(t.windowClass)?t.windowClass:e,o.anim=angular.isDefined(t.animation)?!!t.animation:i,o};this.useBackdrop=function(n){angular.isDefined(n)&&(a=n)},this.useEscClose=function(a){angular.isDefined(a)&&(n=angular.equals(a,0)||angular.equals(a,"false")||angular.equals(a,"no")||angular.equals(a,null)||angular.equals(a,!1)?!1:!0)},this.useClass=function(a){angular.isDefined(a)&&(e=a)},this.useCopy=function(a){angular.isDefined(a)&&(t=angular.equals(a,0)||angular.equals(a,"false")||angular.equals(a,"no")||angular.equals(a,null)||angular.equals(a,!1)?!1:!0)},this.setWindowTmpl=function(a){angular.isDefined(a)&&(o=a)},this.setSize=function(a){angular.isDefined(a)&&(l=angular.equals(a,"sm")||angular.equals(a,"lg")||angular.equals(a,"md")?a:l)},this.useAnimation=function(){i=!0},this.useFontAwesome=function(){r=!0},this.$get=["$uibModal",function(a){return{error:function(n,e,s){return s=d(s),a.open({templateUrl:"/dialogs/error.html",controller:"errorDialogCtrl",backdrop:s.bd,backdropClass:s.bdc,keyboard:s.kb,windowClass:s.wc,size:s.ws,animation:s.anim,resolve:{data:function(){return{header:angular.copy(n),msg:angular.copy(e),fa:r}}}})},wait:function(n,e,s,t){return t=d(t),a.open({templateUrl:"/dialogs/wait.html",controller:"waitDialogCtrl",backdrop:t.bd,backdropClass:t.bdc,keyboard:t.kb,windowClass:t.wc,size:t.ws,animation:t.anim,resolve:{data:function(){return{header:angular.copy(n),msg:angular.copy(e),progress:angular.copy(s),fa:r}}}})},notify:function(n,e,s){return s=d(s),a.open({templateUrl:"/dialogs/notify.html",controller:"notifyDialogCtrl",backdrop:s.bd,backdropClass:s.bdc,keyboard:s.kb,windowClass:s.wc,size:s.ws,animation:s.anim,resolve:{data:function(){return{header:angular.copy(n),msg:angular.copy(e),fa:r}}}})},confirm:function(n,e,s){return s=d(s),a.open({templateUrl:"/dialogs/confirm.html",controller:"confirmDialogCtrl",backdrop:s.bd,backdropClass:s.bdc,keyboard:s.kb,windowClass:s.wc,size:s.ws,animation:s.anim,resolve:{data:function(){return{header:angular.copy(n),msg:angular.copy(e),fa:r}}}})},create:function(n,e,s,o){var l=o&&angular.isDefined(o.copy)?o.copy:t;return o=d(o),a.open({templateUrl:n,controller:e,keyboard:o.kb,backdrop:o.bd,backdropClass:o.bdc,windowClass:o.wc,size:o.ws,animation:o.anim,resolve:{data:function(){return l?angular.copy(s):s}}})}}}]}]),angular.module("dialogs.main",["dialogs.services","ngSanitize"]).config(["$translateProvider","dialogsProvider",function(a,n){try{angular.module("pascalprecht.translate")}catch(e){a.translations("en-US",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"An unknown error has occurred.",DIALOGS_CLOSE:"Close",DIALOGS_PLEASE_WAIT:"Please Wait",DIALOGS_PLEASE_WAIT_ELIPS:"Please Wait...",DIALOGS_PLEASE_WAIT_MSG:"Waiting on operation to complete.",DIALOGS_PERCENT_COMPLETE:"% Complete",DIALOGS_NOTIFICATION:"Notification",DIALOGS_NOTIFICATION_MSG:"Unknown application notification.",DIALOGS_CONFIRMATION:"Confirmation",DIALOGS_CONFIRMATION_MSG:"Confirmation required.",DIALOGS_OK:"OK",DIALOGS_YES:"Yes",DIALOGS_NO:"No"})}try{var s=document.styleSheets;a:for(var t=s.length-1;t>=0;t--){var o=null,l=null;if(!s[t].disabled){if(null!==s[t].href&&(o=s[t].href.match(/font\-*awesome/i)),angular.isArray(o)){n.useFontAwesome();break}l=s[t].cssRules;for(var i=l.length-1;i>=0;i--)if(".fa"==l[i].selectorText.toLowerCase()){n.useFontAwesome();break a}}}}catch(e){}}]).run(["$templateCache","$interpolate",function(a,n){var e=n.startSymbol(),s=n.endSymbol();a.put("/dialogs/error.html",'"),a.put("/dialogs/wait.html",'"),a.put("/dialogs/notify.html",'"),a.put("/dialogs/confirm.html",'")}])}(); \ No newline at end of file diff --git a/package.json b/package.json index ea838f9..cf0ecd5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "angular-dialog-service", "description": "A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal", - "version": "5.2.9", + "version": "5.2.10", "keywords": [ "angular", "dialog",