-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-G4S54V32.js
More file actions
6 lines (6 loc) · 17.3 KB
/
chunk-G4S54V32.js
File metadata and controls
6 lines (6 loc) · 17.3 KB
1
2
3
4
5
6
import{a as v,b as I,c as Y}from"./chunk-Y54HNU3H.js";import"./chunk-FFGJMO62.js";import{b as H}from"./chunk-XRBZUWDJ.js";import{a as V,b as q,o as J,q as K,r as Q,t as X}from"./chunk-LJRBPGSW.js";import"./chunk-JYBRZQRP.js";import{Aa as w,Da as i,Ea as l,Fa as a,Ga as D,Ha as F,I as P,Ka as T,La as h,Q as W,Qb as B,R as $,Ta as _,Ua as m,Wa as N,bb as R,ca as o,ea as O,fb as C,la as c,ma as x,ra as u,sb as U,tb as j,ua as b,ub as z,va as n,wa as E,xa as k,xb as L,ya as M,zb as G}from"./chunk-UJIEDWPF.js";var ge=e=>({$implicit:e});function de(e,p){}function fe(e,p){e&1&&u(0,de,0,0,"ng-template")}function he(e,p){if(e&1&&(i(0,"div",10),u(1,fe,1,0,null,11),l()),e&2){h(2);let t=_(7);o(),n("ngTemplateOutlet",t)}}function _e(e,p){}function Ce(e,p){e&1&&u(0,_e,0,0,"ng-template")}function Pe(e,p){if(e&1&&(i(0,"div",12),u(1,Ce,1,0,null,11),l()),e&2){h(2);let t=_(5);o(),n("ngTemplateOutlet",t)}}function xe(e,p){if(e&1&&(D(0),i(1,"div",5)(2,"div",6)(3,"div",7),u(4,he,2,1,"div",8),l()()(),u(5,Pe,2,1,"div",9),F()),e&2){let t=h();o(2),E("height",t.nelStrokeWidth+"px"),o(),E("width",t.nelPercentage+"%")("animation-duration",t.nelDuration+"s")("background-color",t.getCurrentColor()),k("el-progress-bar__inner--indeterminate",t.nelIndeterminate),o(),n("ngIf",t.nelTextInside),o(),n("ngIf",!t.nelTextInside)}}function ye(e,p){}function Te(e,p){e&1&&u(0,ye,0,0,"ng-template")}function ve(e,p){if(e&1&&(i(0,"div",13),W(),i(1,"svg",14),a(2,"path",15)(3,"path",16),l()(),$(),i(4,"div",17),u(5,Te,1,0,null,11),l()),e&2){let t=h(),r=_(5);E("height",t.nelWidth+"px")("width",t.nelWidth+"px"),o(2),M(t.trailPathStyle),b("d",t.trackPath)("stroke-width",t.relativeStrokeWidth),o(),M(t.circlePathStyle),b("d",t.trackPath)("stroke",t.stroke)("stroke-linecap",t.nelStrokeLinecap)("stroke-width",t.nelPercentage?t.relativeStrokeWidth:0),o(2),n("ngTemplateOutlet",r)}}function Se(e,p){if(e&1&&a(0,"i"),e&2){let t=h(3);w("el-icon-",t.nelType=="line"?"circle-check":"check","")}}function Ee(e,p){e&1&&a(0,"i",21)}function De(e,p){if(e&1&&a(0,"i"),e&2){let t=h(3);w("el-icon-",t.nelType=="line"?"circle-close":"close","")}}function Fe(e,p){if(e&1&&(D(0)(1,18),u(2,Se,1,3,"i",19)(3,Ee,1,0,"i",20)(4,De,1,3,"i",19),F()()),e&2){let t=h(2);o(),n("ngSwitch",t.nelStatus),o(),n("ngSwitchCase","success"),o(),n("ngSwitchCase","warning"),o(),n("ngSwitchCase","exception")}}function Ne(e,p){if(e&1&&u(0,Fe,5,4,"ng-container",4),e&2){let t=h(),r=_(7);n("ngIf",(t.nelStatus==="success"||t.nelStatus==="exception"||t.nelStatus==="warning")&&!t.nelFormat)("ngIfElse",r)}}function Ie(e,p){if(e&1&&(D(0),m(1),F()),e&2){let t=h(2);o(),N(" ",t.formatterText(t.nelPercentage)," ")}}function be(e,p){if(e&1&&(i(0,"span"),u(1,Ie,2,1,"ng-container",22),l()),e&2){let t=h();o(),n("stringTemplate",t.formatter)("stringTemplateContext",R(2,ge,t.nelPercentage))}}var A=e=>`${e}%`,d=(()=>{class e{constructor(){this.nelPercentage=0,this.nelStrokeWidth=6,this.nelTextInside=!1,this.nelType="line",this.nelWidth=126,this.nelStrokeLinecap="round",this.nelIndeterminate=!1,this.nelDuration=3}get formatter(){return this.nelFormat||A}get formatterText(){return this.nelFormat instanceof O?A:this.nelFormat||A}get relativeStrokeWidth(){return(this.nelStrokeWidth/this.nelWidth*100).toFixed(1)}get radius(){return this.nelType==="circle"||this.nelType==="dashboard"?parseInt(`${50-parseFloat(this.relativeStrokeWidth)/2}`,10):0}get trackPath(){let t=this.radius,r=this.nelType==="dashboard";return`
M 50 50
m 0 ${r?"":"-"}${t}
a ${t} ${t} 0 1 1 0 ${r?"-":""}${t*2}
a ${t} ${t} 0 1 1 0 ${r?"":"-"}${t*2}
`}get perimeter(){return 2*Math.PI*this.radius}get rate(){return this.nelType==="dashboard"?.75:1}get strokeDashoffset(){return`${-1*this.perimeter*(1-this.rate)/2}px`}get trailPathStyle(){return{strokeDasharray:`${this.perimeter*this.rate}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset}}get circlePathStyle(){return{strokeDasharray:`${this.perimeter*this.rate*(this.nelPercentage/100)}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}}get stroke(){let t;if(this.nelColor)t=this.getCurrentColor();else switch(this.nelStatus){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t}ngOnInit(){this.nelType}getCurrentColor(){if(this.nelColor){if(this.nelColor==="string")return this.nelColor;if(this.nelColor instanceof Function)return this.nelColor(this.nelPercentage);if(this.nelColor instanceof Array){let t=100/this.nelColor.length,s=this.nelColor.map((g,S)=>typeof g=="string"?{color:g,percentage:(S+1)*t}:g).sort((g,S)=>g.percentage-S.percentage);for(let g of s)if(g.percentage>this.nelPercentage)return g.color;return s[s.length-1]?.color}}return null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-progress"]],inputs:{nelPercentage:"nelPercentage",nelFormat:"nelFormat",nelStatus:"nelStatus",nelStrokeWidth:"nelStrokeWidth",nelTextInside:"nelTextInside",nelColor:"nelColor",nelType:"nelType",nelWidth:"nelWidth",nelStrokeLinecap:"nelStrokeLinecap",nelIndeterminate:"nelIndeterminate",nelDuration:"nelDuration"},standalone:!1,decls:8,vars:14,consts:[["circleDashboard",""],["textTpl",""],["formatTemplate",""],["role","progressbar",1,"el-progress"],[4,"ngIf","ngIfElse"],[1,"el-progress-bar"],[1,"el-progress-bar__outer"],[1,"el-progress-bar__inner"],["class","el-progress-bar__innerText",4,"ngIf"],["class","el-progress__text","style","font-size: 14.4px;",4,"ngIf"],[1,"el-progress-bar__innerText"],[4,"ngTemplateOutlet"],[1,"el-progress__text",2,"font-size","14.4px"],[1,"el-progress-circle"],["viewBox","0 0 100 100"],["stroke","#e5e9f2","fill","none",1,"el-progress-circle__track"],["fill","none",1,"el-progress-circle__path"],[1,"el-progress__text",2,"font-size","16px"],[3,"ngSwitch"],[3,"class",4,"ngSwitchCase"],["class","el-icon-warning",4,"ngSwitchCase"],[1,"el-icon-warning"],[4,"stringTemplate","stringTemplateContext"]],template:function(r,s){if(r&1&&(i(0,"div",3),u(1,xe,6,12,"ng-container",4)(2,ve,6,15,"ng-template",null,0,C)(4,Ne,1,2,"ng-template",null,1,C)(6,be,2,4,"ng-template",null,2,C),l()),r&2){let g=_(3);k("el-progress--line",s.nelType=="line")("el-progress--circle",s.nelType=="circle")("el-progress--dashboard",s.nelType=="dashboard")("is-success",s.nelStatus=="success")("is-exception",s.nelStatus=="exception")("is-warning",s.nelStatus=="warning"),o(),n("ngIf",s.nelType=="line")("ngIfElse",g)}},dependencies:[U,L,j,z,V],encapsulation:2})}}return e})();var Z=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=x({type:e})}static{this.\u0275inj=P({imports:[G,q,H]})}}return e})();var ee=(()=>{class e{constructor(){this.format=t=>t===100?"\u6EE1":`${t}%`}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-basic"]],standalone:!1,decls:5,vars:9,consts:[[3,"nelPercentage"],[3,"nelPercentage","nelFormat"],[3,"nelPercentage","nelStatus"]],template:function(r,s){r&1&&a(0,"nel-progress",0)(1,"nel-progress",1)(2,"nel-progress",2)(3,"nel-progress",2)(4,"nel-progress",2),r&2&&(n("nelPercentage",50),o(),n("nelPercentage",100)("nelFormat",s.format),o(),n("nelPercentage",100)("nelStatus","success"),o(),n("nelPercentage",100)("nelStatus","warning"),o(),n("nelPercentage",50)("nelStatus","exception"))},dependencies:[d],styles:["[_nghost-%COMP%] .el-progress--line{margin-bottom:15px;width:350px}"]})}}return e})();var te=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-text"]],standalone:!1,decls:4,vars:15,consts:[[3,"nelTextInside","nelStrokeWidth","nelPercentage"],[3,"nelTextInside","nelStrokeWidth","nelPercentage","nelStatus"]],template:function(r,s){r&1&&a(0,"nel-progress",0)(1,"nel-progress",1)(2,"nel-progress",1)(3,"nel-progress",1),r&2&&(n("nelTextInside",!0)("nelStrokeWidth",26)("nelPercentage",70),o(),n("nelTextInside",!0)("nelStrokeWidth",24)("nelPercentage",100)("nelStatus","success"),o(),n("nelTextInside",!0)("nelStrokeWidth",22)("nelPercentage",80)("nelStatus","warning"),o(),n("nelTextInside",!0)("nelStrokeWidth",20)("nelPercentage",50)("nelStatus","exception"))},dependencies:[d],styles:["[_nghost-%COMP%] .el-progress--line{margin-bottom:15px;width:350px}"]})}}return e})();var re=(()=>{class e{constructor(){this.percentage=20,this.customColor="#409eff",this.customColors=[{color:"#f56c6c",percentage:20},{color:"#e6a23c",percentage:40},{color:"#5cb87a",percentage:60},{color:"#1989fa",percentage:80},{color:"#6f7ad3",percentage:100}]}customColorMethod(t){return t<30?"#909399":t<70?"#e6a23c":"#67c23a"}decrease(){this.percentage-=10,this.percentage<0&&(this.percentage=0)}increase(){this.percentage+=10,this.percentage>100&&(this.percentage=100)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-color"]],standalone:!1,decls:7,vars:8,consts:[[3,"nelPercentage","nelColor"],["nel-button","",3,"click","nelIcon"]],template:function(r,s){r&1&&(a(0,"nel-progress",0)(1,"nel-progress",0)(2,"nel-progress",0),i(3,"div")(4,"nel-button-group")(5,"button",1),T("click",function(){return s.decrease()}),l(),i(6,"button",1),T("click",function(){return s.increase()}),l()()()),r&2&&(n("nelPercentage",s.percentage)("nelColor",s.customColor),o(),n("nelPercentage",s.percentage)("nelColor",s.customColorMethod),o(),n("nelPercentage",s.percentage)("nelColor",s.customColors),o(3),n("nelIcon","minus"),o(),n("nelIcon","plus"))},dependencies:[d,v,I],styles:["[_nghost-%COMP%] .el-progress--line{margin-bottom:15px;width:350px}"]})}}return e})();var oe=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-circle"]],standalone:!1,decls:5,vars:13,consts:[[3,"nelType","nelPercentage"],[3,"nelType","nelPercentage","nelStatus"]],template:function(r,s){r&1&&a(0,"nel-progress",0)(1,"nel-progress",0)(2,"nel-progress",1)(3,"nel-progress",1)(4,"nel-progress",1),r&2&&(n("nelType","circle")("nelPercentage",0),o(),n("nelType","circle")("nelPercentage",25),o(),n("nelType","circle")("nelPercentage",100)("nelStatus","success"),o(),n("nelType","circle")("nelPercentage",70)("nelStatus","warning"),o(),n("nelType","circle")("nelPercentage",50)("nelStatus","exception"))},dependencies:[d],styles:["[_nghost-%COMP%] .el-progress--circle{margin-right:15px}"]})}}return e})();var ie=(()=>{class e{constructor(){this.percentage=10,this.colors=[{color:"#f56c6c",percentage:20},{color:"#e6a23c",percentage:40},{color:"#5cb87a",percentage:60},{color:"#1989fa",percentage:80},{color:"#6f7ad3",percentage:100}]}increase(){this.percentage+=10,this.percentage>100&&(this.percentage=100)}decrease(){this.percentage-=10,this.percentage<0&&(this.percentage=0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-dashboard"]],standalone:!1,decls:5,vars:5,consts:[[3,"nelType","nelPercentage","nelColor"],["nel-button","",3,"click","nelIcon"]],template:function(r,s){r&1&&(a(0,"nel-progress",0),i(1,"div")(2,"nel-button-group")(3,"button",1),T("click",function(){return s.decrease()}),l(),i(4,"button",1),T("click",function(){return s.increase()}),l()()()),r&2&&(n("nelType","dashboard")("nelPercentage",s.percentage)("nelColor",s.colors),o(3),n("nelIcon","minus"),o(),n("nelIcon","plus"))},dependencies:[d,v,I],encapsulation:2})}}return e})();function $e(e,p){e&1&&(i(0,"button",8),m(1,"\u81EA\u5B9A\u4E49\u5185\u5BB9"),l()),e&2&&n("nelType","text")}function Oe(e,p){e&1&&(i(0,"span"),m(1,"\u81EA\u5B9A\u4E49\u5185\u5BB9"),l())}function Re(e,p){e&1&&a(0,"button",9),e&2&&n("nelType","success")("nelIcon","check")}function Ue(e,p){if(e&1&&(i(0,"span",10),m(1),l(),i(2,"span",11),m(3,"\u5F53\u524D\u8FDB\u5EA6"),l()),e&2){let t=p.$implicit;o(),N("",t,"%")}}var le=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-format"]],standalone:!1,decls:12,vars:14,consts:[["formatTpl1",""],["formatTpl2",""],["formatTpl3",""],["formatTpl4",""],[3,"nelPercentage","nelFormat"],[3,"nelTextInside","nelStrokeWidth","nelPercentage","nelStatus","nelFormat"],[3,"nelType","nelPercentage","nelStatus","nelFormat"],[3,"nelType","nelPercentage","nelFormat"],["nel-button","",3,"nelType"],["nel-button","","nelCircle","",3,"nelType","nelIcon"],[1,"percentage-value"],[1,"percentage-label"]],template:function(r,s){if(r&1&&(i(0,"nel-progress",4),u(1,$e,2,1,"ng-template",null,0,C),l(),i(3,"nel-progress",5),u(4,Oe,2,0,"ng-template",null,1,C),l(),i(6,"nel-progress",6),u(7,Re,1,2,"ng-template",null,2,C),l(),i(9,"nel-progress",7),u(10,Ue,4,1,"ng-template",null,3,C),l()),r&2){let g=_(2),S=_(5),ce=_(8),ue=_(11);n("nelPercentage",50)("nelFormat",g),o(3),n("nelTextInside",!0)("nelStrokeWidth",20)("nelPercentage",50)("nelStatus","exception")("nelFormat",S),o(3),n("nelType","circle")("nelPercentage",100)("nelStatus","success")("nelFormat",ce),o(3),n("nelType","dashboard")("nelPercentage",80)("nelFormat",ue)}},dependencies:[d,v],styles:["[_nghost-%COMP%] .el-progress--line{margin-bottom:15px;width:350px}[_nghost-%COMP%] .el-progress--circle{margin-right:15px}[_nghost-%COMP%] .percentage-value{display:block;margin-top:10px;font-size:28px}[_nghost-%COMP%] .percentage-label{display:block;margin-top:10px;font-size:12px}"]})}}return e})();var se=(()=>{class e{constructor(){this.format=t=>t===100?"\u6EE1":`${t}%`}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["nel-demo-progress-indeterminate"]],standalone:!1,decls:5,vars:16,consts:[[3,"nelPercentage","nelIndeterminate"],[3,"nelPercentage","nelFormat","nelIndeterminate"],[3,"nelPercentage","nelStatus","nelIndeterminate","nelDuration"],[3,"nelPercentage","nelStatus","nelIndeterminate"]],template:function(r,s){r&1&&a(0,"nel-progress",0)(1,"nel-progress",1)(2,"nel-progress",2)(3,"nel-progress",2)(4,"nel-progress",3),r&2&&(n("nelPercentage",50)("nelIndeterminate",!0),o(),n("nelPercentage",100)("nelFormat",s.format)("nelIndeterminate",!0),o(),n("nelPercentage",100)("nelStatus","success")("nelIndeterminate",!0)("nelDuration",5),o(),n("nelPercentage",100)("nelStatus","warning")("nelIndeterminate",!0)("nelDuration",1),o(),n("nelPercentage",50)("nelStatus","exception")("nelIndeterminate",!0))},dependencies:[d],styles:["[_nghost-%COMP%] .el-progress--line{margin-bottom:15px;width:350px}"]})}}return e})();var ae=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=x({type:e})}static{this.\u0275inj=P({imports:[Z,Y]})}}return e})();var pe=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=c({type:e,selectors:[["app-progress"]],standalone:!1,decls:40,vars:8,consts:[["code","import { NelProgressModule } from 'ng-element-ui/progress';"],[3,"codeUrl"],["demo",""],[3,"docUrl"]],template:function(r,s){r&1&&(i(0,"h2"),m(1,"Progress \u8FDB\u5EA6\u6761"),l(),i(2,"p"),m(3,"\u7528\u4E8E\u5C55\u793A\u64CD\u4F5C\u8FDB\u5EA6\uFF0C\u544A\u77E5\u7528\u6237\u5F53\u524D\u72B6\u6001\u548C\u9884\u671F\u3002"),l(),a(4,"app-code",0),i(5,"h3"),m(6,"\u7EBF\u5F62\u8FDB\u5EA6\u6761"),l(),i(7,"app-demo",1),a(8,"nel-demo-progress-basic",2),l(),i(9,"h3"),m(10,"\u767E\u5206\u6BD4\u5185\u663E"),l(),i(11,"p"),m(12,"\u767E\u5206\u6BD4\u4E0D\u5360\u7528\u989D\u5916\u63A7\u4EF6\uFF0C\u9002\u7528\u4E8E\u6587\u4EF6\u4E0A\u4F20\u7B49\u573A\u666F\u3002"),l(),i(13,"app-demo",1),a(14,"nel-demo-progress-text",2),l(),i(15,"h3"),m(16,"\u81EA\u5B9A\u4E49\u989C\u8272"),l(),i(17,"p"),m(18,"\u53EF\u4EE5\u901A\u8FC7 color \u8BBE\u7F6E\u8FDB\u5EA6\u6761\u7684\u989C\u8272\uFF0Ccolor \u53EF\u4EE5\u63A5\u53D7\u989C\u8272\u5B57\u7B26\u4E32\uFF0C\u51FD\u6570\u548C\u6570\u7EC4\u3002"),l(),i(19,"app-demo",1),a(20,"nel-demo-progress-color",2),l(),i(21,"h3"),m(22,"\u73AF\u5F62\u8FDB\u5EA6\u6761"),l(),i(23,"p"),m(24,"Progress \u7EC4\u4EF6\u53EF\u901A\u8FC7 type \u5C5E\u6027\u6765\u6307\u5B9A\u4F7F\u7528\u73AF\u5F62\u8FDB\u5EA6\u6761\uFF0C\u5728\u73AF\u5F62\u8FDB\u5EA6\u6761\u4E2D\uFF0C\u8FD8\u53EF\u4EE5\u901A\u8FC7 width \u5C5E\u6027\u6765\u8BBE\u7F6E\u5176\u5927\u5C0F\u3002"),l(),i(25,"app-demo",1),a(26,"nel-demo-progress-circle",2),l(),i(27,"h3"),m(28,"\u4EEA\u8868\u76D8\u5F62\u8FDB\u5EA6\u6761"),l(),i(29,"app-demo",1),a(30,"nel-demo-progress-dashboard",2),l(),i(31,"h3"),m(32,"\u81EA\u5B9A\u4E49\u5185\u5BB9"),l(),i(33,"app-demo",1),a(34,"nel-demo-progress-format",2),l(),i(35,"h3"),m(36,"\u52A8\u753B\u8FDB\u5EA6\u6761"),l(),i(37,"app-demo",1),a(38,"nel-demo-progress-indeterminate",2),l(),a(39,"app-doc",3)),r&2&&(o(7),n("codeUrl","components-progress-demo-basic.component"),o(6),n("codeUrl","components-progress-demo-text.component"),o(6),n("codeUrl","components-progress-demo-color.component"),o(6),n("codeUrl","components-progress-demo-circle.component"),o(4),n("codeUrl","components-progress-demo-dashboard.component"),o(4),n("codeUrl","components-progress-demo-format.component"),o(4),n("codeUrl","components-progress-demo-indeterminate.component"),o(2),n("docUrl","components-progress"))},dependencies:[ee,te,re,oe,ie,le,se,J,K,Q],encapsulation:2})}}return e})();var Le=[{path:"",component:pe}],me=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=x({type:e})}static{this.\u0275inj=P({imports:[B.forChild(Le),B]})}}return e})();var At=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=x({type:e})}static{this.\u0275inj=P({imports:[ae,X,me]})}}return e})();export{At as ProgressModule};