@a2simcode/ui 0.0.276 → 0.0.277

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,4 +1,4 @@
1
- import { Fragment as Ae, computed as H, createBlock as N, createCommentVNode as ae, createElementBlock as z, createElementVNode as I, createSlots as Xn, createTextVNode as $n, createVNode as Q, defineComponent as xe, getCurrentInstance as kc, guardReactiveProps as qo, h as Li, inject as Ld, mergeModels as Ko, mergeProps as Qe, nextTick as Lt, normalizeClass as Ze, normalizeProps as Va, normalizeStyle as ce, onBeforeUnmount as Xo, onMounted as Ft, onUnmounted as Zo, openBlock as k, provide as Id, reactive as Zn, ref as D, render as Ii, renderList as De, renderSlot as it, resolveComponent as V, resolveDirective as yo, resolveDynamicComponent as Wa, shallowRef as Qo, toDisplayString as Re, unref as J, useModel as Jo, useSlots as zd, useTemplateRef as $a, vShow as Er, watch as rt, watchEffect as Rc, withCtx as q, withDirectives as Qn, withKeys as Tr, withModifiers as tn } from "vue";
1
+ import { Fragment as Ae, computed as H, createBlock as N, createCommentVNode as ae, createElementBlock as z, createElementVNode as I, createSlots as Xn, createTextVNode as $n, createVNode as Q, defineComponent as xe, getCurrentInstance as kc, guardReactiveProps as qo, h as Li, inject as Ld, mergeModels as Ko, mergeProps as Qe, nextTick as Lt, normalizeClass as Ze, normalizeProps as Va, normalizeStyle as ce, onBeforeUnmount as Xo, onMounted as Ft, onUnmounted as Zo, openBlock as k, provide as Id, reactive as Zn, ref as $, render as Ii, renderList as De, renderSlot as it, resolveComponent as V, resolveDirective as yo, resolveDynamicComponent as Wa, shallowRef as Qo, toDisplayString as Re, unref as J, useModel as Jo, useSlots as zd, useTemplateRef as $a, vShow as Er, watch as rt, watchEffect as Rc, withCtx as q, withDirectives as Qn, withKeys as Tr, withModifiers as tn } from "vue";
2
2
  import { Icon as Ul, getIcon as Da } from "@iconify/vue";
3
3
  import po from "dayjs";
4
4
  import Dd from "sortablejs";
@@ -161,7 +161,7 @@ var Jt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
161
161
  r.value?.focus();
