@farris/ui-vue 1.8.5-beta.18 → 1.8.5-beta.19

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.
@@ -1,23 +1,23 @@
1
- var xo = Object.defineProperty;
2
- var So = (e, n, t) => n in e ? xo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var $e = (e, n, t) => So(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { ref as v, onMounted as vt, defineComponent as qe, computed as I, createVNode as r, Teleport as ln, createApp as _t, onUnmounted as wt, Fragment as Oe, watch as ve, nextTick as st, onBeforeMount as To, watchEffect as Bo, Transition as rn, mergeProps as de, shallowRef as Fo, render as Ht, h as ko, cloneVNode as Oo, inject as St, withDirectives as sn, vShow as Mo, createTextVNode as He, onUpdated as Eo, onBeforeUnmount as Io, reactive as Fe, isVNode as Wt, Comment as un, provide as Po, getCurrentInstance as Gt, vModelCheckbox as Do } from "vue";
1
+ var To = Object.defineProperty;
2
+ var Bo = (e, n, t) => n in e ? To(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var $e = (e, n, t) => Bo(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as v, onMounted as pt, defineComponent as qe, computed as I, createVNode as r, Teleport as sn, createApp as Wt, onUnmounted as xt, Fragment as Oe, watch as ve, nextTick as st, onBeforeMount as Fo, watchEffect as ko, Transition as un, mergeProps as de, shallowRef as Oo, render as jt, h as Mo, cloneVNode as Eo, inject as Tt, withDirectives as cn, vShow as Io, createTextVNode as He, onUpdated as Po, onBeforeUnmount as Do, reactive as Fe, isVNode as Gt, Comment as dn, provide as No, getCurrentInstance as $t, vModelCheckbox as Ro } from "vue";
5
5
  import { LocaleService as Ue } from "../locale/index.esm.js";
6
- import { useLocatorProps as Mt, isMobilePhone as bt, getMaxZIndex as nn, locatorAttrs as kt, locatorChild as Se, extractDataAttrs as No, useGuid as Ro, useInputExpand as Ho, withInstall as cn, useCommonUtils as dn, resolveField as jo, getCustomClass as Vo } from "../common/index.esm.js";
7
- import Et from "../drawer/index.esm.js";
6
+ import { useLocatorProps as Et, isMobilePhone as Ct, getMaxZIndex as an, locatorAttrs as Ot, locatorChild as Se, extractDataAttrs as Ho, useGuid as jo, useInputExpand as Vo, withInstall as fn, useCommonUtils as mn, resolveField as zo, getCustomClass as Ao } from "../common/index.esm.js";
7
+ import It from "../drawer/index.esm.js";
8
8
  import "../property-panel/index.esm.js";
9
- import { FButton as on } from "../button/index.esm.js";
9
+ import { FButton as ln } from "../button/index.esm.js";
10
10
  import "../field-selector/index.esm.js";
11
11
  import "../collection-property-editor/index.esm.js";
12
- import zo from "../tags/index.esm.js";
13
- import { debounce as fn, isPlainObject as an, cloneDeep as Vt } from "lodash-es";
14
- import Ao from "../popover/index.esm.js";
15
- import { useResizeObserver as Lo } from "@vueuse/core";
16
- import { locatorGridGroup as mn, locatorGridRowId as vn, locatorGridRow as pn, locatorGridCell as gn, locatorChild as hn, SETTING_COLUMN_FIELD as _o, COMMAND_COLUMN_FIELD as Wo, resolveEnumDisplayText as yn, CellMode as bn, SETTING_COLUMN_DATA_TYPE as ft, COMMAND_COLUMN_DATA_TYPE as mt, useScreen as Go, useIdentify as $o, useGroupData as Uo, useFilter as qo, useHierarchy as Yo, useLoading as Xo, useDataView as Jo, usePagination as Zo, useSelection as Qo, useDataViewContainerStyle as Ko, useCommandColumn as ea, useSettingColumn as ta, useColumn as na, useSort as oa, useGroupColumn as aa, useRow as la, useEdit as ia, useVisualDataBound as ra, useVisualDataCell as sa, useVisualDataRow as ua, useVisualGroupRow as ca, useVisualSummaryRow as da, useVisualData as fa, useCellContentStyle as ma, useCellPosition as va, useSidebar as pa, useVirtualScroll as ga, useFitColumn as ha, useFilterHistory as ya, useColumnFilter as ba, useDragColumn as Ca, resolvePreviewFixedColumns as wa, getColumnHeader as xa, getPagination as Sa, getSidebar as Ta, getDisableMask as Ba, getSummary as Fa, getHorizontalScrollbar as ka, getVerticalScrollbar as Oa, getFilterPanel as Ma, getGroupPanel as Ea, useAdapt as Ia, useNavigation as Pa, getEmpty as Da, ColumnSettingSolution as Na, refreshScrollAfterDataSourceLoad as Ra, applyReassignRowData as Ha } from "../data-view/index.esm.js";
17
- import ja, { FDynamicForm as Va, FDynamicFormLabel as za } from "../dynamic-form/index.esm.js";
12
+ import Lo from "../tags/index.esm.js";
13
+ import { debounce as vn, isPlainObject as rn, cloneDeep as zt } from "lodash-es";
14
+ import _o from "../popover/index.esm.js";
15
+ import { useResizeObserver as Wo } from "@vueuse/core";
16
+ import { locatorGridGroup as pn, locatorGridRowId as gn, locatorGridRow as hn, locatorGridCell as yn, locatorChild as bn, SETTING_COLUMN_FIELD as Go, COMMAND_COLUMN_FIELD as $o, resolveEnumDisplayText as Cn, CellMode as wn, SETTING_COLUMN_DATA_TYPE as mt, COMMAND_COLUMN_DATA_TYPE as vt, useScreen as Uo, useIdentify as qo, useGroupData as Yo, useFilter as Xo, useHierarchy as Jo, useLoading as Zo, useDataView as Qo, usePagination as Ko, useSelection as ea, useDataViewContainerStyle as ta, useCommandColumn as na, useSettingColumn as oa, useColumn as aa, useSort as la, useGroupColumn as ia, useRow as ra, useEdit as sa, useVisualDataBound as ua, useVisualDataCell as ca, useVisualDataRow as da, useVisualGroupRow as fa, useVisualSummaryRow as ma, useVisualData as va, useCellContentStyle as pa, useCellPosition as ga, useSidebar as ha, useVirtualScroll as ya, useFitColumn as ba, useFilterHistory as Ca, useColumnFilter as wa, useDragColumn as xa, resolvePreviewFixedColumns as Sa, getColumnHeader as Ta, getPagination as Ba, getSidebar as Fa, getDisableMask as ka, getSummary as Oa, getHorizontalScrollbar as Ma, getVerticalScrollbar as Ea, getFilterPanel as Ia, getGroupPanel as Pa, useAdapt as Da, useNavigation as Na, getEmpty as Ra, ColumnSettingSolution as Ha, refreshScrollAfterDataSourceLoad as ja, applyReassignRowData as Va } from "../data-view/index.esm.js";
17
+ import za, { FDynamicForm as Aa, FDynamicFormLabel as La } from "../dynamic-form/index.esm.js";
18
18
  import "bignumber.js";
19
- import { createPropsResolver as Aa } from "../dynamic-resolver/index.esm.js";
20
- const La = {
19
+ import { createPropsResolver as _a } from "../dynamic-resolver/index.esm.js";
20
+ const Wa = {
21
21
  /**
22
22
  * 标记组件的唯一标识
23
23
  */
@@ -188,7 +188,7 @@ const La = {
188
188
  * 扩展按钮是否禁用
189
189
  */
190
190
  expandDisabled: { type: Boolean, default: !1 }
191
- }, _a = {
191
+ }, Ga = {
192
192
  updateExtendInfo: (...e) => !0,
193
193
  clear: (...e) => !0,
194
194
  change: (...e) => !0,
@@ -207,23 +207,23 @@ const La = {
207
207
  expandClick: (...e) => !0,
208
208
  hidden: (...e) => !0,
209
209
  shown: (...e) => !0
210
- }, Wa = {
210
+ }, $a = {
211
211
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
212
212
  host: { type: Object },
213
213
  backgroundColor: { type: String, default: "" }
214
214
  };
215
- function Ga() {
215
+ function Ua() {
216
216
  const e = v(!1);
217
- return vt(() => {
217
+ return pt(() => {
218
218
  e.value = !0;
219
219
  }), e;
220
220
  }
221
- const $a = /* @__PURE__ */ qe({
221
+ const qa = /* @__PURE__ */ qe({
222
222
  name: "FOverlay",
223
- props: Wa,
223
+ props: $a,
224
224
  emits: ["click"],
225
225
  setup(e, n) {
226
- const t = v(e.popupContentPosition), o = v(e.host), a = Ga(), l = I(() => ({
226
+ const t = v(e.popupContentPosition), o = v(e.host), a = Ua(), l = I(() => ({
227
227
  backgroundColor: e.backgroundColor || "",
228
228
  pointerEvents: "auto"
229
229
  }));
@@ -234,12 +234,12 @@ const $a = /* @__PURE__ */ qe({
234
234
  const d = o.value;
235
235
  if (d) {
236
236
  const m = d.getBoundingClientRect(), {
237
- left: x,
237
+ left: S,
238
238
  top: s,
239
239
  height: b
240
240
  } = m;
241
241
  return {
242
- left: x,
242
+ left: S,
243
243
  top: s + b
244
244
  };
245
245
  }
@@ -250,14 +250,14 @@ const $a = /* @__PURE__ */ qe({
250
250
  // left: `${position.value.left}px`,
251
251
  // top: `${position.value.top}px`
252
252
  }));
253
- return () => a.value ? r(ln, {
253
+ return () => a.value ? r(sn, {
254
254
  to: "body"
255
255
  }, {
256
256
  default: () => {
257
257
  var d, m;
258
258
  return [r("div", {
259
259
  class: "overlay-container",
260
- onClick: (x) => c(x),
260
+ onClick: (S) => c(S),
261
261
  style: l.value
262
262
  }, [r("div", {
263
263
  style: h.value
@@ -266,13 +266,13 @@ const $a = /* @__PURE__ */ qe({
266
266
  }) : null;
267
267
  }
268
268
  });
269
- function Ua(e) {
269
+ function Ya(e) {
270
270
  if (e.content && e.content.render)
271
271
  return e.content.render;
272
272
  if (e.render && typeof e.render == "function")
273
273
  return e.render;
274
274
  }
275
- function qa(e) {
275
+ function Xa(e) {
276
276
  const n = document.createElement("div");
277
277
  n.style.display = "contents";
278
278
  let t;
@@ -280,13 +280,13 @@ function qa(e) {
280
280
  }), a = () => {
281
281
  o(), t && t.unmount();
282
282
  };
283
- return t = _t({
283
+ return t = Wt({
284
284
  setup() {
285
- wt(() => {
285
+ xt(() => {
286
286
  document.body.removeChild(n);
287
287
  });
288
- const l = Ua(e);
289
- return () => r($a, {
288
+ const l = Ya(e);
289
+ return () => r(qa, {
290
290
  "popup-content-position": e.popupPosition,
291
291
  host: e.host,
292
292
  onClick: a,
@@ -297,12 +297,12 @@ function qa(e) {
297
297
  }
298
298
  }), document.body.appendChild(n), t.mount(n), t;
299
299
  }
300
- class Ya {
300
+ class Ja {
301
301
  static show(n) {
302
- return qa(n);
302
+ return Xa(n);
303
303
  }
304
304
  }
305
- const Xa = {
305
+ const Za = {
306
306
  /**
307
307
  * 组件唯一标识,渲染为 DOM id 与 data-testid。
308
308
  */
@@ -524,8 +524,8 @@ class rt {
524
524
  return this.width = n.width, this.height = n.height, this;
525
525
  }
526
526
  }
527
- function Ja(e, n) {
528
- const t = v(), o = v(), a = v(), l = v(), c = v(), h = v(), d = v(), m = v(), x = v(), s = v(), b = v(), u = v(e.resizeable), g = v(), y = v(e.draggable), p = v(!1);
527
+ function Qa(e, n) {
528
+ const t = v(), o = v(), a = v(), l = v(), c = v(), h = v(), d = v(), m = v(), S = v(), s = v(), b = v(), u = v(e.resizeable), g = v(), y = v(e.draggable), p = v(!1);
529
529
  function C() {
530
530
  const B = o.value || document.body, E = window.getComputedStyle(B);
531
531
  if (!E || !t.value)
@@ -535,7 +535,7 @@ function Ja(e, n) {
535
535
  const J = E.getPropertyValue("position");
536
536
  A.width = B.clientWidth, A.height = B.clientHeight, A.pr = parseInt(E.getPropertyValue("padding-right"), 10), A.pb = parseInt(E.getPropertyValue("padding-bottom"), 10), A.position = E.getPropertyValue("position"), J === "static" && (B.style.position = "relative"), A.translateX = M.x, A.translateY = M.y, s.value = A;
537
537
  }
538
- function S(B) {
538
+ function T(B) {
539
539
  if (t.value) {
540
540
  l.value = rt.getCurrent(t.value), c.value = ye.getCurrent(t.value), h.value = l.value ? rt.copy(l.value) : null, d.value = c.value ? ye.copy(c.value) : null, C();
541
541
  const E = B.target.getAttribute("type") || "";
@@ -547,14 +547,14 @@ function Ja(e, n) {
547
547
  };
548
548
  }
549
549
  }
550
- function D() {
550
+ function N() {
551
551
  var B, E, M, A;
552
552
  if (t.value) {
553
553
  const J = t.value;
554
554
  m.value && ((m.value.n || m.value.s) && ((B = h.value) != null && B.height) && (J.style.height = h.value.height + "px"), (m.value.w || m.value.e) && ((E = h.value) != null && E.width) && (J.style.width = h.value.width + "px"), d.value && ((M = d.value) != null && M.x && (J.style.left = d.value.x + "px"), (A = d.value) != null && A.y && (J.style.top = d.value.y + "px")));
555
555
  }
556
556
  }
557
- function N() {
557
+ function D() {
558
558
  const B = e.minHeight ? e.minHeight : 1, E = e.minWidth ? e.minWidth : 1;
559
559
  h.value && d.value && m.value && l.value && (h.value.height < B && (h.value.height = B, m.value.n && c.value && (d.value.y = c.value.y + (l.value.height - B))), h.value.width < E && (h.value.width = E, m.value.w && c.value && (d.value.x = c.value.x + (l.value.width - E))), e.maxHeight && h.value.height > e.maxHeight && (h.value.height = e.maxHeight, c.value && m.value.n && (d.value.y = c.value.y + (l.value.height - e.maxHeight))), e.maxWidth && h.value.width > e.maxWidth && (h.value.width = e.maxWidth, m.value.w && c.value && (d.value.x = c.value.x + (l.value.width - e.maxWidth))));
560
560
  }
@@ -572,10 +572,10 @@ function Ja(e, n) {
572
572
  return;
573
573
  B.subtract(a.value);
574
574
  const E = B.x, M = B.y;
575
- m.value.n ? (d.value.y = c.value.y + M, h.value.height = l.value.height - M) : m.value.s && (h.value.height = l.value.height + M), m.value.e ? h.value.width = l.value.width + E : m.value.w && (h.value.width = l.value.width - E, d.value.x = c.value.x + E), G(), N(), D();
575
+ m.value.n ? (d.value.y = c.value.y + M, h.value.height = l.value.height - M) : m.value.s && (h.value.height = l.value.height + M), m.value.e ? h.value.width = l.value.width + E : m.value.w && (h.value.width = l.value.width - E, d.value.x = c.value.x + E), G(), D(), N();
576
576
  }
577
577
  function F(B) {
578
- if (!x.value)
578
+ if (!S.value)
579
579
  return;
580
580
  const E = ye.fromEvent(B);
581
581
  E && Y(E);
@@ -606,13 +606,13 @@ function Ja(e, n) {
606
606
  const E = W();
607
607
  b.value = E;
608
608
  }
609
- a.value = void 0, l.value = null, c.value = null, h.value = null, d.value = null, m.value = null, x.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", _);
609
+ a.value = void 0, l.value = null, c.value = null, h.value = null, d.value = null, m.value = null, S.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", _);
610
610
  }
611
611
  function $() {
612
612
  document.addEventListener("mousemove", F), document.addEventListener("mouseup", _);
613
613
  }
614
614
  function H(B) {
615
- B instanceof MouseEvent && B.button === 2 || y.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), a.value = ye.fromEvent(B), x.value = B.target, S(B), $());
615
+ B instanceof MouseEvent && B.button === 2 || y.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), a.value = ye.fromEvent(B), S.value = B.target, T(B), $());
616
616
  }
617
617
  function j(B) {
618
618
  return t.value = B, u.value && r(Oe, null, [r("div", {
@@ -711,8 +711,8 @@ function Ja(e, n) {
711
711
  moveToCenter: oe
712
712
  };
713
713
  }
714
- function Za(e, n, t) {
715
- const o = v(), a = v(e.draggable), l = v(e.lockAxis), c = v(), h = v(), d = v(!1), m = v(new ye(0, 0)), x = v(new ye(0, 0)), s = v(new ye(0, 0)), b = v(new ye(0, 0));
714
+ function Ka(e, n, t) {
715
+ const o = v(), a = v(e.draggable), l = v(e.lockAxis), c = v(), h = v(), d = v(!1), m = v(new ye(0, 0)), S = v(new ye(0, 0)), s = v(new ye(0, 0)), b = v(new ye(0, 0));
716
716
  ve(() => t.value, (F) => {
717
717
  c.value.style.cursor = F ? "move" : "default";
718
718
  });
@@ -728,7 +728,7 @@ function Za(e, n, t) {
728
728
  }
729
729
  function g() {
730
730
  var $, H;
731
- let F = s.value.x + x.value.x, W = s.value.y + x.value.y;
731
+ let F = s.value.x + S.value.x, W = s.value.y + S.value.y;
732
732
  l.value === "x" ? (F = (($ = m.value) == null ? void 0 : $.x) || 0, s.value.x = 0) : l.value === "y" && (W = ((H = m.value) == null ? void 0 : H.y) || 0, s.value.y = 0);
733
733
  const _ = `translate3d(${Math.round(F)}px, ${Math.round(W)}px, 0px)`;
734
734
  o.value && (o.value.style.transform = _), b.value.x = F, b.value.y = W;
@@ -750,32 +750,32 @@ function Za(e, n, t) {
750
750
  function C(F) {
751
751
  d.value && a.value && (F.stopPropagation(), F.preventDefault(), p(ye.fromEvent(F, c.value)));
752
752
  }
753
- function S() {
753
+ function T() {
754
754
  var F;
755
755
  if (d.value) {
756
- if (d.value = !1, x.value.add(s.value), s.value.reset(), (F = o.value) == null || F.classList.remove("ng-dragging"), !e.useTransform && o.value) {
756
+ if (d.value = !1, S.value.add(s.value), s.value.reset(), (F = o.value) == null || F.classList.remove("ng-dragging"), !e.useTransform && o.value) {
757
757
  const { left: W, top: _ } = o.value.getBoundingClientRect();
758
758
  o.value.style.left = Math.ceil(W) + "px", o.value.style.top = Math.ceil(_) + "px", o.value.style.transform = "none";
759
759
  }
760
- n.emit("stopMove"), document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", S);
760
+ n.emit("stopMove"), document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", T);
761
761
  }
762
762
  }
763
- function D() {
764
- !d.value && c.value && (d.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", C), document.addEventListener("mouseup", S));
765
- }
766
763
  function N() {
764
+ !d.value && c.value && (d.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", C), document.addEventListener("mouseup", T));
765
+ }
766
+ function D() {
767
767
  if (o.value) {
768
768
  const F = ye.getTransformInfo(o.value);
769
- x.value.set(F);
769
+ S.value.set(F);
770
770
  return;
771
771
  }
772
- x.value.reset();
772
+ S.value.reset();
773
773
  }
774
774
  function G(F) {
775
775
  if (!t.value || F instanceof MouseEvent && F.button === 2)
776
776
  return;
777
777
  const W = F.target || F.srcElement;
778
- c.value !== void 0 && W && !u(W, c.value) || a.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), m.value = ye.fromEvent(F, o.value), N(), D());
778
+ c.value !== void 0 && W && !u(W, c.value) || a.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), m.value = ye.fromEvent(F, o.value), D(), N());
779
779
  }
780
780
  function Y(F, W, _) {
781
781
  if (a.value && W) {
@@ -794,10 +794,10 @@ function Za(e, n, t) {
794
794
  }
795
795
  return {
796
796
  registerDraggle: Y,
797
- resetTranslate: N
797
+ resetTranslate: D
798
798
  };
799
799
  }
800
- function Cn(e, n) {
800
+ function xn(e, n) {
801
801
  if (e) {
802
802
  const t = (o) => {
803
803
  o.key.toLowerCase() === e.toLowerCase() && n({ event: o, key: e });
@@ -807,37 +807,37 @@ function Cn(e, n) {
807
807
  };
808
808
  }
809
809
  }
810
- function Qa(e, n) {
810
+ function el(e, n) {
811
811
  const t = v(e.enableEsc);
812
812
  let o = null;
813
- return t.value ? (o = Cn("Escape", (a) => {
813
+ return t.value ? (o = xn("Escape", (a) => {
814
814
  n.emit("esc", { event: a.event, type: "esc" });
815
815
  }), {
816
816
  remove: o
817
817
  }) : null;
818
818
  }
819
- function Ka(e, n) {
819
+ function tl(e, n) {
820
820
  const t = v(e.enableEnter);
821
821
  let o = null;
822
- return t.value ? (o = Cn("Enter", (a) => {
822
+ return t.value ? (o = xn("Enter", (a) => {
823
823
  n.emit("enter", { event: a.event, type: "enter" });
824
824
  }), {
825
825
  remove: o
826
826
  }) : null;
827
827
  }
828
- const ht = /* @__PURE__ */ qe({
828
+ const yt = /* @__PURE__ */ qe({
829
829
  name: "FModal",
830
- props: Xa,
830
+ props: Za,
831
831
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
832
832
  setup(e, n) {
833
- const t = Mt(e), o = v(typeof t.width == "string" ? parseInt(t.width, 10) || 300 : t.width || 300), a = v(typeof t.height == "string" ? parseInt(t.height, 10) || 200 : t.height || 200), l = v(t.modelValue), c = v(t.id), h = v(t.class), d = v(t.fitContent), m = v(t.showHeader), x = v(""), s = v(t.showCloseButton), b = v(t.showMaxButton), u = v(!1), g = v(t.dialogType), y = v(t.src), p = v(""), C = v(t.showButtons), S = v(t.title), D = v(t.containment || null), N = v();
834
- S.value === "错误提示" && (S.value = Ue.getLocaleValue("messageBox.errorTitle"));
833
+ const t = Et(e), o = v(typeof t.width == "string" ? parseInt(t.width, 10) || 300 : t.width || 300), a = v(typeof t.height == "string" ? parseInt(t.height, 10) || 200 : t.height || 200), l = v(t.modelValue), c = v(t.id), h = v(t.class), d = v(t.fitContent), m = v(t.showHeader), S = v(""), s = v(t.showCloseButton), b = v(t.showMaxButton), u = v(!1), g = v(t.dialogType), y = v(t.src), p = v(""), C = v(t.showButtons), T = v(t.title), N = v(t.containment || null), D = v();
834
+ T.value === "错误提示" && (T.value = Ue.getLocaleValue("messageBox.errorTitle"));
835
835
  const G = v(!1);
836
836
  function Y() {
837
- const w = document.querySelectorAll(".farris-modal").length;
838
- (!w || w - 1 <= 0) && N.value === document.querySelectorAll(".farris-modal")[0] && document.body.classList.remove("modal-open"), N.value && N.value.classList.remove("show");
837
+ const x = document.querySelectorAll(".farris-modal").length;
838
+ (!x || x - 1 <= 0) && D.value === document.querySelectorAll(".farris-modal")[0] && document.body.classList.remove("modal-open"), D.value && D.value.classList.remove("show");
839
839
  }
840
- function F(w, X) {
840
+ function F(x, X) {
841
841
  const ae = X ? "accept" : "cancel";
842
842
  Promise.resolve().then(() => {
843
843
  var le;
@@ -845,24 +845,24 @@ const ht = /* @__PURE__ */ qe({
845
845
  closeType: ae
846
846
  });
847
847
  }).then((le) => {
848
- le && (l.value = !1, n.emit("update:modelValue", !1), X != null && n.emit(X ? "accept" : "cancel"), n.emit("closed", w), Y());
848
+ le && (l.value = !1, n.emit("update:modelValue", !1), X != null && n.emit(X ? "accept" : "cancel"), n.emit("closed", x), Y());
849
849
  });
850
850
  }
851
851
  const W = [{
852
852
  name: "cancel",
853
853
  text: Ue.getLocaleValue("messageBox.cancel") || "取消",
854
854
  class: "btn btn-secondary",
855
- handle: (w) => {
856
- F(w, !1);
855
+ handle: (x) => {
856
+ F(x, !1);
857
857
  }
858
858
  }, {
859
859
  name: "accept",
860
860
  text: Ue.getLocaleValue("messageBox.ok") || "确定",
861
861
  class: "btn btn-primary",
862
- handle: (w) => {
863
- F(w, !0);
862
+ handle: (x) => {
863
+ F(x, !0);
864
864
  }
865
- }], _ = v(t.buttons && t.buttons.length ? t.buttons : W), $ = I(() => !!x.value), H = I(() => !!C.value && !!_.value), j = v(), L = v(), k = v(t.maximized || !1), {
865
+ }], _ = v(t.buttons && t.buttons.length ? t.buttons : W), $ = I(() => !!S.value), H = I(() => !!C.value && !!_.value), j = v(), L = v(), k = v(t.maximized || !1), {
866
866
  renderResizeBar: oe,
867
867
  maximize: te,
868
868
  restore: R,
@@ -871,53 +871,53 @@ const ht = /* @__PURE__ */ qe({
871
871
  allowDrag: M,
872
872
  unWindowResizeHandle: A,
873
873
  moveToCenter: J
874
- } = Ja(t), {
874
+ } = Qa(t), {
875
875
  registerDraggle: se
876
- } = Za(t, n, M);
876
+ } = Ka(t, n, M);
877
877
  function Ce() {
878
878
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
879
879
  }
880
- ve(() => t.title, (w, X) => {
881
- w !== X && (S.value = w);
882
- }), ve(() => t.modelValue, (w, X) => {
883
- w !== X && (l.value = w, l.value && t.draggable && st(() => {
884
- L.value && !D.value && (D.value = L.value.parentElement, B.value = D.value, se(j.value, L.value, B.value), J());
885
- }), w || (D.value && (D.value = null), Y())), l.value ? G.value = Ce() : (k.value = !1, M.value = t.draggable);
886
- }), ve(() => t.showHeader, (w, X) => {
887
- w !== X && (m.value = w);
888
- }), ve(() => t.showButtons, (w, X) => {
889
- w !== X && (C.value = w);
890
- }), ve(() => E.value, (w, X) => {
891
- const ae = w || {}, le = X || {};
880
+ ve(() => t.title, (x, X) => {
881
+ x !== X && (T.value = x);
882
+ }), ve(() => t.modelValue, (x, X) => {
883
+ x !== X && (l.value = x, l.value && t.draggable && st(() => {
884
+ L.value && !N.value && (N.value = L.value.parentElement, B.value = N.value, se(j.value, L.value, B.value), J());
885
+ }), x || (N.value && (N.value = null), Y())), l.value ? G.value = Ce() : (k.value = !1, M.value = t.draggable);
886
+ }), ve(() => t.showHeader, (x, X) => {
887
+ x !== X && (m.value = x);
888
+ }), ve(() => t.showButtons, (x, X) => {
889
+ x !== X && (C.value = x);
890
+ }), ve(() => E.value, (x, X) => {
891
+ const ae = x || {}, le = X || {};
892
892
  JSON.stringify(ae) !== JSON.stringify(le) && n.emit("resize", {
893
- newSize: w,
893
+ newSize: x,
894
894
  oldSize: X,
895
895
  isMaximized: k.value
896
896
  });
897
- }), ve([() => t.width, () => t.height], (w, X) => {
898
- (w[0] !== X[0] || w[1] !== X[1]) && (o.value = w[0] || 500, a.value = w[1] || 600);
899
- }), ve(() => t.class, (w, X) => {
900
- h.value = w;
897
+ }), ve([() => t.width, () => t.height], (x, X) => {
898
+ (x[0] !== X[0] || x[1] !== X[1]) && (o.value = x[0] || 500, a.value = x[1] || 600);
899
+ }), ve(() => t.class, (x, X) => {
900
+ h.value = x;
901
901
  });
902
902
  const fe = I(() => (l.value && document.body.classList.add("modal-open"), l.value)), De = I(() => {
903
903
  var ae;
904
- const w = {
904
+ const x = {
905
905
  modal: !0,
906
906
  "farris-modal": !0,
907
907
  fade: !0,
908
908
  "fe-cmp-page-modal": !!t.showFloatingClose
909
909
  };
910
- w["f-modal-fitContent"] = !!d.value, w.show = !!fe.value;
910
+ x["f-modal-fitContent"] = !!d.value, x.show = !!fe.value;
911
911
  const X = (ae = t.maskClass) == null ? void 0 : ae.split(" ");
912
- return X == null || X.reduce((le, ke) => (le[ke] = !0, le), w), w;
912
+ return X == null || X.reduce((le, ke) => (le[ke] = !0, le), x), x;
913
913
  }), xe = I(() => {
914
914
  var ae;
915
- const w = {
915
+ const x = {
916
916
  "modal-dialog": !0
917
917
  }, X = (ae = h.value) == null ? void 0 : ae.split(" ");
918
- return X == null || X.reduce((le, ke) => (le[ke] = !0, le), w), w;
919
- }), Te = () => bt() && !t.isMessager || !!t.fullscreen, Ye = I(() => {
920
- const w = document.documentElement.clientWidth, X = document.documentElement.clientHeight;
918
+ return X == null || X.reduce((le, ke) => (le[ke] = !0, le), x), x;
919
+ }), Te = () => Ct() && !t.isMessager || !!t.fullscreen, Ye = I(() => {
920
+ const x = document.documentElement.clientWidth, X = document.documentElement.clientHeight;
921
921
  if (k.value)
922
922
  return {
923
923
  position: "fixed",
@@ -927,34 +927,34 @@ const ht = /* @__PURE__ */ qe({
927
927
  height: "100vh",
928
928
  margin: "0"
929
929
  };
930
- const ae = Math.min(o.value, w), le = t.position === "right" ? "100%" : d.value ? "auto" : `${Math.min(a.value, X - 10)}px`, ke = `${(window.innerHeight - (le === "100%" || le === "auto" ? 0 : parseInt(le))) / 2}px`, Ge = t.position === "right" ? `${window.innerWidth - ae}px` : `${(window.innerWidth - ae) / 2}px`, _e = {
930
+ const ae = Math.min(o.value, x), le = t.position === "right" ? "100%" : d.value ? "auto" : `${Math.min(a.value, X - 10)}px`, ke = `${(window.innerHeight - (le === "100%" || le === "auto" ? 0 : parseInt(le))) / 2}px`, Ge = t.position === "right" ? `${window.innerWidth - ae}px` : `${(window.innerWidth - ae) / 2}px`, _e = {
931
931
  position: "absolute",
932
932
  top: ke,
933
933
  left: Ge,
934
- width: bt() ? "auto" : `${ae}px`,
934
+ width: Ct() ? "auto" : `${ae}px`,
935
935
  height: le
936
936
  };
937
937
  return t.mask || (_e.pointerEvents = "auto"), _e;
938
- }), Xe = v(nn() || 1050), we = I(() => {
939
- const w = {
938
+ }), Xe = v(an() || 1050), we = I(() => {
939
+ const x = {
940
940
  display: "block",
941
941
  overflow: "hidden"
942
942
  };
943
- return t.mask || (w.pointerEvents = "none", w.backgroundColor = "transparent"), G.value && (w.backgroundColor = "transparent"), w.zIndex = Xe.value, w;
943
+ return t.mask || (x.pointerEvents = "none", x.backgroundColor = "transparent"), G.value && (x.backgroundColor = "transparent"), x.zIndex = Xe.value, x;
944
944
  }), Be = I(() => ({
945
945
  "modal-content": !0,
946
946
  "modal-content-has-header": m.value,
947
947
  "is-mobile": Te()
948
948
  })), Ne = I(() => {
949
- const w = {
949
+ const x = {
950
950
  display: m.value ? "" : "none"
951
951
  };
952
- return w["pointer-events"] = M.value ? "auto" : "none", w;
952
+ return x["pointer-events"] = M.value ? "auto" : "none", x;
953
953
  }), Me = I(() => ({
954
954
  "f-icon": !0,
955
955
  modal_maximize: !0,
956
956
  modalrevert: k.value
957
- })), Qe = I(() => ({
957
+ })), Ke = I(() => ({
958
958
  "modal-body": !0,
959
959
  "f-utils-flex-column": g.value === "iframe",
960
960
  "f-utils-fill": !0
@@ -965,33 +965,33 @@ const ht = /* @__PURE__ */ qe({
965
965
  };
966
966
  }
967
967
  const Ee = I(() => {
968
- const w = {
968
+ const x = {
969
969
  textAlgin: p.value
970
970
  }, X = je();
971
- return Object.assign(w, X);
971
+ return Object.assign(x, X);
972
972
  });
973
- function pe(w) {
974
- if (w == null || w.stopPropagation(), k.value) {
973
+ function pe(x) {
974
+ if (x == null || x.stopPropagation(), k.value) {
975
975
  k.value = !1, R();
976
976
  return;
977
977
  }
978
978
  te(), k.value = !0;
979
979
  }
980
- async function Ke(w, X) {
981
- w.handle ? await w.handle(X, w) && n.emit("closed", X) : n.emit("buttonClick", {
982
- button: w,
980
+ async function Je(x, X) {
981
+ x.handle ? await x.handle(X, x) && n.emit("closed", X) : n.emit("buttonClick", {
982
+ button: x,
983
983
  $event: X
984
984
  });
985
985
  }
986
- function Ve(w) {
987
- w.width && (o.value = typeof w.width == "string" ? parseInt(w.width, 10) || 300 : w.width), w.height && (a.value = typeof w.height == "string" ? parseInt(w.height, 10) || 200 : w.height), w.buttons && (_.value = w.buttons), w.title && (S.value = w.title);
986
+ function Ve(x) {
987
+ x.width && (o.value = typeof x.width == "string" ? parseInt(x.width, 10) || 300 : x.width), x.height && (a.value = typeof x.height == "string" ? parseInt(x.height, 10) || 200 : x.height), x.buttons && (_.value = x.buttons), x.title && (T.value = x.title);
988
988
  }
989
989
  let Re = null, We = null;
990
- To(() => {
990
+ Fo(() => {
991
991
  G.value = Ce();
992
- }), vt(() => {
993
- L.value && !D.value && (D.value = L.value.parentElement, B.value = D.value, se(j.value, L.value, B.value)), fe.value && document.body.classList.add("modal-open"), Re = Qa(t, n), We = Ka(t, n);
994
- }), wt(() => {
992
+ }), pt(() => {
993
+ L.value && !N.value && (N.value = L.value.parentElement, B.value = N.value, se(j.value, L.value, B.value)), fe.value && document.body.classList.add("modal-open"), Re = el(t, n), We = tl(t, n);
994
+ }), xt(() => {
995
995
  A && A(), Re && Re.remove(), We && We.remove();
996
996
  }), n.expose({
997
997
  modalElementRef: L,
@@ -999,16 +999,16 @@ const ht = /* @__PURE__ */ qe({
999
999
  close: F,
1000
1000
  maxDialog: pe,
1001
1001
  isMaximized: k,
1002
- disableButtons: (w, X = !0) => {
1002
+ disableButtons: (x, X = !0) => {
1003
1003
  _.value.forEach((ae) => {
1004
- ae.name && w.includes(ae.name) && (ae.disabled = X);
1004
+ ae.name && x.includes(ae.name) && (ae.disabled = X);
1005
1005
  });
1006
1006
  }
1007
1007
  });
1008
1008
  function et() {
1009
1009
  return r("div", de(Se(t.id, "floating-close"), {
1010
1010
  class: "action-wrapper",
1011
- onClick: (w) => F(w, !1)
1011
+ onClick: (x) => F(x, !1)
1012
1012
  }), [r("span", {
1013
1013
  class: "close-icon"
1014
1014
  }, [r("i", {
@@ -1028,86 +1028,86 @@ const ht = /* @__PURE__ */ qe({
1028
1028
  class: Me.value
1029
1029
  }, null)]), s.value && r("li", de(Se(t.id, "close"), {
1030
1030
  class: "f-btn-icon f-bare",
1031
- onClick: (w) => F(w, !1),
1031
+ onClick: (x) => F(x, !1),
1032
1032
  style: "pointer-events: auto;"
1033
1033
  }), [r("span", {
1034
1034
  class: "f-icon modal_close"
1035
1035
  }, null)])]);
1036
1036
  }
1037
- const Je = (w) => {
1038
- w.preventDefault();
1039
- const X = w.currentTarget, ae = w.deltaY * 0.5;
1037
+ const Ze = (x) => {
1038
+ x.preventDefault();
1039
+ const X = x.currentTarget, ae = x.deltaY * 0.5;
1040
1040
  X.scrollLeft += ae;
1041
1041
  };
1042
- function Ze() {
1042
+ function Qe() {
1043
1043
  return r("div", {
1044
1044
  class: "modal-footer",
1045
1045
  style: Ee.value
1046
1046
  }, [_.value && r("div", {
1047
1047
  class: "buttons",
1048
- onWheel: Je
1049
- }, [_.value.map((w) => {
1048
+ onWheel: Ze
1049
+ }, [_.value.map((x) => {
1050
1050
  var le;
1051
- const X = v(w.disabled), ae = w.class || ((le = w.appearance) == null ? void 0 : le.class) || "btn btn-secondary";
1052
- return r("button", de(w.id ? kt(w.id) : w.name ? Se(t.id, w.name) : {}, No(w), {
1053
- name: w.name,
1054
- style: w.styles,
1051
+ const X = v(x.disabled), ae = x.class || ((le = x.appearance) == null ? void 0 : le.class) || "btn btn-secondary";
1052
+ return r("button", de(x.id ? Ot(x.id) : x.name ? Se(t.id, x.name) : {}, Ho(x), {
1053
+ name: x.name,
1054
+ style: x.styles,
1055
1055
  type: "button",
1056
1056
  disabled: X.value,
1057
- class: ae + (w.iconClass ? " btn-icontext" : "") + (w.visible === !1 ? "d-none" : ""),
1057
+ class: ae + (x.iconClass ? " btn-icontext" : "") + (x.visible === !1 ? "d-none" : ""),
1058
1058
  onClick: (ke) => {
1059
- Ke(w, ke);
1059
+ Je(x, ke);
1060
1060
  }
1061
- }), [!!w.iconClass && r("i", {
1062
- class: w.iconClass
1063
- }, null), w.text]);
1061
+ }), [!!x.iconClass && r("i", {
1062
+ class: x.iconClass
1063
+ }, null), x.text]);
1064
1064
  })])]);
1065
1065
  }
1066
- function Ae(w) {
1066
+ function Ae(x) {
1067
1067
  b.value && pe();
1068
1068
  }
1069
1069
  function Le() {
1070
1070
  return r(Oe, null, [k.value && r("div", {
1071
1071
  class: "modal-header",
1072
1072
  style: "position: absolute;background: transparent;height: 45px;width: 100%;",
1073
- onDblclick: (w) => Ae()
1073
+ onDblclick: (x) => Ae()
1074
1074
  }, null), r("div", {
1075
1075
  ref: j,
1076
1076
  class: "modal-header",
1077
1077
  style: Ne.value,
1078
- onDblclick: (w) => Ae()
1078
+ onDblclick: (x) => Ae()
1079
1079
  }, [n.slots.headerTemplate ? n.slots.headerTemplate() : r("div", {
1080
1080
  class: "modal-title"
1081
1081
  }, [$.value && r("span", {
1082
- class: x.value,
1082
+ class: S.value,
1083
1083
  style: "margin-right: 8px"
1084
1084
  }, null), r("span", {
1085
1085
  class: "modal-title-label"
1086
- }, [S.value])]), r("div", {
1086
+ }, [T.value])]), r("div", {
1087
1087
  class: "actions"
1088
1088
  }, [ze()])])]);
1089
1089
  }
1090
1090
  function tt() {
1091
- return n.slots.footerTemplate ? n.slots.footerTemplate() : H.value && Ze();
1091
+ return n.slots.footerTemplate ? n.slots.footerTemplate() : H.value && Qe();
1092
1092
  }
1093
- function nt(w) {
1094
- if (w.stopPropagation(), t.allowClickMaskToClose) {
1095
- if (w.target !== N.value)
1093
+ function nt(x) {
1094
+ if (x.stopPropagation(), t.allowClickMaskToClose) {
1095
+ if (x.target !== D.value)
1096
1096
  return;
1097
- F(w, !1);
1097
+ F(x, !1);
1098
1098
  }
1099
1099
  }
1100
1100
  function ue() {
1101
- var w, X;
1102
- return r("div", de(kt(t.id), {
1101
+ var x, X;
1102
+ return r("div", de(Ot(t.id), {
1103
1103
  class: xe.value,
1104
1104
  style: Ye.value,
1105
1105
  ref: L
1106
1106
  }), [t.showFloatingClose && et(), r("div", {
1107
1107
  class: Be.value
1108
1108
  }, [m.value && Le(), r("div", {
1109
- class: Qe.value
1110
- }, [(X = (w = n.slots).default) == null ? void 0 : X.call(w), g.value === "iframe" && r("iframe", {
1109
+ class: Ke.value
1110
+ }, [(X = (x = n.slots).default) == null ? void 0 : X.call(x), g.value === "iframe" && r("iframe", {
1111
1111
  title: c.value,
1112
1112
  class: "f-utils-fill",
1113
1113
  width: "100%",
@@ -1115,20 +1115,20 @@ const ht = /* @__PURE__ */ qe({
1115
1115
  src: y.value
1116
1116
  }, null)]), tt()]), !d.value && L.value && !k.value && oe(L.value)]);
1117
1117
  }
1118
- function ot(w) {
1119
- return w || "body";
1118
+ function ot(x) {
1119
+ return x || "body";
1120
1120
  }
1121
- return Bo(() => {
1122
- fe.value && (Xe.value = nn() || 1050);
1123
- }), () => r(ln, {
1121
+ return ko(() => {
1122
+ fe.value && (Xe.value = an() || 1050);
1123
+ }), () => r(sn, {
1124
1124
  to: ot(t.host)
1125
1125
  }, {
1126
- default: () => [fe.value && r(rn, {
1126
+ default: () => [fe.value && r(un, {
1127
1127
  name: "fade",
1128
1128
  appear: !0
1129
1129
  }, {
1130
1130
  default: () => [r("div", {
1131
- ref: N,
1131
+ ref: D,
1132
1132
  class: De.value,
1133
1133
  style: we.value,
1134
1134
  onClick: nt
@@ -1137,28 +1137,28 @@ const ht = /* @__PURE__ */ qe({
1137
1137
  });
1138
1138
  }
1139
1139
  });
1140
- function wn(e) {
1140
+ function Sn(e) {
1141
1141
  if (e.content && e.content.render)
1142
1142
  return e.content.render;
1143
1143
  if (e.render && typeof e.render == "function")
1144
1144
  return e.render;
1145
1145
  }
1146
- function el(e) {
1146
+ function nl(e) {
1147
1147
  const n = document.createElement("div");
1148
1148
  n.style.display = "contents";
1149
- const t = e.type || "modal", o = _t({
1149
+ const t = e.type || "modal", o = Wt({
1150
1150
  setup(a, l) {
1151
- wt(() => {
1151
+ xt(() => {
1152
1152
  document.body.removeChild(n);
1153
1153
  });
1154
- const c = v(), h = v(e.class || ""), d = v(!0), m = v(e.title || ""), x = wn(e), s = e.closedCallback || ((G) => {
1154
+ const c = v(), h = v(e.class || ""), d = v(!0), m = v(e.title || ""), S = Sn(e), s = e.closedCallback || ((G) => {
1155
1155
  }), b = (G) => {
1156
1156
  d.value = !1, o.unmount(), s(G);
1157
1157
  };
1158
1158
  if (l.expose({
1159
1159
  ref: c
1160
1160
  }), t === "drawer")
1161
- return () => r(Et, {
1161
+ return () => r(It, {
1162
1162
  ref: c,
1163
1163
  modelValue: d.value,
1164
1164
  "onUpdate:modelValue": (G) => d.value = G,
@@ -1179,14 +1179,14 @@ function el(e) {
1179
1179
  customClass: h.value,
1180
1180
  onAfterClose: b
1181
1181
  }, {
1182
- default: () => [x && x(o)]
1182
+ default: () => [S && S(o)]
1183
1183
  });
1184
1184
  const u = v(!!e.showButtons), g = v(!!e.showHeader), y = v(e.showCloseButton == null ? !0 : e.showCloseButton), p = v(!!e.showFloatingClose), C = e.acceptCallback || (() => {
1185
- }), S = e.rejectCallback || (() => {
1186
- }), D = e.resizeHandle || ((G) => {
1187
- }), N = e.stopMoveHandle || ((G) => {
1185
+ }), T = e.rejectCallback || (() => {
1186
+ }), N = e.resizeHandle || ((G) => {
1187
+ }), D = e.stopMoveHandle || ((G) => {
1188
1188
  });
1189
- return () => r(ht, {
1189
+ return () => r(yt, {
1190
1190
  ref: c,
1191
1191
  class: h.value,
1192
1192
  modelValue: d.value,
@@ -1202,19 +1202,19 @@ function el(e) {
1202
1202
  showFloatingClose: p.value,
1203
1203
  beforeClose: e.beforeClose,
1204
1204
  onAccept: C,
1205
- onCancel: S,
1205
+ onCancel: T,
1206
1206
  fitContent: e.fitContent == null ? !0 : e.fitContent,
1207
1207
  onClosed: b,
1208
- onResize: D,
1209
- onStopMove: N
1208
+ onResize: N,
1209
+ onStopMove: D
1210
1210
  }, {
1211
- default: () => [x && x(o)]
1211
+ default: () => [S && S(o)]
1212
1212
  });
1213
1213
  }
1214
1214
  });
1215
1215
  return document.body.appendChild(n), o.use(Ue.i18n), o.mount(n), o;
1216
1216
  }
1217
- class xn {
1217
+ class Tn {
1218
1218
  // private activeModalInstance = computed(() => {
1219
1219
  // return this.modalRefs[this.activeModalIndex.value];
1220
1220
  // });
@@ -1248,7 +1248,7 @@ class xn {
1248
1248
  showButtons: !0,
1249
1249
  showHeader: !0
1250
1250
  }, n);
1251
- return el(t);
1251
+ return nl(t);
1252
1252
  }
1253
1253
  close(n) {
1254
1254
  var t, o;
@@ -1257,32 +1257,32 @@ class xn {
1257
1257
  open(n) {
1258
1258
  const t = document.createDocumentFragment(), o = n.type || "modal";
1259
1259
  n.showMaxButton && n.fitContent && (n.showMaxButton = !1);
1260
- const a = Fo(Object.assign({
1260
+ const a = Oo(Object.assign({
1261
1261
  title: "",
1262
1262
  showButtons: !0,
1263
1263
  showHeader: !0,
1264
1264
  maximized: !1
1265
- }, n)), l = v(!0), c = wn(a.value), h = a.value.closedCallback || ((C, S) => {
1265
+ }, n)), l = v(!0), c = Sn(a.value), h = a.value.closedCallback || ((C, T) => {
1266
1266
  }), d = a.value.openedCallback || ((C) => {
1267
1267
  });
1268
1268
  let m;
1269
- const x = (C) => {
1270
- var D;
1269
+ const S = (C) => {
1270
+ var N;
1271
1271
  l.value = !1;
1272
- const S = (D = C == null ? void 0 : C.target) == null ? void 0 : D.classList.contains("modal_close");
1273
- h(C, this.isUseEscCloseModal.value ? "esc" : S ? "icon" : "button");
1272
+ const T = (N = C == null ? void 0 : C.target) == null ? void 0 : N.classList.contains("modal_close");
1273
+ h(C, this.isUseEscCloseModal.value ? "esc" : T ? "icon" : "button");
1274
1274
  }, s = (C) => {
1275
- x(C), m && st(() => {
1276
- if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Ht(null, t), m = null, this.modalRef.value = null, this.modalRefs) {
1277
- const S = Object.keys(this.modalRefs).map((D) => Number(D));
1278
- S.length > 0 ? this.activeModalIndex.value = Math.max(...S) : this.activeModalIndex.value = 0, this.modalRefs[this.activeModalIndex.value] && (this.modalRef.value = this.modalRefs[this.activeModalIndex.value]);
1275
+ S(C), m && st(() => {
1276
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], jt(null, t), m = null, this.modalRef.value = null, this.modalRefs) {
1277
+ const T = Object.keys(this.modalRefs).map((N) => Number(N));
1278
+ T.length > 0 ? this.activeModalIndex.value = Math.max(...T) : this.activeModalIndex.value = 0, this.modalRefs[this.activeModalIndex.value] && (this.modalRef.value = this.modalRefs[this.activeModalIndex.value]);
1279
1279
  }
1280
1280
  this.isUseEscCloseModal.value = !1;
1281
1281
  });
1282
1282
  }, b = v();
1283
1283
  let u;
1284
1284
  if (o === "drawer")
1285
- u = () => r(Et, de({
1285
+ u = () => r(It, de({
1286
1286
  ref: b,
1287
1287
  modelValue: l.value,
1288
1288
  "onUpdate:modelValue": (C) => l.value = C,
@@ -1294,9 +1294,9 @@ class xn {
1294
1294
  });
1295
1295
  else {
1296
1296
  const C = a.value.acceptCallback || (() => {
1297
- }), S = a.value.rejectCallback || (() => {
1298
- }), D = a.value.resizeHandle || ((_) => {
1299
- }), N = n.stopMoveHandle || ((_) => {
1297
+ }), T = a.value.rejectCallback || (() => {
1298
+ }), N = a.value.resizeHandle || ((_) => {
1299
+ }), D = n.stopMoveHandle || ((_) => {
1300
1300
  }), G = (_) => {
1301
1301
  var $;
1302
1302
  this.isUseEscCloseModal.value = !0, ($ = this.getCurrentModal()) == null || $.close(_ == null ? void 0 : _.event);
@@ -1304,26 +1304,26 @@ class xn {
1304
1304
  width: Y,
1305
1305
  height: F
1306
1306
  } = a.value, W = this.adaptToWindow(Number(Y) || 500, Number(F) || 320);
1307
- Object.assign(a.value, W), u = () => r(ht, de({
1307
+ Object.assign(a.value, W), u = () => r(yt, de({
1308
1308
  ref: b,
1309
1309
  modelValue: l.value,
1310
1310
  "onUpdate:modelValue": (_) => l.value = _
1311
1311
  }, a.value, {
1312
1312
  isMessager: a.value.class && a.value.class.indexOf("modal-message") > -1,
1313
1313
  onAccept: C,
1314
- onCancel: S,
1314
+ onCancel: T,
1315
1315
  onClosed: s,
1316
- onResize: D,
1316
+ onResize: N,
1317
1317
  onEsc: G,
1318
- onStopMove: N,
1318
+ onStopMove: D,
1319
1319
  maximized: a.value.maximized
1320
1320
  }), {
1321
1321
  default: () => [c && c(this.app)]
1322
1322
  });
1323
1323
  }
1324
1324
  m = ((C) => {
1325
- const S = ko(u, C);
1326
- return S.appContext = this.appContext, Ht(S, t), S;
1325
+ const T = Mo(u, C);
1326
+ return T.appContext = this.appContext, jt(T, t), T;
1327
1327
  })({
1328
1328
  ...a.value
1329
1329
  }), this.activeModalIndex.value++;
@@ -1333,7 +1333,7 @@ class xn {
1333
1333
  a.value = {
1334
1334
  ...a.value,
1335
1335
  ...C
1336
- }, m && Ht(Oo(m, {
1336
+ }, m && jt(Eo(m, {
1337
1337
  ...a
1338
1338
  }), t);
1339
1339
  };
@@ -1347,20 +1347,20 @@ class xn {
1347
1347
  var C;
1348
1348
  (C = b.value) == null || C.close();
1349
1349
  },
1350
- disableButtons: (C, S = !0) => {
1351
- var D, N;
1352
- (N = (D = b.value) == null ? void 0 : D.disableButtons) == null || N.call(D, C, S);
1350
+ disableButtons: (C, T = !0) => {
1351
+ var N, D;
1352
+ (D = (N = b.value) == null ? void 0 : N.disableButtons) == null || D.call(N, C, T);
1353
1353
  }
1354
1354
  };
1355
1355
  }
1356
1356
  }
1357
- const yt = Symbol("FModalService");
1358
- ht.install = (e) => {
1359
- e.component(ht.name, ht);
1360
- const n = new xn(e);
1361
- e.provide(yt, n), e.provide("FModalService", n);
1357
+ const bt = Symbol("FModalService");
1358
+ yt.install = (e) => {
1359
+ e.component(yt.name, yt);
1360
+ const n = new Tn(e);
1361
+ e.provide(bt, n), e.provide("FModalService", n);
1362
1362
  };
1363
- function Sn(e, n) {
1363
+ function Bn(e, n) {
1364
1364
  function t() {
1365
1365
  const o = e.beforeOpen || e.beforeClickButton || null;
1366
1366
  let a = Promise.resolve(!0);
@@ -1374,22 +1374,22 @@ function Sn(e, n) {
1374
1374
  }
1375
1375
  return { judgeCanOpen: t };
1376
1376
  }
1377
- function tl(e, n, t, o, a) {
1377
+ function ol(e, n, t, o, a) {
1378
1378
  const l = v(e.buttonBehavior), c = v(e.popupOnInput), h = I(() => ({
1379
1379
  "input-group-append": !0,
1380
1380
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1381
- })), { judgeCanOpen: d } = Sn(e, a), m = I(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), x = St(yt, null), s = v();
1381
+ })), { judgeCanOpen: d } = Bn(e, a), m = I(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), S = Tt(bt, null), s = v();
1382
1382
  async function b(y) {
1383
1383
  if (await d() && m.value) {
1384
1384
  const p = !!n.slots.default;
1385
1385
  if (l.value === "Modal") {
1386
- const C = e.modalOptions, S = x == null ? void 0 : x.open({
1386
+ const C = e.modalOptions, T = S == null ? void 0 : S.open({
1387
1387
  ...C,
1388
1388
  render: () => n.slots.default && n.slots.default()
1389
1389
  });
1390
- s.value = S == null ? void 0 : S.modalRef;
1390
+ s.value = T == null ? void 0 : T.modalRef;
1391
1391
  }
1392
- l.value === "Overlay" && Ya.show({
1392
+ l.value === "Overlay" && Ja.show({
1393
1393
  // host: buttonEditRef.value,
1394
1394
  host: document.body,
1395
1395
  backgroundColor: "rgba(0,0,0,.15)",
@@ -1411,21 +1411,21 @@ function tl(e, n, t, o, a) {
1411
1411
  modalRef: s
1412
1412
  };
1413
1413
  }
1414
- function nl(e, n, t, o, a, l) {
1415
- const c = v(!1), h = I(() => e.enableClear && !e.readonly && !e.disable && !bt()), { changeTextBoxValue: d, hasClearClass: m } = l, x = v(!1);
1414
+ function al(e, n, t, o, a, l) {
1415
+ const c = v(!1), h = I(() => e.enableClear && !e.readonly && !e.disable && !Ct()), { changeTextBoxValue: d, hasClearClass: m } = l, S = v(!1);
1416
1416
  function s(p) {
1417
1417
  c.value = p, m.value = p;
1418
1418
  }
1419
- const b = I(() => h.value && !!(a != null && a.value) && x.value);
1419
+ const b = I(() => h.value && !!(a != null && a.value) && S.value);
1420
1420
  ve(a, () => {
1421
1421
  s(b.value);
1422
1422
  });
1423
1423
  function u(p) {
1424
- const C = !e.readonly && !e.disable && e.editable, S = !e.editable;
1425
- p == null || p.stopPropagation(), (C || S) && (d(""), a.value = "", s(!c.value), n.emit("clear"));
1424
+ const C = !e.readonly && !e.disable && e.editable, T = !e.editable;
1425
+ p == null || p.stopPropagation(), (C || T) && (d(""), a.value = "", s(!c.value), n.emit("clear"));
1426
1426
  }
1427
1427
  function g(p) {
1428
- if (x.value = !0, !!h.value) {
1428
+ if (S.value = !0, !!h.value) {
1429
1429
  if (!t.value) {
1430
1430
  s(!1);
1431
1431
  return;
@@ -1434,7 +1434,7 @@ function nl(e, n, t, o, a, l) {
1434
1434
  }
1435
1435
  }
1436
1436
  function y(p) {
1437
- x.value = !1, h.value && s(!1);
1437
+ S.value = !1, h.value && s(!1);
1438
1438
  }
1439
1439
  return {
1440
1440
  enableClearButton: h,
@@ -1444,8 +1444,8 @@ function nl(e, n, t, o, a, l) {
1444
1444
  onMouseLeaveTextBox: y
1445
1445
  };
1446
1446
  }
1447
- function ol(e, n, t, o, a) {
1448
- const l = I(() => e.popupOnInput), c = I(() => e.popupOnFocus), { shouldPopupContent: h, closeAllPopover: d } = a, m = v(!1), x = I(() => e.enableTitle ? t.value : ""), s = I(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), b = I(() => e.readonly || !e.editable || bt()), u = v(!1), g = I(() => !e.disable && u.value), y = I(() => ({
1447
+ function ll(e, n, t, o, a) {
1448
+ const l = I(() => e.popupOnInput), c = I(() => e.popupOnFocus), { shouldPopupContent: h, closeAllPopover: d } = a, m = v(!1), S = I(() => e.enableTitle ? t.value : ""), s = I(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), b = I(() => e.readonly || !e.editable || Ct()), u = v(!1), g = I(() => !e.disable && u.value), y = I(() => ({
1449
1449
  "text-left": e.textAlign === "left",
1450
1450
  "text-center": e.textAlign === "center",
1451
1451
  "text-right": e.textAlign === "right",
@@ -1462,7 +1462,7 @@ function ol(e, n, t, o, a) {
1462
1462
  function C(H, j = !0) {
1463
1463
  t.value = H, j && (n.emit("change", H), n.emit("update:modelValue", H));
1464
1464
  }
1465
- function S(H) {
1465
+ function T(H) {
1466
1466
  h.value = !1, C(H, !0);
1467
1467
  }
1468
1468
  ve(
@@ -1471,10 +1471,10 @@ function ol(e, n, t, o, a) {
1471
1471
  t.value = H;
1472
1472
  }
1473
1473
  );
1474
- function D(H) {
1474
+ function N(H) {
1475
1475
  u.value = !1, n.emit("blur", H), H.stopPropagation();
1476
1476
  }
1477
- function N(H) {
1477
+ function D(H) {
1478
1478
  n.emit("click", H), d(), n.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
1479
1479
  }
1480
1480
  function G(H) {
@@ -1503,13 +1503,13 @@ function ol(e, n, t, o, a) {
1503
1503
  isTextBoxReadonly: b,
1504
1504
  textBoxClass: y,
1505
1505
  textBoxPlaceholder: s,
1506
- textBoxTitle: x,
1506
+ textBoxTitle: S,
1507
1507
  inputGroupClass: p,
1508
1508
  hasClearClass: m,
1509
1509
  changeTextBoxValue: C,
1510
- commitValue: S,
1511
- onBlurTextBox: D,
1512
- onClickTextBox: N,
1510
+ commitValue: T,
1511
+ onBlurTextBox: N,
1512
+ onClickTextBox: D,
1513
1513
  onFocusTextBox: G,
1514
1514
  onInput: Y,
1515
1515
  onKeyDownTextBox: W,
@@ -1519,8 +1519,8 @@ function ol(e, n, t, o, a) {
1519
1519
  };
1520
1520
  }
1521
1521
  const it = "FarrisVue_PopoverInstancesKey";
1522
- function al(e, n, t, o) {
1523
- const a = v(), l = v(!1), { judgeCanOpen: c } = Sn(e, o);
1522
+ function il(e, n, t, o) {
1523
+ const a = v(), l = v(!1), { judgeCanOpen: c } = Bn(e, o);
1524
1524
  ve(() => a.value, (u, g) => {
1525
1525
  window[it] = window[it] || /* @__PURE__ */ new WeakMap(), u ? window[it].set(t.value, u) : window[it].delete(t.value);
1526
1526
  });
@@ -1544,7 +1544,7 @@ function al(e, n, t, o) {
1544
1544
  l.value = !l.value, l.value && (await st(), d());
1545
1545
  }
1546
1546
  }
1547
- async function x(u = !1) {
1547
+ async function S(u = !1) {
1548
1548
  if (!!n.slots.default) {
1549
1549
  if (!u && !await c())
1550
1550
  return;
@@ -1559,9 +1559,9 @@ function al(e, n, t, o) {
1559
1559
  d();
1560
1560
  });
1561
1561
  }
1562
- return { hidePopup: s, showPopup: b, popup: x, shouldPopupContent: l, togglePopup: m, popoverRef: a, closeAllPopover: h };
1562
+ return { hidePopup: s, showPopup: b, popup: S, shouldPopupContent: l, togglePopup: m, popoverRef: a, closeAllPopover: h };
1563
1563
  }
1564
- function ll(e, n, t) {
1564
+ function rl(e, n, t) {
1565
1565
  const o = v(), {
1566
1566
  isTextBoxReadonly: a,
1567
1567
  textBoxClass: l,
@@ -1569,7 +1569,7 @@ function ll(e, n, t) {
1569
1569
  textBoxTitle: h,
1570
1570
  onBlurTextBox: d,
1571
1571
  onClickTextBox: m,
1572
- onFocusTextBox: x,
1572
+ onFocusTextBox: S,
1573
1573
  onInput: s,
1574
1574
  onKeyDownTextBox: b,
1575
1575
  onKeyUpTextBox: u,
@@ -1577,30 +1577,30 @@ function ll(e, n, t) {
1577
1577
  onTextBoxValueChange: y
1578
1578
  } = t, p = v(e.id), {
1579
1579
  uuid: C
1580
- } = Ro(), S = I(() => ({
1580
+ } = jo(), T = I(() => ({
1581
1581
  // 'border-top-right-radius': '6px',
1582
1582
  // 'border-bottom-right-radius': '6px'
1583
1583
  }));
1584
- vt(() => {
1584
+ pt(() => {
1585
1585
  var F, W;
1586
1586
  e.selectOnCreated && ((F = o.value) == null || F.select()), e.focusOnCreated && ((W = o.value) == null || W.focus({
1587
1587
  preventScroll: !0
1588
1588
  })), p.value || (p.value = "button-edit_" + C(8)), p.value = p.value + "-textbox";
1589
1589
  });
1590
- const D = v(!1), N = (F) => {
1591
- F.preventDefault(), D.value = !0;
1590
+ const N = v(!1), D = (F) => {
1591
+ F.preventDefault(), N.value = !0;
1592
1592
  }, G = (F) => {
1593
- F.preventDefault(), D.value = !1, s(F);
1593
+ F.preventDefault(), N.value = !1, s(F);
1594
1594
  };
1595
1595
  function Y(F) {
1596
- D.value || s(F);
1596
+ N.value || s(F);
1597
1597
  }
1598
1598
  return () => r("input", de(Se(e.id, "textbox"), {
1599
1599
  ref: o,
1600
1600
  name: "input-group-value",
1601
1601
  autocomplete: e.autoComplete ? "on" : "off",
1602
1602
  class: l.value,
1603
- style: S.value,
1603
+ style: T.value,
1604
1604
  disabled: e.disable,
1605
1605
  maxlength: e.maxLength,
1606
1606
  minlength: e.minLength,
@@ -1613,23 +1613,23 @@ function ll(e, n, t) {
1613
1613
  onBlur: d,
1614
1614
  onChange: y,
1615
1615
  onClick: m,
1616
- onFocus: x,
1616
+ onFocus: S,
1617
1617
  onInput: Y,
1618
1618
  onKeydown: b,
1619
1619
  onKeyup: u,
1620
1620
  onMousedown: g,
1621
1621
  onCompositionend: G,
1622
- onCompositionstart: N
1622
+ onCompositionstart: D
1623
1623
  }), null);
1624
1624
  }
1625
- function il(e, n, t) {
1625
+ function sl(e, n, t) {
1626
1626
  const o = v(e.separator), a = I(() => e.readonly || e.disable), {
1627
1627
  changeTextBoxValue: l,
1628
1628
  onFocusTextBox: c,
1629
1629
  onBlurTextBox: h,
1630
1630
  onClickTextBox: d,
1631
1631
  textBoxPlaceholder: m
1632
- } = t, x = I(() => n.value ? n.value.split(o.value).map((g) => ({
1632
+ } = t, S = I(() => n.value ? n.value.split(o.value).map((g) => ({
1633
1633
  name: g,
1634
1634
  selectable: !0
1635
1635
  })) : []);
@@ -1646,14 +1646,14 @@ function il(e, n, t) {
1646
1646
  function u(g) {
1647
1647
  d(g);
1648
1648
  }
1649
- return () => r(zo, {
1649
+ return () => r(Lo, {
1650
1650
  tabindex: e.tabIndex,
1651
1651
  onFocus: c,
1652
1652
  onBlur: h,
1653
1653
  id: Se(e.id, "tag-editor").id,
1654
1654
  class: "form-control",
1655
1655
  placeholder: m.value,
1656
- data: x.value,
1656
+ data: S.value,
1657
1657
  showClose: !a.value,
1658
1658
  showInput: !0,
1659
1659
  disable: a.value,
@@ -1661,7 +1661,7 @@ function il(e, n, t) {
1661
1661
  onClick: u
1662
1662
  }, null);
1663
1663
  }
1664
- function rl(e, n, t, o) {
1664
+ function ul(e, n, t, o) {
1665
1665
  const {
1666
1666
  buttonGroupClass: a,
1667
1667
  onClickButton: l,
@@ -1670,25 +1670,25 @@ function rl(e, n, t, o) {
1670
1670
  } = t, {
1671
1671
  enableClearButton: d,
1672
1672
  showClearButton: m,
1673
- onClearValue: x
1674
- } = o, s = v(), b = fn((y) => {
1673
+ onClearValue: S
1674
+ } = o, s = v(), b = vn((y) => {
1675
1675
  l(y);
1676
1676
  }, e.buttonBehavior === "Modal" ? 0 : 200), u = () => {
1677
1677
  n.emit("beforeClearValue");
1678
1678
  }, {
1679
1679
  renderExpandContent: g
1680
- } = Ho(e, n);
1680
+ } = Vo(e, n);
1681
1681
  return {
1682
1682
  renderButtonGroup: () => r(Oe, null, [r("div", {
1683
1683
  id: e.id ? `${e.id}-button-group` : void 0,
1684
1684
  class: a.value
1685
- }, [d.value && sn(r("span", de(Se(e.id, "clear"), {
1685
+ }, [d.value && cn(r("span", de(Se(e.id, "clear"), {
1686
1686
  class: "input-group-text input-group-clear",
1687
- onClick: x,
1687
+ onClick: S,
1688
1688
  onMousedown: u
1689
1689
  }), [r("i", {
1690
1690
  class: "f-icon modal_close"
1691
- }, null)]), [[Mo, m.value]]), n.slots.buttonContent ? r("span", de(Se(e.id, "append"), {
1691
+ }, null)]), [[Io, m.value]]), n.slots.buttonContent ? r("span", de(Se(e.id, "append"), {
1692
1692
  class: "input-group-text input-group-append-button",
1693
1693
  onClick: b,
1694
1694
  onMouseenter: c,
@@ -1704,7 +1704,7 @@ function rl(e, n, t, o) {
1704
1704
  buttonHandleElement: s
1705
1705
  };
1706
1706
  }
1707
- function sl(e, n, t) {
1707
+ function cl(e, n, t) {
1708
1708
  const o = v(e.popupMinWidth), {
1709
1709
  hidePopup: a,
1710
1710
  popoverRef: l
@@ -1713,7 +1713,7 @@ function sl(e, n, t) {
1713
1713
  }, h = () => {
1714
1714
  a(), n.emit("hidden");
1715
1715
  };
1716
- return () => bt() ? r(Et, de(Se(e.id, "drawer"), {
1716
+ return () => Ct() ? r(It, de(Se(e.id, "drawer"), {
1717
1717
  ref: l,
1718
1718
  position: e.placement,
1719
1719
  width: "auto",
@@ -1728,7 +1728,7 @@ function sl(e, n, t) {
1728
1728
  var d, m;
1729
1729
  return [He(" "), (m = (d = n.slots).default) == null ? void 0 : m.call(d), He(" ")];
1730
1730
  }
1731
- }) : r(Ao, de(Se(e.id, "popover"), {
1731
+ }) : r(_o, de(Se(e.id, "popover"), {
1732
1732
  ref: l,
1733
1733
  placement: e.placement,
1734
1734
  host: e.popupHost,
@@ -1750,25 +1750,25 @@ function sl(e, n, t) {
1750
1750
  }
1751
1751
  });
1752
1752
  }
1753
- const Tn = /* @__PURE__ */ qe({
1753
+ const Fn = /* @__PURE__ */ qe({
1754
1754
  name: "FButtonEdit",
1755
- props: La,
1756
- emits: _a,
1755
+ props: Wa,
1756
+ emits: Ga,
1757
1757
  setup(e, n) {
1758
- const t = Mt(e), o = n, a = v(), l = v(t.customClass), c = v(t.modelValue), h = al(t, o, a, c), {
1758
+ const t = Et(e), o = n, a = v(), l = v(t.customClass), c = v(t.modelValue), h = il(t, o, a, c), {
1759
1759
  shouldPopupContent: d,
1760
1760
  hidePopup: m,
1761
- showPopup: x,
1761
+ showPopup: S,
1762
1762
  togglePopup: s
1763
- } = h, b = tl(t, o, a, h, c), u = v(""), g = ol(t, o, c, u, h), {
1763
+ } = h, b = ol(t, o, a, h, c), u = v(""), g = ll(t, o, c, u, h), {
1764
1764
  hasFocusedTextBox: y,
1765
1765
  commitValue: p,
1766
1766
  inputGroupClass: C,
1767
- changeTextBoxValue: S
1768
- } = g, D = nl(t, o, c, y, u, g), {
1769
- onMouseEnterTextBox: N,
1767
+ changeTextBoxValue: T
1768
+ } = g, N = al(t, o, c, y, u, g), {
1769
+ onMouseEnterTextBox: D,
1770
1770
  onMouseLeaveTextBox: G
1771
- } = D, Y = v(!1), F = I(() => {
1771
+ } = N, Y = v(!1), F = I(() => {
1772
1772
  const M = {
1773
1773
  "f-button-edit": !0,
1774
1774
  "f-cmp-inputgroup": !0,
@@ -1789,16 +1789,16 @@ const Tn = /* @__PURE__ */ qe({
1789
1789
  return A && A.length && (M = A.map((J) => J.offsetTop).filter((J) => J > 20).length), M;
1790
1790
  }
1791
1791
  const j = v(H());
1792
- Eo(() => {
1792
+ Po(() => {
1793
1793
  j.value = H();
1794
1794
  });
1795
1795
  function L() {
1796
- return t.multiSelect && t.inputType === "tag" ? () => r(Oe, null, [il(t, c, g)(), !!j.value && r("div", {
1796
+ return t.multiSelect && t.inputType === "tag" ? () => r(Oe, null, [sl(t, c, g)(), !!j.value && r("div", {
1797
1797
  class: "d-flex flex-row mr-2 more-tags",
1798
1798
  "more-tags": !0
1799
1799
  }, [r("span", {
1800
1800
  class: "multi--more-text"
1801
- }, [He("+"), j.value])])]) : ll(t, c, g);
1801
+ }, [He("+"), j.value])])]) : rl(t, c, g);
1802
1802
  }
1803
1803
  let k = L();
1804
1804
  ve([() => t.multiSelect, () => t.inputType], () => {
@@ -1807,17 +1807,17 @@ const Tn = /* @__PURE__ */ qe({
1807
1807
  const {
1808
1808
  renderButtonGroup: oe,
1809
1809
  buttonHandleElement: te
1810
- } = rl(t, o, b, D), R = sl(t, o, h), B = v(d.value), E = {
1810
+ } = ul(t, o, b, N), R = cl(t, o, h), B = v(d.value), E = {
1811
1811
  displayText: u,
1812
1812
  commitValue: p,
1813
1813
  elementRef: a,
1814
1814
  hidePopup: m,
1815
- showPopup: x,
1815
+ showPopup: S,
1816
1816
  popoverRef: h.popoverRef,
1817
1817
  shouldPopupContent: d,
1818
1818
  togglePopup: s,
1819
1819
  openDialog: () => {
1820
- te.value && t.buttonBehavior === "Modal" && te.value.click(), n.slots.content && fn(() => {
1820
+ te.value && t.buttonBehavior === "Modal" && te.value.click(), n.slots.content && vn(() => {
1821
1821
  b.onClickButton(null);
1822
1822
  }, t.buttonBehavior === "Modal" ? 0 : 200)();
1823
1823
  },
@@ -1833,17 +1833,17 @@ const Tn = /* @__PURE__ */ qe({
1833
1833
  B.value = !1, Y.value = !0, d.value = !1;
1834
1834
  },
1835
1835
  clear: () => {
1836
- S(""), u.value = "";
1836
+ T(""), u.value = "";
1837
1837
  },
1838
1838
  setText: (M) => {
1839
- S(M, !1), u.value = M;
1839
+ T(M, !1), u.value = M;
1840
1840
  }
1841
1841
  };
1842
- return vt(() => {
1842
+ return pt(() => {
1843
1843
  a.value.componentInstance = E, window.onresize = () => {
1844
1844
  document.body.click();
1845
1845
  };
1846
- }), Io(() => {
1846
+ }), Do(() => {
1847
1847
  var M;
1848
1848
  window.onresize = null, (M = window[it]) == null || M.delete(a.value);
1849
1849
  }), n.expose(E), ve(() => d.value, async (M, A) => {
@@ -1865,23 +1865,23 @@ const Tn = /* @__PURE__ */ qe({
1865
1865
  var M, A;
1866
1866
  return r(Oe, null, [r("div", de({
1867
1867
  ref: a
1868
- }, kt(t.id), n.attrs, {
1868
+ }, Ot(t.id), n.attrs, {
1869
1869
  class: F.value,
1870
1870
  style: W.value
1871
1871
  }), [r("div", de(Se(t.id, "input-group"), {
1872
1872
  class: C.value,
1873
1873
  style: _.value,
1874
- onMouseenter: N,
1874
+ onMouseenter: D,
1875
1875
  onMouseleave: G
1876
1876
  }), [(A = (M = n.slots).precontent) == null ? void 0 : A.call(M), n.slots.content ? n.slots.content() : k(), n.slots.content ? null : $.value && oe()])]), B.value && R()]);
1877
1877
  };
1878
1878
  }
1879
1879
  });
1880
- cn(Tn);
1881
- function Bn(e, n) {
1880
+ fn(Fn);
1881
+ function kn(e, n) {
1882
1882
  let t;
1883
1883
  function o(s) {
1884
- const { properties: b, title: u, ignore: g } = s, y = g && Array.isArray(g), p = Object.keys(b).reduce((C, S) => ((!y || !g.find((D) => D === S)) && (C[S] = b[S].type === "object" && b[S].properties ? o(b[S]) : Vt(b[S].default)), C), {});
1884
+ const { properties: b, title: u, ignore: g } = s, y = g && Array.isArray(g), p = Object.keys(b).reduce((C, T) => ((!y || !g.find((N) => N === T)) && (C[T] = b[T].type === "object" && b[T].properties ? o(b[T]) : zt(b[T].default)), C), {});
1885
1885
  if (u && (!y || !g.find((C) => C === "id"))) {
1886
1886
  const C = u.toLowerCase().replace(/-/g, "_");
1887
1887
  p.id = `${C}_${Math.random().toString().slice(2, 6)}`;
@@ -1891,7 +1891,7 @@ function Bn(e, n) {
1891
1891
  function a(s) {
1892
1892
  const { properties: b, title: u, required: g } = s;
1893
1893
  if (g && Array.isArray(g)) {
1894
- const y = g.reduce((p, C) => (p[C] = b[C].type === "object" && b[C].properties ? o(b[C]) : Vt(b[C].default), p), {});
1894
+ const y = g.reduce((p, C) => (p[C] = b[C].type === "object" && b[C].properties ? o(b[C]) : zt(b[C].default), p), {});
1895
1895
  if (u && g.find((p) => p === "id")) {
1896
1896
  const p = u.toLowerCase().replace(/-/g, "_");
1897
1897
  y.id = `${p}_${Math.random().toString().slice(2, 6)}`;
@@ -1913,7 +1913,7 @@ function Bn(e, n) {
1913
1913
  }
1914
1914
  function c(s, b) {
1915
1915
  const u = o(b);
1916
- return Object.keys(u).reduce((g, y) => (Object.prototype.hasOwnProperty.call(s, y) && (g[y] && an(g[y]) && an(s[y] || !s[y]) ? Object.assign(g[y], s[y] || {}) : g[y] = s[y]), g), u), u;
1916
+ return Object.keys(u).reduce((g, y) => (Object.prototype.hasOwnProperty.call(s, y) && (g[y] && rn(g[y]) && rn(s[y] || !s[y]) ? Object.assign(g[y], s[y] || {}) : g[y] = s[y]), g), u), u;
1917
1917
  }
1918
1918
  function h(s, b) {
1919
1919
  return Object.keys(s).filter((g) => s[g] != null).reduce((g, y) => {
@@ -1943,21 +1943,21 @@ function Bn(e, n) {
1943
1943
  return s;
1944
1944
  const y = c(s, g), p = ((u = s.editor) == null ? void 0 : u.type) || "";
1945
1945
  if (p) {
1946
- const C = e[p], S = c(s.editor, C);
1947
- y.editor = S;
1946
+ const C = e[p], T = c(s.editor, C);
1947
+ y.editor = T;
1948
1948
  }
1949
1949
  return y;
1950
1950
  }
1951
1951
  return s;
1952
1952
  }
1953
- function x(s) {
1953
+ function S(s) {
1954
1954
  t = s;
1955
1955
  }
1956
- return { getSchemaByType: l, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: d, mappingSchemaToProps: h, setDesignerContext: x };
1956
+ return { getSchemaByType: l, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: d, mappingSchemaToProps: h, setDesignerContext: S };
1957
1957
  }
1958
- const ul = {}, cl = {}, { resolveSchemaWithDefaultValue: dl } = Bn(ul, cl);
1959
- function fl(e = {}) {
1960
- function n(m, x, s, b) {
1958
+ const dl = {}, fl = {}, { resolveSchemaWithDefaultValue: ml } = kn(dl, fl);
1959
+ function vl(e = {}) {
1960
+ function n(m, S, s, b) {
1961
1961
  if (typeof s == "number")
1962
1962
  return b[m].length === s;
1963
1963
  if (typeof s == "object") {
@@ -1971,20 +1971,20 @@ function fl(e = {}) {
1971
1971
  }
1972
1972
  return !1;
1973
1973
  }
1974
- function t(m, x, s, b) {
1974
+ function t(m, S, s, b) {
1975
1975
  return b[m] && b[m].propertyValue && String(b[m].propertyValue.value) === String(s);
1976
1976
  }
1977
1977
  const o = /* @__PURE__ */ new Map([
1978
1978
  ["length", n],
1979
1979
  ["getProperty", t]
1980
1980
  ]);
1981
- Object.keys(e).reduce((m, x) => (m.set(x, e[x]), m), o);
1982
- function a(m, x) {
1981
+ Object.keys(e).reduce((m, S) => (m.set(S, e[S]), m), o);
1982
+ function a(m, S) {
1983
1983
  const s = m;
1984
- return typeof x == "number" ? [{ target: s, operator: "length", param: null, value: Number(x) }] : typeof x == "boolean" ? [{ target: s, operator: "getProperty", param: m, value: !!x }] : typeof x == "object" ? Object.keys(x).map((b) => {
1984
+ return typeof S == "number" ? [{ target: s, operator: "length", param: null, value: Number(S) }] : typeof S == "boolean" ? [{ target: s, operator: "getProperty", param: m, value: !!S }] : typeof S == "object" ? Object.keys(S).map((b) => {
1985
1985
  if (b === "length")
1986
- return { target: s, operator: "length", param: null, value: x[b] };
1987
- const u = b, g = x[b];
1986
+ return { target: s, operator: "length", param: null, value: S[b] };
1987
+ const u = b, g = S[b];
1988
1988
  return { target: s, operator: "getProperty", param: u, value: g };
1989
1989
  }) : [];
1990
1990
  }
@@ -1994,35 +1994,35 @@ function fl(e = {}) {
1994
1994
  return s.push(...u), s;
1995
1995
  }, []);
1996
1996
  }
1997
- function c(m, x) {
1997
+ function c(m, S) {
1998
1998
  if (o.has(m.operator)) {
1999
1999
  const s = o.get(m.operator);
2000
- return s && s(m.target, m.param, m.value, x) || !1;
2000
+ return s && s(m.target, m.param, m.value, S) || !1;
2001
2001
  }
2002
2002
  return !1;
2003
2003
  }
2004
- function h(m, x) {
2005
- return l(m).reduce((u, g) => u && c(g, x), !0);
2004
+ function h(m, S) {
2005
+ return l(m).reduce((u, g) => u && c(g, S), !0);
2006
2006
  }
2007
- function d(m, x) {
2008
- const s = Object.keys(m), b = s.includes("allOf"), u = s.includes("anyOf"), g = b || u, C = (g ? m[g ? b ? "allOf" : "anyOf" : "allOf"] : [m]).map((D) => h(D, x));
2007
+ function d(m, S) {
2008
+ const s = Object.keys(m), b = s.includes("allOf"), u = s.includes("anyOf"), g = b || u, C = (g ? m[g ? b ? "allOf" : "anyOf" : "allOf"] : [m]).map((N) => h(N, S));
2009
2009
  return b ? !C.includes(!1) : C.includes(!0);
2010
2010
  }
2011
2011
  return { parseValueSchema: d };
2012
2012
  }
2013
- const ml = {
2013
+ const pl = {
2014
2014
  convertTo: (e, n, t, o) => {
2015
2015
  e.appearance || (e.appearance = {}), e.appearance[n] = t;
2016
2016
  },
2017
2017
  convertFrom: (e, n, t) => e.appearance ? e.appearance[n] : e[n]
2018
- }, vl = {
2018
+ }, gl = {
2019
2019
  convertFrom: (e, n, t) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
2020
- }, pl = {
2020
+ }, hl = {
2021
2021
  convertTo: (e, n, t, o) => {
2022
2022
  e.editor && (e.editor[n] = t);
2023
2023
  },
2024
2024
  convertFrom: (e, n, t) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, n) ? e.editor[n] : e[n]
2025
- }, gl = {
2025
+ }, yl = {
2026
2026
  button: { type: "button", name: "按钮" },
2027
2027
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
2028
2028
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -2088,18 +2088,18 @@ const ml = {
2088
2088
  step: { type: "step", name: "步骤条", icon: "step" },
2089
2089
  "dynamic-form": { type: "dynamic-form", name: "动态表单" },
2090
2090
  "field-search-box": { type: "field-search-box", name: "智能搜索框", icon: "input-group" }
2091
- }, hl = {
2091
+ }, bl = {
2092
2092
  convertFrom: (e, n, t) => {
2093
2093
  var a;
2094
2094
  const o = e.editor && e.editor[n] ? e.editor[n] : e[n];
2095
- return ((a = gl[o]) == null ? void 0 : a.name) || o;
2095
+ return ((a = yl[o]) == null ? void 0 : a.name) || o;
2096
2096
  }
2097
- }, yl = {
2097
+ }, Cl = {
2098
2098
  convertTo: (e, n, t, o) => {
2099
2099
  e[n] = e[n];
2100
2100
  },
2101
2101
  convertFrom: (e, n, t) => e.editor ? t.getRealEditorType(e.editor.type) : ""
2102
- }, bl = {
2102
+ }, wl = {
2103
2103
  convertTo: (e, n, t, o) => {
2104
2104
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[n] = t : e.formatter = {
2105
2105
  [n]: t
@@ -2130,7 +2130,7 @@ const ml = {
2130
2130
  }
2131
2131
  return "none";
2132
2132
  }
2133
- }, Cl = {
2133
+ }, xl = {
2134
2134
  convertTo: (e, n, t, o) => {
2135
2135
  e.command ? e.command[n] = t : e.command = {
2136
2136
  [n]: t
@@ -2183,7 +2183,7 @@ const ml = {
2183
2183
  }
2184
2184
  return "";
2185
2185
  }
2186
- }, wl = {
2186
+ }, Sl = {
2187
2187
  convertTo: (e, n, t, o) => {
2188
2188
  if (e.column || (e.column = {}), n === "fitMode") {
2189
2189
  t && t !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = t) : (e.column.fitColumns = !1, e.column.fitMode = "average");
@@ -2206,7 +2206,7 @@ const ml = {
2206
2206
  }
2207
2207
  return n === "fitMode" ? "none" : "";
2208
2208
  }
2209
- }, xl = {
2209
+ }, Tl = {
2210
2210
  convertTo: (e, n, t, o) => {
2211
2211
  e.summary ? e.summary[n] = t : e.summary = {
2212
2212
  [n]: t
@@ -2219,7 +2219,7 @@ const ml = {
2219
2219
  var o, a;
2220
2220
  return n === "customSummaryStyle" ? e.summary.customSummaryStyle : n === "position" ? ((o = e.summary) == null ? void 0 : o[n]) || "bottom" : n === "customRender" ? ((a = e.summary) == null ? void 0 : a[n]) || "" : e.summary && n === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
2221
2221
  }
2222
- }, Sl = {
2222
+ }, Bl = {
2223
2223
  convertTo: (e, n, t, o) => {
2224
2224
  e.group ? e.group[n] = t : e.group = {
2225
2225
  [n]: t
@@ -2242,7 +2242,7 @@ const ml = {
2242
2242
  return e.group.groupFields;
2243
2243
  }
2244
2244
  }
2245
- }, Tl = {
2245
+ }, Fl = {
2246
2246
  convertTo: (e, n, t, o) => {
2247
2247
  e.column || (e.column = {}), e.column.groups = t || [];
2248
2248
  },
@@ -2251,7 +2251,7 @@ const ml = {
2251
2251
  const o = ((a = e.column) == null ? void 0 : a.groups) || [];
2252
2252
  return o.length ? `共 ${o.length} 个分组` : "未配置";
2253
2253
  }
2254
- }, Bl = {
2254
+ }, kl = {
2255
2255
  convertFrom: (e, n) => e.binding ? e.binding.path : "",
2256
2256
  convertTo: (e, n, t) => {
2257
2257
  if (t && t.length > 0) {
@@ -2259,7 +2259,7 @@ const ml = {
2259
2259
  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;
2260
2260
  }
2261
2261
  }
2262
- }, Fl = {
2262
+ }, Ol = {
2263
2263
  convertTo: (e, n, t, o) => {
2264
2264
  if (e.pagination || (e.pagination = {}), n === "sizeLimits")
2265
2265
  if (t == null)
@@ -2277,12 +2277,12 @@ const ml = {
2277
2277
  var o;
2278
2278
  return e.pagination ? n === "sizeLimits" ? ((o = e.pagination.sizeLimits) == null ? void 0 : o.join(",")) ?? "" : e.pagination[n] : e[n];
2279
2279
  }
2280
- }, kl = {
2280
+ }, Ml = {
2281
2281
  convertTo: (e, n, t, o) => {
2282
2282
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[n] = t;
2283
2283
  },
2284
2284
  convertFrom: (e, n, t) => e.rowNumber ? e.rowNumber[n] : e[n]
2285
- }, Ol = {
2285
+ }, El = {
2286
2286
  convertTo: (e, n, t, o) => {
2287
2287
  e.selection || (e.selection = {}), e.selection[n] = t;
2288
2288
  },
@@ -2293,7 +2293,7 @@ const ml = {
2293
2293
  return n === "showCheckbox" && o == null && e.selection.multiSelect === !0 ? !0 : o;
2294
2294
  }
2295
2295
  };
2296
- function Ml(e) {
2296
+ function Il(e) {
2297
2297
  const { formSchemaUtils: n, formStateMachineUtils: t } = e;
2298
2298
  function o(d, m = "") {
2299
2299
  return {
@@ -2303,15 +2303,15 @@ function Ml(e) {
2303
2303
  };
2304
2304
  }
2305
2305
  function a(d, m = "") {
2306
- const x = n.getViewModelById(d);
2307
- return x ? x.states.map((s) => o(s, m)) : [];
2306
+ const S = n.getViewModelById(d);
2307
+ return S ? S.states.map((s) => o(s, m)) : [];
2308
2308
  }
2309
2309
  function l(d) {
2310
- const m = n.getRootViewModelId(), x = a(d);
2310
+ const m = n.getRootViewModelId(), S = a(d);
2311
2311
  if (d === m)
2312
- return x;
2312
+ return S;
2313
2313
  const s = a(m, "root-component.");
2314
- return [...x, ...s];
2314
+ return [...S, ...s];
2315
2315
  }
2316
2316
  function c(d) {
2317
2317
  return d.binding && d.binding.path || d.id || "";
@@ -2321,9 +2321,9 @@ function Ml(e) {
2321
2321
  }
2322
2322
  return { getVariables: l, getControlName: c, getStateMachines: h };
2323
2323
  }
2324
- function El(e, n, t, o) {
2325
- const { getVariables: a, getControlName: l, getStateMachines: c } = Ml(e);
2326
- return (h, d = [], m = {}, x = {}, s) => {
2324
+ function Pl(e, n, t, o) {
2325
+ const { getVariables: a, getControlName: l, getStateMachines: c } = Il(e);
2326
+ return (h, d = [], m = {}, S = {}, s) => {
2327
2327
  const b = d && d.length > 0 ? d : ["Const", "Variable", "StateMachine", "Expression"], u = {
2328
2328
  type: "property-editor",
2329
2329
  propertyTypes: b
@@ -2351,30 +2351,30 @@ function El(e, n, t, o) {
2351
2351
  onBeforeOpenVariables: (y) => {
2352
2352
  y.value = a(n);
2353
2353
  }
2354
- }, x), (o == null ? void 0 : o.designerMode) === "PC_RTC" && (u.newVariablePrefix = "ext_" + u.newVariablePrefix);
2354
+ }, S), (o == null ? void 0 : o.designerMode) === "PC_RTC" && (u.newVariablePrefix = "ext_" + u.newVariablePrefix);
2355
2355
  break;
2356
2356
  }
2357
2357
  }), u;
2358
2358
  };
2359
2359
  }
2360
- const Il = {
2360
+ const Dl = {
2361
2361
  convertFrom: (e, n, t) => e[n] && e[n].length ? `共 ${e[n].length} 项` : ""
2362
- }, Pl = {
2362
+ }, Nl = {
2363
2363
  convertFrom: (e, n) => e[n] || "",
2364
2364
  convertTo: (e, n, t) => {
2365
2365
  e[n] = t;
2366
2366
  }
2367
- }, Dl = {
2367
+ }, Rl = {
2368
2368
  convertTo: (e, n, t, o) => {
2369
2369
  e.size || (e.size = {}), e.size[n] = t;
2370
2370
  },
2371
2371
  convertFrom: (e, n, t) => e.size ? e.size[n] : e[n]
2372
- }, Nl = {
2372
+ }, Hl = {
2373
2373
  convertFrom: (e, n, t) => {
2374
2374
  var o, a;
2375
2375
  return (o = e.formatter) != null && o.data && n === "formatterEnumData" && !e.formatterEnumData ? (a = e.formatter) == null ? void 0 : a.data : e.formatterEnumData;
2376
2376
  }
2377
- }, Rl = {
2377
+ }, jl = {
2378
2378
  convertTo: (e, n, t, o) => {
2379
2379
  e.sort || (e.sort = {}), e.sort[n] = t;
2380
2380
  },
@@ -2385,7 +2385,7 @@ const Il = {
2385
2385
  if (n === "multiSort")
2386
2386
  return !!((a = e.sort) != null && a.multiSort);
2387
2387
  }
2388
- }, Hl = {
2388
+ }, Vl = {
2389
2389
  convertTo: (e, n, t, o) => {
2390
2390
  e.filter || (e.filter = {}), e.filter[n] = t, n === "enable" && (e.enableFilter = !1);
2391
2391
  },
@@ -2393,7 +2393,7 @@ const Il = {
2393
2393
  var o, a, l, c;
2394
2394
  return n === "mode" ? ((o = e.filter) == null ? void 0 : o.mode) || "server" : n === "filterStyle" ? ((a = e.filter) == null ? void 0 : a.filterStyle) || "filter-column" : n === "enable" ? ((l = e.filter) == null ? void 0 : l.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((c = e.filter) == null ? void 0 : c[n]) || void 0;
2395
2395
  }
2396
- }, jl = {
2396
+ }, zl = {
2397
2397
  convertTo: (e, n, t, o) => {
2398
2398
  e.rowOption ? e.rowOption[n] = t : e.rowOption = {
2399
2399
  [n]: t
@@ -2410,7 +2410,7 @@ const Il = {
2410
2410
  }
2411
2411
  return "";
2412
2412
  }
2413
- }, Vl = {
2413
+ }, Al = {
2414
2414
  convertTo: (e, n, t, o) => {
2415
2415
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[n] = t, n === "columnTemplateType" && t === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
2416
2416
  <span class="f-pretend-link f-cursor-pointer"
@@ -2424,7 +2424,7 @@ const Il = {
2424
2424
  </span>`), n === "columnTemplateType" && t === "default" && (e.columnTemplate = ""), n === "columnTemplateType" && t === "custom" && (e.columnTemplate = ""));
2425
2425
  },
2426
2426
  convertFrom: (e, n, t) => n === "columnTemplate" ? e.columnTemplate : n === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
2427
- }, zl = {
2427
+ }, Ll = {
2428
2428
  convertTo: (e, n, t, o) => {
2429
2429
  e.hierarchy || (e.hierarchy = {
2430
2430
  cascadeOption: {}
@@ -2434,7 +2434,7 @@ const Il = {
2434
2434
  var o, a;
2435
2435
  return !!((a = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && a[n]);
2436
2436
  }
2437
- }, Al = {
2437
+ }, _l = {
2438
2438
  /**
2439
2439
  * 从 schema.uploadOptions 读取子属性值,供属性面板展示
2440
2440
  */
@@ -2446,33 +2446,33 @@ const Il = {
2446
2446
  e.uploadOptions || (e.uploadOptions = {}), e.uploadOptions[n] = t;
2447
2447
  }
2448
2448
  };
2449
- function Fn(e, n, t, o) {
2449
+ function On(e, n, t, o) {
2450
2450
  const a = /* @__PURE__ */ new Map([
2451
- ["/converter/appearance.converter", ml],
2452
- ["/converter/buttons.converter", vl],
2453
- ["/converter/property-editor.converter", pl],
2454
- ["/converter/items-count.converter", Il],
2455
- ["/converter/type.converter", hl],
2456
- ["/converter/change-editor.converter", yl],
2457
- ["/converter/change-formatter.converter", bl],
2458
- ["/converter/column-command.converter", Cl],
2459
- ["/converter/column-option.converter", wl],
2460
- ["/converter/summary.converter", xl],
2461
- ["/converter/group.converter", Sl],
2462
- ["/converter/header-group.converter", Tl],
2463
- ["/converter/form-group-label.converter", Pl],
2464
- ["/converter/field-selector.converter", Bl],
2465
- ["/converter/pagination.converter", Fl],
2466
- ["/converter/row-number.converter", kl],
2467
- ["/converter/grid-selection.converter", Ol],
2468
- ["/converter/size.converter", Dl],
2469
- ["/converter/change-formatter-enum.converter", Nl],
2470
- ["/converter/grid-sort.converter", Rl],
2471
- ["/converter/grid-filter.converter", Hl],
2472
- ["/converter/row-option.converter", jl],
2473
- ["/converter/change-formatter-type.converter", Vl],
2474
- ["/converter/upload-options.converter", Al],
2475
- ["/converter/tree-auto-check.converter", zl]
2451
+ ["/converter/appearance.converter", pl],
2452
+ ["/converter/buttons.converter", gl],
2453
+ ["/converter/property-editor.converter", hl],
2454
+ ["/converter/items-count.converter", Dl],
2455
+ ["/converter/type.converter", bl],
2456
+ ["/converter/change-editor.converter", Cl],
2457
+ ["/converter/change-formatter.converter", wl],
2458
+ ["/converter/column-command.converter", xl],
2459
+ ["/converter/column-option.converter", Sl],
2460
+ ["/converter/summary.converter", Tl],
2461
+ ["/converter/group.converter", Bl],
2462
+ ["/converter/header-group.converter", Fl],
2463
+ ["/converter/form-group-label.converter", Nl],
2464
+ ["/converter/field-selector.converter", kl],
2465
+ ["/converter/pagination.converter", Ol],
2466
+ ["/converter/row-number.converter", Ml],
2467
+ ["/converter/grid-selection.converter", El],
2468
+ ["/converter/size.converter", Rl],
2469
+ ["/converter/change-formatter-enum.converter", Hl],
2470
+ ["/converter/grid-sort.converter", jl],
2471
+ ["/converter/grid-filter.converter", Vl],
2472
+ ["/converter/row-option.converter", zl],
2473
+ ["/converter/change-formatter-type.converter", Al],
2474
+ ["/converter/upload-options.converter", _l],
2475
+ ["/converter/tree-auto-check.converter", Ll]
2476
2476
  ]), l = /* @__PURE__ */ new Map([
2477
2477
  ["string", { type: "input-group", enableClear: !1 }],
2478
2478
  ["boolean", {
@@ -2498,7 +2498,7 @@ function Fn(e, n, t, o) {
2498
2498
  ["number", { type: "number-spinner", placeholder: "" }],
2499
2499
  ["events-editor", { type: "events-editor", hide: !0 }],
2500
2500
  ["multiLanguage", { type: "language-textbox" }]
2501
- ]), c = fl();
2501
+ ]), c = vl();
2502
2502
  function h(y, p) {
2503
2503
  return () => c.parseValueSchema(y, p);
2504
2504
  }
@@ -2508,21 +2508,21 @@ function Fn(e, n, t, o) {
2508
2508
  function m(y, p, C) {
2509
2509
  return y.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : h(p.readonly, C) : () => !1;
2510
2510
  }
2511
- function x(y, p) {
2511
+ function S(y, p) {
2512
2512
  const C = y.$converter || p;
2513
2513
  return typeof C == "string" && C && a.has(C) ? a.get(C) || null : C || null;
2514
2514
  }
2515
- function s(y, p, C, S, D, N = "", G = "") {
2515
+ function s(y, p, C, T, N, D = "", G = "") {
2516
2516
  return Object.keys(y).map((F) => {
2517
2517
  const W = v(1), _ = F, $ = y[F], H = Object.keys($), j = $.title, L = $.type, k = l.get(L) || { type: "input-group", enableClear: !1 }, oe = $.editor ? Object.assign({}, k, $.editor) : Object.assign({}, k), te = d(H, $, p), R = m(H, $, p);
2518
2518
  oe.readonly = oe.readonly === void 0 ? R() : oe.readonly;
2519
- const B = $.type === "cascade" ? s($.properties, p, C, S, D, N, G) : [], E = !0;
2520
- let M = x($, G);
2519
+ const B = $.type === "cascade" ? s($.properties, p, C, T, N, D, G) : [], E = !0;
2520
+ let M = S($, G);
2521
2521
  const A = I({
2522
2522
  get() {
2523
2523
  if (W.value) {
2524
2524
  if (["class", "style"].find((Te) => Te === _) && !M && (M = a.get("/converter/appearance.converter") || null), M && M.convertFrom) {
2525
- const Te = M.convertFrom(C, F, D, N);
2525
+ const Te = M.convertFrom(C, F, N, D);
2526
2526
  return Te === void 0 && Object.prototype.hasOwnProperty.call($, "defaultValue") ? $.type === "boolean" ? $.defaultValue : $.defaultValue || "" : Te;
2527
2527
  }
2528
2528
  const xe = C[F];
@@ -2531,50 +2531,50 @@ function Fn(e, n, t, o) {
2531
2531
  return null;
2532
2532
  },
2533
2533
  set(xe) {
2534
- W.value += 1, M && M.convertTo ? (M.convertTo(S, F, xe, D, N), M.convertTo(C, F, xe, D, N)) : (S[F] = xe, C[F] = xe);
2534
+ W.value += 1, M && M.convertTo ? (M.convertTo(T, F, xe, N, D), M.convertTo(C, F, xe, N, D)) : (T[F] = xe, C[F] = xe);
2535
2535
  }
2536
2536
  }), { refreshPanelAfterChanged: J, description: se, isExpand: Ce, parentPropertyID: fe } = $, De = { propertyID: _, propertyName: j, propertyType: L, propertyValue: A, editor: oe, visible: te, readonly: R, cascadeConfig: B, hideCascadeTitle: E, refreshPanelAfterChanged: J, description: se, isExpand: Ce, parentPropertyID: fe };
2537
2537
  return p[_] = De, De;
2538
2538
  });
2539
2539
  }
2540
2540
  function b(y, p, C = {}) {
2541
- const S = {}, D = e[y];
2542
- return D && D.categories ? Object.keys(D.categories).map((G) => {
2543
- const Y = D.categories[G], F = Y == null ? void 0 : Y.title, W = s(Y.properties || {}, S, {}, C, p);
2541
+ const T = {}, N = e[y];
2542
+ return N && N.categories ? Object.keys(N.categories).map((G) => {
2543
+ const Y = N.categories[G], F = Y == null ? void 0 : Y.title, W = s(Y.properties || {}, T, {}, C, p);
2544
2544
  return { categoryId: G, categoryName: F, properties: W };
2545
2545
  }) : [];
2546
2546
  }
2547
- function u(y, p, C, S, D = "") {
2548
- const N = p.$ref.schema, G = p.$ref.converter, Y = C[N], F = Y.type, W = t(Y), _ = {}, $ = e[F];
2547
+ function u(y, p, C, T, N = "") {
2548
+ const D = p.$ref.schema, G = p.$ref.converter, Y = C[D], F = Y.type, W = t(Y), _ = {}, $ = e[F];
2549
2549
  if ($ && $.categories) {
2550
2550
  const H = $.categories[y], j = H == null ? void 0 : H.title;
2551
2551
  G && Object.keys(H.properties).forEach((oe) => {
2552
2552
  H.properties[oe].$converter = G;
2553
2553
  });
2554
- const L = (H == null ? void 0 : H.properties) || {}, k = s(L, _, W, Y, S, D);
2554
+ const L = (H == null ? void 0 : H.properties) || {}, k = s(L, _, W, Y, T, N);
2555
2555
  return { categoryId: y, categoryName: j, properties: k };
2556
2556
  }
2557
2557
  return { categoryId: y, categoryName: "", properties: [] };
2558
2558
  }
2559
- function g(y, p, C, S, D) {
2560
- const N = y.type, G = t(y), Y = {};
2561
- let F = D || e[N];
2562
- !(F && Object.keys(F).length > 0) && C && C.getPropConfig && (F = C.getPropConfig(S));
2563
- const _ = o == null ? void 0 : o[N];
2559
+ function g(y, p, C, T, N) {
2560
+ const D = y.type, G = t(y), Y = {};
2561
+ let F = N || e[D];
2562
+ !(F && Object.keys(F).length > 0) && C && C.getPropConfig && (F = C.getPropConfig(T));
2563
+ const _ = o == null ? void 0 : o[D];
2564
2564
  if (_ != null && _.categories && F) {
2565
2565
  let $;
2566
2566
  const H = _._resolver;
2567
2567
  if (H && (C != null && C.getDesignerHostService)) {
2568
2568
  const j = C.getDesignerHostService();
2569
2569
  if (j != null && j.formSchemaUtils) {
2570
- const L = j.formSchemaUtils.getViewModelIdByComponentId(S) || "", k = El(
2570
+ const L = j.formSchemaUtils.getViewModelIdByComponentId(T) || "", k = Pl(
2571
2571
  j,
2572
2572
  L,
2573
- S,
2573
+ T,
2574
2574
  j == null ? void 0 : j.designerContext
2575
2575
  ), oe = {
2576
2576
  propertyData: y,
2577
- componentId: S,
2577
+ componentId: T,
2578
2578
  designerHostService: j,
2579
2579
  viewModelId: L,
2580
2580
  getPropertyEditorParams: (te, R, B, E) => k(y, te, R, B, E)
@@ -2600,10 +2600,10 @@ function Fn(e, n, t, o) {
2600
2600
  return Object.keys(F.categories).map((H) => {
2601
2601
  const j = F.categories[H];
2602
2602
  if (j.$ref) {
2603
- $.push(u(H, j, y, p, S));
2603
+ $.push(u(H, j, y, p, T));
2604
2604
  return;
2605
2605
  }
2606
- const L = j == null ? void 0 : j.title, k = j == null ? void 0 : j.tabId, oe = j == null ? void 0 : j.tabName, te = j == null ? void 0 : j.hide, R = j == null ? void 0 : j.hideTitle, B = s(j.properties || {}, Y, G, y, p, S, j.$converter), { setPropertyRelates: E } = j, M = j == null ? void 0 : j.parentPropertyID;
2606
+ const L = j == null ? void 0 : j.title, k = j == null ? void 0 : j.tabId, oe = j == null ? void 0 : j.tabName, te = j == null ? void 0 : j.hide, R = j == null ? void 0 : j.hideTitle, B = s(j.properties || {}, Y, G, y, p, T, j.$converter), { setPropertyRelates: E } = j, M = j == null ? void 0 : j.parentPropertyID;
2607
2607
  $.push({ categoryId: H, categoryName: L, tabId: k, tabName: oe, hide: te, properties: B, hideTitle: R, setPropertyRelates: E, parentPropertyID: M });
2608
2608
  }), $;
2609
2609
  }
@@ -2615,14 +2615,14 @@ function Fn(e, n, t, o) {
2615
2615
  propertyConverterMap: a
2616
2616
  };
2617
2617
  }
2618
- const Ll = {}, _l = {};
2619
- Fn(Ll, _l, dl);
2620
- const Wl = {}, Gl = {}, { resolveSchemaWithDefaultValue: $l } = Bn(Wl, Gl), Ul = {}, ql = {}, Yl = {};
2621
- Fn(Ul, ql, $l, Yl);
2622
- function Xl(e, n) {
2618
+ const Wl = {}, Gl = {};
2619
+ On(Wl, Gl, ml);
2620
+ const $l = {}, Ul = {}, { resolveSchemaWithDefaultValue: ql } = kn($l, Ul), Yl = {}, Xl = {}, Jl = {};
2621
+ On(Yl, Xl, ql, Jl);
2622
+ function Zl(e, n) {
2623
2623
  return null;
2624
2624
  }
2625
- const Jl = {
2625
+ const Ql = {
2626
2626
  /** 是否启用分页。 */
2627
2627
  enable: { type: Boolean, default: !1 },
2628
2628
  /** 当前页码。 */
@@ -2646,11 +2646,11 @@ const Jl = {
2646
2646
  /** 是否禁用分页。 */
2647
2647
  disabled: { type: Boolean, default: !1 }
2648
2648
  };
2649
- function Tt(e) {
2649
+ function Bt(e) {
2650
2650
  const n = e == null ? void 0 : e.fitColumns;
2651
2651
  return n === !0 || typeof n == "object" && n !== null && "enable" in n && n.enable === !0;
2652
2652
  }
2653
- const Zl = {
2653
+ const Kl = {
2654
2654
  /** 启用多选且显示 checkbox,选中行后勾选前面的 checkbox。 */
2655
2655
  checkOnSelect: { type: Boolean, default: !1 },
2656
2656
  /** 数据源为空时是否清空已选记录。 */
@@ -2678,7 +2678,7 @@ const Zl = {
2678
2678
  showSelectAll: { type: Boolean, default: !1 },
2679
2679
  /** 是否显示已选数据。 */
2680
2680
  showSelection: { type: Boolean, default: !1 }
2681
- }, Ql = {
2681
+ }, ei = {
2682
2682
  /** 自定义表格 CSS 类名。 */
2683
2683
  customClass: { type: String, default: "" },
2684
2684
  /** 是否在最后一个单元格回车时新增一行。 */
@@ -2849,7 +2849,7 @@ const Zl = {
2849
2849
  /** 绑定动态字段的解析器(历史调用多为单参数:当前行 raw)。 */
2850
2850
  fieldsResolver: {
2851
2851
  type: Function,
2852
- default: Xl
2852
+ default: Zl
2853
2853
  },
2854
2854
  /** 绑定动态字段的值回调函数。 */
2855
2855
  fieldsCallback: {
@@ -2900,7 +2900,7 @@ const Zl = {
2900
2900
  },
2901
2901
  /** 是否启用列设置方案。 */
2902
2902
  enableColumnSettingSolution: { type: Boolean, default: !1 }
2903
- }, Kl = {
2903
+ }, ti = {
2904
2904
  changed: (e) => !0,
2905
2905
  clickRow: (e, n) => !0,
2906
2906
  doubleClickRow: (e, n) => !0,
@@ -2922,17 +2922,17 @@ const Zl = {
2922
2922
  fieldsValueChange: (...e) => !0,
2923
2923
  fieldsClick: (...e) => !0
2924
2924
  };
2925
- function kn(e) {
2925
+ function Mn(e) {
2926
2926
  return Object.fromEntries(
2927
2927
  Object.entries(e).map(([n, t]) => [n, t.default])
2928
2928
  );
2929
2929
  }
2930
- const ei = kn(Jl), ti = kn(Zl);
2931
- function ni(e) {
2930
+ const ni = Mn(Ql), oi = Mn(Kl);
2931
+ function ai(e) {
2932
2932
  const n = {
2933
2933
  ...e,
2934
- pagination: { ...ei, ...e.pagination ?? {} },
2935
- selection: { ...ti, ...e.selection ?? {} }
2934
+ pagination: { ...ni, ...e.pagination ?? {} },
2935
+ selection: { ...oi, ...e.selection ?? {} }
2936
2936
  };
2937
2937
  return Object.defineProperty(n, "editable", {
2938
2938
  enumerable: !0,
@@ -2940,7 +2940,7 @@ function ni(e) {
2940
2940
  get: () => e.editable
2941
2941
  }), n;
2942
2942
  }
2943
- function oi() {
2943
+ function li() {
2944
2944
  const e = /* @__PURE__ */ new Map([
2945
2945
  ["boolean", "check-box"],
2946
2946
  ["datetime", "date-picker"],
@@ -2967,13 +2967,13 @@ function oi() {
2967
2967
  }
2968
2968
  return { transformColumnToField: n };
2969
2969
  }
2970
- function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
2970
+ function ii(e, n, t, o, a, l, c, h, d, m, S, s, b, u, g, y, p) {
2971
2971
  const {
2972
2972
  isNull: C,
2973
- isUndefined: S
2974
- } = dn(), {
2975
- totalItems: D,
2976
- rawView: N
2973
+ isUndefined: T
2974
+ } = mn(), {
2975
+ totalItems: N,
2976
+ rawView: D
2977
2977
  } = y, {
2978
2978
  calculateCellPositionInRow: G,
2979
2979
  cellKey: Y,
@@ -3007,7 +3007,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3007
3007
  } = h, {
3008
3008
  navigateOnKeyUp: Te,
3009
3009
  navigateOnKeyDown: Ye
3010
- } = x, Xe = (f) => (f || []).some((i) => Wt(i) ? !(i.type === un || i.type === Oe && !Xe(i.children)) : !0) ? f : null, we = (f) => {
3010
+ } = S, Xe = (f) => (f || []).some((i) => Gt(i) ? !(i.type === dn || i.type === Oe && !Xe(i.children)) : !0) ? f : null, we = (f) => {
3011
3011
  var i, O, P;
3012
3012
  return ((O = (i = f.column) == null ? void 0 : i.editor) == null ? void 0 : O.type) === "switch" || ((P = f.column) == null ? void 0 : P.dataType) === "boolean" ? {
3013
3013
  display: "flex",
@@ -3023,16 +3023,16 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3023
3023
  }), Ne = Fe({
3024
3024
  "fv-grid-content-right-fixed": !0
3025
3025
  });
3026
- ve([D, N], (f) => {
3026
+ ve([N, D], (f) => {
3027
3027
  !f[0] && !f[1].length ? (Be["fv-grid-content-left-fixed"] = !1, Ne["fv-grid-content-right-fixed"] = !1) : (Be["fv-grid-content-left-fixed"] = !0, Ne["fv-grid-content-right-fixed"] = !0);
3028
3028
  });
3029
3029
  const {
3030
3030
  gridDataStyle: Me,
3031
- gridMergedDataStyle: Qe,
3031
+ gridMergedDataStyle: Ke,
3032
3032
  leftFixedGridDataStyle: je,
3033
3033
  leftFixedGridMergedDataStyle: Ee,
3034
3034
  rightFixedGridDataStyle: pe,
3035
- rightFixedGridMergedDataStyle: Ke
3035
+ rightFixedGridMergedDataStyle: Je
3036
3036
  } = u;
3037
3037
  function Ve(f, i) {
3038
3038
  f.stopPropagation(), i.collapse = !i.collapse, g.value = Ce(i.collapse ? "collapse" : "expand", i, g.value);
@@ -3051,7 +3051,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3051
3051
  position: "relative",
3052
3052
  zIndex: 10
3053
3053
  }
3054
- }, he ? hn(e.id, "group", f.groupField, f.groupValue, "expand") : {}, {
3054
+ }, he ? bn(e.id, "group", f.groupField, f.groupValue, "expand") : {}, {
3055
3055
  onClick: (Q) => Ve(Q, f)
3056
3056
  }), [r("span", {
3057
3057
  class: te(f)
@@ -3080,7 +3080,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3080
3080
  padding: "0 0.75rem"
3081
3081
  },
3082
3082
  title: Z.data
3083
- }, [Z.data])), Object.values(f.data).filter((ie) => ie.field !== f.groupField && i[ie.field] && ie.colSpan !== 0 && ie.field !== _o && ie.field !== Wo).forEach((ie) => {
3083
+ }, [Z.data])), Object.values(f.data).filter((ie) => ie.field !== f.groupField && i[ie.field] && ie.colSpan !== 0 && ie.field !== Go && ie.field !== $o).forEach((ie) => {
3084
3084
  var Q;
3085
3085
  const he = F(f, ie, i);
3086
3086
  if (!U) {
@@ -3101,7 +3101,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3101
3101
  return f.layer > -1 && r("div", de({
3102
3102
  ref: f.setRef,
3103
3103
  key: W(f)
3104
- }, mn(e.id, f.groupField, f.groupValue), {
3104
+ }, pn(e.id, f.groupField, f.groupValue), {
3105
3105
  class: {
3106
3106
  ...B(f, O),
3107
3107
  "d-flex": !0,
@@ -3135,7 +3135,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3135
3135
  onMouseover: (z) => M(z, f)
3136
3136
  }, [et(f, i)]);
3137
3137
  }
3138
- function Je(f, i) {
3138
+ function Ze(f, i) {
3139
3139
  var O, P, z;
3140
3140
  return f.showTips && typeof ((O = f.column) == null ? void 0 : O.formatter) != "function" && ((P = f.column) == null ? void 0 : P.dataType) !== "commands" && ((z = f.column) == null ? void 0 : z.dataType) !== "setting" ? r("div", {
3141
3141
  class: oe(f),
@@ -3144,13 +3144,13 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3144
3144
  class: oe(f)
3145
3145
  }, [f.formatter(f, i)]);
3146
3146
  }
3147
- function Ze() {
3147
+ function Qe() {
3148
3148
  return r("div", null, [He("******")]);
3149
3149
  }
3150
3150
  function Ae(f) {
3151
3151
  var P, z;
3152
- const i = !C(f.data) && !S(f.data) ? f.data.toString() : f.data;
3153
- return ((z = (P = f.column) == null ? void 0 : P.editor) == null ? void 0 : z.showType) === "password" ? Ze() : f.showTips ? r("div", {
3152
+ const i = !C(f.data) && !T(f.data) ? f.data.toString() : f.data;
3153
+ return ((z = (P = f.column) == null ? void 0 : P.editor) == null ? void 0 : z.showType) === "password" ? Qe() : f.showTips ? r("div", {
3154
3154
  class: oe(f),
3155
3155
  title: i
3156
3156
  }, [i]) : r("div", {
@@ -3158,7 +3158,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3158
3158
  }, [i]);
3159
3159
  }
3160
3160
  function Le(f, i) {
3161
- const O = f.column.columnTemplate(f, i), P = yn(f.data, f.column || {}), z = f.showTips && !C(P) && !S(P) ? P.toString() : void 0;
3161
+ const O = f.column.columnTemplate(f, i), P = Cn(f.data, f.column || {}), z = f.showTips && !C(P) && !T(P) ? P.toString() : void 0;
3162
3162
  return z !== void 0 ? r("div", {
3163
3163
  class: oe(f),
3164
3164
  title: z
@@ -3167,16 +3167,16 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3167
3167
  }, [O]);
3168
3168
  }
3169
3169
  function tt(f, i) {
3170
- return f.mode === bn.editing ? r("div", {
3170
+ return f.mode === wn.editing ? r("div", {
3171
3171
  style: we(f)
3172
- }, [f.getEditor(f)]) : f.column.columnTemplate ? Le(f, i) : f.formatter ? Je(f, i) : Ae(f);
3172
+ }, [f.getEditor(f)]) : f.column.columnTemplate ? Le(f, i) : f.formatter ? Ze(f, i) : Ae(f);
3173
3173
  }
3174
3174
  function nt(f, i, O, P, z) {
3175
- const K = vn(f, e.idField);
3175
+ const K = gn(f, e.idField);
3176
3176
  return r("div", de({
3177
3177
  ref: f.setRef,
3178
3178
  key: W(f)
3179
- }, pn(e.id, K), {
3179
+ }, hn(e.id, K), {
3180
3180
  class: B(f, O),
3181
3181
  style: P,
3182
3182
  onClick: (U) => E(U, f),
@@ -3191,7 +3191,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3191
3191
  return r("div", de({
3192
3192
  ref: U.setRef,
3193
3193
  key: Y(f, U.index)
3194
- }, gn(e.id, K, U.field), {
3194
+ }, yn(e.id, K, U.field), {
3195
3195
  class: R(U, f),
3196
3196
  style: F(f, U, i),
3197
3197
  onClick: (Q) => {
@@ -3211,13 +3211,13 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3211
3211
  return nt(f, i, O, _(f));
3212
3212
  }
3213
3213
  const ot = [ue, We, ze];
3214
- function w(f, i) {
3214
+ function x(f, i) {
3215
3215
  const O = G(f);
3216
3216
  return g.value.map((P, z) => ot[P.type](P, O, z, i));
3217
3217
  }
3218
3218
  function X(f, i) {
3219
3219
  var P;
3220
- const O = (P = f.column) != null && P.columnTemplate ? Le(f, i) : f.formatter ? Je(f, i) : Ae(f);
3220
+ const O = (P = f.column) != null && P.columnTemplate ? Le(f, i) : f.formatter ? Ze(f, i) : Ae(f);
3221
3221
  return r("div", {
3222
3222
  class: L(f),
3223
3223
  style: k(f)
@@ -3241,7 +3241,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3241
3241
  }, [r("div", {
3242
3242
  class: "fv-grid-data",
3243
3243
  style: je.value
3244
- }, [w(fe.value.leftColumns.filter((f) => f.visible), "left")]), r("div", {
3244
+ }, [x(fe.value.leftColumns.filter((f) => f.visible), "left")]), r("div", {
3245
3245
  class: "fv-grid-merge-date",
3246
3246
  style: Ee.value
3247
3247
  }, [ae(fe.value.leftColumns.filter((f) => f.visible))])]);
@@ -3253,9 +3253,9 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3253
3253
  }, [r("div", {
3254
3254
  class: "fv-grid-data",
3255
3255
  style: Me.value
3256
- }, [w(fe.value.primaryColumns.filter((f) => f.visible), "primary")]), r("div", {
3256
+ }, [x(fe.value.primaryColumns.filter((f) => f.visible), "primary")]), r("div", {
3257
3257
  class: "fv-grid-merge-date",
3258
- style: Qe.value
3258
+ style: Ke.value
3259
3259
  }, [ae(fe.value.primaryColumns.filter((f) => f.visible))])]);
3260
3260
  }
3261
3261
  function Ge() {
@@ -3265,9 +3265,9 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3265
3265
  }, [r("div", {
3266
3266
  class: "fv-grid-data",
3267
3267
  style: pe.value
3268
- }, [w(fe.value.rightColumns.filter((f) => f.visible), "right")]), r("div", {
3268
+ }, [x(fe.value.rightColumns.filter((f) => f.visible), "right")]), r("div", {
3269
3269
  class: "fv-grid-merge-date",
3270
- style: Ke.value
3270
+ style: Je.value
3271
3271
  }, [ae(fe.value.rightColumns.filter((f) => f.visible))])]);
3272
3272
  }
3273
3273
  function _e() {
@@ -3278,7 +3278,7 @@ function ai(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3278
3278
  renderDataArea: _e
3279
3279
  };
3280
3280
  }
3281
- const li = /* @__PURE__ */ qe({
3281
+ const ri = /* @__PURE__ */ qe({
3282
3282
  name: "FDataGridRowForm",
3283
3283
  props: {
3284
3284
  columns: {
@@ -3342,7 +3342,7 @@ const li = /* @__PURE__ */ qe({
3342
3342
  setup(e, {
3343
3343
  emit: n
3344
3344
  }) {
3345
- return () => r(Va, {
3345
+ return () => r(Aa, {
3346
3346
  fields: e.fields,
3347
3347
  formData: e.formData,
3348
3348
  showHeader: e.showHeader,
@@ -3366,14 +3366,14 @@ const li = /* @__PURE__ */ qe({
3366
3366
  }, null);
3367
3367
  }
3368
3368
  });
3369
- function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3369
+ function si(e, n, t, o, a, l, c, h, d, m, S, s, b, u, g, y, p) {
3370
3370
  const {
3371
3371
  transformColumnToField: C
3372
- } = oi(), {
3373
- isNull: S,
3374
- isUndefined: D
3375
- } = dn(), {
3376
- totalItems: N,
3372
+ } = li(), {
3373
+ isNull: T,
3374
+ isUndefined: N
3375
+ } = mn(), {
3376
+ totalItems: D,
3377
3377
  rawView: G
3378
3378
  } = y, {
3379
3379
  calculateCellPositionInRow: Y,
@@ -3406,14 +3406,14 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3406
3406
  hasRightFixedColumn: xe
3407
3407
  } = h, Te = I(() => {
3408
3408
  var O;
3409
- if (e.displayType !== "Card" || (((O = e.columns) == null ? void 0 : O.length) ?? 0) === 0 || e.fit && Tt(e.columnOption))
3409
+ if (e.displayType !== "Card" || (((O = e.columns) == null ? void 0 : O.length) ?? 0) === 0 || e.fit && Bt(e.columnOption))
3410
3410
  return;
3411
3411
  const i = fe.value.primaryColumnsWidth || 0;
3412
3412
  return i > 0 ? `${i}px` : void 0;
3413
3413
  }), {
3414
3414
  navigateOnKeyUp: Ye,
3415
3415
  navigateOnKeyDown: Xe
3416
- } = x, we = (i) => (i || []).some((O) => Wt(O) ? !(O.type === un || O.type === Oe && !we(O.children)) : !0) ? i : null, Be = (i) => {
3416
+ } = S, we = (i) => (i || []).some((O) => Gt(O) ? !(O.type === dn || O.type === Oe && !we(O.children)) : !0) ? i : null, Be = (i) => {
3417
3417
  var O, P, z;
3418
3418
  return ((P = (O = i.column) == null ? void 0 : O.editor) == null ? void 0 : P.type) === "switch" || ((z = i.column) == null ? void 0 : z.dataType) === "boolean" ? {
3419
3419
  display: "flex",
@@ -3429,15 +3429,15 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3429
3429
  }), Me = Fe({
3430
3430
  "fv-grid-content-right-fixed": !0
3431
3431
  });
3432
- ve([N, G], (i) => {
3432
+ ve([D, G], (i) => {
3433
3433
  !i[0] && !i[1].length ? (Ne["fv-grid-content-left-fixed"] = !1, Me["fv-grid-content-right-fixed"] = !1) : (Ne["fv-grid-content-left-fixed"] = !0, Me["fv-grid-content-right-fixed"] = !0);
3434
3434
  });
3435
3435
  const {
3436
- gridDataStyle: Qe,
3436
+ gridDataStyle: Ke,
3437
3437
  gridMergedDataStyle: je,
3438
3438
  leftFixedGridDataStyle: Ee,
3439
3439
  leftFixedGridMergedDataStyle: pe,
3440
- rightFixedGridDataStyle: Ke,
3440
+ rightFixedGridDataStyle: Je,
3441
3441
  rightFixedGridMergedDataStyle: Ve
3442
3442
  } = u;
3443
3443
  function Re(i, O) {
@@ -3457,7 +3457,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3457
3457
  position: "relative",
3458
3458
  zIndex: 10
3459
3459
  }
3460
- }, Z ? hn(e.id, "group", i.groupField, i.groupValue, "expand") : {}, {
3460
+ }, Z ? bn(e.id, "group", i.groupField, i.groupValue, "expand") : {}, {
3461
3461
  onClick: (ie) => Re(ie, i)
3462
3462
  }), [r("span", {
3463
3463
  class: R(i)
@@ -3503,7 +3503,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3503
3503
  return i.layer > -1 && r("div", de({
3504
3504
  ref: i.setRef,
3505
3505
  key: _(i)
3506
- }, mn(e.id, i.groupField, i.groupValue), {
3506
+ }, pn(e.id, i.groupField, i.groupValue), {
3507
3507
  class: {
3508
3508
  ...E(i, P),
3509
3509
  "d-flex": !0,
@@ -3544,7 +3544,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3544
3544
  style: U
3545
3545
  }, [z.data])), P;
3546
3546
  }
3547
- function Je(i, O, P) {
3547
+ function Ze(i, O, P) {
3548
3548
  var z;
3549
3549
  return i.height = ((z = e.rowOption) == null ? void 0 : z.height) || 28, i.raw.__fv_data_height__ = i.height, i.layer > -1 && r("div", {
3550
3550
  ref: i.setRef,
@@ -3563,7 +3563,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3563
3563
  onMouseover: (K) => A(K, i)
3564
3564
  }, [ze(i, O)]);
3565
3565
  }
3566
- function Ze(i, O) {
3566
+ function Qe(i, O) {
3567
3567
  var P, z, K;
3568
3568
  return i.showTips && typeof ((P = i.column) == null ? void 0 : P.formatter) != "function" && ((z = i.column) == null ? void 0 : z.dataType) !== "commands" && ((K = i.column) == null ? void 0 : K.dataType) !== "setting" ? r("div", {
3569
3569
  class: te(i),
@@ -3577,7 +3577,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3577
3577
  }
3578
3578
  function Le(i) {
3579
3579
  var z, K;
3580
- const O = !S(i.data) && !D(i.data) ? i.data.toString() : i.data;
3580
+ const O = !T(i.data) && !N(i.data) ? i.data.toString() : i.data;
3581
3581
  return ((K = (z = i.column) == null ? void 0 : z.editor) == null ? void 0 : K.showType) === "password" ? Ae() : i.showTips ? r("div", {
3582
3582
  class: te(i),
3583
3583
  title: O
@@ -3586,7 +3586,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3586
3586
  }, [O]);
3587
3587
  }
3588
3588
  function tt(i, O) {
3589
- const P = i.column.columnTemplate(i, O), z = yn(i.data, i.column || {}), K = i.showTips && !S(z) && !D(z) ? z.toString() : void 0;
3589
+ const P = i.column.columnTemplate(i, O), z = Cn(i.data, i.column || {}), K = i.showTips && !T(z) && !N(z) ? z.toString() : void 0;
3590
3590
  return K !== void 0 ? r("div", {
3591
3591
  class: te(i),
3592
3592
  title: K
@@ -3595,17 +3595,17 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3595
3595
  }, [P]);
3596
3596
  }
3597
3597
  function nt(i, O) {
3598
- return i.mode === bn.editing ? r("div", {
3598
+ return i.mode === wn.editing ? r("div", {
3599
3599
  style: Be(i)
3600
- }, [i.getEditor(i)]) : i.column.columnTemplate ? tt(i, O) : i.formatter ? Ze(i, O) : Le(i);
3600
+ }, [i.getEditor(i)]) : i.column.columnTemplate ? tt(i, O) : i.formatter ? Qe(i, O) : Le(i);
3601
3601
  }
3602
3602
  function ue(i, O, P, z, K, U) {
3603
3603
  var Q;
3604
- const Z = $(i), ie = i.height || ((Q = e.rowOption) == null ? void 0 : Q.height) || 28, he = vn(i, e.idField);
3604
+ const Z = $(i), ie = i.height || ((Q = e.rowOption) == null ? void 0 : Q.height) || 28, he = gn(i, e.idField);
3605
3605
  return r("div", de({
3606
3606
  ref: i.setRef,
3607
3607
  key: _(i)
3608
- }, pn(e.id, he), {
3608
+ }, hn(e.id, he), {
3609
3609
  class: E(i, P),
3610
3610
  style: {
3611
3611
  ...Z,
@@ -3619,28 +3619,28 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3619
3619
  onMouseover: (re) => A(re, i),
3620
3620
  onMouseout: (re) => J(re, i)
3621
3621
  }), [Object.values(i.data).filter((re) => O[re.field] && re.rowSpan === 1).map((re) => {
3622
- var xt, pt, at;
3623
- const It = n.slots.cellTemplate && we(n.slots.cellTemplate({
3622
+ var St, gt, at;
3623
+ const Pt = n.slots.cellTemplate && we(n.slots.cellTemplate({
3624
3624
  cell: re,
3625
3625
  row: i
3626
3626
  })), Ie = W(i, re, O);
3627
- return z === "static" && (delete Ie.height, delete Ie.left, (xt = e.columnOption) != null && xt.fitColumns && e.fit ? (Ie.flex = "1", Ie.overflow = "hidden", Ie.textOverflow = "ellipsis", Ie.whiteSpace = "nowrap", delete Ie.width) : Ie.flexShrink = "0", Ie.borderTop = "1px solid #e6e9f0"), r("div", de({
3627
+ return z === "static" && (delete Ie.height, delete Ie.left, (St = e.columnOption) != null && St.fitColumns && e.fit ? (Ie.flex = "1", Ie.overflow = "hidden", Ie.textOverflow = "ellipsis", Ie.whiteSpace = "nowrap", delete Ie.width) : Ie.flexShrink = "0", Ie.borderTop = "1px solid #e6e9f0"), r("div", de({
3628
3628
  ref: re.setRef,
3629
3629
  key: F(i, re.index)
3630
- }, gn(e.id, he, re.field), {
3630
+ }, yn(e.id, he, re.field), {
3631
3631
  class: B(re, i),
3632
3632
  style: {
3633
3633
  ...Ie,
3634
3634
  position: z
3635
3635
  },
3636
- onClick: (gt) => {
3637
- se(gt, re, i, re.column);
3636
+ onClick: (ht) => {
3637
+ se(ht, re, i, re.column);
3638
3638
  },
3639
- onKeydown: (gt) => Ye(gt, re)
3639
+ onKeydown: (ht) => Ye(ht, re)
3640
3640
  }), [r("div", {
3641
3641
  class: k(re),
3642
3642
  style: oe(re)
3643
- }, [It ? (at = (pt = n.slots).cellTemplate) == null ? void 0 : at.call(pt, {
3643
+ }, [Pt ? (at = (gt = n.slots).cellTemplate) == null ? void 0 : at.call(gt, {
3644
3644
  cell: re,
3645
3645
  row: i
3646
3646
  }) : nt(re, i)])]);
@@ -3651,12 +3651,12 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3651
3651
  return {};
3652
3652
  const P = {};
3653
3653
  return O.forEach((z) => {
3654
- P[z.id] = jo(i.raw, z.field);
3654
+ P[z.id] = zo(i.raw, z.field);
3655
3655
  }), P;
3656
3656
  }
3657
- function w(i, O, P) {
3657
+ function x(i, O, P) {
3658
3658
  var ie, he;
3659
- const z = i.height || ((ie = e.rowOption) == null ? void 0 : ie.height) || 28, U = e.displayType === "Card" && (((he = e.columns) == null ? void 0 : he.length) ?? 0) > 0 && !(e.fit && Tt(e.columnOption)), Z = r(li, {
3659
+ const z = i.height || ((ie = e.rowOption) == null ? void 0 : ie.height) || 28, U = e.displayType === "Card" && (((he = e.columns) == null ? void 0 : he.length) ?? 0) > 0 && !(e.fit && Bt(e.columnOption)), Z = r(ri, {
3660
3660
  columns: p.value,
3661
3661
  fields: P,
3662
3662
  mainTitle: e.cardMainTitle,
@@ -3708,7 +3708,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3708
3708
  ...Te.value ? {
3709
3709
  minWidth: Te.value
3710
3710
  } : {},
3711
- ...Tt(e.columnOption) && e.fit ? {
3711
+ ...Bt(e.columnOption) && e.fit ? {
3712
3712
  maxWidth: "100%"
3713
3713
  } : {}
3714
3714
  } : {}
@@ -3727,19 +3727,19 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3727
3727
  }
3728
3728
  function X(i, O, P, z, K, U) {
3729
3729
  const Z = [];
3730
- return z && U.length > 0 && Z.push(ue(i, O, P, "static", "flex", "100%")), K && z.length > 0 && Z.push(w(i, P, z)), Z;
3730
+ return z && U.length > 0 && Z.push(ue(i, O, P, "static", "flex", "100%")), K && z.length > 0 && Z.push(x(i, P, z)), Z;
3731
3731
  }
3732
3732
  function ae(i, O, P, z, K, U) {
3733
3733
  return e.displayType === "Card" ? X(i, O, P, z, K, U) : ue(i, O, P);
3734
3734
  }
3735
- const le = [ae, et, Je];
3735
+ const le = [ae, et, Ze];
3736
3736
  function ke(i, O) {
3737
3737
  let P = Y(i);
3738
3738
  return g.value.map((z, K) => {
3739
3739
  var he;
3740
3740
  const U = ((he = e.fieldsResolver) == null ? void 0 : he.call(e, z.raw)) ?? null;
3741
3741
  let Z = U || [];
3742
- const ie = p.value.filter((Q) => Q.visible && Q.dataType !== ft && Q.dataType !== mt);
3742
+ const ie = p.value.filter((Q) => Q.visible && Q.dataType !== mt && Q.dataType !== vt);
3743
3743
  return U || ie.length > 0 && (Z = ie.map((Q) => C(Q))), (!P || Object.keys(P).length === 0) && (P = Y(Z)), le[z.type](z, P, K, Z, U, ie);
3744
3744
  });
3745
3745
  }
@@ -3770,7 +3770,7 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3770
3770
  style: Ge()
3771
3771
  }, [r("div", {
3772
3772
  class: "fv-grid-data",
3773
- style: Qe.value
3773
+ style: Ke.value
3774
3774
  }, [ke(fe.value.primaryColumns.filter((i) => i.visible))])]);
3775
3775
  }
3776
3776
  function f() {
@@ -3781,49 +3781,49 @@ function ii(e, n, t, o, a, l, c, h, d, m, x, s, b, u, g, y, p) {
3781
3781
  renderDataArea: f
3782
3782
  };
3783
3783
  }
3784
- function ri(e) {
3785
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Wt(e);
3784
+ function ui(e) {
3785
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Gt(e);
3786
3786
  }
3787
- const On = /* @__PURE__ */ qe({
3787
+ const En = /* @__PURE__ */ qe({
3788
3788
  name: "FDataGrid",
3789
- props: Ql,
3790
- emits: Kl,
3789
+ props: ei,
3790
+ emits: ti,
3791
3791
  setup(e, n) {
3792
- var Kt, en;
3793
- const t = Mt(e), {
3792
+ var tn, nn;
3793
+ const t = Et(e), {
3794
3794
  isSmall: o
3795
- } = Go(), a = n, l = ni(t);
3795
+ } = Uo(), a = n, l = ai(t);
3796
3796
  let c = [], h = [];
3797
- const d = v(!1), m = 0, x = v(((Kt = t.rowOption) == null ? void 0 : Kt.height) || 28), s = I(() => t.displayType === "Card"), b = v(20), u = v(t.columns), g = $o(l), y = v(), p = v(), C = v(), S = v(), D = v(), N = v([]), G = I(() => t.scrollbarMode || t.showScrollBar || "auto"), Y = v(G.value === "always"), F = v(((en = t.rowOption) == null ? void 0 : en.wrapContent) || !1), W = Uo(l, g), _ = qo(l, a), $ = Yo(l), {
3797
+ const d = v(!1), m = 0, S = v(((tn = t.rowOption) == null ? void 0 : tn.height) || 28), s = I(() => t.displayType === "Card"), b = v(20), u = v(t.columns), g = qo(l), y = v(), p = v(), C = v(), T = v(), N = v(), D = v([]), G = I(() => t.scrollbarMode || t.showScrollBar || "auto"), Y = v(G.value === "always"), F = v(((nn = t.rowOption) == null ? void 0 : nn.wrapContent) || !1), W = Yo(l, g), _ = Xo(l, a), $ = Jo(l), {
3798
3798
  showLoading: H,
3799
3799
  renderLoading: j
3800
- } = Xo(t, y), L = new Map((u.value || []).map((T) => [T.field, T])), k = Jo(l, L, _, $, g), oe = Zo(l, k), {
3800
+ } = Zo(t, y), L = new Map((u.value || []).map((w) => [w.field, w])), k = Qo(l, L, _, $, g), oe = Ko(l, k), {
3801
3801
  shouldRenderPagination: te
3802
- } = oe, R = Qo(l, k, g, N, a), {
3802
+ } = oe, R = ea(l, k, g, D, a), {
3803
3803
  showSelectAll: B,
3804
3804
  showSelection: E,
3805
3805
  selectedValues: M,
3806
3806
  updateSelectAllStatus: A
3807
3807
  } = R, J = I(() => t.disabled), se = I(() => t.virtualized && t.displayType !== "Card" ? Math.min(k.dataView.value.length, b.value) : k.dataView.value.length), {
3808
3808
  containerStyleObject: Ce
3809
- } = Ko(l, N), fe = I(() => {
3810
- var T;
3811
- return t.displayType === "Card" && (((T = t.columns) == null ? void 0 : T.length) ?? 0) === 0;
3809
+ } = ta(l, D), fe = I(() => {
3810
+ var w;
3811
+ return t.displayType === "Card" && (((w = t.columns) == null ? void 0 : w.length) ?? 0) === 0;
3812
3812
  }), De = I(() => {
3813
- var T;
3814
- return t.displayType === "Card" && (((T = t.columns) == null ? void 0 : T.length) ?? 0) > 0 && !!t.fit && Tt(t.columnOption);
3813
+ var w;
3814
+ return t.displayType === "Card" && (((w = t.columns) == null ? void 0 : w.length) ?? 0) > 0 && !!t.fit && Bt(t.columnOption);
3815
3815
  });
3816
3816
  I(() => {
3817
- const T = Ce.value;
3817
+ const w = Ce.value;
3818
3818
  if (!fe.value)
3819
- return T;
3819
+ return w;
3820
3820
  const {
3821
3821
  overflow: V,
3822
3822
  overflowX: q,
3823
3823
  overflowY: ee,
3824
3824
  height: me,
3825
3825
  ...ge
3826
- } = T, ne = t.height > 0 ? {
3826
+ } = w, ne = t.height > 0 ? {
3827
3827
  height: `${t.height}px`
3828
3828
  } : {
3829
3829
  height: "100%",
@@ -3846,41 +3846,41 @@ const On = /* @__PURE__ */ qe({
3846
3846
  } : {}
3847
3847
  };
3848
3848
  });
3849
- const xe = ea(l), {
3849
+ const xe = na(l), {
3850
3850
  applyCommands: Te
3851
3851
  } = xe, {
3852
3852
  applyColumnSetting: Ye,
3853
3853
  removeColumnSetting: Xe
3854
- } = ta(l);
3854
+ } = oa(l);
3855
3855
  Te(u), t.showSetting && Ye(u);
3856
- const we = na(l, a), Be = oa(l), {
3856
+ const we = aa(l, a), Be = la(l), {
3857
3857
  applyColumnSorter: Ne,
3858
3858
  columnContext: Me,
3859
- updateColumnRenderContext: Qe
3859
+ updateColumnRenderContext: Ke
3860
3860
  } = we;
3861
3861
  Ne(k, Be);
3862
- const je = aa(l, Me), Ee = la(l, a, R, g), pe = ia(l, a, g, Ee, N), Ke = ra(l, k, x), Ve = sa(l, pe, Ke), Re = ua(l, k, pe, $, g, Ke, Ve, x), We = ca(l, g, Ve, Re), et = da(l, g, Ve, Re), ze = fa(l, u, k, se, m, Re, We, et), {
3863
- getVisualData: Je
3864
- } = ze, Ze = ma(Me), Ae = va(l, Me, x, s), Le = pa(l, R), {
3862
+ const je = ia(l, Me), Ee = ra(l, a, R, g), pe = sa(l, a, g, Ee, D), Je = ua(l, k, S), Ve = ca(l, pe, Je), Re = da(l, k, pe, $, g, Je, Ve, S), We = fa(l, g, Ve, Re), et = ma(l, g, Ve, Re), ze = va(l, u, k, se, m, Re, We, et), {
3863
+ getVisualData: Ze
3864
+ } = ze, Qe = pa(Me), Ae = ga(l, Me, S, s), Le = ha(l, R), {
3865
3865
  sidebarWidth: tt,
3866
3866
  showSidebarCheckBox: nt
3867
- } = Le, ue = ga(l, k, N, Me, ze, se, m, tt, x, s, pe, Y), {
3867
+ } = Le, ue = ya(l, k, D, Me, ze, se, m, tt, S, s, pe, Y), {
3868
3868
  onWheel: ot,
3869
- dataGridWidth: w,
3869
+ dataGridWidth: x,
3870
3870
  viewPortHeight: X,
3871
3871
  viewPortWidth: ae,
3872
3872
  resetScroll: le,
3873
3873
  updateVisibleRowsOnLatestVisibleScope: ke
3874
- } = ue, Ge = ha(l, Me, p, ae, je), {
3874
+ } = ue, Ge = ba(l, Me, p, ae, je), {
3875
3875
  calculateColumnsSize: _e
3876
- } = Ge, f = ya(), i = ba(p, D, k, f, ue), O = Ca(l, a, we, k, je, W, ue), P = I(() => {
3877
- const T = {
3876
+ } = Ge, f = Ca(), i = wa(p, N, k, f, ue), O = xa(l, a, we, k, je, W, ue), P = I(() => {
3877
+ const w = {
3878
3878
  "fv-grid": !0,
3879
3879
  "fv-grid-bordered": t.showBorder,
3880
3880
  "fv-grid-horizontal-bordered": t.showHorizontalLines,
3881
3881
  "fv-datagrid-strip": t.showStripe
3882
3882
  };
3883
- return Vo(T, t.customClass);
3883
+ return Ao(w, t.customClass);
3884
3884
  }), z = I(() => ({
3885
3885
  "fv-grid-content": !0,
3886
3886
  "fv-grid-content-hover": Y.value,
@@ -3888,15 +3888,15 @@ const On = /* @__PURE__ */ qe({
3888
3888
  "fv-grid-scrollbar-visible": ue.shouldShowVirticalScrollbar.value && Y.value
3889
3889
  })), K = I(() => {
3890
3890
  var q, ee;
3891
- const T = {}, V = s.value && fe.value;
3892
- return !V && ue.shouldShowHorizontalScrollbar.value && Y.value && (T.paddingBottom = "10px"), !V && ue.shouldShowVirticalScrollbar.value && Y.value, s.value && (T.display = "block", fe.value || De.value ? (T.overflowX = "hidden", T.overflowY = "hidden", T.display = "flex", T.flexDirection = "column", T.flex = "1 1 auto", T.minHeight = "0", T.width = "100%", T.maxWidth = "100%", T.minWidth = "0", T.boxSizing = "border-box") : (((q = t.columns) == null ? void 0 : q.length) ?? 0) > 0 ? T.overflow = !N.value || N.value.length === 0 ? "hidden" : "auto" : (ee = t.columnOption) != null && ee.fitColumns && t.fit ? T.overflow = "visible" : T.overflow = !N.value || N.value.length === 0 ? "hidden" : "auto"), T;
3893
- }), U = v(null), Z = I(() => wa({
3891
+ const w = {}, V = s.value && fe.value;
3892
+ return !V && ue.shouldShowHorizontalScrollbar.value && Y.value && (w.paddingBottom = "10px"), !V && ue.shouldShowVirticalScrollbar.value && Y.value, s.value && (w.display = "block", fe.value || De.value ? (w.overflowX = "hidden", w.overflowY = "hidden", w.display = "flex", w.flexDirection = "column", w.flex = "1 1 auto", w.minHeight = "0", w.width = "100%", w.maxWidth = "100%", w.minWidth = "0", w.boxSizing = "border-box") : (((q = t.columns) == null ? void 0 : q.length) ?? 0) > 0 ? w.overflow = !D.value || D.value.length === 0 ? "hidden" : "auto" : (ee = t.columnOption) != null && ee.fitColumns && t.fit ? w.overflow = "visible" : w.overflow = !D.value || D.value.length === 0 ? "hidden" : "auto"), w;
3893
+ }), U = v(null), Z = I(() => Sa({
3894
3894
  rowNumber: t.rowNumber,
3895
3895
  selection: t.selection,
3896
3896
  commandOption: t.commandOption,
3897
3897
  showSetting: t.showSetting
3898
3898
  }));
3899
- function ie(T, V) {
3899
+ function ie(w, V) {
3900
3900
  var q, ee;
3901
3901
  t.enableColumnSettingSolution && ((ee = (q = U.value) == null ? void 0 : q.persistColumnWidths) == null || ee.call(q, V));
3902
3902
  }
@@ -3904,299 +3904,306 @@ const On = /* @__PURE__ */ qe({
3904
3904
  renderGridHeader: he,
3905
3905
  renderGridColumnResizeOverlay: Q,
3906
3906
  shouldShowHeader: re
3907
- } = xa(l, a, p, S, D, we, k, O, i, _, f, Ge, je, R, Le, Be, ue, ae, N, d, ie), {
3908
- renderDataGridPagination: It
3909
- } = Sa(l, a, k, ue, oe, R), {
3907
+ } = Ta(l, a, p, T, N, we, k, O, i, _, f, Ge, je, R, Le, Be, ue, ae, D, d, ie), {
3908
+ renderDataGridPagination: Pt
3909
+ } = Ba(l, a, k, ue, oe, R), {
3910
3910
  renderDataGridSidebar: Ie
3911
- } = Ta(l, Ee, R, Le, ue), {
3912
- renderDisableMask: xt
3913
- } = Ba(), {
3914
- renderDataGridSummary: pt,
3911
+ } = Fa(l, Ee, R, Le, ue), {
3912
+ renderDisableMask: St
3913
+ } = ka(), {
3914
+ renderDataGridSummary: gt,
3915
3915
  summaryPosition: at
3916
- } = Fa(l, k, we), {
3917
- renderHorizontalScrollbar: gt
3918
- } = ka(l, p, ue), {
3919
- renderVerticalScrollbar: In
3920
- } = Oa(l, p, ue), {
3921
- renderFilterPanel: Li
3922
- } = Ma(l, we, k, _, Be, ue), {
3923
- renderGroupPanel: Pn
3924
- } = Ea(l, k, O, W, ue);
3925
- let ut = null;
3926
- function Dn() {
3916
+ } = Oa(l, k, we), {
3917
+ renderHorizontalScrollbar: ht
3918
+ } = Ma(l, p, ue), {
3919
+ renderVerticalScrollbar: Dn
3920
+ } = Ea(l, p, ue), {
3921
+ renderFilterPanel: Wi
3922
+ } = Ia(l, we, k, _, Be, ue), {
3923
+ renderGroupPanel: Nn
3924
+ } = Pa(l, k, O, W, ue);
3925
+ let ut = null, ct = null;
3926
+ function Yt() {
3927
+ F.value && (ct !== null && cancelAnimationFrame(ct), ct = requestAnimationFrame(() => {
3928
+ ct = null;
3929
+ const w = D.value;
3930
+ w.length && (Je.recalculateRowHeights(w), D.value = [...w]);
3931
+ }));
3932
+ }
3933
+ function Rn() {
3927
3934
  var V;
3928
3935
  if (!p.value)
3929
3936
  return;
3930
- const T = Math.ceil(p.value.clientHeight / x.value);
3931
- T > b.value && (b.value = T, ke()), X.value = ((V = C.value) == null ? void 0 : V.clientHeight) || 0, w.value = p.value.clientWidth || 0, C.value && (ae.value = C.value.clientWidth), _e();
3937
+ const w = Math.ceil(p.value.clientHeight / S.value);
3938
+ w > b.value && (b.value = w, ke()), X.value = ((V = C.value) == null ? void 0 : V.clientHeight) || 0, x.value = p.value.clientWidth || 0, C.value && (ae.value = C.value.clientWidth), _e(), Yt();
3932
3939
  }
3933
- function Nn() {
3940
+ function Hn() {
3934
3941
  ut !== null && cancelAnimationFrame(ut), ut = requestAnimationFrame(() => {
3935
- ut = null, Dn();
3942
+ ut = null, Rn();
3936
3943
  });
3937
3944
  }
3938
- vt(() => {
3939
- p.value && (b.value = Math.max(Math.ceil(p.value.clientHeight / x.value), b.value), N.value = Je(0, se.value + m - 1), Lo(p.value, Nn), _e(), st(() => {
3940
- p.value && (w.value = p.value.clientWidth), C.value && (ae.value = C.value.clientWidth, X.value = C.value.clientHeight);
3945
+ pt(() => {
3946
+ p.value && (b.value = Math.max(Math.ceil(p.value.clientHeight / S.value), b.value), D.value = Ze(0, se.value + m - 1), Wo(p.value, Hn), _e(), Yt(), st(() => {
3947
+ p.value && (x.value = p.value.clientWidth), C.value && (ae.value = C.value.clientWidth, X.value = C.value.clientHeight);
3941
3948
  })), H.value && j();
3942
- }), wt(() => {
3943
- ut !== null && cancelAnimationFrame(ut);
3949
+ }), xt(() => {
3950
+ ut !== null && cancelAnimationFrame(ut), ct !== null && cancelAnimationFrame(ct);
3944
3951
  });
3945
- function Rn() {
3946
- const T = k.insertNewDataItem();
3947
- return le(), T;
3952
+ function jn() {
3953
+ const w = k.insertNewDataItem();
3954
+ return le(), w;
3948
3955
  }
3949
- function Hn() {
3950
- const T = k.insertNewDataItem(N.value.length);
3951
- return le(), T;
3956
+ function Vn() {
3957
+ const w = k.insertNewDataItem(D.value.length);
3958
+ return le(), w;
3952
3959
  }
3953
- function jn(T) {
3954
- pe.onEditingRow(T);
3960
+ function zn(w) {
3961
+ pe.onEditingRow(w);
3955
3962
  }
3956
- function Vn(T) {
3957
- k.removeDataItem(T), le();
3963
+ function An(w) {
3964
+ k.removeDataItem(w), le();
3958
3965
  }
3959
- function zn(T) {
3960
- k.removeDataItemById(T), le();
3966
+ function Ln(w) {
3967
+ k.removeDataItemById(w), le();
3961
3968
  }
3962
- function An(T) {
3963
- pe.acceptEditingRow(T);
3969
+ function _n(w) {
3970
+ pe.acceptEditingRow(w);
3964
3971
  }
3965
- function Ln(T) {
3966
- pe.cancelEditingRow(T);
3972
+ function Wn(w) {
3973
+ pe.cancelEditingRow(w);
3967
3974
  }
3968
- function qt(T) {
3969
- N.value.forEach((V, q) => {
3970
- const ee = k.getVisibleDataItems().findIndex((ce) => ce === V.raw), me = N.value[q - 1];
3971
- T.forEach((ce) => {
3975
+ function Xt(w) {
3976
+ D.value.forEach((V, q) => {
3977
+ const ee = k.getVisibleDataItems().findIndex((ce) => ce === V.raw), me = D.value[q - 1];
3978
+ w.forEach((ce) => {
3972
3979
  V.data[ce.field] ? Ve.updateCellByColumn(V.data[ce.field], ce, me, V.raw) : V.data[ce.field] = Ve.createCellByColumn(ce, ee, V.raw, V, me);
3973
3980
  });
3974
- const ge = Object.keys(V.data), ne = T.map((ce) => ce.field);
3981
+ const ge = Object.keys(V.data), ne = w.map((ce) => ce.field);
3975
3982
  ge.filter((ce) => !ne.includes(ce)).forEach((ce) => {
3976
3983
  delete V.data[ce];
3977
3984
  });
3978
3985
  });
3979
3986
  }
3980
3987
  ve(() => t.editable, () => {
3981
- qt(u.value);
3988
+ Xt(u.value);
3982
3989
  }), ve([() => t.mergeCell, () => t.mergeFields, () => t.mergeCellRule], () => {
3983
3990
  le();
3984
3991
  }, {
3985
3992
  deep: !0
3986
3993
  });
3987
- function ct(T) {
3988
- T && (u.value = T, Te(u), qt(u.value), t.showSetting && Ye(u), Qe(u.value), Ne(k, Be), _e());
3994
+ function dt(w) {
3995
+ w && (u.value = w, Te(u), Xt(u.value), t.showSetting && Ye(u), Ke(u.value), Ne(k, Be), _e());
3989
3996
  }
3990
- function _n() {
3997
+ function Gn() {
3991
3998
  R.emptyCurrentRowId();
3992
3999
  }
3993
- ve(() => t.showSetting, (T, V) => {
3994
- T !== V && (T ? Ye(u) : Xe(u), ct(u.value));
4000
+ ve(() => t.showSetting, (w, V) => {
4001
+ w !== V && (w ? Ye(u) : Xe(u), dt(u.value));
3995
4002
  });
3996
- function Pt(T) {
3997
- oe.updatePagination(T);
4003
+ function Dt(w) {
4004
+ oe.updatePagination(w);
3998
4005
  }
3999
- function Yt(T, V) {
4000
- if (T) {
4006
+ function Jt(w, V) {
4007
+ if (w) {
4001
4008
  const q = !!(V != null && V.keepScrollTop || V != null && V.keepScrollPosition), ee = q ? ue.offsetY.value : 0;
4002
- k.load(T), Ra({
4009
+ k.load(w), ja({
4003
4010
  keepScroll: q,
4004
4011
  savedOffsetY: ee,
4005
4012
  resetScroll: le,
4006
4013
  scrollTo: ue.scrollTo
4007
- }), N.value.length || (M.value = []), nt.value && B.value && A();
4014
+ }), D.value.length || (M.value = []), nt.value && B.value && A();
4008
4015
  }
4009
4016
  }
4010
- ve(k.shouldGroupingData, (T, V) => {
4011
- T !== V && (k.updateDataView(), le());
4012
- }), ve(() => t.columns, (T) => {
4017
+ ve(k.shouldGroupingData, (w, V) => {
4018
+ w !== V && (k.updateDataView(), le());
4019
+ }), ve(() => t.columns, (w) => {
4013
4020
  if (t.showSetting && t.enableColumnSettingSolution) {
4014
- ct(u.value);
4021
+ dt(u.value);
4015
4022
  return;
4016
4023
  }
4017
- ct(T);
4024
+ dt(w);
4018
4025
  });
4019
- function Dt(T) {
4020
- Ee.activeRowById(T);
4026
+ function Nt(w) {
4027
+ Ee.activeRowById(w);
4021
4028
  }
4022
- const Wn = Ia(R, k, _, u, oe, g, we, Be, ct, Yt, Pt);
4023
- function Gn(T, V = {
4029
+ const $n = Da(R, k, _, u, oe, g, we, Be, dt, Jt, Dt);
4030
+ function Un(w, V = {
4024
4031
  isCurrent: !0
4025
4032
  }) {
4026
- V != null && V.isCurrent && Dt(T), R.selectItemById(T);
4033
+ V != null && V.isCurrent && Nt(w), R.selectItemById(w);
4027
4034
  }
4028
- function $n(T) {
4029
- const V = g.idField.value, q = N.value.find((ee) => ee.raw[V] === T);
4035
+ function qn(w) {
4036
+ const V = g.idField.value, q = D.value.find((ee) => ee.raw[V] === w);
4030
4037
  q && Ee.clickRowItem(q);
4031
4038
  }
4032
- function Un(T) {
4033
- const V = g.idField.value, q = N.value.find((ee) => ee.raw[V] === T);
4039
+ function Yn(w) {
4040
+ const V = g.idField.value, q = D.value.find((ee) => ee.raw[V] === w);
4034
4041
  q && Ee.changeRow(q);
4035
4042
  }
4036
- function qn(T) {
4037
- R.selectItemByIds(T);
4043
+ function Xn(w) {
4044
+ R.selectItemByIds(w);
4038
4045
  }
4039
- function Yn() {
4040
- return N.value;
4046
+ function Jn() {
4047
+ return D.value;
4041
4048
  }
4042
- function Xn(T) {
4043
- return N.value.filter((V) => T.includes(V.raw[t.idField]));
4049
+ function Zn(w) {
4050
+ return D.value.filter((V) => w.includes(V.raw[t.idField]));
4044
4051
  }
4045
- function Jn(T, V) {
4052
+ function Qn(w, V) {
4046
4053
  var ge;
4047
4054
  const q = g.idField.value, ee = (ge = k.originalData.value) != null && ge.length ? k.originalData.value : k.dataView.value, {
4048
4055
  visualIndex: me
4049
- } = Ha({
4050
- id: T,
4056
+ } = Va({
4057
+ id: w,
4051
4058
  idField: q,
4052
4059
  updatedValues: V,
4053
4060
  dataViewItems: ee,
4054
- visibleRows: N.value
4061
+ visibleRows: D.value
4055
4062
  });
4056
- me >= 0 && (N.value = [...N.value.slice(0, me), N.value[me], ...N.value.slice(me + 1)], k.updateSummary());
4063
+ me >= 0 && (D.value = [...D.value.slice(0, me), D.value[me], ...D.value.slice(me + 1)], k.updateSummary());
4057
4064
  }
4058
- function Zn() {
4065
+ function Kn() {
4059
4066
  return R.getSelectedItems();
4060
4067
  }
4061
- function Qn() {
4068
+ function eo() {
4062
4069
  return R.getSelectionRow();
4063
4070
  }
4064
- function Kn() {
4071
+ function to() {
4065
4072
  pe.endEditCell();
4066
4073
  }
4067
- function eo(T, V = {
4074
+ function no(w, V = {
4068
4075
  clearCurrent: !0
4069
4076
  }) {
4070
- V != null && V.clearCurrent && Dt(""), R.unSelectItemByIds(T);
4077
+ V != null && V.clearCurrent && Nt(""), R.unSelectItemByIds(w);
4071
4078
  }
4072
- function Xt() {
4079
+ function Zt() {
4073
4080
  R.clearSelection();
4074
4081
  }
4075
- function to() {
4082
+ function oo() {
4076
4083
  return R.currentSelectedDataId.value;
4077
4084
  }
4078
- function no() {
4085
+ function ao() {
4079
4086
  ue.scrollToBottom();
4080
4087
  }
4081
- function oo(T) {
4082
- ue.scrollToRowByIndex(T);
4088
+ function lo(w) {
4089
+ ue.scrollToRowByIndex(w);
4083
4090
  }
4084
- function ao(T) {
4085
- ue.scrollRowIntoView(T);
4091
+ function io(w) {
4092
+ ue.scrollRowIntoView(w);
4086
4093
  }
4087
- function lo() {
4088
- R.keepSelectingOnPaging.value || Xt(), k.updateVisibleDataSummary(N.value), Pt({
4094
+ function ro() {
4095
+ R.keepSelectingOnPaging.value || Zt(), k.updateVisibleDataSummary(D.value), Dt({
4089
4096
  total: k.dataView.value.length,
4090
4097
  index: 1
4091
4098
  });
4092
4099
  }
4093
- function io(T) {
4094
- R.updateSelectedValues(T);
4100
+ function so(w) {
4101
+ R.updateSelectedValues(w);
4095
4102
  }
4096
- function ro(T) {
4097
- R.removeSelectedValues(T);
4103
+ function uo(w) {
4104
+ R.removeSelectedValues(w);
4098
4105
  }
4099
- function so() {
4106
+ function co() {
4100
4107
  return t.displayType;
4101
4108
  }
4102
- function uo() {
4103
- var T;
4104
- (T = Gt()) == null || T.update();
4109
+ function fo() {
4110
+ var w;
4111
+ (w = $t()) == null || w.update();
4105
4112
  }
4106
- function co(T) {
4113
+ function mo(w) {
4107
4114
  const V = g.idField.value;
4108
4115
  let q = 0;
4109
4116
  const ee = k.dataView.value;
4110
4117
  for (let me = 0; me < ee.length; me++) {
4111
4118
  const ge = ee[me];
4112
4119
  if (!(ge.__fv_data_grid_group_row__ || ge.__fv_data_grid_group_summary__)) {
4113
- if (ge[V] === T)
4120
+ if (ge[V] === w)
4114
4121
  return q;
4115
4122
  q++;
4116
4123
  }
4117
4124
  }
4118
4125
  return -1;
4119
4126
  }
4120
- const Nt = {
4121
- activeRowById: Dt,
4122
- selectRowById: Un,
4123
- addNewDataItem: Rn,
4124
- addNewDataItemAtLast: Hn,
4125
- removeDataItem: Vn,
4126
- removeDataItemById: zn,
4127
- editDataItem: jn,
4128
- acceptDataItem: An,
4129
- cancelDataItem: Ln,
4130
- selectItemById: Gn,
4131
- selectItemByIds: qn,
4132
- updateColumns: ct,
4133
- updateDataSource: Yt,
4134
- updatePagination: Pt,
4135
- getVisibleData: Yn,
4136
- getVisibleDataByIds: Xn,
4137
- getSelectedItems: Zn,
4138
- getSelectionRow: Qn,
4139
- getCurrentRowId: to,
4140
- endEditCell: Kn,
4141
- clickRowItemById: $n,
4142
- clearSelection: Xt,
4143
- unSelectItemByIds: eo,
4144
- scrollToBottom: no,
4145
- scrollToRowByIndex: oo,
4146
- scrollRowIntoView: ao,
4147
- updateDerivedData: lo,
4148
- emptyCurrentRowId: _n,
4149
- updateSelectedValues: io,
4150
- removeSelectedValues: ro,
4151
- getDisplayType: so,
4152
- reassignRowData: Jn,
4153
- ...Wn,
4154
- forceUpdate: uo,
4155
- getDataIndexById: co
4127
+ const Rt = {
4128
+ activeRowById: Nt,
4129
+ selectRowById: Yn,
4130
+ addNewDataItem: jn,
4131
+ addNewDataItemAtLast: Vn,
4132
+ removeDataItem: An,
4133
+ removeDataItemById: Ln,
4134
+ editDataItem: zn,
4135
+ acceptDataItem: _n,
4136
+ cancelDataItem: Wn,
4137
+ selectItemById: Un,
4138
+ selectItemByIds: Xn,
4139
+ updateColumns: dt,
4140
+ updateDataSource: Jt,
4141
+ updatePagination: Dt,
4142
+ getVisibleData: Jn,
4143
+ getVisibleDataByIds: Zn,
4144
+ getSelectedItems: Kn,
4145
+ getSelectionRow: eo,
4146
+ getCurrentRowId: oo,
4147
+ endEditCell: to,
4148
+ clickRowItemById: qn,
4149
+ clearSelection: Zt,
4150
+ unSelectItemByIds: no,
4151
+ scrollToBottom: ao,
4152
+ scrollToRowByIndex: lo,
4153
+ scrollRowIntoView: io,
4154
+ updateDerivedData: ro,
4155
+ emptyCurrentRowId: Gn,
4156
+ updateSelectedValues: so,
4157
+ removeSelectedValues: uo,
4158
+ getDisplayType: co,
4159
+ reassignRowData: Qn,
4160
+ ...$n,
4161
+ forceUpdate: fo,
4162
+ getDataIndexById: mo
4156
4163
  };
4157
- n.expose(Nt);
4158
- const Jt = Pa(l, a, Nt, we, pe, N), {
4159
- renderDataArea: fo
4160
- } = ai(t, a, C, S, D, Ze, Ae, we, pe, W, Jt, Ee, ze, ue, N, k), {
4161
- renderDataArea: mo
4162
- } = ii(t, a, C, S, D, Ze, Ae, we, pe, W, Jt, Ee, ze, ue, N, k, u), Rt = I(() => !N.value || !N.value.length), {
4163
- renderEmpty: Zt
4164
- } = Da(l, a), vo = I(() => ({
4164
+ n.expose(Rt);
4165
+ const Qt = Na(l, a, Rt, we, pe, D), {
4166
+ renderDataArea: vo
4167
+ } = ii(t, a, C, T, N, Qe, Ae, we, pe, W, Qt, Ee, ze, ue, D, k), {
4168
+ renderDataArea: po
4169
+ } = si(t, a, C, T, N, Qe, Ae, we, pe, W, Qt, Ee, ze, ue, D, k, u), Ht = I(() => !D.value || !D.value.length), {
4170
+ renderEmpty: Kt
4171
+ } = Ra(l, a), go = I(() => ({
4165
4172
  "d-flex": !0,
4166
4173
  "justify-content-between": te.value && E.value,
4167
4174
  "justify-content-end": te.value && !E.value,
4168
4175
  "position-relative": !0,
4169
4176
  "fv-datagrid-pagination": !0
4170
- })), po = I(() => ({
4177
+ })), ho = I(() => ({
4171
4178
  "flex-direction": "row"
4172
- })), go = I(() => ({
4179
+ })), yo = I(() => ({
4173
4180
  "d-flex": !0,
4174
4181
  "align-items-center": !0
4175
4182
  }));
4176
- Po("dataGridContext", {
4183
+ No("dataGridContext", {
4177
4184
  useColumnComposition: we,
4178
4185
  dataView: k,
4179
4186
  useFilterComposition: _,
4180
4187
  useFitColumnComposition: Ge,
4181
4188
  useSortComposition: Be,
4182
4189
  useVirtualScrollComposition: ue,
4183
- dataGridComponentInstance: Nt
4190
+ dataGridComponentInstance: Rt
4184
4191
  });
4185
- function ho(T) {
4192
+ function bo(w) {
4186
4193
  let V;
4187
- return r(ja, {
4194
+ return r(za, {
4188
4195
  class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
4189
- }, ri(V = Object.keys(T.data).filter((q) => {
4196
+ }, ui(V = Object.keys(w.data).filter((q) => {
4190
4197
  var ee, me;
4191
- return ((ee = T.data[q].column) == null ? void 0 : ee.dataType) !== mt && ((me = T.data[q].column) == null ? void 0 : me.dataType) !== ft;
4198
+ return ((ee = w.data[q].column) == null ? void 0 : ee.dataType) !== vt && ((me = w.data[q].column) == null ? void 0 : me.dataType) !== mt;
4192
4199
  }).map((q) => {
4193
4200
  var me, ge;
4194
- const ee = T.data[q];
4201
+ const ee = w.data[q];
4195
4202
  return r("div", {
4196
4203
  class: "farris-group-wrap w-100"
4197
4204
  }, [r("div", {
4198
4205
  class: "form-group farris-form-group common-group"
4199
- }, [r(za, {
4206
+ }, [r(La, {
4200
4207
  text: (me = ee.column) == null ? void 0 : me.title,
4201
4208
  title: (ge = ee.column) == null ? void 0 : ge.title
4202
4209
  }, null), r("div", {
@@ -4206,15 +4213,15 @@ const On = /* @__PURE__ */ qe({
4206
4213
  default: () => [V]
4207
4214
  });
4208
4215
  }
4209
- function yo(T, V) {
4216
+ function Co(w, V) {
4210
4217
  const q = {}, ee = {}, me = [], ge = [], ne = {};
4211
4218
  Object.keys(V.data).filter((be) => {
4212
4219
  var ce, lt;
4213
- return ((ce = V.data[be].column) == null ? void 0 : ce.dataType) !== mt && ((lt = V.data[be].column) == null ? void 0 : lt.dataType) !== ft;
4220
+ return ((ce = V.data[be].column) == null ? void 0 : ce.dataType) !== vt && ((lt = V.data[be].column) == null ? void 0 : lt.dataType) !== mt;
4214
4221
  }).forEach((be) => {
4215
- var lt, dt, tn;
4222
+ var lt, ft, on;
4216
4223
  const ce = V.data[be];
4217
- q[be] = ce.data, pe.endEditByCell(ce), ee[be] = ce.data, me.push(ce.column), ge.push(ce), ne[be] = (tn = (dt = (lt = ce.column) == null ? void 0 : lt.editor) == null ? void 0 : dt.context) == null ? void 0 : tn.editor;
4224
+ q[be] = ce.data, pe.endEditByCell(ce), ee[be] = ce.data, me.push(ce.column), ge.push(ce), ne[be] = (on = (ft = (lt = ce.column) == null ? void 0 : lt.editor) == null ? void 0 : ft.context) == null ? void 0 : on.editor;
4218
4225
  }), n.emit("endEditRow", {
4219
4226
  row: V,
4220
4227
  cells: ge,
@@ -4224,17 +4231,17 @@ const On = /* @__PURE__ */ qe({
4224
4231
  editors: ne
4225
4232
  }), pe.showRowEditPanel.value = !1;
4226
4233
  }
4227
- function bo() {
4228
- const T = R.currentSelectedDataId.value, V = N.value.find((q) => q.raw[t.idField] === T);
4229
- return V ? r(Et, {
4234
+ function wo() {
4235
+ const w = R.currentSelectedDataId.value, V = D.value.find((q) => q.raw[t.idField] === w);
4236
+ return V ? r(It, {
4230
4237
  id: Se(t.id, "row-edit").id,
4231
4238
  showHeader: !1,
4232
4239
  modelValue: pe.showRowEditPanel.value,
4233
4240
  "onUpdate:modelValue": (q) => pe.showRowEditPanel.value = q,
4234
4241
  width: 600
4235
4242
  }, {
4236
- default: () => ho(V),
4237
- footerTemplate: () => r(Oe, null, [r(on, {
4243
+ default: () => bo(V),
4244
+ footerTemplate: () => r(Oe, null, [r(ln, {
4238
4245
  id: Se(t.id, "row-edit-cancel").id,
4239
4246
  class: "mr-3",
4240
4247
  type: "secondary",
@@ -4243,22 +4250,22 @@ const On = /* @__PURE__ */ qe({
4243
4250
  }
4244
4251
  }, {
4245
4252
  default: () => [He("取消")]
4246
- }), r(on, {
4253
+ }), r(ln, {
4247
4254
  id: Se(t.id, "row-edit-ok").id,
4248
4255
  onClick: (q) => {
4249
- yo(q, V);
4256
+ Co(q, V);
4250
4257
  }
4251
4258
  }, {
4252
4259
  default: () => [He("确定")]
4253
4260
  })])
4254
4261
  }) : null;
4255
4262
  }
4256
- function Qt() {
4257
- return s.value ? mo() : fo();
4263
+ function en() {
4264
+ return s.value ? po() : vo();
4258
4265
  }
4259
- function Co() {
4266
+ function xo() {
4260
4267
  var ne;
4261
- const T = fe.value || De.value ? {
4268
+ const w = fe.value || De.value ? {
4262
4269
  width: "100%",
4263
4270
  maxWidth: "100%",
4264
4271
  minWidth: 0,
@@ -4267,10 +4274,10 @@ const On = /* @__PURE__ */ qe({
4267
4274
  } : {
4268
4275
  width: "max-content",
4269
4276
  minWidth: "100%"
4270
- }, V = re.value && u.value.length > 0 ? he() : null, q = Qt(), ee = Rt.value ? Zt() : null, me = fe.value || De.value, ge = (((ne = N.value) == null ? void 0 : ne.length) ?? 0) > 0 ? "auto" : "visible";
4277
+ }, V = re.value && u.value.length > 0 ? he() : null, q = en(), ee = Ht.value ? Kt() : null, me = fe.value || De.value, ge = (((ne = D.value) == null ? void 0 : ne.length) ?? 0) > 0 ? "auto" : "visible";
4271
4278
  return me ? r("div", {
4272
4279
  style: {
4273
- ...T,
4280
+ ...w,
4274
4281
  display: "flex",
4275
4282
  flexDirection: "column",
4276
4283
  flex: "1 1 auto",
@@ -4286,30 +4293,30 @@ const On = /* @__PURE__ */ qe({
4286
4293
  boxSizing: "border-box"
4287
4294
  }
4288
4295
  }, [q, ee])]) : r("div", {
4289
- style: T
4296
+ style: w
4290
4297
  }, [V, q, ee]);
4291
4298
  }
4292
- function wo(T, V) {
4293
- const q = T.map((ne) => ne.id), ee = [...u.value, ...c, ...h];
4294
- ee.filter((ne) => ne.dataType !== mt && ne.dataType !== ft).forEach((ne) => {
4295
- const be = T.find((ce) => ce.id === ne.id);
4299
+ function So(w, V) {
4300
+ const q = w.map((ne) => ne.id), ee = [...u.value, ...c, ...h];
4301
+ ee.filter((ne) => ne.dataType !== vt && ne.dataType !== mt).forEach((ne) => {
4302
+ const be = w.find((ce) => ce.id === ne.id);
4296
4303
  be && (ne.width = be.actualWidth || ne.width || 120, be.actualWidth !== void 0 && (ne.actualWidth = be.actualWidth), ne.title = be.title, ne.halign = be.halign, ne.align = be.align);
4297
- }), h = ee.filter((ne) => ne.dataType === mt || ne.dataType === ft);
4298
- const me = ee.filter((ne) => ne.dataType !== mt && ne.dataType !== ft), ge = me.filter((ne) => q.includes(ne.id));
4304
+ }), h = ee.filter((ne) => ne.dataType === vt || ne.dataType === mt);
4305
+ const me = ee.filter((ne) => ne.dataType !== vt && ne.dataType !== mt), ge = me.filter((ne) => q.includes(ne.id));
4299
4306
  c = me.filter((ne) => !q.includes(ne.id)), ge.sort((ne, be) => {
4300
- const ce = T.findIndex((dt) => dt.id === ne.id), lt = T.findIndex((dt) => dt.id === be.id);
4307
+ const ce = w.findIndex((ft) => ft.id === ne.id), lt = w.findIndex((ft) => ft.id === be.id);
4301
4308
  return ce - lt;
4302
- }), V === void 0 ? je.applyHeaderGroups(void 0) : je.applyHeaderGroups(V), ct(ge);
4309
+ }), V === void 0 ? je.applyHeaderGroups(void 0) : je.applyHeaderGroups(V), dt(ge);
4303
4310
  }
4304
4311
  return () => {
4305
- var T, V;
4312
+ var w, V;
4306
4313
  return t.visible && r(Oe, null, [r("div", de({
4307
4314
  ref: y
4308
- }, kt(t.id), {
4315
+ }, Ot(t.id), {
4309
4316
  class: P.value,
4310
4317
  style: Ce.value,
4311
4318
  onWheel: ot
4312
- }), [p.value && Pn(), p.value && !s.value && re.value && u.value.length > 0 && he(), p.value && (at.value === "top" || at.value === "both") && pt(), r("div", {
4319
+ }), [p.value && Nn(), p.value && !s.value && re.value && u.value.length > 0 && he(), p.value && (at.value === "top" || at.value === "both") && gt(), r("div", {
4313
4320
  ref: p,
4314
4321
  class: z.value,
4315
4322
  style: K.value,
@@ -4319,27 +4326,27 @@ const On = /* @__PURE__ */ qe({
4319
4326
  onMouseleave: (q) => {
4320
4327
  q.stopPropagation(), G.value !== "always" && Y.value && !s.value && (Y.value = !1);
4321
4328
  }
4322
- }, [p.value && s.value ? Co() : [p.value && !s.value && Ie(N), p.value && Qt(), p.value && Rt.value && !s.value && Zt()], p.value && gt(), p.value && !Rt.value && In()]), p.value && (at.value === "bottom" || at.value === "both") && !s.value && pt(), (te.value || E.value) && !s.value && r("div", {
4323
- class: vo.value,
4324
- style: po.value
4329
+ }, [p.value && s.value ? xo() : [p.value && !s.value && Ie(D), p.value && en(), p.value && Ht.value && !s.value && Kt()], p.value && ht(), p.value && !Ht.value && Dn()]), p.value && (at.value === "bottom" || at.value === "both") && !s.value && gt(), (te.value || E.value) && !s.value && r("div", {
4330
+ class: go.value,
4331
+ style: ho.value
4325
4332
  }, [E.value && r("div", {
4326
- class: go.value
4327
- }, [r("div", Se(t.id, "selection-info"), ["已选:" + M.value.length, He(" 条")])]), te.value && It()]), Q(), J.value && xt()]), o() && bo(), t.enableColumnSettingSolution && r(Na, {
4333
+ class: yo.value
4334
+ }, [r("div", Se(t.id, "selection-info"), ["已选:" + M.value.length, He(" 条")])]), te.value && Pt()]), Q(), J.value && St()]), o() && wo(), t.enableColumnSettingSolution && r(Ha, {
4328
4335
  ref: U,
4329
4336
  columns: [...u.value, ...c],
4330
4337
  componentId: t.id,
4331
4338
  previewFixedColumns: Z.value,
4332
- designGroups: ((T = t.columnOption) == null ? void 0 : T.groups) || [],
4339
+ designGroups: ((w = t.columnOption) == null ? void 0 : w.groups) || [],
4333
4340
  enableHeaderGroup: ((V = t.columnOption) == null ? void 0 : V.enableHeaderGroup) === !0,
4334
4341
  modelValue: d.value,
4335
4342
  "onUpdate:modelValue": (q) => d.value = q,
4336
- onChangeColumnSetting: wo
4343
+ onChangeColumnSetting: So
4337
4344
  }, null)]);
4338
4345
  };
4339
4346
  }
4340
4347
  });
4341
- cn(On);
4342
- const si = {
4348
+ fn(En);
4349
+ const ci = {
4343
4350
  /**
4344
4351
  * 组件唯一标识,渲染为 DOM id 与 data-testid。
4345
4352
  */
@@ -4385,15 +4392,15 @@ const si = {
4385
4392
  buttons: { type: Object, default: [] },
4386
4393
  enableNeverShowAgain: { Type: Boolean, default: !1 }
4387
4394
  };
4388
- function $t() {
4395
+ function Ut() {
4389
4396
  return new DOMException("The request is not allowed", "NotAllowedError");
4390
4397
  }
4391
- async function ui(e) {
4398
+ async function di(e) {
4392
4399
  if (!navigator.clipboard)
4393
- throw $t();
4400
+ throw Ut();
4394
4401
  return navigator.clipboard.writeText(e);
4395
4402
  }
4396
- async function ci(e) {
4403
+ async function fi(e) {
4397
4404
  const n = document.createElement("span");
4398
4405
  n.textContent = e, n.style.whiteSpace = "pre", n.style.webkitUserSelect = "auto", n.style.userSelect = "all", document.body.appendChild(n);
4399
4406
  const t = window.getSelection(), o = window.document.createRange();
@@ -4405,31 +4412,31 @@ async function ci(e) {
4405
4412
  t == null || t.removeAllRanges(), window.document.body.removeChild(n);
4406
4413
  }
4407
4414
  if (!a)
4408
- throw $t();
4415
+ throw Ut();
4409
4416
  }
4410
- async function di(e) {
4417
+ async function mi(e) {
4411
4418
  try {
4412
- await ui(e);
4419
+ await di(e);
4413
4420
  } catch (n) {
4414
4421
  try {
4415
- await ci(e);
4422
+ await fi(e);
4416
4423
  } catch (t) {
4417
- throw t || n || $t();
4424
+ throw t || n || Ut();
4418
4425
  }
4419
4426
  }
4420
4427
  }
4421
- function fi() {
4428
+ function vi() {
4422
4429
  async function e(n) {
4423
- await di(n);
4430
+ await mi(n);
4424
4431
  }
4425
4432
  return { onCopy: e };
4426
4433
  }
4427
- function mi(e, n, t, o) {
4434
+ function pi(e, n, t, o) {
4428
4435
  const a = v(14), l = v(140), c = v(""), h = v(o.value.length), d = I(() => o.value), m = I(() => ({
4429
4436
  "font-size": `${a.value}px`,
4430
4437
  height: "100%"
4431
4438
  }));
4432
- function x(s) {
4439
+ function S(s) {
4433
4440
  if (s.currentTarget) {
4434
4441
  const b = s.currentTarget.value || "";
4435
4442
  h.value = b.length;
@@ -4442,21 +4449,21 @@ function mi(e, n, t, o) {
4442
4449
  style: m.value,
4443
4450
  rows: "4",
4444
4451
  maxlength: l.value,
4445
- onInput: (s) => x(s)
4452
+ onInput: (s) => S(s)
4446
4453
  }, [d.value]), r("span", {
4447
4454
  class: "textarea-wordcount",
4448
4455
  title: c.value,
4449
4456
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
4450
4457
  }, [h.value + " / " + l.value])]);
4451
4458
  }
4452
- function vi(e, n, t, o) {
4453
- const a = mi(e, n, t, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
4459
+ function gi(e, n, t, o) {
4460
+ const a = pi(e, n, t, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
4454
4461
  function c(h) {
4455
4462
  return l.get(h) || null;
4456
4463
  }
4457
4464
  return { getEditorRender: c };
4458
4465
  }
4459
- function pi() {
4466
+ function hi() {
4460
4467
  const e = v(!1), n = v("复制成功");
4461
4468
  return {
4462
4469
  feedbackStyle: I(() => {
@@ -4483,11 +4490,11 @@ function pi() {
4483
4490
  toShowFeedback: e
4484
4491
  };
4485
4492
  }
4486
- function gi(e, n) {
4493
+ function yi(e, n) {
4487
4494
  const t = n.getEditorRender(e.promptEditorType);
4488
4495
  return () => t && t();
4489
4496
  }
4490
- function hi(e, n) {
4497
+ function bi(e, n) {
4491
4498
  function t(u) {
4492
4499
  if (u == null)
4493
4500
  return 0;
@@ -4503,9 +4510,9 @@ function hi(e, n) {
4503
4510
  u = "" + u;
4504
4511
  const y = u.length;
4505
4512
  let p = "", C = 0;
4506
- for (let S = 0; S < y; S++) {
4507
- const D = u.charAt(S);
4508
- if (C++, encodeURI(D).length > 4 && C++, p = p.concat(D), C >= g)
4513
+ for (let T = 0; T < y; T++) {
4514
+ const N = u.charAt(T);
4515
+ if (C++, encodeURI(N).length > 4 && C++, p = p.concat(N), C >= g)
4509
4516
  return p = p.concat("..."), p;
4510
4517
  }
4511
4518
  if (C < g)
@@ -4516,7 +4523,7 @@ function hi(e, n) {
4516
4523
  const a = I(() => !!e.value && !!e.value.date), l = I(() => {
4517
4524
  const u = e.value && e.value.date || "";
4518
4525
  return `${n.exception.happend} : ${u}`;
4519
- }), c = I(() => !!e.value && !!e.value.detail), h = I(() => e.value ? t(e.value.detail) > 160 : !1), d = v(!1), m = I(() => d.value ? n.exception.collapse : n.exception.expand), x = I(() => {
4526
+ }), c = I(() => !!e.value && !!e.value.detail), h = I(() => e.value ? t(e.value.detail) > 160 : !1), d = v(!1), m = I(() => d.value ? n.exception.collapse : n.exception.expand), S = I(() => {
4520
4527
  const u = n.exception.detail + " : " + (e.value && e.value.detail) || "";
4521
4528
  return d.value ? u : o(u, 160);
4522
4529
  }), s = I(() => ({
@@ -4533,29 +4540,29 @@ function hi(e, n) {
4533
4540
  }, [r("div", {
4534
4541
  class: "exception_error_msg"
4535
4542
  }, [r("div", {
4536
- innerHTML: x.value
4543
+ innerHTML: S.value
4537
4544
  }, null), h.value && r("span", {
4538
4545
  class: "exception_toggle_detail",
4539
4546
  style: s.value,
4540
4547
  onClick: b
4541
4548
  }, [m.value])])])]);
4542
4549
  }
4543
- function yi(e) {
4550
+ function Ci(e) {
4544
4551
  return () => r("p", {
4545
4552
  class: "toast-msg-detail",
4546
4553
  innerHTML: e.value,
4547
4554
  style: "max-height: calc(100vh - 200px);overflow: auto;"
4548
4555
  }, null);
4549
4556
  }
4550
- function bi(e, n, t, o, a) {
4557
+ function wi(e, n, t, o, a) {
4551
4558
  const l = v(e.exceptionInfo), c = I(() => {
4552
4559
  const g = n.value === "question" ? "warning" : n.value, y = {
4553
4560
  "f-icon": !0
4554
4561
  }, p = `f-icon-${g}`;
4555
4562
  return y[p] = !0, y;
4556
- }), h = I(() => t.value || l.value && l.value.message), d = I(() => o.value), m = I(() => !!o.value), x = I(() => !!l.value);
4563
+ }), h = I(() => t.value || l.value && l.value.message), d = I(() => o.value), m = I(() => !!o.value), S = I(() => !!l.value);
4557
4564
  function s() {
4558
- return x.value ? hi(l, a) : m.value ? yi(d) : () => null;
4565
+ return S.value ? bi(l, a) : m.value ? Ci(d) : () => null;
4559
4566
  }
4560
4567
  const b = s(), u = I(() => a.locale === "en" ? {
4561
4568
  wordBreak: "keep-all",
@@ -4573,7 +4580,7 @@ function bi(e, n, t, o, a) {
4573
4580
  style: u.value
4574
4581
  }, null), b()])]);
4575
4582
  }
4576
- function Ci(e, n, t, o) {
4583
+ function xi(e, n, t, o) {
4577
4584
  const {
4578
4585
  onCopy: a
4579
4586
  } = n, {
@@ -4583,7 +4590,7 @@ function Ci(e, n, t, o) {
4583
4590
  message: "",
4584
4591
  detail: ""
4585
4592
  }), m = I(() => d.value && d.value.detail || "");
4586
- function x(s) {
4593
+ function S(s) {
4587
4594
  a(m.value).catch((b) => {
4588
4595
  c.value = o.exception.copyFailed || "复制失败";
4589
4596
  }).finally(() => {
@@ -4595,20 +4602,20 @@ function Ci(e, n, t, o) {
4595
4602
  return () => r("span", {
4596
4603
  class: "copy-exception-info"
4597
4604
  }, [r("span", {
4598
- onClick: x,
4605
+ onClick: S,
4599
4606
  style: "cursor: pointer;"
4600
4607
  }, [h.value])]);
4601
4608
  }
4602
- function wi(e, n, t, o, a) {
4603
- const l = v(e.type), c = v(e.buttons), h = v(e.exceptionInfo), d = v(a.ok || e.okButtonText), m = v(a.cancel || e.cancelButtonText), x = v(e.showCancelButton), s = v(e.showOkButton), b = v(a.neverShowAgain), u = v(!1), g = I(() => !!(c.value && c.value.length)), y = I(() => !!(h.value && h.value.detail)), p = I(() => !(c.value && c.value.length) && (s.value || x.value)), C = Ci(e, t, o, a);
4609
+ function Si(e, n, t, o, a) {
4610
+ const l = v(e.type), c = v(e.buttons), h = v(e.exceptionInfo), d = v(a.ok || e.okButtonText), m = v(a.cancel || e.cancelButtonText), S = v(e.showCancelButton), s = v(e.showOkButton), b = v(a.neverShowAgain), u = v(!1), g = I(() => !!(c.value && c.value.length)), y = I(() => !!(h.value && h.value.detail)), p = I(() => !(c.value && c.value.length) && (s.value || S.value)), C = xi(e, t, o, a);
4604
4611
  d.value === "关闭" ? d.value = a.close : d.value === "知道了" && (d.value = a.exception.roger);
4605
- function S(G) {
4612
+ function T(G) {
4606
4613
  l.value === "question" && n.emit("reject"), n.emit("close");
4607
4614
  }
4608
- function D(G) {
4615
+ function N(G) {
4609
4616
  l.value === "question" && n.emit("accept"), n.emit("close");
4610
4617
  }
4611
- function N(G) {
4618
+ function D(G) {
4612
4619
  u.value = !u.value, n.emit("neverShowAgain", {
4613
4620
  $event: G,
4614
4621
  neverShowAgain: u.value
@@ -4618,25 +4625,25 @@ function wi(e, n, t, o, a) {
4618
4625
  class: "modal-footer"
4619
4626
  }, [y.value && C(), e.enableNeverShowAgain && !y.value && r("div", {
4620
4627
  class: "custom-control custom-checkbox mb-0",
4621
- onClick: N,
4628
+ onClick: D,
4622
4629
  style: "position: absolute;left: 40px;"
4623
- }, [sn(r("input", {
4630
+ }, [cn(r("input", {
4624
4631
  id: "lookup-include-childs-input",
4625
4632
  "onUpdate:modelValue": (G) => u.value = G,
4626
4633
  title: "checkbox-input",
4627
4634
  type: "checkbox",
4628
4635
  class: "custom-control-input"
4629
- }, null), [[Do, u.value]]), r("label", {
4636
+ }, null), [[Ro, u.value]]), r("label", {
4630
4637
  class: "custom-control-label",
4631
4638
  style: "padding-left: 1.2rem;"
4632
- }, [b.value])]), p.value && x.value && r("button", {
4639
+ }, [b.value])]), p.value && S.value && r("button", {
4633
4640
  type: "button",
4634
4641
  class: "btn btn-secondary btn-lg",
4635
- onClick: S
4642
+ onClick: T
4636
4643
  }, [m.value]), p.value && s.value && r("button", {
4637
4644
  type: "button",
4638
4645
  class: "btn btn-primary btn-lg",
4639
- onClick: D
4646
+ onClick: N
4640
4647
  }, [d.value]), g.value && c.value.length && c.value.map((G) => r("button", {
4641
4648
  type: "button",
4642
4649
  onClick: G.handle,
@@ -4645,7 +4652,7 @@ function wi(e, n, t, o, a) {
4645
4652
  class: G.iconClass
4646
4653
  }, null), G.text]))]);
4647
4654
  }
4648
- function xi(e) {
4655
+ function Ti(e) {
4649
4656
  const { getLocaleValue: n } = Ue, t = Ue.getLocale();
4650
4657
  function o(a, l, c) {
4651
4658
  return l === c ? n(a) : l;
@@ -4672,31 +4679,31 @@ function xi(e) {
4672
4679
  neverShowAgain: o("messageBox.neverShowAgain") || "不再提示"
4673
4680
  };
4674
4681
  }
4675
- function zt(e) {
4682
+ function At(e) {
4676
4683
  return e ? Object.keys(e).reduce((n, t) => (t.startsWith("data-") && (n[t] = e[t]), n), {}) : {};
4677
4684
  }
4678
- function Ot(e) {
4685
+ function Mt(e) {
4679
4686
  return e == null || e === "" ? "" : String(e).replace(/[^A-Za-z0-9_-]/g, "-");
4680
4687
  }
4681
- function Si(e, n) {
4682
- return Ot(e) || Ot(n);
4688
+ function Bi(e, n) {
4689
+ return Mt(e) || Mt(n);
4683
4690
  }
4684
- function Ti(e) {
4685
- const n = Gt();
4691
+ function Fi(e) {
4692
+ const n = $t();
4686
4693
  if (!n)
4687
4694
  return {};
4688
- const { attrs: t, props: o } = n, a = Ot(e), l = Si(
4695
+ const { attrs: t, props: o } = n, a = Mt(e), l = Bi(
4689
4696
  o == null ? void 0 : o.id,
4690
4697
  t["data-testid"]
4691
4698
  );
4692
- return l ? a === l ? zt(t) : {} : a ? {} : zt(t);
4699
+ return l ? a === l ? At(t) : {} : a ? {} : At(t);
4693
4700
  }
4694
- function Bi(e, n) {
4695
- const t = Ot(e), o = { ...Ti(e), ...zt(n) };
4701
+ function ki(e, n) {
4702
+ const t = Mt(e), o = { ...Fi(e), ...At(n) };
4696
4703
  return t ? { id: t, "data-testid": t, ...o } : { ...o };
4697
4704
  }
4698
- const Fi = ["moz", "ms", "webkit"];
4699
- function ki() {
4705
+ const Oi = ["moz", "ms", "webkit"];
4706
+ function Mi() {
4700
4707
  let e = 0;
4701
4708
  return (n) => {
4702
4709
  const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), a = setTimeout(() => {
@@ -4705,17 +4712,17 @@ function ki() {
4705
4712
  return e = t + o, a;
4706
4713
  };
4707
4714
  }
4708
- function Oi() {
4715
+ function Ei() {
4709
4716
  if (typeof window > "u")
4710
4717
  return () => 0;
4711
4718
  if (window.requestAnimationFrame)
4712
4719
  return window.requestAnimationFrame.bind(window);
4713
- const e = Fi.filter((n) => `${n}RequestAnimationFrame` in window)[0];
4714
- return e ? window[`${e}RequestAnimationFrame`] : ki();
4720
+ const e = Oi.filter((n) => `${n}RequestAnimationFrame` in window)[0];
4721
+ return e ? window[`${e}RequestAnimationFrame`] : Mi();
4715
4722
  }
4716
- Oi();
4723
+ Ei();
4717
4724
  v("");
4718
- function Ut() {
4725
+ function qt() {
4719
4726
  if (typeof window > "u" || typeof navigator > "u")
4720
4727
  return !1;
4721
4728
  const e = navigator.userAgent || navigator.vendor || window.opera, n = [
@@ -4748,29 +4755,29 @@ function Ut() {
4748
4755
  const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, a = screen.width, l = screen.height, c = Math.min(a, l);
4749
4756
  return !!(o && c <= 768);
4750
4757
  }
4751
- function Mi() {
4752
- const e = Ut();
4758
+ function Ii() {
4759
+ const e = qt();
4753
4760
  return e && document.body.classList.add("f-mobile"), e;
4754
4761
  }
4755
- typeof document < "u" && Mi();
4756
- const Bt = /* @__PURE__ */ qe({
4762
+ typeof document < "u" && Ii();
4763
+ const Ft = /* @__PURE__ */ qe({
4757
4764
  name: "FMessageBox",
4758
- props: si,
4765
+ props: ci,
4759
4766
  emits: ["accept", "reject", "close", "neverShowAgain"],
4760
4767
  setup(e, n) {
4761
- const t = Mt(e), o = xi(t), a = v(t.type), l = v(t.title), c = v(t.detail), h = I(() => {
4762
- const S = {
4768
+ const t = Et(e), o = Ti(t), a = v(t.type), l = v(t.title), c = v(t.detail), h = I(() => {
4769
+ const T = {
4763
4770
  "modal-tips": !0,
4764
4771
  "d-flex": !0,
4765
4772
  "flex-row": !0
4766
- }, D = `messager-type-${a.value}`;
4767
- return S[D] = !0, S;
4773
+ }, N = `messager-type-${a.value}`;
4774
+ return T[N] = !0, T;
4768
4775
  }), d = I(() => {
4769
- const S = {
4776
+ const T = {
4770
4777
  cursor: "default"
4771
4778
  };
4772
- return a.value === "prompt" ? S.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (S.padding = "0.5rem 1.5rem 1rem 1.5rem"), S;
4773
- }), m = fi(), x = vi(t, a, l, c), s = pi(), {
4779
+ return a.value === "prompt" ? T.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (T.padding = "0.5rem 1.5rem 1rem 1.5rem"), T;
4780
+ }), m = vi(), S = gi(t, a, l, c), s = hi(), {
4774
4781
  feedbackStyle: b,
4775
4782
  feedbackMessage: u
4776
4783
  } = s;
@@ -4783,15 +4790,15 @@ const Bt = /* @__PURE__ */ qe({
4783
4790
  function y() {
4784
4791
  switch (a.value) {
4785
4792
  case "prompt":
4786
- return gi(t, x);
4793
+ return yi(t, S);
4787
4794
  default:
4788
- return bi(t, a, l, c, o);
4795
+ return wi(t, a, l, c, o);
4789
4796
  }
4790
4797
  }
4791
- const p = y(), C = wi(t, n, m, s, o);
4798
+ const p = y(), C = Si(t, n, m, s, o);
4792
4799
  return () => r("div", de({
4793
- class: ["farris-messager", Ut() ? "is-mobile" : ""]
4794
- }, Bi(t.id)), [!t.exceptionInfo && r("div", {
4800
+ class: ["farris-messager", qt() ? "is-mobile" : ""]
4801
+ }, ki(t.id)), [!t.exceptionInfo && r("div", {
4795
4802
  style: "height: 30px;width: 100%;position: absolute;",
4796
4803
  class: "messager-draggable"
4797
4804
  }, null), r("section", {
@@ -4816,16 +4823,16 @@ const Bt = /* @__PURE__ */ qe({
4816
4823
  });
4817
4824
  const l = !1, c = a.type === "error" || a.type === "prompt", h = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", d = a.acceptCallback || (() => {
4818
4825
  }), m = a.rejectCallback || (() => {
4819
- }), x = Gt();
4826
+ }), S = $t();
4820
4827
  let s = null;
4821
- if (x && x.appContext) {
4828
+ if (S && S.appContext) {
4822
4829
  const {
4823
4830
  provides: y
4824
- } = x.appContext;
4825
- yt in y && (s = y[yt]);
4831
+ } = S.appContext;
4832
+ bt in y && (s = y[bt]);
4826
4833
  }
4827
- s || (s = Pe.app._context.provides[yt]);
4828
- let b = null, u = s || new xn(Pe.app);
4834
+ s || (s = Pe.app._context.provides[bt]);
4835
+ let b = null, u = s || new Tn(Pe.app);
4829
4836
  const g = () => {
4830
4837
  b && (b == null || b.destroy(), u = null);
4831
4838
  };
@@ -4839,7 +4846,7 @@ const Bt = /* @__PURE__ */ qe({
4839
4846
  showMaxButton: !1,
4840
4847
  draggable: !0,
4841
4848
  dragHandle: ".messager-draggable",
4842
- render: () => r(Bt, de(a, {
4849
+ render: () => r(Ft, de(a, {
4843
4850
  onAccept: d,
4844
4851
  onReject: m,
4845
4852
  onClose: g,
@@ -4928,11 +4935,11 @@ const Bt = /* @__PURE__ */ qe({
4928
4935
  }
4929
4936
  };
4930
4937
  $e(Pe, "app", null);
4931
- let Ct = Pe;
4932
- Bt.install = (e) => {
4933
- e.component(Bt.name, Bt), Ct.app = e, e.provide("FMessageBoxService", Ct);
4938
+ let wt = Pe;
4939
+ Ft.install = (e) => {
4940
+ e.component(Ft.name, Ft), wt.app = e, e.provide("FMessageBoxService", wt);
4934
4941
  };
4935
- const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-design.gitee.io/mapping-editor.schema.json", Pi = "mapping-editor", Di = "A Farris Input Component", Ni = "object", Ri = {
4942
+ const Pi = "https://json-schema.org/draft/2020-12/schema", Di = "https://farris-design.gitee.io/mapping-editor.schema.json", Ni = "mapping-editor", Ri = "A Farris Input Component", Hi = "object", ji = {
4936
4943
  fromData: {
4937
4944
  type: "object",
4938
4945
  default: null
@@ -4977,14 +4984,14 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
4977
4984
  type: "object",
4978
4985
  default: null
4979
4986
  }
4980
- }, Hi = {
4981
- $schema: Ei,
4982
- $id: Ii,
4983
- title: Pi,
4984
- description: Di,
4985
- type: Ni,
4986
- properties: Ri
4987
- }, Mn = {
4987
+ }, Vi = {
4988
+ $schema: Pi,
4989
+ $id: Di,
4990
+ title: Ni,
4991
+ description: Ri,
4992
+ type: Hi,
4993
+ properties: ji
4994
+ }, In = {
4988
4995
  fromData: { type: Object, default: {} },
4989
4996
  toData: { type: Object, default: {} },
4990
4997
  /**
@@ -5016,7 +5023,7 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5016
5023
  editorParams: { type: Object, default: null },
5017
5024
  onMappingFieldsChanged: { type: Function, default: null },
5018
5025
  beforeOpen: { type: Function }
5019
- }, ji = Aa(Mn, Hi), Vi = {
5026
+ }, zi = _a(In, Vi), Ai = {
5020
5027
  showCloseButton: { type: Boolean, default: !0 },
5021
5028
  position: { type: String, default: "top-center" },
5022
5029
  timeout: { type: Number, default: 3e3 },
@@ -5029,52 +5036,52 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5029
5036
  animate: { type: String, default: "fadeIn" },
5030
5037
  options: { type: Object },
5031
5038
  safeHtml: { type: Boolean, default: !0 }
5032
- }, zi = {
5039
+ }, Li = {
5033
5040
  showCloseButton: { type: Boolean, default: !0 },
5034
5041
  animate: { type: String, default: "fadeIn" },
5035
5042
  options: { type: Object }
5036
- }, At = /* @__PURE__ */ qe({
5043
+ }, Lt = /* @__PURE__ */ qe({
5037
5044
  name: "Toast",
5038
- props: zi,
5045
+ props: Li,
5039
5046
  emits: ["close", "click"],
5040
5047
  setup: (e, n) => {
5041
5048
  const t = v(e.animate), o = "fadeOut", a = I(() => e.options), l = v(!1), c = I(() => a.value.title && a.value.message), h = I(() => !a.value.title && a.value.message), d = I(() => {
5042
- const S = {
5049
+ const T = {
5043
5050
  animated: l.value,
5044
5051
  toast: !0,
5045
5052
  "toast--only-content": !c.value
5046
5053
  };
5047
- return S[e.animate] = !1, S[o] = l.value, S["toasty-type-" + a.value.type] = !0, a.value.theme && (S[a.value.theme] = !0), S;
5054
+ return T[e.animate] = !1, T[o] = l.value, T["toasty-type-" + a.value.type] = !0, a.value.theme && (T[a.value.theme] = !0), T;
5048
5055
  }), m = I(() => {
5049
- const N = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, G = {
5056
+ const D = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, G = {
5050
5057
  "f-icon": !0
5051
5058
  };
5052
- return G[N] = !0, G;
5053
- }), x = I(() => a.value.title || a.value.message), s = I(() => e.showCloseButton), b = I(() => !!a.value.buttons || !!n.slots.default), u = I(() => Ue.getLocale() === "en" ? {
5059
+ return G[D] = !0, G;
5060
+ }), S = I(() => a.value.title || a.value.message), s = I(() => e.showCloseButton), b = I(() => !!a.value.buttons || !!n.slots.default), u = I(() => Ue.getLocale() === "en" ? {
5054
5061
  wordBreak: "keep-all",
5055
5062
  overflowWrap: "break-word"
5056
5063
  } : {});
5057
- function g(S) {
5058
- S.stopPropagation(), S.preventDefault(), l.value = !1, setTimeout(() => {
5064
+ function g(T) {
5065
+ T.stopPropagation(), T.preventDefault(), l.value = !1, setTimeout(() => {
5059
5066
  n.emit("close", a.value);
5060
5067
  }, 200);
5061
5068
  }
5062
- function y(S, D) {
5069
+ function y(T, N) {
5063
5070
  }
5064
- function p(S) {
5065
- return `f-preten-link ${S.customClass ? S.customClass : ""}`;
5071
+ function p(T) {
5072
+ return `f-preten-link ${T.customClass ? T.customClass : ""}`;
5066
5073
  }
5067
5074
  ve(t, () => {
5068
5075
  t.value;
5069
5076
  });
5070
5077
  const C = () => {
5071
- var S;
5078
+ var T;
5072
5079
  return r(Oe, null, [r("div", {
5073
5080
  class: "after-toast-msg text-right"
5074
- }, [!n.slots.default && ((S = a.value.buttons) == null ? void 0 : S.map((D) => r("span", {
5075
- class: p(D),
5076
- onClick: (N) => void 0
5077
- }, [D.text]))), n.slots.default && n.slots.default()])]);
5081
+ }, [!n.slots.default && ((T = a.value.buttons) == null ? void 0 : T.map((N) => r("span", {
5082
+ class: p(N),
5083
+ onClick: (D) => void 0
5084
+ }, [N.text]))), n.slots.default && n.slots.default()])]);
5078
5085
  };
5079
5086
  return () => r("div", {
5080
5087
  class: d.value,
@@ -5085,7 +5092,7 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5085
5092
  onClick: g
5086
5093
  }, [r("span", {
5087
5094
  class: "f-icon modal_close"
5088
- }, null)]), x.value && r("section", {
5095
+ }, null)]), S.value && r("section", {
5089
5096
  class: "modal-tips"
5090
5097
  }, [!c.value && r("div", {
5091
5098
  class: "float-left modal-tips-iconwrap"
@@ -5114,13 +5121,13 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5114
5121
  innerHTML: a.value.message
5115
5122
  }, null))])])]);
5116
5123
  }
5117
- }), Ft = /* @__PURE__ */ qe({
5124
+ }), kt = /* @__PURE__ */ qe({
5118
5125
  name: "Notify",
5119
- props: Vi,
5126
+ props: Ai,
5120
5127
  emits: ["close", "empty"],
5121
5128
  setup(e, n) {
5122
5129
  var y;
5123
- const t = Ut(), a = `farris-notify-${(y = e.options) != null && y.type ? e.options.type : "info"}}`, l = I(() => ({
5130
+ const t = qt(), a = `farris-notify-${(y = e.options) != null && y.type ? e.options.type : "info"}}`, l = I(() => ({
5124
5131
  "farris-notify": !0,
5125
5132
  [a]: t
5126
5133
  })), c = {
@@ -5128,15 +5135,15 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5128
5135
  right: 12,
5129
5136
  top: 20,
5130
5137
  bottom: 12
5131
- }, h = v(), d = v(e.options), m = v(e.showCloseButton), x = I(() => e.position || "bottom-right"), s = I(() => e.timeout != null ? e.timeout : 3e3), b = I(() => {
5132
- const p = e.bottom ? e.bottom : c.bottom, C = e.top ? e.top : c.top, S = {
5138
+ }, h = v(), d = v(e.options), m = v(e.showCloseButton), S = I(() => e.position || "bottom-right"), s = I(() => e.timeout != null ? e.timeout : 3e3), b = I(() => {
5139
+ const p = e.bottom ? e.bottom : c.bottom, C = e.top ? e.top : c.top, T = {
5133
5140
  transition: "all 0.2s ease",
5134
- left: x.value.indexOf("left") > -1 ? `${e.left ? e.left : c.left}px` : "",
5135
- right: x.value.indexOf("right") > -1 ? `${e.right ? e.right : c.right}px` : "",
5136
- top: x.value.indexOf("top") > -1 ? `${C}px` : "",
5137
- bottom: x.value.indexOf("bottom") > -1 ? `${p}px` : ""
5141
+ left: S.value.indexOf("left") > -1 ? `${e.left ? e.left : c.left}px` : "",
5142
+ right: S.value.indexOf("right") > -1 ? `${e.right ? e.right : c.right}px` : "",
5143
+ top: S.value.indexOf("top") > -1 ? `${C}px` : "",
5144
+ bottom: S.value.indexOf("bottom") > -1 ? `${p}px` : ""
5138
5145
  };
5139
- return x.value.indexOf("center") > -1 && (S.left = "50%", S.marginLeft = "calc(-24rem / 2)", x.value === "center-center" && (S.top = "50%", S.transform = "translate(-50%, -50%)")), S;
5146
+ return S.value.indexOf("center") > -1 && (T.left = "50%", T.marginLeft = "calc(-24rem / 2)", S.value === "center-center" && (T.top = "50%", T.transform = "translate(-50%, -50%)")), T;
5140
5147
  });
5141
5148
  function u(p) {
5142
5149
  n.emit("close");
@@ -5146,7 +5153,7 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5146
5153
  }, s.value), n.expose({
5147
5154
  closeToast: u,
5148
5155
  container: h,
5149
- notifyPosition: x
5156
+ notifyPosition: S
5150
5157
  });
5151
5158
  function g(p, C) {
5152
5159
  u();
@@ -5160,7 +5167,7 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5160
5167
  class: l.value,
5161
5168
  style: b.value,
5162
5169
  ref: h
5163
- }, [r(At, {
5170
+ }, [r(Lt, {
5164
5171
  options: d.value,
5165
5172
  showCloseButton: m.value,
5166
5173
  animate: e.animate,
@@ -5169,7 +5176,7 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Ii = "https://farris-
5169
5176
  };
5170
5177
  }
5171
5178
  });
5172
- class Ai {
5179
+ class _i {
5173
5180
  constructor() {
5174
5181
  $e(this, "notifyRefs", []);
5175
5182
  $e(this, "globalConfig", Fe({}));
@@ -5190,7 +5197,7 @@ class Ai {
5190
5197
  ...n
5191
5198
  }), l = document.createElement("div");
5192
5199
  l.style.display = "contents";
5193
- const c = _t({
5200
+ const c = Wt({
5194
5201
  setup() {
5195
5202
  var m;
5196
5203
  const h = v();
@@ -5200,22 +5207,22 @@ class Ai {
5200
5207
  }, 220);
5201
5208
  }
5202
5209
  if (a.position.indexOf("top") > -1) {
5203
- const x = t.getNotifyInstances(a.position), s = x[x.length - 1];
5210
+ const S = t.getNotifyInstances(a.position), s = S[S.length - 1];
5204
5211
  if (s) {
5205
5212
  const b = s.value.container.getBoundingClientRect();
5206
5213
  a.top = b.bottom;
5207
5214
  }
5208
5215
  }
5209
- return a.safeHtml && ((m = a.options) != null && m.message) && (a.options.message = t.escapeAllHtml(a.options.message)), wt(() => {
5216
+ return a.safeHtml && ((m = a.options) != null && m.message) && (a.options.message = t.escapeAllHtml(a.options.message)), xt(() => {
5210
5217
  document.body.removeChild(l);
5211
- }), vt(() => {
5218
+ }), pt(() => {
5212
5219
  t.updateNotifyPositionForCreate(a, h);
5213
- }), () => r(rn, {
5220
+ }), () => r(un, {
5214
5221
  mode: "out-in",
5215
5222
  name: "fade",
5216
5223
  appear: !0
5217
5224
  }, {
5218
- default: () => [r(Ft, de({
5225
+ default: () => [r(kt, de({
5219
5226
  ref: h
5220
5227
  }, a, {
5221
5228
  onClose: d
@@ -5288,24 +5295,24 @@ class Ai {
5288
5295
  }), this.notifyRefs.length = 0;
5289
5296
  }
5290
5297
  }
5291
- const En = Symbol("NOTIFY_SERVICE_TOKEN");
5292
- Ft.install = (e) => {
5293
- e.component(Ft.name, Ft), e.component(At.name, At);
5294
- const n = new Ai();
5295
- e.provide(En, n), e.provide("FNotifyService", n);
5298
+ const Pn = Symbol("NOTIFY_SERVICE_TOKEN");
5299
+ kt.install = (e) => {
5300
+ e.component(kt.name, kt), e.component(Lt.name, Lt);
5301
+ const n = new _i();
5302
+ e.provide(Pn, n), e.provide("FNotifyService", n);
5296
5303
  };
5297
- function Lt(e) {
5304
+ function _t(e) {
5298
5305
  return e.reduce((n, t) => {
5299
5306
  var o;
5300
- return n.push(t.data), (o = t.children) != null && o.length && n.push(...Lt(t.children)), n;
5307
+ return n.push(t.data), (o = t.children) != null && o.length && n.push(..._t(t.children)), n;
5301
5308
  }, []);
5302
5309
  }
5303
- const jt = /* @__PURE__ */ qe({
5310
+ const Vt = /* @__PURE__ */ qe({
5304
5311
  name: "FMappingEditor",
5305
- props: Mn,
5312
+ props: In,
5306
5313
  emits: ["submitModal", "update:modelValue"],
5307
5314
  setup(e, n) {
5308
- const t = '<i class="f-icon f-icon-lookup"></i>', o = v(), a = v(e.modelValue || {}), l = v([]), c = v(e.fromData.dataSource || []), h = v([]), d = e.fromData.repositoryToken ? St(e.fromData.repositoryToken) : null, m = e.toData.repositoryToken ? St(e.toData.repositoryToken) : null, x = St(En), s = (R) => ((R.raw.$type !== "SimpleField" || R.raw.selectable === !1) && (R.disabled = !0), R), b = I(() => Lt(c.value)), u = I(() => Lt(h.value)), g = (R, B, E, M) => {
5315
+ const t = '<i class="f-icon f-icon-lookup"></i>', o = v(), a = v(e.modelValue || {}), l = v([]), c = v(e.fromData.dataSource || []), h = v([]), d = e.fromData.repositoryToken ? Tt(e.fromData.repositoryToken) : null, m = e.toData.repositoryToken ? Tt(e.toData.repositoryToken) : null, S = Tt(Pn), s = (R) => ((R.raw.$type !== "SimpleField" || R.raw.selectable === !1) && (R.disabled = !0), R), b = I(() => _t(c.value)), u = I(() => _t(h.value)), g = (R, B, E, M) => {
5309
5316
  var se, Ce;
5310
5317
  const A = ((se = R.value.find((fe) => fe[M] === B)) == null ? void 0 : se[E || "name"]) || "", J = ((Ce = R.value.find((fe) => fe[M] === B)) == null ? void 0 : Ce[M || "code"]) || "";
5311
5318
  return A && J ? `${A}[${J}]` : "";
@@ -5359,11 +5366,11 @@ const jt = /* @__PURE__ */ qe({
5359
5366
  targetField: R[B]
5360
5367
  }));
5361
5368
  }
5362
- const S = v(C()), D = I(() => {
5369
+ const T = v(C()), N = I(() => {
5363
5370
  var R;
5364
- return `共 ${((R = S.value) == null ? void 0 : R.length) || 0} 项`;
5371
+ return `共 ${((R = T.value) == null ? void 0 : R.length) || 0} 项`;
5365
5372
  });
5366
- function N() {
5373
+ function D() {
5367
5374
  o.value.endEditCell(), o.value.addNewDataItemAtLast();
5368
5375
  }
5369
5376
  function G() {
@@ -5375,36 +5382,36 @@ const jt = /* @__PURE__ */ qe({
5375
5382
  }
5376
5383
  function Y() {
5377
5384
  if (!l.value.length) {
5378
- x.warning("请选择要删除的映射字段!");
5385
+ S.warning("请选择要删除的映射字段!");
5379
5386
  return;
5380
5387
  }
5381
5388
  o.value.endEditCell();
5382
- const R = S.value.findIndex((J) => J.id === l.value[0].id);
5389
+ const R = T.value.findIndex((J) => J.id === l.value[0].id);
5383
5390
  if (R === -1)
5384
5391
  return;
5385
5392
  const B = l.value[0].id;
5386
- if (o.value.removeDataItemById(B), l.value = [], !S.value.length)
5393
+ if (o.value.removeDataItemById(B), l.value = [], !T.value.length)
5387
5394
  return;
5388
- const E = Math.min(R, S.value.length - 1), M = S.value[E], A = M == null ? void 0 : M.id;
5395
+ const E = Math.min(R, T.value.length - 1), M = T.value[E], A = M == null ? void 0 : M.id;
5389
5396
  A && (o.value.selectItemById(A), l.value = [M]);
5390
5397
  }
5391
5398
  function F() {
5392
- Ct.question("确定要清空所有映射字段吗?", "", () => {
5393
- l.value = [], a.value = {}, S.value = [], o.value.updateDataSource(S.value);
5399
+ wt.question("确定要清空所有映射字段吗?", "", () => {
5400
+ l.value = [], a.value = {}, T.value = [], o.value.updateDataSource(T.value);
5394
5401
  }, () => {
5395
5402
  });
5396
5403
  }
5397
5404
  function W() {
5398
5405
  const R = {};
5399
- return S.value.forEach((B) => {
5406
+ return T.value.forEach((B) => {
5400
5407
  B.sourceField && B.targetField && (R[B.sourceField] = B.targetField);
5401
5408
  }), R;
5402
5409
  }
5403
5410
  ve(() => e.modelValue, (R) => {
5404
- a.value = R, S.value = C();
5411
+ a.value = R, T.value = C();
5405
5412
  });
5406
5413
  function _() {
5407
- return S.value.filter((B) => !B.sourceField || !B.targetField).length;
5414
+ return T.value.filter((B) => !B.sourceField || !B.targetField).length;
5408
5415
  }
5409
5416
  const $ = {
5410
5417
  title: e.title,
@@ -5425,7 +5432,7 @@ const jt = /* @__PURE__ */ qe({
5425
5432
  class: "btn btn-primary",
5426
5433
  handle: (R) => {
5427
5434
  if (o.value.endEditCell(), _())
5428
- return x.warning("请将映射字段填写完整!"), !1;
5435
+ return S.warning("请将映射字段填写完整!"), !1;
5429
5436
  const B = W();
5430
5437
  return a.value = B, n.emit("submitModal", B), n.emit("update:modelValue", B), e.onMappingFieldsChanged && typeof e.onMappingFieldsChanged == "function" && e.onMappingFieldsChanged(JSON.stringify(B)), !0;
5431
5438
  }
@@ -5433,7 +5440,7 @@ const jt = /* @__PURE__ */ qe({
5433
5440
  resizeable: !0,
5434
5441
  draggable: !0,
5435
5442
  closedCallback: (R, B) => {
5436
- (R.target.name === "cancel" || B === "icon" || B === "esc") && (a.value = e.modelValue, S.value = C(), l.value = []);
5443
+ (R.target.name === "cancel" || B === "icon" || B === "esc") && (a.value = e.modelValue, T.value = C(), l.value = []);
5437
5444
  }
5438
5445
  };
5439
5446
  function H(R) {
@@ -5451,13 +5458,13 @@ const jt = /* @__PURE__ */ qe({
5451
5458
  if (typeof se == "boolean")
5452
5459
  return se;
5453
5460
  if (typeof se == "object")
5454
- return se.messager && (x == null || x.warning({
5461
+ return se.messager && (S == null || S.warning({
5455
5462
  message: se.messager,
5456
5463
  position: "top-center"
5457
5464
  })), se.open;
5458
5465
  }
5459
5466
  if (!((J = (A = e.editorParams) == null ? void 0 : A.propertyData) == null ? void 0 : J.helpId))
5460
- return x == null || x.warning({
5467
+ return S == null || S.warning({
5461
5468
  message: "请先配置数据源!",
5462
5469
  position: "top-center"
5463
5470
  }), !1;
@@ -5480,15 +5487,15 @@ const jt = /* @__PURE__ */ qe({
5480
5487
  editor: A
5481
5488
  } = B;
5482
5489
  if (M === "sourceField" && A) {
5483
- const J = S.value.filter((se) => se.sourceField !== E.sourceField).map((se) => se.sourceField);
5484
- L(c.value, J), A.data = Vt(c.value);
5490
+ const J = T.value.filter((se) => se.sourceField !== E.sourceField).map((se) => se.sourceField);
5491
+ L(c.value, J), A.data = zt(c.value);
5485
5492
  }
5486
5493
  return !0;
5487
5494
  }
5488
- const oe = I(() => l.value.length > 0), te = I(() => S.value.length > 0);
5489
- return () => r(Tn, {
5490
- modelValue: D.value,
5491
- "onUpdate:modelValue": (R) => D.value = R,
5495
+ const oe = I(() => l.value.length > 0), te = I(() => T.value.length > 0);
5496
+ return () => r(Fn, {
5497
+ modelValue: N.value,
5498
+ "onUpdate:modelValue": (R) => N.value = R,
5492
5499
  editable: !1,
5493
5500
  disabled: e.disabled,
5494
5501
  readonly: e.readonly,
@@ -5505,7 +5512,7 @@ const jt = /* @__PURE__ */ qe({
5505
5512
  class: "px-2"
5506
5513
  }, [r("button", {
5507
5514
  class: "btn btn-primary",
5508
- onClick: N
5515
+ onClick: D
5509
5516
  }, [He("新增")]), r("button", {
5510
5517
  class: "btn btn-secondary ml-2",
5511
5518
  disabled: !oe.value,
@@ -5516,7 +5523,7 @@ const jt = /* @__PURE__ */ qe({
5516
5523
  onClick: F
5517
5524
  }, [He("清空")])]), r("div", {
5518
5525
  class: " f-utils-fill p-2"
5519
- }, [r(On, {
5526
+ }, [r(En, {
5520
5527
  ref: o,
5521
5528
  pagination: {
5522
5529
  enable: !1
@@ -5535,24 +5542,24 @@ const jt = /* @__PURE__ */ qe({
5535
5542
  editable: "true",
5536
5543
  fit: !0,
5537
5544
  columns: y,
5538
- data: S.value,
5545
+ data: T.value,
5539
5546
  newDataItem: G,
5540
5547
  onSelectionChange: H,
5541
5548
  beforeEditCell: k
5542
5549
  }, null)])])]
5543
5550
  });
5544
5551
  }
5545
- }), lr = {
5552
+ }), rr = {
5546
5553
  install(e) {
5547
- e.component(jt.name, jt);
5554
+ e.component(Vt.name, Vt);
5548
5555
  },
5549
5556
  register(e, n, t, o) {
5550
- e["mapping-editor"] = jt, n["mapping-editor"] = ji;
5557
+ e["mapping-editor"] = Vt, n["mapping-editor"] = zi;
5551
5558
  }
5552
5559
  };
5553
5560
  export {
5554
- jt as MappingEditor,
5555
- lr as default,
5556
- Mn as mappingEditorProps,
5557
- ji as propsResolver
5561
+ Vt as MappingEditor,
5562
+ rr as default,
5563
+ In as mappingEditorProps,
5564
+ zi as propsResolver
5558
5565
  };