UNPKG

@ecip/shared

Version:
2 lines 4.08 kB
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/common"),require("@angular/forms"),require("@angular/router"),require("@delon/theme"),require("@delon/abc"),require("@delon/acl"),require("ng-zorro-antd"),require("ngx-countdown"),require("@ecip/service"),require("@delon/form"),require("rxjs/index"),require("@angular/core"),require("rxjs/Rx")):"function"==typeof define&&define.amd?define("@ecip/shared",["exports","@angular/common","@angular/forms","@angular/router","@delon/theme","@delon/abc","@delon/acl","ng-zorro-antd","ngx-countdown","@ecip/service","@delon/form","rxjs/index","@angular/core","rxjs/Rx"],r):r((e.ecip=e.ecip||{},e.ecip.shared={}),e.ng.common,e.ng.forms,e.ng.router,e.theme,e.abc,e.acl,e.ngZorroAntd,e.ngxCountdown,e[1][0]["0-rc"][5],e.form,e.rxjs.index,e.ng.core,e.rxjs.Rx)}(this,function(e,r,o,n,t,u,i,c,a,l,d,s,f,p){"use strict";var m=function(){return(m=Object.assign||function(e){for(var r,o=1,n=arguments.length;o<n;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}).apply(this,arguments)};function h(e,r){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,t,u=o.call(e),i=[];try{for(;(void 0===r||0<r--)&&!(n=u.next()).done;)i.push(n.value)}catch(c){t={error:c}}finally{try{n&&!n.done&&(o=u["return"])&&o.call(u)}finally{if(t)throw t.error}}return i}function g(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(h(arguments[r]));return e}var v=function(){function e(e){this.dictService=e}return e.prototype.transform=function(e,r){return this.dictService.dictLabel(r,e)},e.decorators=[{type:f.Pipe,args:[{name:"dictLabel"}]}],e.ctorParameters=function(){return[{type:l.DictService}]},e}(),y=[c.NgZorroAntdModule,a.CountdownModule],M=[],b=[],x=[v],j=function(){function e(){}return e.decorators=[{type:f.NgModule,args:[{imports:g([r.CommonModule,o.FormsModule,n.RouterModule,o.ReactiveFormsModule,t.AlainThemeModule.forChild(),u.DelonABCModule,i.DelonACLModule,d.DelonFormModule],y),declarations:g(M,b,x),exports:g([r.CommonModule,o.FormsModule,o.ReactiveFormsModule,n.RouterModule,t.AlainThemeModule,u.DelonABCModule,i.DelonACLModule,d.DelonFormModule],y,M,b,x)}]}],e}(),S=[],q=function(){function e(e){}return e.decorators=[{type:f.NgModule,args:[{declarations:S,entryComponents:S,imports:[j,d.DelonFormModule.forRoot()],exports:g(S)}]}],e.ctorParameters=function(){return[{type:d.WidgetRegistry}]},e}(),C=function(){function e(){this.subject=new s.Subject}return e.prototype.sendMessage=function(e){this.subject.next({text:e})},e.prototype.clearMessage=function(){this.subject.next()},e.prototype.getMessage=function(){return this.subject.asObservable()},e.decorators=[{type:f.Injectable}],e}(),D=function(){function i(){}return i.prototype.collapse=function(o,e,r){var n=this;if(!1===r){if(!e.children)return;e.children.forEach(function(r){var e=o.find(function(e){return e.id===r.id});e.expand=!1,n.collapse(o,e,!1)})}},i.convertTreeToList=function(e){var r=[],o=[],n={};for(r.push(m({},e,{level:0,expand:!1}));0!==r.length;){var t=r.pop();if(i.visitNode(t,n,o),t.children)for(var u=t.children.length-1;0<=u;u--)r.push(m({},t.children[u],{level:t.level+1,expand:!1,parent:t}))}return o},i.visitNode=function(e,r,o){r[e.id]||(r[e.id]=!0,o.push(e))},i.decorators=[{type:f.Injectable,args:[{providedIn:"root"}]}],i.ctorParameters=function(){return[]},i.ngInjectableDef=f.defineInjectable({factory:function(){return new i},token:i,providedIn:"root"}),i}(),R=function(){function e(){this._eventBus=new p.Subject}return e.prototype.broadcast=function(e,r){this._eventBus.next({key:e,data:r})},e.prototype.on=function(r){return this._eventBus.asObservable().filter(function(e){return e.key===r}).map(function(e){return e.data})},e.decorators=[{type:f.Injectable}],e.ctorParameters=function(){return[]},e}();e.SharedModule=j,e.SCHEMA_THIRDS_COMPONENTS=S,e.JsonSchemaModule=q,e.MessageService=C,e.TreeService=D,e.Broadcaster=R,e.DictLabelPipe=v,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=shared.umd.min.js.map