162
162
  }, c = () => {
163
163
  r.value?.blur();
164
- }, s = H(() => a.notLabel || !a.label), d = D(!1);
164
+ }, s = H(() => a.notLabel || !a.label), d = $(!1);
165
165
  rt(() => a.loading, (u) => {
166
166
  if (typeof u == "boolean") d.value = u;
167
167
  else if (Jt(u?.delay))
@@ -1693,10 +1693,10 @@ var $h = /* @__PURE__ */ xe({
1693
1693
  name: "JDynamicLayer",
1694
1694
  __name: "dynamic-layer",
1695
1695
  setup(e, { expose: t }) {
1696
- const n = D(), a = D(600), o = D(400), i = D(!0), r = D(!0), l = D(!0), c = D(""), s = D([]), d = D(!0), f = D(), u = Qo(), h = D(), { getPageName: p } = Oh(), g = () => {
1696
+ const n = $(), a = $(600), o = $(400), i = $(!0), r = $(!0), l = $(!0), c = $(""), s = $([]), d = $(!0), f = $(), u = Qo(), h = $(), { getPageName: p } = Oh(), g = () => {
1697
1697
  const B = p();
1698
1698
  return B || (typeof u.value == "string" ? u.value : "");
1699
- }, b = D(!1), x = D([]), w = async (B) => {
1699
+ }, b = $(!1), x = $([]), w = async (B) => {
1700
1700
  if (f.value?.validateSteps) {
1701
1701
  Fa(!0);
1702
1702
  const j = f.value.validateSteps(B);
@@ -1987,7 +1987,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
1987
1987
  "change"
1988
1988
  ],
1989
1989
  setup(e, { emit: t }) {
1990
- const n = e, a = t, o = D(), i = H({
1990
+ const n = e, a = t, o = $(), i = H({
1991
1991
  get() {
1992
1992
  return n.modelValue;
1993
1993
  },
@@ -2158,7 +2158,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
2158
2158
  "visible-change"
2159
2159
  ],
2160
2160
  setup(e, { expose: t, emit: n }) {
2161
- const a = e, o = n, i = D(), r = H({
2161
+ const a = e, o = n, i = $(), r = H({
2162
2162
  get() {
2163
2163
  return a.selectType?.indexOf("range") > -1 ? typeof a.modelValue == "string" ? (console.log(a.modelValue, "props.modelValue"), a.modelValue ? a.modelValue.split(",") : ["", ""]) : a.modelValue || ["", ""] : a.modelValue;
2164
2164
  },
@@ -2321,7 +2321,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
2321
2321
  "visible-change"
2322
2322
  ],
2323
2323
  setup(e, { expose: t, emit: n }) {
2324
- const a = e, o = n, i = D(), r = H({
2324
+ const a = e, o = n, i = $(), r = H({
2325
2325
  get() {
2326
2326
  return a.isRange ? typeof a.modelValue == "string" ? a.modelValue ? a.modelValue.split(",") : ["", ""] : a.modelValue || ["", ""] : a.modelValue;
2327
2327
  },
@@ -2428,7 +2428,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
2428
2428
  },
2429
2429
  emits: ["update:modelValue", "change"],
2430
2430
  setup(e, { emit: t }) {
2431
- const n = e, a = t, o = D(""), i = (r) => {
2431
+ const n = e, a = t, o = $(""), i = (r) => {
2432
2432
  a("update:modelValue", r), a("change", { value: r });
2433
2433
  };
2434
2434
  return rt(() => n.modelValue, (r) => {
@@ -2600,7 +2600,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
2600
2600
  },
2601
2601
  emits: ["update:modelValue", "change"],
2602
2602
  setup(e, { emit: t }) {
2603
- const n = e, a = t, o = D(), i = H({
2603
+ const n = e, a = t, o = $(), i = H({
2604
2604
  get() {
2605
2605
  return n.multiple && typeof n.modelValue == "string" ? n.modelValue === "" ? [] : n.modelValue?.split(",") || [] : n.modelValue;
2606
2606
  },
@@ -2833,7 +2833,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
2833
2833
  },
2834
2834
  emits: ["update:modelValue", "change"],
2835
2835
  setup(e, { expose: t, emit: n }) {
2836
- const a = e, o = D(null), i = n;
2836
+ const a = e, o = $(null), i = n;
2837
2837
  t({
2838
2838
  getCheckedNodes: (f = !1) => o.value?.getCheckedNodes(f),
2839
2839
  clearCheckedNodes: () => {
@@ -3058,7 +3058,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
3058
3058
  "focus"
3059
3059
  ],
3060
3060
  setup(e, { expose: t, emit: n }) {
3061
- const a = e, o = D(), i = n, r = H({
3061
+ const a = e, o = $(), i = n, r = H({
3062
3062
  get() {
3063
3063
  return a.modelValue;
3064
3064
  },
@@ -3222,7 +3222,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
3222
3222
  "blur"
3223
3223
  ],
3224
3224
  setup(e, { expose: t, emit: n }) {
3225
- const a = e, o = D(null), i = n, r = H({
3225
+ const a = e, o = $(null), i = n, r = H({
3226
3226
  get() {
3227
3227
  return a.modelValue || "";
3228
3228
  },
@@ -3407,7 +3407,7 @@ var Vh = Te(Uc), Nh = /* @__PURE__ */ xe({
3407
3407
  }
3408
3408
  },
3409
3409
  setup(e) {
3410
- const t = e, n = zd(), a = D(), o = D(), i = D(-1), r = D(-1), l = D(-1), c = D(-1), s = D(0), d = D(!1), f = Zn({
3410
+ const t = e, n = zd(), a = $(), o = $(), i = $(-1), r = $(-1), l = $(-1), c = $(-1), s = $(0), d = $(!1), f = Zn({
3411
3411
  type: "",
3412
3412
  isMove: !1,
3413
3413
  pageX: 0,
@@ -5278,7 +5278,7 @@ var Up = class {
5278
5278
  "j-input-cards",
5279
5279
  "j-input-rows",
5280
5280
  "j-table"
5281
- ]), n = e, { formData: a, errorFields: o, span: i, labelWidth: r } = Ka(), { getTableData: l, row: c, pRowData: s } = ti(), { t: d } = St(), f = D(0);
5281
+ ]), n = e, { formData: a, errorFields: o, span: i, labelWidth: r } = Ka(), { getTableData: l, row: c, pRowData: s } = ti(), { t: d } = St(), f = $(0);
5282
5282
  (n.getCompType != null || n.getCompConfig != null) && a && rt(a, () => {
5283
5283
  f.value++;
5284
5284
  }, { deep: !0 });
@@ -5435,7 +5435,7 @@ var Up = class {
5435
5435
  const de = T.value;
5436
5436
  Y && M.value && (Y = String(Y || [])), v ? v[de] = Y : s && (s[de] = Y), a("update:modelValue", Y);
5437
5437
  }
5438
- }), B = D(0);
5438
+ }), B = $(0);
5439
5439
  (n.getCompType != null || n.getCompConfig != null) && rt([() => s, () => v], () => B.value++, { deep: !0 });
5440
5440
  const j = H(() => (B.value, Cn({
5441
5441
  config: n.config,
@@ -5625,7 +5625,7 @@ var Up = class {
5625
5625
  rowNum: n.rowNum
5626
5626
  };
5627
5627
  Ue(de), j.value?.change && j.value?.change(de), m && m(de), d && d(de), a("change", de);
5628
- }, pt = D(), ie = D(), Se = (Y, ...de) => {
5628
+ }, pt = $(), ie = $(), Se = (Y, ...de) => {
5629
5629
  if (pt.value && typeof pt.value[Y] == "function") return pt.value[Y](...de);
5630
5630
  console.warn(`方法 ${Y} 不存在或不是函数`);
5631
5631
  }, ze = () => {
@@ -5707,7 +5707,7 @@ var Up = class {
5707
5707
  async createEditor(e) {
5708
5708
  const { container: t, referencePosition: n, col: a, row: o, table: i } = e;
5709
5709
  this.currentCompType = "";
5710
- const r = i.getBodyField(a, o), l = i.options?.columns || [], c = this.findColumnByField(l, r), s = c?._compConfig || {}, d = D(i.getCellOriginRecord(a, o) || {});
5710
+ const r = i.getBodyField(a, o), l = i.options?.columns || [], c = this.findColumnByField(l, r), s = c?._compConfig || {}, d = $(i.getCellOriginRecord(a, o) || {});
5711
5711
  if (!t) return !1;
5712
5712
  let f = c?._compType;
5713
5713
  if (d.value._compTypeByRender && d.value._compTypeByRender[r] && (f = d.value._compTypeByRender[r], !Gc(f)))
@@ -6061,28 +6061,28 @@ var Zp = /* @__PURE__ */ xe({
6061
6061
  Object.keys(g).forEach((O) => {
6062
6062
  delete g[O];
6063
6063
  });
6064
- }, x = D(40), w = H(() => {
6064
+ }, x = $(40), w = H(() => {
6065
6065
  const O = {};
6066
6066
  return o.heightMode === "auto" && (o.emptyTipText && x.value < 200 && !(o.isRowFixed && o.rowNum > 0) ? O.height = "200px" : O.height = x.value + "px", O.flex = "none", o.maxHeight && (O.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), O;
6067
- }), y = D(null);
6067
+ }), y = $(null);
6068
6068
  let m = null, C = null, v = 0, _ = 0, S = !1;
6069
- const R = D(0);
6069
+ const R = $(0);
6070
6070
  let M = o.records.length, T = 45;
6071
6071
  const L = (O) => {
6072
6072
  if (!o.isRowFixed || !o.rowNum || o.rowNum <= 0) return O;
6073
- const $ = [...O];
6074
- for (; $.length < o.rowNum; ) {
6073
+ const D = [...O];
6074
+ for (; D.length < o.rowNum; ) {
6075
6075
  const W = { _i: kn() };
6076
6076
  jo.value.forEach((ee) => {
6077
6077
  const U = ee.config?.valueRowKey || ee.id || "";
6078
6078
  U && (W[U] = qt(ee.config?.defaultValue));
6079
- }), $.push(W);
6079
+ }), D.push(W);
6080
6080
  }
6081
- return $;
6082
- }, B = D(!1), j = D({}), A = D([]), E = D(null), F = D(0);
6081
+ return D;
6082
+ }, B = $(!1), j = $({}), A = $([]), E = $(null), F = $(0);
6083
6083
  let K = null, oe = !1, be = !1;
6084
- const X = (O, $, W, ee, U) => {
6085
- A.value = O, E.value = $, F.value = W, j.value = {
6084
+ const X = (O, D, W, ee, U) => {
6085
+ A.value = O, E.value = D, F.value = W, j.value = {
6086
6086
  left: `${ee}px`,
6087
6087
  top: `${U}px`
6088
6088
  }, B.value = !0, oe = !1, document.addEventListener("wheel", we, { passive: !1 });
@@ -6106,26 +6106,26 @@ var Zp = /* @__PURE__ */ xe({
6106
6106
  openLayer: h
6107
6107
  }), Z());
6108
6108
  }, st = (O) => {
6109
- let $ = O.action.config?.display !== !1, W = O.action.config?.disabled === !0;
6109
+ let D = O.action.config?.display !== !1, W = O.action.config?.disabled === !0;
6110
6110
  const ee = o.actionFilter;
6111
6111
  if (ee) try {
6112
6112
  const U = ee(O);
6113
- typeof U == "boolean" ? $ = U : U && typeof U == "object" && (typeof U.display == "boolean" && ($ = U.display), typeof U.disabled == "boolean" && (W = U.disabled));
6113
+ typeof U == "boolean" ? D = U : U && typeof U == "object" && (typeof U.display == "boolean" && (D = U.display), typeof U.disabled == "boolean" && (W = U.disabled));
6114
6114
  } catch {
6115
- $ = O.action.config?.display !== !1, W = O.action.config?.disabled === !0;
6115
+ D = O.action.config?.display !== !1, W = O.action.config?.disabled === !0;
6116
6116
  }
6117
6117
  return {
6118
- display: $,
6118
+ display: D,
6119
6119
  disabled: W
6120
6120
  };
6121
- }, pt = (O, $) => $.disabled ? {
6121
+ }, pt = (O, D) => D.disabled ? {
6122
6122
  ...O,
6123
6123
  config: {
6124
6124
  ...O.config || {},
6125
6125
  disabled: !0
6126
6126
  }
6127
6127
  } : O, ie = (O) => {
6128
- const { Group: $, Text: W } = et.CustomLayout, ee = o.actionsMaxCount, U = O.filter((ye) => ye.config?.display !== !1), ne = U.length > ee, le = ne ? U.slice(0, ee - 1) : U;
6128
+ const { Group: D, Text: W } = et.CustomLayout, ee = o.actionsMaxCount, U = O.filter((ye) => ye.config?.display !== !1), ne = U.length > ee, le = ne ? U.slice(0, ee - 1) : U;
6129
6129
  let ve = 0;
6130
6130
  if (le.forEach((ye, ue) => {
6131
6131
  const je = Pn(ye.config?.label || ye.label || "") || 0;
@@ -6157,7 +6157,7 @@ var Zp = /* @__PURE__ */ xe({
6157
6157
  action: pt(We, { disabled: ht.disabled }),
6158
6158
  display: ht.display
6159
6159
  };
6160
- }).filter((We) => We.display).map((We) => We.action), Oe = o.actionsMaxCount, Ve = Je.length > Oe, nt = Ve ? Je.slice(0, Oe - 1) : Je, gt = Ve ? Je.slice(Oe - 1) : [], Ct = new $({
6160
+ }).filter((We) => We.display).map((We) => We.action), Oe = o.actionsMaxCount, Ve = Je.length > Oe, nt = Ve ? Je.slice(0, Oe - 1) : Je, gt = Ve ? Je.slice(Oe - 1) : [], Ct = new D({
6161
6161
  height: 40,
6162
6162
  display: "flex",
6163
6163
  flexDirection: "row",
@@ -6215,7 +6215,7 @@ var Zp = /* @__PURE__ */ xe({
6215
6215
  };
6216
6216
  }
6217
6217
  };
6218
- }, Se = (O, $) => {
6218
+ }, Se = (O, D) => {
6219
6219
  const { dataValue: W, table: ee, col: U, row: ne, value: le } = O, ve = O.rect ?? ee?.getCellRect?.(U, ne) ?? {
6220
6220
  width: 0,
6221
6221
  height: 0
@@ -6237,8 +6237,8 @@ var Zp = /* @__PURE__ */ xe({
6237
6237
  }],
6238
6238
  expectedHeight: jn
6239
6239
  };
6240
- }, ze = (O, $) => {
6241
- const { dataValue: W, rect: ee, table: U, col: ne, row: le } = O, ve = U?.options?.columns || [], fe = U?.getBodyField?.(ne, le), ye = fe ? yt(ve, fe) : null, ue = $ || ye?._compConfig || {};
6240
+ }, ze = (O, D) => {
6241
+ const { dataValue: W, rect: ee, table: U, col: ne, row: le } = O, ve = U?.options?.columns || [], fe = U?.getBodyField?.(ne, le), ye = fe ? yt(ve, fe) : null, ue = D || ye?._compConfig || {};
6242
6242
  let je = "mdi:toggle-switch", Pe = "#165dff";
6243
6243
  (Object.prototype.hasOwnProperty.call(ue, "inactiveValue") && ue.inactiveValue !== void 0 ? String(W) === String(ue.inactiveValue) : !W) && (je = "mdi:toggle-switch-off", Pe = "#e5e6eb");
6244
6244
  const Me = Da(je), ot = Me?.body?.replace(/currentColor/g, Pe), Je = [], Oe = 8, Ve = 40;
@@ -6254,7 +6254,7 @@ var Zp = /* @__PURE__ */ xe({
6254
6254
  elements: Je,
6255
6255
  expectedHeight: jn
6256
6256
  };
6257
- }, kt = (O, $) => {
6257
+ }, kt = (O, D) => {
6258
6258
  const { dataValue: W, rect: ee } = O, U = Number(W) || 0, ne = 5, le = 20, ve = 4, fe = 8, ye = (ee.height - le) / 2, ue = [], je = Da("mdi:star"), Pe = Da("mdi:star-half-full"), Me = Da("mdi:star-outline"), ot = "#f7ba2a", Je = "#e5e6eb";
6259
6259
  for (let Oe = 0; Oe < ne; Oe++) {
6260
6260
  const Ve = fe + Oe * (le + ve), nt = ye;
@@ -6294,8 +6294,8 @@ var Zp = /* @__PURE__ */ xe({
6294
6294
  elements: ue,
6295
6295
  expectedHeight: jn
6296
6296
  };
6297
- }, Y = (O, $) => {
6298
- const { dataValue: W, rect: ee, table: U, col: ne, row: le } = O, ve = U.getBodyField(ne, le), fe = yt(U.options?.columns || [], ve), ye = U.getCellOriginRecord?.(ne, le) || U.getRecordByCell?.(ne, le) || {}, ue = $ || Cn({
6297
+ }, Y = (O, D) => {
6298
+ const { dataValue: W, rect: ee, table: U, col: ne, row: le } = O, ve = U.getBodyField(ne, le), fe = yt(U.options?.columns || [], ve), ye = U.getCellOriginRecord?.(ne, le) || U.getRecordByCell?.(ne, le) || {}, ue = D || Cn({
6299
6299
  config: fe?._compConfig,
6300
6300
  getCompConfig: fe?._getCompConfig,
6301
6301
  formData: r || {},
@@ -6340,24 +6340,24 @@ var Zp = /* @__PURE__ */ xe({
6340
6340
  elements: xn,
6341
6341
  expectedHeight: jn
6342
6342
  };
6343
- }, de = (O) => String(O).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"), Ee = (O, $) => {
6343
+ }, de = (O) => String(O).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"), Ee = (O, D) => {
6344
6344
  if (!O) return "";
6345
- if ((Pn(O) || 0) <= $) return O;
6345
+ if ((Pn(O) || 0) <= D) return O;
6346
6346
  const W = "...", ee = Pn(W) || 0;
6347
- if (ee >= $) return "";
6347
+ if (ee >= D) return "";
6348
6348
  let U = 0, ne = O.length;
6349
6349
  for (; U < ne; ) {
6350
6350
  const le = Math.ceil((U + ne) / 2);
6351
- (Pn(O.slice(0, le)) || 0) + ee <= $ ? U = le : ne = le - 1;
6351
+ (Pn(O.slice(0, le)) || 0) + ee <= D ? U = le : ne = le - 1;
6352
6352
  }
6353
6353
  return O.slice(0, U) + W;
6354
- }, Be = (O, $) => {
6354
+ }, Be = (O, D) => {
6355
6355
  const { value: W, rect: ee, table: U, col: ne, row: le } = O;
6356
6356
  if (!W) return {
6357
6357
  elements: [],
6358
6358
  expectedHeight: jn
6359
6359
  };
6360
- const ve = U.getBodyField(ne, le), fe = yt(U.options?.columns || [], ve), ye = U.getCellOriginRecord?.(ne, le) || U.getRecordByCell?.(ne, le) || {}, ue = $ || Cn({
6360
+ const ve = U.getBodyField(ne, le), fe = yt(U.options?.columns || [], ve), ye = U.getCellOriginRecord?.(ne, le) || U.getRecordByCell?.(ne, le) || {}, ue = D || Cn({
6361
6361
  config: fe?._compConfig,
6362
6362
  getCompConfig: fe?._getCompConfig,
6363
6363
  formData: r || {},
@@ -6398,8 +6398,8 @@ var Zp = /* @__PURE__ */ xe({
6398
6398
  }],
6399
6399
  expectedHeight: Math.max(jn, je)
6400
6400
  };
6401
- }, Ne = (O, $) => {
6402
- const { dataValue: W, rect: ee, table: U, col: ne, row: le, value: ve } = O, fe = U.getBodyField(ne, le), ye = yt(U.options?.columns || [], fe), ue = U.getCellOriginRecord?.(ne, le) || U.getRecordByCell?.(ne, le) || {}, je = $ || Cn({
6401
+ }, Ne = (O, D) => {
6402
+ const { dataValue: W, rect: ee, table: U, col: ne, row: le, value: ve } = O, fe = U.getBodyField(ne, le), ye = yt(U.options?.columns || [], fe), ue = U.getCellOriginRecord?.(ne, le) || U.getRecordByCell?.(ne, le) || {}, je = D || Cn({
6403
6403
  config: ye?._compConfig,
6404
6404
  getCompConfig: ye?._getCompConfig,
6405
6405
  formData: r || {},
@@ -6480,9 +6480,9 @@ var Zp = /* @__PURE__ */ xe({
6480
6480
  }, He = (O) => {
6481
6481
  if (!O) return "#1d2129";
6482
6482
  O = O.replace("#", ""), O.length === 3 && (O = O.split("").map((U) => U + U).join(""));
6483
- const $ = parseInt(O.substring(0, 2), 16), W = parseInt(O.substring(2, 4), 16), ee = parseInt(O.substring(4, 6), 16);
6484
- if (($ * 299 + W * 587 + ee * 114) / 1e3 >= 128) {
6485
- const U = $ / 255, ne = W / 255, le = ee / 255, ve = Math.max(U, ne, le), fe = Math.min(U, ne, le);
6483
+ const D = parseInt(O.substring(0, 2), 16), W = parseInt(O.substring(2, 4), 16), ee = parseInt(O.substring(4, 6), 16);
6484
+ if ((D * 299 + W * 587 + ee * 114) / 1e3 >= 128) {
6485
+ const U = D / 255, ne = W / 255, le = ee / 255, ve = Math.max(U, ne, le), fe = Math.min(U, ne, le);
6486
6486
  let ye = 0, ue = 0;
6487
6487
  const je = (ve + fe) / 2;
6488
6488
  if (ve !== fe) {
@@ -6512,7 +6512,7 @@ var Zp = /* @__PURE__ */ xe({
6512
6512
  }
6513
6513
  return "#ffffff";
6514
6514
  }, $e = (O) => {
6515
- const { table: $, row: W, col: ee, rect: U, value: ne } = O, { Group: le, Text: ve } = et.CustomLayout, fe = $.getBodyField(ee, W), ye = yt($.options?.columns || [], fe), ue = ye?._compConfig || {}, je = new le({
6515
+ const { table: D, row: W, col: ee, rect: U, value: ne } = O, { Group: le, Text: ve } = et.CustomLayout, fe = D.getBodyField(ee, W), ye = yt(D.options?.columns || [], fe), ue = ye?._compConfig || {}, je = new le({
6516
6516
  height: U.height,
6517
6517
  width: U.width,
6518
6518
  display: "flex",
@@ -6532,7 +6532,7 @@ var Zp = /* @__PURE__ */ xe({
6532
6532
  });
6533
6533
  return Me.addEventListener("click", () => {
6534
6534
  if (ue.click) {
6535
- const ot = $.getCellOriginRecord(ee, W);
6535
+ const ot = D.getCellOriginRecord(ee, W);
6536
6536
  ue.click({
6537
6537
  row: ot,
6538
6538
  column: ye,
@@ -6540,15 +6540,15 @@ var Zp = /* @__PURE__ */ xe({
6540
6540
  });
6541
6541
  }
6542
6542
  }), Me.addEventListener("mouseenter", (ot) => {
6543
- ot.target.setAttribute("fill", me(Pe, -20)), $.scenegraph.stage.renderNextFrame();
6543
+ ot.target.setAttribute("fill", me(Pe, -20)), D.scenegraph.stage.renderNextFrame();
6544
6544
  }), Me.addEventListener("mouseleave", (ot) => {
6545
- ot.target.setAttribute("fill", Pe), $.scenegraph.stage.renderNextFrame();
6545
+ ot.target.setAttribute("fill", Pe), D.scenegraph.stage.renderNextFrame();
6546
6546
  }), je.add(Me), {
6547
6547
  rootContainer: je,
6548
6548
  renderDefault: !1
6549
6549
  };
6550
- }, ut = (O, $) => $ ? "#c9cdd4" : O === "danger" ? "#f53f3f" : O === "warning" ? "#ff7d00" : O === "success" ? "#00b42a" : "#165dff", Wt = (O) => {
6551
- const { table: $, row: W, col: ee, rect: U } = O, { Group: ne, Text: le } = et.CustomLayout, ve = $.getBodyField(ee, W), fe = yt($.options?.columns || [], ve), ye = $.getCellOriginRecord?.(ee, W) || $.getRecordByCell?.(ee, W) || {}, ue = Cn({
6550
+ }, ut = (O, D) => D ? "#c9cdd4" : O === "danger" ? "#f53f3f" : O === "warning" ? "#ff7d00" : O === "success" ? "#00b42a" : "#165dff", Wt = (O) => {
6551
+ const { table: D, row: W, col: ee, rect: U } = O, { Group: ne, Text: le } = et.CustomLayout, ve = D.getBodyField(ee, W), fe = yt(D.options?.columns || [], ve), ye = D.getCellOriginRecord?.(ee, W) || D.getRecordByCell?.(ee, W) || {}, ue = Cn({
6552
6552
  config: fe?._compConfig,
6553
6553
  getCompConfig: fe?._getCompConfig,
6554
6554
  formData: r || {},
@@ -6589,22 +6589,22 @@ var Zp = /* @__PURE__ */ xe({
6589
6589
  }
6590
6590
  });
6591
6591
  }), Oe.addEventListener("mouseenter", (Ve) => {
6592
- Me || (Ve.target.setAttribute("fill", me(ot, -20)), $.scenegraph.stage.renderNextFrame());
6592
+ Me || (Ve.target.setAttribute("fill", me(ot, -20)), D.scenegraph.stage.renderNextFrame());
6593
6593
  }), Oe.addEventListener("mouseleave", (Ve) => {
6594
- Me || (Ve.target.setAttribute("fill", ot), $.scenegraph.stage.renderNextFrame());
6594
+ Me || (Ve.target.setAttribute("fill", ot), D.scenegraph.stage.renderNextFrame());
6595
6595
  }), Je.add(Oe), {
6596
6596
  rootContainer: Je,
6597
6597
  renderDefault: !1
6598
6598
  };
6599
6599
  }, sn = (O) => {
6600
- const { table: $, row: W, col: ee, rect: U } = O, { height: ne, width: le } = U ?? $.getCellRect(ee, W), { Group: ve, CheckBox: fe } = et.CustomLayout, ye = $.getBodyField(ee, W), ue = yt($.options?.columns || [], ye), je = $.getCellOriginRecord(ee, W) || {}, Pe = ue?.style?.textAlign === "right" ? "flex-end" : ue?.style?.textAlign === "center" ? "center" : "flex-start", Me = ue?.style?.textAlign === "right" ? "flex-end" : ue?.style?.textAlign === "center" ? "center" : "flex-start", ot = (Ct, We) => {
6600
+ const { table: D, row: W, col: ee, rect: U } = O, { height: ne, width: le } = U ?? D.getCellRect(ee, W), { Group: ve, CheckBox: fe } = et.CustomLayout, ye = D.getBodyField(ee, W), ue = yt(D.options?.columns || [], ye), je = D.getCellOriginRecord(ee, W) || {}, Pe = ue?.style?.textAlign === "right" ? "flex-end" : ue?.style?.textAlign === "center" ? "center" : "flex-start", Me = ue?.style?.textAlign === "right" ? "flex-end" : ue?.style?.textAlign === "center" ? "center" : "flex-start", ot = (Ct, We) => {
6601
6601
  const ht = je?.[ye];
6602
6602
  je[ye] = (Array.isArray(ht) ? ht : []).map((Ge, jt) => jt !== Ct ? Ge : Ge && typeof Ge == "object" ? {
6603
6603
  ...Ge,
6604
6604
  ...We
6605
6605
  } : { ...We });
6606
6606
  }, Je = () => {
6607
- $.renderWithRecreateCells();
6607
+ D.renderWithRecreateCells();
6608
6608
  }, Oe = new ve({
6609
6609
  width: le,
6610
6610
  height: Math.max(ne || 0, 40),
@@ -6659,28 +6659,28 @@ var Zp = /* @__PURE__ */ xe({
6659
6659
  renderDefault: !1
6660
6660
  };
6661
6661
  }, Zt = (O) => {
6662
- const { table: $, row: W, col: ee } = O, U = $.getBodyField(ee, W), ne = yt($.options?.columns || [], U), le = ne?._compConfig || {};
6662
+ const { table: D, row: W, col: ee } = O, U = D.getBodyField(ee, W), ne = yt(D.options?.columns || [], U), le = ne?._compConfig || {};
6663
6663
  if (ne?._customLayout) return ne._customLayout({
6664
6664
  ...O,
6665
6665
  config: le,
6666
6666
  customLayout: et.CustomLayout
6667
6667
  });
6668
- }, yt = (O, $) => {
6668
+ }, yt = (O, D) => {
6669
6669
  for (const W of O) {
6670
- if (W.field === $) return W;
6670
+ if (W.field === D) return W;
6671
6671
  if (W.columns) {
6672
- const ee = yt(W.columns, $);
6672
+ const ee = yt(W.columns, D);
6673
6673
  if (ee) return ee;
6674
6674
  }
6675
6675
  }
6676
6676
  return null;
6677
6677
  }, an = (O) => {
6678
- const { table: $, col: W, row: ee } = O, U = $.getBodyField(W, ee), ne = yt($.options?.columns || [], U);
6678
+ const { table: D, col: W, row: ee } = O, U = D.getBodyField(W, ee), ne = yt(D.options?.columns || [], U);
6679
6679
  if (!ne) return {
6680
6680
  elements: [],
6681
6681
  expectedHeight: jn
6682
6682
  };
6683
- const le = $.getCellOriginRecord?.(W, ee) || $.getRecordByCell?.(W, ee) || {}, ve = Cn({
6683
+ const le = D.getCellOriginRecord?.(W, ee) || D.getRecordByCell?.(W, ee) || {}, ve = Cn({
6684
6684
  config: ne._compConfig,
6685
6685
  getCompConfig: ne._getCompConfig,
6686
6686
  formData: r || {},
@@ -6708,9 +6708,9 @@ var Zp = /* @__PURE__ */ xe({
6708
6708
  elements: [],
6709
6709
  expectedHeight: jn
6710
6710
  };
6711
- }, Mt = (O, $, W, ee) => {
6712
- const U = ee.getBodyField($, W), ne = yt(ee.options?.columns || [], U);
6713
- if (ne._fieldFormat) return ne._fieldFormat(O, $, W, ee);
6711
+ }, Mt = (O, D, W, ee) => {
6712
+ const U = ee.getBodyField(D, W), ne = yt(ee.options?.columns || [], U);
6713
+ if (ne._fieldFormat) return ne._fieldFormat(O, D, W, ee);
6714
6714
  if (ne._compType === "dateTime") {
6715
6715
  const fe = ne._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
6716
6716
  return ll(O[U], fe);
@@ -6732,13 +6732,13 @@ var Zp = /* @__PURE__ */ xe({
6732
6732
  }, zt = () => {
6733
6733
  if (!f?.value) return !1;
6734
6734
  const O = Object.keys(g);
6735
- return O.length === 0 ? !1 : O.every(($) => f.value?.[$] === 9);
6735
+ return O.length === 0 ? !1 : O.every((D) => f.value?.[D] === 9);
6736
6736
  };
6737
6737
  rt(() => zt(), (O) => {
6738
6738
  O && m && m.renderWithRecreateCells();
6739
6739
  });
6740
6740
  const Rt = (O) => {
6741
- const $ = new Set(o.columnFilter || []), W = (U, ne, le) => !(U.config?.display === !1 || $.has(U.id)), ee = (U, ne, le = 0) => {
6741
+ const D = new Set(o.columnFilter || []), W = (U, ne, le) => !(U.config?.display === !1 || D.has(U.id)), ee = (U, ne, le = 0) => {
6742
6742
  const ve = [];
6743
6743
  return U.forEach((fe) => {
6744
6744
  if (!W(fe, ne, le)) return;
@@ -6768,17 +6768,17 @@ var Zp = /* @__PURE__ */ xe({
6768
6768
  }), o.isTree && ve.length > 0 && (ve[0].tree = !0), ve;
6769
6769
  };
6770
6770
  return ee(O);
6771
- }, Et = (O) => String(O || "").split(",").map(($) => $.trim()).filter(Boolean), yn = (O, $, W) => ({
6772
- field: O._i || `__merge_header_${$}__`,
6771
+ }, Et = (O) => String(O || "").split(",").map((D) => D.trim()).filter(Boolean), yn = (O, D, W) => ({
6772
+ field: O._i || `__merge_header_${D}__`,
6773
6773
  title: O.label || "",
6774
6774
  ...O.align ? { headerStyle: { textAlign: O.align } } : {},
6775
6775
  columns: W,
6776
6776
  _getCompConfig: void 0,
6777
6777
  _getCompType: void 0
6778
- }), G = (O, $ = []) => {
6779
- if (!Array.isArray($) || $.length === 0) return O;
6778
+ }), G = (O, D = []) => {
6779
+ if (!Array.isArray(D) || D.length === 0) return O;
6780
6780
  const W = [...O];
6781
- return $.forEach((ee, U) => {
6781
+ return D.forEach((ee, U) => {
6782
6782
  const ne = Et(ee.value);
6783
6783
  if (ne.length === 0) return;
6784
6784
  const le = /* @__PURE__ */ new Set(), ve = [];
@@ -6794,20 +6794,20 @@ var Zp = /* @__PURE__ */ xe({
6794
6794
  const ye = yn(ee, U, ve);
6795
6795
  W.splice(Math.min(fe, W.length), 0, ye);
6796
6796
  }), W;
6797
- }, me = (O, $) => {
6798
- const W = O.replace("#", ""), ee = parseInt(W, 16), U = Math.min(255, Math.max(0, (ee >> 16) + $)), ne = Math.min(255, Math.max(0, (ee >> 8 & 255) + $)), le = Math.min(255, Math.max(0, (ee & 255) + $));
6797
+ }, me = (O, D) => {
6798
+ const W = O.replace("#", ""), ee = parseInt(W, 16), U = Math.min(255, Math.max(0, (ee >> 16) + D)), ne = Math.min(255, Math.max(0, (ee >> 8 & 255) + D)), le = Math.min(255, Math.max(0, (ee & 255) + D));
6799
6799
  return `#${(U << 16 | ne << 8 | le).toString(16).padStart(6, "0")}`;
6800
6800
  }, re = () => {
6801
6801
  let O = M;
6802
6802
  o.isPage && (O = Ie.value + M);
6803
- let $ = Pn(String(O)) || 0;
6804
- return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
6803
+ let D = Pn(String(O)) || 0;
6804
+ return o.subColumns && o.subColumns.length > 0 && (D = D + 32), Math.max(45, D + 18);
6805
6805
  }, se = (O) => {
6806
- let $ = (W, ee, U, ne) => {
6806
+ let D = (W, ee, U, ne) => {
6807
6807
  const le = ne.getRecordIndexByCell(ee, U);
6808
6808
  return o.isPage && !O ? Ie.value + le + 1 : le + 1;
6809
6809
  };
6810
- return O && ($ = (W, ee, U, ne) => ne.getRecordIndexByCell(ee, U) + 1), {
6810
+ return O && (D = (W, ee, U, ne) => ne.getRecordIndexByCell(ee, U) + 1), {
6811
6811
  field: "__sequence__",
6812
6812
  title: "序号",
6813
6813
  width: T,
@@ -6816,7 +6816,7 @@ var Zp = /* @__PURE__ */ xe({
6816
6816
  disableColumnResize: !0,
6817
6817
  headerStyle: { textAlign: "center" },
6818
6818
  style: { textAlign: "center" },
6819
- fieldFormat: $,
6819
+ fieldFormat: D,
6820
6820
  _getCompConfig: void 0,
6821
6821
  _getCompType: void 0
6822
6822
  };
@@ -6840,9 +6840,9 @@ var Zp = /* @__PURE__ */ xe({
6840
6840
  field: "_checkState",
6841
6841
  cellType: "checkbox",
6842
6842
  headerType: "checkbox",
6843
- disable: ({ col: $, row: W, table: ee }) => {
6843
+ disable: ({ col: D, row: W, table: ee }) => {
6844
6844
  if (W === 0) return !1;
6845
- const U = ee?.getCellOriginRecord?.($, W);
6845
+ const U = ee?.getCellOriginRecord?.(D, W);
6846
6846
  return on(U);
6847
6847
  },
6848
6848
  headerStyle: { textAlign: "center" },
@@ -6860,19 +6860,19 @@ var Zp = /* @__PURE__ */ xe({
6860
6860
  _getCompType: void 0
6861
6861
  }), dt = (O) => {
6862
6862
  if (O.frozen) return O.frozen;
6863
- if (O.columns) for (const $ of O.columns) {
6864
- const W = dt($);
6863
+ if (O.columns) for (const D of O.columns) {
6864
+ const W = dt(D);
6865
6865
  if (W) return W;
6866
6866
  }
6867
6867
  }, Dt = (O) => {
6868
- const $ = [];
6868
+ const D = [];
6869
6869
  return O.forEach((W) => {
6870
6870
  if (W.frozen) {
6871
- $.push(W);
6871
+ D.push(W);
6872
6872
  return;
6873
6873
  }
6874
6874
  if (!W.columns || W.columns.length === 0) {
6875
- $.push(W);
6875
+ D.push(W);
6876
6876
  return;
6877
6877
  }
6878
6878
  const ee = Dt(W.columns), U = [], ne = [], le = [];
@@ -6880,32 +6880,32 @@ var Zp = /* @__PURE__ */ xe({
6880
6880
  const fe = dt(ve);
6881
6881
  fe === "left" ? U.push(ve) : fe === "right" ? ne.push(ve) : le.push(ve);
6882
6882
  }), (U.length > 0 ? 1 : 0) + (ne.length > 0 ? 1 : 0) + (le.length > 0 ? 1 : 0) <= 1) {
6883
- W.columns = ee, $.push(W);
6883
+ W.columns = ee, D.push(W);
6884
6884
  return;
6885
6885
  }
6886
- U.length && $.push({
6886
+ U.length && D.push({
6887
6887
  ...W,
6888
6888
  columns: U
6889
- }), le.length && $.push({
6889
+ }), le.length && D.push({
6890
6890
  ...W,
6891
6891
  columns: le
6892
- }), ne.length && $.push({
6892
+ }), ne.length && D.push({
6893
6893
  ...W,
6894
6894
  columns: ne
6895
6895
  });
6896
- }), $;
6896
+ }), D;
6897
6897
  }, _t = (O) => {
6898
- let $ = 0, W = 0;
6898
+ let D = 0, W = 0;
6899
6899
  return O.forEach((ee) => {
6900
6900
  if (ee.columns && ee.columns.length > 0) {
6901
6901
  const U = _t(ee.columns);
6902
- $ += U.left, W += U.right;
6903
- } else ee.frozen === "left" ? $++ : ee.frozen === "right" && W++;
6902
+ D += U.left, W += U.right;
6903
+ } else ee.frozen === "left" ? D++ : ee.frozen === "right" && W++;
6904
6904
  }), {
6905
- left: $,
6905
+ left: D,
6906
6906
  right: W
6907
6907
  };
6908
- }, Kn = (O, $, W, ee) => {
6908
+ }, Kn = (O, D, W, ee) => {
6909
6909
  v = 0, _ = 0, S = !1;
6910
6910
  const U = {};
6911
6911
  let ne = Rt(O);
@@ -6920,7 +6920,7 @@ var Zp = /* @__PURE__ */ xe({
6920
6920
  ...le,
6921
6921
  ...fe,
6922
6922
  ...ve
6923
- ], $ && (ne.unshift(se(ee)), _++), W.length > 0 && (ne.push(ie(W)), v++), S && (U.editCellTrigger = "click", U.keyboardOptions = {
6923
+ ], D && (ne.unshift(se(ee)), _++), W.length > 0 && (ne.push(ie(W)), v++), S && (U.editCellTrigger = "click", U.keyboardOptions = {
6924
6924
  copySelected: !0,
6925
6925
  cutSelected: !0,
6926
6926
  pasteValueToCell: !0,
@@ -6938,7 +6938,7 @@ var Zp = /* @__PURE__ */ xe({
6938
6938
  }, Jn = () => {
6939
6939
  const O = Kn(o.columns, o.isShowNumber && !o.isTree, o.actions);
6940
6940
  (Qt.value || o.rowDrag) && _++;
6941
- const $ = {
6941
+ const D = {
6942
6942
  records: [],
6943
6943
  columns: O.columns,
6944
6944
  autoFillWidth: !0,
@@ -6951,12 +6951,12 @@ var Zp = /* @__PURE__ */ xe({
6951
6951
  select: { highlightMode: o.highlightMode },
6952
6952
  ...O.option
6953
6953
  };
6954
- return o.isTree && o.defaultExpandAll && !o.loadChildren && ($.hierarchyExpandLevel = Number.POSITIVE_INFINITY), o.emptyTipText && !(o.isRowFixed && o.rowNum > 0) && ($.emptyTip = { text: o.emptyTipText }), o.isAnimationAppear && ($.animationAppear = {
6954
+ return o.isTree && o.defaultExpandAll && !o.loadChildren && (D.hierarchyExpandLevel = Number.POSITIVE_INFINITY), o.emptyTipText && !(o.isRowFixed && o.rowNum > 0) && (D.emptyTip = { text: o.emptyTipText }), o.isAnimationAppear && (D.animationAppear = {
6955
6955
  duration: 100,
6956
6956
  delay: 0,
6957
6957
  type: "one-by-one",
6958
6958
  direction: "row"
6959
- }), Qt.value ? $.rowSeriesNumber = Le() : o.rowDrag && ($.rowSeriesNumber = Ce()), $.theme = wi, o.heightMode === "auto" && ($.theme = {
6959
+ }), Qt.value ? D.rowSeriesNumber = Le() : o.rowDrag && (D.rowSeriesNumber = Ce()), D.theme = wi, o.heightMode === "auto" && (D.theme = {
6960
6960
  ...wi,
6961
6961
  scrollStyle: {
6962
6962
  ...wi.scrollStyle,
@@ -6976,12 +6976,12 @@ var Zp = /* @__PURE__ */ xe({
6976
6976
  },
6977
6977
  theme: wi,
6978
6978
  ...O.option
6979
- } }), $.plugins = [C]), o.customMergeCell && ($.customMergeCell = o.customMergeCell), $;
6980
- }, Gn = (O) => !o.isTree || !o.parentKey || O.some(($) => Array.isArray($?.children) && $.children.length > 0) ? O : Qf(O, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), Ra = (O) => {
6979
+ } }), D.plugins = [C]), o.customMergeCell && (D.customMergeCell = o.customMergeCell), D;
6980
+ }, Gn = (O) => !o.isTree || !o.parentKey || O.some((D) => Array.isArray(D?.children) && D.children.length > 0) ? O : Qf(O, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), Ra = (O) => {
6981
6981
  if (!y.value) return;
6982
6982
  b(), T = re(), Xp();
6983
- const $ = Jn(), W = oo();
6984
- console.log("props.modelValue changed4 recordsOverride", W, O), O && O.length >= 0 ? $.records = Gn(L(O)) : W.length > 0 ? $.records = Gn(L(W)) : ($.records = Gn(L(o.records)), i("update:modelValue", $.records)), m = new et.ListTable(y.value, $), m._getAppContext = () => a?.appContext;
6983
+ const D = Jn(), W = oo();
6984
+ console.log("props.modelValue changed4 recordsOverride", W, O), O && O.length >= 0 ? D.records = Gn(L(O)) : W.length > 0 ? D.records = Gn(L(W)) : (D.records = Gn(L(o.records)), i("update:modelValue", D.records)), m = new et.ListTable(y.value, D), m._getAppContext = () => a?.appContext;
6985
6985
  const ee = a?.provides;
6986
6986
  m._getProvides = () => ee, o.loadChildren && m.on(et.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (U) => {
6987
6987
  if (U.hierarchyState === et.TYPES.HierarchyState.expand && U.originData?.children === !0) {
@@ -7029,14 +7029,14 @@ var Zp = /* @__PURE__ */ xe({
7029
7029
  m && (m.release(), m = null);
7030
7030
  }, ao = (O) => {
7031
7031
  if (!m) return;
7032
- const { source: $, target: W } = O || {};
7033
- if ($ && W && $.col === W.col && $.row === W.row) return;
7034
- const ee = qt(m.records || []), U = $ && typeof m.getRecordByCell == "function" ? m.getRecordByCell($.col, $.row) : null, ne = W && typeof m.getRecordByCell == "function" ? m.getRecordByCell(W.col, W.row) : null;
7032
+ const { source: D, target: W } = O || {};
7033
+ if (D && W && D.col === W.col && D.row === W.row) return;
7034
+ const ee = qt(m.records || []), U = D && typeof m.getRecordByCell == "function" ? m.getRecordByCell(D.col, D.row) : null, ne = W && typeof m.getRecordByCell == "function" ? m.getRecordByCell(W.col, W.row) : null;
7035
7035
  i("update:modelValue", ee), i("change", {
7036
7036
  id: o.id,
7037
7037
  value: qt(ne || U || ee),
7038
7038
  data: {
7039
- source: $,
7039
+ source: D,
7040
7040
  target: W,
7041
7041
  sourceRecord: U ? qt(U) : null,
7042
7042
  targetRecord: ne ? qt(ne) : null
@@ -7047,14 +7047,14 @@ var Zp = /* @__PURE__ */ xe({
7047
7047
  });
7048
7048
  }, Ao = () => m, Ta = (O) => {
7049
7049
  if (b(), R.value = 0, m) {
7050
- console.log("props.modelValue changed3", O), m.setScrollTop(0), M = O.length;
7051
- const $ = Gn(L(O));
7052
- if (o.subColumns && o.subColumns.length > 0) setTimeout(() => {
7053
- Ea(), Ra($);
7050
+ console.log("props.modelValue changed3", O), m.setScrollTop(0);
7051
+ const D = Gn(L(O));
7052
+ if (M = D.length, console.log("props.modelValue changed5", D), o.subColumns && o.subColumns.length > 0) setTimeout(() => {
7053
+ Ea(), Ra(D);
7054
7054
  });
7055
7055
  else {
7056
7056
  const W = re();
7057
- W !== T ? (T = W, o.subColumns && o.subColumns.length > 0 ? (Ea(), Ra($)) : _n($)) : m.setRecords($);
7057
+ W !== T ? (T = W, o.subColumns && o.subColumns.length > 0 ? (Ea(), Ra(D)) : _n(D)) : (console.log("props.modelValue changed6", D), m.setRecords(D));
7058
7058
  }
7059
7059
  if (o.selectStateKey && o.isMultiple) {
7060
7060
  const W = O.filter((ee) => ee[o.selectStateKey] && !on(ee));
@@ -7080,16 +7080,16 @@ var Zp = /* @__PURE__ */ xe({
7080
7080
  set(O) {
7081
7081
  i("update:tablePage", O);
7082
7082
  }
7083
- }), pe = D(0), Fe = H({
7083
+ }), pe = $(0), Fe = H({
7084
7084
  get() {
7085
7085
  return pe.value !== 0 ? pe.value : o.pageSize;
7086
7086
  },
7087
7087
  set(O) {
7088
7088
  pe.value = O, i("update:pageSize", O);
7089
7089
  }
7090
- }), Ie = H(() => (he.value - 1) * Fe.value), ge = (O, $) => {
7090
+ }), Ie = H(() => (he.value - 1) * Fe.value), ge = (O, D) => {
7091
7091
  i("loadPageData", {
7092
- rows: $,
7092
+ rows: D,
7093
7093
  page: O
7094
7094
  });
7095
7095
  }, ft = () => {
@@ -7097,18 +7097,18 @@ var Zp = /* @__PURE__ */ xe({
7097
7097
  if (!Qt.value) {
7098
7098
  const O = m.getSelectedCellInfos();
7099
7099
  if (O && O.length > 0) {
7100
- const $ = O[0][0];
7101
- return $?.originData ? [$.originData] : [];
7100
+ const D = O[0][0];
7101
+ return D?.originData ? [D.originData] : [];
7102
7102
  }
7103
7103
  return [];
7104
7104
  }
7105
7105
  if (m.stateManager && m.stateManager.checkedState) {
7106
- const O = [], $ = /* @__PURE__ */ new Set(), W = (ve) => {
7106
+ const O = [], D = /* @__PURE__ */ new Set(), W = (ve) => {
7107
7107
  if (!ve || on(ve)) return;
7108
7108
  const fe = Ut(ve);
7109
7109
  if (fe) {
7110
- if ($.has(fe)) return;
7111
- $.add(fe);
7110
+ if (D.has(fe)) return;
7111
+ D.add(fe);
7112
7112
  const ye = {};
7113
7113
  ve.__checkState = !0, $i(ye, ve, ["children"]), O.push(ye);
7114
7114
  } else console.warn("key is empty");
@@ -7130,15 +7130,15 @@ var Zp = /* @__PURE__ */ xe({
7130
7130
  }), O;
7131
7131
  }
7132
7132
  return [];
7133
- }, Ut = (O) => o.editConfig.isRemoveBtn ? O._i : o.rowKey ? o.rowKey.split(",").map(($) => O[$.trim()]).join("::") : "", Gt = (O) => {
7133
+ }, Ut = (O) => o.editConfig.isRemoveBtn ? O._i : o.rowKey ? o.rowKey.split(",").map((D) => O[D.trim()]).join("::") : "", Gt = (O) => {
7134
7134
  if (m)
7135
7135
  if (Qt.value || m.clearSelected(), o.rowKey) {
7136
- const $ = new Set(O.map(Ut)), W = "__checkState";
7136
+ const D = new Set(O.map(Ut)), W = "__checkState";
7137
7137
  if (!Qt.value) {
7138
7138
  const ve = m.records;
7139
7139
  for (let fe = 0; fe < ve.length; fe++) {
7140
7140
  const ye = ve[fe];
7141
- if (!$.has(Ut(ye))) continue;
7141
+ if (!D.has(Ut(ye))) continue;
7142
7142
  const ue = m.getTableIndexByRecordIndex(fe);
7143
7143
  m.selectRow(ue);
7144
7144
  break;
@@ -7152,13 +7152,13 @@ var Zp = /* @__PURE__ */ xe({
7152
7152
  const ye = fe.children.filter((Pe) => !on(Pe)), ue = ye.filter((Pe) => Pe?.[W] === !0), je = ye.filter((Pe) => Pe?.[W] === !1);
7153
7153
  ye.length === 0 ? fe[W] = !1 : ue.length == ye.length ? fe[W] = !0 : je.length == ye.length ? fe[W] = !1 : fe[W] = "indeterminate", fe[W] === "indeterminate" && (fe.hierarchyState = "expand");
7154
7154
  } else {
7155
- const ye = $.has(Ut(fe));
7155
+ const ye = D.has(Ut(fe));
7156
7156
  fe[W] = !!(!on(fe) && ye);
7157
7157
  }
7158
7158
  });
7159
7159
  }, U = m.records;
7160
7160
  o.isTree ? ee(U) : U.forEach((ve) => {
7161
- ve[W] = !on(ve) && $.has(Ut(ve));
7161
+ ve[W] = !on(ve) && D.has(Ut(ve));
7162
7162
  });
7163
7163
  const ne = Jn();
7164
7164
  ne.records = U, m.updateOption(ne, {
@@ -7173,9 +7173,9 @@ var Zp = /* @__PURE__ */ xe({
7173
7173
  i("rowChange", O), m.renderWithRecreateCells();
7174
7174
  }, _n = (O) => {
7175
7175
  if (!m) return;
7176
- const $ = ft();
7177
- if ($.length > 0) {
7178
- Gt($);
7176
+ const D = ft();
7177
+ if (D.length > 0) {
7178
+ Gt(D);
7179
7179
  return;
7180
7180
  }
7181
7181
  const W = Jn();
@@ -7189,13 +7189,13 @@ var Zp = /* @__PURE__ */ xe({
7189
7189
  if (!Qt.value || !O || !o.multipleDisabled) return !1;
7190
7190
  try {
7191
7191
  return o.multipleDisabled(O) === !0;
7192
- } catch ($) {
7193
- return console.error("multipleDisabled execution failed:", $), !1;
7192
+ } catch (D) {
7193
+ return console.error("multipleDisabled execution failed:", D), !1;
7194
7194
  }
7195
7195
  }, oo = () => {
7196
7196
  const O = o.modelValue || [];
7197
- return O.forEach(($) => {
7198
- $._i || ($._i = kn());
7197
+ return O.forEach((D) => {
7198
+ D._i || (D._i = kn());
7199
7199
  }), O;
7200
7200
  };
7201
7201
  rt(() => o.modelValue, () => {
@@ -7204,18 +7204,18 @@ var Zp = /* @__PURE__ */ xe({
7204
7204
  console.log("props.modelValue changed2", O), Ta(O);
7205
7205
  });
7206
7206
  const jo = H(() => {
7207
- const O = ($) => {
7207
+ const O = (D) => {
7208
7208
  const W = [];
7209
- return $.forEach((ee) => {
7209
+ return D.forEach((ee) => {
7210
7210
  ee.children && ee.children.length > 0 ? W.push(...O(ee.children)) : W.push(ee);
7211
7211
  }), W;
7212
7212
  };
7213
7213
  return O(o.columns);
7214
7214
  }), Md = () => {
7215
7215
  const O = {};
7216
- O._i = kn(), jo.value.forEach(($) => {
7217
- const W = $.config?.valueRowKey || $.id || "";
7218
- W && (O[W] = qt($.config?.defaultValue));
7216
+ O._i = kn(), jo.value.forEach((D) => {
7217
+ const W = D.config?.valueRowKey || D.id || "";
7218
+ W && (O[W] = qt(D.config?.defaultValue));
7219
7219
  }), m && (m.addRecord(O), o.heightMode === "auto" && _n(), m.scrollToCell({
7220
7220
  col: 0,
7221
7221
  row: m.records.length
@@ -7235,7 +7235,7 @@ var Zp = /* @__PURE__ */ xe({
7235
7235
  cancelButtonText: "取消",
7236
7236
  type: "warning"
7237
7237
  }).then(() => {
7238
- const $ = m.records, W = new Set(O.map((U) => U._i)), ee = $.filter((U) => !W.has(U._i));
7238
+ const D = m.records, W = new Set(O.map((U) => U._i)), ee = D.filter((U) => !W.has(U._i));
7239
7239
  _n(ee), i("update:modelValue", ee), O.forEach((U) => {
7240
7240
  i("change", {
7241
7241
  id: o.id,
@@ -7249,8 +7249,8 @@ var Zp = /* @__PURE__ */ xe({
7249
7249
  }).catch(() => {
7250
7250
  });
7251
7251
  };
7252
- return rt(() => o.columns, (O, $) => {
7253
- JSON.stringify(O) !== JSON.stringify($) && _n();
7252
+ return rt(() => o.columns, (O, D) => {
7253
+ JSON.stringify(O) !== JSON.stringify(D) && _n();
7254
7254
  }), rt(() => [
7255
7255
  o.isTree,
7256
7256
  o.defaultExpandAll,
@@ -7286,7 +7286,7 @@ var Zp = /* @__PURE__ */ xe({
7286
7286
  getSelection: ft,
7287
7287
  setSelection: Gt,
7288
7288
  renderTable: Ma
7289
- }), (O, $) => {
7289
+ }), (O, D) => {
7290
7290
  const W = V("j-button"), ee = V("el-space"), U = V("el-pagination");
7291
7291
  return k(), z("div", {
7292
7292
  class: Ze(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
@@ -7320,13 +7320,13 @@ var Zp = /* @__PURE__ */ xe({
7320
7320
  }, null, 8, ["disabled"])) : ae("", !0)]),
7321
7321
  _: 1
7322
7322
  }),
7323
- $[2] || ($[2] = I("div", null, null, -1)),
7323
+ D[2] || (D[2] = I("div", null, null, -1)),
7324
7324
  e.isPage ? (k(), N(U, {
7325
7325
  key: 0,
7326
7326
  "current-page": he.value,
7327
- "onUpdate:currentPage": $[0] || ($[0] = (ne) => he.value = ne),
7327
+ "onUpdate:currentPage": D[0] || (D[0] = (ne) => he.value = ne),
7328
7328
  "page-size": Fe.value,
7329
- "onUpdate:pageSize": $[1] || ($[1] = (ne) => Fe.value = ne),
7329
+ "onUpdate:pageSize": D[1] || (D[1] = (ne) => Fe.value = ne),
7330
7330
  "page-sizes": e.pageSizes || [
7331
7331
  100,
7332
7332
  200,
@@ -7465,7 +7465,7 @@ var Zp = /* @__PURE__ */ xe({
7465
7465
  "closed"
7466
7466
  ],
7467
7467
  setup(e, { expose: t, emit: n }) {
7468
- const a = e, o = n, { t: i } = St(), r = D(!1), l = D(!1), c = D(""), s = D(!1), d = D(!0), f = D(!1), u = D(!0), h = D(-1), p = Zn({
7468
+ const a = e, o = n, { t: i } = St(), r = $(!1), l = $(!1), c = $(""), s = $(!1), d = $(!0), f = $(!1), u = $(!0), h = $(-1), p = Zn({
7469
7469
  isMove: !1,
7470
7470
  pageX: 0,
7471
7471
  pageY: 0,
@@ -7473,7 +7473,7 @@ var Zp = /* @__PURE__ */ xe({
7473
7473
  top: 0,
7474
7474
  _left: 0,
7475
7475
  _top: 0
7476
- }), g = D(0), b = D(), x = D(48), w = D(0), y = D(0);
7476
+ }), g = $(0), b = $(), x = $(48), w = $(0), y = $(0);
7477
7477
  rt(() => a.visible, (P) => {
7478
7478
  g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Lt(() => {
7479
7479
  typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = Z));
@@ -7768,7 +7768,7 @@ var Zp = /* @__PURE__ */ xe({
7768
7768
  "closed"
7769
7769
  ],
7770
7770
  setup(e, { expose: t, emit: n }) {
7771
- const a = e, o = n, { logoImg: i, t: r } = St(), l = D(!1), c = D(!1), s = D(""), d = D(!1), f = D(!0), u = D(!1), h = D(!0), p = D(-1);
7771
+ const a = e, o = n, { logoImg: i, t: r } = St(), l = $(!1), c = $(!1), s = $(""), d = $(!1), f = $(!0), u = $(!1), h = $(!0), p = $(-1);
7772
7772
  rt(() => a.visible, (T) => {
7773
7773
  l.value = T;
7774
7774
  }, { immediate: !0 });
@@ -8034,7 +8034,7 @@ var Zp = /* @__PURE__ */ xe({
8034
8034
  "cancel"
8035
8035
  ],
8036
8036
  setup(e, { expose: t, emit: n }) {
8037
- const a = e, { t: o } = St(), i = n, r = D(!1), l = D(""), c = H(() => ["ltr", "rtl"].indexOf(a.direction) !== -1 ? `${a.width}px` : `${a.height}px`), s = H({
8037
+ const a = e, { t: o } = St(), i = n, r = $(!1), l = $(""), c = H(() => ["ltr", "rtl"].indexOf(a.direction) !== -1 ? `${a.width}px` : `${a.height}px`), s = H({
8038
8038
  get() {
8039
8039
  return a.visible;
8040
8040
  },
@@ -8055,7 +8055,7 @@ var Zp = /* @__PURE__ */ xe({
8055
8055
  a.beforeClose && a.beforeClose() === !1 || (s.value = !1, i("update:visible", !1), i("cancel"));
8056
8056
  }, g = async (T) => {
8057
8057
  T.click && await T.click();
8058
- }, b = D(!1), x = D(!0), w = D(!1), y = D(!0), m = D(-1), C = H({
8058
+ }, b = $(!1), x = $(!0), w = $(!1), y = $(!0), m = $(-1), C = H({
8059
8059
  get() {
8060
8060
  return m.value !== -1 ? m.value : a.stepActive;
8061
8061
  },
@@ -8259,7 +8259,7 @@ var Zp = /* @__PURE__ */ xe({
8259
8259
  "cancel"
8260
8260
  ],
8261
8261
  setup(e, { expose: t, emit: n }) {
8262
- const a = n, o = D(!1), i = D(""), r = D(), l = D(0), c = D(""), s = D(), d = (x, w, y) => {
8262
+ const a = n, o = $(!1), i = $(""), r = $(), l = $(0), c = $(""), s = $(), d = (x, w, y) => {
8263
8263
  i.value = x, s.value = y, c.value = w || "modal", o.value = !0;
8264
8264
  }, f = () => {
8265
8265
  o.value = !1;
@@ -8430,7 +8430,7 @@ var Zp = /* @__PURE__ */ xe({
8430
8430
  "search"
8431
8431
  ],
8432
8432
  setup(e, { emit: t }) {
8433
- const n = e, a = t, o = D(), i = H(() => Jt(n.modelValue) ? [] : n.modelValue?.split(",") || []), r = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
8433
+ const n = e, a = t, o = $(), i = H(() => Jt(n.modelValue) ? [] : n.modelValue?.split(",") || []), r = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
8434
8434
  let h = n.colors[u % n.colors.length] || {};
8435
8435
  return h = {
8436
8436
  ...h,
@@ -8535,7 +8535,7 @@ var Zp = /* @__PURE__ */ xe({
8535
8535
  set(c) {
8536
8536
  a("update:modelValue", c), a("change", { value: c });
8537
8537
  }
8538
- }), i = H(() => n.texts?.map((c) => c.value) || []), r = D(0), l = (c) => {
8538
+ }), i = H(() => n.texts?.map((c) => c.value) || []), r = $(0), l = (c) => {
8539
8539
  r.value = c;
8540
8540
  };
8541
8541
  return (c, s) => {
@@ -8936,11 +8936,11 @@ var Zp = /* @__PURE__ */ xe({
8936
8936
  const n = e, a = t, { warning: o, error: i, createConfirm: r, t: l, apiUrl: c, token: s, project: d, useFile: f } = St(), { fileChunkedUpload: u, deleteFile: h } = f(), p = H(() => n.isUploadImg ? n.accept || "image/*" : n.accept), g = H(() => {
8937
8937
  if (n.limit !== -1)
8938
8938
  return n.limit;
8939
- }), b = H(() => n.limit === -1 ? "" : `,${l("上传数量")}${n.limit}`), x = D(""), w = H(() => ({
8939
+ }), b = H(() => n.limit === -1 ? "" : `,${l("上传数量")}${n.limit}`), x = $(""), w = H(() => ({
8940
8940
  folderId: n.modelValue || x.value,
8941
8941
  maxSize: n.maxSize,
8942
8942
  sizeType: n.sizeType
8943
- })), y = D([]), m = () => {
8943
+ })), y = $([]), m = () => {
8944
8944
  y.value = [...y.value];
8945
8945
  }, C = (ie) => {
8946
8946
  if (n.maxSize && n.sizeType) {
@@ -9053,9 +9053,9 @@ var Zp = /* @__PURE__ */ xe({
9053
9053
  rt(() => n.modelValue, async (ie) => {
9054
9054
  ie || (x.value = kn(), y.value = []);
9055
9055
  }, { immediate: !0 });
9056
- const be = D(!1), X = D(""), Z = D(""), te = D(!1), P = D(!1);
9056
+ const be = $(!1), X = $(""), Z = $(""), te = $(!1), P = $(!1);
9057
9057
  let ke = null;
9058
- const Ke = D(bi(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), we = (ie) => {
9058
+ const Ke = $(bi(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), we = (ie) => {
9059
9059
  if (ie.isPreview === !1 && !n.isUploadImg) {
9060
9060
  o && o("无权限预览!");
9061
9061
  return;
@@ -9237,7 +9237,7 @@ var Zp = /* @__PURE__ */ xe({
9237
9237
  },
9238
9238
  emits: ["click", "ready"],
9239
9239
  setup(e, { expose: t, emit: n }) {
9240
- const a = e, o = n, i = D(), r = Qo();
9240
+ const a = e, o = n, i = $(), r = Qo();
9241
9241
  let l = null, c = null;
9242
9242
  const s = async () => {
9243
9243
  i.value && (r.value = Fd.init(i.value, a.theme, a.initOptions), d(a.option), r.value && r.value.on("click", (p) => {
@@ -9424,7 +9424,7 @@ var Zp = /* @__PURE__ */ xe({
9424
9424
  }
9425
9425
  },
9426
9426
  setup(e) {
9427
- const t = e, n = D(""), a = D(""), o = (d) => {
9427
+ const t = e, n = $(""), a = $(""), o = (d) => {
9428
9428
  if (d.length !== 13) throw new Error("GTIN must be 13 digits for checksum calculation");
9429
9429
  let f = 0;
9430
9430
  for (let u = 12; u >= 0; u--) {
@@ -10101,7 +10101,7 @@ var Zp = /* @__PURE__ */ xe({
10101
10101
  "示例:SUMPRODUCT([1,2,3],[0.1,0.2,0.3])返回1.4,也就是 1×0.1 + 2×0.2 + 3×0.3的值"
10102
10102
  ]
10103
10103
  }
10104
- ], l = D(!1), c = D([]), s = Zn({
10104
+ ], l = $(!1), c = $([]), s = Zn({
10105
10105
  cells: [],
10106
10106
  cursor: 0
10107
10107
  }), d = H({
@@ -10264,7 +10264,7 @@ var Zp = /* @__PURE__ */ xe({
10264
10264
  }
10265
10265
  },
10266
10266
  setup(e, { expose: t }) {
10267
- const n = e, a = H(() => ({ ...n })), o = D(), i = D(null), r = H(() => n.options);
10267
+ const n = e, a = H(() => ({ ...n })), o = $(), i = $(null), r = H(() => n.options);
10268
10268
  Ft(() => {
10269
10269
  n.animation && l();
10270
10270
  }), rt(() => n.decimals, () => {
@@ -10392,7 +10392,7 @@ var Zp = /* @__PURE__ */ xe({
10392
10392
  },
10393
10393
  emits: ["update:modelValue", "change"],
10394
10394
  setup(e, { emit: t }) {
10395
- const n = e, a = t, o = D(), i = D(), r = async (d, f) => {
10395
+ const n = e, a = t, o = $(), i = $(), r = async (d, f) => {
10396
10396
  n.ok && (d("保存数据中..."), i.value = await n.ok(), a("update:modelValue", i.value), a("change", { value: i.value }), f(), o.value.close());
10397
10397
  }, l = () => n.beforeClose ? n.beforeClose(i.value) : !0, c = () => {
10398
10398
  n.closed?.();
@@ -10464,7 +10464,7 @@ var Zp = /* @__PURE__ */ xe({
10464
10464
  set: (f) => {
10465
10465
  a("update:modelValue", f);
10466
10466
  }
10467
- }), i = D(""), r = (f) => {
10467
+ }), i = $(""), r = (f) => {
10468
10468
  i.value = f;
10469
10469
  }, l = () => i.value, c = (f) => n.beforeClose ? n.beforeClose(f) : !0, s = (f) => {
10470
10470
  a("change", f);
@@ -10590,7 +10590,7 @@ var Zp = /* @__PURE__ */ xe({
10590
10590
  "active-change"
10591
10591
  ],
10592
10592
  setup(e, { expose: t, emit: n }) {
10593
- const a = e, o = n, i = D(), r = D(), l = H({
10593
+ const a = e, o = n, i = $(), r = $(), l = H({
10594
10594
  get() {
10595
10595
  return a.modelValue === null || a.modelValue === void 0 ? r.value : a.modelValue;
10596
10596
  },
@@ -10886,9 +10886,9 @@ var Zp = /* @__PURE__ */ xe({
10886
10886
  },
10887
10887
  emits: ["update:modelValue", "change"],
10888
10888
  setup(e, { emit: t }) {
10889
- const { t: n } = St(), a = t, o = D(), i = (s) => {
10889
+ const { t: n } = St(), a = t, o = $(), i = (s) => {
10890
10890
  o.value?.hide(), a("update:modelValue", s), a("change", s);
10891
- }, r = D("mdi:chevron-down"), l = () => {
10891
+ }, r = $("mdi:chevron-down"), l = () => {
10892
10892
  r.value = "mdi:chevron-up";
10893
10893
  }, c = () => {
10894
10894
  r.value = "mdi:chevron-down";
@@ -10981,7 +10981,7 @@ var Zp = /* @__PURE__ */ xe({
10981
10981
  },
10982
10982
  emits: ["update:modelValue", "change"],
10983
10983
  setup(e, { expose: t, emit: n }) {
10984
- const a = e, o = n, i = D(), r = D("");
10984
+ const a = e, o = n, i = $(), r = $("");
10985
10985
  let l = null;
10986
10986
  const c = (g) => {
10987
10987
  switch (g) {
@@ -11158,7 +11158,7 @@ var Zp = /* @__PURE__ */ xe({
11158
11158
  toLeft: { type: Boolean }
11159
11159
  },
11160
11160
  setup(e, { expose: t }) {
11161
- const n = e, a = $a("actionRef"), o = D("0"), i = H(() => {
11161
+ const n = e, a = $a("actionRef"), o = $("0"), i = H(() => {
11162
11162
  const { actionStyle: l, toLeft: c } = n;
11163
11163
  return {
11164
11164
  ...l,
@@ -11202,7 +11202,7 @@ var Zp = /* @__PURE__ */ xe({
11202
11202
  toLeft: { type: Boolean }
11203
11203
  },
11204
11204
  setup(e, { expose: t }) {
11205
- const n = e, a = $a("barRef"), o = D("0"), i = H(() => {
11205
+ const n = e, a = $a("barRef"), o = $("0"), i = H(() => {
11206
11206
  const { barStyle: r, toLeft: l } = n;
11207
11207
  return {
11208
11208
  ...r,
@@ -11399,7 +11399,7 @@ var Zp = /* @__PURE__ */ xe({
11399
11399
  props: { pId: { type: String } },
11400
11400
  emits: ["click"],
11401
11401
  setup(e, { emit: t }) {
11402
- const n = e, a = t, { getMenuMap: o, toArray: i, activeMenu: r, theme: l } = ni(), { getHMoreMenus: c } = Ph(), s = D([]);
11402
+ const n = e, a = t, { getMenuMap: o, toArray: i, activeMenu: r, theme: l } = ni(), { getHMoreMenus: c } = Ph(), s = $([]);
11403
11403
  n.pId === "moreId" ? s.value = c.value : s.value = i(o()[n.pId || ""] || [], []);
11404
11404
  const d = (p) => {
11405
11405
  const g = s.value.find((b) => b.active);
@@ -11582,7 +11582,7 @@ var Zp = /* @__PURE__ */ xe({
11582
11582
  } },
11583
11583
  emits: ["click"],
11584
11584
  setup(e, { emit: t }) {
11585
- const n = e, a = t, { activeMenu: o, theme: i } = ni(), r = D(), l = D(0);
11585
+ const n = e, a = t, { activeMenu: o, theme: i } = ni(), r = $(), l = $(0);
11586
11586
  let c = null;
11587
11587
  Ft(() => {
11588
11588
  typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
@@ -11688,7 +11688,7 @@ var Zp = /* @__PURE__ */ xe({
11688
11688
  setup(e, { emit: t }) {
11689
11689
  const n = e, a = t;
11690
11690
  let o = {};
11691
- const i = D("");
11691
+ const i = $("");
11692
11692
  i.value = n.activeId || "";
11693
11693
  const r = (g, b, x, w, y) => {
11694
11694
  x = x || [];
@@ -11703,7 +11703,7 @@ var Zp = /* @__PURE__ */ xe({
11703
11703
  }, l = (g, b) => {
11704
11704
  const x = [];
11705
11705
  return r(x, "0", g, 0, b), x;
11706
- }, c = D([]);
11706
+ }, c = $([]);
11707
11707
  let s = [];
11708
11708
  const d = () => {
11709
11709
  o = {}, s = l(n.menus);
@@ -11799,7 +11799,7 @@ var Zp = /* @__PURE__ */ xe({
11799
11799
  }),
11800
11800
  emits: ["update:checkAll", "update:checkFields"],
11801
11801
  setup(e, { expose: t }) {
11802
- const { t: n } = St(), a = e, o = Jo(e, "checkAll"), i = Jo(e, "checkFields"), r = D(!1), l = D(""), c = H(() => a.columns.filter((u) => u.config?.filter?.isSearchKeyword ? l.value ? u.config?.label?.indexOf(l.value) != -1 : !0 : !1).map((u) => ({
11802
+ const { t: n } = St(), a = e, o = Jo(e, "checkAll"), i = Jo(e, "checkFields"), r = $(!1), l = $(""), c = H(() => a.columns.filter((u) => u.config?.filter?.isSearchKeyword ? l.value ? u.config?.label?.indexOf(l.value) != -1 : !0 : !1).map((u) => ({
11803
11803
  label: u.config?.label,
11804
11804
  value: u.id
11805
11805
  }))), s = () => {
@@ -11877,7 +11877,7 @@ var Zp = /* @__PURE__ */ xe({
11877
11877
  }),
11878
11878
  emits: /* @__PURE__ */ Ko(["filter", "close"], ["update:relation", "update:isPin"]),
11879
11879
  setup(e, { expose: t, emit: n }) {
11880
- const { t: a } = St(), o = e, i = Jo(e, "relation"), r = Jo(e, "isPin"), l = D([]), c = D([]), s = () => {
11880
+ const { t: a } = St(), o = e, i = Jo(e, "relation"), r = Jo(e, "isPin"), l = $([]), c = $([]), s = () => {
11881
11881
  r.value = !r.value;
11882
11882
  }, d = [
11883
11883
  {
@@ -12267,7 +12267,7 @@ var Zp = /* @__PURE__ */ xe({
12267
12267
  const { t: a } = St(), o = e, i = n, r = H(() => o.columns.filter((p) => !p.children?.length && p.config?.sorter?.isNot !== !0).map((p) => ({
12268
12268
  label: p.config?.label,
12269
12269
  value: p.id
12270
- }))), l = D([]), c = H(() => l.value.map((p) => p.value)), s = [{
12270
+ }))), l = $([]), c = H(() => l.value.map((p) => p.value)), s = [{
12271
12271
  id: "label",
12272
12272
  type: "j-title",
12273
12273
  getCompConfig: ({ row: p }) => ({ title: p?.label }),
@@ -12339,7 +12339,7 @@ var Zp = /* @__PURE__ */ xe({
12339
12339
  },
12340
12340
  emits: ["save"],
12341
12341
  setup(e, { expose: t, emit: n }) {
12342
- const { t: a } = St(), o = e, i = n, r = D(), l = D(""), c = {}, s = D([]), d = D([]), f = (v, _) => {
12342
+ const { t: a } = St(), o = e, i = n, r = $(), l = $(""), c = {}, s = $([]), d = $([]), f = (v, _) => {
12343
12343
  const S = [], R = /* @__PURE__ */ new Map();
12344
12344
  v.forEach((T) => {
12345
12345
  R.set(T.id || "", T), c[T.id || ""] = T;
@@ -12378,7 +12378,7 @@ var Zp = /* @__PURE__ */ xe({
12378
12378
  if (!l.value) return d.value;
12379
12379
  const v = l.value.split(/\s+/).filter(Boolean);
12380
12380
  return u(d.value, v);
12381
- }), p = D([]), g = H(() => {
12381
+ }), p = $([]), g = H(() => {
12382
12382
  const v = /* @__PURE__ */ new Map();
12383
12383
  if (o.columnConfig && o.columnConfig.length > 0) {
12384
12384
  const _ = (S) => {
@@ -12652,7 +12652,7 @@ var Zp = /* @__PURE__ */ xe({
12652
12652
  setup(e, { expose: t, emit: n }) {
12653
12653
  const { t: a } = St(), { openLayer: o } = Ja(), i = e, r = n;
12654
12654
  i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
12655
- const l = D(), c = D(), s = D([]), d = D(0), f = D(1), u = D(i.pageSize || 100), h = D(0), p = H(() => h.value > 0), g = D([]), b = D(!1), x = H(() => i.batchButtons && i.batchButtons.length > 0), w = H(() => g.value.length > 0), y = H(() => x.value && w.value && i.isMultiple || b.value), m = H(() => !!i.loadData), C = H(() => !!i.loadData && i.isPage && !y.value), v = H(() => i.viewMode === "card"), _ = H(() => b.value ? g.value : s.value);
12655
+ const l = $(), c = $(), s = $([]), d = $(0), f = $(1), u = $(i.pageSize || 100), h = $(0), p = H(() => h.value > 0), g = $([]), b = $(!1), x = H(() => i.batchButtons && i.batchButtons.length > 0), w = H(() => g.value.length > 0), y = H(() => x.value && w.value && i.isMultiple || b.value), m = H(() => !!i.loadData), C = H(() => !!i.loadData && i.isPage && !y.value), v = H(() => i.viewMode === "card"), _ = H(() => b.value ? g.value : s.value);
12656
12656
  x.value && !i.isMultiple && console.warn("batchButtons is only valid when isMultiple is true");
12657
12657
  const S = (he) => i.rowKey ? i.rowKey.split(",").map((pe) => he[pe.trim()]).join("::") : "", R = (he, pe) => {
12658
12658
  if (!pe || pe.length === 0) return he.filter((ge) => ge.config?.display !== !1).map((ge) => ge.children && ge.children.length > 0 ? {
@@ -12681,9 +12681,9 @@ var Zp = /* @__PURE__ */ xe({
12681
12681
  }), Ie.push(ft);
12682
12682
  }
12683
12683
  }), Ie;
12684
- }, M = H(() => R(i.columns, Y.value)), T = H(() => th(i.columns, (he) => he.config.label)), L = D(""), B = H(() => T.value.some((he) => he.config?.filter?.isSearchKeyword)), j = D(), A = D(!0), E = D([]), F = H(() => A.value ? "搜索全部" : `搜索范围:${T.value.filter((he) => E.value.includes(he.id)).map((he) => he.config?.label).join("、")}`), K = () => {
12684
+ }, M = H(() => R(i.columns, Y.value)), T = H(() => th(i.columns, (he) => he.config.label)), L = $(""), B = H(() => T.value.some((he) => he.config?.filter?.isSearchKeyword)), j = $(), A = $(!0), E = $([]), F = H(() => A.value ? "搜索全部" : `搜索范围:${T.value.filter((he) => E.value.includes(he.id)).map((he) => he.config?.label).join("、")}`), K = () => {
12685
12685
  j.value.init();
12686
- }, oe = D(), be = D(!1), X = D(!1), Z = D(!1), te = D([]), P = D("and"), ke = D(), Ke = D(!1), we = D([]), Ue = D(), st = (he) => {
12686
+ }, oe = $(), be = $(!1), X = $(!1), Z = $(!1), te = $([]), P = $("and"), ke = $(), Ke = $(!1), we = $([]), Ue = $(), st = (he) => {
12687
12687
  const pe = new Map(T.value.map((Fe) => [Fe.id, Fe.config?.label || Fe.id]));
12688
12688
  return he.split(",").map((Fe) => Fe.trim()).filter(Boolean).map((Fe) => {
12689
12689
  const [Ie, ge] = Fe.split(/\s+/), ft = (ge || "ASC").toUpperCase() === "DESC" ? "DESC" : "ASC";
@@ -12716,11 +12716,11 @@ var Zp = /* @__PURE__ */ xe({
12716
12716
  we.value = he, Ke.value = !1, yn();
12717
12717
  }, Se = () => {
12718
12718
  we.value = [], yn();
12719
- }, ze = D(), kt = D(!1), Y = D(), de = H(() => Y.value != null), Ee = () => {
12719
+ }, ze = $(), kt = $(!1), Y = $(), de = H(() => Y.value != null), Ee = () => {
12720
12720
  ze.value?.init();
12721
12721
  }, Be = (he) => {
12722
12722
  Y.value = he, kt.value = !1;
12723
- }, Ne = D(!1), He = () => {
12723
+ }, Ne = $(!1), He = () => {
12724
12724
  Ne.value = !Ne.value;
12725
12725
  }, $e = () => {
12726
12726
  g.value = [], l.value && (l.value.setSelection?.([]), b.value && (b.value = !1, l.value.setRecords(s.value))), c.value?.clearSelection?.(), r("select", {
@@ -12763,7 +12763,7 @@ var Zp = /* @__PURE__ */ xe({
12763
12763
  return [...he, ...pe];
12764
12764
  }
12765
12765
  return i.buttons;
12766
- }), sn = H(() => Wt.value.filter((he) => he.config?.display !== !1)), Zt = D(null), yt = D(0), an = () => {
12766
+ }), sn = H(() => Wt.value.filter((he) => he.config?.display !== !1)), Zt = $(null), yt = $(0), an = () => {
12767
12767
  yt.value = Zt.value?.clientWidth || 0;
12768
12768
  };
12769
12769
  let Mt;
@@ -13346,7 +13346,7 @@ var Zp = /* @__PURE__ */ xe({
13346
13346
  },
13347
13347
  emits: ["update:modelValue", "change"],
13348
13348
  setup(e, { emit: t }) {
13349
- const n = e, a = t, { t: o } = St(), i = D(""), r = H(() => i.value === "" ? n.options : n.options.filter((s) => (s.label || "").includes(i.value))), l = H(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), c = (s) => {
13349
+ const n = e, a = t, { t: o } = St(), i = $(""), r = H(() => i.value === "" ? n.options : n.options.filter((s) => (s.label || "").includes(i.value))), l = H(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), c = (s) => {
13350
13350
  if (s.disabled || l.value.includes(s.value)) return;
13351
13351
  const d = [...l.value, s.value].join(",");
13352
13352
  a("update:modelValue", d), a("change", {
@@ -13509,7 +13509,7 @@ var Zp = /* @__PURE__ */ xe({
13509
13509
  },
13510
13510
  emits: ["node-drop"],
13511
13511
  setup(e, { expose: t, emit: n }) {
13512
- const a = e, o = n, { useData: i, t: r } = St(), { getDataByComp: l, loadDataByComp: c } = i(), s = D(), d = D(!1), f = D(""), u = D([]), h = {
13512
+ const a = e, o = n, { useData: i, t: r } = St(), { getDataByComp: l, loadDataByComp: c } = i(), s = $(), d = $(!1), f = $(""), u = $([]), h = {
13513
13513
  children: "children",
13514
13514
  label: "label",
13515
13515
  disabled: "disabled"
@@ -13550,7 +13550,7 @@ var Zp = /* @__PURE__ */ xe({
13550
13550
  data: A,
13551
13551
  openLayer: R
13552
13552
  });
13553
- }, T = D(""), L = (j, A) => {
13553
+ }, T = $(""), L = (j, A) => {
13554
13554
  T.value = j ? A.value : "";
13555
13555
  }, B = (j, A, E) => a.allowDrop ? a.allowDrop(j, A, E) : !(E == "inner" && !A.data.canInner);
13556
13556
  return Ft(async () => {
@@ -13868,7 +13868,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13868
13868
  i && (p = i());
13869
13869
  const g = (G) => {
13870
13870
  f && f(G);
13871
- }, b = D(!1), x = H(() => a.config?.gutter || 16), w = H(() => a.config?.span || 24), y = H(() => a.config?.labelWidth), m = H(() => a.config?.labelPosition || "right"), C = H(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), v = Zn({}), _ = D({}), S = Zn([]), R = {};
13871
+ }, b = $(!1), x = H(() => a.config?.gutter || 16), w = H(() => a.config?.span || 24), y = H(() => a.config?.labelWidth), m = H(() => a.config?.labelPosition || "right"), C = H(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), v = Zn({}), _ = $({}), S = Zn([]), R = {};
13872
13872
  let M = {}, T = {}, L = [], B = {}, j = {}, A = !1, E = 0, F;
13873
13873
  const K = () => new Promise((G) => {
13874
13874
  const me = globalThis.requestAnimationFrame;
@@ -14246,7 +14246,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14246
14246
  }
14247
14247
  },
14248
14248
  setup(e, { expose: t }) {
14249
- const n = e, a = D(!1), o = Zn([]), i = {}, r = Zn({}), l = (w, y) => {
14249
+ const n = e, a = $(!1), o = Zn([]), i = {}, r = Zn({}), l = (w, y) => {
14250
14250
  w.forEach((m) => {
14251
14251
  m.id = m.id || ol("c");
14252
14252
  const C = {
@@ -14331,7 +14331,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14331
14331
  },
14332
14332
  emits: ["update:modelValue"],
14333
14333
  setup(e, { emit: t }) {
14334
- const n = e, a = t, o = D("");
14334
+ const n = e, a = t, o = $("");
14335
14335
  return rt(() => n.modelValue, (i) => {
14336
14336
  i ? o.value = i : (o.value = kn(), a("update:modelValue", o.value));
14337
14337
  }, { immediate: !0 }), (i, r) => {
@@ -14473,7 +14473,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14473
14473
  "rowChange"
14474
14474
  ],
14475
14475
  setup(e, { emit: t }) {
14476
- const n = (v) => v == null, a = e, o = t, { formData: i } = Ka(), r = H(() => a.editConfig.isAddBtn !== !1), l = H(() => a.editConfig.addBtnText || "添加"), c = H(() => a.editConfig.buttonsAlign || "left"), s = H(() => a.editConfig.isRemoveBtn !== !1), d = H(() => a.editConfig.readonly), f = H(() => a.editConfig.drag), u = H(() => a.editConfig.isNullValue !== !1), h = D(), p = [
14476
+ const n = (v) => v == null, a = e, o = t, { formData: i } = Ka(), r = H(() => a.editConfig.isAddBtn !== !1), l = H(() => a.editConfig.addBtnText || "添加"), c = H(() => a.editConfig.buttonsAlign || "left"), s = H(() => a.editConfig.isRemoveBtn !== !1), d = H(() => a.editConfig.readonly), f = H(() => a.editConfig.drag), u = H(() => a.editConfig.isNullValue !== !1), h = $(), p = [
14477
14477
  "A",
14478
14478
  "B",
14479
14479
  "C",
@@ -14500,7 +14500,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14500
14500
  "X",
14501
14501
  "Y",
14502
14502
  "Z"
14503
- ], g = D([]);
14503
+ ], g = $([]);
14504
14504
  a.modelValue && a.modelValue.length > 0 ? (g.value = a.modelValue || [], g.value.forEach((v) => {
14505
14505
  v._i || (v._i = kn());
14506
14506
  })) : (g.value = [], o("update:modelValue", g.value)), rt(() => a.modelValue, (v) => {
@@ -14677,7 +14677,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14677
14677
  },
14678
14678
  emits: ["update:modelValue", "change"],
14679
14679
  setup(e, { expose: t, emit: n }) {
14680
- const a = (w) => !!(w == null || typeof w == "string" && w.trim() === "" || Array.isArray(w) && w.length === 0), o = e, i = n, r = D(), l = D(), c = D(""), s = H(() => !!o.renderVNode && !o.isMultiSelect), d = H({
14680
+ const a = (w) => !!(w == null || typeof w == "string" && w.trim() === "" || Array.isArray(w) && w.length === 0), o = e, i = n, r = $(), l = $(), c = $(""), s = H(() => !!o.renderVNode && !o.isMultiSelect), d = H({
14681
14681
  get() {
14682
14682
  return o.modelValue;
14683
14683
  },
@@ -14873,7 +14873,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14873
14873
  }
14874
14874
  },
14875
14875
  setup(e) {
14876
- const { t } = St(), n = D(!1), a = () => {
14876
+ const { t } = St(), n = $(!1), a = () => {
14877
14877
  n.value = !0;
14878
14878
  };
14879
14879
  return (o, i) => {
@@ -15237,7 +15237,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15237
15237
  },
15238
15238
  emits: ["update:value", "change"],
15239
15239
  setup(e, { emit: t }) {
15240
- const n = e, a = t, o = D(), i = D(), r = Qo(), l = H(() => ({
15240
+ const n = e, a = t, o = $(), i = $(), r = Qo(), l = H(() => ({
15241
15241
  height: typeof n.height == "number" ? `${n.height}px` : n.height,
15242
15242
  overflowY: "hidden"
15243
15243
  }));
@@ -15327,7 +15327,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15327
15327
  "change"
15328
15328
  ],
15329
15329
  setup(e, { expose: t, emit: n }) {
15330
- const a = e, o = n, i = D(!0), r = D();
15330
+ const a = e, o = n, i = $(!0), r = $();
15331
15331
  let l = null, c = null, s = null, d = null;
15332
15332
  const f = async () => {
15333
15333
  i.value = !0;
@@ -15419,7 +15419,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15419
15419
  },
15420
15420
  emits: ["update:modelValue", "change"],
15421
15421
  setup(e, { emit: t }) {
15422
- const n = e, a = t, { t: o } = St(), i = D(), r = D(), l = D(), c = D(""), s = D(0), d = D(0), f = D(""), u = H(() => {
15422
+ const n = e, a = t, { t: o } = St(), i = $(), r = $(), l = $(), c = $(""), s = $(0), d = $(0), f = $(""), u = H(() => {
15423
15423
  let m = n.modelValue || "";
15424
15424
  if (n.modelValue === null && (m = J(f)), Jt(m)) return {
15425
15425
  address: "",
@@ -15445,7 +15445,7 @@ var Xc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15445
15445
  r.value.blur(), c.value = u.value.address, s.value = u.value.lng, d.value = u.value.lat, i.value.open("请选择地址"), setTimeout(() => {
15446
15446
  l.value?.call("map", "setPoint", null, s.value, d.value);
15447
15447
  }, 100);
15448
- }, b = D([]), x = [{
15448
+ }, b = $([]), x = [{
15449
15449
  type: "j-layout",
15450
15450
  config: { class: ["j-block"] },
15451
15451
  children: [{
@@ -20254,7 +20254,7 @@ var Qu = { myImporter: ["type", _a] }, ed = (e) => {
20254
20254
  },
20255
20255
  emits: ["elementDblclick", "elementClick"],
20256
20256
  setup(e, { expose: t, emit: n }) {
20257
- const a = e, o = n, i = D(), r = {
20257
+ const a = e, o = n, i = $(), r = {
20258
20258
  "create.start-event": {
20259
20259
  className: "icon-start-event",
20260
20260
  type: "startEvent",
@@ -23396,7 +23396,7 @@ var g1 = {
23396
23396
  "elementCreate"
23397
23397
  ],
23398
23398
  setup(e, { expose: t, emit: n }) {
23399
- const a = e, o = n, i = D(), r = {
23399
+ const a = e, o = n, i = $(), r = {
23400
23400
  "create.start-event": {
23401
23401
  className: "icon-start-event",
23402
23402
  type: "startEvent",
@@ -23582,7 +23582,7 @@ var g1 = {
23582
23582
  "rowChange"
23583
23583
  ],
23584
23584
  setup(e, { expose: t, emit: n }) {
23585
- const a = e, o = n, { t: i } = St(), { formData: r } = Ka(), l = H(() => a.editConfig.isAddBtn !== !1), c = H(() => a.editConfig.addBtnText || "添加"), s = H(() => a.editConfig.buttonsAlign || "left"), d = H(() => a.editConfig.isRemoveBtn !== !1), f = H(() => a.editConfig.readonly), u = H(() => a.editConfig.isNullValue !== !1), h = D([]), p = (_) => {
23585
+ const a = e, o = n, { t: i } = St(), { formData: r } = Ka(), l = H(() => a.editConfig.isAddBtn !== !1), c = H(() => a.editConfig.addBtnText || "添加"), s = H(() => a.editConfig.buttonsAlign || "left"), d = H(() => a.editConfig.isRemoveBtn !== !1), f = H(() => a.editConfig.readonly), u = H(() => a.editConfig.isNullValue !== !1), h = $([]), p = (_) => {
23586
23586
  o("rowChange", _);
23587
23587
  }, g = () => {
23588
23588
  const _ = { _i: kn() };
@@ -23785,7 +23785,7 @@ var g1 = {
23785
23785
  const F = B[E];
23786
23786
  return F == null ? "" : String(F);
23787
23787
  }).join("::");
23788
- }, h = (B, j) => u(B) || String(j), p = D([]), g = H({
23788
+ }, h = (B, j) => u(B) || String(j), p = $([]), g = H({
23789
23789
  get() {
23790
23790
  return p.value[0] || "";
23791
23791
  },