@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
@@ -1,8 +1,8 @@
1
1
  var xn = Object.defineProperty;
2
2
  var Sn = (n, e, t) => e in n ? xn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var K = (n, e, t) => Sn(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { ref as b, computed as H, defineComponent as We, createVNode as k, watch as ke, Fragment as it, reactive as Ve, createApp as Gt, onUnmounted as mt, onMounted as rt, Transition as Yt, mergeProps as It, nextTick as Nt, createTextVNode as Tn, onBeforeMount as En, Teleport as Mn, shallowRef as kn, render as Bt, h as Bn, cloneVNode as Fn, inject as At } from "vue";
5
- import { isPlainObject as Ht, cloneDeep as ft, isUndefined as Re } from "lodash-es";
4
+ import { ref as b, computed as H, defineComponent as We, createVNode as B, watch as Be, Fragment as it, reactive as Ve, createApp as Gt, onUnmounted as mt, onMounted as rt, Transition as Yt, mergeProps as It, nextTick as Nt, createTextVNode as Tn, onBeforeMount as En, Teleport as Mn, shallowRef as Bn, render as kt, h as kn, cloneVNode as Fn, inject as At } from "vue";
5
+ import { cloneDeep as ft, isPlainObject as Ht, isUndefined as Re } from "lodash-es";
6
6
  import { useI18n as Pt } from "vue-i18n";
7
7
  import { LocaleService as vt } from "../locale/index.esm.js";
8
8
  import { getCustomClass as Xt, withInstall as On, FormSchemaEntityField$Type as Ut, FormSchemaEntityFieldTypeName as _t, getMaxZIndex as In } from "../common/index.esm.js";
@@ -164,7 +164,7 @@ function Jt(n, e) {
164
164
  }
165
165
  return { getSchemaByType: r, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: s, mappingSchemaToProps: c, setDesignerContext: f };
166
166
  }
