@farris/ui-vue 1.6.5-beta.8 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/components/avatar/index.esm.js +334 -334
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/button-edit/index.esm.js +4 -4
  4. package/components/button-edit/index.umd.cjs +1 -1
  5. package/components/combo-list/index.esm.js +136 -133
  6. package/components/combo-list/index.umd.cjs +1 -1
  7. package/components/component/index.esm.js +300 -300
  8. package/components/component/index.umd.cjs +1 -1
  9. package/components/condition/index.esm.js +4 -4
  10. package/components/condition/index.umd.cjs +1 -1
  11. package/components/content-container/index.esm.js +295 -295
  12. package/components/content-container/index.umd.cjs +1 -1
  13. package/components/data-grid/index.esm.js +99 -99
  14. package/components/data-grid/index.umd.cjs +1 -1
  15. package/components/data-view/index.esm.js +3416 -3350
  16. package/components/data-view/index.umd.cjs +1 -1
  17. package/components/designer-canvas/index.esm.js +4 -4
  18. package/components/designer-canvas/index.umd.cjs +1 -1
  19. package/components/dynamic-form/index.esm.js +170 -170
  20. package/components/dynamic-form/index.umd.cjs +1 -1
  21. package/components/events-editor/index.esm.js +637 -637
  22. package/components/events-editor/index.umd.cjs +3 -3
  23. package/components/expression-editor/index.esm.js +699 -696
  24. package/components/expression-editor/index.umd.cjs +4 -4
  25. package/components/filter-bar/index.esm.js +446 -446
  26. package/components/filter-bar/index.umd.cjs +1 -1
  27. package/components/filter-condition-editor/index.esm.js +377 -374
  28. package/components/filter-condition-editor/index.umd.cjs +2 -2
  29. package/components/flow-canvas/index.esm.js +204 -204
  30. package/components/flow-canvas/index.umd.cjs +1 -1
  31. package/components/list-view/index.esm.js +42 -40
  32. package/components/list-view/index.umd.cjs +2 -2
  33. package/components/mapping-editor/index.esm.js +427 -427
  34. package/components/mapping-editor/index.umd.cjs +1 -1
  35. package/components/message-box/index.esm.js +212 -212
  36. package/components/message-box/index.umd.cjs +1 -1
  37. package/components/modal/index.esm.js +276 -276
  38. package/components/modal/index.umd.cjs +1 -1
  39. package/components/number-range/index.esm.js +160 -160
  40. package/components/number-range/index.umd.cjs +1 -1
  41. package/components/number-spinner/index.esm.js +314 -314
  42. package/components/number-spinner/index.umd.cjs +1 -1
  43. package/components/order/index.esm.js +468 -463
  44. package/components/order/index.umd.cjs +2 -2
  45. package/components/popover/index.esm.js +58 -56
  46. package/components/popover/index.umd.cjs +1 -1
  47. package/components/property-panel/index.esm.js +215 -215
  48. package/components/property-panel/index.umd.cjs +2 -2
  49. package/components/query-solution/index.esm.js +4 -4
  50. package/components/query-solution/index.umd.cjs +1 -1
  51. package/components/response-layout/index.esm.js +282 -282
  52. package/components/response-layout/index.umd.cjs +1 -1
  53. package/components/response-layout-editor/index.esm.js +944 -941
  54. package/components/response-layout-editor/index.umd.cjs +1 -1
  55. package/components/schema-selector/index.esm.js +498 -492
  56. package/components/schema-selector/index.umd.cjs +6 -6
  57. package/components/search-box/index.esm.js +76 -72
  58. package/components/search-box/index.umd.cjs +1 -1
  59. package/components/section/index.esm.js +211 -211
  60. package/components/section/index.umd.cjs +1 -1
  61. package/components/sort-condition-editor/index.esm.js +377 -374
  62. package/components/sort-condition-editor/index.umd.cjs +2 -2
  63. package/components/switch/index.esm.js +78 -77
  64. package/components/switch/index.umd.cjs +1 -1
  65. package/components/tabs/index.esm.js +579 -579
  66. package/components/tabs/index.umd.cjs +2 -2
  67. package/components/textarea/index.esm.js +362 -362
  68. package/components/textarea/index.umd.cjs +2 -2
  69. package/components/time-picker/index.css +1 -0
  70. package/components/time-picker/index.esm.js +9799 -0
  71. package/components/time-picker/index.umd.cjs +1 -0
  72. package/components/time-picker/package.json +8 -0
  73. package/components/time-picker/style.js +6 -0
  74. package/components/transfer/index.esm.js +81 -79
  75. package/components/transfer/index.umd.cjs +2 -2
  76. package/components/tree-grid/index.esm.js +100 -100
  77. package/components/tree-grid/index.umd.cjs +1 -1
  78. package/components/tree-view/index.esm.js +2361 -2279
  79. package/components/tree-view/index.umd.cjs +1 -1
  80. package/components/video/index.esm.js +219 -219
  81. package/components/video/index.umd.cjs +1 -1
  82. package/designer/button-edit/index.css +1 -0
  83. package/designer/button-edit/index.esm.js +4856 -0
  84. package/designer/button-edit/index.umd.cjs +1 -0
  85. package/designer/checkbox/index.esm.js +254 -0
  86. package/designer/checkbox/index.umd.cjs +1 -0
  87. package/designer/checkbox-group/index.esm.js +382 -0
  88. package/designer/checkbox-group/index.umd.cjs +1 -0
  89. package/designer/data-grid/index.css +1 -0
  90. package/designer/data-grid/index.esm.js +15439 -0
  91. package/designer/data-grid/index.umd.cjs +23 -0
  92. package/designer/data-view/index.esm.js +854 -0
  93. package/designer/data-view/index.umd.cjs +38 -0
  94. package/designer/drawer/index.css +1 -0
  95. package/designer/drawer/index.esm.js +525 -0
  96. package/designer/drawer/index.umd.cjs +1 -0
  97. package/designer/farris-designer.all.esm.js +22330 -0
  98. package/designer/farris-designer.all.umd.cjs +34 -0
  99. package/designer/index.css +1 -0
  100. package/designer/input-group/index.esm.js +1098 -0
  101. package/designer/input-group/index.umd.cjs +1 -0
  102. package/designer/list-view/index.css +1 -0
  103. package/designer/list-view/index.esm.js +4689 -0
  104. package/designer/list-view/index.umd.cjs +40 -0
  105. package/designer/radio-group/index.css +1 -0
  106. package/designer/radio-group/index.esm.js +6985 -0
  107. package/designer/radio-group/index.umd.cjs +1 -0
  108. package/designer/tree-grid/index.esm.js +1099 -0
  109. package/designer/tree-grid/index.umd.cjs +1 -0
  110. package/farris.all.esm.js +9619 -9535
  111. package/farris.all.umd.cjs +24 -24
  112. package/locales/data-grid/ui/en.json +2 -2
  113. package/locales/designer/en.json +7 -6
  114. package/locales/designer/zh-CHS.json +2 -1
  115. package/locales/designer/zh-CHT.json +2 -1
  116. package/locales/ui/en.json +7 -6
  117. package/locales/ui/zh-CHS.json +2 -1
  118. package/locales/ui/zh-CHT.json +2 -1
  119. package/package.json +1 -1
  120. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  121. package/types/data-view/composition/types.d.ts +10 -4
@@ -86,7 +86,7 @@ import "../external-container/index.esm.js";
86
86
  import "../language-textbox/index.esm.js";
87
87
  import "../designer-canvas/index.esm.js";
88
88
  import { useResizeObserver as _n } from "@vueuse/core";
89
- import { getHierarchyRow as Un, useIdentify as Gn, useGroupData as Xn, useFilter as Yn, useHierarchy as Jn, useLoading as Qn, useDataView as Zn, useSelection as Kn, useSelectHierarchyItem as eo, usePagination as to, useDataViewContainerStyle as no, useCommandColumn as oo, useSettingColumn as ao, useColumn as io, useSort as lo, useGroupColumn as ro, useRow as so, useEdit as uo, useVisualDataBound as co, useVisualDataCell as fo, useVisualDataRow as po, useVisualData as mo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as yo, useFitColumn as go, useFilterHistory as bo, useColumnFilter as wo, useDragColumn as Co, getColumnHeader as So, getSidebar as xo, getDisableMask as To, getHorizontalScrollbar as Fo, getVerticalScrollbar as Bo, getEmpty as Mo, getPagination as ko, getSummary as Eo } from "../data-view/index.esm.js";
89
+ import { getHierarchyRow as Un, useIdentify as Gn, useGroupData as Xn, useFilter as Yn, useHierarchy as Jn, useLoading as Qn, useDataView as Zn, useSelection as Kn, useSelectHierarchyItem as eo, usePagination as to, useDataViewContainerStyle as no, useCommandColumn as oo, useSettingColumn as ao, useColumn as io, useSort as lo, useGroupColumn as ro, useRow as so, useEdit as uo, useVisualDataBound as co, useVisualDataCell as fo, useVisualDataRow as po, useVisualData as mo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as yo, useFilterHistory as bo, useColumnFilter as wo, useDragColumn as Co, getColumnHeader as So, getSidebar as xo, getDisableMask as To, getHorizontalScrollbar as Fo, getVerticalScrollbar as Bo, getEmpty as Mo, getPagination as ko, getSummary as Eo } from "../data-view/index.esm.js";
90
90
  import "../property-panel/index.esm.js";
91
91
  import "../notify/index.esm.js";
