diff --git a/app/app.js b/app/app.js index d5837f3..d1a5051 100644 --- a/app/app.js +++ b/app/app.js @@ -3,7 +3,6 @@ import 'angular-material-icons.css'; import 'angular-busy.css'; import './app.scss'; -import 'svg-morpheus'; import angular from 'angular'; import 'angular-material'; import './sanji-window'; diff --git a/app/sanji-window/sanji-window.scss b/app/sanji-window/sanji-window.scss index bf531d6..ba10074 100644 --- a/app/sanji-window/sanji-window.scss +++ b/app/sanji-window/sanji-window.scss @@ -3,20 +3,6 @@ $card-header-btn-height: 42px; $card-header-btn-width: 42px; $card-header-color: #5e5e5e; -.sj-header-color { - color: $card-header-color; - fill: currentColor; -} - -.sj-menu-icon { - background-repeat: no-repeat no-repeat; - display: inline-block; - vertical-align: middle; - height: 24px; - width: 24px; - margin: auto 3px auto 0; -} - .sj-window { position: relative; diff --git a/app/sanji-window/sanji-window.tpl.html b/app/sanji-window/sanji-window.tpl.html index ceed2cf..ede7fb0 100644 --- a/app/sanji-window/sanji-window.tpl.html +++ b/app/sanji-window/sanji-window.tpl.html @@ -5,11 +5,11 @@

{{vm.windowName}}

- + - + @@ -17,7 +17,7 @@

{{vm.windowName}}

ng-click="vm.sanjiWindowMgr.navigateTo(state.name)">

