-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-XDRLT7ZQ.js
More file actions
1 lines (1 loc) · 8.17 KB
/
Copy pathchunk-XDRLT7ZQ.js
File metadata and controls
1 lines (1 loc) · 8.17 KB
1
import{a as $,c as ee}from"./chunk-Y54HNU3H.js";import{b as J}from"./chunk-FFGJMO62.js";import{b as H}from"./chunk-XRBZUWDJ.js";import{c as K,j as Q,o as W,q as X,r as Y,t as Z}from"./chunk-LJRBPGSW.js";import{s as T}from"./chunk-JYBRZQRP.js";import{Aa as N,Da as o,Ea as i,Fa as c,H as w,I as f,Ja as O,K as k,Ka as y,La as x,Ma as G,Na as q,O as P,P as U,Q as F,Qb as j,T as L,Ta as E,Ua as r,Va as M,ca as s,da as _,fb as I,l as B,la as m,ma as g,ra as v,sb as S,va as l,wa as D,xa as V,zb as z}from"./chunk-UJIEDWPF.js";var pe=["*"];function de(e,p){if(e&1&&c(0,"i"),e&2){let t=x(2);N("el-icon-",t.nelSpinner,"")}}function ue(e,p){e&1&&(F(),o(0,"svg",6),c(1,"circle",7),i())}function fe(e,p){if(e&1&&(o(0,"p",8),r(1),i()),e&2){let t=x(2);s(),M(t.nelText)}}function ge(e,p){if(e&1&&(o(0,"div",2)(1,"div",3),v(2,de,1,3,"i",4)(3,ue,2,0,"ng-template",null,0,I)(5,fe,2,1,"p",5),i()()),e&2){let t=E(4),n=x();D("background",n.nelBackground),V("is-fullscreen",n.nelFullscreen),l("@loadingMotion",void 0),s(2),l("ngIf",n.nelSpinner)("ngIfElse",t),s(3),l("ngIf",n.nelText)}}var u=class e{constructor(){this.nelLoading=!0,this.nelFullscreen=!1}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=m({type:e,selectors:[["nel-loading"]],hostAttrs:[1,"el-loading-parent--relative"],inputs:{nelLoading:"nelLoading",nelText:"nelText",nelSpinner:"nelSpinner",nelBackground:"nelBackground",nelFullscreen:"nelFullscreen"},standalone:!1,ngContentSelectors:pe,decls:2,vars:1,consts:[["spinnerTpl",""],["class","el-loading-mask",3,"is-fullscreen","background",4,"ngIf"],[1,"el-loading-mask"],[1,"el-loading-spinner"],[3,"class",4,"ngIf","ngIfElse"],["class","el-loading-text",4,"ngIf"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none",1,"path"],[1,"el-loading-text"]],template:function(t,n){t&1&&(G(),q(0),v(1,ge,6,8,"div",1)),t&2&&(s(),l("ngIf",n.nelLoading))},dependencies:[S],encapsulation:2,data:{animation:[T]}})}};B([J()],u.prototype,"nelFullscreen",void 0);var C=class{constructor(p,t){this.overlayRef=p,this.options=t,this.componentInstance=null}close(){this.componentInstance.state="done"}};function xe(e,p){if(e&1&&c(0,"i"),e&2){let t=x();N("el-icon-",t.spinner,"")}}function Ce(e,p){e&1&&(F(),o(0,"svg",5),c(1,"circle",6),i())}function ve(e,p){if(e&1&&(o(0,"p",7),r(1),i()),e&2){let t=x();s(),M(t.text)}}var ne=(()=>{class e{constructor(t){this.loadingRef=t,this.state="start"}ngOnInit(){this.overlay=this.loadingRef.overlayRef,this.loadingRef.options&&(this.loadingRef.options.text&&(this.text=this.loadingRef.options.text),this.loadingRef.options.spinner&&(this.spinner=this.loadingRef.options.spinner),this.loadingRef.options.background&&(this.background=this.loadingRef.options.background))}onAnimationDone(t){t.toState==="done"&&this.overlay.dispose()}static{this.\u0275fac=function(n){return new(n||e)(_(C))}}static{this.\u0275cmp=m({type:e,selectors:[["nel-loading-fullscreen"]],standalone:!1,decls:6,vars:6,consts:[["spinnerTpl",""],[1,"el-loading-mask","is-fullscreen"],[1,"el-loading-spinner"],[3,"class",4,"ngIf","ngIfElse"],["class","el-loading-text",4,"ngIf"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none",1,"path"],[1,"el-loading-text"]],template:function(n,a){if(n&1){let h=O();o(0,"div",1),y("@loadingMotion.done",function(me){return P(h),U(a.onAnimationDone(me))}),o(1,"div",2),v(2,xe,1,3,"i",3)(3,Ce,2,0,"ng-template",null,0,I)(5,ve,2,1,"p",4),i()()}if(n&2){let h=E(4);D("background",a.background),l("@loadingMotion",a.state),s(2),l("ngIf",a.spinner)("ngIfElse",h),s(3),l("ngIf",a.text)}},dependencies:[S],encapsulation:2,data:{animation:[T]}})}}return e})();var b=(()=>{class e{constructor(t,n){this.overlay=t,this.injector=n}show(t){let n=this.overlay.create(),a=new C(n,t),h=this.createInjector(a,this.injector),R=n.attach(new K(ne,null,h));return a.componentInstance=R.instance,this.loadingRef=a,a}createInjector(t,n){return L.create({parent:n,providers:[{provide:C,useValue:t}]})}hide(){this.loadingRef.close()}static{this.\u0275fac=function(n){return new(n||e)(k(Q),k(L))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var te=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=f({providers:[b],imports:[z,H]})}}return e})();var oe=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=m({type:e,selectors:[["nel-demo-loading-basic"]],standalone:!1,decls:3,vars:0,consts:[[1,"table"]],template:function(n,a){n&1&&(o(0,"nel-loading")(1,"div",0),r(2," table\u533A\u57DF\uFF0C\u5F85\u5F00\u53D1\u4E2D... "),i()())},dependencies:[u],styles:[".table[_ngcontent-%COMP%]{height:192px}"]})}}return e})();var ie=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=m({type:e,selectors:[["nel-demo-loading-custom"]],standalone:!1,decls:3,vars:3,consts:[[3,"nelText","nelSpinner","nelBackground"],[1,"table"]],template:function(n,a){n&1&&(o(0,"nel-loading",0)(1,"div",1),r(2," table\u533A\u57DF\uFF0C\u5F85\u5F00\u53D1\u4E2D... "),i()()),n&2&&l("nelText","\u62FC\u547D\u52A0\u8F7D\u4E2D")("nelSpinner","loading")("nelBackground","rgba(0, 0, 0, 0.8)")},dependencies:[u],styles:[".table[_ngcontent-%COMP%]{height:192px}"]})}}return e})();var le=(()=>{class e{constructor(t){this.loading=t,this.fullscreenLoading=!1}openFullScreen1(){this.fullscreenLoading=!0,setTimeout(()=>{this.fullscreenLoading=!1},2e3)}openFullScreen2(){this.loading.show({text:"Loading",spinner:"loading",background:"rgba(0, 0, 0, 0.7)"}),setTimeout(()=>{this.loading.hide()},2e3)}static{this.\u0275fac=function(n){return new(n||e)(_(b))}}static{this.\u0275cmp=m({type:e,selectors:[["nel-demo-loading-fullscreen"]],standalone:!1,decls:5,vars:3,consts:[["nelFullscreen","",3,"nelLoading"],["nel-button","","v-loading.fullscreen.lock","fullscreenLoading",3,"click","nelType"],["nel-button","",3,"click","nelType"]],template:function(n,a){n&1&&(o(0,"nel-loading",0)(1,"button",1),y("click",function(){return a.openFullScreen1()}),r(2," \u6307\u4EE4\u65B9\u5F0F "),i()(),o(3,"button",2),y("click",function(){return a.openFullScreen2()}),r(4," \u670D\u52A1\u65B9\u5F0F "),i()),n&2&&(l("nelLoading",a.fullscreenLoading),s(),l("nelType","primary"),s(2),l("nelType","primary"))},dependencies:[u,$],styles:["nel-loading[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return e})();var re=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=f({imports:[te,ee]})}}return e})();var ae=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=m({type:e,selectors:[["app-loading"]],standalone:!1,decls:24,vars:4,consts:[["code","import { NelLoadingModule } from 'ng-element-ui/loading';"],[3,"codeUrl"],["demo",""],[3,"docUrl"]],template:function(n,a){n&1&&(o(0,"h2"),r(1,"Loading \u52A0\u8F7D"),i(),o(2,"p"),r(3,"\u52A0\u8F7D\u6570\u636E\u65F6\u663E\u793A\u52A8\u6548\u3002"),i(),c(4,"app-code",0),o(5,"h3"),r(6,"\u533A\u57DF\u52A0\u8F7D"),i(),o(7,"p"),r(8,"\u5728\u8868\u683C\u7B49\u5BB9\u5668\u4E2D\u52A0\u8F7D\u6570\u636E\u65F6\u663E\u793A\u3002"),i(),o(9,"app-demo",1),c(10,"nel-demo-loading-basic",2),i(),o(11,"h3"),r(12,"\u81EA\u5B9A\u4E49"),i(),o(13,"p"),r(14,"\u53EF\u81EA\u5B9A\u4E49\u52A0\u8F7D\u6587\u6848\u3001\u56FE\u6807\u548C\u80CC\u666F\u8272\u3002"),i(),o(15,"app-demo",1),c(16,"nel-demo-loading-custom",2),i(),o(17,"h3"),r(18,"\u6574\u9875\u52A0\u8F7D"),i(),o(19,"p"),r(20,"\u9875\u9762\u6570\u636E\u52A0\u8F7D\u65F6\u663E\u793A\u3002"),i(),o(21,"app-demo",1),c(22,"nel-demo-loading-fullscreen",2),i(),c(23,"app-doc",3)),n&2&&(s(9),l("codeUrl","components-loading-demo-basic.component"),s(6),l("codeUrl","components-loading-demo-custom.component"),s(6),l("codeUrl","components-loading-demo-fullscreen.component"),s(2),l("docUrl","components-loading"))},dependencies:[oe,ie,le,W,X,Y],encapsulation:2})}}return e})();var De=[{path:"",component:ae}],se=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=f({imports:[j.forChild(De),j]})}}return e})();var yn=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=f({imports:[re,Z,se]})}}return e})();export{yn as LoadingModule};