@farris/ui-vue 1.6.5-beta.5 → 1.6.5-beta.6

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 (168) hide show
  1. package/components/accordion/package.json +1 -1
  2. package/components/avatar/index.esm.js +1 -1
  3. package/components/avatar/index.umd.cjs +1 -1
  4. package/components/avatar/package.json +1 -1
  5. package/components/binding-selector/package.json +1 -1
  6. package/components/border-editor/package.json +1 -1
  7. package/components/button/package.json +1 -1
  8. package/components/button-edit/index.esm.js +170 -170
  9. package/components/button-edit/index.umd.cjs +1 -1
  10. package/components/button-edit/package.json +1 -1
  11. package/components/button-group/package.json +1 -1
  12. package/components/calculator/package.json +1 -1
  13. package/components/calendar/package.json +1 -1
  14. package/components/capsule/package.json +1 -1
  15. package/components/checkbox/package.json +1 -1
  16. package/components/checkbox-group/package.json +1 -1
  17. package/components/code-editor/package.json +1 -1
  18. package/components/collection-property-editor/package.json +1 -1
  19. package/components/color-picker/package.json +1 -1
  20. package/components/combo-list/package.json +1 -1
  21. package/components/combo-tree/package.json +1 -1
  22. package/components/common/package.json +1 -1
  23. package/components/component/index.esm.js +201 -201
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/component/package.json +1 -1
  26. package/components/condition/index.esm.js +1 -1
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/condition/package.json +1 -1
  29. package/components/content-container/index.esm.js +1 -1
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/content-container/package.json +1 -1
  32. package/components/data-grid/package.json +1 -1
  33. package/components/data-view/package.json +1 -1
  34. package/components/date-picker/package.json +1 -1
  35. package/components/designer-canvas/index.esm.js +255 -255
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/designer-canvas/package.json +1 -1
  38. package/components/designer-outline/package.json +1 -1
  39. package/components/designer-toolbox/package.json +1 -1
  40. package/components/discussion-editor/package.json +1 -1
  41. package/components/discussion-list/package.json +1 -1
  42. package/components/drawer/package.json +1 -1
  43. package/components/dropdown/package.json +1 -1
  44. package/components/dynamic-form/index.esm.js +1 -1
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-form/package.json +1 -1
  47. package/components/dynamic-resolver/package.json +1 -1
  48. package/components/dynamic-view/package.json +1 -1
  49. package/components/enum-editor/package.json +1 -1
  50. package/components/event-parameter/package.json +1 -1
  51. package/components/events-editor/index.esm.js +1 -1
  52. package/components/events-editor/index.umd.cjs +1 -1
  53. package/components/events-editor/package.json +1 -1
  54. package/components/expression-editor/index.esm.js +1 -1
  55. package/components/expression-editor/index.umd.cjs +3 -3
  56. package/components/expression-editor/package.json +1 -1
  57. package/components/external-container/package.json +1 -1
  58. package/components/field-selector/package.json +1 -1
  59. package/components/fieldset/package.json +1 -1
  60. package/components/filter-bar/index.esm.js +1 -1
  61. package/components/filter-bar/index.umd.cjs +1 -1
  62. package/components/filter-bar/package.json +1 -1
  63. package/components/filter-condition-editor/index.esm.js +1 -1
  64. package/components/filter-condition-editor/index.umd.cjs +1 -1
  65. package/components/filter-condition-editor/package.json +1 -1
  66. package/components/flow-canvas/index.esm.js +1 -1
  67. package/components/flow-canvas/index.umd.cjs +1 -1
  68. package/components/flow-canvas/package.json +1 -1
  69. package/components/html-template/package.json +1 -1
  70. package/components/image-cropper/package.json +1 -1
  71. package/components/input-group/package.json +1 -1
  72. package/components/json-editor/package.json +1 -1
  73. package/components/language-textbox/package.json +1 -1
  74. package/components/layout/package.json +1 -1
  75. package/components/list-nav/package.json +1 -1
  76. package/components/list-view/package.json +1 -1
  77. package/components/loading/package.json +1 -1
  78. package/components/locale/package.json +1 -1
  79. package/components/lookup/package.json +1 -1
  80. package/components/mapping-editor/index.esm.js +1 -1
  81. package/components/mapping-editor/index.umd.cjs +1 -1
  82. package/components/mapping-editor/package.json +1 -1
  83. package/components/menu-lookup/package.json +1 -1
  84. package/components/message-box/index.esm.js +1 -1
  85. package/components/message-box/index.umd.cjs +1 -1
  86. package/components/message-box/package.json +1 -1
  87. package/components/modal/index.esm.js +1 -1
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/modal/package.json +1 -1
  90. package/components/nav/package.json +1 -1
  91. package/components/notify/package.json +1 -1
  92. package/components/number-range/index.esm.js +1 -1
  93. package/components/number-range/index.umd.cjs +1 -1
  94. package/components/number-range/package.json +1 -1
  95. package/components/number-spinner/index.esm.js +1 -1
  96. package/components/number-spinner/index.umd.cjs +1 -1
  97. package/components/number-spinner/package.json +1 -1
  98. package/components/order/package.json +1 -1
  99. package/components/page-footer/package.json +1 -1
  100. package/components/page-header/package.json +1 -1
  101. package/components/pagination/package.json +1 -1
  102. package/components/popover/package.json +1 -1
  103. package/components/progress/package.json +1 -1
  104. package/components/property-editor/package.json +1 -1
  105. package/components/property-panel/index.esm.js +82 -82
  106. package/components/property-panel/index.umd.cjs +1 -1
  107. package/components/property-panel/package.json +1 -1
  108. package/components/query-solution/index.esm.js +1 -1
  109. package/components/query-solution/index.umd.cjs +4 -4
  110. package/components/query-solution/package.json +1 -1
  111. package/components/radio/package.json +1 -1
  112. package/components/radio-button/package.json +1 -1
  113. package/components/radio-group/package.json +1 -1
  114. package/components/rate/package.json +1 -1
  115. package/components/response-layout/index.esm.js +199 -199
  116. package/components/response-layout/index.umd.cjs +1 -1
  117. package/components/response-layout/package.json +1 -1
  118. package/components/response-layout-editor/index.esm.js +1 -1
  119. package/components/response-layout-editor/index.umd.cjs +1 -1
  120. package/components/response-layout-editor/package.json +1 -1
  121. package/components/response-toolbar/package.json +1 -1
  122. package/components/schema-selector/index.esm.js +1 -1
  123. package/components/schema-selector/index.umd.cjs +1 -1
  124. package/components/schema-selector/package.json +1 -1
  125. package/components/search-box/package.json +1 -1
  126. package/components/section/index.esm.js +1 -1
  127. package/components/section/index.umd.cjs +1 -1
  128. package/components/section/package.json +1 -1
  129. package/components/smoke-detector/package.json +1 -1
  130. package/components/sort-condition-editor/index.esm.js +1 -1
  131. package/components/sort-condition-editor/index.umd.cjs +1 -1
  132. package/components/sort-condition-editor/package.json +1 -1
  133. package/components/spacing-editor/package.json +1 -1
  134. package/components/splitter/package.json +1 -1
  135. package/components/step/package.json +1 -1
  136. package/components/switch/package.json +1 -1
  137. package/components/tabs/index.esm.js +1 -1
  138. package/components/tabs/index.umd.cjs +1 -1
  139. package/components/tabs/package.json +1 -1
  140. package/components/tags/package.json +1 -1
  141. package/components/text/package.json +1 -1
  142. package/components/textarea/index.esm.js +166 -166
  143. package/components/textarea/index.umd.cjs +2 -2
  144. package/components/textarea/package.json +1 -1
  145. package/components/time-picker/index.esm.js +1 -1
  146. package/components/time-picker/index.umd.cjs +1 -1
  147. package/components/time-picker/package.json +1 -1
  148. package/components/tooltip/package.json +1 -1
  149. package/components/transfer/package.json +1 -1
  150. package/components/tree-grid/package.json +1 -1
  151. package/components/tree-view/package.json +1 -1
  152. package/components/uploader/package.json +1 -1
  153. package/components/verify-detail/package.json +1 -1
  154. package/components/video/index.esm.js +1 -1
  155. package/components/video/index.umd.cjs +1 -1
  156. package/components/video/package.json +1 -1
  157. package/components/weather/package.json +1 -1
  158. package/designer/button-edit/index.esm.js +167 -167
  159. package/designer/button-edit/index.umd.cjs +1 -1
  160. package/designer/data-grid/index.esm.js +1 -1
  161. package/designer/data-grid/index.umd.cjs +1 -1
  162. package/designer/farris-designer.all.esm.js +1 -1
  163. package/designer/farris-designer.all.umd.cjs +1 -1
  164. package/designer/radio-group/index.esm.js +1 -1
  165. package/designer/radio-group/index.umd.cjs +1 -1
  166. package/farris.all.esm.js +1 -1
  167. package/farris.all.umd.cjs +1 -1
  168. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- var Pn = Object.defineProperty;
