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

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 (194) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +28 -29
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +521 -517
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +163 -157
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +10 -10
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1122 -1121
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +190 -190
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +2693 -2693
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +1604 -1601
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.esm.js +1082 -1079
  34. package/components/designer-canvas/index.umd.cjs +1 -1
  35. package/components/discussion-editor/index.esm.js +973 -1040
  36. package/components/discussion-editor/index.umd.cjs +6 -6
  37. package/components/dropdown/index.esm.js +335 -330
  38. package/components/dropdown/index.umd.cjs +2 -2
  39. package/components/dynamic-form/index.esm.js +8 -8
  40. package/components/dynamic-form/index.umd.cjs +1 -1
  41. package/components/dynamic-resolver/index.esm.js +6 -6
  42. package/components/dynamic-resolver/index.umd.cjs +1 -1
  43. package/components/dynamic-view/index.esm.js +344 -344
  44. package/components/dynamic-view/index.umd.cjs +1 -1
  45. package/components/events-editor/index.esm.js +8 -8
  46. package/components/events-editor/index.umd.cjs +3 -3
  47. package/components/expression-editor/index.esm.js +1470 -1460
  48. package/components/expression-editor/index.umd.cjs +3 -3
  49. package/components/fieldset/index.esm.js +55 -55
  50. package/components/fieldset/index.umd.cjs +1 -1
  51. package/components/filter-bar/index.esm.js +853 -843
  52. package/components/filter-bar/index.umd.cjs +1 -1
  53. package/components/filter-condition-editor/index.esm.js +922 -911
  54. package/components/filter-condition-editor/index.umd.cjs +3 -3
  55. package/components/flow-canvas/index.esm.js +12 -12
  56. package/components/flow-canvas/index.umd.cjs +1 -1
  57. package/components/html-template/index.esm.js +164 -164
  58. package/components/html-template/index.umd.cjs +1 -1
  59. package/components/image-cropper/index.esm.js +198 -198
  60. package/components/image-cropper/index.umd.cjs +1 -1
  61. package/components/json-editor/index.esm.js +64 -64
  62. package/components/json-editor/index.umd.cjs +1 -1
  63. package/components/language-textbox/index.esm.js +140 -140
  64. package/components/language-textbox/index.umd.cjs +1 -1
  65. package/components/layout/index.esm.js +111 -111
  66. package/components/layout/index.umd.cjs +1 -1
  67. package/components/list-nav/index.esm.js +90 -90
  68. package/components/list-nav/index.umd.cjs +1 -1
  69. package/components/list-view/index.esm.js +104 -108
  70. package/components/list-view/index.umd.cjs +3 -3
  71. package/components/locale/index.esm.js +833 -901
  72. package/components/locale/index.umd.cjs +6 -6
  73. package/components/lookup/index.esm.js +1352 -1351
  74. package/components/lookup/index.umd.cjs +1 -1
  75. package/components/mapping-editor/index.esm.js +1311 -1307
  76. package/components/mapping-editor/index.umd.cjs +1 -1
  77. package/components/menu-lookup/index.esm.js +1059 -1127
  78. package/components/menu-lookup/index.umd.cjs +6 -6
  79. package/components/message-box/index.esm.js +7 -7
  80. package/components/message-box/index.umd.cjs +1 -1
  81. package/components/modal/index.esm.js +9 -9
  82. package/components/modal/index.umd.cjs +1 -1
  83. package/components/nav/index.esm.js +106 -106
  84. package/components/nav/index.umd.cjs +1 -1
  85. package/components/number-range/index.esm.js +326 -326
  86. package/components/number-range/index.umd.cjs +1 -1
  87. package/components/number-spinner/index.esm.js +168 -167
  88. package/components/number-spinner/index.umd.cjs +1 -1
  89. package/components/order/index.esm.js +739 -737
  90. package/components/order/index.umd.cjs +4 -4
  91. package/components/page-footer/index.esm.js +94 -94
  92. package/components/page-footer/index.umd.cjs +1 -1
  93. package/components/page-header/index.esm.js +942 -939
  94. package/components/page-header/index.umd.cjs +1 -1
  95. package/components/pagination/index.esm.js +82 -82
  96. package/components/pagination/index.umd.cjs +1 -1
  97. package/components/popover/index.esm.js +1 -1
  98. package/components/popover/index.umd.cjs +1 -1
  99. package/components/progress/index.esm.js +113 -113
  100. package/components/progress/index.umd.cjs +2 -2
  101. package/components/property-editor/index.esm.js +151 -150
  102. package/components/property-editor/index.umd.cjs +1 -1
  103. package/components/property-panel/index.esm.js +565 -565
  104. package/components/property-panel/index.umd.cjs +2 -2
  105. package/components/query-solution/index.esm.js +4142 -4190
  106. package/components/query-solution/index.umd.cjs +6 -6
  107. package/components/radio-button/index.esm.js +182 -182
  108. package/components/radio-button/index.umd.cjs +1 -1
  109. package/components/rate/index.esm.js +106 -106
  110. package/components/rate/index.umd.cjs +1 -1
  111. package/components/response-layout/index.esm.js +409 -409
  112. package/components/response-layout/index.umd.cjs +1 -1
  113. package/components/response-layout-editor/index.esm.js +1488 -1478
  114. package/components/response-layout-editor/index.umd.cjs +1 -1
  115. package/components/response-toolbar/index.esm.js +779 -776
  116. package/components/response-toolbar/index.umd.cjs +1 -1
  117. package/components/schema-selector/index.esm.js +1765 -1762
  118. package/components/schema-selector/index.umd.cjs +5 -5
  119. package/components/search-box/index.esm.js +114 -114
  120. package/components/search-box/index.umd.cjs +1 -1
  121. package/components/section/index.esm.js +1184 -1181
  122. package/components/section/index.umd.cjs +1 -1
  123. package/components/smoke-detector/index.esm.js +163 -163
  124. package/components/smoke-detector/index.umd.cjs +1 -1
  125. package/components/sort-condition-editor/index.esm.js +927 -916
  126. package/components/sort-condition-editor/index.umd.cjs +3 -3
  127. package/components/splitter/index.esm.js +3 -3
  128. package/components/splitter/index.umd.cjs +1 -1
  129. package/components/step/index.esm.js +133 -133
  130. package/components/step/index.umd.cjs +1 -1
  131. package/components/switch/index.esm.js +76 -72
  132. package/components/switch/index.umd.cjs +1 -1
  133. package/components/tabs/index.esm.js +1527 -1524
  134. package/components/tabs/index.umd.cjs +2 -2
  135. package/components/tags/index.esm.js +93 -93
  136. package/components/tags/index.umd.cjs +1 -1
  137. package/components/text/index.esm.js +138 -138
  138. package/components/text/index.umd.cjs +1 -1
  139. package/components/textarea/index.esm.js +361 -361
  140. package/components/textarea/index.umd.cjs +2 -2
  141. package/components/tooltip/index.esm.js +173 -171
  142. package/components/tooltip/index.umd.cjs +1 -1
  143. package/components/transfer/index.esm.js +130 -134
  144. package/components/transfer/index.umd.cjs +4 -4
  145. package/components/tree-grid/index.esm.js +25 -25
  146. package/components/tree-grid/index.umd.cjs +1 -1
  147. package/components/tree-view/index.esm.js +1746 -1743
  148. package/components/tree-view/index.umd.cjs +1 -1
  149. package/components/uploader/index.esm.js +170 -170
  150. package/components/uploader/index.umd.cjs +2 -2
  151. package/components/verify-detail/index.esm.js +196 -196
  152. package/components/verify-detail/index.umd.cjs +1 -1
  153. package/components/video/index.esm.js +8 -8
  154. package/components/video/index.umd.cjs +1 -1
  155. package/components/weather/index.esm.js +9 -9
  156. package/components/weather/index.umd.cjs +2 -2
  157. package/farris.all.esm.js +16987 -17002
  158. package/farris.all.umd.cjs +27 -27
  159. package/package.json +1 -1
  160. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  161. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
  162. package/components/time-picker/index.css +0 -1
  163. package/components/time-picker/index.esm.js +0 -9793
  164. package/components/time-picker/index.umd.cjs +0 -1
  165. package/components/time-picker/package.json +0 -8
  166. package/components/time-picker/style.js +0 -6
  167. package/designer/button-edit/index.css +0 -1
  168. package/designer/button-edit/index.esm.js +0 -4856
  169. package/designer/button-edit/index.umd.cjs +0 -1
  170. package/designer/checkbox/index.esm.js +0 -250
  171. package/designer/checkbox/index.umd.cjs +0 -1
  172. package/designer/checkbox-group/index.esm.js +0 -377
  173. package/designer/checkbox-group/index.umd.cjs +0 -1
  174. package/designer/data-grid/index.css +0 -1
  175. package/designer/data-grid/index.esm.js +0 -15413
  176. package/designer/data-grid/index.umd.cjs +0 -23
  177. package/designer/data-view/index.esm.js +0 -854
  178. package/designer/data-view/index.umd.cjs +0 -38
  179. package/designer/drawer/index.css +0 -1
  180. package/designer/drawer/index.esm.js +0 -525
  181. package/designer/drawer/index.umd.cjs +0 -1
  182. package/designer/farris-designer.all.esm.js +0 -22320
  183. package/designer/farris-designer.all.umd.cjs +0 -34
  184. package/designer/index.css +0 -1
  185. package/designer/input-group/index.esm.js +0 -1098
  186. package/designer/input-group/index.umd.cjs +0 -1
  187. package/designer/list-view/index.css +0 -1
  188. package/designer/list-view/index.esm.js +0 -4675
  189. package/designer/list-view/index.umd.cjs +0 -40
  190. package/designer/radio-group/index.css +0 -1
  191. package/designer/radio-group/index.esm.js +0 -6980
  192. package/designer/radio-group/index.umd.cjs +0 -1
  193. package/designer/tree-grid/index.esm.js +0 -1099
  194. package/designer/tree-grid/index.umd.cjs +0 -1
@@ -2,7 +2,7 @@ var Ea = Object.defineProperty;
2
2
  var Da = (e, t, n) => t in e ? Ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var we = (e, t, n) => Da(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { ref as C, computed as N, defineComponent as ae, createVNode as v, Teleport as Tn, createApp as nn, onUnmounted as kt, Fragment as ot, watch as Z, nextTick as Ue, onBeforeMount as Pa, onMounted as be, Transition as Bn, shallowRef as Na, render as Jt, h as Ia, cloneVNode as ja, mergeProps as pt, reactive as Ge, createTextVNode as ie, inject as ke, withDirectives as On, vShow as Ra, onUpdated as an, onBeforeUnmount as Mn, provide as En, vModelText as Va } from "vue";
5
- import { isPlainObject as yn, cloneDeep as Le, isUndefined as je, debounce as Dn } from "lodash-es";
5
+ import { cloneDeep as Le, isPlainObject as yn, isUndefined as je, debounce as Dn } from "lodash-es";
6
6
  import { resolveAppearance as Pn, createPropsResolver as on, getSchemaByTypeForDesigner as La } from "../dynamic-resolver/index.esm.js";
7
7
  import { useI18n as St } from "vue-i18n";
8
8
  import { getMaxZIndex as $a, getCustomClass as Nn, withInstall as Nt, FormSchemaEntityField$Type as vn, FormSchemaEntityFieldTypeName as hn, useGuid as Aa, FormSchemaEntityFieldType$Type as za, getCustomStyle as Ha } from "../common/index.esm.js";
@@ -168,7 +168,7 @@ function Vn(e, t) {
168
168
  }
169
169
  return { getSchemaByType: l, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: s, mappingSchemaToProps: u, setDesignerContext: h };
170
170
  }
