@farris/ui-vue 1.2.4 → 1.2.5

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 (70) hide show
  1. package/components/accordion/index.esm.js +58 -58
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/capsule/index.esm.js +1 -1
  4. package/components/capsule/index.umd.cjs +1 -1
  5. package/components/common/index.esm.js +2 -2
  6. package/components/common/index.umd.cjs +1 -1
  7. package/components/condition/index.esm.js +137 -135
  8. package/components/condition/index.umd.cjs +1 -1
  9. package/components/data-grid/index.esm.js +2316 -2299
  10. package/components/data-grid/index.umd.cjs +1 -1
  11. package/components/data-view/index.esm.js +1929 -1920
  12. package/components/data-view/index.umd.cjs +1 -1
  13. package/components/designer-canvas/index.esm.js +1 -1
  14. package/components/designer-canvas/index.umd.cjs +1 -1
  15. package/components/designer-canvas/style.css +1 -1
  16. package/components/designer-outline/index.esm.js +44 -42
  17. package/components/designer-outline/index.umd.cjs +1 -1
  18. package/components/designer-toolbox/index.esm.js +28 -467
  19. package/components/designer-toolbox/index.umd.cjs +1 -1
  20. package/components/dynamic-form/index.esm.js +836 -790
  21. package/components/dynamic-form/index.umd.cjs +1 -1
  22. package/components/external-container/index.esm.js +382 -378
  23. package/components/external-container/index.umd.cjs +1 -1
  24. package/components/field-selector/index.esm.js +1167 -1150
  25. package/components/field-selector/index.umd.cjs +1 -1
  26. package/components/filter-bar/index.esm.js +131 -127
  27. package/components/filter-bar/index.umd.cjs +1 -1
  28. package/components/flow-canvas/index.esm.js +1 -1
  29. package/components/flow-canvas/index.umd.cjs +1 -1
  30. package/components/flow-canvas/style.css +1 -1
  31. package/components/list-view/index.esm.js +128 -124
  32. package/components/list-view/index.umd.cjs +1 -1
  33. package/components/lookup/index.esm.js +2156 -2139
  34. package/components/lookup/index.umd.cjs +1 -1
  35. package/components/mapping-editor/index.esm.js +3137 -3120
  36. package/components/mapping-editor/index.umd.cjs +1 -1
  37. package/components/nav/index.esm.js +511 -469
  38. package/components/nav/index.umd.cjs +2 -2
  39. package/components/order/index.esm.js +859 -815
  40. package/components/order/index.umd.cjs +1 -1
  41. package/components/pagination/index.esm.js +491 -449
  42. package/components/pagination/index.umd.cjs +1 -1
  43. package/components/property-panel/index.esm.js +75 -73
  44. package/components/property-panel/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +63 -61
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +2002 -1956
  48. package/components/schema-selector/index.umd.cjs +1 -1
  49. package/components/switch/index.esm.js +165 -192
  50. package/components/switch/index.umd.cjs +1 -1
  51. package/components/tabs/index.esm.js +2 -2
  52. package/components/tabs/index.umd.cjs +1 -1
  53. package/components/transfer/index.esm.js +95 -93
  54. package/components/transfer/index.umd.cjs +1 -1
  55. package/components/tree-grid/index.esm.js +2316 -2299
  56. package/components/tree-grid/index.umd.cjs +1 -1
  57. package/components/tree-view/index.esm.js +296 -295
  58. package/components/tree-view/index.umd.cjs +1 -1
  59. package/farris.all.esm.js +2517 -2483
  60. package/farris.all.umd.cjs +7 -7
  61. package/package.json +1 -1
  62. package/style.css +1 -1
  63. package/types/condition/index.d.ts +60 -1
  64. package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
  65. package/types/data-view/composition/types.d.ts +2 -0
  66. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
  67. package/types/list-view/src/composition/types.d.ts +1 -1
  68. package/types/message-box/index.d.ts +84 -1
  69. package/types/notify/index.d.ts +84 -1
  70. package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
@@ -1,21 +1,21 @@
1
1
  var Ao = Object.defineProperty;
2
2
  var Ho = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var K = (e, t, n) => Ho(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as Oe, ref as F, computed as D, createVNode as h, Teleport as Go, createApp as on, onUnmounted as ut, inject as je, watch as ie, nextTick as Ue, onMounted as Ee, withDirectives as pt, vShow as Wo, Fragment as Ke, mergeProps as ot, resolveComponent as Ne, createTextVNode as Re, isVNode as an, vModelCheckbox as Lo, onBeforeUnmount as rn, reactive as ln, resolveDirective as zo, provide as sn, withModifiers as qo, vModelText as Uo } from "vue";
4
+ import { defineComponent as Oe, ref as F, computed as D, createVNode as h, Teleport as Go, createApp as on, onUnmounted as ut, inject as je, watch as oe, nextTick as Ue, onMounted as Re, withDirectives as pt, vShow as Wo, Fragment as Ke, mergeProps as ot, resolveComponent as Ne, createTextVNode as Ee, isVNode as an, vModelCheckbox as Lo, onBeforeUnmount as rn, reactive as ln, resolveDirective as zo, provide as sn, withModifiers as qo, vModelText as Uo } from "vue";
5
5
  import { cloneDeep as lt } from "lodash-es";
6
6
  import { resolveAppearance as Ko } from "@farris/ui-vue/components/dynamic-resolver";
7
7
  import un from "@farris/ui-vue/components/tags";
8
8
  import Xo from "@farris/ui-vue/components/popover";
9
9
  import { useResizeObserver as mt } from "@vueuse/core";
10
- import { useLoading as cn, useIdentify as kt, useGroupData as Tt, useFilter as dn, useHierarchy as Ot, usePagination as It, useDataView as Bt, useSelection as Vt, useSelectHierarchyItem as Yo, useDataViewContainerStyle as fn, useCommandColumn as pn, useColumn as mn, useSort as gn, useGroupColumn as vn, useEdit as Mt, useVisualDataBound as Pt, useVisualDataCell as Dt, useVisualDataRow as Rt, useVisualData as Et, useCellPosition as hn, useSidebar as yn, useVirtualScroll as bn, useFitColumn as Cn, useFilterHistory as wn, useColumnFilter as Sn, useRow as _n, useDragColumn as Fn, getColumnHeader as xn, getSidebar as kn, getDisableMask as Tn, getHorizontalScrollbar as On, getVerticalScrollbar as In, getEmpty as Bn, useVisualGroupRow as Vn, useVisualSummaryRow as Mn, useCellContentStyle as Qo, getPagination as Zo, getSummary as Jo, getFilterPanel as ei, getGroupPanel as ti, useNavigation as ni } from "@farris/ui-vue/components/data-view";
11
- import { FModalService as oi } from "@farris/ui-vue/components/modal";
10
+ import { useLoading as cn, useIdentify as kt, useGroupData as Tt, useFilter as dn, useHierarchy as Ot, usePagination as It, useDataView as Bt, useSelection as Vt, useSelectHierarchyItem as Yo, useDataViewContainerStyle as fn, useCommandColumn as pn, useColumn as mn, useSort as gn, useGroupColumn as vn, useEdit as Mt, useVisualDataBound as Pt, useVisualDataCell as Dt, useVisualDataRow as Et, useVisualData as Rt, useCellPosition as hn, useSidebar as yn, useVirtualScroll as bn, useFitColumn as Cn, useFilterHistory as wn, useColumnFilter as Sn, useRow as _n, useDragColumn as Fn, getColumnHeader as xn, getSidebar as kn, getDisableMask as Tn, getHorizontalScrollbar as On, getVerticalScrollbar as In, getEmpty as Bn, useVisualGroupRow as Vn, useVisualSummaryRow as Mn, useCellContentStyle as Qo, getPagination as Zo, getSummary as Jo, getFilterPanel as ei, getGroupPanel as ti, useNavigation as ni } from "@farris/ui-vue/components/data-view";
11
+ import { F_MODAL_SERVICE_TOKEN as oi } from "@farris/ui-vue/components/modal";
12
12
  import Pn from "@farris/ui-vue/components/transfer";
13
13
  import Dn, { FTabPage as vt } from "@farris/ui-vue/components/tabs";
14
14
  import ii, { FOrder as ai } from "@farris/ui-vue/components/order";
15
15
  import ri from "@farris/ui-vue/components/condition";
16
16
  import li, { FCheckBox as st } from "@farris/ui-vue/components/checkbox";
17
17
  import si, { FFilterBar as ui } from "@farris/ui-vue/components/filter-bar";
18
- import Rn from "@farris/ui-vue/components/pagination";
18
+ import En from "@farris/ui-vue/components/pagination";
19
19
  import ci, { FDynamicFormGroup as di } from "@farris/ui-vue/components/dynamic-form";
20
20
  import Ct from "@farris/ui-vue/components/combo-list";
21
21
  import "bignumber.js";
@@ -38,8 +38,8 @@ import Vi from "@farris/ui-vue/components/image-cropper";
38
38
  import Mi from "@farris/ui-vue/components/input-group";
39
39
  import Pi from "@farris/ui-vue/components/layout";
40
40
  import Di from "@farris/ui-vue/components/list-nav";
41
- import Ri from "@farris/ui-vue/components/list-view";
42
- import Ei from "@farris/ui-vue/components/lookup";
41
+ import Ei from "@farris/ui-vue/components/list-view";
42
+ import Ri from "@farris/ui-vue/components/lookup";
43
43
  import $i from "@farris/ui-vue/components/mapping-editor";
44
44
  import Ni from "@farris/ui-vue/components/nav";
45
45
  import ji from "@farris/ui-vue/components/number-range";
@@ -69,13 +69,13 @@ import sa from "@farris/ui-vue/components/textarea";
69
69
  import ua from "@farris/ui-vue/components/schema-selector";
70
70
  import "@farris/ui-vue/components/external-container";
71
71
  import { CHECKBOX_CONTEXT as ca, useCheck as da } from "@farris/ui-vue/components/common";
72
- const En = {}, $n = {};
72
+ const Rn = {}, $n = {};
73
73
  function $t(e) {
74
74
  const { properties: t, title: n } = e, o = Object.keys(t).reduce((i, a) => (i[a] = t[a].type === "object" && t[a].properties ? $t(t[a]) : lt(t[a].default), i), {});
75
75
  return o.id = `${n}-${Date.now()}`, o;
76
76
  }
