@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/components/batch-editor/index.esm.js +6850 -6840
  2. package/components/batch-editor/index.umd.cjs +20 -20
  3. package/components/button/index.esm.js +6852 -6842
  4. package/components/button/index.umd.cjs +20 -20
  5. package/components/button-edit/index.esm.js +140 -140
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +46 -45
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/common/index.esm.js +16 -12
  10. package/components/common/index.umd.cjs +1 -1
  11. package/components/component/index.esm.js +411 -411
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/data-view/index.esm.js +6500 -6487
  14. package/components/data-view/index.umd.cjs +21 -21
  15. package/components/designer-canvas/index.esm.js +269 -269
  16. package/components/designer-canvas/index.umd.cjs +1 -1
  17. package/components/expression-editor/index.esm.js +458 -458
  18. package/components/expression-editor/index.umd.cjs +2 -2
  19. package/components/filter-condition-editor/index.esm.js +386 -386
  20. package/components/filter-condition-editor/index.umd.cjs +1 -1
  21. package/components/flow-canvas/index.esm.js +1100 -1100
  22. package/components/flow-canvas/index.umd.cjs +7 -7
  23. package/components/mapping-editor/index.esm.js +243 -243
  24. package/components/mapping-editor/index.umd.cjs +2 -2
  25. package/components/message-box/index.esm.js +82 -82
  26. package/components/message-box/index.umd.cjs +1 -1
  27. package/components/modal/index.esm.js +76 -76
  28. package/components/modal/index.umd.cjs +1 -1
  29. package/components/order/index.esm.js +139 -138
  30. package/components/order/index.umd.cjs +1 -1
  31. package/components/query-solution/index.esm.js +891 -891
  32. package/components/query-solution/index.umd.cjs +1 -1
  33. package/components/response-toolbar/index.esm.js +151 -149
  34. package/components/response-toolbar/index.umd.cjs +1 -1
  35. package/components/schema-selector/index.esm.js +947 -941
  36. package/components/schema-selector/index.umd.cjs +6 -6
  37. package/components/section/index.esm.js +121 -121
  38. package/components/section/index.umd.cjs +2 -2
  39. package/components/sort-condition-editor/index.esm.js +539 -539
  40. package/components/sort-condition-editor/index.umd.cjs +1 -1
  41. package/components/tabs/index.esm.js +448 -442
  42. package/components/tabs/index.umd.cjs +1 -1
  43. package/designer/button-edit/index.esm.js +97 -97
  44. package/designer/button-edit/index.umd.cjs +1 -1
  45. package/designer/data-grid/index.esm.js +6483 -6470
  46. package/designer/data-grid/index.umd.cjs +21 -21
  47. package/designer/farris-designer.all.esm.js +1891 -1885
  48. package/designer/farris-designer.all.umd.cjs +14 -14
  49. package/designer/radio-group/index.esm.js +183 -183
  50. package/designer/radio-group/index.umd.cjs +2 -2
  51. package/designer/response-toolbar/index.esm.js +558 -556
  52. package/designer/response-toolbar/index.umd.cjs +1 -1
  53. package/designer/tabs/index.esm.js +416 -416
  54. package/designer/tabs/index.umd.cjs +2 -2
  55. package/farris.all.esm.js +9133 -9119
  56. package/farris.all.umd.cjs +35 -35
  57. package/package.json +1 -1
  58. package/types/common/index.d.ts +1 -0
  59. package/types/common/utils/attrs.d.ts +26 -0
  60. package/types/modal/src/composition/type.d.ts +2 -0
  61. package/types/tabs/src/composition/types.d.ts +2 -0
@@ -1,24 +1,24 @@
1
1
  var lo = Object.defineProperty;
2
2
  var io = (e, t, n) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Le = (e, t, n) => io(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as g, onMounted as st, defineComponent as We, computed as E, createVNode as l, Teleport as Zt, createApp as Rt, onUnmounted as gt, Fragment as Be, watch as fe, nextTick as tt, onBeforeMount as ro, watchEffect as so, Transition as Qt, shallowRef as uo, render as Ot, h as co, cloneVNode as fo, mergeProps as ft, inject as bt, withDirectives as Kt, vShow as mo, createTextVNode as Pe, onUpdated as vo, onBeforeUnmount as go, reactive as Te, isVNode as Nt, Comment as en, provide as po, getCurrentInstance as tn, vModelCheckbox as ho } from "vue";
4
+ import { ref as g, onMounted as ut, defineComponent as We, computed as E, createVNode as l, Teleport as Zt, createApp as Rt, onUnmounted as gt, Fragment as Be, watch as fe, nextTick as tt, onBeforeMount as ro, watchEffect as so, Transition as Qt, mergeProps as st, shallowRef as uo, render as Ot, h as co, cloneVNode as fo, inject as bt, withDirectives as Kt, vShow as mo, createTextVNode as Pe, onUpdated as vo, onBeforeUnmount as go, reactive as Te, isVNode as Nt, Comment as en, provide as po, getCurrentInstance as tn, vModelCheckbox as ho } from "vue";
5
5
  import { LocaleService as Ae } from "../locale/index.esm.js";
6
- import { isMobilePhone as mt, getMaxZIndex as Yt, useGuid as yo, withInstall as nn, useCommonUtils as on, resolveField as bo, getCustomClass as Co } from "../common/index.esm.js";
6
+ import { isMobilePhone as mt, getMaxZIndex as Yt, extractDataAttrs as yo, useGuid as bo, withInstall as nn, useCommonUtils as on, resolveField as Co, getCustomClass as wo } from "../common/index.esm.js";
7
7
  import St from "../drawer/index.esm.js";
8
8
  import "../property-panel/index.esm.js";
9
9
  import { FButton as Xt } from "../button/index.esm.js";
10
10
  import "../field-selector/index.esm.js";
11
11
  import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
12
- import wo from "../tags/index.esm.js";
12
+ import xo from "../tags/index.esm.js";
13
13
  import { debounce as an, isPlainObject as Jt, cloneDeep as Pt } from "lodash-es";
14
- import { useInputExpand as xo } from "../common/index.esm.js/text-box/use-input-expand";
15
- import So from "../popover/index.esm.js";
16
- import { useResizeObserver as To } from "@vueuse/core";
17
- import { SETTING_COLUMN_FIELD as Bo, COMMAND_COLUMN_FIELD as Fo, CellMode as ln, SETTING_COLUMN_DATA_TYPE as it, COMMAND_COLUMN_DATA_TYPE as rt, useScreen as ko, useIdentify as Mo, useGroupData as Oo, useFilter as Eo, useHierarchy as Po, useLoading as Io, useDataView as Do, usePagination as Ro, useSelection as No, useDataViewContainerStyle as jo, useCommandColumn as Ho, useSettingColumn as Vo, useColumn as zo, useSort as Lo, useGroupColumn as Ao, useRow as Wo, useEdit as Go, useVisualDataBound as _o, useVisualDataCell as $o, useVisualDataRow as Uo, useVisualGroupRow as qo, useVisualSummaryRow as Yo, useVisualData as Xo, useCellContentStyle as Jo, useCellPosition as Zo, useSidebar as Qo, useVirtualScroll as Ko, useFitColumn as ea, useFilterHistory as ta, useColumnFilter as na, useDragColumn as oa, getColumnHeader as aa, getPagination as la, getSidebar as ia, getDisableMask as ra, getSummary as sa, getHorizontalScrollbar as ua, getVerticalScrollbar as ca, getFilterPanel as da, getGroupPanel as fa, useAdapt as ma, useNavigation as va, getEmpty as ga, ColumnSettingSolution as pa, refreshScrollAfterDataSourceLoad as ha, applyReassignRowData as ya } from "../data-view/index.esm.js";
18
- import ba, { FDynamicForm as Ca, FDynamicFormLabel as wa } from "../dynamic-form/index.esm.js";
14
+ import { useInputExpand as So } from "../common/index.esm.js/text-box/use-input-expand";
15
+ import To from "../popover/index.esm.js";
16
+ import { useResizeObserver as Bo } from "@vueuse/core";
17
+ import { SETTING_COLUMN_FIELD as Fo, COMMAND_COLUMN_FIELD as ko, CellMode as ln, SETTING_COLUMN_DATA_TYPE as it, COMMAND_COLUMN_DATA_TYPE as rt, useScreen as Mo, useIdentify as Oo, useGroupData as Eo, useFilter as Po, useHierarchy as Io, useLoading as Do, useDataView as Ro, usePagination as No, useSelection as jo, useDataViewContainerStyle as Ho, useCommandColumn as Vo, useSettingColumn as zo, useColumn as Lo, useSort as Ao, useGroupColumn as Wo, useRow as Go, useEdit as _o, useVisualDataBound as $o, useVisualDataCell as Uo, useVisualDataRow as qo, useVisualGroupRow as Yo, useVisualSummaryRow as Xo, useVisualData as Jo, useCellContentStyle as Zo, useCellPosition as Qo, useSidebar as Ko, useVirtualScroll as ea, useFitColumn as ta, useFilterHistory as na, useColumnFilter as oa, useDragColumn as aa, getColumnHeader as la, getPagination as ia, getSidebar as ra, getDisableMask as sa, getSummary as ua, getHorizontalScrollbar as ca, getVerticalScrollbar as da, getFilterPanel as fa, getGroupPanel as ma, useAdapt as va, useNavigation as ga, getEmpty as pa, ColumnSettingSolution as ha, refreshScrollAfterDataSourceLoad as ya, applyReassignRowData as ba } from "../data-view/index.esm.js";
18
+ import Ca, { FDynamicForm as wa, FDynamicFormLabel as xa } from "../dynamic-form/index.esm.js";
19
19
  import "bignumber.js";