-
diff --git a/dist/angular-sanji-window.css b/dist/angular-sanji-window.css index 7fe1198..f480f39 100644 --- a/dist/angular-sanji-window.css +++ b/dist/angular-sanji-window.css @@ -1,2 +1,2 @@ -.sj-header-color{color:#5e5e5e;fill:currentColor}.sj-menu-icon{background-repeat:no-repeat no-repeat;display:inline-block;vertical-align:middle;height:24px;width:24px;margin:auto 3px auto 0}.sj-window{position:relative}.sj-window>.sj-window-header{padding-top:0;padding-bottom:0;background-color:#f7f7f7;color:#5e5e5e}.sj-window>.sj-window-header .sj-window-btn-group{text-align:right}.sj-window-loading{position:absolute;padding-top:50px;top:0;bottom:0;left:0;right:0;background-color:#fff;opacity:.7;z-index:1001}.animate-if.ng-leave,.sj-window-loading.ng-enter{transition:all cubic-bezier(.25,.46,.45,.94) .5s}.sj-window-loading.ng-enter,.sj-window-loading.ng-leave.ng-leave-active{opacity:0}.sj-window-loading.ng-enter.ng-enter-active,.sj-window-loading.ng-leave{opacity:.7}.sj-spinner-bg{background-color:#fff;padding:5px!important;border-radius:50%} +.sj-window{position:relative}.sj-window>.sj-window-header{padding-top:0;padding-bottom:0;background-color:#f7f7f7;color:#5e5e5e}.sj-window>.sj-window-header .sj-window-btn-group{text-align:right}.sj-window-loading{position:absolute;padding-top:50px;top:0;bottom:0;left:0;right:0;background-color:#fff;opacity:.7;z-index:1001}.animate-if.ng-leave,.sj-window-loading.ng-enter{transition:all cubic-bezier(.25,.46,.45,.94) .5s}.sj-window-loading.ng-enter,.sj-window-loading.ng-leave.ng-leave-active{opacity:0}.sj-window-loading.ng-enter.ng-enter-active,.sj-window-loading.ng-leave{opacity:.7}.sj-spinner-bg{background-color:#fff;padding:5px!important;border-radius:50%} /*# sourceMappingURL=angular-sanji-window.css.map*/ \ No newline at end of file diff --git a/dist/angular-sanji-window.js b/dist/angular-sanji-window.js index dabb5b6..308912e 100644 --- a/dist/angular-sanji-window.js +++ b/dist/angular-sanji-window.js @@ -1,2 +1,2 @@ -!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("angular"),require("angular-busy"),require("angular-material"),require("angular-material-icons")):"function"==typeof define&&define.amd?define(["angular","angular-busy","angular-material","angular-material-icons"],e):"object"==typeof exports?exports.sjWindow=e(require("angular"),require("angular-busy"),require("angular-material"),require("angular-material-icons")):n.sjWindow=e(n.angular,n.ngBusy,n.ngMaterial,n.ngMdIcons)}(this,function(n,e,t,i){return function(n){function e(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return n[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var t={};return e.m=n,e.c=t,e.p="",e(0)}([function(n,e,t){"use strict";function i(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(e,"__esModule",{value:!0});var r=t(9),a=i(r),o=t(11),u=i(o),c=t(12),s=i(c);t(10),t(1),t(8),t(7);var l=t(6),d=i(l),f=t(4),m=i(f),h=t(2),v=i(h),p=t(5),g=i(p),w=t(3),y=i(w),j=a["default"].module("sanji.window",[u["default"],s["default"],"cgBusy"]);j.factory("sanjiWindowService",d["default"].factory),j.controller("SanjiWindowController",m["default"]),j.controller("SanjiWindowStateController",v["default"]),j.directive("sanjiWindow",g["default"].directiveFactory),j.directive("sanjiWindowState",y["default"].directiveFactory),e["default"]=j=j.name,n.exports=e["default"]},function(n,e){},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;ta;a++)r[a]=arguments[a];t(this,n),n.$inject.forEach(function(n,t){return e[n]=r[t]})}return i(n,[{key:"init",value:function(n,e){this.sanjiWindowMgr=n.sanjiWindowMgr,void 0!==this.stateName&&n.register({name:this.stateName,linkName:this.linkName,icon:this.icon,isDefault:void 0!==e.defaultState})}}]),n}();a.$inject=r,e["default"]=a,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;t
'}return i(n,[{key:"link",value:function(n,e,t,i,r){i[0].init(i[1],t)}}],[{key:"directiveFactory",value:function(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];return n.instance=new n(t),n.instance}}]),n}();o.directiveFactory.$inject=a,e["default"]=o,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;ta;a++)r[a]=arguments[a];t(this,n),n.$inject.forEach(function(n,t){return e[n]=r[t]}),this.sanjiWindowMgr=this.sanjiWindowService.create(this.windowId,{name:this.windowName}),this.$scope.$on("$destroy",function(){e.sanjiWindowMgr.clearStates(),e.sanjiWindowService.destroy(e.sanjiWindowMgr.getId())})}return i(n,[{key:"register",value:function(n){var e=this.sanjiWindowMgr;n.isDefault&&e.navigateTo(n.name),e.addState(n)}},{key:"refresh",value:function(){this.$rootScope.$broadcast("sj:window:refresh",{id:this.windowId,promise:this.sanjiWindowMgr.promise})}}]),n}();a.$inject=r,e["default"]=a,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;ti;i++)t[i]=arguments[i];return n.instance=new n(t),n.instance}}]),n}();o.directiveFactory.$inject=a,e["default"]=o,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;t\n \n \n

{{vm.windowName}}

\n
\n \n \n \n \n \n \n \n \n \n \n
\n

\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n ';t.run(["$templateCache",function(n){n.put("sanji-window.tpl.html",a)}]),n.exports=a},function(e,t){e.exports=n},function(n,t){n.exports=e},function(n,e){n.exports=t},function(n,e){n.exports=i}])}); +!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("angular"),require("angular-busy"),require("angular-material"),require("angular-material-icons")):"function"==typeof define&&define.amd?define(["angular","angular-busy","angular-material","angular-material-icons"],e):"object"==typeof exports?exports.sjWindow=e(require("angular"),require("angular-busy"),require("angular-material"),require("angular-material-icons")):n.sjWindow=e(n.angular,n.ngBusy,n.ngMaterial,n.ngMdIcons)}(this,function(n,e,t,i){return function(n){function e(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return n[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var t={};return e.m=n,e.c=t,e.p="",e(0)}([function(n,e,t){"use strict";function i(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(e,"__esModule",{value:!0});var r=t(9),a=i(r),o=t(11),u=i(o),c=t(12),s=i(c);t(10),t(1),t(8),t(7);var l=t(6),d=i(l),f=t(4),m=i(f),h=t(2),v=i(h),p=t(5),g=i(p),w=t(3),y=i(w),b=a["default"].module("sanji.window",[u["default"],s["default"],"cgBusy"]);b.factory("sanjiWindowService",d["default"].factory),b.controller("SanjiWindowController",m["default"]),b.controller("SanjiWindowStateController",v["default"]),b.directive("sanjiWindow",g["default"].directiveFactory),b.directive("sanjiWindowState",y["default"].directiveFactory),e["default"]=b=b.name,n.exports=e["default"]},function(n,e){},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;ta;a++)r[a]=arguments[a];t(this,n),n.$inject.forEach(function(n,t){return e[n]=r[t]})}return i(n,[{key:"init",value:function(n,e){this.sanjiWindowMgr=n.sanjiWindowMgr,void 0!==this.stateName&&n.register({name:this.stateName,linkName:this.linkName,icon:this.icon,isDefault:void 0!==e.defaultState})}}]),n}();a.$inject=r,e["default"]=a,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;t'}return i(n,[{key:"link",value:function(n,e,t,i,r){i[0].init(i[1],t)}}],[{key:"directiveFactory",value:function(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];return n.instance=new n(t),n.instance}}]),n}();o.directiveFactory.$inject=a,e["default"]=o,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;ta;a++)r[a]=arguments[a];t(this,n),n.$inject.forEach(function(n,t){return e[n]=r[t]}),this.sanjiWindowMgr=this.sanjiWindowService.create(this.windowId,{name:this.windowName}),this.$scope.$on("$destroy",function(){e.sanjiWindowMgr.clearStates(),e.sanjiWindowService.destroy(e.sanjiWindowMgr.getId())})}return i(n,[{key:"register",value:function(n){var e=this.sanjiWindowMgr;n.isDefault&&e.navigateTo(n.name),e.addState(n)}},{key:"refresh",value:function(){this.$rootScope.$broadcast("sj:window:refresh",{id:this.windowId,promise:this.sanjiWindowMgr.promise})}}]),n}();a.$inject=r,e["default"]=a,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;ti;i++)t[i]=arguments[i];return n.instance=new n(t),n.instance}}]),n}();o.directiveFactory.$inject=a,e["default"]=o,n.exports=e["default"]},function(n,e){"use strict";function t(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(n,e){for(var t=0;t\n \n \n

{{vm.windowName}}

\n
\n \n \n \n \n \n \n \n \n \n \n
\n

\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n ';t.run(["$templateCache",function(n){n.put("sanji-window.tpl.html",a)}]),n.exports=a},function(e,t){e.exports=n},function(n,t){n.exports=e},function(n,e){n.exports=t},function(n,e){n.exports=i}])}); //# sourceMappingURL=angular-sanji-window.js.map \ No newline at end of file diff --git a/dist/angular-sanji-window.js.map b/dist/angular-sanji-window.js.map index 3a2dc6c..347d2dd 100644 --- a/dist/angular-sanji-window.js.map +++ b/dist/angular-sanji-window.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///angular-sanji-window.js","webpack:///webpack/bootstrap 9a415bfcf3ffbddb87e5","webpack:///./sanji-window/index.js","webpack:///./sanji-window/index.js?81c3","webpack:///./sanji-window/sanji-window-state.controller.js","webpack:///./sanji-window/sanji-window-state.controller.js?432c","webpack:///./sanji-window/sanji-window-state.directive.js","webpack:///./sanji-window/sanji-window-state.directive.js?e548","webpack:///./sanji-window/sanji-window.controller.js","webpack:///./sanji-window/sanji-window.controller.js?8a83","webpack:///./sanji-window/sanji-window.directive.js","webpack:///./sanji-window/sanji-window.directive.js?5732","webpack:///./sanji-window/sanji-window.service.js","webpack:///./sanji-window/sanji-window.service.js?244b","webpack:///./sanji-window/sanji-window-loading.tpl.html","webpack:///./sanji-window/sanji-window.tpl.html","webpack:///external {\"root\":\"angular\",\"commonjs2\":\"angular\",\"commonjs\":\"angular\",\"amd\":\"angular\"}","webpack:///external {\"root\":\"ngBusy\",\"commonjs2\":\"angular-busy\",\"commonjs\":\"angular-busy\",\"amd\":\"angular-busy\"}","webpack:///external {\"root\":\"ngMaterial\",\"commonjs2\":\"angular-material\",\"commonjs\":\"angular-material\",\"amd\":\"angular-material\"}","webpack:///external {\"root\":\"ngMdIcons\",\"commonjs2\":\"angular-material-icons\",\"commonjs\":\"angular-material-icons\",\"amd\":\"angular-material-icons\"}"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_9__","__WEBPACK_EXTERNAL_MODULE_10__","__WEBPACK_EXTERNAL_MODULE_11__","__WEBPACK_EXTERNAL_MODULE_12__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","_angular","_angular2","_angularMaterial","_angularMaterial2","_angularMaterialIcons","_angularMaterialIcons2","_sanjiWindowService","_sanjiWindowService2","_sanjiWindowController","_sanjiWindowController2","_sanjiWindowStateController","_sanjiWindowStateController2","_sanjiWindowDirective","_sanjiWindowDirective2","_sanjiWindowStateDirective","_sanjiWindowStateDirective2","app","controller","directive","directiveFactory","name","_classCallCheck","instance","Constructor","TypeError","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","prototype","$inject","SanjiWindowStateController","_this","_len","arguments","injects","Array","_key","forEach","item","index","topCtrl","attrs","sanjiWindowMgr","undefined","stateName","register","linkName","icon","isDefault","defaultState","injectMap","WeakMap","SanjiWindowStateDirective","set","restrict","replace","transclude","scope","controllerAs","bindToController","template","element","ctrl","init","SanjiWindowController","sanjiWindowService","create","windowId","windowName","$scope","$on","clearStates","destroy","getId","state","navigateTo","addState","$rootScope","$broadcast","promise","SanjiWindowDirective","templateUrl","showLoadingBtn","SanjiWindowService","collection","push","idx","findIndex","splice","find","options","Error","_isIdExist","sanjiWindowInstance","states","links","navigateContent","_addInstance","ngModule","angular","window","e","v1","run","put"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,WAAAA,QAAA,gBAAAA,QAAA,oBAAAA,QAAA,2BACA,kBAAAC,gBAAAC,IACAD,QAAA,sEAAAJ,GACA,gBAAAC,SACAA,QAAA,SAAAD,EAAAG,QAAA,WAAAA,QAAA,gBAAAA,QAAA,oBAAAA,QAAA,2BAEAJ,EAAA,SAAAC,EAAAD,EAAA,QAAAA,EAAA,OAAAA,EAAA,WAAAA,EAAA,YACCO,KAAA,SAAAC,EAAAC,EAAAC,EAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAZ,OAGA,IAAAC,GAAAY,EAAAD,IACAZ,WACAc,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAf,EAAAD,QAAAC,IAAAD,QAAAW,GAGAV,EAAAc,QAAA,EAGAd,EAAAD,QAvBA,GAAAa,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAASV,EAAQD,EAASW,GEtDhC,YAMA,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,UAAWF,GAJzFG,OAAOC,eAAezB,EAAS,cAC7B0B,OAAO,GAKT,IAAIC,GAAWhB,ECRK,GDUhBiB,EAAYR,EAAuBO,GAEnCE,EAAmBlB,ECXA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I,GAASH,EAAAC,EAAAvI,OAAA,SACT,GAAA0I,GAAA,suDACAJ,GAAAK,KAAA,0BAAA1H,GAA2CA,EAAA2H,IAAA,wBAAAF,MAC3C1I,EAAAD,QAAA2I,Gf4eM,SAAS1I,EAAQD,GgBjfvBC,EAAAD,QAAAM,GhBufM,SAASL,EAAQD,GiBvfvBC,EAAAD,QAAAO,GjB6fM,SAASN,EAAQD,GkB7fvBC,EAAAD,QAAAQ,GlBmgBM,SAASP,EAAQD,GmBngBvBC,EAAAD,QAAAS","file":"angular-sanji-window.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"angular\", \"angular-busy\", \"angular-material\", \"angular-material-icons\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sjWindow\"] = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse\n\t\troot[\"sjWindow\"] = factory(root[\"angular\"], root[\"ngBusy\"], root[\"ngMaterial\"], root[\"ngMdIcons\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_12__) {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"angular\", \"angular-busy\", \"angular-material\", \"angular-material-icons\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sjWindow\"] = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse\n\t\troot[\"sjWindow\"] = factory(root[\"angular\"], root[\"ngBusy\"], root[\"ngMaterial\"], root[\"ngMdIcons\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_12__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _angular = __webpack_require__(9);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\tvar _angularMaterial = __webpack_require__(11);\n\t\n\tvar _angularMaterial2 = _interopRequireDefault(_angularMaterial);\n\t\n\tvar _angularMaterialIcons = __webpack_require__(12);\n\t\n\tvar _angularMaterialIcons2 = _interopRequireDefault(_angularMaterialIcons);\n\t\n\t__webpack_require__(10);\n\t\n\t__webpack_require__(1);\n\t\n\t__webpack_require__(8);\n\t\n\t__webpack_require__(7);\n\t\n\tvar _sanjiWindowService = __webpack_require__(6);\n\t\n\tvar _sanjiWindowService2 = _interopRequireDefault(_sanjiWindowService);\n\t\n\tvar _sanjiWindowController = __webpack_require__(4);\n\t\n\tvar _sanjiWindowController2 = _interopRequireDefault(_sanjiWindowController);\n\t\n\tvar _sanjiWindowStateController = __webpack_require__(2);\n\t\n\tvar _sanjiWindowStateController2 = _interopRequireDefault(_sanjiWindowStateController);\n\t\n\tvar _sanjiWindowDirective = __webpack_require__(5);\n\t\n\tvar _sanjiWindowDirective2 = _interopRequireDefault(_sanjiWindowDirective);\n\t\n\tvar _sanjiWindowStateDirective = __webpack_require__(3);\n\t\n\tvar _sanjiWindowStateDirective2 = _interopRequireDefault(_sanjiWindowStateDirective);\n\t\n\tvar app = _angular2['default'].module('sanji.window', [_angularMaterial2['default'], _angularMaterialIcons2['default'], 'cgBusy']);\n\tapp.factory('sanjiWindowService', _sanjiWindowService2['default'].factory);\n\tapp.controller('SanjiWindowController', _sanjiWindowController2['default']);\n\tapp.controller('SanjiWindowStateController', _sanjiWindowStateController2['default']);\n\tapp.directive('sanjiWindow', _sanjiWindowDirective2['default'].directiveFactory);\n\tapp.directive('sanjiWindowState', _sanjiWindowStateDirective2['default'].directiveFactory);\n\texports['default'] = app = app.name;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar $inject = ['$log', '$scope'];\n\t\n\tvar SanjiWindowStateController = (function () {\n\t function SanjiWindowStateController() {\n\t var _this = this;\n\t\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t _classCallCheck(this, SanjiWindowStateController);\n\t\n\t SanjiWindowStateController.$inject.forEach(function (item, index) {\n\t return _this[item] = injects[index];\n\t });\n\t }\n\t\n\t _createClass(SanjiWindowStateController, [{\n\t key: 'init',\n\t value: function init(topCtrl, attrs) {\n\t this.sanjiWindowMgr = topCtrl.sanjiWindowMgr;\n\t if (undefined !== this.stateName) {\n\t topCtrl.register({\n\t name: this.stateName,\n\t linkName: this.linkName,\n\t icon: this.icon,\n\t isDefault: undefined !== attrs.defaultState ? true : false\n\t });\n\t }\n\t }\n\t }]);\n\t\n\t return SanjiWindowStateController;\n\t})();\n\t\n\tSanjiWindowStateController.$inject = $inject;\n\texports['default'] = SanjiWindowStateController;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar injectMap = new WeakMap();\n\tvar $inject = [];\n\t\n\tvar SanjiWindowStateDirective = (function () {\n\t function SanjiWindowStateDirective(injects) {\n\t _classCallCheck(this, SanjiWindowStateDirective);\n\t\n\t SanjiWindowStateDirective.directiveFactory.$inject.forEach(function (item, index) {\n\t SanjiWindowStateDirective[item] = injects[index];\n\t injectMap.set(SanjiWindowStateDirective[item], injects[index]);\n\t });\n\t this.restrict = 'EA';\n\t this.replace = true;\n\t this.transclude = true;\n\t this.scope = {};\n\t this.require = ['sanjiWindowState', '^sanjiWindow'];\n\t this.controller = 'SanjiWindowStateController';\n\t this.controllerAs = 'vm';\n\t this.bindToController = {\n\t stateName: '@',\n\t linkName: '@',\n\t icon: '@'\n\t };\n\t this.template = '
';\n\t }\n\t\n\t _createClass(SanjiWindowStateDirective, [{\n\t key: 'link',\n\t value: function link(scope, element, attrs, ctrl, transclude) {\n\t ctrl[0].init(ctrl[1], attrs);\n\t }\n\t }], [{\n\t key: 'directiveFactory',\n\t value: function directiveFactory() {\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects);\n\t return SanjiWindowStateDirective.instance;\n\t }\n\t }]);\n\t\n\t return SanjiWindowStateDirective;\n\t})();\n\t\n\tSanjiWindowStateDirective.directiveFactory.$inject = $inject;\n\texports['default'] = SanjiWindowStateDirective;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 4 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar $inject = ['$rootScope', '$scope', 'sanjiWindowService'];\n\t\n\tvar SanjiWindowController = (function () {\n\t function SanjiWindowController() {\n\t var _this = this;\n\t\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t _classCallCheck(this, SanjiWindowController);\n\t\n\t SanjiWindowController.$inject.forEach(function (item, index) {\n\t return _this[item] = injects[index];\n\t });\n\t this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, { name: this.windowName });\n\t this.$scope.$on('$destroy', function () {\n\t _this.sanjiWindowMgr.clearStates();\n\t _this.sanjiWindowService.destroy(_this.sanjiWindowMgr.getId());\n\t });\n\t }\n\t\n\t _createClass(SanjiWindowController, [{\n\t key: 'register',\n\t value: function register(state) {\n\t var sanjiWindowMgr = this.sanjiWindowMgr;\n\t if (state.isDefault) {\n\t sanjiWindowMgr.navigateTo(state.name);\n\t }\n\t sanjiWindowMgr.addState(state);\n\t }\n\t }, {\n\t key: 'refresh',\n\t value: function refresh() {\n\t this.$rootScope.$broadcast('sj:window:refresh', { id: this.windowId, promise: this.sanjiWindowMgr.promise });\n\t }\n\t }]);\n\t\n\t return SanjiWindowController;\n\t})();\n\t\n\tSanjiWindowController.$inject = $inject;\n\texports['default'] = SanjiWindowController;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar injectMap = new WeakMap();\n\tvar $inject = ['$log'];\n\t\n\tvar SanjiWindowDirective = (function () {\n\t function SanjiWindowDirective(injects) {\n\t _classCallCheck(this, SanjiWindowDirective);\n\t\n\t SanjiWindowDirective.directiveFactory.$inject.forEach(function (item, index) {\n\t SanjiWindowDirective[item] = injects[index];\n\t injectMap.set(SanjiWindowDirective[item], injects[index]);\n\t });\n\t this.templateUrl = 'sanji-window.tpl.html';\n\t this.restrict = 'EA';\n\t this.replace = true;\n\t this.transclude = true;\n\t this.scope = {};\n\t this.controller = 'SanjiWindowController';\n\t this.controllerAs = 'vm';\n\t this.bindToController = {\n\t windowId: '@',\n\t windowName: '@',\n\t showLoadingBtn: '@'\n\t };\n\t }\n\t\n\t _createClass(SanjiWindowDirective, null, [{\n\t key: 'directiveFactory',\n\t value: function directiveFactory() {\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t SanjiWindowDirective.instance = new SanjiWindowDirective(injects);\n\t return SanjiWindowDirective.instance;\n\t }\n\t }]);\n\t\n\t return SanjiWindowDirective;\n\t})();\n\t\n\tSanjiWindowDirective.directiveFactory.$inject = $inject;\n\texports['default'] = SanjiWindowDirective;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar SanjiWindowService = (function () {\n\t function SanjiWindowService() {\n\t _classCallCheck(this, SanjiWindowService);\n\t\n\t this.collection = [];\n\t }\n\t\n\t _createClass(SanjiWindowService, [{\n\t key: '_addInstance',\n\t value: function _addInstance(instance) {\n\t this.collection.push(instance);\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy(id) {\n\t var idx = this.collection.findIndex(function (item) {\n\t return item.id === id;\n\t });\n\t this.collection.splice(idx, 1);\n\t }\n\t }, {\n\t key: '_isIdExist',\n\t value: function _isIdExist(id) {\n\t return -1 !== this.collection.findIndex(function (item) {\n\t return item.id === id;\n\t }) ? true : false;\n\t }\n\t }, {\n\t key: 'get',\n\t value: function get(id) {\n\t return this.collection.find(function (item) {\n\t return item.id === id;\n\t });\n\t }\n\t }, {\n\t key: 'create',\n\t value: function create(id, options) {\n\t var instance = null;\n\t options = options || {};\n\t\n\t if (undefined === id) {\n\t throw new Error('Please give a window id.');\n\t }\n\t\n\t if (this._isIdExist(id)) {\n\t throw new Error('The window id ' + id + ' is already exist.');\n\t }\n\t\n\t var sanjiWindowInstance = (function () {\n\t function sanjiWindowInstance(options) {\n\t _classCallCheck(this, sanjiWindowInstance);\n\t\n\t this.states = [];\n\t this.links = [];\n\t this.id = id;\n\t this.name = options.name || '';\n\t this.navigateContent = options.navigateContent || '';\n\t this.promise = null;\n\t }\n\t\n\t _createClass(sanjiWindowInstance, [{\n\t key: 'getId',\n\t value: function getId() {\n\t return this.id;\n\t }\n\t }, {\n\t key: 'navigateTo',\n\t value: function navigateTo(state) {\n\t this.navigateContent = state;\n\t }\n\t }, {\n\t key: 'addState',\n\t value: function addState(state) {\n\t if (state.linkName) {\n\t this.links.push(state);\n\t }\n\t this.states.push(state);\n\t }\n\t }, {\n\t key: 'clearStates',\n\t value: function clearStates() {\n\t this.links.length = 0;\n\t this.states.length = 0;\n\t }\n\t }]);\n\t\n\t return sanjiWindowInstance;\n\t })();\n\t\n\t instance = new sanjiWindowInstance(options);\n\t this._addInstance(instance);\n\t return instance;\n\t }\n\t }], [{\n\t key: 'factory',\n\t value: function factory() {\n\t return new SanjiWindowService();\n\t }\n\t }]);\n\t\n\t return SanjiWindowService;\n\t})();\n\t\n\texports['default'] = SanjiWindowService;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\tvar angular=window.angular,ngModule;\n\ttry {ngModule=angular.module([\"ng\"])}\n\tcatch(e){ngModule=angular.module(\"ng\",[])}\n\tvar v1=\"
\\n \\n
\";\n\tngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window-loading.tpl.html\",v1)}]);\n\tmodule.exports=v1;\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tvar angular=window.angular,ngModule;\n\ttry {ngModule=angular.module([\"ng\"])}\n\tcatch(e){ngModule=angular.module(\"ng\",[])}\n\tvar v1=\"\\n \\n \\n

{{vm.windowName}}

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n

\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\";\n\tngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window.tpl.html\",v1)}]);\n\tmodule.exports=v1;\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_9__;\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_10__;\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_11__;\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_12__;\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** angular-sanji-window.js\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 9a415bfcf3ffbddb87e5\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _angularMaterial = require('angular-material');\n\nvar _angularMaterial2 = _interopRequireDefault(_angularMaterial);\n\nvar _angularMaterialIcons = require('angular-material-icons');\n\nvar _angularMaterialIcons2 = _interopRequireDefault(_angularMaterialIcons);\n\nrequire('angular-busy');\n\nrequire('./sanji-window.scss');\n\nrequire('./sanji-window.tpl.html');\n\nrequire('./sanji-window-loading.tpl.html');\n\nvar _sanjiWindowService = require('./sanji-window.service');\n\nvar _sanjiWindowService2 = _interopRequireDefault(_sanjiWindowService);\n\nvar _sanjiWindowController = require('./sanji-window.controller');\n\nvar _sanjiWindowController2 = _interopRequireDefault(_sanjiWindowController);\n\nvar _sanjiWindowStateController = require('./sanji-window-state.controller');\n\nvar _sanjiWindowStateController2 = _interopRequireDefault(_sanjiWindowStateController);\n\nvar _sanjiWindowDirective = require('./sanji-window.directive');\n\nvar _sanjiWindowDirective2 = _interopRequireDefault(_sanjiWindowDirective);\n\nvar _sanjiWindowStateDirective = require('./sanji-window-state.directive');\n\nvar _sanjiWindowStateDirective2 = _interopRequireDefault(_sanjiWindowStateDirective);\n\nvar app = _angular2['default'].module('sanji.window', [_angularMaterial2['default'], _angularMaterialIcons2['default'], 'cgBusy']);\napp.factory('sanjiWindowService', _sanjiWindowService2['default'].factory);\napp.controller('SanjiWindowController', _sanjiWindowController2['default']);\napp.controller('SanjiWindowStateController', _sanjiWindowStateController2['default']);\napp.directive('sanjiWindow', _sanjiWindowDirective2['default'].directiveFactory);\napp.directive('sanjiWindowState', _sanjiWindowStateDirective2['default'].directiveFactory);\nexports['default'] = app = app.name;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/index.js\n **/","import angular from 'angular';\nimport ngMaterial from 'angular-material';\nimport ngMdIcons from 'angular-material-icons';\nimport 'angular-busy';\n\nimport './sanji-window.scss';\nimport './sanji-window.tpl.html';\nimport './sanji-window-loading.tpl.html';\nimport SanjiWindowService from './sanji-window.service';\nimport SanjiWindowController from './sanji-window.controller';\nimport SanjiWindowStateController from './sanji-window-state.controller';\nimport SanjiWindowDirective from './sanji-window.directive';\nimport SanjiWindowStateDirective from './sanji-window-state.directive';\n\nlet app = angular.module('sanji.window', [ngMaterial, ngMdIcons, 'cgBusy']);\napp.factory('sanjiWindowService', SanjiWindowService.factory);\napp.controller('SanjiWindowController', SanjiWindowController);\napp.controller('SanjiWindowStateController', SanjiWindowStateController);\napp.directive('sanjiWindow', SanjiWindowDirective.directiveFactory);\napp.directive('sanjiWindowState', SanjiWindowStateDirective.directiveFactory);\nexport default app = app.name\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/index.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$log', '$scope'];\n\nvar SanjiWindowStateController = (function () {\n function SanjiWindowStateController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, SanjiWindowStateController);\n\n SanjiWindowStateController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n }\n\n _createClass(SanjiWindowStateController, [{\n key: 'init',\n value: function init(topCtrl, attrs) {\n this.sanjiWindowMgr = topCtrl.sanjiWindowMgr;\n if (undefined !== this.stateName) {\n topCtrl.register({\n name: this.stateName,\n linkName: this.linkName,\n icon: this.icon,\n isDefault: undefined !== attrs.defaultState ? true : false\n });\n }\n }\n }]);\n\n return SanjiWindowStateController;\n})();\n\nSanjiWindowStateController.$inject = $inject;\nexports['default'] = SanjiWindowStateController;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window-state.controller.js\n **/","const $inject = ['$log', '$scope'];\nclass SanjiWindowStateController {\n constructor(...injects) {\n SanjiWindowStateController.$inject.forEach((item, index) => this[item] = injects[index]);\n }\n\n init(topCtrl, attrs) {\n this.sanjiWindowMgr = topCtrl.sanjiWindowMgr;\n if (undefined !== this.stateName) {\n topCtrl.register({\n name: this.stateName,\n linkName: this.linkName,\n icon: this.icon,\n isDefault: undefined !== attrs.defaultState ? true : false\n });\n }\n }\n}\nSanjiWindowStateController.$inject = $inject;\nexport default SanjiWindowStateController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window-state.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar SanjiWindowStateDirective = (function () {\n function SanjiWindowStateDirective(injects) {\n _classCallCheck(this, SanjiWindowStateDirective);\n\n SanjiWindowStateDirective.directiveFactory.$inject.forEach(function (item, index) {\n SanjiWindowStateDirective[item] = injects[index];\n injectMap.set(SanjiWindowStateDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.require = ['sanjiWindowState', '^sanjiWindow'];\n this.controller = 'SanjiWindowStateController';\n this.controllerAs = 'vm';\n this.bindToController = {\n stateName: '@',\n linkName: '@',\n icon: '@'\n };\n this.template = '
';\n }\n\n _createClass(SanjiWindowStateDirective, [{\n key: 'link',\n value: function link(scope, element, attrs, ctrl, transclude) {\n ctrl[0].init(ctrl[1], attrs);\n }\n }], [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects);\n return SanjiWindowStateDirective.instance;\n }\n }]);\n\n return SanjiWindowStateDirective;\n})();\n\nSanjiWindowStateDirective.directiveFactory.$inject = $inject;\nexports['default'] = SanjiWindowStateDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window-state.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass SanjiWindowStateDirective {\n constructor(injects) {\n SanjiWindowStateDirective.directiveFactory.$inject.forEach((item, index) => {\n SanjiWindowStateDirective[item] = injects[index];\n injectMap.set(SanjiWindowStateDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.require = ['sanjiWindowState', '^sanjiWindow'];\n this.controller = 'SanjiWindowStateController';\n this.controllerAs = 'vm';\n this.bindToController = {\n stateName: '@',\n linkName: '@',\n icon: '@'\n };\n this.template = `
`;\n }\n\n link(scope, element, attrs, ctrl, transclude) {\n ctrl[0].init(ctrl[1], attrs);\n }\n\n static directiveFactory(...injects) {\n SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects);\n return SanjiWindowStateDirective.instance;\n }\n}\nSanjiWindowStateDirective.directiveFactory.$inject = $inject;\nexport default SanjiWindowStateDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window-state.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$rootScope', '$scope', 'sanjiWindowService'];\n\nvar SanjiWindowController = (function () {\n function SanjiWindowController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, SanjiWindowController);\n\n SanjiWindowController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, { name: this.windowName });\n this.$scope.$on('$destroy', function () {\n _this.sanjiWindowMgr.clearStates();\n _this.sanjiWindowService.destroy(_this.sanjiWindowMgr.getId());\n });\n }\n\n _createClass(SanjiWindowController, [{\n key: 'register',\n value: function register(state) {\n var sanjiWindowMgr = this.sanjiWindowMgr;\n if (state.isDefault) {\n sanjiWindowMgr.navigateTo(state.name);\n }\n sanjiWindowMgr.addState(state);\n }\n }, {\n key: 'refresh',\n value: function refresh() {\n this.$rootScope.$broadcast('sj:window:refresh', { id: this.windowId, promise: this.sanjiWindowMgr.promise });\n }\n }]);\n\n return SanjiWindowController;\n})();\n\nSanjiWindowController.$inject = $inject;\nexports['default'] = SanjiWindowController;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.controller.js\n **/","const $inject = ['$rootScope', '$scope', 'sanjiWindowService'];\nclass SanjiWindowController {\n constructor(...injects) {\n SanjiWindowController.$inject.forEach((item, index) => this[item] = injects[index]);\n this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, {name: this.windowName});\n this.$scope.$on('$destroy', () => {\n this.sanjiWindowMgr.clearStates();\n this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId());\n });\n }\n\n register(state) {\n let sanjiWindowMgr = this.sanjiWindowMgr;\n if (state.isDefault) {\n sanjiWindowMgr.navigateTo(state.name);\n }\n sanjiWindowMgr.addState(state);\n }\n\n refresh() {\n this.$rootScope.$broadcast('sj:window:refresh', {id: this.windowId, promise: this.sanjiWindowMgr.promise});\n }\n}\nSanjiWindowController.$inject = $inject;\nexport default SanjiWindowController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = ['$log'];\n\nvar SanjiWindowDirective = (function () {\n function SanjiWindowDirective(injects) {\n _classCallCheck(this, SanjiWindowDirective);\n\n SanjiWindowDirective.directiveFactory.$inject.forEach(function (item, index) {\n SanjiWindowDirective[item] = injects[index];\n injectMap.set(SanjiWindowDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-window.tpl.html';\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.controller = 'SanjiWindowController';\n this.controllerAs = 'vm';\n this.bindToController = {\n windowId: '@',\n windowName: '@',\n showLoadingBtn: '@'\n };\n }\n\n _createClass(SanjiWindowDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n SanjiWindowDirective.instance = new SanjiWindowDirective(injects);\n return SanjiWindowDirective.instance;\n }\n }]);\n\n return SanjiWindowDirective;\n})();\n\nSanjiWindowDirective.directiveFactory.$inject = $inject;\nexports['default'] = SanjiWindowDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = ['$log'];\nclass SanjiWindowDirective {\n constructor(injects) {\n SanjiWindowDirective.directiveFactory.$inject.forEach((item, index) => {\n SanjiWindowDirective[item] = injects[index];\n injectMap.set(SanjiWindowDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-window.tpl.html';\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.controller = 'SanjiWindowController';\n this.controllerAs = 'vm';\n this.bindToController = {\n windowId: '@',\n windowName: '@',\n showLoadingBtn: '@'\n };\n }\n\n static directiveFactory(...injects) {\n SanjiWindowDirective.instance = new SanjiWindowDirective(injects);\n return SanjiWindowDirective.instance;\n }\n}\nSanjiWindowDirective.directiveFactory.$inject = $inject;\nexport default SanjiWindowDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar SanjiWindowService = (function () {\n function SanjiWindowService() {\n _classCallCheck(this, SanjiWindowService);\n\n this.collection = [];\n }\n\n _createClass(SanjiWindowService, [{\n key: '_addInstance',\n value: function _addInstance(instance) {\n this.collection.push(instance);\n }\n }, {\n key: 'destroy',\n value: function destroy(id) {\n var idx = this.collection.findIndex(function (item) {\n return item.id === id;\n });\n this.collection.splice(idx, 1);\n }\n }, {\n key: '_isIdExist',\n value: function _isIdExist(id) {\n return -1 !== this.collection.findIndex(function (item) {\n return item.id === id;\n }) ? true : false;\n }\n }, {\n key: 'get',\n value: function get(id) {\n return this.collection.find(function (item) {\n return item.id === id;\n });\n }\n }, {\n key: 'create',\n value: function create(id, options) {\n var instance = null;\n options = options || {};\n\n if (undefined === id) {\n throw new Error('Please give a window id.');\n }\n\n if (this._isIdExist(id)) {\n throw new Error('The window id ' + id + ' is already exist.');\n }\n\n var sanjiWindowInstance = (function () {\n function sanjiWindowInstance(options) {\n _classCallCheck(this, sanjiWindowInstance);\n\n this.states = [];\n this.links = [];\n this.id = id;\n this.name = options.name || '';\n this.navigateContent = options.navigateContent || '';\n this.promise = null;\n }\n\n _createClass(sanjiWindowInstance, [{\n key: 'getId',\n value: function getId() {\n return this.id;\n }\n }, {\n key: 'navigateTo',\n value: function navigateTo(state) {\n this.navigateContent = state;\n }\n }, {\n key: 'addState',\n value: function addState(state) {\n if (state.linkName) {\n this.links.push(state);\n }\n this.states.push(state);\n }\n }, {\n key: 'clearStates',\n value: function clearStates() {\n this.links.length = 0;\n this.states.length = 0;\n }\n }]);\n\n return sanjiWindowInstance;\n })();\n\n instance = new sanjiWindowInstance(options);\n this._addInstance(instance);\n return instance;\n }\n }], [{\n key: 'factory',\n value: function factory() {\n return new SanjiWindowService();\n }\n }]);\n\n return SanjiWindowService;\n})();\n\nexports['default'] = SanjiWindowService;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.service.js\n **/","class SanjiWindowService {\n constructor() {\n this.collection = [];\n }\n\n static factory() {\n return new SanjiWindowService();\n }\n\n _addInstance(instance) {\n this.collection.push(instance);\n }\n\n destroy(id) {\n let idx = this.collection.findIndex(item => item.id === id);\n this.collection.splice(idx, 1);\n }\n\n _isIdExist(id) {\n return -1 !== this.collection.findIndex(item => item.id === id) ? true : false;\n }\n\n get(id) {\n return this.collection.find(item => item.id === id);\n }\n\n create(id, options) {\n let instance = null;\n options = options || {};\n\n if (undefined === id) {\n throw new Error('Please give a window id.');\n }\n\n if (this._isIdExist(id)) {\n throw new Error('The window id ' + id + ' is already exist.');\n }\n\n class sanjiWindowInstance {\n constructor(options) {\n this.states = [];\n this.links = [];\n this.id = id;\n this.name = options.name || '';\n this.navigateContent = options.navigateContent || '';\n this.promise = null;\n }\n\n getId() {\n return this.id;\n }\n\n navigateTo(state) {\n this.navigateContent = state;\n }\n\n addState(state) {\n if (state.linkName) {\n this.links.push(state);\n }\n this.states.push(state);\n }\n\n clearStates() {\n this.links.length = 0;\n this.states.length = 0;\n }\n }\n instance = new sanjiWindowInstance(options);\n this._addInstance(instance);\n return instance;\n }\n\n}\nexport default SanjiWindowService;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.service.js\n **/","var angular=window.angular,ngModule;\ntry {ngModule=angular.module([\"ng\"])}\ncatch(e){ngModule=angular.module(\"ng\",[])}\nvar v1=\"
\\n \\n
\";\nngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window-loading.tpl.html\",v1)}]);\nmodule.exports=v1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./sanji-window/sanji-window-loading.tpl.html\n ** module id = 7\n ** module chunks = 0\n **/","var angular=window.angular,ngModule;\ntry {ngModule=angular.module([\"ng\"])}\ncatch(e){ngModule=angular.module(\"ng\",[])}\nvar v1=\"\\n \\n \\n

{{vm.windowName}}

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n

\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\";\nngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window.tpl.html\",v1)}]);\nmodule.exports=v1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./sanji-window/sanji-window.tpl.html\n ** module id = 8\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_9__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"angular\",\"commonjs2\":\"angular\",\"commonjs\":\"angular\",\"amd\":\"angular\"}\n ** module id = 9\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_10__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"ngBusy\",\"commonjs2\":\"angular-busy\",\"commonjs\":\"angular-busy\",\"amd\":\"angular-busy\"}\n ** module id = 10\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_11__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"ngMaterial\",\"commonjs2\":\"angular-material\",\"commonjs\":\"angular-material\",\"amd\":\"angular-material\"}\n ** module id = 11\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_12__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"ngMdIcons\",\"commonjs2\":\"angular-material-icons\",\"commonjs\":\"angular-material-icons\",\"amd\":\"angular-material-icons\"}\n ** module id = 12\n ** module chunks = 0\n **/"],"sourceRoot":""} +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///angular-sanji-window.js","webpack:///webpack/bootstrap 5733a2e3d4d852da8f3f","webpack:///./sanji-window/index.js","webpack:///./sanji-window/index.js?81c3","webpack:///./sanji-window/sanji-window-state.controller.js","webpack:///./sanji-window/sanji-window-state.controller.js?432c","webpack:///./sanji-window/sanji-window-state.directive.js","webpack:///./sanji-window/sanji-window-state.directive.js?e548","webpack:///./sanji-window/sanji-window.controller.js","webpack:///./sanji-window/sanji-window.controller.js?8a83","webpack:///./sanji-window/sanji-window.directive.js","webpack:///./sanji-window/sanji-window.directive.js?5732","webpack:///./sanji-window/sanji-window.service.js","webpack:///./sanji-window/sanji-window.service.js?244b","webpack:///./sanji-window/sanji-window-loading.tpl.html","webpack:///./sanji-window/sanji-window.tpl.html","webpack:///external {\"root\":\"angular\",\"commonjs2\":\"angular\",\"commonjs\":\"angular\",\"amd\":\"angular\"}","webpack:///external {\"root\":\"ngBusy\",\"commonjs2\":\"angular-busy\",\"commonjs\":\"angular-busy\",\"amd\":\"angular-busy\"}","webpack:///external {\"root\":\"ngMaterial\",\"commonjs2\":\"angular-material\",\"commonjs\":\"angular-material\",\"amd\":\"angular-material\"}","webpack:///external {\"root\":\"ngMdIcons\",\"commonjs2\":\"angular-material-icons\",\"commonjs\":\"angular-material-icons\",\"amd\":\"angular-material-icons\"}"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_9__","__WEBPACK_EXTERNAL_MODULE_10__","__WEBPACK_EXTERNAL_MODULE_11__","__WEBPACK_EXTERNAL_MODULE_12__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","_angular","_angular2","_angularMaterial","_angularMaterial2","_angularMaterialIcons","_angularMaterialIcons2","_sanjiWindowService","_sanjiWindowService2","_sanjiWindowController","_sanjiWindowController2","_sanjiWindowStateController","_sanjiWindowStateController2","_sanjiWindowDirective","_sanjiWindowDirective2","_sanjiWindowStateDirective","_sanjiWindowStateDirective2","app","controller","directive","directiveFactory","name","_classCallCheck","instance","Constructor","TypeError","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","prototype","$inject","SanjiWindowStateController","_this","_len","arguments","injects","Array","_key","forEach","item","index","topCtrl","attrs","sanjiWindowMgr","undefined","stateName","register","linkName","icon","isDefault","defaultState","injectMap","WeakMap","SanjiWindowStateDirective","set","restrict","replace","transclude","scope","controllerAs","bindToController","template","element","ctrl","init","SanjiWindowController","sanjiWindowService","create","windowId","windowName","$scope","$on","clearStates","destroy","getId","state","navigateTo","addState","$rootScope","$broadcast","promise","SanjiWindowDirective","templateUrl","showLoadingBtn","SanjiWindowService","collection","push","idx","findIndex","splice","find","options","Error","_isIdExist","sanjiWindowInstance","states","links","navigateContent","_addInstance","ngModule","angular","window","e","v1","run","put"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,WAAAA,QAAA,gBAAAA,QAAA,oBAAAA,QAAA,2BACA,kBAAAC,gBAAAC,IACAD,QAAA,sEAAAJ,GACA,gBAAAC,SACAA,QAAA,SAAAD,EAAAG,QAAA,WAAAA,QAAA,gBAAAA,QAAA,oBAAAA,QAAA,2BAEAJ,EAAA,SAAAC,EAAAD,EAAA,QAAAA,EAAA,OAAAA,EAAA,WAAAA,EAAA,YACCO,KAAA,SAAAC,EAAAC,EAAAC,EAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAZ,OAGA,IAAAC,GAAAY,EAAAD,IACAZ,WACAc,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAf,EAAAD,QAAAC,IAAAD,QAAAW,GAGAV,EAAAc,QAAA,EAGAd,EAAAD,QAvBA,GAAAa,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAASV,EAAQD,EAASW,GEtDhC,YAMA,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,UAAWF,GAJzFG,OAAOC,eAAezB,EAAS,cAC7B0B,OAAO,GAKT,IAAIC,GAAWhB,ECRK,GDUhBiB,EAAYR,EAAuBO,GAEnCE,EAAmBlB,ECXA,IDanBmB,EAAoBV,EAAuBS,GAE3CE,EAAwBpB,ECdN,IDgBlBqB,EAAyBZ,EAAu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AA1H,GAA2CA,EAAA2H,IAAA,wBAAAF,MAC3C1I,EAAAD,QAAA2I,Gf4eM,SAAS1I,EAAQD,GgBjfvBC,EAAAD,QAAAM,GhBufM,SAASL,EAAQD,GiBvfvBC,EAAAD,QAAAO,GjB6fM,SAASN,EAAQD,GkB7fvBC,EAAAD,QAAAQ,GlBmgBM,SAASP,EAAQD,GmBngBvBC,EAAAD,QAAAS","file":"angular-sanji-window.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"angular\", \"angular-busy\", \"angular-material\", \"angular-material-icons\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sjWindow\"] = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse\n\t\troot[\"sjWindow\"] = factory(root[\"angular\"], root[\"ngBusy\"], root[\"ngMaterial\"], root[\"ngMdIcons\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_12__) {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"angular\", \"angular-busy\", \"angular-material\", \"angular-material-icons\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sjWindow\"] = factory(require(\"angular\"), require(\"angular-busy\"), require(\"angular-material\"), require(\"angular-material-icons\"));\n\telse\n\t\troot[\"sjWindow\"] = factory(root[\"angular\"], root[\"ngBusy\"], root[\"ngMaterial\"], root[\"ngMdIcons\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_12__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _angular = __webpack_require__(9);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\tvar _angularMaterial = __webpack_require__(11);\n\t\n\tvar _angularMaterial2 = _interopRequireDefault(_angularMaterial);\n\t\n\tvar _angularMaterialIcons = __webpack_require__(12);\n\t\n\tvar _angularMaterialIcons2 = _interopRequireDefault(_angularMaterialIcons);\n\t\n\t__webpack_require__(10);\n\t\n\t__webpack_require__(1);\n\t\n\t__webpack_require__(8);\n\t\n\t__webpack_require__(7);\n\t\n\tvar _sanjiWindowService = __webpack_require__(6);\n\t\n\tvar _sanjiWindowService2 = _interopRequireDefault(_sanjiWindowService);\n\t\n\tvar _sanjiWindowController = __webpack_require__(4);\n\t\n\tvar _sanjiWindowController2 = _interopRequireDefault(_sanjiWindowController);\n\t\n\tvar _sanjiWindowStateController = __webpack_require__(2);\n\t\n\tvar _sanjiWindowStateController2 = _interopRequireDefault(_sanjiWindowStateController);\n\t\n\tvar _sanjiWindowDirective = __webpack_require__(5);\n\t\n\tvar _sanjiWindowDirective2 = _interopRequireDefault(_sanjiWindowDirective);\n\t\n\tvar _sanjiWindowStateDirective = __webpack_require__(3);\n\t\n\tvar _sanjiWindowStateDirective2 = _interopRequireDefault(_sanjiWindowStateDirective);\n\t\n\tvar app = _angular2['default'].module('sanji.window', [_angularMaterial2['default'], _angularMaterialIcons2['default'], 'cgBusy']);\n\tapp.factory('sanjiWindowService', _sanjiWindowService2['default'].factory);\n\tapp.controller('SanjiWindowController', _sanjiWindowController2['default']);\n\tapp.controller('SanjiWindowStateController', _sanjiWindowStateController2['default']);\n\tapp.directive('sanjiWindow', _sanjiWindowDirective2['default'].directiveFactory);\n\tapp.directive('sanjiWindowState', _sanjiWindowStateDirective2['default'].directiveFactory);\n\texports['default'] = app = app.name;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar $inject = ['$log', '$scope'];\n\t\n\tvar SanjiWindowStateController = (function () {\n\t function SanjiWindowStateController() {\n\t var _this = this;\n\t\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t _classCallCheck(this, SanjiWindowStateController);\n\t\n\t SanjiWindowStateController.$inject.forEach(function (item, index) {\n\t return _this[item] = injects[index];\n\t });\n\t }\n\t\n\t _createClass(SanjiWindowStateController, [{\n\t key: 'init',\n\t value: function init(topCtrl, attrs) {\n\t this.sanjiWindowMgr = topCtrl.sanjiWindowMgr;\n\t if (undefined !== this.stateName) {\n\t topCtrl.register({\n\t name: this.stateName,\n\t linkName: this.linkName,\n\t icon: this.icon,\n\t isDefault: undefined !== attrs.defaultState ? true : false\n\t });\n\t }\n\t }\n\t }]);\n\t\n\t return SanjiWindowStateController;\n\t})();\n\t\n\tSanjiWindowStateController.$inject = $inject;\n\texports['default'] = SanjiWindowStateController;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar injectMap = new WeakMap();\n\tvar $inject = [];\n\t\n\tvar SanjiWindowStateDirective = (function () {\n\t function SanjiWindowStateDirective(injects) {\n\t _classCallCheck(this, SanjiWindowStateDirective);\n\t\n\t SanjiWindowStateDirective.directiveFactory.$inject.forEach(function (item, index) {\n\t SanjiWindowStateDirective[item] = injects[index];\n\t injectMap.set(SanjiWindowStateDirective[item], injects[index]);\n\t });\n\t this.restrict = 'EA';\n\t this.replace = true;\n\t this.transclude = true;\n\t this.scope = {};\n\t this.require = ['sanjiWindowState', '^sanjiWindow'];\n\t this.controller = 'SanjiWindowStateController';\n\t this.controllerAs = 'vm';\n\t this.bindToController = {\n\t stateName: '@',\n\t linkName: '@',\n\t icon: '@'\n\t };\n\t this.template = '
';\n\t }\n\t\n\t _createClass(SanjiWindowStateDirective, [{\n\t key: 'link',\n\t value: function link(scope, element, attrs, ctrl, transclude) {\n\t ctrl[0].init(ctrl[1], attrs);\n\t }\n\t }], [{\n\t key: 'directiveFactory',\n\t value: function directiveFactory() {\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects);\n\t return SanjiWindowStateDirective.instance;\n\t }\n\t }]);\n\t\n\t return SanjiWindowStateDirective;\n\t})();\n\t\n\tSanjiWindowStateDirective.directiveFactory.$inject = $inject;\n\texports['default'] = SanjiWindowStateDirective;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 4 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar $inject = ['$rootScope', '$scope', 'sanjiWindowService'];\n\t\n\tvar SanjiWindowController = (function () {\n\t function SanjiWindowController() {\n\t var _this = this;\n\t\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t _classCallCheck(this, SanjiWindowController);\n\t\n\t SanjiWindowController.$inject.forEach(function (item, index) {\n\t return _this[item] = injects[index];\n\t });\n\t this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, { name: this.windowName });\n\t this.$scope.$on('$destroy', function () {\n\t _this.sanjiWindowMgr.clearStates();\n\t _this.sanjiWindowService.destroy(_this.sanjiWindowMgr.getId());\n\t });\n\t }\n\t\n\t _createClass(SanjiWindowController, [{\n\t key: 'register',\n\t value: function register(state) {\n\t var sanjiWindowMgr = this.sanjiWindowMgr;\n\t if (state.isDefault) {\n\t sanjiWindowMgr.navigateTo(state.name);\n\t }\n\t sanjiWindowMgr.addState(state);\n\t }\n\t }, {\n\t key: 'refresh',\n\t value: function refresh() {\n\t this.$rootScope.$broadcast('sj:window:refresh', { id: this.windowId, promise: this.sanjiWindowMgr.promise });\n\t }\n\t }]);\n\t\n\t return SanjiWindowController;\n\t})();\n\t\n\tSanjiWindowController.$inject = $inject;\n\texports['default'] = SanjiWindowController;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar injectMap = new WeakMap();\n\tvar $inject = ['$log'];\n\t\n\tvar SanjiWindowDirective = (function () {\n\t function SanjiWindowDirective(injects) {\n\t _classCallCheck(this, SanjiWindowDirective);\n\t\n\t SanjiWindowDirective.directiveFactory.$inject.forEach(function (item, index) {\n\t SanjiWindowDirective[item] = injects[index];\n\t injectMap.set(SanjiWindowDirective[item], injects[index]);\n\t });\n\t this.templateUrl = 'sanji-window.tpl.html';\n\t this.restrict = 'EA';\n\t this.replace = true;\n\t this.transclude = true;\n\t this.scope = {};\n\t this.controller = 'SanjiWindowController';\n\t this.controllerAs = 'vm';\n\t this.bindToController = {\n\t windowId: '@',\n\t windowName: '@',\n\t showLoadingBtn: '@'\n\t };\n\t }\n\t\n\t _createClass(SanjiWindowDirective, null, [{\n\t key: 'directiveFactory',\n\t value: function directiveFactory() {\n\t for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n\t injects[_key] = arguments[_key];\n\t }\n\t\n\t SanjiWindowDirective.instance = new SanjiWindowDirective(injects);\n\t return SanjiWindowDirective.instance;\n\t }\n\t }]);\n\t\n\t return SanjiWindowDirective;\n\t})();\n\t\n\tSanjiWindowDirective.directiveFactory.$inject = $inject;\n\texports['default'] = SanjiWindowDirective;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar SanjiWindowService = (function () {\n\t function SanjiWindowService() {\n\t _classCallCheck(this, SanjiWindowService);\n\t\n\t this.collection = [];\n\t }\n\t\n\t _createClass(SanjiWindowService, [{\n\t key: '_addInstance',\n\t value: function _addInstance(instance) {\n\t this.collection.push(instance);\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy(id) {\n\t var idx = this.collection.findIndex(function (item) {\n\t return item.id === id;\n\t });\n\t this.collection.splice(idx, 1);\n\t }\n\t }, {\n\t key: '_isIdExist',\n\t value: function _isIdExist(id) {\n\t return -1 !== this.collection.findIndex(function (item) {\n\t return item.id === id;\n\t }) ? true : false;\n\t }\n\t }, {\n\t key: 'get',\n\t value: function get(id) {\n\t return this.collection.find(function (item) {\n\t return item.id === id;\n\t });\n\t }\n\t }, {\n\t key: 'create',\n\t value: function create(id, options) {\n\t var instance = null;\n\t options = options || {};\n\t\n\t if (undefined === id) {\n\t throw new Error('Please give a window id.');\n\t }\n\t\n\t if (this._isIdExist(id)) {\n\t throw new Error('The window id ' + id + ' is already exist.');\n\t }\n\t\n\t var sanjiWindowInstance = (function () {\n\t function sanjiWindowInstance(options) {\n\t _classCallCheck(this, sanjiWindowInstance);\n\t\n\t this.states = [];\n\t this.links = [];\n\t this.id = id;\n\t this.name = options.name || '';\n\t this.navigateContent = options.navigateContent || '';\n\t this.promise = null;\n\t }\n\t\n\t _createClass(sanjiWindowInstance, [{\n\t key: 'getId',\n\t value: function getId() {\n\t return this.id;\n\t }\n\t }, {\n\t key: 'navigateTo',\n\t value: function navigateTo(state) {\n\t this.navigateContent = state;\n\t }\n\t }, {\n\t key: 'addState',\n\t value: function addState(state) {\n\t if (state.linkName) {\n\t this.links.push(state);\n\t }\n\t this.states.push(state);\n\t }\n\t }, {\n\t key: 'clearStates',\n\t value: function clearStates() {\n\t this.links.length = 0;\n\t this.states.length = 0;\n\t }\n\t }]);\n\t\n\t return sanjiWindowInstance;\n\t })();\n\t\n\t instance = new sanjiWindowInstance(options);\n\t this._addInstance(instance);\n\t return instance;\n\t }\n\t }], [{\n\t key: 'factory',\n\t value: function factory() {\n\t return new SanjiWindowService();\n\t }\n\t }]);\n\t\n\t return SanjiWindowService;\n\t})();\n\t\n\texports['default'] = SanjiWindowService;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\tvar angular=window.angular,ngModule;\n\ttry {ngModule=angular.module([\"ng\"])}\n\tcatch(e){ngModule=angular.module(\"ng\",[])}\n\tvar v1=\"
\\n \\n
\";\n\tngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window-loading.tpl.html\",v1)}]);\n\tmodule.exports=v1;\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tvar angular=window.angular,ngModule;\n\ttry {ngModule=angular.module([\"ng\"])}\n\tcatch(e){ngModule=angular.module(\"ng\",[])}\n\tvar v1=\"\\n \\n \\n

{{vm.windowName}}

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n

\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\";\n\tngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window.tpl.html\",v1)}]);\n\tmodule.exports=v1;\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_9__;\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_10__;\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_11__;\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_12__;\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** angular-sanji-window.js\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 5733a2e3d4d852da8f3f\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _angularMaterial = require('angular-material');\n\nvar _angularMaterial2 = _interopRequireDefault(_angularMaterial);\n\nvar _angularMaterialIcons = require('angular-material-icons');\n\nvar _angularMaterialIcons2 = _interopRequireDefault(_angularMaterialIcons);\n\nrequire('angular-busy');\n\nrequire('./sanji-window.scss');\n\nrequire('./sanji-window.tpl.html');\n\nrequire('./sanji-window-loading.tpl.html');\n\nvar _sanjiWindowService = require('./sanji-window.service');\n\nvar _sanjiWindowService2 = _interopRequireDefault(_sanjiWindowService);\n\nvar _sanjiWindowController = require('./sanji-window.controller');\n\nvar _sanjiWindowController2 = _interopRequireDefault(_sanjiWindowController);\n\nvar _sanjiWindowStateController = require('./sanji-window-state.controller');\n\nvar _sanjiWindowStateController2 = _interopRequireDefault(_sanjiWindowStateController);\n\nvar _sanjiWindowDirective = require('./sanji-window.directive');\n\nvar _sanjiWindowDirective2 = _interopRequireDefault(_sanjiWindowDirective);\n\nvar _sanjiWindowStateDirective = require('./sanji-window-state.directive');\n\nvar _sanjiWindowStateDirective2 = _interopRequireDefault(_sanjiWindowStateDirective);\n\nvar app = _angular2['default'].module('sanji.window', [_angularMaterial2['default'], _angularMaterialIcons2['default'], 'cgBusy']);\napp.factory('sanjiWindowService', _sanjiWindowService2['default'].factory);\napp.controller('SanjiWindowController', _sanjiWindowController2['default']);\napp.controller('SanjiWindowStateController', _sanjiWindowStateController2['default']);\napp.directive('sanjiWindow', _sanjiWindowDirective2['default'].directiveFactory);\napp.directive('sanjiWindowState', _sanjiWindowStateDirective2['default'].directiveFactory);\nexports['default'] = app = app.name;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/index.js\n **/","import angular from 'angular';\nimport ngMaterial from 'angular-material';\nimport ngMdIcons from 'angular-material-icons';\nimport 'angular-busy';\n\nimport './sanji-window.scss';\nimport './sanji-window.tpl.html';\nimport './sanji-window-loading.tpl.html';\nimport SanjiWindowService from './sanji-window.service';\nimport SanjiWindowController from './sanji-window.controller';\nimport SanjiWindowStateController from './sanji-window-state.controller';\nimport SanjiWindowDirective from './sanji-window.directive';\nimport SanjiWindowStateDirective from './sanji-window-state.directive';\n\nlet app = angular.module('sanji.window', [ngMaterial, ngMdIcons, 'cgBusy']);\napp.factory('sanjiWindowService', SanjiWindowService.factory);\napp.controller('SanjiWindowController', SanjiWindowController);\napp.controller('SanjiWindowStateController', SanjiWindowStateController);\napp.directive('sanjiWindow', SanjiWindowDirective.directiveFactory);\napp.directive('sanjiWindowState', SanjiWindowStateDirective.directiveFactory);\nexport default app = app.name\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/index.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$log', '$scope'];\n\nvar SanjiWindowStateController = (function () {\n function SanjiWindowStateController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, SanjiWindowStateController);\n\n SanjiWindowStateController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n }\n\n _createClass(SanjiWindowStateController, [{\n key: 'init',\n value: function init(topCtrl, attrs) {\n this.sanjiWindowMgr = topCtrl.sanjiWindowMgr;\n if (undefined !== this.stateName) {\n topCtrl.register({\n name: this.stateName,\n linkName: this.linkName,\n icon: this.icon,\n isDefault: undefined !== attrs.defaultState ? true : false\n });\n }\n }\n }]);\n\n return SanjiWindowStateController;\n})();\n\nSanjiWindowStateController.$inject = $inject;\nexports['default'] = SanjiWindowStateController;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window-state.controller.js\n **/","const $inject = ['$log', '$scope'];\nclass SanjiWindowStateController {\n constructor(...injects) {\n SanjiWindowStateController.$inject.forEach((item, index) => this[item] = injects[index]);\n }\n\n init(topCtrl, attrs) {\n this.sanjiWindowMgr = topCtrl.sanjiWindowMgr;\n if (undefined !== this.stateName) {\n topCtrl.register({\n name: this.stateName,\n linkName: this.linkName,\n icon: this.icon,\n isDefault: undefined !== attrs.defaultState ? true : false\n });\n }\n }\n}\nSanjiWindowStateController.$inject = $inject;\nexport default SanjiWindowStateController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window-state.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar SanjiWindowStateDirective = (function () {\n function SanjiWindowStateDirective(injects) {\n _classCallCheck(this, SanjiWindowStateDirective);\n\n SanjiWindowStateDirective.directiveFactory.$inject.forEach(function (item, index) {\n SanjiWindowStateDirective[item] = injects[index];\n injectMap.set(SanjiWindowStateDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.require = ['sanjiWindowState', '^sanjiWindow'];\n this.controller = 'SanjiWindowStateController';\n this.controllerAs = 'vm';\n this.bindToController = {\n stateName: '@',\n linkName: '@',\n icon: '@'\n };\n this.template = '
';\n }\n\n _createClass(SanjiWindowStateDirective, [{\n key: 'link',\n value: function link(scope, element, attrs, ctrl, transclude) {\n ctrl[0].init(ctrl[1], attrs);\n }\n }], [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects);\n return SanjiWindowStateDirective.instance;\n }\n }]);\n\n return SanjiWindowStateDirective;\n})();\n\nSanjiWindowStateDirective.directiveFactory.$inject = $inject;\nexports['default'] = SanjiWindowStateDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window-state.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass SanjiWindowStateDirective {\n constructor(injects) {\n SanjiWindowStateDirective.directiveFactory.$inject.forEach((item, index) => {\n SanjiWindowStateDirective[item] = injects[index];\n injectMap.set(SanjiWindowStateDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.require = ['sanjiWindowState', '^sanjiWindow'];\n this.controller = 'SanjiWindowStateController';\n this.controllerAs = 'vm';\n this.bindToController = {\n stateName: '@',\n linkName: '@',\n icon: '@'\n };\n this.template = `
`;\n }\n\n link(scope, element, attrs, ctrl, transclude) {\n ctrl[0].init(ctrl[1], attrs);\n }\n\n static directiveFactory(...injects) {\n SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects);\n return SanjiWindowStateDirective.instance;\n }\n}\nSanjiWindowStateDirective.directiveFactory.$inject = $inject;\nexport default SanjiWindowStateDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window-state.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$rootScope', '$scope', 'sanjiWindowService'];\n\nvar SanjiWindowController = (function () {\n function SanjiWindowController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, SanjiWindowController);\n\n SanjiWindowController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, { name: this.windowName });\n this.$scope.$on('$destroy', function () {\n _this.sanjiWindowMgr.clearStates();\n _this.sanjiWindowService.destroy(_this.sanjiWindowMgr.getId());\n });\n }\n\n _createClass(SanjiWindowController, [{\n key: 'register',\n value: function register(state) {\n var sanjiWindowMgr = this.sanjiWindowMgr;\n if (state.isDefault) {\n sanjiWindowMgr.navigateTo(state.name);\n }\n sanjiWindowMgr.addState(state);\n }\n }, {\n key: 'refresh',\n value: function refresh() {\n this.$rootScope.$broadcast('sj:window:refresh', { id: this.windowId, promise: this.sanjiWindowMgr.promise });\n }\n }]);\n\n return SanjiWindowController;\n})();\n\nSanjiWindowController.$inject = $inject;\nexports['default'] = SanjiWindowController;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.controller.js\n **/","const $inject = ['$rootScope', '$scope', 'sanjiWindowService'];\nclass SanjiWindowController {\n constructor(...injects) {\n SanjiWindowController.$inject.forEach((item, index) => this[item] = injects[index]);\n this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, {name: this.windowName});\n this.$scope.$on('$destroy', () => {\n this.sanjiWindowMgr.clearStates();\n this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId());\n });\n }\n\n register(state) {\n let sanjiWindowMgr = this.sanjiWindowMgr;\n if (state.isDefault) {\n sanjiWindowMgr.navigateTo(state.name);\n }\n sanjiWindowMgr.addState(state);\n }\n\n refresh() {\n this.$rootScope.$broadcast('sj:window:refresh', {id: this.windowId, promise: this.sanjiWindowMgr.promise});\n }\n}\nSanjiWindowController.$inject = $inject;\nexport default SanjiWindowController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = ['$log'];\n\nvar SanjiWindowDirective = (function () {\n function SanjiWindowDirective(injects) {\n _classCallCheck(this, SanjiWindowDirective);\n\n SanjiWindowDirective.directiveFactory.$inject.forEach(function (item, index) {\n SanjiWindowDirective[item] = injects[index];\n injectMap.set(SanjiWindowDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-window.tpl.html';\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.controller = 'SanjiWindowController';\n this.controllerAs = 'vm';\n this.bindToController = {\n windowId: '@',\n windowName: '@',\n showLoadingBtn: '@'\n };\n }\n\n _createClass(SanjiWindowDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n SanjiWindowDirective.instance = new SanjiWindowDirective(injects);\n return SanjiWindowDirective.instance;\n }\n }]);\n\n return SanjiWindowDirective;\n})();\n\nSanjiWindowDirective.directiveFactory.$inject = $inject;\nexports['default'] = SanjiWindowDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = ['$log'];\nclass SanjiWindowDirective {\n constructor(injects) {\n SanjiWindowDirective.directiveFactory.$inject.forEach((item, index) => {\n SanjiWindowDirective[item] = injects[index];\n injectMap.set(SanjiWindowDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-window.tpl.html';\n this.restrict = 'EA';\n this.replace = true;\n this.transclude = true;\n this.scope = {};\n this.controller = 'SanjiWindowController';\n this.controllerAs = 'vm';\n this.bindToController = {\n windowId: '@',\n windowName: '@',\n showLoadingBtn: '@'\n };\n }\n\n static directiveFactory(...injects) {\n SanjiWindowDirective.instance = new SanjiWindowDirective(injects);\n return SanjiWindowDirective.instance;\n }\n}\nSanjiWindowDirective.directiveFactory.$inject = $inject;\nexport default SanjiWindowDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar SanjiWindowService = (function () {\n function SanjiWindowService() {\n _classCallCheck(this, SanjiWindowService);\n\n this.collection = [];\n }\n\n _createClass(SanjiWindowService, [{\n key: '_addInstance',\n value: function _addInstance(instance) {\n this.collection.push(instance);\n }\n }, {\n key: 'destroy',\n value: function destroy(id) {\n var idx = this.collection.findIndex(function (item) {\n return item.id === id;\n });\n this.collection.splice(idx, 1);\n }\n }, {\n key: '_isIdExist',\n value: function _isIdExist(id) {\n return -1 !== this.collection.findIndex(function (item) {\n return item.id === id;\n }) ? true : false;\n }\n }, {\n key: 'get',\n value: function get(id) {\n return this.collection.find(function (item) {\n return item.id === id;\n });\n }\n }, {\n key: 'create',\n value: function create(id, options) {\n var instance = null;\n options = options || {};\n\n if (undefined === id) {\n throw new Error('Please give a window id.');\n }\n\n if (this._isIdExist(id)) {\n throw new Error('The window id ' + id + ' is already exist.');\n }\n\n var sanjiWindowInstance = (function () {\n function sanjiWindowInstance(options) {\n _classCallCheck(this, sanjiWindowInstance);\n\n this.states = [];\n this.links = [];\n this.id = id;\n this.name = options.name || '';\n this.navigateContent = options.navigateContent || '';\n this.promise = null;\n }\n\n _createClass(sanjiWindowInstance, [{\n key: 'getId',\n value: function getId() {\n return this.id;\n }\n }, {\n key: 'navigateTo',\n value: function navigateTo(state) {\n this.navigateContent = state;\n }\n }, {\n key: 'addState',\n value: function addState(state) {\n if (state.linkName) {\n this.links.push(state);\n }\n this.states.push(state);\n }\n }, {\n key: 'clearStates',\n value: function clearStates() {\n this.links.length = 0;\n this.states.length = 0;\n }\n }]);\n\n return sanjiWindowInstance;\n })();\n\n instance = new sanjiWindowInstance(options);\n this._addInstance(instance);\n return instance;\n }\n }], [{\n key: 'factory',\n value: function factory() {\n return new SanjiWindowService();\n }\n }]);\n\n return SanjiWindowService;\n})();\n\nexports['default'] = SanjiWindowService;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.service.js\n **/","class SanjiWindowService {\n constructor() {\n this.collection = [];\n }\n\n static factory() {\n return new SanjiWindowService();\n }\n\n _addInstance(instance) {\n this.collection.push(instance);\n }\n\n destroy(id) {\n let idx = this.collection.findIndex(item => item.id === id);\n this.collection.splice(idx, 1);\n }\n\n _isIdExist(id) {\n return -1 !== this.collection.findIndex(item => item.id === id) ? true : false;\n }\n\n get(id) {\n return this.collection.find(item => item.id === id);\n }\n\n create(id, options) {\n let instance = null;\n options = options || {};\n\n if (undefined === id) {\n throw new Error('Please give a window id.');\n }\n\n if (this._isIdExist(id)) {\n throw new Error('The window id ' + id + ' is already exist.');\n }\n\n class sanjiWindowInstance {\n constructor(options) {\n this.states = [];\n this.links = [];\n this.id = id;\n this.name = options.name || '';\n this.navigateContent = options.navigateContent || '';\n this.promise = null;\n }\n\n getId() {\n return this.id;\n }\n\n navigateTo(state) {\n this.navigateContent = state;\n }\n\n addState(state) {\n if (state.linkName) {\n this.links.push(state);\n }\n this.states.push(state);\n }\n\n clearStates() {\n this.links.length = 0;\n this.states.length = 0;\n }\n }\n instance = new sanjiWindowInstance(options);\n this._addInstance(instance);\n return instance;\n }\n\n}\nexport default SanjiWindowService;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.service.js\n **/","var angular=window.angular,ngModule;\ntry {ngModule=angular.module([\"ng\"])}\ncatch(e){ngModule=angular.module(\"ng\",[])}\nvar v1=\"
\\n \\n
\";\nngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window-loading.tpl.html\",v1)}]);\nmodule.exports=v1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./sanji-window/sanji-window-loading.tpl.html\n ** module id = 7\n ** module chunks = 0\n **/","var angular=window.angular,ngModule;\ntry {ngModule=angular.module([\"ng\"])}\ncatch(e){ngModule=angular.module(\"ng\",[])}\nvar v1=\"\\n \\n \\n

{{vm.windowName}}

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n

\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\";\nngModule.run([\"$templateCache\",function(c){c.put(\"sanji-window.tpl.html\",v1)}]);\nmodule.exports=v1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./sanji-window/sanji-window.tpl.html\n ** module id = 8\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_9__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"angular\",\"commonjs2\":\"angular\",\"commonjs\":\"angular\",\"amd\":\"angular\"}\n ** module id = 9\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_10__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"ngBusy\",\"commonjs2\":\"angular-busy\",\"commonjs\":\"angular-busy\",\"amd\":\"angular-busy\"}\n ** module id = 10\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_11__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"ngMaterial\",\"commonjs2\":\"angular-material\",\"commonjs\":\"angular-material\",\"amd\":\"angular-material\"}\n ** module id = 11\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_12__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external {\"root\":\"ngMdIcons\",\"commonjs2\":\"angular-material-icons\",\"commonjs\":\"angular-material-icons\",\"amd\":\"angular-material-icons\"}\n ** module id = 12\n ** module chunks = 0\n **/"],"sourceRoot":""} diff --git a/package.json b/package.json index b68288b..61d2082 100644 --- a/package.json +++ b/package.json @@ -82,8 +82,7 @@ "angular": "~1.5.0", "angular-busy": "cgross/angular-busy#v4.1.3", "angular-material": "~1.0.5", - "angular-material-icons": "~0.6.0", - "svg-morpheus": "alexk111/SVG-Morpheus#v0.1.8" + "angular-material-icons": "~0.6.0" }, - "version": "2.1.2" + "version": "2.1.3" } \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index d67807b..1780bec 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,8 +20,7 @@ var config = { 'angular-material.css': nodeRoot + '/angular-material/angular-material.css', 'angular-material-icons.css': nodeRoot + '/angular-material-icons/angular-material-icons.css', 'angular-busy.css': nodeRoot + '/angular-busy/dist/angular-busy.css', - 'angular-busy': nodeRoot + '/angular-busy/dist/angular-busy.js', - 'svg-morpheus': nodeRoot + '/svg-morpheus/compile/unminified/svg-morpheus.js' + 'angular-busy': nodeRoot + '/angular-busy/dist/angular-busy.js' }, extensions: ['', '.js', '.json', 'html', 'scss', 'css'] },