g-ui-web 0.10.28 → 0.10.32

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.
@@ -1,2 +1,4 @@
1
- declare const getFunnelOptions: (options?: object) => object;
1
+ declare const getFunnelOptions: (options?: any) => {
2
+ [x: string]: globalThis.Ref<any, any>;
3
+ };
2
4
  export { getFunnelOptions };
@@ -1,4 +1,4 @@
1
- declare const funnelOptions: {
1
+ declare const funnelOptions: () => {
2
2
  backgroundColor: any;
3
3
  color: any;
4
4
  tooltip: {
@@ -11,6 +11,14 @@ declare const funnelOptions: {
11
11
  left: string;
12
12
  show: boolean;
13
13
  };
14
+ xAxis: {
15
+ show: boolean;
16
+ type: string;
17
+ };
18
+ yAxis: {
19
+ show: boolean;
20
+ type: string;
21
+ };
14
22
  series: {
15
23
  type: string;
16
24
  sort: string;
package/lib/g-ui-web.js CHANGED
@@ -93453,7 +93453,8 @@ const Iot = H({
93453
93453
  if (!v || v.length == 0) {
93454
93454
  o.value = !0;
93455
93455
  return;
93456
- }
93456
+ } else
93457
+ o.value = !1;
93457
93458
  u.value = v, u.value && u.value.forEach((_) => {
93458
93459
  s.value.push(_[a.dbOptions.xNameField]);
93459
93460
  });
@@ -93591,7 +93592,7 @@ const Iot = H({
93591
93592
  ]);
93592
93593
  };
93593
93594
  }
93594
- }), Vit = /* @__PURE__ */ ma($it, [["__scopeId", "data-v-f2425544"]]), Fit = tr(Vit), nre = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABWSURBVHgB7ZO7DcAgDAVfMkn2b0ImICNkE9jgxeYjuQH3iJPswnetAYHkJRNlEiu33mBkF5ZUIlmBY+KhG2OyF+CEww52sGaQveCb+Md/XqVFwYi3yx/PyZH5MazHfAAAAABJRU5ErkJggg==", are = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGUSURBVHgBzZiNWYMwEIaPLmDdgA10hIzQEXADnUDcoE6gG9gN7Aa6AXWCdoPPuyZYpJAfkpK+z5M2QBI+juPugCgSACW3PbdG+pQbFrHBiU/KibFOnyVFsKA46oF9j5QL4zd99pQDPnGFcRTNzYh18ji3WABuFE1gqlNXHmNWNAcjj/oQEiyDQ8AUC9We40RMRYEU3Q3o0C8L9f9vTL/dDrnyHbeDadL/6fT/9hdFcTgKYhHPpINZVIRNxFoEga4I8aFXuh5ejr9spBr5qf9JQ15RwwmZD6yg48dcyLkq602EDnwNLo+IuScfZhDVILTc5QlLbh9IT4OY2psnvyMdX3DkN59ctqV0fLcpYgwfQYrSoVwDCtcAueekk2oqbm1WWjjElInFCNZH3XXL/OJEGFGCLlGGKttBl6A7ciP+8MTtgXTR5cJnzXPgVzuvu3HFzPGJW+HFIHSiHWMLy2uOEbaxzFdTBA1daSNCA9aoMJwTw9//ocN8i2TmGhO/bOC81nqjUDqLSIItKRKc/GuHfnXY4Re69BeY1U9v5wAAAABJRU5ErkJggg==", Bit = {
93595
+ }), Vit = /* @__PURE__ */ ma($it, [["__scopeId", "data-v-1f3513bd"]]), Fit = tr(Vit), nre = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABWSURBVHgB7ZO7DcAgDAVfMkn2b0ImICNkE9jgxeYjuQH3iJPswnetAYHkJRNlEiu33mBkF5ZUIlmBY+KhG2OyF+CEww52sGaQveCb+Md/XqVFwYi3yx/PyZH5MazHfAAAAABJRU5ErkJggg==", are = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGUSURBVHgBzZiNWYMwEIaPLmDdgA10hIzQEXADnUDcoE6gG9gN7Aa6AXWCdoPPuyZYpJAfkpK+z5M2QBI+juPugCgSACW3PbdG+pQbFrHBiU/KibFOnyVFsKA46oF9j5QL4zd99pQDPnGFcRTNzYh18ji3WABuFE1gqlNXHmNWNAcjj/oQEiyDQ8AUC9We40RMRYEU3Q3o0C8L9f9vTL/dDrnyHbeDadL/6fT/9hdFcTgKYhHPpINZVIRNxFoEga4I8aFXuh5ejr9spBr5qf9JQ15RwwmZD6yg48dcyLkq602EDnwNLo+IuScfZhDVILTc5QlLbh9IT4OY2psnvyMdX3DkN59ctqV0fLcpYgwfQYrSoVwDCtcAueekk2oqbm1WWjjElInFCNZH3XXL/OJEGFGCLlGGKttBl6A7ciP+8MTtgXTR5cJnzXPgVzuvu3HFzPGJW+HFIHSiHWMLy2uOEbaxzFdTBA1daSNCA9aoMJwTw9//ocN8i2TmGhO/bOC81nqjUDqLSIItKRKc/GuHfnXY4Re69BeY1U9v5wAAAABJRU5ErkJggg==", Bit = {
93595
93596
  key: 0,
93596
93597
  class: "timeline-state"
93597
93598
  }, zit = {
@@ -94344,7 +94345,8 @@ const Cst = (e, t) => {
94344
94345
  if (!u || u.length == 0) {
94345
94346
  n.value = !0;
94346
94347
  return;
94347
- }
94348
+ } else
94349
+ n.value = !1;
94348
94350
  a.value = u, o.value = Cst(r, a.value);
94349
94351
  };