92
92
  const Ro = {
@@ -181,79 +181,79 @@ const Ro = {
181
181
  function on(e, t) {
182
182
  let n;
183
183
  function o(r) {
184
- const { properties: s, title: c, ignore: m } = r, y = m && Array.isArray(m), w = Object.keys(s).reduce((R, B) => ((!y || !m.find((I) => I === B)) && (R[B] = s[B].type === "object" && s[B].properties ? o(s[B]) : Te(s[B].default)), R), {});
185
- if (c && (!y || !m.find((R) => R === "id"))) {
184
+ const { properties: s, title: c, ignore: p } = r, g = p && Array.isArray(p), b = Object.keys(s).reduce((R, M) => ((!g || !p.find((I) => I === M)) && (R[M] = s[M].type === "object" && s[M].properties ? o(s[M]) : Te(s[M].default)), R), {});
185
+ if (c && (!g || !p.find((R) => R === "id"))) {
186
186
  const R = c.toLowerCase().replace(/-/g, "_");
187
- w.id = `${R}_${Math.random().toString().slice(2, 6)}`;
187
+ b.id = `${R}_${Math.random().toString().slice(2, 6)}`;
188
188
  }
189
- return w;
189
+ return b;
190
190
  }
191
191
  function a(r) {
192
- const { properties: s, title: c, required: m } = r;
193
- if (m && Array.isArray(m)) {
194
- const y = m.reduce((w, R) => (w[R] = s[R].type === "object" && s[R].properties ? o(s[R]) : Te(s[R].default), w), {});
195
- if (c && m.find((w) => w === "id")) {
196
- const w = c.toLowerCase().replace(/-/g, "_");
197
- y.id = `${w}_${Math.random().toString().slice(2, 6)}`;
192
+ const { properties: s, title: c, required: p } = r;
193
+ if (p && Array.isArray(p)) {
194
+ const g = p.reduce((b, R) => (b[R] = s[R].type === "object" && s[R].properties ? o(s[R]) : Te(s[R].default), b), {});
195
+ if (c && p.find((b) => b === "id")) {
196
+ const b = c.toLowerCase().replace(/-/g, "_");
197
+ g.id = `${b}_${Math.random().toString().slice(2, 6)}`;
198
198
  }
199
- return y;
199
+ return g;
200
200
  }
201
201
  return {
202
202
  type: c
203
203
  };
204
204
  }
205
205
  function i(r, s = {}, c) {
206
- const m = e[r];
207
- if (m) {
208
- let y = a(m);
209
- const w = t[r];
210
- return y = w ? w({ getSchemaByType: i }, y, s, c) : y, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(y), y;
206
+ const p = e[r];
207
+ if (p) {
208
+ let g = a(p);
209
+ const b = t[r];
210
+ return g = b ? b({ getSchemaByType: i }, g, s, c) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
211
211
  }
212
212
  return null;
213
213
  }
214
214
  function l(r, s) {
215
215
  const c = o(s);
216
- return Object.keys(c).reduce((m, y) => (Object.prototype.hasOwnProperty.call(r, y) && (m[y] && Yt(m[y]) && Yt(r[y] || !r[y]) ? Object.assign(m[y], r[y] || {}) : m[y] = r[y]), m), c), c;
216
+ return Object.keys(c).reduce((p, g) => (Object.prototype.hasOwnProperty.call(r, g) && (p[g] && Yt(p[g]) && Yt(r[g] || !r[g]) ? Object.assign(p[g], r[g] || {}) : p[g] = r[g]), p), c), c;
217
217
  }
218
218
  function f(r, s) {
219
- return Object.keys(r).filter((m) => r[m] != null).reduce((m, y) => {
220
- if (s.has(y)) {
221
- const w = s.get(y);
222
- if (typeof w == "string")
223
- m[w] = r[y];
219
+ return Object.keys(r).filter((p) => r[p] != null).reduce((p, g) => {
220
+ if (s.has(g)) {
221
+ const b = s.get(g);
222
+ if (typeof b == "string")
223
+ p[b] = r[g];
224
224
  else {
225
- const R = w(y, r[y], r);
226
- Object.assign(m, R);
225
+ const R = b(g, r[g], r);
226
+ Object.assign(p, R);
227
227
  }
228
228
  } else
229
- m[y] = r[y];
230
- return m;
229
+ p[g] = r[g];
230
+ return p;
231
231
  }, {});
232
232
  }
233
- function p(r, s, c = /* @__PURE__ */ new Map()) {
234
- const m = l(r, s);
235
- return f(m, c);
233
+ function m(r, s, c = /* @__PURE__ */ new Map()) {
234
+ const p = l(r, s);
235
+ return f(p, c);
236
236
  }
237
237
  function u(r) {
238
238
  var c;
239
239
  const s = r.type;
240
240
  if (s) {
241
- const m = e[s];
242
- if (!m)
241
+ const p = e[s];
242
+ if (!p)
243
243
  return r;
244
- const y = l(r, m), w = ((c = r.editor) == null ? void 0 : c.type) || "";
245
- if (w) {
246
- const R = e[w], B = l(r.editor, R);
247
- y.editor = B;
244
+ const g = l(r, p), b = ((c = r.editor) == null ? void 0 : c.type) || "";
245
+ if (b) {
246
+ const R = e[b], M = l(r.editor, R);
247
+ g.editor = M;
248
248
  }
249
- return y;
249
+ return g;
250
250
  }
251
251
  return r;
252
252
  }
253
253
  function h(r) {
254
254
  n = r;
255
255
  }
256
- return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: p, mappingSchemaToProps: f, setDesignerContext: h };
256
+ return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: m, mappingSchemaToProps: f, setDesignerContext: h };
257
257
  }
258
258
  const an = {}, ln = {}, { getSchemaByType: Su, resolveSchemaWithDefaultValue: Vo, resolveSchemaToProps: Ho, mappingSchemaToProps: zo, setDesignerContext: xu } = on(an, ln);
259
259
  function Wo(e = {}) {
@@ -261,13 +261,13 @@ function Wo(e = {}) {
261
261
  if (typeof r == "number")
262
262
  return s[u].length === r;
263
263
  if (typeof r == "object") {
264
- const c = Object.keys(r)[0], m = r[c];
264
+ const c = Object.keys(r)[0], p = r[c];
265
265
  if (c === "not")
266
- return Number(s[u].length) !== Number(m);
266
+ return Number(s[u].length) !== Number(p);
267
267
  if (c === "moreThan")
268
- return Number(s[u].length) >= Number(m);
268
+ return Number(s[u].length) >= Number(p);
269
269
  if (c === "lessThan")
270
- return Number(s[u].length) <= Number(m);
270
+ return Number(s[u].length) <= Number(p);
271
271
  }
272
272
  return !1;
273
273
  }
@@ -284,8 +284,8 @@ function Wo(e = {}) {
284
284
  return typeof h == "number" ? [{ target: r, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: r, operator: "getProperty", param: u, value: !!h }] : typeof h == "object" ? Object.keys(h).map((s) => {
285
285
  if (s === "length")
286
286
  return { target: r, operator: "length", param: null, value: h[s] };
287
- const c = s, m = h[s];
288
- return { target: r, operator: "getProperty", param: c, value: m };
287
+ const c = s, p = h[s];
288
+ return { target: r, operator: "getProperty", param: c, value: p };
289
289
  }) : [];
290
290
  }
291
291
  function i(u) {
@@ -302,13 +302,13 @@ function Wo(e = {}) {
302
302
  return !1;
303
303
  }
304
304
  function f(u, h) {
305
- return i(u).reduce((c, m) => c && l(m, h), !0);
305
+ return i(u).reduce((c, p) => c && l(p, h), !0);
306
306
  }
307
- function p(u, h) {
308
- const r = Object.keys(u), s = r.includes("allOf"), c = r.includes("anyOf"), m = s || c, R = (m ? u[m ? s ? "allOf" : "anyOf" : "allOf"] : [u]).map((I) => f(I, h));
307
+ function m(u, h) {
308
+ const r = Object.keys(u), s = r.includes("allOf"), c = r.includes("anyOf"), p = s || c, R = (p ? u[p ? s ? "allOf" : "anyOf" : "allOf"] : [u]).map((I) => f(I, h));
309
309
  return s ? !R.includes(!1) : R.includes(!0);
310
310
  }
311
- return { parseValueSchema: p };
311
+ return { parseValueSchema: m };
312
312
  }
313
313
  const qo = {
314
314
  convertTo: (e, t, n, o) => {
@@ -599,75 +599,75 @@ function rn(e, t, n) {
599
599
  ["number", { type: "number-spinner", placeholder: "" }],
600
600
  ["events-editor", { type: "events-editor", hide: !0 }]
601
601
  ]), i = Wo();
602
- function l(m, y) {
603
- return () => i.parseValueSchema(m, y);
602
+ function l(p, g) {
603
+ return () => i.parseValueSchema(p, g);
604
604
  }
605
- function f(m, y, w) {
606
- return m.includes("visible") && y.visible !== void 0 ? typeof y.visible == "boolean" ? () => !!y.visible : y.visible === void 0 ? !0 : l(y.visible, w) : () => !0;
605
+ function f(p, g, b) {
606
+ return p.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : l(g.visible, b) : () => !0;
607
607
  }
608
- function p(m, y, w) {
609
- return m.includes("readonly") && y.readonly !== void 0 ? typeof y.readonly == "boolean" ? () => !!y.readonly : l(y.readonly, w) : () => !1;
608
+ function m(p, g, b) {
609
+ return p.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : l(g.readonly, b) : () => !1;
610
610
  }
611
- function u(m, y) {
612
- const w = m.$converter || y;
613
- return typeof w == "string" && w && o.has(w) ? o.get(w) || null : w || null;
611
+ function u(p, g) {
612
+ const b = p.$converter || g;
613
+ return typeof b == "string" && b && o.has(b) ? o.get(b) || null : b || null;
614
614
  }
615
- function h(m, y, w, R, B, I = "", $ = "") {
616
- return Object.keys(m).map((x) => {
617
- const C = d(1), b = x, S = m[x], j = Object.keys(S), M = S.title, D = S.type, O = a.get(D) || { type: "input-group", enableClear: !1 }, g = S.editor ? Object.assign({}, O, S.editor) : Object.assign({}, O), F = f(j, S, y), P = p(j, S, y);
618
- g.readonly = g.readonly === void 0 ? P() : g.readonly;
619
- const J = S.type === "cascade" ? h(S.properties, y, w, R, B, I, $) : [], A = !0;
615
+ function h(p, g, b, R, M, I = "", $ = "") {
616
+ return Object.keys(p).map((x) => {
617
+ const w = d(1), C = x, S = p[x], j = Object.keys(S), F = S.title, D = S.type, O = a.get(D) || { type: "input-group", enableClear: !1 }, y = S.editor ? Object.assign({}, O, S.editor) : Object.assign({}, O), B = f(j, S, g), P = m(j, S, g);
618
+ y.readonly = y.readonly === void 0 ? P() : y.readonly;
619
+ const J = S.type === "cascade" ? h(S.properties, g, b, R, M, I, $) : [], A = !0;
620
620
  let E = u(S, $);
621
621
  const q = V({
622
622
  get() {
623
- if (C.value) {
624
- if (["class", "style"].find((de) => de === b) && !E && (E = o.get("/converter/appearance.converter") || null), E && E.convertFrom)
625
- return E.convertFrom(w, x, B, I);
626
- const ie = w[x];
623
+ if (w.value) {
624
+ if (["class", "style"].find((de) => de === C) && !E && (E = o.get("/converter/appearance.converter") || null), E && E.convertFrom)
625
+ return E.convertFrom(b, x, M, I);
626
+ const ie = b[x];
627
627
  return Object.prototype.hasOwnProperty.call(S, "defaultValue") && (ie === void 0 || typeof ie == "string" && ie === "") ? S.type === "boolean" ? S.defaultValue : S.defaultValue || "" : ie;
628
628
  }
629
629
  return null;
630
630
  },
631
631
  set(ie) {
632
- C.value += 1, E && E.convertTo ? (E.convertTo(R, x, ie, B, I), E.convertTo(w, x, ie, B, I)) : (R[x] = ie, w[x] = ie);
632
+ w.value += 1, E && E.convertTo ? (E.convertTo(R, x, ie, M, I), E.convertTo(b, x, ie, M, I)) : (R[x] = ie, b[x] = ie);
633
633
  }
634
- }), { refreshPanelAfterChanged: z, description: ee, isExpand: ge, parentPropertyID: be } = S, Y = { propertyID: b, propertyName: M, propertyType: D, propertyValue: q, editor: g, visible: F, readonly: P, cascadeConfig: J, hideCascadeTitle: A, refreshPanelAfterChanged: z, description: ee, isExpand: ge, parentPropertyID: be };
635
- return y[b] = Y, Y;
634
+ }), { refreshPanelAfterChanged: z, description: ee, isExpand: ye, parentPropertyID: be } = S, Y = { propertyID: C, propertyName: F, propertyType: D, propertyValue: q, editor: y, visible: B, readonly: P, cascadeConfig: J, hideCascadeTitle: A, refreshPanelAfterChanged: z, description: ee, isExpand: ye, parentPropertyID: be };
635
+ return g[C] = Y, Y;
636
636
  });
637
637
  }
638
- function r(m, y, w = {}) {
639
- const R = {}, B = e[m];
640
- return B && B.categories ? Object.keys(B.categories).map(($) => {
641
- const T = B.categories[$], x = T == null ? void 0 : T.title, C = h(T.properties || {}, R, {}, w, y);
642
- return { categoryId: $, categoryName: x, properties: C };
638
+ function r(p, g, b = {}) {
639
+ const R = {}, M = e[p];
640
+ return M && M.categories ? Object.keys(M.categories).map(($) => {
641
+ const T = M.categories[$], x = T == null ? void 0 : T.title, w = h(T.properties || {}, R, {}, b, g);
642
+ return { categoryId: $, categoryName: x, properties: w };
643
643
  }) : [];
644
644
  }
645
- function s(m, y, w, R, B = "") {
646
- const I = y.$ref.schema, $ = y.$ref.converter, T = w[I], x = T.type, C = n(T), b = {}, S = e[x];
645
+ function s(p, g, b, R, M = "") {
646
+ const I = g.$ref.schema, $ = g.$ref.converter, T = b[I], x = T.type, w = n(T), C = {}, S = e[x];
647
647
  if (S && S.categories) {
648
- const j = S.categories[m], M = j == null ? void 0 : j.title;
649
- $ && Object.keys(j.properties).forEach((g) => {
650
- j.properties[g].$converter = $;
648
+ const j = S.categories[p], F = j == null ? void 0 : j.title;
649
+ $ && Object.keys(j.properties).forEach((y) => {
650
+ j.properties[y].$converter = $;
651
651
  });
652
- const D = (j == null ? void 0 : j.properties) || {}, O = h(D, b, C, T, R, B);
653
- return { categoryId: m, categoryName: M, properties: O };
654
- }
655
- return { categoryId: m, categoryName: "", properties: [] };
656
- }
657
- function c(m, y, w, R, B) {
658
- const I = m.type, $ = n(m), T = {};
659
- let x = B || e[I];
660
- if (x && Object.keys(x).length === 0 && w && w.getPropConfig && (x = w.getPropConfig(R)), x && x.categories) {
661
- const C = [];
662
- return Object.keys(x.categories).map((b) => {
663
- const S = x.categories[b];
652
+ const D = (j == null ? void 0 : j.properties) || {}, O = h(D, C, w, T, R, M);
653
+ return { categoryId: p, categoryName: F, properties: O };
654
+ }
655
+ return { categoryId: p, categoryName: "", properties: [] };
656
+ }
657
+ function c(p, g, b, R, M) {
658
+ const I = p.type, $ = n(p), T = {};
659
+ let x = M || e[I];
660
+ if (x && Object.keys(x).length === 0 && b && b.getPropConfig && (x = b.getPropConfig(R)), x && x.categories) {
661
+ const w = [];
662
+ return Object.keys(x.categories).map((C) => {
663
+ const S = x.categories[C];
664
664
  if (S.$ref) {
665
- C.push(s(b, S, m, y, R));
665
+ w.push(s(C, S, p, g, R));
666
666
  return;
667
667
  }
668
- const j = S == null ? void 0 : S.title, M = S == null ? void 0 : S.tabId, D = S == null ? void 0 : S.tabName, O = S == null ? void 0 : S.hide, g = S == null ? void 0 : S.hideTitle, F = h(S.properties || {}, T, $, m, y, R, S.$converter), { setPropertyRelates: P } = S, J = S == null ? void 0 : S.parentPropertyID;
669
- C.push({ categoryId: b, categoryName: j, tabId: M, tabName: D, hide: O, properties: F, hideTitle: g, setPropertyRelates: P, parentPropertyID: J });
670
- }), C;
668
+ const j = S == null ? void 0 : S.title, F = S == null ? void 0 : S.tabId, D = S == null ? void 0 : S.tabName, O = S == null ? void 0 : S.hide, y = S == null ? void 0 : S.hideTitle, B = h(S.properties || {}, T, $, p, g, R, S.$converter), { setPropertyRelates: P } = S, J = S == null ? void 0 : S.parentPropertyID;
669
+ w.push({ categoryId: C, categoryName: j, tabId: F, tabName: D, hide: O, properties: B, hideTitle: y, setPropertyRelates: P, parentPropertyID: J });
670
+ }), w;
671
671
  }
672
672
  return [];
673
673
  }
@@ -681,12 +681,12 @@ const sn = {}, un = {};
681
681
  rn(sn, un, Vo);
682
682
  const cn = {}, dn = {}, { getSchemaByType: Tu, resolveSchemaWithDefaultValue: da, resolveSchemaToProps: Fu, mappingSchemaToProps: Bu, setDesignerContext: Mu } = on(cn, dn), fn = {}, pn = {};
683
683
  rn(fn, pn, da);
684
- function je(e, t, n = /* @__PURE__ */ new Map(), o = (l, f, p, u) => f, a = {}, i = (l) => l) {
684
+ function je(e, t, n = /* @__PURE__ */ new Map(), o = (l, f, m, u) => f, a = {}, i = (l) => l) {
685
685
  return an[t.title] = t, ln[t.title] = o, sn[t.title] = a, un[t.title] = i, cn[t.title] = t, dn[t.title] = o, fn[t.title] = a, pn[t.title] = i, (l = {}, f = !0) => {
686
686
  if (!f)
687
687
  return zo(l, n);
688
- const p = Ho(l, t, n), u = Object.keys(e).reduce((h, r) => (h[r] = e[r].default, h), {});
689
- return Object.assign(u, p);
688
+ const m = Ho(l, t, n), u = Object.keys(e).reduce((h, r) => (h[r] = e[r].default, h), {});
689
+ return Object.assign(u, m);
690
690
  };
691
691
  }
692
692
  function at(e, t) {
@@ -698,7 +698,7 @@ const fa = /* @__PURE__ */ new Map([
698
698
  function pa(e, t, n) {
699
699
  return t;
700
700
  }
701
- const ma = "capsule", va = "A Farris Component", ha = "object", ya = {
701
+ const ma = "capsule", va = "A Farris Component", ha = "object", ga = {
702
702
  basic: {
703
703
  description: "Basic Infomation",
704
704
  title: "基本信息",
@@ -720,11 +720,11 @@ const ma = "capsule", va = "A Farris Component", ha = "object", ya = {
720
720
  }
721
721
  }
722
722
  }
723
- }, ga = {
723
+ }, ya = {
724
724
  title: ma,
725
725
  description: va,
726
726
  type: ha,
727
- categories: ya
727
+ categories: ga
728
728
  }, mn = {
729
729
  items: {
730
730
  Type: Array,
@@ -747,7 +747,7 @@ const ma = "capsule", va = "A Farris Component", ha = "object", ya = {
747
747
  show: { type: Boolean, default: !0 },
748
748
  disabled: { type: Boolean, default: !1 }
749
749
  };
750
- je(mn, Lo, fa, pa, ga);
750
+ je(mn, Lo, fa, pa, ya);
751
751
  const wa = /* @__PURE__ */ le({
752
752
  name: "FCapsuleItem",
753
753
  props: ba,
@@ -784,85 +784,86 @@ const wa = /* @__PURE__ */ le({
784
784
  props: mn,
785
785
  emits: ["change", "update:modelValue"],
786
786
  setup(e, t) {
787
- const n = d(e.items), o = d(), a = 2, i = d(e.modelValue), l = d("none"), f = d(e.type), p = V(() => {
788
- const b = {
787
+ const n = d(e.items), o = d(), a = 2, i = d(e.modelValue), l = d("none"), f = d(e.type), m = V(() => {
788
+ const C = {
789
789
  "f-capsule-container": !0
790
790
  };
791
- return f.value && (b[f.value] = !0), b;
791
+ return f.value && (C[f.value] = !0), C;
792
792
  }), u = V(() => ({})), h = V(() => ({
793
793
  "f-capsule": !0
794
- })), r = d(a), s = d(0), c = d(0), m = V(() => ({
794
+ })), r = d(a), s = d(0), c = d(0), p = V(() => ({
795
795
  left: `${r.value}px`,
796
796
  width: `${s.value}px`,
797
797
  transition: l.value
798
- })), y = V(() => ({
798
+ })), g = V(() => ({
799
799
  width: `${c.value}px`
800
- })), w = /* @__PURE__ */ new Map();
801
- function R(b) {
800
+ })), b = /* @__PURE__ */ new Map();
801
+ function R(C) {
802
802
  var S;
803
- if (w.has(b.value)) {
804
- const j = (S = w.get(b.value)) == null ? void 0 : S.value;
803
+ if (b.has(C.value)) {
804
+ const j = (S = b.get(C.value)) == null ? void 0 : S.value;
805
805
  if (j) {
806
- const M = j.getBoundingClientRect(), D = o.value.getBoundingClientRect();
807
- r.value = M.left - D.left + a + o.value.scrollLeft, s.value = M.width - 2 * a;
806
+ const F = j.getBoundingClientRect(), D = o.value.getBoundingClientRect();
807
+ r.value = F.left - D.left + a + o.value.scrollLeft, s.value = F.width - 2 * a;
808
808
  }
809
809
  }
810
810
  }
811
- function B(b, S) {
812
- const j = b.value;
813
- i.value = j, t.emit("update:modelValue", j), R(b), S && t.emit("change", j);
811
+ function M(C, S) {
812
+ const j = C.value;
813
+ i.value = j, t.emit("update:modelValue", j), R(C), S && t.emit("change", j);
814
814
  }
815
- function I(b) {
816
- const S = n.value.findIndex((j) => j.value === b);
817
- S > -1 && B(n.value[S], !1);
815
+ function I(C) {
816
+ const S = n.value.findIndex((j) => j.value === C);
817
+ S > -1 && M(n.value[S], !1);
818
818
  }
819
- Z(() => e.modelValue, (b) => {
820
- i.value = b, I(i.value);
819
+ Z(() => e.modelValue, (C) => {
820
+ i.value = C, I(i.value);
821
821
  }), Be(async () => {
822
- I(i.value), await nt(), l.value = "0.1s ease-out all", c.value = Array.from(w.values()).reduce((b, S) => (b += S.value.clientWidth, b), 0);
822
+ I(i.value), await nt(), l.value = "0.1s ease-out all", c.value = Array.from(b.values()).reduce((C, S) => (C += S.value.clientWidth, C), 0);
823
823
  });
824
- function $(b, S) {
825
- B(S, !0);
824
+ function $(C, S) {
825
+ M(S, !0);
826
826
  }
827
- function T(b, S) {
828
- w.set(S, b);
827
+ function T(C, S) {
828
+ b.set(S, C);
829
829
  }
830
- function x(b) {
831
- Array.from(w.keys()).forEach((S) => {
832
- b.find((M) => M.value === S) || w.delete(S);
830
+ function x(C) {
831
+ Array.from(b.keys()).forEach((S) => {
832
+ C.find((F) => F.value === S) || b.delete(S);
833
833
  });
834
834
  }
835
- function C(b, S) {
835
+ function w(C, S) {
836
836
  return v(wa, {
837
- name: b.name,
838
- value: b.value,
839
- isActive: b.value === i.value,
837
+ name: C.name,
838
+ value: C.value,
839
+ isActive: C.value === i.value,
840
840
  index: S,
841
- disabled: b.disabled,
842
- key: b.value,
841
+ disabled: C.disabled,
842
+ key: C.value,
843
843
  onMounted: T,
844
844
  onActive: $
845
845
  }, null);
846
846
  }
847
- return Z(() => e.items, async (b) => {
848
- const S = b.filter((j) => j.show);
849
- x(S), n.value = S, await nt(), I(i.value), c.value = Array.from(w.values()).reduce((j, M) => (j += M.value.clientWidth, j), 0);
847
+ return Z(() => e.items, async (C) => {
848
+ const S = C.filter((j) => j.show);
849
+ x(S), n.value = S, await nt(), I(i.value), c.value = Array.from(b.values()).reduce((j, F) => (j += F.value.clientWidth, j), 0);
850
850
  }), () => v("span", {
851
851
  ref: o,
852
- class: p.value,
852
+ class: m.value,
853
853
  style: u.value
854
854
  }, [v("span", {
855
855
  class: "f-capsule-pane"
856
- }, [n.value.map((b, S) => C(b, S))]), v("small", {
856
+ }, [n.value.map((C, S) => w(C, S))]), v("small", {
857
857
  class: h.value,
858
- style: m.value
858
+ style: p.value
859
859
  }, null), v("div", {
860
860
  class: "f-capsule-board",
861
- style: y.value
861
+ style: g.value
862
862
  }, null)]);
863
863
  }
864
864
  }), Sa = /* @__PURE__ */ new Map([
865
- ["appearance", Vt]
865
+ ["appearance", Vt],
866
+ ["onChange", "onModelValueChanged"]
866
867
  ]), xa = "https://json-schema.org/draft/2020-12/schema", Ta = "https://farris-design.gitee.io/switch.schema.json", Fa = "switch", Ba = "A Farris Component", Ma = "object", ka = {
867
868
  id: {
868
869
  description: "The unique identifier for a switch",
@@ -950,9 +951,9 @@ const wa = /* @__PURE__ */ le({
950
951
  type: "boolean",
951
952
  default: !1
952
953
  },
953
- "onUpdate:modelValue": {
954
+ onChange: {
954
955
  description: "",
955
- type: "object"
956
+ type: "string"
956
957
  }
957
958
  }, Ea = [
958
959
  "type"
@@ -1009,36 +1010,36 @@ const Ia = /* @__PURE__ */ le({
1009
1010
  offLabel: i,
1010
1011
  onBackground: l,
1011
1012
  offBackground: f,
1012
- onColor: p,
1013
+ onColor: m,
1013
1014
  offColor: u,
1014
1015
  readonly: h
1015
- } = In(e), r = d(e.modelValue), s = d(), c = d(""), m = V(() => e.trueValue != null ? r.value === e.trueValue : !!r.value), y = V(() => ({
1016
+ } = In(e), r = d(e.modelValue), s = d(), c = d(""), p = V(() => e.trueValue != null ? r.value === e.trueValue : !!r.value), g = V(() => ({
1016
1017
  switch: !0,
1017
1018
  "f-cmp-switch": !0,
1018
- checked: m.value,
1019
+ checked: p.value,
1019
1020
  disabled: h.value || n.value,
1020
1021
  "switch-large": o.value === "large",
1021
1022
  "switch-medium": o.value === "medium",
1022
1023
  "switch-small": o.value === "small"
1023
- })), w = V(() => m.value ? {
1024
+ })), b = V(() => p.value ? {
1024
1025
  outline: "none",
1025
1026
  background: l.value
1026
1027
  } : {
1027
1028
  outline: "none",
1028
1029
  backgroundColor: f.value
1029
- }), R = V(() => m.value ? {
1030
- background: p.value
1030
+ }), R = V(() => p.value ? {
1031
+ background: m.value
1031
1032
  } : {
1032
1033
  backgroundColor: u.value
1033
- }), B = V(() => (a == null ? void 0 : a.value) || (i == null ? void 0 : i.value));
1034
+ }), M = V(() => (a == null ? void 0 : a.value) || (i == null ? void 0 : i.value));
1034
1035
  function I() {
1035
- !B.value || s.value || nt(() => {
1036
+ !M.value || s.value || nt(() => {
1036
1037
  const T = r.value, x = s.value.querySelector(T ? ".switch-label-checked" : ".switch-label-unchecked");
1037
1038
  x && x.scrollWidth > x.clientWidth ? c.value = T ? a == null ? void 0 : a.value : i == null ? void 0 : i.value : c.value = "";
1038
1039
  });
1039
1040
  }
1040
1041
  function $() {
1041
- h.value || n.value || (r.value = m.value ? e.falseValue : e.trueValue, t.emit("update:modelValue", r.value), I());
1042
+ h.value || n.value || (r.value = p.value ? e.falseValue : e.trueValue, t.emit("update:modelValue", r.value), I());
1042
1043
  }
1043
1044
  return Z(r, (T, x) => {
1044
1045
  T !== x && t.emit("modelValueChanged", T);
@@ -1051,11 +1052,11 @@ const Ia = /* @__PURE__ */ le({
1051
1052
  ref: s,
1052
1053
  tabindex: "0",
1053
1054
  role: "button",
1054
- class: y.value,
1055
- style: w.value,
1055
+ class: g.value,
1056
+ style: b.value,
1056
1057
  onClick: $,
1057
1058
  title: c.value
1058
- }, [B.value && v("span", {
1059
+ }, [M.value && v("span", {
1059
1060
  class: "switch-pane"
1060
1061
  }, [v("span", {
1061
1062
  class: "switch-label-checked"
@@ -1096,12 +1097,12 @@ const Ia = /* @__PURE__ */ le({
1096
1097
  r.active = r.code === h, r.active && (a.value = r.code, i.value = r.name, t.emit("screenNameChanged", i.value), t.emit("currentScreenResolutionChanged", a.value));
1097
1098
  });
1098
1099
  }
1099
- function p() {
1100
+ function m() {
1100
1101
  t.emit("switchInStandardModeChanged", l.value);
1101
1102
  }
1102
1103
  Z(l, () => {
1103
1104
  }), wt(() => {
1104
- o.value.model === "standard" ? l.value = !0 : (l.value = !1, p());
1105
+ o.value.model === "standard" ? l.value = !0 : (l.value = !1, m());
1105
1106
  });
1106
1107
  function u() {
1107
1108
  return v(Ca, {
@@ -1124,7 +1125,7 @@ const Ia = /* @__PURE__ */ le({
1124
1125
  class: "f-layout-editor-show-switch",
1125
1126
  modelValue: l.value,
1126
1127
  "onUpdate:modelValue": (h) => l.value = h,
1127
- onModelValueChanged: p
1128
+ onModelValueChanged: m
1128
1129
  }, null), l.value ? v("div", {
1129
1130
  class: "f-layout-editor-show-switch-label"
1130
1131
  }, [ce("标准模式")]) : v("div", {
@@ -1153,8 +1154,8 @@ const Ia = /* @__PURE__ */ le({
1153
1154
  emits: [],
1154
1155
  setup(e, t) {
1155
1156
  const n = d(e.item), o = d(e.currentScreenResolution), a = V(() => `col-${n.value[`columnIn${o.value}`]}`);
1156
- return Z([() => e.item, () => e.currentScreenResolution], ([i, l], [f, p]) => {
1157
- i !== f && (n.value = i), l !== p && (o.value = l);
1157
+ return Z([() => e.item, () => e.currentScreenResolution], ([i, l], [f, m]) => {
1158
+ i !== f && (n.value = i), l !== m && (o.value = l);
1158
1159
  }), () => v("div", {
1159
1160
  class: a.value
1160
1161
  }, [v("div", {
@@ -1170,26 +1171,26 @@ const Ia = /* @__PURE__ */ le({
1170
1171
  emits: ["update:twoDimensionalArray"],
1171
1172
  setup(e, t) {
1172
1173
  const n = d(e.currentScreenResolution), o = d(e.switchInStandardMode), a = d(e.currentArea), i = d(e.twoDimensionalArray), l = d([]);
1173
- Z([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([r, s, c], [m, y, w]) => {
1174
- r !== m && (a.value = r), s !== y && (o.value = s), c !== w && (n.value = c);
1174
+ Z([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([r, s, c], [p, g, b]) => {
1175
+ r !== p && (a.value = r), s !== g && (o.value = s), c !== b && (n.value = c);
1175
1176
  });
1176
1177
  function f(r, s) {
1177
1178
  const c = [];
1178
- let m = [];
1179
- return r.forEach((y) => {
1180
- s !== y.componentRow && (s += 1, c.push(m), m = []), m.push(y);
1181
- }), c.push(m), c;
1179
+ let p = [];
1180
+ return r.forEach((g) => {
1181
+ s !== g.componentRow && (s += 1, c.push(p), p = []), p.push(g);
1182
+ }), c.push(p), c;
1182
1183
  }
1183
- function p() {
1184
+ function m() {
1184
1185
  const r = [];
1185
1186
  let s = 1;
1186
1187
  return l.value.forEach((c) => {
1187
- const m = f(c, s);
1188
- s += m.length, r.push(m);
1188
+ const p = f(c, s);
1189
+ s += p.length, r.push(p);
1189
1190
  }), r;
1190
1191
  }
1191
1192
  function u() {
1192
- l.value = Te(i.value), l.value = p();
1193
+ l.value = Te(i.value), l.value = m();
1193
1194
  }
1194
1195
  Z(() => e.twoDimensionalArray, () => {
1195
1196
  i.value = e.twoDimensionalArray, u();
@@ -1220,11 +1221,11 @@ const Ia = /* @__PURE__ */ le({
1220
1221
  class: "f-layout-editor-preview-row-group"
1221
1222
  }, [l.value.map((r) => {
1222
1223
  var s, c;
1223
- return ((s = r[0][0]) == null ? void 0 : s.group.toString()) === ((c = a.value[0]) == null ? void 0 : c.id) && r.map((m) => v("div", {
1224
+ return ((s = r[0][0]) == null ? void 0 : s.group.toString()) === ((c = a.value[0]) == null ? void 0 : c.id) && r.map((p) => v("div", {
1224
1225
  class: "f-layout-editor-row"
1225
- }, [m.map((y) => v(Aa, {
1226
- item: y,
1227
- "onUpdate:item": (w) => y = w,
1226
+ }, [p.map((g) => v(Aa, {
1227
+ item: g,
1228
+ "onUpdate:item": (b) => g = b,
1228
1229
  currentScreenResolution: n.value,
1229
1230
  switchInStandardMode: o.value
1230
1231
  }, null))]));
@@ -1252,8 +1253,8 @@ function Va(e, t) {
1252
1253
  const n = d(-1), o = d(!1);
1253
1254
  function a(r) {
1254
1255
  if (r.target.offsetParent) {
1255
- const s = r.target.offsetParent, c = s.offsetWidth - r.target.offsetWidth / 2 - 4, m = s.offsetHeight / 2;
1256
- r.dataTransfer && r.dataTransfer.setDragImage(s, c, m);
1256
+ const s = r.target.offsetParent, c = s.offsetWidth - r.target.offsetWidth / 2 - 4, p = s.offsetHeight / 2;
1257
+ r.dataTransfer && r.dataTransfer.setDragImage(s, c, p);
1257
1258
  }
1258
1259
  }
1259
1260
  function i(r) {
@@ -1270,11 +1271,11 @@ function Va(e, t) {
1270
1271
  function f(r) {
1271
1272
  const s = e.value.findIndex((c) => c.label === r.label);
1272
1273
  if (n.value !== s) {
1273
- const c = e.value[n.value], m = e.value;
1274
- m.splice(n.value, 1), m.splice(s, 0, c), n.value = s, t && t();
1274
+ const c = e.value[n.value], p = e.value;
1275
+ p.splice(n.value, 1), p.splice(s, 0, c), n.value = s, t && t();
1275
1276
  }
1276
1277
  }
1277
- function p(r, s) {
1278
+ function m(r, s) {
1278
1279
  r.preventDefault(), f(s);
1279
1280
  }
1280
1281
  function u(r) {
@@ -1285,7 +1286,7 @@ function Va(e, t) {
1285
1286
  }
1286
1287
  return {
1287
1288
  dragstart: l,
1288
- dragenter: p,
1289
+ dragenter: m,
1289
1290
  dragover: u,
1290
1291
  dragend: h,
1291
1292
  isDragging: o
@@ -1473,9 +1474,9 @@ const Ha = /* @__PURE__ */ new Map([
1473
1474
  type: "boolean",
1474
1475
  default: !1
1475
1476
  },
1476
- "onUpdate:modelValue": {
1477
+ onChange: {
1477
1478
  description: "",
1478
- type: "object"
1479
+ type: "string"
1479
1480
  }
1480
1481
  }, Xa = [
1481
1482
  "type"
@@ -1696,7 +1697,7 @@ const Za = {
1696
1697
  props: Za,
1697
1698
  emits: ["selectionChange"],
1698
1699
  setup(e, t) {
1699
- const n = d(), o = d(e.dataSource), a = d([]), i = d(e.separator), l = d(e.width), f = d(e.maxHeight), p = d(String(e.selectedValues).split(i.value)), u = V(() => e.multiSelect), h = V(() => ({
1700
+ const n = d(), o = d(e.dataSource), a = d([]), i = d(e.separator), l = d(e.width), f = d(e.maxHeight), m = d(String(e.selectedValues).split(i.value)), u = V(() => e.multiSelect), h = V(() => ({
1700
1701
  enableSelectRow: !0,
1701
1702
  multiSelect: e.multiSelect,
1702
1703
  multiSelectMode: "OnCheckAndClick",
@@ -1708,43 +1709,43 @@ const Za = {
1708
1709
  o.value = e.dataSource;
1709
1710
  }), V(() => e.enableSearch ? "SearchBar" : "ContentHeader");
1710
1711
  const r = V(() => {
1711
- const w = {};
1712
- return l.value !== void 0 && (w.width = `${l.value}px`), f.value !== void 0 && f.value > 0 && (w.maxHeight = `${f.value}px`), w;
1712
+ const b = {};
1713
+ return l.value !== void 0 && (b.width = `${l.value}px`), f.value !== void 0 && f.value > 0 && (b.maxHeight = `${f.value}px`), b;
1713
1714
  });
1714
- function s(w) {
1715
- n.value.search(w);
1715
+ function s(b) {
1716
+ n.value.search(b);
1716
1717
  }
1717
- function c(w) {
1718
- a.value = w.map((R) => Object.assign({}, R)), p.value = w.map((R) => R[e.idField]), t.emit("selectionChange", a.value);
1718
+ function c(b) {
1719
+ a.value = b.map((R) => Object.assign({}, R)), m.value = b.map((R) => R[e.idField]), t.emit("selectionChange", a.value);
1719
1720
  }
1720
- function m(w) {
1721
+ function p(b) {
1721
1722
  if (e.enableHighlightSearch)
1722
1723
  return;
1723
1724
  let R = [];
1724
1725
  const {
1725
- searchOption: B
1726
+ searchOption: M
1726
1727
  } = e;
1727
- typeof B == "function" ? R = o.value.filter((I) => B(w, I)) : R = o.value.filter((I) => I[e.valueField].indexOf(w) > -1 || I[e.textField].indexOf(w) > -1), n.value.updateDataSource(R);
1728
+ typeof M == "function" ? R = o.value.filter((I) => M(b, I)) : R = o.value.filter((I) => I[e.valueField].indexOf(b) > -1 || I[e.textField].indexOf(b) > -1), n.value.updateDataSource(R);
1728
1729
  }
1729
- Z([() => e.selectedValues], ([w]) => {
1730
- e.multiSelect ? p.value = w.split(i.value) : p.value = [w];
1730
+ Z([() => e.selectedValues], ([b]) => {
1731
+ e.multiSelect ? m.value = b.split(i.value) : m.value = [b];
1731
1732
  });
1732
- function y(w) {
1733
- n.value.activeRowById(w);
1733
+ function g(b) {
1734
+ n.value.activeRowById(b);
1734
1735
  }
1735
1736
  return Be(() => {
1736
- var w, R;
1737
+ var b, R;
1737
1738
  if (!e.multiSelect) {
1738
- const B = (w = p.value) == null ? void 0 : w[0];
1739
- let I = B;
1740
- if (!$e(B)) {
1741
- const $ = typeof B, T = typeof ((R = o.value[0]) == null ? void 0 : R[e.valueField || e.idField]);
1742
- T === "number" && $ !== T && (I = Number(B)), T === "boolean" && $ !== T && (I = B === "true" ? !0 : B === "false" ? !1 : B), y(I);
1739
+ const M = (b = m.value) == null ? void 0 : b[0];
1740
+ let I = M;
1741
+ if (!$e(M)) {
1742
+ const $ = typeof M, T = typeof ((R = o.value[0]) == null ? void 0 : R[e.valueField || e.idField]);
1743
+ T === "number" && $ !== T && (I = Number(M)), T === "boolean" && $ !== T && (I = M === "true" ? !0 : M === "false" ? !1 : M), g(I);
1743
1744
  }
1744
1745
  }
1745
1746
  }), t.expose({
1746
1747
  search: s,
1747
- activeRowById: y
1748
+ activeRowById: g
1748
1749
  }), () => v("div", {
1749
1750
  class: "f-combo-list-container",
1750
1751
  style: r.value
@@ -1762,29 +1763,29 @@ const Za = {
1762
1763
  multiSelect: e.multiSelect,
1763
1764
  selection: h.value,
1764
1765
  enableHighlightSearch: e.enableHighlightSearch,
1765
- selectionValues: p.value,
1766
+ selectionValues: m.value,
1766
1767
  onSelectionUpdate: c,
1767
- onAfterSearch: m
1768
+ onAfterSearch: p
1768
1769
  }, null)]);
1769
1770
  }
1770
1771
  });
1771
1772
  function ei(e) {
1772
1773
  const { t } = ft(), n = d(""), o = d(e.modelValue), a = d(e.data || []), i = d(e.editable);
1773
1774
  function l(s) {
1774
- const c = e.multiSelect ? String(s).split(e.separator) : [String(s)], m = c.map((R) => [R, !0]), y = new Map(m);
1775
- return a.value.filter((R) => y.has(String(R[e.valueField]))).sort((R, B) => {
1776
- const I = c.indexOf(R[e.valueField]), $ = c.indexOf(B[e.valueField]);
1775
+ const c = e.multiSelect ? String(s).split(e.separator) : [String(s)], p = c.map((R) => [R, !0]), g = new Map(p);
1776
+ return a.value.filter((R) => g.has(String(R[e.valueField]))).sort((R, M) => {
1777
+ const I = c.indexOf(R[e.valueField]), $ = c.indexOf(M[e.valueField]);
1777
1778
  return I - $;
1778
1779
  });
1779
1780
  }
1780
1781
  function f(s) {
1781
- const c = l(s).map((m) => m[e.textField]).join(e.separator);
1782
+ const c = l(s).map((p) => p[e.textField]).join(e.separator);
1782
1783
  n.value = i.value ? c || s : c;
1783
1784
  }
1784
- function p(s) {
1785
+ function m(s) {
1785
1786
  if (e.multiSelect) {
1786
- const c = s.split(e.separator).map((y) => [y, !0]), m = new Map(c);
1787
- return a.value.filter((y) => m.has(y[e.textField]));
1787
+ const c = s.split(e.separator).map((g) => [g, !0]), p = new Map(c);
1788
+ return a.value.filter((g) => p.has(g[e.textField]));
1788
1789
  }
1789
1790
  return a.value.filter((c) => "" + c[e.textField] === s);
1790
1791
  }
@@ -1793,34 +1794,34 @@ function ei(e) {
1793
1794
  return c[e.idField] = s, c[e.textField] = s, [c];
1794
1795
  }
1795
1796
  function h(s) {
1796
- let c = p(s);
1797
- const m = c && c.length > 0;
1798
- return i.value && !m && (c = u(s)), c;
1797
+ let c = m(s);
1798
+ const p = c && c.length > 0;
1799
+ return i.value && !p && (c = u(s)), c;
1799
1800
  }
1800
1801
  function r() {
1801
- const { url: s, method: c = "GET", headers: m = { "Content-Type": "application/json;charset=utf-8;" }, body: y = null } = e.remote, w = c.toLowerCase() === "get" ? { method: c, headers: m } : { method: c, headers: m, body: y };
1802
+ const { url: s, method: c = "GET", headers: p = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, b = c.toLowerCase() === "get" ? { method: c, headers: p } : { method: c, headers: p, body: g };
1802
1803
  let R = !1;
1803
- fetch(new Request(s, w)).then((B) => {
1804
+ fetch(new Request(s, b)).then((M) => {
1804
1805
  var $, T;
1805
- if (B.status === 200)
1806
- return R = !!((T = ($ = B.headers) == null ? void 0 : $.get("content-type")) != null && T.includes("application/json")), R ? B.text() : B.json();
1807
- throw B.status === 405 ? new Error(t("comboList.remoteError")) : new Error(B.statusText);
1808
- }).then((B) => {
1809
- B.length && (a.value = R ? JSON.parse(B) : B);
1810
- }).catch((B) => {
1811
- console.warn(B);
1806
+ if (M.status === 200)
1807
+ return R = !!((T = ($ = M.headers) == null ? void 0 : $.get("content-type")) != null && T.includes("application/json")), R ? M.text() : M.json();
1808
+ throw M.status === 405 ? new Error(t("comboList.remoteError")) : new Error(M.statusText);
1809
+ }).then((M) => {
1810
+ M.length && (a.value = R ? JSON.parse(M) : M);
1811
+ }).catch((M) => {
1812
+ console.warn(M);
1812
1813
  });
1813
1814
  }
1814
1815
  return e.remote && r(), Z(() => e.data, () => {
1815
1816
  a.value = e.data;
1816
1817
  }), Z([a], ([s]) => {
1817
1818
  if (e.modelValue != null) {
1818
- const c = s.find((m) => m[e.valueField] === e.modelValue);
1819
+ const c = s.find((p) => p[e.valueField] === e.modelValue);
1819
1820
  c && (n.value = c[e.textField]);
1820
1821
  }
1821
1822
  }), Z(() => e.modelValue, (s) => {
1822
1823
  o.value = s, f(s);
1823
- }), f(e.modelValue), { dataSource: a, displayText: n, editable: i, modelValue: o, getItemsByDisplayText: p, getItemsByValue: l, getSelectedItemsByDisplayText: h };
1824
+ }), f(e.modelValue), { dataSource: a, displayText: n, editable: i, modelValue: o, getItemsByDisplayText: m, getItemsByValue: l, getSelectedItemsByDisplayText: h };
1824
1825
  }
1825
1826
  const ti = /* @__PURE__ */ le({
1826
1827
  name: "FComboList",
@@ -1829,54 +1830,56 @@ const ti = /* @__PURE__ */ le({
1829
1830
  setup(e, t) {
1830
1831
  const {
1831
1832
  t: n
1832
- } = ft(), o = d(), a = d(), i = d(e.disabled || e.readonly), l = d(e.enableClear), f = d(e.enableSearch), p = d(e.readonly), {
1833
+ } = ft(), o = d(), a = d(), i = d(e.disabled || e.readonly), l = d(e.enableClear), f = d(e.enableSearch), m = d(e.readonly), {
1833
1834
  dataSource: u,
1834
1835
  displayText: h,
1835
1836
  editable: r,
1836
1837
  modelValue: s,
1837
1838
  getSelectedItemsByDisplayText: c,
1838
- getItemsByDisplayText: m,
1839
- getItemsByValue: y
1840
- } = ei(e), w = d(e.dropDownIcon);
1841
- w.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (w.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
1842
- const R = V(() => e.multiSelect), B = V(() => a.value ? a.value.elementRef.getBoundingClientRect().width : 0);
1839
+ getItemsByDisplayText: p,
1840
+ getItemsByValue: g
1841
+ } = ei(e), b = d(e.dropDownIcon);
1842
+ b.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (b.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
1843
+ const R = V(() => e.multiSelect), M = V(() => a.value ? a.value.elementRef.getBoundingClientRect().width : 0);
1843
1844
  function I() {
1844
1845
  !R.value && a.value && a.value.hidePopup();
1845
1846
  }
1846
1847
  function $(O) {
1847
- h.value = O.map((F) => F[e.textField]).join(e.separator);
1848
- let g = "";
1849
- O.length === 1 ? g = O[0][e.valueField] : g = O.map((F) => F[e.valueField]).join(e.separator), s.value !== g && (s.value = g, t.emit("update:modelValue", s.value), t.emit("change", O, s.value));
1848
+ h.value = O.map((B) => B[e.textField]).join(e.separator);
1849
+ let y = "";
1850
+ O.length === 1 ? y = O[0][e.valueField] : y = O.map((B) => B[e.valueField]).join(e.separator), s.value !== y && (s.value = y, t.emit("update:modelValue", s.value), t.emit("change", O, s.value));
1850
1851
  }
1851
1852
  function T() {
1852
- const O = y(s.value);
1853
+ const O = g(s.value);
1853
1854
  $(O);
1854
1855
  }
1855
1856
  function x() {
1856
- p.value || h.value;
1857
+ m.value || h.value;
1857
1858
  }
1858
- function C(O) {
1859
- var g;
1860
- s.value = "", (g = o.value) == null || g.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
1859
+ function w(O) {
1860
+ var y;
1861
+ s.value = "", (y = o.value) == null || y.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
1861
1862
  }
1862
- function b(O) {
1863
- var g, F;
1864
- e.enableSearch && e.enableHighlightSearch && ((g = o.value) == null || g.search(O)), (F = o.value) == null || F.activeRowById(O), t.emit("change", [s.value], s.value);
1863
+ function C(O) {
1864
+ var y, B;
1865
+ e.enableSearch && e.enableHighlightSearch && ((y = o.value) == null || y.search(O)), (B = o.value) == null || B.activeRowById(O), t.emit("change", [s.value], s.value);
1865
1866
  }
1866
1867
  function S(O) {
1867
1868
  if (e.multiSelect) {
1868
- const g = y(s.value), P = g.map((J) => J[e.idField || e.valueField]).join(e.separator);
1869
- s.value !== P && (s.value = P, t.emit("update:modelValue", s.value), t.emit("change", g, s.value));
1869
+ const y = p(O);
1870
+ e.viewType;
1871
+ const P = y.map((J) => J[e.idField || e.valueField]).join(e.separator);
1872
+ s.value !== P && (s.value = P, t.emit("update:modelValue", s.value), t.emit("change", y, s.value));
1870
1873
  }
1871
1874
  }
1872
1875
  function j() {
1873
1876
  return h.value;
1874
1877
  }
1875
- function M(O) {
1878
+ function F(O) {
1876
1879
  const {
1877
- value: g
1880
+ value: y
1878
1881
  } = O.target;
1879
- b(g), t.emit("input", g);
1882
+ C(y), t.emit("input", y);
1880
1883
  }
1881
1884
  function D() {
1882
1885
  a.value.hidePopup();
@@ -1884,16 +1887,16 @@ const ti = /* @__PURE__ */ le({
1884
1887
  return t.expose({
1885
1888
  getDisplayText: j,
1886
1889
  hidePopup: D
1887
- }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([O, g, F, P, J]) => {
1888
- i.value = O, r.value = g, l.value = F, f.value = P, p.value = J;
1890
+ }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([O, y, B, P, J]) => {
1891
+ i.value = O, r.value = y, l.value = B, f.value = P, m.value = J;
1889
1892
  }), () => v(Vn, {
1890
1893
  ref: a,
1891
1894
  id: e.id,
1892
1895
  disable: i.value,
1893
- readonly: p.value,
1896
+ readonly: m.value,
1894
1897
  forcePlaceholder: e.forcePlaceholder,
1895
1898
  editable: r.value,
1896
- buttonContent: w.value,
1899
+ buttonContent: b.value,
1897
1900
  placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
1898
1901
  enableClear: l.value,
1899
1902
  maxLength: e.maxLength,
@@ -1905,11 +1908,11 @@ const ti = /* @__PURE__ */ le({
1905
1908
  "onUpdate:modelValue": (O) => h.value = O,
1906
1909
  focusOnCreated: e.focusOnCreated,
1907
1910
  selectOnCreated: e.selectOnCreated,
1908
- onClear: C,
1911
+ onClear: w,
1909
1912
  onClick: x,
1910
1913
  onChange: S,
1911
1914
  onBlur: T,
1912
- onInput: M,
1915
+ onInput: F,
1913
1916
  beforeOpen: e.beforeOpen,
1914
1917
  placement: e.placement,
1915
1918
  popupMinWidth: e.minPanelWidth,
@@ -1930,7 +1933,7 @@ const ti = /* @__PURE__ */ le({
1930
1933
  enableSearch: f.value,
1931
1934
  maxHeight: e.maxHeight,
1932
1935
  enableHighlightSearch: e.enableHighlightSearch,
1933
- width: e.fitEditor ? B.value : void 0,
1936
+ width: e.fitEditor ? M.value : void 0,
1934
1937
  onSelectionChange: (O) => {
1935
1938
  $(O), I();
1936
1939
  }
@@ -2048,7 +2051,7 @@ const ii = "https://json-schema.org/draft/2020-12/schema", li = "https://farris-
2048
2051
  }
2049
2052
  }
2050
2053
  }
2051
- }, yi = {
2054
+ }, gi = {
2052
2055
  title: pi,
2053
2056
  description: mi,
2054
2057
  type: vi,
@@ -2068,8 +2071,8 @@ const ii = "https://json-schema.org/draft/2020-12/schema", li = "https://farris-
2068
2071
  onSelectedValueChanged: { type: Function, default: () => {
2069
2072
  } }
2070
2073
  };
2071
- je(hn, fi, oi, ai, yi);
2072
- const gi = /* @__PURE__ */ le({
2074
+ je(hn, fi, oi, ai, gi);
2075
+ const yi = /* @__PURE__ */ le({
2073
2076
  name: "FRadioButton",
2074
2077
  props: hn,
2075
2078
  emits: ["selectedValueChanged"],
@@ -2079,8 +2082,8 @@ const gi = /* @__PURE__ */ le({
2079
2082
  if (i.currentTarget.classList.value = "btn btn-secondary active", i.currentTarget.tagName.toLowerCase() === "label") {
2080
2083
  const {
2081
2084
  currentTarget: f
2082
- } = i, p = f.parentElement;
2083
- Array.from(p.querySelectorAll("label")).filter((h) => h !== f).forEach((h) => h.classList.remove("active"));
2085
+ } = i, m = f.parentElement;
2086
+ Array.from(m.querySelectorAll("label")).filter((h) => h !== f).forEach((h) => h.classList.remove("active"));
2084
2087
  }
2085
2088
  t.emit("selectedValueChanged", l);
2086
2089
  }
@@ -2211,7 +2214,7 @@ const Ci = "https://json-schema.org/draft/2020-12/schema", Si = "https://farris-
2211
2214
  description: Oi,
2212
2215
  type: Di,
2213
2216
  categories: Ii
2214
- }, ji = ["很不满意", "不满意", "一般", "满意", "非常满意"], yn = {
2217
+ }, ji = ["很不满意", "不满意", "一般", "满意", "非常满意"], gn = {
2215
2218
  /** 星星大小 */
2216
2219
  size: { type: String, default: "large" },
2217
2220
  /** 启用半颗星模式 */
@@ -2243,87 +2246,87 @@ const Ci = "https://json-schema.org/draft/2020-12/schema", Si = "https://farris-
2243
2246
  */
2244
2247
  modelValue: { type: Number, default: 0 }
2245
2248
  };
2246
- je(yn, Ei, bi, wi, $i);
2249
+ je(gn, Ei, bi, wi, $i);
2247
2250
  const Ni = /* @__PURE__ */ le({
2248
2251
  name: "FRate",
2249
- props: yn,
2252
+ props: gn,
2250
2253
  emits: ["selectedValue", "update:modelValue"],
2251
2254
  setup(e, t) {
2252
- const n = d(e.size), o = d(e.enableHalf), a = d(e.enableClear), i = d(e.disabled), l = d(e.pointSystem), f = d(e.lightColor), p = d(e.darkColor), u = d(e.iconClass), h = d(e.numOfStar), r = d(e.toolTipDisabled), s = d(e.toolTipContents), c = d(e.enableScore), m = d(e.enableSatisfaction);
2253
- let y;
2254
- const w = d(0), R = d(0), B = d(0), I = d(e.modelValue);
2255
- let $ = 1, T, x, C;
2256
- const b = 4;
2255
+ const n = d(e.size), o = d(e.enableHalf), a = d(e.enableClear), i = d(e.disabled), l = d(e.pointSystem), f = d(e.lightColor), m = d(e.darkColor), u = d(e.iconClass), h = d(e.numOfStar), r = d(e.toolTipDisabled), s = d(e.toolTipContents), c = d(e.enableScore), p = d(e.enableSatisfaction);
2256
+ let g;
2257
+ const b = d(0), R = d(0), M = d(0), I = d(e.modelValue);
2258
+ let $ = 1, T, x, w;
2259
+ const C = 4;
2257
2260
  function S() {
2258
2261
  const E = h.value;
2259
- C = [];
2262
+ w = [];
2260
2263
  for (let q = 1; q <= E; q++)
2261
- C.push({
2264
+ w.push({
2262
2265
  id: q
2263
2266
  });
2264
2267
  }
2265
2268
  function j() {
2266
2269
  let E;
2267
- o.value ? E = Math.ceil(I.value / $) : E = I.value, R.value = (y * I.value + Math.floor(I.value) * b) / $, T = s.value[E - 1];
2270
+ o.value ? E = Math.ceil(I.value / $) : E = I.value, R.value = (g * I.value + Math.floor(I.value) * C) / $, T = s.value[E - 1];
2268
2271
  }
2269
- function M() {
2272
+ function F() {
2270
2273
  switch (n.value) {
2271
2274
  case "small":
2272
- y = 14;
2275
+ g = 14;
2273
2276
  break;
2274
2277
  case "middle":
2275
- y = 16;
2278
+ g = 16;
2276
2279
  break;
2277
2280
  case "large":
2278
- y = 18;
2281
+ g = 18;
2279
2282
  break;
2280
2283
  case "extraLarge":
2281
- y = 24;
2284
+ g = 24;
2282
2285
  break;
2283
2286
  }
2284
2287
  S(), h.value && ($ = l.value / h.value), I.value && j();
2285
2288
  }
2286
- M();
2289
+ F();
2287
2290
  function D(E) {
2288
2291
  return E.className.indexOf("f-icon") !== -1;
2289
2292
  }
2290
2293
  function O() {
2291
- return I.value === B.value && a.value && R.value !== 0 ? (R.value = 0, I.value = 0, x = null, w.value = 0, B.value = 0, t.emit("selectedValue", I.value), t.emit("update:modelValue", I.value), !0) : !1;
2294
+ return I.value === M.value && a.value && R.value !== 0 ? (R.value = 0, I.value = 0, x = null, b.value = 0, M.value = 0, t.emit("selectedValue", I.value), t.emit("update:modelValue", I.value), !0) : !1;
2292
2295
  }
2293
- function g(E, q, z) {
2294
- if (!i.value && ((E.movementX || E.movementY) && (m.value && (T = s.value[q - 1]), E.offsetX < y / 2 && o.value === !0 ? (w.value = y * q - y / 2 + b * (q - 1), B.value = $ * q - $ / 2) : (w.value = y * q + b * (q - 1), B.value = $ * q)), z === !0)) {
2296
+ function y(E, q, z) {
2297
+ if (!i.value && ((E.movementX || E.movementY) && (p.value && (T = s.value[q - 1]), E.offsetX < g / 2 && o.value === !0 ? (b.value = g * q - g / 2 + C * (q - 1), M.value = $ * q - $ / 2) : (b.value = g * q + C * (q - 1), M.value = $ * q)), z === !0)) {
2295
2298
  if (O())
2296
2299
  return;
2297
- I.value = B.value, R.value = w.value, x = T, t.emit("update:modelValue", I.value), t.emit("selectedValue", I.value);
2300
+ I.value = M.value, R.value = b.value, x = T, t.emit("update:modelValue", I.value), t.emit("selectedValue", I.value);
2298
2301
  }
2299
2302
  }
2300
- function F(E, q) {
2303
+ function B(E, q) {
2301
2304
  var z;
2302
2305
  if (D(E.target) && E.target) {
2303
2306
  const ee = parseInt((z = E.target) == null ? void 0 : z.id);
2304
- g(E, ee, q);
2307
+ y(E, ee, q);
2305
2308
  }
2306
2309
  }
2307
- const P = V(() => B.value ? B.value + "分" : I.value + "分"), J = V(() => ({
2308
- width: (w.value || R.value) + "px"
2310
+ const P = V(() => M.value ? M.value + "分" : I.value + "分"), J = V(() => ({
2311
+ width: (b.value || R.value) + "px"
2309
2312
  }));
2310
2313
  function A() {
2311
- w.value = 0, B.value = I.value;
2314
+ b.value = 0, M.value = I.value;
2312
2315
  }
2313
2316
  return Z(() => e.modelValue, (E) => {
2314
- B.value = E, I.value = E, j();
2317
+ M.value = E, I.value = E, j();
2315
2318
  }), Z(() => [e.disabled, e.enableClear], ([E, q]) => {
2316
2319
  i.value = E, a.value = q;
2317
2320
  }), () => v("div", {
2318
2321
  class: "farris-star-rating",
2319
- onMouseover: vt((E) => F(E, !1), ["prevent"]),
2320
- onMousemove: vt((E) => F(E, !1), ["prevent"]),
2322
+ onMouseover: vt((E) => B(E, !1), ["prevent"]),
2323
+ onMousemove: vt((E) => B(E, !1), ["prevent"]),
2321
2324
  onMouseleave: vt((E) => A(), ["prevent"]),
2322
- onClick: vt((E) => F(E, !0), ["prevent"])
2325
+ onClick: vt((E) => B(E, !0), ["prevent"])
2323
2326
  }, [v("div", {
2324
2327
  class: "star-light-area",
2325
2328
  style: J.value
2326
- }, [C.map((E) => v("span", {
2329
+ }, [w.map((E) => v("span", {
2327
2330
  class: ["f-icon default-light-color ", u.value, {
2328
2331
  "f-star-sm": n.value === "small"
2329
2332
  }, {
@@ -2347,7 +2350,7 @@ const Ni = /* @__PURE__ */ le({
2347
2350
  }, {
2348
2351
  large: n.value === "large"
2349
2352
  }]
2350
- }, [C.map((E) => v("span", {
2353
+ }, [w.map((E) => v("span", {
2351
2354
  class: ["f-icon default-dark-color", u.value, {
2352
2355
  "f-star-sm": n.value === "small"
2353
2356
  }, {
@@ -2359,7 +2362,7 @@ const Ni = /* @__PURE__ */ le({
2359
2362
  }],
2360
2363
  id: E.id,
2361
2364
  style: {
2362
- color: p.value
2365
+ color: m.value
2363
2366
  }
2364
2367
  }, null))]), v("div", {
2365
2368
  class: ["f-utils-fill", {
@@ -2371,7 +2374,7 @@ const Ni = /* @__PURE__ */ le({
2371
2374
  }, {
2372
2375
  "font-exlarge": n.value === "extraLarge"
2373
2376
  }]
2374
- }, [c.value && v("span", null, [ce(" "), P.value, ce(" ")]), m.value && (x || T) && v("span", null, [ce(" "), T || x])])]);
2377
+ }, [c.value && v("span", null, [ce(" "), P.value, ce(" ")]), p.value && (x || T) && v("span", null, [ce(" "), T || x])])]);
2375
2378
  }
2376
2379
  }), Ai = /* @__PURE__ */ le({
2377
2380
  name: "FColumnWidthEditor",
@@ -2383,24 +2386,24 @@ const Ni = /* @__PURE__ */ le({
2383
2386
  MD: ["1", "2"],
2384
2387
  LG: ["1", "2", "3", "4"],
2385
2388
  EL: ["1", "2", "3", "4", "5", "6"]
2386
- }, o = d(e.currentScreenResolution), a = d(e.field), i = d(e.switchInStandardMode), l = d(), f = d(""), p = d(), u = d("customize"), h = d(), r = en("ResponseLayoutEditorDraggableComposition"), {
2389
+ }, o = d(e.currentScreenResolution), a = d(e.field), i = d(e.switchInStandardMode), l = d(), f = d(""), m = d(), u = d("customize"), h = d(), r = en("ResponseLayoutEditorDraggableComposition"), {
2387
2390
  dragstart: s,
2388
2391
  dragenter: c,
2389
- dragover: m,
2390
- dragend: y
2392
+ dragover: p,
2393
+ dragend: g
2391
2394
  } = r;
2392
- function w() {
2395
+ function b() {
2393
2396
  l.value = n == null ? void 0 : n[o.value], i.value ? (f.value = `displayWidthIn${o.value}`, u.value = `${a.value[f.value]}`) : (f.value = `columnIn${o.value}`, h.value = a.value[f.value]);
2394
2397
  }
2395
2398
  function R(S) {
2396
2399
  if (i.value === !0) {
2397
2400
  const j = Number(S == null ? void 0 : S.text);
2398
- p.value = j;
2399
- const M = a.value[`columnIn${o.value}`] / a.value[`displayWidthIn${o.value}`];
2400
- a.value[`columnIn${o.value}`] = j * M, a.value[`displayWidthIn${o.value}`] = Number(j), t.emit("fieldChanged", a.value);
2401
+ m.value = j;
2402
+ const F = a.value[`columnIn${o.value}`] / a.value[`displayWidthIn${o.value}`];
2403
+ a.value[`columnIn${o.value}`] = j * F, a.value[`displayWidthIn${o.value}`] = Number(j), t.emit("fieldChanged", a.value);
2401
2404
  }
2402
2405
  }
2403
- function B(S) {
2406
+ function M(S) {
2404
2407
  h.value = S;
2405
2408
  const j = a.value[`columnIn${o.value}`] / a.value[`displayWidthIn${o.value}`];
2406
2409
  a.value[`columnIn${o.value}`] = h.value, a.value[`displayWidthIn${o.value}`] = h.value / j, t.emit("fieldChanged", a.value);
@@ -2417,24 +2420,24 @@ const Ni = /* @__PURE__ */ le({
2417
2420
  modelValue: h.value,
2418
2421
  "onUpdate:modelValue": (S) => h.value = S,
2419
2422
  enableScore: !1,
2420
- onSelectedValue: () => B(h.value)
2423
+ onSelectedValue: () => M(h.value)
2421
2424
  }, null);
2422
2425
  }
2423
2426
  function $() {
2424
2427
  const S = [];
2425
2428
  l.value = n == null ? void 0 : n[o.value];
2426
2429
  const j = a.value[`displayWidthIn${o.value}`];
2427
- return l.value.forEach((M) => {
2430
+ return l.value.forEach((F) => {
2428
2431
  const D = {
2429
- text: M,
2430
- active: j.toString() === M
2432
+ text: F,
2433
+ active: j.toString() === F
2431
2434
  };
2432
2435
  S.push(D);
2433
2436
  }), S;
2434
2437
  }
2435
2438
  function T() {
2436
2439
  const S = $();
2437
- return v(gi, {
2440
+ return v(yi, {
2438
2441
  enumData: S,
2439
2442
  suffixValue: "列",
2440
2443
  onSelectedValueChanged: R
@@ -2455,7 +2458,7 @@ const Ni = /* @__PURE__ */ le({
2455
2458
  class: "f-layout-editor-column-width-editor-row-right"
2456
2459
  }, null)]);
2457
2460
  }
2458
- function C() {
2461
+ function w() {
2459
2462
  return i.value ? v("div", {
2460
2463
  class: "f-column-width-editor-switch-standard"
2461
2464
  }, [v("div", {
@@ -2463,8 +2466,8 @@ const Ni = /* @__PURE__ */ le({
2463
2466
  }, [T()])]) : v("div", {
2464
2467
  class: "f-column-width-editor-switch-customize",
2465
2468
  onDragenter: (S) => c(S, a.value),
2466
- onDragend: (S) => y(S, a.value),
2467
- onDragover: (S) => m(S)
2469
+ onDragend: (S) => g(S, a.value),
2470
+ onDragover: (S) => p(S)
2468
2471
  }, [v("div", {
2469
2472
  class: "f-layout-editor-column-width-editor-rectangle"
2470
2473
  }, [I(), v("div", {
@@ -2475,110 +2478,110 @@ const Ni = /* @__PURE__ */ le({
2475
2478
  onDragstart: (S) => s(S, a.value)
2476
2479
  }, null)])]);
2477
2480
  }
2478
- function b() {
2481
+ function C() {
2479
2482
  var S, j;
2480
2483
  return v("div", {
2481
2484
  class: "f-layout-editor-column-width-editor-component"
2482
2485
  }, [v("div", {
2483
2486
  class: "f-layout-editor-column-width-editor-label",
2484
2487
  title: (S = a == null ? void 0 : a.value) == null ? void 0 : S.label
2485
- }, [(j = a == null ? void 0 : a.value) == null ? void 0 : j.label]), C()]);
2488
+ }, [(j = a == null ? void 0 : a.value) == null ? void 0 : j.label]), w()]);
2486
2489
  }
2487
- return Z(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([S, j, M], [D, O, g]) => {
2488
- M !== g && (o.value = M, l.value = n[o.value], w()), j !== O && (i.value = j), i.value === !1 && w(), S !== D && (a.value = S);
2490
+ return Z(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([S, j, F], [D, O, y]) => {
2491
+ F !== y && (o.value = F, l.value = n[o.value], b()), j !== O && (i.value = j), i.value === !1 && b(), S !== D && (a.value = S);
2489
2492
  }), Be(() => {
2490
- w();
2493
+ b();
2491
2494
  }), () => v("div", {
2492
2495
  class: "f-layout-editor-column-width-editor"
2493
- }, [x(), b()]);
2496
+ }, [x(), C()]);
2494
2497
  }
2495
2498
  }), Pi = /* @__PURE__ */ le({
2496
2499
  name: "FFieldList",
2497
2500
  props: La,
2498
2501
  emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
2499
2502
  setup(e, t) {
2500
- const n = d(e.currentScreenResolution), o = d(e.switchInStandardMode), a = d(e.originalData), i = d(e.originalDataCopy), l = d(e.defaultStates), f = d(""), p = d([]), u = d(e.currentArea), h = d(0), r = d(), s = d(0), c = d("1"), m = d([]);
2501
- function y() {
2502
- const g = [];
2503
- return a.value.forEach((F) => {
2504
- g.indexOf(F.group) === -1 && g.push(F.group);
2505
- }), g;
2503
+ const n = d(e.currentScreenResolution), o = d(e.switchInStandardMode), a = d(e.originalData), i = d(e.originalDataCopy), l = d(e.defaultStates), f = d(""), m = d([]), u = d(e.currentArea), h = d(0), r = d(), s = d(0), c = d("1"), p = d([]);
2504
+ function g() {
2505
+ const y = [];
2506
+ return a.value.forEach((B) => {
2507
+ y.indexOf(B.group) === -1 && y.push(B.group);
2508
+ }), y;
2506
2509
  }
2507
- function w() {
2508
- c.value = l.value.defaultGroupNumber.toString(), f.value = `区域${c.value}`, u.value = [p.value[Number(c.value) - 1]], t.emit("update:currentArea", u.value);
2510
+ function b() {
2511
+ c.value = l.value.defaultGroupNumber.toString(), f.value = `区域${c.value}`, u.value = [m.value[Number(c.value) - 1]], t.emit("update:currentArea", u.value);
2509
2512
  }
2510
2513
  function R() {
2511
- var F;
2512
- const g = y();
2513
- for (let P = 0; P < g.length; P++) {
2514
+ var B;
2515
+ const y = g();
2516
+ for (let P = 0; P < y.length; P++) {
2514
2517
  const J = {
2515
- id: (F = g[P]) == null ? void 0 : F.toString(),
2516
- label: "区域" + g[P]
2518
+ id: (B = y[P]) == null ? void 0 : B.toString(),
2519
+ label: "区域" + y[P]
2517
2520
  };
2518
- p.value.push(J);
2521
+ m.value.push(J);
2519
2522
  }
2520
- w();
2523
+ b();
2521
2524
  }
2522
- function B() {
2523
- let g = [];
2525
+ function M() {
2526
+ let y = [];
2524
2527
  r.value = [];
2525
- let F = 1;
2528
+ let B = 1;
2526
2529
  a.value.forEach((P) => {
2527
- P.group === F || (F += 1, r.value.push(g), g = []), g.push(P);
2528
- }), r.value.push(g);
2530
+ P.group === B || (B += 1, r.value.push(y), y = []), y.push(P);
2531
+ }), r.value.push(y);
2529
2532
  }
2530
- function I(g, F) {
2533
+ function I(y, B) {
2531
2534
  let J = 12;
2532
- return h.value = 1 + F, g.forEach((A) => {
2535
+ return h.value = 1 + B, y.forEach((A) => {
2533
2536
  A.showTopBorder = 0;
2534
2537
  const E = A[`columnIn${n.value}`];
2535
2538
  J >= E ? (A.componentRow = h.value, J -= E) : (h.value += 1, A.componentRow = h.value, J = 12 - E, A.showTopBorder = 1);
2536
- }), g[0].showTopBorder = 1, g;
2539
+ }), y[0].showTopBorder = 1, y;
2537
2540
  }
2538
- function $(g) {
2539
- let F = [];
2540
- for (const P of g)
2541
- F = F.concat(P);
2542
- a.value = Te(F), s.value = 0;
2541
+ function $(y) {
2542
+ let B = [];
2543
+ for (const P of y)
2544
+ B = B.concat(P);
2545
+ a.value = Te(B), s.value = 0;
2543
2546
  }
2544
2547
  function T() {
2545
- r.value[u.value[0].id - 1] = Te(m.value);
2546
- const g = [];
2547
- s.value = 0, r.value.forEach((F) => {
2548
- const P = I(F, s.value);
2549
- g.push(P), s.value = P[P.length - 1].componentRow;
2550
- }), $(g);
2548
+ r.value[u.value[0].id - 1] = Te(p.value);
2549
+ const y = [];
2550
+ s.value = 0, r.value.forEach((B) => {
2551
+ const P = I(B, s.value);
2552
+ y.push(P), s.value = P[P.length - 1].componentRow;
2553
+ }), $(y);
2551
2554
  }
2552
2555
  function x() {
2553
- B();
2554
- const g = [];
2555
- return s.value = 0, r.value.forEach((F) => {
2556
- const P = I(F, s.value);
2557
- g.push(P), s.value = P[P.length - 1].componentRow;
2558
- }), t.emit("twoDimensionalArrayChanged", r.value), $(g), a.value;
2556
+ M();
2557
+ const y = [];
2558
+ return s.value = 0, r.value.forEach((B) => {
2559
+ const P = I(B, s.value);
2560
+ y.push(P), s.value = P[P.length - 1].componentRow;
2561
+ }), t.emit("twoDimensionalArrayChanged", r.value), $(y), a.value;
2559
2562
  }
2560
- function C() {
2561
- m.value = [], a.value.forEach((g) => {
2562
- g.group === Number(u.value[0].id) && m.value.push(g);
2563
+ function w() {
2564
+ p.value = [], a.value.forEach((y) => {
2565
+ y.group === Number(u.value[0].id) && p.value.push(y);
2563
2566
  });
2564
2567
  }
2565
- function b() {
2568
+ function C() {
2566
2569
  a.value = Te(x()), t.emit("originalDataChanged", a.value);
2567
2570
  }
2568
- function S(g) {
2569
- m.value.forEach((F) => {
2570
- F.id === g.id && Object.assign(F, g);
2571
- }), T(), b(), C();
2571
+ function S(y) {
2572
+ p.value.forEach((B) => {
2573
+ B.id === y.id && Object.assign(B, y);
2574
+ }), T(), C(), w();
2572
2575
  }
2573
- function j(g) {
2574
- for (let F = 0; F < g.length; F++)
2576
+ function j(y) {
2577
+ for (let B = 0; B < y.length; B++)
2575
2578
  u.value = [{
2576
- id: g[F].id,
2577
- label: g[F].label
2579
+ id: y[B].id,
2580
+ label: y[B].label
2578
2581
  }];
2579
- t.emit("update:currentArea", u.value), C(), T();
2582
+ t.emit("update:currentArea", u.value), w(), T();
2580
2583
  }
2581
- function M() {
2584
+ function F() {
2582
2585
  return v("div", {
2583
2586
  class: "f-layout-editor-field-list-top"
2584
2587
  }, [v("div", {
@@ -2587,12 +2590,12 @@ const Ni = /* @__PURE__ */ le({
2587
2590
  class: "f-layout-editor-choose-group"
2588
2591
  }, [v(ti, {
2589
2592
  modelValue: c.value,
2590
- "onUpdate:modelValue": (g) => c.value = g,
2593
+ "onUpdate:modelValue": (y) => c.value = y,
2591
2594
  placeholder: "当前可编辑组",
2592
2595
  enableClear: !1,
2593
2596
  "id-field": "id",
2594
2597
  "text-field": "label",
2595
- data: p.value,
2598
+ data: m.value,
2596
2599
  editable: !1,
2597
2600
  onChange: j
2598
2601
  }, null)])]);
@@ -2600,45 +2603,45 @@ const Ni = /* @__PURE__ */ le({
2600
2603
  function D() {
2601
2604
  return v("div", {
2602
2605
  class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
2603
- }, [m.value.map((g) => v(Ai, {
2604
- key: g.label,
2606
+ }, [p.value.map((y) => v(Ai, {
2607
+ key: y.label,
2605
2608
  currentScreenResolution: n.value,
2606
- field: g,
2607
- "onUpdate:field": (F) => g = F,
2609
+ field: y,
2610
+ "onUpdate:field": (B) => y = B,
2608
2611
  switchInStandardMode: o.value,
2609
- "onUpdate:switchInStandardMode": (F) => o.value = F,
2612
+ "onUpdate:switchInStandardMode": (B) => o.value = B,
2610
2613
  onFieldChanged: S
2611
2614
  }, null))]);
2612
2615
  }
2613
- const O = Va(m, () => {
2614
- T(), b(), C();
2616
+ const O = Va(p, () => {
2617
+ T(), C(), w();
2615
2618
  });
2616
- return $n("ResponseLayoutEditorDraggableComposition", O), Z(() => e.currentArea, (g, F) => {
2617
- g !== F && (u.value = e.currentArea, C());
2618
- }), Z(u, (g, F) => {
2619
- g !== F && C();
2620
- }), Z(() => e.currentGroup, (g, F) => {
2621
- g !== F && (f.value = e.currentGroup);
2622
- }), Z(() => e.currentScreenResolution, (g, F) => {
2623
- g !== F && (n.value = e.currentScreenResolution, b(), B(), u.value[0] && (m.value = Te(r.value[Number(u.value[0].id) - 1])));
2624
- }), Z(() => e.switchInStandardMode, (g, F) => {
2625
- g !== F && (o.value = e.switchInStandardMode, a.value = Te(i.value));
2626
- }), Z(l, (g, F) => {
2627
- g !== F && b();
2619
+ return $n("ResponseLayoutEditorDraggableComposition", O), Z(() => e.currentArea, (y, B) => {
2620
+ y !== B && (u.value = e.currentArea, w());
2621
+ }), Z(u, (y, B) => {
2622
+ y !== B && w();
2623
+ }), Z(() => e.currentGroup, (y, B) => {
2624
+ y !== B && (f.value = e.currentGroup);
2625
+ }), Z(() => e.currentScreenResolution, (y, B) => {
2626
+ y !== B && (n.value = e.currentScreenResolution, C(), M(), u.value[0] && (p.value = Te(r.value[Number(u.value[0].id) - 1])));
2627
+ }), Z(() => e.switchInStandardMode, (y, B) => {
2628
+ y !== B && (o.value = e.switchInStandardMode, a.value = Te(i.value));
2629
+ }), Z(l, (y, B) => {
2630
+ y !== B && C();
2628
2631
  }), wt(() => {
2629
- R(), x(), C();
2632
+ R(), x(), w();
2630
2633
  }), () => v("div", {
2631
2634
  class: "f-layout-editor-field-list f-utils-fill-flex-column"
2632
2635
  }, [o.value ? (
2633
2636
  /* 标准模式 */
2634
2637
  v("div", {
2635
2638
  class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
2636
- }, [M(), D()])
2639
+ }, [F(), D()])
2637
2640
  ) : (
2638
2641
  /* 自定义模式 */
2639
2642
  v("div", {
2640
2643
  class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
2641
- }, [M(), D()])
2644
+ }, [F(), D()])
2642
2645
  )]);
2643
2646
  }
2644
2647
  }), bt = /* @__PURE__ */ le({
@@ -2646,37 +2649,37 @@ const Ni = /* @__PURE__ */ le({
2646
2649
  props: Ro,
2647
2650
  emits: ["close", "submit"],
2648
2651
  setup(e, t) {
2649
- const n = d(e.initialState), o = d(), a = d(), i = d(""), l = d(""), f = d(!0), p = d([{
2652
+ const n = d(e.initialState), o = d(), a = d(), i = d(""), l = d(""), f = d(!0), m = d([{
2650
2653
  id: "1",
2651
2654
  label: "区域1"
2652
2655
  }]), u = d([]), h = d();
2653
- d(e.width), d(e.height), Z(() => e.initialState, (C) => {
2654
- n.value = C;
2655
- }), Z([() => e.currentArea, () => e.switchInStandardMode], ([C, b], [S, j]) => {
2656
- C !== S && (p.value = C), b !== j && (f.value = b);
2656
+ d(e.width), d(e.height), Z(() => e.initialState, (w) => {
2657
+ n.value = w;
2658
+ }), Z([() => e.currentArea, () => e.switchInStandardMode], ([w, C], [S, j]) => {
2659
+ w !== S && (m.value = w), C !== j && (f.value = C);
2657
2660
  });
2658
- function r(C) {
2659
- i.value = C;
2661
+ function r(w) {
2662
+ i.value = w;
2660
2663
  }
2661
- function s(C) {
2662
- l.value = C;
2664
+ function s(w) {
2665
+ l.value = w;
2663
2666
  }
2664
- function c(C) {
2665
- f.value = C;
2667
+ function c(w) {
2668
+ f.value = w;
2666
2669
  }
2667
- function m(C) {
2668
- p.value = [].concat(C);
2670
+ function p(w) {
2671
+ m.value = [].concat(w);
2669
2672
  }
2670
- function y(C) {
2671
- o.value = Te(C);
2673
+ function g(w) {
2674
+ o.value = Te(w);
2672
2675
  }
2673
- function w(C) {
2674
- u.value = C;
2676
+ function b(w) {
2677
+ u.value = w;
2675
2678
  }
2676
2679
  function R() {
2677
2680
  t.emit("close");
2678
2681
  }
2679
- function B() {
2682
+ function M() {
2680
2683
  t.emit("submit", o.value);
2681
2684
  }
2682
2685
  function I() {
@@ -2685,34 +2688,34 @@ const Ni = /* @__PURE__ */ le({
2685
2688
  defaultStates: a.value,
2686
2689
  originalDataCopy: h.value,
2687
2690
  currentScreenResolution: l.value,
2688
- "onUpdate:currentScreenResolution": (C) => l.value = C,
2691
+ "onUpdate:currentScreenResolution": (w) => l.value = w,
2689
2692
  originalData: o.value,
2690
- "onUpdate:originalData": (C) => o.value = C,
2693
+ "onUpdate:originalData": (w) => o.value = w,
2691
2694
  switchInStandardMode: f.value,
2692
- "onUpdate:switchInStandardMode": (C) => f.value = C,
2693
- currentArea: p.value,
2694
- "onUpdate:currentArea": (C) => p.value = C,
2695
- onCurrentAreaChanged: m,
2696
- onTwoDimensionalArrayChanged: w,
2697
- onOriginalDataChanged: y
2695
+ "onUpdate:switchInStandardMode": (w) => f.value = w,
2696
+ currentArea: m.value,
2697
+ "onUpdate:currentArea": (w) => m.value = w,
2698
+ onCurrentAreaChanged: p,
2699
+ onTwoDimensionalArrayChanged: b,
2700
+ onOriginalDataChanged: g
2698
2701
  }, null);
2699
2702
  }
2700
2703
  function $() {
2701
2704
  return v(Pa, {
2702
2705
  class: "f-utils-fill-flex-column",
2703
- currentArea: p.value,
2704
- "onUpdate:currentArea": (C) => p.value = C,
2706
+ currentArea: m.value,
2707
+ "onUpdate:currentArea": (w) => m.value = w,
2705
2708
  currentScreenResolution: l.value,
2706
- "onUpdate:currentScreenResolution": (C) => l.value = C,
2709
+ "onUpdate:currentScreenResolution": (w) => l.value = w,
2707
2710
  switchInStandardMode: f.value,
2708
2711
  twoDimensionalArray: u.value,
2709
- "onUpdate:twoDimensionalArray": (C) => u.value = C
2712
+ "onUpdate:twoDimensionalArray": (w) => u.value = w
2710
2713
  }, null);
2711
2714
  }
2712
2715
  const T = V(() => f.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), x = V(() => f.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2713
2716
  return wt(() => {
2714
2717
  o.value = Te(n.value.importData), h.value = Te(n.value.importData), a.value = n.value.defaultState, i.value = "中等屏幕", l.value = "MD";
2715
- }), (C) => v("div", {
2718
+ }), (w) => v("div", {
2716
2719
  class: "f-layout-editor f-utils-flex-column"
2717
2720
  }, [v("div", {
2718
2721
  class: "f-layout-editor-top"
@@ -2742,7 +2745,7 @@ const Ni = /* @__PURE__ */ le({
2742
2745
  class: "f-layout-editor-text-cancel"
2743
2746
  }, [ce("取消")])]), v("div", {
2744
2747
  class: "f-layout-editor-sure-btn",
2745
- onClick: B
2748
+ onClick: M
2746
2749
  }, [v("span", {
2747
2750
  class: "f-layout-editor-text-sure"
2748
2751
  }, [ce("确认")])])])])]);
@@ -2980,7 +2983,7 @@ function pl() {
2980
2983
  resolve: e
2981
2984
  };
2982
2985
  }
2983
- const gn = {
2986
+ const yn = {
2984
2987
  /**
2985
2988
  * 允许点击遮罩关闭对话框
2986
2989
  */
@@ -3060,7 +3063,7 @@ const gn = {
3060
3063
  src: { type: String, default: "" },
3061
3064
  footerHeight: { type: Number, default: 60 },
3062
3065
  host: { type: Object, default: "body" }
3063
- }, ml = Ht(gn, cl, dl, fl), vl = pl();
3066
+ }, ml = Ht(yn, cl, dl, fl), vl = pl();
3064
3067
  class re {
3065
3068
  constructor(t, n) {
3066
3069
  this.x = t, this.y = n;
@@ -3145,19 +3148,19 @@ class Ye {
3145
3148
  }
3146
3149
  }
3147
3150
  function hl(e, t) {
3148
- const n = d(), o = d(), a = d(), i = d(), l = d(), f = d(), p = d(), u = d(), h = d(), r = d(), s = d(), c = d(e.resizeable), m = d(), y = d(e.draggable), w = d(!1);
3151
+ const n = d(), o = d(), a = d(), i = d(), l = d(), f = d(), m = d(), u = d(), h = d(), r = d(), s = d(), c = d(e.resizeable), p = d(), g = d(e.draggable), b = d(!1);
3149
3152
  function R() {
3150
3153
  const A = o.value || document.body, E = window.getComputedStyle(A);
3151
3154
  if (!E || !n.value)
3152
3155
  return;
3153
3156
  const q = re.getTransformInfo(n.value), z = {};
3154
- p.value && (z.deltaL = n.value.offsetLeft - p.value.x, z.deltaT = n.value.offsetTop - p.value.y);
3157
+ m.value && (z.deltaL = n.value.offsetLeft - m.value.x, z.deltaT = n.value.offsetTop - m.value.y);
3155
3158
  const ee = E.getPropertyValue("position");
3156
3159
  z.width = A.clientWidth, z.height = A.clientHeight, z.pr = parseInt(E.getPropertyValue("padding-right"), 10), z.pb = parseInt(E.getPropertyValue("padding-bottom"), 10), z.position = E.getPropertyValue("position"), ee === "static" && (A.style.position = "relative"), z.translateX = q.x, z.translateY = q.y, r.value = z;
3157
3160
  }
3158
- function B(A) {
3161
+ function M(A) {
3159
3162
  if (n.value) {
3160
- i.value = Ye.getCurrent(n.value), l.value = re.getCurrent(n.value), f.value = i.value ? Ye.copy(i.value) : null, p.value = l.value ? re.copy(l.value) : null, R();
3163
+ i.value = Ye.getCurrent(n.value), l.value = re.getCurrent(n.value), f.value = i.value ? Ye.copy(i.value) : null, m.value = l.value ? re.copy(l.value) : null, R();
3161
3164
  const E = A.target.getAttribute("type") || "";
3162
3165
  u.value = {
3163
3166
  n: !!E.match(/n/),
@@ -3171,19 +3174,19 @@ function hl(e, t) {
3171
3174
  var A, E, q, z;
3172
3175
  if (n.value) {
3173
3176
  const ee = n.value;
3174
- u.value && ((u.value.n || u.value.s) && ((A = f.value) != null && A.height) && (ee.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((E = f.value) != null && E.width) && (ee.style.width = f.value.width + "px"), p.value && ((q = p.value) != null && q.x && (ee.style.left = p.value.x + "px"), (z = p.value) != null && z.y && (ee.style.top = p.value.y + "px")));
3177
+ u.value && ((u.value.n || u.value.s) && ((A = f.value) != null && A.height) && (ee.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((E = f.value) != null && E.width) && (ee.style.width = f.value.width + "px"), m.value && ((q = m.value) != null && q.x && (ee.style.left = m.value.x + "px"), (z = m.value) != null && z.y && (ee.style.top = m.value.y + "px")));
3175
3178
  }
3176
3179
  }
3177
3180
  function $() {
3178
3181
  const A = e.minHeight ? e.minHeight : 1, E = e.minWidth ? e.minWidth : 1;
3179
- f.value && p.value && u.value && i.value && (f.value.height < A && (f.value.height = A, u.value.n && l.value && (p.value.y = l.value.y + (i.value.height - A))), f.value.width < E && (f.value.width = E, u.value.w && l.value && (p.value.x = l.value.x + (i.value.width - E))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, l.value && u.value.n && (p.value.y = l.value.y + (i.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, u.value.w && l.value && (p.value.x = l.value.x + (i.value.width - e.maxWidth))));
3182
+ f.value && m.value && u.value && i.value && (f.value.height < A && (f.value.height = A, u.value.n && l.value && (m.value.y = l.value.y + (i.value.height - A))), f.value.width < E && (f.value.width = E, u.value.w && l.value && (m.value.x = l.value.x + (i.value.width - E))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, l.value && u.value.n && (m.value.y = l.value.y + (i.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, u.value.w && l.value && (m.value.x = l.value.x + (i.value.width - e.maxWidth))));
3180
3183
  }
3181
3184
  function T() {
3182
3185
  if (o.value) {
3183
3186
  const A = r.value;
3184
- if (p.value && f.value && u.value && i.value) {
3185
- const E = A.width - A.pr - A.deltaL - A.translateX - p.value.x, q = A.height - A.pb - A.deltaT - A.translateY - p.value.y;
3186
- u.value.n && p.value.y + A.translateY < 0 && l.value && (p.value.y = -A.translateY, f.value.height = i.value.height + l.value.y + A.translateY), u.value.w && p.value.x + A.translateX < 0 && l.value && (p.value.x = -A.translateX, f.value.width = i.value.width + l.value.x + A.translateX), f.value.width > E && (f.value.width = E), f.value.height > q && (f.value.height = q);
3187
+ if (m.value && f.value && u.value && i.value) {
3188
+ const E = A.width - A.pr - A.deltaL - A.translateX - m.value.x, q = A.height - A.pb - A.deltaT - A.translateY - m.value.y;
3189
+ u.value.n && m.value.y + A.translateY < 0 && l.value && (m.value.y = -A.translateY, f.value.height = i.value.height + l.value.y + A.translateY), u.value.w && m.value.x + A.translateX < 0 && l.value && (m.value.x = -A.translateX, f.value.width = i.value.width + l.value.x + A.translateX), f.value.width > E && (f.value.width = E), f.value.height > q && (f.value.height = q);
3187
3190
  }
3188
3191
  }
3189
3192
  }
@@ -3192,15 +3195,15 @@ function hl(e, t) {
3192
3195
  return;
3193
3196
  A.subtract(a.value);
3194
3197
  const E = A.x, q = A.y;
3195
- u.value.n ? (p.value.y = l.value.y + q, f.value.height = i.value.height - q) : u.value.s && (f.value.height = i.value.height + q), u.value.e ? f.value.width = i.value.width + E : u.value.w && (f.value.width = i.value.width - E, p.value.x = l.value.x + E), T(), $(), I();
3198
+ u.value.n ? (m.value.y = l.value.y + q, f.value.height = i.value.height - q) : u.value.s && (f.value.height = i.value.height + q), u.value.e ? f.value.width = i.value.width + E : u.value.w && (f.value.width = i.value.width - E, m.value.x = l.value.x + E), T(), $(), I();
3196
3199
  }
3197
- function C(A) {
3200
+ function w(A) {
3198
3201
  if (!h.value)
3199
3202
  return;
3200
3203
  const E = re.fromEvent(A);
3201
3204
  E && x(E);
3202
3205
  }
3203
- function b() {
3206
+ function C() {
3204
3207
  if (n.value) {
3205
3208
  const {
3206
3209
  width: A,
@@ -3223,82 +3226,82 @@ function hl(e, t) {
3223
3226
  }
3224
3227
  function S(A) {
3225
3228
  if (n.value) {
3226
- const E = b();
3229
+ const E = C();
3227
3230
  s.value = E;
3228
3231
  }
3229
- a.value = void 0, i.value = null, l.value = null, f.value = null, p.value = null, u.value = null, h.value = null, document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", S);
3232
+ a.value = void 0, i.value = null, l.value = null, f.value = null, m.value = null, u.value = null, h.value = null, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", S);
3230
3233
  }
3231
3234
  function j() {
3232
- document.addEventListener("mousemove", C), document.addEventListener("mouseup", S);
3235
+ document.addEventListener("mousemove", w), document.addEventListener("mouseup", S);
3233
3236
  }
3234
- function M(A) {
3235
- A instanceof MouseEvent && A.button === 2 || y.value && (document.body.click(), A.stopPropagation(), A.preventDefault(), a.value = re.fromEvent(A), h.value = A.target, B(A), j());
3237
+ function F(A) {
3238
+ A instanceof MouseEvent && A.button === 2 || g.value && (document.body.click(), A.stopPropagation(), A.preventDefault(), a.value = re.fromEvent(A), h.value = A.target, M(A), j());
3236
3239
  }
3237
3240
  function D(A) {
3238
3241
  return n.value = A, c.value && v(ot, null, [v("div", {
3239
3242
  class: "fv-resizable-handle fv-resizable-n",
3240
3243
  type: "n",
3241
- onMousedown: (E) => M(E)
3244
+ onMousedown: (E) => F(E)
3242
3245
  }, null), v("div", {
3243
3246
  class: "fv-resizable-handle fv-resizable-e",
3244
3247
  type: "e",
3245
- onMousedown: (E) => M(E)
3248
+ onMousedown: (E) => F(E)
3246
3249
  }, null), v("div", {
3247
3250
  class: "fv-resizable-handle fv-resizable-s",
3248
3251
  type: "s",
3249
- onMousedown: (E) => M(E)
3252
+ onMousedown: (E) => F(E)
3250
3253
  }, null), v("div", {
3251
3254
  class: "fv-resizable-handle fv-resizable-w",
3252
3255
  type: "w",
3253
- onMousedown: (E) => M(E)
3256
+ onMousedown: (E) => F(E)
3254
3257
  }, null), v("div", {
3255
3258
  class: "fv-resizable-handle fv-resizable-ne",
3256
3259
  type: "ne",
3257
- onMousedown: (E) => M(E)
3260
+ onMousedown: (E) => F(E)
3258
3261
  }, null), v("div", {
3259
3262
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
3260
3263
  type: "se",
3261
- onMousedown: (E) => M(E)
3264
+ onMousedown: (E) => F(E)
3262
3265
  }, null), v("div", {
3263
3266
  class: "fv-resizable-handle fv-resizable-sw",
3264
3267
  type: "sw",
3265
- onMousedown: (E) => M(E)
3268
+ onMousedown: (E) => F(E)
3266
3269
  }, null), v("div", {
3267
3270
  class: "fv-resizable-handle fv-resizable-nw",
3268
3271
  type: "nw",
3269
- onMousedown: (E) => M(E)
3272
+ onMousedown: (E) => F(E)
3270
3273
  }, null)]);
3271
3274
  }
3272
3275
  function O(A = !0) {
3273
3276
  document.body.click();
3274
3277
  const E = o.value || document.body, q = Ye.getCurrent(E), z = n.value;
3275
- A && z && (m.value = b(), m.value.transform = z.style.transform), q && z && (f.value = q, f.value.height -= 14, f.value.width -= 14, z.style.height = f.value.height + "px", z.style.width = f.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", s.value = {
3278
+ A && z && (p.value = C(), p.value.transform = z.style.transform), q && z && (f.value = q, f.value.height -= 14, f.value.width -= 14, z.style.height = f.value.height + "px", z.style.width = f.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", s.value = {
3276
3279
  size: f.value,
3277
3280
  position: {
3278
3281
  x: 0,
3279
3282
  y: 0
3280
3283
  }
3281
- }, y.value = !1, w.value = !0);
3284
+ }, g.value = !1, b.value = !0);
3282
3285
  }
3283
- function g() {
3286
+ function y() {
3284
3287
  var A, E;
3285
- if (document.body.click(), m.value) {
3288
+ if (document.body.click(), p.value) {
3286
3289
  const q = {
3287
- width: m.value.size.width || 0,
3288
- height: m.value.size.height || 0
3290
+ width: p.value.size.width || 0,
3291
+ height: p.value.size.height || 0
3289
3292
  }, z = {
3290
3293
  x: (window.innerWidth - q.width) / 2,
3291
3294
  y: (window.innerHeight - q.height) / 2
3292
3295
  };
3293
- (A = f.value) == null || A.set(q), (E = p.value) == null || E.set(z);
3296
+ (A = f.value) == null || A.set(q), (E = m.value) == null || E.set(z);
3294
3297
  const ee = n.value;
3295
3298
  ee.style.height = q.height + "px", ee.style.width = q.width + "px", ee.style.left = `${z.x}px`, ee.style.top = `${z.y}px`, ee.style.transform = "", s.value = {
3296
3299
  size: q,
3297
3300
  position: z
3298
- }, y.value = e.draggable, w.value = !1;
3301
+ }, g.value = e.draggable, b.value = !1;
3299
3302
  }
3300
3303
  }
3301
- function F() {
3304
+ function B() {
3302
3305
  if (n.value) {
3303
3306
  const A = Ye.getCurrent(n.value);
3304
3307
  if (A) {
@@ -3312,7 +3315,7 @@ function hl(e, t) {
3312
3315
  }
3313
3316
  function P() {
3314
3317
  const A = () => {
3315
- w.value ? O(!1) : F(), document.body.click();
3318
+ b.value ? O(!1) : B(), document.body.click();
3316
3319
  };
3317
3320
  return window.addEventListener("resize", A), () => {
3318
3321
  window.removeEventListener("resize", A);
@@ -3324,86 +3327,86 @@ function hl(e, t) {
3324
3327
  boundingElement: o,
3325
3328
  resizedEventParam: s,
3326
3329
  maximize: O,
3327
- restore: g,
3328
- allowDrag: y,
3329
- isMaximized: w,
3330
+ restore: y,
3331
+ allowDrag: g,
3332
+ isMaximized: b,
3330
3333
  unWindowResizeHandle: J,
3331
- moveToCenter: F
3334
+ moveToCenter: B
3332
3335
  };
3333
3336
  }
3334
- function yl(e, t, n) {
3335
- const o = d(), a = d(e.draggable), i = d(e.lockAxis), l = d(), f = d(), p = d(!1), u = d(new re(0, 0)), h = d(new re(0, 0)), r = d(new re(0, 0)), s = d(new re(0, 0));
3336
- Z(() => n.value, (C) => {
3337
- l.value.style.cursor = C ? "move" : "default";
3337
+ function gl(e, t, n) {
3338
+ const o = d(), a = d(e.draggable), i = d(e.lockAxis), l = d(), f = d(), m = d(!1), u = d(new re(0, 0)), h = d(new re(0, 0)), r = d(new re(0, 0)), s = d(new re(0, 0));
3339
+ Z(() => n.value, (w) => {
3340
+ l.value.style.cursor = w ? "move" : "default";
3338
3341
  });
3339
- function c(C, b) {
3340
- if (b.tagName === "BUTTON")
3342
+ function c(w, C) {
3343
+ if (C.tagName === "BUTTON")
3341
3344
  return !1;
3342
- if (b === C)
3345
+ if (C === w)
3343
3346
  return !0;
3344
- for (const S in b.children)
3345
- if (Object.prototype.hasOwnProperty.call(b.children, S) && c(C, b.children[S]))
3347
+ for (const S in C.children)
3348
+ if (Object.prototype.hasOwnProperty.call(C.children, S) && c(w, C.children[S]))
3346
3349
  return !0;
3347
3350
  return !1;
3348
3351
  }
3349
- function m() {
3350
- var j, M;
3351
- let C = r.value.x + h.value.x, b = r.value.y + h.value.y;
3352
- i.value === "x" ? (C = ((j = u.value) == null ? void 0 : j.x) || 0, r.value.x = 0) : i.value === "y" && (b = ((M = u.value) == null ? void 0 : M.y) || 0, r.value.y = 0);
3353
- const S = `translate3d(${Math.round(C)}px, ${Math.round(b)}px, 0px)`;
3354
- o.value && (o.value.style.transform = S), s.value.x = C, s.value.y = b;
3352
+ function p() {
3353
+ var j, F;
3354
+ let w = r.value.x + h.value.x, C = r.value.y + h.value.y;
3355
+ i.value === "x" ? (w = ((j = u.value) == null ? void 0 : j.x) || 0, r.value.x = 0) : i.value === "y" && (C = ((F = u.value) == null ? void 0 : F.y) || 0, r.value.y = 0);
3356
+ const S = `translate3d(${Math.round(w)}px, ${Math.round(C)}px, 0px)`;
3357
+ o.value && (o.value.style.transform = S), s.value.x = w, s.value.y = C;
3355
3358
  }
3356
- function y() {
3359
+ function g() {
3357
3360
  if (!f.value || !o.value)
3358
3361
  return null;
3359
- const C = f.value.getBoundingClientRect(), b = o.value.getBoundingClientRect(), S = {
3360
- top: C.top < b.top,
3361
- right: C.right > b.right,
3362
- bottom: C.bottom > b.bottom,
3363
- left: C.left < b.left
3362
+ const w = f.value.getBoundingClientRect(), C = o.value.getBoundingClientRect(), S = {
3363
+ top: w.top < C.top,
3364
+ right: w.right > C.right,
3365
+ bottom: w.bottom > C.bottom,
3366
+ left: w.left < C.left
3364
3367
  };
3365
- return S.top || (r.value.y -= b.top - C.top), S.bottom || (r.value.y -= b.bottom - C.bottom), S.right || (r.value.x -= b.right - C.right), S.left || (r.value.x -= b.left - C.left), m(), S;
3368
+ return S.top || (r.value.y -= C.top - w.top), S.bottom || (r.value.y -= C.bottom - w.bottom), S.right || (r.value.x -= C.right - w.right), S.left || (r.value.x -= C.left - w.left), p(), S;
3366
3369
  }
3367
- function w(C) {
3368
- C && (u.value && C.subtract(u.value), r.value.set(C), m(), y());
3370
+ function b(w) {
3371
+ w && (u.value && w.subtract(u.value), r.value.set(w), p(), g());
3369
3372
  }
3370
- function R(C) {
3371
- p.value && a.value && (C.stopPropagation(), C.preventDefault(), w(re.fromEvent(C, l.value)));
3373
+ function R(w) {
3374
+ m.value && a.value && (w.stopPropagation(), w.preventDefault(), b(re.fromEvent(w, l.value)));
3372
3375
  }
3373
- function B() {
3374
- var C;
3375
- p.value && (p.value = !1, h.value.add(r.value), r.value.reset(), (C = o.value) == null || C.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", B));
3376
+ function M() {
3377
+ var w;
3378
+ m.value && (m.value = !1, h.value.add(r.value), r.value.reset(), (w = o.value) == null || w.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", M));
3376
3379
  }
3377
3380
  function I() {
3378
- !p.value && l.value && (p.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", R), document.addEventListener("mouseup", B));
3381
+ !m.value && l.value && (m.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", R), document.addEventListener("mouseup", M));
3379
3382
  }
3380
3383
  function $() {
3381
3384
  if (o.value) {
3382
- const C = re.getTransformInfo(o.value);
3383
- h.value.set(C);
3385
+ const w = re.getTransformInfo(o.value);
3386
+ h.value.set(w);
3384
3387
  return;
3385
3388
  }
3386
3389
  h.value.reset();
3387
3390
  }
3388
- function T(C) {
3389
- if (!n.value || C instanceof MouseEvent && C.button === 2)
3391
+ function T(w) {
3392
+ if (!n.value || w instanceof MouseEvent && w.button === 2)
3390
3393
  return;
3391
- const b = C.target || C.srcElement;
3392
- l.value !== void 0 && b && !c(b, l.value) || a.value !== !1 && (document.body.click(), C.stopPropagation(), C.preventDefault(), u.value = re.fromEvent(C, o.value), $(), I());
3394
+ const C = w.target || w.srcElement;
3395
+ l.value !== void 0 && C && !c(C, l.value) || a.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), u.value = re.fromEvent(w, o.value), $(), I());
3393
3396
  }
3394
- function x(C, b, S) {
3395
- if (a.value && b) {
3396
- if (C)
3397
- l.value = C;
3397
+ function x(w, C, S) {
3398
+ if (a.value && C) {
3399
+ if (w)
3400
+ l.value = w;
3398
3401
  else if (e.dragHandle) {
3399
3402
  if (e.dragHandle instanceof HTMLElement)
3400
3403
  l.value = e.dragHandle;
3401
3404
  else if (typeof e.dragHandle == "string") {
3402
- const j = b.querySelector(e.dragHandle);
3405
+ const j = C.querySelector(e.dragHandle);
3403
3406
  j && (l.value = j);
3404
3407
  }
3405
3408
  }
3406
- o.value = b, f.value = S, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", T)) : a.value = !1;
3409
+ o.value = C, f.value = S, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", T)) : a.value = !1;
3407
3410
  }
3408
3411
  }
3409
3412
  return {
@@ -3421,7 +3424,7 @@ function bn(e, t) {
3421
3424
  };
3422
3425
  }
3423
3426
  }
3424
- function gl(e, t) {
3427
+ function yl(e, t) {
3425
3428
  const n = d(e.enableEsc);
3426
3429
  let o = null;
3427
3430
  return n.value ? (o = bn("Escape", (a) => {
@@ -3441,10 +3444,10 @@ function bl(e, t) {
3441
3444
  }
3442
3445
  const Je = /* @__PURE__ */ le({
3443
3446
  name: "FModal",
3444
- props: gn,
3447
+ props: yn,
3445
3448
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
3446
3449
  setup(e, t) {
3447
- const n = d(e.width || 300), o = d(e.height || 200), a = d(e.modelValue), i = d(""), l = d(e.class), f = d(e.fitContent), p = d(e.showHeader), u = d(""), h = d(e.showCloseButton), r = d(e.showMaxButton), s = d(!1), c = d(e.dialogType), m = d(e.src), y = d(""), w = d(e.showButtons), R = d(e.title), B = d(e.containment || null), I = d(), {
3450
+ const n = d(e.width || 300), o = d(e.height || 200), a = d(e.modelValue), i = d(""), l = d(e.class), f = d(e.fitContent), m = d(e.showHeader), u = d(""), h = d(e.showCloseButton), r = d(e.showMaxButton), s = d(!1), c = d(e.dialogType), p = d(e.src), g = d(""), b = d(e.showButtons), R = d(e.title), M = d(e.containment || null), I = d(), {
3448
3451
  t: $
3449
3452
  } = ft();
3450
3453
  R.value === "错误提示" && (R.value = $("messageBox.errorTitle"));
@@ -3460,7 +3463,7 @@ const Je = /* @__PURE__ */ le({
3460
3463
  fe && (a.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", N));
3461
3464
  });
3462
3465
  }
3463
- const C = [{
3466
+ const w = [{
3464
3467
  name: "cancel",
3465
3468
  text: $("messageBox.cancel") || "取消",
3466
3469
  class: "btn btn-secondary",
@@ -3474,9 +3477,9 @@ const Je = /* @__PURE__ */ le({
3474
3477
  handle: (N) => {
3475
3478
  x(N, !0);
3476
3479
  }
3477
- }], b = d(e.buttons && e.buttons.length ? e.buttons : C), S = V(() => !!u.value), j = V(() => !!w.value && !!b.value), M = d(), D = d(), O = d(!1), {
3478
- renderResizeBar: g,
3479
- maximize: F,
3480
+ }], C = d(e.buttons && e.buttons.length ? e.buttons : w), S = V(() => !!u.value), j = V(() => !!b.value && !!C.value), F = d(), D = d(), O = d(!1), {
3481
+ renderResizeBar: y,
3482
+ maximize: B,
3480
3483
  restore: P,
3481
3484
  boundingElement: J,
3482
3485
  resizedEventParam: A,
@@ -3485,8 +3488,8 @@ const Je = /* @__PURE__ */ le({
3485
3488
  moveToCenter: z
3486
3489
  } = hl(e), {
3487
3490
  registerDraggle: ee
3488
- } = yl(e, t, E);
3489
- function ge() {
3491
+ } = gl(e, t, E);
3492
+ function ye() {
3490
3493
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
3491
3494
  }
3492
3495
  function be() {
@@ -3497,12 +3500,12 @@ const Je = /* @__PURE__ */ le({
3497
3500
  N !== Q && (R.value = N);
3498
3501
  }), Z(() => e.modelValue, (N, Q) => {
3499
3502
  N !== Q && (a.value = N, a.value && e.draggable && nt(() => {
3500
- D.value && !B.value && (B.value = D.value.parentElement, J.value = B.value, ee(M.value, D.value, J.value), z());
3501
- }), N || (B.value && (B.value = null), be())), a.value ? T.value = ge() : (O.value = !1, E.value = e.draggable);
3503
+ D.value && !M.value && (M.value = D.value.parentElement, J.value = M.value, ee(F.value, D.value, J.value), z());
3504
+ }), N || (M.value && (M.value = null), be())), a.value ? T.value = ye() : (O.value = !1, E.value = e.draggable);
3502
3505
  }), Z(() => e.showHeader, (N, Q) => {
3503
- N !== Q && (p.value = N);
3506
+ N !== Q && (m.value = N);
3504
3507
  }), Z(() => e.showButtons, (N, Q) => {
3505
- N !== Q && (w.value = N);
3508
+ N !== Q && (b.value = N);
3506
3509
  }), Z(() => A.value, (N, Q) => {
3507
3510
  const ue = N || {}, fe = Q || {};
3508
3511
  JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
@@ -3544,10 +3547,10 @@ const Je = /* @__PURE__ */ le({
3544
3547
  return e.mask || (N.pointerEvents = "none", N.backgroundColor = "transparent"), T.value && (N.backgroundColor = "transparent"), N;
3545
3548
  }), We = V(() => ({
3546
3549
  "modal-content": !0,
3547
- "modal-content-has-header": p.value
3550
+ "modal-content-has-header": m.value
3548
3551
  })), Ne = V(() => {
3549
3552
  const N = {
3550
- display: p.value ? "" : "none"
3553
+ display: m.value ? "" : "none"
3551
3554
  };
3552
3555
  return N["pointer-events"] = E.value ? "auto" : "none", N;
3553
3556
  }), Me = V(() => ({
@@ -3566,7 +3569,7 @@ const Je = /* @__PURE__ */ le({
3566
3569
  }
3567
3570
  const Ze = V(() => {
3568
3571
  const N = {
3569
- textAlgin: y.value
3572
+ textAlgin: g.value
3570
3573
  }, Q = qe();
3571
3574
  return Object.assign(N, Q);
3572
3575
  });
@@ -3575,19 +3578,19 @@ const Je = /* @__PURE__ */ le({
3575
3578
  O.value = !1, P();
3576
3579
  return;
3577
3580
  }
3578
- F(), O.value = !0;
3581
+ B(), O.value = !0;
3579
3582
  }
3580
3583
  async function it(N, Q) {
3581
3584
  N.handle && await N.handle(Q, N) && t.emit("closed", Q);
3582
3585
  }
3583
3586
  function Ae(N) {
3584
- N.width && (n.value = N.width), N.height && (o.value = N.height), N.buttons && (b.value = N.buttons), N.title && (R.value = N.title);
3587
+ N.width && (n.value = N.width), N.height && (o.value = N.height), N.buttons && (C.value = N.buttons), N.title && (R.value = N.title);
3585
3588
  }
3586
3589
  let Pe = null, ke = null;
3587
3590
  wt(() => {
3588
- T.value = ge();
3591
+ T.value = ye();
3589
3592
  }), Be(() => {
3590
- D.value && !B.value && (B.value = D.value.parentElement, J.value = B.value, ee(M.value, D.value, J.value)), Y.value && document.body.classList.add("modal-open"), Pe = gl(e, t), ke = bl(e, t);
3593
+ D.value && !M.value && (M.value = D.value.parentElement, J.value = M.value, ee(F.value, D.value, J.value)), Y.value && document.body.classList.add("modal-open"), Pe = yl(e, t), ke = bl(e, t);
3591
3594
  }), Ct(() => {
3592
3595
  q && q(), Pe && Pe.remove(), ke && ke.remove();
3593
3596
  }), t.expose({
@@ -3620,7 +3623,7 @@ const Je = /* @__PURE__ */ le({
3620
3623
  return v("div", {
3621
3624
  class: "modal-footer",
3622
3625
  style: Ze.value
3623
- }, [b.value && b.value.map((N) => {
3626
+ }, [C.value && C.value.map((N) => {
3624
3627
  const Q = d(N.disabled);
3625
3628
  return v("button", {
3626
3629
  name: N.name,
@@ -3637,7 +3640,7 @@ const Je = /* @__PURE__ */ le({
3637
3640
  }
3638
3641
  function _e() {
3639
3642
  return v("div", {
3640
- ref: M,
3643
+ ref: F,
3641
3644
  class: "modal-header",
3642
3645
  style: Ne.value
3643
3646
  }, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
@@ -3670,15 +3673,15 @@ const Je = /* @__PURE__ */ le({
3670
3673
  ref: D
3671
3674
  }, [v("div", {
3672
3675
  class: We.value
3673
- }, [p.value && _e(), v("div", {
3676
+ }, [m.value && _e(), v("div", {
3674
3677
  class: Qe.value
3675
3678
  }, [(Q = (N = t.slots).default) == null ? void 0 : Q.call(N), c.value === "iframe" && v("iframe", {
3676
3679
  title: i.value,
3677
3680
  class: "f-utils-fill",
3678
3681
  width: "100%",
3679
3682
  frameborder: "0",
3680
- src: m.value
3681
- }, null)]), De()]), !f.value && D.value && !O.value && g(D.value)]);
3683
+ src: p.value
3684
+ }, null)]), De()]), !f.value && D.value && !O.value && y(D.value)]);
3682
3685
  }
3683
3686
  function et(N) {
3684
3687
  return N || "body";
@@ -3714,13 +3717,13 @@ function wl(e) {
3714
3717
  Ct(() => {
3715
3718
  document.body.removeChild(t);
3716
3719
  });
3717
- const i = d(), l = d(e.class || ""), f = d(!!e.showButtons), p = d(!!e.showHeader), u = d(e.showCloseButton == null ? !0 : e.showCloseButton), h = d(!0), r = d(e.title || ""), s = e.acceptCallback || (() => {
3720
+ const i = d(), l = d(e.class || ""), f = d(!!e.showButtons), m = d(!!e.showHeader), u = d(e.showCloseButton == null ? !0 : e.showCloseButton), h = d(!0), r = d(e.title || ""), s = e.acceptCallback || (() => {
3718
3721
  }), c = e.rejectCallback || (() => {
3719
- }), m = e.closedCallback || ((I) => {
3720
- }), y = e.resizeHandle || ((I) => {
3721
- }), w = e.stopMoveHandle || ((I) => {
3722
- }), R = wn(e), B = (I) => {
3723
- h.value = !1, n.unmount(), m(I);
3722
+ }), p = e.closedCallback || ((I) => {
3723
+ }), g = e.resizeHandle || ((I) => {
3724
+ }), b = e.stopMoveHandle || ((I) => {
3725
+ }), R = wn(e), M = (I) => {
3726
+ h.value = !1, n.unmount(), p(I);
3724
3727
  };
3725
3728
  return Be(() => {
3726
3729
  }), a.expose({
@@ -3734,16 +3737,16 @@ function wl(e) {
3734
3737
  width: e.width,
3735
3738
  height: e.height,
3736
3739
  buttons: e.buttons,
3737
- "show-header": p.value,
3740
+ "show-header": m.value,
3738
3741
  "show-buttons": f.value,
3739
3742
  "show-close-button": u.value,
3740
3743
  "show-max-button": !1,
3741
3744
  onAccept: s,
3742
3745
  onCancel: c,
3743
3746
  fitContent: e.fitContent == null ? !0 : e.fitContent,
3744
- onClosed: B,
3745
- onResize: y,
3746
- onStopMove: w
3747
+ onClosed: M,
3748
+ onResize: g,
3749
+ onStopMove: b
3747
3750
  }, {
3748
3751
  default: () => [R && R(n)]
3749
3752
  });
@@ -3799,32 +3802,32 @@ class xt {
3799
3802
  }, t)), a = d(!0), i = o.value.acceptCallback || (() => {
3800
3803
  }), l = o.value.rejectCallback || (() => {
3801
3804
  }), f = o.value.closedCallback || ((T, x) => {
3802
- }), p = o.value.resizeHandle || ((T) => {
3805
+ }), m = o.value.resizeHandle || ((T) => {
3803
3806
  }), u = t.stopMoveHandle || ((T) => {
3804
3807
  });
3805
3808
  let h;
3806
3809
  const r = wn(o.value), s = (T) => {
3807
- var C;
3810
+ var w;
3808
3811
  a.value = !1;
3809
- const x = (C = T == null ? void 0 : T.target) == null ? void 0 : C.classList.contains("modal_close");
3812
+ const x = (w = T == null ? void 0 : T.target) == null ? void 0 : w.classList.contains("modal_close");
3810
3813
  f(T, this.isUseEscCloseModal.value ? "esc" : x ? "icon" : "button");
3811
3814
  }, c = (T) => {
3812
3815
  s(T), h && nt(() => {
3813
3816
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Nt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
3814
- const x = Object.keys(this.modalRefs).map((C) => Number(C));
3817
+ const x = Object.keys(this.modalRefs).map((w) => Number(w));
3815
3818
  x.length > 0 ? this.activeModalIndex.value = Math.max(...x) : this.activeModalIndex.value = 0;
3816
3819
  }
3817
3820
  this.isUseEscCloseModal.value = !1;
3818
3821
  });
3819
- }, m = (T) => {
3822
+ }, p = (T) => {
3820
3823
  var x;
3821
3824
  this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((x = this.activeModalInstance.value) == null || x.close(T == null ? void 0 : T.event));
3822
3825
  }, {
3823
- width: y,
3824
- height: w
3825
- } = o.value, R = this.adaptToWindow(y || 500, w || 320);
3826
+ width: g,
3827
+ height: b
3828
+ } = o.value, R = this.adaptToWindow(g || 500, b || 320);
3826
3829
  Object.assign(o.value, R);
3827
- const B = () => v(Je, Lt({
3830
+ const M = () => v(Je, Lt({
3828
3831
  ref: this.modalRef,
3829
3832
  modelValue: a.value,
3830
3833
  "onUpdate:modelValue": (T) => a.value = T
@@ -3832,14 +3835,14 @@ class xt {
3832
3835
  onAccept: i,
3833
3836
  onCancel: l,
3834
3837
  onClosed: c,
3835
- onResize: p,
3836
- onEsc: m,
3838
+ onResize: m,
3839
+ onEsc: p,
3837
3840
  onStopMove: u
3838
3841
  }), {
3839
3842
  default: () => [r && r(this.app)]
3840
3843
  });
3841
3844
  return h = ((T) => {
3842
- const x = An(B, T);
3845
+ const x = An(M, T);
3843
3846
  return x.appContext = this.appContext, Nt(x, n), x;
3844
3847
  })({
3845
3848
  ...o.value
@@ -4115,30 +4118,30 @@ var Rl = { exports: {} };
4115
4118
  throw s.code = "MODULE_NOT_FOUND", s;
4116
4119
  }
4117
4120
  var c = a[u] = { exports: {} };
4118
- o[u][0].call(c.exports, function(m) {
4119
- var y = o[u][1][m];
4120
- return l(y || m);
4121
+ o[u][0].call(c.exports, function(p) {
4122
+ var g = o[u][1][p];
4123
+ return l(g || p);
4121
4124
  }, c, c.exports, n, o, a, i);
4122
4125
  }
4123
4126
  return a[u].exports;
4124
4127
  }
4125
- for (var f = typeof ht == "function" && ht, p = 0; p < i.length; p++) l(i[p]);
4128
+ for (var f = typeof ht == "function" && ht, m = 0; m < i.length; m++) l(i[m]);
4126
4129
  return l;
4127
4130
  }
4128
4131
  return n;
4129
4132
  }())({
4130
4133
  1: [function(n, o, a) {
4131
4134
  var i = {}, l = "(?:^|\\s)", f = "(?:\\s|$)";
4132
- function p(r) {
4135
+ function m(r) {
4133
4136
  var s = i[r];
4134
4137
  return s ? s.lastIndex = 0 : i[r] = s = new RegExp(l + r + f, "g"), s;
4135
4138
  }
4136
4139
  function u(r, s) {
4137
4140
  var c = r.className;
4138
- c.length ? p(s).test(c) || (r.className += " " + s) : r.className = s;
4141
+ c.length ? m(s).test(c) || (r.className += " " + s) : r.className = s;
4139
4142
  }
4140
4143
  function h(r, s) {
4141
- r.className = r.className.replace(p(s), " ").trim();
4144
+ r.className = r.className.replace(m(s), " ").trim();
4142
4145
  }
4143
4146
  o.exports = {
4144
4147
  add: u,
@@ -4147,12 +4150,12 @@ var Rl = { exports: {} };
4147
4150
  }, {}],
4148
4151
  2: [function(n, o, a) {
4149
4152
  (function(i) {
4150
- var l = n("contra/emitter"), f = n("crossvent"), p = n("./classes"), u = document, h = u.documentElement;
4151
- function r(M, D) {
4153
+ var l = n("contra/emitter"), f = n("crossvent"), m = n("./classes"), u = document, h = u.documentElement;
4154
+ function r(F, D) {
4152
4155
  var O = arguments.length;
4153
- O === 1 && Array.isArray(M) === !1 && (D = M, M = []);
4154
- var g, F, P, J, A, E, q, z, ee, ge = null, be, Y, ie = !1, de = 0, oe, U = D || {};
4155
- U.moves === void 0 && (U.moves = B), U.accepts === void 0 && (U.accepts = B), U.invalid === void 0 && (U.invalid = lt), U.containers === void 0 && (U.containers = M || []), U.isContainer === void 0 && (U.isContainer = R), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = u.body);
4156
+ O === 1 && Array.isArray(F) === !1 && (D = F, F = []);
4157
+ var y, B, P, J, A, E, q, z, ee, ye = null, be, Y, ie = !1, de = 0, oe, U = D || {};
4158
+ U.moves === void 0 && (U.moves = M), U.accepts === void 0 && (U.accepts = M), U.invalid === void 0 && (U.invalid = lt), U.containers === void 0 && (U.containers = F || []), U.isContainer === void 0 && (U.isContainer = R), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = u.body);
4156
4159
  var ae = l({
4157
4160
  containers: U.containers,
4158
4161
  start: ke,
@@ -4169,11 +4172,11 @@ var Rl = { exports: {} };
4169
4172
  }
4170
4173
  function Ne(k) {
4171
4174
  var L = k ? "remove" : "add";
4172
- m(h, L, "mousedown", se), m(h, L, "mouseup", Ve);
4175
+ p(h, L, "mousedown", se), p(h, L, "mouseup", Ve);
4173
4176
  }
4174
4177
  function Me(k) {
4175
4178
  var L = k ? "remove" : "add";
4176
- m(h, L, "mousemove", it);
4179
+ p(h, L, "mousemove", it);
4177
4180
  }
4178
4181
  function Qe(k) {
4179
4182
  var L = k ? "remove" : "add";
@@ -4187,7 +4190,7 @@ var Rl = { exports: {} };
4187
4190
  }
4188
4191
  function se(k) {
4189
4192
  J = k.clientX, A = k.clientY;
4190
- var L = y(k) !== 1 || k.metaKey || k.ctrlKey;
4193
+ var L = g(k) !== 1 || k.metaKey || k.ctrlKey;
4191
4194
  if (!L) {
4192
4195
  var W = k.target, G = Ae(W);
4193
4196
  G && (be = G, Me(), k.type === "mousedown" && (x(W) ? W.focus() : k.preventDefault()));
@@ -4195,7 +4198,7 @@ var Rl = { exports: {} };
4195
4198
  }
4196
4199
  function it(k) {
4197
4200
  if (be) {
4198
- if (y(k) === 0) {
4201
+ if (g(k) === 0) {
4199
4202
  Ve({});
4200
4203
  return;
4201
4204
  }
@@ -4206,18 +4209,18 @@ var Rl = { exports: {} };
4206
4209
  return;
4207
4210
  }
4208
4211
  var K = be;
4209
- Me(!0), Qe(), _e(), Le(K), p.add(z || P, "gu-transit"), kt(), Mt(), de = 0, Ie(k);
4212
+ Me(!0), Qe(), _e(), Le(K), m.add(z || P, "gu-transit"), kt(), Mt(), de = 0, Ie(k);
4210
4213
  }
4211
4214
  }
4212
4215
  }
4213
4216
  function Ae(k) {
4214
- if (!(ae.dragging && g) && !We(k)) {
4217
+ if (!(ae.dragging && y) && !We(k)) {
4215
4218
  for (var L = k; T(k) && We(T(k)) === !1; )
4216
4219
  if (U.invalid(k, L) || (k = T(k), !k))
4217
4220
  return;
4218
4221
  var W = T(k);
4219
4222
  if (W && !U.invalid(k, L)) {
4220
- var G = U.moves(k, W, L, b(k));
4223
+ var G = U.moves(k, W, L, C(k));
4221
4224
  if (G)
4222
4225
  return {
4223
4226
  item: k,
@@ -4234,7 +4237,7 @@ var Rl = { exports: {} };
4234
4237
  L && Le(L);
4235
4238
  }
4236
4239
  function Le(k) {
4237
- jt(k.item, k.source) && (z = k.item.cloneNode(!0), ae.emit("cloned", z, k.item, "copy")), F = k.source, P = k.item, E = q = b(k.item), ae.dragging = !0, ae.emit("drag", P, F);
4240
+ jt(k.item, k.source) && (z = k.item.cloneNode(!0), ae.emit("cloned", z, k.item, "copy")), B = k.source, P = k.item, E = q = C(k.item), ae.dragging = !0, ae.emit("drag", P, B);
4238
4241
  }
4239
4242
  function lt() {
4240
4243
  return !1;
@@ -4250,33 +4253,33 @@ var Rl = { exports: {} };
4250
4253
  }
4251
4254
  function Ve(k) {
4252
4255
  if (De(), !!ae.dragging) {
4253
- var L = z || P, W = j("clientX", k) || 0, G = j("clientY", k) || 0, K = w(g, W, G), te = fe(K, W, G);
4254
- te && (z && U.copySortSource || !z || te !== F) ? Ke(L, te) : U.removeOnSpill ? et() : N();
4256
+ var L = z || P, W = j("clientX", k) || 0, G = j("clientY", k) || 0, K = b(y, W, G), te = fe(K, W, G);
4257
+ te && (z && U.copySortSource || !z || te !== B) ? Ke(L, te) : U.removeOnSpill ? et() : N();
4255
4258
  }
4256
4259
  }
4257
4260
  function Ke(k, L) {
4258
4261
  var W = T(k);
4259
- z && U.copySortSource && L === F && W.removeChild(P), ue(L) ? ae.emit("cancel", k, F) : ae.emit("drop", k, L, F, q), Q();
4262
+ z && U.copySortSource && L === B && W.removeChild(P), ue(L) ? ae.emit("cancel", k, B) : ae.emit("drop", k, L, B, q), Q();
4260
4263
  }
4261
4264
  function et() {
4262
4265
  if (ae.dragging) {
4263
4266
  var k = z || P, L = T(k);
4264
- L && L.removeChild(k), ae.emit(z ? "cancel" : "remove", k, L, F), Q();
4267
+ L && L.removeChild(k), ae.emit(z ? "cancel" : "remove", k, L, B), Q();
4265
4268
  }
4266
4269
  }
4267
4270
  function N(k) {
4268
4271
  if (ae.dragging) {
4269
4272
  var L = arguments.length > 0 ? k : U.revertOnSpill, W = z || P, G = T(W), K = ue(G);
4270
- K === !1 && L && (z ? G && G.removeChild(z) : F.insertBefore(W, E)), K || L ? ae.emit("cancel", W, F, F) : ae.emit("drop", W, G, F, q), Q();
4273
+ K === !1 && L && (z ? G && G.removeChild(z) : B.insertBefore(W, E)), K || L ? ae.emit("cancel", W, B, B) : ae.emit("drop", W, G, B, q), Q();
4271
4274
  }
4272
4275
  }
4273
4276
  function Q() {
4274
4277
  var k = z || P;
4275
- De(), Et(), Rt(), k && p.rm(k, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ge && ae.emit("out", k, ge, F), ae.emit("dragend", k, de), F = P = z = E = q = ee = ge = null;
4278
+ De(), Et(), Rt(), k && m.rm(k, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ye && ae.emit("out", k, ye, B), ae.emit("dragend", k, de), B = P = z = E = q = ee = ye = null;
4276
4279
  }
4277
4280
  function ue(k, L) {
4278
4281
  var W;
4279
- return L !== void 0 ? W = L : g ? W = q : W = b(z || P), k === F && W === E;
4282
+ return L !== void 0 ? W = L : y ? W = q : W = C(z || P), k === B && W === E;
4280
4283
  }
4281
4284
  function fe(k, L, W) {
4282
4285
  for (var G = k; G && !K(); )
@@ -4287,19 +4290,19 @@ var Rl = { exports: {} };
4287
4290
  if (te === !1)
4288
4291
  return !1;
4289
4292
  var Fe = pt(G, k), we = mt(G, Fe, L, W), Ce = ue(G, we);
4290
- return Ce ? !0 : U.accepts(P, G, F, we);
4293
+ return Ce ? !0 : U.accepts(P, G, B, we);
4291
4294
  }
4292
4295
  }
4293
4296
  function Ie(k) {
4294
- if (!g)
4297
+ if (!y)
4295
4298
  return;
4296
4299
  k.preventDefault();
4297
4300
  var L = j("clientX", k) || 0, W = j("clientY", k) || 0;
4298
- g.style.left = L - 2 + "px", g.style.top = W - 2 + "px";
4299
- var G = z || P, K = w(g, L, W), te = fe(K, L, W), Fe = te !== null && te !== ge;
4300
- (Fe || te === null) && (Se(), ge = te, Re()), $t(K, W);
4301
+ y.style.left = L - 2 + "px", y.style.top = W - 2 + "px";
4302
+ var G = z || P, K = b(y, L, W), te = fe(K, L, W), Fe = te !== null && te !== ye;
4303
+ (Fe || te === null) && (Se(), ye = te, Re()), $t(K, W);
4301
4304
  var we = T(G);
4302
- if (te === F && z && !U.copySortSource) {
4305
+ if (te === B && z && !U.copySortSource) {
4303
4306
  we && we.removeChild(G);
4304
4307
  return;
4305
4308
  }
@@ -4307,43 +4310,43 @@ var Rl = { exports: {} };
4307
4310
  if (ie = rt(Ee, te), Ee !== null)
4308
4311
  Ce = mt(te, Ee, L, W);
4309
4312
  else if (U.revertOnSpill === !0 && !z)
4310
- Ce = E, te = F;
4313
+ Ce = E, te = B;
4311
4314
  else {
4312
4315
  z && we && we.removeChild(G), z && Y && (Y.style.display = "none");
4313
4316
  return;
4314
4317
  }
4315
4318
  Y.style.display = "block", Tt(Ce, G, Fe), Ce ? Dt(Ee, Ce) : It(te);
4316
4319
  function pe(he) {
4317
- ae.emit(he, G, ge, F);
4320
+ ae.emit(he, G, ye, B);
4318
4321
  }
4319
4322
  function Re() {
4320
4323
  Fe && pe("over");
4321
4324
  }
4322
4325
  function Se() {
4323
- ge && pe("out");
4326
+ ye && pe("out");
4324
4327
  }
4325
4328
  }
4326
4329
  function Tt(k, L, W) {
4327
- (k === L || k === b(L)) && (q = b(L)), (k === null && W || k !== L && k !== b(L)) && (q = k);
4330
+ (k === L || k === C(L)) && (q = C(L)), (k === null && W || k !== L && k !== C(L)) && (q = k);
4328
4331
  }
4329
4332
  function Ft(k) {
4330
- p.rm(k, "gu-hide");
4333
+ m.rm(k, "gu-hide");
4331
4334
  }
4332
4335
  function Bt(k) {
4333
- ae.dragging && p.add(k, "gu-hide");
4336
+ ae.dragging && m.add(k, "gu-hide");
4334
4337
  }
4335
4338
  function Mt() {
4336
- g || (g = document.createElement("div"), g.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", g.innerHTML = U.getMirrorText && U.getMirrorText(P) || "控件", p.add(g, "gu-mirror"), U.mirrorContainer.appendChild(g), m(h, "add", "mousemove", Ie), p.add(U.mirrorContainer, "gu-unselectable"), ae.emit("cloned", g, P, "mirror"));
4339
+ y || (y = document.createElement("div"), y.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", y.innerHTML = U.getMirrorText && U.getMirrorText(P) || "控件", m.add(y, "gu-mirror"), U.mirrorContainer.appendChild(y), p(h, "add", "mousemove", Ie), m.add(U.mirrorContainer, "gu-unselectable"), ae.emit("cloned", y, P, "mirror"));
4337
4340
  }
4338
4341
  function kt() {
4339
- if (Y = document.createElement("div"), p.add(Y, "gu-insertion"), P) {
4342
+ if (Y = document.createElement("div"), m.add(Y, "gu-insertion"), P) {
4340
4343
  var k = P.getBoundingClientRect();
4341
4344
  Y.style.left = k.left + "px", Y.style.top = k.top + "px";
4342
4345
  }
4343
4346
  ie = !1, U.mirrorContainer.appendChild(Y);
4344
4347
  }
4345
4348
  function Et() {
4346
- g && (p.rm(U.mirrorContainer, "gu-unselectable"), m(h, "remove", "mousemove", Ie), T(g).removeChild(g), g = null);
4349
+ y && (m.rm(U.mirrorContainer, "gu-unselectable"), p(h, "remove", "mousemove", Ie), T(y).removeChild(y), y = null);
4347
4350
  }
4348
4351
  function Rt() {
4349
4352
  Y && (T(Y).removeChild(Y), Y = null);
@@ -4443,34 +4446,34 @@ var Rl = { exports: {} };
4443
4446
  return Ee(K ? W > pe.left + I(pe) / 2 : G > pe.top + $(pe) / 2);
4444
4447
  }
4445
4448
  function Ee(pe) {
4446
- return pe ? b(L) : L;
4449
+ return pe ? C(L) : L;
4447
4450
  }
4448
4451
  }
4449
4452
  function jt(k, L) {
4450
4453
  return typeof U.copy == "boolean" ? U.copy : U.copy(k, L);
4451
4454
  }
4452
4455
  }
4453
- function s(M) {
4456
+ function s(F) {
4454
4457
  const D = Array.from(window.scrollContainerList);
4455
4458
  if (D.length === 1) {
4456
- const g = Array.from(window.scrollContainerList)[0];
4457
- return document.getElementById(g);
4459
+ const y = Array.from(window.scrollContainerList)[0];
4460
+ return document.getElementById(y);
4458
4461
  }
4459
4462
  const O = c(D);
4460
- for (const g of O)
4461
- if (g.contains(M))
4462
- return g;
4463
+ for (const y of O)
4464
+ if (y.contains(F))
4465
+ return y;
4463
4466
  return null;
4464
4467
  }
4465
- function c(M) {
4468
+ function c(F) {
4466
4469
  const D = [];
4467
- return M.forEach((O) => {
4468
- const g = document.getElementById(O);
4469
- g && D.push(g);
4470
- }), D.sort((O, g) => O.contains(g) ? 1 : g.contains(O) ? -1 : 0), D;
4470
+ return F.forEach((O) => {
4471
+ const y = document.getElementById(O);
4472
+ y && D.push(y);
4473
+ }), D.sort((O, y) => O.contains(y) ? 1 : y.contains(O) ? -1 : 0), D;
4471
4474
  }
4472
- function m(M, D, O, g) {
4473
- var F = {
4475
+ function p(F, D, O, y) {
4476
+ var B = {
4474
4477
  mouseup: "touchend",
4475
4478
  mousedown: "touchstart",
4476
4479
  mousemove: "touchmove"
@@ -4483,66 +4486,66 @@ var Rl = { exports: {} };
4483
4486
  mousedown: "MSPointerDown",
4484
4487
  mousemove: "MSPointerMove"
4485
4488
  };
4486
- i.navigator.pointerEnabled ? f[D](M, P[O], g) : i.navigator.msPointerEnabled ? f[D](M, J[O], g) : (f[D](M, F[O], g), f[D](M, O, g));
4489
+ i.navigator.pointerEnabled ? f[D](F, P[O], y) : i.navigator.msPointerEnabled ? f[D](F, J[O], y) : (f[D](F, B[O], y), f[D](F, O, y));
4487
4490
  }
4488
- function y(M) {
4489
- if (M.touches !== void 0)
4490
- return M.touches.length;
4491
- if (M.which !== void 0 && M.which !== 0)
4492
- return M.which;
4493
- if (M.buttons !== void 0)
4494
- return M.buttons;
4495
- var D = M.button;
4491
+ function g(F) {
4492
+ if (F.touches !== void 0)
4493
+ return F.touches.length;
4494
+ if (F.which !== void 0 && F.which !== 0)
4495
+ return F.which;
4496
+ if (F.buttons !== void 0)
4497
+ return F.buttons;
4498
+ var D = F.button;
4496
4499
  if (D !== void 0)
4497
4500
  return D & 1 ? 1 : D & 2 ? 3 : D & 4 ? 2 : 0;
4498
4501
  }
4499
- function w(M, D, O) {
4500
- M = M || {};
4501
- var g = M.className || "", F;
4502
- return M.className += " gu-hide", F = u.elementFromPoint(D, O), M.className = g, F;
4502
+ function b(F, D, O) {
4503
+ F = F || {};
4504
+ var y = F.className || "", B;
4505
+ return F.className += " gu-hide", B = u.elementFromPoint(D, O), F.className = y, B;
4503
4506
  }
4504
4507
  function R() {
4505
4508
  return !1;
4506
4509
  }
4507
- function B() {
4510
+ function M() {
4508
4511
  return !0;
4509
4512
  }
4510
- function I(M) {
4511
- return M.width || M.right - M.left;
4513
+ function I(F) {
4514
+ return F.width || F.right - F.left;
4512
4515
  }
4513
- function $(M) {
4514
- return M.height || M.bottom - M.top;
4516
+ function $(F) {
4517
+ return F.height || F.bottom - F.top;
4515
4518
  }
4516
- function T(M) {
4517
- return M.parentNode === u ? null : M.parentNode;
4519
+ function T(F) {
4520
+ return F.parentNode === u ? null : F.parentNode;
4518
4521
  }
4519
- function x(M) {
4520
- return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" || C(M);
4522
+ function x(F) {
4523
+ return F.tagName === "INPUT" || F.tagName === "TEXTAREA" || F.tagName === "SELECT" || w(F);
4521
4524
  }
4522
- function C(M) {
4523
- return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 : C(T(M));
4525
+ function w(F) {
4526
+ return !F || F.contentEditable === "false" ? !1 : F.contentEditable === "true" ? !0 : w(T(F));
4524
4527
  }
4525
- function b(M) {
4526
- return M.nextElementSibling || D();
4528
+ function C(F) {
4529
+ return F.nextElementSibling || D();
4527
4530
  function D() {
4528
- var O = M;
4531
+ var O = F;
4529
4532
  do
4530
4533
  O = O.nextSibling;
4531
4534
  while (O && O.nodeType !== 1);
4532
4535
  return O;
4533
4536
  }
4534
4537
  }
4535
- function S(M) {
4536
- return M.targetTouches && M.targetTouches.length ? M.targetTouches[0] : M.changedTouches && M.changedTouches.length ? M.changedTouches[0] : M;
4538
+ function S(F) {
4539
+ return F.targetTouches && F.targetTouches.length ? F.targetTouches[0] : F.changedTouches && F.changedTouches.length ? F.changedTouches[0] : F;
4537
4540
  }
4538
- function j(M, D) {
4539
- var O = S(D), g = {
4541
+ function j(F, D) {
4542
+ var O = S(D), y = {
4540
4543
  pageX: "clientX",
4541
4544
  // IE8
4542
4545
  pageY: "clientY"
4543
4546
  // IE8
4544
4547
  };
4545
- return M in g && !(M in O) && g[M] in O && (M = g[M]), O[M];
4548
+ return F in y && !(F in O) && y[F] in O && (F = y[F]), O[F];
4546
4549
  }
4547
4550
  o.exports = r;
4548
4551
  }).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -4554,121 +4557,121 @@ var Rl = { exports: {} };
4554
4557
  }, {}],
4555
4558
  4: [function(n, o, a) {
4556
4559
  var i = n("ticky");
4557
- o.exports = function(f, p, u) {
4560
+ o.exports = function(f, m, u) {
4558
4561
  f && i(function() {
4559
- f.apply(u || null, p || []);
4562
+ f.apply(u || null, m || []);
4560
4563
  });
4561
4564
  };
4562
4565
  }, { ticky: 10 }],
4563
4566
  5: [function(n, o, a) {
4564
4567
  var i = n("atoa"), l = n("./debounce");
4565
- o.exports = function(p, u) {
4568
+ o.exports = function(m, u) {
4566
4569
  var h = u || {}, r = {};
4567
- return p === void 0 && (p = {}), p.on = function(s, c) {
4568
- return r[s] ? r[s].push(c) : r[s] = [c], p;
4569
- }, p.once = function(s, c) {
4570
- return c._once = !0, p.on(s, c), p;
4571
- }, p.off = function(s, c) {
4572
- var m = arguments.length;
4573
- if (m === 1)
4570
+ return m === void 0 && (m = {}), m.on = function(s, c) {
4571
+ return r[s] ? r[s].push(c) : r[s] = [c], m;
4572
+ }, m.once = function(s, c) {
4573
+ return c._once = !0, m.on(s, c), m;
4574
+ }, m.off = function(s, c) {
4575
+ var p = arguments.length;
4576
+ if (p === 1)
4574
4577
  delete r[s];
4575
- else if (m === 0)
4578
+ else if (p === 0)
4576
4579
  r = {};
4577
4580
  else {
4578
- var y = r[s];
4579
- if (!y)
4580
- return p;
4581
- y.splice(y.indexOf(c), 1);
4581
+ var g = r[s];
4582
+ if (!g)
4583
+ return m;
4584
+ g.splice(g.indexOf(c), 1);
4582
4585
  }
4583
- return p;
4584
- }, p.emit = function() {
4586
+ return m;
4587
+ }, m.emit = function() {
4585
4588
  var s = i(arguments);
4586
- return p.emitterSnapshot(s.shift()).apply(this, s);
4587
- }, p.emitterSnapshot = function(s) {
4589
+ return m.emitterSnapshot(s.shift()).apply(this, s);
4590
+ }, m.emitterSnapshot = function(s) {
4588
4591
  var c = (r[s] || []).slice(0);
4589
4592
  return function() {
4590
- var m = i(arguments), y = this || p;
4593
+ var p = i(arguments), g = this || m;
4591
4594
  if (s === "error" && h.throws !== !1 && !c.length)
4592
- throw m.length === 1 ? m[0] : m;
4595
+ throw p.length === 1 ? p[0] : p;
4593
4596
  return c.forEach(function(R) {
4594
- h.async ? l(R, m, y) : R.apply(y, m), R._once && p.off(s, R);
4595
- }), p;
4597
+ h.async ? l(R, p, g) : R.apply(g, p), R._once && m.off(s, R);
4598
+ }), m;
4596
4599
  };
4597
- }, p;
4600
+ }, m;
4598
4601
  };
4599
4602
  }, { "./debounce": 4, atoa: 3 }],
4600
4603
  6: [function(n, o, a) {
4601
4604
  (function(i) {
4602
- var l = n("custom-event"), f = n("./eventmap"), p = i.document, u = s, h = m, r = [];
4603
- i.addEventListener || (u = c, h = y), o.exports = {
4605
+ var l = n("custom-event"), f = n("./eventmap"), m = i.document, u = s, h = p, r = [];
4606
+ i.addEventListener || (u = c, h = g), o.exports = {
4604
4607
  add: u,
4605
4608
  remove: h,
4606
- fabricate: w
4609
+ fabricate: b
4607
4610
  };
4608
- function s(T, x, C, b) {
4609
- return T.addEventListener(x, C, b);
4611
+ function s(T, x, w, C) {
4612
+ return T.addEventListener(x, w, C);
4610
4613
  }
4611
- function c(T, x, C) {
4612
- return T.attachEvent("on" + x, B(T, x, C));
4614
+ function c(T, x, w) {
4615
+ return T.attachEvent("on" + x, M(T, x, w));
4613
4616
  }
4614
- function m(T, x, C, b) {
4615
- return T.removeEventListener(x, C, b);
4617
+ function p(T, x, w, C) {
4618
+ return T.removeEventListener(x, w, C);
4616
4619
  }
4617
- function y(T, x, C) {
4618
- var b = I(T, x, C);
4619
- if (b)
4620
- return T.detachEvent("on" + x, b);
4620
+ function g(T, x, w) {
4621
+ var C = I(T, x, w);
4622
+ if (C)
4623
+ return T.detachEvent("on" + x, C);
4621
4624
  }
4622
- function w(T, x, C) {
4623
- var b = f.indexOf(x) === -1 ? j() : S();
4624
- T.dispatchEvent ? T.dispatchEvent(b) : T.fireEvent("on" + x, b);
4625
+ function b(T, x, w) {
4626
+ var C = f.indexOf(x) === -1 ? j() : S();
4627
+ T.dispatchEvent ? T.dispatchEvent(C) : T.fireEvent("on" + x, C);
4625
4628
  function S() {
4626
- var M;
4627
- return p.createEvent ? (M = p.createEvent("Event"), M.initEvent(x, !0, !0)) : p.createEventObject && (M = p.createEventObject()), M;
4629
+ var F;
4630
+ return m.createEvent ? (F = m.createEvent("Event"), F.initEvent(x, !0, !0)) : m.createEventObject && (F = m.createEventObject()), F;
4628
4631
  }
4629
4632
  function j() {
4630
- return new l(x, { detail: C });
4633
+ return new l(x, { detail: w });
4631
4634
  }
4632
4635
  }
4633
- function R(T, x, C) {
4636
+ function R(T, x, w) {
4634
4637
  return function(S) {
4635
4638
  var j = S || i.event;
4636
4639
  j.target = j.target || j.srcElement, j.preventDefault = j.preventDefault || function() {
4637
4640
  j.returnValue = !1;
4638
4641
  }, j.stopPropagation = j.stopPropagation || function() {
4639
4642
  j.cancelBubble = !0;
4640
- }, j.which = j.which || j.keyCode, C.call(T, j);
4643
+ }, j.which = j.which || j.keyCode, w.call(T, j);
4641
4644
  };
4642
4645
  }
4643
- function B(T, x, C) {
4644
- var b = I(T, x, C) || R(T, x, C);
4646
+ function M(T, x, w) {
4647
+ var C = I(T, x, w) || R(T, x, w);
4645
4648
  return r.push({
4646
- wrapper: b,
4649
+ wrapper: C,
4647
4650
  element: T,
4648
4651
  type: x,
4649
- fn: C
4650
- }), b;
4652
+ fn: w
4653
+ }), C;
4651
4654
  }
4652
- function I(T, x, C) {
4653
- var b = $(T, x, C);
4654
- if (b) {
4655
- var S = r[b].wrapper;
4656
- return r.splice(b, 1), S;
4655
+ function I(T, x, w) {
4656
+ var C = $(T, x, w);
4657
+ if (C) {
4658
+ var S = r[C].wrapper;
4659
+ return r.splice(C, 1), S;
4657
4660
  }
4658
4661
  }
4659
- function $(T, x, C) {
4660
- var b, S;
4661
- for (b = 0; b < r.length; b++)
4662
- if (S = r[b], S.element === T && S.type === x && S.fn === C)
4663
- return b;
4662
+ function $(T, x, w) {
4663
+ var C, S;
4664
+ for (C = 0; C < r.length; C++)
4665
+ if (S = r[C], S.element === T && S.type === x && S.fn === w)
4666
+ return C;
4664
4667
  }
4665
4668
  }).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
4666
4669
  }, { "./eventmap": 7, "custom-event": 8 }],
4667
4670
  7: [function(n, o, a) {
4668
4671
  (function(i) {
4669
- var l = [], f = "", p = /^on/;
4672
+ var l = [], f = "", m = /^on/;
4670
4673
  for (f in i)
4671
- p.test(f) && l.push(f.slice(2));
4674
+ m.test(f) && l.push(f.slice(2));
4672
4675
  o.exports = l;
4673
4676
  }).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
4674
4677
  }, {}],
@@ -4677,8 +4680,8 @@ var Rl = { exports: {} };
4677
4680
  var l = i.CustomEvent;
4678
4681
  function f() {
4679
4682
  try {
4680
- var p = new l("cat", { detail: { foo: "bar" } });
4681
- return p.type === "cat" && p.detail.foo === "bar";
4683
+ var m = new l("cat", { detail: { foo: "bar" } });
4684
+ return m.type === "cat" && m.detail.foo === "bar";
4682
4685
  } catch {
4683
4686
  }
4684
4687
  return !1;
@@ -4700,7 +4703,7 @@ var Rl = { exports: {} };
4700
4703
  }, {}],
4701
4704
  9: [function(n, o, a) {
4702
4705
  var i = o.exports = {}, l, f;
4703
- function p() {
4706
+ function m() {
4704
4707
  throw new Error("setTimeout has not been defined");
4705
4708
  }
4706
4709
  function u() {
@@ -4708,9 +4711,9 @@ var Rl = { exports: {} };
4708
4711
  }
4709
4712
  (function() {
4710
4713
  try {
4711
- typeof setTimeout == "function" ? l = setTimeout : l = p;
4714
+ typeof setTimeout == "function" ? l = setTimeout : l = m;
4712
4715
  } catch {
4713
- l = p;
4716
+ l = m;
4714
4717
  }
4715
4718
  try {
4716
4719
  typeof clearTimeout == "function" ? f = clearTimeout : f = u;
@@ -4721,7 +4724,7 @@ var Rl = { exports: {} };
4721
4724
  function h($) {
4722
4725
  if (l === setTimeout)
4723
4726
  return setTimeout($, 0);
4724
- if ((l === p || !l) && setTimeout)
4727
+ if ((l === m || !l) && setTimeout)
4725
4728
  return l = setTimeout, setTimeout($, 0);
4726
4729
  try {
4727
4730
  return l($, 0);
@@ -4748,20 +4751,20 @@ var Rl = { exports: {} };
4748
4751
  }
4749
4752
  }
4750
4753
  }
4751
- var s = [], c = !1, m, y = -1;
4752
- function w() {
4753
- !c || !m || (c = !1, m.length ? s = m.concat(s) : y = -1, s.length && R());
4754
+ var s = [], c = !1, p, g = -1;
4755
+ function b() {
4756
+ !c || !p || (c = !1, p.length ? s = p.concat(s) : g = -1, s.length && R());
4754
4757
  }
4755
4758
  function R() {
4756
4759
  if (!c) {
4757
- var $ = h(w);
4760
+ var $ = h(b);
4758
4761
  c = !0;
4759
4762
  for (var T = s.length; T; ) {
4760
- for (m = s, s = []; ++y < T; )
4761
- m && m[y].run();
4762
- y = -1, T = s.length;
4763
+ for (p = s, s = []; ++g < T; )
4764
+ p && p[g].run();
4765
+ g = -1, T = s.length;
4763
4766
  }
4764
- m = null, c = !1, r($);
4767
+ p = null, c = !1, r($);
4765
4768
  }
4766
4769
  }
4767
4770
  i.nextTick = function($) {
@@ -4769,12 +4772,12 @@ var Rl = { exports: {} };
4769
4772
  if (arguments.length > 1)
4770
4773
  for (var x = 1; x < arguments.length; x++)
4771
4774
  T[x - 1] = arguments[x];
4772
- s.push(new B($, T)), s.length === 1 && !c && h(R);
4775
+ s.push(new M($, T)), s.length === 1 && !c && h(R);
4773
4776
  };
4774
- function B($, T) {
4777
+ function M($, T) {
4775
4778
  this.fun = $, this.array = T;
4776
4779
  }
4777
- B.prototype.run = function() {
4780
+ M.prototype.run = function() {
4778
4781
  this.fun.apply(null, this.array);
4779
4782
  }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
4780
4783
  function I() {
@@ -4794,44 +4797,44 @@ var Rl = { exports: {} };
4794
4797
  10: [function(n, o, a) {
4795
4798
  (function(i) {
4796
4799
  var l = typeof i == "function", f;
4797
- l ? f = function(p) {
4798
- i(p);
4799
- } : f = function(p) {
4800
- setTimeout(p, 0);
4800
+ l ? f = function(m) {
4801
+ i(m);
4802
+ } : f = function(m) {
4803
+ setTimeout(m, 0);
4801
4804
  }, o.exports = f;
4802
4805
  }).call(this, n("timers").setImmediate);
4803
4806
  }, { timers: 11 }],
4804
4807
  11: [function(n, o, a) {
4805
4808
  (function(i, l) {
4806
- var f = n("process/browser.js").nextTick, p = Function.prototype.apply, u = Array.prototype.slice, h = {}, r = 0;
4809
+ var f = n("process/browser.js").nextTick, m = Function.prototype.apply, u = Array.prototype.slice, h = {}, r = 0;
4807
4810
  a.setTimeout = function() {
4808
- return new s(p.call(setTimeout, window, arguments), clearTimeout);
4811
+ return new s(m.call(setTimeout, window, arguments), clearTimeout);
4809
4812
  }, a.setInterval = function() {
4810
- return new s(p.call(setInterval, window, arguments), clearInterval);
4813
+ return new s(m.call(setInterval, window, arguments), clearInterval);
4811
4814
  }, a.clearTimeout = a.clearInterval = function(c) {
4812
4815
  c.close();
4813
4816
  };
4814
- function s(c, m) {
4815
- this._id = c, this._clearFn = m;
4817
+ function s(c, p) {
4818
+ this._id = c, this._clearFn = p;
4816
4819
  }
4817
4820
  s.prototype.unref = s.prototype.ref = function() {
4818
4821
  }, s.prototype.close = function() {
4819
4822
  this._clearFn.call(window, this._id);
4820
- }, a.enroll = function(c, m) {
4821
- clearTimeout(c._idleTimeoutId), c._idleTimeout = m;
4823
+ }, a.enroll = function(c, p) {
4824
+ clearTimeout(c._idleTimeoutId), c._idleTimeout = p;
4822
4825
  }, a.unenroll = function(c) {
4823
4826
  clearTimeout(c._idleTimeoutId), c._idleTimeout = -1;
4824
4827
  }, a._unrefActive = a.active = function(c) {
4825
4828
  clearTimeout(c._idleTimeoutId);
4826
- var m = c._idleTimeout;
4827
- m >= 0 && (c._idleTimeoutId = setTimeout(function() {
4829
+ var p = c._idleTimeout;
4830
+ p >= 0 && (c._idleTimeoutId = setTimeout(function() {
4828
4831
  c._onTimeout && c._onTimeout();
4829
- }, m));
4832
+ }, p));
4830
4833
  }, a.setImmediate = typeof i == "function" ? i : function(c) {
4831
- var m = r++, y = arguments.length < 2 ? !1 : u.call(arguments, 1);
4832
- return h[m] = !0, f(function() {
4833
- h[m] && (y ? c.apply(null, y) : c.call(null), a.clearImmediate(m));
4834
- }), m;
4834
+ var p = r++, g = arguments.length < 2 ? !1 : u.call(arguments, 1);
4835
+ return h[p] = !0, f(function() {
4836
+ h[p] && (g ? c.apply(null, g) : c.call(null), a.clearImmediate(p));
4837
+ }), p;
4835
4838
  }, a.clearImmediate = typeof l == "function" ? l : function(c) {
4836
4839
  delete h[c];
4837
4840
  };
@@ -4865,30 +4868,30 @@ const Ol = {
4865
4868
  const {
4866
4869
  locale: n,
4867
4870
  t: o
4868
- } = ft(), a = d(e.animate), i = "fadeOut", l = V(() => e.options), f = d(!1), p = V(() => l.value.title && l.value.message), u = V(() => !l.value.title && l.value.message), h = V(() => {
4871
+ } = ft(), a = d(e.animate), i = "fadeOut", l = V(() => e.options), f = d(!1), m = V(() => l.value.title && l.value.message), u = V(() => !l.value.title && l.value.message), h = V(() => {
4869
4872
  const $ = {
4870
4873
  animated: f.value,
4871
4874
  toast: !0,
4872
- "toast--only-content": !p.value
4875
+ "toast--only-content": !m.value
4873
4876
  };
4874
4877
  return $[e.animate] = !1, $[i] = f.value, $["toasty-type-" + l.value.type] = !0, l.value.theme && ($[l.value.theme] = !0), $;
4875
4878
  }), r = V(() => {
4876
- const x = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, C = {
4879
+ const x = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, w = {
4877
4880
  "f-icon": !0
4878
4881
  };
4879
- return C[x] = !0, C;
4880
- }), s = V(() => l.value.title || l.value.message), c = V(() => e.showCloseButton), m = V(() => !!l.value.buttons || !!t.slots.default), y = V(() => n.value === "en" ? {
4882
+ return w[x] = !0, w;
4883
+ }), s = V(() => l.value.title || l.value.message), c = V(() => e.showCloseButton), p = V(() => !!l.value.buttons || !!t.slots.default), g = V(() => n.value === "en" ? {
4881
4884
  wordBreak: "keep-all",
4882
4885
  overflowWrap: "break-word"
4883
4886
  } : {});
4884
- function w($) {
4887
+ function b($) {
4885
4888
  $.stopPropagation(), $.preventDefault(), f.value = !1, setTimeout(() => {
4886
4889
  t.emit("close", l.value);
4887
4890
  }, 200);
4888
4891
  }
4889
4892
  function R($, T) {
4890
4893
  }
4891
- function B($) {
4894
+ function M($) {
4892
4895
  return `f-preten-link ${$.customClass ? $.customClass : ""}`;
4893
4896
  }
4894
4897
  Z(a, () => {
@@ -4899,7 +4902,7 @@ const Ol = {
4899
4902
  return v(ot, null, [v("div", {
4900
4903
  class: "after-toast-msg text-right"
4901
4904
  }, [!t.slots.default && (($ = l.value.buttons) == null ? void 0 : $.map((T) => v("span", {
4902
- class: B(T),
4905
+ class: M(T),
4903
4906
  onClick: (x) => void 0
4904
4907
  }, [T.text]))), t.slots.default && t.slots.default()])]);
4905
4908
  };
@@ -4909,39 +4912,39 @@ const Ol = {
4909
4912
  }, [c.value && v("button", {
4910
4913
  title: o("messageBox.close"),
4911
4914
  class: "toast-close f-btn-icon f-bare",
4912
- onClick: w
4915
+ onClick: b
4913
4916
  }, [v("span", {
4914
4917
  class: "f-icon modal_close"
4915
4918
  }, null)]), s.value && v("section", {
4916
4919
  class: "modal-tips"
4917
- }, [!p.value && v("div", {
4920
+ }, [!m.value && v("div", {
4918
4921
  class: "float-left modal-tips-iconwrap"
4919
4922
  }, [v("span", {
4920
4923
  class: r.value
4921
4924
  }, null)]), v("div", {
4922
4925
  class: "modal-tips-content"
4923
- }, [p.value && v(ot, null, [v("h5", {
4926
+ }, [m.value && v(ot, null, [v("h5", {
4924
4927
  class: "toast-title modal-tips-title",
4925
4928
  innerHTML: l.value.title
4926
4929
  }, null), v("p", {
4927
4930
  class: "toast-msg",
4928
4931
  innerHTML: l.value.message,
4929
- style: y.value
4930
- }, null), m.value && I()]), u.value && (l.value.buttons ? v("div", {
4932
+ style: g.value
4933
+ }, null), p.value && I()]), u.value && (l.value.buttons ? v("div", {
4931
4934
  class: "toast-title-btns-wrapper d-flex"
4932
4935
  }, [v("h5", {
4933
4936
  class: "toast-title modal-tips-title only-toast-msg",
4934
- style: y.value,
4937
+ style: g.value,
4935
4938
  innerHTML: l.value.message
4936
4939
  }, null), v("div", {
4937
4940
  class: "after-toast-title text-right ml-auto"
4938
4941
  }, [I()])]) : v("h5", {
4939
4942
  class: "toast-title modal-tips-title only-toast-msg",
4940
- style: y.value,
4943
+ style: g.value,
4941
4944
  innerHTML: l.value.message
4942
4945
  }, null))])])]);
4943
4946
  }
4944
- }), yt = /* @__PURE__ */ le({
4947
+ }), gt = /* @__PURE__ */ le({
4945
4948
  name: "Notify",
4946
4949
  props: Ol,
4947
4950
  emits: ["close", "empty"],
@@ -4953,22 +4956,22 @@ const Ol = {
4953
4956
  right: 12,
4954
4957
  top: 20,
4955
4958
  bottom: 12
4956
- }, a = d(), i = d(e.options), l = d(e.showCloseButton), f = V(() => e.position || "bottom-right"), p = V(() => e.timeout != null ? e.timeout : 3e3), u = V(() => {
4957
- const s = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top, m = {
4959
+ }, a = d(), i = d(e.options), l = d(e.showCloseButton), f = V(() => e.position || "bottom-right"), m = V(() => e.timeout != null ? e.timeout : 3e3), u = V(() => {
4960
+ const s = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top, p = {
4958
4961
  transition: "all 0.2s ease",
4959
4962
  left: f.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
4960
4963
  right: f.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
4961
4964
  top: f.value.indexOf("top") > -1 ? `${c}px` : "",
4962
4965
  bottom: f.value.indexOf("bottom") > -1 ? `${s}px` : ""
4963
4966
  };
4964
- return f.value.indexOf("center") > -1 && (m.left = "50%", m.marginLeft = "calc(-24rem / 2)", f.value === "center-center" && (m.top = "50%", m.transform = "translate(-50%, -50%)")), m;
4967
+ return f.value.indexOf("center") > -1 && (p.left = "50%", p.marginLeft = "calc(-24rem / 2)", f.value === "center-center" && (p.top = "50%", p.transform = "translate(-50%, -50%)")), p;
4965
4968
  });
4966
4969
  function h(s) {
4967
4970
  t.emit("close");
4968
4971
  }
4969
- p.value && setTimeout(() => {
4972
+ m.value && setTimeout(() => {
4970
4973
  h();
4971
- }, p.value), t.expose({
4974
+ }, m.value), t.expose({
4972
4975
  closeToast: h,
4973
4976
  container: a,
4974
4977
  notifyPosition: f
@@ -5013,7 +5016,7 @@ class Il {
5013
5016
  setup() {
5014
5017
  var u;
5015
5018
  const f = d();
5016
- function p() {
5019
+ function m() {
5017
5020
  f.value.container.style.transform = "scale(0)", setTimeout(() => {
5018
5021
  n.updateNotifyPositionForClose(a, f), l.unmount();
5019
5022
  }, 220);
@@ -5034,10 +5037,10 @@ class Il {
5034
5037
  name: "fade",
5035
5038
  appear: !0
5036
5039
  }, {
5037
- default: () => [v(yt, Lt({
5040
+ default: () => [v(gt, Lt({
5038
5041
  ref: f
5039
5042
  }, a, {
5040
- onClose: p
5043
+ onClose: m
5041
5044
  }), null)]
5042
5045
  });
5043
5046
  }
@@ -5108,8 +5111,8 @@ class Il {
5108
5111
  }
5109
5112
  }
5110
5113
  const $l = Symbol("NOTIFY_SERVICE_TOKEN");
5111
- yt.install = (e) => {
5112
- e.component(yt.name, yt), e.component(Pt.name, Pt);
5114
+ gt.install = (e) => {
5115
+ e.component(gt.name, gt), e.component(Pt.name, Pt);
5113
5116
  const t = new Il();
5114
5117
  e.provide($l, t), e.provide("FNotifyService", t);
5115
5118
  };
@@ -5263,32 +5266,32 @@ const jl = {
5263
5266
  }
5264
5267
  }
5265
5268
  };
5266
- function Nl(e, t, n, o, a, i, l, f, p, u, h, r, s, c, m, y, w) {
5269
+ function Nl(e, t, n, o, a, i, l, f, m, u, h, r, s, c, p, g, b) {
5267
5270
  const {
5268
5271
  calculateCellPositionInRow: R
5269
5272
  } = i, {
5270
- columnContext: B,
5273
+ columnContext: M,
5271
5274
  hasLeftFixedColumn: I,
5272
5275
  hasRightFixedColumn: $
5273
5276
  } = l, {
5274
5277
  gridDataStyle: T,
5275
5278
  leftFixedGridDataStyle: x,
5276
- rightFixedGridDataStyle: C
5279
+ rightFixedGridDataStyle: w
5277
5280
  } = c, {
5278
- renderDataRow: b
5279
- } = Un(e, t, B, w, f, p, u, h, r, s, c, m, y), S = [b];
5280
- function j(F, P) {
5281
- const J = R(F);
5282
- return w.value.filter((A) => A.visible !== !1).map((A, E) => S[A.type](A, J, P, E));
5281
+ renderDataRow: C
5282
+ } = Un(e, t, M, b, f, m, u, h, r, s, c, p, g), S = [C];
5283
+ function j(B, P) {
5284
+ const J = R(B);
5285
+ return b.value.filter((A) => A.visible !== !1).map((A, E) => S[A.type](A, J, P, E));
5283
5286
  }
5284
- function M() {
5287
+ function F() {
5285
5288
  return v("div", {
5286
5289
  ref: o,
5287
5290
  class: "fv-grid-content-left-fixed"
5288
5291
  }, [v("div", {
5289
5292
  class: "fv-grid-data",
5290
5293
  style: x.value
5291
- }, [j(B.value.leftColumns.filter((F) => F.visible), "left")])]);
5294
+ }, [j(M.value.leftColumns.filter((B) => B.visible), "left")])]);
5292
5295
  }
5293
5296
  function D() {
5294
5297
  return v("div", {
@@ -5297,7 +5300,7 @@ function Nl(e, t, n, o, a, i, l, f, p, u, h, r, s, c, m, y, w) {
5297
5300
  }, [v("div", {
5298
5301
  class: "fv-grid-data",
5299
5302
  style: T.value
5300
- }, [j(B.value.primaryColumns.filter((F) => F.visible), "primary")])]);
5303
+ }, [j(M.value.primaryColumns.filter((B) => B.visible), "primary")])]);
5301
5304
  }
5302
5305
  function O() {
5303
5306
  return v("div", {
@@ -5305,15 +5308,15 @@ function Nl(e, t, n, o, a, i, l, f, p, u, h, r, s, c, m, y, w) {
5305
5308
  class: "fv-grid-content-right-fixed"
5306
5309
  }, [v("div", {
5307
5310
  class: "fv-grid-data",
5308
- style: C.value
5309
- }, [j(B.value.rightColumns.filter((F) => F.visible), "right")])]);
5311
+ style: w.value
5312
+ }, [j(M.value.rightColumns.filter((B) => B.visible), "right")])]);
5310
5313
  }
5311
- function g() {
5312
- const F = [];
5313
- return I.value && F.push(M()), F.push(D()), $.value && F.push(O()), F;
5314
+ function y() {
5315
+ const B = [];
5316
+ return I.value && B.push(F()), B.push(D()), $.value && B.push(O()), B;
5314
5317
  }
5315
5318
  return {
5316
- renderDataArea: g
5319
+ renderDataArea: y
5317
5320
  };
5318
5321
  }
5319
5322
  const Al = /* @__PURE__ */ le({
@@ -5324,19 +5327,19 @@ const Al = /* @__PURE__ */ le({
5324
5327
  var Ut, Gt;
5325
5328
  const o = ((Ut = e.rowOption) == null ? void 0 : Ut.height) || 28, a = d(20), i = d(e.columns), l = Gn(e), {
5326
5329
  idField: f
5327
- } = l, p = d(), u = d(), h = d(), r = d(), s = d(), c = d([]), m = d(!1), y = d(((Gt = e.rowOption) == null ? void 0 : Gt.wrapContent) || !1), w = Xn(e, l), R = Yn(e, t), B = Jn(e), {
5330
+ } = l, m = d(), u = d(), h = d(), r = d(), s = d(), c = d([]), p = d(!1), g = d(((Gt = e.rowOption) == null ? void 0 : Gt.wrapContent) || !1), b = Xn(e, l), R = Yn(e, t), M = Jn(e), {
5328
5331
  collapseField: I
5329
- } = B, {
5332
+ } = M, {
5330
5333
  showLoading: $,
5331
5334
  renderLoading: T
5332
- } = Qn(e, p), x = Zn(e, /* @__PURE__ */ new Map(), R, B, l), {
5333
- dataView: C
5334
- } = x, b = Kn(e, x, l, c, t), {
5335
+ } = Qn(e, m), x = Zn(e, /* @__PURE__ */ new Map(), R, M, l), {
5336
+ dataView: w
5337
+ } = x, C = Kn(e, x, l, c, t), {
5335
5338
  showSelection: S,
5336
5339
  selectedValues: j
5337
- } = b, M = eo(e, c, x, l, b, t), D = V(() => e.disabled), O = V(() => e.virtualized ? Math.min(x.dataView.value.length, a.value) : x.dataView.value.length), g = to(e, x), {
5338
- shouldRenderPagination: F
5339
- } = g, {
5340
+ } = C, F = eo(e, c, x, l, C, t), D = V(() => e.disabled), O = V(() => e.virtualized ? Math.min(x.dataView.value.length, a.value) : x.dataView.value.length), y = to(e, x), {
5341
+ shouldRenderPagination: B
5342
+ } = y, {
5340
5343
  containerStyleObject: P
5341
5344
  } = no(e), J = oo(e), {
5342
5345
  applyCommands: A
@@ -5348,25 +5351,25 @@ const Al = /* @__PURE__ */ le({
5348
5351
  } = ao(e);
5349
5352
  e.showSetting && E(i);
5350
5353
  const z = io(e, t), ee = lo(e), {
5351
- applyColumnSorter: ge,
5354
+ applyColumnSorter: ye,
5352
5355
  columnContext: be,
5353
5356
  updateColumnRenderContext: Y
5354
5357
  } = z;
5355
- ge(x, ee);
5356
- const ie = ro(e, be), de = so(e, t, b, l), oe = uo(e, t, l, de, c), U = co(e), ae = fo(e, oe, U), We = po(e, x, oe, B, l, U, ae), Ne = mo(e, i, x, O, 0, We), {
5358
+ ye(x, ee);
5359
+ const ie = ro(e, be), de = so(e, t, C, l), oe = uo(e, t, l, de, c), U = co(e), ae = fo(e, oe, U), We = po(e, x, oe, M, l, U, ae), Ne = mo(e, i, x, O, 0, We), {
5357
5360
  getVisualData: Me
5358
- } = Ne, Qe = vo(e, be), qe = ho(e, b), {
5361
+ } = Ne, Qe = vo(e, be), qe = ho(e, C), {
5359
5362
  sidebarWidth: Ze
5360
- } = qe, se = yo(e, x, c, be, Ne, O, 0, Ze), {
5363
+ } = qe, se = go(e, x, c, be, Ne, O, 0, Ze), {
5361
5364
  onWheel: it,
5362
5365
  dataGridWidth: Ae,
5363
5366
  viewPortHeight: Pe,
5364
5367
  viewPortWidth: ke,
5365
5368
  resetScroll: Le,
5366
5369
  updateVisibleRowsOnLatestVisibleScope: lt
5367
- } = se, _e = go(e, be, u, ke, ie), {
5370
+ } = se, _e = yo(e, be, u, ke, ie), {
5368
5371
  calculateColumnsSize: De
5369
- } = _e, Ve = bo(), Ke = wo(u, s, x, Ve, se), et = Co(e, t, z, x, ie, w, se), N = V(() => {
5372
+ } = _e, Ve = bo(), Ke = wo(u, s, x, Ve, se), et = Co(e, t, z, x, ie, b, se), N = V(() => {
5370
5373
  const _ = {
5371
5374
  "fv-grid": !0,
5372
5375
  "fv-grid-bordered": e.showBorder,
@@ -5376,17 +5379,17 @@ const Al = /* @__PURE__ */ le({
5376
5379
  return Wn(_, e.customClass);
5377
5380
  }), Q = V(() => ({
5378
5381
  "fv-grid-content": !0,
5379
- "fv-grid-content-hover": m.value,
5380
- "fv-grid-wrap-content": y.value
5382
+ "fv-grid-content-hover": p.value,
5383
+ "fv-grid-wrap-content": g.value
5381
5384
  })), {
5382
5385
  renderDataArea: ue
5383
- } = Nl(e, t, h, r, s, Qe, z, x, oe, B, de, b, M, se, Ne, U, c), {
5386
+ } = Nl(e, t, h, r, s, Qe, z, x, oe, M, de, C, F, se, Ne, U, c), {
5384
5387
  renderGridHeader: fe,
5385
5388
  renderGridColumnResizeOverlay: Ie,
5386
5389
  shouldShowHeader: Tt
5387
- } = So(e, t, u, r, s, z, x, et, Ke, R, Ve, _e, ie, b, qe, ee, se, ke, c), {
5390
+ } = So(e, t, u, r, s, z, x, et, Ke, R, Ve, _e, ie, C, qe, ee, se, ke, c), {
5388
5391
  renderDataGridSidebar: Ft
5389
- } = xo(e, de, b, qe, se), {
5392
+ } = xo(e, de, C, qe, se), {
5390
5393
  renderDisableMask: Bt
5391
5394
  } = To(), {
5392
5395
  renderHorizontalScrollbar: Mt
@@ -5396,8 +5399,8 @@ const Al = /* @__PURE__ */ le({
5396
5399
  function Et() {
5397
5400
  var _, X, me;
5398
5401
  if (u.value && u.value.clientHeight > 0 && ((_ = u.value) == null ? void 0 : _.clientWidth) > 0) {
5399
- const ye = Math.ceil(u.value.clientHeight / o);
5400
- ye > a.value && (a.value = ye, lt()), Pe.value = ((X = h.value) == null ? void 0 : X.clientHeight) || 0, Ae.value = ((me = u.value) == null ? void 0 : me.clientWidth) || 0, De();
5402
+ const ge = Math.ceil(u.value.clientHeight / o);
5403
+ ge > a.value && (a.value = ge, lt()), Pe.value = ((X = h.value) == null ? void 0 : X.clientHeight) || 0, Ae.value = ((me = u.value) == null ? void 0 : me.clientWidth) || 0, De();
5401
5404
  }
5402
5405
  }
5403
5406
  Be(() => {
@@ -5415,7 +5418,7 @@ const Al = /* @__PURE__ */ le({
5415
5418
  x.expandTo(_), x.reOrderVisibleIndex(), Le();
5416
5419
  }
5417
5420
  function rt() {
5418
- const _ = b.getSelectionRow();
5421
+ const _ = C.getSelectionRow();
5419
5422
  return _ ? _.dataIndex - 1 : -1;
5420
5423
  }
5421
5424
  function Ot() {
@@ -5427,12 +5430,12 @@ const Al = /* @__PURE__ */ le({
5427
5430
  x.insertNewChildDataItem(_), c.value = Me(0, O.value + 0 - 1);
5428
5431
  }
5429
5432
  function It(_, X) {
5430
- const me = c.value.find((xe) => xe.raw[f.value] === X), ye = me ? me.dataIndex - 1 : -1;
5431
- x.insertNewChildDataItems(_, ye);
5433
+ const me = c.value.find((xe) => xe.raw[f.value] === X), ge = me ? me.dataIndex - 1 : -1;
5434
+ x.insertNewChildDataItems(_, ge);
5432
5435
  }
5433
5436
  function $t() {
5434
- const _ = rt(), X = M.getNextSelectableHierarchyItemId(_);
5435
- x.removeHierarchyDataItem(_), c.value = Me(0, O.value + 0 - 1), X && b.selectItemById(X);
5437
+ const _ = rt(), X = F.getNextSelectableHierarchyItemId(_);
5438
+ x.removeHierarchyDataItem(_), c.value = Me(0, O.value + 0 - 1), X && F.selectItemById(X);
5436
5439
  }
5437
5440
  function mt(_) {
5438
5441
  oe.onEditingRow(_);
@@ -5444,7 +5447,7 @@ const Al = /* @__PURE__ */ le({
5444
5447
  oe.cancelEditingRow(_);
5445
5448
  }
5446
5449
  function L(_) {
5447
- _ && (i.value = _, A(i), Y(i.value), ge(x, ee), De());
5450
+ _ && (i.value = _, A(i), Y(i.value), ye(x, ee), De());
5448
5451
  }
5449
5452
  Z(() => e.columns, (_) => {
5450
5453
  L(_);
@@ -5453,7 +5456,7 @@ const Al = /* @__PURE__ */ le({
5453
5456
  _ && (x.load(_), x.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Le());
5454
5457
  }
5455
5458
  function G(_) {
5456
- b.selectItemById(_);
5459
+ F.selectItemById(_);
5457
5460
  }
5458
5461
  function K(_) {
5459
5462
  const X = c.value.find((me) => me.raw[l.idField.value] === _);
@@ -5463,31 +5466,31 @@ const Al = /* @__PURE__ */ le({
5463
5466
  de.activeRowById(_);
5464
5467
  }
5465
5468
  function Fe(_) {
5466
- b.selectItemByIds(_);
5469
+ F.selectItemByIds(_);
5467
5470
  }
5468
5471
  function we() {
5469
- return b.getSelectedItems();
5472
+ return C.getSelectedItems();
5470
5473
  }
5471
5474
  function Ce() {
5472
- b.clearSelection();
5475
+ C.clearSelection();
5473
5476
  }
5474
5477
  const Ee = V(() => !c.value || !c.value.length), {
5475
5478
  renderEmpty: pe
5476
5479
  } = Mo(e, t);
5477
5480
  function Re() {
5478
- return b.getSelectionRow();
5481
+ return C.getSelectionRow();
5479
5482
  }
5480
5483
  function Se(_) {
5481
- b.unSelectItemByIds(_);
5484
+ F.unSelectItemByIds(_);
5482
5485
  }
5483
5486
  function he() {
5484
- return b.currentSelectedDataId.value;
5487
+ return C.currentSelectedDataId.value;
5485
5488
  }
5486
5489
  function st(_, X, me) {
5487
- const ye = C.value.find((xe) => xe[f.value] === _);
5488
- if (ye) {
5489
- if (Object.keys(ye).forEach((ve) => {
5490
- Object.prototype.hasOwnProperty.call(X, ve) && (ye[ve] = X[ve]);
5490
+ const ge = w.value.find((xe) => xe[f.value] === _);
5491
+ if (ge) {
5492
+ if (Object.keys(ge).forEach((ve) => {
5493
+ Object.prototype.hasOwnProperty.call(X, ve) && (ge[ve] = X[ve]);
5491
5494
  }), me) {
5492
5495
  const {
5493
5496
  collapseField: ve,
@@ -5495,12 +5498,12 @@ const Al = /* @__PURE__ */ le({
5495
5498
  checkedField: Ge,
5496
5499
  visibleField: Xe
5497
5500
  } = me;
5498
- ve && !$e(X[ve]) && (ye.__fv_collapse__ = X[ve]), Ge && !$e(X[Ge]) && (ye.__fv_checked__ = X[Ge]), Ue && !$e(X[Ue]) && (ye.__fv_disabled__ = X[Ue]), Xe && !$e(X[Xe]) && (ye.__fv_visible__ = X[Xe]);
5501
+ ve && !$e(X[ve]) && (ge.__fv_collapse__ = X[ve]), Ge && !$e(X[Ge]) && (ge.__fv_checked__ = X[Ge]), Ue && !$e(X[Ue]) && (ge.__fv_disabled__ = X[Ue]), Xe && !$e(X[Xe]) && (ge.__fv_visible__ = X[Xe]);
5499
5502
  }
5500
5503
  const xe = c.value.find((ve) => ve.raw[f.value] === _), Xt = c.value.findIndex((ve) => ve.raw[f.value] === _);
5501
5504
  if (xe) {
5502
- if (xe.raw = ye, Object.keys(xe.data).forEach((ve) => {
5503
- xe.data[ve].updateData(ye);
5505
+ if (xe.raw = ge, Object.keys(xe.data).forEach((ve) => {
5506
+ xe.data[ve].updateData(ge);
5504
5507
  }), me) {
5505
5508
  const {
5506
5509
  collapseField: ve,
@@ -5531,11 +5534,11 @@ const Al = /* @__PURE__ */ le({
5531
5534
  return c.value.filter((X) => _.includes(X.raw[e.idField]));
5532
5535
  }
5533
5536
  function Tn(_) {
5534
- const X = l.idField.value, me = c.value.find((ye) => ye.raw[X] === _);
5537
+ const X = l.idField.value, me = c.value.find((ge) => ge.raw[X] === _);
5535
5538
  me && de.changeRow(me);
5536
5539
  }
5537
5540
  function Fn() {
5538
- b.keepSelectingOnPaging.value || Ce(), x.updateVisibleDataSummary(c.value);
5541
+ C.keepSelectingOnPaging.value || Ce(), x.updateVisibleDataSummary(c.value);
5539
5542
  }
5540
5543
  t.expose({
5541
5544
  activeRowById: te,
@@ -5573,11 +5576,11 @@ const Al = /* @__PURE__ */ le({
5573
5576
  ...P.value,
5574
5577
  borderRadius: "5px"
5575
5578
  }));
5576
- ko(e, t, x, se, g, b);
5579
+ ko(e, t, x, se, y, C);
5577
5580
  const kn = V(() => ({
5578
5581
  "d-flex": !0,
5579
- "justify-content-between": F.value && S.value,
5580
- "justify-content-end": F.value && !S.value,
5582
+ "justify-content-between": B.value && S.value,
5583
+ "justify-content-end": B.value && !S.value,
5581
5584
  "position-relative": !0
5582
5585
  })), En = V(() => ({
5583
5586
  "d-flex": !0,
@@ -5586,15 +5589,15 @@ const Al = /* @__PURE__ */ le({
5586
5589
  renderDataGridSummary: Rn
5587
5590
  } = Eo(e, x, z);
5588
5591
  return () => v("div", {
5589
- ref: p,
5592
+ ref: m,
5590
5593
  class: N.value,
5591
5594
  style: Mn.value,
5592
5595
  onWheel: it
5593
5596
  }, [u.value && Tt.value && fe(), v("div", {
5594
5597
  ref: u,
5595
5598
  class: Q.value,
5596
- onMouseover: () => m.value = !0,
5597
- onMouseleave: () => m.value = !1,
5599
+ onMouseover: () => p.value = !0,
5600
+ onMouseleave: () => p.value = !1,
5598
5601
  style: Bn.value
5599
5602
  }, [u.value && Ft(c), u.value && ue(), u.value && Ee.value && pe(), u.value && Mt(), u.value && kt()]), u.value && Rn(), S.value && v("div", {
5600
5603
  class: kn.value
@@ -5743,13 +5746,13 @@ const Vl = "https://json-schema.org/draft/2020-12/schema", Hl = "https://farris-
5743
5746
  };
5744
5747
  je(Kl, Gl, Pl, Ll, Zl);
5745
5748
  function er(e, t, n) {
5746
- var M;
5749
+ var F;
5747
5750
  const o = "", a = "", i = d();
5748
5751
  let l;
5749
5752
  function f() {
5750
5753
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
5751
5754
  }
5752
- function p() {
5755
+ function m() {
5753
5756
  return !1;
5754
5757
  }
5755
5758
  function u() {
@@ -5763,76 +5766,76 @@ function er(e, t, n) {
5763
5766
  return null;
5764
5767
  if (D.value.schema && D.value.schema.type === "component")
5765
5768
  return D.value;
5766
- const O = d(D == null ? void 0 : D.value.parent), g = r(O);
5767
- return g || null;
5769
+ const O = d(D == null ? void 0 : D.value.parent), y = r(O);
5770
+ return y || null;
5768
5771
  }
5769
5772
  function s(D = t) {
5770
5773
  var P;
5771
- const { componentInstance: O, designerItemElementRef: g } = D;
5774
+ const { componentInstance: O, designerItemElementRef: y } = D;
5772
5775
  if (!O || !O.value)
5773
5776
  return null;
5774
- const { getCustomButtons: F } = O.value;
5775
- return O.value.canMove || F && ((P = F()) != null && P.length) ? g : s(D.parent);
5777
+ const { getCustomButtons: B } = O.value;
5778
+ return O.value.canMove || B && ((P = B()) != null && P.length) ? y : s(D.parent);
5776
5779
  }
5777
5780
  function c(D) {
5778
5781
  return !!n;
5779
5782
  }
5780
- function m() {
5783
+ function p() {
5781
5784
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
5782
5785
  }
5783
- function y() {
5786
+ function g() {
5784
5787
  }
5785
- function w(D, O) {
5786
- var g;
5787
- !D || !O || (g = t == null ? void 0 : t.setupContext) == null || g.emit("dragEnd");
5788
+ function b(D, O) {
5789
+ var y;
5790
+ !D || !O || (y = t == null ? void 0 : t.setupContext) == null || y.emit("dragEnd");
5788
5791
  }
5789
5792
  function R(D, O) {
5790
- const { componentType: g } = D;
5791
- let F = Ln(g, D, O);
5792
- const P = g.toLowerCase().replace(/-/g, "_");
5793
- return F && !F.id && F.type === g && (F.id = `${P}_${Math.random().toString().slice(2, 6)}`), F;
5793
+ const { componentType: y } = D;
5794
+ let B = Ln(y, D, O);
5795
+ const P = y.toLowerCase().replace(/-/g, "_");
5796
+ return B && !B.id && B.type === y && (B.id = `${P}_${Math.random().toString().slice(2, 6)}`), B;
5794
5797
  }
5795
- function B(D) {
5798
+ function M(D) {
5796
5799
  }
5797
5800
  function I(...D) {
5798
5801
  }
5799
5802
  function $(D) {
5800
5803
  if (!D)
5801
5804
  return;
5802
- const O = t == null ? void 0 : t.schema, { formSchemaUtils: g } = D;
5803
- if (O && g.getExpressions().length) {
5804
- const F = g.getExpressions().findIndex((P) => P.target === O.id);
5805
- F > -1 && g.getExpressions().splice(F, 1);
5805
+ const O = t == null ? void 0 : t.schema, { formSchemaUtils: y } = D;
5806
+ if (O && y.getExpressions().length) {
5807
+ const B = y.getExpressions().findIndex((P) => P.target === O.id);
5808
+ B > -1 && y.getExpressions().splice(B, 1);
5806
5809
  }
5807
5810
  }
5808
5811
  function T(D) {
5809
5812
  if (!D || !(t != null && t.schema))
5810
5813
  return;
5811
- const O = t.schema, { formSchemaUtils: g } = D;
5812
- g.removeCommunicationInComponent(O);
5814
+ const O = t.schema, { formSchemaUtils: y } = D;
5815
+ y.removeCommunicationInComponent(O);
5813
5816
  }
5814
5817
  function x(D) {
5815
5818
  $(D), T(D), t != null && t.schema.contents && t.schema.contents.map((O) => {
5816
- let g = O.id;
5817
- O.type === "component-ref" && (g = O.component);
5818
- const F = e.value.querySelectorAll(`#${g}-design-item`);
5819
- F != null && F.length && Array.from(F).map((P) => {
5819
+ let y = O.id;
5820
+ O.type === "component-ref" && (y = O.component);
5821
+ const B = e.value.querySelectorAll(`#${y}-design-item`);
5822
+ B != null && B.length && Array.from(B).map((P) => {
5820
5823
  var J;
5821
5824
  (J = P == null ? void 0 : P.componentInstance) != null && J.value.onRemoveComponent && P.componentInstance.value.onRemoveComponent(D);
5822
5825
  });
5823
5826
  });
5824
5827
  }
5825
- function C() {
5828
+ function w() {
5826
5829
  }
5827
- function b(D) {
5828
- var g, F;
5829
- if (!((g = t == null ? void 0 : t.schema) != null && g.id))
5830
+ function C(D) {
5831
+ var y, B;
5832
+ if (!((y = t == null ? void 0 : t.schema) != null && y.id))
5830
5833
  return;
5831
5834
  !l && D && (l = D.formSchemaUtils);
5832
5835
  let O = "";
5833
5836
  {
5834
5837
  const { text: P, title: J, label: A, mainTitle: E, name: q, type: z } = t.schema;
5835
- O = P || J || A || E || q || ((F = H[z]) == null ? void 0 : F.name);
5838
+ O = P || J || A || E || q || ((B = H[z]) == null ? void 0 : B.name);
5836
5839
  }
5837
5840
  O && l.getControlBasicInfoMap().set(t.schema.id, {
5838
5841
  componentTitle: O,
@@ -5841,15 +5844,15 @@ function er(e, t, n) {
5841
5844
  }
5842
5845
  function S(D) {
5843
5846
  var P;
5844
- const { changeObject: O } = D, { propertyID: g, propertyValue: F } = O;
5845
- if (["text", "title", "label", "name", "mainTitle"].includes((P = D == null ? void 0 : D.changeObject) == null ? void 0 : P.propertyID) && g && F && (b(), l)) {
5847
+ const { changeObject: O } = D, { propertyID: y, propertyValue: B } = O;
5848
+ if (["text", "title", "label", "name", "mainTitle"].includes((P = D == null ? void 0 : D.changeObject) == null ? void 0 : P.propertyID) && y && B && (C(), l)) {
5846
5849
  const J = l.getControlBasicInfoMap(), A = J.keys().toArray().filter((E) => {
5847
5850
  var q, z;
5848
5851
  return ((q = J.get(E)) == null ? void 0 : q.reliedComponentId) === ((z = t == null ? void 0 : t.schema) == null ? void 0 : z.id);
5849
5852
  });
5850
5853
  A != null && A.length && A.forEach((E) => {
5851
5854
  const q = J.get(E).parentPathName.split(" > ");
5852
- q[0] = F, J.get(E).parentPathName = q.join(" > ");
5855
+ q[0] = B, J.get(E).parentPathName = q.join(" > ");
5853
5856
  });
5854
5857
  }
5855
5858
  }
@@ -5858,30 +5861,30 @@ function er(e, t, n) {
5858
5861
  }
5859
5862
  return i.value = {
5860
5863
  canMove: f(),
5861
- canSelectParent: p(),
5864
+ canSelectParent: m(),
5862
5865
  canDelete: u(),
5863
5866
  canNested: !h(),
5864
5867
  contents: t == null ? void 0 : t.schema.contents,
5865
5868
  elementRef: e,
5866
- parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
5869
+ parent: (F = t == null ? void 0 : t.parent) == null ? void 0 : F.componentInstance,
5867
5870
  schema: t == null ? void 0 : t.schema,
5868
5871
  styles: o,
5869
5872
  designerClass: a,
5870
5873
  canAccepts: c,
5871
5874
  getBelongedComponentInstance: r,
5872
5875
  getDraggableDesignItemElement: s,
5873
- getDraggingDisplayText: m,
5876
+ getDraggingDisplayText: p,
5874
5877
  getPropConfig: I,
5875
- getDragScopeElement: y,
5876
- onAcceptMovedChildElement: w,
5877
- onChildElementMovedOut: B,
5878
+ getDragScopeElement: g,
5879
+ onAcceptMovedChildElement: b,
5880
+ onChildElementMovedOut: M,
5878
5881
  addNewChildComponentSchema: R,
5879
5882
  triggerBelongedComponentToMoveWhenMoved: d(!1),
5880
5883
  triggerBelongedComponentToDeleteWhenDeleted: d(!1),
5881
5884
  onRemoveComponent: x,
5882
- getCustomButtons: C,
5885
+ getCustomButtons: w,
5883
5886
  onPropertyChanged: j,
5884
- setComponentBasicInfoMap: b,
5887
+ setComponentBasicInfoMap: C,
5885
5888
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
5886
5889
  }, i;
5887
5890
  }
@@ -5944,7 +5947,7 @@ class nr {
5944
5947
  const { selectedFields: i } = t;
5945
5948
  i == null || i.forEach((f) => {
5946
5949
  if (f.$type === Jt.SimpleField) {
5947
- const p = Te(f), u = this.resolveControlClassByFormColumns(t), h = this.controlCreatorUtils.setFormFieldProperty(p, "", u);
5950
+ const m = Te(f), u = this.resolveControlClassByFormColumns(t), h = this.controlCreatorUtils.setFormFieldProperty(m, "", u);
5948
5951
  h && a.push(h);
5949
5952
  }
5950
5953
  });
@@ -6012,12 +6015,12 @@ class nr {
6012
6015
  }
6013
6016
  }
6014
6017
  function or(e, t, n, o) {
6015
- var i, l, f, p, u, h;
6018
+ var i, l, f, m, u, h;
6016
6019
  const a = n.parentComponentInstance;
6017
6020
  if (a && o) {
6018
6021
  const r = (i = a.schema) == null ? void 0 : i.type, c = {
6019
6022
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
6020
- componentName: ((l = n.bindingSourceContext) == null ? void 0 : l.entityTitle) || ((p = (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntity) == null ? void 0 : p.name) || "标题",
6023
+ componentName: ((l = n.bindingSourceContext) == null ? void 0 : l.entityTitle) || ((m = (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntity) == null ? void 0 : m.name) || "标题",
6021
6024
  componentType: "form",
6022
6025
  formColumns: r === "splitter-pane" ? 1 : 4,
6023
6026
  parentContainerId: a.schema.id,
@@ -6116,7 +6119,7 @@ je(
6116
6119
  qt,
6117
6120
  void 0
6118
6121
  );
6119
- const vr = "https://json-schema.org/draft/2020-12/schema", hr = "https://farris-design.gitee.io/grid-field-editor.schema.json", yr = "response-form-layout-setting", gr = "A Farris Data Grid Component", br = "object", wr = {
6122
+ const vr = "https://json-schema.org/draft/2020-12/schema", hr = "https://farris-design.gitee.io/grid-field-editor.schema.json", gr = "response-form-layout-setting", yr = "A Farris Data Grid Component", br = "object", wr = {
6120
6123
  id: {
6121
6124
  description: "The unique identifier for a Input Group",
6122
6125
  type: "string"
@@ -6136,8 +6139,8 @@ const vr = "https://json-schema.org/draft/2020-12/schema", hr = "https://farris-
6136
6139
  ], Sr = {
6137
6140
  $schema: vr,
6138
6141
  $id: hr,
6139
- title: yr,
6140
- description: gr,
6142
+ title: gr,
6143
+ description: yr,
6141
6144
  type: br,
6142
6145
  properties: wr,
6143
6146
  required: Cr
@@ -6206,7 +6209,7 @@ function kr() {
6206
6209
  return { onCopy: e };
6207
6210
  }
6208
6211
  function Er(e, t, n, o) {
6209
- const a = d(14), i = d(140), l = d(""), f = d(o.value.length), p = V(() => o.value), u = V(() => ({
6212
+ const a = d(14), i = d(140), l = d(""), f = d(o.value.length), m = V(() => o.value), u = V(() => ({
6210
6213
  "font-size": `${a.value}px`,
6211
6214
  height: "100%"
6212
6215
  }));
@@ -6224,7 +6227,7 @@ function Er(e, t, n, o) {
6224
6227
  rows: "4",
6225
6228
  maxlength: i.value,
6226
6229
  onInput: (r) => h(r)
6227
- }, [p.value]), v("span", {
6230
+ }, [m.value]), v("span", {
6228
6231
  class: "textarea-wordcount",
6229
6232
  title: l.value,
6230
6233
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
@@ -6272,24 +6275,24 @@ function Ir(e, t) {
6272
6275
  function n(c) {
6273
6276
  if (c == null)
6274
6277
  return 0;
6275
- let m = 0;
6276
- for (let y = 0; y < c.length; y++) {
6277
- const w = c.charCodeAt(y);
6278
- w >= 0 && w <= 128 ? m++ : m = m + 2;
6278
+ let p = 0;
6279
+ for (let g = 0; g < c.length; g++) {
6280
+ const b = c.charCodeAt(g);
6281
+ b >= 0 && b <= 128 ? p++ : p = p + 2;
6279
6282
  }
6280
- return m;
6283
+ return p;
6281
6284
  }
6282
- function o(c, m) {
6285
+ function o(c, p) {
6283
6286
  if (c !== "" && c !== void 0 && c !== null) {
6284
6287
  c = "" + c;
6285
- const y = c.length;
6286
- let w = "", R = 0;
6287
- for (let B = 0; B < y; B++) {
6288
- const I = c.charAt(B);
6289
- if (R++, encodeURI(I).length > 4 && R++, w = w.concat(I), R >= m)
6290
- return w = w.concat("..."), w;
6288
+ const g = c.length;
6289
+ let b = "", R = 0;
6290
+ for (let M = 0; M < g; M++) {
6291
+ const I = c.charAt(M);
6292
+ if (R++, encodeURI(I).length > 4 && R++, b = b.concat(I), R >= p)
6293
+ return b = b.concat("..."), b;
6291
6294
  }
6292
- if (R < m)
6295
+ if (R < p)
6293
6296
  return c;
6294
6297
  }
6295
6298
  return "";
@@ -6297,18 +6300,18 @@ function Ir(e, t) {
6297
6300
  const a = V(() => !!e.value && !!e.value.date), i = V(() => {
6298
6301
  const c = e.value && e.value.date || "";
6299
6302
  return `${t.exception.happend} : ${c}`;
6300
- }), l = V(() => !!e.value && !!e.value.detail), f = V(() => e.value ? n(e.value.detail) > 160 : !1), p = d(!1), u = V(() => p.value ? t.exception.collapse : t.exception.expand), h = V(() => {
6303
+ }), l = V(() => !!e.value && !!e.value.detail), f = V(() => e.value ? n(e.value.detail) > 160 : !1), m = d(!1), u = V(() => m.value ? t.exception.collapse : t.exception.expand), h = V(() => {
6301
6304
  const c = t.exception.detail + " : " + (e.value && e.value.detail) || "";
6302
- return p.value ? c : o(c, 160);
6305
+ return m.value ? c : o(c, 160);
6303
6306
  }), r = V(() => ({
6304
6307
  position: "absolute",
6305
6308
  right: 0,
6306
- bottom: p.value ? 0 : "2px",
6309
+ bottom: m.value ? 0 : "2px",
6307
6310
  color: "#2A87FF",
6308
6311
  cursor: "pointer"
6309
6312
  }));
6310
6313
  function s() {
6311
- p.value = !p.value;
6314
+ m.value = !m.value;
6312
6315
  }
6313
6316
  return () => v("div", {
6314
6317
  class: "toast-msg-detail"
@@ -6331,13 +6334,13 @@ function $r(e) {
6331
6334
  }
6332
6335
  function jr(e, t, n, o, a) {
6333
6336
  const i = d(e.exceptionInfo), l = V(() => {
6334
- const m = t.value === "question" ? "warning" : t.value, y = {
6337
+ const p = t.value === "question" ? "warning" : t.value, g = {
6335
6338
  "f-icon": !0
6336
- }, w = `f-icon-${m}`;
6337
- return y[w] = !0, y;
6338
- }), f = V(() => n.value || i.value && i.value.message), p = V(() => o.value), u = V(() => !!o.value), h = V(() => !!i.value);
6339
+ }, b = `f-icon-${p}`;
6340
+ return g[b] = !0, g;
6341
+ }), f = V(() => n.value || i.value && i.value.message), m = V(() => o.value), u = V(() => !!o.value), h = V(() => !!i.value);
6339
6342
  function r() {
6340
- return h.value ? Ir(i, a) : u.value ? $r(p) : () => null;
6343
+ return h.value ? Ir(i, a) : u.value ? $r(m) : () => null;
6341
6344
  }
6342
6345
  const s = r(), c = V(() => a.locale === "en" ? {
6343
6346
  wordBreak: "keep-all",
@@ -6360,11 +6363,11 @@ function Nr(e, t, n, o) {
6360
6363
  onCopy: a
6361
6364
  } = t, {
6362
6365
  toShowFeedback: i
6363
- } = n, l = d(o.exception.copySuccess || "复制成功"), f = d(o.exception.copy || "复制详细信息"), p = d(e.exceptionInfo || {
6366
+ } = n, l = d(o.exception.copySuccess || "复制成功"), f = d(o.exception.copy || "复制详细信息"), m = d(e.exceptionInfo || {
6364
6367
  date: "",
6365
6368
  message: "",
6366
6369
  detail: ""
6367
- }), u = V(() => p.value && p.value.detail || "");
6370
+ }), u = V(() => m.value && m.value.detail || "");
6368
6371
  function h(r) {
6369
6372
  a(u.value).catch((s) => {
6370
6373
  l.value = o.exception.copyFailed || "复制失败";
@@ -6382,31 +6385,31 @@ function Nr(e, t, n, o) {
6382
6385
  }, [f.value])]);
6383
6386
  }
6384
6387
  function Ar(e, t, n, o, a) {
6385
- const i = d(e.type), l = d(e.buttons), f = d(e.exceptionInfo), p = d(a.ok || e.okButtonText), u = d(a.cancel || e.cancelButtonText), h = d(e.showCancelButton), r = d(e.showOkButton), s = V(() => !!(l.value && l.value.length)), c = V(() => f.value && f.value.message && f.value.detail), m = V(() => !(l.value && l.value.length) && (r.value || h.value)), y = Nr(e, n, o, a);
6386
- p.value === "关闭" ? p.value = a.close : p.value === "知道了" && (p.value = a.exception.roger);
6387
- function w(B) {
6388
+ const i = d(e.type), l = d(e.buttons), f = d(e.exceptionInfo), m = d(a.ok || e.okButtonText), u = d(a.cancel || e.cancelButtonText), h = d(e.showCancelButton), r = d(e.showOkButton), s = V(() => !!(l.value && l.value.length)), c = V(() => f.value && f.value.message && f.value.detail), p = V(() => !(l.value && l.value.length) && (r.value || h.value)), g = Nr(e, n, o, a);
6389
+ m.value === "关闭" ? m.value = a.close : m.value === "知道了" && (m.value = a.exception.roger);
6390
+ function b(M) {
6388
6391
  i.value === "question" && t.emit("reject"), t.emit("close");
6389
6392
  }
6390
- function R(B) {
6393
+ function R(M) {
6391
6394
  i.value === "question" && t.emit("accept"), t.emit("close");
6392
6395
  }
6393
6396
  return () => v("div", {
6394
6397
  class: "modal-footer"
6395
- }, [c.value && y(), m.value && h.value && v("button", {
6398
+ }, [c.value && g(), p.value && h.value && v("button", {
6396
6399
  type: "button",
6397
6400
  class: "btn btn-secondary btn-lg",
6398
- onClick: w
6399
- }, [u.value]), m.value && r.value && v("button", {
6401
+ onClick: b
6402
+ }, [u.value]), p.value && r.value && v("button", {
6400
6403
  type: "button",
6401
6404
  class: "btn btn-primary btn-lg",
6402
6405
  onClick: R
6403
- }, [p.value]), s.value && l.value.length && l.value.map((B) => v("button", {
6406
+ }, [m.value]), s.value && l.value.length && l.value.map((M) => v("button", {
6404
6407
  type: "button",
6405
- onClick: B.handle,
6406
- class: B.class
6407
- }, [B.iconClass && v("span", {
6408
- class: B.iconClass
6409
- }, null), B.text]))]);
6408
+ onClick: M.handle,
6409
+ class: M.class
6410
+ }, [M.iconClass && v("span", {
6411
+ class: M.iconClass
6412
+ }, null), M.text]))]);
6410
6413
  }
6411
6414
  function Pr(e) {
6412
6415
  const { t, locale: n } = ft();
@@ -6434,7 +6437,7 @@ function Pr(e) {
6434
6437
  locale: n.value
6435
6438
  };
6436
6439
  }
6437
- const gt = /* @__PURE__ */ le({
6440
+ const yt = /* @__PURE__ */ le({
6438
6441
  name: "FMessageBox",
6439
6442
  props: Tr,
6440
6443
  emits: ["accept", "reject", "close"],
@@ -6444,14 +6447,14 @@ const gt = /* @__PURE__ */ le({
6444
6447
  "modal-tips": !0,
6445
6448
  "d-flex": !0,
6446
6449
  "flex-row": !0
6447
- }, B = `messager-type-${o.value}`;
6448
- return R[B] = !0, R;
6450
+ }, M = `messager-type-${o.value}`;
6451
+ return R[M] = !0, R;
6449
6452
  }), f = V(() => {
6450
6453
  const R = {
6451
6454
  cursor: "default"
6452
6455
  };
6453
6456
  return o.value === "prompt" ? R.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (R.padding = "0.5rem 1.5rem 1rem 1.5rem"), R;
6454
- }), p = kr(), u = Rr(e, o, a, i), h = Or(), {
6457
+ }), m = kr(), u = Rr(e, o, a, i), h = Or(), {
6455
6458
  feedbackStyle: r,
6456
6459
  feedbackMessage: s
6457
6460
  } = h;
@@ -6461,7 +6464,7 @@ const gt = /* @__PURE__ */ le({
6461
6464
  style: r.value
6462
6465
  }, [s.value]);
6463
6466
  }
6464
- function m() {
6467
+ function p() {
6465
6468
  switch (o.value) {
6466
6469
  case "prompt":
6467
6470
  return Dr(e, u);
@@ -6469,7 +6472,7 @@ const gt = /* @__PURE__ */ le({
6469
6472
  return jr(e, o, a, i, n);
6470
6473
  }
6471
6474
  }
6472
- const y = m(), w = Ar(e, t, p, h, n);
6475
+ const g = p(), b = Ar(e, t, m, h, n);
6473
6476
  return () => v("div", {
6474
6477
  class: "farris-messager"
6475
6478
  }, [!e.exceptionInfo && v("div", {
@@ -6478,7 +6481,7 @@ const gt = /* @__PURE__ */ le({
6478
6481
  }, null), v("section", {
6479
6482
  class: l.value,
6480
6483
  style: f.value
6481
- }, [y()]), w(), c()]);
6484
+ }, [g()]), b(), c()]);
6482
6485
  }
6483
6486
  }), Oe = class Oe {
6484
6487
  static show(t) {
@@ -6487,11 +6490,11 @@ const gt = /* @__PURE__ */ le({
6487
6490
  }), o = !1, a = n.type === "error" || n.type === "prompt", i = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
6488
6491
  }), f = n.rejectCallback || (() => {
6489
6492
  });
6490
- let p = null, u = new xt(Oe.app);
6493
+ let m = null, u = new xt(Oe.app);
6491
6494
  const h = () => {
6492
- p && (p == null || p.destroy(), u = null);
6495
+ m && (m == null || m.destroy(), u = null);
6493
6496
  };
6494
- return p = u == null ? void 0 : u.open({
6497
+ return m = u == null ? void 0 : u.open({
6495
6498
  class: "modal-message modal-message-type-info",
6496
6499
  title: i,
6497
6500
  showButtons: o,
@@ -6501,7 +6504,7 @@ const gt = /* @__PURE__ */ le({
6501
6504
  showMaxButton: !1,
6502
6505
  draggable: !0,
6503
6506
  dragHandle: ".messager-draggable",
6504
- render: () => v(gt, Lt(n, {
6507
+ render: () => v(yt, Lt(n, {
6505
6508
  onAccept: l,
6506
6509
  onReject: f,
6507
6510
  onClose: h
@@ -6577,8 +6580,8 @@ const gt = /* @__PURE__ */ le({
6577
6580
  };
6578
6581
  ne(Oe, "app", null);
6579
6582
  let dt = Oe;
6580
- gt.install = (e) => {
6581
- e.component(gt.name, gt), dt.app = e, e.provide("FMessageBoxService", dt);
6583
+ yt.install = (e) => {
6584
+ e.component(yt.name, yt), dt.app = e, e.provide("FMessageBoxService", dt);
6582
6585
  };
6583
6586
  const Lr = Symbol("FModalService");
6584
6587
  Je.install = (e) => {
@@ -6598,7 +6601,7 @@ const Vr = /* @__PURE__ */ le({
6598
6601
  Be(() => {
6599
6602
  i.value.componentInstance = f;
6600
6603
  }), t.expose(f.value);
6601
- function p() {
6604
+ function m() {
6602
6605
  const u = xt.show({
6603
6606
  // title: '响应式列宽编辑器',
6604
6607
  render: () => v(bt, {
@@ -6628,7 +6631,7 @@ const Vr = /* @__PURE__ */ le({
6628
6631
  return () => v("div", {
6629
6632
  ref: i,
6630
6633
  class: "f-column-width-setting-button",
6631
- onClick: p
6634
+ onClick: m
6632
6635
  }, [v("div", {
6633
6636
  class: "f-icon f-icon-add"
6634
6637
  }, null), v("div", {
@@ -6658,7 +6661,7 @@ const Vr = /* @__PURE__ */ le({
6658
6661
  const u = document.documentElement.clientWidth, h = document.documentElement.clientHeight;
6659
6662
  a.value = h < 650 ? 500 : h > 1200 ? 840 : 630, o.value = u < 850 ? 900 : u > 1400 ? 1e3 : 890;
6660
6663
  }
6661
- function p() {
6664
+ function m() {
6662
6665
  if (e.beforeOpen && typeof e.beforeOpen == "function" && (n.value = e.beforeOpen()), !n.value.defaultState || !n.value.importData) {
6663
6666
  const u = n.value.message || "只可以在响应式表单组件中调整响应式布局配置";
6664
6667
  dt.info(u, "");
@@ -6680,7 +6683,7 @@ const Vr = /* @__PURE__ */ le({
6680
6683
  }
6681
6684
  return () => v("div", {
6682
6685
  class: "f-column-width-setting-button",
6683
- onClick: p
6686
+ onClick: m
6684
6687
  }, [v("i", {
6685
6688
  class: "f-icon f-icon-add"
6686
6689
  }, null), v("div", {