@farris/ui-vue 1.3.3 → 1.3.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 (73) hide show
  1. package/components/binding-selector/index.esm.js +15 -15
  2. package/components/binding-selector/index.umd.cjs +1 -1
  3. package/components/condition/index.esm.js +108 -107
  4. package/components/condition/index.umd.cjs +1 -1
  5. package/components/data-grid/index.esm.js +4532 -4268
  6. package/components/data-grid/index.umd.cjs +1 -1
  7. package/components/data-view/index.esm.js +2709 -2690
  8. package/components/data-view/index.umd.cjs +1 -1
  9. package/components/designer-canvas/index.esm.js +4795 -4375
  10. package/components/designer-canvas/index.umd.cjs +1 -1
  11. package/components/dynamic-form/index.esm.js +601 -593
  12. package/components/dynamic-form/index.umd.cjs +1 -1
  13. package/components/event-parameter/index.css +1 -0
  14. package/components/event-parameter/index.esm.js +2685 -165
  15. package/components/event-parameter/index.umd.cjs +1 -1
  16. package/components/events-editor/index.css +1 -1
  17. package/components/events-editor/index.esm.js +594 -575
  18. package/components/events-editor/index.umd.cjs +1 -1
  19. package/components/external-container/index.esm.js +772 -772
  20. package/components/external-container/index.umd.cjs +1 -1
  21. package/components/field-selector/index.esm.js +2921 -2902
  22. package/components/field-selector/index.umd.cjs +1 -1
  23. package/components/filter-bar/index.css +1 -1
  24. package/components/filter-bar/index.esm.js +4137 -4050
  25. package/components/filter-bar/index.umd.cjs +1 -1
  26. package/components/flow-canvas/index.esm.js +4569 -4149
  27. package/components/flow-canvas/index.umd.cjs +1 -1
  28. package/components/list-view/index.esm.js +936 -936
  29. package/components/list-view/index.umd.cjs +1 -1
  30. package/components/lookup/index.esm.js +5226 -4962
  31. package/components/lookup/index.umd.cjs +1 -1
  32. package/components/mapping-editor/index.esm.js +4648 -4384
  33. package/components/mapping-editor/index.umd.cjs +1 -1
  34. package/components/property-panel/index.css +1 -1
  35. package/components/query-solution/index.css +1 -1
  36. package/components/query-solution/index.esm.js +6128 -5879
  37. package/components/query-solution/index.umd.cjs +6 -6
  38. package/components/radio-group/index.esm.js +6 -6
  39. package/components/radio-group/index.umd.cjs +1 -1
  40. package/components/schema-selector/index.esm.js +975 -973
  41. package/components/schema-selector/index.umd.cjs +2 -2
  42. package/components/section/index.esm.js +2107 -417
  43. package/components/section/index.umd.cjs +1 -1
  44. package/components/tabs/index.esm.js +577 -575
  45. package/components/tabs/index.umd.cjs +1 -1
  46. package/components/textarea/index.esm.js +84 -79
  47. package/components/textarea/index.umd.cjs +1 -1
  48. package/components/tree-grid/index.esm.js +3307 -3288
  49. package/components/tree-grid/index.umd.cjs +1 -1
  50. package/components/tree-view/index.esm.js +1537 -1533
  51. package/components/tree-view/index.umd.cjs +1 -1
  52. package/farris.all.esm.js +24890 -24173
  53. package/farris.all.umd.cjs +13 -13
  54. package/index.css +1 -1
  55. package/package.json +1 -1
  56. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  57. package/types/data-grid/src/components/data/data-grid-area.component.d.ts +8 -0
  58. package/types/data-grid/src/components/data/data-grid-area.props.d.ts +3 -0
  59. package/types/data-view/composition/types.d.ts +1 -0
  60. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +1 -2
  61. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +14 -3
  62. package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
  63. package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
  64. package/types/event-parameter/src/event-parameter.props.d.ts +4 -4
  65. package/types/events-editor/src/composition/types.d.ts +1 -1
  66. package/types/query-solution/src/composition/types.d.ts +55 -0
  67. package/types/query-solution/src/composition/use-condition.d.ts +19 -0
  68. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +3 -2
  69. package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
  70. package/types/section/index.d.ts +15 -0
  71. package/types/section/src/designer/section-header.design.component.d.ts +4 -0
  72. package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
  73. package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
@@ -1,99 +1,99 @@
1
- var bn = Object.defineProperty;
2
- var Cn = (e, t, n) => t in e ? bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var z = (e, t, n) => Cn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as ae, createVNode as r, computed as P, createTextVNode as re, ref as c, inject as Se, provide as wn, watch as Q, onMounted as me, onBeforeUnmount as Mt, mergeProps as ke, isVNode as _n, Fragment as ye, onUnmounted as pt, Teleport as xn, Transition as Bt, shallowRef as Sn, createApp as Vt, nextTick as st, render as tt, h as kn, cloneVNode as Tn, withModifiers as Fn, withDirectives as Ot, vModelText as En, resolveComponent as In, reactive as ve, resolveDirective as Mn } from "vue";
5
- import { isPlainObject as _t, cloneDeep as Fe } from "lodash-es";
6
- import Bn from "../accordion/index.esm.js";
7
- import Vn from "../avatar/index.esm.js";
8
- import On from "../button-edit/index.esm.js";
9
- import Dn from "../button-group/index.esm.js";
10
- import Nn from "../calendar/index.esm.js";
11
- import Rn from "../capsule/index.esm.js";
12
- import $n, { FCheckBox as mt } from "../checkbox/index.esm.js";
13
- import Pn from "../color-picker/index.esm.js";
1
+ var yn = Object.defineProperty;
2
+ var bn = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var z = (e, t, n) => bn(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as ae, createVNode as r, computed as P, createTextVNode as re, ref as c, inject as ke, provide as Cn, watch as Q, onMounted as me, onBeforeUnmount as It, mergeProps as Te, isVNode as wn, Fragment as ye, onUnmounted as pt, Teleport as _n, Transition as Mt, shallowRef as xn, createApp as Bt, nextTick as st, render as tt, h as Sn, cloneVNode as kn, withModifiers as Tn, withDirectives as Vt, vModelText as Fn, resolveComponent as En, reactive as ve, resolveDirective as In } from "vue";
5
+ import { isPlainObject as wt, cloneDeep as _e } from "lodash-es";
6
+ import Mn from "../accordion/index.esm.js";
7
+ import Bn from "../avatar/index.esm.js";
8
+ import Vn from "../button-edit/index.esm.js";
9
+ import On from "../button-group/index.esm.js";
10
+ import Dn from "../calendar/index.esm.js";
11
+ import Nn from "../capsule/index.esm.js";
12
+ import Rn, { FCheckBox as mt } from "../checkbox/index.esm.js";
13
+ import $n from "../color-picker/index.esm.js";
14
14
  import rt from "../combo-list/index.esm.js";
15
- import Ln from "../content-container/index.esm.js";
16
- import jn from "../data-grid/index.esm.js";
17
- import An from "../date-picker/index.esm.js";
18
- import Hn from "../dropdown/index.esm.js";
19
- import zn, { FDynamicFormGroup as Gn, FDynamicFormInput as qn } from "../dynamic-form/index.esm.js";
15
+ import Pn from "../content-container/index.esm.js";
16
+ import Ln from "../data-grid/index.esm.js";
17
+ import jn from "../date-picker/index.esm.js";
18
+ import An from "../dropdown/index.esm.js";
19
+ import Hn, { FDynamicFormGroup as zn, FDynamicFormInput as Gn } from "../dynamic-form/index.esm.js";
20
20
  import "../external-container/index.esm.js";
21
- import Wn from "../events-editor/index.esm.js";
22
- import Un from "../filter-bar/index.esm.js";
23
- import Xn from "../image-cropper/index.esm.js";
24
- import Yn from "../input-group/index.esm.js";
25
- import Kn from "../layout/index.esm.js";
26
- import Jn from "../list-nav/index.esm.js";
27
- import Qn from "../list-view/index.esm.js";
28
- import Zn from "../lookup/index.esm.js";
29
- import eo from "../nav/index.esm.js";
30
- import to, { useNumber as no, useFormat as oo, useSpinner as ao, useTextBox as lo } from "../number-spinner/index.esm.js";
31
- import so from "../number-range/index.esm.js";
32
- import ro from "../order/index.esm.js";
33
- import io from "../page-header/index.esm.js";
34
- import uo from "../page-footer/index.esm.js";
35
- import co from "../pagination/index.esm.js";
36
- import fo from "../progress/index.esm.js";
37
- import po from "../query-solution/index.esm.js";
38
- import mo from "../radio-group/index.esm.js";
39
- import vo from "../rate/index.esm.js";
40
- import ho from "../response-toolbar/index.esm.js";
41
- import go from "../response-layout/index.esm.js";
42
- import yo from "../response-layout-editor/index.esm.js";
43
- import bo from "../search-box/index.esm.js";
44
- import Co from "../section/index.esm.js";
45
- import wo from "../smoke-detector/index.esm.js";
46
- import _o from "../splitter/index.esm.js";
47
- import xo from "../step/index.esm.js";
48
- import So from "../switch/index.esm.js";
49
- import ko from "../tabs/index.esm.js";
50
- import To from "../tags/index.esm.js";
51
- import Fo from "../text/index.esm.js";
52
- import Eo from "../time-picker/index.esm.js";
53
- import Io from "../transfer/index.esm.js";
54
- import Mo from "../tree-view/index.esm.js";
55
- import Bo from "../uploader/index.esm.js";
56
- import Vo from "../verify-detail/index.esm.js";
57
- import Oo from "../weather/index.esm.js";
58
- import Do from "../component/index.esm.js";
59
- import No from "../video/index.esm.js";
60
- import Ro from "../textarea/index.esm.js";
61
- import $o from "../tree-grid/index.esm.js";
62
- import { getCustomClass as nt, useTextBox as Po, useClear as Lo, useDateFormat as jo, useNumberFormat as Ao, resolveField as $e, setFieldValue as xt } from "../common/index.esm.js";
63
- import { useIdentify as Ho, useHierarchy as zo, useGroupData as Go, usePagination as qo, useDataView as Wo, useSelection as Uo, useEdit as Xo, useVisualDataBound as Yo, useVisualDataCell as Ko, useVisualDataRow as Jo, useVisualGroupRow as Qo, useVisualSummaryRow as Zo, useVisualData as ea } from "../data-view/index.esm.js";
21
+ import qn from "../events-editor/index.esm.js";
22
+ import Wn from "../filter-bar/index.esm.js";
23
+ import Un from "../image-cropper/index.esm.js";
24
+ import Xn from "../input-group/index.esm.js";
25
+ import Yn from "../layout/index.esm.js";
26
+ import Kn from "../list-nav/index.esm.js";
27
+ import Jn from "../list-view/index.esm.js";
28
+ import Qn from "../lookup/index.esm.js";
29
+ import Zn from "../nav/index.esm.js";
30
+ import eo, { useNumber as to, useFormat as no, useSpinner as oo, useTextBox as ao } from "../number-spinner/index.esm.js";
31
+ import lo from "../number-range/index.esm.js";
32
+ import so from "../order/index.esm.js";
33
+ import ro from "../page-header/index.esm.js";
34
+ import io from "../page-footer/index.esm.js";
35
+ import uo from "../pagination/index.esm.js";
36
+ import co from "../progress/index.esm.js";
37
+ import fo from "../query-solution/index.esm.js";
38
+ import po from "../radio-group/index.esm.js";
39
+ import mo from "../rate/index.esm.js";
40
+ import vo from "../response-toolbar/index.esm.js";
41
+ import ho from "../response-layout/index.esm.js";
42
+ import go from "../response-layout-editor/index.esm.js";
43
+ import yo from "../search-box/index.esm.js";
44
+ import bo from "../section/index.esm.js";
45
+ import Co from "../smoke-detector/index.esm.js";
46
+ import wo from "../splitter/index.esm.js";
47
+ import _o from "../step/index.esm.js";
48
+ import xo from "../switch/index.esm.js";
49
+ import So from "../tabs/index.esm.js";
50
+ import ko from "../tags/index.esm.js";
51
+ import To from "../text/index.esm.js";
52
+ import Fo from "../time-picker/index.esm.js";
53
+ import Eo from "../transfer/index.esm.js";
54
+ import Io from "../tree-view/index.esm.js";
55
+ import Mo from "../uploader/index.esm.js";
56
+ import Bo from "../verify-detail/index.esm.js";
57
+ import Vo from "../weather/index.esm.js";
58
+ import Oo from "../component/index.esm.js";
59
+ import Do from "../video/index.esm.js";
60
+ import No from "../textarea/index.esm.js";
61
+ import Ro from "../tree-grid/index.esm.js";
62
+ import { getCustomClass as nt, useTextBox as $o, useClear as Po, useDateFormat as Lo, useNumberFormat as jo, resolveField as $e, setFieldValue as _t } from "../common/index.esm.js";
63
+ import { useIdentify as Ao, useHierarchy as Ho, useGroupData as zo, usePagination as Go, useDataView as qo, useSelection as Wo, useEdit as Uo, useVisualDataBound as Xo, useVisualDataCell as Yo, useVisualDataRow as Ko, useVisualGroupRow as Jo, useVisualSummaryRow as Qo, useVisualData as Zo } from "../data-view/index.esm.js";
64
64
  import "../modal/index.esm.js";
65
65
  import "../condition/index.esm.js";
66
66
  import "../designer-canvas/index.esm.js";
67
- import ta from "../combo-tree/index.esm.js";
68
- import na from "../field-selector/index.esm.js";
69
- import oa from "../binding-selector/index.esm.js";
70
- import aa from "../mapping-editor/index.esm.js";
71
- import la from "../schema-selector/index.esm.js";
72
- import sa from "../event-parameter/index.esm.js";
73
- import { createPropsResolver as ra } from "../dynamic-resolver/index.esm.js";
74
- const Dt = {}, Nt = {};
67
+ import ea from "../combo-tree/index.esm.js";
68
+ import ta from "../field-selector/index.esm.js";
69
+ import na from "../binding-selector/index.esm.js";
70
+ import oa from "../mapping-editor/index.esm.js";
71
+ import aa from "../schema-selector/index.esm.js";
72
+ import la from "../event-parameter/index.esm.js";
73
+ import { createPropsResolver as sa } from "../dynamic-resolver/index.esm.js";
74
+ const Ot = {}, Dt = {};
75
75
  function vt(e) {
76
- const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((s, i) => ((!a || !o.find((f) => f === i)) && (s[i] = t[i].type === "object" && t[i].properties ? vt(t[i]) : Fe(t[i].default)), s), {});
76
+ const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((s, i) => ((!a || !o.find((f) => f === i)) && (s[i] = t[i].type === "object" && t[i].properties ? vt(t[i]) : _e(t[i].default)), s), {});
77
77
  if (n && (!a || !o.find((s) => s === "id"))) {
78
78
  const s = n.toLowerCase().replace(/-/g, "_");
79
79
  l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
80
80
  }
81
81
  return l;
82
82
  }
