@farris/ui-vue 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/components/batch-editor/index.esm.js +7332 -7299
  2. package/components/batch-editor/index.umd.cjs +22 -22
  3. package/components/button/index.esm.js +7334 -7301
  4. package/components/button/index.umd.cjs +22 -22
  5. package/components/component/index.esm.js +880 -874
  6. package/components/component/index.umd.cjs +2 -2
  7. package/components/data-grid/index.esm.js +841 -835
  8. package/components/data-grid/index.umd.cjs +2 -2
  9. package/components/data-view/index.esm.js +14551 -14472
  10. package/components/data-view/index.umd.cjs +27 -27
  11. package/components/designer-canvas/index.esm.js +820 -814
  12. package/components/designer-canvas/index.umd.cjs +1 -1
  13. package/components/mapping-editor/index.esm.js +848 -842
  14. package/components/mapping-editor/index.umd.cjs +2 -2
  15. package/components/popover/index.esm.js +264 -243
  16. package/components/popover/index.umd.cjs +1 -1
  17. package/components/tree-grid/index.esm.js +315 -309
  18. package/components/tree-grid/index.umd.cjs +1 -1
  19. package/designer/data-grid/index.esm.js +8304 -8257
  20. package/designer/data-grid/index.umd.cjs +26 -26
  21. package/designer/farris-designer.all.esm.js +3235 -3223
  22. package/designer/farris-designer.all.umd.cjs +14 -14
  23. package/designer/radio-group/index.esm.js +80 -62
  24. package/designer/radio-group/index.umd.cjs +2 -2
  25. package/designer/tabs/index.esm.js +830 -824
  26. package/designer/tabs/index.umd.cjs +2 -2
  27. package/designer/tree-grid/index.esm.js +348 -342
  28. package/designer/tree-grid/index.umd.cjs +1 -1
  29. package/farris.all.esm.js +18917 -18820
  30. package/farris.all.umd.cjs +39 -39
  31. package/package.json +1 -1
  32. package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
  33. package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
  34. package/types/data-view/composition/column/use-resize.d.ts +3 -2
  35. package/types/data-view/index.d.ts +1 -0
  36. package/types/popover/src/composition/measure-host.d.ts +10 -5
  37. package/types/popover/src/composition/types.d.ts +2 -2
  38. package/types/popover/src/composition/use-host.d.ts +1 -2
  39. package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
  40. package/package.zip +0 -0
@@ -1,24 +1,24 @@
1
- var no = Object.defineProperty;
2
- var oo = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Ae = (e, t, n) => oo(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as f, onMounted as ot, defineComponent as Ge, computed as E, createVNode as l, Teleport as Xt, createApp as Pt, onUnmounted as vt, Fragment as Be, watch as ce, nextTick as nt, onBeforeMount as ao, watchEffect as lo, Transition as Jt, shallowRef as io, render as kt, h as ro, cloneVNode as uo, mergeProps as wt, inject as pt, withDirectives as Zt, vShow as so, createTextVNode as Pe, onUpdated as co, onBeforeUnmount as fo, reactive as Se, isVNode as Dt, Comment as Qt, provide as mo, getCurrentInstance as Kt, vModelCheckbox as vo } from "vue";
5
- import { LocaleService as We } from "../locale/index.esm.js";
6
- import { isMobilePhone as ft, getMaxZIndex as Ut, useGuid as go, withInstall as en, useCommonUtils as tn, resolveField as ho, getCustomClass as po } from "../common/index.esm.js";
1
+ var ao = Object.defineProperty;
2
+ var lo = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Ve = (e, t, n) => lo(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as f, onMounted as nt, defineComponent as We, computed as E, createVNode as l, Teleport as Jt, createApp as Dt, onUnmounted as vt, Fragment as Fe, watch as ce, nextTick as tt, onBeforeMount as io, watchEffect as ro, Transition as Zt, shallowRef as uo, render as Mt, h as so, cloneVNode as co, mergeProps as St, inject as bt, withDirectives as Qt, vShow as fo, createTextVNode as Pe, onUpdated as mo, onBeforeUnmount as vo, reactive as Te, isVNode as Rt, Comment as Kt, provide as go, getCurrentInstance as en, vModelCheckbox as ho } from "vue";
5
+ import { LocaleService as Ae } from "../locale/index.esm.js";
6
+ import { isMobilePhone as ft, getMaxZIndex as qt, useGuid as po, withInstall as tn, useCommonUtils as nn, resolveField as yo, getCustomClass as bo } from "../common/index.esm.js";
7
7
  import "../property-panel/index.esm.js";
8
- import { FButton as qt } from "../button/index.esm.js";
8
+ import { FButton as Yt } from "../button/index.esm.js";
9
9
  import "../field-selector/index.esm.js";
10
10
  import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
11
- import yo from "../tags/index.esm.js";
12
- import { debounce as nn, isPlainObject as Yt, cloneDeep as Ot } from "lodash-es";
13
- import { useInputExpand as bo } from "../common/index.esm.js/text-box/use-input-expand";
14
- import Co from "../popover/index.esm.js";
15
- import on from "../drawer/index.esm.js";
16
- import { useResizeObserver as wo } from "@vueuse/core";
17
- import { SETTING_COLUMN_FIELD as xo, COMMAND_COLUMN_FIELD as So, CellMode as an, SETTING_COLUMN_DATA_TYPE as rt, COMMAND_COLUMN_DATA_TYPE as ut, useScreen as To, useIdentify as Bo, useGroupData as Fo, useFilter as ko, useHierarchy as Mo, useLoading as Oo, useDataView as Eo, usePagination as Io, useSelection as Po, useDataViewContainerStyle as Do, useCommandColumn as Ro, useSettingColumn as No, useColumn as jo, useSort as Ho, useGroupColumn as zo, useRow as Lo, useEdit as Vo, useVisualDataBound as Ao, useVisualDataCell as Wo, useVisualDataRow as Go, useVisualGroupRow as _o, useVisualSummaryRow as $o, useVisualData as Uo, useCellContentStyle as qo, useCellPosition as Yo, useSidebar as Xo, useVirtualScroll as Jo, useFitColumn as Zo, useFilterHistory as Qo, useColumnFilter as Ko, useDragColumn as ea, getColumnHeader as ta, getPagination as na, getSidebar as oa, getDisableMask as aa, getSummary as la, getHorizontalScrollbar as ia, getVerticalScrollbar as ra, getFilterPanel as ua, getGroupPanel as sa, useAdapt as ca, useNavigation as da, getEmpty as fa, ColumnSettingSolution as ma, refreshScrollAfterDataSourceLoad as va } from "../data-view/index.esm.js";
18
- import ga, { FDynamicForm as ha, FDynamicFormLabel as pa } from "../dynamic-form/index.esm.js";
11
+ import Co from "../tags/index.esm.js";
12
+ import { debounce as on, isPlainObject as Xt, cloneDeep as Et } from "lodash-es";
13
+ import { useInputExpand as wo } from "../common/index.esm.js/text-box/use-input-expand";
14
+ import xo from "../popover/index.esm.js";
15
+ import an from "../drawer/index.esm.js";
16
+ import { useResizeObserver as So } from "@vueuse/core";
17
+ import { SETTING_COLUMN_FIELD as To, COMMAND_COLUMN_FIELD as Bo, CellMode as ln, SETTING_COLUMN_DATA_TYPE as rt, COMMAND_COLUMN_DATA_TYPE as ut, useScreen as Fo, useIdentify as ko, useGroupData as Mo, useFilter as Oo, useHierarchy as Eo, useLoading as Io, useDataView as Po, usePagination as Do, useSelection as Ro, useDataViewContainerStyle as No, useCommandColumn as jo, useSettingColumn as Ho, useColumn as zo, useSort as Lo, useGroupColumn as Vo, useRow as Ao, useEdit as Wo, useVisualDataBound as Go, useVisualDataCell as _o, useVisualDataRow as $o, useVisualGroupRow as Uo, useVisualSummaryRow as qo, useVisualData as Yo, useCellContentStyle as Xo, useCellPosition as Jo, useSidebar as Zo, useVirtualScroll as Qo, useFitColumn as Ko, useFilterHistory as ea, useColumnFilter as ta, useDragColumn as na, getColumnHeader as oa, getPagination as aa, getSidebar as la, getDisableMask as ia, getSummary as ra, getHorizontalScrollbar as ua, getVerticalScrollbar as sa, getFilterPanel as ca, getGroupPanel as da, useAdapt as fa, useNavigation as ma, getEmpty as va, ColumnSettingSolution as ga, refreshScrollAfterDataSourceLoad as ha } from "../data-view/index.esm.js";
18
+ import pa, { FDynamicForm as ya, FDynamicFormLabel as ba } from "../dynamic-form/index.esm.js";
19
19
  import "bignumber.js";
