@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
@@ -8,7 +8,7 @@ import { LocaleService as It } from "../locale/index.esm.js";
8
8
  import { getCustomClass as dt, withInstall as dr, FormSchemaEntityField$Type as sn, FormSchemaEntityFieldTypeName as cn, getMaxZIndex as fr } from "../common/index.esm.js";
9
9
  import { useResizeObserver as pr } from "@vueuse/core";
10
10
  import { getHierarchyRow as mr, useIdentify as vr, useGroupData as gr, useFilter as hr, useHierarchy as yr, useLoading as br, useDataView as Cr, useSelection as wr, useSelectHierarchyItem as Sr, usePagination as Tr, useDataViewContainerStyle as Fr, useCommandColumn as xr, useSettingColumn as Br, useColumn as Dr, useSort as kr, useGroupColumn as Er, useRow as Mr, useEdit as Ir, useVisualDataBound as Or, useVisualDataCell as Nr, useVisualDataRow as Pr, useVisualData as jr, useCellPosition as Lr, useSidebar as Vr, useVirtualScroll as $r, useFitColumn as Ar, useFilterHistory as Rr, useColumnFilter as zr, useDragColumn as Hr, getColumnHeader as _r, getSidebar as qr, getDisableMask as Ur, getHorizontalScrollbar as Gr, getVerticalScrollbar as Wr, getEmpty as Yr, getPagination as Xr, getSummary as Jr } from "../data-view/index.esm.js";
11
- import { getSchemaByTypeForDesigner as bn, schemaResolverMapForDesigner as Qr, propertyEffectMapForDesigner as Zr, propertyConfigSchemaMapForDesigner as Kr, schemaMapForDesigner as ea, createPropsResolver as Cn, resolveAppearance as ta } from "../dynamic-resolver/index.esm.js";
11
+ import { getSchemaByTypeForDesigner as bn, schemaMapForDesigner as Qr, propertyConfigSchemaMapForDesigner as Zr, propertyEffectMapForDesigner as Kr, schemaResolverMapForDesigner as ea, createPropsResolver as Cn, resolveAppearance as ta } from "../dynamic-resolver/index.esm.js";
12
12
  import "../designer-canvas/index.esm.js";
13
13
  import "../property-panel/index.esm.js";
14
14
  import wn from "../accordion/index.esm.js";
@@ -189,23 +189,23 @@ var xo = { exports: {} };
189
189
  }
190
190
  return r[u].exports;
191
191
  }
192
- for (var f = typeof xt == "function" && xt, m = 0; m < l.length; m++) a(l[m]);
192
+ for (var f = typeof xt == "function" && xt, p = 0; p < l.length; p++) a(l[p]);
193
193
  return a;
194
194
  }
195
195
  return n;