2
- var On = (n, t, e) => t in n ? Pn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var X = (n, t, e) => On(n, typeof t != "symbol" ? t + "" : t, e);
1
+ var On = Object.defineProperty;
2
+ var Pn = (n, t, e) => t in n ? On(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var X = (n, t, e) => Pn(n, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { ref as C, computed as R, defineComponent as ke, watch as we, onMounted as Xe, createVNode as w, withDirectives as Vn, vModelText as Nn, nextTick as st, Fragment as at, reactive as Le, createApp as Zt, onUnmounted as wt, Transition as Kt, mergeProps as Rt, createTextVNode as jn, inject as Dt, onBeforeMount as Dn, Teleport as $n, shallowRef as Ln, render as jt, h as Rn, cloneVNode as Hn } from "vue";
5
5
  import { cloneDeep as ht, isPlainObject as Yt, isUndefined as De } from "lodash-es";
6
6
  import { useCommonUtils as zn, useTextBox as An, useClear as Un, getCustomClass as $t, withInstall as en, FormSchemaEntityField$Type as gt, FormSchemaEntityFieldTypeName as Jt, FormSchemaEntityFieldType$Type as qn } from "../common/index.esm.js";
@@ -9,7 +9,7 @@ import { DgControl as Qt } from "../designer-canvas/index.esm.js";
9
9
  import { useI18n as Ht } from "vue-i18n";
10
10
  import { LocaleService as St } from "../locale/index.esm.js";
11
11
  import { useResizeObserver as Gn } from "@vueuse/core";
12
- import { getHierarchyRow as Xn, useIdentify as Yn, useGroupData as Jn, useFilter as Qn, useHierarchy as Zn, useLoading as Kn, useDataView as eo, useSelection as to, useSelectHierarchyItem as no, usePagination as oo, useDataViewContainerStyle as io, useCommandColumn as ro, useSettingColumn as ao, useColumn as so, useSort as lo, useGroupColumn as co, useRow as uo, useEdit as fo, useVisualDataBound as po, useVisualDataCell as mo, useVisualDataRow as vo, useVisualData as ho, useCellPosition as go, useSidebar as yo, useVirtualScroll as bo, useFitColumn as Co, useFilterHistory as wo, useColumnFilter as So, useDragColumn as xo, getColumnHeader as To, getSidebar as Mo, getDisableMask as Eo, getHorizontalScrollbar as Fo, getVerticalScrollbar as Bo, getEmpty as ko, getPagination as Io, getSummary as Po } from "../data-view/index.esm.js";
12
+ import { getHierarchyRow as Xn, useIdentify as Yn, useGroupData as Jn, useFilter as Qn, useHierarchy as Zn, useLoading as Kn, useDataView as eo, useSelection as to, useSelectHierarchyItem as no, usePagination as oo, useDataViewContainerStyle as io, useCommandColumn as ro, useSettingColumn as ao, useColumn as so, useSort as lo, useGroupColumn as co, useRow as uo, useEdit as fo, useVisualDataBound as po, useVisualDataCell as mo, useVisualDataRow as vo, useVisualData as ho, useCellPosition as go, useSidebar as yo, useVirtualScroll as bo, useFitColumn as Co, useFilterHistory as wo, useColumnFilter as So, useDragColumn as xo, getColumnHeader as To, getSidebar as Mo, getDisableMask as Eo, getHorizontalScrollbar as Fo, getVerticalScrollbar as Bo, getEmpty as ko, getPagination as Io, getSummary as Oo } from "../data-view/index.esm.js";
13
13
  import "../property-panel/index.esm.js";
14
14
  import "../accordion/index.esm.js";
15
15
  import "../avatar/index.esm.js";
@@ -164,7 +164,7 @@ function nn(n, t) {
164
164
  }
165
165
  return { getSchemaByType: a, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: s, mappingSchemaToProps: u, setDesignerContext: p };
166
166
  }
167
- const on = {}, rn = {}, { getSchemaByType: As, resolveSchemaWithDefaultValue: Oo, resolveSchemaToProps: Vo, mappingSchemaToProps: No, setDesignerContext: Us } = nn(on, rn);
167
+ const on = {}, rn = {}, { getSchemaByType: As, resolveSchemaWithDefaultValue: Po, resolveSchemaToProps: Vo, mappingSchemaToProps: No, setDesignerContext: Us } = nn(on, rn);
168
168
  function jo(n = {}) {
169
169
  function t(c, p, l, m) {
170
170
  if (typeof l == "number")
@@ -520,7 +520,7 @@ function an(n, t, e) {
520
520
  }
521
521
  function p(f, v, x, F, I, z = "", T = "") {
522
522
  return Object.keys(f).map((g) => {
523
- const k = C(1), M = g, S = f[g], O = Object.keys(S), y = S.title, E = S.type, V = i.get(E) || { type: "input-group", enableClear: !1 }, j = S.editor ? Object.assign({}, V, S.editor) : Object.assign({}, V), B = u(O, S, v), q = s(O, S, v);
523
+ const k = C(1), M = g, S = f[g], P = Object.keys(S), y = S.title, E = S.type, V = i.get(E) || { type: "input-group", enableClear: !1 }, j = S.editor ? Object.assign({}, V, S.editor) : Object.assign({}, V), B = u(P, S, v), q = s(P, S, v);
524
524
  j.readonly = j.readonly === void 0 ? q() : j.readonly;
525
525
  const Z = S.type === "cascade" ? p(S.properties, v, x, F, I, z, T) : [], D = !0;
526
526
  let N = c(S, T);
@@ -551,11 +551,11 @@ function an(n, t, e) {
551
551
  function m(f, v, x, F, I = "") {
552
552
  const z = v.$ref.schema, T = v.$ref.converter, h = x[z], g = h.type, k = e(h), M = {}, S = n[g];
553
553
  if (S && S.categories) {
554
- const O = S.categories[f], y = O == null ? void 0 : O.title;
555
- T && Object.keys(O.properties).forEach((j) => {
556
- O.properties[j].$converter = T;
554
+ const P = S.categories[f], y = P == null ? void 0 : P.title;
555
+ T && Object.keys(P.properties).forEach((j) => {
556
+ P.properties[j].$converter = T;
557
557
  });
558
- const E = (O == null ? void 0 : O.properties) || {}, V = p(E, M, k, h, F, I);
558
+ const E = (P == null ? void 0 : P.properties) || {}, V = p(E, M, k, h, F, I);
559
559
  return { categoryId: f, categoryName: y, properties: V };
560
560
  }
561
561
  return { categoryId: f, categoryName: "", properties: [] };
@@ -571,8 +571,8 @@ function an(n, t, e) {
571
571
  k.push(m(M, S, f, v, F));
572
572
  return;
573
573
  }
574
- const O = S == null ? void 0 : S.title, y = S == null ? void 0 : S.tabId, E = S == null ? void 0 : S.tabName, V = S == null ? void 0 : S.hide, j = S == null ? void 0 : S.hideTitle, B = p(S.properties || {}, h, T, f, v, F, S.$converter), { setPropertyRelates: q } = S, Z = S == null ? void 0 : S.parentPropertyID;
575
- k.push({ categoryId: M, categoryName: O, tabId: y, tabName: E, hide: V, properties: B, hideTitle: j, setPropertyRelates: q, parentPropertyID: Z });
574
+ const P = S == null ? void 0 : S.title, y = S == null ? void 0 : S.tabId, E = S == null ? void 0 : S.tabName, V = S == null ? void 0 : S.hide, j = S == null ? void 0 : S.hideTitle, B = p(S.properties || {}, h, T, f, v, F, S.$converter), { setPropertyRelates: q } = S, Z = S == null ? void 0 : S.parentPropertyID;
575
+ k.push({ categoryId: M, categoryName: P, tabId: y, tabName: E, hide: V, properties: B, hideTitle: j, setPropertyRelates: q, parentPropertyID: Z });
576
576
  }), k;
577
577
  }
578
578
  return [];
@@ -584,7 +584,7 @@ function an(n, t, e) {
584
584
  };
585
585
  }
586
586
  const sn = {}, ln = {};
587
- an(sn, ln, Oo);
587
+ an(sn, ln, Po);
588
588
  const cn = {}, un = {}, { getSchemaByType: qs, resolveSchemaWithDefaultValue: oi, resolveSchemaToProps: Ws, mappingSchemaToProps: _s, setDesignerContext: Gs } = nn(cn, un), dn = {}, fn = {};
589
589
  an(dn, fn, oi);
590
590
  function lt(n, t, e = /* @__PURE__ */ new Map(), o = (r, u, s, c) => u, i = {}, a = (r) => r) {
@@ -831,7 +831,7 @@ const At = {
831
831
  }, S = R(() => ({
832
832
  "form-control": !0,
833
833
  "h-100": n.autoHeight
834
- })), O = R(() => {
834
+ })), P = R(() => {
835
835
  const B = {};
836
836
  return n.resizable || (B.resize = "none"), n.rows > 2 ? {
837
837
  height: "auto",
@@ -881,7 +881,7 @@ const At = {
881
881
  onBlur: p,
882
882
  onMousedown: m,
883
883
  onMouseup: d,
884
- style: O.value
884
+ style: P.value
885
885
  }, null), [[Nn, u.value]]), T.value && w("span", {
886
886
  id: "clearIcon",
887
887
  class: z.value,
@@ -1016,7 +1016,7 @@ function mn(n, t, e) {
1016
1016
  });
1017
1017
  }
1018
1018
  }
1019
- function O(E) {
1019
+ function P(E) {
1020
1020
  if (S(E), e && e.onPropertyChanged)
1021
1021
  return e.onPropertyChanged(E);
1022
1022
  }
@@ -1044,7 +1044,7 @@ function mn(n, t, e) {
1044
1044
  triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
1045
1045
  onRemoveComponent: g,
1046
1046
  getCustomButtons: k,
1047
- onPropertyChanged: O,
1047
+ onPropertyChanged: P,
1048
1048
  setComponentBasicInfoMap: M,
1049
1049
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
1050
1050
  }, a;
@@ -1805,7 +1805,7 @@ function wi(n) {
1805
1805
  var I;
1806
1806
  const x = o.get(v.id), F = x.appearance && x.appearance.class;
1807
1807
  if (F) {
1808
- const T = F.split(" ").filter((O) => !O.startsWith("col-")), h = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD, k = "col-xl-" + v.columnInLG, M = "col-el-" + v.columnInEL, S = [h, g, k, M].concat(T);
1808
+ const T = F.split(" ").filter((P) => !P.startsWith("col-")), h = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD, k = "col-xl-" + v.columnInLG, M = "col-el-" + v.columnInEL, S = [h, g, k, M].concat(T);
1809
1809
  x.appearance.class = S.join(" ");
1810
1810
  }
1811
1811
  if (v.fieldSetId) {
@@ -1883,12 +1883,12 @@ var Si = { exports: {} };
1883
1883
  W.moves === void 0 && (W.moves = I), W.accepts === void 0 && (W.accepts = I), W.invalid === void 0 && (W.invalid = et), W.containers === void 0 && (W.containers = y || []), W.isContainer === void 0 && (W.isContainer = F), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer = c.body);
1884
1884
  var oe = r({
1885
1885
  containers: W.containers,
1886
- start: Oe,
1886
+ start: Pe,
1887
1887
  end: Ae,
1888
1888
  cancel: Q,
1889
- remove: P,
1889
+ remove: O,
1890
1890
  destroy: He,
1891
- canMove: Pe,
1891
+ canMove: Oe,
1892
1892
  dragging: !1
1893
1893
  });
1894
1894
  return W.removeOnSpill === !0 && oe.on("over", Tt).on("out", Mt), Ie(), oe;
@@ -1929,7 +1929,7 @@ var Si = { exports: {} };
1929
1929
  }
1930
1930
  if (!(b.clientX !== void 0 && Math.abs(b.clientX - Z) <= (W.slideFactorX || 0) && b.clientY !== void 0 && Math.abs(b.clientY - D) <= (W.slideFactorY || 0))) {
1931
1931
  if (W.ignoreInputTextSelection) {
1932
- var $ = O("clientX", b) || 0, H = O("clientY", b) || 0, _ = c.elementFromPoint($, H);
1932
+ var $ = P("clientX", b) || 0, H = P("clientY", b) || 0, _ = c.elementFromPoint($, H);
1933
1933
  if (g(_))
1934
1934
  return;
1935
1935
  }
@@ -1954,10 +1954,10 @@ var Si = { exports: {} };
1954
1954
  }
1955
1955
  }
1956
1956
  }
1957
- function Pe(b) {
1957
+ function Oe(b) {
1958
1958
  return !!Te(b);
1959
1959
  }
1960
- function Oe(b) {
1960
+ function Pe(b) {
1961
1961
  var $ = Te(b);
1962
1962
  $ && Ve($);
1963
1963
  }
@@ -1978,15 +1978,15 @@ var Si = { exports: {} };
1978
1978
  }
1979
1979
  function Ne(b) {
1980
1980
  if (Be(), !!oe.dragging) {
1981
- var $ = A || q, H = O("clientX", b) || 0, _ = O("clientY", b) || 0, K = x(j, H, _), ee = je(K, H, _);
1982
- ee && (A && W.copySortSource || !A || ee !== B) ? Je($, ee) : W.removeOnSpill ? P() : Q();
1981
+ var $ = A || q, H = P("clientX", b) || 0, _ = P("clientY", b) || 0, K = x(j, H, _), ee = je(K, H, _);
1982
+ ee && (A && W.copySortSource || !A || ee !== B) ? Je($, ee) : W.removeOnSpill ? O() : Q();
1983
1983
  }
1984
1984
  }
1985
1985
  function Je(b, $) {
1986
1986
  var H = h(b);
1987
1987
  A && W.copySortSource && $ === B && H.removeChild(q), se($) ? oe.emit("cancel", b, B) : oe.emit("drop", b, $, B, G), ae();
1988
1988
  }
1989
- function P() {
1989
+ function O() {
1990
1990
  if (oe.dragging) {
1991
1991
  var b = A || q, $ = h(b);
1992
1992
  $ && $.removeChild(b), oe.emit(A ? "cancel" : "remove", b, $, B), ae();
@@ -2022,7 +2022,7 @@ var Si = { exports: {} };
2022
2022
  if (!j)
2023
2023
  return;
2024
2024
  b.preventDefault();
2025
- var $ = O("clientX", b) || 0, H = O("clientY", b) || 0;
2025
+ var $ = P("clientX", b) || 0, H = P("clientY", b) || 0;
2026
2026
  j.style.left = $ - 2 + "px", j.style.top = H - 2 + "px";
2027
2027
  var _ = A || q, K = x(j, $, H), ee = je(K, $, H), Se = ee !== null && ee !== ve;
2028
2028
  (Se || ee === null) && (be(), ve = ee, Ee()), Vt(K, H);
@@ -2040,7 +2040,7 @@ var Si = { exports: {} };
2040
2040
  A && ge && ge.removeChild(_), A && J && (J.style.display = "none");
2041
2041
  return;
2042
2042
  }
2043
- J.style.display = "block", xt(ye, _, Se), ye ? Pt(Me, ye) : Ot(ee);
2043
+ J.style.display = "block", xt(ye, _, Se), ye ? Ot(Me, ye) : Pt(ee);
2044
2044
  function ue(pe) {
2045
2045
  oe.emit(pe, _, ve, B);
2046
2046
  }
@@ -2116,7 +2116,7 @@ var Si = { exports: {} };
2116
2116
  }
2117
2117
  return !0;
2118
2118
  }
2119
- function Pt(b, $) {
2119
+ function Ot(b, $) {
2120
2120
  const H = $.getBoundingClientRect();
2121
2121
  if (J.style.left = H.left + "px", J.style.top = H.top + "px", ie) {
2122
2122
  if (J.style.height = H.height + "px", J.style.width = "4px", b) {
@@ -2129,7 +2129,7 @@ var Si = { exports: {} };
2129
2129
  }
2130
2130
  $ === q && q && (J.style.display = "none");
2131
2131
  }
2132
- function Ot(b) {
2132
+ function Pt(b) {
2133
2133
  G = null;
2134
2134
  var $ = b.lastElementChild;
2135
2135
  if ($) {
@@ -2263,7 +2263,7 @@ var Si = { exports: {} };
2263
2263
  function S(y) {
2264
2264
  return y.targetTouches && y.targetTouches.length ? y.targetTouches[0] : y.changedTouches && y.changedTouches.length ? y.changedTouches[0] : y;
2265
2265
  }
2266
- function O(y, E) {
2266
+ function P(y, E) {
2267
2267
  var V = S(E), j = {
2268
2268
  pageX: "clientX",
2269
2269
  // IE8
@@ -2348,24 +2348,24 @@ var Si = { exports: {} };
2348
2348
  return h.detachEvent("on" + g, M);
2349
2349
  }
2350
2350
  function x(h, g, k) {
2351
- var M = u.indexOf(g) === -1 ? O() : S();
2351
+ var M = u.indexOf(g) === -1 ? P() : S();
2352
2352
  h.dispatchEvent ? h.dispatchEvent(M) : h.fireEvent("on" + g, M);
2353
2353
  function S() {
2354
2354
  var y;
2355
2355
  return s.createEvent ? (y = s.createEvent("Event"), y.initEvent(g, !0, !0)) : s.createEventObject && (y = s.createEventObject()), y;
2356
2356
  }
2357
- function O() {
2357
+ function P() {
2358
2358
  return new r(g, { detail: k });
2359
2359
  }
2360
2360
  }
2361
2361
  function F(h, g, k) {
2362
2362
  return function(S) {
2363
- var O = S || a.event;
2364
- O.target = O.target || O.srcElement, O.preventDefault = O.preventDefault || function() {
2365
- O.returnValue = !1;
2366
- }, O.stopPropagation = O.stopPropagation || function() {
2367
- O.cancelBubble = !0;
2368
- }, O.which = O.which || O.keyCode, k.call(h, O);
2363
+ var P = S || a.event;
2364
+ P.target = P.target || P.srcElement, P.preventDefault = P.preventDefault || function() {
2365
+ P.returnValue = !1;
2366
+ }, P.stopPropagation = P.stopPropagation || function() {
2367
+ P.cancelBubble = !0;
2368
+ }, P.which = P.which || P.keyCode, k.call(h, P);
2369
2369
  };
2370
2370
  }
2371
2371
  function I(h, g, k) {
@@ -3005,7 +3005,7 @@ function Bi(n, t, e, o, i, a, r, u, s, c, p, l, m, d, f, v, x) {
3005
3005
  } = d, {
3006
3006
  renderDataRow: M
3007
3007
  } = Xn(n, t, I, x, u, s, c, p, l, m, d, f, v), S = [M];
3008
- function O(B, q) {
3008
+ function P(B, q) {
3009
3009
  const Z = F(B);
3010
3010
  return x.value.filter((D) => D.visible !== !1).map((D, N) => S[D.type](D, Z, q, N));
3011
3011
  }
@@ -3016,7 +3016,7 @@ function Bi(n, t, e, o, i, a, r, u, s, c, p, l, m, d, f, v, x) {
3016
3016
  }, [w("div", {
3017
3017
  class: "fv-grid-data",
3018
3018
  style: g.value
3019
- }, [O(I.value.leftColumns.filter((B) => B.visible), "left")])]);
3019
+ }, [P(I.value.leftColumns.filter((B) => B.visible), "left")])]);
3020
3020
  }
3021
3021
  function E() {
3022
3022
  return w("div", {
@@ -3025,7 +3025,7 @@ function Bi(n, t, e, o, i, a, r, u, s, c, p, l, m, d, f, v, x) {
3025
3025
  }, [w("div", {
3026
3026
  class: "fv-grid-data",
3027
3027
  style: h.value
3028
- }, [O(I.value.primaryColumns.filter((B) => B.visible), "primary")])]);
3028
+ }, [P(I.value.primaryColumns.filter((B) => B.visible), "primary")])]);
3029
3029
  }
3030
3030
  function V() {
3031
3031
  return w("div", {
@@ -3034,7 +3034,7 @@ function Bi(n, t, e, o, i, a, r, u, s, c, p, l, m, d, f, v, x) {
3034
3034
  }, [w("div", {
3035
3035
  class: "fv-grid-data",
3036
3036
  style: k.value
3037
- }, [O(I.value.rightColumns.filter((B) => B.visible), "right")])]);
3037
+ }, [P(I.value.rightColumns.filter((B) => B.visible), "right")])]);
3038
3038
  }
3039
3039
  function j() {
3040
3040
  const B = [];
@@ -3061,7 +3061,7 @@ const ki = /* @__PURE__ */ ke({
3061
3061
  dataView: k
3062
3062
  } = g, M = to(n, g, r, d, t), {
3063
3063
  showSelection: S,
3064
- selectedValues: O
3064
+ selectedValues: P
3065
3065
  } = M, y = no(n, d, g, r, M, t), E = R(() => n.disabled), V = R(() => n.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), j = oo(n, g), {
3066
3066
  shouldRenderPagination: B
3067
3067
  } = j, {
@@ -3088,13 +3088,13 @@ const ki = /* @__PURE__ */ ke({
3088
3088
  } = He, ce = bo(n, g, d, he, Ie, V, 0, ze), {
3089
3089
  onWheel: Ke,
3090
3090
  dataGridWidth: Te,
3091
- viewPortHeight: Pe,
3092
- viewPortWidth: Oe,
3091
+ viewPortHeight: Oe,
3092
+ viewPortWidth: Pe,
3093
3093
  resetScroll: Ve,
3094
3094
  updateVisibleRowsOnLatestVisibleScope: et
3095
- } = ce, Ae = Co(n, he, c, Oe, ie), {
3095
+ } = ce, Ae = Co(n, he, c, Pe, ie), {
3096
3096
  calculateColumnsSize: Be
3097
- } = Ae, Ne = wo(), Je = So(c, m, g, Ne, ce), P = xo(n, t, A, g, ie, x, ce), Q = R(() => {
3097
+ } = Ae, Ne = wo(), Je = So(c, m, g, Ne, ce), O = xo(n, t, A, g, ie, x, ce), Q = R(() => {
3098
3098
  const U = {
3099
3099
  "fv-grid": !0,
3100
3100
  "fv-grid-bordered": n.showBorder,
@@ -3112,7 +3112,7 @@ const ki = /* @__PURE__ */ ke({
3112
3112
  renderGridHeader: je,
3113
3113
  renderGridColumnResizeOverlay: tt,
3114
3114
  shouldShowHeader: xt
3115
- } = To(n, t, c, l, m, A, g, P, Je, F, Ne, Ae, ie, M, He, te, ce, Oe, d), {
3115
+ } = To(n, t, c, l, m, A, g, O, Je, F, Ne, Ae, ie, M, He, te, ce, Pe, d), {
3116
3116
  renderDataGridSidebar: Tt
3117
3117
  } = Mo(n, le, M, He, ce), {
3118
3118
  renderDisableMask: Mt
@@ -3125,15 +3125,15 @@ const ki = /* @__PURE__ */ ke({
3125
3125
  var U, Y, de;
3126
3126
  if (c.value && c.value.clientHeight > 0 && ((U = c.value) == null ? void 0 : U.clientWidth) > 0) {
3127
3127
  const me = Math.ceil(c.value.clientHeight / o);
3128
- me > i.value && (i.value = me, et()), Pe.value = ((Y = p.value) == null ? void 0 : Y.clientHeight) || 0, Te.value = ((de = c.value) == null ? void 0 : de.clientWidth) || 0, Be();
3128
+ me > i.value && (i.value = me, et()), Oe.value = ((Y = p.value) == null ? void 0 : Y.clientHeight) || 0, Te.value = ((de = c.value) == null ? void 0 : de.clientWidth) || 0, Be();
3129
3129
  }
3130
3130
  }
3131
3131
  Xe(() => {
3132
3132
  c.value && (i.value = Math.max(Math.ceil(c.value.clientHeight / o), i.value), d.value = xe(0, V.value + 0 - 1), Gn(c.value, Bt), Be(), st(() => {
3133
- c.value && (Te.value = c.value.clientWidth), p.value && (Oe.value = p.value.clientWidth, Pe.value = p.value.clientHeight);
3133
+ c.value && (Te.value = c.value.clientWidth), p.value && (Pe.value = p.value.clientWidth, Oe.value = p.value.clientHeight);
3134
3134
  })), T.value && h();
3135
3135
  }), wt(() => {
3136
- }), we(Oe, () => {
3136
+ }), we(Pe, () => {
3137
3137
  c.value && Be();
3138
3138
  });
3139
3139
  function kt(U) {
@@ -3150,11 +3150,11 @@ const ki = /* @__PURE__ */ ke({
3150
3150
  const U = nt();
3151
3151
  g.insertNewDataItem(U), d.value = xe(0, V.value + 0 - 1);
3152
3152
  }
3153
- function Pt() {
3153
+ function Ot() {
3154
3154
  const U = nt();
3155
3155
  g.insertNewChildDataItem(U), d.value = xe(0, V.value + 0 - 1);
3156
3156
  }
3157
- function Ot(U, Y) {
3157
+ function Pt(U, Y) {
3158
3158
  const de = d.value.find((Ce) => Ce.raw[u.value] === Y), me = de ? de.dataIndex - 1 : -1;
3159
3159
  g.insertNewChildDataItems(U, me);
3160
3160
  }
@@ -3268,8 +3268,8 @@ const ki = /* @__PURE__ */ ke({
3268
3268
  t.expose({
3269
3269
  activeRowById: ee,
3270
3270
  addNewDataItem: It,
3271
- addNewChildDataItem: Pt,
3272
- addChildrenToNode: Ot,
3271
+ addNewChildDataItem: Ot,
3272
+ addChildrenToNode: Pt,
3273
3273
  collapseTo: kt,
3274
3274
  expandTo: ct,
3275
3275
  removeDataItem: Vt,
@@ -3312,7 +3312,7 @@ const ki = /* @__PURE__ */ ke({
3312
3312
  "align-items-center": !0
3313
3313
  })), {
3314
3314
  renderDataGridSummary: In
3315
- } = Po(n, g, A);
3315
+ } = Oo(n, g, A);
3316
3316
  return () => w("div", {
3317
3317
  ref: s,
3318
3318
  class: Q.value,
@@ -3328,17 +3328,17 @@ const ki = /* @__PURE__ */ ke({
3328
3328
  class: Bn.value
3329
3329
  }, [S.value && w("div", {
3330
3330
  class: kn.value
3331
- }, [w("div", null, ["已选:" + O.value.length, jn(" 条")])])]), tt(), E.value && Mt()]);
3331
+ }, [w("div", null, ["已选:" + P.value.length, jn(" 条")])])]), tt(), E.value && Mt()]);
3332
3332
  }
3333
3333
  });
3334
3334
  en(ki);
3335
3335
  const Ii = /* @__PURE__ */ new Map([
3336
3336
  ["appearance", zt]
3337
3337
  ]);
3338
- function Pi(n, t, e) {
3338
+ function Oi(n, t, e) {
3339
3339
  return t;
3340
3340
  }
3341
- const Oi = "https://json-schema.org/draft/2020-12/schema", Vi = "https://farris-design.gitee.io/step.schema.json", Ni = "step", ji = "A Farris Component", Di = "object", $i = {
3341
+ const Pi = "https://json-schema.org/draft/2020-12/schema", Vi = "https://farris-design.gitee.io/step.schema.json", Ni = "step", ji = "A Farris Component", Di = "object", $i = {
3342
3342
  id: {
3343
3343
  description: "The unique identifier for step",
3344
3344
  type: "string"
@@ -3404,7 +3404,7 @@ const Oi = "https://json-schema.org/draft/2020-12/schema", Vi = "https://farris-
3404
3404
  "id",
3405
3405
  "type"
3406
3406
  ], Ri = {
3407
- $schema: Oi,
3407
+ $schema: Pi,
3408
3408
  $id: Vi,
3409
3409
  title: Ni,
3410
3410
  description: ji,
@@ -3468,7 +3468,7 @@ const Oi = "https://json-schema.org/draft/2020-12/schema", Vi = "https://farris-
3468
3468
  /** 步骤条点击后事件 */
3469
3469
  onClick: { type: Function, default: () => {
3470
3470
  } }
3471
- }, hn = lt(Ut, Ri, Ii, Pi, qi), Ze = /* @__PURE__ */ ke({
3471
+ }, hn = lt(Ut, Ri, Ii, Oi, qi), Ze = /* @__PURE__ */ ke({
3472
3472
  name: "FStep",
3473
3473
  props: Ut,
3474
3474
  emits: ["click"],
@@ -3593,81 +3593,81 @@ const Oi = "https://json-schema.org/draft/2020-12/schema", Vi = "https://farris-
3593
3593
  })), d = R(() => ({
3594
3594
  height: e.value === "vertical" ? `${i.value}px` : ""
3595
3595
  }));
3596
- function f(S, O) {
3596
+ function f(S, P) {
3597
3597
  const y = {
3598
3598
  step: !0,
3599
- active: O === r.value,
3599
+ active: P === r.value,
3600
3600
  clickable: u.value,
3601
3601
  "click-disable": S.disable,
3602
- current: O === r.value
3602
+ current: P === r.value
3603
3603
  };
3604
- return O < r.value && (y.finish = !0), S.status && (y[S.status] = !0), S.hasOwnProperty("class") && S.class.split(" ").reduce((E, V) => (E[V] = !0, E), y), y;
3604
+ return P < r.value && (y.finish = !0), S.status && (y[S.status] = !0), S.hasOwnProperty("class") && S.class.split(" ").reduce((E, V) => (E[V] = !0, E), y), y;
3605
3605
  }
3606
- function v(S, O) {
3606
+ function v(S, P) {
3607
3607
  }
3608
- function x(S, O) {
3608
+ function x(S, P) {
3609
3609
  const y = {
3610
3610
  "f-progressstep-row": !0,
3611
- "step-active": O === r.value,
3612
- "step-current": O === r.value
3611
+ "step-active": P === r.value,
3612
+ "step-current": P === r.value
3613
3613
  };
3614
- return O < r.value && (y["step-finish"] = !0), S.status && (y["step-" + S.status] = !0), y;
3614
+ return P < r.value && (y["step-finish"] = !0), S.status && (y["step-" + S.status] = !0), y;
3615
3615
  }
3616
- function F(S, O) {
3616
+ function F(S, P) {
3617
3617
  const y = {
3618
3618
  "step-icon": !0,
3619
- "step-success": O,
3620
- "k-icon": O,
3621
- "k-i-check": O
3619
+ "step-success": P,
3620
+ "k-icon": P,
3621
+ "k-i-check": P
3622
3622
  };
3623
3623
  return S.hasOwnProperty("icon") && S.class.split(" ").reduce((E, V) => (E[V] = !0, E), y), y;
3624
3624
  }
3625
- function I(S, O) {
3625
+ function I(S, P) {
3626
3626
  const y = [];
3627
3627
  return S.icon ? y.push(w("span", {
3628
3628
  class: F(S, !1)
3629
- }, null)) : O >= r.value || O === s.value ? y.push(w("span", {
3629
+ }, null)) : P >= r.value || P === s.value ? y.push(w("span", {
3630
3630
  class: "step-icon"
3631
- }, [O + 1])) : y.push(w("span", {
3631
+ }, [P + 1])) : y.push(w("span", {
3632
3632
  class: F(S, !0)
3633
3633
  }, null)), y;
3634
3634
  }
3635
- function z(S, O) {
3635
+ function z(S, P) {
3636
3636
  return {
3637
3637
  "step-name": !0,
3638
- "step-name-success": O < r.value
3638
+ "step-name-success": P < r.value
3639
3639
  };
3640
3640
  }
3641
- function T(S, O) {
3641
+ function T(S, P) {
3642
3642
  return w("div", {
3643
3643
  class: "f-progress-step-title"
3644
3644
  }, [w("p", {
3645
- class: z(S, O)
3645
+ class: z(S, P)
3646
3646
  }, [S.title])]);
3647
3647
  }
3648
- function h(S, O) {
3648
+ function h(S, P) {
3649
3649
  return {
3650
3650
  "f-progress-step-line": !0,
3651
- "f-progress-step-line-success": O === r.value
3651
+ "f-progress-step-line-success": P === r.value
3652
3652
  };
3653
3653
  }
3654
- function g(S, O) {
3655
- return O !== a.value.length - 1;
3654
+ function g(S, P) {
3655
+ return P !== a.value.length - 1;
3656
3656
  }
3657
3657
  const k = R(() => ({
3658
3658
  triangle: !0,
3659
3659
  "": e.value === "vertical"
3660
3660
  }));
3661
3661
  function M() {
3662
- return a.value.map((S, O) => w("li", {
3663
- class: f(S, O),
3662
+ return a.value.map((S, P) => w("li", {
3663
+ class: f(S, P),
3664
3664
  onClick: (y) => void 0
3665
3665
  }, [w("div", {
3666
- class: x(S, O)
3666
+ class: x(S, P)
3667
3667
  }, [w("div", {
3668
3668
  class: "f-progress-step-content"
3669
- }, [I(S, O), T(S, O)]), g(S, O) && w("div", {
3670
- class: h(S, O)
3669
+ }, [I(S, P), T(S, P)]), g(S, P) && w("div", {
3670
+ class: h(S, P)
3671
3671
  }, [w("span", {
3672
3672
  class: k.value
3673
3673
  }, null)])])]));
@@ -3994,7 +3994,7 @@ const ar = "https://json-schema.org/draft/2020-12/schema", sr = "https://farris-
3994
3994
  editor: { type: Object, default: {} },
3995
3995
  label: { type: String, default: "" },
3996
3996
  /** value is uncertain because type is uncertain, default value should not be set */
3997
- modelValue: { type: [String, Boolean, Array, Number] },
3997
+ modelValue: { type: Object },
3998
3998
  // readonly: { type: Boolean, default: false },
3999
3999
  visible: { type: Boolean, default: !0 },
4000
4000
  required: { type: Boolean, default: !1 },
@@ -4155,7 +4155,7 @@ function Ir(n, t, e, o) {
4155
4155
  }
4156
4156
  return { getEditorRender: r };
4157
4157
  }
4158
- function Pr() {
4158
+ function Or() {
4159
4159
  const n = C(!1), t = C("复制成功");
4160
4160
  return {
4161
4161
  feedbackStyle: R(() => {
@@ -4182,7 +4182,7 @@ function Pr() {
4182
4182
  toShowFeedback: n
4183
4183
  };
4184
4184
  }
4185
- function Or(n, t) {
4185
+ function Pr(n, t) {
4186
4186
  const e = t.getEditorRender(n.promptEditorType);
4187
4187
  return () => e && e();
4188
4188
  }
@@ -4369,7 +4369,7 @@ const vt = /* @__PURE__ */ ke({
4369
4369
  cursor: "default"
4370
4370
  };
4371
4371
  return o.value === "prompt" ? F.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (F.padding = "0.5rem 1.5rem 1rem 1.5rem"), F;
4372
- }), s = Br(), c = Ir(n, o, i, a), p = Pr(), {
4372
+ }), s = Br(), c = Ir(n, o, i, a), p = Or(), {
4373
4373
  feedbackStyle: l,
4374
4374
  feedbackMessage: m
4375
4375
  } = p;
@@ -4382,7 +4382,7 @@ const vt = /* @__PURE__ */ ke({
4382
4382
  function f() {
4383
4383
  switch (o.value) {
4384
4384
  case "prompt":
4385
- return Or(n, c);
4385
+ return Pr(n, c);
4386
4386
  default:
4387
4387
  return jr(n, o, i, a, e);
4388
4388
  }
@@ -4784,11 +4784,11 @@ function Kr(n, t) {
4784
4784
  }
4785
4785
  i.value = void 0, a.value = null, r.value = null, u.value = null, s.value = null, c.value = null, p.value = null, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", S);
4786
4786
  }
4787
- function O() {
4787
+ function P() {
4788
4788
  document.addEventListener("mousemove", k), document.addEventListener("mouseup", S);
4789
4789
  }
4790
4790
  function y(D) {
4791
- D instanceof MouseEvent && D.button === 2 || v.value && (document.body.click(), D.stopPropagation(), D.preventDefault(), i.value = re.fromEvent(D), p.value = D.target, I(D), O());
4791
+ D instanceof MouseEvent && D.button === 2 || v.value && (document.body.click(), D.stopPropagation(), D.preventDefault(), i.value = re.fromEvent(D), p.value = D.target, I(D), P());
4792
4792
  }
4793
4793
  function E(D) {
4794
4794
  return e.value = D, d.value && w(at, null, [w("div", {
@@ -4903,9 +4903,9 @@ function ea(n, t, e) {
4903
4903
  return !1;
4904
4904
  }
4905
4905
  function f() {
4906
- var O, y;
4906
+ var P, y;
4907
4907
  let k = l.value.x + p.value.x, M = l.value.y + p.value.y;
4908
- a.value === "x" ? (k = ((O = c.value) == null ? void 0 : O.x) || 0, l.value.x = 0) : a.value === "y" && (M = ((y = c.value) == null ? void 0 : y.y) || 0, l.value.y = 0);
4908
+ a.value === "x" ? (k = ((P = c.value) == null ? void 0 : P.x) || 0, l.value.x = 0) : a.value === "y" && (M = ((y = c.value) == null ? void 0 : y.y) || 0, l.value.y = 0);
4909
4909
  const S = `translate3d(${Math.round(k)}px, ${Math.round(M)}px, 0px)`;
4910
4910
  o.value && (o.value.style.transform = S), m.value.x = k, m.value.y = M;
4911
4911
  }
@@ -4955,8 +4955,8 @@ function ea(n, t, e) {
4955
4955
  if (n.dragHandle instanceof HTMLElement)
4956
4956
  r.value = n.dragHandle;
4957
4957
  else if (typeof n.dragHandle == "string") {
4958
- const O = M.querySelector(n.dragHandle);
4959
- O && (r.value = O);
4958
+ const P = M.querySelector(n.dragHandle);
4959
+ P && (r.value = P);
4960
4960
  }
4961
4961
  }
4962
4962
  o.value = M, u.value = S, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", h)) : i.value = !1;
@@ -5005,7 +5005,7 @@ const Ge = /* @__PURE__ */ ke({
5005
5005
  } = Ht();
5006
5006
  F.value === "错误提示" && (F.value = T("messageBox.errorTitle"));
5007
5007
  const h = C(!1);
5008
- function g(P, Q) {
5008
+ function g(O, Q) {
5009
5009
  const ae = Q ? "accept" : "cancel";
5010
5010
  Promise.resolve().then(() => {
5011
5011
  var se;
@@ -5013,24 +5013,24 @@ const Ge = /* @__PURE__ */ ke({
5013
5013
  closeType: ae
5014
5014
  });
5015
5015
  }).then((se) => {
5016
- se && (i.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", P));
5016
+ se && (i.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", O));
5017
5017
  });
5018
5018
  }
5019
5019
  const k = [{
5020
5020
  name: "cancel",
5021
5021
  text: T("messageBox.cancel") || "取消",
5022
5022
  class: "btn btn-secondary",
5023
- handle: (P) => {
5024
- g(P, !1);
5023
+ handle: (O) => {
5024
+ g(O, !1);
5025
5025
  }
5026
5026
  }, {
5027
5027
  name: "accept",
5028
5028
  text: T("messageBox.ok") || "确定",
5029
5029
  class: "btn btn-primary",
5030
- handle: (P) => {
5031
- g(P, !0);
5030
+ handle: (O) => {
5031
+ g(O, !0);
5032
5032
  }
5033
- }], M = C(n.buttons && n.buttons.length ? n.buttons : k), S = R(() => !!c.value), O = R(() => !!x.value && !!M.value), y = C(), E = C(), V = C(!1), {
5033
+ }], M = C(n.buttons && n.buttons.length ? n.buttons : k), S = R(() => !!c.value), P = R(() => !!x.value && !!M.value), y = C(), E = C(), V = C(!1), {
5034
5034
  renderResizeBar: j,
5035
5035
  maximize: B,
5036
5036
  restore: q,
@@ -5046,65 +5046,65 @@ const Ge = /* @__PURE__ */ ke({
5046
5046
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
5047
5047
  }
5048
5048
  function he() {
5049
- const P = document.querySelectorAll(".farris-modal").length;
5050
- (!P || P - 1 <= 0) && document.body.classList.remove("modal-open"), z.value && z.value.classList.remove("show");
5049
+ const O = document.querySelectorAll(".farris-modal").length;
5050
+ (!O || O - 1 <= 0) && document.body.classList.remove("modal-open"), z.value && z.value.classList.remove("show");
5051
5051
  }
5052
- we(() => n.title, (P, Q) => {
5053
- P !== Q && (F.value = P);
5054
- }), we(() => n.modelValue, (P, Q) => {
5055
- P !== Q && (i.value = P, i.value && n.draggable && st(() => {
5052
+ we(() => n.title, (O, Q) => {
5053
+ O !== Q && (F.value = O);
5054
+ }), we(() => n.modelValue, (O, Q) => {
5055
+ O !== Q && (i.value = O, i.value && n.draggable && st(() => {
5056
5056
  E.value && !I.value && (I.value = E.value.parentElement, Z.value = I.value, te(y.value, E.value, Z.value), A());
5057
- }), P || (I.value && (I.value = null), he())), i.value ? h.value = ve() : (V.value = !1, N.value = n.draggable);
5058
- }), we(() => n.showHeader, (P, Q) => {
5059
- P !== Q && (s.value = P);
5060
- }), we(() => n.showButtons, (P, Q) => {
5061
- P !== Q && (x.value = P);
5062
- }), we(() => D.value, (P, Q) => {
5063
- const ae = P || {}, se = Q || {};
5057
+ }), O || (I.value && (I.value = null), he())), i.value ? h.value = ve() : (V.value = !1, N.value = n.draggable);
5058
+ }), we(() => n.showHeader, (O, Q) => {
5059
+ O !== Q && (s.value = O);
5060
+ }), we(() => n.showButtons, (O, Q) => {
5061
+ O !== Q && (x.value = O);
5062
+ }), we(() => D.value, (O, Q) => {
5063
+ const ae = O || {}, se = Q || {};
5064
5064
  JSON.stringify(ae) !== JSON.stringify(se) && t.emit("resize", {
5065
- newSize: P,
5065
+ newSize: O,
5066
5066
  oldSize: Q,
5067
5067
  isMaximized: V.value
5068
5068
  });
5069
5069
  });
5070
5070
  const J = R(() => (i.value && document.body.classList.add("modal-open"), i.value)), ie = R(() => {
5071
5071
  var ae;
5072
- const P = {
5072
+ const O = {
5073
5073
  modal: !0,
5074
5074
  "farris-modal": !0,
5075
5075
  fade: !0
5076
5076
  };
5077
- P["f-modal-fitContent"] = !!u.value, P.show = !!J.value;
5077
+ O["f-modal-fitContent"] = !!u.value, O.show = !!J.value;
5078
5078
  const Q = (ae = n.maskClass) == null ? void 0 : ae.split(" ");
5079
- return Q == null || Q.reduce((se, je) => (se[je] = !0, se), P), P;
5079
+ return Q == null || Q.reduce((se, je) => (se[je] = !0, se), O), O;
5080
5080
  }), le = R(() => {
5081
5081
  var ae;
5082
- const P = {
5082
+ const O = {
5083
5083
  "modal-dialog": !0
5084
5084
  }, Q = (ae = r.value) == null ? void 0 : ae.split(" ");
5085
- return Q == null || Q.reduce((se, je) => (se[je] = !0, se), P), P;
5085
+ return Q == null || Q.reduce((se, je) => (se[je] = !0, se), O), O;
5086
5086
  }), ne = R(() => {
5087
- const P = {
5087
+ const O = {
5088
5088
  position: "absolute",
5089
5089
  top: `${(window.innerHeight - o.value) / 2}px`,
5090
5090
  left: `${(window.innerWidth - e.value) / 2}px`,
5091
5091
  width: `${e.value}px`,
5092
5092
  height: u.value ? "auto" : `${o.value}px`
5093
5093
  };
5094
- return n.mask || (P.pointerEvents = "auto"), P;
5094
+ return n.mask || (O.pointerEvents = "auto"), O;
5095
5095
  }), W = R(() => {
5096
- const P = {
5096
+ const O = {
5097
5097
  display: "block"
5098
5098
  };
5099
- return n.mask || (P.pointerEvents = "none", P.backgroundColor = "transparent"), h.value && (P.backgroundColor = "transparent"), P;
5099
+ return n.mask || (O.pointerEvents = "none", O.backgroundColor = "transparent"), h.value && (O.backgroundColor = "transparent"), O;
5100
5100
  }), oe = R(() => ({
5101
5101
  "modal-content": !0,
5102
5102
  "modal-content-has-header": s.value
5103
5103
  })), Re = R(() => {
5104
- const P = {
5104
+ const O = {
5105
5105
  display: s.value ? "" : "none"
5106
5106
  };
5107
- return P["pointer-events"] = N.value ? "auto" : "none", P;
5107
+ return O["pointer-events"] = N.value ? "auto" : "none", O;
5108
5108
  }), Ie = R(() => ({
5109
5109
  "f-icon": !0,
5110
5110
  modal_maximize: !0,
@@ -5120,31 +5120,31 @@ const Ge = /* @__PURE__ */ ke({
5120
5120
  };
5121
5121
  }
5122
5122
  const He = R(() => {
5123
- const P = {
5123
+ const O = {
5124
5124
  textAlgin: v.value
5125
5125
  }, Q = Ye();
5126
- return Object.assign(P, Q);
5126
+ return Object.assign(O, Q);
5127
5127
  });
5128
- function ze(P) {
5129
- if (P == null || P.stopPropagation(), V.value) {
5128
+ function ze(O) {
5129
+ if (O == null || O.stopPropagation(), V.value) {
5130
5130
  V.value = !1, q();
5131
5131
  return;
5132
5132
  }
5133
5133
  B(), V.value = !0;
5134
5134
  }
5135
- async function ce(P, Q) {
5136
- P.handle && await P.handle(Q, P) && t.emit("closed", Q);
5135
+ async function ce(O, Q) {
5136
+ O.handle && await O.handle(Q, O) && t.emit("closed", Q);
5137
5137
  }
5138
- function Ke(P) {
5139
- P.width && (e.value = P.width), P.height && (o.value = P.height), P.buttons && (M.value = P.buttons), P.title && (F.value = P.title);
5138
+ function Ke(O) {
5139
+ O.width && (e.value = O.width), O.height && (o.value = O.height), O.buttons && (M.value = O.buttons), O.title && (F.value = O.title);
5140
5140
  }
5141
- let Te = null, Pe = null;
5141
+ let Te = null, Oe = null;
5142
5142
  Dn(() => {
5143
5143
  h.value = ve();
5144
5144
  }), Xe(() => {
5145
- E.value && !I.value && (I.value = E.value.parentElement, Z.value = I.value, te(y.value, E.value, Z.value)), J.value && document.body.classList.add("modal-open"), Te = ta(n, t), Pe = na(n, t);
5145
+ E.value && !I.value && (I.value = E.value.parentElement, Z.value = I.value, te(y.value, E.value, Z.value)), J.value && document.body.classList.add("modal-open"), Te = ta(n, t), Oe = na(n, t);
5146
5146
  }), wt(() => {
5147
- G && G(), Te && Te.remove(), Pe && Pe.remove();
5147
+ G && G(), Te && Te.remove(), Oe && Oe.remove();
5148
5148
  }), t.expose({
5149
5149
  modalElementRef: E,
5150
5150
  updateModalOptions: Ke,
@@ -5152,7 +5152,7 @@ const Ge = /* @__PURE__ */ ke({
5152
5152
  maxDialog: ze,
5153
5153
  isMaximized: V
5154
5154
  });
5155
- function Oe() {
5155
+ function Pe() {
5156
5156
  return w("ul", null, [m.value && w("li", {
5157
5157
  class: "f-btn-icon f-bare"
5158
5158
  }, [w("span", {
@@ -5165,7 +5165,7 @@ const Ge = /* @__PURE__ */ ke({
5165
5165
  class: Ie.value
5166
5166
  }, null)]), p.value && w("li", {
5167
5167
  class: "f-btn-icon f-bare",
5168
- onClick: (P) => g(P, !1),
5168
+ onClick: (O) => g(O, !1),
5169
5169
  style: "pointer-events: auto;"
5170
5170
  }, [w("span", {
5171
5171
  class: "f-icon modal_close"
@@ -5175,19 +5175,19 @@ const Ge = /* @__PURE__ */ ke({
5175
5175
  return w("div", {
5176
5176
  class: "modal-footer",
5177
5177
  style: He.value
5178
- }, [M.value && M.value.map((P) => {
5179
- const Q = C(P.disabled);
5178
+ }, [M.value && M.value.map((O) => {
5179
+ const Q = C(O.disabled);
5180
5180
  return w("button", {
5181
- name: P.name,
5181
+ name: O.name,
5182
5182
  type: "button",
5183
5183
  disabled: Q.value,
5184
- class: P.class + (P.iconClass ? " btn-icontext" : ""),
5184
+ class: O.class + (O.iconClass ? " btn-icontext" : ""),
5185
5185
  onClick: (ae) => {
5186
- ce(P, ae);
5186
+ ce(O, ae);
5187
5187
  }
5188
- }, [!!P.iconClass && w("i", {
5189
- class: P.iconClass
5190
- }, null), P.text]);
5188
+ }, [!!O.iconClass && w("i", {
5189
+ class: O.iconClass
5190
+ }, null), O.text]);
5191
5191
  })]);
5192
5192
  }
5193
5193
  function et() {
@@ -5204,20 +5204,20 @@ const Ge = /* @__PURE__ */ ke({
5204
5204
  class: "modal-title-label"
5205
5205
  }, [F.value])]), w("div", {
5206
5206
  class: "actions"
5207
- }, [Oe()])]);
5207
+ }, [Pe()])]);
5208
5208
  }
5209
5209
  function Ae() {
5210
- return t.slots.footerTemplate ? t.slots.footerTemplate() : O.value && Ve();
5210
+ return t.slots.footerTemplate ? t.slots.footerTemplate() : P.value && Ve();
5211
5211
  }
5212
- function Be(P) {
5213
- if (P.stopPropagation(), n.allowClickMaskToClose) {
5214
- if (P.target !== z.value)
5212
+ function Be(O) {
5213
+ if (O.stopPropagation(), n.allowClickMaskToClose) {
5214
+ if (O.target !== z.value)
5215
5215
  return;
5216
- g(P, !1);
5216
+ g(O, !1);
5217
5217
  }
5218
5218
  }
5219
5219
  function Ne() {
5220
- var P, Q;
5220
+ var O, Q;
5221
5221
  return w("div", {
5222
5222
  id: a.value,
5223
5223
  class: le.value,
@@ -5227,7 +5227,7 @@ const Ge = /* @__PURE__ */ ke({
5227
5227
  class: oe.value
5228
5228
  }, [s.value && et(), w("div", {
5229
5229
  class: xe.value
5230
- }, [(Q = (P = t.slots).default) == null ? void 0 : Q.call(P), d.value === "iframe" && w("iframe", {
5230
+ }, [(Q = (O = t.slots).default) == null ? void 0 : Q.call(O), d.value === "iframe" && w("iframe", {
5231
5231
  title: a.value,
5232
5232
  class: "f-utils-fill",
5233
5233
  width: "100%",
@@ -5235,8 +5235,8 @@ const Ge = /* @__PURE__ */ ke({
5235
5235
  src: f.value
5236
5236
  }, null)]), Ae()]), !u.value && E.value && !V.value && j(E.value)]);
5237
5237
  }
5238
- function Je(P) {
5239
- return P || "body";
5238
+ function Je(O) {
5239
+ return O || "body";
5240
5240
  }
5241
5241
  return () => w($n, {
5242
5242
  to: Je(n.host)