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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) 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 +360 -361
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +524 -520
  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 +190 -181
  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 +309 -309
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1125 -1124
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +472 -472
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-grid/index.esm.js +99 -99
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3387 -3321
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1604 -1601
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +1082 -1079
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/discussion-editor/index.esm.js +973 -1040
  38. package/components/discussion-editor/index.umd.cjs +6 -6
  39. package/components/dropdown/index.esm.js +335 -330
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +177 -177
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +6 -6
  44. package/components/dynamic-resolver/index.umd.cjs +1 -1
  45. package/components/dynamic-view/index.esm.js +344 -344
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +644 -644
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.esm.js +1773 -1760
  50. package/components/expression-editor/index.umd.cjs +4 -4
  51. package/components/fieldset/index.esm.js +55 -55
  52. package/components/fieldset/index.umd.cjs +1 -1
  53. package/components/filter-bar/index.esm.js +879 -869
  54. package/components/filter-bar/index.umd.cjs +1 -1
  55. package/components/filter-condition-editor/index.esm.js +1091 -1077
  56. package/components/filter-condition-editor/index.umd.cjs +3 -3
  57. package/components/flow-canvas/index.esm.js +215 -215
  58. package/components/flow-canvas/index.umd.cjs +1 -1
  59. package/components/html-template/index.esm.js +164 -164
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +198 -198
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +64 -64
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +140 -140
  66. package/components/language-textbox/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +111 -111
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +90 -90
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +139 -141
  72. package/components/list-view/index.umd.cjs +3 -3
  73. package/components/locale/index.esm.js +833 -901
  74. package/components/locale/index.umd.cjs +6 -6
  75. package/components/lookup/index.esm.js +1352 -1351
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.esm.js +1387 -1383
  78. package/components/mapping-editor/index.umd.cjs +1 -1
  79. package/components/menu-lookup/index.esm.js +1059 -1127
  80. package/components/menu-lookup/index.umd.cjs +6 -6
  81. package/components/message-box/index.esm.js +217 -217
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.esm.js +283 -283
  84. package/components/modal/index.umd.cjs +1 -1
  85. package/components/nav/index.esm.js +106 -106
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +194 -194
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +463 -462
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +883 -876
  92. package/components/order/index.umd.cjs +4 -4
  93. package/components/page-footer/index.esm.js +94 -94
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +942 -939
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +82 -82
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/popover/index.esm.js +59 -57
  100. package/components/popover/index.umd.cjs +1 -1
  101. package/components/progress/index.esm.js +113 -113
  102. package/components/progress/index.umd.cjs +2 -2
  103. package/components/property-editor/index.esm.js +151 -150
  104. package/components/property-editor/index.umd.cjs +1 -1
  105. package/components/property-panel/index.esm.js +739 -739
  106. package/components/property-panel/index.umd.cjs +2 -2
  107. package/components/query-solution/index.esm.js +4142 -4190
  108. package/components/query-solution/index.umd.cjs +6 -6
  109. package/components/radio-button/index.esm.js +182 -182
  110. package/components/radio-button/index.umd.cjs +1 -1
  111. package/components/rate/index.esm.js +106 -106
  112. package/components/rate/index.umd.cjs +1 -1
  113. package/components/response-layout/index.esm.js +535 -535
  114. package/components/response-layout/index.umd.cjs +1 -1
  115. package/components/response-layout-editor/index.esm.js +1456 -1443
  116. package/components/response-layout-editor/index.umd.cjs +1 -1
  117. package/components/response-toolbar/index.esm.js +779 -776
  118. package/components/response-toolbar/index.umd.cjs +1 -1
  119. package/components/schema-selector/index.esm.js +1875 -1866
  120. package/components/schema-selector/index.umd.cjs +7 -7
  121. package/components/search-box/index.esm.js +151 -147
  122. package/components/search-box/index.umd.cjs +1 -1
  123. package/components/section/index.esm.js +1236 -1233
  124. package/components/section/index.umd.cjs +1 -1
  125. package/components/smoke-detector/index.esm.js +163 -163
  126. package/components/smoke-detector/index.umd.cjs +1 -1
  127. package/components/sort-condition-editor/index.esm.js +1097 -1083
  128. package/components/sort-condition-editor/index.umd.cjs +3 -3
  129. package/components/splitter/index.esm.js +3 -3
  130. package/components/splitter/index.umd.cjs +1 -1
  131. package/components/step/index.esm.js +133 -133
  132. package/components/step/index.umd.cjs +1 -1
  133. package/components/switch/index.esm.js +103 -98
  134. package/components/switch/index.umd.cjs +1 -1
  135. package/components/tabs/index.esm.js +1596 -1593
  136. package/components/tabs/index.umd.cjs +2 -2
  137. package/components/tags/index.esm.js +93 -93
  138. package/components/tags/index.umd.cjs +1 -1
  139. package/components/text/index.esm.js +138 -138
  140. package/components/text/index.umd.cjs +1 -1
  141. package/components/textarea/index.esm.js +684 -684
  142. package/components/textarea/index.umd.cjs +2 -2
  143. package/components/time-picker/index.esm.js +935 -929
  144. package/components/time-picker/index.umd.cjs +1 -1
  145. package/components/tooltip/index.esm.js +173 -171
  146. package/components/tooltip/index.umd.cjs +1 -1
  147. package/components/transfer/index.esm.js +190 -192
  148. package/components/transfer/index.umd.cjs +4 -4
  149. package/components/tree-grid/index.esm.js +124 -124
  150. package/components/tree-grid/index.umd.cjs +1 -1
  151. package/components/tree-view/index.esm.js +2363 -2278
  152. package/components/tree-view/index.umd.cjs +1 -1
  153. package/components/uploader/index.esm.js +170 -170
  154. package/components/uploader/index.umd.cjs +2 -2
  155. package/components/verify-detail/index.esm.js +196 -196
  156. package/components/verify-detail/index.umd.cjs +1 -1
  157. package/components/video/index.esm.js +227 -227
  158. package/components/video/index.umd.cjs +1 -1
  159. package/components/weather/index.esm.js +9 -9
  160. package/components/weather/index.umd.cjs +2 -2
  161. package/designer/button-edit/index.esm.js +353 -353
  162. package/designer/button-edit/index.umd.cjs +1 -1
  163. package/designer/checkbox/index.esm.js +7 -3
  164. package/designer/checkbox/index.umd.cjs +1 -1
  165. package/designer/checkbox-group/index.esm.js +38 -33
  166. package/designer/checkbox-group/index.umd.cjs +1 -1
  167. package/designer/data-grid/index.esm.js +3562 -3536
  168. package/designer/data-grid/index.umd.cjs +6 -6
  169. package/designer/data-view/index.esm.js +3 -3
  170. package/designer/data-view/index.umd.cjs +3 -3
  171. package/designer/farris-designer.all.esm.js +4203 -4193
  172. package/designer/farris-designer.all.umd.cjs +9 -9
  173. package/designer/input-group/index.esm.js +97 -97
  174. package/designer/input-group/index.umd.cjs +1 -1
  175. package/designer/list-view/index.esm.js +1868 -1854
  176. package/designer/list-view/index.umd.cjs +8 -8
  177. package/designer/radio-group/index.esm.js +954 -949
  178. package/designer/radio-group/index.umd.cjs +1 -1
  179. package/farris.all.esm.js +16195 -16126
  180. package/farris.all.umd.cjs +30 -30
  181. package/locales/data-grid/ui/en.json +2 -2
  182. package/locales/designer/en.json +7 -6
  183. package/locales/designer/zh-CHS.json +2 -1
  184. package/locales/designer/zh-CHT.json +2 -1
  185. package/locales/ui/en.json +7 -6
  186. package/locales/ui/zh-CHS.json +2 -1
  187. package/locales/ui/zh-CHT.json +2 -1
  188. package/package.json +1 -1
  189. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  190. package/types/data-view/composition/types.d.ts +10 -4
  191. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  192. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
@@ -2,7 +2,7 @@ var Xn = Object.defineProperty;
2
2
  var Yn = (t, e, n) => e in t ? Xn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var te = (t, e, n) => Yn(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { ref as g, computed as G, defineComponent as Fe, withDirectives as un, createVNode as C, resolveDirective as cn, inject as Le, onMounted as We, watch as ve, createTextVNode as Ie, mergeProps as tt, Fragment as vt, reactive as Ge, createApp as dn, onUnmounted as xt, Transition as fn, nextTick as Wt, onBeforeMount as Zn, Teleport as Jn, shallowRef as Qn, render as At, h as Kn, cloneVNode as eo } from "vue";
5
- import { isPlainObject as Jt, cloneDeep as Tt, isUndefined as ze } from "lodash-es";
5
+ import { cloneDeep as Tt, isPlainObject as Jt, isUndefined as ze } from "lodash-es";
6
6
  import { FormSchemaEntityField$Type as Qt, FormSchemaEntityFieldTypeName as Kt, useGuid as en, areaResponseDirective as to, useTextBoxDesign as no, useClear as oo, getCustomClass as ao, withInstall as ro, getMaxZIndex as io } from "../common/index.esm.js";
7
7
  import { useI18n as St } from "vue-i18n";
8
8
  import { getSchemaByTypeForDesigner as lo, schemaMap as so, resolveAppearance as uo, createPropsResolver as pn, propertyConfigSchemaMapForDesigner as co } from "../dynamic-resolver/index.esm.js";
@@ -164,7 +164,7 @@ function mn(t, e) {
164
164
  }
165
165
  return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: s, mappingSchemaToProps: c, setDesignerContext: d };
166
166
  }
