@farris/ui-vue 1.3.0 → 1.3.1

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 (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,8 +1,8 @@
1
1
  var Ze = Object.defineProperty;
2
2
  var _e = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Q = (e, t, n) => _e(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as q, ref as l, watch as A, computed as T, onMounted as J, createVNode as i, nextTick as fe, toRefs as Ke, onBeforeMount as pe, createTextVNode as G, Fragment as ue, withModifiers as le, inject as Ce, provide as et, onUnmounted as Me, Teleport as tt, Transition as nt, shallowRef as at, createApp as lt, render as ce, h as ot, cloneVNode as it, mergeProps as Ie, reactive as Z } from "vue";
5
- import { isPlainObject as we, cloneDeep as U } from "lodash-es";
3
+ var N = (e, t, n) => _e(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as U, ref as l, watch as A, computed as L, onMounted as Q, createVNode as i, nextTick as fe, toRefs as Ke, onBeforeMount as ve, createTextVNode as q, Fragment as ue, withModifiers as le, inject as Se, provide as et, onUnmounted as Ce, Teleport as tt, Transition as nt, shallowRef as at, createApp as lt, render as ce, h as ot, cloneVNode as it, mergeProps as Ie, reactive as Z } from "vue";
5
+ import { isPlainObject as be, cloneDeep as X } from "lodash-es";
6
6
  import ut from "../list-view/index.esm.js";
7
7
  import st from "../button-edit/index.esm.js";
8
8
  const rt = {
@@ -437,23 +437,23 @@ const rt = {
437
437
  type: ht,
438
438
  properties: yt,
439
439
  required: gt
440
- }, xe = {}, Ee = {};
441
- function me(e) {
442
- const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), r = Object.keys(t).reduce((c, d) => ((!o || !a.find((v) => v == d)) && (c[d] = t[d].type === "object" && t[d].properties ? me(t[d]) : U(t[d].default)), c), {});
443
- return (!o || !a.find((c) => c == "id")) && (r.id = `${n}-${Date.now()}`), r;
440
+ }, Me = {}, xe = {};
441
+ function pe(e) {
442
+ const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), r = Object.keys(t).reduce((c, d) => ((!o || !a.find((v) => v == d)) && (c[d] = t[d].type === "object" && t[d].properties ? pe(t[d]) : X(t[d].default)), c), {});
443
+ return n && (!o || !a.find((c) => c == "id")) && (r.id = `${n}-${Date.now()}`), r;
444
444
  }
