@farris/ui-vue 1.6.0-beta.5 → 1.6.0-beta.6

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 (33) hide show
  1. package/components/data-grid/index.esm.js +1 -1
  2. package/components/data-grid/index.umd.cjs +1 -1
  3. package/components/discussion-editor/index.esm.js +1 -1
  4. package/components/discussion-editor/index.umd.cjs +1 -1
  5. package/components/drawer/index.esm.js +1 -1
  6. package/components/drawer/index.umd.cjs +1 -1
  7. package/components/locale/index.esm.js +1 -1
  8. package/components/locale/index.umd.cjs +1 -1
  9. package/components/mapping-editor/index.esm.js +1 -1
  10. package/components/mapping-editor/index.umd.cjs +1 -1
  11. package/components/transfer/index.esm.js +265 -261
  12. package/components/transfer/index.umd.cjs +3 -3
  13. package/components/tree-view/index.esm.js +1144 -1133
  14. package/components/tree-view/index.umd.cjs +1 -1
  15. package/designer/data-grid/index.esm.js +9 -3
  16. package/designer/data-grid/index.umd.cjs +1 -1
  17. package/designer/drawer/index.esm.js +1 -1
  18. package/designer/drawer/index.umd.cjs +1 -1
  19. package/farris.all.esm.js +8231 -6736
  20. package/farris.all.umd.cjs +15 -15
  21. package/package.json +1 -1
  22. package/types/calendar/src/components/header/header.component.d.ts +2 -2
  23. package/types/chs.d.ts +494 -0
  24. package/types/cht.d.ts +490 -0
  25. package/types/en.d.ts +494 -0
  26. package/types/filter-bar/index.d.ts +3 -3
  27. package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.component.d.ts +1 -1
  28. package/types/filter-bar/src/designer/filter-bar.design.component.d.ts +2 -2
  29. package/types/filter-bar/src/filter-bar.component.d.ts +1 -1
  30. package/types/index.d.ts +1479 -1
  31. package/types/order/src/designer/order.design.component.d.ts +3 -3
  32. package/types/order/src/order.component.d.ts +3 -3
  33. package/types/schema-selector/src/schema-selector.component.d.ts +1 -1
@@ -1,34 +1,34 @@
1
1
  var tr = Object.defineProperty;
