@farris/ui-vue 1.2.6 → 1.2.7

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 (74) hide show
  1. package/components/accordion/index.esm.js +147 -139
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +11 -28
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/checkbox/index.esm.js +33 -50
  6. package/components/checkbox/index.umd.cjs +1 -1
  7. package/components/combo-list/index.esm.js +183 -171
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/condition/index.esm.js +236 -235
  10. package/components/condition/index.umd.cjs +1 -1
  11. package/components/data-grid/index.esm.js +1531 -1560
  12. package/components/data-grid/index.umd.cjs +1 -1
  13. package/components/data-view/index.esm.js +1299 -1300
  14. package/components/data-view/index.umd.cjs +1 -1
  15. package/components/date-picker/index.esm.js +235 -252
  16. package/components/date-picker/index.umd.cjs +1 -1
  17. package/components/dynamic-form/index.esm.js +127 -143
  18. package/components/dynamic-form/index.umd.cjs +1 -1
  19. package/components/dynamic-view/index.esm.js +206 -201
  20. package/components/dynamic-view/index.umd.cjs +1 -1
  21. package/components/external-container/index.esm.js +650 -647
  22. package/components/external-container/index.umd.cjs +1 -1
  23. package/components/field-selector/index.esm.js +1101 -1131
  24. package/components/field-selector/index.umd.cjs +1 -1
  25. package/components/filter-bar/index.esm.js +335 -332
  26. package/components/filter-bar/index.umd.cjs +1 -1
  27. package/components/input-group/index.esm.js +128 -145
  28. package/components/input-group/index.umd.cjs +1 -1
  29. package/components/list-view/index.esm.js +306 -303
  30. package/components/list-view/index.umd.cjs +1 -1
  31. package/components/lookup/index.esm.js +2470 -2469
  32. package/components/lookup/index.umd.cjs +1 -1
  33. package/components/mapping-editor/index.esm.js +1928 -1958
  34. package/components/mapping-editor/index.umd.cjs +1 -1
  35. package/components/order/index.esm.js +802 -788
  36. package/components/order/index.umd.cjs +1 -1
  37. package/components/page-header/index.esm.js +116 -137
  38. package/components/page-header/index.umd.cjs +1 -1
  39. package/components/property-editor/index.esm.js +533 -521
  40. package/components/property-editor/index.umd.cjs +2 -2
  41. package/components/property-panel/index.esm.js +178 -177
  42. package/components/property-panel/index.umd.cjs +1 -1
  43. package/components/radio-group/index.esm.js +56 -73
  44. package/components/radio-group/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +547 -518
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/response-toolbar/index.esm.js +260 -281
  48. package/components/response-toolbar/index.umd.cjs +1 -1
  49. package/components/schema-selector/index.esm.js +598 -617
  50. package/components/schema-selector/index.umd.cjs +2 -2
  51. package/components/switch/index.esm.js +137 -154
  52. package/components/switch/index.umd.cjs +1 -1
  53. package/components/tabs/index.esm.js +109 -130
  54. package/components/tabs/index.umd.cjs +1 -1
  55. package/components/textarea/index.esm.js +103 -120
  56. package/components/textarea/index.umd.cjs +1 -1
  57. package/components/time-picker/index.esm.js +172 -189
  58. package/components/time-picker/index.umd.cjs +1 -1
  59. package/components/transfer/index.esm.js +124 -122
  60. package/components/transfer/index.umd.cjs +1 -1
  61. package/components/tree-grid/index.esm.js +1600 -1630
  62. package/components/tree-grid/index.umd.cjs +1 -1
  63. package/components/tree-view/index.esm.js +245 -246
  64. package/components/tree-view/index.umd.cjs +1 -1
  65. package/farris.all.esm.js +4123 -4112
  66. package/farris.all.umd.cjs +8 -8
  67. package/package.json +1 -1
  68. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  69. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  70. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  71. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  72. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
  73. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
  74. package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
@@ -44,8 +44,8 @@ import oo from "@farris/ui-vue/components/search-box";
44
44
  import ao from "@farris/ui-vue/components/section";
45
45
  import so from "@farris/ui-vue/components/smoke-detector";
46
46
  import lo from "@farris/ui-vue/components/splitter";
47
- import io from "@farris/ui-vue/components/step";
48
- import ro from "@farris/ui-vue/components/switch";
47
+ import ro from "@farris/ui-vue/components/step";
48
+ import io from "@farris/ui-vue/components/switch";
49
49
  import uo from "@farris/ui-vue/components/tabs";
50
50
  import co from "@farris/ui-vue/components/tags";
51
51
  import fo from "@farris/ui-vue/components/text";
@@ -66,6 +66,7 @@ import jo from "@farris/ui-vue/components/combo-tree";
66
66
  import No from "@farris/ui-vue/components/field-selector";
67
67
  import Po from "@farris/ui-vue/components/mapping-editor";
68
68
  import $o from "@farris/ui-vue/components/schema-selector";
69
+ import Ro from "@farris/ui-vue/components/tree-grid";
69
70
  const yt = {}, bt = {};
70
71
  function at(e) {
71
72
  const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, s) => (a[s] = t[s].type === "object" && t[s].properties ? at(t[s]) : Te(t[s].default), a), {});
@@ -80,11 +81,11 @@ function Qe(e, t = {}) {
80
81
  }
81
82
  return null;
82
83
  }