83
- function Rt(e, t = {}, n) {
84
- const o = Dt[e];
83
+ function Nt(e, t = {}, n) {
84
+ const o = Ot[e];
85
85
  if (o) {
86
86
  let a = vt(o);
87
- const l = Nt[e];
88
- return a = l ? l({ getSchemaByType: Rt }, a, t, n) : a, a;
87
+ const l = Dt[e];
88
+ return a = l ? l({ getSchemaByType: Nt }, a, t, n) : a, a;
89
89
  }
90
90
  return null;
91
91
  }
92
- function ia(e, t) {
92
+ function ra(e, t) {
93
93
  const n = vt(t);
94
- return Object.keys(n).reduce((o, a) => (o[a] && _t(o[a]) && _t(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
94
+ return Object.keys(n).reduce((o, a) => (o[a] && wt(o[a]) && wt(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
95
95
  }
96
- function ua(e, t) {
96
+ function ia(e, t) {
97
97
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
98
98
  if (t.has(a)) {
99
99
  const l = t.get(a);
@@ -108,21 +108,21 @@ function ua(e, t) {
108
108
  return o;
109
109
  }, {});
110
110
  }
111
- function ca(e, t, n = /* @__PURE__ */ new Map()) {
112
- const o = ia(e, t);
113
- return ua(o, n);
111
+ function ua(e, t, n = /* @__PURE__ */ new Map()) {
112
+ const o = ra(e, t);
113
+ return ia(o, n);
114
114
  }
115
- function da(e = {}) {
115
+ function ca(e = {}) {
116
116
  function t(u, v, d, p) {
117
117
  if (typeof d == "number")
118
118
  return p[u].length === d;
119
119
  if (typeof d == "object") {
120
- const x = Object.keys(d)[0], E = d[x];
121
- if (x === "not")
120
+ const _ = Object.keys(d)[0], E = d[_];
121
+ if (_ === "not")
122
122
  return Number(p[u].length) !== Number(E);
123
- if (x === "moreThan")
123
+ if (_ === "moreThan")
124
124
  return Number(p[u].length) >= Number(E);
125
- if (x === "lessThan")
125
+ if (_ === "lessThan")
126
126
  return Number(p[u].length) <= Number(E);
127
127
  }
128
128
  return !1;
@@ -140,14 +140,14 @@ function da(e = {}) {
140
140
  return typeof v == "number" ? [{ target: d, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: d, operator: "getProperty", param: u, value: !!v }] : typeof v == "object" ? Object.keys(v).map((p) => {
141
141
  if (p === "length")
142
142
  return { target: d, operator: "length", param: null, value: v[p] };
143
- const x = p, E = v[p];
144
- return { target: d, operator: "getProperty", param: x, value: E };
143
+ const _ = p, E = v[p];
144
+ return { target: d, operator: "getProperty", param: _, value: E };
145
145
  }) : [];
146
146
  }
147
147
  function l(u) {
148
148
  return Object.keys(u).reduce((d, p) => {
149
- const x = a(p, u[p]);
150
- return d.push(...x), d;
149
+ const _ = a(p, u[p]);
150
+ return d.push(..._), d;
151
151
  }, []);
152
152
  }
153
153
  function s(u, v) {
@@ -158,10 +158,10 @@ function da(e = {}) {
158
158
  return !1;
159
159
  }
160
160
  function i(u, v) {
161
- return l(u).reduce((x, E) => x && s(E, v), !0);
161
+ return l(u).reduce((_, E) => _ && s(E, v), !0);
162
162
  }
163
163
  function f(u, v) {
164
- const d = Object.keys(u), p = d.includes("allOf"), x = d.includes("anyOf"), E = p || x, m = (E ? u[E ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((b) => i(b, v));
164
+ const d = Object.keys(u), p = d.includes("allOf"), _ = d.includes("anyOf"), E = p || _, m = (E ? u[E ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((b) => i(b, v));
165
165
  return p ? !m.includes(!1) : m.includes(!0);
166
166
  }
167
167
  return { parseValueSchema: f };
@@ -206,24 +206,24 @@ const Y = {
206
206
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
207
207
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
208
208
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
209
- }, fa = {}, pa = {};
210
- da();
209
+ }, da = {}, fa = {};
210
+ ca();
211
211
  function Ee(e, t, n = /* @__PURE__ */ new Map(), o = (s, i, f, u) => i, a = {}, l = (s) => s) {
212
- return Dt[t.title] = t, Nt[t.title] = o, fa[t.title] = a, pa[t.title] = l, (s = {}) => {
213
- const i = ca(s, t, n), f = Object.keys(e).reduce((u, v) => (u[v] = e[v].default, u), {});
212
+ return Ot[t.title] = t, Dt[t.title] = o, da[t.title] = a, fa[t.title] = l, (s = {}) => {
213
+ const i = ua(s, t, n), f = Object.keys(e).reduce((u, v) => (u[v] = e[v].default, u), {});
214
214
  return Object.assign(f, i);
215
215
  };
216
216
  }
217
217
  function Ge(e, t) {
218
218
  return { customClass: t.class, customStyle: t.style };
219
219
  }
220
- const ma = /* @__PURE__ */ new Map([
220
+ const pa = /* @__PURE__ */ new Map([
221
221
  ["appearance", Ge]
222
222
  ]);
223
- function va(e, t, n) {
223
+ function ma(e, t, n) {
224
224
  return t;
225
225
  }
226
- const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-design.gitee.io/external-container.schema.json", ya = "external-container", ba = "A Farris Visual Component", Ca = "object", wa = {
226
+ const va = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-design.gitee.io/external-container.schema.json", ga = "external-container", ya = "A Farris Visual Component", ba = "object", Ca = {
227
227
  id: {
228
228
  description: "The unique identifier for a external-container",
229
229
  type: "string"
@@ -263,19 +263,19 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
263
263
  description: "The unique identifier for component",
264
264
  type: "string"
265
265
  }
266
- }, _a = [
266
+ }, wa = [
267
267
  "id",
268
268
  "type",
269
269
  "contents"
270
- ], xa = {
271
- $schema: ha,
272
- $id: ga,
273
- title: ya,
274
- description: ba,
275
- type: Ca,
276
- properties: wa,
277
- required: _a
278
- }, Sa = "external-container", ka = "A Farris Component", Ta = "object", Fa = {
270
+ ], _a = {
271
+ $schema: va,
272
+ $id: ha,
273
+ title: ga,
274
+ description: ya,
275
+ type: ba,
276
+ properties: Ca,
277
+ required: wa
278
+ }, xa = "external-container", Sa = "A Farris Component", ka = "object", Ta = {
279
279
  basic: {
280
280
  description: "Basic Infomation",
281
281
  title: "基本信息",
@@ -302,18 +302,18 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
302
302
  }
303
303
  }
304
304
  }
305
- }, Ea = {
306
- title: Sa,
307
- description: ka,
308
- type: Ta,
309
- categories: Fa
305
+ }, Fa = {
306
+ title: xa,
307
+ description: Sa,
308
+ type: ka,
309
+ categories: Ta
310
310
  }, ht = {
311
311
  customClass: { type: String, default: "" },
312
312
  componentType: { type: String, default: "" },
313
313
  url: { type: String, default: "" },
314
314
  schema: { type: Object },
315
315
  useIsolateJs: { type: Boolean, default: !1 }
316
- }, St = Ee(ht, xa, ma, va, Ea), ot = /* @__PURE__ */ ae({
316
+ }, xt = Ee(ht, _a, pa, ma, Fa), ot = /* @__PURE__ */ ae({
317
317
  name: "FExternalContainer",
318
318
  props: ht,
319
319
  emits: [],
@@ -322,7 +322,7 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
322
322
  class: e.customClass
323
323
  }, [t.slots.default && t.slots.default()]);
324
324
  }
325
- }), Ia = {
325
+ }), Ea = {
326
326
  id: { type: String, default: "" },
327
327
  componentId: { type: String, default: "" },
328
328
  type: { type: String, default: "" },
@@ -337,11 +337,11 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
337
337
  */
338
338
  modelValue: { type: Object },
339
339
  ignore: { type: Boolean, default: !1 }
340
- }, Ma = {}, Ba = {}, Va = {
340
+ }, Ia = {}, Ma = {}, Ba = {
341
341
  id: { type: String }
342
- }, Oa = /* @__PURE__ */ ae({
342
+ }, Va = /* @__PURE__ */ ae({
343
343
  name: "FDesignerPlaceholder",
344
- props: Va,
344
+ props: Ba,
345
345
  emits: [],
346
346
  setup(e) {
347
347
  const t = P(() => ({
@@ -370,11 +370,11 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
370
370
  }, [re("拖拽组件到这里")]);
371
371
  }
372
372
  }), at = c(0);
373
- function Da(e, t) {
373
+ function Oa(e, t) {
374
374
  const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = o.top >= n.top, l = o.top <= n.bottom;
375
375
  return a && l;
376
376
  }
377
- function Na(e) {
377
+ function Da(e) {
378
378
  if (!e)
379
379
  return;
380
380
  let t;
@@ -385,7 +385,7 @@ function Na(e) {
385
385
  return;
386
386
  const o = t.querySelector(".component-btn-group");
387
387
  if (o) {
388
- if (!Da(t, e)) {
388
+ if (!Oa(t, e)) {
389
389
  o.style.display = "none";
390
390
  return;
391
391
  }
@@ -397,23 +397,23 @@ function Na(e) {
397
397
  }
398
398
  }
399
399
  }
400
- function Ra(e) {
401
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !_n(e);
400
+ function Na(e) {
401
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !wn(e);
402
402
  }
403
403
  const it = /* @__PURE__ */ ae({
404
404
  name: "FDesignerItem",
405
- props: Ia,
405
+ props: Ea,
406
406
  emits: ["selectionChange"],
407
407
  setup(e, t) {
408
- const n = c(`${e.modelValue.id}-component`), o = c(e.canMove), a = c(e.canDelete), l = c(!1), s = c(e.modelValue), i = c(e.componentId || ""), f = c(""), u = c(""), v = c(e.customClass), d = c(), p = Se("canvas-dragula"), x = c(), E = Se("design-item-context"), O = {
408
+ const n = c(`${e.modelValue.id}-component`), o = c(e.canMove), a = c(e.canDelete), l = c(!1), s = c(e.modelValue), i = c(e.componentId || ""), f = c(""), u = c(""), v = c(e.customClass), d = c(), p = ke("canvas-dragula"), _ = c(), E = ke("design-item-context"), O = {
409
409
  designerItemElementRef: d,
410
- componentInstance: x,
410
+ componentInstance: _,
411
411
  schema: s.value,
412
412
  parent: E,
413
413
  setupContext: t
414
414
  };
415
- wn("design-item-context", O);
416
- const N = Se("useFormSchema"), m = P(() => {
415
+ Cn("design-item-context", O);
416
+ const N = ke("useFormSchema"), m = P(() => {
417
417
  const y = e.modelValue.appearance && e.modelValue.appearance.class || "";
418
418
  let I = {
419
419
  "farris-component": !0,
@@ -429,28 +429,28 @@ const it = /* @__PURE__ */ ae({
429
429
  return I[`farris-component-${s.value.type}`] = !0, I = nt(I, y), I = nt(I, u.value), I = nt(I, v.value), I;
430
430
  }), h = P(() => {
431
431
  const y = {}, I = e.modelValue.appearance && e.modelValue.appearance.style || "";
432
- return I && I.split(";").reduce(($, _) => {
433
- const [D, L] = _.split(":");
432
+ return I && I.split(";").reduce(($, x) => {
433
+ const [D, L] = x.split(":");
434
434
  return $[D] = L, $;
435
- }, y), f.value && f.value.split(";").reduce(($, _) => {
436
- const [D, L] = _.split(":");
435
+ }, y), f.value && f.value.split(";").reduce(($, x) => {
436
+ const [D, L] = x.split(":");
437
437
  return D && ($[D] = L), $;
438
438
  }, y), y;
439
439
  });
440
440
  function b(y, I) {
441
441
  var D, L;
442
- if (y && (y.preventDefault(), y.stopPropagation()), x.value.triggerBelongedComponentToDeleteWhenDeleted) {
443
- const R = x.value.getBelongedComponentInstance(x);
442
+ if (y && (y.preventDefault(), y.stopPropagation()), _.value.triggerBelongedComponentToDeleteWhenDeleted) {
443
+ const R = _.value.getBelongedComponentInstance(_);
444
444
  if (R && R.parent) {
445
445
  const A = c(R == null ? void 0 : R.parent), K = A.value.contents.findIndex((ee) => ee.id === R.schema.id);
446
446
  (L = (D = A.value) == null ? void 0 : D.contents) == null || L.splice(K, 1), at.value++;
447
447
  }
448
448
  return;
449
449
  }
450
- x.value.onRemoveComponent();
451
- let $ = E, _ = (R) => R.id === I.id;
452
- if (I.type === "component" && ($ = E == null ? void 0 : E.parent, _ = (R) => R.component === I.id), $ && $.schema.contents) {
453
- const R = $.schema.contents.findIndex(_);
450
+ _.value.onRemoveComponent();
451
+ let $ = E, x = (R) => R.id === I.id;
452
+ if (I.type === "component" && ($ = E == null ? void 0 : E.parent, x = (R) => R.component === I.id), $ && $.schema.contents) {
453
+ const R = $.schema.contents.findIndex(x);
454
454
  $.schema.contents.splice(R, 1), at.value++, t.emit("selectionChange");
455
455
  }
456
456
  }
@@ -494,17 +494,17 @@ const it = /* @__PURE__ */ ae({
494
494
  "data-noattach": "true"
495
495
  }, [r("div", null, [C(y), w(), V()])]);
496
496
  }
497
- function B(y, I, $, _) {
498
- t.emit("selectionChange", y, I, $, _);
497
+ function B(y, I, $, x) {
498
+ t.emit("selectionChange", y, I, $, x);
499
499
  }
500
500
  function g(y) {
501
501
  let I;
502
- const $ = y.type, _ = Ma[$], D = Ba[$], L = D ? D(y) : {};
502
+ const $ = y.type, x = Ia[$], D = Ma[$], L = D ? D(y) : {};
503
503
  L.customClass = e.ignore ? L.customClass : "", L.componentId = i.value, L.id = y.id;
504
504
  const R = y.contents && y.contents.length === 0;
505
- return y.contents && !!y.contents.length && _ ? r(_, ke({
506
- ref: x
507
- }, L), Ra(I = y.contents.map((K) => r(it, {
505
+ return y.contents && !!y.contents.length && x ? r(x, Te({
506
+ ref: _
507
+ }, L), Na(I = y.contents.map((K) => r(it, {
508
508
  key: K.id,
509
509
  modelValue: K,
510
510
  "onUpdate:modelValue": (ee) => K = ee,
@@ -512,22 +512,22 @@ const it = /* @__PURE__ */ ae({
512
512
  onSelectionChange: B
513
513
  }, null))) ? I : {
514
514
  default: () => [I]
515
- }) : _ ? R ? r(_, ke({
516
- ref: x
515
+ }) : x ? R ? r(x, Te({
516
+ ref: _
517
517
  }, L), {
518
- default: () => [r(Oa, null, null)]
519
- }) : r(_, ke({
520
- ref: x
518
+ default: () => [r(Va, null, null)]
519
+ }) : r(x, Te({
520
+ ref: _
521
521
  }, L), null) : r("div", null, null);
522
522
  }
523
523
  function M(y) {
524
524
  if (y.type === "component-ref") {
525
- let $ = N == null ? void 0 : N.getFormSchema().module.components.find((_) => _.id === y.component);
525
+ let $ = N == null ? void 0 : N.getFormSchema().module.components.find((x) => x.id === y.component);
526
526
  if ($)
527
527
  return r(it, {
528
528
  key: $.id,
529
529
  modelValue: $,
530
- "onUpdate:modelValue": (_) => $ = _,
530
+ "onUpdate:modelValue": (x) => $ = x,
531
531
  componentId: $.id,
532
532
  onSelectionChange: B
533
533
  }, null);
@@ -538,28 +538,28 @@ const it = /* @__PURE__ */ ae({
538
538
  });
539
539
  function k(y) {
540
540
  const I = y == null ? void 0 : y.target;
541
- Na(I);
541
+ Da(I);
542
542
  }
543
543
  function F() {
544
544
  var y, I;
545
545
  (I = (y = s.value) == null ? void 0 : y.contents) != null && I.length && d.value && d.value.addEventListener("scroll", k);
546
546
  }
547
547
  me(() => {
548
- if (d.value && x.value && x.value.schema) {
549
- const y = d.value.querySelector(`[data-dragref='${x.value.schema.id}-container']`);
550
- p && y && p.attachComponents(y, s.value), l.value = x.value.canNested !== void 0 ? x.value.canNested : l.value, a.value = x.value.canDelete !== void 0 ? x.value.canDelete : a.value, o.value = x.value.canMove !== void 0 ? x.value.canMove : o.value, f.value = x.value.styles || "", u.value = x.value.designerClass || "", d.value && (d.value.componentInstance = x, d.value.designItemContext = O), x.value.belongedComponentId = i.value;
548
+ if (d.value && _.value && _.value.schema) {
549
+ const y = d.value.querySelector(`[data-dragref='${_.value.schema.id}-container']`);
550
+ p && y && p.attachComponents(y, s.value), l.value = _.value.canNested !== void 0 ? _.value.canNested : l.value, a.value = _.value.canDelete !== void 0 ? _.value.canDelete : a.value, o.value = _.value.canMove !== void 0 ? _.value.canMove : o.value, f.value = _.value.styles || "", u.value = _.value.designerClass || "", d.value && (d.value.componentInstance = _, d.value.designItemContext = O), _.value.belongedComponentId = i.value;
551
551
  }
552
552
  F(), at.value++;
553
- }), Mt(() => {
553
+ }), It(() => {
554
554
  d.value && d.value.removeEventListener("scroll", k);
555
555
  });
556
556
  function T(y) {
557
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((_) => _.classList.remove("dgComponentFocused")), y && (y.preventDefault(), y.stopPropagation());
557
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((x) => x.classList.remove("dgComponentFocused")), y && (y.preventDefault(), y.stopPropagation());
558
558
  let I = O.designerItemElementRef;
559
559
  const $ = d.value;
560
560
  if ($) {
561
- const _ = document.getElementsByClassName("dgComponentSelected");
562
- _ && _.length === 1 && _[0] === d.value || (Array.from(_).forEach((L) => L.classList.remove("dgComponentSelected")), $.classList.add("dgComponentFocused"), t.emit("selectionChange", s.value.type, s.value, i.value, x.value), x.value.getDraggableDesignItemElement && (I = x.value.getDraggableDesignItemElement(O), I && I.value && I.value.classList.add("dgComponentSelected")));
561
+ const x = document.getElementsByClassName("dgComponentSelected");
562
+ x && x.length === 1 && x[0] === d.value || (Array.from(x).forEach((L) => L.classList.remove("dgComponentSelected")), $.classList.add("dgComponentFocused"), t.emit("selectionChange", s.value.type, s.value, i.value, _.value), _.value.getDraggableDesignItemElement && (I = _.value.getDraggableDesignItemElement(O), I && I.value && I.value.classList.add("dgComponentSelected")));
563
563
  }
564
564
  k({
565
565
  target: I == null ? void 0 : I.value
@@ -604,7 +604,7 @@ function gt(e, t, n) {
604
604
  function p(w) {
605
605
  return !!n && n.canAccepts(w);
606
606
  }
607
- function x() {
607
+ function _() {
608
608
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
609
609
  }
610
610
  function E() {
@@ -614,7 +614,7 @@ function gt(e, t, n) {
614
614
  }
615
615
  function N(w, V) {
616
616
  const { componentType: S } = w;
617
- let B = Rt(S, w, V);
617
+ let B = Nt(S, w, V);
618
618
  n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(w, B));
619
619
  const g = S.toLowerCase().replace(/-/g, "_");
620
620
  return B && !B.id && B.type === S && (B.id = `${g}_${Math.random().toString().slice(2, 6)}`), B;
@@ -648,7 +648,7 @@ function gt(e, t, n) {
648
648
  canAccepts: p,
649
649
  getBelongedComponentInstance: v,
650
650
  getDraggableDesignItemElement: d,
651
- getDraggingDisplayText: x,
651
+ getDraggingDisplayText: _,
652
652
  getPropConfig: h,
653
653
  getDragScopeElement: E,
654
654
  onAcceptMovedChildElement: O,
@@ -659,7 +659,7 @@ function gt(e, t, n) {
659
659
  onRemoveComponent: b
660
660
  }, l;
661
661
  }
662
- function $a(e, t) {
662
+ function Ra(e, t) {
663
663
  function n() {
664
664
  return !1;
665
665
  }
@@ -677,9 +677,9 @@ function $a(e, t) {
677
677
  }
678
678
  return { canAccepts: n, checkCanDeleteComponent: o, checkCanMoveComponent: a, hideNestedPaddingInDesginerView: l, getStyles: s };
679
679
  }
680
- const Pa = "data-grid-component", La = "component", ja = "data-grid", Aa = {
680
+ const $a = "data-grid-component", Pa = "component", La = "data-grid", ja = {
681
681
  class: "f-struct-wrapper f-utils-fill-flex-column"
682
- }, Ha = [
682
+ }, Aa = [
683
683
  {
684
684
  id: "data-grid-section",
685
685
  type: "section",
@@ -749,13 +749,13 @@ const Pa = "data-grid-component", La = "component", ja = "data-grid", Aa = {
749
749
  }
750
750
  ]
751
751
  }
752
- ], za = {
753
- id: Pa,
754
- type: La,
755
- componentType: ja,
756
- appearance: Aa,
757
- contents: Ha
758
- }, Ga = {
752
+ ], Ha = {
753
+ id: $a,
754
+ type: Pa,
755
+ componentType: La,
756
+ appearance: ja,
757
+ contents: Aa
758
+ }, za = {
759
759
  /**
760
760
  * 自定义类
761
761
  */
@@ -880,12 +880,12 @@ class oe {
880
880
  return this.x = t.x, this.y = t.y, this;
881
881
  }
882
882
  }
883
- class xe {
883
+ class Se {
884
884
  constructor(t, n) {
885
885
  this.width = t, this.height = n;
886
886
  }
887
887
  static getCurrent(t) {
888
- const n = new xe(0, 0);
888
+ const n = new Se(0, 0);
889
889
  if (window) {
890
890
  const o = window.getComputedStyle(t);
891
891
  return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
@@ -893,27 +893,27 @@ class xe {
893
893
  return null;
894
894
  }
895
895
  static copy(t) {
896
- return new xe(0, 0).set(t);
896
+ return new Se(0, 0).set(t);
897
897
  }
898
898
  set(t) {
899
899
  return this.width = t.width, this.height = t.height, this;
900
900
  }
901
901
  }
902
- function qa(e, t) {
903
- const n = c(), o = c(), a = c(), l = c(), s = c(), i = c(), f = c(), u = c(), v = c(), d = c(), p = c(), x = c(), E = c(e.draggable), O = c(!1);
902
+ function Ga(e, t) {
903
+ const n = c(), o = c(), a = c(), l = c(), s = c(), i = c(), f = c(), u = c(), v = c(), d = c(), p = c(), _ = c(), E = c(e.draggable), O = c(!1);
904
904
  function N() {
905
- const _ = o.value || document.body, D = window.getComputedStyle(_);
905
+ const x = o.value || document.body, D = window.getComputedStyle(x);
906
906
  if (!D || !n.value)
907
907
  return;
908
908
  const L = oe.getTransformInfo(n.value), R = {};
909
909
  f.value && (R.deltaL = n.value.offsetLeft - f.value.x, R.deltaT = n.value.offsetTop - f.value.y);
910
910
  const A = D.getPropertyValue("position");
911
- R.width = _.clientWidth, R.height = _.clientHeight, R.pr = parseInt(D.getPropertyValue("padding-right"), 10), R.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), R.position = D.getPropertyValue("position"), A === "static" && (_.style.position = "relative"), R.translateX = L.x, R.translateY = L.y, d.value = R;
911
+ R.width = x.clientWidth, R.height = x.clientHeight, R.pr = parseInt(D.getPropertyValue("padding-right"), 10), R.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), R.position = D.getPropertyValue("position"), A === "static" && (x.style.position = "relative"), R.translateX = L.x, R.translateY = L.y, d.value = R;
912
912
  }
913
- function m(_) {
913
+ function m(x) {
914
914
  if (n.value) {
915
- l.value = xe.getCurrent(n.value), s.value = oe.getCurrent(n.value), i.value = l.value ? xe.copy(l.value) : null, f.value = s.value ? oe.copy(s.value) : null, N();
916
- const D = _.target.getAttribute("type") || "";
915
+ l.value = Se.getCurrent(n.value), s.value = oe.getCurrent(n.value), i.value = l.value ? Se.copy(l.value) : null, f.value = s.value ? oe.copy(s.value) : null, N();
916
+ const D = x.target.getAttribute("type") || "";
917
917
  u.value = {
918
918
  n: !!D.match(/n/),
919
919
  s: !!D.match(/s/),
@@ -923,49 +923,49 @@ function qa(e, t) {
923
923
  }
924
924
  }
925
925
  function h() {
926
- var _, D, L, R;
926
+ var x, D, L, R;
927
927
  if (n.value) {
928
928
  const A = n.value;
929
- u.value && ((u.value.n || u.value.s) && ((_ = i.value) != null && _.height) && (A.style.height = i.value.height + "px"), (u.value.w || u.value.e) && ((D = i.value) != null && D.width) && (A.style.width = i.value.width + "px"), f.value && ((L = f.value) != null && L.x && (A.style.left = f.value.x + "px"), (R = f.value) != null && R.y && (A.style.top = f.value.y + "px")));
929
+ u.value && ((u.value.n || u.value.s) && ((x = i.value) != null && x.height) && (A.style.height = i.value.height + "px"), (u.value.w || u.value.e) && ((D = i.value) != null && D.width) && (A.style.width = i.value.width + "px"), f.value && ((L = f.value) != null && L.x && (A.style.left = f.value.x + "px"), (R = f.value) != null && R.y && (A.style.top = f.value.y + "px")));
930
930
  }
931
931
  }
932
932
  function b() {
933
- const _ = e.minHeight ? e.minHeight : 1, D = e.minWidth ? e.minWidth : 1;
934
- i.value && f.value && u.value && l.value && (i.value.height < _ && (i.value.height = _, u.value.n && s.value && (f.value.y = s.value.y + (l.value.height - _))), i.value.width < D && (i.value.width = D, u.value.w && s.value && (f.value.x = s.value.x + (l.value.width - D))), e.maxHeight && i.value.height > e.maxHeight && (i.value.height = e.maxHeight, s.value && u.value.n && (f.value.y = s.value.y + (l.value.height - e.maxHeight))), e.maxWidth && i.value.width > e.maxWidth && (i.value.width = e.maxWidth, u.value.w && s.value && (f.value.x = s.value.x + (l.value.width - e.maxWidth))));
933
+ const x = e.minHeight ? e.minHeight : 1, D = e.minWidth ? e.minWidth : 1;
934
+ i.value && f.value && u.value && l.value && (i.value.height < x && (i.value.height = x, u.value.n && s.value && (f.value.y = s.value.y + (l.value.height - x))), i.value.width < D && (i.value.width = D, u.value.w && s.value && (f.value.x = s.value.x + (l.value.width - D))), e.maxHeight && i.value.height > e.maxHeight && (i.value.height = e.maxHeight, s.value && u.value.n && (f.value.y = s.value.y + (l.value.height - e.maxHeight))), e.maxWidth && i.value.width > e.maxWidth && (i.value.width = e.maxWidth, u.value.w && s.value && (f.value.x = s.value.x + (l.value.width - e.maxWidth))));
935
935
  }
936
936
  function C() {
937
937
  if (o.value) {
938
- const _ = d.value;
938
+ const x = d.value;
939
939
  if (f.value && i.value && u.value && l.value) {
940
- const D = _.width - _.pr - _.deltaL - _.translateX - f.value.x, L = _.height - _.pb - _.deltaT - _.translateY - f.value.y;
941
- u.value.n && f.value.y + _.translateY < 0 && s.value && (f.value.y = -_.translateY, i.value.height = l.value.height + s.value.y + _.translateY), u.value.w && f.value.x + _.translateX < 0 && s.value && (f.value.x = -_.translateX, i.value.width = l.value.width + s.value.x + _.translateX), i.value.width > D && (i.value.width = D), i.value.height > L && (i.value.height = L);
940
+ const D = x.width - x.pr - x.deltaL - x.translateX - f.value.x, L = x.height - x.pb - x.deltaT - x.translateY - f.value.y;
941
+ u.value.n && f.value.y + x.translateY < 0 && s.value && (f.value.y = -x.translateY, i.value.height = l.value.height + s.value.y + x.translateY), u.value.w && f.value.x + x.translateX < 0 && s.value && (f.value.x = -x.translateX, i.value.width = l.value.width + s.value.x + x.translateX), i.value.width > D && (i.value.width = D), i.value.height > L && (i.value.height = L);
942
942
  }
943
943
  }
944
944
  }
945
- function w(_) {
945
+ function w(x) {
946
946
  if (!a.value || !l.value || !s.value || !u.value)
947
947
  return;
948
- _.subtract(a.value);
949
- const D = _.x, L = _.y;
948
+ x.subtract(a.value);
949
+ const D = x.x, L = x.y;
950
950
  u.value.n ? (f.value.y = s.value.y + L, i.value.height = l.value.height - L) : u.value.s && (i.value.height = l.value.height + L), u.value.e ? i.value.width = l.value.width + D : u.value.w && (i.value.width = l.value.width - D, f.value.x = s.value.x + D), C(), b(), h();
951
951
  }
952
- function V(_) {
952
+ function V(x) {
953
953
  if (!v.value)
954
954
  return;
955
- const D = oe.fromEvent(_);
955
+ const D = oe.fromEvent(x);
956
956
  D && w(D);
957
957
  }
958
958
  function S() {
959
959
  if (n.value) {
960
960
  const {
961
- width: _,
961
+ width: x,
962
962
  height: D,
963
963
  x: L,
964
964
  y: R
965
965
  } = n.value.getBoundingClientRect(), A = oe.getTransformInfo(n.value);
966
966
  return {
967
967
  size: {
968
- width: _,
968
+ width: x,
969
969
  height: D
970
970
  },
971
971
  position: {
@@ -976,7 +976,7 @@ function qa(e, t) {
976
976
  }
977
977
  return null;
978
978
  }
979
- function B(_) {
979
+ function B(x) {
980
980
  if (n.value) {
981
981
  const D = S();
982
982
  p.value = D;
@@ -986,11 +986,11 @@ function qa(e, t) {
986
986
  function g() {
987
987
  document.addEventListener("mousemove", V), document.addEventListener("mouseup", B);
988
988
  }
989
- function M(_) {
990
- _ instanceof MouseEvent && _.button === 2 || E.value && (_.stopPropagation(), _.preventDefault(), a.value = oe.fromEvent(_), v.value = _.target, m(_), g());
989
+ function M(x) {
990
+ x instanceof MouseEvent && x.button === 2 || E.value && (x.stopPropagation(), x.preventDefault(), a.value = oe.fromEvent(x), v.value = x.target, m(x), g());
991
991
  }
992
- function k(_) {
993
- return n.value = _, r(ye, null, [r("div", {
992
+ function k(x) {
993
+ return n.value = x, r(ye, null, [r("div", {
994
994
  class: "fv-resizable-handle fv-resizable-n",
995
995
  type: "n",
996
996
  onMousedown: (D) => M(D)
@@ -1024,9 +1024,9 @@ function qa(e, t) {
1024
1024
  onMousedown: (D) => M(D)
1025
1025
  }, null)]);
1026
1026
  }
1027
- function F(_ = !0) {
1028
- const D = o.value || document.body, L = xe.getCurrent(D), R = n.value;
1029
- _ && (x.value = S(), x.value.transform = R.style.transform), L && R && (i.value = L, R.style.height = i.value.height - 14 + "px", R.style.width = i.value.width - 14 + "px", R.style.left = "7px", R.style.top = "7px", R.style.transform = "", p.value = {
1027
+ function F(x = !0) {
1028
+ const D = o.value || document.body, L = Se.getCurrent(D), R = n.value;
1029
+ x && (_.value = S(), _.value.transform = R.style.transform), L && R && (i.value = L, R.style.height = i.value.height - 14 + "px", R.style.width = i.value.width - 14 + "px", R.style.left = "7px", R.style.top = "7px", R.style.transform = "", p.value = {
1030
1030
  size: i.value,
1031
1031
  position: {
1032
1032
  x: 0,
@@ -1035,16 +1035,16 @@ function qa(e, t) {
1035
1035
  }, E.value = !1, O.value = !0);
1036
1036
  }
1037
1037
  function T() {
1038
- var _, D;
1039
- if (x.value) {
1038
+ var x, D;
1039
+ if (_.value) {
1040
1040
  const L = {
1041
- width: x.value.size.width || 0,
1042
- height: x.value.size.height || 0
1041
+ width: _.value.size.width || 0,
1042
+ height: _.value.size.height || 0
1043
1043
  }, R = {
1044
1044
  x: (window.innerWidth - L.width) / 2,
1045
1045
  y: (window.innerHeight - L.height) / 2
1046
1046
  };
1047
- (_ = i.value) == null || _.set(L), (D = f.value) == null || D.set(R);
1047
+ (x = i.value) == null || x.set(L), (D = f.value) == null || D.set(R);
1048
1048
  const A = n.value;
1049
1049
  A.style.height = L.height + "px", A.style.width = L.width + "px", A.style.left = `${R.x}px`, A.style.top = `${R.y}px`, A.style.transform = "", p.value = {
1050
1050
  size: L,
@@ -1054,22 +1054,22 @@ function qa(e, t) {
1054
1054
  }
1055
1055
  function y() {
1056
1056
  if (n.value) {
1057
- const _ = xe.getCurrent(n.value);
1058
- if (_) {
1057
+ const x = Se.getCurrent(n.value);
1058
+ if (x) {
1059
1059
  const {
1060
1060
  width: D,
1061
1061
  height: L
1062
- } = _;
1062
+ } = x;
1063
1063
  n.value.style.left = `${(window.innerWidth - D) / 2}px`, n.value.style.top = `${(window.innerHeight - L) / 2}px`, n.value.style.transform = "";
1064
1064
  }
1065
1065
  }
1066
1066
  }
1067
1067
  function I() {
1068
- const _ = () => {
1068
+ const x = () => {
1069
1069
  O.value ? F(!1) : y();
1070
1070
  };
1071
- return window.addEventListener("resize", _), () => {
1072
- window.removeEventListener("resize", _);
1071
+ return window.addEventListener("resize", x), () => {
1072
+ window.removeEventListener("resize", x);
1073
1073
  };
1074
1074
  }
1075
1075
  const $ = I();
@@ -1084,18 +1084,18 @@ function qa(e, t) {
1084
1084
  unWindowResizeHandle: $
1085
1085
  };
1086
1086
  }
1087
- function Wa(e, t, n) {
1087
+ function qa(e, t, n) {
1088
1088
  const o = c(), a = c(e.draggable), l = c(e.lockAxis), s = c(), i = c(), f = c(!1), u = c(new oe(0, 0)), v = c(new oe(0, 0)), d = c(new oe(0, 0)), p = c(new oe(0, 0));
1089
1089
  Q(() => n.value, (S) => {
1090
1090
  s.value.style.cursor = S ? "move" : "default";
1091
1091
  });
1092
- function x(S, B) {
1092
+ function _(S, B) {
1093
1093
  if (B.tagName === "BUTTON")
1094
1094
  return !1;
1095
1095
  if (B === S)
1096
1096
  return !0;
1097
1097
  for (const g in B.children)
1098
- if (Object.prototype.hasOwnProperty.call(B.children, g) && x(S, B.children[g]))
1098
+ if (Object.prototype.hasOwnProperty.call(B.children, g) && _(S, B.children[g]))
1099
1099
  return !0;
1100
1100
  return !1;
1101
1101
  }
@@ -1142,7 +1142,7 @@ function Wa(e, t, n) {
1142
1142
  if (!n.value || S instanceof MouseEvent && S.button === 2)
1143
1143
  return;
1144
1144
  const B = S.target || S.srcElement;
1145
- s.value !== void 0 && B && !x(B, s.value) || a.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), u.value = oe.fromEvent(S, o.value), C(), b());
1145
+ s.value !== void 0 && B && !_(B, s.value) || a.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), u.value = oe.fromEvent(S, o.value), C(), b());
1146
1146
  }
1147
1147
  function V(S, B, g) {
1148
1148
  if (a.value && B) {
@@ -1164,7 +1164,7 @@ function Wa(e, t, n) {
1164
1164
  resetTranslate: C
1165
1165
  };
1166
1166
  }
1167
- function $t(e, t) {
1167
+ function Rt(e, t) {
1168
1168
  if (e) {
1169
1169
  const n = (o) => {
1170
1170
  o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
@@ -1174,30 +1174,30 @@ function $t(e, t) {
1174
1174
  };
1175
1175
  }
1176
1176
  }
1177
- function Ua(e, t) {
1177
+ function Wa(e, t) {
1178
1178
  const n = c(e.enableEsc);
1179
1179
  let o = null;
1180
- return n.value ? (o = $t("Escape", (a) => {
1180
+ return n.value ? (o = Rt("Escape", (a) => {
1181
1181
  t.emit("esc", { event: a.event, type: "esc" });
1182
1182
  }), {
1183
1183
  remove: o
1184
1184
  }) : null;
1185
1185
  }
1186
- function Xa(e, t) {
1186
+ function Ua(e, t) {
1187
1187
  const n = c(e.enableEnter);
1188
1188
  let o = null;
1189
- return n.value ? (o = $t("Enter", (a) => {
1189
+ return n.value ? (o = Rt("Enter", (a) => {
1190
1190
  t.emit("enter", { event: a.event, type: "enter" });
1191
1191
  }), {
1192
1192
  remove: o
1193
1193
  }) : null;
1194
1194
  }
1195
- const Pt = /* @__PURE__ */ ae({
1195
+ const $t = /* @__PURE__ */ ae({
1196
1196
  name: "FModal",
1197
- props: Ga,
1197
+ props: za,
1198
1198
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
1199
1199
  setup(e, t) {
1200
- const n = c(e.width || 300), o = c(e.height || 200), a = c(e.modelValue), l = c(""), s = c(e.class), i = c(e.fitContent), f = c(e.showHeader), u = c(""), v = c(e.showCloseButton), d = c(e.showMaxButton), p = c(!1), x = c(""), E = c(""), O = c(""), N = c(e.showButtons), m = c(e.title), h = c(e.reiszeable), b = c(e.containment || null), C = c();
1200
+ const n = c(e.width || 300), o = c(e.height || 200), a = c(e.modelValue), l = c(""), s = c(e.class), i = c(e.fitContent), f = c(e.showHeader), u = c(""), v = c(e.showCloseButton), d = c(e.showMaxButton), p = c(!1), _ = c(""), E = c(""), O = c(""), N = c(e.showButtons), m = c(e.title), h = c(e.reiszeable), b = c(e.containment || null), C = c();
1201
1201
  function w(H, Z) {
1202
1202
  a.value = !1, t.emit("update:modelValue", !1), Z != null && t.emit(Z ? "accept" : "cancel"), t.emit("closed", H);
1203
1203
  }
@@ -1220,12 +1220,12 @@ const Pt = /* @__PURE__ */ ae({
1220
1220
  maximize: y,
1221
1221
  restore: I,
1222
1222
  boundingElement: $,
1223
- resizedEventParam: _,
1223
+ resizedEventParam: x,
1224
1224
  allowDrag: D,
1225
1225
  unWindowResizeHandle: L
1226
- } = qa(e), {
1226
+ } = Ga(e), {
1227
1227
  registerDraggle: R
1228
- } = Wa(e, t, D);
1228
+ } = qa(e, t, D);
1229
1229
  Q(() => e.title, (H, Z) => {
1230
1230
  H !== Z && (m.value = H);
1231
1231
  }), Q(() => e.modelValue, (H, Z) => {
@@ -1234,7 +1234,7 @@ const Pt = /* @__PURE__ */ ae({
1234
1234
  H !== Z && (f.value = H);
1235
1235
  }), Q(() => e.showButtons, (H, Z) => {
1236
1236
  H !== Z && (N.value = H);
1237
- }), Q(() => _.value, (H, Z) => {
1237
+ }), Q(() => x.value, (H, Z) => {
1238
1238
  const le = H || {}, Be = Z || {};
1239
1239
  JSON.stringify(le) !== JSON.stringify(Be) && t.emit("resize", {
1240
1240
  newSize: H,
@@ -1252,13 +1252,13 @@ const Pt = /* @__PURE__ */ ae({
1252
1252
  fade: !0
1253
1253
  };
1254
1254
  return H["f-modal-fitContent"] = !!i.value, H.show = !!K.value, H;
1255
- }), ie = P(() => {
1255
+ }), ue = P(() => {
1256
1256
  var le;
1257
1257
  const H = {
1258
1258
  "modal-dialog": !0
1259
1259
  }, Z = (le = s.value) == null ? void 0 : le.split(" ");
1260
1260
  return Z == null || Z.reduce((Be, Ze) => (Be[Ze] = !0, Be), H), H;
1261
- }), _e = P(() => ({
1261
+ }), xe = P(() => ({
1262
1262
  position: "absolute",
1263
1263
  top: `${(window.innerHeight - o.value) / 2}px`,
1264
1264
  left: `${(window.innerWidth - n.value) / 2}px`,
@@ -1278,7 +1278,7 @@ const Pt = /* @__PURE__ */ ae({
1278
1278
  modalrevert: F.value
1279
1279
  })), Me = P(() => ({
1280
1280
  "modal-body": !0,
1281
- "f-utils-flex-column": x.value === "iframe"
1281
+ "f-utils-flex-column": _.value === "iframe"
1282
1282
  }));
1283
1283
  function de() {
1284
1284
  return {};
@@ -1304,7 +1304,7 @@ const Pt = /* @__PURE__ */ ae({
1304
1304
  }
1305
1305
  let De = null, Ne = null;
1306
1306
  me(() => {
1307
- k.value && !b.value && (b.value = k.value.parentElement, $.value = b.value, R(M.value, k.value, $.value)), K.value && document.body.classList.add("modal-open"), De = Ua(e, t), Ne = Xa(e, t);
1307
+ k.value && !b.value && (b.value = k.value.parentElement, $.value = b.value, R(M.value, k.value, $.value)), K.value && document.body.classList.add("modal-open"), De = Wa(e, t), Ne = Ua(e, t);
1308
1308
  }), pt(() => {
1309
1309
  A(), L && L(), De && De.remove(), Ne && Ne.remove();
1310
1310
  }), t.expose({
@@ -1366,10 +1366,10 @@ const Pt = /* @__PURE__ */ ae({
1366
1366
  function Qe(H) {
1367
1367
  H.stopPropagation();
1368
1368
  }
1369
- return () => r(xn, {
1369
+ return () => r(_n, {
1370
1370
  to: "body"
1371
1371
  }, {
1372
- default: () => [K.value && r(Bt, {
1372
+ default: () => [K.value && r(Mt, {
1373
1373
  name: "fade",
1374
1374
  appear: !0
1375
1375
  }, {
@@ -1382,14 +1382,14 @@ const Pt = /* @__PURE__ */ ae({
1382
1382
  onClick: Qe
1383
1383
  }, [r("div", {
1384
1384
  id: l.value,
1385
- class: ie.value,
1386
- style: _e.value,
1385
+ class: ue.value,
1386
+ style: xe.value,
1387
1387
  ref: k
1388
1388
  }, [r("div", {
1389
1389
  class: Ie.value
1390
1390
  }, [f.value && Je(), r("div", {
1391
1391
  class: Me.value
1392
- }, [(Z = (H = t.slots).default) == null ? void 0 : Z.call(H), x.value === "iframe" && r("iframe", {
1392
+ }, [(Z = (H = t.slots).default) == null ? void 0 : Z.call(H), _.value === "iframe" && r("iframe", {
1393
1393
  title: l.value,
1394
1394
  class: "f-utils-fill",
1395
1395
  width: "100%",
@@ -1401,31 +1401,31 @@ const Pt = /* @__PURE__ */ ae({
1401
1401
  });
1402
1402
  }
1403
1403
  });
1404
- function Lt(e) {
1404
+ function Pt(e) {
1405
1405
  if (e.content && e.content.render)
1406
1406
  return e.content.render;
1407
1407
  if (e.render && typeof e.render == "function")
1408
1408
  return e.render;
1409
1409
  }
1410
- function Ya(e) {
1410
+ function Xa(e) {
1411
1411
  const t = document.createElement("div");
1412
1412
  t.style.display = "contents";
1413
- const n = Vt({
1413
+ const n = Bt({
1414
1414
  setup(o, a) {
1415
1415
  pt(() => {
1416
1416
  document.body.removeChild(t);
1417
1417
  });
1418
1418
  const l = c(), s = c(e.class || ""), i = c(!!e.showButtons), f = c(!!e.showHeader), u = c(e.showCloseButton == null ? !0 : e.showCloseButton), v = c(!0), d = c(e.title || ""), p = e.acceptCallback || (() => {
1419
- }), x = e.rejectCallback || (() => {
1419
+ }), _ = e.rejectCallback || (() => {
1420
1420
  }), E = e.closedCallback || ((h) => {
1421
1421
  }), O = e.resizeHandle || ((h) => {
1422
- }), N = Lt(e), m = (h) => {
1422
+ }), N = Pt(e), m = (h) => {
1423
1423
  v.value = !1, n.unmount(), E(h);
1424
1424
  };
1425
1425
  return me(() => {
1426
1426
  }), a.expose({
1427
1427
  modalRef: l
1428
- }), () => r(Pt, {
1428
+ }), () => r($t, {
1429
1429
  ref: l,
1430
1430
  class: s.value,
1431
1431
  modelValue: v.value,
@@ -1439,7 +1439,7 @@ function Ya(e) {
1439
1439
  "show-close-button": u.value,
1440
1440
  "show-max-button": !1,
1441
1441
  onAccept: p,
1442
- onCancel: x,
1442
+ onCancel: _,
1443
1443
  fitContent: e.fitContent == null ? !0 : e.fitContent,
1444
1444
  onClosed: m,
1445
1445
  onResize: O
@@ -1450,7 +1450,7 @@ function Ya(e) {
1450
1450
  });
1451
1451
  return document.body.appendChild(t), n.mount(t), n;
1452
1452
  }
1453
- class jt {
1453
+ class Lt {
1454
1454
  constructor(t) {
1455
1455
  z(this, "appContext", null);
1456
1456
  z(this, "modalRef", c());
@@ -1469,12 +1469,12 @@ class jt {
1469
1469
  showButtons: !0,
1470
1470
  showHeader: !0
1471
1471
  }, t);
1472
- return Ya(n);
1472
+ return Xa(n);
1473
1473
  }
1474
1474
  open(t) {
1475
1475
  const n = document.createDocumentFragment();
1476
1476
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
1477
- const o = Sn(Object.assign({
1477
+ const o = xn(Object.assign({
1478
1478
  title: "",
1479
1479
  showButtons: !0,
1480
1480
  showHeader: !0
@@ -1484,7 +1484,7 @@ class jt {
1484
1484
  }), f = o.value.resizeHandle || ((m) => {
1485
1485
  });
1486
1486
  let u;
1487
- const v = Lt(o.value), d = (m) => {
1487
+ const v = Pt(o.value), d = (m) => {
1488
1488
  var b;
1489
1489
  a.value = !1;
1490
1490
  const h = (b = m == null ? void 0 : m.target) == null ? void 0 : b.classList.contains("modal_close");
@@ -1497,10 +1497,10 @@ class jt {
1497
1497
  }
1498
1498
  this.isUseEscCloseModal.value = !1;
1499
1499
  });
1500
- }, x = (m) => {
1500
+ }, _ = (m) => {
1501
1501
  var h;
1502
1502
  this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((h = this.activeModalInstance.value) == null || h.close(m == null ? void 0 : m.event));
1503
- }, E = () => r(Pt, ke({
1503
+ }, E = () => r($t, Te({
1504
1504
  ref: this.modalRef,
1505
1505
  modelValue: a.value,
1506
1506
  "onUpdate:modelValue": (m) => a.value = m
@@ -1509,12 +1509,12 @@ class jt {
1509
1509
  onCancel: s,
1510
1510
  onClosed: p,
1511
1511
  onResize: f,
1512
- onEsc: x
1512
+ onEsc: _
1513
1513
  }), {
1514
1514
  default: () => [v && v(this.app)]
1515
1515
  });
1516
1516
  return u = ((m) => {
1517
- const h = kn(E, m);
1517
+ const h = Sn(E, m);
1518
1518
  return h.appContext = this.appContext, tt(h, n), h;
1519
1519
  })({
1520
1520
  ...o.value
@@ -1524,7 +1524,7 @@ class jt {
1524
1524
  o.value = {
1525
1525
  ...o.value,
1526
1526
  ...m
1527
- }, u && tt(Tn(u, {
1527
+ }, u && tt(kn(u, {
1528
1528
  ...o
1529
1529
  }), n);
1530
1530
  },
@@ -1533,13 +1533,13 @@ class jt {
1533
1533
  };
1534
1534
  }
1535
1535
  }
1536
- const At = /* @__PURE__ */ new Map([
1536
+ const jt = /* @__PURE__ */ new Map([
1537
1537
  ["appearance", Ge]
1538
1538
  ]);
1539
- function Ht(e, t, n) {
1539
+ function At(e, t, n) {
1540
1540
  return t;
1541
1541
  }
1542
- const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-design.gitee.io/list-view.schema.json", Qa = "list-view", Za = "A Farris Component", el = "object", tl = {
1542
+ const Ya = "https://json-schema.org/draft/2020-12/schema", Ka = "https://farris-design.gitee.io/list-view.schema.json", Ja = "list-view", Qa = "A Farris Component", Za = "object", el = {
1543
1543
  id: {
1544
1544
  description: "The unique identifier for list-view",
1545
1545
  type: "string"
@@ -1601,18 +1601,18 @@ const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-
1601
1601
  type: "boolean",
1602
1602
  default: !0
1603
1603
  }
1604
- }, nl = [
1604
+ }, tl = [
1605
1605
  "id",
1606
1606
  "type"
1607
- ], ol = {
1608
- $schema: Ka,
1609
- $id: Ja,
1610
- title: Qa,
1611
- description: Za,
1612
- type: el,
1613
- properties: tl,
1614
- required: nl
1615
- }, al = "list-view", ll = "A Farris Component", sl = "object", rl = {
1607
+ ], nl = {
1608
+ $schema: Ya,
1609
+ $id: Ka,
1610
+ title: Ja,
1611
+ description: Qa,
1612
+ type: Za,
1613
+ properties: el,
1614
+ required: tl
1615
+ }, ol = "list-view", al = "A Farris Component", ll = "object", sl = {
1616
1616
  basic: {
1617
1617
  description: "Basic Infomation",
1618
1618
  title: "基本信息",
@@ -1634,11 +1634,11 @@ const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-
1634
1634
  }
1635
1635
  }
1636
1636
  }
1637
- }, il = {
1638
- title: al,
1639
- description: ll,
1640
- type: sl,
1641
- categories: rl
1637
+ }, rl = {
1638
+ title: ol,
1639
+ description: al,
1640
+ type: ll,
1641
+ categories: sl
1642
1642
  }, qe = {
1643
1643
  /** 列集合 */
1644
1644
  columns: {
@@ -1680,8 +1680,8 @@ const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-
1680
1680
  disableField: { type: String, default: "disabled" },
1681
1681
  // 搜索启用高亮
1682
1682
  enableHighlightSearch: { type: Boolean, default: !0 }
1683
- }, zt = Ee(qe, ol, At, Ht, il);
1684
- function Gt(e, t) {
1683
+ }, Ht = Ee(qe, nl, jt, At, rl);
1684
+ function zt(e, t) {
1685
1685
  function n(l) {
1686
1686
  const s = [];
1687
1687
  let i = l.nextNode();
@@ -1692,15 +1692,15 @@ function Gt(e, t) {
1692
1692
  function o(l, s) {
1693
1693
  const i = document.createTreeWalker(l, NodeFilter.SHOW_TEXT);
1694
1694
  return n(i).map((d) => ({ textNode: d, text: (d.textContent || "").toLocaleLowerCase() })).map(({ textNode: d, text: p }) => {
1695
- const x = [];
1695
+ const _ = [];
1696
1696
  let E = 0;
1697
1697
  for (; E < p.length; ) {
1698
1698
  const O = p.indexOf(s, E);
1699
1699
  if (O === -1)
1700
1700
  break;
1701
- x.push(O), E = O + s.length;
1701
+ _.push(O), E = O + s.length;
1702
1702
  }
1703
- return x.map((O) => {
1703
+ return _.map((O) => {
1704
1704
  const N = new Range();
1705
1705
  return N.setStart(d, O), N.setEnd(d, O + s.length), N;
1706
1706
  });
@@ -1714,8 +1714,8 @@ function Gt(e, t) {
1714
1714
  }
1715
1715
  return { search: a };
1716
1716
  }
1717
- function kt(e, t, n, o, a, l, s, i, f, u) {
1718
- const v = c(e.size), d = c(e.textField), p = c(e.titleField), x = c(e.disableField), E = P(() => {
1717
+ function St(e, t, n, o, a, l, s, i, f, u) {
1718
+ const v = c(e.size), d = c(e.textField), p = c(e.titleField), _ = c(e.disableField), E = P(() => {
1719
1719
  var B, g;
1720
1720
  return ((B = e.selection) == null ? void 0 : B.multiSelect) && ((g = e.selection) == null ? void 0 : g.showCheckbox);
1721
1721
  }), {
@@ -1745,7 +1745,7 @@ function kt(e, t, n, o, a, l, s, i, f, u) {
1745
1745
  }, [r(mt, {
1746
1746
  id: "list-" + h(B, g),
1747
1747
  customClass: "listview-checkbox",
1748
- disabled: B[x.value],
1748
+ disabled: B[_.value],
1749
1749
  checked: B.checked,
1750
1750
  "onUpdate:checked": (k) => B.checked = k,
1751
1751
  onChange: (k) => {
@@ -1762,10 +1762,10 @@ function kt(e, t, n, o, a, l, s, i, f, u) {
1762
1762
  renderItem: S
1763
1763
  };
1764
1764
  }
1765
- function ul(e, t, n, o, a, l, s, i, f, u) {
1765
+ function il(e, t, n, o, a, l, s, i, f, u) {
1766
1766
  const v = c(e.multiSelect), d = c(e.disableField), {
1767
1767
  onMouseenterItem: p,
1768
- onMouseoverItem: x,
1768
+ onMouseoverItem: _,
1769
1769
  onMouseoutItem: E
1770
1770
  } = l, {
1771
1771
  getKey: O,
@@ -1789,7 +1789,7 @@ function ul(e, t, n, o, a, l, s, i, f, u) {
1789
1789
  key: O(w, V),
1790
1790
  onClick: (B) => h(B, w, V),
1791
1791
  onMouseenter: (B) => p(B, w, V),
1792
- onMouseover: (B) => x(B, w, V),
1792
+ onMouseover: (B) => _(B, w, V),
1793
1793
  onMouseout: (B) => E(B, w, V)
1794
1794
  }, [v.value && r("div", {
1795
1795
  class: "f-list-select",
@@ -1809,10 +1809,10 @@ function ul(e, t, n, o, a, l, s, i, f, u) {
1809
1809
  renderItem: C
1810
1810
  };
1811
1811
  }
1812
- function cl(e, t, n, o, a, l, s, i, f, u) {
1812
+ function ul(e, t, n, o, a, l, s, i, f, u) {
1813
1813
  const v = c(e.multiSelect), d = c(e.disableField), {
1814
1814
  onMouseenterItem: p,
1815
- onMouseoverItem: x,
1815
+ onMouseoverItem: _,
1816
1816
  onMouseoutItem: E
1817
1817
  } = l, {
1818
1818
  getKey: O,
@@ -1845,7 +1845,7 @@ function cl(e, t, n, o, a, l, s, i, f, u) {
1845
1845
  key: O(T, y),
1846
1846
  onClick: ($) => h($, T, y),
1847
1847
  onMouseenter: ($) => p($, T, y),
1848
- onMouseover: ($) => x($, T, y),
1848
+ onMouseover: ($) => _($, T, y),
1849
1849
  onMouseout: ($) => E($, T, y),
1850
1850
  draggable: "true",
1851
1851
  onDragstart: ($) => b($, T, y),
@@ -1881,20 +1881,20 @@ function cl(e, t, n, o, a, l, s, i, f, u) {
1881
1881
  renderItem: F
1882
1882
  };
1883
1883
  }
1884
- function dl(e, t, n, o, a, l, s, i, f, u) {
1884
+ function cl(e, t, n, o, a, l, s, i, f, u) {
1885
1885
  var O;
1886
1886
  const v = c(((O = e.group) == null ? void 0 : O.groupFields) || []), {
1887
1887
  collpaseGroupIconClass: d
1888
1888
  } = a, {
1889
1889
  toggleGroupRow: p
1890
1890
  } = u;
1891
- function x(N, m) {
1891
+ function _(N, m) {
1892
1892
  m.collapse = !m.collapse, n.value = p(m.collapse ? "collapse" : "expand", m, n.value);
1893
1893
  }
1894
1894
  function E(N, m, h) {
1895
1895
  return N.layer > -1 && r("div", {
1896
1896
  class: "f-navlookup-recentHeader",
1897
- onClick: (b) => x(b, N)
1897
+ onClick: (b) => _(b, N)
1898
1898
  }, [r("div", {
1899
1899
  class: "fv-grid-group-row-icon"
1900
1900
  }, [r("span", {
@@ -1907,7 +1907,7 @@ function dl(e, t, n, o, a, l, s, i, f, u) {
1907
1907
  renderItem: E
1908
1908
  };
1909
1909
  }
1910
- function fl() {
1910
+ function dl() {
1911
1911
  const e = c(-1), t = c(""), n = c(-1), o = c(!1);
1912
1912
  function a(u, v, d) {
1913
1913
  n.value = d;
@@ -1935,9 +1935,9 @@ function fl() {
1935
1935
  suspendHover: i
1936
1936
  };
1937
1937
  }
1938
- function pl(e, t, n, o) {
1938
+ function fl(e, t, n, o) {
1939
1939
  const a = c(e.idField), { dataView: l } = n, s = c(-1), i = c(!1), { activeIndex: f, focusedItemId: u, hoverIndex: v, resumeHover: d, suspendHover: p } = o;
1940
- function x(m, h, b) {
1940
+ function _(m, h, b) {
1941
1941
  m.stopPropagation(), p(), h && setTimeout(() => {
1942
1942
  s.value = b, i.value = !0, h.moving = !0;
1943
1943
  });
@@ -1957,14 +1957,14 @@ function pl(e, t, n, o) {
1957
1957
  }), i.value = !1, d(), v.value = h.raw.__fv_index__, f.value = h.raw.__fv_index__, u.value = h.raw[a.value], t.emit("change", l.value), t.emit("activeChange", h);
1958
1958
  }
1959
1959
  return {
1960
- dragstart: x,
1960
+ dragstart: _,
1961
1961
  dragenter: E,
1962
1962
  dragover: O,
1963
1963
  dragend: N,
1964
1964
  isDragging: i
1965
1965
  };
1966
1966
  }
1967
- function ml(e, t, n) {
1967
+ function pl(e, t, n) {
1968
1968
  const { dataView: o } = n;
1969
1969
  function a(l) {
1970
1970
  if (l > -1 && l < o.value.length) {
@@ -1974,8 +1974,8 @@ function ml(e, t, n) {
1974
1974
  }
1975
1975
  return { removeItem: a };
1976
1976
  }
1977
- function vl(e, t, n, o, a, l) {
1978
- const s = c(e.idField), i = c(e.disableField), f = c(e.draggable), u = c(e.itemClass), v = c(e.selection.multiSelect ?? !1), d = c(e.selection.multiSelectMode), { isDragging: p } = o, { activeIndex: x, focusedItemId: E, hoverIndex: O } = a, { clearSelection: N, getSelectedItems: m, toggleSelectItem: h } = l, b = c(m());
1977
+ function ml(e, t, n, o, a, l) {
1978
+ const s = c(e.idField), i = c(e.disableField), f = c(e.draggable), u = c(e.itemClass), v = c(e.selection.multiSelect ?? !1), d = c(e.selection.multiSelectMode), { isDragging: p } = o, { activeIndex: _, focusedItemId: E, hoverIndex: O } = a, { clearSelection: N, getSelectedItems: m, toggleSelectItem: h } = l, b = c(m());
1979
1979
  function C(k, F) {
1980
1980
  const T = {
1981
1981
  "f-listview-item": !0,
@@ -2010,7 +2010,7 @@ function vl(e, t, n, o, a, l) {
2010
2010
  k.preventDefault(), k.stopPropagation();
2011
2011
  return;
2012
2012
  }
2013
- E.value = F.raw[s.value], x.value = T, B.value && N(), g.value && (h(F), b.value = m()), t.emit("clickItem", { data: b.value, index: T }), t.emit("activeChange", b.value);
2013
+ E.value = F.raw[s.value], _.value = T, B.value && N(), g.value && (h(F), b.value = m()), t.emit("clickItem", { data: b.value, index: T }), t.emit("activeChange", b.value);
2014
2014
  }
2015
2015
  return {
2016
2016
  getKey: w,
@@ -2019,21 +2019,21 @@ function vl(e, t, n, o, a, l) {
2019
2019
  onClickItem: M
2020
2020
  };
2021
2021
  }
2022
- function qt(e, t, n, o, a, l, s) {
2023
- const i = c(e.view), f = c(e.view === "CardView"), u = c({}), v = c("暂无数据"), d = fl(), p = pl(e, t, o, d), x = ml(e, t, o), E = vl(e, t, n, p, d, l), O = P(() => ({
2022
+ function Gt(e, t, n, o, a, l, s) {
2023
+ const i = c(e.view), f = c(e.view === "CardView"), u = c({}), v = c("暂无数据"), d = dl(), p = fl(e, t, o, d), _ = pl(e, t, o), E = ml(e, t, n, p, d, l), O = P(() => ({
2024
2024
  "f-list-view-group": !0,
2025
2025
  "d-flex": f.value,
2026
2026
  "flex-wrap": f.value
2027
2027
  })), N = P(() => !!n.value && n.value.length > 0), m = P(() => n.value.length === 0);
2028
2028
  P(() => m.value && !t.slots.empty);
2029
2029
  function h() {
2030
- return i.value === "SingleView" ? kt : i.value === "DraggableView" ? cl : (i.value === "ContentView" || i.value === "CardView") && t.slots.content ? ul : kt;
2030
+ return i.value === "SingleView" ? St : i.value === "DraggableView" ? ul : (i.value === "ContentView" || i.value === "CardView") && t.slots.content ? il : St;
2031
2031
  }
2032
2032
  const b = h(), {
2033
2033
  renderItem: C
2034
- } = b(e, t, n, p, a, d, E, l, x, s), {
2034
+ } = b(e, t, n, p, a, d, E, l, _, s), {
2035
2035
  renderItem: w
2036
- } = dl(e, t, n, p, a, d, E, l, x, s), V = [C, w];
2036
+ } = cl(e, t, n, p, a, d, E, l, _, s), V = [C, w];
2037
2037
  function S() {
2038
2038
  return n.value.filter((M) => M.visible !== !1).map((M, k) => V[M.type](M, k, u));
2039
2039
  }
@@ -2054,7 +2054,7 @@ function qt(e, t, n, o, a, l, s) {
2054
2054
  renderListArea: g
2055
2055
  };
2056
2056
  }
2057
- function Wt(e, t, n) {
2057
+ function qt(e, t, n) {
2058
2058
  function o() {
2059
2059
  return t.slots.header && r("div", {
2060
2060
  class: "f-list-view-header"
@@ -2084,7 +2084,7 @@ function ze(e, t, n) {
2084
2084
  function d() {
2085
2085
  return r("div", {
2086
2086
  class: "f-list-view-header",
2087
- onClick: Fn(() => v, ["prevent", "stop"])
2087
+ onClick: Tn(() => v, ["prevent", "stop"])
2088
2088
  }, [r("div", {
2089
2089
  class: u.value
2090
2090
  }, [r("div", {
@@ -2093,14 +2093,14 @@ function ze(e, t, n) {
2093
2093
  class: "f-cmp-inputgroup"
2094
2094
  }, [r("div", {
2095
2095
  class: "input-group f-state-editable"
2096
- }, [Ot(r("input", {
2096
+ }, [Vt(r("input", {
2097
2097
  class: "form-control f-utils-fill text-left",
2098
2098
  "onUpdate:modelValue": (p) => l.value = p,
2099
2099
  name: "input-group-value",
2100
2100
  type: "text",
2101
2101
  placeholder: a.value,
2102
2102
  autocomplete: "off"
2103
- }, null), [[En, l.value]]), r("div", {
2103
+ }, null), [[Fn, l.value]]), r("div", {
2104
2104
  class: "input-group-append"
2105
2105
  }, [i.value && r("span", {
2106
2106
  class: "input-group-text input-group-clear",
@@ -2117,42 +2117,42 @@ function ze(e, t, n) {
2117
2117
  renderHeader: d
2118
2118
  };
2119
2119
  }
2120
- const Te = /* @__PURE__ */ ae({
2120
+ const Fe = /* @__PURE__ */ ae({
2121
2121
  name: "FListView",
2122
2122
  props: qe,
2123
2123
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
2124
2124
  setup(e, t) {
2125
- const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f = Ho(e), u = zo(e), v = Go(e, f), d = qo(e), p = Wo(e, /* @__PURE__ */ new Map(), u, f, d), x = Uo(e, p, f, l, t), E = Gt(e, n), O = P(() => p.dataView.value.length), N = Xo(e, t, f), m = Yo(), h = Ko(e, {}, m), b = Jo(e, N, u, f, m, h), C = Qo(e, f, h, b), w = Zo(e, f, h, b), V = ea(e, i, p, O, s, b, C, w), {
2125
+ const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f = Ao(e), u = Ho(e), v = zo(e, f), d = Go(e), p = qo(e, /* @__PURE__ */ new Map(), u, f, d), _ = Wo(e, p, f, l, t), E = zt(e, n), O = P(() => p.dataView.value.length), N = Uo(e, t, f), m = Xo(), h = Yo(e, {}, m), b = Ko(e, N, u, f, m, h), C = Jo(e, f, h, b), w = Qo(e, f, h, b), V = Zo(e, i, p, O, s, b, C, w), {
2126
2126
  getVisualData: S
2127
2127
  } = V;
2128
2128
  l.value = S(0, O.value + s - 1);
2129
2129
  const B = P(() => {
2130
- const _ = {
2130
+ const x = {
2131
2131
  "f-list-view": !0,
2132
2132
  "f-list-view-multiple": e.multiSelect
2133
2133
  };
2134
- return e.size !== "default" && (_[`${e.size}-item`] = !0), _;
2134
+ return e.size !== "default" && (x[`${e.size}-item`] = !0), x;
2135
2135
  }), g = P(() => !!t.slots.footer || o.value);
2136
2136
  function M() {
2137
- return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ? Wt : ze;
2137
+ return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ? qt : ze;
2138
2138
  }
2139
2139
  const k = M(), {
2140
2140
  renderHeader: F
2141
2141
  } = k(e, t, E), {
2142
2142
  renderListArea: T
2143
- } = qt(e, t, l, p, v, x, V);
2144
- function y(_) {
2145
- E.search(_);
2143
+ } = Gt(e, t, l, p, v, _, V);
2144
+ function y(x) {
2145
+ E.search(x);
2146
2146
  }
2147
- function I(_) {
2148
- _ && (p.load(_), l.value = S(0, O.value + s - 1));
2147
+ function I(x) {
2148
+ x && (p.load(x), l.value = S(0, O.value + s - 1));
2149
2149
  }
2150
2150
  t.expose({
2151
2151
  search: y,
2152
2152
  updateDataSource: I
2153
2153
  });
2154
- function $(_) {
2155
- e.multiSelect && (_.preventDefault(), _.stopPropagation());
2154
+ function $(x) {
2155
+ e.multiSelect && (x.preventDefault(), x.stopPropagation());
2156
2156
  }
2157
2157
  return () => r("div", {
2158
2158
  class: B.value,
@@ -2171,8 +2171,8 @@ const Te = /* @__PURE__ */ ae({
2171
2171
  }, [t.slots.footer && t.slots.footer()])]);
2172
2172
  }
2173
2173
  });
2174
- var ue = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(ue || {}), he = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(he || {}), We = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(We || {}), ut = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(ut || {});
2175
- function hl() {
2174
+ var ie = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(ie || {}), he = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(he || {}), We = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(We || {}), ut = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(ut || {});
2175
+ function vl() {
2176
2176
  function e(n, o) {
2177
2177
  const a = n.pre;
2178
2178
  if (a) {
@@ -2189,7 +2189,7 @@ function hl() {
2189
2189
  }
2190
2190
  return { updateRowPosition: e, updateVisualInfomation: t };
2191
2191
  }
2192
- function gl() {
2192
+ function hl() {
2193
2193
  function e(o, a) {
2194
2194
  switch (o.command) {
2195
2195
  case "edit":
@@ -2214,7 +2214,7 @@ function gl() {
2214
2214
  }
2215
2215
  }
2216
2216
  function n(o, a) {
2217
- return r("div", null, [o.commands && o.commands.map((l) => e(l, a) && r(In("f-button"), {
2217
+ return r("div", null, [o.commands && o.commands.map((l) => e(l, a) && r(En("f-button"), {
2218
2218
  class: "ml-2",
2219
2219
  type: l.type,
2220
2220
  size: l.size || "small",
@@ -2240,7 +2240,7 @@ c([{
2240
2240
  name: "半年",
2241
2241
  selectable: !0
2242
2242
  }]);
2243
- const Ut = {
2243
+ const Wt = {
2244
2244
  conditions: { type: Array, default: [] },
2245
2245
  fields: { type: Array, default: [] },
2246
2246
  key: { type: String, default: "" },
@@ -2249,7 +2249,7 @@ const Ut = {
2249
2249
  */
2250
2250
  isControlInline: { type: Boolean, default: !0 }
2251
2251
  };
2252
- class yl {
2252
+ class gl {
2253
2253
  constructor(t = { value: [] }) {
2254
2254
  z(this, "editorType", "check-box");
2255
2255
  z(this, "value");
@@ -2269,7 +2269,7 @@ class yl {
2269
2269
  return this.value.length === 0;
2270
2270
  }
2271
2271
  }
2272
- class bl {
2272
+ class yl {
2273
2273
  constructor(t = { textValue: "", value: "", valueField: "" }) {
2274
2274
  z(this, "editorType", "combo-lookup");
2275
2275
  z(this, "textValue");
@@ -2289,11 +2289,11 @@ class bl {
2289
2289
  return t[n[0]];
2290
2290
  }
2291
2291
  getTextValue(t) {
2292
- const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, Fe(n)));
2292
+ const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, _e(n)));
2293
2293
  return o && o.length ? o.join(",") : "";
2294
2294
  }
2295
2295
  getValue() {
2296
- const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Fe(t)));
2296
+ const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, _e(t)));
2297
2297
  return n && n.length ? n.join(",") : "";
2298
2298
  }
2299
2299
  setValue(t) {
@@ -2303,7 +2303,7 @@ class bl {
2303
2303
  return !this.valueField;
2304
2304
  }
2305
2305
  }
2306
- class Cl {
2306
+ class bl {
2307
2307
  constructor(t = { value: "" }) {
2308
2308
  z(this, "editorType", "date-picker");
2309
2309
  z(this, "value");
@@ -2323,7 +2323,7 @@ class Cl {
2323
2323
  this.value = void 0;
2324
2324
  }
2325
2325
  }
2326
- class Tt {
2326
+ class kt {
2327
2327
  constructor(t = { begin: "", end: "" }) {
2328
2328
  z(this, "editorType", "date-range");
2329
2329
  z(this, "begin", "");
@@ -2344,7 +2344,7 @@ class Tt {
2344
2344
  return !this.begin || !this.end;
2345
2345
  }
2346
2346
  }
2347
- class wl {
2347
+ class Cl {
2348
2348
  constructor(t = { value: "" }) {
2349
2349
  z(this, "editorType", "datetime-picker");
2350
2350
  z(this, "value");
@@ -2364,7 +2364,7 @@ class wl {
2364
2364
  return !this.value;
2365
2365
  }
2366
2366
  }
2367
- class _l {
2367
+ class wl {
2368
2368
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
2369
2369
  constructor(t = { value: "", dispalyText: "" }) {
2370
2370
  z(this, "editorType", "combo-list");
@@ -2384,10 +2384,10 @@ class _l {
2384
2384
  this.displayText = t.dispalyText, this.value = t.value;
2385
2385
  }
2386
2386
  isEmpty() {
2387
- return !this.displayText;
2387
+ return !this.displayText && !this.value;
2388
2388
  }
2389
2389
  }
2390
- class xl {
2390
+ class _l {
2391
2391
  constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
2392
2392
  z(this, "editorType", "input-group");
2393
2393
  // 通过弹窗返回的若干个值对象构成的数组
@@ -2412,21 +2412,21 @@ class xl {
2412
2412
  return t[n[0]];
2413
2413
  }
2414
2414
  getTextValue(t) {
2415
- const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, Fe(n)));
2415
+ const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, _e(n)));
2416
2416
  return o && o.length ? o.join(",") : "";
2417
2417
  }
2418
2418
  getValue() {
2419
- const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Fe(t)));
2419
+ const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, _e(t)));
2420
2420
  return n && n.length ? n.join(",") : "";
2421
2421
  }
2422
2422
  setValue(t) {
2423
2423
  throw new Error("Method not implemented.");
2424
2424
  }
2425
2425
  isEmpty() {
2426
- return !this.displayText;
2426
+ return !this.displayText && !this.value.length;
2427
2427
  }
2428
2428
  }
2429
- class Sl {
2429
+ class xl {
2430
2430
  constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
2431
2431
  z(this, "editorType", "lookup");
2432
2432
  z(this, "textValue");
@@ -2462,7 +2462,7 @@ class Sl {
2462
2462
  return !this.value.length;
2463
2463
  }
2464
2464
  }
2465
- class kl {
2465
+ class Sl {
2466
2466
  constructor(t = { value: "" }) {
2467
2467
  z(this, "editorType", "month-picker");
2468
2468
  z(this, "value");
@@ -2482,7 +2482,7 @@ class kl {
2482
2482
  return !this.value;
2483
2483
  }
2484
2484
  }
2485
- class Tl {
2485
+ class kl {
2486
2486
  constructor(t = { begin: "", end: "" }) {
2487
2487
  z(this, "editorType", "month-range");
2488
2488
  z(this, "begin");
@@ -2503,7 +2503,7 @@ class Tl {
2503
2503
  return !this.begin || !this.end;
2504
2504
  }
2505
2505
  }
2506
- class Fl {
2506
+ class Tl {
2507
2507
  constructor(t = { begin: null, end: null }) {
2508
2508
  z(this, "editorType", "number-range");
2509
2509
  z(this, "begin");
@@ -2527,7 +2527,7 @@ class Fl {
2527
2527
  return this.begin == null && this.end == null;
2528
2528
  }
2529
2529
  }
2530
- class El {
2530
+ class Fl {
2531
2531
  constructor(t = { value: "" }) {
2532
2532
  z(this, "editorType", "number-spinner");
2533
2533
  z(this, "value");
@@ -2544,10 +2544,10 @@ class El {
2544
2544
  this.value = isNaN(parseFloat(t)) ? null : t;
2545
2545
  }
2546
2546
  isEmpty() {
2547
- return this.value == null;
2547
+ return this.value == null || isNaN(this.value);
2548
2548
  }
2549
2549
  }
2550
- class Il {
2550
+ class El {
2551
2551
  constructor(t = { value: null }) {
2552
2552
  z(this, "editorType", "radio-group");
2553
2553
  z(this, "value");
@@ -2567,7 +2567,7 @@ class Il {
2567
2567
  return !this.value;
2568
2568
  }
2569
2569
  }
2570
- class Xt {
2570
+ class Ut {
2571
2571
  constructor(t = { value: "" }) {
2572
2572
  z(this, "editorType", "text");
2573
2573
  z(this, "value");
@@ -2587,45 +2587,45 @@ class Xt {
2587
2587
  return !this.value;
2588
2588
  }
2589
2589
  }
2590
- function Yt() {
2590
+ function Xt() {
2591
2591
  function e(t, n) {
2592
2592
  switch (t) {
2593
2593
  case "check-box":
2594
- return new yl(n);
2594
+ return new gl(n);
2595
2595
  case "combo-list":
2596
- return new _l(n);
2596
+ return new wl(n);
2597
2597
  case "combo-lookup":
2598
- return new bl(n);
2598
+ return new yl(n);
2599
2599
  case "input-group":
2600
- return new xl(n);
2600
+ return new _l(n);
2601
2601
  case "date-picker":
2602
- return new Cl(n);
2602
+ return new bl(n);
2603
2603
  case "date-range":
2604
- return new Tt(n);
2604
+ return new kt(n);
2605
2605
  case "datetime-picker":
2606
- return new wl(n);
2606
+ return new Cl(n);
2607
2607
  case "datetime-range":
2608
- return new Tt(n);
2608
+ return new kt(n);
2609
2609
  case "lookup":
2610
- return new Sl(n);
2610
+ return new xl(n);
2611
2611
  case "month-picker":
2612
- return new kl(n);
2612
+ return new Sl(n);
2613
2613
  case "month-range":
2614
- return new Tl(n);
2614
+ return new kl(n);
2615
2615
  case "number-range":
2616
- return new Fl(n);
2616
+ return new Tl(n);
2617
2617
  case "number-spinner":
2618
- return new El(n);
2618
+ return new Fl(n);
2619
2619
  case "radio-group":
2620
- return new Il(n);
2620
+ return new El(n);
2621
2621
  default:
2622
- return new Xt(n);
2622
+ return new Ut(n);
2623
2623
  }
2624
2624
  }
2625
2625
  return { createConditionValue: e };
2626
2626
  }
2627
- function Kt(e, t) {
2628
- const n = c(e.fields), o = c([]), a = /* @__PURE__ */ new Map(), { createConditionValue: l } = Yt();
2627
+ function Yt(e, t) {
2628
+ const n = c(e.fields), o = c([]), a = /* @__PURE__ */ new Map(), { createConditionValue: l } = Xt();
2629
2629
  function s(v) {
2630
2630
  switch (v.editor ? v.editor.type : "input-group") {
2631
2631
  case "date-range":
@@ -2656,15 +2656,15 @@ function Kt(e, t) {
2656
2656
  }
2657
2657
  return { convertToSingleControl: i, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: f, initialConditionValue: u };
2658
2658
  }
2659
- function Ml(e, t, n) {
2659
+ function Il(e, t, n) {
2660
2660
  const o = c(null), a = c(n), l = c(0);
2661
2661
  function s(v, d) {
2662
2662
  let p = null;
2663
2663
  return function() {
2664
- const x = arguments;
2664
+ const _ = arguments;
2665
2665
  p || (p = setTimeout(() => {
2666
2666
  p = null;
2667
- }, 500), v(...x));
2667
+ }, 500), v(..._));
2668
2668
  };
2669
2669
  }
2670
2670
  function i() {
@@ -2685,26 +2685,26 @@ function Ml(e, t, n) {
2685
2685
  resizeObserver: o
2686
2686
  };
2687
2687
  }
2688
- const Ft = /* @__PURE__ */ ae({
2688
+ const Tt = /* @__PURE__ */ ae({
2689
2689
  name: "FConditionFields",
2690
- props: Ut,
2690
+ props: Wt,
2691
2691
  emits: ["valueChange", "blur", "focus", "click", "input"],
2692
2692
  setup(e, t) {
2693
- const n = c(), o = c(e.key), a = c(e.isControlInline), l = c(e.conditions), s = Kt(e), {
2693
+ const n = c(), o = c(e.key), a = c(e.isControlInline), l = c(e.conditions), s = Yt(e), {
2694
2694
  initialConditionValue: i,
2695
2695
  fieldMap: f,
2696
2696
  loadFieldConfigs: u
2697
- } = s, v = Ml(e, t, n), {
2697
+ } = s, v = Il(e, t, n), {
2698
2698
  conditionClass: d,
2699
2699
  resizeObserver: p
2700
2700
  } = v;
2701
- u(!0), i(l.value), Mt(() => {
2701
+ u(!0), i(l.value), It(() => {
2702
2702
  var m;
2703
2703
  (m = p.value) == null || m.unobserve(n.value);
2704
2704
  }), Q(() => e.conditions, () => {
2705
2705
  l.value = e.conditions, i(l.value);
2706
2706
  });
2707
- const x = P(() => ({
2707
+ const _ = P(() => ({
2708
2708
  // row: true,
2709
2709
  "f-utils-flex-row-wrap": !0,
2710
2710
  "farris-form": !0,
@@ -2716,7 +2716,7 @@ const Ft = /* @__PURE__ */ ae({
2716
2716
  function N() {
2717
2717
  return l.value.map((m) => {
2718
2718
  var h;
2719
- return r(Gn, {
2719
+ return r(zn, {
2720
2720
  customClass: E.value,
2721
2721
  label: m.fieldName,
2722
2722
  editor: (h = f.get(m.fieldCode)) == null ? void 0 : h.editor,
@@ -2729,17 +2729,17 @@ const Ft = /* @__PURE__ */ ae({
2729
2729
  });
2730
2730
  }
2731
2731
  return () => r("div", {
2732
- class: x.value,
2732
+ class: _.value,
2733
2733
  key: o.value,
2734
2734
  ref: n
2735
2735
  }, [N()]);
2736
2736
  }
2737
2737
  }), yt = /* @__PURE__ */ new Map([
2738
2738
  ["appearance", Ge]
2739
- ]), Bl = /* @__PURE__ */ new Map([]);
2739
+ ]), Ml = /* @__PURE__ */ new Map([]);
2740
2740
  var ct = /* @__PURE__ */ ((e) => (e.String = "String", e.DateTime = "DateTime", e.Date = "Date", e.Enum = "Enum", e.Boolean = "Boolean", e.Number = "Number", e.Text = "Text", e.BigNumber = "BigNumber", e))(ct || {});
2741
- const Vl = "root-viewmodel";
2742
- class Ol {
2741
+ const Bl = "root-viewmodel";
2742
+ class Vl {
2743
2743
  constructor(t, n) {
2744
2744
  z(this, "formSchemaUtils");
2745
2745
  z(this, "controlCreatorUtils");
@@ -2796,7 +2796,7 @@ class Ol {
2796
2796
  }), n.contents = [o];
2797
2797
  const { selectedFields: l } = t;
2798
2798
  l == null || l.forEach((i) => {
2799
- const f = Fe(i), u = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(f, "", u);
2799
+ const f = _e(i), u = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(f, "", u);
2800
2800
  v && a.push(v);
2801
2801
  });
2802
2802
  const { templateId: s } = this.formSchemaUtils.getFormSchema().module;
@@ -2833,7 +2833,7 @@ class Ol {
2833
2833
  code: `${t.componentId}-component-viewmodel`,
2834
2834
  name: t.componentName,
2835
2835
  bindTo: t.bindTo,
2836
- parent: Vl,
2836
+ parent: Bl,
2837
2837
  fields: this.assembleViewModelFields(t),
2838
2838
  commands: [],
2839
2839
  states: [],
@@ -2860,26 +2860,27 @@ class Ol {
2860
2860
  }), n;
2861
2861
  }
2862
2862
  }
2863
- function Dl(e, t, n, o) {
2864
- var l, s, i, f;
2863
+ function Ol(e, t, n, o) {
2864
+ var l, s, i, f, u;
2865
2865
  const a = n.parentComponentInstance;
2866
2866
  if (a && o) {
2867
- const u = (l = a.schema) == null ? void 0 : l.type, d = {
2867
+ const v = (l = a.schema) == null ? void 0 : l.type, p = {
2868
2868
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
2869
2869
  componentName: ((i = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : i.name) || "标题",
2870
2870
  componentType: "form",
2871
- formColumns: u === "splitter-pane" ? 1 : 4,
2871
+ formColumns: v === "splitter-pane" ? 1 : 4,
2872
2872
  parentContainerId: a.schema.id,
2873
- bindTo: ((f = n.bindingSourceContext) == null ? void 0 : f.bindTo) || "/"
2873
+ bindTo: ((f = n.bindingSourceContext) == null ? void 0 : f.bindTo) || "/",
2874
+ selectedFields: (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntityFields
2874
2875
  };
2875
- return new Ol(e, o).createComponent(d);
2876
+ return new Vl(e, o).createComponent(p);
2876
2877
  } else
2877
2878
  return t;
2878
2879
  }
2879
- function Nl(e, t, n) {
2880
+ function Dl(e, t, n) {
2880
2881
  return t;
2881
2882
  }
2882
- const Rl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/response-form.schema.json", Pl = "response-form", Ll = "A Farris Data Collection Component", jl = "object", Al = {
2883
+ const Nl = "https://json-schema.org/draft/2020-12/schema", Rl = "https://farris-design.gitee.io/response-form.schema.json", $l = "response-form", Pl = "A Farris Data Collection Component", Ll = "object", jl = {
2883
2884
  id: {
2884
2885
  description: "The unique identifier for a form group",
2885
2886
  type: "string"
@@ -2907,23 +2908,23 @@ const Rl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
2907
2908
  type: "array",
2908
2909
  default: []
2909
2910
  }
2910
- }, Hl = [
2911
+ }, Al = [
2911
2912
  "id",
2912
2913
  "type"
2913
- ], zl = {
2914
- $schema: Rl,
2915
- $id: $l,
2916
- title: Pl,
2917
- description: Ll,
2918
- type: jl,
2919
- properties: Al,
2920
- required: Hl
2921
- }, Gl = {
2914
+ ], Hl = {
2915
+ $schema: Nl,
2916
+ $id: Rl,
2917
+ title: $l,
2918
+ description: Pl,
2919
+ type: Ll,
2920
+ properties: jl,
2921
+ required: Al
2922
+ }, zl = {
2922
2923
  customClass: { type: String, default: "" },
2923
2924
  customStyle: { type: String, defaut: "" }
2924
2925
  };
2925
- Ee(Gl, zl, yt, Dl);
2926
- const ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-design.gitee.io/form-group.schema.json", Ul = "form-group", Xl = "A Farris Input Component", Yl = "object", Kl = {
2926
+ Ee(zl, Hl, yt, Ol);
2927
+ const Gl = "https://json-schema.org/draft/2020-12/schema", ql = "https://farris-design.gitee.io/form-group.schema.json", Wl = "form-group", Ul = "A Farris Input Component", Xl = "object", Yl = {
2927
2928
  id: {
2928
2929
  description: "The unique identifier for a form group",
2929
2930
  type: "string"
@@ -2969,18 +2970,18 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
2969
2970
  type: "object",
2970
2971
  default: {}
2971
2972
  }
2972
- }, Jl = [
2973
+ }, Kl = [
2973
2974
  "id",
2974
2975
  "type"
2975
- ], Jt = {
2976
- $schema: ql,
2977
- $id: Wl,
2978
- title: Ul,
2979
- description: Xl,
2980
- type: Yl,
2981
- properties: Kl,
2982
- required: Jl
2983
- }, Qt = {
2976
+ ], Kt = {
2977
+ $schema: Gl,
2978
+ $id: ql,
2979
+ title: Wl,
2980
+ description: Ul,
2981
+ type: Xl,
2982
+ properties: Yl,
2983
+ required: Kl
2984
+ }, Jt = {
2984
2985
  id: { type: String, default: "" },
2985
2986
  customClass: { type: String, default: "" },
2986
2987
  customStyle: { type: String, default: "" },
@@ -2996,19 +2997,19 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
2996
2997
  type: { type: String, default: "input-group" }
2997
2998
  };
2998
2999
  Ee(
2999
- Qt,
3000
3000
  Jt,
3001
+ Kt,
3001
3002
  yt,
3002
3003
  void 0
3003
3004
  );
3004
- const Ql = {
3005
+ const Jl = {
3005
3006
  id: { type: String },
3006
3007
  required: { type: Boolean, default: !1 },
3007
3008
  text: { type: String, default: "" },
3008
3009
  title: { type: String }
3009
- }, Zl = /* @__PURE__ */ ae({
3010
+ }, Ql = /* @__PURE__ */ ae({
3010
3011
  name: "FDynamicFormLabel",
3011
- props: Ql,
3012
+ props: Jl,
3012
3013
  emits: [],
3013
3014
  setup(e, t) {
3014
3015
  const n = c(e.title || e.text), o = c(e.required), a = c(e.text);
@@ -3025,13 +3026,13 @@ const Ql = {
3025
3026
  class: "farris-label-text"
3026
3027
  }, [a.value])]);
3027
3028
  }
3028
- }), es = /* @__PURE__ */ new Map([
3029
+ }), Zl = /* @__PURE__ */ new Map([
3029
3030
  ["appearance", Ge]
3030
3031
  ]);
3031
- function ts(e, t, n) {
3032
+ function es(e, t, n) {
3032
3033
  return t;
3033
3034
  }
3034
- const ns = "https://json-schema.org/draft/2020-12/schema", os = "https://farris-design.gitee.io/input-group.schema.json", as = "input-group", ls = "A Farris Input Component", ss = "object", rs = {
3035
+ const ts = "https://json-schema.org/draft/2020-12/schema", ns = "https://farris-design.gitee.io/input-group.schema.json", os = "input-group", as = "A Farris Input Component", ls = "object", ss = {
3035
3036
  id: {
3036
3037
  description: "The unique identifier for a Input Group",
3037
3038
  type: "string"
@@ -3228,24 +3229,24 @@ const ns = "https://json-schema.org/draft/2020-12/schema", os = "https://farris-
3228
3229
  type: "string",
3229
3230
  default: ""
3230
3231
  }
3231
- }, is = [
3232
+ }, rs = [
3232
3233
  "id",
3233
3234
  "type"
3234
- ], us = [
3235
+ ], is = [
3235
3236
  "id",
3236
3237
  "appearance",
3237
3238
  "binding",
3238
3239
  "visible"
3239
- ], cs = {
3240
- $schema: ns,
3241
- $id: os,
3242
- title: as,
3243
- description: ls,
3244
- type: ss,
3245
- properties: rs,
3246
- required: is,
3247
- ignore: us
3248
- }, Zt = {
3240
+ ], us = {
3241
+ $schema: ts,
3242
+ $id: ns,
3243
+ title: os,
3244
+ description: as,
3245
+ type: ls,
3246
+ properties: ss,
3247
+ required: rs,
3248
+ ignore: is
3249
+ }, Qt = {
3249
3250
  id: { Type: String, default: "" },
3250
3251
  /** 是否自动完成 */
3251
3252
  autocomplete: { Type: String, default: "off" },
@@ -3313,18 +3314,18 @@ const ns = "https://json-schema.org/draft/2020-12/schema", os = "https://farris-
3313
3314
  */
3314
3315
  updateOn: { type: String, default: "blur" }
3315
3316
  };
3316
- Ee(Zt, cs, es, ts);
3317
- function ds(e, t) {
3317
+ Ee(Qt, us, Zl, es);
3318
+ function cs(e, t) {
3318
3319
  const n = c(e.groupText), o = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = P(() => e.enableClear || !!e.groupText);
3319
3320
  return { appendedButtonClass: P(() => ({
3320
3321
  "input-group-append": !0,
3321
3322
  "append-force-show": o.value
3322
3323
  })), appendedContent: n, shouldShowAppendedButton: a };
3323
3324
  }
3324
- function fs(e, t, n, o) {
3325
+ function ds(e, t, n, o) {
3325
3326
  const { appendedContent: a } = o, l = c(e.enableViewPassword), s = P(() => e.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', f = '<span class="f-icon f-icon-eye"></span>', u = c(!1);
3326
- Q(() => [e.readonly, e.disabled], ([p, x]) => {
3327
- s.value && (n.value = p || x ? "password" : n.value, a.value = p || x ? f : a.value);
3327
+ Q(() => [e.readonly, e.disabled], ([p, _]) => {
3328
+ s.value && (n.value = p || _ ? "password" : n.value, a.value = p || _ ? f : a.value);
3328
3329
  });
3329
3330
  function v() {
3330
3331
  return u.value = !u.value, n.value = u.value ? "text" : "password", a.value = u.value ? i : f, !1;
@@ -3334,7 +3335,7 @@ function fs(e, t, n, o) {
3334
3335
  }
3335
3336
  return d(), { isPassword: s, onClickAppendedButton: v };
3336
3337
  }
3337
- function ps(e, t, n) {
3338
+ function fs(e, t, n) {
3338
3339
  const o = c(), {
3339
3340
  onBlurTextBox: a,
3340
3341
  onFocusTextBox: l,
@@ -3350,14 +3351,14 @@ function ps(e, t, n) {
3350
3351
  function p(O) {
3351
3352
  O.stopPropagation();
3352
3353
  }
3353
- function x() {
3354
+ function _() {
3354
3355
  e.selectOnCreated, e.focusOnCreated;
3355
3356
  }
3356
3357
  async function E(O) {
3357
- l(O), await st, x();
3358
+ l(O), await st, _();
3358
3359
  }
3359
3360
  return me(async () => {
3360
- await st, x();
3361
+ await st, _();
3361
3362
  }), () => r("input", {
3362
3363
  ref: o,
3363
3364
  class: v.value,
@@ -3374,7 +3375,7 @@ function ps(e, t, n) {
3374
3375
  onKeydown: i
3375
3376
  }, null);
3376
3377
  }
3377
- function ms(e, t, n) {
3378
+ function ps(e, t, n) {
3378
3379
  const {
3379
3380
  canDownward: o,
3380
3381
  canUpward: a,
@@ -3415,16 +3416,16 @@ function ms(e, t, n) {
3415
3416
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
3416
3417
  }, null)])]);
3417
3418
  }
3418
- function vs(e, t) {
3419
- const n = no(e, t), o = oo(e, t, n), a = ao(e, t, o, n), l = lo(e, t, o, n, a), s = ms(e, t, a), {
3419
+ function ms(e, t) {
3420
+ const n = to(e, t), o = no(e, t, n), a = oo(e, t, o, n), l = ao(e, t, o, n, a), s = ps(e, t, a), {
3420
3421
  displayValue: i,
3421
3422
  modelValue: f,
3422
3423
  getRealValue: u
3423
- } = n, v = ps(e, t, l), {
3424
+ } = n, v = fs(e, t, l), {
3424
3425
  format: d
3425
3426
  } = o, {
3426
3427
  isFocus: p
3427
- } = l, x = P(() => !e.disabled && !e.readonly);
3428
+ } = l, _ = P(() => !e.disabled && !e.readonly);
3428
3429
  return me(() => {
3429
3430
  const E = u(e.modelValue);
3430
3431
  i.value = d(E);
@@ -3437,15 +3438,15 @@ function vs(e, t) {
3437
3438
  i.value = d(f.value);
3438
3439
  }), () => r("div", {
3439
3440
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
3440
- }, [v(), x.value && s()]);
3441
+ }, [v(), _.value && s()]);
3441
3442
  }
3442
- function hs(e, t, n, o) {
3443
+ function vs(e, t, n, o) {
3443
3444
  const a = c(), l = c(e.autocomplete), s = c(e.enableTitle), {
3444
3445
  isPassword: i
3445
3446
  } = n, f = c(e.minLength), u = c(e.maxLength), v = c(e.tabIndex), {
3446
3447
  disabled: d,
3447
3448
  displayText: p,
3448
- inputType: x,
3449
+ inputType: _,
3449
3450
  onBlur: E,
3450
3451
  onFocus: O,
3451
3452
  onInput: N,
@@ -3473,7 +3474,7 @@ function hs(e, t, n, o) {
3473
3474
  readonly: V == null ? void 0 : V.value,
3474
3475
  tabindex: v.value,
3475
3476
  title: s.value && !i.value ? g.value : "",
3476
- type: x.value,
3477
+ type: _.value,
3477
3478
  value: p == null ? void 0 : p.value,
3478
3479
  onBlur: E,
3479
3480
  onClick: m,
@@ -3485,23 +3486,23 @@ function hs(e, t, n, o) {
3485
3486
  onMousedown: C
3486
3487
  }, null);
3487
3488
  }
3488
- function gs(e, t) {
3489
+ function hs(e, t) {
3489
3490
  const n = P(() => e.useExtendInfo && !!e.extendInfo), o = ve({
3490
3491
  content: e.extendInfo
3491
3492
  });
3492
3493
  function a() {
3493
3494
  t.emit("updateExtendInfo");
3494
3495
  }
3495
- return () => n.value && Ot(r("span", {
3496
+ return () => n.value && Vt(r("span", {
3496
3497
  class: "input-group-before-tips",
3497
3498
  onMouseenter: a
3498
3499
  }, [r("i", {
3499
3500
  class: "f-icon f-icon-info-circle"
3500
3501
  }, null), r("b", {
3501
3502
  class: "tips-arrow"
3502
- }, null)]), [[Mn("tooltip"), o]]);
3503
+ }, null)]), [[In("tooltip"), o]]);
3503
3504
  }
3504
- function ys(e, t, n, o, a) {
3505
+ function gs(e, t, n, o, a) {
3505
3506
  const {
3506
3507
  appendedButtonClass: l,
3507
3508
  appendedContent: s
@@ -3509,7 +3510,7 @@ function ys(e, t, n, o, a) {
3509
3510
  clearButtonClass: v,
3510
3511
  clearButtonStyle: d,
3511
3512
  onClearValue: p,
3512
- shouldShowClearButton: x
3513
+ shouldShowClearButton: _
3513
3514
  } = o;
3514
3515
  function E() {
3515
3516
  return r("span", {
@@ -3551,23 +3552,23 @@ function ys(e, t, n, o, a) {
3551
3552
  const V = w();
3552
3553
  return () => r("div", {
3553
3554
  class: l.value
3554
- }, [x.value && E(), V && V()]);
3555
+ }, [_.value && E(), V && V()]);
3555
3556
  }
3556
- const bs = /* @__PURE__ */ ae({
3557
+ const ys = /* @__PURE__ */ ae({
3557
3558
  name: "FInputGroup",
3558
- props: Zt,
3559
+ props: Qt,
3559
3560
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
3560
3561
  setup(e, t) {
3561
- const n = c(e.modelValue), o = c(e.modelValue), a = Po(e, t, n, o), {
3562
+ const n = c(e.modelValue), o = c(e.modelValue), a = $o(e, t, n, o), {
3562
3563
  inputGroupClass: l,
3563
3564
  inputType: s,
3564
3565
  inputGroupStyle: i
3565
- } = a, f = ds(e), {
3566
+ } = a, f = cs(e), {
3566
3567
  shouldShowAppendedButton: u
3567
- } = f, v = Lo(e, t, a), {
3568
+ } = f, v = Po(e, t, a), {
3568
3569
  onMouseEnter: d,
3569
3570
  onMouseLeave: p
3570
- } = v, x = fs(e, t, s, f), E = vs(e, t), O = hs(e, t, x, a), N = ys(e, t, f, v, x), m = gs(e, t), h = P(() => e.type === "number");
3571
+ } = v, _ = ds(e, t, s, f), E = ms(e, t), O = vs(e, t, _, a), N = gs(e, t, f, v, _), m = hs(e, t), h = P(() => e.type === "number");
3571
3572
  Q(() => [e.value], ([C]) => {
3572
3573
  n.value = C, o.value = C;
3573
3574
  }), Q(() => [e.modelValue], ([C]) => {
@@ -3585,14 +3586,14 @@ const bs = /* @__PURE__ */ ae({
3585
3586
  return () => b();
3586
3587
  }
3587
3588
  }), G = {}, q = {}, W = {}, U = {};
3588
- let Et = !1;
3589
- function Cs() {
3590
- Et || (Et = !0, Vn.register(G, q, W, U), Bn.register(G, q, W, U), On.register(G, q, W, U), Dn.register(G, q, W, U), Nn.register(G, q, W, U), Rn.register(G, q, W, U), $n.register(G, q, W, U), rt.register(G, q, W, U), ta.register(G, q, W, U), Do.register(G, q, W, U), Ln.register(G, q, W, U), Pn.register(G, q, W, U), An.register(G, q, W, U), jn.register(G, q, W, U), Hn.register(G, q, W, U), zn.register(G, q, W, U), Wn.register(G, q, W, U), Un.register(G, q, W, U), na.register(G, q, W, U), Xn.register(G, q, W, U), Yn.register(G, q, W, U), Kn.register(G, q, W, U), Qn.register(G, q, W, U), Jn.register(G, q, W, U), Zn.register(G, q, W, U), aa.register(G, q, W, U), eo.register(G, q, W, U), so.register(G, q, W, U), to.register(G, q, W, U), ro.register(G, q, W, U), io.register(G, q, W, U), uo.register(G, q, W, U), co.register(G, q, W, U), fo.register(G, q, W, U), po.register(G, q, W, U), mo.register(G, q, W, U), vo.register(G, q, W, U), go.register(G, q, W, U), yo.register(G, q, W, U), ho.register(G, q, W, U), la.register(G, q, W), bo.register(G, q, W, U), Co.register(G, q, W, U), wo.register(G, q, W, U), _o.register(G, q, W, U), xo.register(G, q, W, U), So.register(G, q, W, U), ko.register(G, q, W, U), To.register(G, q, W, U), Fo.register(G, q, W, U), Eo.register(G, q, W, U), Io.register(G, q, W, U), Mo.register(G, q, W, U), Vo.register(G, q, W, U), Bo.register(G, q, W, U), Oo.register(G, q, W, U), No.register(G, q, W, U), Ro.register(G, q, W, U), $o.register(G, q, W, U), oa.register(G, q, W, U), sa.register(G, q, W, U));
3589
+ let Ft = !1;
3590
+ function bs() {
3591
+ Ft || (Ft = !0, Bn.register(G, q, W, U), Mn.register(G, q, W, U), Vn.register(G, q, W, U), On.register(G, q, W, U), Dn.register(G, q, W, U), Nn.register(G, q, W, U), Rn.register(G, q, W, U), rt.register(G, q, W, U), ea.register(G, q, W, U), Oo.register(G, q, W, U), Pn.register(G, q, W, U), $n.register(G, q, W, U), jn.register(G, q, W, U), Ln.register(G, q, W, U), An.register(G, q, W, U), Hn.register(G, q, W, U), qn.register(G, q, W, U), Wn.register(G, q, W, U), ta.register(G, q, W, U), Un.register(G, q, W, U), Xn.register(G, q, W, U), Yn.register(G, q, W, U), Jn.register(G, q, W, U), Kn.register(G, q, W, U), Qn.register(G, q, W, U), oa.register(G, q, W, U), Zn.register(G, q, W, U), lo.register(G, q, W, U), eo.register(G, q, W, U), so.register(G, q, W, U), ro.register(G, q, W, U), io.register(G, q, W, U), uo.register(G, q, W, U), co.register(G, q, W, U), fo.register(G, q, W, U), po.register(G, q, W, U), mo.register(G, q, W, U), ho.register(G, q, W, U), go.register(G, q, W, U), vo.register(G, q, W, U), aa.register(G, q, W), yo.register(G, q, W, U), bo.register(G, q, W, U), Co.register(G, q, W, U), wo.register(G, q, W, U), _o.register(G, q, W, U), xo.register(G, q, W, U), So.register(G, q, W, U), ko.register(G, q, W, U), To.register(G, q, W, U), Fo.register(G, q, W, U), Eo.register(G, q, W, U), Io.register(G, q, W, U), Bo.register(G, q, W, U), Mo.register(G, q, W, U), Vo.register(G, q, W, U), Do.register(G, q, W, U), No.register(G, q, W, U), Ro.register(G, q, W, U), na.register(G, q, W, U), la.register(G, q, W, U));
3591
3592
  }
3592
- function ws() {
3593
- Cs();
3593
+ function Cs() {
3594
+ bs();
3594
3595
  function e(a) {
3595
- return G[a] || bs;
3596
+ return G[a] || ys;
3596
3597
  }
3597
3598
  function t(a, l) {
3598
3599
  const s = q[a];
@@ -3672,19 +3673,19 @@ function ws() {
3672
3673
  }
3673
3674
  return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
3674
3675
  }
3675
- const _s = /* @__PURE__ */ ae({
3676
+ const ws = /* @__PURE__ */ ae({
3676
3677
  name: "FDynamicFormGroup",
3677
- props: Qt,
3678
+ props: Jt,
3678
3679
  emits: ["change", "update:modelValue"],
3679
3680
  setup(e, t) {
3680
3681
  const n = c(e.id), o = c(e.customClass), a = c(e.editor), l = c(e.label), s = c(e.modelValue), i = c(e.readonly), f = c(e.required), u = c(e.showLabel), v = c(e.visible);
3681
3682
  c(e.type);
3682
3683
  const d = c(), {
3683
3684
  resolveEditorProps: p,
3684
- resolveEditorType: x,
3685
+ resolveEditorType: _,
3685
3686
  getChangeFunctionName: E,
3686
3687
  getClearFunctionName: O
3687
- } = ws(), N = P(() => ({
3688
+ } = Cs(), N = P(() => ({
3688
3689
  "form-group": !0,
3689
3690
  "farris-form-group": !0,
3690
3691
  "common-group": !0,
@@ -3697,8 +3698,8 @@ const _s = /* @__PURE__ */ ae({
3697
3698
  t.emit("update:modelValue", "");
3698
3699
  }
3699
3700
  const b = P(() => {
3700
- const C = a.value.type || "input-group", w = x(C), V = p(C, a.value), S = E(C), B = O(a.value.type);
3701
- return B && (V[B] = h), V[S] = m, (V.id == null || V.id === "") && (V.id = n.value), () => r(w, ke({
3701
+ const C = a.value.type || "input-group", w = _(C), V = p(C, a.value), S = E(C), B = O(a.value.type);
3702
+ return B && (V[B] = h), V[S] = m, (V.id == null || V.id === "") && (V.id = n.value), () => r(w, Te({
3702
3703
  ref: d
3703
3704
  }, V, {
3704
3705
  modelValue: s.value,
@@ -3717,7 +3718,7 @@ const _s = /* @__PURE__ */ ae({
3717
3718
  class: "farris-group-wrap"
3718
3719
  }, [r("div", {
3719
3720
  class: N.value
3720
- }, [u.value && r(Zl, {
3721
+ }, [u.value && r(Ql, {
3721
3722
  id: `${n.value}-lable`,
3722
3723
  required: f.value,
3723
3724
  text: l.value,
@@ -3796,8 +3797,8 @@ z(Oe, "fieldControlTypeMapping", {
3796
3797
  { key: Y["radio-group"].type, value: Y["radio-group"].name }
3797
3798
  ]
3798
3799
  });
3799
- let It = Oe;
3800
- const xs = {
3800
+ let Et = Oe;
3801
+ const _s = {
3801
3802
  id: { type: String, default: "" },
3802
3803
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
3803
3804
  editor: { type: Object, default: {} },
@@ -3813,12 +3814,12 @@ const xs = {
3813
3814
  selectOnCreated: { type: Boolean, default: !1 }
3814
3815
  };
3815
3816
  Ee(
3816
- xs,
3817
- Jt,
3817
+ _s,
3818
+ Kt,
3818
3819
  yt,
3819
3820
  void 0
3820
3821
  );
3821
- const Ss = "https://json-schema.org/draft/2020-12/schema", ks = "https://farris-design.gitee.io/grid-field-editor.schema.json", Ts = "response-form-layout-setting", Fs = "A Farris Data Grid Component", Es = "object", Is = {
3822
+ const xs = "https://json-schema.org/draft/2020-12/schema", Ss = "https://farris-design.gitee.io/grid-field-editor.schema.json", ks = "response-form-layout-setting", Ts = "A Farris Data Grid Component", Fs = "object", Es = {
3822
3823
  id: {
3823
3824
  description: "The unique identifier for a Input Group",
3824
3825
  type: "string"
@@ -3838,18 +3839,18 @@ const Ss = "https://json-schema.org/draft/2020-12/schema", ks = "https://farris-
3838
3839
  type: "Object",
3839
3840
  default: null
3840
3841
  }
3841
- }, Ms = [
3842
+ }, Is = [
3842
3843
  "id",
3843
3844
  "type"
3844
- ], Bs = {
3845
- $schema: Ss,
3846
- $id: ks,
3847
- title: Ts,
3848
- description: Fs,
3849
- type: Es,
3850
- properties: Is,
3851
- required: Ms
3852
- }, Vs = {
3845
+ ], Ms = {
3846
+ $schema: xs,
3847
+ $id: Ss,
3848
+ title: ks,
3849
+ description: Ts,
3850
+ type: Fs,
3851
+ properties: Es,
3852
+ required: Is
3853
+ }, Bs = {
3853
3854
  initialState: {
3854
3855
  type: Object,
3855
3856
  default: {
@@ -3860,8 +3861,8 @@ const Ss = "https://json-schema.org/draft/2020-12/schema", ks = "https://farris-
3860
3861
  }
3861
3862
  }
3862
3863
  };
3863
- ra(Vs, Bs, Bl, Nl);
3864
- const Os = {
3864
+ sa(Bs, Ms, Ml, Dl);
3865
+ const Vs = {
3865
3866
  width: { Type: Number, default: 400 },
3866
3867
  type: { Type: String, default: "info" },
3867
3868
  title: { Type: String, default: "" },
@@ -3874,12 +3875,12 @@ const Os = {
3874
3875
  function bt() {
3875
3876
  return new DOMException("The request is not allowed", "NotAllowedError");
3876
3877
  }
3877
- async function Ds(e) {
3878
+ async function Os(e) {
3878
3879
  if (!navigator.clipboard)
3879
3880
  throw bt();
3880
3881
  return navigator.clipboard.writeText(e);
3881
3882
  }
3882
- async function Ns(e) {
3883
+ async function Ds(e) {
3883
3884
  const t = document.createElement("span");
3884
3885
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
3885
3886
  const n = window.getSelection(), o = window.document.createRange();
@@ -3893,24 +3894,24 @@ async function Ns(e) {
3893
3894
  if (!a)
3894
3895
  throw bt();
3895
3896
  }
3896
- async function Rs(e) {
3897
+ async function Ns(e) {
3897
3898
  try {
3898
- await Ds(e);
3899
+ await Os(e);
3899
3900
  } catch (t) {
3900
3901
  try {
3901
- await Ns(e);
3902
+ await Ds(e);
3902
3903
  } catch (n) {
3903
3904
  throw n || t || bt();
3904
3905
  }
3905
3906
  }
3906
3907
  }
3907
- function $s() {
3908
+ function Rs() {
3908
3909
  async function e(t) {
3909
- await Rs(t);
3910
+ await Ns(t);
3910
3911
  }
3911
3912
  return { onCopy: e };
3912
3913
  }
3913
- function Ps(e, t, n, o) {
3914
+ function $s(e, t, n, o) {
3914
3915
  const a = c(14), l = c(140), s = c(""), i = c(o.value.length), f = P(() => o.value), u = P(() => ({
3915
3916
  "font-size": `${a.value}px`,
3916
3917
  height: "100%"
@@ -3935,14 +3936,14 @@ function Ps(e, t, n, o) {
3935
3936
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
3936
3937
  }, [i.value + " / " + l.value])]);
3937
3938
  }
3938
- function Ls(e, t, n, o) {
3939
- const a = Ps(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
3939
+ function Ps(e, t, n, o) {
3940
+ const a = $s(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
3940
3941
  function s(i) {
3941
3942
  return l.get(i) || null;
3942
3943
  }
3943
3944
  return { getEditorRender: s };
3944
3945
  }
3945
- function js() {
3946
+ function Ls() {
3946
3947
  const e = c(!1), t = c("复制成功");
3947
3948
  return {
3948
3949
  feedbackStyle: P(() => {
@@ -3968,11 +3969,11 @@ function js() {
3968
3969
  toShowFeedback: e
3969
3970
  };
3970
3971
  }
3971
- function As(e, t) {
3972
+ function js(e, t) {
3972
3973
  const n = t.getEditorRender(e.promptEditorType);
3973
3974
  return () => n && n();
3974
3975
  }
3975
- function Hs(e) {
3976
+ function As(e) {
3976
3977
  const t = c(3), n = c(480), o = P(() => !!e.value && !!e.value.date), a = P(() => `发生时间 : ${e.value && e.value.date || ""}`), l = P(() => !!e.value && !!e.value.detail), s = P(() => {
3977
3978
  const N = `${n.value}px`;
3978
3979
  return {
@@ -3990,14 +3991,14 @@ function Hs(e) {
3990
3991
  };
3991
3992
  return N["text-align"] = u.value ? "" : "right", N;
3992
3993
  });
3993
- function x(N, m) {
3994
+ function _(N, m) {
3994
3995
  u.value = !u.value, t.value = u.value ? 20 : 3;
3995
3996
  }
3996
3997
  function E(N) {
3997
- return x();
3998
+ return _();
3998
3999
  }
3999
4000
  function O(N) {
4000
- return x();
4001
+ return _();
4001
4002
  }
4002
4003
  return () => r("div", {
4003
4004
  class: "toast-msg-detail"
@@ -4017,21 +4018,21 @@ function Hs(e) {
4017
4018
  style: "cursor: pointer;"
4018
4019
  }, [v.value])])]);
4019
4020
  }
4020
- function zs(e) {
4021
+ function Hs(e) {
4021
4022
  return () => r("p", {
4022
4023
  class: "toast-msg-detail",
4023
4024
  innerHTML: e.value
4024
4025
  }, null);
4025
4026
  }
4026
- function Gs(e, t, n, o) {
4027
+ function zs(e, t, n, o) {
4027
4028
  const a = c(e.exceptionInfo), l = P(() => {
4028
4029
  const p = {
4029
4030
  "f-icon": !0
4030
- }, x = `f-icon-${t.value}`;
4031
- return p[x] = !0, p;
4031
+ }, _ = `f-icon-${t.value}`;
4032
+ return p[_] = !0, p;
4032
4033
  }), s = P(() => n.value || a.value && a.value.message), i = P(() => o.value), f = P(() => !!o.value), u = P(() => !!a.value);
4033
4034
  function v() {
4034
- return u.value ? Hs(a) : f.value ? zs(i) : () => null;
4035
+ return u.value ? As(a) : f.value ? Hs(i) : () => null;
4035
4036
  }
4036
4037
  const d = v();
4037
4038
  return () => r(ye, null, [r("div", {
@@ -4045,7 +4046,7 @@ function Gs(e, t, n, o) {
4045
4046
  innerHTML: s.value
4046
4047
  }, null), d()])]);
4047
4048
  }
4048
- function qs(e, t, n) {
4049
+ function Gs(e, t, n) {
4049
4050
  const {
4050
4051
  onCopy: o
4051
4052
  } = t, {
@@ -4071,8 +4072,8 @@ function qs(e, t, n) {
4071
4072
  style: "cursor: pointer;"
4072
4073
  }, [s.value])]);
4073
4074
  }
4074
- function Ws(e, t, n, o) {
4075
- const a = c(e.type), l = c([]), s = c(e.exceptionInfo), i = c(e.okButtonText), f = c(e.cancelButtonText), u = c(!0), v = c(!0), d = P(() => !!(l.value && l.value.length)), p = P(() => s.value && s.value.date && s.value.message && s.value.detail), x = P(() => !(l.value && l.value.length) && (i.value || f.value)), E = P(() => v.value && i.value), O = P(() => u.value && f.value), N = qs(e, n, o);
4075
+ function qs(e, t, n, o) {
4076
+ const a = c(e.type), l = c([]), s = c(e.exceptionInfo), i = c(e.okButtonText), f = c(e.cancelButtonText), u = c(!0), v = c(!0), d = P(() => !!(l.value && l.value.length)), p = P(() => s.value && s.value.date && s.value.message && s.value.detail), _ = P(() => !(l.value && l.value.length) && (i.value || f.value)), E = P(() => v.value && i.value), O = P(() => u.value && f.value), N = Gs(e, n, o);
4076
4077
  function m(b) {
4077
4078
  a.value === "question" && t.emit("reject"), t.emit("close");
4078
4079
  }
@@ -4081,11 +4082,11 @@ function Ws(e, t, n, o) {
4081
4082
  }
4082
4083
  return () => r("div", {
4083
4084
  class: "modal-footer"
4084
- }, [p.value && N(), x.value && O.value && r("button", {
4085
+ }, [p.value && N(), _.value && O.value && r("button", {
4085
4086
  type: "button",
4086
4087
  class: "btn btn-secondary btn-lg",
4087
4088
  onClick: m
4088
- }, [f.value]), x.value && E.value && r("button", {
4089
+ }, [f.value]), _.value && E.value && r("button", {
4089
4090
  type: "button",
4090
4091
  class: "btn btn-primary btn-lg",
4091
4092
  onClick: h
@@ -4099,7 +4100,7 @@ function Ws(e, t, n, o) {
4099
4100
  }
4100
4101
  const Ae = /* @__PURE__ */ ae({
4101
4102
  name: "FMessageBox",
4102
- props: Os,
4103
+ props: Vs,
4103
4104
  emits: ["accept", "reject", "close"],
4104
4105
  setup(e, t) {
4105
4106
  const n = c(e.type), o = c(e.title), a = c(e.detail), l = P(() => {
@@ -4112,7 +4113,7 @@ const Ae = /* @__PURE__ */ ae({
4112
4113
  }), s = P(() => {
4113
4114
  const N = {};
4114
4115
  return n.value === "prompt" ? N.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (N.padding = "0.5rem 1.5rem 1rem 1.5rem"), N;
4115
- }), i = $s(), f = Ls(e, n, o, a), u = js(), {
4116
+ }), i = Rs(), f = Ps(e, n, o, a), u = Ls(), {
4116
4117
  feedbackStyle: v,
4117
4118
  feedbackMessage: d
4118
4119
  } = u;
@@ -4121,15 +4122,15 @@ const Ae = /* @__PURE__ */ ae({
4121
4122
  style: v.value
4122
4123
  }, [d.value]);
4123
4124
  }
4124
- function x() {
4125
+ function _() {
4125
4126
  switch (n.value) {
4126
4127
  case "prompt":
4127
- return As(e, f);
4128
+ return js(e, f);
4128
4129
  default:
4129
- return Gs(e, n, o, a);
4130
+ return zs(e, n, o, a);
4130
4131
  }
4131
4132
  }
4132
- const E = x(), O = Ws(e, t, i, u);
4133
+ const E = _(), O = qs(e, t, i, u);
4133
4134
  return () => r("div", {
4134
4135
  class: "farris-messager"
4135
4136
  }, [r("section", {
@@ -4145,7 +4146,7 @@ class we {
4145
4146
  }), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", s = n.acceptCallback || (() => {
4146
4147
  }), i = n.rejectCallback || (() => {
4147
4148
  });
4148
- let f = null, u = new jt(f);
4149
+ let f = null, u = new Lt(f);
4149
4150
  const v = () => {
4150
4151
  f && (f == null || f.destroy(), u = null);
4151
4152
  };
@@ -4157,7 +4158,7 @@ class we {
4157
4158
  width: n.width || 400,
4158
4159
  fitContent: !0,
4159
4160
  showMaxButton: !1,
4160
- render: () => r(Ae, ke(n, {
4161
+ render: () => r(Ae, Te(n, {
4161
4162
  onAccept: s,
4162
4163
  onReject: i,
4163
4164
  onClose: v
@@ -4234,8 +4235,8 @@ class we {
4234
4235
  Ae.install = (e) => {
4235
4236
  e.component(Ae.name, Ae), e.provide("FMessageBoxService", we);
4236
4237
  };
4237
- var en = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(en || {}), tn = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(tn || {});
4238
- const Us = [
4238
+ var Zt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(Zt || {}), en = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(en || {});
4239
+ const Ws = [
4239
4240
  {
4240
4241
  value: "0",
4241
4242
  name: "等于"
@@ -4272,7 +4273,7 @@ const Us = [
4272
4273
  value: "8",
4273
4274
  name: "结束是"
4274
4275
  }
4275
- ], Xs = {
4276
+ ], Us = {
4276
4277
  "button-edit": ["0", "1", " 6", "7", "8"],
4277
4278
  "check-box": ["0"],
4278
4279
  "combo-list": ["0", "1"],
@@ -4292,18 +4293,18 @@ const Us = [
4292
4293
  "radio-group": ["0"],
4293
4294
  text: ["0", "1", " 6", "7", "8"]
4294
4295
  };
4295
- function Ys(e, t, n) {
4296
+ function Xs(e, t, n) {
4296
4297
  const { fieldMap: o } = n;
4297
4298
  function a(l) {
4298
4299
  const s = o.get(l.fieldCode);
4299
4300
  if (!s)
4300
4301
  return [];
4301
- const i = s.editor.type, f = new Set(Xs[i]);
4302
- return Us.filter((v) => f.has(v.value));
4302
+ const i = s.editor.type, f = new Set(Us[i]);
4303
+ return Ws.filter((v) => f.has(v.value));
4303
4304
  }
4304
4305
  return { getCompareOperators: a };
4305
4306
  }
4306
- function nn() {
4307
+ function tn() {
4307
4308
  const e = c({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
4308
4309
  let o = 0;
4309
4310
  function a() {
@@ -4311,9 +4312,9 @@ function nn() {
4311
4312
  id: "",
4312
4313
  fieldCode: "",
4313
4314
  fieldName: "",
4314
- compareType: tn.Equal,
4315
- valueType: en.Value,
4316
- value: new Xt(),
4315
+ compareType: en.Equal,
4316
+ valueType: Zt.Value,
4317
+ value: new Ut(),
4317
4318
  relation: 0,
4318
4319
  conditionId: Date.now()
4319
4320
  };
@@ -4346,7 +4347,7 @@ function nn() {
4346
4347
  return k;
4347
4348
  }
4348
4349
  function u(g, M, k, F, T) {
4349
- for (let _ = M; _ <= 0; _++)
4350
+ for (let x = M; x <= 0; x++)
4350
4351
  F.pop();
4351
4352
  const y = F[F.length - 1];
4352
4353
  if (!y)
@@ -4363,20 +4364,20 @@ function nn() {
4363
4364
  let I = g[g.length - 1];
4364
4365
  if (!I)
4365
4366
  throw new Error("The group path is out of range");
4366
- const $ = M.get(F) || 0, _ = M.get(k) || 0;
4367
+ const $ = M.get(F) || 0, x = M.get(k) || 0;
4367
4368
  if (k < 0 || k === F)
4368
4369
  return g[g.length - 1];
4369
- const D = $ - _, L = T && T.relation !== void 0 ? T.relation : 1;
4370
- return I = D > 0 ? f(_, D, I, g, L) : I, I = D < 0 ? u(_, D, I, g, L) : I, I = D === 0 && _ > 0 && $ > 0 && T && y && !!T.rBracket && !!y.lBracket ? v(_, I, g, L) : I, I;
4370
+ const D = $ - x, L = T && T.relation !== void 0 ? T.relation : 1;
4371
+ return I = D > 0 ? f(x, D, I, g, L) : I, I = D < 0 ? u(x, D, I, g, L) : I, I = D === 0 && x > 0 && $ > 0 && T && y && !!T.rBracket && !!y.lBracket ? v(x, I, g, L) : I, I;
4371
4372
  }
4372
4373
  function p(g) {
4373
4374
  const k = { relation: g.length && g[0].relation !== void 0 ? g[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, F = [k], T = i(g);
4374
4375
  return g.forEach((y, I) => {
4375
- const $ = I - 1, _ = g[$], D = d(F, T, $, I, _, y);
4376
+ const $ = I - 1, x = g[$], D = d(F, T, $, I, x, y);
4376
4377
  D.items.push(y), t.set(y.conditionId, D);
4377
4378
  }), e.value = k, k;
4378
4379
  }
4379
- function x() {
4380
+ function _() {
4380
4381
  const g = a();
4381
4382
  t.set(g.conditionId, e.value), e.value.items.push(g);
4382
4383
  }
@@ -4393,12 +4394,12 @@ function nn() {
4393
4394
  g.reduce((T, y) => {
4394
4395
  const I = y.conditionId !== void 0, $ = y.groupId !== void 0;
4395
4396
  if (I) {
4396
- const _ = y;
4397
- k.push(_), T.items.set(_.conditionId, _);
4397
+ const x = y;
4398
+ k.push(x), T.items.set(x.conditionId, x);
4398
4399
  }
4399
4400
  if ($) {
4400
- const _ = y;
4401
- F.push(_), T.groups.set(_.groupId, _);
4401
+ const x = y;
4402
+ F.push(x), T.groups.set(x.groupId, x);
4402
4403
  }
4403
4404
  return T;
4404
4405
  }, M);
@@ -4458,7 +4459,7 @@ function nn() {
4458
4459
  M && (M.items = M.items.filter((k) => k.conditionId !== g.conditionId), t.delete(g.conditionId), S(), s());
4459
4460
  }
4460
4461
  return {
4461
- addCondition: x,
4462
+ addCondition: _,
4462
4463
  changeGroupRelation: C,
4463
4464
  conditionGroupMap: t,
4464
4465
  getConditions: w,
@@ -4472,7 +4473,7 @@ function nn() {
4472
4473
  unGroup: b
4473
4474
  };
4474
4475
  }
4475
- function Ks(e, t, n) {
4476
+ function Ys(e, t, n) {
4476
4477
  const o = c(/* @__PURE__ */ new Set()), a = c(/* @__PURE__ */ new Set()), { conditionGroupMap: l, groupParentMap: s } = n;
4477
4478
  let i, f;
4478
4479
  function u(m) {
@@ -4491,16 +4492,16 @@ function Ks(e, t, n) {
4491
4492
  const b = l.get(m.conditionId);
4492
4493
  u(b).forEach((w) => v(w));
4493
4494
  }
4494
- const p = P(() => o.value.size === 0 && a.value.size === 1), x = function(m) {
4495
- a.value.delete(m.groupId), m.items.forEach((b) => f(b)), m.children.forEach((b) => !p.value && x(b));
4495
+ const p = P(() => o.value.size === 0 && a.value.size === 1), _ = function(m) {
4496
+ a.value.delete(m.groupId), m.items.forEach((b) => f(b)), m.children.forEach((b) => !p.value && _(b));
4496
4497
  const h = s.get(m.groupId);
4497
- h && a.value.has(h.groupId) && x(h);
4498
+ h && a.value.has(h.groupId) && _(h);
4498
4499
  };
4499
4500
  f = function(m) {
4500
4501
  const { conditionId: h } = m;
4501
4502
  if (o.value.has(h) && o.value.delete(h), a.value.size > 0) {
4502
4503
  const b = l.get(h);
4503
- b && a.value.has(b.groupId) && x(b);
4504
+ b && a.value.has(b.groupId) && _(b);
4504
4505
  }
4505
4506
  };
4506
4507
  function E(m) {
@@ -4518,19 +4519,19 @@ function Ks(e, t, n) {
4518
4519
  }
4519
4520
  const lt = /* @__PURE__ */ ae({
4520
4521
  name: "FConditionList",
4521
- props: Ut,
4522
+ props: Wt,
4522
4523
  emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
4523
4524
  setup(e, t) {
4524
- const n = c(e.key), o = c(e.conditions), a = Kt(e), {
4525
+ const n = c(e.key), o = c(e.conditions), a = Yt(e), {
4525
4526
  convertToSingleControl: l,
4526
4527
  fields: s,
4527
4528
  fieldMap: i,
4528
4529
  loadFieldConfigs: f
4529
- } = a, u = nn(), {
4530
+ } = a, u = tn(), {
4530
4531
  addCondition: v,
4531
4532
  changeGroupRelation: d,
4532
4533
  getConditions: p,
4533
- group: x,
4534
+ group: _,
4534
4535
  insertConditionTo: E,
4535
4536
  loadConditionGroup: O,
4536
4537
  refresh: N,
@@ -4539,12 +4540,12 @@ const lt = /* @__PURE__ */ ae({
4539
4540
  unGroup: b
4540
4541
  } = u, {
4541
4542
  createConditionValue: C
4542
- } = Yt(), w = Ks(e, t, u), {
4543
+ } = Xt(), w = Ys(e, t, u), {
4543
4544
  selectedItems: V,
4544
4545
  toggleSelect: S
4545
4546
  } = w, {
4546
4547
  getCompareOperators: B
4547
- } = Ys(e, t, a);
4548
+ } = Xs(e, t, a);
4548
4549
  f(!1), s.value = l(s.value), O(o.value);
4549
4550
  function g(D) {
4550
4551
  var R;
@@ -4592,7 +4593,7 @@ const lt = /* @__PURE__ */ ae({
4592
4593
  onChange: (A) => M(A, L)
4593
4594
  }, null)]), r("div", {
4594
4595
  class: "condition-list-item-control mr-3"
4595
- }, [r(_s, {
4596
+ }, [r(ws, {
4596
4597
  editor: (R = i.get(L.fieldCode)) == null ? void 0 : R.editor,
4597
4598
  showLabel: !1,
4598
4599
  modelValue: L.value.value,
@@ -4640,9 +4641,9 @@ const lt = /* @__PURE__ */ ae({
4640
4641
  }, [T(D), D.children && D.children.map((L) => I(L))]), y(D)]);
4641
4642
  }
4642
4643
  function $() {
4643
- x(w.getSelectedGroupItem()), w.clear();
4644
+ _(w.getSelectedGroupItem()), w.clear();
4644
4645
  }
4645
- function _() {
4646
+ function x() {
4646
4647
  return r("div", {
4647
4648
  class: "condition-list-bottom"
4648
4649
  }, [r("div", {
@@ -4669,13 +4670,13 @@ const lt = /* @__PURE__ */ ae({
4669
4670
  key: n.value
4670
4671
  }, [r("div", {
4671
4672
  class: "condition-list-body"
4672
- }, [I(h.value)]), _()]);
4673
+ }, [I(h.value)]), x()]);
4673
4674
  }
4674
4675
  });
4675
4676
  lt.install = (e) => {
4676
- e.component(Ft.name, Ft).component(lt.name, lt);
4677
+ e.component(Tt.name, Tt).component(lt.name, lt);
4677
4678
  };
4678
- const Js = [
4679
+ const Ks = [
4679
4680
  "equal",
4680
4681
  "notEqual",
4681
4682
  "greaterThan",
@@ -4685,16 +4686,16 @@ const Js = [
4685
4686
  "contain",
4686
4687
  "startWidth",
4687
4688
  "endWidth"
4688
- ], Qs = {
4689
+ ], Js = {
4689
4690
  equal: (e, t, n) => e && e[t] === n,
4690
4691
  notEqual: (e, t, n) => e && e[t] !== n,
4691
4692
  contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
4692
4693
  startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
4693
4694
  endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
4694
- }, Zs = {
4695
+ }, Qs = {
4695
4696
  equal: (e, t, n) => e && e[t] === n,
4696
4697
  notEqual: (e, t, n) => e && e[t] !== n
4697
- }, er = {
4698
+ }, Zs = {
4698
4699
  equal: (e, t, n) => {
4699
4700
  if (e) {
4700
4701
  const o = new Date(new Date(n).toLocaleDateString()).valueOf();
@@ -4737,10 +4738,10 @@ const Js = [
4737
4738
  }
4738
4739
  return !1;
4739
4740
  }
4740
- }, tr = {
4741
+ }, er = {
4741
4742
  equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
4742
4743
  notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
4743
- }, nr = {
4744
+ }, tr = {
4744
4745
  equal: (e, t, n) => {
4745
4746
  if (e) {
4746
4747
  const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
@@ -4784,13 +4785,13 @@ const Js = [
4784
4785
  return !1;
4785
4786
  }
4786
4787
  };
4787
- function or() {
4788
- const e = c([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = nn(), o = /* @__PURE__ */ new Map([
4789
- ["boolean", Zs],
4790
- ["datetime", er],
4791
- ["enum", tr],
4792
- ["number", nr],
4793
- ["text", Qs]
4788
+ function nr() {
4789
+ const e = c([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = tn(), o = /* @__PURE__ */ new Map([
4790
+ ["boolean", Qs],
4791
+ ["datetime", Zs],
4792
+ ["enum", er],
4793
+ ["number", tr],
4794
+ ["text", Js]
4794
4795
  ]);
4795
4796
  function a(d) {
4796
4797
  t.delete(d), e.value = Array.from(t.values());
@@ -4799,23 +4800,23 @@ function or() {
4799
4800
  t.clear(), e.value = [];
4800
4801
  }
4801
4802
  function s(d) {
4802
- const { valueType: p } = d.value, x = d.compareType || "0", E = Js[Number(x)];
4803
+ const { valueType: p } = d.value, _ = d.compareType || "0", E = Ks[Number(_)];
4803
4804
  return o.get(p)[E];
4804
4805
  }
4805
4806
  function i(d) {
4806
- const p = d.relation === 2 ? 0 : 1, x = d.items.map((O) => {
4807
+ const p = d.relation === 2 ? 0 : 1, _ = d.items.map((O) => {
4807
4808
  const N = s(O);
4808
4809
  return (h) => N(h, O.fieldCode, O.value.getValue());
4809
4810
  }), E = d.children && d.children.length ? d.children.map((O) => i(O)) : [];
4810
- return { relation: p, filterFunctions: x, children: E };
4811
+ return { relation: p, filterFunctions: _, children: E };
4811
4812
  }
4812
4813
  function f() {
4813
4814
  const d = n(e.value);
4814
4815
  return i(d);
4815
4816
  }
4816
4817
  function u(d, p) {
4817
- const x = p.filterFunctions.map((O) => O(d)), E = p.children.map((O) => u(d, O));
4818
- return p.relation === 1 ? x.every((O) => O) && E.every((O) => O) : x.includes(!0) || E.includes(!0);
4818
+ const _ = p.filterFunctions.map((O) => O(d)), E = p.children.map((O) => u(d, O));
4819
+ return p.relation === 1 ? _.every((O) => O) && E.every((O) => O) : _.includes(!0) || E.includes(!0);
4819
4820
  }
4820
4821
  function v(d) {
4821
4822
  const p = f();
@@ -4823,7 +4824,7 @@ function or() {
4823
4824
  }
4824
4825
  return { apply: v, clearCondition: l, conditions: e, removeCondition: a };
4825
4826
  }
4826
- function on(e, t) {
4827
+ function nn(e, t) {
4827
4828
  var m;
4828
4829
  const { idField: n } = t, o = c(e.summary), a = c(e.group), l = c(((m = e.group) == null ? void 0 : m.groupFields) || []), s = P(() => {
4829
4830
  var h;
@@ -4866,7 +4867,7 @@ function on(e, t) {
4866
4867
  B.nestGroup = /* @__PURE__ */ new Map(), p(B.nestGroup, B.details, C + 1, w, V), B.details = [];
4867
4868
  }));
4868
4869
  }
4869
- function x(h, b) {
4870
+ function _(h, b) {
4870
4871
  return e.group && e.group.formatter ? e.group.formatter(h.value, { ...h, total: b }) : `${h.title}:${h.value} (${b})`;
4871
4872
  }
4872
4873
  function E(h) {
@@ -4897,7 +4898,7 @@ function on(e, t) {
4897
4898
  }
4898
4899
  C.groupSummaries && C.groupSummaries.size && C.groupSummaries.forEach((S, B) => {
4899
4900
  w[B] = S;
4900
- }), w[n.value] = `group_of_${C.field}_${C.value}`, w[C.field] = x(C, V);
4901
+ }), w[n.value] = `group_of_${C.field}_${C.value}`, w[C.field] = _(C, V);
4901
4902
  }), b.forEach((C, w) => {
4902
4903
  C.__fv_data_index__ = w;
4903
4904
  }), b;
@@ -4914,18 +4915,18 @@ function on(e, t) {
4914
4915
  }
4915
4916
  return { collpaseGroupIconClass: N, generateGroupData: O, groupFields: l, shouldGroupingData: s, showGroupPanel: i };
4916
4917
  }
4917
- function ar(e, t, n, o) {
4918
+ function or(e, t, n, o) {
4918
4919
  const a = c(!!e.hierarchy), { idField: l } = o, { collapseField: s, hasChildrenField: i, parentIdField: f } = n, u = /* @__PURE__ */ new Map();
4919
4920
  function v(F, T) {
4920
4921
  const y = /* @__PURE__ */ new Map();
4921
4922
  return F.reduce((I, $) => {
4922
- const _ = $[f.value] !== void 0 ? $[f.value] : "";
4923
- if (_ && T.has(_)) {
4924
- const L = T.get(_);
4923
+ const x = $[f.value] !== void 0 ? $[f.value] : "";
4924
+ if (x && T.has(x)) {
4925
+ const L = T.get(x);
4925
4926
  $.__fv_parent_index__ = L.__fv_index__, L.__fv_hasChildren__ = !0;
4926
4927
  }
4927
- const D = I.has(_) ? I.get(_) : [];
4928
- return D.push($), I.set(_, D), I;
4928
+ const D = I.has(x) ? I.get(x) : [];
4929
+ return D.push($), I.set(x, D), I;
4929
4930
  }, y), y;
4930
4931
  }
4931
4932
  function d(F) {
@@ -4946,7 +4947,7 @@ function ar(e, t, n, o) {
4946
4947
  });
4947
4948
  });
4948
4949
  }
4949
- function x(F) {
4950
+ function _(F) {
4950
4951
  F.forEach((T) => {
4951
4952
  const y = new Set(T.__fv_children_index__);
4952
4953
  T.__fv_children_index__ = [...y].sort((I, $) => I - $);
@@ -4958,7 +4959,7 @@ function ar(e, t, n, o) {
4958
4959
  Array.from(I.keys()).map(($) => T.get($)).forEach(($) => {
4959
4960
  $.__fv_children_index__.push(y.__fv_index__);
4960
4961
  });
4961
- }), x(F);
4962
+ }), _(F);
4962
4963
  }
4963
4964
  function O(F) {
4964
4965
  F.forEach((T) => {
@@ -4970,8 +4971,8 @@ function ar(e, t, n, o) {
4970
4971
  }
4971
4972
  function m(F, T) {
4972
4973
  Array.from(T.keys()).forEach((y) => {
4973
- T.get(y).reduce(($, _) => {
4974
- const D = _[l.value], L = F.get(_[l.value]), R = F.get(y);
4974
+ T.get(y).reduce(($, x) => {
4975
+ const D = x[l.value], L = F.get(x[l.value]), R = F.get(y);
4975
4976
  return R && (R.children.set(D, L), R.children.set(D, L), L.parentId = y, L.parentIndex = R.index, L.parents.set(y, R)), $;
4976
4977
  }, F);
4977
4978
  });
@@ -4999,8 +5000,8 @@ function ar(e, t, n, o) {
4999
5000
  }
5000
5001
  function w(F) {
5001
5002
  u.clear(), F.forEach((I, $) => {
5002
- const _ = I[l.value];
5003
- u.set(_, N(_, $));
5003
+ const x = I[l.value];
5004
+ u.set(x, N(x, $));
5004
5005
  });
5005
5006
  const T = d(F), y = v(F, T);
5006
5007
  return m(u, y), b(F, u), C(u), u;
@@ -5017,23 +5018,23 @@ function ar(e, t, n, o) {
5017
5018
  const T = d(F), y = v(F, T);
5018
5019
  return F.forEach((I, $) => {
5019
5020
  var R;
5020
- const _ = I[l.value], D = y.has(_) ? (R = y.get(_)) == null ? void 0 : R.map((A) => A.__fv_index__) : [], L = N(_, $);
5021
+ const x = I[l.value], D = y.has(x) ? (R = y.get(x)) == null ? void 0 : R.map((A) => A.__fv_index__) : [], L = N(x, $);
5021
5022
  I.__fv_graph_node__ = L, I.__fv_children_index__ = D, I.__fv_descendant_index__ = [...D], I.__fv_parents__ = /* @__PURE__ */ new Map(), S(I) && (I[s.value] = !0);
5022
5023
  }), p(F), E(F, T), e.showLines && O(F), F;
5023
5024
  }
5024
5025
  function g(F, T, y) {
5025
- const $ = y.value[F][l.value], _ = u.get($);
5026
- if (_) {
5027
- const D = u.get(_.parentId);
5026
+ const $ = y.value[F][l.value], x = u.get($);
5027
+ if (x) {
5028
+ const D = u.get(x.parentId);
5028
5029
  let L = y.value.length - 1;
5029
5030
  if (D) {
5030
- const R = Array.from(D.children.keys()).indexOf(_.id);
5031
+ const R = Array.from(D.children.keys()).indexOf(x.id);
5031
5032
  if (R === D.children.size - 1) {
5032
5033
  const K = Array.from(D.descendant.values())[D.descendant.size - 1];
5033
- L = y.value.findIndex((ie) => ie[l.value] === K.id) + 1;
5034
+ L = y.value.findIndex((ue) => ue[l.value] === K.id) + 1;
5034
5035
  } else {
5035
5036
  const K = Array.from(D.children.values())[R + 1];
5036
- L = y.value.findIndex((ie) => ie[l.value] === K.id);
5037
+ L = y.value.findIndex((ue) => ue[l.value] === K.id);
5037
5038
  }
5038
5039
  T[i.value] = !1, T[f.value] = D.id, y.value.splice(L, 0, T);
5039
5040
  }
@@ -5049,8 +5050,8 @@ function ar(e, t, n, o) {
5049
5050
  function k(F, T) {
5050
5051
  const y = F[l.value], I = u.get(y), $ = Array.from(I.descendant.keys());
5051
5052
  $.unshift(y);
5052
- const _ = u.get(I.parentId);
5053
- if (_ && (_.children.delete(y), _.children.size === 0)) {
5053
+ const x = u.get(I.parentId);
5054
+ if (x && (x.children.delete(y), x.children.size === 0)) {
5054
5055
  const L = T.find((R) => R[l.value] === I.parentId);
5055
5056
  L[i.value] = !1, L[s.value] = !1;
5056
5057
  }
@@ -5058,7 +5059,7 @@ function ar(e, t, n, o) {
5058
5059
  }
5059
5060
  return { generateHierarchyData: B, hasRealChildren: V, insertSibling: g, insertChild: M, shouldStratifyData: a, trimmedOriginalData: k };
5060
5061
  }
5061
- const lr = {
5062
+ const ar = {
5062
5063
  showCloseButton: { type: Boolean, default: !0 },
5063
5064
  position: { type: String, default: "top-center" },
5064
5065
  timeout: { type: Number, default: 3e3 },
@@ -5070,13 +5071,13 @@ const lr = {
5070
5071
  id: { type: String },
5071
5072
  animate: { type: String, default: "fadeIn" },
5072
5073
  options: { type: Object }
5073
- }, sr = {
5074
+ }, lr = {
5074
5075
  showCloseButton: { type: Boolean, default: !0 },
5075
5076
  animate: { type: String, default: "fadeIn" },
5076
5077
  options: { type: Object }
5077
5078
  }, dt = /* @__PURE__ */ ae({
5078
5079
  name: "Toast",
5079
- props: sr,
5080
+ props: lr,
5080
5081
  emits: ["close", "click"],
5081
5082
  setup: (e, t) => {
5082
5083
  const n = c(e.animate), o = "fadeOut", a = P(() => e.options), l = c(!1), s = P(() => {
@@ -5091,7 +5092,7 @@ const lr = {
5091
5092
  };
5092
5093
  return C[b] = !0, C;
5093
5094
  }), f = P(() => a.value.title || a.value.message), u = P(() => a.value.title && a.value.message), v = P(() => !a.value.title && a.value.message), d = P(() => e.showCloseButton), p = P(() => !!a.value.buttons || !!t.slots.default);
5094
- function x(m) {
5095
+ function _(m) {
5095
5096
  m.stopPropagation(), m.preventDefault(), l.value = !1, setTimeout(() => {
5096
5097
  t.emit("close", a.value);
5097
5098
  }, 200);
@@ -5118,7 +5119,7 @@ const lr = {
5118
5119
  }, [d.value && r("button", {
5119
5120
  title: "close",
5120
5121
  class: "toast-close f-btn-icon f-bare",
5121
- onClick: x
5122
+ onClick: _
5122
5123
  }, [r("span", {
5123
5124
  class: "f-icon modal_close"
5124
5125
  }, null)]), f.value && r("section", {
@@ -5149,7 +5150,7 @@ const lr = {
5149
5150
  }
5150
5151
  }), He = /* @__PURE__ */ ae({
5151
5152
  name: "Notify",
5152
- props: lr,
5153
+ props: ar,
5153
5154
  emits: ["close", "empty"],
5154
5155
  setup(e, t) {
5155
5156
  const n = P(() => ({
@@ -5160,11 +5161,11 @@ const lr = {
5160
5161
  top: 20,
5161
5162
  bottom: 12
5162
5163
  }, a = c(), l = c(e.options), s = c(e.showCloseButton), i = P(() => e.position || "bottom-right"), f = P(() => e.timeout != null ? e.timeout : 3e3), u = P(() => {
5163
- const p = e.bottom ? e.bottom : o.bottom, x = e.top ? e.top : o.top, E = {
5164
+ const p = e.bottom ? e.bottom : o.bottom, _ = e.top ? e.top : o.top, E = {
5164
5165
  transition: "all 0.2s ease",
5165
5166
  left: i.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
5166
5167
  right: i.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
5167
- top: i.value.indexOf("top") > -1 ? `${x}px` : "",
5168
+ top: i.value.indexOf("top") > -1 ? `${_}px` : "",
5168
5169
  bottom: i.value.indexOf("bottom") > -1 ? `${p}px` : ""
5169
5170
  };
5170
5171
  return i.value.indexOf("center") > -1 && (E.left = "50%", E.marginLeft = "calc(-24rem / 2)", i.value === "center-center" && (E.top = "50%", E.transform = "translate(-50%, -50%)")), E;
@@ -5179,7 +5180,7 @@ const lr = {
5179
5180
  container: a,
5180
5181
  notifyPosition: i
5181
5182
  });
5182
- function d(p, x) {
5183
+ function d(p, _) {
5183
5184
  v();
5184
5185
  }
5185
5186
  return () => r("div", {
@@ -5194,7 +5195,7 @@ const lr = {
5194
5195
  }, null)]);
5195
5196
  }
5196
5197
  });
5197
- class an {
5198
+ class on {
5198
5199
  constructor() {
5199
5200
  z(this, "notifyRefs", []);
5200
5201
  z(this, "globalConfig", ve({}));
@@ -5208,7 +5209,7 @@ class an {
5208
5209
  ...t
5209
5210
  }), l = document.createElement("div");
5210
5211
  l.style.display = "contents";
5211
- const s = Vt({
5212
+ const s = Bt({
5212
5213
  setup() {
5213
5214
  const i = c();
5214
5215
  function f() {
@@ -5227,12 +5228,12 @@ class an {
5227
5228
  document.body.removeChild(l);
5228
5229
  }), me(() => {
5229
5230
  n.updateNotifyPositionForCreate(a, i);
5230
- }), () => r(Bt, {
5231
+ }), () => r(Mt, {
5231
5232
  mode: "out-in",
5232
5233
  name: "fade",
5233
5234
  appear: !0
5234
5235
  }, {
5235
- default: () => [r(He, ke({
5236
+ default: () => [r(He, Te({
5236
5237
  ref: i
5237
5238
  }, a, {
5238
5239
  onClose: f
@@ -5305,53 +5306,52 @@ class an {
5305
5306
  }), this.notifyRefs.length = 0;
5306
5307
  }
5307
5308
  }
5308
- const rr = Symbol("NOTIFY_SERVICE_TOKEN");
5309
+ const sr = Symbol("NOTIFY_SERVICE_TOKEN");
5309
5310
  He.install = (e) => {
5310
5311
  e.component(He.name, He), e.component(dt.name, dt);
5311
- const t = new an();
5312
- e.provide(rr, t), e.provide("FNotifyService", t);
5312
+ const t = new on();
5313
+ e.provide(sr, t), e.provide("FNotifyService", t);
5313
5314
  };
5314
- function ir(e, t, n, o, a) {
5315
- var Ct, wt;
5316
- const { pageSize: l, total: s, shouldRenderPagination: i, currentPage: f, mode: u } = a, v = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), O = c([]), N = c([]), m = or(), h = on(e, o), { generateGroupData: b, groupFields: C, shouldGroupingData: w } = h, V = c(e.data), S = ar(e, V, n, o), {
5315
+ function rr(e, t, n, o, a) {
5316
+ var Ct;
5317
+ const { pageSize: l, total: s, shouldRenderPagination: i, currentPage: f, mode: u } = a, v = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), O = c([]), N = c([]), m = nr(), h = nn(e, o), { generateGroupData: b, groupFields: C, shouldGroupingData: w } = h, V = c(e.data), S = or(e, V, n, o), {
5317
5318
  generateHierarchyData: B,
5318
5319
  hasRealChildren: g,
5319
5320
  insertSibling: M,
5320
5321
  insertChild: k,
5321
5322
  shouldStratifyData: F,
5322
5323
  trimmedOriginalData: T
5323
- } = S, { idField: y, reviseIdentifyField: I } = o, $ = c(e.newDataItem), _ = c(e.data), D = c(e.data), { flatTreeData: L } = Sr(e);
5324
+ } = S, { idField: y, reviseIdentifyField: I } = o, $ = c(e.newDataItem), x = c(e.data), D = c(e.data), { flatTreeData: L } = xr(e);
5324
5325
  function R(j) {
5325
5326
  return L(j);
5326
5327
  }
5327
5328
  if (e.data && ((Ct = e.data[0]) != null && Ct.children)) {
5328
5329
  const j = R(e.data);
5329
- V.value = j, _.value = j, D.value = j;
5330
+ V.value = j, x.value = j, D.value = j;
5330
5331
  }
5331
5332
  const A = c(e.summary), K = P(() => {
5332
5333
  const j = A.value;
5333
5334
  return (j == null ? void 0 : j.groupFields) || [];
5334
5335
  });
5335
5336
  let ee = /* @__PURE__ */ new Map();
5336
- const ie = c(((wt = _.value) == null ? void 0 : wt.length) || 0), _e = c(e.pagination), Ie = new an(), ge = P(() => e.hierarchy ? 0 : i.value ? u.value === "server" ? 0 : (f.value - 1) * l.value : 0), Pe = P(() => i.value ? u.value === "server" ? Math.min(l.value, ie.value) : Math.min(ge.value + l.value, s.value, ie.value) : ie.value);
5337
+ const ue = P(() => {
5338
+ var j;
5339
+ return ((j = x.value) == null ? void 0 : j.length) || 0;
5340
+ }), xe = c(e.pagination), Ie = new on(), ge = P(() => e.hierarchy ? 0 : i.value ? u.value === "server" ? 0 : (f.value - 1) * l.value : 0), Pe = P(() => i.value ? u.value === "server" ? Math.min(l.value, ue.value) : Math.min(ge.value + l.value, s.value, ue.value) : ue.value);
5337
5341
  Q(() => V.value.length, (j, X) => {
5338
5342
  j !== X && (s.value = j);
5339
- }), Q(_, (j, X) => {
5340
- ie.value = j.length;
5341
- }, {
5342
- deep: !0
5343
5343
  });
5344
5344
  function Me() {
5345
5345
  var fe, Ve;
5346
- _.value = V.value, w.value && (_.value = b(C.value, V.value, t)), ee = K.value.reduce((be, te) => (be.set(te, 0), be), ee);
5346
+ x.value = _e(V.value), w.value && (x.value = b(C.value, V.value, t)), ee = K.value.reduce((be, te) => (be.set(te, 0), be), ee);
5347
5347
  const j = ge.value, X = Pe.value;
5348
5348
  let J = 0;
5349
5349
  const se = [];
5350
- if ((fe = _.value) != null && fe.length) {
5351
- I(_.value);
5350
+ if ((fe = x.value) != null && fe.length) {
5351
+ I(x.value);
5352
5352
  const be = y.value !== e.idField;
5353
5353
  for (let te = j; te < X; te++) {
5354
- const ne = _.value[te];
5354
+ const ne = x.value[te];
5355
5355
  ne.__fv_data_grid_group_row__ ? (J = 0, ne.__fv_data_index__ = "") : ne.__fv_data_grid_group_summary__ ? ne.__fv_data_index__ = "" : (ne.__fv_disabled__ = ne[((Ve = e.rowOption) == null ? void 0 : Ve.disabledField) || "disabled"], J++, i.value ? ne.__fv_data_index__ = J + (f.value - 1) * l.value : ne.__fv_data_index__ = J), ne.__fv_index__ = te, be && (ne[y.value] = te), K.value.forEach((pe) => {
5356
5356
  const Re = ee.get(pe) || 0;
5357
5357
  ee.set(pe, Re + ne[pe]);
@@ -5415,77 +5415,77 @@ function ir(e, t, n, o, a) {
5415
5415
  }
5416
5416
  function Qe(j) {
5417
5417
  const X = j.raw[y.value], J = (se) => !se.__fv_parents__.has(X);
5418
- x.set(`fold_${X}`, {
5418
+ _.set(`fold_${X}`, {
5419
5419
  field: "id",
5420
5420
  fieldName: "id",
5421
5421
  fieldType: "string",
5422
5422
  filterValue: String(X),
5423
5423
  filter: J
5424
- }), ce(Array.from(x.values()), Array.from(E.values())), B(de.value);
5424
+ }), ce(Array.from(_.values()), Array.from(E.values())), B(de.value);
5425
5425
  }
5426
5426
  function H(j) {
5427
5427
  const X = j[y.value];
5428
- x.delete(`fold_${X}`);
5428
+ _.delete(`fold_${X}`);
5429
5429
  }
5430
5430
  function Z(j) {
5431
- H(j.raw), ce(Array.from(x.values()), Array.from(E.values()), !0), B(de.value);
5431
+ H(j.raw), ce(Array.from(_.values()), Array.from(E.values()), !0), B(de.value);
5432
5432
  }
5433
5433
  function le() {
5434
5434
  const j = Me();
5435
- de.value = j, e.hierarchy && (ce(Array.from(x.values()), Array.from(E.values())), B(de.value));
5435
+ de.value = j, e.hierarchy && (ce(Array.from(_.values()), Array.from(E.values())), B(de.value));
5436
5436
  }
5437
5437
  function Be(j) {
5438
5438
  var X;
5439
5439
  if (j && ((X = j[0]) != null && X.children)) {
5440
5440
  const J = R(j);
5441
- V.value = J, _.value = J, D.value = J;
5441
+ V.value = J, x.value = J, D.value = J;
5442
5442
  } else
5443
- V.value = j, _.value = j, D.value = j;
5443
+ V.value = j, x.value = j, D.value = j;
5444
5444
  le();
5445
5445
  }
5446
5446
  function Ze(j, X, J) {
5447
5447
  return (j && j.length ? de.value.filter((fe, Ve) => j.reduce((be, te) => be && te.filter(fe), !0)) : de.value).slice(X, J);
5448
5448
  }
5449
- function rn(j) {
5450
- (j - 1) * l.value <= ie.value && le();
5449
+ function sn(j) {
5450
+ (j - 1) * l.value <= ue.value && le();
5451
5451
  }
5452
- function un(j) {
5453
- V.value.push(Fe(j)), de.value = Me();
5452
+ function rn(j) {
5453
+ V.value.push(_e(j)), de.value = Me();
5454
5454
  }
5455
- function cn(j = 0) {
5455
+ function un(j = 0) {
5456
5456
  if (!(j > -1))
5457
5457
  return !1;
5458
5458
  const J = $.value();
5459
5459
  e.hierarchy ? M(j, J, V) : V.value.splice(j, 0, J), le();
5460
5460
  }
5461
- function dn(j = 0) {
5461
+ function cn(j = 0) {
5462
5462
  if (!(j > -1 && e.hierarchy))
5463
5463
  return !1;
5464
5464
  const J = $.value(), se = V.value[j];
5465
5465
  H(se), k(j, J, V), le();
5466
5466
  }
5467
- function fn(j) {
5467
+ function dn(j) {
5468
5468
  const X = j ? j - 1 : 0;
5469
5469
  V.value.splice(X, 1), le();
5470
5470
  }
5471
- function pn(j) {
5471
+ function fn(j) {
5472
5472
  const X = V.value.findIndex((J) => J[y.value] === j);
5473
5473
  X !== -1 && (V.value.splice(X, 1), le());
5474
5474
  }
5475
- function mn(j) {
5475
+ function pn(j) {
5476
5476
  const X = j > -1 ? V.value[j] : null;
5477
5477
  if (!(X && X.deletable !== !1))
5478
5478
  return !1;
5479
5479
  V.value = T(X, V.value), le();
5480
5480
  }
5481
- function vn() {
5481
+ function mn() {
5482
5482
  const j = p.size > 0 ? Array.from(p.values()) : [];
5483
5483
  return ce(j, Array.from(E.values()));
5484
5484
  }
5485
- function hn(j) {
5486
- _e.value && (_e.value.size = j, le());
5485
+ function vn(j) {
5486
+ xe.value && (xe.value.size = j, le());
5487
5487
  }
5488
- function gn(j, X) {
5488
+ function hn(j, X) {
5489
5489
  const J = V.value[Number(j) - 1];
5490
5490
  J.editable !== !1 ? (J.name = X, le()) : Ie.show({
5491
5491
  showCloseButton: !1,
@@ -5494,7 +5494,7 @@ function ir(e, t, n, o, a) {
5494
5494
  toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
5495
5495
  });
5496
5496
  }
5497
- function yn(j) {
5497
+ function gn(j) {
5498
5498
  return j.map((J) => {
5499
5499
  const se = D.value.findIndex((fe) => fe[y.value] === J);
5500
5500
  return se > -1 ? D.value[se] : null;
@@ -5502,32 +5502,32 @@ function ir(e, t, n, o, a) {
5502
5502
  }
5503
5503
  return {
5504
5504
  addFilter: De,
5505
- addNewDataItem: un,
5505
+ addNewDataItem: rn,
5506
5506
  addSorter: Ue,
5507
- changePageSizeTo: hn,
5507
+ changePageSizeTo: vn,
5508
5508
  collapse: Ke,
5509
5509
  dataView: de,
5510
- editDataItem: gn,
5510
+ editDataItem: hn,
5511
5511
  expand: Je,
5512
5512
  filters: O,
5513
5513
  fold: Qe,
5514
5514
  getRange: Ze,
5515
- getSelectionItems: yn,
5515
+ getSelectionItems: gn,
5516
5516
  hasRealChildren: g,
5517
5517
  load: Be,
5518
- navigatePageTo: rn,
5518
+ navigatePageTo: sn,
5519
5519
  summaries: ee,
5520
- totalItems: ie,
5521
- insertNewDataItem: cn,
5522
- insertNewChildDataItem: dn,
5520
+ totalItems: ue,
5521
+ insertNewDataItem: un,
5522
+ insertNewChildDataItem: cn,
5523
5523
  removeAllFilter: Ye,
5524
- removeDataItem: fn,
5525
- removeDataItemById: pn,
5524
+ removeDataItem: dn,
5525
+ removeDataItemById: fn,
5526
5526
  removeFilter: Ne,
5527
- removeHierarchyDataItem: mn,
5527
+ removeHierarchyDataItem: pn,
5528
5528
  removeSorter: Xe,
5529
5529
  rawView: D,
5530
- refresh: vn,
5530
+ refresh: mn,
5531
5531
  setSorters: Le,
5532
5532
  sorters: N,
5533
5533
  updateDataView: le,
@@ -5537,7 +5537,7 @@ function ir(e, t, n, o, a) {
5537
5537
  originalData: V
5538
5538
  };
5539
5539
  }
5540
- function ur(e) {
5540
+ function ir(e) {
5541
5541
  c(e.selection.showCheckbox || !1);
5542
5542
  const t = P(() => {
5543
5543
  var s;
@@ -5551,9 +5551,9 @@ function ur(e) {
5551
5551
  }), a = P(() => e.hierarchy && e.selection.showCheckbox), l = P(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
5552
5552
  return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: l };
5553
5553
  }
5554
- function cr(e, t, n, o, a, l, s, i) {
5554
+ function ur(e, t, n, o, a, l, s, i) {
5555
5555
  const f = c(o.value - 1 + a), u = c(0), { renderDataRow: v } = l, d = s ? s.renderGroupRow : v, p = i ? i.renderSummaryRow : v;
5556
- function x(N) {
5556
+ function _(N) {
5557
5557
  let m = v;
5558
5558
  return N.__fv_data_grid_group_row__ && (m = d), N.__fv_data_grid_group_summary__ && (m = p), m;
5559
5559
  }
@@ -5562,7 +5562,7 @@ function cr(e, t, n, o, a, l, s, i) {
5562
5562
  if (C.value.length > 0) {
5563
5563
  const V = b ? Date.now().toString() : "";
5564
5564
  for (let S = N, B = 0; S <= m; S++, B++) {
5565
- const g = C.value[S], M = C.value[S - 1] || h, k = w[B - 1], F = M ? (M.__fv_data_position__ || 0) + (M.__fv_data_height__ || 0) : 0, y = x(g)(g, M, k, S, F, t.value, w);
5565
+ const g = C.value[S], M = C.value[S - 1] || h, k = w[B - 1], F = M ? (M.__fv_data_position__ || 0) + (M.__fv_data_height__ || 0) : 0, y = _(g)(g, M, k, S, F, t.value, w);
5566
5566
  y.refreshKey = V, w.push(y);
5567
5567
  }
5568
5568
  }
@@ -5576,7 +5576,7 @@ function cr(e, t, n, o, a, l, s, i) {
5576
5576
  }
5577
5577
  return { getVisualData: E, maxVisibleRowIndex: f, minVisibleRowIndex: u, toggleGroupRow: O };
5578
5578
  }
5579
- function dr() {
5579
+ function cr() {
5580
5580
  function e(t, n) {
5581
5581
  const {
5582
5582
  formatter: o
@@ -5587,7 +5587,7 @@ function dr() {
5587
5587
  renderEnumColumn: e
5588
5588
  };
5589
5589
  }
5590
- function fr() {
5590
+ function dr() {
5591
5591
  function e(o, a) {
5592
5592
  return o ? r("span", {
5593
5593
  innerHTML: a.formatter.trueText
@@ -5612,10 +5612,10 @@ function fr() {
5612
5612
  renderBooleanColumn: n
5613
5613
  };
5614
5614
  }
5615
- function pr() {
5615
+ function fr() {
5616
5616
  const {
5617
5617
  formatTo: e
5618
- } = jo();
5618
+ } = Lo();
5619
5619
  function t(o, a) {
5620
5620
  return e(o, a.formatter.dateFormat);
5621
5621
  }
@@ -5627,10 +5627,10 @@ function pr() {
5627
5627
  renderDateColumn: n
5628
5628
  };
5629
5629
  }
5630
- function mr() {
5630
+ function pr() {
5631
5631
  const {
5632
5632
  formatTo: e
5633
- } = Ao();
5633
+ } = jo();
5634
5634
  function t(o, a) {
5635
5635
  const {
5636
5636
  formatter: l
@@ -5651,16 +5651,16 @@ function mr() {
5651
5651
  renderNumberColumn: n
5652
5652
  };
5653
5653
  }
5654
- function vr() {
5654
+ function mr() {
5655
5655
  const {
5656
5656
  renderBooleanColumn: e
5657
- } = fr(), {
5658
- renderEnumColumn: t
5659
5657
  } = dr(), {
5658
+ renderEnumColumn: t
5659
+ } = cr(), {
5660
5660
  renderNumberColumn: n
5661
- } = mr(), {
5661
+ } = pr(), {
5662
5662
  renderDateColumn: o
5663
- } = pr();
5663
+ } = fr();
5664
5664
  function a(i) {
5665
5665
  return i;
5666
5666
  }
@@ -5680,9 +5680,9 @@ function vr() {
5680
5680
  renderFormatColumn: s
5681
5681
  };
5682
5682
  }
5683
- function hr(e, t, n) {
5683
+ function vr(e, t, n) {
5684
5684
  var N;
5685
- const o = c(e.mergeCell), l = ((N = c(e.rowOption).value) == null ? void 0 : N.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: i } = gl(), { renderFormatColumn: f } = vr();
5685
+ const o = c(e.mergeCell), l = ((N = c(e.rowOption).value) == null ? void 0 : N.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: i } = hl(), { renderFormatColumn: f } = mr();
5686
5686
  function u(m, h, b, C, w, V = 1) {
5687
5687
  const S = {
5688
5688
  colSpan: V,
@@ -5713,11 +5713,11 @@ function hr(e, t, n) {
5713
5713
  return m.getEditor = (C) => t.getEditor(C, h, C.parent), m.setRef = (C) => l && s(C, m, b), m.update = (C) => {
5714
5714
  C !== void 0 && (m.editingData = C);
5715
5715
  }, m.accept = () => {
5716
- xt(m.editingData, b, h.field), m.data = $e(b, h.field);
5716
+ _t(m.editingData, b, h.field), m.data = $e(b, h.field);
5717
5717
  }, m.cancel = () => {
5718
5718
  m.editingData = m.data;
5719
5719
  }, m.updateData = (C) => {
5720
- xt($e(C, h.field), b, h.field), m.data = $e(b, h.field);
5720
+ _t($e(C, h.field), b, h.field), m.data = $e(b, h.field);
5721
5721
  }, m;
5722
5722
  }
5723
5723
  function d(m, h) {
@@ -5730,28 +5730,28 @@ function hr(e, t, n) {
5730
5730
  V.rowSpan++, V.spanned = V.spanned || [], V.spanned.push(m), m.colSpan = 0, m.rowSpan = 0, m.spannedBy = V;
5731
5731
  }
5732
5732
  }
5733
- function x(m, h, b) {
5733
+ function _(m, h, b) {
5734
5734
  o.value && p(m, h, b.field);
5735
5735
  }
5736
5736
  function E(m, h) {
5737
5737
  h.showEllipsis !== void 0 && (m.showEllipsis = h.showEllipsis), m.align = h.align || "left", m.valign = h.valign || "middle";
5738
5738
  }
5739
5739
  function O(m, h, b, C, w) {
5740
- const V = m.readonly ? ue.readonly : ue.editable, S = u(m.field, V, h, b, C);
5741
- return E(S, m), v(S, m, b), d(S, m), x(S, w, m), S;
5740
+ const V = m.readonly ? ie.readonly : ie.editable, S = u(m.field, V, h, b, C);
5741
+ return E(S, m), v(S, m, b), d(S, m), _(S, w, m), S;
5742
5742
  }
5743
5743
  return { createCellByColumn: O, createCellByField: u };
5744
5744
  }
5745
- function gr(e, t, n, o, a, l) {
5745
+ function hr(e, t, n, o, a, l) {
5746
5746
  var m, h;
5747
5747
  const s = c(e.rowOption), i = ((m = s.value) == null ? void 0 : m.height) || 28, f = ((h = s.value) == null ? void 0 : h.wrapContent) || !1, { idField: u } = o, { collapseField: v } = n, { updateRowPosition: d } = a, { createCellByColumn: p } = l;
5748
- function x(b, C, w, V, S, B, g) {
5749
- var ie, _e, Ie;
5748
+ function _(b, C, w, V, S, B, g) {
5749
+ var ue, xe, Ie;
5750
5750
  const {
5751
5751
  __fv_data_grid_group_field__: M,
5752
5752
  __fv_data_grid_group_value__: k,
5753
5753
  __fv_data_index__: F
5754
- } = w, T = w.__fv_data_grid_group_layer__ || (w.__fv_parents__ ? (ie = w.__fv_parents__) == null ? void 0 : ie.size : 0) || 0, y = typeof w.parent == "number" ? Number(w.parent) : -1, I = w.__fv_data_grid_group_collapse__ || w[v.value], $ = w.__fv_visible__ === void 0 ? !0 : w.__fv_visible__, _ = w.__fv_checked__, D = w.__fv_indeterminate__, L = w.__fv_disabled__ || w[((_e = e.rowOption) == null ? void 0 : _e.disabledField) || "disabled"], R = g == null ? void 0 : g.find((ge) => ge.raw[u.value] === w.parent), A = R && R.collapse;
5754
+ } = w, T = w.__fv_data_grid_group_layer__ || (w.__fv_parents__ ? (ue = w.__fv_parents__) == null ? void 0 : ue.size : 0) || 0, y = typeof w.parent == "number" ? Number(w.parent) : -1, I = w.__fv_data_grid_group_collapse__ || w[v.value], $ = w.__fv_visible__ === void 0 ? !0 : w.__fv_visible__, x = w.__fv_checked__, D = w.__fv_indeterminate__, L = w.__fv_disabled__ || w[((xe = e.rowOption) == null ? void 0 : xe.disabledField) || "disabled"], R = g == null ? void 0 : g.find((ge) => ge.raw[u.value] === w.parent), A = R && R.collapse;
5755
5755
  V && (V.parent, w.parent);
5756
5756
  const K = A || R && !R.visible, ee = {
5757
5757
  collapse: I,
@@ -5766,7 +5766,7 @@ function gr(e, t, n, o, a, l) {
5766
5766
  top: B,
5767
5767
  type: b,
5768
5768
  raw: w,
5769
- checked: _,
5769
+ checked: x,
5770
5770
  disabled: L,
5771
5771
  indeterminate: D,
5772
5772
  setRef: (ge) => {
@@ -5778,7 +5778,7 @@ function gr(e, t, n, o, a, l) {
5778
5778
  return V || (w.__fv_data_position__ = 0), f || (ee.height = i, w.__fv_data_height__ = ee.height, d(ee, w)), (Ie = s.value) != null && Ie.customRowStatus && (s.value.customRowStatus(ee), w.__fv_collapse__ = ee.collapse, w.__fv_visible__ = ee.visible, w.__fv_disabled__ = ee.disabled), ee;
5779
5779
  }
5780
5780
  function E(b, C, w, V, S, B, g) {
5781
- const M = x(We.data, S, C, w, V, B, g);
5781
+ const M = _(We.data, S, C, w, V, B, g);
5782
5782
  return b.forEach((k, F) => {
5783
5783
  M.data[k.field] = p(k, S, C, M, V);
5784
5784
  }), M;
@@ -5798,9 +5798,9 @@ function gr(e, t, n, o, a, l) {
5798
5798
  g
5799
5799
  ) : O(F, V, M, S, w);
5800
5800
  }
5801
- return { createEmptyRow: x, createNewRowFromDataItem: E, renderDataRow: N };
5801
+ return { createEmptyRow: _, createNewRowFromDataItem: E, renderDataRow: N };
5802
5802
  }
5803
- function yr(e, t, n, o) {
5803
+ function gr(e, t, n, o) {
5804
5804
  const a = c(e.summary), { idField: l } = t, { createCellByField: s } = n, { createEmptyRow: i } = o, f = P(() => {
5805
5805
  const p = a.value;
5806
5806
  return (p == null ? void 0 : p.groupFields) || [];
@@ -5808,35 +5808,35 @@ function yr(e, t, n, o) {
5808
5808
  const p = a.value;
5809
5809
  return p && p.enable && p.groupFields && p.groupFields.length > 0;
5810
5810
  });
5811
- function v(p, x, E, O) {
5811
+ function v(p, _, E, O) {
5812
5812
  if (u.value) {
5813
- const N = p.data[x];
5813
+ const N = p.data[_];
5814
5814
  let m = N.colSpan;
5815
5815
  const h = f.value.reduce((b, C) => (b.set(C, !0), b), /* @__PURE__ */ new Map());
5816
5816
  O.reduce((b, C, w) => {
5817
5817
  if (h.has(C.field)) {
5818
- const V = s(C.field, ue.readonly, w, E, p);
5818
+ const V = s(C.field, ie.readonly, w, E, p);
5819
5819
  p.data[C.field] = V, m - 1 > w && (m = w);
5820
5820
  }
5821
5821
  return b;
5822
5822
  }, p), N.colSpan = m;
5823
5823
  }
5824
5824
  }
5825
- function d(p, x, E, O, N, m, h) {
5826
- const b = p.__fv_data_grid_group_field__, C = i(We.group, O, p, x, E, N);
5827
- return C.data[l.value] = s(l.value, ue.readonly, -1, p, C, 0), C.data[b] = s(b, ue.readonly, 1, p, C, m.length), v(C, b, p, m), C;
5825
+ function d(p, _, E, O, N, m, h) {
5826
+ const b = p.__fv_data_grid_group_field__, C = i(We.group, O, p, _, E, N);
5827
+ return C.data[l.value] = s(l.value, ie.readonly, -1, p, C, 0), C.data[b] = s(b, ie.readonly, 1, p, C, m.length), v(C, b, p, m), C;
5828
5828
  }
5829
5829
  return { renderGroupRow: d };
5830
5830
  }
5831
- function br(e, t, n, o) {
5831
+ function yr(e, t, n, o) {
5832
5832
  const { idField: a } = t, { createCellByField: l } = n, { createEmptyRow: s } = o;
5833
- function i(f, u, v, d, p, x, E) {
5833
+ function i(f, u, v, d, p, _, E) {
5834
5834
  const O = f.__fv_data_grid_group_field__, N = s(We.summary, d, f, u, v, p);
5835
- return N.data[a.value] = l(a.value, ue.readonly, -1, f, N), N.data[O] = l(O, ue.readonly, 1, f, N, x.length), N;
5835
+ return N.data[a.value] = l(a.value, ie.readonly, -1, f, N), N.data[O] = l(O, ie.readonly, 1, f, N, _.length), N;
5836
5836
  }
5837
5837
  return { renderSummaryRow: i };
5838
5838
  }
5839
- function Cr(e, t, n) {
5839
+ function br(e, t, n) {
5840
5840
  var B;
5841
5841
  const {
5842
5842
  idField: o
@@ -5854,34 +5854,34 @@ function Cr(e, t, n) {
5854
5854
  function p(g) {
5855
5855
  return u && u.raw[o.value] === g ? u : null;
5856
5856
  }
5857
- const x = ve({});
5857
+ const _ = ve({});
5858
5858
  function E(g, M, k = {}) {
5859
- g.mode = ue.editing, f = g, u = M, v = M == null ? void 0 : M.raw[g.field], d = k;
5859
+ g.mode = ie.editing, f = g, u = M, v = M == null ? void 0 : M.raw[g.field], d = k;
5860
5860
  }
5861
5861
  function O(g) {
5862
- g.accept(), g.mode = ue.editable, f = null, t.emit("endEditCell", {
5862
+ g.accept(), g.mode = ie.editable, f = null, t.emit("endEditCell", {
5863
5863
  cell: g,
5864
5864
  row: u,
5865
5865
  newValue: u == null ? void 0 : u.raw[g.field],
5866
5866
  oldValue: v,
5867
5867
  column: d,
5868
- editor: x
5868
+ editor: _
5869
5869
  });
5870
5870
  }
5871
5871
  function N(g) {
5872
5872
  document.body.classList.contains("lookup-modal-open") || (f && (O(f), u && (u = void 0)), document.body.removeEventListener("click", N));
5873
5873
  }
5874
5874
  function m(g, M, k, F = {}) {
5875
- a.value && l.value.editMode === "cell" && M.mode === ue.editable && (f && O(f), E(M, k, F), document.body.removeEventListener("click", N), document.body.addEventListener("click", N));
5875
+ a.value && l.value.editMode === "cell" && M.mode === ie.editable && (f && O(f), E(M, k, F), document.body.removeEventListener("click", N), document.body.addEventListener("click", N));
5876
5876
  }
5877
5877
  function h(g) {
5878
- Object.values(g.data).filter((M) => M.mode === ue.editable && M.field !== "__commands__").forEach((M) => {
5879
- M.mode = ue.editing;
5878
+ Object.values(g.data).filter((M) => M.mode === ie.editable && M.field !== "__commands__").forEach((M) => {
5879
+ M.mode = ie.editing;
5880
5880
  }), g.status = he.editing, u = g;
5881
5881
  }
5882
5882
  function b(g, M) {
5883
- Object.values(g.data).filter((k) => k.mode === ue.editing).forEach((k) => {
5884
- M ? k.accept() : k.cancel(), k.mode = ue.editable;
5883
+ Object.values(g.data).filter((k) => k.mode === ie.editing).forEach((k) => {
5884
+ M ? k.accept() : k.cancel(), k.mode = ie.editable;
5885
5885
  }), g.status = he.initial, u === g && (u = void 0);
5886
5886
  }
5887
5887
  function C(g) {
@@ -5901,8 +5901,8 @@ function Cr(e, t, n) {
5901
5901
  rowData: k.raw,
5902
5902
  column: M,
5903
5903
  cell: g,
5904
- editor: x
5905
- }, r(qn, {
5904
+ editor: _
5905
+ }, r(Gn, {
5906
5906
  focusOnCreated: e.focusOnEditingCell,
5907
5907
  selectOnCreated: e.selectOnEditingCell,
5908
5908
  editor: T,
@@ -5920,7 +5920,7 @@ function Cr(e, t, n) {
5920
5920
  getEditor: S
5921
5921
  };
5922
5922
  }
5923
- function wr(e) {
5923
+ function Cr(e) {
5924
5924
  const t = c(e.idField);
5925
5925
  function n(o) {
5926
5926
  if (o && o.length) {
@@ -5930,12 +5930,12 @@ function wr(e) {
5930
5930
  }
5931
5931
  return { idField: t, reviseIdentifyField: n };
5932
5932
  }
5933
- function _r(e, t, n, o, a) {
5933
+ function wr(e, t, n, o, a) {
5934
5934
  const { idField: l } = n, s = c(""), i = P(() => e.selection.enableSelectRow), f = c(e.selection.multiSelect ?? !1), u = c(e.selection.multiSelectMode), v = c(e.selection.showCheckbox), d = c(e.selection.showSelectAll), p = c(e.selectionValues);
5935
5935
  Q(() => e.selection.showSelectAll, (R, A) => {
5936
5936
  R !== A && (d.value = R);
5937
5937
  });
5938
- function x() {
5938
+ function _() {
5939
5939
  return t.getSelectionItems(p.value);
5940
5940
  }
5941
5941
  function E() {
@@ -6009,7 +6009,7 @@ function _r(e, t, n, o, a) {
6009
6009
  M(K);
6010
6010
  }), C());
6011
6011
  }
6012
- function _() {
6012
+ function x() {
6013
6013
  o.value.forEach((R) => M(R)), s.value = "", C();
6014
6014
  }
6015
6015
  function D() {
@@ -6027,7 +6027,7 @@ function _r(e, t, n, o, a) {
6027
6027
  enableMultiSelect: f,
6028
6028
  enableSelectRow: i,
6029
6029
  findIndexInSelectedItems: B,
6030
- getSelectedItems: x,
6030
+ getSelectedItems: _,
6031
6031
  getSelectionRow: L,
6032
6032
  indeterminate: F,
6033
6033
  isSelectingHirarchyItem: N,
@@ -6036,7 +6036,7 @@ function _r(e, t, n, o, a) {
6036
6036
  multiSelectOnClickRowWithShift: h,
6037
6037
  multiSelectOnlyOnCheck: m,
6038
6038
  select: M,
6039
- selectAll: _,
6039
+ selectAll: x,
6040
6040
  selectedValues: p,
6041
6041
  selectItem: y,
6042
6042
  selectItemById: I,
@@ -6051,9 +6051,9 @@ function _r(e, t, n, o, a) {
6051
6051
  function Ce(e) {
6052
6052
  return typeof e > "u";
6053
6053
  }
6054
- function xr(e) {
6055
- var d, p, x, E, O, N, m, h;
6056
- const t = c((d = e.pagination) == null ? void 0 : d.enable), n = c(((p = e.pagination) == null ? void 0 : p.index) || 1), o = c((x = e.pagination) == null ? void 0 : x.size), a = c((E = e.pagination) == null ? void 0 : E.sizeLimits), l = c((O = e.pagination) == null ? void 0 : O.mode), s = c((N = e.pagination) == null ? void 0 : N.showIndex), i = c((m = e.pagination) == null ? void 0 : m.showLimits), f = c(((h = e.pagination) == null ? void 0 : h.total) || 0), u = c(f.value || e.data.length || 0);
6054
+ function _r(e) {
6055
+ var d, p, _, E, O, N, m, h;
6056
+ const t = c((d = e.pagination) == null ? void 0 : d.enable), n = c(((p = e.pagination) == null ? void 0 : p.index) || 1), o = c((_ = e.pagination) == null ? void 0 : _.size), a = c((E = e.pagination) == null ? void 0 : E.sizeLimits), l = c((O = e.pagination) == null ? void 0 : O.mode), s = c((N = e.pagination) == null ? void 0 : N.showIndex), i = c((m = e.pagination) == null ? void 0 : m.showLimits), f = c(((h = e.pagination) == null ? void 0 : h.total) || 0), u = c(f.value || e.data.length || 0);
6057
6057
  return Q(() => {
6058
6058
  var b;
6059
6059
  return (b = e.pagination) == null ? void 0 : b.sizeLimits;
@@ -6100,16 +6100,16 @@ function xr(e) {
6100
6100
  }
6101
6101
  };
6102
6102
  }
6103
- function Sr(e) {
6103
+ function xr(e) {
6104
6104
  const t = "parent", n = "layer", o = "hasChildren", a = (l, s = 1, i = [], f = null) => (l = l || [], l.reduce((u, v) => (v.id = v.id || v.data[e.idField], v[t] = f, v[n] = s, v[o] = !1, v = { ...v, ...v.data }, i.push(v), v.children && v.children.length && (v[o] = !0, a(v.children, s + 1, i, v.id)), u), i), i);
6105
6105
  return { flatTreeData: a };
6106
6106
  }
6107
- const kr = /* @__PURE__ */ ae({
6107
+ const Sr = /* @__PURE__ */ ae({
6108
6108
  name: "FListViewDesign",
6109
6109
  props: qe,
6110
6110
  emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
6111
6111
  setup(e, t) {
6112
- const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f = wr(e), u = ur(e), v = on(e, f), d = xr(e), p = ir(e, /* @__PURE__ */ new Map(), u, f, d), x = _r(e, p, f, l, t), E = Gt(e, n), O = c(), N = Se("design-item-context"), m = gt(O, N), h = P(() => p.dataView.value.length), b = Cr(e, t, f), C = hl(), w = hr(e, {}, C), V = gr(e, b, u, f, C, w), S = yr(e, f, w, V), B = br(e, f, w, V), g = cr(e, i, p, h, s, V, S, B), {
6112
+ const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f = Cr(e), u = ir(e), v = nn(e, f), d = _r(e), p = rr(e, /* @__PURE__ */ new Map(), u, f, d), _ = wr(e, p, f, l, t), E = zt(e, n), O = c(), N = ke("design-item-context"), m = gt(O, N), h = P(() => p.dataView.value.length), b = br(e, t, f), C = vl(), w = vr(e, {}, C), V = hr(e, b, u, f, C, w), S = gr(e, f, w, V), B = yr(e, f, w, V), g = ur(e, i, p, h, s, V, S, B), {
6113
6113
  getVisualData: M
6114
6114
  } = g;
6115
6115
  l.value = M(0, h.value + s - 1), me(() => {
@@ -6123,19 +6123,19 @@ const kr = /* @__PURE__ */ ae({
6123
6123
  return e.size !== "default" && (D[`${e.size}-item`] = !0), D;
6124
6124
  }), F = P(() => !!t.slots.footer || o.value);
6125
6125
  function T() {
6126
- return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ? Wt : ze;
6126
+ return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ? qt : ze;
6127
6127
  }
6128
6128
  const y = T(), {
6129
6129
  renderHeader: I
6130
6130
  } = y(e, t, E), {
6131
6131
  renderListArea: $
6132
- } = qt(e, t, l, p, v, x, g);
6133
- function _(D) {
6132
+ } = Gt(e, t, l, p, v, _, g);
6133
+ function x(D) {
6134
6134
  e.multiSelect && (D.preventDefault(), D.stopPropagation());
6135
6135
  }
6136
6136
  return () => r("div", {
6137
6137
  class: k.value,
6138
- onClick: _
6138
+ onClick: x
6139
6139
  }, [I(), r("div", {
6140
6140
  ref: n,
6141
6141
  class: "f-list-view-content",
@@ -6223,7 +6223,7 @@ const kr = /* @__PURE__ */ ae({
6223
6223
  }, [l.date])])])])]))]);
6224
6224
  };
6225
6225
  }
6226
- }), Tr = "https://json-schema.org/draft/2020-12/schema", Fr = "https://farris-design.gitee.io/list-view-table.schema.json", Er = "list-view-table", Ir = "A Farris Component", Mr = "object", Br = {
6226
+ }), kr = "https://json-schema.org/draft/2020-12/schema", Tr = "https://farris-design.gitee.io/list-view-table.schema.json", Fr = "list-view-table", Er = "A Farris Component", Ir = "object", Mr = {
6227
6227
  id: {
6228
6228
  description: "The unique identifier for list-view-table",
6229
6229
  type: "string"
@@ -6285,18 +6285,18 @@ const kr = /* @__PURE__ */ ae({
6285
6285
  type: "boolean",
6286
6286
  default: !0
6287
6287
  }
6288
- }, Vr = [
6288
+ }, Br = [
6289
6289
  "id",
6290
6290
  "type"
6291
- ], Or = {
6292
- $schema: Tr,
6293
- $id: Fr,
6294
- title: Er,
6295
- description: Ir,
6296
- type: Mr,
6297
- properties: Br,
6298
- required: Vr
6299
- }, Dr = "list-view-table", Nr = "A Farris Component", Rr = "object", $r = {
6291
+ ], Vr = {
6292
+ $schema: kr,
6293
+ $id: Tr,
6294
+ title: Fr,
6295
+ description: Er,
6296
+ type: Ir,
6297
+ properties: Mr,
6298
+ required: Br
6299
+ }, Or = "list-view-table", Dr = "A Farris Component", Nr = "object", Rr = {
6300
6300
  basic: {
6301
6301
  description: "Basic Infomation",
6302
6302
  title: "基本信息",
@@ -6318,16 +6318,16 @@ const kr = /* @__PURE__ */ ae({
6318
6318
  }
6319
6319
  }
6320
6320
  }
6321
- }, Pr = {
6322
- title: Dr,
6323
- description: Nr,
6324
- type: Rr,
6325
- categories: $r
6326
- }, ln = {
6321
+ }, $r = {
6322
+ title: Or,
6323
+ description: Dr,
6324
+ type: Nr,
6325
+ categories: Rr
6326
+ }, an = {
6327
6327
  data: { type: Array, default: [] }
6328
- }, sn = Ee(ln, Or, At, Ht, Pr), Lr = /* @__PURE__ */ ae({
6328
+ }, ln = Ee(an, Vr, jt, At, $r), Pr = /* @__PURE__ */ ae({
6329
6329
  name: "FListViewTableDesign",
6330
- props: ln,
6330
+ props: an,
6331
6331
  emits: ["outputValue", "currentEvent", "selectionChanged"],
6332
6332
  setup(e, t) {
6333
6333
  const n = [{
@@ -6379,7 +6379,7 @@ const kr = /* @__PURE__ */ ae({
6379
6379
  desc: "浙江杭州",
6380
6380
  amount: 84.13,
6381
6381
  avatar: "./assets/avatar7.png"
6382
- }], o = P(() => e.data.length > 0 ? e.data : n), a = c(), l = Se("design-item-context"), s = gt(a, l);
6382
+ }], o = P(() => e.data.length > 0 ? e.data : n), a = c(), l = ke("design-item-context"), s = gt(a, l);
6383
6383
  return me(() => {
6384
6384
  a.value.componentInstance = s;
6385
6385
  }), t.expose(s.value), () => {
@@ -6420,16 +6420,16 @@ const kr = /* @__PURE__ */ ae({
6420
6420
  };
6421
6421
  }
6422
6422
  });
6423
- Te.install = (e) => {
6424
- e.component(Te.name, Te), e.component(ft.name, ft);
6423
+ Fe.install = (e) => {
6424
+ e.component(Fe.name, Fe), e.component(ft.name, ft);
6425
6425
  };
6426
- Te.register = (e, t, n) => {
6427
- e["list-view"] = Te, t["list-view"] = zt, e["list-view-table"] = ft, t["list-view-table"] = sn;
6426
+ Fe.register = (e, t, n) => {
6427
+ e["list-view"] = Fe, t["list-view"] = Ht, e["list-view-table"] = ft, t["list-view-table"] = ln;
6428
6428
  };
6429
- Te.registerDesigner = (e, t, n) => {
6430
- e["list-view"] = kr, t["list-view"] = zt, e["list-view-table"] = Lr, t["list-view-table"] = sn;
6429
+ Fe.registerDesigner = (e, t, n) => {
6430
+ e["list-view"] = Sr, t["list-view"] = Ht, e["list-view-table"] = Pr, t["list-view-table"] = ln;
6431
6431
  };
6432
- const jr = /* @__PURE__ */ ae({
6432
+ const Lr = /* @__PURE__ */ ae({
6433
6433
  name: "FImportExteranlSchema",
6434
6434
  emits: ["close", "submit"],
6435
6435
  setup(e, t) {
@@ -6445,7 +6445,7 @@ const jr = /* @__PURE__ */ ae({
6445
6445
  i && i.unmount();
6446
6446
  }
6447
6447
  function l(i) {
6448
- return r("div", null, [r(Te, {
6448
+ return r("div", null, [r(Fe, {
6449
6449
  data: n
6450
6450
  }, {
6451
6451
  default: () => [re(" ")]
@@ -6466,7 +6466,7 @@ const jr = /* @__PURE__ */ ae({
6466
6466
  }, [re("确认")])])])])]);
6467
6467
  }
6468
6468
  function s() {
6469
- jt.show({
6469
+ Lt.show({
6470
6470
  title: "Settings",
6471
6471
  width: 800,
6472
6472
  showButtons: !1,
@@ -6486,14 +6486,14 @@ const jr = /* @__PURE__ */ ae({
6486
6486
  class: "f-import-exteranl-component-button-center"
6487
6487
  }, [re("引入组件")])])]);
6488
6488
  }
6489
- }), Ar = /* @__PURE__ */ ae({
6489
+ }), jr = /* @__PURE__ */ ae({
6490
6490
  name: "FExternalContainerDesign",
6491
6491
  props: ht,
6492
6492
  emits: [],
6493
6493
  setup(e, t) {
6494
6494
  const n = c();
6495
- Se("designer-host-service");
6496
- const o = Se("design-item-context"), a = $a(), l = gt(n, o, a);
6495
+ ke("designer-host-service");
6496
+ const o = ke("design-item-context"), a = Ra(), l = gt(n, o, a);
6497
6497
  me(() => {
6498
6498
  n.value.componentInstance = l;
6499
6499
  }), t.expose(l.value);
@@ -6505,10 +6505,10 @@ const jr = /* @__PURE__ */ ae({
6505
6505
  }, null);
6506
6506
  }
6507
6507
  function u(d) {
6508
- s.value = za;
6508
+ s.value = Ha;
6509
6509
  }
6510
6510
  function v() {
6511
- return r(jr, {
6511
+ return r(Lr, {
6512
6512
  onSubmit: u
6513
6513
  }, null);
6514
6514
  }
@@ -6518,21 +6518,21 @@ const jr = /* @__PURE__ */ ae({
6518
6518
  "data-dragref": `${o.schema.id}-container`
6519
6519
  }, [i.value ? v() : f()]);
6520
6520
  }
6521
- }), lu = {
6521
+ }), au = {
6522
6522
  install(e) {
6523
6523
  e.component(ot.name, ot);
6524
6524
  },
6525
6525
  register(e, t) {
6526
- e["external-container"] = ot, t["external-container"] = St;
6526
+ e["external-container"] = ot, t["external-container"] = xt;
6527
6527
  },
6528
6528
  registerDesigner(e, t) {
6529
- e["external-container"] = Ar, t["external-container"] = St;
6529
+ e["external-container"] = jr, t["external-container"] = xt;
6530
6530
  }
6531
6531
  };
6532
6532
  export {
6533
6533
  ot as FExternalContainer,
6534
- Ar as FExternalContainerDesign,
6535
- lu as default,
6534
+ jr as FExternalContainerDesign,
6535
+ au as default,
6536
6536
  ht as externalContainerProps,
6537
- St as propsResolver
6537
+ xt as propsResolver
6538
6538
  };