g-ui-web 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/g-ui-web.js CHANGED
@@ -114925,13 +114925,7 @@ ${m.value}${(t == null ? void 0 : t.unit) || ""}`,
114925
114925
  }
114926
114926
  return p;
114927
114927
  };
114928
- if (a.value.series = s(o[0].data, r), a.value.series[0].data = o[0].data, a.value.series[1].data = o[0].data[r].children, (t == null ? void 0 : t.type) === "rose") {
114929
- const u = 360 / a.value.series[0].data.length, c = r * u;
114930
- a.value.series[0].startAngle = u / 2 + c;
114931
- } else {
114932
- const u = a.value.series[0].data.reduce((f, p) => f += p.value, 0), c = a.value.series[0].data.map((f) => f.value / u * 360), d = c.slice(0, r).reduce((f, p) => f += p, 0);
114933
- a.value.series[0].startAngle = c[r] / 2 + d;
114934
- }
114928
+ a.value.series = s(o[0].data, r);
114935
114929
  const l = (u, c = 0, d = 0) => {
114936
114930
  var f, p;
114937
114931
  if (c === 0)
@@ -115004,7 +114998,7 @@ ${m.value}${(t == null ? void 0 : t.unit) || ""}`,
115004
114998
  const W = P.reduce((U, Y) => {
115005
114999
  const Z = Number(Y[T]) || 0;
115006
115000
  return U + Z;
115007
- }, 0), z = {
115001
+ }, 0).toFixed(2), z = {
115008
115002
  [A[O]]: L,
115009
115003
  [T]: W
115010
115004
  }, $ = M(P, O + 1);
