@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
@@ -3,10 +3,10 @@ var Ea = (e, t, n) => t in e ? Ma(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var we = (e, t, n) => Ea(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { defineComponent as oe, ref as C, computed as N, createVNode as v, Teleport as Tn, createApp as nn, onUnmounted as wt, Fragment as ot, watch as Z, nextTick as Ue, onBeforeMount as Da, onMounted as be, Transition as Bn, shallowRef as Pa, render as Jt, h as Na, cloneVNode as Ia, mergeProps as kt, reactive as Ge, createTextVNode as ie, inject as ke, withDirectives as On, vShow as ja, onUpdated as an, onBeforeUnmount as Mn, provide as En, vModelText as Ra } from "vue";
5
5
  import { resolveAppearance as Dn, createPropsResolver as on, getSchemaByTypeForDesigner as La } from "../dynamic-resolver/index.esm.js";
6
- import { useI18n as xt } from "vue-i18n";
6
+ import { useI18n as St } from "vue-i18n";
7
7
  import { getMaxZIndex as Va, getCustomClass as Pn, withInstall as Nt, FormSchemaEntityField$Type as yn, FormSchemaEntityFieldTypeName as vn, useGuid as $a, FormSchemaEntityFieldType$Type as Aa, getCustomStyle as za } from "../common/index.esm.js";
8
8
  import { LocaleService as It } from "../locale/index.esm.js";
9
- import { isPlainObject as hn, cloneDeep as Le, isUndefined as Ie, debounce as Nn } from "lodash-es";
9
+ import { cloneDeep as Le, isPlainObject as hn, isUndefined as Ie, debounce as Nn } from "lodash-es";
10
10
  import "../accordion/index.esm.js";
11
11
  import "../avatar/index.esm.js";
12
12
  import Ha from "../../designer/button-edit/index.esm.js";
@@ -84,7 +84,7 @@ import "../external-container/index.esm.js";
84
84
  import "../language-textbox/index.esm.js";
85
85
  import { useDesignerComponent as Ga } from "../designer-canvas/index.esm.js";
86
86
  import { useResizeObserver as Ua } from "@vueuse/core";
87
- import { getHierarchyRow as _a, useIdentify as Ya, useGroupData as Xa, useFilter as Ja, useHierarchy as Qa, useLoading as Za, useDataView as Ka, useSelection as eo, useSelectHierarchyItem as to, usePagination as no, useDataViewContainerStyle as ao, useCommandColumn as oo, useSettingColumn as lo, useColumn as io, useSort as ro, useGroupColumn as so, useRow as uo, useEdit as co, useVisualDataBound as fo, useVisualDataCell as po, useVisualDataRow as mo, useVisualData as yo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as bo, useFilterHistory as Co, useColumnFilter as wo, useDragColumn as ko, getColumnHeader as xo, getSidebar as So, getDisableMask as Fo, getHorizontalScrollbar as To, getVerticalScrollbar as Bo, getEmpty as Oo, getPagination as Mo, getSummary as Eo } from "../data-view/index.esm.js";
87
+ import { getHierarchyRow as _a, useIdentify as Ya, useGroupData as Xa, useFilter as Ja, useHierarchy as Qa, useLoading as Za, useDataView as Ka, useSelection as eo, useSelectHierarchyItem as to, usePagination as no, useDataViewContainerStyle as ao, useCommandColumn as oo, useSettingColumn as lo, useColumn as io, useSort as ro, useGroupColumn as so, useRow as uo, useEdit as co, useVisualDataBound as fo, useVisualDataCell as po, useVisualDataRow as mo, useVisualData as yo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as bo, useFilterHistory as Co, useColumnFilter as wo, useDragColumn as ko, getColumnHeader as So, getSidebar as xo, getDisableMask as Fo, getHorizontalScrollbar as To, getVerticalScrollbar as Bo, getEmpty as Oo, getPagination as Mo, getSummary as Eo } from "../data-view/index.esm.js";
88
88
  import { InputBaseProperty as Do } from "../property-panel/index.esm.js";
89
89
  import "../notify/index.esm.js";
90
90
  import Po from "../popover/index.esm.js";
@@ -608,18 +608,18 @@ class nt {
608
608
  function tl(e, t) {
609
609
  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);
610
610
  function w() {
611
- const $ = a.value || document.body, j = window.getComputedStyle($);
611
+ const L = a.value || document.body, j = window.getComputedStyle(L);
612
612
  if (!j || !n.value)
613
613
  return;
614
614
  const G = re.getTransformInfo(n.value), W = {};
615
615
  s.value && (W.deltaL = n.value.offsetLeft - s.value.x, W.deltaT = n.value.offsetTop - s.value.y);
616
616
  const ee = j.getPropertyValue("position");
617
- 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;
617
+ W.width = L.clientWidth, W.height = L.clientHeight, W.pr = parseInt(j.getPropertyValue("padding-right"), 10), W.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), W.position = j.getPropertyValue("position"), ee === "static" && (L.style.position = "relative"), W.translateX = G.x, W.translateY = G.y, f.value = W;
618
618
  }
619
- function k($) {
619
+ function k(L) {
620
620
  if (n.value) {
621
621
  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();
622
- const j = $.target.getAttribute("type") || "";
622
+ const j = L.target.getAttribute("type") || "";
623
623
  c.value = {
624
624
  n: !!j.match(/n/),
625
625
  s: !!j.match(/s/),
@@ -629,49 +629,49 @@ function tl(e, t) {
629
629
  }
630
630
  }
631
631
  function B() {
632
- var $, j, G, W;
632
+ var L, j, G, W;
633
633
  if (n.value) {
634
634
  const ee = n.value;
635
- 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")));
635
+ c.value && ((c.value.n || c.value.s) && ((L = u.value) != null && L.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")));
636
636
  }
637
637
  }
638
638
  function O() {
639
- const $ = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
640
- 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))));
639
+ const L = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
640
+ u.value && s.value && c.value && l.value && (u.value.height < L && (u.value.height = L, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - L))), 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))));
641
641
  }
642
642
  function b() {
643
643
  if (a.value) {
644
- const $ = f.value;
644
+ const L = f.value;
645
645
  if (s.value && u.value && c.value && l.value) {
646
- const j = $.width - $.pr - $.deltaL - $.translateX - s.value.x, G = $.height - $.pb - $.deltaT - $.translateY - s.value.y;
647
- 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);
646
+ const j = L.width - L.pr - L.deltaL - L.translateX - s.value.x, G = L.height - L.pb - L.deltaT - L.translateY - s.value.y;
647
+ c.value.n && s.value.y + L.translateY < 0 && i.value && (s.value.y = -L.translateY, u.value.height = l.value.height + i.value.y + L.translateY), c.value.w && s.value.x + L.translateX < 0 && i.value && (s.value.x = -L.translateX, u.value.width = l.value.width + i.value.x + L.translateX), u.value.width > j && (u.value.width = j), u.value.height > G && (u.value.height = G);
648
648
  }
649
649
  }
650
650
  }