94350
94352
  return Me(
@@ -94451,7 +94453,8 @@ const Cst = (e, t) => {
94451
94453
  if (!c || c.length == 0) {
94452
94454
  l.value = !0;
94453
94455
  return;
94454
- }
94456
+ } else
94457
+ l.value = !1;
94455
94458
  const d = Sg(r.dbOptions.xAxisField);
94456
94459
  i.value = !1;
94457
94460
  let f = z([]), p = Ap(r.options), h = [], v = [], g = [], m = {
@@ -94540,7 +94543,7 @@ const Cst = (e, t) => {
94540
94543
  ]);
94541
94544
  };
94542
94545
  }
94543
- }), Rst = /* @__PURE__ */ ma(Ist, [["__scopeId", "data-v-781c8e92"]]), Lst = tr(Rst), $b = Jn(), Nst = {
94546
+ }), Rst = /* @__PURE__ */ ma(Ist, [["__scopeId", "data-v-07f84a6c"]]), Lst = tr(Rst), $b = Jn(), Nst = {
94544
94547
  backgroundColor: $b.chartOption.backgroundColor,
94545
94548
  color: $b.chartOption.colors,
94546
94549
  tooltip: {
@@ -94605,7 +94608,8 @@ const Cst = (e, t) => {
94605
94608
  if (!c || c.length == 0) {
94606
94609
  n.value = !0;
94607
94610
  return;
94608
- }
94611
+ } else
94612
+ n.value = !1;
94609
94613
  const d = Sg(r.dbOptions.xAxisField);
94610
94614
  l.value = !1;
94611
94615
  let f = z([]), p = Ap(r.options), h = [], v = [], g = {
@@ -94690,7 +94694,7 @@ const Cst = (e, t) => {
94690
94694
  ]);
94691
94695
  };
94692
94696
  }
94693
- }), Fst = /* @__PURE__ */ ma(Vst, [["__scopeId", "data-v-8cd2192f"]]), Bst = tr(Fst), rm = Jn(), zst = (e) => {
94697
+ }), Fst = /* @__PURE__ */ ma(Vst, [["__scopeId", "data-v-ba4d84f8"]]), Bst = tr(Fst), rm = Jn(), zst = (e) => {
94694
94698
  let t = [];
94695
94699
  for (let r = 0; r < e; r++)
94696
94700
  t.push({
@@ -94780,7 +94784,8 @@ const Cst = (e, t) => {
94780
94784
  if (!m || m.length == 0) {
94781
94785
  s.value = !0;
94782
94786
  return;
94783
- }
94787
+ } else
94788
+ s.value = !1;
94784
94789
  let _ = z([]);
94785
94790
  h();
94786
94791
  const y = Sg(n.dbOptions.xAxisField);
@@ -94876,7 +94881,7 @@ const Cst = (e, t) => {
94876
94881
  ]);
94877
94882
  };
94878
94883
  }