77
77
  function wt(e, t = {}) {
78
- const n = En[e];
78
+ const n = Rn[e];
79
79
  if (n) {
80
80
  let o = $t(n);
81
81
  const i = $n[e];
@@ -160,7 +160,7 @@ function ga(e = {}) {
160
160
  }
161
161
  return { parseValueSchema: d };
162
162
  }
163
- const ne = {
163
+ const te = {
164
164
  Button: { type: "Button", name: "按钮", icon: "Button" },
165
165
  ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
166
166
  ToolBar: { type: "ToolBar", name: "工具栏", icon: "ButtonGroup" },
@@ -274,7 +274,7 @@ const ne = {
274
274
  }, va = {}, ha = {};
275
275
  ga();
276
276
  function Ae(e, t, n = /* @__PURE__ */ new Map(), o = (r, l, d) => l, i = {}, a = (r) => r) {
277
- return En[t.title] = t, $n[t.title] = o, va[t.title] = i, ha[t.title] = a, (r = {}) => {
277
+ return Rn[t.title] = t, $n[t.title] = o, va[t.title] = i, ha[t.title] = a, (r = {}) => {
278
278
  const l = ma(r, t, n), d = Object.keys(e).reduce((m, c) => (m[c] = e[c].default, m), {});
279
279
  return Object.assign(d, l);
280
280
  };
@@ -699,13 +699,13 @@ const Sa = "https://json-schema.org/draft/2020-12/schema", _a = "https://farris-
699
699
  beforeOpen: { type: Function, default: null }
700
700
  };
701
701
  Ae(Nn, Ia, Ca, wa, Da);
702
- const Ra = {
702
+ const Ea = {
703
703
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
704
704
  host: { type: Object },
705
705
  backgroundColor: { type: String, default: "" }
706
- }, Ea = /* @__PURE__ */ Oe({
706
+ }, Ra = /* @__PURE__ */ Oe({
707
707
  name: "FOverlay",
708
- props: Ra,
708
+ props: Ea,
709
709
  emits: ["click"],
710
710
  setup(e, t) {
711
711
  const n = F(e.popupContentPosition), o = F(e.host), i = D(() => ({
@@ -771,7 +771,7 @@ function Na(e) {
771
771
  document.body.removeChild(t);
772
772
  });
773
773
  const a = $a(e);
774
- return () => h(Ea, {
774
+ return () => h(Ra, {
775
775
  "popup-content-position": e.popupPosition,
776
776
  host: e.host,
777
777
  onClick: i,
@@ -844,7 +844,7 @@ function Ga(e, t, n, o, i, a) {
844
844
  function m(_) {
845
845
  r.value = _;
846
846
  }
847
- ie(i, () => {
847
+ oe(i, () => {
848
848
  m(!!i.value);
849
849
  });
850
850
  function c(_) {
@@ -891,7 +891,7 @@ function Wa(e, t, n, o, i) {
891
891
  function S(x) {
892
892
  l.value = !1, v(x, !0);
893
893
  }
894
- ie(
894
+ oe(
895
895
  () => e.modelValue,
896
896
  (x) => {
897
897
  n.value = x;
@@ -983,7 +983,7 @@ function za(e, t, n) {
983
983
  onMouseDownTextBox: g,
984
984
  onTextBoxValueChange: v
985
985
  } = n;
986
- return Ee(() => {
986
+ return Re(() => {
987
987
  var S, C;
988
988
  e.selectOnCreated && ((S = o.value) == null || S.select()), e.focusOnCreated && ((C = o.value) == null || C.focus());
989
989
  }), () => h("input", {
@@ -1117,7 +1117,7 @@ const An = /* @__PURE__ */ Oe({
1117
1117
  return e.multiSelect && e.inputType === "tag" ? qa(e, i, u) : za(e, i, u);
1118
1118
  }
1119
1119
  let O = w();
1120
- ie([() => e.multiSelect, () => e.inputType], () => {
1120
+ oe([() => e.multiSelect, () => e.inputType], () => {
1121
1121
  O = w();
1122
1122
  });
1123
1123
  const {
@@ -1137,7 +1137,7 @@ const An = /* @__PURE__ */ Oe({
1137
1137
  return e.buttonBehavior === "Modal" ? (x = m.modalRef.value) == null ? void 0 : x.value : null;
1138
1138
  }
1139
1139
  };
1140
- return Ee(() => {
1140
+ return Re(() => {
1141
1141
  n.value.componentInstance = B, window.onresize = () => {
1142
1142
  document.body.click();
1143
1143
  };
@@ -2119,7 +2119,7 @@ const ur = "https://json-schema.org/draft/2020-12/schema", cr = "https://farris-
2119
2119
  /** 显示设置按钮 */
2120
2120
  showSetting: { type: Boolean, default: !1 }
2121
2121
  }, Hn = Ae(jt, vr, ir, sr, wr), Sr = ba();
2122
- var De = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(De || {}), qe = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(qe || {}), it = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(it || {}), A = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(A || {});
2122
+ var De = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(De || {}), qe = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(qe || {}), it = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(it || {}), j = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(j || {});
2123
2123
  function _r(e, t, n, o, i, a, r) {
2124
2124
  const l = [{
2125
2125
  name: "升序",
@@ -2134,9 +2134,9 @@ function _r(e, t, n, o, i, a, r) {
2134
2134
  icon: "f-icon f-icon-col-descendingorder"
2135
2135
  }];
2136
2136
  function d(C) {
2137
- const y = C.status, w = (y & A.sorted) === A.sorted, O = (y & A.ascending) === A.ascending, f = (y & A.descending) === A.descending;
2138
- let b = w ? y ^ A.sorted : y;
2139
- return b = O ? b ^ A.ascending : b, b = f ? b ^ A.descending : b, b;
2137
+ const y = C.status, w = (y & j.sorted) === j.sorted, O = (y & j.ascending) === j.ascending, f = (y & j.descending) === j.descending;
2138
+ let b = w ? y ^ j.sorted : y;
2139
+ return b = O ? b ^ j.ascending : b, b = f ? b ^ j.descending : b, b;
2140
2140
  }
2141
2141
  function m(C) {
2142
2142
  C.sortType = "none", C.status = d(C);
@@ -2147,14 +2147,14 @@ function _r(e, t, n, o, i, a, r) {
2147
2147
  y.filterValue = null, t.removeFilter(`field_filter_${y.field}`), m(y);
2148
2148
  }
2149
2149
  function u(C) {
2150
- const y = d(C), w = C.sortType === "none" ? y : C.sortType === "asc" ? y | A.sorted | A.ascending : y | A.sorted | A.descending;
2150
+ const y = d(C), w = C.sortType === "none" ? y : C.sortType === "asc" ? y | j.sorted | j.ascending : y | j.sorted | j.descending;
2151
2151
  C.status = w;
2152
2152
  const O = C.column;
2153
2153
  O && (O.sort = C.sortType, O.sortOrder = C.sortType !== "none" ? O.sortOrder : 0, C.status = w, e.applyColumnSorter(t, a));
2154
2154
  }
2155
2155
  function s(C) {
2156
- const y = (C.status & A.filtered) === A.filtered;
2157
- C.status = y ? C.status ^ A.filtered : C.status | A.filtered;
2156
+ const y = (C.status & j.filtered) === j.filtered;
2157
+ C.status = y ? C.status ^ j.filtered : C.status | j.filtered;
2158
2158
  const w = C.filterValue != null && C.filterValue !== "" && C.filter;
2159
2159
  t.refresh();
2160
2160
  }
@@ -2162,7 +2162,7 @@ function _r(e, t, n, o, i, a, r) {
2162
2162
  y.showPopover = !1, y.filterHistory = void 0, i.updateFilterHistory(y, y.filterValue), s(y), u(y), r.reCalculateVisualDataRows();
2163
2163
  }
2164
2164
  function g(C) {
2165
- const y = C.status, w = (y & A.sorted) === A.sorted, O = w && (y & A.ascending) === A.ascending;
2165
+ const y = C.status, w = (y & j.sorted) === j.sorted, O = w && (y & j.ascending) === j.ascending;
2166
2166
  C.sortType = w ? O ? "asc" : "desc" : "none", a.updateSorter(C, t);
2167
2167
  }
2168
2168
  function v(C, y) {
@@ -2182,7 +2182,7 @@ function _r(e, t, n, o, i, a, r) {
2182
2182
  class: "fv-column-filter-section"
2183
2183
  }, [h("div", {
2184
2184
  class: "fv-column-filter-section-title"
2185
- }, [Re("筛选")]), h("div", {
2185
+ }, [Ee("筛选")]), h("div", {
2186
2186
  class: "fv-column-filter-section-editor"
2187
2187
  }, [n.getFilterEditor(C)])]), h("div", {
2188
2188
  class: "fv-column-sort-filter-footer"
@@ -2193,20 +2193,23 @@ function _r(e, t, n, o, i, a, r) {
2193
2193
  type: "link",
2194
2194
  onClick: (y) => c(y, C)
2195
2195
  }, {
2196
- default: () => [Re("清空")]
2196
+ default: () => [Ee("清空")]
2197
2197
  })]), h("div", {
2198
2198
  class: "fv-column-confirm-section"
2199
2199
  }, [h(Ne("f-button"), {
2200
- style: "margin: 5px;width: 48px;",
2200
+ customClass: {
2201
+ "f-btn-ml": !0
2202
+ },
2203
+ size: "small",
2201
2204
  onClick: (y) => _(y, C)
2202
2205
  }, {
2203
- default: () => [Re("确定")]
2206
+ default: () => [Ee("确定")]
2204
2207
  }), h(Ne("f-button"), {
2205
- style: "margin: 5px;width: 48px;",
2208
+ size: "small",
2206
2209
  type: "secondary",
2207
2210
  onClick: (y) => v(y, C)
2208
2211
  }, {
2209
- default: () => [Re("取消")]
2212
+ default: () => [Ee("取消")]
2210
2213
  })])])]);
2211
2214
  }
2212
2215
  return {
@@ -2221,29 +2224,29 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
2221
2224
  const T = p.status;
2222
2225
  return {
2223
2226
  "fv-column-handler": !0,
2224
- "fv-column-handler-active": (T & A.filtered) === A.filtered || (T & A.sorted) === A.sorted || p.showPopover
2227
+ "fv-column-handler-active": (T & j.filtered) === j.filtered || (T & j.sorted) === j.sorted || p.showPopover
2225
2228
  };
2226
2229
  }
2227
2230
  function s(p) {
2228
- return (p.status & A.sortable) === A.sortable && (p.status & A.filterable) === A.none && (p.status & A.sorted) === A.none;
2231
+ return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.none && (p.status & j.sorted) === j.none;
2229
2232
  }
2230
2233
  function _(p) {
2231
- return (p.status & A.sortable) === A.sortable && (p.status & A.filterable) === A.none && (p.status & A.sorted) === A.sorted && (p.status & A.ascending) === A.ascending;
2234
+ return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.none && (p.status & j.sorted) === j.sorted && (p.status & j.ascending) === j.ascending;
2232
2235
  }
2233
2236
  function g(p) {
2234
- return (p.status & A.sortable) === A.sortable && (p.status & A.filterable) === A.none && (p.status & A.sorted) === A.sorted && (p.status & A.descending) === A.descending;
2237
+ return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.none && (p.status & j.sorted) === j.sorted && (p.status & j.descending) === j.descending;
2235
2238
  }
2236
2239
  function v(p) {
2237
- return (p.status & A.sortable) === A.none && (p.status & A.filterable) === A.filterable && (p.status & A.sorted) === A.none;
2240
+ return (p.status & j.sortable) === j.none && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.none;
2238
2241
  }
2239
2242
  function S(p) {
2240
- return (p.status & A.sortable) === A.sortable && (p.status & A.filterable) === A.filterable && (p.status & A.sorted) === A.none;
2243
+ return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.none;
2241
2244
  }
2242
2245
  function C(p) {
2243
- return (p.status & A.sortable) === A.sortable && (p.status & A.filterable) === A.filterable && (p.status & A.sorted) === A.sorted && (p.status & A.ascending) === A.ascending;
2246
+ return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.sorted && (p.status & j.ascending) === j.ascending;
2244
2247
  }
2245
2248
  function y(p) {
2246
- return (p.status & A.sortable) === A.sortable && (p.status & A.filterable) === A.filterable && (p.status & A.sorted) === A.sorted && (p.status & A.descending) === A.descending;
2249
+ return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.sorted && (p.status & j.descending) === j.descending;
2247
2250
  }
2248
2251
  const w = function(p) {
2249
2252
  return {
@@ -2256,7 +2259,7 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
2256
2259
  "f-icon-col-filterandascending": C(p),
2257
2260
  "f-icon-col-filteranddescending": y(p)
2258
2261
  };
2259
- }, O = /* @__PURE__ */ new Map([[A.sortable, A.sortable | A.sorted | A.ascending], [A.sortable | A.sorted | A.ascending, A.sortable | A.sorted | A.descending], [A.sortable | A.sorted | A.descending, A.sortable]]), {
2262
+ }, O = /* @__PURE__ */ new Map([[j.sortable, j.sortable | j.sorted | j.ascending], [j.sortable | j.sorted | j.ascending, j.sortable | j.sorted | j.descending], [j.sortable | j.sorted | j.descending, j.sortable]]), {
2260
2263
  renderFilterContainer: f
2261
2264
  } = _r(i, a, r, l, d, m, c), b = F();
2262
2265
  function M(p, T) {
@@ -2288,18 +2291,18 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
2288
2291
  }
2289
2292
  function k(p) {
2290
2293
  const T = p.status;
2291
- if ((T & A.sortable) === A.sortable && (T & A.filterable) === A.none && O.has(T)) {
2292
- const E = O.get(T), N = (E & A.sorted) === A.sorted, $ = (E & A.ascending) === A.ascending, G = (E & A.descending) === A.descending, j = p.column;
2293
- j && (j.sort = $ ? "asc" : G ? "desc" : "none", j.sortOrder = N ? j.sortOrder : 0, p.status = E, i.applyColumnSorter(a, m), c.reCalculateVisualDataRows());
2294
+ if ((T & j.sortable) === j.sortable && (T & j.filterable) === j.none && O.has(T)) {
2295
+ const R = O.get(T), N = (R & j.sorted) === j.sorted, $ = (R & j.ascending) === j.ascending, H = (R & j.descending) === j.descending, W = p.column;
2296
+ W && (W.sort = $ ? "asc" : H ? "desc" : "none", W.sortOrder = N ? W.sortOrder : 0, p.status = R, i.applyColumnSorter(a, m), c.reCalculateVisualDataRows());
2294
2297
  }
2295
2298
  }
2296
2299
  function I(p, T, P) {
2297
- k(T), M(T, P), (T.status & A.filterable) === A.filterable && x(p, T);
2300
+ k(T), M(T, P), (T.status & j.filterable) === j.filterable && x(p, T);
2298
2301
  }
2299
2302
  function V(p, T, P) {
2300
2303
  return [h("span", {
2301
2304
  class: u(p),
2302
- onClick: (E) => I(E, p, P)
2305
+ onClick: (R) => I(R, p, P)
2303
2306
  }, [h("i", {
2304
2307
  class: w(p)
2305
2308
  }, null), p && p.column && p.sortType !== "none" && (p.column.sortOrder || ""), p.showPopover && B(p)])];
@@ -2308,64 +2311,66 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
2308
2311
  renderHeaderCellHandler: V
2309
2312
  };
2310
2313
  }
2311
- function kr(e, t, n, o, i, a, r, l, d) {
2312
- const m = "id", c = F(), {
2313
- applySortableColumns: u,
2314
- collectionFilterableColumns: s,
2315
- collectionSortableColumns: _,
2316
- columnContext: g,
2317
- updateColumnSettingIcon: v
2314
+ function kr(e, t, n, o, i, a, r, l, d, m) {
2315
+ const c = "id", u = F();
2316
+ let s;
2317
+ const {
2318
+ applySortableColumns: _,
2319
+ collectionFilterableColumns: g,
2320
+ collectionSortableColumns: v,
2321
+ columnContext: S,
2322
+ updateColumnSettingIcon: C
2318
2323
  } = o, {
2319
- conditions: S
2324
+ conditions: y
2320
2325
  } = a, {
2321
- calculateColumnsSize: C
2326
+ calculateColumnsSize: w
2322
2327
  } = r, {
2323
- fitHorizontalScroll: y
2324
- } = d, w = F([]), O = D(() => !!w.value.length), f = D(() => g.value.primaryColumns.map((j) => ({
2325
- id: j.field,
2326
- name: j.title
2327
- }))), b = D(() => g.value.primaryColumns.filter((j) => j.visible).map((j) => ({
2328
- id: j.field,
2329
- name: j.title
2330
- }))), M = D(() => _().map((j) => ({
2331
- id: j.field,
2332
- name: j.title,
2333
- order: j.sort
2334
- }))), B = D(() => s().map((j) => ({
2335
- id: j.field,
2336
- code: j.field,
2337
- labelCode: j.field,
2338
- name: j.title,
2339
- editor: j.editor,
2328
+ fitHorizontalScroll: O
2329
+ } = d, f = F([]), b = D(() => !!f.value.length), M = D(() => S.value.primaryColumns.map((X) => ({
2330
+ id: X.field,
2331
+ name: X.title
2332
+ }))), B = D(() => S.value.primaryColumns.filter((X) => X.visible).map((X) => ({
2333
+ id: X.field,
2334
+ name: X.title
2335
+ }))), x = D(() => v().map((X) => ({
2336
+ id: X.field,
2337
+ name: X.title,
2338
+ order: X.sort
2339
+ }))), k = D(() => g().map((X) => ({
2340
+ id: X.field,
2341
+ code: X.field,
2342
+ labelCode: X.field,
2343
+ name: X.title,
2344
+ editor: X.editor,
2340
2345
  // || ({ type: useFilterComposition.getFilterEditorType(filterableColumn) } as EditorConfig),
2341
2346
  value: {},
2342
2347
  visible: !0
2343
2348
  })));
2344
- function x(j) {
2345
- j && j.unmount();
2349
+ function I() {
2350
+ s == null || s.destroy();
2346
2351
  }
2347
- function k() {
2348
- const j = /* @__PURE__ */ new Map();
2349
- return g.value.primaryColumns.reduce((Y, te) => (te.visible = !1, Y.set(te.field, te), Y), j), j;
2352
+ function V() {
2353
+ const X = /* @__PURE__ */ new Map();
2354
+ return S.value.primaryColumns.reduce((le, G) => (G.visible = !1, le.set(G.field, G), le), X), X;
2350
2355
  }
2351
- function I(j, Y) {
2352
- return j.map(({
2353
- id: me
2356
+ function p(X, le) {
2357
+ return X.map(({
2358
+ id: q
2354
2359
  }) => {
2355
- const Ce = Y.get(me);
2356
- return Ce.visible = !0, Y.delete(me), Ce;
2360
+ const fe = le.get(q);
2361
+ return fe.visible = !0, le.delete(q), fe;
2357
2362
  });
2358
2363
  }
2359
- function V(j) {
2360
- const Y = k(), te = I(j, Y);
2361
- g.value.primaryColumns = [...te, ...Array.from(Y.values())], v(), C(), Ue(() => {
2362
- y();
2364
+ function T(X) {
2365
+ const le = V(), G = p(X, le);
2366
+ S.value.primaryColumns = [...G, ...Array.from(le.values())], C(), w(), Ue(() => {
2367
+ O();
2363
2368
  });
2364
2369
  }
2365
- function p(j) {
2366
- w.value = j;
2370
+ function P(X) {
2371
+ f.value = X;
2367
2372
  }
2368
- function T(j) {
2373
+ function E(X) {
2369
2374
  return h("div", {
2370
2375
  class: "fv-grid-settings"
2371
2376
  }, [h(Dn, {
@@ -2376,7 +2381,7 @@ function kr(e, t, n, o, i, a, r, l, d) {
2376
2381
  class: "modal-title"
2377
2382
  }, [h("span", {
2378
2383
  class: "modal-title-label"
2379
- }, [Re("列配置")])]),
2384
+ }, [Ee("列配置")])]),
2380
2385
  default: () => [h(vt, {
2381
2386
  id: "display-columns",
2382
2387
  title: "显示列",
@@ -2384,10 +2389,10 @@ function kr(e, t, n, o, i, a, r, l, d) {
2384
2389
  }, {
2385
2390
  default: () => [h(Pn, {
2386
2391
  style: "height: 480px",
2387
- "identify-field": m,
2388
- "data-source": f.value,
2389
- selections: b.value,
2390
- onChange: V
2392
+ "identify-field": c,
2393
+ "data-source": M.value,
2394
+ selections: B.value,
2395
+ onChange: T
2391
2396
  }, null)]
2392
2397
  }), h(vt, {
2393
2398
  id: "column-order",
@@ -2396,9 +2401,9 @@ function kr(e, t, n, o, i, a, r, l, d) {
2396
2401
  }, {
2397
2402
  default: () => [h(ai, {
2398
2403
  style: "height: 480px",
2399
- "data-source": f.value,
2400
- items: M.value,
2401
- onChange: p
2404
+ "data-source": M.value,
2405
+ items: x.value,
2406
+ onChange: P
2402
2407
  }, null)]
2403
2408
  }), h(vt, {
2404
2409
  id: "column-filter",
@@ -2406,77 +2411,80 @@ function kr(e, t, n, o, i, a, r, l, d) {
2406
2411
  class: "container"
2407
2412
  }, {
2408
2413
  default: () => [h(ri, {
2409
- ref: c,
2414
+ ref: u,
2410
2415
  style: "height: 480px",
2411
- fields: B.value,
2412
- conditions: S.value
2416
+ fields: k.value,
2417
+ conditions: y.value
2413
2418
  }, null)]
2414
2419
  })],
2415
2420
  headerSuffix: () => h("div", {
2416
2421
  class: "f-btn-icon f-bare",
2417
- onClick: (Y) => x(j)
2422
+ onClick: (le) => I()
2418
2423
  }, [h("span", {
2419
2424
  class: "f-icon modal_close"
2420
2425
  }, null)])
2421
2426
  })]);
2422
2427
  }
2423
- function P() {
2424
- const j = /* @__PURE__ */ new Map();
2425
- return _().reduce((Y, te) => (te.sort = "none", te.sortOrder = 0, Y.set(te.field, te), Y), j), j;
2428
+ function R() {
2429
+ const X = /* @__PURE__ */ new Map();
2430
+ return v().reduce((le, G) => (G.sort = "none", G.sortOrder = 0, le.set(G.field, G), le), X), X;
2426
2431
  }
2427
- function R(j) {
2428
- return w.value.filter((te) => te.id && te.order).map((te, me) => {
2429
- const Ce = me + 1, z = j.get(te.id);
2430
- return z && (z.sort = te.order, z.sortOrder = Ce), z;
2432
+ function N(X) {
2433
+ return f.value.filter((G) => G.id && G.order).map((G, q) => {
2434
+ const fe = q + 1, re = X.get(G.id);
2435
+ return re && (re.sort = G.order, re.sortOrder = fe), re;
2431
2436
  });
2432
2437
  }
2433
- function E() {
2434
- if (O.value) {
2435
- const j = P(), Y = R(j);
2436
- u(Y, i, l), d.reCalculateVisualDataRows(), C();
2438
+ function $() {
2439
+ if (b.value) {
2440
+ const X = R(), le = N(X);
2441
+ _(le, i, l), d.reCalculateVisualDataRows(), w();
2437
2442
  }
2438
2443
  }
2439
- function N() {
2440
- c.value && (S.value = c.value.getConditions(), i.refresh(), d.reCalculateVisualDataRows());
2444
+ function H() {
2445
+ u.value && (y.value = u.value.getConditions(), i.refresh(), d.reCalculateVisualDataRows());
2441
2446
  }
2442
- function $() {
2443
- E(), N();
2447
+ function W() {
2448
+ $(), H();
2444
2449
  }
2445
- function G() {
2450
+ function ae() {
2446
2451
  }
2447
- return {
2448
- acceptCallback: $,
2449
- rejectCallback: G,
2450
- renderSettingsPanel: T
2451
- };
2452
- }
2453
- function Tr(e, t, n, o, i, a, r, l, d) {
2454
- function m(u) {
2455
- const s = "Settings", {
2456
- acceptCallback: S,
2457
- rejectCallback: C,
2458
- renderSettingsPanel: y
2459
- } = kr(e, t, n, o, i, a, r, l, d);
2460
- oi.show({
2461
- title: s,
2452
+ function me() {
2453
+ s = m.open({
2454
+ title: "",
2462
2455
  width: 800,
2463
2456
  showButtons: !0,
2464
2457
  showHeader: !1,
2465
- render: y,
2466
- acceptCallback: S,
2467
- rejectCallback: C
2458
+ render: E,
2459
+ acceptCallback: W,
2460
+ rejectCallback: ae
2468
2461
  });
2469
2462
  }
2470
- function c() {
2463
+ return {
2464
+ acceptCallback: W,
2465
+ rejectCallback: ae,
2466
+ renderSettingsPanel: E,
2467
+ openSettingPanel: me
2468
+ };
2469
+ }
2470
+ function Tr(e, t, n, o, i, a, r, l, d) {
2471
+ const m = je(oi);
2472
+ function c(s) {
2473
+ const {
2474
+ openSettingPanel: _
2475
+ } = kr(e, t, n, o, i, a, r, l, d, m);
2476
+ _();
2477
+ }
2478
+ function u() {
2471
2479
  return h("span", {
2472
2480
  class: "fv-grid-settings-icon",
2473
- onClick: m
2481
+ onClick: c
2474
2482
  }, [h("i", {
2475
2483
  class: "f-icon f-icon-home-setup"
2476
2484
  }, null)]);
2477
2485
  }
2478
2486
  return {
2479
- renderGridSettingsIcon: c
2487
+ renderGridSettingsIcon: u
2480
2488
  };
2481
2489
  }
2482
2490
  function Or(e, t, n, o) {
@@ -2530,62 +2538,62 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
2530
2538
  resizeHandleStyle: T,
2531
2539
  resizeOverlayStyle: P
2532
2540
  } = Or(e, k, c, v), {
2533
- gridHeaderColumnsStyle: R,
2534
- leftFixedGridHeaderColumnsStyle: E,
2541
+ gridHeaderColumnsStyle: E,
2542
+ leftFixedGridHeaderColumnsStyle: R,
2535
2543
  rightFixedGridHeaderColumnsStyle: N
2536
2544
  } = v, {
2537
2545
  dragstart: $,
2538
- dragenter: G,
2539
- dragover: j,
2540
- dragend: Y
2541
- } = r, te = D(() => y.value || M.value || b.value), me = k.value.defaultColumnWidth, Ce = 32, z = /* @__PURE__ */ new Map([[0, 0]]);
2542
- function U(H, ue) {
2543
- const q = z.get(ue) || 0, X = {
2544
- height: `${H.depth * Ce}px`,
2545
- left: `${H.left}px`,
2546
- top: `${(H.layer - 1) * Ce}px`,
2547
- width: `${H.actualWidth}px`
2546
+ dragenter: H,
2547
+ dragover: W,
2548
+ dragend: ae
2549
+ } = r, me = D(() => y.value || M.value || b.value), X = k.value.defaultColumnWidth, le = 32, G = /* @__PURE__ */ new Map([[0, 0]]);
2550
+ function q(A, de) {
2551
+ const U = G.get(de) || 0, Y = {
2552
+ height: `${A.depth * le}px`,
2553
+ left: `${A.left}px`,
2554
+ top: `${(A.layer - 1) * le}px`,
2555
+ width: `${A.actualWidth}px`
2548
2556
  };
2549
- return k.value.headerDepth > 1 && (X["line-height"] = `${H.depth * Ce}px`), z.set(ue + 1, q + (H.actualWidth || me)), X;
2557
+ return k.value.headerDepth > 1 && (Y["line-height"] = `${A.depth * le}px`), G.set(de + 1, U + (A.actualWidth || X)), Y;
2550
2558
  }
2551
- const ge = D(() => ({
2559
+ const fe = D(() => ({
2552
2560
  "fv-grid-header": !0,
2553
2561
  "fv-grid-header-group-columns": k.value.headerDepth > 1
2554
- })), ce = D(() => ({
2555
- height: `${k.value.headerDepth * Ce}px`
2556
- })), le = function(H) {
2557
- return (H.status & A.sortable) === A.sortable || (H.status & A.filterable) === A.filterable;
2562
+ })), re = D(() => ({
2563
+ height: `${k.value.headerDepth * le}px`
2564
+ })), ue = function(A) {
2565
+ return (A.status & j.sortable) === j.sortable || (A.status & j.filterable) === j.filterable;
2558
2566
  }, {
2559
- renderHeaderCellHandler: he
2560
- } = xr(e, t, n, o, i, a, l, d, m, g, v), Be = function(H) {
2561
- return e.showSetting && !!H.showSetting;
2567
+ renderHeaderCellHandler: ye
2568
+ } = xr(e, t, n, o, i, a, l, d, m, g, v), Be = function(A) {
2569
+ return e.showSetting && !!A.showSetting;
2562
2570
  }, {
2563
- renderGridSettingsIcon: be
2571
+ renderGridSettingsIcon: Ce
2564
2572
  } = Tr(e, t, S, i, a, d, c, g, v);
2565
- function se(H, ue, q) {
2573
+ function ce(A, de, U) {
2566
2574
  return h("div", {
2567
2575
  class: "fv-grid-header-cell",
2568
- style: U(H, q),
2576
+ style: q(A, U),
2569
2577
  draggable: "true",
2570
- onDragstart: (X) => $(X, H, q),
2571
- onDragenter: (X) => G(X, q),
2572
- onDragend: (X) => Y(X, H),
2573
- onDragover: (X) => j(X, q)
2578
+ onDragstart: (Y) => $(Y, A, U),
2579
+ onDragenter: (Y) => H(Y, U),
2580
+ onDragend: (Y) => ae(Y, A),
2581
+ onDragover: (Y) => W(Y, U)
2574
2582
  }, [h("span", {
2575
2583
  class: "fv-column-title"
2576
- }, [H.title]), le(H) && he(H, q, ue), Be(H) && be(), H.resizable && h("span", {
2584
+ }, [A.title]), ue(A) && ye(A, U, de), Be(A) && Ce(), A.resizable && h("span", {
2577
2585
  class: "fv-column-resize-bar",
2578
- onMousedown: (X) => p(X, H.field)
2586
+ onMousedown: (Y) => p(Y, A.field)
2579
2587
  }, null)]);
2580
2588
  }
2581
- function pe(H) {
2582
- return H.map((ue, q) => {
2583
- const X = [];
2584
- if (X.push(se(ue, H, q)), ue.children && ue.children.length) {
2585
- const _e = pe(ue.children);
2586
- X.push(..._e);
2589
+ function ve(A) {
2590
+ return A.map((de, U) => {
2591
+ const Y = [];
2592
+ if (Y.push(ce(de, A, U)), de.children && de.children.length) {
2593
+ const Fe = ve(de.children);
2594
+ Y.push(...Fe);
2587
2595
  }
2588
- return X;
2596
+ return Y;
2589
2597
  });
2590
2598
  }
2591
2599
  function Se() {
@@ -2593,25 +2601,25 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
2593
2601
  class: "fv-grid-header-left-fixed"
2594
2602
  }, [h("div", {
2595
2603
  class: "fv-grid-header-columns",
2596
- style: E.value
2597
- }, [pe(k.value.leftHeaderColumns)])]);
2604
+ style: R.value
2605
+ }, [ve(k.value.leftHeaderColumns)])]);
2598
2606
  }
2599
- function fe() {
2607
+ function ge() {
2600
2608
  return h("div", {
2601
2609
  class: "fv-grid-header-right-fixed"
2602
2610
  }, [h("div", {
2603
2611
  class: "fv-grid-header-columns",
2604
2612
  style: N.value
2605
- }, [pe(k.value.rightHeaderColumns)])]);
2613
+ }, [ve(k.value.rightHeaderColumns)])]);
2606
2614
  }
2607
- const ve = F(C.value.length === f.value.length);
2608
- function Pe(H) {
2609
- ve.value ? w() : O();
2615
+ const he = F(C.value.length === f.value.length);
2616
+ function Pe(A) {
2617
+ he.value ? w() : O();
2610
2618
  }
2611
- ie(ve, (H, ue) => {
2612
- H !== ue && (H ? w() : O());
2619
+ oe(he, (A, de) => {
2620
+ A !== de && (A ? w() : O());
2613
2621
  }), D(() => f.value.length > 0 && C.value.length !== f.value.length);
2614
- function W() {
2622
+ function L() {
2615
2623
  return h("div", {
2616
2624
  class: "fv-grid-header-corner d-flex",
2617
2625
  style: x.value
@@ -2619,8 +2627,8 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
2619
2627
  class: "d-inline-flex align-items-center"
2620
2628
  }, [h(st, {
2621
2629
  id: "checkbox_for_select_all",
2622
- checked: ve.value,
2623
- "onUpdate:checked": (H) => ve.value = H
2630
+ checked: he.value,
2631
+ "onUpdate:checked": (A) => he.value = A
2624
2632
  }, null)]), M.value && !y.value && h("div", {
2625
2633
  class: "d-inline-flex align-items-center",
2626
2634
  style: {
@@ -2628,8 +2636,8 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
2628
2636
  }
2629
2637
  }, [h(st, {
2630
2638
  id: "checkbox_for_select_all",
2631
- checked: ve.value,
2632
- "onUpdate:checked": (H) => ve.value = H,
2639
+ checked: he.value,
2640
+ "onUpdate:checked": (A) => he.value = A,
2633
2641
  onChange: Pe
2634
2642
  }, null)]), b.value && h("div", {
2635
2643
  class: "d-inline-flex align-items-center"
@@ -2641,18 +2649,18 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
2641
2649
  }
2642
2650
  }, [B.value])])]);
2643
2651
  }
2644
- function de() {
2652
+ function pe() {
2645
2653
  return h("div", {
2646
- class: ge.value,
2647
- style: ce.value
2648
- }, [te.value && W(), I.value && Se(), h("div", {
2654
+ class: fe.value,
2655
+ style: re.value
2656
+ }, [me.value && L(), I.value && Se(), h("div", {
2649
2657
  class: "fv-grid-header-primary"
2650
2658
  }, [h("div", {
2651
2659
  class: "fv-grid-header-columns",
2652
- style: R.value
2653
- }, [pe(k.value.primaryHeaderColumns)])]), V.value && fe()]);
2660
+ style: E.value
2661
+ }, [ve(k.value.primaryHeaderColumns)])]), V.value && ge()]);
2654
2662
  }
2655
- function ye() {
2663
+ function be() {
2656
2664
  return h(Ke, null, [h("div", {
2657
2665
  class: "fv-datagrid-resize-overlay",
2658
2666
  style: P.value
@@ -2662,8 +2670,8 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
2662
2670
  }, null)]);
2663
2671
  }
2664
2672
  return {
2665
- renderGridHeader: de,
2666
- renderGridColumnResizeOverlay: ye
2673
+ renderGridHeader: pe,
2674
+ renderGridColumnResizeOverlay: be
2667
2675
  };
2668
2676
  }
2669
2677
  function Br() {
@@ -2699,14 +2707,14 @@ function Vr(e, t, n, o, i) {
2699
2707
  g.push(C);
2700
2708
  }), m.value = g;
2701
2709
  }
2702
- ie(r, () => c());
2710
+ oe(r, () => c());
2703
2711
  function u(g) {
2704
2712
  d(`field_filter_${g}`);
2705
2713
  const v = a.value.primaryHeaderColumns.find((S) => S.field === g);
2706
2714
  if (v) {
2707
2715
  v.filterValue = null;
2708
2716
  let S = v.status;
2709
- S = (S & A.filtered) === A.filtered ? S ^ A.filtered : S, v.status = S;
2717
+ S = (S & j.filtered) === j.filtered ? S ^ j.filtered : S, v.status = S;
2710
2718
  }
2711
2719
  n.refresh(), i.reCalculateVisualDataRows();
2712
2720
  }
@@ -2714,7 +2722,7 @@ function Vr(e, t, n, o, i) {
2714
2722
  l(), a.value.primaryHeaderColumns.forEach((g) => {
2715
2723
  g.filterValue = null;
2716
2724
  let v = g.status;
2717
- v = (v & A.filtered) === A.filtered ? v ^ A.filtered : v, g.status = v;
2725
+ v = (v & j.filtered) === j.filtered ? v ^ j.filtered : v, g.status = v;
2718
2726
  }), n.refresh(), i.reCalculateVisualDataRows();
2719
2727
  }
2720
2728
  function _() {
@@ -2829,7 +2837,7 @@ function At(e, t) {
2829
2837
  height: `${v}`
2830
2838
  };
2831
2839
  }
2832
- return ie(t, () => {
2840
+ return oe(t, () => {
2833
2841
  i.value = t.value.primaryColumnsWidth;
2834
2842
  }), {
2835
2843
  calculateCellPositionInRow: a,
@@ -2908,7 +2916,7 @@ function Ht() {
2908
2916
  }
2909
2917
  return { updateRowPosition: e, updateVisualInfomation: t };
2910
2918
  }
2911
- function Rr(e, t, n, o, i, a) {
2919
+ function Er(e, t, n, o, i, a) {
2912
2920
  const { dataView: r, fold: l, hasRealChildren: d, unFold: m } = o, { collapseField: c, hasChildrenField: u } = i, { updateRowPosition: s } = Ht();
2913
2921
  function _(S, C) {
2914
2922
  const y = C[S].layer;
@@ -2945,7 +2953,7 @@ function Rr(e, t, n, o, i, a) {
2945
2953
  }
2946
2954
  return { toggleTreeNode: v };
2947
2955
  }
2948
- function Er(e, t, n, o, i, a, r, l, d, m, c) {
2956
+ function Rr(e, t, n, o, i, a, r, l, d, m, c) {
2949
2957
  const {
2950
2958
  onClickCell: u
2951
2959
  } = a, {
@@ -2965,7 +2973,7 @@ function Er(e, t, n, o, i, a, r, l, d, m, c) {
2965
2973
  shouldShowIcon: b
2966
2974
  } = r, {
2967
2975
  toggleTreeNode: M
2968
- } = Rr(e, t, o, i, r), {
2976
+ } = Er(e, t, o, i, r), {
2969
2977
  toggleSelectHierarchyItem: B
2970
2978
  } = m, {
2971
2979
  cellKey: x,
@@ -2977,80 +2985,80 @@ function Er(e, t, n, o, i, a, r, l, d, m, c) {
2977
2985
  } = Pr(e, o, r), {
2978
2986
  treeNodeIconsClass: T
2979
2987
  } = Dr(e, w, O);
2980
- function P(z, U) {
2981
- const ge = z.raw[O.value];
2988
+ function P(G, q) {
2989
+ const fe = G.raw[O.value];
2982
2990
  return {
2983
- "fv-tree-node-toggle": ge && z.collapse,
2984
- "fv-tree-node-toggle-minus": ge && !z.collapse
2991
+ "fv-tree-node-toggle": fe && G.collapse,
2992
+ "fv-tree-node-toggle-minus": fe && !G.collapse
2985
2993
  };
2986
2994
  }
2987
- function R(z, U) {
2988
- z.stopPropagation(), M(U);
2995
+ function E(G, q) {
2996
+ G.stopPropagation(), M(q);
2989
2997
  }
2990
- function E(z, U) {
2998
+ function R(G, q) {
2991
2999
  return h("div", {
2992
- class: P(z),
2993
- onClick: (ge) => R(ge, z)
3000
+ class: P(G),
3001
+ onClick: (fe) => E(fe, G)
2994
3002
  }, null);
2995
3003
  }
2996
- function N(z, U) {
3004
+ function N(G, q) {
2997
3005
  return b.value && h("div", {
2998
3006
  id: "treeNodeIcons",
2999
- class: T(z, U)
3007
+ class: T(G, q)
3000
3008
  }, null);
3001
3009
  }
3002
- function $(z) {
3003
- z.checked ? S(z) : C(z), B(z);
3010
+ function $(G) {
3011
+ G.checked ? S(G) : C(G), B(G);
3004
3012
  }
3005
- function G(z, U) {
3013
+ function H(G, q) {
3006
3014
  return f.value && h(st, {
3007
- id: "checkbox_for_" + x(z, U.index),
3008
- indeterminate: z.indeterminate,
3009
- checked: z.checked,
3010
- "onUpdate:checked": (ge) => z.checked = ge,
3011
- onChange: () => $(z)
3015
+ id: "checkbox_for_" + x(G, q.index),
3016
+ indeterminate: G.indeterminate,
3017
+ checked: G.checked,
3018
+ "onUpdate:checked": (fe) => G.checked = fe,
3019
+ onChange: () => $(G)
3012
3020
  }, null);
3013
3021
  }
3014
- function j(z, U) {
3022
+ function W(G, q) {
3015
3023
  return h("span", {
3016
- title: U.data
3017
- }, [U.mode === De.editing ? U.getEditor(U) : U.data]);
3024
+ title: q.data
3025
+ }, [q.mode === De.editing ? q.getEditor(q) : q.data]);
3018
3026
  }
3019
- function Y(z, U, ge) {
3027
+ function ae(G, q, fe) {
3020
3028
  return h("div", {
3021
- ref: U.setRef,
3022
- key: x(z, U.index),
3029
+ ref: q.setRef,
3030
+ key: x(G, q.index),
3023
3031
  class: "fv-grid-hierarchy-cell",
3024
- style: k(U, ge)
3032
+ style: k(q, fe)
3025
3033
  }, [h("div", {
3026
- style: p(z)
3027
- }, [E(z), N(z, U), G(z, U), j(z, U)])]);
3034
+ style: p(G)
3035
+ }, [R(G), N(G, q), H(G, q), W(G, q)])]);
3028
3036
  }
3029
- function te(z, U, ge) {
3037
+ function me(G, q, fe) {
3030
3038
  return h("div", {
3031
- ref: U.setRef,
3032
- key: x(z, U.index),
3039
+ ref: q.setRef,
3040
+ key: x(G, q.index),
3033
3041
  class: "fv-grid-cell",
3034
- style: k(U, ge),
3035
- onClick: (ce) => u(ce, U)
3036
- }, [U.mode === De.editing ? U.getEditor(U) : U.formatter ? U.formatter(U, z) : U.data != null ? U.data.toString() : U.data]);
3042
+ style: k(q, fe),
3043
+ onClick: (re) => u(re, q)
3044
+ }, [q.mode === De.editing ? q.getEditor(q) : q.formatter ? q.formatter(q, G) : q.data != null ? q.data.toString() : q.data]);
3037
3045
  }
3038
- function me(z, U) {
3039
- return U === "left" && n.value.leftColumns.length > 0 && n.value.leftColumns[0].field === z.field || U === "primary" && n.value.primaryColumns.length > 0 && n.value.primaryColumns[0].field === z.field;
3046
+ function X(G, q) {
3047
+ return q === "left" && n.value.leftColumns.length > 0 && n.value.leftColumns[0].field === G.field || q === "primary" && n.value.primaryColumns.length > 0 && n.value.primaryColumns[0].field === G.field;
3040
3048
  }
3041
- function Ce(z, U, ge = "primary") {
3049
+ function le(G, q, fe = "primary") {
3042
3050
  return h("div", {
3043
- ref: z.setRef,
3044
- key: I(z),
3045
- class: s(z),
3046
- style: V(z),
3047
- onMouseover: (ce) => g(ce, z),
3048
- onMouseout: (ce) => v(ce, z),
3049
- onClick: (ce) => _(ce, z)
3050
- }, [Object.values(z.data).filter((ce) => U[ce.field] && ce.rowSpan === 1).map((ce, le) => me(ce, ge) ? Y(z, ce, U) : te(z, ce, U))]);
3051
+ ref: G.setRef,
3052
+ key: I(G),
3053
+ class: s(G),
3054
+ style: V(G),
3055
+ onMouseover: (re) => g(re, G),
3056
+ onMouseout: (re) => v(re, G),
3057
+ onClick: (re) => _(re, G)
3058
+ }, [Object.values(G.data).filter((re) => q[re.field] && re.rowSpan === 1).map((re, ue) => X(re, fe) ? ae(G, re, q) : me(G, re, q))]);
3051
3059
  }
3052
3060
  return {
3053
- renderDataRow: Ce
3061
+ renderDataRow: le
3054
3062
  };
3055
3063
  }
3056
3064
  function Gn(e, t, n) {
@@ -3087,13 +3095,13 @@ function $r(e, t, n, o, i) {
3087
3095
  function s(g) {
3088
3096
  n.changePageSizeTo(g), o.resetScroll(), t.emit("pageSizeChanged", g);
3089
3097
  }
3090
- Ee(() => {
3098
+ Re(() => {
3091
3099
  c.value === "server" && u(1);
3092
3100
  });
3093
3101
  function _() {
3094
3102
  return h("div", {
3095
3103
  class: "fv-datagrid-pagination"
3096
- }, [h(Rn, {
3104
+ }, [h(En, {
3097
3105
  mode: "default",
3098
3106
  currentPage: a.value,
3099
3107
  "onUpdate:currentPage": (g) => a.value = g,
@@ -3202,7 +3210,7 @@ function Nr(e, t, n) {
3202
3210
  class: "fv-datagird-summary-panel"
3203
3211
  }, [h("span", {
3204
3212
  class: "fv-datagrid-summary-title"
3205
- }, [Re("当页合计")]), h("div", {
3213
+ }, [Ee("当页合计")]), h("div", {
3206
3214
  class: "fv-datagrid-summary-content"
3207
3215
  }, [o.value.summaryColumns.map((l) => h("div", {
3208
3216
  class: "fv-datagrid-summary-field"
@@ -3266,7 +3274,7 @@ function jr() {
3266
3274
  size: a.size || "small",
3267
3275
  onClick: (r) => t(a, r, i)
3268
3276
  }, {
3269
- default: () => [Re(" "), a.text, Re(" ")]
3277
+ default: () => [Ee(" "), a.text, Ee(" ")]
3270
3278
  }))]);
3271
3279
  }
3272
3280
  return {
@@ -3280,7 +3288,7 @@ function Ar(e) {
3280
3288
  }, [h("div", {
3281
3289
  class: "f-datagrid-norecords-content",
3282
3290
  style: "margin: 0;width: 100%;position: relative; top: 0"
3283
- }, [Re(" "), e.slots.empty && e.slots.empty() || "暂无数据"])]);
3291
+ }, [Ee(" "), e.slots.empty && e.slots.empty() || "暂无数据"])]);
3284
3292
  }
3285
3293
  return {
3286
3294
  renderEmpty: t
@@ -3288,7 +3296,7 @@ function Ar(e) {
3288
3296
  }
3289
3297
  function zn(e) {
3290
3298
  const t = F(e.minHeight), n = F(e.minWidth), o = F(e.height), i = F(e.width), a = D(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), r = D(() => i.value <= 0 ? 0 : Math.max(i.value, n.value));
3291
- return ie([
3299
+ return oe([
3292
3300
  () => e.height,
3293
3301
  () => e.width,
3294
3302
  () => e.minHeight,
@@ -3297,8 +3305,7 @@ function zn(e) {
3297
3305
  t.value = Number(c), n.value = Number(u), o.value = Number(d), i.value = Number(m);
3298
3306
  }), { containerStyleObject: D(() => ({
3299
3307
  height: a.value > 0 ? `${a.value}px` : e.fit ? "100%" : "",
3300
- width: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : "",
3301
- flex: "none"
3308
+ width: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : ""
3302
3309
  })) };
3303
3310
  }
3304
3311
  function qn(e) {
@@ -3449,7 +3456,7 @@ function Lr(e) {
3449
3456
  style: "display:flex;margin-bottom:6px;"
3450
3457
  }, [h("label", {
3451
3458
  style: "margin-right:8px"
3452
- }, [Re("按区间筛选")]), h(Ne("f-switch"), {
3459
+ }, [Ee("按区间筛选")]), h(Ne("f-switch"), {
3453
3460
  modelValue: t.value,
3454
3461
  "onUpdate:modelValue": (n) => t.value = n,
3455
3462
  size: "small"
@@ -3543,7 +3550,7 @@ function Ur(e, t, n, o, i, a) {
3543
3550
  "selection-values": c(e.filterValue),
3544
3551
  onSelectChange: (_) => s(_)
3545
3552
  }, {
3546
- default: () => [Re(" ")]
3553
+ default: () => [Ee(" ")]
3547
3554
  });
3548
3555
  }
3549
3556
  function Kr(e) {
@@ -3585,7 +3592,7 @@ function Kr(e) {
3585
3592
  view: "SingleView",
3586
3593
  size: "Small"
3587
3594
  }, {
3588
- default: () => [Re(" ")]
3595
+ default: () => [Ee(" ")]
3589
3596
  });
3590
3597
  }
3591
3598
  function Un(e, t, n, o, i) {
@@ -3714,18 +3721,18 @@ function Yn(e, t, n, o, i) {
3714
3721
  function v(k, I) {
3715
3722
  const V = [], p = [];
3716
3723
  let T = 0;
3717
- k.value.primaryColumns.filter((E) => E.visible).forEach((E) => {
3718
- typeof E.width == "string" ? p.push(E) : (E.width = E.width || r, T += E.width, V.push(E));
3724
+ k.value.primaryColumns.filter((R) => R.visible).forEach((R) => {
3725
+ typeof R.width == "string" ? p.push(R) : (R.width = R.width || r, T += R.width, V.push(R));
3719
3726
  });
3720
- const P = I * (V.length / k.value.primaryColumns.filter((E) => E.visible).length);
3721
- V.forEach((E) => {
3722
- const N = P * (E.width / T);
3723
- E.actualWidth = N, k.value.primaryColumnsWidth += E.actualWidth;
3727
+ const P = I * (V.length / k.value.primaryColumns.filter((R) => R.visible).length);
3728
+ V.forEach((R) => {
3729
+ const N = P * (R.width / T);
3730
+ R.actualWidth = N, k.value.primaryColumnsWidth += R.actualWidth;
3724
3731
  });
3725
- const R = I - P;
3726
- p.forEach((E) => {
3727
- const N = _(E, k.value, R);
3728
- E.actualWidth = N, k.value.primaryColumnsWidth += E.actualWidth;
3732
+ const E = I - P;
3733
+ p.forEach((R) => {
3734
+ const N = _(R, k.value, E);
3735
+ R.actualWidth = N, k.value.primaryColumnsWidth += R.actualWidth;
3729
3736
  });
3730
3737
  }
3731
3738
  function S(k, I) {
@@ -3736,19 +3743,19 @@ function Yn(e, t, n, o, i) {
3736
3743
  }
3737
3744
  function C(k, I) {
3738
3745
  const V = [], p = [], T = /* @__PURE__ */ new WeakMap();
3739
- let P = 0, R = 0;
3746
+ let P = 0, E = 0;
3740
3747
  if (k.value.primaryColumns.filter((N) => N.visible).forEach((N) => {
3741
3748
  if (typeof N.width == "string") {
3742
3749
  const $ = _(N, k.value, I);
3743
3750
  T.set(N, $), P += $, p.push(N);
3744
3751
  } else
3745
- N.width = N.width || r, R += N.width, V.push(N);
3746
- }), I - P > R) {
3752
+ N.width = N.width || r, E += N.width, V.push(N);
3753
+ }), I - P > E) {
3747
3754
  const N = I - P;
3748
3755
  p.forEach(($) => {
3749
3756
  $.actualWidth = T.get($) || r, k.value.primaryColumnsWidth += $.actualWidth;
3750
3757
  }), V.forEach(($) => {
3751
- $.actualWidth = N * ($.width / R), k.value.primaryColumnsWidth += $.actualWidth;
3758
+ $.actualWidth = N * ($.width / E), k.value.primaryColumnsWidth += $.actualWidth;
3752
3759
  });
3753
3760
  } else
3754
3761
  v(k, I);
@@ -3780,16 +3787,16 @@ function Yn(e, t, n, o, i) {
3780
3787
  var $;
3781
3788
  let p = 0;
3782
3789
  const T = k.value.primaryColumns, P = k.value.rightColumns;
3783
- k.value.rightColumns.filter((G) => G.visible).forEach((G) => {
3784
- G.actualWidth = g(G, k.value, I), p += G.actualWidth;
3790
+ k.value.rightColumns.filter((H) => H.visible).forEach((H) => {
3791
+ H.actualWidth = g(H, k.value, I), p += H.actualWidth;
3785
3792
  });
3786
- const R = V - p, E = w[s.value];
3787
- if (E && E(k, R), k.value.primaryColumnsWidth + p <= V)
3793
+ const E = V - p, R = w[s.value];
3794
+ if (R && R(k, E), k.value.primaryColumnsWidth + p <= V)
3788
3795
  return k.value.primaryColumns = [...T, ...P], k.value.primaryColumnsWidth += p, k.value.rightColumns = [], k.value.rightColumnsWidth = 0, !0;
3789
3796
  const N = /* @__PURE__ */ new Map();
3790
- return N.set("primary", []), N.set("right", []), k.value.primaryColumns.reduce((G, j) => {
3791
- var Y, te;
3792
- return j.fixed === "right" ? (Y = G.get("right")) == null || Y.push(j) : (te = G.get("primary")) == null || te.push(j), G;
3797
+ return N.set("primary", []), N.set("right", []), k.value.primaryColumns.reduce((H, W) => {
3798
+ var ae, me;
3799
+ return W.fixed === "right" ? (ae = H.get("right")) == null || ae.push(W) : (me = H.get("primary")) == null || me.push(W), H;
3793
3800
  }, N), ($ = N.get("right")) != null && $.length && (k.value.primaryColumns = [...N.get("primary") || []], k.value.rightColumns = [...N.get("right") || []]), k.value.primaryColumnsWidth = 0, k.value.rightColumnsWidth = 0, !1;
3794
3801
  }
3795
3802
  function M() {
@@ -3812,7 +3819,7 @@ function Yn(e, t, n, o, i) {
3812
3819
  O(t), t.value = Object.assign({}, t.value);
3813
3820
  }
3814
3821
  }
3815
- return ie([
3822
+ return oe([
3816
3823
  () => {
3817
3824
  var k;
3818
3825
  return (k = e.columnOption) == null ? void 0 : k.fitMode;
@@ -3839,7 +3846,7 @@ function Qn(e, t) {
3839
3846
  parent: s,
3840
3847
  resizable: !1,
3841
3848
  title: c.title || "",
3842
- status: A.none,
3849
+ status: j.none,
3843
3850
  popoverRef: F(),
3844
3851
  showPopover: !1,
3845
3852
  column: null,
@@ -3895,8 +3902,8 @@ function Qn(e, t) {
3895
3902
  function d(c) {
3896
3903
  let u = /* @__PURE__ */ new Map(), s = 0;
3897
3904
  if (c.reduce((_, g) => {
3898
- let v = A.none;
3899
- return v = g.sortable ? v | A.sortable : v, v = g.filterable ? v | A.filterable : v, v = g.sort && g.sort !== "none" ? v | A.sorted | (g.sort === "asc" ? A.ascending : A.descending) : v, _.set(g.field, {
3905
+ let v = j.none;
3906
+ return v = g.sortable ? v | j.sortable : v, v = g.filterable ? v | j.filterable : v, v = g.sort && g.sort !== "none" ? v | j.sorted | (g.sort === "asc" ? j.ascending : j.descending) : v, _.set(g.field, {
3900
3907
  actualWidth: g.actualWidth || 0,
3901
3908
  children: [],
3902
3909
  depth: 1,
@@ -4359,7 +4366,7 @@ function ll(e, t, n) {
4359
4366
  let s = "col-12";
4360
4367
  return c > 250 * 6 ? s = "col-2" : c > 250 * 4 ? s = "col-3" : c > 250 * 3 ? s = "col-4" : c > 250 * 2 && (s = "col-6"), s;
4361
4368
  }
4362
- return ie([n], ([c]) => {
4369
+ return oe([n], ([c]) => {
4363
4370
  i.value = c, l();
4364
4371
  }), {
4365
4372
  conditionClass: r,
@@ -4382,7 +4389,7 @@ const Zt = /* @__PURE__ */ Oe({
4382
4389
  m(!0), l(a.value), rn(() => {
4383
4390
  var C;
4384
4391
  (C = s.value) == null || C.unobserve(n.value);
4385
- }), ie(() => e.conditions, () => {
4392
+ }), oe(() => e.conditions, () => {
4386
4393
  a.value = e.conditions;
4387
4394
  });
4388
4395
  const _ = D(() => ({
@@ -4675,26 +4682,26 @@ const Ml = {
4675
4682
  emits: [],
4676
4683
  setup(e, t) {
4677
4684
  const n = F(e.title || e.text), o = F(e.required), i = F(e.text);
4678
- return ie(() => e.text, () => {
4685
+ return oe(() => e.text, () => {
4679
4686
  i.value = e.text;
4680
- }), ie(() => e.required, (a, r) => {
4687
+ }), oe(() => e.required, (a, r) => {
4681
4688
  a !== r && (o.value = a);
4682
4689
  }), () => h("label", {
4683
4690
  class: "col-form-label",
4684
4691
  title: n.value
4685
4692
  }, [o.value && h("span", {
4686
4693
  class: "farris-label-info text-danger"
4687
- }, [Re("*")]), h("span", {
4694
+ }, [Ee("*")]), h("span", {
4688
4695
  class: "farris-label-text"
4689
4696
  }, [i.value])]);
4690
4697
  }
4691
4698
  }), Dl = /* @__PURE__ */ new Map([
4692
4699
  ["appearance", Qe]
4693
4700
  ]);
4694
- function Rl(e, t, n) {
4701
+ function El(e, t, n) {
4695
4702
  return t;
4696
4703
  }
4697
- const El = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/input-group.schema.json", Nl = "input-group", jl = "A Farris Input Component", Al = "object", Hl = {
4704
+ const Rl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/input-group.schema.json", Nl = "input-group", jl = "A Farris Input Component", Al = "object", Hl = {
4698
4705
  id: {
4699
4706
  description: "The unique identifier for a Input Group",
4700
4707
  type: "string"
@@ -4900,7 +4907,7 @@ const El = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
4900
4907
  "id",
4901
4908
  "type"
4902
4909
  ], Wl = {
4903
- $schema: El,
4910
+ $schema: Rl,
4904
4911
  $id: $l,
4905
4912
  title: Nl,
4906
4913
  description: jl,
@@ -4974,7 +4981,7 @@ const El = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
4974
4981
  */
4975
4982
  updateOn: { type: String, default: "blur" }
4976
4983
  };
4977
- Ae(io, Wl, Dl, Rl);
4984
+ Ae(io, Wl, Dl, El);
4978
4985
  function Ll(e, t, n, o) {
4979
4986
  const i = F(e.disabled), a = F(!1), r = F("text"), l = F(e.showBorder), d = F(e.textAlign), m = F(e.updateOn), c = D(() => e.editable || !e.readonly), u = D(() => e.editable && !e.disabled && !e.readonly), s = D(() => !e.disabled && a.value), _ = D(() => n.value === "" || n.value === null || n.value === void 0), g = D(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = D(() => e.readonly || !e.editable), S = D(() => e.enableTitle ? n.value : ""), C = D(() => ({
4980
4987
  "form-control": !0,
@@ -4991,17 +4998,17 @@ function Ll(e, t, n, o) {
4991
4998
  "f-state-readonly": v.value,
4992
4999
  "f-state-focus": s.value
4993
5000
  };
4994
- return (e.customClass || "").split(" ").reduce((P, R) => (P[R] = !0, P), p), p;
5001
+ return (e.customClass || "").split(" ").reduce((P, E) => (P[E] = !0, P), p), p;
4995
5002
  }), w = D(() => l.value ? "" : "border-width : 0 ");
4996
5003
  function O(p, T = !0) {
4997
5004
  n.value = p, o.value !== p && (o.value = p), T && t.emit("change", p), t.emit("update:modelValue", p), t.emit("update:value", p);
4998
5005
  }
4999
- ie(
5006
+ oe(
5000
5007
  () => e.modelValue,
5001
5008
  (p, T) => {
5002
5009
  p !== T && (n.value = p, o.value = p);
5003
5010
  }
5004
- ), ie(() => e.disabled, (p, T) => {
5011
+ ), oe(() => e.disabled, (p, T) => {
5005
5012
  p !== T && (i.value = p);
5006
5013
  });
5007
5014
  function f(p) {
@@ -5063,7 +5070,7 @@ function zl(e, t, n) {
5063
5070
  function m(v) {
5064
5071
  o.value = v;
5065
5072
  }
5066
- ie(r, () => {
5073
+ oe(r, () => {
5067
5074
  l != null && l.value ? m(!!(r != null && r.value)) : m(!1);
5068
5075
  });
5069
5076
  const c = D(() => ({
@@ -5135,7 +5142,7 @@ function Ql(e, t) {
5135
5142
  }
5136
5143
  function Zl(e, t, n, o) {
5137
5144
  const { appendedContent: i } = o, a = F(e.enableViewPassword), r = D(() => e.type === "password"), l = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', m = F(!1);
5138
- ie(() => [e.readonly, e.disabled], ([s, _]) => {
5145
+ oe(() => [e.readonly, e.disabled], ([s, _]) => {
5139
5146
  r.value && (n.value = s || _ ? "password" : n.value, i.value = s || _ ? d : i.value);
5140
5147
  });
5141
5148
  function c() {
@@ -5168,7 +5175,7 @@ function Jl(e, t, n) {
5168
5175
  async function g(v) {
5169
5176
  a(v), await Ue, _();
5170
5177
  }
5171
- return Ee(async () => {
5178
+ return Re(async () => {
5172
5179
  await Ue, _();
5173
5180
  }), () => h("input", {
5174
5181
  ref: o,
@@ -5237,15 +5244,15 @@ function ts(e, t) {
5237
5244
  } = o, {
5238
5245
  isFocus: s
5239
5246
  } = a, _ = D(() => !e.disabled && !e.readonly);
5240
- return Ee(() => {
5247
+ return Re(() => {
5241
5248
  const g = m(e.modelValue);
5242
5249
  l.value = u(g);
5243
- }), ie(() => [e.value], ([g]) => {
5250
+ }), oe(() => [e.value], ([g]) => {
5244
5251
  const v = m(g);
5245
5252
  d.value = v, l.value = u(v);
5246
- }), ie(() => [e.modelValue], ([g]) => {
5253
+ }), oe(() => [e.modelValue], ([g]) => {
5247
5254
  g !== d.value && (d.value = g, !s.value && (l.value = u(m(g))));
5248
- }), ie(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
5255
+ }), oe(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
5249
5256
  l.value = u(d.value);
5250
5257
  }), () => h("div", {
5251
5258
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
@@ -5271,7 +5278,7 @@ function ns(e, t, n, o) {
5271
5278
  textBoxClass: B,
5272
5279
  textBoxTitle: x
5273
5280
  } = o;
5274
- return Ee(() => {
5281
+ return Re(() => {
5275
5282
  e.selectOnCreated, e.focusOnCreated;
5276
5283
  }), () => h("input", {
5277
5284
  ref: i,
@@ -5380,11 +5387,11 @@ const as = /* @__PURE__ */ Oe({
5380
5387
  onMouseEnter: u,
5381
5388
  onMouseLeave: s
5382
5389
  } = c, _ = Zl(e, t, r, d), g = ts(e, t), v = ns(e, t, _, i), S = is(e, t, d, c, _), C = os(e, t), y = D(() => e.type === "number");
5383
- ie(() => [e.value], ([O]) => {
5390
+ oe(() => [e.value], ([O]) => {
5384
5391
  n.value = O, o.value = O;
5385
- }), ie(() => [e.modelValue], ([O]) => {
5392
+ }), oe(() => [e.modelValue], ([O]) => {
5386
5393
  n.value = O, o.value = O;
5387
- }), Ee(() => {
5394
+ }), Re(() => {
5388
5395
  e.value && (n.value = e.value, o.value = e.value);
5389
5396
  });
5390
5397
  const w = () => h(Ke, null, [h("div", {
@@ -5399,7 +5406,7 @@ const as = /* @__PURE__ */ Oe({
5399
5406
  }), Q = {}, Z = {}, J = {}, ee = {};
5400
5407
  let Jt = !1;
5401
5408
  function rs() {
5402
- Jt || (Jt = !0, yi.register(Q, Z, J, ee), hi.register(Q, Z, J, ee), bi.register(Q, Z, J, ee), Ci.register(Q, Z, J, ee), wi.register(Q, Z, J, ee), Si.register(Q, Z, J, ee), li.register(Q, Z, J, ee), Ct.register(Q, Z, J, ee), _i.register(Q, Z, J, ee), xi.register(Q, Z, J, ee), Fi.register(Q, Z, J, ee), ki.register(Q, Z, J, ee), Ti.register(Q, Z, J, ee), Oi.register(Q, Z, J, ee), ci.register(Q, Z, J, ee), Ii.register(Q, Z, J, ee), si.register(Q, Z, J, ee), Bi.register(Q, Z, J, ee), Vi.register(Q, Z, J, ee), Mi.register(Q, Z, J, ee), Pi.register(Q, Z, J, ee), Ri.register(Q, Z, J, ee), Di.register(Q, Z, J, ee), Ei.register(Q, Z, J, ee), $i.register(Q, Z, J, ee), Ni.register(Q, Z, J, ee), ji.register(Q, Z, J, ee), fi.register(Q, Z, J, ee), ii.register(Q, Z, J, ee), Ai.register(Q, Z, J, ee), Hi.register(Q, Z, J, ee), Rn.register(Q, Z, J, ee), Gi.register(Q, Z, J, ee), Wi.register(Q, Z, J, ee), Li.register(Q, Z, J, ee), zi.register(Q, Z, J, ee), Ui.register(Q, Z, J, ee), Ki.register(Q, Z, J, ee), qi.register(Q, Z, J, ee), ua.register(Q, Z, J), Xi.register(Q, Z, J, ee), Yi.register(Q, Z, J, ee), Qi.register(Q, Z, J, ee), Zi.register(Q, Z, J, ee), Ji.register(Q, Z, J, ee), ea.register(Q, Z, J, ee), Dn.register(Q, Z, J, ee), un.register(Q, Z, J, ee), ta.register(Q, Z, J, ee), na.register(Q, Z, J, ee), Pn.register(Q, Z, J, ee), oa.register(Q, Z, J, ee), aa.register(Q, Z, J, ee), ia.register(Q, Z, J, ee), ra.register(Q, Z, J, ee), la.register(Q, Z, J, ee), sa.register(Q, Z, J, ee));
5409
+ Jt || (Jt = !0, yi.register(Q, Z, J, ee), hi.register(Q, Z, J, ee), bi.register(Q, Z, J, ee), Ci.register(Q, Z, J, ee), wi.register(Q, Z, J, ee), Si.register(Q, Z, J, ee), li.register(Q, Z, J, ee), Ct.register(Q, Z, J, ee), _i.register(Q, Z, J, ee), xi.register(Q, Z, J, ee), Fi.register(Q, Z, J, ee), ki.register(Q, Z, J, ee), Ti.register(Q, Z, J, ee), Oi.register(Q, Z, J, ee), ci.register(Q, Z, J, ee), Ii.register(Q, Z, J, ee), si.register(Q, Z, J, ee), Bi.register(Q, Z, J, ee), Vi.register(Q, Z, J, ee), Mi.register(Q, Z, J, ee), Pi.register(Q, Z, J, ee), Ei.register(Q, Z, J, ee), Di.register(Q, Z, J, ee), Ri.register(Q, Z, J, ee), $i.register(Q, Z, J, ee), Ni.register(Q, Z, J, ee), ji.register(Q, Z, J, ee), fi.register(Q, Z, J, ee), ii.register(Q, Z, J, ee), Ai.register(Q, Z, J, ee), Hi.register(Q, Z, J, ee), En.register(Q, Z, J, ee), Gi.register(Q, Z, J, ee), Wi.register(Q, Z, J, ee), Li.register(Q, Z, J, ee), zi.register(Q, Z, J, ee), Ui.register(Q, Z, J, ee), Ki.register(Q, Z, J, ee), qi.register(Q, Z, J, ee), ua.register(Q, Z, J), Xi.register(Q, Z, J, ee), Yi.register(Q, Z, J, ee), Qi.register(Q, Z, J, ee), Zi.register(Q, Z, J, ee), Ji.register(Q, Z, J, ee), ea.register(Q, Z, J, ee), Dn.register(Q, Z, J, ee), un.register(Q, Z, J, ee), ta.register(Q, Z, J, ee), na.register(Q, Z, J, ee), Pn.register(Q, Z, J, ee), oa.register(Q, Z, J, ee), aa.register(Q, Z, J, ee), ia.register(Q, Z, J, ee), ra.register(Q, Z, J, ee), la.register(Q, Z, J, ee), sa.register(Q, Z, J, ee));
5403
5410
  }
5404
5411
  function ao() {
5405
5412
  rs();
@@ -5414,6 +5421,8 @@ function ao() {
5414
5421
  switch (i) {
5415
5422
  case "check-box":
5416
5423
  return "onChangeValue";
5424
+ case "switch":
5425
+ return "onModelValueChanged";
5417
5426
  case "check-group":
5418
5427
  return "onChangeValue";
5419
5428
  case "combo-list":
@@ -5504,7 +5513,7 @@ const ls = /* @__PURE__ */ Oe({
5504
5513
  "onUpdate:modelValue": (x) => r.value = x
5505
5514
  }), null);
5506
5515
  });
5507
- return ie([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([O, f, b, M, B, x, k, I, V]) => {
5516
+ return oe([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([O, f, b, M, B, x, k, I, V]) => {
5508
5517
  n.value = O, o.value = f, i.value = b, a.value = M, r.value = B, l.value = x, d.value = k, m.value = I, c.value = V;
5509
5518
  }), t.expose({
5510
5519
  editorRef: u
@@ -5535,57 +5544,57 @@ class Lt {
5535
5544
  */
5536
5545
  K(Lt, "fieldControlTypeMapping", {
5537
5546
  String: [
5538
- { key: ne["input-group"].type, value: ne["input-group"].name },
5539
- { key: ne.lookup.type, value: ne.lookup.name },
5540
- { key: ne.Image.type, value: ne.Image.name },
5541
- { key: ne["date-picker"].type, value: ne["date-picker"].name },
5542
- { key: ne["check-box"].type, value: ne["check-box"].name },
5543
- { key: ne["radio-group"].type, value: ne["radio-group"].name },
5544
- { key: ne["combo-list"].type, value: ne["combo-list"].name },
5545
- { key: ne.textarea.type, value: ne.textarea.name }
5547
+ { key: te["input-group"].type, value: te["input-group"].name },
5548
+ { key: te.lookup.type, value: te.lookup.name },
5549
+ { key: te.Image.type, value: te.Image.name },
5550
+ { key: te["date-picker"].type, value: te["date-picker"].name },
5551
+ { key: te["check-box"].type, value: te["check-box"].name },
5552
+ { key: te["radio-group"].type, value: te["radio-group"].name },
5553
+ { key: te["combo-list"].type, value: te["combo-list"].name },
5554
+ { key: te.textarea.type, value: te.textarea.name }
5546
5555
  // { key: DgControl.Tags.type, value: DgControl.Tags.name },
5547
5556
  ],
5548
5557
  Text: [
5549
- { key: ne.textarea.type, value: ne.textarea.name },
5550
- { key: ne.avatar.type, value: ne.avatar.name },
5551
- { key: ne.lookup.type, value: ne.lookup.name }
5558
+ { key: te.textarea.type, value: te.textarea.name },
5559
+ { key: te.avatar.type, value: te.avatar.name },
5560
+ { key: te.lookup.type, value: te.lookup.name }
5552
5561
  ],
5553
5562
  Decimal: [
5554
- { key: ne["number-spinner"].type, value: ne["number-spinner"].name }
5563
+ { key: te["number-spinner"].type, value: te["number-spinner"].name }
5555
5564
  ],
5556
5565
  Integer: [
5557
- { key: ne["number-spinner"].type, value: ne["number-spinner"].name }
5566
+ { key: te["number-spinner"].type, value: te["number-spinner"].name }
5558
5567
  ],
5559
5568
  Number: [
5560
- { key: ne["number-spinner"].type, value: ne["number-spinner"].name }
5569
+ { key: te["number-spinner"].type, value: te["number-spinner"].name }
5561
5570
  ],
5562
5571
  BigNumber: [
5563
- { key: ne["number-spinner"].type, value: ne["number-spinner"].name }
5572
+ { key: te["number-spinner"].type, value: te["number-spinner"].name }
5564
5573
  ],
5565
5574
  Date: [
5566
- { key: ne["date-picker"].type, value: ne["date-picker"].name }
5575
+ { key: te["date-picker"].type, value: te["date-picker"].name }
5567
5576
  ],
5568
5577
  DateTime: [
5569
- { key: ne["date-picker"].type, value: ne["date-picker"].name }
5578
+ { key: te["date-picker"].type, value: te["date-picker"].name }
5570
5579
  ],
5571
5580
  Boolean: [
5572
- { key: ne.switch.type, value: ne.switch.name },
5573
- { key: ne["check-box"].type, value: ne["check-box"].name }
5581
+ { key: te.switch.type, value: te.switch.name },
5582
+ { key: te["check-box"].type, value: te["check-box"].name }
5574
5583
  ],
5575
5584
  Enum: [
5576
- { key: ne["combo-list"].type, value: ne["combo-list"].name },
5577
- { key: ne["radio-group"].type, value: ne["radio-group"].name }
5585
+ { key: te["combo-list"].type, value: te["combo-list"].name },
5586
+ { key: te["radio-group"].type, value: te["radio-group"].name }
5578
5587
  ],
5579
5588
  Object: [
5580
- { key: ne.lookup.type, value: ne.lookup.name },
5581
- { key: ne["combo-list"].type, value: ne["combo-list"].name },
5582
- { key: ne["radio-group"].type, value: ne["radio-group"].name }
5589
+ { key: te.lookup.type, value: te.lookup.name },
5590
+ { key: te["combo-list"].type, value: te["combo-list"].name },
5591
+ { key: te["radio-group"].type, value: te["radio-group"].name }
5583
5592
  ],
5584
5593
  EmployeeSelector: [
5585
- { key: ne.EmployeeSelector.type, value: ne.EmployeeSelector.name }
5594
+ { key: te.EmployeeSelector.type, value: te.EmployeeSelector.name }
5586
5595
  ],
5587
5596
  AdminOrganizationSelector: [
5588
- { key: ne.AdminOrganizationSelector.type, value: ne.AdminOrganizationSelector.name }
5597
+ { key: te.AdminOrganizationSelector.type, value: te.AdminOrganizationSelector.name }
5589
5598
  ]
5590
5599
  });
5591
5600
  class gt {
@@ -5882,7 +5891,7 @@ const ds = /* @__PURE__ */ Oe({
5882
5891
  "onUpdate:modelValue": (_) => i.value = _
5883
5892
  }), null);
5884
5893
  });
5885
- return ie([() => e.id, () => e.editor, () => e.modelValue], ([c, u, s]) => {
5894
+ return oe([() => e.id, () => e.editor, () => e.modelValue], ([c, u, s]) => {
5886
5895
  n.value = c, o.value = u, i.value = s;
5887
5896
  }), () => m.value();
5888
5897
  }
@@ -5993,19 +6002,19 @@ function uo() {
5993
6002
  }
5994
6003
  function d(x, k, I, V, p) {
5995
6004
  for (let T = 0; T < k; T++) {
5996
- const P = x + (T + 1), R = a(p, P);
5997
- I.children.push(R), n.set(R.groupId, I), I = I.children[I.children.length - 1], V.push(I);
6005
+ const P = x + (T + 1), E = a(p, P);
6006
+ I.children.push(E), n.set(E.groupId, I), I = I.children[I.children.length - 1], V.push(I);
5998
6007
  }
5999
6008
  return I;
6000
6009
  }
6001
6010
  function m(x, k, I, V, p) {
6002
- for (let E = k; E <= 0; E++)
6011
+ for (let R = k; R <= 0; R++)
6003
6012
  V.pop();
6004
6013
  const T = V[V.length - 1];
6005
6014
  if (!T)
6006
6015
  throw new Error("The group path is out of range");
6007
- const P = x + k, R = a(p, P);
6008
- return T.children.push(R), n.set(R.groupId, T), I = T.children[T.children.length - 1], V.push(I), I;
6016
+ const P = x + k, E = a(p, P);
6017
+ return T.children.push(E), n.set(E.groupId, T), I = T.children[T.children.length - 1], V.push(I), I;
6009
6018
  }
6010
6019
  function c(x, k, I, V) {
6011
6020
  I.pop();
@@ -6016,16 +6025,16 @@ function uo() {
6016
6025
  let P = x[x.length - 1];
6017
6026
  if (!P)
6018
6027
  throw new Error("The group path is out of range");
6019
- const R = k.get(V) || 0, E = k.get(I) || 0;
6028
+ const E = k.get(V) || 0, R = k.get(I) || 0;
6020
6029
  if (I < 0 || I === V)
6021
6030
  return x[x.length - 1];
6022
- const N = R - E, $ = p && p.relation !== void 0 ? p.relation : 1;
6023
- return P = N > 0 ? d(E, N, P, x, $) : P, P = N < 0 ? m(E, N, P, x, $) : P, P = N === 0 && E > 0 && R > 0 && p && T && !!p.rBracket && !!T.lBracket ? c(E, P, x, $) : P, P;
6031
+ const N = E - R, $ = p && p.relation !== void 0 ? p.relation : 1;
6032
+ return P = N > 0 ? d(R, N, P, x, $) : P, P = N < 0 ? m(R, N, P, x, $) : P, P = N === 0 && R > 0 && E > 0 && p && T && !!p.rBracket && !!T.lBracket ? c(R, P, x, $) : P, P;
6024
6033
  }
6025
6034
  function s(x) {
6026
6035
  const I = { relation: x.length && x[0].relation !== void 0 ? x[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, V = [I], p = l(x);
6027
6036
  return x.forEach((T, P) => {
6028
- const R = P - 1, E = x[R], N = u(V, p, R, P, E, T);
6037
+ const E = P - 1, R = x[E], N = u(V, p, E, P, R, T);
6029
6038
  N.items.push(T), t.set(T.conditionId, N);
6030
6039
  }), e.value = I, I;
6031
6040
  }
@@ -6048,14 +6057,14 @@ function uo() {
6048
6057
  }
6049
6058
  function S(x, k, I, V) {
6050
6059
  x.reduce((p, T) => {
6051
- const P = T.conditionId !== void 0, R = T.groupId !== void 0;
6060
+ const P = T.conditionId !== void 0, E = T.groupId !== void 0;
6052
6061
  if (P) {
6053
- const E = T;
6054
- I.push(E), p.items.set(E.conditionId, E);
6062
+ const R = T;
6063
+ I.push(R), p.items.set(R.conditionId, R);
6055
6064
  }
6056
- if (R) {
6057
- const E = T;
6058
- V.push(E), p.groups.set(E.groupId, E);
6065
+ if (E) {
6066
+ const R = T;
6067
+ V.push(R), p.groups.set(R.groupId, R);
6059
6068
  }
6060
6069
  return p;
6061
6070
  }, k);
@@ -6200,8 +6209,8 @@ const ht = /* @__PURE__ */ Oe({
6200
6209
  } = ms(e, t, i);
6201
6210
  d(!1), r.value = a(r.value), v(o.value);
6202
6211
  function x(N) {
6203
- var G;
6204
- const $ = ((G = l.get(N.fieldCode)) == null ? void 0 : G.editor) || {
6212
+ var H;
6213
+ const $ = ((H = l.get(N.fieldCode)) == null ? void 0 : H.editor) || {
6205
6214
  type: "text"
6206
6215
  };
6207
6216
  N.value = O($.type, void 0), t.emit("labelCodeChange", N);
@@ -6219,7 +6228,7 @@ const ht = /* @__PURE__ */ Oe({
6219
6228
  }
6220
6229
  function p(N) {
6221
6230
  return N.items.map(($) => {
6222
- var G;
6231
+ var H;
6223
6232
  return h("div", {
6224
6233
  class: "condition-list-item",
6225
6234
  key: $.conditionId
@@ -6231,8 +6240,8 @@ const ht = /* @__PURE__ */ Oe({
6231
6240
  "id-field": "id",
6232
6241
  data: r.value,
6233
6242
  modelValue: $.fieldCode,
6234
- "onUpdate:modelValue": (j) => $.fieldCode = j,
6235
- onChange: (j) => x($)
6243
+ "onUpdate:modelValue": (W) => $.fieldCode = W,
6244
+ onChange: (W) => x($)
6236
6245
  }, null)]), h("div", {
6237
6246
  class: "condition-list-item-compare mr-3"
6238
6247
  }, [h(Ct, {
@@ -6241,17 +6250,17 @@ const ht = /* @__PURE__ */ Oe({
6241
6250
  "id-field": "id",
6242
6251
  data: B($),
6243
6252
  modelValue: $.compareType,
6244
- "onUpdate:modelValue": (j) => $.compareType = j,
6245
- onChange: (j) => k(j, $)
6253
+ "onUpdate:modelValue": (W) => $.compareType = W,
6254
+ onChange: (W) => k(W, $)
6246
6255
  }, null)]), h("div", {
6247
6256
  class: "condition-list-item-control mr-3"
6248
6257
  }, [h(ls, {
6249
- editor: (G = l.get($.fieldCode)) == null ? void 0 : G.editor,
6258
+ editor: (H = l.get($.fieldCode)) == null ? void 0 : H.editor,
6250
6259
  showLabel: !1,
6251
6260
  modelValue: $.value.value,
6252
- "onUpdate:modelValue": (j) => $.value.value = j,
6253
- onChange: (j) => {
6254
- V(j, $);
6261
+ "onUpdate:modelValue": (W) => $.value.value = W,
6262
+ onChange: (W) => {
6263
+ V(W, $);
6255
6264
  }
6256
6265
  }, null)]), h("div", {
6257
6266
  class: "condition-list-item-extend"
@@ -6292,10 +6301,10 @@ const ht = /* @__PURE__ */ Oe({
6292
6301
  class: "condition-list-content-group"
6293
6302
  }, [p(N), N.children && N.children.map(($) => P($))]), T(N)]);
6294
6303
  }
6295
- function R() {
6304
+ function E() {
6296
6305
  _(f.getSelectedGroupItem()), f.clear();
6297
6306
  }
6298
- function E() {
6307
+ function R() {
6299
6308
  return h("div", {
6300
6309
  class: "condition-list-bottom"
6301
6310
  }, [h("div", {
@@ -6305,24 +6314,24 @@ const ht = /* @__PURE__ */ Oe({
6305
6314
  class: "f-icon f-icon-filter-add"
6306
6315
  }, null), h("span", {
6307
6316
  class: "ml-1"
6308
- }, [Re("添加条件")])]), h("div", {
6317
+ }, [Ee("添加条件")])]), h("div", {
6309
6318
  class: "add-condition-btn mb-1",
6310
- onClick: R
6319
+ onClick: E
6311
6320
  }, [h("span", {
6312
6321
  class: "f-icon f-icon-filter-grouping"
6313
6322
  }, null), h("span", {
6314
6323
  class: "ml-1"
6315
- }, [Re("生成条件组")])]), h("div", {
6324
+ }, [Ee("生成条件组")])]), h("div", {
6316
6325
  class: "condition-list-reset add-condition-btn",
6317
6326
  onClick: I
6318
- }, [Re("重置")])]);
6327
+ }, [Ee("重置")])]);
6319
6328
  }
6320
6329
  return () => h("div", {
6321
6330
  class: "condition-list",
6322
6331
  key: n.value
6323
6332
  }, [h("div", {
6324
6333
  class: "condition-list-body"
6325
- }, [P(y.value)]), E()]);
6334
+ }, [P(y.value)]), R()]);
6326
6335
  }
6327
6336
  });
6328
6337
  ht.install = (e) => {
@@ -6493,7 +6502,7 @@ function qt(e, t) {
6493
6502
  const V = k[B];
6494
6503
  let p = x.get(V);
6495
6504
  if (!p) {
6496
- const P = l.value.reduce((R, E) => (R.set(E, 0), R), /* @__PURE__ */ new Map());
6505
+ const P = l.value.reduce((E, R) => (E.set(R, 0), E), /* @__PURE__ */ new Map());
6497
6506
  p = {
6498
6507
  field: B,
6499
6508
  title: ((T = M.get(B)) == null ? void 0 : T.title) || B,
@@ -6505,8 +6514,8 @@ function qt(e, t) {
6505
6514
  }
6506
6515
  return l.value && l.value.forEach((P) => {
6507
6516
  if (p) {
6508
- const R = p.groupSummaries.get(P) || 0;
6509
- p.groupSummaries.set(P, R + k[P]);
6517
+ const E = p.groupSummaries.get(P) || 0;
6518
+ p.groupSummaries.set(P, E + k[P]);
6510
6519
  }
6511
6520
  }), p.details.push(k), x;
6512
6521
  }, w), f < b.length - 1 && w.forEach((x, k) => {
@@ -6568,28 +6577,28 @@ function Ss(e, t, n, o) {
6568
6577
  const i = F(!!e.hierarchy), { idField: a } = o, { collapseField: r, hasChildrenField: l, parentIdField: d } = n, m = /* @__PURE__ */ new Map();
6569
6578
  function c(V, p) {
6570
6579
  const T = /* @__PURE__ */ new Map();
6571
- return V.reduce((P, R) => {
6572
- const E = R[d.value] !== void 0 ? R[d.value] : "";
6573
- if (E && p.has(E)) {
6574
- const $ = p.get(E);
6575
- R.__fv_parent_index__ = $.__fv_index__, $.__fv_hasChildren__ = !0;
6576
- }
6577
- const N = P.has(E) ? P.get(E) : [];
6578
- return N.push(R), P.set(E, N), P;
6580
+ return V.reduce((P, E) => {
6581
+ const R = E[d.value] !== void 0 ? E[d.value] : "";
6582
+ if (R && p.has(R)) {
6583
+ const $ = p.get(R);
6584
+ E.__fv_parent_index__ = $.__fv_index__, $.__fv_hasChildren__ = !0;
6585
+ }
6586
+ const N = P.has(R) ? P.get(R) : [];
6587
+ return N.push(E), P.set(R, N), P;
6579
6588
  }, T), T;
6580
6589
  }
6581
6590
  function u(V) {
6582
6591
  const p = /* @__PURE__ */ new Map();
6583
6592
  return V.reduce((T, P) => {
6584
- const R = P[a.value];
6585
- return T.set(R, P), T;
6593
+ const E = P[a.value];
6594
+ return T.set(E, P), T;
6586
6595
  }, p), p;
6587
6596
  }
6588
6597
  function s(V) {
6589
6598
  V.forEach((p) => {
6590
6599
  const T = p[a.value];
6591
- p.__fv_children_index__.map((R) => V[R]).forEach((R) => {
6592
- R.__fv_parents__ = new Map([
6600
+ p.__fv_children_index__.map((E) => V[E]).forEach((E) => {
6601
+ E.__fv_parents__ = new Map([
6593
6602
  ...p.__fv_parents__.entries(),
6594
6603
  [T, !0]
6595
6604
  ]);
@@ -6599,14 +6608,14 @@ function Ss(e, t, n, o) {
6599
6608
  function _(V) {
6600
6609
  V.forEach((p) => {
6601
6610
  const T = new Set(p.__fv_children_index__);
6602
- p.__fv_children_index__ = [...T].sort((P, R) => P - R);
6611
+ p.__fv_children_index__ = [...T].sort((P, E) => P - E);
6603
6612
  });
6604
6613
  }
6605
6614
  function g(V, p) {
6606
6615
  V.forEach((T) => {
6607
6616
  const P = T.__fv_parents__;
6608
- Array.from(P.keys()).map((R) => p.get(R)).forEach((R) => {
6609
- R.__fv_children_index__.push(T.__fv_index__);
6617
+ Array.from(P.keys()).map((E) => p.get(E)).forEach((E) => {
6618
+ E.__fv_children_index__.push(T.__fv_index__);
6610
6619
  });
6611
6620
  }), _(V);
6612
6621
  }
@@ -6620,9 +6629,9 @@ function Ss(e, t, n, o) {
6620
6629
  }
6621
6630
  function C(V, p) {
6622
6631
  Array.from(p.keys()).forEach((T) => {
6623
- p.get(T).reduce((R, E) => {
6624
- const N = E[a.value], $ = V.get(E[a.value]), G = V.get(T);
6625
- return G && (G.children.set(N, $), G.children.set(N, $), $.parentId = T, $.parentIndex = G.index, $.parents.set(T, G)), R;
6632
+ p.get(T).reduce((E, R) => {
6633
+ const N = R[a.value], $ = V.get(R[a.value]), H = V.get(T);
6634
+ return H && (H.children.set(N, $), H.children.set(N, $), $.parentId = T, $.parentIndex = H.index, $.parents.set(T, H)), E;
6626
6635
  }, V);
6627
6636
  });
6628
6637
  }
@@ -6636,8 +6645,8 @@ function Ss(e, t, n, o) {
6636
6645
  }
6637
6646
  function w(V, p) {
6638
6647
  V.filter((T) => T[d.value] === void 0 || T[d.value] === "").forEach((T) => {
6639
- const P = T[a.value], R = p.get(P);
6640
- y(R);
6648
+ const P = T[a.value], E = p.get(P);
6649
+ y(E);
6641
6650
  });
6642
6651
  }
6643
6652
  function O(V) {
@@ -6648,9 +6657,9 @@ function Ss(e, t, n, o) {
6648
6657
  });
6649
6658
  }
6650
6659
  function f(V) {
6651
- m.clear(), V.forEach((P, R) => {
6652
- const E = P[a.value];
6653
- m.set(E, S(E, R));
6660
+ m.clear(), V.forEach((P, E) => {
6661
+ const R = P[a.value];
6662
+ m.set(R, S(R, E));
6654
6663
  });
6655
6664
  const p = u(V), T = c(V, p);
6656
6665
  return C(m, T), w(V, m), O(m), m;
@@ -6665,46 +6674,46 @@ function Ss(e, t, n, o) {
6665
6674
  function B(V) {
6666
6675
  f(t.value);
6667
6676
  const p = u(V), T = c(V, p);
6668
- return V.forEach((P, R) => {
6669
- var G;
6670
- const E = P[a.value], N = T.has(E) ? (G = T.get(E)) == null ? void 0 : G.map((j) => j.__fv_index__) : [], $ = S(E, R);
6677
+ return V.forEach((P, E) => {
6678
+ var H;
6679
+ const R = P[a.value], N = T.has(R) ? (H = T.get(R)) == null ? void 0 : H.map((W) => W.__fv_index__) : [], $ = S(R, E);
6671
6680
  P.__fv_graph_node__ = $, P.__fv_children_index__ = N, P.__fv_descendant_index__ = [...N], P.__fv_parents__ = /* @__PURE__ */ new Map(), M(P) && (P[r.value] = !0);
6672
6681
  }), s(V), g(V, p), e.showLines && v(V), V;
6673
6682
  }
6674
6683
  function x(V, p, T) {
6675
- const R = T.value[V][a.value], E = m.get(R);
6676
- if (E) {
6677
- const N = m.get(E.parentId);
6684
+ const E = T.value[V][a.value], R = m.get(E);
6685
+ if (R) {
6686
+ const N = m.get(R.parentId);
6678
6687
  let $ = T.value.length - 1;
6679
6688
  if (N) {
6680
- const G = Array.from(N.children.keys()).indexOf(E.id);
6681
- if (G === N.children.size - 1) {
6682
- const Y = Array.from(N.descendant.values())[N.descendant.size - 1];
6683
- $ = T.value.findIndex((me) => me[a.value] === Y.id) + 1;
6689
+ const H = Array.from(N.children.keys()).indexOf(R.id);
6690
+ if (H === N.children.size - 1) {
6691
+ const ae = Array.from(N.descendant.values())[N.descendant.size - 1];
6692
+ $ = T.value.findIndex((X) => X[a.value] === ae.id) + 1;
6684
6693
  } else {
6685
- const Y = Array.from(N.children.values())[G + 1];
6686
- $ = T.value.findIndex((me) => me[a.value] === Y.id);
6694
+ const ae = Array.from(N.children.values())[H + 1];
6695
+ $ = T.value.findIndex((X) => X[a.value] === ae.id);
6687
6696
  }
6688
6697
  p[l.value] = !1, p[d.value] = N.id, T.value.splice($, 0, p);
6689
6698
  }
6690
6699
  }
6691
6700
  }
6692
6701
  function k(V, p, T) {
6693
- const P = T.value[V], R = P[a.value];
6694
- if (m.get(R)) {
6695
- const $ = T.value.findIndex((G) => G[a.value] === R) + 1;
6696
- P[l.value] = !0, P[r.value] = !1, p[l.value] = !1, p[d.value] = R, T.value.splice($, 0, p);
6702
+ const P = T.value[V], E = P[a.value];
6703
+ if (m.get(E)) {
6704
+ const $ = T.value.findIndex((H) => H[a.value] === E) + 1;
6705
+ P[l.value] = !0, P[r.value] = !1, p[l.value] = !1, p[d.value] = E, T.value.splice($, 0, p);
6697
6706
  }
6698
6707
  }
6699
6708
  function I(V, p) {
6700
- const T = V[a.value], P = m.get(T), R = Array.from(P.descendant.keys());
6701
- R.unshift(T);
6702
- const E = m.get(P.parentId);
6703
- if (E && (E.children.delete(T), E.children.size === 0)) {
6704
- const $ = p.find((G) => G[a.value] === P.parentId);
6709
+ const T = V[a.value], P = m.get(T), E = Array.from(P.descendant.keys());
6710
+ E.unshift(T);
6711
+ const R = m.get(P.parentId);
6712
+ if (R && (R.children.delete(T), R.children.size === 0)) {
6713
+ const $ = p.find((H) => H[a.value] === P.parentId);
6705
6714
  $[l.value] = !1, $[r.value] = !1;
6706
6715
  }
6707
- return p.filter(($) => R.indexOf($.id) === -1);
6716
+ return p.filter(($) => E.indexOf($.id) === -1);
6708
6717
  }
6709
6718
  return { generateHierarchyData: B, hasRealChildren: b, insertSibling: x, insertChild: k, shouldStratifyData: i, trimmedOriginalData: I };
6710
6719
  }
@@ -6751,7 +6760,7 @@ const _s = {
6751
6760
  function v(C) {
6752
6761
  return `f-preten-link ${C.customClass ? C.customClass : ""}`;
6753
6762
  }
6754
- ie(n, () => {
6763
+ oe(n, () => {
6755
6764
  n.value;
6756
6765
  });
6757
6766
  const S = () => {
@@ -6875,7 +6884,7 @@ class co {
6875
6884
  }
6876
6885
  return ut(() => {
6877
6886
  document.body.removeChild(a);
6878
- }), Ee(() => {
6887
+ }), Re(() => {
6879
6888
  n.updateNotifyPositionForCreate(i, l);
6880
6889
  }), () => h(ft, ot({
6881
6890
  ref: l
@@ -6964,42 +6973,42 @@ function fo(e, t, n, o, i) {
6964
6973
  insertChild: I,
6965
6974
  shouldStratifyData: V,
6966
6975
  trimmedOriginalData: p
6967
- } = M, { idField: T, reviseIdentifyField: P } = o, R = F(e.newDataItem), E = F(e.data), N = F(e.data), { flatTreeData: $ } = Es(e);
6976
+ } = M, { idField: T, reviseIdentifyField: P } = o, E = F(e.newDataItem), R = F(e.data), N = F(e.data), { flatTreeData: $ } = Rs(e);
6968
6977
  if (e.data && ((Xe = e.data[0]) != null && Xe.children)) {
6969
- const L = ge(e.data);
6970
- b.value = L, E.value = L, N.value = L;
6978
+ const z = fe(e.data);
6979
+ b.value = z, R.value = z, N.value = z;
6971
6980
  }
6972
- const G = F(e.summary), j = D(() => {
6973
- const L = G.value;
6974
- return (L == null ? void 0 : L.groupFields) || [];
6981
+ const H = F(e.summary), W = D(() => {
6982
+ const z = H.value;
6983
+ return (z == null ? void 0 : z.groupFields) || [];
6975
6984
  });
6976
- let Y = /* @__PURE__ */ new Map();
6977
- const te = D(() => E.value.length), me = F(e.pagination), Ce = new co(), z = D(() => l.value ? m.value === "server" ? 0 : (d.value - 1) * a.value : 0), U = D(() => l.value ? m.value === "server" ? Math.min(a.value, r.value, te.value) : Math.min(z.value + a.value, r.value, te.value) : te.value);
6978
- function ge(L) {
6979
- return $(L);
6980
- }
6981
- function ce() {
6982
- E.value = b.value, f.value && (E.value = w(O.value, b.value, t)), Y = j.value.reduce((ae, ke) => (ae.set(ke, 0), ae), Y);
6983
- const L = z.value, oe = U.value;
6984
- let re = 0;
6985
+ let ae = /* @__PURE__ */ new Map();
6986
+ const me = D(() => R.value.length), X = F(e.pagination), le = new co(), G = D(() => l.value ? m.value === "server" ? 0 : (d.value - 1) * a.value : 0), q = D(() => l.value ? m.value === "server" ? Math.min(a.value, r.value, me.value) : Math.min(G.value + a.value, r.value, me.value) : me.value);
6987
+ function fe(z) {
6988
+ return $(z);
6989
+ }
6990
+ function re() {
6991
+ R.value = b.value, f.value && (R.value = w(O.value, b.value, t)), ae = W.value.reduce((ie, ke) => (ie.set(ke, 0), ie), ae);
6992
+ const z = G.value, ne = q.value;
6993
+ let se = 0;
6985
6994
  const Ie = [];
6986
- if (E.value.length) {
6987
- P(E.value);
6988
- const ae = T.value !== e.idField;
6989
- for (let ke = L; ke < oe; ke++) {
6990
- const Me = E.value[ke];
6991
- Me.__fv_data_grid_group_row__ ? (re = 0, Me.__fv_data_index__ = "") : Me.__fv_data_grid_group_summary__ ? Me.__fv_data_index__ = "" : (re++, l.value ? Me.__fv_data_index__ = re + (d.value - 1) * a.value : Me.__fv_data_index__ = re), Me.__fv_index__ = ke, ae && (Me[T.value] = ke), j.value.forEach((Te) => {
6992
- const Ge = Y.get(Te) || 0;
6993
- Y.set(Te, Ge + Me[Te]);
6995
+ if (R.value.length) {
6996
+ P(R.value);
6997
+ const ie = T.value !== e.idField;
6998
+ for (let ke = z; ke < ne; ke++) {
6999
+ const Me = R.value[ke];
7000
+ Me.__fv_data_grid_group_row__ ? (se = 0, Me.__fv_data_index__ = "") : Me.__fv_data_grid_group_summary__ ? Me.__fv_data_index__ = "" : (se++, l.value ? Me.__fv_data_index__ = se + (d.value - 1) * a.value : Me.__fv_data_index__ = se), Me.__fv_index__ = ke, ie && (Me[T.value] = ke), W.value.forEach((Te) => {
7001
+ const Ge = ae.get(Te) || 0;
7002
+ ae.set(Te, Ge + Me[Te]);
6994
7003
  }), Ie.push(Me);
6995
7004
  }
6996
7005
  }
6997
7006
  return V.value && B(Ie), N.value = [...Ie], Ie;
6998
7007
  }
6999
- const le = F(ce());
7000
- function he(L, oe, re = !1) {
7001
- const ae = (re ? ce() : [...N.value]).filter((Te) => C.apply(Te)), ke = L && L.length ? ae.filter((Te) => L.reduce((Ge, We) => Ge && We.filter(Te), !0)) : ae, Me = oe && oe.length ? ke.sort((Te, Ge) => {
7002
- const We = [...oe], nt = We.shift();
7008
+ const ue = F(re());
7009
+ function ye(z, ne, se = !1) {
7010
+ const ie = (se ? re() : [...N.value]).filter((Te) => C.apply(Te)), ke = z && z.length ? ie.filter((Te) => z.reduce((Ge, We) => Ge && We.filter(Te), !0)) : ie, Me = ne && ne.length ? ke.sort((Te, Ge) => {
7011
+ const We = [...ne], nt = We.shift();
7003
7012
  let Ye = nt.compare(Te[nt.field], Ge[nt.field]);
7004
7013
  for (; Ye === 0 && We.length !== 0; ) {
7005
7014
  const we = We.shift();
@@ -7007,169 +7016,169 @@ function fo(e, t, n, o, i) {
7007
7016
  }
7008
7017
  return Ye;
7009
7018
  }) : ke;
7010
- return le.value = Me.map((Te, Ge) => {
7019
+ return ue.value = Me.map((Te, Ge) => {
7011
7020
  if (Te.__fv_data_grid_group_row__) {
7012
7021
  const We = `group_of_${Te.__fv_data_grid_group_field__}_${Te.__fv_data_grid_group_value__}`;
7013
7022
  Te.__fv_data_grid_group_collapse__ = !!c.get(We);
7014
7023
  }
7015
7024
  return Te.__fv_index__ = Ge, Te;
7016
- }), le.value;
7025
+ }), ue.value;
7017
7026
  }
7018
- function Be(L) {
7019
- return g.clear(), S.value = L, S.value.reduce((oe, re) => (oe.set(re.field, re), oe), g), he([], S.value);
7027
+ function Be(z) {
7028
+ return g.clear(), S.value = z, S.value.reduce((ne, se) => (ne.set(se.field, se), ne), g), ye([], S.value);
7020
7029
  }
7021
- function be(L, oe) {
7022
- return g.set(L, oe), S.value = Array.from(g.values()), he([], S.value);
7030
+ function Ce(z, ne) {
7031
+ return g.set(z, ne), S.value = Array.from(g.values()), ye([], S.value);
7023
7032
  }
7024
- function se(L) {
7025
- return g.delete(L), S.value = Array.from(g.values()), he([], S.value);
7033
+ function ce(z) {
7034
+ return g.delete(z), S.value = Array.from(g.values()), ye([], S.value);
7026
7035
  }
7027
- function pe(L, oe) {
7028
- return u.set(L, oe), v.value = Array.from(u.values()), he([], Array.from(g.values()));
7036
+ function ve(z, ne) {
7037
+ return u.set(z, ne), v.value = Array.from(u.values()), ye([], Array.from(g.values()));
7029
7038
  }
7030
- function Se(L) {
7031
- return u.delete(L), v.value = Array.from(u.values()), he([], Array.from(g.values()), !0);
7039
+ function Se(z) {
7040
+ return u.delete(z), v.value = Array.from(u.values()), ye([], Array.from(g.values()), !0);
7032
7041
  }
7033
- function fe() {
7034
- return u.clear(), v.value = [], he([], Array.from(g.values()), !0);
7035
- }
7036
- function ve(L, oe) {
7037
- const re = `group_of_${L}_${oe}`;
7038
- c.set(re, !0);
7039
- const Ie = (ae) => ae[L] !== oe;
7040
- return s.set(`collapse_${L}_${oe}`, {
7041
- field: L,
7042
- fieldName: L,
7042
+ function ge() {
7043
+ return u.clear(), v.value = [], ye([], Array.from(g.values()), !0);
7044
+ }
7045
+ function he(z, ne) {
7046
+ const se = `group_of_${z}_${ne}`;
7047
+ c.set(se, !0);
7048
+ const Ie = (ie) => ie[z] !== ne;
7049
+ return s.set(`collapse_${z}_${ne}`, {
7050
+ field: z,
7051
+ fieldName: z,
7043
7052
  fieldType: "string",
7044
- filterValue: oe,
7053
+ filterValue: ne,
7045
7054
  filter: Ie
7046
- }), he(Array.from(s.values()), Array.from(g.values()));
7055
+ }), ye(Array.from(s.values()), Array.from(g.values()));
7047
7056
  }
7048
- function Pe(L, oe) {
7049
- const re = `group_of_${L}_${oe}`;
7050
- return c.set(re, !1), s.delete(`collapse_${L}_${oe}`), he(Array.from(s.values()), Array.from(g.values()), !0);
7057
+ function Pe(z, ne) {
7058
+ const se = `group_of_${z}_${ne}`;
7059
+ return c.set(se, !1), s.delete(`collapse_${z}_${ne}`), ye(Array.from(s.values()), Array.from(g.values()), !0);
7051
7060
  }
7052
- function W(L) {
7053
- const oe = L.raw[T.value], re = (Ie) => !Ie.__fv_parents__.has(oe);
7054
- _.set(`fold_${oe}`, {
7061
+ function L(z) {
7062
+ const ne = z.raw[T.value], se = (Ie) => !Ie.__fv_parents__.has(ne);
7063
+ _.set(`fold_${ne}`, {
7055
7064
  field: "id",
7056
7065
  fieldName: "id",
7057
7066
  fieldType: "string",
7058
- filterValue: String(oe),
7059
- filter: re
7060
- }), he(Array.from(_.values()), Array.from(g.values())), B(le.value);
7061
- }
7062
- function de(L) {
7063
- const oe = L[T.value];
7064
- _.delete(`fold_${oe}`);
7065
- }
7066
- function ye(L) {
7067
- de(L.raw), he(Array.from(_.values()), Array.from(g.values()), !0), B(le.value);
7068
- }
7069
- function H() {
7070
- const L = ce();
7071
- le.value = L, e.hierarchy && (he(Array.from(_.values()), Array.from(g.values())), B(le.value));
7072
- }
7073
- function ue(L) {
7074
- var oe;
7075
- if (L && ((oe = L[0]) != null && oe.children)) {
7076
- const re = ge(L);
7077
- b.value = re, E.value = re, N.value = re;
7067
+ filterValue: String(ne),
7068
+ filter: se
7069
+ }), ye(Array.from(_.values()), Array.from(g.values())), B(ue.value);
7070
+ }
7071
+ function pe(z) {
7072
+ const ne = z[T.value];
7073
+ _.delete(`fold_${ne}`);
7074
+ }
7075
+ function be(z) {
7076
+ pe(z.raw), ye(Array.from(_.values()), Array.from(g.values()), !0), B(ue.value);
7077
+ }
7078
+ function A() {
7079
+ const z = re();
7080
+ ue.value = z, e.hierarchy && (ye(Array.from(_.values()), Array.from(g.values())), B(ue.value));
7081
+ }
7082
+ function de(z) {
7083
+ var ne;
7084
+ if (z && ((ne = z[0]) != null && ne.children)) {
7085
+ const se = fe(z);
7086
+ b.value = se, R.value = se, N.value = se;
7078
7087
  } else
7079
- b.value = L, E.value = L, N.value = L;
7080
- H();
7088
+ b.value = z, R.value = z, N.value = z;
7089
+ A();
7081
7090
  }
7082
- function q(L, oe, re) {
7083
- return (L && L.length ? le.value.filter((ae, ke) => L.reduce((Me, Te) => Me && Te.filter(ae), !0)) : le.value).slice(oe, re);
7091
+ function U(z, ne, se) {
7092
+ return (z && z.length ? ue.value.filter((ie, ke) => z.reduce((Me, Te) => Me && Te.filter(ie), !0)) : ue.value).slice(ne, se);
7084
7093
  }
7085
- function X(L) {
7086
- (L - 1) * a.value <= te.value && H();
7094
+ function Y(z) {
7095
+ (z - 1) * a.value <= me.value && A();
7087
7096
  }
7088
- function _e(L) {
7089
- b.value.push(lt(L)), le.value = ce();
7097
+ function Fe(z) {
7098
+ b.value.push(lt(z)), ue.value = re();
7090
7099
  }
7091
- function xe(L = 0) {
7092
- if (!(L > -1))
7100
+ function xe(z = 0) {
7101
+ if (!(z > -1))
7093
7102
  return !1;
7094
- const re = R.value();
7095
- e.hierarchy ? k(L, re, b) : b.value.splice(L, 0, re), H();
7103
+ const se = E.value();
7104
+ e.hierarchy ? k(z, se, b) : b.value.splice(z, 0, se), A();
7096
7105
  }
7097
- function Ve(L = 0) {
7098
- if (!(L > -1 && e.hierarchy))
7106
+ function Ve(z = 0) {
7107
+ if (!(z > -1 && e.hierarchy))
7099
7108
  return !1;
7100
- const re = R.value(), Ie = b.value[L];
7101
- de(Ie), I(L, re, b), H();
7109
+ const se = E.value(), Ie = b.value[z];
7110
+ pe(Ie), I(z, se, b), A();
7102
7111
  }
7103
- function $e(L) {
7104
- const oe = L ? L - 1 : 0;
7105
- b.value.splice(oe, 1), H();
7112
+ function $e(z) {
7113
+ const ne = z ? z - 1 : 0;
7114
+ b.value.splice(ne, 1), A();
7106
7115
  }
7107
- function Le(L) {
7108
- const oe = b.value.findIndex((re) => re[T.value] === L);
7109
- oe !== -1 && (b.value.splice(oe, 1), H());
7116
+ function Le(z) {
7117
+ const ne = b.value.findIndex((se) => se[T.value] === z);
7118
+ ne !== -1 && (b.value.splice(ne, 1), A());
7110
7119
  }
7111
- function ze(L) {
7112
- const oe = L > -1 ? b.value[L] : null;
7113
- if (!(oe && oe.deletable !== !1))
7120
+ function ze(z) {
7121
+ const ne = z > -1 ? b.value[z] : null;
7122
+ if (!(ne && ne.deletable !== !1))
7114
7123
  return !1;
7115
- b.value = p(oe, b.value), H();
7124
+ b.value = p(ne, b.value), A();
7116
7125
  }
7117
7126
  function Ze() {
7118
- const L = s.size > 0 ? Array.from(s.values()) : [];
7119
- return he(L, Array.from(g.values()));
7127
+ const z = s.size > 0 ? Array.from(s.values()) : [];
7128
+ return ye(z, Array.from(g.values()));
7120
7129
  }
7121
- function Je(L) {
7122
- me.value && (me.value.size = L, H());
7130
+ function Je(z) {
7131
+ X.value && (X.value.size = z, A());
7123
7132
  }
7124
- function et(L, oe) {
7125
- const re = b.value[Number(L) - 1];
7126
- re.editable !== !1 ? (re.name = oe, H()) : Ce.show({
7133
+ function et(z, ne) {
7134
+ const se = b.value[Number(z) - 1];
7135
+ se.editable !== !1 ? (se.name = ne, A()) : le.show({
7127
7136
  showCloseButton: !1,
7128
7137
  timeout: 3e3,
7129
7138
  animate: "fadeIn",
7130
7139
  toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
7131
7140
  });
7132
7141
  }
7133
- function tt(L) {
7134
- return L.map((re) => {
7135
- const Ie = N.value.findIndex((ae) => ae[T.value] === re);
7142
+ function tt(z) {
7143
+ return z.map((se) => {
7144
+ const Ie = N.value.findIndex((ie) => ie[T.value] === se);
7136
7145
  return Ie > -1 ? N.value[Ie] : null;
7137
- }).filter((re) => re != null);
7146
+ }).filter((se) => se != null);
7138
7147
  }
7139
7148
  return {
7140
- addFilter: pe,
7141
- addNewDataItem: _e,
7142
- addSorter: be,
7149
+ addFilter: ve,
7150
+ addNewDataItem: Fe,
7151
+ addSorter: Ce,
7143
7152
  changePageSizeTo: Je,
7144
- collapse: ve,
7145
- dataView: le,
7153
+ collapse: he,
7154
+ dataView: ue,
7146
7155
  editDataItem: et,
7147
7156
  expand: Pe,
7148
7157
  filters: v,
7149
- fold: W,
7150
- getRange: q,
7158
+ fold: L,
7159
+ getRange: U,
7151
7160
  getSelectionItems: tt,
7152
7161
  hasRealChildren: x,
7153
- load: ue,
7154
- navigatePageTo: X,
7155
- summaries: Y,
7156
- totalItems: te,
7162
+ load: de,
7163
+ navigatePageTo: Y,
7164
+ summaries: ae,
7165
+ totalItems: me,
7157
7166
  insertNewDataItem: xe,
7158
7167
  insertNewChildDataItem: Ve,
7159
- removeAllFilter: fe,
7168
+ removeAllFilter: ge,
7160
7169
  removeDataItem: $e,
7161
7170
  removeDataItemById: Le,
7162
7171
  removeFilter: Se,
7163
7172
  removeHierarchyDataItem: ze,
7164
- removeSorter: se,
7173
+ removeSorter: ce,
7165
7174
  rawView: N,
7166
7175
  refresh: Ze,
7167
7176
  setSorters: Be,
7168
7177
  sorters: S,
7169
- updateDataView: H,
7170
- unFold: ye,
7171
- startIndex: z,
7172
- endIndex: U,
7178
+ updateDataView: A,
7179
+ unFold: be,
7180
+ startIndex: G,
7181
+ endIndex: q,
7173
7182
  originalData: b
7174
7183
  };
7175
7184
  }
@@ -7214,7 +7223,7 @@ function mo(e) {
7214
7223
  function ks(e, t, n, o) {
7215
7224
  var v, S, C, y, w, O;
7216
7225
  const { idField: i } = n, a = F(((S = (v = e.hierarchy) == null ? void 0 : v.cascadeOption) == null ? void 0 : S.autoCheckChildren) || !1), r = F(((y = (C = e.hierarchy) == null ? void 0 : C.cascadeOption) == null ? void 0 : y.autoCheckParent) || !1), l = F(((O = (w = e.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : O.selectionRange) || "All");
7217
- ie(() => {
7226
+ oe(() => {
7218
7227
  var f;
7219
7228
  return (f = e.hierarchy) == null ? void 0 : f.cascadeOption;
7220
7229
  }, (f) => {
@@ -7232,11 +7241,11 @@ function ks(e, t, n, o) {
7232
7241
  const c = D(() => l.value === "OnlyParent"), u = D(() => l.value === "OnlyChildren");
7233
7242
  function s(f, b) {
7234
7243
  let M = f;
7235
- const B = t.value[b], x = B.raw[i.value], k = Array.from(B.raw.__fv_descendant_index__).map((R) => t.value[R]), I = k.map((R) => R.raw[i.value]), V = d(f, I), p = d(f, [x]);
7236
- return p && V && c.value && (M = m(f, I), k.forEach((R) => {
7237
- R.disable = !0;
7238
- })), p && V && u.value && (M = m(f, [x]), k.forEach((R) => {
7239
- R.disable = !0;
7244
+ const B = t.value[b], x = B.raw[i.value], k = Array.from(B.raw.__fv_descendant_index__).map((E) => t.value[E]), I = k.map((E) => E.raw[i.value]), V = d(f, I), p = d(f, [x]);
7245
+ return p && V && c.value && (M = m(f, I), k.forEach((E) => {
7246
+ E.disable = !0;
7247
+ })), p && V && u.value && (M = m(f, [x]), k.forEach((E) => {
7248
+ E.disable = !0;
7240
7249
  })), M;
7241
7250
  }
7242
7251
  function _(f, b) {
@@ -7288,7 +7297,7 @@ function Ts(e, t, n, o, i) {
7288
7297
  function w(b, M) {
7289
7298
  let B = -1;
7290
7299
  if (b.raw.__fv_parent_index__ > -1) {
7291
- const V = t.value[b.raw.__fv_parent_index__].raw.__fv_descendant_index__, p = V.length > 1, T = V.findIndex((R) => R === M), P = T === V.length - 1;
7300
+ const V = t.value[b.raw.__fv_parent_index__].raw.__fv_descendant_index__, p = V.length > 1, T = V.findIndex((E) => E === M), P = T === V.length - 1;
7292
7301
  B = p ? P ? V[T - 1] : V[T + 1] : -1;
7293
7302
  }
7294
7303
  return B > -1 ? t.value[B] : null;
@@ -7306,154 +7315,154 @@ function Ts(e, t, n, o, i) {
7306
7315
  return { getNextSelectableHierarchyItemId: f, toggleSelectHierarchyItem: y };
7307
7316
  }
7308
7317
  function go(e, t, n, o, i, a, r, l) {
7309
- var ue;
7310
- const { dataView: d } = t, { getVisualData: m, maxVisibleRowIndex: c, minVisibleRowIndex: u } = i, s = F(o.value.primaryColumnsWidth), _ = F(o.value.leftColumnsWidth), g = F(o.value.rightColumnsWidth), v = ((ue = e.rowOption) == null ? void 0 : ue.height) || 28, S = F(0), C = F(0);
7318
+ var de;
7319
+ const { dataView: d } = t, { getVisualData: m, maxVisibleRowIndex: c, minVisibleRowIndex: u } = i, s = F(o.value.primaryColumnsWidth), _ = F(o.value.leftColumnsWidth), g = F(o.value.rightColumnsWidth), v = ((de = e.rowOption) == null ? void 0 : de.height) || 28, S = F(0), C = F(0);
7311
7320
  let y = 0, w = a.value - 1;
7312
7321
  const O = F(0), f = F(0), b = F(0);
7313
7322
  function M() {
7314
7323
  if (d.value.length <= 0)
7315
7324
  return 0;
7316
- const q = c.value < d.value.length ? d.value[c.value] : d.value[d.value.length - 1];
7317
- return (q.__fv_data_position__ || 0) + (q.__fv_data_height__ || 0) + Math.max(d.value.length - 1 - c.value, 0) * v;
7325
+ const U = c.value < d.value.length ? d.value[c.value] : d.value[d.value.length - 1];
7326
+ return (U.__fv_data_position__ || 0) + (U.__fv_data_height__ || 0) + Math.max(d.value.length - 1 - c.value, 0) * v;
7318
7327
  }
7319
7328
  const B = D(() => {
7320
- const q = M();
7321
- return d.value.length > a.value + r ? Math.floor((a.value + r) / d.value.length * f.value) : Math.floor(f.value / Math.max(q, f.value) * f.value);
7329
+ const U = M();
7330
+ return d.value.length > a.value + r ? Math.floor((a.value + r) / d.value.length * f.value) : Math.floor(f.value / Math.max(U, f.value) * f.value);
7322
7331
  }), x = D(() => Math.floor(b.value / Math.max(s.value, b.value) * O.value)), k = 0, I = 0, V = D(() => O.value - (_.value + s.value + g.value + l.value));
7323
- function p(q) {
7324
- const X = d.value.find((_e) => _e.__fv_data_position__ > q);
7325
- return X ? X.__fv_index__ - 1 : 0;
7332
+ function p(U) {
7333
+ const Y = d.value.find((Fe) => Fe.__fv_data_position__ > U);
7334
+ return Y ? Y.__fv_index__ - 1 : 0;
7326
7335
  }
7327
- function T(q) {
7336
+ function T(U) {
7328
7337
  var Le, ze;
7329
7338
  if (!d.value.length) {
7330
7339
  n.value = [];
7331
7340
  return;
7332
7341
  }
7333
- const X = (Le = e.pagination) != null && Le.enable ? 0 : Math.max(y - r, 0), _e = d.value[d.value.length - 1].__fv_index__, xe = (ze = e.pagination) != null && ze.enable ? d.value.length - 1 : Math.min(w + r - 1, _e), Ve = d.value[X - 1], $e = m(X, xe, Ve, q);
7342
+ const Y = (Le = e.pagination) != null && Le.enable ? 0 : Math.max(y - r, 0), Fe = d.value[d.value.length - 1].__fv_index__, xe = (ze = e.pagination) != null && ze.enable ? d.value.length - 1 : Math.min(w + r - 1, Fe), Ve = d.value[Y - 1], $e = m(Y, xe, Ve, U);
7334
7343
  $e.length && (n.value = [...$e]);
7335
7344
  }
7336
- const P = D(() => M() > f.value), R = D(() => s.value > b.value);
7337
- function E(q) {
7338
- let X = S.value + q;
7339
- X > k && (X = k);
7340
- const _e = X > k, xe = M(), Ve = P.value;
7341
- Ve && X < f.value - xe && (X = f.value - xe), (!Ve || _e) && (X = k), S.value !== X && (S.value = X, y = p(Math.abs(S.value)), w = y + a.value, (y < u.value || w > c.value - r / 2) && T());
7345
+ const P = D(() => M() > f.value), E = D(() => s.value > b.value);
7346
+ function R(U) {
7347
+ let Y = S.value + U;
7348
+ Y > k && (Y = k);
7349
+ const Fe = Y > k, xe = M(), Ve = P.value;
7350
+ Ve && Y < f.value - xe && (Y = f.value - xe), (!Ve || Fe) && (Y = k), S.value !== Y && (S.value = Y, y = p(Math.abs(S.value)), w = y + a.value, (y < u.value || w > c.value - r / 2) && T());
7342
7351
  }
7343
- function N(q) {
7344
- if (!R.value) {
7352
+ function N(U) {
7353
+ if (!E.value) {
7345
7354
  C.value = 0;
7346
7355
  return;
7347
7356
  }
7348
- let X = C.value + q;
7349
- X > I && (X = I), X < V.value && (X = V.value), C.value !== X && (C.value = X);
7357
+ let Y = C.value + U;
7358
+ Y > I && (Y = I), Y < V.value && (Y = V.value), C.value !== Y && (C.value = Y);
7350
7359
  }
7351
7360
  function $() {
7352
7361
  Math.abs(C.value) + b.value > s.value && (C.value = Math.min(b.value - s.value, 0));
7353
7362
  }
7354
- function G() {
7363
+ function H() {
7355
7364
  S.value = 0, y = 0, w = a.value - 1, T();
7356
7365
  }
7357
- ie(b, () => {
7366
+ oe(b, () => {
7358
7367
  N(0);
7359
- }), ie(o, () => {
7368
+ }), oe(o, () => {
7360
7369
  s.value = o.value.primaryColumnsWidth, _.value = o.value.leftColumnsWidth, g.value = o.value.rightColumnsWidth;
7361
7370
  });
7362
- function j(q) {
7363
- q.preventDefault(), q.stopPropagation();
7364
- const X = (q.wheelDeltaY || q.deltaY) / 10, _e = (q.wheelDeltaX || q.deltaX) / 10;
7365
- E(X), N(_e);
7371
+ function W(U) {
7372
+ U.preventDefault(), U.stopPropagation();
7373
+ const Y = (U.wheelDeltaY || U.deltaY) / 10, Fe = (U.wheelDeltaX || U.deltaX) / 10;
7374
+ R(Y), N(Fe);
7366
7375
  }
7367
- const Y = D(() => ({
7376
+ const ae = D(() => ({
7368
7377
  height: `${d.value.length * v}px`,
7369
7378
  width: `${_.value}px`,
7370
7379
  transform: `translateY(${S.value}px)`
7371
- })), te = D(() => ({
7372
- transform: `translateY(${S.value}px)`
7373
7380
  })), me = D(() => ({
7381
+ transform: `translateY(${S.value}px)`
7382
+ })), X = D(() => ({
7374
7383
  height: `${d.value.length * v}px`,
7375
7384
  width: `${s.value}px`,
7376
7385
  transform: `translate(${C.value}px, ${S.value}px)`
7377
- })), Ce = D(() => ({
7386
+ })), le = D(() => ({
7378
7387
  transform: `translate(${C.value}px, ${S.value}px)`
7379
- })), z = D(() => ({
7388
+ })), G = D(() => ({
7380
7389
  height: `${d.value.length * v}px`,
7381
7390
  width: `${g.value}px`,
7382
7391
  transform: `translateY(${S.value}px)`
7383
- })), U = D(() => ({
7392
+ })), q = D(() => ({
7384
7393
  transform: `translateY(${S.value}px)`
7385
- })), ge = D(() => ({
7394
+ })), fe = D(() => ({
7386
7395
  height: `${d.value.length * v}px`,
7387
7396
  width: `${l.value}px`,
7388
7397
  transform: `translateY(${S.value}px)`
7389
- })), ce = D(() => ({
7398
+ })), re = D(() => ({
7390
7399
  width: `${_.value}px`
7391
- })), le = D(() => ({
7400
+ })), ue = D(() => ({
7392
7401
  transform: `translateX(${C.value}px)`
7393
- })), he = D(() => ({
7402
+ })), ye = D(() => ({
7394
7403
  width: `${g.value}px`
7395
7404
  })), Be = D(() => {
7396
- const q = M();
7397
- return S.value / (f.value - q) * (f.value - B.value);
7398
- }), be = D(() => ({
7405
+ const U = M();
7406
+ return S.value / (f.value - U) * (f.value - B.value);
7407
+ }), Ce = D(() => ({
7399
7408
  height: `${B.value}px`,
7400
7409
  top: `${Be.value}px`
7401
- })), se = D(() => C.value / V.value * (O.value - x.value)), pe = D(() => ({
7410
+ })), ce = D(() => C.value / V.value * (O.value - x.value)), ve = D(() => ({
7402
7411
  width: `${x.value}px`,
7403
- left: `${se.value}px`
7404
- })), Se = F(!1), fe = F(-1), ve = F(-1), Pe = F();
7405
- function W(q) {
7406
- if (Se.value && ve.value !== -1) {
7407
- const X = ve.value - q.pageX, _e = O.value - x.value;
7408
- if (Math.abs(X) <= _e) {
7409
- const xe = X / (b.value - x.value) * (s.value - b.value);
7410
- N(xe), ve.value = q.pageX;
7412
+ left: `${ce.value}px`
7413
+ })), Se = F(!1), ge = F(-1), he = F(-1), Pe = F();
7414
+ function L(U) {
7415
+ if (Se.value && he.value !== -1) {
7416
+ const Y = he.value - U.pageX, Fe = O.value - x.value;
7417
+ if (Math.abs(Y) <= Fe) {
7418
+ const xe = Y / (b.value - x.value) * (s.value - b.value);
7419
+ N(xe), he.value = U.pageX;
7411
7420
  }
7412
7421
  }
7413
7422
  }
7414
- function de(q) {
7415
- if (Se.value && fe.value !== -1) {
7416
- const X = fe.value - q.pageY, _e = M(), xe = _e - B.value;
7417
- if (Math.abs(X) <= xe) {
7418
- const Ve = X / (f.value - B.value) * (_e - f.value);
7419
- E(Ve), fe.value = q.pageY;
7423
+ function pe(U) {
7424
+ if (Se.value && ge.value !== -1) {
7425
+ const Y = ge.value - U.pageY, Fe = M(), xe = Fe - B.value;
7426
+ if (Math.abs(Y) <= xe) {
7427
+ const Ve = Y / (f.value - B.value) * (Fe - f.value);
7428
+ R(Ve), ge.value = U.pageY;
7420
7429
  }
7421
7430
  }
7422
7431
  }
7423
- function ye(q) {
7424
- Se.value = !1, fe.value = -1, ve.value = -1, document.removeEventListener("mouseup", ye), document.removeEventListener("mousemove", W), document.removeEventListener("mousemove", de), document.body.style.userSelect = "", Pe.value && (Pe.value.style.opacity = null);
7432
+ function be(U) {
7433
+ Se.value = !1, ge.value = -1, he.value = -1, document.removeEventListener("mouseup", be), document.removeEventListener("mousemove", L), document.removeEventListener("mousemove", pe), document.body.style.userSelect = "", Pe.value && (Pe.value.style.opacity = null);
7425
7434
  }
7426
- function H(q, X, _e) {
7435
+ function A(U, Y, Fe) {
7427
7436
  var $e;
7428
7437
  Se.value = !0;
7429
- const xe = ($e = q.target) == null ? void 0 : $e.parentElement;
7438
+ const xe = ($e = U.target) == null ? void 0 : $e.parentElement;
7430
7439
  xe && (xe.style.opacity = 1, Pe.value = xe);
7431
- const Ve = _e === "horizontal" ? W : de;
7432
- _e === "vertical" && (fe.value = q.pageY), _e === "horizontal" && (ve.value = q.pageX), X.value && (X.value, document.addEventListener("mousemove", Ve), document.addEventListener("mouseup", ye), document.body.style.userSelect = "none");
7440
+ const Ve = Fe === "horizontal" ? L : pe;
7441
+ Fe === "vertical" && (ge.value = U.pageY), Fe === "horizontal" && (he.value = U.pageX), Y.value && (Y.value, document.addEventListener("mousemove", Ve), document.addEventListener("mouseup", be), document.body.style.userSelect = "none");
7433
7442
  }
7434
7443
  return {
7435
- onMouseDownScrollThumb: H,
7436
- onWheel: j,
7444
+ onMouseDownScrollThumb: A,
7445
+ onWheel: W,
7437
7446
  dataGridWidth: O,
7438
- gridDataStyle: me,
7439
- gridHeaderColumnsStyle: le,
7440
- gridMergedDataStyle: Ce,
7441
- gridSideStyle: ge,
7447
+ gridDataStyle: X,
7448
+ gridHeaderColumnsStyle: ue,
7449
+ gridMergedDataStyle: le,
7450
+ gridSideStyle: fe,
7442
7451
  fitHorizontalScroll: $,
7443
7452
  viewPortWidth: b,
7444
7453
  viewPortHeight: f,
7445
- horizontalScrollThumbStyle: pe,
7446
- leftFixedGridDataStyle: Y,
7447
- leftFixedGridHeaderColumnsStyle: ce,
7448
- leftFixedGridMergedDataStyle: te,
7454
+ horizontalScrollThumbStyle: ve,
7455
+ leftFixedGridDataStyle: ae,
7456
+ leftFixedGridHeaderColumnsStyle: re,
7457
+ leftFixedGridMergedDataStyle: me,
7449
7458
  reCalculateVisualDataRows: T,
7450
- resetScroll: G,
7451
- rightFixedGridDataStyle: z,
7452
- rightFixedGridHeaderColumnsStyle: he,
7453
- rightFixedGridMergedDataStyle: U,
7454
- shouldShowHorizontalScrollbar: R,
7459
+ resetScroll: H,
7460
+ rightFixedGridDataStyle: G,
7461
+ rightFixedGridHeaderColumnsStyle: ye,
7462
+ rightFixedGridMergedDataStyle: q,
7463
+ shouldShowHorizontalScrollbar: E,
7455
7464
  shouldShowVirticalScrollbar: P,
7456
- verticalScrollThumbStyle: be,
7465
+ verticalScrollThumbStyle: Ce,
7457
7466
  offsetX: C,
7458
7467
  offsetY: S
7459
7468
  };
@@ -7543,12 +7552,12 @@ function yo(e, t, n, o, i, a) {
7543
7552
  var C, y;
7544
7553
  const r = F(e.rowOption), l = ((C = r.value) == null ? void 0 : C.height) || 28, d = ((y = r.value) == null ? void 0 : y.wrapContent) || !1, { idField: m } = o, { collapseField: c } = n, { updateRowPosition: u } = i, { createCellByColumn: s } = a;
7545
7554
  function _(w, O, f, b, M, B) {
7546
- var Y;
7555
+ var ae, me;
7547
7556
  const {
7548
7557
  __fv_data_grid_group_field__: x,
7549
7558
  __fv_data_grid_group_value__: k,
7550
7559
  __fv_data_index__: I
7551
- } = f, V = f.__fv_data_grid_group_layer__ || f.__fv_parents__ ? (Y = f.__fv_parents__) == null ? void 0 : Y.size : 0, p = typeof f.parent == "number" ? Number(f.parent) : -1, T = f.__fv_data_grid_group_collapse__ || f[c.value], P = f.__fv_visible__ === void 0 ? !0 : f.__fv_visible__, R = f.__fv_checked__, E = f.__fv_indeterminate__, N = b && b[m.value] === f.parent, $ = b && b.parent === f.parent, G = N && M && (M.collapse || !M.visible) || $ && M && !M.visible, j = {
7560
+ } = f, V = f.__fv_data_grid_group_layer__ || f.__fv_parents__ ? (ae = f.__fv_parents__) == null ? void 0 : ae.size : 0, p = typeof f.parent == "number" ? Number(f.parent) : -1, T = f.__fv_data_grid_group_collapse__ || f[c.value], P = f.__fv_visible__ === void 0 ? !0 : f.__fv_visible__, E = f.__fv_checked__, R = f.__fv_indeterminate__, N = b && b[m.value] === f.parent, $ = b && b.parent === f.parent, H = N && M && (M.collapse || !M.visible) || $ && M && !M.visible, W = {
7552
7561
  collapse: T,
7553
7562
  data: {},
7554
7563
  dataIndex: I,
@@ -7561,15 +7570,15 @@ function yo(e, t, n, o, i, a) {
7561
7570
  top: B,
7562
7571
  type: w,
7563
7572
  raw: f,
7564
- checked: R,
7565
- indeterminate: E,
7566
- setRef: (te) => {
7567
- j.ref = te;
7573
+ checked: E,
7574
+ indeterminate: R,
7575
+ setRef: (X) => {
7576
+ W.ref = X;
7568
7577
  },
7569
- visible: P && !G,
7578
+ visible: P && !H,
7570
7579
  status: qe.initial
7571
7580
  };
7572
- return b || (f.__fv_data_position__ = 0), d || (j.height = l, f.__fv_data_height__ = j.height, u(j, f)), j;
7581
+ return b || (f.__fv_data_position__ = 0), d || (W.height = l, f.__fv_data_height__ = W.height, u(W, f)), (me = r.value) != null && me.customRowStatus && (r.value.customRowStatus(W), f.__fv_collapse__ = W.collapse, f.__fv_visible__ = W.visible), W;
7573
7582
  }
7574
7583
  function g(w, O, f, b, M, B) {
7575
7584
  const x = _(it.data, M, O, f, b, B);
@@ -7627,9 +7636,9 @@ function bo(e, t) {
7627
7636
  const {
7628
7637
  idField: n
7629
7638
  } = t, o = F(e.editable), i = F(e.editOption), a = F(((O = e.rowOption) == null ? void 0 : O.wrapContent) || !1);
7630
- ie(() => e.editable, () => {
7639
+ oe(() => e.editable, () => {
7631
7640
  o.value = e.editable;
7632
- }), ie(() => {
7641
+ }), oe(() => {
7633
7642
  var f;
7634
7643
  return (f = e.editOption) == null ? void 0 : f.editMode;
7635
7644
  }, (f) => {
@@ -7842,15 +7851,15 @@ function wo(e, t, n, o) {
7842
7851
  }
7843
7852
  function So(e, t, n, o, i) {
7844
7853
  const { idField: a } = n, r = F(""), l = F(e.selection.enableSelectRow ?? !0), d = F(e.selection.multiSelect ?? !1), m = F(e.selection.multiSelectMode), c = F(e.selection.showCheckbox), u = F(e.selection.showSelectAll), s = F(e.selectionValues);
7845
- ie(() => e.selection.showSelectAll, ($, G) => {
7846
- $ !== G && (u.value = $);
7854
+ oe(() => e.selection.showSelectAll, ($, H) => {
7855
+ $ !== H && (u.value = $);
7847
7856
  });
7848
7857
  function _() {
7849
7858
  return t.getSelectionItems(s.value);
7850
7859
  }
7851
7860
  function g() {
7852
- const $ = o.value.reduce((j, Y) => (j.set(Y.raw[a.value], Y), j), /* @__PURE__ */ new Map());
7853
- return s.value.map((j) => $.get(j)).filter((j) => !!j);
7861
+ const $ = o.value.reduce((W, ae) => (W.set(ae.raw[a.value], ae), W), /* @__PURE__ */ new Map());
7862
+ return s.value.map((W) => $.get(W)).filter((W) => !!W);
7854
7863
  }
7855
7864
  D(() => l.value && !d.value);
7856
7865
  const v = D(() => l.value && d.value), S = D(() => !!e.hierarchy), C = D(() => {
@@ -7863,17 +7872,17 @@ function So(e, t, n, o, i) {
7863
7872
  i.emit("selectionChange", $);
7864
7873
  }
7865
7874
  function f() {
7866
- o.value.forEach((G) => {
7867
- G.checked = !1, G.indeterminate = !1, G.raw.__fv_checked__ = !1, G.raw.__fv_indeterminate__ = !1;
7868
- }), g().forEach((G) => {
7869
- G.checked = !0, G.raw.__fv_checked__ = !0;
7875
+ o.value.forEach((H) => {
7876
+ H.checked = !1, H.indeterminate = !1, H.raw.__fv_checked__ = !1, H.raw.__fv_indeterminate__ = !1;
7877
+ }), g().forEach((H) => {
7878
+ H.checked = !0, H.raw.__fv_checked__ = !0;
7870
7879
  });
7871
7880
  }
7872
- ie(() => o.value, () => {
7881
+ oe(() => o.value, () => {
7873
7882
  f();
7874
- }), ie(() => e.selectionValues, ($) => {
7883
+ }), oe(() => e.selectionValues, ($) => {
7875
7884
  s.value = $, f();
7876
- }, { immediate: !0 }), ie(() => e.selection, ($) => {
7885
+ }, { immediate: !0 }), oe(() => e.selection, ($) => {
7877
7886
  l.value = !!$.enableSelectRow, d.value = !!$.multiSelect, m.value = $.multiSelectMode || "DependOnCheck", c.value = !!$.showCheckbox;
7878
7887
  });
7879
7888
  const b = D(() => !d.value);
@@ -7881,28 +7890,28 @@ function So(e, t, n, o, i) {
7881
7890
  return $.raw[a.value] || "";
7882
7891
  }
7883
7892
  function B($) {
7884
- return s.value.findIndex((j) => j === M($));
7893
+ return s.value.findIndex((W) => W === M($));
7885
7894
  }
7886
7895
  function x() {
7887
- g().forEach((j) => {
7888
- j.checked = !1;
7889
- }), t.getSelectionItems(s.value).forEach((j) => {
7890
- j.__fv_checked__ = !1;
7896
+ g().forEach((W) => {
7897
+ W.checked = !1;
7898
+ }), t.getSelectionItems(s.value).forEach((W) => {
7899
+ W.__fv_checked__ = !1;
7891
7900
  }), s.value = [];
7892
7901
  }
7893
7902
  function k($) {
7894
- const G = $.raw;
7895
- G.__fv_checked__ = !0, G.__fv_indeterminate__ = !1;
7896
- const j = new Set(s.value);
7897
- j.add(G[a.value]), s.value = Array.from(j.values()), $.checked = !0, $.indeterminate = !1, r.value = $.raw[a.value];
7903
+ const H = $.raw;
7904
+ H.__fv_checked__ = !0, H.__fv_indeterminate__ = !1;
7905
+ const W = new Set(s.value);
7906
+ W.add(H[a.value]), s.value = Array.from(W.values()), $.checked = !0, $.indeterminate = !1, r.value = $.raw[a.value];
7898
7907
  }
7899
7908
  function I($) {
7900
- const G = $.raw;
7901
- G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1, s.value = s.value.filter((j) => j !== G[a.value]), $.checked = !1, $.indeterminate = !1, r.value = "";
7909
+ const H = $.raw;
7910
+ H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, s.value = s.value.filter((W) => W !== H[a.value]), $.checked = !1, $.indeterminate = !1, r.value = "";
7902
7911
  }
7903
7912
  function V($) {
7904
- const G = $.raw;
7905
- G.__fv_checked__ = !1, G.__fv_indeterminate__ = !0, s.value = s.value.filter((j) => j !== G[a.value]), $.checked = !1, $.indeterminate = !0;
7913
+ const H = $.raw;
7914
+ H.__fv_checked__ = !1, H.__fv_indeterminate__ = !0, s.value = s.value.filter((W) => W !== H[a.value]), $.checked = !1, $.indeterminate = !0;
7906
7915
  }
7907
7916
  function p($) {
7908
7917
  b.value && x(), $.checked ? I($) : k($), O();
@@ -7911,16 +7920,16 @@ function So(e, t, n, o, i) {
7911
7920
  $.raw[a.value] !== r.value && (x(), k($), O());
7912
7921
  }
7913
7922
  function P($) {
7914
- const G = o.value.find((j) => j.raw[a.value] === $);
7915
- G && T(G);
7923
+ const H = o.value.find((W) => W.raw[a.value] === $);
7924
+ H && T(H);
7916
7925
  }
7917
- function R() {
7926
+ function E() {
7918
7927
  o.value.forEach(($) => k($)), O();
7919
7928
  }
7920
- function E() {
7929
+ function R() {
7921
7930
  s.value.splice(0, s.value.length), r.value = "", o.value.forEach(($) => {
7922
- const G = $.raw;
7923
- G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1, $.checked = !1, $.indeterminate = !1;
7931
+ const H = $.raw;
7932
+ H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, $.checked = !1, $.indeterminate = !1;
7924
7933
  }), O();
7925
7934
  }
7926
7935
  function N() {
@@ -7941,7 +7950,7 @@ function So(e, t, n, o, i) {
7941
7950
  multiSelectOnClickRowWithShift: y,
7942
7951
  multiSelectOnlyOnCheck: C,
7943
7952
  select: k,
7944
- selectAll: R,
7953
+ selectAll: E,
7945
7954
  selectedValues: s,
7946
7955
  selectItem: T,
7947
7956
  selectItemById: P,
@@ -7949,7 +7958,7 @@ function So(e, t, n, o, i) {
7949
7958
  showSelectAll: u,
7950
7959
  toggleSelectItem: p,
7951
7960
  unSelect: I,
7952
- unSelectAll: E
7961
+ unSelectAll: R
7953
7962
  };
7954
7963
  }
7955
7964
  function _o(e, t) {
@@ -7958,7 +7967,7 @@ function _o(e, t) {
7958
7967
  var y;
7959
7968
  return r.value ? ((y = e.rowNumber) == null ? void 0 : y.heading) ?? "序号" : "";
7960
7969
  }), u = D(() => (l.value ? Number(m.value) : 0) + (r.value ? Number(d.value) : 0));
7961
- ie(() => e.rowNumber, (y) => {
7970
+ oe(() => e.rowNumber, (y) => {
7962
7971
  y && y.enable !== void 0 && (r.value = y.enable), y && y.width !== void 0 && (d.value = y.width);
7963
7972
  });
7964
7973
  function s(y) {
@@ -8022,7 +8031,7 @@ function Fo(e) {
8022
8031
  return o(r.column);
8023
8032
  }
8024
8033
  function a(r, l) {
8025
- const d = i(r), m = (r.status & A.sortable) === A.sortable && (r.status & A.sorted) === A.sorted, c = (r.status & A.ascending) === A.ascending, u = (r.status & A.descending) === A.descending;
8034
+ const d = i(r), m = (r.status & j.sortable) === j.sortable && (r.status & j.sorted) === j.sorted, c = (r.status & j.ascending) === j.ascending, u = (r.status & j.descending) === j.descending;
8026
8035
  if (m && d) {
8027
8036
  const s = c ? d.ascend : u ? d.decend : void 0;
8028
8037
  s ? l.addSorter(r.field, { field: r.field, compare: s }) : l.removeSorter(r.field);
@@ -8031,7 +8040,7 @@ function Fo(e) {
8031
8040
  }
8032
8041
  return { getSorterByColumn: o, updateSorter: a };
8033
8042
  }
8034
- function Rs(e) {
8043
+ function Es(e) {
8035
8044
  function t(o) {
8036
8045
  return {};
8037
8046
  }
@@ -8060,7 +8069,7 @@ function xo(e) {
8060
8069
  var u;
8061
8070
  return ((u = e.pagination) == null ? void 0 : u.total) || e.data.length;
8062
8071
  }), r = F((c = e.pagination) == null ? void 0 : c.mode);
8063
- return ie(() => {
8072
+ return oe(() => {
8064
8073
  var u;
8065
8074
  return (u = e.pagination) == null ? void 0 : u.sizeLimits;
8066
8075
  }, (u, s) => {
@@ -8077,7 +8086,7 @@ function xo(e) {
8077
8086
  mode: r
8078
8087
  };
8079
8088
  }
8080
- function Es(e) {
8089
+ function Rs(e) {
8081
8090
  const t = "parent", n = "layer", o = "hasChildren", i = (a, r = 1, l = [], d = null) => (a = a || [], a.reduce((m, c) => (c.id = c.id || c.data[e.idField], c.data[t] = d, c.data[n] = r, c.data[o] = !1, m.push(c.data), c.children && c.children.length && (c.data[o] = !0, i(c.children, r + 1, l, c.id)), m), l), l);
8082
8091
  return { flatTreeData: i };
8083
8092
  }
@@ -8094,10 +8103,10 @@ function ko(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v) {
8094
8103
  rightFixedGridDataStyle: b
8095
8104
  } = _, {
8096
8105
  renderDataRow: M
8097
- } = Er(e, t, C, v, l, d, m, c, u, s), B = [M];
8106
+ } = Rr(e, t, C, v, l, d, m, c, u, s), B = [M];
8098
8107
  function x(T, P) {
8099
- const R = S(T);
8100
- return v.value.filter((E) => E.visible !== !1).map((E) => B[E.type](E, R, P));
8108
+ const E = S(T);
8109
+ return v.value.filter((R) => R.visible !== !1).map((R) => B[R.type](R, E, P));
8101
8110
  }
8102
8111
  function k() {
8103
8112
  return h("div", {
@@ -8152,23 +8161,23 @@ const ct = /* @__PURE__ */ Oe({
8152
8161
  const V = mn(e), p = gn(e), {
8153
8162
  applyColumnSorter: T,
8154
8163
  columnContext: P,
8155
- updateColumnRenderContext: R
8164
+ updateColumnRenderContext: E
8156
8165
  } = V;
8157
8166
  T(w, p);
8158
- const E = vn(e, P), N = Mt(e, g), $ = Pt(), G = Dt(e, N, $), j = Rt(e, N, C, g, $, G), Y = Et(e, k, w, M, 0, j), {
8159
- getVisualData: te
8160
- } = Y, me = hn(e, P), Ce = yn(e, O), {
8161
- sidebarWidth: z
8162
- } = Ce;
8163
- m.value = te(0, M.value + 0 - 1);
8164
- const U = bn(e, w, m, P, Y, M, 0, z), {
8165
- onWheel: ge,
8166
- dataGridWidth: ce,
8167
- viewPortHeight: le,
8168
- viewPortWidth: he
8169
- } = U, Be = Cn(e, P, a, he, E), {
8170
- calculateColumnsSize: be
8171
- } = Be, se = wn(), pe = Sn(a, d, w, se, U), Se = _n(e, t, O, g), fe = Fn(e, t, V, w, E, v, U), ve = D(() => ({
8167
+ const R = vn(e, P), N = Mt(e, g), $ = Pt(), H = Dt(e, N, $), W = Et(e, N, C, g, $, H), ae = Rt(e, k, w, M, 0, W), {
8168
+ getVisualData: me
8169
+ } = ae, X = hn(e, P), le = yn(e, O), {
8170
+ sidebarWidth: G
8171
+ } = le;
8172
+ m.value = me(0, M.value + 0 - 1);
8173
+ const q = bn(e, w, m, P, ae, M, 0, G), {
8174
+ onWheel: fe,
8175
+ dataGridWidth: re,
8176
+ viewPortHeight: ue,
8177
+ viewPortWidth: ye
8178
+ } = q, Be = Cn(e, P, a, ye, R), {
8179
+ calculateColumnsSize: Ce
8180
+ } = Be, ce = wn(), ve = Sn(a, d, w, ce, q), Se = _n(e, t, O, g), ge = Fn(e, t, V, w, R, v, q), he = D(() => ({
8172
8181
  "fv-grid": !0,
8173
8182
  "fv-grid-bordered": e.showBorder,
8174
8183
  "fv-datagrid-strip": e.showStripe
@@ -8177,70 +8186,70 @@ const ct = /* @__PURE__ */ Oe({
8177
8186
  "fv-grid-content-hover": c.value,
8178
8187
  "fv-grid-wrap-content": u.value
8179
8188
  })), {
8180
- renderDataArea: W
8181
- } = ko(e, t, r, l, d, me, V, w, N, C, Se, O, f, U, Y, m), {
8182
- renderGridHeader: de,
8183
- renderGridColumnResizeOverlay: ye
8184
- } = xn(e, a, l, d, V, w, fe, pe, S, se, Be, E, O, Ce, p, U, he, m), {
8185
- renderDataGridSidebar: H
8186
- } = kn(e, Se, O, Ce, U), {
8187
- renderDisableMask: ue
8189
+ renderDataArea: L
8190
+ } = ko(e, t, r, l, d, X, V, w, N, C, Se, O, f, q, ae, m), {
8191
+ renderGridHeader: pe,
8192
+ renderGridColumnResizeOverlay: be
8193
+ } = xn(e, a, l, d, V, w, ge, ve, S, ce, Be, R, O, le, p, q, ye, m), {
8194
+ renderDataGridSidebar: A
8195
+ } = kn(e, Se, O, le, q), {
8196
+ renderDisableMask: de
8188
8197
  } = Tn(), {
8189
- renderHorizontalScrollbar: q
8190
- } = On(e, a, U), {
8191
- renderVerticalScrollbar: X
8192
- } = In(e, a, U);
8193
- function _e() {
8194
- var ae, ke;
8195
- le.value = ((ae = r.value) == null ? void 0 : ae.clientHeight) || 0, ce.value = ((ke = a.value) == null ? void 0 : ke.clientWidth) || 0, be();
8196
- }
8197
- Ee(() => {
8198
- a.value && (mt(a.value, _e), be(), Ue(() => {
8199
- a.value && (ce.value = a.value.clientWidth), r.value && (he.value = r.value.clientWidth, le.value = r.value.clientHeight);
8198
+ renderHorizontalScrollbar: U
8199
+ } = On(e, a, q), {
8200
+ renderVerticalScrollbar: Y
8201
+ } = In(e, a, q);
8202
+ function Fe() {
8203
+ var ie, ke;
8204
+ ue.value = ((ie = r.value) == null ? void 0 : ie.clientHeight) || 0, re.value = ((ke = a.value) == null ? void 0 : ke.clientWidth) || 0, Ce();
8205
+ }
8206
+ Re(() => {
8207
+ a.value && (mt(a.value, Fe), Ce(), Ue(() => {
8208
+ a.value && (re.value = a.value.clientWidth), r.value && (ye.value = r.value.clientWidth, ue.value = r.value.clientHeight);
8200
8209
  })), s.value && _();
8201
8210
  }), ut(() => {
8202
- }), ie(he, () => {
8203
- a.value && be();
8211
+ }), oe(ye, () => {
8212
+ a.value && Ce();
8204
8213
  });
8205
8214
  function xe() {
8206
- const ae = O.getSelectionRow();
8207
- return ae ? ae.dataIndex - 1 : -1;
8215
+ const ie = O.getSelectionRow();
8216
+ return ie ? ie.dataIndex - 1 : -1;
8208
8217
  }
8209
8218
  function Ve() {
8210
- const ae = xe();
8211
- w.insertNewDataItem(ae), m.value = te(0, M.value + 0 - 1);
8219
+ const ie = xe();
8220
+ w.insertNewDataItem(ie), m.value = me(0, M.value + 0 - 1);
8212
8221
  }
8213
8222
  function $e() {
8214
- const ae = xe();
8215
- w.insertNewChildDataItem(ae), m.value = te(0, M.value + 0 - 1);
8223
+ const ie = xe();
8224
+ w.insertNewChildDataItem(ie), m.value = me(0, M.value + 0 - 1);
8216
8225
  }
8217
8226
  function Le() {
8218
- const ae = xe(), ke = f.getNextSelectableHierarchyItemId(ae);
8219
- w.removeHierarchyDataItem(ae), m.value = te(0, M.value + 0 - 1), ke && O.selectItemById(ke);
8227
+ const ie = xe(), ke = f.getNextSelectableHierarchyItemId(ie);
8228
+ w.removeHierarchyDataItem(ie), m.value = me(0, M.value + 0 - 1), ke && O.selectItemById(ke);
8220
8229
  }
8221
- function ze(ae) {
8222
- N.onEditingRow(ae);
8230
+ function ze(ie) {
8231
+ N.onEditingRow(ie);
8223
8232
  }
8224
- function Ze(ae) {
8225
- N.acceptEditingRow(ae);
8233
+ function Ze(ie) {
8234
+ N.acceptEditingRow(ie);
8226
8235
  }
8227
- function Je(ae) {
8228
- N.cancelEditingRow(ae);
8236
+ function Je(ie) {
8237
+ N.cancelEditingRow(ie);
8229
8238
  }
8230
- function et(ae) {
8231
- ae && (k.value = ae, I(k), R(k.value), T(w, p), be());
8239
+ function et(ie) {
8240
+ ie && (k.value = ie, I(k), E(k.value), T(w, p), Ce());
8232
8241
  }
8233
- function tt(ae) {
8234
- ae && (w.load(ae), m.value = te(0, M.value + 0 - 1));
8242
+ function tt(ie) {
8243
+ ie && (w.load(ie), m.value = me(0, M.value + 0 - 1));
8235
8244
  }
8236
- function Xe(ae) {
8237
- O.selectItemById(ae);
8245
+ function Xe(ie) {
8246
+ O.selectItemById(ie);
8238
8247
  }
8239
- function L() {
8248
+ function z() {
8240
8249
  return O.getSelectedItems();
8241
8250
  }
8242
- const oe = D(() => !m.value || !m.value.length), {
8243
- renderEmpty: re
8251
+ const ne = D(() => !m.value || !m.value.length), {
8252
+ renderEmpty: se
8244
8253
  } = Bn(t);
8245
8254
  return t.expose({
8246
8255
  addNewDataItem: Ve,
@@ -8252,13 +8261,13 @@ const ct = /* @__PURE__ */ Oe({
8252
8261
  updateColumns: et,
8253
8262
  updateDataSource: tt,
8254
8263
  selectItemById: Xe,
8255
- getSelectedItems: L
8264
+ getSelectedItems: z
8256
8265
  }), () => h("div", {
8257
8266
  ref: i,
8258
- class: ve.value,
8267
+ class: he.value,
8259
8268
  style: B.value,
8260
- onWheel: ge
8261
- }, [de(), oe.value && re(), h("div", {
8269
+ onWheel: fe
8270
+ }, [pe(), ne.value && se(), h("div", {
8262
8271
  ref: a,
8263
8272
  class: Pe.value,
8264
8273
  onMouseover: () => {
@@ -8267,7 +8276,7 @@ const ct = /* @__PURE__ */ Oe({
8267
8276
  onMouseleave: () => {
8268
8277
  c.value = !1;
8269
8278
  }
8270
- }, [H(m), W(), q(), X()]), ye(), b.value && ue()]);
8279
+ }, [A(m), L(), U(), Y()]), be(), b.value && de()]);
8271
8280
  }
8272
8281
  }), $s = /* @__PURE__ */ Oe({
8273
8282
  name: "FTreeGridDesign",
@@ -8287,71 +8296,71 @@ const ct = /* @__PURE__ */ Oe({
8287
8296
  updateColumnRenderContext: P
8288
8297
  } = I;
8289
8298
  p(w, V);
8290
- const R = Qn(e, T), E = bo(e, g), N = Ht(), $ = ho(e, E, N), G = yo(e, E, C, g, N, $), j = vo(e, x, w, b, o, G), {
8291
- getVisualData: Y
8292
- } = j, te = At(e, T), me = _o(e, O), {
8293
- sidebarWidth: Ce
8294
- } = me;
8295
- m.value = Y(0, b.value + o - 1);
8296
- const z = go(e, w, m, T, j, b, o, Ce), {
8297
- onWheel: U,
8298
- dataGridWidth: ge,
8299
- viewPortHeight: ce,
8300
- viewPortWidth: le
8301
- } = z, he = Yn(e, T, a, le, R), {
8299
+ const E = Qn(e, T), R = bo(e, g), N = Ht(), $ = ho(e, R, N), H = yo(e, R, C, g, N, $), W = vo(e, x, w, b, o, H), {
8300
+ getVisualData: ae
8301
+ } = W, me = At(e, T), X = _o(e, O), {
8302
+ sidebarWidth: le
8303
+ } = X;
8304
+ m.value = ae(0, b.value + o - 1);
8305
+ const G = go(e, w, m, T, W, b, o, le), {
8306
+ onWheel: q,
8307
+ dataGridWidth: fe,
8308
+ viewPortHeight: re,
8309
+ viewPortWidth: ue
8310
+ } = G, ye = Yn(e, T, a, ue, E), {
8302
8311
  calculateColumnsSize: Be
8303
- } = he, be = po(), se = Un(a, d, w, be, z), pe = wo(e, t, O, g), Se = Xn(e, t, I, w, R, v, z), fe = D(() => ({
8312
+ } = ye, Ce = po(), ce = Un(a, d, w, Ce, G), ve = wo(e, t, O, g), Se = Xn(e, t, I, w, E, v, G), ge = D(() => ({
8304
8313
  "drag-container": !0,
8305
8314
  "fv-grid": !0,
8306
8315
  "fv-grid-bordered": e.showBorder,
8307
8316
  "fv-datagrid-strip": e.showStripe
8308
- })), ve = D(() => ({
8317
+ })), he = D(() => ({
8309
8318
  "fv-grid-content": !0,
8310
8319
  "fv-grid-content-hover": c.value,
8311
8320
  "fv-grid-wrap-content": u.value
8312
8321
  })), {
8313
8322
  renderDataArea: Pe
8314
- } = ko(e, t, r, l, d, te, I, w, E, C, pe, O, f, z, j, m), {
8315
- renderGridHeader: W,
8316
- renderGridColumnResizeOverlay: de
8317
- } = Ir(e, a, l, d, I, w, Se, se, S, be, he, R, O, me, V, z, le, m), {
8318
- renderDataGridSidebar: ye
8319
- } = Wn(e, pe, O, me, z), {
8320
- renderHorizontalScrollbar: H
8321
- } = Gn(e, a, z), {
8322
- renderVerticalScrollbar: ue
8323
- } = Ln(e, a, z);
8324
- function q() {
8323
+ } = ko(e, t, r, l, d, me, I, w, R, C, ve, O, f, G, W, m), {
8324
+ renderGridHeader: L,
8325
+ renderGridColumnResizeOverlay: pe
8326
+ } = Ir(e, a, l, d, I, w, Se, ce, S, Ce, ye, E, O, X, V, G, ue, m), {
8327
+ renderDataGridSidebar: be
8328
+ } = Wn(e, ve, O, X, G), {
8329
+ renderHorizontalScrollbar: A
8330
+ } = Gn(e, a, G), {
8331
+ renderVerticalScrollbar: de
8332
+ } = Ln(e, a, G);
8333
+ function U() {
8325
8334
  var Ve, $e;
8326
- ce.value = ((Ve = r.value) == null ? void 0 : Ve.clientHeight) || 0, ge.value = (($e = a.value) == null ? void 0 : $e.clientWidth) || 0, Be();
8335
+ re.value = ((Ve = r.value) == null ? void 0 : Ve.clientHeight) || 0, fe.value = (($e = a.value) == null ? void 0 : $e.clientWidth) || 0, Be();
8327
8336
  }
8328
- Ee(() => {
8329
- n.value.componentInstance = _, a.value && (mt(a.value, q), Be(), Ue(() => {
8330
- a.value && (ge.value = a.value.clientWidth), r.value && (le.value = r.value.clientWidth, ce.value = r.value.clientHeight);
8337
+ Re(() => {
8338
+ n.value.componentInstance = _, a.value && (mt(a.value, U), Be(), Ue(() => {
8339
+ a.value && (fe.value = a.value.clientWidth), r.value && (ue.value = r.value.clientWidth, re.value = r.value.clientHeight);
8331
8340
  }));
8332
8341
  }), ut(() => {
8333
- }), ie(le, () => {
8342
+ }), oe(ue, () => {
8334
8343
  a.value && Be();
8335
8344
  });
8336
- const X = D(() => !m.value || !m.value.length), {
8337
- renderEmpty: _e
8345
+ const Y = D(() => !m.value || !m.value.length), {
8346
+ renderEmpty: Fe
8338
8347
  } = Ar(t);
8339
8348
  return t.expose(_.value), () => h("div", {
8340
8349
  ref: n,
8341
8350
  dragref: `${s.schema.id}-container`,
8342
- class: fe.value,
8351
+ class: ge.value,
8343
8352
  style: M.value,
8344
- onWheel: U
8345
- }, [W(), X.value && _e(), h("div", {
8353
+ onWheel: q
8354
+ }, [L(), Y.value && Fe(), h("div", {
8346
8355
  ref: a,
8347
- class: ve.value,
8356
+ class: he.value,
8348
8357
  onMouseover: () => {
8349
8358
  c.value = !0;
8350
8359
  },
8351
8360
  onMouseleave: () => {
8352
8361
  c.value = !1;
8353
8362
  }
8354
- }, [ye(m), Pe(), H(), ue()]), de()]);
8363
+ }, [be(m), Pe(), A(), de()]), pe()]);
8355
8364
  }
8356
8365
  });
8357
8366
  function Ns(e, t, n) {
@@ -9152,6 +9161,8 @@ const Ls = "https://json-schema.org/draft/2020-12/schema", zs = "https://farris-
9152
9161
  properties: Xs,
9153
9162
  required: Ys
9154
9163
  }, Ut = {
9164
+ /** 变更策略 默认主动更新 */
9165
+ changePolicy: { type: String, default: "push" },
9155
9166
  /** 列集合 */
9156
9167
  columns: { type: Array, default: [] },
9157
9168
  /** 列配置 */
@@ -9298,128 +9309,128 @@ function Vo(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g) {
9298
9309
  } = u, {
9299
9310
  onClickCell: P
9300
9311
  } = d, {
9301
- toggleGroupRow: R
9312
+ toggleGroupRow: E
9302
9313
  } = s, {
9303
- columnContext: E,
9314
+ columnContext: R,
9304
9315
  hasLeftFixedColumn: N,
9305
9316
  hasRightFixedColumn: $
9306
9317
  } = l, {
9307
- navigateOnKeyUp: G
9318
+ navigateOnKeyUp: H
9308
9319
  } = c, {
9309
- gridDataStyle: j,
9310
- gridMergedDataStyle: Y,
9311
- leftFixedGridDataStyle: te,
9312
- leftFixedGridMergedDataStyle: me,
9313
- rightFixedGridDataStyle: Ce,
9314
- rightFixedGridMergedDataStyle: z
9320
+ gridDataStyle: W,
9321
+ gridMergedDataStyle: ae,
9322
+ leftFixedGridDataStyle: me,
9323
+ leftFixedGridMergedDataStyle: X,
9324
+ rightFixedGridDataStyle: le,
9325
+ rightFixedGridMergedDataStyle: G
9315
9326
  } = _;
9316
- function U(W, de) {
9317
- de.collapse = !de.collapse, g.value = R(de.collapse ? "collapse" : "expand", de, g.value);
9318
- }
9319
- function ge(W, de) {
9320
- const ye = [];
9321
- if (W.groupField && de[W.groupField]) {
9322
- for (let ue = 0; ue <= W.layer; ue++)
9323
- ye.push(h("div", {
9327
+ function q(L, pe) {
9328
+ pe.collapse = !pe.collapse, g.value = E(pe.collapse ? "collapse" : "expand", pe, g.value);
9329
+ }
9330
+ function fe(L, pe) {
9331
+ const be = [];
9332
+ if (L.groupField && pe[L.groupField]) {
9333
+ for (let de = 0; de <= L.layer; de++)
9334
+ be.push(h("div", {
9324
9335
  class: "fv-grid-group-row-icon",
9325
- onClick: (q) => U(q, W)
9336
+ onClick: (U) => q(U, L)
9326
9337
  }, [h("span", {
9327
- class: x(W)
9338
+ class: x(L)
9328
9339
  }, null)]));
9329
- const H = W.data[W.groupField];
9330
- ye.push(h("div", {
9331
- ref: H.setRef,
9332
- key: S(W, W.layer + 1),
9340
+ const A = L.data[L.groupField];
9341
+ be.push(h("div", {
9342
+ ref: A.setRef,
9343
+ key: S(L, L.layer + 1),
9333
9344
  class: "fv-grid-cell",
9334
- style: f(H, de, W.layer)
9335
- }, [H.data])), Object.values(W.data).filter((ue) => ue.field !== W.groupField && ue.colSpan !== 0).forEach((ue) => {
9336
- ye.push(h("div", {
9337
- ref: ue.setRef,
9338
- key: S(W, ue.index),
9345
+ style: f(A, pe, L.layer)
9346
+ }, [A.data])), Object.values(L.data).filter((de) => de.field !== L.groupField && de.colSpan !== 0).forEach((de) => {
9347
+ be.push(h("div", {
9348
+ ref: de.setRef,
9349
+ key: S(L, de.index),
9339
9350
  class: "fv-grid-cell",
9340
- style: C(ue, de)
9341
- }, [ue.data]));
9351
+ style: C(de, pe)
9352
+ }, [de.data]));
9342
9353
  });
9343
9354
  }
9344
- return ye;
9345
- }
9346
- function ce(W, de, ye) {
9347
- return W.layer > -1 && h("div", {
9348
- ref: W.setRef,
9349
- key: y(W),
9350
- class: I(W),
9351
- style: w(W),
9352
- onClick: (H) => V(H, W),
9353
- onMouseover: (H) => p(H, W)
9354
- }, [ge(W, de)]);
9355
- }
9356
- function le(W, de) {
9357
- const ye = [];
9358
- if (W.groupField && de[W.groupField]) {
9359
- const H = W.data[W.groupField];
9360
- ye.push(h("div", {
9361
- ref: H.setRef,
9362
- key: S(W, W.layer + 1),
9355
+ return be;
9356
+ }
9357
+ function re(L, pe, be) {
9358
+ return L.layer > -1 && h("div", {
9359
+ ref: L.setRef,
9360
+ key: y(L),
9361
+ class: I(L),
9362
+ style: w(L),
9363
+ onClick: (A) => V(A, L),
9364
+ onMouseover: (A) => p(A, L)
9365
+ }, [fe(L, pe)]);
9366
+ }
9367
+ function ue(L, pe) {
9368
+ const be = [];
9369
+ if (L.groupField && pe[L.groupField]) {
9370
+ const A = L.data[L.groupField];
9371
+ be.push(h("div", {
9372
+ ref: A.setRef,
9373
+ key: S(L, L.layer + 1),
9363
9374
  class: "fv-grid-cell",
9364
- style: b(H, de, W.layer)
9365
- }, [H.data]));
9366
- }
9367
- return ye;
9368
- }
9369
- function he(W, de, ye) {
9370
- return W.layer > -1 && h("div", {
9371
- ref: W.setRef,
9372
- key: y(W),
9373
- class: I(W),
9374
- style: w(W),
9375
- onClick: (H) => V(H, W),
9376
- onMouseover: (H) => p(H, W)
9377
- }, [le(W, de)]);
9378
- }
9379
- function Be(W, de, ye) {
9375
+ style: b(A, pe, L.layer)
9376
+ }, [A.data]));
9377
+ }
9378
+ return be;
9379
+ }
9380
+ function ye(L, pe, be) {
9381
+ return L.layer > -1 && h("div", {
9382
+ ref: L.setRef,
9383
+ key: y(L),
9384
+ class: I(L),
9385
+ style: w(L),
9386
+ onClick: (A) => V(A, L),
9387
+ onMouseover: (A) => p(A, L)
9388
+ }, [ue(L, pe)]);
9389
+ }
9390
+ function Be(L, pe, be) {
9380
9391
  return h("div", {
9381
- ref: W.setRef,
9382
- key: y(W),
9383
- class: I(W),
9384
- style: w(W),
9385
- onClick: (H) => V(H, W),
9386
- onMouseover: (H) => p(H, W),
9387
- onMouseout: (H) => T(H, W)
9388
- }, [Object.values(W.data).filter((H) => de[H.field] && H.rowSpan === 1).map((H) => {
9389
- const ue = ye == null ? void 0 : ye.find((q) => q.field === H.field);
9392
+ ref: L.setRef,
9393
+ key: y(L),
9394
+ class: I(L),
9395
+ style: w(L),
9396
+ onClick: (A) => V(A, L),
9397
+ onMouseover: (A) => p(A, L),
9398
+ onMouseout: (A) => T(A, L)
9399
+ }, [Object.values(L.data).filter((A) => pe[A.field] && A.rowSpan === 1).map((A) => {
9400
+ const de = be == null ? void 0 : be.find((U) => U.field === A.field);
9390
9401
  return h("div", {
9391
- ref: H.setRef,
9392
- key: S(W, H.index),
9393
- class: k(H),
9394
- style: C(H, de),
9395
- onClick: (q) => P(q, H),
9396
- onKeyup: (q) => G(q, H)
9402
+ ref: A.setRef,
9403
+ key: S(L, A.index),
9404
+ class: k(A),
9405
+ style: C(A, pe),
9406
+ onClick: (U) => P(U, A),
9407
+ onKeyup: (U) => H(U, A)
9397
9408
  }, [h("div", {
9398
- class: M(H, ue),
9399
- style: B(H)
9409
+ class: M(A, de),
9410
+ style: B(A)
9400
9411
  }, [h("div", {
9401
9412
  class: {
9402
- "text-truncate": ue == null ? void 0 : ue.showEllipsis,
9413
+ "text-truncate": de == null ? void 0 : de.showEllipsis,
9403
9414
  "w-100": !0
9404
9415
  }
9405
- }, [H.data != null && t.slots.cellTemplate ? t.slots.cellTemplate({
9406
- cell: H,
9407
- row: W
9408
- }) : H.mode === De.editing ? H.getEditor(H) : H.formatter ? H.formatter(H, W) : H.data != null ? H.data.toString() : H.data])])]);
9416
+ }, [A.data != null && t.slots.cellTemplate ? t.slots.cellTemplate({
9417
+ cell: A,
9418
+ row: L
9419
+ }) : A.mode === De.editing ? A.getEditor(A) : A.formatter ? A.formatter(A, L) : A.data != null ? A.data.toString() : A.data])])]);
9409
9420
  })]);
9410
9421
  }
9411
- const be = [Be, ce, he];
9412
- function se(W, de) {
9413
- const ye = v(W);
9414
- return g.value.map((H) => be[H.type](H, ye, W));
9422
+ const Ce = [Be, re, ye];
9423
+ function ce(L, pe) {
9424
+ const be = v(L);
9425
+ return g.value.map((A) => Ce[A.type](A, be, L));
9415
9426
  }
9416
- function pe(W) {
9417
- const de = v(W);
9418
- return g.value.map((ye) => Object.values(ye.data).filter((H) => de[H.field] && H.rowSpan > 1).map((H) => h("div", {
9419
- key: S(ye, H.index),
9427
+ function ve(L) {
9428
+ const pe = v(L);
9429
+ return g.value.map((be) => Object.values(be.data).filter((A) => pe[A.field] && A.rowSpan > 1).map((A) => h("div", {
9430
+ key: S(be, A.index),
9420
9431
  class: "fv-grid-cell fv-grid-merged-cell",
9421
- style: O(ye, H, de)
9422
- }, [H.data])));
9432
+ style: O(be, A, pe)
9433
+ }, [A.data])));
9423
9434
  }
9424
9435
  function Se() {
9425
9436
  return h("div", {
@@ -9427,39 +9438,39 @@ function Vo(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g) {
9427
9438
  class: "fv-grid-content-left-fixed"
9428
9439
  }, [h("div", {
9429
9440
  class: "fv-grid-data",
9430
- style: te.value
9431
- }, [se(E.value.leftColumns.filter((W) => W.visible))]), h("div", {
9432
- class: "fv-grid-merge-date",
9433
9441
  style: me.value
9434
- }, [pe(E.value.leftColumns.filter((W) => W.visible))])]);
9442
+ }, [ce(R.value.leftColumns.filter((L) => L.visible))]), h("div", {
9443
+ class: "fv-grid-merge-date",
9444
+ style: X.value
9445
+ }, [ve(R.value.leftColumns.filter((L) => L.visible))])]);
9435
9446
  }
9436
- function fe() {
9447
+ function ge() {
9437
9448
  return h("div", {
9438
9449
  ref: n,
9439
9450
  class: "fv-grid-content-primary"
9440
9451
  }, [h("div", {
9441
9452
  class: "fv-grid-data",
9442
- style: j.value
9443
- }, [se(E.value.primaryColumns.filter((W) => W.visible))]), h("div", {
9453
+ style: W.value
9454
+ }, [ce(R.value.primaryColumns.filter((L) => L.visible))]), h("div", {
9444
9455
  class: "fv-grid-merge-date",
9445
- style: Y.value
9446
- }, [pe(E.value.primaryColumns.filter((W) => W.visible))])]);
9456
+ style: ae.value
9457
+ }, [ve(R.value.primaryColumns.filter((L) => L.visible))])]);
9447
9458
  }
9448
- function ve() {
9459
+ function he() {
9449
9460
  return h("div", {
9450
9461
  ref: i,
9451
9462
  class: "fv-grid-content-right-fixed"
9452
9463
  }, [h("div", {
9453
9464
  class: "fv-grid-data",
9454
- style: Ce.value
9455
- }, [se(E.value.rightColumns.filter((W) => W.visible))]), h("div", {
9465
+ style: le.value
9466
+ }, [ce(R.value.rightColumns.filter((L) => L.visible))]), h("div", {
9456
9467
  class: "fv-grid-merge-date",
9457
- style: z.value
9458
- }, [pe(E.value.rightColumns.filter((W) => W.visible))])]);
9468
+ style: G.value
9469
+ }, [ve(R.value.rightColumns.filter((L) => L.visible))])]);
9459
9470
  }
9460
9471
  function Pe() {
9461
- const W = [];
9462
- return N.value && W.push(Se()), W.push(fe()), $.value && W.push(ve()), W;
9472
+ const L = [];
9473
+ return N.value && L.push(Se()), L.push(ge()), $.value && L.push(he()), L;
9463
9474
  }
9464
9475
  return {
9465
9476
  renderDataArea: Pe
@@ -9487,128 +9498,132 @@ const rt = /* @__PURE__ */ Oe({
9487
9498
  const V = mn(e), p = gn(e), {
9488
9499
  applyColumnSorter: T,
9489
9500
  columnContext: P,
9490
- updateColumnRenderContext: R
9501
+ updateColumnRenderContext: E
9491
9502
  } = V;
9492
9503
  T(f, p);
9493
- const E = vn(e, P), N = Mt(e, a), $ = Pt(), G = Dt(e, N, $), j = Rt(e, N, S, a, $, G), Y = Vn(e, a, G, j), te = Mn(e, a, G, j), me = Et(e, i, f, B, 0, j, Y, te), {
9494
- getVisualData: Ce
9495
- } = me, z = Qo(P), U = hn(e, P), ge = yn(e, b), {
9496
- sidebarWidth: ce
9497
- } = ge;
9498
- u.value = Ce(0, B.value + 0 - 1);
9499
- const le = bn(e, f, u, P, me, B, 0, ce), {
9500
- onWheel: he,
9504
+ const R = vn(e, P), N = Mt(e, a), $ = Pt(), H = Dt(e, N, $), W = Et(e, N, S, a, $, H), ae = Vn(e, a, H, W), me = Mn(e, a, H, W), X = Rt(e, i, f, B, 0, W, ae, me), {
9505
+ getVisualData: le
9506
+ } = X, G = Qo(P), q = hn(e, P), fe = yn(e, b), {
9507
+ sidebarWidth: re
9508
+ } = fe;
9509
+ u.value = le(0, B.value + 0 - 1);
9510
+ const ue = bn(e, f, u, P, X, B, 0, re), {
9511
+ onWheel: ye,
9501
9512
  dataGridWidth: Be,
9502
- viewPortHeight: be,
9503
- viewPortWidth: se,
9504
- resetScroll: pe
9505
- } = le, Se = Cn(e, P, l, se, E), {
9506
- calculateColumnsSize: fe
9507
- } = Se, ve = wn(), Pe = Sn(l, c, f, ve, le), W = _n(e, t, b, a), de = Fn(e, t, V, f, E, g, le), ye = D(() => ({
9513
+ viewPortHeight: Ce,
9514
+ viewPortWidth: ce,
9515
+ resetScroll: ve
9516
+ } = ue, Se = Cn(e, P, l, ce, R), {
9517
+ calculateColumnsSize: ge
9518
+ } = Se, he = wn(), Pe = Sn(l, c, f, he, ue), L = _n(e, t, b, a), pe = Fn(e, t, V, f, R, g, ue), be = D(() => ({
9508
9519
  "fv-grid": !0,
9509
9520
  "fv-datagrid-strip": e.showStripe
9510
- })), H = D(() => ({
9521
+ })), A = D(() => ({
9511
9522
  "fv-grid-content": !0,
9512
9523
  "fv-grid-content-hover": s.value,
9513
9524
  "fv-grid-wrap-content": _.value
9514
9525
  })), {
9515
- renderGridHeader: ue,
9516
- renderGridColumnResizeOverlay: q
9517
- } = xn(e, l, m, c, V, f, de, Pe, v, ve, Se, E, b, ge, p, le, se, u), {
9518
- renderDataGridPagination: X
9519
- } = Zo(e, t, f, le, w), {
9520
- renderDataGridSidebar: _e
9521
- } = kn(e, W, b, ge, le), {
9526
+ renderGridHeader: de,
9527
+ renderGridColumnResizeOverlay: U
9528
+ } = xn(e, l, m, c, V, f, pe, Pe, v, he, Se, R, b, fe, p, ue, ce, u), {
9529
+ renderDataGridPagination: Y
9530
+ } = Zo(e, t, f, ue, w), {
9531
+ renderDataGridSidebar: Fe
9532
+ } = kn(e, L, b, fe, ue), {
9522
9533
  renderDisableMask: xe
9523
9534
  } = Tn(), {
9524
9535
  renderDataGridSummery: Ve
9525
9536
  } = Jo(e, f, V), {
9526
9537
  renderHorizontalScrollbar: $e
9527
- } = On(e, l, le), {
9538
+ } = On(e, l, ue), {
9528
9539
  renderVerticalScrollbar: Le
9529
- } = In(e, l, le), {
9540
+ } = In(e, l, ue), {
9530
9541
  renderFilterPanel: ze
9531
- } = ei(e, V, f, v, le), {
9542
+ } = ei(e, V, f, v, ue), {
9532
9543
  renderGroupPanel: Ze
9533
- } = ti(e, f, de, g, le);
9544
+ } = ti(e, f, pe, g, ue);
9534
9545
  function Je() {
9535
- var Fe, dt;
9536
- be.value = ((Fe = d.value) == null ? void 0 : Fe.clientHeight) || 0, Be.value = ((dt = l.value) == null ? void 0 : dt.clientWidth) || 0, fe();
9546
+ var _e, dt;
9547
+ Ce.value = ((_e = d.value) == null ? void 0 : _e.clientHeight) || 0, Be.value = ((dt = l.value) == null ? void 0 : dt.clientWidth) || 0, ge();
9537
9548
  }
9538
- Ee(() => {
9539
- l.value && (mt(l.value, Je), fe(), Ue(() => {
9540
- l.value && (Be.value = l.value.clientWidth), d.value && (se.value = d.value.clientWidth, be.value = d.value.clientHeight);
9549
+ Re(() => {
9550
+ l.value && (mt(l.value, Je), ge(), Ue(() => {
9551
+ l.value && (Be.value = l.value.clientWidth), d.value && (ce.value = d.value.clientWidth, Ce.value = d.value.clientHeight);
9541
9552
  })), C.value && y();
9542
9553
  }), ut(() => {
9543
- }), ie(se, () => {
9554
+ }), oe(ce, () => {
9544
9555
  });
9545
9556
  function et() {
9546
- f.insertNewDataItem(), pe();
9557
+ f.insertNewDataItem(), ve();
9547
9558
  }
9548
9559
  function tt() {
9549
- f.insertNewDataItem(u.value.length), pe();
9560
+ f.insertNewDataItem(u.value.length), ve();
9550
9561
  }
9551
- function Xe(Fe) {
9552
- N.onEditingRow(Fe);
9562
+ function Xe(_e) {
9563
+ N.onEditingRow(_e);
9553
9564
  }
9554
- function L(Fe) {
9555
- f.removeDataItem(Fe), pe();
9565
+ function z(_e) {
9566
+ f.removeDataItem(_e), ve();
9556
9567
  }
9557
- function oe(Fe) {
9558
- f.removeDataItemById(Fe), pe();
9568
+ function ne(_e) {
9569
+ f.removeDataItemById(_e), ve();
9559
9570
  }
9560
- function re(Fe) {
9561
- N.acceptEditingRow(Fe);
9571
+ function se(_e) {
9572
+ N.acceptEditingRow(_e);
9562
9573
  }
9563
- function Ie(Fe) {
9564
- N.cancelEditingRow(Fe);
9574
+ function Ie(_e) {
9575
+ N.cancelEditingRow(_e);
9565
9576
  }
9566
- function ae(Fe) {
9567
- Fe && (i.value = Fe, I(i), R(i.value), T(f, p), fe());
9577
+ function ie(_e) {
9578
+ _e && (i.value = _e, I(i), E(i.value), T(f, p), ge());
9568
9579
  }
9569
- function ke(Fe) {
9570
- Fe && (f.load(Fe), u.value = Ce(0, B.value + 0 - 1));
9580
+ function ke(_e) {
9581
+ _e && (f.load(_e), u.value = le(0, B.value + 0 - 1));
9571
9582
  }
9572
- ie([f.startIndex, f.endIndex], ([Fe, dt], [No, jo]) => {
9583
+ oe([f.startIndex, f.endIndex], ([_e, dt], [No, jo]) => {
9573
9584
  var Kt, Xt;
9574
- Fe !== No && ke((Kt = f.originalData) == null ? void 0 : Kt.value), dt !== jo && ke((Xt = f.originalData) == null ? void 0 : Xt.value);
9585
+ _e !== No && ke((Kt = f.originalData) == null ? void 0 : Kt.value), dt !== jo && ke((Xt = f.originalData) == null ? void 0 : Xt.value);
9586
+ }), oe(() => e.data, (_e) => {
9587
+ e.changePolicy === "default" && ke(_e);
9588
+ }, {
9589
+ deep: !0
9575
9590
  });
9576
- function Me(Fe) {
9577
- b.selectItemById(Fe);
9591
+ function Me(_e) {
9592
+ b.selectItemById(_e);
9578
9593
  }
9579
9594
  const Te = {
9580
9595
  addNewDataItem: et,
9581
9596
  addNewDataItemAtLast: tt,
9582
- removeDataItem: L,
9583
- removeDataItemById: oe,
9597
+ removeDataItem: z,
9598
+ removeDataItemById: ne,
9584
9599
  editDataItem: Xe,
9585
- acceptDataItem: re,
9600
+ acceptDataItem: se,
9586
9601
  cancelDataItem: Ie,
9587
9602
  selectItemById: Me,
9588
- updateColumns: ae,
9603
+ updateColumns: ie,
9589
9604
  updateDataSource: ke
9590
9605
  };
9591
9606
  t.expose(Te);
9592
9607
  const Ge = ni(e, t, Te, V, N, u), {
9593
9608
  renderDataArea: We
9594
- } = Vo(e, t, d, m, c, z, U, V, N, g, Ge, W, me, le, u), nt = D(() => !u.value || !u.value.length), {
9609
+ } = Vo(e, t, d, m, c, G, q, V, N, g, Ge, L, X, ue, u), nt = D(() => !u.value || !u.value.length), {
9595
9610
  renderEmpty: Ye
9596
9611
  } = Bn(t);
9597
9612
  return () => h("div", {
9598
9613
  ref: r,
9599
- class: ye.value,
9614
+ class: be.value,
9600
9615
  style: x.value,
9601
- onWheel: he
9602
- }, [ze(), Ze(), ue(), nt.value && Ye(), h("div", {
9616
+ onWheel: ye
9617
+ }, [ze(), Ze(), de(), nt.value && Ye(), h("div", {
9603
9618
  ref: l,
9604
- class: H.value,
9619
+ class: A.value,
9605
9620
  onMouseover: () => {
9606
9621
  s.value = !0;
9607
9622
  },
9608
9623
  onMouseleave: () => {
9609
9624
  s.value = !1;
9610
9625
  }
9611
- }, [_e(u), We(), $e(), Le()]), Ve(), O.value && X(), q(), M.value && xe()]);
9626
+ }, [Fe(u), We(), $e(), Le()]), Ve(), O.value && Y(), U(), M.value && xe()]);
9612
9627
  }
9613
9628
  }), Js = "https://json-schema.org/draft/2020-12/schema", eu = "https://farris-design.gitee.io/check-box.schema.json", tu = "check-box", nu = "A Farris Input Component", ou = "object", iu = {
9614
9629
  id: {
@@ -9748,11 +9763,11 @@ const uu = /* @__PURE__ */ Oe({
9748
9763
  "custom-checkbox": !0
9749
9764
  };
9750
9765
  return _.value && _.value.split(" ").reduce((C, y) => (C[y] = !0, C), S), S;
9751
- }), ie(() => e.modelValue, (S) => {
9766
+ }), oe(() => e.modelValue, (S) => {
9752
9767
  g.value = S;
9753
- }), ie(() => e.indeterminate, (S) => {
9768
+ }), oe(() => e.indeterminate, (S) => {
9754
9769
  v.value = S;
9755
- }), Ee(() => {
9770
+ }), Re(() => {
9756
9771
  }), () => {
9757
9772
  var S, C, y, w, O, f;
9758
9773
  return h(Ke, null, [r.value && h("div", {
@@ -9825,7 +9840,7 @@ const uu = /* @__PURE__ */ Oe({
9825
9840
  role: "alert",
9826
9841
  "data-noattach": "true",
9827
9842
  "data-position": "0"
9828
- }, [Re("拖拽组件到这里")]);
9843
+ }, [Ee("拖拽组件到这里")]);
9829
9844
  }
9830
9845
  }), yt = F(0);
9831
9846
  function pu(e, t) {
@@ -9879,24 +9894,24 @@ const _t = /* @__PURE__ */ Oe({
9879
9894
  "can-move": o.value,
9880
9895
  "d-none": c.value && c.value.classList.contains("d-none")
9881
9896
  };
9882
- return T[`farris-component-${r.value.type}`] = !0, p && p.split(" ").reduce((P, R) => (P[R] = !0, P), T), m.value && m.value.split(" ").reduce((P, R) => (P[R] = !0, P), T), T;
9897
+ return T[`farris-component-${r.value.type}`] = !0, p && p.split(" ").reduce((P, E) => (P[E] = !0, P), T), m.value && m.value.split(" ").reduce((P, E) => (P[E] = !0, P), T), T;
9883
9898
  }), C = D(() => {
9884
9899
  const p = {}, T = e.modelValue.appearance && e.modelValue.appearance.style || "";
9885
- return T && T.split(";").reduce((P, R) => {
9886
- const [E, N] = R.split(":");
9887
- return P[E] = N, P;
9888
- }, p), d.value && d.value.split(";").reduce((P, R) => {
9889
- const [E, N] = R.split(":");
9890
- return E && (P[E] = N), P;
9900
+ return T && T.split(";").reduce((P, E) => {
9901
+ const [R, N] = E.split(":");
9902
+ return P[R] = N, P;
9903
+ }, p), d.value && d.value.split(";").reduce((P, E) => {
9904
+ const [R, N] = E.split(":");
9905
+ return R && (P[R] = N), P;
9891
9906
  }, p), p;
9892
9907
  });
9893
9908
  function y(p, T) {
9894
- var P, R, E;
9909
+ var P, E, R;
9895
9910
  if (p && (p.preventDefault(), p.stopPropagation()), s.value.triggerBelongedComponentToDeleteWhenDeleted) {
9896
9911
  const N = s.value.getBelongedComponentInstance(s);
9897
9912
  if (N && N.parent) {
9898
- const $ = F(N == null ? void 0 : N.parent), G = $.value.contents.findIndex((j) => j.id === N.schema.id);
9899
- (R = (P = $.value) == null ? void 0 : P.contents) == null || R.splice(G, 1), (E = $.value) == null || E.updateDragAndDropRules(), yt.value++;
9913
+ const $ = F(N == null ? void 0 : N.parent), H = $.value.contents.findIndex((W) => W.id === N.schema.id);
9914
+ (E = (P = $.value) == null ? void 0 : P.contents) == null || E.splice(H, 1), (R = $.value) == null || R.updateDragAndDropRules(), yt.value++;
9900
9915
  }
9901
9916
  return;
9902
9917
  }
@@ -9945,46 +9960,46 @@ const _t = /* @__PURE__ */ Oe({
9945
9960
  "data-noattach": "true"
9946
9961
  }, [h("div", null, [w(p), O(), f()])]);
9947
9962
  }
9948
- function M(p, T, P, R) {
9949
- t.emit("selectionChange", p, T, P, R);
9963
+ function M(p, T, P, E) {
9964
+ t.emit("selectionChange", p, T, P, E);
9950
9965
  }
9951
9966
  function B(p) {
9952
9967
  let T;
9953
- const P = p.type, R = ss[P], E = us[P], N = E ? E(p) : {};
9968
+ const P = p.type, E = ss[P], R = us[P], N = R ? R(p) : {};
9954
9969
  N.customClass = e.ignore ? N.customClass : "", N.componentId = l.value;
9955
9970
  const $ = p.contents && p.contents.length === 0;
9956
- return p.contents && !!p.contents.length && R ? h(R, ot({
9971
+ return p.contents && !!p.contents.length && E ? h(E, ot({
9957
9972
  ref: s
9958
- }, N), gu(T = p.contents.map((j) => h(_t, {
9959
- key: j.id,
9960
- modelValue: j,
9961
- "onUpdate:modelValue": (Y) => j = Y,
9973
+ }, N), gu(T = p.contents.map((W) => h(_t, {
9974
+ key: W.id,
9975
+ modelValue: W,
9976
+ "onUpdate:modelValue": (ae) => W = ae,
9962
9977
  componentId: l.value,
9963
9978
  onSelectionChange: M
9964
9979
  }, null))) ? T : {
9965
9980
  default: () => [T]
9966
- }) : R ? $ ? h(R, ot({
9981
+ }) : E ? $ ? h(E, ot({
9967
9982
  ref: s
9968
9983
  }, N), {
9969
9984
  default: () => [h(fu, null, null)]
9970
- }) : h(R, ot({
9985
+ }) : h(E, ot({
9971
9986
  ref: s
9972
9987
  }, N), null) : h("div", null, null);
9973
9988
  }
9974
9989
  function x(p) {
9975
9990
  if (p.type === "component-ref") {
9976
- let P = v == null ? void 0 : v.getFormSchema().module.components.find((R) => R.id === p.component);
9991
+ let P = v == null ? void 0 : v.getFormSchema().module.components.find((E) => E.id === p.component);
9977
9992
  if (P)
9978
9993
  return h(_t, {
9979
9994
  key: P.id,
9980
9995
  modelValue: P,
9981
- "onUpdate:modelValue": (R) => P = R,
9996
+ "onUpdate:modelValue": (E) => P = E,
9982
9997
  componentId: P.id,
9983
9998
  onSelectionChange: M
9984
9999
  }, null);
9985
10000
  }
9986
10001
  }
9987
- ie(() => e.modelValue, (p) => {
10002
+ oe(() => e.modelValue, (p) => {
9988
10003
  r.value = p, n.value = `${p.id}-component`;
9989
10004
  });
9990
10005
  function k(p) {
@@ -9995,7 +10010,7 @@ const _t = /* @__PURE__ */ Oe({
9995
10010
  var p, T;
9996
10011
  (T = (p = r.value) == null ? void 0 : p.contents) != null && T.length && c.value && c.value.addEventListener("scroll", k);
9997
10012
  }
9998
- Ee(() => {
10013
+ Re(() => {
9999
10014
  if (c.value && s.value && s.value.schema) {
10000
10015
  const p = c.value.querySelector(`[data-dragref='${s.value.schema.id}-container']`);
10001
10016
  u && p && u.attachComponents(p, r.value), a.value = s.value.canNested !== void 0 ? s.value.canNested : a.value, i.value = s.value.canDelete !== void 0 ? s.value.canDelete : i.value, o.value = s.value.canMove !== void 0 ? s.value.canMove : o.value, d.value = s.value.styles || "", m.value = s.value.designerClass || "", c.value && (c.value.componentInstance = s, c.value.designItemContext = g);
@@ -10009,9 +10024,9 @@ const _t = /* @__PURE__ */ Oe({
10009
10024
  const T = c.value;
10010
10025
  if (T) {
10011
10026
  const P = document.getElementsByClassName("dgComponentSelected");
10012
- if (!(P && P.length === 1 && P[0] === c.value) && (Array.from(P).forEach((E) => E.classList.remove("dgComponentSelected")), T.classList.add("dgComponentFocused"), t.emit("selectionChange", r.value.type, r.value, l.value, s.value), s.value.getDraggableDesignItemElement)) {
10013
- const E = s.value.getDraggableDesignItemElement(g);
10014
- E && E.value && E.value.classList.add("dgComponentSelected");
10027
+ if (!(P && P.length === 1 && P[0] === c.value) && (Array.from(P).forEach((R) => R.classList.remove("dgComponentSelected")), T.classList.add("dgComponentFocused"), t.emit("selectionChange", r.value.type, r.value, l.value, s.value), s.value.getDraggableDesignItemElement)) {
10028
+ const R = s.value.getDraggableDesignItemElement(g);
10029
+ R && R.value && R.value.classList.add("dgComponentSelected");
10015
10030
  }
10016
10031
  }
10017
10032
  k(p);
@@ -10043,103 +10058,103 @@ function vu(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C, y) {
10043
10058
  } = a, {
10044
10059
  gridHeaderColumnsStyle: T,
10045
10060
  leftFixedGridHeaderColumnsStyle: P,
10046
- rightFixedGridHeaderColumnsStyle: R
10047
- } = S, E = D(() => w.value || B.value || M.value), N = I.value.defaultColumnWidth, $ = 32, G = /* @__PURE__ */ new Map([[0, 0]]);
10048
- function j(se, pe) {
10049
- const Se = G.get(pe) || 0, fe = {
10050
- height: `${se.depth * $}px`,
10051
- left: `${se.left}px`,
10052
- top: `${(se.layer - 1) * $}px`,
10053
- width: `${se.actualWidth}px`
10061
+ rightFixedGridHeaderColumnsStyle: E
10062
+ } = S, R = D(() => w.value || B.value || M.value), N = I.value.defaultColumnWidth, $ = 32, H = /* @__PURE__ */ new Map([[0, 0]]);
10063
+ function W(ce, ve) {
10064
+ const Se = H.get(ve) || 0, ge = {
10065
+ height: `${ce.depth * $}px`,
10066
+ left: `${ce.left}px`,
10067
+ top: `${(ce.layer - 1) * $}px`,
10068
+ width: `${ce.actualWidth}px`
10054
10069
  };
10055
- return I.value.headerDepth > 1 && (fe["line-height"] = `${se.depth * $}px`), G.set(pe + 1, Se + (se.actualWidth || N)), fe;
10070
+ return I.value.headerDepth > 1 && (ge["line-height"] = `${ce.depth * $}px`), H.set(ve + 1, Se + (ce.actualWidth || N)), ge;
10056
10071
  }
10057
- const Y = D(() => ({
10072
+ const ae = D(() => ({
10058
10073
  "fv-grid-header": !0,
10059
10074
  "fv-grid-header-group-columns": I.value.headerDepth > 1
10060
- })), te = D(() => ({
10075
+ })), me = D(() => ({
10061
10076
  height: `${I.value.headerDepth * $}px`
10062
10077
  }));
10063
- function me(se, pe, Se, fe) {
10064
- var ve;
10065
- (ve = e == null ? void 0 : e.setupContext) == null || ve.emit("selectionChange", se, pe, Se, fe);
10078
+ function X(ce, ve, Se, ge) {
10079
+ var he;
10080
+ (he = e == null ? void 0 : e.setupContext) == null || he.emit("selectionChange", ce, ve, Se, ge);
10066
10081
  }
10067
- function Ce(se, pe, Se) {
10068
- const fe = se.column;
10082
+ function le(ce, ve, Se) {
10083
+ const ge = ce.column;
10069
10084
  return h("div", {
10070
10085
  class: "fv-grid-header-cell",
10071
- style: j(se, Se)
10086
+ style: W(ce, Se)
10072
10087
  }, [h(_t, {
10073
- modelValue: fe,
10074
- "onUpdate:modelValue": (ve) => fe = ve,
10088
+ modelValue: ge,
10089
+ "onUpdate:modelValue": (he) => ge = he,
10075
10090
  canAdd: !1,
10076
10091
  canDelete: !1,
10077
10092
  canMove: !1,
10078
- key: fe.id,
10093
+ key: ge.id,
10079
10094
  type: "data-grid-column",
10080
10095
  componentId: t.componentId,
10081
- onSelectionChange: me
10096
+ onSelectionChange: X
10082
10097
  }, null)]);
10083
10098
  }
10084
- function z(se) {
10085
- return se.map((pe, Se) => {
10086
- const fe = [];
10087
- if (fe.push(Ce(pe, se, Se)), pe.children && pe.children.length) {
10088
- const ve = z(pe.children);
10089
- fe.push(...ve);
10099
+ function G(ce) {
10100
+ return ce.map((ve, Se) => {
10101
+ const ge = [];
10102
+ if (ge.push(le(ve, ce, Se)), ve.children && ve.children.length) {
10103
+ const he = G(ve.children);
10104
+ ge.push(...he);
10090
10105
  }
10091
- return fe;
10106
+ return ge;
10092
10107
  });
10093
10108
  }
10094
- function U() {
10109
+ function q() {
10095
10110
  return h("div", {
10096
10111
  class: "fv-grid-header-left-fixed"
10097
10112
  }, [h("div", {
10098
10113
  class: "fv-grid-header-columns",
10099
10114
  style: P.value
10100
- }, [z(I.value.leftHeaderColumns)])]);
10115
+ }, [G(I.value.leftHeaderColumns)])]);
10101
10116
  }
10102
- function ge() {
10117
+ function fe() {
10103
10118
  return h("div", {
10104
10119
  class: "fv-grid-header-right-fixed"
10105
10120
  }, [h("div", {
10106
10121
  class: "fv-grid-header-columns",
10107
- style: R.value
10108
- }, [z(I.value.rightHeaderColumns)])]);
10122
+ style: E.value
10123
+ }, [G(I.value.rightHeaderColumns)])]);
10109
10124
  }
10110
- const ce = F(y.value.length === b.value.length);
10111
- function le(se) {
10112
- ce.value ? O() : f();
10125
+ const re = F(y.value.length === b.value.length);
10126
+ function ue(ce) {
10127
+ re.value ? O() : f();
10113
10128
  }
10114
- const he = D(() => b.value.length > 0 && y.value.length !== b.value.length);
10129
+ const ye = D(() => b.value.length > 0 && y.value.length !== b.value.length);
10115
10130
  function Be() {
10116
10131
  return h("div", {
10117
10132
  class: "fv-grid-header-corner d-flex",
10118
10133
  style: k.value
10119
10134
  }, [w.value && h(uu, {
10120
10135
  id: "checkbox_for_select_all",
10121
- indeterminate: he.value,
10122
- modelValue: ce.value,
10123
- "onUpdate:modelValue": (se) => ce.value = se,
10124
- onChange: le,
10136
+ indeterminate: ye.value,
10137
+ modelValue: re.value,
10138
+ "onUpdate:modelValue": (ce) => re.value = ce,
10139
+ onChange: ue,
10125
10140
  style: "margin-left:8px"
10126
10141
  }, null), M.value && h("div", {
10127
10142
  style: "line-height:18px"
10128
10143
  }, [x.value])]);
10129
10144
  }
10130
- function be() {
10145
+ function Ce() {
10131
10146
  return h("div", {
10132
- class: Y.value,
10133
- style: te.value
10134
- }, [E.value && Be(), V.value && U(), h("div", {
10147
+ class: ae.value,
10148
+ style: me.value
10149
+ }, [R.value && Be(), V.value && q(), h("div", {
10135
10150
  class: "fv-grid-header-primary"
10136
10151
  }, [h("div", {
10137
10152
  class: "fv-grid-header-columns",
10138
10153
  style: T.value
10139
- }, [z(I.value.primaryHeaderColumns)])]), p.value && ge()]);
10154
+ }, [G(I.value.primaryHeaderColumns)])]), p.value && fe()]);
10140
10155
  }
10141
10156
  return {
10142
- renderGridHeader: be
10157
+ renderGridHeader: Ce
10143
10158
  };
10144
10159
  }
10145
10160
  class hu extends gt {
@@ -10312,7 +10327,7 @@ const Ft = /* @__PURE__ */ Oe({
10312
10327
  setup(e, t) {
10313
10328
  var Ye;
10314
10329
  const n = F(), o = je("designer-host-service"), i = je("design-item-context"), a = yu(i, o), r = Wt(n, i, a);
10315
- r.value.styles = "display:flex;flex:1;", Ee(() => {
10330
+ r.value.styles = "display:flex;flex:1;", Re(() => {
10316
10331
  n.value.componentInstance = r;
10317
10332
  }), t.expose(r.value);
10318
10333
  const l = F(e.columns), d = 20, m = Co(e), c = 0, u = F(), s = F(), _ = F(), g = F(), v = F(e.showStripe), S = F([]), C = F(!1), y = F(((Ye = e.rowOption) == null ? void 0 : Ye.wrapContent) || !1), w = qt(e, m), O = zt(), f = mo(e), b = xo(e), {
@@ -10323,114 +10338,114 @@ const Ft = /* @__PURE__ */ Oe({
10323
10338
  applyCommands: T
10324
10339
  } = p;
10325
10340
  T(l);
10326
- const P = qn(e), R = Fo(), {
10327
- applyColumnSorter: E,
10341
+ const P = qn(e), E = Fo(), {
10342
+ applyColumnSorter: R,
10328
10343
  columnContext: N,
10329
10344
  updateColumnRenderContext: $
10330
10345
  } = P;
10331
- E(B, R);
10332
- const G = Qn(e, N), j = bo(e, m), Y = Ht(), te = ho(e, j, Y), me = yo(e, j, f, m, Y, te), Ce = Os(e, m, te, me), z = Is(e, m, te, me), U = vo(e, l, B, I, c, me, Ce, z), {
10333
- getVisualData: ge
10334
- } = U, ce = Rs(N), le = At(e, N), he = _o(e, x), {
10346
+ R(B, E);
10347
+ const H = Qn(e, N), W = bo(e, m), ae = Ht(), me = ho(e, W, ae), X = yo(e, W, f, m, ae, me), le = Os(e, m, me, X), G = Is(e, m, me, X), q = vo(e, l, B, I, c, X, le, G), {
10348
+ getVisualData: fe
10349
+ } = q, re = Es(N), ue = At(e, N), ye = _o(e, x), {
10335
10350
  sidebarWidth: Be
10336
- } = he;
10337
- S.value = ge(0, I.value + c - 1);
10338
- const be = go(e, B, S, N, U, I, c, Be), {
10339
- onWheel: se,
10340
- dataGridWidth: pe,
10351
+ } = ye;
10352
+ S.value = fe(0, I.value + c - 1);
10353
+ const Ce = go(e, B, S, N, q, I, c, Be), {
10354
+ onWheel: ce,
10355
+ dataGridWidth: ve,
10341
10356
  viewPortHeight: Se,
10342
- viewPortWidth: fe,
10343
- resetScroll: ve
10344
- } = be, Pe = Yn(e, N, u, fe, G), {
10345
- calculateColumnsSize: W
10346
- } = Pe, de = po(), ye = Un(u, g, B, de, be), H = wo(e, t, x, m), ue = Xn(e, t, P, B, G, w, be), q = D(() => ({
10357
+ viewPortWidth: ge,
10358
+ resetScroll: he
10359
+ } = Ce, Pe = Yn(e, N, u, ge, H), {
10360
+ calculateColumnsSize: L
10361
+ } = Pe, pe = po(), be = Un(u, g, B, pe, Ce), A = wo(e, t, x, m), de = Xn(e, t, P, B, H, w, Ce), U = D(() => ({
10347
10362
  "fv-grid": !0,
10348
10363
  "fv-datagrid-strip": v.value
10349
- })), X = D(() => ({
10364
+ })), Y = D(() => ({
10350
10365
  "fv-grid-content": !0,
10351
10366
  "fv-grid-content-hover": C.value,
10352
10367
  "fv-grid-wrap-content": y.value
10353
10368
  })), {
10354
- renderGridHeader: _e
10355
- } = vu(i, e, u, _, g, P, B, ue, ye, O, de, Pe, G, x, he, R, be, fe, S), {
10369
+ renderGridHeader: Fe
10370
+ } = vu(i, e, u, _, g, P, B, de, be, O, pe, Pe, H, x, ye, E, Ce, ge, S), {
10356
10371
  renderDataGridPagination: xe
10357
- } = $r(e, t, B, be, b), {
10372
+ } = $r(e, t, B, Ce, b), {
10358
10373
  renderDataGridSidebar: Ve
10359
- } = Wn(e, H, x, he, be), {
10374
+ } = Wn(e, A, x, ye, Ce), {
10360
10375
  renderDisableMask: $e
10361
10376
  } = Br(), {
10362
10377
  renderDataGridSummery: Le
10363
10378
  } = Nr(e, B, P), {
10364
10379
  renderHorizontalScrollbar: ze
10365
- } = Gn(e, u, be), {
10380
+ } = Gn(e, u, Ce), {
10366
10381
  renderVerticalScrollbar: Ze
10367
- } = Ln(e, u, be), {
10382
+ } = Ln(e, u, Ce), {
10368
10383
  renderFilterPanel: Je
10369
- } = Vr(e, P, B, O, be), {
10384
+ } = Vr(e, P, B, O, Ce), {
10370
10385
  renderGroupPanel: et
10371
- } = Mr(e, B, ue, w, be);
10386
+ } = Mr(e, B, de, w, Ce);
10372
10387
  function tt() {
10373
- var we, Fe;
10374
- Se.value = ((we = s.value) == null ? void 0 : we.clientHeight) || 0, pe.value = ((Fe = u.value) == null ? void 0 : Fe.clientWidth) || 0, W();
10388
+ var we, _e;
10389
+ Se.value = ((we = s.value) == null ? void 0 : we.clientHeight) || 0, ve.value = ((_e = u.value) == null ? void 0 : _e.clientWidth) || 0, L();
10375
10390
  }
10376
- Ee(() => {
10377
- u.value && (mt(u.value, tt), W(), Ue(() => {
10378
- u.value && (pe.value = u.value.clientWidth), s.value && (fe.value = s.value.clientWidth, Se.value = s.value.clientHeight);
10391
+ Re(() => {
10392
+ u.value && (mt(u.value, tt), L(), Ue(() => {
10393
+ u.value && (ve.value = u.value.clientWidth), s.value && (ge.value = s.value.clientWidth, Se.value = s.value.clientHeight);
10379
10394
  }));
10380
10395
  }), ut(() => {
10381
- }), ie(fe, () => {
10382
- u.value && W();
10383
- }), ie(() => e.columns, (we) => {
10396
+ }), oe(ge, () => {
10397
+ u.value && L();
10398
+ }), oe(() => e.columns, (we) => {
10384
10399
  Me(we);
10385
10400
  });
10386
10401
  function Xe() {
10387
- B.insertNewDataItem(), ve();
10402
+ B.insertNewDataItem(), he();
10388
10403
  }
10389
- function L() {
10390
- B.insertNewDataItem(S.value.length), ve();
10404
+ function z() {
10405
+ B.insertNewDataItem(S.value.length), he();
10391
10406
  }
10392
- function oe(we) {
10393
- j.onEditingRow(we);
10407
+ function ne(we) {
10408
+ W.onEditingRow(we);
10394
10409
  }
10395
- function re(we) {
10396
- B.removeDataItem(we), ve();
10410
+ function se(we) {
10411
+ B.removeDataItem(we), he();
10397
10412
  }
10398
10413
  function Ie(we) {
10399
- B.removeDataItemById(we), ve();
10414
+ B.removeDataItemById(we), he();
10400
10415
  }
10401
- function ae(we) {
10402
- j.acceptEditingRow(we);
10416
+ function ie(we) {
10417
+ W.acceptEditingRow(we);
10403
10418
  }
10404
10419
  function ke(we) {
10405
- j.cancelEditingRow(we);
10420
+ W.cancelEditingRow(we);
10406
10421
  }
10407
10422
  function Me(we) {
10408
- we && (l.value = we, T(l), $(l.value), E(B, R), W());
10423
+ we && (l.value = we, T(l), $(l.value), R(B, E), L());
10409
10424
  }
10410
10425
  function Te(we) {
10411
- we && (B.load(we), S.value = ge(0, I.value + c - 1));
10426
+ we && (B.load(we), S.value = fe(0, I.value + c - 1));
10412
10427
  }
10413
10428
  const We = Bs(e, t, {
10414
10429
  addNewDataItem: Xe,
10415
- addNewDataItemAtLast: L,
10416
- removeDataItem: re,
10430
+ addNewDataItemAtLast: z,
10431
+ removeDataItem: se,
10417
10432
  removeDataItemById: Ie,
10418
- editDataItem: oe,
10419
- acceptDataItem: ae,
10433
+ editDataItem: ne,
10434
+ acceptDataItem: ie,
10420
10435
  cancelDataItem: ke,
10421
10436
  updateColumns: Me,
10422
10437
  updateDataSource: Te
10423
- }, P, j, S), {
10438
+ }, P, W, S), {
10424
10439
  renderDataArea: nt
10425
- } = Vo(e, t, s, _, g, ce, le, P, j, w, We, H, U, be, S);
10440
+ } = Vo(e, t, s, _, g, re, ue, P, W, w, We, A, q, Ce, S);
10426
10441
  return () => h("div", {
10427
10442
  ref: n,
10428
- class: q.value,
10443
+ class: U.value,
10429
10444
  style: V.value,
10430
- onWheel: se
10431
- }, [Je(), et(), _e(), h("div", {
10445
+ onWheel: ce
10446
+ }, [Je(), et(), Fe(), h("div", {
10432
10447
  ref: u,
10433
- class: X.value,
10448
+ class: Y.value,
10434
10449
  onMouseover: () => {
10435
10450
  C.value = !0;
10436
10451
  },
@@ -10509,7 +10524,7 @@ const Bu = "transfer", Vu = "A Farris Component", Mu = "object", Pu = {
10509
10524
  description: Vu,
10510
10525
  type: Mu,
10511
10526
  categories: Pu
10512
- }, Ru = "https://json-schema.org/draft/2020-12/schema", Eu = "https://farris-design.gitee.io/transfer.schema.json", $u = "transfer", Nu = "A Farris Component", ju = "object", Au = {
10527
+ }, Eu = "https://json-schema.org/draft/2020-12/schema", Ru = "https://farris-design.gitee.io/transfer.schema.json", $u = "transfer", Nu = "A Farris Component", ju = "object", Au = {
10513
10528
  id: {
10514
10529
  description: "The unique identifier for transfer",
10515
10530
  type: "string"
@@ -10575,8 +10590,8 @@ const Bu = "transfer", Vu = "A Farris Component", Mu = "object", Pu = {
10575
10590
  "id",
10576
10591
  "type"
10577
10592
  ], Gu = {
10578
- $schema: Ru,
10579
- $id: Eu,
10593
+ $schema: Eu,
10594
+ $id: Ru,
10580
10595
  title: $u,
10581
10596
  description: Nu,
10582
10597
  type: ju,
@@ -10702,7 +10717,7 @@ const zu = "https://json-schema.org/draft/2020-12/schema", qu = "https://farris-
10702
10717
  description: ec,
10703
10718
  type: tc,
10704
10719
  categories: nc
10705
- }, Ro = {
10720
+ }, Eo = {
10706
10721
  /** 列集合 */
10707
10722
  columns: {
10708
10723
  type: Array,
@@ -10742,7 +10757,7 @@ const zu = "https://json-schema.org/draft/2020-12/schema", qu = "https://farris-
10742
10757
  keepOrder: { type: Boolean, default: !1 },
10743
10758
  disableField: { type: String, default: "disabled" }
10744
10759
  };
10745
- Ae(Ro, Zu, Wu, Lu, oc);
10760
+ Ae(Eo, Zu, Wu, Lu, oc);
10746
10761
  function ic(e, t) {
10747
10762
  function n(a) {
10748
10763
  const r = [];
@@ -10807,7 +10822,9 @@ function en(e, t, n, o, i, a, r, l, d, m) {
10807
10822
  disabled: B[g.value],
10808
10823
  checked: B.checked,
10809
10824
  "onUpdate:checked": (I) => B.checked = I,
10810
- onChange: (I) => O(B, x)
10825
+ onChange: (I) => {
10826
+ O(B, x, !I.checked);
10827
+ }
10811
10828
  }, null)]), h("div", {
10812
10829
  class: "f-list-content"
10813
10830
  }, [h("div", {
@@ -10857,7 +10874,7 @@ function ac(e, t, n, o, i, a, r, l, d, m) {
10857
10874
  disabled: f[u.value] || !f.checked,
10858
10875
  checked: f.checked,
10859
10876
  "onUpdate:checked": (B) => f.checked = B,
10860
- onChange: (B) => C(f, b)
10877
+ onChange: (B) => C(f, b, !B.checked)
10861
10878
  }, null)]), h("div", {
10862
10879
  class: "f-list-content"
10863
10880
  }, [w(f, b, M)])]);
@@ -10900,30 +10917,30 @@ function rc(e, t, n, o, i, a, r, l, d, m) {
10900
10917
  class: S(p, T),
10901
10918
  id: v(p, T),
10902
10919
  key: v(p, T),
10903
- onClick: (R) => y(R, p, T),
10904
- onMouseenter: (R) => s(R, p, T),
10905
- onMouseover: (R) => _(R, p, T),
10906
- onMouseout: (R) => g(R, p, T),
10920
+ onClick: (E) => y(E, p, T),
10921
+ onMouseenter: (E) => s(E, p, T),
10922
+ onMouseover: (E) => _(E, p, T),
10923
+ onMouseout: (E) => g(E, p, T),
10907
10924
  draggable: "true",
10908
- onDragstart: (R) => w(R, p, T),
10909
- onDragenter: (R) => O(R, T),
10910
- onDragend: (R) => b(R, p),
10911
- onDragover: (R) => f(R, T)
10925
+ onDragstart: (E) => w(E, p, T),
10926
+ onDragenter: (E) => O(E, T),
10927
+ onDragend: (E) => b(E, p),
10928
+ onDragover: (E) => f(E, T)
10912
10929
  }, [c.value && h("div", {
10913
10930
  class: "f-list-select",
10914
- onClick: (R) => R.stopPropagation()
10931
+ onClick: (E) => E.stopPropagation()
10915
10932
  }, [h(st, {
10916
10933
  id: "list-" + v(p, T),
10917
10934
  customClass: "listview-checkbox",
10918
10935
  disabled: p[u.value] || !p.checked,
10919
10936
  checked: p.checked,
10920
- "onUpdate:checked": (R) => p.checked = R,
10921
- onChange: (R) => C(p, T)
10937
+ "onUpdate:checked": (E) => p.checked = E,
10938
+ onChange: (E) => C(p, T, !E.checked)
10922
10939
  }, null)]), h("div", {
10923
10940
  class: "f-list-content"
10924
10941
  }, [I(p)]), h("div", {
10925
10942
  class: "f-list-remove",
10926
- onClick: (R) => M(T)
10943
+ onClick: (E) => M(T)
10927
10944
  }, [h("div", {
10928
10945
  class: "f-list-remove-icon"
10929
10946
  }, [h("i", {
@@ -11045,14 +11062,14 @@ function dc(e, t, n, o, i, a) {
11045
11062
  "f-listview-hover": !s.value && V === v.value,
11046
11063
  moving: !!I.moving
11047
11064
  };
11048
- return m.value.split(" ").reduce((P, R) => (P[R] = !0, P), p), p;
11065
+ return m.value.split(" ").reduce((P, E) => (P[E] = !0, P), p), p;
11049
11066
  }
11050
11067
  function f(I, V) {
11051
11068
  return I.raw[r.value] || "";
11052
11069
  }
11053
11070
  const b = D(() => !c.value);
11054
- function M(I, V) {
11055
- !I.checked || I.raw[l.value] || (b.value && (g.value = I.raw[r.value]), y(I));
11071
+ function M(I, V, p) {
11072
+ I.checked = p, !I.raw[l.value] && (b.value && (g.value = I.raw[r.value]), y(I));
11056
11073
  }
11057
11074
  const B = D(() => c.value && u.value === "OnCheckClearByClick"), x = D(() => !c.value || c.value && (u.value === "OnCheckAndClick" || u.value === "OnClick"));
11058
11075
  function k(I, V, p) {
@@ -11118,7 +11135,7 @@ function tn(e, t, n) {
11118
11135
  function d(s) {
11119
11136
  a.value = "";
11120
11137
  }
11121
- ie(a, (s) => {
11138
+ oe(a, (s) => {
11122
11139
  n.search(s);
11123
11140
  });
11124
11141
  const m = D(() => {
@@ -11168,19 +11185,19 @@ function tn(e, t, n) {
11168
11185
  }
11169
11186
  const nn = /* @__PURE__ */ Oe({
11170
11187
  name: "FListView",
11171
- props: Ro,
11188
+ props: Eo,
11172
11189
  emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
11173
11190
  setup(e, t) {
11174
- const n = F(), o = F(!0), i = F(!1), a = F([]), r = 0, l = F(e.columns), d = kt(e), m = Ot(e), c = Tt(e, d), u = It(e), s = Bt(e, /* @__PURE__ */ new Map(), m, d, u), _ = Vt(e, s, d, a, t), g = ic(e, n), v = D(() => s.dataView.value.length), S = Mt(e, d), C = Pt(), y = Dt(e, {}, C), w = Rt(e, S, m, d, C, y), O = Vn(e, d, y, w), f = Mn(e, d, y, w), b = Et(e, l, s, v, r, w, O, f), {
11191
+ const n = F(), o = F(!0), i = F(!1), a = F([]), r = 0, l = F(e.columns), d = kt(e), m = Ot(e), c = Tt(e, d), u = It(e), s = Bt(e, /* @__PURE__ */ new Map(), m, d, u), _ = Vt(e, s, d, a, t), g = ic(e, n), v = D(() => s.dataView.value.length), S = Mt(e, d), C = Pt(), y = Dt(e, {}, C), w = Et(e, S, m, d, C, y), O = Vn(e, d, y, w), f = Mn(e, d, y, w), b = Rt(e, l, s, v, r, w, O, f), {
11175
11192
  getVisualData: M
11176
11193
  } = b;
11177
11194
  a.value = M(0, v.value + r - 1);
11178
11195
  const B = D(() => {
11179
- const E = {
11196
+ const R = {
11180
11197
  "f-list-view": !0,
11181
11198
  "f-list-view-multiple": e.multiSelect
11182
11199
  };
11183
- return e.size !== "default" && (E[`${e.size}-item`] = !0), E;
11200
+ return e.size !== "default" && (R[`${e.size}-item`] = !0), R;
11184
11201
  }), x = D(() => !!t.slots.footer || o.value);
11185
11202
  function k() {
11186
11203
  return e.header === "SearchBar" ? tn : e.header === "ContentHeader" ? pc : tn;
@@ -11190,22 +11207,22 @@ const nn = /* @__PURE__ */ Oe({
11190
11207
  } = I(e, t, g), {
11191
11208
  renderListArea: p
11192
11209
  } = fc(e, t, a, s, c, _, b);
11193
- function T(E) {
11194
- g.search(E);
11210
+ function T(R) {
11211
+ g.search(R);
11195
11212
  }
11196
- function P(E) {
11197
- E && (s.load(E), a.value = M(0, v.value + r - 1));
11213
+ function P(R) {
11214
+ R && (s.load(R), a.value = M(0, v.value + r - 1));
11198
11215
  }
11199
11216
  t.expose({
11200
11217
  search: T,
11201
11218
  updateDataSource: P
11202
11219
  });
11203
- function R(E) {
11204
- e.multiSelect && (E.preventDefault(), E.stopPropagation());
11220
+ function E(R) {
11221
+ e.multiSelect && (R.preventDefault(), R.stopPropagation());
11205
11222
  }
11206
11223
  return () => h("div", {
11207
11224
  class: B.value,
11208
- onClick: R
11225
+ onClick: E
11209
11226
  }, [V(), h("div", {
11210
11227
  ref: n,
11211
11228
  class: "f-list-view-content",
@@ -11258,7 +11275,7 @@ const nn = /* @__PURE__ */ Oe({
11258
11275
  "selection-values": m.value,
11259
11276
  onSelectionChange: v
11260
11277
  }, {
11261
- default: () => [Re(" ")]
11278
+ default: () => [Ee(" ")]
11262
11279
  });
11263
11280
  }
11264
11281
  function C() {
@@ -11281,7 +11298,7 @@ const nn = /* @__PURE__ */ Oe({
11281
11298
  I && (I.checked = !1, c.delete(k)), t.emit("change", d.value);
11282
11299
  }
11283
11300
  }
11284
- ie(d, (x) => {
11301
+ oe(d, (x) => {
11285
11302
  u.value.updateDataSource(x);
11286
11303
  });
11287
11304
  function O(x) {
@@ -11340,7 +11357,7 @@ const nn = /* @__PURE__ */ Oe({
11340
11357
  let m = [];
11341
11358
  const c = F([]);
11342
11359
  let u = [];
11343
- Ee(() => {
11360
+ Re(() => {
11344
11361
  c.value = o.getAllFields2TreeByVMId(n.value), s();
11345
11362
  });
11346
11363
  function s() {
@@ -11549,7 +11566,7 @@ const nn = /* @__PURE__ */ Oe({
11549
11566
  description: bc,
11550
11567
  type: Cc,
11551
11568
  properties: wc
11552
- }, Eo = {
11569
+ }, Ro = {
11553
11570
  id: { type: String, default: "" },
11554
11571
  type: { type: String, default: "" },
11555
11572
  /** 允许分组,默认为 true */
@@ -11611,7 +11628,7 @@ const nn = /* @__PURE__ */ Oe({
11611
11628
  formatter: { type: Function, default: () => {
11612
11629
  } },
11613
11630
  componentId: { type: String, default: "" }
11614
- }, _c = Ae(Eo, Sc, js, Ws);
11631
+ }, _c = Ae(Ro, Sc, js, Ws);
11615
11632
  class Fc extends He {
11616
11633
  constructor(t, n) {
11617
11634
  super(t, n);
@@ -11848,7 +11865,7 @@ const at = {
11848
11865
  }
11849
11866
  }
11850
11867
  }, Dc = Symbol("schema_repository_token");
11851
- class Rc extends gt {
11868
+ class Ec extends gt {
11852
11869
  getPropertyConfig(t) {
11853
11870
  const n = this.getBasicPropConfig(t), o = this.getAppearanceConfig(), i = this.getBehaviorConfig(t), a = this.getLookupConfig(t.editor);
11854
11871
  return {
@@ -12039,7 +12056,7 @@ class Rc extends gt {
12039
12056
  };
12040
12057
  }
12041
12058
  }
12042
- class Ec extends He {
12059
+ class Rc extends He {
12043
12060
  constructor(t, n) {
12044
12061
  super(t, n);
12045
12062
  }
@@ -12307,10 +12324,10 @@ class Hc extends gt {
12307
12324
  a = new Ic(this.componentId, this.designerHostService);
12308
12325
  return;
12309
12326
  case "lookup":
12310
- a = new Rc(this.componentId, this.designerHostService);
12327
+ a = new Ec(this.componentId, this.designerHostService);
12311
12328
  return;
12312
12329
  case "number-range":
12313
- a = new Ec(this.componentId, this.designerHostService);
12330
+ a = new Rc(this.componentId, this.designerHostService);
12314
12331
  return;
12315
12332
  case "number-spinner":
12316
12333
  a = new $c(this.componentId, this.designerHostService);
@@ -12405,7 +12422,7 @@ class Hc extends gt {
12405
12422
  );
12406
12423
  const i = this.formSchemaUtils.getComponentByViewModelId(this.viewModelId), a = this.formSchemaUtils.selectNode(
12407
12424
  i,
12408
- (m) => m.type === ne["data-grid"].type || m.type === ne["tree-grid"].type
12425
+ (m) => m.type === te["data-grid"].type || m.type === te["tree-grid"].type
12409
12426
  );
12410
12427
  if (!a)
12411
12428
  return;
@@ -12454,11 +12471,11 @@ function Gc(e, t) {
12454
12471
  }
12455
12472
  const Wc = /* @__PURE__ */ Oe({
12456
12473
  name: "FDataGridColumnDesign",
12457
- props: Eo,
12474
+ props: Ro,
12458
12475
  emits: [],
12459
12476
  setup(e, t) {
12460
12477
  const n = F(), o = je("designer-host-service"), i = je("design-item-context"), a = Gc(i, o), r = Wt(n, i, a);
12461
- Ee(() => {
12478
+ Re(() => {
12462
12479
  n.value.componentInstance = r;
12463
12480
  }), t.expose(r.value);
12464
12481
  function l(d) {
@@ -12698,7 +12715,7 @@ const td = Symbol("radioGroupContext"), nd = /* @__PURE__ */ Oe({
12698
12715
  var v;
12699
12716
  return (v = i.value) == null ? void 0 : v.map((S) => S[e.idField]);
12700
12717
  });
12701
- ie(() => e.data, (v) => {
12718
+ oe(() => e.data, (v) => {
12702
12719
  n.value = v, a.value.updateDataSource(v);
12703
12720
  });
12704
12721
  const d = {
@@ -12756,7 +12773,7 @@ const td = Symbol("radioGroupContext"), nd = /* @__PURE__ */ Oe({
12756
12773
  emits: ["selected", "bindingTypeChanged"],
12757
12774
  setup(e, t) {
12758
12775
  const n = '<i class="f-icon f-icon-lookup"></i>', o = F(e.bindingData), i = F(e.columns), a = F(e.data), r = F(), l = je(e.repositoryToken);
12759
- ie(() => e.data, (S) => {
12776
+ oe(() => e.data, (S) => {
12760
12777
  a.value = S;
12761
12778
  });
12762
12779
  const d = F("");
@@ -12789,7 +12806,7 @@ const td = Symbol("radioGroupContext"), nd = /* @__PURE__ */ Oe({
12789
12806
  onBindingTypeChange: c
12790
12807
  }, null);
12791
12808
  }
12792
- Ee(() => {
12809
+ Re(() => {
12793
12810
  u();
12794
12811
  });
12795
12812
  const g = {