From 3b1e76b03c823fe17e81a4f68c66647b42e98897 Mon Sep 17 00:00:00 2001 From: Zack Yang Date: Fri, 6 May 2016 22:58:41 +0800 Subject: [PATCH 1/2] fix(refactor): refactor to use angular component system --- app/sanji-window/index.js | 8 ++--- .../sanji-window-loading.tpl.html | 3 +- .../sanji-window-state.component.js | 16 +++++++++ .../sanji-window-state.controller.js | 12 ++++--- .../sanji-window-state.directive.js | 34 ------------------- app/sanji-window/sanji-window.component.js | 12 +++++++ app/sanji-window/sanji-window.controller.js | 14 +++++--- app/sanji-window/sanji-window.directive.js | 29 ---------------- app/sanji-window/sanji-window.tpl.html | 11 +++--- package.json | 10 +++--- 10 files changed, 62 insertions(+), 87 deletions(-) create mode 100644 app/sanji-window/sanji-window-state.component.js delete mode 100644 app/sanji-window/sanji-window-state.directive.js create mode 100644 app/sanji-window/sanji-window.component.js delete mode 100644 app/sanji-window/sanji-window.directive.js diff --git a/app/sanji-window/index.js b/app/sanji-window/index.js index 51718a3..9dc9314 100644 --- a/app/sanji-window/index.js +++ b/app/sanji-window/index.js @@ -9,13 +9,13 @@ import './sanji-window-loading.tpl.html'; import SanjiWindowService from './sanji-window.service'; import SanjiWindowController from './sanji-window.controller'; import SanjiWindowStateController from './sanji-window-state.controller'; -import SanjiWindowDirective from './sanji-window.directive'; -import SanjiWindowStateDirective from './sanji-window-state.directive'; +import SanjiWindowComponent from './sanji-window.component'; +import SanjiWindowStateComponent from './sanji-window-state.component'; let app = angular.module('sanji.window', [ngMaterial, ngMdIcons, 'cgBusy']); app.factory('sanjiWindowService', SanjiWindowService.factory); app.controller('SanjiWindowController', SanjiWindowController); app.controller('SanjiWindowStateController', SanjiWindowStateController); -app.directive('sanjiWindow', SanjiWindowDirective.directiveFactory); -app.directive('sanjiWindowState', SanjiWindowStateDirective.directiveFactory); +app.component('sanjiWindow', SanjiWindowComponent); +app.component('sanjiWindowState', SanjiWindowStateComponent); export default app = app.name diff --git a/app/sanji-window/sanji-window-loading.tpl.html b/app/sanji-window/sanji-window-loading.tpl.html index 1fc6e43..5741bfe 100644 --- a/app/sanji-window/sanji-window-loading.tpl.html +++ b/app/sanji-window/sanji-window-loading.tpl.html @@ -1,5 +1,6 @@ diff --git a/app/sanji-window/sanji-window-state.component.js b/app/sanji-window/sanji-window-state.component.js new file mode 100644 index 0000000..0ed5b8f --- /dev/null +++ b/app/sanji-window/sanji-window-state.component.js @@ -0,0 +1,16 @@ +const SanjiWindowStateComponent = { + transclude: true, + require: { + parent: '^sanjiWindow' + }, + bindings: { + defaultState: '@', + stateName: '@', + linkName: '@', + icon: '@' + }, + template: `
`, + controller: 'SanjiWindowStateController', + controllerAs: 'vm' +}; +export default SanjiWindowStateComponent; diff --git a/app/sanji-window/sanji-window-state.controller.js b/app/sanji-window/sanji-window-state.controller.js index 3d0bf27..a5f34d3 100644 --- a/app/sanji-window/sanji-window-state.controller.js +++ b/app/sanji-window/sanji-window-state.controller.js @@ -1,17 +1,19 @@ -const $inject = ['$log', '$scope']; +const $inject = []; class SanjiWindowStateController { constructor(...injects) { SanjiWindowStateController.$inject.forEach((item, index) => this[item] = injects[index]); + this.sanjiWindowMgr = null; } - init(topCtrl, attrs) { - this.sanjiWindowMgr = topCtrl.sanjiWindowMgr; + $onInit() { + this.sanjiWindowMgr = this.parent.sanjiWindowMgr; + console.log(this.sanjiWindowMgr); if (undefined !== this.stateName) { - topCtrl.register({ + this.parent.register({ name: this.stateName, linkName: this.linkName, icon: this.icon, - isDefault: undefined !== attrs.defaultState ? true : false + isDefault: undefined !== this.defaultState ? true : false }); } } diff --git a/app/sanji-window/sanji-window-state.directive.js b/app/sanji-window/sanji-window-state.directive.js deleted file mode 100644 index a2a971f..0000000 --- a/app/sanji-window/sanji-window-state.directive.js +++ /dev/null @@ -1,34 +0,0 @@ -const injectMap = new WeakMap(); -const $inject = []; -class SanjiWindowStateDirective { - constructor(injects) { - SanjiWindowStateDirective.directiveFactory.$inject.forEach((item, index) => { - SanjiWindowStateDirective[item] = injects[index]; - injectMap.set(SanjiWindowStateDirective[item], injects[index]); - }); - this.restrict = 'EA'; - this.replace = true; - this.transclude = true; - this.scope = {}; - this.require = ['sanjiWindowState', '^sanjiWindow']; - this.controller = 'SanjiWindowStateController'; - this.controllerAs = 'vm'; - this.bindToController = { - stateName: '@', - linkName: '@', - icon: '@' - }; - this.template = `
`; - } - - link(scope, element, attrs, ctrl, transclude) { - ctrl[0].init(ctrl[1], attrs); - } - - static directiveFactory(...injects) { - SanjiWindowStateDirective.instance = new SanjiWindowStateDirective(injects); - return SanjiWindowStateDirective.instance; - } -} -SanjiWindowStateDirective.directiveFactory.$inject = $inject; -export default SanjiWindowStateDirective; diff --git a/app/sanji-window/sanji-window.component.js b/app/sanji-window/sanji-window.component.js new file mode 100644 index 0000000..59738f2 --- /dev/null +++ b/app/sanji-window/sanji-window.component.js @@ -0,0 +1,12 @@ +const SanjiWindowComponent = { + transclude: true, + bindings: { + windowId: '@', + windowName: '@', + showLoadingBtn: '@' + }, + templateUrl: 'sanji-window.tpl.html', + controller: 'SanjiWindowController', + controllerAs: 'vm' +}; +export default SanjiWindowComponent; diff --git a/app/sanji-window/sanji-window.controller.js b/app/sanji-window/sanji-window.controller.js index 53a9fd1..fd49260 100644 --- a/app/sanji-window/sanji-window.controller.js +++ b/app/sanji-window/sanji-window.controller.js @@ -3,10 +3,11 @@ class SanjiWindowController { constructor(...injects) { SanjiWindowController.$inject.forEach((item, index) => this[item] = injects[index]); this.sanjiWindowMgr = this.sanjiWindowService.create(this.windowId, {name: this.windowName}); - this.$scope.$on('$destroy', () => { - this.sanjiWindowMgr.clearStates(); - this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId()); - }); + } + + $onDestroy() { + this.sanjiWindowMgr.clearStates(); + this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId()); } register(state) { @@ -18,7 +19,10 @@ class SanjiWindowController { } refresh() { - this.$rootScope.$broadcast('sj:window:refresh', {id: this.windowId, promise: this.sanjiWindowMgr.promise}); + this.$rootScope.$broadcast('sj:window:refresh', { + id: this.windowId, + promise: this.sanjiWindowMgr.promise + }); } } SanjiWindowController.$inject = $inject; diff --git a/app/sanji-window/sanji-window.directive.js b/app/sanji-window/sanji-window.directive.js deleted file mode 100644 index 2013cdf..0000000 --- a/app/sanji-window/sanji-window.directive.js +++ /dev/null @@ -1,29 +0,0 @@ -const injectMap = new WeakMap(); -const $inject = ['$log']; -class SanjiWindowDirective { - constructor(injects) { - SanjiWindowDirective.directiveFactory.$inject.forEach((item, index) => { - SanjiWindowDirective[item] = injects[index]; - injectMap.set(SanjiWindowDirective[item], injects[index]); - }); - this.templateUrl = 'sanji-window.tpl.html'; - this.restrict = 'EA'; - this.replace = true; - this.transclude = true; - this.scope = {}; - this.controller = 'SanjiWindowController'; - this.controllerAs = 'vm'; - this.bindToController = { - windowId: '@', - windowName: '@', - showLoadingBtn: '@' - }; - } - - static directiveFactory(...injects) { - SanjiWindowDirective.instance = new SanjiWindowDirective(injects); - return SanjiWindowDirective.instance; - } -} -SanjiWindowDirective.directiveFactory.$inject = $inject; -export default SanjiWindowDirective; diff --git a/app/sanji-window/sanji-window.tpl.html b/app/sanji-window/sanji-window.tpl.html index ede7fb0..27f70cf 100644 --- a/app/sanji-window/sanji-window.tpl.html +++ b/app/sanji-window/sanji-window.tpl.html @@ -2,13 +2,16 @@ -

{{vm.windowName}}

+

- + - - + + diff --git a/package.json b/package.json index 719278b..a2f7ded 100644 --- a/package.json +++ b/package.json @@ -31,18 +31,18 @@ "babel-loader": "~5.3.3", "babel-runtime": "~5.8.34", "codecov.io": "~0.1.6", - "commitizen": "~2.7.2", + "commitizen": "~2.8.0", "css-loader": "~0.23.0", "cz-conventional-changelog": "~1.1.5", "eslint": "~1.10.3", "eslint-loader": "~1.2.1", "extract-text-webpack-plugin": "~1.0.1", "file-loader": "~0.8.5", - "ghooks": "~1.0.3", + "ghooks": "~1.2.0", "html-webpack-plugin": "~1.7.0", "karma": "~0.13.15", "karma-coverage": "~0.5.3", - "karma-mocha": "~0.2.1", + "karma-mocha": "~1.0.0", "karma-mocha-reporter": "~2.0.0", "karma-phantomjs-launcher": "~1.0.0", "karma-sinon-chai": "~1.2.0", @@ -52,7 +52,7 @@ "ng-cache-loader": "0.0.15", "node-bourbon": "~4.2.3", "node-libs-browser": "~1.0.0", - "node-sass": "~3.4.2", + "node-sass": "~3.7.0", "phantomjs": "~2.1.3", "publish-latest": "~1.1.2", "raw-loader": "~0.5.1", @@ -60,7 +60,7 @@ "semantic-release": "^4.3.5", "style-loader": "~0.13.0", "url-loader": "~0.5.7", - "webpack": "~1.12.9", + "webpack": "~1.13.0", "webpack-dev-server": "~1.14.0", "webpack-notifier": "~1.3.0" }, From d6fc960e5bfec62bf3fff76b554b6f2fb64880a1 Mon Sep 17 00:00:00 2001 From: Zack Yang Date: Fri, 6 May 2016 15:04:58 +0000 Subject: [PATCH 2/2] v2.1.6 --- dist/angular-sanji-window.css | 2 ++ dist/angular-sanji-window.css.map | 1 + dist/angular-sanji-window.js | 2 ++ dist/angular-sanji-window.js.map | 1 + package.json | 5 +++-- 5 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 dist/angular-sanji-window.css create mode 100644 dist/angular-sanji-window.css.map create mode 100644 dist/angular-sanji-window.js create mode 100644 dist/angular-sanji-window.js.map diff --git a/dist/angular-sanji-window.css b/dist/angular-sanji-window.css new file mode 100644 index 0000000..f480f39 --- /dev/null +++ b/dist/angular-sanji-window.css @@ -0,0 +1,2 @@ +.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.css.map b/dist/angular-sanji-window.css.map new file mode 100644 index 0000000..63746e9 --- /dev/null +++ b/dist/angular-sanji-window.css.map @@ -0,0 +1 @@ +{"version":3,"sources":[],"names":[],"mappings":"","file":"angular-sanji-window.css","sourceRoot":""} \ No newline at end of file diff --git a/dist/angular-sanji-window.js b/dist/angular-sanji-window.js new file mode 100644 index 0000000..9caa34f --- /dev/null +++ b/dist/angular-sanji-window.js @@ -0,0 +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 a=t[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,e),a.loaded=!0,a.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 a=t(9),r=i(a),o=t(11),u=i(o),s=t(12),d=i(s);t(10),t(1),t(8),t(7);var l=t(6),c=i(l),f=t(5),m=i(f),g=t(3),h=i(g),p=t(4),w=i(p),v=t(2),y=i(v),j=r["default"].module("sanji.window",[u["default"],d["default"],"cgBusy"]);j.factory("sanjiWindowService",c["default"].factory),j.controller("SanjiWindowController",m["default"]),j.controller("SanjiWindowStateController",h["default"]),j.component("sanjiWindow",w["default"]),j.component("sanjiWindowState",y["default"]),e["default"]=j=j.name,n.exports=e["default"]},function(n,e){},function(n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={transclude:!0,require:{parent:"^sanjiWindow"},bindings:{defaultState:"@",stateName:"@",linkName:"@",icon:"@"},template:'
',controller:"SanjiWindowStateController",controllerAs:"vm"};e["default"]=t,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;tr;r++)a[r]=arguments[r];t(this,n),n.$inject.forEach(function(n,t){return e[n]=a[t]}),this.sanjiWindowMgr=null}return i(n,[{key:"$onInit",value:function(){this.sanjiWindowMgr=this.parent.sanjiWindowMgr,console.log(this.sanjiWindowMgr),void 0!==this.stateName&&this.parent.register({name:this.stateName,linkName:this.linkName,icon:this.icon,isDefault:void 0!==this.defaultState})}}]),n}();r.$inject=a,e["default"]=r,n.exports=e["default"]},function(n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={transclude:!0,bindings:{windowId:"@",windowName:"@",showLoadingBtn:"@"},templateUrl:"sanji-window.tpl.html",controller:"SanjiWindowController",controllerAs:"vm"};e["default"]=t,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;tr;r++)a[r]=arguments[r];t(this,n),n.$inject.forEach(function(n,t){return e[n]=a[t]}),this.sanjiWindowMgr=this.sanjiWindowService.create(this.windowId,{name:this.windowName})}return i(n,[{key:"$onDestroy",value:function(){this.sanjiWindowMgr.clearStates(),this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId())}},{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}();r.$inject=a,e["default"]=r,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

\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",r)}]),n.exports=r},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 new file mode 100644 index 0000000..c86be95 --- /dev/null +++ b/dist/angular-sanji-window.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///angular-sanji-window.js","webpack:///webpack/bootstrap da2de8391e34dc8f0387","webpack:///./sanji-window/index.js","webpack:///./sanji-window/index.js?81c3","webpack:///./sanji-window/sanji-window-state.component.js","webpack:///./sanji-window/sanji-window-state.component.js?5227","webpack:///./sanji-window/sanji-window-state.controller.js","webpack:///./sanji-window/sanji-window-state.controller.js?432c","webpack:///./sanji-window/sanji-window.component.js","webpack:///./sanji-window/sanji-window.component.js?00a8","webpack:///./sanji-window/sanji-window.controller.js","webpack:///./sanji-window/sanji-window.controller.js?8a83","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","_sanjiWindowComponent","_sanjiWindowComponent2","_sanjiWindowStateComponent","_sanjiWindowStateComponent2","app","controller","component","name","SanjiWindowStateComponent","transclude","parent","bindings","defaultState","stateName","linkName","icon","template","controllerAs","_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","sanjiWindowMgr","console","log","undefined","register","isDefault","SanjiWindowComponent","windowId","windowName","showLoadingBtn","templateUrl","SanjiWindowController","sanjiWindowService","create","clearStates","destroy","getId","state","navigateTo","addState","$rootScope","$broadcast","promise","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,SA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ition(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__(5);\n\t\n\tvar _sanjiWindowController2 = _interopRequireDefault(_sanjiWindowController);\n\t\n\tvar _sanjiWindowStateController = __webpack_require__(3);\n\t\n\tvar _sanjiWindowStateController2 = _interopRequireDefault(_sanjiWindowStateController);\n\t\n\tvar _sanjiWindowComponent = __webpack_require__(4);\n\t\n\tvar _sanjiWindowComponent2 = _interopRequireDefault(_sanjiWindowComponent);\n\t\n\tvar _sanjiWindowStateComponent = __webpack_require__(2);\n\t\n\tvar _sanjiWindowStateComponent2 = _interopRequireDefault(_sanjiWindowStateComponent);\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.component('sanjiWindow', _sanjiWindowComponent2['default']);\n\tapp.component('sanjiWindowState', _sanjiWindowStateComponent2['default']);\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\tvar SanjiWindowStateComponent = {\n\t transclude: true,\n\t require: {\n\t parent: '^sanjiWindow'\n\t },\n\t bindings: {\n\t defaultState: '@',\n\t stateName: '@',\n\t linkName: '@',\n\t icon: '@'\n\t },\n\t template: '
',\n\t controller: 'SanjiWindowStateController',\n\t controllerAs: 'vm'\n\t};\n\texports['default'] = SanjiWindowStateComponent;\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 $inject = [];\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 this.sanjiWindowMgr = null;\n\t }\n\t\n\t _createClass(SanjiWindowStateController, [{\n\t key: \"$onInit\",\n\t value: function $onInit() {\n\t this.sanjiWindowMgr = this.parent.sanjiWindowMgr;\n\t console.log(this.sanjiWindowMgr);\n\t if (undefined !== this.stateName) {\n\t this.parent.register({\n\t name: this.stateName,\n\t linkName: this.linkName,\n\t icon: this.icon,\n\t isDefault: undefined !== this.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/* 4 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\tvar SanjiWindowComponent = {\n\t transclude: true,\n\t bindings: {\n\t windowId: '@',\n\t windowName: '@',\n\t showLoadingBtn: '@'\n\t },\n\t templateUrl: 'sanji-window.tpl.html',\n\t controller: 'SanjiWindowController',\n\t controllerAs: 'vm'\n\t};\n\texports['default'] = SanjiWindowComponent;\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 $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 }\n\t\n\t _createClass(SanjiWindowController, [{\n\t key: '$onDestroy',\n\t value: function $onDestroy() {\n\t this.sanjiWindowMgr.clearStates();\n\t this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId());\n\t }\n\t }, {\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', {\n\t id: this.windowId,\n\t promise: this.sanjiWindowMgr.promise\n\t });\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/* 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

\\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 da2de8391e34dc8f0387\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 _sanjiWindowComponent = require('./sanji-window.component');\n\nvar _sanjiWindowComponent2 = _interopRequireDefault(_sanjiWindowComponent);\n\nvar _sanjiWindowStateComponent = require('./sanji-window-state.component');\n\nvar _sanjiWindowStateComponent2 = _interopRequireDefault(_sanjiWindowStateComponent);\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.component('sanjiWindow', _sanjiWindowComponent2['default']);\napp.component('sanjiWindowState', _sanjiWindowStateComponent2['default']);\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 SanjiWindowComponent from './sanji-window.component';\nimport SanjiWindowStateComponent from './sanji-window-state.component';\n\nlet app = angular.module('sanji.window', [ngMaterial, ngMdIcons, 'cgBusy']);\napp.factory('sanjiWindowService', SanjiWindowService.factory);\napp.controller('SanjiWindowController', SanjiWindowController);\napp.controller('SanjiWindowStateController', SanjiWindowStateController);\napp.component('sanjiWindow', SanjiWindowComponent);\napp.component('sanjiWindowState', SanjiWindowStateComponent);\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});\nvar SanjiWindowStateComponent = {\n transclude: true,\n require: {\n parent: '^sanjiWindow'\n },\n bindings: {\n defaultState: '@',\n stateName: '@',\n linkName: '@',\n icon: '@'\n },\n template: '
',\n controller: 'SanjiWindowStateController',\n controllerAs: 'vm'\n};\nexports['default'] = SanjiWindowStateComponent;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window-state.component.js\n **/","const SanjiWindowStateComponent = {\n transclude: true,\n require: {\n parent: '^sanjiWindow'\n },\n bindings: {\n defaultState: '@',\n stateName: '@',\n linkName: '@',\n icon: '@'\n },\n template: `
`,\n controller: 'SanjiWindowStateController',\n controllerAs: 'vm'\n};\nexport default SanjiWindowStateComponent;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window-state.component.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 = [];\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 this.sanjiWindowMgr = null;\n }\n\n _createClass(SanjiWindowStateController, [{\n key: \"$onInit\",\n value: function $onInit() {\n this.sanjiWindowMgr = this.parent.sanjiWindowMgr;\n console.log(this.sanjiWindowMgr);\n if (undefined !== this.stateName) {\n this.parent.register({\n name: this.stateName,\n linkName: this.linkName,\n icon: this.icon,\n isDefault: undefined !== this.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 = [];\nclass SanjiWindowStateController {\n constructor(...injects) {\n SanjiWindowStateController.$inject.forEach((item, index) => this[item] = injects[index]);\n this.sanjiWindowMgr = null;\n }\n\n $onInit() {\n this.sanjiWindowMgr = this.parent.sanjiWindowMgr;\n console.log(this.sanjiWindowMgr);\n if (undefined !== this.stateName) {\n this.parent.register({\n name: this.stateName,\n linkName: this.linkName,\n icon: this.icon,\n isDefault: undefined !== this.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});\nvar SanjiWindowComponent = {\n transclude: true,\n bindings: {\n windowId: '@',\n windowName: '@',\n showLoadingBtn: '@'\n },\n templateUrl: 'sanji-window.tpl.html',\n controller: 'SanjiWindowController',\n controllerAs: 'vm'\n};\nexports['default'] = SanjiWindowComponent;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./sanji-window/sanji-window.component.js\n **/","const SanjiWindowComponent = {\n transclude: true,\n bindings: {\n windowId: '@',\n windowName: '@',\n showLoadingBtn: '@'\n },\n templateUrl: 'sanji-window.tpl.html',\n controller: 'SanjiWindowController',\n controllerAs: 'vm'\n};\nexport default SanjiWindowComponent;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./sanji-window/sanji-window.component.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 }\n\n _createClass(SanjiWindowController, [{\n key: '$onDestroy',\n value: function $onDestroy() {\n this.sanjiWindowMgr.clearStates();\n this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId());\n }\n }, {\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', {\n id: this.windowId,\n promise: this.sanjiWindowMgr.promise\n });\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 }\n\n $onDestroy() {\n this.sanjiWindowMgr.clearStates();\n this.sanjiWindowService.destroy(this.sanjiWindowMgr.getId());\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', {\n id: this.windowId,\n promise: this.sanjiWindowMgr.promise\n });\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 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

\\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":""} \ No newline at end of file diff --git a/package.json b/package.json index a2f7ded..c159ff9 100644 --- a/package.json +++ b/package.json @@ -83,5 +83,6 @@ "angular-busy": "~4.1.3", "angular-material": "~1.0.5", "angular-material-icons": "^0.7.0" - } -} + }, + "version": "2.1.6" +} \ No newline at end of file