@@ -115299,7 +115293,7 @@ ${P.value}${(A == null ? void 0 : A.unit) || ""}`;
115299
115293
  ], 2);
115300
115294
  };
115301
115295
  }
115302
- }), C8t = /* @__PURE__ */ Qn(w8t, [["__scopeId", "data-v-fb5b9dd1"]]), x8t = tr(C8t), S8t = { class: "g-calendar" }, E8t = { class: "g-calendar-header" }, T8t = { class: "switch-box" }, A8t = { class: "switch-box1" }, M8t = { class: "switch-box2" }, k8t = {
115296
+ }), C8t = /* @__PURE__ */ Qn(w8t, [["__scopeId", "data-v-137c6f87"]]), x8t = tr(C8t), S8t = { class: "g-calendar" }, E8t = { class: "g-calendar-header" }, T8t = { class: "switch-box" }, A8t = { class: "switch-box1" }, M8t = { class: "switch-box2" }, k8t = {
115303
115297
  key: 0,
115304
115298
  class: "todoList"
115305
115299
  }, D8t = { class: "popover-inbox" }, O8t = ["onClick"], I8t = {
Binary file
@@ -170,8 +170,8 @@ echarts.use([`+A+"]);":"Unknown series "+M))}return}if(f==="tooltip"){if(_){proc
170
170
  ${n.value}${(e==null?void 0:e.unit)||""}`,textStyle:{fontSize:12,lineHeight:16}},emphasis:{label:{show:!0,formatter:n=>`${n.name}
171
171
  ${n.value}${(e==null?void 0:e.unit)||""}`,fontWeight:"bold"}},data:[]}]}),Hoe=(e,t)=>{const n=o.ref({});return n.value=Hn({},Foe(t),e),{...o.toRefs(n.value)}},N4=(e,t,n,r)=>{const a=o.ref({}),{series:i,...l}=e;if(a.value=Hn({},Foe(t,n!==void 0),l),n!==void 0){const s=(d,u)=>{let f=1,p=d[u];for(;p!=null&&p.children;)f++,p=p.children[0];const h=Array(f).fill(0).map((m,g)=>{const v=`${100/f*(g+.5)}%`;return{type:"pie",radius:(t==null?void 0:t.type)==="ring"?["45%","60%"]:["0","60%"],center:[v,"50%"],avoidLabelOverlap:!1,label:{show:!0,formatter:y=>`${y.name}
172
172
  ${y.value}${(t==null?void 0:t.unit)||""}`,textStyle:{fontSize:12,lineHeight:16}},emphasis:g<f-1?{label:{show:!0,formatter:y=>`${y.name}
173
- ${y.value}${(t==null?void 0:t.unit)||""}`,fontWeight:"bold"}}:{disabled:!0,scale:!1}}});if(t!=null&&t.isMarkLine&&f>1)for(let m=0;m<f-1;m++){const g=100/f*(m+.5),v=100/f*(m+1+.5),y=100/f;h[m].markLine={silent:!0,symbol:["none","arrow"],symbolSize:[0,10],data:[[{x:`${g+y*.3}%`,y:"35%",symbol:"none"},{x:`${v-y*.3}%`,y:"25%",symbol:"arrow"}],[{x:`${g+y*.3}%`,y:"70%",symbol:"none"},{x:`${v-y*.3}%`,y:"80%",symbol:"arrow"}]]}}return h};if(a.value.series=s(i[0].data,n),a.value.series[0].data=i[0].data,a.value.series[1].data=i[0].data[n].children,(t==null?void 0:t.type)==="rose"){const d=360/a.value.series[0].data.length,u=n*d;a.value.series[0].startAngle=d/2+u}else{const d=a.value.series[0].data.reduce((p,h)=>p+=h.value,0),u=a.value.series[0].data.map(p=>p.value/d*360),f=u.slice(0,n).reduce((p,h)=>p+=h,0);a.value.series[0].startAngle=u[n]/2+f}const c=(d,u=0,f=0)=>{var p,h;if(u===0)a.value.series[u].data=d,(p=d[f])!=null&&p.children&&a.value.series[u+1]&&c(d[f].children,u+1,(r==null?void 0:r[u+1])||0);else{a.value.series[u].data=d;const m=(r==null?void 0:r[u])??0,g=Math.min(m,d.length-1);(h=d[g])!=null&&h.children&&a.value.series[u+1]&&c(d[g].children,u+1,(r==null?void 0:r[u+1])||0)}};c(i[0].data,0,n)}return{...o.toRefs(a.value)}},r3t=o.defineComponent({name:"GPieLevel"}),o3t=o.defineComponent({...r3t,props:{description:{type:String,default:"暂无数据"},size:{type:String,default:"sm"},options:{type:Object,default:{}},type:{type:String,default:"ring"},isMarkLine:{type:Boolean,default:!0},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){let r=An.state;const a=n,i=e,l=o.ref("");let s=o.ref(0);const c=o.ref(!1);o.ref(!1);const d=o.computed(()=>`g-pie-level-${i.size}`),u=o.ref(null),f=o.ref();let p=o.ref([]),h=[],m={series:[{title:{}}]};const g=(E,k)=>{let T=i.dbOptions.axisFields;const M=(A,D=0)=>{if(D>=T.length)return null;const I=A.reduce((B,O)=>{const L=O[T[D]];return B[L]||(B[L]=[]),B[L].push({...O}),B},{});return Object.entries(I).map(([B,O])=>{const L=O.reduce(($,z)=>{const W=Number(z[k])||0;return $+W},0),R={[T[D]]:B,[k]:L},V=M(O,D+1);return V&&V.length>0&&(R.children=V),R})};return M(E)},v=o.ref({}),y=async E=>{h=[],p.value=[];const k=i.dbOptions.dataField||l.value;if(E=g(E,k),Ar(E)){c.value=!0;return}else c.value=!1;if(m={series:[{}]},p.value=E,p.value&&i.dbOptions){const M=(A,D=0)=>{if(!A)return null;const I={name:A[i.dbOptions.axisFields[D]],value:A[k]};return A.children&&A.children.length>0&&(I.children=A.children.map(B=>M(B,D+1)).filter(Boolean)),I};p.value.forEach(A=>{const D=M(A,0);D&&h.push(D)}),i.options?i.options.series?i.options.series[0].data=JSON.parse(JSON.stringify(h)):i.options.series=[{data:JSON.parse(JSON.stringify(h))}]:m.series[0].data=JSON.parse(JSON.stringify(h))}const T=i.dbOptions.columns.find(M=>M.field===i.dbOptions.dataField||M.field===l.value);i.options?f.value=Hoe(i.options,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T.unit}):f.value=Hoe(m,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T.unit}),C(1)},b=o.ref(0),_=o.ref([]);let w=o.ref(null);const C=E=>{o.nextTick(async()=>{if(!u.value||!u.value.myChart)return;const k=u.value.myChart,T=i.dbOptions.columns.find(M=>M.field===i.dbOptions.dataField||M.field===l.value);k.dispatchAction({type:"hideTip"}),E?(w.value=E,f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},w.value,_.value),await o.nextTick(),k.setOption(f.value,!0),await new Promise(M=>setTimeout(M,200)),_.value=[w.value],k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:w.value}),f.value.series&&f.value.series.length>1&&(k.dispatchAction({type:"highlight",seriesIndex:1,dataIndex:0}),_.value[1]=0)):(k.off("click"),k.on("click",async M=>{var A;if(console.log(M,"eeeeeeeeeee"),!!f.value){if(M.seriesIndex>0){const I=f.value.series[M.seriesIndex].data[M.dataIndex];if(b.value=M.seriesIndex,_.value[M.seriesIndex]=M.dataIndex,I&&I.children&&I.children.length>0){const B=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},w.value,_.value);f.value=B,k.setOption(B,!0),k.dispatchAction({type:"highlight",seriesIndex:M.seriesIndex,dataIndex:M.dataIndex}),M.seriesIndex+1<B.series.length-1&&setTimeout(()=>{k.dispatchAction({type:"highlight",seriesIndex:M.seriesIndex+1,dataIndex:0}),_.value[M.seriesIndex+1]=0},100)}return}if(w.value===M.dataIndex){const D={tooltip:f.value.tooltip,series:[{type:"pie",radius:(i==null?void 0:i.type)==="ring"?["45%","70%"]:["0","70%"],center:["50%","50%"],avoidLabelOverlap:!1,label:{show:!0,formatter:I=>`${I.name}
173
+ ${y.value}${(t==null?void 0:t.unit)||""}`,fontWeight:"bold"}}:{disabled:!0,scale:!1}}});if(t!=null&&t.isMarkLine&&f>1)for(let m=0;m<f-1;m++){const g=100/f*(m+.5),v=100/f*(m+1+.5),y=100/f;h[m].markLine={silent:!0,symbol:["none","arrow"],symbolSize:[0,10],data:[[{x:`${g+y*.3}%`,y:"35%",symbol:"none"},{x:`${v-y*.3}%`,y:"25%",symbol:"arrow"}],[{x:`${g+y*.3}%`,y:"70%",symbol:"none"},{x:`${v-y*.3}%`,y:"80%",symbol:"arrow"}]]}}return h};a.value.series=s(i[0].data,n);const c=(d,u=0,f=0)=>{var p,h;if(u===0)a.value.series[u].data=d,(p=d[f])!=null&&p.children&&a.value.series[u+1]&&c(d[f].children,u+1,(r==null?void 0:r[u+1])||0);else{a.value.series[u].data=d;const m=(r==null?void 0:r[u])??0,g=Math.min(m,d.length-1);(h=d[g])!=null&&h.children&&a.value.series[u+1]&&c(d[g].children,u+1,(r==null?void 0:r[u+1])||0)}};c(i[0].data,0,n)}return{...o.toRefs(a.value)}},r3t=o.defineComponent({name:"GPieLevel"}),o3t=o.defineComponent({...r3t,props:{description:{type:String,default:"暂无数据"},size:{type:String,default:"sm"},options:{type:Object,default:{}},type:{type:String,default:"ring"},isMarkLine:{type:Boolean,default:!0},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){let r=An.state;const a=n,i=e,l=o.ref("");let s=o.ref(0);const c=o.ref(!1);o.ref(!1);const d=o.computed(()=>`g-pie-level-${i.size}`),u=o.ref(null),f=o.ref();let p=o.ref([]),h=[],m={series:[{title:{}}]};const g=(E,k)=>{let T=i.dbOptions.axisFields;const M=(A,D=0)=>{if(D>=T.length)return null;const I=A.reduce((B,O)=>{const L=O[T[D]];return B[L]||(B[L]=[]),B[L].push({...O}),B},{});return Object.entries(I).map(([B,O])=>{const L=O.reduce(($,z)=>{const W=Number(z[k])||0;return $+W},0).toFixed(2),R={[T[D]]:B,[k]:L},V=M(O,D+1);return V&&V.length>0&&(R.children=V),R})};return M(E)},v=o.ref({}),y=async E=>{h=[],p.value=[];const k=i.dbOptions.dataField||l.value;if(E=g(E,k),Ar(E)){c.value=!0;return}else c.value=!1;if(m={series:[{}]},p.value=E,p.value&&i.dbOptions){const M=(A,D=0)=>{if(!A)return null;const I={name:A[i.dbOptions.axisFields[D]],value:A[k]};return A.children&&A.children.length>0&&(I.children=A.children.map(B=>M(B,D+1)).filter(Boolean)),I};p.value.forEach(A=>{const D=M(A,0);D&&h.push(D)}),i.options?i.options.series?i.options.series[0].data=JSON.parse(JSON.stringify(h)):i.options.series=[{data:JSON.parse(JSON.stringify(h))}]:m.series[0].data=JSON.parse(JSON.stringify(h))}const T=i.dbOptions.columns.find(M=>M.field===i.dbOptions.dataField||M.field===l.value);i.options?f.value=Hoe(i.options,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T.unit}):f.value=Hoe(m,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T.unit}),C(1)},b=o.ref(0),_=o.ref([]);let w=o.ref(null);const C=E=>{o.nextTick(async()=>{if(!u.value||!u.value.myChart)return;const k=u.value.myChart,T=i.dbOptions.columns.find(M=>M.field===i.dbOptions.dataField||M.field===l.value);k.dispatchAction({type:"hideTip"}),E?(w.value=E,f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},w.value,_.value),await o.nextTick(),k.setOption(f.value,!0),await new Promise(M=>setTimeout(M,200)),_.value=[w.value],k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:w.value}),f.value.series&&f.value.series.length>1&&(k.dispatchAction({type:"highlight",seriesIndex:1,dataIndex:0}),_.value[1]=0)):(k.off("click"),k.on("click",async M=>{var A;if(console.log(M,"eeeeeeeeeee"),!!f.value){if(M.seriesIndex>0){const I=f.value.series[M.seriesIndex].data[M.dataIndex];if(b.value=M.seriesIndex,_.value[M.seriesIndex]=M.dataIndex,I&&I.children&&I.children.length>0){const B=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},w.value,_.value);f.value=B,k.setOption(B,!0),k.dispatchAction({type:"highlight",seriesIndex:M.seriesIndex,dataIndex:M.dataIndex}),M.seriesIndex+1<B.series.length-1&&setTimeout(()=>{k.dispatchAction({type:"highlight",seriesIndex:M.seriesIndex+1,dataIndex:0}),_.value[M.seriesIndex+1]=0},100)}return}if(w.value===M.dataIndex){const D={tooltip:f.value.tooltip,series:[{type:"pie",radius:(i==null?void 0:i.type)==="ring"?["45%","70%"]:["0","70%"],center:["50%","50%"],avoidLabelOverlap:!1,label:{show:!0,formatter:I=>`${I.name}
174
174
  ${I.value}${(T==null?void 0:T.unit)||""}`},emphasis:{label:{show:!0,formatter:I=>`${I.name}
175
175
  ${I.value}${(T==null?void 0:T.unit)||""}`}},data:f.value.series[0].data}]};w.value=null,_.value=[],b.value=0,f.value=D,k.setOption(D,!0)}else{w.value=M.dataIndex,_.value=[M.dataIndex];const D=f.value.series[0].data;((A=D[M.dataIndex])==null?void 0:A.children)&&D[M.dataIndex].children.length>0?(f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:T.title,unit:T==null?void 0:T.unit},M.dataIndex,_.value),f.value.series&&f.value.series.length>1&&(_.value[1]=0),await o.nextTick(),f.value&&f.value.series&&f.value.series.forEach(B=>{B.label||(B.label={}),B.label.show=!0,B.label.formatter=O=>`${O.name}
176
176
  ${O.value}${(T==null?void 0:T.unit)||""}`,B.emphasis||(B.emphasis={}),B.emphasis.label||(B.emphasis.label={}),B.emphasis.label.show=!0,B.emphasis.label.formatter=O=>`${O.name}
177
- ${O.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{_.value.forEach((B,O)=>{O<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:O,dataIndex:B})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:M.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{_.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})},100)}))})},x=async()=>{const E={seriesIndex:b.value,dataIndex:w.value,levelIndexes:[..._.value]};if(s.value++,i.dbOptions.dataField=l.value,v.value=Ct(i.dbOptions.data),await y(v.value.data),await new Promise(k=>setTimeout(k,500)),u.value){const k=u.value.myChart;if(k.dispatchAction({type:"hideTip"}),k.off("click"),k.off("finished"),await C(),E.dataIndex!==null){w.value=E.dataIndex;const T=i.dbOptions.columns.find(M=>M.field===l.value);f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},E.dataIndex,E.levelIndexes),await o.nextTick(),k.setOption(f.value,!0),_.value=E.levelIndexes,b.value=E.seriesIndex,await new Promise(M=>setTimeout(M,200)),_.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})}}};o.onMounted(async()=>{await C()}),o.watch(()=>i.dbOptions.data,E=>{v.value=Ct(E);const k=["http://","https://",void 0];!E.path&&!E.dsKey&&!v.value.dataUrl&&!(typeof E=="string"&&k.some(T=>E.includes(T)))&&v.value.loadStaticData(E),(typeof E=="string"||E.path)&&v.value.reload(E.data)},{deep:!0}),o.watch(()=>i.dbOptions.dataFields,async E=>{if(!E)return;const k={seriesIndex:b.value,dataIndex:w.value,levelIndexes:[..._.value]};l.value=E[0],await o.nextTick(),u.value&&k.dataIndex!==null&&u.value.myChart.dispatchAction({type:"highlight",seriesIndex:k.seriesIndex,dataIndex:k.dataIndex})},{deep:!0,immediate:!0}),o.watch(()=>r["gui-theme"],async E=>{v.value=null,o.nextTick(async()=>{s.value++,v.value=Ct(i.dbOptions.data),y(v.value.data),v.value.on("load",k=>{y(k)})})},{deep:!0}),o.nextTick(async()=>{v.value=Ct(i.dbOptions.data),v.value.on("load",E=>{y(E)})}),t({props:i});const S=E=>{a("chart-click",E)};return(E,k)=>{var D,I;const T=o.resolveComponent("g-radio-button"),M=o.resolveComponent("g-radio-group"),A=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-pie-level",d.value])},[((I=(D=i.dbOptions)==null?void 0:D.dataFields)==null?void 0:I.length)>0?(o.openBlock(),o.createBlock(M,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=B=>l.value=B),onChange:x},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.dbOptions.dataFields,B=>(o.openBlock(),o.createBlock(T,{label:B,value:B},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(A,o.mergeProps({options:f.value},E.$attrs,{ref_key:"pieChartRef",ref:u,isEmpty:c.value,description:e.description,onClick:S,key:o.unref(s)}),null,16,["options","isEmpty","description"]))],2)}}}),Goe=Dt(ur(o3t,[["__scopeId","data-v-fb5b9dd1"]])),a3t={class:"g-calendar"},i3t={class:"g-calendar-header"},l3t={class:"switch-box"},s3t={class:"switch-box1"},c3t={class:"switch-box2"},d3t={key:0,class:"todoList"},u3t={class:"popover-inbox"},f3t=["onClick"],p3t={key:1,class:"el-calendar-year"},h3t={class:"inbox"},m3t={key:0,class:"todoListY"},g3t={class:"popover-inbox"},v3t=["onClick"],Woe=Dt(ur(o.defineComponent({__name:"index",props:{popWidth:{type:Number,default:200},isPop:{type:Boolean,default:!0},isDia:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!0},dateType:{type:String,default:"month"},dbOptions:{type:Object,default:{}}},setup(e){const t=e,n=o.ref(bt().format("YYYY-MM")),r=o.ref(bt().format("YYYY")),a=o.ref({}),i=o.ref(),l=o.ref(new Date),s=o.ref(t.dateType),c=o.ref(""),d=o.ref(bt().format("YYYY-MM")),u=[{name:"1月",value:"01"},{name:"2月",value:"02"},{name:"3月",value:"03"},{name:"4月",value:"04"},{name:"5月",value:"05"},{name:"6月",value:"06"},{name:"7月",value:"07"},{name:"8月",value:"08"},{name:"9月",value:"09"},{name:"10月",value:"10"},{name:"11月",value:"11"},{name:"12月",value:"12"}],f=o.ref(null),p=o.ref(bt().format("YYYY-MM-DD")),h=o.ref([]),m=o.ref([]),g=o.ref(!1),v=o.ref([]),y=o.ref(""),b=A=>{t.dateType=A,s.value=A,l.value=new Date,_(A),h.value.forEach(D=>{D.showAll=!1}),m.value.forEach(D=>{D.showAll=!1})},_=A=>{A=="month"?n.value=bt().format("YYYY-MM"):(r.value=bt().format("YYYY"),c.value=bt().format("YYYY"))},w=A=>{l.value=A},C=A=>{c.value=A},x=()=>{f.value&&f.value.length>0?f.value.map(A=>{A.hide()}):f.value&&!Array.isArray(f.value)&&f.value.hide()},S=A=>{y.value="日期:"+A[t.dbOptions.dateField],v.value=A.todoList,g.value=!0},E=()=>{},k=A=>A.reduce((I,B)=>{const O=I.find(L=>L[t.dbOptions.dateField]===B[t.dbOptions.dateField]);return O?O.todoList.push(B):I.push({[t.dbOptions.dateField]:B[t.dbOptions.dateField],showAll:!1,todoList:[B]}),I},[]),T=async A=>{h.value=k(A),m.value=M(A)},M=A=>A.map(B=>(B.newDate=B[t.dbOptions.dateField].slice(0,-3),B)).reduce((B,O)=>{const L=B.find(R=>R[t.dbOptions.dateField]===O.newDate);return L?L.todoList.push(O):B.push({[t.dbOptions.dateField]:O.newDate,showAll:!1,todoList:[O]}),B},[]);return o.watch(()=>t.dbOptions.data,A=>{a.value=Ct(A);const D=["http://","https://",void 0];A&&(!A.path&&!A.dsKey&&!a.value.dataUrl&&!(typeof A=="string"&&D.some(I=>A.includes(I)))&&a.value.loadStaticData(A),(typeof A=="string"||A.path)&&a.value.reload(A.data))},{deep:!0}),o.nextTick(async()=>{a.value=Ct(t.dbOptions.data),a.value.on("load",A=>{T(A)})}),o.onMounted(()=>{o.nextTick(()=>{_(t.dateType)})}),(A,D)=>{const I=o.resolveComponent("g-date-picker"),B=o.resolveComponent("el-radio-button"),O=o.resolveComponent("el-radio-group"),L=o.resolveComponent("Close"),R=o.resolveComponent("el-icon"),V=o.resolveComponent("g-table-column"),$=o.resolveComponent("g-table"),z=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",a3t,[o.createElementVNode("div",i3t,[o.createElementVNode("div",l3t,[s.value=="month"?(o.openBlock(),o.createBlock(I,{key:0,modelValue:n.value,"onUpdate:modelValue":D[0]||(D[0]=W=>n.value=W),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:w},null,8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createBlock(I,{key:1,modelValue:r.value,"onUpdate:modelValue":D[1]||(D[1]=W=>r.value=W),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:C},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",s3t,[o.renderSlot(A.$slots,"legend",{},void 0,!0)]),o.createElementVNode("div",c3t,[e.isRadio?(o.openBlock(),o.createBlock(O,{key:0,modelValue:s.value,"onUpdate:modelValue":D[2]||(D[2]=W=>s.value=W),onChange:b},{default:o.withCtx(()=>[o.createVNode(B,{label:"按月",value:"month"}),o.createVNode(B,{label:"按年",value:"year"})]),_:1},8,["modelValue"])):o.createCommentVNode("",!0)])]),s.value=="month"?(o.openBlock(),o.createBlock(o.unref(bI),{key:0,modelValue:l.value,"onUpdate:modelValue":D[3]||(D[3]=W=>l.value=W),ref_key:"calendar",ref:i},{"date-cell":o.withCtx(({data:W})=>[o.createElementVNode("span",{class:o.normalizeClass(p.value==W.day?"selectedStyle":"")},o.toDisplayString(W.day.split("-").slice(2).join("-")),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==W.day?(o.openBlock(),o.createElementBlock("div",d3t,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:2),q=>(o.openBlock(),o.createElementBlock("div",{class:"item",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(B2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",u3t,[o.createVNode(R,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(L)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-2)),9,f3t)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createElementBlock("div",p3t,[o.createElementVNode("div",h3t,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(u,W=>o.createElementVNode("div",{class:"item",key:W.value},[o.createElementVNode("span",{class:o.normalizeClass(d.value==`${c.value}-${W.value}`?"date selectedStyle":"date")},o.toDisplayString(W.name),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==`${c.value}-${W.value}`?(o.openBlock(),o.createElementBlock("div",m3t,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:5),q=>(o.openBlock(),o.createElementBlock("div",{class:"itemBox",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(B2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",g3t,[o.createVNode(R,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(L)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>5?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-5)),9,v3t)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))])),64))])])):o.createCommentVNode("",!0),o.createVNode(z,{modelValue:g.value,"onUpdate:modelValue":D[4]||(D[4]=W=>g.value=W),title:y.value,border:"","align-center":!0},{default:o.withCtx(()=>[o.createVNode($,{data:v.value,width:"100%"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dbOptions.columns,W=>(o.openBlock(),o.createBlock(V,{align:"center",prop:W.field,label:W.title+(W.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-f55f455f"]])),y3t={class:"line-inbox"},b3t={class:"line-inbox-target"},_3t=o.defineComponent({name:"GTargetDeviation"}),w3t=o.defineComponent({..._3t,props:{type:{type:String,default:"primary"},size:{type:String,default:"sm"},min:{type:String,default:"-100"},max:{type:String,default:"100"},tooltip:{type:Array,default:null},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t}){o.useCssVars(b=>({a98fe928:h.value}));let n=An.state;const r=Kt();let a=o.ref(0);const i=e,l=o.ref(0),s=o.ref(0),c=o.ref(null),d=o.computed(()=>`line-inbox-max-${i.type}`),u=o.computed(()=>`line-inbox-min-${i.type}`),f=o.computed(()=>`line-inbox-max-progress-${i.type}`),p=o.computed(()=>`g-target-deviation-${i.size}`),h=o.computed(()=>r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${i.type}-lights-4)`:`var(--color-${i.type}-lights-1)`),m=o.ref({data:0,title:"",unit:""}),g=o.ref({}),v=async b=>{y(b),a.value++},y=b=>{const _=i.dbOptions.columns&&i.dbOptions.dataField&&i.dbOptions.columns.length>0&&i.dbOptions.columns.find(w=>w.field===i.dbOptions.dataField);m.value.title=_.title,m.value.unit=_.unit,m.value.data=b[i.dbOptions.dataField],Number(b[i.dbOptions.dataField])>0?(s.value=Number(b[i.dbOptions.dataField])/Number(i.max)*100,l.value=0):(l.value=Math.abs(Number(b[i.dbOptions.dataField]))/Math.abs(Number(i.min))*100,s.value=0)};return o.watch(()=>i.dbOptions.data,b=>{g.value=Ct(b);const _=["http://","https://",void 0];!b.path&&!b.dsKey&&!g.value.dataUrl&&!(typeof b=="string"&&_.some(w=>b.includes(w)))&&g.value.loadStaticData(b),(typeof b=="string"||b.path)&&g.value.reload(b.data)},{deep:!0}),o.watch(()=>n["gui-theme"],async b=>{g.value=null,o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),v(g.value.data),g.value.on("load",_=>{v(_)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),g.value.on("load",b=>{v(b)})}),t({props:i,targetDeviationRef:c}),(b,_)=>{const w=o.resolveComponent("g-target-s");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-target-deviation",p.value]),ref_key:"targetDeviationRef",ref:c},[o.createElementVNode("div",y3t,[_[0]||(_[0]=o.createElementVNode("div",{class:"line-inbox-num"},"0",-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-min",u.value])},[o.createElementVNode("div",{class:"line-inbox-min-progress",style:o.normalizeStyle({width:l.value+"%"})},null,4)],2),_[1]||(_[1]=o.createElementVNode("div",{class:"line-inbox-segmentation"},[o.createElementVNode("div",{class:"top"}),o.createElementVNode("div",{class:"bottom"})],-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max",d.value])},[o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max-progress",f.value]),style:o.normalizeStyle({width:s.value+"%"})},null,6)],2),o.createElementVNode("div",b3t,[(o.openBlock(),o.createBlock(w,{key:o.unref(a),type:"default",placement:"left",size:e.size,tooltip:e.tooltip,"db-options":{dataField:"value",columns:[{title:m.value.title,field:"value",unit:m.value.unit}],data:{value:m.value.data}}},null,8,["size","tooltip","db-options"]))])])],2)}}}),Uoe=Dt(ur(w3t,[["__scopeId","data-v-9bc90b2c"]])),C3t=Kt(),B4=document.documentElement,x3t=e=>e||"",S3t=(e,t,n,r)=>(console.log(r),{backgroundColor:C3t.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(B4).getPropertyValue("--ui-chart-colors")),tooltip:{show:!1},series:[{startAngle:180,endAngle:0,type:"gauge",radius:"100%",min:-100,max:100,center:["50%","60%"],title:{color:getComputedStyle(B4).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(B4).getPropertyValue(`--gui-color-${r}`),fontSize:24,formatter:function(a){return a+x3t(t)},offsetCenter:[0,"25%"]},splitNumber:2,axisTick:{show:!1,distance:5},splitLine:{distance:1,length:3,show:!1},pointer:{show:!0,length:"75%",width:3,offsetCenter:[0,-5],itemStyle:{color:getComputedStyle(B4).getPropertyValue(`--gui-color-${r}`)}},axisLine:{roundCap:!1,lineStyle:{color:[[.5,getComputedStyle(document.documentElement).getPropertyValue(n)],[1,getComputedStyle(document.documentElement).getPropertyValue(`--gui-color-${r}`)]]}},data:[{value:100,name:"SCORE"}]}]}),Koe=(e,t,n,r,a)=>{const i=o.ref({});return i.value=Hn({},S3t(t,n,r,a),e),{...o.toRefs(i.value)}},E3t={class:"g-target-gauge"},k3t=o.defineComponent({name:"GTargetGauge"}),T3t=o.defineComponent({...k3t,props:{type:{type:String,default:"primary"},description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){const r=Kt();let a=An.state;const i=n,l=e,s=o.ref(),c=o.ref(!1);let d=o.ref(0),u=o.ref([]),f=l.options;const p=o.ref(null);let h=[],m={series:[{}]};const g=o.ref({}),v=()=>{h=[]},y=async _=>{if(v(),Ar(_)){c.value=!0;return}else c.value=!1;const w=qc(l.dbOptions.axisField);u.value=_,u.value&&l.dbOptions&&(u.value.map(x=>{let S={name:w=="function"?l.dbOptions.axisField(x):x[l.dbOptions.axisField],value:x[l.dbOptions.dataField]};h.push(S)}),f?f.series?f.series[0].data?f.series[0].data=Hn({},l.options.series[0].data,h):f.series[0].data=h:f.series=[{data:h}]:m.series[0].data=h);const C=l.dbOptions.columns.find(x=>x.field===l.dbOptions.dataField);f?s.value=Koe(f,C.title,C==null?void 0:C.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type):s.value=Koe(m,C.title,C==null?void 0:C.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type)};o.watch(()=>l.dbOptions.data,_=>{g.value=Ct(_);const w=["http://","https://",void 0];!_.path&&!_.dsKey&&!g.value.dataUrl&&!(typeof _=="string"&&w.some(C=>_.includes(C)))&&g.value.loadStaticData(_),(typeof _=="string"||_.path)&&g.value.reload(_.data)},{deep:!0}),o.watch(()=>a["gui-theme"],async _=>{g.value=null,o.nextTick(async()=>{d++,g.value=Ct(l.dbOptions.data),y(g.value.data),g.value.on("load",w=>{y(w)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(l.dbOptions.data),g.value.on("load",_=>{y(_)})}),t({props:l,targetGaugeRef:p});const b=_=>{i("chart-click",_)};return(_,w)=>{const C=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",E3t,[(o.openBlock(),o.createBlock(C,o.mergeProps({options:s.value},_.$attrs,{ref_key:"targetGaugeRef",ref:p,isEmpty:c.value,description:e.description,onClick:b,key:o.unref(d)}),null,16,["options","isEmpty","description"]))])}}}),joe=Dt(ur(T3t,[["__scopeId","data-v-8416064f"]])),M3t=o.defineComponent({name:"GRow"}),A3t=o.defineComponent({...M3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(kL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Yoe=Dt(A3t),D3t=o.defineComponent({name:"GCol"}),N3t=o.defineComponent({...D3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(qI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),qoe=Dt(N3t),B3t=o.defineComponent({name:"GButton"}),O3t=o.defineComponent({...B3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(ao),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Xoe=Dt(O3t),V3t=o.defineComponent({name:"GInput"}),I3t=o.defineComponent({...V3t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Io),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Zoe=Dt(I3t),R3t=o.defineComponent({name:"GButtonGroup"}),L3t=o.defineComponent({...R3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(wS),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Joe=Dt(L3t),P3t=o.defineComponent({name:"GRadio"}),$3t=o.defineComponent({...P3t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(MS),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Qoe=Dt($3t),z3t=o.defineComponent({name:"GRadioButton"}),F3t=o.defineComponent({...z3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(zI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),eae=Dt(F3t),H3t=o.defineComponent({name:"GRadioGroup"}),G3t=o.defineComponent({...H3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref($I),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),tae=Dt(G3t),W3t=o.defineComponent({name:"GCheckbox"}),U3t=o.defineComponent({...W3t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Xa),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),nae=Dt(U3t),K3t=o.defineComponent({name:"GCheckboxGroup"}),j3t=o.defineComponent({...K3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(TS),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),rae=Dt(j3t),Y3t=o.defineComponent({name:"GCheckboxButton"}),q3t=o.defineComponent({...Y3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(BI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),oae=Dt(q3t),X3t=o.defineComponent({name:"GDatePicker"}),Z3t=o.defineComponent({...X3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(MR),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),aae=Dt(Z3t),J3t=o.defineComponent({name:"GSelect"}),Q3t=o.defineComponent({...J3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(sd),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),iae=Dt(Q3t),e6t=o.defineComponent({name:"GCascader"}),t6t=o.defineComponent({...e6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(KI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),lae=Dt(t6t),n6t=o.defineComponent({name:"GCascaderPanel"}),r6t=o.defineComponent({...n6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(OS),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),sae=Dt(r6t),o6t=o.defineComponent({name:"GOption"}),a6t=o.defineComponent({...o6t,props:{value:{type:String||Number||Boolean||Object||void 0,default:{}},label:{type:String||Number,default:{}},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(d0),o.mergeProps({value:e.value,label:e.label,disabled:e.disabled},t.$attrs),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16,["value","label","disabled"]))}}),cae=Dt(a6t),i6t=o.defineComponent({name:"GOptionGroup"}),l6t=o.defineComponent({...i6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(_L),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),dae=Dt(l6t),s6t=o.defineComponent({name:"GForm"}),c6t=o.defineComponent({...s6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(oL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),uae=Dt(c6t),d6t=o.defineComponent({name:"GFormItem"}),u6t=o.defineComponent({...d6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(aL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),fae=Dt(u6t),f6t=o.defineComponent({name:"GSwitch"}),p6t=o.defineComponent({...f6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(XL),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),pae=Dt(p6t),h6t=o.defineComponent({name:"GUpload"}),m6t=o.defineComponent({...h6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(jP),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),hae=Dt(m6t),g6t=o.defineComponent({name:"GCard"}),v6t=o.defineComponent({...g6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(_I),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),mae=Dt(v6t),y6t=o.defineComponent({name:"GCarousel"}),b6t=o.defineComponent({...y6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(EI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),gae=Dt(b6t),_6t=o.defineComponent({name:"GCarouselItem"}),w6t=o.defineComponent({..._6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(kI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),vae=Dt(w6t),C6t=o.defineComponent({name:"GPagination"}),x6t=o.defineComponent({...C6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(CL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),yae=Dt(x6t),S6t=o.defineComponent({name:"GProgress"}),E6t=o.defineComponent({...S6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(b3),o.mergeProps(n.$attrs,{"stroke-linecap":"butt"}),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),bae=Dt(E6t),k6t=o.defineComponent({name:"GTable"}),T6t=o.defineComponent({...k6t,props:{data:{type:Array},emptyText:{type:String,default:"暂无数据"},textSize:{type:String,default:"sm"}},setup(e,{expose:t}){o.useCssVars(s=>({"365bc4bb":i.value}));const n=e,r=o.ref(!1),a=o.useSlots();Ar(n.data)?r.value=!0:r.value=!1,o.watch(()=>n.data,s=>{if(Ar(s)){r.value=!0;return}else r.value=!1});const i=o.computed(()=>{if(n.textSize=="lg")return"18px";if(n.textSize=="md")return"16px";if(n.textSize=="sm")return"14px";if(n.textSize=="xs")return"12px"}),l=o.ref();return t({elTableRef:l}),(s,c)=>{const d=o.resolveComponent("el-empty");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.withDirectives(o.createVNode(o.unref(Y3),o.mergeProps(s.$attrs,{ref_key:"elTableRef",ref:l,data:e.data,"header-cell-style":{color:"var(--ui-table-text-color)",backgroundColor:"var(--ui-table-fill-color)"}}),o.createSlots({_:2},[o.renderList(o.unref(a),(u,f)=>({name:f,fn:o.withCtx(p=>[o.renderSlot(s.$slots,f,o.normalizeProps(o.guardReactiveProps(p)),void 0,!0)])}))]),1040,["data"]),[[o.vShow,!r.value]]),r.value?o.renderSlot(s.$slots,"empty",{key:0,class:"empty"},()=>[o.createVNode(d,o.mergeProps(s.$attrs,{description:e.emptyText,image:o.unref(Kt)().name=="white-blue"?o.unref(Fl):o.unref(Kt)().name=="white-green"?o.unref(Hl):o.unref(Kt)().name=="black-gold"?o.unref(Gl):"","image-size":200}),null,16,["description","image"])],!0):o.createCommentVNode("",!0)],64)}}}),_ae=Dt(ur(T6t,[["__scopeId","data-v-26c049e7"]])),M6t=o.defineComponent({name:"GTableColumn"}),A6t=o.defineComponent({...M6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(q3),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),wae=Dt(A6t),D6t=o.defineComponent({name:"GTag"}),N6t=o.defineComponent({...D6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Au),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Cae=Dt(N6t),B6t=o.defineComponent({name:"GCheckTag"}),O6t=o.defineComponent({...B6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(jI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),xae=Dt(O6t),V6t=o.defineComponent({name:"GTree"}),I6t=o.defineComponent({...V6t,setup(e,{expose:t}){const n=o.useSlots(),r=o.ref(null);return t({ref:r}),(a,i)=>(o.openBlock(),o.createBlock(o.unref(M0),o.mergeProps({ref_key:"treeRef",ref:r},a.$attrs),o.createSlots({_:2},[o.renderList(o.unref(n),(l,s)=>({name:s,fn:o.withCtx(c=>[o.renderSlot(a.$slots,s,o.normalizeProps(o.guardReactiveProps(c)))])}))]),1040))}}),Sae=Dt(I6t),R6t=o.defineComponent({name:"GTreeSelect"}),L6t=o.defineComponent({...R6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(MP),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Eae=Dt(L6t),P6t=o.defineComponent({name:"GTabs"}),$6t=o.defineComponent({...P6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Z9),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),kae=Dt($6t),z6t=o.defineComponent({name:"GTabPane"}),F6t=o.defineComponent({...z6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(J9),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Tae=Dt(F6t),H6t=o.defineComponent({name:"GDialog"}),G6t=o.defineComponent({...H6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(RR),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Mae=Dt(G6t),W6t=o.defineComponent({name:"GTooltip"}),U6t=o.defineComponent({...W6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(To),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Aae=Dt(U6t),K6t=o.defineComponent({name:"GWatermark"}),j6t=o.defineComponent({...K6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(qP),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Dae=Dt(j6t),Y6t=o.defineComponent({name:"GPopover"}),q6t=o.defineComponent({...Y6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(B2),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Nae=Dt(q6t),X6t=o.defineComponent({name:"GDrawer"}),Z6t=o.defineComponent({...X6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(PR),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Bae=Dt(Z6t),J6t=o.defineComponent({name:"GSubMenu"}),Q6t=o.defineComponent({...J6t,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(mL),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),Oae=Dt(Q6t),eEt=o.defineComponent({name:"GMenu"}),tEt=o.defineComponent({...eEt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(fL),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),Vae=Dt(tEt),nEt=o.defineComponent({name:"GMenuItem"}),rEt=o.defineComponent({...nEt,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(pL),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),Iae=Dt(rEt),oEt=o.defineComponent({name:"GMenuItemGroup"}),aEt=o.defineComponent({...oEt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(hL),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),Rae=Dt(aEt),iEt=An.state["gui-theme"]||"white-green";G6(iEt);const Lae={GChart:HJ,GBarConv:$oe,GRankingList:GJ,GRankingTable:WJ,GRankingCup:UJ,GRankingRb:KJ,GPieTable:Poe,GReserve:jJ,GPlan:XJ,GNodeAchievement:ZJ,GCashflow:eQ,GBar:nQ,GLine:oQ,GBarLine:iQ,GPie:sQ,GRadar:uQ,GFunnel:hQ,GMap:vQ,GHeatmap:bQ,GTargetS:_Q,GTargetR:wQ,GTargetM:CQ,GBox:xQ,GBarCompare:EQ,GPieDistri:TQ,GTargetAchievement:MQ,GDatatable:Ioe,GTargetCurrent:Roe,GTargetStruct:zoe,GPieLevel:Goe,GCalendar:Woe,GGauge:gQ,GTargetDeviation:Uoe,GTargetGauge:joe,GButton:Xoe,GRow:Yoe,GCol:qoe,GInput:Zoe,GButtonGroup:Joe,GRadio:Qoe,GRadioButton:eae,GRadioGroup:tae,GCheckbox:nae,GCheckboxGroup:rae,GCheckboxButton:oae,GDatePicker:aae,GSelect:iae,GCascader:lae,GCascaderPanel:sae,GOption:cae,GOptionGroup:dae,GForm:uae,GFormItem:fae,GSwitch:pae,GUpload:hae,GCard:mae,GCarousel:gae,GCarouselItem:vae,GPagination:yae,GProgress:bae,GTable:_ae,GTableColumn:wae,GTag:Cae,GCheckTag:xae,GTree:Sae,GTreeSelect:Eae,GTabs:kae,GTabPane:Tae,GDialog:Mae,GTooltip:Aae,GWatermark:Dae,GPopover:Nae,GDrawer:Bae,GSubMenu:Oae,GMenu:Vae,GMenuItem:Iae,ElMenuItemGroup:Rae},lEt=e=>{for(const t in Lae)e.component(t,Lae[t])},sEt=e=>{for(const[t,n]of Object.entries(y_e))e.component(t,n)},JD=(e,t)=>{lEt(e),e.use(BRe,{locale:C9e}),sEt(e)};typeof window<"u"&&window.Vue&&JD(window.Vue),typeof window<"u"&&window.baseURL&&JD(window.baseURL);const cEt={install:JD},Pae={setTheme:G6,getThemeList:$Re,getThemeConfig:Kt,setAjaxConfig:Que,getAjaxConfig:efe,loading:W6};globalThis.gui=Pae,ct.DataSource=Eb,ct.ElMenuItemGroup=Rae,ct.GBar=nQ,ct.GBarCompare=EQ,ct.GBarConv=$oe,ct.GBarLine=iQ,ct.GBox=xQ,ct.GButton=Xoe,ct.GButtonGroup=Joe,ct.GCalendar=Woe,ct.GCard=mae,ct.GCarousel=gae,ct.GCarouselItem=vae,ct.GCascader=lae,ct.GCascaderPanel=sae,ct.GCashflow=eQ,ct.GChart=HJ,ct.GCheckTag=xae,ct.GCheckbox=nae,ct.GCheckboxButton=oae,ct.GCheckboxGroup=rae,ct.GCol=qoe,ct.GDatatable=Ioe,ct.GDatePicker=aae,ct.GDialog=Mae,ct.GDrawer=Bae,ct.GForm=uae,ct.GFormItem=fae,ct.GFunnel=hQ,ct.GGauge=gQ,ct.GHeatmap=bQ,ct.GInput=Zoe,ct.GLine=oQ,ct.GMap=vQ,ct.GMenu=Vae,ct.GMenuItem=Iae,ct.GNodeAchievement=ZJ,ct.GOption=cae,ct.GOptionGroup=dae,ct.GPagination=yae,ct.GPie=sQ,ct.GPieDistri=TQ,ct.GPieLevel=Goe,ct.GPieTable=Poe,ct.GPlan=XJ,ct.GPopover=Nae,ct.GProgress=bae,ct.GRadar=uQ,ct.GRadio=Qoe,ct.GRadioButton=eae,ct.GRadioGroup=tae,ct.GRankingCup=UJ,ct.GRankingList=GJ,ct.GRankingRb=KJ,ct.GRankingTable=WJ,ct.GReserve=jJ,ct.GRow=Yoe,ct.GSelect=iae,ct.GSubMenu=Oae,ct.GSwitch=pae,ct.GTabPane=Tae,ct.GTable=_ae,ct.GTableColumn=wae,ct.GTabs=kae,ct.GTag=Cae,ct.GTargetAchievement=MQ,ct.GTargetCurrent=Roe,ct.GTargetDeviation=Uoe,ct.GTargetGauge=joe,ct.GTargetM=CQ,ct.GTargetR=wQ,ct.GTargetS=_Q,ct.GTargetStruct=zoe,ct.GTooltip=Aae,ct.GTree=Sae,ct.GTreeSelect=Eae,ct.GUpload=hae,ct.GWatermark=Dae,ct.Local=Cu,ct.Session=tfe,ct.debounce=kx,ct.default=cEt,ct.formatNumber=que,ct.gui=Pae,ct.setTheme=G6,ct.throttle=jue,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
177
+ ${O.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{_.value.forEach((B,O)=>{O<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:O,dataIndex:B})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:M.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{_.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})},100)}))})},x=async()=>{const E={seriesIndex:b.value,dataIndex:w.value,levelIndexes:[..._.value]};if(s.value++,i.dbOptions.dataField=l.value,v.value=Ct(i.dbOptions.data),await y(v.value.data),await new Promise(k=>setTimeout(k,500)),u.value){const k=u.value.myChart;if(k.dispatchAction({type:"hideTip"}),k.off("click"),k.off("finished"),await C(),E.dataIndex!==null){w.value=E.dataIndex;const T=i.dbOptions.columns.find(M=>M.field===l.value);f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},E.dataIndex,E.levelIndexes),await o.nextTick(),k.setOption(f.value,!0),_.value=E.levelIndexes,b.value=E.seriesIndex,await new Promise(M=>setTimeout(M,200)),_.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})}}};o.onMounted(async()=>{await C()}),o.watch(()=>i.dbOptions.data,E=>{v.value=Ct(E);const k=["http://","https://",void 0];!E.path&&!E.dsKey&&!v.value.dataUrl&&!(typeof E=="string"&&k.some(T=>E.includes(T)))&&v.value.loadStaticData(E),(typeof E=="string"||E.path)&&v.value.reload(E.data)},{deep:!0}),o.watch(()=>i.dbOptions.dataFields,async E=>{if(!E)return;const k={seriesIndex:b.value,dataIndex:w.value,levelIndexes:[..._.value]};l.value=E[0],await o.nextTick(),u.value&&k.dataIndex!==null&&u.value.myChart.dispatchAction({type:"highlight",seriesIndex:k.seriesIndex,dataIndex:k.dataIndex})},{deep:!0,immediate:!0}),o.watch(()=>r["gui-theme"],async E=>{v.value=null,o.nextTick(async()=>{s.value++,v.value=Ct(i.dbOptions.data),y(v.value.data),v.value.on("load",k=>{y(k)})})},{deep:!0}),o.nextTick(async()=>{v.value=Ct(i.dbOptions.data),v.value.on("load",E=>{y(E)})}),t({props:i});const S=E=>{a("chart-click",E)};return(E,k)=>{var D,I;const T=o.resolveComponent("g-radio-button"),M=o.resolveComponent("g-radio-group"),A=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-pie-level",d.value])},[((I=(D=i.dbOptions)==null?void 0:D.dataFields)==null?void 0:I.length)>0?(o.openBlock(),o.createBlock(M,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=B=>l.value=B),onChange:x},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.dbOptions.dataFields,B=>(o.openBlock(),o.createBlock(T,{label:B,value:B},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(A,o.mergeProps({options:f.value},E.$attrs,{ref_key:"pieChartRef",ref:u,isEmpty:c.value,description:e.description,onClick:S,key:o.unref(s)}),null,16,["options","isEmpty","description"]))],2)}}}),Goe=Dt(ur(o3t,[["__scopeId","data-v-137c6f87"]])),a3t={class:"g-calendar"},i3t={class:"g-calendar-header"},l3t={class:"switch-box"},s3t={class:"switch-box1"},c3t={class:"switch-box2"},d3t={key:0,class:"todoList"},u3t={class:"popover-inbox"},f3t=["onClick"],p3t={key:1,class:"el-calendar-year"},h3t={class:"inbox"},m3t={key:0,class:"todoListY"},g3t={class:"popover-inbox"},v3t=["onClick"],Woe=Dt(ur(o.defineComponent({__name:"index",props:{popWidth:{type:Number,default:200},isPop:{type:Boolean,default:!0},isDia:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!0},dateType:{type:String,default:"month"},dbOptions:{type:Object,default:{}}},setup(e){const t=e,n=o.ref(bt().format("YYYY-MM")),r=o.ref(bt().format("YYYY")),a=o.ref({}),i=o.ref(),l=o.ref(new Date),s=o.ref(t.dateType),c=o.ref(""),d=o.ref(bt().format("YYYY-MM")),u=[{name:"1月",value:"01"},{name:"2月",value:"02"},{name:"3月",value:"03"},{name:"4月",value:"04"},{name:"5月",value:"05"},{name:"6月",value:"06"},{name:"7月",value:"07"},{name:"8月",value:"08"},{name:"9月",value:"09"},{name:"10月",value:"10"},{name:"11月",value:"11"},{name:"12月",value:"12"}],f=o.ref(null),p=o.ref(bt().format("YYYY-MM-DD")),h=o.ref([]),m=o.ref([]),g=o.ref(!1),v=o.ref([]),y=o.ref(""),b=A=>{t.dateType=A,s.value=A,l.value=new Date,_(A),h.value.forEach(D=>{D.showAll=!1}),m.value.forEach(D=>{D.showAll=!1})},_=A=>{A=="month"?n.value=bt().format("YYYY-MM"):(r.value=bt().format("YYYY"),c.value=bt().format("YYYY"))},w=A=>{l.value=A},C=A=>{c.value=A},x=()=>{f.value&&f.value.length>0?f.value.map(A=>{A.hide()}):f.value&&!Array.isArray(f.value)&&f.value.hide()},S=A=>{y.value="日期:"+A[t.dbOptions.dateField],v.value=A.todoList,g.value=!0},E=()=>{},k=A=>A.reduce((I,B)=>{const O=I.find(L=>L[t.dbOptions.dateField]===B[t.dbOptions.dateField]);return O?O.todoList.push(B):I.push({[t.dbOptions.dateField]:B[t.dbOptions.dateField],showAll:!1,todoList:[B]}),I},[]),T=async A=>{h.value=k(A),m.value=M(A)},M=A=>A.map(B=>(B.newDate=B[t.dbOptions.dateField].slice(0,-3),B)).reduce((B,O)=>{const L=B.find(R=>R[t.dbOptions.dateField]===O.newDate);return L?L.todoList.push(O):B.push({[t.dbOptions.dateField]:O.newDate,showAll:!1,todoList:[O]}),B},[]);return o.watch(()=>t.dbOptions.data,A=>{a.value=Ct(A);const D=["http://","https://",void 0];A&&(!A.path&&!A.dsKey&&!a.value.dataUrl&&!(typeof A=="string"&&D.some(I=>A.includes(I)))&&a.value.loadStaticData(A),(typeof A=="string"||A.path)&&a.value.reload(A.data))},{deep:!0}),o.nextTick(async()=>{a.value=Ct(t.dbOptions.data),a.value.on("load",A=>{T(A)})}),o.onMounted(()=>{o.nextTick(()=>{_(t.dateType)})}),(A,D)=>{const I=o.resolveComponent("g-date-picker"),B=o.resolveComponent("el-radio-button"),O=o.resolveComponent("el-radio-group"),L=o.resolveComponent("Close"),R=o.resolveComponent("el-icon"),V=o.resolveComponent("g-table-column"),$=o.resolveComponent("g-table"),z=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",a3t,[o.createElementVNode("div",i3t,[o.createElementVNode("div",l3t,[s.value=="month"?(o.openBlock(),o.createBlock(I,{key:0,modelValue:n.value,"onUpdate:modelValue":D[0]||(D[0]=W=>n.value=W),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:w},null,8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createBlock(I,{key:1,modelValue:r.value,"onUpdate:modelValue":D[1]||(D[1]=W=>r.value=W),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:C},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",s3t,[o.renderSlot(A.$slots,"legend",{},void 0,!0)]),o.createElementVNode("div",c3t,[e.isRadio?(o.openBlock(),o.createBlock(O,{key:0,modelValue:s.value,"onUpdate:modelValue":D[2]||(D[2]=W=>s.value=W),onChange:b},{default:o.withCtx(()=>[o.createVNode(B,{label:"按月",value:"month"}),o.createVNode(B,{label:"按年",value:"year"})]),_:1},8,["modelValue"])):o.createCommentVNode("",!0)])]),s.value=="month"?(o.openBlock(),o.createBlock(o.unref(bI),{key:0,modelValue:l.value,"onUpdate:modelValue":D[3]||(D[3]=W=>l.value=W),ref_key:"calendar",ref:i},{"date-cell":o.withCtx(({data:W})=>[o.createElementVNode("span",{class:o.normalizeClass(p.value==W.day?"selectedStyle":"")},o.toDisplayString(W.day.split("-").slice(2).join("-")),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==W.day?(o.openBlock(),o.createElementBlock("div",d3t,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:2),q=>(o.openBlock(),o.createElementBlock("div",{class:"item",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(B2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",u3t,[o.createVNode(R,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(L)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-2)),9,f3t)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createElementBlock("div",p3t,[o.createElementVNode("div",h3t,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(u,W=>o.createElementVNode("div",{class:"item",key:W.value},[o.createElementVNode("span",{class:o.normalizeClass(d.value==`${c.value}-${W.value}`?"date selectedStyle":"date")},o.toDisplayString(W.name),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==`${c.value}-${W.value}`?(o.openBlock(),o.createElementBlock("div",m3t,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:5),q=>(o.openBlock(),o.createElementBlock("div",{class:"itemBox",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(B2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",g3t,[o.createVNode(R,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(L)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>5?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-5)),9,v3t)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))])),64))])])):o.createCommentVNode("",!0),o.createVNode(z,{modelValue:g.value,"onUpdate:modelValue":D[4]||(D[4]=W=>g.value=W),title:y.value,border:"","align-center":!0},{default:o.withCtx(()=>[o.createVNode($,{data:v.value,width:"100%"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dbOptions.columns,W=>(o.openBlock(),o.createBlock(V,{align:"center",prop:W.field,label:W.title+(W.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-f55f455f"]])),y3t={class:"line-inbox"},b3t={class:"line-inbox-target"},_3t=o.defineComponent({name:"GTargetDeviation"}),w3t=o.defineComponent({..._3t,props:{type:{type:String,default:"primary"},size:{type:String,default:"sm"},min:{type:String,default:"-100"},max:{type:String,default:"100"},tooltip:{type:Array,default:null},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t}){o.useCssVars(b=>({a98fe928:h.value}));let n=An.state;const r=Kt();let a=o.ref(0);const i=e,l=o.ref(0),s=o.ref(0),c=o.ref(null),d=o.computed(()=>`line-inbox-max-${i.type}`),u=o.computed(()=>`line-inbox-min-${i.type}`),f=o.computed(()=>`line-inbox-max-progress-${i.type}`),p=o.computed(()=>`g-target-deviation-${i.size}`),h=o.computed(()=>r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${i.type}-lights-4)`:`var(--color-${i.type}-lights-1)`),m=o.ref({data:0,title:"",unit:""}),g=o.ref({}),v=async b=>{y(b),a.value++},y=b=>{const _=i.dbOptions.columns&&i.dbOptions.dataField&&i.dbOptions.columns.length>0&&i.dbOptions.columns.find(w=>w.field===i.dbOptions.dataField);m.value.title=_.title,m.value.unit=_.unit,m.value.data=b[i.dbOptions.dataField],Number(b[i.dbOptions.dataField])>0?(s.value=Number(b[i.dbOptions.dataField])/Number(i.max)*100,l.value=0):(l.value=Math.abs(Number(b[i.dbOptions.dataField]))/Math.abs(Number(i.min))*100,s.value=0)};return o.watch(()=>i.dbOptions.data,b=>{g.value=Ct(b);const _=["http://","https://",void 0];!b.path&&!b.dsKey&&!g.value.dataUrl&&!(typeof b=="string"&&_.some(w=>b.includes(w)))&&g.value.loadStaticData(b),(typeof b=="string"||b.path)&&g.value.reload(b.data)},{deep:!0}),o.watch(()=>n["gui-theme"],async b=>{g.value=null,o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),v(g.value.data),g.value.on("load",_=>{v(_)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),g.value.on("load",b=>{v(b)})}),t({props:i,targetDeviationRef:c}),(b,_)=>{const w=o.resolveComponent("g-target-s");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-target-deviation",p.value]),ref_key:"targetDeviationRef",ref:c},[o.createElementVNode("div",y3t,[_[0]||(_[0]=o.createElementVNode("div",{class:"line-inbox-num"},"0",-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-min",u.value])},[o.createElementVNode("div",{class:"line-inbox-min-progress",style:o.normalizeStyle({width:l.value+"%"})},null,4)],2),_[1]||(_[1]=o.createElementVNode("div",{class:"line-inbox-segmentation"},[o.createElementVNode("div",{class:"top"}),o.createElementVNode("div",{class:"bottom"})],-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max",d.value])},[o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max-progress",f.value]),style:o.normalizeStyle({width:s.value+"%"})},null,6)],2),o.createElementVNode("div",b3t,[(o.openBlock(),o.createBlock(w,{key:o.unref(a),type:"default",placement:"left",size:e.size,tooltip:e.tooltip,"db-options":{dataField:"value",columns:[{title:m.value.title,field:"value",unit:m.value.unit}],data:{value:m.value.data}}},null,8,["size","tooltip","db-options"]))])])],2)}}}),Uoe=Dt(ur(w3t,[["__scopeId","data-v-9bc90b2c"]])),C3t=Kt(),B4=document.documentElement,x3t=e=>e||"",S3t=(e,t,n,r)=>(console.log(r),{backgroundColor:C3t.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(B4).getPropertyValue("--ui-chart-colors")),tooltip:{show:!1},series:[{startAngle:180,endAngle:0,type:"gauge",radius:"100%",min:-100,max:100,center:["50%","60%"],title:{color:getComputedStyle(B4).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(B4).getPropertyValue(`--gui-color-${r}`),fontSize:24,formatter:function(a){return a+x3t(t)},offsetCenter:[0,"25%"]},splitNumber:2,axisTick:{show:!1,distance:5},splitLine:{distance:1,length:3,show:!1},pointer:{show:!0,length:"75%",width:3,offsetCenter:[0,-5],itemStyle:{color:getComputedStyle(B4).getPropertyValue(`--gui-color-${r}`)}},axisLine:{roundCap:!1,lineStyle:{color:[[.5,getComputedStyle(document.documentElement).getPropertyValue(n)],[1,getComputedStyle(document.documentElement).getPropertyValue(`--gui-color-${r}`)]]}},data:[{value:100,name:"SCORE"}]}]}),Koe=(e,t,n,r,a)=>{const i=o.ref({});return i.value=Hn({},S3t(t,n,r,a),e),{...o.toRefs(i.value)}},E3t={class:"g-target-gauge"},k3t=o.defineComponent({name:"GTargetGauge"}),T3t=o.defineComponent({...k3t,props:{type:{type:String,default:"primary"},description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){const r=Kt();let a=An.state;const i=n,l=e,s=o.ref(),c=o.ref(!1);let d=o.ref(0),u=o.ref([]),f=l.options;const p=o.ref(null);let h=[],m={series:[{}]};const g=o.ref({}),v=()=>{h=[]},y=async _=>{if(v(),Ar(_)){c.value=!0;return}else c.value=!1;const w=qc(l.dbOptions.axisField);u.value=_,u.value&&l.dbOptions&&(u.value.map(x=>{let S={name:w=="function"?l.dbOptions.axisField(x):x[l.dbOptions.axisField],value:x[l.dbOptions.dataField]};h.push(S)}),f?f.series?f.series[0].data?f.series[0].data=Hn({},l.options.series[0].data,h):f.series[0].data=h:f.series=[{data:h}]:m.series[0].data=h);const C=l.dbOptions.columns.find(x=>x.field===l.dbOptions.dataField);f?s.value=Koe(f,C.title,C==null?void 0:C.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type):s.value=Koe(m,C.title,C==null?void 0:C.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type)};o.watch(()=>l.dbOptions.data,_=>{g.value=Ct(_);const w=["http://","https://",void 0];!_.path&&!_.dsKey&&!g.value.dataUrl&&!(typeof _=="string"&&w.some(C=>_.includes(C)))&&g.value.loadStaticData(_),(typeof _=="string"||_.path)&&g.value.reload(_.data)},{deep:!0}),o.watch(()=>a["gui-theme"],async _=>{g.value=null,o.nextTick(async()=>{d++,g.value=Ct(l.dbOptions.data),y(g.value.data),g.value.on("load",w=>{y(w)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(l.dbOptions.data),g.value.on("load",_=>{y(_)})}),t({props:l,targetGaugeRef:p});const b=_=>{i("chart-click",_)};return(_,w)=>{const C=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",E3t,[(o.openBlock(),o.createBlock(C,o.mergeProps({options:s.value},_.$attrs,{ref_key:"targetGaugeRef",ref:p,isEmpty:c.value,description:e.description,onClick:b,key:o.unref(d)}),null,16,["options","isEmpty","description"]))])}}}),joe=Dt(ur(T3t,[["__scopeId","data-v-8416064f"]])),M3t=o.defineComponent({name:"GRow"}),A3t=o.defineComponent({...M3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(kL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Yoe=Dt(A3t),D3t=o.defineComponent({name:"GCol"}),N3t=o.defineComponent({...D3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(qI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),qoe=Dt(N3t),B3t=o.defineComponent({name:"GButton"}),O3t=o.defineComponent({...B3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(ao),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Xoe=Dt(O3t),V3t=o.defineComponent({name:"GInput"}),I3t=o.defineComponent({...V3t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Io),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Zoe=Dt(I3t),R3t=o.defineComponent({name:"GButtonGroup"}),L3t=o.defineComponent({...R3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(wS),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Joe=Dt(L3t),P3t=o.defineComponent({name:"GRadio"}),$3t=o.defineComponent({...P3t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(MS),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Qoe=Dt($3t),z3t=o.defineComponent({name:"GRadioButton"}),F3t=o.defineComponent({...z3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(zI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),eae=Dt(F3t),H3t=o.defineComponent({name:"GRadioGroup"}),G3t=o.defineComponent({...H3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref($I),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),tae=Dt(G3t),W3t=o.defineComponent({name:"GCheckbox"}),U3t=o.defineComponent({...W3t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Xa),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),nae=Dt(U3t),K3t=o.defineComponent({name:"GCheckboxGroup"}),j3t=o.defineComponent({...K3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(TS),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),rae=Dt(j3t),Y3t=o.defineComponent({name:"GCheckboxButton"}),q3t=o.defineComponent({...Y3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(BI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),oae=Dt(q3t),X3t=o.defineComponent({name:"GDatePicker"}),Z3t=o.defineComponent({...X3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(MR),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),aae=Dt(Z3t),J3t=o.defineComponent({name:"GSelect"}),Q3t=o.defineComponent({...J3t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(sd),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),iae=Dt(Q3t),e6t=o.defineComponent({name:"GCascader"}),t6t=o.defineComponent({...e6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(KI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),lae=Dt(t6t),n6t=o.defineComponent({name:"GCascaderPanel"}),r6t=o.defineComponent({...n6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(OS),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),sae=Dt(r6t),o6t=o.defineComponent({name:"GOption"}),a6t=o.defineComponent({...o6t,props:{value:{type:String||Number||Boolean||Object||void 0,default:{}},label:{type:String||Number,default:{}},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(d0),o.mergeProps({value:e.value,label:e.label,disabled:e.disabled},t.$attrs),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16,["value","label","disabled"]))}}),cae=Dt(a6t),i6t=o.defineComponent({name:"GOptionGroup"}),l6t=o.defineComponent({...i6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(_L),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),dae=Dt(l6t),s6t=o.defineComponent({name:"GForm"}),c6t=o.defineComponent({...s6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(oL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),uae=Dt(c6t),d6t=o.defineComponent({name:"GFormItem"}),u6t=o.defineComponent({...d6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(aL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),fae=Dt(u6t),f6t=o.defineComponent({name:"GSwitch"}),p6t=o.defineComponent({...f6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(XL),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),pae=Dt(p6t),h6t=o.defineComponent({name:"GUpload"}),m6t=o.defineComponent({...h6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(jP),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),hae=Dt(m6t),g6t=o.defineComponent({name:"GCard"}),v6t=o.defineComponent({...g6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(_I),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),mae=Dt(v6t),y6t=o.defineComponent({name:"GCarousel"}),b6t=o.defineComponent({...y6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(EI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),gae=Dt(b6t),_6t=o.defineComponent({name:"GCarouselItem"}),w6t=o.defineComponent({..._6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(kI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),vae=Dt(w6t),C6t=o.defineComponent({name:"GPagination"}),x6t=o.defineComponent({...C6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(CL),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),yae=Dt(x6t),S6t=o.defineComponent({name:"GProgress"}),E6t=o.defineComponent({...S6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(b3),o.mergeProps(n.$attrs,{"stroke-linecap":"butt"}),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),bae=Dt(E6t),k6t=o.defineComponent({name:"GTable"}),T6t=o.defineComponent({...k6t,props:{data:{type:Array},emptyText:{type:String,default:"暂无数据"},textSize:{type:String,default:"sm"}},setup(e,{expose:t}){o.useCssVars(s=>({"365bc4bb":i.value}));const n=e,r=o.ref(!1),a=o.useSlots();Ar(n.data)?r.value=!0:r.value=!1,o.watch(()=>n.data,s=>{if(Ar(s)){r.value=!0;return}else r.value=!1});const i=o.computed(()=>{if(n.textSize=="lg")return"18px";if(n.textSize=="md")return"16px";if(n.textSize=="sm")return"14px";if(n.textSize=="xs")return"12px"}),l=o.ref();return t({elTableRef:l}),(s,c)=>{const d=o.resolveComponent("el-empty");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.withDirectives(o.createVNode(o.unref(Y3),o.mergeProps(s.$attrs,{ref_key:"elTableRef",ref:l,data:e.data,"header-cell-style":{color:"var(--ui-table-text-color)",backgroundColor:"var(--ui-table-fill-color)"}}),o.createSlots({_:2},[o.renderList(o.unref(a),(u,f)=>({name:f,fn:o.withCtx(p=>[o.renderSlot(s.$slots,f,o.normalizeProps(o.guardReactiveProps(p)),void 0,!0)])}))]),1040,["data"]),[[o.vShow,!r.value]]),r.value?o.renderSlot(s.$slots,"empty",{key:0,class:"empty"},()=>[o.createVNode(d,o.mergeProps(s.$attrs,{description:e.emptyText,image:o.unref(Kt)().name=="white-blue"?o.unref(Fl):o.unref(Kt)().name=="white-green"?o.unref(Hl):o.unref(Kt)().name=="black-gold"?o.unref(Gl):"","image-size":200}),null,16,["description","image"])],!0):o.createCommentVNode("",!0)],64)}}}),_ae=Dt(ur(T6t,[["__scopeId","data-v-26c049e7"]])),M6t=o.defineComponent({name:"GTableColumn"}),A6t=o.defineComponent({...M6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(q3),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),wae=Dt(A6t),D6t=o.defineComponent({name:"GTag"}),N6t=o.defineComponent({...D6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Au),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Cae=Dt(N6t),B6t=o.defineComponent({name:"GCheckTag"}),O6t=o.defineComponent({...B6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(jI),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),xae=Dt(O6t),V6t=o.defineComponent({name:"GTree"}),I6t=o.defineComponent({...V6t,setup(e,{expose:t}){const n=o.useSlots(),r=o.ref(null);return t({ref:r}),(a,i)=>(o.openBlock(),o.createBlock(o.unref(M0),o.mergeProps({ref_key:"treeRef",ref:r},a.$attrs),o.createSlots({_:2},[o.renderList(o.unref(n),(l,s)=>({name:s,fn:o.withCtx(c=>[o.renderSlot(a.$slots,s,o.normalizeProps(o.guardReactiveProps(c)))])}))]),1040))}}),Sae=Dt(I6t),R6t=o.defineComponent({name:"GTreeSelect"}),L6t=o.defineComponent({...R6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(MP),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Eae=Dt(L6t),P6t=o.defineComponent({name:"GTabs"}),$6t=o.defineComponent({...P6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Z9),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),kae=Dt($6t),z6t=o.defineComponent({name:"GTabPane"}),F6t=o.defineComponent({...z6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(J9),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Tae=Dt(F6t),H6t=o.defineComponent({name:"GDialog"}),G6t=o.defineComponent({...H6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(RR),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Mae=Dt(G6t),W6t=o.defineComponent({name:"GTooltip"}),U6t=o.defineComponent({...W6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(To),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Aae=Dt(U6t),K6t=o.defineComponent({name:"GWatermark"}),j6t=o.defineComponent({...K6t,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(qP),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Dae=Dt(j6t),Y6t=o.defineComponent({name:"GPopover"}),q6t=o.defineComponent({...Y6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(B2),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Nae=Dt(q6t),X6t=o.defineComponent({name:"GDrawer"}),Z6t=o.defineComponent({...X6t,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(PR),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Bae=Dt(Z6t),J6t=o.defineComponent({name:"GSubMenu"}),Q6t=o.defineComponent({...J6t,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(mL),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),Oae=Dt(Q6t),eEt=o.defineComponent({name:"GMenu"}),tEt=o.defineComponent({...eEt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(fL),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),Vae=Dt(tEt),nEt=o.defineComponent({name:"GMenuItem"}),rEt=o.defineComponent({...nEt,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(pL),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),Iae=Dt(rEt),oEt=o.defineComponent({name:"GMenuItemGroup"}),aEt=o.defineComponent({...oEt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(hL),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),Rae=Dt(aEt),iEt=An.state["gui-theme"]||"white-green";G6(iEt);const Lae={GChart:HJ,GBarConv:$oe,GRankingList:GJ,GRankingTable:WJ,GRankingCup:UJ,GRankingRb:KJ,GPieTable:Poe,GReserve:jJ,GPlan:XJ,GNodeAchievement:ZJ,GCashflow:eQ,GBar:nQ,GLine:oQ,GBarLine:iQ,GPie:sQ,GRadar:uQ,GFunnel:hQ,GMap:vQ,GHeatmap:bQ,GTargetS:_Q,GTargetR:wQ,GTargetM:CQ,GBox:xQ,GBarCompare:EQ,GPieDistri:TQ,GTargetAchievement:MQ,GDatatable:Ioe,GTargetCurrent:Roe,GTargetStruct:zoe,GPieLevel:Goe,GCalendar:Woe,GGauge:gQ,GTargetDeviation:Uoe,GTargetGauge:joe,GButton:Xoe,GRow:Yoe,GCol:qoe,GInput:Zoe,GButtonGroup:Joe,GRadio:Qoe,GRadioButton:eae,GRadioGroup:tae,GCheckbox:nae,GCheckboxGroup:rae,GCheckboxButton:oae,GDatePicker:aae,GSelect:iae,GCascader:lae,GCascaderPanel:sae,GOption:cae,GOptionGroup:dae,GForm:uae,GFormItem:fae,GSwitch:pae,GUpload:hae,GCard:mae,GCarousel:gae,GCarouselItem:vae,GPagination:yae,GProgress:bae,GTable:_ae,GTableColumn:wae,GTag:Cae,GCheckTag:xae,GTree:Sae,GTreeSelect:Eae,GTabs:kae,GTabPane:Tae,GDialog:Mae,GTooltip:Aae,GWatermark:Dae,GPopover:Nae,GDrawer:Bae,GSubMenu:Oae,GMenu:Vae,GMenuItem:Iae,ElMenuItemGroup:Rae},lEt=e=>{for(const t in Lae)e.component(t,Lae[t])},sEt=e=>{for(const[t,n]of Object.entries(y_e))e.component(t,n)},JD=(e,t)=>{lEt(e),e.use(BRe,{locale:C9e}),sEt(e)};typeof window<"u"&&window.Vue&&JD(window.Vue),typeof window<"u"&&window.baseURL&&JD(window.baseURL);const cEt={install:JD},Pae={setTheme:G6,getThemeList:$Re,getThemeConfig:Kt,setAjaxConfig:Que,getAjaxConfig:efe,loading:W6};globalThis.gui=Pae,ct.DataSource=Eb,ct.ElMenuItemGroup=Rae,ct.GBar=nQ,ct.GBarCompare=EQ,ct.GBarConv=$oe,ct.GBarLine=iQ,ct.GBox=xQ,ct.GButton=Xoe,ct.GButtonGroup=Joe,ct.GCalendar=Woe,ct.GCard=mae,ct.GCarousel=gae,ct.GCarouselItem=vae,ct.GCascader=lae,ct.GCascaderPanel=sae,ct.GCashflow=eQ,ct.GChart=HJ,ct.GCheckTag=xae,ct.GCheckbox=nae,ct.GCheckboxButton=oae,ct.GCheckboxGroup=rae,ct.GCol=qoe,ct.GDatatable=Ioe,ct.GDatePicker=aae,ct.GDialog=Mae,ct.GDrawer=Bae,ct.GForm=uae,ct.GFormItem=fae,ct.GFunnel=hQ,ct.GGauge=gQ,ct.GHeatmap=bQ,ct.GInput=Zoe,ct.GLine=oQ,ct.GMap=vQ,ct.GMenu=Vae,ct.GMenuItem=Iae,ct.GNodeAchievement=ZJ,ct.GOption=cae,ct.GOptionGroup=dae,ct.GPagination=yae,ct.GPie=sQ,ct.GPieDistri=TQ,ct.GPieLevel=Goe,ct.GPieTable=Poe,ct.GPlan=XJ,ct.GPopover=Nae,ct.GProgress=bae,ct.GRadar=uQ,ct.GRadio=Qoe,ct.GRadioButton=eae,ct.GRadioGroup=tae,ct.GRankingCup=UJ,ct.GRankingList=GJ,ct.GRankingRb=KJ,ct.GRankingTable=WJ,ct.GReserve=jJ,ct.GRow=Yoe,ct.GSelect=iae,ct.GSubMenu=Oae,ct.GSwitch=pae,ct.GTabPane=Tae,ct.GTable=_ae,ct.GTableColumn=wae,ct.GTabs=kae,ct.GTag=Cae,ct.GTargetAchievement=MQ,ct.GTargetCurrent=Roe,ct.GTargetDeviation=Uoe,ct.GTargetGauge=joe,ct.GTargetM=CQ,ct.GTargetR=wQ,ct.GTargetS=_Q,ct.GTargetStruct=zoe,ct.GTooltip=Aae,ct.GTree=Sae,ct.GTreeSelect=Eae,ct.GUpload=hae,ct.GWatermark=Dae,ct.Local=Cu,ct.Session=tfe,ct.debounce=kx,ct.default=cEt,ct.formatNumber=que,ct.gui=Pae,ct.setTheme=G6,ct.throttle=jue,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});