83
- function Ro(e, t) {
84
+ function Ao(e, t) {
84
85
  const n = at(t);
85
86
  return Object.keys(e).reduce((o, a) => (o[a] = e[a], o), n), n;
86
87
  }
87
- function Ao(e, t) {
88
+ function Lo(e, t) {
88
89
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
89
90
  if (t.has(a)) {
90
91
  const s = t.get(a);
@@ -99,27 +100,27 @@ function Ao(e, t) {
99
100
  return o;
100
101
  }, {});
101
102
  }
102
- function Lo(e, t, n = /* @__PURE__ */ new Map()) {
103
- const o = Ro(e, t);
104
- return Ao(o, n);
103
+ function Ho(e, t, n = /* @__PURE__ */ new Map()) {
104
+ const o = Ao(e, t);
105
+ return Lo(o, n);
105
106
  }
106
- function Ho(e = {}) {
107
- function t(v, d, h, i) {
107
+ function zo(e = {}) {
108
+ function t(v, d, h, r) {
108
109
  if (typeof h == "number")
109
- return i[v].length === h;
110
+ return r[v].length === h;
110
111
  if (typeof h == "object") {
111
112
  const D = Object.keys(h)[0], C = h[D];
112
113
  if (D === "not")
113
- return Number(i[v].length) !== Number(C);
114
+ return Number(r[v].length) !== Number(C);
114
115
  if (D === "moreThan")
115
- return Number(i[v].length) >= Number(C);
116
+ return Number(r[v].length) >= Number(C);
116
117
  if (D === "lessThan")
117
- return Number(i[v].length) <= Number(C);
118
+ return Number(r[v].length) <= Number(C);
118
119
  }
119
120
  return !1;
120
121
  }
121
- function n(v, d, h, i) {
122
- return i[v] && i[v].propertyValue && String(i[v].propertyValue.value) === String(h);
122
+ function n(v, d, h, r) {
123
+ return r[v] && r[v].propertyValue && String(r[v].propertyValue.value) === String(h);
123
124
  }
124
125
  const o = /* @__PURE__ */ new Map([
125
126
  ["length", t],
@@ -128,16 +129,16 @@ function Ho(e = {}) {
128
129
  Object.keys(e).reduce((v, d) => (v.set(d, e[d]), v), o);
129
130
  function a(v, d) {
130
131
  const h = v;
131
- return typeof d == "number" ? [{ target: h, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: h, operator: "getProperty", param: v, value: !!d }] : typeof d == "object" ? Object.keys(d).map((i) => {
132
- if (i === "length")
133
- return { target: h, operator: "length", param: null, value: d[i] };
134
- const D = i, C = d[i];
132
+ return typeof d == "number" ? [{ target: h, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: h, operator: "getProperty", param: v, value: !!d }] : typeof d == "object" ? Object.keys(d).map((r) => {
133
+ if (r === "length")
134
+ return { target: h, operator: "length", param: null, value: d[r] };
135
+ const D = r, C = d[r];
135
136
  return { target: h, operator: "getProperty", param: D, value: C };
136
137
  }) : [];
137
138
  }
138
139
  function s(v) {
139
- return Object.keys(v).reduce((h, i) => {
140
- const D = a(i, v[i]);
140
+ return Object.keys(v).reduce((h, r) => {
141
+ const D = a(r, v[r]);
141
142
  return h.push(...D), h;
142
143
  }, []);
143
144
  }
@@ -152,29 +153,29 @@ function Ho(e = {}) {
152
153
  return s(v).reduce((D, C) => D && l(C, d), !0);
153
154
  }
154
155
  function y(v, d) {
155
- const h = Object.keys(v), i = h.includes("allOf"), D = h.includes("anyOf"), C = i || D, f = (C ? v[C ? i ? "allOf" : "anyOf" : "allOf"] : [v]).map((x) => u(x, d));
156
- return i ? !f.includes(!1) : f.includes(!0);
156
+ const h = Object.keys(v), r = h.includes("allOf"), D = h.includes("anyOf"), C = r || D, f = (C ? v[C ? r ? "allOf" : "anyOf" : "allOf"] : [v]).map((x) => u(x, d));
157
+ return r ? !f.includes(!1) : f.includes(!0);
157
158
  }
158
159
  return { parseValueSchema: y };
159
160
  }
160
- const zo = {}, Go = {};
161
- Ho();
161
+ const Go = {}, qo = {};
162
+ zo();
162
163
  function _e(e, t, n = /* @__PURE__ */ new Map(), o = (l, u, y) => u, a = {}, s = (l) => l) {
163
- return yt[t.title] = t, bt[t.title] = o, zo[t.title] = a, Go[t.title] = s, (l = {}) => {
164
- const u = Lo(l, t, n), y = Object.keys(e).reduce((v, d) => (v[d] = e[d].default, v), {});
164
+ return yt[t.title] = t, bt[t.title] = o, Go[t.title] = a, qo[t.title] = s, (l = {}) => {
165
+ const u = Ho(l, t, n), y = Object.keys(e).reduce((v, d) => (v[d] = e[d].default, v), {});
165
166
  return Object.assign(y, u);
166
167
  };
167
168
  }
168
169
  function De(e, t) {
169
170
  return { customClass: t.class, customStyle: t.style };
170
171
  }
171
- const qo = /* @__PURE__ */ new Map([
172
+ const Wo = /* @__PURE__ */ new Map([
172
173
  ["appearance", De]
173
174
  ]);
174
- function Wo(e, t, n) {
175
+ function Uo(e, t, n) {
175
176
  return t;
176
177
  }
177
- const Uo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-design.gitee.io/external-container.schema.json", Yo = "external-container", Xo = "A Farris Visual Component", Jo = "object", Qo = {
178
+ const Ko = "https://json-schema.org/draft/2020-12/schema", Yo = "https://farris-design.gitee.io/external-container.schema.json", Xo = "external-container", Jo = "A Farris Visual Component", Qo = "object", Zo = {
178
179
  id: {
179
180
  description: "The unique identifier for a external-container",
180
181
  type: "string"
@@ -214,19 +215,19 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-
214
215
  description: "The unique identifier for component",
215
216
  type: "string"
216
217
  }
217
- }, Zo = [
218
+ }, ea = [
218
219
  "id",
219
220
  "type",
220
221
  "contents"
221
- ], ea = {
222
- $schema: Uo,
223
- $id: Ko,
224
- title: Yo,
225
- description: Xo,
226
- type: Jo,
227
- properties: Qo,
228
- required: Zo
229
- }, ta = "external-container", na = "A Farris Component", oa = "object", aa = {
222
+ ], ta = {
223
+ $schema: Ko,
224
+ $id: Yo,
225
+ title: Xo,
226
+ description: Jo,
227
+ type: Qo,
228
+ properties: Zo,
229
+ required: ea
230
+ }, na = "external-container", oa = "A Farris Component", aa = "object", sa = {
230
231
  basic: {
231
232
  description: "Basic Infomation",
232
233
  title: "基本信息",
@@ -253,18 +254,18 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-
253
254
  }
254
255
  }
255
256
  }
256
- }, sa = {
257
- title: ta,
258
- description: na,
259
- type: oa,
260
- categories: aa
257
+ }, la = {
258
+ title: na,
259
+ description: oa,
260
+ type: aa,
261
+ categories: sa
261
262
  }, st = {
262
263
  customClass: { type: String, default: "" },
263
264
  componentType: { type: String, default: "" },
264
265
  url: { type: String, default: "" },
265
266
  schema: { type: Object },
266
267
  useIsolateJs: { type: Boolean, default: !1 }
267
- }, ut = _e(st, ea, qo, Wo, sa), We = /* @__PURE__ */ te({
268
+ }, ut = _e(st, ta, Wo, Uo, la), We = /* @__PURE__ */ te({
268
269
  name: "FExternalContainer",
269
270
  props: st,
270
271
  emits: [],
@@ -273,7 +274,7 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-
273
274
  class: e.customClass
274
275
  }, [t.slots.default && t.slots.default()]);
275
276
  }
276
- }), la = {
277
+ }), ra = {
277
278
  id: { type: String, default: "" },
278
279
  componentId: { type: String, default: "" },
279
280
  type: { type: String, default: "" },
@@ -288,11 +289,11 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-
288
289
  */
289
290
  modelValue: { type: Object },
290
291
  ignore: { type: Boolean, default: !1 }
291
- }, ia = {}, ra = {}, ua = {
292
+ }, ia = {}, ua = {}, ca = {
292
293
  id: { type: String }
293
- }, ca = /* @__PURE__ */ te({
294
+ }, da = /* @__PURE__ */ te({
294
295
  name: "FDesignerPlaceholder",
295
- props: ua,
296
+ props: ca,
296
297
  emits: [],
297
298
  setup(e) {
298
299
  const t = $(() => ({
@@ -317,11 +318,11 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://farris-
317
318
  }, [ae("拖拽组件到这里")]);
318
319
  }
319
320
  }), Ue = p(0);
320
- function da(e, t) {
321
+ function fa(e, t) {
321
322
  const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = o.top >= n.top, s = o.top <= n.bottom;
322
323
  return a && s;
323
324
  }
324
- function fa(e) {
325
+ function pa(e) {
325
326
  if (!e)
326
327
  return;
327
328
  let t;
@@ -332,7 +333,7 @@ function fa(e) {
332
333
  return;
333
334
  const o = t.querySelector(".component-btn-group");
334
335
  if (o) {
335
- if (!da(t, e)) {
336
+ if (!fa(t, e)) {
336
337
  o.style.display = "none";
337
338
  return;
338
339
  }
@@ -344,24 +345,24 @@ function fa(e) {
344
345
  }
345
346
  }
346
347
  }
347
- function pa(e) {
348
+ function va(e) {
348
349
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !rn(e);
349
350
  }
350
351
  const Ze = /* @__PURE__ */ te({
351
352
  name: "FDesignerItem",
352
- props: la,
353
+ props: ra,
353
354
  emits: ["selectionChange"],
354
355
  setup(e, t) {
355
- const n = p(`${e.modelValue.id}-component`), o = p(e.canMove), a = p(e.canDelete), s = p(!1), l = p(e.modelValue), u = p(e.componentId || ""), y = p(""), v = p(""), d = p(), h = Fe("canvas-dragula"), i = p(), D = Fe("design-item-context"), C = {
356
+ const n = p(`${e.modelValue.id}-component`), o = p(e.canMove), a = p(e.canDelete), s = p(!1), l = p(e.modelValue), u = p(e.componentId || ""), y = p(""), v = p(""), d = p(), h = Fe("canvas-dragula"), r = p(), D = Fe("design-item-context"), C = {
356
357
  designerItemElementRef: d,
357
- componentInstance: i,
358
+ componentInstance: r,
358
359
  schema: l.value,
359
360
  parent: D,
360
361
  setupContext: t
361
362
  };
362
363
  ln("design-item-context", C);
363
364
  const g = Fe("useFormSchema"), S = $(() => {
364
- const r = e.modelValue.appearance && e.modelValue.appearance.class || "", w = {
365
+ const i = e.modelValue.appearance && e.modelValue.appearance.class || "", w = {
365
366
  "farris-component": !0,
366
367
  // 受position-relative影响,整个容器的高度不能被撑起
367
368
  "flex-fill": l.value.id == "root-component",
@@ -370,21 +371,21 @@ const Ze = /* @__PURE__ */ te({
370
371
  "can-move": o.value,
371
372
  "d-none": d.value && d.value.classList.contains("d-none")
372
373
  };
373
- return w[`farris-component-${l.value.type}`] = !0, r && r.split(" ").reduce((B, P) => (B[P] = !0, B), w), v.value && v.value.split(" ").reduce((B, P) => (B[P] = !0, B), w), w;
374
+ return w[`farris-component-${l.value.type}`] = !0, i && i.split(" ").reduce((B, P) => (B[P] = !0, B), w), v.value && v.value.split(" ").reduce((B, P) => (B[P] = !0, B), w), w;
374
375
  }), f = $(() => {
375
- const r = {}, w = e.modelValue.appearance && e.modelValue.appearance.style || "";
376
+ const i = {}, w = e.modelValue.appearance && e.modelValue.appearance.style || "";
376
377
  return w && w.split(";").reduce((B, P) => {
377
378
  const [I, M] = P.split(":");
378
379
  return B[I] = M, B;
379
- }, r), y.value && y.value.split(";").reduce((B, P) => {
380
+ }, i), y.value && y.value.split(";").reduce((B, P) => {
380
381
  const [I, M] = P.split(":");
381
382
  return I && (B[I] = M), B;
382
- }, r), r;
383
+ }, i), i;
383
384
  });
384
- function m(r, w) {
385
+ function m(i, w) {
385
386
  var B, P, I;
386
- if (r && (r.preventDefault(), r.stopPropagation()), i.value.triggerBelongedComponentToDeleteWhenDeleted) {
387
- const M = i.value.getBelongedComponentInstance(i);
387
+ if (i && (i.preventDefault(), i.stopPropagation()), r.value.triggerBelongedComponentToDeleteWhenDeleted) {
388
+ const M = r.value.getBelongedComponentInstance(r);
388
389
  if (M && M.parent) {
389
390
  const O = p(M == null ? void 0 : M.parent), R = O.value.contents.findIndex((L) => L.id === M.schema.id);
390
391
  (P = (B = O.value) == null ? void 0 : B.contents) == null || P.splice(R, 1), (I = O.value) == null || I.updateDragAndDropRules(), Ue.value++;
@@ -396,14 +397,14 @@ const Ze = /* @__PURE__ */ te({
396
397
  D.schema.contents.splice(M, 1), D.componentInstance.value.updateDragAndDropRules(), Ue.value++;
397
398
  }
398
399
  }
399
- function x(r) {
400
+ function x(i) {
400
401
  return a.value && c("div", {
401
402
  role: "button",
402
403
  class: "btn component-settings-button",
403
404
  title: "删除",
404
405
  ref: "removeComponent",
405
406
  onClick: (w) => {
406
- m(w, r);
407
+ m(w, i);
407
408
  }
408
409
  }, [c("i", {
409
410
  class: "f-icon f-icon-yxs_delete"
@@ -421,32 +422,32 @@ const Ze = /* @__PURE__ */ te({
421
422
  }, null)]);
422
423
  }
423
424
  function _() {
424
- return e.customButtons && !!e.customButtons.length && e.customButtons.map((r) => c("div", {
425
+ return e.customButtons && !!e.customButtons.length && e.customButtons.map((i) => c("div", {
425
426
  role: "button",
426
- class: `btn component-settings-button ${r.class || ""}`,
427
- title: r.title,
428
- ref: r.id
427
+ class: `btn component-settings-button ${i.class || ""}`,
428
+ title: i.title,
429
+ ref: i.id
429
430
  }, [c("i", {
430
- class: r.icon
431
+ class: i.icon
431
432
  }, null)]));
432
433
  }
433
- function b(r) {
434
+ function b(i) {
434
435
  return c("div", {
435
436
  class: "component-btn-group",
436
437
  "data-noattach": "true"
437
- }, [c("div", null, [x(r), T(), _()])]);
438
+ }, [c("div", null, [x(i), T(), _()])]);
438
439
  }
439
- function E(r, w, B, P) {
440
- t.emit("selectionChange", r, w, B, P);
440
+ function E(i, w, B, P) {
441
+ t.emit("selectionChange", i, w, B, P);
441
442
  }
442
- function j(r) {
443
+ function j(i) {
443
444
  let w;
444
- const B = r.type, P = ia[B], I = ra[B], M = I ? I(r) : {};
445
+ const B = i.type, P = ia[B], I = ua[B], M = I ? I(i) : {};
445
446
  M.customClass = e.ignore ? M.customClass : "", M.componentId = u.value;
446
- const O = r.contents && r.contents.length === 0;
447
- return r.contents && !!r.contents.length && P ? c(P, be({
448
- ref: i
449
- }, M), pa(w = r.contents.map((L) => c(Ze, {
447
+ const O = i.contents && i.contents.length === 0;
448
+ return i.contents && !!i.contents.length && P ? c(P, be({
449
+ ref: r
450
+ }, M), va(w = i.contents.map((L) => c(Ze, {
450
451
  key: L.id,
451
452
  modelValue: L,
452
453
  "onUpdate:modelValue": (Q) => L = Q,
@@ -455,16 +456,16 @@ const Ze = /* @__PURE__ */ te({
455
456
  }, null))) ? w : {
456
457
  default: () => [w]
457
458
  }) : P ? O ? c(P, be({
458
- ref: i
459
+ ref: r
459
460
  }, M), {
460
- default: () => [c(ca, null, null)]
461
+ default: () => [c(da, null, null)]
461
462
  }) : c(P, be({
462
- ref: i
463
+ ref: r
463
464
  }, M), null) : c("div", null, null);
464
465
  }
465
- function F(r) {
466
- if (r.type === "component-ref") {
467
- let B = g == null ? void 0 : g.getFormSchema().module.components.find((P) => P.id === r.component);
466
+ function F(i) {
467
+ if (i.type === "component-ref") {
468
+ let B = g == null ? void 0 : g.getFormSchema().module.components.find((P) => P.id === i.component);
468
469
  if (B)
469
470
  return c(Ze, {
470
471
  key: B.id,
@@ -475,37 +476,37 @@ const Ze = /* @__PURE__ */ te({
475
476
  }, null);
476
477
  }
477
478
  }
478
- X(() => e.modelValue, (r) => {
479
- l.value = r, n.value = `${r.id}-component`;
479
+ X(() => e.modelValue, (i) => {
480
+ l.value = i, n.value = `${i.id}-component`;
480
481
  });
481
- function N(r) {
482
- const w = r.target;
483
- fa(w);
482
+ function N(i) {
483
+ const w = i.target;
484
+ pa(w);
484
485
  }
485
486
  function V() {
486
- var r, w;
487
- (w = (r = l.value) == null ? void 0 : r.contents) != null && w.length && d.value && d.value.addEventListener("scroll", N);
487
+ var i, w;
488
+ (w = (i = l.value) == null ? void 0 : i.contents) != null && w.length && d.value && d.value.addEventListener("scroll", N);
488
489
  }
489
490
  de(() => {
490
- if (d.value && i.value && i.value.schema) {
491
- const r = d.value.querySelector(`[data-dragref='${i.value.schema.id}-container']`);
492
- h && r && h.attachComponents(r, l.value), s.value = i.value.canNested !== void 0 ? i.value.canNested : s.value, a.value = i.value.canDelete !== void 0 ? i.value.canDelete : a.value, o.value = i.value.canMove !== void 0 ? i.value.canMove : o.value, y.value = i.value.styles || "", v.value = i.value.designerClass || "", d.value && (d.value.componentInstance = i, d.value.designItemContext = C);
491
+ if (d.value && r.value && r.value.schema) {
492
+ const i = d.value.querySelector(`[data-dragref='${r.value.schema.id}-container']`);
493
+ h && i && h.attachComponents(i, l.value), s.value = r.value.canNested !== void 0 ? r.value.canNested : s.value, a.value = r.value.canDelete !== void 0 ? r.value.canDelete : a.value, o.value = r.value.canMove !== void 0 ? r.value.canMove : o.value, y.value = r.value.styles || "", v.value = r.value.designerClass || "", d.value && (d.value.componentInstance = r, d.value.designItemContext = C);
493
494
  }
494
495
  V(), Ue.value++;
495
496
  }), vt(() => {
496
497
  d.value && d.value.removeEventListener("scroll", N);
497
498
  });
498
- function k(r) {
499
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((B) => B.classList.remove("dgComponentFocused")), r && (r.preventDefault(), r.stopPropagation());
499
+ function k(i) {
500
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((B) => B.classList.remove("dgComponentFocused")), i && (i.preventDefault(), i.stopPropagation());
500
501
  const w = d.value;
501
502
  if (w) {
502
503
  const B = document.getElementsByClassName("dgComponentSelected");
503
- if (!(B && B.length === 1 && B[0] === d.value) && (Array.from(B).forEach((I) => I.classList.remove("dgComponentSelected")), w.classList.add("dgComponentFocused"), t.emit("selectionChange", l.value.type, l.value, u.value, i.value), i.value.getDraggableDesignItemElement)) {
504
- const I = i.value.getDraggableDesignItemElement(C);
504
+ if (!(B && B.length === 1 && B[0] === d.value) && (Array.from(B).forEach((I) => I.classList.remove("dgComponentSelected")), w.classList.add("dgComponentFocused"), t.emit("selectionChange", l.value.type, l.value, u.value, r.value), r.value.getDraggableDesignItemElement)) {
505
+ const I = r.value.getDraggableDesignItemElement(C);
505
506
  I && I.value && I.value.classList.add("dgComponentSelected");
506
507
  }
507
508
  }
508
- N(r);
509
+ N(i);
509
510
  }
510
511
  return () => l.value.type === "component-ref" ? F(l.value) : c("div", {
511
512
  id: `${l.value.id}-design-item`,
@@ -543,9 +544,9 @@ function lt(e, t, n) {
543
544
  const E = p(b == null ? void 0 : b.value.parent), j = h(E);
544
545
  return j || null;
545
546
  }
546
- function i(b = t) {
547
+ function r(b = t) {
547
548
  const { componentInstance: E, designerItemElementRef: j } = b;
548
- return !E || !E.value ? null : E.value.canMove ? j : i(b.parent);
549
+ return !E || !E.value ? null : E.value.canMove ? j : r(b.parent);
549
550
  }
550
551
  function D(b) {
551
552
  return !!n && n.canAccepts(b);
@@ -592,7 +593,7 @@ function lt(e, t, n) {
592
593
  designerClass: s,
593
594
  canAccepts: D,
594
595
  getBelongedComponentInstance: h,
595
- getDraggableDesignItemElement: i,
596
+ getDraggableDesignItemElement: r,
596
597
  getDraggingDisplayText: C,
597
598
  getPropConfig: T,
598
599
  getDragScopeElement: g,
@@ -605,7 +606,7 @@ function lt(e, t, n) {
605
606
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || p(!1)
606
607
  }, l;
607
608
  }
608
- const va = "https://json-schema.org/draft/2020-12/schema", ma = "https://farris-design.gitee.io/dragging-rules.schema.json", ha = "Dragging Rules", ga = "The rules of designer canvas", ya = "object", ba = {
609
+ const ma = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-design.gitee.io/dragging-rules.schema.json", ga = "Dragging Rules", ya = "The rules of designer canvas", ba = "object", Ca = {
609
610
  "f-page": {
610
611
  description: "The root class of page designed by farris.",
611
612
  type: "object",
@@ -1169,16 +1170,16 @@ const va = "https://json-schema.org/draft/2020-12/schema", ma = "https://farris-
1169
1170
  description: "",
1170
1171
  type: "object"
1171
1172
  }
1172
- }, Ca = [], wa = {
1173
- $schema: va,
1174
- $id: ma,
1175
- title: ha,
1176
- description: ga,
1177
- type: ya,
1178
- properties: ba,
1179
- required: Ca
1173
+ }, wa = [], _a = {
1174
+ $schema: ma,
1175
+ $id: ha,
1176
+ title: ga,
1177
+ description: ya,
1178
+ type: ba,
1179
+ properties: Ca,
1180
+ required: wa
1180
1181
  }, Ke = /* @__PURE__ */ new Map();
1181
- function _a() {
1182
+ function Sa() {
1182
1183
  function e(C, g, S, f) {
1183
1184
  var m;
1184
1185
  if (typeof S == "number")
@@ -1256,8 +1257,8 @@ function _a() {
1256
1257
  );
1257
1258
  }
1258
1259
  }
1259
- function i() {
1260
- const { properties: C } = wa;
1260
+ function r() {
1261
+ const { properties: C } = _a;
1261
1262
  Object.keys(C).forEach((g) => {
1262
1263
  h(g, C[g], Ke);
1263
1264
  });
@@ -1266,10 +1267,10 @@ function _a() {
1266
1267
  const S = { canAccept: !0, fixed: !1, hidePadding: !0 };
1267
1268
  return Ke.has(C) ? Ke.get(C)(g) : S;
1268
1269
  }
1269
- return i(), { getRuleValue: D };
1270
+ return r(), { getRuleValue: D };
1270
1271
  }
1271
- function Sa(e, t) {
1272
- const n = _a();
1272
+ function xa(e, t) {
1273
+ const n = Sa();
1273
1274
  let o = !1, a, s = !1;
1274
1275
  const l = !1;
1275
1276
  function u() {
@@ -1283,9 +1284,9 @@ function Sa(e, t) {
1283
1284
  }
1284
1285
  function d() {
1285
1286
  s = !1;
1286
- const i = e, D = i.appearance && i.appearance.class || "", C = D.split(" "), g = i.contents || [], S = g.length ? g[0] : null, f = S && S.appearance ? S.appearance.class : "", m = f ? f.split(" ") : [], x = g.length ? g.reduce((N, V) => {
1287
- const k = V && V.appearance ? V.appearance.class : "", r = k ? k.split(" ") : [];
1288
- return N.push(...r), N;
1287
+ const r = e, D = r.appearance && r.appearance.class || "", C = D.split(" "), g = r.contents || [], S = g.length ? g[0] : null, f = S && S.appearance ? S.appearance.class : "", m = f ? f.split(" ") : [], x = g.length ? g.reduce((N, V) => {
1288
+ const k = V && V.appearance ? V.appearance.class : "", i = k ? k.split(" ") : [];
1289
+ return N.push(...i), N;
1289
1290
  }, []) : [], T = t, _ = T && T.appearance && T.appearance.class || "", b = _ ? _.split(" ") : [];
1290
1291
  a = {
1291
1292
  componentClass: D,
@@ -1308,9 +1309,9 @@ function Sa(e, t) {
1308
1309
  }
1309
1310
  return { canAccepts: u, checkCanDeleteComponent: y, checkCanMoveComponent: v, resolveComponentContext: d, hideNestedPaddingInDesginerView: h };
1310
1311
  }
1311
- const xa = "data-grid-component", Fa = "component", Ta = "data-grid", ka = {
1312
+ const Fa = "data-grid-component", Ta = "component", ka = "data-grid", Ia = {
1312
1313
  class: "f-struct-wrapper f-utils-fill-flex-column"
1313
- }, Ia = [
1314
+ }, Va = [
1314
1315
  {
1315
1316
  id: "data-grid-section",
1316
1317
  type: "section",
@@ -1380,13 +1381,13 @@ const xa = "data-grid-component", Fa = "component", Ta = "data-grid", ka = {
1380
1381
  }
1381
1382
  ]
1382
1383
  }
1383
- ], Va = {
1384
- id: xa,
1385
- type: Fa,
1386
- componentType: Ta,
1387
- appearance: ka,
1388
- contents: Ia
1389
- }, Ea = {
1384
+ ], Ea = {
1385
+ id: Fa,
1386
+ type: Ta,
1387
+ componentType: ka,
1388
+ appearance: Ia,
1389
+ contents: Va
1390
+ }, Oa = {
1390
1391
  /**
1391
1392
  * 自定义类
1392
1393
  */
@@ -1529,8 +1530,8 @@ class ye {
1529
1530
  return this.width = t.width, this.height = t.height, this;
1530
1531
  }
1531
1532
  }
1532
- function Oa(e, t) {
1533
- const n = p(), o = p(), a = p(), s = p(), l = p(), u = p(), y = p(), v = p(), d = p(), h = p(), i = p(), D = p(), C = p(e.draggable), g = p(!1);
1533
+ function Ba(e, t) {
1534
+ const n = p(), o = p(), a = p(), s = p(), l = p(), u = p(), y = p(), v = p(), d = p(), h = p(), r = p(), D = p(), C = p(e.draggable), g = p(!1);
1534
1535
  function S() {
1535
1536
  const I = o.value || document.body, M = window.getComputedStyle(I);
1536
1537
  if (!M || !n.value)
@@ -1609,7 +1610,7 @@ function Oa(e, t) {
1609
1610
  function j(I) {
1610
1611
  if (n.value) {
1611
1612
  const M = E();
1612
- i.value = M;
1613
+ r.value = M;
1613
1614
  }
1614
1615
  a.value = void 0, s.value = null, l.value = null, u.value = null, y.value = null, v.value = null, d.value = null, document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", j);
1615
1616
  }
@@ -1656,7 +1657,7 @@ function Oa(e, t) {
1656
1657
  }
1657
1658
  function k(I = !0) {
1658
1659
  const M = o.value || document.body, O = ye.getCurrent(M), R = n.value;
1659
- I && (D.value = E(), D.value.transform = R.style.transform), O && R && (u.value = O, R.style.height = u.value.height - 14 + "px", R.style.width = u.value.width - 14 + "px", R.style.left = "7px", R.style.top = "7px", R.style.transform = "", i.value = {
1660
+ I && (D.value = E(), D.value.transform = R.style.transform), O && R && (u.value = O, R.style.height = u.value.height - 14 + "px", R.style.width = u.value.width - 14 + "px", R.style.left = "7px", R.style.top = "7px", R.style.transform = "", r.value = {
1660
1661
  size: u.value,
1661
1662
  position: {
1662
1663
  x: 0,
@@ -1664,7 +1665,7 @@ function Oa(e, t) {
1664
1665
  }
1665
1666
  }, C.value = !1, g.value = !0);
1666
1667
  }
1667
- function r() {
1668
+ function i() {
1668
1669
  var I, M;
1669
1670
  if (D.value) {
1670
1671
  const O = {
@@ -1676,7 +1677,7 @@ function Oa(e, t) {
1676
1677
  };
1677
1678
  (I = u.value) == null || I.set(O), (M = y.value) == null || M.set(R);
1678
1679
  const L = n.value;
1679
- L.style.height = O.height + "px", L.style.width = O.width + "px", L.style.left = `${R.x}px`, L.style.top = `${R.y}px`, L.style.transform = "", i.value = {
1680
+ L.style.height = O.height + "px", L.style.width = O.width + "px", L.style.left = `${R.x}px`, L.style.top = `${R.y}px`, L.style.transform = "", r.value = {
1680
1681
  size: O,
1681
1682
  position: R
1682
1683
  }, C.value = e.draggable, g.value = !1;
@@ -1706,23 +1707,23 @@ function Oa(e, t) {
1706
1707
  return {
1707
1708
  renderResizeBar: V,
1708
1709
  boundingElement: o,
1709
- resizedEventParam: i,
1710
+ resizedEventParam: r,
1710
1711
  maximize: k,
1711
- restore: r,
1712
+ restore: i,
1712
1713
  allowDrag: C,
1713
1714
  isMaximized: g,
1714
1715
  unWindowResizeHandle: P
1715
1716
  };
1716
1717
  }
1717
- function Ba(e, t) {
1718
+ function Ma(e, t) {
1718
1719
  const n = p(), o = p(e.draggable), a = p(e.lockAxis), s = p(), l = p(), u = p(!1), y = p(new ee(0, 0)), v = p(new ee(0, 0)), d = p(new ee(0, 0)), h = p(new ee(0, 0));
1719
- function i(b, E) {
1720
+ function r(b, E) {
1720
1721
  if (E.tagName === "BUTTON")
1721
1722
  return !1;
1722
1723
  if (E === b)
1723
1724
  return !0;
1724
1725
  for (const j in E.children)
1725
- if (E.children.hasOwnProperty(j) && i(b, E.children[j]))
1726
+ if (E.children.hasOwnProperty(j) && r(b, E.children[j]))
1726
1727
  return !0;
1727
1728
  return !1;
1728
1729
  }
@@ -1769,7 +1770,7 @@ function Ba(e, t) {
1769
1770
  if (b instanceof MouseEvent && b.button === 2)
1770
1771
  return;
1771
1772
  const E = b.target || b.srcElement;
1772
- s.value !== void 0 && E && !i(E, s.value) || o.value !== !1 && (b.stopPropagation(), b.preventDefault(), y.value = ee.fromEvent(b, n.value), x(), m());
1773
+ s.value !== void 0 && E && !r(E, s.value) || o.value !== !1 && (b.stopPropagation(), b.preventDefault(), y.value = ee.fromEvent(b, n.value), x(), m());
1773
1774
  }
1774
1775
  function _(b, E, j) {
1775
1776
  if (b && o.value && E) {
@@ -1790,7 +1791,7 @@ function Ba(e, t) {
1790
1791
  resetTranslate: x
1791
1792
  };
1792
1793
  }
1793
- function Ma(e, t) {
1794
+ function Da(e, t) {
1794
1795
  const n = p(e.enableEsc);
1795
1796
  function o(a) {
1796
1797
  a.key === "Escape" && e.enableEsc && t.emit("esc", { event: a, type: "esc" });
@@ -1799,10 +1800,10 @@ function Ma(e, t) {
1799
1800
  }
1800
1801
  const Ct = /* @__PURE__ */ te({
1801
1802
  name: "FModal",
1802
- props: Ea,
1803
+ props: Oa,
1803
1804
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc"],
1804
1805
  setup(e, t) {
1805
- const n = p(e.width || 300), o = p(e.height || 200), a = p(e.modelValue), s = p(""), l = p(e.class), u = p(e.fitContent), y = p(e.showHeader), v = p(""), d = p(e.showCloseButton), h = p(e.showMaxButton), i = p(!1), D = p(""), C = p(""), g = p(""), S = p(e.showButtons), f = p(e.title), m = p(e.reiszeable), x = p(e.containment || null), T = p();
1806
+ const n = p(e.width || 300), o = p(e.height || 200), a = p(e.modelValue), s = p(""), l = p(e.class), u = p(e.fitContent), y = p(e.showHeader), v = p(""), d = p(e.showCloseButton), h = p(e.showMaxButton), r = p(!1), D = p(""), C = p(""), g = p(""), S = p(e.showButtons), f = p(e.title), m = p(e.reiszeable), x = p(e.containment || null), T = p();
1806
1807
  function _(H, J) {
1807
1808
  a.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed", H);
1808
1809
  }
@@ -1821,16 +1822,16 @@ const Ct = /* @__PURE__ */ te({
1821
1822
  _(H, !0);
1822
1823
  }
1823
1824
  }], E = p(e.buttons && e.buttons.length ? e.buttons : b), j = $(() => !!v.value), F = $(() => !!S.value && !!E.value), N = p(), V = p(), k = p(!1), {
1824
- renderResizeBar: r,
1825
+ renderResizeBar: i,
1825
1826
  maximize: w,
1826
1827
  restore: B,
1827
1828
  boundingElement: P,
1828
1829
  resizedEventParam: I,
1829
1830
  allowDrag: M,
1830
1831
  unWindowResizeHandle: O
1831
- } = Oa(e), {
1832
+ } = Ba(e), {
1832
1833
  registerDraggle: R
1833
- } = Ba(e);
1834
+ } = Ma(e);
1834
1835
  X(() => e.title, (H, J) => {
1835
1836
  H !== J && (f.value = H);
1836
1837
  }), X(() => e.modelValue, (H, J) => {
@@ -1850,7 +1851,7 @@ const Ct = /* @__PURE__ */ te({
1850
1851
  const H = document.querySelectorAll(".farris-modal").length;
1851
1852
  (!H || H - 1 <= 0) && document.body.classList.remove("modal-open"), T.value && T.value.classList.remove("show");
1852
1853
  }
1853
- const Q = $(() => (a.value ? document.body.classList.add("modal-open") : L(), a.value)), re = $(() => {
1854
+ const Q = $(() => (a.value ? document.body.classList.add("modal-open") : L(), a.value)), ie = $(() => {
1854
1855
  const H = {
1855
1856
  modal: !0,
1856
1857
  "farris-modal": !0,
@@ -1908,7 +1909,7 @@ const Ct = /* @__PURE__ */ te({
1908
1909
  H.width && (n.value = H.width), H.height && (o.value = H.height), H.buttons && (E.value = H.buttons), H.title && (f.value = H.title);
1909
1910
  }
1910
1911
  de(() => {
1911
- V.value && !x.value && (x.value = V.value.parentElement, P.value = x.value, R(N.value, V.value, P.value)), Q.value && document.body.classList.add("modal-open"), Ma(e, t);
1912
+ V.value && !x.value && (x.value = V.value.parentElement, P.value = x.value, R(N.value, V.value, P.value)), Q.value && document.body.classList.add("modal-open"), Da(e, t);
1912
1913
  }), nt(() => {
1913
1914
  L(), O && O();
1914
1915
  }), t.expose({
@@ -1917,7 +1918,7 @@ const Ct = /* @__PURE__ */ te({
1917
1918
  close: _
1918
1919
  });
1919
1920
  function Le() {
1920
- return c("ul", null, [i.value && c("li", {
1921
+ return c("ul", null, [r.value && c("li", {
1921
1922
  class: "f-btn-icon f-bare"
1922
1923
  }, [c("span", {
1923
1924
  class: "f-icon modal_minimize"
@@ -1956,7 +1957,7 @@ const Ct = /* @__PURE__ */ te({
1956
1957
  default: () => {
1957
1958
  var H, J;
1958
1959
  return [Q.value && c("div", {
1959
- class: re.value,
1960
+ class: ie.value,
1960
1961
  style: "display: block",
1961
1962
  ref: T
1962
1963
  }, [c("div", {
@@ -1987,7 +1988,7 @@ const Ct = /* @__PURE__ */ te({
1987
1988
  width: "100%",
1988
1989
  frameborder: "0",
1989
1990
  src: C.value
1990
- }, null)]), F.value && He()]), !u.value && m.value && V.value && r(V.value)])])];
1991
+ }, null)]), F.value && He()]), !u.value && m.value && V.value && i(V.value)])])];
1991
1992
  }
1992
1993
  });
1993
1994
  }
@@ -1998,7 +1999,7 @@ function wt(e) {
1998
1999
  if (e.render && typeof e.render == "function")
1999
2000
  return e.render;
2000
2001
  }
2001
- function Da(e) {
2002
+ function ja(e) {
2002
2003
  const t = document.createElement("div");
2003
2004
  t.style.display = "contents";
2004
2005
  const n = mt({
@@ -2006,7 +2007,7 @@ function Da(e) {
2006
2007
  nt(() => {
2007
2008
  document.body.removeChild(t);
2008
2009
  });
2009
- const s = p(), l = p(e.class || ""), u = p(!!e.showButtons), y = p(!!e.showHeader), v = p(e.showCloseButton == null ? !0 : e.showCloseButton), d = p(!0), h = p(e.title || ""), i = e.acceptCallback || (() => {
2010
+ const s = p(), l = p(e.class || ""), u = p(!!e.showButtons), y = p(!!e.showHeader), v = p(e.showCloseButton == null ? !0 : e.showCloseButton), d = p(!0), h = p(e.title || ""), r = e.acceptCallback || (() => {
2010
2011
  }), D = e.rejectCallback || (() => {
2011
2012
  }), C = e.closedCallback || ((m) => {
2012
2013
  }), g = e.resizeHandle || ((m) => {
@@ -2029,7 +2030,7 @@ function Da(e) {
2029
2030
  "show-buttons": u.value,
2030
2031
  "show-close-button": v.value,
2031
2032
  "show-max-button": !1,
2032
- onAccept: i,
2033
+ onAccept: r,
2033
2034
  onCancel: D,
2034
2035
  fitContent: e.fitContent == null ? !0 : e.fitContent,
2035
2036
  onClosed: f,
@@ -2041,7 +2042,7 @@ function Da(e) {
2041
2042
  });
2042
2043
  return document.body.appendChild(t), n.mount(t), n;
2043
2044
  }
2044
- class ja {
2045
+ class Na {
2045
2046
  constructor(t) {
2046
2047
  z(this, "appContext", null);
2047
2048
  z(this, "modalRef", p());
@@ -2060,7 +2061,7 @@ class ja {
2060
2061
  showButtons: !0,
2061
2062
  showHeader: !0
2062
2063
  }, t);
2063
- return Da(n);
2064
+ return ja(n);
2064
2065
  }
2065
2066
  open(t) {
2066
2067
  const n = document.createDocumentFragment();
@@ -2080,7 +2081,7 @@ class ja {
2080
2081
  a.value = !1;
2081
2082
  const m = (x = f == null ? void 0 : f.target) == null ? void 0 : x.classList.contains("modal_close");
2082
2083
  u(f, this.isUseEscCloseModal.value ? "esc" : m ? "icon" : "button");
2083
- }, i = (f) => {
2084
+ }, r = (f) => {
2084
2085
  h(f), v && Xe(() => {
2085
2086
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qe(null, n), v = null, this.modalRef.value = null, this.modalRefs) {
2086
2087
  const m = Object.keys(this.modalRefs);
@@ -2098,7 +2099,7 @@ class ja {
2098
2099
  }, o.value, {
2099
2100
  onAccept: s,
2100
2101
  onCancel: l,
2101
- onClosed: i,
2102
+ onClosed: r,
2102
2103
  onResize: y,
2103
2104
  onEsc: D
2104
2105
  }), {
@@ -2119,7 +2120,7 @@ class ja {
2119
2120
  ...o
2120
2121
  }), n);
2121
2122
  },
2122
- destroy: i,
2123
+ destroy: r,
2123
2124
  modalRef: this.activeModalInstance
2124
2125
  };
2125
2126
  }
@@ -2130,7 +2131,7 @@ const _t = /* @__PURE__ */ new Map([
2130
2131
  function St(e, t, n) {
2131
2132
  return t;
2132
2133
  }
2133
- const Na = "https://json-schema.org/draft/2020-12/schema", Pa = "https://farris-design.gitee.io/list-view.schema.json", $a = "list-view", Ra = "A Farris Component", Aa = "object", La = {
2134
+ const Pa = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-design.gitee.io/list-view.schema.json", Ra = "list-view", Aa = "A Farris Component", La = "object", Ha = {
2134
2135
  id: {
2135
2136
  description: "The unique identifier for list-view",
2136
2137
  type: "string"
@@ -2192,18 +2193,18 @@ const Na = "https://json-schema.org/draft/2020-12/schema", Pa = "https://farris-
2192
2193
  type: "boolean",
2193
2194
  default: !0
2194
2195
  }
2195
- }, Ha = [
2196
+ }, za = [
2196
2197
  "id",
2197
2198
  "type"
2198
- ], za = {
2199
- $schema: Na,
2200
- $id: Pa,
2201
- title: $a,
2202
- description: Ra,
2203
- type: Aa,
2204
- properties: La,
2205
- required: Ha
2206
- }, Ga = "list-view", qa = "A Farris Component", Wa = "object", Ua = {
2199
+ ], Ga = {
2200
+ $schema: Pa,
2201
+ $id: $a,
2202
+ title: Ra,
2203
+ description: Aa,
2204
+ type: La,
2205
+ properties: Ha,
2206
+ required: za
2207
+ }, qa = "list-view", Wa = "A Farris Component", Ua = "object", Ka = {
2207
2208
  basic: {
2208
2209
  description: "Basic Infomation",
2209
2210
  title: "基本信息",
@@ -2225,11 +2226,11 @@ const Na = "https://json-schema.org/draft/2020-12/schema", Pa = "https://farris-
2225
2226
  }
2226
2227
  }
2227
2228
  }
2228
- }, Ka = {
2229
- title: Ga,
2230
- description: qa,
2231
- type: Wa,
2232
- categories: Ua
2229
+ }, Ya = {
2230
+ title: qa,
2231
+ description: Wa,
2232
+ type: Ua,
2233
+ categories: Ka
2233
2234
  }, je = {
2234
2235
  /** 列集合 */
2235
2236
  columns: {
@@ -2268,8 +2269,10 @@ const Na = "https://json-schema.org/draft/2020-12/schema", Pa = "https://farris-
2268
2269
  }
2269
2270
  },
2270
2271
  keepOrder: { type: Boolean, default: !1 },
2271
- disableField: { type: String, default: "disabled" }
2272
- }, xt = _e(je, za, _t, St, Ka);
2272
+ disableField: { type: String, default: "disabled" },
2273
+ // 搜索启用高亮
2274
+ enableHighlightSearch: { type: Boolean, default: !0 }
2275
+ }, xt = _e(je, Ga, _t, St, Ya);
2273
2276
  function Ft(e, t) {
2274
2277
  function n(s) {
2275
2278
  const l = [];
@@ -2280,11 +2283,11 @@ function Ft(e, t) {
2280
2283
  }
2281
2284
  function o(s, l) {
2282
2285
  const u = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
2283
- return n(u).map((h) => ({ textNode: h, text: (h.textContent || "").toLocaleLowerCase() })).map(({ textNode: h, text: i }) => {
2286
+ return n(u).map((h) => ({ textNode: h, text: (h.textContent || "").toLocaleLowerCase() })).map(({ textNode: h, text: r }) => {
2284
2287
  const D = [];
2285
2288
  let C = 0;
2286
- for (; C < i.length; ) {
2287
- const g = i.indexOf(l, C);
2289
+ for (; C < r.length; ) {
2290
+ const g = r.indexOf(l, C);
2288
2291
  if (g === -1)
2289
2292
  break;
2290
2293
  D.push(g), C = g + l.length;
@@ -2304,7 +2307,7 @@ function Ft(e, t) {
2304
2307
  return { search: a };
2305
2308
  }
2306
2309
  function ct(e, t, n, o, a, s, l, u, y, v) {
2307
- const d = p(e.size), h = p(e.textField), i = p(e.titleField), D = p(e.multiSelect), C = p(e.disableField), {
2310
+ const d = p(e.size), h = p(e.textField), r = p(e.titleField), D = p(e.multiSelect), C = p(e.disableField), {
2308
2311
  onMouseenterItem: g,
2309
2312
  onMouseoverItem: S,
2310
2313
  onMouseoutItem: f
@@ -2341,16 +2344,16 @@ function ct(e, t, n, o, a, s, l, u, y, v) {
2341
2344
  class: "f-list-content"
2342
2345
  }, [c("div", {
2343
2346
  style: b.value,
2344
- title: j.raw[i.value] || j.raw[h.value]
2347
+ title: j.raw[r.value] || j.raw[h.value]
2345
2348
  }, [j.raw[h.value]])])]);
2346
2349
  }
2347
2350
  return {
2348
2351
  renderItem: E
2349
2352
  };
2350
2353
  }
2351
- function Ya(e, t, n, o, a, s, l, u, y, v) {
2354
+ function Xa(e, t, n, o, a, s, l, u, y, v) {
2352
2355
  const d = p(e.multiSelect), h = p(e.disableField), {
2353
- onMouseenterItem: i,
2356
+ onMouseenterItem: r,
2354
2357
  onMouseoverItem: D,
2355
2358
  onMouseoutItem: C
2356
2359
  } = s, {
@@ -2374,7 +2377,7 @@ function Ya(e, t, n, o, a, s, l, u, y, v) {
2374
2377
  id: g(_, b),
2375
2378
  key: g(_, b),
2376
2379
  onClick: (j) => m(j, _, b),
2377
- onMouseenter: (j) => i(j, _, b),
2380
+ onMouseenter: (j) => r(j, _, b),
2378
2381
  onMouseover: (j) => D(j, _, b),
2379
2382
  onMouseout: (j) => C(j, _, b)
2380
2383
  }, [d.value && c("div", {
@@ -2395,9 +2398,9 @@ function Ya(e, t, n, o, a, s, l, u, y, v) {
2395
2398
  renderItem: T
2396
2399
  };
2397
2400
  }
2398
- function Xa(e, t, n, o, a, s, l, u, y, v) {
2401
+ function Ja(e, t, n, o, a, s, l, u, y, v) {
2399
2402
  const d = p(e.multiSelect), h = p(e.disableField), {
2400
- onMouseenterItem: i,
2403
+ onMouseenterItem: r,
2401
2404
  onMouseoverItem: D,
2402
2405
  onMouseoutItem: C
2403
2406
  } = s, {
@@ -2415,42 +2418,42 @@ function Xa(e, t, n, o, a, s, l, u, y, v) {
2415
2418
  } = y, j = $(() => ({
2416
2419
  margin: d.value ? "10px 0" : "10px 0px 10px 14px"
2417
2420
  }));
2418
- function F(r) {
2421
+ function F(i) {
2419
2422
  return c("div", {
2420
2423
  style: j.value
2421
- }, [r.raw.name]);
2424
+ }, [i.raw.name]);
2422
2425
  }
2423
2426
  function N() {
2424
2427
  return t.slots.itemContent ? t.slots.itemContent : F;
2425
2428
  }
2426
2429
  const V = N();
2427
- function k(r, w, B) {
2430
+ function k(i, w, B) {
2428
2431
  return c("li", {
2429
- class: S(r, w),
2430
- id: g(r, w),
2431
- key: g(r, w),
2432
- onClick: (P) => m(P, r, w),
2433
- onMouseenter: (P) => i(P, r, w),
2434
- onMouseover: (P) => D(P, r, w),
2435
- onMouseout: (P) => C(P, r, w),
2432
+ class: S(i, w),
2433
+ id: g(i, w),
2434
+ key: g(i, w),
2435
+ onClick: (P) => m(P, i, w),
2436
+ onMouseenter: (P) => r(P, i, w),
2437
+ onMouseover: (P) => D(P, i, w),
2438
+ onMouseout: (P) => C(P, i, w),
2436
2439
  draggable: "true",
2437
- onDragstart: (P) => x(P, r, w),
2440
+ onDragstart: (P) => x(P, i, w),
2438
2441
  onDragenter: (P) => T(P, w),
2439
- onDragend: (P) => b(P, r),
2442
+ onDragend: (P) => b(P, i),
2440
2443
  onDragover: (P) => _(P, w)
2441
2444
  }, [d.value && c("div", {
2442
2445
  class: "f-list-select",
2443
2446
  onClick: (P) => P.stopPropagation()
2444
2447
  }, [c(ot, {
2445
- id: "list-" + g(r, w),
2448
+ id: "list-" + g(i, w),
2446
2449
  customClass: "listview-checkbox",
2447
- disabled: r[h.value] || !r.checked,
2448
- checked: r.checked,
2449
- "onUpdate:checked": (P) => r.checked = P,
2450
- onChange: (P) => f(r, w, !P.checked)
2450
+ disabled: i[h.value] || !i.checked,
2451
+ checked: i.checked,
2452
+ "onUpdate:checked": (P) => i.checked = P,
2453
+ onChange: (P) => f(i, w, !P.checked)
2451
2454
  }, null)]), c("div", {
2452
2455
  class: "f-list-content"
2453
- }, [V(r)]), c("div", {
2456
+ }, [V(i)]), c("div", {
2454
2457
  class: "f-list-remove",
2455
2458
  onClick: (P) => E(w)
2456
2459
  }, [c("div", {
@@ -2467,15 +2470,15 @@ function Xa(e, t, n, o, a, s, l, u, y, v) {
2467
2470
  renderItem: k
2468
2471
  };
2469
2472
  }
2470
- function Ja(e, t, n, o, a, s, l, u, y, v) {
2473
+ function Qa(e, t, n, o, a, s, l, u, y, v) {
2471
2474
  var g;
2472
2475
  const d = p(((g = e.group) == null ? void 0 : g.groupFields) || []), {
2473
2476
  collpaseGroupIconClass: h
2474
2477
  } = a, {
2475
- toggleGroupRow: i
2478
+ toggleGroupRow: r
2476
2479
  } = v;
2477
2480
  function D(S, f) {
2478
- f.collapse = !f.collapse, n.value = i(f.collapse ? "collapse" : "expand", f, n.value);
2481
+ f.collapse = !f.collapse, n.value = r(f.collapse ? "collapse" : "expand", f, n.value);
2479
2482
  }
2480
2483
  function C(S, f, m) {
2481
2484
  return S.layer > -1 && c("div", {
@@ -2493,7 +2496,7 @@ function Ja(e, t, n, o, a, s, l, u, y, v) {
2493
2496
  renderItem: C
2494
2497
  };
2495
2498
  }
2496
- function Qa() {
2499
+ function Za() {
2497
2500
  const e = p(-1), t = p(""), n = p(-1), o = p(!1);
2498
2501
  function a(v, d, h) {
2499
2502
  n.value = h;
@@ -2521,10 +2524,10 @@ function Qa() {
2521
2524
  suspendHover: u
2522
2525
  };
2523
2526
  }
2524
- function Za(e, t, n, o) {
2525
- const a = p(e.idField), { dataView: s } = n, l = p(-1), u = p(!1), { activeIndex: y, focusedItemId: v, hoverIndex: d, resumeHover: h, suspendHover: i } = o;
2527
+ function es(e, t, n, o) {
2528
+ const a = p(e.idField), { dataView: s } = n, l = p(-1), u = p(!1), { activeIndex: y, focusedItemId: v, hoverIndex: d, resumeHover: h, suspendHover: r } = o;
2526
2529
  function D(f, m, x) {
2527
- f.stopPropagation(), i(), m && setTimeout(() => {
2530
+ f.stopPropagation(), r(), m && setTimeout(() => {
2528
2531
  l.value = x, u.value = !0, m.moving = !0;
2529
2532
  });
2530
2533
  }
@@ -2550,7 +2553,7 @@ function Za(e, t, n, o) {
2550
2553
  isDragging: u
2551
2554
  };
2552
2555
  }
2553
- function es(e, t, n) {
2556
+ function ts(e, t, n) {
2554
2557
  const { dataView: o } = n;
2555
2558
  function a(s) {
2556
2559
  if (s > -1 && s < o.value.length) {
@@ -2560,36 +2563,36 @@ function es(e, t, n) {
2560
2563
  }
2561
2564
  return { removeItem: a };
2562
2565
  }
2563
- function ts(e, t, n, o, a, s) {
2566
+ function ns(e, t, n, o, a, s) {
2564
2567
  const l = p(e.idField), u = p(e.disableField), y = p(e.draggable), v = p(e.itemClass), d = p(e.selection.multiSelect ?? !1), h = p(e.selection.multiSelectMode);
2565
2568
  p(!0);
2566
- const { isDragging: i } = o, { activeIndex: D, focusedItemId: C, hoverIndex: g } = a, { clearSelection: S, getSelectedItems: f, toggleSelectItem: m } = s, x = p(f());
2569
+ const { isDragging: r } = o, { activeIndex: D, focusedItemId: C, hoverIndex: g } = a, { clearSelection: S, getSelectedItems: f, toggleSelectItem: m } = s, x = p(f());
2567
2570
  function T(V, k) {
2568
- const r = {
2571
+ const i = {
2569
2572
  "f-list-view-group-item": !0,
2570
2573
  "f-list-view-draggable-item": y.value,
2571
2574
  "f-un-click": !V.checked,
2572
2575
  "f-un-select": !!V.raw[u.value],
2573
2576
  "f-listview-active": V.raw.__fv_index__ === D.value,
2574
- "f-listview-hover": !i.value && k === g.value,
2577
+ "f-listview-hover": !r.value && k === g.value,
2575
2578
  moving: !!V.moving
2576
2579
  };
2577
- return v.value.split(" ").reduce((B, P) => (B[P] = !0, B), r), r;
2580
+ return v.value.split(" ").reduce((B, P) => (B[P] = !0, B), i), i;
2578
2581
  }
2579
2582
  function _(V, k) {
2580
2583
  return V.raw[l.value] || "";
2581
2584
  }
2582
2585
  const b = $(() => !d.value);
2583
- function E(V, k, r) {
2584
- V.checked = r, !V.raw[u.value] && (b.value && (C.value = V.raw[l.value]), m(V));
2586
+ function E(V, k, i) {
2587
+ V.checked = i, !V.raw[u.value] && (b.value && (C.value = V.raw[l.value]), m(V));
2585
2588
  }
2586
2589
  const j = $(() => d.value && h.value === "OnCheckClearByClick"), F = $(() => !d.value || d.value && (h.value === "OnCheckAndClick" || h.value === "OnClick"));
2587
- function N(V, k, r) {
2590
+ function N(V, k, i) {
2588
2591
  if (k.raw[u.value]) {
2589
2592
  V.preventDefault(), V.stopPropagation();
2590
2593
  return;
2591
2594
  }
2592
- C.value = k.raw[l.value], D.value = r, j.value && S(n.value), F.value && (m(k), x.value = f()), t.emit("clickItem", { data: x.value, index: r }), t.emit("activeChange", x.value);
2595
+ C.value = k.raw[l.value], D.value = i, j.value && S(n.value), F.value && (m(k), x.value = f()), t.emit("clickItem", { data: x.value, index: i }), t.emit("activeChange", x.value);
2593
2596
  }
2594
2597
  return {
2595
2598
  getKey: _,
@@ -2599,19 +2602,19 @@ function ts(e, t, n, o, a, s) {
2599
2602
  };
2600
2603
  }
2601
2604
  function Tt(e, t, n, o, a, s, l) {
2602
- const u = p(e.view), y = p(e.view === "CardView"), v = p({}), d = p("暂无数据"), h = Qa(), i = Za(e, t, o, h), D = es(e, t, o), C = ts(e, t, n, i, h, s), g = $(() => ({
2605
+ const u = p(e.view), y = p(e.view === "CardView"), v = p({}), d = p("暂无数据"), h = Za(), r = es(e, t, o, h), D = ts(e, t, o), C = ns(e, t, n, r, h, s), g = $(() => ({
2603
2606
  "f-list-view-group": !0,
2604
2607
  "d-flex": y.value,
2605
2608
  "flex-wrap": y.value
2606
2609
  })), S = $(() => !!n.value && n.value.length > 0), f = $(() => n.value.length === 0), m = $(() => f.value && !t.slots.empty);
2607
2610
  function x() {
2608
- return u.value === "SingleView" ? ct : u.value === "DraggableView" ? Xa : (u.value === "ContentView" || u.value === "CardView") && t.slots.content ? Ya : ct;
2611
+ return u.value === "SingleView" ? ct : u.value === "DraggableView" ? Ja : (u.value === "ContentView" || u.value === "CardView") && t.slots.content ? Xa : ct;
2609
2612
  }
2610
2613
  const T = x(), {
2611
2614
  renderItem: _
2612
- } = T(e, t, n, i, a, h, C, s, D, l), {
2615
+ } = T(e, t, n, r, a, h, C, s, D, l), {
2613
2616
  renderItem: b
2614
- } = Ja(e, t, n, i, a, h, C, s, D, l), E = [_, b];
2617
+ } = Qa(e, t, n, r, a, h, C, s, D, l), E = [_, b];
2615
2618
  function j() {
2616
2619
  return n.value.filter((V) => V.visible !== !1).map((V, k) => E[V.type](V, k, v));
2617
2620
  }
@@ -2644,20 +2647,20 @@ function kt(e, t, n) {
2644
2647
  }
2645
2648
  function Me(e, t, n) {
2646
2649
  const o = p(e.headerClass), a = p(e.placeholder), s = p(""), l = $(() => !s.value), u = $(() => !!s.value);
2647
- function y(i) {
2650
+ function y(r) {
2648
2651
  s.value = "";
2649
2652
  }
2650
- X(s, (i) => {
2651
- n.search(i);
2653
+ X(s, (r) => {
2654
+ e.enableHighlightSearch && n.search(r), t.emit("afterSearch", r);
2652
2655
  });
2653
2656
  const v = $(() => {
2654
- const i = {
2657
+ const r = {
2655
2658
  "form-group": !0,
2656
2659
  "farris-form-group": !0
2657
2660
  };
2658
- return o.value && o.value.split(" ").reduce((C, g) => (C[g] = !0, C), i), i;
2661
+ return o.value && o.value.split(" ").reduce((C, g) => (C[g] = !0, C), r), r;
2659
2662
  });
2660
- function d(i) {
2663
+ function d(r) {
2661
2664
  }
2662
2665
  function h() {
2663
2666
  return c("div", {
@@ -2673,7 +2676,7 @@ function Me(e, t, n) {
2673
2676
  class: "input-group f-state-editable"
2674
2677
  }, [ht(c("input", {
2675
2678
  class: "form-control f-utils-fill text-left",
2676
- "onUpdate:modelValue": (i) => s.value = i,
2679
+ "onUpdate:modelValue": (r) => s.value = r,
2677
2680
  name: "input-group-value",
2678
2681
  type: "text",
2679
2682
  placeholder: a.value,
@@ -2682,7 +2685,7 @@ function Me(e, t, n) {
2682
2685
  class: "input-group-append"
2683
2686
  }, [u.value && c("span", {
2684
2687
  class: "input-group-text input-group-clear",
2685
- onClick: (i) => y()
2688
+ onClick: (r) => y()
2686
2689
  }, [c("i", {
2687
2690
  class: "f-icon f-icon-close-circle"
2688
2691
  }, null)]), l.value && c("span", {
@@ -2698,9 +2701,9 @@ function Me(e, t, n) {
2698
2701
  const Ce = /* @__PURE__ */ te({
2699
2702
  name: "FListView",
2700
2703
  props: je,
2701
- emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
2704
+ emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
2702
2705
  setup(e, t) {
2703
- const n = p(), o = p(!0), a = p(!1), s = p([]), l = 0, u = p(e.columns), y = _o(e), v = So(e), d = xo(e, y), h = Fo(e), i = To(e, /* @__PURE__ */ new Map(), v, y, h), D = ko(e, i, y, s, t), C = Ft(e, n), g = $(() => i.dataView.value.length), S = Io(e, y), f = Vo(), m = Eo(e, {}, f), x = Oo(e, S, v, y, f, m), T = Bo(e, y, m, x), _ = Mo(e, y, m, x), b = Do(e, u, i, g, l, x, T, _), {
2706
+ const n = p(), o = p(!0), a = p(!1), s = p([]), l = 0, u = p(e.columns), y = _o(e), v = So(e), d = xo(e, y), h = Fo(e), r = To(e, /* @__PURE__ */ new Map(), v, y, h), D = ko(e, r, y, s, t), C = Ft(e, n), g = $(() => r.dataView.value.length), S = Io(e, y), f = Vo(), m = Eo(e, {}, f), x = Oo(e, S, v, y, f, m), T = Bo(e, y, m, x), _ = Mo(e, y, m, x), b = Do(e, u, r, g, l, x, T, _), {
2704
2707
  getVisualData: E
2705
2708
  } = b;
2706
2709
  s.value = E(0, g.value + l - 1);
@@ -2717,13 +2720,13 @@ const Ce = /* @__PURE__ */ te({
2717
2720
  const V = N(), {
2718
2721
  renderHeader: k
2719
2722
  } = V(e, t, C), {
2720
- renderListArea: r
2721
- } = Tt(e, t, s, i, d, D, b);
2723
+ renderListArea: i
2724
+ } = Tt(e, t, s, r, d, D, b);
2722
2725
  function w(I) {
2723
2726
  C.search(I);
2724
2727
  }
2725
2728
  function B(I) {
2726
- I && (i.load(I), s.value = E(0, g.value + l - 1));
2729
+ I && (r.load(I), s.value = E(0, g.value + l - 1));
2727
2730
  }
2728
2731
  t.expose({
2729
2732
  search: w,
@@ -2744,13 +2747,13 @@ const Ce = /* @__PURE__ */ te({
2744
2747
  onMouseleave: () => {
2745
2748
  a.value = !1;
2746
2749
  }
2747
- }, [r()]), F.value && c("div", {
2750
+ }, [i()]), F.value && c("div", {
2748
2751
  class: "f-list-view-footer"
2749
2752
  }, [t.slots.footer && t.slots.footer()])]);
2750
2753
  }
2751
2754
  });
2752
2755
  var oe = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(oe || {}), ve = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(ve || {}), Ne = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(Ne || {});
2753
- function ns() {
2756
+ function os() {
2754
2757
  function e(n, o) {
2755
2758
  const a = n.pre;
2756
2759
  if (a) {
@@ -2767,7 +2770,7 @@ function ns() {
2767
2770
  }
2768
2771
  return { updateRowPosition: e, updateVisualInfomation: t };
2769
2772
  }
2770
- function os() {
2773
+ function as() {
2771
2774
  function e(o, a) {
2772
2775
  switch (o.command) {
2773
2776
  case "edit":
@@ -2827,7 +2830,7 @@ const It = {
2827
2830
  */
2828
2831
  isControlInline: { type: Boolean, default: !0 }
2829
2832
  };
2830
- class as {
2833
+ class ss {
2831
2834
  constructor(t = { value: [] }) {
2832
2835
  z(this, "editorType", "check-box");
2833
2836
  z(this, "value");
@@ -2847,7 +2850,7 @@ class as {
2847
2850
  return this.value.length === 0;
2848
2851
  }
2849
2852
  }
2850
- class ss {
2853
+ class ls {
2851
2854
  constructor(t = { textValue: "", value: "", valueField: "" }) {
2852
2855
  z(this, "editorType", "combo-lookup");
2853
2856
  z(this, "textValue");
@@ -2881,7 +2884,7 @@ class ss {
2881
2884
  return !this.valueField;
2882
2885
  }
2883
2886
  }
2884
- class ls {
2887
+ class rs {
2885
2888
  constructor(t = { value: "" }) {
2886
2889
  z(this, "editorType", "date-picker");
2887
2890
  z(this, "value");
@@ -2942,7 +2945,7 @@ class is {
2942
2945
  return !this.value;
2943
2946
  }
2944
2947
  }
2945
- class rs {
2948
+ class us {
2946
2949
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
2947
2950
  constructor(t = { value: "", dispalyText: "" }) {
2948
2951
  z(this, "editorType", "combo-list");
@@ -2965,7 +2968,7 @@ class rs {
2965
2968
  return !this.displayText;
2966
2969
  }
2967
2970
  }
2968
- class us {
2971
+ class cs {
2969
2972
  constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
2970
2973
  z(this, "editorType", "input-group");
2971
2974
  // 通过弹窗返回的若干个值对象构成的数组
@@ -3004,7 +3007,7 @@ class us {
3004
3007
  return !this.displayText;
3005
3008
  }
3006
3009
  }
3007
- class cs {
3010
+ class ds {
3008
3011
  constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
3009
3012
  z(this, "editorType", "lookup");
3010
3013
  z(this, "textValue");
@@ -3040,7 +3043,7 @@ class cs {
3040
3043
  return !this.value.length;
3041
3044
  }
3042
3045
  }
3043
- class ds {
3046
+ class fs {
3044
3047
  constructor(t = { value: "" }) {
3045
3048
  z(this, "editorType", "month-picker");
3046
3049
  z(this, "value");
@@ -3060,7 +3063,7 @@ class ds {
3060
3063
  return !this.value;
3061
3064
  }
3062
3065
  }
3063
- class fs {
3066
+ class ps {
3064
3067
  constructor(t = { begin: "", end: "" }) {
3065
3068
  z(this, "editorType", "month-range");
3066
3069
  z(this, "begin");
@@ -3081,7 +3084,7 @@ class fs {
3081
3084
  return !this.begin || !this.end;
3082
3085
  }
3083
3086
  }
3084
- class ps {
3087
+ class vs {
3085
3088
  constructor(t = { begin: null, end: null }) {
3086
3089
  z(this, "editorType", "number-range");
3087
3090
  z(this, "begin");
@@ -3105,7 +3108,7 @@ class ps {
3105
3108
  return this.begin == null && this.end == null;
3106
3109
  }
3107
3110
  }
3108
- class vs {
3111
+ class ms {
3109
3112
  constructor(t = { value: "" }) {
3110
3113
  z(this, "editorType", "number-spinner");
3111
3114
  z(this, "value");
@@ -3125,7 +3128,7 @@ class vs {
3125
3128
  return this.value == null;
3126
3129
  }
3127
3130
  }
3128
- class ms {
3131
+ class hs {
3129
3132
  constructor(t = { value: null }) {
3130
3133
  z(this, "editorType", "radio-group");
3131
3134
  z(this, "value");
@@ -3169,15 +3172,15 @@ function Et() {
3169
3172
  function e(t, n) {
3170
3173
  switch (t) {
3171
3174
  case "check-box":
3172
- return new as(n);
3175
+ return new ss(n);
3173
3176
  case "combo-list":
3174
- return new rs(n);
3177
+ return new us(n);
3175
3178
  case "combo-lookup":
3176
- return new ss(n);
3179
+ return new ls(n);
3177
3180
  case "input-group":
3178
- return new us(n);
3181
+ return new cs(n);
3179
3182
  case "date-picker":
3180
- return new ls(n);
3183
+ return new rs(n);
3181
3184
  case "date-range":
3182
3185
  return new dt(n);
3183
3186
  case "datetime-picker":
@@ -3185,17 +3188,17 @@ function Et() {
3185
3188
  case "datetime-range":
3186
3189
  return new dt(n);
3187
3190
  case "lookup":
3188
- return new cs(n);
3189
- case "month-picker":
3190
3191
  return new ds(n);
3191
- case "month-range":
3192
+ case "month-picker":
3192
3193
  return new fs(n);
3193
- case "number-range":
3194
+ case "month-range":
3194
3195
  return new ps(n);
3195
- case "number-spinner":
3196
+ case "number-range":
3196
3197
  return new vs(n);
3197
- case "radio-group":
3198
+ case "number-spinner":
3198
3199
  return new ms(n);
3200
+ case "radio-group":
3201
+ return new hs(n);
3199
3202
  default:
3200
3203
  return new Vt(n);
3201
3204
  }
@@ -3219,22 +3222,22 @@ function Ot(e, t) {
3219
3222
  return d.editor;
3220
3223
  }
3221
3224
  function u(d) {
3222
- return d.map((i) => Object.assign({}, i)).map((i) => (i.editor = l(i), i));
3225
+ return d.map((r) => Object.assign({}, r)).map((r) => (r.editor = l(r), r));
3223
3226
  }
3224
3227
  function y(d = !0) {
3225
- n.value.reduce((h, i) => (d || (i.editor = l(i)), h.set(i.labelCode, i), h), a);
3228
+ n.value.reduce((h, r) => (d || (r.editor = l(r)), h.set(r.labelCode, r), h), a);
3226
3229
  }
3227
3230
  function v(d) {
3228
3231
  return d.forEach((h) => {
3229
3232
  if (h && typeof h.valueConfig == "object") {
3230
- const i = a.get(h.fieldCode);
3231
- h.value = s(i.editor.type, h.valueConfig.content);
3233
+ const r = a.get(h.fieldCode);
3234
+ h.value = s(r.editor.type, h.valueConfig.content);
3232
3235
  }
3233
3236
  }), d;
3234
3237
  }
3235
3238
  return { convertToSingleControl: u, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: y, initialConditionValue: v };
3236
3239
  }
3237
- function hs(e, t, n) {
3240
+ function gs(e, t, n) {
3238
3241
  const o = p(null), a = p(n), s = p(0), l = $(() => v(s.value));
3239
3242
  function u() {
3240
3243
  a.value && (o.value = new ResizeObserver(y((d) => {
@@ -3243,17 +3246,17 @@ function hs(e, t, n) {
3243
3246
  })), o.value.observe(a.value));
3244
3247
  }
3245
3248
  function y(d, h) {
3246
- let i = null;
3249
+ let r = null;
3247
3250
  return function() {
3248
3251
  const D = arguments;
3249
- i || (i = setTimeout(() => {
3250
- i = null;
3252
+ r || (r = setTimeout(() => {
3253
+ r = null;
3251
3254
  }, 500), d(...D));
3252
3255
  };
3253
3256
  }
3254
3257
  function v(d) {
3255
- let i = "col-12";
3256
- return d > 250 * 6 ? i = "col-2" : d > 250 * 4 ? i = "col-3" : d > 250 * 3 ? i = "col-4" : d > 250 * 2 && (i = "col-6"), i;
3258
+ let r = "col-12";
3259
+ return d > 250 * 6 ? r = "col-2" : d > 250 * 4 ? r = "col-3" : d > 250 * 3 ? r = "col-4" : d > 250 * 2 && (r = "col-6"), r;
3257
3260
  }
3258
3261
  return X([n], ([d]) => {
3259
3262
  a.value = d, u();
@@ -3271,13 +3274,13 @@ const ft = /* @__PURE__ */ te({
3271
3274
  initialConditionValue: u,
3272
3275
  fieldMap: y,
3273
3276
  loadFieldConfigs: v
3274
- } = l, d = hs(e, t, n), {
3277
+ } = l, d = gs(e, t, n), {
3275
3278
  conditionClass: h,
3276
- resizeObserver: i
3279
+ resizeObserver: r
3277
3280
  } = d;
3278
3281
  v(!0), u(s.value), vt(() => {
3279
3282
  var f;
3280
- (f = i.value) == null || f.unobserve(n.value);
3283
+ (f = r.value) == null || f.unobserve(n.value);
3281
3284
  }), X(() => e.conditions, () => {
3282
3285
  s.value = e.conditions;
3283
3286
  });
@@ -3311,25 +3314,25 @@ const ft = /* @__PURE__ */ te({
3311
3314
  ref: n
3312
3315
  }, [S()]);
3313
3316
  }
3314
- }), it = /* @__PURE__ */ new Map([
3317
+ }), rt = /* @__PURE__ */ new Map([
3315
3318
  ["appearance", De]
3316
3319
  ]);
3317
- function gs(e, t, n, o) {
3320
+ function ys(e, t, n, o) {
3318
3321
  const a = e.getSchemaByType("section");
3319
3322
  return a.id = `${o}-section`, a.appearance = { class: "f-section-form f-section-in-main" }, a.mainTitle = "标题", a.contents = [t], a;
3320
3323
  }
3321
- function ys(e, t, n, o) {
3324
+ function bs(e, t, n, o) {
3322
3325
  const a = e.getSchemaByType("component");
3323
3326
  return a.id = `${o}-component`, a.componentType = "form-col-1", a.appearance = {
3324
3327
  class: "f-struct-form f-struct-wrapper"
3325
3328
  }, a.contents = [t], a;
3326
3329
  }
3327
- function bs(e, t, n) {
3330
+ function Cs(e, t, n) {
3328
3331
  t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
3329
- const o = gs(e, t, n, t.id);
3330
- return ys(e, o, n, t.id);
3332
+ const o = ys(e, t, n, t.id);
3333
+ return bs(e, o, n, t.id);
3331
3334
  }
3332
- const Cs = "https://json-schema.org/draft/2020-12/schema", ws = "https://farris-design.gitee.io/response-form.schema.json", _s = "response-form", Ss = "A Farris Data Collection Component", xs = "object", Fs = {
3335
+ const ws = "https://json-schema.org/draft/2020-12/schema", _s = "https://farris-design.gitee.io/response-form.schema.json", Ss = "response-form", xs = "A Farris Data Collection Component", Fs = "object", Ts = {
3333
3336
  id: {
3334
3337
  description: "The unique identifier for a form group",
3335
3338
  type: "string"
@@ -3357,18 +3360,18 @@ const Cs = "https://json-schema.org/draft/2020-12/schema", ws = "https://farris-
3357
3360
  type: "array",
3358
3361
  default: []
3359
3362
  }
3360
- }, Ts = [
3363
+ }, ks = [
3361
3364
  "id",
3362
3365
  "type"
3363
- ], ks = {
3364
- $schema: Cs,
3365
- $id: ws,
3366
- title: _s,
3367
- description: Ss,
3368
- type: xs,
3369
- properties: Fs,
3370
- required: Ts
3371
- }, Is = "response-form", Vs = "A Farris Component", Es = "object", Os = {
3366
+ ], Is = {
3367
+ $schema: ws,
3368
+ $id: _s,
3369
+ title: Ss,
3370
+ description: xs,
3371
+ type: Fs,
3372
+ properties: Ts,
3373
+ required: ks
3374
+ }, Vs = "response-form", Es = "A Farris Component", Os = "object", Bs = {
3372
3375
  basic: {
3373
3376
  description: "Basic Infomation",
3374
3377
  title: "基本信息",
@@ -3390,16 +3393,16 @@ const Cs = "https://json-schema.org/draft/2020-12/schema", ws = "https://farris-
3390
3393
  }
3391
3394
  }
3392
3395
  }
3393
- }, Bs = {
3394
- title: Is,
3395
- description: Vs,
3396
- type: Es,
3397
- categories: Os
3398
3396
  }, Ms = {
3397
+ title: Vs,
3398
+ description: Es,
3399
+ type: Os,
3400
+ categories: Bs
3401
+ }, Ds = {
3399
3402
  customClass: { type: String, default: "" }
3400
3403
  };
3401
- _e(Ms, ks, it, bs, Bs);
3402
- const Ds = "https://json-schema.org/draft/2020-12/schema", js = "https://farris-design.gitee.io/form-group.schema.json", Ns = "form-group", Ps = "A Farris Input Component", $s = "object", Rs = {
3404
+ _e(Ds, Is, rt, Cs, Ms);
3405
+ const js = "https://json-schema.org/draft/2020-12/schema", Ns = "https://farris-design.gitee.io/form-group.schema.json", Ps = "form-group", $s = "A Farris Input Component", Rs = "object", As = {
3403
3406
  id: {
3404
3407
  description: "The unique identifier for a form group",
3405
3408
  type: "string"
@@ -3440,17 +3443,17 @@ const Ds = "https://json-schema.org/draft/2020-12/schema", js = "https://farris-
3440
3443
  description: "",
3441
3444
  type: "number"
3442
3445
  }
3443
- }, As = [
3446
+ }, Ls = [
3444
3447
  "id",
3445
3448
  "type"
3446
3449
  ], Bt = {
3447
- $schema: Ds,
3448
- $id: js,
3449
- title: Ns,
3450
- description: Ps,
3451
- type: $s,
3452
- properties: Rs,
3453
- required: As
3450
+ $schema: js,
3451
+ $id: Ns,
3452
+ title: Ps,
3453
+ description: $s,
3454
+ type: Rs,
3455
+ properties: As,
3456
+ required: Ls
3454
3457
  }, Mt = {
3455
3458
  id: { type: String, default: "" },
3456
3459
  customClass: { type: String, default: "" },
@@ -3468,17 +3471,17 @@ const Ds = "https://json-schema.org/draft/2020-12/schema", js = "https://farris-
3468
3471
  _e(
3469
3472
  Mt,
3470
3473
  Bt,
3471
- it,
3474
+ rt,
3472
3475
  void 0
3473
3476
  );
3474
- const Ls = {
3477
+ const Hs = {
3475
3478
  id: { type: String },
3476
3479
  required: { type: Boolean, default: !1 },
3477
3480
  text: { type: String, default: "" },
3478
3481
  title: { type: String }
3479
- }, Hs = /* @__PURE__ */ te({
3482
+ }, zs = /* @__PURE__ */ te({
3480
3483
  name: "FDynamicFormLabel",
3481
- props: Ls,
3484
+ props: Hs,
3482
3485
  emits: [],
3483
3486
  setup(e, t) {
3484
3487
  const n = p(e.title || e.text), o = p(e.required), a = p(e.text);
@@ -3495,13 +3498,13 @@ const Ls = {
3495
3498
  class: "farris-label-text"
3496
3499
  }, [a.value])]);
3497
3500
  }
3498
- }), zs = /* @__PURE__ */ new Map([
3501
+ }), Gs = /* @__PURE__ */ new Map([
3499
3502
  ["appearance", De]
3500
3503
  ]);
3501
- function Gs(e, t, n) {
3504
+ function qs(e, t, n) {
3502
3505
  return t;
3503
3506
  }
3504
- const qs = "https://json-schema.org/draft/2020-12/schema", Ws = "https://farris-design.gitee.io/input-group.schema.json", Us = "input-group", Ks = "A Farris Input Component", Ys = "object", Xs = {
3507
+ const Ws = "https://json-schema.org/draft/2020-12/schema", Us = "https://farris-design.gitee.io/input-group.schema.json", Ks = "input-group", Ys = "A Farris Input Component", Xs = "object", Js = {
3505
3508
  id: {
3506
3509
  description: "The unique identifier for a Input Group",
3507
3510
  type: "string"
@@ -3703,17 +3706,17 @@ const qs = "https://json-schema.org/draft/2020-12/schema", Ws = "https://farris-
3703
3706
  type: "string",
3704
3707
  default: ""
3705
3708
  }
3706
- }, Js = [
3709
+ }, Qs = [
3707
3710
  "id",
3708
3711
  "type"
3709
- ], Qs = {
3710
- $schema: qs,
3711
- $id: Ws,
3712
- title: Us,
3713
- description: Ks,
3714
- type: Ys,
3715
- properties: Xs,
3716
- required: Js
3712
+ ], Zs = {
3713
+ $schema: Ws,
3714
+ $id: Us,
3715
+ title: Ks,
3716
+ description: Ys,
3717
+ type: Xs,
3718
+ properties: Js,
3719
+ required: Qs
3717
3720
  }, Dt = {
3718
3721
  /** 是否自动完成 */
3719
3722
  autocomplete: { Type: String, default: "off" },
@@ -3781,63 +3784,63 @@ const qs = "https://json-schema.org/draft/2020-12/schema", Ws = "https://farris-
3781
3784
  */
3782
3785
  updateOn: { type: String, default: "blur" }
3783
3786
  };
3784
- _e(Dt, Qs, zs, Gs);
3785
- function Zs(e, t, n, o) {
3786
- const a = p(e.disabled), s = p(!1), l = p("text"), u = p(e.showBorder), y = p(e.textAlign), v = p(e.updateOn), d = $(() => e.editable || !e.readonly), h = $(() => e.editable && !e.disabled && !e.readonly), i = $(() => !e.disabled && s.value), D = $(() => n.value === "" || n.value === null || n.value === void 0), C = $(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), g = $(() => e.readonly || !e.editable), S = $(() => e.enableTitle ? n.value : ""), f = $(() => ({
3787
+ _e(Dt, Zs, Gs, qs);
3788
+ function el(e, t, n, o) {
3789
+ const a = p(e.disabled), s = p(!1), l = p("text"), u = p(e.showBorder), y = p(e.textAlign), v = p(e.updateOn), d = $(() => e.editable || !e.readonly), h = $(() => e.editable && !e.disabled && !e.readonly), r = $(() => !e.disabled && s.value), D = $(() => n.value === "" || n.value === null || n.value === void 0), C = $(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), g = $(() => e.readonly || !e.editable), S = $(() => e.enableTitle ? n.value : ""), f = $(() => ({
3787
3790
  "form-control": !0,
3788
3791
  "f-utils-fill": !0,
3789
3792
  "text-left": y.value === "left",
3790
3793
  "text-center": y.value === "center",
3791
3794
  "text-right": y.value === "right"
3792
3795
  })), m = $(() => {
3793
- const r = {
3796
+ const i = {
3794
3797
  "f-cmp-inputgroup": !0,
3795
3798
  "input-group": !0,
3796
3799
  "f-state-disable": a.value,
3797
3800
  "f-state-editable": h.value,
3798
3801
  "f-state-readonly": g.value,
3799
- "f-state-focus": i.value
3802
+ "f-state-focus": r.value
3800
3803
  };
3801
- return (e.customClass || "").split(" ").reduce((B, P) => (B[P] = !0, B), r), r;
3804
+ return (e.customClass || "").split(" ").reduce((B, P) => (B[P] = !0, B), i), i;
3802
3805
  }), x = $(() => u.value ? "" : "border-width : 0 ");
3803
- function T(r, w = !0) {
3804
- n.value = r, o.value !== r && (o.value = r), w && t.emit("change", r), t.emit("update:modelValue", r), t.emit("update:value", r);
3806
+ function T(i, w = !0) {
3807
+ n.value = i, o.value !== i && (o.value = i), w && t.emit("change", i), t.emit("update:modelValue", i), t.emit("update:value", i);
3805
3808
  }
3806
3809
  X(
3807
3810
  () => e.modelValue,
3808
- (r, w) => {
3809
- r !== w && (n.value = r, o.value = r);
3811
+ (i, w) => {
3812
+ i !== w && (n.value = i, o.value = i);
3810
3813
  }
3811
- ), X(() => e.disabled, (r, w) => {
3812
- r !== w && (a.value = r);
3814
+ ), X(() => e.disabled, (i, w) => {
3815
+ i !== w && (a.value = i);
3813
3816
  });
3814
- function _(r) {
3815
- return s.value = !1, t.emit("blur", r), r.stopPropagation(), !1;
3817
+ function _(i) {
3818
+ return s.value = !1, t.emit("blur", i), i.stopPropagation(), !1;
3816
3819
  }
3817
- function b(r) {
3818
- t.emit("click", r);
3820
+ function b(i) {
3821
+ t.emit("click", i);
3819
3822
  }
3820
- function E(r) {
3821
- e.disabled || (u.value && (s.value = !0), d.value && t.emit("focus", r));
3823
+ function E(i) {
3824
+ e.disabled || (u.value && (s.value = !0), d.value && t.emit("focus", i));
3822
3825
  }
3823
- function j(r) {
3824
- t.emit("input", r.target.value);
3825
- const w = r.target.value;
3826
+ function j(i) {
3827
+ t.emit("input", i.target.value);
3828
+ const w = i.target.value;
3826
3829
  o.value = w, v.value === "input" && (t.emit("update:modelValue", w), t.emit("update:value", w));
3827
3830
  }
3828
- function F(r) {
3829
- t.emit("keydown", r);
3831
+ function F(i) {
3832
+ t.emit("keydown", i);
3830
3833
  }
3831
- function N(r) {
3832
- t.emit("keyup", r);
3834
+ function N(i) {
3835
+ t.emit("keyup", i);
3833
3836
  }
3834
- function V(r) {
3835
- r.target.tagName !== "INPUT" && r.preventDefault(), r.stopPropagation();
3837
+ function V(i) {
3838
+ i.target.tagName !== "INPUT" && i.preventDefault(), i.stopPropagation();
3836
3839
  }
3837
- function k(r) {
3840
+ function k(i) {
3838
3841
  if (v.value === "blur") {
3839
- const w = r.target.value;
3840
- r.stopPropagation(), T(w);
3842
+ const w = i.target.value;
3843
+ i.stopPropagation(), T(w);
3841
3844
  }
3842
3845
  }
3843
3846
  return {
@@ -3845,7 +3848,7 @@ function Zs(e, t, n, o) {
3845
3848
  disabled: a,
3846
3849
  displayText: o,
3847
3850
  editable: h,
3848
- hasFocused: i,
3851
+ hasFocused: r,
3849
3852
  inputGroupClass: m,
3850
3853
  inputType: l,
3851
3854
  isEmpty: D,
@@ -3865,7 +3868,7 @@ function Zs(e, t, n, o) {
3865
3868
  inputGroupStyle: x
3866
3869
  };
3867
3870
  }
3868
- function el(e, t, n) {
3871
+ function tl(e, t, n) {
3869
3872
  const o = p(!1), a = $(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: l, hasFocused: u, isEmpty: y } = n;
3870
3873
  function v(g) {
3871
3874
  o.value = g;
@@ -3880,7 +3883,7 @@ function el(e, t, n) {
3880
3883
  width: "24px",
3881
3884
  display: o.value ? "flex" : "none"
3882
3885
  }));
3883
- function i(g) {
3886
+ function r(g) {
3884
3887
  g.stopPropagation(), a.value && (s("", !0), v(!o.value), t.emit("clear"));
3885
3888
  }
3886
3889
  function D(g) {
@@ -3889,10 +3892,10 @@ function el(e, t, n) {
3889
3892
  function C(g) {
3890
3893
  a.value && v(!1);
3891
3894
  }
3892
- return { clearButtonClass: d, clearButtonStyle: h, hasShownClearButton: o, onClearValue: i, onMouseEnter: D, onMouseLeave: C, shouldShowClearButton: a };
3895
+ return { clearButtonClass: d, clearButtonStyle: h, hasShownClearButton: o, onClearValue: r, onMouseEnter: D, onMouseLeave: C, shouldShowClearButton: a };
3893
3896
  }
3894
- const tl = ["moz", "ms", "webkit"];
3895
- function nl() {
3897
+ const nl = ["moz", "ms", "webkit"];
3898
+ function ol() {
3896
3899
  let e = 0;
3897
3900
  return (t) => {
3898
3901
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
@@ -3901,26 +3904,26 @@ function nl() {
3901
3904
  return e = n + o, a;
3902
3905
  };
3903
3906
  }
3904
- function ol() {
3907
+ function al() {
3905
3908
  if (typeof window > "u")
3906
3909
  return () => 0;
3907
3910
  if (window.requestAnimationFrame)
3908
3911
  return window.requestAnimationFrame.bind(window);
3909
- const e = tl.filter((t) => `${t}RequestAnimationFrame` in window)[0];
3910
- return e ? window[`${e}RequestAnimationFrame`] : nl();
3912
+ const e = nl.filter((t) => `${t}RequestAnimationFrame` in window)[0];
3913
+ return e ? window[`${e}RequestAnimationFrame`] : ol();
3911
3914
  }
3912
- ol();
3913
- function al(e, t) {
3915
+ al();
3916
+ function sl(e, t) {
3914
3917
  const n = p(e.groupText), o = $(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = $(() => e.enableClear || !!e.groupText);
3915
3918
  return { appendedButtonClass: $(() => ({
3916
3919
  "input-group-append": !0,
3917
3920
  "append-force-show": o.value
3918
3921
  })), appendedContent: n, shouldShowAppendedButton: a };
3919
3922
  }
3920
- function sl(e, t, n, o) {
3923
+ function ll(e, t, n, o) {
3921
3924
  const { appendedContent: a } = o, s = p(e.enableViewPassword), l = $(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', y = '<span class="f-icon f-icon-eye"></span>', v = p(!1);
3922
- X(() => [e.readonly, e.disabled], ([i, D]) => {
3923
- l.value && (n.value = i || D ? "password" : n.value, a.value = i || D ? y : a.value);
3925
+ X(() => [e.readonly, e.disabled], ([r, D]) => {
3926
+ l.value && (n.value = r || D ? "password" : n.value, a.value = r || D ? y : a.value);
3924
3927
  });
3925
3928
  function d() {
3926
3929
  return v.value = !v.value, n.value = v.value ? "text" : "password", a.value = v.value ? u : y, !1;
@@ -3930,7 +3933,7 @@ function sl(e, t, n, o) {
3930
3933
  }
3931
3934
  return h(), { isPassword: l, onClickAppendedButton: d };
3932
3935
  }
3933
- function ll(e, t, n) {
3936
+ function rl(e, t, n) {
3934
3937
  const o = p(), {
3935
3938
  onBlurTextBox: a,
3936
3939
  onFocusTextBox: s,
@@ -3943,7 +3946,7 @@ function ll(e, t, n) {
3943
3946
  })), h = $(() => ({
3944
3947
  "text-align": e.textAlign
3945
3948
  }));
3946
- function i(g) {
3949
+ function r(g) {
3947
3950
  g.stopPropagation();
3948
3951
  }
3949
3952
  function D() {
@@ -3964,7 +3967,7 @@ function ll(e, t, n) {
3964
3967
  readonly: e.readonly || !e.editable,
3965
3968
  placeholder: v.value,
3966
3969
  onBlur: a,
3967
- onChange: i,
3970
+ onChange: r,
3968
3971
  onFocus: C,
3969
3972
  onInput: l,
3970
3973
  onKeydown: u
@@ -4011,15 +4014,15 @@ function il(e, t, n) {
4011
4014
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
4012
4015
  }, null)])]);
4013
4016
  }
4014
- function rl(e, t) {
4017
+ function ul(e, t) {
4015
4018
  const n = Ln(e, t), o = Hn(e, t, n), a = zn(e, t, o, n), s = Gn(e, t, o, n, a), l = il(e, t, a), {
4016
4019
  displayValue: u,
4017
4020
  modelValue: y,
4018
4021
  getRealValue: v
4019
- } = n, d = ll(e, t, s), {
4022
+ } = n, d = rl(e, t, s), {
4020
4023
  format: h
4021
4024
  } = o, {
4022
- isFocus: i
4025
+ isFocus: r
4023
4026
  } = s, D = $(() => !e.disabled && !e.readonly);
4024
4027
  return de(() => {
4025
4028
  const C = v(e.modelValue);
@@ -4028,19 +4031,19 @@ function rl(e, t) {
4028
4031
  const g = v(C);
4029
4032
  y.value = g, u.value = h(g);
4030
4033
  }), X(() => [e.modelValue], ([C]) => {
4031
- C !== y.value && (y.value = C, !i.value && (u.value = h(v(C))));
4034
+ C !== y.value && (y.value = C, !r.value && (u.value = h(v(C))));
4032
4035
  }), X(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
4033
4036
  u.value = h(y.value);
4034
4037
  }), () => c("div", {
4035
4038
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
4036
4039
  }, [d(), D.value && l()]);
4037
4040
  }
4038
- function ul(e, t, n, o) {
4041
+ function cl(e, t, n, o) {
4039
4042
  const a = p(), s = p(e.autocomplete), l = p(e.enableTitle), {
4040
4043
  isPassword: u
4041
4044
  } = n, y = p(e.minLength), v = p(e.maxLength), d = p(e.tabIndex), {
4042
4045
  disabled: h,
4043
- displayText: i,
4046
+ displayText: r,
4044
4047
  inputType: D,
4045
4048
  onBlur: C,
4046
4049
  onFocus: g,
@@ -4070,7 +4073,7 @@ function ul(e, t, n, o) {
4070
4073
  tabindex: d.value,
4071
4074
  title: l.value && !u.value ? F.value : "",
4072
4075
  type: D.value,
4073
- value: i == null ? void 0 : i.value,
4076
+ value: r == null ? void 0 : r.value,
4074
4077
  onBlur: C,
4075
4078
  onClick: f,
4076
4079
  onChange: _,
@@ -4081,7 +4084,7 @@ function ul(e, t, n, o) {
4081
4084
  onMousedown: T
4082
4085
  }, null);
4083
4086
  }
4084
- function cl(e, t) {
4087
+ function dl(e, t) {
4085
4088
  const n = $(() => e.useExtendInfo && !!e.extendInfo), o = gt({
4086
4089
  content: e.extendInfo
4087
4090
  });
@@ -4097,14 +4100,14 @@ function cl(e, t) {
4097
4100
  class: "tips-arrow"
4098
4101
  }, null)]), [[hn("tooltip"), o]]);
4099
4102
  }
4100
- function dl(e, t, n, o, a) {
4103
+ function fl(e, t, n, o, a) {
4101
4104
  const {
4102
4105
  appendedButtonClass: s,
4103
4106
  appendedContent: l
4104
4107
  } = n, u = $(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), y = $(() => l.value && !t.slots.groupTextTemplate), v = $(() => !!t.slots.groupTextTemplate), {
4105
4108
  clearButtonClass: d,
4106
4109
  clearButtonStyle: h,
4107
- onClearValue: i,
4110
+ onClearValue: r,
4108
4111
  shouldShowClearButton: D
4109
4112
  } = o;
4110
4113
  function C() {
@@ -4112,7 +4115,7 @@ function dl(e, t, n, o, a) {
4112
4115
  id: "clearIcon",
4113
4116
  class: d.value,
4114
4117
  style: h.value,
4115
- onClick: (E) => i(E)
4118
+ onClick: (E) => r(E)
4116
4119
  }, [c("i", {
4117
4120
  class: "f-icon modal_close"
4118
4121
  }, null)]);
@@ -4149,21 +4152,21 @@ function dl(e, t, n, o, a) {
4149
4152
  class: s.value
4150
4153
  }, [D.value && C(), b && b()]);
4151
4154
  }
4152
- const fl = /* @__PURE__ */ te({
4155
+ const pl = /* @__PURE__ */ te({
4153
4156
  name: "FInputGroup",
4154
4157
  props: Dt,
4155
4158
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
4156
4159
  setup(e, t) {
4157
- const n = p(e.modelValue), o = p(e.modelValue), a = Zs(e, t, n, o), {
4160
+ const n = p(e.modelValue), o = p(e.modelValue), a = el(e, t, n, o), {
4158
4161
  inputGroupClass: s,
4159
4162
  inputType: l,
4160
4163
  inputGroupStyle: u
4161
- } = a, y = al(e), {
4164
+ } = a, y = sl(e), {
4162
4165
  shouldShowAppendedButton: v
4163
- } = y, d = el(e, t, a), {
4166
+ } = y, d = tl(e, t, a), {
4164
4167
  onMouseEnter: h,
4165
- onMouseLeave: i
4166
- } = d, D = sl(e, t, l, y), C = rl(e, t), g = ul(e, t, D, a), S = dl(e, t, y, d, D), f = cl(e, t), m = $(() => e.type === "number");
4168
+ onMouseLeave: r
4169
+ } = d, D = ll(e, t, l, y), C = ul(e, t), g = cl(e, t, D, a), S = fl(e, t, y, d, D), f = dl(e, t), m = $(() => e.type === "number");
4167
4170
  X(() => [e.value], ([T]) => {
4168
4171
  n.value = T, o.value = T;
4169
4172
  }), X(() => [e.modelValue], ([T]) => {
@@ -4176,23 +4179,23 @@ const fl = /* @__PURE__ */ te({
4176
4179
  class: s.value,
4177
4180
  style: u.value,
4178
4181
  onMouseenter: h,
4179
- onMouseleave: i
4182
+ onMouseleave: r
4180
4183
  }, [m.value ? C() : c(we, null, [f(), g(), v.value && S()])])]);
4181
4184
  return () => x();
4182
4185
  }
4183
4186
  }), G = {}, q = {}, W = {}, U = {};
4184
4187
  let pt = !1;
4185
- function pl() {
4186
- pt || (pt = !0, yn.register(G, q, W, U), gn.register(G, q, W, U), bn.register(G, q, W, U), Cn.register(G, q, W, U), wn.register(G, q, W, U), _n.register(G, q, W, U), Sn.register(G, q, W, U), Je.register(G, q, W, U), jo.register(G, q, W, U), bo.register(G, q, W, U), Fn.register(G, q, W, U), xn.register(G, q, W, U), kn.register(G, q, W, U), Tn.register(G, q, W, U), In.register(G, q, W, U), Vn.register(G, q, W, U), On.register(G, q, W, U), Bn.register(G, q, W, U), No.register(G, q, W, U), Mn.register(G, q, W, U), Dn.register(G, q, W, U), jn.register(G, q, W, U), Pn.register(G, q, W, U), Nn.register(G, q, W, U), $n.register(G, q, W, U), Po.register(G, q, W, U), Rn.register(G, q, W, U), qn.register(G, q, W, U), An.register(G, q, W, U), Wn.register(G, q, W, U), Un.register(G, q, W, U), Kn.register(G, q, W, U), Yn.register(G, q, W, U), Xn.register(G, q, W, U), Jn.register(G, q, W, U), Qn.register(G, q, W, U), Zn.register(G, q, W, U), to.register(G, q, W, U), no.register(G, q, W, U), eo.register(G, q, W, U), $o.register(G, q, W), oo.register(G, q, W, U), ao.register(G, q, W, U), so.register(G, q, W, U), lo.register(G, q, W, U), io.register(G, q, W, U), ro.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), vo.register(G, q, W, U), mo.register(G, q, W, U), go.register(G, q, W, U), ho.register(G, q, W, U), yo.register(G, q, W, U), Co.register(G, q, W, U), wo.register(G, q, W, U));
4188
+ function vl() {
4189
+ pt || (pt = !0, yn.register(G, q, W, U), gn.register(G, q, W, U), bn.register(G, q, W, U), Cn.register(G, q, W, U), wn.register(G, q, W, U), _n.register(G, q, W, U), Sn.register(G, q, W, U), Je.register(G, q, W, U), jo.register(G, q, W, U), bo.register(G, q, W, U), Fn.register(G, q, W, U), xn.register(G, q, W, U), kn.register(G, q, W, U), Tn.register(G, q, W, U), In.register(G, q, W, U), Vn.register(G, q, W, U), On.register(G, q, W, U), Bn.register(G, q, W, U), No.register(G, q, W, U), Mn.register(G, q, W, U), Dn.register(G, q, W, U), jn.register(G, q, W, U), Pn.register(G, q, W, U), Nn.register(G, q, W, U), $n.register(G, q, W, U), Po.register(G, q, W, U), Rn.register(G, q, W, U), qn.register(G, q, W, U), An.register(G, q, W, U), Wn.register(G, q, W, U), Un.register(G, q, W, U), Kn.register(G, q, W, U), Yn.register(G, q, W, U), Xn.register(G, q, W, U), Jn.register(G, q, W, U), Qn.register(G, q, W, U), Zn.register(G, q, W, U), to.register(G, q, W, U), no.register(G, q, W, U), eo.register(G, q, W, U), $o.register(G, q, W), oo.register(G, q, W, U), ao.register(G, q, W, U), so.register(G, q, W, U), lo.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), vo.register(G, q, W, U), mo.register(G, q, W, U), go.register(G, q, W, U), ho.register(G, q, W, U), yo.register(G, q, W, U), Co.register(G, q, W, U), wo.register(G, q, W, U), Ro.register(G, q, W, U));
4187
4190
  }
4188
4191
  function jt() {
4189
- pl();
4192
+ vl();
4190
4193
  function e(a, s) {
4191
4194
  const l = q[a];
4192
4195
  return l ? l(s) : {};
4193
4196
  }
4194
4197
  function t(a) {
4195
- return G[a] || fl;
4198
+ return G[a] || pl;
4196
4199
  }
4197
4200
  function n(a) {
4198
4201
  switch (a) {
@@ -4258,7 +4261,7 @@ function jt() {
4258
4261
  }
4259
4262
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
4260
4263
  }
4261
- const vl = /* @__PURE__ */ te({
4264
+ const ml = /* @__PURE__ */ te({
4262
4265
  name: "FDynamicFormGroup",
4263
4266
  props: Mt,
4264
4267
  emits: ["change", "update:modelValue"],
@@ -4266,7 +4269,7 @@ const vl = /* @__PURE__ */ te({
4266
4269
  const n = p(e.id), o = p(e.customClass), a = p(e.editor), s = p(e.label), l = p(e.modelValue), u = p(e.readonly), y = p(e.required), v = p(e.showLabel), d = p(e.visible);
4267
4270
  p(e.type);
4268
4271
  const h = p(), {
4269
- resolveEditorProps: i,
4272
+ resolveEditorProps: r,
4270
4273
  resolveEditorType: D,
4271
4274
  getChangeFunctionName: C,
4272
4275
  getClearFunctionName: g
@@ -4283,7 +4286,7 @@ const vl = /* @__PURE__ */ te({
4283
4286
  t.emit("update:modelValue", "");
4284
4287
  }
4285
4288
  const x = $(() => {
4286
- const T = a.value.type || "input-group", _ = D(T), b = i(T, a.value), E = C(T), j = g(a.value.type);
4289
+ const T = a.value.type || "input-group", _ = D(T), b = r(T, a.value), E = C(T), j = g(a.value.type);
4287
4290
  return b[E] = f, b[j] = m, () => c(_, be({
4288
4291
  ref: h
4289
4292
  }, b, {
@@ -4302,7 +4305,7 @@ const vl = /* @__PURE__ */ te({
4302
4305
  class: "farris-group-wrap"
4303
4306
  }, [c("div", {
4304
4307
  class: S.value
4305
- }, [v.value && c(Hs, {
4308
+ }, [v.value && c(zs, {
4306
4309
  id: `${n.value}-lable`,
4307
4310
  required: y.value,
4308
4311
  text: s.value,
@@ -4329,10 +4332,10 @@ const vl = /* @__PURE__ */ te({
4329
4332
  _e(
4330
4333
  Nt,
4331
4334
  Bt,
4332
- it,
4335
+ rt,
4333
4336
  void 0
4334
4337
  );
4335
- const ml = /* @__PURE__ */ te({
4338
+ const hl = /* @__PURE__ */ te({
4336
4339
  name: "FDynamicFormInput",
4337
4340
  props: Nt,
4338
4341
  emits: ["change", "update:modelValue"],
@@ -4348,19 +4351,19 @@ const ml = /* @__PURE__ */ te({
4348
4351
  const v = $(() => {
4349
4352
  const d = l(o.value.type), h = s(o.value.type, o.value);
4350
4353
  h.focusOnCreated = e.focusOnCreated, h.selectOnCreated = e.selectOnCreated;
4351
- const i = u(o.value.type);
4352
- return h[i] = y, () => c(d, be(h, {
4354
+ const r = u(o.value.type);
4355
+ return h[r] = y, () => c(d, be(h, {
4353
4356
  modelValue: a.value,
4354
4357
  "onUpdate:modelValue": (D) => a.value = D
4355
4358
  }), null);
4356
4359
  });
4357
- return X([() => e.id, () => e.editor, () => e.modelValue], ([d, h, i]) => {
4358
- n.value = d, o.value = h, a.value = i;
4360
+ return X([() => e.id, () => e.editor, () => e.modelValue], ([d, h, r]) => {
4361
+ n.value = d, o.value = h, a.value = r;
4359
4362
  }), () => v.value();
4360
4363
  }
4361
4364
  });
4362
4365
  var Pt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(Pt || {}), $t = /* @__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))($t || {});
4363
- const hl = [
4366
+ const gl = [
4364
4367
  {
4365
4368
  value: "0",
4366
4369
  name: "等于"
@@ -4397,7 +4400,7 @@ const hl = [
4397
4400
  value: "8",
4398
4401
  name: "结束是"
4399
4402
  }
4400
- ], gl = {
4403
+ ], yl = {
4401
4404
  "button-edit": ["0", "1", " 6", "7", "8"],
4402
4405
  "check-box": ["0"],
4403
4406
  "combo-list": ["0", "1"],
@@ -4417,14 +4420,14 @@ const hl = [
4417
4420
  "radio-group": ["0"],
4418
4421
  text: ["0", "1", " 6", "7", "8"]
4419
4422
  };
4420
- function yl(e, t, n) {
4423
+ function bl(e, t, n) {
4421
4424
  const { fieldMap: o } = n;
4422
4425
  function a(s) {
4423
4426
  const l = o.get(s.fieldCode);
4424
4427
  if (!l)
4425
4428
  return [];
4426
- const u = l.editor.type, y = new Set(gl[u]);
4427
- return hl.filter((d) => y.has(d.value));
4429
+ const u = l.editor.type, y = new Set(yl[u]);
4430
+ return gl.filter((d) => y.has(d.value));
4428
4431
  }
4429
4432
  return { getCompareOperators: a };
4430
4433
  }
@@ -4457,47 +4460,47 @@ function Rt() {
4457
4460
  function u(F) {
4458
4461
  const N = /* @__PURE__ */ new Map();
4459
4462
  let V = 0;
4460
- return F.forEach((k, r) => {
4463
+ return F.forEach((k, i) => {
4461
4464
  var w, B;
4462
- if (V += ((w = k.lBracket) == null ? void 0 : w.length) || 0, N.set(r, V), V -= ((B = k.rBracket) == null ? void 0 : B.length) || 0, V < 0)
4465
+ if (V += ((w = k.lBracket) == null ? void 0 : w.length) || 0, N.set(i, V), V -= ((B = k.rBracket) == null ? void 0 : B.length) || 0, V < 0)
4463
4466
  throw new Error("The right bracket is out of range.");
4464
4467
  }), N;
4465
4468
  }
4466
- function y(F, N, V, k, r) {
4469
+ function y(F, N, V, k, i) {
4467
4470
  for (let w = 0; w < N; w++) {
4468
- const B = F + (w + 1), P = s(r, B);
4471
+ const B = F + (w + 1), P = s(i, B);
4469
4472
  V.children.push(P), n.set(P.groupId, V), V = V.children[V.children.length - 1], k.push(V);
4470
4473
  }
4471
4474
  return V;
4472
4475
  }
4473
- function v(F, N, V, k, r) {
4476
+ function v(F, N, V, k, i) {
4474
4477
  for (let I = N; I <= 0; I++)
4475
4478
  k.pop();
4476
4479
  const w = k[k.length - 1];
4477
4480
  if (!w)
4478
4481
  throw new Error("The group path is out of range");
4479
- const B = F + N, P = s(r, B);
4482
+ const B = F + N, P = s(i, B);
4480
4483
  return w.children.push(P), n.set(P.groupId, w), V = w.children[w.children.length - 1], k.push(V), V;
4481
4484
  }
4482
4485
  function d(F, N, V, k) {
4483
4486
  V.pop();
4484
- const r = V[V.length - 1], w = s(k, F);
4485
- return r.children.push(w), n.set(w.groupId, r), N = r.children[r.children.length - 1], V.push(N), N;
4487
+ const i = V[V.length - 1], w = s(k, F);
4488
+ return i.children.push(w), n.set(w.groupId, i), N = i.children[i.children.length - 1], V.push(N), N;
4486
4489
  }
4487
- function h(F, N, V, k, r, w) {
4490
+ function h(F, N, V, k, i, w) {
4488
4491
  let B = F[F.length - 1];
4489
4492
  if (!B)
4490
4493
  throw new Error("The group path is out of range");
4491
4494
  const P = N.get(k) || 0, I = N.get(V) || 0;
4492
4495
  if (V < 0 || V === k)
4493
4496
  return F[F.length - 1];
4494
- const M = P - I, O = r && r.relation !== void 0 ? r.relation : 1;
4495
- return B = M > 0 ? y(I, M, B, F, O) : B, B = M < 0 ? v(I, M, B, F, O) : B, B = M === 0 && I > 0 && P > 0 && r && w && !!r.rBracket && !!w.lBracket ? d(I, B, F, O) : B, B;
4497
+ const M = P - I, O = i && i.relation !== void 0 ? i.relation : 1;
4498
+ return B = M > 0 ? y(I, M, B, F, O) : B, B = M < 0 ? v(I, M, B, F, O) : B, B = M === 0 && I > 0 && P > 0 && i && w && !!i.rBracket && !!w.lBracket ? d(I, B, F, O) : B, B;
4496
4499
  }
4497
- function i(F) {
4498
- const V = { relation: F.length && F[0].relation !== void 0 ? F[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, k = [V], r = u(F);
4500
+ function r(F) {
4501
+ const V = { relation: F.length && F[0].relation !== void 0 ? F[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, k = [V], i = u(F);
4499
4502
  return F.forEach((w, B) => {
4500
- const P = B - 1, I = F[P], M = h(k, r, P, B, I, w);
4503
+ const P = B - 1, I = F[P], M = h(k, i, P, B, I, w);
4501
4504
  M.items.push(w), t.set(w.conditionId, M);
4502
4505
  }), e.value = V, V;
4503
4506
  }
@@ -4510,7 +4513,7 @@ function Rt() {
4510
4513
  return;
4511
4514
  const N = t.get(F.conditionId);
4512
4515
  if (N) {
4513
- const V = N.items.findIndex((r) => r.conditionId === F.conditionId) + 1, k = a();
4516
+ const V = N.items.findIndex((i) => i.conditionId === F.conditionId) + 1, k = a();
4514
4517
  t.set(k.conditionId, N), N.items.splice(V, 0, k), l();
4515
4518
  }
4516
4519
  }
@@ -4519,21 +4522,21 @@ function Rt() {
4519
4522
  N && (N.items = N.items.filter((V) => V.conditionId !== F.conditionId), t.delete(F.conditionId), j(), l());
4520
4523
  }
4521
4524
  function S(F, N, V, k) {
4522
- F.reduce((r, w) => {
4525
+ F.reduce((i, w) => {
4523
4526
  const B = w.conditionId !== void 0, P = w.groupId !== void 0;
4524
4527
  if (B) {
4525
4528
  const I = w;
4526
- V.push(I), r.items.set(I.conditionId, I);
4529
+ V.push(I), i.items.set(I.conditionId, I);
4527
4530
  }
4528
4531
  if (P) {
4529
4532
  const I = w;
4530
- k.push(I), r.groups.set(I.groupId, I);
4533
+ k.push(I), i.groups.set(I.groupId, I);
4531
4534
  }
4532
- return r;
4535
+ return i;
4533
4536
  }, N);
4534
4537
  }
4535
- function f(F, N, V, k, r) {
4536
- F && (F.items = N.length ? F.items.filter((w) => !V.has(w.conditionId)) : F.items, F.children = k.length ? F.children.filter((w) => !r.has(w.groupId)) : F.children);
4538
+ function f(F, N, V, k, i) {
4539
+ F && (F.items = N.length ? F.items.filter((w) => !V.has(w.conditionId)) : F.items, F.children = k.length ? F.children.filter((w) => !i.has(w.groupId)) : F.children);
4537
4540
  }
4538
4541
  function m(F, N, V) {
4539
4542
  N.forEach((k) => {
@@ -4543,19 +4546,19 @@ function Rt() {
4543
4546
  });
4544
4547
  }
4545
4548
  function x(F) {
4546
- const N = F[0], V = N.conditionId !== void 0 ? t.get(N.conditionId) : n.get(N.groupId), k = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, r = [], w = [];
4549
+ const N = F[0], V = N.conditionId !== void 0 ? t.get(N.conditionId) : n.get(N.groupId), k = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, i = [], w = [];
4547
4550
  if (V) {
4548
- S(F, k, r, w), f(V, r, k.items, w, k.groups);
4551
+ S(F, k, i, w), f(V, i, k.items, w, k.groups);
4549
4552
  const B = s(V.relation, V.level + 1);
4550
- m(B, r, w), V.children.push(B), n.set(B.groupId, V), l();
4553
+ m(B, i, w), V.children.push(B), n.set(B.groupId, V), l();
4551
4554
  }
4552
4555
  }
4553
4556
  function T(F) {
4554
4557
  const N = [...F.items], V = [...F.children], k = n.get(F.groupId);
4555
- k && (k.children = k.children.filter((r) => r.groupId !== F.groupId), n.delete(F.groupId), N.forEach((r) => {
4556
- k.items.push(r), t.set(r.conditionId, k);
4557
- }), V.forEach((r) => {
4558
- k.children.push(r), n.set(r.groupId, k);
4558
+ k && (k.children = k.children.filter((i) => i.groupId !== F.groupId), n.delete(F.groupId), N.forEach((i) => {
4559
+ k.items.push(i), t.set(i.conditionId, k);
4560
+ }), V.forEach((i) => {
4561
+ k.children.push(i), n.set(i.groupId, k);
4559
4562
  }), l());
4560
4563
  }
4561
4564
  function _(F) {
@@ -4564,13 +4567,13 @@ function Rt() {
4564
4567
  let b;
4565
4568
  function E(F) {
4566
4569
  const { relation: N } = F;
4567
- return (F.children && F.children.length ? F.children.map((k, r, w) => {
4570
+ return (F.children && F.children.length ? F.children.map((k, i, w) => {
4568
4571
  const B = b(k);
4569
- return B[0].lBracket = (B[0].lBracket || "") + "(", B[B.length - 1].rBracket = (B[B.length - 1].rBracket || "") + ")", B[B.length - 1].relation = r < w.length - 1 ? N : 0, B;
4572
+ return B[0].lBracket = (B[0].lBracket || "") + "(", B[B.length - 1].rBracket = (B[B.length - 1].rBracket || "") + ")", B[B.length - 1].relation = i < w.length - 1 ? N : 0, B;
4570
4573
  }) : []).flat();
4571
4574
  }
4572
4575
  b = (F = e.value) => {
4573
- const { relation: N } = F, V = F.items.map((r, w, B) => (r.lBracket = w === 0 ? "(" : "", r.rBracket = w === B.length - 1 ? ")" : "", r.relation = w < B.length - 1 ? N || 1 : 0, r)), k = E(F);
4576
+ const { relation: N } = F, V = F.items.map((i, w, B) => (i.lBracket = w === 0 ? "(" : "", i.rBracket = w === B.length - 1 ? ")" : "", i.relation = w < B.length - 1 ? N || 1 : 0, i)), k = E(F);
4574
4577
  return [...V, ...k];
4575
4578
  };
4576
4579
  function j(F) {
@@ -4590,14 +4593,14 @@ function Rt() {
4590
4593
  group: x,
4591
4594
  groupParentMap: n,
4592
4595
  insertConditionTo: C,
4593
- loadConditionGroup: i,
4596
+ loadConditionGroup: r,
4594
4597
  refresh: l,
4595
4598
  removeCondition: g,
4596
4599
  rootGroup: e,
4597
4600
  unGroup: T
4598
4601
  };
4599
4602
  }
4600
- function bl(e, t, n) {
4603
+ function Cl(e, t, n) {
4601
4604
  const o = p(/* @__PURE__ */ new Set()), a = p(/* @__PURE__ */ new Set()), { conditionGroupMap: s, groupParentMap: l } = n;
4602
4605
  let u, y;
4603
4606
  function v(f) {
@@ -4616,8 +4619,8 @@ function bl(e, t, n) {
4616
4619
  const x = s.get(f.conditionId);
4617
4620
  v(x).forEach((_) => d(_));
4618
4621
  }
4619
- const i = $(() => o.value.size === 0 && a.value.size === 1), D = function(f) {
4620
- a.value.delete(f.groupId), f.items.forEach((x) => y(x)), f.children.forEach((x) => !i.value && D(x));
4622
+ const r = $(() => o.value.size === 0 && a.value.size === 1), D = function(f) {
4623
+ a.value.delete(f.groupId), f.items.forEach((x) => y(x)), f.children.forEach((x) => !r.value && D(x));
4621
4624
  const m = l.get(f.groupId);
4622
4625
  m && a.value.has(m.groupId) && D(m);
4623
4626
  };
@@ -4654,7 +4657,7 @@ const Ye = /* @__PURE__ */ te({
4654
4657
  } = a, v = Rt(), {
4655
4658
  addCondition: d,
4656
4659
  changeGroupRelation: h,
4657
- getConditions: i,
4660
+ getConditions: r,
4658
4661
  group: D,
4659
4662
  insertConditionTo: C,
4660
4663
  loadConditionGroup: g,
@@ -4664,12 +4667,12 @@ const Ye = /* @__PURE__ */ te({
4664
4667
  unGroup: x
4665
4668
  } = v, {
4666
4669
  createConditionValue: T
4667
- } = Et(), _ = bl(e, t, v), {
4670
+ } = Et(), _ = Cl(e, t, v), {
4668
4671
  selectedItems: b,
4669
4672
  toggleSelect: E
4670
4673
  } = _, {
4671
4674
  getCompareOperators: j
4672
- } = yl(e, t, a);
4675
+ } = bl(e, t, a);
4673
4676
  y(!1), l.value = s(l.value), g(o.value);
4674
4677
  function F(M) {
4675
4678
  var R;
@@ -4684,12 +4687,12 @@ const Ye = /* @__PURE__ */ te({
4684
4687
  function V() {
4685
4688
  }
4686
4689
  t.expose({
4687
- getConditions: i
4690
+ getConditions: r
4688
4691
  });
4689
4692
  function k(M, O) {
4690
4693
  t.emit("valueChange", M, O);
4691
4694
  }
4692
- function r(M) {
4695
+ function i(M) {
4693
4696
  return M.items.map((O) => {
4694
4697
  var R;
4695
4698
  return c("div", {
@@ -4717,7 +4720,7 @@ const Ye = /* @__PURE__ */ te({
4717
4720
  onChange: (L) => N(L, O)
4718
4721
  }, null)]), c("div", {
4719
4722
  class: "condition-list-item-control mr-3"
4720
- }, [c(vl, {
4723
+ }, [c(ml, {
4721
4724
  editor: (R = u.get(O.fieldCode)) == null ? void 0 : R.editor,
4722
4725
  showLabel: !1,
4723
4726
  modelValue: O.value.value,
@@ -4762,7 +4765,7 @@ const Ye = /* @__PURE__ */ te({
4762
4765
  class: "condition-list-content"
4763
4766
  }, [c("div", {
4764
4767
  class: "condition-list-content-group"
4765
- }, [r(M), M.children && M.children.map((O) => B(O))]), w(M)]);
4768
+ }, [i(M), M.children && M.children.map((O) => B(O))]), w(M)]);
4766
4769
  }
4767
4770
  function P() {
4768
4771
  D(_.getSelectedGroupItem()), _.clear();
@@ -4800,7 +4803,7 @@ const Ye = /* @__PURE__ */ te({
4800
4803
  Ye.install = (e) => {
4801
4804
  e.component(ft.name, ft).component(Ye.name, Ye);
4802
4805
  };
4803
- const Cl = [
4806
+ const wl = [
4804
4807
  "equal",
4805
4808
  "notEqual",
4806
4809
  "greaterThan",
@@ -4810,16 +4813,16 @@ const Cl = [
4810
4813
  "contain",
4811
4814
  "startWidth",
4812
4815
  "endWidth"
4813
- ], wl = {
4816
+ ], _l = {
4814
4817
  equal: (e, t, n) => e && e[t] === n,
4815
4818
  notEqual: (e, t, n) => e && e[t] !== n,
4816
4819
  contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
4817
4820
  startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
4818
4821
  endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
4819
- }, _l = {
4822
+ }, Sl = {
4820
4823
  equal: (e, t, n) => e && e[t] === n,
4821
4824
  notEqual: (e, t, n) => e && e[t] !== n
4822
- }, Sl = {
4825
+ }, xl = {
4823
4826
  equal: (e, t, n) => {
4824
4827
  if (e) {
4825
4828
  const o = new Date(new Date(n).toLocaleDateString()).valueOf();
@@ -4862,10 +4865,10 @@ const Cl = [
4862
4865
  }
4863
4866
  return !1;
4864
4867
  }
4865
- }, xl = {
4868
+ }, Fl = {
4866
4869
  equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
4867
4870
  notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
4868
- }, Fl = {
4871
+ }, Tl = {
4869
4872
  equal: (e, t, n) => {
4870
4873
  if (e) {
4871
4874
  const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
@@ -4909,13 +4912,13 @@ const Cl = [
4909
4912
  return !1;
4910
4913
  }
4911
4914
  };
4912
- function Tl() {
4915
+ function kl() {
4913
4916
  const e = p([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = Rt(), o = /* @__PURE__ */ new Map([
4914
- ["boolean", _l],
4915
- ["datetime", Sl],
4916
- ["enum", xl],
4917
- ["number", Fl],
4918
- ["text", wl]
4917
+ ["boolean", Sl],
4918
+ ["datetime", xl],
4919
+ ["enum", Fl],
4920
+ ["number", Tl],
4921
+ ["text", _l]
4919
4922
  ]);
4920
4923
  function a(h) {
4921
4924
  t.delete(h), e.value = Array.from(t.values());
@@ -4924,27 +4927,27 @@ function Tl() {
4924
4927
  t.clear(), e.value = [];
4925
4928
  }
4926
4929
  function l(h) {
4927
- const { valueType: i } = h.value, D = h.compareType || "0", C = Cl[Number(D)];
4928
- return o.get(i)[C];
4930
+ const { valueType: r } = h.value, D = h.compareType || "0", C = wl[Number(D)];
4931
+ return o.get(r)[C];
4929
4932
  }
4930
4933
  function u(h) {
4931
- const i = h.relation === 2 ? 0 : 1, D = h.items.map((g) => {
4934
+ const r = h.relation === 2 ? 0 : 1, D = h.items.map((g) => {
4932
4935
  const S = l(g);
4933
4936
  return (m) => S(m, g.fieldCode, g.value.getValue());
4934
4937
  }), C = h.children && h.children.length ? h.children.map((g) => u(g)) : [];
4935
- return { relation: i, filterFunctions: D, children: C };
4938
+ return { relation: r, filterFunctions: D, children: C };
4936
4939
  }
4937
4940
  function y() {
4938
4941
  const h = n(e.value);
4939
4942
  return u(h);
4940
4943
  }
4941
- function v(h, i) {
4942
- const D = i.filterFunctions.map((g) => g(h)), C = i.children.map((g) => v(h, g));
4943
- return i.relation === 1 ? D.every((g) => g) && C.every((g) => g) : D.includes(!0) || C.includes(!0);
4944
+ function v(h, r) {
4945
+ const D = r.filterFunctions.map((g) => g(h)), C = r.children.map((g) => v(h, g));
4946
+ return r.relation === 1 ? D.every((g) => g) && C.every((g) => g) : D.includes(!0) || C.includes(!0);
4944
4947
  }
4945
4948
  function d(h) {
4946
- const i = y();
4947
- return v(h, i);
4949
+ const r = y();
4950
+ return v(h, r);
4948
4951
  }
4949
4952
  return { apply: d, clearCondition: s, conditions: e, removeCondition: a };
4950
4953
  }
@@ -4961,14 +4964,14 @@ function At(e, t) {
4961
4964
  function h(m, x, T, _, b) {
4962
4965
  const E = _[T];
4963
4966
  E && (x.reduce((j, F, N) => {
4964
- var r;
4967
+ var i;
4965
4968
  const V = F[E];
4966
4969
  let k = j.get(V);
4967
4970
  if (!k) {
4968
4971
  const w = u.value.reduce((B, P) => (B.set(P, 0), B), /* @__PURE__ */ new Map());
4969
4972
  k = {
4970
4973
  field: E,
4971
- title: ((r = b.get(E)) == null ? void 0 : r.title) || E,
4974
+ title: ((i = b.get(E)) == null ? void 0 : i.title) || E,
4972
4975
  value: V,
4973
4976
  layer: T,
4974
4977
  details: [],
@@ -4985,7 +4988,7 @@ function At(e, t) {
4985
4988
  j.nestGroup = /* @__PURE__ */ new Map(), h(j.nestGroup, j.details, T + 1, _, b), j.details = [];
4986
4989
  }));
4987
4990
  }
4988
- function i(m, x) {
4991
+ function r(m, x) {
4989
4992
  return e.group && e.group.formatter ? e.group.formatter(m.value, { ...m, total: x }) : `${m.title}:${m.value} (${x})`;
4990
4993
  }
4991
4994
  function D(m) {
@@ -5016,7 +5019,7 @@ function At(e, t) {
5016
5019
  }
5017
5020
  T.groupSummaries && T.groupSummaries.size && T.groupSummaries.forEach((E, j) => {
5018
5021
  _[j] = E;
5019
- }), _[n.value] = `group_of_${T.field}_${T.value}`, _[T.field] = i(T, b);
5022
+ }), _[n.value] = `group_of_${T.field}_${T.value}`, _[T.field] = r(T, b);
5020
5023
  }), x.forEach((T, _) => {
5021
5024
  T.__fv_data_index__ = _;
5022
5025
  }), x;
@@ -5033,14 +5036,14 @@ function At(e, t) {
5033
5036
  }
5034
5037
  return { collpaseGroupIconClass: g, generateGroupData: C, groupFields: s, shouldGroupingData: l };
5035
5038
  }
5036
- function kl(e, t, n, o) {
5039
+ function Il(e, t, n, o) {
5037
5040
  const a = p(!!e.hierarchy), { idField: s } = o, { collapseField: l, hasChildrenField: u, parentIdField: y } = n, v = /* @__PURE__ */ new Map();
5038
- function d(k, r) {
5041
+ function d(k, i) {
5039
5042
  const w = /* @__PURE__ */ new Map();
5040
5043
  return k.reduce((B, P) => {
5041
5044
  const I = P[y.value] !== void 0 ? P[y.value] : "";
5042
- if (I && r.has(I)) {
5043
- const O = r.get(I);
5045
+ if (I && i.has(I)) {
5046
+ const O = i.get(I);
5044
5047
  P.__fv_parent_index__ = O.__fv_index__, O.__fv_hasChildren__ = !0;
5045
5048
  }
5046
5049
  const M = B.has(I) ? B.get(I) : [];
@@ -5048,48 +5051,48 @@ function kl(e, t, n, o) {
5048
5051
  }, w), w;
5049
5052
  }
5050
5053
  function h(k) {
5051
- const r = /* @__PURE__ */ new Map();
5054
+ const i = /* @__PURE__ */ new Map();
5052
5055
  return k.reduce((w, B) => {
5053
5056
  const P = B[s.value];
5054
5057
  return w.set(P, B), w;
5055
- }, r), r;
5058
+ }, i), i;
5056
5059
  }
5057
- function i(k) {
5058
- k.forEach((r) => {
5059
- const w = r[s.value];
5060
- r.__fv_children_index__.map((P) => k[P]).forEach((P) => {
5060
+ function r(k) {
5061
+ k.forEach((i) => {
5062
+ const w = i[s.value];
5063
+ i.__fv_children_index__.map((P) => k[P]).forEach((P) => {
5061
5064
  P.__fv_parents__ = new Map([
5062
- ...r.__fv_parents__.entries(),
5065
+ ...i.__fv_parents__.entries(),
5063
5066
  [w, !0]
5064
5067
  ]);
5065
5068
  });
5066
5069
  });
5067
5070
  }
5068
5071
  function D(k) {
5069
- k.forEach((r) => {
5070
- const w = new Set(r.__fv_children_index__);
5071
- r.__fv_children_index__ = [...w].sort((B, P) => B - P);
5072
+ k.forEach((i) => {
5073
+ const w = new Set(i.__fv_children_index__);
5074
+ i.__fv_children_index__ = [...w].sort((B, P) => B - P);
5072
5075
  });
5073
5076
  }
5074
- function C(k, r) {
5077
+ function C(k, i) {
5075
5078
  k.forEach((w) => {
5076
5079
  const B = w.__fv_parents__;
5077
- Array.from(B.keys()).map((P) => r.get(P)).forEach((P) => {
5080
+ Array.from(B.keys()).map((P) => i.get(P)).forEach((P) => {
5078
5081
  P.__fv_children_index__.push(w.__fv_index__);
5079
5082
  });
5080
5083
  }), D(k);
5081
5084
  }
5082
5085
  function g(k) {
5083
- k.forEach((r) => {
5084
- r.__fv_child_with_lines__ = [], r.__fv_child_length__ = r.__fv_descendant_index__.length, r.__fv_descendant_index__.map((w) => k[w]).reduce((w, B) => (w.__fv_child_length__ += B.__fv_children_index__.length, w.__fv_child_with_lines__.push(...B.__fv_children_index__, B.__fv_index__), w), r);
5086
+ k.forEach((i) => {
5087
+ i.__fv_child_with_lines__ = [], i.__fv_child_length__ = i.__fv_descendant_index__.length, i.__fv_descendant_index__.map((w) => k[w]).reduce((w, B) => (w.__fv_child_length__ += B.__fv_children_index__.length, w.__fv_child_with_lines__.push(...B.__fv_children_index__, B.__fv_index__), w), i);
5085
5088
  });
5086
5089
  }
5087
- function S(k, r) {
5088
- return { id: k, index: r, parentId: "", parentIndex: -1, parents: /* @__PURE__ */ new Map(), children: /* @__PURE__ */ new Map(), descendant: /* @__PURE__ */ new Map() };
5090
+ function S(k, i) {
5091
+ return { id: k, index: i, parentId: "", parentIndex: -1, parents: /* @__PURE__ */ new Map(), children: /* @__PURE__ */ new Map(), descendant: /* @__PURE__ */ new Map() };
5089
5092
  }
5090
- function f(k, r) {
5091
- Array.from(r.keys()).forEach((w) => {
5092
- r.get(w).reduce((P, I) => {
5093
+ function f(k, i) {
5094
+ Array.from(i.keys()).forEach((w) => {
5095
+ i.get(w).reduce((P, I) => {
5093
5096
  const M = I[s.value], O = k.get(I[s.value]), R = k.get(w);
5094
5097
  return R && (R.children.set(M, O), R.children.set(M, O), O.parentId = w, O.parentIndex = R.index, O.parents.set(w, R)), P;
5095
5098
  }, k);
@@ -5103,16 +5106,16 @@ function kl(e, t, n, o) {
5103
5106
  ]), m(w);
5104
5107
  });
5105
5108
  }
5106
- function x(k, r) {
5109
+ function x(k, i) {
5107
5110
  k.filter((w) => w[y.value] === void 0 || w[y.value] === "").forEach((w) => {
5108
- const B = w[s.value], P = r.get(B);
5111
+ const B = w[s.value], P = i.get(B);
5109
5112
  m(P);
5110
5113
  });
5111
5114
  }
5112
5115
  function T(k) {
5113
- Array.from(k.values()).forEach((r) => {
5114
- Array.from(r.parents.values()).forEach((w) => {
5115
- w.descendant.set(r.id, r);
5116
+ Array.from(k.values()).forEach((i) => {
5117
+ Array.from(i.parents.values()).forEach((w) => {
5118
+ w.descendant.set(i.id, i);
5116
5119
  });
5117
5120
  });
5118
5121
  }
@@ -5121,11 +5124,11 @@ function kl(e, t, n, o) {
5121
5124
  const I = B[s.value];
5122
5125
  v.set(I, S(I, P));
5123
5126
  });
5124
- const r = h(k), w = d(k, r);
5127
+ const i = h(k), w = d(k, i);
5125
5128
  return f(v, w), x(k, v), T(v), v;
5126
5129
  }
5127
5130
  function b(k) {
5128
- const r = k[s.value], w = v.get(r);
5131
+ const i = k[s.value], w = v.get(i);
5129
5132
  return w && w.children.size > 0;
5130
5133
  }
5131
5134
  function E(k) {
@@ -5133,14 +5136,14 @@ function kl(e, t, n, o) {
5133
5136
  }
5134
5137
  function j(k) {
5135
5138
  _(t.value);
5136
- const r = h(k), w = d(k, r);
5139
+ const i = h(k), w = d(k, i);
5137
5140
  return k.forEach((B, P) => {
5138
5141
  var R;
5139
5142
  const I = B[s.value], M = w.has(I) ? (R = w.get(I)) == null ? void 0 : R.map((L) => L.__fv_index__) : [], O = S(I, P);
5140
5143
  B.__fv_graph_node__ = O, B.__fv_children_index__ = M, B.__fv_descendant_index__ = [...M], B.__fv_parents__ = /* @__PURE__ */ new Map(), E(B) && (B[l.value] = !0);
5141
- }), i(k), C(k, r), e.showLines && g(k), k;
5144
+ }), r(k), C(k, i), e.showLines && g(k), k;
5142
5145
  }
5143
- function F(k, r, w) {
5146
+ function F(k, i, w) {
5144
5147
  const P = w.value[k][s.value], I = v.get(P);
5145
5148
  if (I) {
5146
5149
  const M = v.get(I.parentId);
@@ -5154,30 +5157,30 @@ function kl(e, t, n, o) {
5154
5157
  const Q = Array.from(M.children.values())[R + 1];
5155
5158
  O = w.value.findIndex((fe) => fe[s.value] === Q.id);
5156
5159
  }
5157
- r[u.value] = !1, r[y.value] = M.id, w.value.splice(O, 0, r);
5160
+ i[u.value] = !1, i[y.value] = M.id, w.value.splice(O, 0, i);
5158
5161
  }
5159
5162
  }
5160
5163
  }
5161
- function N(k, r, w) {
5164
+ function N(k, i, w) {
5162
5165
  const B = w.value[k], P = B[s.value];
5163
5166
  if (v.get(P)) {
5164
5167
  const O = w.value.findIndex((R) => R[s.value] === P) + 1;
5165
- B[u.value] = !0, B[l.value] = !1, r[u.value] = !1, r[y.value] = P, w.value.splice(O, 0, r);
5168
+ B[u.value] = !0, B[l.value] = !1, i[u.value] = !1, i[y.value] = P, w.value.splice(O, 0, i);
5166
5169
  }
5167
5170
  }
5168
- function V(k, r) {
5171
+ function V(k, i) {
5169
5172
  const w = k[s.value], B = v.get(w), P = Array.from(B.descendant.keys());
5170
5173
  P.unshift(w);
5171
5174
  const I = v.get(B.parentId);
5172
5175
  if (I && (I.children.delete(w), I.children.size === 0)) {
5173
- const O = r.find((R) => R[s.value] === B.parentId);
5176
+ const O = i.find((R) => R[s.value] === B.parentId);
5174
5177
  O[u.value] = !1, O[l.value] = !1;
5175
5178
  }
5176
- return r.filter((O) => P.indexOf(O.id) === -1);
5179
+ return i.filter((O) => P.indexOf(O.id) === -1);
5177
5180
  }
5178
5181
  return { generateHierarchyData: j, hasRealChildren: b, insertSibling: F, insertChild: N, shouldStratifyData: a, trimmedOriginalData: V };
5179
5182
  }
5180
- const Il = {
5183
+ const Vl = {
5181
5184
  showCloseButton: { type: Boolean, default: !0 },
5182
5185
  position: { type: String, default: "top-center" },
5183
5186
  timeout: { type: Number, default: 3e3 },
@@ -5189,13 +5192,13 @@ const Il = {
5189
5192
  id: { type: String },
5190
5193
  animate: { type: String, default: "fadeIn" },
5191
5194
  options: { type: Object }
5192
- }, Vl = {
5195
+ }, El = {
5193
5196
  showCloseButton: { type: Boolean, default: !0 },
5194
5197
  animate: { type: String, default: "fadeIn" },
5195
5198
  options: { type: Object }
5196
5199
  }, et = /* @__PURE__ */ te({
5197
5200
  name: "Toast",
5198
- props: Vl,
5201
+ props: El,
5199
5202
  emits: ["close", "click"],
5200
5203
  setup: (e, t) => {
5201
5204
  const n = p(e.animate), o = "fadeOut", a = $(() => e.options), s = p(!1), l = $(() => {
@@ -5209,7 +5212,7 @@ const Il = {
5209
5212
  "f-icon": !0
5210
5213
  };
5211
5214
  return T[x] = !0, T;
5212
- }), y = $(() => a.value.title || a.value.message), v = $(() => a.value.title && a.value.message), d = $(() => !a.value.title && a.value.message), h = $(() => e.showCloseButton), i = $(() => !!a.value.buttons || !!t.slots.default);
5215
+ }), y = $(() => a.value.title || a.value.message), v = $(() => a.value.title && a.value.message), d = $(() => !a.value.title && a.value.message), h = $(() => e.showCloseButton), r = $(() => !!a.value.buttons || !!t.slots.default);
5213
5216
  function D(f) {
5214
5217
  f.stopPropagation(), f.preventDefault(), s.value = !1, setTimeout(() => {
5215
5218
  t.emit("close", a.value);
@@ -5254,7 +5257,7 @@ const Il = {
5254
5257
  }, null), c("p", {
5255
5258
  class: "toast-msg",
5256
5259
  innerHTML: a.value.message
5257
- }, null), i.value && S()]), d.value && (a.value.buttons ? c("div", {
5260
+ }, null), r.value && S()]), d.value && (a.value.buttons ? c("div", {
5258
5261
  class: "toast-title-btns-wrapper d-flex"
5259
5262
  }, [c("h5", {
5260
5263
  class: "toast-title modal-tips-title only-toast-msg",
@@ -5268,7 +5271,7 @@ const Il = {
5268
5271
  }
5269
5272
  }), Be = /* @__PURE__ */ te({
5270
5273
  name: "Notify",
5271
- props: Il,
5274
+ props: Vl,
5272
5275
  emits: ["close", "empty"],
5273
5276
  setup(e, t) {
5274
5277
  const n = $(() => ({
@@ -5279,16 +5282,16 @@ const Il = {
5279
5282
  top: 20,
5280
5283
  bottom: 12
5281
5284
  }, a = p(), s = p(e.options), l = p(e.showCloseButton), u = $(() => e.position || "bottom-right"), y = $(() => e.timeout != null ? e.timeout : 3e3), v = $(() => {
5282
- const i = e.bottom ? e.bottom : o.bottom, D = e.top ? e.top : o.top, C = {
5285
+ const r = e.bottom ? e.bottom : o.bottom, D = e.top ? e.top : o.top, C = {
5283
5286
  transition: "all 0.2s ease",
5284
5287
  left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
5285
5288
  right: u.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
5286
5289
  top: u.value.indexOf("top") > -1 ? `${D}px` : "",
5287
- bottom: u.value.indexOf("bottom") > -1 ? `${i}px` : ""
5290
+ bottom: u.value.indexOf("bottom") > -1 ? `${r}px` : ""
5288
5291
  };
5289
5292
  return u.value.indexOf("center") > -1 && (C.left = "50%", C.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (C.top = "50%", C.transform = "translate(-50%, -50%)")), C;
5290
5293
  });
5291
- function d(i) {
5294
+ function d(r) {
5292
5295
  t.emit("close");
5293
5296
  }
5294
5297
  y.value && setTimeout(() => {
@@ -5298,7 +5301,7 @@ const Il = {
5298
5301
  container: a,
5299
5302
  notifyPosition: u
5300
5303
  });
5301
- function h(i, D) {
5304
+ function h(r, D) {
5302
5305
  d();
5303
5306
  }
5304
5307
  return () => c("div", {
@@ -5309,7 +5312,7 @@ const Il = {
5309
5312
  options: s.value,
5310
5313
  showCloseButton: l.value,
5311
5314
  animate: e.animate,
5312
- onClose: (i) => h(i, s.value)
5315
+ onClose: (r) => h(r, s.value)
5313
5316
  }, null)]);
5314
5317
  }
5315
5318
  });
@@ -5418,23 +5421,23 @@ class Lt {
5418
5421
  }), this.notifyRefs.length = 0;
5419
5422
  }
5420
5423
  }
5421
- const El = Symbol("NOTIFY_SERVICE_TOKEN");
5424
+ const Ol = Symbol("NOTIFY_SERVICE_TOKEN");
5422
5425
  Be.install = (e) => {
5423
5426
  e.component(Be.name, Be), e.component(et.name, et);
5424
5427
  const t = new Lt();
5425
- e.provide(El, t), e.provide("FNotifyService", t);
5428
+ e.provide(Ol, t), e.provide("FNotifyService", t);
5426
5429
  };
5427
- function Ol(e, t, n, o, a) {
5428
- var rt;
5429
- const { pageSize: s, total: l, shouldRenderPagination: u, currentPage: y, mode: v } = a, d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), g = p([]), S = p([]), f = Tl(), m = At(e, o), { generateGroupData: x, groupFields: T, shouldGroupingData: _ } = m, b = p(e.data), E = kl(e, b, n, o), {
5430
+ function Bl(e, t, n, o, a) {
5431
+ var it;
5432
+ const { pageSize: s, total: l, shouldRenderPagination: u, currentPage: y, mode: v } = a, d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), g = p([]), S = p([]), f = kl(), m = At(e, o), { generateGroupData: x, groupFields: T, shouldGroupingData: _ } = m, b = p(e.data), E = Il(e, b, n, o), {
5430
5433
  generateHierarchyData: j,
5431
5434
  hasRealChildren: F,
5432
5435
  insertSibling: N,
5433
5436
  insertChild: V,
5434
5437
  shouldStratifyData: k,
5435
- trimmedOriginalData: r
5436
- } = E, { idField: w, reviseIdentifyField: B } = o, P = p(e.newDataItem), I = p(e.data), M = p(e.data), { flatTreeData: O } = Hl(e);
5437
- if (e.data && ((rt = e.data[0]) != null && rt.children)) {
5438
+ trimmedOriginalData: i
5439
+ } = E, { idField: w, reviseIdentifyField: B } = o, P = p(e.newDataItem), I = p(e.data), M = p(e.data), { flatTreeData: O } = zl(e);
5440
+ if (e.data && ((it = e.data[0]) != null && it.children)) {
5438
5441
  const A = Ve(e.data);
5439
5442
  b.value = A, I.value = A, M.value = A;
5440
5443
  }
@@ -5443,21 +5446,21 @@ function Ol(e, t, n, o, a) {
5443
5446
  return (A == null ? void 0 : A.groupFields) || [];
5444
5447
  });
5445
5448
  let Q = /* @__PURE__ */ new Map();
5446
- const re = $(() => I.value.length), fe = p(e.pagination), Pe = new Lt(), ke = $(() => u.value ? v.value === "server" ? 0 : (y.value - 1) * s.value : 0), Ie = $(() => u.value ? v.value === "server" ? Math.min(s.value, l.value, re.value) : Math.min(ke.value + s.value, l.value, re.value) : re.value);
5449
+ const ie = $(() => I.value.length), fe = p(e.pagination), Pe = new Lt(), ke = $(() => u.value ? v.value === "server" ? 0 : (y.value - 1) * s.value : 0), Ie = $(() => u.value ? v.value === "server" ? Math.min(s.value, l.value, ie.value) : Math.min(ke.value + s.value, l.value, ie.value) : ie.value);
5447
5450
  function Ve(A) {
5448
5451
  return O(A);
5449
5452
  }
5450
5453
  function Se() {
5451
- I.value = b.value, _.value && (I.value = x(T.value, b.value, t)), Q = L.value.reduce((ie, ce) => (ie.set(ce, 0), ie), Q);
5454
+ I.value = b.value, _.value && (I.value = x(T.value, b.value, t)), Q = L.value.reduce((re, ce) => (re.set(ce, 0), re), Q);
5452
5455
  const A = ke.value, K = Ie.value;
5453
5456
  let Y = 0;
5454
5457
  const ne = [];
5455
5458
  if (I.value.length) {
5456
5459
  B(I.value);
5457
- const ie = w.value !== e.idField;
5460
+ const re = w.value !== e.idField;
5458
5461
  for (let ce = A; ce < K; ce++) {
5459
5462
  const le = I.value[ce];
5460
- le.__fv_data_grid_group_row__ ? (Y = 0, le.__fv_data_index__ = "") : le.__fv_data_grid_group_summary__ ? le.__fv_data_index__ = "" : (Y++, u.value ? le.__fv_data_index__ = Y + (y.value - 1) * s.value : le.__fv_data_index__ = Y), le.__fv_index__ = ce, ie && (le[w.value] = ce), L.value.forEach((Z) => {
5463
+ le.__fv_data_grid_group_row__ ? (Y = 0, le.__fv_data_index__ = "") : le.__fv_data_grid_group_summary__ ? le.__fv_data_index__ = "" : (Y++, u.value ? le.__fv_data_index__ = Y + (y.value - 1) * s.value : le.__fv_data_index__ = Y), le.__fv_index__ = ce, re && (le[w.value] = ce), L.value.forEach((Z) => {
5461
5464
  const me = Q.get(Z) || 0;
5462
5465
  Q.set(Z, me + le[Z]);
5463
5466
  }), ne.push(le);
@@ -5467,7 +5470,7 @@ function Ol(e, t, n, o, a) {
5467
5470
  }
5468
5471
  const ue = p(Se());
5469
5472
  function se(A, K, Y = !1) {
5470
- const ie = (Y ? Se() : [...M.value]).filter((Z) => f.apply(Z)), ce = A && A.length ? ie.filter((Z) => A.reduce((me, ge) => me && ge.filter(Z), !0)) : ie, le = K && K.length ? ce.sort((Z, me) => {
5473
+ const re = (Y ? Se() : [...M.value]).filter((Z) => f.apply(Z)), ce = A && A.length ? re.filter((Z) => A.reduce((me, ge) => me && ge.filter(Z), !0)) : re, le = K && K.length ? ce.sort((Z, me) => {
5471
5474
  const ge = [...K], ze = ge.shift();
5472
5475
  let Ge = ze.compare(Z[ze.field], me[ze.field]);
5473
5476
  for (; Ge === 0 && ge.length !== 0; ) {
@@ -5505,18 +5508,18 @@ function Ol(e, t, n, o, a) {
5505
5508
  function J(A, K) {
5506
5509
  const Y = `group_of_${A}_${K}`;
5507
5510
  d.set(Y, !0);
5508
- const ne = (ie) => ie[A] !== K;
5509
- return i.set(`collapse_${A}_${K}`, {
5511
+ const ne = (re) => re[A] !== K;
5512
+ return r.set(`collapse_${A}_${K}`, {
5510
5513
  field: A,
5511
5514
  fieldName: A,
5512
5515
  fieldType: "string",
5513
5516
  filterValue: K,
5514
5517
  filter: ne
5515
- }), se(Array.from(i.values()), Array.from(C.values()));
5518
+ }), se(Array.from(r.values()), Array.from(C.values()));
5516
5519
  }
5517
5520
  function he(A, K) {
5518
5521
  const Y = `group_of_${A}_${K}`;
5519
- return d.set(Y, !1), i.delete(`collapse_${A}_${K}`), se(Array.from(i.values()), Array.from(C.values()), !0);
5522
+ return d.set(Y, !1), r.delete(`collapse_${A}_${K}`), se(Array.from(r.values()), Array.from(C.values()), !0);
5520
5523
  }
5521
5524
  function xe(A) {
5522
5525
  const K = A.raw[w.value], Y = (ne) => !ne.__fv_parents__.has(K);
@@ -5549,10 +5552,10 @@ function Ol(e, t, n, o, a) {
5549
5552
  pe();
5550
5553
  }
5551
5554
  function Wt(A, K, Y) {
5552
- return (A && A.length ? ue.value.filter((ie, ce) => A.reduce((le, Z) => le && Z.filter(ie), !0)) : ue.value).slice(K, Y);
5555
+ return (A && A.length ? ue.value.filter((re, ce) => A.reduce((le, Z) => le && Z.filter(re), !0)) : ue.value).slice(K, Y);
5553
5556
  }
5554
5557
  function Ut(A) {
5555
- (A - 1) * s.value <= re.value && pe();
5558
+ (A - 1) * s.value <= ie.value && pe();
5556
5559
  }
5557
5560
  function Kt(A) {
5558
5561
  b.value.push(Te(A)), ue.value = Se();
@@ -5581,10 +5584,10 @@ function Ol(e, t, n, o, a) {
5581
5584
  const K = A > -1 ? b.value[A] : null;
5582
5585
  if (!(K && K.deletable !== !1))
5583
5586
  return !1;
5584
- b.value = r(K, b.value), pe();
5587
+ b.value = i(K, b.value), pe();
5585
5588
  }
5586
5589
  function en() {
5587
- const A = i.size > 0 ? Array.from(i.values()) : [];
5590
+ const A = r.size > 0 ? Array.from(r.values()) : [];
5588
5591
  return se(A, Array.from(C.values()));
5589
5592
  }
5590
5593
  function tn(A) {
@@ -5601,7 +5604,7 @@ function Ol(e, t, n, o, a) {
5601
5604
  }
5602
5605
  function on(A) {
5603
5606
  return A.map((Y) => {
5604
- const ne = M.value.findIndex((ie) => ie[w.value] === Y);
5607
+ const ne = M.value.findIndex((re) => re[w.value] === Y);
5605
5608
  return ne > -1 ? M.value[ne] : null;
5606
5609
  }).filter((Y) => Y != null);
5607
5610
  }
@@ -5622,7 +5625,7 @@ function Ol(e, t, n, o, a) {
5622
5625
  load: qt,
5623
5626
  navigatePageTo: Ut,
5624
5627
  summaries: Q,
5625
- totalItems: re,
5628
+ totalItems: ie,
5626
5629
  insertNewDataItem: Yt,
5627
5630
  insertNewChildDataItem: Xt,
5628
5631
  removeAllFilter: H,
@@ -5642,7 +5645,7 @@ function Ol(e, t, n, o, a) {
5642
5645
  originalData: b
5643
5646
  };
5644
5647
  }
5645
- function Bl(e) {
5648
+ function Ml(e) {
5646
5649
  p(e.selection.showCheckbox || !1);
5647
5650
  const t = $(() => {
5648
5651
  var l;
@@ -5653,14 +5656,14 @@ function Bl(e) {
5653
5656
  }), o = $(() => {
5654
5657
  var l;
5655
5658
  return ((l = e.hierarchy) == null ? void 0 : l.parentIdField) || "parent";
5656
- }), a = $(() => e.hierarchy && e.selection.showCheckbox && e.selection.enableSelectRow && e.selection.multiSelect), s = $(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
5659
+ }), a = $(() => e.hierarchy && e.selection.showCheckbox), s = $(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
5657
5660
  return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: s };
5658
5661
  }
5659
- function Ml(e, t, n, o, a, s, l, u) {
5660
- const y = p(o.value - 1 + a), v = p(0), { renderDataRow: d } = s, h = l ? l.renderGroupRow : d, i = u ? u.renderSummaryRow : d;
5662
+ function Dl(e, t, n, o, a, s, l, u) {
5663
+ const y = p(o.value - 1 + a), v = p(0), { renderDataRow: d } = s, h = l ? l.renderGroupRow : d, r = u ? u.renderSummaryRow : d;
5661
5664
  function D(S) {
5662
5665
  let f = d;
5663
- return S.__fv_data_grid_group_row__ && (f = h), S.__fv_data_grid_group_summary__ && (f = i), f;
5666
+ return S.__fv_data_grid_group_row__ && (f = h), S.__fv_data_grid_group_summary__ && (f = r), f;
5664
5667
  }
5665
5668
  function C(S, f, m, x) {
5666
5669
  const { dataView: T } = n, _ = [];
@@ -5681,9 +5684,9 @@ function Ml(e, t, n, o, a, s, l, u) {
5681
5684
  }
5682
5685
  return { getVisualData: C, maxVisibleRowIndex: y, minVisibleRowIndex: v, toggleGroupRow: g };
5683
5686
  }
5684
- function Dl(e, t, n) {
5687
+ function jl(e, t, n) {
5685
5688
  var C;
5686
- const o = p(e.mergeCell), s = ((C = p(e.rowOption).value) == null ? void 0 : C.wrapContent) || !1, { updateVisualInfomation: l } = n, { renderCommandColumn: u } = os();
5689
+ const o = p(e.mergeCell), s = ((C = p(e.rowOption).value) == null ? void 0 : C.wrapContent) || !1, { updateVisualInfomation: l } = n, { renderCommandColumn: u } = as();
5687
5690
  function y(g, S, f, m, x, T = 1) {
5688
5691
  const _ = {
5689
5692
  colSpan: T,
@@ -5728,25 +5731,25 @@ function Dl(e, t, n) {
5728
5731
  T.rowSpan++, T.spanned = T.spanned || [], T.spanned.push(g), g.colSpan = 0, g.rowSpan = 0, g.spannedBy = T;
5729
5732
  }
5730
5733
  }
5731
- function i(g, S, f) {
5734
+ function r(g, S, f) {
5732
5735
  o.value && h(g, S, f.field);
5733
5736
  }
5734
5737
  function D(g, S, f, m, x) {
5735
5738
  const T = g.readonly ? oe.readonly : oe.editable, _ = y(g.field, T, S, f, m);
5736
- return v(_, g, f), d(_, g), i(_, x, g), _;
5739
+ return v(_, g, f), d(_, g), r(_, x, g), _;
5737
5740
  }
5738
5741
  return { createCellByColumn: D, createCellByField: y };
5739
5742
  }
5740
- function jl(e, t, n, o, a, s) {
5743
+ function Nl(e, t, n, o, a, s) {
5741
5744
  var f, m;
5742
- const l = p(e.rowOption), u = ((f = l.value) == null ? void 0 : f.height) || 28, y = ((m = l.value) == null ? void 0 : m.wrapContent) || !1, { idField: v } = o, { collapseField: d } = n, { updateRowPosition: h } = a, { createCellByColumn: i } = s;
5745
+ const l = p(e.rowOption), u = ((f = l.value) == null ? void 0 : f.height) || 28, y = ((m = l.value) == null ? void 0 : m.wrapContent) || !1, { idField: v } = o, { collapseField: d } = n, { updateRowPosition: h } = a, { createCellByColumn: r } = s;
5743
5746
  function D(x, T, _, b, E, j) {
5744
- var Q, re;
5747
+ var Q, ie;
5745
5748
  const {
5746
5749
  __fv_data_grid_group_field__: F,
5747
5750
  __fv_data_grid_group_value__: N,
5748
5751
  __fv_data_index__: V
5749
- } = _, k = _.__fv_data_grid_group_layer__ || _.__fv_parents__ ? (Q = _.__fv_parents__) == null ? void 0 : Q.size : 0, r = typeof _.parent == "number" ? Number(_.parent) : -1, w = _.__fv_data_grid_group_collapse__ || _[d.value], B = _.__fv_visible__ === void 0 ? !0 : _.__fv_visible__, P = _.__fv_checked__, I = _.__fv_indeterminate__, M = b && b[v.value] === _.parent, O = b && b.parent === _.parent, R = M && E && (E.collapse || !E.visible) || O && E && !E.visible, L = {
5752
+ } = _, k = _.__fv_data_grid_group_layer__ || _.__fv_parents__ ? (Q = _.__fv_parents__) == null ? void 0 : Q.size : 0, i = typeof _.parent == "number" ? Number(_.parent) : -1, w = _.__fv_data_grid_group_collapse__ || _[d.value], B = _.__fv_visible__ === void 0 ? !0 : _.__fv_visible__, P = _.__fv_checked__, I = _.__fv_indeterminate__, M = b && b[v.value] === _.parent, O = b && b.parent === _.parent, R = M && E && (E.collapse || !E.visible) || O && E && !E.visible, L = {
5750
5753
  collapse: w,
5751
5754
  data: {},
5752
5755
  dataIndex: V,
@@ -5754,7 +5757,7 @@ function jl(e, t, n, o, a, s) {
5754
5757
  groupValue: N,
5755
5758
  layer: k,
5756
5759
  index: T,
5757
- parentIndex: r,
5760
+ parentIndex: i,
5758
5761
  pre: b,
5759
5762
  top: j,
5760
5763
  type: x,
@@ -5767,12 +5770,12 @@ function jl(e, t, n, o, a, s) {
5767
5770
  visible: B && !R,
5768
5771
  status: ve.initial
5769
5772
  };
5770
- return b || (_.__fv_data_position__ = 0), y || (L.height = u, _.__fv_data_height__ = L.height, h(L, _)), (re = l.value) != null && re.customRowStatus && (l.value.customRowStatus(L), _.__fv_collapse__ = L.collapse, _.__fv_visible__ = L.visible), L;
5773
+ return b || (_.__fv_data_position__ = 0), y || (L.height = u, _.__fv_data_height__ = L.height, h(L, _)), (ie = l.value) != null && ie.customRowStatus && (l.value.customRowStatus(L), _.__fv_collapse__ = L.collapse, _.__fv_visible__ = L.visible), L;
5771
5774
  }
5772
5775
  function C(x, T, _, b, E, j) {
5773
5776
  const F = D(Ne.data, E, T, _, b, j);
5774
5777
  return x.forEach((N, V) => {
5775
- F.data[N.field] = i(N, E, T, F, b);
5778
+ F.data[N.field] = r(N, E, T, F, b);
5776
5779
  }), F;
5777
5780
  }
5778
5781
  function g(x, T, _, b, E) {
@@ -5784,43 +5787,43 @@ function jl(e, t, n, o, a, s) {
5784
5787
  }
5785
5788
  return { createEmptyRow: D, createNewRowFromDataItem: C, renderDataRow: S };
5786
5789
  }
5787
- function Nl(e, t, n, o) {
5790
+ function Pl(e, t, n, o) {
5788
5791
  const a = p(e.summary), { idField: s } = t, { createCellByField: l } = n, { createEmptyRow: u } = o, y = $(() => {
5789
- const i = a.value;
5790
- return (i == null ? void 0 : i.groupFields) || [];
5792
+ const r = a.value;
5793
+ return (r == null ? void 0 : r.groupFields) || [];
5791
5794
  }), v = $(() => {
5792
- const i = a.value;
5793
- return i && i.enable && i.groupFields && i.groupFields.length > 0;
5795
+ const r = a.value;
5796
+ return r && r.enable && r.groupFields && r.groupFields.length > 0;
5794
5797
  });
5795
- function d(i, D, C, g) {
5798
+ function d(r, D, C, g) {
5796
5799
  if (v.value) {
5797
- const S = i.data[D];
5800
+ const S = r.data[D];
5798
5801
  let f = S.colSpan;
5799
5802
  const m = y.value.reduce((x, T) => (x.set(T, !0), x), /* @__PURE__ */ new Map());
5800
5803
  g.reduce((x, T, _) => {
5801
5804
  if (m.has(T.field)) {
5802
- const b = l(T.field, oe.readonly, _, C, i);
5803
- i.data[T.field] = b, f - 1 > _ && (f = _);
5805
+ const b = l(T.field, oe.readonly, _, C, r);
5806
+ r.data[T.field] = b, f - 1 > _ && (f = _);
5804
5807
  }
5805
5808
  return x;
5806
- }, i), S.colSpan = f;
5809
+ }, r), S.colSpan = f;
5807
5810
  }
5808
5811
  }
5809
- function h(i, D, C, g, S, f) {
5810
- const m = i.__fv_data_grid_group_field__, x = u(Ne.group, g, i, D, C, S);
5811
- return x.data[s.value] = l(s.value, oe.readonly, -1, i, x, 0), x.data[m] = l(m, oe.readonly, 1, i, x, f.length), d(x, m, i, f), x;
5812
+ function h(r, D, C, g, S, f) {
5813
+ const m = r.__fv_data_grid_group_field__, x = u(Ne.group, g, r, D, C, S);
5814
+ return x.data[s.value] = l(s.value, oe.readonly, -1, r, x, 0), x.data[m] = l(m, oe.readonly, 1, r, x, f.length), d(x, m, r, f), x;
5812
5815
  }
5813
5816
  return { renderGroupRow: h };
5814
5817
  }
5815
- function Pl(e, t, n, o) {
5818
+ function $l(e, t, n, o) {
5816
5819
  const { idField: a } = t, { createCellByField: s } = n, { createEmptyRow: l } = o;
5817
- function u(y, v, d, h, i, D) {
5818
- const C = y.__fv_data_grid_group_field__, g = l(Ne.summary, h, y, v, d, i);
5820
+ function u(y, v, d, h, r, D) {
5821
+ const C = y.__fv_data_grid_group_field__, g = l(Ne.summary, h, y, v, d, r);
5819
5822
  return g.data[a.value] = s(a.value, oe.readonly, -1, y, g), g.data[C] = s(C, oe.readonly, 1, y, g, D.length), g;
5820
5823
  }
5821
5824
  return { renderSummaryRow: u };
5822
5825
  }
5823
- function $l(e, t) {
5826
+ function Rl(e, t) {
5824
5827
  var T;
5825
5828
  const {
5826
5829
  idField: n
@@ -5844,11 +5847,11 @@ function $l(e, t) {
5844
5847
  function h(_) {
5845
5848
  _.accept(), _.mode = oe.editable;
5846
5849
  }
5847
- function i(_) {
5848
- u && h(u), document.body.removeEventListener("click", i);
5850
+ function r(_) {
5851
+ u && h(u), document.body.removeEventListener("click", r);
5849
5852
  }
5850
5853
  function D(_, b) {
5851
- o.value && a.value.editMode === "cell" && b.mode === oe.editable && (u && h(u), d(b), document.body.removeEventListener("click", i), document.body.addEventListener("click", i));
5854
+ o.value && a.value.editMode === "cell" && b.mode === oe.editable && (u && h(u), d(b), document.body.removeEventListener("click", r), document.body.addEventListener("click", r));
5852
5855
  }
5853
5856
  function C(_) {
5854
5857
  Object.values(_.data).filter((b) => b.mode === oe.editable && b.field !== "__commands__").forEach((b) => {
@@ -5873,7 +5876,7 @@ function $l(e, t) {
5873
5876
  const j = b.dataType, F = b.editor || {
5874
5877
  type: l.get(j) || "input-group"
5875
5878
  };
5876
- return !s.value && F.type === "text" && (F.type = "input-group"), F ? c(ml, {
5879
+ return !s.value && F.type === "text" && (F.type = "input-group"), F ? c(hl, {
5877
5880
  focusOnCreated: e.focusOnEditingCell,
5878
5881
  selectOnCreated: e.selectOnEditingCell,
5879
5882
  editor: F,
@@ -5890,7 +5893,7 @@ function $l(e, t) {
5890
5893
  getEditor: x
5891
5894
  };
5892
5895
  }
5893
- function Rl(e) {
5896
+ function Al(e) {
5894
5897
  const t = p(e.idField);
5895
5898
  function n(o) {
5896
5899
  if (o && o.length) {
@@ -5900,17 +5903,17 @@ function Rl(e) {
5900
5903
  }
5901
5904
  return { idField: t, reviseIdentifyField: n };
5902
5905
  }
5903
- function Al(e, t, n, o, a) {
5904
- const { idField: s } = n, l = p(""), u = p(e.selection.enableSelectRow ?? !0), y = p(e.selection.multiSelect ?? !1), v = p(e.selection.multiSelectMode), d = p(e.selection.showCheckbox), h = p(e.selection.showSelectAll), i = p(e.selectionValues);
5906
+ function Ll(e, t, n, o, a) {
5907
+ const { idField: s } = n, l = p(""), u = p(e.selection.enableSelectRow ?? !0), y = p(e.selection.multiSelect ?? !1), v = p(e.selection.multiSelectMode), d = p(e.selection.showCheckbox), h = p(e.selection.showSelectAll), r = p(e.selectionValues);
5905
5908
  X(() => e.selection.showSelectAll, (O, R) => {
5906
5909
  O !== R && (h.value = O);
5907
5910
  });
5908
5911
  function D() {
5909
- return t.getSelectionItems(i.value);
5912
+ return t.getSelectionItems(r.value);
5910
5913
  }
5911
5914
  function C() {
5912
5915
  const O = o.value.reduce((L, Q) => (L.set(Q.raw[s.value], Q), L), /* @__PURE__ */ new Map());
5913
- return i.value.map((L) => O.get(L)).filter((L) => !!L);
5916
+ return r.value.map((L) => O.get(L)).filter((L) => !!L);
5914
5917
  }
5915
5918
  $(() => u.value && !y.value);
5916
5919
  const g = $(() => u.value && y.value), S = $(() => !!e.hierarchy), f = $(() => {
@@ -5919,7 +5922,7 @@ function Al(e, t, n, o, a) {
5919
5922
  }), m = $(() => g.value && !d.value), x = $(() => g.value && d.value && v.value === "OnCheckAndClick");
5920
5923
  $(() => x.value);
5921
5924
  function T() {
5922
- const O = t.getSelectionItems(i.value);
5925
+ const O = t.getSelectionItems(r.value);
5923
5926
  a.emit("selectionChange", O);
5924
5927
  }
5925
5928
  function _() {
@@ -5932,7 +5935,7 @@ function Al(e, t, n, o, a) {
5932
5935
  X(() => o.value, () => {
5933
5936
  _();
5934
5937
  }), X(() => e.selectionValues, (O) => {
5935
- i.value = O, _();
5938
+ r.value = O, _();
5936
5939
  }, { immediate: !0 }), X(() => e.selection, (O) => {
5937
5940
  u.value = !!O.enableSelectRow, y.value = !!O.multiSelect, v.value = O.multiSelectMode || "DependOnCheck", d.value = !!O.showCheckbox;
5938
5941
  });
@@ -5941,30 +5944,30 @@ function Al(e, t, n, o, a) {
5941
5944
  return O.raw[s.value] || "";
5942
5945
  }
5943
5946
  function j(O) {
5944
- return i.value.findIndex((L) => L === E(O));
5947
+ return r.value.findIndex((L) => L === E(O));
5945
5948
  }
5946
5949
  function F() {
5947
5950
  C().forEach((L) => {
5948
5951
  L.checked = !1;
5949
- }), t.getSelectionItems(i.value).forEach((L) => {
5952
+ }), t.getSelectionItems(r.value).forEach((L) => {
5950
5953
  L.__fv_checked__ = !1;
5951
- }), i.value = [];
5954
+ }), r.value = [];
5952
5955
  }
5953
5956
  function N(O) {
5954
5957
  const R = O.raw;
5955
5958
  R.__fv_checked__ = !0, R.__fv_indeterminate__ = !1;
5956
- const L = new Set(i.value);
5957
- L.add(R[s.value]), i.value = Array.from(L.values()), O.checked = !0, O.indeterminate = !1, l.value = O.raw[s.value];
5959
+ const L = new Set(r.value);
5960
+ L.add(R[s.value]), r.value = Array.from(L.values()), O.checked = !0, O.indeterminate = !1, l.value = O.raw[s.value];
5958
5961
  }
5959
5962
  function V(O) {
5960
5963
  const R = O.raw;
5961
- R.__fv_checked__ = !1, R.__fv_indeterminate__ = !1, i.value = i.value.filter((L) => L !== R[s.value]), O.checked = !1, O.indeterminate = !1, l.value = "";
5964
+ R.__fv_checked__ = !1, R.__fv_indeterminate__ = !1, r.value = r.value.filter((L) => L !== R[s.value]), O.checked = !1, O.indeterminate = !1, l.value = "";
5962
5965
  }
5963
5966
  function k(O) {
5964
5967
  const R = O.raw;
5965
- R.__fv_checked__ = !1, R.__fv_indeterminate__ = !0, i.value = i.value.filter((L) => L !== R[s.value]), O.checked = !1, O.indeterminate = !0;
5968
+ R.__fv_checked__ = !1, R.__fv_indeterminate__ = !0, r.value = r.value.filter((L) => L !== R[s.value]), O.checked = !1, O.indeterminate = !0;
5966
5969
  }
5967
- function r(O) {
5970
+ function i(O) {
5968
5971
  b.value && F(), O.checked ? V(O) : N(O), T();
5969
5972
  }
5970
5973
  function w(O) {
@@ -5978,7 +5981,7 @@ function Al(e, t, n, o, a) {
5978
5981
  o.value.forEach((O) => N(O)), T();
5979
5982
  }
5980
5983
  function I() {
5981
- i.value.splice(0, i.value.length), l.value = "", o.value.forEach((O) => {
5984
+ r.value.splice(0, r.value.length), l.value = "", o.value.forEach((O) => {
5982
5985
  const R = O.raw;
5983
5986
  R.__fv_checked__ = !1, R.__fv_indeterminate__ = !1, O.checked = !1, O.indeterminate = !1;
5984
5987
  }), T();
@@ -6002,17 +6005,17 @@ function Al(e, t, n, o, a) {
6002
6005
  multiSelectOnlyOnCheck: f,
6003
6006
  select: N,
6004
6007
  selectAll: P,
6005
- selectedValues: i,
6008
+ selectedValues: r,
6006
6009
  selectItem: w,
6007
6010
  selectItemById: B,
6008
6011
  showCheckBox: d,
6009
6012
  showSelectAll: h,
6010
- toggleSelectItem: r,
6013
+ toggleSelectItem: i,
6011
6014
  unSelect: V,
6012
6015
  unSelectAll: I
6013
6016
  };
6014
6017
  }
6015
- function Ll(e) {
6018
+ function Hl(e) {
6016
6019
  var u, y, v, d;
6017
6020
  const t = $(() => {
6018
6021
  var h;
@@ -6024,7 +6027,7 @@ function Ll(e) {
6024
6027
  return X(() => {
6025
6028
  var h;
6026
6029
  return (h = e.pagination) == null ? void 0 : h.sizeLimits;
6027
- }, (h, i) => {
6030
+ }, (h, r) => {
6028
6031
  a.value = h;
6029
6032
  }, {
6030
6033
  immediate: !0,
@@ -6038,16 +6041,16 @@ function Ll(e) {
6038
6041
  mode: l
6039
6042
  };
6040
6043
  }
6041
- function Hl(e) {
6044
+ function zl(e) {
6042
6045
  const t = "parent", n = "layer", o = "hasChildren", a = (s, l = 1, u = [], y = null) => (s = s || [], s.reduce((v, d) => (d.id = d.id || d.data[e.idField], d.data[t] = y, d.data[n] = l, d.data[o] = !1, v.push(d.data), d.children && d.children.length && (d.data[o] = !0, a(d.children, l + 1, u, d.id)), v), u), u);
6043
6046
  return { flatTreeData: a };
6044
6047
  }
6045
- const zl = /* @__PURE__ */ te({
6048
+ const Gl = /* @__PURE__ */ te({
6046
6049
  name: "FListViewDesign",
6047
6050
  props: je,
6048
6051
  emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
6049
6052
  setup(e, t) {
6050
- const n = p(), o = p(!0), a = p(!1), s = p([]), l = 0, u = p(e.columns), y = Rl(e), v = Bl(e), d = At(e, y), h = Ll(e), i = Ol(e, /* @__PURE__ */ new Map(), v, y, h), D = Al(e, i, y, s, t), C = Ft(e, n), g = p(), S = Fe("design-item-context"), f = lt(g, S), m = $(() => i.dataView.value.length), x = $l(e, y), T = ns(), _ = Dl(e, {}, T), b = jl(e, x, v, y, T, _), E = Nl(e, y, _, b), j = Pl(e, y, _, b), F = Ml(e, u, i, m, l, b, E, j), {
6053
+ const n = p(), o = p(!0), a = p(!1), s = p([]), l = 0, u = p(e.columns), y = Al(e), v = Ml(e), d = At(e, y), h = Hl(e), r = Bl(e, /* @__PURE__ */ new Map(), v, y, h), D = Ll(e, r, y, s, t), C = Ft(e, n), g = p(), S = Fe("design-item-context"), f = lt(g, S), m = $(() => r.dataView.value.length), x = Rl(e, y), T = os(), _ = jl(e, {}, T), b = Nl(e, x, v, y, T, _), E = Pl(e, y, _, b), j = $l(e, y, _, b), F = Dl(e, u, r, m, l, b, E, j), {
6051
6054
  getVisualData: N
6052
6055
  } = F;
6053
6056
  s.value = N(0, m.value + l - 1), de(() => {
@@ -6060,14 +6063,14 @@ const zl = /* @__PURE__ */ te({
6060
6063
  };
6061
6064
  return e.size !== "default" && (M[`${e.size}-item`] = !0), M;
6062
6065
  }), k = $(() => !!t.slots.footer || o.value);
6063
- function r() {
6066
+ function i() {
6064
6067
  return e.header === "SearchBar" ? Me : e.header === "ContentHeader" ? kt : Me;
6065
6068
  }
6066
- const w = r(), {
6069
+ const w = i(), {
6067
6070
  renderHeader: B
6068
6071
  } = w(e, t, C), {
6069
6072
  renderListArea: P
6070
- } = Tt(e, t, s, i, d, D, F);
6073
+ } = Tt(e, t, s, r, d, D, F);
6071
6074
  function I(M) {
6072
6075
  e.multiSelect && (M.preventDefault(), M.stopPropagation());
6073
6076
  }
@@ -6161,7 +6164,7 @@ const zl = /* @__PURE__ */ te({
6161
6164
  }, [s.date])])])])]))]);
6162
6165
  };
6163
6166
  }
6164
- }), Gl = "https://json-schema.org/draft/2020-12/schema", ql = "https://farris-design.gitee.io/list-view-table.schema.json", Wl = "list-view-table", Ul = "A Farris Component", Kl = "object", Yl = {
6167
+ }), ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-design.gitee.io/list-view-table.schema.json", Ul = "list-view-table", Kl = "A Farris Component", Yl = "object", Xl = {
6165
6168
  id: {
6166
6169
  description: "The unique identifier for list-view-table",
6167
6170
  type: "string"
@@ -6223,18 +6226,18 @@ const zl = /* @__PURE__ */ te({
6223
6226
  type: "boolean",
6224
6227
  default: !0
6225
6228
  }
6226
- }, Xl = [
6229
+ }, Jl = [
6227
6230
  "id",
6228
6231
  "type"
6229
- ], Jl = {
6230
- $schema: Gl,
6231
- $id: ql,
6232
- title: Wl,
6233
- description: Ul,
6234
- type: Kl,
6235
- properties: Yl,
6236
- required: Xl
6237
- }, Ql = "list-view-table", Zl = "A Farris Component", ei = "object", ti = {
6232
+ ], Ql = {
6233
+ $schema: ql,
6234
+ $id: Wl,
6235
+ title: Ul,
6236
+ description: Kl,
6237
+ type: Yl,
6238
+ properties: Xl,
6239
+ required: Jl
6240
+ }, Zl = "list-view-table", er = "A Farris Component", tr = "object", nr = {
6238
6241
  basic: {
6239
6242
  description: "Basic Infomation",
6240
6243
  title: "基本信息",
@@ -6256,14 +6259,14 @@ const zl = /* @__PURE__ */ te({
6256
6259
  }
6257
6260
  }
6258
6261
  }
6259
- }, ni = {
6260
- title: Ql,
6261
- description: Zl,
6262
- type: ei,
6263
- categories: ti
6262
+ }, or = {
6263
+ title: Zl,
6264
+ description: er,
6265
+ type: tr,
6266
+ categories: nr
6264
6267
  }, Ht = {
6265
6268
  data: { type: Array, default: [] }
6266
- }, zt = _e(Ht, Jl, _t, St, ni), oi = /* @__PURE__ */ te({
6269
+ }, zt = _e(Ht, Ql, _t, St, or), ar = /* @__PURE__ */ te({
6267
6270
  name: "FListViewTableDesign",
6268
6271
  props: Ht,
6269
6272
  emits: ["outputValue", "currentEvent", "selectionChanged"],
@@ -6365,9 +6368,9 @@ Ce.register = (e, t, n) => {
6365
6368
  e["list-view"] = Ce, t["list-view"] = xt, e["list-view-table"] = tt, t["list-view-table"] = zt;
6366
6369
  };
6367
6370
  Ce.registerDesigner = (e, t, n) => {
6368
- e["list-view"] = zl, t["list-view"] = xt, e["list-view-table"] = oi, t["list-view-table"] = zt;
6371
+ e["list-view"] = Gl, t["list-view"] = xt, e["list-view-table"] = ar, t["list-view-table"] = zt;
6369
6372
  };
6370
- const ai = /* @__PURE__ */ te({
6373
+ const sr = /* @__PURE__ */ te({
6371
6374
  name: "FImportExteranlSchema",
6372
6375
  emits: ["close", "submit"],
6373
6376
  setup(e, t) {
@@ -6404,7 +6407,7 @@ const ai = /* @__PURE__ */ te({
6404
6407
  }, [ae("确认")])])])])]);
6405
6408
  }
6406
6409
  function l() {
6407
- ja.show({
6410
+ Na.show({
6408
6411
  title: "Settings",
6409
6412
  width: 800,
6410
6413
  showButtons: !1,
@@ -6424,13 +6427,13 @@ const ai = /* @__PURE__ */ te({
6424
6427
  class: "f-import-exteranl-component-button-center"
6425
6428
  }, [ae("引入组件")])])]);
6426
6429
  }
6427
- }), si = /* @__PURE__ */ te({
6430
+ }), lr = /* @__PURE__ */ te({
6428
6431
  name: "FExternalContainerDesign",
6429
6432
  props: st,
6430
6433
  emits: [],
6431
6434
  setup(e, t) {
6432
6435
  var h;
6433
- const n = p(), o = Fe("design-item-context"), a = Sa(o.schema, (h = o.parent) == null ? void 0 : h.schema), s = lt(n, o, a);
6436
+ const n = p(), o = Fe("design-item-context"), a = xa(o.schema, (h = o.parent) == null ? void 0 : h.schema), s = lt(n, o, a);
6434
6437
  de(() => {
6435
6438
  n.value.componentInstance = s;
6436
6439
  }), t.expose(s.value);
@@ -6438,14 +6441,14 @@ const ai = /* @__PURE__ */ te({
6438
6441
  function y() {
6439
6442
  return c(Ze, {
6440
6443
  modelValue: l.value,
6441
- "onUpdate:modelValue": (i) => l.value = i
6444
+ "onUpdate:modelValue": (r) => l.value = r
6442
6445
  }, null);
6443
6446
  }
6444
- function v(i) {
6445
- l.value = Va;
6447
+ function v(r) {
6448
+ l.value = Ea;
6446
6449
  }
6447
6450
  function d() {
6448
- return c(ai, {
6451
+ return c(sr, {
6449
6452
  onSubmit: v
6450
6453
  }, null);
6451
6454
  }
@@ -6455,7 +6458,7 @@ const ai = /* @__PURE__ */ te({
6455
6458
  "data-dragref": `${o.schema.id}-container`
6456
6459
  }, [u.value ? d() : y()]);
6457
6460
  }
6458
- }), yr = {
6461
+ }), Ci = {
6459
6462
  install(e) {
6460
6463
  e.component(We.name, We);
6461
6464
  },
@@ -6463,13 +6466,13 @@ const ai = /* @__PURE__ */ te({
6463
6466
  e["external-container"] = We, t["external-container"] = ut;
6464
6467
  },
6465
6468
  registerDesigner(e, t) {
6466
- e["external-container"] = si, t["external-container"] = ut;
6469
+ e["external-container"] = lr, t["external-container"] = ut;
6467
6470
  }
6468
6471
  };
6469
6472
  export {
6470
6473
  We as FExternalContainer,
6471
- si as FExternalContainerDesign,
6472
- yr as default,
6474
+ lr as FExternalContainerDesign,
6475
+ Ci as default,
6473
6476
  st as externalContainerProps,
6474
6477
  ut as propsResolver
6475
6478
  };