196
196
  }())({
197
197
  1: [function(n, o, r) {
198
198
  var l = {}, a = "(?:^|\\s)", f = "(?:\\s|$)";
199
- function m(c) {
199
+ function p(c) {
200
200
  var b = l[c];
201
201
  return b ? b.lastIndex = 0 : l[c] = b = new RegExp(a + c + f, "g"), b;
202
202
  }
203
203
  function u(c, b) {
204
204
  var i = c.className;
205
- i.length ? m(b).test(i) || (c.className += " " + b) : c.className = b;
205
+ i.length ? p(b).test(i) || (c.className += " " + b) : c.className = b;
206
206
  }
207
207
  function v(c, b) {
208
- c.className = c.className.replace(m(b), " ").trim();
208
+ c.className = c.className.replace(p(b), " ").trim();
209
209
  }
210
210
  o.exports = {
211
211
  add: u,
@@ -214,12 +214,12 @@ var xo = { exports: {} };
214
214
  }, {}],
215
215
  2: [function(n, o, r) {
216
216
  (function(l) {
217
- var a = n("contra/emitter"), f = n("crossvent"), m = n("./classes"), u = document, v = u.documentElement;
218
- function c(x, D) {
217
+ var a = n("contra/emitter"), f = n("crossvent"), p = n("./classes"), u = document, v = u.documentElement;
218
+ function c(S, B) {
219
219
  var P = arguments.length;
220
- P === 1 && Array.isArray(x) === !1 && (D = x, x = []);
221
- var $, H, V, J, N, j, M, I, z, oe = null, le, X, pe = !1, ce = 0, se, K = D || {};
222
- K.moves === void 0 && (K.moves = k), K.accepts === void 0 && (K.accepts = k), K.invalid === void 0 && (K.invalid = pt), K.containers === void 0 && (K.containers = x || []), K.isContainer === void 0 && (K.isContainer = S), K.copy === void 0 && (K.copy = !1), K.copySortSource === void 0 && (K.copySortSource = !1), K.revertOnSpill === void 0 && (K.revertOnSpill = !1), K.removeOnSpill === void 0 && (K.removeOnSpill = !1), K.direction === void 0 && (K.direction = "vertical"), K.ignoreInputTextSelection === void 0 && (K.ignoreInputTextSelection = !0), K.mirrorContainer === void 0 && (K.mirrorContainer = u.body);
220
+ P === 1 && Array.isArray(S) === !1 && (B = S, S = []);
221
+ var L, H, $, J, N, j, M, O, z, oe = null, le, X, pe = !1, ce = 0, se, K = B || {};
222
+ K.moves === void 0 && (K.moves = D), K.accepts === void 0 && (K.accepts = D), K.invalid === void 0 && (K.invalid = pt), K.containers === void 0 && (K.containers = S || []), K.isContainer === void 0 && (K.isContainer = T), K.copy === void 0 && (K.copy = !1), K.copySortSource === void 0 && (K.copySortSource = !1), K.revertOnSpill === void 0 && (K.revertOnSpill = !1), K.removeOnSpill === void 0 && (K.removeOnSpill = !1), K.direction === void 0 && (K.direction = "vertical"), K.ignoreInputTextSelection === void 0 && (K.ignoreInputTextSelection = !0), K.mirrorContainer === void 0 && (K.mirrorContainer = u.body);
223
223
  var fe = a({
224
224
  containers: K.containers,
225
225
  start: Pe,
@@ -231,152 +231,152 @@ var xo = { exports: {} };
231
231
  dragging: !1
232
232
  });
233
233
  return K.removeOnSpill === !0 && fe.on("over", Pt).on("out", jt), Re(), fe;
234
- function Je(E) {
235
- return fe.containers.indexOf(E) !== -1 || K.isContainer(E);
234
+ function Je(k) {
235
+ return fe.containers.indexOf(k) !== -1 || K.isContainer(k);
236
236
  }
237
- function Re(E) {
238
- var _ = E ? "remove" : "add";
237
+ function Re(k) {
238
+ var _ = k ? "remove" : "add";
239
239
  s(v, _, "mousedown", he), s(v, _, "mouseup", qe);
240
240
  }
241
- function Ne(E) {
242
- var _ = E ? "remove" : "add";
241
+ function Ne(k) {
242
+ var _ = k ? "remove" : "add";
243
243
  s(v, _, "mousemove", ft);
244
244
  }
245
- function it(E) {
246
- var _ = E ? "remove" : "add";
245
+ function it(k) {
246
+ var _ = k ? "remove" : "add";
247
247
  f[_](v, "selectstart", lt), f[_](v, "click", lt);
248
248
  }
249
249
  function Qe() {
250
250
  Re(!0), qe({});
251
251
  }
252
- function lt(E) {
253
- le && E.preventDefault();
252
+ function lt(k) {
253
+ le && k.preventDefault();
254
254
  }
255
- function he(E) {
256
- J = E.clientX, N = E.clientY;
257
- var _ = d(E) !== 1 || E.metaKey || E.ctrlKey;
255
+ function he(k) {
256
+ J = k.clientX, N = k.clientY;
257
+ var _ = d(k) !== 1 || k.metaKey || k.ctrlKey;
258
258
  if (!_) {
259
- var Q = E.target, re = ze(Q);
260
- re && (le = re, Ne(), E.type === "mousedown" && (g(Q) ? Q.focus() : E.preventDefault()));
259
+ var Q = k.target, re = ze(Q);
260
+ re && (le = re, Ne(), k.type === "mousedown" && (g(Q) ? Q.focus() : k.preventDefault()));
261
261
  }
262
262
  }
263
- function ft(E) {
263
+ function ft(k) {
264
264
  if (le) {
265
- if (d(E) === 0) {
265
+ if (d(k) === 0) {
266
266
  qe({});
267
267
  return;
268
268
  }
269
- if (!(E.clientX !== void 0 && Math.abs(E.clientX - J) <= (K.slideFactorX || 0) && E.clientY !== void 0 && Math.abs(E.clientY - N) <= (K.slideFactorY || 0))) {
269
+ if (!(k.clientX !== void 0 && Math.abs(k.clientX - J) <= (K.slideFactorX || 0) && k.clientY !== void 0 && Math.abs(k.clientY - N) <= (K.slideFactorY || 0))) {
270
270
  if (K.ignoreInputTextSelection) {
271
- var _ = O("clientX", E) || 0, Q = O("clientY", E) || 0, re = u.elementFromPoint(_, Q);
271
+ var _ = E("clientX", k) || 0, Q = E("clientY", k) || 0, re = u.elementFromPoint(_, Q);
272
272
  if (g(re))
273
273
  return;
274
274
  }
275
275
  var ue = le;
276
- Ne(!0), it(), Ze(), _e(ue), m.add(I || V, "gu-transit"), Vt(), Lt(), ce = 0, Ae(E);
276
+ Ne(!0), it(), Ze(), _e(ue), p.add(O || $, "gu-transit"), Vt(), Lt(), ce = 0, Ae(k);
277
277
  }
278
278
  }
279
279
  }
280
- function ze(E) {
281
- if (!(fe.dragging && $) && !Je(E)) {
282
- for (var _ = E; p(E) && Je(p(E)) === !1; )
283
- if (K.invalid(E, _) || (E = p(E), !E))
280
+ function ze(k) {
281
+ if (!(fe.dragging && L) && !Je(k)) {
282
+ for (var _ = k; m(k) && Je(m(k)) === !1; )
283
+ if (K.invalid(k, _) || (k = m(k), !k))
284
284
  return;
285
- var Q = p(E);
286
- if (Q && !K.invalid(E, _)) {
287
- var re = K.moves(E, Q, _, T(E));
285
+ var Q = m(k);
286
+ if (Q && !K.invalid(k, _)) {
287
+ var re = K.moves(k, Q, _, F(k));
288
288
  if (re)
289
289
  return {
290
- item: E,
290
+ item: k,
291
291
  source: Q
292
292
  };
293
293
  }
294
294
  }
295
295
  }
296
- function He(E) {
297
- return !!ze(E);
296
+ function He(k) {
297
+ return !!ze(k);
298
298
  }
299
- function Pe(E) {
300
- var _ = ze(E);
299
+ function Pe(k) {
300
+ var _ = ze(k);
301
301
  _ && _e(_);
302
302
  }
303
- function _e(E) {
304
- qt(E.item, E.source) && (I = E.item.cloneNode(!0), fe.emit("cloned", I, E.item, "copy")), H = E.source, V = E.item, j = M = T(E.item), fe.dragging = !0, fe.emit("drag", V, H);
303
+ function _e(k) {
304
+ qt(k.item, k.source) && (O = k.item.cloneNode(!0), fe.emit("cloned", O, k.item, "copy")), H = k.source, $ = k.item, j = M = F(k.item), fe.dragging = !0, fe.emit("drag", $, H);
305
305
  }
306
306
  function pt() {
307
307
  return !1;
308
308
  }
309
309
  function Ze() {
310
310
  if (fe.dragging) {
311
- var E = I || V;
312
- st(E, p(E));
311
+ var k = O || $;
312
+ st(k, m(k));
313
313
  }
314
314
  }
315
315
  function $e() {
316
316
  le = !1, Ne(!0), it(!0);
317
317
  }
318
- function qe(E) {
318
+ function qe(k) {
319
319
  if ($e(), !!fe.dragging) {
320
- var _ = I || V, Q = O("clientX", E) || 0, re = O("clientY", E) || 0, ue = w($, Q, re), de = be(ue, Q, re);
321
- de && (I && K.copySortSource || !I || de !== H) ? st(_, de) : K.removeOnSpill ? ct() : A();
320
+ var _ = O || $, Q = E("clientX", k) || 0, re = E("clientY", k) || 0, ue = w(L, Q, re), de = be(ue, Q, re);
321
+ de && (O && K.copySortSource || !O || de !== H) ? st(_, de) : K.removeOnSpill ? ct() : A();
322
322
  }
323
323
  }
324
- function st(E, _) {
325
- var Q = p(E);
326
- I && K.copySortSource && _ === H && Q.removeChild(V), ye(_) ? fe.emit("cancel", E, H) : fe.emit("drop", E, _, H, M), ie();
324
+ function st(k, _) {
325
+ var Q = m(k);
326
+ O && K.copySortSource && _ === H && Q.removeChild($), ye(_) ? fe.emit("cancel", k, H) : fe.emit("drop", k, _, H, M), ie();
327
327
  }
328
328
  function ct() {
329
329
  if (fe.dragging) {
330
- var E = I || V, _ = p(E);
331
- _ && _.removeChild(E), fe.emit(I ? "cancel" : "remove", E, _, H), ie();
330
+ var k = O || $, _ = m(k);
331
+ _ && _.removeChild(k), fe.emit(O ? "cancel" : "remove", k, _, H), ie();
332
332
  }
333
333
  }
334
- function A(E) {
334
+ function A(k) {
335
335
  if (fe.dragging) {
336
- var _ = arguments.length > 0 ? E : K.revertOnSpill, Q = I || V, re = p(Q), ue = ye(re);
337
- ue === !1 && _ && (I ? re && re.removeChild(I) : H.insertBefore(Q, j)), ue || _ ? fe.emit("cancel", Q, H, H) : fe.emit("drop", Q, re, H, M), ie();
336
+ var _ = arguments.length > 0 ? k : K.revertOnSpill, Q = O || $, re = m(Q), ue = ye(re);
337
+ ue === !1 && _ && (O ? re && re.removeChild(O) : H.insertBefore(Q, j)), ue || _ ? fe.emit("cancel", Q, H, H) : fe.emit("drop", Q, re, H, M), ie();
338
338
  }
339
339
  }
340
340
  function ie() {
341
- var E = I || V;
342
- $e(), $t(), At(), E && m.rm(E, "gu-transit"), z && clearTimeout(z), fe.dragging = !1, oe && fe.emit("out", E, oe, H), fe.emit("dragend", E, ce), H = V = I = j = M = z = oe = null;
341
+ var k = O || $;
342
+ $e(), $t(), At(), k && p.rm(k, "gu-transit"), z && clearTimeout(z), fe.dragging = !1, oe && fe.emit("out", k, oe, H), fe.emit("dragend", k, ce), H = $ = O = j = M = z = oe = null;
343
343
  }
344
- function ye(E, _) {
344
+ function ye(k, _) {
345
345
  var Q;
346
- return _ !== void 0 ? Q = _ : $ ? Q = M : Q = T(I || V), E === H && Q === j;
346
+ return _ !== void 0 ? Q = _ : L ? Q = M : Q = F(O || $), k === H && Q === j;
347
347
  }
348
- function be(E, _, Q) {
349
- for (var re = E; re && !ue(); )
350
- re = p(re);
348
+ function be(k, _, Q) {
349
+ for (var re = k; re && !ue(); )
350
+ re = m(re);
351
351
  return re;
352
352
  function ue() {
353
353
  var de = Je(re);
354
354
  if (de === !1)
355
355
  return !1;
356
- var Oe = St(re, E), xe = Tt(re, Oe, _, Q), ke = ye(re, xe);
357
- return ke ? !0 : K.accepts(V, re, H, xe);
356
+ var Oe = St(re, k), xe = Tt(re, Oe, _, Q), ke = ye(re, xe);
357
+ return ke ? !0 : K.accepts($, re, H, xe);
358
358
  }
359
359
  }
360
- function Ae(E) {
361
- if (!$)
360
+ function Ae(k) {
361
+ if (!L)
362
362
  return;
363
- E.preventDefault();
364
- var _ = O("clientX", E) || 0, Q = O("clientY", E) || 0;
365
- $.style.left = _ - 2 + "px", $.style.top = Q - 2 + "px";
366
- var re = I || V, ue = w($, _, Q), de = be(ue, _, Q), Oe = de !== null && de !== oe;
363
+ k.preventDefault();
364
+ var _ = E("clientX", k) || 0, Q = E("clientY", k) || 0;
365
+ L.style.left = _ - 2 + "px", L.style.top = Q - 2 + "px";
366
+ var re = O || $, ue = w(L, _, Q), de = be(ue, _, Q), Oe = de !== null && de !== oe;
367
367
  (Oe || de === null) && (Ee(), oe = de, Le()), _t(ue, Q);
368
- var xe = p(re);
369
- if (de === H && I && !K.copySortSource) {
368
+ var xe = m(re);
369
+ if (de === H && O && !K.copySortSource) {
370
370
  xe && xe.removeChild(re);
371
371
  return;
372
372
  }
373
373
  var ke, je = St(de, ue);
374
374
  if (pe = mt(je, de), je !== null)
375
375
  ke = Tt(de, je, _, Q);
376
- else if (K.revertOnSpill === !0 && !I)
376
+ else if (K.revertOnSpill === !0 && !O)
377
377
  ke = j, de = H;
378
378
  else {
379
- I && xe && xe.removeChild(re), I && X && (X.style.display = "none");
379
+ O && xe && xe.removeChild(re), O && X && (X.style.display = "none");
380
380
  return;
381
381
  }
382
382
  X.style.display = "block", Nt(ke, re, Oe), ke ? zt(je, ke) : Ht(de);
@@ -390,43 +390,43 @@ var xo = { exports: {} };
390
390
  oe && Ce("out");
391
391
  }
392
392
  }
393
- function Nt(E, _, Q) {
394
- (E === _ || E === T(_)) && (M = T(_)), (E === null && Q || E !== _ && E !== T(_)) && (M = E);
393
+ function Nt(k, _, Q) {
394
+ (k === _ || k === F(_)) && (M = F(_)), (k === null && Q || k !== _ && k !== F(_)) && (M = k);
395
395
  }
396
- function Pt(E) {
397
- m.rm(E, "gu-hide");
396
+ function Pt(k) {
397
+ p.rm(k, "gu-hide");
398
398
  }
399
- function jt(E) {
400
- fe.dragging && m.add(E, "gu-hide");
399
+ function jt(k) {
400
+ fe.dragging && p.add(k, "gu-hide");
401
401
  }
402
402
  function Lt() {
403
- $ || ($ = document.createElement("div"), $.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;", $.innerHTML = K.getMirrorText && K.getMirrorText(V) || "控件", m.add($, "gu-mirror"), K.mirrorContainer.appendChild($), s(v, "add", "mousemove", Ae), m.add(K.mirrorContainer, "gu-unselectable"), fe.emit("cloned", $, V, "mirror"));
403
+ L || (L = document.createElement("div"), L.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;", L.innerHTML = K.getMirrorText && K.getMirrorText($) || "控件", p.add(L, "gu-mirror"), K.mirrorContainer.appendChild(L), s(v, "add", "mousemove", Ae), p.add(K.mirrorContainer, "gu-unselectable"), fe.emit("cloned", L, $, "mirror"));
404
404
  }
405
405
  function Vt() {
406
- if (X = document.createElement("div"), m.add(X, "gu-insertion"), V) {
407
- var E = V.getBoundingClientRect();
408
- X.style.left = E.left + "px", X.style.top = E.top + "px";
406
+ if (X = document.createElement("div"), p.add(X, "gu-insertion"), $) {
407
+ var k = $.getBoundingClientRect();
408
+ X.style.left = k.left + "px", X.style.top = k.top + "px";
409
409
  }
410
410
  pe = !1, K.mirrorContainer.appendChild(X);
411
411
  }
412
412
  function $t() {
413
- $ && (m.rm(K.mirrorContainer, "gu-unselectable"), s(v, "remove", "mousemove", Ae), p($).removeChild($), $ = null);
413
+ L && (p.rm(K.mirrorContainer, "gu-unselectable"), s(v, "remove", "mousemove", Ae), m(L).removeChild(L), L = null);
414
414
  }
415
415
  function At() {
416
- X && (p(X).removeChild(X), X = null);
416
+ X && (m(X).removeChild(X), X = null);
417
417
  }
418
- function St(E, _) {
419
- for (var Q = _; Q !== E && p(Q) !== E; )
420
- Q = p(Q);
418
+ function St(k, _) {
419
+ for (var Q = _; Q !== k && m(Q) !== k; )
420
+ Q = m(Q);
421
421
  return Q === v ? null : Q;
422
422
  }
423
- function mt(E, _) {
423
+ function mt(k, _) {
424
424
  if (!_)
425
425
  return pe;
426
- var Q = E || _ && _.lastElementChild;
426
+ var Q = k || _ && _.lastElementChild;
427
427
  if (!Q)
428
428
  return !0;
429
- var re = getComputedStyle(E), ue = /^inline/.test(re.getPropertyValue("display")) || /^(left|right)$/.test(re.getPropertyValue("float"));
429
+ var re = getComputedStyle(k), ue = /^inline/.test(re.getPropertyValue("display")) || /^(left|right)$/.test(re.getPropertyValue("float"));
430
430
  if (ue)
431
431
  return !0;
432
432
  if (_) {
@@ -440,10 +440,10 @@ var xo = { exports: {} };
440
440
  }
441
441
  return !0;
442
442
  }
443
- function Rt(E) {
444
- if (!E.children || !E.children.length)
443
+ function Rt(k) {
444
+ if (!k.children || !k.children.length)
445
445
  return !1;
446
- for (const _ of Array.from(E.children)) {
446
+ for (const _ of Array.from(k.children)) {
447
447
  const re = (_.className && _.className.split(" ") || []).filter((ue) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(ue));
448
448
  if (!re.length)
449
449
  return !1;
@@ -455,30 +455,30 @@ var xo = { exports: {} };
455
455
  }
456
456
  return !0;
457
457
  }
458
- function zt(E, _) {
458
+ function zt(k, _) {
459
459
  const Q = _.getBoundingClientRect();
460
460
  if (X.style.left = Q.left + "px", X.style.top = Q.top + "px", pe) {
461
- if (X.style.height = Q.height + "px", X.style.width = "4px", E) {
462
- const re = E.getBoundingClientRect();
461
+ if (X.style.height = Q.height + "px", X.style.width = "4px", k) {
462
+ const re = k.getBoundingClientRect();
463
463
  re.top !== Q.top && (X.style.left = re.right + "px", X.style.top = re.top + "px", X.style.height = re.height + "px");
464
464
  }
465
465
  } else if (X.style.height = "4px", X.style.width = Q.width + "px", se) {
466
466
  const re = se.getBoundingClientRect();
467
467
  Q.top < re.top && (X.style.display = "none");
468
468
  }
469
- _ === V && V && (X.style.display = "none");
469
+ _ === $ && $ && (X.style.display = "none");
470
470
  }
471
- function Ht(E) {
471
+ function Ht(k) {
472
472
  M = null;
473
- var _ = E.lastElementChild;
473
+ var _ = k.lastElementChild;
474
474
  if (_) {
475
475
  var Q = _.getBoundingClientRect();
476
- pe ? (X.style.left = Q.right + "px", X.style.top = Q.top + "px", X.style.height = Q.height + "px", X.style.width = "4px") : (X.style.left = Q.left + "px", X.style.top = Q.bottom + "px", X.style.height = "4px", X.style.width = Q.width + "px"), _ === V && V && (X.style.display = "none");
476
+ pe ? (X.style.left = Q.right + "px", X.style.top = Q.top + "px", X.style.height = Q.height + "px", X.style.width = "4px") : (X.style.left = Q.left + "px", X.style.top = Q.bottom + "px", X.style.height = "4px", X.style.width = Q.width + "px"), _ === $ && $ && (X.style.display = "none");
477
477
  } else
478
478
  X.style.display = "none";
479
479
  }
480
- function _t(E, _) {
481
- if (!K.mirrorContainer.contains(E) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (se = b(E), !se || !se.contains(E)))
480
+ function _t(k, _) {
481
+ if (!K.mirrorContainer.contains(k) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (se = b(k), !se || !se.contains(k)))
482
482
  return;
483
483
  const Q = document.querySelector(".dgComponentSelected"), re = se.getBoundingClientRect();
484
484
  if (_ - 30 < re.top && se.scrollTop > 0) {
@@ -491,13 +491,13 @@ var xo = { exports: {} };
491
491
  se.scrollBy(0, de), Q && se.contains(Q) && (ce = ce + de);
492
492
  }
493
493
  }
494
- function Tt(E, _, Q, re) {
495
- var ue = K.direction === "horizontal", de = K.direction === "mixed", Oe = _ !== E ? ke() : xe();
494
+ function Tt(k, _, Q, re) {
495
+ var ue = K.direction === "horizontal", de = K.direction === "mixed", Oe = _ !== k ? ke() : xe();
496
496
  return Oe;
497
497
  function xe() {
498
- var Ce = E.children.length, Le, Ee, Te;
498
+ var Ce = k.children.length, Le, Ee, Te;
499
499
  for (Le = 0; Le < Ce; Le++)
500
- if (Ee = E.children[Le], Te = Ee.getBoundingClientRect(), ue && Te.left + Te.width / 2 > Q || !de && !ue && Te.top + Te.height / 2 > re || de && Te.left + Te.width > Q && Te.top + Te.height > re)
500
+ if (Ee = k.children[Le], Te = Ee.getBoundingClientRect(), ue && Te.left + Te.width / 2 > Q || !de && !ue && Te.top + Te.height / 2 > re || de && Te.left + Te.width > Q && Te.top + Te.height > re)
501
501
  return Ee;
502
502
  return null;
503
503
  }
@@ -507,41 +507,41 @@ var xo = { exports: {} };
507
507
  var Le = re - Ce.top, Ee = Q - Ce.left, Te = Ce.bottom - re, vt = Ce.right - Q, gt = Math.min(Ee, vt, Le, Te), ht;
508
508
  return pe ? ht = vt < Ee : ht = Te === gt || vt === gt || Ee === gt, je(ht);
509
509
  }
510
- return je(ue ? Q > Ce.left + L(Ce) / 2 : re > Ce.top + y(Ce) / 2);
510
+ return je(ue ? Q > Ce.left + V(Ce) / 2 : re > Ce.top + y(Ce) / 2);
511
511
  }
512
512
  function je(Ce) {
513
- return Ce ? T(_) : _;
513
+ return Ce ? F(_) : _;
514
514
  }
515
515
  }
516
- function qt(E, _) {
517
- return typeof K.copy == "boolean" ? K.copy : K.copy(E, _);
516
+ function qt(k, _) {
517
+ return typeof K.copy == "boolean" ? K.copy : K.copy(k, _);
518
518
  }
519
519
  }
520
- function b(x) {
521
- const D = Array.from(window.scrollContainerList);
522
- if (D.length === 1) {
523
- const $ = Array.from(window.scrollContainerList)[0];
524
- return document.getElementById($);
520
+ function b(S) {
521
+ const B = Array.from(window.scrollContainerList);
522
+ if (B.length === 1) {
523
+ const L = Array.from(window.scrollContainerList)[0];
524
+ return document.getElementById(L);
525
525
  }
526
- const P = i(D);
527
- for (const $ of P)
528
- if ($.contains(x))
529
- return $;
526
+ const P = i(B);
527
+ for (const L of P)
528
+ if (L.contains(S))
529
+ return L;
530
530
  return null;
531
531
  }
532
- function i(x) {
533
- const D = [];
534
- return x.forEach((P) => {
535
- const $ = document.getElementById(P);
536
- $ && D.push($);
537
- }), D.sort((P, $) => P.contains($) ? 1 : $.contains(P) ? -1 : 0), D;
532
+ function i(S) {
533
+ const B = [];
534
+ return S.forEach((P) => {
535
+ const L = document.getElementById(P);
536
+ L && B.push(L);
537
+ }), B.sort((P, L) => P.contains(L) ? 1 : L.contains(P) ? -1 : 0), B;
538
538
  }
539
- function s(x, D, P, $) {
539
+ function s(S, B, P, L) {
540
540
  var H = {
541
541
  mouseup: "touchend",
542
542
  mousedown: "touchstart",
543
543
  mousemove: "touchmove"
544
- }, V = {
544
+ }, $ = {
545
545
  mouseup: "pointerup",
546
546
  mousedown: "pointerdown",
547
547
  mousemove: "pointermove"
@@ -550,66 +550,66 @@ var xo = { exports: {} };
550
550
  mousedown: "MSPointerDown",
551
551
  mousemove: "MSPointerMove"
552
552
  };
553
- l.navigator.pointerEnabled ? f[D](x, V[P], $) : l.navigator.msPointerEnabled ? f[D](x, J[P], $) : (f[D](x, H[P], $), f[D](x, P, $));
553
+ l.navigator.pointerEnabled ? f[B](S, $[P], L) : l.navigator.msPointerEnabled ? f[B](S, J[P], L) : (f[B](S, H[P], L), f[B](S, P, L));
554
554
  }
555
- function d(x) {
556
- if (x.touches !== void 0)
557
- return x.touches.length;
558
- if (x.which !== void 0 && x.which !== 0)
559
- return x.which;
560
- if (x.buttons !== void 0)
561
- return x.buttons;
562
- var D = x.button;
563
- if (D !== void 0)
564
- return D & 1 ? 1 : D & 2 ? 3 : D & 4 ? 2 : 0;
555
+ function d(S) {
556
+ if (S.touches !== void 0)
557
+ return S.touches.length;
558
+ if (S.which !== void 0 && S.which !== 0)
559
+ return S.which;
560
+ if (S.buttons !== void 0)
561
+ return S.buttons;
562
+ var B = S.button;
563
+ if (B !== void 0)
564
+ return B & 1 ? 1 : B & 2 ? 3 : B & 4 ? 2 : 0;
565
565
  }
566
- function w(x, D, P) {
567
- x = x || {};
568
- var $ = x.className || "", H;
569
- return x.className += " gu-hide", H = u.elementFromPoint(D, P), x.className = $, H;
566
+ function w(S, B, P) {
567
+ S = S || {};
568
+ var L = S.className || "", H;
569
+ return S.className += " gu-hide", H = u.elementFromPoint(B, P), S.className = L, H;
570
570
  }
571
- function S() {
571
+ function T() {
572
572
  return !1;
573
573
  }
574
- function k() {
574
+ function D() {
575
575
  return !0;
576
576
  }
577
- function L(x) {
578
- return x.width || x.right - x.left;
577
+ function V(S) {
578
+ return S.width || S.right - S.left;
579
579
  }
580
- function y(x) {
581
- return x.height || x.bottom - x.top;
580
+ function y(S) {
581
+ return S.height || S.bottom - S.top;
582
582
  }
583
- function p(x) {
584
- return x.parentNode === u ? null : x.parentNode;
583
+ function m(S) {
584
+ return S.parentNode === u ? null : S.parentNode;
585
585
  }
586
- function g(x) {
587
- return x.tagName === "INPUT" || x.tagName === "TEXTAREA" || x.tagName === "SELECT" || B(x);
586
+ function g(S) {
587
+ return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || x(S);
588
588
  }
589
- function B(x) {
590
- return !x || x.contentEditable === "false" ? !1 : x.contentEditable === "true" ? !0 : B(p(x));
589
+ function x(S) {
590
+ return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : x(m(S));
591
591
  }
592
- function T(x) {
593
- return x.nextElementSibling || D();
594
- function D() {
595
- var P = x;
592
+ function F(S) {
593
+ return S.nextElementSibling || B();
594
+ function B() {
595
+ var P = S;
596
596
  do
597
597
  P = P.nextSibling;
598
598
  while (P && P.nodeType !== 1);
599
599
  return P;
600
600
  }
601
601
  }
602
- function F(x) {
603
- return x.targetTouches && x.targetTouches.length ? x.targetTouches[0] : x.changedTouches && x.changedTouches.length ? x.changedTouches[0] : x;
602
+ function I(S) {
603
+ return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
604
604
  }
605
- function O(x, D) {
606
- var P = F(D), $ = {
605
+ function E(S, B) {
606
+ var P = I(B), L = {
607
607
  pageX: "clientX",
608
608
  // IE8
609
609
  pageY: "clientY"
610
610
  // IE8
611
611
  };
612
- return x in $ && !(x in P) && $[x] in P && (x = $[x]), P[x];
612
+ return S in L && !(S in P) && L[S] in P && (S = L[S]), P[S];
613
613
  }
614
614
  o.exports = c;
615
615
  }).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -621,21 +621,21 @@ var xo = { exports: {} };
621
621
  }, {}],
622
622
  4: [function(n, o, r) {
623
623
  var l = n("ticky");
624
- o.exports = function(f, m, u) {
624
+ o.exports = function(f, p, u) {
625
625
  f && l(function() {
626
- f.apply(u || null, m || []);
626
+ f.apply(u || null, p || []);
627
627
  });
628
628
  };
629
629
  }, { ticky: 10 }],
630
630
  5: [function(n, o, r) {
631
631
  var l = n("atoa"), a = n("./debounce");
632
- o.exports = function(m, u) {
632
+ o.exports = function(p, u) {
633
633
  var v = u || {}, c = {};
634
- return m === void 0 && (m = {}), m.on = function(b, i) {
635
- return c[b] ? c[b].push(i) : c[b] = [i], m;
636
- }, m.once = function(b, i) {
637
- return i._once = !0, m.on(b, i), m;
638
- }, m.off = function(b, i) {
634
+ return p === void 0 && (p = {}), p.on = function(b, i) {
635
+ return c[b] ? c[b].push(i) : c[b] = [i], p;
636
+ }, p.once = function(b, i) {
637
+ return i._once = !0, p.on(b, i), p;
638
+ }, p.off = function(b, i) {
639
639
  var s = arguments.length;
640
640
  if (s === 1)
641
641
  delete c[b];
@@ -644,98 +644,98 @@ var xo = { exports: {} };
644
644
  else {
645
645
  var d = c[b];
646
646
  if (!d)
647
- return m;
647
+ return p;
648
648
  d.splice(d.indexOf(i), 1);
649
649
  }
650
- return m;
651
- }, m.emit = function() {
650
+ return p;
651
+ }, p.emit = function() {
652
652
  var b = l(arguments);
653
- return m.emitterSnapshot(b.shift()).apply(this, b);
654
- }, m.emitterSnapshot = function(b) {
653
+ return p.emitterSnapshot(b.shift()).apply(this, b);
654
+ }, p.emitterSnapshot = function(b) {
655
655
  var i = (c[b] || []).slice(0);
656
656
  return function() {
657
- var s = l(arguments), d = this || m;
657
+ var s = l(arguments), d = this || p;
658
658
  if (b === "error" && v.throws !== !1 && !i.length)
659
659
  throw s.length === 1 ? s[0] : s;
660
- return i.forEach(function(S) {
661
- v.async ? a(S, s, d) : S.apply(d, s), S._once && m.off(b, S);
662
- }), m;
660
+ return i.forEach(function(T) {
661
+ v.async ? a(T, s, d) : T.apply(d, s), T._once && p.off(b, T);
662
+ }), p;
663
663
  };
664
- }, m;
664
+ }, p;
665
665
  };
666
666
  }, { "./debounce": 4, atoa: 3 }],
667
667
  6: [function(n, o, r) {
668
668
  (function(l) {
669
- var a = n("custom-event"), f = n("./eventmap"), m = l.document, u = b, v = s, c = [];
669
+ var a = n("custom-event"), f = n("./eventmap"), p = l.document, u = b, v = s, c = [];
670
670
  l.addEventListener || (u = i, v = d), o.exports = {
671
671
  add: u,
672
672
  remove: v,
673
673
  fabricate: w
674
674
  };
675
- function b(p, g, B, T) {
676
- return p.addEventListener(g, B, T);
675
+ function b(m, g, x, F) {
676
+ return m.addEventListener(g, x, F);
677
677
  }
678
- function i(p, g, B) {
679
- return p.attachEvent("on" + g, k(p, g, B));
678
+ function i(m, g, x) {
679
+ return m.attachEvent("on" + g, D(m, g, x));
680
680
  }
681
- function s(p, g, B, T) {
682
- return p.removeEventListener(g, B, T);
681
+ function s(m, g, x, F) {
682
+ return m.removeEventListener(g, x, F);
683
683
  }
684
- function d(p, g, B) {
685
- var T = L(p, g, B);
686
- if (T)
687
- return p.detachEvent("on" + g, T);
684
+ function d(m, g, x) {
685
+ var F = V(m, g, x);
686
+ if (F)
687
+ return m.detachEvent("on" + g, F);
688
688
  }
689
- function w(p, g, B) {
690
- var T = f.indexOf(g) === -1 ? O() : F();
691
- p.dispatchEvent ? p.dispatchEvent(T) : p.fireEvent("on" + g, T);
692
- function F() {
693
- var x;
694
- return m.createEvent ? (x = m.createEvent("Event"), x.initEvent(g, !0, !0)) : m.createEventObject && (x = m.createEventObject()), x;
689
+ function w(m, g, x) {
690
+ var F = f.indexOf(g) === -1 ? E() : I();
691
+ m.dispatchEvent ? m.dispatchEvent(F) : m.fireEvent("on" + g, F);
692
+ function I() {
693
+ var S;
694
+ return p.createEvent ? (S = p.createEvent("Event"), S.initEvent(g, !0, !0)) : p.createEventObject && (S = p.createEventObject()), S;
695
695
  }
696
- function O() {
697
- return new a(g, { detail: B });
696
+ function E() {
697
+ return new a(g, { detail: x });
698
698
  }
699
699
  }
700
- function S(p, g, B) {
701
- return function(F) {
702
- var O = F || l.event;
703
- O.target = O.target || O.srcElement, O.preventDefault = O.preventDefault || function() {
704
- O.returnValue = !1;
705
- }, O.stopPropagation = O.stopPropagation || function() {
706
- O.cancelBubble = !0;
707
- }, O.which = O.which || O.keyCode, B.call(p, O);
700
+ function T(m, g, x) {
701
+ return function(I) {
702
+ var E = I || l.event;
703
+ E.target = E.target || E.srcElement, E.preventDefault = E.preventDefault || function() {
704
+ E.returnValue = !1;
705
+ }, E.stopPropagation = E.stopPropagation || function() {
706
+ E.cancelBubble = !0;
707
+ }, E.which = E.which || E.keyCode, x.call(m, E);
708
708
  };
709
709
  }
710
- function k(p, g, B) {
711
- var T = L(p, g, B) || S(p, g, B);
710
+ function D(m, g, x) {
711
+ var F = V(m, g, x) || T(m, g, x);
712
712
  return c.push({
713
- wrapper: T,
714
- element: p,
713
+ wrapper: F,
714
+ element: m,
715
715
  type: g,
716
- fn: B
717
- }), T;
716
+ fn: x
717
+ }), F;
718
718
  }
719
- function L(p, g, B) {
720
- var T = y(p, g, B);
721
- if (T) {
722
- var F = c[T].wrapper;
723
- return c.splice(T, 1), F;
719
+ function V(m, g, x) {
720
+ var F = y(m, g, x);
721
+ if (F) {
722
+ var I = c[F].wrapper;
723
+ return c.splice(F, 1), I;
724
724
  }
725
725
  }
726
- function y(p, g, B) {
727
- var T, F;
728
- for (T = 0; T < c.length; T++)
729
- if (F = c[T], F.element === p && F.type === g && F.fn === B)
730
- return T;
726
+ function y(m, g, x) {
727
+ var F, I;
728
+ for (F = 0; F < c.length; F++)
729
+ if (I = c[F], I.element === m && I.type === g && I.fn === x)
730
+ return F;
731
731
  }
732
732
  }).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
733
733
  }, { "./eventmap": 7, "custom-event": 8 }],
734
734
  7: [function(n, o, r) {
735
735
  (function(l) {
736
- var a = [], f = "", m = /^on/;
736
+ var a = [], f = "", p = /^on/;
737
737
  for (f in l)
738
- m.test(f) && a.push(f.slice(2));
738
+ p.test(f) && a.push(f.slice(2));
739
739
  o.exports = a;
740
740
  }).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
741
741
  }, {}],
@@ -744,8 +744,8 @@ var xo = { exports: {} };
744
744
  var a = l.CustomEvent;
745
745
  function f() {
746
746
  try {
747
- var m = new a("cat", { detail: { foo: "bar" } });
748
- return m.type === "cat" && m.detail.foo === "bar";
747
+ var p = new a("cat", { detail: { foo: "bar" } });
748
+ return p.type === "cat" && p.detail.foo === "bar";
749
749
  } catch {
750
750
  }
751
751
  return !1;
@@ -767,7 +767,7 @@ var xo = { exports: {} };
767
767
  }, {}],
768
768
  9: [function(n, o, r) {
769
769
  var l = o.exports = {}, a, f;
770
- function m() {
770
+ function p() {
771
771
  throw new Error("setTimeout has not been defined");
772
772
  }
773
773
  function u() {
@@ -775,9 +775,9 @@ var xo = { exports: {} };
775
775
  }
776
776
  (function() {
777
777
  try {
778
- typeof setTimeout == "function" ? a = setTimeout : a = m;
778
+ typeof setTimeout == "function" ? a = setTimeout : a = p;
779
779
  } catch {
780
- a = m;
780
+ a = p;
781
781
  }
782
782
  try {
783
783
  typeof clearTimeout == "function" ? f = clearTimeout : f = u;
@@ -788,7 +788,7 @@ var xo = { exports: {} };
788
788
  function v(y) {
789
789
  if (a === setTimeout)
790
790
  return setTimeout(y, 0);
791
- if ((a === m || !a) && setTimeout)
791
+ if ((a === p || !a) && setTimeout)
792
792
  return a = setTimeout, setTimeout(y, 0);
793
793
  try {
794
794
  return a(y, 0);
@@ -817,36 +817,36 @@ var xo = { exports: {} };
817
817
  }
818
818
  var b = [], i = !1, s, d = -1;
819
819
  function w() {
820
- !i || !s || (i = !1, s.length ? b = s.concat(b) : d = -1, b.length && S());
820
+ !i || !s || (i = !1, s.length ? b = s.concat(b) : d = -1, b.length && T());
821
821
  }
822
- function S() {
822
+ function T() {
823
823
  if (!i) {
824
824
  var y = v(w);
825
825
  i = !0;
826
- for (var p = b.length; p; ) {
827
- for (s = b, b = []; ++d < p; )
826
+ for (var m = b.length; m; ) {
827
+ for (s = b, b = []; ++d < m; )
828
828
  s && s[d].run();
829
- d = -1, p = b.length;
829
+ d = -1, m = b.length;
830
830
  }
831
831
  s = null, i = !1, c(y);
832
832
  }
833
833
  }
834
834
  l.nextTick = function(y) {
835
- var p = new Array(arguments.length - 1);
835
+ var m = new Array(arguments.length - 1);
836
836
  if (arguments.length > 1)
837
837
  for (var g = 1; g < arguments.length; g++)
838
- p[g - 1] = arguments[g];
839
- b.push(new k(y, p)), b.length === 1 && !i && v(S);
838
+ m[g - 1] = arguments[g];
839
+ b.push(new D(y, m)), b.length === 1 && !i && v(T);
840
840
  };
841
- function k(y, p) {
842
- this.fun = y, this.array = p;
841
+ function D(y, m) {
842
+ this.fun = y, this.array = m;
843
843
  }
844
- k.prototype.run = function() {
844
+ D.prototype.run = function() {
845
845
  this.fun.apply(null, this.array);
846
846
  }, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
847
- function L() {
847
+ function V() {
848
848
  }
849
- l.on = L, l.addListener = L, l.once = L, l.off = L, l.removeListener = L, l.removeAllListeners = L, l.emit = L, l.prependListener = L, l.prependOnceListener = L, l.listeners = function(y) {
849
+ l.on = V, l.addListener = V, l.once = V, l.off = V, l.removeListener = V, l.removeAllListeners = V, l.emit = V, l.prependListener = V, l.prependOnceListener = V, l.listeners = function(y) {
850
850
  return [];
851
851
  }, l.binding = function(y) {
852
852
  throw new Error("process.binding is not supported");
@@ -861,20 +861,20 @@ var xo = { exports: {} };
861
861
  10: [function(n, o, r) {
862
862
  (function(l) {
863
863
  var a = typeof l == "function", f;
864
- a ? f = function(m) {
865
- l(m);
866
- } : f = function(m) {
867
- setTimeout(m, 0);
864
+ a ? f = function(p) {
865
+ l(p);
866
+ } : f = function(p) {
867
+ setTimeout(p, 0);
868
868
  }, o.exports = f;
869
869
  }).call(this, n("timers").setImmediate);
870
870
  }, { timers: 11 }],
871
871
  11: [function(n, o, r) {
872
872
  (function(l, a) {
873
- var f = n("process/browser.js").nextTick, m = Function.prototype.apply, u = Array.prototype.slice, v = {}, c = 0;
873
+ var f = n("process/browser.js").nextTick, p = Function.prototype.apply, u = Array.prototype.slice, v = {}, c = 0;
874
874
  r.setTimeout = function() {
875
- return new b(m.call(setTimeout, window, arguments), clearTimeout);
875
+ return new b(p.call(setTimeout, window, arguments), clearTimeout);
876
876
  }, r.setInterval = function() {
877
- return new b(m.call(setInterval, window, arguments), clearInterval);
877
+ return new b(p.call(setInterval, window, arguments), clearInterval);
878
878
  }, r.clearTimeout = r.clearInterval = function(i) {
879
879
  i.close();
880
880
  };
@@ -933,18 +933,18 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
933
933
  const {
934
934
  locale: n,
935
935
  t: o
936
- } = Qt(), r = h(e.animate), l = "fadeOut", a = G(() => e.options), f = h(!1), m = G(() => a.value.title && a.value.message), u = G(() => !a.value.title && a.value.message), v = G(() => {
936
+ } = Qt(), r = h(e.animate), l = "fadeOut", a = G(() => e.options), f = h(!1), p = G(() => a.value.title && a.value.message), u = G(() => !a.value.title && a.value.message), v = G(() => {
937
937
  const y = {
938
938
  animated: f.value,
939
939
  toast: !0,
940
- "toast--only-content": !m.value
940
+ "toast--only-content": !p.value
941
941
  };
942
942
  return y[e.animate] = !1, y[l] = f.value, y["toasty-type-" + a.value.type] = !0, a.value.theme && (y[a.value.theme] = !0), y;
943
943
  }), c = G(() => {
944
- const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, B = {
944
+ const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, x = {
945
945
  "f-icon": !0
946
946
  };
947
- return B[g] = !0, B;
947
+ return x[g] = !0, x;
948
948
  }), b = G(() => a.value.title || a.value.message), i = G(() => e.showCloseButton), s = G(() => !!a.value.buttons || !!t.slots.default), d = G(() => n.value === "en" ? {
949
949
  wordBreak: "keep-all",
950
950
  overflowWrap: "break-word"
@@ -954,22 +954,22 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
954
954
  t.emit("close", a.value);
955
955
  }, 200);
956
956
  }
957
- function S(y, p) {
957
+ function T(y, m) {
958
958
  }
959
- function k(y) {
959
+ function D(y) {
960
960
  return `f-preten-link ${y.customClass ? y.customClass : ""}`;
961
961
  }
962
962
  ve(r, () => {
963
963
  r.value;
964
964
  });
965
- const L = () => {
965
+ const V = () => {
966
966
  var y;
967
967
  return C(at, null, [C("div", {
968
968
  class: "after-toast-msg text-right"
969
- }, [!t.slots.default && ((y = a.value.buttons) == null ? void 0 : y.map((p) => C("span", {
970
- class: k(p),
969
+ }, [!t.slots.default && ((y = a.value.buttons) == null ? void 0 : y.map((m) => C("span", {
970
+ class: D(m),
971
971
  onClick: (g) => void 0
972
- }, [p.text]))), t.slots.default && t.slots.default()])]);
972
+ }, [m.text]))), t.slots.default && t.slots.default()])]);
973
973
  };
974
974
  return () => C("div", {
975
975
  class: v.value,
@@ -982,20 +982,20 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
982
982
  class: "f-icon modal_close"
983
983
  }, null)]), b.value && C("section", {
984
984
  class: "modal-tips"
985
- }, [!m.value && C("div", {
985
+ }, [!p.value && C("div", {
986
986
  class: "float-left modal-tips-iconwrap"
987
987
  }, [C("span", {
988
988
  class: c.value
989
989
  }, null)]), C("div", {
990
990
  class: "modal-tips-content"
991
- }, [m.value && C(at, null, [C("h5", {
991
+ }, [p.value && C(at, null, [C("h5", {
992
992
  class: "toast-title modal-tips-title",
993
993
  innerHTML: a.value.title
994
994
  }, null), C("p", {
995
995
  class: "toast-msg",
996
996
  innerHTML: a.value.message,
997
997
  style: d.value
998
- }, null), s.value && L()]), u.value && (a.value.buttons ? C("div", {
998
+ }, null), s.value && V()]), u.value && (a.value.buttons ? C("div", {
999
999
  class: "toast-title-btns-wrapper d-flex"
1000
1000
  }, [C("h5", {
1001
1001
  class: "toast-title modal-tips-title only-toast-msg",
@@ -1003,7 +1003,7 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
1003
1003
  innerHTML: a.value.message
1004
1004
  }, null), C("div", {
1005
1005
  class: "after-toast-title text-right ml-auto"
1006
- }, [L()])]) : C("h5", {
1006
+ }, [V()])]) : C("h5", {
1007
1007
  class: "toast-title modal-tips-title only-toast-msg",
1008
1008
  style: d.value,
1009
1009
  innerHTML: a.value.message
@@ -1021,7 +1021,7 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
1021
1021
  right: 12,
1022
1022
  top: 20,
1023
1023
  bottom: 12
1024
- }, r = h(), l = h(e.options), a = h(e.showCloseButton), f = G(() => e.position || "bottom-right"), m = G(() => e.timeout != null ? e.timeout : 3e3), u = G(() => {
1024
+ }, r = h(), l = h(e.options), a = h(e.showCloseButton), f = G(() => e.position || "bottom-right"), p = G(() => e.timeout != null ? e.timeout : 3e3), u = G(() => {
1025
1025
  const b = e.bottom ? e.bottom : o.bottom, i = e.top ? e.top : o.top, s = {
1026
1026
  transition: "all 0.2s ease",
1027
1027
  left: f.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
@@ -1034,9 +1034,9 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
1034
1034
  function v(b) {
1035
1035
  t.emit("close");
1036
1036
  }
1037
- m.value && setTimeout(() => {
1037
+ p.value && setTimeout(() => {
1038
1038
  v();
1039
- }, m.value), t.expose({
1039
+ }, p.value), t.expose({
1040
1040
  closeToast: v,
1041
1041
  container: r,
1042
1042
  notifyPosition: f
@@ -1081,7 +1081,7 @@ class Kt {
1081
1081
  setup() {
1082
1082
  var u;
1083
1083
  const f = h();
1084
- function m() {
1084
+ function p() {
1085
1085
  f.value.container.style.transform = "scale(0)", setTimeout(() => {
1086
1086
  n.updateNotifyPositionForClose(r, f), a.unmount();
1087
1087
  }, 220);
@@ -1105,7 +1105,7 @@ class Kt {
1105
1105
  default: () => [C(Bt, ot({
1106
1106
  ref: f
1107
1107
  }, r, {
1108
- onClose: m
1108
+ onClose: p
1109
1109
  }), null)]
1110
1110
  });
1111
1111
  }
@@ -1340,41 +1340,41 @@ const Ia = {
1340
1340
  }
1341
1341
  }
1342
1342
  };
1343
- function Oa(e, t, n, o, r, l, a, f, m, u, v, c, b, i, s, d, w) {
1343
+ function Oa(e, t, n, o, r, l, a, f, p, u, v, c, b, i, s, d, w) {
1344
1344
  const {
1345
- calculateCellPositionInRow: S
1345
+ calculateCellPositionInRow: T
1346
1346
  } = l, {
1347
- columnContext: k,
1348
- hasLeftFixedColumn: L,
1347
+ columnContext: D,
1348
+ hasLeftFixedColumn: V,
1349
1349
  hasRightFixedColumn: y
1350
1350
  } = a, {
1351
- gridDataStyle: p,
1351
+ gridDataStyle: m,
1352
1352
  leftFixedGridDataStyle: g,
1353
- rightFixedGridDataStyle: B
1353
+ rightFixedGridDataStyle: x
1354
1354
  } = i, {
1355
- renderDataRow: T
1356
- } = mr(e, t, k, w, f, m, u, v, c, b, i, s, d), F = [T];
1357
- function O(H, V) {
1358
- const J = S(H);
1359
- return w.value.filter((N) => N.visible !== !1).map((N, j) => F[N.type](N, J, V, j));
1355
+ renderDataRow: F
1356
+ } = mr(e, t, D, w, f, p, u, v, c, b, i, s, d), I = [F];
1357
+ function E(H, $) {
1358
+ const J = T(H);
1359
+ return w.value.filter((N) => N.visible !== !1).map((N, j) => I[N.type](N, J, $, j));
1360
1360
  }
1361
- function x() {
1361
+ function S() {
1362
1362
  return C("div", {
1363
1363
  ref: o,
1364
1364
  class: "fv-grid-content-left-fixed"
1365
1365
  }, [C("div", {
1366
1366
  class: "fv-grid-data",
1367
1367
  style: g.value
1368
- }, [O(k.value.leftColumns.filter((H) => H.visible), "left")])]);
1368
+ }, [E(D.value.leftColumns.filter((H) => H.visible), "left")])]);
1369
1369
  }
1370
- function D() {
1370
+ function B() {
1371
1371
  return C("div", {
1372
1372
  ref: n,
1373
1373
  class: "fv-grid-content-primary"
1374
1374
  }, [C("div", {
1375
1375
  class: "fv-grid-data",
1376
- style: p.value
1377
- }, [O(k.value.primaryColumns.filter((H) => H.visible), "primary")])]);
1376
+ style: m.value
1377
+ }, [E(D.value.primaryColumns.filter((H) => H.visible), "primary")])]);
1378
1378
  }
1379
1379
  function P() {
1380
1380
  return C("div", {
@@ -1382,15 +1382,15 @@ function Oa(e, t, n, o, r, l, a, f, m, u, v, c, b, i, s, d, w) {
1382
1382
  class: "fv-grid-content-right-fixed"
1383
1383
  }, [C("div", {
1384
1384
  class: "fv-grid-data",
1385
- style: B.value
1386
- }, [O(k.value.rightColumns.filter((H) => H.visible), "right")])]);
1385
+ style: x.value
1386
+ }, [E(D.value.rightColumns.filter((H) => H.visible), "right")])]);
1387
1387
  }
1388
- function $() {
1388
+ function L() {
1389
1389
  const H = [];
1390
- return L.value && H.push(x()), H.push(D()), y.value && H.push(P()), H;
1390
+ return V.value && H.push(S()), H.push(B()), y.value && H.push(P()), H;
1391
1391
  }
1392
1392
  return {
1393
- renderDataArea: $
1393
+ renderDataArea: L
1394
1394
  };
1395
1395
  }
1396
1396
  const Yt = /* @__PURE__ */ De({
@@ -1401,20 +1401,20 @@ const Yt = /* @__PURE__ */ De({
1401
1401
  var nn, on;
1402
1402
  const o = ((nn = e.rowOption) == null ? void 0 : nn.height) || 28, r = h(20), l = h(e.columns), a = vr(e), {
1403
1403
  idField: f
1404
- } = a, m = h(), u = h(), v = h(), c = h(), b = h(), i = h([]), s = h(!1), d = h(((on = e.rowOption) == null ? void 0 : on.wrapContent) || !1), w = gr(e, a), S = hr(e, t), k = yr(e), {
1405
- collapseField: L
1406
- } = k, {
1404
+ } = a, p = h(), u = h(), v = h(), c = h(), b = h(), i = h([]), s = h(!1), d = h(((on = e.rowOption) == null ? void 0 : on.wrapContent) || !1), w = gr(e, a), T = hr(e, t), D = yr(e), {
1405
+ collapseField: V
1406
+ } = D, {
1407
1407
  showLoading: y,
1408
- renderLoading: p
1409
- } = br(e, m), g = Cr(e, /* @__PURE__ */ new Map(), S, k, a), {
1410
- dataView: B
1411
- } = g, T = wr(e, g, a, i, t), {
1412
- showSelection: F,
1413
- selectedValues: O
1414
- } = T, x = Sr(e, i, g, a, T, t), D = G(() => e.disabled), P = G(() => e.virtualized ? Math.min(g.dataView.value.length, r.value) : g.dataView.value.length), $ = Tr(e, g), {
1408
+ renderLoading: m
1409
+ } = br(e, p), g = Cr(e, /* @__PURE__ */ new Map(), T, D, a), {
1410
+ dataView: x
1411
+ } = g, F = wr(e, g, a, i, t), {
1412
+ showSelection: I,
1413
+ selectedValues: E
1414
+ } = F, S = Sr(e, i, g, a, F, t), B = G(() => e.disabled), P = G(() => e.virtualized ? Math.min(g.dataView.value.length, r.value) : g.dataView.value.length), L = Tr(e, g), {
1415
1415
  shouldRenderPagination: H
1416
- } = $, {
1417
- containerStyleObject: V
1416
+ } = L, {
1417
+ containerStyleObject: $
1418
1418
  } = Fr(e), J = xr(e), {
1419
1419
  applyCommands: N
1420
1420
  } = J;
@@ -1424,15 +1424,15 @@ const Yt = /* @__PURE__ */ De({
1424
1424
  removeColumnSetting: M
1425
1425
  } = Br(e);
1426
1426
  e.showSetting && j(l);
1427
- const I = Dr(e, t), z = kr(e), {
1427
+ const O = Dr(e, t), z = kr(e), {
1428
1428
  applyColumnSorter: oe,
1429
1429
  columnContext: le,
1430
1430
  updateColumnRenderContext: X
1431
- } = I;
1431
+ } = O;
1432
1432
  oe(g, z);
1433
- const pe = Er(e, le), ce = Mr(e, t, T, a), se = Ir(e, t, a, ce, i), K = Or(e), fe = Nr(e, se, K), Je = Pr(e, g, se, k, a, K, fe), Re = jr(e, l, g, P, 0, Je), {
1433
+ const pe = Er(e, le), ce = Mr(e, t, F, a), se = Ir(e, t, a, ce, i), K = Or(e), fe = Nr(e, se, K), Je = Pr(e, g, se, D, a, K, fe), Re = jr(e, l, g, P, 0, Je), {
1434
1434
  getVisualData: Ne
1435
- } = Re, it = Lr(e, le), Qe = Vr(e, T), {
1435
+ } = Re, it = Lr(e, le), Qe = Vr(e, F), {
1436
1436
  sidebarWidth: lt
1437
1437
  } = Qe, he = $r(e, g, i, le, Re, P, 0, lt), {
1438
1438
  onWheel: ft,
@@ -1443,7 +1443,7 @@ const Yt = /* @__PURE__ */ De({
1443
1443
  updateVisibleRowsOnLatestVisibleScope: pt
1444
1444
  } = he, Ze = Ar(e, le, u, Pe, pe), {
1445
1445
  calculateColumnsSize: $e
1446
- } = Ze, qe = Rr(), st = zr(u, b, g, qe, he), ct = Hr(e, t, I, g, pe, w, he), A = G(() => {
1446
+ } = Ze, qe = Rr(), st = zr(u, b, g, qe, he), ct = Hr(e, t, O, g, pe, w, he), A = G(() => {
1447
1447
  const Z = {
1448
1448
  "fv-grid": !0,
1449
1449
  "fv-grid-bordered": e.showBorder,
@@ -1457,13 +1457,13 @@ const Yt = /* @__PURE__ */ De({
1457
1457
  "fv-grid-wrap-content": d.value
1458
1458
  })), {
1459
1459
  renderDataArea: ye
1460
- } = Oa(e, t, v, c, b, it, I, g, se, k, ce, T, x, he, Re, K, i), {
1460
+ } = Oa(e, t, v, c, b, it, O, g, se, D, ce, F, S, he, Re, K, i), {
1461
1461
  renderGridHeader: be,
1462
1462
  renderGridColumnResizeOverlay: Ae,
1463
1463
  shouldShowHeader: Nt
1464
- } = _r(e, t, u, c, b, I, g, ct, st, S, qe, Ze, pe, T, Qe, z, he, Pe, i), {
1464
+ } = _r(e, t, u, c, b, O, g, ct, st, T, qe, Ze, pe, F, Qe, z, he, Pe, i), {
1465
1465
  renderDataGridSidebar: Pt
1466
- } = qr(e, ce, T, Qe, he), {
1466
+ } = qr(e, ce, F, Qe, he), {
1467
1467
  renderDisableMask: jt
1468
1468
  } = Ur(), {
1469
1469
  renderHorizontalScrollbar: Lt
@@ -1480,7 +1480,7 @@ const Yt = /* @__PURE__ */ De({
1480
1480
  Xe(() => {
1481
1481
  u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), i.value = Ne(0, P.value + 0 - 1), pr(u.value, $t), $e(), Jt(() => {
1482
1482
  u.value && (ze.value = u.value.clientWidth), v.value && (Pe.value = v.value.clientWidth, He.value = v.value.clientHeight);
1483
- })), y.value && p();
1483
+ })), y.value && m();
1484
1484
  }), wt(() => {
1485
1485
  }), ve(Pe, () => {
1486
1486
  u.value && $e();
@@ -1492,7 +1492,7 @@ const Yt = /* @__PURE__ */ De({
1492
1492
  g.expandTo(Z), g.reOrderVisibleIndex(), _e();
1493
1493
  }
1494
1494
  function mt() {
1495
- const Z = T.getSelectionRow();
1495
+ const Z = F.getSelectionRow();
1496
1496
  return Z ? Z.dataIndex - 1 : -1;
1497
1497
  }
1498
1498
  function Rt() {
@@ -1508,8 +1508,8 @@ const Yt = /* @__PURE__ */ De({
1508
1508
  g.insertNewChildDataItems(Z, Fe);
1509
1509
  }
1510
1510
  function _t() {
1511
- const Z = mt(), ae = x.getNextSelectableHierarchyItemId(Z);
1512
- g.removeHierarchyDataItem(Z), i.value = Ne(0, P.value + 0 - 1), ae && T.selectItemById(ae);
1511
+ const Z = mt(), ae = S.getNextSelectableHierarchyItemId(Z);
1512
+ g.removeHierarchyDataItem(Z), i.value = Ne(0, P.value + 0 - 1), ae && F.selectItemById(ae);
1513
1513
  }
1514
1514
  function Tt(Z) {
1515
1515
  se.onEditingRow(Z);
@@ -1517,7 +1517,7 @@ const Yt = /* @__PURE__ */ De({
1517
1517
  function qt(Z) {
1518
1518
  se.acceptEditingRow(Z);
1519
1519
  }
1520
- function E(Z) {
1520
+ function k(Z) {
1521
1521
  se.cancelEditingRow(Z);
1522
1522
  }
1523
1523
  function _(Z) {
@@ -1530,7 +1530,7 @@ const Yt = /* @__PURE__ */ De({
1530
1530
  Z && (g.load(Z), g.reOrderVisibleIndex(), ae != null && ae.keepScrollPosition ? he.scrollTo(he.offsetY.value) : _e());
1531
1531
  }
1532
1532
  function re(Z) {
1533
- T.selectItemById(Z);
1533
+ F.selectItemById(Z);
1534
1534
  }
1535
1535
  function ue(Z) {
1536
1536
  const ae = i.value.find((we) => we.raw[a.idField.value] === Z);
@@ -1540,28 +1540,28 @@ const Yt = /* @__PURE__ */ De({
1540
1540
  ce.activeRowById(Z);
1541
1541
  }
1542
1542
  function Oe(Z) {
1543
- T.selectItemByIds(Z);
1543
+ F.selectItemByIds(Z);
1544
1544
  }
1545
1545
  function xe() {
1546
- return T.getSelectedItems();
1546
+ return F.getSelectedItems();
1547
1547
  }
1548
1548
  function ke() {
1549
- T.clearSelection();
1549
+ F.clearSelection();
1550
1550
  }
1551
1551
  const je = G(() => !i.value || !i.value.length), {
1552
1552
  renderEmpty: Ce
1553
1553
  } = Yr(e, t);
1554
1554
  function Le() {
1555
- return T.getSelectionRow();
1555
+ return F.getSelectionRow();
1556
1556
  }
1557
1557
  function Ee(Z) {
1558
- T.unSelectItemByIds(Z);
1558
+ F.unSelectItemByIds(Z);
1559
1559
  }
1560
1560
  function Te() {
1561
- return T.currentSelectedDataId.value;
1561
+ return F.currentSelectedDataId.value;
1562
1562
  }
1563
1563
  function vt(Z, ae, we) {
1564
- const Fe = B.value.find((Me) => Me[f.value] === Z);
1564
+ const Fe = x.value.find((Me) => Me[f.value] === Z);
1565
1565
  if (Fe) {
1566
1566
  if (Object.keys(Fe).forEach((Se) => {
1567
1567
  Object.prototype.hasOwnProperty.call(ae, Se) && (Fe[Se] = ae[Se]);
@@ -1596,10 +1596,10 @@ const Yt = /* @__PURE__ */ De({
1596
1596
  }
1597
1597
  function ht(Z) {
1598
1598
  const ae = g.dataView.value.find((we) => we[f.value] === Z);
1599
- return ae ? ae[L.value] : "";
1599
+ return ae ? ae[V.value] : "";
1600
1600
  }
1601
1601
  function Wo() {
1602
- return L.value;
1602
+ return V.value;
1603
1603
  }
1604
1604
  ve(() => e.showSetting, (Z, ae) => {
1605
1605
  Z !== ae && (Z ? j(l) : M(l), _(l.value));
@@ -1612,7 +1612,7 @@ const Yt = /* @__PURE__ */ De({
1612
1612
  we && ce.changeRow(we);
1613
1613
  }
1614
1614
  function Jo() {
1615
- T.keepSelectingOnPaging.value || ke(), g.updateVisibleDataSummary(i.value);
1615
+ F.keepSelectingOnPaging.value || ke(), g.updateVisibleDataSummary(i.value);
1616
1616
  }
1617
1617
  t.expose({
1618
1618
  activeRowById: de,
@@ -1624,7 +1624,7 @@ const Yt = /* @__PURE__ */ De({
1624
1624
  removeDataItem: _t,
1625
1625
  editDataItem: Tt,
1626
1626
  acceptDataItem: qt,
1627
- cancelDataItem: E,
1627
+ cancelDataItem: k,
1628
1628
  updateColumns: _,
1629
1629
  updateDataSource: Q,
1630
1630
  selectItemById: re,
@@ -1647,23 +1647,23 @@ const Yt = /* @__PURE__ */ De({
1647
1647
  const Z = {};
1648
1648
  return he.shouldShowHorizontalScrollbar.value && (Z.paddingBottom = "10px"), he.shouldShowVirticalScrollbar.value && (Z.paddingRight = "10px"), Z;
1649
1649
  }), Zo = G(() => ({
1650
- ...V.value,
1650
+ ...$.value,
1651
1651
  borderRadius: "5px"
1652
- })), {
1653
- renderDataGridPagination: Zl
1654
- } = Xr(e, t, g, he, $, T), Ko = G(() => ({
1652
+ }));
1653
+ Xr(e, t, g, he, L, F);
1654
+ const Ko = G(() => ({
1655
1655
  "d-flex": !0,
1656
- "justify-content-between": H.value && F.value,
1657
- "justify-content-end": H.value && !F.value,
1656
+ "justify-content-between": H.value && I.value,
1657
+ "justify-content-end": H.value && !I.value,
1658
1658
  "position-relative": !0
1659
1659
  })), er = G(() => ({
1660
1660
  "d-flex": !0,
1661
1661
  "align-items-center": !0
1662
1662
  })), {
1663
1663
  renderDataGridSummary: tr
1664
- } = Jr(e, g, I);
1664
+ } = Jr(e, g, O);
1665
1665
  return () => C("div", {
1666
- ref: m,
1666
+ ref: p,
1667
1667
  class: A.value,
1668
1668
  style: Zo.value,
1669
1669
  onWheel: ft
@@ -1673,11 +1673,11 @@ const Yt = /* @__PURE__ */ De({
1673
1673
  onMouseover: () => s.value = !0,
1674
1674
  onMouseleave: () => s.value = !1,
1675
1675
  style: Qo.value
1676
- }, [u.value && Pt(i), u.value && ye(), u.value && je.value && Ce(), u.value && Lt(), u.value && Vt()]), u.value && tr(), F.value && C("div", {
1676
+ }, [u.value && Pt(i), u.value && ye(), u.value && je.value && Ce(), u.value && Lt(), u.value && Vt()]), u.value && tr(), I.value && C("div", {
1677
1677
  class: Ko.value
1678
- }, [F.value && C("div", {
1678
+ }, [I.value && C("div", {
1679
1679
  class: er.value
1680
- }, [C("div", null, ["已选:" + O.value.length, Ie(" 条")])])]), Ae(), D.value && jt()]);
1680
+ }, [C("div", null, ["已选:" + E.value.length, Ie(" 条")])])]), Ae(), B.value && jt()]);
1681
1681
  }
1682
1682
  });
1683
1683
  dr(Yt);
@@ -1692,16 +1692,16 @@ function Bo(e) {
1692
1692
  multiSelectMode: "OnCheckAndClick",
1693
1693
  showCheckbox: !0,
1694
1694
  showSelectAll: !0
1695
- }, f = h(!1), m = h(e.componentType);
1695
+ }, f = h(!1), p = h(e.componentType);
1696
1696
  function u(d) {
1697
1697
  const w = [];
1698
- return d.forEach((S) => {
1699
- let k = [];
1700
- S.type && S.type.fields && S.type.fields.length > 0 && (k = u(S.type.fields));
1701
- const L = Ct(S), y = S.multiLanguage ? "多语言" : S.type.displayName, p = k.length ? !1 : !n.has(S.id);
1702
- p && (f.value = !0), w.push({
1703
- data: Object.assign({ displayedTypeName: y, selectable: p }, L),
1704
- children: k
1698
+ return d.forEach((T) => {
1699
+ let D = [];
1700
+ T.type && T.type.fields && T.type.fields.length > 0 && (D = u(T.type.fields));
1701
+ const V = Ct(T), y = T.multiLanguage ? "多语言" : T.type.displayName, m = D.length ? !1 : !n.has(T.id);
1702
+ m && (f.value = !0), w.push({
1703
+ data: Object.assign({ displayedTypeName: y, selectable: m }, V),
1704
+ children: D
1705
1705
  });
1706
1706
  }), w;
1707
1707
  }
@@ -1719,17 +1719,17 @@ function Bo(e) {
1719
1719
  function c(d) {
1720
1720
  if (n.clear(), !d)
1721
1721
  return;
1722
- let w = v(m.value);
1722
+ let w = v(p.value);
1723
1723
  ["frame", "table", "form"].includes(w) && (w = "form");
1724
- const { formSchemaUtils: S, schemaService: k } = t;
1725
- S.getFormSchema().module.viewmodels.forEach((L) => {
1726
- if (!L.fields || L.fields.length === 0)
1724
+ const { formSchemaUtils: T, schemaService: D } = t;
1725
+ T.getFormSchema().module.viewmodels.forEach((V) => {
1726
+ if (!V.fields || V.fields.length === 0)
1727
1727
  return;
1728
- let p = S.getComponentByViewModelId(L.id).componentType;
1729
- ["frame", "table", "form"].includes(p) && (p = "form");
1730
- const g = k.getTableInfoByViewModelId(L.id);
1731
- p !== w || !g || g.id !== d.id || L.fields.forEach((B) => {
1732
- n.set(B.id, !0);
1728
+ let m = T.getComponentByViewModelId(V.id).componentType;
1729
+ ["frame", "table", "form"].includes(m) && (m = "form");
1730
+ const g = D.getTableInfoByViewModelId(V.id);
1731
+ m !== w || !g || g.id !== d.id || V.fields.forEach((x) => {
1732
+ n.set(x.id, !0);
1733
1733
  });
1734
1734
  });
1735
1735
  }
@@ -1754,37 +1754,37 @@ function Bo(e) {
1754
1754
  fieldSelectionOption: a,
1755
1755
  checkAndGetSelectedFields: s,
1756
1756
  hasSelectableField: f,
1757
- currentComponentType: m
1757
+ currentComponentType: p
1758
1758
  };
1759
1759
  }
1760
1760
  function Na(e) {
1761
1761
  const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = h(), r = h(), l = h([{ field: "name", title: "实体名称" }]), a = h(), f = h(!1);
1762
- function m(s) {
1762
+ function p(s) {
1763
1763
  const d = Bo(e);
1764
1764
  return d.resolveFieldDataSource(s), d.hasSelectableField.value ? (a.value = a.value || s, !0) : !1;
1765
1765
  }
1766
1766
  function u(s) {
1767
- return !(e.bindingEntityId && e.bindingEntityId !== s.id || !m(s));
1767
+ return !(e.bindingEntityId && e.bindingEntityId !== s.id || !p(s));
1768
1768
  }
1769
1769
  function v(s, d = "") {
1770
1770
  var y;
1771
1771
  if (!s)
1772
1772
  return;
1773
- const w = Ct(s), S = d ? `${d}/${w.label}` : "/";
1774
- n.set(w.label, S.replace("//", "/"));
1775
- const k = u(w), L = {
1776
- data: Object.assign({ selectable: k }, w),
1773
+ const w = Ct(s), T = d ? `${d}/${w.label}` : "/";
1774
+ n.set(w.label, T.replace("//", "/"));
1775
+ const D = u(w), V = {
1776
+ data: Object.assign({ selectable: D }, w),
1777
1777
  children: []
1778
1778
  };
1779
1779
  if (w.type.entities && w.type.entities.length) {
1780
- const p = w.type.entities.map((g) => v(g, S));
1781
- L.children = L.children.concat(p);
1780
+ const m = w.type.entities.map((g) => v(g, T));
1781
+ V.children = V.children.concat(m);
1782
1782
  }
1783
- return e.bindingEntityId === s.id && (a.value = s), ((y = a.value) == null ? void 0 : y.id) === s.id && !d && (f.value = !0), L;
1783
+ return e.bindingEntityId === s.id && (a.value = s), ((y = a.value) == null ? void 0 : y.id) === s.id && !d && (f.value = !0), V;
1784
1784
  }
1785
1785
  function c() {
1786
- var S;
1787
- const { formSchemaUtils: s } = t, d = (S = s.getFormSchema().module.entity[0]) == null ? void 0 : S.entities[0];
1786
+ var T;
1787
+ const { formSchemaUtils: s } = t, d = (T = s.getFormSchema().module.entity[0]) == null ? void 0 : T.entities[0];
1788
1788
  n.clear();
1789
1789
  const w = v(d);
1790
1790
  r.value = [w];
@@ -1815,17 +1815,17 @@ function Na(e) {
1815
1815
  function Do(e, t) {
1816
1816
  let n;
1817
1817
  function o(c) {
1818
- const { properties: b, title: i, ignore: s } = c, d = s && Array.isArray(s), w = Object.keys(b).reduce((S, k) => ((!d || !s.find((L) => L === k)) && (S[k] = b[k].type === "object" && b[k].properties ? o(b[k]) : Ct(b[k].default)), S), {});
1819
- if (i && (!d || !s.find((S) => S === "id"))) {
1820
- const S = i.toLowerCase().replace(/-/g, "_");
1821
- w.id = `${S}_${Math.random().toString().slice(2, 6)}`;
1818
+ const { properties: b, title: i, ignore: s } = c, d = s && Array.isArray(s), w = Object.keys(b).reduce((T, D) => ((!d || !s.find((V) => V === D)) && (T[D] = b[D].type === "object" && b[D].properties ? o(b[D]) : Ct(b[D].default)), T), {});
1819
+ if (i && (!d || !s.find((T) => T === "id"))) {
1820
+ const T = i.toLowerCase().replace(/-/g, "_");
1821
+ w.id = `${T}_${Math.random().toString().slice(2, 6)}`;
1822
1822
  }
1823
1823
  return w;
1824
1824
  }
1825
1825
  function r(c) {
1826
1826
  const { properties: b, title: i, required: s } = c;
1827
1827
  if (s && Array.isArray(s)) {
1828
- const d = s.reduce((w, S) => (w[S] = b[S].type === "object" && b[S].properties ? o(b[S]) : Ct(b[S].default), w), {});
1828
+ const d = s.reduce((w, T) => (w[T] = b[T].type === "object" && b[T].properties ? o(b[T]) : Ct(b[T].default), w), {});
1829
1829
  if (i && s.find((w) => w === "id")) {
1830
1830
  const w = i.toLowerCase().replace(/-/g, "_");
1831
1831
  d.id = `${w}_${Math.random().toString().slice(2, 6)}`;
@@ -1856,15 +1856,15 @@ function Do(e, t) {
1856
1856
  if (typeof w == "string")
1857
1857
  s[w] = c[d];
1858
1858
  else {
1859
- const S = w(d, c[d], c);
1860
- Object.assign(s, S);
1859
+ const T = w(d, c[d], c);
1860
+ Object.assign(s, T);
1861
1861
  }
1862
1862
  } else
1863
1863
  s[d] = c[d];
1864
1864
  return s;
1865
1865
  }, {});
1866
1866
  }
1867
- function m(c, b, i = /* @__PURE__ */ new Map()) {
1867
+ function p(c, b, i = /* @__PURE__ */ new Map()) {
1868
1868
  const s = a(c, b);
1869
1869
  return f(s, i);
1870
1870
  }
@@ -1877,8 +1877,8 @@ function Do(e, t) {
1877
1877
  return c;
1878
1878
  const d = a(c, s), w = ((i = c.editor) == null ? void 0 : i.type) || "";
1879
1879
  if (w) {
1880
- const S = e[w], k = a(c.editor, S);
1881
- d.editor = k;
1880
+ const T = e[w], D = a(c.editor, T);
1881
+ d.editor = D;
1882
1882
  }
1883
1883
  return d;
1884
1884
  }
@@ -1887,9 +1887,9 @@ function Do(e, t) {
1887
1887
  function v(c) {
1888
1888
  n = c;
1889
1889
  }
1890
- return { getSchemaByType: l, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: m, mappingSchemaToProps: f, setDesignerContext: v };
1890
+ return { getSchemaByType: l, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: p, mappingSchemaToProps: f, setDesignerContext: v };
1891
1891
  }
1892
- const ko = {}, Eo = {}, { resolveSchemaWithDefaultValue: Pa, resolveSchemaToProps: ja, mappingSchemaToProps: La, setDesignerContext: Va } = Do(ko, Eo);
1892
+ const ko = {}, Eo = {}, { getSchemaByType: Ic, resolveSchemaWithDefaultValue: Pa, resolveSchemaToProps: ja, mappingSchemaToProps: La, setDesignerContext: Va } = Do(ko, Eo);
1893
1893
  function $a(e = {}) {
1894
1894
  function t(u, v, c, b) {
1895
1895
  if (typeof c == "number")
@@ -1938,11 +1938,11 @@ function $a(e = {}) {
1938
1938
  function f(u, v) {
1939
1939
  return l(u).reduce((i, s) => i && a(s, v), !0);
1940
1940
  }
1941
- function m(u, v) {
1942
- const c = Object.keys(u), b = c.includes("allOf"), i = c.includes("anyOf"), s = b || i, S = (s ? u[s ? b ? "allOf" : "anyOf" : "allOf"] : [u]).map((L) => f(L, v));
1943
- return b ? !S.includes(!1) : S.includes(!0);
1941
+ function p(u, v) {
1942
+ const c = Object.keys(u), b = c.includes("allOf"), i = c.includes("anyOf"), s = b || i, T = (s ? u[s ? b ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => f(V, v));
1943
+ return b ? !T.includes(!1) : T.includes(!0);
1944
1944
  }
1945
- return { parseValueSchema: m };
1945
+ return { parseValueSchema: p };
1946
1946
  }
1947
1947
  const Aa = {
1948
1948
  convertTo: (e, t, n, o) => {
@@ -2239,69 +2239,69 @@ function Mo(e, t, n) {
2239
2239
  function f(s, d, w) {
2240
2240
  return s.includes("visible") && d.visible !== void 0 ? typeof d.visible == "boolean" ? () => !!d.visible : d.visible === void 0 ? !0 : a(d.visible, w) : () => !0;
2241
2241
  }
2242
- function m(s, d, w) {
2242
+ function p(s, d, w) {
2243
2243
  return s.includes("readonly") && d.readonly !== void 0 ? typeof d.readonly == "boolean" ? () => !!d.readonly : a(d.readonly, w) : () => !1;
2244
2244
  }
2245
2245
  function u(s, d) {
2246
2246
  const w = s.$converter || d;
2247
2247
  return typeof w == "string" && w && o.has(w) ? o.get(w) || null : w || null;
2248
2248
  }
2249
- function v(s, d, w, S, k, L = "", y = "") {
2249
+ function v(s, d, w, T, D, V = "", y = "") {
2250
2250
  return Object.keys(s).map((g) => {
2251
- const B = h(1), T = g, F = s[g], O = Object.keys(F), x = F.title, D = F.type, P = r.get(D) || { type: "input-group", enableClear: !1 }, $ = F.editor ? Object.assign({}, P, F.editor) : Object.assign({}, P), H = f(O, F, d), V = m(O, F, d);
2252
- $.readonly = $.readonly === void 0 ? V() : $.readonly;
2253
- const J = F.type === "cascade" ? v(F.properties, d, w, S, k, L, y) : [], N = !0;
2254
- let j = u(F, y);
2251
+ const x = h(1), F = g, I = s[g], E = Object.keys(I), S = I.title, B = I.type, P = r.get(B) || { type: "input-group", enableClear: !1 }, L = I.editor ? Object.assign({}, P, I.editor) : Object.assign({}, P), H = f(E, I, d), $ = p(E, I, d);
2252
+ L.readonly = L.readonly === void 0 ? $() : L.readonly;
2253
+ const J = I.type === "cascade" ? v(I.properties, d, w, T, D, V, y) : [], N = !0;
2254
+ let j = u(I, y);
2255
2255
  const M = G({
2256
2256
  get() {
2257
- if (B.value) {
2258
- if (["class", "style"].find((ce) => ce === T) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
2259
- return j.convertFrom(w, g, k, L);
2257
+ if (x.value) {
2258
+ if (["class", "style"].find((ce) => ce === F) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
2259
+ return j.convertFrom(w, g, D, V);
2260
2260
  const pe = w[g];
2261
- return Object.prototype.hasOwnProperty.call(F, "defaultValue") && (pe === void 0 || typeof pe == "string" && pe === "") ? F.type === "boolean" ? F.defaultValue : F.defaultValue || "" : pe;
2261
+ return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (pe === void 0 || typeof pe == "string" && pe === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : pe;
2262
2262
  }
2263
2263
  return null;
2264
2264
  },
2265
2265
  set(pe) {
2266
- B.value += 1, j && j.convertTo ? (j.convertTo(S, g, pe, k, L), j.convertTo(w, g, pe, k, L)) : (S[g] = pe, w[g] = pe);
2266
+ x.value += 1, j && j.convertTo ? (j.convertTo(T, g, pe, D, V), j.convertTo(w, g, pe, D, V)) : (T[g] = pe, w[g] = pe);
2267
2267
  }
2268
- }), { refreshPanelAfterChanged: I, description: z, isExpand: oe, parentPropertyID: le } = F, X = { propertyID: T, propertyName: x, propertyType: D, propertyValue: M, editor: $, visible: H, readonly: V, cascadeConfig: J, hideCascadeTitle: N, refreshPanelAfterChanged: I, description: z, isExpand: oe, parentPropertyID: le };
2269
- return d[T] = X, X;
2268
+ }), { refreshPanelAfterChanged: O, description: z, isExpand: oe, parentPropertyID: le } = I, X = { propertyID: F, propertyName: S, propertyType: B, propertyValue: M, editor: L, visible: H, readonly: $, cascadeConfig: J, hideCascadeTitle: N, refreshPanelAfterChanged: O, description: z, isExpand: oe, parentPropertyID: le };
2269
+ return d[F] = X, X;
2270
2270
  });
2271
2271
  }
2272
2272
  function c(s, d, w = {}) {
2273
- const S = {}, k = e[s];
2274
- return k && k.categories ? Object.keys(k.categories).map((y) => {
2275
- const p = k.categories[y], g = p == null ? void 0 : p.title, B = v(p.properties || {}, S, {}, w, d);
2276
- return { categoryId: y, categoryName: g, properties: B };
2273
+ const T = {}, D = e[s];
2274
+ return D && D.categories ? Object.keys(D.categories).map((y) => {
2275
+ const m = D.categories[y], g = m == null ? void 0 : m.title, x = v(m.properties || {}, T, {}, w, d);
2276
+ return { categoryId: y, categoryName: g, properties: x };
2277
2277
  }) : [];
2278
2278
  }
2279
- function b(s, d, w, S, k = "") {
2280
- const L = d.$ref.schema, y = d.$ref.converter, p = w[L], g = p.type, B = n(p), T = {}, F = e[g];
2281
- if (F && F.categories) {
2282
- const O = F.categories[s], x = O == null ? void 0 : O.title;
2283
- y && Object.keys(O.properties).forEach(($) => {
2284
- O.properties[$].$converter = y;
2279
+ function b(s, d, w, T, D = "") {
2280
+ const V = d.$ref.schema, y = d.$ref.converter, m = w[V], g = m.type, x = n(m), F = {}, I = e[g];
2281
+ if (I && I.categories) {
2282
+ const E = I.categories[s], S = E == null ? void 0 : E.title;
2283
+ y && Object.keys(E.properties).forEach((L) => {
2284
+ E.properties[L].$converter = y;
2285
2285
  });
2286
- const D = (O == null ? void 0 : O.properties) || {}, P = v(D, T, B, p, S, k);
2287
- return { categoryId: s, categoryName: x, properties: P };
2286
+ const B = (E == null ? void 0 : E.properties) || {}, P = v(B, F, x, m, T, D);
2287
+ return { categoryId: s, categoryName: S, properties: P };
2288
2288
  }
2289
2289
  return { categoryId: s, categoryName: "", properties: [] };
2290
2290
  }
2291
- function i(s, d, w, S, k) {
2292
- const L = s.type, y = n(s), p = {};
2293
- let g = k || e[L];
2294
- if (g && Object.keys(g).length === 0 && w && w.getPropConfig && (g = w.getPropConfig(S)), g && g.categories) {
2295
- const B = [];
2296
- return Object.keys(g.categories).map((T) => {
2297
- const F = g.categories[T];
2298
- if (F.$ref) {
2299
- B.push(b(T, F, s, d, S));
2291
+ function i(s, d, w, T, D) {
2292
+ const V = s.type, y = n(s), m = {};
2293
+ let g = D || e[V];
2294
+ if (g && Object.keys(g).length === 0 && w && w.getPropConfig && (g = w.getPropConfig(T)), g && g.categories) {
2295
+ const x = [];
2296
+ return Object.keys(g.categories).map((F) => {
2297
+ const I = g.categories[F];
2298
+ if (I.$ref) {
2299
+ x.push(b(F, I, s, d, T));
2300
2300
  return;
2301
2301
  }
2302
- const O = F == null ? void 0 : F.title, x = F == null ? void 0 : F.tabId, D = F == null ? void 0 : F.tabName, P = F == null ? void 0 : F.hide, $ = F == null ? void 0 : F.hideTitle, H = v(F.properties || {}, p, y, s, d, S, F.$converter), { setPropertyRelates: V } = F, J = F == null ? void 0 : F.parentPropertyID;
2303
- B.push({ categoryId: T, categoryName: O, tabId: x, tabName: D, hide: P, properties: H, hideTitle: $, setPropertyRelates: V, parentPropertyID: J });
2304
- }), B;
2302
+ const E = I == null ? void 0 : I.title, S = I == null ? void 0 : I.tabId, B = I == null ? void 0 : I.tabName, P = I == null ? void 0 : I.hide, L = I == null ? void 0 : I.hideTitle, H = v(I.properties || {}, m, y, s, d, T, I.$converter), { setPropertyRelates: $ } = I, J = I == null ? void 0 : I.parentPropertyID;
2303
+ x.push({ categoryId: F, categoryName: E, tabId: S, tabName: B, hide: P, properties: H, hideTitle: L, setPropertyRelates: $, parentPropertyID: J });
2304
+ }), x;
2305
2305
  }
2306
2306
  return [];
2307
2307
  }
@@ -2313,14 +2313,14 @@ function Mo(e, t, n) {
2313
2313
  }
2314
2314
  const Io = {}, Oo = {};
2315
2315
  Mo(Io, Oo, Pa);
2316
- const No = {}, Po = {}, { resolveSchemaWithDefaultValue: ii, setDesignerContext: li } = Do(No, Po), jo = {}, Lo = {};
2316
+ const No = {}, Po = {}, { getSchemaByType: Oc, resolveSchemaWithDefaultValue: ii, resolveSchemaToProps: Nc, mappingSchemaToProps: Pc, setDesignerContext: li } = Do(No, Po), jo = {}, Lo = {};
2317
2317
  Mo(jo, Lo, ii);
2318
- function Ot(e, t, n = /* @__PURE__ */ new Map(), o = (a, f, m, u) => f, r = {}, l = (a) => a) {
2318
+ function Ot(e, t, n = /* @__PURE__ */ new Map(), o = (a, f, p, u) => f, r = {}, l = (a) => a) {
2319
2319
  return ko[t.title] = t, Eo[t.title] = o, Io[t.title] = r, Oo[t.title] = l, No[t.title] = t, Po[t.title] = o, jo[t.title] = r, Lo[t.title] = l, (a = {}, f = !0) => {
2320
2320
  if (!f)
2321
2321
  return La(a, n);
2322
- const m = ja(a, t, n), u = Object.keys(e).reduce((v, c) => (v[c] = e[c].default, v), {});
2323
- return Object.assign(u, m);
2322
+ const p = ja(a, t, n), u = Object.keys(e).reduce((v, c) => (v[c] = e[c].default, v), {});
2323
+ return Object.assign(u, p);
2324
2324
  };
2325
2325
  }
2326
2326
  function Vo(e, t) {
@@ -2474,113 +2474,113 @@ const Ti = /* @__PURE__ */ De({
2474
2474
  "f-progress-step-list-block": n.value === "vertical",
2475
2475
  "f-progress-step-horizontal-fill": n.value === "horizontal" && o.value,
2476
2476
  "f-progress-step-vertical-fill": n.value === "vertical" && o.value
2477
- })), m = G(() => ({
2477
+ })), p = G(() => ({
2478
2478
  height: n.value === "vertical" ? `${r.value}px` : ""
2479
2479
  }));
2480
- function u(y, p) {
2480
+ function u(y, m) {
2481
2481
  const g = {
2482
2482
  step: !0,
2483
- active: p === a.value,
2483
+ active: m === a.value,
2484
2484
  clickable: e.clickable,
2485
- current: p === a.value,
2486
- finish: p < a.value
2485
+ current: m === a.value,
2486
+ finish: m < a.value
2487
2487
  };
2488
2488
  return y.status && (g[y.status] = !0), dt(g, y.class || "");
2489
2489
  }
2490
- function v(y, p) {
2490
+ function v(y, m) {
2491
2491
  if (!e.clickable)
2492
2492
  return;
2493
2493
  const g = {
2494
2494
  step: y,
2495
- stepIndex: p
2495
+ stepIndex: m
2496
2496
  };
2497
2497
  t.emit("click", g);
2498
2498
  }
2499
- function c(y, p) {
2499
+ function c(y, m) {
2500
2500
  const g = {
2501
2501
  "f-progressstep-row": !0,
2502
- "step-active": p === a.value,
2503
- "step-current": p === a.value,
2504
- "step-finish": p < a.value
2502
+ "step-active": m === a.value,
2503
+ "step-current": m === a.value,
2504
+ "step-finish": m < a.value
2505
2505
  };
2506
2506
  return y.status && (g["step-" + y.status] = !0), g;
2507
2507
  }
2508
- function b(y, p) {
2508
+ function b(y, m) {
2509
2509
  return dt({
2510
2510
  "step-icon": !0,
2511
- "step-success": p,
2512
- "f-icon": p,
2513
- "f-icon-check": p
2511
+ "step-success": m,
2512
+ "f-icon": m,
2513
+ "f-icon-check": m
2514
2514
  }, y.icon || "");
2515
2515
  }
2516
- function i(y, p) {
2516
+ function i(y, m) {
2517
2517
  const g = [];
2518
2518
  return y.icon ? g.push(C("span", {
2519
2519
  class: b(y, !1)
2520
- }, null)) : p >= a.value ? g.push(C("span", {
2520
+ }, null)) : m >= a.value ? g.push(C("span", {
2521
2521
  class: "step-icon"
2522
- }, [p + 1])) : g.push(C("span", {
2522
+ }, [m + 1])) : g.push(C("span", {
2523
2523
  class: b(y, !0)
2524
2524
  }, null)), g;
2525
2525
  }
2526
- function s(y, p) {
2526
+ function s(y, m) {
2527
2527
  return {
2528
2528
  "step-name": !0,
2529
- "step-name-success": p < a.value
2529
+ "step-name-success": m < a.value
2530
2530
  };
2531
2531
  }
2532
- function d(y, p) {
2532
+ function d(y, m) {
2533
2533
  return C("div", {
2534
2534
  class: "f-progress-step-title"
2535
2535
  }, [C("p", {
2536
- class: s(y, p)
2536
+ class: s(y, m)
2537
2537
  }, [y.title])]);
2538
2538
  }
2539
- function w(y, p) {
2539
+ function w(y, m) {
2540
2540
  return {
2541
2541
  "f-progress-step-line": !0,
2542
- "f-progress-step-line-success": p === a.value
2542
+ "f-progress-step-line-success": m === a.value
2543
2543
  };
2544
2544
  }
2545
- function S(y, p) {
2546
- return p !== l.value.length - 1;
2545
+ function T(y, m) {
2546
+ return m !== l.value.length - 1;
2547
2547
  }
2548
- const k = G(() => ({
2548
+ const D = G(() => ({
2549
2549
  triangle: !0,
2550
2550
  "": n.value === "vertical"
2551
2551
  }));
2552
- function L() {
2553
- return l.value.map((y, p) => C("li", {
2554
- class: u(y, p),
2555
- onClick: (g) => v(y, p)
2552
+ function V() {
2553
+ return l.value.map((y, m) => C("li", {
2554
+ class: u(y, m),
2555
+ onClick: (g) => v(y, m)
2556
2556
  }, [C("div", {
2557
- class: c(y, p)
2557
+ class: c(y, m)
2558
2558
  }, [C("div", {
2559
2559
  class: "f-progress-step-content"
2560
- }, [i(y, p), d(y, p)]), S(y, p) && C("div", {
2561
- class: w(y, p)
2560
+ }, [i(y, m), d(y, m)]), T(y, m) && C("div", {
2561
+ class: w(y, m)
2562
2562
  }, [C("span", {
2563
- class: k.value
2563
+ class: D.value
2564
2564
  }, null)])])]));
2565
2565
  }
2566
2566
  return ve(() => e.activeIndex, () => {
2567
- e.activeIndex > -1 && e.activeIndex <= l.value.length && (a.value = e.activeIndex, L());
2567
+ e.activeIndex > -1 && e.activeIndex <= l.value.length && (a.value = e.activeIndex, V());
2568
2568
  }), () => C("div", {
2569
2569
  class: "f-progress-step"
2570
2570
  }, [C("ul", {
2571
2571
  class: f.value,
2572
- style: m.value
2573
- }, [L()])]);
2572
+ style: p.value
2573
+ }, [V()])]);
2574
2574
  }
2575
2575
  });
2576
- function Oc(e, t, n) {
2577
- var x;
2576
+ function jc(e, t, n) {
2577
+ var S;
2578
2578
  const o = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", l = h();
2579
2579
  let a;
2580
2580
  function f() {
2581
2581
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2582
2582
  }
2583
- function m() {
2583
+ function p() {
2584
2584
  return !1;
2585
2585
  }
2586
2586
  function u() {
@@ -2589,85 +2589,85 @@ function Oc(e, t, n) {
2589
2589
  function v() {
2590
2590
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
2591
2591
  }
2592
- function c(D) {
2593
- if (!D || !D.value)
2592
+ function c(B) {
2593
+ if (!B || !B.value)
2594
2594
  return null;
2595
- if (D.value.schema && D.value.schema.type === "component")
2596
- return D.value;
2597
- const P = h(D == null ? void 0 : D.value.parent), $ = c(P);
2598
- return $ || null;
2595
+ if (B.value.schema && B.value.schema.type === "component")
2596
+ return B.value;
2597
+ const P = h(B == null ? void 0 : B.value.parent), L = c(P);
2598
+ return L || null;
2599
2599
  }
2600
- function b(D = t) {
2601
- var V;
2600
+ function b(B = t) {
2601
+ var $;
2602
2602
  if (n != null && n.getDraggableDesignItemElement)
2603
- return n.getDraggableDesignItemElement(D);
2604
- const { componentInstance: P, designerItemElementRef: $ } = D;
2603
+ return n.getDraggableDesignItemElement(B);
2604
+ const { componentInstance: P, designerItemElementRef: L } = B;
2605
2605
  if (!P || !P.value)
2606
2606
  return null;
2607
2607
  const { getCustomButtons: H } = P.value;
2608
- return P.value.canMove || H && ((V = H()) != null && V.length) ? $ : b(D.parent);
2608
+ return P.value.canMove || H && (($ = H()) != null && $.length) ? L : b(B.parent);
2609
2609
  }
2610
- function i(D) {
2611
- return !!n && n.canAccepts(D);
2610
+ function i(B) {
2611
+ return !!n && n.canAccepts(B);
2612
2612
  }
2613
2613
  function s() {
2614
2614
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2615
2615
  }
2616
2616
  function d() {
2617
2617
  }
2618
- function w(D, P) {
2619
- var $;
2620
- !D || !P || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(D, P), ($ = t == null ? void 0 : t.setupContext) == null || $.emit("dragEnd"));
2618
+ function w(B, P) {
2619
+ var L;
2620
+ !B || !P || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(B, P), (L = t == null ? void 0 : t.setupContext) == null || L.emit("dragEnd"));
2621
2621
  }
2622
- function S(D, P) {
2623
- const { componentType: $ } = D;
2624
- let H = bn($, D, P);
2625
- n && n.onResolveNewComponentSchema && (H = n.onResolveNewComponentSchema(D, H));
2626
- const V = $.toLowerCase().replace(/-/g, "_");
2627
- return H && !H.id && H.type === $ && (H.id = `${V}_${Math.random().toString().slice(2, 6)}`), H;
2622
+ function T(B, P) {
2623
+ const { componentType: L } = B;
2624
+ let H = bn(L, B, P);
2625
+ n && n.onResolveNewComponentSchema && (H = n.onResolveNewComponentSchema(B, H));
2626
+ const $ = L.toLowerCase().replace(/-/g, "_");
2627
+ return H && !H.id && H.type === L && (H.id = `${$}_${Math.random().toString().slice(2, 6)}`), H;
2628
2628
  }
2629
- function k(D) {
2630
- D && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(D);
2629
+ function D(B) {
2630
+ B && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(B);
2631
2631
  }
2632
- function L(...D) {
2632
+ function V(...B) {
2633
2633
  if (n && n.getPropsConfig)
2634
- return n.getPropsConfig(...D);
2634
+ return n.getPropsConfig(...B);
2635
2635
  }
2636
- function y(D) {
2637
- if (!D)
2636
+ function y(B) {
2637
+ if (!B)
2638
2638
  return;
2639
- const P = t == null ? void 0 : t.schema, { formSchemaUtils: $ } = D;
2640
- if (P && $.getExpressions().length) {
2641
- const H = $.getExpressions().findIndex((V) => V.target === P.id);
2642
- H > -1 && $.getExpressions().splice(H, 1);
2639
+ const P = t == null ? void 0 : t.schema, { formSchemaUtils: L } = B;
2640
+ if (P && L.getExpressions().length) {
2641
+ const H = L.getExpressions().findIndex(($) => $.target === P.id);
2642
+ H > -1 && L.getExpressions().splice(H, 1);
2643
2643
  }
2644
2644
  }
2645
- function p(D) {
2646
- if (!D || !(t != null && t.schema))
2645
+ function m(B) {
2646
+ if (!B || !(t != null && t.schema))
2647
2647
  return;
2648
- const P = t.schema, { formSchemaUtils: $ } = D;
2649
- $.removeCommunicationInComponent(P);
2650
- }
2651
- function g(D) {
2652
- n && n.onRemoveComponent && n.onRemoveComponent(), y(D), p(D), t != null && t.schema.contents && t.schema.contents.map((P) => {
2653
- let $ = P.id;
2654
- P.type === "component-ref" && ($ = P.component);
2655
- const H = e.value.querySelectorAll(`#${$}-design-item`);
2656
- H != null && H.length && Array.from(H).map((V) => {
2648
+ const P = t.schema, { formSchemaUtils: L } = B;
2649
+ L.removeCommunicationInComponent(P);
2650
+ }
2651
+ function g(B) {
2652
+ n && n.onRemoveComponent && n.onRemoveComponent(), y(B), m(B), t != null && t.schema.contents && t.schema.contents.map((P) => {
2653
+ let L = P.id;
2654
+ P.type === "component-ref" && (L = P.component);
2655
+ const H = e.value.querySelectorAll(`#${L}-design-item`);
2656
+ H != null && H.length && Array.from(H).map(($) => {
2657
2657
  var J;
2658
- (J = V == null ? void 0 : V.componentInstance) != null && J.value.onRemoveComponent && V.componentInstance.value.onRemoveComponent(D);
2658
+ (J = $ == null ? void 0 : $.componentInstance) != null && J.value.onRemoveComponent && $.componentInstance.value.onRemoveComponent(B);
2659
2659
  });
2660
2660
  });
2661
2661
  }
2662
- function B() {
2662
+ function x() {
2663
2663
  if (n && n.getCustomButtons)
2664
2664
  return n.getCustomButtons();
2665
2665
  }
2666
- function T(D) {
2667
- var $, H;
2668
- if (!(($ = t == null ? void 0 : t.schema) != null && $.id))
2666
+ function F(B) {
2667
+ var L, H;
2668
+ if (!((L = t == null ? void 0 : t.schema) != null && L.id))
2669
2669
  return;
2670
- if (!a && D && (a = D.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
2670
+ if (!a && B && (a = B.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
2671
2671
  n.setComponentBasicInfoMap();
2672
2672
  return;
2673
2673
  }
@@ -2675,21 +2675,21 @@ function Oc(e, t, n) {
2675
2675
  if (n != null && n.getComponentTitle)
2676
2676
  P = n.getComponentTitle();
2677
2677
  else {
2678
- const { text: V, title: J, label: N, mainTitle: j, name: M, type: I } = t.schema;
2679
- P = V || J || N || j || M || ((H = R[I]) == null ? void 0 : H.name);
2678
+ const { text: $, title: J, label: N, mainTitle: j, name: M, type: O } = t.schema;
2679
+ P = $ || J || N || j || M || ((H = R[O]) == null ? void 0 : H.name);
2680
2680
  }
2681
2681
  P && a.getControlBasicInfoMap().set(t.schema.id, {
2682
2682
  componentTitle: P,
2683
2683
  parentPathName: P
2684
2684
  });
2685
2685
  }
2686
- function F(D) {
2687
- var V;
2688
- const { changeObject: P } = D, { propertyID: $, propertyValue: H } = P;
2689
- if (["text", "title", "label", "name", "mainTitle"].includes((V = D == null ? void 0 : D.changeObject) == null ? void 0 : V.propertyID) && $ && H && (T(), a)) {
2686
+ function I(B) {
2687
+ var $;
2688
+ const { changeObject: P } = B, { propertyID: L, propertyValue: H } = P;
2689
+ if (["text", "title", "label", "name", "mainTitle"].includes(($ = B == null ? void 0 : B.changeObject) == null ? void 0 : $.propertyID) && L && H && (F(), a)) {
2690
2690
  const J = a.getControlBasicInfoMap(), N = J.keys().toArray().filter((j) => {
2691
- var M, I;
2692
- return ((M = J.get(j)) == null ? void 0 : M.reliedComponentId) === ((I = t == null ? void 0 : t.schema) == null ? void 0 : I.id);
2691
+ var M, O;
2692
+ return ((M = J.get(j)) == null ? void 0 : M.reliedComponentId) === ((O = t == null ? void 0 : t.schema) == null ? void 0 : O.id);
2693
2693
  });
2694
2694
  N != null && N.length && N.forEach((j) => {
2695
2695
  const M = J.get(j).parentPathName.split(" > ");
@@ -2697,18 +2697,18 @@ function Oc(e, t, n) {
2697
2697
  });
2698
2698
  }
2699
2699
  }
2700
- function O(D) {
2701
- if (F(D), n && n.onPropertyChanged)
2702
- return n.onPropertyChanged(D);
2700
+ function E(B) {
2701
+ if (I(B), n && n.onPropertyChanged)
2702
+ return n.onPropertyChanged(B);
2703
2703
  }
2704
2704
  return l.value = {
2705
2705
  canMove: f(),
2706
- canSelectParent: m(),
2706
+ canSelectParent: p(),
2707
2707
  canDelete: u(),
2708
2708
  canNested: !v(),
2709
2709
  contents: t == null ? void 0 : t.schema.contents,
2710
2710
  elementRef: e,
2711
- parent: (x = t == null ? void 0 : t.parent) == null ? void 0 : x.componentInstance,
2711
+ parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
2712
2712
  schema: t == null ? void 0 : t.schema,
2713
2713
  styles: o,
2714
2714
  designerClass: r,
@@ -2716,17 +2716,17 @@ function Oc(e, t, n) {
2716
2716
  getBelongedComponentInstance: c,
2717
2717
  getDraggableDesignItemElement: b,
2718
2718
  getDraggingDisplayText: s,
2719
- getPropConfig: L,
2719
+ getPropConfig: V,
2720
2720
  getDragScopeElement: d,
2721
2721
  onAcceptMovedChildElement: w,
2722
- onChildElementMovedOut: k,
2723
- addNewChildComponentSchema: S,
2722
+ onChildElementMovedOut: D,
2723
+ addNewChildComponentSchema: T,
2724
2724
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
2725
2725
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1),
2726
2726
  onRemoveComponent: g,
2727
- getCustomButtons: B,
2728
- onPropertyChanged: O,
2729
- setComponentBasicInfoMap: T,
2727
+ getCustomButtons: x,
2728
+ onPropertyChanged: E,
2729
+ setComponentBasicInfoMap: F,
2730
2730
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
2731
2731
  }, l;
2732
2732
  }
@@ -2791,7 +2791,7 @@ class Bi {
2791
2791
  const { selectedFields: l } = t;
2792
2792
  l == null || l.forEach((f) => {
2793
2793
  if (f.$type === sn.SimpleField) {
2794
- const m = Ct(f), u = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(m, "", u);
2794
+ const p = Ct(f), u = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(p, "", u);
2795
2795
  v && r.push(v);
2796
2796
  }
2797
2797
  });
@@ -2859,12 +2859,12 @@ class Bi {
2859
2859
  }
2860
2860
  }
2861
2861
  function Di(e, t, n, o) {
2862
- var l, a, f, m, u, v;
2862
+ var l, a, f, p, u, v;
2863
2863
  const r = n.parentComponentInstance;
2864
2864
  if (r && o) {
2865
2865
  const c = (l = r.schema) == null ? void 0 : l.type, i = {
2866
2866
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
2867
- componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((m = (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntity) == null ? void 0 : m.name) || "标题",
2867
+ componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((p = (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntity) == null ? void 0 : p.name) || "标题",
2868
2868
  componentType: "form",
2869
2869
  formColumns: c === "splitter-pane" ? 1 : 4,
2870
2870
  parentContainerId: r.schema.id,
@@ -3053,7 +3053,7 @@ Ot(
3053
3053
  en,
3054
3054
  void 0
3055
3055
  );
3056
- function Nc() {
3056
+ function Lc() {
3057
3057
  function e(t, n) {
3058
3058
  var a;
3059
3059
  if (!t)
@@ -3068,16 +3068,16 @@ function Nc() {
3068
3068
  basalDragulaRuleForContainer: e
3069
3069
  };
3070
3070
  }
3071
- class Pc {
3071
+ class Vc {
3072
3072
  getTemplateRule(t, n) {
3073
3073
  const o = n == null ? void 0 : n.formSchemaUtils, r = o == null ? void 0 : o.getFormTemplateRule(), l = { canAccept: !0, canDelete: !0, canMove: !0 };
3074
3074
  if (!r)
3075
3075
  return l;
3076
3076
  const a = this.getComponentContext(t), { componentClassList: f } = a;
3077
- return f.forEach((m) => {
3078
- if (!m || !r[m])
3077
+ return f.forEach((p) => {
3078
+ if (!p || !r[p])
3079
3079
  return;
3080
- const { canMove: u, canDelete: v, canAccept: c } = r[m];
3080
+ const { canMove: u, canDelete: v, canAccept: c } = r[p];
3081
3081
  l.canMove = l.canMove && this.resolveRuleValue(u, a), l.canDelete = l.canDelete && this.resolveRuleValue(v, a), l.canAccept = l.canAccept && this.resolveRuleValue(c, a);
3082
3082
  }), l;
3083
3083
  }
@@ -3088,7 +3088,7 @@ class Pc {
3088
3088
  const o = t.invalidContext || [];
3089
3089
  let r = !0;
3090
3090
  for (const l of o) {
3091
- const { firstLevelChild: a, secondLevelChild: f, parent: m, ...u } = l;
3091
+ const { firstLevelChild: a, secondLevelChild: f, parent: p, ...u } = l;
3092
3092
  if (u && n.component) {
3093
3093
  let v = !0;
3094
3094
  for (const c of Object.keys(u))
@@ -3155,15 +3155,15 @@ class Pc {
3155
3155
  return !r;
3156
3156
  }
3157
3157
  getComponentContext(t) {
3158
- var d, w, S, k;
3159
- const n = t.schema, o = n.appearance && n.appearance.class || "", r = o.split(" ") || [], l = n.contents || [], a = l.length ? l[0] : null, f = a && a.appearance ? a.appearance.class : "", m = f ? f.split(" ") : [], u = (d = a == null ? void 0 : a.contents) != null && d.length ? a == null ? void 0 : a.contents[0] : null, v = u && u.appearance ? u.appearance.class : "", c = v ? v.split(" ") : [], b = n.type === "component" ? (S = (w = t.parent) == null ? void 0 : w.parent) == null ? void 0 : S.schema : (k = t.parent) == null ? void 0 : k.schema, i = b && b.appearance && b.appearance.class || "", s = i ? i.split(" ") : [];
3158
+ var d, w, T, D;
3159
+ const n = t.schema, o = n.appearance && n.appearance.class || "", r = o.split(" ") || [], l = n.contents || [], a = l.length ? l[0] : null, f = a && a.appearance ? a.appearance.class : "", p = f ? f.split(" ") : [], u = (d = a == null ? void 0 : a.contents) != null && d.length ? a == null ? void 0 : a.contents[0] : null, v = u && u.appearance ? u.appearance.class : "", c = v ? v.split(" ") : [], b = n.type === "component" ? (T = (w = t.parent) == null ? void 0 : w.parent) == null ? void 0 : T.schema : (D = t.parent) == null ? void 0 : D.schema, i = b && b.appearance && b.appearance.class || "", s = i ? i.split(" ") : [];
3160
3160
  return {
3161
3161
  componentClass: o,
3162
3162
  componentClassList: r,
3163
3163
  childContents: l,
3164
3164
  firstLevelChildSchema: a,
3165
3165
  firstLevelChildClass: f,
3166
- firstLevelChildClassList: m,
3166
+ firstLevelChildClassList: p,
3167
3167
  secondLevelChildSchema: u,
3168
3168
  secondLevelChildClass: v,
3169
3169
  secondLevelChildClassList: c,
@@ -3203,13 +3203,13 @@ const Gi = {
3203
3203
  }), ve([() => e.valid, () => e.inValidTip], ([v, c]) => {
3204
3204
  r.value = v, l.value = c;
3205
3205
  });
3206
- const a = G(() => r.value ? o.value : l.value), f = G(() => r.value ? "" : "color:red"), m = G(() => ({
3206
+ const a = G(() => r.value ? o.value : l.value), f = G(() => r.value ? "" : "color:red"), p = G(() => ({
3207
3207
  "col-form-label": !0,
3208
3208
  // 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
3209
3209
  "f-width-auto": n.value && (e.showType === "none" || !o.value)
3210
3210
  })), u = G(() => e.showType === "reserve-space" || n.value || o.value && e.showType !== "none");
3211
3211
  return () => u.value && C("label", {
3212
- class: m.value,
3212
+ class: p.value,
3213
3213
  title: a.value,
3214
3214
  style: f.value
3215
3215
  }, [!r.value && C("span", {
@@ -3236,8 +3236,8 @@ function Xi() {
3236
3236
  return f;
3237
3237
  }
3238
3238
  function t(a, f) {
3239
- const m = U[a];
3240
- return m ? m(f) : {};
3239
+ const p = U[a];
3240
+ return p ? p(f) : {};
3241
3241
  }
3242
3242
  function n(a) {
3243
3243
  switch (a) {
@@ -3376,35 +3376,35 @@ const Ji = {
3376
3376
  props: Ro,
3377
3377
  emits: ["change", "update:modelValue"],
3378
3378
  setup(e, t) {
3379
- var B;
3380
- const n = h(e.id), o = h(e.customClass), r = h(e.editor), l = h(e.label), a = h(e.modelValue), f = h(e.readonly), m = h(((B = e.editor) == null ? void 0 : B.required) || e.required), u = h(e.showLabel), v = h(e.visible);
3379
+ var x;
3380
+ const n = h(e.id), o = h(e.customClass), r = h(e.editor), l = h(e.label), a = h(e.modelValue), f = h(e.readonly), p = h(((x = e.editor) == null ? void 0 : x.required) || e.required), u = h(e.showLabel), v = h(e.visible);
3381
3381
  h(e.type);
3382
3382
  const c = h(), b = h(e.errors), i = G(() => u.value ? e.showLabelType : "none"), {
3383
3383
  resolveEditorProps: s,
3384
3384
  resolveEditorType: d,
3385
3385
  getChangeFunctionName: w,
3386
- getClearFunctionName: S
3387
- } = Xi(), k = G(() => ({
3386
+ getClearFunctionName: T
3387
+ } = Xi(), D = G(() => ({
3388
3388
  "form-group": !0,
3389
3389
  "farris-form-group": !0,
3390
3390
  "common-group": !0,
3391
3391
  "q-state-readonly": f.value
3392
3392
  }));
3393
- function L(T, F, O) {
3394
- a.value = F !== void 0 ? F : T, t.emit("update:modelValue", a.value), t.emit("change", a.value, {
3395
- newValue: T,
3396
- newModelValue: F,
3397
- parameters: O
3393
+ function V(F, I, E) {
3394
+ a.value = I !== void 0 ? I : F, t.emit("update:modelValue", a.value), t.emit("change", a.value, {
3395
+ newValue: F,
3396
+ newModelValue: I,
3397
+ parameters: E
3398
3398
  });
3399
3399
  }
3400
3400
  function y() {
3401
3401
  t.emit("update:modelValue", "");
3402
3402
  }
3403
- const p = G(() => {
3404
- const T = r.value.type || "input-group", F = d(T), O = s(T, r.value), x = w(T), D = S(r.value.type);
3405
- return D && (O[D] = y), O[x] = L, (O.id == null || O.id === "") && (O.id = n.value), T === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (O.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (O.onEndValueChange = r.value.onEndValueChange)) : T === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" ? (O["onUpdate:idValue"] = r.value["onUpdate:idValue"], O.id = n.value) : T === "collection-property-editor" && r.value.onSelectionChange && typeof r.value.onSelectionChange == "function" ? O.onSelectionChange = r.value.onSelectionChange : T === "property-editor" && (O.onBeforeOpenVariables = r.value.onBeforeOpenVariables), () => C(F, ot({
3403
+ const m = G(() => {
3404
+ const F = r.value.type || "input-group", I = d(F), E = s(F, r.value), S = w(F), B = T(r.value.type);
3405
+ return B && (E[B] = y), E[S] = V, (E.id == null || E.id === "") && (E.id = n.value), F === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (E.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (E.onEndValueChange = r.value.onEndValueChange)) : F === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" ? (E["onUpdate:idValue"] = r.value["onUpdate:idValue"], E.id = n.value) : F === "collection-property-editor" && r.value.onSelectionChange && typeof r.value.onSelectionChange == "function" ? E.onSelectionChange = r.value.onSelectionChange : F === "property-editor" && (E.onBeforeOpenVariables = r.value.onBeforeOpenVariables), () => C(I, ot({
3406
3406
  ref: c
3407
- }, O, {
3407
+ }, E, {
3408
3408
  modelValue: a.value,
3409
3409
  "onUpdate:modelValue": (P) => a.value = P
3410
3410
  }), t.slots);
@@ -3415,9 +3415,9 @@ const Ji = {
3415
3415
  errors: b.value
3416
3416
  }, null);
3417
3417
  }
3418
- return ve([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([T, F, O, x, D, P, $, H, V, J]) => {
3418
+ return ve([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([F, I, E, S, B, P, L, H, $, J]) => {
3419
3419
  var N;
3420
- n.value = T, o.value = F, r.value = O, l.value = x, a.value = D, f.value = P, m.value = ((N = r.value) == null ? void 0 : N.required) || $, u.value = H, v.value = V, b.value = J;
3420
+ n.value = F, o.value = I, r.value = E, l.value = S, a.value = B, f.value = P, p.value = ((N = r.value) == null ? void 0 : N.required) || L, u.value = H, v.value = $, b.value = J;
3421
3421
  }), t.expose({
3422
3422
  editorRef: c
3423
3423
  }), () => v.value && C("div", {
@@ -3427,16 +3427,16 @@ const Ji = {
3427
3427
  }, [C("div", {
3428
3428
  class: "farris-group-wrap"
3429
3429
  }, [C("div", {
3430
- class: k.value
3430
+ class: D.value
3431
3431
  }, [C(Wi, {
3432
3432
  id: `${n.value}-lable`,
3433
3433
  showType: i.value,
3434
- required: m.value,
3434
+ required: p.value,
3435
3435
  text: l.value,
3436
3436
  title: l.value
3437
3437
  }, null), C("div", {
3438
3438
  class: "farris-input-wrap"
3439
- }, [p.value(), g()])])])]);
3439
+ }, [m.value(), g()])])])]);
3440
3440
  }
3441
3441
  }), ee = {}, te = {}, ne = {};
3442
3442
  let Et = !1;
@@ -3448,10 +3448,10 @@ function Ki(e) {
3448
3448
  return;
3449
3449
  Et = !0;
3450
3450
  const t = {
3451
- schemaMap: ea,
3452
- propertyConfigSchemaMap: Kr,
3453
- propertyEffectMap: Zr,
3454
- schemaResolverMap: Qr
3451
+ schemaMap: Qr,
3452
+ propertyConfigSchemaMap: Zr,
3453
+ propertyEffectMap: Kr,
3454
+ schemaResolverMap: ea
3455
3455
  };
3456
3456
  e.forEach((n) => {
3457
3457
  n.registerDesigner && n.registerDesigner(ee, te, ne, t);
@@ -3658,7 +3658,7 @@ function ml() {
3658
3658
  return { onCopy: e };
3659
3659
  }
3660
3660
  function vl(e, t, n, o) {
3661
- const r = h(14), l = h(140), a = h(""), f = h(o.value.length), m = G(() => o.value), u = G(() => ({
3661
+ const r = h(14), l = h(140), a = h(""), f = h(o.value.length), p = G(() => o.value), u = G(() => ({
3662
3662
  "font-size": `${r.value}px`,
3663
3663
  height: "100%"
3664
3664
  }));
@@ -3676,7 +3676,7 @@ function vl(e, t, n, o) {
3676
3676
  rows: "4",
3677
3677
  maxlength: l.value,
3678
3678
  onInput: (c) => v(c)
3679
- }, [m.value]), C("span", {
3679
+ }, [p.value]), C("span", {
3680
3680
  class: "textarea-wordcount",
3681
3681
  title: a.value,
3682
3682
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
@@ -3735,13 +3735,13 @@ function bl(e, t) {
3735
3735
  if (i !== "" && i !== void 0 && i !== null) {
3736
3736
  i = "" + i;
3737
3737
  const d = i.length;
3738
- let w = "", S = 0;
3739
- for (let k = 0; k < d; k++) {
3740
- const L = i.charAt(k);
3741
- if (S++, encodeURI(L).length > 4 && S++, w = w.concat(L), S >= s)
3738
+ let w = "", T = 0;
3739
+ for (let D = 0; D < d; D++) {
3740
+ const V = i.charAt(D);
3741
+ if (T++, encodeURI(V).length > 4 && T++, w = w.concat(V), T >= s)
3742
3742
  return w = w.concat("..."), w;
3743
3743
  }
3744
- if (S < s)
3744
+ if (T < s)
3745
3745
  return i;
3746
3746
  }
3747
3747
  return "";
@@ -3749,18 +3749,18 @@ function bl(e, t) {
3749
3749
  const r = G(() => !!e.value && !!e.value.date), l = G(() => {
3750
3750
  const i = e.value && e.value.date || "";
3751
3751
  return `${t.exception.happend} : ${i}`;
3752
- }), a = G(() => !!e.value && !!e.value.detail), f = G(() => e.value ? n(e.value.detail) > 160 : !1), m = h(!1), u = G(() => m.value ? t.exception.collapse : t.exception.expand), v = G(() => {
3752
+ }), a = G(() => !!e.value && !!e.value.detail), f = G(() => e.value ? n(e.value.detail) > 160 : !1), p = h(!1), u = G(() => p.value ? t.exception.collapse : t.exception.expand), v = G(() => {
3753
3753
  const i = t.exception.detail + " : " + (e.value && e.value.detail) || "";
3754
- return m.value ? i : o(i, 160);
3754
+ return p.value ? i : o(i, 160);
3755
3755
  }), c = G(() => ({
3756
3756
  position: "absolute",
3757
3757
  right: 0,
3758
- bottom: m.value ? 0 : "2px",
3758
+ bottom: p.value ? 0 : "2px",
3759
3759
  color: "#2A87FF",
3760
3760
  cursor: "pointer"
3761
3761
  }));
3762
3762
  function b() {
3763
- m.value = !m.value;
3763
+ p.value = !p.value;
3764
3764
  }
3765
3765
  return () => C("div", {
3766
3766
  class: "toast-msg-detail"
@@ -3787,9 +3787,9 @@ function wl(e, t, n, o, r) {
3787
3787
  "f-icon": !0
3788
3788
  }, w = `f-icon-${s}`;
3789
3789
  return d[w] = !0, d;
3790
- }), f = G(() => n.value || l.value && l.value.message), m = G(() => o.value), u = G(() => !!o.value), v = G(() => !!l.value);
3790
+ }), f = G(() => n.value || l.value && l.value.message), p = G(() => o.value), u = G(() => !!o.value), v = G(() => !!l.value);
3791
3791
  function c() {
3792
- return v.value ? bl(l, r) : u.value ? Cl(m) : () => null;
3792
+ return v.value ? bl(l, r) : u.value ? Cl(p) : () => null;
3793
3793
  }
3794
3794
  const b = c(), i = G(() => r.locale === "en" ? {
3795
3795
  wordBreak: "keep-all",
@@ -3812,11 +3812,11 @@ function Sl(e, t, n, o) {
3812
3812
  onCopy: r
3813
3813
  } = t, {
3814
3814
  toShowFeedback: l
3815
- } = n, a = h(o.exception.copySuccess || "复制成功"), f = h(o.exception.copy || "复制详细信息"), m = h(e.exceptionInfo || {
3815
+ } = n, a = h(o.exception.copySuccess || "复制成功"), f = h(o.exception.copy || "复制详细信息"), p = h(e.exceptionInfo || {
3816
3816
  date: "",
3817
3817
  message: "",
3818
3818
  detail: ""
3819
- }), u = G(() => m.value && m.value.detail || "");
3819
+ }), u = G(() => p.value && p.value.detail || "");
3820
3820
  function v(c) {
3821
3821
  r(u.value).catch((b) => {
3822
3822
  a.value = o.exception.copyFailed || "复制失败";
@@ -3834,12 +3834,12 @@ function Sl(e, t, n, o) {
3834
3834
  }, [f.value])]);
3835
3835
  }
3836
3836
  function Tl(e, t, n, o, r) {
3837
- const l = h(e.type), a = h(e.buttons), f = h(e.exceptionInfo), m = h(r.ok || e.okButtonText), u = h(r.cancel || e.cancelButtonText), v = h(e.showCancelButton), c = h(e.showOkButton), b = G(() => !!(a.value && a.value.length)), i = G(() => f.value && f.value.message && f.value.detail), s = G(() => !(a.value && a.value.length) && (c.value || v.value)), d = Sl(e, n, o, r);
3838
- m.value === "关闭" ? m.value = r.close : m.value === "知道了" && (m.value = r.exception.roger);
3839
- function w(k) {
3837
+ const l = h(e.type), a = h(e.buttons), f = h(e.exceptionInfo), p = h(r.ok || e.okButtonText), u = h(r.cancel || e.cancelButtonText), v = h(e.showCancelButton), c = h(e.showOkButton), b = G(() => !!(a.value && a.value.length)), i = G(() => f.value && f.value.message && f.value.detail), s = G(() => !(a.value && a.value.length) && (c.value || v.value)), d = Sl(e, n, o, r);
3838
+ p.value === "关闭" ? p.value = r.close : p.value === "知道了" && (p.value = r.exception.roger);
3839
+ function w(D) {
3840
3840
  l.value === "question" && t.emit("reject"), t.emit("close");
3841
3841
  }
3842
- function S(k) {
3842
+ function T(D) {
3843
3843
  l.value === "question" && t.emit("accept"), t.emit("close");
3844
3844
  }
3845
3845
  return () => C("div", {
@@ -3851,14 +3851,14 @@ function Tl(e, t, n, o, r) {
3851
3851
  }, [u.value]), s.value && c.value && C("button", {
3852
3852
  type: "button",
3853
3853
  class: "btn btn-primary btn-lg",
3854
- onClick: S
3855
- }, [m.value]), b.value && a.value.length && a.value.map((k) => C("button", {
3854
+ onClick: T
3855
+ }, [p.value]), b.value && a.value.length && a.value.map((D) => C("button", {
3856
3856
  type: "button",
3857
- onClick: k.handle,
3858
- class: k.class
3859
- }, [k.iconClass && C("span", {
3860
- class: k.iconClass
3861
- }, null), k.text]))]);
3857
+ onClick: D.handle,
3858
+ class: D.class
3859
+ }, [D.iconClass && C("span", {
3860
+ class: D.iconClass
3861
+ }, null), D.text]))]);
3862
3862
  }
3863
3863
  function Fl(e) {
3864
3864
  const { t, locale: n } = Qt();
@@ -3892,18 +3892,18 @@ const Dt = /* @__PURE__ */ De({
3892
3892
  emits: ["accept", "reject", "close"],
3893
3893
  setup(e, t) {
3894
3894
  const n = Fl(e), o = h(e.type), r = h(e.title), l = h(e.detail), a = G(() => {
3895
- const S = {
3895
+ const T = {
3896
3896
  "modal-tips": !0,
3897
3897
  "d-flex": !0,
3898
3898
  "flex-row": !0
3899
- }, k = `messager-type-${o.value}`;
3900
- return S[k] = !0, S;
3899
+ }, D = `messager-type-${o.value}`;
3900
+ return T[D] = !0, T;
3901
3901
  }), f = G(() => {
3902
- const S = {
3902
+ const T = {
3903
3903
  cursor: "default"
3904
3904
  };
3905
- return o.value === "prompt" ? S.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (S.padding = "0.5rem 1.5rem 1rem 1.5rem"), S;
3906
- }), m = ml(), u = gl(e, o, r, l), v = hl(), {
3905
+ return o.value === "prompt" ? T.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (T.padding = "0.5rem 1.5rem 1rem 1.5rem"), T;
3906
+ }), p = ml(), u = gl(e, o, r, l), v = hl(), {
3907
3907
  feedbackStyle: c,
3908
3908
  feedbackMessage: b
3909
3909
  } = v;
@@ -3921,7 +3921,7 @@ const Dt = /* @__PURE__ */ De({
3921
3921
  return wl(e, o, r, l, n);
3922
3922
  }
3923
3923
  }
3924
- const d = s(), w = Tl(e, t, m, v, n);
3924
+ const d = s(), w = Tl(e, t, p, v, n);
3925
3925
  return () => C("div", {
3926
3926
  class: "farris-messager"
3927
3927
  }, [!e.exceptionInfo && C("div", {
@@ -4235,19 +4235,19 @@ class nt {
4235
4235
  }
4236
4236
  }
4237
4237
  function Al(e, t) {
4238
- const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(), m = h(), u = h(), v = h(), c = h(), b = h(), i = h(e.resizeable), s = h(), d = h(e.draggable), w = h(!1);
4239
- function S() {
4238
+ const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(), p = h(), u = h(), v = h(), c = h(), b = h(), i = h(e.resizeable), s = h(), d = h(e.draggable), w = h(!1);
4239
+ function T() {
4240
4240
  const N = o.value || document.body, j = window.getComputedStyle(N);
4241
4241
  if (!j || !n.value)
4242
4242
  return;
4243
- const M = ge.getTransformInfo(n.value), I = {};
4244
- m.value && (I.deltaL = n.value.offsetLeft - m.value.x, I.deltaT = n.value.offsetTop - m.value.y);
4243
+ const M = ge.getTransformInfo(n.value), O = {};
4244
+ p.value && (O.deltaL = n.value.offsetLeft - p.value.x, O.deltaT = n.value.offsetTop - p.value.y);
4245
4245
  const z = j.getPropertyValue("position");
4246
- I.width = N.clientWidth, I.height = N.clientHeight, I.pr = parseInt(j.getPropertyValue("padding-right"), 10), I.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), I.position = j.getPropertyValue("position"), z === "static" && (N.style.position = "relative"), I.translateX = M.x, I.translateY = M.y, c.value = I;
4246
+ O.width = N.clientWidth, O.height = N.clientHeight, O.pr = parseInt(j.getPropertyValue("padding-right"), 10), O.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), O.position = j.getPropertyValue("position"), z === "static" && (N.style.position = "relative"), O.translateX = M.x, O.translateY = M.y, c.value = O;
4247
4247
  }
4248
- function k(N) {
4248
+ function D(N) {
4249
4249
  if (n.value) {
4250
- l.value = nt.getCurrent(n.value), a.value = ge.getCurrent(n.value), f.value = l.value ? nt.copy(l.value) : null, m.value = a.value ? ge.copy(a.value) : null, S();
4250
+ l.value = nt.getCurrent(n.value), a.value = ge.getCurrent(n.value), f.value = l.value ? nt.copy(l.value) : null, p.value = a.value ? ge.copy(a.value) : null, T();
4251
4251
  const j = N.target.getAttribute("type") || "";
4252
4252
  u.value = {
4253
4253
  n: !!j.match(/n/),
@@ -4257,23 +4257,23 @@ function Al(e, t) {
4257
4257
  };
4258
4258
  }
4259
4259
  }
4260
- function L() {
4261
- var N, j, M, I;
4260
+ function V() {
4261
+ var N, j, M, O;
4262
4262
  if (n.value) {
4263
4263
  const z = n.value;
4264
- u.value && ((u.value.n || u.value.s) && ((N = f.value) != null && N.height) && (z.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((j = f.value) != null && j.width) && (z.style.width = f.value.width + "px"), m.value && ((M = m.value) != null && M.x && (z.style.left = m.value.x + "px"), (I = m.value) != null && I.y && (z.style.top = m.value.y + "px")));
4264
+ u.value && ((u.value.n || u.value.s) && ((N = f.value) != null && N.height) && (z.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((j = f.value) != null && j.width) && (z.style.width = f.value.width + "px"), p.value && ((M = p.value) != null && M.x && (z.style.left = p.value.x + "px"), (O = p.value) != null && O.y && (z.style.top = p.value.y + "px")));
4265
4265
  }
4266
4266
  }
4267
4267
  function y() {
4268
4268
  const N = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
4269
- f.value && m.value && u.value && l.value && (f.value.height < N && (f.value.height = N, u.value.n && a.value && (m.value.y = a.value.y + (l.value.height - N))), f.value.width < j && (f.value.width = j, u.value.w && a.value && (m.value.x = a.value.x + (l.value.width - j))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, a.value && u.value.n && (m.value.y = a.value.y + (l.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, u.value.w && a.value && (m.value.x = a.value.x + (l.value.width - e.maxWidth))));
4269
+ f.value && p.value && u.value && l.value && (f.value.height < N && (f.value.height = N, u.value.n && a.value && (p.value.y = a.value.y + (l.value.height - N))), f.value.width < j && (f.value.width = j, u.value.w && a.value && (p.value.x = a.value.x + (l.value.width - j))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, a.value && u.value.n && (p.value.y = a.value.y + (l.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, u.value.w && a.value && (p.value.x = a.value.x + (l.value.width - e.maxWidth))));
4270
4270
  }
4271
- function p() {
4271
+ function m() {
4272
4272
  if (o.value) {
4273
4273
  const N = c.value;
4274
- if (m.value && f.value && u.value && l.value) {
4275
- const j = N.width - N.pr - N.deltaL - N.translateX - m.value.x, M = N.height - N.pb - N.deltaT - N.translateY - m.value.y;
4276
- u.value.n && m.value.y + N.translateY < 0 && a.value && (m.value.y = -N.translateY, f.value.height = l.value.height + a.value.y + N.translateY), u.value.w && m.value.x + N.translateX < 0 && a.value && (m.value.x = -N.translateX, f.value.width = l.value.width + a.value.x + N.translateX), f.value.width > j && (f.value.width = j), f.value.height > M && (f.value.height = M);
4274
+ if (p.value && f.value && u.value && l.value) {
4275
+ const j = N.width - N.pr - N.deltaL - N.translateX - p.value.x, M = N.height - N.pb - N.deltaT - N.translateY - p.value.y;
4276
+ u.value.n && p.value.y + N.translateY < 0 && a.value && (p.value.y = -N.translateY, f.value.height = l.value.height + a.value.y + N.translateY), u.value.w && p.value.x + N.translateX < 0 && a.value && (p.value.x = -N.translateX, f.value.width = l.value.width + a.value.x + N.translateX), f.value.width > j && (f.value.width = j), f.value.height > M && (f.value.height = M);
4277
4277
  }
4278
4278
  }
4279
4279
  }
@@ -4282,21 +4282,21 @@ function Al(e, t) {
4282
4282
  return;
4283
4283
  N.subtract(r.value);
4284
4284
  const j = N.x, M = N.y;
4285
- u.value.n ? (m.value.y = a.value.y + M, f.value.height = l.value.height - M) : u.value.s && (f.value.height = l.value.height + M), u.value.e ? f.value.width = l.value.width + j : u.value.w && (f.value.width = l.value.width - j, m.value.x = a.value.x + j), p(), y(), L();
4285
+ u.value.n ? (p.value.y = a.value.y + M, f.value.height = l.value.height - M) : u.value.s && (f.value.height = l.value.height + M), u.value.e ? f.value.width = l.value.width + j : u.value.w && (f.value.width = l.value.width - j, p.value.x = a.value.x + j), m(), y(), V();
4286
4286
  }
4287
- function B(N) {
4287
+ function x(N) {
4288
4288
  if (!v.value)
4289
4289
  return;
4290
4290
  const j = ge.fromEvent(N);
4291
4291
  j && g(j);
4292
4292
  }
4293
- function T() {
4293
+ function F() {
4294
4294
  if (n.value) {
4295
4295
  const {
4296
4296
  width: N,
4297
4297
  height: j,
4298
4298
  x: M,
4299
- y: I
4299
+ y: O
4300
4300
  } = n.value.getBoundingClientRect(), z = ge.getTransformInfo(n.value);
4301
4301
  return {
4302
4302
  size: {
@@ -4305,64 +4305,64 @@ function Al(e, t) {
4305
4305
  },
4306
4306
  position: {
4307
4307
  x: M - z.x,
4308
- y: I - z.y
4308
+ y: O - z.y
4309
4309
  }
4310
4310
  };
4311
4311
  }
4312
4312
  return null;
4313
4313
  }
4314
- function F(N) {
4314
+ function I(N) {
4315
4315
  if (n.value) {
4316
- const j = T();
4316
+ const j = F();
4317
4317
  b.value = j;
4318
4318
  }
4319
- r.value = void 0, l.value = null, a.value = null, f.value = null, m.value = null, u.value = null, v.value = null, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", F);
4319
+ r.value = void 0, l.value = null, a.value = null, f.value = null, p.value = null, u.value = null, v.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", I);
4320
4320
  }
4321
- function O() {
4322
- document.addEventListener("mousemove", B), document.addEventListener("mouseup", F);
4321
+ function E() {
4322
+ document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
4323
4323
  }
4324
- function x(N) {
4325
- N instanceof MouseEvent && N.button === 2 || d.value && (document.body.click(), N.stopPropagation(), N.preventDefault(), r.value = ge.fromEvent(N), v.value = N.target, k(N), O());
4324
+ function S(N) {
4325
+ N instanceof MouseEvent && N.button === 2 || d.value && (document.body.click(), N.stopPropagation(), N.preventDefault(), r.value = ge.fromEvent(N), v.value = N.target, D(N), E());
4326
4326
  }
4327
- function D(N) {
4327
+ function B(N) {
4328
4328
  return n.value = N, i.value && C(at, null, [C("div", {
4329
4329
  class: "fv-resizable-handle fv-resizable-n",
4330
4330
  type: "n",
4331
- onMousedown: (j) => x(j)
4331
+ onMousedown: (j) => S(j)
4332
4332
  }, null), C("div", {
4333
4333
  class: "fv-resizable-handle fv-resizable-e",
4334
4334
  type: "e",
4335
- onMousedown: (j) => x(j)
4335
+ onMousedown: (j) => S(j)
4336
4336
  }, null), C("div", {
4337
4337
  class: "fv-resizable-handle fv-resizable-s",
4338
4338
  type: "s",
4339
- onMousedown: (j) => x(j)
4339
+ onMousedown: (j) => S(j)
4340
4340
  }, null), C("div", {
4341
4341
  class: "fv-resizable-handle fv-resizable-w",
4342
4342
  type: "w",
4343
- onMousedown: (j) => x(j)
4343
+ onMousedown: (j) => S(j)
4344
4344
  }, null), C("div", {
4345
4345
  class: "fv-resizable-handle fv-resizable-ne",
4346
4346
  type: "ne",
4347
- onMousedown: (j) => x(j)
4347
+ onMousedown: (j) => S(j)
4348
4348
  }, null), C("div", {
4349
4349
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
4350
4350
  type: "se",
4351
- onMousedown: (j) => x(j)
4351
+ onMousedown: (j) => S(j)
4352
4352
  }, null), C("div", {
4353
4353
  class: "fv-resizable-handle fv-resizable-sw",
4354
4354
  type: "sw",
4355
- onMousedown: (j) => x(j)
4355
+ onMousedown: (j) => S(j)
4356
4356
  }, null), C("div", {
4357
4357
  class: "fv-resizable-handle fv-resizable-nw",
4358
4358
  type: "nw",
4359
- onMousedown: (j) => x(j)
4359
+ onMousedown: (j) => S(j)
4360
4360
  }, null)]);
4361
4361
  }
4362
4362
  function P(N = !0) {
4363
4363
  document.body.click();
4364
- const j = o.value || document.body, M = nt.getCurrent(j), I = n.value;
4365
- N && I && (s.value = T(), s.value.transform = I.style.transform), M && I && (f.value = M, f.value.height -= 14, f.value.width -= 14, I.style.height = f.value.height + "px", I.style.width = f.value.width + "px", I.style.left = "7px", I.style.top = "7px", I.style.transform = "", b.value = {
4364
+ const j = o.value || document.body, M = nt.getCurrent(j), O = n.value;
4365
+ N && O && (s.value = F(), s.value.transform = O.style.transform), M && O && (f.value = M, f.value.height -= 14, f.value.width -= 14, O.style.height = f.value.height + "px", O.style.width = f.value.width + "px", O.style.left = "7px", O.style.top = "7px", O.style.transform = "", b.value = {
4366
4366
  size: f.value,
4367
4367
  position: {
4368
4368
  x: 0,
@@ -4370,21 +4370,21 @@ function Al(e, t) {
4370
4370
  }
4371
4371
  }, d.value = !1, w.value = !0);
4372
4372
  }
4373
- function $() {
4373
+ function L() {
4374
4374
  var N, j;
4375
4375
  if (document.body.click(), s.value) {
4376
4376
  const M = {
4377
4377
  width: s.value.size.width || 0,
4378
4378
  height: s.value.size.height || 0
4379
- }, I = {
4379
+ }, O = {
4380
4380
  x: (window.innerWidth - M.width) / 2,
4381
4381
  y: (window.innerHeight - M.height) / 2
4382
4382
  };
4383
- (N = f.value) == null || N.set(M), (j = m.value) == null || j.set(I);
4383
+ (N = f.value) == null || N.set(M), (j = p.value) == null || j.set(O);
4384
4384
  const z = n.value;
4385
- z.style.height = M.height + "px", z.style.width = M.width + "px", z.style.left = `${I.x}px`, z.style.top = `${I.y}px`, z.style.transform = "", b.value = {
4385
+ z.style.height = M.height + "px", z.style.width = M.width + "px", z.style.left = `${O.x}px`, z.style.top = `${O.y}px`, z.style.transform = "", b.value = {
4386
4386
  size: M,
4387
- position: I
4387
+ position: O
4388
4388
  }, d.value = e.draggable, w.value = !1;
4389
4389
  }
4390
4390
  }
@@ -4400,7 +4400,7 @@ function Al(e, t) {
4400
4400
  }
4401
4401
  }
4402
4402
  }
4403
- function V() {
4403
+ function $() {
4404
4404
  const N = () => {
4405
4405
  w.value ? P(!1) : H(), document.body.click();
4406
4406
  };
@@ -4408,13 +4408,13 @@ function Al(e, t) {
4408
4408
  window.removeEventListener("resize", N);
4409
4409
  };
4410
4410
  }
4411
- const J = V();
4411
+ const J = $();
4412
4412
  return {
4413
- renderResizeBar: D,
4413
+ renderResizeBar: B,
4414
4414
  boundingElement: o,
4415
4415
  resizedEventParam: b,
4416
4416
  maximize: P,
4417
- restore: $,
4417
+ restore: L,
4418
4418
  allowDrag: d,
4419
4419
  isMaximized: w,
4420
4420
  unWindowResizeHandle: J,
@@ -4422,78 +4422,78 @@ function Al(e, t) {
4422
4422
  };
4423
4423
  }
4424
4424
  function Rl(e, t, n) {
4425
- const o = h(), r = h(e.draggable), l = h(e.lockAxis), a = h(), f = h(), m = h(!1), u = h(new ge(0, 0)), v = h(new ge(0, 0)), c = h(new ge(0, 0)), b = h(new ge(0, 0));
4426
- ve(() => n.value, (B) => {
4427
- a.value.style.cursor = B ? "move" : "default";
4425
+ const o = h(), r = h(e.draggable), l = h(e.lockAxis), a = h(), f = h(), p = h(!1), u = h(new ge(0, 0)), v = h(new ge(0, 0)), c = h(new ge(0, 0)), b = h(new ge(0, 0));
4426
+ ve(() => n.value, (x) => {
4427
+ a.value.style.cursor = x ? "move" : "default";
4428
4428
  });
4429
- function i(B, T) {
4430
- if (T.tagName === "BUTTON")
4429
+ function i(x, F) {
4430
+ if (F.tagName === "BUTTON")
4431
4431
  return !1;
4432
- if (T === B)
4432
+ if (F === x)
4433
4433
  return !0;
4434
- for (const F in T.children)
4435
- if (Object.prototype.hasOwnProperty.call(T.children, F) && i(B, T.children[F]))
4434
+ for (const I in F.children)
4435
+ if (Object.prototype.hasOwnProperty.call(F.children, I) && i(x, F.children[I]))
4436
4436
  return !0;
4437
4437
  return !1;
4438
4438
  }
4439
4439
  function s() {
4440
- var O, x;
4441
- let B = c.value.x + v.value.x, T = c.value.y + v.value.y;
4442
- l.value === "x" ? (B = ((O = u.value) == null ? void 0 : O.x) || 0, c.value.x = 0) : l.value === "y" && (T = ((x = u.value) == null ? void 0 : x.y) || 0, c.value.y = 0);
4443
- const F = `translate3d(${Math.round(B)}px, ${Math.round(T)}px, 0px)`;
4444
- o.value && (o.value.style.transform = F), b.value.x = B, b.value.y = T;
4440
+ var E, S;
4441
+ let x = c.value.x + v.value.x, F = c.value.y + v.value.y;
4442
+ l.value === "x" ? (x = ((E = u.value) == null ? void 0 : E.x) || 0, c.value.x = 0) : l.value === "y" && (F = ((S = u.value) == null ? void 0 : S.y) || 0, c.value.y = 0);
4443
+ const I = `translate3d(${Math.round(x)}px, ${Math.round(F)}px, 0px)`;
4444
+ o.value && (o.value.style.transform = I), b.value.x = x, b.value.y = F;
4445
4445
  }
4446
4446
  function d() {
4447
4447
  if (!f.value || !o.value)
4448
4448
  return null;
4449
- const B = f.value.getBoundingClientRect(), T = o.value.getBoundingClientRect(), F = {
4450
- top: B.top < T.top,
4451
- right: B.right > T.right,
4452
- bottom: B.bottom > T.bottom,
4453
- left: B.left < T.left
4449
+ const x = f.value.getBoundingClientRect(), F = o.value.getBoundingClientRect(), I = {
4450
+ top: x.top < F.top,
4451
+ right: x.right > F.right,
4452
+ bottom: x.bottom > F.bottom,
4453
+ left: x.left < F.left
4454
4454
  };
4455
- return F.top || (c.value.y -= T.top - B.top), F.bottom || (c.value.y -= T.bottom - B.bottom), F.right || (c.value.x -= T.right - B.right), F.left || (c.value.x -= T.left - B.left), s(), F;
4455
+ return I.top || (c.value.y -= F.top - x.top), I.bottom || (c.value.y -= F.bottom - x.bottom), I.right || (c.value.x -= F.right - x.right), I.left || (c.value.x -= F.left - x.left), s(), I;
4456
4456
  }
4457
- function w(B) {
4458
- B && (u.value && B.subtract(u.value), c.value.set(B), s(), d());
4457
+ function w(x) {
4458
+ x && (u.value && x.subtract(u.value), c.value.set(x), s(), d());
4459
4459
  }
4460
- function S(B) {
4461
- m.value && r.value && (B.stopPropagation(), B.preventDefault(), w(ge.fromEvent(B, a.value)));
4460
+ function T(x) {
4461
+ p.value && r.value && (x.stopPropagation(), x.preventDefault(), w(ge.fromEvent(x, a.value)));
4462
4462
  }
4463
- function k() {
4464
- var B;
4465
- m.value && (m.value = !1, v.value.add(c.value), c.value.reset(), (B = o.value) == null || B.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", k));
4463
+ function D() {
4464
+ var x;
4465
+ p.value && (p.value = !1, v.value.add(c.value), c.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", D));
4466
4466
  }
4467
- function L() {
4468
- !m.value && a.value && (m.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", S), document.addEventListener("mouseup", k));
4467
+ function V() {
4468
+ !p.value && a.value && (p.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", T), document.addEventListener("mouseup", D));
4469
4469
  }
4470
4470
  function y() {
4471
4471
  if (o.value) {
4472
- const B = ge.getTransformInfo(o.value);
4473
- v.value.set(B);
4472
+ const x = ge.getTransformInfo(o.value);
4473
+ v.value.set(x);
4474
4474
  return;
4475
4475
  }
4476
4476
  v.value.reset();
4477
4477
  }
4478
- function p(B) {
4479
- if (!n.value || B instanceof MouseEvent && B.button === 2)
4478
+ function m(x) {
4479
+ if (!n.value || x instanceof MouseEvent && x.button === 2)
4480
4480
  return;
4481
- const T = B.target || B.srcElement;
4482
- a.value !== void 0 && T && !i(T, a.value) || r.value !== !1 && (document.body.click(), B.stopPropagation(), B.preventDefault(), u.value = ge.fromEvent(B, o.value), y(), L());
4481
+ const F = x.target || x.srcElement;
4482
+ a.value !== void 0 && F && !i(F, a.value) || r.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), u.value = ge.fromEvent(x, o.value), y(), V());
4483
4483
  }
4484
- function g(B, T, F) {
4485
- if (r.value && T) {
4486
- if (B)
4487
- a.value = B;
4484
+ function g(x, F, I) {
4485
+ if (r.value && F) {
4486
+ if (x)
4487
+ a.value = x;
4488
4488
  else if (e.dragHandle) {
4489
4489
  if (e.dragHandle instanceof HTMLElement)
4490
4490
  a.value = e.dragHandle;
4491
4491
  else if (typeof e.dragHandle == "string") {
4492
- const O = T.querySelector(e.dragHandle);
4493
- O && (a.value = O);
4492
+ const E = F.querySelector(e.dragHandle);
4493
+ E && (a.value = E);
4494
4494
  }
4495
4495
  }
4496
- o.value = T, f.value = F, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", p)) : r.value = !1;
4496
+ o.value = F, f.value = I, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", m)) : r.value = !1;
4497
4497
  }
4498
4498
  }
4499
4499
  return {
@@ -4534,11 +4534,11 @@ const rt = /* @__PURE__ */ De({
4534
4534
  props: Ho,
4535
4535
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
4536
4536
  setup(e, t) {
4537
- const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), l = h(""), a = h(e.class), f = h(e.fitContent), m = h(e.showHeader), u = h(""), v = h(e.showCloseButton), c = h(e.showMaxButton), b = h(!1), i = h(e.dialogType), s = h(e.src), d = h(""), w = h(e.showButtons), S = h(e.title), k = h(e.containment || null), L = h(), {
4537
+ const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), l = h(""), a = h(e.class), f = h(e.fitContent), p = h(e.showHeader), u = h(""), v = h(e.showCloseButton), c = h(e.showMaxButton), b = h(!1), i = h(e.dialogType), s = h(e.src), d = h(""), w = h(e.showButtons), T = h(e.title), D = h(e.containment || null), V = h(), {
4538
4538
  t: y
4539
4539
  } = Qt();
4540
- S.value === "错误提示" && (S.value = y("messageBox.errorTitle"));
4541
- const p = h(!1);
4540
+ T.value === "错误提示" && (T.value = y("messageBox.errorTitle"));
4541
+ const m = h(!1);
4542
4542
  function g(A, ie) {
4543
4543
  const ye = ie ? "accept" : "cancel";
4544
4544
  Promise.resolve().then(() => {
@@ -4550,7 +4550,7 @@ const rt = /* @__PURE__ */ De({
4550
4550
  be && (r.value = !1, t.emit("update:modelValue", !1), ie != null && t.emit(ie ? "accept" : "cancel"), t.emit("closed", A));
4551
4551
  });
4552
4552
  }
4553
- const B = [{
4553
+ const x = [{
4554
4554
  name: "cancel",
4555
4555
  text: y("messageBox.cancel") || "取消",
4556
4556
  class: "btn btn-secondary",
@@ -4564,15 +4564,15 @@ const rt = /* @__PURE__ */ De({
4564
4564
  handle: (A) => {
4565
4565
  g(A, !0);
4566
4566
  }
4567
- }], T = h(e.buttons && e.buttons.length ? e.buttons : B), F = G(() => !!u.value), O = G(() => !!w.value && !!T.value), x = h(), D = h(), P = h(!1), {
4568
- renderResizeBar: $,
4567
+ }], F = h(e.buttons && e.buttons.length ? e.buttons : x), I = G(() => !!u.value), E = G(() => !!w.value && !!F.value), S = h(), B = h(), P = h(!1), {
4568
+ renderResizeBar: L,
4569
4569
  maximize: H,
4570
- restore: V,
4570
+ restore: $,
4571
4571
  boundingElement: J,
4572
4572
  resizedEventParam: N,
4573
4573
  allowDrag: j,
4574
4574
  unWindowResizeHandle: M,
4575
- moveToCenter: I
4575
+ moveToCenter: O
4576
4576
  } = Al(e), {
4577
4577
  registerDraggle: z
4578
4578
  } = Rl(e, t, j);
@@ -4581,16 +4581,16 @@ const rt = /* @__PURE__ */ De({
4581
4581
  }
4582
4582
  function le() {
4583
4583
  const A = document.querySelectorAll(".farris-modal").length;
4584
- (!A || A - 1 <= 0) && document.body.classList.remove("modal-open"), L.value && L.value.classList.remove("show");
4584
+ (!A || A - 1 <= 0) && document.body.classList.remove("modal-open"), V.value && V.value.classList.remove("show");
4585
4585
  }
4586
4586
  ve(() => e.title, (A, ie) => {
4587
- A !== ie && (S.value = A);
4587
+ A !== ie && (T.value = A);
4588
4588
  }), ve(() => e.modelValue, (A, ie) => {
4589
4589
  A !== ie && (r.value = A, r.value && e.draggable && Jt(() => {
4590
- D.value && !k.value && (k.value = D.value.parentElement, J.value = k.value, z(x.value, D.value, J.value), I());
4591
- }), A || (k.value && (k.value = null), le())), r.value ? p.value = oe() : (P.value = !1, j.value = e.draggable);
4590
+ B.value && !D.value && (D.value = B.value.parentElement, J.value = D.value, z(S.value, B.value, J.value), O());
4591
+ }), A || (D.value && (D.value = null), le())), r.value ? m.value = oe() : (P.value = !1, j.value = e.draggable);
4592
4592
  }), ve(() => e.showHeader, (A, ie) => {
4593
- A !== ie && (m.value = A);
4593
+ A !== ie && (p.value = A);
4594
4594
  }), ve(() => e.showButtons, (A, ie) => {
4595
4595
  A !== ie && (w.value = A);
4596
4596
  }), ve(() => N.value, (A, ie) => {
@@ -4631,13 +4631,13 @@ const rt = /* @__PURE__ */ De({
4631
4631
  display: "block",
4632
4632
  zIndex: K()
4633
4633
  };
4634
- return e.mask || (A.pointerEvents = "none", A.backgroundColor = "transparent"), p.value && (A.backgroundColor = "transparent"), A;
4634
+ return e.mask || (A.pointerEvents = "none", A.backgroundColor = "transparent"), m.value && (A.backgroundColor = "transparent"), A;
4635
4635
  }), Je = G(() => ({
4636
4636
  "modal-content": !0,
4637
- "modal-content-has-header": m.value
4637
+ "modal-content-has-header": p.value
4638
4638
  })), Re = G(() => {
4639
4639
  const A = {
4640
- display: m.value ? "" : "none"
4640
+ display: p.value ? "" : "none"
4641
4641
  };
4642
4642
  return A["pointer-events"] = j.value ? "auto" : "none", A;
4643
4643
  }), Ne = G(() => ({
@@ -4662,7 +4662,7 @@ const rt = /* @__PURE__ */ De({
4662
4662
  });
4663
4663
  function he(A) {
4664
4664
  if (A == null || A.stopPropagation(), P.value) {
4665
- P.value = !1, V();
4665
+ P.value = !1, $();
4666
4666
  return;
4667
4667
  }
4668
4668
  H(), P.value = !0;
@@ -4671,17 +4671,17 @@ const rt = /* @__PURE__ */ De({
4671
4671
  A.handle && await A.handle(ie, A) && t.emit("closed", ie);
4672
4672
  }
4673
4673
  function ze(A) {
4674
- A.width && (n.value = A.width), A.height && (o.value = A.height), A.buttons && (T.value = A.buttons), A.title && (S.value = A.title);
4674
+ A.width && (n.value = A.width), A.height && (o.value = A.height), A.buttons && (F.value = A.buttons), A.title && (T.value = A.title);
4675
4675
  }
4676
4676
  let He = null, Pe = null;
4677
4677
  hn(() => {
4678
- p.value = oe();
4678
+ m.value = oe();
4679
4679
  }), Xe(() => {
4680
- D.value && !k.value && (k.value = D.value.parentElement, J.value = k.value, z(x.value, D.value, J.value)), X.value && document.body.classList.add("modal-open"), He = zl(e, t), Pe = Hl(e, t);
4680
+ B.value && !D.value && (D.value = B.value.parentElement, J.value = D.value, z(S.value, B.value, J.value)), X.value && document.body.classList.add("modal-open"), He = zl(e, t), Pe = Hl(e, t);
4681
4681
  }), wt(() => {
4682
4682
  M && M(), He && He.remove(), Pe && Pe.remove();
4683
4683
  }), t.expose({
4684
- modalElementRef: D,
4684
+ modalElementRef: B,
4685
4685
  updateModalOptions: ze,
4686
4686
  close: g,
4687
4687
  maxDialog: he,
@@ -4710,7 +4710,7 @@ const rt = /* @__PURE__ */ De({
4710
4710
  return C("div", {
4711
4711
  class: "modal-footer",
4712
4712
  style: lt.value
4713
- }, [T.value && T.value.map((A) => {
4713
+ }, [F.value && F.value.map((A) => {
4714
4714
  const ie = h(A.disabled);
4715
4715
  return C("button", {
4716
4716
  name: A.name,
@@ -4727,26 +4727,26 @@ const rt = /* @__PURE__ */ De({
4727
4727
  }
4728
4728
  function Ze() {
4729
4729
  return C("div", {
4730
- ref: x,
4730
+ ref: S,
4731
4731
  class: "modal-header",
4732
4732
  style: Re.value
4733
4733
  }, [t.slots.headerTemplate ? t.slots.headerTemplate() : C("div", {
4734
4734
  class: "modal-title"
4735
- }, [F.value && C("span", {
4735
+ }, [I.value && C("span", {
4736
4736
  class: u.value,
4737
4737
  style: "margin-right: 8px"
4738
4738
  }, null), C("span", {
4739
4739
  class: "modal-title-label"
4740
- }, [S.value])]), C("div", {
4740
+ }, [T.value])]), C("div", {
4741
4741
  class: "actions"
4742
4742
  }, [_e()])]);
4743
4743
  }
4744
4744
  function $e() {
4745
- return t.slots.footerTemplate ? t.slots.footerTemplate() : O.value && pt();
4745
+ return t.slots.footerTemplate ? t.slots.footerTemplate() : E.value && pt();
4746
4746
  }
4747
4747
  function qe(A) {
4748
4748
  if (A.stopPropagation(), e.allowClickMaskToClose) {
4749
- if (A.target !== L.value)
4749
+ if (A.target !== V.value)
4750
4750
  return;
4751
4751
  g(A, !1);
4752
4752
  }
@@ -4757,10 +4757,10 @@ const rt = /* @__PURE__ */ De({
4757
4757
  id: l.value,
4758
4758
  class: ce.value,
4759
4759
  style: se.value,
4760
- ref: D
4760
+ ref: B
4761
4761
  }, [C("div", {
4762
4762
  class: Je.value
4763
- }, [m.value && Ze(), C("div", {
4763
+ }, [p.value && Ze(), C("div", {
4764
4764
  class: it.value
4765
4765
  }, [(ie = (A = t.slots).default) == null ? void 0 : ie.call(A), i.value === "iframe" && C("iframe", {
4766
4766
  title: l.value,
@@ -4768,7 +4768,7 @@ const rt = /* @__PURE__ */ De({
4768
4768
  width: "100%",
4769
4769
  frameborder: "0",
4770
4770
  src: s.value
4771
- }, null)]), $e()]), !f.value && D.value && !P.value && $(D.value)]);
4771
+ }, null)]), $e()]), !f.value && B.value && !P.value && L(B.value)]);
4772
4772
  }
4773
4773
  function ct(A) {
4774
4774
  return A || "body";
@@ -4781,7 +4781,7 @@ const rt = /* @__PURE__ */ De({
4781
4781
  appear: !0
4782
4782
  }, {
4783
4783
  default: () => [C("div", {
4784
- ref: L,
4784
+ ref: V,
4785
4785
  class: pe.value,
4786
4786
  style: fe.value,
4787
4787
  onClick: qe
@@ -4804,13 +4804,13 @@ function _l(e) {
4804
4804
  wt(() => {
4805
4805
  document.body.removeChild(t);
4806
4806
  });
4807
- const l = h(), a = h(e.class || ""), f = h(!!e.showButtons), m = h(!!e.showHeader), u = h(e.showCloseButton == null ? !0 : e.showCloseButton), v = h(!0), c = h(e.title || ""), b = e.acceptCallback || (() => {
4807
+ const l = h(), a = h(e.class || ""), f = h(!!e.showButtons), p = h(!!e.showHeader), u = h(e.showCloseButton == null ? !0 : e.showCloseButton), v = h(!0), c = h(e.title || ""), b = e.acceptCallback || (() => {
4808
4808
  }), i = e.rejectCallback || (() => {
4809
- }), s = e.closedCallback || ((L) => {
4810
- }), d = e.resizeHandle || ((L) => {
4811
- }), w = e.stopMoveHandle || ((L) => {
4812
- }), S = qo(e), k = (L) => {
4813
- v.value = !1, n.unmount(), s(L);
4809
+ }), s = e.closedCallback || ((V) => {
4810
+ }), d = e.resizeHandle || ((V) => {
4811
+ }), w = e.stopMoveHandle || ((V) => {
4812
+ }), T = qo(e), D = (V) => {
4813
+ v.value = !1, n.unmount(), s(V);
4814
4814
  };
4815
4815
  return Xe(() => {
4816
4816
  }), r.expose({
@@ -4819,23 +4819,23 @@ function _l(e) {
4819
4819
  ref: l,
4820
4820
  class: a.value,
4821
4821
  modelValue: v.value,
4822
- "onUpdate:modelValue": (L) => v.value = L,
4822
+ "onUpdate:modelValue": (V) => v.value = V,
4823
4823
  title: c.value,
4824
4824
  width: e.width,
4825
4825
  height: e.height,
4826
4826
  buttons: e.buttons,
4827
- "show-header": m.value,
4827
+ "show-header": p.value,
4828
4828
  "show-buttons": f.value,
4829
4829
  "show-close-button": u.value,
4830
4830
  "show-max-button": !1,
4831
4831
  onAccept: b,
4832
4832
  onCancel: i,
4833
4833
  fitContent: e.fitContent == null ? !0 : e.fitContent,
4834
- onClosed: k,
4834
+ onClosed: D,
4835
4835
  onResize: d,
4836
4836
  onStopMove: w
4837
4837
  }, {
4838
- default: () => [S && S(n)]
4838
+ default: () => [T && T(n)]
4839
4839
  });
4840
4840
  }
4841
4841
  });
@@ -4888,57 +4888,57 @@ class Uo {
4888
4888
  showHeader: !0
4889
4889
  }, t)), r = h(!0), l = o.value.acceptCallback || (() => {
4890
4890
  }), a = o.value.rejectCallback || (() => {
4891
- }), f = o.value.closedCallback || ((p, g) => {
4892
- }), m = o.value.resizeHandle || ((p) => {
4893
- }), u = t.stopMoveHandle || ((p) => {
4891
+ }), f = o.value.closedCallback || ((m, g) => {
4892
+ }), p = o.value.resizeHandle || ((m) => {
4893
+ }), u = t.stopMoveHandle || ((m) => {
4894
4894
  });
4895
4895
  let v;
4896
- const c = qo(o.value), b = (p) => {
4897
- var B;
4896
+ const c = qo(o.value), b = (m) => {
4897
+ var x;
4898
4898
  r.value = !1;
4899
- const g = (B = p == null ? void 0 : p.target) == null ? void 0 : B.classList.contains("modal_close");
4900
- f(p, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
4901
- }, i = (p) => {
4902
- b(p), v && Jt(() => {
4899
+ const g = (x = m == null ? void 0 : m.target) == null ? void 0 : x.classList.contains("modal_close");
4900
+ f(m, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
4901
+ }, i = (m) => {
4902
+ b(m), v && Jt(() => {
4903
4903
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Ut(null, n), v = null, this.modalRef.value = null, this.modalRefs) {
4904
- const g = Object.keys(this.modalRefs).map((B) => Number(B));
4904
+ const g = Object.keys(this.modalRefs).map((x) => Number(x));
4905
4905
  g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
4906
4906
  }
4907
4907
  this.isUseEscCloseModal.value = !1;
4908
4908
  });
4909
- }, s = (p) => {
4909
+ }, s = (m) => {
4910
4910
  var g;
4911
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((g = this.activeModalInstance.value) == null || g.close(p == null ? void 0 : p.event));
4911
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((g = this.activeModalInstance.value) == null || g.close(m == null ? void 0 : m.event));
4912
4912
  }, {
4913
4913
  width: d,
4914
4914
  height: w
4915
- } = o.value, S = this.adaptToWindow(d || 500, w || 320);
4916
- Object.assign(o.value, S);
4917
- const k = () => C(rt, ot({
4915
+ } = o.value, T = this.adaptToWindow(d || 500, w || 320);
4916
+ Object.assign(o.value, T);
4917
+ const D = () => C(rt, ot({
4918
4918
  ref: this.modalRef,
4919
4919
  modelValue: r.value,
4920
- "onUpdate:modelValue": (p) => r.value = p
4920
+ "onUpdate:modelValue": (m) => r.value = m
4921
4921
  }, o.value, {
4922
4922
  onAccept: l,
4923
4923
  onCancel: a,
4924
4924
  onClosed: i,
4925
- onResize: m,
4925
+ onResize: p,
4926
4926
  onEsc: s,
4927
4927
  onStopMove: u
4928
4928
  }), {
4929
4929
  default: () => [c && c(this.app)]
4930
4930
  });
4931
- return v = ((p) => {
4932
- const g = ir(k, p);
4931
+ return v = ((m) => {
4932
+ const g = ir(D, m);
4933
4933
  return g.appContext = this.appContext, Ut(g, n), g;
4934
4934
  })({
4935
4935
  ...o.value
4936
4936
  // 'onUpdate:modelValue': onUpdateModelValue,
4937
4937
  }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
4938
- update: (p) => {
4938
+ update: (m) => {
4939
4939
  o.value = {
4940
4940
  ...o.value,
4941
- ...p
4941
+ ...m
4942
4942
  }, v && Ut(lr(v, {
4943
4943
  ...o
4944
4944
  }), n);
@@ -4965,11 +4965,11 @@ const Ve = class Ve {
4965
4965
  }), o = !1, r = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", a = n.acceptCallback || (() => {
4966
4966
  }), f = n.rejectCallback || (() => {
4967
4967
  });
4968
- let m = null, u = new Uo(Ve.app);
4968
+ let p = null, u = new Uo(Ve.app);
4969
4969
  const v = () => {
4970
- m && (m == null || m.destroy(), u = null);
4970
+ p && (p == null || p.destroy(), u = null);
4971
4971
  };
4972
- return m = u == null ? void 0 : u.open({
4972
+ return p = u == null ? void 0 : u.open({
4973
4973
  class: "modal-message modal-message-type-info",
4974
4974
  title: l,
4975
4975
  showButtons: o,
@@ -5069,7 +5069,7 @@ const ql = /* @__PURE__ */ De({
5069
5069
  entityDataSource: l,
5070
5070
  checkAndGetSelectedEntity: a,
5071
5071
  resolveEntityDataSource: f,
5072
- entityTreeRowOption: m,
5072
+ entityTreeRowOption: p,
5073
5073
  initialSelectedEntity: u,
5074
5074
  isMainEntityInitialSelected: v
5075
5075
  } = n, c = Bo(e), {
@@ -5078,20 +5078,20 @@ const ql = /* @__PURE__ */ De({
5078
5078
  fieldDataSource: s,
5079
5079
  fieldTreeGridRef: d,
5080
5080
  fieldTreeRowOption: w,
5081
- fieldSelectionOption: S,
5082
- checkAndGetSelectedFields: k,
5083
- currentComponentType: L
5081
+ fieldSelectionOption: T,
5082
+ checkAndGetSelectedFields: D,
5083
+ currentComponentType: V
5084
5084
  } = c, y = new Kt();
5085
5085
  y.globalConfig = {
5086
5086
  position: "top-center"
5087
5087
  };
5088
- const p = [{
5088
+ const m = [{
5089
5089
  name: "卡片面板",
5090
5090
  value: "response-form"
5091
5091
  }, {
5092
5092
  name: "表格",
5093
5093
  value: "data-grid"
5094
- }], g = h(), B = h(""), T = h([{
5094
+ }], g = h(), x = h(""), F = h([{
5095
5095
  id: "selectComponentType",
5096
5096
  title: "选择组件类型"
5097
5097
  }, {
@@ -5100,28 +5100,28 @@ const ql = /* @__PURE__ */ De({
5100
5100
  }, {
5101
5101
  id: "selectFields",
5102
5102
  title: "选择显示字段"
5103
- }]), F = h(0), O = h(""), x = G(() => (z) => ({
5103
+ }]), I = h(0), E = h(""), S = G(() => (z) => ({
5104
5104
  "f-utils-fill": !0,
5105
5105
  border: z !== "selectComponentType",
5106
5106
  "mx-3": !0,
5107
5107
  "my-2": !0,
5108
5108
  "position-relative": !0,
5109
- "d-none": T.value[F.value].id !== z
5109
+ "d-none": F.value[I.value].id !== z
5110
5110
  }));
5111
- function D() {
5112
- e.bindingEntityId && (u != null && u.value) && (B.value = u.value.name), e.componentType || (g.value = v.value ? "response-form" : "data-grid");
5111
+ function B() {
5112
+ e.bindingEntityId && (u != null && u.value) && (x.value = u.value.name), e.componentType || (g.value = v.value ? "response-form" : "data-grid");
5113
5113
  }
5114
5114
  function P() {
5115
5115
  const z = a();
5116
5116
  z && (i(z), d.value.updateDataSource(s.value));
5117
5117
  }
5118
5118
  hn(() => {
5119
- e.steps && (T.value = T.value.filter((z) => e.steps.includes(z.id))), O.value = T.value[0].id, f(), D();
5119
+ e.steps && (F.value = F.value.filter((z) => e.steps.includes(z.id))), E.value = F.value[0].id, f(), B();
5120
5120
  }), Xe(() => {
5121
5121
  var z, oe;
5122
- r && ((z = u.value) != null && z.id) && r.value.selectItemById((oe = u.value) == null ? void 0 : oe.id), T.value.length === 1 && T.value[0].id === "selectFields" && P();
5122
+ r && ((z = u.value) != null && z.id) && r.value.selectItemById((oe = u.value) == null ? void 0 : oe.id), F.value.length === 1 && F.value[0].id === "selectFields" && P();
5123
5123
  });
5124
- function $(z) {
5124
+ function L(z) {
5125
5125
  var oe;
5126
5126
  (oe = d == null ? void 0 : d.value) != null && oe.clearSelection && d.value.clearSelection();
5127
5127
  }
@@ -5136,13 +5136,13 @@ const ql = /* @__PURE__ */ De({
5136
5136
  rowNumber: {
5137
5137
  enable: !1
5138
5138
  },
5139
- "row-option": m,
5139
+ "row-option": p,
5140
5140
  columnOption: {
5141
5141
  fitColumns: !0
5142
5142
  }
5143
5143
  }, null);
5144
5144
  }
5145
- function V() {
5145
+ function $() {
5146
5146
  return C(Yt, {
5147
5147
  key: 2,
5148
5148
  ref: d,
@@ -5163,14 +5163,14 @@ const ql = /* @__PURE__ */ De({
5163
5163
  fitColumns: !0
5164
5164
  },
5165
5165
  "row-option": w,
5166
- selection: S
5166
+ selection: T
5167
5167
  }, null);
5168
5168
  }
5169
5169
  function J() {
5170
5170
  const z = {
5171
5171
  editable: !1,
5172
5172
  type: "combo-list",
5173
- data: p,
5173
+ data: m,
5174
5174
  idField: "value",
5175
5175
  valueField: "value",
5176
5176
  textField: "name"
@@ -5199,22 +5199,22 @@ const ql = /* @__PURE__ */ De({
5199
5199
  "onUpdate:modelValue": (le) => g.value = le,
5200
5200
  required: "true",
5201
5201
  editor: z,
5202
- onChange: $
5202
+ onChange: L
5203
5203
  }, null), C(fn, {
5204
5204
  label: "组件标题",
5205
5205
  customClass: "col-12",
5206
- modelValue: B.value,
5207
- "onUpdate:modelValue": (le) => B.value = le,
5206
+ modelValue: x.value,
5207
+ "onUpdate:modelValue": (le) => x.value = le,
5208
5208
  required: "true",
5209
5209
  editor: oe
5210
5210
  }, null)])])])])]);
5211
5211
  }
5212
5212
  function N() {
5213
- F.value--, O.value = T.value[F.value].id;
5213
+ I.value--, E.value = F.value[I.value].id;
5214
5214
  }
5215
5215
  function j() {
5216
5216
  var z;
5217
- switch (O.value) {
5217
+ switch (E.value) {
5218
5218
  case "selectEntity": {
5219
5219
  P();
5220
5220
  break;
@@ -5224,27 +5224,27 @@ const ql = /* @__PURE__ */ De({
5224
5224
  y.warning("请先选择组件类型");
5225
5225
  return;
5226
5226
  }
5227
- if (!((z = B.value) != null && z.trim())) {
5227
+ if (!((z = x.value) != null && z.trim())) {
5228
5228
  y.warning("请先填写组件标题");
5229
5229
  return;
5230
5230
  }
5231
- L.value = g.value, i(u.value), d.value.updateDataSource(s.value);
5231
+ V.value = g.value, i(u.value), d.value.updateDataSource(s.value);
5232
5232
  break;
5233
5233
  }
5234
5234
  }
5235
- F.value++, O.value = T.value[F.value].id;
5235
+ I.value++, E.value = F.value[I.value].id;
5236
5236
  }
5237
5237
  function M() {
5238
5238
  t.emit("cancel");
5239
5239
  }
5240
- function I() {
5240
+ function O() {
5241
5241
  var le;
5242
- const z = a(), oe = k();
5242
+ const z = a(), oe = D();
5243
5243
  if (z) {
5244
5244
  const X = {
5245
5245
  bindingType: "entity"
5246
5246
  };
5247
- X.bindingEntity = z, X.bindTo = n.entityBindToMap.get(((le = X.bindingEntity) == null ? void 0 : le.label) || ""), X.bindingEntityFields = oe, X.entityTitle = B.value, t.emit("submit", {
5247
+ X.bindingEntity = z, X.bindTo = n.entityBindToMap.get(((le = X.bindingEntity) == null ? void 0 : le.label) || ""), X.bindingEntityFields = oe, X.entityTitle = x.value, t.emit("submit", {
5248
5248
  bindingContext: X,
5249
5249
  componentType: g.value
5250
5250
  });
@@ -5254,42 +5254,42 @@ const ql = /* @__PURE__ */ De({
5254
5254
  var z;
5255
5255
  return C("div", {
5256
5256
  class: "h-100 d-flex flex-column"
5257
- }, [((z = T.value) == null ? void 0 : z.length) > 1 ? C(Ti, {
5258
- steps: T,
5259
- activeIndex: F,
5257
+ }, [((z = F.value) == null ? void 0 : z.length) > 1 ? C(Ti, {
5258
+ steps: F,
5259
+ activeIndex: I,
5260
5260
  style: "align-self:center"
5261
5261
  }, null) : "", C("div", {
5262
- class: x.value("selectEntity"),
5262
+ class: S.value("selectEntity"),
5263
5263
  style: "border-radius:10px;"
5264
5264
  }, [H()]), C("div", {
5265
- class: x.value("selectComponentType"),
5265
+ class: S.value("selectComponentType"),
5266
5266
  style: "border-radius:10px;"
5267
5267
  }, [J()]), C("div", {
5268
- class: x.value("selectFields"),
5268
+ class: S.value("selectFields"),
5269
5269
  style: "border-radius:10px;"
5270
- }, [V()]), C("div", {
5270
+ }, [$()]), C("div", {
5271
5271
  class: "modal-footer"
5272
5272
  }, [C("button", {
5273
5273
  class: "btn btn-secondary",
5274
5274
  onClick: M
5275
- }, [Ie("取消")]), F.value !== 0 ? C("button", {
5275
+ }, [Ie("取消")]), I.value !== 0 ? C("button", {
5276
5276
  class: "btn btn-secondary",
5277
5277
  onClick: N
5278
- }, [Ie("上一步")]) : "", F.value !== T.value.length - 1 ? C("button", {
5278
+ }, [Ie("上一步")]) : "", I.value !== F.value.length - 1 ? C("button", {
5279
5279
  class: "btn btn-primary",
5280
5280
  onClick: j
5281
- }, [Ie("下一步")]) : "", F.value === T.value.length - 1 ? C("button", {
5281
+ }, [Ie("下一步")]) : "", I.value === F.value.length - 1 ? C("button", {
5282
5282
  class: "btn btn-primary",
5283
- onClick: I
5283
+ onClick: O
5284
5284
  }, [Ie("确定")]) : ""])]);
5285
5285
  };
5286
5286
  }
5287
5287
  });
5288
5288
  function mn(e) {
5289
5289
  let t, n;
5290
- function o(y, p, g) {
5291
- var T;
5292
- const B = {
5290
+ function o(y, m, g) {
5291
+ var F;
5292
+ const x = {
5293
5293
  componentType: y.getAttribute("data-controltype") || "",
5294
5294
  componentFeature: y.getAttribute("data-feature") || "",
5295
5295
  componentCategory: y.getAttribute("data-category") || "",
@@ -5297,34 +5297,34 @@ function mn(e) {
5297
5297
  sourceType: y.getAttribute("data-sourceType") || "move",
5298
5298
  parentComponentInstance: g.componentInstance.value,
5299
5299
  sourceElement: y,
5300
- sourceContainer: p,
5300
+ sourceContainer: m,
5301
5301
  targetContainer: g,
5302
5302
  bindingSourceContext: null,
5303
5303
  bindingTargetId: y.getAttribute("data-fieldId") || ""
5304
5304
  };
5305
- return y.componentInstance && (B.componentType = (T = y.componentInstance.value.schema) == null ? void 0 : T.type), B;
5305
+ return y.componentInstance && (x.componentType = (F = y.componentInstance.value.schema) == null ? void 0 : F.type), x;
5306
5306
  }
5307
5307
  function r(y) {
5308
- var B, T;
5308
+ var x, F;
5309
5309
  const {
5310
- bindingContext: p,
5310
+ bindingContext: m,
5311
5311
  componentType: g
5312
5312
  } = y;
5313
- n.bindingSourceContext = p, g && (n.componentType = g), (B = t == null ? void 0 : t.modalRef) != null && B.value.close && ((T = t == null ? void 0 : t.modalRef) == null || T.value.close());
5313
+ n.bindingSourceContext = m, g && (n.componentType = g), (x = t == null ? void 0 : t.modalRef) != null && x.value.close && ((F = t == null ? void 0 : t.modalRef) == null || F.value.close());
5314
5314
  }
5315
5315
  function l() {
5316
- var y, p;
5317
- n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((p = t == null ? void 0 : t.modalRef) == null || p.value.close());
5316
+ var y, m;
5317
+ n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((m = t == null ? void 0 : t.modalRef) == null || m.value.close());
5318
5318
  }
5319
5319
  function a() {
5320
5320
  const {
5321
5321
  componentType: y,
5322
- bindingTargetId: p
5322
+ bindingTargetId: m
5323
5323
  } = n;
5324
5324
  let g = [];
5325
- return y && (y === "list-view" ? g = ["selectEntity"] : g = ["selectEntity", "selectFields"]), p && (g = ["selectComponentType", "selectFields"]), () => C(at, null, [C(ql, {
5325
+ return y && (y === "list-view" ? g = ["selectEntity"] : g = ["selectEntity", "selectFields"]), m && (g = ["selectComponentType", "selectFields"]), () => C(at, null, [C(ql, {
5326
5326
  componentType: y,
5327
- bindingEntityId: p,
5327
+ bindingEntityId: m,
5328
5328
  steps: g,
5329
5329
  designerHostService: e,
5330
5330
  onSubmit: r,
@@ -5334,7 +5334,7 @@ function mn(e) {
5334
5334
  }), Ie(" ")]);
5335
5335
  }
5336
5336
  function f() {
5337
- return new Promise((y, p) => {
5337
+ return new Promise((y, m) => {
5338
5338
  const {
5339
5339
  componentType: g
5340
5340
  } = n;
@@ -5356,48 +5356,48 @@ function mn(e) {
5356
5356
  });
5357
5357
  });
5358
5358
  }
5359
- function m() {
5360
- var y, p;
5361
- n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((p = t == null ? void 0 : t.modalRef) == null || p.value.close());
5359
+ function p() {
5360
+ var y, m;
5361
+ n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((m = t == null ? void 0 : t.modalRef) == null || m.value.close());
5362
5362
  }
5363
5363
  function u(y) {
5364
- let p = "", g = "";
5365
- return R["field-set"] && y.schema.type === R["field-set"].type && (p = y.schema.id, g = y.schema.title), {
5366
- groupId: p,
5364
+ let m = "", g = "";
5365
+ return R["field-set"] && y.schema.type === R["field-set"].type && (m = y.schema.id, g = y.schema.title), {
5366
+ groupId: m,
5367
5367
  groupName: g
5368
5368
  };
5369
5369
  }
5370
5370
  function v(y) {
5371
- var O, x;
5371
+ var E, S;
5372
5372
  if (!y || !y.selectedData || !y.bindingType)
5373
5373
  return;
5374
5374
  const {
5375
- selectedData: p,
5375
+ selectedData: m,
5376
5376
  bindingType: g
5377
5377
  } = y, {
5378
- groupId: B,
5379
- groupName: T
5380
- } = u(n.parentComponentInstance), F = {
5378
+ groupId: x,
5379
+ groupName: F
5380
+ } = u(n.parentComponentInstance), I = {
5381
5381
  bindingType: "field"
5382
5382
  };
5383
5383
  if (g === "Form") {
5384
- const D = p;
5385
- F.entityFieldNode = D, F.designViewModelField = Ft({}, D, {
5386
- groupId: B,
5387
- groupName: T
5388
- }), n.bindingSourceContext = F;
5384
+ const B = m;
5385
+ I.entityFieldNode = B, I.designViewModelField = Ft({}, B, {
5386
+ groupId: x,
5387
+ groupName: F
5388
+ }), n.bindingSourceContext = I;
5389
5389
  } else {
5390
- const D = p;
5391
- F.variableFieldNode = Ft({}, D, {
5392
- groupId: B,
5393
- groupName: T
5394
- }), n.bindingSourceContext = F;
5390
+ const B = m;
5391
+ I.variableFieldNode = Ft({}, B, {
5392
+ groupId: x,
5393
+ groupName: F
5394
+ }), n.bindingSourceContext = I;
5395
5395
  }
5396
- (O = t == null ? void 0 : t.modalRef) != null && O.value.close && ((x = t == null ? void 0 : t.modalRef) == null || x.value.close());
5396
+ (E = t == null ? void 0 : t.modalRef) != null && E.value.close && ((S = t == null ? void 0 : t.modalRef) == null || S.value.close());
5397
5397
  }
5398
5398
  function c() {
5399
- var y, p;
5400
- n.bindingSourceContext = null, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((p = t == null ? void 0 : t.modalRef) == null || p.value.close());
5399
+ var y, m;
5400
+ n.bindingSourceContext = null, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((m = t == null ? void 0 : t.modalRef) == null || m.value.close());
5401
5401
  }
5402
5402
  function b() {
5403
5403
  const {
@@ -5411,22 +5411,22 @@ function mn(e) {
5411
5411
  type: n.componentType
5412
5412
  }
5413
5413
  }
5414
- }, B = {
5414
+ }, x = {
5415
5415
  enable: !1
5416
5416
  };
5417
5417
  return () => C(at, null, [C(ia, {
5418
5418
  editorParams: g,
5419
5419
  showCustomFooter: !0,
5420
- bindingType: B,
5420
+ bindingType: x,
5421
5421
  onSubmit: v,
5422
- onCancel: m,
5422
+ onCancel: p,
5423
5423
  onSkip: c
5424
5424
  }, {
5425
5425
  default: () => [Ie(" ")]
5426
5426
  }), Ie(" ")]);
5427
5427
  }
5428
5428
  function i() {
5429
- return new Promise((y, p) => {
5429
+ return new Promise((y, m) => {
5430
5430
  t = e.modalService.open({
5431
5431
  title: "选择绑定",
5432
5432
  width: 800,
@@ -5448,60 +5448,60 @@ function mn(e) {
5448
5448
  function s() {
5449
5449
  const {
5450
5450
  formSchemaUtils: y
5451
- } = e, p = n.parentComponentInstance.belongedComponentId, g = /* @__PURE__ */ new Set(), B = y.getFormSchema().module, T = B.components.find((x) => x.id === p), F = y.getViewModelById(T.viewModel);
5452
- let O = T.componentType;
5453
- return (O === "frame" || O === "table") && (O = "form"), B.viewmodels.forEach((x) => {
5454
- if (!x.fields || x.fields.length === 0)
5451
+ } = e, m = n.parentComponentInstance.belongedComponentId, g = /* @__PURE__ */ new Set(), x = y.getFormSchema().module, F = x.components.find((S) => S.id === m), I = y.getViewModelById(F.viewModel);
5452
+ let E = F.componentType;
5453
+ return (E === "frame" || E === "table") && (E = "form"), x.viewmodels.forEach((S) => {
5454
+ if (!S.fields || S.fields.length === 0)
5455
5455
  return;
5456
- const D = B.components.find(($) => $.viewModel === x.id);
5456
+ const B = x.components.find((L) => L.viewModel === S.id);
5457
5457
  let {
5458
5458
  componentType: P
5459
- } = D;
5460
- (P === "frame" || P === "table") && (P = "form"), !(P !== O || x.bindTo !== F.bindTo) && x.fields.forEach(($) => {
5461
- g.add($.id);
5459
+ } = B;
5460
+ (P === "frame" || P === "table") && (P = "form"), !(P !== E || S.bindTo !== I.bindTo) && S.fields.forEach((L) => {
5461
+ g.add(L.id);
5462
5462
  });
5463
5463
  }), g;
5464
5464
  }
5465
5465
  function d() {
5466
5466
  const {
5467
5467
  bindingTargetId: y,
5468
- parentComponentInstance: p
5468
+ parentComponentInstance: m
5469
5469
  } = n;
5470
5470
  if (!y) {
5471
5471
  n.bindingSourceContext = void 0;
5472
5472
  return;
5473
5473
  }
5474
5474
  if (s().has(y)) {
5475
- const B = new ba();
5476
- B.globalConfig = {
5475
+ const x = new ba();
5476
+ x.globalConfig = {
5477
5477
  position: "top-center"
5478
- }, B.warning("表单已经包含此字段,请勿重复添加"), n.bindingSourceContext = void 0;
5478
+ }, x.warning("表单已经包含此字段,请勿重复添加"), n.bindingSourceContext = void 0;
5479
5479
  return;
5480
5480
  } else {
5481
- const B = {
5481
+ const x = {
5482
5482
  bindingType: "field"
5483
- }, T = e.formSchemaUtils.getComponentById(p.belongedComponentId), F = e.schemaService.getFieldByIDAndVMID(y, T.viewModel), O = Ft({}, F.schemaField);
5484
- B.entityFieldNode = O;
5483
+ }, F = e.formSchemaUtils.getComponentById(m.belongedComponentId), I = e.schemaService.getFieldByIDAndVMID(y, F.viewModel), E = Ft({}, I.schemaField);
5484
+ x.entityFieldNode = E;
5485
5485
  const {
5486
- groupId: x,
5487
- groupName: D
5486
+ groupId: S,
5487
+ groupName: B
5488
5488
  } = u(n.parentComponentInstance);
5489
- B.designViewModelField = Ft({}, O, {
5490
- groupId: x,
5491
- groupName: D
5492
- }), n.bindingSourceContext = B;
5489
+ x.designViewModelField = Ft({}, E, {
5490
+ groupId: S,
5491
+ groupName: B
5492
+ }), n.bindingSourceContext = x;
5493
5493
  }
5494
5494
  }
5495
5495
  function w() {
5496
5496
  return n.bindingTargetId ? d() : i();
5497
5497
  }
5498
- function S() {
5498
+ function T() {
5499
5499
  const {
5500
5500
  parentComponentInstance: y
5501
- } = n, p = y.addNewChildComponentSchema(n, e);
5502
- n.componentSchema = p;
5501
+ } = n, m = y.addNewChildComponentSchema(n, e);
5502
+ n.componentSchema = m;
5503
5503
  }
5504
- async function k() {
5504
+ async function D() {
5505
5505
  const {
5506
5506
  componentCategory: y
5507
5507
  } = n;
@@ -5516,12 +5516,12 @@ function mn(e) {
5516
5516
  }
5517
5517
  }
5518
5518
  }
5519
- async function L(y, p, g) {
5520
- return n = o(y, p, g), await k(), n.bindingSourceContext === void 0 ? null : (S(), n);
5519
+ async function V(y, m, g) {
5520
+ return n = o(y, m, g), await D(), n.bindingSourceContext === void 0 ? null : (T(), n);
5521
5521
  }
5522
5522
  return {
5523
5523
  getComponentResolveContext: o,
5524
- resolveComponentCreationContextByDrop: L
5524
+ resolveComponentCreationContextByDrop: V
5525
5525
  };
5526
5526
  }
5527
5527
  function Ul(e, t) {
@@ -5531,29 +5531,29 @@ function Ul(e, t) {
5531
5531
  return !1;
5532
5532
  const w = !0;
5533
5533
  if (i.componentInstance && i.componentInstance.value.getDragScopeElement) {
5534
- const S = i.componentInstance.value.getDragScopeElement();
5535
- if (S && !S.contains(s))
5534
+ const T = i.componentInstance.value.getDragScopeElement();
5535
+ if (T && !T.contains(s))
5536
5536
  return !1;
5537
5537
  }
5538
5538
  if (s.componentInstance && s.componentInstance.value.canAccepts) {
5539
- const k = mn(e).getComponentResolveContext(i, d, s);
5540
- return s.componentInstance.value.canAccepts(k);
5539
+ const D = mn(e).getComponentResolveContext(i, d, s);
5540
+ return s.componentInstance.value.canAccepts(D);
5541
5541
  }
5542
5542
  return w;
5543
5543
  }
5544
5544
  function r(i, s) {
5545
- const d = s.getBoundingClientRect(), w = i.getBoundingClientRect(), S = w.top >= d.top, k = w.top < d.bottom;
5546
- return S && k;
5545
+ const d = s.getBoundingClientRect(), w = i.getBoundingClientRect(), T = w.top >= d.top, D = w.top < d.bottom;
5546
+ return T && D;
5547
5547
  }
5548
5548
  function l(i, s) {
5549
5549
  const d = i.querySelector(".dgComponentSelected");
5550
5550
  if (!(!d || s === 0) && r(d, i)) {
5551
5551
  const w = d.querySelector(".component-btn-group");
5552
5552
  if (w) {
5553
- const S = w.querySelector("div");
5554
- if (S && S.style.top) {
5555
- const k = Number.parseFloat(S.style.top);
5556
- S.style.top = k - s + "px";
5553
+ const T = w.querySelector("div");
5554
+ if (T && T.style.top) {
5555
+ const D = Number.parseFloat(T.style.top);
5556
+ T.style.top = D - s + "px";
5557
5557
  }
5558
5558
  }
5559
5559
  }
@@ -5567,9 +5567,9 @@ function Ul(e, t) {
5567
5567
  if (d.getAttribute("data-noattach"))
5568
5568
  w = Number(d.getAttribute("data-position"));
5569
5569
  else {
5570
- const S = d.componentInstance.value.schema;
5571
- let k = { id: S.id };
5572
- S.type === "component" && (k = { component: S.id }), w = ln(i.componentInstance.value.contents, k), w = w === -1 ? 0 : w;
5570
+ const T = d.componentInstance.value.schema;
5571
+ let D = { id: T.id };
5572
+ T.type === "component" && (D = { component: T.id }), w = ln(i.componentInstance.value.contents, D), w = w === -1 ? 0 : w;
5573
5573
  }
5574
5574
  w !== -1 && i.componentInstance.value.contents.splice(w, 0, s);
5575
5575
  } else
@@ -5577,22 +5577,22 @@ function Ul(e, t) {
5577
5577
  return w;
5578
5578
  }
5579
5579
  function f(i, s, d, w) {
5580
- mn(e).resolveComponentCreationContextByDrop(i, d, s).then((k) => {
5581
- if (!k)
5580
+ mn(e).resolveComponentCreationContextByDrop(i, d, s).then((D) => {
5581
+ if (!D)
5582
5582
  return;
5583
- const L = k.componentSchema;
5584
- L && (t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(L), a(s, L, w));
5583
+ const V = D.componentSchema;
5584
+ V && (t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(V), a(s, V, w));
5585
5585
  }), s.contains(i) && s.removeChild(i);
5586
5586
  }
5587
- function m(i, s, d, w) {
5588
- let S, k = -1;
5587
+ function p(i, s, d, w) {
5588
+ let T, D = -1;
5589
5589
  if (i.componentInstance && i.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
5590
- const p = i.componentInstance.value.getBelongedComponentInstance(i.componentInstance);
5591
- p && (i = h(p.elementRef).value.parentElement, d = i.parentElement);
5590
+ const m = i.componentInstance.value.getBelongedComponentInstance(i.componentInstance);
5591
+ m && (i = h(m.elementRef).value.parentElement, d = i.parentElement);
5592
5592
  }
5593
- const L = i.componentInstance && i.componentInstance.value.schema;
5594
- let y = { id: L && L.id };
5595
- L.type === "component" && (y = { component: L && L.id }), k = ln(d.componentInstance.value.contents, y), k !== -1 && d.componentInstance.value.contents && (S = d.componentInstance.value.contents.splice(k, 1), S = S[0]), a(s, S, w), d.componentInstance && d.componentInstance.value.onChildElementMovedOut && d.componentInstance.value.onChildElementMovedOut(i), s.componentInstance && s.componentInstance.value.onAcceptMovedChildElement && s.componentInstance.value.onAcceptMovedChildElement(i, d);
5593
+ const V = i.componentInstance && i.componentInstance.value.schema;
5594
+ let y = { id: V && V.id };
5595
+ V.type === "component" && (y = { component: V && V.id }), D = ln(d.componentInstance.value.contents, y), D !== -1 && d.componentInstance.value.contents && (T = d.componentInstance.value.contents.splice(D, 1), T = T[0]), a(s, T, w), d.componentInstance && d.componentInstance.value.onChildElementMovedOut && d.componentInstance.value.onChildElementMovedOut(i), s.componentInstance && s.componentInstance.value.onAcceptMovedChildElement && s.componentInstance.value.onAcceptMovedChildElement(i, d);
5596
5596
  }
5597
5597
  function u(i, s, d, w) {
5598
5598
  if (!s || i.contains(s))
@@ -5605,7 +5605,7 @@ function Ul(e, t) {
5605
5605
  break;
5606
5606
  }
5607
5607
  default:
5608
- d.componentInstance.value.contents ? m(i, s, d, w) : s.contains(i) && s.removeChild(i);
5608
+ d.componentInstance.value.contents ? p(i, s, d, w) : s.contains(i) && s.removeChild(i);
5609
5609
  }
5610
5610
  Ye.value++;
5611
5611
  }
@@ -5617,8 +5617,8 @@ function Ul(e, t) {
5617
5617
  revertOnSpill: !0,
5618
5618
  // 判断是否可移动
5619
5619
  moves(s, d, w) {
5620
- let S = !0;
5621
- return s.classList.contains("no-drag") && (S = !1), s.componentInstance && (S = !!w.getAttribute("data-dragging-icon")), S;
5620
+ let T = !0;
5621
+ return s.classList.contains("no-drag") && (T = !1), s.componentInstance && (T = !!w.getAttribute("data-dragging-icon")), T;
5622
5622
  },
5623
5623
  // 判断是否可拷贝
5624
5624
  copy(s) {
@@ -5630,15 +5630,15 @@ function Ul(e, t) {
5630
5630
  },
5631
5631
  // 判断目标区域是否可接收拖拽的控件
5632
5632
  accepts(s, d, w) {
5633
- const S = o(s, d, w), k = i.lastElementChild;
5634
- return S ? k.className = k.className.replace("undroppable", "") : k.className.includes("undroppable") || (k.className += " undroppable"), S;
5633
+ const T = o(s, d, w), D = i.lastElementChild;
5634
+ return T ? D.className = D.className.replace("undroppable", "") : D.className.includes("undroppable") || (D.className += " undroppable"), T;
5635
5635
  }
5636
5636
  }).on("over", (s, d) => {
5637
5637
  d.className += " drag-over";
5638
5638
  }).on("out", (s, d) => {
5639
5639
  d.className = d.className.replace("drag-over", "").replace(" ", "");
5640
- }).on("drop", (s, d, w, S) => {
5641
- u(s, d, w, S);
5640
+ }).on("drop", (s, d, w, T) => {
5641
+ u(s, d, w, T);
5642
5642
  }).on("dragend", (s, d) => {
5643
5643
  l(i, d);
5644
5644
  }));
@@ -5712,7 +5712,7 @@ const Xt = /* @__PURE__ */ De({
5712
5712
  props: Gl,
5713
5713
  emits: ["selectionChange", "dragEnd"],
5714
5714
  setup(e, t) {
5715
- const n = h(`${e.modelValue.id}-component`), o = h(e.canMove), r = h(e.canDelete), l = h(!1), a = h(e.modelValue), f = h(e.componentId || ""), m = h(""), u = h(""), v = h(e.customClass), c = h(), b = me("canvas-dragula"), i = h(), s = me("design-item-context");
5715
+ const n = h(`${e.modelValue.id}-component`), o = h(e.canMove), r = h(e.canDelete), l = h(!1), a = h(e.modelValue), f = h(e.componentId || ""), p = h(""), u = h(""), v = h(e.customClass), c = h(), b = me("canvas-dragula"), i = h(), s = me("design-item-context");
5716
5716
  function d(M) {
5717
5717
  M && Object.assign(a.value, M);
5718
5718
  }
@@ -5725,14 +5725,14 @@ const Xt = /* @__PURE__ */ De({
5725
5725
  updateContextSchema: d
5726
5726
  };
5727
5727
  yt("design-item-context", w);
5728
- const S = me("useFormSchema"), k = me("designer-host-service"), L = me("external-container-id"), y = G(() => {
5728
+ const T = me("useFormSchema"), D = me("designer-host-service"), V = me("external-container-id"), y = G(() => {
5729
5729
  var oe;
5730
- const M = e.modelValue.appearance && e.modelValue.appearance.class || "", I = ((oe = i.value) == null ? void 0 : oe.getCustomButtons) && i.value.getCustomButtons();
5730
+ const M = e.modelValue.appearance && e.modelValue.appearance.class || "", O = ((oe = i.value) == null ? void 0 : oe.getCustomButtons) && i.value.getCustomButtons();
5731
5731
  let z = {
5732
5732
  "farris-component": !0,
5733
5733
  // 受position-relative影响,整个容器的高度不能被撑起
5734
5734
  "flex-fill": a.value.id === "root-component",
5735
- "position-relative": o.value && r.value || (I == null ? void 0 : I.length),
5735
+ "position-relative": o.value && r.value || (O == null ? void 0 : O.length),
5736
5736
  "farris-nested": l.value,
5737
5737
  "can-move": o.value,
5738
5738
  "d-none": c.value && c.value.classList.contains("d-none"),
@@ -5740,19 +5740,19 @@ const Xt = /* @__PURE__ */ De({
5740
5740
  dgComponentFocused: c.value && c.value.classList.contains("dgComponentFocused")
5741
5741
  };
5742
5742
  return z[`farris-component-${a.value.type}`] = !0, z = dt(z, M), z = dt(z, u.value), z = dt(z, v.value), z;
5743
- }), p = G(() => {
5744
- const M = {}, I = e.modelValue.appearance && e.modelValue.appearance.style || "";
5745
- return I && I.split(";").reduce((z, oe) => {
5743
+ }), m = G(() => {
5744
+ const M = {}, O = e.modelValue.appearance && e.modelValue.appearance.style || "";
5745
+ return O && O.split(";").reduce((z, oe) => {
5746
5746
  const [le, X] = oe.split(":");
5747
5747
  return z[le] = X, z;
5748
- }, M), m.value && m.value.split(";").reduce((z, oe) => {
5748
+ }, M), p.value && p.value.split(";").reduce((z, oe) => {
5749
5749
  const [le, X] = oe.split(":");
5750
5750
  return le && (z[le] = X), z;
5751
5751
  }, M), M;
5752
5752
  });
5753
- function g(M, I) {
5753
+ function g(M, O) {
5754
5754
  var le, X, pe;
5755
- if (M && (M.preventDefault(), M.stopPropagation()), (le = k == null ? void 0 : k.designerContext) != null && le.checkCanDeleteControl && !k.designerContext.checkCanDeleteControl(I))
5755
+ if (M && (M.preventDefault(), M.stopPropagation()), (le = D == null ? void 0 : D.designerContext) != null && le.checkCanDeleteControl && !D.designerContext.checkCanDeleteControl(O))
5756
5756
  return;
5757
5757
  if (i.value.triggerBelongedComponentToDeleteWhenDeleted) {
5758
5758
  const ce = i.value.getBelongedComponentInstance(i);
@@ -5762,27 +5762,27 @@ const Xt = /* @__PURE__ */ De({
5762
5762
  }
5763
5763
  return;
5764
5764
  }
5765
- i.value.onRemoveComponent(k);
5766
- let z = s, oe = (ce) => ce.id === I.id;
5767
- if (I.type === "component" && (z = s == null ? void 0 : s.parent, oe = (ce) => ce.component === I.id), z && z.schema.contents) {
5765
+ i.value.onRemoveComponent(D);
5766
+ let z = s, oe = (ce) => ce.id === O.id;
5767
+ if (O.type === "component" && (z = s == null ? void 0 : s.parent, oe = (ce) => ce.component === O.id), z && z.schema.contents) {
5768
5768
  const ce = z.schema.contents.findIndex(oe);
5769
5769
  z.schema.contents.splice(ce, 1), Ye.value++, t.emit("selectionChange");
5770
5770
  }
5771
5771
  }
5772
- function B(M) {
5772
+ function x(M) {
5773
5773
  return r.value && C("div", {
5774
5774
  role: "button",
5775
5775
  class: "btn component-settings-button",
5776
5776
  title: "删除",
5777
5777
  ref: "removeComponent",
5778
- onClick: (I) => {
5779
- g(I, M);
5778
+ onClick: (O) => {
5779
+ g(O, M);
5780
5780
  }
5781
5781
  }, [C("i", {
5782
5782
  class: "f-icon f-icon-yxs_delete"
5783
5783
  }, null)]);
5784
5784
  }
5785
- function T() {
5785
+ function F() {
5786
5786
  return o.value && C("div", {
5787
5787
  role: "button",
5788
5788
  class: "btn component-settings-button",
@@ -5793,9 +5793,9 @@ const Xt = /* @__PURE__ */ De({
5793
5793
  class: "cmp_move f-icon f-icon-yxs_move"
5794
5794
  }, null)]);
5795
5795
  }
5796
- function F() {
5797
- var I;
5798
- const M = ((I = i.value) == null ? void 0 : I.getCustomButtons) && i.value.getCustomButtons();
5796
+ function I() {
5797
+ var O;
5798
+ const M = ((O = i.value) == null ? void 0 : O.getCustomButtons) && i.value.getCustomButtons();
5799
5799
  return M && !!M.length && M.map((z) => C("div", {
5800
5800
  role: "button",
5801
5801
  class: `btn component-settings-button ${z.class || ""}`,
@@ -5806,34 +5806,34 @@ const Xt = /* @__PURE__ */ De({
5806
5806
  class: z.icon
5807
5807
  }, null)]));
5808
5808
  }
5809
- function O(M) {
5809
+ function E(M) {
5810
5810
  return C("div", {
5811
5811
  class: "component-btn-group",
5812
5812
  "data-noattach": "true"
5813
- }, [C("div", null, [B(M), T(), F()])]);
5813
+ }, [C("div", null, [x(M), F(), I()])]);
5814
5814
  }
5815
- function x(M, I, z, oe) {
5816
- t.emit("selectionChange", M, I, z, oe);
5815
+ function S(M, O, z, oe) {
5816
+ t.emit("selectionChange", M, O, z, oe);
5817
5817
  }
5818
- function D() {
5818
+ function B() {
5819
5819
  t.emit("dragEnd");
5820
5820
  }
5821
5821
  function P(M) {
5822
- let I;
5822
+ let O;
5823
5823
  const z = M.type, oe = ee[z], le = te[z], X = le ? le(M) : {};
5824
5824
  X.customClass = e.ignore ? X.customClass : "", X.componentId = f.value, X.id = M.id;
5825
5825
  const pe = M.contents && M.contents.length === 0;
5826
5826
  return M.contents && !!M.contents.length && oe ? C(oe, ot({
5827
5827
  ref: i
5828
- }, X), Xl(I = M.contents.map((se) => C(Xt, {
5828
+ }, X), Xl(O = M.contents.map((se) => C(Xt, {
5829
5829
  key: se.id,
5830
5830
  modelValue: se,
5831
5831
  "onUpdate:modelValue": (K) => se = K,
5832
5832
  componentId: f.value,
5833
- onSelectionChange: x,
5834
- onDragEnd: D
5835
- }, null))) ? I : {
5836
- default: () => [I]
5833
+ onSelectionChange: S,
5834
+ onDragEnd: B
5835
+ }, null))) ? O : {
5836
+ default: () => [O]
5837
5837
  }) : oe ? pe ? C(oe, ot({
5838
5838
  ref: i
5839
5839
  }, X), {
@@ -5842,43 +5842,43 @@ const Xt = /* @__PURE__ */ De({
5842
5842
  ref: i
5843
5843
  }, X), null) : C("div", null, null);
5844
5844
  }
5845
- function $() {
5846
- const M = S.externalFormSchema.get(L);
5845
+ function L() {
5846
+ const M = T.externalFormSchema.get(V);
5847
5847
  if (M != null && M.content)
5848
5848
  return M == null ? void 0 : M.content;
5849
5849
  }
5850
5850
  function H(M) {
5851
5851
  if (M.type === "component-ref") {
5852
- const oe = (L ? $() : S == null ? void 0 : S.getFormSchema()).module.components.find((X) => X.id === M.component), le = h(oe);
5852
+ const oe = (V ? L() : T == null ? void 0 : T.getFormSchema()).module.components.find((X) => X.id === M.component), le = h(oe);
5853
5853
  if (oe)
5854
5854
  return C(Xt, {
5855
5855
  key: oe.id,
5856
5856
  modelValue: le.value,
5857
5857
  "onUpdate:modelValue": (X) => le.value = X,
5858
5858
  componentId: oe.id,
5859
- onSelectionChange: x,
5860
- onDragEnd: D
5859
+ onSelectionChange: S,
5860
+ onDragEnd: B
5861
5861
  }, null);
5862
5862
  }
5863
5863
  }
5864
- ve([() => e.modelValue, () => e.componentId], ([M, I]) => {
5865
- a.value = M, n.value = `${M.id}-component`, I && (f.value = I), sr(c);
5864
+ ve([() => e.modelValue, () => e.componentId], ([M, O]) => {
5865
+ a.value = M, n.value = `${M.id}-component`, O && (f.value = O), sr(c);
5866
5866
  }, {
5867
5867
  deep: !0
5868
5868
  });
5869
- function V(M) {
5869
+ function $(M) {
5870
5870
  window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
5871
- const I = M.getAttribute("id");
5872
- I && window.scrollContainerList.add(I);
5871
+ const O = M.getAttribute("id");
5872
+ O && window.scrollContainerList.add(O);
5873
5873
  }
5874
5874
  function J(M) {
5875
- const I = M == null ? void 0 : M.target;
5876
- V(I), bt(I);
5875
+ const O = M == null ? void 0 : M.target;
5876
+ $(O), bt(O);
5877
5877
  }
5878
5878
  function N() {
5879
- var M, I;
5879
+ var M, O;
5880
5880
  if (c.value) {
5881
- (I = (M = a.value) == null ? void 0 : M.contents) != null && I.length && c.value.addEventListener("scroll", J);
5881
+ (O = (M = a.value) == null ? void 0 : M.contents) != null && O.length && c.value.addEventListener("scroll", J);
5882
5882
  const z = c.value.querySelector(".drag-container");
5883
5883
  z && z.addEventListener("scroll", J);
5884
5884
  }
@@ -5886,43 +5886,43 @@ const Xt = /* @__PURE__ */ De({
5886
5886
  Xe(() => {
5887
5887
  if (c.value && i.value && i.value.schema) {
5888
5888
  const M = c.value.querySelector(`[data-dragref='${i.value.schema.id}-container']`);
5889
- b && M && b.attachComponents(M, a.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, o.value = i.value.canMove !== void 0 ? i.value.canMove : o.value, m.value = i.value.styles || "", u.value = i.value.designerClass || "", c.value && (c.value.componentInstance = i, c.value.designItemContext = w), i.value.belongedComponentId = f.value, i.value.setComponentBasicInfoMap(k);
5889
+ b && M && b.attachComponents(M, a.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, o.value = i.value.canMove !== void 0 ? i.value.canMove : o.value, p.value = i.value.styles || "", u.value = i.value.designerClass || "", c.value && (c.value.componentInstance = i, c.value.designItemContext = w), i.value.belongedComponentId = f.value, i.value.setComponentBasicInfoMap(D);
5890
5890
  }
5891
5891
  N(), Ye.value++;
5892
5892
  }), yn(() => {
5893
5893
  c.value && c.value.removeEventListener("scroll", J);
5894
5894
  });
5895
5895
  function j(M) {
5896
- if (M && (M.preventDefault(), M.stopPropagation()), L) {
5897
- const oe = document.getElementById(`${L}-design-item`);
5896
+ if (M && (M.preventDefault(), M.stopPropagation()), V) {
5897
+ const oe = document.getElementById(`${V}-design-item`);
5898
5898
  oe && oe.click();
5899
5899
  return;
5900
5900
  }
5901
- let I = w.designerItemElementRef;
5901
+ let O = w.designerItemElementRef;
5902
5902
  const z = c.value;
5903
5903
  if (z) {
5904
5904
  const oe = document.getElementsByClassName("dgComponentFocused");
5905
- oe && oe.length === 1 && oe[0] === c.value || (Array.from(oe).forEach((X) => X.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((X) => X.classList.remove("dgComponentSelected")), z.classList.add("dgComponentFocused"), t.emit("selectionChange", a.value.type, a.value, f.value, i.value), i.value.getDraggableDesignItemElement && (I = i.value.getDraggableDesignItemElement(w), I && I.value && I.value.classList.add("dgComponentSelected")));
5905
+ oe && oe.length === 1 && oe[0] === c.value || (Array.from(oe).forEach((X) => X.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((X) => X.classList.remove("dgComponentSelected")), z.classList.add("dgComponentFocused"), t.emit("selectionChange", a.value.type, a.value, f.value, i.value), i.value.getDraggableDesignItemElement && (O = i.value.getDraggableDesignItemElement(w), O && O.value && O.value.classList.add("dgComponentSelected")));
5906
5906
  }
5907
- Zt(I == null ? void 0 : I.value);
5907
+ Zt(O == null ? void 0 : O.value);
5908
5908
  }
5909
5909
  return () => {
5910
- const M = L ? `${L}-` : "";
5910
+ const M = V ? `${V}-` : "";
5911
5911
  return a.value.type === "component-ref" ? H(a.value) : C("div", {
5912
5912
  id: `${M}${a.value.id}-design-item`,
5913
5913
  ref: c,
5914
5914
  class: y.value,
5915
- style: p.value,
5915
+ style: m.value,
5916
5916
  onClick: j
5917
- }, [O(a.value), P(a.value)]);
5917
+ }, [E(a.value), P(a.value)]);
5918
5918
  };
5919
5919
  }
5920
- }), jc = /* @__PURE__ */ De({
5920
+ }), $c = /* @__PURE__ */ De({
5921
5921
  name: "FDesignerCanvas",
5922
5922
  props: Fa,
5923
5923
  emits: ["init", "selectionChange", "canvasChanged", "dragEnd"],
5924
5924
  setup(e, t) {
5925
- const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(), m = h(e.componentId), {
5925
+ const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(), p = h(e.componentId), {
5926
5926
  canvasMode: u
5927
5927
  } = e;
5928
5928
  let v, c;
@@ -5959,33 +5959,33 @@ const Xt = /* @__PURE__ */ De({
5959
5959
  "flex-column": !0,
5960
5960
  [u]: !0
5961
5961
  }));
5962
- ve([() => e.modelValue, () => e.componentId], ([p, g]) => {
5963
- n.value = p, m.value = g;
5962
+ ve([() => e.modelValue, () => e.componentId], ([m, g]) => {
5963
+ n.value = m, p.value = g;
5964
5964
  }), ve(Ye, () => {
5965
5965
  bt(r.value), t.emit("canvasChanged");
5966
5966
  }, {
5967
5967
  flush: "post"
5968
5968
  });
5969
- function S() {
5969
+ function T() {
5970
5970
  v = new ResizeObserver(() => {
5971
5971
  c && clearTimeout(c), c = setTimeout(() => {
5972
5972
  bt(l.value);
5973
5973
  });
5974
5974
  }), v.observe(l.value);
5975
5975
  }
5976
- function k(p, g, B, T) {
5977
- t.emit("selectionChange", p, g, B, T);
5976
+ function D(m, g, x, F) {
5977
+ t.emit("selectionChange", m, g, x, F);
5978
5978
  }
5979
- function L() {
5979
+ function V() {
5980
5980
  t.emit("dragEnd");
5981
5981
  }
5982
5982
  function y() {
5983
- l.value.addEventListener("scroll", (p) => {
5983
+ l.value.addEventListener("scroll", (m) => {
5984
5984
  bt(l.value);
5985
5985
  });
5986
5986
  }
5987
5987
  return Xe(() => {
5988
- r.value && s.initializeDragula(r.value), n.value = e.modelValue, t.emit("init", s), S(), y();
5988
+ r.value && s.initializeDragula(r.value), n.value = e.modelValue, t.emit("init", s), T(), y();
5989
5989
  }), wt(() => {
5990
5990
  v && (v.unobserve(r.value), v.disconnect(), v = null);
5991
5991
  }), t.expose({
@@ -6005,10 +6005,10 @@ const Xt = /* @__PURE__ */ De({
6005
6005
  }, [n.value && C(Xt, {
6006
6006
  key: zo.value,
6007
6007
  modelValue: n.value,
6008
- "onUpdate:modelValue": (p) => n.value = p,
6009
- onSelectionChange: k,
6010
- componentId: m.value,
6011
- onDragEnd: L
6008
+ "onUpdate:modelValue": (m) => n.value = m,
6009
+ onSelectionChange: D,
6010
+ componentId: p.value,
6011
+ onDragEnd: V
6012
6012
  }, null)])])]);
6013
6013
  }
6014
6014
  }), Jl = {
@@ -6026,7 +6026,7 @@ const Xt = /* @__PURE__ */ De({
6026
6026
  modelValue: { type: Object }
6027
6027
  };
6028
6028
  function Ql(e, t, n) {
6029
- var T;
6029
+ var I;
6030
6030
  const o = n && n.getStyles && n.getStyles() || "", r = h();
6031
6031
  let l;
6032
6032
  function a() {
@@ -6035,118 +6035,121 @@ function Ql(e, t, n) {
6035
6035
  function f() {
6036
6036
  return !1;
6037
6037
  }
6038
- function m() {
6038
+ function p() {
6039
6039
  return n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
6040
6040
  }
6041
6041
  function u() {
6042
6042
  return n && n.checkCanAddComponent ? n.checkCanAddComponent() : !0;
6043
6043
  }
6044
- function v(F) {
6045
- if (!F || !F.value)
6044
+ function v() {
6045
+ return !0;
6046
+ }
6047
+ function c(E) {
6048
+ if (!E || !E.value)
6046
6049
  return null;
6047
- const O = h(F == null ? void 0 : F.value.parent), x = v(O);
6048
- return x || null;
6050
+ const S = h(E == null ? void 0 : E.value.parent), B = c(S);
6051
+ return B || null;
6049
6052
  }
6050
- function c(F = t) {
6051
- var P;
6052
- const { componentInstance: O, designerItemElementRef: x } = F;
6053
- if (!O || !O.value)
6053
+ function b(E = t) {
6054
+ var L;
6055
+ const { componentInstance: S, designerItemElementRef: B } = E;
6056
+ if (!S || !S.value)
6054
6057
  return null;
6055
- const { getCustomButtons: D } = O.value;
6056
- return O.value.canMove || O.value.canAdd || O.value.canDelete || D && ((P = D()) != null && P.length) ? x : c(F.parent);
6058
+ const { getCustomButtons: P } = S.value;
6059
+ return S.value.canMove || S.value.canAdd || S.value.canDelete || P && ((L = P()) != null && L.length) ? B : b(E.parent);
6057
6060
  }
6058
- function b() {
6061
+ function i() {
6059
6062
  if (n && n.getCustomButtons)
6060
6063
  return n.getCustomButtons();
6061
6064
  }
6062
- function i(F) {
6063
- return !!n && n.canAccepts(F);
6065
+ function s(E) {
6066
+ return !!n && n.canAccepts(E);
6064
6067
  }
6065
- function s() {
6068
+ function d() {
6066
6069
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
6067
6070
  }
6068
- function d() {
6071
+ function w() {
6069
6072
  }
6070
- function w(F, O) {
6071
- !F || !O || n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, O);
6073
+ function T(E, S) {
6074
+ !E || !S || n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(E, S);
6072
6075
  }
6073
- function S(F) {
6074
- const { componentType: O } = F, x = me("designer-host-service");
6075
- let D = bn(O, F, x);
6076
- n && n.onResolveNewComponentSchema && (D = n.onResolveNewComponentSchema(F, D));
6077
- const P = O.toLowerCase().replace(/-/g, "_");
6078
- return D && !D.id && D.type === O && (D.id = `${P}_${Math.random().toString().slice(2, 6)}`), D;
6076
+ function D(E) {
6077
+ const { componentType: S } = E, B = me("designer-host-service");
6078
+ let P = bn(S, E, B);
6079
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(E, P));
6080
+ const L = S.toLowerCase().replace(/-/g, "_");
6081
+ return P && !P.id && P.type === S && (P.id = `${L}_${Math.random().toString().slice(2, 6)}`), P;
6079
6082
  }
6080
- function k(F) {
6083
+ function V(E) {
6081
6084
  }
6082
- function L(...F) {
6083
- return n && n.getPropsConfig ? n.getPropsConfig(...F) : [];
6085
+ function y(...E) {
6086
+ return n && n.getPropsConfig ? n.getPropsConfig(...E) : [];
6084
6087
  }
6085
- function y() {
6088
+ function m() {
6086
6089
  }
6087
- function p(F) {
6088
- var x;
6090
+ function g(E) {
6091
+ var B;
6089
6092
  if (!(t != null && t.schema))
6090
6093
  return;
6091
6094
  if (n != null && n.setComponentBasicInfoMap) {
6092
6095
  n.setComponentBasicInfoMap();
6093
6096
  return;
6094
6097
  }
6095
- let O = "";
6098
+ let S = "";
6096
6099
  if (n != null && n.getComponentTitle)
6097
- O = n.getComponentTitle();
6100
+ S = n.getComponentTitle();
6098
6101
  else {
6099
- const { text: D, title: P, label: $, mainTitle: H, name: V, type: J } = t.schema;
6100
- O = D || P || $ || H || V || ((x = R[J]) == null ? void 0 : x.name);
6102
+ const { text: P, title: L, label: H, mainTitle: $, name: J, type: N } = t.schema;
6103
+ S = P || L || H || $ || J || ((B = R[N]) == null ? void 0 : B.name);
6101
6104
  }
6102
- O && (!l && F && (l = F.formSchemaUtils), l.getControlBasicInfoMap().set(t.schema.id, {
6103
- componentTitle: O,
6104
- parentPathName: O
6105
+ S && (!l && E && (l = E.formSchemaUtils), l.getControlBasicInfoMap().set(t.schema.id, {
6106
+ componentTitle: S,
6107
+ parentPathName: S
6105
6108
  }));
6106
6109
  }
6107
- function g(F) {
6108
- var P;
6109
- const { changeObject: O } = F, { propertyID: x, propertyValue: D } = O;
6110
- ["text", "title", "label", "name", "mainTitle"].includes((P = F == null ? void 0 : F.changeObject) == null ? void 0 : P.propertyID) && x && D && p();
6110
+ function x(E) {
6111
+ var L;
6112
+ const { changeObject: S } = E, { propertyID: B, propertyValue: P } = S;
6113
+ ["text", "title", "label", "name", "mainTitle"].includes((L = E == null ? void 0 : E.changeObject) == null ? void 0 : L.propertyID) && B && P && g();
6111
6114
  }
6112
- function B(F) {
6113
- if (g(F), n && n.onPropertyChanged)
6114
- return n.onPropertyChanged(F);
6115
+ function F(E) {
6116
+ if (x(E), n && n.onPropertyChanged)
6117
+ return n.onPropertyChanged(E);
6115
6118
  }
6116
6119
  return r.value = {
6117
6120
  canMove: a(),
6118
6121
  canSelectParent: f(),
6119
6122
  canAdd: u(),
6120
- canDelete: m(),
6121
- canNested: !1,
6123
+ canDelete: p(),
6124
+ canNested: !v(),
6122
6125
  contents: [],
6123
6126
  elementRef: e,
6124
- parent: (T = t.parent) == null ? void 0 : T.componentInstance,
6127
+ parent: (I = t.parent) == null ? void 0 : I.componentInstance,
6125
6128
  schema: t.schema,
6126
6129
  styles: o,
6127
- canAccepts: i,
6128
- getBelongedComponentInstance: v,
6129
- getDraggableDesignItemElement: c,
6130
- getDraggingDisplayText: s,
6131
- getPropConfig: L,
6132
- getDragScopeElement: d,
6133
- onAcceptMovedChildElement: w,
6134
- onChildElementMovedOut: k,
6135
- addNewChildComponentSchema: S,
6136
- onRemoveComponent: y,
6130
+ canAccepts: s,
6131
+ getBelongedComponentInstance: c,
6132
+ getDraggableDesignItemElement: b,
6133
+ getDraggingDisplayText: d,
6134
+ getPropConfig: y,
6135
+ getDragScopeElement: w,
6136
+ onAcceptMovedChildElement: T,
6137
+ onChildElementMovedOut: V,
6138
+ addNewChildComponentSchema: D,
6139
+ onRemoveComponent: m,
6137
6140
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
6138
6141
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1),
6139
- onPropertyChanged: B,
6140
- getCustomButtons: b,
6141
- setComponentBasicInfoMap: p
6142
+ onPropertyChanged: F,
6143
+ getCustomButtons: i,
6144
+ setComponentBasicInfoMap: g
6142
6145
  }, r;
6143
6146
  }
6144
- const Lc = /* @__PURE__ */ De({
6147
+ const Ac = /* @__PURE__ */ De({
6145
6148
  name: "FDesignerInnerItem",
6146
6149
  props: Jl,
6147
6150
  emits: ["selectionChange", "addComponent", "removeComponent", "clickButton"],
6148
6151
  setup(e, t) {
6149
- const n = h(e.canMove), o = h(e.canAdd), r = h(e.canDelete), l = h(!1), a = h(e.contentKey), f = h(e.childType), m = h(e.childLabel), u = h(e.modelValue), v = h(""), c = h(), b = me("canvas-dragula"), i = h(), s = me("design-item-context"), d = {
6152
+ const n = h(e.canMove), o = h(e.canAdd), r = h(e.canDelete), l = h(!1), a = h(e.contentKey), f = h(e.childType), p = h(e.childLabel), u = h(e.modelValue), v = h(""), c = h(), b = me("canvas-dragula"), i = h(), s = me("design-item-context"), d = {
6150
6153
  designerItemElementRef: c,
6151
6154
  componentInstance: i,
6152
6155
  schema: u.value,
@@ -6154,26 +6157,26 @@ const Lc = /* @__PURE__ */ De({
6154
6157
  setupContext: t
6155
6158
  };
6156
6159
  yt("design-item-context", d);
6157
- const w = me("designer-host-service"), S = me("external-container-id"), k = G(() => {
6160
+ const w = me("designer-host-service"), T = me("external-container-id"), D = G(() => {
6158
6161
  var N;
6159
- const V = ((N = i.value) == null ? void 0 : N.getCustomButtons) && i.value.getCustomButtons();
6162
+ const $ = ((N = i.value) == null ? void 0 : N.getCustomButtons) && i.value.getCustomButtons();
6160
6163
  return {
6161
6164
  "farris-component": !0,
6162
6165
  // 受position-relative影响,整个容器的高度不能被撑起
6163
6166
  "flex-fill": e.id === "root-component",
6164
- "position-relative": n.value || r.value || (V == null ? void 0 : V.length),
6167
+ "position-relative": n.value || r.value || ($ == null ? void 0 : $.length),
6165
6168
  "farris-nested": l.value,
6166
6169
  "can-move": n.value,
6167
6170
  "d-none": c.value && c.value.classList.contains("d-none")
6168
6171
  };
6169
- }), L = G(() => {
6170
- const V = {};
6172
+ }), V = G(() => {
6173
+ const $ = {};
6171
6174
  return v.value && v.value.split(";").reduce((J, N) => {
6172
6175
  const [j, M] = N.split(":");
6173
6176
  return j && (J[j] = M), J;
6174
- }, V), V;
6177
+ }, $), $;
6175
6178
  });
6176
- function y(V, J) {
6179
+ function y($, J) {
6177
6180
  if (s && s.schema[a.value]) {
6178
6181
  const N = s.schema[a.value].findIndex((j) => j.id === J.id);
6179
6182
  if (N > -1) {
@@ -6182,11 +6185,11 @@ const Lc = /* @__PURE__ */ De({
6182
6185
  }
6183
6186
  }
6184
6187
  }
6185
- function p(V) {
6188
+ function m($) {
6186
6189
  if (i.value.addNewChildComponentSchema) {
6187
6190
  const J = {
6188
6191
  componentType: f.value,
6189
- label: m.value,
6192
+ label: p.value,
6190
6193
  parentComponentInstance: i.value,
6191
6194
  targetPosition: -1
6192
6195
  }, N = i.value.addNewChildComponentSchema(J);
@@ -6199,25 +6202,25 @@ const Lc = /* @__PURE__ */ De({
6199
6202
  class: "btn component-settings-button",
6200
6203
  title: "新增",
6201
6204
  ref: "removeComponent",
6202
- onClick: (V) => {
6203
- p();
6205
+ onClick: ($) => {
6206
+ m();
6204
6207
  }
6205
6208
  }, [C("i", {
6206
6209
  class: "f-icon f-icon-plus-circle"
6207
6210
  }, null)]);
6208
6211
  }
6209
- function B(V) {
6212
+ function x($) {
6210
6213
  return r.value && C("div", {
6211
6214
  role: "button",
6212
6215
  class: "btn component-settings-button",
6213
6216
  title: "删除",
6214
6217
  ref: "removeComponent",
6215
- onClick: ur((J) => y(J, V), ["stop"])
6218
+ onClick: ur((J) => y(J, $), ["stop"])
6216
6219
  }, [C("i", {
6217
6220
  class: "f-icon f-icon-yxs_delete"
6218
6221
  }, null)]);
6219
6222
  }
6220
- function T() {
6223
+ function F() {
6221
6224
  return n.value && C("div", {
6222
6225
  role: "button",
6223
6226
  class: "btn component-settings-button",
@@ -6228,10 +6231,10 @@ const Lc = /* @__PURE__ */ De({
6228
6231
  class: "cmp_move f-icon f-icon-yxs_move"
6229
6232
  }, null)]);
6230
6233
  }
6231
- function F() {
6234
+ function I() {
6232
6235
  var J;
6233
- const V = ((J = i.value) == null ? void 0 : J.getCustomButtons) && i.value.getCustomButtons();
6234
- return V && !!V.length && V.map((N) => C("div", {
6236
+ const $ = ((J = i.value) == null ? void 0 : J.getCustomButtons) && i.value.getCustomButtons();
6237
+ return $ && !!$.length && $.map((N) => C("div", {
6235
6238
  role: "button",
6236
6239
  class: `btn component-settings-button ${N.class || ""} ${N.text ? "settings-button-extend" : ""}`,
6237
6240
  title: N.title,
@@ -6243,44 +6246,44 @@ const Lc = /* @__PURE__ */ De({
6243
6246
  class: "icon-text"
6244
6247
  }, [N.text])]));
6245
6248
  }
6246
- function O(V) {
6249
+ function E($) {
6247
6250
  return C("div", {
6248
6251
  class: "component-btn-group",
6249
6252
  "data-noattach": "true"
6250
- }, [C("div", null, [g(), T(), B(V), F()])]);
6253
+ }, [C("div", null, [g(), F(), x($), I()])]);
6251
6254
  }
6252
- ve(() => e.modelValue, (V) => {
6253
- u.value = V, d.schema = V;
6255
+ ve(() => e.modelValue, ($) => {
6256
+ u.value = $, d.schema = $;
6254
6257
  });
6255
- function x(V) {
6258
+ function S($) {
6256
6259
  window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
6257
- const J = V.getAttribute("id");
6260
+ const J = $.getAttribute("id");
6258
6261
  J && window.scrollContainerList.add(J);
6259
6262
  }
6260
- function D(V) {
6261
- const J = V.target;
6262
- x(J), bt(J);
6263
+ function B($) {
6264
+ const J = $.target;
6265
+ S(J), bt(J);
6263
6266
  }
6264
6267
  function P() {
6265
- var V, J;
6266
- (J = (V = u.value) == null ? void 0 : V.contents) != null && J.length && c.value && c.value.addEventListener("scroll", D);
6268
+ var $, J;
6269
+ (J = ($ = u.value) == null ? void 0 : $.contents) != null && J.length && c.value && c.value.addEventListener("scroll", B);
6267
6270
  }
6268
- function $() {
6269
- const V = c.value, J = h(V.children[1]);
6271
+ function L() {
6272
+ const $ = c.value, J = h($.children[1]);
6270
6273
  return Ql(J, d).value;
6271
6274
  }
6272
6275
  Xe(() => {
6273
6276
  if (c.value) {
6274
- const V = c.value.querySelector(`[data-dragref='${u.value.id}-container']`);
6275
- i.value = V && V.componentInstance ? V.componentInstance.value : $(), b && V && b.attachComponents(V, u.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, o.value = i.value.canAdd !== void 0 ? i.value.canAdd : o.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, n.value = i.value.canMove !== void 0 ? i.value.canMove : n.value, v.value = i.value.styles || "", c.value && (c.value.componentInstance = i, c.value.designItemContext = d), i.value.setComponentBasicInfoMap(w);
6277
+ const $ = c.value.querySelector(`[data-dragref='${u.value.id}-container']`);
6278
+ i.value = $ && $.componentInstance ? $.componentInstance.value : L(), b && $ && b.attachComponents($, u.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, o.value = i.value.canAdd !== void 0 ? i.value.canAdd : o.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, n.value = i.value.canMove !== void 0 ? i.value.canMove : n.value, v.value = i.value.styles || "", c.value && (c.value.componentInstance = i, c.value.designItemContext = d), i.value.setComponentBasicInfoMap(w);
6276
6279
  }
6277
6280
  P(), Ye.value++;
6278
6281
  }), yn(() => {
6279
- c.value && c.value.removeEventListener("scroll", D);
6282
+ c.value && c.value.removeEventListener("scroll", B);
6280
6283
  });
6281
- function H(V) {
6282
- if (V && (V.preventDefault(), V.stopPropagation()), S) {
6283
- const j = document.getElementById(`${S}-design-item`);
6284
+ function H($) {
6285
+ if ($ && ($.preventDefault(), $.stopPropagation()), T) {
6286
+ const j = document.getElementById(`${T}-design-item`);
6284
6287
  j && j.click();
6285
6288
  return;
6286
6289
  }
@@ -6288,27 +6291,27 @@ const Lc = /* @__PURE__ */ De({
6288
6291
  const N = c.value;
6289
6292
  if (N) {
6290
6293
  const j = document.getElementsByClassName("dgComponentFocused");
6291
- j && j.length === 1 && j[0] === c.value && c.value.classList.contains("dgComponentSelected") || (Array.from(j).forEach((I) => I.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((I) => I.classList.remove("dgComponentSelected")), N.classList.add("dgComponentFocused"), t.emit("selectionChange", u.value.type, u.value, e.componentId, i.value), i.value.getDraggableDesignItemElement && (J = i.value.getDraggableDesignItemElement(d), J && J.value && J.value.classList.add("dgComponentSelected")));
6294
+ j && j.length === 1 && j[0] === c.value && c.value.classList.contains("dgComponentSelected") || (Array.from(j).forEach((O) => O.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((O) => O.classList.remove("dgComponentSelected")), N.classList.add("dgComponentFocused"), t.emit("selectionChange", u.value.type, u.value, e.componentId, i.value), i.value.getDraggableDesignItemElement && (J = i.value.getDraggableDesignItemElement(d), J && J.value && J.value.classList.add("dgComponentSelected")));
6292
6295
  }
6293
6296
  Zt(J == null ? void 0 : J.value);
6294
6297
  }
6295
6298
  return () => C("div", {
6296
6299
  id: `${e.id}-design-item`,
6297
6300
  ref: c,
6298
- class: k.value,
6299
- style: L.value,
6301
+ class: D.value,
6302
+ style: V.value,
6300
6303
  onClick: H
6301
- }, [O(u.value), t.slots.default && t.slots.default()]);
6304
+ }, [E(u.value), t.slots.default && t.slots.default()]);
6302
6305
  }
6303
6306
  });
6304
6307
  export {
6305
6308
  R as DgControl,
6306
- jc as FDesignerCanvas,
6307
- Lc as FDesignerInnerItem,
6309
+ $c as FDesignerCanvas,
6310
+ Ac as FDesignerInnerItem,
6308
6311
  Xt as FDesignerItem,
6309
- Pc as UseTemplateDragAndDropRules,
6312
+ Vc as UseTemplateDragAndDropRules,
6310
6313
  Fa as designerCanvasProps,
6311
- Oc as useDesignerComponent,
6314
+ jc as useDesignerComponent,
6312
6315
  Ql as useDesignerInnerComponent,
6313
- Nc as useDragulaCommonRule
6316
+ Lc as useDragulaCommonRule
6314
6317
  };