651
- function y($) {
651
+ function y(L) {
652
652
  if (!o.value || !l.value || !i.value || !c.value)
653
653
  return;
654
- $.subtract(o.value);
655
- const j = $.x, G = $.y;
654
+ L.subtract(o.value);
655
+ const j = L.x, G = L.y;
656
656
  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();
657
657
  }
658
- function F($) {
658
+ function x(L) {
659
659
  if (!h.value)
660
660
  return;
661
- const j = re.fromEvent($);
661
+ const j = re.fromEvent(L);
662
662
  j && y(j);
663
663
  }
664
664
  function M() {
665
665
  if (n.value) {
666
666
  const {
667
- width: $,
667
+ width: L,
668
668
  height: j,
669
669
  x: G,
670
670
  y: W
671
671
  } = n.value.getBoundingClientRect(), ee = re.getTransformInfo(n.value);
672
672
  return {
673
673
  size: {
674
- width: $,
674
+ width: L,
675
675
  height: j
676
676
  },
677
677
  position: {
@@ -682,58 +682,58 @@ function tl(e, t) {
682
682
  }
683
683
  return null;
684
684
  }
685
- function I($) {
685
+ function I(L) {
686
686
  if (n.value) {
687
687
  const j = M();
688
688
  r.value = j;
689
689
  }
690
- 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);
690
+ 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);
691
691
  }
692
692
  function R() {
693
- document.addEventListener("mousemove", F), document.addEventListener("mouseup", I);
693
+ document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
694
694
  }
695
- function x($) {
696
- $ instanceof MouseEvent && $.button === 2 || g.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), o.value = re.fromEvent($), h.value = $.target, k($), R());
695
+ function E(L) {
696
+ L instanceof MouseEvent && L.button === 2 || g.value && (document.body.click(), L.stopPropagation(), L.preventDefault(), o.value = re.fromEvent(L), h.value = L.target, k(L), R());
697
697
  }
698
- function T($) {
699
- return n.value = $, m.value && v(ot, null, [v("div", {
698
+ function F(L) {
699
+ return n.value = L, m.value && v(ot, null, [v("div", {
700
700
  class: "fv-resizable-handle fv-resizable-n",
701
701
  type: "n",
702
- onMousedown: (j) => x(j)
702
+ onMousedown: (j) => E(j)
703
703
  }, null), v("div", {
704
704
  class: "fv-resizable-handle fv-resizable-e",
705
705
  type: "e",
706
- onMousedown: (j) => x(j)
706
+ onMousedown: (j) => E(j)
707
707
  }, null), v("div", {
708
708
  class: "fv-resizable-handle fv-resizable-s",
709
709
  type: "s",
710
- onMousedown: (j) => x(j)
710
+ onMousedown: (j) => E(j)
711
711
  }, null), v("div", {
712
712
  class: "fv-resizable-handle fv-resizable-w",
713
713
  type: "w",
714
- onMousedown: (j) => x(j)
714
+ onMousedown: (j) => E(j)
715
715
  }, null), v("div", {
716
716
  class: "fv-resizable-handle fv-resizable-ne",
717
717
  type: "ne",
718
- onMousedown: (j) => x(j)
718
+ onMousedown: (j) => E(j)
719
719
  }, null), v("div", {
720
720
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
721
721
  type: "se",
722
- onMousedown: (j) => x(j)
722
+ onMousedown: (j) => E(j)
723
723
  }, null), v("div", {
724
724
  class: "fv-resizable-handle fv-resizable-sw",
725
725
  type: "sw",
726
- onMousedown: (j) => x(j)
726
+ onMousedown: (j) => E(j)
727
727
  }, null), v("div", {
728
728
  class: "fv-resizable-handle fv-resizable-nw",
729
729
  type: "nw",
730
- onMousedown: (j) => x(j)
730
+ onMousedown: (j) => E(j)
731
731
  }, null)]);
732
732
  }
733
- function S($ = !0) {
733
+ function S(L = !0) {
734
734
  document.body.click();
735
735
  const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
736
- $ && 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 = {
736
+ L && 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 = {
737
737
  size: u.value,
738
738
  position: {
739
739
  x: 0,
@@ -741,8 +741,8 @@ function tl(e, t) {
741
741
  }
742
742
  }, g.value = !1, p.value = !0);
743
743
  }
744
- function E() {
745
- var $, j;
744
+ function T() {
745
+ var L, j;
746
746
  if (document.body.click(), d.value) {
747
747
  const G = {
748
748
  width: d.value.size.width || 0,
@@ -751,7 +751,7 @@ function tl(e, t) {
751
751
  x: (window.innerWidth - G.width) / 2,
752
752
  y: (window.innerHeight - G.height) / 2
753
753
  };
754
- ($ = u.value) == null || $.set(G), (j = s.value) == null || j.set(W);
754
+ (L = u.value) == null || L.set(G), (j = s.value) == null || j.set(W);
755
755
  const ee = n.value;
756
756
  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 = {
757
757
  size: G,
@@ -759,103 +759,103 @@ function tl(e, t) {
759
759
  }, g.value = e.draggable, p.value = !1;
760
760
  }
761
761
  }
762
- function D() {
762
+ function P() {
763
763
  if (n.value) {
764
- const $ = nt.getCurrent(n.value);
765
- if ($) {
764
+ const L = nt.getCurrent(n.value);
765
+ if (L) {
766
766
  const {
767
767
  width: j,
768
768
  height: G
769
- } = $;
769
+ } = L;
770
770
  n.value.style.left = `${(window.innerWidth - j) / 2}px`, n.value.style.top = `${(window.innerHeight - G) / 2}px`, n.value.style.transform = "";
771
771
  }
772
772
  }
773
773
  }
774
- function z() {
775
- const $ = () => {
776
- p.value ? S(!1) : D(), document.body.click();
774
+ function V() {
775
+ const L = () => {
776
+ p.value ? S(!1) : P(), document.body.click();
777
777
  };
778
- return window.addEventListener("resize", $), () => {
779
- window.removeEventListener("resize", $);
778
+ return window.addEventListener("resize", L), () => {
779
+ window.removeEventListener("resize", L);
780
780
  };
781
781
  }
782
- const Y = z();
782
+ const _ = V();
783
783
  return {
784
- renderResizeBar: T,
784
+ renderResizeBar: F,
785
785
  boundingElement: a,
786
786
  resizedEventParam: r,
787
787
  maximize: S,
788
- restore: E,
788
+ restore: T,
789
789
  allowDrag: g,
790
790
  isMaximized: p,
791
- unWindowResizeHandle: Y,
792
- moveToCenter: D
791
+ unWindowResizeHandle: _,
792
+ moveToCenter: P
793
793
  };
794
794
  }
795
795
  function nl(e, t, n) {
796
796
  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));
797
- Z(() => n.value, (F) => {
798
- i.value.style.cursor = F ? "move" : "default";
797
+ Z(() => n.value, (x) => {
798
+ i.value.style.cursor = x ? "move" : "default";
799
799
  });
800
- function m(F, M) {
800
+ function m(x, M) {
801
801
  if (M.tagName === "BUTTON")
802
802
  return !1;
803
- if (M === F)
803
+ if (M === x)
804
804
  return !0;
805
805
  for (const I in M.children)
806
- if (Object.prototype.hasOwnProperty.call(M.children, I) && m(F, M.children[I]))
806
+ if (Object.prototype.hasOwnProperty.call(M.children, I) && m(x, M.children[I]))
807
807
  return !0;
808
808
  return !1;
809
809
  }
810
810
  function d() {
811
- var R, x;
812
- let F = f.value.x + h.value.x, M = f.value.y + h.value.y;
813
- l.value === "x" ? (F = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (M = ((x = c.value) == null ? void 0 : x.y) || 0, f.value.y = 0);
814
- const I = `translate3d(${Math.round(F)}px, ${Math.round(M)}px, 0px)`;
815
- a.value && (a.value.style.transform = I), r.value.x = F, r.value.y = M;
811
+ var R, E;
812
+ let x = f.value.x + h.value.x, M = f.value.y + h.value.y;
813
+ 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);
814
+ const I = `translate3d(${Math.round(x)}px, ${Math.round(M)}px, 0px)`;
815
+ a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = M;
816
816
  }
817
817
  function g() {
818
818
  if (!u.value || !a.value)
819
819
  return null;
820
- const F = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), I = {
821
- top: F.top < M.top,
822
- right: F.right > M.right,
823
- bottom: F.bottom > M.bottom,
824
- left: F.left < M.left
820
+ const x = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), I = {
821
+ top: x.top < M.top,
822
+ right: x.right > M.right,
823
+ bottom: x.bottom > M.bottom,
824
+ left: x.left < M.left
825
825
  };
826
- 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;
826
+ 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;
827
827
  }
828
- function p(F) {
829
- F && (c.value && F.subtract(c.value), f.value.set(F), d(), g());
828
+ function p(x) {
829
+ x && (c.value && x.subtract(c.value), f.value.set(x), d(), g());
830
830
  }
831
- function w(F) {
832
- s.value && o.value && (F.stopPropagation(), F.preventDefault(), p(re.fromEvent(F, i.value)));
831
+ function w(x) {
832
+ s.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, i.value)));
833
833
  }
834
834
  function k() {
835
- var F;
836
- 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));
835
+ var x;
836
+ 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));
837
837
  }
838
838
  function B() {
839
839
  !s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
840
840
  }
841
841
  function O() {
842
842
  if (a.value) {
843
- const F = re.getTransformInfo(a.value);
844
- h.value.set(F);
843
+ const x = re.getTransformInfo(a.value);
844
+ h.value.set(x);
845
845
  return;
846
846
  }
847
847
  h.value.reset();
848
848
  }
849
- function b(F) {
850
- if (!n.value || F instanceof MouseEvent && F.button === 2)
849
+ function b(x) {
850
+ if (!n.value || x instanceof MouseEvent && x.button === 2)
851
851
  return;
852
- const M = F.target || F.srcElement;
853
- 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());
852
+ const M = x.target || x.srcElement;
853
+ 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());
854
854
  }
855
- function y(F, M, I) {
855
+ function y(x, M, I) {
856
856
  if (o.value && M) {
857
- if (F)
858
- i.value = F;
857
+ if (x)
858
+ i.value = x;
859
859
  else if (e.dragHandle) {
860
860
  if (e.dragHandle instanceof HTMLElement)
861
861
  i.value = e.dragHandle;
@@ -907,10 +907,10 @@ const at = /* @__PURE__ */ oe({
907
907
  setup(e, t) {
908
908
  const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
909
909
  t: O
910
- } = xt();
910
+ } = St();
911
911
  w.value === "错误提示" && (w.value = O("messageBox.errorTitle"));
912
912
  const b = C(!1);
913
- function y(L, Q) {
913
+ function y($, Q) {
914
914
  const ue = Q ? "accept" : "cancel";
915
915
  Promise.resolve().then(() => {
916
916
  var fe;
@@ -918,29 +918,29 @@ const at = /* @__PURE__ */ oe({
918
918
  closeType: ue
919
919
  });
920
920
  }).then((fe) => {
921
- fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", L));
921
+ fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", $));
922
922
  });
923
923
  }
924
- const F = [{
924
+ const x = [{
925
925
  name: "cancel",
926
926
  text: O("messageBox.cancel") || "取消",
927
927
  class: "btn btn-secondary",
928
- handle: (L) => {
929
- y(L, !1);
928
+ handle: ($) => {
929
+ y($, !1);
930
930
  }
931
931
  }, {
932
932
  name: "accept",
933
933
  text: O("messageBox.ok") || "确定",
934
934
  class: "btn btn-primary",
935
- handle: (L) => {
936
- y(L, !0);
935
+ handle: ($) => {
936
+ y($, !0);
937
937
  }
938
- }], M = C(e.buttons && e.buttons.length ? e.buttons : F), I = N(() => !!c.value), R = N(() => !!p.value && !!M.value), x = C(), T = C(), S = C(!1), {
939
- renderResizeBar: E,
940
- maximize: D,
941
- restore: z,
942
- boundingElement: Y,
943
- resizedEventParam: $,
938
+ }], 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), {
939
+ renderResizeBar: T,
940
+ maximize: P,
941
+ restore: V,
942
+ boundingElement: _,
943
+ resizedEventParam: L,
944
944
  allowDrag: j,
945
945
  unWindowResizeHandle: G,
946
946
  moveToCenter: W
@@ -951,66 +951,66 @@ const at = /* @__PURE__ */ oe({
951
951
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
952
952
  }
953
953
  function ve() {
954
- const L = document.querySelectorAll(".farris-modal").length;
955
- (!L || L - 1 <= 0) && document.body.classList.remove("modal-open"), B.value && B.value.classList.remove("show");
956
- }
957
- Z(() => e.title, (L, Q) => {
958
- L !== Q && (w.value = L);
959
- }), Z(() => e.modelValue, (L, Q) => {
960
- L !== Q && (o.value = L, o.value && e.draggable && Ue(() => {
961
- T.value && !k.value && (k.value = T.value.parentElement, Y.value = k.value, ee(x.value, T.value, Y.value), W());
962
- }), L || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
963
- }), Z(() => e.showHeader, (L, Q) => {
964
- L !== Q && (s.value = L);
965
- }), Z(() => e.showButtons, (L, Q) => {
966
- L !== Q && (p.value = L);
967
- }), Z(() => $.value, (L, Q) => {
968
- const ue = L || {}, fe = Q || {};
954
+ const $ = document.querySelectorAll(".farris-modal").length;
955
+ (!$ || $ - 1 <= 0) && document.body.classList.remove("modal-open"), B.value && B.value.classList.remove("show");
956
+ }
957
+ Z(() => e.title, ($, Q) => {
958
+ $ !== Q && (w.value = $);
959
+ }), Z(() => e.modelValue, ($, Q) => {
960
+ $ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
961
+ F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.value, F.value, _.value), W());
962
+ }), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
963
+ }), Z(() => e.showHeader, ($, Q) => {
964
+ $ !== Q && (s.value = $);
965
+ }), Z(() => e.showButtons, ($, Q) => {
966
+ $ !== Q && (p.value = $);
967
+ }), Z(() => L.value, ($, Q) => {
968
+ const ue = $ || {}, fe = Q || {};
969
969
  JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
970
- newSize: L,
970
+ newSize: $,
971
971
  oldSize: Q,
972
972
  isMaximized: S.value
973
973
  });
974
974
  });
975
975
  const X = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), le = N(() => {
976
976
  var ue;
977
- const L = {
977
+ const $ = {
978
978
  modal: !0,
979
979
  "farris-modal": !0,
980
980
  fade: !0
981
981
  };
982
- L["f-modal-fitContent"] = !!u.value, L.show = !!X.value;
982
+ $["f-modal-fitContent"] = !!u.value, $.show = !!X.value;
983
983
  const Q = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
984
- return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe), L), L;
984
+ return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe), $), $;
985
985
  }), de = N(() => {
986
986
  var ue;
987
- const L = {
987
+ const $ = {
988
988
  "modal-dialog": !0
989
989
  }, Q = (ue = i.value) == null ? void 0 : ue.split(" ");
990
- return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe), L), L;
990
+ return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe), $), $;
991
991
  }), ne = N(() => {
992
- const L = {
992
+ const $ = {
993
993
  position: "absolute",
994
994
  top: `${(window.innerHeight - a.value) / 2}px`,
995
995
  left: `${(window.innerWidth - n.value) / 2}px`,
996
996
  width: `${n.value}px`,
997
997
  height: u.value ? "auto" : `${a.value}px`
998
998
  };
999
- return e.mask || (L.pointerEvents = "auto"), L;
999
+ return e.mask || ($.pointerEvents = "auto"), $;
1000
1000
  }), U = () => Va() || 1040, ae = N(() => {
1001
- const L = {
1001
+ const $ = {
1002
1002
  display: "block",
1003
1003
  zIndex: U()
1004
1004
  };
1005
- return e.mask || (L.pointerEvents = "none", L.backgroundColor = "transparent"), b.value && (L.backgroundColor = "transparent"), L;
1005
+ return e.mask || ($.pointerEvents = "none", $.backgroundColor = "transparent"), b.value && ($.backgroundColor = "transparent"), $;
1006
1006
  }), Xe = N(() => ({
1007
1007
  "modal-content": !0,
1008
1008
  "modal-content-has-header": s.value
1009
1009
  })), $e = N(() => {
1010
- const L = {
1010
+ const $ = {
1011
1011
  display: s.value ? "" : "none"
1012
1012
  };
1013
- return L["pointer-events"] = j.value ? "auto" : "none", L;
1013
+ return $["pointer-events"] = j.value ? "auto" : "none", $;
1014
1014
  }), Be = N(() => ({
1015
1015
  "f-icon": !0,
1016
1016
  modal_maximize: !0,
@@ -1026,33 +1026,33 @@ const at = /* @__PURE__ */ oe({
1026
1026
  };
1027
1027
  }
1028
1028
  const rt = N(() => {
1029
- const L = {
1029
+ const $ = {
1030
1030
  textAlgin: g.value
1031
1031
  }, Q = Je();
1032
- return Object.assign(L, Q);
1032
+ return Object.assign($, Q);
1033
1033
  });
1034
- function se(L) {
1035
- if (L == null || L.stopPropagation(), S.value) {
1036
- S.value = !1, z();
1034
+ function se($) {
1035
+ if ($ == null || $.stopPropagation(), S.value) {
1036
+ S.value = !1, V();
1037
1037
  return;
1038
1038
  }
1039
- D(), S.value = !0;
1039
+ P(), S.value = !0;
1040
1040
  }
1041
- async function pt(L, Q) {
1042
- L.handle && await L.handle(Q, L) && t.emit("closed", Q);
1041
+ async function pt($, Q) {
1042
+ $.handle && await $.handle(Q, $) && t.emit("closed", Q);
1043
1043
  }
1044
- function Ae(L) {
1045
- L.width && (n.value = L.width), L.height && (a.value = L.height), L.buttons && (M.value = L.buttons), L.title && (w.value = L.title);
1044
+ function Ae($) {
1045
+ $.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (M.value = $.buttons), $.title && (w.value = $.title);
1046
1046
  }
1047
1047
  let ze = null, Oe = null;
1048
1048
  Da(() => {
1049
1049
  b.value = ce();
1050
1050
  }), be(() => {
1051
- T.value && !k.value && (k.value = T.value.parentElement, Y.value = k.value, ee(x.value, T.value, Y.value)), X.value && document.body.classList.add("modal-open"), ze = al(e, t), Oe = ol(e, t);
1051
+ 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 = al(e, t), Oe = ol(e, t);
1052
1052
  }), wt(() => {
1053
1053
  G && G(), ze && ze.remove(), Oe && Oe.remove();
1054
1054
  }), t.expose({
1055
- modalElementRef: T,
1055
+ modalElementRef: F,
1056
1056
  updateModalOptions: Ae,
1057
1057
  close: y,
1058
1058
  maxDialog: se,
@@ -1071,7 +1071,7 @@ const at = /* @__PURE__ */ oe({
1071
1071
  class: Be.value
1072
1072
  }, null)]), h.value && v("li", {
1073
1073
  class: "f-btn-icon f-bare",
1074
- onClick: (L) => y(L, !1),
1074
+ onClick: ($) => y($, !1),
1075
1075
  style: "pointer-events: auto;"
1076
1076
  }, [v("span", {
1077
1077
  class: "f-icon modal_close"
@@ -1081,24 +1081,24 @@ const at = /* @__PURE__ */ oe({
1081
1081
  return v("div", {
1082
1082
  class: "modal-footer",
1083
1083
  style: rt.value
1084
- }, [M.value && M.value.map((L) => {
1085
- const Q = C(L.disabled);
1084
+ }, [M.value && M.value.map(($) => {
1085
+ const Q = C($.disabled);
1086
1086
  return v("button", {
1087
- name: L.name,
1087
+ name: $.name,
1088
1088
  type: "button",
1089
1089
  disabled: Q.value,
1090
- class: L.class + (L.iconClass ? " btn-icontext" : ""),
1090
+ class: $.class + ($.iconClass ? " btn-icontext" : ""),
1091
1091
  onClick: (ue) => {
1092
- pt(L, ue);
1092
+ pt($, ue);
1093
1093
  }
1094
- }, [!!L.iconClass && v("i", {
1095
- class: L.iconClass
1096
- }, null), L.text]);
1094
+ }, [!!$.iconClass && v("i", {
1095
+ class: $.iconClass
1096
+ }, null), $.text]);
1097
1097
  })]);
1098
1098
  }
1099
1099
  function Qe() {
1100
1100
  return v("div", {
1101
- ref: x,
1101
+ ref: E,
1102
1102
  class: "modal-header",
1103
1103
  style: $e.value
1104
1104
  }, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
@@ -1115,34 +1115,34 @@ const at = /* @__PURE__ */ oe({
1115
1115
  function Pe() {
1116
1116
  return t.slots.footerTemplate ? t.slots.footerTemplate() : R.value && mt();
1117
1117
  }
1118
- function We(L) {
1119
- if (L.stopPropagation(), e.allowClickMaskToClose) {
1120
- if (L.target !== B.value)
1118
+ function We($) {
1119
+ if ($.stopPropagation(), e.allowClickMaskToClose) {
1120
+ if ($.target !== B.value)
1121
1121
  return;
1122
- y(L, !1);
1122
+ y($, !1);
1123
1123
  }
1124
1124
  }
1125
1125
  function st() {
1126
- var L, Q;
1126
+ var $, Q;
1127
1127
  return v("div", {
1128
1128
  id: l.value,
1129
1129
  class: de.value,
1130
1130
  style: ne.value,
1131
- ref: T
1131
+ ref: F
1132
1132
  }, [v("div", {
1133
1133
  class: Xe.value
1134
1134
  }, [s.value && Qe(), v("div", {
1135
1135
  class: it.value
1136
- }, [(Q = (L = t.slots).default) == null ? void 0 : Q.call(L), m.value === "iframe" && v("iframe", {
1136
+ }, [(Q = ($ = t.slots).default) == null ? void 0 : Q.call($), m.value === "iframe" && v("iframe", {
1137
1137
  title: l.value,
1138
1138
  class: "f-utils-fill",
1139
1139
  width: "100%",
1140
1140
  frameborder: "0",
1141
1141
  src: d.value
1142
- }, null)]), Pe()]), !u.value && T.value && !S.value && E(T.value)]);
1142
+ }, null)]), Pe()]), !u.value && F.value && !S.value && T(F.value)]);
1143
1143
  }
1144
- function ut(L) {
1145
- return L || "body";
1144
+ function ut($) {
1145
+ return $ || "body";
1146
1146
  }
1147
1147
  return () => v(Tn, {
1148
1148
  to: ut(e.host)
@@ -1265,14 +1265,14 @@ class An {
1265
1265
  });
1266
1266
  let h;
1267
1267
  const f = $n(a.value), r = (b) => {
1268
- var F;
1268
+ var x;
1269
1269
  o.value = !1;
1270
- const y = (F = b == null ? void 0 : b.target) == null ? void 0 : F.classList.contains("modal_close");
1270
+ const y = (x = b == null ? void 0 : b.target) == null ? void 0 : x.classList.contains("modal_close");
1271
1271
  u(b, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
1272
1272
  }, m = (b) => {
1273
1273
  r(b), h && Ue(() => {
1274
1274
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Jt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
1275
- const y = Object.keys(this.modalRefs).map((F) => Number(F));
1275
+ const y = Object.keys(this.modalRefs).map((x) => Number(x));
1276
1276
  y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
1277
1277
  }
1278
1278
  this.isUseEscCloseModal.value = !1;
@@ -1386,7 +1386,7 @@ const rl = {
1386
1386
  e.editor && (e.editor[t] = n);
1387
1387
  },
1388
1388
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
1389
- }, V = {
1389
+ }, A = {
1390
1390
  button: { type: "button", name: "按钮" },
1391
1391
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
1392
1392
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -1437,7 +1437,7 @@ const rl = {
1437
1437
  convertFrom: (e, t, n) => {
1438
1438
  var o;
1439
1439
  const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
1440
- return ((o = V[a]) == null ? void 0 : o.name) || a;
1440
+ return ((o = A[a]) == null ? void 0 : o.name) || a;
1441
1441
  }
1442
1442
  }, dl = {
1443
1443
  convertTo: (e, t, n, a) => {
@@ -1569,12 +1569,12 @@ const rl = {
1569
1569
  convertTo: (e, t, n) => {
1570
1570
  e[t] = n;
1571
1571
  }
1572
- }, xl = {
1572
+ }, Sl = {
1573
1573
  convertTo: (e, t, n, a) => {
1574
1574
  e.size || (e.size = {}), e.size[t] = n;
1575
1575
  },
1576
1576
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
1577
- }, Sl = {
1577
+ }, xl = {
1578
1578
  convertFrom: (e, t, n) => {
1579
1579
  var a, o;
1580
1580
  return (a = e.formatter) != null && a.data && t === "formatterEnumData" && !e.formatterEnumData ? (o = e.formatter) == null ? void 0 : o.data : e.formatterEnumData;
@@ -1633,8 +1633,8 @@ function zn(e, t, n) {
1633
1633
  ["/converter/pagination.converter", gl],
1634
1634
  ["/converter/row-number.converter", bl],
1635
1635
  ["/converter/grid-selection.converter", Cl],
1636
- ["/converter/size.converter", xl],
1637
- ["/converter/change-formatter-enum.converter", Sl],
1636
+ ["/converter/size.converter", Sl],
1637
+ ["/converter/change-formatter-enum.converter", xl],
1638
1638
  ["/converter/grid-sort.converter", Fl],
1639
1639
  ["/converter/grid-filter.converter", Tl],
1640
1640
  ["/converter/row-option.converter", Bl]
@@ -1678,13 +1678,13 @@ function zn(e, t, n) {
1678
1678
  }
1679
1679
  function h(d, g, p, w, k, B = "", O = "") {
1680
1680
  return Object.keys(d).map((y) => {
1681
- const F = C(1), M = y, I = d[y], R = Object.keys(I), x = I.title, T = I.type, S = o.get(T) || { type: "input-group", enableClear: !1 }, E = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), D = u(R, I, g), z = s(R, I, g);
1682
- E.readonly = E.readonly === void 0 ? z() : E.readonly;
1683
- const Y = I.type === "cascade" ? h(I.properties, g, p, w, k, B, O) : [], $ = !0;
1681
+ 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), V = s(R, I, g);
1682
+ T.readonly = T.readonly === void 0 ? V() : T.readonly;
1683
+ const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, O) : [], L = !0;
1684
1684
  let j = c(I, O);
1685
1685
  const G = N({
1686
1686
  get() {
1687
- if (F.value) {
1687
+ if (x.value) {
1688
1688
  if (["class", "style"].find((de) => de === M) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
1689
1689
  return j.convertFrom(p, y, k, B);
1690
1690
  const le = p[y];
@@ -1693,28 +1693,28 @@ function zn(e, t, n) {
1693
1693
  return null;
1694
1694
  },
1695
1695
  set(le) {
1696
- 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);
1696
+ 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);
1697
1697
  }
1698
- }), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName: x, propertyType: T, propertyValue: G, editor: E, visible: D, readonly: z, cascadeConfig: Y, hideCascadeTitle: $, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
1698
+ }), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName: E, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: V, cascadeConfig: _, hideCascadeTitle: L, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
1699
1699
  return g[M] = X, X;
1700
1700
  });
1701
1701
  }
1702
1702
  function f(d, g, p = {}) {
1703
1703
  const w = {}, k = e[d];
1704
1704
  return k && k.categories ? Object.keys(k.categories).map((O) => {
1705
- const b = k.categories[O], y = b == null ? void 0 : b.title, F = h(b.properties || {}, w, {}, p, g);
1706
- return { categoryId: O, categoryName: y, properties: F };
1705
+ const b = k.categories[O], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
1706
+ return { categoryId: O, categoryName: y, properties: x };
1707
1707
  }) : [];
1708
1708
  }
1709
1709
  function r(d, g, p, w, k = "") {
1710
- const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type, F = n(b), M = {}, I = e[y];
1710
+ const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type, x = n(b), M = {}, I = e[y];
1711
1711
  if (I && I.categories) {
1712
- const R = I.categories[d], x = R == null ? void 0 : R.title;
1713
- O && Object.keys(R.properties).forEach((E) => {
1714
- R.properties[E].$converter = O;
1712
+ const R = I.categories[d], E = R == null ? void 0 : R.title;
1713
+ O && Object.keys(R.properties).forEach((T) => {
1714
+ R.properties[T].$converter = O;
1715
1715
  });
1716
- const T = (R == null ? void 0 : R.properties) || {}, S = h(T, M, F, b, w, k);
1717
- return { categoryId: d, categoryName: x, properties: S };
1716
+ const F = (R == null ? void 0 : R.properties) || {}, S = h(F, M, x, b, w, k);
1717
+ return { categoryId: d, categoryName: E, properties: S };
1718
1718
  }
1719
1719
  return { categoryId: d, categoryName: "", properties: [] };
1720
1720
  }
@@ -1722,16 +1722,16 @@ function zn(e, t, n) {
1722
1722
  const B = d.type, O = n(d), b = {};
1723
1723
  let y = k || e[B];
1724
1724
  if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
1725
- const F = [];
1725
+ const x = [];
1726
1726
  return Object.keys(y.categories).map((M) => {
1727
1727
  const I = y.categories[M];
1728
1728
  if (I.$ref) {
1729
- F.push(r(M, I, d, g, w));
1729
+ x.push(r(M, I, d, g, w));
1730
1730
  return;
1731
1731
  }
1732
- const R = I == null ? void 0 : I.title, x = I == null ? void 0 : I.tabId, T = I == null ? void 0 : I.tabName, S = 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;
1733
- F.push({ categoryId: M, categoryName: R, tabId: x, tabName: T, hide: S, properties: D, hideTitle: E, setPropertyRelates: z, parentPropertyID: Y });
1734
- }), F;
1732
+ 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: V } = I, _ = I == null ? void 0 : I.parentPropertyID;
1733
+ x.push({ categoryId: M, categoryName: R, tabId: E, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: V, parentPropertyID: _ });
1734
+ }), x;
1735
1735
  }
1736
1736
  return [];
1737
1737
  }
@@ -1818,9 +1818,9 @@ function Hn(e, t) {
1818
1818
  }
1819
1819
  return { getSchemaByType: l, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: s, mappingSchemaToProps: u, setDesignerContext: h };
1820
1820
  }
1821
- const Wn = {}, qn = {}, { resolveSchemaWithDefaultValue: Ol } = Hn(Wn, qn), Gn = {}, Un = {};
1821
+ const Wn = {}, qn = {}, { getSchemaByType: Sd, resolveSchemaWithDefaultValue: Ol, resolveSchemaToProps: xd, mappingSchemaToProps: Fd, setDesignerContext: Td } = Hn(Wn, qn), Gn = {}, Un = {};
1822
1822
  zn(Gn, Un, Ol);
1823
- const _n = {}, Yn = {}, { resolveSchemaWithDefaultValue: Ml, resolveSchemaToProps: El, mappingSchemaToProps: Dl } = Hn(_n, Yn), Xn = {}, Jn = {};
1823
+ const _n = {}, Yn = {}, { getSchemaByType: Bd, resolveSchemaWithDefaultValue: Ml, resolveSchemaToProps: El, mappingSchemaToProps: Dl, setDesignerContext: Od } = Hn(_n, Yn), Xn = {}, Jn = {};
1824
1824
  zn(Xn, Jn, Ml);
1825
1825
  function Ve(e, t, n = /* @__PURE__ */ new Map(), a = (i, u, s, c) => u, o = {}, l = (i) => i) {
1826
1826
  return _n[t.title] = t, Yn[t.title] = a, Xn[t.title] = o, Jn[t.title] = l, Wn[t.title] = t, qn[t.title] = a, Gn[t.title] = o, Un[t.title] = l, (i = {}, u = !0) => {
@@ -1954,10 +1954,10 @@ const dt = class dt {
1954
1954
  */
1955
1955
  static getEditorTypesByMDataType(t, n = !1, a = "") {
1956
1956
  if (n)
1957
- return [{ key: V["language-textbox"].type, value: V["language-textbox"].name }];
1957
+ return [{ key: A["language-textbox"].type, value: A["language-textbox"].name }];
1958
1958
  let o = dt.fieldControlTypeMapping[t];
1959
1959
  if (a === "data-grid-column" && (o != null && o.length)) {
1960
- const l = [V["check-group"].type, V["radio-group"].type];
1960
+ const l = [A["check-group"].type, A["radio-group"].type];
1961
1961
  o = o.filter((i) => !l.includes(i.key));
1962
1962
  }
1963
1963
  return o;
@@ -1980,7 +1980,7 @@ const dt = class dt {
1980
1980
  static mappingDomPropAndSchemaProp(t, n) {
1981
1981
  var l;
1982
1982
  const a = (l = t.editor) == null ? void 0 : l.type, o = [];
1983
- return (t.type === V["data-grid-column"].type || t.type === V["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 === V["input-group"].type || a === V.textarea.type || a === V["number-spinner"].type) && o.push({ domField: "editor.maxLength", schemaField: "type.length" }), a === V["number-spinner"].type && o.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === V["data-grid-column"].type || t.type === V["tree-grid-column"].type) && o.push({ domField: "formatter.precision", schemaField: "type.precision" }), (a === V["combo-list"].type || a === V["radio-group"].type) && o.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === V["data-grid-column"].type || t.type === V["tree-grid-column"].type) && o.push({ domField: "formatter.data", schemaField: "type.enumValues" }), a === V["date-picker"].type && (o.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), o.push({ domField: "editor.fieldType", schemaField: "type.name" })), a === V["number-spinner"].type && (o.push({ domField: "editor.max", schemaField: "editor.maxValue" }), o.push({ domField: "editor.min", schemaField: "editor.minValue" })), a === V.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 === V["data-grid-column"].type || t.type === V["tree-grid-column"].type) && o.push({ domField: "field", schemaField: "bindingPath" }), o;
1983
+ 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;
1984
1984
  }
1985
1985
  };
1986
1986
  /**
@@ -1988,53 +1988,53 @@ const dt = class dt {
1988
1988
  */
1989
1989
  we(dt, "fieldControlTypeMapping", {
1990
1990
  String: [
1991
- { key: V["input-group"].type, value: V["input-group"].name },
1992
- { key: V.lookup.type, value: V.lookup.name },
1993
- { key: V["date-picker"].type, value: V["date-picker"].name },
1994
- { key: V.switch.type, value: V.switch.name },
1995
- { key: V["check-box"].type, value: V["check-box"].name },
1996
- { key: V["check-group"].type, value: V["check-group"].name },
1997
- { key: V["radio-group"].type, value: V["radio-group"].name },
1998
- { key: V["combo-list"].type, value: V["combo-list"].name },
1999
- { key: V.textarea.type, value: V.textarea.name },
2000
- { key: V["time-picker"].type, value: V["time-picker"].name }
1991
+ { key: A["input-group"].type, value: A["input-group"].name },
1992
+ { key: A.lookup.type, value: A.lookup.name },
1993
+ { key: A["date-picker"].type, value: A["date-picker"].name },
1994
+ { key: A.switch.type, value: A.switch.name },
1995
+ { key: A["check-box"].type, value: A["check-box"].name },
1996
+ { key: A["check-group"].type, value: A["check-group"].name },
1997
+ { key: A["radio-group"].type, value: A["radio-group"].name },
1998
+ { key: A["combo-list"].type, value: A["combo-list"].name },
1999
+ { key: A.textarea.type, value: A.textarea.name },
2000
+ { key: A["time-picker"].type, value: A["time-picker"].name }
2001
2001
  ],
2002
2002
  Text: [
2003
- { key: V.textarea.type, value: V.textarea.name },
2004
- { key: V.lookup.type, value: V.lookup.name }
2003
+ { key: A.textarea.type, value: A.textarea.name },
2004
+ { key: A.lookup.type, value: A.lookup.name }
2005
2005
  ],
2006
2006
  Decimal: [
2007
- { key: V["number-spinner"].type, value: V["number-spinner"].name }
2007
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
2008
2008
  ],
2009
2009
  Integer: [
2010
- { key: V["number-spinner"].type, value: V["number-spinner"].name }
2010
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
2011
2011
  ],
2012
2012
  Number: [
2013
- { key: V["number-spinner"].type, value: V["number-spinner"].name },
2014
- { key: V.switch.type, value: V.switch.name },
2015
- { key: V["check-box"].type, value: V["check-box"].name }
2013
+ { key: A["number-spinner"].type, value: A["number-spinner"].name },
2014
+ { key: A.switch.type, value: A.switch.name },
2015
+ { key: A["check-box"].type, value: A["check-box"].name }
2016
2016
  ],
2017
2017
  BigNumber: [
2018
- { key: V["number-spinner"].type, value: V["number-spinner"].name }
2018
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
2019
2019
  ],
2020
2020
  Date: [
2021
- { key: V["date-picker"].type, value: V["date-picker"].name }
2021
+ { key: A["date-picker"].type, value: A["date-picker"].name }
2022
2022
  ],
2023
2023
  DateTime: [
2024
- { key: V["date-picker"].type, value: V["date-picker"].name }
2024
+ { key: A["date-picker"].type, value: A["date-picker"].name }
2025
2025
  ],
2026
2026
  Boolean: [
2027
- { key: V.switch.type, value: V.switch.name },
2028
- { key: V["check-box"].type, value: V["check-box"].name }
2027
+ { key: A.switch.type, value: A.switch.name },
2028
+ { key: A["check-box"].type, value: A["check-box"].name }
2029
2029
  ],
2030
2030
  Enum: [
2031
- { key: V["combo-list"].type, value: V["combo-list"].name },
2032
- { key: V["radio-group"].type, value: V["radio-group"].name }
2031
+ { key: A["combo-list"].type, value: A["combo-list"].name },
2032
+ { key: A["radio-group"].type, value: A["radio-group"].name }
2033
2033
  ],
2034
2034
  Object: [
2035
- { key: V.lookup.type, value: V.lookup.name },
2036
- { key: V["combo-list"].type, value: V["combo-list"].name },
2037
- { key: V["radio-group"].type, value: V["radio-group"].name }
2035
+ { key: A.lookup.type, value: A.lookup.name },
2036
+ { key: A["combo-list"].type, value: A["combo-list"].name },
2037
+ { key: A["radio-group"].type, value: A["radio-group"].name }
2038
2038
  ]
2039
2039
  });
2040
2040
  let gn = dt;
@@ -2092,239 +2092,239 @@ var zl = { exports: {} };
2092
2092
  2: [function(n, a, o) {
2093
2093
  (function(l) {
2094
2094
  var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
2095
- function f(x, T) {
2095
+ function f(E, F) {
2096
2096
  var S = arguments.length;
2097
- S === 1 && Array.isArray(x) === !1 && (T = x, x = []);
2098
- var E, D, z, Y, $, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = T || {};
2099
- U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = mt), U.containers === void 0 && (U.containers = x || []), 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);
2097
+ S === 1 && Array.isArray(E) === !1 && (F = E, E = []);
2098
+ var T, P, V, _, L, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = F || {};
2099
+ U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = mt), 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);
2100
2100
  var ae = i({
2101
2101
  containers: U.containers,
2102
2102
  start: Oe,
2103
2103
  end: Qe,
2104
- cancel: L,
2104
+ cancel: $,
2105
2105
  remove: ut,
2106
2106
  destroy: Je,
2107
2107
  canMove: ze,
2108
2108
  dragging: !1
2109
2109
  });
2110
2110
  return U.removeOnSpill === !0 && ae.on("over", $t).on("out", At), $e(), ae;
2111
- function Xe(P) {
2112
- return ae.containers.indexOf(P) !== -1 || U.isContainer(P);
2111
+ function Xe(D) {
2112
+ return ae.containers.indexOf(D) !== -1 || U.isContainer(D);
2113
2113
  }
2114
- function $e(P) {
2115
- var A = P ? "remove" : "add";
2116
- d(h, A, "mousedown", se), d(h, A, "mouseup", We);
2114
+ function $e(D) {
2115
+ var z = D ? "remove" : "add";
2116
+ d(h, z, "mousedown", se), d(h, z, "mouseup", We);
2117
2117
  }
2118
- function Be(P) {
2119
- var A = P ? "remove" : "add";
2120
- d(h, A, "mousemove", pt);
2118
+ function Be(D) {
2119
+ var z = D ? "remove" : "add";
2120
+ d(h, z, "mousemove", pt);
2121
2121
  }
2122
- function it(P) {
2123
- var A = P ? "remove" : "add";
2124
- u[A](h, "selectstart", rt), u[A](h, "click", rt);
2122
+ function it(D) {
2123
+ var z = D ? "remove" : "add";
2124
+ u[z](h, "selectstart", rt), u[z](h, "click", rt);
2125
2125
  }
2126
2126
  function Je() {
2127
2127
  $e(!0), We({});
2128
2128
  }
2129
- function rt(P) {
2130
- ve && P.preventDefault();
2129
+ function rt(D) {
2130
+ ve && D.preventDefault();
2131
2131
  }
2132
- function se(P) {
2133
- Y = P.clientX, $ = P.clientY;
2134
- var A = g(P) !== 1 || P.metaKey || P.ctrlKey;
2135
- if (!A) {
2136
- var H = P.target, _ = Ae(H);
2137
- _ && (ve = _, Be(), P.type === "mousedown" && (y(H) ? H.focus() : P.preventDefault()));
2132
+ function se(D) {
2133
+ _ = D.clientX, L = D.clientY;
2134
+ var z = g(D) !== 1 || D.metaKey || D.ctrlKey;
2135
+ if (!z) {
2136
+ var H = D.target, Y = Ae(H);
2137
+ Y && (ve = Y, Be(), D.type === "mousedown" && (y(H) ? H.focus() : D.preventDefault()));
2138
2138
  }
2139
2139
  }
2140
- function pt(P) {
2140
+ function pt(D) {
2141
2141
  if (ve) {
2142
- if (g(P) === 0) {
2142
+ if (g(D) === 0) {
2143
2143
  We({});
2144
2144
  return;
2145
2145
  }
2146
- if (!(P.clientX !== void 0 && Math.abs(P.clientX - Y) <= (U.slideFactorX || 0) && P.clientY !== void 0 && Math.abs(P.clientY - $) <= (U.slideFactorY || 0))) {
2146
+ if (!(D.clientX !== void 0 && Math.abs(D.clientX - _) <= (U.slideFactorX || 0) && D.clientY !== void 0 && Math.abs(D.clientY - L) <= (U.slideFactorY || 0))) {
2147
2147
  if (U.ignoreInputTextSelection) {
2148
- var A = R("clientX", P) || 0, H = R("clientY", P) || 0, _ = c.elementFromPoint(A, H);
2149
- if (y(_))
2148
+ var z = R("clientX", D) || 0, H = R("clientY", D) || 0, Y = c.elementFromPoint(z, H);
2149
+ if (y(Y))
2150
2150
  return;
2151
2151
  }
2152
2152
  var K = ve;
2153
- Be(!0), it(), Qe(), He(K), s.add(W || z, "gu-transit"), Ht(), zt(), de = 0, Ne(P);
2153
+ Be(!0), it(), Qe(), He(K), s.add(W || V, "gu-transit"), Ht(), zt(), de = 0, Ne(D);
2154
2154
  }
2155
2155
  }
2156
2156
  }
2157
- function Ae(P) {
2158
- if (!(ae.dragging && E) && !Xe(P)) {
2159
- for (var A = P; b(P) && Xe(b(P)) === !1; )
2160
- if (U.invalid(P, A) || (P = b(P), !P))
2157
+ function Ae(D) {
2158
+ if (!(ae.dragging && T) && !Xe(D)) {
2159
+ for (var z = D; b(D) && Xe(b(D)) === !1; )
2160
+ if (U.invalid(D, z) || (D = b(D), !D))
2161
2161
  return;
2162
- var H = b(P);
2163
- if (H && !U.invalid(P, A)) {
2164
- var _ = U.moves(P, H, A, M(P));
2165
- if (_)
2162
+ var H = b(D);
2163
+ if (H && !U.invalid(D, z)) {
2164
+ var Y = U.moves(D, H, z, M(D));
2165
+ if (Y)
2166
2166
  return {
2167
- item: P,
2167
+ item: D,
2168
2168
  source: H
2169
2169
  };
2170
2170
  }
2171
2171
  }
2172
2172
  }
2173
- function ze(P) {
2174
- return !!Ae(P);
2173
+ function ze(D) {
2174
+ return !!Ae(D);
2175
2175
  }
2176
- function Oe(P) {
2177
- var A = Ae(P);
2178
- A && He(A);
2176
+ function Oe(D) {
2177
+ var z = Ae(D);
2178
+ z && He(z);
2179
2179
  }
2180
- function He(P) {
2181
- Xt(P.item, P.source) && (W = P.item.cloneNode(!0), ae.emit("cloned", W, P.item, "copy")), D = P.source, z = P.item, j = G = M(P.item), ae.dragging = !0, ae.emit("drag", z, D);
2180
+ function He(D) {
2181
+ Xt(D.item, D.source) && (W = D.item.cloneNode(!0), ae.emit("cloned", W, D.item, "copy")), P = D.source, V = D.item, j = G = M(D.item), ae.dragging = !0, ae.emit("drag", V, P);
2182
2182
  }
2183
2183
  function mt() {
2184
2184
  return !1;
2185
2185
  }
2186
2186
  function Qe() {
2187
2187
  if (ae.dragging) {
2188
- var P = W || z;
2189
- st(P, b(P));
2188
+ var D = W || V;
2189
+ st(D, b(D));
2190
2190
  }
2191
2191
  }
2192
2192
  function Pe() {
2193
2193
  ve = !1, Be(!0), it(!0);
2194
2194
  }
2195
- function We(P) {
2195
+ function We(D) {
2196
2196
  if (Pe(), !!ae.dragging) {
2197
- var A = W || z, H = R("clientX", P) || 0, _ = R("clientY", P) || 0, K = p(E, H, _), te = fe(K, H, _);
2198
- te && (W && U.copySortSource || !W || te !== D) ? st(A, te) : U.removeOnSpill ? ut() : L();
2197
+ var z = W || V, H = R("clientX", D) || 0, Y = R("clientY", D) || 0, K = p(T, H, Y), te = fe(K, H, Y);
2198
+ te && (W && U.copySortSource || !W || te !== P) ? st(z, te) : U.removeOnSpill ? ut() : $();
2199
2199
  }
2200
2200
  }
2201
- function st(P, A) {
2202
- var H = b(P);
2203
- W && U.copySortSource && A === D && H.removeChild(z), ue(A) ? ae.emit("cancel", P, D) : ae.emit("drop", P, A, D, G), Q();
2201
+ function st(D, z) {
2202
+ var H = b(D);
2203
+ W && U.copySortSource && z === P && H.removeChild(V), ue(z) ? ae.emit("cancel", D, P) : ae.emit("drop", D, z, P, G), Q();
2204
2204
  }
2205
2205
  function ut() {
2206
2206
  if (ae.dragging) {
2207
- var P = W || z, A = b(P);
2208
- A && A.removeChild(P), ae.emit(W ? "cancel" : "remove", P, A, D), Q();
2207
+ var D = W || V, z = b(D);
2208
+ z && z.removeChild(D), ae.emit(W ? "cancel" : "remove", D, z, P), Q();
2209
2209
  }
2210
2210
  }
2211
- function L(P) {
2211
+ function $(D) {
2212
2212
  if (ae.dragging) {
2213
- var A = arguments.length > 0 ? P : U.revertOnSpill, H = W || z, _ = b(H), K = ue(_);
2214
- K === !1 && A && (W ? _ && _.removeChild(W) : D.insertBefore(H, j)), K || A ? ae.emit("cancel", H, D, D) : ae.emit("drop", H, _, D, G), Q();
2213
+ var z = arguments.length > 0 ? D : U.revertOnSpill, H = W || V, Y = b(H), K = ue(Y);
2214
+ K === !1 && z && (W ? Y && Y.removeChild(W) : P.insertBefore(H, j)), K || z ? ae.emit("cancel", H, P, P) : ae.emit("drop", H, Y, P, G), Q();
2215
2215
  }
2216
2216
  }
2217
2217
  function Q() {
2218
- var P = W || z;
2219
- Pe(), Wt(), qt(), P && s.rm(P, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ce && ae.emit("out", P, ce, D), ae.emit("dragend", P, de), D = z = W = j = G = ee = ce = null;
2218
+ var D = W || V;
2219
+ Pe(), Wt(), qt(), D && s.rm(D, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ce && ae.emit("out", D, ce, P), ae.emit("dragend", D, de), P = V = W = j = G = ee = ce = null;
2220
2220
  }
2221
- function ue(P, A) {
2221
+ function ue(D, z) {
2222
2222
  var H;
2223
- return A !== void 0 ? H = A : E ? H = G : H = M(W || z), P === D && H === j;
2223
+ return z !== void 0 ? H = z : T ? H = G : H = M(W || V), D === P && H === j;
2224
2224
  }
2225
- function fe(P, A, H) {
2226
- for (var _ = P; _ && !K(); )
2227
- _ = b(_);
2228
- return _;
2225
+ function fe(D, z, H) {
2226
+ for (var Y = D; Y && !K(); )
2227
+ Y = b(Y);
2228
+ return Y;
2229
2229
  function K() {
2230
- var te = Xe(_);
2230
+ var te = Xe(Y);
2231
2231
  if (te === !1)
2232
2232
  return !1;
2233
- var Te = Ft(_, P), Ce = Tt(_, Te, A, H), xe = ue(_, Ce);
2234
- return xe ? !0 : U.accepts(z, _, D, Ce);
2233
+ var Te = Ft(Y, D), Ce = Tt(Y, Te, z, H), Se = ue(Y, Ce);
2234
+ return Se ? !0 : U.accepts(V, Y, P, Ce);
2235
2235
  }
2236
2236
  }
2237
- function Ne(P) {
2238
- if (!E)
2237
+ function Ne(D) {
2238
+ if (!T)
2239
2239
  return;
2240
- P.preventDefault();
2241
- var A = R("clientX", P) || 0, H = R("clientY", P) || 0;
2242
- E.style.left = A - 2 + "px", E.style.top = H - 2 + "px";
2243
- var _ = W || z, K = p(E, A, H), te = fe(K, A, H), Te = te !== null && te !== ce;
2244
- (Te || te === null) && (Se(), ce = te, Ee()), Yt(K, H);
2245
- var Ce = b(_);
2246
- if (te === D && W && !U.copySortSource) {
2247
- Ce && Ce.removeChild(_);
2240
+ D.preventDefault();
2241
+ var z = R("clientX", D) || 0, H = R("clientY", D) || 0;
2242
+ T.style.left = z - 2 + "px", T.style.top = H - 2 + "px";
2243
+ var Y = W || V, K = p(T, z, H), te = fe(K, z, H), Te = te !== null && te !== ce;
2244
+ (Te || te === null) && (xe(), ce = te, Ee()), Yt(K, H);
2245
+ var Ce = b(Y);
2246
+ if (te === P && W && !U.copySortSource) {
2247
+ Ce && Ce.removeChild(Y);
2248
2248
  return;
2249
2249
  }
2250
- var xe, Me = Ft(te, K);
2250
+ var Se, Me = Ft(te, K);
2251
2251
  if (le = yt(Me, te), Me !== null)
2252
- xe = Tt(te, Me, A, H);
2252
+ Se = Tt(te, Me, z, H);
2253
2253
  else if (U.revertOnSpill === !0 && !W)
2254
- xe = j, te = D;
2254
+ Se = j, te = P;
2255
2255
  else {
2256
- W && Ce && Ce.removeChild(_), W && X && (X.style.display = "none");
2256
+ W && Ce && Ce.removeChild(Y), W && X && (X.style.display = "none");
2257
2257
  return;
2258
2258
  }
2259
- X.style.display = "block", Vt(xe, _, Te), xe ? Ut(Me, xe) : _t(te);
2259
+ X.style.display = "block", Vt(Se, Y, Te), Se ? Ut(Me, Se) : _t(te);
2260
2260
  function pe(he) {
2261
- ae.emit(he, _, ce, D);
2261
+ ae.emit(he, Y, ce, P);
2262
2262
  }
2263
2263
  function Ee() {
2264
2264
  Te && pe("over");
2265
2265
  }
2266
- function Se() {
2266
+ function xe() {
2267
2267
  ce && pe("out");
2268
2268
  }
2269
2269
  }
2270
- function Vt(P, A, H) {
2271
- (P === A || P === M(A)) && (G = M(A)), (P === null && H || P !== A && P !== M(A)) && (G = P);
2270
+ function Vt(D, z, H) {
2271
+ (D === z || D === M(z)) && (G = M(z)), (D === null && H || D !== z && D !== M(z)) && (G = D);
2272
2272
  }
2273
- function $t(P) {
2274
- s.rm(P, "gu-hide");
2273
+ function $t(D) {
2274
+ s.rm(D, "gu-hide");
2275
2275
  }
2276
- function At(P) {
2277
- ae.dragging && s.add(P, "gu-hide");
2276
+ function At(D) {
2277
+ ae.dragging && s.add(D, "gu-hide");
2278
2278
  }
2279
2279
  function zt() {
2280
- 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", Ne), s.add(U.mirrorContainer, "gu-unselectable"), ae.emit("cloned", E, z, "mirror"));
2280
+ 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(V) || "控件", s.add(T, "gu-mirror"), U.mirrorContainer.appendChild(T), d(h, "add", "mousemove", Ne), s.add(U.mirrorContainer, "gu-unselectable"), ae.emit("cloned", T, V, "mirror"));
2281
2281
  }
2282
2282
  function Ht() {
2283
- if (X = document.createElement("div"), s.add(X, "gu-insertion"), z) {
2284
- var P = z.getBoundingClientRect();
2285
- X.style.left = P.left + "px", X.style.top = P.top + "px";
2283
+ if (X = document.createElement("div"), s.add(X, "gu-insertion"), V) {
2284
+ var D = V.getBoundingClientRect();
2285
+ X.style.left = D.left + "px", X.style.top = D.top + "px";
2286
2286
  }
2287
2287
  le = !1, U.mirrorContainer.appendChild(X);
2288
2288
  }
2289
2289
  function Wt() {
2290
- E && (s.rm(U.mirrorContainer, "gu-unselectable"), d(h, "remove", "mousemove", Ne), b(E).removeChild(E), E = null);
2290
+ T && (s.rm(U.mirrorContainer, "gu-unselectable"), d(h, "remove", "mousemove", Ne), b(T).removeChild(T), T = null);
2291
2291
  }
2292
2292
  function qt() {
2293
2293
  X && (b(X).removeChild(X), X = null);
2294
2294
  }
2295
- function Ft(P, A) {
2296
- for (var H = A; H !== P && b(H) !== P; )
2295
+ function Ft(D, z) {
2296
+ for (var H = z; H !== D && b(H) !== D; )
2297
2297
  H = b(H);
2298
2298
  return H === h ? null : H;
2299
2299
  }
2300
- function yt(P, A) {
2301
- if (!A)
2300
+ function yt(D, z) {
2301
+ if (!z)
2302
2302
  return le;
2303
- var H = P || A && A.lastElementChild;
2303
+ var H = D || z && z.lastElementChild;
2304
2304
  if (!H)
2305
2305
  return !0;
2306
- var _ = getComputedStyle(P), K = /^inline/.test(_.getPropertyValue("display")) || /^(left|right)$/.test(_.getPropertyValue("float"));
2306
+ var Y = getComputedStyle(D), K = /^inline/.test(Y.getPropertyValue("display")) || /^(left|right)$/.test(Y.getPropertyValue("float"));
2307
2307
  if (K)
2308
2308
  return !0;
2309
- if (A) {
2310
- var te = getComputedStyle(A), Te = te.getPropertyValue("display");
2309
+ if (z) {
2310
+ var te = getComputedStyle(z), Te = te.getPropertyValue("display");
2311
2311
  if (/flex$/.test(Te)) {
2312
2312
  var Ce = te.getPropertyValue("flex-direction") || "row";
2313
2313
  if (Ce === "row" || Ce === "row-reverse")
2314
- return !Gt(A);
2314
+ return !Gt(z);
2315
2315
  }
2316
2316
  return !1;
2317
2317
  }
2318
2318
  return !0;
2319
2319
  }
2320
- function Gt(P) {
2321
- if (!P.children || !P.children.length)
2320
+ function Gt(D) {
2321
+ if (!D.children || !D.children.length)
2322
2322
  return !1;
2323
- for (const A of Array.from(P.children)) {
2324
- const _ = (A.className && A.className.split(" ") || []).filter((K) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(K));
2325
- if (!_.length)
2323
+ for (const z of Array.from(D.children)) {
2324
+ const Y = (z.className && z.className.split(" ") || []).filter((K) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(K));
2325
+ if (!Y.length)
2326
2326
  return !1;
2327
- for (const K of _) {
2327
+ for (const K of Y) {
2328
2328
  const te = K.slice(K.lastIndexOf("-") + 1);
2329
2329
  if (parseInt(te, 10) !== 12)
2330
2330
  return !1;
@@ -2332,118 +2332,118 @@ var zl = { exports: {} };
2332
2332
  }
2333
2333
  return !0;
2334
2334
  }
2335
- function Ut(P, A) {
2336
- const H = A.getBoundingClientRect();
2335
+ function Ut(D, z) {
2336
+ const H = z.getBoundingClientRect();
2337
2337
  if (X.style.left = H.left + "px", X.style.top = H.top + "px", le) {
2338
- if (X.style.height = H.height + "px", X.style.width = "4px", P) {
2339
- const _ = P.getBoundingClientRect();
2340
- _.top !== H.top && (X.style.left = _.right + "px", X.style.top = _.top + "px", X.style.height = _.height + "px");
2338
+ if (X.style.height = H.height + "px", X.style.width = "4px", D) {
2339
+ const Y = D.getBoundingClientRect();
2340
+ Y.top !== H.top && (X.style.left = Y.right + "px", X.style.top = Y.top + "px", X.style.height = Y.height + "px");
2341
2341
  }
2342
2342
  } else if (X.style.height = "4px", X.style.width = H.width + "px", ne) {
2343
- const _ = ne.getBoundingClientRect();
2344
- H.top < _.top && (X.style.display = "none");
2343
+ const Y = ne.getBoundingClientRect();
2344
+ H.top < Y.top && (X.style.display = "none");
2345
2345
  }
2346
- A === z && z && (X.style.display = "none");
2346
+ z === V && V && (X.style.display = "none");
2347
2347
  }
2348
- function _t(P) {
2348
+ function _t(D) {
2349
2349
  G = null;
2350
- var A = P.lastElementChild;
2351
- if (A) {
2352
- var H = A.getBoundingClientRect();
2353
- 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");
2350
+ var z = D.lastElementChild;
2351
+ if (z) {
2352
+ var H = z.getBoundingClientRect();
2353
+ 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 === V && V && (X.style.display = "none");
2354
2354
  } else
2355
2355
  X.style.display = "none";
2356
2356
  }
2357
- function Yt(P, A) {
2358
- if (!U.mirrorContainer.contains(P) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = r(P), !ne || !ne.contains(P)))
2357
+ function Yt(D, z) {
2358
+ if (!U.mirrorContainer.contains(D) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = r(D), !ne || !ne.contains(D)))
2359
2359
  return;
2360
- const H = document.querySelector(".dgComponentSelected"), _ = ne.getBoundingClientRect();
2361
- if (A - 30 < _.top && ne.scrollTop > 0) {
2360
+ const H = document.querySelector(".dgComponentSelected"), Y = ne.getBoundingClientRect();
2361
+ if (z - 30 < Y.top && ne.scrollTop > 0) {
2362
2362
  let K = ne.scrollTop < 10 ? ne.scrollTop : 10;
2363
2363
  ne.scrollBy(0, -1 * K), H && ne.contains(H) && (de = de + -1 * K);
2364
2364
  }
2365
- if (A + 30 > _.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
2365
+ if (z + 30 > Y.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
2366
2366
  const K = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
2367
2367
  let te = K < 10 ? K : 10;
2368
2368
  ne.scrollBy(0, te), H && ne.contains(H) && (de = de + te);
2369
2369
  }
2370
2370
  }
2371
- function Tt(P, A, H, _) {
2372
- var K = U.direction === "horizontal", te = U.direction === "mixed", Te = A !== P ? xe() : Ce();
2371
+ function Tt(D, z, H, Y) {
2372
+ var K = U.direction === "horizontal", te = U.direction === "mixed", Te = z !== D ? Se() : Ce();
2373
2373
  return Te;
2374
2374
  function Ce() {
2375
- var pe = P.children.length, Ee, Se, he;
2375
+ var pe = D.children.length, Ee, xe, he;
2376
2376
  for (Ee = 0; Ee < pe; Ee++)
2377
- if (Se = P.children[Ee], he = Se.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 > _)
2378
- return Se;
2377
+ 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)
2378
+ return xe;
2379
2379
  return null;
2380
2380
  }
2381
- function xe() {
2382
- var pe = A.getBoundingClientRect();
2381
+ function Se() {
2382
+ var pe = z.getBoundingClientRect();
2383
2383
  if (te) {
2384
- var Ee = _ - pe.top, Se = H - pe.left, he = pe.bottom - _, vt = pe.right - H, ht = Math.min(Se, vt, Ee, he), gt;
2385
- return le ? gt = vt < Se : gt = he === ht || vt === ht || Se === ht, Me(gt);
2384
+ var Ee = Y - pe.top, xe = H - pe.left, he = pe.bottom - Y, vt = pe.right - H, ht = Math.min(xe, vt, Ee, he), gt;
2385
+ return le ? gt = vt < xe : gt = he === ht || vt === ht || xe === ht, Me(gt);
2386
2386
  }
2387
- return Me(K ? H > pe.left + B(pe) / 2 : _ > pe.top + O(pe) / 2);
2387
+ return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + O(pe) / 2);
2388
2388
  }
2389
2389
  function Me(pe) {
2390
- return pe ? M(A) : A;
2390
+ return pe ? M(z) : z;
2391
2391
  }
2392
2392
  }
2393
- function Xt(P, A) {
2394
- return typeof U.copy == "boolean" ? U.copy : U.copy(P, A);
2393
+ function Xt(D, z) {
2394
+ return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
2395
2395
  }
2396
2396
  }
2397
- function r(x) {
2398
- const T = Array.from(window.scrollContainerList);
2399
- if (T.length === 1) {
2400
- const E = Array.from(window.scrollContainerList)[0];
2401
- return document.getElementById(E);
2397
+ function r(E) {
2398
+ const F = Array.from(window.scrollContainerList);
2399
+ if (F.length === 1) {
2400
+ const T = Array.from(window.scrollContainerList)[0];
2401
+ return document.getElementById(T);
2402
2402
  }
2403
- const S = m(T);
2404
- for (const E of S)
2405
- if (E.contains(x))
2406
- return E;
2403
+ const S = m(F);
2404
+ for (const T of S)
2405
+ if (T.contains(E))
2406
+ return T;
2407
2407
  return null;
2408
2408
  }
2409
- function m(x) {
2410
- const T = [];
2411
- return x.forEach((S) => {
2412
- const E = document.getElementById(S);
2413
- E && T.push(E);
2414
- }), T.sort((S, E) => S.contains(E) ? 1 : E.contains(S) ? -1 : 0), T;
2409
+ function m(E) {
2410
+ const F = [];
2411
+ return E.forEach((S) => {
2412
+ const T = document.getElementById(S);
2413
+ T && F.push(T);
2414
+ }), F.sort((S, T) => S.contains(T) ? 1 : T.contains(S) ? -1 : 0), F;
2415
2415
  }
2416
- function d(x, T, S, E) {
2417
- var D = {
2416
+ function d(E, F, S, T) {
2417
+ var P = {
2418
2418
  mouseup: "touchend",
2419
2419
  mousedown: "touchstart",
2420
2420
  mousemove: "touchmove"
2421
- }, z = {
2421
+ }, V = {
2422
2422
  mouseup: "pointerup",
2423
2423
  mousedown: "pointerdown",
2424
2424
  mousemove: "pointermove"
2425
- }, Y = {
2425
+ }, _ = {
2426
2426
  mouseup: "MSPointerUp",
2427
2427
  mousedown: "MSPointerDown",
2428
2428
  mousemove: "MSPointerMove"
2429
2429
  };
2430
- l.navigator.pointerEnabled ? u[T](x, z[S], E) : l.navigator.msPointerEnabled ? u[T](x, Y[S], E) : (u[T](x, D[S], E), u[T](x, S, E));
2430
+ l.navigator.pointerEnabled ? u[F](E, V[S], T) : l.navigator.msPointerEnabled ? u[F](E, _[S], T) : (u[F](E, P[S], T), u[F](E, S, T));
2431
2431
  }
2432
- function g(x) {
2433
- if (x.touches !== void 0)
2434
- return x.touches.length;
2435
- if (x.which !== void 0 && x.which !== 0)
2436
- return x.which;
2437
- if (x.buttons !== void 0)
2438
- return x.buttons;
2439
- var T = x.button;
2440
- if (T !== void 0)
2441
- return T & 1 ? 1 : T & 2 ? 3 : T & 4 ? 2 : 0;
2432
+ function g(E) {
2433
+ if (E.touches !== void 0)
2434
+ return E.touches.length;
2435
+ if (E.which !== void 0 && E.which !== 0)
2436
+ return E.which;
2437
+ if (E.buttons !== void 0)
2438
+ return E.buttons;
2439
+ var F = E.button;
2440
+ if (F !== void 0)
2441
+ return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
2442
2442
  }
2443
- function p(x, T, S) {
2444
- x = x || {};
2445
- var E = x.className || "", D;
2446
- return x.className += " gu-hide", D = c.elementFromPoint(T, S), x.className = E, D;
2443
+ function p(E, F, S) {
2444
+ E = E || {};
2445
+ var T = E.className || "", P;
2446
+ return E.className += " gu-hide", P = c.elementFromPoint(F, S), E.className = T, P;
2447
2447
  }
2448
2448
  function w() {
2449
2449
  return !1;
@@ -2451,42 +2451,42 @@ var zl = { exports: {} };
2451
2451
  function k() {
2452
2452
  return !0;
2453
2453
  }
2454
- function B(x) {
2455
- return x.width || x.right - x.left;
2454
+ function B(E) {
2455
+ return E.width || E.right - E.left;
2456
2456
  }
2457
- function O(x) {
2458
- return x.height || x.bottom - x.top;
2457
+ function O(E) {
2458
+ return E.height || E.bottom - E.top;
2459
2459
  }
2460
- function b(x) {
2461
- return x.parentNode === c ? null : x.parentNode;
2460
+ function b(E) {
2461
+ return E.parentNode === c ? null : E.parentNode;
2462
2462
  }
2463
- function y(x) {
2464
- return x.tagName === "INPUT" || x.tagName === "TEXTAREA" || x.tagName === "SELECT" || F(x);
2463
+ function y(E) {
2464
+ return E.tagName === "INPUT" || E.tagName === "TEXTAREA" || E.tagName === "SELECT" || x(E);
2465
2465
  }
2466
- function F(x) {
2467
- return !x || x.contentEditable === "false" ? !1 : x.contentEditable === "true" ? !0 : F(b(x));
2466
+ function x(E) {
2467
+ return !E || E.contentEditable === "false" ? !1 : E.contentEditable === "true" ? !0 : x(b(E));
2468
2468
  }
2469
- function M(x) {
2470
- return x.nextElementSibling || T();
2471
- function T() {
2472
- var S = x;
2469
+ function M(E) {
2470
+ return E.nextElementSibling || F();
2471
+ function F() {
2472
+ var S = E;
2473
2473
  do
2474
2474
  S = S.nextSibling;
2475
2475
  while (S && S.nodeType !== 1);
2476
2476
  return S;
2477
2477
  }
2478
2478
  }
2479
- function I(x) {
2480
- return x.targetTouches && x.targetTouches.length ? x.targetTouches[0] : x.changedTouches && x.changedTouches.length ? x.changedTouches[0] : x;
2479
+ function I(E) {
2480
+ return E.targetTouches && E.targetTouches.length ? E.targetTouches[0] : E.changedTouches && E.changedTouches.length ? E.changedTouches[0] : E;
2481
2481
  }
2482
- function R(x, T) {
2483
- var S = I(T), E = {
2482
+ function R(E, F) {
2483
+ var S = I(F), T = {
2484
2484
  pageX: "clientX",
2485
2485
  // IE8
2486
2486
  pageY: "clientY"
2487
2487
  // IE8
2488
2488
  };
2489
- return x in E && !(x in S) && E[x] in S && (x = E[x]), S[x];
2489
+ return E in T && !(E in S) && T[E] in S && (E = T[E]), S[E];
2490
2490
  }
2491
2491
  a.exports = f;
2492
2492
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2549,61 +2549,61 @@ var zl = { exports: {} };
2549
2549
  remove: h,
2550
2550
  fabricate: p
2551
2551
  };
2552
- function r(b, y, F, M) {
2553
- return b.addEventListener(y, F, M);
2552
+ function r(b, y, x, M) {
2553
+ return b.addEventListener(y, x, M);
2554
2554
  }
2555
- function m(b, y, F) {
2556
- return b.attachEvent("on" + y, k(b, y, F));
2555
+ function m(b, y, x) {
2556
+ return b.attachEvent("on" + y, k(b, y, x));
2557
2557
  }
2558
- function d(b, y, F, M) {
2559
- return b.removeEventListener(y, F, M);
2558
+ function d(b, y, x, M) {
2559
+ return b.removeEventListener(y, x, M);
2560
2560
  }
2561
- function g(b, y, F) {
2562
- var M = B(b, y, F);
2561
+ function g(b, y, x) {
2562
+ var M = B(b, y, x);
2563
2563
  if (M)
2564
2564
  return b.detachEvent("on" + y, M);
2565
2565
  }
2566
- function p(b, y, F) {
2566
+ function p(b, y, x) {
2567
2567
  var M = u.indexOf(y) === -1 ? R() : I();
2568
2568
  b.dispatchEvent ? b.dispatchEvent(M) : b.fireEvent("on" + y, M);
2569
2569
  function I() {
2570
- var x;
2571
- return s.createEvent ? (x = s.createEvent("Event"), x.initEvent(y, !0, !0)) : s.createEventObject && (x = s.createEventObject()), x;
2570
+ var E;
2571
+ return s.createEvent ? (E = s.createEvent("Event"), E.initEvent(y, !0, !0)) : s.createEventObject && (E = s.createEventObject()), E;
2572
2572
  }
2573
2573
  function R() {
2574
- return new i(y, { detail: F });
2574
+ return new i(y, { detail: x });
2575
2575
  }
2576
2576
  }
2577
- function w(b, y, F) {
2577
+ function w(b, y, x) {
2578
2578
  return function(I) {
2579
2579
  var R = I || l.event;
2580
2580
  R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
2581
2581
  R.returnValue = !1;
2582
2582
  }, R.stopPropagation = R.stopPropagation || function() {
2583
2583
  R.cancelBubble = !0;
2584
- }, R.which = R.which || R.keyCode, F.call(b, R);
2584
+ }, R.which = R.which || R.keyCode, x.call(b, R);
2585
2585
  };
2586
2586
  }
2587
- function k(b, y, F) {
2588
- var M = B(b, y, F) || w(b, y, F);
2587
+ function k(b, y, x) {
2588
+ var M = B(b, y, x) || w(b, y, x);
2589
2589
  return f.push({
2590
2590
  wrapper: M,
2591
2591
  element: b,
2592
2592
  type: y,
2593
- fn: F
2593
+ fn: x
2594
2594
  }), M;
2595
2595
  }
2596
- function B(b, y, F) {
2597
- var M = O(b, y, F);
2596
+ function B(b, y, x) {
2597
+ var M = O(b, y, x);
2598
2598
  if (M) {
2599
2599
  var I = f[M].wrapper;
2600
2600
  return f.splice(M, 1), I;
2601
2601
  }
2602
2602
  }
2603
- function O(b, y, F) {
2603
+ function O(b, y, x) {
2604
2604
  var M, I;
2605
2605
  for (M = 0; M < f.length; M++)
2606
- if (I = f[M], I.element === b && I.type === y && I.fn === F)
2606
+ if (I = f[M], I.element === b && I.type === y && I.fn === x)
2607
2607
  return M;
2608
2608
  }
2609
2609
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2809,7 +2809,7 @@ const Hl = {
2809
2809
  const {
2810
2810
  locale: n,
2811
2811
  t: a
2812
- } = xt(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
2812
+ } = St(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
2813
2813
  const O = {
2814
2814
  animated: u.value,
2815
2815
  toast: !0,
@@ -2817,10 +2817,10 @@ const Hl = {
2817
2817
  };
2818
2818
  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;
2819
2819
  }), f = N(() => {
2820
- const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, F = {
2820
+ const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
2821
2821
  "f-icon": !0
2822
2822
  };
2823
- return F[y] = !0, F;
2823
+ return x[y] = !0, x;
2824
2824
  }), 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" ? {
2825
2825
  wordBreak: "keep-all",
2826
2826
  overflowWrap: "break-word"
@@ -3217,31 +3217,31 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
3217
3217
  } = i, {
3218
3218
  gridDataStyle: b,
3219
3219
  leftFixedGridDataStyle: y,
3220
- rightFixedGridDataStyle: F
3220
+ rightFixedGridDataStyle: x
3221
3221
  } = m, {
3222
3222
  renderDataRow: M
3223
3223
  } = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [M];
3224
- function R(D, z) {
3225
- const Y = w(D);
3226
- return p.value.filter(($) => $.visible !== !1).map(($, j) => I[$.type]($, Y, z, j));
3224
+ function R(P, V) {
3225
+ const _ = w(P);
3226
+ return p.value.filter((L) => L.visible !== !1).map((L, j) => I[L.type](L, _, V, j));
3227
3227
  }
3228
- function x() {
3228
+ function E() {
3229
3229
  return v("div", {
3230
3230
  ref: a,
3231
3231
  class: "fv-grid-content-left-fixed"
3232
3232
  }, [v("div", {
3233
3233
  class: "fv-grid-data",
3234
3234
  style: y.value
3235
- }, [R(k.value.leftColumns.filter((D) => D.visible), "left")])]);
3235
+ }, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
3236
3236
  }
3237
- function T() {
3237
+ function F() {
3238
3238
  return v("div", {
3239
3239
  ref: n,
3240
3240
  class: "fv-grid-content-primary"
3241
3241
  }, [v("div", {
3242
3242
  class: "fv-grid-data",
3243
3243
  style: b.value
3244
- }, [R(k.value.primaryColumns.filter((D) => D.visible), "primary")])]);
3244
+ }, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
3245
3245
  }
3246
3246
  function S() {
3247
3247
  return v("div", {
@@ -3249,15 +3249,15 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
3249
3249
  class: "fv-grid-content-right-fixed"
3250
3250
  }, [v("div", {
3251
3251
  class: "fv-grid-data",
3252
- style: F.value
3253
- }, [R(k.value.rightColumns.filter((D) => D.visible), "right")])]);
3252
+ style: x.value
3253
+ }, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
3254
3254
  }
3255
- function E() {
3256
- const D = [];
3257
- return B.value && D.push(x()), D.push(T()), O.value && D.push(S()), D;
3255
+ function T() {
3256
+ const P = [];
3257
+ return B.value && P.push(E()), P.push(F()), O.value && P.push(S()), P;
3258
3258
  }
3259
3259
  return {
3260
- renderDataArea: E
3260
+ renderDataArea: T
3261
3261
  };
3262
3262
  }
3263
3263
  const _l = /* @__PURE__ */ oe({
@@ -3274,18 +3274,18 @@ const _l = /* @__PURE__ */ oe({
3274
3274
  showLoading: O,
3275
3275
  renderLoading: b
3276
3276
  } = Za(e, s), y = Ka(e, /* @__PURE__ */ new Map(), w, k, i), {
3277
- dataView: F
3277
+ dataView: x
3278
3278
  } = y, M = eo(e, y, i, m, t), {
3279
3279
  showSelection: I,
3280
3280
  selectedValues: R
3281
- } = M, x = to(e, m, y, i, M, t), T = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), E = no(e, y), {
3282
- shouldRenderPagination: D
3283
- } = E, {
3284
- containerStyleObject: z
3285
- } = ao(e), Y = oo(e), {
3286
- applyCommands: $
3287
- } = Y;
3288
- $(l);
3281
+ } = M, E = to(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 = no(e, y), {
3282
+ shouldRenderPagination: P
3283
+ } = T, {
3284
+ containerStyleObject: V
3285
+ } = ao(e), _ = oo(e), {
3286
+ applyCommands: L
3287
+ } = _;
3288
+ L(l);
3289
3289
  const {
3290
3290
  applyColumnSetting: j,
3291
3291
  removeColumnSetting: G
@@ -3310,7 +3310,7 @@ const _l = /* @__PURE__ */ oe({
3310
3310
  updateVisibleRowsOnLatestVisibleScope: mt
3311
3311
  } = se, Qe = bo(e, ve, c, Oe, le), {
3312
3312
  calculateColumnsSize: Pe
3313
- } = Qe, We = Co(), st = wo(c, r, y, We, se), ut = ko(e, t, W, y, le, p, se), L = N(() => {
3313
+ } = Qe, We = Co(), st = wo(c, r, y, We, se), ut = ko(e, t, W, y, le, p, se), $ = N(() => {
3314
3314
  const q = {
3315
3315
  "fv-grid": !0,
3316
3316
  "fv-grid-bordered": e.showBorder,
@@ -3324,13 +3324,13 @@ const _l = /* @__PURE__ */ oe({
3324
3324
  "fv-grid-wrap-content": g.value
3325
3325
  })), {
3326
3326
  renderDataArea: ue
3327
- } = Ul(e, t, h, f, r, it, W, y, ne, k, de, M, x, se, $e, U, m), {
3327
+ } = Ul(e, t, h, f, r, it, W, y, ne, k, de, M, E, se, $e, U, m), {
3328
3328
  renderGridHeader: fe,
3329
3329
  renderGridColumnResizeOverlay: Ne,
3330
3330
  shouldShowHeader: Vt
3331
- } = xo(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, M, Je, ee, se, Oe, m), {
3331
+ } = So(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, M, Je, ee, se, Oe, m), {
3332
3332
  renderDataGridSidebar: $t
3333
- } = So(e, de, M, Je, se), {
3333
+ } = xo(e, de, M, Je, se), {
3334
3334
  renderDisableMask: At
3335
3335
  } = Fo(), {
3336
3336
  renderHorizontalScrollbar: zt
@@ -3375,7 +3375,7 @@ const _l = /* @__PURE__ */ oe({
3375
3375
  y.insertNewChildDataItems(q, ge);
3376
3376
  }
3377
3377
  function Yt() {
3378
- const q = yt(), J = x.getNextSelectableHierarchyItemId(q);
3378
+ const q = yt(), J = E.getNextSelectableHierarchyItemId(q);
3379
3379
  y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && M.selectItemById(J);
3380
3380
  }
3381
3381
  function Tt(q) {
@@ -3384,19 +3384,19 @@ const _l = /* @__PURE__ */ oe({
3384
3384
  function Xt(q) {
3385
3385
  ne.acceptEditingRow(q);
3386
3386
  }
3387
- function P(q) {
3387
+ function D(q) {
3388
3388
  ne.cancelEditingRow(q);
3389
3389
  }
3390
- function A(q) {
3391
- q && (l.value = q, $(l), X(l.value), ce(y, ee), Pe());
3390
+ function z(q) {
3391
+ q && (l.value = q, L(l), X(l.value), ce(y, ee), Pe());
3392
3392
  }
3393
3393
  Z(() => e.columns, (q) => {
3394
- A(q);
3394
+ z(q);
3395
3395
  });
3396
3396
  function H(q, J) {
3397
3397
  q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
3398
3398
  }
3399
- function _(q) {
3399
+ function Y(q) {
3400
3400
  M.selectItemById(q);
3401
3401
  }
3402
3402
  function K(q) {
@@ -3412,7 +3412,7 @@ const _l = /* @__PURE__ */ oe({
3412
3412
  function Ce() {
3413
3413
  return M.getSelectedItems();
3414
3414
  }
3415
- function xe() {
3415
+ function Se() {
3416
3416
  M.clearSelection();
3417
3417
  }
3418
3418
  const Me = N(() => !m.value || !m.value.length), {
@@ -3421,14 +3421,14 @@ const _l = /* @__PURE__ */ oe({
3421
3421
  function Ee() {
3422
3422
  return M.getSelectionRow();
3423
3423
  }
3424
- function Se(q) {
3424
+ function xe(q) {
3425
3425
  M.unSelectItemByIds(q);
3426
3426
  }
3427
3427
  function he() {
3428
3428
  return M.currentSelectedDataId.value;
3429
3429
  }
3430
3430
  function vt(q, J, me) {
3431
- const ge = F.value.find((Fe) => Fe[u.value] === q);
3431
+ const ge = x.value.find((Fe) => Fe[u.value] === q);
3432
3432
  if (ge) {
3433
3433
  if (Object.keys(ge).forEach((ye) => {
3434
3434
  Object.prototype.hasOwnProperty.call(J, ye) && (ge[ye] = J[ye]);
@@ -3469,7 +3469,7 @@ const _l = /* @__PURE__ */ oe({
3469
3469
  return B.value;
3470
3470
  }
3471
3471
  Z(() => e.showSetting, (q, J) => {
3472
- q !== J && (q ? j(l) : G(l), A(l.value));
3472
+ q !== J && (q ? j(l) : G(l), z(l.value));
3473
3473
  });
3474
3474
  function wa(q) {
3475
3475
  return m.value.filter((J) => q.includes(J.raw[e.idField]));
@@ -3478,8 +3478,8 @@ const _l = /* @__PURE__ */ oe({
3478
3478
  const J = i.idField.value, me = m.value.find((ge) => ge.raw[J] === q);
3479
3479
  me && de.changeRow(me);
3480
3480
  }
3481
- function xa() {
3482
- M.keepSelectingOnPaging.value || xe(), y.updateVisibleDataSummary(m.value);
3481
+ function Sa() {
3482
+ M.keepSelectingOnPaging.value || Se(), y.updateVisibleDataSummary(m.value);
3483
3483
  }
3484
3484
  t.expose({
3485
3485
  activeRowById: te,
@@ -3491,16 +3491,16 @@ const _l = /* @__PURE__ */ oe({
3491
3491
  removeDataItem: Yt,
3492
3492
  editDataItem: Tt,
3493
3493
  acceptDataItem: Xt,
3494
- cancelDataItem: P,
3495
- updateColumns: A,
3494
+ cancelDataItem: D,
3495
+ updateColumns: z,
3496
3496
  updateDataSource: H,
3497
- selectItemById: _,
3497
+ selectItemById: Y,
3498
3498
  selectItemByIds: Te,
3499
3499
  getSelectedItems: Ce,
3500
- clearSelection: xe,
3500
+ clearSelection: Se,
3501
3501
  getSelectionRow: Ee,
3502
3502
  clickRowItemById: K,
3503
- unSelectItemByIds: Se,
3503
+ unSelectItemByIds: xe,
3504
3504
  getCurrentRowId: he,
3505
3505
  reassignRowData: vt,
3506
3506
  hasChildren: ht,
@@ -3508,20 +3508,20 @@ const _l = /* @__PURE__ */ oe({
3508
3508
  getCollapseStatusById: gt,
3509
3509
  getVisibleDataByIds: wa,
3510
3510
  selectRowById: ka,
3511
- updateDerivedData: xa
3511
+ updateDerivedData: Sa
3512
3512
  });
3513
- const Sa = N(() => {
3513
+ const xa = N(() => {
3514
3514
  const q = {};
3515
3515
  return se.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
3516
3516
  }), Fa = N(() => ({
3517
- ...z.value,
3517
+ ...V.value,
3518
3518
  borderRadius: "5px"
3519
- })), {
3520
- renderDataGridPagination: Au
3521
- } = Mo(e, t, y, se, E, M), Ta = N(() => ({
3519
+ }));
3520
+ Mo(e, t, y, se, T, M);
3521
+ const Ta = N(() => ({
3522
3522
  "d-flex": !0,
3523
- "justify-content-between": D.value && I.value,
3524
- "justify-content-end": D.value && !I.value,
3523
+ "justify-content-between": P.value && I.value,
3524
+ "justify-content-end": P.value && !I.value,
3525
3525
  "position-relative": !0
3526
3526
  })), Ba = N(() => ({
3527
3527
  "d-flex": !0,
@@ -3531,7 +3531,7 @@ const _l = /* @__PURE__ */ oe({
3531
3531
  } = Eo(e, y, W);
3532
3532
  return () => v("div", {
3533
3533
  ref: s,
3534
- class: L.value,
3534
+ class: $.value,
3535
3535
  style: Fa.value,
3536
3536
  onWheel: pt
3537
3537
  }, [c.value && Vt.value && fe(), v("div", {
@@ -3539,12 +3539,12 @@ const _l = /* @__PURE__ */ oe({
3539
3539
  class: Q.value,
3540
3540
  onMouseover: () => d.value = !0,
3541
3541
  onMouseleave: () => d.value = !1,
3542
- style: Sa.value
3542
+ style: xa.value
3543
3543
  }, [c.value && $t(m), c.value && ue(), c.value && Me.value && pe(), c.value && zt(), c.value && Ht()]), c.value && Oa(), I.value && v("div", {
3544
3544
  class: Ta.value
3545
3545
  }, [I.value && v("div", {
3546
3546
  class: Ba.value
3547
- }, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ne(), T.value && At()]);
3547
+ }, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ne(), F.value && At()]);
3548
3548
  }
3549
3549
  });
3550
3550
  Nt(_l);
@@ -3687,7 +3687,7 @@ const Jl = "https://json-schema.org/draft/2020-12/schema", Ql = "https://farris-
3687
3687
  };
3688
3688
  Ve(ui, ai, Yl, Xl, si);
3689
3689
  function Zn(e, t, n) {
3690
- var x;
3690
+ var E;
3691
3691
  const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
3692
3692
  let i;
3693
3693
  function u() {
@@ -3702,85 +3702,85 @@ function Zn(e, t, n) {
3702
3702
  function h() {
3703
3703
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
3704
3704
  }
3705
- function f(T) {
3706
- if (!T || !T.value)
3705
+ function f(F) {
3706
+ if (!F || !F.value)
3707
3707
  return null;
3708
- if (T.value.schema && T.value.schema.type === "component")
3709
- return T.value;
3710
- const S = C(T == null ? void 0 : T.value.parent), E = f(S);
3711
- return E || null;
3708
+ if (F.value.schema && F.value.schema.type === "component")
3709
+ return F.value;
3710
+ const S = C(F == null ? void 0 : F.value.parent), T = f(S);
3711
+ return T || null;
3712
3712
  }
3713
- function r(T = t) {
3714
- var z;
3713
+ function r(F = t) {
3714
+ var V;
3715
3715
  if (n != null && n.getDraggableDesignItemElement)
3716
- return n.getDraggableDesignItemElement(T);
3717
- const { componentInstance: S, designerItemElementRef: E } = T;
3716
+ return n.getDraggableDesignItemElement(F);
3717
+ const { componentInstance: S, designerItemElementRef: T } = F;
3718
3718
  if (!S || !S.value)
3719
3719
  return null;
3720
- const { getCustomButtons: D } = S.value;
3721
- return S.value.canMove || D && ((z = D()) != null && z.length) ? E : r(T.parent);
3720
+ const { getCustomButtons: P } = S.value;
3721
+ return S.value.canMove || P && ((V = P()) != null && V.length) ? T : r(F.parent);
3722
3722
  }
3723
- function m(T) {
3724
- return !!n && n.canAccepts(T);
3723
+ function m(F) {
3724
+ return !!n && n.canAccepts(F);
3725
3725
  }
3726
3726
  function d() {
3727
3727
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
3728
3728
  }
3729
3729
  function g() {
3730
3730
  }
3731
- function p(T, S) {
3732
- var E;
3733
- !T || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(T, S), (E = t == null ? void 0 : t.setupContext) == null || E.emit("dragEnd"));
3731
+ function p(F, S) {
3732
+ var T;
3733
+ !F || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, S), (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd"));
3734
3734
  }
3735
- function w(T, S) {
3736
- const { componentType: E } = T;
3737
- let D = La(E, T, S);
3738
- n && n.onResolveNewComponentSchema && (D = n.onResolveNewComponentSchema(T, D));
3739
- const z = E.toLowerCase().replace(/-/g, "_");
3740
- return D && !D.id && D.type === E && (D.id = `${z}_${Math.random().toString().slice(2, 6)}`), D;
3735
+ function w(F, S) {
3736
+ const { componentType: T } = F;
3737
+ let P = La(T, F, S);
3738
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(F, P));
3739
+ const V = T.toLowerCase().replace(/-/g, "_");
3740
+ return P && !P.id && P.type === T && (P.id = `${V}_${Math.random().toString().slice(2, 6)}`), P;
3741
3741
  }
3742
- function k(T) {
3743
- T && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(T);
3742
+ function k(F) {
3743
+ F && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(F);
3744
3744
  }
3745
- function B(...T) {
3745
+ function B(...F) {
3746
3746
  if (n && n.getPropsConfig)
3747
- return n.getPropsConfig(...T);
3747
+ return n.getPropsConfig(...F);
3748
3748
  }
3749
- function O(T) {
3750
- if (!T)
3749
+ function O(F) {
3750
+ if (!F)
3751
3751
  return;
3752
- const S = t == null ? void 0 : t.schema, { formSchemaUtils: E } = T;
3753
- if (S && E.getExpressions().length) {
3754
- const D = E.getExpressions().findIndex((z) => z.target === S.id);
3755
- D > -1 && E.getExpressions().splice(D, 1);
3752
+ const S = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
3753
+ if (S && T.getExpressions().length) {
3754
+ const P = T.getExpressions().findIndex((V) => V.target === S.id);
3755
+ P > -1 && T.getExpressions().splice(P, 1);
3756
3756
  }
3757
3757
  }
3758
- function b(T) {
3759
- if (!T || !(t != null && t.schema))
3758
+ function b(F) {
3759
+ if (!F || !(t != null && t.schema))
3760
3760
  return;
3761
- const S = t.schema, { formSchemaUtils: E } = T;
3762
- E.removeCommunicationInComponent(S);
3763
- }
3764
- function y(T) {
3765
- n && n.onRemoveComponent && n.onRemoveComponent(), O(T), b(T), t != null && t.schema.contents && t.schema.contents.map((S) => {
3766
- let E = S.id;
3767
- S.type === "component-ref" && (E = S.component);
3768
- const D = e.value.querySelectorAll(`#${E}-design-item`);
3769
- D != null && D.length && Array.from(D).map((z) => {
3770
- var Y;
3771
- (Y = z == null ? void 0 : z.componentInstance) != null && Y.value.onRemoveComponent && z.componentInstance.value.onRemoveComponent(T);
3761
+ const S = t.schema, { formSchemaUtils: T } = F;
3762
+ T.removeCommunicationInComponent(S);
3763
+ }
3764
+ function y(F) {
3765
+ n && n.onRemoveComponent && n.onRemoveComponent(), O(F), b(F), t != null && t.schema.contents && t.schema.contents.map((S) => {
3766
+ let T = S.id;
3767
+ S.type === "component-ref" && (T = S.component);
3768
+ const P = e.value.querySelectorAll(`#${T}-design-item`);
3769
+ P != null && P.length && Array.from(P).map((V) => {
3770
+ var _;
3771
+ (_ = V == null ? void 0 : V.componentInstance) != null && _.value.onRemoveComponent && V.componentInstance.value.onRemoveComponent(F);
3772
3772
  });
3773
3773
  });
3774
3774
  }
3775
- function F() {
3775
+ function x() {
3776
3776
  if (n && n.getCustomButtons)
3777
3777
  return n.getCustomButtons();
3778
3778
  }
3779
- function M(T) {
3780
- var E, D;
3781
- if (!((E = t == null ? void 0 : t.schema) != null && E.id))
3779
+ function M(F) {
3780
+ var T, P;
3781
+ if (!((T = t == null ? void 0 : t.schema) != null && T.id))
3782
3782
  return;
3783
- if (!i && T && (i = T.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
3783
+ if (!i && F && (i = F.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
3784
3784
  n.setComponentBasicInfoMap();
3785
3785
  return;
3786
3786
  }
@@ -3788,31 +3788,31 @@ function Zn(e, t, n) {
3788
3788
  if (n != null && n.getComponentTitle)
3789
3789
  S = n.getComponentTitle();
3790
3790
  else {
3791
- const { text: z, title: Y, label: $, mainTitle: j, name: G, type: W } = t.schema;
3792
- S = z || Y || $ || j || G || ((D = V[W]) == null ? void 0 : D.name);
3791
+ const { text: V, title: _, label: L, mainTitle: j, name: G, type: W } = t.schema;
3792
+ S = V || _ || L || j || G || ((P = A[W]) == null ? void 0 : P.name);
3793
3793
  }
3794
3794
  S && i.getControlBasicInfoMap().set(t.schema.id, {
3795
3795
  componentTitle: S,
3796
3796
  parentPathName: S
3797
3797
  });
3798
3798
  }
3799
- function I(T) {
3800
- var z;
3801
- const { changeObject: S } = T, { propertyID: E, propertyValue: D } = S;
3802
- if (["text", "title", "label", "name", "mainTitle"].includes((z = T == null ? void 0 : T.changeObject) == null ? void 0 : z.propertyID) && E && D && (M(), i)) {
3803
- const Y = i.getControlBasicInfoMap(), $ = Y.keys().toArray().filter((j) => {
3799
+ function I(F) {
3800
+ var V;
3801
+ const { changeObject: S } = F, { propertyID: T, propertyValue: P } = S;
3802
+ if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (M(), i)) {
3803
+ const _ = i.getControlBasicInfoMap(), L = _.keys().toArray().filter((j) => {
3804
3804
  var G, W;
3805
- return ((G = Y.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
3805
+ return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
3806
3806
  });
3807
- $ != null && $.length && $.forEach((j) => {
3808
- const G = Y.get(j).parentPathName.split(" > ");
3809
- G[0] = D, Y.get(j).parentPathName = G.join(" > ");
3807
+ L != null && L.length && L.forEach((j) => {
3808
+ const G = _.get(j).parentPathName.split(" > ");
3809
+ G[0] = P, _.get(j).parentPathName = G.join(" > ");
3810
3810
  });
3811
3811
  }
3812
3812
  }
3813
- function R(T) {
3814
- if (I(T), n && n.onPropertyChanged)
3815
- return n.onPropertyChanged(T);
3813
+ function R(F) {
3814
+ if (I(F), n && n.onPropertyChanged)
3815
+ return n.onPropertyChanged(F);
3816
3816
  }
3817
3817
  return l.value = {
3818
3818
  canMove: u(),
@@ -3821,7 +3821,7 @@ function Zn(e, t, n) {
3821
3821
  canNested: !h(),
3822
3822
  contents: t == null ? void 0 : t.schema.contents,
3823
3823
  elementRef: e,
3824
- parent: (x = t == null ? void 0 : t.parent) == null ? void 0 : x.componentInstance,
3824
+ parent: (E = t == null ? void 0 : t.parent) == null ? void 0 : E.componentInstance,
3825
3825
  schema: t == null ? void 0 : t.schema,
3826
3826
  styles: a,
3827
3827
  designerClass: o,
@@ -3837,7 +3837,7 @@ function Zn(e, t, n) {
3837
3837
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
3838
3838
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
3839
3839
  onRemoveComponent: y,
3840
- getCustomButtons: F,
3840
+ getCustomButtons: x,
3841
3841
  onPropertyChanged: R,
3842
3842
  setComponentBasicInfoMap: M,
3843
3843
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
@@ -4053,7 +4053,7 @@ const mi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
4053
4053
  adaptForLanguage: { type: Boolean, default: !0 }
4054
4054
  };
4055
4055
  Ve(ki, wi, ln, fi);
4056
- function xi() {
4056
+ function Si() {
4057
4057
  function e(t, n) {
4058
4058
  var i;
4059
4059
  if (!t)
@@ -4062,13 +4062,13 @@ function xi() {
4062
4062
  if (!a)
4063
4063
  return !1;
4064
4064
  const o = a.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
4065
- return !((t.componentCategory === "input" || t.componentType === "form-group") && ![V["response-layout-item"].type, V["response-form"].type, V.fieldset.type].includes(o) || (t.componentType === V.tabs.type || t.componentType === V.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![V["content-container"].type, V["splitter-pane"].type, V["response-layout-item"].type].includes(o)) || [V["query-solution"].type, V["filter-bar"].type].includes(t.componentType) || t.componentType === V.fieldset.type && o !== V["response-form"].type);
4065
+ 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);
4066
4066
  }
4067
4067
  return {
4068
4068
  basalDragulaRuleForContainer: e
4069
4069
  };
4070
4070
  }
4071
- const Si = {
4071
+ const xi = {
4072
4072
  id: { type: String, default: "" },
4073
4073
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
4074
4074
  editor: { type: Object, default: {} },
@@ -4084,7 +4084,7 @@ const Si = {
4084
4084
  selectOnCreated: { type: Boolean, default: !1 }
4085
4085
  };
4086
4086
  Ve(
4087
- Si,
4087
+ xi,
4088
4088
  Qn,
4089
4089
  ln,
4090
4090
  void 0
@@ -4382,7 +4382,7 @@ function _i(e, t, n, a, o) {
4382
4382
  }, null), k.text]))]);
4383
4383
  }
4384
4384
  function Yi(e) {
4385
- const { t, locale: n } = xt();
4385
+ const { t, locale: n } = St();
4386
4386
  function a(o, l, i) {
4387
4387
  return l === i ? t(o) : l;
4388
4388
  }
@@ -4660,44 +4660,44 @@ function Qi(e, t, n, a, o) {
4660
4660
  "f-state-focus": d.value,
4661
4661
  "input-group--has-clear": e.enableClear && c.value
4662
4662
  }));
4663
- function w(x, T = !0) {
4664
- n.value = x, T && (t.emit("change", x), t.emit("update:modelValue", x));
4663
+ function w(E, F = !0) {
4664
+ n.value = E, F && (t.emit("change", E), t.emit("update:modelValue", E));
4665
4665
  }
4666
- function k(x) {
4667
- u.value = !1, w(x, !0);
4666
+ function k(E) {
4667
+ u.value = !1, w(E, !0);
4668
4668
  }
4669
4669
  Z(
4670
4670
  () => e.modelValue,
4671
- (x) => {
4672
- n.value = x;
4671
+ (E) => {
4672
+ n.value = E;
4673
4673
  }
4674
4674
  );
4675
- function B(x) {
4676
- m.value = !1, t.emit("blur", x), x.stopPropagation();
4675
+ function B(E) {
4676
+ m.value = !1, t.emit("blur", E), E.stopPropagation();
4677
4677
  }
4678
- function O(x) {
4679
- t.emit("click", x), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
4678
+ function O(E) {
4679
+ t.emit("click", E), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
4680
4680
  }
4681
- function b(x) {
4682
- !e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", x), i.value && !u.value && o.popup()));
4681
+ function b(E) {
4682
+ !e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", E), i.value && !u.value && o.popup()));
4683
4683
  }
4684
- function y(x) {
4685
- t.emit("input", x);
4686
- const T = x.target.value;
4687
- a.value = T, n.value !== T && w(T, e.updateOn === "change"), l.value && !u.value && o.popup();
4684
+ function y(E) {
4685
+ t.emit("input", E);
4686
+ const F = E.target.value;
4687
+ a.value = F, n.value !== F && w(F, e.updateOn === "change"), l.value && !u.value && o.popup();
4688
4688
  }
4689
- function F(x) {
4690
- x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
4689
+ function x(E) {
4690
+ E.target.tagName !== "INPUT" && E.preventDefault(), E.stopPropagation();
4691
4691
  }
4692
- function M(x) {
4693
- t.emit("keydown", x);
4692
+ function M(E) {
4693
+ t.emit("keydown", E);
4694
4694
  }
4695
- function I(x) {
4696
- x.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", x);
4695
+ function I(E) {
4696
+ E.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", E);
4697
4697
  }
4698
- function R(x) {
4699
- const T = x.target.value;
4700
- x.stopPropagation(), w(T);
4698
+ function R(E) {
4699
+ const F = E.target.value;
4700
+ E.stopPropagation(), w(F);
4701
4701
  }
4702
4702
  return {
4703
4703
  hasFocusedTextBox: d,
@@ -4715,7 +4715,7 @@ function Qi(e, t, n, a, o) {
4715
4715
  onInput: y,
4716
4716
  onKeyDownTextBox: M,
4717
4717
  onKeyUpTextBox: I,
4718
- onMouseDownTextBox: F,
4718
+ onMouseDownTextBox: x,
4719
4719
  onTextBoxValueChange: R
4720
4720
  };
4721
4721
  }
@@ -4783,18 +4783,18 @@ function Ki(e, t, n) {
4783
4783
  "border-bottom-right-radius": "6px"
4784
4784
  }));
4785
4785
  be(() => {
4786
- var F, M;
4787
- e.selectOnCreated && ((F = a.value) == null || F.select()), e.focusOnCreated && ((M = a.value) == null || M.focus({
4786
+ var x, M;
4787
+ e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((M = a.value) == null || M.focus({
4788
4788
  preventScroll: !0
4789
4789
  })), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
4790
4790
  });
4791
- const B = C(!1), O = (F) => {
4792
- F.preventDefault(), B.value = !0;
4793
- }, b = (F) => {
4794
- F.preventDefault(), B.value = !1, f(F);
4791
+ const B = C(!1), O = (x) => {
4792
+ x.preventDefault(), B.value = !0;
4793
+ }, b = (x) => {
4794
+ x.preventDefault(), B.value = !1, f(x);
4795
4795
  };
4796
- function y(F) {
4797
- B.value || f(F);
4796
+ function y(x) {
4797
+ B.value || f(x);
4798
4798
  }
4799
4799
  return () => v("input", {
4800
4800
  id: e.id ? e.id + "-textbox" : void 0,
@@ -4950,46 +4950,46 @@ const Rt = /* @__PURE__ */ oe({
4950
4950
  } = r, p = Ji(e, t, o, m, f, r), {
4951
4951
  onMouseEnterTextBox: w,
4952
4952
  onMouseLeaveTextBox: k
4953
- } = p, B = N(() => {
4954
- const D = {
4953
+ } = p, B = C(!1), O = N(() => {
4954
+ const V = {
4955
4955
  "f-button-edit": !0,
4956
4956
  "f-cmp-inputgroup": !0,
4957
4957
  "f-button-edit-nowrap": !e.wrapText
4958
4958
  };
4959
- return a.value && a.value.split(" ").reduce((z, Y) => (z[Y] = !0, z), D), D;
4960
- }), O = N(() => ({
4959
+ return a.value && a.value.split(" ").reduce((_, L) => (_[L] = !0, _), V), V;
4960
+ }), b = N(() => ({
4961
4961
  overflow: e.wrapText ? "hidden" : ""
4962
- })), b = N(() => ({
4962
+ })), y = N(() => ({
4963
4963
  paddingLeft: "3px",
4964
4964
  backgroundColor: "#fff"
4965
4965
  }));
4966
- function y() {
4966
+ function x() {
4967
4967
  if (!e.multiSelect || e.inputType !== "tag" || !n.value)
4968
4968
  return 0;
4969
- let D = 0;
4970
- const z = Array.from(n.value.querySelectorAll(".farris-tag-item"));
4971
- return z && z.length && (D = z.map((Y) => Y.offsetTop).filter((Y) => Y > 20).length), D;
4969
+ let V = 0;
4970
+ const _ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
4971
+ return _ && _.length && (V = _.map((L) => L.offsetTop).filter((L) => L > 20).length), V;
4972
4972
  }
4973
- const F = C(y());
4973
+ const M = C(x());
4974
4974
  an(() => {
4975
- F.value = y();
4975
+ M.value = x();
4976
4976
  });
4977
- function M() {
4978
- return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!F.value && v("div", {
4977
+ function I() {
4978
+ return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!M.value && v("div", {
4979
4979
  class: "d-flex flex-row mr-2 more-tags",
4980
4980
  "more-tags": !0
4981
4981
  }, [v("span", {
4982
4982
  class: "multi--more-text"
4983
- }, [ie("+"), F.value])])]) : Ki(e, o, r);
4983
+ }, [ie("+"), M.value])])]) : Ki(e, o, r);
4984
4984
  }
4985
- let I = M();
4985
+ let R = I();
4986
4986
  Z([() => e.multiSelect, () => e.inputType], () => {
4987
- I = M();
4987
+ R = I();
4988
4988
  });
4989
4989
  const {
4990
- renderButtonGroup: R,
4991
- buttonHandleElement: x
4992
- } = tr(e, t, h, p), T = nr(e, t, l), S = C(i.value), E = {
4990
+ renderButtonGroup: E,
4991
+ buttonHandleElement: F
4992
+ } = tr(e, t, h, p), S = nr(e, t, l), T = C(i.value), P = {
4993
4993
  displayText: f,
4994
4994
  commitValue: d,
4995
4995
  elementRef: n,
@@ -4999,52 +4999,56 @@ const Rt = /* @__PURE__ */ oe({
4999
4999
  shouldPopupContent: i,
5000
5000
  togglePopup: c,
5001
5001
  openDialog: () => {
5002
- x.value && e.buttonBehavior === "Modal" && x.value.click();
5002
+ F.value && e.buttonBehavior === "Modal" && F.value.click();
5003
5003
  },
5004
5004
  getModal: () => {
5005
- var D;
5006
- return e.buttonBehavior === "Modal" ? (D = h.modalRef.value) == null ? void 0 : D.value : null;
5005
+ var V;
5006
+ return e.buttonBehavior === "Modal" ? (V = h.modalRef.value) == null ? void 0 : V.value : null;
5007
5007
  },
5008
5008
  getTextbox: () => {
5009
- var D;
5010
- return (D = n.value) == null ? void 0 : D.querySelector("input");
5009
+ var V;
5010
+ return (V = n.value) == null ? void 0 : V.querySelector("input");
5011
5011
  },
5012
5012
  forceClosePopup: () => {
5013
- S.value = !1;
5013
+ T.value = !1, B.value = !0, i.value = !1;
5014
5014
  }
5015
5015
  };
5016
5016
  return be(() => {
5017
- n.value.componentInstance = E, window.onresize = () => {
5017
+ n.value.componentInstance = P, window.onresize = () => {
5018
5018
  document.body.click();
5019
5019
  };
5020
5020
  }), Mn(() => {
5021
- var D;
5022
- window.onresize = null, (D = window[tt]) == null || D.delete(n.value);
5023
- }), t.expose(E), Z(() => i.value, async (D, z) => {
5024
- if (!D && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
5021
+ var V;
5022
+ window.onresize = null, (V = window[tt]) == null || V.delete(n.value);
5023
+ }), t.expose(P), Z(() => i.value, async (V, _) => {
5024
+ if (B.value) {
5025
+ T.value = V, B.value = !1;
5026
+ return;
5027
+ }
5028
+ if (!V && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
5025
5029
  try {
5026
- const Y = await e.beforeClosePopup();
5027
- S.value = !Y, i.value = !Y && !e.readonly;
5028
- } catch (Y) {
5029
- console.error("Error in beforeClosePopup:", Y), S.value = z, i.value = z;
5030
+ const L = await e.beforeClosePopup();
5031
+ T.value = !L, (!L || e.readonly) && (i.value = !0);
5032
+ } catch (L) {
5033
+ console.error("Error in beforeClosePopup:", L), T.value = _, i.value = _;
5030
5034
  }
5031
5035
  return;
5032
5036
  }
5033
- S.value = D;
5037
+ T.value = V;
5034
5038
  }), () => {
5035
- var D, z;
5039
+ var V, _;
5036
5040
  return v(ot, null, [v("div", kt(t.attrs, {
5037
5041
  ref: n,
5038
- class: B.value,
5042
+ class: O.value,
5039
5043
  id: e.id ? e.id : void 0,
5040
- style: O.value
5044
+ style: b.value
5041
5045
  }), [v("div", {
5042
5046
  id: e.id ? `${e.id}-input-group` : void 0,
5043
5047
  class: g.value,
5044
- style: b.value,
5048
+ style: y.value,
5045
5049
  onMouseenter: w,
5046
5050
  onMouseleave: k
5047
- }, [(z = (D = t.slots).precontent) == null ? void 0 : z.call(D), I(), R()])]), S.value && T()]);
5051
+ }, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(), E()])]), T.value && S()]);
5048
5052
  };
5049
5053
  }
5050
5054
  }), ar = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-design.gitee.io/field-selector.schema.json", lr = "field-selector", ir = "A Farris Input Component", rr = "object", sr = {
@@ -5466,6 +5470,10 @@ const Rt = /* @__PURE__ */ oe({
5466
5470
  description: "启用高亮搜索",
5467
5471
  type: "boolean",
5468
5472
  default: !1
5473
+ },
5474
+ "onUpdate:modelValue": {
5475
+ description: "",
5476
+ type: "object"
5469
5477
  }
5470
5478
  }, gr = [
5471
5479
  "type"
@@ -5657,7 +5665,7 @@ const un = {
5657
5665
  popupOnClick: { type: Boolean, default: !0 }
5658
5666
  }, kr = Object.assign({}, un, {
5659
5667
  readonly: {}
5660
- }), aa = on(un, Cr, dr, wr), xr = {
5668
+ }), aa = on(un, Cr, dr, wr), Sr = {
5661
5669
  dataSource: { type: Array, default: [] },
5662
5670
  enableSearch: { type: Boolean, default: !1 },
5663
5671
  idField: { type: String, default: "id" },
@@ -5678,9 +5686,9 @@ const un = {
5678
5686
  },
5679
5687
  // 搜索启用高亮
5680
5688
  enableHighlightSearch: { type: Boolean, default: !0 }
5681
- }, Sr = /* @__PURE__ */ oe({
5689
+ }, xr = /* @__PURE__ */ oe({
5682
5690
  name: "FComboListContainer",
5683
- props: xr,
5691
+ props: Sr,
5684
5692
  emits: ["selectionChange"],
5685
5693
  setup(e, t) {
5686
5694
  const n = C(), a = C(e.dataSource), o = C([]), l = C(e.separator), i = C(e.width), u = C(e.maxHeight), s = C(String(e.selectedValues).split(l.value)), c = N(() => e.multiSelect), h = N(() => ({
@@ -5756,7 +5764,7 @@ const un = {
5756
5764
  }
5757
5765
  });
5758
5766
  function Fr(e) {
5759
- const { t } = xt(), n = C(""), a = C(e.modelValue), o = C(e.data || []), l = C(e.editable);
5767
+ const { t } = St(), n = C(""), a = C(e.modelValue), o = C(e.data || []), l = C(e.editable);
5760
5768
  function i(r) {
5761
5769
  const m = e.multiSelect ? String(r).split(e.separator) : [String(r)], d = m.map((w) => [w, !0]), g = new Map(d);
5762
5770
  return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
@@ -5816,61 +5824,63 @@ const lt = /* @__PURE__ */ oe({
5816
5824
  setup(e, t) {
5817
5825
  const {
5818
5826
  t: n
5819
- } = xt(), a = C(), o = C(), l = C(e.disabled || e.readonly), i = C(e.enableClear), u = C(e.enableSearch), s = C(e.readonly), {
5827
+ } = St(), a = C(), o = C(), l = C(e.disabled || e.readonly), i = C(e.enableClear), u = C(e.enableSearch), s = C(e.readonly), {
5820
5828
  dataSource: c,
5821
5829
  displayText: h,
5822
5830
  editable: f,
5823
5831
  modelValue: r,
5824
- getItemsByValue: m
5825
- } = Fr(e), d = C(e.dropDownIcon);
5826
- 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>');
5827
- const g = N(() => e.multiSelect), p = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
5828
- function w() {
5829
- !g.value && o.value && o.value.hidePopup();
5832
+ getSelectedItemsByDisplayText: m,
5833
+ getItemsByDisplayText: d,
5834
+ getItemsByValue: g
5835
+ } = Fr(e), p = C(e.dropDownIcon);
5836
+ 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>');
5837
+ const w = N(() => e.multiSelect), k = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
5838
+ function B() {
5839
+ !w.value && o.value && o.value.hidePopup();
5830
5840
  }
5831
- function k(x) {
5832
- h.value = x.map((S) => S[e.textField]).join(e.separator);
5841
+ function O(S) {
5842
+ h.value = S.map((P) => P[e.textField]).join(e.separator);
5833
5843
  let T = "";
5834
- x.length === 1 ? T = x[0][e.valueField] : T = x.map((S) => S[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", x, r.value));
5844
+ 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));
5835
5845
  }
5836
- function B() {
5837
- const x = m(r.value);
5838
- k(x);
5846
+ function b() {
5847
+ const S = g(r.value);
5848
+ O(S);
5839
5849
  }
5840
- function O() {
5850
+ function y() {
5841
5851
  s.value || h.value;
5842
5852
  }
5843
- function b(x) {
5853
+ function x(S) {
5844
5854
  var T;
5845
5855
  r.value = "", (T = a.value) == null || T.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
5846
5856
  }
5847
- function y(x) {
5848
- var T, S;
5849
- e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(x)), (S = a.value) == null || S.activeRowById(x), t.emit("change", [r.value], r.value);
5857
+ function M(S) {
5858
+ var T, P;
5859
+ 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);
5850
5860
  }
5851
- function F(x) {
5861
+ function I(S) {
5852
5862
  if (e.multiSelect) {
5853
- const T = m(r.value), E = T.map((D) => D[e.idField || e.valueField]).join(e.separator);
5854
- r.value !== E && (r.value = E, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
5863
+ const T = g(r.value), V = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
5864
+ r.value !== V && (r.value = V, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
5855
5865
  }
5856
5866
  }
5857
- function M() {
5867
+ function R() {
5858
5868
  return h.value;
5859
5869
  }
5860
- function I(x) {
5870
+ function E(S) {
5861
5871
  const {
5862
5872
  value: T
5863
- } = x.target;
5864
- y(T), t.emit("input", T);
5873
+ } = S.target;
5874
+ M(T), t.emit("input", T);
5865
5875
  }
5866
- function R() {
5876
+ function F() {
5867
5877
  o.value.hidePopup();
5868
5878
  }
5869
5879
  return t.expose({
5870
- getDisplayText: M,
5871
- hidePopup: R
5872
- }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([x, T, S, E, D]) => {
5873
- l.value = x, f.value = T, i.value = S, u.value = E, s.value = D;
5880
+ getDisplayText: R,
5881
+ hidePopup: F
5882
+ }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, P, V, _]) => {
5883
+ l.value = S, f.value = T, i.value = P, u.value = V, s.value = _;
5874
5884
  }), () => v(jn, {
5875
5885
  ref: o,
5876
5886
  id: e.id,
@@ -5878,7 +5888,7 @@ const lt = /* @__PURE__ */ oe({
5878
5888
  readonly: s.value,
5879
5889
  forcePlaceholder: e.forcePlaceholder,
5880
5890
  editable: f.value,
5881
- buttonContent: d.value,
5891
+ buttonContent: p.value,
5882
5892
  placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
5883
5893
  enableClear: i.value,
5884
5894
  maxLength: e.maxLength,
@@ -5887,14 +5897,14 @@ const lt = /* @__PURE__ */ oe({
5887
5897
  multiSelect: e.multiSelect,
5888
5898
  inputType: e.multiSelect ? e.viewType : "text",
5889
5899
  modelValue: h.value,
5890
- "onUpdate:modelValue": (x) => h.value = x,
5900
+ "onUpdate:modelValue": (S) => h.value = S,
5891
5901
  focusOnCreated: e.focusOnCreated,
5892
5902
  selectOnCreated: e.selectOnCreated,
5893
- onClear: b,
5894
- onClick: O,
5895
- onChange: F,
5896
- onBlur: B,
5897
- onInput: I,
5903
+ onClear: x,
5904
+ onClick: y,
5905
+ onChange: I,
5906
+ onBlur: b,
5907
+ onInput: E,
5898
5908
  beforeOpen: e.beforeOpen,
5899
5909
  placement: e.placement,
5900
5910
  popupMinWidth: e.minPanelWidth,
@@ -5902,7 +5912,7 @@ const lt = /* @__PURE__ */ oe({
5902
5912
  popupOnClick: e.popupOnClick,
5903
5913
  limitContentBySpace: !0
5904
5914
  }, {
5905
- default: () => [v(Sr, {
5915
+ default: () => [v(xr, {
5906
5916
  ref: a,
5907
5917
  idField: e.idField,
5908
5918
  valueField: e.valueField,
@@ -5915,9 +5925,9 @@ const lt = /* @__PURE__ */ oe({
5915
5925
  enableSearch: u.value,
5916
5926
  maxHeight: e.maxHeight,
5917
5927
  enableHighlightSearch: e.enableHighlightSearch,
5918
- width: e.fitEditor ? p.value : void 0,
5919
- onSelectionChange: (x) => {
5920
- k(x), w();
5928
+ width: e.fitEditor ? k.value : void 0,
5929
+ onSelectionChange: (S) => {
5930
+ O(S), B();
5921
5931
  }
5922
5932
  }, null)]
5923
5933
  });
@@ -6403,17 +6413,17 @@ function ra(e) {
6403
6413
  function h(p, w, k, B) {
6404
6414
  const O = e.value;
6405
6415
  if (O) {
6406
- const { left: b, right: y, width: F } = O.getBoundingClientRect();
6416
+ const { left: b, right: y, width: x } = O.getBoundingClientRect();
6407
6417
  let M = p.clientX - b;
6408
- B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M = F - M), a.value = M;
6418
+ B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M = x - M), a.value = M;
6409
6419
  }
6410
6420
  }
6411
6421
  function f(p, w, k, B) {
6412
6422
  const O = e.value;
6413
6423
  if (O) {
6414
- const { top: b, bottom: y, height: F } = O.getBoundingClientRect();
6424
+ const { top: b, bottom: y, height: x } = O.getBoundingClientRect();
6415
6425
  let M = p.clientY - b;
6416
- B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M = F - M), o.value = M;
6426
+ B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M = x - M), o.value = M;
6417
6427
  }
6418
6428
  }
6419
6429
  function r() {
@@ -6709,35 +6719,35 @@ function ua(e, t, n, a, o) {
6709
6719
  let g = "", p, w, k;
6710
6720
  function B(y) {
6711
6721
  if ((g === "left" || g === "right") && w) {
6712
- const { left: F } = w.getBoundingClientRect(), { width: M } = p.getBoundingClientRect(), I = y.clientX - F;
6722
+ const { left: x } = w.getBoundingClientRect(), { width: M } = p.getBoundingClientRect(), I = y.clientX - x;
6713
6723
  let R = g === "left" ? (M || 0) + (I - l.value) : (M || 0) - (I - l.value);
6714
6724
  R = n.value > 0 ? Math.max(n.value, R) : R;
6715
- const x = d(g, n.value);
6716
- x != null && (R = x > R ? R : x), e.value = R;
6725
+ const E = d(g, n.value);
6726
+ E != null && (R = E > R ? R : E), e.value = R;
6717
6727
  }
6718
6728
  if ((g === "top" || g === "bottom") && w) {
6719
- const { top: F } = w.getBoundingClientRect(), { height: M } = p.getBoundingClientRect(), I = y.clientY - F;
6729
+ const { top: x } = w.getBoundingClientRect(), { height: M } = p.getBoundingClientRect(), I = y.clientY - x;
6720
6730
  let R = g === "top" ? (M || 0) + (I - c.value) : (M || 0) - (I - c.value);
6721
6731
  R = a.value > 0 ? Math.max(a.value, R) : R;
6722
- const x = m(g, a.value);
6723
- x != null && (R = x > R ? R : x), t.value = R;
6732
+ const E = m(g, a.value);
6733
+ E != null && (R = E > R ? R : E), t.value = R;
6724
6734
  }
6725
6735
  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;
6726
6736
  }
6727
- function O(y, F, M) {
6728
- if (g = F, p = M, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6729
- const { left: R } = w.getBoundingClientRect(), x = y.clientX - R;
6730
- i.value = x, l.value = x;
6731
- const T = d(g, n.value) || 0;
6732
- k = (S) => f(S, T, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6737
+ function O(y, x, M) {
6738
+ if (g = x, p = M, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6739
+ const { left: R } = w.getBoundingClientRect(), E = y.clientX - R;
6740
+ i.value = E, l.value = E;
6741
+ const F = d(g, n.value) || 0;
6742
+ k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6733
6743
  }
6734
6744
  }
6735
- function b(y, F, M) {
6736
- if (g = F, p = M, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6745
+ function b(y, x, M) {
6746
+ if (g = x, p = M, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6737
6747
  const { top: R } = w.getBoundingClientRect();
6738
6748
  h.value = y.clientY - R, c.value = y.clientY - R;
6739
- const x = m(g, a.value) || 0;
6740
- k = (T) => r(T, x, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6749
+ const E = m(g, a.value) || 0;
6750
+ k = (F) => r(F, E, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
6741
6751
  }
6742
6752
  }
6743
6753
  return { onClickHorizontalResizeBar: O, onClickVerticalResizeBar: b };
@@ -6772,7 +6782,7 @@ const je = /* @__PURE__ */ oe({
6772
6782
  "f-page-content-nav": c.value === "left" || c.value === "right",
6773
6783
  "f-page-content-main": c.value === "center"
6774
6784
  };
6775
- return e.customClass && String(e.customClass).split(" ").reduce((y, F) => (y[F] = !0, y), b), b;
6785
+ return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
6776
6786
  }), O = N(() => {
6777
6787
  const b = {};
6778
6788
  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;
@@ -6829,7 +6839,7 @@ const as = /* @__PURE__ */ oe({
6829
6839
  function os(e, t) {
6830
6840
  const n = e.schema;
6831
6841
  function a(l) {
6832
- return !!xi().basalDragulaRuleForContainer(l);
6842
+ return !!Si().basalDragulaRuleForContainer(l);
6833
6843
  }
6834
6844
  function o() {
6835
6845
  const l = ["f-layout-pane"];
@@ -6869,7 +6879,7 @@ const ls = /* @__PURE__ */ oe({
6869
6879
  "f-page-content-nav": f.value === "left" || f.value === "right",
6870
6880
  "f-page-content-main": f.value === "center"
6871
6881
  };
6872
- return e.customClass && String(e.customClass).split(" ").reduce((y, F) => (y[F] = !0, y), b), b;
6882
+ return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
6873
6883
  }), O = N(() => {
6874
6884
  const b = {
6875
6885
  flex: "1"
@@ -9111,7 +9121,7 @@ function ws(e, t, n) {
9111
9121
  writable: !0
9112
9122
  }) : e[t] = n, e;
9113
9123
  }
9114
- function xn(e, t) {
9124
+ function Sn(e, t) {
9115
9125
  var n = Object.keys(e);
9116
9126
  if (Object.getOwnPropertySymbols) {
9117
9127
  var a = Object.getOwnPropertySymbols(e);
@@ -9121,12 +9131,12 @@ function xn(e, t) {
9121
9131
  }
9122
9132
  return n;
9123
9133
  }
9124
- function Sn(e) {
9134
+ function xn(e) {
9125
9135
  for (var t = 1; t < arguments.length; t++) {
9126
9136
  var n = arguments[t] != null ? arguments[t] : {};
9127
- t % 2 ? xn(Object(n), !0).forEach(function(a) {
9137
+ t % 2 ? Sn(Object(n), !0).forEach(function(a) {
9128
9138
  ws(e, a, n[a]);
9129
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xn(Object(n)).forEach(function(a) {
9139
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(a) {
9130
9140
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
9131
9141
  });
9132
9142
  }
@@ -9155,18 +9165,18 @@ function bt(e) {
9155
9165
  function Dt(e) {
9156
9166
  return {}.toString.call(e).includes("Object");
9157
9167
  }
9158
- function xs(e) {
9168
+ function Ss(e) {
9159
9169
  return !Object.keys(e).length;
9160
9170
  }
9161
9171
  function Ct(e) {
9162
9172
  return typeof e == "function";
9163
9173
  }
9164
- function Ss(e, t) {
9174
+ function xs(e, t) {
9165
9175
  return Object.prototype.hasOwnProperty.call(e, t);
9166
9176
  }
9167
9177
  function Fs(e, t) {
9168
9178
  return Dt(t) || Ye("changeType"), Object.keys(t).some(function(n) {
9169
- return !Ss(e, n);
9179
+ return !xs(e, n);
9170
9180
  }) && Ye("changeField"), t;
9171
9181
  }
9172
9182
  function Ts(e) {
@@ -9178,7 +9188,7 @@ function Bs(e) {
9178
9188
  }) && Ye("handlersType");
9179
9189
  }
9180
9190
  function Os(e) {
9181
- e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"), xs(e) && Ye("initialContent");
9191
+ e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"), Ss(e) && Ye("initialContent");
9182
9192
  }
9183
9193
  function Ms(e, t) {
9184
9194
  throw new Error(e[t] || e.default);
@@ -9220,7 +9230,7 @@ function Ps(e, t) {
9220
9230
  return Ct(t) ? t(e.current) : t;
9221
9231
  }
9222
9232
  function Ns(e, t) {
9223
- return e.current = Sn(Sn({}, e.current), t), t;
9233
+ return e.current = xn(xn({}, e.current), t), t;
9224
9234
  }
9225
9235
  function Is(e, t, n) {
9226
9236
  return Ct(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
@@ -9312,7 +9322,7 @@ var Gs = js.create({
9312
9322
  resolve: null,
9313
9323
  reject: null,
9314
9324
  monaco: null
9315
- }), fa = vs(Gs, 2), St = fa[0], Lt = fa[1];
9325
+ }), fa = vs(Gs, 2), xt = fa[0], Lt = fa[1];
9316
9326
  function Us(e) {
9317
9327
  var t = Hs.config(e), n = t.monaco, a = ys(t, ["monaco"]);
9318
9328
  Lt(function(o) {
@@ -9323,7 +9333,7 @@ function Us(e) {
9323
9333
  });
9324
9334
  }
9325
9335
  function _s() {
9326
- var e = St(function(t) {
9336
+ var e = xt(function(t) {
9327
9337
  var n = t.monaco, a = t.isInitialized, o = t.resolve;
9328
9338
  return {
9329
9339
  monaco: n,
@@ -9350,7 +9360,7 @@ function Xs(e) {
9350
9360
  return e && (t.src = e), t;
9351
9361
  }
9352
9362
  function Js(e) {
9353
- var t = St(function(a) {
9363
+ var t = xt(function(a) {
9354
9364
  var o = a.config, l = a.reject;
9355
9365
  return {
9356
9366
  config: o,
@@ -9362,7 +9372,7 @@ function Js(e) {
9362
9372
  }, n.onerror = t.reject, n;
9363
9373
  }
9364
9374
  function Qs() {
9365
- var e = St(function(n) {
9375
+ var e = xt(function(n) {
9366
9376
  var a = n.config, o = n.resolve, l = n.reject;
9367
9377
  return {
9368
9378
  config: a,
@@ -9377,12 +9387,12 @@ function Qs() {
9377
9387
  });
9378
9388
  }
9379
9389
  function pa(e) {
9380
- St().monaco || Lt({
9390
+ xt().monaco || Lt({
9381
9391
  monaco: e
9382
9392
  });
9383
9393
  }
9384
9394
  function Zs() {
9385
- return St(function(e) {
9395
+ return xt(function(e) {
9386
9396
  var t = e.monaco;
9387
9397
  return t;
9388
9398
  });
@@ -9610,25 +9620,25 @@ const Ks = /* @__PURE__ */ oe({
9610
9620
  const n = C("dataEntity"), a = C(e.dataSource), {
9611
9621
  entities: o,
9612
9622
  variables: l
9613
- } = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, E) => {
9623
+ } = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, T) => {
9614
9624
  S.stopPropagation(), t.emit("fieldClick", {
9615
9625
  $event: S,
9616
- item: E.raw
9626
+ item: T.raw
9617
9627
  });
9618
- }, c = (S, E) => {
9619
- const D = `${E.raw.name} [${E.raw.bindingPath}]`;
9628
+ }, c = (S, T) => {
9629
+ const P = `${T.raw.name} [${T.raw.bindingPath}]`;
9620
9630
  return v("div", {
9621
9631
  class: "d-flex align-items-center w-100 entity-field",
9622
9632
  style: "justify-content: space-between;"
9623
9633
  }, [v("span", {
9624
- title: D,
9634
+ title: P,
9625
9635
  class: "f-utils-fill text-truncate"
9626
- }, [D]), v("button", {
9636
+ }, [P]), v("button", {
9627
9637
  title: "插入属性名称",
9628
9638
  class: "btn btn-link d-none",
9629
9639
  style: "width:24px;height:24px",
9630
- onClick: (z) => s(z, E),
9631
- onDblclick: (z) => z.stopPropagation()
9640
+ onClick: (V) => s(V, T),
9641
+ onDblclick: (V) => V.stopPropagation()
9632
9642
  }, [v("span", {
9633
9643
  class: "f-icon f-icon-new-edit",
9634
9644
  style: "font-size: 12px;"
@@ -9649,33 +9659,33 @@ const Ks = /* @__PURE__ */ oe({
9649
9659
  "f-icon f-icon-arrow-chevron-down": h.value[S],
9650
9660
  "f-icon f-icon-arrow-chevron-right": !h.value[S]
9651
9661
  })), p = N(() => (S) => {
9652
- var E;
9662
+ var T;
9653
9663
  return {
9654
9664
  "functions-item pl-2": !0,
9655
- selected: ((E = f.value) == null ? void 0 : E.key) === S.key
9665
+ selected: ((T = f.value) == null ? void 0 : T.key) === S.key
9656
9666
  };
9657
9667
  });
9658
- function w(S, E) {
9659
- S.stopPropagation(), h.value = h.value || {}, h.value[E] = !h.value[E];
9668
+ function w(S, T) {
9669
+ S.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
9660
9670
  }
9661
- function k(S, E) {
9662
- S.stopPropagation(), f.value = E;
9671
+ function k(S, T) {
9672
+ S.stopPropagation(), f.value = T;
9663
9673
  }
9664
- function B(S, E) {
9674
+ function B(S, T) {
9665
9675
  t.emit("variableItemDblClick", {
9666
9676
  $event: S,
9667
- item: E
9677
+ item: T
9668
9678
  });
9669
9679
  }
9670
9680
  function O({
9671
9681
  $event: S,
9672
- node: E
9682
+ node: T
9673
9683
  }) {
9674
9684
  t.emit("entityItemDblClick", {
9675
9685
  $event: S,
9676
- item: E.data,
9686
+ item: T.data,
9677
9687
  entityCode: o == null ? void 0 : o.entityCode,
9678
- parentCodes: E.data.parents.join(".")
9688
+ parentCodes: T.data.parents.join(".")
9679
9689
  });
9680
9690
  }
9681
9691
  function b() {
@@ -9694,25 +9704,25 @@ const Ks = /* @__PURE__ */ oe({
9694
9704
  class: d.value(S)
9695
9705
  }, [v("div", {
9696
9706
  class: "functions-type-name pl-2 d-flex align-items-center",
9697
- onClick: (E) => {
9698
- w(E, S);
9707
+ onClick: (T) => {
9708
+ w(T, S);
9699
9709
  }
9700
9710
  }, [v("span", {
9701
9711
  class: g.value(S)
9702
9712
  }, null), l[S].name]), v("ul", {
9703
9713
  class: "pl-3 mr-2"
9704
- }, [l[S].items.map((E) => v("li", {
9705
- class: p.value(E),
9706
- onClick: (D) => k(D, E),
9707
- onDblclick: (D) => B(D, E)
9708
- }, [E.name]))])]))]);
9709
- }
9710
- function F(S, E) {
9711
- if (S.stopPropagation(), n.value === E) {
9714
+ }, [l[S].items.map((T) => v("li", {
9715
+ class: p.value(T),
9716
+ onClick: (P) => k(P, T),
9717
+ onDblclick: (P) => B(P, T)
9718
+ }, [T.name]))])]))]);
9719
+ }
9720
+ function x(S, T) {
9721
+ if (S.stopPropagation(), n.value === T) {
9712
9722
  n.value = "";
9713
9723
  return;
9714
9724
  }
9715
- n.value = E;
9725
+ n.value = T;
9716
9726
  }
9717
9727
  be(() => {
9718
9728
  if (l) {
@@ -9720,32 +9730,32 @@ const Ks = /* @__PURE__ */ oe({
9720
9730
  h.value[S] = !0;
9721
9731
  }
9722
9732
  });
9723
- function M(S, E) {
9724
- const D = S.children.map((Y) => M(Y, E)).filter((Y) => Y !== null);
9725
- return S.data.name.toLowerCase().includes(E.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(E.toLowerCase()) ? {
9733
+ function M(S, T) {
9734
+ const P = S.children.map((_) => M(_, T)).filter((_) => _ !== null);
9735
+ return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
9726
9736
  data: {
9727
9737
  ...S.data
9728
9738
  },
9729
9739
  children: S.children
9730
9740
  // 注意这里保留原始子节点
9731
- } : D.length > 0 ? {
9741
+ } : P.length > 0 ? {
9732
9742
  data: {
9733
9743
  ...S.data
9734
9744
  },
9735
- children: D
9745
+ children: P
9736
9746
  } : null;
9737
9747
  }
9738
- function I(S, E) {
9739
- return S.map((D) => M(D, E)).filter((D) => D !== null);
9748
+ function I(S, T) {
9749
+ return S.map((P) => M(P, T)).filter((P) => P !== null);
9740
9750
  }
9741
9751
  function R() {
9742
9752
  const S = I((o == null ? void 0 : o.fields) || [], i.value);
9743
9753
  u.value = S;
9744
9754
  }
9745
- function x() {
9755
+ function E() {
9746
9756
  u.value = (o == null ? void 0 : o.fields) || [];
9747
9757
  }
9748
- function T(S) {
9758
+ function F(S) {
9749
9759
  S.key === "Enter" && R();
9750
9760
  }
9751
9761
  return () => v("div", {
@@ -9756,7 +9766,7 @@ const Ks = /* @__PURE__ */ oe({
9756
9766
  class: r.value("dataEntity")
9757
9767
  }, [v("div", {
9758
9768
  class: "title px-2 d-flex align-items-center",
9759
- onClick: (S) => F(S, "dataEntity")
9769
+ onClick: (S) => x(S, "dataEntity")
9760
9770
  }, [ie("数据实体"), v("span", {
9761
9771
  class: m.value("dataEntity")
9762
9772
  }, null)]), v("div", {
@@ -9772,13 +9782,13 @@ const Ks = /* @__PURE__ */ oe({
9772
9782
  modelValue: i.value,
9773
9783
  "onUpdate:modelValue": (S) => i.value = S,
9774
9784
  onClickButton: R,
9775
- onClear: x,
9776
- onKeyup: T
9785
+ onClear: E,
9786
+ onKeyup: F
9777
9787
  }, null)]), b()])]), v("li", {
9778
9788
  class: r.value("variables")
9779
9789
  }, [v("div", {
9780
9790
  class: "title px-2 d-flex align-items-center",
9781
- onClick: (S) => F(S, "variables")
9791
+ onClick: (S) => x(S, "variables")
9782
9792
  }, [ie("变量"), v("span", {
9783
9793
  class: m.value("variables")
9784
9794
  }, null)]), v("div", {
@@ -9821,7 +9831,7 @@ const Ks = /* @__PURE__ */ oe({
9821
9831
  };
9822
9832
  }), r = C(Object.keys(s.value));
9823
9833
  Z(() => e.functionItems, (b) => {
9824
- s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, F) => (y[F] = !0, y), {}));
9834
+ s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
9825
9835
  });
9826
9836
  function m(b) {
9827
9837
  b || (b = a.value);
@@ -9850,12 +9860,12 @@ const Ks = /* @__PURE__ */ oe({
9850
9860
  item: y
9851
9861
  });
9852
9862
  }
9853
- Z(() => a.value, (b, y, F) => {
9863
+ Z(() => a.value, (b, y, x) => {
9854
9864
  if (b) {
9855
9865
  const M = setTimeout(() => {
9856
9866
  m(b);
9857
9867
  }, 200);
9858
- F(() => clearTimeout(M));
9868
+ x(() => clearTimeout(M));
9859
9869
  }
9860
9870
  });
9861
9871
  function w() {
@@ -9884,8 +9894,8 @@ const Ks = /* @__PURE__ */ oe({
9884
9894
  if (y.visible !== !1)
9885
9895
  return v("li", {
9886
9896
  class: f.value(y),
9887
- onClick: (F) => g(F, y),
9888
- onDblclick: (F) => p(F, y)
9897
+ onClick: (x) => g(x, y),
9898
+ onDblclick: (x) => p(x, y)
9889
9899
  }, [b === "advanced" ? y.key : y.name]);
9890
9900
  })])])) : v("li", {
9891
9901
  class: "empty-message"
@@ -10045,15 +10055,15 @@ function ru(e, t, n) {
10045
10055
  if (b === 0 && k && w[O].length > 2 && w[O][0] === '"' && w[O][w[O].length - 1] === '"') {
10046
10056
  const y = w[O].substring(1, w[O].length - 1);
10047
10057
  if (k.has(y) && w[O - 1] === "(" && w[O + 1] === ")") {
10048
- const F = k.get(y);
10049
- F !== void 0 && (w[O] = `"${F}"`, b = 1);
10058
+ const x = k.get(y);
10059
+ x !== void 0 && (w[O] = `"${x}"`, b = 1);
10050
10060
  }
10051
10061
  }
10052
10062
  if (b === 0) {
10053
- const y = Object.values(t).map((F) => F.items).flat();
10054
- for (let F = 0; F < y.length; F++)
10055
- if (w[O] === y[F].name) {
10056
- w[O] = y[F].keyFront + "." + y[F].key, b = 1;
10063
+ const y = Object.values(t).map((x) => x.items).flat();
10064
+ for (let x = 0; x < y.length; x++)
10065
+ if (w[O] === y[x].name) {
10066
+ w[O] = y[x].keyFront + "." + y[x].key, b = 1;
10057
10067
  break;
10058
10068
  }
10059
10069
  }
@@ -10075,22 +10085,22 @@ function ru(e, t, n) {
10075
10085
  y = y + 1;
10076
10086
  continue;
10077
10087
  } else {
10078
- let F = 0;
10079
- if (F === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
10088
+ let x = 0;
10089
+ if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
10080
10090
  const M = p[y].substring(1, p[y].length - 1);
10081
10091
  if (k.has(M) && p[y - 1] === "(" && p[y + 1] === ")") {
10082
10092
  const I = k.get(M);
10083
- I !== void 0 && (O = O + `"${I}"`, F = 1);
10093
+ I !== void 0 && (O = O + `"${I}"`, x = 1);
10084
10094
  }
10085
10095
  }
10086
- if (F === 0) {
10096
+ if (x === 0) {
10087
10097
  for (let M = 0; M < w.length; M++)
10088
10098
  if (p[y] === w[M].key && w[M].type.toLowerCase() !== "advanced") {
10089
- O = O + w[M].name, F = 1;
10099
+ O = O + w[M].name, x = 1;
10090
10100
  break;
10091
10101
  }
10092
10102
  }
10093
- F === 0 && (O = O + p[y]);
10103
+ x === 0 && (O = O + p[y]);
10094
10104
  }
10095
10105
  }
10096
10106
  return O;
@@ -10141,7 +10151,7 @@ const uu = /* @__PURE__ */ oe({
10141
10151
  props: Mr,
10142
10152
  emits: [],
10143
10153
  setup(e, t) {
10144
- var x;
10154
+ var E;
10145
10155
  const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
10146
10156
  label: "提示",
10147
10157
  value: "info"
@@ -10162,81 +10172,81 @@ const uu = /* @__PURE__ */ oe({
10162
10172
  onFunctionSearch: g
10163
10173
  } = su(e, d);
10164
10174
  function p({
10165
- $event: T,
10175
+ $event: F,
10166
10176
  item: S
10167
10177
  }) {
10168
- var D;
10169
- const E = s(S);
10170
- (D = i.value) == null || D.insertText(E);
10178
+ var P;
10179
+ const T = s(S);
10180
+ (P = i.value) == null || P.insertText(T);
10171
10181
  }
10172
10182
  function w({
10173
- $event: T,
10183
+ $event: F,
10174
10184
  item: S
10175
10185
  }) {
10176
- var D;
10177
- const E = c(S);
10178
- (D = i.value) == null || D.insertText(E);
10179
- }
10180
- function k(T) {
10181
- return T.reduce((S, E) => {
10182
- var D;
10183
- return S.push(E.data), (D = E.children) != null && D.length && S.push(...k(E.children)), S;
10186
+ var P;
10187
+ const T = c(S);
10188
+ (P = i.value) == null || P.insertText(T);
10189
+ }
10190
+ function k(F) {
10191
+ return F.reduce((S, T) => {
10192
+ var P;
10193
+ return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
10184
10194
  }, []);
10185
10195
  }
10186
- const B = k(((x = e == null ? void 0 : e.entities) == null ? void 0 : x.fields) || []);
10187
- function O(T) {
10188
- return T.map((S) => {
10189
- const E = B.find((D) => D.bindingPath === S);
10190
- return E && E.type === "entity" ? `${S}[0]` : S;
10196
+ const B = k(((E = e == null ? void 0 : e.entities) == null ? void 0 : E.fields) || []);
10197
+ function O(F) {
10198
+ return F.map((S) => {
10199
+ const T = B.find((P) => P.bindingPath === S);
10200
+ return T && T.type === "entity" ? `${S}[0]` : S;
10191
10201
  }).join(".");
10192
10202
  }
10193
10203
  function b({
10194
- $event: T,
10204
+ $event: F,
10195
10205
  item: S,
10196
- parentCodes: E,
10197
- entityCode: D
10206
+ parentCodes: T,
10207
+ entityCode: P
10198
10208
  }) {
10199
- var $;
10200
- const z = f(S);
10201
- E = e.isServerSide ? O(S.parents) : E;
10202
- let Y = `${E}.${z}`;
10203
- D === z && (Y = z), ($ = i.value) == null || $.insertText(`${Y}`);
10209
+ var L;
10210
+ const V = f(S);
10211
+ T = e.isServerSide ? O(S.parents) : T;
10212
+ let _ = `${T}.${V}`;
10213
+ P === V && (_ = V), (L = i.value) == null || L.insertText(`${_}`);
10204
10214
  }
10205
10215
  function y({
10206
- $event: T,
10216
+ $event: F,
10207
10217
  item: S
10208
10218
  }) {
10209
- var D;
10210
- const E = f(S);
10211
- (D = i.value) == null || D.insertText(`${E}`);
10219
+ var P;
10220
+ const T = f(S);
10221
+ (P = i.value) == null || P.insertText(`${T}`);
10212
10222
  }
10213
- function F() {
10214
- var T;
10215
- return (T = i.value) == null ? void 0 : T.getContent();
10223
+ function x() {
10224
+ var F;
10225
+ return (F = i.value) == null ? void 0 : F.getContent();
10216
10226
  }
10217
10227
  function M() {
10218
10228
  var S;
10219
- const T = (S = i.value) == null ? void 0 : S.getContent();
10229
+ const F = (S = i.value) == null ? void 0 : S.getContent();
10220
10230
  return {
10221
- value: r(T),
10231
+ value: r(F),
10222
10232
  message: a.value,
10223
10233
  messageType: o.value
10224
10234
  };
10225
10235
  }
10226
10236
  const I = C("");
10227
10237
  function R() {
10228
- var T;
10229
- (T = i.value) == null || T.clearText();
10238
+ var F;
10239
+ (F = i.value) == null || F.clearText();
10230
10240
  }
10231
10241
  return be(async () => {
10232
10242
  if (l.value) {
10233
- const T = JSON.parse(l.value), {
10243
+ const F = JSON.parse(l.value), {
10234
10244
  expr: S
10235
- } = T;
10245
+ } = F;
10236
10246
  S && (I.value = await m(S) || "");
10237
10247
  }
10238
10248
  }), t.expose({
10239
- getExpressionContext: F,
10249
+ getExpressionContext: x,
10240
10250
  getExpressionValue: M,
10241
10251
  resetExpression: R
10242
10252
  }), () => v("div", {
@@ -10263,7 +10273,7 @@ const uu = /* @__PURE__ */ oe({
10263
10273
  class: "f-utils-fill my-2 ml-1"
10264
10274
  }, [v(Ks, {
10265
10275
  modelValue: I.value,
10266
- "onUpdate:modelValue": (T) => I.value = T,
10276
+ "onUpdate:modelValue": (F) => I.value = F,
10267
10277
  ref: i
10268
10278
  }, null)]), e.showMessage && v("div", {
10269
10279
  class: "d-flex flex-column p-1",
@@ -10274,7 +10284,7 @@ const uu = /* @__PURE__ */ oe({
10274
10284
  style: "width: 75px",
10275
10285
  data: u,
10276
10286
  modelValue: o.value,
10277
- "onUpdate:modelValue": (T) => o.value = T,
10287
+ "onUpdate:modelValue": (F) => o.value = F,
10278
10288
  textField: "label",
10279
10289
  valueField: "value",
10280
10290
  idField: "value",
@@ -10282,7 +10292,7 @@ const uu = /* @__PURE__ */ oe({
10282
10292
  minPanelWidth: 130,
10283
10293
  placement: "auto"
10284
10294
  }, null)]), On(v("textarea", {
10285
- "onUpdate:modelValue": (T) => a.value = T,
10295
+ "onUpdate:modelValue": (F) => a.value = F,
10286
10296
  class: "form-control",
10287
10297
  style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
10288
10298
  }, null), [[Ra, a.value]])])]
@@ -10695,7 +10705,7 @@ function va(e) {
10695
10705
  }
10696
10706
  const wu = /* @__PURE__ */ new Map([
10697
10707
  ["appearance", jt]
10698
- ]), ku = "https://json-schema.org/draft/2020-12/schema", xu = "https://farris-design.gitee.io/combo-list.schema.json", Su = "combo-tree", Fu = "A Farris Input Component", Tu = "object", Bu = {
10708
+ ]), ku = "https://json-schema.org/draft/2020-12/schema", Su = "https://farris-design.gitee.io/combo-list.schema.json", xu = "combo-tree", Fu = "A Farris Input Component", Tu = "object", Bu = {
10699
10709
  id: {
10700
10710
  description: "The unique identifier for a combo list",
10701
10711
  type: "string"
@@ -10853,8 +10863,8 @@ const wu = /* @__PURE__ */ new Map([
10853
10863
  "type"
10854
10864
  ], Mu = {
10855
10865
  $schema: ku,
10856
- $id: xu,
10857
- title: Su,
10866
+ $id: Su,
10867
+ title: xu,
10858
10868
  description: Fu,
10859
10869
  type: Tu,
10860
10870
  properties: Bu,
@@ -11227,54 +11237,55 @@ const Pt = /* @__PURE__ */ oe({
11227
11237
  displayText: r,
11228
11238
  editable: m,
11229
11239
  modelValue: d,
11230
- flatTreeNodes: g
11231
- } = Iu(e), p = N(() => e.multiSelect);
11240
+ getSelectedItemsByDisplayText: g,
11241
+ flatTreeNodes: p
11242
+ } = Iu(e), w = N(() => e.multiSelect);
11232
11243
  N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
11233
- const w = N(() => {
11234
- var T;
11235
- const x = (T = n.value) == null ? void 0 : T.popoverRef;
11236
- return x ? x.shown : !1;
11244
+ const k = N(() => {
11245
+ var S;
11246
+ const F = (S = n.value) == null ? void 0 : S.popoverRef;
11247
+ return F ? F.shown : !1;
11237
11248
  }), {
11238
- onValueChange: k,
11239
- resetDataSource: B
11249
+ onValueChange: B,
11250
+ resetDataSource: O
11240
11251
  } = ju({
11241
11252
  comboEditorRef: n,
11242
11253
  dataSource: f,
11243
11254
  searchFields: u,
11244
11255
  originalValue: s,
11245
- showPopover: w,
11246
- flatTreeNodes: g
11256
+ showPopover: k,
11257
+ flatTreeNodes: p
11247
11258
  }, e.idField);
11248
- function O() {
11249
- !p.value && n.value && n.value.hidePopup();
11259
+ function b() {
11260
+ !w.value && n.value && n.value.hidePopup();
11250
11261
  }
11251
- const b = (x) => e.displayFormatter ? e.displayFormatter(x) : x.map((T) => T[e.textField]).join(e.separator);
11252
- function y(x = []) {
11253
- if (!p.value)
11254
- r.value = b(x), d.value = x.map((T) => T[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", x, d.value);
11262
+ const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((S) => S[e.textField]).join(e.separator);
11263
+ function x(F = []) {
11264
+ if (!w.value)
11265
+ 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);
11255
11266
  else {
11256
- const T = Object.keys(h), S = Object.values(h);
11257
- r.value = b(S), d.value = T.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", S, d.value);
11267
+ const S = Object.keys(h), T = Object.values(h);
11268
+ r.value = y(T), d.value = S.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
11258
11269
  }
11259
- O();
11270
+ b();
11260
11271
  }
11261
- function F(x) {
11262
- var T;
11263
- d.value = "", w.value && ((T = n.value) == null || T.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
11272
+ function M(F) {
11273
+ var S;
11274
+ d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
11264
11275
  }
11265
- function M(x) {
11266
- p.value && (delete h[x.id], y());
11276
+ function I(F) {
11277
+ w.value && (delete h[F.id], x());
11267
11278
  }
11268
- function I(x) {
11269
- p.value && (h[x.id] = x.data, y());
11279
+ function R(F) {
11280
+ w.value && (h[F.id] = F.data, x());
11270
11281
  }
11271
- Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([x, T, S, E, D]) => {
11272
- a.value = x, m.value = T, o.value = S, l.value = E, i.value = D;
11282
+ Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, V]) => {
11283
+ a.value = F, m.value = S, o.value = T, l.value = P, i.value = V;
11273
11284
  });
11274
- const R = () => {
11275
- if (s.value = Le(f.value), p.value && d.value) {
11276
- const x = [];
11277
- g(f.value, x), d.value.split(e.separator).reduce((T, S) => (T[S] = x.find((E) => E.id === S), T), h);
11285
+ const E = () => {
11286
+ if (s.value = Le(f.value), w.value && d.value) {
11287
+ const F = [];
11288
+ p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
11278
11289
  }
11279
11290
  };
11280
11291
  return () => v(jn, {
@@ -11293,16 +11304,16 @@ const Pt = /* @__PURE__ */ oe({
11293
11304
  inputType: e.viewType,
11294
11305
  popupOnClick: !0,
11295
11306
  modelValue: r.value,
11296
- "onUpdate:modelValue": (x) => r.value = x,
11297
- onClear: F,
11298
- onInput: k,
11307
+ "onUpdate:modelValue": (F) => r.value = F,
11308
+ onClear: M,
11309
+ onInput: B,
11299
11310
  focusOnCreated: e.focusOnCreated,
11300
11311
  selectOnCreated: e.selectOnCreated,
11301
- beforeOpen: R,
11312
+ beforeOpen: E,
11302
11313
  placement: e.placement,
11303
11314
  popupMinWidth: e.minPanelWidth
11304
11315
  }, {
11305
- default: () => [w.value && v(Nu, {
11316
+ default: () => [k.value && v(Nu, {
11306
11317
  ref: c,
11307
11318
  maxHeight: e.maxHeight,
11308
11319
  multiSelect: e.multiSelect,
@@ -11313,15 +11324,15 @@ const Pt = /* @__PURE__ */ oe({
11313
11324
  titleField: e.titleField,
11314
11325
  data: s.value,
11315
11326
  selectedValues: d.value,
11316
- onSelectionChange: y,
11327
+ onSelectionChange: x,
11317
11328
  formatter: e.formatter,
11318
11329
  editorParams: e.editorParams,
11319
11330
  repositoryToken: e.repositoryToken,
11320
11331
  customRowStatus: e.customRowStatus,
11321
- searchHandler: k,
11322
- onUnSelectItem: M,
11323
- onSelectItem: I,
11324
- onClearSearch: B
11332
+ searchHandler: B,
11333
+ onUnSelectItem: I,
11334
+ onSelectItem: R,
11335
+ onClearSearch: O
11325
11336
  }, null)]
11326
11337
  });
11327
11338
  }
@@ -11696,19 +11707,19 @@ function $u(e, t) {
11696
11707
  function h() {
11697
11708
  if (e.editorType === "filter")
11698
11709
  for (let y = 0; y < t.value.length - 1; y++) {
11699
- const F = t.value[y];
11700
- (F.relation === ct.Empty || !F.relation) && (F.relation = ct.And);
11710
+ const x = t.value[y];
11711
+ (x.relation === ct.Empty || !x.relation) && (x.relation = ct.And);
11701
11712
  }
11702
11713
  }
11703
11714
  function f() {
11704
11715
  const y = Object.assign({}, u);
11705
11716
  t.value = [...t.value, y];
11706
- const F = t.value.length - 1;
11707
- n.value = F, h();
11717
+ const x = t.value.length - 1;
11718
+ n.value = x, h();
11708
11719
  }
11709
11720
  function r({ index: y }) {
11710
- const F = Object.assign({}, u);
11711
- 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();
11721
+ const x = Object.assign({}, u);
11722
+ 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();
11712
11723
  }
11713
11724
  function m({ index: y }) {
11714
11725
  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)));
@@ -11721,14 +11732,14 @@ function $u(e, t) {
11721
11732
  }
11722
11733
  function p() {
11723
11734
  if (n.value >= 0) {
11724
- const y = n.value, F = t.value.splice(y, 1);
11725
- t.value.splice(y - 1, 0, ...F), n.value = y - 1;
11735
+ const y = n.value, x = t.value.splice(y, 1);
11736
+ t.value.splice(y - 1, 0, ...x), n.value = y - 1;
11726
11737
  }
11727
11738
  }
11728
11739
  function w() {
11729
11740
  if (n.value >= 0) {
11730
- const y = n.value, F = t.value.splice(y, 1);
11731
- t.value.splice(y + 1, 0, ...F), n.value = y + 1;
11741
+ const y = n.value, x = t.value.splice(y, 1);
11742
+ t.value.splice(y + 1, 0, ...x), n.value = y + 1;
11732
11743
  }
11733
11744
  }
11734
11745
  function k() {
@@ -11740,32 +11751,32 @@ function $u(e, t) {
11740
11751
  function O(y) {
11741
11752
  if (y.length % 2 !== 0)
11742
11753
  return !1;
11743
- let F = "";
11754
+ let x = "";
11744
11755
  for (const M of y)
11745
11756
  if (M === "(")
11746
- F += M;
11757
+ x += M;
11747
11758
  else if (M === ")") {
11748
- if (!F.endsWith("("))
11759
+ if (!x.endsWith("("))
11749
11760
  return !1;
11750
- F = F.slice(0, -1);
11761
+ x = x.slice(0, -1);
11751
11762
  }
11752
- return F.length === 0;
11763
+ return x.length === 0;
11753
11764
  }
11754
11765
  function b() {
11755
11766
  const y = t.value.length;
11756
11767
  if (!y)
11757
11768
  return !0;
11758
- let F = !0, M = !0;
11769
+ let x = !0, M = !0;
11759
11770
  if (e.editorType !== "sort") {
11760
11771
  t.value[y - 1].relation = ct.Empty, M = !t.value.slice(0, -1).some(
11761
- (T) => T.relation === ct.Empty || !T.relation
11772
+ (F) => F.relation === ct.Empty || !F.relation
11762
11773
  );
11763
- const x = t.value.flatMap((T) => [T.lbracket, T.rbracket]).join("");
11764
- F = O(x);
11774
+ const E = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
11775
+ x = O(E);
11765
11776
  }
11766
11777
  const I = t.value.some((R) => !R[i]);
11767
11778
  return [
11768
- { result: F, message: "括号不匹配,请检查。" },
11779
+ { result: x, message: "括号不匹配,请检查。" },
11769
11780
  { result: M, message: "关系设置不完整,请检查。" },
11770
11781
  { result: !I, message: "字段不允许为空,请检查。" }
11771
11782
  ].find((R) => !R.result);
@@ -11810,11 +11821,11 @@ const en = /* @__PURE__ */ oe({
11810
11821
  activeRowIndex: O,
11811
11822
  onSelectRow: b,
11812
11823
  canClear: y,
11813
- canMove: F,
11824
+ canMove: x,
11814
11825
  validateCondition: M,
11815
11826
  resetActiveRow: I
11816
11827
  } = $u(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
11817
- function x() {
11828
+ function E() {
11818
11829
  return e.editorType === "sort" ? v(Vu, {
11819
11830
  conditions: c.value,
11820
11831
  fields: u.value,
@@ -11837,8 +11848,8 @@ const en = /* @__PURE__ */ oe({
11837
11848
  formContextData: i.value
11838
11849
  }, null);
11839
11850
  }
11840
- const T = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && T.value);
11841
- async function E() {
11851
+ const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && F.value);
11852
+ async function T() {
11842
11853
  if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
11843
11854
  o == null || o.show();
11844
11855
  const j = await e.onSubmitModal({
@@ -11852,7 +11863,7 @@ const en = /* @__PURE__ */ oe({
11852
11863
  }
11853
11864
  return !0;
11854
11865
  }
11855
- const D = {
11866
+ const P = {
11856
11867
  title: R.value,
11857
11868
  width: 800,
11858
11869
  height: 600,
@@ -11877,11 +11888,11 @@ const en = /* @__PURE__ */ oe({
11877
11888
  disabled: S,
11878
11889
  handle: async (j) => {
11879
11890
  const G = M();
11880
- return T.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await E();
11891
+ return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
11881
11892
  }
11882
11893
  }]
11883
11894
  };
11884
- async function z() {
11895
+ async function V() {
11885
11896
  if (e.beforeOpen)
11886
11897
  try {
11887
11898
  o == null || o.show();
@@ -11913,10 +11924,10 @@ const en = /* @__PURE__ */ oe({
11913
11924
  }
11914
11925
  return I(), !0;
11915
11926
  }
11916
- function Y() {
11927
+ function _() {
11917
11928
  t.emit("update:modelValue", "");
11918
11929
  }
11919
- function $(j) {
11930
+ function L(j) {
11920
11931
  t.emit("update:modelValue", j);
11921
11932
  }
11922
11933
  return () => v(Rt, {
@@ -11928,20 +11939,20 @@ const en = /* @__PURE__ */ oe({
11928
11939
  enableClear: e.enableClear,
11929
11940
  buttonContent: s,
11930
11941
  buttonBehavior: "Modal",
11931
- modalOptions: D,
11932
- beforeOpen: z,
11933
- onClear: Y,
11942
+ modalOptions: P,
11943
+ beforeOpen: V,
11944
+ onClear: _,
11934
11945
  enableTitle: e.enableTitle,
11935
- "onUpdate:modelValue": $
11946
+ "onUpdate:modelValue": L
11936
11947
  }, {
11937
11948
  default: () => [v("div", {
11938
11949
  class: "h-100 d-flex flex-column"
11939
11950
  }, [v("div", {
11940
11951
  style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
11941
11952
  class: "shading-border-top"
11942
- }, null), x(), v(Lu, {
11953
+ }, null), E(), v(Lu, {
11943
11954
  canClear: y,
11944
- canMove: F,
11955
+ canMove: x,
11945
11956
  onAdd: r,
11946
11957
  onClear: m,
11947
11958
  onMoveBottom: d,
@@ -11951,7 +11962,7 @@ const en = /* @__PURE__ */ oe({
11951
11962
  }, null)])]
11952
11963
  });
11953
11964
  }
11954
- }), Sd = {
11965
+ }), Md = {
11955
11966
  install(e) {
11956
11967
  e.component(en.name, en);
11957
11968
  },
@@ -11966,7 +11977,7 @@ export {
11966
11977
  ct as FilterRelation,
11967
11978
  bu as SortType,
11968
11979
  Re as ValueType,
11969
- Sd as default,
11980
+ Md as default,
11970
11981
  ta as filterConditionEditorProps,
11971
11982
  cr as propsResolver,
11972
11983
  Cu as treeNodeStatus,