94879
- }), Ust = /* @__PURE__ */ ma(Gst, [["__scopeId", "data-v-1d5e88b4"]]), jst = tr(Ust), Uh = Jn(), Kst = (e) => {
94884
+ }), Ust = /* @__PURE__ */ ma(Gst, [["__scopeId", "data-v-44ef3791"]]), jst = tr(Ust), Uh = Jn(), Kst = (e) => {
94880
94885
  let t = [];
94881
94886
  return e == "pie" ? t = [
94882
94887
  {
@@ -94981,13 +94986,14 @@ const Cst = (e, t) => {
94981
94986
  if (!c || c.length == 0) {
94982
94987
  i.value = !0;
94983
94988
  return;
94984
- }
94989
+ } else
94990
+ i.value = !1;
94985
94991
  const d = Sg(r.dbOptions.axisField);
94986
94992
  l.value = !1;
94987
94993
  let f = z([]), p = [], h = {};
94988
94994
  s = c, f.value = c, l.value = !0, f.value && r.dbOptions && (f.value.map((v) => {
94989
94995
  let g = {
94990
- name: d == "function" ? r.dbOptions.xAxisField(v) : v[r.dbOptions.axisField],
94996
+ name: d == "function" ? r.dbOptions.axisField(v) : v[r.dbOptions.axisField],
94991
94997
  value: v[r.dbOptions.dataField],
94992
94998
  data: v
94993
94999
  };
@@ -95028,7 +95034,7 @@ const Cst = (e, t) => {
95028
95034
  ]);
95029
95035
  };
95030
95036
  }
95031
- }), Zst = /* @__PURE__ */ ma(Xst, [["__scopeId", "data-v-46d4a144"]]), Qst = tr(Zst), Vb = Jn(), Jst = {
95037
+ }), Zst = /* @__PURE__ */ ma(Xst, [["__scopeId", "data-v-4ceab094"]]), Qst = tr(Zst), Vb = Jn(), Jst = {
95032
95038
  backgroundColor: Vb.chartOption.backgroundColor,
95033
95039
  color: Vb.chartOption.colors,
95034
95040
  tooltip: {
@@ -95087,7 +95093,8 @@ const Cst = (e, t) => {
95087
95093
  if (!h || h.length == 0) {
95088
95094
  n.value = !0;
95089
95095
  return;
95090
- }
95096
+ } else
95097
+ n.value = !1;
95091
95098
  const v = Sg(r.dbOptions.indivedualField);
95092
95099
  if (o.value = h, o.value && r.dbOptions) {
95093
95100
  let g = [];
@@ -95106,7 +95113,7 @@ const Cst = (e, t) => {
95106
95113
  }), c.push(_);
95107
95114
  }), o.value.map((m) => {
95108
95115
  let _ = {
95109
- name: v == "function" ? r.dbOptions.xAxisField(m) : m[r.dbOptions.indivedualField],
95116
+ name: v == "function" ? r.dbOptions.indivedualField(m) : m[r.dbOptions.indivedualField],
95110
95117
  min: 0
95111
95118
  }, y = [];
95112
95119
  u.map((w) => {
@@ -95144,7 +95151,7 @@ const Cst = (e, t) => {
95144
95151
  ]);
95145
95152
  };
95146
95153
  }
95147
- }), nlt = /* @__PURE__ */ ma(rlt, [["__scopeId", "data-v-21ca043c"]]), alt = tr(nlt), U6 = Jn(), olt = {
95154
+ }), nlt = /* @__PURE__ */ ma(rlt, [["__scopeId", "data-v-0e8a16f1"]]), alt = tr(nlt), U6 = Jn(), olt = () => ({
95148
95155
  backgroundColor: U6.chartOption.backgroundColor,
95149
95156
  color: U6.chartOption.colors,
95150
95157
  tooltip: {
@@ -95157,6 +95164,14 @@ const Cst = (e, t) => {
95157
95164
  left: "left",
95158
95165
  show: !1
95159
95166
  },
95167
+ xAxis: {
95168
+ show: !1,
95169
+ type: "value"
95170
+ },
95171
+ yAxis: {
95172
+ show: !1,
95173
+ type: "value"
95174
+ },
95160
95175
  series: [
95161
95176
  {
95162
95177
  type: "funnel",
@@ -95164,8 +95179,10 @@ const Cst = (e, t) => {
95164
95179
  left: "20%",
95165
95180
  top: 10,
95166
95181
  bottom: 10,
95167
- width: "60%",
95168
- gap: 2,
95182
+ width: "50%",
95183
+ // minSize: '40%',
95184
+ // maxSize: '100%',
95185
+ gap: 0,
95169
95186
  label: {
95170
95187
  show: !0,
95171
95188
  position: "inside"
@@ -95187,9 +95204,9 @@ const Cst = (e, t) => {
95187
95204
  }
95188
95205
  }
95189
95206
  ]
95190
- }, xB = (e) => {
95207
+ }), xB = (e) => {
95191
95208
  const t = z({});
95192
- return t.value = Vn({}, olt, e), {
95209
+ return t.value = Vn({}, olt(), e), {
95193
95210
  ...On(t.value)
95194
95211
  };
95195
95212
  }, ilt = { class: "g-funnel" }, slt = H({
@@ -95217,15 +95234,18 @@ const Cst = (e, t) => {
95217
95234
  if (!f || f.length == 0) {
95218
95235
  a.value = !0;
95219
95236
  return;
95220
- }
95237
+ } else
95238
+ a.value = !1;
95221
95239
  const p = Sg(r.dbOptions.axisField);
95222
95240
  o.value = f, o.value && r.dbOptions && (o.value.map((h) => {
95223
95241
  let v = {
95224
- name: p == "function" ? r.dbOptions.xAxisField(h) : h[r.dbOptions.axisField],
95242
+ name: p == "function" ? r.dbOptions.axisField(h) : h[r.dbOptions.axisField],
95225
95243
  value: h[r.dbOptions.dataField]
95226
95244
  };
95227
95245
  l.push(v);
95228
- }), i ? i.series ? i.series[0].data = l : i.series = [{ data: l }] : u.series[0].data = l), i ? n.value = xB(i) : n.value = xB(u);
95246
+ }), i ? i.series ? i.series.length > 1 ? i.series.map((h) => {
95247
+ h.type == "funnel" && (h.data = l);
95248
+ }) : i.series[0].data = l : i.series = [{ data: l }] : u.series[0].data = l), i ? n.value = xB(i) : n.value = xB(u);
95229
95249
  };
95230
95250
  return Me(
95231
95251
  () => r.dbOptions.data,
@@ -95255,7 +95275,7 @@ const Cst = (e, t) => {
95255
95275
  ]);
95256
95276
  };
95257
95277
  }
