@farris/ui-vue 1.6.5-beta.1 → 1.6.5-beta.3

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 (133) hide show
  1. package/components/accordion/index.esm.js +190 -187
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/accordion/package.json +1 -1
  4. package/components/avatar/package.json +1 -1
  5. package/components/binding-selector/package.json +1 -1
  6. package/components/border-editor/package.json +1 -1
  7. package/components/button/package.json +1 -1
  8. package/components/button-edit/index.esm.js +745 -753
  9. package/components/button-edit/index.umd.cjs +1 -1
  10. package/components/button-edit/package.json +1 -1
  11. package/components/button-group/package.json +1 -1
  12. package/components/calculator/package.json +1 -1
  13. package/components/calendar/package.json +1 -1
  14. package/components/capsule/package.json +1 -1
  15. package/components/checkbox/package.json +1 -1
  16. package/components/checkbox-group/package.json +1 -1
  17. package/components/code-editor/package.json +1 -1
  18. package/components/collection-property-editor/package.json +1 -1
  19. package/components/color-picker/package.json +1 -1
  20. package/components/combo-list/package.json +1 -1
  21. package/components/combo-tree/package.json +1 -1
  22. package/components/common/package.json +1 -1
  23. package/components/component/package.json +1 -1
  24. package/components/condition/package.json +1 -1
  25. package/components/content-container/package.json +1 -1
  26. package/components/data-grid/package.json +1 -1
  27. package/components/data-view/package.json +1 -1
  28. package/components/date-picker/package.json +1 -1
  29. package/components/designer-canvas/package.json +1 -1
  30. package/components/designer-outline/package.json +1 -1
  31. package/components/designer-toolbox/package.json +1 -1
  32. package/components/discussion-editor/package.json +1 -1
  33. package/components/discussion-list/package.json +1 -1
  34. package/components/drawer/package.json +1 -1
  35. package/components/dropdown/package.json +1 -1
  36. package/components/dynamic-form/package.json +1 -1
  37. package/components/dynamic-resolver/package.json +1 -1
  38. package/components/dynamic-view/package.json +1 -1
  39. package/components/enum-editor/package.json +1 -1
  40. package/components/event-parameter/package.json +1 -1
  41. package/components/events-editor/package.json +1 -1
  42. package/components/expression-editor/index.esm.js +1279 -1287
  43. package/components/expression-editor/index.umd.cjs +2 -2
  44. package/components/expression-editor/package.json +1 -1
  45. package/components/external-container/package.json +1 -1
  46. package/components/field-selector/package.json +1 -1
  47. package/components/fieldset/package.json +1 -1
  48. package/components/filter-bar/index.esm.js +703 -711
  49. package/components/filter-bar/index.umd.cjs +1 -1
  50. package/components/filter-bar/package.json +1 -1
  51. package/components/filter-condition-editor/index.esm.js +1140 -1148
  52. package/components/filter-condition-editor/index.umd.cjs +2 -2
  53. package/components/filter-condition-editor/package.json +1 -1
  54. package/components/flow-canvas/package.json +1 -1
  55. package/components/html-template/package.json +1 -1
  56. package/components/image-cropper/package.json +1 -1
  57. package/components/input-group/package.json +1 -1
  58. package/components/json-editor/package.json +1 -1
  59. package/components/language-textbox/package.json +1 -1
  60. package/components/layout/package.json +1 -1
  61. package/components/list-nav/package.json +1 -1
  62. package/components/list-view/package.json +1 -1
  63. package/components/loading/package.json +1 -1
  64. package/components/locale/package.json +1 -1
  65. package/components/lookup/package.json +1 -1
  66. package/components/mapping-editor/index.esm.js +967 -975
  67. package/components/mapping-editor/index.umd.cjs +1 -1
  68. package/components/mapping-editor/package.json +1 -1
  69. package/components/menu-lookup/package.json +1 -1
  70. package/components/message-box/package.json +1 -1
  71. package/components/modal/package.json +1 -1
  72. package/components/nav/package.json +1 -1
  73. package/components/notify/package.json +1 -1
  74. package/components/number-range/package.json +1 -1
  75. package/components/number-spinner/package.json +1 -1
  76. package/components/order/package.json +1 -1
  77. package/components/page-footer/package.json +1 -1
  78. package/components/page-header/package.json +1 -1
  79. package/components/pagination/package.json +1 -1
  80. package/components/popover/package.json +1 -1
  81. package/components/progress/package.json +1 -1
  82. package/components/property-editor/package.json +1 -1
  83. package/components/property-panel/package.json +1 -1
  84. package/components/query-solution/index.esm.js +1193 -1201
  85. package/components/query-solution/index.umd.cjs +4 -4
  86. package/components/query-solution/package.json +1 -1
  87. package/components/radio/package.json +1 -1
  88. package/components/radio-button/package.json +1 -1
  89. package/components/radio-group/package.json +1 -1
  90. package/components/rate/package.json +1 -1
  91. package/components/response-layout/package.json +1 -1
  92. package/components/response-layout-editor/package.json +1 -1
  93. package/components/response-toolbar/package.json +1 -1
  94. package/components/schema-selector/index.esm.js +1095 -1103
  95. package/components/schema-selector/index.umd.cjs +6 -6
  96. package/components/schema-selector/package.json +1 -1
  97. package/components/search-box/package.json +1 -1
  98. package/components/section/package.json +1 -1
  99. package/components/smoke-detector/package.json +1 -1
  100. package/components/sort-condition-editor/index.esm.js +1185 -1193
  101. package/components/sort-condition-editor/index.umd.cjs +2 -2
  102. package/components/sort-condition-editor/package.json +1 -1
  103. package/components/spacing-editor/package.json +1 -1
  104. package/components/splitter/package.json +1 -1
  105. package/components/step/package.json +1 -1
  106. package/components/switch/package.json +1 -1
  107. package/components/tabs/package.json +1 -1
  108. package/components/tags/package.json +1 -1
  109. package/components/text/package.json +1 -1
  110. package/components/textarea/package.json +1 -1
  111. package/components/time-picker/index.esm.js +895 -903
  112. package/components/time-picker/index.umd.cjs +1 -1
  113. package/components/time-picker/package.json +1 -1
  114. package/components/tooltip/package.json +1 -1
  115. package/components/transfer/package.json +1 -1
  116. package/components/tree-grid/package.json +1 -1
  117. package/components/tree-view/package.json +1 -1
  118. package/components/uploader/package.json +1 -1
  119. package/components/verify-detail/package.json +1 -1
  120. package/components/video/package.json +1 -1
  121. package/components/weather/package.json +1 -1
  122. package/designer/data-grid/index.esm.js +1447 -1455
  123. package/designer/data-grid/index.umd.cjs +4 -4
  124. package/designer/farris-designer.all.esm.js +1789 -1797
  125. package/designer/farris-designer.all.umd.cjs +9 -9
  126. package/designer/radio-group/index.esm.js +1032 -1040
  127. package/designer/radio-group/index.umd.cjs +1 -1
  128. package/farris.all.esm.js +2242 -2246
  129. package/farris.all.umd.cjs +15 -15
  130. package/package.json +1 -1
  131. package/types/components.d.ts +4 -3
  132. package/types/message-box/index.d.ts +6 -6
  133. package/types/message-box/src/message-box.component.d.ts +3 -3
@@ -1,7 +1,7 @@
1
1
  var ma = Object.defineProperty;
2
2
  var ya = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Ce = (e, t, n) => ya(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as b, computed as j, defineComponent as ie, provide as bn, createVNode as k, watch as ne, inject as De, onMounted as ge, onBeforeUnmount as Cn, nextTick as Ve, createTextVNode as yt, withDirectives as wn, vModelText as va, Teleport as kn, createApp as Jt, onUnmounted as ht, Fragment as tt, onBeforeMount as ga, Transition as Sn, shallowRef as ha, render as qt, h as ba, cloneVNode as Ca, mergeProps as Ot, reactive as Ae, vShow as wa, onUpdated as ka } from "vue";
4
+ import { ref as b, computed as j, defineComponent as ie, provide as bn, createVNode as S, watch as ne, inject as De, onMounted as he, onBeforeUnmount as Cn, nextTick as Ve, createTextVNode as yt, withDirectives as wn, vModelText as va, Teleport as kn, createApp as Jt, onUnmounted as gt, Fragment as tt, onBeforeMount as ha, Transition as Sn, shallowRef as ga, render as qt, h as ba, cloneVNode as Ca, mergeProps as Ot, reactive as Ae, vShow as wa, onUpdated as ka } from "vue";
5
5
  import { cloneDeep as rt, isPlainObject as sn, isUndefined as Pe, debounce as Sa } from "lodash-es";
6
6
  import { getCustomClass as Fn, getCustomStyle as Fa, FormSchemaEntityFieldType$Type as xa, withInstall as xn, FormSchemaEntityField$Type as un, FormSchemaEntityFieldTypeName as cn, useGuid as Ta } from "../common/index.esm.js";
7
7
  import { getSchemaByTypeForDesigner as Ma, resolveAppearance as Tn, createPropsResolver as Qt } from "../dynamic-resolver/index.esm.js";
@@ -87,7 +87,7 @@ import "../modal/index.esm.js";
87
87
  import "../external-container/index.esm.js";
88
88
  import "../language-textbox/index.esm.js";
89
89
  import { useResizeObserver as Ia } from "@vueuse/core";
90
- import { getHierarchyRow as Ra, useIdentify as La, useGroupData as $a, useFilter as za, useHierarchy as Ha, useLoading as Aa, useDataView as Va, useSelection as Wa, useSelectHierarchyItem as qa, usePagination as Ga, useDataViewContainerStyle as _a, useCommandColumn as Ya, useSettingColumn as Ua, useColumn as Xa, useSort as Ja, useGroupColumn as Qa, useRow as Za, useEdit as Ka, useVisualDataBound as eo, useVisualDataCell as to, useVisualDataRow as no, useVisualData as ao, useCellPosition as oo, useSidebar as io, useVirtualScroll as ro, useFitColumn as lo, useFilterHistory as so, useColumnFilter as uo, useDragColumn as co, getColumnHeader as fo, getSidebar as po, getDisableMask as mo, getHorizontalScrollbar as yo, getVerticalScrollbar as vo, getEmpty as go, getPagination as ho, getSummary as bo } from "../data-view/index.esm.js";
90
+ import { getHierarchyRow as Ra, useIdentify as La, useGroupData as $a, useFilter as za, useHierarchy as Ha, useLoading as Aa, useDataView as Va, useSelection as Wa, useSelectHierarchyItem as qa, usePagination as Ga, useDataViewContainerStyle as _a, useCommandColumn as Ya, useSettingColumn as Ua, useColumn as Xa, useSort as Ja, useGroupColumn as Qa, useRow as Za, useEdit as Ka, useVisualDataBound as eo, useVisualDataCell as to, useVisualDataRow as no, useVisualData as ao, useCellPosition as oo, useSidebar as io, useVirtualScroll as ro, useFitColumn as lo, useFilterHistory as so, useColumnFilter as uo, useDragColumn as co, getColumnHeader as fo, getSidebar as po, getDisableMask as mo, getHorizontalScrollbar as yo, getVerticalScrollbar as vo, getEmpty as ho, getPagination as go, getSummary as bo } from "../data-view/index.esm.js";
91
91
  import "../notify/index.esm.js";
92
92
  import Co from "../popover/index.esm.js";