20
- import { createPropsResolver as xa } from "../dynamic-resolver/index.esm.js";
21
- const Sa = {
20
+ import { createPropsResolver as Sa } from "../dynamic-resolver/index.esm.js";
21
+ const Ta = {
22
22
  /**
23
23
  * 标记组件的唯一标识
24
24
  */
@@ -189,23 +189,23 @@ const Sa = {
189
189
  * 扩展按钮是否禁用
190
190
  */
191
191
  expandDisabled: { type: Boolean, default: !1 }
192
- }, Ta = {
192
+ }, Ba = {
193
193
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
194
194
  host: { type: Object },
195
195
  backgroundColor: { type: String, default: "" }
196
196
  };
197
- function Ba() {
197
+ function Fa() {
198
198
  const e = g(!1);
199
- return st(() => {
199
+ return ut(() => {
200
200
  e.value = !0;
201
201
  }), e;
202
202
  }
203
- const Fa = /* @__PURE__ */ We({
203
+ const ka = /* @__PURE__ */ We({
204
204
  name: "FOverlay",
205
- props: Ta,
205
+ props: Ba,
206
206
  emits: ["click"],
207
207
  setup(e, t) {
208
- const n = g(e.popupContentPosition), o = g(e.host), a = Ba(), i = E(() => ({
208
+ const n = g(e.popupContentPosition), o = g(e.host), a = Fa(), i = E(() => ({
209
209
  backgroundColor: e.backgroundColor || "",
210
210
  pointerEvents: "auto"
211
211
  }));
@@ -248,13 +248,13 @@ const Fa = /* @__PURE__ */ We({
248
248
  }) : null;
249
249
  }
250
250
  });
251
- function ka(e) {
251
+ function Ma(e) {
252
252
  if (e.content && e.content.render)
253
253
  return e.content.render;
254
254
  if (e.render && typeof e.render == "function")
255
255
  return e.render;
256
256
  }
257
- function Ma(e) {
257
+ function Oa(e) {
258
258
  const t = document.createElement("div");
259
259
  t.style.display = "contents";
260
260
  let n;
@@ -267,8 +267,8 @@ function Ma(e) {
267
267
  gt(() => {
268
268
  document.body.removeChild(t);
269
269
  });
270
- const i = ka(e);
271
- return () => l(Fa, {
270
+ const i = Ma(e);
271
+ return () => l(ka, {
272
272
  "popup-content-position": e.popupPosition,
273
273
  host: e.host,
274
274
  onClick: a,
@@ -279,12 +279,12 @@ function Ma(e) {
279
279
  }
280
280
  }), document.body.appendChild(t), n.mount(t), n;
281
281
  }
282
- class Oa {
282
+ class Ea {
283
283
  static show(t) {
284
- return Ma(t);
284
+ return Oa(t);
285
285
  }
286
286
  }
287
- const Ea = {
287
+ const Pa = {
288
288
  /**
289
289
  * 允许点击蒙层关闭对话框
290
290
  * @default false
@@ -502,7 +502,7 @@ class et {
502
502
  return this.width = t.width, this.height = t.height, this;
503
503
  }
504
504
  }
505
- function Pa(e, t) {
505
+ function Ia(e, t) {
506
506
  const n = g(), o = g(), a = g(), i = g(), f = g(), h = g(), u = g(), m = g(), v = g(), s = g(), x = g(), d = g(e.resizeable), C = g(), y = g(e.draggable), T = g(!1);
507
507
  function c() {
508
508
  const p = o.value || document.body, F = window.getComputedStyle(p);
@@ -689,7 +689,7 @@ function Pa(e, t) {
689
689
  moveToCenter: ae
690
690
  };
691
691
  }
692
- function Ia(e, t, n) {
692
+ function Da(e, t, n) {
693
693
  const o = g(), a = g(e.draggable), i = g(e.lockAxis), f = g(), h = g(), u = g(!1), m = g(new ye(0, 0)), v = g(new ye(0, 0)), s = g(new ye(0, 0)), x = g(new ye(0, 0));
694
694
  fe(() => n.value, (k) => {
695
695
  f.value.style.cursor = k ? "move" : "default";
@@ -785,7 +785,7 @@ function rn(e, t) {
785
785
  };
786
786
  }
787
787
  }
788
- function Da(e, t) {
788
+ function Ra(e, t) {
789
789
  const n = g(e.enableEsc);
790
790
  let o = null;
791
791
  return n.value ? (o = rn("Escape", (a) => {
@@ -794,7 +794,7 @@ function Da(e, t) {
794
794
  remove: o
795
795
  }) : null;
796
796
  }
797
- function Ra(e, t) {
797
+ function Na(e, t) {
798
798
  const n = g(e.enableEnter);
799
799
  let o = null;
800
800
  return n.value ? (o = rn("Enter", (a) => {
@@ -803,9 +803,9 @@ function Ra(e, t) {
803
803
  remove: o
804
804
  }) : null;
805
805
  }
806
- const ct = /* @__PURE__ */ We({
806
+ const dt = /* @__PURE__ */ We({
807
807
  name: "FModal",
808
- props: Ea,
808
+ props: Pa,
809
809
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
810
810
  setup(e, t) {
811
811
  const n = g(e.width || 300), o = g(e.height || 200), a = g(e.modelValue), i = g(""), f = g(e.class), h = g(e.fitContent), u = g(e.showHeader), m = g(""), v = g(e.showCloseButton), s = g(e.showMaxButton), x = g(!1), d = g(e.dialogType), C = g(e.src), y = g(""), T = g(e.showButtons), c = g(e.title), S = g(e.containment || null), N = g();
@@ -849,9 +849,9 @@ const ct = /* @__PURE__ */ We({
849
849
  allowDrag: F,
850
850
  unWindowResizeHandle: D,
851
851
  moveToCenter: W
852
- } = Pa(e), {
852
+ } = Ia(e), {
853
853
  registerDraggle: K
854
- } = Ia(e, t, F);
854
+ } = Da(e, t, F);
855
855
  function se() {
856
856
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
857
857
  }
@@ -967,8 +967,8 @@ const ct = /* @__PURE__ */ We({
967
967
  let Ee = null, je = null;
968
968
  ro(() => {
969
969
  U.value = se();
970
- }), st(() => {
971
- I.value && !S.value && (S.value = I.value.parentElement, L.value = S.value, K(R.value, I.value, L.value)), pe.value && document.body.classList.add("modal-open"), Ee = Da(e, t), je = Ra(e, t);
970
+ }), ut(() => {
971
+ I.value && !S.value && (S.value = I.value.parentElement, L.value = S.value, K(R.value, I.value, L.value)), pe.value && document.body.classList.add("modal-open"), Ee = Ra(e, t), je = Na(e, t);
972
972
  }), gt(() => {
973
973
  D && D(), Ee && Ee.remove(), je && je.remove();
974
974
  }), t.expose({
@@ -1026,8 +1026,8 @@ const ct = /* @__PURE__ */ We({
1026
1026
  onWheel: He
1027
1027
  }, [V.value.map((B) => {
1028
1028
  var ie;
1029
- const $ = g(B.disabled), le = B.class || ((ie = B.appearance) == null ? void 0 : ie.class);
1030
- return l("button", {
1029
+ const $ = g(B.disabled), le = B.class || ((ie = B.appearance) == null ? void 0 : ie.class) || "btn btn-secondary";
1030
+ return l("button", st(yo(B), {
1031
1031
  name: B.name,
1032
1032
  style: B.styles,
1033
1033
  type: "button",
@@ -1036,7 +1036,7 @@ const ct = /* @__PURE__ */ We({
1036
1036
  onClick: (Se) => {
1037
1037
  nt(B, Se);
1038
1038
  }
1039
- }, [!!B.iconClass && l("i", {
1039
+ }), [!!B.iconClass && l("i", {
1040
1040
  class: B.iconClass
1041
1041
  }, null), B.text]);
1042
1042
  })])]);
@@ -1122,7 +1122,7 @@ function sn(e) {
1122
1122
  if (e.render && typeof e.render == "function")
1123
1123
  return e.render;
1124
1124
  }
1125
- function Na(e) {
1125
+ function ja(e) {
1126
1126
  const t = document.createElement("div");
1127
1127
  t.style.display = "contents";
1128
1128
  const n = e.type || "modal", o = Rt({
@@ -1165,7 +1165,7 @@ function Na(e) {
1165
1165
  }), N = e.resizeHandle || ((A) => {
1166
1166
  }), U = e.stopMoveHandle || ((A) => {
1167
1167
  });
1168
- return () => l(ct, {
1168
+ return () => l(dt, {
1169
1169
  ref: f,
1170
1170
  class: h.value,
1171
1171
  modelValue: u.value,
@@ -1226,7 +1226,7 @@ class un {
1226
1226
  showButtons: !0,
1227
1227
  showHeader: !0
1228
1228
  }, t);
1229
- return Na(n);
1229
+ return ja(n);
1230
1230
  }
1231
1231
  close(t) {
1232
1232
  var n, o;
@@ -1260,7 +1260,7 @@ class un {
1260
1260
  }, x = g();
1261
1261
  let d;
1262
1262
  if (o === "drawer")
1263
- d = () => l(St, ft({
1263
+ d = () => l(St, st({
1264
1264
  ref: x,
1265
1265
  modelValue: i.value,
1266
1266
  "onUpdate:modelValue": (c) => i.value = c,
@@ -1282,7 +1282,7 @@ class un {
1282
1282
  width: J,
1283
1283
  height: k
1284
1284
  } = a.value, V = this.adaptToWindow(Number(J) || 500, Number(k) || 320);
1285
- Object.assign(a.value, V), d = () => l(ct, ft({
1285
+ Object.assign(a.value, V), d = () => l(dt, st({
1286
1286
  ref: x,
1287
1287
  modelValue: i.value,
1288
1288
  "onUpdate:modelValue": (G) => i.value = G
@@ -1332,11 +1332,11 @@ class un {
1332
1332
  };
1333
1333
  }
1334
1334
  }
1335
- const dt = Symbol("FModalService");
1336
- ct.install = (e) => {
1337
- e.component(ct.name, ct);
1335
+ const ft = Symbol("FModalService");
1336
+ dt.install = (e) => {
1337
+ e.component(dt.name, dt);
1338
1338
  const t = new un(e);
1339
- e.provide(dt, t), e.provide("FModalService", t);
1339
+ e.provide(ft, t), e.provide("FModalService", t);
1340
1340
  };
1341
1341
  function cn(e, t) {
1342
1342
  function n() {
@@ -1352,11 +1352,11 @@ function cn(e, t) {
1352
1352
  }
1353
1353
  return { judgeCanOpen: n };
1354
1354
  }
1355
- function ja(e, t, n, o, a) {
1355
+ function Ha(e, t, n, o, a) {
1356
1356
  const i = g(e.buttonBehavior), f = g(e.popupOnInput), h = E(() => ({
1357
1357
  "input-group-append": !0,
1358
1358
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1359
- })), { judgeCanOpen: u } = cn(e, a), m = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = bt(dt, null), s = g();
1359
+ })), { judgeCanOpen: u } = cn(e, a), m = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = bt(ft, null), s = g();
1360
1360
  async function x(y) {
1361
1361
  if (await u() && m.value) {
1362
1362
  const T = !!t.slots.default;
@@ -1367,7 +1367,7 @@ function ja(e, t, n, o, a) {
1367
1367
  });
1368
1368
  s.value = S == null ? void 0 : S.modalRef;
1369
1369
  }
1370
- i.value === "Overlay" && Oa.show({
1370
+ i.value === "Overlay" && Ea.show({
1371
1371
  // host: buttonEditRef.value,
1372
1372
  host: document.body,
1373
1373
  backgroundColor: "rgba(0,0,0,.15)",
@@ -1389,7 +1389,7 @@ function ja(e, t, n, o, a) {
1389
1389
  modalRef: s
1390
1390
  };
1391
1391
  }
1392
- function Ha(e, t, n, o, a, i) {
1392
+ function Va(e, t, n, o, a, i) {
1393
1393
  const f = g(!1), h = E(() => e.enableClear && !e.readonly && !e.disable && !mt()), { changeTextBoxValue: u, hasClearClass: m } = i, v = g(!1);
1394
1394
  function s(T) {
1395
1395
  f.value = T, m.value = T;
@@ -1422,7 +1422,7 @@ function Ha(e, t, n, o, a, i) {
1422
1422
  onMouseLeaveTextBox: y
1423
1423
  };
1424
1424
  }
1425
- function Va(e, t, n, o, a) {
1425
+ function za(e, t, n, o, a) {
1426
1426
  const i = E(() => e.popupOnInput), f = E(() => e.popupOnFocus), { shouldPopupContent: h, closeAllPopover: u } = a, m = g(!1), v = E(() => e.enableTitle ? n.value : ""), s = E(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), x = E(() => e.readonly || !e.editable || mt()), d = g(!1), C = E(() => !e.disable && d.value), y = E(() => ({
1427
1427
  "text-left": e.textAlign === "left",
1428
1428
  "text-center": e.textAlign === "center",
@@ -1497,7 +1497,7 @@ function Va(e, t, n, o, a) {
1497
1497
  };
1498
1498
  }
1499
1499
  const Ke = "FarrisVue_PopoverInstancesKey";
1500
- function za(e, t, n, o) {
1500
+ function La(e, t, n, o) {
1501
1501
  const a = g(), i = g(!1), { judgeCanOpen: f } = cn(e, o);
1502
1502
  fe(() => a.value, (d, C) => {
1503
1503
  window[Ke] = window[Ke] || /* @__PURE__ */ new WeakMap(), d ? window[Ke].set(n.value, d) : window[Ke].delete(n.value);
@@ -1539,7 +1539,7 @@ function za(e, t, n, o) {
1539
1539
  }
1540
1540
  return { hidePopup: s, showPopup: x, popup: v, shouldPopupContent: i, togglePopup: m, popoverRef: a, closeAllPopover: h };
1541
1541
  }
1542
- function La(e, t, n) {
1542
+ function Aa(e, t, n) {
1543
1543
  const o = g(), {
1544
1544
  isTextBoxReadonly: a,
1545
1545
  textBoxClass: i,
@@ -1555,11 +1555,11 @@ function La(e, t, n) {
1555
1555
  onTextBoxValueChange: y
1556
1556
  } = n, T = g(e.id), {
1557
1557
  uuid: c
1558
- } = yo(), S = E(() => ({
1558
+ } = bo(), S = E(() => ({
1559
1559
  // 'border-top-right-radius': '6px',
1560
1560
  // 'border-bottom-right-radius': '6px'
1561
1561
  }));
1562
- st(() => {
1562
+ ut(() => {
1563
1563
  var k, V;
1564
1564
  e.selectOnCreated && ((k = o.value) == null || k.select()), e.focusOnCreated && ((V = o.value) == null || V.focus({
1565
1565
  preventScroll: !0
@@ -1601,7 +1601,7 @@ function La(e, t, n) {
1601
1601
  onCompositionstart: U
1602
1602
  }, null);
1603
1603
  }
1604
- function Aa(e, t, n) {
1604
+ function Wa(e, t, n) {
1605
1605
  const o = g(e.separator), a = E(() => e.readonly || e.disable), {
1606
1606
  changeTextBoxValue: i,
1607
1607
  onFocusTextBox: f,
@@ -1625,7 +1625,7 @@ function Aa(e, t, n) {
1625
1625
  function d(C) {
1626
1626
  u(C);
1627
1627
  }
1628
- return () => l(wo, {
1628
+ return () => l(xo, {
1629
1629
  tabindex: e.tabIndex,
1630
1630
  onFocus: f,
1631
1631
  onBlur: h,
@@ -1640,7 +1640,7 @@ function Aa(e, t, n) {
1640
1640
  onClick: d
1641
1641
  }, null);
1642
1642
  }
1643
- function Wa(e, t, n, o) {
1643
+ function Ga(e, t, n, o) {
1644
1644
  const {
1645
1645
  buttonGroupClass: a,
1646
1646
  onClickButton: i,
@@ -1656,7 +1656,7 @@ function Wa(e, t, n, o) {
1656
1656
  t.emit("beforeClearValue");
1657
1657
  }, {
1658
1658
  renderExpandContent: C
1659
- } = xo(e, t);
1659
+ } = So(e, t);
1660
1660
  return {
1661
1661
  renderButtonGroup: () => l(Be, null, [l("div", {
1662
1662
  id: e.id ? `${e.id}-button-group` : void 0,
@@ -1683,7 +1683,7 @@ function Wa(e, t, n, o) {
1683
1683
  buttonHandleElement: s
1684
1684
  };
1685
1685
  }
1686
- function Ga(e, t, n) {
1686
+ function _a(e, t, n) {
1687
1687
  const o = g(e.popupMinWidth), {
1688
1688
  hidePopup: a,
1689
1689
  popoverRef: i
@@ -1708,7 +1708,7 @@ function Ga(e, t, n) {
1708
1708
  var u, m;
1709
1709
  return [Pe(" "), (m = (u = t.slots).default) == null ? void 0 : m.call(u), Pe(" ")];
1710
1710
  }
1711
- }) : l(So, {
1711
+ }) : l(To, {
1712
1712
  id: `${e.id}-popover`,
1713
1713
  ref: i,
1714
1714
  placement: e.placement,
@@ -1733,20 +1733,20 @@ function Ga(e, t, n) {
1733
1733
  }
1734
1734
  const dn = /* @__PURE__ */ We({
1735
1735
  name: "FButtonEdit",
1736
- props: Sa,
1736
+ props: Ta,
1737
1737
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue", "expandClick", "hidden", "shown"],
1738
1738
  setup(e, t) {
1739
- const n = g(), o = g(e.customClass), a = g(e.modelValue), i = za(e, t, n, a), {
1739
+ const n = g(), o = g(e.customClass), a = g(e.modelValue), i = La(e, t, n, a), {
1740
1740
  shouldPopupContent: f,
1741
1741
  hidePopup: h,
1742
1742
  showPopup: u,
1743
1743
  togglePopup: m
1744
- } = i, v = ja(e, t, n, i, a), s = g(""), x = Va(e, t, a, s, i), {
1744
+ } = i, v = Ha(e, t, n, i, a), s = g(""), x = za(e, t, a, s, i), {
1745
1745
  hasFocusedTextBox: d,
1746
1746
  commitValue: C,
1747
1747
  inputGroupClass: y,
1748
1748
  changeTextBoxValue: T
1749
- } = x, c = Ha(e, t, a, d, s, x), {
1749
+ } = x, c = Va(e, t, a, d, s, x), {
1750
1750
  onMouseEnterTextBox: S,
1751
1751
  onMouseLeaveTextBox: N
1752
1752
  } = c, U = g(!1), A = E(() => {
@@ -1774,12 +1774,12 @@ const dn = /* @__PURE__ */ We({
1774
1774
  M.value = G();
1775
1775
  });
1776
1776
  function R() {
1777
- return e.multiSelect && e.inputType === "tag" ? () => l(Be, null, [Aa(e, a, x)(), !!M.value && l("div", {
1777
+ return e.multiSelect && e.inputType === "tag" ? () => l(Be, null, [Wa(e, a, x)(), !!M.value && l("div", {
1778
1778
  class: "d-flex flex-row mr-2 more-tags",
1779
1779
  "more-tags": !0
1780
1780
  }, [l("span", {
1781
1781
  class: "multi--more-text"
1782
- }, [Pe("+"), M.value])])]) : La(e, a, x);
1782
+ }, [Pe("+"), M.value])])]) : Aa(e, a, x);
1783
1783
  }
1784
1784
  let I = R();
1785
1785
  fe([() => e.multiSelect, () => e.inputType], () => {
@@ -1788,7 +1788,7 @@ const dn = /* @__PURE__ */ We({
1788
1788
  const {
1789
1789
  renderButtonGroup: P,
1790
1790
  buttonHandleElement: _
1791
- } = Wa(e, t, v, c), ae = Ga(e, t, i), ne = g(f.value), L = {
1791
+ } = Ga(e, t, v, c), ae = _a(e, t, i), ne = g(f.value), L = {
1792
1792
  displayText: s,
1793
1793
  commitValue: C,
1794
1794
  elementRef: n,
@@ -1820,7 +1820,7 @@ const dn = /* @__PURE__ */ We({
1820
1820
  T(p, !1), s.value = p;
1821
1821
  }
1822
1822
  };
1823
- return st(() => {
1823
+ return ut(() => {
1824
1824
  n.value.componentInstance = L, window.onresize = () => {
1825
1825
  document.body.click();
1826
1826
  };
@@ -1844,7 +1844,7 @@ const dn = /* @__PURE__ */ We({
1844
1844
  ne.value = p;
1845
1845
  }), () => {
1846
1846
  var p, F;
1847
- return l(Be, null, [l("div", ft(t.attrs, {
1847
+ return l(Be, null, [l("div", st(t.attrs, {
1848
1848
  ref: n,
1849
1849
  class: A.value,
1850
1850
  id: e.id ? e.id : void 0,
@@ -1937,8 +1937,8 @@ function fn(e, t) {
1937
1937
  }
1938
1938
  return { getSchemaByType: i, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: u, mappingSchemaToProps: h, setDesignerContext: v };
1939
1939
  }
1940
- const _a = {}, $a = {}, { resolveSchemaWithDefaultValue: Ua } = fn(_a, $a);
1941
- function qa(e = {}) {
1940
+ const $a = {}, Ua = {}, { resolveSchemaWithDefaultValue: qa } = fn($a, Ua);
1941
+ function Ya(e = {}) {
1942
1942
  function t(m, v, s, x) {
1943
1943
  if (typeof s == "number")
1944
1944
  return x[m].length === s;
@@ -1992,19 +1992,19 @@ function qa(e = {}) {
1992
1992
  }
1993
1993
  return { parseValueSchema: u };
1994
1994
  }
1995
- const Ya = {
1995
+ const Xa = {
1996
1996
  convertTo: (e, t, n, o) => {
1997
1997
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
1998
1998
  },
1999
1999
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
2000
- }, Xa = {
2001
- convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
2002
2000
  }, Ja = {
2001
+ convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
2002
+ }, Za = {
2003
2003
  convertTo: (e, t, n, o) => {
2004
2004
  e.editor && (e.editor[t] = n);
2005
2005
  },
2006
2006
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
2007
- }, Za = {
2007
+ }, Qa = {
2008
2008
  button: { type: "button", name: "按钮" },
2009
2009
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
2010
2010
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -2070,18 +2070,18 @@ const Ya = {
2070
2070
  step: { type: "step", name: "步骤条", icon: "step" },
2071
2071
  "dynamic-form": { type: "dynamic-form", name: "动态表单" },
2072
2072
  "field-search-box": { type: "field-search-box", name: "智能搜索框" }
2073
- }, Qa = {
2073
+ }, Ka = {
2074
2074
  convertFrom: (e, t, n) => {
2075
2075
  var a;
2076
2076
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
2077
- return ((a = Za[o]) == null ? void 0 : a.name) || o;
2077
+ return ((a = Qa[o]) == null ? void 0 : a.name) || o;
2078
2078
  }
2079
- }, Ka = {
2079
+ }, el = {
2080
2080
  convertTo: (e, t, n, o) => {
2081
2081
  e[t] = e[t];
2082
2082
  },
2083
2083
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
2084
- }, el = {
2084
+ }, tl = {
2085
2085
  convertTo: (e, t, n, o) => {
2086
2086
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
2087
2087
  [t]: n
@@ -2112,7 +2112,7 @@ const Ya = {
2112
2112
  }
2113
2113
  return "none";
2114
2114
  }
2115
- }, tl = {
2115
+ }, nl = {
2116
2116
  convertTo: (e, t, n, o) => {
2117
2117
  e.command ? e.command[t] = n : e.command = {
2118
2118
  [t]: n
@@ -2165,7 +2165,7 @@ const Ya = {
2165
2165
  }
2166
2166
  return "";
2167
2167
  }
2168
- }, nl = {
2168
+ }, ol = {
2169
2169
  convertTo: (e, t, n, o) => {
2170
2170
  if (e.column || (e.column = {}), t === "fitMode") {
2171
2171
  n && n !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = n) : (e.column.fitColumns = !1, e.column.fitMode = "average");
@@ -2186,7 +2186,7 @@ const Ya = {
2186
2186
  }
2187
2187
  return t === "fitMode" ? "none" : "";
2188
2188
  }
2189
- }, ol = {
2189
+ }, al = {
2190
2190
  convertTo: (e, t, n, o) => {
2191
2191
  e.summary ? e.summary[t] = n : e.summary = {
2192
2192
  [t]: n
@@ -2199,7 +2199,7 @@ const Ya = {
2199
2199
  var o, a;
2200
2200
  return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : t === "customRender" ? ((a = e.summary) == null ? void 0 : a[t]) || "" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
2201
2201
  }
2202
- }, al = {
2202
+ }, ll = {
2203
2203
  convertTo: (e, t, n, o) => {
2204
2204
  e.group ? e.group[t] = n : e.group = {
2205
2205
  [t]: n
@@ -2222,7 +2222,7 @@ const Ya = {
2222
2222
  return e.group.groupFields;
2223
2223
  }
2224
2224
  }
2225
- }, ll = {
2225
+ }, il = {
2226
2226
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
2227
2227
  convertTo: (e, t, n) => {
2228
2228
  if (n && n.length > 0) {
@@ -2230,7 +2230,7 @@ const Ya = {
2230
2230
  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;
2231
2231
  }
2232
2232
  }
2233
- }, il = {
2233
+ }, rl = {
2234
2234
  convertTo: (e, t, n, o) => {
2235
2235
  if (e.pagination || (e.pagination = {}), t === "sizeLimits")
2236
2236
  if (n == null)
@@ -2248,12 +2248,12 @@ const Ya = {
2248
2248
  var o;
2249
2249
  return e.pagination ? t === "sizeLimits" ? ((o = e.pagination.sizeLimits) == null ? void 0 : o.join(",")) ?? "" : e.pagination[t] : e[t];
2250
2250
  }
2251
- }, rl = {
2251
+ }, sl = {
2252
2252
  convertTo: (e, t, n, o) => {
2253
2253
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
2254
2254
  },
2255
2255
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
2256
- }, sl = {
2256
+ }, ul = {
2257
2257
  convertTo: (e, t, n, o) => {
2258
2258
  e.selection || (e.selection = {}), e.selection[t] = n;
2259
2259
  },
@@ -2264,7 +2264,7 @@ const Ya = {
2264
2264
  return t === "showCheckbox" && o == null && e.selection.multiSelect === !0 ? !0 : o;
2265
2265
  }
2266
2266
  };
2267
- function ul(e) {
2267
+ function cl(e) {
2268
2268
  const { formSchemaUtils: t, formStateMachineUtils: n } = e;
2269
2269
  function o(u, m = "") {
2270
2270
  return {
@@ -2292,8 +2292,8 @@ function ul(e) {
2292
2292
  }
2293
2293
  return { getVariables: i, getControlName: f, getStateMachines: h };
2294
2294
  }
2295
- function cl(e, t, n, o) {
2296
- const { getVariables: a, getControlName: i, getStateMachines: f } = ul(e);
2295
+ function dl(e, t, n, o) {
2296
+ const { getVariables: a, getControlName: i, getStateMachines: f } = cl(e);
2297
2297
  return (h, u = [], m = {}, v = {}, s) => {
2298
2298
  const x = u && u.length > 0 ? u : ["Const", "Variable", "StateMachine", "Expression"], d = {
2299
2299
  type: "property-editor",
@@ -2328,24 +2328,24 @@ function cl(e, t, n, o) {
2328
2328
  }), d;
2329
2329
  };
2330
2330
  }
2331
- const dl = {
2331
+ const fl = {
2332
2332
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
2333
- }, fl = {
2333
+ }, ml = {
2334
2334
  convertFrom: (e, t) => e[t] || "",
2335
2335
  convertTo: (e, t, n) => {
2336
2336
  e[t] = n;
2337
2337
  }
2338
- }, ml = {
2338
+ }, vl = {
2339
2339
  convertTo: (e, t, n, o) => {
2340
2340
  e.size || (e.size = {}), e.size[t] = n;
2341
2341
  },
2342
2342
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
2343
- }, vl = {
2343
+ }, gl = {
2344
2344
  convertFrom: (e, t, n) => {
2345
2345
  var o, a;
2346
2346
  return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (a = e.formatter) == null ? void 0 : a.data : e.formatterEnumData;
2347
2347
  }
2348
- }, gl = {
2348
+ }, pl = {
2349
2349
  convertTo: (e, t, n, o) => {
2350
2350
  e.sort || (e.sort = {}), e.sort[t] = n;
2351
2351
  },
@@ -2356,7 +2356,7 @@ const dl = {
2356
2356
  if (t === "multiSort")
2357
2357
  return !!((a = e.sort) != null && a.multiSort);
2358
2358
  }
2359
- }, pl = {
2359
+ }, hl = {
2360
2360
  convertTo: (e, t, n, o) => {
2361
2361
  e.filter || (e.filter = {}), e.filter[t] = n, t === "enable" && (e.enableFilter = !1);
2362
2362
  },
@@ -2364,7 +2364,7 @@ const dl = {
2364
2364
  var o, a, i, f;
2365
2365
  return t === "mode" ? ((o = e.filter) == null ? void 0 : o.mode) || "server" : t === "filterStyle" ? ((a = e.filter) == null ? void 0 : a.filterStyle) || "filter-column" : t === "enable" ? ((i = e.filter) == null ? void 0 : i.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((f = e.filter) == null ? void 0 : f[t]) || void 0;
2366
2366
  }
2367
- }, hl = {
2367
+ }, yl = {
2368
2368
  convertTo: (e, t, n, o) => {
2369
2369
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
2370
2370
  [t]: n
@@ -2381,7 +2381,7 @@ const dl = {
2381
2381
  }
2382
2382
  return "";
2383
2383
  }
2384
- }, yl = {
2384
+ }, bl = {
2385
2385
  convertTo: (e, t, n, o) => {
2386
2386
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
2387
2387
  <span class="f-pretend-link f-cursor-pointer"
@@ -2393,7 +2393,7 @@ const dl = {
2393
2393
  </span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
2394
2394
  },
2395
2395
  convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
2396
- }, bl = {
2396
+ }, Cl = {
2397
2397
  convertTo: (e, t, n, o) => {
2398
2398
  e.hierarchy || (e.hierarchy = {
2399
2399
  cascadeOption: {}
@@ -2403,7 +2403,7 @@ const dl = {
2403
2403
  var o, a;
2404
2404
  return !!((a = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && a[t]);
2405
2405
  }
2406
- }, Cl = {
2406
+ }, wl = {
2407
2407
  /**
2408
2408
  * 从 schema.uploadOptions 读取子属性值,供属性面板展示
2409
2409
  */
@@ -2417,30 +2417,30 @@ const dl = {
2417
2417
  };
2418
2418
  function mn(e, t, n, o) {
2419
2419
  const a = /* @__PURE__ */ new Map([
2420
- ["/converter/appearance.converter", Ya],
2421
- ["/converter/buttons.converter", Xa],
2422
- ["/converter/property-editor.converter", Ja],
2423
- ["/converter/items-count.converter", dl],
2424
- ["/converter/type.converter", Qa],
2425
- ["/converter/change-editor.converter", Ka],
2426
- ["/converter/change-formatter.converter", el],
2427
- ["/converter/column-command.converter", tl],
2428
- ["/converter/column-option.converter", nl],
2429
- ["/converter/summary.converter", ol],
2430
- ["/converter/group.converter", al],
2431
- ["/converter/form-group-label.converter", fl],
2432
- ["/converter/field-selector.converter", ll],
2433
- ["/converter/pagination.converter", il],
2434
- ["/converter/row-number.converter", rl],
2435
- ["/converter/grid-selection.converter", sl],
2436
- ["/converter/size.converter", ml],
2437
- ["/converter/change-formatter-enum.converter", vl],
2438
- ["/converter/grid-sort.converter", gl],
2439
- ["/converter/grid-filter.converter", pl],
2440
- ["/converter/row-option.converter", hl],
2441
- ["/converter/change-formatter-type.converter", yl],
2442
- ["/converter/upload-options.converter", Cl],
2443
- ["/converter/tree-auto-check.converter", bl]
2420
+ ["/converter/appearance.converter", Xa],
2421
+ ["/converter/buttons.converter", Ja],
2422
+ ["/converter/property-editor.converter", Za],
2423
+ ["/converter/items-count.converter", fl],
2424
+ ["/converter/type.converter", Ka],
2425
+ ["/converter/change-editor.converter", el],
2426
+ ["/converter/change-formatter.converter", tl],
2427
+ ["/converter/column-command.converter", nl],
2428
+ ["/converter/column-option.converter", ol],
2429
+ ["/converter/summary.converter", al],
2430
+ ["/converter/group.converter", ll],
2431
+ ["/converter/form-group-label.converter", ml],
2432
+ ["/converter/field-selector.converter", il],
2433
+ ["/converter/pagination.converter", rl],
2434
+ ["/converter/row-number.converter", sl],
2435
+ ["/converter/grid-selection.converter", ul],
2436
+ ["/converter/size.converter", vl],
2437
+ ["/converter/change-formatter-enum.converter", gl],
2438
+ ["/converter/grid-sort.converter", pl],
2439
+ ["/converter/grid-filter.converter", hl],
2440
+ ["/converter/row-option.converter", yl],
2441
+ ["/converter/change-formatter-type.converter", bl],
2442
+ ["/converter/upload-options.converter", wl],
2443
+ ["/converter/tree-auto-check.converter", Cl]
2444
2444
  ]), i = /* @__PURE__ */ new Map([
2445
2445
  ["string", { type: "input-group", enableClear: !1 }],
2446
2446
  ["boolean", {
@@ -2466,7 +2466,7 @@ function mn(e, t, n, o) {
2466
2466
  ["number", { type: "number-spinner", placeholder: "" }],
2467
2467
  ["events-editor", { type: "events-editor", hide: !0 }],
2468
2468
  ["multiLanguage", { type: "language-textbox" }]
2469
- ]), f = qa();
2469
+ ]), f = Ya();
2470
2470
  function h(y, T) {
2471
2471
  return () => f.parseValueSchema(y, T);
2472
2472
  }
@@ -2535,7 +2535,7 @@ function mn(e, t, n, o) {
2535
2535
  if (R && (c != null && c.getDesignerHostService)) {
2536
2536
  const I = c.getDesignerHostService();
2537
2537
  if (I != null && I.formSchemaUtils) {
2538
- const P = I.formSchemaUtils.getViewModelIdByComponentId(S) || "", _ = cl(
2538
+ const P = I.formSchemaUtils.getViewModelIdByComponentId(S) || "", _ = dl(
2539
2539
  I,
2540
2540
  P,
2541
2541
  S,
@@ -2583,18 +2583,18 @@ function mn(e, t, n, o) {
2583
2583
  propertyConverterMap: a
2584
2584
  };
2585
2585
  }
2586
- const wl = {}, xl = {};
2587
- mn(wl, xl, Ua);
2588
- const Sl = {}, Tl = {}, { resolveSchemaWithDefaultValue: Bl } = fn(Sl, Tl), Fl = {}, kl = {}, Ml = {};
2589
- mn(Fl, kl, Bl, Ml);
2590
- function Ol(e, t) {
2586
+ const xl = {}, Sl = {};
2587
+ mn(xl, Sl, qa);
2588
+ const Tl = {}, Bl = {}, { resolveSchemaWithDefaultValue: Fl } = fn(Tl, Bl), kl = {}, Ml = {}, Ol = {};
2589
+ mn(kl, Ml, Fl, Ol);
2590
+ function El(e, t) {
2591
2591
  return null;
2592
2592
  }
2593
2593
  function Ct(e) {
2594
2594
  const t = e == null ? void 0 : e.fitColumns;
2595
2595
  return t === !0 || typeof t == "object" && t !== null && "enable" in t && t.enable === !0;
2596
2596
  }
2597
- const El = {
2597
+ const Pl = {
2598
2598
  /** 自定义表格 CSS 类名。 */
2599
2599
  customClass: { type: String, default: "" },
2600
2600
  /** 是否在最后一个单元格回车时新增一行。 */
@@ -2729,7 +2729,7 @@ const El = {
2729
2729
  /** 数据更新前的回调函数。 */
2730
2730
  beforeUpdate: { type: Function },
2731
2731
  /** 绑定动态字段的解析器。 */
2732
- fieldsResolver: { type: Function, default: Ol },
2732
+ fieldsResolver: { type: Function, default: El },
2733
2733
  /** 绑定动态字段的值回调函数。 */
2734
2734
  fieldsCallback: { type: Function, default: () => {
2735
2735
  } },
@@ -2777,7 +2777,7 @@ const El = {
2777
2777
  /** 是否启用列设置方案。 */
2778
2778
  enableColumnSettingSolution: { type: Boolean, default: !1 }
2779
2779
  };
2780
- function Pl() {
2780
+ function Il() {
2781
2781
  const e = /* @__PURE__ */ new Map([
2782
2782
  ["boolean", "check-box"],
2783
2783
  ["datetime", "date-picker"],
@@ -2804,7 +2804,7 @@ function Pl() {
2804
2804
  }
2805
2805
  return { transformColumnToField: t };
2806
2806
  }
2807
- function Il(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
2807
+ function Dl(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
2808
2808
  const {
2809
2809
  isNull: c,
2810
2810
  isUndefined: S
@@ -2914,7 +2914,7 @@ function Il(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
2914
2914
  padding: "0 0.75rem"
2915
2915
  },
2916
2916
  title: Z.data
2917
- }, [Z.data])), Object.values(b.data).filter((Y) => Y.field !== b.groupField && q[Y.field] && Y.colSpan !== 0 && Y.field !== Bo && Y.field !== Fo).forEach((Y) => {
2917
+ }, [Z.data])), Object.values(b.data).filter((Y) => Y.field !== b.groupField && q[Y.field] && Y.colSpan !== 0 && Y.field !== Fo && Y.field !== ko).forEach((Y) => {
2918
2918
  var we;
2919
2919
  const ge = k(b, Y, q);
2920
2920
  if (!oe) {
@@ -3088,7 +3088,7 @@ function Il(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
3088
3088
  renderDataArea: Qe
3089
3089
  };
3090
3090
  }
3091
- const Dl = /* @__PURE__ */ We({
3091
+ const Rl = /* @__PURE__ */ We({
3092
3092
  name: "FDataGridRowForm",
3093
3093
  props: {
3094
3094
  columns: {
@@ -3152,7 +3152,7 @@ const Dl = /* @__PURE__ */ We({
3152
3152
  setup(e, {
3153
3153
  emit: t
3154
3154
  }) {
3155
- return () => l(Ca, {
3155
+ return () => l(wa, {
3156
3156
  fields: e.fields,
3157
3157
  formData: e.formData,
3158
3158
  showHeader: e.showHeader,
@@ -3176,10 +3176,10 @@ const Dl = /* @__PURE__ */ We({
3176
3176
  }, null);
3177
3177
  }
3178
3178
  });
3179
- function Rl(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
3179
+ function Nl(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
3180
3180
  const {
3181
3181
  transformColumnToField: c
3182
- } = Pl(), {
3182
+ } = Il(), {
3183
3183
  isNull: S,
3184
3184
  isUndefined: N
3185
3185
  } = on(), {
@@ -3428,10 +3428,10 @@ function Rl(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
3428
3428
  ...xe,
3429
3429
  position: j
3430
3430
  },
3431
- onClick: (ut) => {
3432
- se(ut, ee, r, ee.column);
3431
+ onClick: (ct) => {
3432
+ se(ct, ee, r, ee.column);
3433
3433
  },
3434
- onKeydown: (ut) => Ge(ut, ee)
3434
+ onKeydown: (ct) => Ge(ct, ee)
3435
3435
  }, [l("div", {
3436
3436
  class: _(ee),
3437
3437
  style: ae(ee)
@@ -3446,12 +3446,12 @@ function Rl(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
3446
3446
  return {};
3447
3447
  const z = {};
3448
3448
  return O.forEach((j) => {
3449
- z[j.id] = bo(r.raw, j.field);
3449
+ z[j.id] = Co(r.raw, j.field);
3450
3450
  }), z;
3451
3451
  }
3452
3452
  function B(r, O, z) {
3453
3453
  var ge, we;
3454
- const j = r.height || ((ge = e.rowOption) == null ? void 0 : ge.height) || 28, Z = e.displayType === "Card" && (((we = e.columns) == null ? void 0 : we.length) ?? 0) > 0 && !(e.fit && Ct(e.columnOption)), Y = l(Dl, {
3454
+ const j = r.height || ((ge = e.rowOption) == null ? void 0 : ge.height) || 28, Z = e.displayType === "Card" && (((we = e.columns) == null ? void 0 : we.length) ?? 0) > 0 && !(e.fit && Ct(e.columnOption)), Y = l(Rl, {
3455
3455
  columns: T.value,
3456
3456
  fields: z,
3457
3457
  mainTitle: e.cardMainTitle,
@@ -3563,32 +3563,32 @@ function Rl(e, t, n, o, a, i, f, h, u, m, v, s, x, d, C, y, T) {
3563
3563
  renderDataArea: q
3564
3564
  };
3565
3565
  }
3566
- function Nl(e) {
3566
+ function jl(e) {
3567
3567
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Nt(e);
3568
3568
  }
3569
3569
  const vn = /* @__PURE__ */ We({
3570
3570
  name: "FDataGrid",
3571
- props: El,
3571
+ props: Pl,
3572
3572
  emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent", "fieldsValueChange", "fieldsClick"],
3573
3573
  setup(e, t) {
3574
3574
  var _t, $t;
3575
3575
  const {
3576
3576
  isSmall: n
3577
- } = ko();
3577
+ } = Mo();
3578
3578
  let o = [], a = [];
3579
- const i = g(!1), f = 0, h = g(((_t = e.rowOption) == null ? void 0 : _t.height) || 28), u = E(() => e.displayType === "Card"), m = g(20), v = g(e.columns), s = Mo(e), x = g(), d = g(), C = g(), y = g(), T = g(), c = g([]), S = g(e.scrollbarMode === "always"), N = g((($t = e.rowOption) == null ? void 0 : $t.wrapContent) || !1), U = Oo(e, s), A = Eo(e, t), J = Po(e), {
3579
+ const i = g(!1), f = 0, h = g(((_t = e.rowOption) == null ? void 0 : _t.height) || 28), u = E(() => e.displayType === "Card"), m = g(20), v = g(e.columns), s = Oo(e), x = g(), d = g(), C = g(), y = g(), T = g(), c = g([]), S = g(e.scrollbarMode === "always"), N = g((($t = e.rowOption) == null ? void 0 : $t.wrapContent) || !1), U = Eo(e, s), A = Po(e, t), J = Io(e), {
3580
3580
  showLoading: k,
3581
3581
  renderLoading: V
3582
- } = Io(e, x), G = new Map(v.value.map((w) => [w.field, w])), M = Do(e, G, A, J, s), R = Ro(e, M), {
3582
+ } = Do(e, x), G = new Map(v.value.map((w) => [w.field, w])), M = Ro(e, G, A, J, s), R = No(e, M), {
3583
3583
  shouldRenderPagination: I
3584
- } = R, P = No(e, M, s, c, t), {
3584
+ } = R, P = jo(e, M, s, c, t), {
3585
3585
  showSelectAll: _,
3586
3586
  showSelection: ae,
3587
3587
  selectedValues: ne,
3588
3588
  updateSelectAllStatus: L
3589
3589
  } = P, p = E(() => e.disabled), F = E(() => e.virtualized && e.displayType !== "Card" ? Math.min(M.dataView.value.length, m.value) : M.dataView.value.length), {
3590
3590
  containerStyleObject: D
3591
- } = jo(e, c), W = E(() => {
3591
+ } = Ho(e, c), W = E(() => {
3592
3592
  var w;
3593
3593
  return e.displayType === "Card" && (((w = e.columns) == null ? void 0 : w.length) ?? 0) === 0;
3594
3594
  }), K = E(() => {
@@ -3628,41 +3628,41 @@ const vn = /* @__PURE__ */ We({
3628
3628
  } : {}
3629
3629
  };
3630
3630
  });
3631
- const se = Ho(e), {
3631
+ const se = Vo(e), {
3632
3632
  applyCommands: pe
3633
3633
  } = se, {
3634
3634
  applyColumnSetting: ve,
3635
3635
  removeColumnSetting: Ne
3636
- } = Vo(e);
3636
+ } = zo(e);
3637
3637
  pe(v), e.showSetting && ve(v);
3638
- const ce = zo(e, t), be = Lo(e), {
3638
+ const ce = Lo(e, t), be = Ao(e), {
3639
3639
  applyColumnSorter: Ge,
3640
3640
  columnContext: Me,
3641
3641
  updateColumnRenderContext: _e
3642
3642
  } = ce;
3643
3643
  Ge(M, be);
3644
- const Oe = Ao(e, Me), Ce = Wo(e, t, P, s), me = Go(e, t, s, Ce, c), $e = _o(e, M, h), Ie = $o(e, me, $e), De = Uo(e, M, me, J, s, $e, Ie, h), nt = qo(e, s, Ie, De), ot = Yo(e, s, Ie, De), Ee = Xo(e, v, M, F, f, De, nt, ot), {
3644
+ const Oe = Wo(e, Me), Ce = Go(e, t, P, s), me = _o(e, t, s, Ce, c), $e = $o(e, M, h), Ie = Uo(e, me, $e), De = qo(e, M, me, J, s, $e, Ie, h), nt = Yo(e, s, Ie, De), ot = Xo(e, s, Ie, De), Ee = Jo(e, v, M, F, f, De, nt, ot), {
3645
3645
  getVisualData: je
3646
- } = Ee, Ue = Jo(Me), qe = Zo(e, Me, h, u), He = Qo(e, P), {
3646
+ } = Ee, Ue = Zo(Me), qe = Qo(e, Me, h, u), He = Ko(e, P), {
3647
3647
  sidebarWidth: Je,
3648
3648
  showSidebarCheckBox: Ye
3649
- } = He, re = Ko(e, M, c, Me, Ee, F, f, Je, h, u, me, S), {
3649
+ } = He, re = ea(e, M, c, Me, Ee, F, f, Je, h, u, me, S), {
3650
3650
  onWheel: Ze,
3651
3651
  dataGridWidth: Xe,
3652
3652
  viewPortHeight: Ve,
3653
3653
  viewPortWidth: Re,
3654
3654
  resetScroll: B,
3655
3655
  updateVisibleRowsOnLatestVisibleScope: $
3656
- } = re, le = ea(e, Me, d, Re, Oe), {
3656
+ } = re, le = ta(e, Me, d, Re, Oe), {
3657
3657
  calculateColumnsSize: ie
3658
- } = le, Se = ta(), Qe = na(d, T, M, Se, re), b = oa(e, t, ce, M, Oe, U, re), q = E(() => {
3658
+ } = le, Se = na(), Qe = oa(d, T, M, Se, re), b = aa(e, t, ce, M, Oe, U, re), q = E(() => {
3659
3659
  const w = {
3660
3660
  "fv-grid": !0,
3661
3661
  "fv-grid-bordered": e.showBorder,
3662
3662
  "fv-grid-horizontal-bordered": e.showHorizontalLines,
3663
3663
  "fv-datagrid-strip": e.showStripe
3664
3664
  };
3665
- return Co(w, e.customClass);
3665
+ return wo(w, e.customClass);
3666
3666
  }), r = E(() => ({
3667
3667
  "fv-grid-content": !0,
3668
3668
  "fv-grid-content-hover": S.value,
@@ -3681,24 +3681,24 @@ const vn = /* @__PURE__ */ We({
3681
3681
  renderGridHeader: oe,
3682
3682
  renderGridColumnResizeOverlay: Z,
3683
3683
  shouldShowHeader: Y
3684
- } = aa(e, t, d, y, T, ce, M, b, Qe, A, Se, le, Oe, P, He, be, re, Re, c, i, j), {
3684
+ } = la(e, t, d, y, T, ce, M, b, Qe, A, Se, le, Oe, P, He, be, re, Re, c, i, j), {
3685
3685
  renderDataGridPagination: ge
3686
- } = la(e, t, M, re, R, P), {
3686
+ } = ia(e, t, M, re, R, P), {
3687
3687
  renderDataGridSidebar: we
3688
- } = ia(e, Ce, P, He, re), {
3688
+ } = ra(e, Ce, P, He, re), {
3689
3689
  renderDisableMask: ee
3690
- } = ra(), {
3690
+ } = sa(), {
3691
3691
  renderDataGridSummary: pt,
3692
3692
  summaryPosition: xe
3693
- } = sa(e, M, ce), {
3693
+ } = ua(e, M, ce), {
3694
3694
  renderHorizontalScrollbar: ht
3695
- } = ua(e, d, re), {
3696
- renderVerticalScrollbar: yt
3697
3695
  } = ca(e, d, re), {
3696
+ renderVerticalScrollbar: yt
3697
+ } = da(e, d, re), {
3698
3698
  renderFilterPanel: Tt
3699
- } = da(e, ce, M, A, be, re), {
3700
- renderGroupPanel: ut
3701
- } = fa(e, M, b, U, re);
3699
+ } = fa(e, ce, M, A, be, re), {
3700
+ renderGroupPanel: ct
3701
+ } = ma(e, M, b, U, re);
3702
3702
  let at = null;
3703
3703
  function hn() {
3704
3704
  var H;
@@ -3712,8 +3712,8 @@ const vn = /* @__PURE__ */ We({
3712
3712
  at = null, hn();
3713
3713
  });
3714
3714
  }
3715
- st(() => {
3716
- d.value && (m.value = Math.max(Math.ceil(d.value.clientHeight / h.value), m.value), c.value = je(0, F.value + f - 1), To(d.value, yn), ie(), tt(() => {
3715
+ ut(() => {
3716
+ d.value && (m.value = Math.max(Math.ceil(d.value.clientHeight / h.value), m.value), c.value = je(0, F.value + f - 1), Bo(d.value, yn), ie(), tt(() => {
3717
3717
  d.value && (Xe.value = d.value.clientWidth), C.value && (Re.value = C.value.clientWidth, Ve.value = C.value.clientHeight);
3718
3718
  })), k.value && V();
3719
3719
  }), gt(() => {
@@ -3772,7 +3772,7 @@ const vn = /* @__PURE__ */ We({
3772
3772
  function zt(w, H) {
3773
3773
  if (w) {
3774
3774
  const X = !!(H != null && H.keepScrollTop || H != null && H.keepScrollPosition), te = X ? re.offsetY.value : 0;
3775
- M.load(w), ha({
3775
+ M.load(w), ya({
3776
3776
  keepScroll: X,
3777
3777
  savedOffsetY: te,
3778
3778
  resetScroll: B,
@@ -3792,7 +3792,7 @@ const vn = /* @__PURE__ */ We({
3792
3792
  function Ft(w) {
3793
3793
  Ce.activeRowById(w);
3794
3794
  }
3795
- const kn = ma(P, M, A, v, R, s, ce, be, lt, zt, Bt);
3795
+ const kn = va(P, M, A, v, R, s, ce, be, lt, zt, Bt);
3796
3796
  function Mn(w, H = {
3797
3797
  isCurrent: !0
3798
3798
  }) {
@@ -3819,7 +3819,7 @@ const vn = /* @__PURE__ */ We({
3819
3819
  var Q;
3820
3820
  const X = s.idField.value, te = (Q = M.originalData.value) != null && Q.length ? M.originalData.value : M.dataView.value, {
3821
3821
  visualIndex: ue
3822
- } = ya({
3822
+ } = ba({
3823
3823
  id: w,
3824
3824
  idField: X,
3825
3825
  updatedValues: H,
@@ -3928,13 +3928,13 @@ const vn = /* @__PURE__ */ We({
3928
3928
  getDataIndexById: Yn
3929
3929
  };
3930
3930
  t.expose(kt);
3931
- const At = va(e, t, kt, ce, me, c), {
3931
+ const At = ga(e, t, kt, ce, me, c), {
3932
3932
  renderDataArea: Xn
3933
- } = Il(e, t, C, y, T, Ue, qe, ce, me, U, At, Ce, Ee, re, c, M), {
3933
+ } = Dl(e, t, C, y, T, Ue, qe, ce, me, U, At, Ce, Ee, re, c, M), {
3934
3934
  renderDataArea: Jn
3935
- } = Rl(e, t, C, y, T, Ue, qe, ce, me, U, At, Ce, Ee, re, c, M, v), Mt = E(() => !c.value || !c.value.length), {
3935
+ } = Nl(e, t, C, y, T, Ue, qe, ce, me, U, At, Ce, Ee, re, c, M, v), Mt = E(() => !c.value || !c.value.length), {
3936
3936
  renderEmpty: Wt
3937
- } = ga(e, t), Zn = E(() => ({
3937
+ } = pa(e, t), Zn = E(() => ({
3938
3938
  "d-flex": !0,
3939
3939
  "justify-content-between": I.value && ae.value,
3940
3940
  "justify-content-end": I.value && !ae.value,
@@ -3957,9 +3957,9 @@ const vn = /* @__PURE__ */ We({
3957
3957
  });
3958
3958
  function eo(w) {
3959
3959
  let H;
3960
- return l(ba, {
3960
+ return l(Ca, {
3961
3961
  class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
3962
- }, Nl(H = Object.keys(w.data).filter((X) => {
3962
+ }, jl(H = Object.keys(w.data).filter((X) => {
3963
3963
  var te, ue;
3964
3964
  return ((te = w.data[X].column) == null ? void 0 : te.dataType) !== rt && ((ue = w.data[X].column) == null ? void 0 : ue.dataType) !== it;
3965
3965
  }).map((X) => {
@@ -3969,7 +3969,7 @@ const vn = /* @__PURE__ */ We({
3969
3969
  class: "farris-group-wrap w-100"
3970
3970
  }, [l("div", {
3971
3971
  class: "form-group farris-form-group common-group"
3972
- }, [l(wa, {
3972
+ }, [l(xa, {
3973
3973
  text: (ue = te.column) == null ? void 0 : ue.title,
3974
3974
  title: (Q = te.column) == null ? void 0 : Q.title
3975
3975
  }, null), l("div", {
@@ -4076,7 +4076,7 @@ const vn = /* @__PURE__ */ We({
4076
4076
  class: q.value,
4077
4077
  style: D.value,
4078
4078
  onWheel: Ze
4079
- }, [d.value && ut(), d.value && !u.value && Y.value && v.value.length > 0 && oe(), d.value && (xe.value === "top" || xe.value === "both") && pt(), l("div", {
4079
+ }, [d.value && ct(), d.value && !u.value && Y.value && v.value.length > 0 && oe(), d.value && (xe.value === "top" || xe.value === "both") && pt(), l("div", {
4080
4080
  ref: d,
4081
4081
  class: r.value,
4082
4082
  style: O.value,
@@ -4091,7 +4091,7 @@ const vn = /* @__PURE__ */ We({
4091
4091
  style: Qn.value
4092
4092
  }, [ae.value && l("div", {
4093
4093
  class: Kn.value
4094
- }, [l("div", null, ["已选:" + ne.value.length, Pe(" 条")])]), I.value && ge()]), Z(), p.value && ee()]), n() && no(), e.enableColumnSettingSolution && l(pa, {
4094
+ }, [l("div", null, ["已选:" + ne.value.length, Pe(" 条")])]), I.value && ge()]), Z(), p.value && ee()]), n() && no(), e.enableColumnSettingSolution && l(ha, {
4095
4095
  ref: z,
4096
4096
  columns: [...v.value, ...o],
4097
4097
  componentId: e.id,
@@ -4102,7 +4102,7 @@ const vn = /* @__PURE__ */ We({
4102
4102
  }
4103
4103
  });
4104
4104
  nn(vn);
4105
- const jl = {
4105
+ const Hl = {
4106
4106
  width: { Type: Number, default: 400 },
4107
4107
  /**
4108
4108
  * 类型
@@ -4147,12 +4147,12 @@ const jl = {
4147
4147
  function jt() {
4148
4148
  return new DOMException("The request is not allowed", "NotAllowedError");
4149
4149
  }
4150
- async function Hl(e) {
4150
+ async function Vl(e) {
4151
4151
  if (!navigator.clipboard)
4152
4152
  throw jt();
4153
4153
  return navigator.clipboard.writeText(e);
4154
4154
  }
4155
- async function Vl(e) {
4155
+ async function zl(e) {
4156
4156
  const t = document.createElement("span");
4157
4157
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
4158
4158
  const n = window.getSelection(), o = window.document.createRange();
@@ -4166,24 +4166,24 @@ async function Vl(e) {
4166
4166
  if (!a)
4167
4167
  throw jt();
4168
4168
  }
4169
- async function zl(e) {
4169
+ async function Ll(e) {
4170
4170
  try {
4171
- await Hl(e);
4171
+ await Vl(e);
4172
4172
  } catch (t) {
4173
4173
  try {
4174
- await Vl(e);
4174
+ await zl(e);
4175
4175
  } catch (n) {
4176
4176
  throw n || t || jt();
4177
4177
  }
4178
4178
  }
4179
4179
  }
4180
- function Ll() {
4180
+ function Al() {
4181
4181
  async function e(t) {
4182
- await zl(t);
4182
+ await Ll(t);
4183
4183
  }
4184
4184
  return { onCopy: e };
4185
4185
  }
4186
- function Al(e, t, n, o) {
4186
+ function Wl(e, t, n, o) {
4187
4187
  const a = g(14), i = g(140), f = g(""), h = g(o.value.length), u = E(() => o.value), m = E(() => ({
4188
4188
  "font-size": `${a.value}px`,
4189
4189
  height: "100%"
@@ -4208,14 +4208,14 @@ function Al(e, t, n, o) {
4208
4208
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
4209
4209
  }, [h.value + " / " + i.value])]);
4210
4210
  }
4211
- function Wl(e, t, n, o) {
4212
- const a = Al(e, t, n, o), i = /* @__PURE__ */ new Map([["text-area", a]]);
4211
+ function Gl(e, t, n, o) {
4212
+ const a = Wl(e, t, n, o), i = /* @__PURE__ */ new Map([["text-area", a]]);
4213
4213
  function f(h) {
4214
4214
  return i.get(h) || null;
4215
4215
  }
4216
4216
  return { getEditorRender: f };
4217
4217
  }
4218
- function Gl() {
4218
+ function _l() {
4219
4219
  const e = g(!1), t = g("复制成功");
4220
4220
  return {
4221
4221
  feedbackStyle: E(() => {
@@ -4242,11 +4242,11 @@ function Gl() {
4242
4242
  toShowFeedback: e
4243
4243
  };
4244
4244
  }
4245
- function _l(e, t) {
4245
+ function $l(e, t) {
4246
4246
  const n = t.getEditorRender(e.promptEditorType);
4247
4247
  return () => n && n();
4248
4248
  }
4249
- function $l(e, t) {
4249
+ function Ul(e, t) {
4250
4250
  function n(d) {
4251
4251
  if (d == null)
4252
4252
  return 0;
@@ -4299,14 +4299,14 @@ function $l(e, t) {
4299
4299
  onClick: x
4300
4300
  }, [m.value])])])]);
4301
4301
  }
4302
- function Ul(e) {
4302
+ function ql(e) {
4303
4303
  return () => l("p", {
4304
4304
  class: "toast-msg-detail",
4305
4305
  innerHTML: e.value,
4306
4306
  style: "max-height: calc(100vh - 200px);overflow: auto;"
4307
4307
  }, null);
4308
4308
  }
4309
- function ql(e, t, n, o, a) {
4309
+ function Yl(e, t, n, o, a) {
4310
4310
  const i = g(e.exceptionInfo), f = E(() => {
4311
4311
  const C = t.value === "question" ? "warning" : t.value, y = {
4312
4312
  "f-icon": !0
@@ -4314,7 +4314,7 @@ function ql(e, t, n, o, a) {
4314
4314
  return y[T] = !0, y;
4315
4315
  }), h = E(() => n.value || i.value && i.value.message), u = E(() => o.value), m = E(() => !!o.value), v = E(() => !!i.value);
4316
4316
  function s() {
4317
- return v.value ? $l(i, a) : m.value ? Ul(u) : () => null;
4317
+ return v.value ? Ul(i, a) : m.value ? ql(u) : () => null;
4318
4318
  }
4319
4319
  const x = s(), d = E(() => a.locale === "en" ? {
4320
4320
  wordBreak: "keep-all",
@@ -4332,7 +4332,7 @@ function ql(e, t, n, o, a) {
4332
4332
  style: d.value
4333
4333
  }, null), x()])]);
4334
4334
  }
4335
- function Yl(e, t, n, o) {
4335
+ function Xl(e, t, n, o) {
4336
4336
  const {
4337
4337
  onCopy: a
4338
4338
  } = t, {
@@ -4358,8 +4358,8 @@ function Yl(e, t, n, o) {
4358
4358
  style: "cursor: pointer;"
4359
4359
  }, [h.value])]);
4360
4360
  }
4361
- function Xl(e, t, n, o, a) {
4362
- const i = g(e.type), f = g(e.buttons), h = g(e.exceptionInfo), u = g(a.ok || e.okButtonText), m = g(a.cancel || e.cancelButtonText), v = g(e.showCancelButton), s = g(e.showOkButton), x = g(a.neverShowAgain), d = g(!1), C = E(() => !!(f.value && f.value.length)), y = E(() => !!(h.value && h.value.detail)), T = E(() => !(f.value && f.value.length) && (s.value || v.value)), c = Yl(e, n, o, a);
4361
+ function Jl(e, t, n, o, a) {
4362
+ const i = g(e.type), f = g(e.buttons), h = g(e.exceptionInfo), u = g(a.ok || e.okButtonText), m = g(a.cancel || e.cancelButtonText), v = g(e.showCancelButton), s = g(e.showOkButton), x = g(a.neverShowAgain), d = g(!1), C = E(() => !!(f.value && f.value.length)), y = E(() => !!(h.value && h.value.detail)), T = E(() => !(f.value && f.value.length) && (s.value || v.value)), c = Xl(e, n, o, a);
4363
4363
  u.value === "关闭" ? u.value = a.close : u.value === "知道了" && (u.value = a.exception.roger);
4364
4364
  function S(A) {
4365
4365
  i.value === "question" && t.emit("reject"), t.emit("close");
@@ -4404,7 +4404,7 @@ function Xl(e, t, n, o, a) {
4404
4404
  class: A.iconClass
4405
4405
  }, null), A.text]))]);
4406
4406
  }
4407
- function Jl(e) {
4407
+ function Zl(e) {
4408
4408
  const { getLocaleValue: t } = Ae, n = Ae.getLocale();
4409
4409
  function o(a, i, f) {
4410
4410
  return i === f ? t(a) : i;
@@ -4431,8 +4431,8 @@ function Jl(e) {
4431
4431
  neverShowAgain: o("messageBox.neverShowAgain") || "不再提示"
4432
4432
  };
4433
4433
  }
4434
- const Zl = ["moz", "ms", "webkit"];
4435
- function Ql() {
4434
+ const Ql = ["moz", "ms", "webkit"];
4435
+ function Kl() {
4436
4436
  let e = 0;
4437
4437
  return (t) => {
4438
4438
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
@@ -4441,15 +4441,15 @@ function Ql() {
4441
4441
  return e = n + o, a;
4442
4442
  };
4443
4443
  }
4444
- function Kl() {
4444
+ function ei() {
4445
4445
  if (typeof window > "u")
4446
4446
  return () => 0;
4447
4447
  if (window.requestAnimationFrame)
4448
4448
  return window.requestAnimationFrame.bind(window);
4449
- const e = Zl.filter((t) => `${t}RequestAnimationFrame` in window)[0];
4450
- return e ? window[`${e}RequestAnimationFrame`] : Ql();
4449
+ const e = Ql.filter((t) => `${t}RequestAnimationFrame` in window)[0];
4450
+ return e ? window[`${e}RequestAnimationFrame`] : Kl();
4451
4451
  }
4452
- Kl();
4452
+ ei();
4453
4453
  g("");
4454
4454
  function Ht() {
4455
4455
  if (typeof window > "u" || typeof navigator > "u")
@@ -4484,17 +4484,17 @@ function Ht() {
4484
4484
  const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, a = screen.width, i = screen.height, f = Math.min(a, i);
4485
4485
  return !!(o && f <= 768);
4486
4486
  }
4487
- function ei() {
4487
+ function ti() {
4488
4488
  const e = Ht();
4489
4489
  return e && document.body.classList.add("f-mobile"), e;
4490
4490
  }
4491
- typeof document < "u" && ei();
4491
+ typeof document < "u" && ti();
4492
4492
  const wt = /* @__PURE__ */ We({
4493
4493
  name: "FMessageBox",
4494
- props: jl,
4494
+ props: Hl,
4495
4495
  emits: ["accept", "reject", "close", "neverShowAgain"],
4496
4496
  setup(e, t) {
4497
- const n = Jl(e), o = g(e.type), a = g(e.title), i = g(e.detail), f = E(() => {
4497
+ const n = Zl(e), o = g(e.type), a = g(e.title), i = g(e.detail), f = E(() => {
4498
4498
  const c = {
4499
4499
  "modal-tips": !0,
4500
4500
  "d-flex": !0,
@@ -4506,7 +4506,7 @@ const wt = /* @__PURE__ */ We({
4506
4506
  cursor: "default"
4507
4507
  };
4508
4508
  return o.value === "prompt" ? c.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (c.padding = "0.5rem 1.5rem 1rem 1.5rem"), c;
4509
- }), u = Ll(), m = Wl(e, o, a, i), v = Gl(), {
4509
+ }), u = Al(), m = Gl(e, o, a, i), v = _l(), {
4510
4510
  feedbackStyle: s,
4511
4511
  feedbackMessage: x
4512
4512
  } = v;
@@ -4519,12 +4519,12 @@ const wt = /* @__PURE__ */ We({
4519
4519
  function C() {
4520
4520
  switch (o.value) {
4521
4521
  case "prompt":
4522
- return _l(e, m);
4522
+ return $l(e, m);
4523
4523
  default:
4524
- return ql(e, o, a, i, n);
4524
+ return Yl(e, o, a, i, n);
4525
4525
  }
4526
4526
  }
4527
- const y = C(), T = Xl(e, t, u, v, n);
4527
+ const y = C(), T = Jl(e, t, u, v, n);
4528
4528
  return () => l("div", {
4529
4529
  class: ["farris-messager", Ht() ? "is-mobile" : ""]
4530
4530
  }, [!e.exceptionInfo && l("div", {
@@ -4558,9 +4558,9 @@ const wt = /* @__PURE__ */ We({
4558
4558
  const {
4559
4559
  provides: y
4560
4560
  } = v.appContext;
4561
- dt in y && (s = y[dt]);
4561
+ ft in y && (s = y[ft]);
4562
4562
  }
4563
- s || (s = ke.app._context.provides[dt]);
4563
+ s || (s = ke.app._context.provides[ft]);
4564
4564
  let x = null, d = s || new un(ke.app);
4565
4565
  const C = () => {
4566
4566
  x && (x == null || x.destroy(), d = null);
@@ -4575,7 +4575,7 @@ const wt = /* @__PURE__ */ We({
4575
4575
  showMaxButton: !1,
4576
4576
  draggable: !0,
4577
4577
  dragHandle: ".messager-draggable",
4578
- render: () => l(wt, ft(a, {
4578
+ render: () => l(wt, st(a, {
4579
4579
  onAccept: u,
4580
4580
  onReject: m,
4581
4581
  onClose: C,
@@ -4668,7 +4668,7 @@ let vt = ke;
4668
4668
  wt.install = (e) => {
4669
4669
  e.component(wt.name, wt), vt.app = e, e.provide("FMessageBoxService", vt);
4670
4670
  };
4671
- const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-design.gitee.io/mapping-editor.schema.json", oi = "mapping-editor", ai = "A Farris Input Component", li = "object", ii = {
4671
+ const ni = "https://json-schema.org/draft/2020-12/schema", oi = "https://farris-design.gitee.io/mapping-editor.schema.json", ai = "mapping-editor", li = "A Farris Input Component", ii = "object", ri = {
4672
4672
  fromData: {
4673
4673
  type: "object",
4674
4674
  default: null
@@ -4713,13 +4713,13 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
4713
4713
  type: "object",
4714
4714
  default: null
4715
4715
  }
4716
- }, ri = {
4717
- $schema: ti,
4718
- $id: ni,
4719
- title: oi,
4720
- description: ai,
4721
- type: li,
4722
- properties: ii
4716
+ }, si = {
4717
+ $schema: ni,
4718
+ $id: oi,
4719
+ title: ai,
4720
+ description: li,
4721
+ type: ii,
4722
+ properties: ri
4723
4723
  }, gn = {
4724
4724
  fromData: { type: Object, default: {} },
4725
4725
  toData: { type: Object, default: {} },
@@ -4752,7 +4752,7 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
4752
4752
  editorParams: { type: Object, default: null },
4753
4753
  onMappingFieldsChanged: { type: Function, default: null },
4754
4754
  beforeOpen: { type: Function }
4755
- }, si = xa(gn, ri), ui = {
4755
+ }, ui = Sa(gn, si), ci = {
4756
4756
  showCloseButton: { type: Boolean, default: !0 },
4757
4757
  position: { type: String, default: "top-center" },
4758
4758
  timeout: { type: Number, default: 3e3 },
@@ -4765,13 +4765,13 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
4765
4765
  animate: { type: String, default: "fadeIn" },
4766
4766
  options: { type: Object },
4767
4767
  safeHtml: { type: Boolean, default: !0 }
4768
- }, ci = {
4768
+ }, di = {
4769
4769
  showCloseButton: { type: Boolean, default: !0 },
4770
4770
  animate: { type: String, default: "fadeIn" },
4771
4771
  options: { type: Object }
4772
4772
  }, It = /* @__PURE__ */ We({
4773
4773
  name: "Toast",
4774
- props: ci,
4774
+ props: di,
4775
4775
  emits: ["close", "click"],
4776
4776
  setup: (e, t) => {
4777
4777
  const n = g(e.animate), o = "fadeOut", a = E(() => e.options), i = g(!1), f = E(() => a.value.title && a.value.message), h = E(() => !a.value.title && a.value.message), u = E(() => {
@@ -4852,7 +4852,7 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
4852
4852
  }
4853
4853
  }), xt = /* @__PURE__ */ We({
4854
4854
  name: "Notify",
4855
- props: ui,
4855
+ props: ci,
4856
4856
  emits: ["close", "empty"],
4857
4857
  setup(e, t) {
4858
4858
  var y;
@@ -4905,7 +4905,7 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
4905
4905
  };
4906
4906
  }
4907
4907
  });
4908
- class di {
4908
+ class fi {
4909
4909
  constructor() {
4910
4910
  Le(this, "notifyRefs", []);
4911
4911
  Le(this, "globalConfig", Te({}));
@@ -4944,14 +4944,14 @@ class di {
4944
4944
  }
4945
4945
  return a.safeHtml && ((m = a.options) != null && m.message) && (a.options.message = n.escapeAllHtml(a.options.message)), gt(() => {
4946
4946
  document.body.removeChild(i);
4947
- }), st(() => {
4947
+ }), ut(() => {
4948
4948
  n.updateNotifyPositionForCreate(a, h);
4949
4949
  }), () => l(Qt, {
4950
4950
  mode: "out-in",
4951
4951
  name: "fade",
4952
4952
  appear: !0
4953
4953
  }, {
4954
- default: () => [l(xt, ft({
4954
+ default: () => [l(xt, st({
4955
4955
  ref: h
4956
4956
  }, a, {
4957
4957
  onClose: u
@@ -5027,7 +5027,7 @@ class di {
5027
5027
  const pn = Symbol("NOTIFY_SERVICE_TOKEN");
5028
5028
  xt.install = (e) => {
5029
5029
  e.component(xt.name, xt), e.component(It.name, It);
5030
- const t = new di();
5030
+ const t = new fi();
5031
5031
  e.provide(pn, t), e.provide("FNotifyService", t);
5032
5032
  };
5033
5033
  function Dt(e) {
@@ -5278,17 +5278,17 @@ const Et = /* @__PURE__ */ We({
5278
5278
  }, null)])])]
5279
5279
  });
5280
5280
  }
5281
- }), Ei = {
5281
+ }), Pi = {
5282
5282
  install(e) {
5283
5283
  e.component(Et.name, Et);
5284
5284
  },
5285
5285
  register(e, t, n, o) {
5286
- e["mapping-editor"] = Et, t["mapping-editor"] = si;
5286
+ e["mapping-editor"] = Et, t["mapping-editor"] = ui;
5287
5287
  }
5288
5288
  };
5289
5289
  export {
5290
5290
  Et as MappingEditor,
5291
- Ei as default,
5291
+ Pi as default,
5292
5292
  gn as mappingEditorProps,
5293
- si as propsResolver
5293
+ ui as propsResolver
5294
5294
  };