20
- import { createPropsResolver as ya } from "../dynamic-resolver/index.esm.js";
21
- const ba = {
20
+ import { createPropsResolver as Ca } from "../dynamic-resolver/index.esm.js";
21
+ const wa = {
22
22
  /**
23
23
  * 标记组件的唯一标识
24
24
  */
@@ -189,23 +189,23 @@ const ba = {
189
189
  * 扩展按钮是否禁用
190
190
  */
191
191
  expandDisabled: { type: Boolean, default: !1 }
192
- }, Ca = {
192
+ }, xa = {
193
193
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
194
194
  host: { type: Object },
195
195
  backgroundColor: { type: String, default: "" }
196
196
  };
197
- function wa() {
197
+ function Sa() {
198
198
  const e = f(!1);
199
- return ot(() => {
199
+ return nt(() => {
200
200
  e.value = !0;
201
201
  }), e;
202
202
  }
203
- const xa = /* @__PURE__ */ Ge({
203
+ const Ta = /* @__PURE__ */ We({
204
204
  name: "FOverlay",
205
- props: Ca,
205
+ props: xa,
206
206
  emits: ["click"],
207
207
  setup(e, t) {
208
- const n = f(e.popupContentPosition), o = f(e.host), a = wa(), i = E(() => ({
208
+ const n = f(e.popupContentPosition), o = f(e.host), a = Sa(), i = E(() => ({
209
209
  backgroundColor: e.backgroundColor || "",
210
210
  pointerEvents: "auto"
211
211
  }));
@@ -232,7 +232,7 @@ const xa = /* @__PURE__ */ Ge({
232
232
  // left: `${position.value.left}px`,
233
233
  // top: `${position.value.top}px`
234
234
  }));
235
- return () => a.value ? l(Xt, {
235
+ return () => a.value ? l(Jt, {
236
236
  to: "body"
237
237
  }, {
238
238
  default: () => {
@@ -248,13 +248,13 @@ const xa = /* @__PURE__ */ Ge({
248
248
  }) : null;
249
249
  }
250
250
  });
251
- function Sa(e) {
251
+ function Ba(e) {
252
252
  if (e.content && e.content.render)
253
253
  return e.content.render;
254
254
  if (e.render && typeof e.render == "function")
255
255
  return e.render;
256
256
  }
257
- function Ta(e) {
257
+ function Fa(e) {
258
258
  const t = document.createElement("div");
259
259
  t.style.display = "contents";
260
260
  let n;
@@ -262,13 +262,13 @@ function Ta(e) {
262
262
  }), a = () => {
263
263
  o(), n && n.unmount();
264
264
  };
265
- return n = Pt({
265
+ return n = Dt({
266
266
  setup() {
267
267
  vt(() => {
268
268
  document.body.removeChild(t);
269
269
  });
270
- const i = Sa(e);
271
- return () => l(xa, {
270
+ const i = Ba(e);
271
+ return () => l(Ta, {
272
272
  "popup-content-position": e.popupPosition,
273
273
  host: e.host,
274
274
  onClick: a,
@@ -279,12 +279,12 @@ function Ta(e) {
279
279
  }
280
280
  }), document.body.appendChild(t), n.mount(t), n;
281
281
  }
282
- class Ba {
282
+ class ka {
283
283
  static show(t) {
284
- return Ta(t);
284
+ return Fa(t);
285
285
  }
286
286
  }
287
- const Fa = {
287
+ const Ma = {
288
288
  /**
289
289
  * 允许点击蒙层关闭对话框
290
290
  * @default false
@@ -483,12 +483,12 @@ class ye {
483
483
  return this.x = t.x, this.y = t.y, this;
484
484
  }
485
485
  }
486
- class tt {
486
+ class et {
487
487
  constructor(t, n) {
488
488
  this.width = t, this.height = n;
489
489
  }
490
490
  static getCurrent(t) {
491
- const n = new tt(0, 0);
491
+ const n = new et(0, 0);
492
492
  if (window) {
493
493
  const o = window.getComputedStyle(t);
494
494
  return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
@@ -496,13 +496,13 @@ class tt {
496
496
  return null;
497
497
  }
498
498
  static copy(t) {
499
- return new tt(0, 0).set(t);
499
+ return new et(0, 0).set(t);
500
500
  }
501
501
  set(t) {
502
502
  return this.width = t.width, this.height = t.height, this;
503
503
  }
504
504
  }
505
- function ka(e, t) {
505
+ function Oa(e, t) {
506
506
  const n = f(), o = f(), a = f(), i = f(), s = f(), b = f(), m = f(), h = f(), p = f(), u = f(), T = f(), c = f(e.resizeable), d = f(), v = f(e.draggable), S = f(!1);
507
507
  function x() {
508
508
  const g = o.value || document.body, F = window.getComputedStyle(g);
@@ -515,7 +515,7 @@ function ka(e, t) {
515
515
  }
516
516
  function B(g) {
517
517
  if (n.value) {
518
- i.value = tt.getCurrent(n.value), s.value = ye.getCurrent(n.value), b.value = i.value ? tt.copy(i.value) : null, m.value = s.value ? ye.copy(s.value) : null, x();
518
+ i.value = et.getCurrent(n.value), s.value = ye.getCurrent(n.value), b.value = i.value ? et.copy(i.value) : null, m.value = s.value ? ye.copy(s.value) : null, x();
519
519
  const F = g.target.getAttribute("type") || "";
520
520
  h.value = {
521
521
  n: !!F.match(/n/),
@@ -589,47 +589,47 @@ function ka(e, t) {
589
589
  function k() {
590
590
  document.addEventListener("mousemove", I), document.addEventListener("mouseup", P);
591
591
  }
592
- function N(g) {
592
+ function j(g) {
593
593
  g instanceof MouseEvent && g.button === 2 || v.value && (document.body.click(), g.stopPropagation(), g.preventDefault(), a.value = ye.fromEvent(g), p.value = g.target, B(g), k());
594
594
  }
595
- function X(g) {
596
- return n.value = g, c.value && l(Be, null, [l("div", {
595
+ function J(g) {
596
+ return n.value = g, c.value && l(Fe, null, [l("div", {
597
597
  class: "fv-resizable-handle fv-resizable-n",
598
598
  type: "n",
599
- onMousedown: (F) => N(F)
599
+ onMousedown: (F) => j(F)
600
600
  }, null), l("div", {
601
601
  class: "fv-resizable-handle fv-resizable-e",
602
602
  type: "e",
603
- onMousedown: (F) => N(F)
603
+ onMousedown: (F) => j(F)
604
604
  }, null), l("div", {
605
605
  class: "fv-resizable-handle fv-resizable-s",
606
606
  type: "s",
607
- onMousedown: (F) => N(F)
607
+ onMousedown: (F) => j(F)
608
608
  }, null), l("div", {
609
609
  class: "fv-resizable-handle fv-resizable-w",
610
610
  type: "w",
611
- onMousedown: (F) => N(F)
611
+ onMousedown: (F) => j(F)
612
612
  }, null), l("div", {
613
613
  class: "fv-resizable-handle fv-resizable-ne",
614
614
  type: "ne",
615
- onMousedown: (F) => N(F)
615
+ onMousedown: (F) => j(F)
616
616
  }, null), l("div", {
617
617
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
618
618
  type: "se",
619
- onMousedown: (F) => N(F)
619
+ onMousedown: (F) => j(F)
620
620
  }, null), l("div", {
621
621
  class: "fv-resizable-handle fv-resizable-sw",
622
622
  type: "sw",
623
- onMousedown: (F) => N(F)
623
+ onMousedown: (F) => j(F)
624
624
  }, null), l("div", {
625
625
  class: "fv-resizable-handle fv-resizable-nw",
626
626
  type: "nw",
627
- onMousedown: (F) => N(F)
627
+ onMousedown: (F) => j(F)
628
628
  }, null)]);
629
629
  }
630
630
  function $(g = !0) {
631
631
  document.body.click();
632
- const F = o.value || document.body, D = tt.getCurrent(F), V = n.value;
632
+ const F = o.value || document.body, D = et.getCurrent(F), V = n.value;
633
633
  g && V && (d.value = O(), d.value.transform = V.style.transform), D && V && (b.value = D, b.value.height -= 14, b.value.width -= 14, V.style.height = b.value.height + "px", V.style.width = b.value.width + "px", V.style.left = "7px", V.style.top = "7px", V.style.transform = "", T.value = {
634
634
  size: b.value,
635
635
  position: {
@@ -658,7 +658,7 @@ function ka(e, t) {
658
658
  }
659
659
  function ue() {
660
660
  if (n.value) {
661
- const g = tt.getCurrent(n.value);
661
+ const g = et.getCurrent(n.value);
662
662
  if (g) {
663
663
  const {
664
664
  width: F,
@@ -678,7 +678,7 @@ function ka(e, t) {
678
678
  }
679
679
  const L = ae();
680
680
  return {
681
- renderResizeBar: X,
681
+ renderResizeBar: J,
682
682
  boundingElement: o,
683
683
  resizedEventParam: T,
684
684
  maximize: $,
@@ -689,7 +689,7 @@ function ka(e, t) {
689
689
  moveToCenter: ue
690
690
  };
691
691
  }
692
- function Ma(e, t, n) {
692
+ function Ea(e, t, n) {
693
693
  const o = f(), a = f(e.draggable), i = f(e.lockAxis), s = f(), b = f(), m = f(!1), h = f(new ye(0, 0)), p = f(new ye(0, 0)), u = f(new ye(0, 0)), T = f(new ye(0, 0));
694
694
  ce(() => n.value, (I) => {
695
695
  s.value.style.cursor = I ? "move" : "default";
@@ -705,9 +705,9 @@ function Ma(e, t, n) {
705
705
  return !1;
706
706
  }
707
707
  function d() {
708
- var k, N;
708
+ var k, j;
709
709
  let I = u.value.x + p.value.x, O = u.value.y + p.value.y;
710
- i.value === "x" ? (I = ((k = h.value) == null ? void 0 : k.x) || 0, u.value.x = 0) : i.value === "y" && (O = ((N = h.value) == null ? void 0 : N.y) || 0, u.value.y = 0);
710
+ i.value === "x" ? (I = ((k = h.value) == null ? void 0 : k.x) || 0, u.value.x = 0) : i.value === "y" && (O = ((j = h.value) == null ? void 0 : j.y) || 0, u.value.y = 0);
711
711
  const P = `translate3d(${Math.round(I)}px, ${Math.round(O)}px, 0px)`;
712
712
  o.value && (o.value.style.transform = P), T.value.x = I, T.value.y = O;
713
713
  }
@@ -775,7 +775,7 @@ function Ma(e, t, n) {
775
775
  resetTranslate: G
776
776
  };
777
777
  }
778
- function ln(e, t) {
778
+ function rn(e, t) {
779
779
  if (e) {
780
780
  const n = (o) => {
781
781
  o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
@@ -785,31 +785,31 @@ function ln(e, t) {
785
785
  };
786
786
  }
787
787
  }
788
- function Oa(e, t) {
788
+ function Ia(e, t) {
789
789
  const n = f(e.enableEsc);
790
790
  let o = null;
791
- return n.value ? (o = ln("Escape", (a) => {
791
+ return n.value ? (o = rn("Escape", (a) => {
792
792
  t.emit("esc", { event: a.event, type: "esc" });
793
793
  }), {
794
794
  remove: o
795
795
  }) : null;
796
796
  }
797
- function Ea(e, t) {
797
+ function Pa(e, t) {
798
798
  const n = f(e.enableEnter);
799
799
  let o = null;
800
- return n.value ? (o = ln("Enter", (a) => {
800
+ return n.value ? (o = rn("Enter", (a) => {
801
801
  t.emit("enter", { event: a.event, type: "enter" });
802
802
  }), {
803
803
  remove: o
804
804
  }) : null;
805
805
  }
806
- const ct = /* @__PURE__ */ Ge({
806
+ const ct = /* @__PURE__ */ We({
807
807
  name: "FModal",
808
- props: Fa,
808
+ props: Ma,
809
809
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
810
810
  setup(e, t) {
811
811
  const n = f(e.width || 300), o = f(e.height || 200), a = f(e.modelValue), i = f(""), s = f(e.class), b = f(e.fitContent), m = f(e.showHeader), h = f(""), p = f(e.showCloseButton), u = f(e.showMaxButton), T = f(!1), c = f(e.dialogType), d = f(e.src), v = f(""), S = f(e.showButtons), x = f(e.title), B = f(e.containment || null), z = f();
812
- x.value === "错误提示" && (x.value = We.getLocaleValue("messageBox.errorTitle"));
812
+ x.value === "错误提示" && (x.value = Ae.getLocaleValue("messageBox.errorTitle"));
813
813
  const G = f(!1);
814
814
  function W() {
815
815
  const w = document.querySelectorAll(".farris-modal").length;
@@ -828,19 +828,19 @@ const ct = /* @__PURE__ */ Ge({
828
828
  }
829
829
  const I = [{
830
830
  name: "cancel",
831
- text: We.getLocaleValue("messageBox.cancel") || "取消",
831
+ text: Ae.getLocaleValue("messageBox.cancel") || "取消",
832
832
  class: "btn btn-secondary",
833
833
  handle: (w) => {
834
834
  A(w, !1);
835
835
  }
836
836
  }, {
837
837
  name: "accept",
838
- text: We.getLocaleValue("messageBox.ok") || "确定",
838
+ text: Ae.getLocaleValue("messageBox.ok") || "确定",
839
839
  class: "btn btn-primary",
840
840
  handle: (w) => {
841
841
  A(w, !0);
842
842
  }
843
- }], O = f(e.buttons && e.buttons.length ? e.buttons : I), P = E(() => !!h.value), k = E(() => !!S.value && !!O.value), N = f(), X = f(), $ = f(e.maximized || !1), {
843
+ }], O = f(e.buttons && e.buttons.length ? e.buttons : I), P = E(() => !!h.value), k = E(() => !!S.value && !!O.value), j = f(), J = f(), $ = f(e.maximized || !1), {
844
844
  renderResizeBar: se,
845
845
  maximize: ue,
846
846
  restore: ae,
@@ -849,17 +849,17 @@ const ct = /* @__PURE__ */ Ge({
849
849
  allowDrag: F,
850
850
  unWindowResizeHandle: D,
851
851
  moveToCenter: V
852
- } = ka(e), {
852
+ } = Oa(e), {
853
853
  registerDraggle: Q
854
- } = Ma(e, t, F);
854
+ } = Ea(e, t, F);
855
855
  function ie() {
856
856
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
857
857
  }
858
858
  ce(() => e.title, (w, _) => {
859
859
  w !== _ && (x.value = w);
860
860
  }), ce(() => e.modelValue, (w, _) => {
861
- w !== _ && (a.value = w, a.value && e.draggable && nt(() => {
862
- X.value && !B.value && (B.value = X.value.parentElement, L.value = B.value, Q(N.value, X.value, L.value), V());
861
+ w !== _ && (a.value = w, a.value && e.draggable && tt(() => {
862
+ J.value && !B.value && (B.value = J.value.parentElement, L.value = B.value, Q(j.value, J.value, L.value), V());
863
863
  }), w || (B.value && (B.value = null), W())), a.value ? G.value = ie() : ($.value = !1, F.value = e.draggable);
864
864
  }), ce(() => e.showHeader, (w, _) => {
865
865
  w !== _ && (m.value = w);
@@ -887,14 +887,14 @@ const ct = /* @__PURE__ */ Ge({
887
887
  };
888
888
  w["f-modal-fitContent"] = !!b.value, w.show = !!he.value;
889
889
  const _ = (ne = e.maskClass) == null ? void 0 : ne.split(" ");
890
- return _ == null || _.reduce((oe, xe) => (oe[xe] = !0, oe), w), w;
891
- }), Ce = E(() => {
890
+ return _ == null || _.reduce((oe, Se) => (oe[Se] = !0, oe), w), w;
891
+ }), be = E(() => {
892
892
  var ne;
893
893
  const w = {
894
894
  "modal-dialog": !0
895
895
  }, _ = (ne = s.value) == null ? void 0 : ne.split(" ");
896
- return _ == null || _.reduce((oe, xe) => (oe[xe] = !0, oe), w), w;
897
- }), ve = () => ft() && !e.isMessager || !!e.fullscreen, Te = E(() => {
896
+ return _ == null || _.reduce((oe, Se) => (oe[Se] = !0, oe), w), w;
897
+ }), ve = () => ft() && !e.isMessager || !!e.fullscreen, Be = E(() => {
898
898
  const w = document.documentElement.clientWidth, _ = document.documentElement.clientHeight;
899
899
  if ($.value)
900
900
  return {
@@ -905,21 +905,21 @@ const ct = /* @__PURE__ */ Ge({
905
905
  height: "100vh",
906
906
  margin: "0"
907
907
  };
908
- const ne = Math.min(n.value, w), oe = e.position === "right" ? "100%" : b.value ? "auto" : `${Math.min(o.value, _ - 10)}px`, xe = `${(window.innerHeight - (oe === "100%" || oe === "auto" ? 0 : parseInt(oe))) / 2}px`, Ke = e.position === "right" ? `${window.innerWidth - ne}px` : `${(window.innerWidth - ne) / 2}px`, y = {
908
+ const ne = Math.min(n.value, w), oe = e.position === "right" ? "100%" : b.value ? "auto" : `${Math.min(o.value, _ - 10)}px`, Se = `${(window.innerHeight - (oe === "100%" || oe === "auto" ? 0 : parseInt(oe))) / 2}px`, Qe = e.position === "right" ? `${window.innerWidth - ne}px` : `${(window.innerWidth - ne) / 2}px`, y = {
909
909
  position: "absolute",
910
- top: xe,
911
- left: Ke,
910
+ top: Se,
911
+ left: Qe,
912
912
  width: ft() ? "auto" : `${ne}px`,
913
913
  height: oe
914
914
  };
915
915
  return e.mask || (y.pointerEvents = "auto"), y;
916
- }), _e = f(Ut() || 1050), Oe = E(() => {
916
+ }), Ge = f(qt() || 1050), Oe = E(() => {
917
917
  const w = {
918
918
  display: "block",
919
919
  overflow: "hidden"
920
920
  };
921
- return e.mask || (w.pointerEvents = "none", w.backgroundColor = "transparent"), G.value && (w.backgroundColor = "transparent"), w.zIndex = _e.value, w;
922
- }), $e = E(() => ({
921
+ return e.mask || (w.pointerEvents = "none", w.backgroundColor = "transparent"), G.value && (w.backgroundColor = "transparent"), w.zIndex = Ge.value, w;
922
+ }), _e = E(() => ({
923
923
  "modal-content": !0,
924
924
  "modal-content-has-header": m.value,
925
925
  "is-mobile": ve()
@@ -928,7 +928,7 @@ const ct = /* @__PURE__ */ Ge({
928
928
  display: m.value ? "" : "none"
929
929
  };
930
930
  return w["pointer-events"] = F.value ? "auto" : "none", w;
931
- }), we = E(() => ({
931
+ }), Ce = E(() => ({
932
932
  "f-icon": !0,
933
933
  modal_maximize: !0,
934
934
  modalrevert: $.value
@@ -937,7 +937,7 @@ const ct = /* @__PURE__ */ Ge({
937
937
  "f-utils-flex-column": c.value === "iframe",
938
938
  "f-utils-fill": !0
939
939
  }));
940
- function Ue() {
940
+ function $e() {
941
941
  return {
942
942
  height: `${e.footerHeight || 60}px`
943
943
  };
@@ -945,7 +945,7 @@ const ct = /* @__PURE__ */ Ge({
945
945
  const De = E(() => {
946
946
  const w = {
947
947
  textAlgin: v.value
948
- }, _ = Ue();
948
+ }, _ = $e();
949
949
  return Object.assign(w, _);
950
950
  });
951
951
  function Re(w) {
@@ -955,25 +955,25 @@ const ct = /* @__PURE__ */ Ge({
955
955
  }
956
956
  ue(), $.value = !0;
957
957
  }
958
- async function at(w, _) {
958
+ async function ot(w, _) {
959
959
  w.handle ? await w.handle(_, w) && t.emit("closed", _) : t.emit("buttonClick", {
960
960
  button: w,
961
961
  $event: _
962
962
  });
963
963
  }
964
- function lt(w) {
964
+ function at(w) {
965
965
  w.width && (n.value = w.width), w.height && (o.value = w.height), w.buttons && (O.value = w.buttons), w.title && (x.value = w.title);
966
966
  }
967
967
  let Ie = null, je = null;
968
- ao(() => {
968
+ io(() => {
969
969
  G.value = ie();
970
- }), ot(() => {
971
- X.value && !B.value && (B.value = X.value.parentElement, L.value = B.value, Q(N.value, X.value, L.value)), he.value && document.body.classList.add("modal-open"), Ie = Oa(e, t), je = Ea(e, t);
970
+ }), nt(() => {
971
+ J.value && !B.value && (B.value = J.value.parentElement, L.value = B.value, Q(j.value, J.value, L.value)), he.value && document.body.classList.add("modal-open"), Ie = Ia(e, t), je = Pa(e, t);
972
972
  }), vt(() => {
973
973
  D && D(), Ie && Ie.remove(), je && je.remove();
974
974
  }), t.expose({
975
- modalElementRef: X,
976
- updateModalOptions: lt,
975
+ modalElementRef: J,
976
+ updateModalOptions: at,
977
977
  close: A,
978
978
  maxDialog: Re,
979
979
  isMaximized: $,
@@ -983,7 +983,7 @@ const ct = /* @__PURE__ */ Ge({
983
983
  });
984
984
  }
985
985
  });
986
- function qe() {
986
+ function Ue() {
987
987
  return l("div", {
988
988
  class: "action-wrapper",
989
989
  onClick: (w) => A(w, !1)
@@ -993,7 +993,7 @@ const ct = /* @__PURE__ */ Ge({
993
993
  class: "f-icon f-icon-close"
994
994
  }, null)])]);
995
995
  }
996
- function Ye() {
996
+ function qe() {
997
997
  return l("ul", null, [T.value && l("li", {
998
998
  class: "f-btn-icon f-bare"
999
999
  }, [l("span", {
@@ -1003,7 +1003,7 @@ const ct = /* @__PURE__ */ Ge({
1003
1003
  class: "f-btn-icon f-bare",
1004
1004
  style: "pointer-events: auto;"
1005
1005
  }, [l("span", {
1006
- class: we.value
1006
+ class: Ce.value
1007
1007
  }, null)]), p.value && l("li", {
1008
1008
  class: "f-btn-icon f-bare",
1009
1009
  onClick: (w) => A(w, !1),
@@ -1017,7 +1017,7 @@ const ct = /* @__PURE__ */ Ge({
1017
1017
  const _ = w.currentTarget, ne = w.deltaY * 0.5;
1018
1018
  _.scrollLeft += ne;
1019
1019
  };
1020
- function Ze() {
1020
+ function Je() {
1021
1021
  return l("div", {
1022
1022
  class: "modal-footer",
1023
1023
  style: De.value
@@ -1033,27 +1033,27 @@ const ct = /* @__PURE__ */ Ge({
1033
1033
  type: "button",
1034
1034
  disabled: _.value,
1035
1035
  class: ne + (w.iconClass ? " btn-icontext" : "") + (w.visible === !1 ? "d-none" : ""),
1036
- onClick: (xe) => {
1037
- at(w, xe);
1036
+ onClick: (Se) => {
1037
+ ot(w, Se);
1038
1038
  }
1039
1039
  }, [!!w.iconClass && l("i", {
1040
1040
  class: w.iconClass
1041
1041
  }, null), w.text]);
1042
1042
  })])]);
1043
1043
  }
1044
- function Xe(w) {
1044
+ function Ye(w) {
1045
1045
  u.value && Re();
1046
1046
  }
1047
1047
  function le() {
1048
- return l(Be, null, [$.value && l("div", {
1048
+ return l(Fe, null, [$.value && l("div", {
1049
1049
  class: "modal-header",
1050
1050
  style: "position: absolute;background: transparent;height: 45px;width: 100%;",
1051
- onDblclick: (w) => Xe()
1051
+ onDblclick: (w) => Ye()
1052
1052
  }, null), l("div", {
1053
- ref: N,
1053
+ ref: j,
1054
1054
  class: "modal-header",
1055
1055
  style: Ee.value,
1056
- onDblclick: (w) => Xe()
1056
+ onDblclick: (w) => Ye()
1057
1057
  }, [t.slots.headerTemplate ? t.slots.headerTemplate() : l("div", {
1058
1058
  class: "modal-title"
1059
1059
  }, [P.value && l("span", {
@@ -1063,12 +1063,12 @@ const ct = /* @__PURE__ */ Ge({
1063
1063
  class: "modal-title-label"
1064
1064
  }, [x.value])]), l("div", {
1065
1065
  class: "actions"
1066
- }, [Ye()])])]);
1066
+ }, [qe()])])]);
1067
1067
  }
1068
- function Qe() {
1069
- return t.slots.footerTemplate ? t.slots.footerTemplate() : k.value && Ze();
1068
+ function Ze() {
1069
+ return t.slots.footerTemplate ? t.slots.footerTemplate() : k.value && Je();
1070
1070
  }
1071
- function Je(w) {
1071
+ function Xe(w) {
1072
1072
  if (w.stopPropagation(), e.allowClickMaskToClose) {
1073
1073
  if (w.target !== z.value)
1074
1074
  return;
@@ -1079,11 +1079,11 @@ const ct = /* @__PURE__ */ Ge({
1079
1079
  var w, _;
1080
1080
  return l("div", {
1081
1081
  id: i.value,
1082
- class: Ce.value,
1083
- style: Te.value,
1084
- ref: X
1085
- }, [e.showFloatingClose && qe(), l("div", {
1086
- class: $e.value
1082
+ class: be.value,
1083
+ style: Be.value,
1084
+ ref: J
1085
+ }, [e.showFloatingClose && Ue(), l("div", {
1086
+ class: _e.value
1087
1087
  }, [m.value && le(), l("div", {
1088
1088
  class: fe.value
1089
1089
  }, [(_ = (w = t.slots).default) == null ? void 0 : _.call(w), c.value === "iframe" && l("iframe", {
@@ -1092,17 +1092,17 @@ const ct = /* @__PURE__ */ Ge({
1092
1092
  width: "100%",
1093
1093
  frameborder: "0",
1094
1094
  src: d.value
1095
- }, null)]), Qe()]), !b.value && X.value && !$.value && se(X.value)]);
1095
+ }, null)]), Ze()]), !b.value && J.value && !$.value && se(J.value)]);
1096
1096
  }
1097
1097
  function Ne(w) {
1098
1098
  return w || "body";
1099
1099
  }
1100
- return lo(() => {
1101
- he.value && (_e.value = Ut() || 1050);
1102
- }), () => l(Xt, {
1100
+ return ro(() => {
1101
+ he.value && (Ge.value = qt() || 1050);
1102
+ }), () => l(Jt, {
1103
1103
  to: Ne(e.host)
1104
1104
  }, {
1105
- default: () => [he.value && l(Jt, {
1105
+ default: () => [he.value && l(Zt, {
1106
1106
  name: "fade",
1107
1107
  appear: !0
1108
1108
  }, {
@@ -1110,22 +1110,22 @@ const ct = /* @__PURE__ */ Ge({
1110
1110
  ref: z,
1111
1111
  class: de.value,
1112
1112
  style: Oe.value,
1113
- onClick: Je
1113
+ onClick: Xe
1114
1114
  }, [ze()])]
1115
1115
  })]
1116
1116
  });
1117
1117
  }
1118
1118
  });
1119
- function rn(e) {
1119
+ function un(e) {
1120
1120
  if (e.content && e.content.render)
1121
1121
  return e.content.render;
1122
1122
  if (e.render && typeof e.render == "function")
1123
1123
  return e.render;
1124
1124
  }
1125
- function Ia(e) {
1125
+ function Da(e) {
1126
1126
  const t = document.createElement("div");
1127
1127
  t.style.display = "contents";
1128
- const n = Pt({
1128
+ const n = Dt({
1129
1129
  setup(o, a) {
1130
1130
  vt(() => {
1131
1131
  document.body.removeChild(t);
@@ -1135,10 +1135,10 @@ function Ia(e) {
1135
1135
  }), v = e.closedCallback || ((G) => {
1136
1136
  }), S = e.resizeHandle || ((G) => {
1137
1137
  }), x = e.stopMoveHandle || ((G) => {
1138
- }), B = rn(e), z = (G) => {
1138
+ }), B = un(e), z = (G) => {
1139
1139
  u.value = !1, n.unmount(), v(G);
1140
1140
  };
1141
- return ot(() => {
1141
+ return nt(() => {
1142
1142
  }), a.expose({
1143
1143
  modalRef: i
1144
1144
  }), () => l(ct, {
@@ -1166,18 +1166,18 @@ function Ia(e) {
1166
1166
  });
1167
1167
  }
1168
1168
  });
1169
- return document.body.appendChild(t), n.use(We.i18n), n.mount(t), n;
1169
+ return document.body.appendChild(t), n.use(Ae.i18n), n.mount(t), n;
1170
1170
  }
1171
- class un {
1171
+ class sn {
1172
1172
  // private activeModalInstance = computed(() => {
1173
1173
  // return this.modalRefs[this.activeModalIndex.value];
1174
1174
  // });
1175
1175
  constructor(t) {
1176
- Ae(this, "appContext", null);
1177
- Ae(this, "modalRef", f());
1178
- Ae(this, "activeModalIndex", f(0));
1179
- Ae(this, "modalRefs", {});
1180
- Ae(this, "isUseEscCloseModal", f(!1));
1176
+ Ve(this, "appContext", null);
1177
+ Ve(this, "modalRef", f());
1178
+ Ve(this, "activeModalIndex", f(0));
1179
+ Ve(this, "modalRefs", {});
1180
+ Ve(this, "isUseEscCloseModal", f(!1));
1181
1181
  this.app = t, this.appContext = t ? t._context : null;
1182
1182
  }
1183
1183
  getCurrentModal() {
@@ -1202,7 +1202,7 @@ class un {
1202
1202
  showButtons: !0,
1203
1203
  showHeader: !0
1204
1204
  }, t);
1205
- return Ia(n);
1205
+ return Da(n);
1206
1206
  }
1207
1207
  close(t) {
1208
1208
  var n, o;
@@ -1211,7 +1211,7 @@ class un {
1211
1211
  open(t) {
1212
1212
  const n = document.createDocumentFragment();
1213
1213
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
1214
- const o = io(Object.assign({
1214
+ const o = uo(Object.assign({
1215
1215
  title: "",
1216
1216
  showButtons: !0,
1217
1217
  showHeader: !0,
@@ -1224,14 +1224,14 @@ class un {
1224
1224
  }), p = t.stopMoveHandle || ((O) => {
1225
1225
  });
1226
1226
  let u;
1227
- const T = rn(o.value), c = (O) => {
1227
+ const T = un(o.value), c = (O) => {
1228
1228
  var k;
1229
1229
  a.value = !1;
1230
1230
  const P = (k = O == null ? void 0 : O.target) == null ? void 0 : k.classList.contains("modal_close");
1231
1231
  b(O, this.isUseEscCloseModal.value ? "esc" : P ? "icon" : "button");
1232
1232
  }, d = (O) => {
1233
- c(O), u && nt(() => {
1234
- if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], kt(null, n), u = null, this.modalRef.value = null, this.modalRefs) {
1233
+ c(O), u && tt(() => {
1234
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Mt(null, n), u = null, this.modalRef.value = null, this.modalRefs) {
1235
1235
  const P = Object.keys(this.modalRefs).map((k) => Number(k));
1236
1236
  P.length > 0 ? this.activeModalIndex.value = Math.max(...P) : this.activeModalIndex.value = 0, this.modalRefs[this.activeModalIndex.value] && (this.modalRef.value = this.modalRefs[this.activeModalIndex.value]);
1237
1237
  }
@@ -1245,7 +1245,7 @@ class un {
1245
1245
  height: x
1246
1246
  } = o.value, B = this.adaptToWindow(S || 500, x || 320);
1247
1247
  Object.assign(o.value, B);
1248
- const z = f(), G = () => l(ct, wt({
1248
+ const z = f(), G = () => l(ct, St({
1249
1249
  ref: z,
1250
1250
  modelValue: a.value,
1251
1251
  "onUpdate:modelValue": (O) => a.value = O
@@ -1262,8 +1262,8 @@ class un {
1262
1262
  default: () => [T && T(this.app)]
1263
1263
  });
1264
1264
  u = ((O) => {
1265
- const P = ro(G, O);
1266
- return P.appContext = this.appContext, kt(P, n), P;
1265
+ const P = so(G, O);
1266
+ return P.appContext = this.appContext, Mt(P, n), P;
1267
1267
  })({
1268
1268
  ...o.value
1269
1269
  // 'onUpdate:modelValue': onUpdateModelValue,
@@ -1274,11 +1274,11 @@ class un {
1274
1274
  o.value = {
1275
1275
  ...o.value,
1276
1276
  ...O
1277
- }, u && kt(uo(u, {
1277
+ }, u && Mt(co(u, {
1278
1278
  ...o
1279
1279
  }), n);
1280
1280
  };
1281
- return nt(() => {
1281
+ return tt(() => {
1282
1282
  this.modalRefs[A] = z.value, this.modalRef.value = z.value, m(new Event("opened"));
1283
1283
  }), {
1284
1284
  update: I,
@@ -1298,10 +1298,10 @@ class un {
1298
1298
  const dt = Symbol("FModalService");
1299
1299
  ct.install = (e) => {
1300
1300
  e.component(ct.name, ct);
1301
- const t = new un(e);
1301
+ const t = new sn(e);
1302
1302
  e.provide(dt, t), e.provide("FModalService", t);
1303
1303
  };
1304
- function sn(e, t) {
1304
+ function cn(e, t) {
1305
1305
  function n() {
1306
1306
  const o = e.beforeOpen || e.beforeClickButton || null;
1307
1307
  let a = Promise.resolve(!0);
@@ -1315,11 +1315,11 @@ function sn(e, t) {
1315
1315
  }
1316
1316
  return { judgeCanOpen: n };
1317
1317
  }
1318
- function Pa(e, t, n, o, a) {
1318
+ function Ra(e, t, n, o, a) {
1319
1319
  const i = f(e.buttonBehavior), s = f(e.popupOnInput), b = E(() => ({
1320
1320
  "input-group-append": !0,
1321
1321
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1322
- })), { judgeCanOpen: m } = sn(e, a), h = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = pt(dt, null), u = f();
1322
+ })), { judgeCanOpen: m } = cn(e, a), h = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = bt(dt, null), u = f();
1323
1323
  async function T(v) {
1324
1324
  if (await m() && h.value) {
1325
1325
  const S = !!t.slots.default;
@@ -1330,7 +1330,7 @@ function Pa(e, t, n, o, a) {
1330
1330
  });
1331
1331
  u.value = B == null ? void 0 : B.modalRef;
1332
1332
  }
1333
- i.value === "Overlay" && Ba.show({
1333
+ i.value === "Overlay" && ka.show({
1334
1334
  // host: buttonEditRef.value,
1335
1335
  host: document.body,
1336
1336
  backgroundColor: "rgba(0,0,0,.15)",
@@ -1352,7 +1352,7 @@ function Pa(e, t, n, o, a) {
1352
1352
  modalRef: u
1353
1353
  };
1354
1354
  }
1355
- function Da(e, t, n, o, a, i) {
1355
+ function Na(e, t, n, o, a, i) {
1356
1356
  const s = f(!1), b = E(() => e.enableClear && !e.readonly && !e.disable && !ft()), { changeTextBoxValue: m, hasClearClass: h } = i, p = f(!1);
1357
1357
  function u(S) {
1358
1358
  s.value = S, h.value = S;
@@ -1385,7 +1385,7 @@ function Da(e, t, n, o, a, i) {
1385
1385
  onMouseLeaveTextBox: v
1386
1386
  };
1387
1387
  }
1388
- function Ra(e, t, n, o, a) {
1388
+ function ja(e, t, n, o, a) {
1389
1389
  const i = E(() => e.popupOnInput), s = E(() => e.popupOnFocus), { shouldPopupContent: b, closeAllPopover: m } = a, h = f(!1), p = E(() => e.enableTitle ? n.value : ""), u = E(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = E(() => e.readonly || !e.editable || ft()), c = f(!1), d = E(() => !e.disable && c.value), v = E(() => ({
1390
1390
  "text-left": e.textAlign === "left",
1391
1391
  "text-center": e.textAlign === "center",
@@ -1400,44 +1400,44 @@ function Ra(e, t, n, o, a) {
1400
1400
  "f-state-focus": d.value,
1401
1401
  "input-group--has-clear": e.enableClear && h.value
1402
1402
  }));
1403
- function x(N, X = !0) {
1404
- n.value = N, X && (t.emit("change", N), t.emit("update:modelValue", N));
1403
+ function x(j, J = !0) {
1404
+ n.value = j, J && (t.emit("change", j), t.emit("update:modelValue", j));
1405
1405
  }
1406
- function B(N) {
1407
- b.value = !1, x(N, !0);
1406
+ function B(j) {
1407
+ b.value = !1, x(j, !0);
1408
1408
  }
1409
1409
  ce(
1410
1410
  () => e.modelValue,
1411
- (N) => {
1412
- n.value = N;
1411
+ (j) => {
1412
+ n.value = j;
1413
1413
  }
1414
1414
  );
1415
- function z(N) {
1416
- c.value = !1, t.emit("blur", N), N.stopPropagation();
1415
+ function z(j) {
1416
+ c.value = !1, t.emit("blur", j), j.stopPropagation();
1417
1417
  }
1418
- function G(N) {
1419
- t.emit("click", N), m(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
1418
+ function G(j) {
1419
+ t.emit("click", j), m(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
1420
1420
  }
1421
- function W(N) {
1422
- !e.disable && !e.readonly && (c.value = !0, T.value || (t.emit("focus", N), s.value && !b.value && a.popup()));
1421
+ function W(j) {
1422
+ !e.disable && !e.readonly && (c.value = !0, T.value || (t.emit("focus", j), s.value && !b.value && a.popup()));
1423
1423
  }
1424
- function A(N) {
1425
- t.emit("input", N);
1426
- const X = N.target.value;
1427
- o.value = X, n.value !== X && x(X, e.updateOn === "change"), i.value && !b.value && a.popup();
1424
+ function A(j) {
1425
+ t.emit("input", j);
1426
+ const J = j.target.value;
1427
+ o.value = J, n.value !== J && x(J, e.updateOn === "change"), i.value && !b.value && a.popup();
1428
1428
  }
1429
- function I(N) {
1430
- N.target.tagName !== "INPUT" && N.preventDefault(), N.stopPropagation();
1429
+ function I(j) {
1430
+ j.target.tagName !== "INPUT" && j.preventDefault(), j.stopPropagation();
1431
1431
  }
1432
- function O(N) {
1433
- t.emit("keydown", N);
1432
+ function O(j) {
1433
+ t.emit("keydown", j);
1434
1434
  }
1435
- function P(N) {
1436
- N.key === "Enter" && (i.value || s.value) && a.hidePopup(), t.emit("keyup", N);
1435
+ function P(j) {
1436
+ j.key === "Enter" && (i.value || s.value) && a.hidePopup(), t.emit("keyup", j);
1437
1437
  }
1438
- function k(N) {
1439
- const X = N.target.value;
1440
- N.stopPropagation(), x(X);
1438
+ function k(j) {
1439
+ const J = j.target.value;
1440
+ j.stopPropagation(), x(J);
1441
1441
  }
1442
1442
  return {
1443
1443
  hasFocusedTextBox: d,
@@ -1459,15 +1459,15 @@ function Ra(e, t, n, o, a) {
1459
1459
  onTextBoxValueChange: k
1460
1460
  };
1461
1461
  }
1462
- const et = "FarrisVue_PopoverInstancesKey";
1463
- function Na(e, t, n, o) {
1464
- const a = f(), i = f(!1), { judgeCanOpen: s } = sn(e, o);
1462
+ const Ke = "FarrisVue_PopoverInstancesKey";
1463
+ function Ha(e, t, n, o) {
1464
+ const a = f(), i = f(!1), { judgeCanOpen: s } = cn(e, o);
1465
1465
  ce(() => a.value, (c, d) => {
1466
- window[et] = window[et] || /* @__PURE__ */ new WeakMap(), c ? window[et].set(n.value, c) : window[et].delete(n.value);
1466
+ window[Ke] = window[Ke] || /* @__PURE__ */ new WeakMap(), c ? window[Ke].set(n.value, c) : window[Ke].delete(n.value);
1467
1467
  });
1468
1468
  function b() {
1469
- if (window[et]) {
1470
- const c = window[et];
1469
+ if (window[Ke]) {
1470
+ const c = window[Ke];
1471
1471
  document.querySelectorAll(".f-button-edit,.v-popover").forEach((d) => {
1472
1472
  const v = c.get(d);
1473
1473
  v && d !== n.value && !n.value.closest(".popover-fitcontent") && v.hide();
@@ -1482,27 +1482,27 @@ function Na(e, t, n, o) {
1482
1482
  if (!!t.slots.default) {
1483
1483
  if (!c && !i.value && !await s())
1484
1484
  return;
1485
- i.value = !i.value, i.value && (await nt(), m());
1485
+ i.value = !i.value, i.value && (await tt(), m());
1486
1486
  }
1487
1487
  }
1488
1488
  async function p(c = !1) {
1489
1489
  if (!!t.slots.default) {
1490
1490
  if (!c && !await s())
1491
1491
  return;
1492
- i.value = !0, await nt(), m();
1492
+ i.value = !0, await tt(), m();
1493
1493
  }
1494
1494
  }
1495
1495
  function u() {
1496
1496
  i.value = !1;
1497
1497
  }
1498
1498
  function T() {
1499
- i.value = !0, nt(() => {
1499
+ i.value = !0, tt(() => {
1500
1500
  m();
1501
1501
  });
1502
1502
  }
1503
1503
  return { hidePopup: u, showPopup: T, popup: p, shouldPopupContent: i, togglePopup: h, popoverRef: a, closeAllPopover: b };
1504
1504
  }
1505
- function ja(e, t, n) {
1505
+ function za(e, t, n) {
1506
1506
  const o = f(), {
1507
1507
  isTextBoxReadonly: a,
1508
1508
  textBoxClass: i,
@@ -1518,11 +1518,11 @@ function ja(e, t, n) {
1518
1518
  onTextBoxValueChange: v
1519
1519
  } = n, S = f(e.id), {
1520
1520
  uuid: x
1521
- } = go(), B = E(() => ({
1521
+ } = po(), B = E(() => ({
1522
1522
  // 'border-top-right-radius': '6px',
1523
1523
  // 'border-bottom-right-radius': '6px'
1524
1524
  }));
1525
- ot(() => {
1525
+ nt(() => {
1526
1526
  var I, O;
1527
1527
  e.selectOnCreated && ((I = o.value) == null || I.select()), e.focusOnCreated && ((O = o.value) == null || O.focus({
1528
1528
  preventScroll: !0
@@ -1564,7 +1564,7 @@ function ja(e, t, n) {
1564
1564
  onCompositionstart: G
1565
1565
  }, null);
1566
1566
  }
1567
- function Ha(e, t, n) {
1567
+ function La(e, t, n) {
1568
1568
  const o = f(e.separator), a = E(() => e.readonly || e.disable), {
1569
1569
  changeTextBoxValue: i,
1570
1570
  onFocusTextBox: s,
@@ -1588,7 +1588,7 @@ function Ha(e, t, n) {
1588
1588
  function c(d) {
1589
1589
  m(d);
1590
1590
  }
1591
- return () => l(yo, {
1591
+ return () => l(Co, {
1592
1592
  tabindex: e.tabIndex,
1593
1593
  onFocus: s,
1594
1594
  onBlur: b,
@@ -1603,7 +1603,7 @@ function Ha(e, t, n) {
1603
1603
  onClick: c
1604
1604
  }, null);
1605
1605
  }
1606
- function za(e, t, n, o) {
1606
+ function Va(e, t, n, o) {
1607
1607
  const {
1608
1608
  buttonGroupClass: a,
1609
1609
  onClickButton: i,
@@ -1613,24 +1613,24 @@ function za(e, t, n, o) {
1613
1613
  enableClearButton: m,
1614
1614
  showClearButton: h,
1615
1615
  onClearValue: p
1616
- } = o, u = f(), T = nn((v) => {
1616
+ } = o, u = f(), T = on((v) => {
1617
1617
  i(v);
1618
1618
  }, e.buttonBehavior === "Modal" ? 0 : 200), c = () => {
1619
1619
  t.emit("beforeClearValue");
1620
1620
  }, {
1621
1621
  renderExpandContent: d
1622
- } = bo(e, t);
1622
+ } = wo(e, t);
1623
1623
  return {
1624
- renderButtonGroup: () => l(Be, null, [l("div", {
1624
+ renderButtonGroup: () => l(Fe, null, [l("div", {
1625
1625
  id: e.id ? `${e.id}-button-group` : void 0,
1626
1626
  class: a.value
1627
- }, [m.value && Zt(l("span", {
1627
+ }, [m.value && Qt(l("span", {
1628
1628
  class: "input-group-text input-group-clear",
1629
1629
  onClick: p,
1630
1630
  onMousedown: c
1631
1631
  }, [l("i", {
1632
1632
  class: "f-icon modal_close"
1633
- }, null)]), [[so, h.value]]), t.slots.buttonContent ? l("span", {
1633
+ }, null)]), [[fo, h.value]]), t.slots.buttonContent ? l("span", {
1634
1634
  class: "input-group-text input-group-append-button",
1635
1635
  onClick: T,
1636
1636
  onMouseenter: s,
@@ -1646,7 +1646,7 @@ function za(e, t, n, o) {
1646
1646
  buttonHandleElement: u
1647
1647
  };
1648
1648
  }
1649
- function La(e, t, n) {
1649
+ function Aa(e, t, n) {
1650
1650
  const o = f(e.popupMinWidth), {
1651
1651
  hidePopup: a,
1652
1652
  popoverRef: i
@@ -1655,7 +1655,7 @@ function La(e, t, n) {
1655
1655
  }, b = () => {
1656
1656
  a(), t.emit("hidden");
1657
1657
  };
1658
- return () => ft() ? l(on, {
1658
+ return () => ft() ? l(an, {
1659
1659
  id: `${e.id}-drawer`,
1660
1660
  ref: i,
1661
1661
  position: e.placement,
@@ -1671,7 +1671,7 @@ function La(e, t, n) {
1671
1671
  var m, h;
1672
1672
  return [Pe(" "), (h = (m = t.slots).default) == null ? void 0 : h.call(m), Pe(" ")];
1673
1673
  }
1674
- }) : l(Co, {
1674
+ }) : l(xo, {
1675
1675
  id: `${e.id}-popover`,
1676
1676
  ref: i,
1677
1677
  placement: e.placement,
@@ -1694,22 +1694,22 @@ function La(e, t, n) {
1694
1694
  }
1695
1695
  });
1696
1696
  }
1697
- const cn = /* @__PURE__ */ Ge({
1697
+ const dn = /* @__PURE__ */ We({
1698
1698
  name: "FButtonEdit",
1699
- props: ba,
1699
+ props: wa,
1700
1700
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue", "expandClick", "hidden", "shown"],
1701
1701
  setup(e, t) {
1702
- const n = f(), o = f(e.customClass), a = f(e.modelValue), i = Na(e, t, n, a), {
1702
+ const n = f(), o = f(e.customClass), a = f(e.modelValue), i = Ha(e, t, n, a), {
1703
1703
  shouldPopupContent: s,
1704
1704
  hidePopup: b,
1705
1705
  showPopup: m,
1706
1706
  togglePopup: h
1707
- } = i, p = Pa(e, t, n, i, a), u = f(""), T = Ra(e, t, a, u, i), {
1707
+ } = i, p = Ra(e, t, n, i, a), u = f(""), T = ja(e, t, a, u, i), {
1708
1708
  hasFocusedTextBox: c,
1709
1709
  commitValue: d,
1710
1710
  inputGroupClass: v,
1711
1711
  changeTextBoxValue: S
1712
- } = T, x = Da(e, t, a, c, u, T), {
1712
+ } = T, x = Na(e, t, a, c, u, T), {
1713
1713
  onMouseEnterTextBox: B,
1714
1714
  onMouseLeaveTextBox: z
1715
1715
  } = x, G = f(!1), W = E(() => {
@@ -1733,25 +1733,25 @@ const cn = /* @__PURE__ */ Ge({
1733
1733
  return F && F.length && (g = F.map((D) => D.offsetTop).filter((D) => D > 20).length), g;
1734
1734
  }
1735
1735
  const k = f(P());
1736
- co(() => {
1736
+ mo(() => {
1737
1737
  k.value = P();
1738
1738
  });
1739
- function N() {
1740
- return e.multiSelect && e.inputType === "tag" ? () => l(Be, null, [Ha(e, a, T)(), !!k.value && l("div", {
1739
+ function j() {
1740
+ return e.multiSelect && e.inputType === "tag" ? () => l(Fe, null, [La(e, a, T)(), !!k.value && l("div", {
1741
1741
  class: "d-flex flex-row mr-2 more-tags",
1742
1742
  "more-tags": !0
1743
1743
  }, [l("span", {
1744
1744
  class: "multi--more-text"
1745
- }, [Pe("+"), k.value])])]) : ja(e, a, T);
1745
+ }, [Pe("+"), k.value])])]) : za(e, a, T);
1746
1746
  }
1747
- let X = N();
1747
+ let J = j();
1748
1748
  ce([() => e.multiSelect, () => e.inputType], () => {
1749
- X = N();
1749
+ J = j();
1750
1750
  });
1751
1751
  const {
1752
1752
  renderButtonGroup: $,
1753
1753
  buttonHandleElement: se
1754
- } = za(e, t, p, x), ue = La(e, t, i), ae = f(s.value), L = {
1754
+ } = Va(e, t, p, x), ue = Aa(e, t, i), ae = f(s.value), L = {
1755
1755
  displayText: u,
1756
1756
  commitValue: d,
1757
1757
  elementRef: n,
@@ -1761,7 +1761,7 @@ const cn = /* @__PURE__ */ Ge({
1761
1761
  shouldPopupContent: s,
1762
1762
  togglePopup: h,
1763
1763
  openDialog: () => {
1764
- se.value && e.buttonBehavior === "Modal" && se.value.click(), t.slots.content && nn(() => {
1764
+ se.value && e.buttonBehavior === "Modal" && se.value.click(), t.slots.content && on(() => {
1765
1765
  p.onClickButton(null);
1766
1766
  }, e.buttonBehavior === "Modal" ? 0 : 200)();
1767
1767
  },
@@ -1783,13 +1783,13 @@ const cn = /* @__PURE__ */ Ge({
1783
1783
  S(g, !1), u.value = g;
1784
1784
  }
1785
1785
  };
1786
- return ot(() => {
1786
+ return nt(() => {
1787
1787
  n.value.componentInstance = L, window.onresize = () => {
1788
1788
  document.body.click();
1789
1789
  };
1790
- }), fo(() => {
1790
+ }), vo(() => {
1791
1791
  var g;
1792
- window.onresize = null, (g = window[et]) == null || g.delete(n.value);
1792
+ window.onresize = null, (g = window[Ke]) == null || g.delete(n.value);
1793
1793
  }), t.expose(L), ce(() => s.value, async (g, F) => {
1794
1794
  if (G.value) {
1795
1795
  ae.value = g, G.value = !1;
@@ -1807,7 +1807,7 @@ const cn = /* @__PURE__ */ Ge({
1807
1807
  ae.value = g;
1808
1808
  }), () => {
1809
1809
  var g, F;
1810
- return l(Be, null, [l("div", wt(t.attrs, {
1810
+ return l(Fe, null, [l("div", St(t.attrs, {
1811
1811
  ref: n,
1812
1812
  class: W.value,
1813
1813
  id: e.id ? e.id : void 0,
@@ -1818,15 +1818,15 @@ const cn = /* @__PURE__ */ Ge({
1818
1818
  style: I.value,
1819
1819
  onMouseenter: B,
1820
1820
  onMouseleave: z
1821
- }, [(F = (g = t.slots).precontent) == null ? void 0 : F.call(g), t.slots.content ? t.slots.content() : X(), t.slots.content ? null : O.value && $()])]), ae.value && ue()]);
1821
+ }, [(F = (g = t.slots).precontent) == null ? void 0 : F.call(g), t.slots.content ? t.slots.content() : J(), t.slots.content ? null : O.value && $()])]), ae.value && ue()]);
1822
1822
  };
1823
1823
  }
1824
1824
  });
1825
- en(cn);
1826
- function dn(e, t) {
1825
+ tn(dn);
1826
+ function fn(e, t) {
1827
1827
  let n;
1828
1828
  function o(u) {
1829
- const { properties: T, title: c, ignore: d } = u, v = d && Array.isArray(d), S = Object.keys(T).reduce((x, B) => ((!v || !d.find((z) => z === B)) && (x[B] = T[B].type === "object" && T[B].properties ? o(T[B]) : Ot(T[B].default)), x), {});
1829
+ const { properties: T, title: c, ignore: d } = u, v = d && Array.isArray(d), S = Object.keys(T).reduce((x, B) => ((!v || !d.find((z) => z === B)) && (x[B] = T[B].type === "object" && T[B].properties ? o(T[B]) : Et(T[B].default)), x), {});
1830
1830
  if (c && (!v || !d.find((x) => x === "id"))) {
1831
1831
  const x = c.toLowerCase().replace(/-/g, "_");
1832
1832
  S.id = `${x}_${Math.random().toString().slice(2, 6)}`;
@@ -1836,7 +1836,7 @@ function dn(e, t) {
1836
1836
  function a(u) {
1837
1837
  const { properties: T, title: c, required: d } = u;
1838
1838
  if (d && Array.isArray(d)) {
1839
- const v = d.reduce((S, x) => (S[x] = T[x].type === "object" && T[x].properties ? o(T[x]) : Ot(T[x].default), S), {});
1839
+ const v = d.reduce((S, x) => (S[x] = T[x].type === "object" && T[x].properties ? o(T[x]) : Et(T[x].default), S), {});
1840
1840
  if (c && d.find((S) => S === "id")) {
1841
1841
  const S = c.toLowerCase().replace(/-/g, "_");
1842
1842
  v.id = `${S}_${Math.random().toString().slice(2, 6)}`;
@@ -1858,7 +1858,7 @@ function dn(e, t) {
1858
1858
  }
1859
1859
  function s(u, T) {
1860
1860
  const c = o(T);
1861
- return Object.keys(c).reduce((d, v) => (Object.prototype.hasOwnProperty.call(u, v) && (d[v] && Yt(d[v]) && Yt(u[v] || !u[v]) ? Object.assign(d[v], u[v] || {}) : d[v] = u[v]), d), c), c;
1861
+ return Object.keys(c).reduce((d, v) => (Object.prototype.hasOwnProperty.call(u, v) && (d[v] && Xt(d[v]) && Xt(u[v] || !u[v]) ? Object.assign(d[v], u[v] || {}) : d[v] = u[v]), d), c), c;
1862
1862
  }
1863
1863
  function b(u, T) {
1864
1864
  return Object.keys(u).filter((d) => u[d] != null).reduce((d, v) => {
@@ -1900,8 +1900,8 @@ function dn(e, t) {
1900
1900
  }
1901
1901
  return { getSchemaByType: i, resolveSchemaWithDefaultValue: h, resolveSchemaToProps: m, mappingSchemaToProps: b, setDesignerContext: p };
1902
1902
  }
1903
- const Va = {}, Aa = {}, { resolveSchemaWithDefaultValue: Wa } = dn(Va, Aa);
1904
- function Ga(e = {}) {
1903
+ const Wa = {}, Ga = {}, { resolveSchemaWithDefaultValue: _a } = fn(Wa, Ga);
1904
+ function $a(e = {}) {
1905
1905
  function t(h, p, u, T) {
1906
1906
  if (typeof u == "number")
1907
1907
  return T[h].length === u;
@@ -1955,19 +1955,19 @@ function Ga(e = {}) {
1955
1955
  }
1956
1956
  return { parseValueSchema: m };
1957
1957
  }
1958
- const _a = {
1958
+ const Ua = {
1959
1959
  convertTo: (e, t, n, o) => {
1960
1960
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
1961
1961
  },
1962
1962
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
1963
- }, $a = {
1963
+ }, qa = {
1964
1964
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
1965
- }, Ua = {
1965
+ }, Ya = {
1966
1966
  convertTo: (e, t, n, o) => {
1967
1967
  e.editor && (e.editor[t] = n);
1968
1968
  },
1969
1969
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
1970
- }, qa = {
1970
+ }, Xa = {
1971
1971
  button: { type: "button", name: "按钮" },
1972
1972
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
1973
1973
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -2032,18 +2032,18 @@ const _a = {
2032
2032
  "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
2033
2033
  step: { type: "step", name: "步骤条", icon: "step" },
2034
2034
  "dynamic-form": { type: "dynamic-form", name: "动态表单" }
2035
- }, Ya = {
2035
+ }, Ja = {
2036
2036
  convertFrom: (e, t, n) => {
2037
2037
  var a;
2038
2038
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
2039
- return ((a = qa[o]) == null ? void 0 : a.name) || o;
2039
+ return ((a = Xa[o]) == null ? void 0 : a.name) || o;
2040
2040
  }
2041
- }, Xa = {
2041
+ }, Za = {
2042
2042
  convertTo: (e, t, n, o) => {
2043
2043
  e[t] = e[t];
2044
2044
  },
2045
2045
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
2046
- }, Ja = {
2046
+ }, Qa = {
2047
2047
  convertTo: (e, t, n, o) => {
2048
2048
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
2049
2049
  [t]: n
@@ -2074,7 +2074,7 @@ const _a = {
2074
2074
  }
2075
2075
  return "none";
2076
2076
  }
2077
- }, Za = {
2077
+ }, Ka = {
2078
2078
  convertTo: (e, t, n, o) => {
2079
2079
  e.command ? e.command[t] = n : e.command = {
2080
2080
  [t]: n
@@ -2127,7 +2127,7 @@ const _a = {
2127
2127
  }
2128
2128
  return "";
2129
2129
  }
2130
- }, Qa = {
2130
+ }, el = {
2131
2131
  convertTo: (e, t, n, o) => {
2132
2132
  if (e.column || (e.column = {}), t === "fitMode") {
2133
2133
  n && n !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = n) : (e.column.fitColumns = !1, e.column.fitMode = "average");
@@ -2148,7 +2148,7 @@ const _a = {
2148
2148
  }
2149
2149
  return t === "fitMode" ? "none" : "";
2150
2150
  }
2151
- }, Ka = {
2151
+ }, tl = {
2152
2152
  convertTo: (e, t, n, o) => {
2153
2153
  e.summary ? e.summary[t] = n : e.summary = {
2154
2154
  [t]: n
@@ -2161,7 +2161,7 @@ const _a = {
2161
2161
  var o, a;
2162
2162
  return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : t === "customRender" ? ((a = e.summary) == null ? void 0 : a[t]) || "" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
2163
2163
  }
2164
- }, el = {
2164
+ }, nl = {
2165
2165
  convertTo: (e, t, n, o) => {
2166
2166
  e.group ? e.group[t] = n : e.group = {
2167
2167
  [t]: n
@@ -2184,7 +2184,7 @@ const _a = {
2184
2184
  return e.group.groupFields;
2185
2185
  }
2186
2186
  }
2187
- }, tl = {
2187
+ }, ol = {
2188
2188
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
2189
2189
  convertTo: (e, t, n) => {
2190
2190
  if (n && n.length > 0) {
@@ -2192,7 +2192,7 @@ const _a = {
2192
2192
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
2193
2193
  }
2194
2194
  }
2195
- }, nl = {
2195
+ }, al = {
2196
2196
  convertTo: (e, t, n, o) => {
2197
2197
  if (e.pagination || (e.pagination = {}), t === "sizeLimits")
2198
2198
  if (n == null)
@@ -2210,12 +2210,12 @@ const _a = {
2210
2210
  var o;
2211
2211
  return e.pagination ? t === "sizeLimits" ? ((o = e.pagination.sizeLimits) == null ? void 0 : o.join(",")) ?? "" : e.pagination[t] : e[t];
2212
2212
  }
2213
- }, ol = {
2213
+ }, ll = {
2214
2214
  convertTo: (e, t, n, o) => {
2215
2215
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
2216
2216
  },
2217
2217
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
2218
- }, al = {
2218
+ }, il = {
2219
2219
  convertTo: (e, t, n, o) => {
2220
2220
  e.selection || (e.selection = {}), e.selection[t] = n;
2221
2221
  },
@@ -2225,24 +2225,24 @@ const _a = {
2225
2225
  const o = !!e.selection[t];
2226
2226
  return t === "showCheckbox" && o == null && e.selection.multiSelect === !0 ? !0 : o;
2227
2227
  }
2228
- }, ll = {
2228
+ }, rl = {
2229
2229
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
2230
- }, il = {
2230
+ }, ul = {
2231
2231
  convertFrom: (e, t) => e[t] || "",
2232
2232
  convertTo: (e, t, n) => {
2233
2233
  e[t] = n;
2234
2234
  }
2235
- }, rl = {
2235
+ }, sl = {
2236
2236
  convertTo: (e, t, n, o) => {
2237
2237
  e.size || (e.size = {}), e.size[t] = n;
2238
2238
  },
2239
2239
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
2240
- }, ul = {
2240
+ }, cl = {
2241
2241
  convertFrom: (e, t, n) => {
2242
2242
  var o, a;
2243
2243
  return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (a = e.formatter) == null ? void 0 : a.data : e.formatterEnumData;
2244
2244
  }
2245
- }, sl = {
2245
+ }, dl = {
2246
2246
  convertTo: (e, t, n, o) => {
2247
2247
  e.sort || (e.sort = {}), e.sort[t] = n;
2248
2248
  },
@@ -2253,7 +2253,7 @@ const _a = {
2253
2253
  if (t === "multiSort")
2254
2254
  return !!((a = e.sort) != null && a.multiSort);
2255
2255
  }
2256
- }, cl = {
2256
+ }, fl = {
2257
2257
  convertTo: (e, t, n, o) => {
2258
2258
  e.filter || (e.filter = {}), e.filter[t] = n, t === "enable" && (e.enableFilter = !1);
2259
2259
  },
@@ -2261,7 +2261,7 @@ const _a = {
2261
2261
  var o, a, i, s;
2262
2262
  return t === "mode" ? ((o = e.filter) == null ? void 0 : o.mode) || "server" : t === "filterStyle" ? ((a = e.filter) == null ? void 0 : a.filterStyle) || "filter-column" : t === "enable" ? ((i = e.filter) == null ? void 0 : i.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((s = e.filter) == null ? void 0 : s[t]) || void 0;
2263
2263
  }
2264
- }, dl = {
2264
+ }, ml = {
2265
2265
  convertTo: (e, t, n, o) => {
2266
2266
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
2267
2267
  [t]: n
@@ -2278,7 +2278,7 @@ const _a = {
2278
2278
  }
2279
2279
  return "";
2280
2280
  }
2281
- }, fl = {
2281
+ }, vl = {
2282
2282
  convertTo: (e, t, n, o) => {
2283
2283
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
2284
2284
  <span class="f-pretend-link f-cursor-pointer"
@@ -2290,7 +2290,7 @@ const _a = {
2290
2290
  </span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
2291
2291
  },
2292
2292
  convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
2293
- }, ml = {
2293
+ }, gl = {
2294
2294
  convertTo: (e, t, n, o) => {
2295
2295
  e.hierarchy || (e.hierarchy = {
2296
2296
  cascadeOption: {}
@@ -2301,31 +2301,31 @@ const _a = {
2301
2301
  return !!((a = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && a[t]);
2302
2302
  }
2303
2303
  };
2304
- function fn(e, t, n) {
2304
+ function mn(e, t, n) {
2305
2305
  const o = /* @__PURE__ */ new Map([
2306
- ["/converter/appearance.converter", _a],
2307
- ["/converter/buttons.converter", $a],
2308
- ["/converter/property-editor.converter", Ua],
2309
- ["/converter/items-count.converter", ll],
2310
- ["/converter/type.converter", Ya],
2311
- ["/converter/change-editor.converter", Xa],
2312
- ["/converter/change-formatter.converter", Ja],
2313
- ["/converter/column-command.converter", Za],
2314
- ["/converter/column-option.converter", Qa],
2315
- ["/converter/summary.converter", Ka],
2316
- ["/converter/group.converter", el],
2317
- ["/converter/form-group-label.converter", il],
2318
- ["/converter/field-selector.converter", tl],
2319
- ["/converter/pagination.converter", nl],
2320
- ["/converter/row-number.converter", ol],
2321
- ["/converter/grid-selection.converter", al],
2322
- ["/converter/size.converter", rl],
2323
- ["/converter/change-formatter-enum.converter", ul],
2324
- ["/converter/grid-sort.converter", sl],
2325
- ["/converter/grid-filter.converter", cl],
2326
- ["/converter/row-option.converter", dl],
2327
- ["/converter/change-formatter-type.converter", fl],
2328
- ["/converter/tree-auto-check.converter", ml]
2306
+ ["/converter/appearance.converter", Ua],
2307
+ ["/converter/buttons.converter", qa],
2308
+ ["/converter/property-editor.converter", Ya],
2309
+ ["/converter/items-count.converter", rl],
2310
+ ["/converter/type.converter", Ja],
2311
+ ["/converter/change-editor.converter", Za],
2312
+ ["/converter/change-formatter.converter", Qa],
2313
+ ["/converter/column-command.converter", Ka],
2314
+ ["/converter/column-option.converter", el],
2315
+ ["/converter/summary.converter", tl],
2316
+ ["/converter/group.converter", nl],
2317
+ ["/converter/form-group-label.converter", ul],
2318
+ ["/converter/field-selector.converter", ol],
2319
+ ["/converter/pagination.converter", al],
2320
+ ["/converter/row-number.converter", ll],
2321
+ ["/converter/grid-selection.converter", il],
2322
+ ["/converter/size.converter", sl],
2323
+ ["/converter/change-formatter-enum.converter", cl],
2324
+ ["/converter/grid-sort.converter", dl],
2325
+ ["/converter/grid-filter.converter", fl],
2326
+ ["/converter/row-option.converter", ml],
2327
+ ["/converter/change-formatter-type.converter", vl],
2328
+ ["/converter/tree-auto-check.converter", gl]
2329
2329
  ]), a = /* @__PURE__ */ new Map([
2330
2330
  ["string", { type: "input-group", enableClear: !1 }],
2331
2331
  ["boolean", {
@@ -2351,7 +2351,7 @@ function fn(e, t, n) {
2351
2351
  ["number", { type: "number-spinner", placeholder: "" }],
2352
2352
  ["events-editor", { type: "events-editor", hide: !0 }],
2353
2353
  ["multiLanguage", { type: "language-textbox" }]
2354
- ]), i = Ga();
2354
+ ]), i = $a();
2355
2355
  function s(d, v) {
2356
2356
  return () => i.parseValueSchema(d, v);
2357
2357
  }
@@ -2367,7 +2367,7 @@ function fn(e, t, n) {
2367
2367
  }
2368
2368
  function p(d, v, S, x, B, z = "", G = "") {
2369
2369
  return Object.keys(d).map((A) => {
2370
- const I = f(1), O = A, P = d[A], k = Object.keys(P), N = P.title, X = P.type, $ = a.get(X) || { type: "input-group", enableClear: !1 }, se = P.editor ? Object.assign({}, $, P.editor) : Object.assign({}, $), ue = b(k, P, v), ae = m(k, P, v);
2370
+ const I = f(1), O = A, P = d[A], k = Object.keys(P), j = P.title, J = P.type, $ = a.get(J) || { type: "input-group", enableClear: !1 }, se = P.editor ? Object.assign({}, $, P.editor) : Object.assign({}, $), ue = b(k, P, v), ae = m(k, P, v);
2371
2371
  se.readonly = se.readonly === void 0 ? ae() : se.readonly;
2372
2372
  const L = P.type === "cascade" ? p(P.properties, v, S, x, B, z, G) : [], g = !0;
2373
2373
  let F = h(P, G);
@@ -2378,15 +2378,15 @@ function fn(e, t, n) {
2378
2378
  const ve = F.convertFrom(S, A, B, z);
2379
2379
  return ve === void 0 && Object.prototype.hasOwnProperty.call(P, "defaultValue") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : ve;
2380
2380
  }
2381
- const Ce = S[A];
2382
- return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (Ce === void 0 || typeof Ce == "string" && Ce === "") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : Ce;
2381
+ const be = S[A];
2382
+ return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (be === void 0 || typeof be == "string" && be === "") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : be;
2383
2383
  }
2384
2384
  return null;
2385
2385
  },
2386
- set(Ce) {
2387
- I.value += 1, F && F.convertTo ? (F.convertTo(x, A, Ce, B, z), F.convertTo(S, A, Ce, B, z)) : (x[A] = Ce, S[A] = Ce);
2386
+ set(be) {
2387
+ I.value += 1, F && F.convertTo ? (F.convertTo(x, A, be, B, z), F.convertTo(S, A, be, B, z)) : (x[A] = be, S[A] = be);
2388
2388
  }
2389
- }), { refreshPanelAfterChanged: V, description: Q, isExpand: ie, parentPropertyID: he } = P, de = { propertyID: O, propertyName: N, propertyType: X, propertyValue: D, editor: se, visible: ue, readonly: ae, cascadeConfig: L, hideCascadeTitle: g, refreshPanelAfterChanged: V, description: Q, isExpand: ie, parentPropertyID: he };
2389
+ }), { refreshPanelAfterChanged: V, description: Q, isExpand: ie, parentPropertyID: he } = P, de = { propertyID: O, propertyName: j, propertyType: J, propertyValue: D, editor: se, visible: ue, readonly: ae, cascadeConfig: L, hideCascadeTitle: g, refreshPanelAfterChanged: V, description: Q, isExpand: ie, parentPropertyID: he };
2390
2390
  return v[O] = de, de;
2391
2391
  });
2392
2392
  }
@@ -2400,12 +2400,12 @@ function fn(e, t, n) {
2400
2400
  function T(d, v, S, x, B = "") {
2401
2401
  const z = v.$ref.schema, G = v.$ref.converter, W = S[z], A = W.type, I = n(W), O = {}, P = e[A];
2402
2402
  if (P && P.categories) {
2403
- const k = P.categories[d], N = k == null ? void 0 : k.title;
2403
+ const k = P.categories[d], j = k == null ? void 0 : k.title;
2404
2404
  G && Object.keys(k.properties).forEach((se) => {
2405
2405
  k.properties[se].$converter = G;
2406
2406
  });
2407
- const X = (k == null ? void 0 : k.properties) || {}, $ = p(X, O, I, W, x, B);
2408
- return { categoryId: d, categoryName: N, properties: $ };
2407
+ const J = (k == null ? void 0 : k.properties) || {}, $ = p(J, O, I, W, x, B);
2408
+ return { categoryId: d, categoryName: j, properties: $ };
2409
2409
  }
2410
2410
  return { categoryId: d, categoryName: "", properties: [] };
2411
2411
  }
@@ -2420,8 +2420,8 @@ function fn(e, t, n) {
2420
2420
  O.push(T(P, k, d, v, x));
2421
2421
  return;
2422
2422
  }
2423
- const N = k == null ? void 0 : k.title, X = k == null ? void 0 : k.tabId, $ = k == null ? void 0 : k.tabName, se = k == null ? void 0 : k.hide, ue = k == null ? void 0 : k.hideTitle, ae = p(k.properties || {}, W, G, d, v, x, k.$converter), { setPropertyRelates: L } = k, g = k == null ? void 0 : k.parentPropertyID;
2424
- O.push({ categoryId: P, categoryName: N, tabId: X, tabName: $, hide: se, properties: ae, hideTitle: ue, setPropertyRelates: L, parentPropertyID: g });
2423
+ const j = k == null ? void 0 : k.title, J = k == null ? void 0 : k.tabId, $ = k == null ? void 0 : k.tabName, se = k == null ? void 0 : k.hide, ue = k == null ? void 0 : k.hideTitle, ae = p(k.properties || {}, W, G, d, v, x, k.$converter), { setPropertyRelates: L } = k, g = k == null ? void 0 : k.parentPropertyID;
2424
+ O.push({ categoryId: P, categoryName: j, tabId: J, tabName: $, hide: se, properties: ae, hideTitle: ue, setPropertyRelates: L, parentPropertyID: g });
2425
2425
  }), O;
2426
2426
  }
2427
2427
  return [];
@@ -2432,18 +2432,18 @@ function fn(e, t, n) {
2432
2432
  propertyConverterMap: o
2433
2433
  };
2434
2434
  }
2435
- const vl = {}, gl = {};
2436
- fn(vl, gl, Wa);
2437
- const hl = {}, pl = {}, { resolveSchemaWithDefaultValue: yl } = dn(hl, pl), bl = {}, Cl = {};
2438
- fn(bl, Cl, yl);
2439
- function wl(e, t) {
2435
+ const hl = {}, pl = {};
2436
+ mn(hl, pl, _a);
2437
+ const yl = {}, bl = {}, { resolveSchemaWithDefaultValue: Cl } = fn(yl, bl), wl = {}, xl = {};
2438
+ mn(wl, xl, Cl);
2439
+ function Sl(e, t) {
2440
2440
  return null;
2441
2441
  }
2442
- function yt(e) {
2442
+ function Ct(e) {
2443
2443
  const t = e == null ? void 0 : e.fitColumns;
2444
2444
  return t === !0 || typeof t == "object" && t !== null && "enable" in t && t.enable === !0;
2445
2445
  }
2446
- const xl = {
2446
+ const Tl = {
2447
2447
  /** 自定义表格 CSS 类名。 */
2448
2448
  customClass: { type: String, default: "" },
2449
2449
  /** 是否在最后一个单元格回车时新增一行。 */
@@ -2578,7 +2578,7 @@ const xl = {
2578
2578
  /** 数据更新前的回调函数。 */
2579
2579
  beforeUpdate: { type: Function },
2580
2580
  /** 绑定动态字段的解析器。 */
2581
- fieldsResolver: { type: Function, default: wl },
2581
+ fieldsResolver: { type: Function, default: Sl },
2582
2582
  /** 绑定动态字段的值回调函数。 */
2583
2583
  fieldsCallback: { type: Function, default: () => {
2584
2584
  } },
@@ -2626,7 +2626,7 @@ const xl = {
2626
2626
  /** 是否启用列设置方案。 */
2627
2627
  enableColumnSettingSolution: { type: Boolean, default: !1 }
2628
2628
  };
2629
- function Sl() {
2629
+ function Bl() {
2630
2630
  const e = /* @__PURE__ */ new Map([
2631
2631
  ["boolean", "check-box"],
2632
2632
  ["datetime", "date-picker"],
@@ -2653,11 +2653,11 @@ function Sl() {
2653
2653
  }
2654
2654
  return { transformColumnToField: t };
2655
2655
  }
2656
- function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2656
+ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2657
2657
  const {
2658
2658
  isNull: x,
2659
2659
  isUndefined: B
2660
- } = tn(), {
2660
+ } = nn(), {
2661
2661
  totalItems: z,
2662
2662
  rawView: G
2663
2663
  } = v, {
@@ -2667,8 +2667,8 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2667
2667
  rowKey: O,
2668
2668
  rowPosition: P,
2669
2669
  rowSpanCellPosition: k,
2670
- groupCellPosition: N,
2671
- summaryCellPosition: X
2670
+ groupCellPosition: j,
2671
+ summaryCellPosition: J
2672
2672
  } = s, {
2673
2673
  cellContentClass: $,
2674
2674
  cellContentPosition: se,
@@ -2688,12 +2688,12 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2688
2688
  toggleGroupRow: he
2689
2689
  } = T, {
2690
2690
  columnContext: de,
2691
- hasLeftFixedColumn: Ce,
2691
+ hasLeftFixedColumn: be,
2692
2692
  hasRightFixedColumn: ve
2693
2693
  } = b, {
2694
- navigateOnKeyUp: Te,
2695
- navigateOnKeyDown: _e
2696
- } = p, Oe = (y) => (y || []).some((U) => Dt(U) ? !(U.type === Qt || U.type === Be && !Oe(U.children)) : !0) ? y : null, $e = (y) => {
2694
+ navigateOnKeyUp: Be,
2695
+ navigateOnKeyDown: Ge
2696
+ } = p, Oe = (y) => (y || []).some((U) => Rt(U) ? !(U.type === Kt || U.type === Fe && !Oe(U.children)) : !0) ? y : null, _e = (y) => {
2697
2697
  var U, r, M;
2698
2698
  return ((r = (U = y.column) == null ? void 0 : U.editor) == null ? void 0 : r.type) === "switch" || ((M = y.column) == null ? void 0 : M.dataType) === "boolean" ? {
2699
2699
  display: "flex",
@@ -2704,30 +2704,30 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2704
2704
  flexGrow: "1",
2705
2705
  minWidth: 0
2706
2706
  };
2707
- }, Ee = Se({
2707
+ }, Ee = Te({
2708
2708
  "fv-grid-content-left-fixed": !0
2709
- }), we = Se({
2709
+ }), Ce = Te({
2710
2710
  "fv-grid-content-right-fixed": !0
2711
2711
  });
2712
2712
  ce([z, G], (y) => {
2713
- !y[0] && !y[1].length ? (Ee["fv-grid-content-left-fixed"] = !1, we["fv-grid-content-right-fixed"] = !1) : (Ee["fv-grid-content-left-fixed"] = !0, we["fv-grid-content-right-fixed"] = !0);
2713
+ !y[0] && !y[1].length ? (Ee["fv-grid-content-left-fixed"] = !1, Ce["fv-grid-content-right-fixed"] = !1) : (Ee["fv-grid-content-left-fixed"] = !0, Ce["fv-grid-content-right-fixed"] = !0);
2714
2714
  });
2715
2715
  const {
2716
2716
  gridDataStyle: fe,
2717
- gridMergedDataStyle: Ue,
2717
+ gridMergedDataStyle: $e,
2718
2718
  leftFixedGridDataStyle: De,
2719
2719
  leftFixedGridMergedDataStyle: Re,
2720
- rightFixedGridDataStyle: at,
2721
- rightFixedGridMergedDataStyle: lt
2720
+ rightFixedGridDataStyle: ot,
2721
+ rightFixedGridMergedDataStyle: at
2722
2722
  } = c;
2723
2723
  function Ie(y, U) {
2724
2724
  y.stopPropagation(), U.collapse = !U.collapse, d.value = he(U.collapse ? "collapse" : "expand", U, d.value);
2725
2725
  }
2726
2726
  function je(y, U, r) {
2727
- var j, R;
2727
+ var H, R;
2728
2728
  const M = [];
2729
2729
  if (y.groupField) {
2730
- const ee = U[y.groupField], Y = y.data[y.groupField];
2730
+ const te = U[y.groupField], X = y.data[y.groupField];
2731
2731
  if (r === "primary")
2732
2732
  for (let q = 0; q <= y.layer; q++)
2733
2733
  M.push(l("div", {
@@ -2740,8 +2740,8 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2740
2740
  }, [l("span", {
2741
2741
  class: ae(y)
2742
2742
  }, null)]));
2743
- r === "primary" && ((j = e.group) != null && j.customRender) ? M.push(l("div", {
2744
- ref: Y == null ? void 0 : Y.setRef,
2743
+ r === "primary" && ((H = e.group) != null && H.customRender) ? M.push(l("div", {
2744
+ ref: X == null ? void 0 : X.setRef,
2745
2745
  key: A(y, y.layer + 1),
2746
2746
  style: {
2747
2747
  flex: "1",
@@ -2750,8 +2750,8 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2750
2750
  whiteSpace: "nowrap",
2751
2751
  paddingLeft: "4px"
2752
2752
  }
2753
- }, [e.group.customRender(y)])) : (R = e.group) != null && R.customRender || (r === "primary" && Y && M.push(l("div", {
2754
- ref: Y.setRef,
2753
+ }, [e.group.customRender(y)])) : (R = e.group) != null && R.customRender || (r === "primary" && X && M.push(l("div", {
2754
+ ref: X.setRef,
2755
2755
  key: A(y, y.layer + 1),
2756
2756
  style: {
2757
2757
  flex: "1",
@@ -2762,13 +2762,13 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2762
2762
  lineHeight: "26px",
2763
2763
  padding: "0 0.75rem"
2764
2764
  },
2765
- title: Y.data
2766
- }, [Y.data])), Object.values(y.data).filter((q) => q.field !== y.groupField && U[q.field] && q.colSpan !== 0 && q.field !== xo && q.field !== So).forEach((q) => {
2767
- var be;
2765
+ title: X.data
2766
+ }, [X.data])), Object.values(y.data).filter((q) => q.field !== y.groupField && U[q.field] && q.colSpan !== 0 && q.field !== To && q.field !== Bo).forEach((q) => {
2767
+ var we;
2768
2768
  const ge = I(y, q, U);
2769
- if (!ee) {
2770
- const J = (y.layer + 1) * (((be = Y == null ? void 0 : Y.parent) == null ? void 0 : be.height) || 0);
2771
- ge.left = `${Number(ge.left.replace("px", "")) + J}px`;
2769
+ if (!te) {
2770
+ const K = (y.layer + 1) * (((we = X == null ? void 0 : X.parent) == null ? void 0 : we.height) || 0);
2771
+ ge.left = `${Number(ge.left.replace("px", "")) + K}px`;
2772
2772
  }
2773
2773
  M.push(l("div", {
2774
2774
  ref: q.setRef,
@@ -2780,7 +2780,7 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2780
2780
  }
2781
2781
  return M;
2782
2782
  }
2783
- function qe(y, U, r, M) {
2783
+ function Ue(y, U, r, M) {
2784
2784
  return y.layer > -1 && l("div", {
2785
2785
  ref: y.setRef,
2786
2786
  key: O(y),
@@ -2790,11 +2790,11 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2790
2790
  "align-items-center": !0
2791
2791
  },
2792
2792
  style: P(y),
2793
- onClick: (j) => F(j, y),
2794
- onMouseover: (j) => D(j, y)
2793
+ onClick: (H) => F(H, y),
2794
+ onMouseover: (H) => D(H, y)
2795
2795
  }, [je(y, U, M)]);
2796
2796
  }
2797
- function Ye(y, U) {
2797
+ function qe(y, U) {
2798
2798
  const r = [];
2799
2799
  if (y.groupField && U[y.groupField]) {
2800
2800
  const M = y.data[y.groupField];
@@ -2802,7 +2802,7 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2802
2802
  ref: M.setRef,
2803
2803
  key: A(y, y.layer + 1),
2804
2804
  class: "fv-grid-cell",
2805
- style: X(M, U, y.layer)
2805
+ style: J(M, U, y.layer)
2806
2806
  }, [M.data]));
2807
2807
  }
2808
2808
  return r;
@@ -2813,38 +2813,38 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2813
2813
  key: O(y),
2814
2814
  class: g(y, r),
2815
2815
  style: P(y),
2816
- onClick: (j) => F(j, y),
2817
- onMouseover: (j) => D(j, y)
2818
- }, [Ye(y, U)]);
2816
+ onClick: (H) => F(H, y),
2817
+ onMouseover: (H) => D(H, y)
2818
+ }, [qe(y, U)]);
2819
2819
  }
2820
- function Ze(y, U) {
2821
- var r, M, j;
2822
- return y.showTips && typeof ((r = y.column) == null ? void 0 : r.formatter) != "function" && ((M = y.column) == null ? void 0 : M.dataType) !== "commands" && ((j = y.column) == null ? void 0 : j.dataType) !== "setting" ? l("div", {
2820
+ function Je(y, U) {
2821
+ var r, M, H;
2822
+ return y.showTips && typeof ((r = y.column) == null ? void 0 : r.formatter) != "function" && ((M = y.column) == null ? void 0 : M.dataType) !== "commands" && ((H = y.column) == null ? void 0 : H.dataType) !== "setting" ? l("div", {
2823
2823
  class: ue(y),
2824
2824
  title: y.formatter(y, U)
2825
2825
  }, [y.formatter(y, U)]) : l("div", {
2826
2826
  class: ue(y)
2827
2827
  }, [y.formatter(y, U)]);
2828
2828
  }
2829
- function Xe() {
2829
+ function Ye() {
2830
2830
  return l("div", null, [Pe("******")]);
2831
2831
  }
2832
2832
  function le(y) {
2833
- var M, j;
2833
+ var M, H;
2834
2834
  const U = !x(y.data) && !B(y.data) ? y.data.toString() : y.data;
2835
- return ((j = (M = y.column) == null ? void 0 : M.editor) == null ? void 0 : j.showType) === "password" ? Xe() : y.showTips ? l("div", {
2835
+ return ((H = (M = y.column) == null ? void 0 : M.editor) == null ? void 0 : H.showType) === "password" ? Ye() : y.showTips ? l("div", {
2836
2836
  class: ue(y),
2837
2837
  title: U
2838
2838
  }, [U]) : l("div", {
2839
2839
  class: ue(y)
2840
2840
  }, [U]);
2841
2841
  }
2842
- function Qe(y, U) {
2843
- return y.mode === an.editing ? l("div", {
2844
- style: $e(y)
2845
- }, [y.getEditor(y)]) : y.column.columnTemplate ? y.column.columnTemplate(y, U) : y.formatter ? Ze(y, U) : le(y);
2842
+ function Ze(y, U) {
2843
+ return y.mode === ln.editing ? l("div", {
2844
+ style: _e(y)
2845
+ }, [y.getEditor(y)]) : y.column.columnTemplate ? y.column.columnTemplate(y, U) : y.formatter ? Je(y, U) : le(y);
2846
2846
  }
2847
- function Je(y, U, r, M, j) {
2847
+ function Xe(y, U, r, M, H) {
2848
2848
  return l("div", {
2849
2849
  ref: y.setRef,
2850
2850
  key: O(y),
@@ -2854,8 +2854,8 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2854
2854
  onMouseover: (R) => D(R, y),
2855
2855
  onMouseout: (R) => V(R, y)
2856
2856
  }, [Object.values(y.data).filter((R) => U[R.field] && R.rowSpan === 1).map((R) => {
2857
- var Y, q;
2858
- const ee = t.slots.cellTemplate && Oe(t.slots.cellTemplate({
2857
+ var X, q;
2858
+ const te = t.slots.cellTemplate && Oe(t.slots.cellTemplate({
2859
2859
  cell: R,
2860
2860
  row: y
2861
2861
  }));
@@ -2867,23 +2867,23 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2867
2867
  onClick: (ge) => {
2868
2868
  Q(ge, R, y, R.column);
2869
2869
  },
2870
- onKeydown: (ge) => Te(ge, R)
2870
+ onKeydown: (ge) => Be(ge, R)
2871
2871
  }, [l("div", {
2872
2872
  class: $(R),
2873
2873
  style: se(R)
2874
- }, [ee ? (q = (Y = t.slots).cellTemplate) == null ? void 0 : q.call(Y, {
2874
+ }, [te ? (q = (X = t.slots).cellTemplate) == null ? void 0 : q.call(X, {
2875
2875
  cell: R,
2876
2876
  row: y
2877
- }) : Qe(R, y)])]);
2877
+ }) : Ze(R, y)])]);
2878
2878
  })]);
2879
2879
  }
2880
2880
  function ze(y, U, r, M) {
2881
- return Je(y, U, r, P(y));
2881
+ return Xe(y, U, r, P(y));
2882
2882
  }
2883
- const Ne = [ze, qe, He];
2883
+ const Ne = [ze, Ue, He];
2884
2884
  function w(y, U) {
2885
2885
  const r = W(y);
2886
- return d.value.map((M, j) => Ne[M.type](M, r, j, U));
2886
+ return d.value.map((M, H) => Ne[M.type](M, r, H, U));
2887
2887
  }
2888
2888
  function _(y) {
2889
2889
  const U = W(y);
@@ -2914,30 +2914,30 @@ function Tl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
2914
2914
  style: fe.value
2915
2915
  }, [w(de.value.primaryColumns.filter((y) => y.visible), "primary")]), l("div", {
2916
2916
  class: "fv-grid-merge-date",
2917
- style: Ue.value
2917
+ style: $e.value
2918
2918
  }, [_(de.value.primaryColumns.filter((y) => y.visible))])]);
2919
2919
  }
2920
- function xe() {
2920
+ function Se() {
2921
2921
  return l("div", {
2922
2922
  ref: a,
2923
- class: we
2923
+ class: Ce
2924
2924
  }, [l("div", {
2925
2925
  class: "fv-grid-data",
2926
- style: at.value
2926
+ style: ot.value
2927
2927
  }, [w(de.value.rightColumns.filter((y) => y.visible), "right")]), l("div", {
2928
2928
  class: "fv-grid-merge-date",
2929
- style: lt.value
2929
+ style: at.value
2930
2930
  }, [_(de.value.rightColumns.filter((y) => y.visible))])]);
2931
2931
  }
2932
- function Ke() {
2932
+ function Qe() {
2933
2933
  const y = [];
2934
- return Ce.value && y.push(ne()), y.push(oe()), ve.value && y.push(xe()), y;
2934
+ return be.value && y.push(ne()), y.push(oe()), ve.value && y.push(Se()), y;
2935
2935
  }
2936
2936
  return {
2937
- renderDataArea: Ke
2937
+ renderDataArea: Qe
2938
2938
  };
2939
2939
  }
2940
- const Bl = /* @__PURE__ */ Ge({
2940
+ const kl = /* @__PURE__ */ We({
2941
2941
  name: "FDataGridRowForm",
2942
2942
  props: {
2943
2943
  columns: {
@@ -3001,7 +3001,7 @@ const Bl = /* @__PURE__ */ Ge({
3001
3001
  setup(e, {
3002
3002
  emit: t
3003
3003
  }) {
3004
- return () => l(ha, {
3004
+ return () => l(ya, {
3005
3005
  fields: e.fields,
3006
3006
  formData: e.formData,
3007
3007
  showHeader: e.showHeader,
@@ -3025,13 +3025,13 @@ const Bl = /* @__PURE__ */ Ge({
3025
3025
  }, null);
3026
3026
  }
3027
3027
  });
3028
- function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3028
+ function Ml(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3029
3029
  const {
3030
3030
  transformColumnToField: x
3031
- } = Sl(), {
3031
+ } = Bl(), {
3032
3032
  isNull: B,
3033
3033
  isUndefined: z
3034
- } = tn(), {
3034
+ } = nn(), {
3035
3035
  totalItems: G,
3036
3036
  rawView: W
3037
3037
  } = v, {
@@ -3040,8 +3040,8 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3040
3040
  cellPosition: O,
3041
3041
  rowKey: P,
3042
3042
  rowPosition: k,
3043
- rowSpanCellPosition: N,
3044
- groupCellPosition: X,
3043
+ rowSpanCellPosition: j,
3044
+ groupCellPosition: J,
3045
3045
  summaryCellPosition: $
3046
3046
  } = s, {
3047
3047
  cellContentClass: se,
@@ -3061,20 +3061,20 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3061
3061
  toggleGroupRow: he
3062
3062
  } = T, {
3063
3063
  columnContext: de,
3064
- hasLeftFixedColumn: Ce,
3064
+ hasLeftFixedColumn: be,
3065
3065
  hasRightFixedColumn: ve
3066
- } = b, Te = E(() => {
3066
+ } = b, Be = E(() => {
3067
3067
  var M;
3068
- if (e.displayType !== "Card" || (((M = e.columns) == null ? void 0 : M.length) ?? 0) === 0 || e.fit && yt(e.columnOption))
3068
+ if (e.displayType !== "Card" || (((M = e.columns) == null ? void 0 : M.length) ?? 0) === 0 || e.fit && Ct(e.columnOption))
3069
3069
  return;
3070
3070
  const r = de.value.primaryColumnsWidth || 0;
3071
3071
  return r > 0 ? `${r}px` : void 0;
3072
3072
  }), {
3073
- navigateOnKeyUp: _e,
3073
+ navigateOnKeyUp: Ge,
3074
3074
  navigateOnKeyDown: Oe
3075
- } = p, $e = (r) => (r || []).some((M) => Dt(M) ? !(M.type === Qt || M.type === Be && !$e(M.children)) : !0) ? r : null, Ee = (r) => {
3076
- var M, j, R;
3077
- return ((j = (M = r.column) == null ? void 0 : M.editor) == null ? void 0 : j.type) === "switch" || ((R = r.column) == null ? void 0 : R.dataType) === "boolean" ? {
3075
+ } = p, _e = (r) => (r || []).some((M) => Rt(M) ? !(M.type === Kt || M.type === Fe && !_e(M.children)) : !0) ? r : null, Ee = (r) => {
3076
+ var M, H, R;
3077
+ return ((H = (M = r.column) == null ? void 0 : M.editor) == null ? void 0 : H.type) === "switch" || ((R = r.column) == null ? void 0 : R.dataType) === "boolean" ? {
3078
3078
  display: "flex",
3079
3079
  flexGrow: "1",
3080
3080
  minWidth: 0,
@@ -3083,33 +3083,33 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3083
3083
  flexGrow: "1",
3084
3084
  minWidth: 0
3085
3085
  };
3086
- }, we = Se({
3086
+ }, Ce = Te({
3087
3087
  "fv-grid-content-left-fixed": !0
3088
- }), fe = Se({
3088
+ }), fe = Te({
3089
3089
  "fv-grid-content-right-fixed": !0
3090
3090
  });
3091
3091
  ce([G, W], (r) => {
3092
- !r[0] && !r[1].length ? (we["fv-grid-content-left-fixed"] = !1, fe["fv-grid-content-right-fixed"] = !1) : (we["fv-grid-content-left-fixed"] = !0, fe["fv-grid-content-right-fixed"] = !0);
3092
+ !r[0] && !r[1].length ? (Ce["fv-grid-content-left-fixed"] = !1, fe["fv-grid-content-right-fixed"] = !1) : (Ce["fv-grid-content-left-fixed"] = !0, fe["fv-grid-content-right-fixed"] = !0);
3093
3093
  });
3094
3094
  const {
3095
- gridDataStyle: Ue,
3095
+ gridDataStyle: $e,
3096
3096
  gridMergedDataStyle: De,
3097
3097
  leftFixedGridDataStyle: Re,
3098
- leftFixedGridMergedDataStyle: at,
3099
- rightFixedGridDataStyle: lt,
3098
+ leftFixedGridMergedDataStyle: ot,
3099
+ rightFixedGridDataStyle: at,
3100
3100
  rightFixedGridMergedDataStyle: Ie
3101
3101
  } = c;
3102
3102
  function je(r, M) {
3103
3103
  r.stopPropagation(), M.collapse = !M.collapse, d.value = he(M.collapse ? "collapse" : "expand", M, d.value);
3104
3104
  }
3105
- function qe(r, M) {
3106
- var ee;
3107
- const j = [];
3105
+ function Ue(r, M) {
3106
+ var te;
3107
+ const H = [];
3108
3108
  if (!r.groupField)
3109
- return j;
3109
+ return H;
3110
3110
  const R = !!M[r.groupField];
3111
- for (let Y = 0; Y <= r.layer; Y++)
3112
- j.push(l("div", {
3111
+ for (let X = 0; X <= r.layer; X++)
3112
+ H.push(l("div", {
3113
3113
  class: "fv-grid-group-row-icon",
3114
3114
  style: {
3115
3115
  position: "relative",
@@ -3119,29 +3119,29 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3119
3119
  }, [l("span", {
3120
3120
  class: L(r)
3121
3121
  }, null)]));
3122
- if ((ee = e.group) != null && ee.customRender)
3123
- j.push(e.group.customRender(r));
3122
+ if ((te = e.group) != null && te.customRender)
3123
+ H.push(e.group.customRender(r));
3124
3124
  else {
3125
- const Y = r.data[r.groupField];
3126
- if (Y) {
3125
+ const X = r.data[r.groupField];
3126
+ if (X) {
3127
3127
  const q = {
3128
3128
  flex: "1",
3129
3129
  wordBreak: "break-all",
3130
3130
  minWidth: 0
3131
3131
  };
3132
- j.push(l("div", {
3133
- ref: Y.setRef,
3132
+ H.push(l("div", {
3133
+ ref: X.setRef,
3134
3134
  key: I(r, r.layer + 1),
3135
3135
  class: e.displayType !== "Card" ? "fv-grid-cell" : void 0,
3136
- style: e.displayType === "Card" ? q : R ? X(Y, M, r.layer) : {
3136
+ style: e.displayType === "Card" ? q : R ? J(X, M, r.layer) : {
3137
3137
  flex: "1",
3138
3138
  minWidth: 0
3139
3139
  },
3140
- title: Y.data
3141
- }, [Y.data]));
3140
+ title: X.data
3141
+ }, [X.data]));
3142
3142
  }
3143
3143
  Object.values(r.data).filter((q) => q.field !== r.groupField && q.colSpan !== 0).filter((q) => !!M[q.field]).forEach((q) => {
3144
- j.push(l("div", {
3144
+ H.push(l("div", {
3145
3145
  ref: q.setRef,
3146
3146
  key: I(r, q.index),
3147
3147
  class: "fv-grid-cell",
@@ -3150,17 +3150,17 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3150
3150
  }, [q.data]));
3151
3151
  });
3152
3152
  }
3153
- return j;
3153
+ return H;
3154
3154
  }
3155
- function Ye(r, M, j) {
3156
- var ee;
3157
- r.height = ((ee = e.rowOption) == null ? void 0 : ee.height) || 28, r.raw.__fv_data_height__ = r.height;
3155
+ function qe(r, M, H) {
3156
+ var te;
3157
+ r.height = ((te = e.rowOption) == null ? void 0 : te.height) || 28, r.raw.__fv_data_height__ = r.height;
3158
3158
  const R = (r.layer + 1) * 18;
3159
3159
  return r.layer > -1 && l("div", {
3160
3160
  ref: r.setRef,
3161
3161
  key: P(r),
3162
3162
  class: {
3163
- ...F(r, j),
3163
+ ...F(r, H),
3164
3164
  "d-flex": !0,
3165
3165
  "align-items-center": !0
3166
3166
  },
@@ -3170,41 +3170,41 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3170
3170
  paddingLeft: `${R}px`,
3171
3171
  width: "100%"
3172
3172
  },
3173
- onClick: (Y) => D(Y, r),
3174
- onMouseover: (Y) => V(Y, r)
3175
- }, [qe(r, M)]);
3173
+ onClick: (X) => D(X, r),
3174
+ onMouseover: (X) => V(X, r)
3175
+ }, [Ue(r, M)]);
3176
3176
  }
3177
3177
  function He(r, M) {
3178
- const j = [];
3178
+ const H = [];
3179
3179
  if (!r.groupField)
3180
- return j;
3180
+ return H;
3181
3181
  const R = r.data[r.groupField];
3182
3182
  if (!R)
3183
- return j;
3184
- const ee = !!M[r.groupField], Y = e.displayType === "Card" ? {
3183
+ return H;
3184
+ const te = !!M[r.groupField], X = e.displayType === "Card" ? {
3185
3185
  flex: "1",
3186
3186
  minWidth: 0,
3187
3187
  lineHeight: "26px"
3188
- } : ee ? $(R, M, r.layer) : {
3188
+ } : te ? $(R, M, r.layer) : {
3189
3189
  flex: "1",
3190
3190
  minWidth: 0,
3191
3191
  lineHeight: "26px"
3192
3192
  };
3193
- return j.push(l("div", {
3193
+ return H.push(l("div", {
3194
3194
  ref: R.setRef,
3195
3195
  key: I(r, r.layer + 1),
3196
3196
  class: {
3197
3197
  "fv-grid-cell": e.displayType !== "Card"
3198
3198
  },
3199
- style: Y
3200
- }, [R.data])), j;
3199
+ style: X
3200
+ }, [R.data])), H;
3201
3201
  }
3202
- function Ze(r, M, j) {
3202
+ function Je(r, M, H) {
3203
3203
  var R;
3204
3204
  return r.height = ((R = e.rowOption) == null ? void 0 : R.height) || 28, r.raw.__fv_data_height__ = r.height, r.layer > -1 && l("div", {
3205
3205
  ref: r.setRef,
3206
3206
  key: P(r),
3207
- class: F(r, j),
3207
+ class: F(r, H),
3208
3208
  style: {
3209
3209
  // top: `${summaryRow.top}px`,
3210
3210
  // width: `${Math.max(columnContext.value.primaryColumnsWidth, useVirtualScrollComposition.viewPortWidth.value)}px`,
@@ -3214,13 +3214,13 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3214
3214
  justifyContent: "end",
3215
3215
  width: "100%"
3216
3216
  },
3217
- onClick: (ee) => D(ee, r),
3218
- onMouseover: (ee) => V(ee, r)
3217
+ onClick: (te) => D(te, r),
3218
+ onMouseover: (te) => V(te, r)
3219
3219
  }, [He(r, M)]);
3220
3220
  }
3221
- function Xe(r, M) {
3222
- var j, R, ee;
3223
- return r.showTips && typeof ((j = r.column) == null ? void 0 : j.formatter) != "function" && ((R = r.column) == null ? void 0 : R.dataType) !== "commands" && ((ee = r.column) == null ? void 0 : ee.dataType) !== "setting" ? l("div", {
3221
+ function Ye(r, M) {
3222
+ var H, R, te;
3223
+ return r.showTips && typeof ((H = r.column) == null ? void 0 : H.formatter) != "function" && ((R = r.column) == null ? void 0 : R.dataType) !== "commands" && ((te = r.column) == null ? void 0 : te.dataType) !== "setting" ? l("div", {
3224
3224
  class: ae(r),
3225
3225
  title: r.formatter(r, M)
3226
3226
  }, [r.formatter(r, M)]) : l("div", {
@@ -3230,97 +3230,97 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3230
3230
  function le() {
3231
3231
  return l("div", null, [Pe("******")]);
3232
3232
  }
3233
- function Qe(r) {
3234
- var R, ee;
3233
+ function Ze(r) {
3234
+ var R, te;
3235
3235
  const M = !B(r.data) && !z(r.data) ? r.data.toString() : r.data;
3236
- return ((ee = (R = r.column) == null ? void 0 : R.editor) == null ? void 0 : ee.showType) === "password" ? le() : r.showTips ? l("div", {
3236
+ return ((te = (R = r.column) == null ? void 0 : R.editor) == null ? void 0 : te.showType) === "password" ? le() : r.showTips ? l("div", {
3237
3237
  class: ae(r),
3238
3238
  title: M
3239
3239
  }, [M]) : l("div", {
3240
3240
  class: ae(r)
3241
3241
  }, [M]);
3242
3242
  }
3243
- function Je(r, M) {
3244
- return r.mode === an.editing ? l("div", {
3243
+ function Xe(r, M) {
3244
+ return r.mode === ln.editing ? l("div", {
3245
3245
  style: Ee(r)
3246
- }, [r.getEditor(r)]) : r.column.columnTemplate ? r.column.columnTemplate(r, M) : r.formatter ? Xe(r, M) : Qe(r);
3246
+ }, [r.getEditor(r)]) : r.column.columnTemplate ? r.column.columnTemplate(r, M) : r.formatter ? Ye(r, M) : Ze(r);
3247
3247
  }
3248
- function ze(r, M, j, R, ee, Y) {
3249
- var be;
3250
- const q = k(r), ge = r.height || ((be = e.rowOption) == null ? void 0 : be.height) || 28;
3248
+ function ze(r, M, H, R, te, X) {
3249
+ var we;
3250
+ const q = k(r), ge = r.height || ((we = e.rowOption) == null ? void 0 : we.height) || 28;
3251
3251
  return l("div", {
3252
3252
  ref: r.setRef,
3253
3253
  key: P(r),
3254
- class: F(r, j),
3254
+ class: F(r, H),
3255
3255
  style: {
3256
3256
  ...q,
3257
3257
  position: R,
3258
- display: ee,
3259
- width: Y,
3258
+ display: te,
3259
+ width: X,
3260
3260
  minHeight: `${ge}px`,
3261
3261
  height: R === "static" ? void 0 : q.height
3262
3262
  },
3263
- onClick: (J) => D(J, r),
3264
- onMouseover: (J) => V(J, r),
3265
- onMouseout: (J) => Q(J, r)
3266
- }, [Object.values(r.data).filter((J) => M[J.field] && J.rowSpan === 1).map((J) => {
3267
- var St, gt, Le;
3268
- const xt = t.slots.cellTemplate && $e(t.slots.cellTemplate({
3269
- cell: J,
3263
+ onClick: (K) => D(K, r),
3264
+ onMouseover: (K) => V(K, r),
3265
+ onMouseout: (K) => Q(K, r)
3266
+ }, [Object.values(r.data).filter((K) => M[K.field] && K.rowSpan === 1).map((K) => {
3267
+ var ht, pt, Tt;
3268
+ const gt = t.slots.cellTemplate && _e(t.slots.cellTemplate({
3269
+ cell: K,
3270
3270
  row: r
3271
- })), Fe = O(r, J, M);
3272
- return R === "static" && (delete Fe.height, delete Fe.left, (St = e.columnOption) != null && St.fitColumns && e.fit ? (Fe.flex = "1", Fe.overflow = "hidden", Fe.textOverflow = "ellipsis", Fe.whiteSpace = "nowrap", delete Fe.width) : Fe.flexShrink = "0", Fe.borderTop = "1px solid #e6e9f0"), l("div", {
3273
- ref: J.setRef,
3274
- key: I(r, J.index),
3275
- class: g(J, r),
3271
+ })), xe = O(r, K, M);
3272
+ return R === "static" && (delete xe.height, delete xe.left, (ht = e.columnOption) != null && ht.fitColumns && e.fit ? (xe.flex = "1", xe.overflow = "hidden", xe.textOverflow = "ellipsis", xe.whiteSpace = "nowrap", delete xe.width) : xe.flexShrink = "0", xe.borderTop = "1px solid #e6e9f0"), l("div", {
3273
+ ref: K.setRef,
3274
+ key: I(r, K.index),
3275
+ class: g(K, r),
3276
3276
  style: {
3277
- ...Fe,
3277
+ ...xe,
3278
3278
  position: R
3279
3279
  },
3280
3280
  onClick: (st) => {
3281
- ie(st, J, r, J.column);
3281
+ ie(st, K, r, K.column);
3282
3282
  },
3283
- onKeydown: (st) => _e(st, J)
3283
+ onKeydown: (st) => Ge(st, K)
3284
3284
  }, [l("div", {
3285
- class: se(J),
3286
- style: ue(J)
3287
- }, [xt ? (Le = (gt = t.slots).cellTemplate) == null ? void 0 : Le.call(gt, {
3288
- cell: J,
3285
+ class: se(K),
3286
+ style: ue(K)
3287
+ }, [gt ? (Tt = (pt = t.slots).cellTemplate) == null ? void 0 : Tt.call(pt, {
3288
+ cell: K,
3289
3289
  row: r
3290
- }) : Je(J, r)])]);
3290
+ }) : Xe(K, r)])]);
3291
3291
  })]);
3292
3292
  }
3293
3293
  function Ne(r, M) {
3294
3294
  if (!M)
3295
3295
  return {};
3296
- const j = {};
3296
+ const H = {};
3297
3297
  return M.forEach((R) => {
3298
- j[R.id] = ho(r.raw, R.field);
3299
- }), j;
3298
+ H[R.id] = yo(r.raw, R.field);
3299
+ }), H;
3300
3300
  }
3301
- function w(r, M, j) {
3302
- var ge, be;
3303
- const R = r.height || ((ge = e.rowOption) == null ? void 0 : ge.height) || 28, Y = e.displayType === "Card" && (((be = e.columns) == null ? void 0 : be.length) ?? 0) > 0 && !(e.fit && yt(e.columnOption)), q = l(Bl, {
3301
+ function w(r, M, H) {
3302
+ var ge, we;
3303
+ const R = r.height || ((ge = e.rowOption) == null ? void 0 : ge.height) || 28, X = e.displayType === "Card" && (((we = e.columns) == null ? void 0 : we.length) ?? 0) > 0 && !(e.fit && Ct(e.columnOption)), q = l(kl, {
3304
3304
  columns: S.value,
3305
- fields: j,
3305
+ fields: H,
3306
3306
  mainTitle: e.cardMainTitle,
3307
3307
  showHeader: e.showCardHeader,
3308
3308
  showFooter: e.showCardFooter,
3309
3309
  data: r.raw,
3310
- formData: Ne(r, j),
3310
+ formData: Ne(r, H),
3311
3311
  headerTitleRenderFunction: e.cardTitleTemplate ? () => e.cardTitleTemplate(r.raw) : null,
3312
3312
  headerContentRenderFunction: e.cardHeaderTemplate ? () => e.cardHeaderTemplate(r.raw) : null,
3313
3313
  footerRenderFunction: e.cardFooterTemplate ? () => e.cardFooterTemplate(r.raw) : null,
3314
3314
  toolbar: e.cardToolbar,
3315
- fieldsCallback: e.fieldsCallback ? (...J) => e.fieldsCallback(...J) : null,
3316
- onFieldsEvent: (J) => {
3317
- t.emit("fieldsEvent", J);
3315
+ fieldsCallback: e.fieldsCallback ? (...K) => e.fieldsCallback(...K) : null,
3316
+ onFieldsEvent: (K) => {
3317
+ t.emit("fieldsEvent", K);
3318
3318
  },
3319
- onFieldsValueChange: (...J) => {
3320
- t.emit("fieldsValueChange", ...J);
3319
+ onFieldsValueChange: (...K) => {
3320
+ t.emit("fieldsValueChange", ...K);
3321
3321
  },
3322
- onClick: (...J) => {
3323
- t.emit("fieldsClick", ...J);
3322
+ onClick: (...K) => {
3323
+ t.emit("fieldsClick", ...K);
3324
3324
  }
3325
3325
  }, null);
3326
3326
  return l("div", {
@@ -3333,22 +3333,22 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3333
3333
  ...e.displayType === "Card" ? {
3334
3334
  width: "100%",
3335
3335
  boxSizing: "border-box",
3336
- ...Y ? {
3336
+ ...X ? {
3337
3337
  overflowX: "auto",
3338
3338
  overflowY: "visible"
3339
3339
  } : {},
3340
- ...Te.value ? {
3341
- minWidth: Te.value
3340
+ ...Be.value ? {
3341
+ minWidth: Be.value
3342
3342
  } : {},
3343
- ...yt(e.columnOption) && e.fit ? {
3343
+ ...Ct(e.columnOption) && e.fit ? {
3344
3344
  maxWidth: "100%"
3345
3345
  } : {}
3346
3346
  } : {}
3347
3347
  },
3348
- onClick: (J) => D(J, r),
3349
- onMouseover: (J) => V(J, r),
3350
- onMouseout: (J) => Q(J, r)
3351
- }, [Y ? l("div", {
3348
+ onClick: (K) => D(K, r),
3349
+ onMouseover: (K) => V(K, r),
3350
+ onMouseout: (K) => Q(K, r)
3351
+ }, [X ? l("div", {
3352
3352
  style: {
3353
3353
  display: "inline-block",
3354
3354
  minWidth: "100%",
@@ -3357,24 +3357,24 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3357
3357
  }
3358
3358
  }, [q]) : q]);
3359
3359
  }
3360
- function _(r, M, j, R, ee, Y) {
3360
+ function _(r, M, H, R, te, X) {
3361
3361
  const q = [];
3362
- return R && Y.length > 0 && q.push(ze(r, M, j, "static", "flex", "100%")), ee && R.length > 0 && q.push(w(r, j, R)), q;
3363
- }
3364
- function ne(r, M, j, R, ee, Y) {
3365
- return e.displayType === "Card" ? _(r, M, j, R, ee, Y) : ze(r, M, j);
3366
- }
3367
- const oe = [ne, Ye, Ze];
3368
- function xe(r, M) {
3369
- let j = A(r);
3370
- return d.value.map((R, ee) => {
3371
- const Y = e.fieldsResolver(R.raw);
3372
- let q = Y || [];
3373
- const ge = S.value.filter((be) => be.visible && be.dataType !== rt && be.dataType !== ut);
3374
- return Y || ge.length > 0 && (q = ge.map((be) => x(be))), (!j || Object.keys(j).length === 0) && (j = A(q)), oe[R.type](R, j, ee, q, Y, ge);
3362
+ return R && X.length > 0 && q.push(ze(r, M, H, "static", "flex", "100%")), te && R.length > 0 && q.push(w(r, H, R)), q;
3363
+ }
3364
+ function ne(r, M, H, R, te, X) {
3365
+ return e.displayType === "Card" ? _(r, M, H, R, te, X) : ze(r, M, H);
3366
+ }
3367
+ const oe = [ne, qe, Je];
3368
+ function Se(r, M) {
3369
+ let H = A(r);
3370
+ return d.value.map((R, te) => {
3371
+ const X = e.fieldsResolver(R.raw);
3372
+ let q = X || [];
3373
+ const ge = S.value.filter((we) => we.visible && we.dataType !== rt && we.dataType !== ut);
3374
+ return X || ge.length > 0 && (q = ge.map((we) => x(we))), (!H || Object.keys(H).length === 0) && (H = A(q)), oe[R.type](R, H, te, q, X, ge);
3375
3375
  });
3376
3376
  }
3377
- function Ke() {
3377
+ function Qe() {
3378
3378
  var M;
3379
3379
  if (e.displayType !== "Card")
3380
3380
  return;
@@ -3398,11 +3398,11 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3398
3398
  return l("div", {
3399
3399
  ref: n,
3400
3400
  class: "fv-grid-content-primary",
3401
- style: Ke()
3401
+ style: Qe()
3402
3402
  }, [l("div", {
3403
3403
  class: "fv-grid-data",
3404
- style: Ue.value
3405
- }, [xe(de.value.primaryColumns.filter((r) => r.visible))])]);
3404
+ style: $e.value
3405
+ }, [Se(de.value.primaryColumns.filter((r) => r.visible))])]);
3406
3406
  }
3407
3407
  function U() {
3408
3408
  const r = [];
@@ -3412,46 +3412,46 @@ function Fl(e, t, n, o, a, i, s, b, m, h, p, u, T, c, d, v, S) {
3412
3412
  renderDataArea: U
3413
3413
  };
3414
3414
  }
3415
- function kl(e) {
3416
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Dt(e);
3415
+ function Ol(e) {
3416
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Rt(e);
3417
3417
  }
3418
- const mn = /* @__PURE__ */ Ge({
3418
+ const vn = /* @__PURE__ */ We({
3419
3419
  name: "FDataGrid",
3420
- props: xl,
3420
+ props: Tl,
3421
3421
  emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent", "fieldsValueChange", "fieldsClick"],
3422
3422
  setup(e, t) {
3423
- var Wt, Gt;
3423
+ var Gt, _t;
3424
3424
  const {
3425
3425
  isSmall: n
3426
- } = To();
3426
+ } = Fo();
3427
3427
  let o = [], a = [];
3428
- const i = f(!1), s = 0, b = f(((Wt = e.rowOption) == null ? void 0 : Wt.height) || 28), m = E(() => e.displayType === "Card"), h = f(20), p = f(e.columns), u = Bo(e), T = f(), c = f(), d = f(), v = f(), S = f(), x = f([]), B = f(e.scrollbarMode === "always"), z = f(((Gt = e.rowOption) == null ? void 0 : Gt.wrapContent) || !1), G = Fo(e, u), W = ko(e, t), A = Mo(e), {
3428
+ const i = f(!1), s = 0, b = f(((Gt = e.rowOption) == null ? void 0 : Gt.height) || 28), m = E(() => e.displayType === "Card"), h = f(20), p = f(e.columns), u = ko(e), T = f(), c = f(), d = f(), v = f(), S = f(), x = f([]), B = f(e.scrollbarMode === "always"), z = f(((_t = e.rowOption) == null ? void 0 : _t.wrapContent) || !1), G = Mo(e, u), W = Oo(e, t), A = Eo(e), {
3429
3429
  showLoading: I,
3430
3430
  renderLoading: O
3431
- } = Oo(e, T), P = new Map(p.value.map((C) => [C.field, C])), k = Eo(e, P, W, A, u), N = Io(e, k), {
3432
- shouldRenderPagination: X
3433
- } = N, $ = Po(e, k, u, x, t), {
3431
+ } = Io(e, T), P = new Map(p.value.map((C) => [C.field, C])), k = Po(e, P, W, A, u), j = Do(e, k), {
3432
+ shouldRenderPagination: J
3433
+ } = j, $ = Ro(e, k, u, x, t), {
3434
3434
  showSelectAll: se,
3435
3435
  showSelection: ue,
3436
3436
  selectedValues: ae,
3437
3437
  updateSelectAllStatus: L
3438
3438
  } = $, g = E(() => e.disabled), F = E(() => e.virtualized && e.displayType !== "Card" ? Math.min(k.dataView.value.length, h.value) : k.dataView.value.length), {
3439
3439
  containerStyleObject: D
3440
- } = Do(e, x), V = E(() => {
3440
+ } = No(e, x), V = E(() => {
3441
3441
  var C;
3442
3442
  return e.displayType === "Card" && (((C = e.columns) == null ? void 0 : C.length) ?? 0) === 0;
3443
3443
  }), Q = E(() => {
3444
3444
  var C;
3445
- return e.displayType === "Card" && (((C = e.columns) == null ? void 0 : C.length) ?? 0) > 0 && !!e.fit && yt(e.columnOption);
3445
+ return e.displayType === "Card" && (((C = e.columns) == null ? void 0 : C.length) ?? 0) > 0 && !!e.fit && Ct(e.columnOption);
3446
3446
  });
3447
3447
  E(() => {
3448
3448
  const C = D.value;
3449
3449
  if (!V.value)
3450
3450
  return C;
3451
3451
  const {
3452
- overflow: H,
3453
- overflowX: K,
3454
- overflowY: te,
3452
+ overflow: N,
3453
+ overflowX: Y,
3454
+ overflowY: ee,
3455
3455
  height: me,
3456
3456
  ...Z
3457
3457
  } = C, pe = e.height > 0 ? {
@@ -3477,155 +3477,160 @@ const mn = /* @__PURE__ */ Ge({
3477
3477
  } : {}
3478
3478
  };
3479
3479
  });
3480
- const ie = Ro(e), {
3480
+ const ie = jo(e), {
3481
3481
  applyCommands: he
3482
3482
  } = ie, {
3483
3483
  applyColumnSetting: de,
3484
- removeColumnSetting: Ce
3485
- } = No(e);
3484
+ removeColumnSetting: be
3485
+ } = Ho(e);
3486
3486
  he(p), e.showSetting && de(p);
3487
- const ve = jo(e, t), Te = Ho(e), {
3488
- applyColumnSorter: _e,
3487
+ const ve = zo(e, t), Be = Lo(e), {
3488
+ applyColumnSorter: Ge,
3489
3489
  columnContext: Oe,
3490
- updateColumnRenderContext: $e
3490
+ updateColumnRenderContext: _e
3491
3491
  } = ve;
3492
- _e(k, Te);
3493
- const Ee = zo(e, Oe), we = Lo(e, t, $, u), fe = Vo(e, t, u, we, x), Ue = Ao(e, k, b), De = Wo(e, fe, Ue), Re = Go(e, k, fe, A, u, Ue, De, b), at = _o(e, u, De, Re), lt = $o(e, u, De, Re), Ie = Uo(e, p, k, F, s, Re, at, lt), {
3492
+ Ge(k, Be);
3493
+ const Ee = Vo(e, Oe), Ce = Ao(e, t, $, u), fe = Wo(e, t, u, Ce, x), $e = Go(e, k, b), De = _o(e, fe, $e), Re = $o(e, k, fe, A, u, $e, De, b), ot = Uo(e, u, De, Re), at = qo(e, u, De, Re), Ie = Yo(e, p, k, F, s, Re, ot, at), {
3494
3494
  getVisualData: je
3495
- } = Ie, qe = qo(Oe), Ye = Yo(e, Oe, b, m), He = Xo(e, $), {
3496
- sidebarWidth: Ze,
3497
- showSidebarCheckBox: Xe
3498
- } = He, le = Jo(e, k, x, Oe, Ie, F, s, Ze, b, m, fe, B), {
3499
- onWheel: Qe,
3500
- dataGridWidth: Je,
3495
+ } = Ie, Ue = Xo(Oe), qe = Jo(e, Oe, b, m), He = Zo(e, $), {
3496
+ sidebarWidth: Je,
3497
+ showSidebarCheckBox: Ye
3498
+ } = He, le = Qo(e, k, x, Oe, Ie, F, s, Je, b, m, fe, B), {
3499
+ onWheel: Ze,
3500
+ dataGridWidth: Xe,
3501
3501
  viewPortHeight: ze,
3502
3502
  viewPortWidth: Ne,
3503
3503
  resetScroll: w,
3504
3504
  updateVisibleRowsOnLatestVisibleScope: _
3505
- } = le, ne = Zo(e, Oe, c, Ne, Ee), {
3505
+ } = le, ne = Ko(e, Oe, c, Ne, Ee), {
3506
3506
  calculateColumnsSize: oe
3507
- } = ne, xe = Qo(), Ke = Ko(c, S, k, xe, le), y = ea(e, t, ve, k, Ee, G, le), U = E(() => {
3507
+ } = ne, Se = ea(), Qe = ta(c, S, k, Se, le), y = na(e, t, ve, k, Ee, G, le), U = E(() => {
3508
3508
  const C = {
3509
3509
  "fv-grid": !0,
3510
3510
  "fv-grid-bordered": e.showBorder,
3511
3511
  "fv-grid-horizontal-bordered": e.showHorizontalLines,
3512
3512
  "fv-datagrid-strip": e.showStripe
3513
3513
  };
3514
- return po(C, e.customClass);
3514
+ return bo(C, e.customClass);
3515
3515
  }), r = E(() => ({
3516
3516
  "fv-grid-content": !0,
3517
3517
  "fv-grid-content-hover": B.value,
3518
3518
  "fv-grid-wrap-content": z.value,
3519
3519
  "fv-grid-scrollbar-visible": le.shouldShowVirticalScrollbar.value && B.value
3520
3520
  })), M = E(() => {
3521
- var K, te;
3522
- const C = {}, H = m.value && V.value;
3523
- return !H && le.shouldShowHorizontalScrollbar.value && B.value && (C.paddingBottom = "10px"), !H && le.shouldShowVirticalScrollbar.value && B.value, m.value && (C.display = "block", V.value || Q.value ? (C.overflowX = "hidden", C.overflowY = "hidden", C.display = "flex", C.flexDirection = "column", C.flex = "1 1 auto", C.minHeight = "0", C.width = "100%", C.maxWidth = "100%", C.minWidth = "0", C.boxSizing = "border-box") : (((K = e.columns) == null ? void 0 : K.length) ?? 0) > 0 ? C.overflow = !x.value || x.value.length === 0 ? "hidden" : "auto" : (te = e.columnOption) != null && te.fitColumns && e.fit ? C.overflow = "visible" : C.overflow = !x.value || x.value.length === 0 ? "hidden" : "auto"), C;
3524
- }), {
3525
- renderGridHeader: j,
3526
- renderGridColumnResizeOverlay: R,
3527
- shouldShowHeader: ee
3528
- } = ta(e, t, c, v, S, ve, k, y, Ke, W, xe, ne, Ee, $, He, Te, le, Ne, x, i), {
3529
- renderDataGridPagination: Y
3530
- } = na(e, t, k, le, N, $), {
3531
- renderDataGridSidebar: q
3532
- } = oa(e, we, $, He, le), {
3533
- renderDisableMask: ge
3534
- } = aa(), {
3535
- renderDataGridSummary: be,
3536
- summaryPosition: J
3537
- } = la(e, k, ve), {
3538
- renderHorizontalScrollbar: xt
3539
- } = ia(e, c, le), {
3540
- renderVerticalScrollbar: Fe
3541
- } = ra(e, c, le), {
3542
- renderFilterPanel: St
3543
- } = ua(e, ve, k, W, Te, le), {
3544
- renderGroupPanel: gt
3545
- } = sa(e, k, y, G, le);
3546
- let Le = null;
3547
- function st() {
3548
- var H;
3521
+ var Y, ee;
3522
+ const C = {}, N = m.value && V.value;
3523
+ return !N && le.shouldShowHorizontalScrollbar.value && B.value && (C.paddingBottom = "10px"), !N && le.shouldShowVirticalScrollbar.value && B.value, m.value && (C.display = "block", V.value || Q.value ? (C.overflowX = "hidden", C.overflowY = "hidden", C.display = "flex", C.flexDirection = "column", C.flex = "1 1 auto", C.minHeight = "0", C.width = "100%", C.maxWidth = "100%", C.minWidth = "0", C.boxSizing = "border-box") : (((Y = e.columns) == null ? void 0 : Y.length) ?? 0) > 0 ? C.overflow = !x.value || x.value.length === 0 ? "hidden" : "auto" : (ee = e.columnOption) != null && ee.fitColumns && e.fit ? C.overflow = "visible" : C.overflow = !x.value || x.value.length === 0 ? "hidden" : "auto"), C;
3524
+ }), H = f(null);
3525
+ function R(C, N) {
3526
+ var Y, ee;
3527
+ e.enableColumnSettingSolution && ((ee = (Y = H.value) == null ? void 0 : Y.persistColumnWidths) == null || ee.call(Y, N));
3528
+ }
3529
+ const {
3530
+ renderGridHeader: te,
3531
+ renderGridColumnResizeOverlay: X,
3532
+ shouldShowHeader: q
3533
+ } = oa(e, t, c, v, S, ve, k, y, Qe, W, Se, ne, Ee, $, He, Be, le, Ne, x, i, R), {
3534
+ renderDataGridPagination: ge
3535
+ } = aa(e, t, k, le, j, $), {
3536
+ renderDataGridSidebar: we
3537
+ } = la(e, Ce, $, He, le), {
3538
+ renderDisableMask: K
3539
+ } = ia(), {
3540
+ renderDataGridSummary: gt,
3541
+ summaryPosition: xe
3542
+ } = ra(e, k, ve), {
3543
+ renderHorizontalScrollbar: ht
3544
+ } = ua(e, c, le), {
3545
+ renderVerticalScrollbar: pt
3546
+ } = sa(e, c, le), {
3547
+ renderFilterPanel: Tt
3548
+ } = ca(e, ve, k, W, Be, le), {
3549
+ renderGroupPanel: st
3550
+ } = da(e, k, y, G, le);
3551
+ let lt = null;
3552
+ function pn() {
3553
+ var N;
3549
3554
  if (!c.value)
3550
3555
  return;
3551
3556
  const C = Math.ceil(c.value.clientHeight / b.value);
3552
- C > h.value && (h.value = C, _()), ze.value = ((H = d.value) == null ? void 0 : H.clientHeight) || 0, Je.value = c.value.clientWidth || 0, d.value && (Ne.value = d.value.clientWidth), oe();
3557
+ C > h.value && (h.value = C, _()), ze.value = ((N = d.value) == null ? void 0 : N.clientHeight) || 0, Xe.value = c.value.clientWidth || 0, d.value && (Ne.value = d.value.clientWidth), oe();
3553
3558
  }
3554
- function hn() {
3555
- Le !== null && cancelAnimationFrame(Le), Le = requestAnimationFrame(() => {
3556
- Le = null, st();
3559
+ function yn() {
3560
+ lt !== null && cancelAnimationFrame(lt), lt = requestAnimationFrame(() => {
3561
+ lt = null, pn();
3557
3562
  });
3558
3563
  }
3559
- ot(() => {
3560
- c.value && (h.value = Math.max(Math.ceil(c.value.clientHeight / b.value), h.value), x.value = je(0, F.value + s - 1), wo(c.value, hn), oe(), nt(() => {
3561
- c.value && (Je.value = c.value.clientWidth), d.value && (Ne.value = d.value.clientWidth, ze.value = d.value.clientHeight);
3564
+ nt(() => {
3565
+ c.value && (h.value = Math.max(Math.ceil(c.value.clientHeight / b.value), h.value), x.value = je(0, F.value + s - 1), So(c.value, yn), oe(), tt(() => {
3566
+ c.value && (Xe.value = c.value.clientWidth), d.value && (Ne.value = d.value.clientWidth, ze.value = d.value.clientHeight);
3562
3567
  })), I.value && O();
3563
3568
  }), vt(() => {
3564
- Le !== null && cancelAnimationFrame(Le);
3569
+ lt !== null && cancelAnimationFrame(lt);
3565
3570
  });
3566
- function pn() {
3571
+ function bn() {
3567
3572
  const C = k.insertNewDataItem();
3568
3573
  return w(), C;
3569
3574
  }
3570
- function yn() {
3575
+ function Cn() {
3571
3576
  const C = k.insertNewDataItem(x.value.length);
3572
3577
  return w(), C;
3573
3578
  }
3574
- function bn(C) {
3579
+ function wn(C) {
3575
3580
  fe.onEditingRow(C);
3576
3581
  }
3577
- function Cn(C) {
3582
+ function xn(C) {
3578
3583
  k.removeDataItem(C), w();
3579
3584
  }
3580
- function wn(C) {
3585
+ function Sn(C) {
3581
3586
  k.removeDataItemById(C), w();
3582
3587
  }
3583
- function xn(C) {
3588
+ function Tn(C) {
3584
3589
  fe.acceptEditingRow(C);
3585
3590
  }
3586
- function Sn(C) {
3591
+ function Bn(C) {
3587
3592
  fe.cancelEditingRow(C);
3588
3593
  }
3589
- function jt(C) {
3590
- x.value.forEach((H, K) => {
3591
- const te = k.getVisibleDataItems().findIndex((re) => re === H.raw), me = x.value[K - 1];
3594
+ function Ht(C) {
3595
+ x.value.forEach((N, Y) => {
3596
+ const ee = k.getVisibleDataItems().findIndex((re) => re === N.raw), me = x.value[Y - 1];
3592
3597
  C.forEach((re) => {
3593
- H.data[re.field] ? De.updateCellByColumn(H.data[re.field], re, me, H.raw) : H.data[re.field] = De.createCellByColumn(re, te, H.raw, H, me);
3598
+ N.data[re.field] ? De.updateCellByColumn(N.data[re.field], re, me, N.raw) : N.data[re.field] = De.createCellByColumn(re, ee, N.raw, N, me);
3594
3599
  });
3595
- const Z = Object.keys(H.data), pe = C.map((re) => re.field);
3600
+ const Z = Object.keys(N.data), pe = C.map((re) => re.field);
3596
3601
  Z.filter((re) => !pe.includes(re)).forEach((re) => {
3597
- delete H.data[re];
3602
+ delete N.data[re];
3598
3603
  });
3599
3604
  });
3600
3605
  }
3601
3606
  ce(() => e.editable, () => {
3602
- jt(p.value);
3607
+ Ht(p.value);
3603
3608
  });
3604
3609
  function it(C) {
3605
- C && (p.value = C, he(p), jt(p.value), e.showSetting && de(p), $e(p.value), _e(k, Te), oe());
3610
+ C && (p.value = C, he(p), Ht(p.value), e.showSetting && de(p), _e(p.value), Ge(k, Be), oe());
3606
3611
  }
3607
- function Tn() {
3612
+ function Fn() {
3608
3613
  $.emptyCurrentRowId();
3609
3614
  }
3610
- ce(() => e.showSetting, (C, H) => {
3611
- C !== H && (C ? de(p) : Ce(p), it(p.value));
3615
+ ce(() => e.showSetting, (C, N) => {
3616
+ C !== N && (C ? de(p) : be(p), it(p.value));
3612
3617
  });
3613
- function Tt(C) {
3614
- N.updatePagination(C);
3618
+ function Bt(C) {
3619
+ j.updatePagination(C);
3615
3620
  }
3616
- function Ht(C, H) {
3621
+ function zt(C, N) {
3617
3622
  if (C) {
3618
- const K = !!(H != null && H.keepScrollTop || H != null && H.keepScrollPosition), te = K ? le.offsetY.value : 0;
3619
- k.load(C), va({
3620
- keepScroll: K,
3621
- savedOffsetY: te,
3623
+ const Y = !!(N != null && N.keepScrollTop || N != null && N.keepScrollPosition), ee = Y ? le.offsetY.value : 0;
3624
+ k.load(C), ha({
3625
+ keepScroll: Y,
3626
+ savedOffsetY: ee,
3622
3627
  resetScroll: w,
3623
3628
  scrollTo: le.scrollTo
3624
- }), x.value.length || (ae.value = []), Xe.value && se.value && L();
3629
+ }), x.value.length || (ae.value = []), Ye.value && se.value && L();
3625
3630
  }
3626
3631
  }
3627
- ce(k.shouldGroupingData, (C, H) => {
3628
- C !== H && (k.updateDataView(), w());
3632
+ ce(k.shouldGroupingData, (C, N) => {
3633
+ C !== N && (k.updateDataView(), w());
3629
3634
  }), ce(() => e.columns, (C) => {
3630
3635
  if (e.showSetting && e.enableColumnSettingSolution) {
3631
3636
  it(p.value);
@@ -3633,230 +3638,230 @@ const mn = /* @__PURE__ */ Ge({
3633
3638
  }
3634
3639
  it(C);
3635
3640
  });
3636
- function Bt(C) {
3637
- we.activeRowById(C);
3641
+ function Ft(C) {
3642
+ Ce.activeRowById(C);
3638
3643
  }
3639
- const Bn = ca($, k, W, p, N, u, ve, Te, it, Ht, Tt);
3640
- function Fn(C, H = {
3644
+ const kn = fa($, k, W, p, j, u, ve, Be, it, zt, Bt);
3645
+ function Mn(C, N = {
3641
3646
  isCurrent: !0
3642
3647
  }) {
3643
- H != null && H.isCurrent && Bt(C), $.selectItemById(C);
3648
+ N != null && N.isCurrent && Ft(C), $.selectItemById(C);
3644
3649
  }
3645
- function kn(C) {
3646
- const H = u.idField.value, K = x.value.find((te) => te.raw[H] === C);
3647
- K && we.clickRowItem(K);
3650
+ function On(C) {
3651
+ const N = u.idField.value, Y = x.value.find((ee) => ee.raw[N] === C);
3652
+ Y && Ce.clickRowItem(Y);
3648
3653
  }
3649
- function Mn(C) {
3650
- const H = u.idField.value, K = x.value.find((te) => te.raw[H] === C);
3651
- K && we.changeRow(K);
3654
+ function En(C) {
3655
+ const N = u.idField.value, Y = x.value.find((ee) => ee.raw[N] === C);
3656
+ Y && Ce.changeRow(Y);
3652
3657
  }
3653
- function On(C) {
3658
+ function In(C) {
3654
3659
  $.selectItemByIds(C);
3655
3660
  }
3656
- function En() {
3661
+ function Pn() {
3657
3662
  return x.value;
3658
3663
  }
3659
- function In(C) {
3660
- return x.value.filter((H) => C.includes(H.raw[e.idField]));
3664
+ function Dn(C) {
3665
+ return x.value.filter((N) => C.includes(N.raw[e.idField]));
3661
3666
  }
3662
- function Pn() {
3667
+ function Rn() {
3663
3668
  return $.getSelectedItems();
3664
3669
  }
3665
- function Dn() {
3670
+ function Nn() {
3666
3671
  return $.getSelectionRow();
3667
3672
  }
3668
- function Rn() {
3673
+ function jn() {
3669
3674
  fe.endEditCell();
3670
3675
  }
3671
- function Nn(C, H = {
3676
+ function Hn(C, N = {
3672
3677
  clearCurrent: !0
3673
3678
  }) {
3674
- H != null && H.clearCurrent && Bt(""), $.unSelectItemByIds(C);
3679
+ N != null && N.clearCurrent && Ft(""), $.unSelectItemByIds(C);
3675
3680
  }
3676
- function zt() {
3681
+ function Lt() {
3677
3682
  $.clearSelection();
3678
3683
  }
3679
- function jn() {
3684
+ function zn() {
3680
3685
  return $.currentSelectedDataId.value;
3681
3686
  }
3682
- function Hn() {
3687
+ function Ln() {
3683
3688
  le.scrollToBottom();
3684
3689
  }
3685
- function zn(C) {
3690
+ function Vn(C) {
3686
3691
  le.scrollToRowByIndex(C);
3687
3692
  }
3688
- function Ln(C) {
3693
+ function An(C) {
3689
3694
  le.scrollRowIntoView(C);
3690
3695
  }
3691
- function Vn() {
3692
- $.keepSelectingOnPaging.value || zt(), k.updateVisibleDataSummary(x.value), Tt({
3696
+ function Wn() {
3697
+ $.keepSelectingOnPaging.value || Lt(), k.updateVisibleDataSummary(x.value), Bt({
3693
3698
  total: k.dataView.value.length,
3694
3699
  index: 1
3695
3700
  });
3696
3701
  }
3697
- function An(C) {
3702
+ function Gn(C) {
3698
3703
  $.updateSelectedValues(C);
3699
3704
  }
3700
- function Wn(C) {
3705
+ function _n(C) {
3701
3706
  $.removeSelectedValues(C);
3702
3707
  }
3703
- function Gn() {
3708
+ function $n() {
3704
3709
  return e.displayType;
3705
3710
  }
3706
- function _n() {
3711
+ function Un() {
3707
3712
  var C;
3708
- (C = Kt()) == null || C.update();
3709
- }
3710
- function $n(C) {
3711
- const H = u.idField.value;
3712
- let K = 0;
3713
- const te = k.dataView.value;
3714
- for (let me = 0; me < te.length; me++) {
3715
- const Z = te[me];
3713
+ (C = en()) == null || C.update();
3714
+ }
3715
+ function qn(C) {
3716
+ const N = u.idField.value;
3717
+ let Y = 0;
3718
+ const ee = k.dataView.value;
3719
+ for (let me = 0; me < ee.length; me++) {
3720
+ const Z = ee[me];
3716
3721
  if (!(Z.__fv_data_grid_group_row__ || Z.__fv_data_grid_group_summary__)) {
3717
- if (Z[H] === C)
3718
- return K;
3719
- K++;
3722
+ if (Z[N] === C)
3723
+ return Y;
3724
+ Y++;
3720
3725
  }
3721
3726
  }
3722
3727
  return -1;
3723
3728
  }
3724
- const Ft = {
3725
- activeRowById: Bt,
3726
- selectRowById: Mn,
3727
- addNewDataItem: pn,
3728
- addNewDataItemAtLast: yn,
3729
- removeDataItem: Cn,
3730
- removeDataItemById: wn,
3731
- editDataItem: bn,
3732
- acceptDataItem: xn,
3733
- cancelDataItem: Sn,
3734
- selectItemById: Fn,
3735
- selectItemByIds: On,
3729
+ const kt = {
3730
+ activeRowById: Ft,
3731
+ selectRowById: En,
3732
+ addNewDataItem: bn,
3733
+ addNewDataItemAtLast: Cn,
3734
+ removeDataItem: xn,
3735
+ removeDataItemById: Sn,
3736
+ editDataItem: wn,
3737
+ acceptDataItem: Tn,
3738
+ cancelDataItem: Bn,
3739
+ selectItemById: Mn,
3740
+ selectItemByIds: In,
3736
3741
  updateColumns: it,
3737
- updateDataSource: Ht,
3738
- updatePagination: Tt,
3739
- getVisibleData: En,
3740
- getVisibleDataByIds: In,
3741
- getSelectedItems: Pn,
3742
- getSelectionRow: Dn,
3743
- getCurrentRowId: jn,
3744
- endEditCell: Rn,
3745
- clickRowItemById: kn,
3746
- clearSelection: zt,
3747
- unSelectItemByIds: Nn,
3748
- scrollToBottom: Hn,
3749
- scrollToRowByIndex: zn,
3750
- scrollRowIntoView: Ln,
3751
- updateDerivedData: Vn,
3752
- emptyCurrentRowId: Tn,
3753
- updateSelectedValues: An,
3754
- removeSelectedValues: Wn,
3755
- getDisplayType: Gn,
3756
- ...Bn,
3757
- forceUpdate: _n,
3758
- getDataIndexById: $n
3742
+ updateDataSource: zt,
3743
+ updatePagination: Bt,
3744
+ getVisibleData: Pn,
3745
+ getVisibleDataByIds: Dn,
3746
+ getSelectedItems: Rn,
3747
+ getSelectionRow: Nn,
3748
+ getCurrentRowId: zn,
3749
+ endEditCell: jn,
3750
+ clickRowItemById: On,
3751
+ clearSelection: Lt,
3752
+ unSelectItemByIds: Hn,
3753
+ scrollToBottom: Ln,
3754
+ scrollToRowByIndex: Vn,
3755
+ scrollRowIntoView: An,
3756
+ updateDerivedData: Wn,
3757
+ emptyCurrentRowId: Fn,
3758
+ updateSelectedValues: Gn,
3759
+ removeSelectedValues: _n,
3760
+ getDisplayType: $n,
3761
+ ...kn,
3762
+ forceUpdate: Un,
3763
+ getDataIndexById: qn
3759
3764
  };
3760
- t.expose(Ft);
3761
- const Lt = da(e, t, Ft, ve, fe, x), {
3762
- renderDataArea: Un
3763
- } = Tl(e, t, d, v, S, qe, Ye, ve, fe, G, Lt, we, Ie, le, x, k), {
3764
- renderDataArea: qn
3765
- } = Fl(e, t, d, v, S, qe, Ye, ve, fe, G, Lt, we, Ie, le, x, k, p), ht = E(() => !x.value || !x.value.length), {
3766
- renderEmpty: Vt
3767
- } = fa(e, t), Yn = E(() => ({
3765
+ t.expose(kt);
3766
+ const Vt = ma(e, t, kt, ve, fe, x), {
3767
+ renderDataArea: Yn
3768
+ } = Fl(e, t, d, v, S, Ue, qe, ve, fe, G, Vt, Ce, Ie, le, x, k), {
3769
+ renderDataArea: Xn
3770
+ } = Ml(e, t, d, v, S, Ue, qe, ve, fe, G, Vt, Ce, Ie, le, x, k, p), yt = E(() => !x.value || !x.value.length), {
3771
+ renderEmpty: At
3772
+ } = va(e, t), Jn = E(() => ({
3768
3773
  "d-flex": !0,
3769
- "justify-content-between": X.value && ue.value,
3770
- "justify-content-end": X.value && !ue.value,
3774
+ "justify-content-between": J.value && ue.value,
3775
+ "justify-content-end": J.value && !ue.value,
3771
3776
  "position-relative": !0,
3772
3777
  "fv-datagrid-pagination": !0
3773
- })), Xn = E(() => ({
3778
+ })), Zn = E(() => ({
3774
3779
  "flex-direction": "row"
3775
- })), Jn = E(() => ({
3780
+ })), Qn = E(() => ({
3776
3781
  "d-flex": !0,
3777
3782
  "align-items-center": !0
3778
3783
  }));
3779
- mo("dataGridContext", {
3784
+ go("dataGridContext", {
3780
3785
  useColumnComposition: ve,
3781
3786
  dataView: k,
3782
3787
  useFilterComposition: W,
3783
3788
  useFitColumnComposition: ne,
3784
- useSortComposition: Te,
3789
+ useSortComposition: Be,
3785
3790
  useVirtualScrollComposition: le,
3786
- dataGridComponentInstance: Ft
3791
+ dataGridComponentInstance: kt
3787
3792
  });
3788
- function Zn(C) {
3789
- let H;
3790
- return l(ga, {
3793
+ function Kn(C) {
3794
+ let N;
3795
+ return l(pa, {
3791
3796
  class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
3792
- }, kl(H = Object.keys(C.data).filter((K) => {
3793
- var te, me;
3794
- return ((te = C.data[K].column) == null ? void 0 : te.dataType) !== ut && ((me = C.data[K].column) == null ? void 0 : me.dataType) !== rt;
3795
- }).map((K) => {
3797
+ }, Ol(N = Object.keys(C.data).filter((Y) => {
3798
+ var ee, me;
3799
+ return ((ee = C.data[Y].column) == null ? void 0 : ee.dataType) !== ut && ((me = C.data[Y].column) == null ? void 0 : me.dataType) !== rt;
3800
+ }).map((Y) => {
3796
3801
  var me, Z;
3797
- const te = C.data[K];
3802
+ const ee = C.data[Y];
3798
3803
  return l("div", {
3799
3804
  class: "farris-group-wrap w-100"
3800
3805
  }, [l("div", {
3801
3806
  class: "form-group farris-form-group common-group"
3802
- }, [l(pa, {
3803
- text: (me = te.column) == null ? void 0 : me.title,
3804
- title: (Z = te.column) == null ? void 0 : Z.title
3807
+ }, [l(ba, {
3808
+ text: (me = ee.column) == null ? void 0 : me.title,
3809
+ title: (Z = ee.column) == null ? void 0 : Z.title
3805
3810
  }, null), l("div", {
3806
3811
  class: "farris-input-wrap"
3807
- }, [te.getEditor(te)])])]);
3808
- })) ? H : {
3809
- default: () => [H]
3812
+ }, [ee.getEditor(ee)])])]);
3813
+ })) ? N : {
3814
+ default: () => [N]
3810
3815
  });
3811
3816
  }
3812
- function Qn(C, H) {
3813
- const K = {}, te = {}, me = [], Z = [], pe = {};
3814
- Object.keys(H.data).filter((ke) => {
3815
- var re, Ve;
3816
- return ((re = H.data[ke].column) == null ? void 0 : re.dataType) !== ut && ((Ve = H.data[ke].column) == null ? void 0 : Ve.dataType) !== rt;
3817
+ function eo(C, N) {
3818
+ const Y = {}, ee = {}, me = [], Z = [], pe = {};
3819
+ Object.keys(N.data).filter((ke) => {
3820
+ var re, Le;
3821
+ return ((re = N.data[ke].column) == null ? void 0 : re.dataType) !== ut && ((Le = N.data[ke].column) == null ? void 0 : Le.dataType) !== rt;
3817
3822
  }).forEach((ke) => {
3818
- var Ve, _t, $t;
3819
- const re = H.data[ke];
3820
- K[ke] = re.data, fe.endEditByCell(re), te[ke] = re.data, me.push(re.column), Z.push(re), pe[ke] = ($t = (_t = (Ve = re.column) == null ? void 0 : Ve.editor) == null ? void 0 : _t.context) == null ? void 0 : $t.editor;
3823
+ var Le, $t, Ut;
3824
+ const re = N.data[ke];
3825
+ Y[ke] = re.data, fe.endEditByCell(re), ee[ke] = re.data, me.push(re.column), Z.push(re), pe[ke] = (Ut = ($t = (Le = re.column) == null ? void 0 : Le.editor) == null ? void 0 : $t.context) == null ? void 0 : Ut.editor;
3821
3826
  }), t.emit("endEditRow", {
3822
- row: H,
3827
+ row: N,
3823
3828
  cells: Z,
3824
3829
  columns: me,
3825
- oldValues: K,
3826
- newValues: te,
3830
+ oldValues: Y,
3831
+ newValues: ee,
3827
3832
  editors: pe
3828
3833
  }), fe.showRowEditPanel.value = !1;
3829
3834
  }
3830
- function Kn() {
3831
- const C = $.currentSelectedDataId.value, H = x.value.find((K) => K.raw[e.idField] === C);
3832
- return H ? l(on, {
3835
+ function to() {
3836
+ const C = $.currentSelectedDataId.value, N = x.value.find((Y) => Y.raw[e.idField] === C);
3837
+ return N ? l(an, {
3833
3838
  showHeader: !1,
3834
3839
  modelValue: fe.showRowEditPanel.value,
3835
- "onUpdate:modelValue": (K) => fe.showRowEditPanel.value = K,
3840
+ "onUpdate:modelValue": (Y) => fe.showRowEditPanel.value = Y,
3836
3841
  width: 600
3837
3842
  }, {
3838
- default: () => Zn(H),
3839
- footerTemplate: () => l(Be, null, [l(qt, {
3843
+ default: () => Kn(N),
3844
+ footerTemplate: () => l(Fe, null, [l(Yt, {
3840
3845
  class: "mr-3",
3841
3846
  type: "secondary",
3842
- onClick: (K) => {
3847
+ onClick: (Y) => {
3843
3848
  fe.showRowEditPanel.value = !1;
3844
3849
  }
3845
3850
  }, {
3846
3851
  default: () => [Pe("取消")]
3847
- }), l(qt, {
3848
- onClick: (K) => {
3849
- Qn(K, H);
3852
+ }), l(Yt, {
3853
+ onClick: (Y) => {
3854
+ eo(Y, N);
3850
3855
  }
3851
3856
  }, {
3852
3857
  default: () => [Pe("确定")]
3853
3858
  })])
3854
3859
  }) : null;
3855
3860
  }
3856
- function At() {
3857
- return m.value ? qn() : Un();
3861
+ function Wt() {
3862
+ return m.value ? Xn() : Yn();
3858
3863
  }
3859
- function eo() {
3864
+ function no() {
3860
3865
  var pe;
3861
3866
  const C = V.value || Q.value ? {
3862
3867
  width: "100%",
@@ -3867,7 +3872,7 @@ const mn = /* @__PURE__ */ Ge({
3867
3872
  } : {
3868
3873
  width: "max-content",
3869
3874
  minWidth: "100%"
3870
- }, H = ee.value && p.value.length > 0 ? j() : null, K = At(), te = ht.value ? Vt() : null, me = V.value || Q.value, Z = (((pe = x.value) == null ? void 0 : pe.length) ?? 0) > 0 ? "auto" : "visible";
3875
+ }, N = q.value && p.value.length > 0 ? te() : null, Y = Wt(), ee = yt.value ? At() : null, me = V.value || Q.value, Z = (((pe = x.value) == null ? void 0 : pe.length) ?? 0) > 0 ? "auto" : "visible";
3871
3876
  return me ? l("div", {
3872
3877
  style: {
3873
3878
  ...C,
@@ -3877,7 +3882,7 @@ const mn = /* @__PURE__ */ Ge({
3877
3882
  minHeight: 0,
3878
3883
  overflow: "hidden"
3879
3884
  }
3880
- }, [H, l("div", {
3885
+ }, [N, l("div", {
3881
3886
  style: {
3882
3887
  flex: "1 1 auto",
3883
3888
  minHeight: 0,
@@ -3885,28 +3890,28 @@ const mn = /* @__PURE__ */ Ge({
3885
3890
  overflowY: Z,
3886
3891
  boxSizing: "border-box"
3887
3892
  }
3888
- }, [K, te])]) : l("div", {
3893
+ }, [Y, ee])]) : l("div", {
3889
3894
  style: C
3890
- }, [H, K, te]);
3895
+ }, [N, Y, ee]);
3891
3896
  }
3892
- function to(C) {
3893
- const H = C.map((Z) => Z.id), K = [...p.value, ...o, ...a];
3894
- K.filter((Z) => Z.dataType !== ut && Z.dataType !== rt).forEach((Z) => {
3897
+ function oo(C) {
3898
+ const N = C.map((Z) => Z.id), Y = [...p.value, ...o, ...a];
3899
+ Y.filter((Z) => Z.dataType !== ut && Z.dataType !== rt).forEach((Z) => {
3895
3900
  const pe = C.find((ke) => ke.id === Z.id);
3896
3901
  pe && (Z.width = pe.actualWidth || Z.width || 120, pe.actualWidth !== void 0 && (Z.actualWidth = pe.actualWidth), Z.title = pe.title, Z.halign = pe.halign, Z.align = pe.align);
3897
- }), a = K.filter((Z) => Z.dataType === ut || Z.dataType === rt);
3898
- const te = K.filter((Z) => Z.dataType !== ut && Z.dataType !== rt), me = te.filter((Z) => H.includes(Z.id));
3899
- o = te.filter((Z) => !H.includes(Z.id)), me.sort((Z, pe) => {
3900
- const ke = C.findIndex((Ve) => Ve.id === Z.id), re = C.findIndex((Ve) => Ve.id === pe.id);
3902
+ }), a = Y.filter((Z) => Z.dataType === ut || Z.dataType === rt);
3903
+ const ee = Y.filter((Z) => Z.dataType !== ut && Z.dataType !== rt), me = ee.filter((Z) => N.includes(Z.id));
3904
+ o = ee.filter((Z) => !N.includes(Z.id)), me.sort((Z, pe) => {
3905
+ const ke = C.findIndex((Le) => Le.id === Z.id), re = C.findIndex((Le) => Le.id === pe.id);
3901
3906
  return ke - re;
3902
3907
  }), it(me);
3903
3908
  }
3904
- return () => e.visible && l(Be, null, [l("div", {
3909
+ return () => e.visible && l(Fe, null, [l("div", {
3905
3910
  ref: T,
3906
3911
  class: U.value,
3907
3912
  style: D.value,
3908
- onWheel: Qe
3909
- }, [c.value && gt(), c.value && !m.value && ee.value && p.value.length > 0 && j(), c.value && (J.value === "top" || J.value === "both") && be(), l("div", {
3913
+ onWheel: Ze
3914
+ }, [c.value && st(), c.value && !m.value && q.value && p.value.length > 0 && te(), c.value && (xe.value === "top" || xe.value === "both") && gt(), l("div", {
3910
3915
  ref: c,
3911
3916
  class: r.value,
3912
3917
  style: M.value,
@@ -3916,22 +3921,23 @@ const mn = /* @__PURE__ */ Ge({
3916
3921
  onMouseleave: (C) => {
3917
3922
  C.stopPropagation(), e.scrollbarMode !== "always" && B.value && !m.value && (B.value = !1);
3918
3923
  }
3919
- }, [c.value && m.value ? eo() : [c.value && !m.value && q(x), c.value && At(), c.value && ht.value && !m.value && Vt()], c.value && !ht.value && xt(), c.value && !ht.value && Fe()]), c.value && (J.value === "bottom" || J.value === "both") && !m.value && be(), (X.value || ue.value) && !m.value && l("div", {
3920
- class: Yn.value,
3921
- style: Xn.value
3924
+ }, [c.value && m.value ? no() : [c.value && !m.value && we(x), c.value && Wt(), c.value && yt.value && !m.value && At()], c.value && !yt.value && ht(), c.value && !yt.value && pt()]), c.value && (xe.value === "bottom" || xe.value === "both") && !m.value && gt(), (J.value || ue.value) && !m.value && l("div", {
3925
+ class: Jn.value,
3926
+ style: Zn.value
3922
3927
  }, [ue.value && l("div", {
3923
- class: Jn.value
3924
- }, [l("div", null, ["已选:" + ae.value.length, Pe(" 条")])]), X.value && Y()]), R(), g.value && ge()]), n() && Kn(), e.enableColumnSettingSolution && l(ma, {
3928
+ class: Qn.value
3929
+ }, [l("div", null, ["已选:" + ae.value.length, Pe(" 条")])]), J.value && ge()]), X(), g.value && K()]), n() && to(), e.enableColumnSettingSolution && l(ga, {
3930
+ ref: H,
3925
3931
  columns: [...p.value, ...o],
3926
3932
  componentId: e.id,
3927
3933
  modelValue: i.value,
3928
3934
  "onUpdate:modelValue": (C) => i.value = C,
3929
- onChangeColumnSetting: to
3935
+ onChangeColumnSetting: oo
3930
3936
  }, null)]);
3931
3937
  }
3932
3938
  });
3933
- en(mn);
3934
- const Ml = {
3939
+ tn(vn);
3940
+ const El = {
3935
3941
  width: { Type: Number, default: 400 },
3936
3942
  /**
3937
3943
  * 类型
@@ -3973,15 +3979,15 @@ const Ml = {
3973
3979
  buttons: { type: Object, default: [] },
3974
3980
  enableNeverShowAgain: { Type: Boolean, default: !1 }
3975
3981
  };
3976
- function Rt() {
3982
+ function Nt() {
3977
3983
  return new DOMException("The request is not allowed", "NotAllowedError");
3978
3984
  }
3979
- async function Ol(e) {
3985
+ async function Il(e) {
3980
3986
  if (!navigator.clipboard)
3981
- throw Rt();
3987
+ throw Nt();
3982
3988
  return navigator.clipboard.writeText(e);
3983
3989
  }
3984
- async function El(e) {
3990
+ async function Pl(e) {
3985
3991
  const t = document.createElement("span");
3986
3992
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
3987
3993
  const n = window.getSelection(), o = window.document.createRange();
@@ -3993,26 +3999,26 @@ async function El(e) {
3993
3999
  n == null || n.removeAllRanges(), window.document.body.removeChild(t);
3994
4000
  }
3995
4001
  if (!a)
3996
- throw Rt();
4002
+ throw Nt();
3997
4003
  }
3998
- async function Il(e) {
4004
+ async function Dl(e) {
3999
4005
  try {
4000
- await Ol(e);
4006
+ await Il(e);
4001
4007
  } catch (t) {
4002
4008
  try {
4003
- await El(e);
4009
+ await Pl(e);
4004
4010
  } catch (n) {
4005
- throw n || t || Rt();
4011
+ throw n || t || Nt();
4006
4012
  }
4007
4013
  }
4008
4014
  }
4009
- function Pl() {
4015
+ function Rl() {
4010
4016
  async function e(t) {
4011
- await Il(t);
4017
+ await Dl(t);
4012
4018
  }
4013
4019
  return { onCopy: e };
4014
4020
  }
4015
- function Dl(e, t, n, o) {
4021
+ function Nl(e, t, n, o) {
4016
4022
  const a = f(14), i = f(140), s = f(""), b = f(o.value.length), m = E(() => o.value), h = E(() => ({
4017
4023
  "font-size": `${a.value}px`,
4018
4024
  height: "100%"
@@ -4023,7 +4029,7 @@ function Dl(e, t, n, o) {
4023
4029
  b.value = T.length;
4024
4030
  }
4025
4031
  }
4026
- return () => l(Be, null, [l("textarea", {
4032
+ return () => l(Fe, null, [l("textarea", {
4027
4033
  title: "promptMessage",
4028
4034
  name: "promptMessage",
4029
4035
  class: "form-control",
@@ -4037,14 +4043,14 @@ function Dl(e, t, n, o) {
4037
4043
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
4038
4044
  }, [b.value + " / " + i.value])]);
4039
4045
  }
4040
- function Rl(e, t, n, o) {
4041
- const a = Dl(e, t, n, o), i = /* @__PURE__ */ new Map([["text-area", a]]);
4046
+ function jl(e, t, n, o) {
4047
+ const a = Nl(e, t, n, o), i = /* @__PURE__ */ new Map([["text-area", a]]);
4042
4048
  function s(b) {
4043
4049
  return i.get(b) || null;
4044
4050
  }
4045
4051
  return { getEditorRender: s };
4046
4052
  }
4047
- function Nl() {
4053
+ function Hl() {
4048
4054
  const e = f(!1), t = f("复制成功");
4049
4055
  return {
4050
4056
  feedbackStyle: E(() => {
@@ -4071,11 +4077,11 @@ function Nl() {
4071
4077
  toShowFeedback: e
4072
4078
  };
4073
4079
  }
4074
- function jl(e, t) {
4080
+ function zl(e, t) {
4075
4081
  const n = t.getEditorRender(e.promptEditorType);
4076
4082
  return () => n && n();
4077
4083
  }
4078
- function Hl(e, t) {
4084
+ function Ll(e, t) {
4079
4085
  function n(c) {
4080
4086
  if (c == null)
4081
4087
  return 0;
@@ -4128,14 +4134,14 @@ function Hl(e, t) {
4128
4134
  onClick: T
4129
4135
  }, [h.value])])])]);
4130
4136
  }
4131
- function zl(e) {
4137
+ function Vl(e) {
4132
4138
  return () => l("p", {
4133
4139
  class: "toast-msg-detail",
4134
4140
  innerHTML: e.value,
4135
4141
  style: "max-height: calc(100vh - 200px);overflow: auto;"
4136
4142
  }, null);
4137
4143
  }
4138
- function Ll(e, t, n, o, a) {
4144
+ function Al(e, t, n, o, a) {
4139
4145
  const i = f(e.exceptionInfo), s = E(() => {
4140
4146
  const d = t.value === "question" ? "warning" : t.value, v = {
4141
4147
  "f-icon": !0
@@ -4143,13 +4149,13 @@ function Ll(e, t, n, o, a) {
4143
4149
  return v[S] = !0, v;
4144
4150
  }), b = E(() => n.value || i.value && i.value.message), m = E(() => o.value), h = E(() => !!o.value), p = E(() => !!i.value);
4145
4151
  function u() {
4146
- return p.value ? Hl(i, a) : h.value ? zl(m) : () => null;
4152
+ return p.value ? Ll(i, a) : h.value ? Vl(m) : () => null;
4147
4153
  }
4148
4154
  const T = u(), c = E(() => a.locale === "en" ? {
4149
4155
  wordBreak: "keep-all",
4150
4156
  overflowWrap: "break-word"
4151
4157
  } : {});
4152
- return () => l(Be, null, [l("div", {
4158
+ return () => l(Fe, null, [l("div", {
4153
4159
  class: "float-left modal-tips-iconwrap"
4154
4160
  }, [l("span", {
4155
4161
  class: s.value
@@ -4161,7 +4167,7 @@ function Ll(e, t, n, o, a) {
4161
4167
  style: c.value
4162
4168
  }, null), T()])]);
4163
4169
  }
4164
- function Vl(e, t, n, o) {
4170
+ function Wl(e, t, n, o) {
4165
4171
  const {
4166
4172
  onCopy: a
4167
4173
  } = t, {
@@ -4187,8 +4193,8 @@ function Vl(e, t, n, o) {
4187
4193
  style: "cursor: pointer;"
4188
4194
  }, [b.value])]);
4189
4195
  }
4190
- function Al(e, t, n, o, a) {
4191
- const i = f(e.type), s = f(e.buttons), b = f(e.exceptionInfo), m = f(a.ok || e.okButtonText), h = f(a.cancel || e.cancelButtonText), p = f(e.showCancelButton), u = f(e.showOkButton), T = f(a.neverShowAgain), c = f(!1), d = E(() => !!(s.value && s.value.length)), v = E(() => !!(b.value && b.value.detail)), S = E(() => !(s.value && s.value.length) && (u.value || p.value)), x = Vl(e, n, o, a);
4196
+ function Gl(e, t, n, o, a) {
4197
+ const i = f(e.type), s = f(e.buttons), b = f(e.exceptionInfo), m = f(a.ok || e.okButtonText), h = f(a.cancel || e.cancelButtonText), p = f(e.showCancelButton), u = f(e.showOkButton), T = f(a.neverShowAgain), c = f(!1), d = E(() => !!(s.value && s.value.length)), v = E(() => !!(b.value && b.value.detail)), S = E(() => !(s.value && s.value.length) && (u.value || p.value)), x = Wl(e, n, o, a);
4192
4198
  m.value === "关闭" ? m.value = a.close : m.value === "知道了" && (m.value = a.exception.roger);
4193
4199
  function B(W) {
4194
4200
  i.value === "question" && t.emit("reject"), t.emit("close");
@@ -4208,13 +4214,13 @@ function Al(e, t, n, o, a) {
4208
4214
  class: "custom-control custom-checkbox mb-0",
4209
4215
  onClick: G,
4210
4216
  style: "position: absolute;left: 40px;"
4211
- }, [Zt(l("input", {
4217
+ }, [Qt(l("input", {
4212
4218
  id: "lookup-include-childs-input",
4213
4219
  "onUpdate:modelValue": (W) => c.value = W,
4214
4220
  title: "checkbox-input",
4215
4221
  type: "checkbox",
4216
4222
  class: "custom-control-input"
4217
- }, null), [[vo, c.value]]), l("label", {
4223
+ }, null), [[ho, c.value]]), l("label", {
4218
4224
  class: "custom-control-label",
4219
4225
  style: "padding-left: 1.2rem;"
4220
4226
  }, [T.value])]), S.value && p.value && l("button", {
@@ -4233,8 +4239,8 @@ function Al(e, t, n, o, a) {
4233
4239
  class: W.iconClass
4234
4240
  }, null), W.text]))]);
4235
4241
  }
4236
- function Wl(e) {
4237
- const { getLocaleValue: t } = We, n = We.getLocale();
4242
+ function _l(e) {
4243
+ const { getLocaleValue: t } = Ae, n = Ae.getLocale();
4238
4244
  function o(a, i, s) {
4239
4245
  return i === s ? t(a) : i;
4240
4246
  }
@@ -4260,8 +4266,8 @@ function Wl(e) {
4260
4266
  neverShowAgain: o("messageBox.neverShowAgain") || "不再提示"
4261
4267
  };
4262
4268
  }
4263
- const Gl = ["moz", "ms", "webkit"];
4264
- function _l() {
4269
+ const $l = ["moz", "ms", "webkit"];
4270
+ function Ul() {
4265
4271
  let e = 0;
4266
4272
  return (t) => {
4267
4273
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
@@ -4270,17 +4276,17 @@ function _l() {
4270
4276
  return e = n + o, a;
4271
4277
  };
4272
4278
  }
4273
- function $l() {
4279
+ function ql() {
4274
4280
  if (typeof window > "u")
4275
4281
  return () => 0;
4276
4282
  if (window.requestAnimationFrame)
4277
4283
  return window.requestAnimationFrame.bind(window);
4278
- const e = Gl.filter((t) => `${t}RequestAnimationFrame` in window)[0];
4279
- return e ? window[`${e}RequestAnimationFrame`] : _l();
4284
+ const e = $l.filter((t) => `${t}RequestAnimationFrame` in window)[0];
4285
+ return e ? window[`${e}RequestAnimationFrame`] : Ul();
4280
4286
  }
4281
- $l();
4287
+ ql();
4282
4288
  f("");
4283
- function Nt() {
4289
+ function jt() {
4284
4290
  if (typeof window > "u" || typeof navigator > "u")
4285
4291
  return !1;
4286
4292
  const e = navigator.userAgent || navigator.vendor || window.opera, t = [
@@ -4313,17 +4319,17 @@ function Nt() {
4313
4319
  const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, a = screen.width, i = screen.height, s = Math.min(a, i);
4314
4320
  return !!(o && s <= 768);
4315
4321
  }
4316
- function Ul() {
4317
- const e = Nt();
4322
+ function Yl() {
4323
+ const e = jt();
4318
4324
  return e && document.body.classList.add("f-mobile"), e;
4319
4325
  }
4320
- typeof document < "u" && Ul();
4321
- const bt = /* @__PURE__ */ Ge({
4326
+ typeof document < "u" && Yl();
4327
+ const wt = /* @__PURE__ */ We({
4322
4328
  name: "FMessageBox",
4323
- props: Ml,
4329
+ props: El,
4324
4330
  emits: ["accept", "reject", "close", "neverShowAgain"],
4325
4331
  setup(e, t) {
4326
- const n = Wl(e), o = f(e.type), a = f(e.title), i = f(e.detail), s = E(() => {
4332
+ const n = _l(e), o = f(e.type), a = f(e.title), i = f(e.detail), s = E(() => {
4327
4333
  const x = {
4328
4334
  "modal-tips": !0,
4329
4335
  "d-flex": !0,
@@ -4335,7 +4341,7 @@ const bt = /* @__PURE__ */ Ge({
4335
4341
  cursor: "default"
4336
4342
  };
4337
4343
  return o.value === "prompt" ? x.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (x.padding = "0.5rem 1.5rem 1rem 1.5rem"), x;
4338
- }), m = Pl(), h = Rl(e, o, a, i), p = Nl(), {
4344
+ }), m = Rl(), h = jl(e, o, a, i), p = Hl(), {
4339
4345
  feedbackStyle: u,
4340
4346
  feedbackMessage: T
4341
4347
  } = p;
@@ -4348,14 +4354,14 @@ const bt = /* @__PURE__ */ Ge({
4348
4354
  function d() {
4349
4355
  switch (o.value) {
4350
4356
  case "prompt":
4351
- return jl(e, h);
4357
+ return zl(e, h);
4352
4358
  default:
4353
- return Ll(e, o, a, i, n);
4359
+ return Al(e, o, a, i, n);
4354
4360
  }
4355
4361
  }
4356
- const v = d(), S = Al(e, t, m, p, n);
4362
+ const v = d(), S = Gl(e, t, m, p, n);
4357
4363
  return () => l("div", {
4358
- class: ["farris-messager", Nt() ? "is-mobile" : ""]
4364
+ class: ["farris-messager", jt() ? "is-mobile" : ""]
4359
4365
  }, [!e.exceptionInfo && l("div", {
4360
4366
  style: "height: 30px;width: 100%;position: absolute;",
4361
4367
  class: "messager-draggable"
@@ -4374,14 +4380,14 @@ const bt = /* @__PURE__ */ Ge({
4374
4380
  detail: "",
4375
4381
  ...o
4376
4382
  };
4377
- a = Se(x);
4383
+ a = Te(x);
4378
4384
  } else
4379
- a = Se({
4385
+ a = Te({
4380
4386
  ...t
4381
4387
  });
4382
4388
  const i = !1, s = a.type === "error" || a.type === "prompt", b = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", m = a.acceptCallback || (() => {
4383
4389
  }), h = a.rejectCallback || (() => {
4384
- }), p = Kt();
4390
+ }), p = en();
4385
4391
  let u = null;
4386
4392
  if (p && p.appContext) {
4387
4393
  const {
@@ -4390,7 +4396,7 @@ const bt = /* @__PURE__ */ Ge({
4390
4396
  dt in v && (u = v[dt]);
4391
4397
  }
4392
4398
  u || (u = Me.app._context.provides[dt]);
4393
- let T = null, c = u || new un(Me.app);
4399
+ let T = null, c = u || new sn(Me.app);
4394
4400
  const d = () => {
4395
4401
  T && (T == null || T.destroy(), c = null);
4396
4402
  };
@@ -4404,7 +4410,7 @@ const bt = /* @__PURE__ */ Ge({
4404
4410
  showMaxButton: !1,
4405
4411
  draggable: !0,
4406
4412
  dragHandle: ".messager-draggable",
4407
- render: () => l(bt, wt(a, {
4413
+ render: () => l(wt, St(a, {
4408
4414
  onAccept: m,
4409
4415
  onReject: h,
4410
4416
  onClose: d,
@@ -4413,7 +4419,7 @@ const bt = /* @__PURE__ */ Ge({
4413
4419
  }), c == null ? void 0 : c.getCurrentModal();
4414
4420
  }
4415
4421
  static info(t, n) {
4416
- const o = Se({
4422
+ const o = Te({
4417
4423
  type: "info",
4418
4424
  title: t,
4419
4425
  detail: n,
@@ -4423,7 +4429,7 @@ const bt = /* @__PURE__ */ Ge({
4423
4429
  Me.show(o);
4424
4430
  }
4425
4431
  static warning(t, n) {
4426
- const o = Se({
4432
+ const o = Te({
4427
4433
  type: "warning",
4428
4434
  title: t,
4429
4435
  detail: n,
@@ -4433,7 +4439,7 @@ const bt = /* @__PURE__ */ Ge({
4433
4439
  Me.show(o);
4434
4440
  }
4435
4441
  static success(t, n) {
4436
- const o = Se({
4442
+ const o = Te({
4437
4443
  type: "success",
4438
4444
  title: t,
4439
4445
  detail: n,
@@ -4443,7 +4449,7 @@ const bt = /* @__PURE__ */ Ge({
4443
4449
  Me.show(o);
4444
4450
  }
4445
4451
  static error(t, n, o) {
4446
- const a = Se({
4452
+ const a = Te({
4447
4453
  width: 500,
4448
4454
  type: "error",
4449
4455
  okButtonText: "关闭",
@@ -4457,7 +4463,7 @@ const bt = /* @__PURE__ */ Ge({
4457
4463
  Me.show(a);
4458
4464
  }
4459
4465
  static prompt(t, n) {
4460
- const o = Se({
4466
+ const o = Te({
4461
4467
  type: "prompt",
4462
4468
  title: t,
4463
4469
  detail: n,
@@ -4467,7 +4473,7 @@ const bt = /* @__PURE__ */ Ge({
4467
4473
  Me.show(o);
4468
4474
  }
4469
4475
  static question(t, n, o, a, i) {
4470
- const s = Se({
4476
+ const s = Te({
4471
4477
  type: "question",
4472
4478
  title: t,
4473
4479
  detail: n,
@@ -4481,7 +4487,7 @@ const bt = /* @__PURE__ */ Ge({
4481
4487
  Me.show(s);
4482
4488
  }
4483
4489
  static showHtmlMsg(t, n, o, a) {
4484
- const i = Se({
4490
+ const i = Te({
4485
4491
  type: t,
4486
4492
  title: n,
4487
4493
  detail: o,
@@ -4492,12 +4498,12 @@ const bt = /* @__PURE__ */ Ge({
4492
4498
  Me.show(i);
4493
4499
  }
4494
4500
  };
4495
- Ae(Me, "app", null);
4501
+ Ve(Me, "app", null);
4496
4502
  let mt = Me;
4497
- bt.install = (e) => {
4498
- e.component(bt.name, bt), mt.app = e, e.provide("FMessageBoxService", mt);
4503
+ wt.install = (e) => {
4504
+ e.component(wt.name, wt), mt.app = e, e.provide("FMessageBoxService", mt);
4499
4505
  };
4500
- const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-design.gitee.io/mapping-editor.schema.json", Xl = "mapping-editor", Jl = "A Farris Input Component", Zl = "object", Ql = {
4506
+ const Xl = "https://json-schema.org/draft/2020-12/schema", Jl = "https://farris-design.gitee.io/mapping-editor.schema.json", Zl = "mapping-editor", Ql = "A Farris Input Component", Kl = "object", ei = {
4501
4507
  fromData: {
4502
4508
  type: "object",
4503
4509
  default: null
@@ -4542,14 +4548,14 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4542
4548
  type: "object",
4543
4549
  default: null
4544
4550
  }
4545
- }, Kl = {
4546
- $schema: ql,
4547
- $id: Yl,
4548
- title: Xl,
4549
- description: Jl,
4550
- type: Zl,
4551
- properties: Ql
4552
- }, vn = {
4551
+ }, ti = {
4552
+ $schema: Xl,
4553
+ $id: Jl,
4554
+ title: Zl,
4555
+ description: Ql,
4556
+ type: Kl,
4557
+ properties: ei
4558
+ }, gn = {
4553
4559
  fromData: { type: Object, default: {} },
4554
4560
  toData: { type: Object, default: {} },
4555
4561
  /**
@@ -4581,7 +4587,7 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4581
4587
  editorParams: { type: Object, default: null },
4582
4588
  onMappingFieldsChanged: { type: Function, default: null },
4583
4589
  beforeOpen: { type: Function }
4584
- }, ei = ya(vn, Kl), ti = {
4590
+ }, ni = Ca(gn, ti), oi = {
4585
4591
  showCloseButton: { type: Boolean, default: !0 },
4586
4592
  position: { type: String, default: "top-center" },
4587
4593
  timeout: { type: Number, default: 3e3 },
@@ -4594,13 +4600,13 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4594
4600
  animate: { type: String, default: "fadeIn" },
4595
4601
  options: { type: Object },
4596
4602
  safeHtml: { type: Boolean, default: !0 }
4597
- }, ni = {
4603
+ }, ai = {
4598
4604
  showCloseButton: { type: Boolean, default: !0 },
4599
4605
  animate: { type: String, default: "fadeIn" },
4600
4606
  options: { type: Object }
4601
- }, Et = /* @__PURE__ */ Ge({
4607
+ }, It = /* @__PURE__ */ We({
4602
4608
  name: "Toast",
4603
- props: ni,
4609
+ props: ai,
4604
4610
  emits: ["close", "click"],
4605
4611
  setup: (e, t) => {
4606
4612
  const n = f(e.animate), o = "fadeOut", a = E(() => e.options), i = f(!1), s = E(() => a.value.title && a.value.message), b = E(() => !a.value.title && a.value.message), m = E(() => {
@@ -4615,7 +4621,7 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4615
4621
  "f-icon": !0
4616
4622
  };
4617
4623
  return W[G] = !0, W;
4618
- }), p = E(() => a.value.title || a.value.message), u = E(() => e.showCloseButton), T = E(() => !!a.value.buttons || !!t.slots.default), c = E(() => We.getLocale() === "en" ? {
4624
+ }), p = E(() => a.value.title || a.value.message), u = E(() => e.showCloseButton), T = E(() => !!a.value.buttons || !!t.slots.default), c = E(() => Ae.getLocale() === "en" ? {
4619
4625
  wordBreak: "keep-all",
4620
4626
  overflowWrap: "break-word"
4621
4627
  } : {});
@@ -4634,7 +4640,7 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4634
4640
  });
4635
4641
  const x = () => {
4636
4642
  var B;
4637
- return l(Be, null, [l("div", {
4643
+ return l(Fe, null, [l("div", {
4638
4644
  class: "after-toast-msg text-right"
4639
4645
  }, [!t.slots.default && ((B = a.value.buttons) == null ? void 0 : B.map((z) => l("span", {
4640
4646
  class: S(z),
@@ -4645,7 +4651,7 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4645
4651
  class: m.value,
4646
4652
  style: "min-height:44px"
4647
4653
  }, [u.value && l("button", {
4648
- title: We.getLocaleValue("messageBox.close"),
4654
+ title: Ae.getLocaleValue("messageBox.close"),
4649
4655
  class: "toast-close f-btn-icon f-bare",
4650
4656
  onClick: d
4651
4657
  }, [l("span", {
@@ -4658,7 +4664,7 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4658
4664
  class: h.value
4659
4665
  }, null)]), l("div", {
4660
4666
  class: "modal-tips-content"
4661
- }, [s.value && l(Be, null, [l("h5", {
4667
+ }, [s.value && l(Fe, null, [l("h5", {
4662
4668
  class: "toast-title modal-tips-title",
4663
4669
  innerHTML: a.value.title
4664
4670
  }, null), l("p", {
@@ -4679,13 +4685,13 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4679
4685
  innerHTML: a.value.message
4680
4686
  }, null))])])]);
4681
4687
  }
4682
- }), Ct = /* @__PURE__ */ Ge({
4688
+ }), xt = /* @__PURE__ */ We({
4683
4689
  name: "Notify",
4684
- props: ti,
4690
+ props: oi,
4685
4691
  emits: ["close", "empty"],
4686
4692
  setup(e, t) {
4687
4693
  var v;
4688
- const n = Nt(), a = `farris-notify-${(v = e.options) != null && v.type ? e.options.type : "info"}}`, i = E(() => ({
4694
+ const n = jt(), a = `farris-notify-${(v = e.options) != null && v.type ? e.options.type : "info"}}`, i = E(() => ({
4689
4695
  "farris-notify": !0,
4690
4696
  [a]: n
4691
4697
  })), s = {
@@ -4725,7 +4731,7 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4725
4731
  class: i.value,
4726
4732
  style: T.value,
4727
4733
  ref: b
4728
- }, [l(Et, {
4734
+ }, [l(It, {
4729
4735
  options: m.value,
4730
4736
  showCloseButton: h.value,
4731
4737
  animate: e.animate,
@@ -4734,10 +4740,10 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-
4734
4740
  };
4735
4741
  }
4736
4742
  });
4737
- class oi {
4743
+ class li {
4738
4744
  constructor() {
4739
- Ae(this, "notifyRefs", []);
4740
- Ae(this, "globalConfig", Se({}));
4745
+ Ve(this, "notifyRefs", []);
4746
+ Ve(this, "globalConfig", Te({}));
4741
4747
  }
4742
4748
  escapeAllHtml(t) {
4743
4749
  if (typeof t != "string" || !t)
@@ -4755,7 +4761,7 @@ class oi {
4755
4761
  ...t
4756
4762
  }), i = document.createElement("div");
4757
4763
  i.style.display = "contents";
4758
- const s = Pt({
4764
+ const s = Dt({
4759
4765
  setup() {
4760
4766
  var h;
4761
4767
  const b = f();
@@ -4773,14 +4779,14 @@ class oi {
4773
4779
  }
4774
4780
  return a.safeHtml && ((h = a.options) != null && h.message) && (a.options.message = n.escapeAllHtml(a.options.message)), vt(() => {
4775
4781
  document.body.removeChild(i);
4776
- }), ot(() => {
4782
+ }), nt(() => {
4777
4783
  n.updateNotifyPositionForCreate(a, b);
4778
- }), () => l(Jt, {
4784
+ }), () => l(Zt, {
4779
4785
  mode: "out-in",
4780
4786
  name: "fade",
4781
4787
  appear: !0
4782
4788
  }, {
4783
- default: () => [l(Ct, wt({
4789
+ default: () => [l(xt, St({
4784
4790
  ref: b
4785
4791
  }, a, {
4786
4792
  onClose: m
@@ -4788,7 +4794,7 @@ class oi {
4788
4794
  });
4789
4795
  }
4790
4796
  });
4791
- return s.provide("NotifyService", this), document.body.appendChild(i), s.use(We.i18n), s.mount(i), s;
4797
+ return s.provide("NotifyService", this), document.body.appendChild(i), s.use(Ae.i18n), s.mount(i), s;
4792
4798
  }
4793
4799
  getNotifyInstances(t) {
4794
4800
  return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
@@ -4853,24 +4859,24 @@ class oi {
4853
4859
  }), this.notifyRefs.length = 0;
4854
4860
  }
4855
4861
  }
4856
- const gn = Symbol("NOTIFY_SERVICE_TOKEN");
4857
- Ct.install = (e) => {
4858
- e.component(Ct.name, Ct), e.component(Et.name, Et);
4859
- const t = new oi();
4860
- e.provide(gn, t), e.provide("FNotifyService", t);
4862
+ const hn = Symbol("NOTIFY_SERVICE_TOKEN");
4863
+ xt.install = (e) => {
4864
+ e.component(xt.name, xt), e.component(It.name, It);
4865
+ const t = new li();
4866
+ e.provide(hn, t), e.provide("FNotifyService", t);
4861
4867
  };
4862
- function It(e) {
4868
+ function Pt(e) {
4863
4869
  return e.reduce((t, n) => {
4864
4870
  var o;
4865
- return t.push(n.data), (o = n.children) != null && o.length && t.push(...It(n.children)), t;
4871
+ return t.push(n.data), (o = n.children) != null && o.length && t.push(...Pt(n.children)), t;
4866
4872
  }, []);
4867
4873
  }
4868
- const Mt = /* @__PURE__ */ Ge({
4874
+ const Ot = /* @__PURE__ */ We({
4869
4875
  name: "FMappingEditor",
4870
- props: vn,
4876
+ props: gn,
4871
4877
  emits: ["submitModal", "update:modelValue"],
4872
4878
  setup(e, t) {
4873
- const n = '<i class="f-icon f-icon-lookup"></i>', o = f(), a = f(e.modelValue || {}), i = f([]), s = f(e.fromData.dataSource || []), b = f([]), m = e.fromData.repositoryToken ? pt(e.fromData.repositoryToken) : null, h = e.toData.repositoryToken ? pt(e.toData.repositoryToken) : null, p = pt(gn), u = (L) => ((L.raw.$type !== "SimpleField" || L.raw.selectable === !1) && (L.disabled = !0), L), T = E(() => It(s.value)), c = E(() => It(b.value)), d = (L, g, F, D) => {
4879
+ const n = '<i class="f-icon f-icon-lookup"></i>', o = f(), a = f(e.modelValue || {}), i = f([]), s = f(e.fromData.dataSource || []), b = f([]), m = e.fromData.repositoryToken ? bt(e.fromData.repositoryToken) : null, h = e.toData.repositoryToken ? bt(e.toData.repositoryToken) : null, p = bt(hn), u = (L) => ((L.raw.$type !== "SimpleField" || L.raw.selectable === !1) && (L.disabled = !0), L), T = E(() => Pt(s.value)), c = E(() => Pt(b.value)), d = (L, g, F, D) => {
4874
4880
  var ie, he;
4875
4881
  const V = ((ie = L.value.find((de) => de[D] === g)) == null ? void 0 : ie[F || "name"]) || "", Q = ((he = L.value.find((de) => de[D] === g)) == null ? void 0 : he[D || "code"]) || "";
4876
4882
  return V && Q ? `${V}[${Q}]` : "";
@@ -5001,10 +5007,10 @@ const Mt = /* @__PURE__ */ Ge({
5001
5007
  (L.target.name === "cancel" || g === "icon" || g === "esc") && (a.value = e.modelValue, B.value = x(), i.value = []);
5002
5008
  }
5003
5009
  };
5004
- function N(L) {
5010
+ function j(L) {
5005
5011
  i.value = L;
5006
5012
  }
5007
- function X() {
5013
+ function J() {
5008
5014
  var V, Q;
5009
5015
  if (e.beforeOpen && typeof e.beforeOpen == "function") {
5010
5016
  const ie = e.beforeOpen({
@@ -5046,12 +5052,12 @@ const Mt = /* @__PURE__ */ Ge({
5046
5052
  } = g;
5047
5053
  if (D === "sourceField" && V) {
5048
5054
  const Q = B.value.filter((ie) => ie.sourceField !== F.sourceField).map((ie) => ie.sourceField);
5049
- $(s.value, Q), V.data = Ot(s.value);
5055
+ $(s.value, Q), V.data = Et(s.value);
5050
5056
  }
5051
5057
  return !0;
5052
5058
  }
5053
5059
  const ue = E(() => i.value.length > 0), ae = E(() => B.value.length > 0);
5054
- return () => l(cn, {
5060
+ return () => l(dn, {
5055
5061
  modelValue: z.value,
5056
5062
  "onUpdate:modelValue": (L) => z.value = L,
5057
5063
  editable: !1,
@@ -5062,7 +5068,7 @@ const Mt = /* @__PURE__ */ Ge({
5062
5068
  buttonContent: n,
5063
5069
  buttonBehavior: "Modal",
5064
5070
  modalOptions: k,
5065
- beforeOpen: X
5071
+ beforeOpen: J
5066
5072
  }, {
5067
5073
  default: () => [l("div", {
5068
5074
  class: "h-100 d-flex flex-column"
@@ -5081,7 +5087,7 @@ const Mt = /* @__PURE__ */ Ge({
5081
5087
  onClick: I
5082
5088
  }, [Pe("清空")])]), l("div", {
5083
5089
  class: " f-utils-fill p-2"
5084
- }, [l(mn, {
5090
+ }, [l(vn, {
5085
5091
  ref: o,
5086
5092
  pagination: {
5087
5093
  enable: !1
@@ -5102,22 +5108,22 @@ const Mt = /* @__PURE__ */ Ge({
5102
5108
  columns: v,
5103
5109
  data: B.value,
5104
5110
  newDataItem: W,
5105
- onSelectionChange: N,
5111
+ onSelectionChange: j,
5106
5112
  beforeEditCell: se
5107
5113
  }, null)])])]
5108
5114
  });
5109
5115
  }
5110
- }), xi = {
5116
+ }), Ti = {
5111
5117
  install(e) {
5112
- e.component(Mt.name, Mt);
5118
+ e.component(Ot.name, Ot);
5113
5119
  },
5114
5120
  register(e, t, n, o) {
5115
- e["mapping-editor"] = Mt, t["mapping-editor"] = ei;
5121
+ e["mapping-editor"] = Ot, t["mapping-editor"] = ni;
5116
5122
  }
5117
5123
  };
5118
5124
  export {
5119
- Mt as MappingEditor,
5120
- xi as default,
5121
- vn as mappingEditorProps,
5122
- ei as propsResolver
5125
+ Ot as MappingEditor,
5126
+ Ti as default,
5127
+ gn as mappingEditorProps,
5128
+ ni as propsResolver
5123
5129
  };