167
- const vn = {}, hn = {}, { resolveSchemaWithDefaultValue: hr, resolveSchemaToProps: gr, mappingSchemaToProps: yr } = mn(vn, hn);
167
+ const vn = {}, hn = {}, { getSchemaByType: Au, resolveSchemaWithDefaultValue: hr, resolveSchemaToProps: gr, mappingSchemaToProps: yr, setDesignerContext: Uu } = mn(vn, hn);
168
168
  function br(t = {}) {
169
169
  function e(u, d, l, f) {
170
170
  if (typeof l == "number")
@@ -523,14 +523,14 @@ function gn(t, e, n) {
523
523
  }
524
524
  function d(m, v, y, T, F, j = "", D = "") {
525
525
  return Object.keys(m).map((w) => {
526
- const S = g(1), I = w, O = m[w], q = Object.keys(O), k = O.title, N = O.type, $ = a.get(N) || { type: "input-group", enableClear: !1 }, h = O.editor ? Object.assign({}, $, O.editor) : Object.assign({}, $), b = c(q, O, v), V = s(q, O, v);
526
+ const S = g(1), B = w, O = m[w], q = Object.keys(O), k = O.title, N = O.type, $ = a.get(N) || { type: "input-group", enableClear: !1 }, h = O.editor ? Object.assign({}, $, O.editor) : Object.assign({}, $), b = c(q, O, v), V = s(q, O, v);
527
527
  h.readonly = h.readonly === void 0 ? V() : h.readonly;
528
- const J = O.type === "cascade" ? d(O.properties, v, y, T, F, j, D) : [], B = !0;
528
+ const J = O.type === "cascade" ? d(O.properties, v, y, T, F, j, D) : [], I = !0;
529
529
  let M = u(O, D);
530
530
  const A = G({
531
531
  get() {
532
532
  if (S.value) {
533
- if (["class", "style"].find((ce) => ce === I) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
533
+ if (["class", "style"].find((ce) => ce === B) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
534
534
  return M.convertFrom(y, w, F, j);
535
535
  const se = y[w];
536
536
  return Object.prototype.hasOwnProperty.call(O, "defaultValue") && (se === void 0 || typeof se == "string" && se === "") ? O.type === "boolean" ? O.defaultValue : O.defaultValue || "" : se;
@@ -540,8 +540,8 @@ function gn(t, e, n) {
540
540
  set(se) {
541
541
  S.value += 1, M && M.convertTo ? (M.convertTo(T, w, se, F, j), M.convertTo(y, w, se, F, j)) : (T[w] = se, y[w] = se);
542
542
  }
543
- }), { refreshPanelAfterChanged: P, description: U, isExpand: oe, parentPropertyID: re } = O, ee = { propertyID: I, propertyName: k, propertyType: N, propertyValue: A, editor: h, visible: b, readonly: V, cascadeConfig: J, hideCascadeTitle: B, refreshPanelAfterChanged: P, description: U, isExpand: oe, parentPropertyID: re };
544
- return v[I] = ee, ee;
543
+ }), { refreshPanelAfterChanged: P, description: U, isExpand: oe, parentPropertyID: re } = O, ee = { propertyID: B, propertyName: k, propertyType: N, propertyValue: A, editor: h, visible: b, readonly: V, cascadeConfig: J, hideCascadeTitle: I, refreshPanelAfterChanged: P, description: U, isExpand: oe, parentPropertyID: re };
544
+ return v[B] = ee, ee;
545
545
  });
546
546
  }
547
547
  function l(m, v, y = {}) {
@@ -552,13 +552,13 @@ function gn(t, e, n) {
552
552
  }) : [];
553
553
  }
554
554
  function f(m, v, y, T, F = "") {
555
- const j = v.$ref.schema, D = v.$ref.converter, E = y[j], w = E.type, S = n(E), I = {}, O = t[w];
555
+ const j = v.$ref.schema, D = v.$ref.converter, E = y[j], w = E.type, S = n(E), B = {}, O = t[w];
556
556
  if (O && O.categories) {
557
557
  const q = O.categories[m], k = q == null ? void 0 : q.title;
558
558
  D && Object.keys(q.properties).forEach((h) => {
559
559
  q.properties[h].$converter = D;
560
560
  });
561
- const N = (q == null ? void 0 : q.properties) || {}, $ = d(N, I, S, E, T, F);
561
+ const N = (q == null ? void 0 : q.properties) || {}, $ = d(N, B, S, E, T, F);
562
562
  return { categoryId: m, categoryName: k, properties: $ };
563
563
  }
564
564
  return { categoryId: m, categoryName: "", properties: [] };
@@ -568,14 +568,14 @@ function gn(t, e, n) {
568
568
  let w = F || t[j];
569
569
  if (w && Object.keys(w).length === 0 && y && y.getPropConfig && (w = y.getPropConfig(T)), w && w.categories) {
570
570
  const S = [];
571
- return Object.keys(w.categories).map((I) => {
572
- const O = w.categories[I];
571
+ return Object.keys(w.categories).map((B) => {
572
+ const O = w.categories[B];
573
573
  if (O.$ref) {
574
- S.push(f(I, O, m, v, T));
574
+ S.push(f(B, O, m, v, T));
575
575
  return;
576
576
  }
577
577
  const q = O == null ? void 0 : O.title, k = O == null ? void 0 : O.tabId, N = O == null ? void 0 : O.tabName, $ = O == null ? void 0 : O.hide, h = O == null ? void 0 : O.hideTitle, b = d(O.properties || {}, E, D, m, v, T, O.$converter), { setPropertyRelates: V } = O, J = O == null ? void 0 : O.parentPropertyID;
578
- S.push({ categoryId: I, categoryName: q, tabId: k, tabName: N, hide: $, properties: b, hideTitle: h, setPropertyRelates: V, parentPropertyID: J });
578
+ S.push({ categoryId: B, categoryName: q, tabId: k, tabName: N, hide: $, properties: b, hideTitle: h, setPropertyRelates: V, parentPropertyID: J });
579
579
  }), S;
580
580
  }
581
581
  return [];
@@ -588,7 +588,7 @@ function gn(t, e, n) {
588
588
  }
589
589
  const yn = {}, bn = {};
590
590
  gn(yn, bn, hr);
591
- const Cn = {}, wn = {}, { resolveSchemaWithDefaultValue: Ur } = mn(Cn, wn), Fn = {}, Tn = {};
591
+ const Cn = {}, wn = {}, { getSchemaByType: zu, resolveSchemaWithDefaultValue: Ur, resolveSchemaToProps: qu, mappingSchemaToProps: Gu, setDesignerContext: Wu } = mn(Cn, wn), Fn = {}, Tn = {};
592
592
  gn(Fn, Tn, Ur);
593
593
  function Et(t, e, n = /* @__PURE__ */ new Map(), o = (r, c, s, u) => c, a = {}, i = (r) => r) {
594
594
  return vn[e.title] = e, hn[e.title] = o, yn[e.title] = a, bn[e.title] = i, Cn[e.title] = e, wn[e.title] = o, Fn[e.title] = a, Tn[e.title] = i, (r = {}, c = !0) => {
@@ -1038,7 +1038,7 @@ function En(t, e, n) {
1038
1038
  if (n && n.getCustomButtons)
1039
1039
  return n.getCustomButtons();
1040
1040
  }
1041
- function I(N) {
1041
+ function B(N) {
1042
1042
  var h, b;
1043
1043
  if (!((h = e == null ? void 0 : e.schema) != null && h.id))
1044
1044
  return;
@@ -1050,8 +1050,8 @@ function En(t, e, n) {
1050
1050
  if (n != null && n.getComponentTitle)
1051
1051
  $ = n.getComponentTitle();
1052
1052
  else {
1053
- const { text: V, title: J, label: B, mainTitle: M, name: A, type: P } = e.schema;
1054
- $ = V || J || B || M || A || ((b = R[P]) == null ? void 0 : b.name);
1053
+ const { text: V, title: J, label: I, mainTitle: M, name: A, type: P } = e.schema;
1054
+ $ = V || J || I || M || A || ((b = R[P]) == null ? void 0 : b.name);
1055
1055
  }
1056
1056
  $ && r.getControlBasicInfoMap().set(e.schema.id, {
1057
1057
  componentTitle: $,
@@ -1061,12 +1061,12 @@ function En(t, e, n) {
1061
1061
  function O(N) {
1062
1062
  var V;
1063
1063
  const { changeObject: $ } = N, { propertyID: h, propertyValue: b } = $;
1064
- if (["text", "title", "label", "name", "mainTitle"].includes((V = N == null ? void 0 : N.changeObject) == null ? void 0 : V.propertyID) && h && b && (I(), r)) {
1065
- const J = r.getControlBasicInfoMap(), B = J.keys().toArray().filter((M) => {
1064
+ if (["text", "title", "label", "name", "mainTitle"].includes((V = N == null ? void 0 : N.changeObject) == null ? void 0 : V.propertyID) && h && b && (B(), r)) {
1065
+ const J = r.getControlBasicInfoMap(), I = J.keys().toArray().filter((M) => {
1066
1066
  var A, P;
1067
1067
  return ((A = J.get(M)) == null ? void 0 : A.reliedComponentId) === ((P = e == null ? void 0 : e.schema) == null ? void 0 : P.id);
1068
1068
  });
1069
- B != null && B.length && B.forEach((M) => {
1069
+ I != null && I.length && I.forEach((M) => {
1070
1070
  const A = J.get(M).parentPathName.split(" > ");
1071
1071
  A[0] = b, J.get(M).parentPathName = A.join(" > ");
1072
1072
  });
@@ -1101,7 +1101,7 @@ function En(t, e, n) {
1101
1101
  onRemoveComponent: w,
1102
1102
  getCustomButtons: S,
1103
1103
  onPropertyChanged: q,
1104
- setComponentBasicInfoMap: I,
1104
+ setComponentBasicInfoMap: B,
1105
1105
  updateContextSchema: e == null ? void 0 : e.updateContextSchema
1106
1106
  }, i;
1107
1107
  }
@@ -1901,7 +1901,7 @@ function yi(t) {
1901
1901
  var F;
1902
1902
  const y = o.get(v.id), T = y.appearance && y.appearance.class;
1903
1903
  if (T) {
1904
- const D = T.split(" ").filter((q) => !q.startsWith("col-")), E = "col-" + v.columnInSM, w = "col-md-" + v.columnInMD, S = "col-xl-" + v.columnInLG, I = "col-el-" + v.columnInEL, O = [E, w, S, I].concat(D);
1904
+ const D = T.split(" ").filter((q) => !q.startsWith("col-")), E = "col-" + v.columnInSM, w = "col-md-" + v.columnInMD, S = "col-xl-" + v.columnInLG, B = "col-el-" + v.columnInEL, O = [E, w, S, B].concat(D);
1905
1905
  y.appearance.class = O.join(" ");
1906
1906
  }
1907
1907
  if (v.fieldSetId) {
@@ -2019,17 +2019,17 @@ class Ci extends hi {
2019
2019
  function wi(t, e) {
2020
2020
  const n = t.schema, o = new di(), { canMove: a, canAccept: i, canDelete: r } = o.getTemplateRule(t, e);
2021
2021
  function c(h, b) {
2022
- const { sourceElement: V } = h, { componentInstance: J } = V, B = e == null ? void 0 : e.formSchemaUtils;
2023
- if (!B)
2022
+ const { sourceElement: V } = h, { componentInstance: J } = V, I = e == null ? void 0 : e.formSchemaUtils;
2023
+ if (!I)
2024
2024
  return !0;
2025
- const M = B.getComponentById(J.value.belongedComponentId), A = B.getViewModelById(M.viewModel), P = B.getComponentById(t.componentInstance.value.belongedComponentId), U = B.getViewModelById(P.viewModel);
2025
+ const M = I.getComponentById(J.value.belongedComponentId), A = I.getViewModelById(M.viewModel), P = I.getComponentById(t.componentInstance.value.belongedComponentId), U = I.getViewModelById(P.viewModel);
2026
2026
  return b ? A != null && A.id && (U != null && U.id) && A.id !== U.id ? A.bindTo === U.bindTo : !0 : (A == null ? void 0 : A.id) === (U == null ? void 0 : U.id);
2027
2027
  }
2028
2028
  function s(h) {
2029
2029
  const { bindingTargetId: b } = h;
2030
2030
  if (!e)
2031
2031
  return;
2032
- const { formSchemaUtils: V, schemaService: J } = e, B = V.getComponentById(t.componentInstance.value.belongedComponentId), M = J.getFieldByIDAndVMID(b, B.viewModel);
2032
+ const { formSchemaUtils: V, schemaService: J } = e, I = V.getComponentById(t.componentInstance.value.belongedComponentId), M = J.getFieldByIDAndVMID(b, I.viewModel);
2033
2033
  return !!(M != null && M.schemaField);
2034
2034
  }
2035
2035
  function u(h) {
@@ -2052,7 +2052,7 @@ function wi(t, e) {
2052
2052
  }
2053
2053
  function l(h) {
2054
2054
  var U;
2055
- const b = h.componentInstance, V = b.value.schema, J = e == null ? void 0 : e.formSchemaUtils, B = e == null ? void 0 : e.designViewModelUtils, M = J.getViewModelIdByComponentId(b.value.belongedComponentId), A = B.getDgViewModel(M), P = b.value.parent;
2055
+ const b = h.componentInstance, V = b.value.schema, J = e == null ? void 0 : e.formSchemaUtils, I = e == null ? void 0 : e.designViewModelUtils, M = J.getViewModelIdByComponentId(b.value.belongedComponentId), A = I.getDgViewModel(M), P = b.value.parent;
2056
2056
  if (P && lt.fieldset && ((U = P.schema) == null ? void 0 : U.type) === lt.fieldset.type && A) {
2057
2057
  const oe = { groupId: null, groupName: null };
2058
2058
  switch (V.binding.type) {
@@ -2068,18 +2068,18 @@ function wi(t, e) {
2068
2068
  }
2069
2069
  }
2070
2070
  function f(h, b, V) {
2071
- const J = b.fields.find((U) => U.id === h), B = e == null ? void 0 : e.designViewModelUtils, M = B.getDgViewModel(b.id), A = M.fields.find((U) => U.id === h);
2071
+ const J = b.fields.find((U) => U.id === h), I = e == null ? void 0 : e.designViewModelUtils, M = I.getDgViewModel(b.id), A = M.fields.find((U) => U.id === h);
2072
2072
  M.removeField([h]);
2073
- const P = B.getDgViewModel(V);
2073
+ const P = I.getDgViewModel(V);
2074
2074
  P.addField(A), J.fieldSchema && P.changeField(A.id, J.fieldSchema);
2075
2075
  }
2076
2076
  function p(h, b, V, J = []) {
2077
- const B = b.id, M = h.binding.field, A = b.fields.findIndex((U) => U.id === M);
2078
- if (A > -1 && (V.fields.push(b.fields[A]), b.fields.splice(A, 1)), B === "root-viewmodel" && V.id !== "root-viewmodel") {
2077
+ const I = b.id, M = h.binding.field, A = b.fields.findIndex((U) => U.id === M);
2078
+ if (A > -1 && (V.fields.push(b.fields[A]), b.fields.splice(A, 1)), I === "root-viewmodel" && V.id !== "root-viewmodel") {
2079
2079
  h.binding.path && !h.binding.path.includes("root-component.") && (h.binding.path = "root-component." + h.binding.path);
2080
2080
  return;
2081
2081
  }
2082
- if (V.id === "root-viewmodel" && B !== "root-viewmodel" && h.binding.path && h.binding.path.includes("root-component.")) {
2082
+ if (V.id === "root-viewmodel" && I !== "root-viewmodel" && h.binding.path && h.binding.path.includes("root-component.")) {
2083
2083
  h.binding.path = h.binding.path.replace("root-component.", "");
2084
2084
  return;
2085
2085
  }
@@ -2090,13 +2090,13 @@ function wi(t, e) {
2090
2090
  var A;
2091
2091
  if (!h)
2092
2092
  return;
2093
- const B = b.id === "root-viewmodel" && V.id !== "root-viewmodel", M = V.id === "root-viewmodel" && b.id !== "root-viewmodel";
2093
+ const I = b.id === "root-viewmodel" && V.id !== "root-viewmodel", M = V.id === "root-viewmodel" && b.id !== "root-viewmodel";
2094
2094
  Object.keys(h).forEach((P) => {
2095
2095
  if (P === "binding")
2096
2096
  return;
2097
2097
  const U = h[P];
2098
2098
  if (U && typeof U == "object" && U.type === Qe.Variable && U.field) {
2099
- if (B) {
2099
+ if (I) {
2100
2100
  U.path && !U.path.includes("root-component.") && (U.path = "root-component." + U.path);
2101
2101
  return;
2102
2102
  }
@@ -2128,16 +2128,16 @@ function wi(t, e) {
2128
2128
  function y(h = [], b) {
2129
2129
  if (!h.length)
2130
2130
  return;
2131
- const V = e == null ? void 0 : e.formSchemaUtils, J = V.getComponentByViewModelId(b), B = [], M = (P, U) => {
2131
+ const V = e == null ? void 0 : e.formSchemaUtils, J = V.getComponentByViewModelId(b), I = [], M = (P, U) => {
2132
2132
  P && (Object.keys(P).forEach((oe) => {
2133
2133
  const re = P[oe];
2134
2134
  re && typeof re == "object" && re.type === Qe.Variable && h.includes(re.field) && !U.includes(re.field) && U.push(re.field);
2135
2135
  }), P.editor && M(P.editor, U));
2136
2136
  };
2137
- v(J, M, B);
2137
+ v(J, M, I);
2138
2138
  const A = V.getViewModelById(b);
2139
2139
  h.forEach((P) => {
2140
- B.includes(P) || (A.states = A.states.filter((U) => U.id !== P));
2140
+ I.includes(P) || (A.states = A.states.filter((U) => U.id !== P));
2141
2141
  });
2142
2142
  }
2143
2143
  function T(h) {
@@ -2153,7 +2153,7 @@ function wi(t, e) {
2153
2153
  }
2154
2154
  function F(h, b, V) {
2155
2155
  var oe, re, ee;
2156
- const J = {}, B = h.type === "form-group" && h.editor ? h.editor.type : h.type, M = (oe = so[B]) == null ? void 0 : oe.events;
2156
+ const J = {}, I = h.type === "form-group" && h.editor ? h.editor.type : h.type, M = (oe = so[I]) == null ? void 0 : oe.events;
2157
2157
  if (!M)
2158
2158
  return;
2159
2159
  Object.keys(h).forEach((se) => {
@@ -2185,8 +2185,8 @@ function wi(t, e) {
2185
2185
  }
2186
2186
  }
2187
2187
  function j(h) {
2188
- const b = e == null ? void 0 : e.formSchemaUtils, V = h.componentInstance, J = V.value.schema, B = b.getViewModelIdByComponentId(V.value.belongedComponentId), M = b.getViewModelById(B), A = b.getComponentById(t.componentInstance.value.belongedComponentId), P = b.getViewModelById(A.viewModel);
2189
- if (B !== P.id) {
2188
+ const b = e == null ? void 0 : e.formSchemaUtils, V = h.componentInstance, J = V.value.schema, I = b.getViewModelIdByComponentId(V.value.belongedComponentId), M = b.getViewModelById(I), A = b.getComponentById(t.componentInstance.value.belongedComponentId), P = b.getViewModelById(A.viewModel);
2189
+ if (I !== P.id) {
2190
2190
  const U = J.binding.type, oe = J.binding.field, re = [];
2191
2191
  switch (U) {
2192
2192
  case Qe.Form: {
@@ -2198,7 +2198,7 @@ function wi(t, e) {
2198
2198
  break;
2199
2199
  }
2200
2200
  }
2201
- m(J, M, P, re), m(J.editor, M, P, re), F(J, M, P), B !== "root-viewmodel" && y(re, B);
2201
+ m(J, M, P, re), m(J.editor, M, P, re), F(J, M, P), I !== "root-viewmodel" && y(re, I);
2202
2202
  }
2203
2203
  }
2204
2204
  function D(h) {
@@ -2240,11 +2240,11 @@ function wi(t, e) {
2240
2240
  J = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(J, b.schema.id, t.schema), h.appearance || (h.appearance = {}), h.appearance.class = J;
2241
2241
  }
2242
2242
  }
2243
- function I(h, b, V, J) {
2244
- const { bindingSourceContext: B, parentComponentInstance: M } = h;
2245
- if (B != null && B.entityFieldNode && M) {
2243
+ function B(h, b, V, J) {
2244
+ const { bindingSourceContext: I, parentComponentInstance: M } = h;
2245
+ if (I != null && I.entityFieldNode && M) {
2246
2246
  const A = e == null ? void 0 : e.designViewModelUtils, U = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(M.belongedComponentId), oe = A.getDgViewModel(U);
2247
- oe.removeField([B.entityFieldNode.id]), oe.addField(B.designViewModelField), b && oe.changeField(B.entityFieldNode.id, { editor: { $type: b }, groupId: V, groupName: J });
2247
+ oe.removeField([I.entityFieldNode.id]), oe.addField(I.designViewModelField), b && oe.changeField(I.entityFieldNode.id, { editor: { $type: b }, groupId: V, groupName: J });
2248
2248
  }
2249
2249
  }
2250
2250
  function O(h, b) {
@@ -2254,7 +2254,7 @@ function wi(t, e) {
2254
2254
  const { label: U } = h;
2255
2255
  let oe;
2256
2256
  const re = e == null ? void 0 : e.controlCreatorUtils;
2257
- return (M = h.bindingSourceContext) != null && M.entityFieldNode ? oe = re.setFormFieldProperty((A = h.bindingSourceContext) == null ? void 0 : A.entityFieldNode, b == null ? void 0 : b.type) : (oe = re.createFormGroupWithoutField(b == null ? void 0 : b.type), oe.label = U), S(oe), I(h, (P = oe.editor) == null ? void 0 : P.type), oe;
2257
+ return (M = h.bindingSourceContext) != null && M.entityFieldNode ? oe = re.setFormFieldProperty((A = h.bindingSourceContext) == null ? void 0 : A.entityFieldNode, b == null ? void 0 : b.type) : (oe = re.createFormGroupWithoutField(b == null ? void 0 : b.type), oe.label = U), S(oe), B(h, (P = oe.editor) == null ? void 0 : P.type), oe;
2258
2258
  }
2259
2259
  return b;
2260
2260
  }
@@ -2281,7 +2281,7 @@ function wi(t, e) {
2281
2281
  onResolveNewComponentSchema: O,
2282
2282
  moveInputBetweenComponent: j,
2283
2283
  resolveFormGroupAppearance: S,
2284
- syncFieldToViewModel: I
2284
+ syncFieldToViewModel: B
2285
2285
  };
2286
2286
  }
2287
2287
  const Fi = /* @__PURE__ */ Fe({
@@ -2522,9 +2522,9 @@ const Si = {
2522
2522
  "common-group": !0,
2523
2523
  "q-state-readonly": c.value
2524
2524
  }));
2525
- function j(I, O, q) {
2526
- r.value = O !== void 0 ? O : I, e.emit("update:modelValue", r.value), e.emit("change", r.value, {
2527
- newValue: I,
2525
+ function j(B, O, q) {
2526
+ r.value = O !== void 0 ? O : B, e.emit("update:modelValue", r.value), e.emit("change", r.value, {
2527
+ newValue: B,
2528
2528
  newModelValue: O,
2529
2529
  parameters: q
2530
2530
  });
@@ -2533,8 +2533,8 @@ const Si = {
2533
2533
  e.emit("update:modelValue", "");
2534
2534
  }
2535
2535
  const E = G(() => {
2536
- const I = a.value.type || "input-group", O = v(I), q = m(I, a.value), k = y(I), N = T(a.value.type);
2537
- return N && (q[N] = D), q[k] = j, (q.id == null || q.id === "") && (q.id = n.value), I === "number-range" && a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" ? (a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" && (q.onBeginValueChange = a.value.onBeginValueChange), a.value.onEndValueChange && typeof a.value.onEndValueChange == "function" && (q.onEndValueChange = a.value.onEndValueChange)) : I === "lookup" && a.value["onUpdate:idValue"] && typeof a.value["onUpdate:idValue"] == "function" ? (q["onUpdate:idValue"] = a.value["onUpdate:idValue"], q.id = n.value) : I === "collection-property-editor" && a.value.onSelectionChange && typeof a.value.onSelectionChange == "function" ? q.onSelectionChange = a.value.onSelectionChange : I === "property-editor" && (q.onBeforeOpenVariables = a.value.onBeforeOpenVariables), () => C(O, tt({
2536
+ const B = a.value.type || "input-group", O = v(B), q = m(B, a.value), k = y(B), N = T(a.value.type);
2537
+ return N && (q[N] = D), q[k] = j, (q.id == null || q.id === "") && (q.id = n.value), B === "number-range" && a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" ? (a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" && (q.onBeginValueChange = a.value.onBeginValueChange), a.value.onEndValueChange && typeof a.value.onEndValueChange == "function" && (q.onEndValueChange = a.value.onEndValueChange)) : B === "lookup" && a.value["onUpdate:idValue"] && typeof a.value["onUpdate:idValue"] == "function" ? (q["onUpdate:idValue"] = a.value["onUpdate:idValue"], q.id = n.value) : B === "collection-property-editor" && a.value.onSelectionChange && typeof a.value.onSelectionChange == "function" ? q.onSelectionChange = a.value.onSelectionChange : B === "property-editor" && (q.onBeforeOpenVariables = a.value.onBeforeOpenVariables), () => C(O, tt({
2538
2538
  ref: l
2539
2539
  }, q, {
2540
2540
  modelValue: r.value,
@@ -2547,9 +2547,9 @@ const Si = {
2547
2547
  errors: f.value
2548
2548
  }, null);
2549
2549
  }
2550
- return ve([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([I, O, q, k, N, $, h, b, V, J]) => {
2551
- var B;
2552
- n.value = I, o.value = O, a.value = q, i.value = k, r.value = N, c.value = $, s.value = ((B = a.value) == null ? void 0 : B.required) || h, u.value = b, d.value = V, f.value = J;
2550
+ return ve([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([B, O, q, k, N, $, h, b, V, J]) => {
2551
+ var I;
2552
+ n.value = B, o.value = O, a.value = q, i.value = k, r.value = N, c.value = $, s.value = ((I = a.value) == null ? void 0 : I.required) || h, u.value = b, d.value = V, f.value = J;
2553
2553
  }), e.expose({
2554
2554
  editorRef: l
2555
2555
  }), () => d.value && C("div", {
@@ -3058,7 +3058,7 @@ var Ai = { exports: {} };
3058
3058
  function l(k, N) {
3059
3059
  var $ = arguments.length;
3060
3060
  $ === 1 && Array.isArray(k) === !1 && (N = k, k = []);
3061
- var h, b, V, J, B, M, A, P, U, oe = null, re, ee, se = !1, ce = 0, ae, Y = N || {};
3061
+ var h, b, V, J, I, M, A, P, U, oe = null, re, ee, se = !1, ce = 0, ae, Y = N || {};
3062
3062
  Y.moves === void 0 && (Y.moves = F), Y.accepts === void 0 && (Y.accepts = F), Y.invalid === void 0 && (Y.invalid = ut), Y.containers === void 0 && (Y.containers = k || []), Y.isContainer === void 0 && (Y.isContainer = T), Y.copy === void 0 && (Y.copy = !1), Y.copySortSource === void 0 && (Y.copySortSource = !1), Y.revertOnSpill === void 0 && (Y.revertOnSpill = !1), Y.removeOnSpill === void 0 && (Y.removeOnSpill = !1), Y.direction === void 0 && (Y.direction = "vertical"), Y.ignoreInputTextSelection === void 0 && (Y.ignoreInputTextSelection = !0), Y.mirrorContainer === void 0 && (Y.mirrorContainer = u.body);
3063
3063
  var de = r({
3064
3064
  containers: Y.containers,
@@ -3093,7 +3093,7 @@ var Ai = { exports: {} };
3093
3093
  re && x.preventDefault();
3094
3094
  }
3095
3095
  function pe(x) {
3096
- J = x.clientX, B = x.clientY;
3096
+ J = x.clientX, I = x.clientY;
3097
3097
  var z = v(x) !== 1 || x.metaKey || x.ctrlKey;
3098
3098
  if (!z) {
3099
3099
  var Z = x.target, K = $e(Z);
@@ -3106,7 +3106,7 @@ var Ai = { exports: {} };
3106
3106
  Ue({});
3107
3107
  return;
3108
3108
  }
3109
- if (!(x.clientX !== void 0 && Math.abs(x.clientX - J) <= (Y.slideFactorX || 0) && x.clientY !== void 0 && Math.abs(x.clientY - B) <= (Y.slideFactorY || 0))) {
3109
+ if (!(x.clientX !== void 0 && Math.abs(x.clientX - J) <= (Y.slideFactorX || 0) && x.clientY !== void 0 && Math.abs(x.clientY - I) <= (Y.slideFactorY || 0))) {
3110
3110
  if (Y.ignoreInputTextSelection) {
3111
3111
  var z = q("clientX", x) || 0, Z = q("clientY", x) || 0, K = u.elementFromPoint(z, Z);
3112
3112
  if (w(K))
@@ -3124,7 +3124,7 @@ var Ai = { exports: {} };
3124
3124
  return;
3125
3125
  var Z = E(x);
3126
3126
  if (Z && !Y.invalid(x, z)) {
3127
- var K = Y.moves(x, Z, z, I(x));
3127
+ var K = Y.moves(x, Z, z, B(x));
3128
3128
  if (K)
3129
3129
  return {
3130
3130
  item: x,
@@ -3141,7 +3141,7 @@ var Ai = { exports: {} };
3141
3141
  z && Ae(z);
3142
3142
  }
3143
3143
  function Ae(x) {
3144
- jt(x.item, x.source) && (P = x.item.cloneNode(!0), de.emit("cloned", P, x.item, "copy")), b = x.source, V = x.item, M = A = I(x.item), de.dragging = !0, de.emit("drag", V, b);
3144
+ jt(x.item, x.source) && (P = x.item.cloneNode(!0), de.emit("cloned", P, x.item, "copy")), b = x.source, V = x.item, M = A = B(x.item), de.dragging = !0, de.emit("drag", V, b);
3145
3145
  }
3146
3146
  function ut() {
3147
3147
  return !1;
@@ -3183,7 +3183,7 @@ var Ai = { exports: {} };
3183
3183
  }
3184
3184
  function me(x, z) {
3185
3185
  var Z;
3186
- return z !== void 0 ? Z = z : h ? Z = A : Z = I(P || V), x === b && Z === M;
3186
+ return z !== void 0 ? Z = z : h ? Z = A : Z = B(P || V), x === b && Z === M;
3187
3187
  }
3188
3188
  function he(x, z, Z) {
3189
3189
  for (var K = x; K && !le(); )
@@ -3231,7 +3231,7 @@ var Ai = { exports: {} };
3231
3231
  }
3232
3232
  }
3233
3233
  function It(x, z, Z) {
3234
- (x === z || x === I(z)) && (A = I(z)), (x === null && Z || x !== z && x !== I(z)) && (A = x);
3234
+ (x === z || x === B(z)) && (A = B(z)), (x === null && Z || x !== z && x !== B(z)) && (A = x);
3235
3235
  }
3236
3236
  function Bt(x) {
3237
3237
  s.rm(x, "gu-hide");
@@ -3350,7 +3350,7 @@ var Ai = { exports: {} };
3350
3350
  return Ve(le ? Z > ge.left + j(ge) / 2 : K > ge.top + D(ge) / 2);
3351
3351
  }
3352
3352
  function Ve(ge) {
3353
- return ge ? I(z) : z;
3353
+ return ge ? B(z) : z;
3354
3354
  }
3355
3355
  }
3356
3356
  function jt(x, z) {
@@ -3429,7 +3429,7 @@ var Ai = { exports: {} };
3429
3429
  function S(k) {
3430
3430
  return !k || k.contentEditable === "false" ? !1 : k.contentEditable === "true" ? !0 : S(E(k));
3431
3431
  }
3432
- function I(k) {
3432
+ function B(k) {
3433
3433
  return k.nextElementSibling || N();
3434
3434
  function N() {
3435
3435
  var $ = k;
@@ -3512,23 +3512,23 @@ var Ai = { exports: {} };
3512
3512
  remove: d,
3513
3513
  fabricate: y
3514
3514
  };
3515
- function f(E, w, S, I) {
3516
- return E.addEventListener(w, S, I);
3515
+ function f(E, w, S, B) {
3516
+ return E.addEventListener(w, S, B);
3517
3517
  }
3518
3518
  function p(E, w, S) {
3519
3519
  return E.attachEvent("on" + w, F(E, w, S));
3520
3520
  }
3521
- function m(E, w, S, I) {
3522
- return E.removeEventListener(w, S, I);
3521
+ function m(E, w, S, B) {
3522
+ return E.removeEventListener(w, S, B);
3523
3523
  }
3524
3524
  function v(E, w, S) {
3525
- var I = j(E, w, S);
3526
- if (I)
3527
- return E.detachEvent("on" + w, I);
3525
+ var B = j(E, w, S);
3526
+ if (B)
3527
+ return E.detachEvent("on" + w, B);
3528
3528
  }
3529
3529
  function y(E, w, S) {
3530
- var I = c.indexOf(w) === -1 ? q() : O();
3531
- E.dispatchEvent ? E.dispatchEvent(I) : E.fireEvent("on" + w, I);
3530
+ var B = c.indexOf(w) === -1 ? q() : O();
3531
+ E.dispatchEvent ? E.dispatchEvent(B) : E.fireEvent("on" + w, B);
3532
3532
  function O() {
3533
3533
  var k;
3534
3534
  return s.createEvent ? (k = s.createEvent("Event"), k.initEvent(w, !0, !0)) : s.createEventObject && (k = s.createEventObject()), k;
@@ -3548,26 +3548,26 @@ var Ai = { exports: {} };
3548
3548
  };
3549
3549
  }
3550
3550
  function F(E, w, S) {
3551
- var I = j(E, w, S) || T(E, w, S);
3551
+ var B = j(E, w, S) || T(E, w, S);
3552
3552
  return l.push({
3553
- wrapper: I,
3553
+ wrapper: B,
3554
3554
  element: E,
3555
3555
  type: w,
3556
3556
  fn: S
3557
- }), I;
3557
+ }), B;
3558
3558
  }
3559
3559
  function j(E, w, S) {
3560
- var I = D(E, w, S);
3561
- if (I) {
3562
- var O = l[I].wrapper;
3563
- return l.splice(I, 1), O;
3560
+ var B = D(E, w, S);
3561
+ if (B) {
3562
+ var O = l[B].wrapper;
3563
+ return l.splice(B, 1), O;
3564
3564
  }
3565
3565
  }
3566
3566
  function D(E, w, S) {
3567
- var I, O;
3568
- for (I = 0; I < l.length; I++)
3569
- if (O = l[I], O.element === E && O.type === w && O.fn === S)
3570
- return I;
3567
+ var B, O;
3568
+ for (B = 0; B < l.length; B++)
3569
+ if (O = l[B], O.element === E && O.type === w && O.fn === S)
3570
+ return B;
3571
3571
  }
3572
3572
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
3573
3573
  }, { "./eventmap": 7, "custom-event": 8 }],
@@ -4182,11 +4182,11 @@ function _i(t, e, n, o, a, i, r, c, s, u, d, l, f, p, m, v, y) {
4182
4182
  leftFixedGridDataStyle: w,
4183
4183
  rightFixedGridDataStyle: S
4184
4184
  } = p, {
4185
- renderDataRow: I
4186
- } = Na(t, e, F, y, c, s, u, d, l, f, p, m, v), O = [I];
4185
+ renderDataRow: B
4186
+ } = Na(t, e, F, y, c, s, u, d, l, f, p, m, v), O = [B];
4187
4187
  function q(b, V) {
4188
4188
  const J = T(b);
4189
- return y.value.filter((B) => B.visible !== !1).map((B, M) => O[B.type](B, J, V, M));
4189
+ return y.value.filter((I) => I.visible !== !1).map((I, M) => O[I.type](I, J, V, M));
4190
4190
  }
4191
4191
  function k() {
4192
4192
  return C("div", {
@@ -4238,17 +4238,17 @@ const Hi = /* @__PURE__ */ Fe({
4238
4238
  renderLoading: E
4239
4239
  } = $a(t, s), w = ja(t, /* @__PURE__ */ new Map(), T, F, r), {
4240
4240
  dataView: S
4241
- } = w, I = Aa(t, w, r, p, e), {
4241
+ } = w, B = Aa(t, w, r, p, e), {
4242
4242
  showSelection: O,
4243
4243
  selectedValues: q
4244
- } = I, k = Ua(t, p, w, r, I, e), N = G(() => t.disabled), $ = G(() => t.virtualized ? Math.min(w.dataView.value.length, a.value) : w.dataView.value.length), h = za(t, w), {
4244
+ } = B, k = Ua(t, p, w, r, B, e), N = G(() => t.disabled), $ = G(() => t.virtualized ? Math.min(w.dataView.value.length, a.value) : w.dataView.value.length), h = za(t, w), {
4245
4245
  shouldRenderPagination: b
4246
4246
  } = h, {
4247
4247
  containerStyleObject: V
4248
4248
  } = qa(t), J = Ga(t), {
4249
- applyCommands: B
4249
+ applyCommands: I
4250
4250
  } = J;
4251
- B(i);
4251
+ I(i);
4252
4252
  const {
4253
4253
  applyColumnSetting: M,
4254
4254
  removeColumnSetting: A
@@ -4260,9 +4260,9 @@ const Hi = /* @__PURE__ */ Fe({
4260
4260
  updateColumnRenderContext: ee
4261
4261
  } = P;
4262
4262
  oe(w, U);
4263
- const se = Xa(t, re), ce = Ya(t, e, I, r), ae = Za(t, e, r, ce, p), Y = Ja(t), de = Qa(t, ae, Y), _e = Ka(t, w, ae, F, r, Y, de), Re = er(t, i, w, $, 0, _e), {
4263
+ const se = Xa(t, re), ce = Ya(t, e, B, r), ae = Za(t, e, r, ce, p), Y = Ja(t), de = Qa(t, ae, Y), _e = Ka(t, w, ae, F, r, Y, de), Re = er(t, i, w, $, 0, _e), {
4264
4264
  getVisualData: Be
4265
- } = Re, nt = tr(t, re), He = nr(t, I), {
4265
+ } = Re, nt = tr(t, re), He = nr(t, B), {
4266
4266
  sidebarWidth: ot
4267
4267
  } = He, pe = or(t, w, p, re, Re, $, 0, ot), {
4268
4268
  onWheel: st,
@@ -4287,13 +4287,13 @@ const Hi = /* @__PURE__ */ Fe({
4287
4287
  "fv-grid-wrap-content": v.value
4288
4288
  })), {
4289
4289
  renderDataArea: me
4290
- } = _i(t, e, d, l, f, nt, P, w, ae, F, ce, I, k, pe, Re, Y, p), {
4290
+ } = _i(t, e, d, l, f, nt, P, w, ae, F, ce, B, k, pe, Re, Y, p), {
4291
4291
  renderGridHeader: he,
4292
4292
  renderGridColumnResizeOverlay: Oe,
4293
4293
  shouldShowHeader: It
4294
- } = sr(t, e, u, l, f, P, w, rt, at, T, Ue, Xe, se, I, He, U, pe, ke, p), {
4294
+ } = sr(t, e, u, l, f, P, w, rt, at, T, Ue, Xe, se, B, He, U, pe, ke, p), {
4295
4295
  renderDataGridSidebar: Bt
4296
- } = ur(t, ce, I, He, pe), {
4296
+ } = ur(t, ce, B, He, pe), {
4297
4297
  renderDisableMask: kt
4298
4298
  } = cr(), {
4299
4299
  renderHorizontalScrollbar: Vt
@@ -4322,7 +4322,7 @@ const Hi = /* @__PURE__ */ Fe({
4322
4322
  w.expandTo(Q), w.reOrderVisibleIndex(), Ae();
4323
4323
  }
4324
4324
  function ct() {
4325
- const Q = I.getSelectionRow();
4325
+ const Q = B.getSelectionRow();
4326
4326
  return Q ? Q.dataIndex - 1 : -1;
4327
4327
  }
4328
4328
  function Ot() {
@@ -4339,7 +4339,7 @@ const Hi = /* @__PURE__ */ Fe({
4339
4339
  }
4340
4340
  function $t() {
4341
4341
  const Q = ct(), ne = k.getNextSelectableHierarchyItemId(Q);
4342
- w.removeHierarchyDataItem(Q), p.value = Be(0, $.value + 0 - 1), ne && I.selectItemById(ne);
4342
+ w.removeHierarchyDataItem(Q), p.value = Be(0, $.value + 0 - 1), ne && k.selectItemById(ne);
4343
4343
  }
4344
4344
  function bt(Q) {
4345
4345
  ae.onEditingRow(Q);
@@ -4351,7 +4351,7 @@ const Hi = /* @__PURE__ */ Fe({
4351
4351
  ae.cancelEditingRow(Q);
4352
4352
  }
4353
4353
  function z(Q) {
4354
- Q && (i.value = Q, B(i), ee(i.value), oe(w, U), De());
4354
+ Q && (i.value = Q, I(i), ee(i.value), oe(w, U), De());
4355
4355
  }
4356
4356
  ve(() => t.columns, (Q) => {
4357
4357
  z(Q);
@@ -4360,7 +4360,7 @@ const Hi = /* @__PURE__ */ Fe({
4360
4360
  Q && (w.load(Q), w.reOrderVisibleIndex(), ne != null && ne.keepScrollPosition ? pe.scrollTo(pe.offsetY.value) : Ae());
4361
4361
  }
4362
4362
  function K(Q) {
4363
- I.selectItemById(Q);
4363
+ k.selectItemById(Q);
4364
4364
  }
4365
4365
  function le(Q) {
4366
4366
  const ne = p.value.find((ye) => ye.raw[r.idField.value] === Q);
@@ -4370,25 +4370,25 @@ const Hi = /* @__PURE__ */ Fe({
4370
4370
  ce.activeRowById(Q);
4371
4371
  }
4372
4372
  function Ee(Q) {
4373
- I.selectItemByIds(Q);
4373
+ k.selectItemByIds(Q);
4374
4374
  }
4375
4375
  function Te() {
4376
- return I.getSelectedItems();
4376
+ return B.getSelectedItems();
4377
4377
  }
4378
4378
  function xe() {
4379
- I.clearSelection();
4379
+ B.clearSelection();
4380
4380
  }
4381
4381
  const Ve = G(() => !p.value || !p.value.length), {
4382
4382
  renderEmpty: ge
4383
4383
  } = pr(t, e);
4384
4384
  function Pe() {
4385
- return I.getSelectionRow();
4385
+ return B.getSelectionRow();
4386
4386
  }
4387
4387
  function Se(Q) {
4388
- I.unSelectItemByIds(Q);
4388
+ k.unSelectItemByIds(Q);
4389
4389
  }
4390
4390
  function Ce() {
4391
- return I.currentSelectedDataId.value;
4391
+ return B.currentSelectedDataId.value;
4392
4392
  }
4393
4393
  function dt(Q, ne, ye) {
4394
4394
  const we = S.value.find((Me) => Me[c.value] === Q);
@@ -4442,7 +4442,7 @@ const Hi = /* @__PURE__ */ Fe({
4442
4442
  ye && ce.changeRow(ye);
4443
4443
  }
4444
4444
  function zn() {
4445
- I.keepSelectingOnPaging.value || xe(), w.updateVisibleDataSummary(p.value);
4445
+ B.keepSelectingOnPaging.value || xe(), w.updateVisibleDataSummary(p.value);
4446
4446
  }
4447
4447
  e.expose({
4448
4448
  activeRowById: ue,
@@ -4479,9 +4479,9 @@ const Hi = /* @__PURE__ */ Fe({
4479
4479
  }), Gn = G(() => ({
4480
4480
  ...V.value,
4481
4481
  borderRadius: "5px"
4482
- })), {
4483
- renderDataGridPagination: ls
4484
- } = mr(t, e, w, pe, h, I), Wn = G(() => ({
4482
+ }));
4483
+ mr(t, e, w, pe, h, B);
4484
+ const Wn = G(() => ({
4485
4485
  "d-flex": !0,
4486
4486
  "justify-content-between": b.value && O.value,
4487
4487
  "justify-content-end": b.value && !O.value,
@@ -4954,18 +4954,18 @@ class Ke {
4954
4954
  function xl(t, e) {
4955
4955
  const n = g(), o = g(), a = g(), i = g(), r = g(), c = g(), s = g(), u = g(), d = g(), l = g(), f = g(), p = g(t.resizeable), m = g(), v = g(t.draggable), y = g(!1);
4956
4956
  function T() {
4957
- const B = o.value || document.body, M = window.getComputedStyle(B);
4957
+ const I = o.value || document.body, M = window.getComputedStyle(I);
4958
4958
  if (!M || !n.value)
4959
4959
  return;
4960
4960
  const A = fe.getTransformInfo(n.value), P = {};
4961
4961
  s.value && (P.deltaL = n.value.offsetLeft - s.value.x, P.deltaT = n.value.offsetTop - s.value.y);
4962
4962
  const U = M.getPropertyValue("position");
4963
- P.width = B.clientWidth, P.height = B.clientHeight, P.pr = parseInt(M.getPropertyValue("padding-right"), 10), P.pb = parseInt(M.getPropertyValue("padding-bottom"), 10), P.position = M.getPropertyValue("position"), U === "static" && (B.style.position = "relative"), P.translateX = A.x, P.translateY = A.y, l.value = P;
4963
+ P.width = I.clientWidth, P.height = I.clientHeight, P.pr = parseInt(M.getPropertyValue("padding-right"), 10), P.pb = parseInt(M.getPropertyValue("padding-bottom"), 10), P.position = M.getPropertyValue("position"), U === "static" && (I.style.position = "relative"), P.translateX = A.x, P.translateY = A.y, l.value = P;
4964
4964
  }
4965
- function F(B) {
4965
+ function F(I) {
4966
4966
  if (n.value) {
4967
4967
  i.value = Ke.getCurrent(n.value), r.value = fe.getCurrent(n.value), c.value = i.value ? Ke.copy(i.value) : null, s.value = r.value ? fe.copy(r.value) : null, T();
4968
- const M = B.target.getAttribute("type") || "";
4968
+ const M = I.target.getAttribute("type") || "";
4969
4969
  u.value = {
4970
4970
  n: !!M.match(/n/),
4971
4971
  s: !!M.match(/s/),
@@ -4975,49 +4975,49 @@ function xl(t, e) {
4975
4975
  }
4976
4976
  }
4977
4977
  function j() {
4978
- var B, M, A, P;
4978
+ var I, M, A, P;
4979
4979
  if (n.value) {
4980
4980
  const U = n.value;
4981
- u.value && ((u.value.n || u.value.s) && ((B = c.value) != null && B.height) && (U.style.height = c.value.height + "px"), (u.value.w || u.value.e) && ((M = c.value) != null && M.width) && (U.style.width = c.value.width + "px"), s.value && ((A = s.value) != null && A.x && (U.style.left = s.value.x + "px"), (P = s.value) != null && P.y && (U.style.top = s.value.y + "px")));
4981
+ u.value && ((u.value.n || u.value.s) && ((I = c.value) != null && I.height) && (U.style.height = c.value.height + "px"), (u.value.w || u.value.e) && ((M = c.value) != null && M.width) && (U.style.width = c.value.width + "px"), s.value && ((A = s.value) != null && A.x && (U.style.left = s.value.x + "px"), (P = s.value) != null && P.y && (U.style.top = s.value.y + "px")));
4982
4982
  }
4983
4983
  }
4984
4984
  function D() {
4985
- const B = t.minHeight ? t.minHeight : 1, M = t.minWidth ? t.minWidth : 1;
4986
- c.value && s.value && u.value && i.value && (c.value.height < B && (c.value.height = B, u.value.n && r.value && (s.value.y = r.value.y + (i.value.height - B))), c.value.width < M && (c.value.width = M, u.value.w && r.value && (s.value.x = r.value.x + (i.value.width - M))), t.maxHeight && c.value.height > t.maxHeight && (c.value.height = t.maxHeight, r.value && u.value.n && (s.value.y = r.value.y + (i.value.height - t.maxHeight))), t.maxWidth && c.value.width > t.maxWidth && (c.value.width = t.maxWidth, u.value.w && r.value && (s.value.x = r.value.x + (i.value.width - t.maxWidth))));
4985
+ const I = t.minHeight ? t.minHeight : 1, M = t.minWidth ? t.minWidth : 1;
4986
+ c.value && s.value && u.value && i.value && (c.value.height < I && (c.value.height = I, u.value.n && r.value && (s.value.y = r.value.y + (i.value.height - I))), c.value.width < M && (c.value.width = M, u.value.w && r.value && (s.value.x = r.value.x + (i.value.width - M))), t.maxHeight && c.value.height > t.maxHeight && (c.value.height = t.maxHeight, r.value && u.value.n && (s.value.y = r.value.y + (i.value.height - t.maxHeight))), t.maxWidth && c.value.width > t.maxWidth && (c.value.width = t.maxWidth, u.value.w && r.value && (s.value.x = r.value.x + (i.value.width - t.maxWidth))));
4987
4987
  }
4988
4988
  function E() {
4989
4989
  if (o.value) {
4990
- const B = l.value;
4990
+ const I = l.value;
4991
4991
  if (s.value && c.value && u.value && i.value) {
4992
- const M = B.width - B.pr - B.deltaL - B.translateX - s.value.x, A = B.height - B.pb - B.deltaT - B.translateY - s.value.y;
4993
- u.value.n && s.value.y + B.translateY < 0 && r.value && (s.value.y = -B.translateY, c.value.height = i.value.height + r.value.y + B.translateY), u.value.w && s.value.x + B.translateX < 0 && r.value && (s.value.x = -B.translateX, c.value.width = i.value.width + r.value.x + B.translateX), c.value.width > M && (c.value.width = M), c.value.height > A && (c.value.height = A);
4992
+ const M = I.width - I.pr - I.deltaL - I.translateX - s.value.x, A = I.height - I.pb - I.deltaT - I.translateY - s.value.y;
4993
+ u.value.n && s.value.y + I.translateY < 0 && r.value && (s.value.y = -I.translateY, c.value.height = i.value.height + r.value.y + I.translateY), u.value.w && s.value.x + I.translateX < 0 && r.value && (s.value.x = -I.translateX, c.value.width = i.value.width + r.value.x + I.translateX), c.value.width > M && (c.value.width = M), c.value.height > A && (c.value.height = A);
4994
4994
  }
4995
4995
  }
4996
4996
  }
4997
- function w(B) {
4997
+ function w(I) {
4998
4998
  if (!a.value || !i.value || !r.value || !u.value)
4999
4999
  return;
5000
- B.subtract(a.value);
5001
- const M = B.x, A = B.y;
5000
+ I.subtract(a.value);
5001
+ const M = I.x, A = I.y;
5002
5002
  u.value.n ? (s.value.y = r.value.y + A, c.value.height = i.value.height - A) : u.value.s && (c.value.height = i.value.height + A), u.value.e ? c.value.width = i.value.width + M : u.value.w && (c.value.width = i.value.width - M, s.value.x = r.value.x + M), E(), D(), j();
5003
5003
  }
5004
- function S(B) {
5004
+ function S(I) {
5005
5005
  if (!d.value)
5006
5006
  return;
5007
- const M = fe.fromEvent(B);
5007
+ const M = fe.fromEvent(I);
5008
5008
  M && w(M);
5009
5009
  }
5010
- function I() {
5010
+ function B() {
5011
5011
  if (n.value) {
5012
5012
  const {
5013
- width: B,
5013
+ width: I,
5014
5014
  height: M,
5015
5015
  x: A,
5016
5016
  y: P
5017
5017
  } = n.value.getBoundingClientRect(), U = fe.getTransformInfo(n.value);
5018
5018
  return {
5019
5019
  size: {
5020
- width: B,
5020
+ width: I,
5021
5021
  height: M
5022
5022
  },
5023
5023
  position: {
@@ -5028,9 +5028,9 @@ function xl(t, e) {
5028
5028
  }
5029
5029
  return null;
5030
5030
  }
5031
- function O(B) {
5031
+ function O(I) {
5032
5032
  if (n.value) {
5033
- const M = I();
5033
+ const M = B();
5034
5034
  f.value = M;
5035
5035
  }
5036
5036
  a.value = void 0, i.value = null, r.value = null, c.value = null, s.value = null, u.value = null, d.value = null, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", O);
@@ -5038,11 +5038,11 @@ function xl(t, e) {
5038
5038
  function q() {
5039
5039
  document.addEventListener("mousemove", S), document.addEventListener("mouseup", O);
5040
5040
  }
5041
- function k(B) {
5042
- B instanceof MouseEvent && B.button === 2 || v.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), a.value = fe.fromEvent(B), d.value = B.target, F(B), q());
5041
+ function k(I) {
5042
+ I instanceof MouseEvent && I.button === 2 || v.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), a.value = fe.fromEvent(I), d.value = I.target, F(I), q());
5043
5043
  }
5044
- function N(B) {
5045
- return n.value = B, p.value && C(vt, null, [C("div", {
5044
+ function N(I) {
5045
+ return n.value = I, p.value && C(vt, null, [C("div", {
5046
5046
  class: "fv-resizable-handle fv-resizable-n",
5047
5047
  type: "n",
5048
5048
  onMousedown: (M) => k(M)
@@ -5076,10 +5076,10 @@ function xl(t, e) {
5076
5076
  onMousedown: (M) => k(M)
5077
5077
  }, null)]);
5078
5078
  }
5079
- function $(B = !0) {
5079
+ function $(I = !0) {
5080
5080
  document.body.click();
5081
5081
  const M = o.value || document.body, A = Ke.getCurrent(M), P = n.value;
5082
- B && P && (m.value = I(), m.value.transform = P.style.transform), A && P && (c.value = A, c.value.height -= 14, c.value.width -= 14, P.style.height = c.value.height + "px", P.style.width = c.value.width + "px", P.style.left = "7px", P.style.top = "7px", P.style.transform = "", f.value = {
5082
+ I && P && (m.value = B(), m.value.transform = P.style.transform), A && P && (c.value = A, c.value.height -= 14, c.value.width -= 14, P.style.height = c.value.height + "px", P.style.width = c.value.width + "px", P.style.left = "7px", P.style.top = "7px", P.style.transform = "", f.value = {
5083
5083
  size: c.value,
5084
5084
  position: {
5085
5085
  x: 0,
@@ -5088,7 +5088,7 @@ function xl(t, e) {
5088
5088
  }, v.value = !1, y.value = !0);
5089
5089
  }
5090
5090
  function h() {
5091
- var B, M;
5091
+ var I, M;
5092
5092
  if (document.body.click(), m.value) {
5093
5093
  const A = {
5094
5094
  width: m.value.size.width || 0,
@@ -5097,7 +5097,7 @@ function xl(t, e) {
5097
5097
  x: (window.innerWidth - A.width) / 2,
5098
5098
  y: (window.innerHeight - A.height) / 2
5099
5099
  };
5100
- (B = c.value) == null || B.set(A), (M = s.value) == null || M.set(P);
5100
+ (I = c.value) == null || I.set(A), (M = s.value) == null || M.set(P);
5101
5101
  const U = n.value;
5102
5102
  U.style.height = A.height + "px", U.style.width = A.width + "px", U.style.left = `${P.x}px`, U.style.top = `${P.y}px`, U.style.transform = "", f.value = {
5103
5103
  size: A,
@@ -5107,22 +5107,22 @@ function xl(t, e) {
5107
5107
  }
5108
5108
  function b() {
5109
5109
  if (n.value) {
5110
- const B = Ke.getCurrent(n.value);
5111
- if (B) {
5110
+ const I = Ke.getCurrent(n.value);
5111
+ if (I) {
5112
5112
  const {
5113
5113
  width: M,
5114
5114
  height: A
5115
- } = B;
5115
+ } = I;
5116
5116
  n.value.style.left = `${(window.innerWidth - M) / 2}px`, n.value.style.top = `${(window.innerHeight - A) / 2}px`, n.value.style.transform = "";
5117
5117
  }
5118
5118
  }
5119
5119
  }
5120
5120
  function V() {
5121
- const B = () => {
5121
+ const I = () => {
5122
5122
  y.value ? $(!1) : b(), document.body.click();
5123
5123
  };
5124
- return window.addEventListener("resize", B), () => {
5125
- window.removeEventListener("resize", B);
5124
+ return window.addEventListener("resize", I), () => {
5125
+ window.removeEventListener("resize", I);
5126
5126
  };
5127
5127
  }
5128
5128
  const J = V();
@@ -5143,33 +5143,33 @@ function Sl(t, e, n) {
5143
5143
  ve(() => n.value, (S) => {
5144
5144
  r.value.style.cursor = S ? "move" : "default";
5145
5145
  });
5146
- function p(S, I) {
5147
- if (I.tagName === "BUTTON")
5146
+ function p(S, B) {
5147
+ if (B.tagName === "BUTTON")
5148
5148
  return !1;
5149
- if (I === S)
5149
+ if (B === S)
5150
5150
  return !0;
5151
- for (const O in I.children)
5152
- if (Object.prototype.hasOwnProperty.call(I.children, O) && p(S, I.children[O]))
5151
+ for (const O in B.children)
5152
+ if (Object.prototype.hasOwnProperty.call(B.children, O) && p(S, B.children[O]))
5153
5153
  return !0;
5154
5154
  return !1;
5155
5155
  }
5156
5156
  function m() {
5157
5157
  var q, k;
5158
- let S = l.value.x + d.value.x, I = l.value.y + d.value.y;
5159
- i.value === "x" ? (S = ((q = u.value) == null ? void 0 : q.x) || 0, l.value.x = 0) : i.value === "y" && (I = ((k = u.value) == null ? void 0 : k.y) || 0, l.value.y = 0);
5160
- const O = `translate3d(${Math.round(S)}px, ${Math.round(I)}px, 0px)`;
5161
- o.value && (o.value.style.transform = O), f.value.x = S, f.value.y = I;
5158
+ let S = l.value.x + d.value.x, B = l.value.y + d.value.y;
5159
+ i.value === "x" ? (S = ((q = u.value) == null ? void 0 : q.x) || 0, l.value.x = 0) : i.value === "y" && (B = ((k = u.value) == null ? void 0 : k.y) || 0, l.value.y = 0);
5160
+ const O = `translate3d(${Math.round(S)}px, ${Math.round(B)}px, 0px)`;
5161
+ o.value && (o.value.style.transform = O), f.value.x = S, f.value.y = B;
5162
5162
  }
5163
5163
  function v() {
5164
5164
  if (!c.value || !o.value)
5165
5165
  return null;
5166
- const S = c.value.getBoundingClientRect(), I = o.value.getBoundingClientRect(), O = {
5167
- top: S.top < I.top,
5168
- right: S.right > I.right,
5169
- bottom: S.bottom > I.bottom,
5170
- left: S.left < I.left
5166
+ const S = c.value.getBoundingClientRect(), B = o.value.getBoundingClientRect(), O = {
5167
+ top: S.top < B.top,
5168
+ right: S.right > B.right,
5169
+ bottom: S.bottom > B.bottom,
5170
+ left: S.left < B.left
5171
5171
  };
5172
- return O.top || (l.value.y -= I.top - S.top), O.bottom || (l.value.y -= I.bottom - S.bottom), O.right || (l.value.x -= I.right - S.right), O.left || (l.value.x -= I.left - S.left), m(), O;
5172
+ return O.top || (l.value.y -= B.top - S.top), O.bottom || (l.value.y -= B.bottom - S.bottom), O.right || (l.value.x -= B.right - S.right), O.left || (l.value.x -= B.left - S.left), m(), O;
5173
5173
  }
5174
5174
  function y(S) {
5175
5175
  S && (u.value && S.subtract(u.value), l.value.set(S), m(), v());
@@ -5195,22 +5195,22 @@ function Sl(t, e, n) {
5195
5195
  function E(S) {
5196
5196
  if (!n.value || S instanceof MouseEvent && S.button === 2)
5197
5197
  return;
5198
- const I = S.target || S.srcElement;
5199
- r.value !== void 0 && I && !p(I, r.value) || a.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), u.value = fe.fromEvent(S, o.value), D(), j());
5198
+ const B = S.target || S.srcElement;
5199
+ r.value !== void 0 && B && !p(B, r.value) || a.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), u.value = fe.fromEvent(S, o.value), D(), j());
5200
5200
  }
5201
- function w(S, I, O) {
5202
- if (a.value && I) {
5201
+ function w(S, B, O) {
5202
+ if (a.value && B) {
5203
5203
  if (S)
5204
5204
  r.value = S;
5205
5205
  else if (t.dragHandle) {
5206
5206
  if (t.dragHandle instanceof HTMLElement)
5207
5207
  r.value = t.dragHandle;
5208
5208
  else if (typeof t.dragHandle == "string") {
5209
- const q = I.querySelector(t.dragHandle);
5209
+ const q = B.querySelector(t.dragHandle);
5210
5210
  q && (r.value = q);
5211
5211
  }
5212
5212
  }
5213
- o.value = I, c.value = O, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", E)) : a.value = !1;
5213
+ o.value = B, c.value = O, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", E)) : a.value = !1;
5214
5214
  }
5215
5215
  }
5216
5216
  return {
@@ -5281,12 +5281,12 @@ const et = /* @__PURE__ */ Fe({
5281
5281
  handle: (L) => {
5282
5282
  w(L, !0);
5283
5283
  }
5284
- }], I = g(t.buttons && t.buttons.length ? t.buttons : S), O = G(() => !!u.value), q = G(() => !!y.value && !!I.value), k = g(), N = g(), $ = g(!1), {
5284
+ }], B = g(t.buttons && t.buttons.length ? t.buttons : S), O = G(() => !!u.value), q = G(() => !!y.value && !!B.value), k = g(), N = g(), $ = g(!1), {
5285
5285
  renderResizeBar: h,
5286
5286
  maximize: b,
5287
5287
  restore: V,
5288
5288
  boundingElement: J,
5289
- resizedEventParam: B,
5289
+ resizedEventParam: I,
5290
5290
  allowDrag: M,
5291
5291
  unWindowResizeHandle: A,
5292
5292
  moveToCenter: P
@@ -5310,7 +5310,7 @@ const et = /* @__PURE__ */ Fe({
5310
5310
  L !== ie && (s.value = L);
5311
5311
  }), ve(() => t.showButtons, (L, ie) => {
5312
5312
  L !== ie && (y.value = L);
5313
- }), ve(() => B.value, (L, ie) => {
5313
+ }), ve(() => I.value, (L, ie) => {
5314
5314
  const me = L || {}, he = ie || {};
5315
5315
  JSON.stringify(me) !== JSON.stringify(he) && e.emit("resize", {
5316
5316
  newSize: L,
@@ -5388,7 +5388,7 @@ const et = /* @__PURE__ */ Fe({
5388
5388
  L.handle && await L.handle(ie, L) && e.emit("closed", ie);
5389
5389
  }
5390
5390
  function $e(L) {
5391
- L.width && (n.value = L.width), L.height && (o.value = L.height), L.buttons && (I.value = L.buttons), L.title && (T.value = L.title);
5391
+ L.width && (n.value = L.width), L.height && (o.value = L.height), L.buttons && (B.value = L.buttons), L.title && (T.value = L.title);
5392
5392
  }
5393
5393
  let je = null, ke = null;
5394
5394
  Zn(() => {
@@ -5427,7 +5427,7 @@ const et = /* @__PURE__ */ Fe({
5427
5427
  return C("div", {
5428
5428
  class: "modal-footer",
5429
5429
  style: ot.value
5430
- }, [I.value && I.value.map((L) => {
5430
+ }, [B.value && B.value.map((L) => {
5431
5431
  const ie = g(L.disabled);
5432
5432
  return C("button", {
5433
5433
  name: L.name,
@@ -5727,17 +5727,17 @@ const Vl = /* @__PURE__ */ Fe({
5727
5727
  "q-state-readonly": c.value,
5728
5728
  "form-group-in-canvas": !0
5729
5729
  })), T = G(() => {
5730
- const S = a.value.type || "input-group", I = v(S), O = m(S, a.value);
5731
- return () => C(I, tt({
5730
+ const S = a.value.type || "input-group", B = v(S), O = m(S, a.value);
5731
+ return () => C(B, tt({
5732
5732
  ref: d
5733
5733
  }, O, {
5734
5734
  modelValue: r.value,
5735
5735
  "onUpdate:modelValue": (q) => r.value = q
5736
5736
  }), null);
5737
5737
  });
5738
- ve([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.showLabel], ([S, I, O, q, k, N, $]) => {
5738
+ ve([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.showLabel], ([S, B, O, q, k, N, $]) => {
5739
5739
  var h;
5740
- n.value = S, o.value = I, a.value = {
5740
+ n.value = S, o.value = B, a.value = {
5741
5741
  ...O
5742
5742
  }, i.value = q, r.value = k, c.value = N, s.value = ((h = a.value) == null ? void 0 : h.required) === !0, u.value = $;
5743
5743
  }, {
@@ -6517,7 +6517,7 @@ const is = /* @__PURE__ */ Fe({
6517
6517
  onClick: () => T()
6518
6518
  }, [Ie("应用")])])]);
6519
6519
  }
6520
- }), Uu = {
6520
+ }), _u = {
6521
6521
  install(t) {
6522
6522
  t.component(Ut.name, Ut).component(zt.name, zt);
6523
6523
  },
@@ -6532,7 +6532,7 @@ export {
6532
6532
  zt as FDynamicFormGroup,
6533
6533
  Ol as FDynamicFormInput,
6534
6534
  Ut as FResponseForm,
6535
- Uu as default,
6535
+ _u as default,
6536
6536
  gt as dynamicFormGroupProps,
6537
6537
  ui as editorResolver,
6538
6538
  an as formGroupPropsResolver,