167
- const Zt = {}, Kt = {}, { resolveSchemaWithDefaultValue: bo, resolveSchemaToProps: wo, mappingSchemaToProps: Co } = Jt(Zt, Kt);
167
+ const Zt = {}, Kt = {}, { getSchemaByType: Fs, resolveSchemaWithDefaultValue: bo, resolveSchemaToProps: wo, mappingSchemaToProps: Co, setDesignerContext: Os } = Jt(Zt, Kt);
168
168
  function xo(n = {}) {
169
169
  function e(l, f, u, m) {
170
170
  if (typeof u == "number")
@@ -284,12 +284,12 @@ const So = {
284
284
  const o = n.editor && n.editor[e] ? n.editor[e] : n[e];
285
285
  return ((i = E[o]) == null ? void 0 : i.name) || o;
286
286
  }
287
- }, ko = {
287
+ }, Bo = {
288
288
  convertTo: (n, e, t, o) => {
289
289
  n[e] = n[e];
290
290
  },
291
291
  convertFrom: (n, e, t) => n.editor ? t.getRealEditorType(n.editor.type) : ""
292
- }, Bo = {
292
+ }, ko = {
293
293
  convertTo: (n, e, t, o) => {
294
294
  (n.type === "data-grid-column" || n.type === "tree-grid-column") && (n.formatter ? n.formatter[e] = t : n.formatter = {
295
295
  [e]: t
@@ -467,8 +467,8 @@ function en(n, e, t) {
467
467
  ["/converter/property-editor.converter", Eo],
468
468
  ["/converter/items-count.converter", Vo],
469
469
  ["/converter/type.converter", Mo],
470
- ["/converter/change-editor.converter", ko],
471
- ["/converter/change-formatter.converter", Bo],
470
+ ["/converter/change-editor.converter", Bo],
471
+ ["/converter/change-formatter.converter", ko],
472
472
  ["/converter/column-command.converter", Fo],
473
473
  ["/converter/column-option.converter", Oo],
474
474
  ["/converter/summary.converter", Io],
@@ -588,7 +588,7 @@ function en(n, e, t) {
588
588
  }
589
589
  const tn = {}, nn = {};
590
590
  en(tn, nn, bo);
591
- const on = {}, rn = {}, { resolveSchemaWithDefaultValue: _o } = Jt(on, rn), an = {}, sn = {};
591
+ const on = {}, rn = {}, { getSchemaByType: Is, resolveSchemaWithDefaultValue: _o, resolveSchemaToProps: Ns, mappingSchemaToProps: Ps, setDesignerContext: Ds } = Jt(on, rn), an = {}, sn = {};
592
592
  en(an, sn, _o);
593
593
  function at(n, e, t = /* @__PURE__ */ new Map(), o = (a, c, s, l) => c, i = {}, r = (a) => a) {
594
594
  return Zt[e.title] = e, Kt[e.title] = o, tn[e.title] = i, nn[e.title] = r, on[e.title] = e, rn[e.title] = o, an[e.title] = i, sn[e.title] = r, (a = {}, c = !0) => {
@@ -675,7 +675,7 @@ const Rt = {
675
675
  props: Rt,
676
676
  emits: [],
677
677
  setup(n, e) {
678
- return () => n.visible && k("div", {
678
+ return () => n.visible && B("div", {
679
679
  class: n.customClass,
680
680
  style: n.customStyle
681
681
  }, [e.slots.default && e.slots.default()]);
@@ -866,7 +866,7 @@ var ii = { exports: {} };
866
866
  containers: U.containers,
867
867
  start: Se,
868
868
  end: ze,
869
- cancel: B,
869
+ cancel: k,
870
870
  remove: Qe,
871
871
  destroy: Le,
872
872
  canMove: Ne,
@@ -943,7 +943,7 @@ var ii = { exports: {} };
943
943
  R && Pe(R);
944
944
  }
945
945
  function Pe(h) {
946
- kt(h.item, h.source) && (L = h.item.cloneNode(!0), oe.emit("cloned", L, h.item, "copy")), V = h.source, W = h.item, O = G = S(h.item), oe.dragging = !0, oe.emit("drag", W, V);
946
+ Bt(h.item, h.source) && (L = h.item.cloneNode(!0), oe.emit("cloned", L, h.item, "copy")), V = h.source, W = h.item, O = G = S(h.item), oe.dragging = !0, oe.emit("drag", W, V);
947
947
  }
948
948
  function Ke() {
949
949
  return !1;
@@ -954,13 +954,13 @@ var ii = { exports: {} };
954
954
  Xe(h, w(h));
955
955
  }
956
956
  }
957
- function Be() {
957
+ function ke() {
958
958
  he = !1, xe(!0), Ge(!0);
959
959
  }
960
960
  function De(h) {
961
- if (Be(), !!oe.dragging) {
961
+ if (ke(), !!oe.dragging) {
962
962
  var R = L || W, $ = _("clientX", h) || 0, q = _("clientY", h) || 0, J = y(I, $, q), Z = ce(J, $, q);
963
- Z && (L && U.copySortSource || !L || Z !== V) ? Xe(R, Z) : U.removeOnSpill ? Qe() : B();
963
+ Z && (L && U.copySortSource || !L || Z !== V) ? Xe(R, Z) : U.removeOnSpill ? Qe() : k();
964
964
  }
965
965
  }
966
966
  function Xe(h, R) {
@@ -973,7 +973,7 @@ var ii = { exports: {} };
973
973
  R && R.removeChild(h), oe.emit(L ? "cancel" : "remove", h, R, V), Q();
974
974
  }
975
975
  }
976
- function B(h) {
976
+ function k(h) {
977
977
  if (oe.dragging) {
978
978
  var R = arguments.length > 0 ? h : U.revertOnSpill, $ = L || W, q = w($), J = se(q);
979
979
  J === !1 && R && (L ? q && q.removeChild(L) : V.insertBefore($, O)), J || R ? oe.emit("cancel", $, V, V) : oe.emit("drop", $, q, V, G), Q();
@@ -981,7 +981,7 @@ var ii = { exports: {} };
981
981
  }
982
982
  function Q() {
983
983
  var h = L || W;
984
- Be(), Ct(), xt(), h && s.rm(h, "gu-transit"), te && clearTimeout(te), oe.dragging = !1, ve && oe.emit("out", h, ve, V), oe.emit("dragend", h, le), V = W = L = O = G = te = ve = null;
984
+ ke(), Ct(), xt(), h && s.rm(h, "gu-transit"), te && clearTimeout(te), oe.dragging = !1, ve && oe.emit("out", h, ve, V), oe.emit("dragend", h, le), V = W = L = O = G = te = ve = null;
985
985
  }
986
986
  function se(h, R) {
987
987
  var $;
@@ -1155,7 +1155,7 @@ var ii = { exports: {} };
1155
1155
  return ue ? S(R) : R;
1156
1156
  }
1157
1157
  }
1158
- function kt(h, R) {
1158
+ function Bt(h, R) {
1159
1159
  return typeof U.copy == "boolean" ? U.copy : U.copy(h, R);
1160
1160
  }
1161
1161
  }
@@ -1600,51 +1600,51 @@ const ri = {
1600
1600
  function F(j) {
1601
1601
  return `f-preten-link ${j.customClass ? j.customClass : ""}`;
1602
1602
  }
1603
- ke(i, () => {
1603
+ Be(i, () => {
1604
1604
  i.value;
1605
1605
  });
1606
1606
  const A = () => {
1607
1607
  var j;
1608
- return k(it, null, [k("div", {
1608
+ return B(it, null, [B("div", {
1609
1609
  class: "after-toast-msg text-right"
1610
- }, [!e.slots.default && ((j = a.value.buttons) == null ? void 0 : j.map((w) => k("span", {
1610
+ }, [!e.slots.default && ((j = a.value.buttons) == null ? void 0 : j.map((w) => B("span", {
1611
1611
  class: F(w),
1612
1612
  onClick: (g) => void 0
1613
1613
  }, [w.text]))), e.slots.default && e.slots.default()])]);
1614
1614
  };
1615
- return () => k("div", {
1615
+ return () => B("div", {
1616
1616
  class: f.value,
1617
1617
  style: "min-height:44px"
1618
- }, [p.value && k("button", {
1618
+ }, [p.value && B("button", {
1619
1619
  title: o("messageBox.close"),
1620
1620
  class: "toast-close f-btn-icon f-bare",
1621
1621
  onClick: y
1622
- }, [k("span", {
1622
+ }, [B("span", {
1623
1623
  class: "f-icon modal_close"
1624
- }, null)]), m.value && k("section", {
1624
+ }, null)]), m.value && B("section", {
1625
1625
  class: "modal-tips"
1626
- }, [!s.value && k("div", {
1626
+ }, [!s.value && B("div", {
1627
1627
  class: "float-left modal-tips-iconwrap"
1628
- }, [k("span", {
1628
+ }, [B("span", {
1629
1629
  class: u.value
1630
- }, null)]), k("div", {
1630
+ }, null)]), B("div", {
1631
1631
  class: "modal-tips-content"
1632
- }, [s.value && k(it, null, [k("h5", {
1632
+ }, [s.value && B(it, null, [B("h5", {
1633
1633
  class: "toast-title modal-tips-title",
1634
1634
  innerHTML: a.value.title
1635
- }, null), k("p", {
1635
+ }, null), B("p", {
1636
1636
  class: "toast-msg",
1637
1637
  innerHTML: a.value.message,
1638
1638
  style: v.value
1639
- }, null), d.value && A()]), l.value && (a.value.buttons ? k("div", {
1639
+ }, null), d.value && A()]), l.value && (a.value.buttons ? B("div", {
1640
1640
  class: "toast-title-btns-wrapper d-flex"
1641
- }, [k("h5", {
1641
+ }, [B("h5", {
1642
1642
  class: "toast-title modal-tips-title only-toast-msg",
1643
1643
  style: v.value,
1644
1644
  innerHTML: a.value.message
1645
- }, null), k("div", {
1645
+ }, null), B("div", {
1646
1646
  class: "after-toast-title text-right ml-auto"
1647
- }, [A()])]) : k("h5", {
1647
+ }, [A()])]) : B("h5", {
1648
1648
  class: "toast-title modal-tips-title only-toast-msg",
1649
1649
  style: v.value,
1650
1650
  innerHTML: a.value.message
@@ -1685,11 +1685,11 @@ const ri = {
1685
1685
  function u(m, p) {
1686
1686
  f();
1687
1687
  }
1688
- return () => k("div", {
1688
+ return () => B("div", {
1689
1689
  class: t.value,
1690
1690
  style: l.value,
1691
1691
  ref: i
1692
- }, [k(Ot, {
1692
+ }, [B(Ot, {
1693
1693
  options: r.value,
1694
1694
  showCloseButton: a.value,
1695
1695
  animate: n.animate,
@@ -1738,12 +1738,12 @@ class si {
1738
1738
  document.body.removeChild(r);
1739
1739
  }), rt(() => {
1740
1740
  t.updateNotifyPositionForCreate(i, c);
1741
- }), () => k(Yt, {
1741
+ }), () => B(Yt, {
1742
1742
  mode: "out-in",
1743
1743
  name: "fade",
1744
1744
  appear: !0
1745
1745
  }, {
1746
- default: () => [k(ut, It({
1746
+ default: () => [B(ut, It({
1747
1747
  ref: c
1748
1748
  }, i, {
1749
1749
  onClose: s
@@ -1991,28 +1991,28 @@ function ui(n, e, t, o, i, r, a, c, s, l, f, u, m, p, d, v, y) {
1991
1991
  return y.value.filter((D) => D.visible !== !1).map((D, O) => N[D.type](D, ee, W, O));
1992
1992
  }
1993
1993
  function C() {
1994
- return k("div", {
1994
+ return B("div", {
1995
1995
  ref: o,
1996
1996
  class: "fv-grid-content-left-fixed"
1997
- }, [k("div", {
1997
+ }, [B("div", {
1998
1998
  class: "fv-grid-data",
1999
1999
  style: g.value
2000
2000
  }, [_(F.value.leftColumns.filter((V) => V.visible), "left")])]);
2001
2001
  }
2002
2002
  function T() {
2003
- return k("div", {
2003
+ return B("div", {
2004
2004
  ref: t,
2005
2005
  class: "fv-grid-content-primary"
2006
- }, [k("div", {
2006
+ }, [B("div", {
2007
2007
  class: "fv-grid-data",
2008
2008
  style: w.value
2009
2009
  }, [_(F.value.primaryColumns.filter((V) => V.visible), "primary")])]);
2010
2010
  }
2011
2011
  function P() {
2012
- return k("div", {
2012
+ return B("div", {
2013
2013
  ref: i,
2014
2014
  class: "fv-grid-content-right-fixed"
2015
- }, [k("div", {
2015
+ }, [B("div", {
2016
2016
  class: "fv-grid-data",
2017
2017
  style: M.value
2018
2018
  }, [_(F.value.rightColumns.filter((V) => V.visible), "right")])]);
@@ -2074,8 +2074,8 @@ const di = /* @__PURE__ */ We({
2074
2074
  resetScroll: Pe,
2075
2075
  updateVisibleRowsOnLatestVisibleScope: Ke
2076
2076
  } = ae, ze = io(n, he, l, Se, ie), {
2077
- calculateColumnsSize: Be
2078
- } = ze, De = ro(), Xe = ao(l, m, g, De, ae), Qe = so(n, e, L, g, ie, y, ae), B = H(() => {
2077
+ calculateColumnsSize: ke
2078
+ } = ze, De = ro(), Xe = ao(l, m, g, De, ae), Qe = so(n, e, L, g, ie, y, ae), k = H(() => {
2079
2079
  const z = {
2080
2080
  "fv-grid": !0,
2081
2081
  "fv-grid-bordered": n.showBorder,
@@ -2106,16 +2106,16 @@ const di = /* @__PURE__ */ We({
2106
2106
  var z, Y, de;
2107
2107
  if (l.value && l.value.clientHeight > 0 && ((z = l.value) == null ? void 0 : z.clientWidth) > 0) {
2108
2108
  const me = Math.ceil(l.value.clientHeight / o);
2109
- me > i.value && (i.value = me, Ke()), Ne.value = ((Y = f.value) == null ? void 0 : Y.clientHeight) || 0, Ie.value = ((de = l.value) == null ? void 0 : de.clientWidth) || 0, Be();
2109
+ me > i.value && (i.value = me, Ke()), Ne.value = ((Y = f.value) == null ? void 0 : Y.clientHeight) || 0, Ie.value = ((de = l.value) == null ? void 0 : de.clientWidth) || 0, ke();
2110
2110
  }
2111
2111
  }
2112
2112
  rt(() => {
2113
- l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / o), i.value), p.value = xe(0, P.value + 0 - 1), Nn(l.value, Ct), Be(), Nt(() => {
2113
+ l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / o), i.value), p.value = xe(0, P.value + 0 - 1), Nn(l.value, Ct), ke(), Nt(() => {
2114
2114
  l.value && (Ie.value = l.value.clientWidth), f.value && (Se.value = f.value.clientWidth, Ne.value = f.value.clientHeight);
2115
2115
  })), j.value && w();
2116
2116
  }), mt(() => {
2117
- }), ke(Se, () => {
2118
- l.value && Be();
2117
+ }), Be(Se, () => {
2118
+ l.value && ke();
2119
2119
  });
2120
2120
  function xt(z) {
2121
2121
  g.collapseTo(z), g.reOrderVisibleIndex(), Pe();
@@ -2146,16 +2146,16 @@ const di = /* @__PURE__ */ We({
2146
2146
  function lt(z) {
2147
2147
  ne.onEditingRow(z);
2148
2148
  }
2149
- function kt(z) {
2149
+ function Bt(z) {
2150
2150
  ne.acceptEditingRow(z);
2151
2151
  }
2152
2152
  function h(z) {
2153
2153
  ne.cancelEditingRow(z);
2154
2154
  }
2155
2155
  function R(z) {
2156
- z && (r.value = z, D(r), X(r.value), ve(g, te), Be());
2156
+ z && (r.value = z, D(r), X(r.value), ve(g, te), ke());
2157
2157
  }
2158
- ke(() => n.columns, (z) => {
2158
+ Be(() => n.columns, (z) => {
2159
2159
  R(z);
2160
2160
  });
2161
2161
  function $(z, Y) {
@@ -2233,7 +2233,7 @@ const di = /* @__PURE__ */ We({
2233
2233
  function pn() {
2234
2234
  return A.value;
2235
2235
  }
2236
- ke(() => n.showSetting, (z, Y) => {
2236
+ Be(() => n.showSetting, (z, Y) => {
2237
2237
  z !== Y && (z ? O(r) : G(r), R(r.value));
2238
2238
  });
2239
2239
  function mn(z) {
@@ -2255,7 +2255,7 @@ const di = /* @__PURE__ */ We({
2255
2255
  expandTo: st,
2256
2256
  removeDataItem: Mt,
2257
2257
  editDataItem: lt,
2258
- acceptDataItem: kt,
2258
+ acceptDataItem: Bt,
2259
2259
  cancelDataItem: h,
2260
2260
  updateColumns: R,
2261
2261
  updateDataSource: $,
@@ -2281,9 +2281,9 @@ const di = /* @__PURE__ */ We({
2281
2281
  }), yn = H(() => ({
2282
2282
  ...W.value,
2283
2283
  borderRadius: "5px"
2284
- })), {
2285
- renderDataGridPagination: Qr
2286
- } = vo(n, e, g, ae, I, S), bn = H(() => ({
2284
+ }));
2285
+ vo(n, e, g, ae, I, S);
2286
+ const bn = H(() => ({
2287
2287
  "d-flex": !0,
2288
2288
  "justify-content-between": V.value && N.value,
2289
2289
  "justify-content-end": V.value && !N.value,
@@ -2294,22 +2294,22 @@ const di = /* @__PURE__ */ We({
2294
2294
  })), {
2295
2295
  renderDataGridSummary: Cn
2296
2296
  } = ho(n, g, L);
2297
- return () => k("div", {
2297
+ return () => B("div", {
2298
2298
  ref: s,
2299
- class: B.value,
2299
+ class: k.value,
2300
2300
  style: yn.value,
2301
2301
  onWheel: Ze
2302
- }, [l.value && ht.value && ce(), k("div", {
2302
+ }, [l.value && ht.value && ce(), B("div", {
2303
2303
  ref: l,
2304
2304
  class: Q.value,
2305
2305
  onMouseover: () => d.value = !0,
2306
2306
  onMouseleave: () => d.value = !1,
2307
2307
  style: gn.value
2308
- }, [l.value && gt(p), l.value && se(), l.value && Te.value && ue(), l.value && bt(), l.value && wt()]), l.value && Cn(), N.value && k("div", {
2308
+ }, [l.value && gt(p), l.value && se(), l.value && Te.value && ue(), l.value && bt(), l.value && wt()]), l.value && Cn(), N.value && B("div", {
2309
2309
  class: bn.value
2310
- }, [N.value && k("div", {
2310
+ }, [N.value && B("div", {
2311
2311
  class: wn.value
2312
- }, [k("div", null, ["已选:" + _.value.length, Tn(" 条")])])]), Fe(), T.value && yt()]);
2312
+ }, [B("div", null, ["已选:" + _.value.length, Tn(" 条")])])]), Fe(), T.value && yt()]);
2313
2313
  }
2314
2314
  });
2315
2315
  On(di);
@@ -2419,7 +2419,7 @@ const mi = "https://json-schema.org/draft/2020-12/schema", vi = "https://farris-
2419
2419
  description: Si,
2420
2420
  type: Ti,
2421
2421
  categories: Ei
2422
- }, ki = {
2422
+ }, Bi = {
2423
2423
  /** 步骤条方向 */
2424
2424
  direction: { type: String, default: "horizontal" },
2425
2425
  /** 是否平铺 */
@@ -2450,8 +2450,8 @@ const mi = "https://json-schema.org/draft/2020-12/schema", vi = "https://farris-
2450
2450
  onClick: { type: Function, default: () => {
2451
2451
  } }
2452
2452
  };
2453
- at(ki, Ci, fi, pi, Mi);
2454
- function Bi(n, e, t) {
2453
+ at(Bi, Ci, fi, pi, Mi);
2454
+ function ki(n, e, t) {
2455
2455
  var C;
2456
2456
  const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = b();
2457
2457
  let a;
@@ -3727,7 +3727,7 @@ function gr(n, e, t, o) {
3727
3727
  c.value = m.length;
3728
3728
  }
3729
3729
  }
3730
- return () => k(it, null, [k("textarea", {
3730
+ return () => B(it, null, [B("textarea", {
3731
3731
  title: "promptMessage",
3732
3732
  name: "promptMessage",
3733
3733
  class: "form-control",
@@ -3735,7 +3735,7 @@ function gr(n, e, t, o) {
3735
3735
  rows: "4",
3736
3736
  maxlength: r.value,
3737
3737
  onInput: (u) => f(u)
3738
- }, [s.value]), k("span", {
3738
+ }, [s.value]), B("span", {
3739
3739
  class: "textarea-wordcount",
3740
3740
  title: a.value,
3741
3741
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
@@ -3821,21 +3821,21 @@ function Cr(n, e) {
3821
3821
  function m() {
3822
3822
  s.value = !s.value;
3823
3823
  }
3824
- return () => k("div", {
3824
+ return () => B("div", {
3825
3825
  class: "toast-msg-detail"
3826
- }, [i.value && k("div", null, [r.value]), a.value && k("div", {
3826
+ }, [i.value && B("div", null, [r.value]), a.value && B("div", {
3827
3827
  class: "exception_wrap"
3828
- }, [k("div", {
3828
+ }, [B("div", {
3829
3829
  class: "exception_error_msg"
3830
- }, [k("div", {
3830
+ }, [B("div", {
3831
3831
  innerHTML: f.value
3832
- }, null), c.value && k("span", {
3832
+ }, null), c.value && B("span", {
3833
3833
  style: u.value,
3834
3834
  onClick: m
3835
3835
  }, [l.value])])])]);
3836
3836
  }
3837
3837
  function xr(n) {
3838
- return () => k("p", {
3838
+ return () => B("p", {
3839
3839
  class: "toast-msg-detail",
3840
3840
  innerHTML: n.value
3841
3841
  }, null);
@@ -3854,13 +3854,13 @@ function Sr(n, e, t, o, i) {
3854
3854
  wordBreak: "keep-all",
3855
3855
  overflowWrap: "break-word"
3856
3856
  } : {});
3857
- return () => k(it, null, [k("div", {
3857
+ return () => B(it, null, [B("div", {
3858
3858
  class: "float-left modal-tips-iconwrap"
3859
- }, [k("span", {
3859
+ }, [B("span", {
3860
3860
  class: a.value
3861
- }, null)]), k("div", {
3861
+ }, null)]), B("div", {
3862
3862
  class: "modal-tips-content"
3863
- }, [k("p", {
3863
+ }, [B("p", {
3864
3864
  class: "toast-msg-title",
3865
3865
  innerHTML: c.value,
3866
3866
  style: p.value
@@ -3885,9 +3885,9 @@ function Tr(n, e, t, o) {
3885
3885
  }, 700);
3886
3886
  });
3887
3887
  }
3888
- return () => k("span", {
3888
+ return () => B("span", {
3889
3889
  style: "width: 100%;color: #2A87FF;padding-left: 37px;"
3890
- }, [k("span", {
3890
+ }, [B("span", {
3891
3891
  onClick: f,
3892
3892
  style: "cursor: pointer;"
3893
3893
  }, [c.value])]);
@@ -3901,21 +3901,21 @@ function Er(n, e, t, o, i) {
3901
3901
  function x(F) {
3902
3902
  r.value === "question" && e.emit("accept"), e.emit("close");
3903
3903
  }
3904
- return () => k("div", {
3904
+ return () => B("div", {
3905
3905
  class: "modal-footer"
3906
- }, [p.value && v(), d.value && f.value && k("button", {
3906
+ }, [p.value && v(), d.value && f.value && B("button", {
3907
3907
  type: "button",
3908
3908
  class: "btn btn-secondary btn-lg",
3909
3909
  onClick: y
3910
- }, [l.value]), d.value && u.value && k("button", {
3910
+ }, [l.value]), d.value && u.value && B("button", {
3911
3911
  type: "button",
3912
3912
  class: "btn btn-primary btn-lg",
3913
3913
  onClick: x
3914
- }, [s.value]), m.value && a.value.length && a.value.map((F) => k("button", {
3914
+ }, [s.value]), m.value && a.value.length && a.value.map((F) => B("button", {
3915
3915
  type: "button",
3916
3916
  onClick: F.handle,
3917
3917
  class: F.class
3918
- }, [F.iconClass && k("span", {
3918
+ }, [F.iconClass && B("span", {
3919
3919
  class: F.iconClass
3920
3920
  }, null), F.text]))]);
3921
3921
  }
@@ -3968,7 +3968,7 @@ const dt = /* @__PURE__ */ We({
3968
3968
  } = f;
3969
3969
  m.value = t.exception.copySuccess;
3970
3970
  function p() {
3971
- return k("div", {
3971
+ return B("div", {
3972
3972
  style: u.value
3973
3973
  }, [m.value]);
3974
3974
  }
@@ -3981,17 +3981,17 @@ const dt = /* @__PURE__ */ We({
3981
3981
  }
3982
3982
  }
3983
3983
  const v = d(), y = Er(n, e, s, f, t);
3984
- return () => k("div", {
3984
+ return () => B("div", {
3985
3985
  class: "farris-messager"
3986
- }, [!n.exceptionInfo && k("div", {
3986
+ }, [!n.exceptionInfo && B("div", {
3987
3987
  style: "height: 30px;width: 100%;position: absolute;",
3988
3988
  class: "messager-draggable"
3989
- }, null), k("section", {
3989
+ }, null), B("section", {
3990
3990
  class: a.value,
3991
3991
  style: c.value
3992
3992
  }, [v()]), y(), p()]);
3993
3993
  }
3994
- }), kr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-design.gitee.io/modal.schema.json", Fr = "modal", Or = "弹窗组件", Ir = "object", Nr = {
3994
+ }), Br = "https://json-schema.org/draft/2020-12/schema", kr = "https://farris-design.gitee.io/modal.schema.json", Fr = "modal", Or = "弹窗组件", Ir = "object", Nr = {
3995
3995
  id: {
3996
3996
  description: "组件唯一标识",
3997
3997
  type: "string"
@@ -4106,8 +4106,8 @@ const dt = /* @__PURE__ */ We({
4106
4106
  onCancel: "取消事件",
4107
4107
  beforeClose: "关闭前回调"
4108
4108
  }, Rr = {
4109
- $schema: kr,
4110
- $id: Br,
4109
+ $schema: Br,
4110
+ $id: kr,
4111
4111
  title: Fr,
4112
4112
  description: Or,
4113
4113
  type: Ir,
@@ -4384,35 +4384,35 @@ function Ar(n, e) {
4384
4384
  D instanceof MouseEvent && D.button === 2 || v.value && (document.body.click(), D.stopPropagation(), D.preventDefault(), i.value = re.fromEvent(D), f.value = D.target, F(D), _());
4385
4385
  }
4386
4386
  function T(D) {
4387
- return t.value = D, p.value && k(it, null, [k("div", {
4387
+ return t.value = D, p.value && B(it, null, [B("div", {
4388
4388
  class: "fv-resizable-handle fv-resizable-n",
4389
4389
  type: "n",
4390
4390
  onMousedown: (O) => C(O)
4391
- }, null), k("div", {
4391
+ }, null), B("div", {
4392
4392
  class: "fv-resizable-handle fv-resizable-e",
4393
4393
  type: "e",
4394
4394
  onMousedown: (O) => C(O)
4395
- }, null), k("div", {
4395
+ }, null), B("div", {
4396
4396
  class: "fv-resizable-handle fv-resizable-s",
4397
4397
  type: "s",
4398
4398
  onMousedown: (O) => C(O)
4399
- }, null), k("div", {
4399
+ }, null), B("div", {
4400
4400
  class: "fv-resizable-handle fv-resizable-w",
4401
4401
  type: "w",
4402
4402
  onMousedown: (O) => C(O)
4403
- }, null), k("div", {
4403
+ }, null), B("div", {
4404
4404
  class: "fv-resizable-handle fv-resizable-ne",
4405
4405
  type: "ne",
4406
4406
  onMousedown: (O) => C(O)
4407
- }, null), k("div", {
4407
+ }, null), B("div", {
4408
4408
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
4409
4409
  type: "se",
4410
4410
  onMousedown: (O) => C(O)
4411
- }, null), k("div", {
4411
+ }, null), B("div", {
4412
4412
  class: "fv-resizable-handle fv-resizable-sw",
4413
4413
  type: "sw",
4414
4414
  onMousedown: (O) => C(O)
4415
- }, null), k("div", {
4415
+ }, null), B("div", {
4416
4416
  class: "fv-resizable-handle fv-resizable-nw",
4417
4417
  type: "nw",
4418
4418
  onMousedown: (O) => C(O)
@@ -4482,7 +4482,7 @@ function Ar(n, e) {
4482
4482
  }
4483
4483
  function Hr(n, e, t) {
4484
4484
  const o = b(), i = b(n.draggable), r = b(n.lockAxis), a = b(), c = b(), s = b(!1), l = b(new re(0, 0)), f = b(new re(0, 0)), u = b(new re(0, 0)), m = b(new re(0, 0));
4485
- ke(() => t.value, (M) => {
4485
+ Be(() => t.value, (M) => {
4486
4486
  a.value.style.cursor = M ? "move" : "default";
4487
4487
  });
4488
4488
  function p(M, S) {
@@ -4598,7 +4598,7 @@ const qe = /* @__PURE__ */ We({
4598
4598
  } = Pt();
4599
4599
  x.value === "错误提示" && (x.value = j("messageBox.errorTitle"));
4600
4600
  const w = b(!1);
4601
- function g(B, Q) {
4601
+ function g(k, Q) {
4602
4602
  const se = Q ? "accept" : "cancel";
4603
4603
  Promise.resolve().then(() => {
4604
4604
  var ce;
@@ -4606,22 +4606,22 @@ const qe = /* @__PURE__ */ We({
4606
4606
  closeType: se
4607
4607
  });
4608
4608
  }).then((ce) => {
4609
- ce && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed", B));
4609
+ ce && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed", k));
4610
4610
  });
4611
4611
  }
4612
4612
  const M = [{
4613
4613
  name: "cancel",
4614
4614
  text: j("messageBox.cancel") || "取消",
4615
4615
  class: "btn btn-secondary",
4616
- handle: (B) => {
4617
- g(B, !1);
4616
+ handle: (k) => {
4617
+ g(k, !1);
4618
4618
  }
4619
4619
  }, {
4620
4620
  name: "accept",
4621
4621
  text: j("messageBox.ok") || "确定",
4622
4622
  class: "btn btn-primary",
4623
- handle: (B) => {
4624
- g(B, !0);
4623
+ handle: (k) => {
4624
+ g(k, !0);
4625
4625
  }
4626
4626
  }], S = b(n.buttons && n.buttons.length ? n.buttons : M), N = H(() => !!l.value), _ = H(() => !!y.value && !!S.value), C = b(), T = b(), P = b(!1), {
4627
4627
  renderResizeBar: I,
@@ -4639,66 +4639,66 @@ const qe = /* @__PURE__ */ We({
4639
4639
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
4640
4640
  }
4641
4641
  function he() {
4642
- const B = document.querySelectorAll(".farris-modal").length;
4643
- (!B || B - 1 <= 0) && document.body.classList.remove("modal-open"), A.value && A.value.classList.remove("show");
4642
+ const k = document.querySelectorAll(".farris-modal").length;
4643
+ (!k || k - 1 <= 0) && document.body.classList.remove("modal-open"), A.value && A.value.classList.remove("show");
4644
4644
  }
4645
- ke(() => n.title, (B, Q) => {
4646
- B !== Q && (x.value = B);
4647
- }), ke(() => n.modelValue, (B, Q) => {
4648
- B !== Q && (i.value = B, i.value && n.draggable && Nt(() => {
4645
+ Be(() => n.title, (k, Q) => {
4646
+ k !== Q && (x.value = k);
4647
+ }), Be(() => n.modelValue, (k, Q) => {
4648
+ k !== Q && (i.value = k, i.value && n.draggable && Nt(() => {
4649
4649
  T.value && !F.value && (F.value = T.value.parentElement, ee.value = F.value, te(C.value, T.value, ee.value), L());
4650
- }), B || (F.value && (F.value = null), he())), i.value ? w.value = ve() : (P.value = !1, O.value = n.draggable);
4651
- }), ke(() => n.showHeader, (B, Q) => {
4652
- B !== Q && (s.value = B);
4653
- }), ke(() => n.showButtons, (B, Q) => {
4654
- B !== Q && (y.value = B);
4655
- }), ke(() => D.value, (B, Q) => {
4656
- const se = B || {}, ce = Q || {};
4650
+ }), k || (F.value && (F.value = null), he())), i.value ? w.value = ve() : (P.value = !1, O.value = n.draggable);
4651
+ }), Be(() => n.showHeader, (k, Q) => {
4652
+ k !== Q && (s.value = k);
4653
+ }), Be(() => n.showButtons, (k, Q) => {
4654
+ k !== Q && (y.value = k);
4655
+ }), Be(() => D.value, (k, Q) => {
4656
+ const se = k || {}, ce = Q || {};
4657
4657
  JSON.stringify(se) !== JSON.stringify(ce) && e.emit("resize", {
4658
- newSize: B,
4658
+ newSize: k,
4659
4659
  oldSize: Q,
4660
4660
  isMaximized: P.value
4661
4661
  });
4662
4662
  });
4663
4663
  const X = H(() => (i.value && document.body.classList.add("modal-open"), i.value)), ie = H(() => {
4664
4664
  var se;
4665
- const B = {
4665
+ const k = {
4666
4666
  modal: !0,
4667
4667
  "farris-modal": !0,
4668
4668
  fade: !0
4669
4669
  };
4670
- B["f-modal-fitContent"] = !!c.value, B.show = !!X.value;
4670
+ k["f-modal-fitContent"] = !!c.value, k.show = !!X.value;
4671
4671
  const Q = (se = n.maskClass) == null ? void 0 : se.split(" ");
4672
- return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce), B), B;
4672
+ return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce), k), k;
4673
4673
  }), le = H(() => {
4674
4674
  var se;
4675
- const B = {
4675
+ const k = {
4676
4676
  "modal-dialog": !0
4677
4677
  }, Q = (se = a.value) == null ? void 0 : se.split(" ");
4678
- return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce), B), B;
4678
+ return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce), k), k;
4679
4679
  }), ne = H(() => {
4680
- const B = {
4680
+ const k = {
4681
4681
  position: "absolute",
4682
4682
  top: `${(window.innerHeight - o.value) / 2}px`,
4683
4683
  left: `${(window.innerWidth - t.value) / 2}px`,
4684
4684
  width: `${t.value}px`,
4685
4685
  height: c.value ? "auto" : `${o.value}px`
4686
4686
  };
4687
- return n.mask || (B.pointerEvents = "auto"), B;
4687
+ return n.mask || (k.pointerEvents = "auto"), k;
4688
4688
  }), U = () => In() || 1040, oe = H(() => {
4689
- const B = {
4689
+ const k = {
4690
4690
  display: "block",
4691
4691
  zIndex: U()
4692
4692
  };
4693
- return n.mask || (B.pointerEvents = "none", B.backgroundColor = "transparent"), w.value && (B.backgroundColor = "transparent"), B;
4693
+ return n.mask || (k.pointerEvents = "none", k.backgroundColor = "transparent"), w.value && (k.backgroundColor = "transparent"), k;
4694
4694
  }), $e = H(() => ({
4695
4695
  "modal-content": !0,
4696
4696
  "modal-content-has-header": s.value
4697
4697
  })), Oe = H(() => {
4698
- const B = {
4698
+ const k = {
4699
4699
  display: s.value ? "" : "none"
4700
4700
  };
4701
- return B["pointer-events"] = O.value ? "auto" : "none", B;
4701
+ return k["pointer-events"] = O.value ? "auto" : "none", k;
4702
4702
  }), xe = H(() => ({
4703
4703
  "f-icon": !0,
4704
4704
  modal_maximize: !0,
@@ -4714,23 +4714,23 @@ const qe = /* @__PURE__ */ We({
4714
4714
  };
4715
4715
  }
4716
4716
  const Ye = H(() => {
4717
- const B = {
4717
+ const k = {
4718
4718
  textAlgin: v.value
4719
4719
  }, Q = Le();
4720
- return Object.assign(B, Q);
4720
+ return Object.assign(k, Q);
4721
4721
  });
4722
- function ae(B) {
4723
- if (B == null || B.stopPropagation(), P.value) {
4722
+ function ae(k) {
4723
+ if (k == null || k.stopPropagation(), P.value) {
4724
4724
  P.value = !1, W();
4725
4725
  return;
4726
4726
  }
4727
4727
  V(), P.value = !0;
4728
4728
  }
4729
- async function Ze(B, Q) {
4730
- B.handle && await B.handle(Q, B) && e.emit("closed", Q);
4729
+ async function Ze(k, Q) {
4730
+ k.handle && await k.handle(Q, k) && e.emit("closed", Q);
4731
4731
  }
4732
- function Ie(B) {
4733
- B.width && (t.value = B.width), B.height && (o.value = B.height), B.buttons && (S.value = B.buttons), B.title && (x.value = B.title);
4732
+ function Ie(k) {
4733
+ k.width && (t.value = k.width), k.height && (o.value = k.height), k.buttons && (S.value = k.buttons), k.title && (x.value = k.title);
4734
4734
  }
4735
4735
  let Ne = null, Se = null;
4736
4736
  En(() => {
@@ -4747,99 +4747,99 @@ const qe = /* @__PURE__ */ We({
4747
4747
  isMaximized: P
4748
4748
  });
4749
4749
  function Pe() {
4750
- return k("ul", null, [m.value && k("li", {
4750
+ return B("ul", null, [m.value && B("li", {
4751
4751
  class: "f-btn-icon f-bare"
4752
- }, [k("span", {
4752
+ }, [B("span", {
4753
4753
  class: "f-icon modal_minimize"
4754
- }, null)]), u.value && k("li", {
4754
+ }, null)]), u.value && B("li", {
4755
4755
  onClick: ae,
4756
4756
  class: "f-btn-icon f-bare",
4757
4757
  style: "pointer-events: auto;"
4758
- }, [k("span", {
4758
+ }, [B("span", {
4759
4759
  class: xe.value
4760
- }, null)]), f.value && k("li", {
4760
+ }, null)]), f.value && B("li", {
4761
4761
  class: "f-btn-icon f-bare",
4762
- onClick: (B) => g(B, !1),
4762
+ onClick: (k) => g(k, !1),
4763
4763
  style: "pointer-events: auto;"
4764
- }, [k("span", {
4764
+ }, [B("span", {
4765
4765
  class: "f-icon modal_close"
4766
4766
  }, null)])]);
4767
4767
  }
4768
4768
  function Ke() {
4769
- return k("div", {
4769
+ return B("div", {
4770
4770
  class: "modal-footer",
4771
4771
  style: Ye.value
4772
- }, [S.value && S.value.map((B) => {
4773
- const Q = b(B.disabled);
4774
- return k("button", {
4775
- name: B.name,
4772
+ }, [S.value && S.value.map((k) => {
4773
+ const Q = b(k.disabled);
4774
+ return B("button", {
4775
+ name: k.name,
4776
4776
  type: "button",
4777
4777
  disabled: Q.value,
4778
- class: B.class + (B.iconClass ? " btn-icontext" : ""),
4778
+ class: k.class + (k.iconClass ? " btn-icontext" : ""),
4779
4779
  onClick: (se) => {
4780
- Ze(B, se);
4780
+ Ze(k, se);
4781
4781
  }
4782
- }, [!!B.iconClass && k("i", {
4783
- class: B.iconClass
4784
- }, null), B.text]);
4782
+ }, [!!k.iconClass && B("i", {
4783
+ class: k.iconClass
4784
+ }, null), k.text]);
4785
4785
  })]);
4786
4786
  }
4787
4787
  function ze() {
4788
- return k("div", {
4788
+ return B("div", {
4789
4789
  ref: C,
4790
4790
  class: "modal-header",
4791
4791
  style: Oe.value
4792
- }, [e.slots.headerTemplate ? e.slots.headerTemplate() : k("div", {
4792
+ }, [e.slots.headerTemplate ? e.slots.headerTemplate() : B("div", {
4793
4793
  class: "modal-title"
4794
- }, [N.value && k("span", {
4794
+ }, [N.value && B("span", {
4795
4795
  class: l.value,
4796
4796
  style: "margin-right: 8px"
4797
- }, null), k("span", {
4797
+ }, null), B("span", {
4798
4798
  class: "modal-title-label"
4799
- }, [x.value])]), k("div", {
4799
+ }, [x.value])]), B("div", {
4800
4800
  class: "actions"
4801
4801
  }, [Pe()])]);
4802
4802
  }
4803
- function Be() {
4803
+ function ke() {
4804
4804
  return e.slots.footerTemplate ? e.slots.footerTemplate() : _.value && Ke();
4805
4805
  }
4806
- function De(B) {
4807
- if (B.stopPropagation(), n.allowClickMaskToClose) {
4808
- if (B.target !== A.value)
4806
+ function De(k) {
4807
+ if (k.stopPropagation(), n.allowClickMaskToClose) {
4808
+ if (k.target !== A.value)
4809
4809
  return;
4810
- g(B, !1);
4810
+ g(k, !1);
4811
4811
  }
4812
4812
  }
4813
4813
  function Xe() {
4814
- var B, Q;
4815
- return k("div", {
4814
+ var k, Q;
4815
+ return B("div", {
4816
4816
  id: r.value,
4817
4817
  class: le.value,
4818
4818
  style: ne.value,
4819
4819
  ref: T
4820
- }, [k("div", {
4820
+ }, [B("div", {
4821
4821
  class: $e.value
4822
- }, [s.value && ze(), k("div", {
4822
+ }, [s.value && ze(), B("div", {
4823
4823
  class: Ge.value
4824
- }, [(Q = (B = e.slots).default) == null ? void 0 : Q.call(B), p.value === "iframe" && k("iframe", {
4824
+ }, [(Q = (k = e.slots).default) == null ? void 0 : Q.call(k), p.value === "iframe" && B("iframe", {
4825
4825
  title: r.value,
4826
4826
  class: "f-utils-fill",
4827
4827
  width: "100%",
4828
4828
  frameborder: "0",
4829
4829
  src: d.value
4830
- }, null)]), Be()]), !c.value && T.value && !P.value && I(T.value)]);
4830
+ }, null)]), ke()]), !c.value && T.value && !P.value && I(T.value)]);
4831
4831
  }
4832
- function Qe(B) {
4833
- return B || "body";
4832
+ function Qe(k) {
4833
+ return k || "body";
4834
4834
  }
4835
- return () => k(Mn, {
4835
+ return () => B(Mn, {
4836
4836
  to: Qe(n.host)
4837
4837
  }, {
4838
- default: () => [X.value && k(Yt, {
4838
+ default: () => [X.value && B(Yt, {
4839
4839
  name: "fade",
4840
4840
  appear: !0
4841
4841
  }, {
4842
- default: () => [k("div", {
4842
+ default: () => [B("div", {
4843
4843
  ref: A,
4844
4844
  class: ie.value,
4845
4845
  style: oe.value,
@@ -4874,7 +4874,7 @@ function qr(n) {
4874
4874
  return rt(() => {
4875
4875
  }), i.expose({
4876
4876
  modalRef: r
4877
- }), () => k(qe, {
4877
+ }), () => B(qe, {
4878
4878
  ref: r,
4879
4879
  class: a.value,
4880
4880
  modelValue: f.value,
@@ -4941,7 +4941,7 @@ class fn {
4941
4941
  open(e) {
4942
4942
  const t = document.createDocumentFragment();
4943
4943
  e.showMaxButton && e.fitContent && (e.showMaxButton = !1);
4944
- const o = kn(Object.assign({
4944
+ const o = Bn(Object.assign({
4945
4945
  title: "",
4946
4946
  showButtons: !0,
4947
4947
  showHeader: !0
@@ -4959,7 +4959,7 @@ class fn {
4959
4959
  c(w, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
4960
4960
  }, p = (w) => {
4961
4961
  m(w), f && Nt(() => {
4962
- if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Bt(null, t), f = null, this.modalRef.value = null, this.modalRefs) {
4962
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], kt(null, t), f = null, this.modalRef.value = null, this.modalRefs) {
4963
4963
  const g = Object.keys(this.modalRefs).map((M) => Number(M));
4964
4964
  g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
4965
4965
  }
@@ -4973,7 +4973,7 @@ class fn {
4973
4973
  height: y
4974
4974
  } = o.value, x = this.adaptToWindow(v || 500, y || 320);
4975
4975
  Object.assign(o.value, x);
4976
- const F = () => k(qe, It({
4976
+ const F = () => B(qe, It({
4977
4977
  ref: this.modalRef,
4978
4978
  modelValue: i.value,
4979
4979
  "onUpdate:modelValue": (w) => i.value = w
@@ -4988,8 +4988,8 @@ class fn {
4988
4988
  default: () => [u && u(this.app)]
4989
4989
  });
4990
4990
  return f = ((w) => {
4991
- const g = Bn(F, w);
4992
- return g.appContext = this.appContext, Bt(g, t), g;
4991
+ const g = kn(F, w);
4992
+ return g.appContext = this.appContext, kt(g, t), g;
4993
4993
  })({
4994
4994
  ...o.value
4995
4995
  // 'onUpdate:modelValue': onUpdateModelValue,
@@ -4998,7 +4998,7 @@ class fn {
4998
4998
  o.value = {
4999
4999
  ...o.value,
5000
5000
  ...w
5001
- }, f && Bt(Fn(f, {
5001
+ }, f && kt(Fn(f, {
5002
5002
  ...o
5003
5003
  }), t);
5004
5004
  },
@@ -5038,7 +5038,7 @@ const Me = class Me {
5038
5038
  showMaxButton: !1,
5039
5039
  draggable: !0,
5040
5040
  dragHandle: ".messager-draggable",
5041
- render: () => k(dt, It(t, {
5041
+ render: () => B(dt, It(t, {
5042
5042
  onAccept: a,
5043
5043
  onReject: c,
5044
5044
  onClose: f
@@ -5201,19 +5201,19 @@ const Xr = /* @__PURE__ */ We({
5201
5201
  props: Rt,
5202
5202
  emits: [],
5203
5203
  setup(n, e) {
5204
- const t = b(), o = At("designer-host-service"), i = At("design-item-context"), r = Yr(i, o), a = Bi(t, i, r), c = H(() => Xt({
5204
+ const t = b(), o = At("designer-host-service"), i = At("design-item-context"), r = Yr(i, o), a = ki(t, i, r), c = H(() => Xt({
5205
5205
  "drag-container": !0
5206
5206
  }, n == null ? void 0 : n.customClass));
5207
5207
  return rt(() => {
5208
5208
  t.value.componentInstance = a;
5209
- }), e.expose(a.value), () => k("div", {
5209
+ }), e.expose(a.value), () => B("div", {
5210
5210
  ref: t,
5211
5211
  class: c.value,
5212
5212
  style: n.customStyle,
5213
5213
  "data-dragref": `${i.schema.id}-container`
5214
5214
  }, [e.slots.default && e.slots.default()]);
5215
5215
  }
5216
- }), Os = {
5216
+ }), Rs = {
5217
5217
  install(n) {
5218
5218
  n.component(Ft.name, Ft);
5219
5219
  },
@@ -5228,6 +5228,6 @@ export {
5228
5228
  Ft as ContentContainer,
5229
5229
  Xr as ContentContainerDesign,
5230
5230
  Rt as contentContainerProps,
5231
- Os as default,
5231
+ Rs as default,
5232
5232
  qt as propsResolver
5233
5233
  };