445
- function ve(e, t = {}, n) {
446
- const a = xe[e];
445
+ function Ee(e, t = {}, n) {
446
+ const a = Me[e];
447
447
  if (a) {
448
- let o = me(a);
449
- const r = Ee[e];
450
- return o = r ? r({ getSchemaByType: ve }, o, t, n) : o, o;
448
+ let o = pe(a);
449
+ const r = xe[e];
450
+ return o = r ? r({ getSchemaByType: Ee }, o, t, n) : o, o;
451
451
  }
452
452
  return null;
453
453
  }
454
454
  function wt(e, t) {
455
- const n = me(t);
456
- return Object.keys(e).reduce((a, o) => (a[o] && we(a[o]) && we(e[o]) ? Object.assign(a[o], e[o]) : a[o] = e[o], a), n), n;
455
+ const n = pe(t);
456
+ return Object.keys(e).reduce((a, o) => (a[o] && be(a[o]) && be(e[o]) ? Object.assign(a[o], e[o]) : a[o] = e[o], a), n), n;
457
457
  }
458
458
  function St(e, t) {
459
459
  return Object.keys(e).filter((a) => e[a] != null).reduce((a, o) => {
@@ -474,8 +474,8 @@ function Ct(e, t, n = /* @__PURE__ */ new Map()) {
474
474
  const a = wt(e, t);
475
475
  return St(a, n);
476
476
  }
477
- function Mt(e = {}) {
478
- function t(s, m, u, f) {
477
+ function It(e = {}) {
478
+ function t(s, p, u, f) {
479
479
  if (typeof u == "number")
480
480
  return f[s].length === u;
481
481
  if (typeof u == "object") {
@@ -489,20 +489,20 @@ function Mt(e = {}) {
489
489
  }
490
490
  return !1;
491
491
  }
492
- function n(s, m, u, f) {
492
+ function n(s, p, u, f) {
493
493
  return f[s] && f[s].propertyValue && String(f[s].propertyValue.value) === String(u);
494
494
  }
495
495
  const a = /* @__PURE__ */ new Map([
496
496
  ["length", t],
497
497
  ["getProperty", n]
498
498
  ]);
499
- Object.keys(e).reduce((s, m) => (s.set(m, e[m]), s), a);
500
- function o(s, m) {
499
+ Object.keys(e).reduce((s, p) => (s.set(p, e[p]), s), a);
500
+ function o(s, p) {
501
501
  const u = s;
502
- return typeof m == "number" ? [{ target: u, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: u, operator: "getProperty", param: s, value: !!m }] : typeof m == "object" ? Object.keys(m).map((f) => {
502
+ return typeof p == "number" ? [{ target: u, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: u, operator: "getProperty", param: s, value: !!p }] : typeof p == "object" ? Object.keys(p).map((f) => {
503
503
  if (f === "length")
504
- return { target: u, operator: "length", param: null, value: m[f] };
505
- const h = f, b = m[f];
504
+ return { target: u, operator: "length", param: null, value: p[f] };
505
+ const h = f, b = p[f];
506
506
  return { target: u, operator: "getProperty", param: h, value: b };
507
507
  }) : [];
508
508
  }
@@ -512,27 +512,27 @@ function Mt(e = {}) {
512
512
  return u.push(...h), u;
513
513
  }, []);
514
514
  }
515
- function c(s, m) {
515
+ function c(s, p) {
516
516
  if (a.has(s.operator)) {
517
517
  const u = a.get(s.operator);
518
- return u && u(s.target, s.param, s.value, m) || !1;
518
+ return u && u(s.target, s.param, s.value, p) || !1;
519
519
  }
520
520
  return !1;
521
521
  }
522
- function d(s, m) {
523
- return r(s).reduce((h, b) => h && c(b, m), !0);
522
+ function d(s, p) {
523
+ return r(s).reduce((h, b) => h && c(b, p), !0);
524
524
  }
525
- function v(s, m) {
526
- const u = Object.keys(s), f = u.includes("allOf"), h = u.includes("anyOf"), b = f || h, w = (b ? s[b ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((L) => d(L, m));
525
+ function v(s, p) {
526
+ const u = Object.keys(s), f = u.includes("allOf"), h = u.includes("anyOf"), b = f || h, w = (b ? s[b ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((R) => d(R, p));
527
527
  return f ? !w.includes(!1) : w.includes(!0);
528
528
  }
529
529
  return { parseValueSchema: v };
530
530
  }
531
- const It = {}, xt = {};
532
- Mt();
531
+ const Mt = {}, xt = {};
532
+ It();
533
533
  function K(e, t, n = /* @__PURE__ */ new Map(), a = (c, d, v) => d, o = {}, r = (c) => c) {
534
- return xe[t.title] = t, Ee[t.title] = a, It[t.title] = o, xt[t.title] = r, (c = {}) => {
535
- const d = Ct(c, t, n), v = Object.keys(e).reduce((s, m) => (s[m] = e[m].default, s), {});
534
+ return Me[t.title] = t, xe[t.title] = a, Mt[t.title] = o, xt[t.title] = r, (c = {}) => {
535
+ const d = Ct(c, t, n), v = Object.keys(e).reduce((s, p) => (s[p] = e[p].default, s), {});
536
536
  return Object.assign(v, d);
537
537
  };
538
538
  }
@@ -595,7 +595,7 @@ const Bt = "capsule", Tt = "A Farris Component", Lt = "object", Rt = {
595
595
  disabled: { type: Boolean, default: !1 }
596
596
  };
597
597
  K(De, bt, Et, Dt, Ft);
598
- const $t = /* @__PURE__ */ q({
598
+ const Wt = /* @__PURE__ */ U({
599
599
  name: "FCapsuleItem",
600
600
  props: kt,
601
601
  emits: ["mounted", "active"],
@@ -604,12 +604,12 @@ const $t = /* @__PURE__ */ q({
604
604
  A(() => e.isActive, (c) => {
605
605
  a.value = c;
606
606
  });
607
- const o = T(() => ({
607
+ const o = L(() => ({
608
608
  "f-capsule-item": !0,
609
609
  "f-capsule-active-item": a.value,
610
610
  "f-capsule-disabled": e.disabled
611
611
  }));
612
- J(() => {
612
+ Q(() => {
613
613
  t.emit("mounted", n, e.value);
614
614
  });
615
615
  function r(c) {
@@ -626,71 +626,71 @@ const $t = /* @__PURE__ */ q({
626
626
  class: e.icon
627
627
  }, null), e.name]);
628
628
  }
629
- }), Wt = /* @__PURE__ */ q({
629
+ }), $t = /* @__PURE__ */ U({
630
630
  name: "FCapsule",
631
631
  props: De,
632
632
  emits: ["change", "update:modelValue"],
633
633
  setup(e, t) {
634
- const n = l(e.items), a = l(), o = 2, r = l(e.modelValue), c = l("none"), d = l(e.type), v = T(() => {
635
- const y = {
634
+ const n = l(e.items), a = l(), o = 2, r = l(e.modelValue), c = l("none"), d = l(e.type), v = L(() => {
635
+ const g = {
636
636
  "f-capsule-container": !0
637
637
  };
638
- return d.value && (y[d.value] = !0), y;
639
- }), s = T(() => ({})), m = T(() => ({
638
+ return d.value && (g[d.value] = !0), g;
639
+ }), s = L(() => ({})), p = L(() => ({
640
640
  "f-capsule": !0
641
- })), u = l(o), f = l(0), h = l(0), b = T(() => ({
641
+ })), u = l(o), f = l(0), h = l(0), b = L(() => ({
642
642
  left: `${u.value}px`,
643
643
  width: `${f.value}px`,
644
644
  transition: c.value
645
- })), M = T(() => ({
645
+ })), I = L(() => ({
646
646
  width: `${h.value}px`
647
- })), g = /* @__PURE__ */ new Map();
648
- function w(y) {
649
- var p;
650
- if (g.has(y.value)) {
651
- const D = (p = g.get(y.value)) == null ? void 0 : p.value;
652
- if (D) {
653
- const O = D.getBoundingClientRect(), N = a.value.getBoundingClientRect();
654
- u.value = O.left - N.left + o + a.value.scrollLeft, f.value = O.width - 2 * o;
647
+ })), y = /* @__PURE__ */ new Map();
648
+ function w(g) {
649
+ var m;
650
+ if (y.has(g.value)) {
651
+ const T = (m = y.get(g.value)) == null ? void 0 : m.value;
652
+ if (T) {
653
+ const O = T.getBoundingClientRect(), P = a.value.getBoundingClientRect();
654
+ u.value = O.left - P.left + o + a.value.scrollLeft, f.value = O.width - 2 * o;
655
655
  }
656
656
  }
657
657
  }
658
- function R(y, p) {
659
- const D = y.value;
660
- r.value = D, t.emit("update:modelValue", D), w(y), p && t.emit("change", D);
661
- }
662
- function L(y) {
663
- const p = n.value.findIndex((D) => D.value === y);
664
- p > -1 && R(n.value[p], !1);
665
- }
666
- A(() => e.modelValue, (y) => {
667
- r.value = y, L(r.value);
668
- }), A(() => e.items, async (y) => {
669
- const p = y.filter((D) => D.show);
670
- F(p), n.value = p, await fe(), L(r.value), h.value = Array.from(g.values()).reduce((D, O) => (D += O.value.clientWidth, D), 0);
671
- }), J(async () => {
672
- L(r.value), await fe(), c.value = "0.1s ease-out all", h.value = Array.from(g.values()).reduce((y, p) => (y += p.value.clientWidth, y), 0);
658
+ function F(g, m) {
659
+ const T = g.value;
660
+ r.value = T, t.emit("update:modelValue", T), w(g), m && t.emit("change", T);
661
+ }
662
+ function R(g) {
663
+ const m = n.value.findIndex((T) => T.value === g);
664
+ m > -1 && F(n.value[m], !1);
665
+ }
666
+ A(() => e.modelValue, (g) => {
667
+ r.value = g, R(r.value);
668
+ }), A(() => e.items, async (g) => {
669
+ const m = g.filter((T) => T.show);
670
+ $(m), n.value = m, await fe(), R(r.value), h.value = Array.from(y.values()).reduce((T, O) => (T += O.value.clientWidth, T), 0);
671
+ }), Q(async () => {
672
+ R(r.value), await fe(), c.value = "0.1s ease-out all", h.value = Array.from(y.values()).reduce((g, m) => (g += m.value.clientWidth, g), 0);
673
673
  });
674
- function j(y, p) {
675
- R(p, !0);
674
+ function j(g, m) {
675
+ F(m, !0);
676
676
  }
677
- function W(y, p) {
678
- g.set(p, y);
677
+ function B(g, m) {
678
+ y.set(m, g);
679
679
  }
680
- function F(y) {
681
- Array.from(g.keys()).forEach((p) => {
682
- y.find((O) => O.value === p) || g.delete(p);
680
+ function $(g) {
681
+ Array.from(y.keys()).forEach((m) => {
682
+ g.find((O) => O.value === m) || y.delete(m);
683
683
  });
684
684
  }
685
- function S(y, p) {
686
- return i($t, {
687
- name: y.name,
688
- value: y.value,
689
- isActive: y.value === r.value,
690
- index: p,
691
- disabled: y.disabled,
692
- key: y.value,
693
- onMounted: W,
685
+ function S(g, m) {
686
+ return i(Wt, {
687
+ name: g.name,
688
+ value: g.value,
689
+ isActive: g.value === r.value,
690
+ index: m,
691
+ disabled: g.disabled,
692
+ key: g.value,
693
+ onMounted: B,
694
694
  onActive: j
695
695
  }, null);
696
696
  }
@@ -700,12 +700,12 @@ const $t = /* @__PURE__ */ q({
700
700
  style: s.value
701
701
  }, [i("span", {
702
702
  class: "f-capsule-pane"
703
- }, [n.value.map((y, p) => S(y, p))]), i("small", {
704
- class: m.value,
703
+ }, [n.value.map((g, m) => S(g, m))]), i("small", {
704
+ class: p.value,
705
705
  style: b.value
706
706
  }, null), i("div", {
707
707
  class: "f-capsule-board",
708
- style: M.value
708
+ style: I.value
709
709
  }, null)]);
710
710
  }
711
711
  }), Ot = /* @__PURE__ */ new Map([
@@ -780,7 +780,7 @@ const $t = /* @__PURE__ */ q({
780
780
  size: {
781
781
  description: "",
782
782
  type: "enum",
783
- default: "middle"
783
+ default: "medium"
784
784
  }
785
785
  }, Pt = [
786
786
  "id",
@@ -820,7 +820,7 @@ const Be = {
820
820
  } }
821
821
  };
822
822
  K(Be, qt, Ot, Ut);
823
- const Xt = /* @__PURE__ */ q({
823
+ const Xt = /* @__PURE__ */ U({
824
824
  name: "FSwitch",
825
825
  props: Be,
826
826
  emits: ["update:modelValue", "modelValueChanged"],
@@ -834,38 +834,38 @@ const Xt = /* @__PURE__ */ q({
834
834
  offBackground: d,
835
835
  onColor: v,
836
836
  offColor: s
837
- } = Ke(e), m = l(e.modelValue), u = T(() => ({
837
+ } = Ke(e), p = l(e.modelValue), u = L(() => ({
838
838
  switch: !0,
839
839
  "f-cmp-switch": !0,
840
- checked: m.value,
840
+ checked: p.value,
841
841
  disabled: n.value,
842
842
  "switch-large": a.value === "large",
843
843
  "switch-medium": a.value === "medium",
844
844
  "switch-small": a.value === "small"
845
- })), f = T(() => m.value ? {
845
+ })), f = L(() => p.value ? {
846
846
  outline: "none",
847
847
  background: c.value
848
848
  } : {
849
849
  outline: "none",
850
850
  backgroundColor: d.value
851
- }), h = T(() => m.value ? {
851
+ }), h = L(() => p.value ? {
852
852
  background: v.value
853
853
  } : {
854
854
  backgroundColor: s.value
855
- }), b = T(() => (o == null ? void 0 : o.value) || (r == null ? void 0 : r.value));
856
- function M() {
857
- n.value || (m.value = !m.value, t.emit("update:modelValue", m.value));
858
- }
859
- return A(m, (g, w) => {
860
- g !== w && t.emit("modelValueChanged", g);
861
- }), A(() => e.modelValue, (g, w) => {
862
- g !== w && (m.value = g);
855
+ }), b = L(() => (o == null ? void 0 : o.value) || (r == null ? void 0 : r.value));
856
+ function I() {
857
+ n.value || (p.value = !p.value, t.emit("update:modelValue", p.value));
858
+ }
859
+ return A(p, (y, w) => {
860
+ y !== w && t.emit("modelValueChanged", y);
861
+ }), A(() => e.modelValue, (y, w) => {
862
+ y !== w && (p.value = y);
863
863
  }), () => i("span", {
864
864
  tabindex: "0",
865
865
  role: "button",
866
866
  class: u.value,
867
867
  style: f.value,
868
- onClick: M
868
+ onClick: I
869
869
  }, [b.value && i("span", {
870
870
  class: "switch-pane"
871
871
  }, [i("span", {
@@ -876,7 +876,7 @@ const Xt = /* @__PURE__ */ q({
876
876
  style: h.value
877
877
  }, [t.slots.default && t.slots.default()])]);
878
878
  }
879
- }), Yt = /* @__PURE__ */ q({
879
+ }), Yt = /* @__PURE__ */ U({
880
880
  name: "FScreenResolutionSelector",
881
881
  props: dt,
882
882
  emits: ["screenNameChanged", "currentScreenResolutionChanged", "switchInStandardModeChanged"],
@@ -902,24 +902,24 @@ const Xt = /* @__PURE__ */ q({
902
902
  value: "EL",
903
903
  active: !1
904
904
  }]), a = l(e.defaultStates), o = l("MD"), r = l("中等屏幕"), c = l(!0);
905
- function d(m) {
905
+ function d(p) {
906
906
  n.value.forEach((u) => {
907
- u.active = u.code === m, u.active && (o.value = u.code, r.value = u.name, t.emit("screenNameChanged", r.value), t.emit("currentScreenResolutionChanged", o.value));
907
+ u.active = u.code === p, u.active && (o.value = u.code, r.value = u.name, t.emit("screenNameChanged", r.value), t.emit("currentScreenResolutionChanged", o.value));
908
908
  });
909
909
  }
910
910
  function v() {
911
911
  t.emit("switchInStandardModeChanged", c.value);
912
912
  }
913
913
  A(c, () => {
914
- }), pe(() => {
914
+ }), ve(() => {
915
915
  a.value.model === "standard" ? c.value = !0 : (c.value = !1, v());
916
916
  });
917
917
  function s() {
918
- return i(Wt, {
918
+ return i($t, {
919
919
  class: "f-layout-editor-screen-resolution-selector-frame",
920
920
  items: n.value,
921
921
  modelValue: o.value,
922
- "onUpdate:modelValue": (m) => o.value = m,
922
+ "onUpdate:modelValue": (p) => o.value = p,
923
923
  onChange: d
924
924
  }, null);
925
925
  }
@@ -929,18 +929,18 @@ const Xt = /* @__PURE__ */ q({
929
929
  class: "f-layout-editor-screen-resolution-selector-header"
930
930
  }, [i("div", {
931
931
  class: "f-layout-editor-screen-resolution-selector-form"
932
- }, [G("表单布局配置")])]), s(), i("div", {
932
+ }, [q("表单布局配置")])]), s(), i("div", {
933
933
  class: "f-layout-editor-screen-resolution-selector-switch"
934
934
  }, [i(Xt, {
935
935
  class: "f-layout-editor-show-switch",
936
936
  modelValue: c.value,
937
- "onUpdate:modelValue": (m) => c.value = m,
937
+ "onUpdate:modelValue": (p) => c.value = p,
938
938
  onModelValueChanged: v
939
939
  }, null), c.value ? i("div", {
940
940
  class: "f-layout-editor-show-switch-label"
941
- }, [G("标准模式")]) : i("div", {
941
+ }, [q("标准模式")]) : i("div", {
942
942
  class: "f-layout-editor-show-switch-label"
943
- }, [G("自定义模式")])])]);
943
+ }, [q("自定义模式")])])]);
944
944
  }
945
945
  }), Jt = {
946
946
  /** 默认屏幕分辨率对应的英文缩写 */
@@ -958,12 +958,12 @@ const Xt = /* @__PURE__ */ q({
958
958
  currentScreenResolution: { type: String, default: "" },
959
959
  /** 接受switch状态,若为自定义模式,则需要改变Col-num的num来源;*/
960
960
  switchInStandardMode: { type: Boolean, default: !1 }
961
- }, Zt = /* @__PURE__ */ q({
961
+ }, Zt = /* @__PURE__ */ U({
962
962
  name: "FColumnWidthView",
963
963
  props: Qt,
964
964
  emits: [],
965
965
  setup(e, t) {
966
- const n = l(e.item), a = l(e.currentScreenResolution), o = T(() => `col-${n.value[`columnIn${a.value}`]}`);
966
+ const n = l(e.item), a = l(e.currentScreenResolution), o = L(() => `col-${n.value[`columnIn${a.value}`]}`);
967
967
  return A([() => e.item, () => e.currentScreenResolution], ([r, c], [d, v]) => {
968
968
  r !== d && (n.value = r), c !== v && (a.value = c);
969
969
  }), () => i("div", {
@@ -975,21 +975,21 @@ const Xt = /* @__PURE__ */ q({
975
975
  class: "f-layout-editor-column-width-view-label"
976
976
  }, [n.value.label])])]);
977
977
  }
978
- }), _t = /* @__PURE__ */ q({
978
+ }), _t = /* @__PURE__ */ U({
979
979
  name: "FPreview",
980
980
  props: Jt,
981
981
  emits: ["update:twoDimensionalArray"],
982
982
  setup(e, t) {
983
983
  const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), r = l(e.twoDimensionalArray), c = l([]);
984
- A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([u, f, h], [b, M, g]) => {
985
- u !== b && (o.value = u), f !== M && (a.value = f), h !== g && (n.value = h);
984
+ A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([u, f, h], [b, I, y]) => {
985
+ u !== b && (o.value = u), f !== I && (a.value = f), h !== y && (n.value = h);
986
986
  }), A(() => e.twoDimensionalArray, () => {
987
987
  r.value = e.twoDimensionalArray, d();
988
- }), J(() => {
988
+ }), Q(() => {
989
989
  d();
990
990
  });
991
991
  function d() {
992
- c.value = U(r.value), c.value = v();
992
+ c.value = X(r.value), c.value = v();
993
993
  }
994
994
  function v() {
995
995
  const u = [];
@@ -1002,11 +1002,11 @@ const Xt = /* @__PURE__ */ q({
1002
1002
  function s(u, f) {
1003
1003
  const h = [];
1004
1004
  let b = [];
1005
- return u.forEach((M) => {
1006
- f !== M.componentRow && (f += 1, h.push(b), b = []), b.push(M);
1005
+ return u.forEach((I) => {
1006
+ f !== I.componentRow && (f += 1, h.push(b), b = []), b.push(I);
1007
1007
  }), h.push(b), h;
1008
1008
  }
1009
- function m() {
1009
+ function p() {
1010
1010
  if (a.value)
1011
1011
  return "";
1012
1012
  const u = Array.from({
@@ -1015,7 +1015,7 @@ const Xt = /* @__PURE__ */ q({
1015
1015
  class: "col-1"
1016
1016
  }, [i("div", {
1017
1017
  class: "f-layout-editor-preview-customize-single-background"
1018
- }, [G(" ")])]));
1018
+ }, [q(" ")])]));
1019
1019
  return i("div", {
1020
1020
  class: "f-layout-editor-preview-customize-whole-background"
1021
1021
  }, [u]);
@@ -1024,7 +1024,7 @@ const Xt = /* @__PURE__ */ q({
1024
1024
  class: "f-layout-editor-preview f-utils-fill-flex-column"
1025
1025
  }, [i("div", {
1026
1026
  class: "f-layout-editor-preview-header"
1027
- }, [G("预览区")]), m(), i("div", {
1027
+ }, [q("预览区")]), p(), i("div", {
1028
1028
  class: "f-layout-editor-preview-view f-utils-overflow-xhya"
1029
1029
  }, [i("div", {
1030
1030
  class: "f-layout-editor-preview-row-group"
@@ -1032,9 +1032,9 @@ const Xt = /* @__PURE__ */ q({
1032
1032
  var f, h;
1033
1033
  return ((f = u[0][0]) == null ? void 0 : f.group.toString()) === ((h = o.value[0]) == null ? void 0 : h.id) && u.map((b) => i("div", {
1034
1034
  class: "f-layout-editor-row"
1035
- }, [b.map((M) => i(Zt, {
1036
- item: M,
1037
- "onUpdate:item": (g) => M = g,
1035
+ }, [b.map((I) => i(Zt, {
1036
+ item: I,
1037
+ "onUpdate:item": (y) => I = y,
1038
1038
  currentScreenResolution: n.value,
1039
1039
  switchInStandardMode: a.value
1040
1040
  }, null))]));
@@ -1090,14 +1090,14 @@ function en(e, t) {
1090
1090
  function s(u) {
1091
1091
  u.preventDefault(), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
1092
1092
  }
1093
- function m(u, f) {
1093
+ function p(u, f) {
1094
1094
  f && (f.moving = !1), a.value = !1;
1095
1095
  }
1096
1096
  return {
1097
1097
  dragstart: c,
1098
1098
  dragenter: v,
1099
1099
  dragover: s,
1100
- dragend: m,
1100
+ dragend: p,
1101
1101
  isDragging: a
1102
1102
  };
1103
1103
  }
@@ -1428,12 +1428,12 @@ const vn = {
1428
1428
  },
1429
1429
  // 搜索启用高亮
1430
1430
  enableHighlightSearch: { type: Boolean, default: !0 }
1431
- }, pn = /* @__PURE__ */ q({
1431
+ }, pn = /* @__PURE__ */ U({
1432
1432
  name: "FComboListContainer",
1433
1433
  props: vn,
1434
1434
  emits: ["selectionChange"],
1435
1435
  setup(e, t) {
1436
- const n = l(), a = l(e.dataSource), o = l([]), r = l(e.separator), c = l(e.width), d = l(e.maxHeight), v = l(String(e.selectedValues).split(r.value)), s = T(() => e.multiSelect), m = T(() => ({
1436
+ const n = l(), a = l(e.dataSource), o = l([]), r = l(e.separator), c = l(e.width), d = l(e.maxHeight), v = l(String(e.selectedValues).split(r.value)), s = L(() => e.multiSelect), p = L(() => ({
1437
1437
  enableSelectRow: !0,
1438
1438
  multiSelect: e.multiSelect,
1439
1439
  multiSelectMode: "OnCheckAndClick",
@@ -1444,21 +1444,21 @@ const vn = {
1444
1444
  A(e.dataSource, () => {
1445
1445
  a.value = e.dataSource;
1446
1446
  });
1447
- const u = T(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = T(() => {
1448
- const M = {};
1449
- return c.value !== void 0 && (M.width = `${c.value}px`), d.value !== void 0 && d.value > 0 && (M.maxHeight = `${d.value}px`), M;
1447
+ const u = L(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = L(() => {
1448
+ const I = {};
1449
+ return c.value !== void 0 && (I.width = `${c.value}px`), d.value !== void 0 && d.value > 0 && (I.maxHeight = `${d.value}px`), I;
1450
1450
  });
1451
- function h(M) {
1452
- o.value = M.map((g) => Object.assign({}, g)), v.value = M.map((g) => g[e.idField]), t.emit("selectionChange", o.value);
1451
+ function h(I) {
1452
+ o.value = I.map((y) => Object.assign({}, y)), v.value = I.map((y) => y[e.idField]), t.emit("selectionChange", o.value);
1453
1453
  }
1454
- function b(M) {
1454
+ function b(I) {
1455
1455
  if (e.enableHighlightSearch)
1456
1456
  return;
1457
- let g = [];
1458
- typeof e.searchOption == "function" ? g = a.value.filter((w) => e.searchOption(M, w)) : g = a.value.filter((w) => w[e.valueField].indexOf(M) > -1 || w[e.textField].indexOf(M) > -1), n.value.updateDataSource(g);
1457
+ let y = [];
1458
+ typeof e.searchOption == "function" ? y = a.value.filter((w) => e.searchOption(I, w)) : y = a.value.filter((w) => w[e.valueField].indexOf(I) > -1 || w[e.textField].indexOf(I) > -1), n.value.updateDataSource(y);
1459
1459
  }
1460
- return A([() => e.selectedValues], ([M]) => {
1461
- v.value = M.split(r.value);
1460
+ return A([() => e.selectedValues], ([I]) => {
1461
+ v.value = I.split(r.value);
1462
1462
  }), () => i("div", {
1463
1463
  class: "f-combo-list-container pl-1",
1464
1464
  style: f.value
@@ -1473,7 +1473,7 @@ const vn = {
1473
1473
  textField: e.textField,
1474
1474
  titleField: e.titleField,
1475
1475
  multiSelect: e.multiSelect,
1476
- selection: m.value,
1476
+ selection: p.value,
1477
1477
  enableHighlightSearch: e.enableHighlightSearch,
1478
1478
  selectionValues: v.value,
1479
1479
  onSelectionChange: h,
@@ -1484,10 +1484,10 @@ const vn = {
1484
1484
  function mn(e) {
1485
1485
  const t = l(""), n = l(e.modelValue), a = l(e.data || []), o = l(e.editable);
1486
1486
  function r(u) {
1487
- const f = String(u).split(e.separator), h = f.map((g) => [g, !0]), b = new Map(h);
1488
- return a.value.filter((g) => b.has(String(g[e.valueField]))).sort((g, w) => {
1489
- const R = f.indexOf(g[e.valueField]), L = f.indexOf(w[e.valueField]);
1490
- return R - L;
1487
+ const f = String(u).split(e.separator), h = f.map((y) => [y, !0]), b = new Map(h);
1488
+ return a.value.filter((y) => b.has(String(y[e.valueField]))).sort((y, w) => {
1489
+ const F = f.indexOf(y[e.valueField]), R = f.indexOf(w[e.valueField]);
1490
+ return F - R;
1491
1491
  });
1492
1492
  }
1493
1493
  function c(u) {
@@ -1507,21 +1507,21 @@ function mn(e) {
1507
1507
  const h = f && f.length > 0;
1508
1508
  return o.value && !h && (f = v(u)), f;
1509
1509
  }
1510
- function m() {
1511
- const { url: u, method: f = "GET", headers: h = {}, body: b = null } = e.remote, M = f.toLowerCase() == "get" ? { method: f, headers: h } : { method: f, headers: h, body: b };
1512
- let g = !1;
1513
- fetch(u, M).then((w) => {
1514
- var L, j;
1510
+ function p() {
1511
+ const { url: u, method: f = "GET", headers: h = {}, body: b = null } = e.remote, I = f.toLowerCase() == "get" ? { method: f, headers: h } : { method: f, headers: h, body: b };
1512
+ let y = !1;
1513
+ fetch(u, I).then((w) => {
1514
+ var R, j;
1515
1515
  if (w.status === 200)
1516
- return g = !!((j = (L = w.headers) == null ? void 0 : L.get("content-type")) != null && j.includes("application/json")), g ? w.text() : w.json();
1516
+ return y = !!((j = (R = w.headers) == null ? void 0 : R.get("content-type")) != null && j.includes("application/json")), y ? w.text() : w.json();
1517
1517
  throw new Error(w.statusText);
1518
1518
  }).then((w) => {
1519
- a.value = g ? JSON.parse(w) : w;
1519
+ a.value = y ? JSON.parse(w) : w;
1520
1520
  }).catch((w) => {
1521
1521
  console.error(w);
1522
1522
  });
1523
1523
  }
1524
- return e.remote && m(), A(() => e.data, () => {
1524
+ return e.remote && p(), A(() => e.data, () => {
1525
1525
  a.value = e.data;
1526
1526
  }), A([a], ([u]) => {
1527
1527
  if (e.modelValue != null) {
@@ -1532,7 +1532,7 @@ function mn(e) {
1532
1532
  n.value = u, c(u);
1533
1533
  }), c(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: d, getItemsByValue: r, getSelectedItemsByDisplayText: s };
1534
1534
  }
1535
- const hn = /* @__PURE__ */ q({
1535
+ const hn = /* @__PURE__ */ U({
1536
1536
  name: "FComboList",
1537
1537
  props: Te,
1538
1538
  emits: ["clear", "update:modelValue", "change", "input"],
@@ -1541,35 +1541,35 @@ const hn = /* @__PURE__ */ q({
1541
1541
  dataSource: d,
1542
1542
  displayText: v,
1543
1543
  editable: s,
1544
- modelValue: m,
1544
+ modelValue: p,
1545
1545
  getSelectedItemsByDisplayText: u
1546
- } = mn(e), f = T(() => e.multiSelect), h = T(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1546
+ } = mn(e), f = L(() => e.multiSelect), h = L(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1547
1547
  function b() {
1548
1548
  !f.value && n.value && n.value.hidePopup();
1549
1549
  }
1550
- function M(W) {
1551
- v.value = W.map((F) => F[e.textField]).join(e.separator), W.length === 1 ? m.value = W[0][e.valueField] : m.value = W.map((F) => F[e.valueField]).join(e.separator), t.emit("update:modelValue", m.value), t.emit("change", W, m.value), b();
1550
+ function I(B) {
1551
+ v.value = B.map(($) => $[e.textField]).join(e.separator), B.length === 1 ? p.value = B[0][e.valueField] : p.value = B.map(($) => $[e.valueField]).join(e.separator), t.emit("update:modelValue", p.value), t.emit("change", B, p.value), b();
1552
1552
  }
1553
- function g() {
1553
+ function y() {
1554
1554
  c.value || n.value.togglePopup();
1555
1555
  }
1556
- function w(W) {
1557
- m.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1556
+ function w(B) {
1557
+ p.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1558
1558
  }
1559
- function R(W) {
1560
- const F = u(W);
1561
- M(F);
1559
+ function F(B) {
1560
+ const $ = u(B);
1561
+ I($);
1562
1562
  }
1563
- function L() {
1563
+ function R() {
1564
1564
  return v.value;
1565
1565
  }
1566
- function j(W) {
1567
- t.emit("input", W);
1566
+ function j(B) {
1567
+ t.emit("input", B);
1568
1568
  }
1569
1569
  return t.expose({
1570
- getDisplayText: L
1571
- }), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([W, F, S, y, p]) => {
1572
- a.value = W, s.value = F, o.value = S, r.value = y, c.value = p;
1570
+ getDisplayText: R
1571
+ }), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, $, S, g, m]) => {
1572
+ a.value = B, s.value = $, o.value = S, r.value = g, c.value = m;
1573
1573
  }), () => i(st, {
1574
1574
  ref: n,
1575
1575
  id: e.id,
@@ -1586,12 +1586,12 @@ const hn = /* @__PURE__ */ q({
1586
1586
  multiSelect: e.multiSelect,
1587
1587
  inputType: e.multiSelect ? e.viewType : "text",
1588
1588
  modelValue: v.value,
1589
- "onUpdate:modelValue": (W) => v.value = W,
1589
+ "onUpdate:modelValue": (B) => v.value = B,
1590
1590
  focusOnCreated: e.focusOnCreated,
1591
1591
  selectOnCreated: e.selectOnCreated,
1592
1592
  onClear: w,
1593
- onClick: g,
1594
- onChange: R,
1593
+ onClick: y,
1594
+ onChange: F,
1595
1595
  onInput: j,
1596
1596
  beforeOpen: e.beforeOpen
1597
1597
  }, {
@@ -1601,13 +1601,13 @@ const hn = /* @__PURE__ */ q({
1601
1601
  textField: e.textField,
1602
1602
  titleField: e.titleField,
1603
1603
  dataSource: d.value,
1604
- selectedValues: m.value,
1604
+ selectedValues: p.value,
1605
1605
  multiSelect: e.multiSelect,
1606
1606
  enableSearch: r.value,
1607
1607
  maxHeight: e.maxHeight,
1608
1608
  enableHighlightSearch: e.enableHighlightSearch,
1609
1609
  width: e.fitEditor ? h.value : void 0,
1610
- onSelectionChange: M
1610
+ onSelectionChange: I
1611
1611
  }, null)]
1612
1612
  });
1613
1613
  }
@@ -1627,7 +1627,7 @@ const hn = /* @__PURE__ */ q({
1627
1627
  function bn(e, t, n) {
1628
1628
  return t;
1629
1629
  }
1630
- const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-design.gitee.io/radio-button.schema.json", Cn = "radio-button", Mn = "A Farris Component", In = "object", xn = {
1630
+ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-design.gitee.io/radio-button.schema.json", Cn = "radio-button", In = "A Farris Component", Mn = "object", xn = {
1631
1631
  id: {
1632
1632
  description: "The unique identifier for radio-button",
1633
1633
  type: "string"
@@ -1696,8 +1696,8 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1696
1696
  $schema: wn,
1697
1697
  $id: Sn,
1698
1698
  title: Cn,
1699
- description: Mn,
1700
- type: In,
1699
+ description: In,
1700
+ type: Mn,
1701
1701
  properties: xn,
1702
1702
  required: En
1703
1703
  }, Bn = "radio-button", Tn = "A Farris Component", Ln = "object", Rn = {
@@ -1743,7 +1743,7 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1743
1743
  } }
1744
1744
  };
1745
1745
  K(Le, Dn, gn, bn, Fn);
1746
- const kn = /* @__PURE__ */ q({
1746
+ const kn = /* @__PURE__ */ U({
1747
1747
  name: "FRadioButton",
1748
1748
  props: Le,
1749
1749
  emits: ["selectedValueChanged"],
@@ -1754,7 +1754,7 @@ const kn = /* @__PURE__ */ q({
1754
1754
  const {
1755
1755
  currentTarget: d
1756
1756
  } = r, v = d.parentElement;
1757
- Array.from(v.querySelectorAll("label")).filter((m) => m !== d).forEach((m) => m.classList.remove("active"));
1757
+ Array.from(v.querySelectorAll("label")).filter((p) => p !== d).forEach((p) => p.classList.remove("active"));
1758
1758
  }
1759
1759
  t.emit("selectedValueChanged", c);
1760
1760
  }
@@ -1774,10 +1774,10 @@ const kn = /* @__PURE__ */ q({
1774
1774
  class: "f-radio-button-text"
1775
1775
  }, [o(r)])])]))])]);
1776
1776
  }
1777
- }), $n = /* @__PURE__ */ new Map([
1777
+ }), Wn = /* @__PURE__ */ new Map([
1778
1778
  ["appearance", ee]
1779
1779
  ]);
1780
- function Wn(e, t, n) {
1780
+ function $n(e, t, n) {
1781
1781
  return t;
1782
1782
  }
1783
1783
  const On = "https://json-schema.org/draft/2020-12/schema", An = "https://farris-design.gitee.io/rate.schema.json", jn = "rate", Vn = "A Farris Component", zn = "object", Hn = {
@@ -1918,82 +1918,82 @@ const On = "https://json-schema.org/draft/2020-12/schema", An = "https://farris-
1918
1918
  value: { type: Number, default: 0 },
1919
1919
  modelValue: { type: Number, default: 0 }
1920
1920
  };
1921
- K(Re, Gn, $n, Wn, Jn);
1922
- const Zn = /* @__PURE__ */ q({
1921
+ K(Re, Gn, Wn, $n, Jn);
1922
+ const Zn = /* @__PURE__ */ U({
1923
1923
  name: "FRate",
1924
1924
  props: Re,
1925
1925
  emits: ["selectedValue", "update:modelValue"],
1926
1926
  setup(e, t) {
1927
- const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), r = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass), m = l(e.numOfStar), u = l(e.toolTipDisabled), f = l(e.toolTipContents), h = l(e.enableScore), b = l(e.enableSatisfaction);
1928
- let M;
1929
- const g = l(0), w = l(0), R = l(0), L = l(e.modelValue);
1930
- let j = 1, W, F, S;
1931
- const y = 4;
1932
- J(() => {
1927
+ const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), r = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass), p = l(e.numOfStar), u = l(e.toolTipDisabled), f = l(e.toolTipContents), h = l(e.enableScore), b = l(e.enableSatisfaction);
1928
+ let I;
1929
+ const y = l(0), w = l(0), F = l(0), R = l(e.modelValue);
1930
+ let j = 1, B, $, S;
1931
+ const g = 4;
1932
+ Q(() => {
1933
1933
  });
1934
- function p() {
1935
- const E = m.value;
1934
+ function m() {
1935
+ const E = p.value;
1936
1936
  S = [];
1937
- for (let $ = 1; $ <= E; $++)
1937
+ for (let W = 1; W <= E; W++)
1938
1938
  S.push({
1939
- id: $
1939
+ id: W
1940
1940
  });
1941
1941
  }
1942
- function D() {
1942
+ function T() {
1943
1943
  let E;
1944
- a.value ? E = Math.ceil(L.value / j) : E = L.value, w.value = (M * L.value + Math.floor(L.value) * y) / j, W = f.value[E - 1];
1944
+ a.value ? E = Math.ceil(R.value / j) : E = R.value, w.value = (I * R.value + Math.floor(R.value) * g) / j, B = f.value[E - 1];
1945
1945
  }
1946
1946
  function O() {
1947
1947
  switch (n.value) {
1948
1948
  case "small":
1949
- M = 14;
1949
+ I = 14;
1950
1950
  break;
1951
1951
  case "middle":
1952
- M = 16;
1952
+ I = 16;
1953
1953
  break;
1954
1954
  case "large":
1955
- M = 18;
1955
+ I = 18;
1956
1956
  break;
1957
1957
  case "extraLarge":
1958
- M = 24;
1958
+ I = 24;
1959
1959
  break;
1960
1960
  }
1961
- p(), m.value && (j = c.value / m.value), L.value && D();
1961
+ m(), p.value && (j = c.value / p.value), R.value && T();
1962
1962
  }
1963
1963
  O();
1964
- function N(E) {
1964
+ function P(E) {
1965
1965
  return E.className.indexOf("f-icon") !== -1;
1966
1966
  }
1967
- function X() {
1968
- return g.value === w.value && o.value && w.value !== 0 ? (w.value = 0, L.value = 0, F = null, g.value = 0, R.value = 0, t.emit("selectedValue", L.value), t.emit("update:modelValue", L.value), !0) : !1;
1967
+ function Y() {
1968
+ return y.value === w.value && o.value && w.value !== 0 ? (w.value = 0, R.value = 0, $ = null, y.value = 0, F.value = 0, t.emit("selectedValue", R.value), t.emit("update:modelValue", R.value), !0) : !1;
1969
1969
  }
1970
- function B(E, $, H) {
1970
+ function D(E, W, H) {
1971
1971
  if (E.movementX || E.movementY) {
1972
1972
  if (r.value)
1973
1973
  return;
1974
- b.value && (W = f.value[$ - 1]), E.offsetX < M / 2 && a.value === !0 ? (g.value = M * $ - M / 2 + y * ($ - 1), R.value = j * $ - j / 2) : (g.value = M * $ + y * ($ - 1), R.value = j * $);
1974
+ b.value && (B = f.value[W - 1]), E.offsetX < I / 2 && a.value === !0 ? (y.value = I * W - I / 2 + g * (W - 1), F.value = j * W - j / 2) : (y.value = I * W + g * (W - 1), F.value = j * W);
1975
1975
  }
1976
1976
  if (H === !0) {
1977
- if (X())
1977
+ if (Y())
1978
1978
  return;
1979
- L.value = R.value, w.value = g.value, F = W, t.emit("update:modelValue", L.value), t.emit("selectedValue", L.value);
1979
+ R.value = F.value, w.value = y.value, $ = B, t.emit("update:modelValue", R.value), t.emit("selectedValue", R.value);
1980
1980
  }
1981
1981
  }
1982
- function k(E, $) {
1982
+ function k(E, W) {
1983
1983
  var H;
1984
- if (N(E.target) && E.target) {
1984
+ if (P(E.target) && E.target) {
1985
1985
  const te = parseInt((H = E.target) == null ? void 0 : H.id);
1986
- B(E, te, $);
1986
+ D(E, te, W);
1987
1987
  }
1988
1988
  }
1989
- const z = T(() => R.value ? R.value + "分" : L.value + "分"), I = T(() => ({
1990
- width: (g.value || w.value) + "px"
1989
+ const z = L(() => F.value ? F.value + "分" : R.value + "分"), M = L(() => ({
1990
+ width: (y.value || w.value) + "px"
1991
1991
  }));
1992
1992
  function x() {
1993
- g.value = 0;
1993
+ y.value = 0;
1994
1994
  }
1995
1995
  return A(() => e.modelValue, (E) => {
1996
- L.value = E, D();
1996
+ R.value = E, T();
1997
1997
  }), () => i("div", {
1998
1998
  class: "farris-star-rating",
1999
1999
  onMouseover: le((E) => k(E, !1), ["prevent"]),
@@ -2002,7 +2002,7 @@ const Zn = /* @__PURE__ */ q({
2002
2002
  onClick: le((E) => k(E, !0), ["prevent"])
2003
2003
  }, [i("div", {
2004
2004
  class: "star-light-area",
2005
- style: I.value
2005
+ style: M.value
2006
2006
  }, [S.map((E) => i("span", {
2007
2007
  class: ["f-icon default-light-color ", s.value, {
2008
2008
  "f-star-sm": n.value === "small"
@@ -2051,9 +2051,9 @@ const Zn = /* @__PURE__ */ q({
2051
2051
  }, {
2052
2052
  "font-exlarge": n.value === "extraLarge"
2053
2053
  }]
2054
- }, [h.value && i("span", null, [G(" "), z.value, G(" ")]), b.value && (F || W) && i("span", null, [G(" "), W || F])])]);
2054
+ }, [h.value && i("span", null, [q(" "), z.value, q(" ")]), b.value && ($ || B) && i("span", null, [q(" "), B || $])])]);
2055
2055
  }
2056
- }), _n = /* @__PURE__ */ q({
2056
+ }), _n = /* @__PURE__ */ U({
2057
2057
  name: "FColumnWidthEditor",
2058
2058
  props: yn,
2059
2059
  emits: ["fieldChanged"],
@@ -2063,29 +2063,29 @@ const Zn = /* @__PURE__ */ q({
2063
2063
  MD: ["1", "2"],
2064
2064
  LG: ["1", "2", "3", "4"],
2065
2065
  EL: ["1", "2", "3", "4", "5", "6"]
2066
- }, a = l(e.currentScreenResolution), o = l(e.field), r = l(e.switchInStandardMode), c = l(), d = l(""), v = l(), s = l("customize"), m = l(), u = Ce("ResponseLayoutEditorDraggableComposition"), {
2066
+ }, a = l(e.currentScreenResolution), o = l(e.field), r = l(e.switchInStandardMode), c = l(), d = l(""), v = l(), s = l("customize"), p = l(), u = Se("ResponseLayoutEditorDraggableComposition"), {
2067
2067
  dragstart: f,
2068
2068
  dragenter: h,
2069
2069
  dragover: b,
2070
- dragend: M
2070
+ dragend: I
2071
2071
  } = u;
2072
- function g() {
2073
- c.value = n == null ? void 0 : n[a.value], r.value ? (d.value = `displayWidthIn${a.value}`, s.value = `${o.value[d.value]}`) : (d.value = `columnIn${a.value}`, m.value = o.value[d.value]);
2072
+ function y() {
2073
+ c.value = n == null ? void 0 : n[a.value], r.value ? (d.value = `displayWidthIn${a.value}`, s.value = `${o.value[d.value]}`) : (d.value = `columnIn${a.value}`, p.value = o.value[d.value]);
2074
2074
  }
2075
- function w(p) {
2075
+ function w(m) {
2076
2076
  if (r.value === !0) {
2077
- const D = Number(p == null ? void 0 : p.text);
2078
- v.value = D;
2077
+ const T = Number(m == null ? void 0 : m.text);
2078
+ v.value = T;
2079
2079
  const O = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2080
- o.value[`columnIn${a.value}`] = D * O, o.value[`displayWidthIn${a.value}`] = Number(D), t.emit("fieldChanged", o.value);
2080
+ o.value[`columnIn${a.value}`] = T * O, o.value[`displayWidthIn${a.value}`] = Number(T), t.emit("fieldChanged", o.value);
2081
2081
  }
2082
2082
  }
2083
- function R(p) {
2084
- m.value = p;
2085
- const D = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2086
- o.value[`columnIn${a.value}`] = m.value, o.value[`displayWidthIn${a.value}`] = m.value / D, t.emit("fieldChanged", o.value);
2083
+ function F(m) {
2084
+ p.value = m;
2085
+ const T = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2086
+ o.value[`columnIn${a.value}`] = p.value, o.value[`displayWidthIn${a.value}`] = p.value / T, t.emit("fieldChanged", o.value);
2087
2087
  }
2088
- function L() {
2088
+ function R() {
2089
2089
  return i(Zn, {
2090
2090
  enableHalf: !0,
2091
2091
  size: "extraLarge",
@@ -2094,44 +2094,44 @@ const Zn = /* @__PURE__ */ q({
2094
2094
  lightColor: "#5D89FE",
2095
2095
  darkColor: "#e7e9f3",
2096
2096
  iconClass: "f-icon-column-rectangle",
2097
- modelValue: m.value,
2098
- "onUpdate:modelValue": (p) => m.value = p,
2097
+ modelValue: p.value,
2098
+ "onUpdate:modelValue": (m) => p.value = m,
2099
2099
  enableScore: !1,
2100
- onSelectedValue: () => R(m.value)
2100
+ onSelectedValue: () => F(p.value)
2101
2101
  }, null);
2102
2102
  }
2103
2103
  function j() {
2104
- const p = [];
2104
+ const m = [];
2105
2105
  c.value = n == null ? void 0 : n[a.value];
2106
- const D = o.value[`displayWidthIn${a.value}`];
2106
+ const T = o.value[`displayWidthIn${a.value}`];
2107
2107
  return c.value.forEach((O) => {
2108
- const N = {
2108
+ const P = {
2109
2109
  text: O,
2110
- active: D.toString() === O
2110
+ active: T.toString() === O
2111
2111
  };
2112
- p.push(N);
2113
- }), p;
2112
+ m.push(P);
2113
+ }), m;
2114
2114
  }
2115
- function W() {
2116
- const p = j();
2115
+ function B() {
2116
+ const m = j();
2117
2117
  return i(kn, {
2118
- enumData: p,
2118
+ enumData: m,
2119
2119
  suffixValue: "列",
2120
2120
  onSelectedValueChanged: w
2121
2121
  }, {
2122
- default: () => [G(" ")]
2122
+ default: () => [q(" ")]
2123
2123
  });
2124
2124
  }
2125
- function F() {
2126
- var p;
2127
- if (((p = o == null ? void 0 : o.value) == null ? void 0 : p.showTopBorder) === 1)
2125
+ function $() {
2126
+ var m;
2127
+ if (((m = o == null ? void 0 : o.value) == null ? void 0 : m.showTopBorder) === 1)
2128
2128
  return i("div", {
2129
2129
  class: "f-layout-editor-column-width-editor-row"
2130
2130
  }, [i("span", {
2131
2131
  class: "f-layout-editor-column-width-editor-row-left"
2132
2132
  }, null), i("span", {
2133
2133
  class: "f-layout-editor-column-width-editor-row-middle"
2134
- }, [G("第"), o.value.componentRow, G("行")]), i("span", {
2134
+ }, [q("第"), o.value.componentRow, q("行")]), i("span", {
2135
2135
  class: "f-layout-editor-column-width-editor-row-right"
2136
2136
  }, null)]);
2137
2137
  }
@@ -2140,187 +2140,187 @@ const Zn = /* @__PURE__ */ q({
2140
2140
  class: "f-column-width-editor-switch-standard"
2141
2141
  }, [i("div", {
2142
2142
  class: "f-layout-editor-column-width-editor-click-button"
2143
- }, [W()])]) : i("div", {
2143
+ }, [B()])]) : i("div", {
2144
2144
  class: "f-column-width-editor-switch-customize",
2145
- onDragenter: (p) => h(p, o.value),
2146
- onDragend: (p) => M(p, o.value),
2147
- onDragover: (p) => b(p)
2145
+ onDragenter: (m) => h(m, o.value),
2146
+ onDragend: (m) => I(m, o.value),
2147
+ onDragover: (m) => b(m)
2148
2148
  }, [i("div", {
2149
2149
  class: "f-layout-editor-column-width-editor-rectangle"
2150
- }, [L(), i("div", {
2150
+ }, [R(), i("div", {
2151
2151
  class: "f-layout-editor-rate-show-column"
2152
- }, [m.value, G("列")]), i("span", {
2152
+ }, [p.value, q("列")]), i("span", {
2153
2153
  class: "f-layout-editor-drag-handler f-icon f-icon-drag-vertical",
2154
2154
  draggable: "true",
2155
- onDragstart: (p) => f(p, o.value)
2155
+ onDragstart: (m) => f(m, o.value)
2156
2156
  }, null)])]);
2157
2157
  }
2158
- function y() {
2159
- var p;
2158
+ function g() {
2159
+ var m;
2160
2160
  return i("div", {
2161
2161
  class: "f-layout-editor-column-width-editor-component"
2162
2162
  }, [i("div", {
2163
2163
  class: "f-layout-editor-column-width-editor-label"
2164
- }, [(p = o == null ? void 0 : o.value) == null ? void 0 : p.label]), S()]);
2164
+ }, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]), S()]);
2165
2165
  }
2166
- return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([p, D, O], [N, X, B]) => {
2167
- O !== B && (a.value = O, c.value = n[a.value], g()), D !== X && (r.value = D), r.value === !1 && g(), p !== N && (o.value = p);
2168
- }), J(() => {
2169
- g();
2166
+ return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([m, T, O], [P, Y, D]) => {
2167
+ O !== D && (a.value = O, c.value = n[a.value], y()), T !== Y && (r.value = T), r.value === !1 && y(), m !== P && (o.value = m);
2168
+ }), Q(() => {
2169
+ y();
2170
2170
  }), () => i("div", {
2171
2171
  class: "f-layout-editor-column-width-editor"
2172
- }, [F(), y()]);
2172
+ }, [$(), g()]);
2173
2173
  }
2174
- }), Kn = /* @__PURE__ */ q({
2174
+ }), Kn = /* @__PURE__ */ U({
2175
2175
  name: "FFieldList",
2176
2176
  props: Kt,
2177
2177
  emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
2178
2178
  setup(e, t) {
2179
- const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), r = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), v = l([]), s = l(e.currentArea), m = l(0), u = l(), f = l(0), h = l("1"), b = l([]);
2180
- function M() {
2179
+ const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), r = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), v = l([]), s = l(e.currentArea), p = l(0), u = l(), f = l(0), h = l("1"), b = l([]);
2180
+ function I() {
2181
2181
  var k;
2182
- let B = g();
2183
- for (let z = 0; z < B.length; z++) {
2184
- const I = {
2185
- id: (k = B[z]) == null ? void 0 : k.toString(),
2186
- label: "区域" + B[z]
2182
+ let D = y();
2183
+ for (let z = 0; z < D.length; z++) {
2184
+ const M = {
2185
+ id: (k = D[z]) == null ? void 0 : k.toString(),
2186
+ label: "区域" + D[z]
2187
2187
  };
2188
- v.value.push(I);
2188
+ v.value.push(M);
2189
2189
  }
2190
2190
  w();
2191
2191
  }
2192
- function g() {
2193
- let B = [];
2192
+ function y() {
2193
+ let D = [];
2194
2194
  return o.value.forEach((k) => {
2195
- B.indexOf(k.group) === -1 && B.push(k.group);
2196
- }), B;
2195
+ D.indexOf(k.group) === -1 && D.push(k.group);
2196
+ }), D;
2197
2197
  }
2198
2198
  function w() {
2199
2199
  h.value = c.value.defaultGroupNumber.toString(), d.value = `区域${h.value}`, s.value = [v.value[Number(h.value) - 1]], t.emit("update:currentArea", s.value);
2200
2200
  }
2201
- function R() {
2202
- let B = [];
2201
+ function F() {
2202
+ let D = [];
2203
2203
  u.value = [];
2204
2204
  let k = 1;
2205
2205
  o.value.forEach((z) => {
2206
- z.group === k || (k += 1, u.value.push(B), B = []), B.push(z);
2207
- }), u.value.push(B);
2206
+ z.group === k || (k += 1, u.value.push(D), D = []), D.push(z);
2207
+ }), u.value.push(D);
2208
2208
  }
2209
- function L() {
2210
- u.value[s.value[0].id - 1] = U(b.value);
2211
- let B = [];
2209
+ function R() {
2210
+ u.value[s.value[0].id - 1] = X(b.value);
2211
+ let D = [];
2212
2212
  f.value = 0, u.value.forEach((k) => {
2213
- let z = W(k, f.value);
2214
- B.push(z), f.value = z[z.length - 1].componentRow;
2215
- }), F(B);
2213
+ let z = B(k, f.value);
2214
+ D.push(z), f.value = z[z.length - 1].componentRow;
2215
+ }), $(D);
2216
2216
  }
2217
2217
  function j() {
2218
- R();
2219
- let B = [];
2218
+ F();
2219
+ let D = [];
2220
2220
  return f.value = 0, u.value.forEach((k) => {
2221
- let z = W(k, f.value);
2222
- B.push(z), f.value = z[z.length - 1].componentRow;
2223
- }), t.emit("twoDimensionalArrayChanged", u.value), F(B), o.value;
2221
+ let z = B(k, f.value);
2222
+ D.push(z), f.value = z[z.length - 1].componentRow;
2223
+ }), t.emit("twoDimensionalArrayChanged", u.value), $(D), o.value;
2224
2224
  }
2225
- function W(B, k) {
2226
- let I = 12;
2227
- return m.value = 1 + k, B.forEach((x) => {
2225
+ function B(D, k) {
2226
+ let M = 12;
2227
+ return p.value = 1 + k, D.forEach((x) => {
2228
2228
  x.showTopBorder = 0;
2229
2229
  let E = x[`columnIn${n.value}`];
2230
- I >= E ? (x.componentRow = m.value, I -= E) : (m.value += 1, x.componentRow = m.value, I = 12 - E, x.showTopBorder = 1);
2231
- }), B[0].showTopBorder = 1, B;
2230
+ M >= E ? (x.componentRow = p.value, M -= E) : (p.value += 1, x.componentRow = p.value, M = 12 - E, x.showTopBorder = 1);
2231
+ }), D[0].showTopBorder = 1, D;
2232
2232
  }
2233
- function F(B) {
2233
+ function $(D) {
2234
2234
  let k = [];
2235
- for (let z of B)
2235
+ for (let z of D)
2236
2236
  k = k.concat(z);
2237
- o.value = U(k), f.value = 0;
2237
+ o.value = X(k), f.value = 0;
2238
2238
  }
2239
2239
  function S() {
2240
2240
  return i("div", {
2241
2241
  class: "f-layout-editor-field-list-top"
2242
2242
  }, [i("div", {
2243
2243
  class: "f-layout-editor-field-list-header"
2244
- }, [G("组件列表")]), i("div", {
2244
+ }, [q("组件列表")]), i("div", {
2245
2245
  class: "f-layout-editor-choose-group"
2246
2246
  }, [i(hn, {
2247
2247
  modelValue: h.value,
2248
- "onUpdate:modelValue": (B) => h.value = B,
2248
+ "onUpdate:modelValue": (D) => h.value = D,
2249
2249
  placeholder: "当前可编辑组",
2250
2250
  enableClear: !1,
2251
2251
  "id-field": "id",
2252
2252
  "text-field": "label",
2253
2253
  data: v.value,
2254
2254
  editable: !1,
2255
- onChange: N
2255
+ onChange: P
2256
2256
  }, null)])]);
2257
2257
  }
2258
- function y() {
2258
+ function g() {
2259
2259
  return i("div", {
2260
2260
  class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
2261
- }, [b.value.map((B) => i(_n, {
2262
- key: B.label,
2261
+ }, [b.value.map((D) => i(_n, {
2262
+ key: D.label,
2263
2263
  currentScreenResolution: n.value,
2264
- field: B,
2265
- "onUpdate:field": (k) => B = k,
2264
+ field: D,
2265
+ "onUpdate:field": (k) => D = k,
2266
2266
  switchInStandardMode: a.value,
2267
2267
  "onUpdate:switchInStandardMode": (k) => a.value = k,
2268
- onFieldChanged: p
2268
+ onFieldChanged: m
2269
2269
  }, null))]);
2270
2270
  }
2271
- function p(B) {
2271
+ function m(D) {
2272
2272
  b.value.forEach((k) => {
2273
- k.label == B.label && Object.assign(k, B);
2274
- }), L(), O(), D();
2273
+ k.label == D.label && Object.assign(k, D);
2274
+ }), R(), O(), T();
2275
2275
  }
2276
- function D() {
2277
- b.value = [], o.value.forEach((B) => {
2278
- B.group === Number(s.value[0].id) && b.value.push(B);
2276
+ function T() {
2277
+ b.value = [], o.value.forEach((D) => {
2278
+ D.group === Number(s.value[0].id) && b.value.push(D);
2279
2279
  });
2280
2280
  }
2281
2281
  function O() {
2282
- o.value = U(j()), t.emit("originalDataChanged", o.value);
2282
+ o.value = X(j()), t.emit("originalDataChanged", o.value);
2283
2283
  }
2284
- function N(B) {
2285
- for (let k = 0; k < B.length; k++)
2284
+ function P(D) {
2285
+ for (let k = 0; k < D.length; k++)
2286
2286
  s.value = [{
2287
- id: B[k].id,
2288
- label: B[k].label
2287
+ id: D[k].id,
2288
+ label: D[k].label
2289
2289
  }];
2290
- t.emit("update:currentArea", s.value), D(), L();
2290
+ t.emit("update:currentArea", s.value), T(), R();
2291
2291
  }
2292
- const X = en(b, () => {
2293
- L(), O(), D();
2292
+ const Y = en(b, () => {
2293
+ R(), O(), T();
2294
2294
  });
2295
- return et("ResponseLayoutEditorDraggableComposition", X), A(() => e.currentArea, (B, k) => {
2296
- B !== k && (s.value = e.currentArea, D());
2297
- }), A(s, (B, k) => {
2298
- B !== k && D();
2299
- }), A(() => e.currentGroup, (B, k) => {
2300
- B !== k && (d.value = e.currentGroup);
2301
- }), A(() => e.currentScreenResolution, (B, k) => {
2302
- B !== k && (n.value = e.currentScreenResolution, O(), R(), s.value[0] && (b.value = U(u.value[Number(s.value[0].id) - 1])));
2303
- }), A(() => e.switchInStandardMode, (B, k) => {
2304
- B !== k && (a.value = e.switchInStandardMode, o.value = U(r.value));
2305
- }), A(c, (B, k) => {
2306
- B !== k && O();
2307
- }), pe(() => {
2308
- M(), j(), D();
2295
+ return et("ResponseLayoutEditorDraggableComposition", Y), A(() => e.currentArea, (D, k) => {
2296
+ D !== k && (s.value = e.currentArea, T());
2297
+ }), A(s, (D, k) => {
2298
+ D !== k && T();
2299
+ }), A(() => e.currentGroup, (D, k) => {
2300
+ D !== k && (d.value = e.currentGroup);
2301
+ }), A(() => e.currentScreenResolution, (D, k) => {
2302
+ D !== k && (n.value = e.currentScreenResolution, O(), F(), s.value[0] && (b.value = X(u.value[Number(s.value[0].id) - 1])));
2303
+ }), A(() => e.switchInStandardMode, (D, k) => {
2304
+ D !== k && (a.value = e.switchInStandardMode, o.value = X(r.value));
2305
+ }), A(c, (D, k) => {
2306
+ D !== k && O();
2307
+ }), ve(() => {
2308
+ I(), j(), T();
2309
2309
  }), () => i("div", {
2310
2310
  class: "f-layout-editor-field-list f-utils-fill-flex-column"
2311
2311
  }, [a.value ? (
2312
2312
  /* 标准模式 */
2313
2313
  i("div", {
2314
2314
  class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
2315
- }, [S(), y()])
2315
+ }, [S(), g()])
2316
2316
  ) : (
2317
2317
  /* 自定义模式 */
2318
2318
  i("div", {
2319
2319
  class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
2320
- }, [S(), y()])
2320
+ }, [S(), g()])
2321
2321
  )]);
2322
2322
  }
2323
- }), ie = /* @__PURE__ */ q({
2323
+ }), ie = /* @__PURE__ */ U({
2324
2324
  name: "FResponseLayoutEditor",
2325
2325
  props: ct,
2326
2326
  emits: ["close", "submit"],
@@ -2328,70 +2328,70 @@ const Zn = /* @__PURE__ */ q({
2328
2328
  const n = l(e.initialState), a = l(), o = l(), r = l(""), c = l(""), d = l(!0), v = l([{
2329
2329
  id: "1",
2330
2330
  label: "区域1"
2331
- }]), s = l([]), m = l(), u = l(e.width), f = l(e.height);
2332
- A(() => e.initialState, (p) => {
2333
- n.value = p;
2334
- }), A([() => e.currentArea, () => e.switchInStandardMode], ([p, D], [O, N]) => {
2335
- p !== O && (v.value = p), D !== N && (d.value = D);
2331
+ }]), s = l([]), p = l(), u = l(e.width), f = l(e.height);
2332
+ A(() => e.initialState, (m) => {
2333
+ n.value = m;
2334
+ }), A([() => e.currentArea, () => e.switchInStandardMode], ([m, T], [O, P]) => {
2335
+ m !== O && (v.value = m), T !== P && (d.value = T);
2336
2336
  });
2337
- function h(p) {
2338
- r.value = p;
2337
+ function h(m) {
2338
+ r.value = m;
2339
2339
  }
2340
- function b(p) {
2341
- c.value = p;
2340
+ function b(m) {
2341
+ c.value = m;
2342
2342
  }
2343
- function M(p) {
2344
- d.value = p;
2343
+ function I(m) {
2344
+ d.value = m;
2345
2345
  }
2346
- function g(p) {
2347
- v.value = [].concat(p);
2346
+ function y(m) {
2347
+ v.value = [].concat(m);
2348
2348
  }
2349
- function w(p) {
2350
- a.value = U(p);
2349
+ function w(m) {
2350
+ a.value = X(m);
2351
2351
  }
2352
- function R(p) {
2353
- s.value = p;
2352
+ function F(m) {
2353
+ s.value = m;
2354
2354
  }
2355
- function L() {
2355
+ function R() {
2356
2356
  t.emit("close");
2357
2357
  }
2358
2358
  function j() {
2359
2359
  t.emit("submit", a.value);
2360
2360
  }
2361
- function W() {
2361
+ function B() {
2362
2362
  return i(Kn, {
2363
2363
  class: "f-utils-fill-flex-column",
2364
2364
  defaultStates: o.value,
2365
- originalDataCopy: m.value,
2365
+ originalDataCopy: p.value,
2366
2366
  currentScreenResolution: c.value,
2367
- "onUpdate:currentScreenResolution": (p) => c.value = p,
2367
+ "onUpdate:currentScreenResolution": (m) => c.value = m,
2368
2368
  originalData: a.value,
2369
- "onUpdate:originalData": (p) => a.value = p,
2369
+ "onUpdate:originalData": (m) => a.value = m,
2370
2370
  switchInStandardMode: d.value,
2371
- "onUpdate:switchInStandardMode": (p) => d.value = p,
2371
+ "onUpdate:switchInStandardMode": (m) => d.value = m,
2372
2372
  currentArea: v.value,
2373
- "onUpdate:currentArea": (p) => v.value = p,
2374
- onCurrentAreaChanged: g,
2375
- onTwoDimensionalArrayChanged: R,
2373
+ "onUpdate:currentArea": (m) => v.value = m,
2374
+ onCurrentAreaChanged: y,
2375
+ onTwoDimensionalArrayChanged: F,
2376
2376
  onOriginalDataChanged: w
2377
2377
  }, null);
2378
2378
  }
2379
- function F() {
2379
+ function $() {
2380
2380
  return i(_t, {
2381
2381
  class: "f-utils-fill-flex-column",
2382
2382
  currentArea: v.value,
2383
- "onUpdate:currentArea": (p) => v.value = p,
2383
+ "onUpdate:currentArea": (m) => v.value = m,
2384
2384
  currentScreenResolution: c.value,
2385
- "onUpdate:currentScreenResolution": (p) => c.value = p,
2385
+ "onUpdate:currentScreenResolution": (m) => c.value = m,
2386
2386
  switchInStandardMode: d.value,
2387
2387
  twoDimensionalArray: s.value,
2388
- "onUpdate:twoDimensionalArray": (p) => s.value = p
2388
+ "onUpdate:twoDimensionalArray": (m) => s.value = m
2389
2389
  }, null);
2390
2390
  }
2391
- const S = T(() => d.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), y = T(() => d.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2392
- return pe(() => {
2393
- a.value = U(n.value.importData), m.value = U(n.value.importData), o.value = n.value.defaultState, r.value = "中等屏幕", c.value = "MD";
2394
- }), (p) => i("div", {
2391
+ const S = L(() => d.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), g = L(() => d.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2392
+ return ve(() => {
2393
+ a.value = X(n.value.importData), p.value = X(n.value.importData), o.value = n.value.defaultState, r.value = "中等屏幕", c.value = "MD";
2394
+ }), (m) => i("div", {
2395
2395
  class: "f-layout-editor f-utils-flex-column",
2396
2396
  style: "height:" + f.value + "px;width:" + u.value + "px;"
2397
2397
  }, [i("div", {
@@ -2400,32 +2400,32 @@ const Zn = /* @__PURE__ */ q({
2400
2400
  defaultStates: o.value,
2401
2401
  onScreenNameChanged: h,
2402
2402
  onCurrentScreenResolutionChanged: b,
2403
- onSwitchInStandardModeChanged: M
2403
+ onSwitchInStandardModeChanged: I
2404
2404
  }, null)]), i("div", {
2405
2405
  class: "f-layout-editor-content f-utils-fill"
2406
2406
  }, [i("div", {
2407
2407
  class: "f-layout-editor-left f-utils-fill-flex-column"
2408
2408
  }, [i("div", {
2409
2409
  class: S.value
2410
- }, [W()])]), i("div", {
2410
+ }, [B()])]), i("div", {
2411
2411
  class: "f-layout-editor-right f-utils-fill-flex-column"
2412
2412
  }, [i("div", {
2413
- class: y.value
2414
- }, [F()])])]), i("div", {
2413
+ class: g.value
2414
+ }, [$()])])]), i("div", {
2415
2415
  class: "f-layout-editor-bottom"
2416
2416
  }, [i("div", {
2417
2417
  class: "f-layout-editor-button"
2418
2418
  }, [i("div", {
2419
2419
  class: "f-layout-editor-cancel-btn",
2420
- onClick: L
2420
+ onClick: R
2421
2421
  }, [i("span", {
2422
2422
  class: "f-layout-editor-text-cancel"
2423
- }, [G("取消")])]), i("div", {
2423
+ }, [q("取消")])]), i("div", {
2424
2424
  class: "f-layout-editor-sure-btn",
2425
2425
  onClick: j
2426
2426
  }, [i("span", {
2427
2427
  class: "f-layout-editor-text-sure"
2428
- }, [G("确认")])])])])]);
2428
+ }, [q("确认")])])])])]);
2429
2429
  }
2430
2430
  }), ea = /* @__PURE__ */ new Map([
2431
2431
  ["appearance", ee]
@@ -2511,7 +2511,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
2511
2511
  description: va,
2512
2512
  type: pa,
2513
2513
  categories: ma
2514
- }, he = {
2514
+ }, me = {
2515
2515
  /** 接受传入的原始数据的defaultState */
2516
2516
  initialState: { type: Object },
2517
2517
  /** 页面高度 */
@@ -2519,7 +2519,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
2519
2519
  /** 页面宽度 */
2520
2520
  width: { type: Number, default: 750 },
2521
2521
  modelValue: { type: Object }
2522
- }, Se = K(he, da, ea, aa, ha), ya = {
2522
+ }, we = K(me, da, ea, aa, ha), ya = {
2523
2523
  /**
2524
2524
  * 自定义类
2525
2525
  */
@@ -2580,7 +2580,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
2580
2580
  enableEsc: { type: Boolean, default: !0 },
2581
2581
  enableEnter: { type: Boolean, default: !1 }
2582
2582
  };
2583
- class P {
2583
+ class G {
2584
2584
  constructor(t, n) {
2585
2585
  this.x = t, this.y = n;
2586
2586
  }
@@ -2594,12 +2594,12 @@ class P {
2594
2594
  }
2595
2595
  static fromEvent(t, n = null) {
2596
2596
  if (this.isMouseEvent(t))
2597
- return new P(t.clientX, t.clientY);
2597
+ return new G(t.clientX, t.clientY);
2598
2598
  if (n === null || t.changedTouches.length === 1)
2599
- return new P(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
2599
+ return new G(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
2600
2600
  for (let a = 0; a < t.changedTouches.length; a++)
2601
2601
  if (t.changedTouches[a].target === n)
2602
- return new P(t.changedTouches[a].clientX, t.changedTouches[a].clientY);
2602
+ return new G(t.changedTouches[a].clientX, t.changedTouches[a].clientY);
2603
2603
  }
2604
2604
  static isMouseEvent(t) {
2605
2605
  return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
@@ -2608,7 +2608,7 @@ class P {
2608
2608
  return !!t && "x" in t && "y" in t;
2609
2609
  }
2610
2610
  static getCurrent(t) {
2611
- const n = new P(0, 0);
2611
+ const n = new G(0, 0);
2612
2612
  if (window) {
2613
2613
  const a = window.getComputedStyle(t);
2614
2614
  if (a) {
@@ -2620,7 +2620,7 @@ class P {
2620
2620
  return null;
2621
2621
  }
2622
2622
  static copy(t) {
2623
- return new P(0, 0).set(t);
2623
+ return new G(0, 0).set(t);
2624
2624
  }
2625
2625
  get value() {
2626
2626
  return { x: this.x, y: this.y };
@@ -2664,20 +2664,20 @@ class _ {
2664
2664
  }
2665
2665
  }
2666
2666
  function ga(e, t) {
2667
- const n = l(), a = l(), o = l(), r = l(), c = l(), d = l(), v = l(), s = l(), m = l(), u = l(), f = l(), h = l(), b = l(e.draggable), M = l(!1);
2668
- function g() {
2669
- const I = a.value || document.body, x = window.getComputedStyle(I);
2667
+ const n = l(), a = l(), o = l(), r = l(), c = l(), d = l(), v = l(), s = l(), p = l(), u = l(), f = l(), h = l(), b = l(e.draggable), I = l(!1);
2668
+ function y() {
2669
+ const M = a.value || document.body, x = window.getComputedStyle(M);
2670
2670
  if (!x || !n.value)
2671
2671
  return;
2672
- const E = P.getTransformInfo(n.value), $ = {};
2673
- v.value && ($.deltaL = n.value.offsetLeft - v.value.x, $.deltaT = n.value.offsetTop - v.value.y);
2672
+ const E = G.getTransformInfo(n.value), W = {};
2673
+ v.value && (W.deltaL = n.value.offsetLeft - v.value.x, W.deltaT = n.value.offsetTop - v.value.y);
2674
2674
  const H = x.getPropertyValue("position");
2675
- $.width = I.clientWidth, $.height = I.clientHeight, $.pr = parseInt(x.getPropertyValue("padding-right"), 10), $.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), $.position = x.getPropertyValue("position"), H === "static" && (I.style.position = "relative"), $.translateX = E.x, $.translateY = E.y, u.value = $;
2675
+ W.width = M.clientWidth, W.height = M.clientHeight, W.pr = parseInt(x.getPropertyValue("padding-right"), 10), W.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), W.position = x.getPropertyValue("position"), H === "static" && (M.style.position = "relative"), W.translateX = E.x, W.translateY = E.y, u.value = W;
2676
2676
  }
2677
- function w(I) {
2677
+ function w(M) {
2678
2678
  if (n.value) {
2679
- r.value = _.getCurrent(n.value), c.value = P.getCurrent(n.value), d.value = r.value ? _.copy(r.value) : null, v.value = c.value ? P.copy(c.value) : null, g();
2680
- const x = I.target.getAttribute("type") || "";
2679
+ r.value = _.getCurrent(n.value), c.value = G.getCurrent(n.value), d.value = r.value ? _.copy(r.value) : null, v.value = c.value ? G.copy(c.value) : null, y();
2680
+ const x = M.target.getAttribute("type") || "";
2681
2681
  s.value = {
2682
2682
  n: !!x.match(/n/),
2683
2683
  s: !!x.match(/s/),
@@ -2686,154 +2686,154 @@ function ga(e, t) {
2686
2686
  };
2687
2687
  }
2688
2688
  }
2689
- function R() {
2690
- var I, x, E, $;
2689
+ function F() {
2690
+ var M, x, E, W;
2691
2691
  if (n.value) {
2692
2692
  const H = n.value;
2693
- s.value && ((s.value.n || s.value.s) && ((I = d.value) != null && I.height) && (H.style.height = d.value.height + "px"), (s.value.w || s.value.e) && ((x = d.value) != null && x.width) && (H.style.width = d.value.width + "px"), v.value && ((E = v.value) != null && E.x && (H.style.left = v.value.x + "px"), ($ = v.value) != null && $.y && (H.style.top = v.value.y + "px")));
2693
+ s.value && ((s.value.n || s.value.s) && ((M = d.value) != null && M.height) && (H.style.height = d.value.height + "px"), (s.value.w || s.value.e) && ((x = d.value) != null && x.width) && (H.style.width = d.value.width + "px"), v.value && ((E = v.value) != null && E.x && (H.style.left = v.value.x + "px"), (W = v.value) != null && W.y && (H.style.top = v.value.y + "px")));
2694
2694
  }
2695
2695
  }
2696
- function L() {
2697
- const I = e.minHeight ? e.minHeight : 1, x = e.minWidth ? e.minWidth : 1;
2698
- d.value && v.value && s.value && r.value && (d.value.height < I && (d.value.height = I, s.value.n && c.value && (v.value.y = c.value.y + (r.value.height - I))), d.value.width < x && (d.value.width = x, s.value.w && c.value && (v.value.x = c.value.x + (r.value.width - x))), e.maxHeight && d.value.height > e.maxHeight && (d.value.height = e.maxHeight, c.value && s.value.n && (v.value.y = c.value.y + (r.value.height - e.maxHeight))), e.maxWidth && d.value.width > e.maxWidth && (d.value.width = e.maxWidth, s.value.w && c.value && (v.value.x = c.value.x + (r.value.width - e.maxWidth))));
2696
+ function R() {
2697
+ const M = e.minHeight ? e.minHeight : 1, x = e.minWidth ? e.minWidth : 1;
2698
+ d.value && v.value && s.value && r.value && (d.value.height < M && (d.value.height = M, s.value.n && c.value && (v.value.y = c.value.y + (r.value.height - M))), d.value.width < x && (d.value.width = x, s.value.w && c.value && (v.value.x = c.value.x + (r.value.width - x))), e.maxHeight && d.value.height > e.maxHeight && (d.value.height = e.maxHeight, c.value && s.value.n && (v.value.y = c.value.y + (r.value.height - e.maxHeight))), e.maxWidth && d.value.width > e.maxWidth && (d.value.width = e.maxWidth, s.value.w && c.value && (v.value.x = c.value.x + (r.value.width - e.maxWidth))));
2699
2699
  }
2700
2700
  function j() {
2701
2701
  if (a.value) {
2702
- const I = u.value;
2702
+ const M = u.value;
2703
2703
  if (v.value && d.value && s.value && r.value) {
2704
- const x = I.width - I.pr - I.deltaL - I.translateX - v.value.x, E = I.height - I.pb - I.deltaT - I.translateY - v.value.y;
2705
- s.value.n && v.value.y + I.translateY < 0 && c.value && (v.value.y = -I.translateY, d.value.height = r.value.height + c.value.y + I.translateY), s.value.w && v.value.x + I.translateX < 0 && c.value && (v.value.x = -I.translateX, d.value.width = r.value.width + c.value.x + I.translateX), d.value.width > x && (d.value.width = x), d.value.height > E && (d.value.height = E);
2704
+ const x = M.width - M.pr - M.deltaL - M.translateX - v.value.x, E = M.height - M.pb - M.deltaT - M.translateY - v.value.y;
2705
+ s.value.n && v.value.y + M.translateY < 0 && c.value && (v.value.y = -M.translateY, d.value.height = r.value.height + c.value.y + M.translateY), s.value.w && v.value.x + M.translateX < 0 && c.value && (v.value.x = -M.translateX, d.value.width = r.value.width + c.value.x + M.translateX), d.value.width > x && (d.value.width = x), d.value.height > E && (d.value.height = E);
2706
2706
  }
2707
2707
  }
2708
2708
  }
2709
- function W(I) {
2709
+ function B(M) {
2710
2710
  if (!o.value || !r.value || !c.value || !s.value)
2711
2711
  return;
2712
- I.subtract(o.value);
2713
- const x = I.x, E = I.y;
2714
- s.value.n ? (v.value.y = c.value.y + E, d.value.height = r.value.height - E) : s.value.s && (d.value.height = r.value.height + E), s.value.e ? d.value.width = r.value.width + x : s.value.w && (d.value.width = r.value.width - x, v.value.x = c.value.x + x), j(), L(), R();
2712
+ M.subtract(o.value);
2713
+ const x = M.x, E = M.y;
2714
+ s.value.n ? (v.value.y = c.value.y + E, d.value.height = r.value.height - E) : s.value.s && (d.value.height = r.value.height + E), s.value.e ? d.value.width = r.value.width + x : s.value.w && (d.value.width = r.value.width - x, v.value.x = c.value.x + x), j(), R(), F();
2715
2715
  }
2716
- function F(I) {
2717
- if (!m.value)
2716
+ function $(M) {
2717
+ if (!p.value)
2718
2718
  return;
2719
- const x = P.fromEvent(I);
2720
- x && W(x);
2719
+ const x = G.fromEvent(M);
2720
+ x && B(x);
2721
2721
  }
2722
2722
  function S() {
2723
2723
  if (n.value) {
2724
2724
  const {
2725
- width: I,
2725
+ width: M,
2726
2726
  height: x,
2727
2727
  x: E,
2728
- y: $
2729
- } = n.value.getBoundingClientRect(), H = P.getTransformInfo(n.value);
2728
+ y: W
2729
+ } = n.value.getBoundingClientRect(), H = G.getTransformInfo(n.value);
2730
2730
  return {
2731
2731
  size: {
2732
- width: I,
2732
+ width: M,
2733
2733
  height: x
2734
2734
  },
2735
2735
  position: {
2736
2736
  x: E - H.x,
2737
- y: $ - H.y
2737
+ y: W - H.y
2738
2738
  }
2739
2739
  };
2740
2740
  }
2741
2741
  return null;
2742
2742
  }
2743
- function y(I) {
2743
+ function g(M) {
2744
2744
  if (n.value) {
2745
2745
  const x = S();
2746
2746
  f.value = x;
2747
2747
  }
2748
- o.value = void 0, r.value = null, c.value = null, d.value = null, v.value = null, s.value = null, m.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", y);
2748
+ o.value = void 0, r.value = null, c.value = null, d.value = null, v.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", g);
2749
2749
  }
2750
- function p() {
2751
- document.addEventListener("mousemove", F), document.addEventListener("mouseup", y);
2750
+ function m() {
2751
+ document.addEventListener("mousemove", $), document.addEventListener("mouseup", g);
2752
2752
  }
2753
- function D(I) {
2754
- I instanceof MouseEvent && I.button === 2 || b.value && (I.stopPropagation(), I.preventDefault(), o.value = P.fromEvent(I), m.value = I.target, w(I), p());
2753
+ function T(M) {
2754
+ M instanceof MouseEvent && M.button === 2 || b.value && (M.stopPropagation(), M.preventDefault(), o.value = G.fromEvent(M), p.value = M.target, w(M), m());
2755
2755
  }
2756
- function O(I) {
2757
- return n.value = I, i(ue, null, [i("div", {
2756
+ function O(M) {
2757
+ return n.value = M, i(ue, null, [i("div", {
2758
2758
  class: "fv-resizable-handle fv-resizable-n",
2759
2759
  type: "n",
2760
- onMousedown: (x) => D(x)
2760
+ onMousedown: (x) => T(x)
2761
2761
  }, null), i("div", {
2762
2762
  class: "fv-resizable-handle fv-resizable-e",
2763
2763
  type: "e",
2764
- onMousedown: (x) => D(x)
2764
+ onMousedown: (x) => T(x)
2765
2765
  }, null), i("div", {
2766
2766
  class: "fv-resizable-handle fv-resizable-s",
2767
2767
  type: "s",
2768
- onMousedown: (x) => D(x)
2768
+ onMousedown: (x) => T(x)
2769
2769
  }, null), i("div", {
2770
2770
  class: "fv-resizable-handle fv-resizable-w",
2771
2771
  type: "w",
2772
- onMousedown: (x) => D(x)
2772
+ onMousedown: (x) => T(x)
2773
2773
  }, null), i("div", {
2774
2774
  class: "fv-resizable-handle fv-resizable-ne",
2775
2775
  type: "ne",
2776
- onMousedown: (x) => D(x)
2776
+ onMousedown: (x) => T(x)
2777
2777
  }, null), i("div", {
2778
2778
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
2779
2779
  type: "se",
2780
- onMousedown: (x) => D(x)
2780
+ onMousedown: (x) => T(x)
2781
2781
  }, null), i("div", {
2782
2782
  class: "fv-resizable-handle fv-resizable-sw",
2783
2783
  type: "sw",
2784
- onMousedown: (x) => D(x)
2784
+ onMousedown: (x) => T(x)
2785
2785
  }, null), i("div", {
2786
2786
  class: "fv-resizable-handle fv-resizable-nw",
2787
2787
  type: "nw",
2788
- onMousedown: (x) => D(x)
2788
+ onMousedown: (x) => T(x)
2789
2789
  }, null)]);
2790
2790
  }
2791
- function N(I = !0) {
2792
- const x = a.value || document.body, E = _.getCurrent(x), $ = n.value;
2793
- I && (h.value = S(), h.value.transform = $.style.transform), E && $ && (d.value = E, $.style.height = d.value.height - 14 + "px", $.style.width = d.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", f.value = {
2791
+ function P(M = !0) {
2792
+ const x = a.value || document.body, E = _.getCurrent(x), W = n.value;
2793
+ M && (h.value = S(), h.value.transform = W.style.transform), E && W && (d.value = E, W.style.height = d.value.height - 14 + "px", W.style.width = d.value.width - 14 + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", f.value = {
2794
2794
  size: d.value,
2795
2795
  position: {
2796
2796
  x: 0,
2797
2797
  y: 0
2798
2798
  }
2799
- }, b.value = !1, M.value = !0);
2799
+ }, b.value = !1, I.value = !0);
2800
2800
  }
2801
- function X() {
2802
- var I, x;
2801
+ function Y() {
2802
+ var M, x;
2803
2803
  if (h.value) {
2804
2804
  const E = {
2805
2805
  width: h.value.size.width || 0,
2806
2806
  height: h.value.size.height || 0
2807
- }, $ = {
2807
+ }, W = {
2808
2808
  x: (window.innerWidth - E.width) / 2,
2809
2809
  y: (window.innerHeight - E.height) / 2
2810
2810
  };
2811
- (I = d.value) == null || I.set(E), (x = v.value) == null || x.set($);
2811
+ (M = d.value) == null || M.set(E), (x = v.value) == null || x.set(W);
2812
2812
  const H = n.value;
2813
- H.style.height = E.height + "px", H.style.width = E.width + "px", H.style.left = `${$.x}px`, H.style.top = `${$.y}px`, H.style.transform = "", f.value = {
2813
+ H.style.height = E.height + "px", H.style.width = E.width + "px", H.style.left = `${W.x}px`, H.style.top = `${W.y}px`, H.style.transform = "", f.value = {
2814
2814
  size: E,
2815
- position: $
2816
- }, b.value = e.draggable, M.value = !1;
2815
+ position: W
2816
+ }, b.value = e.draggable, I.value = !1;
2817
2817
  }
2818
2818
  }
2819
- function B() {
2819
+ function D() {
2820
2820
  if (n.value) {
2821
- const I = _.getCurrent(n.value);
2822
- if (I) {
2821
+ const M = _.getCurrent(n.value);
2822
+ if (M) {
2823
2823
  const {
2824
2824
  width: x,
2825
2825
  height: E
2826
- } = I;
2826
+ } = M;
2827
2827
  n.value.style.left = `${(window.innerWidth - x) / 2}px`, n.value.style.top = `${(window.innerHeight - E) / 2}px`, n.value.style.transform = "";
2828
2828
  }
2829
2829
  }
2830
2830
  }
2831
2831
  function k() {
2832
- const I = () => {
2833
- M.value ? N(!1) : B();
2832
+ const M = () => {
2833
+ I.value ? P(!1) : D();
2834
2834
  };
2835
- return window.addEventListener("resize", I), () => {
2836
- window.removeEventListener("resize", I);
2835
+ return window.addEventListener("resize", M), () => {
2836
+ window.removeEventListener("resize", M);
2837
2837
  };
2838
2838
  }
2839
2839
  const z = k();
@@ -2841,90 +2841,90 @@ function ga(e, t) {
2841
2841
  renderResizeBar: O,
2842
2842
  boundingElement: a,
2843
2843
  resizedEventParam: f,
2844
- maximize: N,
2845
- restore: X,
2844
+ maximize: P,
2845
+ restore: Y,
2846
2846
  allowDrag: b,
2847
- isMaximized: M,
2847
+ isMaximized: I,
2848
2848
  unWindowResizeHandle: z
2849
2849
  };
2850
2850
  }
2851
2851
  function ba(e, t, n) {
2852
- const a = l(), o = l(e.draggable), r = l(e.lockAxis), c = l(), d = l(), v = l(!1), s = l(new P(0, 0)), m = l(new P(0, 0)), u = l(new P(0, 0)), f = l(new P(0, 0));
2852
+ const a = l(), o = l(e.draggable), r = l(e.lockAxis), c = l(), d = l(), v = l(!1), s = l(new G(0, 0)), p = l(new G(0, 0)), u = l(new G(0, 0)), f = l(new G(0, 0));
2853
2853
  A(() => n.value, (S) => {
2854
2854
  c.value.style.cursor = S ? "move" : "default";
2855
2855
  });
2856
- function h(S, y) {
2857
- if (y.tagName === "BUTTON")
2856
+ function h(S, g) {
2857
+ if (g.tagName === "BUTTON")
2858
2858
  return !1;
2859
- if (y === S)
2859
+ if (g === S)
2860
2860
  return !0;
2861
- for (const p in y.children)
2862
- if (y.children.hasOwnProperty(p) && h(S, y.children[p]))
2861
+ for (const m in g.children)
2862
+ if (g.children.hasOwnProperty(m) && h(S, g.children[m]))
2863
2863
  return !0;
2864
2864
  return !1;
2865
2865
  }
2866
2866
  function b() {
2867
- var D, O;
2868
- let S = u.value.x + m.value.x, y = u.value.y + m.value.y;
2869
- r.value === "x" ? (S = ((D = s.value) == null ? void 0 : D.x) || 0, u.value.x = 0) : r.value === "y" && (y = ((O = s.value) == null ? void 0 : O.y) || 0, u.value.y = 0);
2870
- const p = `translate3d(${Math.round(S)}px, ${Math.round(y)}px, 0px)`;
2871
- a.value && (a.value.style.transform = p), f.value.x = S, f.value.y = y;
2867
+ var T, O;
2868
+ let S = u.value.x + p.value.x, g = u.value.y + p.value.y;
2869
+ r.value === "x" ? (S = ((T = s.value) == null ? void 0 : T.x) || 0, u.value.x = 0) : r.value === "y" && (g = ((O = s.value) == null ? void 0 : O.y) || 0, u.value.y = 0);
2870
+ const m = `translate3d(${Math.round(S)}px, ${Math.round(g)}px, 0px)`;
2871
+ a.value && (a.value.style.transform = m), f.value.x = S, f.value.y = g;
2872
2872
  }
2873
- function M() {
2873
+ function I() {
2874
2874
  if (!d.value || !a.value)
2875
2875
  return null;
2876
- const S = d.value.getBoundingClientRect(), y = a.value.getBoundingClientRect(), p = {
2877
- top: S.top < y.top,
2878
- right: S.right > y.right,
2879
- bottom: S.bottom > y.bottom,
2880
- left: S.left < y.left
2876
+ const S = d.value.getBoundingClientRect(), g = a.value.getBoundingClientRect(), m = {
2877
+ top: S.top < g.top,
2878
+ right: S.right > g.right,
2879
+ bottom: S.bottom > g.bottom,
2880
+ left: S.left < g.left
2881
2881
  };
2882
- return p.top || (u.value.y -= y.top - S.top), p.bottom || (u.value.y -= y.bottom - S.bottom), p.right || (u.value.x -= y.right - S.right), p.left || (u.value.x -= y.left - S.left), b(), p;
2882
+ return m.top || (u.value.y -= g.top - S.top), m.bottom || (u.value.y -= g.bottom - S.bottom), m.right || (u.value.x -= g.right - S.right), m.left || (u.value.x -= g.left - S.left), b(), m;
2883
2883
  }
2884
- function g(S) {
2885
- S && (s.value && S.subtract(s.value), u.value.set(S), b(), M());
2884
+ function y(S) {
2885
+ S && (s.value && S.subtract(s.value), u.value.set(S), b(), I());
2886
2886
  }
2887
2887
  function w(S) {
2888
- v.value && o.value && (S.stopPropagation(), S.preventDefault(), g(P.fromEvent(S, c.value)));
2888
+ v.value && o.value && (S.stopPropagation(), S.preventDefault(), y(G.fromEvent(S, c.value)));
2889
2889
  }
2890
- function R() {
2890
+ function F() {
2891
2891
  var S;
2892
- v.value && (v.value = !1, m.value.add(u.value), u.value.reset(), (S = a.value) == null || S.classList.remove("ng-dragging"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", R));
2892
+ v.value && (v.value = !1, p.value.add(u.value), u.value.reset(), (S = a.value) == null || S.classList.remove("ng-dragging"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", F));
2893
2893
  }
2894
- function L() {
2895
- !v.value && c.value && (v.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", R));
2894
+ function R() {
2895
+ !v.value && c.value && (v.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", F));
2896
2896
  }
2897
2897
  function j() {
2898
2898
  if (a.value) {
2899
- const S = P.getTransformInfo(a.value);
2900
- m.value.set(S);
2899
+ const S = G.getTransformInfo(a.value);
2900
+ p.value.set(S);
2901
2901
  return;
2902
2902
  }
2903
- m.value.reset();
2903
+ p.value.reset();
2904
2904
  }
2905
- function W(S) {
2905
+ function B(S) {
2906
2906
  if (!n.value || S instanceof MouseEvent && S.button === 2)
2907
2907
  return;
2908
- const y = S.target || S.srcElement;
2909
- c.value !== void 0 && y && !h(y, c.value) || o.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), s.value = P.fromEvent(S, a.value), j(), L());
2908
+ const g = S.target || S.srcElement;
2909
+ c.value !== void 0 && g && !h(g, c.value) || o.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), s.value = G.fromEvent(S, a.value), j(), R());
2910
2910
  }
2911
- function F(S, y, p) {
2912
- if (o.value && y) {
2911
+ function $(S, g, m) {
2912
+ if (o.value && g) {
2913
2913
  if (S)
2914
2914
  c.value = S;
2915
2915
  else if (e.dragHandle) {
2916
2916
  if (e.dragHandle instanceof HTMLElement)
2917
2917
  c.value = e.dragHandle;
2918
2918
  else if (typeof e.dragHandle == "string") {
2919
- const D = y.querySelector(e.dragHandle);
2920
- D && (c.value = D);
2919
+ const T = g.querySelector(e.dragHandle);
2920
+ T && (c.value = T);
2921
2921
  }
2922
2922
  }
2923
- a.value = y, d.value = p, c.value.classList.add("ng-draggable"), c.value.addEventListener("mousedown", W);
2923
+ a.value = g, d.value = m, c.value.classList.add("ng-draggable"), c.value.addEventListener("mousedown", B);
2924
2924
  }
2925
2925
  }
2926
2926
  return {
2927
- registerDraggle: F,
2927
+ registerDraggle: $,
2928
2928
  resetTranslate: j
2929
2929
  };
2930
2930
  }
@@ -2956,39 +2956,39 @@ function Sa(e, t) {
2956
2956
  remove: a
2957
2957
  }) : null;
2958
2958
  }
2959
- const ke = /* @__PURE__ */ q({
2959
+ const ke = /* @__PURE__ */ U({
2960
2960
  name: "FModal",
2961
2961
  props: ya,
2962
2962
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
2963
2963
  setup(e, t) {
2964
- const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), r = l(""), c = l(e.class), d = l(e.fitContent), v = l(e.showHeader), s = l(""), m = l(e.showCloseButton), u = l(e.showMaxButton), f = l(!1), h = l(""), b = l(""), M = l(""), g = l(e.showButtons), w = l(e.title), R = l(e.reiszeable), L = l(e.containment || null), j = l();
2965
- function W(C, V) {
2964
+ const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), r = l(""), c = l(e.class), d = l(e.fitContent), v = l(e.showHeader), s = l(""), p = l(e.showCloseButton), u = l(e.showMaxButton), f = l(!1), h = l(""), b = l(""), I = l(""), y = l(e.showButtons), w = l(e.title), F = l(e.reiszeable), R = l(e.containment || null), j = l();
2965
+ function B(C, V) {
2966
2966
  o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed", C);
2967
2967
  }
2968
- const F = [{
2968
+ const $ = [{
2969
2969
  name: "cancel",
2970
2970
  text: "取消",
2971
2971
  class: "btn btn-secondary",
2972
2972
  handle: (C) => {
2973
- W(C, !1);
2973
+ B(C, !1);
2974
2974
  }
2975
2975
  }, {
2976
2976
  name: "accept",
2977
2977
  text: "确定",
2978
2978
  class: "btn btn-primary",
2979
2979
  handle: (C) => {
2980
- W(C, !0);
2980
+ B(C, !0);
2981
2981
  }
2982
- }], S = l(e.buttons && e.buttons.length ? e.buttons : F), y = T(() => !!s.value), p = T(() => !!g.value && !!S.value), D = l(), O = l(), N = l(!1), {
2983
- renderResizeBar: X,
2984
- maximize: B,
2982
+ }], S = l(e.buttons && e.buttons.length ? e.buttons : $), g = L(() => !!s.value), m = L(() => !!y.value && !!S.value), T = l(), O = l(), P = l(!1), {
2983
+ renderResizeBar: Y,
2984
+ maximize: D,
2985
2985
  restore: k,
2986
2986
  boundingElement: z,
2987
- resizedEventParam: I,
2987
+ resizedEventParam: M,
2988
2988
  allowDrag: x,
2989
2989
  unWindowResizeHandle: E
2990
2990
  } = ga(e), {
2991
- registerDraggle: $
2991
+ registerDraggle: W
2992
2992
  } = ba(e, t, x);
2993
2993
  A(() => e.title, (C, V) => {
2994
2994
  C !== V && (w.value = C);
@@ -2997,8 +2997,8 @@ const ke = /* @__PURE__ */ q({
2997
2997
  }), A(() => e.showHeader, (C, V) => {
2998
2998
  C !== V && (v.value = C);
2999
2999
  }), A(() => e.showButtons, (C, V) => {
3000
- C !== V && (g.value = C);
3001
- }), A(() => I.value, (C, V) => {
3000
+ C !== V && (y.value = C);
3001
+ }), A(() => M.value, (C, V) => {
3002
3002
  const ne = C || {}, ae = V || {};
3003
3003
  JSON.stringify(ne) !== JSON.stringify(ae) && t.emit("resize", {
3004
3004
  newSize: C,
@@ -3009,56 +3009,56 @@ const ke = /* @__PURE__ */ q({
3009
3009
  const C = document.querySelectorAll(".farris-modal").length;
3010
3010
  (!C || C - 1 <= 0) && document.body.classList.remove("modal-open"), j.value && j.value.classList.remove("show");
3011
3011
  }
3012
- const te = T(() => (o.value ? document.body.classList.add("modal-open") : H(), o.value)), We = T(() => {
3012
+ const te = L(() => (o.value ? document.body.classList.add("modal-open") : H(), o.value)), $e = L(() => {
3013
3013
  const C = {
3014
3014
  modal: !0,
3015
3015
  "farris-modal": !0,
3016
3016
  fade: !0
3017
3017
  };
3018
3018
  return C["f-modal-fitContent"] = !!d.value, C.show = !!te.value, C;
3019
- }), Oe = T(() => {
3019
+ }), Oe = L(() => {
3020
3020
  var ne;
3021
3021
  const C = {
3022
3022
  "modal-dialog": !0
3023
3023
  }, V = (ne = c.value) == null ? void 0 : ne.split(" ");
3024
3024
  return V == null || V.reduce((ae, Qe) => (ae[Qe] = !0, ae), C), C;
3025
- }), Ae = T(() => ({
3025
+ }), Ae = L(() => ({
3026
3026
  position: "absolute",
3027
3027
  top: `${(window.innerHeight - a.value) / 2}px`,
3028
3028
  left: `${(window.innerWidth - n.value) / 2}px`,
3029
3029
  width: `${n.value}px`,
3030
3030
  height: d.value ? "auto" : `${a.value}px`
3031
- })), je = T(() => ({
3031
+ })), je = L(() => ({
3032
3032
  "modal-content": !0,
3033
3033
  "modal-content-has-header": v.value
3034
- })), Ve = T(() => {
3034
+ })), Ve = L(() => {
3035
3035
  const C = {
3036
3036
  display: v.value ? "" : "none"
3037
3037
  };
3038
3038
  return C["pointer-events"] = x.value ? "auto" : "none", C;
3039
- }), ze = T(() => ({
3039
+ }), ze = L(() => ({
3040
3040
  "f-icon": !0,
3041
3041
  modal_maximize: !0,
3042
- modalrevert: N.value
3043
- })), He = T(() => ({
3042
+ modalrevert: P.value
3043
+ })), He = L(() => ({
3044
3044
  "modal-body": !0,
3045
3045
  "f-utils-flex-column": h.value === "iframe"
3046
3046
  }));
3047
3047
  function Ne() {
3048
3048
  return {};
3049
3049
  }
3050
- const Pe = T(() => {
3050
+ const Pe = L(() => {
3051
3051
  const C = {
3052
- textAlgin: M.value
3052
+ textAlgin: I.value
3053
3053
  }, V = Ne();
3054
3054
  return Object.assign(C, V);
3055
3055
  });
3056
- function be(C) {
3057
- if (C.stopPropagation(), N.value) {
3058
- N.value = !1, k();
3056
+ function ge(C) {
3057
+ if (C.stopPropagation(), P.value) {
3058
+ P.value = !1, k();
3059
3059
  return;
3060
3060
  }
3061
- B(), N.value = !0;
3061
+ D(), P.value = !0;
3062
3062
  }
3063
3063
  async function Ge(C, V) {
3064
3064
  C.handle && await C.handle(V, C) && t.emit("closed", V);
@@ -3067,15 +3067,15 @@ const ke = /* @__PURE__ */ q({
3067
3067
  C.width && (n.value = C.width), C.height && (a.value = C.height), C.buttons && (S.value = C.buttons), C.title && (w.value = C.title);
3068
3068
  }
3069
3069
  let se = null, re = null;
3070
- J(() => {
3071
- O.value && !L.value && (L.value = O.value.parentElement, z.value = L.value, $(D.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), se = wa(e, t), re = Sa(e, t);
3072
- }), Me(() => {
3070
+ Q(() => {
3071
+ O.value && !R.value && (R.value = O.value.parentElement, z.value = R.value, W(T.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), se = wa(e, t), re = Sa(e, t);
3072
+ }), Ce(() => {
3073
3073
  H(), E && E(), se && se.remove(), re && re.remove();
3074
3074
  }), t.expose({
3075
3075
  modalElementRef: O,
3076
3076
  updateModalOptions: qe,
3077
- close: W,
3078
- maxDialog: be
3077
+ close: B,
3078
+ maxDialog: ge
3079
3079
  });
3080
3080
  function Ue() {
3081
3081
  return i("ul", null, [f.value && i("li", {
@@ -3083,14 +3083,14 @@ const ke = /* @__PURE__ */ q({
3083
3083
  }, [i("span", {
3084
3084
  class: "f-icon modal_minimize"
3085
3085
  }, null)]), u.value && i("li", {
3086
- onClick: be,
3086
+ onClick: ge,
3087
3087
  class: "f-btn-icon f-bare",
3088
3088
  style: "pointer-events: auto;"
3089
3089
  }, [i("span", {
3090
3090
  class: ze.value
3091
- }, null)]), m.value && i("li", {
3091
+ }, null)]), p.value && i("li", {
3092
3092
  class: "f-btn-icon f-bare",
3093
- onClick: (C) => W(C, !1),
3093
+ onClick: (C) => B(C, !1),
3094
3094
  style: "pointer-events: auto;"
3095
3095
  }, [i("span", {
3096
3096
  class: "f-icon modal_close"
@@ -3113,12 +3113,12 @@ const ke = /* @__PURE__ */ q({
3113
3113
  }
3114
3114
  function Ye() {
3115
3115
  return i("div", {
3116
- ref: D,
3116
+ ref: T,
3117
3117
  class: "modal-header",
3118
3118
  style: Ve.value
3119
3119
  }, [i("div", {
3120
3120
  class: "modal-title"
3121
- }, [y.value && i("span", {
3121
+ }, [g.value && i("span", {
3122
3122
  class: s.value,
3123
3123
  style: "margin-right: 8px"
3124
3124
  }, null), i("span", {
@@ -3140,7 +3140,7 @@ const ke = /* @__PURE__ */ q({
3140
3140
  default: () => {
3141
3141
  var C, V;
3142
3142
  return [i("div", {
3143
- class: We.value,
3143
+ class: $e.value,
3144
3144
  style: "display: block",
3145
3145
  ref: j,
3146
3146
  onClick: Je
@@ -3159,13 +3159,13 @@ const ke = /* @__PURE__ */ q({
3159
3159
  width: "100%",
3160
3160
  frameborder: "0",
3161
3161
  src: b.value
3162
- }, null)]), p.value && Xe()]), !d.value && R.value && O.value && X(O.value)])])];
3162
+ }, null)]), m.value && Xe()]), !d.value && F.value && O.value && Y(O.value)])])];
3163
3163
  }
3164
3164
  })]
3165
3165
  });
3166
3166
  }
3167
3167
  });
3168
- function $e(e) {
3168
+ function We(e) {
3169
3169
  if (e.content && e.content.render)
3170
3170
  return e.content.render;
3171
3171
  if (e.render && typeof e.render == "function")
@@ -3176,24 +3176,24 @@ function Ca(e) {
3176
3176
  t.style.display = "contents";
3177
3177
  const n = lt({
3178
3178
  setup(a, o) {
3179
- Me(() => {
3179
+ Ce(() => {
3180
3180
  document.body.removeChild(t);
3181
3181
  });
3182
- const r = l(), c = l(e.class || ""), d = l(!!e.showButtons), v = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton), m = l(!0), u = l(e.title || ""), f = e.acceptCallback || (() => {
3182
+ const r = l(), c = l(e.class || ""), d = l(!!e.showButtons), v = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton), p = l(!0), u = l(e.title || ""), f = e.acceptCallback || (() => {
3183
3183
  }), h = e.rejectCallback || (() => {
3184
- }), b = e.closedCallback || ((R) => {
3185
- }), M = e.resizeHandle || ((R) => {
3186
- }), g = $e(e), w = (R) => {
3187
- m.value = !1, n.unmount(), b(R);
3184
+ }), b = e.closedCallback || ((F) => {
3185
+ }), I = e.resizeHandle || ((F) => {
3186
+ }), y = We(e), w = (F) => {
3187
+ p.value = !1, n.unmount(), b(F);
3188
3188
  };
3189
- return J(() => {
3189
+ return Q(() => {
3190
3190
  }), o.expose({
3191
3191
  modalRef: r
3192
3192
  }), () => i(ke, {
3193
3193
  ref: r,
3194
3194
  class: c.value,
3195
- modelValue: m.value,
3196
- "onUpdate:modelValue": (R) => m.value = R,
3195
+ modelValue: p.value,
3196
+ "onUpdate:modelValue": (F) => p.value = F,
3197
3197
  title: u.value,
3198
3198
  width: e.width,
3199
3199
  height: e.height,
@@ -3206,22 +3206,22 @@ function Ca(e) {
3206
3206
  onCancel: h,
3207
3207
  fitContent: e.fitContent == null ? !0 : e.fitContent,
3208
3208
  onClosed: w,
3209
- onResize: M
3209
+ onResize: I
3210
3210
  }, {
3211
- default: () => [g && g(n)]
3211
+ default: () => [y && y(n)]
3212
3212
  });
3213
3213
  }
3214
3214
  });
3215
3215
  return document.body.appendChild(t), n.mount(t), n;
3216
3216
  }
3217
- class ye {
3217
+ class he {
3218
3218
  constructor(t) {
3219
- Q(this, "appContext", null);
3220
- Q(this, "modalRef", l());
3221
- Q(this, "activeModalIndex", l(0));
3222
- Q(this, "modalRefs", {});
3223
- Q(this, "isUseEscCloseModal", l(!1));
3224
- Q(this, "activeModalInstance", T(() => this.modalRefs[this.activeModalIndex.value]));
3219
+ N(this, "appContext", null);
3220
+ N(this, "modalRef", l());
3221
+ N(this, "activeModalIndex", l(0));
3222
+ N(this, "modalRefs", {});
3223
+ N(this, "isUseEscCloseModal", l(!1));
3224
+ N(this, "activeModalInstance", L(() => this.modalRefs[this.activeModalIndex.value]));
3225
3225
  this.appContext = t ? t._context : null;
3226
3226
  }
3227
3227
  getCurrentModal() {
@@ -3244,26 +3244,26 @@ class ye {
3244
3244
  showHeader: !0
3245
3245
  }, t)), o = l(!0), r = a.value.acceptCallback || (() => {
3246
3246
  }), c = a.value.rejectCallback || (() => {
3247
- }), d = a.value.closedCallback || ((w, R) => {
3247
+ }), d = a.value.closedCallback || ((w, F) => {
3248
3248
  }), v = a.value.resizeHandle || ((w) => {
3249
3249
  });
3250
3250
  let s;
3251
- const m = $e(a.value), u = (w) => {
3252
- var L;
3251
+ const p = We(a.value), u = (w) => {
3252
+ var R;
3253
3253
  o.value = !1;
3254
- const R = (L = w == null ? void 0 : w.target) == null ? void 0 : L.classList.contains("modal_close");
3255
- d(w, this.isUseEscCloseModal.value ? "esc" : R ? "icon" : "button");
3254
+ const F = (R = w == null ? void 0 : w.target) == null ? void 0 : R.classList.contains("modal_close");
3255
+ d(w, this.isUseEscCloseModal.value ? "esc" : F ? "icon" : "button");
3256
3256
  }, f = (w) => {
3257
3257
  u(w), s && fe(() => {
3258
3258
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ce(null, n), s = null, this.modalRef.value = null, this.modalRefs) {
3259
- const R = Object.keys(this.modalRefs);
3260
- R.length > 0 ? this.activeModalIndex.value = Math.max(...R) : this.activeModalIndex.value = 0;
3259
+ const F = Object.keys(this.modalRefs);
3260
+ F.length > 0 ? this.activeModalIndex.value = Math.max(...F) : this.activeModalIndex.value = 0;
3261
3261
  }
3262
3262
  this.isUseEscCloseModal.value = !1;
3263
3263
  });
3264
3264
  }, h = (w) => {
3265
- var R;
3266
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((R = this.activeModalInstance.value) == null || R.close(w == null ? void 0 : w.event));
3265
+ var F;
3266
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((F = this.activeModalInstance.value) == null || F.close(w == null ? void 0 : w.event));
3267
3267
  }, b = () => i(ke, Ie({
3268
3268
  ref: this.modalRef,
3269
3269
  modelValue: o.value,
@@ -3275,11 +3275,11 @@ class ye {
3275
3275
  onResize: v,
3276
3276
  onEsc: h
3277
3277
  }), {
3278
- default: () => [m && m()]
3278
+ default: () => [p && p()]
3279
3279
  });
3280
3280
  return s = ((w) => {
3281
- const R = ot(b, w);
3282
- return R.appContext = this.appContext, ce(R, n), R;
3281
+ const F = ot(b, w);
3282
+ return F.appContext = this.appContext, ce(F, n), F;
3283
3283
  })({
3284
3284
  ...a.value
3285
3285
  // 'onUpdate:modelValue': onUpdateModelValue,
@@ -3297,8 +3297,8 @@ class ye {
3297
3297
  };
3298
3298
  }
3299
3299
  }
3300
- function Ma(e, t, n) {
3301
- var W;
3300
+ function Ia(e, t, n) {
3301
+ var j;
3302
3302
  function a() {
3303
3303
  }
3304
3304
  const o = "", r = "", c = l();
@@ -3311,56 +3311,49 @@ function Ma(e, t, n) {
3311
3311
  function s() {
3312
3312
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
3313
3313
  }
3314
- function m() {
3314
+ function p() {
3315
3315
  return (t == null ? void 0 : t.schema.componentType) === "frame";
3316
3316
  }
3317
- function u(F) {
3318
- if (!F || !F.value)
3317
+ function u(B) {
3318
+ if (!B || !B.value)
3319
3319
  return null;
3320
- if (F.value.schema && F.value.schema.type === "component")
3321
- return F.value;
3322
- const S = l(F == null ? void 0 : F.value.parent), y = u(S);
3323
- return y || null;
3320
+ if (B.value.schema && B.value.schema.type === "component")
3321
+ return B.value;
3322
+ const $ = l(B == null ? void 0 : B.value.parent), S = u($);
3323
+ return S || null;
3324
3324
  }
3325
- function f(F = t) {
3326
- const { componentInstance: S, designerItemElementRef: y } = F;
3327
- return !S || !S.value ? null : S.value.canMove ? y : f(F.parent);
3325
+ function f(B = t) {
3326
+ const { componentInstance: $, designerItemElementRef: S } = B;
3327
+ return !$ || !$.value ? null : $.value.canMove ? S : f(B.parent);
3328
3328
  }
3329
- function h(F) {
3329
+ function h(B) {
3330
3330
  return !!n;
3331
3331
  }
3332
3332
  function b() {
3333
3333
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
3334
3334
  }
3335
- function M() {
3335
+ function I() {
3336
3336
  }
3337
- function g(F, S) {
3337
+ function y(B, $) {
3338
3338
  }
3339
- function w(F, S) {
3340
- const { componentType: y } = F;
3341
- let p = ve(y, F, S);
3342
- const D = y.toLowerCase().replace("-", "_");
3343
- return p && !p.id && p.type === y && (p.id = `${D}_${Math.random().toString().slice(2, 6)}`), p;
3339
+ function w(B, $) {
3340
+ const { componentType: S } = B;
3341
+ let g = Ee(S, B, $);
3342
+ const m = S.toLowerCase().replace("-", "_");
3343
+ return g && !g.id && g.type === S && (g.id = `${m}_${Math.random().toString().slice(2, 6)}`), g;
3344
3344
  }
3345
- function R(F, S) {
3346
- const y = String(F.getAttribute("data-controltype")), p = F.getAttribute("data-feature"), D = p ? JSON.parse(p) : {};
3347
- D.parentComponentInstance = c.value;
3348
- let O = ve(y, D);
3349
- const N = y.toLowerCase().replace("-", "_");
3350
- return O && !O.id && O.type === y && (O.id = `${N}_${Math.random().toString().slice(2, 6)}`), O;
3345
+ function F(B) {
3351
3346
  }
3352
- function L(F) {
3353
- }
3354
- function j(...F) {
3347
+ function R(...B) {
3355
3348
  }
3356
3349
  return c.value = {
3357
3350
  canMove: d(),
3358
3351
  canSelectParent: v(),
3359
3352
  canDelete: s(),
3360
- canNested: !m(),
3353
+ canNested: !p(),
3361
3354
  contents: t == null ? void 0 : t.schema.contents,
3362
3355
  elementRef: e,
3363
- parent: (W = t == null ? void 0 : t.parent) == null ? void 0 : W.componentInstance,
3356
+ parent: (j = t == null ? void 0 : t.parent) == null ? void 0 : j.componentInstance,
3364
3357
  schema: t == null ? void 0 : t.schema,
3365
3358
  styles: o,
3366
3359
  designerClass: r,
@@ -3368,28 +3361,27 @@ function Ma(e, t, n) {
3368
3361
  getBelongedComponentInstance: u,
3369
3362
  getDraggableDesignItemElement: f,
3370
3363
  getDraggingDisplayText: b,
3371
- getPropConfig: j,
3372
- getDragScopeElement: M,
3373
- onAcceptMovedChildElement: g,
3374
- onAcceptNewChildElement: R,
3375
- onChildElementMovedOut: L,
3364
+ getPropConfig: R,
3365
+ getDragScopeElement: I,
3366
+ onAcceptMovedChildElement: y,
3367
+ onChildElementMovedOut: F,
3376
3368
  addNewChildComponentSchema: w,
3377
3369
  updateDragAndDropRules: a,
3378
3370
  triggerBelongedComponentToMoveWhenMoved: l(!1),
3379
3371
  triggerBelongedComponentToDeleteWhenDeleted: l(!1)
3380
3372
  }, c;
3381
3373
  }
3382
- const Ia = /* @__PURE__ */ q({
3374
+ const Ma = /* @__PURE__ */ U({
3383
3375
  name: "FResponseLayoutEditorSettingDesign",
3384
- props: he,
3376
+ props: me,
3385
3377
  emits: [],
3386
3378
  setup(e, t) {
3387
- const n = l(e.initialState), a = l(e.width), o = l(e.height), r = l(), c = Ce("design-item-context"), d = Ma(r, c);
3388
- J(() => {
3379
+ const n = l(e.initialState), a = l(e.width), o = l(e.height), r = l(), c = Se("design-item-context"), d = Ia(r, c);
3380
+ Q(() => {
3389
3381
  r.value.componentInstance = d;
3390
3382
  }), t.expose(d.value);
3391
3383
  function v() {
3392
- const s = ye.show({
3384
+ const s = he.show({
3393
3385
  // title: '响应式列宽编辑器',
3394
3386
  render: () => i(ie, {
3395
3387
  initialState: n,
@@ -3425,7 +3417,7 @@ const Ia = /* @__PURE__ */ q({
3425
3417
  class: "f-column-width-setting-button-name"
3426
3418
  }, [i("span", {
3427
3419
  class: "f-column-width-setting-button-center"
3428
- }, [G("高级设置")])])]);
3420
+ }, [q("高级设置")])])]);
3429
3421
  }
3430
3422
  }), xa = {
3431
3423
  width: { Type: Number, default: 400 },
@@ -3437,12 +3429,12 @@ const Ia = /* @__PURE__ */ q({
3437
3429
  exceptionInfo: { Type: Object, default: null },
3438
3430
  promptEditorType: { Type: String, default: "text-area" }
3439
3431
  };
3440
- function ge() {
3432
+ function ye() {
3441
3433
  return new DOMException("The request is not allowed", "NotAllowedError");
3442
3434
  }
3443
3435
  async function Ea(e) {
3444
3436
  if (!navigator.clipboard)
3445
- throw ge();
3437
+ throw ye();
3446
3438
  return navigator.clipboard.writeText(e);
3447
3439
  }
3448
3440
  async function Da(e) {
@@ -3456,7 +3448,7 @@ async function Da(e) {
3456
3448
  } finally {
3457
3449
  n == null || n.removeAllRanges(), window.document.body.removeChild(t);
3458
3450
  }
3459
- if (!o) throw ge();
3451
+ if (!o) throw ye();
3460
3452
  }
3461
3453
  async function Ba(e) {
3462
3454
  try {
@@ -3465,7 +3457,7 @@ async function Ba(e) {
3465
3457
  try {
3466
3458
  await Da(e);
3467
3459
  } catch (n) {
3468
- throw n || t || ge();
3460
+ throw n || t || ye();
3469
3461
  }
3470
3462
  }
3471
3463
  }
@@ -3476,11 +3468,11 @@ function Ta() {
3476
3468
  return { onCopy: e };
3477
3469
  }
3478
3470
  function La(e, t, n, a) {
3479
- const o = l(14), r = l(140), c = l(""), d = l(a.value.length), v = T(() => a.value), s = T(() => ({
3471
+ const o = l(14), r = l(140), c = l(""), d = l(a.value.length), v = L(() => a.value), s = L(() => ({
3480
3472
  "font-size": `${o.value}px`,
3481
3473
  height: "100%"
3482
3474
  }));
3483
- function m(u) {
3475
+ function p(u) {
3484
3476
  if (u.currentTarget) {
3485
3477
  const f = u.currentTarget.value || "";
3486
3478
  d.value = f.length;
@@ -3493,7 +3485,7 @@ function La(e, t, n, a) {
3493
3485
  style: s.value,
3494
3486
  rows: "4",
3495
3487
  maxlength: r.value,
3496
- onInput: (u) => m(u)
3488
+ onInput: (u) => p(u)
3497
3489
  }, [v.value]), i("span", {
3498
3490
  class: "textarea-wordcount",
3499
3491
  title: c.value,
@@ -3510,7 +3502,7 @@ function Ra(e, t, n, a) {
3510
3502
  function Fa() {
3511
3503
  const e = l(!1), t = l("复制成功");
3512
3504
  return {
3513
- feedbackStyle: T(() => {
3505
+ feedbackStyle: L(() => {
3514
3506
  const a = {
3515
3507
  position: "absolute",
3516
3508
  left: "50%",
@@ -3537,31 +3529,31 @@ function ka(e, t) {
3537
3529
  const n = t.getEditorRender(e.promptEditorType);
3538
3530
  return () => n && n();
3539
3531
  }
3540
- function $a(e) {
3541
- const t = l(3), n = l(480), a = T(() => !!e.value && !!e.value.date), o = T(() => `发生时间 : ${e.value && e.value.date || ""}`), r = T(() => !!e.value && !!e.value.detail), c = T(() => {
3542
- const g = `${n.value}px`;
3532
+ function Wa(e) {
3533
+ const t = l(3), n = l(480), a = L(() => !!e.value && !!e.value.date), o = L(() => `发生时间 : ${e.value && e.value.date || ""}`), r = L(() => !!e.value && !!e.value.detail), c = L(() => {
3534
+ const y = `${n.value}px`;
3543
3535
  return {
3544
3536
  overflow: "hidden",
3545
3537
  "text-overflow": "ellipsis",
3546
3538
  display: "-webkit-box",
3547
3539
  "-webkit-box-orient": "vertical",
3548
3540
  "-webkit-line-clamp": t.value,
3549
- "max-height": g
3541
+ "max-height": y
3550
3542
  };
3551
- }), d = T(() => e.value && e.value.detail || ""), v = T(() => !0), s = l(!1), m = l("展开"), u = l("收起"), f = T(() => {
3552
- const g = {
3543
+ }), d = L(() => e.value && e.value.detail || ""), v = L(() => !0), s = l(!1), p = l("展开"), u = l("收起"), f = L(() => {
3544
+ const y = {
3553
3545
  display: "block",
3554
3546
  color: "#2A87FF"
3555
3547
  };
3556
- return g["text-align"] = s.value ? "" : "right", g;
3548
+ return y["text-align"] = s.value ? "" : "right", y;
3557
3549
  });
3558
- function h(g, w) {
3550
+ function h(y, w) {
3559
3551
  s.value = !s.value, t.value = s.value ? 20 : 3;
3560
3552
  }
3561
- function b(g) {
3553
+ function b(y) {
3562
3554
  return h();
3563
3555
  }
3564
- function M(g) {
3556
+ function I(y) {
3565
3557
  return h();
3566
3558
  }
3567
3559
  return () => i("div", {
@@ -3570,7 +3562,7 @@ function $a(e) {
3570
3562
  id: "exception_error_msg",
3571
3563
  ref: "exceptionMessageRef",
3572
3564
  style: c.value
3573
- }, [G("详细信息 : "), i("span", {
3565
+ }, [q("详细信息 : "), i("span", {
3574
3566
  innerHTML: d.value
3575
3567
  }, null)]), v.value && i("span", {
3576
3568
  style: f.value
@@ -3578,27 +3570,27 @@ function $a(e) {
3578
3570
  onClick: b,
3579
3571
  style: "cursor: pointer;"
3580
3572
  }, [u.value]), !s.value && i("span", {
3581
- onClick: M,
3573
+ onClick: I,
3582
3574
  style: "cursor: pointer;"
3583
- }, [m.value])])]);
3575
+ }, [p.value])])]);
3584
3576
  }
3585
- function Wa(e) {
3577
+ function $a(e) {
3586
3578
  return () => i("p", {
3587
3579
  class: "toast-msg-detail",
3588
3580
  innerHTML: e.value
3589
3581
  }, null);
3590
3582
  }
3591
3583
  function Oa(e, t, n, a) {
3592
- const o = l(e.exceptionInfo), r = T(() => {
3584
+ const o = l(e.exceptionInfo), r = L(() => {
3593
3585
  const f = {
3594
3586
  "f-icon": !0
3595
3587
  }, h = `f-icon-${t.value}`;
3596
3588
  return f[h] = !0, f;
3597
- }), c = T(() => n.value || o.value && o.value.message), d = T(() => a.value), v = T(() => !!a.value), s = T(() => !!o.value);
3598
- function m() {
3599
- return s.value ? $a(o) : v.value ? Wa(d) : () => null;
3589
+ }), c = L(() => n.value || o.value && o.value.message), d = L(() => a.value), v = L(() => !!a.value), s = L(() => !!o.value);
3590
+ function p() {
3591
+ return s.value ? Wa(o) : v.value ? $a(d) : () => null;
3600
3592
  }
3601
- const u = m();
3593
+ const u = p();
3602
3594
  return () => i(ue, null, [i("div", {
3603
3595
  class: "float-left modal-tips-iconwrap"
3604
3596
  }, [i("span", {
@@ -3619,8 +3611,8 @@ function Aa(e, t, n) {
3619
3611
  date: "",
3620
3612
  message: "",
3621
3613
  detail: ""
3622
- }), v = T(() => d.value && d.value.detail || "");
3623
- function s(m) {
3614
+ }), v = L(() => d.value && d.value.detail || "");
3615
+ function s(p) {
3624
3616
  a(v.value).catch((u) => {
3625
3617
  r.value = "复制失败";
3626
3618
  }).finally(() => {
@@ -3637,53 +3629,53 @@ function Aa(e, t, n) {
3637
3629
  }, [c.value])]);
3638
3630
  }
3639
3631
  function ja(e, t, n, a) {
3640
- const o = l(e.type), r = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0), m = l(!0), u = T(() => !!(r.value && r.value.length)), f = T(() => c.value && c.value.date && c.value.message && c.value.detail), h = T(() => !(r.value && r.value.length) && (d.value || v.value)), b = T(() => m.value && d.value), M = T(() => s.value && v.value), g = Aa(e, n, a);
3641
- function w(L) {
3632
+ const o = l(e.type), r = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0), p = l(!0), u = L(() => !!(r.value && r.value.length)), f = L(() => c.value && c.value.date && c.value.message && c.value.detail), h = L(() => !(r.value && r.value.length) && (d.value || v.value)), b = L(() => p.value && d.value), I = L(() => s.value && v.value), y = Aa(e, n, a);
3633
+ function w(R) {
3642
3634
  o.value === "question" && t.emit("reject"), t.emit("close");
3643
3635
  }
3644
- function R(L) {
3636
+ function F(R) {
3645
3637
  o.value === "question" && t.emit("accept"), t.emit("close");
3646
3638
  }
3647
3639
  return () => i("div", {
3648
3640
  class: "modal-footer"
3649
- }, [f.value && g(), h.value && M.value && i("button", {
3641
+ }, [f.value && y(), h.value && I.value && i("button", {
3650
3642
  type: "button",
3651
3643
  class: "btn btn-secondary btn-lg",
3652
3644
  onClick: w
3653
3645
  }, [v.value]), h.value && b.value && i("button", {
3654
3646
  type: "button",
3655
3647
  class: "btn btn-primary btn-lg",
3656
- onClick: R
3657
- }, [d.value]), u.value && r.value.length && r.value.map((L) => i("button", {
3648
+ onClick: F
3649
+ }, [d.value]), u.value && r.value.length && r.value.map((R) => i("button", {
3658
3650
  type: "button",
3659
- onClick: L.handle,
3660
- class: L.class
3661
- }, [L.iconClass && i("span", {
3662
- class: L.iconClass
3663
- }, null), L.text]))]);
3651
+ onClick: R.handle,
3652
+ class: R.class
3653
+ }, [R.iconClass && i("span", {
3654
+ class: R.iconClass
3655
+ }, null), R.text]))]);
3664
3656
  }
3665
- const oe = /* @__PURE__ */ q({
3657
+ const oe = /* @__PURE__ */ U({
3666
3658
  name: "FMessageBox",
3667
3659
  props: xa,
3668
3660
  emits: ["accept", "reject", "close"],
3669
3661
  setup(e, t) {
3670
- const n = l(e.type), a = l(e.title), o = l(e.detail), r = T(() => {
3671
- const g = {
3662
+ const n = l(e.type), a = l(e.title), o = l(e.detail), r = L(() => {
3663
+ const y = {
3672
3664
  "modal-tips": !0,
3673
3665
  "d-flex": !0,
3674
3666
  "flex-row": !0
3675
3667
  }, w = `messager-type-${n.value}`;
3676
- return g[w] = !0, g;
3677
- }), c = T(() => {
3678
- const g = {};
3679
- return n.value === "prompt" ? g.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (g.padding = "0.5rem 1.5rem 1rem 1.5rem"), g;
3668
+ return y[w] = !0, y;
3669
+ }), c = L(() => {
3670
+ const y = {};
3671
+ return n.value === "prompt" ? y.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (y.padding = "0.5rem 1.5rem 1rem 1.5rem"), y;
3680
3672
  }), d = Ta(), v = Ra(e, n, a, o), s = Fa(), {
3681
- feedbackStyle: m,
3673
+ feedbackStyle: p,
3682
3674
  feedbackMessage: u
3683
3675
  } = s;
3684
3676
  function f() {
3685
3677
  return i("div", {
3686
- style: m.value
3678
+ style: p.value
3687
3679
  }, [u.value]);
3688
3680
  }
3689
3681
  function h() {
@@ -3694,25 +3686,25 @@ const oe = /* @__PURE__ */ q({
3694
3686
  return Oa(e, n, a, o);
3695
3687
  }
3696
3688
  }
3697
- const b = h(), M = ja(e, t, d, s);
3689
+ const b = h(), I = ja(e, t, d, s);
3698
3690
  return () => i("div", {
3699
3691
  class: "farris-messager"
3700
3692
  }, [i("section", {
3701
3693
  class: r.value,
3702
3694
  style: c.value
3703
- }, [b()]), M(), f()]);
3695
+ }, [b()]), I(), f()]);
3704
3696
  }
3705
3697
  });
3706
- class Y {
3698
+ class J {
3707
3699
  static show(t) {
3708
- let n = new ye();
3700
+ let n = new he();
3709
3701
  const a = Z({
3710
3702
  ...t
3711
3703
  }), o = !1, r = a.type === "error" || a.type === "prompt", c = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", d = a.acceptCallback || (() => {
3712
3704
  }), v = a.rejectCallback || (() => {
3713
3705
  });
3714
3706
  let s = null;
3715
- const m = () => {
3707
+ const p = () => {
3716
3708
  s && (s == null || s.destroy(), n = null);
3717
3709
  };
3718
3710
  s = n == null ? void 0 : n.open({
@@ -3726,7 +3718,7 @@ class Y {
3726
3718
  render: () => i(oe, Ie(a, {
3727
3719
  onAccept: d,
3728
3720
  onReject: v,
3729
- onClose: m
3721
+ onClose: p
3730
3722
  }), null)
3731
3723
  });
3732
3724
  }
@@ -3738,7 +3730,7 @@ class Y {
3738
3730
  okButtonText: "知道了",
3739
3731
  cancelButtonText: ""
3740
3732
  });
3741
- Y.show(a);
3733
+ J.show(a);
3742
3734
  }
3743
3735
  static warning(t, n) {
3744
3736
  const a = Z({
@@ -3748,7 +3740,7 @@ class Y {
3748
3740
  okButtonText: "知道了",
3749
3741
  cancelButtonText: ""
3750
3742
  });
3751
- Y.show(a);
3743
+ J.show(a);
3752
3744
  }
3753
3745
  static success(t, n) {
3754
3746
  const a = Z({
@@ -3758,7 +3750,7 @@ class Y {
3758
3750
  okButtonText: "关闭",
3759
3751
  cancelButtonText: ""
3760
3752
  });
3761
- Y.show(a);
3753
+ J.show(a);
3762
3754
  }
3763
3755
  static error(t, n, a) {
3764
3756
  const o = Z({
@@ -3772,7 +3764,7 @@ class Y {
3772
3764
  detail: n
3773
3765
  }
3774
3766
  });
3775
- Y.show(o);
3767
+ J.show(o);
3776
3768
  }
3777
3769
  static prompt(t, n) {
3778
3770
  const a = Z({
@@ -3782,7 +3774,7 @@ class Y {
3782
3774
  okButtonText: "确定",
3783
3775
  cancelButtonText: "取消"
3784
3776
  });
3785
- Y.show(a);
3777
+ J.show(a);
3786
3778
  }
3787
3779
  static question(t, n, a, o) {
3788
3780
  const r = Z({
@@ -3794,15 +3786,15 @@ class Y {
3794
3786
  acceptCallback: a,
3795
3787
  rejectCallback: o
3796
3788
  });
3797
- Y.show(r);
3789
+ J.show(r);
3798
3790
  }
3799
3791
  }
3800
3792
  oe.install = (e) => {
3801
- e.component(oe.name, oe), e.provide("FMessageBoxService", Y);
3793
+ e.component(oe.name, oe), e.provide("FMessageBoxService", J);
3802
3794
  };
3803
- const de = /* @__PURE__ */ q({
3795
+ const de = /* @__PURE__ */ U({
3804
3796
  name: "FResponseLayoutEditorSetting",
3805
- props: he,
3797
+ props: me,
3806
3798
  emits: ["change"],
3807
3799
  setup(e, t) {
3808
3800
  const n = l(e.initialState), a = l(e.width), o = l(e.height);
@@ -3818,10 +3810,10 @@ const de = /* @__PURE__ */ q({
3818
3810
  function d() {
3819
3811
  if (!n.value.defaultState || !n.value.importData) {
3820
3812
  const v = n.value.message || "只可以在响应式表单组件中调整响应式布局配置";
3821
- Y.info(v, "");
3813
+ J.info(v, "");
3822
3814
  return;
3823
3815
  }
3824
- ye.show({
3816
+ he.show({
3825
3817
  render: (v) => i(ie, {
3826
3818
  initialState: n,
3827
3819
  width: a.value,
@@ -3845,21 +3837,54 @@ const de = /* @__PURE__ */ q({
3845
3837
  class: "f-column-width-setting-button-name"
3846
3838
  }, [i("span", {
3847
3839
  class: "f-column-width-setting-button-center"
3848
- }, [G("高级设置")])])]);
3840
+ }, [q("高级设置")])])]);
3849
3841
  }
3850
- }), Ga = {
3842
+ });
3843
+ class Ga {
3844
+ constructor() {
3845
+ /** 控件标题 */
3846
+ N(this, "label", "");
3847
+ /** 控件id */
3848
+ N(this, "id", "");
3849
+ /** 每个控件占用的栅格数 */
3850
+ N(this, "columnInSM", 12);
3851
+ N(this, "columnInMD", 6);
3852
+ N(this, "columnInLG", 3);
3853
+ N(this, "columnInEL", 2);
3854
+ /** 每个控件占用的列数 */
3855
+ N(this, "displayWidthInSM", 1);
3856
+ N(this, "displayWidthInMD", 1);
3857
+ N(this, "displayWidthInLG", 1);
3858
+ N(this, "displayWidthInEL", 1);
3859
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
3860
+ N(this, "displayColumnCountAtBreakPoint", "md");
3861
+ /** 控件所在行,传0即可-----编辑器内部使用 */
3862
+ N(this, "tagRow", 0);
3863
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
3864
+ N(this, "showTopBorder", 0);
3865
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
3866
+ N(this, "group", 1);
3867
+ /** 控件是否符合标准的class配置(设计器用的) */
3868
+ N(this, "isSupportedClass", !0);
3869
+ /** 控件所在分组id(设计器用的) */
3870
+ N(this, "fieldSetId", "");
3871
+ }
3872
+ }
3873
+ const qa = {
3851
3874
  install(e) {
3852
3875
  e.component(ie.name, ie), e.component(de.name, de);
3853
3876
  },
3854
3877
  register(e, t, n, a) {
3855
- e["response-layout-editor-setting"] = de, t["response-layout-editor-setting"] = Se;
3878
+ e["response-layout-editor-setting"] = de, t["response-layout-editor-setting"] = we;
3856
3879
  },
3857
3880
  registerDesigner(e, t, n) {
3858
- e["response-layout-editor-setting"] = Ia, t["response-layout-editor-setting"] = Se;
3881
+ e["response-layout-editor-setting"] = Ma, t["response-layout-editor-setting"] = we;
3859
3882
  }
3860
3883
  };
3861
3884
  export {
3885
+ Ga as ResponseFormLayoutContext,
3862
3886
  ie as ResponseLayoutEditor,
3863
- Ga as default,
3887
+ de as ResponseLayoutEditorSetting,
3888
+ qa as default,
3864
3889
  ct as responseLayoutEditorProps
3865
3890
  };