@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4

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.
Files changed (99) hide show
  1. package/components/avatar/index.esm.js +10 -1
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/calendar/index.esm.js +178 -176
  4. package/components/calendar/index.umd.cjs +2 -2
  5. package/components/collection-property-editor/index.esm.js +48 -46
  6. package/components/collection-property-editor/index.umd.cjs +2 -2
  7. package/components/combo-list/index.esm.js +319 -300
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/comment/index.esm.js +2287 -1161
  10. package/components/comment/index.umd.cjs +7 -7
  11. package/components/component/index.esm.js +3 -1
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/condition/index.esm.js +926 -901
  14. package/components/condition/index.umd.cjs +2 -2
  15. package/components/data-view/index.esm.js +898 -899
  16. package/components/data-view/index.umd.cjs +1 -1
  17. package/components/drawer/index.esm.js +3 -1
  18. package/components/drawer/index.umd.cjs +2 -2
  19. package/components/dynamic-form/index.esm.js +239 -221
  20. package/components/dynamic-form/index.umd.cjs +1 -1
  21. package/components/dynamic-resolver/index.esm.js +11 -9
  22. package/components/dynamic-resolver/index.umd.cjs +2 -2
  23. package/components/expression-editor/index.esm.js +1299 -1279
  24. package/components/expression-editor/index.umd.cjs +4 -4
  25. package/components/filter-bar/index.esm.js +731 -678
  26. package/components/filter-bar/index.umd.cjs +2 -2
  27. package/components/filter-condition-editor/index.esm.js +1792 -1772
  28. package/components/filter-condition-editor/index.umd.cjs +4 -4
  29. package/components/image/index.esm.js +246 -240
  30. package/components/image/index.umd.cjs +2 -2
  31. package/components/language-textbox/index.esm.js +9 -7
  32. package/components/language-textbox/index.umd.cjs +2 -2
  33. package/components/list-view/index.esm.js +1 -1
  34. package/components/list-view/index.umd.cjs +1 -1
  35. package/components/locale/index.esm.js +2009 -886
  36. package/components/locale/index.umd.cjs +6 -6
  37. package/components/number-range/index.esm.js +190 -181
  38. package/components/number-range/index.umd.cjs +1 -1
  39. package/components/order/index.esm.js +734 -714
  40. package/components/order/index.umd.cjs +5 -5
  41. package/components/property-panel/index.esm.js +60 -49
  42. package/components/property-panel/index.umd.cjs +3 -3
  43. package/components/query-solution/index.esm.js +2461 -2500
  44. package/components/query-solution/index.umd.cjs +6 -6
  45. package/components/radio-group/index.esm.js +30 -30
  46. package/components/radio-group/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +238 -238
  48. package/components/schema-selector/index.umd.cjs +4 -4
  49. package/components/section/index.esm.js +217 -302
  50. package/components/section/index.umd.cjs +2 -2
  51. package/components/sort-condition-editor/index.esm.js +1793 -1773
  52. package/components/sort-condition-editor/index.umd.cjs +4 -4
  53. package/components/transfer/index.esm.js +155 -155
  54. package/components/transfer/index.umd.cjs +3 -3
  55. package/designer/data-grid/index.esm.js +895 -867
  56. package/designer/data-grid/index.umd.cjs +5 -5
  57. package/designer/data-view/index.esm.js +145 -144
  58. package/designer/data-view/index.umd.cjs +2 -2
  59. package/designer/drawer/index.esm.js +73 -71
  60. package/designer/drawer/index.umd.cjs +2 -2
  61. package/designer/dynamic-form/index.esm.js +87 -65
  62. package/designer/dynamic-form/index.umd.cjs +2 -2
  63. package/designer/farris-designer.all.esm.js +14 -3
  64. package/designer/farris-designer.all.umd.cjs +3 -3
  65. package/designer/input-group/index.esm.js +34 -14
  66. package/designer/input-group/index.umd.cjs +1 -1
  67. package/designer/list-view/index.esm.js +1 -1
  68. package/designer/list-view/index.umd.cjs +1 -1
  69. package/designer/radio-group/index.esm.js +15 -2
  70. package/designer/radio-group/index.umd.cjs +1 -1
  71. package/designer/section/index.esm.js +129 -119
  72. package/designer/section/index.umd.cjs +1 -1
  73. package/designer/time-picker/index.esm.js +140 -131
  74. package/designer/time-picker/index.umd.cjs +1 -1
  75. package/farris.all.esm.js +13578 -12394
  76. package/farris.all.umd.cjs +26 -26
  77. package/index.css +1 -1
  78. package/locales/data-grid/ui/en.json +2 -1
  79. package/locales/data-grid/ui/zh-CHS.json +2 -1
  80. package/locales/data-grid/ui/zh-CHT.json +2 -1
  81. package/locales/designer/en.json +12 -10
  82. package/locales/designer/zh-CHS.json +19 -17
  83. package/locales/designer/zh-CHT.json +19 -17
  84. package/locales/ui/en.json +4 -2
  85. package/locales/ui/zh-CHS.json +11 -9
  86. package/locales/ui/zh-CHT.json +11 -9
  87. package/package.json +1 -1
  88. package/package.zip +0 -0
  89. package/types/combo-list/src/composition/types.d.ts +1 -0
  90. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
  91. package/types/condition/src/composition/use-field-config.d.ts +1 -1
  92. package/types/condition/src/condition.props.d.ts +1 -1
  93. package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
  94. package/types/image/src/property-config/image.property-config.d.ts +5 -5
  95. package/types/locale/src/lib/locale.service.d.ts +2 -2
  96. package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
  97. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
  98. package/types/section/src/designer/section.design.props.d.ts +17 -0
  99. package/types/section/src/section.props.d.ts +0 -25
@@ -1,7 +1,7 @@
1
1
  var Hn = Object.defineProperty;
2
2
  var $n = (t, e, n) => e in t ? Hn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var oe = (t, e, n) => $n(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { excludeProperties as Ln, useNumberFormat as zt, useGuid as Et, resolveField as Ce, useCommonUtils as sn, useDateFormat as dn, setFieldValue as Lt, getMaxZIndex as Wn, FormSchemaEntityField$Type as ft, FormSchemaEntityFieldTypeName as nt, getCustomStyle as Dt, getCustomClass as Wt, FormSchemaEntityFieldType$Type as It, useThirdComponent as zn, withInstall as jn } from "../../components/common/index.esm.js";
4
+ import { excludeProperties as Ln, useNumberFormat as zt, useGuid as kt, resolveField as Ce, useCommonUtils as sn, useDateFormat as dn, setFieldValue as Lt, getMaxZIndex as Wn, FormSchemaEntityField$Type as ft, FormSchemaEntityFieldTypeName as nt, getCustomStyle as Dt, getCustomClass as Wt, FormSchemaEntityFieldType$Type as It, useThirdComponent as zn, withInstall as jn } from "../../components/common/index.esm.js";
5
5
  import Gn, { dataGridProps as Un } from "../../components/data-grid/index.esm.js";
6
6
  import { resolveAppearance as un, createPropsResolver as Ft, createCollectionBindingResolver as qn, createDataGridSelectionItemResolver as Dn, createDataViewUpdateColumnsResolver as Yn } from "../../components/dynamic-resolver/index.esm.js";
7
7
  import { computed as H, watch as ve, ref as T, createVNode as R, createTextVNode as tt, reactive as Xn, defineComponent as it, inject as We, onMounted as Qe, provide as Zn, nextTick as dt, Teleport as cn, createApp as fn, onUnmounted as jt, Fragment as mt, onBeforeMount as Jn, Transition as Qn, shallowRef as Kn, render as At, h as ei, cloneVNode as ti, mergeProps as mn, withDirectives as pn, vShow as ni, onUpdated as ii, onBeforeUnmount as oi, withModifiers as ri, vModelText as li } from "vue";
@@ -25,7 +25,7 @@ import { FNotifyService as Ut } from "../../components/notify/index.esm.js";
25
25
  import { useCondition as mi, CompareType as He, ValueType as lt, TextValue as Ht, RadioGroupValue as pi, NumberSpinnerValue as gi, NumberRangeValue as hi, MonthRangeValue as vi, MonthPickerValue as yi, DateRangeValue as Jt, DateTimePickerValue as bi, DatePickerValue as Ci, ComboLookupValue as wi, ComboListValue as Si, CheckBoxValue as Mi } from "../../components/condition/index.esm.js";
26
26
  import { FDynamicFormInput as Fi } from "../../components/dynamic-form/index.esm.js";
27
27
  import { FDesignerItem as Ti, useDesignerComponent as gn, canvasChanged as Ct, DgControl as U, refreshCanvas as _i } from "../../components/designer-canvas/index.esm.js";
28
- import { useCommandOption as xi, useColumnOption as Ei, useRowOption as ki, useSummary as Ii, useSort as Pi, useFilter as Vi, useAppearance as Bi, useSelection as Oi, useRowNumber as Ri, usePagination as Ni, useDataGridEvent as Ai } from "../data-view/index.esm.js";
28
+ import { useCommandOption as xi, useColumnOption as ki, useRowOption as Ei, useSummary as Ii, useSort as Pi, useFilter as Vi, useAppearance as Bi, useSelection as Oi, useRowNumber as Ri, usePagination as Ni, useDataGridEvent as Ai } from "../data-view/index.esm.js";
29
29
  import { BaseControlProperty as Hi, InputBaseProperty as Ze, ExpressionProperty as Qt } from "../../components/property-panel/index.esm.js";
30
30
  import $i from "../../components/tags/index.esm.js";
31
31
  import Li from "../../components/tree-view/index.esm.js";
@@ -238,69 +238,69 @@ const lo = {
238
238
  }), "columnOption", "commandOption");