95258
- }), ult = /* @__PURE__ */ ma(llt, [["__scopeId", "data-v-5c718dc5"]]), clt = tr(ult), dlt = Jn(), flt = (e) => ({
95278
+ }), ult = /* @__PURE__ */ ma(llt, [["__scopeId", "data-v-3efbdd24"]]), clt = tr(ult), dlt = Jn(), flt = (e) => ({
95259
95279
  backgroundColor: dlt.chartOption.backgroundColor,
95260
95280
  title: {},
95261
95281
  tooltip: {
@@ -95304,7 +95324,8 @@ const Cst = (e, t) => {
95304
95324
  if (!c || c.length == 0) {
95305
95325
  n.value = !0;
95306
95326
  return;
95307
- }
95327
+ } else
95328
+ n.value = !1;
95308
95329
  if (i.value = c, i.value && r.dbOptions) {
95309
95330
  let d = [];
95310
95331
  i.value.map((f) => {
@@ -95349,7 +95370,7 @@ const Cst = (e, t) => {
95349
95370
  ]);
95350
95371
  };
95351
95372
  }
95352
- }), mlt = /* @__PURE__ */ ma(glt, [["__scopeId", "data-v-7eab7a2e"]]), ylt = tr(mlt);
95373
+ }), mlt = /* @__PURE__ */ ma(glt, [["__scopeId", "data-v-8caccdb9"]]), ylt = tr(mlt);
95353
95374
  var ire = { exports: {} };