2
2
  var nr = (t, e, n) => e in t ? tr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var ee = (t, e, n) => nr(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { ref as E, computed as z, watch as Ve, createVNode as R, isVNode as Sn, Fragment as Nt, createTextVNode as Tt, defineComponent as Ze, reactive as mt, createApp as xn, onUnmounted as Xt, onMounted as Ot, Transition as Tn, mergeProps as Et, onBeforeUnmount as Fn, withDirectives as or, resolveDirective as rr, nextTick as $t, inject as yt, provide as ir, triggerRef as ar, onBeforeMount as lr, Teleport as sr, shallowRef as ur, render as Zt, h as cr, cloneVNode as dr } from "vue";
5
- import { LocaleService as jt } from "../locale/index.esm.js";
6
- import { cloneDeep as bt, isPlainObject as pn, isUndefined as lt, throttle as fr } from "lodash-es";
7
- import { useIdentify as En, useGroupData as pr, useFilter as kn, useHierarchy as On, useLoading as mr, useDataView as In, useSelection as Mn, useSelectHierarchyItem as vr, useDataViewContainerStyle as Bn, useCommandColumn as hr, useColumn as Vn, useSort as gr, useGroupColumn as Nn, useRow as Rn, useEdit as Pn, useVisualDataBound as Dn, useVisualDataCell as $n, useVisualDataRow as jn, useVisualData as Ln, useCellPosition as Hn, useSidebar as Wn, useVirtualScroll as An, useFitColumn as zn, useFilterHistory as yr, useColumnFilter as br, useDragColumn as Cr, getColumnHeader as wr, getSidebar as Gn, getDisableMask as _r, getHorizontalScrollbar as qn, getVerticalScrollbar as Un, getEmpty as Yn } from "../data-view/index.esm.js";
8
- import { useI18n as dt } from "vue-i18n";
9
- import Sr from "../modal/index.esm.js";
10
- import xr from "../transfer/index.esm.js";
11
- import Tr from "../tabs/index.esm.js";
12
- import { FCheckbox as Fr } from "../checkbox/index.esm.js";
13
- import { useCommonUtils as Jt, useGuid as Er, useNumberFormat as Xn, resolveField as Qe, useDateFormat as an, FormSchemaEntityField$Type as mn, FormSchemaEntityFieldTypeName as vn, getCustomClass as Kt, withInstall as Jn, useArrayProcessor as Qn, setFieldValue as tn } from "../common/index.esm.js";
14
- import kr from "../filter-bar/index.esm.js";
4
+ import { ref as E, computed as z, watch as Be, createVNode as R, isVNode as xn, Fragment as Vt, createTextVNode as Tt, defineComponent as Ke, reactive as ht, createApp as Tn, onUnmounted as Xt, onMounted as Ot, Transition as Fn, mergeProps as Et, onBeforeUnmount as En, withDirectives as or, resolveDirective as rr, nextTick as jt, inject as bt, provide as ir, triggerRef as ar, onBeforeMount as lr, Teleport as sr, shallowRef as ur, render as Zt, h as cr, cloneVNode as dr } from "vue";
5
+ import { LocaleService as $t } from "../locale/index.esm.js";
6
+ import { createPropsResolver as an, getSchemaByTypeForDesigner as fr, resolveAppearance as pr } from "../dynamic-resolver/index.esm.js";
7
+ import { cloneDeep as Ct, isPlainObject as mn, isUndefined as ut, throttle as mr } from "lodash-es";
8
+ import { useIdentify as kn, useGroupData as vr, useFilter as On, useHierarchy as In, useLoading as hr, useDataView as Mn, useSelection as Bn, useSelectHierarchyItem as gr, useDataViewContainerStyle as Vn, useCommandColumn as yr, useColumn as Nn, useSort as br, useGroupColumn as Rn, useRow as Pn, useEdit as Dn, useVisualDataBound as jn, useVisualDataCell as $n, useVisualDataRow as Ln, useVisualData as Hn, useCellPosition as Wn, useSidebar as An, useVirtualScroll as zn, useFitColumn as Gn, useFilterHistory as Cr, useColumnFilter as wr, useDragColumn as _r, getColumnHeader as Sr, getSidebar as qn, getDisableMask as xr, getHorizontalScrollbar as Un, getVerticalScrollbar as Yn, getEmpty as Xn } from "../data-view/index.esm.js";
9
+ import { useI18n as pt } from "vue-i18n";
10
+ import Tr from "../modal/index.esm.js";
11
+ import Fr from "../transfer/index.esm.js";
12
+ import Er from "../tabs/index.esm.js";
13
+ import { FCheckbox as kr } from "../checkbox/index.esm.js";
14
+ import { useCommonUtils as Jt, useGuid as Or, useNumberFormat as Jn, resolveField as Ze, useDateFormat as ln, FormSchemaEntityField$Type as vn, FormSchemaEntityFieldTypeName as hn, getCustomClass as Kt, withInstall as Qn, useArrayProcessor as Zn, setFieldValue as tn } from "../common/index.esm.js";
15
+ import Ir from "../filter-bar/index.esm.js";
15
16
  import "../tooltip/index.esm.js";
16
- import Or from "../pagination/index.esm.js";
17
- import hn from "../button/index.esm.js";
18
- import Ir from "../search-box/index.esm.js";
19
- import Mr from "../tags/index.esm.js";
20
- import Br, { FDynamicFormGroup as Vr, FDynamicFormInput as Nr } from "../dynamic-form/index.esm.js";
21
- import { getSchemaByTypeForDesigner as Rr, resolveAppearance as Pr, createPropsResolver as Zn } from "../dynamic-resolver/index.esm.js";
17
+ import Mr from "../pagination/index.esm.js";
18
+ import gn from "../button/index.esm.js";
19
+ import Br from "../search-box/index.esm.js";
20
+ import Vr from "../tags/index.esm.js";
21
+ import Nr, { FDynamicFormGroup as Rr, FDynamicFormInput as Pr } from "../dynamic-form/index.esm.js";
22
22
  import "../designer-canvas/index.esm.js";
23
23
  import "../property-panel/index.esm.js";
24
24
  import Dr from "../accordion/index.esm.js";
25
- import $r from "../avatar/index.esm.js";
26
- import jr from "../../designer/button-edit/index.esm.js";
25
+ import jr from "../avatar/index.esm.js";
26
+ import $r from "../../designer/button-edit/index.esm.js";
27
27
  import Lr from "../button-group/index.esm.js";
28
28
  import Hr from "../calendar/index.esm.js";
29
29
  import Wr from "../capsule/index.esm.js";
30
- import gn from "../../designer/checkbox/index.esm.js";
31
- import yn from "../../designer/checkbox-group/index.esm.js";
30
+ import yn from "../../designer/checkbox/index.esm.js";
31
+ import bn from "../../designer/checkbox-group/index.esm.js";
32
32
  import nn from "../combo-list/index.esm.js";
33
33
  import Ar from "../combo-tree/index.esm.js";
34
34
  import zr from "../component/index.esm.js";
@@ -79,8 +79,8 @@ import Ni from "../filter-condition-editor/index.esm.js";
79
79
  import Ri from "../fieldset/index.esm.js";
80
80
  import Pi from "../sort-condition-editor/index.esm.js";
81
81
  import Di from "../menu-lookup/index.esm.js";
82
- import $i from "../../designer/drawer/index.esm.js";
83
- import ji from "../json-editor/index.esm.js";
82
+ import ji from "../../designer/drawer/index.esm.js";
83
+ import $i from "../json-editor/index.esm.js";
84
84
  import Li from "../property-editor/index.esm.js";
85
85
  import Hi from "../expression-editor/index.esm.js";
86
86
  import Wi from "../code-editor/index.esm.js";
@@ -88,12 +88,12 @@ import Ai from "../html-template/index.esm.js";
88
88
  import zi from "../collection-property-editor/index.esm.js";
89
89
  import Gi from "../external-container/index.esm.js";
90
90
  import qi from "../language-textbox/index.esm.js";
91
- import { useResizeObserver as ln } from "@vueuse/core";
91
+ import { useResizeObserver as sn } from "@vueuse/core";
92
92
  import "../notify/index.esm.js";
93
93
  function Kn(t, e) {
94
94
  let n;
95
95
  function o(l) {
96
- const { properties: c, title: v, ignore: f } = l, F = f && Array.isArray(f), _ = Object.keys(c).reduce((y, w) => ((!F || !f.find((m) => m === w)) && (y[w] = c[w].type === "object" && c[w].properties ? o(c[w]) : bt(c[w].default)), y), {});
96
+ const { properties: c, title: v, ignore: f } = l, F = f && Array.isArray(f), _ = Object.keys(c).reduce((y, w) => ((!F || !f.find((m) => m === w)) && (y[w] = c[w].type === "object" && c[w].properties ? o(c[w]) : Ct(c[w].default)), y), {});
97
97
  if (v && (!F || !f.find((y) => y === "id"))) {
98
98
  const y = v.toLowerCase().replace(/-/g, "_");
99
99
  _.id = `${y}_${Math.random().toString().slice(2, 6)}`;
@@ -103,7 +103,7 @@ function Kn(t, e) {
103
103
  function i(l) {
104
104
  const { properties: c, title: v, required: f } = l;
105
105
  if (f && Array.isArray(f)) {
106
- const F = f.reduce((_, y) => (_[y] = c[y].type === "object" && c[y].properties ? o(c[y]) : bt(c[y].default), _), {});
106
+ const F = f.reduce((_, y) => (_[y] = c[y].type === "object" && c[y].properties ? o(c[y]) : Ct(c[y].default), _), {});
107
107
  if (v && f.find((_) => _ === "id")) {
108
108
  const _ = v.toLowerCase().replace(/-/g, "_");
109
109
  F.id = `${_}_${Math.random().toString().slice(2, 6)}`;
@@ -125,7 +125,7 @@ function Kn(t, e) {
125
125
  }
126
126
  function r(l, c) {
127
127
  const v = o(c);
128
- return Object.keys(v).reduce((f, F) => (Object.prototype.hasOwnProperty.call(l, F) && (f[F] && pn(f[F]) && pn(l[F] || !l[F]) ? Object.assign(f[F], l[F] || {}) : f[F] = l[F]), f), v), v;
128
+ return Object.keys(v).reduce((f, F) => (Object.prototype.hasOwnProperty.call(l, F) && (f[F] && mn(f[F]) && mn(l[F] || !l[F]) ? Object.assign(f[F], l[F] || {}) : f[F] = l[F]), f), v), v;
129
129
  }
130
130
  function s(l, c) {
131
131
  return Object.keys(l).filter((f) => l[f] != null).reduce((f, F) => {
@@ -465,22 +465,22 @@ function no(t, e, n) {
465
465
  return Object.keys(f).map((g) => {
466
466
  const h = E(1), T = g, C = f[g], k = Object.keys(C), S = C.title, M = C.type, V = i.get(M) || { type: "input-group", enableClear: !1 }, O = C.editor ? Object.assign({}, V, C.editor) : Object.assign({}, V), B = s(k, C, F), L = u(k, C, F);
467
467
  O.readonly = O.readonly === void 0 ? L() : O.readonly;
468
- const X = C.type === "cascade" ? p(C.properties, F, _, y, w, m, x) : [], j = !0;
468
+ const X = C.type === "cascade" ? p(C.properties, F, _, y, w, m, x) : [], $ = !0;
469
469
  let D = d(C, x);
470
470
  const P = z({
471
471
  get() {
472
472
  if (h.value) {
473
473
  if (["class", "style"].find((G) => G === T) && !D && (D = o.get("/converter/appearance.converter") || null), D && D.convertFrom)
474
474
  return D.convertFrom(_, g, w, m);
475
- const le = _[g];
476
- return Object.prototype.hasOwnProperty.call(C, "defaultValue") && (le === void 0 || typeof le == "string" && le === "") ? C.type === "boolean" ? C.defaultValue : C.defaultValue || "" : le;
475
+ const ae = _[g];
476
+ return Object.prototype.hasOwnProperty.call(C, "defaultValue") && (ae === void 0 || typeof ae == "string" && ae === "") ? C.type === "boolean" ? C.defaultValue : C.defaultValue || "" : ae;
477
477
  }
478
478
  return null;
479
479
  },
480
- set(le) {
481
- h.value += 1, D && D.convertTo ? (D.convertTo(y, g, le, w, m), D.convertTo(_, g, le, w, m)) : (y[g] = le, _[g] = le);
480
+ set(ae) {
481
+ h.value += 1, D && D.convertTo ? (D.convertTo(y, g, ae, w, m), D.convertTo(_, g, ae, w, m)) : (y[g] = ae, _[g] = ae);
482
482
  }
483
- }), { refreshPanelAfterChanged: I, description: $, isExpand: A, parentPropertyID: J } = C, q = { propertyID: T, propertyName: S, propertyType: M, propertyValue: P, editor: O, visible: B, readonly: L, cascadeConfig: X, hideCascadeTitle: j, refreshPanelAfterChanged: I, description: $, isExpand: A, parentPropertyID: J };
483
+ }), { refreshPanelAfterChanged: I, description: j, isExpand: A, parentPropertyID: J } = C, q = { propertyID: T, propertyName: S, propertyType: M, propertyValue: P, editor: O, visible: B, readonly: L, cascadeConfig: X, hideCascadeTitle: $, refreshPanelAfterChanged: I, description: j, isExpand: A, parentPropertyID: J };
484
484
  return F[T] = q, q;
485
485
  });
486
486
  }
@@ -530,7 +530,7 @@ const oo = {}, ro = {};
530
530
  no(oo, ro, Ui);
531
531
  const io = {}, ao = {}, { getSchemaByType: Bd, resolveSchemaWithDefaultValue: ma, resolveSchemaToProps: Vd, mappingSchemaToProps: Nd, setDesignerContext: Rd } = Kn(io, ao), lo = {}, so = {};
532
532
  no(lo, so, ma);
533
- function It(t, e, n = /* @__PURE__ */ new Map(), o = (r, s, u, d) => s, i = {}, a = (r) => r) {
533
+ function Nt(t, e, n = /* @__PURE__ */ new Map(), o = (r, s, u, d) => s, i = {}, a = (r) => r) {
534
534
  return eo[e.title] = e, to[e.title] = o, oo[e.title] = i, ro[e.title] = a, io[e.title] = e, ao[e.title] = o, lo[e.title] = i, so[e.title] = a, (r = {}, s = !0) => {
535
535
  if (!s)
536
536
  return Xi(r, n);
@@ -690,7 +690,7 @@ const Ca = "tree-view", wa = "A Farris Component", _a = "object", Sa = {
690
690
  resizeColumn: { type: Boolean, default: !0 },
691
691
  /** 双击表头列自适应内容宽度 */
692
692
  resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
693
- }, sn = {
693
+ }, un = {
694
694
  /** 列集合 */
695
695
  columns: {
696
696
  type: Array,
@@ -734,7 +734,7 @@ const Ca = "tree-view", wa = "A Farris Component", _a = "object", Sa = {
734
734
  default: {
735
735
  enable: !1,
736
736
  width: 32,
737
- heading: jt.getLocaleValue("datagrid.lineNumberTitle")
737
+ heading: $t.getLocaleValue("datagrid.lineNumberTitle")
738
738
  }
739
739
  },
740
740
  /** 选择配置 */
@@ -791,9 +791,11 @@ const Ca = "tree-view", wa = "A Farris Component", _a = "object", Sa = {
791
791
  /** 是否出现省略号 */
792
792
  showEllipsis: { type: Boolean, default: !1 },
793
793
  /** 自动高度 **/
794
- autoHeight: { type: Boolean, default: !1 }
795
- }, uo = It(sn, Ba, ya, ba, xa);
796
- var tt = /* @__PURE__ */ ((t) => (t[t.readonly = 0] = "readonly", t[t.editable = 1] = "editable", t[t.editing = 2] = "editing", t))(tt || {}), ct = /* @__PURE__ */ ((t) => (t[t.initial = 0] = "initial", t[t.editing = 1] = "editing", t))(ct || {}), Rt = /* @__PURE__ */ ((t) => (t[t.data = 0] = "data", t[t.group = 1] = "group", t[t.summary = 2] = "summary", t))(Rt || {}), Je = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.filterable = 1] = "filterable", t[t.sortable = 2] = "sortable", t[t.filtered = 4] = "filtered", t[t.sorted = 8] = "sorted", t[t.ascending = 16] = "ascending", t[t.descending = 32] = "descending", t))(Je || {}), st = /* @__PURE__ */ ((t) => (t.DATE = "date", t.DATE_TIME = "datetime", t.NUMBER = "number", t.ENUM = "enum", t.IMAGE = "image", t.BOOLEAN = "boolean", t.BOOLEAN2 = "boolean2", t.TIMEAGO = "timeago", t.NONE = "none", t.CUSTOM = "custom", t.MULTI_LINGUAL = "multilingual", t))(st || {});
794
+ autoHeight: { type: Boolean, default: !1 },
795
+ /** async loading data */
796
+ loadData: { type: Function }
797
+ }, uo = an(un, Ba, ya, ba, xa);
798
+ var ot = /* @__PURE__ */ ((t) => (t[t.readonly = 0] = "readonly", t[t.editable = 1] = "editable", t[t.editing = 2] = "editing", t))(ot || {}), ft = /* @__PURE__ */ ((t) => (t[t.initial = 0] = "initial", t[t.editing = 1] = "editing", t))(ft || {}), Rt = /* @__PURE__ */ ((t) => (t[t.data = 0] = "data", t[t.group = 1] = "group", t[t.summary = 2] = "summary", t))(Rt || {}), Qe = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.filterable = 1] = "filterable", t[t.sortable = 2] = "sortable", t[t.filtered = 4] = "filtered", t[t.sorted = 8] = "sorted", t[t.ascending = 16] = "ascending", t[t.descending = 32] = "descending", t))(Qe || {}), ct = /* @__PURE__ */ ((t) => (t.DATE = "date", t.DATE_TIME = "datetime", t.NUMBER = "number", t.ENUM = "enum", t.IMAGE = "image", t.BOOLEAN = "boolean", t.BOOLEAN2 = "boolean2", t.TIMEAGO = "timeago", t.NONE = "none", t.CUSTOM = "custom", t.MULTI_LINGUAL = "multilingual", t))(ct || {});
797
799
  function co(t, e) {
798
800
  var v;
799
801
  const n = String(Date.now()), o = ((v = t.rowOption) == null ? void 0 : v.height) || 28, i = E(e.value.primaryColumnsWidth);
@@ -857,7 +859,7 @@ function co(t, e) {
857
859
  height: `${F}`
858
860
  };
859
861
  }
860
- return Ve(e, () => {
862
+ return Be(e, () => {
861
863
  i.value = e.value.primaryColumnsWidth;
862
864
  }), {
863
865
  calculateCellPositionInRow: a,
@@ -894,7 +896,7 @@ function Va(t, e, n) {
894
896
  }), l;
895
897
  }
896
898
  function d(p) {
897
- const l = p.raw.__fv_parent_index__ === void 0 || p.raw.__fv_parent_index__ === -1, v = l ? 0 : 8, f = 0, F = p.raw[o.value], _ = `${p.layer * 10 + p.layer * v + f}px`, y = p.visible || lt(p.visible) ? {
899
+ const l = p.raw.__fv_parent_index__ === void 0 || p.raw.__fv_parent_index__ === -1, v = l ? 0 : 8, f = 0, F = p.raw[o.value], _ = `${p.layer * 10 + p.layer * v + f}px`, y = p.visible || ut(p.visible) ? {
898
900
  paddingLeft: `calc(${_})`,
899
901
  // paddingLeft,
900
902
  background: s(p.index),
@@ -989,28 +991,28 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
989
991
  cellKey: B,
990
992
  cellPosition: L,
991
993
  rowKey: X,
992
- rowPosition: j
994
+ rowPosition: $
993
995
  } = co(t, n), {
994
996
  cellContentClass: D,
995
997
  cellContentPosition: P,
996
998
  cellContentClassWithEllipsis: I
997
999
  } = Pa(), {
998
- hierarchyCellContentStyle: $
1000
+ hierarchyCellContentStyle: j
999
1001
  } = Va(t, o, r), {
1000
1002
  treeNodeIconsClass: A
1001
1003
  } = Na(t, C, k);
1002
1004
  function J(ne, ve) {
1003
- const Ne = ne.raw[k.value];
1005
+ const Ve = ne.raw[k.value];
1004
1006
  return {
1005
- "fv-tree-node-toggle": Ne && ne.collapse,
1006
- "fv-tree-node-toggle-minus": Ne && !ne.collapse
1007
+ "fv-tree-node-toggle": Ve && ne.collapse,
1008
+ "fv-tree-node-toggle-minus": Ve && !ne.collapse
1007
1009
  };
1008
1010
  }
1009
1011
  function q(ne) {
1010
1012
  return ne.collapse && t.loadData ? t.loadData(ne) : Promise.resolve();
1011
1013
  }
1012
- function le(ne) {
1013
- return (ne || []).some((ve) => Sn(ve) ? !(ve.type === Comment || ve.type === Nt && !le(ve.children)) : !0) ? ne : null;
1014
+ function ae(ne) {
1015
+ return (ne || []).some((ve) => xn(ve) ? !(ve.type === Comment || ve.type === Vt && !ae(ve.children)) : !0) ? ne : null;
1014
1016
  }
1015
1017
  function G(ne, ve) {
1016
1018
  ne.stopPropagation(), q(ve).then(() => {
@@ -1023,7 +1025,7 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
1023
1025
  function W(ne, ve) {
1024
1026
  return R("div", {
1025
1027
  class: J(ne),
1026
- onClick: (Ne) => G(Ne, ne),
1028
+ onClick: (Ve) => G(Ve, ne),
1027
1029
  onDblclick: H
1028
1030
  }, null);
1029
1031
  }
@@ -1033,26 +1035,26 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
1033
1035
  class: A(ne, ve)
1034
1036
  }, null);
1035
1037
  }
1036
- function fe(ne) {
1038
+ function de(ne) {
1037
1039
  x.value ? (ne.checked ? b(ne) : g(ne), O(ne)) : h(ne), T();
1038
1040
  }
1039
- function xe(ne, ve) {
1040
- return S.value && R(Fr, {
1041
+ function Te(ne, ve) {
1042
+ return S.value && R(kr, {
1041
1043
  id: "checkbox_for_" + B(ne, ve.index),
1042
1044
  indeterminate: ne.indeterminate,
1043
1045
  disabled: ne.disabled,
1044
1046
  checked: ne.checked,
1045
- "onUpdate:checked": (Ne) => ne.checked = Ne,
1046
- onChange: () => fe(ne)
1047
+ "onUpdate:checked": (Ve) => ne.checked = Ve,
1048
+ onChange: () => de(ne)
1047
1049
  }, null);
1048
1050
  }
1049
1051
  function be(ne, ve) {
1050
- var Ne, je;
1052
+ var Ve, Le;
1051
1053
  return R("div", {
1052
1054
  class: I(ne)
1053
1055
  }, [R("span", {
1054
1056
  style: "user-select:none"
1055
- }, [(je = (Ne = e.slots).cellTemplate) == null ? void 0 : je.call(Ne, {
1057
+ }, [(Le = (Ve = e.slots).cellTemplate) == null ? void 0 : Le.call(Ve, {
1056
1058
  cell: ne,
1057
1059
  row: ve
1058
1060
  })])]);
@@ -1064,7 +1066,7 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
1064
1066
  style: "user-select:none"
1065
1067
  }, [ne.formatter(ne, ve)])]);
1066
1068
  }
1067
- function Oe(ne) {
1069
+ function ke(ne) {
1068
1070
  const ve = ne.data !== null && ne.data !== void 0 ? ne.data.toString() : ne.data;
1069
1071
  return ne.showTips ? R("div", {
1070
1072
  class: I(ne)
@@ -1081,57 +1083,57 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
1081
1083
  return ne.getEditor(ne);
1082
1084
  }
1083
1085
  function oe(ne, ve) {
1084
- return e.slots.cellTemplate && le(e.slots.cellTemplate({
1086
+ return e.slots.cellTemplate && ae(e.slots.cellTemplate({
1085
1087
  cell: ve,
1086
1088
  row: ne
1087
- })) ? be(ve, ne) : ve.mode === tt.editing ? Y(ve) : ve.formatter ? ye(ve, ne) : Oe(ve);
1089
+ })) ? be(ve, ne) : ve.mode === ot.editing ? Y(ve) : ve.formatter ? ye(ve, ne) : ke(ve);
1088
1090
  }
1089
- function ce(ne, ve, Ne) {
1090
- const je = $(ne);
1091
+ function ue(ne, ve, Ve) {
1092
+ const Le = j(ne);
1091
1093
  return R("div", {
1092
1094
  ref: ve.setRef,
1093
1095
  key: B(ne, ve.index),
1094
1096
  class: "fv-grid-hierarchy-cell",
1095
- style: L(ve, Ne)
1097
+ style: L(ve, Ve)
1096
1098
  }, [R("div", {
1097
1099
  class: D(ve),
1098
- style: je
1099
- }, [W(ne), Z(ne, ve), xe(ne, ve), oe(ne, ve)])]);
1100
+ style: Le
1101
+ }, [W(ne), Z(ne, ve), Te(ne, ve), oe(ne, ve)])]);
1100
1102
  }
1101
- function we(ne, ve, Ne) {
1103
+ function _e(ne, ve, Ve) {
1102
1104
  return R("div", {
1103
1105
  ref: ve.setRef,
1104
1106
  key: B(ne, ve.index),
1105
1107
  class: f(ve),
1106
- style: L(ve, Ne),
1107
- onClick: (je) => v(je, ve, ne, ve.column)
1108
+ style: L(ve, Ve),
1109
+ onClick: (Le) => v(Le, ve, ne, ve.column)
1108
1110
  }, [R("div", {
1109
1111
  class: D(ve)
1110
1112
  }, [oe(ne, ve)])]);
1111
1113
  }
1112
- function _e(ne, ve) {
1114
+ function Se(ne, ve) {
1113
1115
  return ve === "left" && n.value.leftColumns.length > 0 && n.value.leftColumns[0].field === ne.field || ve === "primary" && n.value.primaryColumns.length > 0 && n.value.primaryColumns[0].field === ne.field;
1114
1116
  }
1115
- function Le(ne, ve) {
1117
+ function He(ne, ve) {
1116
1118
  e.emit("dblclickNode", {
1117
1119
  $event: ne,
1118
1120
  node: ve.raw
1119
1121
  });
1120
1122
  }
1121
- function ze(ne, ve, Ne = "primary", je) {
1123
+ function qe(ne, ve, Ve = "primary", Le) {
1122
1124
  return R("div", {
1123
1125
  ref: ne.setRef,
1124
1126
  key: X(ne),
1125
- class: _(ne, je),
1126
- style: j(ne),
1127
- onMouseover: (Re) => w(Re, ne),
1128
- onMouseout: (Re) => m(Re, ne),
1129
- onClick: (Re) => y(Re, ne),
1130
- onDblclick: (Re) => Le(Re, ne)
1131
- }, [Object.values(ne.data).filter((Re) => ve[Re.field] && Re.rowSpan === 1).map((Re) => _e(Re, Ne) ? ce(ne, Re, ve) : we(ne, Re, ve))]);
1127
+ class: _(ne, Le),
1128
+ style: $(ne),
1129
+ onMouseover: (Ne) => w(Ne, ne),
1130
+ onMouseout: (Ne) => m(Ne, ne),
1131
+ onClick: (Ne) => y(Ne, ne),
1132
+ onDblclick: (Ne) => He(Ne, ne)
1133
+ }, [Object.values(ne.data).filter((Ne) => ve[Ne.field] && Ne.rowSpan === 1).map((Ne) => Se(Ne, Ve) ? ue(ne, Ne, ve) : _e(ne, Ne, ve))]);
1132
1134
  }
1133
1135
  return {
1134
- renderDataRow: ze
1136
+ renderDataRow: qe
1135
1137
  };
1136
1138
  }
1137
1139
  function Da(t, e, n) {
@@ -1153,18 +1155,18 @@ function Da(t, e, n) {
1153
1155
  renderHorizontalScrollbar: r
1154
1156
  };
1155
1157
  }
1156
- function $a(t) {
1158
+ function ja(t) {
1157
1159
  const {
1158
1160
  t: e
1159
- } = dt();
1161
+ } = pt();
1160
1162
  function n(r, s) {
1161
1163
  switch (r.command) {
1162
1164
  case "edit":
1163
1165
  case "remove":
1164
- return s.status === ct.initial;
1166
+ return s.status === ft.initial;
1165
1167
  case "accept":
1166
1168
  case "cancel":
1167
- return s.status === ct.editing;
1169
+ return s.status === ft.editing;
1168
1170
  default:
1169
1171
  return !r.hidden;
1170
1172
  }
@@ -1173,11 +1175,11 @@ function $a(t) {
1173
1175
  var p, l, c, v, f;
1174
1176
  switch ((p = r.onClick) == null || p.call(r, s, u.dataIndex, u), r.command) {
1175
1177
  case "edit":
1176
- u.status, ct.editing, (c = (l = t.commandOption) == null ? void 0 : l.onClickEditCommand) == null || c.call(l, d, u);
1178
+ u.status, ft.editing, (c = (l = t.commandOption) == null ? void 0 : l.onClickEditCommand) == null || c.call(l, d, u);
1177
1179
  break;
1178
1180
  case "accept":
1179
1181
  case "cancel":
1180
- u.status, ct.initial;
1182
+ u.status, ft.initial;
1181
1183
  break;
1182
1184
  case "remove":
1183
1185
  (f = (v = t.commandOption) == null ? void 0 : v.onClickDeleteCommand) == null || f.call(v, d, u);
@@ -1191,7 +1193,7 @@ function $a(t) {
1191
1193
  const {
1192
1194
  column: u
1193
1195
  } = r;
1194
- return u.commands && u.commands.map((d, p) => p ? n(d, s) && R(hn, {
1196
+ return u.commands && u.commands.map((d, p) => p ? n(d, s) && R(gn, {
1195
1197
  class: "ml-1",
1196
1198
  type: d.type,
1197
1199
  size: d.size || "small",
@@ -1201,7 +1203,7 @@ function $a(t) {
1201
1203
  }
1202
1204
  }, {
1203
1205
  default: () => [Tt(" "), i(d.text), Tt(" ")]
1204
- }) : n(d, s) && R(hn, {
1206
+ }) : n(d, s) && R(gn, {
1205
1207
  type: d.type,
1206
1208
  size: d.size || "small",
1207
1209
  onClick: (l) => o(d, l, s, r),
@@ -1218,7 +1220,7 @@ function $a(t) {
1218
1220
  }
1219
1221
  function po(t) {
1220
1222
  const e = E(t.minHeight), n = E(t.minWidth), o = E(t.height), i = E(t.width), a = z(() => o.value <= 0 ? 0 : Math.max(o.value, e.value)), r = z(() => i.value <= 0 ? 0 : Math.max(i.value, n.value));
1221
- return Ve([
1223
+ return Be([
1222
1224
  () => t.height,
1223
1225
  () => t.width,
1224
1226
  () => t.minHeight,
@@ -1231,7 +1233,7 @@ function po(t) {
1231
1233
  flex: "1 1 0"
1232
1234
  })) };
1233
1235
  }
1234
- const ja = "";
1236
+ const $a = "";
1235
1237
  function La(t) {
1236
1238
  const o = E({
1237
1239
  defaultColumnWidth: 120,
@@ -1285,7 +1287,7 @@ function La(t) {
1285
1287
  function u(m) {
1286
1288
  i();
1287
1289
  const x = /* @__PURE__ */ new Map();
1288
- return r.value && r.value.reduce((b, g) => (b.set(g, !0), b), x), m.reduce((b, g) => (g.visible = g.visible !== !1, g.filter = g.filter || ja, g.fixed === "left" ? (o.value.leftColumns.push(g), o.value.leftColumnsMap.set(g.field, g), o.value.leftColumnsWidth += g.actualWidth) : g.fixed === "right" ? (o.value.rightColumns.push(g), o.value.rightColumnsMap.set(g.field, g), o.value.rightColumnsWidth += g.actualWidth) : (o.value.primaryColumns.push(g), o.value.primaryColumnsMap.set(g.field, g), o.value.primaryColumnsWidth += g.actualWidth), x.has(g.field) && o.value.summaryColumns.push(g), b), o), s(), o;
1290
+ return r.value && r.value.reduce((b, g) => (b.set(g, !0), b), x), m.reduce((b, g) => (g.visible = g.visible !== !1, g.filter = g.filter || $a, g.fixed === "left" ? (o.value.leftColumns.push(g), o.value.leftColumnsMap.set(g.field, g), o.value.leftColumnsWidth += g.actualWidth) : g.fixed === "right" ? (o.value.rightColumns.push(g), o.value.rightColumnsMap.set(g.field, g), o.value.rightColumnsWidth += g.actualWidth) : (o.value.primaryColumns.push(g), o.value.primaryColumnsMap.set(g.field, g), o.value.primaryColumnsWidth += g.actualWidth), x.has(g.field) && o.value.summaryColumns.push(g), b), o), s(), o;
1289
1291
  }
1290
1292
  u(t.columns);
1291
1293
  const d = z(() => o.value.leftColumns.length > 0), p = z(() => o.value.rightColumns.length > 0);
@@ -1342,7 +1344,7 @@ function La(t) {
1342
1344
  }
1343
1345
  function Ha(t) {
1344
1346
  var r, s;
1345
- const { t: e } = dt(), n = 150, o = E(((r = t.commandOption) == null ? void 0 : r.enable) || !1), i = E(((s = t.commandOption) == null ? void 0 : s.commands) || []);
1347
+ const { t: e } = pt(), n = 150, o = E(((r = t.commandOption) == null ? void 0 : r.enable) || !1), i = E(((s = t.commandOption) == null ? void 0 : s.commands) || []);
1346
1348
  function a(u) {
1347
1349
  var d;
1348
1350
  if (o.value && !(u.value.findIndex((l) => l.dataType === "commands") > -1)) {
@@ -1377,7 +1379,7 @@ function Wa(t, e) {
1377
1379
  parent: c,
1378
1380
  resizable: !0,
1379
1381
  title: p.title || "",
1380
- status: Je.none,
1382
+ status: Qe.none,
1381
1383
  popoverRef: E(),
1382
1384
  showPopover: !1,
1383
1385
  column: null,
@@ -1432,8 +1434,8 @@ function Wa(t, e) {
1432
1434
  function u(p) {
1433
1435
  let l = /* @__PURE__ */ new Map(), c = 0;
1434
1436
  if (p.reduce((v, f) => {
1435
- let F = Je.none;
1436
- F = f.filterable ? F | Je.filterable : F, F = f.sort && f.sort !== "none" ? F | Je.sorted | (f.sort === "asc" ? Je.ascending : Je.descending) : F;
1437
+ let F = Qe.none;
1438
+ F = f.filterable ? F | Qe.filterable : F, F = f.sort && f.sort !== "none" ? F | Qe.sorted | (f.sort === "asc" ? Qe.ascending : Qe.descending) : F;
1437
1439
  const _ = f.field;
1438
1440
  return v.set(_, {
1439
1441
  actualWidth: f.actualWidth || 0,
@@ -1464,7 +1466,7 @@ function Wa(t, e) {
1464
1466
  }
1465
1467
  function Aa(t, e) {
1466
1468
  var w;
1467
- Er();
1469
+ Or();
1468
1470
  const { idField: n } = e, o = E(t.summary), i = E(t.group), a = E(((w = t.group) == null ? void 0 : w.groupFields) || []), r = z(() => {
1469
1471
  var m;
1470
1472
  return (m = t.group) == null ? void 0 : m.enable;
@@ -1566,14 +1568,14 @@ function za(t, e, n, o) {
1566
1568
  const i = E(0), a = E(!!t.hierarchy), { idField: r } = o, { collapseField: s, hasChildrenField: u, parentIdField: d } = n, p = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), { flatTreeData: v, isNestedTree: f } = mo(t);
1567
1569
  function F(G, H) {
1568
1570
  l.clear(), G.reduce((W, Z) => {
1569
- const fe = Z[d.value] !== void 0 ? Z[d.value] : "";
1570
- if (fe && H.has(fe)) {
1571
- const be = H.get(fe), ye = isNaN(Number(be.__fv_layer__)) ? 1 : Number(be.__fv_layer__);
1571
+ const de = Z[d.value] !== void 0 ? Z[d.value] : "";
1572
+ if (de && H.has(de)) {
1573
+ const be = H.get(de), ye = isNaN(Number(be.__fv_layer__)) ? 1 : Number(be.__fv_layer__);
1572
1574
  Z.__fv_layer__ = ye + 1, Z.__fv_parent_index__ = be.__fv_index__, be.__fv_hasChildren__ = !0;
1573
1575
  } else
1574
1576
  Z.__fv_layer__ = 1;
1575
- const xe = W.has(fe) ? W.get(fe) : [];
1576
- return xe.push(Z), W.set(fe, xe), W;
1577
+ const Te = W.has(de) ? W.get(de) : [];
1578
+ return Te.push(Z), W.set(de, Te), W;
1577
1579
  }, l);
1578
1580
  }
1579
1581
  function _(G) {
@@ -1585,8 +1587,8 @@ function za(t, e, n, o) {
1585
1587
  function y(G) {
1586
1588
  G.forEach((H) => {
1587
1589
  const W = H[r.value];
1588
- H.__fv_children_index__.map((fe) => G[fe]).forEach((fe) => {
1589
- fe.__fv_parents__ = new Map([
1590
+ H.__fv_children_index__.map((de) => G[de]).forEach((de) => {
1591
+ de.__fv_parents__ = new Map([
1590
1592
  ...H.__fv_parents__.entries(),
1591
1593
  [W, !0]
1592
1594
  ]);
@@ -1596,7 +1598,7 @@ function za(t, e, n, o) {
1596
1598
  function w(G) {
1597
1599
  G.forEach((H) => {
1598
1600
  const W = new Set(H.__fv_children_index__);
1599
- H.__fv_children_index__ = [...W].sort((Z, fe) => Z - fe);
1601
+ H.__fv_children_index__ = [...W].sort((Z, de) => Z - de);
1600
1602
  });
1601
1603
  }
1602
1604
  function m(G) {
@@ -1617,9 +1619,9 @@ function za(t, e, n, o) {
1617
1619
  }
1618
1620
  function g(G, H, W) {
1619
1621
  Array.from(H.keys()).forEach((Z) => {
1620
- H.get(Z).reduce((xe, be) => {
1621
- const ye = be[r.value], Oe = G.get(be[r.value]), Y = G.get(Z), oe = W.get(Z);
1622
- return Y && oe && (Y.children.set(ye, Oe), Y.children.set(ye, Oe), Oe.parentId = Z, Oe.parentIndex = Y.index, Oe.parents.set(Z, Y)), xe;
1622
+ H.get(Z).reduce((Te, be) => {
1623
+ const ye = be[r.value], ke = G.get(be[r.value]), Y = G.get(Z), oe = W.get(Z);
1624
+ return Y && oe && (Y.children.set(ye, ke), Y.children.set(ye, ke), ke.parentId = Z, ke.parentIndex = Y.index, ke.parents.set(Z, Y)), Te;
1623
1625
  }, G);
1624
1626
  });
1625
1627
  }
@@ -1633,8 +1635,8 @@ function za(t, e, n, o) {
1633
1635
  }
1634
1636
  function T(G, H) {
1635
1637
  G.filter((W) => W[d.value] === void 0 || W[d.value] === "").forEach((W) => {
1636
- const Z = W[r.value], fe = H.get(Z);
1637
- h(fe);
1638
+ const Z = W[r.value], de = H.get(Z);
1639
+ h(de);
1638
1640
  });
1639
1641
  }
1640
1642
  function C(G) {
@@ -1666,8 +1668,8 @@ function za(t, e, n, o) {
1666
1668
  }
1667
1669
  function B(G, H) {
1668
1670
  H.forEach((W) => {
1669
- const Z = p.get(W[r.value]), fe = p.get(G), xe = c.get(G);
1670
- fe && xe && (Z.visibleInHierarchy = !xe[s.value] && fe.visibleInHierarchy);
1671
+ const Z = p.get(W[r.value]), de = p.get(G), Te = c.get(G);
1672
+ de && Te && (Z.visibleInHierarchy = !Te[s.value] && de.visibleInHierarchy);
1671
1673
  }), O();
1672
1674
  }
1673
1675
  function L(G) {
@@ -1680,84 +1682,84 @@ function za(t, e, n, o) {
1680
1682
  const H = G[r.value];
1681
1683
  L(H);
1682
1684
  }
1683
- function j(G, H, W = 0) {
1685
+ function $(G, H, W = 0) {
1684
1686
  G.forEach((Z) => {
1685
- const fe = M(Z), xe = Z.__fv_layer__ <= W, be = H === "ToCollapse" ? Z.__fv_layer__ <= W : !(Z.__fv_layer__ <= W), ye = xe ? be : Z[s.value];
1686
- Z[s.value] = fe || ye;
1687
+ const de = M(Z), Te = Z.__fv_layer__ <= W, be = H === "ToCollapse" ? Z.__fv_layer__ <= W : !(Z.__fv_layer__ <= W), ye = Te ? be : Z[s.value];
1688
+ Z[s.value] = de || ye;
1687
1689
  });
1688
- for (const [Z, fe] of l.entries())
1689
- B(Z, fe);
1690
+ for (const [Z, de] of l.entries())
1691
+ B(Z, de);
1690
1692
  return G;
1691
1693
  }
1692
1694
  function D(G, H) {
1693
- j(G, "ToCollapse", H);
1695
+ $(G, "ToCollapse", H);
1694
1696
  }
1695
1697
  function P(G, H) {
1696
- j(G, "ToExpand", H);
1698
+ $(G, "ToExpand", H);
1697
1699
  }
1698
1700
  function I(G) {
1699
1701
  G.forEach((H, W) => {
1700
1702
  var be;
1701
- const Z = H[r.value], fe = l.has(Z) ? (be = l.get(Z)) == null ? void 0 : be.map((ye) => ye.__fv_index__) : [], xe = b(Z, W);
1702
- H.__fv_graph_node__ = xe, H.__fv_children_index__ = fe, H.__fv_descendant_index__ = [...fe], H.__fv_parents__ = /* @__PURE__ */ new Map(), M(H) && (H[s.value] = !0);
1703
+ const Z = H[r.value], de = l.has(Z) ? (be = l.get(Z)) == null ? void 0 : be.map((ye) => ye.__fv_index__) : [], Te = b(Z, W);
1704
+ H.__fv_graph_node__ = Te, H.__fv_children_index__ = de, H.__fv_descendant_index__ = [...de], H.__fv_parents__ = /* @__PURE__ */ new Map(), M(H) && (H[s.value] = !0);
1703
1705
  });
1704
1706
  }
1705
- function $(G) {
1706
- var Z, fe;
1707
+ function j(G) {
1708
+ var Z, de;
1707
1709
  k(e.value), I(G), y(G), m(G), t.showLines && x(G);
1708
- const W = ((Z = t.hierarchy) == null ? void 0 : Z.collapseTo) !== void 0 ? Number((fe = t.hierarchy) == null ? void 0 : fe.collapseTo) : 0;
1709
- return j(G, "ToCollapse", W), G;
1710
+ const W = ((Z = t.hierarchy) == null ? void 0 : Z.collapseTo) !== void 0 ? Number((de = t.hierarchy) == null ? void 0 : de.collapseTo) : 0;
1711
+ return $(G, "ToCollapse", W), G;
1710
1712
  }
1711
1713
  function A(G, H, W) {
1712
- const fe = W.value[G][r.value], xe = p.get(fe);
1713
- if (xe) {
1714
- const be = p.get(xe.parentId);
1714
+ const de = W.value[G][r.value], Te = p.get(de);
1715
+ if (Te) {
1716
+ const be = p.get(Te.parentId);
1715
1717
  let ye = W.value.length - 1;
1716
1718
  if (be) {
1717
- const Oe = Array.from(be.children.keys()).indexOf(xe.id);
1718
- if (Oe === be.children.size - 1) {
1719
+ const ke = Array.from(be.children.keys()).indexOf(Te.id);
1720
+ if (ke === be.children.size - 1) {
1719
1721
  const oe = Array.from(be.descendant.values())[be.descendant.size - 1];
1720
- ye = W.value.findIndex((we) => we[r.value] === oe.id) + 1;
1722
+ ye = W.value.findIndex((_e) => _e[r.value] === oe.id) + 1;
1721
1723
  } else {
1722
- const oe = Array.from(be.children.values())[Oe + 1];
1723
- ye = W.value.findIndex((we) => we[r.value] === oe.id);
1724
+ const oe = Array.from(be.children.values())[ke + 1];
1725
+ ye = W.value.findIndex((_e) => _e[r.value] === oe.id);
1724
1726
  }
1725
1727
  H[u.value] = !1, H[d.value] = be.id, W.value.splice(ye, 0, H);
1726
1728
  }
1727
1729
  }
1728
1730
  }
1729
1731
  function J(G, H, W) {
1730
- const Z = W.value[G], fe = Z[r.value];
1731
- if (p.get(fe)) {
1732
- const ye = W.value.findIndex((Oe) => Oe[r.value] === fe) + 1;
1733
- Z[u.value] = !0, Z[s.value] = !1, H[u.value] = !1, H[d.value] = fe, W.value.splice(ye, 0, H);
1732
+ const Z = W.value[G], de = Z[r.value];
1733
+ if (p.get(de)) {
1734
+ const ye = W.value.findIndex((ke) => ke[r.value] === de) + 1;
1735
+ Z[u.value] = !0, Z[s.value] = !1, H[u.value] = !1, H[d.value] = de, W.value.splice(ye, 0, H);
1734
1736
  }
1735
1737
  }
1736
1738
  function q(G, H, W) {
1737
- const fe = W.value[G][r.value];
1738
- if (p.get(fe)) {
1739
- const ye = W.value.findIndex((Y) => Y[r.value] === fe) + 1;
1740
- let Oe = H;
1741
- f(H) && (Oe = v(H)), Oe.forEach((Y) => {
1742
- Y[d.value] = fe;
1743
- }), W.value.splice(ye, 0, ...Oe);
1744
- }
1745
- }
1746
- function le(G, H) {
1747
- const W = G[r.value], Z = p.get(W), fe = Array.from(Z.descendant.keys());
1748
- fe.unshift(W);
1749
- const xe = p.get(Z.parentId);
1750
- if (xe && (xe.children.delete(W), xe.children.size === 0)) {
1751
- const ye = H.find((Oe) => Oe[r.value] === Z.parentId);
1739
+ const de = W.value[G][r.value];
1740
+ if (p.get(de)) {
1741
+ const ye = W.value.findIndex((Y) => Y[r.value] === de) + 1;
1742
+ let ke = H;
1743
+ f(H) && (ke = v(H)), ke.forEach((Y) => {
1744
+ Y[d.value] = de;
1745
+ }), W.value.splice(ye, 0, ...ke);
1746
+ }
1747
+ }
1748
+ function ae(G, H) {
1749
+ const W = G[r.value], Z = p.get(W), de = Array.from(Z.descendant.keys());
1750
+ de.unshift(W);
1751
+ const Te = p.get(Z.parentId);
1752
+ if (Te && (Te.children.delete(W), Te.children.size === 0)) {
1753
+ const ye = H.find((ke) => ke[r.value] === Z.parentId);
1752
1754
  ye[u.value] = !1, ye[s.value] = !1;
1753
1755
  }
1754
- return H.filter((ye) => fe.indexOf(ye.id) === -1);
1756
+ return H.filter((ye) => de.indexOf(ye.id) === -1);
1755
1757
  }
1756
1758
  return {
1757
1759
  checkVisibleInHierarchy: i,
1758
1760
  collapseTo: D,
1759
1761
  expandTo: P,
1760
- generateHierarchyData: $,
1762
+ generateHierarchyData: j,
1761
1763
  hasRealChildren: S,
1762
1764
  insertSibling: A,
1763
1765
  insertChild: J,
@@ -1765,7 +1767,7 @@ function za(t, e, n, o) {
1765
1767
  isVisibleInTree: V,
1766
1768
  shouldStratifyData: a,
1767
1769
  toggleChildrenVisibiltyByCollapseStatus: X,
1768
- trimmedOriginalData: le
1770
+ trimmedOriginalData: ae
1769
1771
  };
1770
1772
  }
1771
1773
  const Ga = {
@@ -1785,7 +1787,7 @@ const Ga = {
1785
1787
  showCloseButton: { type: Boolean, default: !0 },
1786
1788
  animate: { type: String, default: "fadeIn" },
1787
1789
  options: { type: Object }
1788
- }, on = /* @__PURE__ */ Ze({
1790
+ }, on = /* @__PURE__ */ Ke({
1789
1791
  name: "Toast",
1790
1792
  props: qa,
1791
1793
  emits: ["close", "click"],
@@ -1793,7 +1795,7 @@ const Ga = {
1793
1795
  const {
1794
1796
  locale: n,
1795
1797
  t: o
1796
- } = dt(), i = E(t.animate), a = "fadeOut", r = z(() => t.options), s = E(!1), u = z(() => {
1798
+ } = pt(), i = E(t.animate), a = "fadeOut", r = z(() => t.options), s = E(!1), u = z(() => {
1797
1799
  const x = {
1798
1800
  animated: s.value,
1799
1801
  toast: !0
@@ -1818,12 +1820,12 @@ const Ga = {
1818
1820
  function w(x) {
1819
1821
  return `f-preten-link ${x.customClass ? x.customClass : ""}`;
1820
1822
  }
1821
- Ve(i, () => {
1823
+ Be(i, () => {
1822
1824
  i.value;
1823
1825
  });
1824
1826
  const m = () => {
1825
1827
  var x;
1826
- return R(Nt, null, [R("div", {
1828
+ return R(Vt, null, [R("div", {
1827
1829
  class: "after-toast-msg text-right"
1828
1830
  }, [!e.slots.default && ((x = r.value.buttons) == null ? void 0 : x.map((b) => R("span", {
1829
1831
  class: w(b),
@@ -1847,7 +1849,7 @@ const Ga = {
1847
1849
  class: d.value
1848
1850
  }, null)]), R("div", {
1849
1851
  class: "modal-tips-content"
1850
- }, [l.value && R(Nt, null, [R("h5", {
1852
+ }, [l.value && R(Vt, null, [R("h5", {
1851
1853
  class: "toast-title modal-tips-title",
1852
1854
  innerHTML: r.value.title
1853
1855
  }, null), R("p", {
@@ -1868,7 +1870,7 @@ const Ga = {
1868
1870
  innerHTML: r.value.message
1869
1871
  }, null))])])]);
1870
1872
  }
1871
- }), Wt = /* @__PURE__ */ Ze({
1873
+ }), Wt = /* @__PURE__ */ Ke({
1872
1874
  name: "Notify",
1873
1875
  props: Ga,
1874
1876
  emits: ["close", "empty"],
@@ -1918,7 +1920,7 @@ const Ga = {
1918
1920
  class vo {
1919
1921
  constructor() {
1920
1922
  ee(this, "notifyRefs", []);
1921
- ee(this, "globalConfig", mt({}));
1923
+ ee(this, "globalConfig", ht({}));
1922
1924
  }
1923
1925
  escapeAllHtml(e) {
1924
1926
  if (typeof e != "string" || !e)
@@ -1936,7 +1938,7 @@ class vo {
1936
1938
  ...e
1937
1939
  }), a = document.createElement("div");
1938
1940
  a.style.display = "contents";
1939
- const r = xn({
1941
+ const r = Tn({
1940
1942
  setup() {
1941
1943
  var d;
1942
1944
  const s = E();
@@ -1956,7 +1958,7 @@ class vo {
1956
1958
  document.body.removeChild(a);
1957
1959
  }), Ot(() => {
1958
1960
  n.updateNotifyPositionForCreate(i, s);
1959
- }), () => R(Tn, {
1961
+ }), () => R(Fn, {
1960
1962
  mode: "out-in",
1961
1963
  name: "fade",
1962
1964
  appear: !0
@@ -1969,7 +1971,7 @@ class vo {
1969
1971
  });
1970
1972
  }
1971
1973
  });
1972
- return r.provide("NotifyService", this), document.body.appendChild(a), r.use(jt.i18n), r.mount(a), r;
1974
+ return r.provide("NotifyService", this), document.body.appendChild(a), r.use($t.i18n), r.mount(a), r;
1973
1975
  }
1974
1976
  getNotifyInstances(e) {
1975
1977
  return this.notifyRefs.filter((n) => n.value.notifyPosition === e);
@@ -2041,7 +2043,7 @@ Wt.install = (t) => {
2041
2043
  t.provide(Ua, e), t.provide("FNotifyService", e);
2042
2044
  };
2043
2045
  function ho(t, e, n, o, i) {
2044
- const { toNumber: a } = Xn(), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), l = E([]), c = E([]), v = Aa(t, i), { generateGroupData: f, groupFields: F, shouldGroupingData: _ } = v, y = E(t.data), w = za(t, y, o, i), {
2046
+ const { toNumber: a } = Jn(), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), l = E([]), c = E([]), v = Aa(t, i), { generateGroupData: f, groupFields: F, shouldGroupingData: _ } = v, y = E(t.data), w = za(t, y, o, i), {
2045
2047
  collapseTo: m,
2046
2048
  expandTo: x,
2047
2049
  generateHierarchyData: b,
@@ -2054,99 +2056,99 @@ function ho(t, e, n, o, i) {
2054
2056
  toggleChildrenVisibiltyByCollapseStatus: M,
2055
2057
  trimmedOriginalData: V,
2056
2058
  checkVisibleInHierarchy: O
2057
- } = w, { idField: B, reviseIdentifyField: L } = i, X = E(t.newDataItem), j = E(t.data || []), D = E(t.data), { flatTreeData: P, isNestedTree: I } = mo(t);
2059
+ } = w, { idField: B, reviseIdentifyField: L } = i, X = E(t.newDataItem), $ = E(t.data || []), D = E(t.data), { flatTreeData: P, isNestedTree: I } = mo(t);
2058
2060
  if (t.hierarchy && I(t.data)) {
2059
2061
  const Q = P(t.data);
2060
- y.value = Q, j.value = Q, D.value = Q;
2062
+ y.value = Q, $.value = Q, D.value = Q;
2061
2063
  }
2062
- const $ = E(t.summary), A = z(() => {
2063
- const Q = $.value;
2064
+ const j = E(t.summary), A = z(() => {
2065
+ const Q = j.value;
2064
2066
  return (Q == null ? void 0 : Q.groupFields) || [];
2065
2067
  });
2066
2068
  let J = /* @__PURE__ */ new Map();
2067
- const q = E(j.value.length), le = E(t.pagination);
2069
+ const q = E($.value.length), ae = E(t.pagination);
2068
2070
  function G() {
2069
- return le.value && le.value.enable && le.value.size > 0 ? le.value.size : j.value.length;
2071
+ return ae.value && ae.value.enable && ae.value.size > 0 ? ae.value.size : $.value.length;
2070
2072
  }
2071
- const H = E(1), W = z(() => le.value && le.value.enable && le.value.mode !== "server"), Z = z(() => le.value && le.value.enable && le.value.mode === "server"), fe = new vo();
2072
- function xe(Q, N) {
2073
+ const H = E(1), W = z(() => ae.value && ae.value.enable && ae.value.mode !== "server"), Z = z(() => ae.value && ae.value.enable && ae.value.mode === "server"), de = new vo();
2074
+ function Te(Q, N) {
2073
2075
  const U = Math.ceil(Q.length / N);
2074
2076
  let te = 0;
2075
- const me = [], Se = [], Te = [];
2077
+ const pe = [], xe = [], Fe = [];
2076
2078
  for (; te < U; ) {
2077
- const ke = Q.slice(te * N, (te + 1) * N), Pe = f(F.value, ke, e);
2078
- Se[te] = Pe.filter((Be) => Be.__fv_data_grid_group_row__).length, me.push(...Pe), te++;
2079
+ const Ee = Q.slice(te * N, (te + 1) * N), Pe = f(F.value, Ee, e);
2080
+ xe[te] = Pe.filter((Me) => Me.__fv_data_grid_group_row__).length, pe.push(...Pe), te++;
2079
2081
  }
2080
- return Se.reduce((ke, Pe, Be) => (ke = ke + Pe, Te.push(ke), ke), 0), {
2081
- groupData: me,
2082
- groupRowSizeList: Se,
2083
- accumulateGroupRowSize: Te
2082
+ return xe.reduce((Ee, Pe, Me) => (Ee = Ee + Pe, Fe.push(Ee), Ee), 0), {
2083
+ groupData: pe,
2084
+ groupRowSizeList: xe,
2085
+ accumulateGroupRowSize: Fe
2084
2086
  };
2085
2087
  }
2086
2088
  function be() {
2087
2089
  var Pe;
2088
- j.value = y.value, W.value && (q.value = j.value.length), _.value && !W.value && (j.value = f(F.value, y.value, e)), J = A.value.reduce((Be, De) => (Be.set(De, 0), Be), J);
2090
+ $.value = y.value, W.value && (q.value = $.value.length), _.value && !W.value && ($.value = f(F.value, y.value, e)), J = A.value.reduce((Me, je) => (Me.set(je, 0), Me), J);
2089
2091
  const Q = 0, N = G(), U = (H.value - 1) * N;
2090
- let me = U > j.value.length - 1 || Z.value ? Q : U, Se = Z.value ? j.value.length : Math.min(me + N, j.value.length);
2092
+ let pe = U > $.value.length - 1 || Z.value ? Q : U, xe = Z.value ? $.value.length : Math.min(pe + N, $.value.length);
2091
2093
  if (_.value && W.value) {
2092
- const { accumulateGroupRowSize: Be, groupData: De, groupRowSizeList: Me } = xe(y.value, N);
2093
- j.value = De;
2094
- const We = Me[H.value - 1];
2095
- me += H.value - 2 < 0 ? 0 : Be[H.value - 2], Se = me + N + We;
2096
- }
2097
- let Te = 0;
2098
- const ke = [];
2099
- if (j.value.length) {
2100
- L(j.value);
2101
- const Be = B.value !== t.idField;
2102
- for (let De = me; De < Se; De++) {
2103
- const Me = j.value[De];
2104
- Me.__fv_data_grid_group_row__ ? (Te = 0, Me.__fv_data_index__ = "") : Me.__fv_data_grid_group_summary__ ? Me.__fv_data_index__ = "" : (Te++, Me.__fv_data_index__ = Te + (H.value - 1) * N), Me.__fv_index__ = De, Me.__fv_visible_index__ = De, t.rowOption && t.rowOption.disabledField && (Me.__fv_disabled__ = Me[(Pe = t.rowOption) == null ? void 0 : Pe.disabledField]), Be && (Me[B.value] = De), A.value.forEach((We) => {
2105
- const Xe = J.get(We) || 0;
2106
- J.set(We, Xe + Qe(Me, We));
2107
- }), ke.push(Me);
2094
+ const { accumulateGroupRowSize: Me, groupData: je, groupRowSizeList: Ie } = Te(y.value, N);
2095
+ $.value = je;
2096
+ const ze = Ie[H.value - 1];
2097
+ pe += H.value - 2 < 0 ? 0 : Me[H.value - 2], xe = pe + N + ze;
2098
+ }
2099
+ let Fe = 0;
2100
+ const Ee = [];
2101
+ if ($.value.length) {
2102
+ L($.value);
2103
+ const Me = B.value !== t.idField;
2104
+ for (let je = pe; je < xe; je++) {
2105
+ const Ie = $.value[je];
2106
+ Ie.__fv_data_grid_group_row__ ? (Fe = 0, Ie.__fv_data_index__ = "") : Ie.__fv_data_grid_group_summary__ ? Ie.__fv_data_index__ = "" : (Fe++, Ie.__fv_data_index__ = Fe + (H.value - 1) * N), Ie.__fv_index__ = je, Ie.__fv_visible_index__ = je, t.rowOption && t.rowOption.disabledField && (Ie.__fv_disabled__ = Ie[(Pe = t.rowOption) == null ? void 0 : Pe.disabledField]), Me && (Ie[B.value] = je), A.value.forEach((ze) => {
2107
+ const Je = J.get(ze) || 0;
2108
+ J.set(ze, Je + Ze(Ie, ze));
2109
+ }), Ee.push(Ie);
2108
2110
  }
2109
2111
  }
2110
- return S.value && b(ke), A.value.forEach((Be) => {
2111
- const De = J.get(Be) || 0;
2112
- J.set(Be, a(De.toFixed(2)));
2113
- }), D.value = [...ke], ke;
2112
+ return S.value && b(Ee), A.value.forEach((Me) => {
2113
+ const je = J.get(Me) || 0;
2114
+ J.set(Me, a(je.toFixed(2)));
2115
+ }), D.value = [...Ee], Ee;
2114
2116
  }
2115
- const ye = E(be()), Oe = z(() => (O.value, ye.value.filter((Q) => S.value ? Q.__fv_visible__ !== !1 && k(Q) : Q.__fv_visible__ !== !1)));
2117
+ const ye = E(be()), ke = z(() => (O.value, ye.value.filter((Q) => S.value ? Q.__fv_visible__ !== !1 && k(Q) : Q.__fv_visible__ !== !1)));
2116
2118
  function Y() {
2117
- Oe.value.forEach((Q, N) => (Q.__fv_visible_index__ = N, Q));
2119
+ ke.value.forEach((Q, N) => (Q.__fv_visible_index__ = N, Q));
2118
2120
  }
2119
2121
  function oe(Q, N, U = !1) {
2120
- const me = (U ? be() : [...D.value]).filter((ke) => n.apply(ke)), Se = Q && Q.length ? me.filter((ke) => Q.reduce((Pe, Be) => Pe && Be.filter(ke), !0)) : me, Te = N && N.length ? Se.sort((ke, Pe) => {
2121
- const Be = [...N], De = Be.shift();
2122
- let Me = De.compare(ke[De.field], Pe[De.field]);
2123
- for (; Me === 0 && Be.length !== 0; ) {
2124
- const We = Be.shift();
2125
- We && (Me = We.compare(ke[We.field], Pe[We.field]));
2122
+ const pe = (U ? be() : [...D.value]).filter((Ee) => n.apply(Ee)), xe = Q && Q.length ? pe.filter((Ee) => Q.reduce((Pe, Me) => Pe && Me.filter(Ee), !0)) : pe, Fe = N && N.length ? xe.sort((Ee, Pe) => {
2123
+ const Me = [...N], je = Me.shift();
2124
+ let Ie = je.compare(Ee[je.field], Pe[je.field]);
2125
+ for (; Ie === 0 && Me.length !== 0; ) {
2126
+ const ze = Me.shift();
2127
+ ze && (Ie = ze.compare(Ee[ze.field], Pe[ze.field]));
2126
2128
  }
2127
- return Me;
2128
- }) : Se;
2129
- return ye.value = Te.map((ke, Pe) => {
2130
- if (ke.__fv_data_grid_group_row__) {
2131
- const Be = `group_of_${ke.__fv_data_grid_group_field__}_${ke.__fv_data_grid_group_value__}`;
2132
- ke.__fv_data_grid_group_collapse__ = !!r.get(Be);
2129
+ return Ie;
2130
+ }) : xe;
2131
+ return ye.value = Fe.map((Ee, Pe) => {
2132
+ if (Ee.__fv_data_grid_group_row__) {
2133
+ const Me = `group_of_${Ee.__fv_data_grid_group_field__}_${Ee.__fv_data_grid_group_value__}`;
2134
+ Ee.__fv_data_grid_group_collapse__ = !!r.get(Me);
2133
2135
  }
2134
- return ke.__fv_index__ = Pe, ke.__fv_visible_index__ = Pe, ke;
2136
+ return Ee.__fv_index__ = Pe, Ee.__fv_visible_index__ = Pe, Ee;
2135
2137
  }), ye.value;
2136
2138
  }
2137
- function ce(Q) {
2139
+ function ue(Q) {
2138
2140
  return p.clear(), c.value = Q, c.value.reduce((N, U) => (N.set(U.field, U), N), p), oe([], c.value);
2139
2141
  }
2140
- function we(Q, N) {
2142
+ function _e(Q, N) {
2141
2143
  return p.set(Q, N), c.value = Array.from(p.values()), oe([], c.value);
2142
2144
  }
2143
- function _e(Q) {
2145
+ function Se(Q) {
2144
2146
  return p.delete(Q), c.value = Array.from(p.values()), oe([], c.value);
2145
2147
  }
2146
- function Le(Q, N) {
2148
+ function He(Q, N) {
2147
2149
  return s.set(Q, N), l.value = Array.from(s.values()), oe([], Array.from(p.values()));
2148
2150
  }
2149
- function ze(Q) {
2151
+ function qe(Q) {
2150
2152
  return s.delete(Q), l.value = Array.from(s.values()), oe([], Array.from(p.values()), !0);
2151
2153
  }
2152
2154
  function ne() {
@@ -2155,7 +2157,7 @@ function ho(t, e, n, o, i) {
2155
2157
  function ve(Q, N) {
2156
2158
  const U = `group_of_${Q}_${N}`;
2157
2159
  r.set(U, !0);
2158
- const te = (me) => me[Q] !== N;
2160
+ const te = (pe) => pe[Q] !== N;
2159
2161
  return u.set(`collapse_${Q}_${N}`, {
2160
2162
  field: Q,
2161
2163
  fieldName: Q,
@@ -2164,13 +2166,13 @@ function ho(t, e, n, o, i) {
2164
2166
  filter: te
2165
2167
  }), oe(Array.from(u.values()), Array.from(p.values()));
2166
2168
  }
2167
- function Ne(Q) {
2169
+ function Ve(Q) {
2168
2170
  m(ye.value, Q);
2169
2171
  }
2170
- function je(Q) {
2172
+ function Le(Q) {
2171
2173
  x(ye.value, Q);
2172
2174
  }
2173
- function Re(Q, N) {
2175
+ function Ne(Q, N) {
2174
2176
  const U = `group_of_${Q}_${N}`;
2175
2177
  return r.set(U, !1), u.delete(`collapse_${Q}_${N}`), oe(Array.from(u.values()), Array.from(p.values()), !0);
2176
2178
  }
@@ -2184,95 +2186,95 @@ function ho(t, e, n, o, i) {
2184
2186
  filter: U
2185
2187
  }), oe(Array.from(d.values()), Array.from(p.values())), b(ye.value);
2186
2188
  }
2187
- function ae(Q) {
2189
+ function we(Q) {
2188
2190
  const N = Q[B.value];
2189
2191
  d.delete(`fold_${N}`);
2190
2192
  }
2191
- function Fe(Q) {
2192
- ae(Q.raw), oe(Array.from(d.values()), Array.from(p.values()), !0), b(ye.value);
2193
+ function De(Q) {
2194
+ we(Q.raw), oe(Array.from(d.values()), Array.from(p.values()), !0), b(ye.value);
2193
2195
  }
2194
- function Ee() {
2196
+ function me() {
2195
2197
  const Q = be();
2196
2198
  ye.value = Q, t.hierarchy && (oe(Array.from(d.values()), Array.from(p.values())), b(ye.value));
2197
2199
  }
2198
- function Ge(Q) {
2200
+ function Re(Q) {
2199
2201
  const U = t.hierarchy && I(Q) ? P(Q) : Q;
2200
- y.value = U, Ee();
2202
+ y.value = U, me();
2201
2203
  }
2202
- function rt(Q, N, U) {
2203
- return (Q && Q.length ? ye.value.filter((me, Se) => Q.reduce((Te, ke) => Te && ke.filter(me), !0)) : ye.value).slice(N, U);
2204
+ function We(Q, N, U) {
2205
+ return (Q && Q.length ? ye.value.filter((pe, xe) => Q.reduce((Fe, Ee) => Fe && Ee.filter(pe), !0)) : ye.value).slice(N, U);
2204
2206
  }
2205
- function Ct(Q) {
2207
+ function et(Q) {
2206
2208
  const N = G(), U = Math.ceil(q.value / N);
2207
- 0 <= Q && Q <= U && (H.value = Q, Ee());
2209
+ 0 <= Q && Q <= U && (H.value = Q, me());
2208
2210
  }
2209
- function vt(Q) {
2210
- y.value.push(bt(Q)), ye.value = be();
2211
+ function at(Q) {
2212
+ y.value.push(Ct(Q)), ye.value = be();
2211
2213
  }
2212
- function ft(Q = 0) {
2214
+ function mt(Q = 0) {
2213
2215
  if (!(Q > -1))
2214
2216
  return !1;
2215
2217
  const U = X.value();
2216
- t.hierarchy ? h(Q, U, y) : y.value.splice(Q, 0, U), Ee();
2218
+ t.hierarchy ? h(Q, U, y) : y.value.splice(Q, 0, U), me();
2217
2219
  }
2218
2220
  function wt(Q = 0) {
2219
2221
  if (!(Q > -1 && t.hierarchy))
2220
2222
  return !1;
2221
2223
  const U = X.value(), te = y.value[Q];
2222
- ae(te), T(Q, U, y), Ee();
2224
+ we(te), T(Q, U, y), me();
2223
2225
  }
2224
- function ht(Q, N = 0) {
2226
+ function gt(Q, N = 0) {
2225
2227
  if (!(N > -1 && t.hierarchy))
2226
2228
  return !1;
2227
2229
  const te = y.value[N];
2228
- ae(te), C(N, Q, y), Ee();
2230
+ we(te), C(N, Q, y), me();
2229
2231
  }
2230
2232
  function ie(Q) {
2231
2233
  const N = Q ? Q - 1 : 0;
2232
- y.value.splice(N, 1), Ee();
2234
+ y.value.splice(N, 1), me();
2233
2235
  }
2234
2236
  function he(Q) {
2235
2237
  const N = y.value.findIndex((U) => U[B.value] === Q);
2236
- N !== -1 && (y.value.splice(N, 1), Ee());
2238
+ N !== -1 && (y.value.splice(N, 1), me());
2237
2239
  }
2238
2240
  function Ce(Q) {
2239
2241
  const N = Q > -1 ? y.value[Q] : null;
2240
2242
  if (!(N && N.deletable !== !1))
2241
2243
  return !1;
2242
- y.value = V(N, y.value), Ee();
2244
+ y.value = V(N, y.value), me();
2243
2245
  }
2244
2246
  function $e() {
2245
2247
  const Q = u.size > 0 ? Array.from(u.values()) : [];
2246
2248
  return oe(Q, Array.from(p.values()));
2247
2249
  }
2248
- function He(Q) {
2249
- le.value.size = Q;
2250
+ function Ae(Q) {
2251
+ ae.value.size = Q;
2250
2252
  }
2251
- function Ye(Q) {
2252
- le.value && (He(Q), Ee());
2253
+ function Xe(Q) {
2254
+ ae.value && (Ae(Q), me());
2253
2255
  }
2254
- function nt(Q, N) {
2256
+ function rt(Q, N) {
2255
2257
  const U = y.value[Number(Q) - 1];
2256
- U.editable !== !1 ? (U.name = N, Ee()) : fe.show({
2258
+ U.editable !== !1 ? (U.name = N, me()) : de.show({
2257
2259
  showCloseButton: !1,
2258
2260
  timeout: 3e3,
2259
2261
  animate: "fadeIn",
2260
2262
  toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
2261
2263
  });
2262
2264
  }
2263
- function pt(Q) {
2265
+ function vt(Q) {
2264
2266
  return Q.map((U) => {
2265
- const te = D.value.findIndex((me) => "" + me[B.value] == "" + U);
2267
+ const te = D.value.findIndex((pe) => "" + pe[B.value] == "" + U);
2266
2268
  return te > -1 ? D.value[te] : null;
2267
2269
  }).filter((U) => U != null);
2268
2270
  }
2269
- function it() {
2271
+ function lt() {
2270
2272
  const Q = t.summary.groupFields;
2271
2273
  J = Q.reduce((N, U) => (N.set(U, 0), N), J);
2272
- for (const N of j.value)
2274
+ for (const N of $.value)
2273
2275
  Q.forEach((U) => {
2274
2276
  const te = J.get(U) || 0;
2275
- J.set(U, te + Qe(N, U));
2277
+ J.set(U, te + Ze(N, U));
2276
2278
  });
2277
2279
  Q.forEach((N) => {
2278
2280
  const U = J.get(N) || 0;
@@ -2280,47 +2282,47 @@ function ho(t, e, n, o, i) {
2280
2282
  });
2281
2283
  }
2282
2284
  return {
2283
- addFilter: Le,
2284
- addNewDataItem: vt,
2285
- addSorter: we,
2286
- updatePageSize: He,
2287
- changePageSizeTo: Ye,
2285
+ addFilter: He,
2286
+ addNewDataItem: at,
2287
+ addSorter: _e,
2288
+ updatePageSize: Ae,
2289
+ changePageSizeTo: Xe,
2288
2290
  collapse: ve,
2289
- collapseTo: Ne,
2291
+ collapseTo: Ve,
2290
2292
  dataView: ye,
2291
- editDataItem: nt,
2292
- expand: Re,
2293
- expandTo: je,
2293
+ editDataItem: rt,
2294
+ expand: Ne,
2295
+ expandTo: Le,
2294
2296
  filters: l,
2295
2297
  fold: K,
2296
- getRange: rt,
2297
- getSelectionItems: pt,
2298
+ getRange: We,
2299
+ getSelectionItems: vt,
2298
2300
  hasRealChildren: g,
2299
2301
  insertNewChildDataItem: wt,
2300
- insertNewChildDataItems: ht,
2301
- insertNewDataItem: ft,
2302
+ insertNewChildDataItems: gt,
2303
+ insertNewDataItem: mt,
2302
2304
  isVisibleInTree: k,
2303
- load: Ge,
2304
- navigatePageTo: Ct,
2305
+ load: Re,
2306
+ navigatePageTo: et,
2305
2307
  pageIndex: H,
2306
2308
  rawView: D,
2307
2309
  refresh: $e,
2308
2310
  removeAllFilter: ne,
2309
2311
  removeDataItem: ie,
2310
2312
  removeDataItemById: he,
2311
- removeFilter: ze,
2313
+ removeFilter: qe,
2312
2314
  removeHierarchyDataItem: Ce,
2313
- removeSorter: _e,
2315
+ removeSorter: Se,
2314
2316
  reOrderVisibleIndex: Y,
2315
- setSorters: ce,
2317
+ setSorters: ue,
2316
2318
  sorters: c,
2317
2319
  summaries: J,
2318
- updateSummary: it,
2320
+ updateSummary: lt,
2319
2321
  toggleChildrenVisibiltyByCollapseStatus: M,
2320
2322
  totalItems: q,
2321
- unFold: Fe,
2322
- updateDataView: Ee,
2323
- visibleDataItems: Oe,
2323
+ unFold: De,
2324
+ updateDataView: me,
2325
+ visibleDataItems: ke,
2324
2326
  shouldGroupingData: _
2325
2327
  };
2326
2328
  }
@@ -2389,11 +2391,11 @@ class bo {
2389
2391
  return e[n[0]];
2390
2392
  }
2391
2393
  getTextValue(e) {
2392
- const n = e.split("."), o = this.value.split(",").map((i) => this.getPropValue(i, bt(n)));
2394
+ const n = e.split("."), o = this.value.split(",").map((i) => this.getPropValue(i, Ct(n)));
2393
2395
  return o && o.length ? o.join(",") : "";
2394
2396
  }
2395
2397
  getValue() {
2396
- const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, bt(e)));
2398
+ const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Ct(e)));
2397
2399
  return n && n.length ? n.join(",") : "";
2398
2400
  }
2399
2401
  getDisplayText() {
@@ -2418,7 +2420,7 @@ class Lt {
2418
2420
  this.value = e == null ? void 0 : e.value, this.editiorConfig = Object.assign({}, n), this.displayFormat = (e == null ? void 0 : e.displayFormat) || (n == null ? void 0 : n.displayFormat) || "", this.valueFormat = (e == null ? void 0 : e.valueFormat) || (n == null ? void 0 : n.valueFormat) || "";
2419
2421
  }
2420
2422
  formatValue() {
2421
- const { formatTo: e, parseToDate: n } = an();
2423
+ const { formatTo: e, parseToDate: n } = ln();
2422
2424
  if (!this.value)
2423
2425
  return "";
2424
2426
  const o = n(this.value, this.valueFormat);
@@ -2457,7 +2459,7 @@ class Dt {
2457
2459
  this.begin = "", this.end = "", this.value = "";
2458
2460
  }
2459
2461
  formatValue(e) {
2460
- const { formatTo: n, parseToDate: o } = an();
2462
+ const { formatTo: n, parseToDate: o } = ln();
2461
2463
  if (!e)
2462
2464
  return "";
2463
2465
  const i = o(e, this.valueFormat);
@@ -2557,7 +2559,7 @@ class Ya {
2557
2559
  return e[n[0]];
2558
2560
  }
2559
2561
  getTextValue(e) {
2560
- const n = e.split("."), o = this.value.map((i) => this.getPropValue(i, bt(n)));
2562
+ const n = e.split("."), o = this.value.map((i) => this.getPropValue(i, Ct(n)));
2561
2563
  return o && o.length ? o.join(",") : "";
2562
2564
  }
2563
2565
  getValue() {
@@ -2592,7 +2594,7 @@ class wo {
2592
2594
  this.value = "", this.mapFields = [];
2593
2595
  }
2594
2596
  getValue() {
2595
- return this.mapFields.map((e) => Qe(e, this.valueField || "id")).join(",");
2597
+ return this.mapFields.map((e) => Ze(e, this.valueField || "id")).join(",");
2596
2598
  }
2597
2599
  getDisplayText() {
2598
2600
  return this.value;
@@ -2845,21 +2847,21 @@ function Qa(t, e, n) {
2845
2847
  return p > 250 * 6 ? c = "col-2" : p > 250 * 4 ? c = "col-3" : p > 250 * 3 ? c = "col-4" : p > 250 * 2 && (c = "col-6"), c;
2846
2848
  }
2847
2849
  const d = z(() => u(a.value));
2848
- return Ve([n], ([p]) => {
2850
+ return Be([n], ([p]) => {
2849
2851
  i.value = p, s();
2850
2852
  }), {
2851
2853
  conditionClass: d,
2852
2854
  resizeObserver: o
2853
2855
  };
2854
2856
  }
2855
- const bn = /* @__PURE__ */ Ze({
2857
+ const Cn = /* @__PURE__ */ Ke({
2856
2858
  name: "FConditionFields",
2857
2859
  props: go,
2858
2860
  emits: ["valueChange", "blur", "focus", "click", "input"],
2859
2861
  setup(t, e) {
2860
2862
  const n = E(), {
2861
2863
  locale: o
2862
- } = dt(), i = E(t.key), a = E(t.conditions), r = Oo(t), {
2864
+ } = pt(), i = E(t.key), a = E(t.conditions), r = Oo(t), {
2863
2865
  initialConditionValue: s,
2864
2866
  fieldMap: u,
2865
2867
  loadFieldConfigs: d
@@ -2867,10 +2869,10 @@ const bn = /* @__PURE__ */ Ze({
2867
2869
  conditionClass: l,
2868
2870
  resizeObserver: c
2869
2871
  } = p;
2870
- d(!0), s(a.value), Fn(() => {
2872
+ d(!0), s(a.value), En(() => {
2871
2873
  var _;
2872
2874
  (_ = c.value) == null || _.unobserve(n.value);
2873
- }), Ve(() => t.conditions, () => {
2875
+ }), Be(() => t.conditions, () => {
2874
2876
  a.value = t.conditions, s(a.value);
2875
2877
  });
2876
2878
  const v = z(() => ({
@@ -2918,7 +2920,7 @@ const bn = /* @__PURE__ */ Ze({
2918
2920
  return S === ((M = _.value) == null ? void 0 : M.editorType);
2919
2921
  }) && (y.beginValue = _.value.begin, y.endValue = _.value.end);
2920
2922
  let x = ((k = y == null ? void 0 : y.appearance) == null ? void 0 : k.class) || t.itemClass;
2921
- return y != null && y.multiLineLabel && (x = x + " farris-group-multi-label"), R(Vr, {
2923
+ return y != null && y.multiLineLabel && (x = x + " farris-group-multi-label"), R(Rr, {
2922
2924
  id: w,
2923
2925
  key: w,
2924
2926
  customClass: x,
@@ -2939,7 +2941,7 @@ const bn = /* @__PURE__ */ Ze({
2939
2941
  ref: n
2940
2942
  }, [F()]), [[rr("area-response")]]);
2941
2943
  }
2942
- }), un = /* @__PURE__ */ new Map([
2944
+ }), cn = /* @__PURE__ */ new Map([
2943
2945
  ["appearance", Qt]
2944
2946
  ]), Za = /* @__PURE__ */ new Map([]), Ka = "root-viewmodel";
2945
2947
  class el {
@@ -2999,8 +3001,8 @@ class el {
2999
3001
  }), n.contents = [o];
3000
3002
  const { selectedFields: a } = e;
3001
3003
  a == null || a.forEach((s) => {
3002
- if (s.$type === mn.SimpleField) {
3003
- const u = bt(s), d = this.resolveControlClassByFormColumns(e), p = this.controlCreatorUtils.setFormFieldProperty(u, "", d);
3004
+ if (s.$type === vn.SimpleField) {
3005
+ const u = Ct(s), d = this.resolveControlClassByFormColumns(e), p = this.controlCreatorUtils.setFormFieldProperty(u, "", d);
3004
3006
  p && i.push(p);
3005
3007
  }
3006
3008
  });
@@ -3051,10 +3053,10 @@ class el {
3051
3053
  assembleViewModelFields(e) {
3052
3054
  const n = [], { selectedFields: o } = e;
3053
3055
  return o == null || o.forEach((i) => {
3054
- if (i.$type === mn.SimpleField) {
3056
+ if (i.$type === vn.SimpleField) {
3055
3057
  let a = "blur";
3056
3058
  const r = i.type.name;
3057
- (r === vn.Enum || r === vn.Boolean) && (a = "change"), n.push({
3059
+ (r === hn.Enum || r === hn.Boolean) && (a = "change"), n.push({
3058
3060
  type: "Form",
3059
3061
  id: i.id,
3060
3062
  fieldName: i.bindingField,
@@ -3150,7 +3152,7 @@ const ol = "https://json-schema.org/draft/2020-12/schema", rl = "https://farris-
3150
3152
  /** 内部控件布局是否响应国际化 */
3151
3153
  adaptForLanguage: { type: Boolean, default: !0 }
3152
3154
  };
3153
- It(dl, cl, un, tl);
3155
+ Nt(dl, cl, cn, tl);
3154
3156
  const fl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-design.gitee.io/form-group.schema.json", ml = "form-group", vl = "A Farris Input Component", hl = "object", gl = {
3155
3157
  id: {
3156
3158
  description: "The unique identifier for a form group",
@@ -3256,10 +3258,10 @@ const fl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-
3256
3258
  componentId: { type: String, default: "" },
3257
3259
  errors: { type: Object, default: null }
3258
3260
  };
3259
- It(
3261
+ Nt(
3260
3262
  Mo,
3261
3263
  Io,
3262
- un,
3264
+ cn,
3263
3265
  void 0
3264
3266
  );
3265
3267
  function Bo(t, e, n) {
@@ -3310,7 +3312,7 @@ function Bo(t, e, n) {
3310
3312
  }
3311
3313
  function y(M, V) {
3312
3314
  const { componentType: O } = M;
3313
- let B = Rr(O, M, V);
3315
+ let B = fr(O, M, V);
3314
3316
  n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(M, B));
3315
3317
  const L = O.toLowerCase().replace(/-/g, "_");
3316
3318
  return B && !B.id && B.type === O && (B.id = `${L}_${Math.random().toString().slice(2, 6)}`), B;
@@ -3364,8 +3366,8 @@ function Bo(t, e, n) {
3364
3366
  if (n != null && n.getComponentTitle)
3365
3367
  V = n.getComponentTitle();
3366
3368
  else {
3367
- const { text: L, title: X, label: j, mainTitle: D, name: P, type: I } = e.schema;
3368
- V = L || X || j || D || P || ((B = re[I]) == null ? void 0 : B.name);
3369
+ const { text: L, title: X, label: $, mainTitle: D, name: P, type: I } = e.schema;
3370
+ V = L || X || $ || D || P || ((B = re[I]) == null ? void 0 : B.name);
3369
3371
  }
3370
3372
  V && r.getControlBasicInfoMap().set(e.schema.id, {
3371
3373
  componentTitle: V,
@@ -3376,11 +3378,11 @@ function Bo(t, e, n) {
3376
3378
  var L;
3377
3379
  const { changeObject: V } = M, { propertyID: O, propertyValue: B } = V;
3378
3380
  if (["text", "title", "label", "name", "mainTitle"].includes((L = M == null ? void 0 : M.changeObject) == null ? void 0 : L.propertyID) && O && B && (T(), r)) {
3379
- const X = r.getControlBasicInfoMap(), j = X.keys().toArray().filter((D) => {
3381
+ const X = r.getControlBasicInfoMap(), $ = X.keys().toArray().filter((D) => {
3380
3382
  var P, I;
3381
3383
  return ((P = X.get(D)) == null ? void 0 : P.reliedComponentId) === ((I = e == null ? void 0 : e.schema) == null ? void 0 : I.id);
3382
3384
  });
3383
- j != null && j.length && j.forEach((D) => {
3385
+ $ != null && $.length && $.forEach((D) => {
3384
3386
  const P = X.get(D).parentPathName.split(" > ");
3385
3387
  P[0] = B, X.get(D).parentPathName = P.join(" > ");
3386
3388
  });
@@ -3973,7 +3975,7 @@ class El {
3973
3975
  const o = n && n.parent && n.parent.schema;
3974
3976
  if (!o)
3975
3977
  return;
3976
- const i = o.contents.findIndex((r) => r.id === e), a = bt(o.contents[i]);
3978
+ const i = o.contents.findIndex((r) => r.id === e), a = Ct(o.contents[i]);
3977
3979
  o.contents.splice(i, 1), o.contents.splice(i, 0, a), Cl();
3978
3980
  }
3979
3981
  /**
@@ -4061,18 +4063,18 @@ const kl = {
4061
4063
  * 实际支持 'visible'可见 | 'reserve-space' 占位不显示
4062
4064
  */
4063
4065
  showType: { type: String, default: "visible" }
4064
- }, Ol = /* @__PURE__ */ Ze({
4066
+ }, Ol = /* @__PURE__ */ Ke({
4065
4067
  name: "FDynamicFormLabel",
4066
4068
  props: kl,
4067
4069
  emits: [],
4068
4070
  setup(t, e) {
4069
4071
  E(t.title || t.text);
4070
4072
  const n = E(t.required), o = E(t.text), i = E(t.valid), a = E(t.inValidTip);
4071
- Ve(() => t.text, () => {
4073
+ Be(() => t.text, () => {
4072
4074
  o.value = t.text;
4073
- }), Ve(() => t.required, (p, l) => {
4075
+ }), Be(() => t.required, (p, l) => {
4074
4076
  p !== l && (n.value = p);
4075
- }), Ve([() => t.valid, () => t.inValidTip], ([p, l]) => {
4077
+ }), Be([() => t.valid, () => t.inValidTip], ([p, l]) => {
4076
4078
  i.value = p, a.value = l;
4077
4079
  });
4078
4080
  const r = z(() => i.value ? o.value : a.value), s = z(() => i.value ? "" : "color:red"), u = z(() => ({
@@ -4094,21 +4096,21 @@ const kl = {
4094
4096
  class: "farris-label-info text-danger"
4095
4097
  }, [Tt("*")]), t.showType === "visible" && o.value])]);
4096
4098
  }
4097
- }), se = {}, ue = {}, de = {}, pe = {};
4098
- let Cn = !1;
4099
+ }), le = {}, se = {}, ce = {}, fe = {};
4100
+ let wn = !1;
4099
4101
  function Il() {
4100
- Cn || (Cn = !0, $r.register(se, ue, de, pe), Dr.register(se, ue, de, pe), jr.register(se, ue, de, pe), Lr.register(se, ue, de, pe), Hr.register(se, ue, de, pe), Wr.register(se, ue, de, pe), gn.register(se, ue, de, pe), yn.register(se, ue, de, pe), gn.register(se, ue, de, pe), yn.register(se, ue, de, pe), nn.register(se, ue, de, pe), Ar.register(se, ue, de, pe), zr.register(se, ue, de, pe), qr.register(se, ue, de, pe), Gr.register(se, ue, de, pe), Ur.register(se, ue, de, pe), Yr.register(se, ue, de, pe), Xr.register(se, ue, de, pe), Br.register(se, ue, de, pe), Jr.register(se, ue, de, pe), Hi.register(se, ue, de, pe), kr.register(se, ue, de, pe), Qr.register(se, ue, de, pe), Ni.register(se, ue, de, pe), Kr.register(se, ue, de, pe), ei.register(se, ue, de, pe), ti.register(se, ue, de, pe), oi.register(se, ue, de, pe), ni.register(se, ue, de, pe), ri.register(se, ue, de, pe), ii.register(se, ue, de, pe), ai.register(se, ue, de, pe), li.register(se, ue, de, pe), si.register(se, ue, de, pe), ui.register(se, ue, de, pe), ci.register(se, ue, de, pe), di.register(se, ue, de, pe), Or.register(se, ue, de, pe), fi.register(se, ue, de, pe), pi.register(se, ue, de, pe), mi.register(se, ue, de, pe), vi.register(se, ue, de, pe), gi.register(se, ue, de, pe), yi.register(se, ue, de, pe), hi.register(se, ue, de, pe), Mi.register(se, ue, de), Ir.register(se, ue, de, pe), bi.register(se, ue, de, pe), Ci.register(se, ue, de, pe), wi.register(se, ue, de, pe), _i.register(se, ue, de, pe), Si.register(se, ue, de, pe), Pi.register(se, ue, de, pe), Tr.register(se, ue, de, pe), Mr.register(se, ue, de, pe), xi.register(se, ue, de, pe), Ti.register(se, ue, de, pe), xr.register(se, ue, de, pe), Fi.register(se, ue, de, pe), ki.register(se, ue, de, pe), Ei.register(se, ue, de, pe), Oi.register(se, ue, de, pe), Ii.register(se, ue, de, pe), Bi.register(se, ue, de, pe), Zr.register(se, ue, de, pe), Vi.register(se, ue, de, pe), Ri.register(se, ue, de, pe), Di.register(se, ue, de, pe), $i.register(se, ue, de, pe), ji.register(se, ue, de, pe), Li.register(se, ue, de, pe), Wi.register(se, ue, de, pe), Ai.register(se, ue, de, pe), zi.register(se, ue, de, pe), Sr.register(se, ue, de, pe), Gi.register(se, ue, de, pe), qi.register(se, ue, de, pe));
4102
+ wn || (wn = !0, jr.register(le, se, ce, fe), Dr.register(le, se, ce, fe), $r.register(le, se, ce, fe), Lr.register(le, se, ce, fe), Hr.register(le, se, ce, fe), Wr.register(le, se, ce, fe), yn.register(le, se, ce, fe), bn.register(le, se, ce, fe), yn.register(le, se, ce, fe), bn.register(le, se, ce, fe), nn.register(le, se, ce, fe), Ar.register(le, se, ce, fe), zr.register(le, se, ce, fe), qr.register(le, se, ce, fe), Gr.register(le, se, ce, fe), Ur.register(le, se, ce, fe), Yr.register(le, se, ce, fe), Xr.register(le, se, ce, fe), Nr.register(le, se, ce, fe), Jr.register(le, se, ce, fe), Hi.register(le, se, ce, fe), Ir.register(le, se, ce, fe), Qr.register(le, se, ce, fe), Ni.register(le, se, ce, fe), Kr.register(le, se, ce, fe), ei.register(le, se, ce, fe), ti.register(le, se, ce, fe), oi.register(le, se, ce, fe), ni.register(le, se, ce, fe), ri.register(le, se, ce, fe), ii.register(le, se, ce, fe), ai.register(le, se, ce, fe), li.register(le, se, ce, fe), si.register(le, se, ce, fe), ui.register(le, se, ce, fe), ci.register(le, se, ce, fe), di.register(le, se, ce, fe), Mr.register(le, se, ce, fe), fi.register(le, se, ce, fe), pi.register(le, se, ce, fe), mi.register(le, se, ce, fe), vi.register(le, se, ce, fe), gi.register(le, se, ce, fe), yi.register(le, se, ce, fe), hi.register(le, se, ce, fe), Mi.register(le, se, ce), Br.register(le, se, ce, fe), bi.register(le, se, ce, fe), Ci.register(le, se, ce, fe), wi.register(le, se, ce, fe), _i.register(le, se, ce, fe), Si.register(le, se, ce, fe), Pi.register(le, se, ce, fe), Er.register(le, se, ce, fe), Vr.register(le, se, ce, fe), xi.register(le, se, ce, fe), Ti.register(le, se, ce, fe), Fr.register(le, se, ce, fe), Fi.register(le, se, ce, fe), ki.register(le, se, ce, fe), Ei.register(le, se, ce, fe), Oi.register(le, se, ce, fe), Ii.register(le, se, ce, fe), Bi.register(le, se, ce, fe), Zr.register(le, se, ce, fe), Vi.register(le, se, ce, fe), Ri.register(le, se, ce, fe), Di.register(le, se, ce, fe), ji.register(le, se, ce, fe), $i.register(le, se, ce, fe), Li.register(le, se, ce, fe), Wi.register(le, se, ce, fe), Ai.register(le, se, ce, fe), zi.register(le, se, ce, fe), Tr.register(le, se, ce, fe), Gi.register(le, se, ce, fe), qi.register(le, se, ce, fe));
4101
4103
  }
4102
4104
  function Ml() {
4103
4105
  Il();
4104
4106
  function t(r) {
4105
- const s = se[r];
4107
+ const s = le[r];
4106
4108
  if (!s)
4107
4109
  throw new Error(`Could not find the editor of type '${r}'`);
4108
4110
  return s;
4109
4111
  }
4110
4112
  function e(r, s) {
4111
- const u = ue[r];
4113
+ const u = se[r];
4112
4114
  return u ? u(s) : {};
4113
4115
  }
4114
4116
  function n(r) {
@@ -4213,13 +4215,13 @@ const Bl = {
4213
4215
  type: Object,
4214
4216
  default: null
4215
4217
  }
4216
- }, Vl = /* @__PURE__ */ Ze({
4218
+ }, Vl = /* @__PURE__ */ Ke({
4217
4219
  name: "FValidationMessage",
4218
4220
  props: Bl,
4219
4221
  emits: [],
4220
4222
  setup(t, e) {
4221
4223
  const n = E(t.errors);
4222
- Ve(() => t.errors, (a) => {
4224
+ Be(() => t.errors, (a) => {
4223
4225
  n.value = a;
4224
4226
  });
4225
4227
  const o = E(!0), i = z(() => {
@@ -4241,7 +4243,7 @@ const Bl = {
4241
4243
  class: "f-feedback-message"
4242
4244
  }, [i.value])]);
4243
4245
  }
4244
- }), Nl = /* @__PURE__ */ Ze({
4246
+ }), Nl = /* @__PURE__ */ Ke({
4245
4247
  name: "FDynamicFormGroup",
4246
4248
  props: Mo,
4247
4249
  emits: ["change", "update:modelValue"],
@@ -4285,9 +4287,9 @@ const Bl = {
4285
4287
  errors: c.value
4286
4288
  }, null);
4287
4289
  }
4288
- return Ve([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([T, C, k, S, M, V, O, B, L, X]) => {
4289
- var j;
4290
- n.value = T, o.value = C, i.value = k, a.value = S, r.value = M, s.value = V, u.value = ((j = i.value) == null ? void 0 : j.required) || O, d.value = B, p.value = L, c.value = X;
4290
+ return Be([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([T, C, k, S, M, V, O, B, L, X]) => {
4291
+ var $;
4292
+ n.value = T, o.value = C, i.value = k, a.value = S, r.value = M, s.value = V, u.value = (($ = i.value) == null ? void 0 : $.required) || O, d.value = B, p.value = L, c.value = X;
4291
4293
  }), e.expose({
4292
4294
  editorRef: l
4293
4295
  }), () => p.value && R("div", {
@@ -4308,14 +4310,14 @@ const Bl = {
4308
4310
  class: "farris-input-wrap"
4309
4311
  }, [b.value(), g()])])])]);
4310
4312
  }
4311
- }), Rl = {}, Pl = {}, Vt = class Vt {
4313
+ }), Rl = {}, Pl = {}, Bt = class Bt {
4312
4314
  /**
4313
4315
  * 根据绑定字段类型获取可用的输入类控件
4314
4316
  */
4315
4317
  static getEditorTypesByMDataType(e, n = !1, o = "") {
4316
4318
  if (n)
4317
4319
  return [{ key: re["language-textbox"].type, value: re["language-textbox"].name }];
4318
- let i = Vt.fieldControlTypeMapping[e];
4320
+ let i = Bt.fieldControlTypeMapping[e];
4319
4321
  if (o === "data-grid-column" && (i != null && i.length)) {
4320
4322
  const a = [re["check-group"].type, re["radio-group"].type];
4321
4323
  i = i.filter((r) => !a.includes(r.key));
@@ -4327,8 +4329,8 @@ const Bl = {
4327
4329
  */
4328
4330
  static getAllInputTypes() {
4329
4331
  const e = [];
4330
- for (const n in Vt.fieldControlTypeMapping)
4331
- Vt.fieldControlTypeMapping[n].forEach((o) => {
4332
+ for (const n in Bt.fieldControlTypeMapping)
4333
+ Bt.fieldControlTypeMapping[n].forEach((o) => {
4332
4334
  e.find((i) => i.key === o.key && i.value === o.value) || e.push({ key: o.key, value: o.value });
4333
4335
  });
4334
4336
  return e;
@@ -4346,7 +4348,7 @@ const Bl = {
4346
4348
  /**
4347
4349
  * <字段类型,可配置的控件类型列表>的映射
4348
4350
  */
4349
- ee(Vt, "fieldControlTypeMapping", {
4351
+ ee(Bt, "fieldControlTypeMapping", {
4350
4352
  String: [
4351
4353
  { key: re["input-group"].type, value: re["input-group"].name },
4352
4354
  { key: re.lookup.type, value: re.lookup.name },
@@ -4397,8 +4399,8 @@ ee(Vt, "fieldControlTypeMapping", {
4397
4399
  { key: re["radio-group"].type, value: re["radio-group"].name }
4398
4400
  ]
4399
4401
  });
4400
- let wn = Vt;
4401
- var gt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4402
+ let _n = Bt;
4403
+ var yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4402
4404
  function Ht(t) {
4403
4405
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4404
4406
  }
@@ -4455,74 +4457,74 @@ var Dl = { exports: {} };
4455
4457
  function l(S, M) {
4456
4458
  var V = arguments.length;
4457
4459
  V === 1 && Array.isArray(S) === !1 && (M = S, S = []);
4458
- var O, B, L, X, j, D, P, I, $, A = null, J, q, le = !1, G = 0, H, W = M || {};
4460
+ var O, B, L, X, $, D, P, I, j, A = null, J, q, ae = !1, G = 0, H, W = M || {};
4459
4461
  W.moves === void 0 && (W.moves = w), W.accepts === void 0 && (W.accepts = w), W.invalid === void 0 && (W.invalid = ne), W.containers === void 0 && (W.containers = S || []), W.isContainer === void 0 && (W.isContainer = y), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer = d.body);
4460
4462
  var Z = r({
4461
4463
  containers: W.containers,
4462
- start: Le,
4464
+ start: He,
4463
4465
  end: ve,
4464
- cancel: ae,
4466
+ cancel: we,
4465
4467
  remove: K,
4466
- destroy: Oe,
4467
- canMove: _e,
4468
+ destroy: ke,
4469
+ canMove: Se,
4468
4470
  dragging: !1
4469
4471
  });
4470
- return W.removeOnSpill === !0 && Z.on("over", vt).on("out", ft), xe(), Z;
4471
- function fe(N) {
4472
+ return W.removeOnSpill === !0 && Z.on("over", at).on("out", mt), Te(), Z;
4473
+ function de(N) {
4472
4474
  return Z.containers.indexOf(N) !== -1 || W.isContainer(N);
4473
4475
  }
4474
- function xe(N) {
4476
+ function Te(N) {
4475
4477
  var U = N ? "remove" : "add";
4476
- f(p, U, "mousedown", oe), f(p, U, "mouseup", je);
4478
+ f(p, U, "mousedown", oe), f(p, U, "mouseup", Le);
4477
4479
  }
4478
4480
  function be(N) {
4479
4481
  var U = N ? "remove" : "add";
4480
- f(p, U, "mousemove", ce);
4482
+ f(p, U, "mousemove", ue);
4481
4483
  }
4482
4484
  function ye(N) {
4483
4485
  var U = N ? "remove" : "add";
4484
4486
  s[U](p, "selectstart", Y), s[U](p, "click", Y);
4485
4487
  }
4486
- function Oe() {
4487
- xe(!0), je({});
4488
+ function ke() {
4489
+ Te(!0), Le({});
4488
4490
  }
4489
4491
  function Y(N) {
4490
4492
  J && N.preventDefault();
4491
4493
  }
4492
4494
  function oe(N) {
4493
- X = N.clientX, j = N.clientY;
4495
+ X = N.clientX, $ = N.clientY;
4494
4496
  var U = F(N) !== 1 || N.metaKey || N.ctrlKey;
4495
4497
  if (!U) {
4496
- var te = N.target, me = we(te);
4497
- me && (J = me, be(), N.type === "mousedown" && (g(te) ? te.focus() : N.preventDefault()));
4498
+ var te = N.target, pe = _e(te);
4499
+ pe && (J = pe, be(), N.type === "mousedown" && (g(te) ? te.focus() : N.preventDefault()));
4498
4500
  }
4499
4501
  }
4500
- function ce(N) {
4502
+ function ue(N) {
4501
4503
  if (J) {
4502
4504
  if (F(N) === 0) {
4503
- je({});
4505
+ Le({});
4504
4506
  return;
4505
4507
  }
4506
- if (!(N.clientX !== void 0 && Math.abs(N.clientX - X) <= (W.slideFactorX || 0) && N.clientY !== void 0 && Math.abs(N.clientY - j) <= (W.slideFactorY || 0))) {
4508
+ if (!(N.clientX !== void 0 && Math.abs(N.clientX - X) <= (W.slideFactorX || 0) && N.clientY !== void 0 && Math.abs(N.clientY - $) <= (W.slideFactorY || 0))) {
4507
4509
  if (W.ignoreInputTextSelection) {
4508
- var U = k("clientX", N) || 0, te = k("clientY", N) || 0, me = d.elementFromPoint(U, te);
4509
- if (g(me))
4510
+ var U = k("clientX", N) || 0, te = k("clientY", N) || 0, pe = d.elementFromPoint(U, te);
4511
+ if (g(pe))
4510
4512
  return;
4511
4513
  }
4512
- var Se = J;
4513
- be(!0), ye(), ve(), ze(Se), u.add(I || L, "gu-transit"), ht(), wt(), G = 0, rt(N);
4514
+ var xe = J;
4515
+ be(!0), ye(), ve(), qe(xe), u.add(I || L, "gu-transit"), gt(), wt(), G = 0, We(N);
4514
4516
  }
4515
4517
  }
4516
4518
  }
4517
- function we(N) {
4518
- if (!(Z.dragging && O) && !fe(N)) {
4519
- for (var U = N; b(N) && fe(b(N)) === !1; )
4519
+ function _e(N) {
4520
+ if (!(Z.dragging && O) && !de(N)) {
4521
+ for (var U = N; b(N) && de(b(N)) === !1; )
4520
4522
  if (W.invalid(N, U) || (N = b(N), !N))
4521
4523
  return;
4522
4524
  var te = b(N);
4523
4525
  if (te && !W.invalid(N, U)) {
4524
- var me = W.moves(N, te, U, T(N));
4525
- if (me)
4526
+ var pe = W.moves(N, te, U, T(N));
4527
+ if (pe)
4526
4528
  return {
4527
4529
  item: N,
4528
4530
  source: te
@@ -4530,14 +4532,14 @@ var Dl = { exports: {} };
4530
4532
  }
4531
4533
  }
4532
4534
  }
4533
- function _e(N) {
4534
- return !!we(N);
4535
+ function Se(N) {
4536
+ return !!_e(N);
4535
4537
  }
4536
- function Le(N) {
4537
- var U = we(N);
4538
- U && ze(U);
4538
+ function He(N) {
4539
+ var U = _e(N);
4540
+ U && qe(U);
4539
4541
  }
4540
- function ze(N) {
4542
+ function qe(N) {
4541
4543
  Q(N.item, N.source) && (I = N.item.cloneNode(!0), Z.emit("cloned", I, N.item, "copy")), B = N.source, L = N.item, D = P = T(N.item), Z.dragging = !0, Z.emit("drag", L, B);
4542
4544
  }
4543
4545
  function ne() {
@@ -4546,108 +4548,108 @@ var Dl = { exports: {} };
4546
4548
  function ve() {
4547
4549
  if (Z.dragging) {
4548
4550
  var N = I || L;
4549
- Re(N, b(N));
4551
+ Ne(N, b(N));
4550
4552
  }
4551
4553
  }
4552
- function Ne() {
4554
+ function Ve() {
4553
4555
  J = !1, be(!0), ye(!0);
4554
4556
  }
4555
- function je(N) {
4556
- if (Ne(), !!Z.dragging) {
4557
- var U = I || L, te = k("clientX", N) || 0, me = k("clientY", N) || 0, Se = _(O, te, me), Te = Ge(Se, te, me);
4558
- Te && (I && W.copySortSource || !I || Te !== B) ? Re(U, Te) : W.removeOnSpill ? K() : ae();
4557
+ function Le(N) {
4558
+ if (Ve(), !!Z.dragging) {
4559
+ var U = I || L, te = k("clientX", N) || 0, pe = k("clientY", N) || 0, xe = _(O, te, pe), Fe = Re(xe, te, pe);
4560
+ Fe && (I && W.copySortSource || !I || Fe !== B) ? Ne(U, Fe) : W.removeOnSpill ? K() : we();
4559
4561
  }
4560
4562
  }
4561
- function Re(N, U) {
4563
+ function Ne(N, U) {
4562
4564
  var te = b(N);
4563
- I && W.copySortSource && U === B && te.removeChild(L), Ee(U) ? Z.emit("cancel", N, B) : Z.emit("drop", N, U, B, P), Fe();
4565
+ I && W.copySortSource && U === B && te.removeChild(L), me(U) ? Z.emit("cancel", N, B) : Z.emit("drop", N, U, B, P), De();
4564
4566
  }
4565
4567
  function K() {
4566
4568
  if (Z.dragging) {
4567
4569
  var N = I || L, U = b(N);
4568
- U && U.removeChild(N), Z.emit(I ? "cancel" : "remove", N, U, B), Fe();
4570
+ U && U.removeChild(N), Z.emit(I ? "cancel" : "remove", N, U, B), De();
4569
4571
  }
4570
4572
  }
4571
- function ae(N) {
4573
+ function we(N) {
4572
4574
  if (Z.dragging) {
4573
- var U = arguments.length > 0 ? N : W.revertOnSpill, te = I || L, me = b(te), Se = Ee(me);
4574
- Se === !1 && U && (I ? me && me.removeChild(I) : B.insertBefore(te, D)), Se || U ? Z.emit("cancel", te, B, B) : Z.emit("drop", te, me, B, P), Fe();
4575
+ var U = arguments.length > 0 ? N : W.revertOnSpill, te = I || L, pe = b(te), xe = me(pe);
4576
+ xe === !1 && U && (I ? pe && pe.removeChild(I) : B.insertBefore(te, D)), xe || U ? Z.emit("cancel", te, B, B) : Z.emit("drop", te, pe, B, P), De();
4575
4577
  }
4576
4578
  }
4577
- function Fe() {
4579
+ function De() {
4578
4580
  var N = I || L;
4579
- Ne(), ie(), he(), N && u.rm(N, "gu-transit"), $ && clearTimeout($), Z.dragging = !1, A && Z.emit("out", N, A, B), Z.emit("dragend", N, G), B = L = I = D = P = $ = A = null;
4581
+ Ve(), ie(), he(), N && u.rm(N, "gu-transit"), j && clearTimeout(j), Z.dragging = !1, A && Z.emit("out", N, A, B), Z.emit("dragend", N, G), B = L = I = D = P = j = A = null;
4580
4582
  }
4581
- function Ee(N, U) {
4583
+ function me(N, U) {
4582
4584
  var te;
4583
4585
  return U !== void 0 ? te = U : O ? te = P : te = T(I || L), N === B && te === D;
4584
4586
  }
4585
- function Ge(N, U, te) {
4586
- for (var me = N; me && !Se(); )
4587
- me = b(me);
4588
- return me;
4589
- function Se() {
4590
- var Te = fe(me);
4591
- if (Te === !1)
4587
+ function Re(N, U, te) {
4588
+ for (var pe = N; pe && !xe(); )
4589
+ pe = b(pe);
4590
+ return pe;
4591
+ function xe() {
4592
+ var Fe = de(pe);
4593
+ if (Fe === !1)
4592
4594
  return !1;
4593
- var ke = Ce(me, N), Pe = it(me, ke, U, te), Be = Ee(me, Pe);
4594
- return Be ? !0 : W.accepts(L, me, B, Pe);
4595
+ var Ee = Ce(pe, N), Pe = lt(pe, Ee, U, te), Me = me(pe, Pe);
4596
+ return Me ? !0 : W.accepts(L, pe, B, Pe);
4595
4597
  }
4596
4598
  }
4597
- function rt(N) {
4599
+ function We(N) {
4598
4600
  if (!O)
4599
4601
  return;
4600
4602
  N.preventDefault();
4601
4603
  var U = k("clientX", N) || 0, te = k("clientY", N) || 0;
4602
4604
  O.style.left = U - 2 + "px", O.style.top = te - 2 + "px";
4603
- var me = I || L, Se = _(O, U, te), Te = Ge(Se, U, te), ke = Te !== null && Te !== A;
4604
- (ke || Te === null) && (Xe(), A = Te, We()), pt(Se, te);
4605
- var Pe = b(me);
4606
- if (Te === B && I && !W.copySortSource) {
4607
- Pe && Pe.removeChild(me);
4605
+ var pe = I || L, xe = _(O, U, te), Fe = Re(xe, U, te), Ee = Fe !== null && Fe !== A;
4606
+ (Ee || Fe === null) && (Je(), A = Fe, ze()), vt(xe, te);
4607
+ var Pe = b(pe);
4608
+ if (Fe === B && I && !W.copySortSource) {
4609
+ Pe && Pe.removeChild(pe);
4608
4610
  return;
4609
4611
  }
4610
- var Be, De = Ce(Te, Se);
4611
- if (le = $e(De, Te), De !== null)
4612
- Be = it(Te, De, U, te);
4612
+ var Me, je = Ce(Fe, xe);
4613
+ if (ae = $e(je, Fe), je !== null)
4614
+ Me = lt(Fe, je, U, te);
4613
4615
  else if (W.revertOnSpill === !0 && !I)
4614
- Be = D, Te = B;
4616
+ Me = D, Fe = B;
4615
4617
  else {
4616
- I && Pe && Pe.removeChild(me), I && q && (q.style.display = "none");
4618
+ I && Pe && Pe.removeChild(pe), I && q && (q.style.display = "none");
4617
4619
  return;
4618
4620
  }
4619
- q.style.display = "block", Ct(Be, me, ke), Be ? Ye(De, Be) : nt(Te);
4620
- function Me(Ue) {
4621
- Z.emit(Ue, me, A, B);
4621
+ q.style.display = "block", et(Me, pe, Ee), Me ? Xe(je, Me) : rt(Fe);
4622
+ function Ie(Ye) {
4623
+ Z.emit(Ye, pe, A, B);
4622
4624
  }
4623
- function We() {
4624
- ke && Me("over");
4625
+ function ze() {
4626
+ Ee && Ie("over");
4625
4627
  }
4626
- function Xe() {
4627
- A && Me("out");
4628
+ function Je() {
4629
+ A && Ie("out");
4628
4630
  }
4629
4631
  }
4630
- function Ct(N, U, te) {
4632
+ function et(N, U, te) {
4631
4633
  (N === U || N === T(U)) && (P = T(U)), (N === null && te || N !== U && N !== T(U)) && (P = N);
4632
4634
  }
4633
- function vt(N) {
4635
+ function at(N) {
4634
4636
  u.rm(N, "gu-hide");
4635
4637
  }
4636
- function ft(N) {
4638
+ function mt(N) {
4637
4639
  Z.dragging && u.add(N, "gu-hide");
4638
4640
  }
4639
4641
  function wt() {
4640
- O || (O = document.createElement("div"), O.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", O.innerHTML = W.getMirrorText && W.getMirrorText(L) || "控件", u.add(O, "gu-mirror"), W.mirrorContainer.appendChild(O), f(p, "add", "mousemove", rt), u.add(W.mirrorContainer, "gu-unselectable"), Z.emit("cloned", O, L, "mirror"));
4642
+ O || (O = document.createElement("div"), O.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", O.innerHTML = W.getMirrorText && W.getMirrorText(L) || "控件", u.add(O, "gu-mirror"), W.mirrorContainer.appendChild(O), f(p, "add", "mousemove", We), u.add(W.mirrorContainer, "gu-unselectable"), Z.emit("cloned", O, L, "mirror"));
4641
4643
  }
4642
- function ht() {
4644
+ function gt() {
4643
4645
  if (q = document.createElement("div"), u.add(q, "gu-insertion"), L) {
4644
4646
  var N = L.getBoundingClientRect();
4645
4647
  q.style.left = N.left + "px", q.style.top = N.top + "px";
4646
4648
  }
4647
- le = !1, W.mirrorContainer.appendChild(q);
4649
+ ae = !1, W.mirrorContainer.appendChild(q);
4648
4650
  }
4649
4651
  function ie() {
4650
- O && (u.rm(W.mirrorContainer, "gu-unselectable"), f(p, "remove", "mousemove", rt), b(O).removeChild(O), O = null);
4652
+ O && (u.rm(W.mirrorContainer, "gu-unselectable"), f(p, "remove", "mousemove", We), b(O).removeChild(O), O = null);
4651
4653
  }
4652
4654
  function he() {
4653
4655
  q && (b(q).removeChild(q), q = null);
@@ -4659,95 +4661,95 @@ var Dl = { exports: {} };
4659
4661
  }
4660
4662
  function $e(N, U) {
4661
4663
  if (!U)
4662
- return le;
4664
+ return ae;
4663
4665
  var te = N || U && U.lastElementChild;
4664
4666
  if (!te)
4665
4667
  return !0;
4666
- var me = getComputedStyle(N), Se = /^inline/.test(me.getPropertyValue("display")) || /^(left|right)$/.test(me.getPropertyValue("float"));
4667
- if (Se)
4668
+ var pe = getComputedStyle(N), xe = /^inline/.test(pe.getPropertyValue("display")) || /^(left|right)$/.test(pe.getPropertyValue("float"));
4669
+ if (xe)
4668
4670
  return !0;
4669
4671
  if (U) {
4670
- var Te = getComputedStyle(U), ke = Te.getPropertyValue("display");
4671
- if (/flex$/.test(ke)) {
4672
- var Pe = Te.getPropertyValue("flex-direction") || "row";
4672
+ var Fe = getComputedStyle(U), Ee = Fe.getPropertyValue("display");
4673
+ if (/flex$/.test(Ee)) {
4674
+ var Pe = Fe.getPropertyValue("flex-direction") || "row";
4673
4675
  if (Pe === "row" || Pe === "row-reverse")
4674
- return !He(U);
4676
+ return !Ae(U);
4675
4677
  }
4676
4678
  return !1;
4677
4679
  }
4678
4680
  return !0;
4679
4681
  }
4680
- function He(N) {
4682
+ function Ae(N) {
4681
4683
  if (!N.children || !N.children.length)
4682
4684
  return !1;
4683
4685
  for (const U of Array.from(N.children)) {
4684
- const me = (U.className && U.className.split(" ") || []).filter((Se) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Se));
4685
- if (!me.length)
4686
+ const pe = (U.className && U.className.split(" ") || []).filter((xe) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(xe));
4687
+ if (!pe.length)
4686
4688
  return !1;
4687
- for (const Se of me) {
4688
- const Te = Se.slice(Se.lastIndexOf("-") + 1);
4689
- if (parseInt(Te, 10) !== 12)
4689
+ for (const xe of pe) {
4690
+ const Fe = xe.slice(xe.lastIndexOf("-") + 1);
4691
+ if (parseInt(Fe, 10) !== 12)
4690
4692
  return !1;
4691
4693
  }
4692
4694
  }
4693
4695
  return !0;
4694
4696
  }
4695
- function Ye(N, U) {
4697
+ function Xe(N, U) {
4696
4698
  const te = U.getBoundingClientRect();
4697
- if (q.style.left = te.left + "px", q.style.top = te.top + "px", le) {
4699
+ if (q.style.left = te.left + "px", q.style.top = te.top + "px", ae) {
4698
4700
  if (q.style.height = te.height + "px", q.style.width = "4px", N) {
4699
- const me = N.getBoundingClientRect();
4700
- me.top !== te.top && (q.style.left = me.right + "px", q.style.top = me.top + "px", q.style.height = me.height + "px");
4701
+ const pe = N.getBoundingClientRect();
4702
+ pe.top !== te.top && (q.style.left = pe.right + "px", q.style.top = pe.top + "px", q.style.height = pe.height + "px");
4701
4703
  }
4702
4704
  } else if (q.style.height = "4px", q.style.width = te.width + "px", H) {
4703
- const me = H.getBoundingClientRect();
4704
- te.top < me.top && (q.style.display = "none");
4705
+ const pe = H.getBoundingClientRect();
4706
+ te.top < pe.top && (q.style.display = "none");
4705
4707
  }
4706
4708
  U === L && L && (q.style.display = "none");
4707
4709
  }
4708
- function nt(N) {
4710
+ function rt(N) {
4709
4711
  P = null;
4710
4712
  var U = N.lastElementChild;
4711
4713
  if (U) {
4712
4714
  var te = U.getBoundingClientRect();
4713
- le ? (q.style.left = te.right + "px", q.style.top = te.top + "px", q.style.height = te.height + "px", q.style.width = "4px") : (q.style.left = te.left + "px", q.style.top = te.bottom + "px", q.style.height = "4px", q.style.width = te.width + "px"), U === L && L && (q.style.display = "none");
4715
+ ae ? (q.style.left = te.right + "px", q.style.top = te.top + "px", q.style.height = te.height + "px", q.style.width = "4px") : (q.style.left = te.left + "px", q.style.top = te.bottom + "px", q.style.height = "4px", q.style.width = te.width + "px"), U === L && L && (q.style.display = "none");
4714
4716
  } else
4715
4717
  q.style.display = "none";
4716
4718
  }
4717
- function pt(N, U) {
4719
+ function vt(N, U) {
4718
4720
  if (!W.mirrorContainer.contains(N) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (H = c(N), !H || !H.contains(N)))
4719
4721
  return;
4720
- const te = document.querySelector(".dgComponentSelected"), me = H.getBoundingClientRect();
4721
- if (U - 30 < me.top && H.scrollTop > 0) {
4722
- let Se = H.scrollTop < 10 ? H.scrollTop : 10;
4723
- H.scrollBy(0, -1 * Se), te && H.contains(te) && (G = G + -1 * Se);
4722
+ const te = document.querySelector(".dgComponentSelected"), pe = H.getBoundingClientRect();
4723
+ if (U - 30 < pe.top && H.scrollTop > 0) {
4724
+ let xe = H.scrollTop < 10 ? H.scrollTop : 10;
4725
+ H.scrollBy(0, -1 * xe), te && H.contains(te) && (G = G + -1 * xe);
4724
4726
  }
4725
- if (U + 30 > me.bottom && H.scrollTop < H.scrollHeight - H.clientHeight) {
4726
- const Se = H.scrollHeight - H.clientHeight - H.scrollTop;
4727
- let Te = Se < 10 ? Se : 10;
4728
- H.scrollBy(0, Te), te && H.contains(te) && (G = G + Te);
4727
+ if (U + 30 > pe.bottom && H.scrollTop < H.scrollHeight - H.clientHeight) {
4728
+ const xe = H.scrollHeight - H.clientHeight - H.scrollTop;
4729
+ let Fe = xe < 10 ? xe : 10;
4730
+ H.scrollBy(0, Fe), te && H.contains(te) && (G = G + Fe);
4729
4731
  }
4730
4732
  }
4731
- function it(N, U, te, me) {
4732
- var Se = W.direction === "horizontal", Te = W.direction === "mixed", ke = U !== N ? Be() : Pe();
4733
- return ke;
4733
+ function lt(N, U, te, pe) {
4734
+ var xe = W.direction === "horizontal", Fe = W.direction === "mixed", Ee = U !== N ? Me() : Pe();
4735
+ return Ee;
4734
4736
  function Pe() {
4735
- var Me = N.children.length, We, Xe, Ue;
4736
- for (We = 0; We < Me; We++)
4737
- if (Xe = N.children[We], Ue = Xe.getBoundingClientRect(), Se && Ue.left + Ue.width / 2 > te || !Te && !Se && Ue.top + Ue.height / 2 > me || Te && Ue.left + Ue.width > te && Ue.top + Ue.height > me)
4738
- return Xe;
4737
+ var Ie = N.children.length, ze, Je, Ye;
4738
+ for (ze = 0; ze < Ie; ze++)
4739
+ if (Je = N.children[ze], Ye = Je.getBoundingClientRect(), xe && Ye.left + Ye.width / 2 > te || !Fe && !xe && Ye.top + Ye.height / 2 > pe || Fe && Ye.left + Ye.width > te && Ye.top + Ye.height > pe)
4740
+ return Je;
4739
4741
  return null;
4740
4742
  }
4741
- function Be() {
4742
- var Me = U.getBoundingClientRect();
4743
- if (Te) {
4744
- var We = me - Me.top, Xe = te - Me.left, Ue = Me.bottom - me, Mt = Me.right - te, Bt = Math.min(Xe, Mt, We, Ue), ge;
4745
- return le ? ge = Mt < Xe : ge = Ue === Bt || Mt === Bt || Xe === Bt, De(ge);
4743
+ function Me() {
4744
+ var Ie = U.getBoundingClientRect();
4745
+ if (Fe) {
4746
+ var ze = pe - Ie.top, Je = te - Ie.left, Ye = Ie.bottom - pe, It = Ie.right - te, Mt = Math.min(Je, It, ze, Ye), ge;
4747
+ return ae ? ge = It < Je : ge = Ye === Mt || It === Mt || Je === Mt, je(ge);
4746
4748
  }
4747
- return De(Se ? te > Me.left + m(Me) / 2 : me > Me.top + x(Me) / 2);
4749
+ return je(xe ? te > Ie.left + m(Ie) / 2 : pe > Ie.top + x(Ie) / 2);
4748
4750
  }
4749
- function De(Me) {
4750
- return Me ? T(U) : U;
4751
+ function je(Ie) {
4752
+ return Ie ? T(U) : U;
4751
4753
  }
4752
4754
  }
4753
4755
  function Q(N, U) {
@@ -4849,7 +4851,7 @@ var Dl = { exports: {} };
4849
4851
  return S in O && !(S in V) && O[S] in V && (S = O[S]), V[S];
4850
4852
  }
4851
4853
  o.exports = l;
4852
- }).call(this, typeof gt < "u" ? gt : typeof self < "u" ? self : typeof window < "u" ? window : {});
4854
+ }).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
4853
4855
  }, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
4854
4856
  3: [function(n, o, i) {
4855
4857
  o.exports = function(r, s) {
@@ -4966,7 +4968,7 @@ var Dl = { exports: {} };
4966
4968
  if (C = l[T], C.element === b && C.type === g && C.fn === h)
4967
4969
  return T;
4968
4970
  }
4969
- }).call(this, typeof gt < "u" ? gt : typeof self < "u" ? self : typeof window < "u" ? window : {});
4971
+ }).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
4970
4972
  }, { "./eventmap": 7, "custom-event": 8 }],
4971
4973
  7: [function(n, o, i) {
4972
4974
  (function(a) {
@@ -4974,7 +4976,7 @@ var Dl = { exports: {} };
4974
4976
  for (s in a)
4975
4977
  u.test(s) && r.push(s.slice(2));
4976
4978
  o.exports = r;
4977
- }).call(this, typeof gt < "u" ? gt : typeof self < "u" ? self : typeof window < "u" ? window : {});
4979
+ }).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
4978
4980
  }, {}],
4979
4981
  8: [function(n, o, i) {
4980
4982
  (function(a) {
@@ -5000,7 +5002,7 @@ var Dl = { exports: {} };
5000
5002
  }
5001
5003
  )
5002
5004
  );
5003
- }).call(this, typeof gt < "u" ? gt : typeof self < "u" ? self : typeof window < "u" ? window : {});
5005
+ }).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
5004
5006
  }, {}],
5005
5007
  9: [function(n, o, i) {
5006
5008
  var a = o.exports = {}, r, s;
@@ -5148,7 +5150,7 @@ const No = /* @__PURE__ */ new Map([
5148
5150
  ["appearance", Qt],
5149
5151
  ["column", "columnOption"]
5150
5152
  ]);
5151
- function $l(t, e, n) {
5153
+ function jl(t, e, n) {
5152
5154
  var l;
5153
5155
  const o = n.parentComponentInstance, i = o.schema.type, a = String(((l = o.schema.appearance) == null ? void 0 : l.class) || "").split(" "), r = i === "section" || i === "tab-page", s = a.includes("f-page-content-nav"), u = a.includes("f-page-main"), d = t.getSchemaByType("component");
5154
5156
  d.id = `${e.id}-component`, d.componentType = "data-grid";
@@ -5157,7 +5159,7 @@ function $l(t, e, n) {
5157
5159
  class: p
5158
5160
  }, d.contents = [e], d;
5159
5161
  }
5160
- function jl(t, e, n) {
5162
+ function $l(t, e, n) {
5161
5163
  const o = n.parentComponentInstance, i = String(o.schema.appearance.class || "").split(" "), a = i.includes("f-page-content-nav"), r = i.includes("f-page-main"), s = t.getSchemaByType("section");
5162
5164
  s.id = `${e.id}-section`;
5163
5165
  let u = "";
@@ -5170,8 +5172,8 @@ function Ll(t, e, n) {
5170
5172
  function Ro(t, e, n) {
5171
5173
  const i = n.parentComponentInstance.schema.type, a = i === "section" || i === "tab-page";
5172
5174
  e.appearance = { class: "f-component-grid" };
5173
- const s = (a ? Ll : jl)(t, e, n);
5174
- return $l(t, s, n);
5175
+ const s = (a ? Ll : $l)(t, e, n);
5176
+ return jl(t, s, n);
5175
5177
  }
5176
5178
  const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-design.gitee.io/tree-grid.schema.json", Al = "tree-grid", zl = "A Farris Data Grid Component", Gl = "object", ql = {
5177
5179
  id: {
@@ -5963,8 +5965,8 @@ const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
5963
5965
  required: Ul,
5964
5966
  events: Yl
5965
5967
  };
5966
- `${jt.getLocaleValue("datagrid.loadingMessage")}`;
5967
- const cn = {
5968
+ `${$t.getLocaleValue("datagrid.loadingMessage")}`;
5969
+ const dn = {
5968
5970
  /** 自动勾选子节点 */
5969
5971
  autoCheckChildren: { type: Boolean, default: !1 },
5970
5972
  /** 列集合 */
@@ -6045,7 +6047,7 @@ const cn = {
6045
6047
  default: {
6046
6048
  enable: !0,
6047
6049
  width: 32,
6048
- heading: jt.getLocaleValue("datagrid.lineNumberTitle")
6050
+ heading: $t.getLocaleValue("datagrid.lineNumberTitle")
6049
6051
  }
6050
6052
  },
6051
6053
  /** 行配置 */
@@ -6095,7 +6097,7 @@ const cn = {
6095
6097
  width: { type: Number, default: -1 },
6096
6098
  /** 启用虚拟渲染 */
6097
6099
  virtualized: { type: Boolean, default: !1 }
6098
- }, Xl = It(cn, Po, No, Ro), Jl = ha(), Ql = va(), Do = Object.assign({}, cn, { componentId: { type: String, default: "" } }), Zl = It(Do, Po, No, Ro), Kl = ga();
6100
+ }, Xl = Nt(dn, Po, No, Ro), Jl = ha(), Ql = va(), Do = Object.assign({}, dn, { componentId: { type: String, default: "" } }), Zl = Nt(Do, Po, No, Ro), Kl = ga();
6099
6101
  function es(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f, F, _) {
6100
6102
  const {
6101
6103
  calculateCellPositionInRow: y
@@ -6112,7 +6114,7 @@ function es(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f, F, _) {
6112
6114
  } = fo(t, e, w, _, s, u, d, p, l, c, v), C = [T];
6113
6115
  function k(B, L) {
6114
6116
  const X = y(B);
6115
- return _.value.filter((j) => j.visible !== !1).map((j, D) => C[j.type](j, X, L, D));
6117
+ return _.value.filter(($) => $.visible !== !1).map(($, D) => C[$.type]($, X, L, D));
6116
6118
  }
6117
6119
  function S() {
6118
6120
  return R("div", {
@@ -6149,47 +6151,47 @@ function es(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f, F, _) {
6149
6151
  renderDataArea: O
6150
6152
  };
6151
6153
  }
6152
- const qt = /* @__PURE__ */ Ze({
6154
+ const qt = /* @__PURE__ */ Ke({
6153
6155
  name: "FTreeGrid",
6154
- props: cn,
6156
+ props: dn,
6155
6157
  emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "unSelectItem", "selectItem"],
6156
6158
  setup(t, e) {
6157
- var Mt, Bt;
6158
- const o = ((Mt = t.rowOption) == null ? void 0 : Mt.height) || 28, i = E(20), a = E(t.columns), r = En(t), {
6159
+ var It, Mt;
6160
+ const o = ((It = t.rowOption) == null ? void 0 : It.height) || 28, i = E(20), a = E(t.columns), r = kn(t), {
6159
6161
  idField: s
6160
- } = r, u = E(), d = E(), p = E(), l = E(), c = E(), v = E([]), f = E(!1), F = E(((Bt = t.rowOption) == null ? void 0 : Bt.wrapContent) || !1), _ = pr(t, r), y = kn(), w = On(t), {
6162
+ } = r, u = E(), d = E(), p = E(), l = E(), c = E(), v = E([]), f = E(!1), F = E(((Mt = t.rowOption) == null ? void 0 : Mt.wrapContent) || !1), _ = vr(t, r), y = On(), w = In(t), {
6161
6163
  collapseField: m
6162
6164
  } = w, {
6163
6165
  showLoading: x,
6164
6166
  renderLoading: b
6165
- } = mr(t, u), g = In(t, /* @__PURE__ */ new Map(), y, w, r), {
6167
+ } = hr(t, u), g = Mn(t, /* @__PURE__ */ new Map(), y, w, r), {
6166
6168
  dataView: h
6167
- } = g, T = Mn(t, g, r, v, e), C = vr(t, v, g, r, T, e), k = z(() => t.disabled), S = z(() => t.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), {
6169
+ } = g, T = Bn(t, g, r, v, e), C = gr(t, v, g, r, T, e), k = z(() => t.disabled), S = z(() => t.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), {
6168
6170
  containerStyleObject: M
6169
- } = Bn(t), V = hr(t), {
6171
+ } = Vn(t), V = yr(t), {
6170
6172
  applyCommands: O
6171
6173
  } = V;
6172
6174
  O(a);
6173
- const B = Vn(t), L = gr(t), {
6175
+ const B = Nn(t), L = br(t), {
6174
6176
  applyColumnSorter: X,
6175
- columnContext: j,
6177
+ columnContext: $,
6176
6178
  updateColumnRenderContext: D
6177
6179
  } = B;
6178
6180
  X(g, L);
6179
- const P = Nn(t, j), I = Rn(t, e, T, r), $ = Pn(t, e, r, I, v), A = Dn(t), J = $n(t, $, A), q = jn(t, g, $, w, r, A, J), le = Ln(t, a, g, S, 0, q), {
6181
+ const P = Rn(t, $), I = Pn(t, e, T, r), j = Dn(t, e, r, I, v), A = jn(t), J = $n(t, j, A), q = Ln(t, g, j, w, r, A, J), ae = Hn(t, a, g, S, 0, q), {
6180
6182
  getVisualData: G
6181
- } = le, H = Hn(t, j), W = Wn(t, T), {
6183
+ } = ae, H = Wn(t, $), W = An(t, T), {
6182
6184
  sidebarWidth: Z
6183
- } = W, fe = An(t, g, v, j, le, S, 0, Z), {
6184
- onWheel: xe,
6185
+ } = W, de = zn(t, g, v, $, ae, S, 0, Z), {
6186
+ onWheel: Te,
6185
6187
  dataGridWidth: be,
6186
6188
  viewPortHeight: ye,
6187
- viewPortWidth: Oe,
6189
+ viewPortWidth: ke,
6188
6190
  resetScroll: Y,
6189
6191
  updateVisibleRowsOnLatestVisibleScope: oe
6190
- } = fe, ce = zn(t, j, d, Oe, P), {
6191
- calculateColumnsSize: we
6192
- } = ce, _e = yr(), Le = br(d, c, g, _e, fe), ze = Cr(t, e, B, g, P, _, fe), ne = z(() => ({
6192
+ } = de, ue = Gn(t, $, d, ke, P), {
6193
+ calculateColumnsSize: _e
6194
+ } = ue, Se = Cr(), He = wr(d, c, g, Se, de), qe = _r(t, e, B, g, P, _, de), ne = z(() => ({
6193
6195
  "fv-grid": !0,
6194
6196
  "fv-grid-bordered": t.showBorder,
6195
6197
  "fv-grid-horizontal-bordered": t.showHorizontalLines,
@@ -6199,85 +6201,85 @@ const qt = /* @__PURE__ */ Ze({
6199
6201
  "fv-grid-content-hover": f.value,
6200
6202
  "fv-grid-wrap-content": F.value
6201
6203
  })), {
6202
- renderDataArea: Ne
6203
- } = es(t, e, p, l, c, H, B, g, $, w, I, T, C, fe, le, A, v), {
6204
- renderGridHeader: je,
6205
- renderGridColumnResizeOverlay: Re,
6204
+ renderDataArea: Ve
6205
+ } = es(t, e, p, l, c, H, B, g, j, w, I, T, C, de, ae, A, v), {
6206
+ renderGridHeader: Le,
6207
+ renderGridColumnResizeOverlay: Ne,
6206
6208
  shouldShowHeader: K
6207
- } = wr(t, e, d, l, c, B, g, ze, Le, y, _e, ce, P, T, W, L, fe, Oe, v), {
6208
- renderDataGridSidebar: ae
6209
- } = Gn(t, I, T, W, fe), {
6210
- renderDisableMask: Fe
6211
- } = _r(), {
6212
- renderHorizontalScrollbar: Ee
6213
- } = qn(t, d, fe), {
6214
- renderVerticalScrollbar: Ge
6215
- } = Un(t, d, fe);
6216
- function rt() {
6217
- var ge, Ie, Ke;
6209
+ } = Sr(t, e, d, l, c, B, g, qe, He, y, Se, ue, P, T, W, L, de, ke, v), {
6210
+ renderDataGridSidebar: we
6211
+ } = qn(t, I, T, W, de), {
6212
+ renderDisableMask: De
6213
+ } = xr(), {
6214
+ renderHorizontalScrollbar: me
6215
+ } = Un(t, d, de), {
6216
+ renderVerticalScrollbar: Re
6217
+ } = Yn(t, d, de);
6218
+ function We() {
6219
+ var ge, Oe, tt;
6218
6220
  if (d.value && d.value.clientHeight > 0 && ((ge = d.value) == null ? void 0 : ge.clientWidth) > 0) {
6219
- const et = Math.ceil(d.value.clientHeight / o);
6220
- et > i.value && (i.value = et, oe()), ye.value = ((Ie = p.value) == null ? void 0 : Ie.clientHeight) || 0, be.value = ((Ke = d.value) == null ? void 0 : Ke.clientWidth) || 0, we();
6221
+ const nt = Math.ceil(d.value.clientHeight / o);
6222
+ nt > i.value && (i.value = nt, oe()), ye.value = ((Oe = p.value) == null ? void 0 : Oe.clientHeight) || 0, be.value = ((tt = d.value) == null ? void 0 : tt.clientWidth) || 0, _e();
6221
6223
  }
6222
6224
  }
6223
6225
  Ot(() => {
6224
- d.value && (i.value = Math.max(Math.ceil(d.value.clientHeight / o), i.value), v.value = G(0, S.value + 0 - 1), ln(d.value, rt), we(), $t(() => {
6225
- d.value && (be.value = d.value.clientWidth), p.value && (Oe.value = p.value.clientWidth, ye.value = p.value.clientHeight);
6226
+ d.value && (i.value = Math.max(Math.ceil(d.value.clientHeight / o), i.value), v.value = G(0, S.value + 0 - 1), sn(d.value, We), _e(), jt(() => {
6227
+ d.value && (be.value = d.value.clientWidth), p.value && (ke.value = p.value.clientWidth, ye.value = p.value.clientHeight);
6226
6228
  })), x.value && b();
6227
6229
  }), Xt(() => {
6228
- }), Ve(Oe, () => {
6229
- d.value && we();
6230
+ }), Be(ke, () => {
6231
+ d.value && _e();
6230
6232
  });
6231
- function Ct(ge) {
6233
+ function et(ge) {
6232
6234
  g.collapseTo(ge), g.reOrderVisibleIndex(), Y();
6233
6235
  }
6234
- function vt(ge) {
6236
+ function at(ge) {
6235
6237
  g.expandTo(ge), g.reOrderVisibleIndex(), Y();
6236
6238
  }
6237
- function ft() {
6239
+ function mt() {
6238
6240
  const ge = T.getSelectionRow();
6239
6241
  return ge ? ge.dataIndex - 1 : -1;
6240
6242
  }
6241
6243
  function wt() {
6242
- const ge = ft();
6244
+ const ge = mt();
6243
6245
  g.insertNewDataItem(ge), v.value = G(0, S.value + 0 - 1);
6244
6246
  }
6245
- function ht() {
6246
- const ge = ft();
6247
+ function gt() {
6248
+ const ge = mt();
6247
6249
  g.insertNewChildDataItem(ge), v.value = G(0, S.value + 0 - 1);
6248
6250
  }
6249
- function ie(ge, Ie) {
6250
- const Ke = v.value.find((ot) => ot.raw[s.value] === Ie), et = Ke ? Ke.dataIndex - 1 : -1;
6251
- g.insertNewChildDataItems(ge, et);
6251
+ function ie(ge, Oe) {
6252
+ const tt = v.value.find((it) => it.raw[s.value] === Oe), nt = tt ? tt.dataIndex - 1 : -1;
6253
+ g.insertNewChildDataItems(ge, nt);
6252
6254
  }
6253
6255
  function he() {
6254
- const ge = ft(), Ie = C.getNextSelectableHierarchyItemId(ge);
6255
- g.removeHierarchyDataItem(ge), v.value = G(0, S.value + 0 - 1), Ie && T.selectItemById(Ie);
6256
+ const ge = mt(), Oe = C.getNextSelectableHierarchyItemId(ge);
6257
+ g.removeHierarchyDataItem(ge), v.value = G(0, S.value + 0 - 1), Oe && T.selectItemById(Oe);
6256
6258
  }
6257
6259
  function Ce(ge) {
6258
- $.onEditingRow(ge);
6260
+ j.onEditingRow(ge);
6259
6261
  }
6260
6262
  function $e(ge) {
6261
- $.acceptEditingRow(ge);
6263
+ j.acceptEditingRow(ge);
6262
6264
  }
6263
- function He(ge) {
6264
- $.cancelEditingRow(ge);
6265
+ function Ae(ge) {
6266
+ j.cancelEditingRow(ge);
6265
6267
  }
6266
- function Ye(ge) {
6267
- ge && (a.value = ge, O(a), D(a.value), X(g, L), we());
6268
+ function Xe(ge) {
6269
+ ge && (a.value = ge, O(a), D(a.value), X(g, L), _e());
6268
6270
  }
6269
- Ve(() => t.columns, (ge) => {
6270
- Ye(ge);
6271
+ Be(() => t.columns, (ge) => {
6272
+ Xe(ge);
6271
6273
  });
6272
- function nt(ge, Ie) {
6273
- ge && (g.load(ge), g.reOrderVisibleIndex(), Ie != null && Ie.keepScrollPosition ? fe.scrollTo(fe.offsetY.value) : Y());
6274
+ function rt(ge, Oe) {
6275
+ ge && (g.load(ge), g.reOrderVisibleIndex(), Oe != null && Oe.keepScrollPosition ? de.scrollTo(de.offsetY.value) : Y());
6274
6276
  }
6275
- function pt(ge) {
6277
+ function vt(ge) {
6276
6278
  T.selectItemById(ge);
6277
6279
  }
6278
- function it(ge) {
6279
- const Ie = v.value.find((Ke) => Ke.raw[r.idField.value] === ge);
6280
- Ie && I.clickRowItem(Ie);
6280
+ function lt(ge) {
6281
+ const Oe = v.value.find((tt) => tt.raw[r.idField.value] === ge);
6282
+ Oe && I.clickRowItem(Oe);
6281
6283
  }
6282
6284
  function Q(ge) {
6283
6285
  I.activeRowById(ge);
@@ -6291,104 +6293,104 @@ const qt = /* @__PURE__ */ Ze({
6291
6293
  function te() {
6292
6294
  T.clearSelection();
6293
6295
  }
6294
- const me = z(() => !v.value || !v.value.length), {
6295
- renderEmpty: Se
6296
- } = Yn(e);
6297
- function Te() {
6296
+ const pe = z(() => !v.value || !v.value.length), {
6297
+ renderEmpty: xe
6298
+ } = Xn(e);
6299
+ function Fe() {
6298
6300
  return T.getSelectionRow();
6299
6301
  }
6300
- function ke(ge) {
6302
+ function Ee(ge) {
6301
6303
  T.unSelectItemByIds(ge);
6302
6304
  }
6303
6305
  function Pe() {
6304
6306
  return T.currentSelectedDataId.value;
6305
6307
  }
6306
- function Be(ge, Ie, Ke) {
6307
- const et = h.value.find((ot) => ot[s.value] === ge);
6308
- if (et) {
6309
- if (Object.keys(et).forEach((qe) => {
6310
- Object.prototype.hasOwnProperty.call(Ie, qe) && (et[qe] = Ie[qe]);
6311
- }), Ke) {
6308
+ function Me(ge, Oe, tt) {
6309
+ const nt = h.value.find((it) => it[s.value] === ge);
6310
+ if (nt) {
6311
+ if (Object.keys(nt).forEach((Ue) => {
6312
+ Object.prototype.hasOwnProperty.call(Oe, Ue) && (nt[Ue] = Oe[Ue]);
6313
+ }), tt) {
6312
6314
  const {
6313
- collapseField: qe,
6315
+ collapseField: Ue,
6314
6316
  disabledField: _t,
6315
6317
  checkedField: St,
6316
6318
  visibleField: xt
6317
- } = Ke;
6318
- qe && !lt(Ie[qe]) && (et.__fv_collapse__ = Ie[qe]), St && !lt(Ie[St]) && (et.__fv_checked__ = Ie[St]), _t && !lt(Ie[_t]) && (et.__fv_disabled__ = Ie[_t]), xt && !lt(Ie[xt]) && (et.__fv_visible__ = Ie[xt]);
6319
+ } = tt;
6320
+ Ue && !ut(Oe[Ue]) && (nt.__fv_collapse__ = Oe[Ue]), St && !ut(Oe[St]) && (nt.__fv_checked__ = Oe[St]), _t && !ut(Oe[_t]) && (nt.__fv_disabled__ = Oe[_t]), xt && !ut(Oe[xt]) && (nt.__fv_visible__ = Oe[xt]);
6319
6321
  }
6320
- const ot = v.value.find((qe) => qe.raw[s.value] === ge), fn = v.value.findIndex((qe) => qe.raw[s.value] === ge);
6321
- if (ot) {
6322
- if (ot.raw = et, Object.keys(ot.data).forEach((qe) => {
6323
- ot.data[qe].updateData(et);
6324
- }), Ke) {
6322
+ const it = v.value.find((Ue) => Ue.raw[s.value] === ge), pn = v.value.findIndex((Ue) => Ue.raw[s.value] === ge);
6323
+ if (it) {
6324
+ if (it.raw = nt, Object.keys(it.data).forEach((Ue) => {
6325
+ it.data[Ue].updateData(nt);
6326
+ }), tt) {
6325
6327
  const {
6326
- collapseField: qe,
6328
+ collapseField: Ue,
6327
6329
  disabledField: _t,
6328
6330
  checkedField: St,
6329
6331
  visibleField: xt
6330
- } = Ke;
6331
- qe && !lt(Ie[qe]) && (ot.collapse = Ie[qe]), St && !lt(Ie[St]) && (ot.checked = Ie[St]), _t && !lt(Ie[_t]) && (ot.disabled = Ie[_t]), xt && !lt(Ie[xt]) && (ot.visible = Ie[xt]);
6332
+ } = tt;
6333
+ Ue && !ut(Oe[Ue]) && (it.collapse = Oe[Ue]), St && !ut(Oe[St]) && (it.checked = Oe[St]), _t && !ut(Oe[_t]) && (it.disabled = Oe[_t]), xt && !ut(Oe[xt]) && (it.visible = Oe[xt]);
6332
6334
  }
6333
- v.value = [...v.value.slice(0, fn), ot, ...v.value.slice(fn + 1)];
6335
+ v.value = [...v.value.slice(0, pn), it, ...v.value.slice(pn + 1)];
6334
6336
  }
6335
6337
  }
6336
6338
  }
6337
- function De(ge) {
6339
+ function je(ge) {
6338
6340
  return Object.prototype.hasOwnProperty.call(ge, "raw") ? g.hasRealChildren(ge.raw) : g.hasRealChildren(ge);
6339
6341
  }
6340
- function Me(ge) {
6341
- const Ie = g.dataView.value.find((Ke) => Ke[s.value] === ge);
6342
- return Ie ? Ie[m.value] : "";
6342
+ function Ie(ge) {
6343
+ const Oe = g.dataView.value.find((tt) => tt[s.value] === ge);
6344
+ return Oe ? Oe[m.value] : "";
6343
6345
  }
6344
- function We() {
6346
+ function ze() {
6345
6347
  return m.value;
6346
6348
  }
6347
6349
  e.expose({
6348
6350
  activeRowById: Q,
6349
6351
  addNewDataItem: wt,
6350
- addNewChildDataItem: ht,
6352
+ addNewChildDataItem: gt,
6351
6353
  addChildrenToNode: ie,
6352
- collapseTo: Ct,
6353
- expandTo: vt,
6354
+ collapseTo: et,
6355
+ expandTo: at,
6354
6356
  removeDataItem: he,
6355
6357
  editDataItem: Ce,
6356
6358
  acceptDataItem: $e,
6357
- cancelDataItem: He,
6358
- updateColumns: Ye,
6359
- updateDataSource: nt,
6360
- selectItemById: pt,
6359
+ cancelDataItem: Ae,
6360
+ updateColumns: Xe,
6361
+ updateDataSource: rt,
6362
+ selectItemById: vt,
6361
6363
  selectItemByIds: N,
6362
6364
  getSelectedItems: U,
6363
6365
  clearSelection: te,
6364
- getSelectionRow: Te,
6365
- clickRowItemById: it,
6366
- unSelectItemByIds: ke,
6366
+ getSelectionRow: Fe,
6367
+ clickRowItemById: lt,
6368
+ unSelectItemByIds: Ee,
6367
6369
  getCurrentRowId: Pe,
6368
- reassignRowData: Be,
6369
- hasChildren: De,
6370
- getCollapseField: We,
6371
- getCollapseStatusById: Me
6370
+ reassignRowData: Me,
6371
+ hasChildren: je,
6372
+ getCollapseField: ze,
6373
+ getCollapseStatusById: Ie
6372
6374
  });
6373
- const Xe = z(() => {
6375
+ const Je = z(() => {
6374
6376
  const ge = {};
6375
- return fe.shouldShowHorizontalScrollbar.value && (ge.paddingBottom = "10px"), fe.shouldShowVirticalScrollbar.value && (ge.paddingRight = "10px"), ge;
6376
- }), Ue = z(() => ({
6377
+ return de.shouldShowHorizontalScrollbar.value && (ge.paddingBottom = "10px"), de.shouldShowVirticalScrollbar.value && (ge.paddingRight = "10px"), ge;
6378
+ }), Ye = z(() => ({
6377
6379
  ...M.value,
6378
6380
  borderRadius: "5px"
6379
6381
  }));
6380
6382
  return () => R("div", {
6381
6383
  ref: u,
6382
6384
  class: ne.value,
6383
- style: Ue.value,
6384
- onWheel: xe
6385
- }, [d.value && K.value && je(), R("div", {
6385
+ style: Ye.value,
6386
+ onWheel: Te
6387
+ }, [d.value && K.value && Le(), R("div", {
6386
6388
  ref: d,
6387
6389
  class: ve.value,
6388
6390
  onMouseover: () => f.value = !0,
6389
6391
  onMouseleave: () => f.value = !1,
6390
- style: Xe.value
6391
- }, [d.value && ae(v), d.value && Ne(), d.value && me.value && Se(), d.value && Ee(), d.value && Ge()]), Re(), k.value && Fe()]);
6392
+ style: Je.value
6393
+ }, [d.value && we(v), d.value && Ve(), d.value && pe.value && xe(), d.value && me(), d.value && Re()]), Ne(), k.value && De()]);
6392
6394
  }
6393
6395
  }), ts = {
6394
6396
  id: { type: String, default: "" },
@@ -6407,7 +6409,7 @@ const qt = /* @__PURE__ */ Ze({
6407
6409
  ignore: { type: Boolean, default: !1 }
6408
6410
  }, ns = {
6409
6411
  id: { type: String }
6410
- }, os = /* @__PURE__ */ Ze({
6412
+ }, os = /* @__PURE__ */ Ke({
6411
6413
  name: "FDesignerPlaceholder",
6412
6414
  props: ns,
6413
6415
  emits: [],
@@ -6439,14 +6441,14 @@ const qt = /* @__PURE__ */ Ze({
6439
6441
  }
6440
6442
  });
6441
6443
  function rs(t) {
6442
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Sn(t);
6444
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !xn(t);
6443
6445
  }
6444
- const rn = /* @__PURE__ */ Ze({
6446
+ const rn = /* @__PURE__ */ Ke({
6445
6447
  name: "FDesignerItem",
6446
6448
  props: ts,
6447
6449
  emits: ["selectionChange", "dragEnd"],
6448
6450
  setup(t, e) {
6449
- const n = E(`${t.modelValue.id}-component`), o = E(t.canMove), i = E(t.canDelete), a = E(!1), r = E(t.modelValue), s = E(t.componentId || ""), u = E(""), d = E(""), p = E(t.customClass), l = E(), c = yt("canvas-dragula"), v = E(), f = yt("design-item-context");
6451
+ const n = E(`${t.modelValue.id}-component`), o = E(t.canMove), i = E(t.canDelete), a = E(!1), r = E(t.modelValue), s = E(t.componentId || ""), u = E(""), d = E(""), p = E(t.customClass), l = E(), c = bt("canvas-dragula"), v = E(), f = bt("design-item-context");
6450
6452
  function F(P) {
6451
6453
  P && Object.assign(r.value, P);
6452
6454
  }
@@ -6459,10 +6461,10 @@ const rn = /* @__PURE__ */ Ze({
6459
6461
  updateContextSchema: F
6460
6462
  };
6461
6463
  ir("design-item-context", _);
6462
- const y = yt("useFormSchema"), w = yt("designer-host-service"), m = yt("external-container-id"), x = z(() => {
6464
+ const y = bt("useFormSchema"), w = bt("designer-host-service"), m = bt("external-container-id"), x = z(() => {
6463
6465
  var A;
6464
6466
  const P = t.modelValue.appearance && t.modelValue.appearance.class || "", I = ((A = v.value) == null ? void 0 : A.getCustomButtons) && v.value.getCustomButtons();
6465
- let $ = {
6467
+ let j = {
6466
6468
  "farris-component": !0,
6467
6469
  // 受position-relative影响,整个容器的高度不能被撑起
6468
6470
  "flex-fill": r.value.id === "root-component",
@@ -6473,34 +6475,34 @@ const rn = /* @__PURE__ */ Ze({
6473
6475
  dgComponentSelected: l.value && l.value.classList.contains("dgComponentSelected"),
6474
6476
  dgComponentFocused: l.value && l.value.classList.contains("dgComponentFocused")
6475
6477
  };
6476
- return $[`farris-component-${r.value.type}`] = !0, $ = Kt($, P), $ = Kt($, d.value), $ = Kt($, p.value), $;
6478
+ return j[`farris-component-${r.value.type}`] = !0, j = Kt(j, P), j = Kt(j, d.value), j = Kt(j, p.value), j;
6477
6479
  }), b = z(() => {
6478
6480
  const P = {}, I = t.modelValue.appearance && t.modelValue.appearance.style || "";
6479
- return I && I.split(";").reduce(($, A) => {
6481
+ return I && I.split(";").reduce((j, A) => {
6480
6482
  const [J, q] = A.split(":");
6481
- return $[J] = q, $;
6482
- }, P), u.value && u.value.split(";").reduce(($, A) => {
6483
+ return j[J] = q, j;
6484
+ }, P), u.value && u.value.split(";").reduce((j, A) => {
6483
6485
  const [J, q] = A.split(":");
6484
- return J && ($[J] = q), $;
6486
+ return J && (j[J] = q), j;
6485
6487
  }, P), P;
6486
6488
  });
6487
6489
  function g(P, I) {
6488
- var J, q, le;
6490
+ var J, q, ae;
6489
6491
  if (P && (P.preventDefault(), P.stopPropagation()), (J = w == null ? void 0 : w.designerContext) != null && J.checkCanDeleteControl && !w.designerContext.checkCanDeleteControl(I))
6490
6492
  return;
6491
6493
  if (v.value.triggerBelongedComponentToDeleteWhenDeleted) {
6492
6494
  const G = v.value.getBelongedComponentInstance(v);
6493
6495
  if (G && G.parent) {
6494
6496
  const H = E(G == null ? void 0 : G.parent), W = H.value.contents.findIndex((Z) => Z.id === G.schema.id);
6495
- (le = (q = H.value) == null ? void 0 : q.contents) == null || le.splice(W, 1), At.value++;
6497
+ (ae = (q = H.value) == null ? void 0 : q.contents) == null || ae.splice(W, 1), At.value++;
6496
6498
  }
6497
6499
  return;
6498
6500
  }
6499
6501
  v.value.onRemoveComponent(w);
6500
- let $ = f, A = (G) => G.id === I.id;
6501
- if (I.type === "component" && ($ = f == null ? void 0 : f.parent, A = (G) => G.component === I.id), $ && $.schema.contents) {
6502
- const G = $.schema.contents.findIndex(A);
6503
- $.schema.contents.splice(G, 1), At.value++, e.emit("selectionChange");
6502
+ let j = f, A = (G) => G.id === I.id;
6503
+ if (I.type === "component" && (j = f == null ? void 0 : f.parent, A = (G) => G.component === I.id), j && j.schema.contents) {
6504
+ const G = j.schema.contents.findIndex(A);
6505
+ j.schema.contents.splice(G, 1), At.value++, e.emit("selectionChange");
6504
6506
  }
6505
6507
  }
6506
6508
  function h(P) {
@@ -6530,14 +6532,14 @@ const rn = /* @__PURE__ */ Ze({
6530
6532
  function C() {
6531
6533
  var I;
6532
6534
  const P = ((I = v.value) == null ? void 0 : I.getCustomButtons) && v.value.getCustomButtons();
6533
- return P && !!P.length && P.map(($) => R("div", {
6535
+ return P && !!P.length && P.map((j) => R("div", {
6534
6536
  role: "button",
6535
- class: `btn component-settings-button ${$.class || ""}`,
6536
- title: $.title,
6537
- ref: $.id,
6538
- onClick: (A) => $.onClick && $.onClick(A)
6537
+ class: `btn component-settings-button ${j.class || ""}`,
6538
+ title: j.title,
6539
+ ref: j.id,
6540
+ onClick: (A) => j.onClick && j.onClick(A)
6539
6541
  }, [R("i", {
6540
- class: $.icon
6542
+ class: j.icon
6541
6543
  }, null)]));
6542
6544
  }
6543
6545
  function k(P) {
@@ -6546,17 +6548,17 @@ const rn = /* @__PURE__ */ Ze({
6546
6548
  "data-noattach": "true"
6547
6549
  }, [R("div", null, [h(P), T(), C()])]);
6548
6550
  }
6549
- function S(P, I, $, A) {
6550
- e.emit("selectionChange", P, I, $, A);
6551
+ function S(P, I, j, A) {
6552
+ e.emit("selectionChange", P, I, j, A);
6551
6553
  }
6552
6554
  function M() {
6553
6555
  e.emit("dragEnd");
6554
6556
  }
6555
6557
  function V(P) {
6556
6558
  let I;
6557
- const $ = P.type, A = Rl[$], J = Pl[$], q = J ? J(P) : {};
6559
+ const j = P.type, A = Rl[j], J = Pl[j], q = J ? J(P) : {};
6558
6560
  q.customClass = t.ignore ? q.customClass : "", q.componentId = s.value, q.id = P.id;
6559
- const le = P.contents && P.contents.length === 0;
6561
+ const ae = P.contents && P.contents.length === 0;
6560
6562
  return P.contents && !!P.contents.length && A ? R(A, Et({
6561
6563
  ref: v
6562
6564
  }, q), rs(I = P.contents.map((H) => R(rn, {
@@ -6568,7 +6570,7 @@ const rn = /* @__PURE__ */ Ze({
6568
6570
  onDragEnd: M
6569
6571
  }, null))) ? I : {
6570
6572
  default: () => [I]
6571
- }) : A ? le ? R(A, Et({
6573
+ }) : A ? ae ? R(A, Et({
6572
6574
  ref: v
6573
6575
  }, q), {
6574
6576
  default: () => [R(os, null, null)]
@@ -6595,7 +6597,7 @@ const rn = /* @__PURE__ */ Ze({
6595
6597
  }, null);
6596
6598
  }
6597
6599
  }
6598
- Ve([() => t.modelValue, () => t.componentId], ([P, I]) => {
6600
+ Be([() => t.modelValue, () => t.componentId], ([P, I]) => {
6599
6601
  r.value = P, n.value = `${P.id}-component`, I && (s.value = I), ar(l);
6600
6602
  }, {
6601
6603
  deep: !0
@@ -6609,12 +6611,12 @@ const rn = /* @__PURE__ */ Ze({
6609
6611
  const I = P == null ? void 0 : P.target;
6610
6612
  L(I), xl(I);
6611
6613
  }
6612
- function j() {
6614
+ function $() {
6613
6615
  var P, I;
6614
6616
  if (l.value) {
6615
6617
  (I = (P = r.value) == null ? void 0 : P.contents) != null && I.length && l.value.addEventListener("scroll", X);
6616
- const $ = l.value.querySelector(".drag-container");
6617
- $ && $.addEventListener("scroll", X);
6618
+ const j = l.value.querySelector(".drag-container");
6619
+ j && j.addEventListener("scroll", X);
6618
6620
  }
6619
6621
  }
6620
6622
  Ot(() => {
@@ -6622,17 +6624,17 @@ const rn = /* @__PURE__ */ Ze({
6622
6624
  const P = l.value.querySelector(`[data-dragref='${v.value.schema.id}-container']`);
6623
6625
  c && P && c.attachComponents(P, r.value), a.value = v.value.canNested !== void 0 ? v.value.canNested : a.value, i.value = v.value.canDelete !== void 0 ? v.value.canDelete : i.value, o.value = v.value.canMove !== void 0 ? v.value.canMove : o.value, u.value = v.value.styles || "", d.value = v.value.designerClass || "", l.value && (l.value.componentInstance = v, l.value.designItemContext = _), v.value.belongedComponentId = s.value, v.value.setComponentBasicInfoMap(w);
6624
6626
  }
6625
- j(), At.value++;
6626
- }), Fn(() => {
6627
+ $(), At.value++;
6628
+ }), En(() => {
6627
6629
  l.value && l.value.removeEventListener("scroll", X);
6628
6630
  });
6629
6631
  function D(P) {
6630
6632
  P && (P.preventDefault(), P.stopPropagation());
6631
6633
  let I = _.designerItemElementRef;
6632
- const $ = l.value;
6633
- if ($) {
6634
+ const j = l.value;
6635
+ if (j) {
6634
6636
  const A = document.getElementsByClassName("dgComponentFocused");
6635
- A && A.length === 1 && A[0] === l.value || (Array.from(A).forEach((q) => q.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((q) => q.classList.remove("dgComponentSelected")), $.classList.add("dgComponentFocused"), e.emit("selectionChange", r.value.type, r.value, s.value, v.value), v.value.getDraggableDesignItemElement && (I = v.value.getDraggableDesignItemElement(_), I && I.value && I.value.classList.add("dgComponentSelected")));
6637
+ A && A.length === 1 && A[0] === l.value || (Array.from(A).forEach((q) => q.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((q) => q.classList.remove("dgComponentSelected")), j.classList.add("dgComponentFocused"), e.emit("selectionChange", r.value.type, r.value, s.value, v.value), v.value.getDraggableDesignItemElement && (I = v.value.getDraggableDesignItemElement(_), I && I.value && I.value.classList.add("dgComponentSelected")));
6636
6638
  }
6637
6639
  Vo(I == null ? void 0 : I.value);
6638
6640
  }
@@ -7070,9 +7072,9 @@ function ss(t, e, n, o, i) {
7070
7072
  if (O && O(h, V), h.value.primaryColumnsWidth + k <= C)
7071
7073
  return h.value.primaryColumns = [...S, ...M], h.value.primaryColumnsWidth += k, h.value.rightColumns = [], h.value.rightColumnsWidth = 0, !0;
7072
7074
  const B = /* @__PURE__ */ new Map();
7073
- return B.set("primary", []), B.set("right", []), h.value.primaryColumns.reduce((X, j) => {
7075
+ return B.set("primary", []), B.set("right", []), h.value.primaryColumns.reduce((X, $) => {
7074
7076
  var D, P;
7075
- return j.fixed === "right" ? (D = X.get("right")) == null || D.push(j) : (P = X.get("primary")) == null || P.push(j), X;
7077
+ return $.fixed === "right" ? (D = X.get("right")) == null || D.push($) : (P = X.get("primary")) == null || P.push($), X;
7076
7078
  }, B), (L = B.get("right")) != null && L.length && (h.value.primaryColumns = [...B.get("primary") || []], h.value.rightColumns = [...B.get("right") || []]), h.value.primaryColumnsWidth = 0, h.value.rightColumnsWidth = 0, !1;
7077
7079
  }
7078
7080
  function g() {
@@ -7095,12 +7097,12 @@ function ss(t, e, n, o, i) {
7095
7097
  m(e), e.value = Object.assign({}, e.value);
7096
7098
  }
7097
7099
  }
7098
- return Ve(() => {
7100
+ return Be(() => {
7099
7101
  var h;
7100
7102
  return (h = t.columnOption) == null ? void 0 : h.fitColumns;
7101
7103
  }, (h, T) => {
7102
7104
  h !== T && h && g();
7103
- }), Ve(c, (h, T) => {
7105
+ }), Be(c, (h, T) => {
7104
7106
  h !== T && l.value && g();
7105
7107
  }), { calculateColumnHeaders: m, calculateColumnsSize: g, calculateColumnsWidth: x };
7106
7108
  }
@@ -7240,13 +7242,13 @@ function ds(t, e, n, o, i, a, r, s) {
7240
7242
  }
7241
7243
  return { getVisualData: f, maxVisibleRowIndex: u, minVisibleRowIndex: d, toggleGroupRow: F };
7242
7244
  }
7243
- const fs = /* @__PURE__ */ Ze({
7245
+ const fs = /* @__PURE__ */ Ke({
7244
7246
  name: "FTreeGridDesign",
7245
7247
  props: Do,
7246
7248
  emits: [],
7247
7249
  setup(t, e) {
7248
- var ce, we;
7249
- const n = E(), o = 0, i = ((ce = t.rowOption) == null ? void 0 : ce.height) || 28, a = E(20), r = E(t.columns), s = Qo(t), u = E(), d = E(), p = E([]), l = E(!1), c = E(((we = t.rowOption) == null ? void 0 : we.wrapContent) || !1), v = yt("designer-host-service"), f = yt("design-item-context"), F = ls(f, v), _ = Bo(n, f, F);
7250
+ var ue, _e;
7251
+ const n = E(), o = 0, i = ((ue = t.rowOption) == null ? void 0 : ue.height) || 28, a = E(20), r = E(t.columns), s = Qo(t), u = E(), d = E(), p = E([]), l = E(!1), c = E(((_e = t.rowOption) == null ? void 0 : _e.wrapContent) || !1), v = bt("designer-host-service"), f = bt("design-item-context"), F = ls(f, v), _ = Bo(n, f, F);
7250
7252
  _.value.designerClass = "f-utils-fill-flex-column";
7251
7253
  const y = Ao(), w = zo(t), m = ho(t, /* @__PURE__ */ new Map(), y, w, s), x = Ko(t, m, s, p, e), b = z(() => m.dataView.value.length), {
7252
7254
  containerStyleObject: g
@@ -7258,21 +7260,21 @@ const fs = /* @__PURE__ */ Ze({
7258
7260
  applyColumnSorter: k,
7259
7261
  columnContext: S,
7260
7262
  updateColumnRenderContext: M
7261
- } = C, V = qu(), O = Wa(t, S), B = Zo(t, e, x, s), L = Jo(t, e, s, B), X = Uo(t), j = Yo(t, L, X), D = Xo(t, m, L, w, s, X, j), P = ds(t, r, m, b, o, D), {
7263
+ } = C, V = qu(), O = Wa(t, S), B = Zo(t, e, x, s), L = Jo(t, e, s, B), X = Uo(t), $ = Yo(t, L, X), D = Xo(t, m, L, w, s, X, $), P = ds(t, r, m, b, o, D), {
7262
7264
  getVisualData: I
7263
- } = P, $ = Hu(t, x), {
7265
+ } = P, j = Hu(t, x), {
7264
7266
  sidebarWidth: A
7265
- } = $;
7267
+ } = j;
7266
7268
  p.value = I(0, b.value + o - 1);
7267
7269
  const J = qo(t, m, p, S, P, b, o, A), {
7268
7270
  onWheel: q,
7269
- dataGridWidth: le,
7271
+ dataGridWidth: ae,
7270
7272
  viewPortHeight: G,
7271
7273
  viewPortWidth: H,
7272
7274
  updateVisibleRowsOnLatestVisibleScope: W
7273
7275
  } = J, Z = ss(t, S, u, H, O), {
7274
- calculateColumnsSize: fe
7275
- } = Z, xe = z(() => ({
7276
+ calculateColumnsSize: de
7277
+ } = Z, Te = z(() => ({
7276
7278
  "drag-container": !0,
7277
7279
  "fv-grid": !0,
7278
7280
  "fv-grid-bordered": t.showBorder,
@@ -7284,28 +7286,28 @@ const fs = /* @__PURE__ */ Ze({
7284
7286
  })), {
7285
7287
  renderGridHeader: ye
7286
7288
  } = is(f, t, C, J, "tree-grid-column"), {
7287
- renderHorizontalScrollbar: Oe
7289
+ renderHorizontalScrollbar: ke
7288
7290
  } = Da(t, u, J);
7289
7291
  function Y() {
7290
- var Le, ze;
7291
- const _e = Math.ceil(u.value.clientHeight / i);
7292
- _e > a.value && (a.value = _e, W()), G.value = ((Le = d.value) == null ? void 0 : Le.clientHeight) || 0, le.value = ((ze = u.value) == null ? void 0 : ze.clientWidth) || 0, fe();
7292
+ var He, qe;
7293
+ const Se = Math.ceil(u.value.clientHeight / i);
7294
+ Se > a.value && (a.value = Se, W()), G.value = ((He = d.value) == null ? void 0 : He.clientHeight) || 0, ae.value = ((qe = u.value) == null ? void 0 : qe.clientWidth) || 0, de();
7293
7295
  }
7294
7296
  Ot(() => {
7295
- n.value.componentInstance = _, u.value && (a.value = Math.max(Math.ceil(u.value.clientHeight / i), a.value), p.value = I(0, b.value + o - 1), ln(u.value, Y), fe(), $t(() => {
7296
- u.value && (le.value = u.value.clientWidth), d.value && (H.value = d.value.clientWidth, G.value = d.value.clientHeight);
7297
+ n.value.componentInstance = _, u.value && (a.value = Math.max(Math.ceil(u.value.clientHeight / i), a.value), p.value = I(0, b.value + o - 1), sn(u.value, Y), de(), jt(() => {
7298
+ u.value && (ae.value = u.value.clientWidth), d.value && (H.value = d.value.clientWidth, G.value = d.value.clientHeight);
7297
7299
  }));
7298
7300
  });
7299
- function oe(_e) {
7300
- _e && (r.value = _e, T(r), M(r.value), k(m, V), fe());
7301
+ function oe(Se) {
7302
+ Se && (r.value = Se, T(r), M(r.value), k(m, V), de());
7301
7303
  }
7302
- return Ve(() => t.columns, (_e) => {
7303
- oe(_e);
7304
- }), Ve(H, () => {
7305
- u.value && fe();
7304
+ return Be(() => t.columns, (Se) => {
7305
+ oe(Se);
7306
+ }), Be(H, () => {
7307
+ u.value && de();
7306
7308
  }), e.expose(_.value), () => R("div", {
7307
7309
  ref: n,
7308
- class: xe.value,
7310
+ class: Te.value,
7309
7311
  style: g.value,
7310
7312
  onWheel: q,
7311
7313
  dragref: `${f.schema.id}-container`
@@ -7318,7 +7320,7 @@ const fs = /* @__PURE__ */ Ze({
7318
7320
  onMouseleave: () => {
7319
7321
  l.value = !1;
7320
7322
  }
7321
- }, [Oe()])]);
7323
+ }, [ke()])]);
7322
7324
  }
7323
7325
  });
7324
7326
  qt.register = (t, e, n, o) => {
@@ -7327,7 +7329,7 @@ qt.register = (t, e, n, o) => {
7327
7329
  qt.registerDesigner = (t, e, n) => {
7328
7330
  t["tree-grid"] = fs, e["tree-grid"] = Zl;
7329
7331
  };
7330
- Jn(qt);
7332
+ Qn(qt);
7331
7333
  const ps = /* @__PURE__ */ new Map([
7332
7334
  ["appearance", Qt]
7333
7335
  ]);
@@ -7465,7 +7467,7 @@ const vs = "https://json-schema.org/draft/2020-12/schema", hs = "https://farris-
7465
7467
  onClick: { type: Function, default: () => {
7466
7468
  } }
7467
7469
  };
7468
- It(ks, _s, ps, ms, Es);
7470
+ Nt(ks, _s, ps, ms, Es);
7469
7471
  const Os = "https://json-schema.org/draft/2020-12/schema", Is = "https://farris-design.gitee.io/modal.schema.json", Ms = "modal", Bs = "弹窗组件", Vs = "object", Ns = {
7470
7472
  id: {
7471
7473
  description: "组件唯一标识",
@@ -7585,12 +7587,12 @@ const Os = "https://json-schema.org/draft/2020-12/schema", Is = "https://farris-
7585
7587
  properties: Ns,
7586
7588
  required: Rs
7587
7589
  }, Ds = /* @__PURE__ */ new Map([
7588
- ["appearance", Pr]
7590
+ ["appearance", pr]
7589
7591
  ]);
7590
- function $s(t, e, n) {
7592
+ function js(t, e, n) {
7591
7593
  return e;
7592
7594
  }
7593
- function js() {
7595
+ function $s() {
7594
7596
  function t(e, n) {
7595
7597
  const o = {};
7596
7598
  return o.beforeClose = (i) => n.call("beforeClose", [i, e]), o;
@@ -7599,7 +7601,7 @@ function js() {
7599
7601
  resolve: t
7600
7602
  };
7601
7603
  }
7602
- const $o = {
7604
+ const jo = {
7603
7605
  /**
7604
7606
  * 允许点击遮罩关闭对话框
7605
7607
  */
@@ -7679,8 +7681,8 @@ const $o = {
7679
7681
  src: { type: String, default: "" },
7680
7682
  footerHeight: { type: Number, default: 60 },
7681
7683
  host: { type: Object, default: "body" }
7682
- }, Ls = Zn($o, Ps, Ds, $s), Hs = js();
7683
- class Ae {
7684
+ }, Ls = an(jo, Ps, Ds, js), Hs = $s();
7685
+ class Ge {
7684
7686
  constructor(e, n) {
7685
7687
  this.x = e, this.y = n;
7686
7688
  }
@@ -7694,12 +7696,12 @@ class Ae {
7694
7696
  }
7695
7697
  static fromEvent(e, n = null) {
7696
7698
  if (this.isMouseEvent(e))
7697
- return new Ae(e.clientX, e.clientY);
7699
+ return new Ge(e.clientX, e.clientY);
7698
7700
  if (n === null || e.changedTouches.length === 1)
7699
- return new Ae(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
7701
+ return new Ge(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
7700
7702
  for (let o = 0; o < e.changedTouches.length; o++)
7701
7703
  if (e.changedTouches[o].target === n)
7702
- return new Ae(e.changedTouches[o].clientX, e.changedTouches[o].clientY);
7704
+ return new Ge(e.changedTouches[o].clientX, e.changedTouches[o].clientY);
7703
7705
  }
7704
7706
  static isMouseEvent(e) {
7705
7707
  return Object.prototype.toString.apply(e).indexOf("MouseEvent") === 8;
@@ -7708,7 +7710,7 @@ class Ae {
7708
7710
  return !!e && "x" in e && "y" in e;
7709
7711
  }
7710
7712
  static getCurrent(e) {
7711
- const n = new Ae(0, 0);
7713
+ const n = new Ge(0, 0);
7712
7714
  if (window) {
7713
7715
  const o = window.getComputedStyle(e);
7714
7716
  if (o) {
@@ -7720,7 +7722,7 @@ class Ae {
7720
7722
  return null;
7721
7723
  }
7722
7724
  static copy(e) {
7723
- return new Ae(0, 0).set(e);
7725
+ return new Ge(0, 0).set(e);
7724
7726
  }
7725
7727
  get value() {
7726
7728
  return { x: this.x, y: this.y };
@@ -7766,18 +7768,18 @@ class Ft {
7766
7768
  function Ws(t, e) {
7767
7769
  const n = E(), o = E(), i = E(), a = E(), r = E(), s = E(), u = E(), d = E(), p = E(), l = E(), c = E(), v = E(t.resizeable), f = E(), F = E(t.draggable), _ = E(!1);
7768
7770
  function y() {
7769
- const j = o.value || document.body, D = window.getComputedStyle(j);
7771
+ const $ = o.value || document.body, D = window.getComputedStyle($);
7770
7772
  if (!D || !n.value)
7771
7773
  return;
7772
- const P = Ae.getTransformInfo(n.value), I = {};
7774
+ const P = Ge.getTransformInfo(n.value), I = {};
7773
7775
  u.value && (I.deltaL = n.value.offsetLeft - u.value.x, I.deltaT = n.value.offsetTop - u.value.y);
7774
- const $ = D.getPropertyValue("position");
7775
- I.width = j.clientWidth, I.height = j.clientHeight, I.pr = parseInt(D.getPropertyValue("padding-right"), 10), I.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), I.position = D.getPropertyValue("position"), $ === "static" && (j.style.position = "relative"), I.translateX = P.x, I.translateY = P.y, l.value = I;
7776
+ const j = D.getPropertyValue("position");
7777
+ I.width = $.clientWidth, I.height = $.clientHeight, I.pr = parseInt(D.getPropertyValue("padding-right"), 10), I.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), I.position = D.getPropertyValue("position"), j === "static" && ($.style.position = "relative"), I.translateX = P.x, I.translateY = P.y, l.value = I;
7776
7778
  }
7777
- function w(j) {
7779
+ function w($) {
7778
7780
  if (n.value) {
7779
- a.value = Ft.getCurrent(n.value), r.value = Ae.getCurrent(n.value), s.value = a.value ? Ft.copy(a.value) : null, u.value = r.value ? Ae.copy(r.value) : null, y();
7780
- const D = j.target.getAttribute("type") || "";
7781
+ a.value = Ft.getCurrent(n.value), r.value = Ge.getCurrent(n.value), s.value = a.value ? Ft.copy(a.value) : null, u.value = r.value ? Ge.copy(r.value) : null, y();
7782
+ const D = $.target.getAttribute("type") || "";
7781
7783
  d.value = {
7782
7784
  n: !!D.match(/n/),
7783
7785
  s: !!D.match(/s/),
@@ -7787,60 +7789,60 @@ function Ws(t, e) {
7787
7789
  }
7788
7790
  }
7789
7791
  function m() {
7790
- var j, D, P, I;
7792
+ var $, D, P, I;
7791
7793
  if (n.value) {
7792
- const $ = n.value;
7793
- d.value && ((d.value.n || d.value.s) && ((j = s.value) != null && j.height) && ($.style.height = s.value.height + "px"), (d.value.w || d.value.e) && ((D = s.value) != null && D.width) && ($.style.width = s.value.width + "px"), u.value && ((P = u.value) != null && P.x && ($.style.left = u.value.x + "px"), (I = u.value) != null && I.y && ($.style.top = u.value.y + "px")));
7794
+ const j = n.value;
7795
+ d.value && ((d.value.n || d.value.s) && (($ = s.value) != null && $.height) && (j.style.height = s.value.height + "px"), (d.value.w || d.value.e) && ((D = s.value) != null && D.width) && (j.style.width = s.value.width + "px"), u.value && ((P = u.value) != null && P.x && (j.style.left = u.value.x + "px"), (I = u.value) != null && I.y && (j.style.top = u.value.y + "px")));
7794
7796
  }
7795
7797
  }
7796
7798
  function x() {
7797
- const j = t.minHeight ? t.minHeight : 1, D = t.minWidth ? t.minWidth : 1;
7798
- s.value && u.value && d.value && a.value && (s.value.height < j && (s.value.height = j, d.value.n && r.value && (u.value.y = r.value.y + (a.value.height - j))), s.value.width < D && (s.value.width = D, d.value.w && r.value && (u.value.x = r.value.x + (a.value.width - D))), t.maxHeight && s.value.height > t.maxHeight && (s.value.height = t.maxHeight, r.value && d.value.n && (u.value.y = r.value.y + (a.value.height - t.maxHeight))), t.maxWidth && s.value.width > t.maxWidth && (s.value.width = t.maxWidth, d.value.w && r.value && (u.value.x = r.value.x + (a.value.width - t.maxWidth))));
7799
+ const $ = t.minHeight ? t.minHeight : 1, D = t.minWidth ? t.minWidth : 1;
7800
+ s.value && u.value && d.value && a.value && (s.value.height < $ && (s.value.height = $, d.value.n && r.value && (u.value.y = r.value.y + (a.value.height - $))), s.value.width < D && (s.value.width = D, d.value.w && r.value && (u.value.x = r.value.x + (a.value.width - D))), t.maxHeight && s.value.height > t.maxHeight && (s.value.height = t.maxHeight, r.value && d.value.n && (u.value.y = r.value.y + (a.value.height - t.maxHeight))), t.maxWidth && s.value.width > t.maxWidth && (s.value.width = t.maxWidth, d.value.w && r.value && (u.value.x = r.value.x + (a.value.width - t.maxWidth))));
7799
7801
  }
7800
7802
  function b() {
7801
7803
  if (o.value) {
7802
- const j = l.value;
7804
+ const $ = l.value;
7803
7805
  if (u.value && s.value && d.value && a.value) {
7804
- const D = j.width - j.pr - j.deltaL - j.translateX - u.value.x, P = j.height - j.pb - j.deltaT - j.translateY - u.value.y;
7805
- d.value.n && u.value.y + j.translateY < 0 && r.value && (u.value.y = -j.translateY, s.value.height = a.value.height + r.value.y + j.translateY), d.value.w && u.value.x + j.translateX < 0 && r.value && (u.value.x = -j.translateX, s.value.width = a.value.width + r.value.x + j.translateX), s.value.width > D && (s.value.width = D), s.value.height > P && (s.value.height = P);
7806
+ const D = $.width - $.pr - $.deltaL - $.translateX - u.value.x, P = $.height - $.pb - $.deltaT - $.translateY - u.value.y;
7807
+ d.value.n && u.value.y + $.translateY < 0 && r.value && (u.value.y = -$.translateY, s.value.height = a.value.height + r.value.y + $.translateY), d.value.w && u.value.x + $.translateX < 0 && r.value && (u.value.x = -$.translateX, s.value.width = a.value.width + r.value.x + $.translateX), s.value.width > D && (s.value.width = D), s.value.height > P && (s.value.height = P);
7806
7808
  }
7807
7809
  }
7808
7810
  }
7809
- function g(j) {
7811
+ function g($) {
7810
7812
  if (!i.value || !a.value || !r.value || !d.value)
7811
7813
  return;
7812
- j.subtract(i.value);
7813
- const D = j.x, P = j.y;
7814
+ $.subtract(i.value);
7815
+ const D = $.x, P = $.y;
7814
7816
  d.value.n ? (u.value.y = r.value.y + P, s.value.height = a.value.height - P) : d.value.s && (s.value.height = a.value.height + P), d.value.e ? s.value.width = a.value.width + D : d.value.w && (s.value.width = a.value.width - D, u.value.x = r.value.x + D), b(), x(), m();
7815
7817
  }
7816
- function h(j) {
7818
+ function h($) {
7817
7819
  if (!p.value)
7818
7820
  return;
7819
- const D = Ae.fromEvent(j);
7821
+ const D = Ge.fromEvent($);
7820
7822
  D && g(D);
7821
7823
  }
7822
7824
  function T() {
7823
7825
  if (n.value) {
7824
7826
  const {
7825
- width: j,
7827
+ width: $,
7826
7828
  height: D,
7827
7829
  x: P,
7828
7830
  y: I
7829
- } = n.value.getBoundingClientRect(), $ = Ae.getTransformInfo(n.value);
7831
+ } = n.value.getBoundingClientRect(), j = Ge.getTransformInfo(n.value);
7830
7832
  return {
7831
7833
  size: {
7832
- width: j,
7834
+ width: $,
7833
7835
  height: D
7834
7836
  },
7835
7837
  position: {
7836
- x: P - $.x,
7837
- y: I - $.y
7838
+ x: P - j.x,
7839
+ y: I - j.y
7838
7840
  }
7839
7841
  };
7840
7842
  }
7841
7843
  return null;
7842
7844
  }
7843
- function C(j) {
7845
+ function C($) {
7844
7846
  if (n.value) {
7845
7847
  const D = T();
7846
7848
  c.value = D;
@@ -7850,11 +7852,11 @@ function Ws(t, e) {
7850
7852
  function k() {
7851
7853
  document.addEventListener("mousemove", h), document.addEventListener("mouseup", C);
7852
7854
  }
7853
- function S(j) {
7854
- j instanceof MouseEvent && j.button === 2 || F.value && (document.body.click(), j.stopPropagation(), j.preventDefault(), i.value = Ae.fromEvent(j), p.value = j.target, w(j), k());
7855
+ function S($) {
7856
+ $ instanceof MouseEvent && $.button === 2 || F.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), i.value = Ge.fromEvent($), p.value = $.target, w($), k());
7855
7857
  }
7856
- function M(j) {
7857
- return n.value = j, v.value && R(Nt, null, [R("div", {
7858
+ function M($) {
7859
+ return n.value = $, v.value && R(Vt, null, [R("div", {
7858
7860
  class: "fv-resizable-handle fv-resizable-n",
7859
7861
  type: "n",
7860
7862
  onMousedown: (D) => S(D)
@@ -7888,10 +7890,10 @@ function Ws(t, e) {
7888
7890
  onMousedown: (D) => S(D)
7889
7891
  }, null)]);
7890
7892
  }
7891
- function V(j = !0) {
7893
+ function V($ = !0) {
7892
7894
  document.body.click();
7893
7895
  const D = o.value || document.body, P = Ft.getCurrent(D), I = n.value;
7894
- j && I && (f.value = T(), f.value.transform = I.style.transform), P && I && (s.value = P, s.value.height -= 14, s.value.width -= 14, I.style.height = s.value.height + "px", I.style.width = s.value.width + "px", I.style.left = "7px", I.style.top = "7px", I.style.transform = "", c.value = {
7896
+ $ && I && (f.value = T(), f.value.transform = I.style.transform), P && I && (s.value = P, s.value.height -= 14, s.value.width -= 14, I.style.height = s.value.height + "px", I.style.width = s.value.width + "px", I.style.left = "7px", I.style.top = "7px", I.style.transform = "", c.value = {
7895
7897
  size: s.value,
7896
7898
  position: {
7897
7899
  x: 0,
@@ -7900,7 +7902,7 @@ function Ws(t, e) {
7900
7902
  }, F.value = !1, _.value = !0);
7901
7903
  }
7902
7904
  function O() {
7903
- var j, D;
7905
+ var $, D;
7904
7906
  if (document.body.click(), f.value) {
7905
7907
  const P = {
7906
7908
  width: f.value.size.width || 0,
@@ -7909,9 +7911,9 @@ function Ws(t, e) {
7909
7911
  x: (window.innerWidth - P.width) / 2,
7910
7912
  y: (window.innerHeight - P.height) / 2
7911
7913
  };
7912
- (j = s.value) == null || j.set(P), (D = u.value) == null || D.set(I);
7913
- const $ = n.value;
7914
- $.style.height = P.height + "px", $.style.width = P.width + "px", $.style.left = `${I.x}px`, $.style.top = `${I.y}px`, $.style.transform = "", c.value = {
7914
+ ($ = s.value) == null || $.set(P), (D = u.value) == null || D.set(I);
7915
+ const j = n.value;
7916
+ j.style.height = P.height + "px", j.style.width = P.width + "px", j.style.left = `${I.x}px`, j.style.top = `${I.y}px`, j.style.transform = "", c.value = {
7915
7917
  size: P,
7916
7918
  position: I
7917
7919
  }, F.value = t.draggable, _.value = !1;
@@ -7919,22 +7921,22 @@ function Ws(t, e) {
7919
7921
  }
7920
7922
  function B() {
7921
7923
  if (n.value) {
7922
- const j = Ft.getCurrent(n.value);
7923
- if (j) {
7924
+ const $ = Ft.getCurrent(n.value);
7925
+ if ($) {
7924
7926
  const {
7925
7927
  width: D,
7926
7928
  height: P
7927
- } = j;
7929
+ } = $;
7928
7930
  n.value.style.left = `${(window.innerWidth - D) / 2}px`, n.value.style.top = `${(window.innerHeight - P) / 2}px`, n.value.style.transform = "";
7929
7931
  }
7930
7932
  }
7931
7933
  }
7932
7934
  function L() {
7933
- const j = () => {
7935
+ const $ = () => {
7934
7936
  _.value ? V(!1) : B(), document.body.click();
7935
7937
  };
7936
- return window.addEventListener("resize", j), () => {
7937
- window.removeEventListener("resize", j);
7938
+ return window.addEventListener("resize", $), () => {
7939
+ window.removeEventListener("resize", $);
7938
7940
  };
7939
7941
  }
7940
7942
  const X = L();
@@ -7951,8 +7953,8 @@ function Ws(t, e) {
7951
7953
  };
7952
7954
  }
7953
7955
  function As(t, e, n) {
7954
- const o = E(), i = E(t.draggable), a = E(t.lockAxis), r = E(), s = E(), u = E(!1), d = E(new Ae(0, 0)), p = E(new Ae(0, 0)), l = E(new Ae(0, 0)), c = E(new Ae(0, 0));
7955
- Ve(() => n.value, (h) => {
7956
+ const o = E(), i = E(t.draggable), a = E(t.lockAxis), r = E(), s = E(), u = E(!1), d = E(new Ge(0, 0)), p = E(new Ge(0, 0)), l = E(new Ge(0, 0)), c = E(new Ge(0, 0));
7957
+ Be(() => n.value, (h) => {
7956
7958
  r.value.style.cursor = h ? "move" : "default";
7957
7959
  });
7958
7960
  function v(h, T) {
@@ -7987,7 +7989,7 @@ function As(t, e, n) {
7987
7989
  h && (d.value && h.subtract(d.value), l.value.set(h), f(), F());
7988
7990
  }
7989
7991
  function y(h) {
7990
- u.value && i.value && (h.stopPropagation(), h.preventDefault(), _(Ae.fromEvent(h, r.value)));
7992
+ u.value && i.value && (h.stopPropagation(), h.preventDefault(), _(Ge.fromEvent(h, r.value)));
7991
7993
  }
7992
7994
  function w() {
7993
7995
  var h;
@@ -7998,7 +8000,7 @@ function As(t, e, n) {
7998
8000
  }
7999
8001
  function x() {
8000
8002
  if (o.value) {
8001
- const h = Ae.getTransformInfo(o.value);
8003
+ const h = Ge.getTransformInfo(o.value);
8002
8004
  p.value.set(h);
8003
8005
  return;
8004
8006
  }
@@ -8008,7 +8010,7 @@ function As(t, e, n) {
8008
8010
  if (!n.value || h instanceof MouseEvent && h.button === 2)
8009
8011
  return;
8010
8012
  const T = h.target || h.srcElement;
8011
- r.value !== void 0 && T && !v(T, r.value) || i.value !== !1 && (document.body.click(), h.stopPropagation(), h.preventDefault(), d.value = Ae.fromEvent(h, o.value), x(), m());
8013
+ r.value !== void 0 && T && !v(T, r.value) || i.value !== !1 && (document.body.click(), h.stopPropagation(), h.preventDefault(), d.value = Ge.fromEvent(h, o.value), x(), m());
8012
8014
  }
8013
8015
  function g(h, T, C) {
8014
8016
  if (i.value && T) {
@@ -8030,7 +8032,7 @@ function As(t, e, n) {
8030
8032
  resetTranslate: x
8031
8033
  };
8032
8034
  }
8033
- function jo(t, e) {
8035
+ function $o(t, e) {
8034
8036
  if (t) {
8035
8037
  const n = (o) => {
8036
8038
  o.key.toLowerCase() === t.toLowerCase() && e({ event: o, key: t });
@@ -8043,7 +8045,7 @@ function jo(t, e) {
8043
8045
  function zs(t, e) {
8044
8046
  const n = E(t.enableEsc);
8045
8047
  let o = null;
8046
- return n.value ? (o = jo("Escape", (i) => {
8048
+ return n.value ? (o = $o("Escape", (i) => {
8047
8049
  e.emit("esc", { event: i.event, type: "esc" });
8048
8050
  }), {
8049
8051
  remove: o
@@ -8052,31 +8054,31 @@ function zs(t, e) {
8052
8054
  function Gs(t, e) {
8053
8055
  const n = E(t.enableEnter);
8054
8056
  let o = null;
8055
- return n.value ? (o = jo("Enter", (i) => {
8057
+ return n.value ? (o = $o("Enter", (i) => {
8056
8058
  e.emit("enter", { event: i.event, type: "enter" });
8057
8059
  }), {
8058
8060
  remove: o
8059
8061
  }) : null;
8060
8062
  }
8061
- const kt = /* @__PURE__ */ Ze({
8063
+ const kt = /* @__PURE__ */ Ke({
8062
8064
  name: "FModal",
8063
- props: $o,
8065
+ props: jo,
8064
8066
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
8065
8067
  setup(t, e) {
8066
8068
  const n = E(t.width || 300), o = E(t.height || 200), i = E(t.modelValue), a = E(""), r = E(t.class), s = E(t.fitContent), u = E(t.showHeader), d = E(""), p = E(t.showCloseButton), l = E(t.showMaxButton), c = E(!1), v = E(t.dialogType), f = E(t.src), F = E(""), _ = E(t.showButtons), y = E(t.title), w = E(t.containment || null), m = E(), {
8067
8069
  t: x
8068
- } = dt();
8070
+ } = pt();
8069
8071
  y.value === "错误提示" && (y.value = x("messageBox.errorTitle"));
8070
8072
  const b = E(!1);
8071
- function g(K, ae) {
8072
- const Fe = ae ? "accept" : "cancel";
8073
+ function g(K, we) {
8074
+ const De = we ? "accept" : "cancel";
8073
8075
  Promise.resolve().then(() => {
8074
- var Ee;
8075
- return (Ee = t.beforeClose) == null ? void 0 : Ee.call(t, {
8076
- closeType: Fe
8076
+ var me;
8077
+ return (me = t.beforeClose) == null ? void 0 : me.call(t, {
8078
+ closeType: De
8077
8079
  });
8078
- }).then((Ee) => {
8079
- Ee && (i.value = !1, e.emit("update:modelValue", !1), ae != null && e.emit(ae ? "accept" : "cancel"), e.emit("closed", K));
8080
+ }).then((me) => {
8081
+ me && (i.value = !1, e.emit("update:modelValue", !1), we != null && e.emit(we ? "accept" : "cancel"), e.emit("closed", K));
8080
8082
  });
8081
8083
  }
8082
8084
  const h = [{
@@ -8098,12 +8100,12 @@ const kt = /* @__PURE__ */ Ze({
8098
8100
  maximize: B,
8099
8101
  restore: L,
8100
8102
  boundingElement: X,
8101
- resizedEventParam: j,
8103
+ resizedEventParam: $,
8102
8104
  allowDrag: D,
8103
8105
  unWindowResizeHandle: P,
8104
8106
  moveToCenter: I
8105
8107
  } = Ws(t), {
8106
- registerDraggle: $
8108
+ registerDraggle: j
8107
8109
  } = As(t, e, D);
8108
8110
  function A() {
8109
8111
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
@@ -8112,40 +8114,40 @@ const kt = /* @__PURE__ */ Ze({
8112
8114
  const K = document.querySelectorAll(".farris-modal").length;
8113
8115
  (!K || K - 1 <= 0) && document.body.classList.remove("modal-open"), m.value && m.value.classList.remove("show");
8114
8116
  }
8115
- Ve(() => t.title, (K, ae) => {
8116
- K !== ae && (y.value = K);
8117
- }), Ve(() => t.modelValue, (K, ae) => {
8118
- K !== ae && (i.value = K, i.value && t.draggable && $t(() => {
8119
- M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value, $(S.value, M.value, X.value), I());
8117
+ Be(() => t.title, (K, we) => {
8118
+ K !== we && (y.value = K);
8119
+ }), Be(() => t.modelValue, (K, we) => {
8120
+ K !== we && (i.value = K, i.value && t.draggable && jt(() => {
8121
+ M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value, j(S.value, M.value, X.value), I());
8120
8122
  }), K || (w.value && (w.value = null), J())), i.value ? b.value = A() : (V.value = !1, D.value = t.draggable);
8121
- }), Ve(() => t.showHeader, (K, ae) => {
8122
- K !== ae && (u.value = K);
8123
- }), Ve(() => t.showButtons, (K, ae) => {
8124
- K !== ae && (_.value = K);
8125
- }), Ve(() => j.value, (K, ae) => {
8126
- const Fe = K || {}, Ee = ae || {};
8127
- JSON.stringify(Fe) !== JSON.stringify(Ee) && e.emit("resize", {
8123
+ }), Be(() => t.showHeader, (K, we) => {
8124
+ K !== we && (u.value = K);
8125
+ }), Be(() => t.showButtons, (K, we) => {
8126
+ K !== we && (_.value = K);
8127
+ }), Be(() => $.value, (K, we) => {
8128
+ const De = K || {}, me = we || {};
8129
+ JSON.stringify(De) !== JSON.stringify(me) && e.emit("resize", {
8128
8130
  newSize: K,
8129
- oldSize: ae,
8131
+ oldSize: we,
8130
8132
  isMaximized: V.value
8131
8133
  });
8132
8134
  });
8133
- const q = z(() => (i.value && document.body.classList.add("modal-open"), i.value)), le = z(() => {
8134
- var Fe;
8135
+ const q = z(() => (i.value && document.body.classList.add("modal-open"), i.value)), ae = z(() => {
8136
+ var De;
8135
8137
  const K = {
8136
8138
  modal: !0,
8137
8139
  "farris-modal": !0,
8138
8140
  fade: !0
8139
8141
  };
8140
8142
  K["f-modal-fitContent"] = !!s.value, K.show = !!q.value;
8141
- const ae = (Fe = t.maskClass) == null ? void 0 : Fe.split(" ");
8142
- return ae == null || ae.reduce((Ee, Ge) => (Ee[Ge] = !0, Ee), K), K;
8143
+ const we = (De = t.maskClass) == null ? void 0 : De.split(" ");
8144
+ return we == null || we.reduce((me, Re) => (me[Re] = !0, me), K), K;
8143
8145
  }), G = z(() => {
8144
- var Fe;
8146
+ var De;
8145
8147
  const K = {
8146
8148
  "modal-dialog": !0
8147
- }, ae = (Fe = r.value) == null ? void 0 : Fe.split(" ");
8148
- return ae == null || ae.reduce((Ee, Ge) => (Ee[Ge] = !0, Ee), K), K;
8149
+ }, we = (De = r.value) == null ? void 0 : De.split(" ");
8150
+ return we == null || we.reduce((me, Re) => (me[Re] = !0, me), K), K;
8149
8151
  }), H = z(() => {
8150
8152
  const K = {
8151
8153
  position: "absolute",
@@ -8163,12 +8165,12 @@ const kt = /* @__PURE__ */ Ze({
8163
8165
  }), Z = z(() => ({
8164
8166
  "modal-content": !0,
8165
8167
  "modal-content-has-header": u.value
8166
- })), fe = z(() => {
8168
+ })), de = z(() => {
8167
8169
  const K = {
8168
8170
  display: u.value ? "" : "none"
8169
8171
  };
8170
8172
  return K["pointer-events"] = D.value ? "auto" : "none", K;
8171
- }), xe = z(() => ({
8173
+ }), Te = z(() => ({
8172
8174
  "f-icon": !0,
8173
8175
  modal_maximize: !0,
8174
8176
  modalrevert: V.value
@@ -8182,11 +8184,11 @@ const kt = /* @__PURE__ */ Ze({
8182
8184
  height: `${t.footerHeight || 60}px`
8183
8185
  };
8184
8186
  }
8185
- const Oe = z(() => {
8187
+ const ke = z(() => {
8186
8188
  const K = {
8187
8189
  textAlgin: F.value
8188
- }, ae = ye();
8189
- return Object.assign(K, ae);
8190
+ }, we = ye();
8191
+ return Object.assign(K, we);
8190
8192
  });
8191
8193
  function Y(K) {
8192
8194
  if (K == null || K.stopPropagation(), V.value) {
@@ -8195,27 +8197,27 @@ const kt = /* @__PURE__ */ Ze({
8195
8197
  }
8196
8198
  B(), V.value = !0;
8197
8199
  }
8198
- async function oe(K, ae) {
8199
- K.handle && await K.handle(ae, K) && e.emit("closed", ae);
8200
+ async function oe(K, we) {
8201
+ K.handle && await K.handle(we, K) && e.emit("closed", we);
8200
8202
  }
8201
- function ce(K) {
8203
+ function ue(K) {
8202
8204
  K.width && (n.value = K.width), K.height && (o.value = K.height), K.buttons && (T.value = K.buttons), K.title && (y.value = K.title);
8203
8205
  }
8204
- let we = null, _e = null;
8206
+ let _e = null, Se = null;
8205
8207
  lr(() => {
8206
8208
  b.value = A();
8207
8209
  }), Ot(() => {
8208
- M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value, $(S.value, M.value, X.value)), q.value && document.body.classList.add("modal-open"), we = zs(t, e), _e = Gs(t, e);
8210
+ M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value, j(S.value, M.value, X.value)), q.value && document.body.classList.add("modal-open"), _e = zs(t, e), Se = Gs(t, e);
8209
8211
  }), Xt(() => {
8210
- P && P(), we && we.remove(), _e && _e.remove();
8212
+ P && P(), _e && _e.remove(), Se && Se.remove();
8211
8213
  }), e.expose({
8212
8214
  modalElementRef: M,
8213
- updateModalOptions: ce,
8215
+ updateModalOptions: ue,
8214
8216
  close: g,
8215
8217
  maxDialog: Y,
8216
8218
  isMaximized: V
8217
8219
  });
8218
- function Le() {
8220
+ function He() {
8219
8221
  return R("ul", null, [c.value && R("li", {
8220
8222
  class: "f-btn-icon f-bare"
8221
8223
  }, [R("span", {
@@ -8225,7 +8227,7 @@ const kt = /* @__PURE__ */ Ze({
8225
8227
  class: "f-btn-icon f-bare",
8226
8228
  style: "pointer-events: auto;"
8227
8229
  }, [R("span", {
8228
- class: xe.value
8230
+ class: Te.value
8229
8231
  }, null)]), p.value && R("li", {
8230
8232
  class: "f-btn-icon f-bare",
8231
8233
  onClick: (K) => g(K, !1),
@@ -8234,19 +8236,19 @@ const kt = /* @__PURE__ */ Ze({
8234
8236
  class: "f-icon modal_close"
8235
8237
  }, null)])]);
8236
8238
  }
8237
- function ze() {
8239
+ function qe() {
8238
8240
  return R("div", {
8239
8241
  class: "modal-footer",
8240
- style: Oe.value
8242
+ style: ke.value
8241
8243
  }, [T.value && T.value.map((K) => {
8242
- const ae = E(K.disabled);
8244
+ const we = E(K.disabled);
8243
8245
  return R("button", {
8244
8246
  name: K.name,
8245
8247
  type: "button",
8246
- disabled: ae.value,
8248
+ disabled: we.value,
8247
8249
  class: K.class + (K.iconClass ? " btn-icontext" : ""),
8248
- onClick: (Fe) => {
8249
- oe(K, Fe);
8250
+ onClick: (De) => {
8251
+ oe(K, De);
8250
8252
  }
8251
8253
  }, [!!K.iconClass && R("i", {
8252
8254
  class: K.iconClass
@@ -8257,7 +8259,7 @@ const kt = /* @__PURE__ */ Ze({
8257
8259
  return R("div", {
8258
8260
  ref: S,
8259
8261
  class: "modal-header",
8260
- style: fe.value
8262
+ style: de.value
8261
8263
  }, [e.slots.headerTemplate ? e.slots.headerTemplate() : R("div", {
8262
8264
  class: "modal-title"
8263
8265
  }, [C.value && R("span", {
@@ -8267,20 +8269,20 @@ const kt = /* @__PURE__ */ Ze({
8267
8269
  class: "modal-title-label"
8268
8270
  }, [y.value])]), R("div", {
8269
8271
  class: "actions"
8270
- }, [Le()])]);
8272
+ }, [He()])]);
8271
8273
  }
8272
8274
  function ve() {
8273
- return e.slots.footerTemplate ? e.slots.footerTemplate() : k.value && ze();
8275
+ return e.slots.footerTemplate ? e.slots.footerTemplate() : k.value && qe();
8274
8276
  }
8275
- function Ne(K) {
8277
+ function Ve(K) {
8276
8278
  if (K.stopPropagation(), t.allowClickMaskToClose) {
8277
8279
  if (K.target !== m.value)
8278
8280
  return;
8279
8281
  g(K, !1);
8280
8282
  }
8281
8283
  }
8282
- function je() {
8283
- var K, ae;
8284
+ function Le() {
8285
+ var K, we;
8284
8286
  return R("div", {
8285
8287
  id: a.value,
8286
8288
  class: G.value,
@@ -8290,7 +8292,7 @@ const kt = /* @__PURE__ */ Ze({
8290
8292
  class: Z.value
8291
8293
  }, [u.value && ne(), R("div", {
8292
8294
  class: be.value
8293
- }, [(ae = (K = e.slots).default) == null ? void 0 : ae.call(K), v.value === "iframe" && R("iframe", {
8295
+ }, [(we = (K = e.slots).default) == null ? void 0 : we.call(K), v.value === "iframe" && R("iframe", {
8294
8296
  title: a.value,
8295
8297
  class: "f-utils-fill",
8296
8298
  width: "100%",
@@ -8298,22 +8300,22 @@ const kt = /* @__PURE__ */ Ze({
8298
8300
  src: f.value
8299
8301
  }, null)]), ve()]), !s.value && M.value && !V.value && O(M.value)]);
8300
8302
  }
8301
- function Re(K) {
8303
+ function Ne(K) {
8302
8304
  return K || "body";
8303
8305
  }
8304
8306
  return () => R(sr, {
8305
- to: Re(t.host)
8307
+ to: Ne(t.host)
8306
8308
  }, {
8307
- default: () => [q.value && R(Tn, {
8309
+ default: () => [q.value && R(Fn, {
8308
8310
  name: "fade",
8309
8311
  appear: !0
8310
8312
  }, {
8311
8313
  default: () => [R("div", {
8312
8314
  ref: m,
8313
- class: le.value,
8315
+ class: ae.value,
8314
8316
  style: W.value,
8315
- onClick: Ne
8316
- }, [je()])]
8317
+ onClick: Ve
8318
+ }, [Le()])]
8317
8319
  })]
8318
8320
  });
8319
8321
  }
@@ -8327,7 +8329,7 @@ function Lo(t) {
8327
8329
  function qs(t) {
8328
8330
  const e = document.createElement("div");
8329
8331
  e.style.display = "contents";
8330
- const n = xn({
8332
+ const n = Tn({
8331
8333
  setup(o, i) {
8332
8334
  Xt(() => {
8333
8335
  document.body.removeChild(e);
@@ -8367,7 +8369,7 @@ function qs(t) {
8367
8369
  });
8368
8370
  }
8369
8371
  });
8370
- return document.body.appendChild(e), n.use(jt.i18n), n.mount(e), n;
8372
+ return document.body.appendChild(e), n.use($t.i18n), n.mount(e), n;
8371
8373
  }
8372
8374
  class Ho {
8373
8375
  constructor(e) {
@@ -8427,7 +8429,7 @@ class Ho {
8427
8429
  const g = (h = b == null ? void 0 : b.target) == null ? void 0 : h.classList.contains("modal_close");
8428
8430
  s(b, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
8429
8431
  }, v = (b) => {
8430
- c(b), p && $t(() => {
8432
+ c(b), p && jt(() => {
8431
8433
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Zt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
8432
8434
  const g = Object.keys(this.modalRefs).map((h) => Number(h));
8433
8435
  g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
@@ -8501,10 +8503,10 @@ const Ys = {
8501
8503
  */
8502
8504
  selectOnCreated: { type: Boolean, default: !1 }
8503
8505
  };
8504
- It(
8506
+ Nt(
8505
8507
  Ys,
8506
8508
  Io,
8507
- un,
8509
+ cn,
8508
8510
  void 0
8509
8511
  );
8510
8512
  const Xs = "https://json-schema.org/draft/2020-12/schema", Js = "https://farris-design.gitee.io/grid-field-editor.schema.json", Qs = "response-form-layout-setting", Zs = "A Farris Data Grid Component", Ks = "object", eu = {
@@ -8543,7 +8545,7 @@ const Xs = "https://json-schema.org/draft/2020-12/schema", Js = "https://farris-
8543
8545
  }
8544
8546
  }
8545
8547
  };
8546
- Zn(ou, nu, Za, nl);
8548
+ an(ou, nu, Za, nl);
8547
8549
  const ru = {
8548
8550
  width: { Type: Number, default: 400 },
8549
8551
  type: { Type: String, default: "info" },
@@ -8557,12 +8559,12 @@ const ru = {
8557
8559
  promptEditorType: { Type: String, default: "text-area" },
8558
8560
  buttons: { type: Object, default: [] }
8559
8561
  };
8560
- function dn() {
8562
+ function fn() {
8561
8563
  return new DOMException("The request is not allowed", "NotAllowedError");
8562
8564
  }
8563
8565
  async function iu(t) {
8564
8566
  if (!navigator.clipboard)
8565
- throw dn();
8567
+ throw fn();
8566
8568
  return navigator.clipboard.writeText(t);
8567
8569
  }
8568
8570
  async function au(t) {
@@ -8577,7 +8579,7 @@ async function au(t) {
8577
8579
  n == null || n.removeAllRanges(), window.document.body.removeChild(e);
8578
8580
  }
8579
8581
  if (!i)
8580
- throw dn();
8582
+ throw fn();
8581
8583
  }
8582
8584
  async function lu(t) {
8583
8585
  try {
@@ -8586,7 +8588,7 @@ async function lu(t) {
8586
8588
  try {
8587
8589
  await au(t);
8588
8590
  } catch (n) {
8589
- throw n || e || dn();
8591
+ throw n || e || fn();
8590
8592
  }
8591
8593
  }
8592
8594
  }
@@ -8607,7 +8609,7 @@ function uu(t, e, n, o) {
8607
8609
  s.value = c.length;
8608
8610
  }
8609
8611
  }
8610
- return () => R(Nt, null, [R("textarea", {
8612
+ return () => R(Vt, null, [R("textarea", {
8611
8613
  title: "promptMessage",
8612
8614
  name: "promptMessage",
8613
8615
  class: "form-control",
@@ -8733,7 +8735,7 @@ function vu(t, e, n, o, i) {
8733
8735
  wordBreak: "keep-all",
8734
8736
  overflowWrap: "break-word"
8735
8737
  } : {});
8736
- return () => R(Nt, null, [R("div", {
8738
+ return () => R(Vt, null, [R("div", {
8737
8739
  class: "float-left modal-tips-iconwrap"
8738
8740
  }, [R("span", {
8739
8741
  class: r.value
@@ -8799,7 +8801,7 @@ function gu(t, e, n, o, i) {
8799
8801
  }, null), w.text]))]);
8800
8802
  }
8801
8803
  function yu(t) {
8802
- const { t: e, locale: n } = dt();
8804
+ const { t: e, locale: n } = pt();
8803
8805
  function o(i, a, r) {
8804
8806
  return a === r ? e(i) : a;
8805
8807
  }
@@ -8824,7 +8826,7 @@ function yu(t) {
8824
8826
  locale: n.value
8825
8827
  };
8826
8828
  }
8827
- const zt = /* @__PURE__ */ Ze({
8829
+ const zt = /* @__PURE__ */ Ke({
8828
8830
  name: "FMessageBox",
8829
8831
  props: ru,
8830
8832
  emits: ["accept", "reject", "close"],
@@ -8870,14 +8872,14 @@ const zt = /* @__PURE__ */ Ze({
8870
8872
  style: s.value
8871
8873
  }, [F()]), _(), v()]);
8872
8874
  }
8873
- }), ut = class ut {
8875
+ }), dt = class dt {
8874
8876
  static show(e) {
8875
- const n = mt({
8877
+ const n = ht({
8876
8878
  ...e
8877
8879
  }), o = !1, i = n.type === "error" || n.type === "prompt", a = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
8878
8880
  }), s = n.rejectCallback || (() => {
8879
8881
  });
8880
- let u = null, d = new Ho(ut.app);
8882
+ let u = null, d = new Ho(dt.app);
8881
8883
  const p = () => {
8882
8884
  u && (u == null || u.destroy(), d = null);
8883
8885
  };
@@ -8899,37 +8901,37 @@ const zt = /* @__PURE__ */ Ze({
8899
8901
  }), d == null ? void 0 : d.getCurrentModal();
8900
8902
  }
8901
8903
  static info(e, n) {
8902
- const o = mt({
8904
+ const o = ht({
8903
8905
  type: "info",
8904
8906
  title: e,
8905
8907
  detail: n,
8906
8908
  okButtonText: "知道了",
8907
8909
  showCancelButton: !1
8908
8910
  });
8909
- ut.show(o);
8911
+ dt.show(o);
8910
8912
  }
8911
8913
  static warning(e, n) {
8912
- const o = mt({
8914
+ const o = ht({
8913
8915
  type: "warning",
8914
8916
  title: e,
8915
8917
  detail: n,
8916
8918
  okButtonText: "知道了",
8917
8919
  showCancelButton: !1
8918
8920
  });
8919
- ut.show(o);
8921
+ dt.show(o);
8920
8922
  }
8921
8923
  static success(e, n) {
8922
- const o = mt({
8924
+ const o = ht({
8923
8925
  type: "success",
8924
8926
  title: e,
8925
8927
  detail: n,
8926
8928
  okButtonText: "关闭",
8927
8929
  showCancelButton: !1
8928
8930
  });
8929
- ut.show(o);
8931
+ dt.show(o);
8930
8932
  }
8931
8933
  static error(e, n, o) {
8932
- const i = mt({
8934
+ const i = ht({
8933
8935
  width: 500,
8934
8936
  type: "error",
8935
8937
  okButtonText: "关闭",
@@ -8940,20 +8942,20 @@ const zt = /* @__PURE__ */ Ze({
8940
8942
  detail: n
8941
8943
  }
8942
8944
  });
8943
- ut.show(i);
8945
+ dt.show(i);
8944
8946
  }
8945
8947
  static prompt(e, n) {
8946
- const o = mt({
8948
+ const o = ht({
8947
8949
  type: "prompt",
8948
8950
  title: e,
8949
8951
  detail: n,
8950
8952
  okButtonText: "确定",
8951
8953
  cancelButtonText: "取消"
8952
8954
  });
8953
- ut.show(o);
8955
+ dt.show(o);
8954
8956
  }
8955
8957
  static question(e, n, o, i) {
8956
- const a = mt({
8958
+ const a = ht({
8957
8959
  type: "question",
8958
8960
  title: e,
8959
8961
  detail: n,
@@ -8962,17 +8964,17 @@ const zt = /* @__PURE__ */ Ze({
8962
8964
  acceptCallback: o,
8963
8965
  rejectCallback: i
8964
8966
  });
8965
- ut.show(a);
8967
+ dt.show(a);
8966
8968
  }
8967
8969
  };
8968
- ee(ut, "app", null);
8969
- let Ut = ut;
8970
+ ee(dt, "app", null);
8971
+ let Ut = dt;
8970
8972
  zt.install = (t) => {
8971
8973
  t.component(zt.name, zt), Ut.app = t, t.provide("FMessageBoxService", Ut);
8972
8974
  };
8973
8975
  var Pt = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(Pt || {});
8974
8976
  function bu() {
8975
- const { t } = dt();
8977
+ const { t } = pt();
8976
8978
  return { conditionListLocale: {
8977
8979
  // 添加条件
8978
8980
  add: t("condition.add"),
@@ -8985,7 +8987,7 @@ function bu() {
8985
8987
  } };
8986
8988
  }
8987
8989
  function Cu() {
8988
- const { t } = dt();
8990
+ const { t } = pt();
8989
8991
  return { operatorsLocale: {
8990
8992
  equal: t("operators.equal"),
8991
8993
  notEqual: t("operators.notEqual"),
@@ -8998,7 +9000,7 @@ function Cu() {
8998
9000
  endWith: t("operators.endWith")
8999
9001
  } };
9000
9002
  }
9001
- var at = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t.In = "9", t.NotIn = "10", t))(at || {});
9003
+ var st = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t.In = "9", t.NotIn = "10", t))(st || {});
9002
9004
  function wu() {
9003
9005
  const { operatorsLocale: t } = Cu();
9004
9006
  return [
@@ -9088,7 +9090,7 @@ function Wo() {
9088
9090
  id: "",
9089
9091
  fieldCode: "",
9090
9092
  fieldName: "",
9091
- compareType: at.Equal,
9093
+ compareType: st.Equal,
9092
9094
  valueType: Pt.Value,
9093
9095
  value: new Gt(),
9094
9096
  relation: 0,
@@ -9143,14 +9145,14 @@ function Wo() {
9143
9145
  const L = k.get(M) || 0, X = k.get(S) || 0;
9144
9146
  if (S < 0 || S === M)
9145
9147
  return C[C.length - 1];
9146
- const j = L - X, D = V && V.relation !== void 0 ? V.relation : 1;
9147
- return B = j > 0 ? u(X, j, B, C, D) : B, B = j < 0 ? d(X, j, B, C, D) : B, B = j === 0 && X > 0 && L > 0 && V && O && !!V.rBracket && !!O.lBracket ? p(X, B, C, D) : B, B;
9148
+ const $ = L - X, D = V && V.relation !== void 0 ? V.relation : 1;
9149
+ return B = $ > 0 ? u(X, $, B, C, D) : B, B = $ < 0 ? d(X, $, B, C, D) : B, B = $ === 0 && X > 0 && L > 0 && V && O && !!V.rBracket && !!O.lBracket ? p(X, B, C, D) : B, B;
9148
9150
  }
9149
9151
  function c(C) {
9150
9152
  const S = { relation: C.length && C[0].relation !== void 0 ? C[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, M = [S], V = s(C);
9151
9153
  return C.forEach((O, B) => {
9152
- const L = B - 1, X = C[L], j = l(M, V, L, B, X, O);
9153
- j.items.push(O), e.set(O.conditionId, j);
9154
+ const L = B - 1, X = C[L], $ = l(M, V, L, B, X, O);
9155
+ $.items.push(O), e.set(O.conditionId, $);
9154
9156
  }), t.value = S, S;
9155
9157
  }
9156
9158
  function v() {
@@ -9293,7 +9295,7 @@ function xu(t, e, n) {
9293
9295
  }
9294
9296
  return { clear: _, getSelectedGroupItem: F, selectedItems: o, toggleSelect: f };
9295
9297
  }
9296
- const en = /* @__PURE__ */ Ze({
9298
+ const en = /* @__PURE__ */ Ke({
9297
9299
  name: "FConditionList",
9298
9300
  props: go,
9299
9301
  emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
@@ -9404,7 +9406,7 @@ const en = /* @__PURE__ */ Ze({
9404
9406
  onClick: () => h(A)
9405
9407
  }, null)])];
9406
9408
  }
9407
- function j(A) {
9409
+ function $(A) {
9408
9410
  return A.items.map((J) => R("div", {
9409
9411
  class: "condition-list-item",
9410
9412
  key: J.conditionId
@@ -9426,12 +9428,12 @@ const en = /* @__PURE__ */ Ze({
9426
9428
  class: "condition-list-content"
9427
9429
  }, [R("div", {
9428
9430
  class: "condition-list-content-group"
9429
- }, [j(A), A.children && A.children.map((J) => P(J))]), D(A)]);
9431
+ }, [$(A), A.children && A.children.map((J) => P(J))]), D(A)]);
9430
9432
  }
9431
9433
  function I() {
9432
9434
  v(b.getSelectedGroupItem()), b.clear();
9433
9435
  }
9434
- function $() {
9436
+ function j() {
9435
9437
  return R("div", {
9436
9438
  class: "condition-list-bottom"
9437
9439
  }, [R("div", {
@@ -9458,11 +9460,11 @@ const en = /* @__PURE__ */ Ze({
9458
9460
  key: n.value
9459
9461
  }, [R("div", {
9460
9462
  class: "condition-list-body"
9461
- }, [P(w.value)]), $()]);
9463
+ }, [P(w.value)]), j()]);
9462
9464
  }
9463
9465
  });
9464
9466
  en.install = (t) => {
9465
- t.component(bn.name, bn).component(en.name, en);
9467
+ t.component(Cn.name, Cn).component(en.name, en);
9466
9468
  };
9467
9469
  const Tu = [
9468
9470
  "equal",
@@ -9641,14 +9643,14 @@ function Ao() {
9641
9643
  ["enum", "combo-list"],
9642
9644
  ["reference", "lookup"]
9643
9645
  ]), a = /* @__PURE__ */ new Map([
9644
- ["boolean", at.In],
9645
- ["date", at.Equal],
9646
- ["datetime", at.Equal],
9647
- ["number", at.Equal],
9648
- ["string", at.Equal],
9649
- ["text", at.Equal],
9650
- ["enum", at.In],
9651
- ["reference", at.Equal]
9646
+ ["boolean", st.In],
9647
+ ["date", st.Equal],
9648
+ ["datetime", st.Equal],
9649
+ ["number", st.Equal],
9650
+ ["string", st.Equal],
9651
+ ["text", st.Equal],
9652
+ ["enum", st.In],
9653
+ ["reference", st.Equal]
9652
9654
  ]);
9653
9655
  function r(_) {
9654
9656
  var w;
@@ -9657,7 +9659,7 @@ function Ao() {
9657
9659
  }
9658
9660
  function s(_) {
9659
9661
  var k, S, M, V, O;
9660
- const y = `field_filter_${_.field}`, w = Date.now(), m = _.field, x = ((k = _.column) == null ? void 0 : k.title) || "", b = ((S = _.column) == null ? void 0 : S.dataType) || "string", g = a.get(b) || at.Equal, h = ((V = (M = _.column) == null ? void 0 : M.editor) == null ? void 0 : V.type) || i.get(b) || "text", T = o(h, (O = _.column) == null ? void 0 : O.filter), C = h === "lookup" || h === "combo-lookup" ? Pt.SmartHelp : h === "combo-list" ? Pt.Enum : Pt.Value;
9662
+ const y = `field_filter_${_.field}`, w = Date.now(), m = _.field, x = ((k = _.column) == null ? void 0 : k.title) || "", b = ((S = _.column) == null ? void 0 : S.dataType) || "string", g = a.get(b) || st.Equal, h = ((V = (M = _.column) == null ? void 0 : M.editor) == null ? void 0 : V.type) || i.get(b) || "text", T = o(h, (O = _.column) == null ? void 0 : O.filter), C = h === "lookup" || h === "combo-lookup" ? Pt.SmartHelp : h === "combo-list" ? Pt.Enum : Pt.Value;
9661
9663
  e.set(y, { id: y, fieldCode: m, fieldName: x, compareType: g, valueType: C, value: T, conditionId: w }), t.value = Array.from(e.values());
9662
9664
  }
9663
9665
  function u(_) {
@@ -9711,8 +9713,8 @@ function zo(t) {
9711
9713
  }
9712
9714
  function Bu(t, e, n, o, i) {
9713
9715
  var w, m, x, b, g, h;
9714
- const { getDifference: a, isBInA: r } = Qn(), { dataView: s, visibleDataItems: u } = n, { idField: d } = o, p = E(((m = (w = t.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : m.autoCheckChildren) || !1), l = E(((b = (x = t.hierarchy) == null ? void 0 : x.cascadeOption) == null ? void 0 : b.autoCheckParent) || !1), c = E(((h = (g = t.hierarchy) == null ? void 0 : g.cascadeOption) == null ? void 0 : h.selectionRange) || "All");
9715
- Ve(() => {
9716
+ const { getDifference: a, isBInA: r } = Zn(), { dataView: s, visibleDataItems: u } = n, { idField: d } = o, p = E(((m = (w = t.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : m.autoCheckChildren) || !1), l = E(((b = (x = t.hierarchy) == null ? void 0 : x.cascadeOption) == null ? void 0 : b.autoCheckParent) || !1), c = E(((h = (g = t.hierarchy) == null ? void 0 : g.cascadeOption) == null ? void 0 : h.selectionRange) || "All");
9717
+ Be(() => {
9716
9718
  var T;
9717
9719
  return (T = t.hierarchy) == null ? void 0 : T.cascadeOption;
9718
9720
  }, (T) => {
@@ -9721,12 +9723,12 @@ function Bu(t, e, n, o, i) {
9721
9723
  const v = z(() => c.value === "OnlyParent"), f = z(() => c.value === "OnlyChildren");
9722
9724
  function F(T, C) {
9723
9725
  let k = T;
9724
- const S = s.value[C], M = S[d.value], O = Array.from(S.__fv_descendant_index__).map((I) => s.value[I]), B = O.filter((I) => I.__fv_visible__ !== !1).map((I) => I.__fv_visible_index__).filter((I) => e.value[I]).map((I) => e.value[I]), L = B.map((I) => I.raw[d.value]), X = r(T, L), j = r(T, [M]);
9725
- return j && X && v.value && (k = a(T, L), B.forEach((I) => {
9726
+ const S = s.value[C], M = S[d.value], O = Array.from(S.__fv_descendant_index__).map((I) => s.value[I]), B = O.filter((I) => I.__fv_visible__ !== !1).map((I) => I.__fv_visible_index__).filter((I) => e.value[I]).map((I) => e.value[I]), L = B.map((I) => I.raw[d.value]), X = r(T, L), $ = r(T, [M]);
9727
+ return $ && X && v.value && (k = a(T, L), B.forEach((I) => {
9726
9728
  I.disabled = !0;
9727
9729
  }), O.forEach((I) => {
9728
9730
  I.__fv_disabled__ = !0;
9729
- })), j && X && f.value && (k = a(T, [M]), B.forEach((I) => {
9731
+ })), $ && X && f.value && (k = a(T, [M]), B.forEach((I) => {
9730
9732
  I.disabled = !0;
9731
9733
  }), O.forEach((I) => {
9732
9734
  I.__fv_disabled__ = !0;
@@ -9752,7 +9754,7 @@ function Bu(t, e, n, o, i) {
9752
9754
  return { autoCheckChildren: p, autoCheckParent: l, interactAfterCheckHierarchyItem: y };
9753
9755
  }
9754
9756
  function Go(t, e, n, o, i, a) {
9755
- const { getDifference: r, isBInA: s } = Qn();
9757
+ const { getDifference: r, isBInA: s } = Zn();
9756
9758
  Jt();
9757
9759
  const { dataView: u, fold: d, hasRealChildren: p, unFold: l, reOrderVisibleIndex: c } = n, { select: v, selectDataItem: f, unSelect: F, unSelectDataItem: _, indeterminate: y, indeterminateDataItem: w, getSelectedItems: m, selectedValues: x, currentSelectedDataId: b } = i, { autoCheckChildren: g, autoCheckParent: h, interactAfterCheckHierarchyItem: T } = Bu(t, e, n, o), { idField: C } = o;
9758
9760
  function k() {
@@ -9762,18 +9764,18 @@ function Go(t, e, n, o, i, a) {
9762
9764
  if (!h.value)
9763
9765
  return;
9764
9766
  const P = k();
9765
- D.raw.__fv_children_index__.some(($) => P.includes($)) && !!D.checked !== !0 && y(D);
9767
+ D.raw.__fv_children_index__.some((j) => P.includes(j)) && !!D.checked !== !0 && y(D);
9766
9768
  }
9767
9769
  function M(D, P, I) {
9768
- const { check: $, uncheck: A, uncertain: J } = I, q = D.raw ? D.raw : D;
9769
- P.length === q.__fv_children_index__.length && P.length !== 0 ? A(D) : P.length === 0 ? $(D) : P.length < q.__fv_children_index__.length && J(D);
9770
+ const { check: j, uncheck: A, uncertain: J } = I, q = D.raw ? D.raw : D;
9771
+ P.length === q.__fv_children_index__.length && P.length !== 0 ? A(D) : P.length === 0 ? j(D) : P.length < q.__fv_children_index__.length && J(D);
9770
9772
  }
9771
9773
  function V(D) {
9772
9774
  if (!h.value)
9773
9775
  return;
9774
9776
  let P = D.raw.__fv_parent_index__;
9775
9777
  for (; P !== void 0; ) {
9776
- const I = k(), $ = u.value[P], A = r($.__fv_children_index__, I), J = e.value.find((G) => G.raw[C.value] === $[C.value]), q = $.__fv_visible__ !== !1 && J ? J : $, le = $.__fv_visible__ !== !1 && J ? {
9778
+ const I = k(), j = u.value[P], A = r(j.__fv_children_index__, I), J = e.value.find((G) => G.raw[C.value] === j[C.value]), q = j.__fv_visible__ !== !1 && J ? J : j, ae = j.__fv_visible__ !== !1 && J ? {
9777
9779
  check: v,
9778
9780
  uncheck: F,
9779
9781
  uncertain: y
@@ -9782,19 +9784,19 @@ function Go(t, e, n, o, i, a) {
9782
9784
  uncheck: _,
9783
9785
  uncertain: w
9784
9786
  };
9785
- M(q, A, le), P = $.__fv_parent_index__;
9787
+ M(q, A, ae), P = j.__fv_parent_index__;
9786
9788
  }
9787
9789
  }
9788
9790
  function O(D) {
9789
9791
  const P = !!D.checked;
9790
9792
  if (g.value) {
9791
- const $ = D.raw.__fv_children_index__.map((H) => u.value[H]).filter((H) => !!H.__fv_checked__ !== P), A = $.filter((H) => H.__fv_visible__ === !1), J = $.filter((H) => H.__fv_visible__ !== !1), q = [], le = /* @__PURE__ */ new Map();
9793
+ const j = D.raw.__fv_children_index__.map((H) => u.value[H]).filter((H) => !!H.__fv_checked__ !== P), A = j.filter((H) => H.__fv_visible__ === !1), J = j.filter((H) => H.__fv_visible__ !== !1), q = [], ae = /* @__PURE__ */ new Map();
9792
9794
  e.value.forEach((H) => {
9793
- le.set(H.raw[C.value], H);
9795
+ ae.set(H.raw[C.value], H);
9794
9796
  });
9795
9797
  const G = [];
9796
9798
  J.forEach((H) => {
9797
- le.has(H[C.value]) ? q.push(le.get(H[C.value])) : G.push(H);
9799
+ ae.has(H[C.value]) ? q.push(ae.get(H[C.value])) : G.push(H);
9798
9800
  }), q.forEach((H) => {
9799
9801
  P ? v(H) : F(H);
9800
9802
  }), [...A, ...G].forEach((H) => {
@@ -9811,26 +9813,26 @@ function Go(t, e, n, o, i, a) {
9811
9813
  function L(D, P) {
9812
9814
  let I = -1;
9813
9815
  if (D.raw.__fv_parent_index__ > -1) {
9814
- const q = e.value[D.raw.__fv_parent_index__].raw.__fv_descendant_index__, le = q.length > 1, G = q.findIndex((W) => W === P), H = G === q.length - 1;
9815
- I = le ? H ? q[G - 1] : q[G + 1] : -1;
9816
+ const q = e.value[D.raw.__fv_parent_index__].raw.__fv_descendant_index__, ae = q.length > 1, G = q.findIndex((W) => W === P), H = G === q.length - 1;
9817
+ I = ae ? H ? q[G - 1] : q[G + 1] : -1;
9816
9818
  }
9817
9819
  return I > -1 ? e.value[I] : null;
9818
9820
  }
9819
9821
  function X(D) {
9820
9822
  return D.raw.__fv_parent_index__ > -1 ? e.value[D.raw.__fv_parent_index__] : null;
9821
9823
  }
9822
- function j(D) {
9824
+ function $(D) {
9823
9825
  const P = e.value[D];
9824
9826
  if (!P)
9825
9827
  return null;
9826
9828
  const I = L(P, D), A = I !== null ? I : X(P);
9827
9829
  return A ? A.raw[C.value] : null;
9828
9830
  }
9829
- return { getNextSelectableHierarchyItemId: j, toggleSelectHierarchyItem: B };
9831
+ return { getNextSelectableHierarchyItemId: $, toggleSelectHierarchyItem: B };
9830
9832
  }
9831
9833
  function qo(t, e, n, o, i, a, r, s, u) {
9832
- var ht;
9833
- const { dataView: d, visibleDataItems: p } = e, { getVisualData: l, maxVisibleRowIndex: c, minVisibleRowIndex: v } = i, f = z(() => o.value.primaryColumnsWidth), F = z(() => o.value.leftColumnsWidth), _ = z(() => o.value.rightColumnsWidth), y = ((ht = t.rowOption) == null ? void 0 : ht.height) || 28, w = E(0), m = E(0);
9834
+ var gt;
9835
+ const { dataView: d, visibleDataItems: p } = e, { getVisualData: l, maxVisibleRowIndex: c, minVisibleRowIndex: v } = i, f = z(() => o.value.primaryColumnsWidth), F = z(() => o.value.leftColumnsWidth), _ = z(() => o.value.rightColumnsWidth), y = ((gt = t.rowOption) == null ? void 0 : gt.height) || 28, w = E(0), m = E(0);
9834
9836
  let x = 0, b = a.value - 1;
9835
9837
  const g = E(0), h = E(0), T = E(0), C = E(t.virtualized), k = 24, S = 1.5;
9836
9838
  let M = null;
@@ -9848,26 +9850,26 @@ function qo(t, e, n, o, i, a, r, s, u) {
9848
9850
  for (; h.value > 0 && Ce < k; )
9849
9851
  he *= S, Ce = Math.floor(he * h.value);
9850
9852
  return Ce;
9851
- }), B = z(() => Math.floor(T.value / Math.max(f.value, T.value) * g.value)), L = 0, X = 0, j = z(() => g.value - (F.value + f.value + _.value + s.value));
9853
+ }), B = z(() => Math.floor(T.value / Math.max(f.value, T.value) * g.value)), L = 0, X = 0, $ = z(() => g.value - (F.value + f.value + _.value + s.value));
9852
9854
  function D(ie) {
9853
9855
  const Ce = Math.floor(ie / y) + 1, $e = p.value;
9854
9856
  return $e.length > Ce ? $e[Ce].__fv_visible_index__ - 1 : 0;
9855
9857
  }
9856
9858
  function P(ie, he, Ce) {
9857
- let $e = ie, He = he;
9858
- const Ye = he - ie + 1;
9859
- if (Ye < r + a.value + r) {
9860
- const nt = r + a.value + r - Ye, pt = he + nt <= Ce, it = 0 + nt <= ie;
9861
- if (pt)
9862
- He += nt, b = He;
9863
- else if (it)
9864
- $e -= nt, x = $e;
9859
+ let $e = ie, Ae = he;
9860
+ const Xe = he - ie + 1;
9861
+ if (Xe < r + a.value + r) {
9862
+ const rt = r + a.value + r - Xe, vt = he + rt <= Ce, lt = 0 + rt <= ie;
9863
+ if (vt)
9864
+ Ae += rt, b = Ae;
9865
+ else if (lt)
9866
+ $e -= rt, x = $e;
9865
9867
  else {
9866
- const Q = Ce - he, N = nt - Q;
9867
- He = Math.min(he + Q, Ce), $e = Math.max(ie - N, 0);
9868
+ const Q = Ce - he, N = rt - Q;
9869
+ Ae = Math.min(he + Q, Ce), $e = Math.max(ie - N, 0);
9868
9870
  }
9869
9871
  }
9870
- return { actualStart: $e, actualEnd: He };
9872
+ return { actualStart: $e, actualEnd: Ae };
9871
9873
  }
9872
9874
  function I(ie) {
9873
9875
  var Q, N;
@@ -9876,19 +9878,19 @@ function qo(t, e, n, o, i, a, r, s, u) {
9876
9878
  n.value = [];
9877
9879
  return;
9878
9880
  }
9879
- const Ce = (Q = t.pagination) != null && Q.enable ? 0 : Math.max(x - r, 0), $e = he[he.length - 1].__fv_visible_index__, He = (N = t.pagination) != null && N.enable ? he.length - 1 : Math.min(b + r, $e), { actualStart: Ye, actualEnd: nt } = P(Ce, He, $e), pt = he[Ye - 1], it = l(Ye, nt, pt, ie);
9880
- it.length && (n.value = [...it]);
9881
+ const Ce = (Q = t.pagination) != null && Q.enable ? 0 : Math.max(x - r, 0), $e = he[he.length - 1].__fv_visible_index__, Ae = (N = t.pagination) != null && N.enable ? he.length - 1 : Math.min(b + r, $e), { actualStart: Xe, actualEnd: rt } = P(Ce, Ae, $e), vt = he[Xe - 1], lt = l(Xe, rt, vt, ie);
9882
+ lt.length && (n.value = [...lt]);
9881
9883
  }
9882
- const $ = z(() => V() > h.value), A = z(() => Math.floor(f.value) > T.value);
9884
+ const j = z(() => V() > h.value), A = z(() => Math.floor(f.value) > T.value);
9883
9885
  function J(ie, he) {
9884
9886
  let Ce = ie;
9885
- const $e = Ce > L, He = $.value;
9886
- He && Ce < h.value - he && (Ce = h.value - he), (!He || $e) && (Ce = L), w.value !== Ce && (w.value = Ce);
9887
+ const $e = Ce > L, Ae = j.value;
9888
+ Ae && Ce < h.value - he && (Ce = h.value - he), (!Ae || $e) && (Ce = L), w.value !== Ce && (w.value = Ce);
9887
9889
  }
9888
9890
  function q() {
9889
9891
  C.value && (x = D(Math.abs(w.value)), b = x + a.value - 1, (x < v.value || b > c.value - r / 2) && I());
9890
9892
  }
9891
- function le(ie) {
9893
+ function ae(ie) {
9892
9894
  let he = w.value + ie;
9893
9895
  he > L && (he = L);
9894
9896
  const Ce = V();
@@ -9900,7 +9902,7 @@ function qo(t, e, n, o, i, a, r, s, u) {
9900
9902
  return;
9901
9903
  }
9902
9904
  let he = m.value + ie;
9903
- he > X && (he = X), he < j.value && (he = j.value), m.value !== he && (m.value = he);
9905
+ he > X && (he = X), he < $.value && (he = $.value), m.value !== he && (m.value = he);
9904
9906
  }
9905
9907
  function H() {
9906
9908
  Math.abs(m.value) + T.value > f.value && (m.value = Math.min(T.value - f.value, 0));
@@ -9912,21 +9914,21 @@ function qo(t, e, n, o, i, a, r, s, u) {
9912
9914
  const ie = V();
9913
9915
  J(w.value, ie);
9914
9916
  }
9915
- Ve([T, f], () => {
9917
+ Be([T, f], () => {
9916
9918
  G(0);
9917
- }), Ve(h, (ie, he) => {
9918
- ie !== he && ie >= d.value.length * y && le(0);
9919
+ }), Be(h, (ie, he) => {
9920
+ ie !== he && ie >= d.value.length * y && ae(0);
9919
9921
  });
9920
- function fe(ie) {
9922
+ function de(ie) {
9921
9923
  let { deltaX: he } = ie, Ce = -1 * ie.deltaY;
9922
9924
  return typeof he > "u" && (he = -1 * ie.wheelDeltaX / 6), typeof Ce > "u" && (Ce = ie.wheelDeltaY / 6), ie.deltaMode && ie.deltaMode === 1 && (he *= 10, Ce *= 10), ie.shiftKey ? { deltaY: -Ce, deltaX: -he } : { deltaX: he, deltaY: Ce };
9923
9925
  }
9924
- function xe(ie) {
9925
- if (t.disabled || !$.value || ie.target.tagName === "TEXTAREA")
9926
+ function Te(ie) {
9927
+ if (t.disabled || !j.value || ie.target.tagName === "TEXTAREA")
9926
9928
  return;
9927
9929
  ie.preventDefault(), ie.stopPropagation();
9928
- const { deltaX: he, deltaY: Ce } = fe(ie);
9929
- le(Ce), G(he);
9930
+ const { deltaX: he, deltaY: Ce } = de(ie);
9931
+ ae(Ce), G(he);
9930
9932
  }
9931
9933
  const be = z(() => ({
9932
9934
  height: `${d.value.length * y}px`,
@@ -9934,7 +9936,7 @@ function qo(t, e, n, o, i, a, r, s, u) {
9934
9936
  transform: `translateY(${w.value}px)`
9935
9937
  })), ye = z(() => ({
9936
9938
  transform: `translateY(${w.value}px)`
9937
- })), Oe = z(() => ({
9939
+ })), ke = z(() => ({
9938
9940
  height: `${(t.autoHeight ? p.value : d.value).length * y}px`,
9939
9941
  width: `${f.value}px`,
9940
9942
  transform: `translate(${m.value}px, ${w.value}px)`
@@ -9944,17 +9946,17 @@ function qo(t, e, n, o, i, a, r, s, u) {
9944
9946
  height: `${d.value.length * y}px`,
9945
9947
  width: `${_.value}px`,
9946
9948
  transform: `translateY(${w.value}px)`
9947
- })), ce = z(() => ({
9949
+ })), ue = z(() => ({
9948
9950
  transform: `translateY(${w.value}px)`
9949
- })), we = z(() => ({
9951
+ })), _e = z(() => ({
9950
9952
  height: `${d.value.length * y}px`,
9951
9953
  width: `${s.value}px`,
9952
9954
  transform: `translateY(${w.value}px)`
9953
- })), _e = z(() => ({
9955
+ })), Se = z(() => ({
9954
9956
  width: `${F.value}px`
9955
- })), Le = z(() => ({
9957
+ })), He = z(() => ({
9956
9958
  transform: `translateX(${m.value}px)`
9957
- })), ze = z(() => ({
9959
+ })), qe = z(() => ({
9958
9960
  width: `${_.value}px`
9959
9961
  })), ne = z(() => {
9960
9962
  const ie = V();
@@ -9964,81 +9966,81 @@ function qo(t, e, n, o, i, a, r, s, u) {
9964
9966
  height: `${O.value}px`,
9965
9967
  top: `${ne.value}px`,
9966
9968
  backgroundColor: "#cccccc !important"
9967
- })), Ne = z(() => m.value / j.value * (g.value - B.value)), je = z(() => ({
9969
+ })), Ve = z(() => m.value / $.value * (g.value - B.value)), Le = z(() => ({
9968
9970
  height: "8px",
9969
9971
  width: `${B.value}px`,
9970
- left: `${Ne.value}px`,
9972
+ left: `${Ve.value}px`,
9971
9973
  backgroundColor: "#cccccc !important"
9972
- })), Re = E(!1), K = E(-1), ae = E(-1), Fe = E();
9973
- function Ee(ie) {
9974
- if (Re.value && ae.value !== -1) {
9975
- const he = ae.value - ie.pageX, Ce = g.value - B.value;
9974
+ })), Ne = E(!1), K = E(-1), we = E(-1), De = E();
9975
+ function me(ie) {
9976
+ if (Ne.value && we.value !== -1) {
9977
+ const he = we.value - ie.pageX, Ce = g.value - B.value;
9976
9978
  if (Math.abs(he) <= Ce) {
9977
9979
  const $e = he / (T.value - B.value) * (f.value - T.value);
9978
- G($e), ae.value = ie.pageX;
9980
+ G($e), we.value = ie.pageX;
9979
9981
  }
9980
9982
  }
9981
9983
  }
9982
- function Ge(ie) {
9983
- if (Re.value && K.value !== -1) {
9984
+ function Re(ie) {
9985
+ if (Ne.value && K.value !== -1) {
9984
9986
  const he = K.value - ie.pageY, Ce = V(), $e = Ce - O.value;
9985
9987
  if (Math.abs(he) <= $e) {
9986
- const He = he / (h.value - O.value) * (Ce - h.value);
9987
- le(He), K.value = ie.pageY;
9988
+ const Ae = he / (h.value - O.value) * (Ce - h.value);
9989
+ ae(Ae), K.value = ie.pageY;
9988
9990
  }
9989
9991
  }
9990
9992
  }
9991
- function rt(ie) {
9992
- Re.value = !1, K.value = -1, ae.value = -1, document.removeEventListener("mouseup", rt), M && (document.removeEventListener("mousemove", M), M = null), document.body.style.userSelect = "", Fe.value && (Fe.value.style.opacity = null);
9993
+ function We(ie) {
9994
+ Ne.value = !1, K.value = -1, we.value = -1, document.removeEventListener("mouseup", We), M && (document.removeEventListener("mousemove", M), M = null), document.body.style.userSelect = "", De.value && (De.value.style.opacity = null);
9993
9995
  }
9994
- function Ct(ie, he, Ce) {
9995
- var Ye;
9996
- Re.value = !0;
9997
- const $e = (Ye = ie.target) == null ? void 0 : Ye.parentElement;
9998
- $e && ($e.style.opacity = "1", Fe.value = $e);
9999
- const He = Ce === "horizontal" ? Ee : fr(Ge, 50);
10000
- M || (M = He), Ce === "vertical" && (K.value = ie.pageY), Ce === "horizontal" && (ae.value = ie.pageX), he.value && (he.value, document.addEventListener("mousemove", M), document.addEventListener("mouseup", rt), document.body.style.userSelect = "none");
9996
+ function et(ie, he, Ce) {
9997
+ var Xe;
9998
+ Ne.value = !0;
9999
+ const $e = (Xe = ie.target) == null ? void 0 : Xe.parentElement;
10000
+ $e && ($e.style.opacity = "1", De.value = $e);
10001
+ const Ae = Ce === "horizontal" ? me : mr(Re, 50);
10002
+ M || (M = Ae), Ce === "vertical" && (K.value = ie.pageY), Ce === "horizontal" && (we.value = ie.pageX), he.value && (he.value, document.addEventListener("mousemove", M), document.addEventListener("mouseup", We), document.body.style.userSelect = "none");
10001
10003
  }
10002
- function vt(ie) {
10004
+ function at(ie) {
10003
10005
  const he = d.value.length * y - h.value;
10004
10006
  let Ce = ie * y;
10005
- Ce >= he && (Ce = he), le(-Ce - w.value);
10007
+ Ce >= he && (Ce = he), ae(-Ce - w.value);
10006
10008
  }
10007
- function ft() {
10008
- vt(d.value.length);
10009
+ function mt() {
10010
+ at(d.value.length);
10009
10011
  }
10010
10012
  function wt(ie) {
10011
- le(ie - w.value);
10013
+ ae(ie - w.value);
10012
10014
  }
10013
10015
  return {
10014
10016
  dataGridWidth: g,
10015
10017
  fitHorizontalScroll: H,
10016
- gridDataStyle: Oe,
10017
- gridHeaderColumnsStyle: Le,
10018
+ gridDataStyle: ke,
10019
+ gridHeaderColumnsStyle: He,
10018
10020
  gridMergedDataStyle: Y,
10019
- gridSideStyle: we,
10020
- horizontalScrollThumbStyle: je,
10021
+ gridSideStyle: _e,
10022
+ horizontalScrollThumbStyle: Le,
10021
10023
  leftFixedGridDataStyle: be,
10022
- leftFixedGridHeaderColumnsStyle: _e,
10024
+ leftFixedGridHeaderColumnsStyle: Se,
10023
10025
  leftFixedGridMergedDataStyle: ye,
10024
10026
  offsetX: m,
10025
10027
  offsetY: w,
10026
- onMouseDownScrollThumb: Ct,
10027
- onWheel: xe,
10028
+ onMouseDownScrollThumb: et,
10029
+ onWheel: Te,
10028
10030
  reCalculateVisualDataRows: I,
10029
10031
  resetScroll: W,
10030
10032
  rightFixedGridDataStyle: oe,
10031
- rightFixedGridHeaderColumnsStyle: ze,
10032
- rightFixedGridMergedDataStyle: ce,
10033
+ rightFixedGridHeaderColumnsStyle: qe,
10034
+ rightFixedGridMergedDataStyle: ue,
10033
10035
  shouldShowHorizontalScrollbar: A,
10034
- shouldShowVirticalScrollbar: $,
10036
+ shouldShowVirticalScrollbar: j,
10035
10037
  updateVirticalScroll: Z,
10036
10038
  updateVisibleRowsOnLatestVisibleScope: q,
10037
10039
  verticalScrollThumbStyle: ve,
10038
10040
  viewPortWidth: T,
10039
10041
  viewPortHeight: h,
10040
- scrollToBottom: ft,
10041
- scrollToRowByIndex: vt,
10042
+ scrollToBottom: mt,
10043
+ scrollToRowByIndex: at,
10042
10044
  scrollTo: wt
10043
10045
  };
10044
10046
  }
@@ -10127,7 +10129,7 @@ function Ru() {
10127
10129
  function Pu() {
10128
10130
  const {
10129
10131
  formatTo: t
10130
- } = an();
10132
+ } = ln();
10131
10133
  function e(o, i) {
10132
10134
  if (o) {
10133
10135
  let a = "yyyy-MM-dd";
@@ -10152,7 +10154,7 @@ function Pu() {
10152
10154
  function Du() {
10153
10155
  const {
10154
10156
  formatTo: t
10155
- } = Xn();
10157
+ } = Jn();
10156
10158
  function e(n, o) {
10157
10159
  const i = {
10158
10160
  precision: o.precision,
@@ -10167,7 +10169,7 @@ function Du() {
10167
10169
  renderNumberColumn: e
10168
10170
  };
10169
10171
  }
10170
- function $u() {
10172
+ function ju() {
10171
10173
  function t(e, n) {
10172
10174
  if (e) {
10173
10175
  const o = {};
@@ -10182,10 +10184,10 @@ function $u() {
10182
10184
  renderImageColumn: t
10183
10185
  };
10184
10186
  }
10185
- function ju() {
10187
+ function $u() {
10186
10188
  const {
10187
10189
  locale: t
10188
- } = dt();
10190
+ } = pt();
10189
10191
  function e(n, o) {
10190
10192
  return (n == null ? void 0 : n[t.value || "zh-CHS"]) || "";
10191
10193
  }
@@ -10205,9 +10207,9 @@ function Lu() {
10205
10207
  renderDateTimeColumn: i
10206
10208
  } = Pu(), {
10207
10209
  renderImageColumn: a
10208
- } = $u(), {
10210
+ } = ju(), {
10209
10211
  renderMultilingualColumn: r
10210
- } = ju();
10212
+ } = $u();
10211
10213
  function s(p) {
10212
10214
  return typeof p == "boolean" ? p.toString() : p;
10213
10215
  }
@@ -10220,8 +10222,8 @@ function Lu() {
10220
10222
  function d(p, l, c) {
10221
10223
  const {
10222
10224
  column: v
10223
- } = p, f = Qe(l.raw, v.field), F = c.options || c;
10224
- return c.type === st.NONE ? s(f) : c.type === st.CUSTOM ? u(f, c, l) : c.type === st.ENUM ? e(f, F) : c.type === st.NUMBER ? n(f, F) : c.type === st.BOOLEAN ? t(f, F) : c.type === st.DATE ? o(f, F) : c.type === st.DATE_TIME ? i(f, c) : c.type === st.IMAGE ? a(f, F) : c.type === st.MULTI_LINGUAL ? r(f, F) : s(f);
10225
+ } = p, f = Ze(l.raw, v.field), F = c.options || c;
10226
+ return c.type === ct.NONE ? s(f) : c.type === ct.CUSTOM ? u(f, c, l) : c.type === ct.ENUM ? e(f, F) : c.type === ct.NUMBER ? n(f, F) : c.type === ct.BOOLEAN ? t(f, F) : c.type === ct.DATE ? o(f, F) : c.type === ct.DATE_TIME ? i(f, c) : c.type === ct.IMAGE ? a(f, F) : c.type === ct.MULTI_LINGUAL ? r(f, F) : s(f);
10225
10227
  }
10226
10228
  return {
10227
10229
  renderFormatColumn: d
@@ -10231,15 +10233,15 @@ function Yo(t, e, n) {
10231
10233
  var y;
10232
10234
  const { isUndefined: o } = Jt(), i = E(t.mergeCell);
10233
10235
  (y = E(t.rowOption).value) != null && y.wrapContent;
10234
- const { updateVisualInfomation: r } = n, { renderCommandColumn: s } = $a(t), { renderFormatColumn: u } = Lu();
10236
+ const { updateVisualInfomation: r } = n, { renderCommandColumn: s } = ja(t), { renderFormatColumn: u } = Lu();
10235
10237
  function d(w, m, x, b, g, h = 1) {
10236
10238
  const T = {
10237
10239
  colSpan: h,
10238
10240
  rowSpan: 1,
10239
10241
  index: x,
10240
10242
  field: w,
10241
- data: Qe(b, w),
10242
- editingData: Qe(b, w),
10243
+ data: Ze(b, w),
10244
+ editingData: Ze(b, w),
10243
10245
  parent: g,
10244
10246
  mode: m,
10245
10247
  align: "left",
@@ -10262,11 +10264,11 @@ function Yo(t, e, n) {
10262
10264
  return w.getEditor = (b) => e.getEditor(b, m, b.parent), w.setRef = (b) => r(b, w, x), w.update = (b) => {
10263
10265
  b !== void 0 && (w.editingData = b);
10264
10266
  }, w.accept = () => {
10265
- tn(w.editingData, x, m.field), w.data = Qe(x, m.field);
10267
+ tn(w.editingData, x, m.field), w.data = Ze(x, m.field);
10266
10268
  }, w.cancel = () => {
10267
10269
  w.editingData = w.data;
10268
10270
  }, w.updateData = (b) => {
10269
- tn(Qe(b, m.field), x, m.field), w.data = Qe(x, m.field), w.editingData = Qe(x, m.field);
10271
+ tn(Ze(b, m.field), x, m.field), w.data = Ze(x, m.field), w.editingData = Ze(x, m.field);
10270
10272
  }, w;
10271
10273
  }
10272
10274
  function l(w, m) {
@@ -10283,13 +10285,13 @@ function Yo(t, e, n) {
10283
10285
  i.value && c(w, m, x.field);
10284
10286
  }
10285
10287
  function f(w, m) {
10286
- m.showEllipsis !== void 0 && (w.showEllipsis = m.showEllipsis), w.showTips = o(m.showTips) ? !0 : m.showTips, w.column = m, w.align = m.align || "left", w.valign = m.valign || "middle", w.mode = t.editable ? tt.editable : tt.readonly;
10288
+ m.showEllipsis !== void 0 && (w.showEllipsis = m.showEllipsis), w.showTips = o(m.showTips) ? !0 : m.showTips, w.column = m, w.align = m.align || "left", w.valign = m.valign || "middle", w.mode = t.editable ? ot.editable : ot.readonly;
10287
10289
  }
10288
10290
  function F(w, m, x, b) {
10289
10291
  f(w, m), p(w, m, b), l(w, m), v(w, x, m);
10290
10292
  }
10291
10293
  function _(w, m, x, b, g) {
10292
- const h = t.editable ? tt.editable : tt.readonly, T = d(w.field, h, m, x, b);
10294
+ const h = t.editable ? ot.editable : ot.readonly, T = d(w.field, h, m, x, b);
10293
10295
  return F(T, w, g, x), T;
10294
10296
  }
10295
10297
  return { createCellByColumn: _, createCellByField: d, updateCellByColumn: F };
@@ -10297,7 +10299,7 @@ function Yo(t, e, n) {
10297
10299
  function Xo(t, e, n, o, i, a, r) {
10298
10300
  var m, x;
10299
10301
  const s = E(t.rowOption), u = ((m = s.value) == null ? void 0 : m.height) || 28, d = ((x = s.value) == null ? void 0 : x.wrapContent) || !1, { idField: p } = i, { collapseField: l } = o, { updateRowPosition: c } = a, { createCellByColumn: v } = r, f = (b, g, h, T) => {
10300
- tn(Qe(b, T), g, T), h.data[T].data = Qe(g, T), h.data[T].editingData = Qe(g, T);
10302
+ tn(Ze(b, T), g, T), h.data[T].data = Ze(g, T), h.data[T].editingData = Ze(g, T);
10301
10303
  };
10302
10304
  function F(b, g, h, T, C, k) {
10303
10305
  var A, J, q;
@@ -10305,7 +10307,7 @@ function Xo(t, e, n, o, i, a, r) {
10305
10307
  __fv_data_grid_group_field__: S,
10306
10308
  __fv_data_grid_group_value__: M,
10307
10309
  __fv_data_index__: V
10308
- } = h, O = h.__fv_data_grid_group_layer__ || (h.__fv_parents__ ? (A = h.__fv_parents__) == null ? void 0 : A.size : 0) || 0, B = typeof h.parent == "number" ? Number(h.parent) : -1, L = h.__fv_data_grid_group_collapse__ || h[l.value], X = h.__fv_visible__ === void 0 ? !0 : h.__fv_visible__, j = h.__fv_checked__, D = h.__fv_indeterminate__, P = h.__fv_disabled__ || h[((J = t.rowOption) == null ? void 0 : J.disabledField) || "disabled"], I = t.hierarchy && e.isVisibleInTree(h), $ = {
10310
+ } = h, O = h.__fv_data_grid_group_layer__ || (h.__fv_parents__ ? (A = h.__fv_parents__) == null ? void 0 : A.size : 0) || 0, B = typeof h.parent == "number" ? Number(h.parent) : -1, L = h.__fv_data_grid_group_collapse__ || h[l.value], X = h.__fv_visible__ === void 0 ? !0 : h.__fv_visible__, $ = h.__fv_checked__, D = h.__fv_indeterminate__, P = h.__fv_disabled__ || h[((J = t.rowOption) == null ? void 0 : J.disabledField) || "disabled"], I = t.hierarchy && e.isVisibleInTree(h), j = {
10309
10311
  collapse: L,
10310
10312
  data: {},
10311
10313
  dataIndex: V,
@@ -10318,24 +10320,24 @@ function Xo(t, e, n, o, i, a, r) {
10318
10320
  top: k,
10319
10321
  type: b,
10320
10322
  raw: h,
10321
- checked: j,
10323
+ checked: $,
10322
10324
  disabled: P,
10323
10325
  indeterminate: D,
10324
- setRef: (le) => {
10325
- $.ref = le;
10326
+ setRef: (ae) => {
10327
+ j.ref = ae;
10326
10328
  },
10327
10329
  visible: X && I || X && !t.hierarchy,
10328
- status: ct.initial,
10329
- updateCell: (le, G) => {
10330
- f(le, h, $, G), e.updateSummary();
10330
+ status: ft.initial,
10331
+ updateCell: (ae, G) => {
10332
+ f(ae, h, j, G), e.updateSummary();
10331
10333
  },
10332
- updateCells: (le, G) => {
10334
+ updateCells: (ae, G) => {
10333
10335
  G.forEach((H) => {
10334
- f(le, h, $, H);
10336
+ f(ae, h, j, H);
10335
10337
  });
10336
10338
  }
10337
10339
  };
10338
- return T || (h.__fv_data_position__ = 0), d || ($.height = u, h.__fv_data_height__ = $.height, c($, h)), (q = s.value) != null && q.customRowStatus && (s.value.customRowStatus($), h.__fv_disabled__ = $.disabled), $;
10340
+ return T || (h.__fv_data_position__ = 0), d || (j.height = u, h.__fv_data_height__ = j.height, c(j, h)), (q = s.value) != null && q.customRowStatus && (s.value.customRowStatus(j), h.__fv_disabled__ = j.disabled), j;
10339
10341
  }
10340
10342
  function _(b, g, h, T, C, k) {
10341
10343
  const S = F(Rt.data, C, g, h, T, k);
@@ -10371,34 +10373,34 @@ function Jo(t, e, n, o, i) {
10371
10373
  function y(I) {
10372
10374
  return v && v.raw[a.value] === I ? v : null;
10373
10375
  }
10374
- const w = mt({});
10375
- function m(I, $, A = {}) {
10376
- I.mode = tt.editing, c = I, v = $, f = Qe($ == null ? void 0 : $.raw, I.field), F = A;
10376
+ const w = ht({});
10377
+ function m(I, j, A = {}) {
10378
+ I.mode = ot.editing, c = I, v = j, f = Ze(j == null ? void 0 : j.raw, I.field), F = A;
10377
10379
  for (const J in w)
10378
10380
  delete w[J];
10379
10381
  }
10380
10382
  function x(I) {
10381
- I.accept(), I.mode = tt.editable, c = null;
10382
- const $ = {};
10383
+ I.accept(), I.mode = ot.editable, c = null;
10384
+ const j = {};
10383
10385
  v && (Object.keys(v).forEach((A) => {
10384
- $[A] = v == null ? void 0 : v[A];
10386
+ j[A] = v == null ? void 0 : v[A];
10385
10387
  }), v = null), e.emit("endEditCell", {
10386
10388
  cell: I,
10387
- row: $,
10388
- newValue: Qe($ == null ? void 0 : $.raw, I.field),
10389
+ row: j,
10390
+ newValue: Ze(j == null ? void 0 : j.raw, I.field),
10389
10391
  oldValue: f,
10390
10392
  column: F,
10391
10393
  editor: w
10392
10394
  });
10393
10395
  }
10394
10396
  function b(I) {
10395
- const $ = Promise.resolve(!0);
10396
- return I ? $.then(() => lt(t.beforeEndEditCell) ? !0 : typeof t.beforeEndEditCell == "function" ? t.beforeEndEditCell({
10397
+ const j = Promise.resolve(!0);
10398
+ return I ? j.then(() => ut(t.beforeEndEditCell) ? !0 : typeof t.beforeEndEditCell == "function" ? t.beforeEndEditCell({
10397
10399
  cell: I,
10398
10400
  row: v,
10399
10401
  newValue: I.editingData,
10400
10402
  oldValue: f
10401
- }) : () => !0).then((A) => (A && (x(I), v && (v = null)), A)) : $;
10403
+ }) : () => !0).then((A) => (A && (x(I), v && (v = null)), A)) : j;
10402
10404
  }
10403
10405
  function g(I) {
10404
10406
  if (_ && _ !== I.target) {
@@ -10419,28 +10421,28 @@ function Jo(t, e, n, o, i) {
10419
10421
  });
10420
10422
  }
10421
10423
  }
10422
- function h(I, $, A) {
10424
+ function h(I, j, A) {
10423
10425
  return Promise.resolve().then(() => {
10424
10426
  var q;
10425
10427
  const J = (q = A.editor) == null ? void 0 : q.readonly;
10426
- return !lt(t.beforeEditCell) && typeof t.beforeEditCell == "function" ? t.beforeEditCell({
10428
+ return !ut(t.beforeEditCell) && typeof t.beforeEditCell == "function" ? t.beforeEditCell({
10427
10429
  row: I,
10428
- cell: $,
10430
+ cell: j,
10429
10431
  rawData: I.raw,
10430
10432
  column: A
10431
10433
  }) : !J;
10432
10434
  }).then((J) => {
10433
- J && (m($, I, A), document.body.removeEventListener("click", g, !0), document.body.addEventListener("click", g, !0));
10435
+ J && (m(j, I, A), document.body.removeEventListener("click", g, !0), document.body.addEventListener("click", g, !0));
10434
10436
  });
10435
10437
  }
10436
- function T(I, $, A, J = {}) {
10437
- I.stopPropagation(), p(I, A), r.value && s.value.editMode === "cell" && $.mode === tt.editable && b(c).then(() => {
10438
- c || h(A, $, J);
10438
+ function T(I, j, A, J = {}) {
10439
+ I.stopPropagation(), p(I, A), r.value && s.value.editMode === "cell" && j.mode === ot.editable && b(c).then(() => {
10440
+ c || h(A, j, J);
10439
10441
  });
10440
10442
  }
10441
- function C(I, $, A, J = {}) {
10442
- I.stopPropagation(), d(I, A), r.value && s.value.editMode === "cell" && $.mode === tt.editable && b(c).then(() => {
10443
- c || h(A, $, J);
10443
+ function C(I, j, A, J = {}) {
10444
+ I.stopPropagation(), d(I, A), r.value && s.value.editMode === "cell" && j.mode === ot.editable && b(c).then(() => {
10445
+ c || h(A, j, J);
10444
10446
  });
10445
10447
  }
10446
10448
  function k(I) {
@@ -10450,50 +10452,50 @@ function Jo(t, e, n, o, i) {
10450
10452
  I.stopPropagation(), _ && (_ = null);
10451
10453
  }
10452
10454
  function M(I) {
10453
- Object.values(I.data).filter(($) => $.mode === tt.editable && $.field !== "__commands__").forEach(($) => {
10454
- $.mode = tt.editing;
10455
- }), I.status = ct.editing, v = I;
10455
+ Object.values(I.data).filter((j) => j.mode === ot.editable && j.field !== "__commands__").forEach((j) => {
10456
+ j.mode = ot.editing;
10457
+ }), I.status = ft.editing, v = I;
10456
10458
  }
10457
- function V(I, $) {
10458
- Object.values(I.data).filter((A) => A.mode === tt.editing).forEach((A) => {
10459
- $ ? A.accept() : A.cancel(), A.mode = tt.editable;
10460
- }), I.status = ct.initial, v === I && (v = null);
10459
+ function V(I, j) {
10460
+ Object.values(I.data).filter((A) => A.mode === ot.editing).forEach((A) => {
10461
+ j ? A.accept() : A.cancel(), A.mode = ot.editable;
10462
+ }), I.status = ft.initial, v === I && (v = null);
10461
10463
  }
10462
10464
  function O(I) {
10463
10465
  r.value && s.value.editMode === "row" && v !== I && (v && V(v, !1), M(I));
10464
10466
  }
10465
10467
  function B(I) {
10466
- V(I, !0), I.status = ct.initial;
10468
+ V(I, !0), I.status = ft.initial;
10467
10469
  }
10468
10470
  function L(I) {
10469
- V(I, !1), I.status = ct.initial;
10471
+ V(I, !1), I.status = ft.initial;
10470
10472
  }
10471
- function X(I, $, A) {
10472
- const J = $.dataType, q = $.editor || {
10473
+ function X(I, j, A) {
10474
+ const J = j.dataType, q = j.editor || {
10473
10475
  type: l.get(J) || "input-group"
10474
10476
  };
10475
- return !u.value && q.type === "text" && (q.type = "input-group"), q ? (q.type === "input-group" && (q.textAlign = $.align !== "center" && $.align !== "right" ? "left" : $.align, q.updateOn = "change"), q.type === "number-spinner" && (q.updateOn = "change"), q.type === "textarea" && (q.lineBreak = "alt enter"), q.context = {
10477
+ return !u.value && q.type === "text" && (q.type = "input-group"), q ? (q.type === "input-group" && (q.textAlign = j.align !== "center" && j.align !== "right" ? "left" : j.align, q.updateOn = "change"), q.type === "number-spinner" && (q.updateOn = "change"), q.type === "textarea" && (q.lineBreak = "alt enter"), q.context = {
10476
10478
  rowData: A.raw,
10477
- column: $,
10479
+ column: j,
10478
10480
  cell: I,
10479
10481
  editor: w
10480
- }, q.readonly = !1, R(Nr, {
10482
+ }, q.readonly = !1, R(Pr, {
10481
10483
  focusOnCreated: t.focusOnEditingCell,
10482
10484
  selectOnCreated: t.selectOnEditingCell,
10483
10485
  editor: q,
10484
10486
  modelValue: I.editingData,
10485
- "onUpdate:modelValue": (le) => I.editingData = le,
10486
- id: $.id,
10487
- onMousedown: (le) => k(le),
10488
- onMouseup: (le) => S(le)
10487
+ "onUpdate:modelValue": (ae) => I.editingData = ae,
10488
+ id: j.id,
10489
+ onMousedown: (ae) => k(ae),
10490
+ onMouseup: (ae) => S(ae)
10489
10491
  }, null)) : I.data;
10490
10492
  }
10491
- function j() {
10493
+ function $() {
10492
10494
  b(c);
10493
10495
  }
10494
- Ve(() => t.editable, () => {
10496
+ Be(() => t.editable, () => {
10495
10497
  r.value = t.editable;
10496
- }), Ve(() => {
10498
+ }), Be(() => {
10497
10499
  var I;
10498
10500
  return (I = t.editOption) == null ? void 0 : I.editMode;
10499
10501
  }, (I) => {
@@ -10512,7 +10514,7 @@ function Jo(t, e, n, o, i) {
10512
10514
  cancelEditingRow: L,
10513
10515
  getEditingSnapshot: y,
10514
10516
  getEditor: X,
10515
- endEditCell: j,
10517
+ endEditCell: $,
10516
10518
  onMousedownCell: k,
10517
10519
  onMouseupCell: S
10518
10520
  };
@@ -10547,7 +10549,7 @@ function Zo(t, e, n, o) {
10547
10549
  return c.value && (s.value ? d.value.includes(O.raw[i.value]) : O.raw[i.value] === a.value);
10548
10550
  }
10549
10551
  function m(O, B) {
10550
- var j;
10552
+ var $;
10551
10553
  const L = B ?? O.dataIndex, X = {
10552
10554
  "fv-grid-row": O.type === Rt.data,
10553
10555
  "fv-grid-group-row": O.type === Rt.group,
@@ -10558,7 +10560,7 @@ function Zo(t, e, n, o) {
10558
10560
  "fv-grid-row-even": L % 2 === 0,
10559
10561
  "fv-grid-disabled": O.disabled
10560
10562
  };
10561
- if ((j = t.rowOption) != null && j.customRowStyle) {
10563
+ if (($ = t.rowOption) != null && $.customRowStyle) {
10562
10564
  const D = t.rowOption.customRowStyle(O.raw) || {};
10563
10565
  return Object.assign({}, X, D);
10564
10566
  }
@@ -10587,9 +10589,9 @@ function Zo(t, e, n, o) {
10587
10589
  return B;
10588
10590
  }
10589
10591
  function g(O, B) {
10590
- var j, D;
10592
+ var $, D;
10591
10593
  if (s.value && !O.shiftKey || f.value) {
10592
- (j = t.selection) != null && j.keepSelectingOnClick ? u(B) : p(B, (D = t.selection) == null ? void 0 : D.keepSelectingOnClick), l();
10594
+ ($ = t.selection) != null && $.keepSelectingOnClick ? u(B) : p(B, (D = t.selection) == null ? void 0 : D.keepSelectingOnClick), l();
10593
10595
  return;
10594
10596
  }
10595
10597
  if (s.value && O.shiftKey || r.value) {
@@ -10617,7 +10619,7 @@ function Zo(t, e, n, o) {
10617
10619
  function M(O, B) {
10618
10620
  }
10619
10621
  function V(O, B) {
10620
- var j;
10622
+ var $;
10621
10623
  const L = B ?? O.dataIndex, X = {
10622
10624
  "fv-grid-sidebar-row": !0,
10623
10625
  "fv-grid-sidebar-row-hover": L === _.value,
@@ -10627,7 +10629,7 @@ function Zo(t, e, n, o) {
10627
10629
  "d-flex": !0,
10628
10630
  "align-items-center": !0
10629
10631
  };
10630
- if ((j = t.rowOption) != null && j.customRowStyle) {
10632
+ if (($ = t.rowOption) != null && $.customRowStyle) {
10631
10633
  const D = t.rowOption.customRowStyle(O.raw) || {};
10632
10634
  return Object.assign({}, X, D);
10633
10635
  }
@@ -10648,26 +10650,26 @@ function Zo(t, e, n, o) {
10648
10650
  }
10649
10651
  function Ko(t, e, n, o, i) {
10650
10652
  const { idField: a } = n, { dataView: r, getSelectionItems: s } = e, u = E(""), d = z(() => t.selection.enableSelectRow), p = E(t.selection.multiSelect ?? !1), l = E(t.selection.multiSelectMode || "DependOnCheck"), c = E(t.selection.showCheckbox), v = E(t.selection.showSelectAll), f = E(t.selectionValues || []), F = E(!!f.value.length && o.value.length === f.value.length), _ = E(!!f.value.length && o.value.length !== f.value.length);
10651
- Ve(() => t.selection.showSelectAll, (Y, oe) => {
10653
+ Be(() => t.selection.showSelectAll, (Y, oe) => {
10652
10654
  Y !== oe && (v.value = Y);
10653
10655
  });
10654
10656
  function y() {
10655
- const Y = r.value.every((ce) => f.value.includes(ce[a.value])), oe = r.value.every((ce) => !f.value.includes(ce[a.value]));
10657
+ const Y = r.value.every((ue) => f.value.includes(ue[a.value])), oe = r.value.every((ue) => !f.value.includes(ue[a.value]));
10656
10658
  Y && (F.value = !0, _.value = !1), oe && (F.value = !1, _.value = !1), !Y && !oe && (F.value = !1, _.value = !0);
10657
10659
  }
10658
10660
  function w() {
10659
10661
  return s(f.value);
10660
10662
  }
10661
10663
  function m() {
10662
- const Y = o.value.reduce((ce, we) => (ce.set(we.raw[a.value], we), ce), /* @__PURE__ */ new Map());
10663
- return f.value.map((ce) => Y.get(ce)).filter((ce) => !!ce);
10664
+ const Y = o.value.reduce((ue, _e) => (ue.set(_e.raw[a.value], _e), ue), /* @__PURE__ */ new Map());
10665
+ return f.value.map((ue) => Y.get(ue)).filter((ue) => !!ue);
10664
10666
  }
10665
10667
  function x(Y) {
10666
- var ce;
10668
+ var ue;
10667
10669
  const oe = Y.raw.__fv_children_index__;
10668
10670
  if (oe && oe.length) {
10669
- const we = oe.map((_e) => r.value[_e]);
10670
- (ce = f.value) != null && ce.length && we.some((Le) => !f.value.includes(Le[a.value])) && (Y.indeterminate = !0, Y.raw.__fv_indeterminate__ = !0);
10671
+ const _e = oe.map((Se) => r.value[Se]);
10672
+ (ue = f.value) != null && ue.length && _e.some((He) => !f.value.includes(He[a.value])) && (Y.indeterminate = !0, Y.raw.__fv_indeterminate__ = !0);
10671
10673
  }
10672
10674
  }
10673
10675
  const b = z(() => d.value && p.value), g = z(
@@ -10688,21 +10690,21 @@ function Ko(t, e, n, o, i) {
10688
10690
  i.emit("selectItem", Y);
10689
10691
  }
10690
10692
  function O() {
10691
- const Y = o.value.filter((ce) => ce.indeterminate).map((ce) => ce.raw[a.value]);
10692
- o.value.forEach((ce) => {
10693
- ce.checked = !1, ce.indeterminate = !1, ce.raw.__fv_checked__ = !1, ce.raw.__fv_indeterminate__ = !1;
10694
- }), m().forEach((ce) => {
10695
- ce.checked = !0, ce.raw.__fv_checked__ = !0;
10696
- }), Y.forEach((ce) => {
10697
- const we = o.value.find((_e) => _e.raw[a.value] === ce);
10698
- x(we);
10693
+ const Y = o.value.filter((ue) => ue.indeterminate).map((ue) => ue.raw[a.value]);
10694
+ o.value.forEach((ue) => {
10695
+ ue.checked = !1, ue.indeterminate = !1, ue.raw.__fv_checked__ = !1, ue.raw.__fv_indeterminate__ = !1;
10696
+ }), m().forEach((ue) => {
10697
+ ue.checked = !0, ue.raw.__fv_checked__ = !0;
10698
+ }), Y.forEach((ue) => {
10699
+ const _e = o.value.find((Se) => Se.raw[a.value] === ue);
10700
+ x(_e);
10699
10701
  });
10700
10702
  }
10701
- Ve(() => o.value, () => {
10703
+ Be(() => o.value, () => {
10702
10704
  O();
10703
- }), Ve(() => t.selectionValues, (Y) => {
10705
+ }), Be(() => t.selectionValues, (Y) => {
10704
10706
  f.value = Y, O();
10705
- }, { immediate: !0 }), Ve(() => t.selection, (Y) => {
10707
+ }, { immediate: !0 }), Be(() => t.selection, (Y) => {
10706
10708
  p.value = !!Y.multiSelect, l.value = Y.multiSelectMode || "DependOnCheck", c.value = !!Y.showCheckbox;
10707
10709
  });
10708
10710
  const B = z(() => !p.value);
@@ -10710,88 +10712,88 @@ function Ko(t, e, n, o, i) {
10710
10712
  return Y.raw[a.value];
10711
10713
  }
10712
10714
  function X(Y) {
10713
- return f.value.findIndex((ce) => ce === L(Y));
10715
+ return f.value.findIndex((ue) => ue === L(Y));
10714
10716
  }
10715
- function j() {
10716
- m().forEach((ce) => {
10717
- ce.checked = !1;
10718
- }), s(f.value).forEach((ce) => {
10719
- ce.__fv_checked__ = !1;
10717
+ function $() {
10718
+ m().forEach((ue) => {
10719
+ ue.checked = !1;
10720
+ }), s(f.value).forEach((ue) => {
10721
+ ue.__fv_checked__ = !1;
10720
10722
  }), f.value = [], u.value = "", y();
10721
10723
  }
10722
10724
  function D(Y) {
10723
10725
  const oe = Y;
10724
10726
  oe.__fv_checked__ = !0, oe.__fv_indeterminate__ = !1;
10725
- const ce = new Set(f.value);
10726
- ce.add(oe[a.value]), f.value = Array.from(ce.values());
10727
+ const ue = new Set(f.value);
10728
+ ue.add(oe[a.value]), f.value = Array.from(ue.values());
10727
10729
  }
10728
10730
  function P(Y) {
10729
10731
  const oe = Y;
10730
- oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((ce) => ce !== oe[a.value]);
10732
+ oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((ue) => ue !== oe[a.value]);
10731
10733
  }
10732
10734
  function I(Y) {
10733
10735
  const oe = Y.raw;
10734
10736
  oe.__fv_checked__ = !0, oe.__fv_indeterminate__ = !1;
10735
- const ce = new Set(f.value);
10736
- ce.add(oe[a.value]), f.value = Array.from(ce.values()), Y.checked = !0, Y.indeterminate = !1;
10737
+ const ue = new Set(f.value);
10738
+ ue.add(oe[a.value]), f.value = Array.from(ue.values()), Y.checked = !0, Y.indeterminate = !1;
10737
10739
  }
10738
- function $(Y) {
10740
+ function j(Y) {
10739
10741
  const oe = Y.raw;
10740
- oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((ce) => ce !== oe[a.value]), Y.checked = !1, Y.indeterminate = !1;
10742
+ oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((ue) => ue !== oe[a.value]), Y.checked = !1, Y.indeterminate = !1;
10741
10743
  }
10742
10744
  function A(Y) {
10743
10745
  I(Y), u.value = Y.raw[a.value];
10744
10746
  }
10745
10747
  function J(Y) {
10746
- $(Y), u.value = "";
10748
+ j(Y), u.value = "";
10747
10749
  }
10748
10750
  function q(Y) {
10749
10751
  Y.__fv_checked__ = !1, Y.__fv_indeterminate__ = !0, f.value = f.value.filter((oe) => oe !== Y[a.value]);
10750
10752
  }
10751
- function le(Y) {
10753
+ function ae(Y) {
10752
10754
  const oe = Y.raw;
10753
- oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !0, f.value = f.value.filter((ce) => ce !== oe[a.value]), Y.checked = !1, Y.indeterminate = !0;
10755
+ oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !0, f.value = f.value.filter((ue) => ue !== oe[a.value]), Y.checked = !1, Y.indeterminate = !0;
10754
10756
  }
10755
10757
  function G(Y) {
10756
- B.value && j(), Y.checked ? $(Y) : I(Y), S();
10758
+ B.value && $(), Y.checked ? j(Y) : I(Y), S();
10757
10759
  }
10758
10760
  function H(Y, oe = !0) {
10759
- const ce = Y.checked;
10760
- B.value && j(), oe ? Y.checked ? J(Y) : A(Y) : ce ? J(Y) : A(Y), S(), Y.checked ? V(Y) : M(Y);
10761
+ const ue = Y.checked;
10762
+ B.value && $(), oe ? Y.checked ? J(Y) : A(Y) : ue ? J(Y) : A(Y), S(), Y.checked ? V(Y) : M(Y);
10761
10763
  }
10762
10764
  function W(Y) {
10763
- Y.raw[a.value] !== u.value && (j(), A(Y), S());
10765
+ Y.raw[a.value] !== u.value && ($(), A(Y), S());
10764
10766
  }
10765
10767
  function Z(Y) {
10766
- const oe = o.value.find((ce) => ce.raw[a.value] === Y);
10768
+ const oe = o.value.find((ue) => ue.raw[a.value] === Y);
10767
10769
  if (oe)
10768
10770
  W(oe);
10769
10771
  else {
10770
- const ce = r.value.find((we) => we[a.value] === Y);
10771
- ce && D(ce);
10772
+ const ue = r.value.find((_e) => _e[a.value] === Y);
10773
+ ue && D(ue);
10772
10774
  }
10773
10775
  }
10774
- function fe(Y) {
10775
- const oe = o.value.filter((_e) => Y.includes(_e.raw[a.value])), ce = oe.map((_e) => _e.raw[a.value]), we = r.value.filter((_e) => {
10776
- const Le = _e[a.value];
10777
- return !ce.includes(Le) && Y.includes(Le);
10776
+ function de(Y) {
10777
+ const oe = o.value.filter((Se) => Y.includes(Se.raw[a.value])), ue = oe.map((Se) => Se.raw[a.value]), _e = r.value.filter((Se) => {
10778
+ const He = Se[a.value];
10779
+ return !ue.includes(He) && Y.includes(He);
10778
10780
  });
10779
- (oe.length || we.length) && g.value && (u.value = Y[0]), oe.forEach((_e) => {
10780
- A(_e);
10781
- }), we.forEach((_e) => {
10782
- D(_e);
10781
+ (oe.length || _e.length) && g.value && (u.value = Y[0]), oe.forEach((Se) => {
10782
+ A(Se);
10783
+ }), _e.forEach((Se) => {
10784
+ D(Se);
10783
10785
  }), S();
10784
10786
  }
10785
- function xe(Y) {
10787
+ function Te(Y) {
10786
10788
  for (const oe of Y) {
10787
10789
  if (!f.value.includes(oe))
10788
10790
  continue;
10789
- const ce = o.value.find((we) => we.raw[a.value] === oe);
10790
- if (ce)
10791
- J(ce);
10791
+ const ue = o.value.find((_e) => _e.raw[a.value] === oe);
10792
+ if (ue)
10793
+ J(ue);
10792
10794
  else {
10793
- const we = r.value.find((_e) => _e[a.value] === oe);
10794
- we && P(we);
10795
+ const _e = r.value.find((Se) => Se[a.value] === oe);
10796
+ _e && P(_e);
10795
10797
  }
10796
10798
  }
10797
10799
  f.value = f.value.filter(
@@ -10805,21 +10807,21 @@ function Ko(t, e, n, o, i) {
10805
10807
  }
10806
10808
  function ye() {
10807
10809
  o.value.forEach((Y) => {
10808
- $(Y);
10810
+ j(Y);
10809
10811
  }), S();
10810
10812
  }
10811
- function Oe() {
10813
+ function ke() {
10812
10814
  return o.value.find((Y) => Y.raw[a.value] === u.value);
10813
10815
  }
10814
10816
  return {
10815
- clearSelection: j,
10817
+ clearSelection: $,
10816
10818
  currentSelectedDataId: u,
10817
10819
  enableMultiSelect: p,
10818
10820
  enableSelectRow: d,
10819
10821
  findIndexInSelectedItems: X,
10820
10822
  getSelectedItems: w,
10821
- getSelectionRow: Oe,
10822
- indeterminate: le,
10823
+ getSelectionRow: ke,
10824
+ indeterminate: ae,
10823
10825
  indeterminateDataItem: q,
10824
10826
  isSelectingHirarchyItem: h,
10825
10827
  multiSelectMode: l,
@@ -10832,7 +10834,7 @@ function Ko(t, e, n, o, i) {
10832
10834
  selectDataItem: D,
10833
10835
  selectItem: W,
10834
10836
  selectItemById: Z,
10835
- selectItemByIds: fe,
10837
+ selectItemByIds: de,
10836
10838
  showCheckBox: c,
10837
10839
  showSelectAll: v,
10838
10840
  toggleSelectItem: H,
@@ -10840,7 +10842,7 @@ function Ko(t, e, n, o, i) {
10840
10842
  unSelect: J,
10841
10843
  unSelectAll: ye,
10842
10844
  unSelectDataItem: P,
10843
- unSelectItemByIds: xe,
10845
+ unSelectItemByIds: Te,
10844
10846
  updateSelectAllStatus: y,
10845
10847
  selectAllStatus: F,
10846
10848
  indeterminateStatus: _,
@@ -10849,11 +10851,11 @@ function Ko(t, e, n, o, i) {
10849
10851
  }
10850
10852
  function Hu(t, e) {
10851
10853
  var y, w;
10852
- const { t: n } = dt(), o = String(Date.now()), i = 50, { showCheckBox: a, showSelectAll: r } = e, s = E(((y = t.rowNumber) == null ? void 0 : y.enable) ?? !1), u = z(() => t.hierarchy && a.value && t.selection.enableSelectRow && t.selection.multiSelect ? !1 : a.value), d = E(s.value ? ((w = t.rowNumber) == null ? void 0 : w.width) ?? 32 : 0), p = E(u.value ? i : 0), l = z(() => {
10854
+ const { t: n } = pt(), o = String(Date.now()), i = 50, { showCheckBox: a, showSelectAll: r } = e, s = E(((y = t.rowNumber) == null ? void 0 : y.enable) ?? !1), u = z(() => t.hierarchy && a.value && t.selection.enableSelectRow && t.selection.multiSelect ? !1 : a.value), d = E(s.value ? ((w = t.rowNumber) == null ? void 0 : w.width) ?? 32 : 0), p = E(u.value ? i : 0), l = z(() => {
10853
10855
  var m, x;
10854
10856
  return s.value ? ((m = t.rowNumber) == null ? void 0 : m.heading) === "序号" ? n("datagrid.lineNumberTitle") : (x = t.rowNumber) == null ? void 0 : x.heading : "";
10855
10857
  }), c = z(() => (u.value && !t.hierarchy ? Number(p.value) : 0) + (s.value ? Number(d.value) : 0));
10856
- Ve(() => t.rowNumber, (m) => {
10858
+ Be(() => t.rowNumber, (m) => {
10857
10859
  m && m.enable !== void 0 && (s.value = m.enable), m && m.width !== void 0 && (d.value = m.width);
10858
10860
  });
10859
10861
  function v(m) {
@@ -10917,7 +10919,7 @@ function qu(t) {
10917
10919
  return o(r.column);
10918
10920
  }
10919
10921
  function a(r, s) {
10920
- const u = i(r), d = (r.status & Je.sortable) === Je.sortable && (r.status & Je.sorted) === Je.sorted, p = (r.status & Je.ascending) === Je.ascending, l = (r.status & Je.descending) === Je.descending;
10922
+ const u = i(r), d = (r.status & Qe.sortable) === Qe.sortable && (r.status & Qe.sorted) === Qe.sorted, p = (r.status & Qe.ascending) === Qe.ascending, l = (r.status & Qe.descending) === Qe.descending;
10921
10923
  if (d && u) {
10922
10924
  const c = p ? u.ascend : l ? u.decend : void 0;
10923
10925
  c ? s.addSorter(r.field, { field: r.field, compare: c }) : s.removeSorter(r.field);
@@ -10956,7 +10958,7 @@ function er(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f) {
10956
10958
  renderTreeArea: x
10957
10959
  };
10958
10960
  }
10959
- function _n(t, e) {
10961
+ function Sn(t, e) {
10960
10962
  function n() {
10961
10963
  return e.slots.header && R("div", {
10962
10964
  class: "f-tree-view-header"
@@ -10966,13 +10968,13 @@ function _n(t, e) {
10966
10968
  renderHeader: n
10967
10969
  };
10968
10970
  }
10969
- const Yt = /* @__PURE__ */ Ze({
10971
+ const Yt = /* @__PURE__ */ Ke({
10970
10972
  name: "FTreeView",
10971
- props: sn,
10973
+ props: un,
10972
10974
  emits: ["outputValue", "currentEvent", "clickRow", "selectItem", "unSelectItem", "selectionChange", "expandNode", "dblclickNode", "clickRow", "unSelectItem"],
10973
10975
  setup(t, e) {
10974
- var K;
10975
- const n = ((K = t.rowOption) == null ? void 0 : K.height) || 28, o = E(), i = E(!1), a = E(), r = E(20), s = E([]), u = kn(), d = En(t), p = On(t), l = In(t, /* @__PURE__ */ new Map(), u, p, d), c = Mn(t, l, d, s, e), v = Go(t, s, l, d, c, e), f = z(() => ({
10976
+ var De;
10977
+ const n = ((De = t.rowOption) == null ? void 0 : De.height) || 28, o = E(), i = E(!1), a = E(), r = E(20), s = E([]), u = On(), d = kn(t), p = In(t), l = Mn(t, /* @__PURE__ */ new Map(), u, p, d), c = Bn(t, l, d, s, e), v = Go(t, s, l, d, c, e), f = z(() => ({
10976
10978
  // 'fv-tree': true
10977
10979
  "fv-grid": !0,
10978
10980
  "fv-tree-view": !0
@@ -10982,121 +10984,130 @@ const Yt = /* @__PURE__ */ Ze({
10982
10984
  "fv-grid-content-hover": i.value
10983
10985
  })), {
10984
10986
  containerStyleObject: _
10985
- } = Bn(t), y = E(t.columns), w = Vn(t), {
10987
+ } = Vn(t), y = E(t.columns), w = Nn(t), {
10986
10988
  columnContext: m
10987
- } = w, x = Nn(t, m), b = 0, g = z(() => t.virtualized ? Math.min(l.dataView.value.length, r.value) : l.dataView.value.length), h = z(() => !s.value || !s.value.length), T = Rn(t, e, c, d), C = Pn(t, e, d, T, s), k = Dn(t), S = $n(t, {}, k), M = jn(t, l, C, p, d, k, S), V = Ln(t, y, l, g, b, M), {
10989
+ } = w, x = Rn(t, m), b = 0, g = z(() => t.virtualized ? Math.min(l.dataView.value.length, r.value) : l.dataView.value.length), h = z(() => !s.value || !s.value.length), T = Pn(t, e, c, d), C = Dn(t, e, d, T, s), k = jn(t), S = $n(t, {}, k), M = Ln(t, l, C, p, d, k, S), V = Hn(t, y, l, g, b, M), {
10988
10990
  getVisualData: O
10989
- } = V, B = Hn(t, m), L = An(t, l, s, m, V, g, b, E(0)), X = Wn(t, c), {
10990
- onWheel: j,
10991
+ } = V, B = Wn(t, m), L = zn(t, l, s, m, V, g, b, E(0)), X = An(t, c), {
10992
+ onWheel: $,
10991
10993
  dataGridWidth: D,
10992
10994
  viewPortHeight: P,
10993
10995
  viewPortWidth: I,
10994
- resetScroll: $,
10996
+ resetScroll: j,
10995
10997
  updateVisibleRowsOnLatestVisibleScope: A
10996
10998
  } = L, {
10997
10999
  renderVerticalScrollbar: J
10998
- } = Un(t, o, L), {
11000
+ } = Yn(t, o, L), {
10999
11001
  renderHorizontalScrollbar: q
11000
- } = qn(t, o, L), {
11001
- renderDataGridSidebar: le
11002
- } = Gn(t, T, c, X, L), G = zn(t, m, o, I, x), {
11002
+ } = Un(t, o, L), {
11003
+ renderDataGridSidebar: ae
11004
+ } = qn(t, T, c, X, L), G = Gn(t, m, o, I, x), {
11003
11005
  calculateColumnsSize: H
11004
11006
  } = G;
11005
11007
  function W() {
11006
- return t.header === "ContentHeader", _n;
11008
+ return t.header === "ContentHeader", Sn;
11007
11009
  }
11008
11010
  const Z = W(), {
11009
- renderHeader: fe
11011
+ renderHeader: de
11010
11012
  } = Z(t, e), {
11011
- renderTreeArea: xe
11013
+ renderTreeArea: Te
11012
11014
  } = er(t, e, s, B, w, l, C, p, T, c, v, L, V, k, a);
11013
11015
  function be() {
11014
- const ae = c.getSelectionRow();
11015
- return ae ? ae.dataIndex - 1 : -1;
11016
+ const me = c.getSelectionRow();
11017
+ return me ? me.dataIndex - 1 : -1;
11016
11018
  }
11017
11019
  function ye() {
11018
- var Fe, Ee;
11019
- const ae = Math.ceil(o.value.clientHeight / n);
11020
- ae > r.value && (r.value = ae, A()), P.value = ((Fe = a.value) == null ? void 0 : Fe.clientHeight) || 0, D.value = ((Ee = o.value) == null ? void 0 : Ee.clientWidth) || 0, H();
11020
+ var Re, We;
11021
+ const me = Math.ceil(o.value.clientHeight / n);
11022
+ me > r.value && (r.value = me, A()), P.value = ((Re = a.value) == null ? void 0 : Re.clientHeight) || 0, D.value = ((We = o.value) == null ? void 0 : We.clientWidth) || 0, H();
11021
11023
  }
11022
11024
  const {
11023
- renderEmpty: Oe
11024
- } = Yn(e);
11025
+ renderEmpty: ke
11026
+ } = Xn(e);
11025
11027
  Ot(() => {
11026
- o.value && (r.value = Math.max(Math.ceil(o.value.clientHeight / n), r.value), s.value = O(0, g.value + b - 1), ln(o.value, ye), H(), $t(() => {
11028
+ o.value && (r.value = Math.max(Math.ceil(o.value.clientHeight / n), r.value), s.value = O(0, g.value + b - 1), sn(o.value, ye), H(), jt(() => {
11027
11029
  o.value && (D.value = o.value.clientWidth), a.value && (I.value = a.value.clientWidth, P.value = a.value.clientHeight);
11028
11030
  }));
11029
11031
  });
11030
11032
  function Y() {
11031
- const ae = be();
11032
- l.insertNewDataItem(ae), s.value = O(0, g.value + b - 1);
11033
+ const me = be();
11034
+ l.insertNewDataItem(me), s.value = O(0, g.value + b - 1);
11033
11035
  }
11034
11036
  function oe() {
11035
- const ae = be();
11036
- l.insertNewChildDataItem(ae), s.value = O(0, g.value + b - 1);
11037
+ const me = be();
11038
+ l.insertNewChildDataItem(me), s.value = O(0, g.value + b - 1);
11037
11039
  }
11038
- function ce() {
11039
- const ae = be(), Fe = v.getNextSelectableHierarchyItemId(ae);
11040
- l.removeHierarchyDataItem(ae), s.value = O(0, g.value + b - 1), Fe && c.selectItemById(Fe);
11040
+ function ue() {
11041
+ const me = be(), Re = v.getNextSelectableHierarchyItemId(me);
11042
+ l.removeHierarchyDataItem(me), s.value = O(0, g.value + b - 1), Re && c.selectItemById(Re);
11041
11043
  }
11042
- function we(ae, Fe) {
11043
- l.editDataItem(ae, Fe), s.value = O(0, g.value + b - 1);
11044
+ function _e(me, Re) {
11045
+ l.editDataItem(me, Re), s.value = O(0, g.value + b - 1);
11044
11046
  }
11045
- function _e() {
11047
+ function Se() {
11046
11048
  }
11047
- function Le() {
11049
+ function He() {
11050
+ }
11051
+ function qe(me) {
11052
+ return Object.prototype.hasOwnProperty.call(me, "raw") ? l.hasRealChildren(me.raw) : l.hasRealChildren(me);
11053
+ }
11054
+ function ne(me, Re) {
11055
+ const We = s.value.find((at) => at.raw[d.idField.value] === Re), et = We ? We.dataIndex - 1 : -1;
11056
+ l.insertNewChildDataItems(me, et);
11048
11057
  }
11049
- function ze(ae) {
11050
- if (ae > -1) {
11051
- const Fe = s.value[ae];
11052
- Fe && c.selectItem(Fe);
11058
+ function ve(me) {
11059
+ if (me > -1) {
11060
+ const Re = s.value[me];
11061
+ Re && c.selectItem(Re);
11053
11062
  }
11054
11063
  }
11055
- function ne(ae, Fe) {
11056
- if (ae) {
11057
- const Ee = c.getSelectionRow();
11058
- if (l.load(ae), l.reOrderVisibleIndex(), Fe != null && Fe.keepScrollPosition) {
11059
- const Ge = L.offsetY.value;
11060
- $(), L.scrollTo(Ge);
11064
+ function Ve(me, Re) {
11065
+ if (me) {
11066
+ const We = c.getSelectionRow();
11067
+ if (l.load(me), l.reOrderVisibleIndex(), Re != null && Re.keepScrollPosition) {
11068
+ const et = L.offsetY.value;
11069
+ j(), L.scrollTo(et);
11061
11070
  } else
11062
- $();
11063
- if (Ee && Ee.raw && Ee.raw.originalId) {
11064
- const Ge = ae.findIndex((rt) => rt.originalId === Ee.raw.originalId);
11065
- Ge > -1 && ze(Ge);
11071
+ j();
11072
+ if (We && We.raw && We.raw.originalId) {
11073
+ const et = me.findIndex((at) => at.originalId === We.raw.originalId);
11074
+ et > -1 && ve(et);
11066
11075
  }
11067
11076
  }
11068
11077
  }
11069
- function ve() {
11078
+ function Le() {
11070
11079
  c.clearSelection();
11071
11080
  }
11072
- function Ne(ae) {
11073
- c.selectItemById(ae);
11081
+ function Ne(me) {
11082
+ c.selectItemById(me);
11074
11083
  }
11075
- function je(ae) {
11076
- T.activeRowById(ae);
11084
+ function K(me) {
11085
+ T.activeRowById(me);
11077
11086
  }
11078
11087
  e.expose({
11079
11088
  addNewDataItem: Y,
11080
11089
  addNewChildDataItem: oe,
11081
- removeDataItem: ce,
11082
- editDataItem: we,
11083
- acceptDataItem: _e,
11084
- cancelDataItem: Le,
11085
- selectItem: ze,
11086
- updateDataSource: ne,
11087
- clearSelection: ve,
11090
+ removeDataItem: ue,
11091
+ editDataItem: _e,
11092
+ acceptDataItem: Se,
11093
+ cancelDataItem: He,
11094
+ selectItem: ve,
11095
+ updateDataSource: Ve,
11096
+ clearSelection: Le,
11088
11097
  selectItemById: Ne,
11089
- activeRowById: je
11098
+ activeRowById: K,
11099
+ hasChildren: qe,
11100
+ addChildrenToNode: ne
11090
11101
  });
11091
- const Re = z(() => {
11092
- const ae = {};
11093
- return L.shouldShowHorizontalScrollbar.value && (ae.paddingBottom = "10px"), L.shouldShowVirticalScrollbar.value && (ae.paddingRight = "10px"), ae;
11102
+ const we = z(() => {
11103
+ const me = {};
11104
+ return L.shouldShowHorizontalScrollbar.value && (me.paddingBottom = "10px"), L.shouldShowVirticalScrollbar.value && (me.paddingRight = "10px"), me;
11094
11105
  });
11095
11106
  return () => R("div", {
11096
11107
  class: f.value,
11097
11108
  style: _.value,
11098
- onWheel: j
11099
- }, [fe(), R("div", {
11109
+ onWheel: $
11110
+ }, [de(), R("div", {
11100
11111
  ref: o,
11101
11112
  class: F.value,
11102
11113
  onMouseover: () => {
@@ -11105,15 +11116,15 @@ const Yt = /* @__PURE__ */ Ze({
11105
11116
  onMouseleave: () => {
11106
11117
  i.value = !1;
11107
11118
  },
11108
- style: Re.value
11109
- }, [o.value && le(s), xe(), o.value && h.value && Oe(), o.value && q(), o.value && J()])]);
11119
+ style: we.value
11120
+ }, [o.value && ae(s), Te(), o.value && h.value && ke(), o.value && q(), o.value && J()])]);
11110
11121
  }
11111
- }), Uu = /* @__PURE__ */ Ze({
11122
+ }), Uu = /* @__PURE__ */ Ke({
11112
11123
  name: "FTreeViewDesign",
11113
- props: sn,
11124
+ props: un,
11114
11125
  emits: ["outputValue", "currentEvent", "selectionChange"],
11115
11126
  setup(t, e) {
11116
- const n = E(), o = yt("design-item-context"), i = Bo(n, o), a = E();
11127
+ const n = E(), o = bt("design-item-context"), i = Bo(n, o), a = E();
11117
11128
  E(t.idField);
11118
11129
  const r = E(), s = E(!1), u = E([]), d = Ao(), p = zo(t), l = Qo(t), c = ho(t, /* @__PURE__ */ new Map(), d, p, l), v = Ko(t, c, l, u, e), f = Go(t, u, c, l, v, e), F = z(() => ({
11119
11130
  "fv-tree": !0
@@ -11136,9 +11147,9 @@ const Yt = /* @__PURE__ */ Ze({
11136
11147
  getVisualData: L
11137
11148
  } = B, X = co(t, h);
11138
11149
  u.value = L(0, C.value + T - 1);
11139
- const j = qo(t, c, u, h, B, C, T, E(0)), {
11150
+ const $ = qo(t, c, u, h, B, C, T, E(0)), {
11140
11151
  renderTreeArea: D
11141
- } = er(t, e, u, X, g, c, S, p, k, v, f, j, B, M, a);
11152
+ } = er(t, e, u, X, g, c, S, p, k, v, f, $, B, M, a);
11142
11153
  return e.expose(i.value), () => R("div", {
11143
11154
  class: F.value,
11144
11155
  style: y.value,
@@ -11161,11 +11172,11 @@ Yt.register = (t, e, n) => {
11161
11172
  Yt.registerDesigner = (t, e, n) => {
11162
11173
  t["tree-view"] = Uu, e["tree-view"] = uo;
11163
11174
  };
11164
- const Dd = Jn(Yt);
11175
+ const Dd = Qn(Yt);
11165
11176
  export {
11166
11177
  Yt as FTreeView,
11167
11178
  Pd as columnOptions,
11168
11179
  Dd as default,
11169
11180
  uo as propsResolver,
11170
- sn as treeViewProps
11181
+ un as treeViewProps
11171
11182
  };