239
239
  function so(t, e, n, i, o) {
240
240
  const { getGridHeaderCells: r } = o, l = 120, a = 50, c = H(() => {
241
- var p;
242
- return ((p = t.rowNumber) == null ? void 0 : p.enable) || !1;
241
+ var g;
242
+ return ((g = t.rowNumber) == null ? void 0 : g.enable) || !1;
243
243
  }), u = H(() => {
244
- var p, y;
245
- return ((p = t.selection) == null ? void 0 : p.multiSelect) || ((y = t.selection) == null ? void 0 : y.showCheckbox) || !1;
244
+ var g, y;
245
+ return ((g = t.selection) == null ? void 0 : g.multiSelect) || ((y = t.selection) == null ? void 0 : y.showCheckbox) || !1;
246
246
  }), f = H(
247
247
  () => {
248
- var p;
249
- return 0 + (c.value ? ((p = t.rowNumber) == null ? void 0 : p.width) || 32 : 0) + (u.value ? a : 0);
248
+ var g;
249
+ return 0 + (c.value ? ((g = t.rowNumber) == null ? void 0 : g.width) || 32 : 0) + (u.value ? a : 0);
250
250
  }
251
251
  ), s = H(() => {
252
- var p;
253
- return (p = t.columnOption) == null ? void 0 : p.fitColumns;
252
+ var g;
253
+ return (g = t.columnOption) == null ? void 0 : g.fitColumns;
254
254
  }), d = H(() => {
255
- var p;
256
- return s.value && ((p = t.columnOption) == null ? void 0 : p.fitMode) || "none";
255
+ var g;
256
+ return s.value && ((g = t.columnOption) == null ? void 0 : g.fitMode) || "none";
257
257
  });
258
- function g(p, y, w) {
259
- const V = parseInt(p.width, 10) / 100;
258
+ function p(g, y, w) {
259
+ const V = parseInt(g.width, 10) / 100;
260
260
  return w * V;
261
261
  }
262
- function m(p, y, w) {
263
- return typeof p.width == "string" ? g(p, y, w) : p.width || l;
262
+ function m(g, y, w) {
263
+ return typeof g.width == "string" ? p(g, y, w) : g.width || l;
264
264
  }
265
- function h(p, y) {
265
+ function h(g, y) {
266
266
  const w = [], V = [];
267
267
  let O = 0;
268
- p.value.primaryColumns.forEach((E) => {
269
- typeof E.width == "string" ? V.push(E) : (E.width = E.width || l, O += E.width, w.push(E));
268
+ g.value.primaryColumns.forEach((k) => {
269
+ typeof k.width == "string" ? V.push(k) : (k.width = k.width || l, O += k.width, w.push(k));
270
270
  });
271
- const I = y * (w.length / p.value.primaryColumns.length);
272
- w.forEach((E) => {
273
- const _ = I * (E.width / O);
274
- E.actualWidth = _, p.value.primaryColumnsWidth += E.actualWidth;
271
+ const I = y * (w.length / g.value.primaryColumns.length);
272
+ w.forEach((k) => {
273
+ const _ = I * (k.width / O);
274
+ k.actualWidth = _, g.value.primaryColumnsWidth += k.actualWidth;
275
275
  });
276
276
  const B = y - I;
277
- V.forEach((E) => {
278
- const _ = g(E, p.value, B);
279
- E.actualWidth = _, p.value.primaryColumnsWidth += E.actualWidth;
277
+ V.forEach((k) => {
278
+ const _ = p(k, g.value, B);
279
+ k.actualWidth = _, g.value.primaryColumnsWidth += k.actualWidth;
280
280
  });
281
281
  }
282
- function C(p, y) {
282
+ function C(g, y) {
283
283
  const w = [], V = [], O = /* @__PURE__ */ new WeakMap();
284
284
  let I = 0, B = 0;
285
- if (p.value.primaryColumns.forEach((_) => {
285
+ if (g.value.primaryColumns.forEach((_) => {
286
286
  if (typeof _.width == "string") {
287
- const k = g(_, p.value, y);
288
- O.set(_, k), I += k, V.push(_);
287
+ const E = p(_, g.value, y);
288
+ O.set(_, E), I += E, V.push(_);
289
289
  } else
290
290
  _.width = _.width || l, B += _.width, w.push(_);
291
291
  }), y - I > B) {
292
292
  const _ = y - I;
293
- V.forEach((k) => {
294
- k.actualWidth = O.get(k) || l, p.value.primaryColumnsWidth += k.actualWidth;
295
- }), w.forEach((k) => {
296
- k.actualWidth = _ * (k.width / B), p.value.primaryColumnsWidth += k.actualWidth;
293
+ V.forEach((E) => {
294
+ E.actualWidth = O.get(E) || l, g.value.primaryColumnsWidth += E.actualWidth;
295
+ }), w.forEach((E) => {
296
+ E.actualWidth = _ * (E.width / B), g.value.primaryColumnsWidth += E.actualWidth;
297
297
  });
298
298
  } else
299
- h(p, y);
299
+ h(g, y);
300
300
  }
301
- function F(p, y) {
302
- p.value.primaryColumns.forEach((w) => {
303
- w.actualWidth = m(w, p.value, y), p.value.primaryColumnsWidth += w.actualWidth;
301
+ function F(g, y) {
302
+ g.value.primaryColumns.forEach((w) => {
303
+ w.actualWidth = m(w, g.value, y), g.value.primaryColumnsWidth += w.actualWidth;
304
304
  });
305
305
  }
306
306
  const S = {
@@ -308,61 +308,61 @@ function so(t, e, n, i, o) {
308
308
  none: F,
309
309
  percentage: h
310
310
  };
311
- function M(p) {
312
- p.value.leftHeaderColumns = Array.from(r(p.value.leftColumns).values()), p.value.primaryHeaderColumns = Array.from(r(p.value.primaryColumns).values()), p.value.rightHeaderColumns = Array.from(r(p.value.rightColumns).values());
313
- }
314
- function x(p) {
315
- p.value.leftColumnsWidth = 0, p.value.primaryColumnsWidth = 0, p.value.rightColumnsWidth = 0, p.value.leftColumns.forEach((y) => {
316
- p.value.leftColumnsWidth += y.actualWidth || 0;
317
- }), p.value.primaryColumns.forEach((y) => {
318
- p.value.primaryColumnsWidth += y.actualWidth || 0;
319
- }), p.value.rightColumns.forEach((y) => {
320
- p.value.rightColumnsWidth += y.actualWidth || 0;
321
- }), p.value = Object.assign({}, p.value);
322
- }
323
- function v(p, y, w) {
324
- var k;
311
+ function M(g) {
312
+ g.value.leftHeaderColumns = Array.from(r(g.value.leftColumns).values()), g.value.primaryHeaderColumns = Array.from(r(g.value.primaryColumns).values()), g.value.rightHeaderColumns = Array.from(r(g.value.rightColumns).values());
313
+ }
314
+ function x(g) {
315
+ g.value.leftColumnsWidth = 0, g.value.primaryColumnsWidth = 0, g.value.rightColumnsWidth = 0, g.value.leftColumns.forEach((y) => {
316
+ g.value.leftColumnsWidth += y.actualWidth || 0;
317
+ }), g.value.primaryColumns.forEach((y) => {
318
+ g.value.primaryColumnsWidth += y.actualWidth || 0;
319
+ }), g.value.rightColumns.forEach((y) => {
320
+ g.value.rightColumnsWidth += y.actualWidth || 0;
321
+ }), g.value = Object.assign({}, g.value);
322
+ }
323
+ function v(g, y, w) {
324
+ var E;
325
325
  let V = 0;
326
- const O = p.value.primaryColumns, I = p.value.rightColumns;
327
- p.value.rightColumns.forEach((L) => {
328
- L.actualWidth = m(L, p.value, y), V += L.actualWidth;
326
+ const O = g.value.primaryColumns, I = g.value.rightColumns;
327
+ g.value.rightColumns.forEach((L) => {
328
+ L.actualWidth = m(L, g.value, y), V += L.actualWidth;
329
329
  });
330
- const B = w - V, E = S[d.value];
331
- if (E && E(p, B), p.value.primaryColumnsWidth + V <= w)
332
- return p.value.primaryColumns = [...O, ...I], p.value.primaryColumnsWidth += V, p.value.rightColumns = [], p.value.rightColumnsWidth = 0, !0;
330
+ const B = w - V, k = S[d.value];
331
+ if (k && k(g, B), g.value.primaryColumnsWidth + V <= w)
332
+ return g.value.primaryColumns = [...O, ...I], g.value.primaryColumnsWidth += V, g.value.rightColumns = [], g.value.rightColumnsWidth = 0, !0;
333
333
  const _ = /* @__PURE__ */ new Map();
334
- return _.set("primary", []), _.set("right", []), p.value.primaryColumns.reduce((L, P) => {
334
+ return _.set("primary", []), _.set("right", []), g.value.primaryColumns.reduce((L, P) => {
335
335
  var $, q;
336
336
  return P.fixed === "right" ? ($ = L.get("right")) == null || $.push(P) : (q = L.get("primary")) == null || q.push(P), L;
337
- }, _), (k = _.get("right")) != null && k.length && (p.value.primaryColumns = [..._.get("primary") || []], p.value.rightColumns = [..._.get("right") || []]), p.value.primaryColumnsWidth = 0, p.value.rightColumnsWidth = 0, !1;
337
+ }, _), (E = _.get("right")) != null && E.length && (g.value.primaryColumns = [..._.get("primary") || []], g.value.rightColumns = [..._.get("right") || []]), g.value.primaryColumnsWidth = 0, g.value.rightColumnsWidth = 0, !1;
338
338
  }
339
339
  function b() {
340
340
  if (n.value) {
341
341
  e.value.leftColumnsWidth = 0, e.value.primaryColumnsWidth = 0, e.value.rightColumnsWidth = 0;
342
- const p = n.value.clientWidth - f.value;
342
+ const g = n.value.clientWidth - f.value;
343
343
  e.value.leftColumns.forEach((w) => {
344
- w.actualWidth = m(w, e.value, p), e.value.leftColumnsWidth += w.actualWidth;
344
+ w.actualWidth = m(w, e.value, g), e.value.leftColumnsWidth += w.actualWidth;
345
345
  });
346
- const y = p - e.value.leftColumnsWidth;
347
- if (v(e, p, y))
346
+ const y = g - e.value.leftColumnsWidth;
347
+ if (v(e, g, y))
348
348
  i.value = y;
349
349
  else {
350
350
  e.value.rightColumns.forEach((O) => {
351
- O.actualWidth = m(O, e.value, p), e.value.rightColumnsWidth += O.actualWidth;
351
+ O.actualWidth = m(O, e.value, g), e.value.rightColumnsWidth += O.actualWidth;
352
352
  });
353
- const w = p - e.value.leftColumnsWidth - e.value.rightColumnsWidth, V = S[d.value];
353
+ const w = g - e.value.leftColumnsWidth - e.value.rightColumnsWidth, V = S[d.value];
354
354
  V && V(e, w), i.value = w;
355
355
  }
356
356
  M(e), e.value = Object.assign({}, e.value);
357
357
  }
358
358
  }
359
359
  return ve(() => {
360
- var p;
361
- return (p = t.columnOption) == null ? void 0 : p.fitColumns;
362
- }, (p, y) => {
363
- p !== y && p && b();
364
- }), ve(d, (p, y) => {
365
- p !== y && s.value && b();
360
+ var g;
361
+ return (g = t.columnOption) == null ? void 0 : g.fitColumns;
362
+ }, (g, y) => {
363
+ g !== y && g && b();
364
+ }), ve(d, (g, y) => {
365
+ g !== y && s.value && b();
366
366
  }), { calculateColumnHeaders: M, calculateColumnsSize: b, calculateColumnsWidth: x };
367
367
  }
368
368
  const uo = "";
@@ -408,10 +408,10 @@ function co(t) {
408
408
  return (v == null ? void 0 : v.groupFields) || [];
409
409
  });
410
410
  function a() {
411
- i.value.rightColumns.forEach((p) => {
412
- p.showSetting = !1;
413
- }), i.value.primaryColumns.forEach((p) => {
414
- p.showSetting = !1;
411
+ i.value.rightColumns.forEach((g) => {
412
+ g.showSetting = !1;
413
+ }), i.value.primaryColumns.forEach((g) => {
414
+ g.showSetting = !1;
415
415
  });
416
416
  const v = i.value.rightColumns, b = i.value.primaryColumns;
417
417
  v.length > 0 ? v[v.length - 1].showSetting = !0 : b.length > 0 && (b[b.length - 1].showSetting = !0);
@@ -419,7 +419,7 @@ function co(t) {
419
419
  function c(v) {
420
420
  o();
421
421
  const b = /* @__PURE__ */ new Map();
422
- return l.value && l.value.reduce((p, y) => (p.set(y, !0), p), b), v.reduce((p, y) => (y.filter = y.filter || uo, y.fixed === "left" ? (i.value.leftColumns.push(y), i.value.leftColumnsMap.set(y.field, y), i.value.leftColumnsWidth += y.actualWidth) : y.fixed === "right" ? (i.value.rightColumns.push(y), i.value.rightColumnsMap.set(y.field, y), i.value.rightColumnsWidth += y.actualWidth) : (i.value.primaryColumns.push(y), i.value.primaryColumnsMap.set(y.field, y), i.value.primaryColumnsWidth += y.actualWidth), b.has(y.field) && i.value.summaryColumns.push(y), p), i), a(), i;
422
+ return l.value && l.value.reduce((g, y) => (g.set(y, !0), g), b), v.reduce((g, y) => (y.filter = y.filter || uo, y.fixed === "left" ? (i.value.leftColumns.push(y), i.value.leftColumnsMap.set(y.field, y), i.value.leftColumnsWidth += y.actualWidth) : y.fixed === "right" ? (i.value.rightColumns.push(y), i.value.rightColumnsMap.set(y.field, y), i.value.rightColumnsWidth += y.actualWidth) : (i.value.primaryColumns.push(y), i.value.primaryColumnsMap.set(y.field, y), i.value.primaryColumnsWidth += y.actualWidth), b.has(y.field) && i.value.summaryColumns.push(y), g), i), a(), i;
423
423
  }
424
424
  c(t.columns);
425
425
  const u = H(() => i.value.leftColumns.length > 0), f = H(() => i.value.rightColumns.length > 0);
@@ -429,7 +429,7 @@ function co(t) {
429
429
  function d(v, b) {
430
430
  return v.sortOrder = v.sortOrder || 0, b.sortOrder = b.sortOrder || 0, v.sortOrder === b.sortOrder ? 0 : v.sortOrder < b.sortOrder ? -1 : 1;
431
431
  }
432
- function g(v, b) {
432
+ function p(v, b) {
433
433
  return v.sortOrder = v.sortOrder || 0, b.sortOrder = b.sortOrder || 0, v.sortOrder === b.sortOrder ? 0 : v.sortOrder < b.sortOrder ? 1 : -1;
434
434
  }
435
435
  function m(v, b) {
@@ -442,25 +442,25 @@ function co(t) {
442
442
  function C() {
443
443
  const v = [];
444
444
  i.value.leftColumns.reduce(s, v), i.value.primaryColumns.reduce(s, v), i.value.rightColumns.reduce(s, v);
445
- const b = Math.max(...v.map((p) => p.sortOrder || 0));
446
- return v.sort(g).map((p) => {
447
- const y = p.sortOrder || b + 1;
448
- return p.sortOrder = y, p;
449
- }).sort(d).map((p, y) => {
445
+ const b = Math.max(...v.map((g) => g.sortOrder || 0));
446
+ return v.sort(p).map((g) => {
447
+ const y = g.sortOrder || b + 1;
448
+ return g.sortOrder = y, g;
449
+ }).sort(d).map((g, y) => {
450
450
  const w = y + 1;
451
- return p.sortOrder = w, p;
451
+ return g.sortOrder = w, g;
452
452
  });
453
453
  }
454
- function F(v, b, p) {
454
+ function F(v, b, g) {
455
455
  const y = v.map((w) => {
456
- const V = p.getSorterByColumn(w), O = w.sort === "asc", I = w.sort === "desc", B = O ? V.ascend : I ? V.decend : void 0;
456
+ const V = g.getSorterByColumn(w), O = w.sort === "asc", I = w.sort === "desc", B = O ? V.ascend : I ? V.decend : void 0;
457
457
  return { field: w.field, compare: B };
458
458
  });
459
459
  b.setSorters(y);
460
460
  }
461
461
  function S(v, b) {
462
- const p = C();
463
- F(p, v, b);
462
+ const g = C();
463
+ F(g, v, b);
464
464
  }
465
465
  function M(v) {
466
466
  }
@@ -482,7 +482,7 @@ function co(t) {
482
482
  }
483
483
  function fo(t, e, n, i, o, r, l, a) {
484
484
  const c = T(i.value - 1 + o), u = T(0), { renderDataRow: f } = r, s = l ? l.renderGroupRow : f, d = a ? a.renderSummaryRow : f;
485
- function g(C) {
485
+ function p(C) {
486
486
  let F = f;
487
487
  return C.__fv_data_grid_group_row__ && (F = s), C.__fv_data_grid_group_summary__ && (F = d), F;
488
488
  }
@@ -490,11 +490,11 @@ function fo(t, e, n, i, o, r, l, a) {
490
490
  const { dataView: x } = n, v = [];
491
491
  if (x.value.length > 0) {
492
492
  const b = M ? Date.now().toString() : "";
493
- let p = C, y = 0;
493
+ let g = C, y = 0;
494
494
  const w = F - C + 1;
495
- for (; v.length < w && p < x.value.length; ) {
496
- const V = x.value[p], O = x.value[p - 1] || S, I = v[y - 1], B = O ? (O.__fv_data_position__ || 0) + (O.__fv_data_height__ || 0) : 0, _ = g(V)(V, O, I, p, B, e.value, v);
497
- _.refreshKey = b, v.push(_), y++, p++;
495
+ for (; v.length < w && g < x.value.length; ) {
496
+ const V = x.value[g], O = x.value[g - 1] || S, I = v[y - 1], B = O ? (O.__fv_data_position__ || 0) + (O.__fv_data_height__ || 0) : 0, _ = p(V)(V, O, I, g, B, e.value, v);
497
+ _.refreshKey = b, v.push(_), y++, g++;
498
498
  }
499
499
  }
500
500
  return u.value = v.length > 0 ? v[0].index : 0, c.value = v.length > 0 ? v[v.length - 1].index : 0, v;
@@ -502,8 +502,8 @@ function fo(t, e, n, i, o, r, l, a) {
502
502
  function h(C, F, S) {
503
503
  const M = F.groupField || "", { groupValue: x, raw: v } = F;
504
504
  n[C](M, x, v.groupParents || []);
505
- const { dataView: b } = n, p = S[0].index, y = Math.min(p + i.value + o + 1, b.value.length - 1);
506
- return m(p, y);
505
+ const { dataView: b } = n, g = S[0].index, y = Math.min(g + i.value + o + 1, b.value.length - 1);
506
+ return m(g, y);
507
507
  }
508
508
  return { getVisualData: m, maxVisibleRowIndex: c, minVisibleRowIndex: u, toggleGroupRow: h };
509
509
  }
@@ -542,10 +542,10 @@ function vo(t) {
542
542
  }
543
543
  }
544
544
  function n(a, c, u, f) {
545
- var s, d, g, m, h;
545
+ var s, d, p, m, h;
546
546
  switch ((s = a.onClick) == null || s.call(a, c, u.dataIndex, u), a.command) {
547
547
  case "edit":
548
- u.status, Xe.editing, (g = (d = t.commandOption) == null ? void 0 : d.onClickEditCommand) == null || g.call(d, f, u, a, c);
548
+ u.status, Xe.editing, (p = (d = t.commandOption) == null ? void 0 : d.onClickEditCommand) == null || p.call(d, f, u, a, c);
549
549
  break;
550
550
  case "accept":
551
551
  case "cancel":
@@ -585,8 +585,8 @@ function vo(t) {
585
585
  }));
586
586
  }
587
587
  function r(a, c, u, f) {
588
- var s, d;
589
- (s = c.onClick) == null || s.call(c, a, u.dataIndex, u), (d = t.commandOption) == null || d.onHandleAction(f, u, c, a);
588
+ var s, d, p;
589
+ (s = c.onClick) == null || s.call(c, a, u.dataIndex, u), (p = (d = t.commandOption) == null ? void 0 : d.onHandleAction) == null || p.call(d, f, u, c, a);
590
590
  }
591
591
  function l(a, c) {
592
592
  var s;
@@ -595,7 +595,7 @@ function vo(t) {
595
595
  } = a;
596
596
  return ((s = u == null ? void 0 : u.commands) == null ? void 0 : s.find((d) => d.command)) ? o(a, c) : R(fi, {
597
597
  data: u.commands,
598
- count: 1,
598
+ count: 2,
599
599
  size: "small",
600
600
  placement: "auto",
601
601
  onClick: (d) => {
@@ -637,10 +637,8 @@ function bo(t) {
637
637
  commands: n.value,
638
638
  resizable: !1,
639
639
  halign: ((c = t.commandOption) == null ? void 0 : c.halign) || "left",
640
- visible: !0
641
- // formatter: props.commandOption.formatter && typeof props.commandOption.formatter ?
642
- // (cell: VisualDataCell, row: VisualData) =>
643
- // props.commandOption.formatter(cell, row) : null
640
+ visible: !0,
641
+ formatter: t.commandOption.formatter && typeof t.commandOption.formatter ? (s, d) => t.commandOption.formatter(s, d) : null
644
642
  };
645
643
  t.commandOption.formatter && typeof t.commandOption.formatter != "function" && (f.formatter = (s, d) => t.commandOption.formatter(s, d)), a.value.push(f);
646
644
  }
@@ -650,7 +648,7 @@ function bo(t) {
650
648
  function Co(t, e) {
651
649
  var u;
652
650
  const n = T((u = t.columnOption) == null ? void 0 : u.groups);
653
- function i(f, s, d, g, m) {
651
+ function i(f, s, d, p, m) {
654
652
  const h = {
655
653
  actualWidth: 0,
656
654
  children: [],
@@ -666,7 +664,7 @@ function Co(t, e) {
666
664
  showPopover: !1,
667
665
  column: null,
668
666
  sortType: "none"
669
- }, C = g || h;
667
+ }, C = p || h;
670
668
  if (f.group) {
671
669
  let F = 1;
672
670
  f.group.reduce((S, M) => {
@@ -687,9 +685,9 @@ function Co(t, e) {
687
685
  groupedCells: /* @__PURE__ */ new Map(),
688
686
  fieldToRootMap: /* @__PURE__ */ new Map()
689
687
  };
690
- return n.value && n.value.reduce((d, g) => {
691
- const m = i(g, f, null, null, s);
692
- return d.groupedCells.set(g.field, m), d;
688
+ return n.value && n.value.reduce((d, p) => {
689
+ const m = i(p, f, null, null, s);
690
+ return d.groupedCells.set(p.field, m), d;
693
691
  }, s), s;
694
692
  }
695
693
  function r(f) {
@@ -700,26 +698,26 @@ function Co(t, e) {
700
698
  }
701
699
  function l(f, s) {
702
700
  const d = e.value.headerDepth;
703
- f.forEach((g) => {
704
- g.layer = s ? s.layer + 1 : 1;
705
- const m = g.children && g.children.length === 0;
706
- g.depth = m ? d - (g.layer - 1) : 1, g.left = m ? g.left : r(g.children), g.children && l(g.children, g);
701
+ f.forEach((p) => {
702
+ p.layer = s ? s.layer + 1 : 1;
703
+ const m = p.children && p.children.length === 0;
704
+ p.depth = m ? d - (p.layer - 1) : 1, p.left = m ? p.left : r(p.children), p.children && l(p.children, p);
707
705
  });
708
706
  }
709
707
  function a(f, s) {
710
708
  const d = /* @__PURE__ */ new Map();
711
- return f.forEach((g) => {
712
- const m = s.fieldToRootMap.get(g.field), h = m != null;
713
- h && !d.has(m.field) && d.set(m.field, m), h || d.set(g.field, g);
709
+ return f.forEach((p) => {
710
+ const m = s.fieldToRootMap.get(p.field), h = m != null;
711
+ h && !d.has(m.field) && d.set(m.field, m), h || d.set(p.field, p);
714
712
  }), l(Array.from(d.values())), d;
715
713
  }
716
714
  function c(f) {
717
715
  let s = /* @__PURE__ */ new Map(), d = 0;
718
- if (f.reduce((g, m) => {
716
+ if (f.reduce((p, m) => {
719
717
  let h = Re.none;
720
718
  h = m.sortable ? h | Re.sortable : h, h = m.filterable ? h | Re.filterable : h, h = m.sort && m.sort !== "none" ? h | Re.sorted | (m.sort === "asc" ? Re.ascending : Re.descending) : h;
721
719
  const C = m.field;
722
- return g.set(C, {
720
+ return p.set(C, {
723
721
  actualWidth: m.actualWidth || 0,
724
722
  children: [],
725
723
  depth: 1,
@@ -737,10 +735,10 @@ function Co(t, e) {
737
735
  sortType: m.sort || "none",
738
736
  showSetting: m.showSetting,
739
737
  draggable: m.draggable
740
- }), d += m.actualWidth || 0, g;
738
+ }), d += m.actualWidth || 0, p;
741
739
  }, s), n.value) {
742
- const g = o(s);
743
- s = a(s, g);
740
+ const p = o(s);
741
+ s = a(s, p);
744
742
  }
745
743
  return s;
746
744
  }
@@ -748,7 +746,7 @@ function Co(t, e) {
748
746
  }
749
747
  function wo(t, e) {
750
748
  var v;
751
- const { sum: n, toFixed: i } = zt(), { uuid: o } = Et(), { idField: r } = e, l = T(t.summary), a = T(t.group), c = T(((v = t.group) == null ? void 0 : v.groupFields) || []), u = H(() => {
749
+ const { sum: n, toFixed: i } = zt(), { uuid: o } = kt(), { idField: r } = e, l = T(t.summary), a = T(t.group), c = T(((v = t.group) == null ? void 0 : v.groupFields) || []), u = H(() => {
752
750
  var b;
753
751
  return (b = t.group) == null ? void 0 : b.enable;
754
752
  }), f = H(() => {
@@ -760,52 +758,52 @@ function wo(t, e) {
760
758
  }), d = H(() => {
761
759
  const b = a.value;
762
760
  return b && b.showSummary;
763
- }), g = T(0), m = /* @__PURE__ */ new Map();
761
+ }), p = T(0), m = /* @__PURE__ */ new Map();
764
762
  let h = [];
765
- function C(b, p, y, w, V) {
763
+ function C(b, g, y, w, V) {
766
764
  const O = w[y];
767
- O && (p.reduce((I, B, E) => {
765
+ O && (g.reduce((I, B, k) => {
768
766
  var L;
769
767
  const _ = B[O];
770
- let k = I.get(_);
771
- if (!k) {
768
+ let E = I.get(_);
769
+ if (!E) {
772
770
  const P = s.value.reduce(($, q) => ($.set(q, 0), $), /* @__PURE__ */ new Map());
773
- k = {
771
+ E = {
774
772
  field: O,
775
773
  title: ((L = V.get(O)) == null ? void 0 : L.title) || O,
776
774
  value: _,
777
775
  layer: y,
778
776
  details: [],
779
777
  groupSummaries: P
780
- }, I.set(_, k);
778
+ }, I.set(_, E);
781
779
  }
782
780
  return s.value && s.value.forEach((P) => {
783
- if (k) {
784
- const $ = k.groupSummaries.get(P) || 0;
785
- k.groupSummaries.set(
781
+ if (E) {
782
+ const $ = E.groupSummaries.get(P) || 0;
783
+ E.groupSummaries.set(
786
784
  P,
787
785
  n([$, Ce(B, P)])
788
786
  );
789
787
  }
790
788
  }), s.value && s.value.forEach((P) => {
791
- if (k) {
792
- const $ = k.groupSummaries.get(P) || 0;
793
- k.groupSummaries.set(P, i($, 2));
789
+ if (E) {
790
+ const $ = E.groupSummaries.get(P) || 0;
791
+ E.groupSummaries.set(P, i($, 2));
794
792
  }
795
- }), k.details.push(B), I;
793
+ }), E.details.push(B), I;
796
794
  }, b), y < w.length - 1 && b.forEach((I, B) => {
797
795
  I.nestGroup = /* @__PURE__ */ new Map(), C(I.nestGroup, I.details, y + 1, w, V), I.details = [];
798
796
  }));
799
797
  }
800
- function F(b, p) {
801
- return t.group && t.group.formatter ? t.group.formatter(b.value, { ...b, total: p }) : `${b.title}:${b.value} (${p})`;
798
+ function F(b, g) {
799
+ return t.group && t.group.formatter ? t.group.formatter(b.value, { ...b, total: g }) : `${b.title}:${b.value} (${g})`;
802
800
  }
803
- function S(b, p) {
801
+ function S(b, g) {
804
802
  const y = [];
805
803
  return b.forEach((w) => {
806
804
  const V = {
807
805
  // 如果存在二级分组,分组行标识保持唯一
808
- [r.value]: `group_of_${p ? p[r.value] + "_" : ""}${w.field}_${w.value}`,
806
+ [r.value]: `group_of_${g ? g[r.value] + "_" : ""}${w.field}_${w.value}`,
809
807
  __fv_data_grid_group_collapse__: !1,
810
808
  __fv_data_grid_group_field__: w.field,
811
809
  __fv_data_grid_group_layer__: w.layer,
@@ -813,7 +811,7 @@ function wo(t, e) {
813
811
  __fv_data_grid_group_value__: w.value,
814
812
  groupParents: []
815
813
  };
816
- p && (V.groupParents = [...p.groupParents, p]);
814
+ g && (V.groupParents = [...g.groupParents, g]);
817
815
  let O = 0;
818
816
  if (y.push(V), w.nestGroup) {
819
817
  const I = S(w.nestGroup, V);
@@ -826,7 +824,7 @@ function wo(t, e) {
826
824
  __fv_data_grid_group_summary__: !0
827
825
  };
828
826
  I[r.value] = `summary_of_${w.field}_${w.value}`, I[w.field] = Array.from(w.groupSummaries.entries()).reduce(
829
- (B, [E, _]) => `${B} ${E} total:${_} `,
827
+ (B, [k, _]) => `${B} ${k} total:${_} `,
830
828
  ""
831
829
  ), y.push(I);
832
830
  }
@@ -837,8 +835,8 @@ function wo(t, e) {
837
835
  w.__fv_data_index__ = V;
838
836
  }), y;
839
837
  }
840
- function M(b, p, y) {
841
- return !b || b.length === 0 || !p.length ? p : (b.join(","), m.clear(), h = [], p = p.filter((w) => !w.__fv_data_grid_group_row__), C(m, p, 0, b, y), h = S(m), h);
838
+ function M(b, g, y) {
839
+ return !b || b.length === 0 || !g.length ? g : (b.join(","), m.clear(), h = [], g = g.filter((w) => !w.__fv_data_grid_group_row__), C(m, g, 0, b, y), h = S(m), h);
842
840
  }
843
841
  function x(b) {
844
842
  return {
@@ -847,7 +845,7 @@ function wo(t, e) {
847
845
  "fv-grid-group-row-icon-collapse": b.collapse
848
846
  };
849
847
  }
850
- return { collpaseGroupIconClass: x, generateGroupData: M, groupFields: c, shouldGroupingData: u, showGroupPanel: f, groupRowSize: g };
848
+ return { collpaseGroupIconClass: x, generateGroupData: M, groupFields: c, shouldGroupingData: u, showGroupPanel: f, groupRowSize: p };
851
849
  }
852
850
  function vn(t) {
853
851
  const e = "parent", n = "layer", i = "hasChildren", o = (l, a = 1, c = [], u = null) => (l = l || [], l.reduce((f, s) => (s.id = s.id || s.data[t.idField], s[e] = u, s[n] = a, s[i] = s[i] === void 0 ? !1 : s[i], s.data && Object.keys(s.data).forEach((d) => {
@@ -856,7 +854,7 @@ function vn(t) {
856
854
  return { flatTreeData: o, isNestedTree: (l) => l.some((a) => Array.isArray(a.children)) };
857
855
  }
858
856
  function So(t, e, n, i) {
859
- const o = T(0), r = T(!!t.hierarchy), { idField: l } = i, { collapseField: a, hasChildrenField: c, parentIdField: u } = n, f = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), { flatTreeData: g, isNestedTree: m } = vn(t);
857
+ const o = T(0), r = T(!!t.hierarchy), { idField: l } = i, { collapseField: a, hasChildrenField: c, parentIdField: u } = n, f = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), { flatTreeData: p, isNestedTree: m } = vn(t);
860
858
  function h(W, j) {
861
859
  s.clear(), W.reduce((D, Y) => {
862
860
  const ie = Y[u.value] !== void 0 ? Y[u.value] : "";
@@ -916,18 +914,18 @@ function So(t, e, n, i) {
916
914
  }, W);
917
915
  });
918
916
  }
919
- function p(W) {
917
+ function g(W) {
920
918
  W.children.forEach((D) => {
921
919
  D.parents = new Map([
922
920
  ...W.parents.entries(),
923
921
  [W.id, W]
924
- ]), p(D);
922
+ ]), g(D);
925
923
  });
926
924
  }
927
925
  function y(W, j) {
928
926
  W.filter((D) => D[u.value] === void 0 || D[u.value] === "").forEach((D) => {
929
927
  const Y = D[l.value], ie = j.get(Y);
930
- p(ie);
928
+ g(ie);
931
929
  });
932
930
  }
933
931
  function w(W) {
@@ -954,24 +952,24 @@ function So(t, e, n, i) {
954
952
  const j = W[l.value], D = f.get(j);
955
953
  return D && D.visibleInHierarchy;
956
954
  }
957
- function E() {
955
+ function k() {
958
956
  o.value = Date.now();
959
957
  }
960
958
  function _(W, j) {
961
959
  j.forEach((D) => {
962
960
  const Y = f.get(D[l.value]), ie = f.get(W), ce = d.get(W);
963
961
  ie && ce && (Y.visibleInHierarchy = !ce[a.value] && ie.visibleInHierarchy);
964
- }), E();
962
+ }), k();
965
963
  }
966
- function k(W) {
964
+ function E(W) {
967
965
  if (s.has(W)) {
968
966
  const D = s.get(W);
969
- _(W, D), D.map((Y) => Y[l.value]).forEach((Y) => k(Y));
967
+ _(W, D), D.map((Y) => Y[l.value]).forEach((Y) => E(Y));
970
968
  }
971
969
  }
972
970
  function L(W) {
973
971
  const j = W[l.value];
974
- k(j);
972
+ E(j);
975
973
  }
976
974
  function P(W, j, D = 0) {
977
975
  W.forEach((Y) => {
@@ -1031,7 +1029,7 @@ function So(t, e, n, i) {
1031
1029
  if (f.get(ie)) {
1032
1030
  const ge = D.value.findIndex((pe) => pe[l.value] === ie) + 1;
1033
1031
  let he = j;
1034
- m(j) && (he = g(j)), he.forEach((pe) => {
1032
+ m(j) && (he = p(j)), he.forEach((pe) => {
1035
1033
  pe[u.value] = ie;
1036
1034
  }), D.value.splice(ge, 0, ...he);
1037
1035
  }
@@ -1062,19 +1060,19 @@ function So(t, e, n, i) {
1062
1060
  };
1063
1061
  }
1064
1062
  function Mo(t, e, n, i, o) {
1065
- const { toNumber: r, sum: l, toFixed: a } = zt(), c = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), g = T([]), m = T([]), h = wo(t, o), { generateGroupData: C, groupFields: F, shouldGroupingData: S } = h, M = T(t.data || []), x = So(t, M, i, o), {
1063
+ const { toNumber: r, sum: l, toFixed: a } = zt(), c = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = T([]), m = T([]), h = wo(t, o), { generateGroupData: C, groupFields: F, shouldGroupingData: S } = h, M = T(t.data || []), x = So(t, M, i, o), {
1066
1064
  collapseTo: v,
1067
1065
  expandTo: b,
1068
- generateHierarchyData: p,
1066
+ generateHierarchyData: g,
1069
1067
  hasRealChildren: y,
1070
1068
  insertSibling: w,
1071
1069
  insertChild: V,
1072
1070
  insertChildren: O,
1073
1071
  isVisibleInTree: I,
1074
1072
  shouldStratifyData: B,
1075
- toggleChildrenVisibiltyByCollapseStatus: E,
1073
+ toggleChildrenVisibiltyByCollapseStatus: k,
1076
1074
  trimmedOriginalData: _,
1077
- checkVisibleInHierarchy: k
1075
+ checkVisibleInHierarchy: E
1078
1076
  } = x, { idField: L, reviseIdentifyField: P } = o, $ = T(t.newDataItem), q = T(t.data || []), Q = T(t.data), { flatTreeData: A, isNestedTree: te } = vn(t);
1079
1077
  if (t.hierarchy && te(t.data)) {
1080
1078
  const z = A(t.data);
@@ -1093,13 +1091,13 @@ function Mo(t, e, n, i, o) {
1093
1091
  function ge(z, ee) {
1094
1092
  const ae = Math.ceil(z.length / ee);
1095
1093
  let me = 0;
1096
- const Ee = [], Le = [], qe = [];
1094
+ const ke = [], Le = [], qe = [];
1097
1095
  for (; me < ae; ) {
1098
1096
  const Oe = z.slice(me * ee, (me + 1) * ee), we = C(F.value, Oe, e);
1099
- Le[me] = we.filter((Se) => Se.__fv_data_grid_group_row__).length, Ee.push(...we), me++;
1097
+ Le[me] = we.filter((Se) => Se.__fv_data_grid_group_row__).length, ke.push(...we), me++;
1100
1098
  }
1101
1099
  return Le.reduce((Oe, we, Se) => (Oe = Oe + we, qe.push(Oe), Oe), 0), {
1102
- groupData: Ee,
1100
+ groupData: ke,
1103
1101
  groupRowSizeList: Le,
1104
1102
  accumulateGroupRowSize: qe
1105
1103
  };
@@ -1108,19 +1106,19 @@ function Mo(t, e, n, i, o) {
1108
1106
  var we;
1109
1107
  q.value = M.value, ie.value && (W.value = q.value.length), S.value && !ie.value && (q.value = C(F.value, M.value, e)), J = ue.value.reduce((Se, xe) => (Se.set(xe, 0), Se), J);
1110
1108
  const z = 0, ee = D(), ae = (Y.value - 1) * ee;
1111
- let Ee = ae > q.value.length - 1 || ce.value ? z : ae, Le = ce.value ? q.value.length : Math.min(Ee + ee, q.value.length);
1109
+ let ke = ae > q.value.length - 1 || ce.value ? z : ae, Le = ce.value ? q.value.length : Math.min(ke + ee, q.value.length);
1112
1110
  if (S.value && ie.value) {
1113
1111
  const { accumulateGroupRowSize: Se, groupData: xe, groupRowSizeList: Te } = ge(M.value, ee);
1114
1112
  q.value = xe;
1115
1113
  const rt = Te[Y.value - 1];
1116
- Ee += Y.value - 2 < 0 ? 0 : Se[Y.value - 2], Le = Ee + ee + rt;
1114
+ ke += Y.value - 2 < 0 ? 0 : Se[Y.value - 2], Le = ke + ee + rt;
1117
1115
  }
1118
1116
  let qe = 0;
1119
1117
  const Oe = [];
1120
1118
  if (q.value.length) {
1121
1119
  P(q.value);
1122
1120
  const Se = L.value !== t.idField;
1123
- for (let xe = Ee; xe < Le; xe++) {
1121
+ for (let xe = ke; xe < Le; xe++) {
1124
1122
  const Te = q.value[xe];
1125
1123
  Te.__fv_data_grid_group_row__ ? (qe = 0, Te.__fv_data_index__ = "") : Te.__fv_data_grid_group_summary__ ? Te.__fv_data_index__ = "" : (qe++, Te.__fv_data_index__ = qe + (Y.value - 1) * ee), Te.__fv_index__ = xe, Te.__fv_visible_index__ = xe, t.rowOption && t.rowOption.disabledField && (Te.__fv_disabled__ = Te[(we = t.rowOption) == null ? void 0 : we.disabledField]), Se && (Te[L.value] = xe), ue.value.forEach((rt) => {
1126
1124
  const Rt = J.get(rt) || 0;
@@ -1128,21 +1126,21 @@ function Mo(t, e, n, i, o) {
1128
1126
  }), Oe.push(Te);
1129
1127
  }
1130
1128
  }
1131
- return B.value && p(Oe), ue.value.forEach((Se) => {
1129
+ return B.value && g(Oe), ue.value.forEach((Se) => {
1132
1130
  const xe = J.get(Se) || 0;
1133
1131
  J.set(Se, a(xe, 2));
1134
1132
  }), Q.value = [...Oe], Oe;
1135
1133
  }
1136
- const pe = T(he()), Ie = H(() => (k.value, pe.value.filter((z) => B.value ? z.__fv_visible__ !== !1 && I(z) : z.__fv_visible__ !== !1)));
1134
+ const pe = T(he()), Ie = H(() => (E.value, pe.value.filter((z) => B.value ? z.__fv_visible__ !== !1 && I(z) : z.__fv_visible__ !== !1)));
1137
1135
  function $e() {
1138
1136
  Ie.value.forEach((z, ee) => (z.__fv_visible_index__ = ee, z));
1139
1137
  }
1140
1138
  function N(z, ee, ae = !1) {
1141
1139
  var Oe;
1142
1140
  const me = ae ? he() : [...Q.value];
1143
- let Ee = me;
1144
- ((Oe = t.filter) == null ? void 0 : Oe.mode) !== "server" && (Ee = me.filter((we) => n.apply(we)));
1145
- const Le = z && z.length ? Ee.filter((we) => z.reduce((Se, xe) => Se && xe.filter(we), !0)) : Ee, qe = ee && ee.length ? Le.sort((we, Se) => {
1141
+ let ke = me;
1142
+ ((Oe = t.filter) == null ? void 0 : Oe.mode) !== "server" && (ke = me.filter((we) => n.apply(we)));
1143
+ const Le = z && z.length ? ke.filter((we) => z.reduce((Se, xe) => Se && xe.filter(we), !0)) : ke, qe = ee && ee.length ? Le.sort((we, Se) => {
1146
1144
  const xe = [...ee], Te = xe.shift(), rt = Ce(we, Te.field) === void 0 || Ce(we, Te.field) === null ? "" : Ce(we, Te.field), Rt = Ce(Se, Te.field) === void 0 || Ce(Se, Te.field) === null ? "" : Ce(Se, Te.field);
1147
1145
  let Nt = Te.compare(
1148
1146
  rt,
@@ -1175,24 +1173,24 @@ function Mo(t, e, n, i, o) {
1175
1173
  return d.delete(z), m.value = Array.from(d.values()), N([], m.value);
1176
1174
  }
1177
1175
  function ye(z, ee) {
1178
- return u.set(z, ee), g.value = Array.from(u.values()), N([], Array.from(d.values()));
1176
+ return u.set(z, ee), p.value = Array.from(u.values()), N([], Array.from(d.values()));
1179
1177
  }
1180
1178
  function Ve(z) {
1181
- return u.delete(z), g.value = Array.from(u.values()), N([], Array.from(d.values()), !0);
1179
+ return u.delete(z), p.value = Array.from(u.values()), N([], Array.from(d.values()), !0);
1182
1180
  }
1183
1181
  function ze() {
1184
- return u.clear(), g.value = [], N([], Array.from(d.values()), !0);
1182
+ return u.clear(), p.value = [], N([], Array.from(d.values()), !0);
1185
1183
  }
1186
1184
  function Je(z, ee, ae) {
1187
1185
  const me = `group_of_${z}_${ee}`;
1188
1186
  c.set(me, !0);
1189
- const Ee = (Le) => Le[z] !== ee;
1187
+ const ke = (Le) => Le[z] !== ee;
1190
1188
  return f.set(`collapse_${z}_${ee}`, {
1191
1189
  field: z,
1192
1190
  fieldName: z,
1193
1191
  fieldType: "string",
1194
1192
  filterValue: ee,
1195
- filter: Ee
1193
+ filter: ke
1196
1194
  }), N(Array.from(f.values()), Array.from(d.values()));
1197
1195
  }
1198
1196
  function Ke(z) {
@@ -1213,25 +1211,25 @@ function Mo(t, e, n, i, o) {
1213
1211
  fieldType: "string",
1214
1212
  filterValue: String(ee),
1215
1213
  filter: ae
1216
- }), N(Array.from(s.values()), Array.from(d.values())), p(pe.value);
1214
+ }), N(Array.from(s.values()), Array.from(d.values())), g(pe.value);
1217
1215
  }
1218
1216
  function Me(z) {
1219
1217
  const ee = z[L.value];
1220
1218
  s.delete(`fold_${ee}`);
1221
1219
  }
1222
1220
  function je(z) {
1223
- Me(z.raw), N(Array.from(s.values()), Array.from(d.values()), !0), p(pe.value);
1221
+ Me(z.raw), N(Array.from(s.values()), Array.from(d.values()), !0), g(pe.value);
1224
1222
  }
1225
1223
  function Ne() {
1226
1224
  const z = he();
1227
- pe.value = z, N(Array.from(s.values()), Array.from(d.values())), t.hierarchy && p(pe.value);
1225
+ pe.value = z, N(Array.from(s.values()), Array.from(d.values())), t.hierarchy && g(pe.value);
1228
1226
  }
1229
1227
  function Vt(z) {
1230
1228
  const ae = t.hierarchy && te(z) ? A(z) : z;
1231
1229
  M.value = ae, Ne();
1232
1230
  }
1233
1231
  function Tt(z, ee, ae) {
1234
- return (z && z.length ? pe.value.filter((Ee, Le) => z.reduce((qe, Oe) => qe && Oe.filter(Ee), !0)) : pe.value).slice(ee, ae);
1232
+ return (z && z.length ? pe.value.filter((ke, Le) => z.reduce((qe, Oe) => qe && Oe.filter(ke), !0)) : pe.value).slice(ee, ae);
1235
1233
  }
1236
1234
  function Bt(z) {
1237
1235
  const ee = D(), ae = Math.ceil(W.value / ee);
@@ -1293,7 +1291,7 @@ function Mo(t, e, n, i, o) {
1293
1291
  }
1294
1292
  function ot(z) {
1295
1293
  return z.map((ae) => {
1296
- const me = Q.value.findIndex((Ee) => "" + Ee[L.value] == "" + ae);
1294
+ const me = Q.value.findIndex((ke) => "" + ke[L.value] == "" + ae);
1297
1295
  return me > -1 ? Q.value[me] : null;
1298
1296
  }).filter((ae) => ae != null);
1299
1297
  }
@@ -1315,8 +1313,8 @@ function Mo(t, e, n, i, o) {
1315
1313
  J = ee.reduce((ae, me) => (ae.set(me, 0), ae), J);
1316
1314
  for (const ae of z)
1317
1315
  ee.forEach((me) => {
1318
- const Ee = J.get(me) || 0;
1319
- J.set(me, l([Ee, Ce(ae.raw, me) || 0]));
1316
+ const ke = J.get(me) || 0;
1317
+ J.set(me, l([ke, Ce(ae.raw, me) || 0]));
1320
1318
  });
1321
1319
  ee.forEach((ae) => {
1322
1320
  const me = J.get(ae) || 0;
@@ -1335,7 +1333,7 @@ function Mo(t, e, n, i, o) {
1335
1333
  editDataItem: gt,
1336
1334
  expand: se,
1337
1335
  expandTo: G,
1338
- filters: g,
1336
+ filters: p,
1339
1337
  fold: _e,
1340
1338
  getRange: Tt,
1341
1339
  getSelectionItems: ot,
@@ -1360,7 +1358,7 @@ function Mo(t, e, n, i, o) {
1360
1358
  sorters: m,
1361
1359
  summaries: J,
1362
1360
  updateSummary: ht,
1363
- toggleChildrenVisibiltyByCollapseStatus: E,
1361
+ toggleChildrenVisibiltyByCollapseStatus: k,
1364
1362
  totalItems: W,
1365
1363
  unFold: je,
1366
1364
  updateDataView: Ne,
@@ -1441,7 +1439,7 @@ const Fo = [
1441
1439
  }
1442
1440
  return !1;
1443
1441
  }
1444
- }, Eo = {
1442
+ }, ko = {
1445
1443
  equal: (t, e, n) => t ? String(n).split(",").includes(String(t[e])) : !1,
1446
1444
  in: (t, e, n) => {
1447
1445
  if (t) {
@@ -1451,7 +1449,7 @@ const Fo = [
1451
1449
  return !1;
1452
1450
  },
1453
1451
  notEqual: (t, e, n) => t ? String(n).split(",").findIndex((o) => o === String(t[e])) === -1 : !1
1454
- }, ko = {
1452
+ }, Eo = {
1455
1453
  equal: (t, e, n) => {
1456
1454
  if (t) {
1457
1455
  const i = Number.parseFloat(String(n)), o = Number.parseFloat(String(t[e]));
@@ -1497,8 +1495,8 @@ const Fo = [
1497
1495
  }, Io = /* @__PURE__ */ new Map([
1498
1496
  ["boolean", _o],
1499
1497
  ["datetime", xo],
1500
- ["enum", Eo],
1501
- ["number", ko],
1498
+ ["enum", ko],
1499
+ ["number", Eo],
1502
1500
  ["text", To]
1503
1501
  ]);
1504
1502
  function Po(t, e) {
@@ -1563,10 +1561,10 @@ function Po(t, e) {
1563
1561
  });
1564
1562
  const x = [];
1565
1563
  return n.value.forEach((v) => {
1566
- const { valueType: b } = v.value, p = v.value.value;
1564
+ const { valueType: b } = v.value, g = v.value.value;
1567
1565
  if (b === "boolean") {
1568
1566
  const y = [];
1569
- p.length === 1 && y.push({
1567
+ g.length === 1 && y.push({
1570
1568
  filterField: v.fieldCode,
1571
1569
  compare: v.compareType || v.compareType === 0 ? v.compareType : He.Like,
1572
1570
  value: v.value.value[0],
@@ -1574,7 +1572,7 @@ function Po(t, e) {
1574
1572
  expresstype: lt.Value,
1575
1573
  lbracket: v.lBracket || null,
1576
1574
  rbracket: v.rBracket || null
1577
- }), p.length > 1 && y.push({
1575
+ }), g.length > 1 && y.push({
1578
1576
  filterField: v.fieldCode,
1579
1577
  compare: v.compareType || v.compareType === 0 ? v.compareType : He.Like,
1580
1578
  value: v.value.value[0],
@@ -1609,9 +1607,9 @@ function Po(t, e) {
1609
1607
  return ((b = x.editor) == null ? void 0 : b.type) || l.get(v) || "text";
1610
1608
  }
1611
1609
  function f(x) {
1612
- var E, _, k, L, P;
1613
- const v = `field_filter_${x.field}`, b = Date.now(), p = x.field, y = ((E = x.column) == null ? void 0 : E.title) || "", w = ((_ = x.column) == null ? void 0 : _.dataType) || "string", V = a.get(w) || He.Equal, O = ((L = (k = x.column) == null ? void 0 : k.editor) == null ? void 0 : L.type) || l.get(w) || "text", I = r(O, (P = x.column) == null ? void 0 : P.filter), B = O === "lookup" || O === "combo-lookup" ? lt.SmartHelp : O === "combo-list" ? lt.Enum : lt.Value;
1614
- i.set(v, { id: v, fieldCode: p, fieldName: y, compareType: V, valueType: B, value: I, conditionId: b, relation: 1 }), n.value = Array.from(i.values());
1610
+ var k, _, E, L, P;
1611
+ const v = `field_filter_${x.field}`, b = Date.now(), g = x.field, y = ((k = x.column) == null ? void 0 : k.title) || "", w = ((_ = x.column) == null ? void 0 : _.dataType) || "string", V = a.get(w) || He.Equal, O = ((L = (E = x.column) == null ? void 0 : E.editor) == null ? void 0 : L.type) || l.get(w) || "text", I = r(O, (P = x.column) == null ? void 0 : P.filter), B = O === "lookup" || O === "combo-lookup" ? lt.SmartHelp : O === "combo-list" ? lt.Enum : lt.Value;
1612
+ i.set(v, { id: v, fieldCode: g, fieldName: y, compareType: V, valueType: B, value: I, conditionId: b, relation: 1 }), n.value = Array.from(i.values());
1615
1613
  }
1616
1614
  function s(x) {
1617
1615
  const v = `field_filter_${x.field}`;
@@ -1620,27 +1618,27 @@ function Po(t, e) {
1620
1618
  function d(x) {
1621
1619
  i.delete(x), n.value = Array.from(i.values());
1622
1620
  }
1623
- function g() {
1621
+ function p() {
1624
1622
  i.clear(), n.value = [];
1625
1623
  }
1626
1624
  function m(x) {
1627
- const { valueType: v } = x.value, b = x.compareType || "0", p = Fo[Number(b)];
1628
- return Io.get(v)[p];
1625
+ const { valueType: v } = x.value, b = x.compareType || "0", g = Fo[Number(b)];
1626
+ return Io.get(v)[g];
1629
1627
  }
1630
1628
  function h(x) {
1631
1629
  const v = x.relation === 2 ? 0 : 1, b = x.items.map((y) => {
1632
1630
  const w = m(y);
1633
1631
  return (O) => w(O, y.fieldCode, y.value.getValue());
1634
- }), p = x.children && x.children.length ? x.children.map((y) => h(y)) : [];
1635
- return { relation: v, filterFunctions: b, children: p };
1632
+ }), g = x.children && x.children.length ? x.children.map((y) => h(y)) : [];
1633
+ return { relation: v, filterFunctions: b, children: g };
1636
1634
  }
1637
1635
  function C() {
1638
1636
  const x = o(n.value);
1639
1637
  return h(x);
1640
1638
  }
1641
1639
  function F(x, v) {
1642
- const b = v.filterFunctions.map((y) => y(x)), p = v.children.map((y) => F(x, y));
1643
- return v.relation === 1 ? b.every((y) => y) && p.every((y) => y) : b.includes(!0) || p.includes(!0);
1640
+ const b = v.filterFunctions.map((y) => y(x)), g = v.children.map((y) => F(x, y));
1641
+ return v.relation === 1 ? b.every((y) => y) && g.every((y) => y) : b.includes(!0) || g.includes(!0);
1644
1642
  }
1645
1643
  function S(x) {
1646
1644
  const v = C();
@@ -1652,7 +1650,7 @@ function Po(t, e) {
1652
1650
  return {
1653
1651
  addColumnFilter: f,
1654
1652
  apply: S,
1655
- clearCondition: g,
1653
+ clearCondition: p,
1656
1654
  conditions: n,
1657
1655
  getFilterEditorType: u,
1658
1656
  removeColumnFilter: s,
@@ -1677,9 +1675,9 @@ function Vo(t) {
1677
1675
  }
1678
1676
  function Bo(t, e, n, i, o, r, l, a, c) {
1679
1677
  var _t;
1680
- const { dataView: u, visibleDataItems: f } = e, { getVisualData: s, maxVisibleRowIndex: d, minVisibleRowIndex: g } = o, m = H(() => i.value.primaryColumnsWidth), h = H(() => i.value.leftColumnsWidth), C = H(() => i.value.rightColumnsWidth), F = ((_t = t.rowOption) == null ? void 0 : _t.height) || 28, S = T(0), M = T(0);
1678
+ const { dataView: u, visibleDataItems: f } = e, { getVisualData: s, maxVisibleRowIndex: d, minVisibleRowIndex: p } = o, m = H(() => i.value.primaryColumnsWidth), h = H(() => i.value.leftColumnsWidth), C = H(() => i.value.rightColumnsWidth), F = ((_t = t.rowOption) == null ? void 0 : _t.height) || 28, S = T(0), M = T(0);
1681
1679
  let x = 0, v = r.value - 1;
1682
- const b = T(0), p = T(0), y = T(0), w = T(t.virtualized), V = 24, O = 1.5;
1680
+ const b = T(0), g = T(0), y = T(0), w = T(t.virtualized), V = 24, O = 1.5;
1683
1681
  let I = null;
1684
1682
  function B() {
1685
1683
  const Z = f.value;
@@ -1688,14 +1686,14 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1688
1686
  const ne = d.value < Z.length ? Z[d.value] : Z[Z.length - 1];
1689
1687
  return ne.__fv_data_position__ > Z.length * F ? Z.length * F : (ne.__fv_data_position__ || 0) + (ne.__fv_data_height__ || 0) + Math.max(Z.length - 1 - d.value, 0) * F;
1690
1688
  }
1691
- const E = H(() => {
1689
+ const k = H(() => {
1692
1690
  const Z = B();
1693
1691
  f.value;
1694
- let ne = p.value / Math.max(Z, p.value), de = Math.floor(ne * p.value);
1695
- for (; p.value > 0 && de < V; )
1696
- ne *= O, de = Math.floor(ne * p.value);
1692
+ let ne = g.value / Math.max(Z, g.value), de = Math.floor(ne * g.value);
1693
+ for (; g.value > 0 && de < V; )
1694
+ ne *= O, de = Math.floor(ne * g.value);
1697
1695
  return de;
1698
- }), _ = H(() => Math.floor(y.value / Math.max(m.value, y.value) * b.value)), k = 0, L = 0, P = H(() => b.value - (h.value + m.value + C.value + a.value));
1696
+ }), _ = H(() => Math.floor(y.value / Math.max(m.value, y.value) * b.value)), E = 0, L = 0, P = H(() => b.value - (h.value + m.value + C.value + a.value));
1699
1697
  function $(Z) {
1700
1698
  const de = Math.floor(Z / F) + 1, Fe = f.value;
1701
1699
  return Fe.length > de ? Fe[de].__fv_visible_index__ - 1 : 0;
@@ -1726,18 +1724,18 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1726
1724
  const de = (ot = t.pagination) != null && ot.enable ? 0 : Math.max(x - l, 0), Fe = ne[ne.length - 1].__fv_visible_index__, Be = (ht = t.pagination) != null && ht.enable ? ne.length - 1 : Math.min(v + l, Fe), { actualStart: Ge, actualEnd: Ue } = q(de, Be, Fe), bt = ne[Ge - 1], gt = s(Ge, Ue, bt, Z);
1727
1725
  gt.length && (n.value = [...gt]);
1728
1726
  }
1729
- const A = H(() => B() > p.value), te = H(() => Math.floor(m.value) > y.value);
1727
+ const A = H(() => B() > g.value), te = H(() => Math.floor(m.value) > y.value);
1730
1728
  function re(Z, ne) {
1731
1729
  let de = Z;
1732
- const Fe = de > k, Be = A.value;
1733
- Be && de < p.value - ne && (de = p.value - ne), (!Be || Fe) && (de = k), S.value !== de && (S.value = de);
1730
+ const Fe = de > E, Be = A.value;
1731
+ Be && de < g.value - ne && (de = g.value - ne), (!Be || Fe) && (de = E), S.value !== de && (S.value = de);
1734
1732
  }
1735
1733
  function ue() {
1736
- w.value && (x = $(Math.abs(S.value)), v = x + r.value - 1, (x < g.value || v > d.value - l / 2) && Q());
1734
+ w.value && (x = $(Math.abs(S.value)), v = x + r.value - 1, (x < p.value || v > d.value - l / 2) && Q());
1737
1735
  }
1738
1736
  function J(Z) {
1739
1737
  let ne = S.value + Z;
1740
- ne > k && (ne = k);
1738
+ ne > E && (ne = E);
1741
1739
  const de = B();
1742
1740
  re(ne, de), ue();
1743
1741
  }
@@ -1761,7 +1759,7 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1761
1759
  }
1762
1760
  ve([y, m], () => {
1763
1761
  W(0);
1764
- }), ve(p, (Z, ne) => {
1762
+ }), ve(g, (Z, ne) => {
1765
1763
  Z !== ne && Z >= u.value.length * F && J(0);
1766
1764
  });
1767
1765
  function ie(Z) {
@@ -1805,10 +1803,10 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1805
1803
  width: `${C.value}px`
1806
1804
  })), ye = H(() => {
1807
1805
  const Z = B();
1808
- return re(S.value, Z), S.value / (p.value - Z) * (p.value - E.value);
1806
+ return re(S.value, Z), S.value / (g.value - Z) * (g.value - k.value);
1809
1807
  }), Ve = H(() => ({
1810
1808
  width: "8px",
1811
- height: `${E.value}px`,
1809
+ height: `${k.value}px`,
1812
1810
  top: `${ye.value}px`,
1813
1811
  backgroundColor: "#cccccc !important"
1814
1812
  })), ze = H(() => M.value / P.value * (b.value - _.value)), Je = H(() => ({
@@ -1828,9 +1826,9 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1828
1826
  }
1829
1827
  function je(Z) {
1830
1828
  if (Ke.value && G.value !== -1) {
1831
- const ne = G.value - Z.pageY, de = B(), Fe = de - E.value;
1829
+ const ne = G.value - Z.pageY, de = B(), Fe = de - k.value;
1832
1830
  if (Math.abs(ne) <= Fe) {
1833
- const Be = ne / (p.value - E.value) * (de - p.value);
1831
+ const Be = ne / (g.value - k.value) * (de - g.value);
1834
1832
  J(Be), G.value = Z.pageY;
1835
1833
  }
1836
1834
  }
@@ -1847,7 +1845,7 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1847
1845
  I || (I = Be), de === "vertical" && (G.value = Z.pageY), de === "horizontal" && (se.value = Z.pageX), ne.value && (ne.value, document.addEventListener("mousemove", I), document.addEventListener("mouseup", Ne), document.body.style.userSelect = "none");
1848
1846
  }
1849
1847
  function Tt(Z) {
1850
- const ne = u.value.length * F - p.value;
1848
+ const ne = u.value.length * F - g.value;
1851
1849
  let de = Z * F;
1852
1850
  de >= ne && (de = ne), J(-de - S.value);
1853
1851
  }
@@ -1883,7 +1881,7 @@ function Bo(t, e, n, i, o, r, l, a, c) {
1883
1881
  updateVisibleRowsOnLatestVisibleScope: ue,
1884
1882
  verticalScrollThumbStyle: Ve,
1885
1883
  viewPortWidth: y,
1886
- viewPortHeight: p,
1884
+ viewPortHeight: g,
1887
1885
  scrollToBottom: Bt,
1888
1886
  scrollToRowByIndex: Tt,
1889
1887
  scrollTo: Ot
@@ -1923,10 +1921,10 @@ function Ro() {
1923
1921
  const c = e.split(",");
1924
1922
  if (!n.data.filter((d) => c.includes(d[i])).length)
1925
1923
  return "";
1926
- const f = (l = n.data) == null ? void 0 : l.reduce((d, g) => (d[g[i]] = g, d), {});
1924
+ const f = (l = n.data) == null ? void 0 : l.reduce((d, p) => (d[p[i]] = p, d), {});
1927
1925
  return c.map((d) => {
1928
- var g;
1929
- return (g = f[d]) == null ? void 0 : g[o];
1926
+ var p;
1927
+ return (p = f[d]) == null ? void 0 : p[o];
1930
1928
  }).join(",") || e;
1931
1929
  }
1932
1930
  const r = (a = n.data) == null ? void 0 : a.find((c) => c[i] === e);
@@ -2037,8 +2035,8 @@ function Wo() {
2037
2035
  }
2038
2036
  function u(f, s, d) {
2039
2037
  const {
2040
- column: g
2041
- } = f, m = Ce(s.raw, g.field), h = d.options || d;
2038
+ column: p
2039
+ } = f, m = Ce(s.raw, p.field), h = d.options || d;
2042
2040
  return d.type === De.NONE ? a(m) : d.type === De.CUSTOM ? c(m, d, s) : d.type === De.ENUM ? e(m, h) : d.type === De.NUMBER ? n(m, h) : d.type === De.BOOLEAN ? t(m, h) : d.type === De.DATE ? i(m, h) : d.type === De.DATE_TIME ? o(m, d) : d.type === De.IMAGE ? r(m, h) : d.type === De.MULTI_LINGUAL ? l(m, h) : a(m);
2043
2041
  }
2044
2042
  return {
@@ -2050,9 +2048,9 @@ function zo(t, e, n) {
2050
2048
  const { isUndefined: i } = sn(), o = T(t.mergeCell);
2051
2049
  (F = T(t.rowOption).value) != null && F.wrapContent;
2052
2050
  const { updateVisualInfomation: l } = n, { renderCommandColumn: a } = vo(t), { renderFormatColumn: c } = Wo();
2053
- function u(S, M, x, v, b, p = 1) {
2051
+ function u(S, M, x, v, b, g = 1) {
2054
2052
  const y = {
2055
- colSpan: p,
2053
+ colSpan: g,
2056
2054
  rowSpan: 1,
2057
2055
  index: x,
2058
2056
  field: S,
@@ -2093,49 +2091,49 @@ function zo(t, e, n) {
2093
2091
  function d(S, M, x) {
2094
2092
  const v = M && M.data[x];
2095
2093
  if (v && v.data === S.data) {
2096
- const p = v && v.spannedBy || v;
2097
- p.rowSpan++, p.spanned = p.spanned || [], p.spanned.push(S), S.colSpan = 0, S.rowSpan = 0, S.spannedBy = p;
2094
+ const g = v && v.spannedBy || v;
2095
+ g.rowSpan++, g.spanned = g.spanned || [], g.spanned.push(S), S.colSpan = 0, S.rowSpan = 0, S.spannedBy = g;
2098
2096
  }
2099
2097
  }
2100
- function g(S, M, x) {
2098
+ function p(S, M, x) {
2101
2099
  o.value && d(S, M, x.field);
2102
2100
  }
2103
2101
  function m(S, M) {
2104
2102
  M.showEllipsis !== void 0 && (S.showEllipsis = M.showEllipsis), S.showTips = i(M.showTips) ? !0 : M.showTips, S.column = M, S.align = M.align || "left", S.valign = M.valign || "middle", S.mode = t.editable ? Pe.editable : Pe.readonly;
2105
2103
  }
2106
2104
  function h(S, M, x, v) {
2107
- m(S, M), f(S, M, v), s(S, M), g(S, x, M);
2105
+ m(S, M), f(S, M, v), s(S, M), p(S, x, M);
2108
2106
  }
2109
2107
  function C(S, M, x, v, b) {
2110
- const p = t.editable ? Pe.editable : Pe.readonly, y = u(S.field, p, M, x, v);
2108
+ const g = t.editable ? Pe.editable : Pe.readonly, y = u(S.field, g, M, x, v);
2111
2109
  return h(y, S, b, x), y;
2112
2110
  }
2113
2111
  return { createCellByColumn: C, createCellByField: u, updateCellByColumn: h };
2114
2112
  }
2115
2113
  function jo(t, e, n, i, o, r, l) {
2116
2114
  var M, x;
2117
- const a = T(t.rowOption), c = ((M = a.value) == null ? void 0 : M.height) || 28, u = ((x = a.value) == null ? void 0 : x.wrapContent) || !1, { idField: f } = o, { collapseField: s } = i, { updateRowPosition: d } = r, { createCellByColumn: g } = l, m = (v, b, p, y) => {
2118
- Lt(Ce(v, y), b, y), p.data[y].data = Ce(b, y), p.data[y].editingData = Ce(b, y);
2115
+ const a = T(t.rowOption), c = ((M = a.value) == null ? void 0 : M.height) || 28, u = ((x = a.value) == null ? void 0 : x.wrapContent) || !1, { idField: f } = o, { collapseField: s } = i, { updateRowPosition: d } = r, { createCellByColumn: p } = l, m = (v, b, g, y) => {
2116
+ Lt(Ce(v, y), b, y), g.data[y].data = Ce(b, y), g.data[y].editingData = Ce(b, y);
2119
2117
  };
2120
- function h(v, b, p, y, w, V) {
2118
+ function h(v, b, g, y, w, V) {
2121
2119
  var te, re, ue;
2122
2120
  const {
2123
2121
  __fv_data_grid_group_field__: O,
2124
2122
  __fv_data_grid_group_value__: I,
2125
2123
  __fv_data_index__: B
2126
- } = p, E = p.__fv_data_grid_group_layer__ || (p.__fv_parents__ ? (te = p.__fv_parents__) == null ? void 0 : te.size : 0) || 0, _ = typeof p.parent == "number" ? Number(p.parent) : -1, k = p.__fv_data_grid_group_collapse__ || p[s.value], L = p.__fv_visible__ === void 0 ? !0 : p.__fv_visible__, P = p.__fv_checked__, $ = p.__fv_indeterminate__, q = p.__fv_disabled__ || p[((re = t.rowOption) == null ? void 0 : re.disabledField) || "disabled"], Q = t.hierarchy && e.isVisibleInTree(p), A = {
2127
- collapse: k,
2124
+ } = g, k = g.__fv_data_grid_group_layer__ || (g.__fv_parents__ ? (te = g.__fv_parents__) == null ? void 0 : te.size : 0) || 0, _ = typeof g.parent == "number" ? Number(g.parent) : -1, E = g.__fv_data_grid_group_collapse__ || g[s.value], L = g.__fv_visible__ === void 0 ? !0 : g.__fv_visible__, P = g.__fv_checked__, $ = g.__fv_indeterminate__, q = g.__fv_disabled__ || g[((re = t.rowOption) == null ? void 0 : re.disabledField) || "disabled"], Q = t.hierarchy && e.isVisibleInTree(g), A = {
2125
+ collapse: E,
2128
2126
  data: {},
2129
2127
  dataIndex: B,
2130
2128
  groupField: O,
2131
2129
  groupValue: I,
2132
- layer: E,
2130
+ layer: k,
2133
2131
  index: b,
2134
2132
  parentIndex: _,
2135
2133
  pre: y,
2136
2134
  top: V,
2137
2135
  type: v,
2138
- raw: p,
2136
+ raw: g,
2139
2137
  checked: P,
2140
2138
  disabled: q,
2141
2139
  indeterminate: $,
@@ -2145,32 +2143,32 @@ function jo(t, e, n, i, o, r, l) {
2145
2143
  visible: L && Q || L && !t.hierarchy,
2146
2144
  status: Xe.initial,
2147
2145
  updateCell: (J, W) => {
2148
- m(J, p, A, W), e.updateSummary();
2146
+ m(J, g, A, W), e.updateSummary();
2149
2147
  },
2150
2148
  updateCells: (J, W) => {
2151
2149
  W.forEach((j) => {
2152
- m(J, p, A, j);
2150
+ m(J, g, A, j);
2153
2151
  });
2154
2152
  }
2155
2153
  };
2156
- return y || (p.__fv_data_position__ = 0), u || (A.height = c, p.__fv_data_height__ = A.height, d(A, p)), (ue = a.value) != null && ue.customRowStatus && (a.value.customRowStatus(A), p.__fv_disabled__ = A.disabled), A;
2154
+ return y || (g.__fv_data_position__ = 0), u || (A.height = c, g.__fv_data_height__ = A.height, d(A, g)), (ue = a.value) != null && ue.customRowStatus && (a.value.customRowStatus(A), g.__fv_disabled__ = A.disabled), A;
2157
2155
  }
2158
- function C(v, b, p, y, w, V) {
2159
- const O = h(ut.data, w, b, p, y, V);
2156
+ function C(v, b, g, y, w, V) {
2157
+ const O = h(ut.data, w, b, g, y, V);
2160
2158
  return v.forEach((I, B) => {
2161
- O.data[I.field] = g(I, B, b, O, y);
2159
+ O.data[I.field] = p(I, B, b, O, y);
2162
2160
  }), O;
2163
2161
  }
2164
- function F(v, b, p, y, w) {
2165
- return Object.assign(v, { index: b, dataIndex: p, top: y, pre: w });
2162
+ function F(v, b, g, y, w) {
2163
+ return Object.assign(v, { index: b, dataIndex: g, top: y, pre: w });
2166
2164
  }
2167
- function S(v, b, p, y, w, V) {
2165
+ function S(v, b, g, y, w, V) {
2168
2166
  const O = v.__fv_data_index__, I = v[f.value], B = n.getEditingSnapshot(I);
2169
2167
  return B === null ? C(
2170
2168
  V,
2171
2169
  v,
2172
2170
  b,
2173
- p,
2171
+ g,
2174
2172
  y,
2175
2173
  w
2176
2174
  ) : F(B, y, O, w, b);
@@ -2185,9 +2183,9 @@ function Go(t, e, n, i) {
2185
2183
  const d = o.value;
2186
2184
  return d && d.enable && d.groupFields && d.groupFields.length > 0;
2187
2185
  });
2188
- function f(d, g, m, h) {
2186
+ function f(d, p, m, h) {
2189
2187
  if (u.value) {
2190
- const C = d.data[g];
2188
+ const C = d.data[p];
2191
2189
  let F = C.colSpan;
2192
2190
  const S = c.value.reduce((M, x) => (M.set(x, !0), M), /* @__PURE__ */ new Map());
2193
2191
  h.reduce((M, x, v) => {
@@ -2199,17 +2197,17 @@ function Go(t, e, n, i) {
2199
2197
  }, d), C.colSpan = F;
2200
2198
  }
2201
2199
  }
2202
- function s(d, g, m, h, C, F, S) {
2203
- const M = d.__fv_data_grid_group_field__, x = a(ut.group, h, d, g, m, C);
2200
+ function s(d, p, m, h, C, F, S) {
2201
+ const M = d.__fv_data_grid_group_field__, x = a(ut.group, h, d, p, m, C);
2204
2202
  return x.data[r.value] = l(r.value, Pe.readonly, -1, d, x, 0), x.data[M] = l(M, Pe.readonly, 1, d, x, F.length), f(x, M, d, F), x;
2205
2203
  }
2206
2204
  return { renderGroupRow: s };
2207
2205
  }
2208
2206
  function Uo(t, e, n, i) {
2209
2207
  const { idField: o } = e, { createCellByField: r } = n, { createEmptyRow: l } = i;
2210
- function a(c, u, f, s, d, g, m) {
2208
+ function a(c, u, f, s, d, p, m) {
2211
2209
  const h = c.__fv_data_grid_group_field__, C = l(ut.summary, s, c, u, f, d);
2212
- return C.data[o.value] = r(o.value, Pe.readonly, -1, c, C), C.data[h] = r(h, Pe.readonly, 1, c, C, g.length), C;
2210
+ return C.data[o.value] = r(o.value, Pe.readonly, -1, c, C), C.data[h] = r(h, Pe.readonly, 1, c, C, p.length), C;
2213
2211
  }
2214
2212
  return { renderSummaryRow: a };
2215
2213
  }
@@ -2221,25 +2219,25 @@ function qo(t, e, n, i, o) {
2221
2219
  onClickRow: u,
2222
2220
  onClickRowExcludeDblclick: f
2223
2221
  } = i, s = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["enum", "combo-list"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
2224
- let d, g, m, h, C;
2222
+ let d, p, m, h, C;
2225
2223
  function F(A) {
2226
- return g && g.raw[r.value] === A ? g : null;
2224
+ return p && p.raw[r.value] === A ? p : null;
2227
2225
  }
2228
2226
  const S = Xn({});
2229
2227
  function M(A) {
2230
2228
  return (A == null ? void 0 : A.field) !== hn && (A == null ? void 0 : A.field) !== mo;
2231
2229
  }
2232
2230
  function x(A, te, re = {}) {
2233
- A.mode = Pe.editing, d = A, g = te, m = Ce(te == null ? void 0 : te.raw, A.field), h = re;
2231
+ A.mode = Pe.editing, d = A, p = te, m = Ce(te == null ? void 0 : te.raw, A.field), h = re;
2234
2232
  for (const ue in S)
2235
2233
  delete S[ue];
2236
2234
  }
2237
2235
  function v(A) {
2238
2236
  A.accept(), A.mode = Pe.editable, d = null;
2239
2237
  const te = {};
2240
- g && (Object.keys(g).forEach((re) => {
2241
- te[re] = g == null ? void 0 : g[re];
2242
- }), g = null), e.emit("endEditCell", {
2238
+ p && (Object.keys(p).forEach((re) => {
2239
+ te[re] = p == null ? void 0 : p[re];
2240
+ }), p = null), e.emit("endEditCell", {
2243
2241
  cell: A,
2244
2242
  row: te,
2245
2243
  newValue: Ce(te == null ? void 0 : te.raw, A.field),
@@ -2252,12 +2250,12 @@ function qo(t, e, n, i, o) {
2252
2250
  const te = Promise.resolve(!0);
2253
2251
  return A ? te.then(() => Yt(t.beforeEndEditCell) ? !0 : typeof t.beforeEndEditCell == "function" ? t.beforeEndEditCell({
2254
2252
  cell: A,
2255
- row: g,
2253
+ row: p,
2256
2254
  newValue: A.editingData,
2257
2255
  oldValue: m
2258
- }) : () => !0).then((re) => (re && (v(A), g && (g = null)), re)) : te;
2256
+ }) : () => !0).then((re) => (re && (v(A), p && (p = null)), re)) : te;
2259
2257
  }
2260
- function p(A) {
2258
+ function g(A) {
2261
2259
  if (C && C !== A.target) {
2262
2260
  C = null;
2263
2261
  return;
@@ -2272,7 +2270,7 @@ function qo(t, e, n, i, o) {
2272
2270
  return;
2273
2271
  }
2274
2272
  b(d).then((ue) => {
2275
- ue && document.body.removeEventListener("click", p, !0);
2273
+ ue && document.body.removeEventListener("click", g, !0);
2276
2274
  });
2277
2275
  }
2278
2276
  }
@@ -2287,7 +2285,7 @@ function qo(t, e, n, i, o) {
2287
2285
  column: re
2288
2286
  }) : !ue;
2289
2287
  }).then((ue) => {
2290
- ue && (x(te, A, re), document.body.removeEventListener("click", p, !0), document.body.addEventListener("click", p, !0));
2288
+ ue && (x(te, A, re), document.body.removeEventListener("click", g, !0), document.body.addEventListener("click", g, !0));
2291
2289
  });
2292
2290
  }
2293
2291
  function w(A, te, re, ue = {}) {
@@ -2309,21 +2307,21 @@ function qo(t, e, n, i, o) {
2309
2307
  function B(A) {
2310
2308
  Object.values(A.data).filter((te) => te.mode === Pe.editable && M(te.column)).forEach((te) => {
2311
2309
  te.mode = Pe.editing;
2312
- }), A.status = Xe.editing, g = A;
2310
+ }), A.status = Xe.editing, p = A;
2313
2311
  }
2314
- function E(A, te) {
2312
+ function k(A, te) {
2315
2313
  Object.values(A.data).filter((re) => re.mode === Pe.editing).forEach((re) => {
2316
2314
  te ? re.accept() : re.cancel(), re.mode = Pe.editable;
2317
- }), A.status = Xe.initial, g === A && (g = null);
2315
+ }), A.status = Xe.initial, p === A && (p = null);
2318
2316
  }
2319
2317
  function _(A) {
2320
- l.value && a.value.editMode === "row" && g !== A && (g && E(g, !1), B(A));
2318
+ l.value && a.value.editMode === "row" && p !== A && (p && k(p, !1), B(A));
2321
2319
  }
2322
- function k(A) {
2323
- E(A, !0), A.status = Xe.initial;
2320
+ function E(A) {
2321
+ k(A, !0), A.status = Xe.initial;
2324
2322
  }
2325
2323
  function L(A) {
2326
- E(A, !1), A.status = Xe.initial;
2324
+ k(A, !1), A.status = Xe.initial;
2327
2325
  }
2328
2326
  function P(A, te, re) {
2329
2327
  const ue = te.dataType, J = te.editor || {
@@ -2357,15 +2355,15 @@ function qo(t, e, n, i, o) {
2357
2355
  a.value.editMode = A;
2358
2356
  });
2359
2357
  function q() {
2360
- d = null, g = null, h = null, C = null, document.body.removeEventListener("click", p, !0);
2358
+ d = null, p = null, h = null, C = null, document.body.removeEventListener("click", g, !0);
2361
2359
  }
2362
2360
  return {
2363
2361
  clear: q,
2364
- onClickOutOfCell: p,
2362
+ onClickOutOfCell: g,
2365
2363
  onClickCell: V,
2366
2364
  onClickCellByKeyboard: w,
2367
2365
  onEditingRow: _,
2368
- acceptEditingRow: k,
2366
+ acceptEditingRow: E,
2369
2367
  cancelEditingRow: L,
2370
2368
  getEditingSnapshot: F,
2371
2369
  getEditor: P,
@@ -2393,7 +2391,7 @@ function Yo(t, e, n, i) {
2393
2391
  toggleSelectItem: u,
2394
2392
  updateSelectAllStatus: f,
2395
2393
  isSingleSelect: s
2396
- } = n, d = T(0), g = T(-1);
2394
+ } = n, d = T(0), p = T(-1);
2397
2395
  function m(I) {
2398
2396
  r.value = I;
2399
2397
  }
@@ -2401,18 +2399,18 @@ function Yo(t, e, n, i) {
2401
2399
  return I.raw[o.value] === r.value;
2402
2400
  }
2403
2401
  function C(I, B) {
2404
- var k;
2405
- const E = B ?? I.dataIndex, _ = {
2402
+ var E;
2403
+ const k = B ?? I.dataIndex, _ = {
2406
2404
  "fv-grid-row": I.type === ut.data,
2407
2405
  "fv-grid-group-row": I.type === ut.group,
2408
2406
  "fv-grid-summary-row": I.type === ut.summary,
2409
- "fv-grid-row-hover": E === g.value,
2407
+ "fv-grid-row-hover": k === p.value,
2410
2408
  "fv-grid-row-selected": h(I),
2411
- "fv-grid-row-odd": E % 2 > 0,
2412
- "fv-grid-row-even": E % 2 === 0,
2409
+ "fv-grid-row-odd": k % 2 > 0,
2410
+ "fv-grid-row-even": k % 2 === 0,
2413
2411
  "fv-grid-disabled": I.disabled
2414
2412
  };
2415
- if ((k = t.rowOption) != null && k.customRowStyle) {
2413
+ if ((E = t.rowOption) != null && E.customRowStyle) {
2416
2414
  const L = t.rowOption.customRowStyle(I.raw) || {};
2417
2415
  return Object.assign({}, _, L.class || {});
2418
2416
  }
@@ -2420,34 +2418,34 @@ function Yo(t, e, n, i) {
2420
2418
  }
2421
2419
  function F(I, B) {
2422
2420
  var _;
2423
- const E = {
2421
+ const k = {
2424
2422
  "fv-grid-cell": !0
2425
2423
  };
2426
2424
  if ((_ = t.rowOption) != null && _.customCellStyle) {
2427
- const k = t.rowOption.customCellStyle(I, B) || {};
2428
- return Object.assign({}, E, k.class || {});
2425
+ const E = t.rowOption.customCellStyle(I, B) || {};
2426
+ return Object.assign({}, k, E.class || {});
2429
2427
  }
2430
- return E;
2428
+ return k;
2431
2429
  }
2432
2430
  function S(I, B) {
2433
2431
  var _;
2434
- const E = {
2432
+ const k = {
2435
2433
  "fv-grid-hierarchy-cell": !0
2436
2434
  };
2437
2435
  if ((_ = t.rowOption) != null && _.customCellStyle) {
2438
- const k = t.rowOption.customCellStyle(I, B) || {};
2439
- return Object.assign({}, E, k.class || {});
2436
+ const E = t.rowOption.customCellStyle(I, B) || {};
2437
+ return Object.assign({}, k, E.class || {});
2440
2438
  }
2441
- return E;
2439
+ return k;
2442
2440
  }
2443
2441
  function M(I) {
2444
- const B = r.value, E = I.raw[o.value];
2445
- m(E), B !== E && e.emit("selectionChange", [I.raw], { id: E, data: I.raw });
2442
+ const B = r.value, k = I.raw[o.value];
2443
+ m(k), B !== k && e.emit("selectionChange", [I.raw], { id: k, data: I.raw });
2446
2444
  }
2447
2445
  function x(I, B) {
2448
- var k, L;
2446
+ var E, L;
2449
2447
  if (a.value && !(B != null && B.shiftKey) || s.value) {
2450
- (k = t.selection) != null && k.keepSelectingOnClick ? c(I) : u(I, (L = t.selection) == null ? void 0 : L.keepSelectingOnClick), f();
2448
+ (E = t.selection) != null && E.keepSelectingOnClick ? c(I) : u(I, (L = t.selection) == null ? void 0 : L.keepSelectingOnClick), f();
2451
2449
  return;
2452
2450
  }
2453
2451
  if (a.value && (B == null ? void 0 : B.shiftKey) || l.value) {
@@ -2463,7 +2461,7 @@ function Yo(t, e, n, i) {
2463
2461
  d.value === 1 && e.emit("clickRow", I.index, I.raw), d.value = 0;
2464
2462
  }, 250), d.value > 1 && (e.emit("doubleClickRow", I.index, I.raw), d.value = 0);
2465
2463
  }
2466
- function p(I, B) {
2464
+ function g(I, B) {
2467
2465
  B.disabled || (b(B), M(B), x(B, I));
2468
2466
  }
2469
2467
  function y(I) {
@@ -2474,17 +2472,17 @@ function Yo(t, e, n, i) {
2474
2472
  function V(I, B) {
2475
2473
  }
2476
2474
  function O(I, B) {
2477
- var k;
2478
- const E = B ?? I.dataIndex, _ = {
2475
+ var E;
2476
+ const k = B ?? I.dataIndex, _ = {
2479
2477
  "fv-grid-sidebar-row": !0,
2480
- "fv-grid-sidebar-row-hover": E === g.value,
2478
+ "fv-grid-sidebar-row-hover": k === p.value,
2481
2479
  "fv-grid-sidebar-row-selected": h(I),
2482
- "fv-grid-sidebar-row-odd": E % 2 > 0,
2483
- "fv-grid-sidebar-row-even": E % 2 === 0,
2480
+ "fv-grid-sidebar-row-odd": k % 2 > 0,
2481
+ "fv-grid-sidebar-row-even": k % 2 === 0,
2484
2482
  "d-flex": !0,
2485
2483
  "align-items-center": !0
2486
2484
  };
2487
- if ((k = t.rowOption) != null && k.customRowStyle) {
2485
+ if ((E = t.rowOption) != null && E.customRowStyle) {
2488
2486
  const L = t.rowOption.customRowStyle(I.raw) || {};
2489
2487
  return Object.assign({}, _, L.class || {});
2490
2488
  }
@@ -2498,7 +2496,7 @@ function Yo(t, e, n, i) {
2498
2496
  gridCellClass: F,
2499
2497
  gridHierarchyCellClass: S,
2500
2498
  gridRowClass: C,
2501
- onClickRow: p,
2499
+ onClickRow: g,
2502
2500
  onClickRowExcludeDblclick: v,
2503
2501
  onMouseoverRow: w,
2504
2502
  sidebarRowClass: O,
@@ -2506,12 +2504,12 @@ function Yo(t, e, n, i) {
2506
2504
  };
2507
2505
  }
2508
2506
  function Xo(t, e, n, i, o) {
2509
- const { idField: r } = n, { dataView: l, getSelectionItems: a } = e, c = T(""), u = H(() => t.selection.enableSelectRow), f = T(t.selection.multiSelect ?? !1), s = T(t.selection.multiSelectMode || "DependOnCheck"), d = T(t.selection.showCheckbox), g = T(t.selection.showSelectAll), m = T(t.selectionValues || []), h = H(() => t.selection.showSelection), C = H(() => {
2507
+ const { idField: r } = n, { dataView: l, getSelectionItems: a } = e, c = T(""), u = H(() => t.selection.enableSelectRow), f = T(t.selection.multiSelect ?? !1), s = T(t.selection.multiSelectMode || "DependOnCheck"), d = T(t.selection.showCheckbox), p = T(t.selection.showSelectAll), m = T(t.selectionValues || []), h = H(() => t.selection.showSelection), C = H(() => {
2510
2508
  var N;
2511
2509
  return ((N = t.selection) == null ? void 0 : N.keepSelectingOnPaging) === void 0 ? !0 : t.selection.keepSelectingOnPaging;
2512
2510
  }), F = T(!!m.value.length && i.value.length === m.value.length), S = T(!!m.value.length && i.value.length !== m.value.length);
2513
2511
  ve(() => t.selection.showSelectAll, (N, X) => {
2514
- N !== X && (g.value = N);
2512
+ N !== X && (p.value = N);
2515
2513
  });
2516
2514
  function M() {
2517
2515
  if (!C.value) {
@@ -2530,7 +2528,7 @@ function Xo(t, e, n, i, o) {
2530
2528
  const N = i.value.reduce((K, le) => (K.set(le.raw[r.value], le), K), /* @__PURE__ */ new Map());
2531
2529
  return m.value.map((K) => N.get(K)).filter((K) => !!K);
2532
2530
  }
2533
- function p(N) {
2531
+ function g(N) {
2534
2532
  var K;
2535
2533
  const X = N.raw.__fv_children_index__;
2536
2534
  if (X && X.length) {
@@ -2545,14 +2543,14 @@ function Xo(t, e, n, i, o) {
2545
2543
  return y.value && N;
2546
2544
  }), I = H(() => y.value && !d.value), B = H(() => y.value && d.value && s.value === "OnCheckAndClick");
2547
2545
  H(() => B.value);
2548
- function E() {
2546
+ function k() {
2549
2547
  const N = a(m.value);
2550
2548
  o.emit("selectionUpdate", N, m.value);
2551
2549
  }
2552
2550
  function _(N) {
2553
2551
  o.emit("unSelectItem", N);
2554
2552
  }
2555
- function k(N) {
2553
+ function E(N) {
2556
2554
  o.emit("selectItem", N);
2557
2555
  }
2558
2556
  function L() {
@@ -2563,7 +2561,7 @@ function Xo(t, e, n, i, o) {
2563
2561
  K.checked = !0, K.raw.__fv_checked__ = !0;
2564
2562
  }), N.forEach((K) => {
2565
2563
  const le = i.value.find((ye) => ye.raw[r.value] === K);
2566
- p(le);
2564
+ g(le);
2567
2565
  });
2568
2566
  }
2569
2567
  ve(() => i.value, () => {
@@ -2601,11 +2599,11 @@ function Xo(t, e, n, i, o) {
2601
2599
  const X = N.raw;
2602
2600
  X.__fv_checked__ = !0, X.__fv_indeterminate__ = !1;
2603
2601
  const K = new Set(m.value);
2604
- K.add(X[r.value]), m.value = Array.from(K.values()), M(), N.checked = !0, N.indeterminate = !1, E(), k(N);
2602
+ K.add(X[r.value]), m.value = Array.from(K.values()), M(), N.checked = !0, N.indeterminate = !1, k(), E(N);
2605
2603
  }
2606
2604
  function ue(N) {
2607
2605
  const X = N.raw;
2608
- X.__fv_checked__ = !1, X.__fv_indeterminate__ = !1, m.value = m.value.filter((K) => K !== X[r.value]), M(), N.checked = !1, N.indeterminate = !1, E(), _(N);
2606
+ X.__fv_checked__ = !1, X.__fv_indeterminate__ = !1, m.value = m.value.filter((K) => K !== X[r.value]), M(), N.checked = !1, N.indeterminate = !1, k(), _(N);
2609
2607
  }
2610
2608
  function J(N) {
2611
2609
  N.disabled || (re(N), c.value = N.raw[r.value]);
@@ -2672,13 +2670,13 @@ function Xo(t, e, n, i, o) {
2672
2670
  X.__fv_checked__ = !0, X.__fv_indeterminate__ = !1;
2673
2671
  const K = new Set(m.value);
2674
2672
  K.add(X[r.value]), m.value = Array.from(K.values()), M(), N.checked = !0, N.indeterminate = !1;
2675
- }), E();
2673
+ }), k();
2676
2674
  }
2677
2675
  function Ie() {
2678
2676
  i.value.forEach((N) => {
2679
2677
  const X = N.raw;
2680
2678
  X.__fv_checked__ = !1, X.__fv_indeterminate__ = !1, m.value = m.value.filter((K) => K !== X[r.value]), M(), N.checked = !1, N.indeterminate = !1;
2681
- }), E();
2679
+ }), k();
2682
2680
  }
2683
2681
  function $e() {
2684
2682
  return i.value.find((N) => N.raw[r.value] === c.value);
@@ -2706,7 +2704,7 @@ function Xo(t, e, n, i, o) {
2706
2704
  selectItemById: fe,
2707
2705
  selectItemByIds: ge,
2708
2706
  showCheckBox: d,
2709
- showSelectAll: g,
2707
+ showSelectAll: p,
2710
2708
  toggleSelectItem: ie,
2711
2709
  toggleSelectItemWithoutRow: Y,
2712
2710
  unSelect: W,
@@ -2719,7 +2717,7 @@ function Xo(t, e, n, i, o) {
2719
2717
  isSingleSelect: w,
2720
2718
  showSelection: h,
2721
2719
  keepSelectingOnPaging: C,
2722
- emitSelectionChanged: E
2720
+ emitSelectionChanged: k
2723
2721
  };
2724
2722
  }
2725
2723
  function Zo(t, e) {
@@ -2747,13 +2745,13 @@ function Zo(t, e) {
2747
2745
  const d = H(() => ({
2748
2746
  width: `${f.value}px`
2749
2747
  }));
2750
- function g(F) {
2748
+ function p(F) {
2751
2749
  return `${n}_${F.type}_r_${F.index}_${F.refreshKey || ""}`;
2752
2750
  }
2753
2751
  function m(F) {
2754
2752
  return `${n}_${F.type}_r_${F.index}_${F.refreshKey || ""}`;
2755
2753
  }
2756
- return { showRowNumer: r, showSidebarCheckBox: l, sidebarCellPosition: s, sidebarCornerCellStyle: d, sidebarTitle: u, sidebarWidth: f, rowKey: m, cellKey: g };
2754
+ return { showRowNumer: r, showSidebarCheckBox: l, sidebarCellPosition: s, sidebarCornerCellStyle: d, sidebarTitle: u, sidebarWidth: f, rowKey: m, cellKey: p };
2757
2755
  }
2758
2756
  const Jo = {
2759
2757
  ascend: (t, e) => t === e ? 0 : t === !1 ? -1 : 1,
@@ -2816,16 +2814,16 @@ function nr(t, e, n, i, o = "data-grid-column") {
2816
2814
  gridHeaderColumnsStyle: c,
2817
2815
  leftFixedGridHeaderColumnsStyle: u,
2818
2816
  rightFixedGridHeaderColumnsStyle: f
2819
- } = i, s = r.value.defaultColumnWidth, d = 32, g = /* @__PURE__ */ new Map([[0, 0]]);
2817
+ } = i, s = r.value.defaultColumnWidth, d = 32, p = /* @__PURE__ */ new Map([[0, 0]]);
2820
2818
  function m(V, O) {
2821
- const I = g.get(O) || 0, B = {
2819
+ const I = p.get(O) || 0, B = {
2822
2820
  height: `${V.depth * d}px`,
2823
2821
  left: `${V.left}px`,
2824
2822
  top: `${(V.layer - 1) * d}px`,
2825
2823
  width: `${V.actualWidth}px`,
2826
2824
  padding: 0
2827
2825
  };
2828
- return r.value.headerDepth > 1 && (B["line-height"] = `${V.depth * d}px`), g.set(O + 1, I + (V.actualWidth || s)), B;
2826
+ return r.value.headerDepth > 1 && (B["line-height"] = `${V.depth * d}px`), p.set(O + 1, I + (V.actualWidth || s)), B;
2829
2827
  }
2830
2828
  const h = H(() => ({
2831
2829
  "fv-grid-header": !0,
@@ -2843,15 +2841,15 @@ function nr(t, e, n, i, o = "data-grid-column") {
2843
2841
  }, null)]);
2844
2842
  }
2845
2843
  function M(V, O, I, B) {
2846
- var E;
2847
- (E = t == null ? void 0 : t.setupContext) == null || E.emit("selectionChange", V, O, I, B);
2844
+ var k;
2845
+ (k = t == null ? void 0 : t.setupContext) == null || k.emit("selectionChange", V, O, I, B);
2848
2846
  }
2849
2847
  function x(V) {
2850
2848
  var I, B;
2851
2849
  return "w-100 d-flex align-items-center justify-content-" + (((I = V.column) == null ? void 0 : I.halign) === "center" ? "center" : ((B = V.column) == null ? void 0 : B.halign) === "right" ? "end pr-2" : "start pl-2");
2852
2850
  }
2853
2851
  function v(V, O, I) {
2854
- var E;
2852
+ var k;
2855
2853
  const B = T(V.column);
2856
2854
  return R("div", {
2857
2855
  class: "fv-grid-header-cell",
@@ -2863,7 +2861,7 @@ function nr(t, e, n, i, o = "data-grid-column") {
2863
2861
  canAdd: !1,
2864
2862
  canDelete: !1,
2865
2863
  canMove: !1,
2866
- key: (E = B.value) == null ? void 0 : E.id,
2864
+ key: (k = B.value) == null ? void 0 : k.id,
2867
2865
  type: o,
2868
2866
  componentId: e.componentId,
2869
2867
  onSelectionChange: M
@@ -2875,13 +2873,13 @@ function nr(t, e, n, i, o = "data-grid-column") {
2875
2873
  return V.map((O, I) => {
2876
2874
  const B = [];
2877
2875
  if (B.push(v(O, V, I)), O.children && O.children.length) {
2878
- const E = b(O.children);
2879
- B.push(...E);
2876
+ const k = b(O.children);
2877
+ B.push(...k);
2880
2878
  }
2881
2879
  return B;
2882
2880
  });
2883
2881
  }
2884
- function p() {
2882
+ function g() {
2885
2883
  return R("div", {
2886
2884
  class: "fv-grid-header-left-fixed"
2887
2885
  }, [R("div", {
@@ -2901,7 +2899,7 @@ function nr(t, e, n, i, o = "data-grid-column") {
2901
2899
  return R("div", {
2902
2900
  class: h.value,
2903
2901
  style: C.value
2904
- }, [l.value && p(), R("div", {
2902
+ }, [l.value && g(), R("div", {
2905
2903
  class: "fv-grid-header-primary"
2906
2904
  }, [R("div", {
2907
2905
  class: "fv-grid-header-columns",
@@ -2971,7 +2969,7 @@ class ir extends Hi {
2971
2969
  super(e, n);
2972
2970
  }
2973
2971
  getPropertyConfig(e) {
2974
- return this.getBasicPropConfig(e), this.getAppearanceProperties(e), this.propertyConfig.categories.command = xi(this).getCommandColumnProperties(e), this.propertyConfig.categories.column = Ei().getColumnOptionProperties(e), this.propertyConfig.categories.rowOption = ki().getRowOptionProperties(e), this.propertyConfig.categories.summary = Ii().getSummaryProperties(e), this.propertyConfig.categories.sort = Pi().getSort(e), this.propertyConfig.categories.filter = Vi().getFilter(e), this.getEventPropConfig(e), this.propertyConfig;
2972
+ return this.getBasicPropConfig(e), this.getAppearanceProperties(e), this.propertyConfig.categories.command = xi(this).getCommandColumnProperties(e), this.propertyConfig.categories.column = ki().getColumnOptionProperties(e), this.propertyConfig.categories.rowOption = Ei().getRowOptionProperties(e), this.propertyConfig.categories.summary = Ii().getSummaryProperties(e), this.propertyConfig.categories.sort = Pi().getSort(e), this.propertyConfig.categories.filter = Vi().getFilter(e), this.getEventPropConfig(e), this.propertyConfig;
2975
2973
  }
2976
2974
  getBasicPropConfig(e) {
2977
2975
  var l, a, c;
@@ -2999,7 +2997,7 @@ class ir extends Hi {
2999
2997
  case "dataSource": {
3000
2998
  const s = o.formSchemaUtils.getViewModelById(o.viewModelId);
3001
2999
  if (s) {
3002
- const d = i.find((g) => g.label === u.propertyValue);
3000
+ const d = i.find((p) => p.label === u.propertyValue);
3003
3001
  s.bindTo = d.bindTo;
3004
3002
  }
3005
3003
  o.designViewModelUtils.assembleDesignViewModel();
@@ -3071,14 +3069,14 @@ function or(t, e) {
3071
3069
  return new ir(s, e).getPropertyConfig(n);
3072
3070
  }
3073
3071
  function f() {
3074
- var s, d, g, m;
3072
+ var s, d, p, m;
3075
3073
  if (t && e) {
3076
3074
  const h = (s = t == null ? void 0 : t.componentInstance) == null ? void 0 : s.value.belongedComponentId;
3077
3075
  let C = "", F = "";
3078
3076
  const { formSchemaUtils: S } = e;
3079
3077
  if (h) {
3080
- const x = S.getRootViewModelId(), v = S.getComponentByViewModelId(x), b = S.selectNode(v, (p) => p.contents && p.contents.find((y) => y.component === h));
3081
- (b == null ? void 0 : b.type) === ((d = wt["tab-page"]) == null ? void 0 : d.type) && ((g = b == null ? void 0 : b.contents) != null && g.length) && (C = b.title || ""), (b == null ? void 0 : b.type) === ((m = wt.section) == null ? void 0 : m.type) && (b == null ? void 0 : b.showHeader) !== !1 && (C = b.mainTitle || ""), C = C ? `${C} > ` : "", F = C ? b.id : "";
3078
+ const x = S.getRootViewModelId(), v = S.getComponentByViewModelId(x), b = S.selectNode(v, (g) => g.contents && g.contents.find((y) => y.component === h));
3079
+ (b == null ? void 0 : b.type) === ((d = wt["tab-page"]) == null ? void 0 : d.type) && ((p = b == null ? void 0 : b.contents) != null && p.length) && (C = b.title || ""), (b == null ? void 0 : b.type) === ((m = wt.section) == null ? void 0 : m.type) && (b == null ? void 0 : b.showHeader) !== !1 && (C = b.mainTitle || ""), C = C ? `${C} > ` : "", F = C ? b.id : "";
3082
3080
  }
3083
3081
  const M = wt["data-grid"].name;
3084
3082
  e == null || e.formSchemaUtils.getControlBasicInfoMap().set(t.schema.id, {
@@ -3111,11 +3109,11 @@ const ct = /* @__PURE__ */ it({
3111
3109
  }), Zn("data-grid-context", {
3112
3110
  dataGridProps: t
3113
3111
  }), e.expose(l.value);
3114
- const a = T(t.columns), c = 20, u = Do(t), f = 0, s = T(), d = T(), g = T(t.showStripe), m = T([]), h = T(!1), C = T(((N = t.rowOption) == null ? void 0 : N.wrapContent) || !1), F = Po(t, e), S = Vo(t), M = Mo(t, /* @__PURE__ */ new Map(), F, S, u), x = Xo(t, M, u, m, e), v = H(() => M.totalItems.value < c ? M.totalItems.value : c), {
3112
+ const a = T(t.columns), c = 20, u = Do(t), f = 0, s = T(), d = T(), p = T(t.showStripe), m = T([]), h = T(!1), C = T(((N = t.rowOption) == null ? void 0 : N.wrapContent) || !1), F = Po(t, e), S = Vo(t), M = Mo(t, /* @__PURE__ */ new Map(), F, S, u), x = Xo(t, M, u, m, e), v = H(() => M.totalItems.value < c ? M.totalItems.value : c), {
3115
3113
  containerStyleObject: b
3116
- } = yo(t), p = bo(t), {
3114
+ } = yo(t), g = bo(t), {
3117
3115
  applyCommands: y
3118
- } = p;
3116
+ } = g;
3119
3117
  y(a);
3120
3118
  const w = co(t), V = tr(), {
3121
3119
  applyColumnSorter: O,
@@ -3123,7 +3121,7 @@ const ct = /* @__PURE__ */ it({
3123
3121
  updateColumnRenderContext: B
3124
3122
  } = w;
3125
3123
  O(M, V);
3126
- const E = Co(t, I), _ = Yo(t, e, x, u), k = qo(t, e, u, _), L = Oo(t), P = zo(t, k, L), $ = jo(t, M, k, S, u, L, P), q = Go(t, u, P, $), Q = Uo(t, u, P, $), A = fo(t, a, M, v, f, $, q, Q), {
3124
+ const k = Co(t, I), _ = Yo(t, e, x, u), E = qo(t, e, u, _), L = Oo(t), P = zo(t, E, L), $ = jo(t, M, E, S, u, L, P), q = Go(t, u, P, $), Q = Uo(t, u, P, $), A = fo(t, a, M, v, f, $, q, Q), {
3127
3125
  getVisualData: te
3128
3126
  } = A, re = Zo(t, x), {
3129
3127
  sidebarWidth: ue
@@ -3134,12 +3132,12 @@ const ct = /* @__PURE__ */ it({
3134
3132
  dataGridWidth: j,
3135
3133
  viewPortHeight: D,
3136
3134
  viewPortWidth: Y
3137
- } = J, ie = so(t, I, s, Y, E), {
3135
+ } = J, ie = so(t, I, s, Y, k), {
3138
3136
  calculateColumnsSize: ce
3139
3137
  } = ie, fe = H(() => ({
3140
3138
  "fv-grid": !0,
3141
3139
  "fv-grid-bordered": !0,
3142
- "fv-datagrid-strip": g.value
3140
+ "fv-datagrid-strip": p.value
3143
3141
  })), ge = H(() => ({
3144
3142
  "fv-grid-content": !0,
3145
3143
  "fv-grid-content-hover": h.value,
@@ -3470,7 +3468,7 @@ const cr = {
3470
3468
  footerHeight: { type: Number, default: 60 },
3471
3469
  host: { type: Object, default: "body" }
3472
3470
  };
3473
- class ke {
3471
+ class Ee {
3474
3472
  constructor(e, n) {
3475
3473
  this.x = e, this.y = n;
3476
3474
  }
@@ -3484,12 +3482,12 @@ class ke {
3484
3482
  }
3485
3483
  static fromEvent(e, n = null) {
3486
3484
  if (this.isMouseEvent(e))
3487
- return new ke(e.clientX, e.clientY);
3485
+ return new Ee(e.clientX, e.clientY);
3488
3486
  if (n === null || e.changedTouches.length === 1)
3489
- return new ke(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
3487
+ return new Ee(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
3490
3488
  for (let i = 0; i < e.changedTouches.length; i++)
3491
3489
  if (e.changedTouches[i].target === n)
3492
- return new ke(e.changedTouches[i].clientX, e.changedTouches[i].clientY);
3490
+ return new Ee(e.changedTouches[i].clientX, e.changedTouches[i].clientY);
3493
3491
  }
3494
3492
  static isMouseEvent(e) {
3495
3493
  return Object.prototype.toString.apply(e).indexOf("MouseEvent") === 8;
@@ -3498,7 +3496,7 @@ class ke {
3498
3496
  return !!e && "x" in e && "y" in e;
3499
3497
  }
3500
3498
  static getCurrent(e) {
3501
- const n = new ke(0, 0);
3499
+ const n = new Ee(0, 0);
3502
3500
  if (window) {
3503
3501
  const i = window.getComputedStyle(e);
3504
3502
  if (i) {
@@ -3510,7 +3508,7 @@ class ke {
3510
3508
  return null;
3511
3509
  }
3512
3510
  static copy(e) {
3513
- return new ke(0, 0).set(e);
3511
+ return new Ee(0, 0).set(e);
3514
3512
  }
3515
3513
  get value() {
3516
3514
  return { x: this.x, y: this.y };
@@ -3554,19 +3552,19 @@ class st {
3554
3552
  }
3555
3553
  }
3556
3554
  function fr(t, e) {
3557
- const n = T(), i = T(), o = T(), r = T(), l = T(), a = T(), c = T(), u = T(), f = T(), s = T(), d = T(), g = T(t.resizeable), m = T(), h = T(t.draggable), C = T(!1);
3555
+ const n = T(), i = T(), o = T(), r = T(), l = T(), a = T(), c = T(), u = T(), f = T(), s = T(), d = T(), p = T(t.resizeable), m = T(), h = T(t.draggable), C = T(!1);
3558
3556
  function F() {
3559
3557
  const P = i.value || document.body, $ = window.getComputedStyle(P);
3560
3558
  if (!$ || !n.value)
3561
3559
  return;
3562
- const q = ke.getTransformInfo(n.value), Q = {};
3560
+ const q = Ee.getTransformInfo(n.value), Q = {};
3563
3561
  c.value && (Q.deltaL = n.value.offsetLeft - c.value.x, Q.deltaT = n.value.offsetTop - c.value.y);
3564
3562
  const A = $.getPropertyValue("position");
3565
3563
  Q.width = P.clientWidth, Q.height = P.clientHeight, Q.pr = parseInt($.getPropertyValue("padding-right"), 10), Q.pb = parseInt($.getPropertyValue("padding-bottom"), 10), Q.position = $.getPropertyValue("position"), A === "static" && (P.style.position = "relative"), Q.translateX = q.x, Q.translateY = q.y, s.value = Q;
3566
3564
  }
3567
3565
  function S(P) {
3568
3566
  if (n.value) {
3569
- r.value = st.getCurrent(n.value), l.value = ke.getCurrent(n.value), a.value = r.value ? st.copy(r.value) : null, c.value = l.value ? ke.copy(l.value) : null, F();
3567
+ r.value = st.getCurrent(n.value), l.value = Ee.getCurrent(n.value), a.value = r.value ? st.copy(r.value) : null, c.value = l.value ? Ee.copy(l.value) : null, F();
3570
3568
  const $ = P.target.getAttribute("type") || "";
3571
3569
  u.value = {
3572
3570
  n: !!$.match(/n/),
@@ -3603,10 +3601,10 @@ function fr(t, e) {
3603
3601
  const $ = P.x, q = P.y;
3604
3602
  u.value.n ? (c.value.y = l.value.y + q, a.value.height = r.value.height - q) : u.value.s && (a.value.height = r.value.height + q), u.value.e ? a.value.width = r.value.width + $ : u.value.w && (a.value.width = r.value.width - $, c.value.x = l.value.x + $), v(), x(), M();
3605
3603
  }
3606
- function p(P) {
3604
+ function g(P) {
3607
3605
  if (!f.value)
3608
3606
  return;
3609
- const $ = ke.fromEvent(P);
3607
+ const $ = Ee.fromEvent(P);
3610
3608
  $ && b($);
3611
3609
  }
3612
3610
  function y() {
@@ -3616,7 +3614,7 @@ function fr(t, e) {
3616
3614
  height: $,
3617
3615
  x: q,
3618
3616
  y: Q
3619
- } = n.value.getBoundingClientRect(), A = ke.getTransformInfo(n.value);
3617
+ } = n.value.getBoundingClientRect(), A = Ee.getTransformInfo(n.value);
3620
3618
  return {
3621
3619
  size: {
3622
3620
  width: P,
@@ -3635,16 +3633,16 @@ function fr(t, e) {
3635
3633
  const $ = y();
3636
3634
  d.value = $;
3637
3635
  }
3638
- o.value = void 0, r.value = null, l.value = null, a.value = null, c.value = null, u.value = null, f.value = null, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", w);
3636
+ o.value = void 0, r.value = null, l.value = null, a.value = null, c.value = null, u.value = null, f.value = null, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", w);
3639
3637
  }
3640
3638
  function V() {
3641
- document.addEventListener("mousemove", p), document.addEventListener("mouseup", w);
3639
+ document.addEventListener("mousemove", g), document.addEventListener("mouseup", w);
3642
3640
  }
3643
3641
  function O(P) {
3644
- P instanceof MouseEvent && P.button === 2 || h.value && (document.body.click(), P.stopPropagation(), P.preventDefault(), o.value = ke.fromEvent(P), f.value = P.target, S(P), V());
3642
+ P instanceof MouseEvent && P.button === 2 || h.value && (document.body.click(), P.stopPropagation(), P.preventDefault(), o.value = Ee.fromEvent(P), f.value = P.target, S(P), V());
3645
3643
  }
3646
3644
  function I(P) {
3647
- return n.value = P, g.value && R(mt, null, [R("div", {
3645
+ return n.value = P, p.value && R(mt, null, [R("div", {
3648
3646
  class: "fv-resizable-handle fv-resizable-n",
3649
3647
  type: "n",
3650
3648
  onMousedown: ($) => O($)
@@ -3689,7 +3687,7 @@ function fr(t, e) {
3689
3687
  }
3690
3688
  }, h.value = !1, C.value = !0);
3691
3689
  }
3692
- function E() {
3690
+ function k() {
3693
3691
  var P, $;
3694
3692
  if (document.body.click(), m.value) {
3695
3693
  const q = {
@@ -3719,7 +3717,7 @@ function fr(t, e) {
3719
3717
  }
3720
3718
  }
3721
3719
  }
3722
- function k() {
3720
+ function E() {
3723
3721
  const P = () => {
3724
3722
  C.value ? B(!1) : _(), document.body.click();
3725
3723
  };
@@ -3727,13 +3725,13 @@ function fr(t, e) {
3727
3725
  window.removeEventListener("resize", P);
3728
3726
  };
3729
3727
  }
3730
- const L = k();
3728
+ const L = E();
3731
3729
  return {
3732
3730
  renderResizeBar: I,
3733
3731
  boundingElement: i,
3734
3732
  resizedEventParam: d,
3735
3733
  maximize: B,
3736
- restore: E,
3734
+ restore: k,
3737
3735
  allowDrag: h,
3738
3736
  isMaximized: C,
3739
3737
  unWindowResizeHandle: L,
@@ -3741,69 +3739,69 @@ function fr(t, e) {
3741
3739
  };
3742
3740
  }
3743
3741
  function mr(t, e, n) {
3744
- const i = T(), o = T(t.draggable), r = T(t.lockAxis), l = T(), a = T(), c = T(!1), u = T(new ke(0, 0)), f = T(new ke(0, 0)), s = T(new ke(0, 0)), d = T(new ke(0, 0));
3745
- ve(() => n.value, (p) => {
3746
- l.value.style.cursor = p ? "move" : "default";
3742
+ const i = T(), o = T(t.draggable), r = T(t.lockAxis), l = T(), a = T(), c = T(!1), u = T(new Ee(0, 0)), f = T(new Ee(0, 0)), s = T(new Ee(0, 0)), d = T(new Ee(0, 0));
3743
+ ve(() => n.value, (g) => {
3744
+ l.value.style.cursor = g ? "move" : "default";
3747
3745
  });
3748
- function g(p, y) {
3746
+ function p(g, y) {
3749
3747
  if (y.tagName === "BUTTON")
3750
3748
  return !1;
3751
- if (y === p)
3749
+ if (y === g)
3752
3750
  return !0;
3753
3751
  for (const w in y.children)
3754
- if (Object.prototype.hasOwnProperty.call(y.children, w) && g(p, y.children[w]))
3752
+ if (Object.prototype.hasOwnProperty.call(y.children, w) && p(g, y.children[w]))
3755
3753
  return !0;
3756
3754
  return !1;
3757
3755
  }
3758
3756
  function m() {
3759
3757
  var V, O;
3760
- let p = s.value.x + f.value.x, y = s.value.y + f.value.y;
3761
- r.value === "x" ? (p = ((V = u.value) == null ? void 0 : V.x) || 0, s.value.x = 0) : r.value === "y" && (y = ((O = u.value) == null ? void 0 : O.y) || 0, s.value.y = 0);
3762
- const w = `translate3d(${Math.round(p)}px, ${Math.round(y)}px, 0px)`;
3763
- i.value && (i.value.style.transform = w), d.value.x = p, d.value.y = y;
3758
+ let g = s.value.x + f.value.x, y = s.value.y + f.value.y;
3759
+ r.value === "x" ? (g = ((V = u.value) == null ? void 0 : V.x) || 0, s.value.x = 0) : r.value === "y" && (y = ((O = u.value) == null ? void 0 : O.y) || 0, s.value.y = 0);
3760
+ const w = `translate3d(${Math.round(g)}px, ${Math.round(y)}px, 0px)`;
3761
+ i.value && (i.value.style.transform = w), d.value.x = g, d.value.y = y;
3764
3762
  }
3765
3763
  function h() {
3766
3764
  if (!a.value || !i.value)
3767
3765
  return null;
3768
- const p = a.value.getBoundingClientRect(), y = i.value.getBoundingClientRect(), w = {
3769
- top: p.top < y.top,
3770
- right: p.right > y.right,
3771
- bottom: p.bottom > y.bottom,
3772
- left: p.left < y.left
3766
+ const g = a.value.getBoundingClientRect(), y = i.value.getBoundingClientRect(), w = {
3767
+ top: g.top < y.top,
3768
+ right: g.right > y.right,
3769
+ bottom: g.bottom > y.bottom,
3770
+ left: g.left < y.left
3773
3771
  };
3774
- return w.top || (s.value.y -= y.top - p.top), w.bottom || (s.value.y -= y.bottom - p.bottom), w.right || (s.value.x -= y.right - p.right), w.left || (s.value.x -= y.left - p.left), m(), w;
3772
+ return w.top || (s.value.y -= y.top - g.top), w.bottom || (s.value.y -= y.bottom - g.bottom), w.right || (s.value.x -= y.right - g.right), w.left || (s.value.x -= y.left - g.left), m(), w;
3775
3773
  }
3776
- function C(p) {
3777
- p && (u.value && p.subtract(u.value), s.value.set(p), m(), h());
3774
+ function C(g) {
3775
+ g && (u.value && g.subtract(u.value), s.value.set(g), m(), h());
3778
3776
  }
3779
- function F(p) {
3780
- c.value && o.value && (p.stopPropagation(), p.preventDefault(), C(ke.fromEvent(p, l.value)));
3777
+ function F(g) {
3778
+ c.value && o.value && (g.stopPropagation(), g.preventDefault(), C(Ee.fromEvent(g, l.value)));
3781
3779
  }
3782
3780
  function S() {
3783
- var p;
3784
- c.value && (c.value = !1, f.value.add(s.value), s.value.reset(), (p = i.value) == null || p.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", S));
3781
+ var g;
3782
+ c.value && (c.value = !1, f.value.add(s.value), s.value.reset(), (g = i.value) == null || g.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", S));
3785
3783
  }
3786
3784
  function M() {
3787
3785
  !c.value && l.value && (c.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", F), document.addEventListener("mouseup", S));
3788
3786
  }
3789
3787
  function x() {
3790
3788
  if (i.value) {
3791
- const p = ke.getTransformInfo(i.value);
3792
- f.value.set(p);
3789
+ const g = Ee.getTransformInfo(i.value);
3790
+ f.value.set(g);
3793
3791
  return;
3794
3792
  }
3795
3793
  f.value.reset();
3796
3794
  }
3797
- function v(p) {
3798
- if (!n.value || p instanceof MouseEvent && p.button === 2)
3795
+ function v(g) {
3796
+ if (!n.value || g instanceof MouseEvent && g.button === 2)
3799
3797
  return;
3800
- const y = p.target || p.srcElement;
3801
- l.value !== void 0 && y && !g(y, l.value) || o.value !== !1 && (document.body.click(), p.stopPropagation(), p.preventDefault(), u.value = ke.fromEvent(p, i.value), x(), M());
3798
+ const y = g.target || g.srcElement;
3799
+ l.value !== void 0 && y && !p(y, l.value) || o.value !== !1 && (document.body.click(), g.stopPropagation(), g.preventDefault(), u.value = Ee.fromEvent(g, i.value), x(), M());
3802
3800
  }
3803
- function b(p, y, w) {
3801
+ function b(g, y, w) {
3804
3802
  if (o.value && y) {
3805
- if (p)
3806
- l.value = p;
3803
+ if (g)
3804
+ l.value = g;
3807
3805
  else if (t.dragHandle) {
3808
3806
  if (t.dragHandle instanceof HTMLElement)
3809
3807
  l.value = t.dragHandle;
@@ -3853,7 +3851,7 @@ const St = /* @__PURE__ */ it({
3853
3851
  props: cr,
3854
3852
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
3855
3853
  setup(t, e) {
3856
- const n = T(t.width || 300), i = T(t.height || 200), o = T(t.modelValue), r = T(""), l = T(t.class), a = T(t.fitContent), c = T(t.showHeader), u = T(""), f = T(t.showCloseButton), s = T(t.showMaxButton), d = T(!1), g = T(t.dialogType), m = T(t.src), h = T(""), C = T(t.showButtons), F = T(t.title), S = T(t.containment || null), M = T();
3854
+ const n = T(t.width || 300), i = T(t.height || 200), o = T(t.modelValue), r = T(""), l = T(t.class), a = T(t.fitContent), c = T(t.showHeader), u = T(""), f = T(t.showCloseButton), s = T(t.showMaxButton), d = T(!1), p = T(t.dialogType), m = T(t.src), h = T(""), C = T(t.showButtons), F = T(t.title), S = T(t.containment || null), M = T();
3857
3855
  F.value === "错误提示" && (F.value = Ae.getLocaleValue("messageBox.errorTitle"));
3858
3856
  const x = T(!1);
3859
3857
  function v(G, se) {
@@ -3881,11 +3879,11 @@ const St = /* @__PURE__ */ it({
3881
3879
  handle: (G) => {
3882
3880
  v(G, !0);
3883
3881
  }
3884
- }], p = T(t.buttons && t.buttons.length ? t.buttons : b), y = H(() => !!u.value), w = H(() => !!C.value && !!p.value), V = T(), O = T(), I = T(!1), {
3882
+ }], g = T(t.buttons && t.buttons.length ? t.buttons : b), y = H(() => !!u.value), w = H(() => !!C.value && !!g.value), V = T(), O = T(), I = T(!1), {
3885
3883
  renderResizeBar: B,
3886
- maximize: E,
3884
+ maximize: k,
3887
3885
  restore: _,
3888
- boundingElement: k,
3886
+ boundingElement: E,
3889
3887
  resizedEventParam: L,
3890
3888
  allowDrag: P,
3891
3889
  unWindowResizeHandle: $,
@@ -3904,7 +3902,7 @@ const St = /* @__PURE__ */ it({
3904
3902
  G !== se && (F.value = G);
3905
3903
  }), ve(() => t.modelValue, (G, se) => {
3906
3904
  G !== se && (o.value = G, o.value && t.draggable && dt(() => {
3907
- O.value && !S.value && (S.value = O.value.parentElement, k.value = S.value, Q(V.value, O.value, k.value), q());
3905
+ O.value && !S.value && (S.value = O.value.parentElement, E.value = S.value, Q(V.value, O.value, E.value), q());
3908
3906
  }), G || (S.value && (S.value = null), te())), o.value ? x.value = A() : (I.value = !1, P.value = t.draggable);
3909
3907
  }), ve(() => t.showHeader, (G, se) => {
3910
3908
  G !== se && (c.value = G);
@@ -3965,7 +3963,7 @@ const St = /* @__PURE__ */ it({
3965
3963
  modalrevert: I.value
3966
3964
  })), fe = H(() => ({
3967
3965
  "modal-body": !0,
3968
- "f-utils-flex-column": g.value === "iframe",
3966
+ "f-utils-flex-column": p.value === "iframe",
3969
3967
  "f-utils-fill": !0
3970
3968
  }));
3971
3969
  function ge() {
@@ -3984,19 +3982,19 @@ const St = /* @__PURE__ */ it({
3984
3982
  I.value = !1, _();
3985
3983
  return;
3986
3984
  }
3987
- E(), I.value = !0;
3985
+ k(), I.value = !0;
3988
3986
  }
3989
3987
  async function Ie(G, se) {
3990
3988
  G.handle && await G.handle(se, G) && e.emit("closed", se);
3991
3989
  }
3992
3990
  function $e(G) {
3993
- G.width && (n.value = G.width), G.height && (i.value = G.height), G.buttons && (p.value = G.buttons), G.title && (F.value = G.title);
3991
+ G.width && (n.value = G.width), G.height && (i.value = G.height), G.buttons && (g.value = G.buttons), G.title && (F.value = G.title);
3994
3992
  }
3995
3993
  let N = null, X = null;
3996
3994
  Jn(() => {
3997
3995
  x.value = A();
3998
3996
  }), Qe(() => {
3999
- O.value && !S.value && (S.value = O.value.parentElement, k.value = S.value, Q(V.value, O.value, k.value)), re.value && document.body.classList.add("modal-open"), N = pr(t, e), X = gr(t, e);
3997
+ O.value && !S.value && (S.value = O.value.parentElement, E.value = S.value, Q(V.value, O.value, E.value)), re.value && document.body.classList.add("modal-open"), N = pr(t, e), X = gr(t, e);
4000
3998
  }), jt(() => {
4001
3999
  $ && $(), N && N.remove(), X && X.remove();
4002
4000
  }), e.expose({
@@ -4029,7 +4027,7 @@ const St = /* @__PURE__ */ it({
4029
4027
  return R("div", {
4030
4028
  class: "modal-footer",
4031
4029
  style: he.value
4032
- }, [p.value && p.value.map((G) => {
4030
+ }, [g.value && g.value.map((G) => {
4033
4031
  const se = T(G.disabled);
4034
4032
  return R("button", {
4035
4033
  name: G.name,
@@ -4081,7 +4079,7 @@ const St = /* @__PURE__ */ it({
4081
4079
  class: Y.value
4082
4080
  }, [c.value && ye(), R("div", {
4083
4081
  class: fe.value
4084
- }, [(se = (G = e.slots).default) == null ? void 0 : se.call(G), g.value === "iframe" && R("iframe", {
4082
+ }, [(se = (G = e.slots).default) == null ? void 0 : se.call(G), p.value === "iframe" && R("iframe", {
4085
4083
  title: r.value,
4086
4084
  class: "f-utils-fill",
4087
4085
  width: "100%",
@@ -4124,7 +4122,7 @@ function hr(t) {
4124
4122
  document.body.removeChild(e);
4125
4123
  });
4126
4124
  const r = T(), l = T(t.class || ""), a = T(!!t.showButtons), c = T(!!t.showHeader), u = T(t.showCloseButton == null ? !0 : t.showCloseButton), f = T(!0), s = T(t.title || ""), d = t.acceptCallback || (() => {
4127
- }), g = t.rejectCallback || (() => {
4125
+ }), p = t.rejectCallback || (() => {
4128
4126
  }), m = t.closedCallback || ((M) => {
4129
4127
  }), h = t.resizeHandle || ((M) => {
4130
4128
  }), C = t.stopMoveHandle || ((M) => {
@@ -4148,7 +4146,7 @@ function hr(t) {
4148
4146
  "show-close-button": u.value,
4149
4147
  "show-max-button": !1,
4150
4148
  onAccept: d,
4151
- onCancel: g,
4149
+ onCancel: p,
4152
4150
  fitContent: t.fitContent == null ? !0 : t.fitContent,
4153
4151
  onClosed: S,
4154
4152
  onResize: h,
@@ -4213,14 +4211,14 @@ class vr {
4213
4211
  });
4214
4212
  let f;
4215
4213
  const s = bn(i.value), d = (v) => {
4216
- var p;
4214
+ var g;
4217
4215
  o.value = !1;
4218
- const b = (p = v == null ? void 0 : v.target) == null ? void 0 : p.classList.contains("modal_close");
4216
+ const b = (g = v == null ? void 0 : v.target) == null ? void 0 : g.classList.contains("modal_close");
4219
4217
  a(v, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
4220
- }, g = (v) => {
4218
+ }, p = (v) => {
4221
4219
  d(v), f && dt(() => {
4222
4220
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], At(null, n), f = null, this.modalRef.value = null, this.modalRefs) {
4223
- const b = Object.keys(this.modalRefs).map((p) => Number(p));
4221
+ const b = Object.keys(this.modalRefs).map((g) => Number(g));
4224
4222
  b.length > 0 ? this.activeModalIndex.value = Math.max(...b) : this.activeModalIndex.value = 0;
4225
4223
  }
4226
4224
  this.isUseEscCloseModal.value = !1;
@@ -4240,7 +4238,7 @@ class vr {
4240
4238
  }, i.value, {
4241
4239
  onAccept: r,
4242
4240
  onCancel: l,
4243
- onClosed: g,
4241
+ onClosed: p,
4244
4242
  onResize: c,
4245
4243
  onEsc: m,
4246
4244
  onStopMove: u
@@ -4262,7 +4260,7 @@ class vr {
4262
4260
  ...i
4263
4261
  }), n);
4264
4262
  },
4265
- destroy: g,
4263
+ destroy: p,
4266
4264
  modalRef: this.activeModalInstance,
4267
4265
  close: () => this.close()
4268
4266
  };
@@ -4311,7 +4309,7 @@ function yr(t, e, n, i, o) {
4311
4309
  }), C && r.value === "Popup" && i.togglePopup(!0), C && l.value && i.hidePopup(), e.emit("clickButton", { origin: h, value: t.modelValue });
4312
4310
  }
4313
4311
  }
4314
- function g(h) {
4312
+ function p(h) {
4315
4313
  e.emit("mouseEnterIcon", h);
4316
4314
  }
4317
4315
  function m(h) {
@@ -4320,7 +4318,7 @@ function yr(t, e, n, i, o) {
4320
4318
  return {
4321
4319
  buttonGroupClass: a,
4322
4320
  onClickButton: d,
4323
- onMouseEnterButton: g,
4321
+ onMouseEnterButton: p,
4324
4322
  onMouseLeaveButton: m,
4325
4323
  modalRef: s
4326
4324
  };
@@ -4346,7 +4344,7 @@ function br(t, e, n, i, o, r) {
4346
4344
  !t.disable && !t.readonly && f(!0);
4347
4345
  }
4348
4346
  }
4349
- function g(m) {
4347
+ function p(m) {
4350
4348
  a.value && f(!1);
4351
4349
  }
4352
4350
  return {
@@ -4354,11 +4352,11 @@ function br(t, e, n, i, o, r) {
4354
4352
  showClearButton: l,
4355
4353
  onClearValue: s,
4356
4354
  onMouseEnterTextBox: d,
4357
- onMouseLeaveTextBox: g
4355
+ onMouseLeaveTextBox: p
4358
4356
  };
4359
4357
  }
4360
4358
  function Cr(t, e, n, i, o) {
4361
- const r = H(() => t.popupOnInput), l = H(() => t.popupOnFocus), { shouldPopupContent: a, closeAllPopover: c } = o, u = T(!1), f = H(() => t.enableTitle ? n.value : ""), s = H(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), d = H(() => t.readonly || !t.editable), g = T(!1), m = H(() => !t.disable && g.value), h = H(() => ({
4359
+ const r = H(() => t.popupOnInput), l = H(() => t.popupOnFocus), { shouldPopupContent: a, closeAllPopover: c } = o, u = T(!1), f = H(() => t.enableTitle ? n.value : ""), s = H(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), d = H(() => t.readonly || !t.editable), p = T(!1), m = H(() => !t.disable && p.value), h = H(() => ({
4362
4360
  "text-left": t.textAlign === "left",
4363
4361
  "text-center": t.textAlign === "center",
4364
4362
  "text-right": t.textAlign === "right",
@@ -4385,20 +4383,20 @@ function Cr(t, e, n, i, o) {
4385
4383
  }
4386
4384
  );
4387
4385
  function M(O) {
4388
- g.value = !1, e.emit("blur", O), O.stopPropagation();
4386
+ p.value = !1, e.emit("blur", O), O.stopPropagation();
4389
4387
  }
4390
4388
  function x(O) {
4391
4389
  e.emit("click", O), c(), e.slots.default && !t.disable && !t.readonly && t.popupOnClick && o.togglePopup();
4392
4390
  }
4393
4391
  function v(O) {
4394
- !t.disable && !t.readonly && (g.value = !0, d.value || (e.emit("focus", O), l.value && !a.value && o.popup()));
4392
+ !t.disable && !t.readonly && (p.value = !0, d.value || (e.emit("focus", O), l.value && !a.value && o.popup()));
4395
4393
  }
4396
4394
  function b(O) {
4397
4395
  e.emit("input", O);
4398
4396
  const I = O.target.value;
4399
4397
  i.value = I, n.value !== I && F(I, t.updateOn === "change"), r.value && !a.value && o.popup();
4400
4398
  }
4401
- function p(O) {
4399
+ function g(O) {
4402
4400
  O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
4403
4401
  }
4404
4402
  function y(O) {
@@ -4427,39 +4425,39 @@ function Cr(t, e, n, i, o) {
4427
4425
  onInput: b,
4428
4426
  onKeyDownTextBox: y,
4429
4427
  onKeyUpTextBox: w,
4430
- onMouseDownTextBox: p,
4428
+ onMouseDownTextBox: g,
4431
4429
  onTextBoxValueChange: V
4432
4430
  };
4433
4431
  }
4434
4432
  const at = "FarrisVue_PopoverInstancesKey";
4435
4433
  function wr(t, e, n, i) {
4436
4434
  const o = T(), r = T(!1), { judgeCanOpen: l } = wn(t, i);
4437
- ve(() => o.value, (g, m) => {
4438
- window[at] = window[at] || /* @__PURE__ */ new WeakMap(), g ? window[at].set(n.value, g) : window[at].delete(n.value);
4435
+ ve(() => o.value, (p, m) => {
4436
+ window[at] = window[at] || /* @__PURE__ */ new WeakMap(), p ? window[at].set(n.value, p) : window[at].delete(n.value);
4439
4437
  });
4440
4438
  function a() {
4441
4439
  if (window[at]) {
4442
- const g = window[at];
4440
+ const p = window[at];
4443
4441
  document.querySelectorAll(".f-button-edit,.v-popover").forEach((m) => {
4444
- const h = g.get(m);
4442
+ const h = p.get(m);
4445
4443
  h && m !== n.value && !n.value.closest(".popover-fitcontent") && h.hide();
4446
4444
  });
4447
4445
  }
4448
4446
  }
4449
4447
  function c() {
4450
- const g = o.value;
4451
- g && g.show(n.value);
4448
+ const p = o.value;
4449
+ p && p.show(n.value);
4452
4450
  }
4453
- async function u(g = !1) {
4451
+ async function u(p = !1) {
4454
4452
  if (!!e.slots.default) {
4455
- if (!g && !r.value && !await l())
4453
+ if (!p && !r.value && !await l())
4456
4454
  return;
4457
4455
  r.value = !r.value, r.value && (await dt(), c());
4458
4456
  }
4459
4457
  }
4460
- async function f(g = !1) {
4458
+ async function f(p = !1) {
4461
4459
  if (!!e.slots.default) {
4462
- if (!g && !await l())
4460
+ if (!p && !await l())
4463
4461
  return;
4464
4462
  r.value = !0, await dt(), c();
4465
4463
  }
@@ -4485,28 +4483,28 @@ function Sr(t, e, n) {
4485
4483
  onFocusTextBox: f,
4486
4484
  onInput: s,
4487
4485
  onKeyDownTextBox: d,
4488
- onKeyUpTextBox: g,
4486
+ onKeyUpTextBox: p,
4489
4487
  onMouseDownTextBox: m,
4490
4488
  onTextBoxValueChange: h
4491
4489
  } = n, C = T(t.id), {
4492
4490
  uuid: F
4493
- } = Et(), S = H(() => ({
4491
+ } = kt(), S = H(() => ({
4494
4492
  // 'border-top-right-radius': '6px',
4495
4493
  // 'border-bottom-right-radius': '6px'
4496
4494
  }));
4497
4495
  Qe(() => {
4498
- var p, y;
4499
- t.selectOnCreated && ((p = i.value) == null || p.select()), t.focusOnCreated && ((y = i.value) == null || y.focus({
4496
+ var g, y;
4497
+ t.selectOnCreated && ((g = i.value) == null || g.select()), t.focusOnCreated && ((y = i.value) == null || y.focus({
4500
4498
  preventScroll: !0
4501
4499
  })), C.value || (C.value = "button-edit_" + F(8)), C.value = C.value + "-textbox";
4502
4500
  });
4503
- const M = T(!1), x = (p) => {
4504
- p.preventDefault(), M.value = !0;
4505
- }, v = (p) => {
4506
- p.preventDefault(), M.value = !1, s(p);
4501
+ const M = T(!1), x = (g) => {
4502
+ g.preventDefault(), M.value = !0;
4503
+ }, v = (g) => {
4504
+ g.preventDefault(), M.value = !1, s(g);
4507
4505
  };
4508
- function b(p) {
4509
- M.value || s(p);
4506
+ function b(g) {
4507
+ M.value || s(g);
4510
4508
  }
4511
4509
  return () => R("input", {
4512
4510
  id: t.id ? t.id + "-textbox" : void 0,
@@ -4530,7 +4528,7 @@ function Sr(t, e, n) {
4530
4528
  onFocus: f,
4531
4529
  onInput: b,
4532
4530
  onKeydown: d,
4533
- onKeyup: g,
4531
+ onKeyup: p,
4534
4532
  onMousedown: m,
4535
4533
  onCompositionend: v,
4536
4534
  onCompositionstart: x
@@ -4557,7 +4555,7 @@ function Mr(t, e, n) {
4557
4555
  ve([() => t.disable, () => t.readonly], ([m, h], [C, F]) => {
4558
4556
  d.value = !m && !h;
4559
4557
  });
4560
- function g(m) {
4558
+ function p(m) {
4561
4559
  c(m);
4562
4560
  }
4563
4561
  return () => R($i, {
@@ -4572,7 +4570,7 @@ function Mr(t, e, n) {
4572
4570
  showInput: !0,
4573
4571
  disable: o.value,
4574
4572
  onChange: s,
4575
- onClick: g
4573
+ onClick: p
4576
4574
  }, null);
4577
4575
  }
4578
4576
  function Fr(t, e, n, i) {
@@ -4587,7 +4585,7 @@ function Fr(t, e, n, i) {
4587
4585
  onClearValue: f
4588
4586
  } = i, s = T(), d = ui((m) => {
4589
4587
  r(m);
4590
- }, t.buttonBehavior === "Modal" ? 0 : 200), g = () => {
4588
+ }, t.buttonBehavior === "Modal" ? 0 : 200), p = () => {
4591
4589
  e.emit("beforeClearValue");
4592
4590
  };
4593
4591
  return {
@@ -4597,7 +4595,7 @@ function Fr(t, e, n, i) {
4597
4595
  }, [c.value && pn(R("span", {
4598
4596
  class: "input-group-text input-group-clear",
4599
4597
  onClick: f,
4600
- onMousedown: g
4598
+ onMousedown: p
4601
4599
  }, [R("i", {
4602
4600
  class: "f-icon modal_close"
4603
4601
  }, null)]), [[ni, u.value]]), e.slots.buttonContent ? R("span", {
@@ -4656,35 +4654,35 @@ const _r = /* @__PURE__ */ it({
4656
4654
  showPopup: c,
4657
4655
  togglePopup: u
4658
4656
  } = r, f = yr(t, e, n, r, o), s = T(""), d = Cr(t, e, o, s, r), {
4659
- hasFocusedTextBox: g,
4657
+ hasFocusedTextBox: p,
4660
4658
  commitValue: m,
4661
4659
  inputGroupClass: h
4662
- } = d, C = br(t, e, o, g, s, d), {
4660
+ } = d, C = br(t, e, o, p, s, d), {
4663
4661
  onMouseEnterTextBox: F,
4664
4662
  onMouseLeaveTextBox: S
4665
4663
  } = C, M = T(!1), x = H(() => {
4666
- const k = {
4664
+ const E = {
4667
4665
  "f-button-edit": !0,
4668
4666
  "f-cmp-inputgroup": !0,
4669
4667
  "f-button-edit-nowrap": !t.wrapText
4670
4668
  };
4671
- return i.value && i.value.split(" ").reduce((L, P) => (L[P] = !0, L), k), k;
4669
+ return i.value && i.value.split(" ").reduce((L, P) => (L[P] = !0, L), E), E;
4672
4670
  }), v = H(() => ({
4673
4671
  overflow: t.wrapText ? "hidden" : ""
4674
4672
  })), b = H(() => ({
4675
4673
  // paddingLeft: '3px',
4676
4674
  // backgroundColor: '#fff'
4677
4675
  }));
4678
- function p() {
4676
+ function g() {
4679
4677
  if (!t.multiSelect || t.inputType !== "tag" || !n.value)
4680
4678
  return 0;
4681
- let k = 0;
4679
+ let E = 0;
4682
4680
  const L = Array.from(n.value.querySelectorAll(".farris-tag-item"));
4683
- return L && L.length && (k = L.map((P) => P.offsetTop).filter((P) => P > 20).length), k;
4681
+ return L && L.length && (E = L.map((P) => P.offsetTop).filter((P) => P > 20).length), E;
4684
4682
  }
4685
- const y = T(p());
4683
+ const y = T(g());
4686
4684
  ii(() => {
4687
- y.value = p();
4685
+ y.value = g();
4688
4686
  });
4689
4687
  function w() {
4690
4688
  return t.multiSelect && t.inputType === "tag" ? () => R(mt, null, [Mr(t, o, d)(), !!y.value && R("div", {
@@ -4701,7 +4699,7 @@ const _r = /* @__PURE__ */ it({
4701
4699
  const {
4702
4700
  renderButtonGroup: O,
4703
4701
  buttonHandleElement: I
4704
- } = Fr(t, e, f, C), B = Tr(t, e, r), E = T(l.value), _ = {
4702
+ } = Fr(t, e, f, C), B = Tr(t, e, r), k = T(l.value), _ = {
4705
4703
  displayText: s,
4706
4704
  commitValue: m,
4707
4705
  elementRef: n,
@@ -4714,15 +4712,15 @@ const _r = /* @__PURE__ */ it({
4714
4712
  I.value && t.buttonBehavior === "Modal" && I.value.click();
4715
4713
  },
4716
4714
  getModal: () => {
4717
- var k;
4718
- return t.buttonBehavior === "Modal" ? (k = f.modalRef.value) == null ? void 0 : k.value : null;
4715
+ var E;
4716
+ return t.buttonBehavior === "Modal" ? (E = f.modalRef.value) == null ? void 0 : E.value : null;
4719
4717
  },
4720
4718
  getTextbox: () => {
4721
- var k;
4722
- return (k = n.value) == null ? void 0 : k.querySelector("input");
4719
+ var E;
4720
+ return (E = n.value) == null ? void 0 : E.querySelector("input");
4723
4721
  },
4724
4722
  forceClosePopup: () => {
4725
- E.value = !1, M.value = !0, l.value = !1;
4723
+ k.value = !1, M.value = !0, l.value = !1;
4726
4724
  }
4727
4725
  };
4728
4726
  return Qe(() => {
@@ -4730,25 +4728,25 @@ const _r = /* @__PURE__ */ it({
4730
4728
  document.body.click();
4731
4729
  };
4732
4730
  }), oi(() => {
4733
- var k;
4734
- window.onresize = null, (k = window[at]) == null || k.delete(n.value);
4735
- }), e.expose(_), ve(() => l.value, async (k, L) => {
4731
+ var E;
4732
+ window.onresize = null, (E = window[at]) == null || E.delete(n.value);
4733
+ }), e.expose(_), ve(() => l.value, async (E, L) => {
4736
4734
  if (M.value) {
4737
- E.value = k, M.value = !1;
4735
+ k.value = E, M.value = !1;
4738
4736
  return;
4739
4737
  }
4740
- if (!k && t.beforeClosePopup && typeof t.beforeClosePopup == "function") {
4738
+ if (!E && t.beforeClosePopup && typeof t.beforeClosePopup == "function") {
4741
4739
  try {
4742
4740
  const P = await t.beforeClosePopup();
4743
- E.value = !P, (!P || t.readonly) && (l.value = !0);
4741
+ k.value = !P, (!P || t.readonly) && (l.value = !0);
4744
4742
  } catch (P) {
4745
- console.error("Error in beforeClosePopup:", P), E.value = L, l.value = L;
4743
+ console.error("Error in beforeClosePopup:", P), k.value = L, l.value = L;
4746
4744
  }
4747
4745
  return;
4748
4746
  }
4749
- E.value = k;
4747
+ k.value = E;
4750
4748
  }), () => {
4751
- var k, L;
4749
+ var E, L;
4752
4750
  return R(mt, null, [R("div", mn(e.attrs, {
4753
4751
  ref: n,
4754
4752
  class: x.value,
@@ -4760,7 +4758,7 @@ const _r = /* @__PURE__ */ it({
4760
4758
  style: b.value,
4761
4759
  onMouseenter: F,
4762
4760
  onMouseleave: S
4763
- }, [(L = (k = e.slots).precontent) == null ? void 0 : L.call(k), V(), O()])]), E.value && B()]);
4761
+ }, [(L = (E = e.slots).precontent) == null ? void 0 : L.call(E), V(), O()])]), k.value && B()]);
4764
4762
  };
4765
4763
  }
4766
4764
  }), Sn = /* @__PURE__ */ new Map([
@@ -4768,7 +4766,7 @@ const _r = /* @__PURE__ */ it({
4768
4766
  ["column", "columnOption"],
4769
4767
  ["command", "commandOption"]
4770
4768
  ]), Mn = /* @__PURE__ */ new Map([]), xr = "root-viewmodel";
4771
- class Er {
4769
+ class kr {
4772
4770
  constructor(e, n) {
4773
4771
  oe(this, "formSchemaUtils");
4774
4772
  oe(this, "controlCreatorUtils");
@@ -4788,8 +4786,8 @@ class Er {
4788
4786
  * @returns
4789
4787
  */
4790
4788
  wrapContainerSectionForComponent(e, n, i) {
4791
- var c, u, f, s, d, g, m, h, C, F, S;
4792
- const o = (u = (c = n == null ? void 0 : n.parentComponentInstance) == null ? void 0 : c.schema) == null ? void 0 : u.type, r = (d = (s = (f = n == null ? void 0 : n.parentComponentInstance) == null ? void 0 : f.schema) == null ? void 0 : s.appearance) == null ? void 0 : d.class, l = (m = (g = this.formSchemaUtils.getFormSchema()) == null ? void 0 : g.module) == null ? void 0 : m.templateId;
4789
+ var c, u, f, s, d, p, m, h, C, F, S;
4790
+ const o = (u = (c = n == null ? void 0 : n.parentComponentInstance) == null ? void 0 : c.schema) == null ? void 0 : u.type, r = (d = (s = (f = n == null ? void 0 : n.parentComponentInstance) == null ? void 0 : f.schema) == null ? void 0 : s.appearance) == null ? void 0 : d.class, l = (m = (p = this.formSchemaUtils.getFormSchema()) == null ? void 0 : p.module) == null ? void 0 : m.templateId;
4793
4791
  if (o === U["splitter-pane"].type && (r != null && r.includes("f-page-content-main")) && ["double-list-template", "tree-list-template"].includes(l))
4794
4792
  return e;
4795
4793
  const a = [U["content-container"].type, U["response-layout-item"].type, U["splitter-pane"].type];
@@ -4851,7 +4849,7 @@ class Er {
4851
4849
  */
4852
4850
  appendAddAndDeleteCommands(e) {
4853
4851
  var f;
4854
- const n = e.id.replace(/-/g, "").replace(/_/g, "").replace("component", "").replace("viewmodel", ""), i = Et().guid(), o = Et().guid(), r = this.resolveCommandController(), l = {
4852
+ const n = e.id.replace(/-/g, "").replace(/_/g, "").replace("component", "").replace("viewmodel", ""), i = kt().guid(), o = kt().guid(), r = this.resolveCommandController(), l = {
4855
4853
  id: i,
4856
4854
  code: `${n}AddItem1`,
4857
4855
  name: "增加一条子表数据",
@@ -4957,35 +4955,35 @@ class Er {
4957
4955
  const n = (d = (s = (f = e.parentComponentInstance) == null ? void 0 : f.schema) == null ? void 0 : s.appearance) == null ? void 0 : d.class, { templateId: i } = this.formSchemaUtils.getFormSchema().module;
4958
4956
  let o;
4959
4957
  if (i === "double-list-in-tab-template") {
4960
- const g = this.resolver.getSchemaByType("section");
4961
- Object.assign(g, {
4958
+ const p = this.resolver.getSchemaByType("section");
4959
+ Object.assign(p, {
4962
4960
  id: e.componentId + "-section",
4963
4961
  appearance: {
4964
4962
  class: "f-section-grid f-section-in-main px-0 pt-0"
4965
4963
  },
4966
4964
  fill: !0,
4967
4965
  showHeader: !1
4968
- }), o = g;
4966
+ }), o = p;
4969
4967
  } else if ((i === "double-list-template" || i === "tree-list-template") && (n != null && n.includes("f-page-content-main"))) {
4970
- const g = this.resolver.getSchemaByType("section");
4971
- Object.assign(g, {
4968
+ const p = this.resolver.getSchemaByType("section");
4969
+ Object.assign(p, {
4972
4970
  id: e.componentId + "-section",
4973
4971
  appearance: {
4974
4972
  class: "f-section-grid f-section-in-main"
4975
4973
  },
4976
4974
  fill: !0,
4977
4975
  showHeader: !1
4978
- }), o = g;
4976
+ }), o = p;
4979
4977
  } else {
4980
- const g = this.resolver.getSchemaByType("content-container");
4981
- Object.assign(g, {
4978
+ const p = this.resolver.getSchemaByType("content-container");
4979
+ Object.assign(p, {
4982
4980
  id: e.componentId + "-container",
4983
4981
  appearance: {
4984
4982
  class: "f-grid-is-sub f-utils-flex-column"
4985
4983
  }
4986
- }), o = g;
4984
+ }), o = p;
4987
4985
  }
4988
- const r = this.resolver.getSchemaByType("data-grid"), l = [], a = this.formStateMachineUtils && this.formStateMachineUtils.getRenderStates(), c = e.editable && a.length > 0 && a.findIndex((g) => g.id === "editable") > -1;
4986
+ const r = this.resolver.getSchemaByType("data-grid"), l = [], a = this.formStateMachineUtils && this.formStateMachineUtils.getRenderStates(), c = e.editable && a.length > 0 && a.findIndex((p) => p.id === "editable") > -1;
4989
4987
  Object.assign(r, {
4990
4988
  id: e.componentId + "-dataGrid",
4991
4989
  appearance: {
@@ -5004,10 +5002,10 @@ class Er {
5004
5002
  }
5005
5003
  }), o.contents = [r];
5006
5004
  const { selectedFields: u } = e;
5007
- return u == null || u.forEach((g) => {
5008
- if (g.$type === ft.ComplexField)
5005
+ return u == null || u.forEach((p) => {
5006
+ if (p.$type === ft.ComplexField)
5009
5007
  return;
5010
- const m = pt(g), h = this.controlCreatorUtils.setGridFieldProperty("data-grid-column", m, "", c);
5008
+ const m = pt(p), h = this.controlCreatorUtils.setGridFieldProperty("data-grid-column", m, "", c);
5011
5009
  h && l.push(h);
5012
5010
  }), [o];
5013
5011
  }
@@ -5037,7 +5035,7 @@ function Fn(t, e, n, i) {
5037
5035
  var r, l, a, c, u, f, s;
5038
5036
  const o = n.parentComponentInstance;
5039
5037
  if (o && i) {
5040
- const d = Math.random().toString(36).slice(2, 6), g = {
5038
+ const d = Math.random().toString(36).slice(2, 6), p = {
5041
5039
  componentId: `data-grid-${d}`,
5042
5040
  componentName: ((r = n.bindingSourceContext) == null ? void 0 : r.entityTitle) || ((a = (l = n.bindingSourceContext) == null ? void 0 : l.bindingEntity) == null ? void 0 : a.name) || `表格-${d}`,
5043
5041
  componentType: "data-grid",
@@ -5048,14 +5046,14 @@ function Fn(t, e, n, i) {
5048
5046
  dataSource: (f = (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : f.label,
5049
5047
  selectedFields: (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntityFields
5050
5048
  };
5051
- return new Er(t, i).createComponent(g);
5049
+ return new kr(t, i).createComponent(p);
5052
5050
  } else
5053
5051
  return e;
5054
5052
  }
5055
5053
  function Tn(t, e, n) {
5056
5054
  return e;
5057
5055
  }
5058
- const kr = "https://json-schema.org/draft/2020-12/schema", Ir = "https://farris-design.gitee.io/grid-field-editor.schema.json", Pr = "grid-field-editor", Vr = "A Farris Data Grid Component", Br = "object", Or = {
5056
+ const Er = "https://json-schema.org/draft/2020-12/schema", Ir = "https://farris-design.gitee.io/grid-field-editor.schema.json", Pr = "grid-field-editor", Vr = "A Farris Data Grid Component", Br = "object", Or = {
5059
5057
  id: {
5060
5058
  description: "The unique identifier for a Input Group",
5061
5059
  type: "string"
@@ -5079,7 +5077,7 @@ const kr = "https://json-schema.org/draft/2020-12/schema", Ir = "https://farris-
5079
5077
  "id",
5080
5078
  "type"
5081
5079
  ], Nr = {
5082
- $schema: kr,
5080
+ $schema: Er,
5083
5081
  $id: Ir,
5084
5082
  title: Pr,
5085
5083
  description: Vr,
@@ -5310,15 +5308,15 @@ function el(t, e) {
5310
5308
  function i(r, l) {
5311
5309
  const a = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
5312
5310
  return n(a).map((s) => ({ textNode: s, text: (s.textContent || "").toLocaleLowerCase() })).map(({ textNode: s, text: d }) => {
5313
- const g = [];
5311
+ const p = [];
5314
5312
  let m = 0;
5315
5313
  for (; m < d.length; ) {
5316
5314
  const h = d.indexOf(l, m);
5317
5315
  if (h === -1)
5318
5316
  break;
5319
- g.push(h), m = h + l.length;
5317
+ p.push(h), m = h + l.length;
5320
5318
  }
5321
- return g.map((h) => {
5319
+ return p.map((h) => {
5322
5320
  const C = new Range();
5323
5321
  return C.setStart(s, h), C.setEnd(s, h + l.length), C;
5324
5322
  });
@@ -5333,7 +5331,7 @@ function el(t, e) {
5333
5331
  return { search: o };
5334
5332
  }
5335
5333
  function en(t, e, n, i, o, r, l, a, c, u) {
5336
- const f = T(t.size), s = T(t.textField), d = T(t.titleField), g = T(t.disableField), m = H(() => {
5334
+ const f = T(t.size), s = T(t.textField), d = T(t.titleField), p = T(t.disableField), m = H(() => {
5337
5335
  var w, V;
5338
5336
  return ((w = t.selection) == null ? void 0 : w.multiSelect) && ((V = t.selection) == null ? void 0 : V.showCheckbox);
5339
5337
  }), {
@@ -5346,7 +5344,7 @@ function en(t, e, n, i, o, r, l, a, c, u) {
5346
5344
  listViewItemStyle: x,
5347
5345
  onCheckItem: v,
5348
5346
  onClickItem: b
5349
- } = l, p = H(() => {
5347
+ } = l, g = H(() => {
5350
5348
  const w = {
5351
5349
  "text-overflow": "ellipsis",
5352
5350
  overflow: "hidden",
@@ -5373,7 +5371,7 @@ function en(t, e, n, i, o, r, l, a, c, u) {
5373
5371
  }, [R(Gt, {
5374
5372
  id: "list-" + S(w, V),
5375
5373
  customClass: "listview-checkbox float-left",
5376
- disabled: w[g.value],
5374
+ disabled: w[p.value],
5377
5375
  checked: w.checked,
5378
5376
  "onUpdate:checked": (I) => w.checked = I,
5379
5377
  onChange: (I) => {
@@ -5383,7 +5381,7 @@ function en(t, e, n, i, o, r, l, a, c, u) {
5383
5381
  class: "f-list-content"
5384
5382
  }, [R("div", {
5385
5383
  class: t.itemContentClass,
5386
- style: p.value,
5384
+ style: g.value,
5387
5385
  title: w.raw[d.value] || w.raw[s.value]
5388
5386
  }, [w.raw[s.value]])])]);
5389
5387
  }
@@ -5393,7 +5391,7 @@ function en(t, e, n, i, o, r, l, a, c, u) {
5393
5391
  }
5394
5392
  function tl(t, e, n, i, o, r, l, a, c, u) {
5395
5393
  const f = T(t.multiSelect), s = T(t.disableField), d = T(t.textField), {
5396
- onMouseenterItem: g,
5394
+ onMouseenterItem: p,
5397
5395
  onMouseoverItem: m,
5398
5396
  onMouseoutItem: h
5399
5397
  } = r, {
@@ -5403,42 +5401,42 @@ function tl(t, e, n, i, o, r, l, a, c, u) {
5403
5401
  onCheckItem: M,
5404
5402
  onClickItem: x
5405
5403
  } = l;
5406
- function v(p, y, w) {
5404
+ function v(g, y, w) {
5407
5405
  return t.contentTemplate ? R(mt, null, [t.contentTemplate({
5408
- item: p.raw,
5406
+ item: g.raw,
5409
5407
  index: y,
5410
5408
  selectedItem: w
5411
5409
  })]) : e.slots.content ? R(mt, null, [e.slots.content && e.slots.content({
5412
- item: p.raw,
5410
+ item: g.raw,
5413
5411
  index: y,
5414
5412
  selectedItem: w
5415
5413
  })]) : R("div", {
5416
5414
  style: "margin: 10px 0;"
5417
- }, [p.raw[d.value || "name"]]);
5415
+ }, [g.raw[d.value || "name"]]);
5418
5416
  }
5419
- function b(p, y, w) {
5417
+ function b(g, y, w) {
5420
5418
  return R("li", {
5421
- class: F(p, y),
5422
- id: C(p, y),
5423
- key: C(p, y),
5424
- style: S(p, y),
5425
- onClick: (V) => x(p, y, V),
5426
- onMouseenter: (V) => g(V, p, y),
5427
- onMouseover: (V) => m(V, p, y),
5428
- onMouseout: (V) => h(V, p, y)
5419
+ class: F(g, y),
5420
+ id: C(g, y),
5421
+ key: C(g, y),
5422
+ style: S(g, y),
5423
+ onClick: (V) => x(g, y, V),
5424
+ onMouseenter: (V) => p(V, g, y),
5425
+ onMouseover: (V) => m(V, g, y),
5426
+ onMouseout: (V) => h(V, g, y)
5429
5427
  }, [f.value && R("div", {
5430
5428
  class: "f-list-select",
5431
5429
  onClick: (V) => V.stopPropagation()
5432
5430
  }, [R(Gt, {
5433
- id: "list-" + C(p, y),
5431
+ id: "list-" + C(g, y),
5434
5432
  customClass: "listview-checkbox",
5435
- disabled: p[s.value] || !p.checked,
5436
- checked: p.checked,
5437
- "onUpdate:checked": (V) => p.checked = V,
5438
- onChange: (V) => M(p, y, !V.checked)
5433
+ disabled: g[s.value],
5434
+ checked: g.checked,
5435
+ "onUpdate:checked": (V) => g.checked = V,
5436
+ onChange: (V) => M(g, y, !V.checked)
5439
5437
  }, null)]), R("div", {
5440
5438
  class: "f-list-content"
5441
- }, [v(p, y, w)])]);
5439
+ }, [v(g, y, w)])]);
5442
5440
  }
5443
5441
  return {
5444
5442
  renderItem: b
@@ -5446,7 +5444,7 @@ function tl(t, e, n, i, o, r, l, a, c, u) {
5446
5444
  }
5447
5445
  function nl(t, e, n, i, o, r, l, a, c, u) {
5448
5446
  const f = T(t.multiSelect), s = T(t.disableField), d = T(t.textField), {
5449
- onMouseenterItem: g,
5447
+ onMouseenterItem: p,
5450
5448
  onMouseoverItem: m,
5451
5449
  onMouseoutItem: h
5452
5450
  } = r, {
@@ -5458,56 +5456,56 @@ function nl(t, e, n, i, o, r, l, a, c, u) {
5458
5456
  dragstart: x,
5459
5457
  dragenter: v,
5460
5458
  dragover: b,
5461
- dragend: p
5459
+ dragend: g
5462
5460
  } = i, {
5463
5461
  removeItem: y
5464
5462
  } = c, w = H(() => ({
5465
5463
  margin: f.value ? "10px 0" : "10px 0px 10px 14px"
5466
5464
  }));
5467
- function V(_, k = "") {
5465
+ function V(_, E = "") {
5468
5466
  const L = _.target;
5469
- L.title = L.scrollWidth > L.clientWidth ? k : "";
5467
+ L.title = L.scrollWidth > L.clientWidth ? E : "";
5470
5468
  }
5471
5469
  function O(_) {
5472
5470
  return R("div", {
5473
5471
  style: w.value,
5474
- onMouseenter: (k) => V(k, _.raw[d.value || "name"])
5472
+ onMouseenter: (E) => V(E, _.raw[d.value || "name"])
5475
5473
  }, [_.raw[d.value || "name"]]);
5476
5474
  }
5477
5475
  function I() {
5478
5476
  return e.slots.itemContent ? e.slots.itemContent : O;
5479
5477
  }
5480
5478
  const B = I();
5481
- function E(_, k, L) {
5479
+ function k(_, E, L) {
5482
5480
  return R("li", {
5483
- class: F(_, k),
5484
- id: C(_, k),
5485
- key: C(_, k),
5486
- onClick: (P) => M(_, k, P),
5487
- onMouseenter: (P) => g(P, _, k),
5488
- onMouseover: (P) => m(P, _, k),
5489
- onMouseout: (P) => h(P, _, k),
5481
+ class: F(_, E),
5482
+ id: C(_, E),
5483
+ key: C(_, E),
5484
+ onClick: (P) => M(_, E, P),
5485
+ onMouseenter: (P) => p(P, _, E),
5486
+ onMouseover: (P) => m(P, _, E),
5487
+ onMouseout: (P) => h(P, _, E),
5490
5488
  draggable: "true",
5491
- onDragstart: (P) => x(P, _, k),
5492
- onDragenter: (P) => v(P, k),
5493
- onDragend: (P) => p(P, _),
5489
+ onDragstart: (P) => x(P, _, E),
5490
+ onDragenter: (P) => v(P, E),
5491
+ onDragend: (P) => g(P, _),
5494
5492
  onDragover: (P) => b(P)
5495
5493
  }, [f.value && R("div", {
5496
5494
  class: "f-list-select",
5497
5495
  onClick: (P) => P.stopPropagation()
5498
5496
  }, [R(Gt, {
5499
- id: "list-" + C(_, k),
5497
+ id: "list-" + C(_, E),
5500
5498
  customClass: "listview-checkbox",
5501
5499
  disabled: _[s.value] || !_.checked,
5502
5500
  checked: _.checked,
5503
5501
  "onUpdate:checked": (P) => _.checked = P,
5504
- onChange: (P) => S(_, k, !P.checked)
5502
+ onChange: (P) => S(_, E, !P.checked)
5505
5503
  }, null)]), R("div", {
5506
5504
  class: "f-list-content"
5507
5505
  }, [B(_)]), R("div", {
5508
5506
  class: "f-list-remove",
5509
5507
  onClick: (P) => {
5510
- P.stopPropagation(), y(k);
5508
+ P.stopPropagation(), y(E);
5511
5509
  }
5512
5510
  }, [R("div", {
5513
5511
  class: "f-list-remove-icon"
@@ -5520,7 +5518,7 @@ function nl(t, e, n, i, o, r, l, a, c, u) {
5520
5518
  }, null)])])]);
5521
5519
  }
5522
5520
  return {
5523
- renderItem: E
5521
+ renderItem: k
5524
5522
  };
5525
5523
  }
5526
5524
  function il(t, e, n, i, o, r, l, a, c, u) {
@@ -5530,7 +5528,7 @@ function il(t, e, n, i, o, r, l, a, c, u) {
5530
5528
  } = o, {
5531
5529
  toggleGroupRow: d
5532
5530
  } = u;
5533
- function g(F, S) {
5531
+ function p(F, S) {
5534
5532
  S.collapse = !S.collapse, n.value = d(S.collapse ? "collapse" : "expand", S, n.value);
5535
5533
  }
5536
5534
  function m(F, S, M) {
@@ -5540,7 +5538,7 @@ function il(t, e, n, i, o, r, l, a, c, u) {
5540
5538
  selectedItem: M
5541
5539
  })]) : R("div", {
5542
5540
  class: "f-navlookup-recentHeader",
5543
- onClick: (x) => g(x, F)
5541
+ onClick: (x) => p(x, F)
5544
5542
  }, [R("div", {
5545
5543
  class: "fv-grid-group-row-icon"
5546
5544
  }, [R("span", {
@@ -5569,7 +5567,7 @@ function ol(t, e, n, i) {
5569
5567
  return { removeItem: l };
5570
5568
  }
5571
5569
  function rl(t, e, n, i, o, r, l, a, c, u) {
5572
- const f = T(t.view), s = T(t.view === "CardView"), d = T({}), g = ol(t, e, i, c), m = H(() => ({
5570
+ const f = T(t.view), s = T(t.view === "CardView"), d = T({}), p = ol(t, e, i, c), m = H(() => ({
5573
5571
  "f-list-view-group": !0,
5574
5572
  "f-list-view-group-multiselect": t.multiSelect,
5575
5573
  "d-flex": s.value,
@@ -5581,13 +5579,13 @@ function rl(t, e, n, i, o, r, l, a, c, u) {
5581
5579
  }
5582
5580
  const S = F(), {
5583
5581
  renderItem: M
5584
- } = S(t, e, n, u, o, r, c, l, g, a), {
5582
+ } = S(t, e, n, u, o, r, c, l, p, a), {
5585
5583
  renderItem: x
5586
- } = il(t, e, n, u, o, r, c, l, g, a), v = [M, x];
5584
+ } = il(t, e, n, u, o, r, c, l, p, a), v = [M, x];
5587
5585
  function b() {
5588
5586
  return n.value.filter((w) => w.visible !== !1).map((w, V) => v[w.type](w, V, d));
5589
5587
  }
5590
- function p() {
5588
+ function g() {
5591
5589
  return R("div", {
5592
5590
  class: "f-list-view-emptydata",
5593
5591
  style: "margin: 0 auto;"
@@ -5599,7 +5597,7 @@ function rl(t, e, n, i, o, r, l, a, c, u) {
5599
5597
  return R("ul", {
5600
5598
  class: m.value,
5601
5599
  style: "list-style: none;"
5602
- }, [h.value && b(), C.value && p()]);
5600
+ }, [h.value && b(), C.value && g()]);
5603
5601
  }
5604
5602
  return {
5605
5603
  renderListArea: y
@@ -5670,13 +5668,13 @@ function tn(t, e, n) {
5670
5668
  }
5671
5669
  function al() {
5672
5670
  const t = T(""), e = T(-1), n = T(""), i = T(-1), o = T(!1);
5673
- function r(s, d, g) {
5674
- i.value = g;
5671
+ function r(s, d, p) {
5672
+ i.value = p;
5675
5673
  }
5676
- function l(s, d, g) {
5677
- o.value || (i.value = g);
5674
+ function l(s, d, p) {
5675
+ o.value || (i.value = p);
5678
5676
  }
5679
- function a(s, d, g) {
5677
+ function a(s, d, p) {
5680
5678
  i.value = -1;
5681
5679
  }
5682
5680
  function c() {
@@ -5702,16 +5700,16 @@ function al() {
5702
5700
  }
5703
5701
  function sl(t, e, n, i) {
5704
5702
  const o = T(t.idField), { dataView: r } = n, l = T(-1), a = T(!1), { activeIndex: c, focusedItemId: u, hoverIndex: f, resumeHover: s, suspendHover: d } = i;
5705
- let g, m = 0, h = 0;
5706
- function C(b, p) {
5707
- const y = b - m, w = p - h;
5708
- g.style.left = parseInt(g.style.left) + y + "px", g.style.top = parseInt(g.style.top) + w + "px", m = b, h = p;
5703
+ let p, m = 0, h = 0;
5704
+ function C(b, g) {
5705
+ const y = b - m, w = g - h;
5706
+ p.style.left = parseInt(p.style.left) + y + "px", p.style.top = parseInt(p.style.top) + w + "px", m = b, h = g;
5709
5707
  }
5710
5708
  function F(b) {
5711
- const { left: p, top: y } = b.getBoundingClientRect(), w = b.cloneNode(!0);
5709
+ const { left: g, top: y } = b.getBoundingClientRect(), w = b.cloneNode(!0);
5712
5710
  return w.style.cssText = `
5713
5711
  position:absolute;
5714
- left:${p}px;
5712
+ left:${g}px;
5715
5713
  top:${document.documentElement.scrollTop ? y + document.documentElement.scrollTop : y}px;
5716
5714
  z-index: 999999;
5717
5715
  border: 1px solid #e2e3e5;
@@ -5730,30 +5728,30 @@ function sl(t, e, n, i) {
5730
5728
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
5731
5729
  `, w.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", w.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(w), w;
5732
5730
  }
5733
- function S(b, p, y) {
5734
- if (b.stopPropagation(), d(), p) {
5735
- if (g = F(b.target), b.dataTransfer) {
5731
+ function S(b, g, y) {
5732
+ if (b.stopPropagation(), d(), g) {
5733
+ if (p = F(b.target), b.dataTransfer) {
5736
5734
  const w = new Image();
5737
5735
  w.src = "", b.dataTransfer.setDragImage(w, 0, 0);
5738
5736
  }
5739
5737
  m = b.pageX, h = b.pageY, setTimeout(() => {
5740
- l.value = y, a.value = !0, p.moving = !0;
5738
+ l.value = y, a.value = !0, g.moving = !0;
5741
5739
  });
5742
5740
  }
5743
5741
  }
5744
- function M(b, p) {
5745
- if (b.preventDefault(), l.value !== p) {
5742
+ function M(b, g) {
5743
+ if (b.preventDefault(), l.value !== g) {
5746
5744
  const y = r.value[l.value], w = r.value;
5747
- w.splice(l.value, 1), w.splice(p, 0, y), l.value = p, C(b.pageX, b.pageY);
5745
+ w.splice(l.value, 1), w.splice(g, 0, y), l.value = g, C(b.pageX, b.pageY);
5748
5746
  }
5749
5747
  }
5750
5748
  function x(b) {
5751
5749
  b.preventDefault(), b.dataTransfer && (b.dataTransfer.dropEffect = "move"), C(b.pageX, b.pageY);
5752
5750
  }
5753
- function v(b, p) {
5754
- p && (p.moving = !1, g && (document.body.removeChild(g), g = null)), r.value.forEach((y, w) => {
5751
+ function v(b, g) {
5752
+ g && (g.moving = !1, p && (document.body.removeChild(p), p = null)), r.value.forEach((y, w) => {
5755
5753
  y.__fv_index__ = w;
5756
- }), a.value = !1, s(), f.value = p.raw.__fv_index__, c.value = p.raw.__fv_index__, u.value = p.raw[o.value], e.emit("change", r.value), e.emit("activeChange", [p.raw]);
5754
+ }), a.value = !1, s(), f.value = g.raw.__fv_index__, c.value = g.raw.__fv_index__, u.value = g.raw[o.value], e.emit("change", r.value), e.emit("activeChange", [g.raw]);
5757
5755
  }
5758
5756
  return {
5759
5757
  dragstart: S,
@@ -5766,68 +5764,68 @@ function sl(t, e, n, i) {
5766
5764
  function dl(t, e, n, i, o, r) {
5767
5765
  const l = T(t.idField), a = T(t.disableField), c = T(t.draggable);
5768
5766
  T(t.itemClass);
5769
- const u = T(t.selection.multiSelect ?? !1), f = T(t.selection.multiSelectMode), { isDragging: s } = i, { activeIndex: d, focusedItemId: g, hoverIndex: m } = o, { clearSelection: h, getSelectedItems: C, toggleSelectItem: F, currentSelectedDataId: S } = r, M = T(C()), x = (E) => M.value.length === 0 ? !1 : M.value.some((_) => {
5770
- let k = "";
5771
- return _.data ? k = _.data[l.value] : k = _[l.value], k === E;
5767
+ const u = T(t.selection.multiSelect ?? !1), f = T(t.selection.multiSelectMode), { isDragging: s } = i, { activeIndex: d, focusedItemId: p, hoverIndex: m } = o, { clearSelection: h, getSelectedItems: C, toggleSelectItem: F, currentSelectedDataId: S } = r, M = T(C()), x = (k) => M.value.length === 0 ? !1 : M.value.some((_) => {
5768
+ let E = "";
5769
+ return _.data ? E = _.data[l.value] : E = _[l.value], E === k;
5772
5770
  });
5773
5771
  function v() {
5774
5772
  M.value = C();
5775
5773
  }
5776
- function b(E, _) {
5777
- return E.raw[l.value] != null ? E.raw[l.value] : "";
5774
+ function b(k, _) {
5775
+ return k.raw[l.value] != null ? k.raw[l.value] : "";
5778
5776
  }
5779
- function p(E, _) {
5780
- const k = {
5777
+ function g(k, _) {
5778
+ const E = {
5781
5779
  "f-list-view-group-item": !0,
5782
5780
  "f-list-view-draggable-item": c.value,
5783
- "f-un-click": !E.checked,
5784
- "f-un-select": !!E.raw[a.value],
5781
+ "f-un-click": !k.checked,
5782
+ "f-un-select": !!k.raw[a.value],
5785
5783
  "f-listview-active": (
5786
5784
  // 多选
5787
- u.value && x(b(E)) || // 单选
5788
- !u.value && E.raw[l.value] === S.value
5785
+ u.value && x(b(k)) || // 单选
5786
+ !u.value && k.raw[l.value] === S.value
5789
5787
  ),
5790
5788
  "f-listview-hover": !s.value && _ === m.value,
5791
- moving: !!E.moving
5789
+ moving: !!k.moving
5792
5790
  };
5793
5791
  if (typeof t.itemClass == "string")
5794
- return Wt(k, t.itemClass);
5792
+ return Wt(E, t.itemClass);
5795
5793
  if (typeof t.itemClass == "function") {
5796
- const L = t.itemClass(E);
5797
- return Wt(k, L);
5794
+ const L = t.itemClass(k);
5795
+ return Wt(E, L);
5798
5796
  }
5799
- return k;
5797
+ return E;
5800
5798
  }
5801
- function y(E, _) {
5802
- const k = (
5799
+ function y(k, _) {
5800
+ const E = (
5803
5801
  // 多选
5804
- u.value && x(b(E)) || // 单选
5805
- !u.value && E.raw[l.value] === S.value
5802
+ u.value && x(b(k)) || // 单选
5803
+ !u.value && k.raw[l.value] === S.value
5806
5804
  ), L = {};
5807
- if (k && (L.backgroundColor = "#dae9ff"), typeof t.itemStyle == "string")
5805
+ if (E && (L.backgroundColor = "#dae9ff"), typeof t.itemStyle == "string")
5808
5806
  return Dt(L, t.itemStyle);
5809
5807
  if (typeof t.itemStyle == "function") {
5810
- const P = t.itemStyle(E);
5808
+ const P = t.itemStyle(k);
5811
5809
  return Dt(L, P);
5812
5810
  }
5813
5811
  return L;
5814
5812
  }
5815
5813
  const w = H(() => !u.value);
5816
- function V(E, _, k) {
5817
- E.checked = k, !E.raw[a.value] && (w.value && (g.value = E.raw[l.value]), F(E));
5814
+ function V(k, _, E) {
5815
+ k.checked = E, !k.raw[a.value] && (w.value && (p.value = k.raw[l.value]), F(k));
5818
5816
  }
5819
5817
  const O = H(() => u.value && f.value === "OnCheckClearByClick"), I = H(() => !u.value || u.value && (f.value === "OnCheckAndClick" || f.value === "OnClick"));
5820
- function B(E, _, k) {
5821
- if (E.raw[a.value]) {
5822
- k == null || k.preventDefault(), k == null || k.stopPropagation();
5818
+ function B(k, _, E) {
5819
+ if (k.raw[a.value]) {
5820
+ E == null || E.preventDefault(), E == null || E.stopPropagation();
5823
5821
  return;
5824
5822
  }
5825
- g.value = E.raw[l.value], d.value = _, O.value && h(), I.value && (F(E), v()), e.emit("clickItem", { data: M.value, index: _, dataItem: E.raw }), e.emit("activeChange", M.value);
5823
+ p.value = k.raw[l.value], d.value = _, O.value && h(), I.value && (F(k), v()), e.emit("clickItem", { data: M.value, index: _, dataItem: k.raw }), e.emit("activeChange", M.value);
5826
5824
  }
5827
5825
  return {
5828
5826
  getKey: b,
5829
5827
  selectedItems: M,
5830
- listViewItemClass: p,
5828
+ listViewItemClass: g,
5831
5829
  listViewItemStyle: y,
5832
5830
  updateSelectedItems: v,
5833
5831
  onCheckItem: V,
@@ -5839,7 +5837,7 @@ const nn = /* @__PURE__ */ it({
5839
5837
  props: Kr,
5840
5838
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
5841
5839
  setup(t, e) {
5842
- const n = T(), i = T(!0), o = T(!1), r = T([]), l = 0, a = T(t.columns), c = Wi(t, e), u = zi(t), f = ji(t), s = Gi(t, u), d = Ui(t, /* @__PURE__ */ new Map(), c, f, u), g = qi(t, d, u, r, e), m = el(t, n), h = Di(t, d), C = H(() => d.dataView.value.length), F = Yi(t, e, g, u), S = Xi(t, e, u, F, r), M = Zi(t), x = Ji(t, {}, M), v = Qi(t, d, S, f, u, M, x), b = Ki(t, u, x, v), p = eo(t, u, x, v), y = to(t, a, d, C, l, v, b, p), {
5840
+ const n = T(), i = T(!0), o = T(!1), r = T([]), l = 0, a = T(t.columns), c = Wi(t, e), u = zi(t), f = ji(t), s = Gi(t, u), d = Ui(t, /* @__PURE__ */ new Map(), c, f, u), p = qi(t, d, u, r, e), m = el(t, n), h = Di(t, d), C = H(() => d.dataView.value.length), F = Yi(t, e, p, u), S = Xi(t, e, u, F, r), M = Zi(t), x = Ji(t, {}, M), v = Qi(t, d, S, f, u, M, x), b = Ki(t, u, x, v), g = eo(t, u, x, v), y = to(t, a, d, C, l, v, b, g), {
5843
5841
  getVisualData: w
5844
5842
  } = y;
5845
5843
  r.value = w(0, C.value + l - 1);
@@ -5854,10 +5852,10 @@ const nn = /* @__PURE__ */ it({
5854
5852
  return t.header === "SearchBar" ? tn : t.header === "ContentHeader" ? ll : tn;
5855
5853
  }
5856
5854
  const B = I(), {
5857
- renderHeader: E
5858
- } = B(t, e, m), _ = al(), k = sl(t, e, d, _), L = dl(t, e, r, k, _, g), {
5855
+ renderHeader: k
5856
+ } = B(t, e, m), _ = al(), E = sl(t, e, d, _), L = dl(t, e, r, E, _, p), {
5859
5857
  renderListArea: P
5860
- } = rl(t, e, r, d, s, _, g, y, L, k);
5858
+ } = rl(t, e, r, d, s, _, p, y, L, E);
5861
5859
  function $(le) {
5862
5860
  m.search(le);
5863
5861
  }
@@ -5865,7 +5863,7 @@ const nn = /* @__PURE__ */ it({
5865
5863
  le && (d.load(le), r.value = w(0, C.value + l - 1));
5866
5864
  }
5867
5865
  function Q() {
5868
- g.clearSelection(), _.clearActiveItem();
5866
+ p.clearSelection(), _.clearActiveItem();
5869
5867
  }
5870
5868
  function A() {
5871
5869
  return L.selectedItems.value;
@@ -5874,10 +5872,10 @@ const nn = /* @__PURE__ */ it({
5874
5872
  return L.selectedItems.value.map((le) => le[u.idField.value]);
5875
5873
  }
5876
5874
  function re(le) {
5877
- g.selectedValues.value = le, L.updateSelectedItems();
5875
+ p.selectedValues.value = le, L.updateSelectedItems();
5878
5876
  }
5879
5877
  function ue() {
5880
- return g.currentSelectedDataId.value;
5878
+ return p.currentSelectedDataId.value;
5881
5879
  }
5882
5880
  function J(le) {
5883
5881
  F.activeRowById(le);
@@ -5916,7 +5914,7 @@ const nn = /* @__PURE__ */ it({
5916
5914
  ve(() => t.selectionValues, (le, ye) => {
5917
5915
  le !== ye && re(le);
5918
5916
  });
5919
- const ce = no(t, g), {
5917
+ const ce = no(t, p), {
5920
5918
  sidebarWidth: fe,
5921
5919
  showSidebarCheckBox: ge
5922
5920
  } = ce, he = io(t, e), {
@@ -5927,11 +5925,11 @@ const nn = /* @__PURE__ */ it({
5927
5925
  shouldRenderPagination: X
5928
5926
  } = h, {
5929
5927
  renderDataGridPagination: K
5930
- } = ro(t, e, d, N, h, g);
5928
+ } = ro(t, e, d, N, h, p);
5931
5929
  return () => R("div", {
5932
5930
  class: V.value,
5933
5931
  onClick: ie
5934
- }, [E(), R("div", {
5932
+ }, [k(), R("div", {
5935
5933
  ref: n,
5936
5934
  class: "f-list-view-content",
5937
5935
  onMouseover: () => {
@@ -5950,14 +5948,14 @@ const nn = /* @__PURE__ */ it({
5950
5948
  emits: ["change", "activeChange", "selectItem", "unSelecteItem", "removeItem"],
5951
5949
  setup(t, e) {
5952
5950
  const n = T(t.identifyField), i = T(t.displayType), o = T(!1), r = T(t.dataSource), l = T(t.textField), a = T(t.selections || []), c = H(() => a.value.map((B) => B[n.value])), u = /* @__PURE__ */ new Map(), f = T(), s = T(), d = T();
5953
- let g;
5951
+ let p;
5954
5952
  function m() {
5955
- const B = /* @__PURE__ */ new Map(), E = t.selectionValues || [];
5956
- E.length && E.reduce((k, L) => (k.set(L, !0), k), B);
5953
+ const B = /* @__PURE__ */ new Map(), k = t.selectionValues || [];
5954
+ k.length && k.reduce((E, L) => (E.set(L, !0), E), B);
5957
5955
  const _ = t.selections || [];
5958
- _.length && (B.clear(), _.reduce((k, L) => (k.set(L[n.value], !0), k), B)), a.value.length || (a.value = r.value.filter((k) => B.has(k[n.value])).map((k) => Object.assign({}, k))), r.value.forEach((k) => {
5959
- const L = k[n.value], P = B.has(L);
5960
- k.checked = P, P && u.set(L, k);
5956
+ _.length && (B.clear(), _.reduce((E, L) => (E.set(L[n.value], !0), E), B)), a.value.length || (a.value = r.value.filter((E) => B.has(E[n.value])).map((E) => Object.assign({}, E))), r.value.forEach((E) => {
5957
+ const L = E[n.value], P = B.has(L);
5958
+ E.checked = P, P && u.set(L, E);
5961
5959
  });
5962
5960
  }
5963
5961
  m(), ve(() => t.selections, (B) => {
@@ -5965,8 +5963,8 @@ const nn = /* @__PURE__ */ it({
5965
5963
  });
5966
5964
  const h = H(() => i.value === "List"), C = H(() => i.value === "Tree");
5967
5965
  function F(B) {
5968
- const E = pt(a.value);
5969
- a.value = B.map((_) => Object.assign({}, _)), e.emit("change", a.value, E);
5966
+ const k = pt(a.value);
5967
+ a.value = B.map((_) => Object.assign({}, _)), e.emit("change", a.value, k);
5970
5968
  }
5971
5969
  function S(B) {
5972
5970
  e.emit("selectItem", B);
@@ -6027,25 +6025,25 @@ const nn = /* @__PURE__ */ it({
6027
6025
  class: "container columns-box d-flex f-utils-fill"
6028
6026
  }, [h.value && x(), C.value && v()])])]);
6029
6027
  }
6030
- function p(B) {
6031
- const E = B[n.value];
6032
- if (E !== null || E !== void 0) {
6033
- a.value = a.value.filter((k) => k[n.value] !== E);
6034
- const _ = u.get(E);
6035
- _ && (_.checked = !1, u.delete(E)), e.emit("change", a.value), e.emit("removeItem", B);
6028
+ function g(B) {
6029
+ const k = B[n.value];
6030
+ if (k !== null || k !== void 0) {
6031
+ a.value = a.value.filter((E) => E[n.value] !== k);
6032
+ const _ = u.get(k);
6033
+ _ && (_.checked = !1, u.delete(k)), e.emit("change", a.value), e.emit("removeItem", B);
6036
6034
  }
6037
6035
  }
6038
6036
  ve(a, (B) => {
6039
6037
  f.value.updateDataSource(pt(B));
6040
- const E = g == null ? void 0 : g[n.value], _ = B.find((k) => E === k[n.value]);
6041
- _ ? f.value.activeRowById(_[n.value]) : (g = null, f.value.activeRowById(""));
6038
+ const k = p == null ? void 0 : p[n.value], _ = B.find((E) => k === E[n.value]);
6039
+ _ ? f.value.activeRowById(_[n.value]) : (p = null, f.value.activeRowById(""));
6042
6040
  });
6043
6041
  function y(B) {
6044
- const E = /* @__PURE__ */ new Map();
6045
- a.value.reduce((_, k) => (_.set(k[n.value], k), _), E), a.value = B.map((_) => E.get(_[n.value])), e.emit("change", a.value);
6042
+ const k = /* @__PURE__ */ new Map();
6043
+ a.value.reduce((_, E) => (_.set(E[n.value], E), _), k), a.value = B.map((_) => k.get(_[n.value])), e.emit("change", a.value);
6046
6044
  }
6047
6045
  function w(B) {
6048
- g = B[0], e.emit("activeChange", B);
6046
+ p = B[0], e.emit("activeChange", B);
6049
6047
  }
6050
6048
  function V() {
6051
6049
  var B;
@@ -6060,13 +6058,13 @@ const nn = /* @__PURE__ */ it({
6060
6058
  textField: l.value,
6061
6059
  itemClass: t.selectedItemClass,
6062
6060
  onChange: y,
6063
- onRemoveItem: p,
6061
+ onRemoveItem: g,
6064
6062
  onActiveChange: w,
6065
6063
  checkBeforeRemoveItem: t.checkBeforeRemoveItem
6066
6064
  }, {
6067
- itemContent: (B = e.slots) != null && B.text ? (E) => {
6065
+ itemContent: (B = e.slots) != null && B.text ? (k) => {
6068
6066
  var _;
6069
- return ((_ = e.slots) == null ? void 0 : _.text) && e.slots.text(E);
6067
+ return ((_ = e.slots) == null ? void 0 : _.text) && e.slots.text(k);
6070
6068
  } : null
6071
6069
  });
6072
6070
  }
@@ -6112,37 +6110,37 @@ const nn = /* @__PURE__ */ it({
6112
6110
  const {
6113
6111
  fieldEditable: u
6114
6112
  } = t.gridData, f = T(`共 ${(c || []).length} 项`), s = T([]), d = T([]);
6115
- let g = [];
6116
- function m(E, _ = !0) {
6113
+ let p = [];
6114
+ function m(k, _ = !0) {
6117
6115
  if (a.checkCanDeleteControl) {
6118
- const k = g.find((L) => {
6116
+ const E = p.find((L) => {
6119
6117
  var P;
6120
- return ((P = L.data) == null ? void 0 : P.id) === E.id;
6118
+ return ((P = L.data) == null ? void 0 : P.id) === k.id;
6121
6119
  });
6122
- return a.checkCanDeleteControl(k, _);
6120
+ return a.checkCanDeleteControl(E, _);
6123
6121
  }
6124
6122
  return !0;
6125
6123
  }
6126
6124
  const h = {
6127
- customRowStatus: (E) => {
6128
- const _ = E.raw;
6129
- _.type && _.type.fields && _.type.fields.length > 0 && (E.disabled = !0), m(_, !1) || (E.disabled = !0);
6125
+ customRowStatus: (k) => {
6126
+ const _ = k.raw;
6127
+ _.type && _.type.fields && _.type.fields.length > 0 && (k.disabled = !0), m(_, !1) || (k.disabled = !0);
6130
6128
  }
6131
6129
  };
6132
6130
  function C() {
6133
6131
  if (s.value = [], !c || c.length === 0)
6134
6132
  return [];
6135
- const E = "[绑定字段不存在,待移除]";
6133
+ const k = "[绑定字段不存在,待移除]";
6136
6134
  c.forEach((_) => {
6137
6135
  if (_.binding && _.binding.field) {
6138
- const k = g.find((L) => L.data.id === _.binding.field);
6139
- k ? k.data.$type === ft.ComplexField ? s.value.push(Object.assign({
6136
+ const E = p.find((L) => L.data.id === _.binding.field);
6137
+ E ? E.data.$type === ft.ComplexField ? s.value.push(Object.assign({
6140
6138
  isInValidBinding: !0
6141
- }, k.data, {
6142
- name: k.data.name + E
6143
- })) : s.value.push(Object.assign({}, k.data)) : s.value.push({
6139
+ }, E.data, {
6140
+ name: E.data.name + k
6141
+ })) : s.value.push(Object.assign({}, E.data)) : s.value.push({
6144
6142
  id: _.binding.field,
6145
- name: _.title + E,
6143
+ name: _.title + k,
6146
6144
  label: _.field,
6147
6145
  bindingField: null,
6148
6146
  isInValidBinding: !0
@@ -6150,35 +6148,35 @@ const nn = /* @__PURE__ */ it({
6150
6148
  }
6151
6149
  }), f.value = `共 ${s.value.length} 项`;
6152
6150
  }
6153
- function F(E, _ = []) {
6154
- return E && E.forEach((k) => {
6155
- if (_.push(k), k.children && F(k.children, _), a.appendIdentifyForNewControl) {
6151
+ function F(k, _ = []) {
6152
+ return k && k.forEach((E) => {
6153
+ if (_.push(E), E.children && F(E.children, _), a.appendIdentifyForNewControl) {
6156
6154
  const L = c.find((P) => {
6157
6155
  var $;
6158
- return (($ = P.binding) == null ? void 0 : $.field) === k.data.id;
6156
+ return (($ = P.binding) == null ? void 0 : $.field) === E.data.id;
6159
6157
  });
6160
- (!L || L[a.identifyForNewControl]) && a.appendIdentifyForNewControl(k);
6158
+ (!L || L[a.identifyForNewControl]) && a.appendIdentifyForNewControl(E);
6161
6159
  }
6162
6160
  }), _;
6163
6161
  }
6164
6162
  function S() {
6165
6163
  if (o.designerMode === "PC_RTC" && r.rtcAddedTreeNodes.value) {
6166
- const E = r.getTableInfoByViewModelId(n.value);
6167
- if (E != null && E.id) {
6168
- const _ = r.rtcAddedTreeNodes.value[E.id];
6164
+ const k = r.getTableInfoByViewModelId(n.value);
6165
+ if (k != null && k.id) {
6166
+ const _ = r.rtcAddedTreeNodes.value[k.id];
6169
6167
  _ != null && _.length && (d.value = d.value.concat(_));
6170
6168
  }
6171
6169
  }
6172
6170
  }
6173
6171
  function M() {
6174
- d.value = i.getAllFields2TreeByVMId(n.value), S(), g = F(d.value);
6172
+ d.value = i.getAllFields2TreeByVMId(n.value), S(), p = F(d.value);
6175
6173
  }
6176
- function x(E, _, k) {
6174
+ function x(k, _, E) {
6177
6175
  if (o.getComponents().find((P) => {
6178
- let $ = o.getControlsInCmpWidthBinding(P.viewModel, E);
6176
+ let $ = o.getControlsInCmpWidthBinding(P.viewModel, k);
6179
6177
  if ($ = $.filter((q) => {
6180
6178
  var A;
6181
- if (q.id === k)
6179
+ if (q.id === E)
6182
6180
  return !1;
6183
6181
  const Q = _.type === "visible" ? q[_.type] : (A = q.editor) == null ? void 0 : A[_.type];
6184
6182
  if (Q && Q.type === "Expression" && Q.expressionId === _.id)
@@ -6188,14 +6186,14 @@ const nn = /* @__PURE__ */ it({
6188
6186
  }))
6189
6187
  return !0;
6190
6188
  }
6191
- function v(E) {
6192
- E.map((_) => {
6189
+ function v(k) {
6190
+ k.map((_) => {
6193
6191
  var L;
6194
- const k = c.find((P) => {
6192
+ const E = c.find((P) => {
6195
6193
  var $;
6196
6194
  return (($ = P.binding) == null ? void 0 : $.field) === _;
6197
6195
  });
6198
- if (k && o.getExpressions().length) {
6196
+ if (E && o.getExpressions().length) {
6199
6197
  const P = o.getExpressions(), $ = P.findIndex((q) => q.target === _);
6200
6198
  $ > -1 && ((L = P[$].rules) == null || L.map((q) => {
6201
6199
  var Q;
@@ -6203,19 +6201,19 @@ const nn = /* @__PURE__ */ it({
6203
6201
  case "visible":
6204
6202
  case "readonly":
6205
6203
  case "required": {
6206
- const A = q.type === "visible" ? k[q.type] : (Q = k.editor) == null ? void 0 : Q[q.type];
6207
- A && A.type === "Expression" && A.expressionId === q.id && (x(_, q, k.id) || (q.needDelete = !0));
6204
+ const A = q.type === "visible" ? E[q.type] : (Q = E.editor) == null ? void 0 : Q[q.type];
6205
+ A && A.type === "Expression" && A.expressionId === q.id && (x(_, q, E.id) || (q.needDelete = !0));
6208
6206
  break;
6209
6207
  }
6210
6208
  default:
6211
- x(_, q, k.id) || (q.needDelete = !0);
6209
+ x(_, q, E.id) || (q.needDelete = !0);
6212
6210
  }
6213
6211
  }), P[$].rules = P[$].rules.filter((q) => !q.needDelete));
6214
6212
  }
6215
6213
  });
6216
6214
  }
6217
6215
  function b() {
6218
- const E = i.getDgViewModel(n.value), _ = [], k = [], L = s.value;
6216
+ const k = i.getDgViewModel(n.value), _ = [], E = [], L = s.value;
6219
6217
  L.forEach(($) => {
6220
6218
  const q = c == null ? void 0 : c.find((Q) => {
6221
6219
  if (Q.binding && Q.binding.field)
@@ -6225,18 +6223,18 @@ const nn = /* @__PURE__ */ it({
6225
6223
  _.push(q);
6226
6224
  else {
6227
6225
  const Q = l.setGridFieldProperty(t.gridType, $.data, null, u);
6228
- E.addField($), _.push(Q);
6226
+ k.addField($), _.push(Q);
6229
6227
  }
6230
- k.push($.id);
6228
+ E.push($.id);
6231
6229
  });
6232
- const P = E.fields.filter(($) => !k.includes($.id));
6230
+ const P = k.fields.filter(($) => !E.includes($.id));
6233
6231
  if (P && P.length > 0) {
6234
6232
  const $ = P.map((q) => q.id);
6235
- E.removeField($), v($);
6233
+ k.removeField($), v($);
6236
6234
  }
6237
6235
  L.length !== s.value.length && (s.value = L), f.value = `共 ${_.length} 项`, e.emit("change", _);
6238
6236
  }
6239
- const p = {
6237
+ const g = {
6240
6238
  fitContent: !1,
6241
6239
  width: 900,
6242
6240
  height: 600,
@@ -6251,27 +6249,27 @@ const nn = /* @__PURE__ */ it({
6251
6249
  function y() {
6252
6250
  return t.getLatestGridData ? c = t.getLatestGridData().columns : c = t.gridData.columns, M(), C(), Promise.resolve(!0);
6253
6251
  }
6254
- function w(E) {
6255
- s.value = [...s.value, E.raw];
6252
+ function w(k) {
6253
+ s.value = [...s.value, k.raw];
6256
6254
  }
6257
- function V(E) {
6258
- const _ = s.value.findIndex((k) => k.id === E.raw.id);
6255
+ function V(k) {
6256
+ const _ = s.value.findIndex((E) => E.id === k.raw.id);
6259
6257
  _ > -1 && (s.value = [...s.value.slice(0, _), ...s.value.slice(_ + 1)]);
6260
6258
  }
6261
- function O(E) {
6262
- const _ = s.value.findIndex((k) => k.id === E.id);
6259
+ function O(k) {
6260
+ const _ = s.value.findIndex((E) => E.id === k.id);
6263
6261
  _ > -1 && (s.value = [...s.value.slice(0, _), ...s.value.slice(_ + 1)]);
6264
6262
  }
6265
- function I(E) {
6266
- const _ = E[0].__fv_index__, k = s.value.findIndex((P) => P.id === E[0].id), L = s.value.find((P) => P.id === E[0].id);
6267
- s.value.splice(k, 1), s.value.splice(_, 0, L);
6263
+ function I(k) {
6264
+ const _ = k[0].__fv_index__, E = s.value.findIndex((P) => P.id === k[0].id), L = s.value.find((P) => P.id === k[0].id);
6265
+ s.value.splice(E, 1), s.value.splice(_, 0, L);
6268
6266
  }
6269
6267
  const B = [{
6270
6268
  field: "name",
6271
6269
  title: "",
6272
6270
  dataType: "string",
6273
6271
  width: "100%",
6274
- formatter: (E, _) => E.data + ` [${_.data.bindingField.data}]`
6272
+ formatter: (k, _) => k.data + ` [${_.data.bindingField.data}]`
6275
6273
  }, {
6276
6274
  field: "bindingField",
6277
6275
  visible: !1,
@@ -6282,9 +6280,9 @@ const nn = /* @__PURE__ */ it({
6282
6280
  M();
6283
6281
  }), () => R(_r, {
6284
6282
  "button-behavior": "Modal",
6285
- "modal-options": p,
6283
+ "modal-options": g,
6286
6284
  modelValue: f.value,
6287
- "onUpdate:modelValue": (E) => f.value = E,
6285
+ "onUpdate:modelValue": (k) => f.value = k,
6288
6286
  editable: !1,
6289
6287
  beforeOpen: y
6290
6288
  }, {
@@ -6303,9 +6301,9 @@ const nn = /* @__PURE__ */ it({
6303
6301
  onActiveChange: I,
6304
6302
  checkBeforeRemoveItem: m
6305
6303
  }, {
6306
- text: (E) => R("div", {
6304
+ text: (k) => R("div", {
6307
6305
  style: "margin: 10px 0px 10px 14px;"
6308
- }, [E.data.name.data, tt(" ["), E.data.bindingField.data, tt("]")])
6306
+ }, [k.data.name.data, tt(" ["), k.data.bindingField.data, tt("]")])
6309
6307
  })])]
6310
6308
  });
6311
6309
  }
@@ -6495,8 +6493,7 @@ const nn = /* @__PURE__ */ it({
6495
6493
  },
6496
6494
  columnTemplateType: {
6497
6495
  description: "列模板类型",
6498
- type: "string",
6499
- default: "default"
6496
+ type: "string"
6500
6497
  }
6501
6498
  }, yl = [
6502
6499
  "id",
@@ -6683,11 +6680,21 @@ const nn = /* @__PURE__ */ it({
6683
6680
  description: "是否允许拖拽",
6684
6681
  type: "boolean",
6685
6682
  default: !1
6683
+ },
6684
+ onClickLinkCommand: {
6685
+ description: "超链接事件",
6686
+ type: "string",
6687
+ default: ""
6688
+ },
6689
+ columnTemplateType: {
6690
+ description: "列模板类型",
6691
+ type: "string",
6692
+ default: "default"
6686
6693
  }
6687
6694
  }, xl = [
6688
6695
  "id",
6689
6696
  "type"
6690
- ], El = {
6697
+ ], kl = {
6691
6698
  $schema: wl,
6692
6699
  $id: Sl,
6693
6700
  title: Ml,
@@ -6755,7 +6762,7 @@ const nn = /* @__PURE__ */ it({
6755
6762
  formatter: { type: Function, default: () => {
6756
6763
  } },
6757
6764
  componentId: { type: String, default: "" }
6758
- }, kl = Ft(qt, Cl, Mn, Tn), Il = Ft(qt, El, Mn, Tn);
6765
+ }, El = Ft(qt, Cl, Mn, Tn), Il = Ft(qt, kl, Mn, Tn);
6759
6766
  function Pl(t) {
6760
6767
  const { formSchemaUtils: e, formStateMachineUtils: n } = t;
6761
6768
  function i(c, u = "") {
@@ -6783,7 +6790,7 @@ function Pl(t) {
6783
6790
  }
6784
6791
  return { getVariables: r, getControlName: l, getStateMachines: a };
6785
6792
  }
6786
- class En {
6793
+ class kn {
6787
6794
  constructor(e) {
6788
6795
  oe(this, "sessionVariables", [
6789
6796
  {
@@ -7050,7 +7057,7 @@ class En {
7050
7057
  };
7051
7058
  }
7052
7059
  }
7053
- class kn {
7060
+ class En {
7054
7061
  constructor(e, n) {
7055
7062
  oe(this, "componentId");
7056
7063
  oe(this, "viewModelId");
@@ -7171,8 +7178,8 @@ class kn {
7171
7178
  type: "property-editor",
7172
7179
  propertyTypes: s
7173
7180
  };
7174
- return s.map((g) => {
7175
- switch (g) {
7181
+ return s.map((p) => {
7182
+ switch (p) {
7176
7183
  case "Const":
7177
7184
  Object.assign(d, {
7178
7185
  constType: "enum",
@@ -7294,9 +7301,9 @@ class kn {
7294
7301
  return;
7295
7302
  const { expressionId: r, expressionInfo: l } = n, { targetId: a, targetType: c, expressionType: u, value: f, message: s } = l, d = this.formSchemaUtils.getModule();
7296
7303
  d.expressions = d.expressions || [];
7297
- const { expressions: g } = d;
7298
- let m = g.find((C) => C.target === a);
7299
- m || (m = { target: a, rules: [], targetType: c }, g.push(m));
7304
+ const { expressions: p } = d;
7305
+ let m = p.find((C) => C.target === a);
7306
+ m || (m = { target: a, rules: [], targetType: c }, p.push(m));
7300
7307
  const h = m.rules.find((C) => C.type === u);
7301
7308
  if (h)
7302
7309
  h.value = f, h.message = s;
@@ -7320,7 +7327,7 @@ class kn {
7320
7327
  !c || !c.rules || (c.rules = c.rules.filter((u) => u.type !== r));
7321
7328
  }
7322
7329
  getExpressionOptions(e, n, i) {
7323
- return new En(this.formSchemaUtils).getExpressionOptions(e, n, i);
7330
+ return new kn(this.formSchemaUtils).getExpressionOptions(e, n, i);
7324
7331
  }
7325
7332
  getRealTargetType(e) {
7326
7333
  return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(e.type) > -1 ? "Button" : e.binding && e.binding.field ? "Field" : "Container";
@@ -7460,6 +7467,26 @@ class Rl extends Ze {
7460
7467
  useThousands: !1,
7461
7468
  max: n
7462
7469
  }
7470
+ },
7471
+ showType: {
7472
+ description: "指定是文本框还是密码框",
7473
+ title: "展示类型",
7474
+ type: "enum",
7475
+ editor: {
7476
+ type: "combo-list",
7477
+ data: [
7478
+ { id: "text", name: "文本框" },
7479
+ { id: "password", name: "密码框" }
7480
+ ]
7481
+ },
7482
+ refreshPanelAfterChanged: !0,
7483
+ defaultValue: "text"
7484
+ },
7485
+ enableViewPassword: {
7486
+ description: "",
7487
+ title: "能否查看密码",
7488
+ visible: e.editor.showType === "password",
7489
+ type: "boolean"
7463
7490
  }
7464
7491
  });
7465
7492
  }
@@ -7633,15 +7660,15 @@ function Al(t) {
7633
7660
  const i = /* @__PURE__ */ new Map();
7634
7661
  let o = [];
7635
7662
  function r(f, s) {
7636
- const g = f.split(" ").filter((S) => S.startsWith("col-"));
7637
- if (g.length === 0) {
7663
+ const p = f.split(" ").filter((S) => S.startsWith("col-"));
7664
+ if (p.length === 0) {
7638
7665
  s.isSupportedClass = !1;
7639
7666
  return;
7640
7667
  }
7641
- let m = g.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), h = g.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), C = g.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), F = g.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S));
7668
+ let m = p.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), h = p.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), C = p.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), F = p.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S));
7642
7669
  m = m || "col-12", s.columnInSM = parseInt(m.replace("col-", ""), 10), s.displayWidthInSM = s.columnInSM / 12, s.displayWidthInSM !== 1 && (s.isSupportedClass = !1), h = h || "col-md-" + s.columnInSM, s.columnInMD = parseInt(h.replace("col-md-", ""), 10), s.displayWidthInMD = s.columnInMD / 6, [1, 2].includes(s.displayWidthInMD) || (s.isSupportedClass = !1), C = C || "col-xl-" + s.columnInMD, s.columnInLG = parseInt(C.replace("col-xl-", ""), 10), s.displayWidthInLG = s.columnInLG / 3, [1, 2, 3, 4].includes(s.displayWidthInLG) || (s.isSupportedClass = !1), F = F || "col-el-" + s.columnInLG, s.columnInEL = parseInt(F.replace("col-el-", ""), 10), s.displayWidthInEL = s.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(s.displayWidthInEL) || (s.isSupportedClass = !1);
7643
7670
  }
7644
- function l(f, s, d, g = !1) {
7671
+ function l(f, s, d, p = !1) {
7645
7672
  let m = !1;
7646
7673
  f.contents.forEach((h) => {
7647
7674
  if (h.type === "fieldset") {
@@ -7650,21 +7677,21 @@ function Al(t) {
7650
7677
  }
7651
7678
  m && (d += 1, m = !1);
7652
7679
  const C = h.appearance && h.appearance.class, F = new Nl();
7653
- C ? r(C, F) : F.isSupportedClass = !1, F.label = h.label || h.id, F.id = h.id, F.group = d, g && (F.fieldSetId = f.id), n === h.id && (e = d), i.set(h.id, h), s.push(F);
7680
+ C ? r(C, F) : F.isSupportedClass = !1, F.label = h.label || h.id, F.id = h.id, F.group = d, p && (F.fieldSetId = f.id), n === h.id && (e = d), i.set(h.id, h), s.push(F);
7654
7681
  });
7655
7682
  }
7656
7683
  function a(f) {
7657
7684
  const s = t.getComponentById(f);
7658
7685
  if (!s || !s.componentType || !s.componentType.startsWith("form"))
7659
7686
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
7660
- const d = t.selectNode(s, (g) => g.type === U["response-form"].type);
7687
+ const d = t.selectNode(s, (p) => p.type === U["response-form"].type);
7661
7688
  return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
7662
7689
  }
7663
7690
  function c(f, s) {
7664
7691
  s = s || f.id;
7665
- const { result: d, message: g, formNode: m } = a(s);
7692
+ const { result: d, message: p, formNode: m } = a(s);
7666
7693
  if (!d)
7667
- return { result: d, message: g };
7694
+ return { result: d, message: p };
7668
7695
  n = f.id, o = [], i.clear();
7669
7696
  const h = m.contents[0].type === U.fieldset.type ? 0 : 1;
7670
7697
  l(m, o, h);
@@ -7679,7 +7706,7 @@ function Al(t) {
7679
7706
  }
7680
7707
  function u(f, s) {
7681
7708
  s = s;
7682
- const { result: d, formNode: g } = a(s);
7709
+ const { result: d, formNode: p } = a(s);
7683
7710
  if (!d)
7684
7711
  return "";
7685
7712
  const m = [];
@@ -7687,15 +7714,15 @@ function Al(t) {
7687
7714
  var S;
7688
7715
  const C = i.get(h.id), F = C.appearance && C.appearance.class;
7689
7716
  if (F) {
7690
- const x = F.split(" ").filter((V) => !V.startsWith("col-")), v = "col-" + h.columnInSM, b = "col-md-" + h.columnInMD, p = "col-xl-" + h.columnInLG, y = "col-el-" + h.columnInEL, w = [v, b, p, y].concat(x);
7717
+ const x = F.split(" ").filter((V) => !V.startsWith("col-")), v = "col-" + h.columnInSM, b = "col-md-" + h.columnInMD, g = "col-xl-" + h.columnInLG, y = "col-el-" + h.columnInEL, w = [v, b, g, y].concat(x);
7691
7718
  C.appearance.class = w.join(" ");
7692
7719
  }
7693
7720
  if (h.fieldSetId) {
7694
- const M = g.contents.find((v) => v.id === h.fieldSetId), x = m.find((v) => v.id === h.fieldSetId);
7721
+ const M = p.contents.find((v) => v.id === h.fieldSetId), x = m.find((v) => v.id === h.fieldSetId);
7695
7722
  x ? (S = x.contents) == null || S.push(C) : (m.push(M), M.contents = [C]);
7696
7723
  } else
7697
7724
  m.push(C);
7698
- }), g.contents = m, g.id;
7725
+ }), p.contents = m, p.id;
7699
7726
  }
7700
7727
  return {
7701
7728
  checkCanFindFormNode: a,
@@ -7704,7 +7731,7 @@ function Al(t) {
7704
7731
  getResonseFormLayoutConfig: l
7705
7732
  };
7706
7733
  }
7707
- class Pt extends kn {
7734
+ class Pt extends En {
7708
7735
  constructor(n, i) {
7709
7736
  super(n, i);
7710
7737
  oe(this, "responseLayoutEditorFunction");
@@ -7938,7 +7965,7 @@ class Pt extends kn {
7938
7965
  });
7939
7966
  }
7940
7967
  getComponentConfig(n, i = {}, o = {}, r) {
7941
- var d, g;
7968
+ var d, p;
7942
7969
  const l = Object.assign({
7943
7970
  description: "编辑器",
7944
7971
  title: "编辑器",
@@ -7956,7 +7983,7 @@ class Pt extends kn {
7956
7983
  title: "必填",
7957
7984
  type: "boolean",
7958
7985
  editor: u,
7959
- visible: !!((g = n.binding) != null && g.field)
7986
+ visible: !!((p = n.binding) != null && p.field)
7960
7987
  },
7961
7988
  placeholder: {
7962
7989
  description: "当控件没有值时在输入框中显示的文本",
@@ -8016,12 +8043,12 @@ class Pt extends kn {
8016
8043
  const m = r.find((h) => h.id === i.id);
8017
8044
  Object.assign(m || {}, i);
8018
8045
  }
8019
- const l = r.map((m) => m.columnInSM), a = r.map((m) => m.columnInMD), c = r.map((m) => m.columnInLG), u = r.map((m) => m.columnInEL), f = this.checkIsUniqueColumn(l) ? l[0] : null, s = this.checkIsUniqueColumn(a) ? a[0] : null, d = this.checkIsUniqueColumn(c) ? c[0] : null, g = this.checkIsUniqueColumn(u) ? u[0] : null;
8046
+ const l = r.map((m) => m.columnInSM), a = r.map((m) => m.columnInMD), c = r.map((m) => m.columnInLG), u = r.map((m) => m.columnInEL), f = this.checkIsUniqueColumn(l) ? l[0] : null, s = this.checkIsUniqueColumn(a) ? a[0] : null, d = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(u) ? u[0] : null;
8020
8047
  Object.assign(o.unifiedLayout, {
8021
8048
  uniqueColClassInSM: f,
8022
8049
  uniqueColClassInMD: s,
8023
8050
  uniqueColClassInLG: d,
8024
- uniqueColClassInEL: g
8051
+ uniqueColClassInEL: p
8025
8052
  });
8026
8053
  }
8027
8054
  /**
@@ -8092,7 +8119,16 @@ class Pt extends kn {
8092
8119
  getEventPropertyConfig(n, i = "card", o, r) {
8093
8120
  const l = this;
8094
8121
  let a = [];
8095
- o && (a = a.concat(o)), this.appendFieldValueChangeEvents(n, a);
8122
+ if (o && (a = a.concat(o)), a.length === 0)
8123
+ return {
8124
+ title: "事件",
8125
+ hideTitle: !0,
8126
+ properties: {},
8127
+ tabId: "commands",
8128
+ tabName: "交互",
8129
+ hide: !0
8130
+ };
8131
+ this.appendFieldValueChangeEvents(n, a);
8096
8132
  const c = l.eventsEditorUtils.formProperties(n, l.viewModelId, a);
8097
8133
  return {
8098
8134
  title: "事件",
@@ -8101,15 +8137,15 @@ class Pt extends kn {
8101
8137
  tabId: "commands",
8102
8138
  tabName: "交互",
8103
8139
  setPropertyRelates(s, d) {
8104
- const g = s.propertyValue;
8105
- delete n[l.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: l.getControlMethodType(n), name: n.title }, l.eventsEditorUtils.saveRelatedParameters(n, l.viewModelId, g.events, g)), r && r(s, d, g);
8140
+ const p = s.propertyValue;
8141
+ delete n[l.viewModelId], p && (p.setPropertyRelates = this.setPropertyRelates, p.controlInfo = { type: l.getControlMethodType(n), name: n.title }, l.eventsEditorUtils.saveRelatedParameters(n, l.viewModelId, p.events, p)), r && r(s, d, p);
8106
8142
  const m = l.designViewModelUtils.getDgViewModel(l.viewModelId);
8107
8143
  m && l.designViewModelField && m.changeField(l.designViewModelField.id, { valueChanging: n.fieldValueChanging, valueChanged: n.fieldValueChanged });
8108
8144
  }
8109
8145
  };
8110
8146
  }
8111
8147
  getExpressionConfig(n, i, o = ["compute", "dependency", "validate"], r) {
8112
- return new En(this.formSchemaUtils).getExpressionConfig(
8148
+ return new kn(this.formSchemaUtils).getExpressionConfig(
8113
8149
  n,
8114
8150
  i,
8115
8151
  o,
@@ -8508,19 +8544,19 @@ class Wl extends Ze {
8508
8544
  title: "启用清空",
8509
8545
  type: "boolean"
8510
8546
  },
8511
- dataSourceType: {
8512
- description: "",
8513
- title: "数据源类型",
8514
- type: "enum",
8515
- editor: {
8516
- default: "static",
8517
- data: [
8518
- { id: "static", name: "静态" },
8519
- { id: "dynamic", name: "动态" }
8520
- ]
8521
- },
8522
- refreshPanelAfterChanged: !0
8523
- },
8547
+ // dataSourceType: {
8548
+ // description: "",
8549
+ // title: "数据源类型",
8550
+ // type: "enum",
8551
+ // editor: {
8552
+ // default: "static",
8553
+ // data: [
8554
+ // { id: "static", name: "静态" },
8555
+ // { id: "dynamic", name: "动态" }
8556
+ // ]
8557
+ // },
8558
+ // refreshPanelAfterChanged: true
8559
+ // },
8524
8560
  data: {
8525
8561
  description: "",
8526
8562
  title: "数据",
@@ -8561,17 +8597,17 @@ class Wl extends Ze {
8561
8597
  }
8562
8598
  },
8563
8599
  ...this.getCommonEditorProperties(e)
8564
- }, (d, g) => {
8565
- if (!d || !g.editor)
8600
+ }, (d, p) => {
8601
+ if (!d || !p.editor)
8566
8602
  return;
8567
8603
  const m = this;
8568
8604
  switch (d.propertyID) {
8569
8605
  case "dataSourceType": {
8570
- d.propertyValue === "static" ? (g.editor.valueField = "value", g.editor.textField = "name", g.editor.remote = null) : d.propertyValue === "dynamic" && (g.editor.remote = { method: "GET" }, g.editor.valueField = "value", g.editor.textField = "name");
8606
+ d.propertyValue === "static" ? (p.editor.valueField = "value", p.editor.textField = "name", p.editor.remote = null) : d.propertyValue === "dynamic" && (p.editor.remote = { method: "GET" }, p.editor.valueField = "value", p.editor.textField = "name");
8571
8607
  break;
8572
8608
  }
8573
8609
  case "data": {
8574
- !m.checkEnumDataReadonly(g) && g.formatter && (g.formatter.data = [...d.propertyValue]);
8610
+ !m.checkEnumDataReadonly(p) && p.formatter && (p.formatter.data = [...d.propertyValue]);
8575
8611
  break;
8576
8612
  }
8577
8613
  }
@@ -8615,13 +8651,13 @@ class Wl extends Ze {
8615
8651
  label: "onChange",
8616
8652
  name: "值变化事件"
8617
8653
  },
8618
- {
8619
- label: "onClear",
8620
- name: "清空事件"
8621
- },
8654
+ // {
8655
+ // label: 'onClear',
8656
+ // name: '清空事件'
8657
+ // },
8622
8658
  {
8623
8659
  label: "beforeOpen",
8624
- name: "打开下拉面板前"
8660
+ name: "下拉面板前事件"
8625
8661
  }
8626
8662
  ];
8627
8663
  i && (l = l.concat(i)), this.appendFieldValueChangeEvents(e, l);
@@ -8635,8 +8671,8 @@ class Wl extends Ze {
8635
8671
  setPropertyRelates(f, s) {
8636
8672
  const d = f.propertyValue;
8637
8673
  delete e[r.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, d.events, d)), o && o(f, s, d);
8638
- const g = r.designViewModelUtils.getDgViewModel(r.viewModelId);
8639
- g && r.designViewModelField && g.changeField(r.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged }), e.editor.beforeOpen !== e.beforeOpen && (e.editor.beforeOpen = e.beforeOpen), e.editor.onChange !== e.onChange && (e.editor.onChange = e.onChange), e.editor.onClear !== e.onClear && (e.editor.onClear = e.onClear);
8674
+ const p = r.designViewModelUtils.getDgViewModel(r.viewModelId);
8675
+ p && r.designViewModelField && p.changeField(r.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged }), e.editor.beforeOpen !== e.beforeOpen && (e.editor.beforeOpen = e.beforeOpen), e.editor.onChange !== e.onChange && (e.editor.onChange = e.onChange), e.editor.onClear !== e.onClear && (e.editor.onClear = e.onClear);
8640
8676
  }
8641
8677
  };
8642
8678
  }
@@ -8794,7 +8830,7 @@ class Jl extends Ze {
8794
8830
  }
8795
8831
  }
8796
8832
  getEditorProperties(e) {
8797
- var a, c, u, f, s, d, g, m, h, C, F, S, M, x, v;
8833
+ var a, c, u, f, s, d, p, m, h, C, F, S, M, x, v;
8798
8834
  const n = this.getDateFormatOptions(e == null ? void 0 : e.editor), i = this.getValueFormatOptions(e == null ? void 0 : e.editor), o = (c = (a = this.designViewModelField) == null ? void 0 : a.type) == null ? void 0 : c.name, r = this.getDatePickerModes(o), l = this.getExtremeDateFormat(e);
8799
8835
  return (u = e == null ? void 0 : e.editor) != null && u.selectMode || (e.editor.selectMode = "day"), this.checkMaxMinDate(e), this.getComponentConfig(e, { type: "date-picker" }, {
8800
8836
  enableClear: {
@@ -8843,7 +8879,7 @@ class Jl extends Ze {
8843
8879
  type: "boolean",
8844
8880
  readonly: ((d = e == null ? void 0 : e.editor) == null ? void 0 : d.fieldType) === "Date",
8845
8881
  refreshPanelAfterChanged: !0,
8846
- visible: ((g = e == null ? void 0 : e.editor) == null ? void 0 : g.selectMode) === "day"
8882
+ visible: ((p = e == null ? void 0 : e.editor) == null ? void 0 : p.selectMode) === "day"
8847
8883
  },
8848
8884
  displayFormat: {
8849
8885
  description: "",
@@ -8999,7 +9035,7 @@ const Ql = [
8999
9035
  { value: "down", text: "包含下级" },
9000
9036
  { value: "disable", text: "仅选择自身" }
9001
9037
  ], Kl = "";
9002
- function kt(t) {
9038
+ function Et(t) {
9003
9039
  let e = [10, 20, 30, 50, 100];
9004
9040
  return t && (typeof t == "string" && (e = t.replaceAll("[", "").replaceAll("]", "").replaceAll(" ", "").split(",")), Array.isArray(t) && (e = t)), e.map((n) => ({ value: parseInt(n, 10) })).sort((n, i) => n.value - i.value);
9005
9041
  }
@@ -9029,7 +9065,7 @@ function ta(t, e) {
9029
9065
  const { enablePager: n, pageSize: i, pageList: o } = e;
9030
9066
  t.pagination = t.pagination || {}, Object.assign(t.pagination, {
9031
9067
  enable: n,
9032
- sizeLimits: kt(o).map((r) => r.value),
9068
+ sizeLimits: Et(o).map((r) => r.value),
9033
9069
  size: i,
9034
9070
  showLimits: !0,
9035
9071
  showGoto: !1,
@@ -9049,9 +9085,9 @@ const Pn = {
9049
9085
  i.displayType = u, i.dataSource.idField = f, i.textField = s, i.dataSource.type = "ViewObject", i.enableEqualSearch = !1;
9050
9086
  const { pageInfo: d } = a.dataSource;
9051
9087
  ta(i, d);
9052
- const { treeInfo: g } = u.toUpperCase() === "NAVTREELIST" ? a.navigation : a.dataSource;
9053
- if (g) {
9054
- const { onlySelectLeaf: m, loadDataType: h } = g;
9088
+ const { treeInfo: p } = u.toUpperCase() === "NAVTREELIST" ? a.navigation : a.dataSource;
9089
+ if (p) {
9090
+ const { onlySelectLeaf: m, loadDataType: h } = p;
9055
9091
  i.loadTreeDataType = "default", i.onlySelectLeaf = m ?? !1;
9056
9092
  }
9057
9093
  if (i.dataSource.uri || (i.dataSource.uri = ea(t.id)), i.dialog) {
@@ -9123,7 +9159,7 @@ const Pn = {
9123
9159
  return n.pagination[e] == null ? !1 : n.pagination[e];
9124
9160
  if (e === "sizeLimits") {
9125
9161
  const i = n.pagination[e];
9126
- return kt(i);
9162
+ return Et(i);
9127
9163
  }
9128
9164
  if (e === "size")
9129
9165
  return n.pagination[e] || 20;
@@ -9428,7 +9464,7 @@ function da(t, e = !0) {
9428
9464
  nameField: "value",
9429
9465
  requiredFields: ["value"],
9430
9466
  uniqueFields: ["value"],
9431
- modelValue: kt((l = t.pagination) == null ? void 0 : l.sizeLimits),
9467
+ modelValue: Et((l = t.pagination) == null ? void 0 : l.sizeLimits),
9432
9468
  beforeSubmit: ({ notifyService: u, data: f }) => !f || !f.length ? (u == null || u.warning({ message: "每页显示条数不能为空!" }), !1) : new Set(f.map((d) => parseInt(d.value, 10))).size === f.length ? !0 : (u == null || u.warning({ message: "每页显示条数不能重复!" }), !1)
9433
9469
  }
9434
9470
  },
@@ -9441,7 +9477,7 @@ function da(t, e = !0) {
9441
9477
  type: "combo-list",
9442
9478
  enableClear: !1,
9443
9479
  editable: !1,
9444
- data: kt((a = t.pagination) == null ? void 0 : a.sizeLimits),
9480
+ data: Et((a = t.pagination) == null ? void 0 : a.sizeLimits),
9445
9481
  textField: "value",
9446
9482
  idField: "value",
9447
9483
  valueField: "value",
@@ -9476,12 +9512,12 @@ class ua extends Ze {
9476
9512
  var F;
9477
9513
  const r = (F = n.binding) != null && F.field ? [] : ["Const", "Variable", "StateMachine"];
9478
9514
  this.readonlyEditor = this.getPropertyEditorParams(n, r, "readonly"), this.visibleEditor = this.getPropertyEditorParams(n, r, "visible"), this.requiredEditor = this.getPropertyEditorParams(n, r, "required"), this.freeInputEditor = this.getPropertyEditorParams(n, ["Const", "Variable"], "allowFreeInput");
9479
- const l = this.getBasicProperties(n, i, o), a = this.getBehaviorConfig(n), c = this.getAppearanceProperties(n, i), u = this.getLookupConfig(n), f = this.getEventPropConfig(n), s = this.getDialogPropertyConfig(n), d = this.getPageConfig(n.editor), g = this.getTreePropConfig(n.editor), m = this.getSearchConfig(n), h = this.getExpressionConfig(n, "Field"), C = {
9515
+ const l = this.getBasicProperties(n, i, o), a = this.getBehaviorConfig(n), c = this.getAppearanceProperties(n, i), u = this.getLookupConfig(n), f = this.getEventPropConfig(n), s = this.getDialogPropertyConfig(n), d = this.getPageConfig(n.editor), p = this.getTreePropConfig(n.editor), m = this.getSearchConfig(n), h = this.getExpressionConfig(n, "Field"), C = {
9480
9516
  basic: l,
9481
9517
  appearance: c,
9482
9518
  behavior: a,
9483
9519
  lookup: u,
9484
- treeConfig: g,
9520
+ treeConfig: p,
9485
9521
  dialog: s,
9486
9522
  pager: d,
9487
9523
  searchConfig: m,
@@ -9700,16 +9736,16 @@ class ua extends Ze {
9700
9736
  }
9701
9737
  return (C = m.variables) != null && C.forms && (m.variables.forms.items = m.variables.forms.items.filter((F) => F.category === "remote")), { ...h, ...m, isServerSide: !0 };
9702
9738
  },
9703
- onSubmitModal: async ({ loadingService: u, repository: f, conditions: s, originalConditions: d, FMessageBoxService: g }) => {
9739
+ onSubmitModal: async ({ loadingService: u, repository: f, conditions: s, originalConditions: d, FMessageBoxService: p }) => {
9704
9740
  if (f)
9705
9741
  try {
9706
9742
  const m = o(), h = await f.getLookupConditions(m) || [];
9707
- return JSON.stringify(h) !== JSON.stringify(d.value) ? (u == null || u.clearAll(), g.question("视图对象中的帮助过滤条件已更改,请点击确定同步过滤数据", "", () => {
9743
+ return JSON.stringify(h) !== JSON.stringify(d.value) ? (u == null || u.clearAll(), p.question("视图对象中的帮助过滤条件已更改,请点击确定同步过滤数据", "", () => {
9708
9744
  s.value = h, d.value = JSON.parse(JSON.stringify(s.value));
9709
9745
  }, () => {
9710
9746
  }), !1) : (JSON.stringify(s.value) === JSON.stringify(d.value) || await f.saveFilterCondition(s.value, m, this.formSchemaUtils.getFormMetadataBasicInfo()), !0);
9711
9747
  } catch {
9712
- return g == null || g.error("保存失败", ""), !1;
9748
+ return p == null || p.error("保存失败", ""), !1;
9713
9749
  } finally {
9714
9750
  u == null || u.clearAll();
9715
9751
  }
@@ -10000,8 +10036,8 @@ class ua extends Ze {
10000
10036
  var C;
10001
10037
  if ((C = h == null ? void 0 : h.metadata) != null && C.content)
10002
10038
  return JSON.parse(h.metadata.content);
10003
- }), s = (r = u == null ? void 0 : u.dataSource) == null ? void 0 : r.sourceType, d = (l = f.dataSource) == null ? void 0 : l.sourceType, g = (a = u == null ? void 0 : u.dataSource) == null ? void 0 : a.sourceId, m = (c = f == null ? void 0 : f.dataSource) == null ? void 0 : c.sourceId;
10004
- if (s === "BE" && d === "BE" && g !== m)
10039
+ }), s = (r = u == null ? void 0 : u.dataSource) == null ? void 0 : r.sourceType, d = (l = f.dataSource) == null ? void 0 : l.sourceType, p = (a = u == null ? void 0 : u.dataSource) == null ? void 0 : a.sourceId, m = (c = f == null ? void 0 : f.dataSource) == null ? void 0 : c.sourceId;
10040
+ if (s === "BE" && d === "BE" && p !== m)
10005
10041
  return new Ut().error({ message: "只允许更换同数据源的帮助元数据", position: "top-center" }), !1;
10006
10042
  }
10007
10043
  return !0;
@@ -10029,8 +10065,8 @@ class fa extends Ze {
10029
10065
  var r, l, a, c, u, f, s, d;
10030
10066
  let n, i = !1;
10031
10067
  if (((r = e == null ? void 0 : e.binding) == null ? void 0 : r.type) === "Form") {
10032
- const g = this.schemaService.getFieldByIDAndVMID(e.binding.field, this.viewModelId);
10033
- (l = g == null ? void 0 : g.schemaField) != null && l.type && (n = g.schemaField.type.precision, i = g.schemaField.type.name === "BigNumber");
10068
+ const p = this.schemaService.getFieldByIDAndVMID(e.binding.field, this.viewModelId);
10069
+ (l = p == null ? void 0 : p.schemaField) != null && l.type && (n = p.schemaField.type.precision, i = p.schemaField.type.name === "BigNumber");
10034
10070
  }
10035
10071
  return this.getComponentConfig(e, { type: "number-spinner" }, {
10036
10072
  precision: {
@@ -10130,11 +10166,11 @@ class fa extends Ze {
10130
10166
  title: "显示加减按钮",
10131
10167
  type: "boolean"
10132
10168
  }
10133
- }, function(g, m, h) {
10134
- if (g)
10135
- switch (g.propertyID) {
10169
+ }, function(p, m, h) {
10170
+ if (p)
10171
+ switch (p.propertyID) {
10136
10172
  case "precision": {
10137
- m.formatter && (m.formatter.precision = g.propertyValue);
10173
+ m.formatter && (m.formatter.precision = p.propertyValue);
10138
10174
  break;
10139
10175
  }
10140
10176
  }
@@ -10423,7 +10459,7 @@ class ha extends Ze {
10423
10459
  });
10424
10460
  }
10425
10461
  }
10426
- class va extends kn {
10462
+ class va extends En {
10427
10463
  constructor(n, i) {
10428
10464
  super(n, i);
10429
10465
  oe(this, "dataGridProps", null);
@@ -10460,7 +10496,7 @@ class va extends kn {
10460
10496
  ), this.getFieldEditorProperties(n, i), this.propertyConfig.categories.templateFormat = this.getColumnTemplate(n), ((u = n.formatter) == null ? void 0 : u.type) !== "multilingual" && (this.propertyConfig.categories.formatter = this.getTemplateProperties(n)), this.getEventPropConfig(n), this.propertyConfig;
10461
10497
  }
10462
10498
  getColumnTemplate(n) {
10463
- const i = this;
10499
+ const i = n.columnTemplateType === "custom" || n.columnTemplateType === "hyperlink" || !n.columnTemplateType && n.columnTemplate, o = this;
10464
10500
  return {
10465
10501
  title: "列模板",
10466
10502
  description: "用于配置自定义列模板以及内置的格式化模板,如超链接、图片",
@@ -10482,27 +10518,27 @@ class va extends kn {
10482
10518
  description: "列模板",
10483
10519
  title: "列模板",
10484
10520
  type: "string",
10485
- visible: n.columnTemplateType === "custom" || n.columnTemplateType === "hyperlink",
10521
+ visible: i,
10486
10522
  editor: {
10487
10523
  type: "code-editor",
10488
10524
  language: "html"
10489
10525
  }
10490
10526
  }
10491
10527
  },
10492
- setPropertyRelates(o, r, l) {
10493
- var a;
10494
- if (o) {
10495
- switch (o && o.propertyID) {
10528
+ setPropertyRelates(r, l, a) {
10529
+ var c;
10530
+ if (r) {
10531
+ switch (r && r.propertyID) {
10496
10532
  case "columnTemplateType": {
10497
- o.propertyValue === "custom" && r.columnTemplate && i.notifyService.warning({ position: "top-center", message: "注意:已自定义列模板,【列格式化】【悬浮提示】【数据水平对齐方式】【数据垂直对齐方式】等列属性会失效" });
10533
+ r.propertyValue === "custom" && l.columnTemplate && o.notifyService.warning({ position: "top-center", message: "注意:已自定义列模板,【列格式化】【悬浮提示】【数据水平对齐方式】【数据垂直对齐方式】等列属性会失效" });
10498
10534
  break;
10499
10535
  }
10500
10536
  case "columnTemplate": {
10501
- o.propertyValue && i.notifyService.warning({ position: "top-center", message: "注意:已自定义列模板,【列格式化】【悬浮提示】【数据水平对齐方式】【数据垂直对齐方式】等列属性会失效" });
10537
+ r.propertyValue && o.notifyService.warning({ position: "top-center", message: "注意:已自定义列模板,【列格式化】【悬浮提示】【数据水平对齐方式】【数据垂直对齐方式】等列属性会失效" });
10502
10538
  break;
10503
10539
  }
10504
10540
  }
10505
- (a = i.getFormDesignerInstance()) == null || a.reloadPropertyPanel();
10541
+ (c = o.getFormDesignerInstance()) == null || c.reloadPropertyPanel();
10506
10542
  }
10507
10543
  }
10508
10544
  };
@@ -10541,41 +10577,42 @@ class va extends kn {
10541
10577
  return !n.binding || n.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === It.EnumType);
10542
10578
  }
10543
10579
  getEventPropConfig(n) {
10544
- var a, c;
10545
- let i = [];
10546
- ((a = n.editor) == null ? void 0 : a.type) === "combo-list" && i.push(
10580
+ var c, u;
10581
+ const i = n.columnTemplateType === "hyperlink" || !n.columnTemplateType && n.columnTemplate && n.onClickLinkCommand;
10582
+ let o = [];
10583
+ ((c = n.editor) == null ? void 0 : c.type) === "combo-list" && o.push(
10547
10584
  {
10548
10585
  label: "onChange",
10549
10586
  name: "值变化事件"
10550
10587
  },
10551
- {
10552
- label: "onClear",
10553
- name: "清空事件"
10554
- },
10588
+ // {
10589
+ // label: 'onClear',
10590
+ // name: '清空事件'
10591
+ // },
10555
10592
  {
10556
10593
  label: "beforeOpen",
10557
- name: "打卡下拉面板前事件"
10594
+ name: "下拉面板前事件"
10558
10595
  }
10559
- ), n.columnTemplateType === "hyperlink" && i.push({
10596
+ ), i && o.push({
10560
10597
  label: "onClickLinkCommand",
10561
10598
  name: "超链接事件"
10562
- }), ((c = n == null ? void 0 : n.editor) == null ? void 0 : c.type) === "lookup" && (i = [...i, ...Vn], n.editor.openType === "Popup" && (i = i.filter((u) => u.label !== "beforeSelectData")));
10563
- const o = this, r = o.eventsEditorUtils.formProperties(n, o.viewModelId, i), l = o.createBaseEventProperty(r);
10599
+ }), ((u = n == null ? void 0 : n.editor) == null ? void 0 : u.type) === "lookup" && (o = [...o, ...Vn], n.editor.openType === "Popup" && (o = o.filter((f) => f.label !== "beforeSelectData")));
10600
+ const r = this, l = r.eventsEditorUtils.formProperties(n, r.viewModelId, o), a = r.createBaseEventProperty(l);
10564
10601
  this.propertyConfig.categories.eventsEditor = {
10565
10602
  title: "事件",
10566
10603
  hideTitle: !0,
10567
- properties: l,
10604
+ properties: a,
10568
10605
  // 这个属性,标记当属性变更得时候触发重新更新属性
10569
10606
  refreshPanelAfterChanged: !0,
10570
10607
  tabId: "commands",
10571
10608
  tabName: "交互",
10572
- setPropertyRelates(u, f) {
10573
- var d;
10574
- const s = u.propertyValue;
10575
- delete n[o.viewModelId], s && (s.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(n, o.viewModelId, s.events, s)), n.remoteSort = !!n.columnSorted, n.onClickLinkCommand && !n.onClickLinkCommand.includes("communication:") && (n.columnTemplate = `<span class="f-pretend-link f-cursor-pointer"
10609
+ setPropertyRelates(f, s) {
10610
+ var p;
10611
+ const d = f.propertyValue;
10612
+ delete n[r.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(n, r.viewModelId, d.events, d)), n.remoteSort = !!n.columnSorted, n.onClickLinkCommand && !n.onClickLinkCommand.includes("communication:") && (n.columnTemplate = `<span class="f-pretend-link f-cursor-pointer"
10576
10613
  @click="(ctx)=>viewModel.current.${n.onClickLinkCommand}({id: rowData.id,context: ctx})">
10577
10614
  {{rowData.${n.field}}}
10578
- </span>`, (d = o.getFormDesignerInstance()) == null || d.reloadPropertyPanel()), n.editor.beforeOpen !== n.beforeOpen && (n.editor.beforeOpen = n.beforeOpen), n.editor.onChange !== n.onChange && (n.editor.onChange = n.onChange), n.editor.onClear !== n.onClear && (n.editor.onClear = n.onClear);
10615
+ </span>`, (p = r.getFormDesignerInstance()) == null || p.reloadPropertyPanel()), n.editor.beforeOpen !== n.beforeOpen && (n.editor.beforeOpen = n.beforeOpen), n.editor.onChange !== n.onChange && (n.editor.onChange = n.onChange);
10579
10616
  }
10580
10617
  };
10581
10618
  }
@@ -10770,7 +10807,7 @@ class va extends kn {
10770
10807
  // !propertyData.columnTemplate;
10771
10808
  // }
10772
10809
  getTemplateProperties(n) {
10773
- var r, l, a, c, u, f, s, d, g;
10810
+ var r, l, a, c, u, f, s, d, p;
10774
10811
  const i = Object.prototype.hasOwnProperty;
10775
10812
  return {
10776
10813
  title: "格式化",
@@ -10880,7 +10917,7 @@ class va extends kn {
10880
10917
  dateFormat: {
10881
10918
  title: "日期格式",
10882
10919
  $converter: "/converter/change-formatter.converter",
10883
- visible: ((d = n.formatter) == null ? void 0 : d.type) === "date" || ((g = n.formatter) == null ? void 0 : g.type) === "datetime",
10920
+ visible: ((d = n.formatter) == null ? void 0 : d.type) === "date" || ((p = n.formatter) == null ? void 0 : p.type) === "datetime",
10884
10921
  refreshPanelAfterChanged: !0,
10885
10922
  description: "日期格式",
10886
10923
  type: "enum",
@@ -11009,7 +11046,7 @@ class va extends kn {
11009
11046
  }
11010
11047
  }
11011
11048
  },
11012
- setPropertyRelates(d, g) {
11049
+ setPropertyRelates(d, p) {
11013
11050
  if (d)
11014
11051
  switch (d && d.propertyID) {
11015
11052
  case "type": {
@@ -11021,23 +11058,23 @@ class va extends kn {
11021
11058
  };
11022
11059
  const f = ["id", "type", "class", "style", "binding", "label", "responseLayout", "visible"], s = l.getGridFieldEdtiorPropConfig(n);
11023
11060
  Object.keys(s).map((d) => {
11024
- const g = s[d], m = {};
11025
- if (Object.keys(g.properties).map((h) => {
11026
- f.findIndex((C) => C === h) === -1 && g.properties[h] !== !1 && (m[h] = g.properties[h]);
11061
+ const p = s[d], m = {};
11062
+ if (Object.keys(p.properties).map((h) => {
11063
+ f.findIndex((C) => C === h) === -1 && p.properties[h] !== !1 && (m[h] = p.properties[h]);
11027
11064
  }), Object.keys(m).length !== 0) {
11028
- const h = g == null ? void 0 : g.title, C = "gridFieldEditor", F = "编辑器", S = g == null ? void 0 : g.description, M = (g == null ? void 0 : g.$converter) || "";
11065
+ const h = p == null ? void 0 : p.title, C = "gridFieldEditor", F = "编辑器", S = p == null ? void 0 : p.description, M = (p == null ? void 0 : p.$converter) || "";
11029
11066
  a.propertyConfig.categories[i + "_" + d] = {
11030
11067
  title: h,
11031
- hide: Object.prototype.hasOwnProperty.call(g, "hide") ? g.hide : !1,
11032
- hideTitle: Object.prototype.hasOwnProperty.call(g, "hideTitle") ? g.hideTitle : !1,
11033
- tabId: g.tabId || C,
11034
- tabName: g.tabName || F,
11068
+ hide: Object.prototype.hasOwnProperty.call(p, "hide") ? p.hide : !1,
11069
+ hideTitle: Object.prototype.hasOwnProperty.call(p, "hideTitle") ? p.hideTitle : !1,
11070
+ tabId: p.tabId || C,
11071
+ tabName: p.tabName || F,
11035
11072
  description: S,
11036
11073
  $converter: M,
11037
11074
  parentPropertyID: "editor",
11038
11075
  propertyData: n,
11039
11076
  properties: m,
11040
- setPropertyRelates: g == null ? void 0 : g.setPropertyRelates
11077
+ setPropertyRelates: p == null ? void 0 : p.setPropertyRelates
11041
11078
  };
11042
11079
  }
11043
11080
  });
@@ -11123,19 +11160,19 @@ function ya(t, e, n) {
11123
11160
  }
11124
11161
  function f(d) {
11125
11162
  var h, C;
11126
- const g = new va(d, e), m = (h = t == null ? void 0 : t.parent) == null ? void 0 : h.schema;
11127
- return m != null && m.groupFields && m != null && m.groupFields.includes(i.field) && (i.enableSummary = !0), g.getPropertyConfig(i, (C = t == null ? void 0 : t.parent) == null ? void 0 : C.schema);
11163
+ const p = new va(d, e), m = (h = t == null ? void 0 : t.parent) == null ? void 0 : h.schema;
11164
+ return m != null && m.groupFields && m != null && m.groupFields.includes(i.field) && (i.enableSummary = !0), p.getPropertyConfig(i, (C = t == null ? void 0 : t.parent) == null ? void 0 : C.schema);
11128
11165
  }
11129
11166
  function s() {
11130
11167
  var C, F;
11131
11168
  if (!e || !t)
11132
11169
  return;
11133
11170
  const { formSchemaUtils: d } = e;
11134
- let g = wt["data-grid"].name;
11171
+ let p = wt["data-grid"].name;
11135
11172
  const m = d.getControlBasicInfoMap(), h = m.get((F = (C = t.parent) == null ? void 0 : C.schema) == null ? void 0 : F.id);
11136
- h && h.parentPathName && (g = h.parentPathName), m.set(i.id, {
11173
+ h && h.parentPathName && (p = h.parentPathName), m.set(i.id, {
11137
11174
  showName: i.title,
11138
- parentPathName: `${g} > ${i.title}`,
11175
+ parentPathName: `${p} > ${i.title}`,
11139
11176
  reliedComponentId: h.reliedComponentId
11140
11177
  });
11141
11178
  }
@@ -11155,12 +11192,12 @@ function ba(t = {}) {
11155
11192
  if (typeof s == "number")
11156
11193
  return d[u].length === s;
11157
11194
  if (typeof s == "object") {
11158
- const g = Object.keys(s)[0], m = s[g];
11159
- if (g === "not")
11195
+ const p = Object.keys(s)[0], m = s[p];
11196
+ if (p === "not")
11160
11197
  return Number(d[u].length) !== Number(m);
11161
- if (g === "moreThan")
11198
+ if (p === "moreThan")
11162
11199
  return Number(d[u].length) >= Number(m);
11163
- if (g === "lessThan")
11200
+ if (p === "lessThan")
11164
11201
  return Number(d[u].length) <= Number(m);
11165
11202
  }
11166
11203
  return !1;
@@ -11178,14 +11215,14 @@ function ba(t = {}) {
11178
11215
  return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: s, operator: "getProperty", param: u, value: !!f }] : typeof f == "object" ? Object.keys(f).map((d) => {
11179
11216
  if (d === "length")
11180
11217
  return { target: s, operator: "length", param: null, value: f[d] };
11181
- const g = d, m = f[d];
11182
- return { target: s, operator: "getProperty", param: g, value: m };
11218
+ const p = d, m = f[d];
11219
+ return { target: s, operator: "getProperty", param: p, value: m };
11183
11220
  }) : [];
11184
11221
  }
11185
11222
  function r(u) {
11186
11223
  return Object.keys(u).reduce((s, d) => {
11187
- const g = o(d, u[d]);
11188
- return s.push(...g), s;
11224
+ const p = o(d, u[d]);
11225
+ return s.push(...p), s;
11189
11226
  }, []);
11190
11227
  }
11191
11228
  function l(u, f) {
@@ -11196,10 +11233,10 @@ function ba(t = {}) {
11196
11233
  return !1;
11197
11234
  }
11198
11235
  function a(u, f) {
11199
- return r(u).reduce((g, m) => g && l(m, f), !0);
11236
+ return r(u).reduce((p, m) => p && l(m, f), !0);
11200
11237
  }
11201
11238
  function c(u, f) {
11202
- const s = Object.keys(u), d = s.includes("allOf"), g = s.includes("anyOf"), m = d || g, F = (m ? u[m ? d ? "allOf" : "anyOf" : "allOf"] : [u]).map((M) => a(M, f));
11239
+ const s = Object.keys(u), d = s.includes("allOf"), p = s.includes("anyOf"), m = d || p, F = (m ? u[m ? d ? "allOf" : "anyOf" : "allOf"] : [u]).map((M) => a(M, f));
11203
11240
  return d ? !F.includes(!1) : F.includes(!0);
11204
11241
  }
11205
11242
  return { parseValueSchema: c };
@@ -11300,6 +11337,8 @@ const Ca = {
11300
11337
  }
11301
11338
  if (e === "commands")
11302
11339
  return t.command.enableType === "custom" ? t.command.commands : [];
11340
+ if (e === "formatter")
11341
+ return t.command.formatter;
11303
11342
  }
11304
11343
  return "";
11305
11344
  }
@@ -11318,7 +11357,7 @@ const Ca = {
11318
11357
  }
11319
11358
  return "";
11320
11359
  }
11321
- }, Ea = {
11360
+ }, ka = {
11322
11361
  convertTo: (t, e, n, i) => {
11323
11362
  t.summary ? t.summary[e] = n : t.summary = {
11324
11363
  [e]: n
@@ -11328,7 +11367,7 @@ const Ca = {
11328
11367
  });
11329
11368
  },
11330
11369
  convertFrom: (t, e, n) => t.summary && e === "enable" ? t.summary.enable : t.type === "data-grid-column" ? t.enableSummary === void 0 ? !1 : t.enableSummary : ""
11331
- }, ka = {
11370
+ }, Ea = {
11332
11371
  convertTo: (t, e, n, i) => {
11333
11372
  t.group ? t.group[e] = n : t.group = {
11334
11373
  [e]: n
@@ -11433,7 +11472,7 @@ const Ca = {
11433
11472
  </span>` : t.columnTemplate = `
11434
11473
  <span class="f-pretend-link f-cursor-pointer">
11435
11474
  {{rowData.${t.field}}}
11436
- </span>`), e === "columnTemplateType" && n === "default" && (t.columnTemplate = ""));
11475
+ </span>`), e === "columnTemplateType" && n === "default" && (t.columnTemplate = ""), e === "columnTemplateType" && n === "custom" && (t.columnTemplate = ""));
11437
11476
  },
11438
11477
  convertFrom: (t, e, n) => e === "columnTemplate" ? t.columnTemplate : e === "columnTemplateType" ? t.columnTemplateType ? t.columnTemplateType || "default" : t.columnTemplate && !t.onClickLinkCommand ? "custom" : t.columnTemplate && t.onClickLinkCommand ? "hyperlink" : "default" : ""
11439
11478
  };
@@ -11448,8 +11487,8 @@ function za(t, e, n) {
11448
11487
  ["/converter/change-formatter.converter", Ta],
11449
11488
  ["/converter/column-command.converter", _a],
11450
11489
  ["/converter/column-option.converter", xa],
11451
- ["/converter/summary.converter", Ea],
11452
- ["/converter/group.converter", ka],
11490
+ ["/converter/summary.converter", ka],
11491
+ ["/converter/group.converter", Ea],
11453
11492
  ["/converter/form-group-label.converter", Ra],
11454
11493
  ["/converter/field-selector.converter", Ia],
11455
11494
  ["/converter/pagination.converter", Pa],
@@ -11501,13 +11540,13 @@ function za(t, e, n) {
11501
11540
  }
11502
11541
  function f(m, h, C, F, S, M = "", x = "") {
11503
11542
  return Object.keys(m).map((b) => {
11504
- const p = T(1), y = b, w = m[b], V = Object.keys(w), O = w.title, I = w.type, B = o.get(I) || { type: "input-group", enableClear: !1 }, E = w.editor ? Object.assign({}, B, w.editor) : Object.assign({}, B), _ = a(V, w, h), k = c(V, w, h);
11505
- E.readonly = E.readonly === void 0 ? k() : E.readonly;
11543
+ const g = T(1), y = b, w = m[b], V = Object.keys(w), O = w.title, I = w.type, B = o.get(I) || { type: "input-group", enableClear: !1 }, k = w.editor ? Object.assign({}, B, w.editor) : Object.assign({}, B), _ = a(V, w, h), E = c(V, w, h);
11544
+ k.readonly = k.readonly === void 0 ? E() : k.readonly;
11506
11545
  const L = w.type === "cascade" ? f(w.properties, h, C, F, S, M, x) : [], P = !0;
11507
11546
  let $ = u(w, x);
11508
11547
  const q = H({
11509
11548
  get() {
11510
- if (p.value) {
11549
+ if (g.value) {
11511
11550
  if (["class", "style"].find((W) => W === y) && !$ && ($ = i.get("/converter/appearance.converter") || null), $ && $.convertFrom)
11512
11551
  return $.convertFrom(C, b, S, M);
11513
11552
  const J = C[b];
@@ -11516,50 +11555,50 @@ function za(t, e, n) {
11516
11555
  return null;
11517
11556
  },
11518
11557
  set(J) {
11519
- p.value += 1, $ && $.convertTo ? ($.convertTo(F, b, J, S, M), $.convertTo(C, b, J, S, M)) : (F[b] = J, C[b] = J);
11558
+ g.value += 1, $ && $.convertTo ? ($.convertTo(F, b, J, S, M), $.convertTo(C, b, J, S, M)) : (F[b] = J, C[b] = J);
11520
11559
  }
11521
- }), { refreshPanelAfterChanged: Q, description: A, isExpand: te, parentPropertyID: re } = w, ue = { propertyID: y, propertyName: O, propertyType: I, propertyValue: q, editor: E, visible: _, readonly: k, cascadeConfig: L, hideCascadeTitle: P, refreshPanelAfterChanged: Q, description: A, isExpand: te, parentPropertyID: re };
11560
+ }), { refreshPanelAfterChanged: Q, description: A, isExpand: te, parentPropertyID: re } = w, ue = { propertyID: y, propertyName: O, propertyType: I, propertyValue: q, editor: k, visible: _, readonly: E, cascadeConfig: L, hideCascadeTitle: P, refreshPanelAfterChanged: Q, description: A, isExpand: te, parentPropertyID: re };
11522
11561
  return h[y] = ue, ue;
11523
11562
  });
11524
11563
  }
11525
11564
  function s(m, h, C = {}) {
11526
11565
  const F = {}, S = t[m];
11527
11566
  return S && S.categories ? Object.keys(S.categories).map((x) => {
11528
- const v = S.categories[x], b = v == null ? void 0 : v.title, p = f(v.properties || {}, F, {}, C, h);
11529
- return { categoryId: x, categoryName: b, properties: p };
11567
+ const v = S.categories[x], b = v == null ? void 0 : v.title, g = f(v.properties || {}, F, {}, C, h);
11568
+ return { categoryId: x, categoryName: b, properties: g };
11530
11569
  }) : [];
11531
11570
  }
11532
11571
  function d(m, h, C, F, S = "") {
11533
- const M = h.$ref.schema, x = h.$ref.converter, v = C[M], b = v.type, p = n(v), y = {}, w = t[b];
11572
+ const M = h.$ref.schema, x = h.$ref.converter, v = C[M], b = v.type, g = n(v), y = {}, w = t[b];
11534
11573
  if (w && w.categories) {
11535
11574
  const V = w.categories[m], O = V == null ? void 0 : V.title;
11536
- x && Object.keys(V.properties).forEach((E) => {
11537
- V.properties[E].$converter = x;
11575
+ x && Object.keys(V.properties).forEach((k) => {
11576
+ V.properties[k].$converter = x;
11538
11577
  });
11539
- const I = (V == null ? void 0 : V.properties) || {}, B = f(I, y, p, v, F, S);
11578
+ const I = (V == null ? void 0 : V.properties) || {}, B = f(I, y, g, v, F, S);
11540
11579
  return { categoryId: m, categoryName: O, properties: B };
11541
11580
  }
11542
11581
  return { categoryId: m, categoryName: "", properties: [] };
11543
11582
  }
11544
- function g(m, h, C, F, S) {
11583
+ function p(m, h, C, F, S) {
11545
11584
  const M = m.type, x = n(m), v = {};
11546
11585
  let b = S || t[M];
11547
11586
  if (b && Object.keys(b).length === 0 && C && C.getPropConfig && (b = C.getPropConfig(F)), b && b.categories) {
11548
- const p = [];
11587
+ const g = [];
11549
11588
  return Object.keys(b.categories).map((y) => {
11550
11589
  const w = b.categories[y];
11551
11590
  if (w.$ref) {
11552
- p.push(d(y, w, m, h, F));
11591
+ g.push(d(y, w, m, h, F));
11553
11592
  return;
11554
11593
  }
11555
- const V = w == null ? void 0 : w.title, O = w == null ? void 0 : w.tabId, I = w == null ? void 0 : w.tabName, B = w == null ? void 0 : w.hide, E = w == null ? void 0 : w.hideTitle, _ = f(w.properties || {}, v, x, m, h, F, w.$converter), { setPropertyRelates: k } = w, L = w == null ? void 0 : w.parentPropertyID;
11556
- p.push({ categoryId: y, categoryName: V, tabId: O, tabName: I, hide: B, properties: _, hideTitle: E, setPropertyRelates: k, parentPropertyID: L });
11557
- }), p;
11594
+ const V = w == null ? void 0 : w.title, O = w == null ? void 0 : w.tabId, I = w == null ? void 0 : w.tabName, B = w == null ? void 0 : w.hide, k = w == null ? void 0 : w.hideTitle, _ = f(w.properties || {}, v, x, m, h, F, w.$converter), { setPropertyRelates: E } = w, L = w == null ? void 0 : w.parentPropertyID;
11595
+ g.push({ categoryId: y, categoryName: V, tabId: O, tabName: I, hide: B, properties: _, hideTitle: k, setPropertyRelates: E, parentPropertyID: L });
11596
+ }), g;
11558
11597
  }
11559
11598
  return [];
11560
11599
  }
11561
11600
  return {
11562
- getPropertyConfigBySchema: g,
11601
+ getPropertyConfigBySchema: p,
11563
11602
  getPropertyConfigByType: s,
11564
11603
  propertyConverterMap: i
11565
11604
  };
@@ -11567,39 +11606,39 @@ function za(t, e, n) {
11567
11606
  function ja(t, e) {
11568
11607
  let n;
11569
11608
  function i(s) {
11570
- const { properties: d, title: g, ignore: m } = s, h = m && Array.isArray(m), C = Object.keys(d).reduce((F, S) => ((!h || !m.find((M) => M === S)) && (F[S] = d[S].type === "object" && d[S].properties ? i(d[S]) : pt(d[S].default)), F), {});
11571
- if (g && (!h || !m.find((F) => F === "id"))) {
11572
- const F = g.toLowerCase().replace(/-/g, "_");
11609
+ const { properties: d, title: p, ignore: m } = s, h = m && Array.isArray(m), C = Object.keys(d).reduce((F, S) => ((!h || !m.find((M) => M === S)) && (F[S] = d[S].type === "object" && d[S].properties ? i(d[S]) : pt(d[S].default)), F), {});
11610
+ if (p && (!h || !m.find((F) => F === "id"))) {
11611
+ const F = p.toLowerCase().replace(/-/g, "_");
11573
11612
  C.id = `${F}_${Math.random().toString().slice(2, 6)}`;
11574
11613
  }
11575
11614
  return C;
11576
11615
  }
11577
11616
  function o(s) {
11578
- const { properties: d, title: g, required: m } = s;
11617
+ const { properties: d, title: p, required: m } = s;
11579
11618
  if (m && Array.isArray(m)) {
11580
11619
  const h = m.reduce((C, F) => (C[F] = d[F].type === "object" && d[F].properties ? i(d[F]) : pt(d[F].default), C), {});
11581
- if (g && m.find((C) => C === "id")) {
11582
- const C = g.toLowerCase().replace(/-/g, "_");
11620
+ if (p && m.find((C) => C === "id")) {
11621
+ const C = p.toLowerCase().replace(/-/g, "_");
11583
11622
  h.id = `${C}_${Math.random().toString().slice(2, 6)}`;
11584
11623
  }
11585
11624
  return h;
11586
11625
  }
11587
11626
  return {
11588
- type: g
11627
+ type: p
11589
11628
  };
11590
11629
  }
11591
- function r(s, d = {}, g) {
11630
+ function r(s, d = {}, p) {
11592
11631
  const m = t[s];
11593
11632
  if (m) {
11594
11633
  let h = o(m);
11595
11634
  const C = e[s];
11596
- return h = C ? C({ getSchemaByType: r }, h, d, g) : h, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(h), h;
11635
+ return h = C ? C({ getSchemaByType: r }, h, d, p) : h, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(h), h;
11597
11636
  }
11598
11637
  return null;
11599
11638
  }
11600
11639
  function l(s, d) {
11601
- const g = i(d);
11602
- return Object.keys(g).reduce((m, h) => (Object.prototype.hasOwnProperty.call(s, h) && (m[h] && Xt(m[h]) && Xt(s[h] || !s[h]) ? Object.assign(m[h], s[h] || {}) : m[h] = s[h]), m), g), g;
11640
+ const p = i(d);
11641
+ return Object.keys(p).reduce((m, h) => (Object.prototype.hasOwnProperty.call(s, h) && (m[h] && Xt(m[h]) && Xt(s[h] || !s[h]) ? Object.assign(m[h], s[h] || {}) : m[h] = s[h]), m), p), p;
11603
11642
  }
11604
11643
  function a(s, d) {
11605
11644
  return Object.keys(s).filter((m) => s[m] != null).reduce((m, h) => {
@@ -11616,18 +11655,18 @@ function ja(t, e) {
11616
11655
  return m;
11617
11656
  }, {});
11618
11657
  }
11619
- function c(s, d, g = /* @__PURE__ */ new Map()) {
11658
+ function c(s, d, p = /* @__PURE__ */ new Map()) {
11620
11659
  const m = l(s, d);
11621
- return a(m, g);
11660
+ return a(m, p);
11622
11661
  }
11623
11662
  function u(s) {
11624
- var g;
11663
+ var p;
11625
11664
  const d = s.type;
11626
11665
  if (d) {
11627
11666
  const m = t[d];
11628
11667
  if (!m)
11629
11668
  return s;
11630
- const h = l(s, m), C = ((g = s.editor) == null ? void 0 : g.type) || "";
11669
+ const h = l(s, m), C = ((p = s.editor) == null ? void 0 : p.type) || "";
11631
11670
  if (C) {
11632
11671
  const F = t[C], S = l(s.editor, F);
11633
11672
  h.editor = S;
@@ -11698,14 +11737,14 @@ const an = /* @__PURE__ */ it({
11698
11737
  } = Xa(i, o, t), f = !We("external-container-id");
11699
11738
  return () => {
11700
11739
  var m;
11701
- const s = f ? c() : !0, d = "绑定信息已失效,请手动移除列", g = s ? "" : "color:red";
11740
+ const s = f ? c() : !0, d = "绑定信息已失效,请手动移除列", p = s ? "" : "color:red";
11702
11741
  return R(mt, null, [s ? "" : R("span", {
11703
11742
  class: "f-icon f-icon-warning mr-1",
11704
11743
  style: "color: red; min-width: 16px;",
11705
11744
  title: d
11706
11745
  }, null), R("span", {
11707
11746
  class: "fv-column-title",
11708
- style: g,
11747
+ style: p,
11709
11748
  ref: n,
11710
11749
  onClick: (h) => a()
11711
11750
  }, [((m = t.editor) == null ? void 0 : m.required) === !0 && R("span", {
@@ -11867,18 +11906,7 @@ const an = /* @__PURE__ */ it({
11867
11906
  },
11868
11907
  commands: {
11869
11908
  type: "array",
11870
- default: [
11871
- {
11872
- text: "编辑",
11873
- type: "primary",
11874
- command: "edit"
11875
- },
11876
- {
11877
- text: "删除",
11878
- type: "danger",
11879
- command: "remove"
11880
- }
11881
- ]
11909
+ default: []
11882
11910
  },
11883
11911
  formatter: {
11884
11912
  description: "自定义操作列模板",
@@ -12585,7 +12613,7 @@ ct.register = (t, e, n, i) => {
12585
12613
  t["data-grid"] = Gn, e["data-grid"] = On, t["grid-field-editor"] = cl, e["grid-field-editor"] = Ar, i["data-grid"] = { bindingResolver: ls, selectionItemResolver: as, updateColumnsResolver: ss, callbackResolver: ds };
12586
12614
  };
12587
12615
  ct.registerDesigner = (t, e, n) => {
12588
- t["data-grid"] = ct, e["data-grid"] = On, e["data-grid-column"] = kl, t["data-grid-column"] = an, e["tree-grid-column"] = Il, t["tree-grid-column"] = an;
12616
+ t["data-grid"] = ct, e["data-grid"] = On, e["data-grid-column"] = El, t["data-grid-column"] = an, e["tree-grid-column"] = Il, t["tree-grid-column"] = an;
12589
12617
  };
12590
12618
  const ou = jn(ct);
12591
12619
  export {