95354
95375
  (function(e, t) {
95355
95376
  (function(r, n) {
@@ -95678,15 +95699,15 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
95678
95699
  emits: ["click"],
95679
95700
  setup(e, { expose: t, emit: r }) {
95680
95701
  vc((A) => ({
95681
- 55205915: l.value,
95682
- "1fe063f2": u.value,
95683
- "5bda0b78": c.value,
95684
- "3d06e509": d.value,
95685
- 57302990: f.value,
95686
- "126c9534": g.value,
95687
- "672aa4cd": h.value,
95688
- "09c032bc": v.value,
95689
- "792ab64f": m.value
95702
+ f6a9e064: l.value,
95703
+ "8eca5400": u.value,
95704
+ "1ae8f16b": c.value,
95705
+ "016e79f0": d.value,
95706
+ cee7ec92: f.value,
95707
+ "6e81a1df": g.value,
95708
+ "2fb5acc6": h.value,
95709
+ "80f108ee": v.value,
95710
+ "41b5be48": m.value
95690
95711
  }));
95691
95712
  const n = Jn(), a = e, o = O(() => a.bg && a.type != "default" ? `g-target-s-top-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-top-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-top-${a.size} g-target-s-${a.type}`), i = O(() => a.bg && a.type != "default" ? `g-target-s-bottom-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-bottom-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-bottom-${a.size} g-target-s-${a.type}`), s = O(() => a.bg && a.type != "default" ? `g-target-s-left-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-left-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-left-${a.size} g-target-s-${a.type}`), l = O(() => a.border ? "1px solid" : "0"), u = O(() => a.border ? "var(--border-radius-base)" : ""), c = O(() => a.bg ? `var(--color-${a.type}-lights-7)` : ""), d = O(() => a.bg ? `var(--color-${a.type})` : ""), f = O(() => a.border ? `var(--color-${a.type})` : ""), p = O(() => {
95692
95713
  if (a.aspect)
@@ -95726,7 +95747,7 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
95726
95747
  const y = z(null), w = z({}), C = z({});
95727
95748
  let x = null, S = z(!1);
95728
95749
  const E = async (A) => {
95729
- S.value = !1, T(), _.value = A[a.dbOptions.dataField], x = w.value, S.value = !0;
95750
+ S.value = !1, T(), _.value = A[a.dbOptions.dataField], x = _.value, S.value = !0;
95730
95751
  }, T = () => {
95731
95752
  w.value = a.dbOptions.columns && a.dbOptions.columns.length > 0 && a.dbOptions.columns.find((A) => A.field === a.dbOptions.dataField);
95732
95753
  };
@@ -95751,7 +95772,7 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
95751
95772
  return S.value;
95752
95773
  },
95753
95774
  getData() {
95754
- return x;
95775
+ return console.log(x), x;
95755
95776
  }
95756
95777
  }), (A, M) => {
95757
95778
  const D = xt("WarningFilled"), I = xt("el-icon"), B = xt("el-tooltip"), V = xt("ArrowRight");
@@ -95917,7 +95938,7 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
95917
95938
  ], 64);
95918
95939
  };
95919
95940
  }
95920
- }), Ult = /* @__PURE__ */ ma(Glt, [["__scopeId", "data-v-584bac00"]]), jlt = tr(Ult), Klt = { class: "left" }, Ylt = { class: "right" }, qlt = { class: "top" }, Xlt = { class: "bottom" }, Zlt = H({
95941
+ }), Ult = /* @__PURE__ */ ma(Glt, [["__scopeId", "data-v-296c24a7"]]), jlt = tr(Ult), Klt = { class: "left" }, Ylt = { class: "right" }, qlt = { class: "top" }, Xlt = { class: "bottom" }, Zlt = H({
95921
95942
  name: "GTargetR"
95922
95943
  }), Qlt = /* @__PURE__ */ H({
95923
95944
  ...Zlt,
@@ -96734,7 +96755,8 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
96734
96755
  if (!l || l.length == 0) {
96735
96756
  n.value = !0;
96736
96757
  return;
96737
- }
96758
+ } else
96759
+ n.value = !1;
96738
96760
  let u = z([]), c = Ap(r.options), d = [], f = [], p = [], h = {
96739
96761
  series: [{}]
96740
96762
  };
@@ -96803,7 +96825,7 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
96803
96825
  ]);
96804
96826
  };
96805
96827
  }
