From 0581bba4c66c4a53b71ebf5e3b88108a380e2aaa Mon Sep 17 00:00:00 2001 From: Romans Malinovskis Date: Thu, 26 Jul 2018 13:56:45 +0100 Subject: [PATCH] Build release 1.5.6 --- public/.gitignore | 5 +++++ public/agileui.css | 1 + public/agileui.css.map | 1 + public/agileui.min.js | 1 + public/atkjs-ui.min.js | 1 + 5 files changed, 9 insertions(+) create mode 100644 public/agileui.css create mode 100644 public/agileui.css.map create mode 100644 public/agileui.min.js create mode 100644 public/atkjs-ui.min.js diff --git a/public/.gitignore b/public/.gitignore index a79ae128ba..6cf346eba5 100644 --- a/public/.gitignore +++ b/public/.gitignore @@ -3,3 +3,8 @@ !agileui.js !agileui.less !.gitignore +!agileui.css +!agileui.css.map +!agileui.min.js +!atkjs-ui.js +!atkjs-ui.min.js diff --git a/public/agileui.css b/public/agileui.css new file mode 100644 index 0000000000..2fa45579fe --- /dev/null +++ b/public/agileui.css @@ -0,0 +1 @@ +.ui.visible.left.sidebar~header.atk-topMenu.ui.menu.fixed{width:calc(100% - 260px)}.ui.visible.left.sidebar~.atk-mainContainer,.ui.visible.left.sidebar~footer.atk-footer{padding-left:260px}.atk-layout{display:flex;min-height:100vh;flex-direction:column}.atk-topMenuGhost.ui.menu{display:none;margin:0;pointer-events:none;visibility:hidden}header.atk-topMenu.ui.fixed.menu~.atk-topMenuGhost{display:block}header.atk-topMenu.ui.menu .item>.label{margin-left:0}.atk-mainContainer{flex:1}.atk-mainContainer .atk-mainContainerWrapper{padding:3em}footer.atk-footer .ui.divider,footer.atk-footer .ui.segment{margin:0}.ui.left.sidebar{z-index:103}.ui.left.sidebar .item.atk-leftMenuClose{display:none;position:fixed;right:0;top:0;z-index:999}.ui.left.sidebar .item.atk-leftMenuClose i.icon{margin-left:0!important}.atk-table-dropdown{display:inline;float:right}.atk-table-dropdown i{opacity:.3;vertical-align:bottom}.ui.table.atk-overflow-auto{overflow:auto}.ui.table.atk-overflow-auto>.ui.table{border:none}.atk-cell-expanded{min-width:320px;max-width:640px;white-space:normal}.atk-overlay.pushable{height:100%;left:0;opacity:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:102}.atk-overlay.pushable .pusher:after{height:100%;opacity:1;width:100%}@media (max-width:991px){.ui.left.sidebar~header.atk-topMenu.ui.menu.fixed{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);width:100%!important}.ui.visible.left.sidebar~.atk-mainContainer,.ui.visible.left.sidebar~footer.atk-footer{padding-left:0}.ui.left.sidebar{opacity:0;pointer-events:none;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:visible}body.atk-leftMenu-visible:after{left:0;position:fixed;top:0}body.atk-leftMenu-visible .ui.left.sidebar{opacity:1;pointer-events:auto}body.atk-leftMenu-visible .ui.left.sidebar .atk-leftMenuClose{display:block}}@media (min-width:768px) and (max-width:991px){body.atk-leftMenu-visible .atk-overlay.pushable{opacity:1}}@media (max-width:767px){body.atk-leftMenu-visible{overflow:hidden}.ui.left.sidebar{width:100%}}@media print{.ui.visible.left.sidebar~.atk-mainContainer,.ui.visible.left.sidebar~footer.atk-footer{padding-left:0}.atk-topMenu,.atk-topMenuGhost,.ui.left.sidebar{display:none!important}}/*# sourceMappingURL=agileui.css.map */ \ No newline at end of file diff --git a/public/agileui.css.map b/public/agileui.css.map new file mode 100644 index 0000000000..7dd71bc1f7 --- /dev/null +++ b/public/agileui.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["agileui.less"],"names":[],"mappings":"AASqD,0DACnD,MAAA,mBAEuB,4CACQ,2CAC/B,aAAA,MAGF,YACE,QAAA,KACA,WAAA,MACA,eAAA,OAEkB,0BAClB,QAAA,KACA,OAAA,EACA,eAAA,KACA,WAAA,OAE+B,mDAC/B,QAAA,MAE+B,wCAC/B,YAAA,EAEF,mBACE,KAAA,EACA,6CACE,QAAA,IAIC,8BAAa,8BACd,OAAA,EAMI,iBACN,QAAA,IACK,yCACH,QAAA,KACA,SAAA,MACA,MAAA,EACA,IAAA,EACA,QAAA,IACC,gDACC,YAAA,YASN,oBACE,QAAA,OACA,MAAA,MAGkB,sBAClB,QAAA,GACA,eAAA,OAMO,4BACP,SAAA,KACI,sCACF,YAGJ,mBACE,UAAA,MACA,UAAA,MACA,YAAA,OAEU,sBACV,OAAA,KACA,KAAA,EACA,QAAA,EACA,eAAA,KACA,SAAA,MACA,IAAA,EACA,MAAA,KACA,QAAA,IAEG,oCACC,OAAA,KACA,QAAA,EACA,MAAA,KAQoC,yBACK,kDAC3C,kBAAmB,mBACnB,UAAW,mBACX,MAAA,eAEuB,4CACQ,2CAC/B,aAAA,EAEM,iBACN,QAAA,EACA,eAAA,KACA,kBAAmB,mBACnB,UAAW,mBACX,WAAA,QAGC,gCACC,KAAA,EACA,SAAA,MACA,IAAA,EAEM,2CACN,QAAA,EACA,eAAA,KACA,8DACE,QAAA,OAKgE,+CAChC,gDACpC,QAAA,GAGqC,yBACnC,0BACF,SAAA,OAEM,iBACN,MAAA,MAOJ,aAC2B,4CACQ,2CAC/B,aAAA,EAEgB,aAAc,kBAAxB,iBACN,QAAA"} \ No newline at end of file diff --git a/public/agileui.min.js b/public/agileui.min.js new file mode 100644 index 0000000000..7367a578d1 --- /dev/null +++ b/public/agileui.min.js @@ -0,0 +1 @@ +$(function(){$(".ui.left.sidebar").prepend(''),$(".atk-leftMenuClose").click(function(){$("body").removeClass("atk-leftMenu-visible")}),$(".atk-leftMenuTrigger").click(function(ev){ev.preventDefault(),ev.stopPropagation(),$(".ui.left.sidebar").toggleClass("visible"),$("body").toggleClass("atk-leftMenu-visible")})}); diff --git a/public/atkjs-ui.min.js b/public/atkjs-ui.min.js new file mode 100644 index 0000000000..13279c56eb --- /dev/null +++ b/public/atkjs-ui.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jQuery"),require("Draggable")):"function"==typeof define&&define.amd?define("atk",["jQuery","Draggable"],t):"object"==typeof exports?exports.atk=t(require("jQuery"),require("Draggable")):e.atk=t(e.jQuery,e.Draggable)}(this,function(__WEBPACK_EXTERNAL_MODULE_0__,__WEBPACK_EXTERNAL_MODULE_22__){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=23)}([function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE_0__},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,""),jQuery),apiService.afterSuccessCallbacks.length>0){var i=this,o=apiService.afterSuccessCallbacks;o.forEach(function(e){apiService.evalResponse.call(i,e,jQuery)}),apiService.afterSuccessCallbacks.splice(0)}}else if(e.isServiceError)throw{message:e.message}}catch(e){apiService.showErrorModal(apiService.getErrorHtml(e.message))}}},{key:"onAfterSuccess",value:function(e){this.afterSuccessCallbacks.push(e)}},{key:"successTest",value:function(e){return!!e.success&&(this.data={},!0)}},{key:"atkSuccessTest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.success?this.onSuccess(e,t):this.onFailure(e)}},{key:"onFailure",value:function(e){if(e.hasOwnProperty("success")&&!e.success)e.hasOwnProperty("useWindow")&&e.useWindow?apiService.showErrorWindow(e.message):apiService.showErrorModal(e.message);else{var t=e.match(/]*>[\s\S]*<\/body>/gi);t?apiService.showErrorModal(t):apiService.showErrorModal(e)}}},{key:"showErrorModal",value:function(e){var t=(0,_jquery2.default)("
").appendTo("body").addClass("ui scrolling modal").css("padding","1em").html(e);t.modal({duration:100,allowMultiple:!1,onHide:function(){return t.children().remove(),!0}}).modal("show").modal("refresh")}},{key:"showErrorWindow",value:function(e){var t;(0,_jquery2.default)('
').css((t={padding:"8px","background-color":"rgba(0, 0, 0, 0.5)"},_defineProperty(t,"padding","4px"),_defineProperty(t,"margin","auto"),_defineProperty(t,"width","100%"),_defineProperty(t,"height","100%"),_defineProperty(t,"position","fixed"),_defineProperty(t,"top",0),_defineProperty(t,"bottom",0),_defineProperty(t,"z-index","100000"),_defineProperty(t,"overflow-y","scroll"),t)).html((0,_jquery2.default)("
").css({width:"70%","margin-top":"4%","margin-bottom":"4%","margin-left":"auto","margin-right":"auto",background:"white",padding:"4px","overflow-x":"scroll"}).html(e).prepend((0,_jquery2.default)('').css("float","right").click(function(){var e=(0,_jquery2.default)(this).parents(".atk-exception");e.hide(),e.remove()}))).appendTo("body")}},{key:"getErrorHtml",value:function(e){return'
\n \n
\n
Javascript Error
\n
'+e+"
\n
\n
"}}]),ApiService}(),apiService=new ApiService;Object.freeze(apiService),exports.default=apiService,module.exports=exports.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1?this.getContainer(n.parent(),t):0===n.length?null:n}},{key:"getField",value:function(e,t){return e.find("#"+t).length>0?e.find("#"+t):e.find('[name="'+t+'"]').length>0?e.find('[name="'+t+'"]'):e.find('[name="'+t+'[]"]').length>0&&e.find('[name="'+t+'[]"]')}},{key:"getFieldValue",value:function(e){return e.length>1?e.filter(":checked").val():e.val()}},{key:"getRuleFunction",value:function(e){return this.formSettings.rules[e]}},{key:"getAncillaryValue",value:function(e){return!(!e.value&&!this.isBracketedRule(e))&&(void 0===e.value||null===e.value?e.type.match(this.formSettings.regExp.bracket)[1]+"":e.value)}},{key:"getRuleName",value:function(e){return this.isBracketedRule(e)?e.type.replace(e.type.match(this.formSettings.regExp.bracket)[0],""):e.type}},{key:"isBracketedRule",value:function(e){return e.type&&e.type.match(this.formSettings.regExp.bracket)}}]),e}(),l=new s;Object.freeze(l),t.default=l,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:[],i=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,t){},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return new window.XMLHttpRequest},a=new FormData,s=0;s=0?"&":"?")+e.param(n)),t}}(jQuery),t.default=function(e){e.atkAddParams=e.atk.addParams}(jQuery),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.default.atk||(s.default.atk=new Object);var i="atk"+e,o="__"+i,r=s.default.fn[i];s.default.atk[e]=t,s.default.fn[i]=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof n&&this.data(o)&&"function"==typeof this.data(o)[n]?this.data(o).call(n,i):this.each(function(){var i=s.default.extend({},t.DEFAULTS,"object"===(void 0===n?"undefined":a(n))&&n);(0,s.default)(this).data(o,new s.default.atk[e](this,i))})},n&&(s.default[i]=function(e){return(0,s.default)({})[i](e)}),s.default.fn[i].noConflict=function(){return s.default.fn[i]=r}}function r(){[{name:"Spinner",plugin:c.default,sh:!1},{name:"ReloadView",plugin:h.default,sh:!1},{name:"Ajaxec",plugin:y.default,sh:!1},{name:"CreateModal",plugin:b.default,sh:!1},{name:"Notify",plugin:_.default,sh:!0},{name:"ServerEvent",plugin:d.default,sh:!0},{name:"FileUpload",plugin:k.default,sh:!1},{name:"JsSearch",plugin:O.default,sh:!1},{name:"JsSortable",plugin:x.default,sh:!1},{name:"ConditionalForm",plugin:C.default,sh:!0}].forEach(function(e){o(e.name,e.plugin,e.sh)})}Object.defineProperty(t,"__esModule",{value:!0}),t.createAtkplugins=t.plugin=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=n(0),s=i(u),l=n(18),c=i(l),f=n(17),d=i(f),p=n(16),h=i(p),v=n(9),y=i(v),g=n(11),b=i(g),m=n(15),_=i(m),w=n(12),k=i(w),S=n(13),O=i(S),j=n(14),x=i(j),E=n(10),C=i(E);t.plugin=o,t.createAtkplugins=r},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],r=/\\?(.?)/gi,a=function(e,t){return i[e]?i[e]():t},u=function(e,t){for(e=String(e);e.length9?-1:0)},Y:function(){return n.getFullYear()},y:function(){return i.Y().toString().slice(-2)},a:function(){return n.getHours()>11?"pm":"am"},A:function(){return i.a().toUpperCase()},B:function(){var e=3600*n.getUTCHours(),t=60*n.getUTCMinutes(),i=n.getUTCSeconds();return u(Math.floor((e+t+i+3600)/86.4)%1e3,3)},g:function(){return i.G()%12||12},G:function(){return n.getHours()},h:function(){return u(i.g(),2)},H:function(){return u(i.G(),2)},i:function(){return u(n.getMinutes(),2)},s:function(){return u(n.getSeconds(),2)},u:function(){return u(1e3*n.getMilliseconds(),6)},e:function(){throw new Error("Not supported (see source code of date() for timezone on how to add support)")},I:function(){return new Date(i.Y(),0)-Date.UTC(i.Y(),0)!=new Date(i.Y(),6)-Date.UTC(i.Y(),6)?1:0},O:function(){var e=n.getTimezoneOffset(),t=Math.abs(e);return(e>0?"-":"+")+u(100*Math.floor(t/60)+t%60,4)},P:function(){var e=i.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(r,a)},r:function(){return"D, d M Y H:i:s O".replace(r,a)},U:function(){return n/1e3|0}},function(e,t){return n=void 0===t?new Date:t instanceof Date?new Date(t):new Date(1e3*t),e.replace(r,a)}(e,t)}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n').appendTo("body").html(this.getDialogHtml(e.title));t.data({uri:e.uri,type:e.mode,args:e.uri_options,needRemove:!0,needCloseTrigger:!0,label:e.label}),t.modal(e.modal).modal("show")}},{key:"getDialogHtml",value:function(e){return'\n
'+e+'
\n
\n
\n
'}}]),t}(l.default);t.default=d,d.DEFAULTS={title:"",uri:null,uri_options:{},icon:"",label:"Loading...",modal:{duration:100}},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n0&&(e.textInput.val(t.target.files[0].name),e.doFileUpload(t.target.files))})}},{key:"setState",value:function(e){var t=this;switch(e){case"delete":this.action.html(this.getEraseContent),setTimeout(function(){t.bar.progress("reset"),t.bar.hide("fade")},1e3);break;case"upload":this.action.html(this.actionContent),this.textInput.val(""),this.fileInput.val(""),this.hiddenInput.val(""),this.$el.data().fileId=null}}},{key:"doFileUpload",value:function(e){var t=this;this.settings.submit&&$("#"+this.settings.submit).addClass("disabled");var n=function(e,n){e.success&&(t.bar.progress("set label",t.settings.completeLabel),t.setState("delete")),t.settings.submit&&$("#"+t.settings.submit).removeClass("disabled")},i=function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var n=e.loaded/e.total;t.bar.progress("set percent",parseInt(100*n))}},!1),e};t.bar.show(),f.default.uploadFiles(e,this.$el,{action:"upload"},this.settings.uri,n,i)}},{key:"doFileDelete",value:function(e){var t=this;this.$el.api({on:"now",url:this.settings.uri,data:{action:"delete",f_name:e},method:"POST",obj:this.$el,onComplete:function(e,n){e.success&&t.setState("upload")}})}},{key:"getEraseContent",value:function(){return''}}]),t}(l.default);t.default=d,d.DEFAULTS={uri:null,file:{id:null,name:null},uri_options:{},hasFocus:!0,action:null,completeLabel:"100%",submit:null},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:function(){};this.$el.api({on:"now",url:e,data:t,method:"GET",obj:this.$el,stateContext:this.searchAction,onComplete:n})}}]),t}(l.default);t.default=d,d.DEFAULTS={uri:null,uri_options:{},q:null},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return this.settings.uri_options&&e?f.default.atkAddParams(this.settings.uri,f.default.extend({},this.settings.uri_options,e)):this.settings.uri_options?f.default.atkAddParams(this.settings.uri,this.settings.uri_options):this.settings.uri}},{key:"injectStyles",value:function(e){(0,f.default)("head").append('")}}]),t}(l.default);t.default=d,d.DEFAULTS={uri:null,uri_options:null,container:"tbody",draggable:"tr",dataLabel:"id",handleClass:null,mirrorCss:".draggable-mirror {background: #fff!important;margin-left: 1%;opacity: 0.9;}",overCss:".draggable--over { background: yellow !important; opacity: 0.5;}",autoFireCb:!0},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n \n
\n \n
\n \n '+e.content+"\n
\n
\n
"}},{key:"removeNotifier",value:function(e){var t=e.data.self;clearTimeout(t.timer),t.notify.transition(t.settings.closeTransition),t.notify.remove()}},{key:"getClasses",value:function(e){return{base:{position:"body"===e?"fixed":"absolute","z-index":9999}}}},{key:"getPosition",value:function(e){return{topLeft:{top:"0px",left:"0px"},topCenter:{margin:"auto",top:"0px",left:"0px",right:"0px"},topRight:{top:"0px",right:"0px"},bottomLeft:{bottom:"0px",left:"0px"},bottomCenter:{margin:"auto",bottom:"0px",left:"0px",right:"0px"},bottomRight:{bottom:"0px",right:"0px"},center:{margin:"auto",top:"0px",left:"0px",bottom:"0px",right:"0px","max-height":"1%"}}[e]}}]),t}(l.default);t.default=d,d.DEFAULTS={color:"green",size:"small",icon:null,content:null,width:100,closeTransition:"scale",openTransition:"scale",duration:3e3,opacity:"1",position:"topLeft"},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.timer=setTimeout(function(){n&&e.empty(),e.append(t)},500)}},{key:"remove",value:function(){clearTimeout(this.timer),this.$el.find(".loader").remove()}}]),t}(f.default);t.default=d,d.DEFAULTS={active:!1,replace:!1,dimmed:!1,inline:!1,indeterminate:!1,loaderText:"Loading",centered:!1,baseDimmerMarkup:'
',baseLoaderMarkup:'
'},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1&&(e.css("position","absolute"),this.modals[this.modals.length-2].css("opacity",0)),1===this.modals.length&&(0,u.default)(document).on("keyup.atk.modalService",function(e){27===e.keyCode&&t.modals.length>0&&t.modals[t.modals.length-1].modal("hide")})}},{key:"removeModal",value:function(e){e.data().needRemove&&e.remove(),this.modals.pop(),this.setCloseTriggerEventInModals(),this.hideShowCloseIcon(),this.modals.length>0&&(e.css("position",""),this.modals[this.modals.length-1].css("opacity","")),0===this.modals.length&&(0,u.default)(document).off("atk.modalService")}},{key:"doAutoFocus",value:function(e){var t=e.find("[tabindex], :input").filter(":visible"),n=t.filter("[autofocus]"),i=n.length>0?n.first():t.first();i.length>0&&i.focus().select()}},{key:"setCloseTriggerEventInModals",value:function(){for(var e=this,t=function(t){var n=e.modals[t];n.data().needCloseTrigger?n.on("close",".atk-dialog-content",function(){n.modal("hide")}):n.off("close",".atk-dialog-content")},n=this.modals.length-1;n>=0;--n)t(n)}},{key:"hideShowCloseIcon",value:function(){for(var e=this.modals.length-1;e>=0;--e){var t=this.modals[e];e===this.modals.length-1?(t.find("i.icon.close").show(),t.data("isClosable",!0)):(t.find("i.icon.close").hide(),t.data("isClosable",!1))}}},{key:"getLoader",value:function(e){return'
\n
'+e+"
"}}]),e}(),l=new s;Object.freeze(l),t.default=l,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n\n
'}}]),e}()),s=new u;Object.freeze(s),t.default=s,e.exports=t.default},function(e,t){e.exports=function(e,t,n){function i(){var l=Date.now()-u;l=0?o=setTimeout(i,t-l):(o=null,n||(s=e.apply(a,r),a=r=null))}var o,r,a,u,s;null==t&&(t=100);var l=function(){a=this,r=arguments,u=Date.now();var l=n&&!o;return o||(o=setTimeout(i,t)),l&&(s=e.apply(a,r),a=r=null),s};return l.clear=function(){o&&(clearTimeout(o),o=null)},l.flush=function(){o&&(s=e.apply(a,r),a=r=null,clearTimeout(o),o=null)},l}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE_22__},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=n(5),r=i(o);n(6);var a=n(7),u=n(8),s=i(u);(0,a.createAtkplugins)(),r.default.version=function(){return"1.3.7"},r.default.registerPlugin=a.plugin,r.default.phpDate=s.default,e.exports=r.default}])}); \ No newline at end of file