171
- const Ln = {}, $n = {}, { resolveSchemaWithDefaultValue: Ro, resolveSchemaToProps: Vo, mappingSchemaToProps: Lo } = Vn(Ln, $n);
171
+ const Ln = {}, $n = {}, { getSchemaByType: Dd, resolveSchemaWithDefaultValue: Ro, resolveSchemaToProps: Vo, mappingSchemaToProps: Lo, setDesignerContext: Pd } = Vn(Ln, $n);
172
172
  function $o(e = {}) {
173
173
  function t(c, h, f, r) {
174
174
  if (typeof f == "number")
@@ -235,7 +235,7 @@ const Ao = {
235
235
  e.editor && (e.editor[t] = n);
236
236
  },
237
237
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
238
- }, L = {
238
+ }, A = {
239
239
  button: { type: "button", name: "按钮" },
240
240
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
241
241
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -286,7 +286,7 @@ const Ao = {
286
286
  convertFrom: (e, t, n) => {
287
287
  var o;
288
288
  const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
289
- return ((o = L[a]) == null ? void 0 : o.name) || a;
289
+ return ((o = A[a]) == null ? void 0 : o.name) || a;
290
290
  }
291
291
  }, qo = {
292
292
  convertTo: (e, t, n, a) => {
@@ -527,13 +527,13 @@ function An(e, t, n) {
527
527
  }
528
528
  function h(d, g, p, w, k, B = "", O = "") {
529
529
  return Object.keys(d).map((y) => {
530
- const F = C(1), M = y, I = d[y], R = Object.keys(I), S = I.title, T = I.type, x = o.get(T) || { type: "input-group", enableClear: !1 }, E = I.editor ? Object.assign({}, x, I.editor) : Object.assign({}, x), D = u(R, I, g), z = s(R, I, g);
531
- E.readonly = E.readonly === void 0 ? z() : E.readonly;
532
- const Y = I.type === "cascade" ? h(I.properties, g, p, w, k, B, O) : [], $ = !0;
530
+ const x = C(1), M = y, I = d[y], R = Object.keys(I), E = I.title, F = I.type, S = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), P = u(R, I, g), L = s(R, I, g);
531
+ T.readonly = T.readonly === void 0 ? L() : T.readonly;
532
+ const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, O) : [], V = !0;
533
533
  let j = c(I, O);
534
534
  const G = N({
535
535
  get() {
536
- if (F.value) {
536
+ if (x.value) {
537
537
  if (["class", "style"].find((de) => de === M) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
538
538
  return j.convertFrom(p, y, k, B);
539
539
  const le = p[y];
@@ -542,28 +542,28 @@ function An(e, t, n) {
542
542
  return null;
543
543
  },
544
544
  set(le) {
545
- F.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
545
+ x.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
546
546
  }
547
- }), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName: S, propertyType: T, propertyValue: G, editor: E, visible: D, readonly: z, cascadeConfig: Y, hideCascadeTitle: $, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
547
+ }), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName: E, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: L, cascadeConfig: _, hideCascadeTitle: V, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
548
548
  return g[M] = X, X;
549
549
  });
550
550
  }
551
551
  function f(d, g, p = {}) {
552
552
  const w = {}, k = e[d];
553
553
  return k && k.categories ? Object.keys(k.categories).map((O) => {
554
- const b = k.categories[O], y = b == null ? void 0 : b.title, F = h(b.properties || {}, w, {}, p, g);
555
- return { categoryId: O, categoryName: y, properties: F };
554
+ const b = k.categories[O], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
555
+ return { categoryId: O, categoryName: y, properties: x };
556
556
  }) : [];
557
557
  }
558
558
  function r(d, g, p, w, k = "") {
559
- const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type, F = n(b), M = {}, I = e[y];
559
+ const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type, x = n(b), M = {}, I = e[y];
560
560
  if (I && I.categories) {
561
- const R = I.categories[d], S = R == null ? void 0 : R.title;
562
- O && Object.keys(R.properties).forEach((E) => {
563
- R.properties[E].$converter = O;
561
+ const R = I.categories[d], E = R == null ? void 0 : R.title;
562
+ O && Object.keys(R.properties).forEach((T) => {
563
+ R.properties[T].$converter = O;
564
564
  });
565
- const T = (R == null ? void 0 : R.properties) || {}, x = h(T, M, F, b, w, k);
566
- return { categoryId: d, categoryName: S, properties: x };
565
+ const F = (R == null ? void 0 : R.properties) || {}, S = h(F, M, x, b, w, k);
566
+ return { categoryId: d, categoryName: E, properties: S };
567
567
  }
568
568
  return { categoryId: d, categoryName: "", properties: [] };
569
569
  }
@@ -571,16 +571,16 @@ function An(e, t, n) {
571
571
  const B = d.type, O = n(d), b = {};
572
572
  let y = k || e[B];
573
573
  if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
574
- const F = [];
574
+ const x = [];
575
575
  return Object.keys(y.categories).map((M) => {
576
576
  const I = y.categories[M];
577
577
  if (I.$ref) {
578
- F.push(r(M, I, d, g, w));
578
+ x.push(r(M, I, d, g, w));
579
579
  return;
580
580
  }
581
- const R = I == null ? void 0 : I.title, S = I == null ? void 0 : I.tabId, T = I == null ? void 0 : I.tabName, x = I == null ? void 0 : I.hide, E = I == null ? void 0 : I.hideTitle, D = h(I.properties || {}, b, O, d, g, w, I.$converter), { setPropertyRelates: z } = I, Y = I == null ? void 0 : I.parentPropertyID;
582
- F.push({ categoryId: M, categoryName: R, tabId: S, tabName: T, hide: x, properties: D, hideTitle: E, setPropertyRelates: z, parentPropertyID: Y });
583
- }), F;
581
+ const R = I == null ? void 0 : I.title, E = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, S = I == null ? void 0 : I.hide, T = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, O, d, g, w, I.$converter), { setPropertyRelates: L } = I, _ = I == null ? void 0 : I.parentPropertyID;
582
+ x.push({ categoryId: M, categoryName: R, tabId: E, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: L, parentPropertyID: _ });
583
+ }), x;
584
584
  }
585
585
  return [];
586
586
  }
@@ -592,7 +592,7 @@ function An(e, t, n) {
592
592
  }
593
593
  const zn = {}, Hn = {};
594
594
  An(zn, Hn, Ro);
595
- const Wn = {}, qn = {}, { resolveSchemaWithDefaultValue: rl } = Vn(Wn, qn), Gn = {}, Un = {};
595
+ const Wn = {}, qn = {}, { getSchemaByType: Nd, resolveSchemaWithDefaultValue: rl, resolveSchemaToProps: Id, mappingSchemaToProps: jd, setDesignerContext: Rd } = Vn(Wn, qn), Gn = {}, Un = {};
596
596
  An(Gn, Un, rl);
597
597
  function Pe(e, t, n = /* @__PURE__ */ new Map(), a = (i, u, s, c) => u, o = {}, l = (i) => i) {
598
598
  return Ln[t.title] = t, $n[t.title] = a, zn[t.title] = o, Hn[t.title] = l, Wn[t.title] = t, qn[t.title] = a, Gn[t.title] = o, Un[t.title] = l, (i = {}, u = !0) => {
@@ -1229,18 +1229,18 @@ class nt {
1229
1229
  function Rl(e, t) {
1230
1230
  const n = C(), a = C(), o = C(), l = C(), i = C(), u = C(), s = C(), c = C(), h = C(), f = C(), r = C(), m = C(e.resizeable), d = C(), g = C(e.draggable), p = C(!1);
1231
1231
  function w() {
1232
- const $ = a.value || document.body, j = window.getComputedStyle($);
1232
+ const V = a.value || document.body, j = window.getComputedStyle(V);
1233
1233
  if (!j || !n.value)
1234
1234
  return;
1235
1235
  const G = re.getTransformInfo(n.value), W = {};
1236
1236
  s.value && (W.deltaL = n.value.offsetLeft - s.value.x, W.deltaT = n.value.offsetTop - s.value.y);
1237
1237
  const ee = j.getPropertyValue("position");
1238
- W.width = $.clientWidth, W.height = $.clientHeight, W.pr = parseInt(j.getPropertyValue("padding-right"), 10), W.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), W.position = j.getPropertyValue("position"), ee === "static" && ($.style.position = "relative"), W.translateX = G.x, W.translateY = G.y, f.value = W;
1238
+ W.width = V.clientWidth, W.height = V.clientHeight, W.pr = parseInt(j.getPropertyValue("padding-right"), 10), W.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), W.position = j.getPropertyValue("position"), ee === "static" && (V.style.position = "relative"), W.translateX = G.x, W.translateY = G.y, f.value = W;
1239
1239
  }
1240
- function k($) {
1240
+ function k(V) {
1241
1241
  if (n.value) {
1242
1242
  l.value = nt.getCurrent(n.value), i.value = re.getCurrent(n.value), u.value = l.value ? nt.copy(l.value) : null, s.value = i.value ? re.copy(i.value) : null, w();
1243
- const j = $.target.getAttribute("type") || "";
1243
+ const j = V.target.getAttribute("type") || "";
1244
1244
  c.value = {
1245
1245
  n: !!j.match(/n/),
1246
1246
  s: !!j.match(/s/),
@@ -1250,49 +1250,49 @@ function Rl(e, t) {
1250
1250
  }
1251
1251
  }
1252
1252
  function B() {
1253
- var $, j, G, W;
1253
+ var V, j, G, W;
1254
1254
  if (n.value) {
1255
1255
  const ee = n.value;
1256
- c.value && ((c.value.n || c.value.s) && (($ = u.value) != null && $.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), s.value && ((G = s.value) != null && G.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
1256
+ c.value && ((c.value.n || c.value.s) && ((V = u.value) != null && V.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), s.value && ((G = s.value) != null && G.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
1257
1257
  }
1258
1258
  }
1259
1259
  function O() {
1260
- const $ = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
1261
- u.value && s.value && c.value && l.value && (u.value.height < $ && (u.value.height = $, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - $))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
1260
+ const V = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
1261
+ u.value && s.value && c.value && l.value && (u.value.height < V && (u.value.height = V, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - V))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
1262
1262
  }
1263
1263
  function b() {
1264
1264
  if (a.value) {
1265
- const $ = f.value;
1265
+ const V = f.value;
1266
1266
  if (s.value && u.value && c.value && l.value) {
1267
- const j = $.width - $.pr - $.deltaL - $.translateX - s.value.x, G = $.height - $.pb - $.deltaT - $.translateY - s.value.y;
1268
- c.value.n && s.value.y + $.translateY < 0 && i.value && (s.value.y = -$.translateY, u.value.height = l.value.height + i.value.y + $.translateY), c.value.w && s.value.x + $.translateX < 0 && i.value && (s.value.x = -$.translateX, u.value.width = l.value.width + i.value.x + $.translateX), u.value.width > j && (u.value.width = j), u.value.height > G && (u.value.height = G);
1267
+ const j = V.width - V.pr - V.deltaL - V.translateX - s.value.x, G = V.height - V.pb - V.deltaT - V.translateY - s.value.y;
1268
+ c.value.n && s.value.y + V.translateY < 0 && i.value && (s.value.y = -V.translateY, u.value.height = l.value.height + i.value.y + V.translateY), c.value.w && s.value.x + V.translateX < 0 && i.value && (s.value.x = -V.translateX, u.value.width = l.value.width + i.value.x + V.translateX), u.value.width > j && (u.value.width = j), u.value.height > G && (u.value.height = G);
1269
1269
  }
1270
1270
  }
1271
1271
  }
1272
- function y($) {
1272
+ function y(V) {
1273
1273
  if (!o.value || !l.value || !i.value || !c.value)
1274
1274
  return;
1275
- $.subtract(o.value);
1276
- const j = $.x, G = $.y;
1275
+ V.subtract(o.value);
1276
+ const j = V.x, G = V.y;
1277
1277
  c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), O(), B();
1278
1278
  }
1279
- function F($) {
1279
+ function x(V) {
1280
1280
  if (!h.value)
1281
1281
  return;
1282
- const j = re.fromEvent($);
1282
+ const j = re.fromEvent(V);
1283
1283
  j && y(j);
1284
1284
  }
1285
1285
  function M() {
1286
1286
  if (n.value) {
1287
1287
  const {
1288
- width: $,
1288
+ width: V,
1289
1289
  height: j,
1290
1290
  x: G,
1291
1291
  y: W
1292
1292
  } = n.value.getBoundingClientRect(), ee = re.getTransformInfo(n.value);
1293
1293
  return {
1294
1294
  size: {
1295
- width: $,
1295
+ width: V,
1296
1296
  height: j
1297
1297
  },
1298
1298
  position: {
@@ -1303,58 +1303,58 @@ function Rl(e, t) {
1303
1303
  }
1304
1304
  return null;
1305
1305
  }
1306
- function I($) {
1306
+ function I(V) {
1307
1307
  if (n.value) {
1308
1308
  const j = M();
1309
1309
  r.value = j;
1310
1310
  }
1311
- o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", I);
1311
+ o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", I);
1312
1312
  }
1313
1313
  function R() {
1314
- document.addEventListener("mousemove", F), document.addEventListener("mouseup", I);
1314
+ document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
1315
1315
  }
1316
- function S($) {
1317
- $ instanceof MouseEvent && $.button === 2 || g.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), o.value = re.fromEvent($), h.value = $.target, k($), R());
1316
+ function E(V) {
1317
+ V instanceof MouseEvent && V.button === 2 || g.value && (document.body.click(), V.stopPropagation(), V.preventDefault(), o.value = re.fromEvent(V), h.value = V.target, k(V), R());
1318
1318
  }
1319
- function T($) {
1320
- return n.value = $, m.value && v(ot, null, [v("div", {
1319
+ function F(V) {
1320
+ return n.value = V, m.value && v(ot, null, [v("div", {
1321
1321
  class: "fv-resizable-handle fv-resizable-n",
1322
1322
  type: "n",
1323
- onMousedown: (j) => S(j)
1323
+ onMousedown: (j) => E(j)
1324
1324
  }, null), v("div", {
1325
1325
  class: "fv-resizable-handle fv-resizable-e",
1326
1326
  type: "e",
1327
- onMousedown: (j) => S(j)
1327
+ onMousedown: (j) => E(j)
1328
1328
  }, null), v("div", {
1329
1329
  class: "fv-resizable-handle fv-resizable-s",
1330
1330
  type: "s",
1331
- onMousedown: (j) => S(j)
1331
+ onMousedown: (j) => E(j)
1332
1332
  }, null), v("div", {
1333
1333
  class: "fv-resizable-handle fv-resizable-w",
1334
1334
  type: "w",
1335
- onMousedown: (j) => S(j)
1335
+ onMousedown: (j) => E(j)
1336
1336
  }, null), v("div", {
1337
1337
  class: "fv-resizable-handle fv-resizable-ne",
1338
1338
  type: "ne",
1339
- onMousedown: (j) => S(j)
1339
+ onMousedown: (j) => E(j)
1340
1340
  }, null), v("div", {
1341
1341
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
1342
1342
  type: "se",
1343
- onMousedown: (j) => S(j)
1343
+ onMousedown: (j) => E(j)
1344
1344
  }, null), v("div", {
1345
1345
  class: "fv-resizable-handle fv-resizable-sw",
1346
1346
  type: "sw",
1347
- onMousedown: (j) => S(j)
1347
+ onMousedown: (j) => E(j)
1348
1348
  }, null), v("div", {
1349
1349
  class: "fv-resizable-handle fv-resizable-nw",
1350
1350
  type: "nw",
1351
- onMousedown: (j) => S(j)
1351
+ onMousedown: (j) => E(j)
1352
1352
  }, null)]);
1353
1353
  }
1354
- function x($ = !0) {
1354
+ function S(V = !0) {
1355
1355
  document.body.click();
1356
1356
  const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
1357
- $ && W && (d.value = M(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
1357
+ V && W && (d.value = M(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
1358
1358
  size: u.value,
1359
1359
  position: {
1360
1360
  x: 0,
@@ -1362,8 +1362,8 @@ function Rl(e, t) {
1362
1362
  }
1363
1363
  }, g.value = !1, p.value = !0);
1364
1364
  }
1365
- function E() {
1366
- var $, j;
1365
+ function T() {
1366
+ var V, j;
1367
1367
  if (document.body.click(), d.value) {
1368
1368
  const G = {
1369
1369
  width: d.value.size.width || 0,
@@ -1372,7 +1372,7 @@ function Rl(e, t) {
1372
1372
  x: (window.innerWidth - G.width) / 2,
1373
1373
  y: (window.innerHeight - G.height) / 2
1374
1374
  };
1375
- ($ = u.value) == null || $.set(G), (j = s.value) == null || j.set(W);
1375
+ (V = u.value) == null || V.set(G), (j = s.value) == null || j.set(W);
1376
1376
  const ee = n.value;
1377
1377
  ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${W.x}px`, ee.style.top = `${W.y}px`, ee.style.transform = "", r.value = {
1378
1378
  size: G,
@@ -1380,103 +1380,103 @@ function Rl(e, t) {
1380
1380
  }, g.value = e.draggable, p.value = !1;
1381
1381
  }
1382
1382
  }
1383
- function D() {
1383
+ function P() {
1384
1384
  if (n.value) {
1385
- const $ = nt.getCurrent(n.value);
1386
- if ($) {
1385
+ const V = nt.getCurrent(n.value);
1386
+ if (V) {
1387
1387
  const {
1388
1388
  width: j,
1389
1389
  height: G
1390
- } = $;
1390
+ } = V;
1391
1391
  n.value.style.left = `${(window.innerWidth - j) / 2}px`, n.value.style.top = `${(window.innerHeight - G) / 2}px`, n.value.style.transform = "";
1392
1392
  }
1393
1393
  }
1394
1394
  }
1395
- function z() {
1396
- const $ = () => {
1397
- p.value ? x(!1) : D(), document.body.click();
1395
+ function L() {
1396
+ const V = () => {
1397
+ p.value ? S(!1) : P(), document.body.click();
1398
1398
  };
1399
- return window.addEventListener("resize", $), () => {
1400
- window.removeEventListener("resize", $);
1399
+ return window.addEventListener("resize", V), () => {
1400
+ window.removeEventListener("resize", V);
1401
1401
  };
1402
1402
  }
1403
- const Y = z();
1403
+ const _ = L();
1404
1404
  return {
1405
- renderResizeBar: T,
1405
+ renderResizeBar: F,
1406
1406
  boundingElement: a,
1407
1407
  resizedEventParam: r,
1408
- maximize: x,
1409
- restore: E,
1408
+ maximize: S,
1409
+ restore: T,
1410
1410
  allowDrag: g,
1411
1411
  isMaximized: p,
1412
- unWindowResizeHandle: Y,
1413
- moveToCenter: D
1412
+ unWindowResizeHandle: _,
1413
+ moveToCenter: P
1414
1414
  };
1415
1415
  }
1416
1416
  function Vl(e, t, n) {
1417
1417
  const a = C(), o = C(e.draggable), l = C(e.lockAxis), i = C(), u = C(), s = C(!1), c = C(new re(0, 0)), h = C(new re(0, 0)), f = C(new re(0, 0)), r = C(new re(0, 0));
1418
- Z(() => n.value, (F) => {
1419
- i.value.style.cursor = F ? "move" : "default";
1418
+ Z(() => n.value, (x) => {
1419
+ i.value.style.cursor = x ? "move" : "default";
1420
1420
  });
1421
- function m(F, M) {
1421
+ function m(x, M) {
1422
1422
  if (M.tagName === "BUTTON")
1423
1423
  return !1;
1424
- if (M === F)
1424
+ if (M === x)
1425
1425
  return !0;
1426
1426
  for (const I in M.children)
1427
- if (Object.prototype.hasOwnProperty.call(M.children, I) && m(F, M.children[I]))
1427
+ if (Object.prototype.hasOwnProperty.call(M.children, I) && m(x, M.children[I]))
1428
1428
  return !0;
1429
1429
  return !1;
1430
1430
  }
1431
1431
  function d() {
1432
- var R, S;
1433
- let F = f.value.x + h.value.x, M = f.value.y + h.value.y;
1434
- l.value === "x" ? (F = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (M = ((S = c.value) == null ? void 0 : S.y) || 0, f.value.y = 0);
1435
- const I = `translate3d(${Math.round(F)}px, ${Math.round(M)}px, 0px)`;
1436
- a.value && (a.value.style.transform = I), r.value.x = F, r.value.y = M;
1432
+ var R, E;
1433
+ let x = f.value.x + h.value.x, M = f.value.y + h.value.y;
1434
+ l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (M = ((E = c.value) == null ? void 0 : E.y) || 0, f.value.y = 0);
1435
+ const I = `translate3d(${Math.round(x)}px, ${Math.round(M)}px, 0px)`;
1436
+ a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = M;
1437
1437
  }
1438
1438
  function g() {
1439
1439
  if (!u.value || !a.value)
1440
1440
  return null;
1441
- const F = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), I = {
1442
- top: F.top < M.top,
1443
- right: F.right > M.right,
1444
- bottom: F.bottom > M.bottom,
1445
- left: F.left < M.left
1441
+ const x = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), I = {
1442
+ top: x.top < M.top,
1443
+ right: x.right > M.right,
1444
+ bottom: x.bottom > M.bottom,
1445
+ left: x.left < M.left
1446
1446
  };
1447
- return I.top || (f.value.y -= M.top - F.top), I.bottom || (f.value.y -= M.bottom - F.bottom), I.right || (f.value.x -= M.right - F.right), I.left || (f.value.x -= M.left - F.left), d(), I;
1447
+ return I.top || (f.value.y -= M.top - x.top), I.bottom || (f.value.y -= M.bottom - x.bottom), I.right || (f.value.x -= M.right - x.right), I.left || (f.value.x -= M.left - x.left), d(), I;
1448
1448
  }
1449
- function p(F) {
1450
- F && (c.value && F.subtract(c.value), f.value.set(F), d(), g());
1449
+ function p(x) {
1450
+ x && (c.value && x.subtract(c.value), f.value.set(x), d(), g());
1451
1451
  }
1452
- function w(F) {
1453
- s.value && o.value && (F.stopPropagation(), F.preventDefault(), p(re.fromEvent(F, i.value)));
1452
+ function w(x) {
1453
+ s.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, i.value)));
1454
1454
  }
1455
1455
  function k() {
1456
- var F;
1457
- s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (F = a.value) == null || F.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
1456
+ var x;
1457
+ s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (x = a.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
1458
1458
  }
1459
1459
  function B() {
1460
1460
  !s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
1461
1461
  }
1462
1462
  function O() {
1463
1463
  if (a.value) {
1464
- const F = re.getTransformInfo(a.value);
1465
- h.value.set(F);
1464
+ const x = re.getTransformInfo(a.value);
1465
+ h.value.set(x);
1466
1466
  return;
1467
1467
  }
1468
1468
  h.value.reset();
1469
1469
  }
1470
- function b(F) {
1471
- if (!n.value || F instanceof MouseEvent && F.button === 2)
1470
+ function b(x) {
1471
+ if (!n.value || x instanceof MouseEvent && x.button === 2)
1472
1472
  return;
1473
- const M = F.target || F.srcElement;
1474
- i.value !== void 0 && M && !m(M, i.value) || o.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), c.value = re.fromEvent(F, a.value), O(), B());
1473
+ const M = x.target || x.srcElement;
1474
+ i.value !== void 0 && M && !m(M, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), O(), B());
1475
1475
  }
1476
- function y(F, M, I) {
1476
+ function y(x, M, I) {
1477
1477
  if (o.value && M) {
1478
- if (F)
1479
- i.value = F;
1478
+ if (x)
1479
+ i.value = x;
1480
1480
  else if (e.dragHandle) {
1481
1481
  if (e.dragHandle instanceof HTMLElement)
1482
1482
  i.value = e.dragHandle;
@@ -1531,7 +1531,7 @@ const at = /* @__PURE__ */ ae({
1531
1531
  } = St();
1532
1532
  w.value === "错误提示" && (w.value = O("messageBox.errorTitle"));
1533
1533
  const b = C(!1);
1534
- function y(V, Q) {
1534
+ function y($, Q) {
1535
1535
  const ue = Q ? "accept" : "cancel";
1536
1536
  Promise.resolve().then(() => {
1537
1537
  var fe;
@@ -1539,29 +1539,29 @@ const at = /* @__PURE__ */ ae({
1539
1539
  closeType: ue
1540
1540
  });
1541
1541
  }).then((fe) => {
1542
- fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", V));
1542
+ fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", $));
1543
1543
  });
1544
1544
  }
1545
- const F = [{
1545
+ const x = [{
1546
1546
  name: "cancel",
1547
1547
  text: O("messageBox.cancel") || "取消",
1548
1548
  class: "btn btn-secondary",
1549
- handle: (V) => {
1550
- y(V, !1);
1549
+ handle: ($) => {
1550
+ y($, !1);
1551
1551
  }
1552
1552
  }, {
1553
1553
  name: "accept",
1554
1554
  text: O("messageBox.ok") || "确定",
1555
1555
  class: "btn btn-primary",
1556
- handle: (V) => {
1557
- y(V, !0);
1556
+ handle: ($) => {
1557
+ y($, !0);
1558
1558
  }
1559
- }], M = C(e.buttons && e.buttons.length ? e.buttons : F), I = N(() => !!c.value), R = N(() => !!p.value && !!M.value), S = C(), T = C(), x = C(!1), {
1560
- renderResizeBar: E,
1561
- maximize: D,
1562
- restore: z,
1563
- boundingElement: Y,
1564
- resizedEventParam: $,
1559
+ }], M = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!M.value), E = C(), F = C(), S = C(!1), {
1560
+ renderResizeBar: T,
1561
+ maximize: P,
1562
+ restore: L,
1563
+ boundingElement: _,
1564
+ resizedEventParam: V,
1565
1565
  allowDrag: j,
1566
1566
  unWindowResizeHandle: G,
1567
1567
  moveToCenter: W
@@ -1572,70 +1572,70 @@ const at = /* @__PURE__ */ ae({
1572
1572
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
1573
1573
  }
1574
1574
  function ve() {
1575
- const V = document.querySelectorAll(".farris-modal").length;
1576
- (!V || V - 1 <= 0) && document.body.classList.remove("modal-open"), B.value && B.value.classList.remove("show");
1577
- }
1578
- Z(() => e.title, (V, Q) => {
1579
- V !== Q && (w.value = V);
1580
- }), Z(() => e.modelValue, (V, Q) => {
1581
- V !== Q && (o.value = V, o.value && e.draggable && Ue(() => {
1582
- T.value && !k.value && (k.value = T.value.parentElement, Y.value = k.value, ee(S.value, T.value, Y.value), W());
1583
- }), V || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (x.value = !1, j.value = e.draggable);
1584
- }), Z(() => e.showHeader, (V, Q) => {
1585
- V !== Q && (s.value = V);
1586
- }), Z(() => e.showButtons, (V, Q) => {
1587
- V !== Q && (p.value = V);
1588
- }), Z(() => $.value, (V, Q) => {
1589
- const ue = V || {}, fe = Q || {};
1575
+ const $ = document.querySelectorAll(".farris-modal").length;
1576
+ (!$ || $ - 1 <= 0) && document.body.classList.remove("modal-open"), B.value && B.value.classList.remove("show");
1577
+ }
1578
+ Z(() => e.title, ($, Q) => {
1579
+ $ !== Q && (w.value = $);
1580
+ }), Z(() => e.modelValue, ($, Q) => {
1581
+ $ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
1582
+ F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.value, F.value, _.value), W());
1583
+ }), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
1584
+ }), Z(() => e.showHeader, ($, Q) => {
1585
+ $ !== Q && (s.value = $);
1586
+ }), Z(() => e.showButtons, ($, Q) => {
1587
+ $ !== Q && (p.value = $);
1588
+ }), Z(() => V.value, ($, Q) => {
1589
+ const ue = $ || {}, fe = Q || {};
1590
1590
  JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
1591
- newSize: V,
1591
+ newSize: $,
1592
1592
  oldSize: Q,
1593
- isMaximized: x.value
1593
+ isMaximized: S.value
1594
1594
  });
1595
1595
  });
1596
1596
  const X = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), le = N(() => {
1597
1597
  var ue;
1598
- const V = {
1598
+ const $ = {
1599
1599
  modal: !0,
1600
1600
  "farris-modal": !0,
1601
1601
  fade: !0
1602
1602
  };
1603
- V["f-modal-fitContent"] = !!u.value, V.show = !!X.value;
1603
+ $["f-modal-fitContent"] = !!u.value, $.show = !!X.value;
1604
1604
  const Q = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
1605
- return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), V), V;
1605
+ return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), $), $;
1606
1606
  }), de = N(() => {
1607
1607
  var ue;
1608
- const V = {
1608
+ const $ = {
1609
1609
  "modal-dialog": !0
1610
1610
  }, Q = (ue = i.value) == null ? void 0 : ue.split(" ");
1611
- return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), V), V;
1611
+ return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), $), $;
1612
1612
  }), ne = N(() => {
1613
- const V = {
1613
+ const $ = {
1614
1614
  position: "absolute",
1615
1615
  top: `${(window.innerHeight - a.value) / 2}px`,
1616
1616
  left: `${(window.innerWidth - n.value) / 2}px`,
1617
1617
  width: `${n.value}px`,
1618
1618
  height: u.value ? "auto" : `${a.value}px`
1619
1619
  };
1620
- return e.mask || (V.pointerEvents = "auto"), V;
1620
+ return e.mask || ($.pointerEvents = "auto"), $;
1621
1621
  }), U = () => $a() || 1040, oe = N(() => {
1622
- const V = {
1622
+ const $ = {
1623
1623
  display: "block",
1624
1624
  zIndex: U()
1625
1625
  };
1626
- return e.mask || (V.pointerEvents = "none", V.backgroundColor = "transparent"), b.value && (V.backgroundColor = "transparent"), V;
1626
+ return e.mask || ($.pointerEvents = "none", $.backgroundColor = "transparent"), b.value && ($.backgroundColor = "transparent"), $;
1627
1627
  }), Xe = N(() => ({
1628
1628
  "modal-content": !0,
1629
1629
  "modal-content-has-header": s.value
1630
1630
  })), $e = N(() => {
1631
- const V = {
1631
+ const $ = {
1632
1632
  display: s.value ? "" : "none"
1633
1633
  };
1634
- return V["pointer-events"] = j.value ? "auto" : "none", V;
1634
+ return $["pointer-events"] = j.value ? "auto" : "none", $;
1635
1635
  }), Be = N(() => ({
1636
1636
  "f-icon": !0,
1637
1637
  modal_maximize: !0,
1638
- modalrevert: x.value
1638
+ modalrevert: S.value
1639
1639
  })), it = N(() => ({
1640
1640
  "modal-body": !0,
1641
1641
  "f-utils-flex-column": m.value === "iframe",
@@ -1647,37 +1647,37 @@ const at = /* @__PURE__ */ ae({
1647
1647
  };
1648
1648
  }
1649
1649
  const rt = N(() => {
1650
- const V = {
1650
+ const $ = {
1651
1651
  textAlgin: g.value
1652
1652
  }, Q = Je();
1653
- return Object.assign(V, Q);
1653
+ return Object.assign($, Q);
1654
1654
  });
1655
- function se(V) {
1656
- if (V == null || V.stopPropagation(), x.value) {
1657
- x.value = !1, z();
1655
+ function se($) {
1656
+ if ($ == null || $.stopPropagation(), S.value) {
1657
+ S.value = !1, L();
1658
1658
  return;
1659
1659
  }
1660
- D(), x.value = !0;
1660
+ P(), S.value = !0;
1661
1661
  }
1662
- async function mt(V, Q) {
1663
- V.handle && await V.handle(Q, V) && t.emit("closed", Q);
1662
+ async function mt($, Q) {
1663
+ $.handle && await $.handle(Q, $) && t.emit("closed", Q);
1664
1664
  }
1665
- function Ae(V) {
1666
- V.width && (n.value = V.width), V.height && (a.value = V.height), V.buttons && (M.value = V.buttons), V.title && (w.value = V.title);
1665
+ function Ae($) {
1666
+ $.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (M.value = $.buttons), $.title && (w.value = $.title);
1667
1667
  }
1668
1668
  let ze = null, Oe = null;
1669
1669
  Pa(() => {
1670
1670
  b.value = ce();
1671
1671
  }), be(() => {
1672
- T.value && !k.value && (k.value = T.value.parentElement, Y.value = k.value, ee(S.value, T.value, Y.value)), X.value && document.body.classList.add("modal-open"), ze = Ll(e, t), Oe = $l(e, t);
1672
+ F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.value, F.value, _.value)), X.value && document.body.classList.add("modal-open"), ze = Ll(e, t), Oe = $l(e, t);
1673
1673
  }), kt(() => {
1674
1674
  G && G(), ze && ze.remove(), Oe && Oe.remove();
1675
1675
  }), t.expose({
1676
- modalElementRef: T,
1676
+ modalElementRef: F,
1677
1677
  updateModalOptions: Ae,
1678
1678
  close: y,
1679
1679
  maxDialog: se,
1680
- isMaximized: x
1680
+ isMaximized: S
1681
1681
  });
1682
1682
  function He() {
1683
1683
  return v("ul", null, [r.value && v("li", {
@@ -1692,7 +1692,7 @@ const at = /* @__PURE__ */ ae({
1692
1692
  class: Be.value
1693
1693
  }, null)]), h.value && v("li", {
1694
1694
  class: "f-btn-icon f-bare",
1695
- onClick: (V) => y(V, !1),
1695
+ onClick: ($) => y($, !1),
1696
1696
  style: "pointer-events: auto;"
1697
1697
  }, [v("span", {
1698
1698
  class: "f-icon modal_close"
@@ -1702,24 +1702,24 @@ const at = /* @__PURE__ */ ae({
1702
1702
  return v("div", {
1703
1703
  class: "modal-footer",
1704
1704
  style: rt.value
1705
- }, [M.value && M.value.map((V) => {
1706
- const Q = C(V.disabled);
1705
+ }, [M.value && M.value.map(($) => {
1706
+ const Q = C($.disabled);
1707
1707
  return v("button", {
1708
- name: V.name,
1708
+ name: $.name,
1709
1709
  type: "button",
1710
1710
  disabled: Q.value,
1711
- class: V.class + (V.iconClass ? " btn-icontext" : ""),
1711
+ class: $.class + ($.iconClass ? " btn-icontext" : ""),
1712
1712
  onClick: (ue) => {
1713
- mt(V, ue);
1713
+ mt($, ue);
1714
1714
  }
1715
- }, [!!V.iconClass && v("i", {
1716
- class: V.iconClass
1717
- }, null), V.text]);
1715
+ }, [!!$.iconClass && v("i", {
1716
+ class: $.iconClass
1717
+ }, null), $.text]);
1718
1718
  })]);
1719
1719
  }
1720
1720
  function Qe() {
1721
1721
  return v("div", {
1722
- ref: S,
1722
+ ref: E,
1723
1723
  class: "modal-header",
1724
1724
  style: $e.value
1725
1725
  }, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
@@ -1736,34 +1736,34 @@ const at = /* @__PURE__ */ ae({
1736
1736
  function Ne() {
1737
1737
  return t.slots.footerTemplate ? t.slots.footerTemplate() : R.value && yt();
1738
1738
  }
1739
- function We(V) {
1740
- if (V.stopPropagation(), e.allowClickMaskToClose) {
1741
- if (V.target !== B.value)
1739
+ function We($) {
1740
+ if ($.stopPropagation(), e.allowClickMaskToClose) {
1741
+ if ($.target !== B.value)
1742
1742
  return;
1743
- y(V, !1);
1743
+ y($, !1);
1744
1744
  }
1745
1745
  }
1746
1746
  function st() {
1747
- var V, Q;
1747
+ var $, Q;
1748
1748
  return v("div", {
1749
1749
  id: l.value,
1750
1750
  class: de.value,
1751
1751
  style: ne.value,
1752
- ref: T
1752
+ ref: F
1753
1753
  }, [v("div", {
1754
1754
  class: Xe.value
1755
1755
  }, [s.value && Qe(), v("div", {
1756
1756
  class: it.value
1757
- }, [(Q = (V = t.slots).default) == null ? void 0 : Q.call(V), m.value === "iframe" && v("iframe", {
1757
+ }, [(Q = ($ = t.slots).default) == null ? void 0 : Q.call($), m.value === "iframe" && v("iframe", {
1758
1758
  title: l.value,
1759
1759
  class: "f-utils-fill",
1760
1760
  width: "100%",
1761
1761
  frameborder: "0",
1762
1762
  src: d.value
1763
- }, null)]), Ne()]), !u.value && T.value && !x.value && E(T.value)]);
1763
+ }, null)]), Ne()]), !u.value && F.value && !S.value && T(F.value)]);
1764
1764
  }
1765
- function ut(V) {
1766
- return V || "body";
1765
+ function ut($) {
1766
+ return $ || "body";
1767
1767
  }
1768
1768
  return () => v(Tn, {
1769
1769
  to: ut(e.host)
@@ -1886,14 +1886,14 @@ class Qn {
1886
1886
  });
1887
1887
  let h;
1888
1888
  const f = Jn(a.value), r = (b) => {
1889
- var F;
1889
+ var x;
1890
1890
  o.value = !1;
1891
- const y = (F = b == null ? void 0 : b.target) == null ? void 0 : F.classList.contains("modal_close");
1891
+ const y = (x = b == null ? void 0 : b.target) == null ? void 0 : x.classList.contains("modal_close");
1892
1892
  u(b, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
1893
1893
  }, m = (b) => {
1894
1894
  r(b), h && Ue(() => {
1895
1895
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Jt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
1896
- const y = Object.keys(this.modalRefs).map((F) => Number(F));
1896
+ const y = Object.keys(this.modalRefs).map((x) => Number(x));
1897
1897
  y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
1898
1898
  }
1899
1899
  this.isUseEscCloseModal.value = !1;
@@ -2062,10 +2062,10 @@ const dt = class dt {
2062
2062
  */
2063
2063
  static getEditorTypesByMDataType(t, n = !1, a = "") {
2064
2064
  if (n)
2065
- return [{ key: L["language-textbox"].type, value: L["language-textbox"].name }];
2065
+ return [{ key: A["language-textbox"].type, value: A["language-textbox"].name }];
2066
2066
  let o = dt.fieldControlTypeMapping[t];
2067
2067
  if (a === "data-grid-column" && (o != null && o.length)) {
2068
- const l = [L["check-group"].type, L["radio-group"].type];
2068
+ const l = [A["check-group"].type, A["radio-group"].type];
2069
2069
  o = o.filter((i) => !l.includes(i.key));
2070
2070
  }
2071
2071
  return o;
@@ -2088,7 +2088,7 @@ const dt = class dt {
2088
2088
  static mappingDomPropAndSchemaProp(t, n) {
2089
2089
  var l;
2090
2090
  const a = (l = t.editor) == null ? void 0 : l.type, o = [];
2091
- return (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && o.push({ domField: "title", schemaField: "name" }), o.push({ domField: "label", schemaField: "name" }), o.push({ domField: "editor.required", schemaField: "require" }), o.push({ domField: "editor.readonly", schemaField: "readonly" }), (a === L["input-group"].type || a === L.textarea.type || a === L["number-spinner"].type) && o.push({ domField: "editor.maxLength", schemaField: "type.length" }), a === L["number-spinner"].type && o.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && o.push({ domField: "formatter.precision", schemaField: "type.precision" }), (a === L["combo-list"].type || a === L["radio-group"].type) && o.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && o.push({ domField: "formatter.data", schemaField: "type.enumValues" }), a === L["date-picker"].type && (o.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), o.push({ domField: "editor.fieldType", schemaField: "type.name" })), a === L["number-spinner"].type && (o.push({ domField: "editor.max", schemaField: "editor.maxValue" }), o.push({ domField: "editor.min", schemaField: "editor.minValue" })), a === L.lookup.type && (o.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), o.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), o.push({ domField: "editor.textField", schemaField: "editor.textField" }), o.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), o.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), o.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), o.push({ domField: "path", schemaField: "bindingPath" }), o.push({ domField: "binding.path", schemaField: "bindingField" }), o.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && o.push({ domField: "field", schemaField: "bindingPath" }), o;
2091
+ return (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && o.push({ domField: "title", schemaField: "name" }), o.push({ domField: "label", schemaField: "name" }), o.push({ domField: "editor.required", schemaField: "require" }), o.push({ domField: "editor.readonly", schemaField: "readonly" }), (a === A["input-group"].type || a === A.textarea.type || a === A["number-spinner"].type) && o.push({ domField: "editor.maxLength", schemaField: "type.length" }), a === A["number-spinner"].type && o.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "formatter.precision", schemaField: "type.precision" }), (a === A["combo-list"].type || a === A["radio-group"].type) && o.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "formatter.data", schemaField: "type.enumValues" }), a === A["date-picker"].type && (o.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), o.push({ domField: "editor.fieldType", schemaField: "type.name" })), a === A["number-spinner"].type && (o.push({ domField: "editor.max", schemaField: "editor.maxValue" }), o.push({ domField: "editor.min", schemaField: "editor.minValue" })), a === A.lookup.type && (o.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), o.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), o.push({ domField: "editor.textField", schemaField: "editor.textField" }), o.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), o.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), o.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), o.push({ domField: "path", schemaField: "bindingPath" }), o.push({ domField: "binding.path", schemaField: "bindingField" }), o.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "field", schemaField: "bindingPath" }), o;
2092
2092
  }
2093
2093
  };
2094
2094
  /**
@@ -2096,53 +2096,53 @@ const dt = class dt {
2096
2096
  */
2097
2097
  we(dt, "fieldControlTypeMapping", {
2098
2098
  String: [
2099
- { key: L["input-group"].type, value: L["input-group"].name },
2100
- { key: L.lookup.type, value: L.lookup.name },
2101
- { key: L["date-picker"].type, value: L["date-picker"].name },
2102
- { key: L.switch.type, value: L.switch.name },
2103
- { key: L["check-box"].type, value: L["check-box"].name },
2104
- { key: L["check-group"].type, value: L["check-group"].name },
2105
- { key: L["radio-group"].type, value: L["radio-group"].name },
2106
- { key: L["combo-list"].type, value: L["combo-list"].name },
2107
- { key: L.textarea.type, value: L.textarea.name },
2108
- { key: L["time-picker"].type, value: L["time-picker"].name }
2099
+ { key: A["input-group"].type, value: A["input-group"].name },
2100
+ { key: A.lookup.type, value: A.lookup.name },
2101
+ { key: A["date-picker"].type, value: A["date-picker"].name },
2102
+ { key: A.switch.type, value: A.switch.name },
2103
+ { key: A["check-box"].type, value: A["check-box"].name },
2104
+ { key: A["check-group"].type, value: A["check-group"].name },
2105
+ { key: A["radio-group"].type, value: A["radio-group"].name },
2106
+ { key: A["combo-list"].type, value: A["combo-list"].name },
2107
+ { key: A.textarea.type, value: A.textarea.name },
2108
+ { key: A["time-picker"].type, value: A["time-picker"].name }
2109
2109
  ],
2110
2110
  Text: [
2111
- { key: L.textarea.type, value: L.textarea.name },
2112
- { key: L.lookup.type, value: L.lookup.name }
2111
+ { key: A.textarea.type, value: A.textarea.name },
2112
+ { key: A.lookup.type, value: A.lookup.name }
2113
2113
  ],
2114
2114
  Decimal: [
2115
- { key: L["number-spinner"].type, value: L["number-spinner"].name }
2115
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
2116
2116
  ],
2117
2117
  Integer: [
2118
- { key: L["number-spinner"].type, value: L["number-spinner"].name }
2118
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
2119
2119
  ],
2120
2120
  Number: [
2121
- { key: L["number-spinner"].type, value: L["number-spinner"].name },
2122
- { key: L.switch.type, value: L.switch.name },
2123
- { key: L["check-box"].type, value: L["check-box"].name }
2121
+ { key: A["number-spinner"].type, value: A["number-spinner"].name },
2122
+ { key: A.switch.type, value: A.switch.name },
2123
+ { key: A["check-box"].type, value: A["check-box"].name }
2124
2124
  ],
2125
2125
  BigNumber: [
2126
- { key: L["number-spinner"].type, value: L["number-spinner"].name }
2126
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
2127
2127
  ],
2128
2128
  Date: [
2129
- { key: L["date-picker"].type, value: L["date-picker"].name }
2129
+ { key: A["date-picker"].type, value: A["date-picker"].name }
2130
2130
  ],
2131
2131
  DateTime: [
2132
- { key: L["date-picker"].type, value: L["date-picker"].name }
2132
+ { key: A["date-picker"].type, value: A["date-picker"].name }
2133
2133
  ],
2134
2134
  Boolean: [
2135
- { key: L.switch.type, value: L.switch.name },
2136
- { key: L["check-box"].type, value: L["check-box"].name }
2135
+ { key: A.switch.type, value: A.switch.name },
2136
+ { key: A["check-box"].type, value: A["check-box"].name }
2137
2137
  ],
2138
2138
  Enum: [
2139
- { key: L["combo-list"].type, value: L["combo-list"].name },
2140
- { key: L["radio-group"].type, value: L["radio-group"].name }
2139
+ { key: A["combo-list"].type, value: A["combo-list"].name },
2140
+ { key: A["radio-group"].type, value: A["radio-group"].name }
2141
2141
  ],
2142
2142
  Object: [
2143
- { key: L.lookup.type, value: L.lookup.name },
2144
- { key: L["combo-list"].type, value: L["combo-list"].name },
2145
- { key: L["radio-group"].type, value: L["radio-group"].name }
2143
+ { key: A.lookup.type, value: A.lookup.name },
2144
+ { key: A["combo-list"].type, value: A["combo-list"].name },
2145
+ { key: A["radio-group"].type, value: A["radio-group"].name }
2146
2146
  ]
2147
2147
  });
2148
2148
  let gn = dt;
@@ -2200,173 +2200,173 @@ var Jl = { exports: {} };
2200
2200
  2: [function(n, a, o) {
2201
2201
  (function(l) {
2202
2202
  var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
2203
- function f(S, T) {
2204
- var x = arguments.length;
2205
- x === 1 && Array.isArray(S) === !1 && (T = S, S = []);
2206
- var E, D, z, Y, $, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = T || {};
2207
- U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = yt), U.containers === void 0 && (U.containers = S || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
2203
+ function f(E, F) {
2204
+ var S = arguments.length;
2205
+ S === 1 && Array.isArray(E) === !1 && (F = E, E = []);
2206
+ var T, P, L, _, V, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = F || {};
2207
+ U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = yt), U.containers === void 0 && (U.containers = E || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
2208
2208
  var oe = i({
2209
2209
  containers: U.containers,
2210
2210
  start: Oe,
2211
2211
  end: Qe,
2212
- cancel: V,
2212
+ cancel: $,
2213
2213
  remove: ut,
2214
2214
  destroy: Je,
2215
2215
  canMove: ze,
2216
2216
  dragging: !1
2217
2217
  });
2218
2218
  return U.removeOnSpill === !0 && oe.on("over", $t).on("out", At), $e(), oe;
2219
- function Xe(P) {
2220
- return oe.containers.indexOf(P) !== -1 || U.isContainer(P);
2219
+ function Xe(D) {
2220
+ return oe.containers.indexOf(D) !== -1 || U.isContainer(D);
2221
2221
  }
2222
- function $e(P) {
2223
- var A = P ? "remove" : "add";
2224
- d(h, A, "mousedown", se), d(h, A, "mouseup", We);
2222
+ function $e(D) {
2223
+ var z = D ? "remove" : "add";
2224
+ d(h, z, "mousedown", se), d(h, z, "mouseup", We);
2225
2225
  }
2226
- function Be(P) {
2227
- var A = P ? "remove" : "add";
2228
- d(h, A, "mousemove", mt);
2226
+ function Be(D) {
2227
+ var z = D ? "remove" : "add";
2228
+ d(h, z, "mousemove", mt);
2229
2229
  }
2230
- function it(P) {
2231
- var A = P ? "remove" : "add";
2232
- u[A](h, "selectstart", rt), u[A](h, "click", rt);
2230
+ function it(D) {
2231
+ var z = D ? "remove" : "add";
2232
+ u[z](h, "selectstart", rt), u[z](h, "click", rt);
2233
2233
  }
2234
2234
  function Je() {
2235
2235
  $e(!0), We({});
2236
2236
  }
2237
- function rt(P) {
2238
- ve && P.preventDefault();
2237
+ function rt(D) {
2238
+ ve && D.preventDefault();
2239
2239
  }
2240
- function se(P) {
2241
- Y = P.clientX, $ = P.clientY;
2242
- var A = g(P) !== 1 || P.metaKey || P.ctrlKey;
2243
- if (!A) {
2244
- var H = P.target, _ = Ae(H);
2245
- _ && (ve = _, Be(), P.type === "mousedown" && (y(H) ? H.focus() : P.preventDefault()));
2240
+ function se(D) {
2241
+ _ = D.clientX, V = D.clientY;
2242
+ var z = g(D) !== 1 || D.metaKey || D.ctrlKey;
2243
+ if (!z) {
2244
+ var H = D.target, Y = Ae(H);
2245
+ Y && (ve = Y, Be(), D.type === "mousedown" && (y(H) ? H.focus() : D.preventDefault()));
2246
2246
  }
2247
2247
  }
2248
- function mt(P) {
2248
+ function mt(D) {
2249
2249
  if (ve) {
2250
- if (g(P) === 0) {
2250
+ if (g(D) === 0) {
2251
2251
  We({});
2252
2252
  return;
2253
2253
  }
2254
- if (!(P.clientX !== void 0 && Math.abs(P.clientX - Y) <= (U.slideFactorX || 0) && P.clientY !== void 0 && Math.abs(P.clientY - $) <= (U.slideFactorY || 0))) {
2254
+ if (!(D.clientX !== void 0 && Math.abs(D.clientX - _) <= (U.slideFactorX || 0) && D.clientY !== void 0 && Math.abs(D.clientY - V) <= (U.slideFactorY || 0))) {
2255
2255
  if (U.ignoreInputTextSelection) {
2256
- var A = R("clientX", P) || 0, H = R("clientY", P) || 0, _ = c.elementFromPoint(A, H);
2257
- if (y(_))
2256
+ var z = R("clientX", D) || 0, H = R("clientY", D) || 0, Y = c.elementFromPoint(z, H);
2257
+ if (y(Y))
2258
2258
  return;
2259
2259
  }
2260
2260
  var K = ve;
2261
- Be(!0), it(), Qe(), He(K), s.add(W || z, "gu-transit"), Ht(), zt(), de = 0, Ie(P);
2261
+ Be(!0), it(), Qe(), He(K), s.add(W || L, "gu-transit"), Ht(), zt(), de = 0, Ie(D);
2262
2262
  }
2263
2263
  }
2264
2264
  }
2265
- function Ae(P) {
2266
- if (!(oe.dragging && E) && !Xe(P)) {
2267
- for (var A = P; b(P) && Xe(b(P)) === !1; )
2268
- if (U.invalid(P, A) || (P = b(P), !P))
2265
+ function Ae(D) {
2266
+ if (!(oe.dragging && T) && !Xe(D)) {
2267
+ for (var z = D; b(D) && Xe(b(D)) === !1; )
2268
+ if (U.invalid(D, z) || (D = b(D), !D))
2269
2269
  return;
2270
- var H = b(P);
2271
- if (H && !U.invalid(P, A)) {
2272
- var _ = U.moves(P, H, A, M(P));
2273
- if (_)
2270
+ var H = b(D);
2271
+ if (H && !U.invalid(D, z)) {
2272
+ var Y = U.moves(D, H, z, M(D));
2273
+ if (Y)
2274
2274
  return {
2275
- item: P,
2275
+ item: D,
2276
2276
  source: H
2277
2277
  };
2278
2278
  }
2279
2279
  }
2280
2280
  }
2281
- function ze(P) {
2282
- return !!Ae(P);
2281
+ function ze(D) {
2282
+ return !!Ae(D);
2283
2283
  }
2284
- function Oe(P) {
2285
- var A = Ae(P);
2286
- A && He(A);
2284
+ function Oe(D) {
2285
+ var z = Ae(D);
2286
+ z && He(z);
2287
2287
  }
2288
- function He(P) {
2289
- Xt(P.item, P.source) && (W = P.item.cloneNode(!0), oe.emit("cloned", W, P.item, "copy")), D = P.source, z = P.item, j = G = M(P.item), oe.dragging = !0, oe.emit("drag", z, D);
2288
+ function He(D) {
2289
+ Xt(D.item, D.source) && (W = D.item.cloneNode(!0), oe.emit("cloned", W, D.item, "copy")), P = D.source, L = D.item, j = G = M(D.item), oe.dragging = !0, oe.emit("drag", L, P);
2290
2290
  }
2291
2291
  function yt() {
2292
2292
  return !1;
2293
2293
  }
2294
2294
  function Qe() {
2295
2295
  if (oe.dragging) {
2296
- var P = W || z;
2297
- st(P, b(P));
2296
+ var D = W || L;
2297
+ st(D, b(D));
2298
2298
  }
2299
2299
  }
2300
2300
  function Ne() {
2301
2301
  ve = !1, Be(!0), it(!0);
2302
2302
  }
2303
- function We(P) {
2303
+ function We(D) {
2304
2304
  if (Ne(), !!oe.dragging) {
2305
- var A = W || z, H = R("clientX", P) || 0, _ = R("clientY", P) || 0, K = p(E, H, _), te = fe(K, H, _);
2306
- te && (W && U.copySortSource || !W || te !== D) ? st(A, te) : U.removeOnSpill ? ut() : V();
2305
+ var z = W || L, H = R("clientX", D) || 0, Y = R("clientY", D) || 0, K = p(T, H, Y), te = fe(K, H, Y);
2306
+ te && (W && U.copySortSource || !W || te !== P) ? st(z, te) : U.removeOnSpill ? ut() : $();
2307
2307
  }
2308
2308
  }
2309
- function st(P, A) {
2310
- var H = b(P);
2311
- W && U.copySortSource && A === D && H.removeChild(z), ue(A) ? oe.emit("cancel", P, D) : oe.emit("drop", P, A, D, G), Q();
2309
+ function st(D, z) {
2310
+ var H = b(D);
2311
+ W && U.copySortSource && z === P && H.removeChild(L), ue(z) ? oe.emit("cancel", D, P) : oe.emit("drop", D, z, P, G), Q();
2312
2312
  }
2313
2313
  function ut() {
2314
2314
  if (oe.dragging) {
2315
- var P = W || z, A = b(P);
2316
- A && A.removeChild(P), oe.emit(W ? "cancel" : "remove", P, A, D), Q();
2315
+ var D = W || L, z = b(D);
2316
+ z && z.removeChild(D), oe.emit(W ? "cancel" : "remove", D, z, P), Q();
2317
2317
  }
2318
2318
  }
2319
- function V(P) {
2319
+ function $(D) {
2320
2320
  if (oe.dragging) {
2321
- var A = arguments.length > 0 ? P : U.revertOnSpill, H = W || z, _ = b(H), K = ue(_);
2322
- K === !1 && A && (W ? _ && _.removeChild(W) : D.insertBefore(H, j)), K || A ? oe.emit("cancel", H, D, D) : oe.emit("drop", H, _, D, G), Q();
2321
+ var z = arguments.length > 0 ? D : U.revertOnSpill, H = W || L, Y = b(H), K = ue(Y);
2322
+ K === !1 && z && (W ? Y && Y.removeChild(W) : P.insertBefore(H, j)), K || z ? oe.emit("cancel", H, P, P) : oe.emit("drop", H, Y, P, G), Q();
2323
2323
  }
2324
2324
  }
2325
2325
  function Q() {
2326
- var P = W || z;
2327
- Ne(), Wt(), qt(), P && s.rm(P, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", P, ce, D), oe.emit("dragend", P, de), D = z = W = j = G = ee = ce = null;
2326
+ var D = W || L;
2327
+ Ne(), Wt(), qt(), D && s.rm(D, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", D, ce, P), oe.emit("dragend", D, de), P = L = W = j = G = ee = ce = null;
2328
2328
  }
2329
- function ue(P, A) {
2329
+ function ue(D, z) {
2330
2330
  var H;
2331
- return A !== void 0 ? H = A : E ? H = G : H = M(W || z), P === D && H === j;
2331
+ return z !== void 0 ? H = z : T ? H = G : H = M(W || L), D === P && H === j;
2332
2332
  }
2333
- function fe(P, A, H) {
2334
- for (var _ = P; _ && !K(); )
2335
- _ = b(_);
2336
- return _;
2333
+ function fe(D, z, H) {
2334
+ for (var Y = D; Y && !K(); )
2335
+ Y = b(Y);
2336
+ return Y;
2337
2337
  function K() {
2338
- var te = Xe(_);
2338
+ var te = Xe(Y);
2339
2339
  if (te === !1)
2340
2340
  return !1;
2341
- var Te = Ft(_, P), Ce = Tt(_, Te, A, H), Se = ue(_, Ce);
2342
- return Se ? !0 : U.accepts(z, _, D, Ce);
2341
+ var Te = Ft(Y, D), Ce = Tt(Y, Te, z, H), Se = ue(Y, Ce);
2342
+ return Se ? !0 : U.accepts(L, Y, P, Ce);
2343
2343
  }
2344
2344
  }
2345
- function Ie(P) {
2346
- if (!E)
2345
+ function Ie(D) {
2346
+ if (!T)
2347
2347
  return;
2348
- P.preventDefault();
2349
- var A = R("clientX", P) || 0, H = R("clientY", P) || 0;
2350
- E.style.left = A - 2 + "px", E.style.top = H - 2 + "px";
2351
- var _ = W || z, K = p(E, A, H), te = fe(K, A, H), Te = te !== null && te !== ce;
2348
+ D.preventDefault();
2349
+ var z = R("clientX", D) || 0, H = R("clientY", D) || 0;
2350
+ T.style.left = z - 2 + "px", T.style.top = H - 2 + "px";
2351
+ var Y = W || L, K = p(T, z, H), te = fe(K, z, H), Te = te !== null && te !== ce;
2352
2352
  (Te || te === null) && (xe(), ce = te, Ee()), Yt(K, H);
2353
- var Ce = b(_);
2354
- if (te === D && W && !U.copySortSource) {
2355
- Ce && Ce.removeChild(_);
2353
+ var Ce = b(Y);
2354
+ if (te === P && W && !U.copySortSource) {
2355
+ Ce && Ce.removeChild(Y);
2356
2356
  return;
2357
2357
  }
2358
2358
  var Se, Me = Ft(te, K);
2359
2359
  if (le = vt(Me, te), Me !== null)
2360
- Se = Tt(te, Me, A, H);
2360
+ Se = Tt(te, Me, z, H);
2361
2361
  else if (U.revertOnSpill === !0 && !W)
2362
- Se = j, te = D;
2362
+ Se = j, te = P;
2363
2363
  else {
2364
- W && Ce && Ce.removeChild(_), W && X && (X.style.display = "none");
2364
+ W && Ce && Ce.removeChild(Y), W && X && (X.style.display = "none");
2365
2365
  return;
2366
2366
  }
2367
- X.style.display = "block", Lt(Se, _, Te), Se ? Ut(Me, Se) : _t(te);
2367
+ X.style.display = "block", Lt(Se, Y, Te), Se ? Ut(Me, Se) : _t(te);
2368
2368
  function pe(he) {
2369
- oe.emit(he, _, ce, D);
2369
+ oe.emit(he, Y, ce, P);
2370
2370
  }
2371
2371
  function Ee() {
2372
2372
  Te && pe("over");
@@ -2375,64 +2375,64 @@ var Jl = { exports: {} };
2375
2375
  ce && pe("out");
2376
2376
  }
2377
2377
  }
2378
- function Lt(P, A, H) {
2379
- (P === A || P === M(A)) && (G = M(A)), (P === null && H || P !== A && P !== M(A)) && (G = P);
2378
+ function Lt(D, z, H) {
2379
+ (D === z || D === M(z)) && (G = M(z)), (D === null && H || D !== z && D !== M(z)) && (G = D);
2380
2380
  }
2381
- function $t(P) {
2382
- s.rm(P, "gu-hide");
2381
+ function $t(D) {
2382
+ s.rm(D, "gu-hide");
2383
2383
  }
2384
- function At(P) {
2385
- oe.dragging && s.add(P, "gu-hide");
2384
+ function At(D) {
2385
+ oe.dragging && s.add(D, "gu-hide");
2386
2386
  }
2387
2387
  function zt() {
2388
- E || (E = document.createElement("div"), E.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;", E.innerHTML = U.getMirrorText && U.getMirrorText(z) || "控件", s.add(E, "gu-mirror"), U.mirrorContainer.appendChild(E), d(h, "add", "mousemove", Ie), s.add(U.mirrorContainer, "gu-unselectable"), oe.emit("cloned", E, z, "mirror"));
2388
+ 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 = U.getMirrorText && U.getMirrorText(L) || "控件", s.add(T, "gu-mirror"), U.mirrorContainer.appendChild(T), d(h, "add", "mousemove", Ie), s.add(U.mirrorContainer, "gu-unselectable"), oe.emit("cloned", T, L, "mirror"));
2389
2389
  }
2390
2390
  function Ht() {
2391
- if (X = document.createElement("div"), s.add(X, "gu-insertion"), z) {
2392
- var P = z.getBoundingClientRect();
2393
- X.style.left = P.left + "px", X.style.top = P.top + "px";
2391
+ if (X = document.createElement("div"), s.add(X, "gu-insertion"), L) {
2392
+ var D = L.getBoundingClientRect();
2393
+ X.style.left = D.left + "px", X.style.top = D.top + "px";
2394
2394
  }
2395
2395
  le = !1, U.mirrorContainer.appendChild(X);
2396
2396
  }
2397
2397
  function Wt() {
2398
- E && (s.rm(U.mirrorContainer, "gu-unselectable"), d(h, "remove", "mousemove", Ie), b(E).removeChild(E), E = null);
2398
+ T && (s.rm(U.mirrorContainer, "gu-unselectable"), d(h, "remove", "mousemove", Ie), b(T).removeChild(T), T = null);
2399
2399
  }
2400
2400
  function qt() {
2401
2401
  X && (b(X).removeChild(X), X = null);
2402
2402
  }
2403
- function Ft(P, A) {
2404
- for (var H = A; H !== P && b(H) !== P; )
2403
+ function Ft(D, z) {
2404
+ for (var H = z; H !== D && b(H) !== D; )
2405
2405
  H = b(H);
2406
2406
  return H === h ? null : H;
2407
2407
  }
2408
- function vt(P, A) {
2409
- if (!A)
2408
+ function vt(D, z) {
2409
+ if (!z)
2410
2410
  return le;
2411
- var H = P || A && A.lastElementChild;
2411
+ var H = D || z && z.lastElementChild;
2412
2412
  if (!H)
2413
2413
  return !0;
2414
- var _ = getComputedStyle(P), K = /^inline/.test(_.getPropertyValue("display")) || /^(left|right)$/.test(_.getPropertyValue("float"));
2414
+ var Y = getComputedStyle(D), K = /^inline/.test(Y.getPropertyValue("display")) || /^(left|right)$/.test(Y.getPropertyValue("float"));
2415
2415
  if (K)
2416
2416
  return !0;
2417
- if (A) {
2418
- var te = getComputedStyle(A), Te = te.getPropertyValue("display");
2417
+ if (z) {
2418
+ var te = getComputedStyle(z), Te = te.getPropertyValue("display");
2419
2419
  if (/flex$/.test(Te)) {
2420
2420
  var Ce = te.getPropertyValue("flex-direction") || "row";
2421
2421
  if (Ce === "row" || Ce === "row-reverse")
2422
- return !Gt(A);
2422
+ return !Gt(z);
2423
2423
  }
2424
2424
  return !1;
2425
2425
  }
2426
2426
  return !0;
2427
2427
  }
2428
- function Gt(P) {
2429
- if (!P.children || !P.children.length)
2428
+ function Gt(D) {
2429
+ if (!D.children || !D.children.length)
2430
2430
  return !1;
2431
- for (const A of Array.from(P.children)) {
2432
- const _ = (A.className && A.className.split(" ") || []).filter((K) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(K));
2433
- if (!_.length)
2431
+ for (const z of Array.from(D.children)) {
2432
+ const Y = (z.className && z.className.split(" ") || []).filter((K) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(K));
2433
+ if (!Y.length)
2434
2434
  return !1;
2435
- for (const K of _) {
2435
+ for (const K of Y) {
2436
2436
  const te = K.slice(K.lastIndexOf("-") + 1);
2437
2437
  if (parseInt(te, 10) !== 12)
2438
2438
  return !1;
@@ -2440,118 +2440,118 @@ var Jl = { exports: {} };
2440
2440
  }
2441
2441
  return !0;
2442
2442
  }
2443
- function Ut(P, A) {
2444
- const H = A.getBoundingClientRect();
2443
+ function Ut(D, z) {
2444
+ const H = z.getBoundingClientRect();
2445
2445
  if (X.style.left = H.left + "px", X.style.top = H.top + "px", le) {
2446
- if (X.style.height = H.height + "px", X.style.width = "4px", P) {
2447
- const _ = P.getBoundingClientRect();
2448
- _.top !== H.top && (X.style.left = _.right + "px", X.style.top = _.top + "px", X.style.height = _.height + "px");
2446
+ if (X.style.height = H.height + "px", X.style.width = "4px", D) {
2447
+ const Y = D.getBoundingClientRect();
2448
+ Y.top !== H.top && (X.style.left = Y.right + "px", X.style.top = Y.top + "px", X.style.height = Y.height + "px");
2449
2449
  }
2450
2450
  } else if (X.style.height = "4px", X.style.width = H.width + "px", ne) {
2451
- const _ = ne.getBoundingClientRect();
2452
- H.top < _.top && (X.style.display = "none");
2451
+ const Y = ne.getBoundingClientRect();
2452
+ H.top < Y.top && (X.style.display = "none");
2453
2453
  }
2454
- A === z && z && (X.style.display = "none");
2454
+ z === L && L && (X.style.display = "none");
2455
2455
  }
2456
- function _t(P) {
2456
+ function _t(D) {
2457
2457
  G = null;
2458
- var A = P.lastElementChild;
2459
- if (A) {
2460
- var H = A.getBoundingClientRect();
2461
- le ? (X.style.left = H.right + "px", X.style.top = H.top + "px", X.style.height = H.height + "px", X.style.width = "4px") : (X.style.left = H.left + "px", X.style.top = H.bottom + "px", X.style.height = "4px", X.style.width = H.width + "px"), A === z && z && (X.style.display = "none");
2458
+ var z = D.lastElementChild;
2459
+ if (z) {
2460
+ var H = z.getBoundingClientRect();
2461
+ le ? (X.style.left = H.right + "px", X.style.top = H.top + "px", X.style.height = H.height + "px", X.style.width = "4px") : (X.style.left = H.left + "px", X.style.top = H.bottom + "px", X.style.height = "4px", X.style.width = H.width + "px"), z === L && L && (X.style.display = "none");
2462
2462
  } else
2463
2463
  X.style.display = "none";
2464
2464
  }
2465
- function Yt(P, A) {
2466
- if (!U.mirrorContainer.contains(P) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = r(P), !ne || !ne.contains(P)))
2465
+ function Yt(D, z) {
2466
+ if (!U.mirrorContainer.contains(D) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = r(D), !ne || !ne.contains(D)))
2467
2467
  return;
2468
- const H = document.querySelector(".dgComponentSelected"), _ = ne.getBoundingClientRect();
2469
- if (A - 30 < _.top && ne.scrollTop > 0) {
2468
+ const H = document.querySelector(".dgComponentSelected"), Y = ne.getBoundingClientRect();
2469
+ if (z - 30 < Y.top && ne.scrollTop > 0) {
2470
2470
  let K = ne.scrollTop < 10 ? ne.scrollTop : 10;
2471
2471
  ne.scrollBy(0, -1 * K), H && ne.contains(H) && (de = de + -1 * K);
2472
2472
  }
2473
- if (A + 30 > _.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
2473
+ if (z + 30 > Y.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
2474
2474
  const K = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
2475
2475
  let te = K < 10 ? K : 10;
2476
2476
  ne.scrollBy(0, te), H && ne.contains(H) && (de = de + te);
2477
2477
  }
2478
2478
  }
2479
- function Tt(P, A, H, _) {
2480
- var K = U.direction === "horizontal", te = U.direction === "mixed", Te = A !== P ? Se() : Ce();
2479
+ function Tt(D, z, H, Y) {
2480
+ var K = U.direction === "horizontal", te = U.direction === "mixed", Te = z !== D ? Se() : Ce();
2481
2481
  return Te;
2482
2482
  function Ce() {
2483
- var pe = P.children.length, Ee, xe, he;
2483
+ var pe = D.children.length, Ee, xe, he;
2484
2484
  for (Ee = 0; Ee < pe; Ee++)
2485
- if (xe = P.children[Ee], he = xe.getBoundingClientRect(), K && he.left + he.width / 2 > H || !te && !K && he.top + he.height / 2 > _ || te && he.left + he.width > H && he.top + he.height > _)
2485
+ if (xe = D.children[Ee], he = xe.getBoundingClientRect(), K && he.left + he.width / 2 > H || !te && !K && he.top + he.height / 2 > Y || te && he.left + he.width > H && he.top + he.height > Y)
2486
2486
  return xe;
2487
2487
  return null;
2488
2488
  }
2489
2489
  function Se() {
2490
- var pe = A.getBoundingClientRect();
2490
+ var pe = z.getBoundingClientRect();
2491
2491
  if (te) {
2492
- var Ee = _ - pe.top, xe = H - pe.left, he = pe.bottom - _, ht = pe.right - H, gt = Math.min(xe, ht, Ee, he), bt;
2492
+ var Ee = Y - pe.top, xe = H - pe.left, he = pe.bottom - Y, ht = pe.right - H, gt = Math.min(xe, ht, Ee, he), bt;
2493
2493
  return le ? bt = ht < xe : bt = he === gt || ht === gt || xe === gt, Me(bt);
2494
2494
  }
2495
- return Me(K ? H > pe.left + B(pe) / 2 : _ > pe.top + O(pe) / 2);
2495
+ return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + O(pe) / 2);
2496
2496
  }
2497
2497
  function Me(pe) {
2498
- return pe ? M(A) : A;
2498
+ return pe ? M(z) : z;
2499
2499
  }
2500
2500
  }
2501
- function Xt(P, A) {
2502
- return typeof U.copy == "boolean" ? U.copy : U.copy(P, A);
2501
+ function Xt(D, z) {
2502
+ return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
2503
2503
  }
2504
2504
  }
2505
- function r(S) {
2506
- const T = Array.from(window.scrollContainerList);
2507
- if (T.length === 1) {
2508
- const E = Array.from(window.scrollContainerList)[0];
2509
- return document.getElementById(E);
2505
+ function r(E) {
2506
+ const F = Array.from(window.scrollContainerList);
2507
+ if (F.length === 1) {
2508
+ const T = Array.from(window.scrollContainerList)[0];
2509
+ return document.getElementById(T);
2510
2510
  }
2511
- const x = m(T);
2512
- for (const E of x)
2513
- if (E.contains(S))
2514
- return E;
2511
+ const S = m(F);
2512
+ for (const T of S)
2513
+ if (T.contains(E))
2514
+ return T;
2515
2515
  return null;
2516
2516
  }
2517
- function m(S) {
2518
- const T = [];
2519
- return S.forEach((x) => {
2520
- const E = document.getElementById(x);
2521
- E && T.push(E);
2522
- }), T.sort((x, E) => x.contains(E) ? 1 : E.contains(x) ? -1 : 0), T;
2517
+ function m(E) {
2518
+ const F = [];
2519
+ return E.forEach((S) => {
2520
+ const T = document.getElementById(S);
2521
+ T && F.push(T);
2522
+ }), F.sort((S, T) => S.contains(T) ? 1 : T.contains(S) ? -1 : 0), F;
2523
2523
  }
2524
- function d(S, T, x, E) {
2525
- var D = {
2524
+ function d(E, F, S, T) {
2525
+ var P = {
2526
2526
  mouseup: "touchend",
2527
2527
  mousedown: "touchstart",
2528
2528
  mousemove: "touchmove"
2529
- }, z = {
2529
+ }, L = {
2530
2530
  mouseup: "pointerup",
2531
2531
  mousedown: "pointerdown",
2532
2532
  mousemove: "pointermove"
2533
- }, Y = {
2533
+ }, _ = {
2534
2534
  mouseup: "MSPointerUp",
2535
2535
  mousedown: "MSPointerDown",
2536
2536
  mousemove: "MSPointerMove"
2537
2537
  };
2538
- l.navigator.pointerEnabled ? u[T](S, z[x], E) : l.navigator.msPointerEnabled ? u[T](S, Y[x], E) : (u[T](S, D[x], E), u[T](S, x, E));
2538
+ l.navigator.pointerEnabled ? u[F](E, L[S], T) : l.navigator.msPointerEnabled ? u[F](E, _[S], T) : (u[F](E, P[S], T), u[F](E, S, T));
2539
2539
  }
2540
- function g(S) {
2541
- if (S.touches !== void 0)
2542
- return S.touches.length;
2543
- if (S.which !== void 0 && S.which !== 0)
2544
- return S.which;
2545
- if (S.buttons !== void 0)
2546
- return S.buttons;
2547
- var T = S.button;
2548
- if (T !== void 0)
2549
- return T & 1 ? 1 : T & 2 ? 3 : T & 4 ? 2 : 0;
2540
+ function g(E) {
2541
+ if (E.touches !== void 0)
2542
+ return E.touches.length;
2543
+ if (E.which !== void 0 && E.which !== 0)
2544
+ return E.which;
2545
+ if (E.buttons !== void 0)
2546
+ return E.buttons;
2547
+ var F = E.button;
2548
+ if (F !== void 0)
2549
+ return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
2550
2550
  }
2551
- function p(S, T, x) {
2552
- S = S || {};
2553
- var E = S.className || "", D;
2554
- return S.className += " gu-hide", D = c.elementFromPoint(T, x), S.className = E, D;
2551
+ function p(E, F, S) {
2552
+ E = E || {};
2553
+ var T = E.className || "", P;
2554
+ return E.className += " gu-hide", P = c.elementFromPoint(F, S), E.className = T, P;
2555
2555
  }
2556
2556
  function w() {
2557
2557
  return !1;
@@ -2559,42 +2559,42 @@ var Jl = { exports: {} };
2559
2559
  function k() {
2560
2560
  return !0;
2561
2561
  }
2562
- function B(S) {
2563
- return S.width || S.right - S.left;
2562
+ function B(E) {
2563
+ return E.width || E.right - E.left;
2564
2564
  }
2565
- function O(S) {
2566
- return S.height || S.bottom - S.top;
2565
+ function O(E) {
2566
+ return E.height || E.bottom - E.top;
2567
2567
  }
2568
- function b(S) {
2569
- return S.parentNode === c ? null : S.parentNode;
2568
+ function b(E) {
2569
+ return E.parentNode === c ? null : E.parentNode;
2570
2570
  }
2571
- function y(S) {
2572
- return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || F(S);
2571
+ function y(E) {
2572
+ return E.tagName === "INPUT" || E.tagName === "TEXTAREA" || E.tagName === "SELECT" || x(E);
2573
2573
  }
2574
- function F(S) {
2575
- return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : F(b(S));
2574
+ function x(E) {
2575
+ return !E || E.contentEditable === "false" ? !1 : E.contentEditable === "true" ? !0 : x(b(E));
2576
2576
  }
2577
- function M(S) {
2578
- return S.nextElementSibling || T();
2579
- function T() {
2580
- var x = S;
2577
+ function M(E) {
2578
+ return E.nextElementSibling || F();
2579
+ function F() {
2580
+ var S = E;
2581
2581
  do
2582
- x = x.nextSibling;
2583
- while (x && x.nodeType !== 1);
2584
- return x;
2582
+ S = S.nextSibling;
2583
+ while (S && S.nodeType !== 1);
2584
+ return S;
2585
2585
  }
2586
2586
  }
2587
- function I(S) {
2588
- return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
2587
+ function I(E) {
2588
+ return E.targetTouches && E.targetTouches.length ? E.targetTouches[0] : E.changedTouches && E.changedTouches.length ? E.changedTouches[0] : E;
2589
2589
  }
2590
- function R(S, T) {
2591
- var x = I(T), E = {
2590
+ function R(E, F) {
2591
+ var S = I(F), T = {
2592
2592
  pageX: "clientX",
2593
2593
  // IE8
2594
2594
  pageY: "clientY"
2595
2595
  // IE8
2596
2596
  };
2597
- return S in E && !(S in x) && E[S] in x && (S = E[S]), x[S];
2597
+ return E in T && !(E in S) && T[E] in S && (E = T[E]), S[E];
2598
2598
  }
2599
2599
  a.exports = f;
2600
2600
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2657,61 +2657,61 @@ var Jl = { exports: {} };
2657
2657
  remove: h,
2658
2658
  fabricate: p
2659
2659
  };
2660
- function r(b, y, F, M) {
2661
- return b.addEventListener(y, F, M);
2660
+ function r(b, y, x, M) {
2661
+ return b.addEventListener(y, x, M);
2662
2662
  }
2663
- function m(b, y, F) {
2664
- return b.attachEvent("on" + y, k(b, y, F));
2663
+ function m(b, y, x) {
2664
+ return b.attachEvent("on" + y, k(b, y, x));
2665
2665
  }
2666
- function d(b, y, F, M) {
2667
- return b.removeEventListener(y, F, M);
2666
+ function d(b, y, x, M) {
2667
+ return b.removeEventListener(y, x, M);
2668
2668
  }
2669
- function g(b, y, F) {
2670
- var M = B(b, y, F);
2669
+ function g(b, y, x) {
2670
+ var M = B(b, y, x);
2671
2671
  if (M)
2672
2672
  return b.detachEvent("on" + y, M);
2673
2673
  }
2674
- function p(b, y, F) {
2674
+ function p(b, y, x) {
2675
2675
  var M = u.indexOf(y) === -1 ? R() : I();
2676
2676
  b.dispatchEvent ? b.dispatchEvent(M) : b.fireEvent("on" + y, M);
2677
2677
  function I() {
2678
- var S;
2679
- return s.createEvent ? (S = s.createEvent("Event"), S.initEvent(y, !0, !0)) : s.createEventObject && (S = s.createEventObject()), S;
2678
+ var E;
2679
+ return s.createEvent ? (E = s.createEvent("Event"), E.initEvent(y, !0, !0)) : s.createEventObject && (E = s.createEventObject()), E;
2680
2680
  }
2681
2681
  function R() {
2682
- return new i(y, { detail: F });
2682
+ return new i(y, { detail: x });
2683
2683
  }
2684
2684
  }
2685
- function w(b, y, F) {
2685
+ function w(b, y, x) {
2686
2686
  return function(I) {
2687
2687
  var R = I || l.event;
2688
2688
  R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
2689
2689
  R.returnValue = !1;
2690
2690
  }, R.stopPropagation = R.stopPropagation || function() {
2691
2691
  R.cancelBubble = !0;
2692
- }, R.which = R.which || R.keyCode, F.call(b, R);
2692
+ }, R.which = R.which || R.keyCode, x.call(b, R);
2693
2693
  };
2694
2694
  }
2695
- function k(b, y, F) {
2696
- var M = B(b, y, F) || w(b, y, F);
2695
+ function k(b, y, x) {
2696
+ var M = B(b, y, x) || w(b, y, x);
2697
2697
  return f.push({
2698
2698
  wrapper: M,
2699
2699
  element: b,
2700
2700
  type: y,
2701
- fn: F
2701
+ fn: x
2702
2702
  }), M;
2703
2703
  }
2704
- function B(b, y, F) {
2705
- var M = O(b, y, F);
2704
+ function B(b, y, x) {
2705
+ var M = O(b, y, x);
2706
2706
  if (M) {
2707
2707
  var I = f[M].wrapper;
2708
2708
  return f.splice(M, 1), I;
2709
2709
  }
2710
2710
  }
2711
- function O(b, y, F) {
2711
+ function O(b, y, x) {
2712
2712
  var M, I;
2713
2713
  for (M = 0; M < f.length; M++)
2714
- if (I = f[M], I.element === b && I.type === y && I.fn === F)
2714
+ if (I = f[M], I.element === b && I.type === y && I.fn === x)
2715
2715
  return M;
2716
2716
  }
2717
2717
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2925,10 +2925,10 @@ const Ql = {
2925
2925
  };
2926
2926
  return O[e.animate] = !1, O[l] = u.value, O["toasty-type-" + i.value.type] = !0, i.value.theme && (O[i.value.theme] = !0), O;
2927
2927
  }), f = N(() => {
2928
- const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, F = {
2928
+ const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
2929
2929
  "f-icon": !0
2930
2930
  };
2931
- return F[y] = !0, F;
2931
+ return x[y] = !0, x;
2932
2932
  }), r = N(() => i.value.title || i.value.message), m = N(() => e.showCloseButton), d = N(() => !!i.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
2933
2933
  wordBreak: "keep-all",
2934
2934
  overflowWrap: "break-word"
@@ -3325,47 +3325,47 @@ function ti(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
3325
3325
  } = i, {
3326
3326
  gridDataStyle: b,
3327
3327
  leftFixedGridDataStyle: y,
3328
- rightFixedGridDataStyle: F
3328
+ rightFixedGridDataStyle: x
3329
3329
  } = m, {
3330
3330
  renderDataRow: M
3331
3331
  } = Ya(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [M];
3332
- function R(D, z) {
3333
- const Y = w(D);
3334
- return p.value.filter(($) => $.visible !== !1).map(($, j) => I[$.type]($, Y, z, j));
3332
+ function R(P, L) {
3333
+ const _ = w(P);
3334
+ return p.value.filter((V) => V.visible !== !1).map((V, j) => I[V.type](V, _, L, j));
3335
3335
  }
3336
- function S() {
3336
+ function E() {
3337
3337
  return v("div", {
3338
3338
  ref: a,
3339
3339
  class: "fv-grid-content-left-fixed"
3340
3340
  }, [v("div", {
3341
3341
  class: "fv-grid-data",
3342
3342
  style: y.value
3343
- }, [R(k.value.leftColumns.filter((D) => D.visible), "left")])]);
3343
+ }, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
3344
3344
  }
3345
- function T() {
3345
+ function F() {
3346
3346
  return v("div", {
3347
3347
  ref: n,
3348
3348
  class: "fv-grid-content-primary"
3349
3349
  }, [v("div", {
3350
3350
  class: "fv-grid-data",
3351
3351
  style: b.value
3352
- }, [R(k.value.primaryColumns.filter((D) => D.visible), "primary")])]);
3352
+ }, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
3353
3353
  }
3354
- function x() {
3354
+ function S() {
3355
3355
  return v("div", {
3356
3356
  ref: o,
3357
3357
  class: "fv-grid-content-right-fixed"
3358
3358
  }, [v("div", {
3359
3359
  class: "fv-grid-data",
3360
- style: F.value
3361
- }, [R(k.value.rightColumns.filter((D) => D.visible), "right")])]);
3360
+ style: x.value
3361
+ }, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
3362
3362
  }
3363
- function E() {
3364
- const D = [];
3365
- return B.value && D.push(S()), D.push(T()), O.value && D.push(x()), D;
3363
+ function T() {
3364
+ const P = [];
3365
+ return B.value && P.push(E()), P.push(F()), O.value && P.push(S()), P;
3366
3366
  }
3367
3367
  return {
3368
- renderDataArea: E
3368
+ renderDataArea: T
3369
3369
  };
3370
3370
  }
3371
3371
  const ni = /* @__PURE__ */ ae({
@@ -3382,18 +3382,18 @@ const ni = /* @__PURE__ */ ae({
3382
3382
  showLoading: O,
3383
3383
  renderLoading: b
3384
3384
  } = Ka(e, s), y = eo(e, /* @__PURE__ */ new Map(), w, k, i), {
3385
- dataView: F
3385
+ dataView: x
3386
3386
  } = y, M = to(e, y, i, m, t), {
3387
3387
  showSelection: I,
3388
3388
  selectedValues: R
3389
- } = M, S = no(e, m, y, i, M, t), T = N(() => e.disabled), x = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), E = ao(e, y), {
3390
- shouldRenderPagination: D
3391
- } = E, {
3392
- containerStyleObject: z
3393
- } = oo(e), Y = lo(e), {
3394
- applyCommands: $
3395
- } = Y;
3396
- $(l);
3389
+ } = M, E = no(e, m, y, i, M, t), F = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = ao(e, y), {
3390
+ shouldRenderPagination: P
3391
+ } = T, {
3392
+ containerStyleObject: L
3393
+ } = oo(e), _ = lo(e), {
3394
+ applyCommands: V
3395
+ } = _;
3396
+ V(l);
3397
3397
  const {
3398
3398
  applyColumnSetting: j,
3399
3399
  removeColumnSetting: G
@@ -3405,11 +3405,11 @@ const ni = /* @__PURE__ */ ae({
3405
3405
  updateColumnRenderContext: X
3406
3406
  } = W;
3407
3407
  ce(y, ee);
3408
- const le = uo(e, ve), de = co(e, t, M, i), ne = fo(e, t, i, de, m), U = po(e), oe = mo(e, ne, U), Xe = yo(e, y, ne, k, i, U, oe), $e = vo(e, l, y, x, 0, Xe), {
3408
+ const le = uo(e, ve), de = co(e, t, M, i), ne = fo(e, t, i, de, m), U = po(e), oe = mo(e, ne, U), Xe = yo(e, y, ne, k, i, U, oe), $e = vo(e, l, y, S, 0, Xe), {
3409
3409
  getVisualData: Be
3410
3410
  } = $e, it = ho(e, ve), Je = go(e, M), {
3411
3411
  sidebarWidth: rt
3412
- } = Je, se = bo(e, y, m, ve, $e, x, 0, rt), {
3412
+ } = Je, se = bo(e, y, m, ve, $e, S, 0, rt), {
3413
3413
  onWheel: mt,
3414
3414
  dataGridWidth: Ae,
3415
3415
  viewPortHeight: ze,
@@ -3418,7 +3418,7 @@ const ni = /* @__PURE__ */ ae({
3418
3418
  updateVisibleRowsOnLatestVisibleScope: yt
3419
3419
  } = se, Qe = Co(e, ve, c, Oe, le), {
3420
3420
  calculateColumnsSize: Ne
3421
- } = Qe, We = wo(), st = ko(c, r, y, We, se), ut = So(e, t, W, y, le, p, se), V = N(() => {
3421
+ } = Qe, We = wo(), st = ko(c, r, y, We, se), ut = So(e, t, W, y, le, p, se), $ = N(() => {
3422
3422
  const q = {
3423
3423
  "fv-grid": !0,
3424
3424
  "fv-grid-bordered": e.showBorder,
@@ -3432,7 +3432,7 @@ const ni = /* @__PURE__ */ ae({
3432
3432
  "fv-grid-wrap-content": g.value
3433
3433
  })), {
3434
3434
  renderDataArea: ue
3435
- } = ti(e, t, h, f, r, it, W, y, ne, k, de, M, S, se, $e, U, m), {
3435
+ } = ti(e, t, h, f, r, it, W, y, ne, k, de, M, E, se, $e, U, m), {
3436
3436
  renderGridHeader: fe,
3437
3437
  renderGridColumnResizeOverlay: Ie,
3438
3438
  shouldShowHeader: Lt
@@ -3453,7 +3453,7 @@ const ni = /* @__PURE__ */ ae({
3453
3453
  }
3454
3454
  }
3455
3455
  be(() => {
3456
- c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, x.value + 0 - 1), _a(c.value, Wt), Ne(), Ue(() => {
3456
+ c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, S.value + 0 - 1), _a(c.value, Wt), Ne(), Ue(() => {
3457
3457
  c.value && (Ae.value = c.value.clientWidth), h.value && (Oe.value = h.value.clientWidth, ze.value = h.value.clientHeight);
3458
3458
  })), O.value && b();
3459
3459
  }), kt(() => {
@@ -3472,19 +3472,19 @@ const ni = /* @__PURE__ */ ae({
3472
3472
  }
3473
3473
  function Gt() {
3474
3474
  const q = vt();
3475
- y.insertNewDataItem(q), m.value = Be(0, x.value + 0 - 1);
3475
+ y.insertNewDataItem(q), m.value = Be(0, S.value + 0 - 1);
3476
3476
  }
3477
3477
  function Ut() {
3478
3478
  const q = vt();
3479
- y.insertNewChildDataItem(q), m.value = Be(0, x.value + 0 - 1);
3479
+ y.insertNewChildDataItem(q), m.value = Be(0, S.value + 0 - 1);
3480
3480
  }
3481
3481
  function _t(q, J) {
3482
3482
  const me = m.value.find((Fe) => Fe.raw[u.value] === J), ge = me ? me.dataIndex - 1 : -1;
3483
3483
  y.insertNewChildDataItems(q, ge);
3484
3484
  }
3485
3485
  function Yt() {
3486
- const q = vt(), J = S.getNextSelectableHierarchyItemId(q);
3487
- y.removeHierarchyDataItem(q), m.value = Be(0, x.value + 0 - 1), J && M.selectItemById(J);
3486
+ const q = vt(), J = E.getNextSelectableHierarchyItemId(q);
3487
+ y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && M.selectItemById(J);
3488
3488
  }
3489
3489
  function Tt(q) {
3490
3490
  ne.onEditingRow(q);
@@ -3492,19 +3492,19 @@ const ni = /* @__PURE__ */ ae({
3492
3492
  function Xt(q) {
3493
3493
  ne.acceptEditingRow(q);
3494
3494
  }
3495
- function P(q) {
3495
+ function D(q) {
3496
3496
  ne.cancelEditingRow(q);
3497
3497
  }
3498
- function A(q) {
3499
- q && (l.value = q, $(l), X(l.value), ce(y, ee), Ne());
3498
+ function z(q) {
3499
+ q && (l.value = q, V(l), X(l.value), ce(y, ee), Ne());
3500
3500
  }
3501
3501
  Z(() => e.columns, (q) => {
3502
- A(q);
3502
+ z(q);
3503
3503
  });
3504
3504
  function H(q, J) {
3505
3505
  q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
3506
3506
  }
3507
- function _(q) {
3507
+ function Y(q) {
3508
3508
  M.selectItemById(q);
3509
3509
  }
3510
3510
  function K(q) {
@@ -3536,7 +3536,7 @@ const ni = /* @__PURE__ */ ae({
3536
3536
  return M.currentSelectedDataId.value;
3537
3537
  }
3538
3538
  function ht(q, J, me) {
3539
- const ge = F.value.find((Fe) => Fe[u.value] === q);
3539
+ const ge = x.value.find((Fe) => Fe[u.value] === q);
3540
3540
  if (ge) {
3541
3541
  if (Object.keys(ge).forEach((ye) => {
3542
3542
  Object.prototype.hasOwnProperty.call(J, ye) && (ge[ye] = J[ye]);
@@ -3577,7 +3577,7 @@ const ni = /* @__PURE__ */ ae({
3577
3577
  return B.value;
3578
3578
  }
3579
3579
  Z(() => e.showSetting, (q, J) => {
3580
- q !== J && (q ? j(l) : G(l), A(l.value));
3580
+ q !== J && (q ? j(l) : G(l), z(l.value));
3581
3581
  });
3582
3582
  function ka(q) {
3583
3583
  return m.value.filter((J) => q.includes(J.raw[e.idField]));
@@ -3599,10 +3599,10 @@ const ni = /* @__PURE__ */ ae({
3599
3599
  removeDataItem: Yt,
3600
3600
  editDataItem: Tt,
3601
3601
  acceptDataItem: Xt,
3602
- cancelDataItem: P,
3603
- updateColumns: A,
3602
+ cancelDataItem: D,
3603
+ updateColumns: z,
3604
3604
  updateDataSource: H,
3605
- selectItemById: _,
3605
+ selectItemById: Y,
3606
3606
  selectItemByIds: Te,
3607
3607
  getSelectedItems: Ce,
3608
3608
  clearSelection: Se,
@@ -3622,14 +3622,14 @@ const ni = /* @__PURE__ */ ae({
3622
3622
  const q = {};
3623
3623
  return se.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
3624
3624
  }), Ta = N(() => ({
3625
- ...z.value,
3625
+ ...L.value,
3626
3626
  borderRadius: "5px"
3627
- })), {
3628
- renderDataGridPagination: Yu
3629
- } = Eo(e, t, y, se, E, M), Ba = N(() => ({
3627
+ }));
3628
+ Eo(e, t, y, se, T, M);
3629
+ const Ba = N(() => ({
3630
3630
  "d-flex": !0,
3631
- "justify-content-between": D.value && I.value,
3632
- "justify-content-end": D.value && !I.value,
3631
+ "justify-content-between": P.value && I.value,
3632
+ "justify-content-end": P.value && !I.value,
3633
3633
  "position-relative": !0
3634
3634
  })), Oa = N(() => ({
3635
3635
  "d-flex": !0,
@@ -3639,7 +3639,7 @@ const ni = /* @__PURE__ */ ae({
3639
3639
  } = Do(e, y, W);
3640
3640
  return () => v("div", {
3641
3641
  ref: s,
3642
- class: V.value,
3642
+ class: $.value,
3643
3643
  style: Ta.value,
3644
3644
  onWheel: mt
3645
3645
  }, [c.value && Lt.value && fe(), v("div", {
@@ -3652,7 +3652,7 @@ const ni = /* @__PURE__ */ ae({
3652
3652
  class: Ba.value
3653
3653
  }, [I.value && v("div", {
3654
3654
  class: Oa.value
3655
- }, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ie(), T.value && At()]);
3655
+ }, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ie(), F.value && At()]);
3656
3656
  }
3657
3657
  });
3658
3658
  Nt(ni);
@@ -3795,7 +3795,7 @@ const li = "https://json-schema.org/draft/2020-12/schema", ii = "https://farris-
3795
3795
  };
3796
3796
  Pe(gi, fi, ai, oi, hi);
3797
3797
  function Kn(e, t, n) {
3798
- var S;
3798
+ var E;
3799
3799
  const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
3800
3800
  let i;
3801
3801
  function u() {
@@ -3810,117 +3810,117 @@ function Kn(e, t, n) {
3810
3810
  function h() {
3811
3811
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
3812
3812
  }
3813
- function f(T) {
3814
- if (!T || !T.value)
3813
+ function f(F) {
3814
+ if (!F || !F.value)
3815
3815
  return null;
3816
- if (T.value.schema && T.value.schema.type === "component")
3817
- return T.value;
3818
- const x = C(T == null ? void 0 : T.value.parent), E = f(x);
3819
- return E || null;
3816
+ if (F.value.schema && F.value.schema.type === "component")
3817
+ return F.value;
3818
+ const S = C(F == null ? void 0 : F.value.parent), T = f(S);
3819
+ return T || null;
3820
3820
  }
3821
- function r(T = t) {
3822
- var z;
3821
+ function r(F = t) {
3822
+ var L;
3823
3823
  if (n != null && n.getDraggableDesignItemElement)
3824
- return n.getDraggableDesignItemElement(T);
3825
- const { componentInstance: x, designerItemElementRef: E } = T;
3826
- if (!x || !x.value)
3824
+ return n.getDraggableDesignItemElement(F);
3825
+ const { componentInstance: S, designerItemElementRef: T } = F;
3826
+ if (!S || !S.value)
3827
3827
  return null;
3828
- const { getCustomButtons: D } = x.value;
3829
- return x.value.canMove || D && ((z = D()) != null && z.length) ? E : r(T.parent);
3828
+ const { getCustomButtons: P } = S.value;
3829
+ return S.value.canMove || P && ((L = P()) != null && L.length) ? T : r(F.parent);
3830
3830
  }
3831
- function m(T) {
3832
- return !!n && n.canAccepts(T);
3831
+ function m(F) {
3832
+ return !!n && n.canAccepts(F);
3833
3833
  }
3834
3834
  function d() {
3835
3835
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
3836
3836
  }
3837
3837
  function g() {
3838
3838
  }
3839
- function p(T, x) {
3840
- var E;
3841
- !T || !x || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(T, x), (E = t == null ? void 0 : t.setupContext) == null || E.emit("dragEnd"));
3839
+ function p(F, S) {
3840
+ var T;
3841
+ !F || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, S), (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd"));
3842
3842
  }
3843
- function w(T, x) {
3844
- const { componentType: E } = T;
3845
- let D = La(E, T, x);
3846
- n && n.onResolveNewComponentSchema && (D = n.onResolveNewComponentSchema(T, D));
3847
- const z = E.toLowerCase().replace(/-/g, "_");
3848
- return D && !D.id && D.type === E && (D.id = `${z}_${Math.random().toString().slice(2, 6)}`), D;
3843
+ function w(F, S) {
3844
+ const { componentType: T } = F;
3845
+ let P = La(T, F, S);
3846
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(F, P));
3847
+ const L = T.toLowerCase().replace(/-/g, "_");
3848
+ return P && !P.id && P.type === T && (P.id = `${L}_${Math.random().toString().slice(2, 6)}`), P;
3849
3849
  }
3850
- function k(T) {
3851
- T && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(T);
3850
+ function k(F) {
3851
+ F && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(F);
3852
3852
  }
3853
- function B(...T) {
3853
+ function B(...F) {
3854
3854
  if (n && n.getPropsConfig)
3855
- return n.getPropsConfig(...T);
3855
+ return n.getPropsConfig(...F);
3856
3856
  }
3857
- function O(T) {
3858
- if (!T)
3857
+ function O(F) {
3858
+ if (!F)
3859
3859
  return;
3860
- const x = t == null ? void 0 : t.schema, { formSchemaUtils: E } = T;
3861
- if (x && E.getExpressions().length) {
3862
- const D = E.getExpressions().findIndex((z) => z.target === x.id);
3863
- D > -1 && E.getExpressions().splice(D, 1);
3860
+ const S = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
3861
+ if (S && T.getExpressions().length) {
3862
+ const P = T.getExpressions().findIndex((L) => L.target === S.id);
3863
+ P > -1 && T.getExpressions().splice(P, 1);
3864
3864
  }
3865
3865
  }
3866
- function b(T) {
3867
- if (!T || !(t != null && t.schema))
3866
+ function b(F) {
3867
+ if (!F || !(t != null && t.schema))
3868
3868
  return;
3869
- const x = t.schema, { formSchemaUtils: E } = T;
3870
- E.removeCommunicationInComponent(x);
3871
- }
3872
- function y(T) {
3873
- n && n.onRemoveComponent && n.onRemoveComponent(), O(T), b(T), t != null && t.schema.contents && t.schema.contents.map((x) => {
3874
- let E = x.id;
3875
- x.type === "component-ref" && (E = x.component);
3876
- const D = e.value.querySelectorAll(`#${E}-design-item`);
3877
- D != null && D.length && Array.from(D).map((z) => {
3878
- var Y;
3879
- (Y = z == null ? void 0 : z.componentInstance) != null && Y.value.onRemoveComponent && z.componentInstance.value.onRemoveComponent(T);
3869
+ const S = t.schema, { formSchemaUtils: T } = F;
3870
+ T.removeCommunicationInComponent(S);
3871
+ }
3872
+ function y(F) {
3873
+ n && n.onRemoveComponent && n.onRemoveComponent(), O(F), b(F), t != null && t.schema.contents && t.schema.contents.map((S) => {
3874
+ let T = S.id;
3875
+ S.type === "component-ref" && (T = S.component);
3876
+ const P = e.value.querySelectorAll(`#${T}-design-item`);
3877
+ P != null && P.length && Array.from(P).map((L) => {
3878
+ var _;
3879
+ (_ = L == null ? void 0 : L.componentInstance) != null && _.value.onRemoveComponent && L.componentInstance.value.onRemoveComponent(F);
3880
3880
  });
3881
3881
  });
3882
3882
  }
3883
- function F() {
3883
+ function x() {
3884
3884
  if (n && n.getCustomButtons)
3885
3885
  return n.getCustomButtons();
3886
3886
  }
3887
- function M(T) {
3888
- var E, D;
3889
- if (!((E = t == null ? void 0 : t.schema) != null && E.id))
3887
+ function M(F) {
3888
+ var T, P;
3889
+ if (!((T = t == null ? void 0 : t.schema) != null && T.id))
3890
3890
  return;
3891
- if (!i && T && (i = T.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
3891
+ if (!i && F && (i = F.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
3892
3892
  n.setComponentBasicInfoMap();
3893
3893
  return;
3894
3894
  }
3895
- let x = "";
3895
+ let S = "";
3896
3896
  if (n != null && n.getComponentTitle)
3897
- x = n.getComponentTitle();
3897
+ S = n.getComponentTitle();
3898
3898
  else {
3899
- const { text: z, title: Y, label: $, mainTitle: j, name: G, type: W } = t.schema;
3900
- x = z || Y || $ || j || G || ((D = L[W]) == null ? void 0 : D.name);
3899
+ const { text: L, title: _, label: V, mainTitle: j, name: G, type: W } = t.schema;
3900
+ S = L || _ || V || j || G || ((P = A[W]) == null ? void 0 : P.name);
3901
3901
  }
3902
- x && i.getControlBasicInfoMap().set(t.schema.id, {
3903
- componentTitle: x,
3904
- parentPathName: x
3902
+ S && i.getControlBasicInfoMap().set(t.schema.id, {
3903
+ componentTitle: S,
3904
+ parentPathName: S
3905
3905
  });
3906
3906
  }
3907
- function I(T) {
3908
- var z;
3909
- const { changeObject: x } = T, { propertyID: E, propertyValue: D } = x;
3910
- if (["text", "title", "label", "name", "mainTitle"].includes((z = T == null ? void 0 : T.changeObject) == null ? void 0 : z.propertyID) && E && D && (M(), i)) {
3911
- const Y = i.getControlBasicInfoMap(), $ = Y.keys().toArray().filter((j) => {
3907
+ function I(F) {
3908
+ var L;
3909
+ const { changeObject: S } = F, { propertyID: T, propertyValue: P } = S;
3910
+ if (["text", "title", "label", "name", "mainTitle"].includes((L = F == null ? void 0 : F.changeObject) == null ? void 0 : L.propertyID) && T && P && (M(), i)) {
3911
+ const _ = i.getControlBasicInfoMap(), V = _.keys().toArray().filter((j) => {
3912
3912
  var G, W;
3913
- return ((G = Y.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
3913
+ return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
3914
3914
  });
3915
- $ != null && $.length && $.forEach((j) => {
3916
- const G = Y.get(j).parentPathName.split(" > ");
3917
- G[0] = D, Y.get(j).parentPathName = G.join(" > ");
3915
+ V != null && V.length && V.forEach((j) => {
3916
+ const G = _.get(j).parentPathName.split(" > ");
3917
+ G[0] = P, _.get(j).parentPathName = G.join(" > ");
3918
3918
  });
3919
3919
  }
3920
3920
  }
3921
- function R(T) {
3922
- if (I(T), n && n.onPropertyChanged)
3923
- return n.onPropertyChanged(T);
3921
+ function R(F) {
3922
+ if (I(F), n && n.onPropertyChanged)
3923
+ return n.onPropertyChanged(F);
3924
3924
  }
3925
3925
  return l.value = {
3926
3926
  canMove: u(),
@@ -3929,7 +3929,7 @@ function Kn(e, t, n) {
3929
3929
  canNested: !h(),
3930
3930
  contents: t == null ? void 0 : t.schema.contents,
3931
3931
  elementRef: e,
3932
- parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
3932
+ parent: (E = t == null ? void 0 : t.parent) == null ? void 0 : E.componentInstance,
3933
3933
  schema: t == null ? void 0 : t.schema,
3934
3934
  styles: a,
3935
3935
  designerClass: o,
@@ -3945,7 +3945,7 @@ function Kn(e, t, n) {
3945
3945
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
3946
3946
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
3947
3947
  onRemoveComponent: y,
3948
- getCustomButtons: F,
3948
+ getCustomButtons: x,
3949
3949
  onPropertyChanged: R,
3950
3950
  setComponentBasicInfoMap: M,
3951
3951
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
@@ -4170,7 +4170,7 @@ function Pi() {
4170
4170
  if (!a)
4171
4171
  return !1;
4172
4172
  const o = a.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
4173
- return !((t.componentCategory === "input" || t.componentType === "form-group") && ![L["response-layout-item"].type, L["response-form"].type, L.fieldset.type].includes(o) || (t.componentType === L.tabs.type || t.componentType === L.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![L["content-container"].type, L["splitter-pane"].type, L["response-layout-item"].type].includes(o)) || [L["query-solution"].type, L["filter-bar"].type].includes(t.componentType) || t.componentType === L.fieldset.type && o !== L["response-form"].type);
4173
+ return !((t.componentCategory === "input" || t.componentType === "form-group") && ![A["response-layout-item"].type, A["response-form"].type, A.fieldset.type].includes(o) || (t.componentType === A.tabs.type || t.componentType === A.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![A["content-container"].type, A["splitter-pane"].type, A["response-layout-item"].type].includes(o)) || [A["query-solution"].type, A["filter-bar"].type].includes(t.componentType) || t.componentType === A.fieldset.type && o !== A["response-form"].type);
4174
4174
  }
4175
4175
  return {
4176
4176
  basalDragulaRuleForContainer: e
@@ -4768,44 +4768,44 @@ function ir(e, t, n, a, o) {
4768
4768
  "f-state-focus": d.value,
4769
4769
  "input-group--has-clear": e.enableClear && c.value
4770
4770
  }));
4771
- function w(S, T = !0) {
4772
- n.value = S, T && (t.emit("change", S), t.emit("update:modelValue", S));
4771
+ function w(E, F = !0) {
4772
+ n.value = E, F && (t.emit("change", E), t.emit("update:modelValue", E));
4773
4773
  }
4774
- function k(S) {
4775
- u.value = !1, w(S, !0);
4774
+ function k(E) {
4775
+ u.value = !1, w(E, !0);
4776
4776
  }
4777
4777
  Z(
4778
4778
  () => e.modelValue,
4779
- (S) => {
4780
- n.value = S;
4779
+ (E) => {
4780
+ n.value = E;
4781
4781
  }
4782
4782
  );
4783
- function B(S) {
4784
- m.value = !1, t.emit("blur", S), S.stopPropagation();
4783
+ function B(E) {
4784
+ m.value = !1, t.emit("blur", E), E.stopPropagation();
4785
4785
  }
4786
- function O(S) {
4787
- t.emit("click", S), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
4786
+ function O(E) {
4787
+ t.emit("click", E), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
4788
4788
  }
4789
- function b(S) {
4790
- !e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", S), i.value && !u.value && o.popup()));
4789
+ function b(E) {
4790
+ !e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", E), i.value && !u.value && o.popup()));
4791
4791
  }
4792
- function y(S) {
4793
- t.emit("input", S);
4794
- const T = S.target.value;
4795
- a.value = T, n.value !== T && w(T, e.updateOn === "change"), l.value && !u.value && o.popup();
4792
+ function y(E) {
4793
+ t.emit("input", E);
4794
+ const F = E.target.value;
4795
+ a.value = F, n.value !== F && w(F, e.updateOn === "change"), l.value && !u.value && o.popup();
4796
4796
  }
4797
- function F(S) {
4798
- S.target.tagName !== "INPUT" && S.preventDefault(), S.stopPropagation();
4797
+ function x(E) {
4798
+ E.target.tagName !== "INPUT" && E.preventDefault(), E.stopPropagation();
4799
4799
  }
4800
- function M(S) {
4801
- t.emit("keydown", S);
4800
+ function M(E) {
4801
+ t.emit("keydown", E);
4802
4802
  }
4803
- function I(S) {
4804
- S.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", S);
4803
+ function I(E) {
4804
+ E.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", E);
4805
4805
  }
4806
- function R(S) {
4807
- const T = S.target.value;
4808
- S.stopPropagation(), w(T);
4806
+ function R(E) {
4807
+ const F = E.target.value;
4808
+ E.stopPropagation(), w(F);
4809
4809
  }
4810
4810
  return {
4811
4811
  hasFocusedTextBox: d,
@@ -4823,7 +4823,7 @@ function ir(e, t, n, a, o) {
4823
4823
  onInput: y,
4824
4824
  onKeyDownTextBox: M,
4825
4825
  onKeyUpTextBox: I,
4826
- onMouseDownTextBox: F,
4826
+ onMouseDownTextBox: x,
4827
4827
  onTextBoxValueChange: R
4828
4828
  };
4829
4829
  }
@@ -4891,18 +4891,18 @@ function sr(e, t, n) {
4891
4891
  "border-bottom-right-radius": "6px"
4892
4892
  }));
4893
4893
  be(() => {
4894
- var F, M;
4895
- e.selectOnCreated && ((F = a.value) == null || F.select()), e.focusOnCreated && ((M = a.value) == null || M.focus({
4894
+ var x, M;
4895
+ e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((M = a.value) == null || M.focus({
4896
4896
  preventScroll: !0
4897
4897
  })), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
4898
4898
  });
4899
- const B = C(!1), O = (F) => {
4900
- F.preventDefault(), B.value = !0;
4901
- }, b = (F) => {
4902
- F.preventDefault(), B.value = !1, f(F);
4899
+ const B = C(!1), O = (x) => {
4900
+ x.preventDefault(), B.value = !0;
4901
+ }, b = (x) => {
4902
+ x.preventDefault(), B.value = !1, f(x);
4903
4903
  };
4904
- function y(F) {
4905
- B.value || f(F);
4904
+ function y(x) {
4905
+ B.value || f(x);
4906
4906
  }
4907
4907
  return () => v("input", {
4908
4908
  id: e.id ? e.id + "-textbox" : void 0,
@@ -5058,46 +5058,46 @@ const Rt = /* @__PURE__ */ ae({
5058
5058
  } = r, p = lr(e, t, o, m, f, r), {
5059
5059
  onMouseEnterTextBox: w,
5060
5060
  onMouseLeaveTextBox: k
5061
- } = p, B = N(() => {
5062
- const D = {
5061
+ } = p, B = C(!1), O = N(() => {
5062
+ const L = {
5063
5063
  "f-button-edit": !0,
5064
5064
  "f-cmp-inputgroup": !0,
5065
5065
  "f-button-edit-nowrap": !e.wrapText
5066
5066
  };
5067
- return a.value && a.value.split(" ").reduce((z, Y) => (z[Y] = !0, z), D), D;
5068
- }), O = N(() => ({
5067
+ return a.value && a.value.split(" ").reduce((_, V) => (_[V] = !0, _), L), L;
5068
+ }), b = N(() => ({
5069
5069
  overflow: e.wrapText ? "hidden" : ""
5070
- })), b = N(() => ({
5070
+ })), y = N(() => ({
5071
5071
  paddingLeft: "3px",
5072
5072
  backgroundColor: "#fff"
5073
5073
  }));
5074
- function y() {
5074
+ function x() {
5075
5075
  if (!e.multiSelect || e.inputType !== "tag" || !n.value)
5076
5076
  return 0;
5077
- let D = 0;
5078
- const z = Array.from(n.value.querySelectorAll(".farris-tag-item"));
5079
- return z && z.length && (D = z.map((Y) => Y.offsetTop).filter((Y) => Y > 20).length), D;
5077
+ let L = 0;
5078
+ const _ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
5079
+ return _ && _.length && (L = _.map((V) => V.offsetTop).filter((V) => V > 20).length), L;
5080
5080
  }
5081
- const F = C(y());
5081
+ const M = C(x());
5082
5082
  an(() => {
5083
- F.value = y();
5083
+ M.value = x();
5084
5084
  });
5085
- function M() {
5086
- return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [ur(e, o, r)(), !!F.value && v("div", {
5085
+ function I() {
5086
+ return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [ur(e, o, r)(), !!M.value && v("div", {
5087
5087
  class: "d-flex flex-row mr-2 more-tags",
5088
5088
  "more-tags": !0
5089
5089
  }, [v("span", {
5090
5090
  class: "multi--more-text"
5091
- }, [ie("+"), F.value])])]) : sr(e, o, r);
5091
+ }, [ie("+"), M.value])])]) : sr(e, o, r);
5092
5092
  }
5093
- let I = M();
5093
+ let R = I();
5094
5094
  Z([() => e.multiSelect, () => e.inputType], () => {
5095
- I = M();
5095
+ R = I();
5096
5096
  });
5097
5097
  const {
5098
- renderButtonGroup: R,
5099
- buttonHandleElement: S
5100
- } = cr(e, t, h, p), T = dr(e, t, l), x = C(i.value), E = {
5098
+ renderButtonGroup: E,
5099
+ buttonHandleElement: F
5100
+ } = cr(e, t, h, p), S = dr(e, t, l), T = C(i.value), P = {
5101
5101
  displayText: f,
5102
5102
  commitValue: d,
5103
5103
  elementRef: n,
@@ -5107,52 +5107,56 @@ const Rt = /* @__PURE__ */ ae({
5107
5107
  shouldPopupContent: i,
5108
5108
  togglePopup: c,
5109
5109
  openDialog: () => {
5110
- S.value && e.buttonBehavior === "Modal" && S.value.click();
5110
+ F.value && e.buttonBehavior === "Modal" && F.value.click();
5111
5111
  },
5112
5112
  getModal: () => {
5113
- var D;
5114
- return e.buttonBehavior === "Modal" ? (D = h.modalRef.value) == null ? void 0 : D.value : null;
5113
+ var L;
5114
+ return e.buttonBehavior === "Modal" ? (L = h.modalRef.value) == null ? void 0 : L.value : null;
5115
5115
  },
5116
5116
  getTextbox: () => {
5117
- var D;
5118
- return (D = n.value) == null ? void 0 : D.querySelector("input");
5117
+ var L;
5118
+ return (L = n.value) == null ? void 0 : L.querySelector("input");
5119
5119
  },
5120
5120
  forceClosePopup: () => {
5121
- x.value = !1;
5121
+ T.value = !1, B.value = !0, i.value = !1;
5122
5122
  }
5123
5123
  };
5124
5124
  return be(() => {
5125
- n.value.componentInstance = E, window.onresize = () => {
5125
+ n.value.componentInstance = P, window.onresize = () => {
5126
5126
  document.body.click();
5127
5127
  };
5128
5128
  }), Mn(() => {
5129
- var D;
5130
- window.onresize = null, (D = window[tt]) == null || D.delete(n.value);
5131
- }), t.expose(E), Z(() => i.value, async (D, z) => {
5132
- if (!D && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
5129
+ var L;
5130
+ window.onresize = null, (L = window[tt]) == null || L.delete(n.value);
5131
+ }), t.expose(P), Z(() => i.value, async (L, _) => {
5132
+ if (B.value) {
5133
+ T.value = L, B.value = !1;
5134
+ return;
5135
+ }
5136
+ if (!L && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
5133
5137
  try {
5134
- const Y = await e.beforeClosePopup();
5135
- x.value = !Y, i.value = !Y && !e.readonly;
5136
- } catch (Y) {
5137
- console.error("Error in beforeClosePopup:", Y), x.value = z, i.value = z;
5138
+ const V = await e.beforeClosePopup();
5139
+ T.value = !V, (!V || e.readonly) && (i.value = !0);
5140
+ } catch (V) {
5141
+ console.error("Error in beforeClosePopup:", V), T.value = _, i.value = _;
5138
5142
  }
5139
5143
  return;
5140
5144
  }
5141
- x.value = D;
5145
+ T.value = L;
5142
5146
  }), () => {
5143
- var D, z;
5147
+ var L, _;
5144
5148
  return v(ot, null, [v("div", pt(t.attrs, {
5145
5149
  ref: n,
5146
- class: B.value,
5150
+ class: O.value,
5147
5151
  id: e.id ? e.id : void 0,
5148
- style: O.value
5152
+ style: b.value
5149
5153
  }), [v("div", {
5150
5154
  id: e.id ? `${e.id}-input-group` : void 0,
5151
5155
  class: g.value,
5152
- style: b.value,
5156
+ style: y.value,
5153
5157
  onMouseenter: w,
5154
5158
  onMouseleave: k
5155
- }, [(z = (D = t.slots).precontent) == null ? void 0 : z.call(D), I(), R()])]), x.value && T()]);
5159
+ }, [(_ = (L = t.slots).precontent) == null ? void 0 : _.call(L), R(), E()])]), T.value && S()]);
5156
5160
  };
5157
5161
  }
5158
5162
  }), fr = "https://json-schema.org/draft/2020-12/schema", pr = "https://farris-design.gitee.io/field-selector.schema.json", mr = "field-selector", yr = "A Farris Input Component", vr = "object", hr = {
@@ -5576,6 +5580,10 @@ const aa = {
5576
5580
  description: "启用高亮搜索",
5577
5581
  type: "boolean",
5578
5582
  default: !1
5583
+ },
5584
+ "onUpdate:modelValue": {
5585
+ description: "",
5586
+ type: "object"
5579
5587
  }
5580
5588
  }, Tr = [
5581
5589
  "type"
@@ -5931,56 +5939,58 @@ const lt = /* @__PURE__ */ ae({
5931
5939
  displayText: h,
5932
5940
  editable: f,
5933
5941
  modelValue: r,
5934
- getItemsByValue: m
5935
- } = Nr(e), d = C(e.dropDownIcon);
5936
- d.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (d.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
5937
- const g = N(() => e.multiSelect), p = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
5938
- function w() {
5939
- !g.value && o.value && o.value.hidePopup();
5942
+ getSelectedItemsByDisplayText: m,
5943
+ getItemsByDisplayText: d,
5944
+ getItemsByValue: g
5945
+ } = Nr(e), p = C(e.dropDownIcon);
5946
+ p.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (p.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
5947
+ const w = N(() => e.multiSelect), k = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
5948
+ function B() {
5949
+ !w.value && o.value && o.value.hidePopup();
5940
5950
  }
5941
- function k(S) {
5942
- h.value = S.map((x) => x[e.textField]).join(e.separator);
5951
+ function O(S) {
5952
+ h.value = S.map((P) => P[e.textField]).join(e.separator);
5943
5953
  let T = "";
5944
- S.length === 1 ? T = S[0][e.valueField] : T = S.map((x) => x[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", S, r.value));
5954
+ S.length === 1 ? T = S[0][e.valueField] : T = S.map((P) => P[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", S, r.value));
5945
5955
  }
5946
- function B() {
5947
- const S = m(r.value);
5948
- k(S);
5956
+ function b() {
5957
+ const S = g(r.value);
5958
+ O(S);
5949
5959
  }
5950
- function O() {
5960
+ function y() {
5951
5961
  s.value || h.value;
5952
5962
  }
5953
- function b(S) {
5963
+ function x(S) {
5954
5964
  var T;
5955
5965
  r.value = "", (T = a.value) == null || T.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
5956
5966
  }
5957
- function y(S) {
5958
- var T, x;
5959
- e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (x = a.value) == null || x.activeRowById(S), t.emit("change", [r.value], r.value);
5967
+ function M(S) {
5968
+ var T, P;
5969
+ e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (P = a.value) == null || P.activeRowById(S), t.emit("change", [r.value], r.value);
5960
5970
  }
5961
- function F(S) {
5971
+ function I(S) {
5962
5972
  if (e.multiSelect) {
5963
- const T = m(r.value), E = T.map((D) => D[e.idField || e.valueField]).join(e.separator);
5964
- r.value !== E && (r.value = E, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
5973
+ const T = g(r.value), L = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
5974
+ r.value !== L && (r.value = L, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
5965
5975
  }
5966
5976
  }
5967
- function M() {
5977
+ function R() {
5968
5978
  return h.value;
5969
5979
  }
5970
- function I(S) {
5980
+ function E(S) {
5971
5981
  const {
5972
5982
  value: T
5973
5983
  } = S.target;
5974
- y(T), t.emit("input", T);
5984
+ M(T), t.emit("input", T);
5975
5985
  }
5976
- function R() {
5986
+ function F() {
5977
5987
  o.value.hidePopup();
5978
5988
  }
5979
5989
  return t.expose({
5980
- getDisplayText: M,
5981
- hidePopup: R
5982
- }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, x, E, D]) => {
5983
- l.value = S, f.value = T, i.value = x, u.value = E, s.value = D;
5990
+ getDisplayText: R,
5991
+ hidePopup: F
5992
+ }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, P, L, _]) => {
5993
+ l.value = S, f.value = T, i.value = P, u.value = L, s.value = _;
5984
5994
  }), () => v(jn, {
5985
5995
  ref: o,
5986
5996
  id: e.id,
@@ -5988,7 +5998,7 @@ const lt = /* @__PURE__ */ ae({
5988
5998
  readonly: s.value,
5989
5999
  forcePlaceholder: e.forcePlaceholder,
5990
6000
  editable: f.value,
5991
- buttonContent: d.value,
6001
+ buttonContent: p.value,
5992
6002
  placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
5993
6003
  enableClear: i.value,
5994
6004
  maxLength: e.maxLength,
@@ -6000,11 +6010,11 @@ const lt = /* @__PURE__ */ ae({
6000
6010
  "onUpdate:modelValue": (S) => h.value = S,
6001
6011
  focusOnCreated: e.focusOnCreated,
6002
6012
  selectOnCreated: e.selectOnCreated,
6003
- onClear: b,
6004
- onClick: O,
6005
- onChange: F,
6006
- onBlur: B,
6007
- onInput: I,
6013
+ onClear: x,
6014
+ onClick: y,
6015
+ onChange: I,
6016
+ onBlur: b,
6017
+ onInput: E,
6008
6018
  beforeOpen: e.beforeOpen,
6009
6019
  placement: e.placement,
6010
6020
  popupMinWidth: e.minPanelWidth,
@@ -6025,9 +6035,9 @@ const lt = /* @__PURE__ */ ae({
6025
6035
  enableSearch: u.value,
6026
6036
  maxHeight: e.maxHeight,
6027
6037
  enableHighlightSearch: e.enableHighlightSearch,
6028
- width: e.fitEditor ? p.value : void 0,
6038
+ width: e.fitEditor ? k.value : void 0,
6029
6039
  onSelectionChange: (S) => {
6030
- k(S), w();
6040
+ O(S), B();
6031
6041
  }
6032
6042
  }, null)]
6033
6043
  });
@@ -6513,17 +6523,17 @@ function sa(e) {
6513
6523
  function h(p, w, k, B) {
6514
6524
  const O = e.value;
6515
6525
  if (O) {
6516
- const { left: b, right: y, width: F } = O.getBoundingClientRect();
6526
+ const { left: b, right: y, width: x } = O.getBoundingClientRect();
6517
6527
  let M = p.clientX - b;
6518
- B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M = F - M), a.value = M;
6528
+ B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M = x - M), a.value = M;
6519
6529
  }
6520
6530
  }
6521
6531
  function f(p, w, k, B) {
6522
6532
  const O = e.value;
6523
6533
  if (O) {
6524
- const { top: b, bottom: y, height: F } = O.getBoundingClientRect();
6534
+ const { top: b, bottom: y, height: x } = O.getBoundingClientRect();
6525
6535
  let M = p.clientY - b;
6526
- B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M = F - M), o.value = M;
6536
+ B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M = x - M), o.value = M;
6527
6537
  }
6528
6538
  }
6529
6539
  function r() {
@@ -6819,35 +6829,35 @@ function ca(e, t, n, a, o) {
6819
6829
  let g = "", p, w, k;
6820
6830
  function B(y) {
6821
6831
  if ((g === "left" || g === "right") && w) {
6822
- const { left: F } = w.getBoundingClientRect(), { width: M } = p.getBoundingClientRect(), I = y.clientX - F;
6832
+ const { left: x } = w.getBoundingClientRect(), { width: M } = p.getBoundingClientRect(), I = y.clientX - x;
6823
6833
  let R = g === "left" ? (M || 0) + (I - l.value) : (M || 0) - (I - l.value);
6824
6834
  R = n.value > 0 ? Math.max(n.value, R) : R;
6825
- const S = d(g, n.value);
6826
- S != null && (R = S > R ? R : S), e.value = R;
6835
+ const E = d(g, n.value);
6836
+ E != null && (R = E > R ? R : E), e.value = R;
6827
6837
  }
6828
6838
  if ((g === "top" || g === "bottom") && w) {
6829
- const { top: F } = w.getBoundingClientRect(), { height: M } = p.getBoundingClientRect(), I = y.clientY - F;
6839
+ const { top: x } = w.getBoundingClientRect(), { height: M } = p.getBoundingClientRect(), I = y.clientY - x;
6830
6840
  let R = g === "top" ? (M || 0) + (I - c.value) : (M || 0) - (I - c.value);
6831
6841
  R = a.value > 0 ? Math.max(a.value, R) : R;
6832
- const S = m(g, a.value);
6833
- S != null && (R = S > R ? R : S), t.value = R;
6842
+ const E = m(g, a.value);
6843
+ E != null && (R = E > R ? R : E), t.value = R;
6834
6844
  }
6835
6845
  i.value = 0, h.value = 0, l.value = -1, c.value = -1, u.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", g = "", p = null, w = null;
6836
6846
  }
6837
- function O(y, F, M) {
6838
- if (g = F, p = M, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6839
- const { left: R } = w.getBoundingClientRect(), S = y.clientX - R;
6840
- i.value = S, l.value = S;
6841
- const T = d(g, n.value) || 0;
6842
- k = (x) => f(x, T, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6847
+ function O(y, x, M) {
6848
+ if (g = x, p = M, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6849
+ const { left: R } = w.getBoundingClientRect(), E = y.clientX - R;
6850
+ i.value = E, l.value = E;
6851
+ const F = d(g, n.value) || 0;
6852
+ k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6843
6853
  }
6844
6854
  }
6845
- function b(y, F, M) {
6846
- if (g = F, p = M, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6855
+ function b(y, x, M) {
6856
+ if (g = x, p = M, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6847
6857
  const { top: R } = w.getBoundingClientRect();
6848
6858
  h.value = y.clientY - R, c.value = y.clientY - R;
6849
- const S = m(g, a.value) || 0;
6850
- k = (T) => r(T, S, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6859
+ const E = m(g, a.value) || 0;
6860
+ k = (F) => r(F, E, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6851
6861
  }
6852
6862
  }
6853
6863
  return { onClickHorizontalResizeBar: O, onClickVerticalResizeBar: b };
@@ -6882,7 +6892,7 @@ const Re = /* @__PURE__ */ ae({
6882
6892
  "f-page-content-nav": c.value === "left" || c.value === "right",
6883
6893
  "f-page-content-main": c.value === "center"
6884
6894
  };
6885
- return e.customClass && String(e.customClass).split(" ").reduce((y, F) => (y[F] = !0, y), b), b;
6895
+ return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
6886
6896
  }), O = N(() => {
6887
6897
  const b = {};
6888
6898
  return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (b.height = `${i.value}px`), e.visible || (b.display = "none"), b;
@@ -6979,7 +6989,7 @@ const ps = /* @__PURE__ */ ae({
6979
6989
  "f-page-content-nav": f.value === "left" || f.value === "right",
6980
6990
  "f-page-content-main": f.value === "center"
6981
6991
  };
6982
- return e.customClass && String(e.customClass).split(" ").reduce((y, F) => (y[F] = !0, y), b), b;
6992
+ return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
6983
6993
  }), O = N(() => {
6984
6994
  const b = {
6985
6995
  flex: "1"
@@ -9720,72 +9730,72 @@ const ru = /* @__PURE__ */ ae({
9720
9730
  const n = C("dataEntity"), a = C(e.dataSource), {
9721
9731
  entities: o,
9722
9732
  variables: l
9723
- } = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (x, E) => {
9724
- x.stopPropagation(), t.emit("fieldClick", {
9725
- $event: x,
9726
- item: E.raw
9733
+ } = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, T) => {
9734
+ S.stopPropagation(), t.emit("fieldClick", {
9735
+ $event: S,
9736
+ item: T.raw
9727
9737
  });
9728
- }, c = (x, E) => {
9729
- const D = `${E.raw.name} [${E.raw.bindingPath}]`;
9738
+ }, c = (S, T) => {
9739
+ const P = `${T.raw.name} [${T.raw.bindingPath}]`;
9730
9740
  return v("div", {
9731
9741
  class: "d-flex align-items-center w-100 entity-field",
9732
9742
  style: "justify-content: space-between;"
9733
9743
  }, [v("span", {
9734
- title: D,
9744
+ title: P,
9735
9745
  class: "f-utils-fill text-truncate"
9736
- }, [D]), v("button", {
9746
+ }, [P]), v("button", {
9737
9747
  title: "插入属性名称",
9738
9748
  class: "btn btn-link d-none",
9739
9749
  style: "width:24px;height:24px",
9740
- onClick: (z) => s(z, E),
9741
- onDblclick: (z) => z.stopPropagation()
9750
+ onClick: (L) => s(L, T),
9751
+ onDblclick: (L) => L.stopPropagation()
9742
9752
  }, [v("span", {
9743
9753
  class: "f-icon f-icon-new-edit",
9744
9754
  style: "font-size: 12px;"
9745
9755
  }, null)])]);
9746
- }, h = C({}), f = C(), r = N(() => (x) => ({
9756
+ }, h = C({}), f = C(), r = N(() => (S) => ({
9747
9757
  "list-group d-flex flex-column": !0,
9748
- "f-utils-fill": n.value === x,
9749
- expand: n.value === x,
9750
- collapse: n.value !== x
9751
- })), m = N(() => (x) => ({
9752
- "f-icon f-icon-arrow-chevron-up": n.value !== x,
9753
- "f-icon f-icon-arrow-chevron-down": n.value === x
9754
- })), d = N(() => (x) => ({
9758
+ "f-utils-fill": n.value === S,
9759
+ expand: n.value === S,
9760
+ collapse: n.value !== S
9761
+ })), m = N(() => (S) => ({
9762
+ "f-icon f-icon-arrow-chevron-up": n.value !== S,
9763
+ "f-icon f-icon-arrow-chevron-down": n.value === S
9764
+ })), d = N(() => (S) => ({
9755
9765
  "functions-type d-flex flex-column": !0,
9756
- open: h.value[x],
9757
- closed: !h.value[x]
9758
- })), g = N(() => (x) => ({
9759
- "f-icon f-icon-arrow-chevron-down": h.value[x],
9760
- "f-icon f-icon-arrow-chevron-right": !h.value[x]
9761
- })), p = N(() => (x) => {
9762
- var E;
9766
+ open: h.value[S],
9767
+ closed: !h.value[S]
9768
+ })), g = N(() => (S) => ({
9769
+ "f-icon f-icon-arrow-chevron-down": h.value[S],
9770
+ "f-icon f-icon-arrow-chevron-right": !h.value[S]
9771
+ })), p = N(() => (S) => {
9772
+ var T;
9763
9773
  return {
9764
9774
  "functions-item pl-2": !0,
9765
- selected: ((E = f.value) == null ? void 0 : E.key) === x.key
9775
+ selected: ((T = f.value) == null ? void 0 : T.key) === S.key
9766
9776
  };
9767
9777
  });
9768
- function w(x, E) {
9769
- x.stopPropagation(), h.value = h.value || {}, h.value[E] = !h.value[E];
9778
+ function w(S, T) {
9779
+ S.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
9770
9780
  }
9771
- function k(x, E) {
9772
- x.stopPropagation(), f.value = E;
9781
+ function k(S, T) {
9782
+ S.stopPropagation(), f.value = T;
9773
9783
  }
9774
- function B(x, E) {
9784
+ function B(S, T) {
9775
9785
  t.emit("variableItemDblClick", {
9776
- $event: x,
9777
- item: E
9786
+ $event: S,
9787
+ item: T
9778
9788
  });
9779
9789
  }
9780
9790
  function O({
9781
- $event: x,
9782
- node: E
9791
+ $event: S,
9792
+ node: T
9783
9793
  }) {
9784
9794
  t.emit("entityItemDblClick", {
9785
- $event: x,
9786
- item: E.data,
9795
+ $event: S,
9796
+ item: T.data,
9787
9797
  entityCode: o == null ? void 0 : o.entityCode,
9788
- parentCodes: E.data.parents.join(".")
9798
+ parentCodes: T.data.parents.join(".")
9789
9799
  });
9790
9800
  }
9791
9801
  function b() {
@@ -9799,64 +9809,64 @@ const ru = /* @__PURE__ */ ae({
9799
9809
  if (l)
9800
9810
  return v("ul", {
9801
9811
  class: "w-100 functions-list"
9802
- }, [Object.keys(l).map((x) => l[x].visible && v("li", {
9803
- "variable-type": x,
9804
- class: d.value(x)
9812
+ }, [Object.keys(l).map((S) => l[S].visible && v("li", {
9813
+ "variable-type": S,
9814
+ class: d.value(S)
9805
9815
  }, [v("div", {
9806
9816
  class: "functions-type-name pl-2 d-flex align-items-center",
9807
- onClick: (E) => {
9808
- w(E, x);
9817
+ onClick: (T) => {
9818
+ w(T, S);
9809
9819
  }
9810
9820
  }, [v("span", {
9811
- class: g.value(x)
9812
- }, null), l[x].name]), v("ul", {
9821
+ class: g.value(S)
9822
+ }, null), l[S].name]), v("ul", {
9813
9823
  class: "pl-3 mr-2"
9814
- }, [l[x].items.map((E) => v("li", {
9815
- class: p.value(E),
9816
- onClick: (D) => k(D, E),
9817
- onDblclick: (D) => B(D, E)
9818
- }, [E.name]))])]))]);
9819
- }
9820
- function F(x, E) {
9821
- if (x.stopPropagation(), n.value === E) {
9824
+ }, [l[S].items.map((T) => v("li", {
9825
+ class: p.value(T),
9826
+ onClick: (P) => k(P, T),
9827
+ onDblclick: (P) => B(P, T)
9828
+ }, [T.name]))])]))]);
9829
+ }
9830
+ function x(S, T) {
9831
+ if (S.stopPropagation(), n.value === T) {
9822
9832
  n.value = "";
9823
9833
  return;
9824
9834
  }
9825
- n.value = E;
9835
+ n.value = T;
9826
9836
  }
9827
9837
  be(() => {
9828
9838
  if (l) {
9829
- const x = Object.keys(l)[0];
9830
- h.value[x] = !0;
9839
+ const S = Object.keys(l)[0];
9840
+ h.value[S] = !0;
9831
9841
  }
9832
9842
  });
9833
- function M(x, E) {
9834
- const D = x.children.map((Y) => M(Y, E)).filter((Y) => Y !== null);
9835
- return x.data.name.toLowerCase().includes(E.toLowerCase()) || x.data.bindingPath.toLowerCase().includes(E.toLowerCase()) ? {
9843
+ function M(S, T) {
9844
+ const P = S.children.map((_) => M(_, T)).filter((_) => _ !== null);
9845
+ return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
9836
9846
  data: {
9837
- ...x.data
9847
+ ...S.data
9838
9848
  },
9839
- children: x.children
9849
+ children: S.children
9840
9850
  // 注意这里保留原始子节点
9841
- } : D.length > 0 ? {
9851
+ } : P.length > 0 ? {
9842
9852
  data: {
9843
- ...x.data
9853
+ ...S.data
9844
9854
  },
9845
- children: D
9855
+ children: P
9846
9856
  } : null;
9847
9857
  }
9848
- function I(x, E) {
9849
- return x.map((D) => M(D, E)).filter((D) => D !== null);
9858
+ function I(S, T) {
9859
+ return S.map((P) => M(P, T)).filter((P) => P !== null);
9850
9860
  }
9851
9861
  function R() {
9852
- const x = I((o == null ? void 0 : o.fields) || [], i.value);
9853
- u.value = x;
9862
+ const S = I((o == null ? void 0 : o.fields) || [], i.value);
9863
+ u.value = S;
9854
9864
  }
9855
- function S() {
9865
+ function E() {
9856
9866
  u.value = (o == null ? void 0 : o.fields) || [];
9857
9867
  }
9858
- function T(x) {
9859
- x.key === "Enter" && R();
9868
+ function F(S) {
9869
+ S.key === "Enter" && R();
9860
9870
  }
9861
9871
  return () => v("div", {
9862
9872
  class: "f-utils-fill entity-variable"
@@ -9866,7 +9876,7 @@ const ru = /* @__PURE__ */ ae({
9866
9876
  class: r.value("dataEntity")
9867
9877
  }, [v("div", {
9868
9878
  class: "title px-2 d-flex align-items-center",
9869
- onClick: (x) => F(x, "dataEntity")
9879
+ onClick: (S) => x(S, "dataEntity")
9870
9880
  }, [ie("数据实体"), v("span", {
9871
9881
  class: m.value("dataEntity")
9872
9882
  }, null)]), v("div", {
@@ -9880,15 +9890,15 @@ const ru = /* @__PURE__ */ ae({
9880
9890
  popupOnClick: !0,
9881
9891
  placeholder: "请输入名称或编号,按回车查询",
9882
9892
  modelValue: i.value,
9883
- "onUpdate:modelValue": (x) => i.value = x,
9893
+ "onUpdate:modelValue": (S) => i.value = S,
9884
9894
  onClickButton: R,
9885
- onClear: S,
9886
- onKeyup: T
9895
+ onClear: E,
9896
+ onKeyup: F
9887
9897
  }, null)]), b()])]), v("li", {
9888
9898
  class: r.value("variables")
9889
9899
  }, [v("div", {
9890
9900
  class: "title px-2 d-flex align-items-center",
9891
- onClick: (x) => F(x, "variables")
9901
+ onClick: (S) => x(S, "variables")
9892
9902
  }, [ie("变量"), v("span", {
9893
9903
  class: m.value("variables")
9894
9904
  }, null)]), v("div", {
@@ -9931,7 +9941,7 @@ const ru = /* @__PURE__ */ ae({
9931
9941
  };
9932
9942
  }), r = C(Object.keys(s.value));
9933
9943
  Z(() => e.functionItems, (b) => {
9934
- s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, F) => (y[F] = !0, y), {}));
9944
+ s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
9935
9945
  });
9936
9946
  function m(b) {
9937
9947
  b || (b = a.value);
@@ -9960,12 +9970,12 @@ const ru = /* @__PURE__ */ ae({
9960
9970
  item: y
9961
9971
  });
9962
9972
  }
9963
- Z(() => a.value, (b, y, F) => {
9973
+ Z(() => a.value, (b, y, x) => {
9964
9974
  if (b) {
9965
9975
  const M = setTimeout(() => {
9966
9976
  m(b);
9967
9977
  }, 200);
9968
- F(() => clearTimeout(M));
9978
+ x(() => clearTimeout(M));
9969
9979
  }
9970
9980
  });
9971
9981
  function w() {
@@ -9994,8 +10004,8 @@ const ru = /* @__PURE__ */ ae({
9994
10004
  if (y.visible !== !1)
9995
10005
  return v("li", {
9996
10006
  class: f.value(y),
9997
- onClick: (F) => g(F, y),
9998
- onDblclick: (F) => p(F, y)
10007
+ onClick: (x) => g(x, y),
10008
+ onDblclick: (x) => p(x, y)
9999
10009
  }, [b === "advanced" ? y.key : y.name]);
10000
10010
  })])])) : v("li", {
10001
10011
  class: "empty-message"
@@ -10155,15 +10165,15 @@ function yu(e, t, n) {
10155
10165
  if (b === 0 && k && w[O].length > 2 && w[O][0] === '"' && w[O][w[O].length - 1] === '"') {
10156
10166
  const y = w[O].substring(1, w[O].length - 1);
10157
10167
  if (k.has(y) && w[O - 1] === "(" && w[O + 1] === ")") {
10158
- const F = k.get(y);
10159
- F !== void 0 && (w[O] = `"${F}"`, b = 1);
10168
+ const x = k.get(y);
10169
+ x !== void 0 && (w[O] = `"${x}"`, b = 1);
10160
10170
  }
10161
10171
  }
10162
10172
  if (b === 0) {
10163
- const y = Object.values(t).map((F) => F.items).flat();
10164
- for (let F = 0; F < y.length; F++)
10165
- if (w[O] === y[F].name) {
10166
- w[O] = y[F].keyFront + "." + y[F].key, b = 1;
10173
+ const y = Object.values(t).map((x) => x.items).flat();
10174
+ for (let x = 0; x < y.length; x++)
10175
+ if (w[O] === y[x].name) {
10176
+ w[O] = y[x].keyFront + "." + y[x].key, b = 1;
10167
10177
  break;
10168
10178
  }
10169
10179
  }
@@ -10185,22 +10195,22 @@ function yu(e, t, n) {
10185
10195
  y = y + 1;
10186
10196
  continue;
10187
10197
  } else {
10188
- let F = 0;
10189
- if (F === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
10198
+ let x = 0;
10199
+ if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
10190
10200
  const M = p[y].substring(1, p[y].length - 1);
10191
10201
  if (k.has(M) && p[y - 1] === "(" && p[y + 1] === ")") {
10192
10202
  const I = k.get(M);
10193
- I !== void 0 && (O = O + `"${I}"`, F = 1);
10203
+ I !== void 0 && (O = O + `"${I}"`, x = 1);
10194
10204
  }
10195
10205
  }
10196
- if (F === 0) {
10206
+ if (x === 0) {
10197
10207
  for (let M = 0; M < w.length; M++)
10198
10208
  if (p[y] === w[M].key && w[M].type.toLowerCase() !== "advanced") {
10199
- O = O + w[M].name, F = 1;
10209
+ O = O + w[M].name, x = 1;
10200
10210
  break;
10201
10211
  }
10202
10212
  }
10203
- F === 0 && (O = O + p[y]);
10213
+ x === 0 && (O = O + p[y]);
10204
10214
  }
10205
10215
  }
10206
10216
  return O;
@@ -10251,7 +10261,7 @@ const hu = /* @__PURE__ */ ae({
10251
10261
  props: Vr,
10252
10262
  emits: [],
10253
10263
  setup(e, t) {
10254
- var S;
10264
+ var E;
10255
10265
  const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
10256
10266
  label: "提示",
10257
10267
  value: "info"
@@ -10272,81 +10282,81 @@ const hu = /* @__PURE__ */ ae({
10272
10282
  onFunctionSearch: g
10273
10283
  } = vu(e, d);
10274
10284
  function p({
10275
- $event: T,
10276
- item: x
10285
+ $event: F,
10286
+ item: S
10277
10287
  }) {
10278
- var D;
10279
- const E = s(x);
10280
- (D = i.value) == null || D.insertText(E);
10288
+ var P;
10289
+ const T = s(S);
10290
+ (P = i.value) == null || P.insertText(T);
10281
10291
  }
10282
10292
  function w({
10283
- $event: T,
10284
- item: x
10293
+ $event: F,
10294
+ item: S
10285
10295
  }) {
10286
- var D;
10287
- const E = c(x);
10288
- (D = i.value) == null || D.insertText(E);
10289
- }
10290
- function k(T) {
10291
- return T.reduce((x, E) => {
10292
- var D;
10293
- return x.push(E.data), (D = E.children) != null && D.length && x.push(...k(E.children)), x;
10296
+ var P;
10297
+ const T = c(S);
10298
+ (P = i.value) == null || P.insertText(T);
10299
+ }
10300
+ function k(F) {
10301
+ return F.reduce((S, T) => {
10302
+ var P;
10303
+ return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
10294
10304
  }, []);
10295
10305
  }
10296
- const B = k(((S = e == null ? void 0 : e.entities) == null ? void 0 : S.fields) || []);
10297
- function O(T) {
10298
- return T.map((x) => {
10299
- const E = B.find((D) => D.bindingPath === x);
10300
- return E && E.type === "entity" ? `${x}[0]` : x;
10306
+ const B = k(((E = e == null ? void 0 : e.entities) == null ? void 0 : E.fields) || []);
10307
+ function O(F) {
10308
+ return F.map((S) => {
10309
+ const T = B.find((P) => P.bindingPath === S);
10310
+ return T && T.type === "entity" ? `${S}[0]` : S;
10301
10311
  }).join(".");
10302
10312
  }
10303
10313
  function b({
10304
- $event: T,
10305
- item: x,
10306
- parentCodes: E,
10307
- entityCode: D
10314
+ $event: F,
10315
+ item: S,
10316
+ parentCodes: T,
10317
+ entityCode: P
10308
10318
  }) {
10309
- var $;
10310
- const z = f(x);
10311
- E = e.isServerSide ? O(x.parents) : E;
10312
- let Y = `${E}.${z}`;
10313
- D === z && (Y = z), ($ = i.value) == null || $.insertText(`${Y}`);
10319
+ var V;
10320
+ const L = f(S);
10321
+ T = e.isServerSide ? O(S.parents) : T;
10322
+ let _ = `${T}.${L}`;
10323
+ P === L && (_ = L), (V = i.value) == null || V.insertText(`${_}`);
10314
10324
  }
10315
10325
  function y({
10316
- $event: T,
10317
- item: x
10326
+ $event: F,
10327
+ item: S
10318
10328
  }) {
10319
- var D;
10320
- const E = f(x);
10321
- (D = i.value) == null || D.insertText(`${E}`);
10329
+ var P;
10330
+ const T = f(S);
10331
+ (P = i.value) == null || P.insertText(`${T}`);
10322
10332
  }
10323
- function F() {
10324
- var T;
10325
- return (T = i.value) == null ? void 0 : T.getContent();
10333
+ function x() {
10334
+ var F;
10335
+ return (F = i.value) == null ? void 0 : F.getContent();
10326
10336
  }
10327
10337
  function M() {
10328
- var x;
10329
- const T = (x = i.value) == null ? void 0 : x.getContent();
10338
+ var S;
10339
+ const F = (S = i.value) == null ? void 0 : S.getContent();
10330
10340
  return {
10331
- value: r(T),
10341
+ value: r(F),
10332
10342
  message: a.value,
10333
10343
  messageType: o.value
10334
10344
  };
10335
10345
  }
10336
10346
  const I = C("");
10337
10347
  function R() {
10338
- var T;
10339
- (T = i.value) == null || T.clearText();
10348
+ var F;
10349
+ (F = i.value) == null || F.clearText();
10340
10350
  }
10341
10351
  return be(async () => {
10342
10352
  if (l.value) {
10343
- const T = JSON.parse(l.value), {
10344
- expr: x
10345
- } = T;
10346
- x && (I.value = await m(x) || "");
10353
+ const F = JSON.parse(l.value), {
10354
+ expr: S
10355
+ } = F;
10356
+ S && (I.value = await m(S) || "");
10347
10357
  }
10348
10358
  }), t.expose({
10349
- getExpressionContext: F,
10359
+ getExpressionContext: x,
10350
10360
  getExpressionValue: M,
10351
10361
  resetExpression: R
10352
10362
  }), () => v("div", {
@@ -10373,7 +10383,7 @@ const hu = /* @__PURE__ */ ae({
10373
10383
  class: "f-utils-fill my-2 ml-1"
10374
10384
  }, [v(ru, {
10375
10385
  modelValue: I.value,
10376
- "onUpdate:modelValue": (T) => I.value = T,
10386
+ "onUpdate:modelValue": (F) => I.value = F,
10377
10387
  ref: i
10378
10388
  }, null)]), e.showMessage && v("div", {
10379
10389
  class: "d-flex flex-column p-1",
@@ -10384,7 +10394,7 @@ const hu = /* @__PURE__ */ ae({
10384
10394
  style: "width: 75px",
10385
10395
  data: u,
10386
10396
  modelValue: o.value,
10387
- "onUpdate:modelValue": (T) => o.value = T,
10397
+ "onUpdate:modelValue": (F) => o.value = F,
10388
10398
  textField: "label",
10389
10399
  valueField: "value",
10390
10400
  idField: "value",
@@ -10392,7 +10402,7 @@ const hu = /* @__PURE__ */ ae({
10392
10402
  minPanelWidth: 130,
10393
10403
  placement: "auto"
10394
10404
  }, null)]), On(v("textarea", {
10395
- "onUpdate:modelValue": (T) => a.value = T,
10405
+ "onUpdate:modelValue": (F) => a.value = F,
10396
10406
  class: "form-control",
10397
10407
  style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
10398
10408
  }, null), [[Va, a.value]])])]
@@ -11337,54 +11347,55 @@ const Pt = /* @__PURE__ */ ae({
11337
11347
  displayText: r,
11338
11348
  editable: m,
11339
11349
  modelValue: d,
11340
- flatTreeNodes: g
11341
- } = zu(e), p = N(() => e.multiSelect);
11350
+ getSelectedItemsByDisplayText: g,
11351
+ flatTreeNodes: p
11352
+ } = zu(e), w = N(() => e.multiSelect);
11342
11353
  N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
11343
- const w = N(() => {
11344
- var T;
11345
- const S = (T = n.value) == null ? void 0 : T.popoverRef;
11346
- return S ? S.shown : !1;
11354
+ const k = N(() => {
11355
+ var S;
11356
+ const F = (S = n.value) == null ? void 0 : S.popoverRef;
11357
+ return F ? F.shown : !1;
11347
11358
  }), {
11348
- onValueChange: k,
11349
- resetDataSource: B
11359
+ onValueChange: B,
11360
+ resetDataSource: O
11350
11361
  } = Hu({
11351
11362
  comboEditorRef: n,
11352
11363
  dataSource: f,
11353
11364
  searchFields: u,
11354
11365
  originalValue: s,
11355
- showPopover: w,
11356
- flatTreeNodes: g
11366
+ showPopover: k,
11367
+ flatTreeNodes: p
11357
11368
  }, e.idField);
11358
- function O() {
11359
- !p.value && n.value && n.value.hidePopup();
11369
+ function b() {
11370
+ !w.value && n.value && n.value.hidePopup();
11360
11371
  }
11361
- const b = (S) => e.displayFormatter ? e.displayFormatter(S) : S.map((T) => T[e.textField]).join(e.separator);
11362
- function y(S = []) {
11363
- if (!p.value)
11364
- r.value = b(S), d.value = S.map((T) => T[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", S, d.value);
11372
+ const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((S) => S[e.textField]).join(e.separator);
11373
+ function x(F = []) {
11374
+ if (!w.value)
11375
+ r.value = y(F), d.value = F.map((S) => S[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", F, d.value);
11365
11376
  else {
11366
- const T = Object.keys(h), x = Object.values(h);
11367
- r.value = b(x), d.value = T.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", x, d.value);
11377
+ const S = Object.keys(h), T = Object.values(h);
11378
+ r.value = y(T), d.value = S.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
11368
11379
  }
11369
- O();
11380
+ b();
11370
11381
  }
11371
- function F(S) {
11372
- var T;
11373
- d.value = "", w.value && ((T = n.value) == null || T.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
11382
+ function M(F) {
11383
+ var S;
11384
+ d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
11374
11385
  }
11375
- function M(S) {
11376
- p.value && (delete h[S.id], y());
11386
+ function I(F) {
11387
+ w.value && (delete h[F.id], x());
11377
11388
  }
11378
- function I(S) {
11379
- p.value && (h[S.id] = S.data, y());
11389
+ function R(F) {
11390
+ w.value && (h[F.id] = F.data, x());
11380
11391
  }
11381
- Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, x, E, D]) => {
11382
- a.value = S, m.value = T, o.value = x, l.value = E, i.value = D;
11392
+ Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, L]) => {
11393
+ a.value = F, m.value = S, o.value = T, l.value = P, i.value = L;
11383
11394
  });
11384
- const R = () => {
11385
- if (s.value = Le(f.value), p.value && d.value) {
11386
- const S = [];
11387
- g(f.value, S), d.value.split(e.separator).reduce((T, x) => (T[x] = S.find((E) => E.id === x), T), h);
11395
+ const E = () => {
11396
+ if (s.value = Le(f.value), w.value && d.value) {
11397
+ const F = [];
11398
+ p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
11388
11399
  }
11389
11400
  };
11390
11401
  return () => v(jn, {
@@ -11403,16 +11414,16 @@ const Pt = /* @__PURE__ */ ae({
11403
11414
  inputType: e.viewType,
11404
11415
  popupOnClick: !0,
11405
11416
  modelValue: r.value,
11406
- "onUpdate:modelValue": (S) => r.value = S,
11407
- onClear: F,
11408
- onInput: k,
11417
+ "onUpdate:modelValue": (F) => r.value = F,
11418
+ onClear: M,
11419
+ onInput: B,
11409
11420
  focusOnCreated: e.focusOnCreated,
11410
11421
  selectOnCreated: e.selectOnCreated,
11411
- beforeOpen: R,
11422
+ beforeOpen: E,
11412
11423
  placement: e.placement,
11413
11424
  popupMinWidth: e.minPanelWidth
11414
11425
  }, {
11415
- default: () => [w.value && v(Au, {
11426
+ default: () => [k.value && v(Au, {
11416
11427
  ref: c,
11417
11428
  maxHeight: e.maxHeight,
11418
11429
  multiSelect: e.multiSelect,
@@ -11423,15 +11434,15 @@ const Pt = /* @__PURE__ */ ae({
11423
11434
  titleField: e.titleField,
11424
11435
  data: s.value,
11425
11436
  selectedValues: d.value,
11426
- onSelectionChange: y,
11437
+ onSelectionChange: x,
11427
11438
  formatter: e.formatter,
11428
11439
  editorParams: e.editorParams,
11429
11440
  repositoryToken: e.repositoryToken,
11430
11441
  customRowStatus: e.customRowStatus,
11431
- searchHandler: k,
11432
- onUnSelectItem: M,
11433
- onSelectItem: I,
11434
- onClearSearch: B
11442
+ searchHandler: B,
11443
+ onUnSelectItem: I,
11444
+ onSelectItem: R,
11445
+ onClearSearch: O
11435
11446
  }, null)]
11436
11447
  });
11437
11448
  }
@@ -11806,19 +11817,19 @@ function Uu(e, t) {
11806
11817
  function h() {
11807
11818
  if (e.editorType === "filter")
11808
11819
  for (let y = 0; y < t.value.length - 1; y++) {
11809
- const F = t.value[y];
11810
- (F.relation === ct.Empty || !F.relation) && (F.relation = ct.And);
11820
+ const x = t.value[y];
11821
+ (x.relation === ct.Empty || !x.relation) && (x.relation = ct.And);
11811
11822
  }
11812
11823
  }
11813
11824
  function f() {
11814
11825
  const y = Object.assign({}, u);
11815
11826
  t.value = [...t.value, y];
11816
- const F = t.value.length - 1;
11817
- n.value = F, h();
11827
+ const x = t.value.length - 1;
11828
+ n.value = x, h();
11818
11829
  }
11819
11830
  function r({ index: y }) {
11820
- const F = Object.assign({}, u);
11821
- e.insertType === "above" ? y === 0 ? t.value.unshift(F) : t.value.splice(y, 0, F) : t.value.splice(y + 1, 0, F), t.value = [...t.value], h();
11831
+ const x = Object.assign({}, u);
11832
+ e.insertType === "above" ? y === 0 ? t.value.unshift(x) : t.value.splice(y, 0, x) : t.value.splice(y + 1, 0, x), t.value = [...t.value], h();
11822
11833
  }
11823
11834
  function m({ index: y }) {
11824
11835
  t.value.splice(y, 1), t.value = [...t.value], !(n.value < 0) && (y === n.value ? t.value[y] ? n.value = y : t.value[y - 1] ? n.value = y - 1 : n.value = -1 : y < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
@@ -11831,14 +11842,14 @@ function Uu(e, t) {
11831
11842
  }
11832
11843
  function p() {
11833
11844
  if (n.value >= 0) {
11834
- const y = n.value, F = t.value.splice(y, 1);
11835
- t.value.splice(y - 1, 0, ...F), n.value = y - 1;
11845
+ const y = n.value, x = t.value.splice(y, 1);
11846
+ t.value.splice(y - 1, 0, ...x), n.value = y - 1;
11836
11847
  }
11837
11848
  }
11838
11849
  function w() {
11839
11850
  if (n.value >= 0) {
11840
- const y = n.value, F = t.value.splice(y, 1);
11841
- t.value.splice(y + 1, 0, ...F), n.value = y + 1;
11851
+ const y = n.value, x = t.value.splice(y, 1);
11852
+ t.value.splice(y + 1, 0, ...x), n.value = y + 1;
11842
11853
  }
11843
11854
  }
11844
11855
  function k() {
@@ -11850,32 +11861,32 @@ function Uu(e, t) {
11850
11861
  function O(y) {
11851
11862
  if (y.length % 2 !== 0)
11852
11863
  return !1;
11853
- let F = "";
11864
+ let x = "";
11854
11865
  for (const M of y)
11855
11866
  if (M === "(")
11856
- F += M;
11867
+ x += M;
11857
11868
  else if (M === ")") {
11858
- if (!F.endsWith("("))
11869
+ if (!x.endsWith("("))
11859
11870
  return !1;
11860
- F = F.slice(0, -1);
11871
+ x = x.slice(0, -1);
11861
11872
  }
11862
- return F.length === 0;
11873
+ return x.length === 0;
11863
11874
  }
11864
11875
  function b() {
11865
11876
  const y = t.value.length;
11866
11877
  if (!y)
11867
11878
  return !0;
11868
- let F = !0, M = !0;
11879
+ let x = !0, M = !0;
11869
11880
  if (e.editorType !== "sort") {
11870
11881
  t.value[y - 1].relation = ct.Empty, M = !t.value.slice(0, -1).some(
11871
- (T) => T.relation === ct.Empty || !T.relation
11882
+ (F) => F.relation === ct.Empty || !F.relation
11872
11883
  );
11873
- const S = t.value.flatMap((T) => [T.lbracket, T.rbracket]).join("");
11874
- F = O(S);
11884
+ const E = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
11885
+ x = O(E);
11875
11886
  }
11876
11887
  const I = t.value.some((R) => !R[i]);
11877
11888
  return [
11878
- { result: F, message: "括号不匹配,请检查。" },
11889
+ { result: x, message: "括号不匹配,请检查。" },
11879
11890
  { result: M, message: "关系设置不完整,请检查。" },
11880
11891
  { result: !I, message: "字段不允许为空,请检查。" }
11881
11892
  ].find((R) => !R.result);
@@ -11920,11 +11931,11 @@ const _u = /* @__PURE__ */ ae({
11920
11931
  activeRowIndex: O,
11921
11932
  onSelectRow: b,
11922
11933
  canClear: y,
11923
- canMove: F,
11934
+ canMove: x,
11924
11935
  validateCondition: M,
11925
11936
  resetActiveRow: I
11926
11937
  } = Uu(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
11927
- function S() {
11938
+ function E() {
11928
11939
  return e.editorType === "sort" ? v(Gu, {
11929
11940
  conditions: c.value,
11930
11941
  fields: u.value,
@@ -11947,8 +11958,8 @@ const _u = /* @__PURE__ */ ae({
11947
11958
  formContextData: i.value
11948
11959
  }, null);
11949
11960
  }
11950
- const T = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), x = N(() => e.disableConfirmWhenUnchanged && T.value);
11951
- async function E() {
11961
+ const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && F.value);
11962
+ async function T() {
11952
11963
  if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
11953
11964
  o == null || o.show();
11954
11965
  const j = await e.onSubmitModal({
@@ -11962,7 +11973,7 @@ const _u = /* @__PURE__ */ ae({
11962
11973
  }
11963
11974
  return !0;
11964
11975
  }
11965
- const D = {
11976
+ const P = {
11966
11977
  title: R.value,
11967
11978
  width: 800,
11968
11979
  height: 600,
@@ -11984,14 +11995,14 @@ const _u = /* @__PURE__ */ ae({
11984
11995
  name: "accept",
11985
11996
  text: "确定",
11986
11997
  class: "btn btn-primary",
11987
- disabled: x,
11998
+ disabled: S,
11988
11999
  handle: async (j) => {
11989
12000
  const G = M();
11990
- return T.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await E();
12001
+ return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
11991
12002
  }
11992
12003
  }]
11993
12004
  };
11994
- async function z() {
12005
+ async function L() {
11995
12006
  if (e.beforeOpen)
11996
12007
  try {
11997
12008
  o == null || o.show();
@@ -12023,10 +12034,10 @@ const _u = /* @__PURE__ */ ae({
12023
12034
  }
12024
12035
  return I(), !0;
12025
12036
  }
12026
- function Y() {
12037
+ function _() {
12027
12038
  t.emit("update:modelValue", "");
12028
12039
  }
12029
- function $(j) {
12040
+ function V(j) {
12030
12041
  t.emit("update:modelValue", j);
12031
12042
  }
12032
12043
  return () => v(Rt, {
@@ -12038,20 +12049,20 @@ const _u = /* @__PURE__ */ ae({
12038
12049
  enableClear: e.enableClear,
12039
12050
  buttonContent: s,
12040
12051
  buttonBehavior: "Modal",
12041
- modalOptions: D,
12042
- beforeOpen: z,
12043
- onClear: Y,
12052
+ modalOptions: P,
12053
+ beforeOpen: L,
12054
+ onClear: _,
12044
12055
  enableTitle: e.enableTitle,
12045
- "onUpdate:modelValue": $
12056
+ "onUpdate:modelValue": V
12046
12057
  }, {
12047
12058
  default: () => [v("div", {
12048
12059
  class: "h-100 d-flex flex-column"
12049
12060
  }, [v("div", {
12050
12061
  style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
12051
12062
  class: "shading-border-top"
12052
- }, null), S(), v(qu, {
12063
+ }, null), E(), v(qu, {
12053
12064
  canClear: y,
12054
- canMove: F,
12065
+ canMove: x,
12055
12066
  onAdd: r,
12056
12067
  onClear: m,
12057
12068
  onMoveBottom: d,
@@ -12075,7 +12086,7 @@ const _u = /* @__PURE__ */ ae({
12075
12086
  "onUpdate:modelValue": n
12076
12087
  }), null);
12077
12088
  }
12078
- }), Pd = {
12089
+ }), Vd = {
12079
12090
  install(e) {
12080
12091
  e.component(en.name, en);
12081
12092
  },
@@ -12085,5 +12096,5 @@ const _u = /* @__PURE__ */ ae({
12085
12096
  };
12086
12097
  export {
12087
12098
  en as SortConditionEditor,
12088
- Pd as default
12099
+ Vd as default
12089
12100
  };