96806
- }), Fut = /* @__PURE__ */ ma(Vut, [["__scopeId", "data-v-5931726c"]]), But = tr(Fut), EB = Jn(), zut = (e, t, r) => {
96828
+ }), Fut = /* @__PURE__ */ ma(Vut, [["__scopeId", "data-v-411e7e7e"]]), But = tr(Fut), EB = Jn(), zut = (e, t, r) => {
96807
96829
  let n = [];
96808
96830
  return r == "pie" ? n = t == "lg" ? ["0", "80%"] : t == "md" ? ["0", "75%"] : t == "sm" ? ["0", "65%"] : ["0", "60%"] : n = t == "lg" ? ["50%", "80%"] : t == "md" ? ["45%", "75%"] : t == "sm" ? ["40%", "65%"] : ["35%", "60%"], {
96809
96831
  backgroundColor: EB.chartOption.backgroundColor,
@@ -96902,7 +96924,8 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
96902
96924
  if (!p || p.length == 0) {
96903
96925
  n.value = !0;
96904
96926
  return;
96905
- }
96927
+ } else
96928
+ n.value = !1;
96906
96929
  i.value = p, i.value && r.dbOptions && (i.value.map((h) => {
96907
96930
  let v = {
96908
96931
  name: h[r.dbOptions.axisField],
@@ -96939,7 +96962,7 @@ const _lt = /* @__PURE__ */ _l(blt), wlt = ["id"], Clt = /* @__PURE__ */ H({
96939
96962
  ]);
96940
96963
  };
96941
96964
  }
96942
- }), Uut = /* @__PURE__ */ ma(Gut, [["__scopeId", "data-v-b5c581be"]]), jut = tr(Uut), Kut = Jn(), jh = document.documentElement, Yut = (e, t, r, n, a) => {
96965
+ }), Uut = /* @__PURE__ */ ma(Gut, [["__scopeId", "data-v-51bc6919"]]), jut = tr(Uut), Kut = Jn(), jh = document.documentElement, Yut = (e, t, r, n, a) => {
96943
96966
  let i = 0, s = 0, l = "189.5%", u = 0, c = 0, d = "";
96944
96967
  return r == "xs" ? (i = 24, s = 14, l = "189.5%", u = 8, c = 10, d = "45%") : r == "sm" ? (i = 28, s = 16, l = "189.5%", u = 10, c = 12, d = "47%") : r == "md" ? (i = 32, s = 18, l = "189%", u = 12, c = 14, d = "47%") : r == "lg" && (i = 36, s = 20, l = "188.5%", u = 14, c = 16, d = "47%"), {
96945
96968
  backgroundColor: Kut.chartOption.backgroundColor,
@@ -112228,7 +112251,8 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112228
112251
  if (!h || h.length == 0) {
112229
112252
  a.value = !0;
112230
112253
  return;
112231
- }
112254
+ } else
112255
+ a.value = !1;
112232
112256
  u = {
112233
112257
  series: [{}]
112234
112258
  }, l.value = [], s.value = h;
@@ -112345,41 +112369,41 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112345
112369
  splitLine: n.options.splitLine == null ? !0 : n.options.splitLine,
112346
112370
  color: n.options.color || "#3971E2",
112347
112371
  ltr: n.options.ltr || "left-right"
112348
- }, u = (g) => {
112349
- let m = g.map((_, y) => {
112350
- let w = Array(g.length).fill("-");
112351
- if (y === g.length - 1)
112352
- w[y] = g[y], w[y + 1] = g[y];
112372
+ }, u = (m) => {
112373
+ let _ = m.map((y, w) => {
112374
+ let C = Array(m.length).fill("-");
112375
+ if (w === m.length - 1)
112376
+ C[w] = m[w], C[w + 1] = m[w];
112353
112377
  else {
112354
- let C = g[0] - g.slice(1, y + 1).reduce((x, S) => x + S, 0);
112355
- w[y] = C, w[y + 1] = C;
112378
+ let x = m[0] - m.slice(1, w + 1).reduce((S, E) => S + E, 0);
112379
+ C[w] = x, C[w + 1] = x;
112356
112380
  }
112357
112381
  return {
112358
112382
  type: "line",
112359
112383
  symbol: "none",
112360
112384
  lineStyle: { type: "dashed", width: 1, color: l.color },
112361
- data: w
112385
+ data: C
112362
112386
  };
112363
112387
  });
112364
- return m.slice(0, m.length - 1);
112365
- }, c = (g, m = 2, _ = g.length - 1) => {
112366
- if (_ >= g.length)
112388
+ return _.slice(0, _.length - 1);
112389
+ }, c = (m, _ = 2, y = m.length - 1) => {
112390
+ if (y >= m.length)
112367
112391
  throw new Error("End index is out of range");
112368
- const y = new Array(_ - m + 1).fill(0);
112369
- y[0] = g.slice(m, _ + 1).reduce((w, C) => w + C, 0);
112370
- for (let w = 1; w < y.length; w++)
112371
- y[w] = y[w - 1] - g[m + w - 1];
112372
- return y.unshift(0), y.push(0), y;
112373
- }, d = (g, m, _) => {
112374
- let y = [];
112375
- return l.ltr == "left-right" ? y = u(g) : u(g).reverse().map((w) => {
112376
- y.push({
112377
- type: w.type,
112378
- symbol: w.symbol,
112379
- lineStyle: w.lineStyle,
112380
- data: w.data.reverse()
112392
+ const w = new Array(y - _ + 1).fill(0);
112393
+ w[0] = m.slice(_, y + 1).reduce((C, x) => C + x, 0);
112394
+ for (let C = 1; C < w.length; C++)
112395
+ w[C] = w[C - 1] - m[_ + C - 1];
112396
+ return w.unshift(0), w.push(0), w;
112397
+ }, d = (m, _, y) => {
112398
+ let w = [];
112399
+ return l.ltr == "left-right" ? w = u(m) : u(m).reverse().map((C) => {
112400
+ w.push({
112401
+ type: C.type,
112402
+ symbol: C.symbol,
112403
+ lineStyle: C.lineStyle,
112404
+ data: C.data.reverse()
112381
112405
  });
112382
- }), l.isLine || (y = []), console.log(f.value.unit), {
112406
+ }), l.isLine || (w = []), {
112383
112407
  backgroundColor: r.chartOption.backgroundColor,
112384
112408
  grid: {
112385
112409
  top: 30,
@@ -112389,13 +112413,13 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112389
112413
  },
112390
112414
  xAxis: {
112391
112415
  type: "category",
112392
- data: l.ltr == "left-right" ? m : m.reverse(),
112416
+ data: l.ltr == "left-right" ? _ : _.reverse(),
112393
112417
  axisLabel: {
112394
112418
  width: 30,
112395
112419
  interval: 0,
112396
112420
  fontSize: 14,
112397
112421
  lineHeight: 18,
112398
- formatter: (w) => w.split(/\s+/).join(`
112422
+ formatter: (C) => C.split(/\s+/).join(`
112399
112423
  `),
112400
112424
  padding: [3, 0]
112401
112425
  },
@@ -112423,7 +112447,7 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112423
112447
  type: "bar",
112424
112448
  stack: "total",
112425
112449
  yAxisIndex: 0,
112426
- data: l.ltr == "left-right" ? _ : _.reverse(),
112450
+ data: l.ltr == "left-right" ? y : y.reverse(),
112427
112451
  label: { show: !1 },
112428
112452
  barWidth: n.dbOptions.barWidth || 20,
112429
112453
  itemStyle: { color: "rgba(0,0,0,0)", borderRadius: n.dbOptions.borderRadius || 0 },
@@ -112434,11 +112458,11 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112434
112458
  type: "bar",
112435
112459
  stack: "total",
112436
112460
  yAxisIndex: 0,
112437
- data: l.ltr == "left-right" ? g : g.reverse(),
112461
+ data: l.ltr == "left-right" ? m : m.reverse(),
112438
112462
  label: {
112439
112463
  show: !0,
112440
112464
  position: "top",
112441
- formatter: (w) => !n.options.isProportion || w.value == s.value ? w.value + (f.value.unit ? f.value.unit : "") : w.value + (f.value.unit ? f.value.unit : "") + " / " + (w.value / s.value).toFixed(2) * 100 + "%"
112465
+ formatter: (C) => !n.options.isProportion || C.value == s.value ? C.value + (f.value.unit ? f.value.unit : "") : C.value ? C.value + (f.value.unit ? f.value.unit : "") + " / " + (C.value / s.value * 100).toFixed(2) + "%" : C.value + " / 0%"
112442
112466
  },
112443
112467
  barWidth: n.dbOptions.barWidth || 20,
112444
112468
  itemStyle: {
@@ -112447,40 +112471,47 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112447
112471
  },
112448
112472
  emphasis: { focus: "series" }
112449
112473
  }
112450
- ].concat(y)
112474
+ ].concat(w)
112451
112475
  };
112452
- }, f = z({}), p = z({}), h = async (g) => {
112453
- if (!g || g.length == 0) {
112476
+ }, f = z({}), p = z({});
112477
+ function h(m) {
112478
+ return m.every(
112479
+ (_) => _[n.dbOptions.dataField] === null || _[n.dbOptions.dataField] === void 0
112480
+ );
112481
+ }
112482
+ const v = async (m) => {
112483
+ if (!m || m.length == 0 || h(m)) {
112454
112484
  a.value = !0;
112455
112485
  return;
112456
- }
112457
- v();
112458
- let m = z({}), _ = [], y = [], w = [];
112459
- m.value = g, _ = m.value.map((C) => C[n.dbOptions.xAxisField]), y = m.value.map((C) => C[n.dbOptions.dataField]).map(Number), s.value = Math.max.apply(null, y), w = c(y), o.value = d(y, _, w);
112460
- }, v = () => {
112461
- f.value = n.dbOptions.columns && n.dbOptions.columns.length > 0 && n.dbOptions.columns.find((g) => g.field === n.dbOptions.dataField);
112486
+ } else
112487
+ a.value = !1;
112488
+ g();
112489
+ let _ = z({}), y = [], w = [], C = [];
112490
+ _.value = m, y = _.value.map((x) => x[n.dbOptions.xAxisField]), w = _.value.map((x) => x[n.dbOptions.dataField]).map(Number), s.value = Math.max.apply(null, w), C = c(w), o.value = d(w, y, C);
112491
+ }, g = () => {
112492
+ f.value = n.dbOptions.columns && n.dbOptions.columns.length > 0 && n.dbOptions.columns.find((m) => m.field === n.dbOptions.dataField);
112462
112493
  };
112463
112494
  return Me(
112464
112495
  () => n.dbOptions.data,
112465
- (g) => {
112466
- p.value = mr(g);
112467
- const m = ["http://", "https://", void 0];
112468
- !g.path && !g.dsKey && !p.value.dataUrl && !(typeof g == "string" && m.some((_) => g.includes(_))) && p.value.loadStaticData(g), (typeof g == "string" || g.path) && p.value.reload(g.data);
112496
+ (m) => {
112497
+ p.value = mr(m);
112498
+ const _ = ["http://", "https://", void 0];
112499
+ !m.path && !m.dsKey && !p.value.dataUrl && !(typeof m == "string" && _.some((y) => m.includes(y))) && p.value.loadStaticData(m), (typeof m == "string" || m.path) && p.value.reload(m.data);
112469
112500
  },
112470
112501
  {
112471
112502
  deep: !0
112472
112503
  }
112473
112504
  ), xe(async () => {
112474
- p.value = mr(n.dbOptions.data), p.value.on("load", (g) => {
112475
- h(g);
112505
+ p.value = mr(n.dbOptions.data), p.value.on("load", (m) => {
112506
+ v(m);
112476
112507
  });
112477
112508
  }), t({
112478
112509
  props: n,
112479
112510
  barConvRef: i
112480
- }), (g, m) => {
112481
- const _ = xt("g-chart");
112511
+ }), (m, _) => {
112512
+ const y = xt("g-chart");
112482
112513
  return k(), F("div", _St, [
112483
- fe(_, $t({ options: o.value }, g.$attrs, {
112514
+ fe(y, $t({ options: o.value }, m.$attrs, {
112484
112515
  ref_key: "barConvRef",
112485
112516
  ref: i,
112486
112517
  isEmpty: a.value
@@ -112488,7 +112519,7 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112488
112519
  ]);
112489
112520
  };
112490
112521
  }
112491
- }), xSt = /* @__PURE__ */ ma(CSt, [["__scopeId", "data-v-5c7f9902"]]), SSt = tr(xSt), ESt = { class: "title" }, TSt = { class: "t-text" }, ASt = { class: "count" }, MSt = { class: "c-value" }, kSt = { class: "c-unit" }, DSt = { class: "i-text" }, OSt = { class: "i-field" }, ISt = { class: "i-value" }, RSt = { class: "i-unit" }, LSt = H({
112522
+ }), xSt = /* @__PURE__ */ ma(CSt, [["__scopeId", "data-v-eca0e766"]]), SSt = tr(xSt), ESt = { class: "title" }, TSt = { class: "t-text" }, ASt = { class: "count" }, MSt = { class: "c-value" }, kSt = { class: "c-unit" }, DSt = { class: "i-text" }, OSt = { class: "i-field" }, ISt = { class: "i-value" }, RSt = { class: "i-unit" }, LSt = H({
112492
112523
  name: "GTargetStruct"
112493
112524
  }), NSt = /* @__PURE__ */ H({
112494
112525
  ...LSt,
@@ -112923,7 +112954,8 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
112923
112954
  if (!h || h.length == 0) {
112924
112955
  n.value = !0;
112925
112956
  return;
112926
- }
112957
+ } else
112958
+ n.value = !1;
112927
112959
  u = {
112928
112960
  series: [{}]
112929
112961
  }, l = [], s.value = h, s.value && r.dbOptions && (s.value.map((v) => {
@@ -113024,7 +113056,7 @@ const Vxt = { class: "g-datatable" }, Fxt = H({
113024
113056
  ], 2);
113025
113057
  };
113026
113058
  }
113027
- }), FSt = /* @__PURE__ */ ma(VSt, [["__scopeId", "data-v-dc8fb985"]]), BSt = tr(FSt), zSt = H({
113059
+ }), FSt = /* @__PURE__ */ ma(VSt, [["__scopeId", "data-v-1a409a95"]]), BSt = tr(FSt), zSt = H({
113028
113060
  name: "GRow"
113029
113061
  }), HSt = /* @__PURE__ */ H({
113030
113062
  ...zSt,
Binary file