93
93
  const wo = {
@@ -143,22 +143,22 @@ const wo = {
143
143
  function Bn(e, t) {
144
144
  let n;
145
145
  function a(d) {
146
- const { properties: c, title: f, ignore: m } = d, h = m && Array.isArray(m), y = Object.keys(c).reduce((C, S) => ((!h || !m.find((D) => D === S)) && (C[S] = c[S].type === "object" && c[S].properties ? a(c[S]) : rt(c[S].default)), C), {});
147
- if (f && (!h || !m.find((C) => C === "id"))) {
148
- const C = f.toLowerCase().replace(/-/g, "_");
149
- y.id = `${C}_${Math.random().toString().slice(2, 6)}`;
146
+ const { properties: c, title: f, ignore: m } = d, g = m && Array.isArray(m), v = Object.keys(c).reduce((w, k) => ((!g || !m.find((D) => D === k)) && (w[k] = c[k].type === "object" && c[k].properties ? a(c[k]) : rt(c[k].default)), w), {});
147
+ if (f && (!g || !m.find((w) => w === "id"))) {
148
+ const w = f.toLowerCase().replace(/-/g, "_");
149
+ v.id = `${w}_${Math.random().toString().slice(2, 6)}`;
150
150
  }
151
- return y;
151
+ return v;
152
152
  }
153
153
  function o(d) {
154
154
  const { properties: c, title: f, required: m } = d;
155
155
  if (m && Array.isArray(m)) {
156
- const h = m.reduce((y, C) => (y[C] = c[C].type === "object" && c[C].properties ? a(c[C]) : rt(c[C].default), y), {});
157
- if (f && m.find((y) => y === "id")) {
158
- const y = f.toLowerCase().replace(/-/g, "_");
159
- h.id = `${y}_${Math.random().toString().slice(2, 6)}`;
156
+ const g = m.reduce((v, w) => (v[w] = c[w].type === "object" && c[w].properties ? a(c[w]) : rt(c[w].default), v), {});
157
+ if (f && m.find((v) => v === "id")) {
158
+ const v = f.toLowerCase().replace(/-/g, "_");
159
+ g.id = `${v}_${Math.random().toString().slice(2, 6)}`;
160
160
  }
161
- return h;
161
+ return g;
162
162
  }
163
163
  return {
164
164
  type: f
@@ -167,28 +167,28 @@ function Bn(e, t) {
167
167
  function i(d, c = {}, f) {
168
168
  const m = e[d];
169
169
  if (m) {
170
- let h = o(m);
171
- const y = t[d];
172
- return h = y ? y({ getSchemaByType: i }, h, c, f) : h, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(h), h;
170
+ let g = o(m);
171
+ const v = t[d];
172
+ return g = v ? v({ getSchemaByType: i }, g, c, f) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
173
173
  }
174
174
  return null;
175
175
  }
176
176
  function r(d, c) {
177
177
  const f = a(c);
178
- return Object.keys(f).reduce((m, h) => (Object.prototype.hasOwnProperty.call(d, h) && (m[h] && sn(m[h]) && sn(d[h] || !d[h]) ? Object.assign(m[h], d[h] || {}) : m[h] = d[h]), m), f), f;
178
+ return Object.keys(f).reduce((m, g) => (Object.prototype.hasOwnProperty.call(d, g) && (m[g] && sn(m[g]) && sn(d[g] || !d[g]) ? Object.assign(m[g], d[g] || {}) : m[g] = d[g]), m), f), f;
179
179
  }
180
180
  function l(d, c) {
181
- return Object.keys(d).filter((m) => d[m] != null).reduce((m, h) => {
182
- if (c.has(h)) {
183
- const y = c.get(h);
184
- if (typeof y == "string")
185
- m[y] = d[h];
181
+ return Object.keys(d).filter((m) => d[m] != null).reduce((m, g) => {
182
+ if (c.has(g)) {
183
+ const v = c.get(g);
184
+ if (typeof v == "string")
185
+ m[v] = d[g];
186
186
  else {
187
- const C = y(h, d[h], d);
188
- Object.assign(m, C);
187
+ const w = v(g, d[g], d);
188
+ Object.assign(m, w);
189
189
  }
190
190
  } else
191
- m[h] = d[h];
191
+ m[g] = d[g];
192
192
  return m;
193
193
  }, {});
194
194
  }
@@ -203,12 +203,12 @@ function Bn(e, t) {
203
203
  const m = e[c];
204
204
  if (!m)
205
205
  return d;
206
- const h = r(d, m), y = ((f = d.editor) == null ? void 0 : f.type) || "";
207
- if (y) {
208
- const C = e[y], S = r(d.editor, C);
209
- h.editor = S;
206
+ const g = r(d, m), v = ((f = d.editor) == null ? void 0 : f.type) || "";
207
+ if (v) {
208
+ const w = e[v], k = r(d.editor, w);
209
+ g.editor = k;
210
210
  }
211
- return h;
211
+ return g;
212
212
  }
213
213
  return d;
214
214
  }
@@ -267,8 +267,8 @@ function xo(e = {}) {
267
267
  return i(u).reduce((f, m) => f && r(m, p), !0);
268
268
  }
269
269
  function s(u, p) {
270
- const d = Object.keys(u), c = d.includes("allOf"), f = d.includes("anyOf"), m = c || f, C = (m ? u[m ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((D) => l(D, p));
271
- return c ? !C.includes(!1) : C.includes(!0);
270
+ const d = Object.keys(u), c = d.includes("allOf"), f = d.includes("anyOf"), m = c || f, w = (m ? u[m ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((D) => l(D, p));
271
+ return c ? !w.includes(!1) : w.includes(!0);
272
272
  }
273
273
  return { parseValueSchema: s };
274
274
  }
@@ -558,75 +558,75 @@ function En(e, t, n) {
558
558
  ["number", { type: "number-spinner", placeholder: "" }],
559
559
  ["events-editor", { type: "events-editor", hide: !0 }]
560
560
  ]), i = xo();
561
- function r(m, h) {
562
- return () => i.parseValueSchema(m, h);
561
+ function r(m, g) {
562
+ return () => i.parseValueSchema(m, g);
563
563
  }
564
- function l(m, h, y) {
565
- return m.includes("visible") && h.visible !== void 0 ? typeof h.visible == "boolean" ? () => !!h.visible : h.visible === void 0 ? !0 : r(h.visible, y) : () => !0;
564
+ function l(m, g, v) {
565
+ return m.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible, v) : () => !0;
566
566
  }
567
- function s(m, h, y) {
568
- return m.includes("readonly") && h.readonly !== void 0 ? typeof h.readonly == "boolean" ? () => !!h.readonly : r(h.readonly, y) : () => !1;
567
+ function s(m, g, v) {
568
+ return m.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly, v) : () => !1;
569
569
  }
570
- function u(m, h) {
571
- const y = m.$converter || h;
572
- return typeof y == "string" && y && a.has(y) ? a.get(y) || null : y || null;
570
+ function u(m, g) {
571
+ const v = m.$converter || g;
572
+ return typeof v == "string" && v && a.has(v) ? a.get(v) || null : v || null;
573
573
  }
574
- function p(m, h, y, C, S, D = "", O = "") {
575
- return Object.keys(m).map((g) => {
576
- const T = b(1), B = g, N = m[g], R = Object.keys(N), M = N.title, F = N.type, w = o.get(F) || { type: "input-group", enableClear: !1 }, x = N.editor ? Object.assign({}, w, N.editor) : Object.assign({}, w), P = l(R, N, h), A = s(R, N, h);
577
- x.readonly = x.readonly === void 0 ? A() : x.readonly;
578
- const Q = N.type === "cascade" ? p(N.properties, h, y, C, S, D, O) : [], z = !0;
574
+ function p(m, g, v, w, k, D = "", O = "") {
575
+ return Object.keys(m).map((y) => {
576
+ const M = b(1), B = y, N = m[y], R = Object.keys(N), x = N.title, F = N.type, C = o.get(F) || { type: "input-group", enableClear: !1 }, T = N.editor ? Object.assign({}, C, N.editor) : Object.assign({}, C), P = l(R, N, g), V = s(R, N, g);
577
+ T.readonly = T.readonly === void 0 ? V() : T.readonly;
578
+ const Q = N.type === "cascade" ? p(N.properties, g, v, w, k, D, O) : [], z = !0;
579
579
  let $ = u(N, O);
580
580
  const Y = j({
581
581
  get() {
582
- if (T.value) {
582
+ if (M.value) {
583
583
  if (["class", "style"].find((ue) => ue === B) && !$ && ($ = a.get("/converter/appearance.converter") || null), $ && $.convertFrom)
584
- return $.convertFrom(y, g, S, D);
585
- const oe = y[g];
584
+ return $.convertFrom(v, y, k, D);
585
+ const oe = v[y];
586
586
  return Object.prototype.hasOwnProperty.call(N, "defaultValue") && (oe === void 0 || typeof oe == "string" && oe === "") ? N.type === "boolean" ? N.defaultValue : N.defaultValue || "" : oe;
587
587
  }
588
588
  return null;
589
589
  },
590
590
  set(oe) {
591
- T.value += 1, $ && $.convertTo ? ($.convertTo(C, g, oe, S, D), $.convertTo(y, g, oe, S, D)) : (C[g] = oe, y[g] = oe);
591
+ M.value += 1, $ && $.convertTo ? ($.convertTo(w, y, oe, k, D), $.convertTo(v, y, oe, k, D)) : (w[y] = oe, v[y] = oe);
592
592
  }
593
- }), { refreshPanelAfterChanged: W, description: ee, isExpand: ve, parentPropertyID: he } = N, X = { propertyID: B, propertyName: M, propertyType: F, propertyValue: Y, editor: x, visible: P, readonly: A, cascadeConfig: Q, hideCascadeTitle: z, refreshPanelAfterChanged: W, description: ee, isExpand: ve, parentPropertyID: he };
594
- return h[B] = X, X;
593
+ }), { refreshPanelAfterChanged: W, description: ee, isExpand: ve, parentPropertyID: ge } = N, X = { propertyID: B, propertyName: x, propertyType: F, propertyValue: Y, editor: T, visible: P, readonly: V, cascadeConfig: Q, hideCascadeTitle: z, refreshPanelAfterChanged: W, description: ee, isExpand: ve, parentPropertyID: ge };
594
+ return g[B] = X, X;
595
595
  });
596
596
  }
597
- function d(m, h, y = {}) {
598
- const C = {}, S = e[m];
599
- return S && S.categories ? Object.keys(S.categories).map((O) => {
600
- const v = S.categories[O], g = v == null ? void 0 : v.title, T = p(v.properties || {}, C, {}, y, h);
601
- return { categoryId: O, categoryName: g, properties: T };
597
+ function d(m, g, v = {}) {
598
+ const w = {}, k = e[m];
599
+ return k && k.categories ? Object.keys(k.categories).map((O) => {
600
+ const h = k.categories[O], y = h == null ? void 0 : h.title, M = p(h.properties || {}, w, {}, v, g);
601
+ return { categoryId: O, categoryName: y, properties: M };
602
602
  }) : [];
603
603
  }
604
- function c(m, h, y, C, S = "") {
605
- const D = h.$ref.schema, O = h.$ref.converter, v = y[D], g = v.type, T = n(v), B = {}, N = e[g];
604
+ function c(m, g, v, w, k = "") {
605
+ const D = g.$ref.schema, O = g.$ref.converter, h = v[D], y = h.type, M = n(h), B = {}, N = e[y];
606
606
  if (N && N.categories) {
607
- const R = N.categories[m], M = R == null ? void 0 : R.title;
608
- O && Object.keys(R.properties).forEach((x) => {
609
- R.properties[x].$converter = O;
607
+ const R = N.categories[m], x = R == null ? void 0 : R.title;
608
+ O && Object.keys(R.properties).forEach((T) => {
609
+ R.properties[T].$converter = O;
610
610
  });
611
- const F = (R == null ? void 0 : R.properties) || {}, w = p(F, B, T, v, C, S);
612
- return { categoryId: m, categoryName: M, properties: w };
611
+ const F = (R == null ? void 0 : R.properties) || {}, C = p(F, B, M, h, w, k);
612
+ return { categoryId: m, categoryName: x, properties: C };
613
613
  }
614
614
  return { categoryId: m, categoryName: "", properties: [] };
615
615
  }
616
- function f(m, h, y, C, S) {
617
- const D = m.type, O = n(m), v = {};
618
- let g = S || e[D];
619
- if (g && Object.keys(g).length === 0 && y && y.getPropConfig && (g = y.getPropConfig(C)), g && g.categories) {
620
- const T = [];
621
- return Object.keys(g.categories).map((B) => {
622
- const N = g.categories[B];
616
+ function f(m, g, v, w, k) {
617
+ const D = m.type, O = n(m), h = {};
618
+ let y = k || e[D];
619
+ if (y && Object.keys(y).length === 0 && v && v.getPropConfig && (y = v.getPropConfig(w)), y && y.categories) {
620
+ const M = [];
621
+ return Object.keys(y.categories).map((B) => {
622
+ const N = y.categories[B];
623
623
  if (N.$ref) {
624
- T.push(c(B, N, m, h, C));
624
+ M.push(c(B, N, m, g, w));
625
625
  return;
626
626
  }
627
- const R = N == null ? void 0 : N.title, M = N == null ? void 0 : N.tabId, F = N == null ? void 0 : N.tabName, w = N == null ? void 0 : N.hide, x = N == null ? void 0 : N.hideTitle, P = p(N.properties || {}, v, O, m, h, C, N.$converter), { setPropertyRelates: A } = N, Q = N == null ? void 0 : N.parentPropertyID;
628
- T.push({ categoryId: B, categoryName: R, tabId: M, tabName: F, hide: w, properties: P, hideTitle: x, setPropertyRelates: A, parentPropertyID: Q });
629
- }), T;
627
+ const R = N == null ? void 0 : N.title, x = N == null ? void 0 : N.tabId, F = N == null ? void 0 : N.tabName, C = N == null ? void 0 : N.hide, T = N == null ? void 0 : N.hideTitle, P = p(N.properties || {}, h, O, m, g, w, N.$converter), { setPropertyRelates: V } = N, Q = N == null ? void 0 : N.parentPropertyID;
628
+ M.push({ categoryId: B, categoryName: R, tabId: x, tabName: F, hide: C, properties: P, hideTitle: T, setPropertyRelates: V, parentPropertyID: Q });
629
+ }), M;
630
630
  }
631
631
  return [];
632
632
  }
@@ -766,60 +766,60 @@ function An(e) {
766
766
  top: `${o.value}px`,
767
767
  cursor: "n-resize"
768
768
  })), u = j(() => {
769
- const y = {
769
+ const v = {
770
770
  display: r.value || i.value ? "block" : "none"
771
771
  };
772
- return o.value > 0 && (y.cursor = "n-resize"), y;
772
+ return o.value > 0 && (v.cursor = "n-resize"), v;
773
773
  });
774
- function p(y, C, S, D) {
774
+ function p(v, w, k, D) {
775
775
  const O = e.value;
776
776
  if (O) {
777
- const { left: v, right: g, width: T } = O.getBoundingClientRect();
778
- let B = y.clientX - v;
779
- D === "right" && (B = g - y.clientX), B > C && (B = C), B < S && (B = S), D === "right" && (B = T - B), a.value = B;
777
+ const { left: h, right: y, width: M } = O.getBoundingClientRect();
778
+ let B = v.clientX - h;
779
+ D === "right" && (B = y - v.clientX), B > w && (B = w), B < k && (B = k), D === "right" && (B = M - B), a.value = B;
780
780
  }
781
781
  }
782
- function d(y, C, S, D) {
782
+ function d(v, w, k, D) {
783
783
  const O = e.value;
784
784
  if (O) {
785
- const { top: v, bottom: g, height: T } = O.getBoundingClientRect();
786
- let B = y.clientY - v;
787
- D === "bottom" && (B = g - y.clientY), B > C && (B = C), B < S && (B = S), D === "bottom" && (B = T - B), o.value = B;
785
+ const { top: h, bottom: y, height: M } = O.getBoundingClientRect();
786
+ let B = v.clientY - h;
787
+ D === "bottom" && (B = y - v.clientY), B > w && (B = w), B < k && (B = k), D === "bottom" && (B = M - B), o.value = B;
788
788
  }
789
789
  }
790
790
  function c() {
791
- const y = e.value;
792
- if (y) {
793
- const { width: C, height: S } = y.getBoundingClientRect();
794
- return { width: C, height: S };
791
+ const v = e.value;
792
+ if (v) {
793
+ const { width: w, height: k } = v.getBoundingClientRect();
794
+ return { width: w, height: k };
795
795
  }
796
796
  return null;
797
797
  }
798
798
  function f() {
799
- const y = e.value;
800
- return y ? Array.from(y.querySelectorAll("[data-position]")).reduce((C, S) => {
801
- const D = S.getAttribute("data-position");
802
- return C = Object.assign(C, { [D]: S }), C;
799
+ const v = e.value;
800
+ return v ? Array.from(v.querySelectorAll("[data-position]")).reduce((w, k) => {
801
+ const D = k.getAttribute("data-position");
802
+ return w = Object.assign(w, { [D]: k }), w;
803
803
  }, {}) : null;
804
804
  }
805
- function m(y, C) {
806
- const S = c(), D = f();
807
- if (S && D) {
808
- const O = D == null ? void 0 : D.right, v = D == null ? void 0 : D.left;
809
- if (y === "left" && v)
810
- return O ? S.width - O.clientWidth - C : S.width - C;
811
- if (y === "right" && O)
812
- return v ? S.width - v.clientWidth - C : S.width - C;
805
+ function m(v, w) {
806
+ const k = c(), D = f();
807
+ if (k && D) {
808
+ const O = D == null ? void 0 : D.right, h = D == null ? void 0 : D.left;
809
+ if (v === "left" && h)
810
+ return O ? k.width - O.clientWidth - w : k.width - w;
811
+ if (v === "right" && O)
812
+ return h ? k.width - h.clientWidth - w : k.width - w;
813
813
  }
814
814
  }
815
- function h(y, C) {
816
- const S = c(), D = f();
817
- if (S && D) {
818
- const O = D == null ? void 0 : D.bottom, v = D == null ? void 0 : D.top;
819
- if (y === "top" && v)
820
- return O ? S.height - O.clientHeight - C : S.height - C;
821
- if (y === "bottom" && O)
822
- return v ? S.height - v.clientHeight - C : S.height - C;
815
+ function g(v, w) {
816
+ const k = c(), D = f();
817
+ if (k && D) {
818
+ const O = D == null ? void 0 : D.bottom, h = D == null ? void 0 : D.top;
819
+ if (v === "top" && h)
820
+ return O ? k.height - O.clientHeight - w : k.height - w;
821
+ if (v === "bottom" && O)
822
+ return h ? k.height - h.clientHeight - w : k.height - w;
823
823
  }
824
824
  }
825
825
  return {
@@ -834,7 +834,7 @@ function An(e) {
834
834
  horizontalResizeHandleOffset: a,
835
835
  draggingHorizontalResizeHandle: p,
836
836
  draggingVerticalResizeHandle: d,
837
- getPanelMaxHeight: h,
837
+ getPanelMaxHeight: g,
838
838
  getPanelMaxWidth: m
839
839
  };
840
840
  }
@@ -854,17 +854,17 @@ const We = /* @__PURE__ */ ie({
854
854
  const l = j(() => Fn({
855
855
  "f-layout": !0
856
856
  }, e == null ? void 0 : e.customClass)), s = j(() => Fa({}, e == null ? void 0 : e.customStyle));
857
- return () => k("div", {
857
+ return () => S("div", {
858
858
  class: l.value,
859
859
  style: s.value,
860
860
  ref: n
861
- }, [t.slots.default && t.slots.default(), k("div", {
861
+ }, [t.slots.default && t.slots.default(), S("div", {
862
862
  class: "f-layout-resize-overlay",
863
863
  style: r.value
864
- }, null), k("div", {
864
+ }, null), S("div", {
865
865
  class: "f-layout-horizontal-resize-proxy",
866
866
  style: o.value
867
- }, null), k("div", {
867
+ }, null), S("div", {
868
868
  class: "f-layout-vertical-resize-proxy",
869
869
  style: i.value
870
870
  }, null)]);
@@ -944,7 +944,7 @@ const We = /* @__PURE__ */ ie({
944
944
  type: di,
945
945
  properties: fi,
946
946
  required: pi
947
- }, yi = "layout-pane", vi = "A Farris Container Component", gi = "object", hi = {
947
+ }, yi = "layout-pane", vi = "A Farris Container Component", hi = "object", gi = {
948
948
  basic: {
949
949
  description: "Basic Infomation",
950
950
  title: "基本信息",
@@ -1042,8 +1042,8 @@ const We = /* @__PURE__ */ ie({
1042
1042
  }, bi = {
1043
1043
  title: yi,
1044
1044
  description: vi,
1045
- type: gi,
1046
- categories: hi
1045
+ type: hi,
1046
+ categories: gi
1047
1047
  }, en = {
1048
1048
  customClass: { type: String, defaut: "" },
1049
1049
  customStyle: { type: String, defaut: "" },
@@ -1077,41 +1077,41 @@ function Wn(e, t, n, a, o) {
1077
1077
  getPanelMaxHeight: f,
1078
1078
  getPanelMaxWidth: m
1079
1079
  } = o;
1080
- let h = "", y, C, S;
1081
- function D(g) {
1082
- if ((h === "left" || h === "right") && C) {
1083
- const { left: T } = C.getBoundingClientRect(), { width: B } = y.getBoundingClientRect(), N = g.clientX - T;
1084
- let R = h === "left" ? (B || 0) + (N - i.value) : (B || 0) - (N - i.value);
1080
+ let g = "", v, w, k;
1081
+ function D(y) {
1082
+ if ((g === "left" || g === "right") && w) {
1083
+ const { left: M } = w.getBoundingClientRect(), { width: B } = v.getBoundingClientRect(), N = y.clientX - M;
1084
+ let R = g === "left" ? (B || 0) + (N - i.value) : (B || 0) - (N - i.value);
1085
1085
  R = n.value > 0 ? Math.max(n.value, R) : R;
1086
- const M = m(h, n.value);
1087
- M != null && (R = M > R ? R : M), e.value = R;
1086
+ const x = m(g, n.value);
1087
+ x != null && (R = x > R ? R : x), e.value = R;
1088
1088
  }
1089
- if ((h === "top" || h === "bottom") && C) {
1090
- const { top: T } = C.getBoundingClientRect(), { height: B } = y.getBoundingClientRect(), N = g.clientY - T;
1091
- let R = h === "top" ? (B || 0) + (N - u.value) : (B || 0) - (N - u.value);
1089
+ if ((g === "top" || g === "bottom") && w) {
1090
+ const { top: M } = w.getBoundingClientRect(), { height: B } = v.getBoundingClientRect(), N = y.clientY - M;
1091
+ let R = g === "top" ? (B || 0) + (N - u.value) : (B || 0) - (N - u.value);
1092
1092
  R = a.value > 0 ? Math.max(a.value, R) : R;
1093
- const M = f(h, a.value);
1094
- M != null && (R = M > R ? R : M), t.value = R;
1093
+ const x = f(g, a.value);
1094
+ x != null && (R = x > R ? R : x), t.value = R;
1095
1095
  }
1096
- r.value = 0, p.value = 0, i.value = -1, u.value = -1, l.value = !1, s.value = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", D), document.body.style.userSelect = "", h = "", y = null, C = null;
1096
+ r.value = 0, p.value = 0, i.value = -1, u.value = -1, l.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", D), document.body.style.userSelect = "", g = "", v = null, w = null;
1097
1097
  }
1098
- function O(g, T, B) {
1099
- if (h = T, y = B, l.value = !0, C = g.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), C) {
1100
- const { left: R } = C.getBoundingClientRect(), M = g.clientX - R;
1101
- r.value = M, i.value = M;
1102
- const F = m(h, n.value) || 0;
1103
- S = (w) => d(w, F, n.value, h), document.addEventListener("mousemove", S), document.addEventListener("mouseup", D), document.body.style.userSelect = "none";
1098
+ function O(y, M, B) {
1099
+ if (g = M, v = B, l.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
1100
+ const { left: R } = w.getBoundingClientRect(), x = y.clientX - R;
1101
+ r.value = x, i.value = x;
1102
+ const F = m(g, n.value) || 0;
1103
+ k = (C) => d(C, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", D), document.body.style.userSelect = "none";
1104
1104
  }
1105
1105
  }
1106
- function v(g, T, B) {
1107
- if (h = T, y = B, s.value = !0, C = g.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), C) {
1108
- const { top: R } = C.getBoundingClientRect();
1109
- p.value = g.clientY - R, u.value = g.clientY - R;
1110
- const M = f(h, a.value) || 0;
1111
- S = (F) => c(F, M, a.value, h), document.addEventListener("mousemove", S), document.addEventListener("mouseup", D), document.body.style.userSelect = "none";
1106
+ function h(y, M, B) {
1107
+ if (g = M, v = B, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
1108
+ const { top: R } = w.getBoundingClientRect();
1109
+ p.value = y.clientY - R, u.value = y.clientY - R;
1110
+ const x = f(g, a.value) || 0;
1111
+ k = (F) => c(F, x, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", D), document.body.style.userSelect = "none";
1112
1112
  }
1113
1113
  }
1114
- return { onClickHorizontalResizeBar: O, onClickVerticalResizeBar: v };
1114
+ return { onClickHorizontalResizeBar: O, onClickVerticalResizeBar: h };
1115
1115
  }
1116
1116
  const Ne = /* @__PURE__ */ ie({
1117
1117
  name: "FLayoutPane",
@@ -1119,43 +1119,43 @@ const Ne = /* @__PURE__ */ ie({
1119
1119
  emits: [],
1120
1120
  setup(e, t) {
1121
1121
  const n = b(e.minHeight <= 0 ? 100 : e.minHeight), a = b(e.minWidth <= 0 ? 100 : e.minWidth), o = b(e.width <= 0 ? 100 : e.width), i = b(e.height <= 0 ? 100 : e.height), r = b(Math.max(n.value, i.value)), l = b(Math.max(a.value, o.value)), s = b(), u = b(e.position), p = b(e.resizable);
1122
- ne(() => e.resizable, (v) => {
1123
- p.value = v;
1122
+ ne(() => e.resizable, (h) => {
1123
+ p.value = h;
1124
1124
  });
1125
1125
  const d = De("layout"), {
1126
1126
  useResizeHandleComposition: c
1127
1127
  } = d, f = Wn(l, r, a, n, c), {
1128
1128
  onClickHorizontalResizeBar: m,
1129
- onClickVerticalResizeBar: h
1130
- } = f, y = j(() => ({
1129
+ onClickVerticalResizeBar: g
1130
+ } = f, v = j(() => ({
1131
1131
  "f-layout-resize-bar": !0,
1132
1132
  "f-layout-resize-bar-e": u.value === "left",
1133
1133
  "f-layout-resize-bar-n": u.value === "bottom",
1134
1134
  "f-layout-resize-bar-s": u.value === "top",
1135
1135
  "f-layout-resize-bar-w": u.value === "right"
1136
- })), C = j(() => u.value !== "center" && p.value);
1137
- function S(v, g) {
1138
- (g === "left" || g === "right") && m(v, g, s.value), (g === "top" || g === "bottom") && h(v, g, s.value);
1136
+ })), w = j(() => u.value !== "center" && p.value);
1137
+ function k(h, y) {
1138
+ (y === "left" || y === "right") && m(h, y, s.value), (y === "top" || y === "bottom") && g(h, y, s.value);
1139
1139
  }
1140
1140
  const D = j(() => {
1141
- const v = {
1141
+ const h = {
1142
1142
  "f-layout-pane": !0,
1143
1143
  "f-page-content-nav": u.value === "left" || u.value === "right",
1144
1144
  "f-page-content-main": u.value === "center"
1145
1145
  };
1146
- return e.customClass && String(e.customClass).split(" ").reduce((g, T) => (g[T] = !0, g), v), v;
1146
+ return e.customClass && String(e.customClass).split(" ").reduce((y, M) => (y[M] = !0, y), h), h;
1147
1147
  }), O = j(() => {
1148
- const v = {};
1149
- return (l.value && u.value === "left" || u.value === "right") && (v.width = `${l.value}px`), (r.value && u.value === "bottom" || u.value === "top") && (v.height = `${r.value}px`), e.visible || (v.display = "none"), v;
1148
+ const h = {};
1149
+ return (l.value && u.value === "left" || u.value === "right") && (h.width = `${l.value}px`), (r.value && u.value === "bottom" || u.value === "top") && (h.height = `${r.value}px`), e.visible || (h.display = "none"), h;
1150
1150
  });
1151
- return () => k("div", {
1151
+ return () => S("div", {
1152
1152
  ref: s,
1153
1153
  class: D.value,
1154
1154
  style: O.value,
1155
1155
  "data-position": u.value
1156
- }, [t.slots.default && t.slots.default(), C.value && k("span", {
1157
- class: y.value,
1158
- onMousedown: (v) => S(v, u.value)
1156
+ }, [t.slots.default && t.slots.default(), w.value && S("span", {
1157
+ class: v.value,
1158
+ onMousedown: (h) => k(h, u.value)
1159
1159
  }, null)]);
1160
1160
  }
1161
1161
  });
@@ -1166,7 +1166,7 @@ function Ci(e, t) {
1166
1166
  return { canAccepts: n };
1167
1167
  }
1168
1168
  function qn(e, t, n) {
1169
- var M;
1169
+ var x;
1170
1170
  const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", i = b();
1171
1171
  let r;
1172
1172
  function l() {
@@ -1186,18 +1186,18 @@ function qn(e, t, n) {
1186
1186
  return null;
1187
1187
  if (F.value.schema && F.value.schema.type === "component")
1188
1188
  return F.value;
1189
- const w = b(F == null ? void 0 : F.value.parent), x = d(w);
1190
- return x || null;
1189
+ const C = b(F == null ? void 0 : F.value.parent), T = d(C);
1190
+ return T || null;
1191
1191
  }
1192
1192
  function c(F = t) {
1193
- var A;
1193
+ var V;
1194
1194
  if (n != null && n.getDraggableDesignItemElement)
1195
1195
  return n.getDraggableDesignItemElement(F);
1196
- const { componentInstance: w, designerItemElementRef: x } = F;
1197
- if (!w || !w.value)
1196
+ const { componentInstance: C, designerItemElementRef: T } = F;
1197
+ if (!C || !C.value)
1198
1198
  return null;
1199
- const { getCustomButtons: P } = w.value;
1200
- return w.value.canMove || P && ((A = P()) != null && A.length) ? x : c(F.parent);
1199
+ const { getCustomButtons: P } = C.value;
1200
+ return C.value.canMove || P && ((V = P()) != null && V.length) ? T : c(F.parent);
1201
1201
  }
1202
1202
  function f(F) {
1203
1203
  return !!n && n.canAccepts(F);
@@ -1205,20 +1205,20 @@ function qn(e, t, n) {
1205
1205
  function m() {
1206
1206
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
1207
1207
  }
1208
- function h() {
1208
+ function g() {
1209
1209
  }
1210
- function y(F, w) {
1211
- var x;
1212
- !F || !w || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, w), (x = t == null ? void 0 : t.setupContext) == null || x.emit("dragEnd"));
1210
+ function v(F, C) {
1211
+ var T;
1212
+ !F || !C || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, C), (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd"));
1213
1213
  }
1214
- function C(F, w) {
1215
- const { componentType: x } = F;
1216
- let P = Ma(x, F, w);
1214
+ function w(F, C) {
1215
+ const { componentType: T } = F;
1216
+ let P = Ma(T, F, C);
1217
1217
  n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(F, P));
1218
- const A = x.toLowerCase().replace(/-/g, "_");
1219
- return P && !P.id && P.type === x && (P.id = `${A}_${Math.random().toString().slice(2, 6)}`), P;
1218
+ const V = T.toLowerCase().replace(/-/g, "_");
1219
+ return P && !P.id && P.type === T && (P.id = `${V}_${Math.random().toString().slice(2, 6)}`), P;
1220
1220
  }
1221
- function S(F) {
1221
+ function k(F) {
1222
1222
  F && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(F);
1223
1223
  }
1224
1224
  function D(...F) {
@@ -1228,57 +1228,57 @@ function qn(e, t, n) {
1228
1228
  function O(F) {
1229
1229
  if (!F)
1230
1230
  return;
1231
- const w = t == null ? void 0 : t.schema, { formSchemaUtils: x } = F;
1232
- if (w && x.getExpressions().length) {
1233
- const P = x.getExpressions().findIndex((A) => A.target === w.id);
1234
- P > -1 && x.getExpressions().splice(P, 1);
1231
+ const C = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
1232
+ if (C && T.getExpressions().length) {
1233
+ const P = T.getExpressions().findIndex((V) => V.target === C.id);
1234
+ P > -1 && T.getExpressions().splice(P, 1);
1235
1235
  }
1236
1236
  }
1237
- function v(F) {
1237
+ function h(F) {
1238
1238
  if (!F || !(t != null && t.schema))
1239
1239
  return;
1240
- const w = t.schema, { formSchemaUtils: x } = F;
1241
- x.removeCommunicationInComponent(w);
1242
- }
1243
- function g(F) {
1244
- n && n.onRemoveComponent && n.onRemoveComponent(), O(F), v(F), t != null && t.schema.contents && t.schema.contents.map((w) => {
1245
- let x = w.id;
1246
- w.type === "component-ref" && (x = w.component);
1247
- const P = e.value.querySelectorAll(`#${x}-design-item`);
1248
- P != null && P.length && Array.from(P).map((A) => {
1240
+ const C = t.schema, { formSchemaUtils: T } = F;
1241
+ T.removeCommunicationInComponent(C);
1242
+ }
1243
+ function y(F) {
1244
+ n && n.onRemoveComponent && n.onRemoveComponent(), O(F), h(F), t != null && t.schema.contents && t.schema.contents.map((C) => {
1245
+ let T = C.id;
1246
+ C.type === "component-ref" && (T = C.component);
1247
+ const P = e.value.querySelectorAll(`#${T}-design-item`);
1248
+ P != null && P.length && Array.from(P).map((V) => {
1249
1249
  var Q;
1250
- (Q = A == null ? void 0 : A.componentInstance) != null && Q.value.onRemoveComponent && A.componentInstance.value.onRemoveComponent(F);
1250
+ (Q = V == null ? void 0 : V.componentInstance) != null && Q.value.onRemoveComponent && V.componentInstance.value.onRemoveComponent(F);
1251
1251
  });
1252
1252
  });
1253
1253
  }
1254
- function T() {
1254
+ function M() {
1255
1255
  if (n && n.getCustomButtons)
1256
1256
  return n.getCustomButtons();
1257
1257
  }
1258
1258
  function B(F) {
1259
- var x, P;
1260
- if (!((x = t == null ? void 0 : t.schema) != null && x.id))
1259
+ var T, P;
1260
+ if (!((T = t == null ? void 0 : t.schema) != null && T.id))
1261
1261
  return;
1262
1262
  if (!r && F && (r = F.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
1263
1263
  n.setComponentBasicInfoMap();
1264
1264
  return;
1265
1265
  }
1266
- let w = "";
1266
+ let C = "";
1267
1267
  if (n != null && n.getComponentTitle)
1268
- w = n.getComponentTitle();
1268
+ C = n.getComponentTitle();
1269
1269
  else {
1270
- const { text: A, title: Q, label: z, mainTitle: $, name: Y, type: W } = t.schema;
1271
- w = A || Q || z || $ || Y || ((P = L[W]) == null ? void 0 : P.name);
1270
+ const { text: V, title: Q, label: z, mainTitle: $, name: Y, type: W } = t.schema;
1271
+ C = V || Q || z || $ || Y || ((P = L[W]) == null ? void 0 : P.name);
1272
1272
  }
1273
- w && r.getControlBasicInfoMap().set(t.schema.id, {
1274
- componentTitle: w,
1275
- parentPathName: w
1273
+ C && r.getControlBasicInfoMap().set(t.schema.id, {
1274
+ componentTitle: C,
1275
+ parentPathName: C
1276
1276
  });
1277
1277
  }
1278
1278
  function N(F) {
1279
- var A;
1280
- const { changeObject: w } = F, { propertyID: x, propertyValue: P } = w;
1281
- if (["text", "title", "label", "name", "mainTitle"].includes((A = F == null ? void 0 : F.changeObject) == null ? void 0 : A.propertyID) && x && P && (B(), r)) {
1279
+ var V;
1280
+ const { changeObject: C } = F, { propertyID: T, propertyValue: P } = C;
1281
+ if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (B(), r)) {
1282
1282
  const Q = r.getControlBasicInfoMap(), z = Q.keys().toArray().filter(($) => {
1283
1283
  var Y, W;
1284
1284
  return ((Y = Q.get($)) == null ? void 0 : Y.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
@@ -1300,7 +1300,7 @@ function qn(e, t, n) {
1300
1300
  canNested: !p(),
1301
1301
  contents: t == null ? void 0 : t.schema.contents,
1302
1302
  elementRef: e,
1303
- parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
1303
+ parent: (x = t == null ? void 0 : t.parent) == null ? void 0 : x.componentInstance,
1304
1304
  schema: t == null ? void 0 : t.schema,
1305
1305
  styles: a,
1306
1306
  designerClass: o,
@@ -1309,14 +1309,14 @@ function qn(e, t, n) {
1309
1309
  getDraggableDesignItemElement: c,
1310
1310
  getDraggingDisplayText: m,
1311
1311
  getPropConfig: D,
1312
- getDragScopeElement: h,
1313
- onAcceptMovedChildElement: y,
1314
- onChildElementMovedOut: S,
1315
- addNewChildComponentSchema: C,
1312
+ getDragScopeElement: g,
1313
+ onAcceptMovedChildElement: v,
1314
+ onChildElementMovedOut: k,
1315
+ addNewChildComponentSchema: w,
1316
1316
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
1317
1317
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1),
1318
- onRemoveComponent: g,
1319
- getCustomButtons: T,
1318
+ onRemoveComponent: y,
1319
+ getCustomButtons: M,
1320
1320
  onPropertyChanged: R,
1321
1321
  setComponentBasicInfoMap: B,
1322
1322
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
@@ -1337,18 +1337,18 @@ const wi = /* @__PURE__ */ ie({
1337
1337
  } = r;
1338
1338
  return bn("layout", {
1339
1339
  useResizeHandleComposition: r
1340
- }), ge(() => {
1340
+ }), he(() => {
1341
1341
  n.value.componentInstance = i;
1342
- }), t.expose(i.value), () => k("div", {
1342
+ }), t.expose(i.value), () => S("div", {
1343
1343
  class: "f-layout f-page-content",
1344
1344
  ref: n
1345
- }, [t.slots.default && t.slots.default(), k("div", {
1345
+ }, [t.slots.default && t.slots.default(), S("div", {
1346
1346
  class: "f-layout-resize-overlay",
1347
1347
  style: u.value
1348
- }, null), k("div", {
1348
+ }, null), S("div", {
1349
1349
  class: "f-layout-horizontal-resize-proxy",
1350
1350
  style: l.value
1351
- }, null), k("div", {
1351
+ }, null), S("div", {
1352
1352
  class: "f-layout-vertical-resize-proxy",
1353
1353
  style: s.value
1354
1354
  }, null)]);
@@ -1388,48 +1388,48 @@ const Fi = /* @__PURE__ */ ie({
1388
1388
  const n = b(), a = b();
1389
1389
  De("designer-host-service");
1390
1390
  const o = De("design-item-context"), i = Si(o), r = qn(a, o, i);
1391
- r.value.canNested = !1, r.value.canMove = !1, r.value.canDelete = !1, ge(() => {
1391
+ r.value.canNested = !1, r.value.canMove = !1, r.value.canDelete = !1, he(() => {
1392
1392
  a.value.componentInstance = r;
1393
1393
  }), t.expose(r.value);
1394
1394
  const l = b(Math.max(e.minHeight, e.height)), s = b(Math.max(e.minWidth, e.width)), u = b(e.minHeight), p = b(e.minWidth), d = b(e.position), c = De("layout"), {
1395
1395
  useResizeHandleComposition: f
1396
1396
  } = c, m = Wn(s, l, p, u, f), {
1397
- onClickHorizontalResizeBar: h,
1398
- onClickVerticalResizeBar: y
1399
- } = m, C = j(() => ({
1397
+ onClickHorizontalResizeBar: g,
1398
+ onClickVerticalResizeBar: v
1399
+ } = m, w = j(() => ({
1400
1400
  "f-layout-resize-bar": !0,
1401
1401
  "f-layout-resize-bar-e": d.value === "left",
1402
1402
  "f-layout-resize-bar-n": d.value === "bottom",
1403
1403
  "f-layout-resize-bar-s": d.value === "top",
1404
1404
  "f-layout-resize-bar-w": d.value === "right"
1405
1405
  }));
1406
- function S(v, g) {
1407
- (g === "left" || g === "right") && h(v, g, n.value), (g === "top" || g === "bottom") && y(v, g, n.value);
1406
+ function k(h, y) {
1407
+ (y === "left" || y === "right") && g(h, y, n.value), (y === "top" || y === "bottom") && v(h, y, n.value);
1408
1408
  }
1409
1409
  const D = j(() => {
1410
- const v = {
1410
+ const h = {
1411
1411
  "f-layout-pane": !0,
1412
1412
  "f-page-content-nav": d.value === "left" || d.value === "right",
1413
1413
  "f-page-content-main": d.value === "center"
1414
1414
  };
1415
- return e.customClass && String(e.customClass).split(" ").reduce((g, T) => (g[T] = !0, g), v), v;
1415
+ return e.customClass && String(e.customClass).split(" ").reduce((y, M) => (y[M] = !0, y), h), h;
1416
1416
  }), O = j(() => {
1417
- const v = {
1417
+ const h = {
1418
1418
  flex: "1"
1419
1419
  };
1420
- return (s.value && d.value === "left" || d.value === "right") && (v.width = `${s.value}px`), (l.value && d.value === "bottom" || d.value === "top") && (v.height = `${l.value}px`), v;
1420
+ return (s.value && d.value === "left" || d.value === "right") && (h.width = `${s.value}px`), (l.value && d.value === "bottom" || d.value === "top") && (h.height = `${l.value}px`), h;
1421
1421
  });
1422
- return () => k("div", {
1422
+ return () => S("div", {
1423
1423
  ref: n,
1424
1424
  class: D.value,
1425
1425
  style: O.value
1426
- }, [k("div", {
1426
+ }, [S("div", {
1427
1427
  ref: a,
1428
1428
  class: "drag-container",
1429
1429
  "data-dragref": `${o.schema.id}-container`
1430
- }, [t.slots.default && t.slots.default()]), k("span", {
1431
- class: C.value,
1432
- onMousedown: (v) => S(v, d.value)
1430
+ }, [t.slots.default && t.slots.default()]), S("span", {
1431
+ class: w.value,
1432
+ onMousedown: (h) => k(h, d.value)
1433
1433
  }, null)]);
1434
1434
  }
1435
1435
  });
@@ -1852,47 +1852,47 @@ const tn = {
1852
1852
  a.value = e.dataSource;
1853
1853
  }), j(() => e.enableSearch ? "SearchBar" : "ContentHeader");
1854
1854
  const d = j(() => {
1855
- const y = {};
1856
- return r.value !== void 0 && (y.width = `${r.value}px`), l.value !== void 0 && l.value > 0 && (y.maxHeight = `${l.value}px`), y;
1855
+ const v = {};
1856
+ return r.value !== void 0 && (v.width = `${r.value}px`), l.value !== void 0 && l.value > 0 && (v.maxHeight = `${l.value}px`), v;
1857
1857
  });
1858
- function c(y) {
1859
- n.value.search(y);
1858
+ function c(v) {
1859
+ n.value.search(v);
1860
1860
  }
1861
- function f(y) {
1862
- o.value = y.map((C) => Object.assign({}, C)), s.value = y.map((C) => C[e.idField]), t.emit("selectionChange", o.value);
1861
+ function f(v) {
1862
+ o.value = v.map((w) => Object.assign({}, w)), s.value = v.map((w) => w[e.idField]), t.emit("selectionChange", o.value);
1863
1863
  }
1864
- function m(y) {
1864
+ function m(v) {
1865
1865
  if (e.enableHighlightSearch)
1866
1866
  return;
1867
- let C = [];
1867
+ let w = [];
1868
1868
  const {
1869
- searchOption: S
1869
+ searchOption: k
1870
1870
  } = e;
1871
- typeof S == "function" ? C = a.value.filter((D) => S(y, D)) : C = a.value.filter((D) => D[e.valueField].indexOf(y) > -1 || D[e.textField].indexOf(y) > -1), n.value.updateDataSource(C);
1871
+ typeof k == "function" ? w = a.value.filter((D) => k(v, D)) : w = a.value.filter((D) => D[e.valueField].indexOf(v) > -1 || D[e.textField].indexOf(v) > -1), n.value.updateDataSource(w);
1872
1872
  }
1873
- ne([() => e.selectedValues], ([y]) => {
1874
- e.multiSelect ? s.value = y.split(i.value) : s.value = [y];
1873
+ ne([() => e.selectedValues], ([v]) => {
1874
+ e.multiSelect ? s.value = v.split(i.value) : s.value = [v];
1875
1875
  });
1876
- function h(y) {
1877
- n.value.activeRowById(y);
1876
+ function g(v) {
1877
+ n.value.activeRowById(v);
1878
1878
  }
1879
- return ge(() => {
1880
- var y, C;
1879
+ return he(() => {
1880
+ var v, w;
1881
1881
  if (!e.multiSelect) {
1882
- const S = (y = s.value) == null ? void 0 : y[0];
1883
- let D = S;
1884
- if (!Pe(S)) {
1885
- const O = typeof S, v = typeof ((C = a.value[0]) == null ? void 0 : C[e.valueField || e.idField]);
1886
- v === "number" && O !== v && (D = Number(S)), v === "boolean" && O !== v && (D = S === "true" ? !0 : S === "false" ? !1 : S), h(D);
1882
+ const k = (v = s.value) == null ? void 0 : v[0];
1883
+ let D = k;
1884
+ if (!Pe(k)) {
1885
+ const O = typeof k, h = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
1886
+ h === "number" && O !== h && (D = Number(k)), h === "boolean" && O !== h && (D = k === "true" ? !0 : k === "false" ? !1 : k), g(D);
1887
1887
  }
1888
1888
  }
1889
1889
  }), t.expose({
1890
1890
  search: c,
1891
- activeRowById: h
1892
- }), () => k("div", {
1891
+ activeRowById: g
1892
+ }), () => S("div", {
1893
1893
  class: "f-combo-list-container",
1894
1894
  style: d.value
1895
- }, [k(Oa, {
1895
+ }, [S(Oa, {
1896
1896
  ref: n,
1897
1897
  size: "small",
1898
1898
  itemClass: "f-combo-list-item",
@@ -1915,9 +1915,9 @@ const tn = {
1915
1915
  function zi(e) {
1916
1916
  const { t } = bt(), n = b(""), a = b(e.modelValue), o = b(e.data || []), i = b(e.editable);
1917
1917
  function r(c) {
1918
- const f = e.multiSelect ? String(c).split(e.separator) : [String(c)], m = f.map((C) => [C, !0]), h = new Map(m);
1919
- return o.value.filter((C) => h.has(String(C[e.valueField]))).sort((C, S) => {
1920
- const D = f.indexOf(C[e.valueField]), O = f.indexOf(S[e.valueField]);
1918
+ const f = e.multiSelect ? String(c).split(e.separator) : [String(c)], m = f.map((w) => [w, !0]), g = new Map(m);
1919
+ return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
1920
+ const D = f.indexOf(w[e.valueField]), O = f.indexOf(k[e.valueField]);
1921
1921
  return D - O;
1922
1922
  });
1923
1923
  }
@@ -1927,8 +1927,8 @@ function zi(e) {
1927
1927
  }
1928
1928
  function s(c) {
1929
1929
  if (e.multiSelect) {
1930
- const f = c.split(e.separator).map((h) => [h, !0]), m = new Map(f);
1931
- return o.value.filter((h) => m.has(h[e.textField]));
1930
+ const f = c.split(e.separator).map((g) => [g, !0]), m = new Map(f);
1931
+ return o.value.filter((g) => m.has(g[e.textField]));
1932
1932
  }
1933
1933
  return o.value.filter((f) => "" + f[e.textField] === c);
1934
1934
  }
@@ -1942,17 +1942,17 @@ function zi(e) {
1942
1942
  return i.value && !m && (f = u(c)), f;
1943
1943
  }
1944
1944
  function d() {
1945
- const { url: c, method: f = "GET", headers: m = { "Content-Type": "application/json;charset=utf-8;" }, body: h = null } = e.remote, y = f.toLowerCase() === "get" ? { method: f, headers: m } : { method: f, headers: m, body: h };
1946
- let C = !1;
1947
- fetch(new Request(c, y)).then((S) => {
1948
- var O, v;
1949
- if (S.status === 200)
1950
- return C = !!((v = (O = S.headers) == null ? void 0 : O.get("content-type")) != null && v.includes("application/json")), C ? S.text() : S.json();
1951
- throw S.status === 405 ? new Error(t("comboList.remoteError")) : new Error(S.statusText);
1952
- }).then((S) => {
1953
- S.length && (o.value = C ? JSON.parse(S) : S);
1954
- }).catch((S) => {
1955
- console.warn(S);
1945
+ const { url: c, method: f = "GET", headers: m = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, v = f.toLowerCase() === "get" ? { method: f, headers: m } : { method: f, headers: m, body: g };
1946
+ let w = !1;
1947
+ fetch(new Request(c, v)).then((k) => {
1948
+ var O, h;
1949
+ if (k.status === 200)
1950
+ return w = !!((h = (O = k.headers) == null ? void 0 : O.get("content-type")) != null && h.includes("application/json")), w ? k.text() : k.json();
1951
+ throw k.status === 405 ? new Error(t("comboList.remoteError")) : new Error(k.statusText);
1952
+ }).then((k) => {
1953
+ k.length && (o.value = w ? JSON.parse(k) : k);
1954
+ }).catch((k) => {
1955
+ console.warn(k);
1956
1956
  });
1957
1957
  }
1958
1958
  return e.remote && d(), ne(() => e.data, () => {
@@ -1980,36 +1980,36 @@ const vt = /* @__PURE__ */ ie({
1980
1980
  modelValue: c,
1981
1981
  getSelectedItemsByDisplayText: f,
1982
1982
  getItemsByDisplayText: m
1983
- } = zi(e), h = b(e.dropDownIcon);
1984
- h.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (h.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
1985
- const y = j(() => e.multiSelect), C = j(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
1986
- function S() {
1987
- !y.value && o.value && o.value.hidePopup();
1983
+ } = zi(e), g = b(e.dropDownIcon);
1984
+ g.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (g.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
1985
+ const v = j(() => e.multiSelect), w = j(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
1986
+ function k() {
1987
+ !v.value && o.value && o.value.hidePopup();
1988
1988
  }
1989
1989
  function D(F) {
1990
- p.value = F.map((x) => x[e.textField]).join(e.separator);
1991
- let w = "";
1992
- F.length === 1 ? w = F[0][e.valueField] : w = F.map((x) => x[e.valueField]).join(e.separator), c.value !== w && (c.value = w, t.emit("update:modelValue", c.value), t.emit("change", F, c.value));
1990
+ p.value = F.map((T) => T[e.textField]).join(e.separator);
1991
+ let C = "";
1992
+ F.length === 1 ? C = F[0][e.valueField] : C = F.map((T) => T[e.valueField]).join(e.separator), c.value !== C && (c.value = C, t.emit("update:modelValue", c.value), t.emit("change", F, c.value));
1993
1993
  }
1994
1994
  function O() {
1995
1995
  const F = f(p.value);
1996
1996
  D(F);
1997
1997
  }
1998
- function v() {
1998
+ function h() {
1999
1999
  s.value || p.value;
2000
2000
  }
2001
- function g(F) {
2002
- var w;
2003
- c.value = "", (w = a.value) == null || w.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
2001
+ function y(F) {
2002
+ var C;
2003
+ c.value = "", (C = a.value) == null || C.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
2004
2004
  }
2005
- function T(F) {
2006
- var w, x;
2007
- e.enableSearch ? ((w = a.value) == null || w.search(F), (x = a.value) == null || x.activeRowById(F)) : (c.value = F, p.value = F, t.emit("update:modelValue", c.value), t.emit("change", [F], F));
2005
+ function M(F) {
2006
+ var C, T;
2007
+ e.enableSearch ? ((C = a.value) == null || C.search(F), (T = a.value) == null || T.activeRowById(F)) : (c.value = F, p.value = F, t.emit("update:modelValue", c.value), t.emit("change", [F], F));
2008
2008
  }
2009
2009
  function B(F) {
2010
2010
  if (e.multiSelect) {
2011
- const w = m(F), P = w.map((A) => A[e.idField || e.valueField]).join(e.separator);
2012
- c.value !== P && (c.value = P, t.emit("update:modelValue", c.value), t.emit("change", w, c.value));
2011
+ const C = m(F), P = C.map((V) => V[e.idField || e.valueField]).join(e.separator);
2012
+ c.value !== P && (c.value = P, t.emit("update:modelValue", c.value), t.emit("change", C, c.value));
2013
2013
  }
2014
2014
  }
2015
2015
  function N() {
@@ -2017,26 +2017,26 @@ const vt = /* @__PURE__ */ ie({
2017
2017
  }
2018
2018
  function R(F) {
2019
2019
  const {
2020
- value: w
2020
+ value: C
2021
2021
  } = F.target;
2022
- T(w), t.emit("input", w);
2022
+ M(C), t.emit("input", C);
2023
2023
  }
2024
- function M() {
2024
+ function x() {
2025
2025
  o.value.hidePopup();
2026
2026
  }
2027
2027
  return t.expose({
2028
2028
  getDisplayText: N,
2029
- hidePopup: M
2030
- }), ne([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, w, x, P, A]) => {
2031
- i.value = F, d.value = w, r.value = x, l.value = P, s.value = A;
2032
- }), () => k(Ba, {
2029
+ hidePopup: x
2030
+ }), ne([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, C, T, P, V]) => {
2031
+ i.value = F, d.value = C, r.value = T, l.value = P, s.value = V;
2032
+ }), () => S(Ba, {
2033
2033
  ref: o,
2034
2034
  id: e.id,
2035
2035
  disable: i.value,
2036
2036
  readonly: s.value,
2037
2037
  forcePlaceholder: e.forcePlaceholder,
2038
2038
  editable: d.value,
2039
- buttonContent: h.value,
2039
+ buttonContent: g.value,
2040
2040
  placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
2041
2041
  enableClear: r.value,
2042
2042
  maxLength: e.maxLength,
@@ -2048,8 +2048,8 @@ const vt = /* @__PURE__ */ ie({
2048
2048
  "onUpdate:modelValue": (F) => p.value = F,
2049
2049
  focusOnCreated: e.focusOnCreated,
2050
2050
  selectOnCreated: e.selectOnCreated,
2051
- onClear: g,
2052
- onClick: v,
2051
+ onClear: y,
2052
+ onClick: h,
2053
2053
  onChange: B,
2054
2054
  onBlur: O,
2055
2055
  onInput: R,
@@ -2060,7 +2060,7 @@ const vt = /* @__PURE__ */ ie({
2060
2060
  popupOnClick: e.popupOnClick,
2061
2061
  limitContentBySpace: !0
2062
2062
  }, {
2063
- default: () => [k($i, {
2063
+ default: () => [S($i, {
2064
2064
  ref: a,
2065
2065
  idField: e.idField,
2066
2066
  valueField: e.valueField,
@@ -2073,9 +2073,9 @@ const vt = /* @__PURE__ */ ie({
2073
2073
  enableSearch: l.value,
2074
2074
  maxHeight: e.maxHeight,
2075
2075
  enableHighlightSearch: e.enableHighlightSearch,
2076
- width: e.fitEditor ? C.value : void 0,
2076
+ width: e.fitEditor ? w.value : void 0,
2077
2077
  onSelectionChange: (F) => {
2078
- D(F), S();
2078
+ D(F), k();
2079
2079
  }
2080
2080
  }, null)]
2081
2081
  });
@@ -2358,9 +2358,9 @@ const Vi = /* @__PURE__ */ ie({
2358
2358
  emits: ["clear", "update:modelValue", "change"],
2359
2359
  setup(e, t) {
2360
2360
  const n = b(), a = De("designer-host-service"), o = De("design-item-context"), i = Ai(o, a), r = Ea(n, o, i);
2361
- return ge(() => {
2361
+ return he(() => {
2362
2362
  n.value.componentInstance = r;
2363
- }), t.expose(r.value), () => k(Da, {
2363
+ }), t.expose(r.value), () => S(Da, {
2364
2364
  ref: n,
2365
2365
  buttonContent: e.dropDownIcon,
2366
2366
  readonly: !0,
@@ -4637,7 +4637,7 @@ function Mt(e) {
4637
4637
  function rr(e) {
4638
4638
  return !Object.keys(e).length;
4639
4639
  }
4640
- function gt(e) {
4640
+ function ht(e) {
4641
4641
  return typeof e == "function";
4642
4642
  }
4643
4643
  function lr(e, t) {
@@ -4649,11 +4649,11 @@ function sr(e, t) {
4649
4649
  }) && qe("changeField"), t;
4650
4650
  }
4651
4651
  function ur(e) {
4652
- gt(e) || qe("selectorType");
4652
+ ht(e) || qe("selectorType");
4653
4653
  }
4654
4654
  function cr(e) {
4655
- gt(e) || Mt(e) || qe("handlerType"), Mt(e) && Object.values(e).some(function(t) {
4656
- return !gt(t);
4655
+ ht(e) || Mt(e) || qe("handlerType"), Mt(e) && Object.values(e).some(function(t) {
4656
+ return !ht(t);
4657
4657
  }) && qe("handlersType");
4658
4658
  }
4659
4659
  function dr(e) {
@@ -4683,7 +4683,7 @@ function mr(e) {
4683
4683
  St.initial(e), St.handler(t);
4684
4684
  var n = {
4685
4685
  current: e
4686
- }, a = mt(gr)(n, t), o = mt(vr)(n), i = mt(St.changes)(e), r = mt(yr)(n);
4686
+ }, a = mt(hr)(n, t), o = mt(vr)(n), i = mt(St.changes)(e), r = mt(yr)(n);
4687
4687
  function l() {
4688
4688
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(p) {
4689
4689
  return p;
@@ -4696,18 +4696,18 @@ function mr(e) {
4696
4696
  return [l, s];
4697
4697
  }
4698
4698
  function yr(e, t) {
4699
- return gt(t) ? t(e.current) : t;
4699
+ return ht(t) ? t(e.current) : t;
4700
4700
  }
4701
4701
  function vr(e, t) {
4702
4702
  return e.current = vn(vn({}, e.current), t), t;
4703
4703
  }
4704
- function gr(e, t, n) {
4705
- return gt(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
4704
+ function hr(e, t, n) {
4705
+ return ht(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
4706
4706
  var o;
4707
4707
  return (o = t[a]) === null || o === void 0 ? void 0 : o.call(t, e.current[a]);
4708
4708
  }), n;
4709
4709
  }
4710
- var hr = {
4710
+ var gr = {
4711
4711
  create: mr
4712
4712
  }, br = {
4713
4713
  paths: {
@@ -4729,7 +4729,7 @@ function wr(e) {
4729
4729
  return {}.toString.call(e).includes("Object");
4730
4730
  }
4731
4731
  function kr(e) {
4732
- return e || gn("configIsRequired"), wr(e) || gn("configType"), e.urls ? (Sr(), {
4732
+ return e || hn("configIsRequired"), wr(e) || hn("configType"), e.urls ? (Sr(), {
4733
4733
  paths: {
4734
4734
  vs: e.urls.monacoBase
4735
4735
  }
@@ -4755,7 +4755,7 @@ var _n = {
4755
4755
 
4756
4756
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
4757
4757
  `
4758
- }, gn = Cr(Fr)(_n), xr = {
4758
+ }, hn = Cr(Fr)(_n), xr = {
4759
4759
  config: kr
4760
4760
  }, Tr = function() {
4761
4761
  for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
@@ -4785,7 +4785,7 @@ function Gt(e) {
4785
4785
  return t = !0;
4786
4786
  }, n;
4787
4787
  }
4788
- var Br = hr.create({
4788
+ var Br = gr.create({
4789
4789
  config: br,
4790
4790
  isInitialized: !1,
4791
4791
  resolve: null,
@@ -4911,11 +4911,11 @@ const Rr = /* @__PURE__ */ ie({
4911
4911
  async function l() {
4912
4912
  if (n.value && !o) {
4913
4913
  const m = await r(), {
4914
- vsPath: h
4914
+ vsPath: g
4915
4915
  } = m;
4916
4916
  Yt.config({
4917
4917
  paths: {
4918
- vs: window.location.origin + h
4918
+ vs: window.location.origin + g
4919
4919
  }
4920
4920
  }), Yt.config({
4921
4921
  "vs/nls": {
@@ -4923,8 +4923,8 @@ const Rr = /* @__PURE__ */ ie({
4923
4923
  "*": "zh-cn"
4924
4924
  }
4925
4925
  }
4926
- }), Yt.init().then((y) => {
4927
- a.value = y, o = y.editor.create(n.value, {
4926
+ }), Yt.init().then((v) => {
4927
+ a.value = v, o = v.editor.create(n.value, {
4928
4928
  value: i.value,
4929
4929
  automaticLayout: !0,
4930
4930
  // 自动调整布局
@@ -4956,27 +4956,27 @@ const Rr = /* @__PURE__ */ ie({
4956
4956
  const s = b(), u = new ResizeObserver((m) => {
4957
4957
  o == null || o.layout();
4958
4958
  const {
4959
- width: h,
4960
- height: y
4959
+ width: g,
4960
+ height: v
4961
4961
  } = m[0].contentRect;
4962
4962
  s.value = {
4963
- width: `${h - 1}px`,
4964
- height: `${y}px`
4963
+ width: `${g - 1}px`,
4964
+ height: `${v}px`
4965
4965
  };
4966
4966
  });
4967
4967
  function p() {
4968
4968
  return o == null ? void 0 : o.getValue();
4969
4969
  }
4970
4970
  function d(m) {
4971
- const h = o.getSelection(), y = new a.value.Range(h.startLineNumber, h.startColumn, h.endLineNumber, h.endColumn);
4971
+ const g = o.getSelection(), v = new a.value.Range(g.startLineNumber, g.startColumn, g.endLineNumber, g.endColumn);
4972
4972
  o.executeEdits("insert-text", [{
4973
- range: y,
4973
+ range: v,
4974
4974
  text: m,
4975
4975
  forceMoveMarkers: !0
4976
4976
  // 移动光标到插入后的位置
4977
4977
  }]);
4978
4978
  }
4979
- ge(() => {
4979
+ he(() => {
4980
4980
  l(), n.value && u.observe(n.value.parentElement);
4981
4981
  }), Cn(() => {
4982
4982
  o && o.dispose(), u && n.value && (u.unobserve(n.value), u.disconnect());
@@ -4992,7 +4992,7 @@ const Rr = /* @__PURE__ */ ie({
4992
4992
  insertText: d,
4993
4993
  clearText: f,
4994
4994
  setContent: c
4995
- }), () => k("div", {
4995
+ }), () => S("div", {
4996
4996
  class: "expression-code-editor",
4997
4997
  style: s.value,
4998
4998
  ref: n
@@ -5055,13 +5055,13 @@ const Rr = /* @__PURE__ */ ie({
5055
5055
  }) {
5056
5056
  Ve(u);
5057
5057
  }
5058
- return ge(() => {
5058
+ return he(() => {
5059
5059
  Ve(u);
5060
- }), () => k("div", {
5060
+ }), () => S("div", {
5061
5061
  class: "h-100 f-utils-fill",
5062
5062
  style: "overflow:auto",
5063
5063
  id: "entity-tree-view"
5064
- }, [k(Na, {
5064
+ }, [S(Na, {
5065
5065
  ref: a,
5066
5066
  fit: !1,
5067
5067
  rowNumber: {
@@ -5089,180 +5089,180 @@ const Rr = /* @__PURE__ */ ie({
5089
5089
  const n = b("dataEntity"), a = b(e.dataSource), {
5090
5090
  entities: o,
5091
5091
  variables: i
5092
- } = a.value, r = b(""), l = b((o == null ? void 0 : o.fields) || []), s = (w, x) => {
5093
- w.stopPropagation(), t.emit("fieldClick", {
5094
- $event: w,
5095
- item: x.raw
5092
+ } = a.value, r = b(""), l = b((o == null ? void 0 : o.fields) || []), s = (C, T) => {
5093
+ C.stopPropagation(), t.emit("fieldClick", {
5094
+ $event: C,
5095
+ item: T.raw
5096
5096
  });
5097
- }, u = (w, x) => {
5098
- const P = `${x.raw.name} [${x.raw.bindingPath}]`;
5099
- return k("div", {
5097
+ }, u = (C, T) => {
5098
+ const P = `${T.raw.name} [${T.raw.bindingPath}]`;
5099
+ return S("div", {
5100
5100
  class: "d-flex align-items-center w-100 entity-field",
5101
5101
  style: "justify-content: space-between;"
5102
- }, [k("span", {
5102
+ }, [S("span", {
5103
5103
  title: P,
5104
5104
  class: "f-utils-fill text-truncate"
5105
- }, [P]), k("button", {
5105
+ }, [P]), S("button", {
5106
5106
  title: "插入属性名称",
5107
5107
  class: "btn btn-link d-none",
5108
5108
  style: "width:24px;height:24px",
5109
- onClick: (A) => s(A, x),
5110
- onDblclick: (A) => A.stopPropagation()
5111
- }, [k("span", {
5109
+ onClick: (V) => s(V, T),
5110
+ onDblclick: (V) => V.stopPropagation()
5111
+ }, [S("span", {
5112
5112
  class: "f-icon f-icon-new-edit",
5113
5113
  style: "font-size: 12px;"
5114
5114
  }, null)])]);
5115
- }, p = b({}), d = b(), c = j(() => (w) => ({
5115
+ }, p = b({}), d = b(), c = j(() => (C) => ({
5116
5116
  "list-group d-flex flex-column": !0,
5117
- "f-utils-fill": n.value === w,
5118
- expand: n.value === w,
5119
- collapse: n.value !== w
5120
- })), f = j(() => (w) => ({
5121
- "f-icon f-icon-arrow-chevron-up": n.value !== w,
5122
- "f-icon f-icon-arrow-chevron-down": n.value === w
5123
- })), m = j(() => (w) => ({
5117
+ "f-utils-fill": n.value === C,
5118
+ expand: n.value === C,
5119
+ collapse: n.value !== C
5120
+ })), f = j(() => (C) => ({
5121
+ "f-icon f-icon-arrow-chevron-up": n.value !== C,
5122
+ "f-icon f-icon-arrow-chevron-down": n.value === C
5123
+ })), m = j(() => (C) => ({
5124
5124
  "functions-type d-flex flex-column": !0,
5125
- open: p.value[w],
5126
- closed: !p.value[w]
5127
- })), h = j(() => (w) => ({
5128
- "f-icon f-icon-arrow-chevron-down": p.value[w],
5129
- "f-icon f-icon-arrow-chevron-right": !p.value[w]
5130
- })), y = j(() => (w) => {
5131
- var x;
5125
+ open: p.value[C],
5126
+ closed: !p.value[C]
5127
+ })), g = j(() => (C) => ({
5128
+ "f-icon f-icon-arrow-chevron-down": p.value[C],
5129
+ "f-icon f-icon-arrow-chevron-right": !p.value[C]
5130
+ })), v = j(() => (C) => {
5131
+ var T;
5132
5132
  return {
5133
5133
  "functions-item pl-2": !0,
5134
- selected: ((x = d.value) == null ? void 0 : x.key) === w.key
5134
+ selected: ((T = d.value) == null ? void 0 : T.key) === C.key
5135
5135
  };
5136
5136
  });
5137
- function C(w, x) {
5138
- w.stopPropagation(), p.value = p.value || {}, p.value[x] = !p.value[x];
5137
+ function w(C, T) {
5138
+ C.stopPropagation(), p.value = p.value || {}, p.value[T] = !p.value[T];
5139
5139
  }
5140
- function S(w, x) {
5141
- w.stopPropagation(), d.value = x;
5140
+ function k(C, T) {
5141
+ C.stopPropagation(), d.value = T;
5142
5142
  }
5143
- function D(w, x) {
5143
+ function D(C, T) {
5144
5144
  t.emit("variableItemDblClick", {
5145
- $event: w,
5146
- item: x
5145
+ $event: C,
5146
+ item: T
5147
5147
  });
5148
5148
  }
5149
5149
  function O({
5150
- $event: w,
5151
- node: x
5150
+ $event: C,
5151
+ node: T
5152
5152
  }) {
5153
5153
  t.emit("entityItemDblClick", {
5154
- $event: w,
5155
- item: x.data,
5154
+ $event: C,
5155
+ item: T.data,
5156
5156
  entityCode: o == null ? void 0 : o.entityCode,
5157
- parentCodes: x.data.parents.join(".")
5157
+ parentCodes: T.data.parents.join(".")
5158
5158
  });
5159
5159
  }
5160
- function v() {
5161
- return k(zr, {
5160
+ function h() {
5161
+ return S(zr, {
5162
5162
  data: l.value,
5163
5163
  formatter: u,
5164
5164
  onDblclickNode: O
5165
5165
  }, null);
5166
5166
  }
5167
- function g() {
5167
+ function y() {
5168
5168
  if (i)
5169
- return k("ul", {
5169
+ return S("ul", {
5170
5170
  class: "w-100 functions-list"
5171
- }, [Object.keys(i).map((w) => i[w].visible && k("li", {
5172
- "variable-type": w,
5173
- class: m.value(w)
5174
- }, [k("div", {
5171
+ }, [Object.keys(i).map((C) => i[C].visible && S("li", {
5172
+ "variable-type": C,
5173
+ class: m.value(C)
5174
+ }, [S("div", {
5175
5175
  class: "functions-type-name pl-2 d-flex align-items-center",
5176
- onClick: (x) => {
5177
- C(x, w);
5176
+ onClick: (T) => {
5177
+ w(T, C);
5178
5178
  }
5179
- }, [k("span", {
5180
- class: h.value(w)
5181
- }, null), i[w].name]), k("ul", {
5179
+ }, [S("span", {
5180
+ class: g.value(C)
5181
+ }, null), i[C].name]), S("ul", {
5182
5182
  class: "pl-3 mr-2"
5183
- }, [i[w].items.map((x) => k("li", {
5184
- class: y.value(x),
5185
- onClick: (P) => S(P, x),
5186
- onDblclick: (P) => D(P, x)
5187
- }, [x.name]))])]))]);
5188
- }
5189
- function T(w, x) {
5190
- if (w.stopPropagation(), n.value === x) {
5183
+ }, [i[C].items.map((T) => S("li", {
5184
+ class: v.value(T),
5185
+ onClick: (P) => k(P, T),
5186
+ onDblclick: (P) => D(P, T)
5187
+ }, [T.name]))])]))]);
5188
+ }
5189
+ function M(C, T) {
5190
+ if (C.stopPropagation(), n.value === T) {
5191
5191
  n.value = "";
5192
5192
  return;
5193
5193
  }
5194
- n.value = x;
5194
+ n.value = T;
5195
5195
  }
5196
- ge(() => {
5196
+ he(() => {
5197
5197
  if (i) {
5198
- const w = Object.keys(i)[0];
5199
- p.value[w] = !0;
5198
+ const C = Object.keys(i)[0];
5199
+ p.value[C] = !0;
5200
5200
  }
5201
5201
  });
5202
- function B(w, x) {
5203
- const P = w.children.map((Q) => B(Q, x)).filter((Q) => Q !== null);
5204
- return w.data.name.toLowerCase().includes(x.toLowerCase()) || w.data.bindingPath.toLowerCase().includes(x.toLowerCase()) ? {
5202
+ function B(C, T) {
5203
+ const P = C.children.map((Q) => B(Q, T)).filter((Q) => Q !== null);
5204
+ return C.data.name.toLowerCase().includes(T.toLowerCase()) || C.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
5205
5205
  data: {
5206
- ...w.data
5206
+ ...C.data
5207
5207
  },
5208
- children: w.children
5208
+ children: C.children
5209
5209
  // 注意这里保留原始子节点
5210
5210
  } : P.length > 0 ? {
5211
5211
  data: {
5212
- ...w.data
5212
+ ...C.data
5213
5213
  },
5214
5214
  children: P
5215
5215
  } : null;
5216
5216
  }
5217
- function N(w, x) {
5218
- return w.map((P) => B(P, x)).filter((P) => P !== null);
5217
+ function N(C, T) {
5218
+ return C.map((P) => B(P, T)).filter((P) => P !== null);
5219
5219
  }
5220
5220
  function R() {
5221
- const w = N((o == null ? void 0 : o.fields) || [], r.value);
5222
- l.value = w;
5221
+ const C = N((o == null ? void 0 : o.fields) || [], r.value);
5222
+ l.value = C;
5223
5223
  }
5224
- function M() {
5224
+ function x() {
5225
5225
  l.value = (o == null ? void 0 : o.fields) || [];
5226
5226
  }
5227
- function F(w) {
5228
- w.key === "Enter" && R();
5227
+ function F(C) {
5228
+ C.key === "Enter" && R();
5229
5229
  }
5230
- return () => k("div", {
5230
+ return () => S("div", {
5231
5231
  class: "f-utils-fill entity-variable"
5232
- }, [k("ul", {
5232
+ }, [S("ul", {
5233
5233
  class: "d-flex flex-column h-100"
5234
- }, [k("li", {
5234
+ }, [S("li", {
5235
5235
  class: c.value("dataEntity")
5236
- }, [k("div", {
5236
+ }, [S("div", {
5237
5237
  class: "title px-2 d-flex align-items-center",
5238
- onClick: (w) => T(w, "dataEntity")
5239
- }, [yt("数据实体"), k("span", {
5238
+ onClick: (C) => M(C, "dataEntity")
5239
+ }, [yt("数据实体"), S("span", {
5240
5240
  class: f.value("dataEntity")
5241
- }, null)]), k("div", {
5241
+ }, null)]), S("div", {
5242
5242
  class: "data-area f-utils-fill d-flex flex-column"
5243
- }, [k("div", {
5243
+ }, [S("div", {
5244
5244
  class: "w-100"
5245
- }, [k(Mn, {
5245
+ }, [S(Mn, {
5246
5246
  class: "m-2",
5247
5247
  buttonContent: '<i class="f-icon f-icon-search"></i>',
5248
5248
  enableClear: !0,
5249
5249
  popupOnClick: !0,
5250
5250
  placeholder: "请输入名称或编号,按回车查询",
5251
5251
  modelValue: r.value,
5252
- "onUpdate:modelValue": (w) => r.value = w,
5252
+ "onUpdate:modelValue": (C) => r.value = C,
5253
5253
  onClickButton: R,
5254
- onClear: M,
5254
+ onClear: x,
5255
5255
  onKeyup: F
5256
- }, null)]), v()])]), k("li", {
5256
+ }, null)]), h()])]), S("li", {
5257
5257
  class: c.value("variables")
5258
- }, [k("div", {
5258
+ }, [S("div", {
5259
5259
  class: "title px-2 d-flex align-items-center",
5260
- onClick: (w) => T(w, "variables")
5261
- }, [yt("变量"), k("span", {
5260
+ onClick: (C) => M(C, "variables")
5261
+ }, [yt("变量"), S("span", {
5262
5262
  class: f.value("variables")
5263
- }, null)]), k("div", {
5263
+ }, null)]), S("div", {
5264
5264
  class: "data-area f-utils-fill"
5265
- }, [g()])])])]);
5265
+ }, [y()])])])]);
5266
5266
  }
5267
5267
  }), Ar = {
5268
5268
  functionItems: {
@@ -5278,145 +5278,145 @@ const Rr = /* @__PURE__ */ ie({
5278
5278
  props: Ar,
5279
5279
  emits: ["insertFunction", "search"],
5280
5280
  setup(e, t) {
5281
- const n = b(), a = b(""), o = b(), i = b({}), r = b(""), l = "没有与搜索条件匹配的项", s = b(e.functionItems), u = j(() => (v) => e.singleExpand ? {
5281
+ const n = b(), a = b(""), o = b(), i = b({}), r = b(""), l = "没有与搜索条件匹配的项", s = b(e.functionItems), u = j(() => (h) => e.singleExpand ? {
5282
5282
  "functions-type d-flex flex-column": !0,
5283
- open: a.value === v,
5284
- closed: a.value !== v
5283
+ open: a.value === h,
5284
+ closed: a.value !== h
5285
5285
  } : {
5286
5286
  "functions-type d-flex flex-column": !0,
5287
- open: i.value[v],
5288
- closed: !i.value[v]
5289
- }), p = j(() => (v) => e.singleExpand ? {
5290
- "f-icon f-icon-arrow-chevron-down": a.value === v,
5291
- "f-icon f-icon-arrow-chevron-right": a.value !== v
5287
+ open: i.value[h],
5288
+ closed: !i.value[h]
5289
+ }), p = j(() => (h) => e.singleExpand ? {
5290
+ "f-icon f-icon-arrow-chevron-down": a.value === h,
5291
+ "f-icon f-icon-arrow-chevron-right": a.value !== h
5292
5292
  } : {
5293
- "f-icon f-icon-arrow-chevron-down": i.value[v],
5294
- "f-icon f-icon-arrow-chevron-right": !i.value[v]
5295
- }), d = j(() => (v) => {
5296
- var g;
5293
+ "f-icon f-icon-arrow-chevron-down": i.value[h],
5294
+ "f-icon f-icon-arrow-chevron-right": !i.value[h]
5295
+ }), d = j(() => (h) => {
5296
+ var y;
5297
5297
  return {
5298
5298
  "functions-item pl-2": !0,
5299
- selected: ((g = o.value) == null ? void 0 : g.key) === v.key
5299
+ selected: ((y = o.value) == null ? void 0 : y.key) === h.key
5300
5300
  };
5301
5301
  }), c = b(Object.keys(s.value));
5302
- ne(() => e.functionItems, (v) => {
5303
- s.value = v, c.value = Object.keys(s.value), r.value && (i.value = c.value.reduce((g, T) => (g[T] = !0, g), {}));
5302
+ ne(() => e.functionItems, (h) => {
5303
+ s.value = h, c.value = Object.keys(s.value), r.value && (i.value = c.value.reduce((y, M) => (y[M] = !0, y), {}));
5304
5304
  });
5305
- function f(v) {
5306
- v || (v = a.value);
5307
- const g = n.value.querySelector('li[function-type="' + v + '"] > div.functions-type-name');
5308
- g && (n.value.querySelector(".expression-left").scrollTop = 0, g.scrollIntoViewIfNeeded ? g.scrollIntoViewIfNeeded(!0) : g.scrollIntoView({
5305
+ function f(h) {
5306
+ h || (h = a.value);
5307
+ const y = n.value.querySelector('li[function-type="' + h + '"] > div.functions-type-name');
5308
+ y && (n.value.querySelector(".expression-left").scrollTop = 0, y.scrollIntoViewIfNeeded ? y.scrollIntoViewIfNeeded(!0) : y.scrollIntoView({
5309
5309
  behavior: "smooth",
5310
5310
  block: "nearest"
5311
5311
  }));
5312
5312
  }
5313
- function m(v) {
5313
+ function m(h) {
5314
5314
  if (e.singleExpand) {
5315
- if (a.value === v) {
5315
+ if (a.value === h) {
5316
5316
  a.value = "";
5317
5317
  return;
5318
5318
  }
5319
- a.value = v;
5319
+ a.value = h;
5320
5320
  } else
5321
- i.value = i.value || {}, i.value[v] = !i.value[v];
5321
+ i.value = i.value || {}, i.value[h] = !i.value[h];
5322
5322
  }
5323
- function h(v, g) {
5324
- v.stopPropagation(), o.value = g;
5323
+ function g(h, y) {
5324
+ h.stopPropagation(), o.value = y;
5325
5325
  }
5326
- function y(v, g) {
5327
- v.stopPropagation(), t.emit("insertFunction", {
5328
- $event: v,
5329
- item: g
5326
+ function v(h, y) {
5327
+ h.stopPropagation(), t.emit("insertFunction", {
5328
+ $event: h,
5329
+ item: y
5330
5330
  });
5331
5331
  }
5332
- ne(() => a.value, (v, g, T) => {
5333
- if (v) {
5332
+ ne(() => a.value, (h, y, M) => {
5333
+ if (h) {
5334
5334
  const B = setTimeout(() => {
5335
- f(v);
5335
+ f(h);
5336
5336
  }, 200);
5337
- T(() => clearTimeout(B));
5337
+ M(() => clearTimeout(B));
5338
5338
  }
5339
5339
  });
5340
- function C() {
5340
+ function w() {
5341
5341
  t.emit("search", r.value);
5342
5342
  }
5343
- function S() {
5343
+ function k() {
5344
5344
  t.emit("search", "");
5345
5345
  }
5346
- function D(v) {
5347
- v.key === "Enter" && C();
5346
+ function D(h) {
5347
+ h.key === "Enter" && w();
5348
5348
  }
5349
5349
  function O() {
5350
- return c.value.length ? c.value.map((v) => k("li", {
5351
- "function-type": v,
5352
- class: u.value(v)
5353
- }, [k("div", {
5350
+ return c.value.length ? c.value.map((h) => S("li", {
5351
+ "function-type": h,
5352
+ class: u.value(h)
5353
+ }, [S("div", {
5354
5354
  class: "functions-type-name pl-2 d-flex align-items-center",
5355
5355
  onClick: () => {
5356
- m(v);
5356
+ m(h);
5357
5357
  }
5358
- }, [k("span", {
5359
- class: p.value(v)
5360
- }, null), s.value[v].name]), k("ul", {
5358
+ }, [S("span", {
5359
+ class: p.value(h)
5360
+ }, null), s.value[h].name]), S("ul", {
5361
5361
  class: "pl-3 mr-2"
5362
- }, [s.value[v].items.map((g) => {
5363
- if (g.visible !== !1)
5364
- return k("li", {
5365
- class: d.value(g),
5366
- onClick: (T) => h(T, g),
5367
- onDblclick: (T) => y(T, g)
5368
- }, [v === "advanced" ? g.key : g.name]);
5369
- })])])) : k("li", {
5362
+ }, [s.value[h].items.map((y) => {
5363
+ if (y.visible !== !1)
5364
+ return S("li", {
5365
+ class: d.value(y),
5366
+ onClick: (M) => g(M, y),
5367
+ onDblclick: (M) => v(M, y)
5368
+ }, [h === "advanced" ? y.key : y.name]);
5369
+ })])])) : S("li", {
5370
5370
  class: "empty-message"
5371
5371
  }, [l]);
5372
5372
  }
5373
- return ge(() => {
5374
- a.value = c.value[0], i.value = c.value.reduce((v, g) => (v[g] = a.value === g, v), {});
5375
- }), () => k("div", {
5373
+ return he(() => {
5374
+ a.value = c.value[0], i.value = c.value.reduce((h, y) => (h[y] = a.value === y, h), {});
5375
+ }), () => S("div", {
5376
5376
  class: "d-flex f-utils-fill flex-column",
5377
5377
  ref: n
5378
- }, [k(We, {
5378
+ }, [S(We, {
5379
5379
  class: "flex-column expression-left"
5380
5380
  }, {
5381
- default: () => [k(Ne, {
5381
+ default: () => [S(Ne, {
5382
5382
  position: "top",
5383
5383
  minHeight: 50,
5384
5384
  height: 50,
5385
5385
  "custom-class": "position-relative d-flex align-items-center search-bar",
5386
5386
  resizable: !1
5387
5387
  }, {
5388
- default: () => [k(Mn, {
5388
+ default: () => [S(Mn, {
5389
5389
  class: "w-100 mx-2",
5390
5390
  buttonContent: '<i class="f-icon f-icon-search"></i>',
5391
5391
  enableClear: !0,
5392
5392
  popupOnClick: !0,
5393
5393
  placeholder: "请输入函数名称,按回车查询",
5394
5394
  modelValue: r.value,
5395
- "onUpdate:modelValue": (v) => r.value = v,
5396
- onClickButton: C,
5397
- onClear: S,
5395
+ "onUpdate:modelValue": (h) => r.value = h,
5396
+ onClickButton: w,
5397
+ onClear: k,
5398
5398
  onKeyup: D
5399
5399
  }, null)]
5400
- }), k(Ne, {
5400
+ }), S(Ne, {
5401
5401
  position: "center",
5402
5402
  "custom-class": "layout-border"
5403
5403
  }, {
5404
- default: () => [k("ul", {
5404
+ default: () => [S("ul", {
5405
5405
  class: "w-100 functions-list",
5406
5406
  style: "user-select: none"
5407
5407
  }, [O()])]
5408
- }), k(Ne, {
5408
+ }), S(Ne, {
5409
5409
  "custom-class": "position-relative",
5410
5410
  position: "bottom",
5411
5411
  minHeight: 80
5412
5412
  }, {
5413
5413
  default: () => {
5414
- var v;
5415
- return [k("textarea", {
5414
+ var h;
5415
+ return [S("textarea", {
5416
5416
  title: "函数说明",
5417
5417
  class: "h-100 w-100 function-remark p-1",
5418
5418
  disabled: !0
5419
- }, [(v = o.value) == null ? void 0 : v.description])];
5419
+ }, [(h = o.value) == null ? void 0 : h.description])];
5420
5420
  }
5421
5421
  })]
5422
5422
  })]);
@@ -5476,112 +5476,112 @@ function Wr(e) {
5476
5476
  function qr(e, t, n) {
5477
5477
  const a = b(e.disabledFunctions), { getTokens: o, getVariableMaps: i, runWithEsprima: r } = Wr(e);
5478
5478
  function l() {
5479
- const y = rt(t);
5479
+ const v = rt(t);
5480
5480
  if (a.value) {
5481
- let C = Object.keys(y);
5482
- const { types: S, functions: D } = a.value;
5483
- return S && S.length && (C = C.filter((O) => S.includes(O))), D && D.length && Object.values(y).forEach((O) => {
5484
- O.items.forEach((v) => {
5485
- D.includes(v.name) && (v.visible = !1);
5481
+ let w = Object.keys(v);
5482
+ const { types: k, functions: D } = a.value;
5483
+ return k && k.length && (w = w.filter((O) => k.includes(O))), D && D.length && Object.values(v).forEach((O) => {
5484
+ O.items.forEach((h) => {
5485
+ D.includes(h.name) && (h.visible = !1);
5486
5486
  });
5487
- }), y;
5487
+ }), v;
5488
5488
  }
5489
- return y;
5489
+ return v;
5490
5490
  }
5491
- function s(y) {
5492
- const C = t.analytical.items.find((S) => S.key === "GetContextParameter");
5493
- if (C)
5494
- return C.name + '("' + y.name + '")';
5491
+ function s(v) {
5492
+ const w = t.analytical.items.find((k) => k.key === "GetContextParameter");
5493
+ if (w)
5494
+ return w.name + '("' + v.name + '")';
5495
5495
  }
5496
- function u(y) {
5497
- if (!y || y.length === 0)
5496
+ function u(v) {
5497
+ if (!v || v.length === 0)
5498
5498
  return "";
5499
- const C = (S) => {
5500
- switch (S.type) {
5499
+ const w = (k) => {
5500
+ switch (k.type) {
5501
5501
  case "string":
5502
- return `"${S.name}"`;
5502
+ return `"${k.name}"`;
5503
5503
  case "list":
5504
- return `[${S.name}]`;
5504
+ return `[${k.name}]`;
5505
5505
  default:
5506
- return S.name;
5506
+ return k.name;
5507
5507
  }
5508
5508
  };
5509
- return y.map(C).join(",");
5509
+ return v.map(w).join(",");
5510
5510
  }
5511
- function p(y) {
5512
- let C = y.name;
5513
- return y.type.toLowerCase() !== "advanced" && (C += "(" + u(y.params) + ")"), C;
5511
+ function p(v) {
5512
+ let w = v.name;
5513
+ return v.type.toLowerCase() !== "advanced" && (w += "(" + u(v.params) + ")"), w;
5514
5514
  }
5515
- function d(y) {
5516
- return y == null ? void 0 : y.bindingPath;
5515
+ function d(v) {
5516
+ return v == null ? void 0 : v.bindingPath;
5517
5517
  }
5518
- function c(y) {
5519
- if (!y)
5518
+ function c(v) {
5519
+ if (!v)
5520
5520
  return "";
5521
- const C = o(y), S = i(n, "name2key");
5522
- for (let O = 0; O < C.length; O++) {
5523
- let v = 0;
5524
- if (v === 0 && S && C[O].length > 2 && C[O][0] === '"' && C[O][C[O].length - 1] === '"') {
5525
- const g = C[O].substring(1, C[O].length - 1);
5526
- if (S.has(g) && C[O - 1] === "(" && C[O + 1] === ")") {
5527
- const T = S.get(g);
5528
- T !== void 0 && (C[O] = `"${T}"`, v = 1);
5521
+ const w = o(v), k = i(n, "name2key");
5522
+ for (let O = 0; O < w.length; O++) {
5523
+ let h = 0;
5524
+ if (h === 0 && k && w[O].length > 2 && w[O][0] === '"' && w[O][w[O].length - 1] === '"') {
5525
+ const y = w[O].substring(1, w[O].length - 1);
5526
+ if (k.has(y) && w[O - 1] === "(" && w[O + 1] === ")") {
5527
+ const M = k.get(y);
5528
+ M !== void 0 && (w[O] = `"${M}"`, h = 1);
5529
5529
  }
5530
5530
  }
5531
- if (v === 0) {
5532
- const g = Object.values(t).map((T) => T.items).flat();
5533
- for (let T = 0; T < g.length; T++)
5534
- if (C[O] === g[T].name) {
5535
- C[O] = g[T].keyFront + "." + g[T].key, v = 1;
5531
+ if (h === 0) {
5532
+ const y = Object.values(t).map((M) => M.items).flat();
5533
+ for (let M = 0; M < y.length; M++)
5534
+ if (w[O] === y[M].name) {
5535
+ w[O] = y[M].keyFront + "." + y[M].key, h = 1;
5536
5536
  break;
5537
5537
  }
5538
5538
  }
5539
5539
  }
5540
- const D = C.join("");
5540
+ const D = w.join("");
5541
5541
  return JSON.stringify({ expr: D, sexpr: "" });
5542
5542
  }
5543
- function f(y, C, S, D) {
5543
+ function f(v, w, k, D) {
5544
5544
  let O = "";
5545
- const v = [];
5546
- for (const g of C)
5547
- g.keyFront === "Math" && v.push(g.key);
5548
- for (let g = 0; g < y.length; g++) {
5549
- if (y[g] === "Math" && y[g + 1] === "." && !v.includes(y[g + 2])) {
5550
- O = O + y[g] + y[g + 1] + y[g + 2], g = g + 2;
5545
+ const h = [];
5546
+ for (const y of w)
5547
+ y.keyFront === "Math" && h.push(y.key);
5548
+ for (let y = 0; y < v.length; y++) {
5549
+ if (v[y] === "Math" && v[y + 1] === "." && !h.includes(v[y + 2])) {
5550
+ O = O + v[y] + v[y + 1] + v[y + 2], y = y + 2;
5551
5551
  continue;
5552
5552
  }
5553
- if (D.includes(y[g]) && y[g + 1] === ".") {
5554
- g = g + 1;
5553
+ if (D.includes(v[y]) && v[y + 1] === ".") {
5554
+ y = y + 1;
5555
5555
  continue;
5556
5556
  } else {
5557
- let T = 0;
5558
- if (T === 0 && y[g].length > 2 && y[g][0] === '"' && y[g][y[g].length - 1] === '"') {
5559
- const B = y[g].substring(1, y[g].length - 1);
5560
- if (S.has(B) && y[g - 1] === "(" && y[g + 1] === ")") {
5561
- const N = S.get(B);
5562
- N !== void 0 && (O = O + `"${N}"`, T = 1);
5557
+ let M = 0;
5558
+ if (M === 0 && v[y].length > 2 && v[y][0] === '"' && v[y][v[y].length - 1] === '"') {
5559
+ const B = v[y].substring(1, v[y].length - 1);
5560
+ if (k.has(B) && v[y - 1] === "(" && v[y + 1] === ")") {
5561
+ const N = k.get(B);
5562
+ N !== void 0 && (O = O + `"${N}"`, M = 1);
5563
5563
  }
5564
5564
  }
5565
- if (T === 0) {
5566
- for (let B = 0; B < C.length; B++)
5567
- if (y[g] === C[B].key && C[B].type.toLowerCase() !== "advanced") {
5568
- O = O + C[B].name, T = 1;
5565
+ if (M === 0) {
5566
+ for (let B = 0; B < w.length; B++)
5567
+ if (v[y] === w[B].key && w[B].type.toLowerCase() !== "advanced") {
5568
+ O = O + w[B].name, M = 1;
5569
5569
  break;
5570
5570
  }
5571
5571
  }
5572
- T === 0 && (O = O + y[g]);
5572
+ M === 0 && (O = O + v[y]);
5573
5573
  }
5574
5574
  }
5575
5575
  return O;
5576
5576
  }
5577
- function m(y) {
5578
- if (!y)
5577
+ function m(v) {
5578
+ if (!v)
5579
5579
  return "";
5580
- const C = o(y), S = i(n, "key2name"), D = Object.values(t).map((v) => v.items).flat();
5581
- return f(C, D, S, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
5580
+ const w = o(v), k = i(n, "key2name"), D = Object.values(t).map((h) => h.items).flat();
5581
+ return f(w, D, k, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
5582
5582
  }
5583
- async function h(y) {
5584
- return await r(() => m(y));
5583
+ async function g(v) {
5584
+ return await r(() => m(v));
5585
5585
  }
5586
5586
  return {
5587
5587
  resetFunctionItems: l,
@@ -5589,7 +5589,7 @@ function qr(e, t, n) {
5589
5589
  getFunctionExpression: p,
5590
5590
  getContextVariableExpression: s,
5591
5591
  getExpressionCodeValue: c,
5592
- getExpressionTextValue: h
5592
+ getExpressionTextValue: g
5593
5593
  };
5594
5594
  }
5595
5595
  function Gr(e, t) {
@@ -5620,7 +5620,7 @@ const _r = /* @__PURE__ */ ie({
5620
5620
  props: wo,
5621
5621
  emits: [],
5622
5622
  setup(e, t) {
5623
- var M;
5623
+ var x;
5624
5624
  const n = b(), a = b(e.validateMessage), o = b(e.messageType), i = b(e.modelValue), r = b(), l = [{
5625
5625
  label: "提示",
5626
5626
  value: "info"
@@ -5638,64 +5638,64 @@ const _r = /* @__PURE__ */ ie({
5638
5638
  getExpressionCodeValue: c,
5639
5639
  getExpressionTextValue: f
5640
5640
  } = qr(e, Xi, e.variables), m = b(p()), {
5641
- onFunctionSearch: h
5641
+ onFunctionSearch: g
5642
5642
  } = Gr(e, m);
5643
- function y({
5643
+ function v({
5644
5644
  $event: F,
5645
- item: w
5645
+ item: C
5646
5646
  }) {
5647
5647
  var P;
5648
- const x = s(w);
5649
- (P = r.value) == null || P.insertText(x);
5648
+ const T = s(C);
5649
+ (P = r.value) == null || P.insertText(T);
5650
5650
  }
5651
- function C({
5651
+ function w({
5652
5652
  $event: F,
5653
- item: w
5653
+ item: C
5654
5654
  }) {
5655
5655
  var P;
5656
- const x = u(w);
5657
- (P = r.value) == null || P.insertText(x);
5656
+ const T = u(C);
5657
+ (P = r.value) == null || P.insertText(T);
5658
5658
  }
5659
- function S(F) {
5660
- return F.reduce((w, x) => {
5659
+ function k(F) {
5660
+ return F.reduce((C, T) => {
5661
5661
  var P;
5662
- return w.push(x.data), (P = x.children) != null && P.length && w.push(...S(x.children)), w;
5662
+ return C.push(T.data), (P = T.children) != null && P.length && C.push(...k(T.children)), C;
5663
5663
  }, []);
5664
5664
  }
5665
- const D = S(((M = e == null ? void 0 : e.entities) == null ? void 0 : M.fields) || []);
5665
+ const D = k(((x = e == null ? void 0 : e.entities) == null ? void 0 : x.fields) || []);
5666
5666
  function O(F) {
5667
- return F.map((w) => {
5668
- const x = D.find((P) => P.bindingPath === w);
5669
- return x && x.type === "entity" ? `${w}[0]` : w;
5667
+ return F.map((C) => {
5668
+ const T = D.find((P) => P.bindingPath === C);
5669
+ return T && T.type === "entity" ? `${C}[0]` : C;
5670
5670
  }).join(".");
5671
5671
  }
5672
- function v({
5672
+ function h({
5673
5673
  $event: F,
5674
- item: w,
5675
- parentCodes: x,
5674
+ item: C,
5675
+ parentCodes: T,
5676
5676
  entityCode: P
5677
5677
  }) {
5678
5678
  var z;
5679
- const A = d(w);
5680
- x = e.isServerSide ? O(w.parents) : x;
5681
- let Q = `${x}.${A}`;
5682
- P === A && (Q = A), (z = r.value) == null || z.insertText(`${Q}`);
5679
+ const V = d(C);
5680
+ T = e.isServerSide ? O(C.parents) : T;
5681
+ let Q = `${T}.${V}`;
5682
+ P === V && (Q = V), (z = r.value) == null || z.insertText(`${Q}`);
5683
5683
  }
5684
- function g({
5684
+ function y({
5685
5685
  $event: F,
5686
- item: w
5686
+ item: C
5687
5687
  }) {
5688
5688
  var P;
5689
- const x = d(w);
5690
- (P = r.value) == null || P.insertText(`${x}`);
5689
+ const T = d(C);
5690
+ (P = r.value) == null || P.insertText(`${T}`);
5691
5691
  }
5692
- function T() {
5692
+ function M() {
5693
5693
  var F;
5694
5694
  return (F = r.value) == null ? void 0 : F.getContent();
5695
5695
  }
5696
5696
  function B() {
5697
- var w;
5698
- const F = (w = r.value) == null ? void 0 : w.getContent();
5697
+ var C;
5698
+ const F = (C = r.value) == null ? void 0 : C.getContent();
5699
5699
  return {
5700
5700
  value: c(F),
5701
5701
  message: a.value,
@@ -5707,49 +5707,49 @@ const _r = /* @__PURE__ */ ie({
5707
5707
  var F;
5708
5708
  (F = r.value) == null || F.clearText();
5709
5709
  }
5710
- return ge(async () => {
5710
+ return he(async () => {
5711
5711
  if (i.value) {
5712
5712
  const F = JSON.parse(i.value), {
5713
- expr: w
5713
+ expr: C
5714
5714
  } = F;
5715
- w && (N.value = await f(w) || "");
5715
+ C && (N.value = await f(C) || "");
5716
5716
  }
5717
5717
  }), t.expose({
5718
- getExpressionContext: T,
5718
+ getExpressionContext: M,
5719
5719
  getExpressionValue: B,
5720
5720
  resetExpression: R
5721
- }), () => k("div", {
5721
+ }), () => S("div", {
5722
5722
  ref: n,
5723
5723
  class: "h-100 d-flex flex-column f-utils-fill mx-3 expression-editor"
5724
- }, [k(We, null, {
5725
- default: () => [k(Ne, {
5724
+ }, [S(We, null, {
5725
+ default: () => [S(Ne, {
5726
5726
  position: "left",
5727
5727
  width: 248,
5728
5728
  minWidth: 130
5729
5729
  }, {
5730
- default: () => [k(Vr, {
5730
+ default: () => [S(Vr, {
5731
5731
  functionItems: m.value,
5732
5732
  singleExpand: e.singleExpand,
5733
- onInsertFunction: y,
5734
- onSearch: h
5733
+ onInsertFunction: v,
5734
+ onSearch: g
5735
5735
  }, null)]
5736
- }), k(Ne, {
5736
+ }), S(Ne, {
5737
5737
  position: "center",
5738
5738
  "custom-class": "layout-border flex-column",
5739
5739
  style: "overflow:hidden"
5740
5740
  }, {
5741
- default: () => [k("div", {
5741
+ default: () => [S("div", {
5742
5742
  class: "f-utils-fill my-2 ml-1"
5743
- }, [k(Rr, {
5743
+ }, [S(Rr, {
5744
5744
  modelValue: N.value,
5745
5745
  "onUpdate:modelValue": (F) => N.value = F,
5746
5746
  ref: r
5747
- }, null)]), e.showMessage && k("div", {
5747
+ }, null)]), e.showMessage && S("div", {
5748
5748
  class: "d-flex flex-column p-1",
5749
5749
  style: "background: #fafafa"
5750
- }, [k("div", {
5750
+ }, [S("div", {
5751
5751
  class: "d-flex align-items-center py-1"
5752
- }, [k("b", null, [yt("提示信息:")]), e.showMessageType && k(vt, {
5752
+ }, [S("b", null, [yt("提示信息:")]), e.showMessageType && S(vt, {
5753
5753
  style: "width: 75px",
5754
5754
  data: l,
5755
5755
  modelValue: o.value,
@@ -5760,24 +5760,24 @@ const _r = /* @__PURE__ */ ie({
5760
5760
  enableClear: !1,
5761
5761
  minPanelWidth: 130,
5762
5762
  placement: "auto"
5763
- }, null)]), wn(k("textarea", {
5763
+ }, null)]), wn(S("textarea", {
5764
5764
  "onUpdate:modelValue": (F) => a.value = F,
5765
5765
  class: "form-control",
5766
5766
  style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
5767
5767
  }, null), [[va, a.value]])])]
5768
- }), e.showDataPanel && k(Ne, {
5768
+ }), e.showDataPanel && S(Ne, {
5769
5769
  position: "right",
5770
5770
  width: 258,
5771
5771
  minWidth: 130
5772
5772
  }, {
5773
- default: () => [k(Hr, {
5773
+ default: () => [S(Hr, {
5774
5774
  dataSource: {
5775
5775
  entities: e.entities,
5776
5776
  variables: e.variables
5777
5777
  },
5778
- onVariableItemDblClick: C,
5779
- onEntityItemDblClick: v,
5780
- onFieldClick: g
5778
+ onVariableItemDblClick: w,
5779
+ onEntityItemDblClick: h,
5780
+ onFieldClick: y
5781
5781
  }, null)]
5782
5782
  })]
5783
5783
  })]);
@@ -5937,16 +5937,16 @@ const _r = /* @__PURE__ */ ie({
5937
5937
  // left: `${position.value.left}px`,
5938
5938
  // top: `${position.value.top}px`
5939
5939
  }));
5940
- return () => k(kn, {
5940
+ return () => S(kn, {
5941
5941
  to: "body"
5942
5942
  }, {
5943
5943
  default: () => {
5944
5944
  var l, s;
5945
- return [k("div", {
5945
+ return [S("div", {
5946
5946
  class: "overlay-container",
5947
5947
  onClick: (u) => i(u),
5948
5948
  style: o.value
5949
- }, [k("div", {
5949
+ }, [S("div", {
5950
5950
  style: r.value
5951
5951
  }, [(s = (l = t.slots).default) == null ? void 0 : s.call(l)])])];
5952
5952
  }
@@ -5969,11 +5969,11 @@ function Qr(e) {
5969
5969
  };
5970
5970
  return n = Jt({
5971
5971
  setup() {
5972
- ht(() => {
5972
+ gt(() => {
5973
5973
  document.body.removeChild(t);
5974
5974
  });
5975
5975
  const i = Jr(e);
5976
- return () => k(Xr, {
5976
+ return () => S(Xr, {
5977
5977
  "popup-content-position": e.popupPosition,
5978
5978
  host: e.host,
5979
5979
  onClick: o,
@@ -6292,8 +6292,8 @@ class Ke {
6292
6292
  }
6293
6293
  }
6294
6294
  function pl(e, t) {
6295
- const n = b(), a = b(), o = b(), i = b(), r = b(), l = b(), s = b(), u = b(), p = b(), d = b(), c = b(), f = b(e.resizeable), m = b(), h = b(e.draggable), y = b(!1);
6296
- function C() {
6295
+ const n = b(), a = b(), o = b(), i = b(), r = b(), l = b(), s = b(), u = b(), p = b(), d = b(), c = b(), f = b(e.resizeable), m = b(), g = b(e.draggable), v = b(!1);
6296
+ function w() {
6297
6297
  const z = a.value || document.body, $ = window.getComputedStyle(z);
6298
6298
  if (!$ || !n.value)
6299
6299
  return;
@@ -6302,9 +6302,9 @@ function pl(e, t) {
6302
6302
  const ee = $.getPropertyValue("position");
6303
6303
  W.width = z.clientWidth, W.height = z.clientHeight, W.pr = parseInt($.getPropertyValue("padding-right"), 10), W.pb = parseInt($.getPropertyValue("padding-bottom"), 10), W.position = $.getPropertyValue("position"), ee === "static" && (z.style.position = "relative"), W.translateX = Y.x, W.translateY = Y.y, d.value = W;
6304
6304
  }
6305
- function S(z) {
6305
+ function k(z) {
6306
6306
  if (n.value) {
6307
- i.value = Ke.getCurrent(n.value), r.value = re.getCurrent(n.value), l.value = i.value ? Ke.copy(i.value) : null, s.value = r.value ? re.copy(r.value) : null, C();
6307
+ i.value = Ke.getCurrent(n.value), r.value = re.getCurrent(n.value), l.value = i.value ? Ke.copy(i.value) : null, s.value = r.value ? re.copy(r.value) : null, w();
6308
6308
  const $ = z.target.getAttribute("type") || "";
6309
6309
  u.value = {
6310
6310
  n: !!$.match(/n/),
@@ -6325,7 +6325,7 @@ function pl(e, t) {
6325
6325
  const z = e.minHeight ? e.minHeight : 1, $ = e.minWidth ? e.minWidth : 1;
6326
6326
  l.value && s.value && u.value && i.value && (l.value.height < z && (l.value.height = z, u.value.n && r.value && (s.value.y = r.value.y + (i.value.height - z))), l.value.width < $ && (l.value.width = $, u.value.w && r.value && (s.value.x = r.value.x + (i.value.width - $))), e.maxHeight && l.value.height > e.maxHeight && (l.value.height = e.maxHeight, r.value && u.value.n && (s.value.y = r.value.y + (i.value.height - e.maxHeight))), e.maxWidth && l.value.width > e.maxWidth && (l.value.width = e.maxWidth, u.value.w && r.value && (s.value.x = r.value.x + (i.value.width - e.maxWidth))));
6327
6327
  }
6328
- function v() {
6328
+ function h() {
6329
6329
  if (a.value) {
6330
6330
  const z = d.value;
6331
6331
  if (s.value && l.value && u.value && i.value) {
@@ -6334,18 +6334,18 @@ function pl(e, t) {
6334
6334
  }
6335
6335
  }
6336
6336
  }
6337
- function g(z) {
6337
+ function y(z) {
6338
6338
  if (!o.value || !i.value || !r.value || !u.value)
6339
6339
  return;
6340
6340
  z.subtract(o.value);
6341
6341
  const $ = z.x, Y = z.y;
6342
- u.value.n ? (s.value.y = r.value.y + Y, l.value.height = i.value.height - Y) : u.value.s && (l.value.height = i.value.height + Y), u.value.e ? l.value.width = i.value.width + $ : u.value.w && (l.value.width = i.value.width - $, s.value.x = r.value.x + $), v(), O(), D();
6342
+ u.value.n ? (s.value.y = r.value.y + Y, l.value.height = i.value.height - Y) : u.value.s && (l.value.height = i.value.height + Y), u.value.e ? l.value.width = i.value.width + $ : u.value.w && (l.value.width = i.value.width - $, s.value.x = r.value.x + $), h(), O(), D();
6343
6343
  }
6344
- function T(z) {
6344
+ function M(z) {
6345
6345
  if (!p.value)
6346
6346
  return;
6347
6347
  const $ = re.fromEvent(z);
6348
- $ && g($);
6348
+ $ && y($);
6349
6349
  }
6350
6350
  function B() {
6351
6351
  if (n.value) {
@@ -6373,50 +6373,50 @@ function pl(e, t) {
6373
6373
  const $ = B();
6374
6374
  c.value = $;
6375
6375
  }
6376
- o.value = void 0, i.value = null, r.value = null, l.value = null, s.value = null, u.value = null, p.value = null, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", N);
6376
+ o.value = void 0, i.value = null, r.value = null, l.value = null, s.value = null, u.value = null, p.value = null, document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N);
6377
6377
  }
6378
6378
  function R() {
6379
- document.addEventListener("mousemove", T), document.addEventListener("mouseup", N);
6379
+ document.addEventListener("mousemove", M), document.addEventListener("mouseup", N);
6380
6380
  }
6381
- function M(z) {
6382
- z instanceof MouseEvent && z.button === 2 || h.value && (document.body.click(), z.stopPropagation(), z.preventDefault(), o.value = re.fromEvent(z), p.value = z.target, S(z), R());
6381
+ function x(z) {
6382
+ z instanceof MouseEvent && z.button === 2 || g.value && (document.body.click(), z.stopPropagation(), z.preventDefault(), o.value = re.fromEvent(z), p.value = z.target, k(z), R());
6383
6383
  }
6384
6384
  function F(z) {
6385
- return n.value = z, f.value && k(tt, null, [k("div", {
6385
+ return n.value = z, f.value && S(tt, null, [S("div", {
6386
6386
  class: "fv-resizable-handle fv-resizable-n",
6387
6387
  type: "n",
6388
- onMousedown: ($) => M($)
6389
- }, null), k("div", {
6388
+ onMousedown: ($) => x($)
6389
+ }, null), S("div", {
6390
6390
  class: "fv-resizable-handle fv-resizable-e",
6391
6391
  type: "e",
6392
- onMousedown: ($) => M($)
6393
- }, null), k("div", {
6392
+ onMousedown: ($) => x($)
6393
+ }, null), S("div", {
6394
6394
  class: "fv-resizable-handle fv-resizable-s",
6395
6395
  type: "s",
6396
- onMousedown: ($) => M($)
6397
- }, null), k("div", {
6396
+ onMousedown: ($) => x($)
6397
+ }, null), S("div", {
6398
6398
  class: "fv-resizable-handle fv-resizable-w",
6399
6399
  type: "w",
6400
- onMousedown: ($) => M($)
6401
- }, null), k("div", {
6400
+ onMousedown: ($) => x($)
6401
+ }, null), S("div", {
6402
6402
  class: "fv-resizable-handle fv-resizable-ne",
6403
6403
  type: "ne",
6404
- onMousedown: ($) => M($)
6405
- }, null), k("div", {
6404
+ onMousedown: ($) => x($)
6405
+ }, null), S("div", {
6406
6406
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
6407
6407
  type: "se",
6408
- onMousedown: ($) => M($)
6409
- }, null), k("div", {
6408
+ onMousedown: ($) => x($)
6409
+ }, null), S("div", {
6410
6410
  class: "fv-resizable-handle fv-resizable-sw",
6411
6411
  type: "sw",
6412
- onMousedown: ($) => M($)
6413
- }, null), k("div", {
6412
+ onMousedown: ($) => x($)
6413
+ }, null), S("div", {
6414
6414
  class: "fv-resizable-handle fv-resizable-nw",
6415
6415
  type: "nw",
6416
- onMousedown: ($) => M($)
6416
+ onMousedown: ($) => x($)
6417
6417
  }, null)]);
6418
6418
  }
6419
- function w(z = !0) {
6419
+ function C(z = !0) {
6420
6420
  document.body.click();
6421
6421
  const $ = a.value || document.body, Y = Ke.getCurrent($), W = n.value;
6422
6422
  z && W && (m.value = B(), m.value.transform = W.style.transform), Y && W && (l.value = Y, l.value.height -= 14, l.value.width -= 14, W.style.height = l.value.height + "px", W.style.width = l.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", c.value = {
@@ -6425,9 +6425,9 @@ function pl(e, t) {
6425
6425
  x: 0,
6426
6426
  y: 0
6427
6427
  }
6428
- }, h.value = !1, y.value = !0);
6428
+ }, g.value = !1, v.value = !0);
6429
6429
  }
6430
- function x() {
6430
+ function T() {
6431
6431
  var z, $;
6432
6432
  if (document.body.click(), m.value) {
6433
6433
  const Y = {
@@ -6442,7 +6442,7 @@ function pl(e, t) {
6442
6442
  ee.style.height = Y.height + "px", ee.style.width = Y.width + "px", ee.style.left = `${W.x}px`, ee.style.top = `${W.y}px`, ee.style.transform = "", c.value = {
6443
6443
  size: Y,
6444
6444
  position: W
6445
- }, h.value = e.draggable, y.value = !1;
6445
+ }, g.value = e.draggable, v.value = !1;
6446
6446
  }
6447
6447
  }
6448
6448
  function P() {
@@ -6457,91 +6457,91 @@ function pl(e, t) {
6457
6457
  }
6458
6458
  }
6459
6459
  }
6460
- function A() {
6460
+ function V() {
6461
6461
  const z = () => {
6462
- y.value ? w(!1) : P(), document.body.click();
6462
+ v.value ? C(!1) : P(), document.body.click();
6463
6463
  };
6464
6464
  return window.addEventListener("resize", z), () => {
6465
6465
  window.removeEventListener("resize", z);
6466
6466
  };
6467
6467
  }
6468
- const Q = A();
6468
+ const Q = V();
6469
6469
  return {
6470
6470
  renderResizeBar: F,
6471
6471
  boundingElement: a,
6472
6472
  resizedEventParam: c,
6473
- maximize: w,
6474
- restore: x,
6475
- allowDrag: h,
6476
- isMaximized: y,
6473
+ maximize: C,
6474
+ restore: T,
6475
+ allowDrag: g,
6476
+ isMaximized: v,
6477
6477
  unWindowResizeHandle: Q,
6478
6478
  moveToCenter: P
6479
6479
  };
6480
6480
  }
6481
6481
  function ml(e, t, n) {
6482
6482
  const a = b(), o = b(e.draggable), i = b(e.lockAxis), r = b(), l = b(), s = b(!1), u = b(new re(0, 0)), p = b(new re(0, 0)), d = b(new re(0, 0)), c = b(new re(0, 0));
6483
- ne(() => n.value, (T) => {
6484
- r.value.style.cursor = T ? "move" : "default";
6483
+ ne(() => n.value, (M) => {
6484
+ r.value.style.cursor = M ? "move" : "default";
6485
6485
  });
6486
- function f(T, B) {
6486
+ function f(M, B) {
6487
6487
  if (B.tagName === "BUTTON")
6488
6488
  return !1;
6489
- if (B === T)
6489
+ if (B === M)
6490
6490
  return !0;
6491
6491
  for (const N in B.children)
6492
- if (Object.prototype.hasOwnProperty.call(B.children, N) && f(T, B.children[N]))
6492
+ if (Object.prototype.hasOwnProperty.call(B.children, N) && f(M, B.children[N]))
6493
6493
  return !0;
6494
6494
  return !1;
6495
6495
  }
6496
6496
  function m() {
6497
- var R, M;
6498
- let T = d.value.x + p.value.x, B = d.value.y + p.value.y;
6499
- i.value === "x" ? (T = ((R = u.value) == null ? void 0 : R.x) || 0, d.value.x = 0) : i.value === "y" && (B = ((M = u.value) == null ? void 0 : M.y) || 0, d.value.y = 0);
6500
- const N = `translate3d(${Math.round(T)}px, ${Math.round(B)}px, 0px)`;
6501
- a.value && (a.value.style.transform = N), c.value.x = T, c.value.y = B;
6497
+ var R, x;
6498
+ let M = d.value.x + p.value.x, B = d.value.y + p.value.y;
6499
+ i.value === "x" ? (M = ((R = u.value) == null ? void 0 : R.x) || 0, d.value.x = 0) : i.value === "y" && (B = ((x = u.value) == null ? void 0 : x.y) || 0, d.value.y = 0);
6500
+ const N = `translate3d(${Math.round(M)}px, ${Math.round(B)}px, 0px)`;
6501
+ a.value && (a.value.style.transform = N), c.value.x = M, c.value.y = B;
6502
6502
  }
6503
- function h() {
6503
+ function g() {
6504
6504
  if (!l.value || !a.value)
6505
6505
  return null;
6506
- const T = l.value.getBoundingClientRect(), B = a.value.getBoundingClientRect(), N = {
6507
- top: T.top < B.top,
6508
- right: T.right > B.right,
6509
- bottom: T.bottom > B.bottom,
6510
- left: T.left < B.left
6506
+ const M = l.value.getBoundingClientRect(), B = a.value.getBoundingClientRect(), N = {
6507
+ top: M.top < B.top,
6508
+ right: M.right > B.right,
6509
+ bottom: M.bottom > B.bottom,
6510
+ left: M.left < B.left
6511
6511
  };
6512
- return N.top || (d.value.y -= B.top - T.top), N.bottom || (d.value.y -= B.bottom - T.bottom), N.right || (d.value.x -= B.right - T.right), N.left || (d.value.x -= B.left - T.left), m(), N;
6512
+ return N.top || (d.value.y -= B.top - M.top), N.bottom || (d.value.y -= B.bottom - M.bottom), N.right || (d.value.x -= B.right - M.right), N.left || (d.value.x -= B.left - M.left), m(), N;
6513
6513
  }
6514
- function y(T) {
6515
- T && (u.value && T.subtract(u.value), d.value.set(T), m(), h());
6514
+ function v(M) {
6515
+ M && (u.value && M.subtract(u.value), d.value.set(M), m(), g());
6516
6516
  }
6517
- function C(T) {
6518
- s.value && o.value && (T.stopPropagation(), T.preventDefault(), y(re.fromEvent(T, r.value)));
6517
+ function w(M) {
6518
+ s.value && o.value && (M.stopPropagation(), M.preventDefault(), v(re.fromEvent(M, r.value)));
6519
6519
  }
6520
- function S() {
6521
- var T;
6522
- s.value && (s.value = !1, p.value.add(d.value), d.value.reset(), (T = a.value) == null || T.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", S));
6520
+ function k() {
6521
+ var M;
6522
+ s.value && (s.value = !1, p.value.add(d.value), d.value.reset(), (M = a.value) == null || M.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
6523
6523
  }
6524
6524
  function D() {
6525
- !s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", C), document.addEventListener("mouseup", S));
6525
+ !s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
6526
6526
  }
6527
6527
  function O() {
6528
6528
  if (a.value) {
6529
- const T = re.getTransformInfo(a.value);
6530
- p.value.set(T);
6529
+ const M = re.getTransformInfo(a.value);
6530
+ p.value.set(M);
6531
6531
  return;
6532
6532
  }
6533
6533
  p.value.reset();
6534
6534
  }
6535
- function v(T) {
6536
- if (!n.value || T instanceof MouseEvent && T.button === 2)
6535
+ function h(M) {
6536
+ if (!n.value || M instanceof MouseEvent && M.button === 2)
6537
6537
  return;
6538
- const B = T.target || T.srcElement;
6539
- r.value !== void 0 && B && !f(B, r.value) || o.value !== !1 && (document.body.click(), T.stopPropagation(), T.preventDefault(), u.value = re.fromEvent(T, a.value), O(), D());
6538
+ const B = M.target || M.srcElement;
6539
+ r.value !== void 0 && B && !f(B, r.value) || o.value !== !1 && (document.body.click(), M.stopPropagation(), M.preventDefault(), u.value = re.fromEvent(M, a.value), O(), D());
6540
6540
  }
6541
- function g(T, B, N) {
6541
+ function y(M, B, N) {
6542
6542
  if (o.value && B) {
6543
- if (T)
6544
- r.value = T;
6543
+ if (M)
6544
+ r.value = M;
6545
6545
  else if (e.dragHandle) {
6546
6546
  if (e.dragHandle instanceof HTMLElement)
6547
6547
  r.value = e.dragHandle;
@@ -6550,11 +6550,11 @@ function ml(e, t, n) {
6550
6550
  R && (r.value = R);
6551
6551
  }
6552
6552
  }
6553
- a.value = B, l.value = N, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", v)) : o.value = !1;
6553
+ a.value = B, l.value = N, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", h)) : o.value = !1;
6554
6554
  }
6555
6555
  }
6556
6556
  return {
6557
- registerDraggle: g,
6557
+ registerDraggle: y,
6558
6558
  resetTranslate: O
6559
6559
  };
6560
6560
  }
@@ -6591,12 +6591,12 @@ const et = /* @__PURE__ */ ie({
6591
6591
  props: Jn,
6592
6592
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
6593
6593
  setup(e, t) {
6594
- const n = b(e.width || 300), a = b(e.height || 200), o = b(e.modelValue), i = b(""), r = b(e.class), l = b(e.fitContent), s = b(e.showHeader), u = b(""), p = b(e.showCloseButton), d = b(e.showMaxButton), c = b(!1), f = b(e.dialogType), m = b(e.src), h = b(""), y = b(e.showButtons), C = b(e.title), S = b(e.containment || null), D = b(), {
6594
+ const n = b(e.width || 300), a = b(e.height || 200), o = b(e.modelValue), i = b(""), r = b(e.class), l = b(e.fitContent), s = b(e.showHeader), u = b(""), p = b(e.showCloseButton), d = b(e.showMaxButton), c = b(!1), f = b(e.dialogType), m = b(e.src), g = b(""), v = b(e.showButtons), w = b(e.title), k = b(e.containment || null), D = b(), {
6595
6595
  t: O
6596
6596
  } = bt();
6597
- C.value === "错误提示" && (C.value = O("messageBox.errorTitle"));
6598
- const v = b(!1);
6599
- function g(I, J) {
6597
+ w.value === "错误提示" && (w.value = O("messageBox.errorTitle"));
6598
+ const h = b(!1);
6599
+ function y(I, J) {
6600
6600
  const le = J ? "accept" : "cancel";
6601
6601
  Promise.resolve().then(() => {
6602
6602
  var se;
@@ -6607,24 +6607,24 @@ const et = /* @__PURE__ */ ie({
6607
6607
  se && (o.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed", I));
6608
6608
  });
6609
6609
  }
6610
- const T = [{
6610
+ const M = [{
6611
6611
  name: "cancel",
6612
6612
  text: O("messageBox.cancel") || "取消",
6613
6613
  class: "btn btn-secondary",
6614
6614
  handle: (I) => {
6615
- g(I, !1);
6615
+ y(I, !1);
6616
6616
  }
6617
6617
  }, {
6618
6618
  name: "accept",
6619
6619
  text: O("messageBox.ok") || "确定",
6620
6620
  class: "btn btn-primary",
6621
6621
  handle: (I) => {
6622
- g(I, !0);
6622
+ y(I, !0);
6623
6623
  }
6624
- }], B = b(e.buttons && e.buttons.length ? e.buttons : T), N = j(() => !!u.value), R = j(() => !!y.value && !!B.value), M = b(), F = b(), w = b(!1), {
6625
- renderResizeBar: x,
6624
+ }], B = b(e.buttons && e.buttons.length ? e.buttons : M), N = j(() => !!u.value), R = j(() => !!v.value && !!B.value), x = b(), F = b(), C = b(!1), {
6625
+ renderResizeBar: T,
6626
6626
  maximize: P,
6627
- restore: A,
6627
+ restore: V,
6628
6628
  boundingElement: Q,
6629
6629
  resizedEventParam: z,
6630
6630
  allowDrag: $,
@@ -6636,26 +6636,26 @@ const et = /* @__PURE__ */ ie({
6636
6636
  function ve() {
6637
6637
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
6638
6638
  }
6639
- function he() {
6639
+ function ge() {
6640
6640
  const I = document.querySelectorAll(".farris-modal").length;
6641
6641
  (!I || I - 1 <= 0) && document.body.classList.remove("modal-open"), D.value && D.value.classList.remove("show");
6642
6642
  }
6643
6643
  ne(() => e.title, (I, J) => {
6644
- I !== J && (C.value = I);
6644
+ I !== J && (w.value = I);
6645
6645
  }), ne(() => e.modelValue, (I, J) => {
6646
6646
  I !== J && (o.value = I, o.value && e.draggable && Ve(() => {
6647
- F.value && !S.value && (S.value = F.value.parentElement, Q.value = S.value, ee(M.value, F.value, Q.value), W());
6648
- }), I || (S.value && (S.value = null), he())), o.value ? v.value = ve() : (w.value = !1, $.value = e.draggable);
6647
+ F.value && !k.value && (k.value = F.value.parentElement, Q.value = k.value, ee(x.value, F.value, Q.value), W());
6648
+ }), I || (k.value && (k.value = null), ge())), o.value ? h.value = ve() : (C.value = !1, $.value = e.draggable);
6649
6649
  }), ne(() => e.showHeader, (I, J) => {
6650
6650
  I !== J && (s.value = I);
6651
6651
  }), ne(() => e.showButtons, (I, J) => {
6652
- I !== J && (y.value = I);
6652
+ I !== J && (v.value = I);
6653
6653
  }), ne(() => z.value, (I, J) => {
6654
6654
  const le = I || {}, se = J || {};
6655
6655
  JSON.stringify(le) !== JSON.stringify(se) && t.emit("resize", {
6656
6656
  newSize: I,
6657
6657
  oldSize: J,
6658
- isMaximized: w.value
6658
+ isMaximized: C.value
6659
6659
  });
6660
6660
  });
6661
6661
  const X = j(() => (o.value && document.body.classList.add("modal-open"), o.value)), oe = j(() => {
@@ -6687,7 +6687,7 @@ const et = /* @__PURE__ */ ie({
6687
6687
  const I = {
6688
6688
  display: "block"
6689
6689
  };
6690
- return e.mask || (I.pointerEvents = "none", I.backgroundColor = "transparent"), v.value && (I.backgroundColor = "transparent"), I;
6690
+ return e.mask || (I.pointerEvents = "none", I.backgroundColor = "transparent"), h.value && (I.backgroundColor = "transparent"), I;
6691
6691
  }), ae = j(() => ({
6692
6692
  "modal-content": !0,
6693
6693
  "modal-content-has-header": s.value
@@ -6699,7 +6699,7 @@ const et = /* @__PURE__ */ ie({
6699
6699
  }), je = j(() => ({
6700
6700
  "f-icon": !0,
6701
6701
  modal_maximize: !0,
6702
- modalrevert: w.value
6702
+ modalrevert: C.value
6703
6703
  })), xe = j(() => ({
6704
6704
  "modal-body": !0,
6705
6705
  "f-utils-flex-column": f.value === "iframe",
@@ -6712,63 +6712,63 @@ const et = /* @__PURE__ */ ie({
6712
6712
  }
6713
6713
  const _e = j(() => {
6714
6714
  const I = {
6715
- textAlgin: h.value
6715
+ textAlgin: g.value
6716
6716
  }, J = at();
6717
6717
  return Object.assign(I, J);
6718
6718
  });
6719
6719
  function Ye(I) {
6720
- if (I == null || I.stopPropagation(), w.value) {
6721
- w.value = !1, A();
6720
+ if (I == null || I.stopPropagation(), C.value) {
6721
+ C.value = !1, V();
6722
6722
  return;
6723
6723
  }
6724
- P(), w.value = !0;
6724
+ P(), C.value = !0;
6725
6725
  }
6726
6726
  async function ce(I, J) {
6727
6727
  I.handle && await I.handle(J, I) && t.emit("closed", J);
6728
6728
  }
6729
6729
  function lt(I) {
6730
- I.width && (n.value = I.width), I.height && (a.value = I.height), I.buttons && (B.value = I.buttons), I.title && (C.value = I.title);
6730
+ I.width && (n.value = I.width), I.height && (a.value = I.height), I.buttons && (B.value = I.buttons), I.title && (w.value = I.title);
6731
6731
  }
6732
6732
  let Te = null, Ie = null;
6733
- ga(() => {
6734
- v.value = ve();
6735
- }), ge(() => {
6736
- F.value && !S.value && (S.value = F.value.parentElement, Q.value = S.value, ee(M.value, F.value, Q.value)), X.value && document.body.classList.add("modal-open"), Te = yl(e, t), Ie = vl(e, t);
6737
- }), ht(() => {
6733
+ ha(() => {
6734
+ h.value = ve();
6735
+ }), he(() => {
6736
+ F.value && !k.value && (k.value = F.value.parentElement, Q.value = k.value, ee(x.value, F.value, Q.value)), X.value && document.body.classList.add("modal-open"), Te = yl(e, t), Ie = vl(e, t);
6737
+ }), gt(() => {
6738
6738
  Y && Y(), Te && Te.remove(), Ie && Ie.remove();
6739
6739
  }), t.expose({
6740
6740
  modalElementRef: F,
6741
6741
  updateModalOptions: lt,
6742
- close: g,
6742
+ close: y,
6743
6743
  maxDialog: Ye,
6744
- isMaximized: w
6744
+ isMaximized: C
6745
6745
  });
6746
6746
  function Re() {
6747
- return k("ul", null, [c.value && k("li", {
6747
+ return S("ul", null, [c.value && S("li", {
6748
6748
  class: "f-btn-icon f-bare"
6749
- }, [k("span", {
6749
+ }, [S("span", {
6750
6750
  class: "f-icon modal_minimize"
6751
- }, null)]), d.value && k("li", {
6751
+ }, null)]), d.value && S("li", {
6752
6752
  onClick: Ye,
6753
6753
  class: "f-btn-icon f-bare",
6754
6754
  style: "pointer-events: auto;"
6755
- }, [k("span", {
6755
+ }, [S("span", {
6756
6756
  class: je.value
6757
- }, null)]), p.value && k("li", {
6757
+ }, null)]), p.value && S("li", {
6758
6758
  class: "f-btn-icon f-bare",
6759
- onClick: (I) => g(I, !1),
6759
+ onClick: (I) => y(I, !1),
6760
6760
  style: "pointer-events: auto;"
6761
- }, [k("span", {
6761
+ }, [S("span", {
6762
6762
  class: "f-icon modal_close"
6763
6763
  }, null)])]);
6764
6764
  }
6765
6765
  function Le() {
6766
- return k("div", {
6766
+ return S("div", {
6767
6767
  class: "modal-footer",
6768
6768
  style: _e.value
6769
6769
  }, [B.value && B.value.map((I) => {
6770
6770
  const J = b(I.disabled);
6771
- return k("button", {
6771
+ return S("button", {
6772
6772
  name: I.name,
6773
6773
  type: "button",
6774
6774
  disabled: J.value,
@@ -6776,24 +6776,24 @@ const et = /* @__PURE__ */ ie({
6776
6776
  onClick: (le) => {
6777
6777
  ce(I, le);
6778
6778
  }
6779
- }, [!!I.iconClass && k("i", {
6779
+ }, [!!I.iconClass && S("i", {
6780
6780
  class: I.iconClass
6781
6781
  }, null), I.text]);
6782
6782
  })]);
6783
6783
  }
6784
6784
  function st() {
6785
- return k("div", {
6786
- ref: M,
6785
+ return S("div", {
6786
+ ref: x,
6787
6787
  class: "modal-header",
6788
6788
  style: Ge.value
6789
- }, [t.slots.headerTemplate ? t.slots.headerTemplate() : k("div", {
6789
+ }, [t.slots.headerTemplate ? t.slots.headerTemplate() : S("div", {
6790
6790
  class: "modal-title"
6791
- }, [N.value && k("span", {
6791
+ }, [N.value && S("span", {
6792
6792
  class: u.value,
6793
6793
  style: "margin-right: 8px"
6794
- }, null), k("span", {
6794
+ }, null), S("span", {
6795
6795
  class: "modal-title-label"
6796
- }, [C.value])]), k("div", {
6796
+ }, [w.value])]), S("div", {
6797
6797
  class: "actions"
6798
6798
  }, [Re()])]);
6799
6799
  }
@@ -6804,39 +6804,39 @@ const et = /* @__PURE__ */ ie({
6804
6804
  if (I.stopPropagation(), e.allowClickMaskToClose) {
6805
6805
  if (I.target !== D.value)
6806
6806
  return;
6807
- g(I, !1);
6807
+ y(I, !1);
6808
6808
  }
6809
6809
  }
6810
6810
  function $e() {
6811
6811
  var I, J;
6812
- return k("div", {
6812
+ return S("div", {
6813
6813
  id: i.value,
6814
6814
  class: ue.value,
6815
6815
  style: te.value,
6816
6816
  ref: F
6817
- }, [k("div", {
6817
+ }, [S("div", {
6818
6818
  class: ae.value
6819
- }, [s.value && st(), k("div", {
6819
+ }, [s.value && st(), S("div", {
6820
6820
  class: xe.value
6821
- }, [(J = (I = t.slots).default) == null ? void 0 : J.call(I), f.value === "iframe" && k("iframe", {
6821
+ }, [(J = (I = t.slots).default) == null ? void 0 : J.call(I), f.value === "iframe" && S("iframe", {
6822
6822
  title: i.value,
6823
6823
  class: "f-utils-fill",
6824
6824
  width: "100%",
6825
6825
  frameborder: "0",
6826
6826
  src: m.value
6827
- }, null)]), Ue()]), !l.value && F.value && !w.value && x(F.value)]);
6827
+ }, null)]), Ue()]), !l.value && F.value && !C.value && T(F.value)]);
6828
6828
  }
6829
6829
  function ot(I) {
6830
6830
  return I || "body";
6831
6831
  }
6832
- return () => k(kn, {
6832
+ return () => S(kn, {
6833
6833
  to: ot(e.host)
6834
6834
  }, {
6835
- default: () => [X.value && k(Sn, {
6835
+ default: () => [X.value && S(Sn, {
6836
6836
  name: "fade",
6837
6837
  appear: !0
6838
6838
  }, {
6839
- default: () => [k("div", {
6839
+ default: () => [S("div", {
6840
6840
  ref: D,
6841
6841
  class: oe.value,
6842
6842
  style: G.value,
@@ -6852,26 +6852,26 @@ function Zn(e) {
6852
6852
  if (e.render && typeof e.render == "function")
6853
6853
  return e.render;
6854
6854
  }
6855
- function gl(e) {
6855
+ function hl(e) {
6856
6856
  const t = document.createElement("div");
6857
6857
  t.style.display = "contents";
6858
6858
  const n = Jt({
6859
6859
  setup(a, o) {
6860
- ht(() => {
6860
+ gt(() => {
6861
6861
  document.body.removeChild(t);
6862
6862
  });
6863
6863
  const i = b(), r = b(e.class || ""), l = b(!!e.showButtons), s = b(!!e.showHeader), u = b(e.showCloseButton == null ? !0 : e.showCloseButton), p = b(!0), d = b(e.title || ""), c = e.acceptCallback || (() => {
6864
6864
  }), f = e.rejectCallback || (() => {
6865
6865
  }), m = e.closedCallback || ((D) => {
6866
- }), h = e.resizeHandle || ((D) => {
6867
- }), y = e.stopMoveHandle || ((D) => {
6868
- }), C = Zn(e), S = (D) => {
6866
+ }), g = e.resizeHandle || ((D) => {
6867
+ }), v = e.stopMoveHandle || ((D) => {
6868
+ }), w = Zn(e), k = (D) => {
6869
6869
  p.value = !1, n.unmount(), m(D);
6870
6870
  };
6871
- return ge(() => {
6871
+ return he(() => {
6872
6872
  }), o.expose({
6873
6873
  modalRef: i
6874
- }), () => k(et, {
6874
+ }), () => S(et, {
6875
6875
  ref: i,
6876
6876
  class: r.value,
6877
6877
  modelValue: p.value,
@@ -6887,11 +6887,11 @@ function gl(e) {
6887
6887
  onAccept: c,
6888
6888
  onCancel: f,
6889
6889
  fitContent: e.fitContent == null ? !0 : e.fitContent,
6890
- onClosed: S,
6891
- onResize: h,
6892
- onStopMove: y
6890
+ onClosed: k,
6891
+ onResize: g,
6892
+ onStopMove: v
6893
6893
  }, {
6894
- default: () => [C && C(n)]
6894
+ default: () => [w && w(n)]
6895
6895
  });
6896
6896
  }
6897
6897
  });
@@ -6929,7 +6929,7 @@ class Kn {
6929
6929
  showButtons: !0,
6930
6930
  showHeader: !0
6931
6931
  }, t);
6932
- return gl(n);
6932
+ return hl(n);
6933
6933
  }
6934
6934
  close(t) {
6935
6935
  var n, a;
@@ -6938,42 +6938,42 @@ class Kn {
6938
6938
  open(t) {
6939
6939
  const n = document.createDocumentFragment();
6940
6940
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
6941
- const a = ha(Object.assign({
6941
+ const a = ga(Object.assign({
6942
6942
  title: "",
6943
6943
  showButtons: !0,
6944
6944
  showHeader: !0
6945
6945
  }, t)), o = b(!0), i = a.value.acceptCallback || (() => {
6946
6946
  }), r = a.value.rejectCallback || (() => {
6947
- }), l = a.value.closedCallback || ((v, g) => {
6948
- }), s = a.value.resizeHandle || ((v) => {
6949
- }), u = t.stopMoveHandle || ((v) => {
6947
+ }), l = a.value.closedCallback || ((h, y) => {
6948
+ }), s = a.value.resizeHandle || ((h) => {
6949
+ }), u = t.stopMoveHandle || ((h) => {
6950
6950
  });
6951
6951
  let p;
6952
- const d = Zn(a.value), c = (v) => {
6953
- var T;
6952
+ const d = Zn(a.value), c = (h) => {
6953
+ var M;
6954
6954
  o.value = !1;
6955
- const g = (T = v == null ? void 0 : v.target) == null ? void 0 : T.classList.contains("modal_close");
6956
- l(v, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
6957
- }, f = (v) => {
6958
- c(v), p && Ve(() => {
6955
+ const y = (M = h == null ? void 0 : h.target) == null ? void 0 : M.classList.contains("modal_close");
6956
+ l(h, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
6957
+ }, f = (h) => {
6958
+ c(h), p && Ve(() => {
6959
6959
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
6960
- const g = Object.keys(this.modalRefs).map((T) => Number(T));
6961
- g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
6960
+ const y = Object.keys(this.modalRefs).map((M) => Number(M));
6961
+ y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
6962
6962
  }
6963
6963
  this.isUseEscCloseModal.value = !1;
6964
6964
  });
6965
- }, m = (v) => {
6966
- var g;
6967
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((g = this.activeModalInstance.value) == null || g.close(v == null ? void 0 : v.event));
6965
+ }, m = (h) => {
6966
+ var y;
6967
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((y = this.activeModalInstance.value) == null || y.close(h == null ? void 0 : h.event));
6968
6968
  }, {
6969
- width: h,
6970
- height: y
6971
- } = a.value, C = this.adaptToWindow(h || 500, y || 320);
6972
- Object.assign(a.value, C);
6973
- const S = () => k(et, Ot({
6969
+ width: g,
6970
+ height: v
6971
+ } = a.value, w = this.adaptToWindow(g || 500, v || 320);
6972
+ Object.assign(a.value, w);
6973
+ const k = () => S(et, Ot({
6974
6974
  ref: this.modalRef,
6975
6975
  modelValue: o.value,
6976
- "onUpdate:modelValue": (v) => o.value = v
6976
+ "onUpdate:modelValue": (h) => o.value = h
6977
6977
  }, a.value, {
6978
6978
  onAccept: i,
6979
6979
  onCancel: r,
@@ -6984,17 +6984,17 @@ class Kn {
6984
6984
  }), {
6985
6985
  default: () => [d && d(this.app)]
6986
6986
  });
6987
- return p = ((v) => {
6988
- const g = ba(S, v);
6989
- return g.appContext = this.appContext, qt(g, n), g;
6987
+ return p = ((h) => {
6988
+ const y = ba(k, h);
6989
+ return y.appContext = this.appContext, qt(y, n), y;
6990
6990
  })({
6991
6991
  ...a.value
6992
6992
  // 'onUpdate:modelValue': onUpdateModelValue,
6993
6993
  }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
6994
- update: (v) => {
6994
+ update: (h) => {
6995
6995
  a.value = {
6996
6996
  ...a.value,
6997
- ...v
6997
+ ...h
6998
6998
  }, p && qt(Ca(p, {
6999
6999
  ...a
7000
7000
  }), n);
@@ -7007,7 +7007,7 @@ class Kn {
7007
7007
  }
7008
7008
  const nn = /* @__PURE__ */ new Map([
7009
7009
  ["appearance", Zt]
7010
- ]), hl = /* @__PURE__ */ new Map([]), bl = "https://json-schema.org/draft/2020-12/schema", Cl = "https://farris-design.gitee.io/form-group.schema.json", wl = "form-group", kl = "A Farris Input Component", Sl = "object", Fl = {
7010
+ ]), gl = /* @__PURE__ */ new Map([]), bl = "https://json-schema.org/draft/2020-12/schema", Cl = "https://farris-design.gitee.io/form-group.schema.json", wl = "form-group", kl = "A Farris Input Component", Sl = "object", Fl = {
7011
7011
  id: {
7012
7012
  description: "The unique identifier for a form group",
7013
7013
  type: "string"
@@ -7209,7 +7209,7 @@ Ce(it, "fieldControlTypeMapping", {
7209
7209
  { key: L["radio-group"].type, value: L["radio-group"].name }
7210
7210
  ]
7211
7211
  });
7212
- let hn = it;
7212
+ let gn = it;
7213
7213
  var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7214
7214
  function Ft(e) {
7215
7215
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -7232,8 +7232,8 @@ var Ml = { exports: {} };
7232
7232
  }
7233
7233
  var f = o[u] = { exports: {} };
7234
7234
  a[u][0].call(f.exports, function(m) {
7235
- var h = a[u][1][m];
7236
- return r(h || m);
7235
+ var g = a[u][1][m];
7236
+ return r(g || m);
7237
7237
  }, f, f.exports, n, a, o, i);
7238
7238
  }
7239
7239
  return o[u].exports;
@@ -7264,11 +7264,11 @@ var Ml = { exports: {} };
7264
7264
  2: [function(n, a, o) {
7265
7265
  (function(i) {
7266
7266
  var r = n("contra/emitter"), l = n("crossvent"), s = n("./classes"), u = document, p = u.documentElement;
7267
- function d(M, F) {
7268
- var w = arguments.length;
7269
- w === 1 && Array.isArray(M) === !1 && (F = M, M = []);
7270
- var x, P, A, Q, z, $, Y, W, ee, ve = null, he, X, oe = !1, ue = 0, te, G = F || {};
7271
- G.moves === void 0 && (G.moves = S), G.accepts === void 0 && (G.accepts = S), G.invalid === void 0 && (G.invalid = st), G.containers === void 0 && (G.containers = M || []), G.isContainer === void 0 && (G.isContainer = C), G.copy === void 0 && (G.copy = !1), G.copySortSource === void 0 && (G.copySortSource = !1), G.revertOnSpill === void 0 && (G.revertOnSpill = !1), G.removeOnSpill === void 0 && (G.removeOnSpill = !1), G.direction === void 0 && (G.direction = "vertical"), G.ignoreInputTextSelection === void 0 && (G.ignoreInputTextSelection = !0), G.mirrorContainer === void 0 && (G.mirrorContainer = u.body);
7267
+ function d(x, F) {
7268
+ var C = arguments.length;
7269
+ C === 1 && Array.isArray(x) === !1 && (F = x, x = []);
7270
+ var T, P, V, Q, z, $, Y, W, ee, ve = null, ge, X, oe = !1, ue = 0, te, G = F || {};
7271
+ G.moves === void 0 && (G.moves = k), G.accepts === void 0 && (G.accepts = k), G.invalid === void 0 && (G.invalid = st), G.containers === void 0 && (G.containers = x || []), G.isContainer === void 0 && (G.isContainer = w), G.copy === void 0 && (G.copy = !1), G.copySortSource === void 0 && (G.copySortSource = !1), G.revertOnSpill === void 0 && (G.revertOnSpill = !1), G.removeOnSpill === void 0 && (G.removeOnSpill = !1), G.direction === void 0 && (G.direction = "vertical"), G.ignoreInputTextSelection === void 0 && (G.ignoreInputTextSelection = !0), G.mirrorContainer === void 0 && (G.mirrorContainer = u.body);
7272
7272
  var ae = r({
7273
7273
  containers: G.containers,
7274
7274
  start: Re,
@@ -7299,45 +7299,45 @@ var Ml = { exports: {} };
7299
7299
  je(!0), $e({});
7300
7300
  }
7301
7301
  function Ye(E) {
7302
- he && E.preventDefault();
7302
+ ge && E.preventDefault();
7303
7303
  }
7304
7304
  function ce(E) {
7305
7305
  Q = E.clientX, z = E.clientY;
7306
- var H = h(E) !== 1 || E.metaKey || E.ctrlKey;
7306
+ var H = g(E) !== 1 || E.metaKey || E.ctrlKey;
7307
7307
  if (!H) {
7308
- var V = E.target, _ = Te(V);
7309
- _ && (he = _, xe(), E.type === "mousedown" && (g(V) ? V.focus() : E.preventDefault()));
7308
+ var A = E.target, _ = Te(A);
7309
+ _ && (ge = _, xe(), E.type === "mousedown" && (y(A) ? A.focus() : E.preventDefault()));
7310
7310
  }
7311
7311
  }
7312
7312
  function lt(E) {
7313
- if (he) {
7314
- if (h(E) === 0) {
7313
+ if (ge) {
7314
+ if (g(E) === 0) {
7315
7315
  $e({});
7316
7316
  return;
7317
7317
  }
7318
7318
  if (!(E.clientX !== void 0 && Math.abs(E.clientX - Q) <= (G.slideFactorX || 0) && E.clientY !== void 0 && Math.abs(E.clientY - z) <= (G.slideFactorY || 0))) {
7319
7319
  if (G.ignoreInputTextSelection) {
7320
- var H = R("clientX", E) || 0, V = R("clientY", E) || 0, _ = u.elementFromPoint(H, V);
7321
- if (g(_))
7320
+ var H = R("clientX", E) || 0, A = R("clientY", E) || 0, _ = u.elementFromPoint(H, A);
7321
+ if (y(_))
7322
7322
  return;
7323
7323
  }
7324
- var Z = he;
7325
- xe(!0), at(), Ue(), Le(Z), s.add(W || A, "gu-transit"), Rt(), It(), ue = 0, ut(E);
7324
+ var Z = ge;
7325
+ xe(!0), at(), Ue(), Le(Z), s.add(W || V, "gu-transit"), Rt(), It(), ue = 0, ut(E);
7326
7326
  }
7327
7327
  }
7328
7328
  }
7329
7329
  function Te(E) {
7330
- if (!(ae.dragging && x) && !Ge(E)) {
7331
- for (var H = E; v(E) && Ge(v(E)) === !1; )
7332
- if (G.invalid(E, H) || (E = v(E), !E))
7330
+ if (!(ae.dragging && T) && !Ge(E)) {
7331
+ for (var H = E; h(E) && Ge(h(E)) === !1; )
7332
+ if (G.invalid(E, H) || (E = h(E), !E))
7333
7333
  return;
7334
- var V = v(E);
7335
- if (V && !G.invalid(E, H)) {
7336
- var _ = G.moves(E, V, H, B(E));
7334
+ var A = h(E);
7335
+ if (A && !G.invalid(E, H)) {
7336
+ var _ = G.moves(E, A, H, B(E));
7337
7337
  if (_)
7338
7338
  return {
7339
7339
  item: E,
7340
- source: V
7340
+ source: A
7341
7341
  };
7342
7342
  }
7343
7343
  }
@@ -7350,78 +7350,78 @@ var Ml = { exports: {} };
7350
7350
  H && Le(H);
7351
7351
  }
7352
7352
  function Le(E) {
7353
- Wt(E.item, E.source) && (W = E.item.cloneNode(!0), ae.emit("cloned", W, E.item, "copy")), P = E.source, A = E.item, $ = Y = B(E.item), ae.dragging = !0, ae.emit("drag", A, P);
7353
+ Wt(E.item, E.source) && (W = E.item.cloneNode(!0), ae.emit("cloned", W, E.item, "copy")), P = E.source, V = E.item, $ = Y = B(E.item), ae.dragging = !0, ae.emit("drag", V, P);
7354
7354
  }
7355
7355
  function st() {
7356
7356
  return !1;
7357
7357
  }
7358
7358
  function Ue() {
7359
7359
  if (ae.dragging) {
7360
- var E = W || A;
7361
- ot(E, v(E));
7360
+ var E = W || V;
7361
+ ot(E, h(E));
7362
7362
  }
7363
7363
  }
7364
7364
  function Ee() {
7365
- he = !1, xe(!0), at(!0);
7365
+ ge = !1, xe(!0), at(!0);
7366
7366
  }
7367
7367
  function $e(E) {
7368
7368
  if (Ee(), !!ae.dragging) {
7369
- var H = W || A, V = R("clientX", E) || 0, _ = R("clientY", E) || 0, Z = y(x, V, _), K = ze(Z, V, _);
7369
+ var H = W || V, A = R("clientX", E) || 0, _ = R("clientY", E) || 0, Z = v(T, A, _), K = ze(Z, A, _);
7370
7370
  K && (W && G.copySortSource || !W || K !== P) ? ot(H, K) : G.removeOnSpill ? I() : J();
7371
7371
  }
7372
7372
  }
7373
7373
  function ot(E, H) {
7374
- var V = v(E);
7375
- W && G.copySortSource && H === P && V.removeChild(A), se(H) ? ae.emit("cancel", E, P) : ae.emit("drop", E, H, P, Y), le();
7374
+ var A = h(E);
7375
+ W && G.copySortSource && H === P && A.removeChild(V), se(H) ? ae.emit("cancel", E, P) : ae.emit("drop", E, H, P, Y), le();
7376
7376
  }
7377
7377
  function I() {
7378
7378
  if (ae.dragging) {
7379
- var E = W || A, H = v(E);
7379
+ var E = W || V, H = h(E);
7380
7380
  H && H.removeChild(E), ae.emit(W ? "cancel" : "remove", E, H, P), le();
7381
7381
  }
7382
7382
  }
7383
7383
  function J(E) {
7384
7384
  if (ae.dragging) {
7385
- var H = arguments.length > 0 ? E : G.revertOnSpill, V = W || A, _ = v(V), Z = se(_);
7386
- Z === !1 && H && (W ? _ && _.removeChild(W) : P.insertBefore(V, $)), Z || H ? ae.emit("cancel", V, P, P) : ae.emit("drop", V, _, P, Y), le();
7385
+ var H = arguments.length > 0 ? E : G.revertOnSpill, A = W || V, _ = h(A), Z = se(_);
7386
+ Z === !1 && H && (W ? _ && _.removeChild(W) : P.insertBefore(A, $)), Z || H ? ae.emit("cancel", A, P, P) : ae.emit("drop", A, _, P, Y), le();
7387
7387
  }
7388
7388
  }
7389
7389
  function le() {
7390
- var E = W || A;
7391
- Ee(), Lt(), $t(), E && s.rm(E, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ve && ae.emit("out", E, ve, P), ae.emit("dragend", E, ue), P = A = W = $ = Y = ee = ve = null;
7390
+ var E = W || V;
7391
+ Ee(), Lt(), $t(), E && s.rm(E, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ve && ae.emit("out", E, ve, P), ae.emit("dragend", E, ue), P = V = W = $ = Y = ee = ve = null;
7392
7392
  }
7393
7393
  function se(E, H) {
7394
- var V;
7395
- return H !== void 0 ? V = H : x ? V = Y : V = B(W || A), E === P && V === $;
7394
+ var A;
7395
+ return H !== void 0 ? A = H : T ? A = Y : A = B(W || V), E === P && A === $;
7396
7396
  }
7397
- function ze(E, H, V) {
7397
+ function ze(E, H, A) {
7398
7398
  for (var _ = E; _ && !Z(); )
7399
- _ = v(_);
7399
+ _ = h(_);
7400
7400
  return _;
7401
7401
  function Z() {
7402
7402
  var K = Ge(_);
7403
7403
  if (K === !1)
7404
7404
  return !1;
7405
- var Fe = wt(_, E), be = kt(_, Fe, H, V), we = se(_, be);
7406
- return we ? !0 : G.accepts(A, _, P, be);
7405
+ var Fe = wt(_, E), be = kt(_, Fe, H, A), we = se(_, be);
7406
+ return we ? !0 : G.accepts(V, _, P, be);
7407
7407
  }
7408
7408
  }
7409
7409
  function ut(E) {
7410
- if (!x)
7410
+ if (!T)
7411
7411
  return;
7412
7412
  E.preventDefault();
7413
- var H = R("clientX", E) || 0, V = R("clientY", E) || 0;
7414
- x.style.left = H - 2 + "px", x.style.top = V - 2 + "px";
7415
- var _ = W || A, Z = y(x, H, V), K = ze(Z, H, V), Fe = K !== null && K !== ve;
7416
- (Fe || K === null) && (ke(), ve = K, Be()), Vt(Z, V);
7417
- var be = v(_);
7413
+ var H = R("clientX", E) || 0, A = R("clientY", E) || 0;
7414
+ T.style.left = H - 2 + "px", T.style.top = A - 2 + "px";
7415
+ var _ = W || V, Z = v(T, H, A), K = ze(Z, H, A), Fe = K !== null && K !== ve;
7416
+ (Fe || K === null) && (ke(), ve = K, Be()), Vt(Z, A);
7417
+ var be = h(_);
7418
7418
  if (K === P && W && !G.copySortSource) {
7419
7419
  be && be.removeChild(_);
7420
7420
  return;
7421
7421
  }
7422
7422
  var we, Me = wt(K, Z);
7423
7423
  if (oe = ct(Me, K), Me !== null)
7424
- we = kt(K, Me, H, V);
7424
+ we = kt(K, Me, H, A);
7425
7425
  else if (G.revertOnSpill === !0 && !W)
7426
7426
  we = $, K = P;
7427
7427
  else {
@@ -7439,8 +7439,8 @@ var Ml = { exports: {} };
7439
7439
  ve && de("out");
7440
7440
  }
7441
7441
  }
7442
- function Pt(E, H, V) {
7443
- (E === H || E === B(H)) && (Y = B(H)), (E === null && V || E !== H && E !== B(H)) && (Y = E);
7442
+ function Pt(E, H, A) {
7443
+ (E === H || E === B(H)) && (Y = B(H)), (E === null && A || E !== H && E !== B(H)) && (Y = E);
7444
7444
  }
7445
7445
  function Nt(E) {
7446
7446
  s.rm(E, "gu-hide");
@@ -7449,31 +7449,31 @@ var Ml = { exports: {} };
7449
7449
  ae.dragging && s.add(E, "gu-hide");
7450
7450
  }
7451
7451
  function It() {
7452
- x || (x = document.createElement("div"), x.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;", x.innerHTML = G.getMirrorText && G.getMirrorText(A) || "控件", s.add(x, "gu-mirror"), G.mirrorContainer.appendChild(x), m(p, "add", "mousemove", ut), s.add(G.mirrorContainer, "gu-unselectable"), ae.emit("cloned", x, A, "mirror"));
7452
+ T || (T = document.createElement("div"), T.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;", T.innerHTML = G.getMirrorText && G.getMirrorText(V) || "控件", s.add(T, "gu-mirror"), G.mirrorContainer.appendChild(T), m(p, "add", "mousemove", ut), s.add(G.mirrorContainer, "gu-unselectable"), ae.emit("cloned", T, V, "mirror"));
7453
7453
  }
7454
7454
  function Rt() {
7455
- if (X = document.createElement("div"), s.add(X, "gu-insertion"), A) {
7456
- var E = A.getBoundingClientRect();
7455
+ if (X = document.createElement("div"), s.add(X, "gu-insertion"), V) {
7456
+ var E = V.getBoundingClientRect();
7457
7457
  X.style.left = E.left + "px", X.style.top = E.top + "px";
7458
7458
  }
7459
7459
  oe = !1, G.mirrorContainer.appendChild(X);
7460
7460
  }
7461
7461
  function Lt() {
7462
- x && (s.rm(G.mirrorContainer, "gu-unselectable"), m(p, "remove", "mousemove", ut), v(x).removeChild(x), x = null);
7462
+ T && (s.rm(G.mirrorContainer, "gu-unselectable"), m(p, "remove", "mousemove", ut), h(T).removeChild(T), T = null);
7463
7463
  }
7464
7464
  function $t() {
7465
- X && (v(X).removeChild(X), X = null);
7465
+ X && (h(X).removeChild(X), X = null);
7466
7466
  }
7467
7467
  function wt(E, H) {
7468
- for (var V = H; V !== E && v(V) !== E; )
7469
- V = v(V);
7470
- return V === p ? null : V;
7468
+ for (var A = H; A !== E && h(A) !== E; )
7469
+ A = h(A);
7470
+ return A === p ? null : A;
7471
7471
  }
7472
7472
  function ct(E, H) {
7473
7473
  if (!H)
7474
7474
  return oe;
7475
- var V = E || H && H.lastElementChild;
7476
- if (!V)
7475
+ var A = E || H && H.lastElementChild;
7476
+ if (!A)
7477
7477
  return !0;
7478
7478
  var _ = getComputedStyle(E), Z = /^inline/.test(_.getPropertyValue("display")) || /^(left|right)$/.test(_.getPropertyValue("float"));
7479
7479
  if (Z)
@@ -7505,58 +7505,58 @@ var Ml = { exports: {} };
7505
7505
  return !0;
7506
7506
  }
7507
7507
  function Ht(E, H) {
7508
- const V = H.getBoundingClientRect();
7509
- if (X.style.left = V.left + "px", X.style.top = V.top + "px", oe) {
7510
- if (X.style.height = V.height + "px", X.style.width = "4px", E) {
7508
+ const A = H.getBoundingClientRect();
7509
+ if (X.style.left = A.left + "px", X.style.top = A.top + "px", oe) {
7510
+ if (X.style.height = A.height + "px", X.style.width = "4px", E) {
7511
7511
  const _ = E.getBoundingClientRect();
7512
- _.top !== V.top && (X.style.left = _.right + "px", X.style.top = _.top + "px", X.style.height = _.height + "px");
7512
+ _.top !== A.top && (X.style.left = _.right + "px", X.style.top = _.top + "px", X.style.height = _.height + "px");
7513
7513
  }
7514
- } else if (X.style.height = "4px", X.style.width = V.width + "px", te) {
7514
+ } else if (X.style.height = "4px", X.style.width = A.width + "px", te) {
7515
7515
  const _ = te.getBoundingClientRect();
7516
- V.top < _.top && (X.style.display = "none");
7516
+ A.top < _.top && (X.style.display = "none");
7517
7517
  }
7518
- H === A && A && (X.style.display = "none");
7518
+ H === V && V && (X.style.display = "none");
7519
7519
  }
7520
7520
  function At(E) {
7521
7521
  Y = null;
7522
7522
  var H = E.lastElementChild;
7523
7523
  if (H) {
7524
- var V = H.getBoundingClientRect();
7525
- oe ? (X.style.left = V.right + "px", X.style.top = V.top + "px", X.style.height = V.height + "px", X.style.width = "4px") : (X.style.left = V.left + "px", X.style.top = V.bottom + "px", X.style.height = "4px", X.style.width = V.width + "px"), H === A && A && (X.style.display = "none");
7524
+ var A = H.getBoundingClientRect();
7525
+ oe ? (X.style.left = A.right + "px", X.style.top = A.top + "px", X.style.height = A.height + "px", X.style.width = "4px") : (X.style.left = A.left + "px", X.style.top = A.bottom + "px", X.style.height = "4px", X.style.width = A.width + "px"), H === V && V && (X.style.display = "none");
7526
7526
  } else
7527
7527
  X.style.display = "none";
7528
7528
  }
7529
7529
  function Vt(E, H) {
7530
7530
  if (!G.mirrorContainer.contains(E) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (te = c(E), !te || !te.contains(E)))
7531
7531
  return;
7532
- const V = document.querySelector(".dgComponentSelected"), _ = te.getBoundingClientRect();
7532
+ const A = document.querySelector(".dgComponentSelected"), _ = te.getBoundingClientRect();
7533
7533
  if (H - 30 < _.top && te.scrollTop > 0) {
7534
7534
  let Z = te.scrollTop < 10 ? te.scrollTop : 10;
7535
- te.scrollBy(0, -1 * Z), V && te.contains(V) && (ue = ue + -1 * Z);
7535
+ te.scrollBy(0, -1 * Z), A && te.contains(A) && (ue = ue + -1 * Z);
7536
7536
  }
7537
7537
  if (H + 30 > _.bottom && te.scrollTop < te.scrollHeight - te.clientHeight) {
7538
7538
  const Z = te.scrollHeight - te.clientHeight - te.scrollTop;
7539
7539
  let K = Z < 10 ? Z : 10;
7540
- te.scrollBy(0, K), V && te.contains(V) && (ue = ue + K);
7540
+ te.scrollBy(0, K), A && te.contains(A) && (ue = ue + K);
7541
7541
  }
7542
7542
  }
7543
- function kt(E, H, V, _) {
7543
+ function kt(E, H, A, _) {
7544
7544
  var Z = G.direction === "horizontal", K = G.direction === "mixed", Fe = H !== E ? we() : be();
7545
7545
  return Fe;
7546
7546
  function be() {
7547
7547
  var de = E.children.length, Be, ke, me;
7548
7548
  for (Be = 0; Be < de; Be++)
7549
- if (ke = E.children[Be], me = ke.getBoundingClientRect(), Z && me.left + me.width / 2 > V || !K && !Z && me.top + me.height / 2 > _ || K && me.left + me.width > V && me.top + me.height > _)
7549
+ if (ke = E.children[Be], me = ke.getBoundingClientRect(), Z && me.left + me.width / 2 > A || !K && !Z && me.top + me.height / 2 > _ || K && me.left + me.width > A && me.top + me.height > _)
7550
7550
  return ke;
7551
7551
  return null;
7552
7552
  }
7553
7553
  function we() {
7554
7554
  var de = H.getBoundingClientRect();
7555
7555
  if (K) {
7556
- var Be = _ - de.top, ke = V - de.left, me = de.bottom - _, dt = de.right - V, ft = Math.min(ke, dt, Be, me), pt;
7556
+ var Be = _ - de.top, ke = A - de.left, me = de.bottom - _, dt = de.right - A, ft = Math.min(ke, dt, Be, me), pt;
7557
7557
  return oe ? pt = dt < ke : pt = me === ft || dt === ft || ke === ft, Me(pt);
7558
7558
  }
7559
- return Me(Z ? V > de.left + D(de) / 2 : _ > de.top + O(de) / 2);
7559
+ return Me(Z ? A > de.left + D(de) / 2 : _ > de.top + O(de) / 2);
7560
7560
  }
7561
7561
  function Me(de) {
7562
7562
  return de ? B(H) : H;
@@ -7566,31 +7566,31 @@ var Ml = { exports: {} };
7566
7566
  return typeof G.copy == "boolean" ? G.copy : G.copy(E, H);
7567
7567
  }
7568
7568
  }
7569
- function c(M) {
7569
+ function c(x) {
7570
7570
  const F = Array.from(window.scrollContainerList);
7571
7571
  if (F.length === 1) {
7572
- const x = Array.from(window.scrollContainerList)[0];
7573
- return document.getElementById(x);
7572
+ const T = Array.from(window.scrollContainerList)[0];
7573
+ return document.getElementById(T);
7574
7574
  }
7575
- const w = f(F);
7576
- for (const x of w)
7577
- if (x.contains(M))
7578
- return x;
7575
+ const C = f(F);
7576
+ for (const T of C)
7577
+ if (T.contains(x))
7578
+ return T;
7579
7579
  return null;
7580
7580
  }
7581
- function f(M) {
7581
+ function f(x) {
7582
7582
  const F = [];
7583
- return M.forEach((w) => {
7584
- const x = document.getElementById(w);
7585
- x && F.push(x);
7586
- }), F.sort((w, x) => w.contains(x) ? 1 : x.contains(w) ? -1 : 0), F;
7583
+ return x.forEach((C) => {
7584
+ const T = document.getElementById(C);
7585
+ T && F.push(T);
7586
+ }), F.sort((C, T) => C.contains(T) ? 1 : T.contains(C) ? -1 : 0), F;
7587
7587
  }
7588
- function m(M, F, w, x) {
7588
+ function m(x, F, C, T) {
7589
7589
  var P = {
7590
7590
  mouseup: "touchend",
7591
7591
  mousedown: "touchstart",
7592
7592
  mousemove: "touchmove"
7593
- }, A = {
7593
+ }, V = {
7594
7594
  mouseup: "pointerup",
7595
7595
  mousedown: "pointerdown",
7596
7596
  mousemove: "pointermove"
@@ -7599,66 +7599,66 @@ var Ml = { exports: {} };
7599
7599
  mousedown: "MSPointerDown",
7600
7600
  mousemove: "MSPointerMove"
7601
7601
  };
7602
- i.navigator.pointerEnabled ? l[F](M, A[w], x) : i.navigator.msPointerEnabled ? l[F](M, Q[w], x) : (l[F](M, P[w], x), l[F](M, w, x));
7602
+ i.navigator.pointerEnabled ? l[F](x, V[C], T) : i.navigator.msPointerEnabled ? l[F](x, Q[C], T) : (l[F](x, P[C], T), l[F](x, C, T));
7603
7603
  }
7604
- function h(M) {
7605
- if (M.touches !== void 0)
7606
- return M.touches.length;
7607
- if (M.which !== void 0 && M.which !== 0)
7608
- return M.which;
7609
- if (M.buttons !== void 0)
7610
- return M.buttons;
7611
- var F = M.button;
7604
+ function g(x) {
7605
+ if (x.touches !== void 0)
7606
+ return x.touches.length;
7607
+ if (x.which !== void 0 && x.which !== 0)
7608
+ return x.which;
7609
+ if (x.buttons !== void 0)
7610
+ return x.buttons;
7611
+ var F = x.button;
7612
7612
  if (F !== void 0)
7613
7613
  return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
7614
7614
  }
7615
- function y(M, F, w) {
7616
- M = M || {};
7617
- var x = M.className || "", P;
7618
- return M.className += " gu-hide", P = u.elementFromPoint(F, w), M.className = x, P;
7615
+ function v(x, F, C) {
7616
+ x = x || {};
7617
+ var T = x.className || "", P;
7618
+ return x.className += " gu-hide", P = u.elementFromPoint(F, C), x.className = T, P;
7619
7619
  }
7620
- function C() {
7620
+ function w() {
7621
7621
  return !1;
7622
7622
  }
7623
- function S() {
7623
+ function k() {
7624
7624
  return !0;
7625
7625
  }
7626
- function D(M) {
7627
- return M.width || M.right - M.left;
7626
+ function D(x) {
7627
+ return x.width || x.right - x.left;
7628
7628
  }
7629
- function O(M) {
7630
- return M.height || M.bottom - M.top;
7629
+ function O(x) {
7630
+ return x.height || x.bottom - x.top;
7631
7631
  }
7632
- function v(M) {
7633
- return M.parentNode === u ? null : M.parentNode;
7632
+ function h(x) {
7633
+ return x.parentNode === u ? null : x.parentNode;
7634
7634
  }
7635
- function g(M) {
7636
- return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" || T(M);
7635
+ function y(x) {
7636
+ return x.tagName === "INPUT" || x.tagName === "TEXTAREA" || x.tagName === "SELECT" || M(x);
7637
7637
  }
7638
- function T(M) {
7639
- return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 : T(v(M));
7638
+ function M(x) {
7639
+ return !x || x.contentEditable === "false" ? !1 : x.contentEditable === "true" ? !0 : M(h(x));
7640
7640
  }
7641
- function B(M) {
7642
- return M.nextElementSibling || F();
7641
+ function B(x) {
7642
+ return x.nextElementSibling || F();
7643
7643
  function F() {
7644
- var w = M;
7644
+ var C = x;
7645
7645
  do
7646
- w = w.nextSibling;
7647
- while (w && w.nodeType !== 1);
7648
- return w;
7646
+ C = C.nextSibling;
7647
+ while (C && C.nodeType !== 1);
7648
+ return C;
7649
7649
  }
7650
7650
  }
7651
- function N(M) {
7652
- return M.targetTouches && M.targetTouches.length ? M.targetTouches[0] : M.changedTouches && M.changedTouches.length ? M.changedTouches[0] : M;
7651
+ function N(x) {
7652
+ return x.targetTouches && x.targetTouches.length ? x.targetTouches[0] : x.changedTouches && x.changedTouches.length ? x.changedTouches[0] : x;
7653
7653
  }
7654
- function R(M, F) {
7655
- var w = N(F), x = {
7654
+ function R(x, F) {
7655
+ var C = N(F), T = {
7656
7656
  pageX: "clientX",
7657
7657
  // IE8
7658
7658
  pageY: "clientY"
7659
7659
  // IE8
7660
7660
  };
7661
- return M in x && !(M in w) && x[M] in w && (M = x[M]), w[M];
7661
+ return x in T && !(x in C) && T[x] in C && (x = T[x]), C[x];
7662
7662
  }
7663
7663
  a.exports = d;
7664
7664
  }).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -7691,10 +7691,10 @@ var Ml = { exports: {} };
7691
7691
  else if (m === 0)
7692
7692
  d = {};
7693
7693
  else {
7694
- var h = d[c];
7695
- if (!h)
7694
+ var g = d[c];
7695
+ if (!g)
7696
7696
  return s;
7697
- h.splice(h.indexOf(f), 1);
7697
+ g.splice(g.indexOf(f), 1);
7698
7698
  }
7699
7699
  return s;
7700
7700
  }, s.emit = function() {
@@ -7703,11 +7703,11 @@ var Ml = { exports: {} };
7703
7703
  }, s.emitterSnapshot = function(c) {
7704
7704
  var f = (d[c] || []).slice(0);
7705
7705
  return function() {
7706
- var m = i(arguments), h = this || s;
7706
+ var m = i(arguments), g = this || s;
7707
7707
  if (c === "error" && p.throws !== !1 && !f.length)
7708
7708
  throw m.length === 1 ? m[0] : m;
7709
- return f.forEach(function(C) {
7710
- p.async ? r(C, m, h) : C.apply(h, m), C._once && s.off(c, C);
7709
+ return f.forEach(function(w) {
7710
+ p.async ? r(w, m, g) : w.apply(g, m), w._once && s.off(c, w);
7711
7711
  }), s;
7712
7712
  };
7713
7713
  }, s;
@@ -7716,66 +7716,66 @@ var Ml = { exports: {} };
7716
7716
  6: [function(n, a, o) {
7717
7717
  (function(i) {
7718
7718
  var r = n("custom-event"), l = n("./eventmap"), s = i.document, u = c, p = m, d = [];
7719
- i.addEventListener || (u = f, p = h), a.exports = {
7719
+ i.addEventListener || (u = f, p = g), a.exports = {
7720
7720
  add: u,
7721
7721
  remove: p,
7722
- fabricate: y
7722
+ fabricate: v
7723
7723
  };
7724
- function c(v, g, T, B) {
7725
- return v.addEventListener(g, T, B);
7724
+ function c(h, y, M, B) {
7725
+ return h.addEventListener(y, M, B);
7726
7726
  }
7727
- function f(v, g, T) {
7728
- return v.attachEvent("on" + g, S(v, g, T));
7727
+ function f(h, y, M) {
7728
+ return h.attachEvent("on" + y, k(h, y, M));
7729
7729
  }
7730
- function m(v, g, T, B) {
7731
- return v.removeEventListener(g, T, B);
7730
+ function m(h, y, M, B) {
7731
+ return h.removeEventListener(y, M, B);
7732
7732
  }
7733
- function h(v, g, T) {
7734
- var B = D(v, g, T);
7733
+ function g(h, y, M) {
7734
+ var B = D(h, y, M);
7735
7735
  if (B)
7736
- return v.detachEvent("on" + g, B);
7736
+ return h.detachEvent("on" + y, B);
7737
7737
  }
7738
- function y(v, g, T) {
7739
- var B = l.indexOf(g) === -1 ? R() : N();
7740
- v.dispatchEvent ? v.dispatchEvent(B) : v.fireEvent("on" + g, B);
7738
+ function v(h, y, M) {
7739
+ var B = l.indexOf(y) === -1 ? R() : N();
7740
+ h.dispatchEvent ? h.dispatchEvent(B) : h.fireEvent("on" + y, B);
7741
7741
  function N() {
7742
- var M;
7743
- return s.createEvent ? (M = s.createEvent("Event"), M.initEvent(g, !0, !0)) : s.createEventObject && (M = s.createEventObject()), M;
7742
+ var x;
7743
+ return s.createEvent ? (x = s.createEvent("Event"), x.initEvent(y, !0, !0)) : s.createEventObject && (x = s.createEventObject()), x;
7744
7744
  }
7745
7745
  function R() {
7746
- return new r(g, { detail: T });
7746
+ return new r(y, { detail: M });
7747
7747
  }
7748
7748
  }
7749
- function C(v, g, T) {
7749
+ function w(h, y, M) {
7750
7750
  return function(N) {
7751
7751
  var R = N || i.event;
7752
7752
  R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
7753
7753
  R.returnValue = !1;
7754
7754
  }, R.stopPropagation = R.stopPropagation || function() {
7755
7755
  R.cancelBubble = !0;
7756
- }, R.which = R.which || R.keyCode, T.call(v, R);
7756
+ }, R.which = R.which || R.keyCode, M.call(h, R);
7757
7757
  };
7758
7758
  }
7759
- function S(v, g, T) {
7760
- var B = D(v, g, T) || C(v, g, T);
7759
+ function k(h, y, M) {
7760
+ var B = D(h, y, M) || w(h, y, M);
7761
7761
  return d.push({
7762
7762
  wrapper: B,
7763
- element: v,
7764
- type: g,
7765
- fn: T
7763
+ element: h,
7764
+ type: y,
7765
+ fn: M
7766
7766
  }), B;
7767
7767
  }
7768
- function D(v, g, T) {
7769
- var B = O(v, g, T);
7768
+ function D(h, y, M) {
7769
+ var B = O(h, y, M);
7770
7770
  if (B) {
7771
7771
  var N = d[B].wrapper;
7772
7772
  return d.splice(B, 1), N;
7773
7773
  }
7774
7774
  }
7775
- function O(v, g, T) {
7775
+ function O(h, y, M) {
7776
7776
  var B, N;
7777
7777
  for (B = 0; B < d.length; B++)
7778
- if (N = d[B], N.element === v && N.type === g && N.fn === T)
7778
+ if (N = d[B], N.element === h && N.type === y && N.fn === M)
7779
7779
  return B;
7780
7780
  }
7781
7781
  }).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -7864,33 +7864,33 @@ var Ml = { exports: {} };
7864
7864
  }
7865
7865
  }
7866
7866
  }
7867
- var c = [], f = !1, m, h = -1;
7868
- function y() {
7869
- !f || !m || (f = !1, m.length ? c = m.concat(c) : h = -1, c.length && C());
7867
+ var c = [], f = !1, m, g = -1;
7868
+ function v() {
7869
+ !f || !m || (f = !1, m.length ? c = m.concat(c) : g = -1, c.length && w());
7870
7870
  }
7871
- function C() {
7871
+ function w() {
7872
7872
  if (!f) {
7873
- var O = p(y);
7873
+ var O = p(v);
7874
7874
  f = !0;
7875
- for (var v = c.length; v; ) {
7876
- for (m = c, c = []; ++h < v; )
7877
- m && m[h].run();
7878
- h = -1, v = c.length;
7875
+ for (var h = c.length; h; ) {
7876
+ for (m = c, c = []; ++g < h; )
7877
+ m && m[g].run();
7878
+ g = -1, h = c.length;
7879
7879
  }
7880
7880
  m = null, f = !1, d(O);
7881
7881
  }
7882
7882
  }
7883
7883
  i.nextTick = function(O) {
7884
- var v = new Array(arguments.length - 1);
7884
+ var h = new Array(arguments.length - 1);
7885
7885
  if (arguments.length > 1)
7886
- for (var g = 1; g < arguments.length; g++)
7887
- v[g - 1] = arguments[g];
7888
- c.push(new S(O, v)), c.length === 1 && !f && p(C);
7886
+ for (var y = 1; y < arguments.length; y++)
7887
+ h[y - 1] = arguments[y];
7888
+ c.push(new k(O, h)), c.length === 1 && !f && p(w);
7889
7889
  };
7890
- function S(O, v) {
7891
- this.fun = O, this.array = v;
7890
+ function k(O, h) {
7891
+ this.fun = O, this.array = h;
7892
7892
  }
7893
- S.prototype.run = function() {
7893
+ k.prototype.run = function() {
7894
7894
  this.fun.apply(null, this.array);
7895
7895
  }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
7896
7896
  function D() {
@@ -7944,9 +7944,9 @@ var Ml = { exports: {} };
7944
7944
  f._onTimeout && f._onTimeout();
7945
7945
  }, m));
7946
7946
  }, o.setImmediate = typeof i == "function" ? i : function(f) {
7947
- var m = d++, h = arguments.length < 2 ? !1 : u.call(arguments, 1);
7947
+ var m = d++, g = arguments.length < 2 ? !1 : u.call(arguments, 1);
7948
7948
  return p[m] = !0, l(function() {
7949
- p[m] && (h ? f.apply(null, h) : f.call(null), o.clearImmediate(m));
7949
+ p[m] && (g ? f.apply(null, g) : f.call(null), o.clearImmediate(m));
7950
7950
  }), m;
7951
7951
  }, o.clearImmediate = typeof r == "function" ? r : function(f) {
7952
7952
  delete p[f];
@@ -7989,22 +7989,22 @@ const Bl = {
7989
7989
  };
7990
7990
  return O[e.animate] = !1, O[i] = l.value, O["toasty-type-" + r.value.type] = !0, r.value.theme && (O[r.value.theme] = !0), O;
7991
7991
  }), d = j(() => {
7992
- const g = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, T = {
7992
+ const y = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, M = {
7993
7993
  "f-icon": !0
7994
7994
  };
7995
- return T[g] = !0, T;
7996
- }), c = j(() => r.value.title || r.value.message), f = j(() => e.showCloseButton), m = j(() => !!r.value.buttons || !!t.slots.default), h = j(() => n.value === "en" ? {
7995
+ return M[y] = !0, M;
7996
+ }), c = j(() => r.value.title || r.value.message), f = j(() => e.showCloseButton), m = j(() => !!r.value.buttons || !!t.slots.default), g = j(() => n.value === "en" ? {
7997
7997
  wordBreak: "keep-all",
7998
7998
  overflowWrap: "break-word"
7999
7999
  } : {});
8000
- function y(O) {
8000
+ function v(O) {
8001
8001
  O.stopPropagation(), O.preventDefault(), l.value = !1, setTimeout(() => {
8002
8002
  t.emit("close", r.value);
8003
8003
  }, 200);
8004
8004
  }
8005
- function C(O, v) {
8005
+ function w(O, h) {
8006
8006
  }
8007
- function S(O) {
8007
+ function k(O) {
8008
8008
  return `f-preten-link ${O.customClass ? O.customClass : ""}`;
8009
8009
  }
8010
8010
  ne(o, () => {
@@ -8012,48 +8012,48 @@ const Bl = {
8012
8012
  });
8013
8013
  const D = () => {
8014
8014
  var O;
8015
- return k(tt, null, [k("div", {
8015
+ return S(tt, null, [S("div", {
8016
8016
  class: "after-toast-msg text-right"
8017
- }, [!t.slots.default && ((O = r.value.buttons) == null ? void 0 : O.map((v) => k("span", {
8018
- class: S(v),
8019
- onClick: (g) => void 0
8020
- }, [v.text]))), t.slots.default && t.slots.default()])]);
8017
+ }, [!t.slots.default && ((O = r.value.buttons) == null ? void 0 : O.map((h) => S("span", {
8018
+ class: k(h),
8019
+ onClick: (y) => void 0
8020
+ }, [h.text]))), t.slots.default && t.slots.default()])]);
8021
8021
  };
8022
- return () => k("div", {
8022
+ return () => S("div", {
8023
8023
  class: p.value,
8024
8024
  style: "min-height:44px"
8025
- }, [f.value && k("button", {
8025
+ }, [f.value && S("button", {
8026
8026
  title: a("messageBox.close"),
8027
8027
  class: "toast-close f-btn-icon f-bare",
8028
- onClick: y
8029
- }, [k("span", {
8028
+ onClick: v
8029
+ }, [S("span", {
8030
8030
  class: "f-icon modal_close"
8031
- }, null)]), c.value && k("section", {
8031
+ }, null)]), c.value && S("section", {
8032
8032
  class: "modal-tips"
8033
- }, [k("div", {
8033
+ }, [S("div", {
8034
8034
  class: "float-left modal-tips-iconwrap"
8035
- }, [k("span", {
8035
+ }, [S("span", {
8036
8036
  class: d.value
8037
- }, null)]), k("div", {
8037
+ }, null)]), S("div", {
8038
8038
  class: "modal-tips-content"
8039
- }, [s.value && k(tt, null, [k("h5", {
8039
+ }, [s.value && S(tt, null, [S("h5", {
8040
8040
  class: "toast-title modal-tips-title",
8041
8041
  innerHTML: r.value.title
8042
- }, null), k("p", {
8042
+ }, null), S("p", {
8043
8043
  class: "toast-msg",
8044
8044
  innerHTML: r.value.message,
8045
- style: h.value
8046
- }, null), m.value && D()]), u.value && (r.value.buttons ? k("div", {
8045
+ style: g.value
8046
+ }, null), m.value && D()]), u.value && (r.value.buttons ? S("div", {
8047
8047
  class: "toast-title-btns-wrapper d-flex"
8048
- }, [k("h5", {
8048
+ }, [S("h5", {
8049
8049
  class: "toast-title modal-tips-title only-toast-msg",
8050
- style: h.value,
8050
+ style: g.value,
8051
8051
  innerHTML: r.value.message
8052
- }, null), k("div", {
8052
+ }, null), S("div", {
8053
8053
  class: "after-toast-title text-right ml-auto"
8054
- }, [D()])]) : k("h5", {
8054
+ }, [D()])]) : S("h5", {
8055
8055
  class: "toast-title modal-tips-title only-toast-msg",
8056
- style: h.value,
8056
+ style: g.value,
8057
8057
  innerHTML: r.value.message
8058
8058
  }, null))])])]);
8059
8059
  }
@@ -8092,11 +8092,11 @@ const Bl = {
8092
8092
  function d(c, f) {
8093
8093
  p();
8094
8094
  }
8095
- return () => k("div", {
8095
+ return () => S("div", {
8096
8096
  class: n.value,
8097
8097
  style: u.value,
8098
8098
  ref: o
8099
- }, [k(Xt, {
8099
+ }, [S(Xt, {
8100
8100
  options: i.value,
8101
8101
  showCloseButton: r.value,
8102
8102
  animate: e.animate,
@@ -8141,16 +8141,16 @@ class Dl {
8141
8141
  o.top = c.bottom;
8142
8142
  }
8143
8143
  }
8144
- return o.safeHtml && ((u = o.options) != null && u.message) && (o.options.message = n.escapeAllHtml(o.options.message)), ht(() => {
8144
+ return o.safeHtml && ((u = o.options) != null && u.message) && (o.options.message = n.escapeAllHtml(o.options.message)), gt(() => {
8145
8145
  document.body.removeChild(i);
8146
- }), ge(() => {
8146
+ }), he(() => {
8147
8147
  n.updateNotifyPositionForCreate(o, l);
8148
- }), () => k(Sn, {
8148
+ }), () => S(Sn, {
8149
8149
  mode: "out-in",
8150
8150
  name: "fade",
8151
8151
  appear: !0
8152
8152
  }, {
8153
- default: () => [k(xt, Ot({
8153
+ default: () => [S(xt, Ot({
8154
8154
  ref: l
8155
8155
  }, o, {
8156
8156
  onClose: s
@@ -8379,57 +8379,57 @@ const El = {
8379
8379
  }
8380
8380
  }
8381
8381
  };
8382
- function Pl(e, t, n, a, o, i, r, l, s, u, p, d, c, f, m, h, y) {
8382
+ function Pl(e, t, n, a, o, i, r, l, s, u, p, d, c, f, m, g, v) {
8383
8383
  const {
8384
- calculateCellPositionInRow: C
8384
+ calculateCellPositionInRow: w
8385
8385
  } = i, {
8386
- columnContext: S,
8386
+ columnContext: k,
8387
8387
  hasLeftFixedColumn: D,
8388
8388
  hasRightFixedColumn: O
8389
8389
  } = r, {
8390
- gridDataStyle: v,
8391
- leftFixedGridDataStyle: g,
8392
- rightFixedGridDataStyle: T
8390
+ gridDataStyle: h,
8391
+ leftFixedGridDataStyle: y,
8392
+ rightFixedGridDataStyle: M
8393
8393
  } = f, {
8394
8394
  renderDataRow: B
8395
- } = Ra(e, t, S, y, l, s, u, p, d, c, f, m, h), N = [B];
8396
- function R(P, A) {
8397
- const Q = C(P);
8398
- return y.value.filter((z) => z.visible !== !1).map((z, $) => N[z.type](z, Q, A, $));
8395
+ } = Ra(e, t, k, v, l, s, u, p, d, c, f, m, g), N = [B];
8396
+ function R(P, V) {
8397
+ const Q = w(P);
8398
+ return v.value.filter((z) => z.visible !== !1).map((z, $) => N[z.type](z, Q, V, $));
8399
8399
  }
8400
- function M() {
8401
- return k("div", {
8400
+ function x() {
8401
+ return S("div", {
8402
8402
  ref: a,
8403
8403
  class: "fv-grid-content-left-fixed"
8404
- }, [k("div", {
8404
+ }, [S("div", {
8405
8405
  class: "fv-grid-data",
8406
- style: g.value
8407
- }, [R(S.value.leftColumns.filter((P) => P.visible), "left")])]);
8406
+ style: y.value
8407
+ }, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
8408
8408
  }
8409
8409
  function F() {
8410
- return k("div", {
8410
+ return S("div", {
8411
8411
  ref: n,
8412
8412
  class: "fv-grid-content-primary"
8413
- }, [k("div", {
8413
+ }, [S("div", {
8414
8414
  class: "fv-grid-data",
8415
- style: v.value
8416
- }, [R(S.value.primaryColumns.filter((P) => P.visible), "primary")])]);
8415
+ style: h.value
8416
+ }, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
8417
8417
  }
8418
- function w() {
8419
- return k("div", {
8418
+ function C() {
8419
+ return S("div", {
8420
8420
  ref: o,
8421
8421
  class: "fv-grid-content-right-fixed"
8422
- }, [k("div", {
8422
+ }, [S("div", {
8423
8423
  class: "fv-grid-data",
8424
- style: T.value
8425
- }, [R(S.value.rightColumns.filter((P) => P.visible), "right")])]);
8424
+ style: M.value
8425
+ }, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
8426
8426
  }
8427
- function x() {
8427
+ function T() {
8428
8428
  const P = [];
8429
- return D.value && P.push(M()), P.push(F()), O.value && P.push(w()), P;
8429
+ return D.value && P.push(x()), P.push(F()), O.value && P.push(C()), P;
8430
8430
  }
8431
8431
  return {
8432
- renderDataArea: x
8432
+ renderDataArea: T
8433
8433
  };
8434
8434
  }
8435
8435
  const Nl = /* @__PURE__ */ ie({
@@ -8440,20 +8440,20 @@ const Nl = /* @__PURE__ */ ie({
8440
8440
  var on, rn;
8441
8441
  const a = ((on = e.rowOption) == null ? void 0 : on.height) || 28, o = b(20), i = b(e.columns), r = La(e), {
8442
8442
  idField: l
8443
- } = r, s = b(), u = b(), p = b(), d = b(), c = b(), f = b([]), m = b(!1), h = b(((rn = e.rowOption) == null ? void 0 : rn.wrapContent) || !1), y = $a(e, r), C = za(e, t), S = Ha(e), {
8443
+ } = r, s = b(), u = b(), p = b(), d = b(), c = b(), f = b([]), m = b(!1), g = b(((rn = e.rowOption) == null ? void 0 : rn.wrapContent) || !1), v = $a(e, r), w = za(e, t), k = Ha(e), {
8444
8444
  collapseField: D
8445
- } = S, {
8445
+ } = k, {
8446
8446
  showLoading: O,
8447
- renderLoading: v
8448
- } = Aa(e, s), g = Va(e, /* @__PURE__ */ new Map(), C, S, r), {
8449
- dataView: T
8450
- } = g, B = Wa(e, g, r, f, t), {
8447
+ renderLoading: h
8448
+ } = Aa(e, s), y = Va(e, /* @__PURE__ */ new Map(), w, k, r), {
8449
+ dataView: M
8450
+ } = y, B = Wa(e, y, r, f, t), {
8451
8451
  showSelection: N,
8452
8452
  selectedValues: R
8453
- } = B, M = qa(e, f, g, r, B, t), F = j(() => e.disabled), w = j(() => e.virtualized ? Math.min(g.dataView.value.length, o.value) : g.dataView.value.length), x = Ga(e, g), {
8453
+ } = B, x = qa(e, f, y, r, B, t), F = j(() => e.disabled), C = j(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = Ga(e, y), {
8454
8454
  shouldRenderPagination: P
8455
- } = x, {
8456
- containerStyleObject: A
8455
+ } = T, {
8456
+ containerStyleObject: V
8457
8457
  } = _a(e), Q = Ya(e), {
8458
8458
  applyCommands: z
8459
8459
  } = Q;
@@ -8465,24 +8465,24 @@ const Nl = /* @__PURE__ */ ie({
8465
8465
  e.showSetting && $(i);
8466
8466
  const W = Xa(e, t), ee = Ja(e), {
8467
8467
  applyColumnSorter: ve,
8468
- columnContext: he,
8468
+ columnContext: ge,
8469
8469
  updateColumnRenderContext: X
8470
8470
  } = W;
8471
- ve(g, ee);
8472
- const oe = Qa(e, he), ue = Za(e, t, B, r), te = Ka(e, t, r, ue, f), G = eo(e), ae = to(e, te, G), Ge = no(e, g, te, S, r, G, ae), je = ao(e, i, g, w, 0, Ge), {
8471
+ ve(y, ee);
8472
+ const oe = Qa(e, ge), ue = Za(e, t, B, r), te = Ka(e, t, r, ue, f), G = eo(e), ae = to(e, te, G), Ge = no(e, y, te, k, r, G, ae), je = ao(e, i, y, C, 0, Ge), {
8473
8473
  getVisualData: xe
8474
- } = je, at = oo(e, he), _e = io(e, B), {
8474
+ } = je, at = oo(e, ge), _e = io(e, B), {
8475
8475
  sidebarWidth: Ye
8476
- } = _e, ce = ro(e, g, f, he, je, w, 0, Ye), {
8476
+ } = _e, ce = ro(e, y, f, ge, je, C, 0, Ye), {
8477
8477
  onWheel: lt,
8478
8478
  dataGridWidth: Te,
8479
8479
  viewPortHeight: Ie,
8480
8480
  viewPortWidth: Re,
8481
8481
  resetScroll: Le,
8482
8482
  updateVisibleRowsOnLatestVisibleScope: st
8483
- } = ce, Ue = lo(e, he, u, Re, oe), {
8483
+ } = ce, Ue = lo(e, ge, u, Re, oe), {
8484
8484
  calculateColumnsSize: Ee
8485
- } = Ue, $e = so(), ot = uo(u, c, g, $e, ce), I = co(e, t, W, g, oe, y, ce), J = j(() => {
8485
+ } = Ue, $e = so(), ot = uo(u, c, y, $e, ce), I = co(e, t, W, y, oe, v, ce), J = j(() => {
8486
8486
  const q = {
8487
8487
  "fv-grid": !0,
8488
8488
  "fv-grid-bordered": e.showBorder,
@@ -8493,14 +8493,14 @@ const Nl = /* @__PURE__ */ ie({
8493
8493
  }), le = j(() => ({
8494
8494
  "fv-grid-content": !0,
8495
8495
  "fv-grid-content-hover": m.value,
8496
- "fv-grid-wrap-content": h.value
8496
+ "fv-grid-wrap-content": g.value
8497
8497
  })), {
8498
8498
  renderDataArea: se
8499
- } = Pl(e, t, p, d, c, at, W, g, te, S, ue, B, M, ce, je, G, f), {
8499
+ } = Pl(e, t, p, d, c, at, W, y, te, k, ue, B, x, ce, je, G, f), {
8500
8500
  renderGridHeader: ze,
8501
8501
  renderGridColumnResizeOverlay: ut,
8502
8502
  shouldShowHeader: Pt
8503
- } = fo(e, t, u, d, c, W, g, I, ot, C, $e, Ue, oe, B, _e, ee, ce, Re, f), {
8503
+ } = fo(e, t, u, d, c, W, y, I, ot, w, $e, Ue, oe, B, _e, ee, ce, Re, f), {
8504
8504
  renderDataGridSidebar: Nt
8505
8505
  } = po(e, ue, B, _e, ce), {
8506
8506
  renderDisableMask: jt
@@ -8516,19 +8516,19 @@ const Nl = /* @__PURE__ */ ie({
8516
8516
  ye > o.value && (o.value = ye, st()), Ie.value = ((U = p.value) == null ? void 0 : U.clientHeight) || 0, Te.value = ((fe = u.value) == null ? void 0 : fe.clientWidth) || 0, Ee();
8517
8517
  }
8518
8518
  }
8519
- ge(() => {
8520
- u.value && (o.value = Math.max(Math.ceil(u.value.clientHeight / a), o.value), f.value = xe(0, w.value + 0 - 1), Ia(u.value, Lt), Ee(), Ve(() => {
8519
+ he(() => {
8520
+ u.value && (o.value = Math.max(Math.ceil(u.value.clientHeight / a), o.value), f.value = xe(0, C.value + 0 - 1), Ia(u.value, Lt), Ee(), Ve(() => {
8521
8521
  u.value && (Te.value = u.value.clientWidth), p.value && (Re.value = p.value.clientWidth, Ie.value = p.value.clientHeight);
8522
- })), O.value && v();
8523
- }), ht(() => {
8522
+ })), O.value && h();
8523
+ }), gt(() => {
8524
8524
  }), ne(Re, () => {
8525
8525
  u.value && Ee();
8526
8526
  });
8527
8527
  function $t(q) {
8528
- g.collapseTo(q), g.reOrderVisibleIndex(), Le();
8528
+ y.collapseTo(q), y.reOrderVisibleIndex(), Le();
8529
8529
  }
8530
8530
  function wt(q) {
8531
- g.expandTo(q), g.reOrderVisibleIndex(), Le();
8531
+ y.expandTo(q), y.reOrderVisibleIndex(), Le();
8532
8532
  }
8533
8533
  function ct() {
8534
8534
  const q = B.getSelectionRow();
@@ -8536,19 +8536,19 @@ const Nl = /* @__PURE__ */ ie({
8536
8536
  }
8537
8537
  function zt() {
8538
8538
  const q = ct();
8539
- g.insertNewDataItem(q), f.value = xe(0, w.value + 0 - 1);
8539
+ y.insertNewDataItem(q), f.value = xe(0, C.value + 0 - 1);
8540
8540
  }
8541
8541
  function Ht() {
8542
8542
  const q = ct();
8543
- g.insertNewChildDataItem(q), f.value = xe(0, w.value + 0 - 1);
8543
+ y.insertNewChildDataItem(q), f.value = xe(0, C.value + 0 - 1);
8544
8544
  }
8545
8545
  function At(q, U) {
8546
8546
  const fe = f.value.find((Se) => Se.raw[l.value] === U), ye = fe ? fe.dataIndex - 1 : -1;
8547
- g.insertNewChildDataItems(q, ye);
8547
+ y.insertNewChildDataItems(q, ye);
8548
8548
  }
8549
8549
  function Vt() {
8550
- const q = ct(), U = M.getNextSelectableHierarchyItemId(q);
8551
- g.removeHierarchyDataItem(q), f.value = xe(0, w.value + 0 - 1), U && B.selectItemById(U);
8550
+ const q = ct(), U = x.getNextSelectableHierarchyItemId(q);
8551
+ y.removeHierarchyDataItem(q), f.value = xe(0, C.value + 0 - 1), U && B.selectItemById(U);
8552
8552
  }
8553
8553
  function kt(q) {
8554
8554
  te.onEditingRow(q);
@@ -8560,13 +8560,13 @@ const Nl = /* @__PURE__ */ ie({
8560
8560
  te.cancelEditingRow(q);
8561
8561
  }
8562
8562
  function H(q) {
8563
- q && (i.value = q, z(i), X(i.value), ve(g, ee), Ee());
8563
+ q && (i.value = q, z(i), X(i.value), ve(y, ee), Ee());
8564
8564
  }
8565
8565
  ne(() => e.columns, (q) => {
8566
8566
  H(q);
8567
8567
  });
8568
- function V(q, U) {
8569
- q && (g.load(q), g.reOrderVisibleIndex(), U != null && U.keepScrollPosition ? ce.scrollTo(ce.offsetY.value) : Le());
8568
+ function A(q, U) {
8569
+ q && (y.load(q), y.reOrderVisibleIndex(), U != null && U.keepScrollPosition ? ce.scrollTo(ce.offsetY.value) : Le());
8570
8570
  }
8571
8571
  function _(q) {
8572
8572
  B.selectItemById(q);
@@ -8589,7 +8589,7 @@ const Nl = /* @__PURE__ */ ie({
8589
8589
  }
8590
8590
  const Me = j(() => !f.value || !f.value.length), {
8591
8591
  renderEmpty: de
8592
- } = go(e, t);
8592
+ } = ho(e, t);
8593
8593
  function Be() {
8594
8594
  return B.getSelectionRow();
8595
8595
  }
@@ -8600,7 +8600,7 @@ const Nl = /* @__PURE__ */ ie({
8600
8600
  return B.currentSelectedDataId.value;
8601
8601
  }
8602
8602
  function dt(q, U, fe) {
8603
- const ye = T.value.find((Se) => Se[l.value] === q);
8603
+ const ye = M.value.find((Se) => Se[l.value] === q);
8604
8604
  if (ye) {
8605
8605
  if (Object.keys(ye).forEach((pe) => {
8606
8606
  Object.prototype.hasOwnProperty.call(U, pe) && (ye[pe] = U[pe]);
@@ -8626,15 +8626,15 @@ const Nl = /* @__PURE__ */ ie({
8626
8626
  } = fe;
8627
8627
  pe && !Pe(U[pe]) && (Se.collapse = U[pe]), Je && !Pe(U[Je]) && (Se.checked = U[Je]), Xe && !Pe(U[Xe]) && (Se.disabled = U[Xe]), Qe && !Pe(U[Qe]) && (Se.visible = U[Qe]);
8628
8628
  }
8629
- f.value = [...f.value.slice(0, ln), Se, ...f.value.slice(ln + 1)], g.updateSummary();
8629
+ f.value = [...f.value.slice(0, ln), Se, ...f.value.slice(ln + 1)], y.updateSummary();
8630
8630
  }
8631
8631
  }
8632
8632
  }
8633
8633
  function ft(q) {
8634
- return Object.prototype.hasOwnProperty.call(q, "raw") ? g.hasRealChildren(q.raw) : g.hasRealChildren(q);
8634
+ return Object.prototype.hasOwnProperty.call(q, "raw") ? y.hasRealChildren(q.raw) : y.hasRealChildren(q);
8635
8635
  }
8636
8636
  function pt(q) {
8637
- const U = g.dataView.value.find((fe) => fe[l.value] === q);
8637
+ const U = y.dataView.value.find((fe) => fe[l.value] === q);
8638
8638
  return U ? U[D.value] : "";
8639
8639
  }
8640
8640
  function ia() {
@@ -8651,7 +8651,7 @@ const Nl = /* @__PURE__ */ ie({
8651
8651
  fe && ue.selectRow(fe);
8652
8652
  }
8653
8653
  function sa() {
8654
- B.keepSelectingOnPaging.value || we(), g.updateVisibleDataSummary(f.value);
8654
+ B.keepSelectingOnPaging.value || we(), y.updateVisibleDataSummary(f.value);
8655
8655
  }
8656
8656
  t.expose({
8657
8657
  activeRowById: K,
@@ -8665,7 +8665,7 @@ const Nl = /* @__PURE__ */ ie({
8665
8665
  acceptDataItem: Wt,
8666
8666
  cancelDataItem: E,
8667
8667
  updateColumns: H,
8668
- updateDataSource: V,
8668
+ updateDataSource: A,
8669
8669
  selectItemById: _,
8670
8670
  selectItemByIds: Fe,
8671
8671
  getSelectedItems: be,
@@ -8686,10 +8686,10 @@ const Nl = /* @__PURE__ */ ie({
8686
8686
  const q = {};
8687
8687
  return ce.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), ce.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
8688
8688
  }), ca = j(() => ({
8689
- ...A.value,
8689
+ ...V.value,
8690
8690
  borderRadius: "5px"
8691
8691
  }));
8692
- ho(e, t, g, ce, x, B);
8692
+ go(e, t, y, ce, T, B);
8693
8693
  const da = j(() => ({
8694
8694
  "d-flex": !0,
8695
8695
  "justify-content-between": P.value && N.value,
@@ -8700,23 +8700,23 @@ const Nl = /* @__PURE__ */ ie({
8700
8700
  "align-items-center": !0
8701
8701
  })), {
8702
8702
  renderDataGridSummary: pa
8703
- } = bo(e, g, W);
8704
- return () => k("div", {
8703
+ } = bo(e, y, W);
8704
+ return () => S("div", {
8705
8705
  ref: s,
8706
8706
  class: J.value,
8707
8707
  style: ca.value,
8708
8708
  onWheel: lt
8709
- }, [u.value && Pt.value && ze(), k("div", {
8709
+ }, [u.value && Pt.value && ze(), S("div", {
8710
8710
  ref: u,
8711
8711
  class: le.value,
8712
8712
  onMouseover: () => m.value = !0,
8713
8713
  onMouseleave: () => m.value = !1,
8714
8714
  style: ua.value
8715
- }, [u.value && Nt(f), u.value && se(), u.value && Me.value && de(), u.value && It(), u.value && Rt()]), u.value && pa(), N.value && k("div", {
8715
+ }, [u.value && Nt(f), u.value && se(), u.value && Me.value && de(), u.value && It(), u.value && Rt()]), u.value && pa(), N.value && S("div", {
8716
8716
  class: da.value
8717
- }, [N.value && k("div", {
8717
+ }, [N.value && S("div", {
8718
8718
  class: fa.value
8719
- }, [k("div", null, ["已选:" + R.value.length, yt(" 条")])])]), ut(), F.value && jt()]);
8719
+ }, [S("div", null, ["已选:" + R.value.length, yt(" 条")])])]), ut(), F.value && jt()]);
8720
8720
  }
8721
8721
  });
8722
8722
  xn(Nl);
@@ -9106,7 +9106,7 @@ const cs = "https://json-schema.org/draft/2020-12/schema", ds = "https://farris-
9106
9106
  }, vs = [
9107
9107
  "id",
9108
9108
  "type"
9109
- ], gs = {
9109
+ ], hs = {
9110
9110
  $schema: cs,
9111
9111
  $id: ds,
9112
9112
  title: fs,
@@ -9114,7 +9114,7 @@ const cs = "https://json-schema.org/draft/2020-12/schema", ds = "https://farris-
9114
9114
  type: ms,
9115
9115
  properties: ys,
9116
9116
  required: vs
9117
- }, hs = {
9117
+ }, gs = {
9118
9118
  initialState: {
9119
9119
  type: Object,
9120
9120
  default: {
@@ -9125,7 +9125,7 @@ const cs = "https://json-schema.org/draft/2020-12/schema", ds = "https://farris-
9125
9125
  }
9126
9126
  }
9127
9127
  };
9128
- Qt(hs, gs, hl, Kl);
9128
+ Qt(gs, hs, gl, Kl);
9129
9129
  const bs = {
9130
9130
  width: { Type: Number, default: 400 },
9131
9131
  type: { Type: String, default: "info" },
@@ -9189,7 +9189,7 @@ function Fs(e, t, n, a) {
9189
9189
  l.value = c.length;
9190
9190
  }
9191
9191
  }
9192
- return () => k(tt, null, [k("textarea", {
9192
+ return () => S(tt, null, [S("textarea", {
9193
9193
  title: "promptMessage",
9194
9194
  name: "promptMessage",
9195
9195
  class: "form-control",
@@ -9197,7 +9197,7 @@ function Fs(e, t, n, a) {
9197
9197
  rows: "4",
9198
9198
  maxlength: i.value,
9199
9199
  onInput: (d) => p(d)
9200
- }, [s.value]), k("span", {
9200
+ }, [s.value]), S("span", {
9201
9201
  class: "textarea-wordcount",
9202
9202
  title: r.value,
9203
9203
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
@@ -9246,23 +9246,23 @@ function Bs(e, t) {
9246
9246
  if (f == null)
9247
9247
  return 0;
9248
9248
  let m = 0;
9249
- for (let h = 0; h < f.length; h++) {
9250
- const y = f.charCodeAt(h);
9251
- y >= 0 && y <= 128 ? m++ : m = m + 2;
9249
+ for (let g = 0; g < f.length; g++) {
9250
+ const v = f.charCodeAt(g);
9251
+ v >= 0 && v <= 128 ? m++ : m = m + 2;
9252
9252
  }
9253
9253
  return m;
9254
9254
  }
9255
9255
  function a(f, m) {
9256
9256
  if (f !== "" && f !== void 0 && f !== null) {
9257
9257
  f = "" + f;
9258
- const h = f.length;
9259
- let y = "", C = 0;
9260
- for (let S = 0; S < h; S++) {
9261
- const D = f.charAt(S);
9262
- if (C++, encodeURI(D).length > 4 && C++, y = y.concat(D), C >= m)
9263
- return y = y.concat("..."), y;
9258
+ const g = f.length;
9259
+ let v = "", w = 0;
9260
+ for (let k = 0; k < g; k++) {
9261
+ const D = f.charAt(k);
9262
+ if (w++, encodeURI(D).length > 4 && w++, v = v.concat(D), w >= m)
9263
+ return v = v.concat("..."), v;
9264
9264
  }
9265
- if (C < m)
9265
+ if (w < m)
9266
9266
  return f;
9267
9267
  }
9268
9268
  return "";
@@ -9283,31 +9283,31 @@ function Bs(e, t) {
9283
9283
  function c() {
9284
9284
  s.value = !s.value;
9285
9285
  }
9286
- return () => k("div", {
9286
+ return () => S("div", {
9287
9287
  class: "toast-msg-detail"
9288
- }, [o.value && k("div", null, [i.value]), r.value && k("div", {
9288
+ }, [o.value && S("div", null, [i.value]), r.value && S("div", {
9289
9289
  class: "exception_wrap"
9290
- }, [k("div", {
9290
+ }, [S("div", {
9291
9291
  class: "exception_error_msg"
9292
- }, [k("div", {
9292
+ }, [S("div", {
9293
9293
  innerHTML: p.value
9294
- }, null), l.value && k("span", {
9294
+ }, null), l.value && S("span", {
9295
9295
  style: d.value,
9296
9296
  onClick: c
9297
9297
  }, [u.value])])])]);
9298
9298
  }
9299
9299
  function Os(e) {
9300
- return () => k("p", {
9300
+ return () => S("p", {
9301
9301
  class: "toast-msg-detail",
9302
9302
  innerHTML: e.value
9303
9303
  }, null);
9304
9304
  }
9305
9305
  function Ds(e, t, n, a, o) {
9306
9306
  const i = b(e.exceptionInfo), r = j(() => {
9307
- const m = t.value === "question" ? "warning" : t.value, h = {
9307
+ const m = t.value === "question" ? "warning" : t.value, g = {
9308
9308
  "f-icon": !0
9309
- }, y = `f-icon-${m}`;
9310
- return h[y] = !0, h;
9309
+ }, v = `f-icon-${m}`;
9310
+ return g[v] = !0, g;
9311
9311
  }), l = j(() => n.value || i.value && i.value.message), s = j(() => a.value), u = j(() => !!a.value), p = j(() => !!i.value);
9312
9312
  function d() {
9313
9313
  return p.value ? Bs(i, o) : u.value ? Os(s) : () => null;
@@ -9316,13 +9316,13 @@ function Ds(e, t, n, a, o) {
9316
9316
  wordBreak: "keep-all",
9317
9317
  overflowWrap: "break-word"
9318
9318
  } : {});
9319
- return () => k(tt, null, [k("div", {
9319
+ return () => S(tt, null, [S("div", {
9320
9320
  class: "float-left modal-tips-iconwrap"
9321
- }, [k("span", {
9321
+ }, [S("span", {
9322
9322
  class: r.value
9323
- }, null)]), k("div", {
9323
+ }, null)]), S("div", {
9324
9324
  class: "modal-tips-content"
9325
- }, [k("p", {
9325
+ }, [S("p", {
9326
9326
  class: "toast-msg-title",
9327
9327
  innerHTML: l.value,
9328
9328
  style: f.value
@@ -9347,39 +9347,39 @@ function Es(e, t, n, a) {
9347
9347
  }, 700);
9348
9348
  });
9349
9349
  }
9350
- return () => k("span", {
9350
+ return () => S("span", {
9351
9351
  style: "width: 100%;color: #2A87FF;padding-left: 37px;"
9352
- }, [k("span", {
9352
+ }, [S("span", {
9353
9353
  onClick: p,
9354
9354
  style: "cursor: pointer;"
9355
9355
  }, [l.value])]);
9356
9356
  }
9357
9357
  function Ps(e, t, n, a, o) {
9358
- const i = b(e.type), r = b(e.buttons), l = b(e.exceptionInfo), s = b(o.ok || e.okButtonText), u = b(o.cancel || e.cancelButtonText), p = b(e.showCancelButton), d = b(e.showOkButton), c = j(() => !!(r.value && r.value.length)), f = j(() => l.value && l.value.message && l.value.detail), m = j(() => !(r.value && r.value.length) && (d.value || p.value)), h = Es(e, n, a, o);
9358
+ const i = b(e.type), r = b(e.buttons), l = b(e.exceptionInfo), s = b(o.ok || e.okButtonText), u = b(o.cancel || e.cancelButtonText), p = b(e.showCancelButton), d = b(e.showOkButton), c = j(() => !!(r.value && r.value.length)), f = j(() => l.value && l.value.message && l.value.detail), m = j(() => !(r.value && r.value.length) && (d.value || p.value)), g = Es(e, n, a, o);
9359
9359
  s.value === "关闭" ? s.value = o.close : s.value === "知道了" && (s.value = o.exception.roger);
9360
- function y(S) {
9360
+ function v(k) {
9361
9361
  i.value === "question" && t.emit("reject"), t.emit("close");
9362
9362
  }
9363
- function C(S) {
9363
+ function w(k) {
9364
9364
  i.value === "question" && t.emit("accept"), t.emit("close");
9365
9365
  }
9366
- return () => k("div", {
9366
+ return () => S("div", {
9367
9367
  class: "modal-footer"
9368
- }, [f.value && h(), m.value && p.value && k("button", {
9368
+ }, [f.value && g(), m.value && p.value && S("button", {
9369
9369
  type: "button",
9370
9370
  class: "btn btn-secondary btn-lg",
9371
- onClick: y
9372
- }, [u.value]), m.value && d.value && k("button", {
9371
+ onClick: v
9372
+ }, [u.value]), m.value && d.value && S("button", {
9373
9373
  type: "button",
9374
9374
  class: "btn btn-primary btn-lg",
9375
- onClick: C
9376
- }, [s.value]), c.value && r.value.length && r.value.map((S) => k("button", {
9375
+ onClick: w
9376
+ }, [s.value]), c.value && r.value.length && r.value.map((k) => S("button", {
9377
9377
  type: "button",
9378
- onClick: S.handle,
9379
- class: S.class
9380
- }, [S.iconClass && k("span", {
9381
- class: S.iconClass
9382
- }, null), S.text]))]);
9378
+ onClick: k.handle,
9379
+ class: k.class
9380
+ }, [k.iconClass && S("span", {
9381
+ class: k.iconClass
9382
+ }, null), k.text]))]);
9383
9383
  }
9384
9384
  function Ns(e) {
9385
9385
  const { t, locale: n } = bt();
@@ -9413,24 +9413,24 @@ const Tt = /* @__PURE__ */ ie({
9413
9413
  emits: ["accept", "reject", "close"],
9414
9414
  setup(e, t) {
9415
9415
  const n = Ns(e), a = b(e.type), o = b(e.title), i = b(e.detail), r = j(() => {
9416
- const C = {
9416
+ const w = {
9417
9417
  "modal-tips": !0,
9418
9418
  "d-flex": !0,
9419
9419
  "flex-row": !0
9420
- }, S = `messager-type-${a.value}`;
9421
- return C[S] = !0, C;
9420
+ }, k = `messager-type-${a.value}`;
9421
+ return w[k] = !0, w;
9422
9422
  }), l = j(() => {
9423
- const C = {
9423
+ const w = {
9424
9424
  cursor: "default"
9425
9425
  };
9426
- return a.value === "prompt" ? C.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (C.padding = "0.5rem 1.5rem 1rem 1.5rem"), C;
9426
+ return a.value === "prompt" ? w.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (w.padding = "0.5rem 1.5rem 1rem 1.5rem"), w;
9427
9427
  }), s = Ss(), u = xs(e, a, o, i), p = Ts(), {
9428
9428
  feedbackStyle: d,
9429
9429
  feedbackMessage: c
9430
9430
  } = p;
9431
9431
  c.value = n.exception.copySuccess;
9432
9432
  function f() {
9433
- return k("div", {
9433
+ return S("div", {
9434
9434
  style: d.value
9435
9435
  }, [c.value]);
9436
9436
  }
@@ -9442,16 +9442,16 @@ const Tt = /* @__PURE__ */ ie({
9442
9442
  return Ds(e, a, o, i, n);
9443
9443
  }
9444
9444
  }
9445
- const h = m(), y = Ps(e, t, s, p, n);
9446
- return () => k("div", {
9445
+ const g = m(), v = Ps(e, t, s, p, n);
9446
+ return () => S("div", {
9447
9447
  class: "farris-messager"
9448
- }, [!e.exceptionInfo && k("div", {
9448
+ }, [!e.exceptionInfo && S("div", {
9449
9449
  style: "height: 30px;width: 100%;position: absolute;",
9450
9450
  class: "messager-draggable"
9451
- }, null), k("section", {
9451
+ }, null), S("section", {
9452
9452
  class: r.value,
9453
9453
  style: l.value
9454
- }, [h()]), y(), f()]);
9454
+ }, [g()]), v(), f()]);
9455
9455
  }
9456
9456
  }), Oe = class Oe {
9457
9457
  static show(t) {
@@ -9474,7 +9474,7 @@ const Tt = /* @__PURE__ */ ie({
9474
9474
  showMaxButton: !1,
9475
9475
  draggable: !0,
9476
9476
  dragHandle: ".messager-draggable",
9477
- render: () => k(Tt, Ot(n, {
9477
+ render: () => S(Tt, Ot(n, {
9478
9478
  onAccept: r,
9479
9479
  onReject: l,
9480
9480
  onClose: p
@@ -9581,29 +9581,29 @@ function js(e, t, n, a, o) {
9581
9581
  "input-group-append": !0,
9582
9582
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
9583
9583
  })), { judgeCanOpen: s } = aa(e, o), u = j(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = De(na, null), d = b();
9584
- async function c(h) {
9584
+ async function c(g) {
9585
9585
  if (await s() && u.value) {
9586
- const y = !!t.slots.default;
9586
+ const v = !!t.slots.default;
9587
9587
  if (i.value === "Modal") {
9588
- const C = e.modalOptions, S = p == null ? void 0 : p.open({
9589
- ...C,
9588
+ const w = e.modalOptions, k = p == null ? void 0 : p.open({
9589
+ ...w,
9590
9590
  render: () => t.slots.default && t.slots.default()
9591
9591
  });
9592
- d.value = S == null ? void 0 : S.modalRef;
9592
+ d.value = k == null ? void 0 : k.modalRef;
9593
9593
  }
9594
9594
  i.value === "Overlay" && Zr.show({
9595
9595
  // host: buttonEditRef.value,
9596
9596
  host: document.body,
9597
9597
  backgroundColor: "rgba(0,0,0,.15)",
9598
9598
  render: () => t.slots.default && t.slots.default()
9599
- }), y && i.value === "Popup" && a.togglePopup(!0), y && r.value && a.hidePopup(), t.emit("clickButton", { origin: h, value: e.modelValue });
9599
+ }), v && i.value === "Popup" && a.togglePopup(!0), v && r.value && a.hidePopup(), t.emit("clickButton", { origin: g, value: e.modelValue });
9600
9600
  }
9601
9601
  }
9602
- function f(h) {
9603
- t.emit("mouseEnterIcon", h);
9602
+ function f(g) {
9603
+ t.emit("mouseEnterIcon", g);
9604
9604
  }
9605
- function m(h) {
9606
- t.emit("mouseLeaveIcon", h);
9605
+ function m(g) {
9606
+ t.emit("mouseLeaveIcon", g);
9607
9607
  }
9608
9608
  return {
9609
9609
  buttonGroupClass: l,
@@ -9622,8 +9622,8 @@ function Is(e, t, n, a, o, i) {
9622
9622
  p(!!o.value);
9623
9623
  });
9624
9624
  function d(m) {
9625
- const h = !e.readonly && !e.disable && e.editable, y = !e.editable;
9626
- m.stopPropagation(), (h || y) && (s(""), o.value = "", p(!r.value), t.emit("clear"));
9625
+ const g = !e.readonly && !e.disable && e.editable, v = !e.editable;
9626
+ m.stopPropagation(), (g || v) && (s(""), o.value = "", p(!r.value), t.emit("clear"));
9627
9627
  }
9628
9628
  function c(m) {
9629
9629
  if (l.value) {
@@ -9646,13 +9646,13 @@ function Is(e, t, n, a, o, i) {
9646
9646
  };
9647
9647
  }
9648
9648
  function Rs(e, t, n, a, o) {
9649
- const i = j(() => e.popupOnInput), r = j(() => e.popupOnFocus), { shouldPopupContent: l, closeAllPopover: s } = o, u = b(!1), p = j(() => e.enableTitle ? n.value : ""), d = j(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), c = j(() => e.readonly || !e.editable), f = b(!1), m = j(() => !e.disable && f.value), h = j(() => ({
9649
+ const i = j(() => e.popupOnInput), r = j(() => e.popupOnFocus), { shouldPopupContent: l, closeAllPopover: s } = o, u = b(!1), p = j(() => e.enableTitle ? n.value : ""), d = j(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), c = j(() => e.readonly || !e.editable), f = b(!1), m = j(() => !e.disable && f.value), g = j(() => ({
9650
9650
  "text-left": e.textAlign === "left",
9651
9651
  "text-center": e.textAlign === "center",
9652
9652
  "text-right": e.textAlign === "right",
9653
9653
  "form-control": !0,
9654
9654
  "f-utils-fill": !0
9655
- })), y = j(() => ({
9655
+ })), v = j(() => ({
9656
9656
  "input-group": !0,
9657
9657
  "f-state-disabled": e.disable,
9658
9658
  "f-state-editable": e.editable && !e.disable && !e.readonly,
@@ -9660,62 +9660,62 @@ function Rs(e, t, n, a, o) {
9660
9660
  "f-state-focus": m.value,
9661
9661
  "input-group--has-clear": e.enableClear && u.value
9662
9662
  }));
9663
- function C(M, F = !0) {
9664
- n.value = M, F && (t.emit("change", M), t.emit("update:modelValue", M));
9663
+ function w(x, F = !0) {
9664
+ n.value = x, F && (t.emit("change", x), t.emit("update:modelValue", x));
9665
9665
  }
9666
- function S(M) {
9667
- l.value = !1, C(M, !0);
9666
+ function k(x) {
9667
+ l.value = !1, w(x, !0);
9668
9668
  }
9669
9669
  ne(
9670
9670
  () => e.modelValue,
9671
- (M) => {
9672
- n.value = M;
9671
+ (x) => {
9672
+ n.value = x;
9673
9673
  }
9674
9674
  );
9675
- function D(M) {
9676
- f.value = !1, t.emit("blur", M), M.stopPropagation();
9675
+ function D(x) {
9676
+ f.value = !1, t.emit("blur", x), x.stopPropagation();
9677
9677
  }
9678
- function O(M) {
9679
- t.emit("click", M), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
9678
+ function O(x) {
9679
+ t.emit("click", x), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
9680
9680
  }
9681
- function v(M) {
9682
- !e.disable && !e.readonly && (f.value = !0, c.value || (t.emit("focus", M), r.value && !l.value && o.popup()));
9681
+ function h(x) {
9682
+ !e.disable && !e.readonly && (f.value = !0, c.value || (t.emit("focus", x), r.value && !l.value && o.popup()));
9683
9683
  }
9684
- function g(M) {
9685
- t.emit("input", M);
9686
- const F = M.target.value;
9687
- a.value = F, n.value !== F && C(F, e.updateOn === "change"), i.value && !l.value && o.popup();
9684
+ function y(x) {
9685
+ t.emit("input", x);
9686
+ const F = x.target.value;
9687
+ a.value = F, n.value !== F && w(F, e.updateOn === "change"), i.value && !l.value && o.popup();
9688
9688
  }
9689
- function T(M) {
9690
- M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
9689
+ function M(x) {
9690
+ x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
9691
9691
  }
9692
- function B(M) {
9693
- t.emit("keydown", M);
9692
+ function B(x) {
9693
+ t.emit("keydown", x);
9694
9694
  }
9695
- function N(M) {
9696
- M.key === "Enter" && (i.value || r.value) && o.hidePopup(), t.emit("keyup", M);
9695
+ function N(x) {
9696
+ x.key === "Enter" && (i.value || r.value) && o.hidePopup(), t.emit("keyup", x);
9697
9697
  }
9698
- function R(M) {
9699
- const F = M.target.value;
9700
- M.stopPropagation(), C(F);
9698
+ function R(x) {
9699
+ const F = x.target.value;
9700
+ x.stopPropagation(), w(F);
9701
9701
  }
9702
9702
  return {
9703
9703
  hasFocusedTextBox: m,
9704
9704
  isTextBoxReadonly: c,
9705
- textBoxClass: h,
9705
+ textBoxClass: g,
9706
9706
  textBoxPlaceholder: d,
9707
9707
  textBoxTitle: p,
9708
- inputGroupClass: y,
9708
+ inputGroupClass: v,
9709
9709
  hasClearClass: u,
9710
- changeTextBoxValue: C,
9711
- commitValue: S,
9710
+ changeTextBoxValue: w,
9711
+ commitValue: k,
9712
9712
  onBlurTextBox: D,
9713
9713
  onClickTextBox: O,
9714
- onFocusTextBox: v,
9715
- onInput: g,
9714
+ onFocusTextBox: h,
9715
+ onInput: y,
9716
9716
  onKeyDownTextBox: B,
9717
9717
  onKeyUpTextBox: N,
9718
- onMouseDownTextBox: T,
9718
+ onMouseDownTextBox: M,
9719
9719
  onTextBoxValueChange: R
9720
9720
  };
9721
9721
  }
@@ -9729,8 +9729,8 @@ function Ls(e, t, n, a) {
9729
9729
  if (window[Ze]) {
9730
9730
  const f = window[Ze];
9731
9731
  document.querySelectorAll(".f-button-edit,.v-popover").forEach((m) => {
9732
- const h = f.get(m);
9733
- h && m !== n.value && !n.value.closest(".popover-fitcontent") && h.hide();
9732
+ const g = f.get(m);
9733
+ g && m !== n.value && !n.value.closest(".popover-fitcontent") && g.hide();
9734
9734
  });
9735
9735
  }
9736
9736
  }
@@ -9775,34 +9775,30 @@ function $s(e, t, n) {
9775
9775
  onKeyDownTextBox: c,
9776
9776
  onKeyUpTextBox: f,
9777
9777
  onMouseDownTextBox: m,
9778
- onTextBoxValueChange: h
9779
- } = n, y = b(e.id), {
9780
- uuid: C
9781
- } = Ta(), S = j(() => ({
9782
- "border-top-right-radius": "6px",
9783
- "border-bottom-right-radius": "6px"
9784
- }));
9785
- ge(() => {
9786
- var T, B;
9787
- e.selectOnCreated && ((T = a.value) == null || T.select()), e.focusOnCreated && ((B = a.value) == null || B.focus({
9778
+ onTextBoxValueChange: g
9779
+ } = n, v = b(e.id), {
9780
+ uuid: w
9781
+ } = Ta();
9782
+ he(() => {
9783
+ var y, M;
9784
+ e.selectOnCreated && ((y = a.value) == null || y.select()), e.focusOnCreated && ((M = a.value) == null || M.focus({
9788
9785
  preventScroll: !0
9789
- })), y.value || (y.value = "button-edit_" + C(8)), y.value = y.value + "-textbox";
9786
+ })), v.value || (v.value = "button-edit_" + w(8)), v.value = v.value + "-textbox";
9790
9787
  });
9791
- const D = b(!1), O = (T) => {
9792
- T.preventDefault(), D.value = !0;
9793
- }, v = (T) => {
9794
- T.preventDefault(), D.value = !1, d(T);
9788
+ const k = b(!1), D = (y) => {
9789
+ y.preventDefault(), k.value = !0;
9790
+ }, O = (y) => {
9791
+ y.preventDefault(), k.value = !1, d(y);
9795
9792
  };
9796
- function g(T) {
9797
- D.value || d(T);
9793
+ function h(y) {
9794
+ k.value || d(y);
9798
9795
  }
9799
- return () => k("input", {
9796
+ return () => S("input", {
9800
9797
  id: e.id ? e.id + "-textbox" : void 0,
9801
9798
  ref: a,
9802
9799
  name: "input-group-value",
9803
9800
  autocomplete: e.autoComplete ? "on" : "off",
9804
9801
  class: i.value,
9805
- style: S.value,
9806
9802
  disabled: e.disable,
9807
9803
  maxlength: e.maxLength,
9808
9804
  minlength: e.minLength,
@@ -9813,15 +9809,15 @@ function $s(e, t, n) {
9813
9809
  type: e.inputType,
9814
9810
  value: t.value,
9815
9811
  onBlur: s,
9816
- onChange: h,
9812
+ onChange: g,
9817
9813
  onClick: u,
9818
9814
  onFocus: p,
9819
- onInput: g,
9815
+ onInput: h,
9820
9816
  onKeydown: c,
9821
9817
  onKeyup: f,
9822
9818
  onMousedown: m,
9823
- onCompositionend: v,
9824
- onCompositionstart: O
9819
+ onCompositionend: O,
9820
+ onCompositionstart: D
9825
9821
  }, null);
9826
9822
  }
9827
9823
  function zs(e, t, n) {
@@ -9836,19 +9832,19 @@ function zs(e, t, n) {
9836
9832
  selectable: !0
9837
9833
  })) : []);
9838
9834
  function d(m) {
9839
- i(m.map((h) => h.name).join(a.value), !0);
9835
+ i(m.map((g) => g.name).join(a.value), !0);
9840
9836
  }
9841
9837
  ne(() => e.separator, (m) => {
9842
9838
  a.value = m;
9843
9839
  });
9844
9840
  const c = b(!e.disable && !e.readonly);
9845
- ne([() => e.disable, () => e.readonly], ([m, h], [y, C]) => {
9846
- c.value = !m && !h;
9841
+ ne([() => e.disable, () => e.readonly], ([m, g], [v, w]) => {
9842
+ c.value = !m && !g;
9847
9843
  });
9848
9844
  function f(m) {
9849
9845
  s(m);
9850
9846
  }
9851
- return () => k(ja, {
9847
+ return () => S(ja, {
9852
9848
  tabindex: e.tabIndex,
9853
9849
  onFocus: r,
9854
9850
  onBlur: l,
@@ -9879,21 +9875,21 @@ function Hs(e, t, n, a) {
9879
9875
  t.emit("beforeClearValue");
9880
9876
  };
9881
9877
  return {
9882
- renderButtonGroup: () => k("div", {
9878
+ renderButtonGroup: () => S("div", {
9883
9879
  id: e.id ? `${e.id}-button-group` : void 0,
9884
9880
  class: o.value
9885
- }, [s.value && wn(k("span", {
9881
+ }, [s.value && wn(S("span", {
9886
9882
  class: "input-group-text input-group-clear",
9887
9883
  onClick: p,
9888
9884
  onMousedown: f
9889
- }, [k("i", {
9885
+ }, [S("i", {
9890
9886
  class: "f-icon modal_close"
9891
- }, null)]), [[wa, u.value]]), t.slots.buttonContent ? k("span", {
9887
+ }, null)]), [[wa, u.value]]), t.slots.buttonContent ? S("span", {
9892
9888
  class: "input-group-text input-group-append-button",
9893
9889
  onClick: c,
9894
9890
  onMouseenter: r,
9895
9891
  onMouseleave: l
9896
- }, [t.slots.buttonContent()]) : e.buttonContent ? k("span", {
9892
+ }, [t.slots.buttonContent()]) : e.buttonContent ? S("span", {
9897
9893
  class: "input-group-text input-group-append-button",
9898
9894
  innerHTML: e.buttonContent,
9899
9895
  ref: d,
@@ -9909,7 +9905,7 @@ function As(e, t, n) {
9909
9905
  hidePopup: o,
9910
9906
  popoverRef: i
9911
9907
  } = n;
9912
- return () => k(Co, {
9908
+ return () => S(Co, {
9913
9909
  id: `${e.id}-popover`,
9914
9910
  ref: i,
9915
9911
  placement: e.placement,
@@ -9942,50 +9938,47 @@ const Vs = /* @__PURE__ */ ie({
9942
9938
  } = i, p = js(e, t, n, i, o), d = b(""), c = Rs(e, t, o, d, i), {
9943
9939
  hasFocusedTextBox: f,
9944
9940
  commitValue: m,
9945
- inputGroupClass: h
9946
- } = c, y = Is(e, t, o, f, d, c), {
9947
- onMouseEnterTextBox: C,
9948
- onMouseLeaveTextBox: S
9949
- } = y, D = j(() => {
9950
- const x = {
9941
+ inputGroupClass: g
9942
+ } = c, v = Is(e, t, o, f, d, c), {
9943
+ onMouseEnterTextBox: w,
9944
+ onMouseLeaveTextBox: k
9945
+ } = v, D = j(() => {
9946
+ const C = {
9951
9947
  "f-button-edit": !0,
9952
9948
  "f-cmp-inputgroup": !0,
9953
9949
  "f-button-edit-nowrap": !e.wrapText
9954
9950
  };
9955
- return a.value && a.value.split(" ").reduce((P, A) => (P[A] = !0, P), x), x;
9951
+ return a.value && a.value.split(" ").reduce((T, P) => (T[P] = !0, T), C), C;
9956
9952
  }), O = j(() => ({
9957
9953
  overflow: e.wrapText ? "hidden" : ""
9958
- })), v = j(() => ({
9959
- paddingLeft: "3px",
9960
- backgroundColor: "#fff"
9961
9954
  }));
9962
- function g() {
9955
+ function h() {
9963
9956
  if (!e.multiSelect || e.inputType !== "tag" || !n.value)
9964
9957
  return 0;
9965
- let x = 0;
9966
- const P = Array.from(n.value.querySelectorAll(".farris-tag-item"));
9967
- return P && P.length && (x = P.map((A) => A.offsetTop).filter((A) => A > 20).length), x;
9958
+ let C = 0;
9959
+ const T = Array.from(n.value.querySelectorAll(".farris-tag-item"));
9960
+ return T && T.length && (C = T.map((P) => P.offsetTop).filter((P) => P > 20).length), C;
9968
9961
  }
9969
- const T = b(g());
9962
+ const y = b(h());
9970
9963
  ka(() => {
9971
- T.value = g();
9964
+ y.value = h();
9972
9965
  });
9973
- function B() {
9974
- return e.multiSelect && e.inputType === "tag" ? () => k(tt, null, [zs(e, o, c)(), !!T.value && k("div", {
9966
+ function M() {
9967
+ return e.multiSelect && e.inputType === "tag" ? () => S(tt, null, [zs(e, o, c)(), !!y.value && S("div", {
9975
9968
  class: "d-flex flex-row mr-2 more-tags",
9976
9969
  "more-tags": !0
9977
- }, [k("span", {
9970
+ }, [S("span", {
9978
9971
  class: "multi--more-text"
9979
- }, [yt("+"), T.value])])]) : $s(e, o, c);
9972
+ }, [yt("+"), y.value])])]) : $s(e, o, c);
9980
9973
  }
9981
- let N = B();
9974
+ let B = M();
9982
9975
  ne([() => e.multiSelect, () => e.inputType], () => {
9983
- N = B();
9976
+ B = M();
9984
9977
  });
9985
9978
  const {
9986
- renderButtonGroup: R,
9987
- buttonHandleElement: M
9988
- } = Hs(e, t, p, y), F = As(e, t, i), w = {
9979
+ renderButtonGroup: N,
9980
+ buttonHandleElement: R
9981
+ } = Hs(e, t, p, v), x = As(e, t, i), F = {
9989
9982
  displayText: d,
9990
9983
  commitValue: m,
9991
9984
  elementRef: n,
@@ -9995,34 +9988,33 @@ const Vs = /* @__PURE__ */ ie({
9995
9988
  shouldPopupContent: r,
9996
9989
  togglePopup: u,
9997
9990
  openDialog: () => {
9998
- M.value && e.buttonBehavior === "Modal" && M.value.click();
9991
+ R.value && e.buttonBehavior === "Modal" && R.value.click();
9999
9992
  },
10000
9993
  getModal: () => {
10001
- var x;
10002
- return e.buttonBehavior === "Modal" ? (x = p.modalRef.value) == null ? void 0 : x.value : null;
9994
+ var C;
9995
+ return e.buttonBehavior === "Modal" ? (C = p.modalRef.value) == null ? void 0 : C.value : null;
10003
9996
  }
10004
9997
  };
10005
- return ge(() => {
10006
- n.value.componentInstance = w, window.onresize = () => {
9998
+ return he(() => {
9999
+ n.value.componentInstance = F, window.onresize = () => {
10007
10000
  document.body.click();
10008
10001
  };
10009
10002
  }), Cn(() => {
10010
- var x;
10011
- window.onresize = null, (x = window[Ze]) == null || x.delete(n.value);
10012
- }), t.expose(w), () => {
10013
- var x, P;
10014
- return k(tt, null, [k("div", Ot(t.attrs, {
10003
+ var C;
10004
+ window.onresize = null, (C = window[Ze]) == null || C.delete(n.value);
10005
+ }), t.expose(F), () => {
10006
+ var C, T;
10007
+ return S(tt, null, [S("div", Ot(t.attrs, {
10015
10008
  ref: n,
10016
10009
  class: D.value,
10017
10010
  id: e.id ? e.id : void 0,
10018
10011
  style: O.value
10019
- }), [k("div", {
10012
+ }), [S("div", {
10020
10013
  id: e.id ? `${e.id}-input-group` : void 0,
10021
- class: h.value,
10022
- style: v.value,
10023
- onMouseenter: C,
10024
- onMouseleave: S
10025
- }, [(P = (x = t.slots).precontent) == null ? void 0 : P.call(x), N(), R()])]), r.value && F()]);
10014
+ class: g.value,
10015
+ onMouseenter: w,
10016
+ onMouseleave: k
10017
+ }, [(T = (C = t.slots).precontent) == null ? void 0 : T.call(C), B(), N()])]), r.value && x()]);
10026
10018
  };
10027
10019
  }
10028
10020
  }), Ws = "https://json-schema.org/draft/2020-12/schema", qs = "https://farris-design.gitee.io/expression-editor.schema.json", Gs = "expression-editor", _s = "A Farris Expression Editor Component", Ys = "object", Us = {
@@ -10237,35 +10229,35 @@ const Vs = /* @__PURE__ */ ie({
10237
10229
  const n = De(ta), a = De("FLoadingService"), o = '<i class="f-icon f-icon-lookup"></i>', i = b(e.modelValue), r = b(e.entities), l = b(e.variables), s = b(), u = b(e.validateMessage || ""), p = b("info");
10238
10230
  async function d() {
10239
10231
  const {
10240
- value: h,
10241
- message: y,
10242
- messageType: C
10232
+ value: g,
10233
+ message: v,
10234
+ messageType: w
10243
10235
  } = s.value.getExpressionValue();
10244
- if (u.value = y, p.value = C, e.beforeSubmit && typeof e.beforeSubmit == "function") {
10245
- const S = await e.beforeSubmit({
10236
+ if (u.value = v, p.value = w, e.beforeSubmit && typeof e.beforeSubmit == "function") {
10237
+ const k = await e.beforeSubmit({
10246
10238
  notifyService: n,
10247
- expressionValue: h
10239
+ expressionValue: g
10248
10240
  });
10249
- if (typeof S == "boolean" && !S)
10241
+ if (typeof k == "boolean" && !k)
10250
10242
  return !1;
10251
- if (typeof S == "object") {
10243
+ if (typeof k == "object") {
10252
10244
  const {
10253
10245
  canClose: D,
10254
10246
  message: O
10255
- } = S;
10247
+ } = k;
10256
10248
  if (!D)
10257
10249
  return O && (n == null || n.error({
10258
10250
  message: O
10259
10251
  })), !1;
10260
10252
  }
10261
10253
  }
10262
- if (t.emit("update:modelValue", h), i.value = h, e.onSubmitModal) {
10263
- const S = {
10264
- expression: h,
10265
- message: y
10254
+ if (t.emit("update:modelValue", g), i.value = g, e.onSubmitModal) {
10255
+ const k = {
10256
+ expression: g,
10257
+ message: v
10266
10258
  };
10267
- e.showMessageType && (S.messageType = p.value);
10268
- const D = e.onSubmitModal(S);
10259
+ e.showMessageType && (k.messageType = p.value);
10260
+ const D = e.onSubmitModal(k);
10269
10261
  e.onExpressionChanged && e.onExpressionChanged(D);
10270
10262
  }
10271
10263
  return !0;
@@ -10285,31 +10277,31 @@ const Vs = /* @__PURE__ */ ie({
10285
10277
  name: "reset",
10286
10278
  text: "清空",
10287
10279
  class: "btn btn-secondary mr-2",
10288
- handle: (h) => {
10289
- var y;
10290
- return (y = s.value) == null || y.resetExpression(), !1;
10280
+ handle: (g) => {
10281
+ var v;
10282
+ return (v = s.value) == null || v.resetExpression(), !1;
10291
10283
  }
10292
10284
  }, {
10293
10285
  name: "cancel",
10294
10286
  text: "取消",
10295
10287
  class: "btn btn-secondary",
10296
- handle: (h) => !0
10288
+ handle: (g) => !0
10297
10289
  }, {
10298
10290
  name: "accept",
10299
10291
  text: "确定",
10300
10292
  class: "btn btn-primary",
10301
- handle: async (h) => await d()
10293
+ handle: async (g) => await d()
10302
10294
  }]
10303
10295
  };
10304
10296
  async function f() {
10305
10297
  if (e.beforeOpen)
10306
10298
  try {
10307
10299
  a == null || a.show();
10308
- const h = await e.beforeOpen({
10300
+ const g = await e.beforeOpen({
10309
10301
  notifyService: n
10310
10302
  });
10311
- if (h)
10312
- return r.value = h.entities || {}, l.value = h.variables || {}, u.value = h.message || "", p.value = h.messageType || "info", a == null || a.clearAll(), !0;
10303
+ if (g)
10304
+ return r.value = g.entities || {}, l.value = g.variables || {}, u.value = g.message || "", p.value = g.messageType || "info", a == null || a.clearAll(), !0;
10313
10305
  } catch {
10314
10306
  return n == null || n.error({
10315
10307
  message: "获取数据失败!"
@@ -10321,20 +10313,20 @@ const Vs = /* @__PURE__ */ ie({
10321
10313
  }
10322
10314
  function m() {
10323
10315
  if (t.emit("update:modelValue", ""), i.value = "", e.onSubmitModal) {
10324
- const h = e.onSubmitModal({
10316
+ const g = e.onSubmitModal({
10325
10317
  expression: "",
10326
10318
  message: ""
10327
10319
  });
10328
- e.onExpressionChanged && e.onExpressionChanged(h);
10320
+ e.onExpressionChanged && e.onExpressionChanged(g);
10329
10321
  }
10330
10322
  }
10331
- return ne(() => e.modelValue, (h) => {
10332
- i.value = h;
10333
- }), () => k(Vs, {
10323
+ return ne(() => e.modelValue, (g) => {
10324
+ i.value = g;
10325
+ }), () => S(Vs, {
10334
10326
  editable: !1,
10335
10327
  enableTitle: !0,
10336
10328
  modelValue: i.value,
10337
- "onUpdate:modelValue": (h) => i.value = h,
10329
+ "onUpdate:modelValue": (g) => i.value = g,
10338
10330
  disabled: e.disabled,
10339
10331
  readonly: e.readonly,
10340
10332
  inputType: "text",
@@ -10345,15 +10337,15 @@ const Vs = /* @__PURE__ */ ie({
10345
10337
  beforeOpen: f,
10346
10338
  onClear: m
10347
10339
  }, {
10348
- default: () => [k("div", {
10340
+ default: () => [S("div", {
10349
10341
  class: "h-100 d-flex flex-column"
10350
- }, [k(_r, {
10342
+ }, [S(_r, {
10351
10343
  ref: s,
10352
10344
  validateMessage: u.value,
10353
10345
  showMessageType: e.showMessageType,
10354
10346
  messageType: p.value,
10355
10347
  modelValue: i.value,
10356
- "onUpdate:modelValue": (h) => i.value = h,
10348
+ "onUpdate:modelValue": (g) => i.value = g,
10357
10349
  esprimaPath: e.esprimaPath,
10358
10350
  showMessage: e.showMessage,
10359
10351
  entities: r.value,