@farris/ui-vue 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/components/accordion/package.json +1 -1
  2. package/components/avatar/index.esm.js +124 -116
  3. package/components/avatar/index.umd.cjs +1 -1
  4. package/components/avatar/package.json +1 -1
  5. package/components/border-editor/package.json +1 -1
  6. package/components/button/package.json +1 -1
  7. package/components/button-edit/index.css +1 -0
  8. package/components/button-edit/package.json +1 -1
  9. package/components/button-group/package.json +1 -1
  10. package/components/calculator/package.json +1 -1
  11. package/components/calendar/package.json +1 -1
  12. package/components/capsule/package.json +1 -1
  13. package/components/checkbox/index.esm.js +219 -209
  14. package/components/checkbox/index.umd.cjs +1 -1
  15. package/components/checkbox/package.json +1 -1
  16. package/components/color-picker/package.json +1 -1
  17. package/components/combo-list/index.esm.js +36 -28
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-list/package.json +1 -1
  20. package/components/combo-tree/index.esm.js +340 -107
  21. package/components/combo-tree/index.umd.cjs +1 -1
  22. package/components/combo-tree/package.json +1 -1
  23. package/components/common/package.json +1 -1
  24. package/components/component/index.esm.js +36 -29
  25. package/components/component/index.umd.cjs +1 -1
  26. package/components/component/package.json +1 -1
  27. package/components/condition/index.esm.js +318 -316
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/condition/package.json +1 -1
  30. package/components/content-container/index.esm.js +9 -13
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/content-container/package.json +1 -1
  33. package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
  34. package/components/data-grid/index.esm.js +3771 -3622
  35. package/components/data-grid/index.umd.cjs +1 -1
  36. package/components/data-grid/package.json +1 -1
  37. package/components/data-view/index.esm.js +2408 -2405
  38. package/components/data-view/index.umd.cjs +1 -1
  39. package/components/data-view/package.json +1 -1
  40. package/components/date-picker/index.esm.js +250 -242
  41. package/components/date-picker/index.umd.cjs +1 -1
  42. package/components/date-picker/package.json +1 -1
  43. package/components/designer-canvas/index.esm.js +23 -20
  44. package/components/designer-canvas/index.umd.cjs +1 -1
  45. package/components/designer-canvas/package.json +1 -1
  46. package/components/designer-outline/package.json +1 -1
  47. package/components/designer-toolbox/package.json +1 -1
  48. package/components/discussion-editor/package.json +1 -1
  49. package/components/discussion-list/package.json +1 -1
  50. package/components/drawer/package.json +1 -1
  51. package/components/dropdown/index.esm.js +86 -86
  52. package/components/dropdown/index.umd.cjs +1 -1
  53. package/components/dropdown/package.json +1 -1
  54. package/components/dynamic-form/index.esm.js +575 -565
  55. package/components/dynamic-form/index.umd.cjs +1 -1
  56. package/components/dynamic-form/package.json +1 -1
  57. package/components/dynamic-resolver/index.esm.js +56 -47
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-resolver/package.json +1 -1
  60. package/components/dynamic-view/index.esm.js +281 -277
  61. package/components/dynamic-view/index.umd.cjs +1 -1
  62. package/components/dynamic-view/package.json +1 -1
  63. package/components/enum-editor/package.json +1 -1
  64. package/components/events-editor/package.json +1 -1
  65. package/components/expression-editor/package.json +1 -1
  66. package/components/external-container/index.css +1 -0
  67. package/components/external-container/index.esm.js +1795 -1783
  68. package/components/external-container/index.umd.cjs +1 -1
  69. package/components/external-container/package.json +1 -1
  70. package/components/field-selector/index.css +1 -0
  71. package/components/field-selector/index.esm.js +3914 -3769
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/field-selector/package.json +1 -1
  74. package/components/filter-bar/{style.css → index.css} +1 -1
  75. package/components/filter-bar/index.esm.js +475 -465
  76. package/components/filter-bar/index.umd.cjs +1 -1
  77. package/components/filter-bar/package.json +1 -1
  78. package/components/flow-canvas/index.esm.js +37 -34
  79. package/components/flow-canvas/index.umd.cjs +1 -1
  80. package/components/flow-canvas/package.json +1 -1
  81. package/components/image-cropper/package.json +1 -1
  82. package/components/input-group/index.esm.js +256 -248
  83. package/components/input-group/index.umd.cjs +1 -1
  84. package/components/input-group/package.json +1 -1
  85. package/components/layout/package.json +1 -1
  86. package/components/list-nav/package.json +1 -1
  87. package/components/list-view/index.esm.js +1445 -1446
  88. package/components/list-view/index.umd.cjs +1 -1
  89. package/components/list-view/package.json +1 -1
  90. package/components/loading/package.json +1 -1
  91. package/components/locale/package.json +1 -1
  92. package/components/lookup/index.css +1 -0
  93. package/components/lookup/index.esm.js +4347 -4145
  94. package/components/lookup/index.umd.cjs +1 -1
  95. package/components/lookup/package.json +1 -1
  96. package/components/mapping-editor/index.css +1 -0
  97. package/components/mapping-editor/index.esm.js +4657 -4475
  98. package/components/mapping-editor/index.umd.cjs +1 -1
  99. package/components/mapping-editor/package.json +1 -1
  100. package/components/message-box/index.css +1 -0
  101. package/components/message-box/index.esm.js +397 -386
  102. package/components/message-box/index.umd.cjs +1 -1
  103. package/components/message-box/package.json +1 -1
  104. package/components/modal/index.css +1 -0
  105. package/components/modal/index.esm.js +308 -297
  106. package/components/modal/index.umd.cjs +1 -1
  107. package/components/modal/package.json +1 -1
  108. package/components/nav/package.json +1 -1
  109. package/components/notify/package.json +1 -1
  110. package/components/order/index.esm.js +353 -345
  111. package/components/order/index.umd.cjs +1 -1
  112. package/components/order/package.json +1 -1
  113. package/components/page-footer/package.json +1 -1
  114. package/components/page-header/index.esm.js +917 -893
  115. package/components/page-header/index.umd.cjs +1 -1
  116. package/components/page-header/package.json +1 -1
  117. package/components/pagination/package.json +1 -1
  118. package/components/popover/package.json +1 -1
  119. package/components/progress/package.json +1 -1
  120. package/components/property-editor/index.esm.js +108 -101
  121. package/components/property-editor/index.umd.cjs +2 -2
  122. package/components/property-editor/package.json +1 -1
  123. package/components/property-panel/index.esm.js +394 -384
  124. package/components/property-panel/index.umd.cjs +1 -1
  125. package/components/property-panel/package.json +1 -1
  126. package/components/radio-button/package.json +1 -1
  127. package/components/radio-group/index.esm.js +72 -64
  128. package/components/radio-group/index.umd.cjs +1 -1
  129. package/components/radio-group/package.json +1 -1
  130. package/components/rate/package.json +1 -1
  131. package/components/response-layout/package.json +1 -1
  132. package/components/response-layout-editor/{style.css → index.css} +1 -1
  133. package/components/response-layout-editor/index.esm.js +404 -393
  134. package/components/response-layout-editor/index.umd.cjs +1 -1
  135. package/components/response-layout-editor/package.json +1 -1
  136. package/components/response-toolbar/index.esm.js +610 -592
  137. package/components/response-toolbar/index.umd.cjs +1 -1
  138. package/components/response-toolbar/package.json +1 -1
  139. package/components/schema-selector/index.css +1 -0
  140. package/components/schema-selector/index.esm.js +3654 -3408
  141. package/components/schema-selector/index.umd.cjs +8 -1
  142. package/components/schema-selector/package.json +1 -1
  143. package/components/search-box/package.json +1 -1
  144. package/components/section/index.esm.js +21 -14
  145. package/components/section/index.umd.cjs +1 -1
  146. package/components/section/package.json +1 -1
  147. package/components/smoke-detector/package.json +1 -1
  148. package/components/spacing-editor/package.json +1 -1
  149. package/components/splitter/package.json +1 -1
  150. package/components/step/package.json +1 -1
  151. package/components/switch/index.esm.js +79 -71
  152. package/components/switch/index.umd.cjs +1 -1
  153. package/components/switch/package.json +1 -1
  154. package/components/tabs/index.css +1 -0
  155. package/components/tabs/index.esm.js +1448 -1406
  156. package/components/tabs/index.umd.cjs +1 -1
  157. package/components/tabs/package.json +1 -1
  158. package/components/tags/package.json +1 -1
  159. package/components/text/package.json +1 -1
  160. package/components/textarea/index.esm.js +86 -78
  161. package/components/textarea/index.umd.cjs +1 -1
  162. package/components/textarea/package.json +1 -1
  163. package/components/time-picker/index.css +1 -0
  164. package/components/time-picker/index.esm.js +387 -379
  165. package/components/time-picker/index.umd.cjs +1 -1
  166. package/components/time-picker/package.json +1 -1
  167. package/components/tooltip/package.json +1 -1
  168. package/components/transfer/package.json +1 -1
  169. package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
  170. package/components/tree-grid/index.esm.js +3769 -3620
  171. package/components/tree-grid/index.umd.cjs +1 -1
  172. package/components/tree-grid/package.json +1 -1
  173. package/components/tree-view/index.esm.js +2041 -2038
  174. package/components/tree-view/index.umd.cjs +1 -1
  175. package/components/tree-view/package.json +1 -1
  176. package/components/uploader/package.json +1 -1
  177. package/components/verify-detail/package.json +1 -1
  178. package/components/video/package.json +1 -1
  179. package/components/weather/package.json +1 -1
  180. package/farris.all.esm.js +12423 -11981
  181. package/farris.all.umd.cjs +9 -9
  182. package/index.css +1 -0
  183. package/package.json +2 -2
  184. package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
  185. package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
  186. package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
  187. package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
  188. package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
  189. package/types/components.d.ts +1 -0
  190. package/types/data-grid/index.d.ts +5 -5
  191. package/types/data-grid/src/data-grid.component.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
  194. package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
  195. package/types/designer-canvas/src/composition/types.d.ts +1 -0
  196. package/types/dynamic-form/src/types.d.ts +1 -1
  197. package/types/dynamic-resolver/index.d.ts +1 -0
  198. package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
  199. package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
  200. package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
  201. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
  202. package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
  203. package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
  204. package/types/modal/src/modal.component.d.ts +3 -3
  205. package/types/modal/src/modal.props.d.ts +3 -5
  206. package/types/page-header/src/page-header.props.d.ts +7 -0
  207. package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
  208. package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
  209. package/types/response-toolbar/index.d.ts +9 -3
  210. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
  211. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
  212. package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
  213. package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
  214. package/types/schema-selector/src/composition/types.d.ts +3 -1
  215. package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
  216. package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
  217. package/types/tabs/src/tabs.props.d.ts +8 -0
  218. package/components/button-edit/style.css +0 -1
  219. package/components/external-container/style.css +0 -1
  220. package/components/field-selector/style.css +0 -1
  221. package/components/lookup/style.css +0 -1
  222. package/components/mapping-editor/style.css +0 -1
  223. package/components/message-box/style.css +0 -1
  224. package/components/modal/style.css +0 -1
  225. package/components/schema-selector/style.css +0 -1
  226. package/components/tabs/style.css +0 -1
  227. package/components/time-picker/style.css +0 -1
  228. package/style.css +0 -1
  229. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
  230. /package/components/border-editor/{style.css → index.css} +0 -0
  231. /package/components/checkbox/{style.css → index.css} +0 -0
  232. /package/components/date-picker/{style.css → index.css} +0 -0
  233. /package/components/designer-canvas/{style.css → index.css} +0 -0
  234. /package/components/designer-outline/{style.css → index.css} +0 -0
  235. /package/components/designer-toolbox/{style.css → index.css} +0 -0
  236. /package/components/discussion-editor/{style.css → index.css} +0 -0
  237. /package/components/discussion-list/{style.css → index.css} +0 -0
  238. /package/components/drawer/{style.css → index.css} +0 -0
  239. /package/components/events-editor/{style.css → index.css} +0 -0
  240. /package/components/flow-canvas/{style.css → index.css} +0 -0
  241. /package/components/list-view/{style.css → index.css} +0 -0
  242. /package/components/order/{style.css → index.css} +0 -0
  243. /package/components/property-editor/{style.css → index.css} +0 -0
  244. /package/components/property-panel/{style.css → index.css} +0 -0
  245. /package/components/radio-button/{style.css → index.css} +0 -0
  246. /package/components/radio-group/{style.css → index.css} +0 -0
  247. /package/components/smoke-detector/{style.css → index.css} +0 -0
  248. /package/components/spacing-editor/{style.css → index.css} +0 -0
  249. /package/components/splitter/{style.css → index.css} +0 -0
  250. /package/components/switch/{style.css → index.css} +0 -0
  251. /package/components/transfer/{style.css → index.css} +0 -0
  252. /package/components/uploader/{style.css → index.css} +0 -0
  253. /package/components/weather/{style.css → index.css} +0 -0
@@ -1,10 +1,10 @@
1
- var qe = Object.defineProperty;
2
- var Ue = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Q = (e, t, n) => Ue(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as q, ref as l, watch as O, computed as R, onMounted as J, createVNode as i, nextTick as ce, toRefs as Xe, onBeforeMount as fe, createTextVNode as G, Fragment as ie, withModifiers as ae, inject as ge, provide as Ye, onUnmounted as be, Teleport as Je, shallowRef as Qe, createApp as Ze, render as se, h as _e, cloneVNode as Ke, mergeProps as we, reactive as Z } from "vue";
1
+ var Ue = Object.defineProperty;
2
+ var Xe = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Q = (e, t, n) => Xe(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as q, ref as l, watch as O, computed as R, onMounted as J, createVNode as i, nextTick as ce, toRefs as Ye, onBeforeMount as fe, createTextVNode as G, Fragment as ue, withModifiers as le, inject as ge, provide as Je, onUnmounted as be, Teleport as Qe, shallowRef as Ze, createApp as _e, render as se, h as Ke, cloneVNode as et, mergeProps as we, reactive as Z } from "vue";
5
5
  import { cloneDeep as U } from "lodash-es";
6
- import et from "@farris/ui-vue/components/list-view";
7
- import tt from "@farris/ui-vue/components/button-edit";
6
+ import tt from "@farris/ui-vue/components/list-view";
7
+ import nt from "@farris/ui-vue/components/button-edit";
8
8
  const Se = {
9
9
  /** 当前控件组别及样式 */
10
10
  defaultState: {
@@ -345,14 +345,14 @@ const Se = {
345
345
  group: 4
346
346
  }
347
347
  ]
348
- }, nt = {
348
+ }, at = {
349
349
  /** 接受传入的原始数据的defaultState */
350
350
  initialState: { type: Object, default: Se },
351
351
  /** 页面高度 */
352
352
  height: { type: Number, default: 700 },
353
353
  /** 页面宽度 */
354
354
  width: { type: Number, default: 750 }
355
- }, at = {
355
+ }, lt = {
356
356
  /** 记录默认模式及分组状态 */
357
357
  defaultStates: { type: Object, default: { mode: "" } },
358
358
  /** 当前开关模式 */
@@ -364,7 +364,7 @@ const Se = {
364
364
  /** 用户设置的屏幕分辨率缩写变化-例:中等屏幕 */
365
365
  onScreenNameChanged: { type: Function, default: () => {
366
366
  } }
367
- }, lt = "https://json-schema.org/draft/2020-12/schema", ot = "https://farris-design.gitee.io/capsule.schema.json", it = "capsule", ut = "A Farris Component", st = "object", rt = {
367
+ }, ot = "https://json-schema.org/draft/2020-12/schema", it = "https://farris-design.gitee.io/capsule.schema.json", ut = "capsule", st = "A Farris Component", rt = "object", ct = {
368
368
  id: {
369
369
  description: "The unique identifier for a capsule",
370
370
  type: "string"
@@ -426,17 +426,17 @@ const Se = {
426
426
  type: "boolean",
427
427
  default: !0
428
428
  }
429
- }, ct = [
429
+ }, dt = [
430
430
  "id",
431
431
  "type"
432
- ], dt = {
433
- $schema: lt,
434
- $id: ot,
435
- title: it,
436
- description: ut,
437
- type: st,
438
- properties: rt,
439
- required: ct
432
+ ], ft = {
433
+ $schema: ot,
434
+ $id: it,
435
+ title: ut,
436
+ description: st,
437
+ type: rt,
438
+ properties: ct,
439
+ required: dt
440
440
  }, Ce = {}, Me = {};
441
441
  function pe(e) {
442
442
  const { properties: t, title: n } = e, a = Object.keys(t).reduce((o, u) => (o[u] = t[u].type === "object" && t[u].properties ? pe(t[u]) : U(t[u].default), o), {});
@@ -451,11 +451,11 @@ function de(e, t = {}) {
451
451
  }
452
452
  return null;
453
453
  }
454
- function ft(e, t) {
454
+ function pt(e, t) {
455
455
  const n = pe(t);
456
456
  return Object.keys(e).reduce((a, o) => (a[o] = e[o], a), n), n;
457
457
  }
458
- function pt(e, t) {
458
+ function vt(e, t) {
459
459
  return Object.keys(e).filter((a) => e[a] != null).reduce((a, o) => {
460
460
  if (t.has(o)) {
461
461
  const u = t.get(o);
@@ -470,11 +470,11 @@ function pt(e, t) {
470
470
  return a;
471
471
  }, {});
472
472
  }
473
- function vt(e, t, n = /* @__PURE__ */ new Map()) {
474
- const a = ft(e, t);
475
- return pt(a, n);
473
+ function mt(e, t, n = /* @__PURE__ */ new Map()) {
474
+ const a = pt(e, t);
475
+ return vt(a, n);
476
476
  }
477
- function mt(e = {}) {
477
+ function ht(e = {}) {
478
478
  function t(r, p, s, c) {
479
479
  if (typeof s == "number")
480
480
  return c[r].length === s;
@@ -528,24 +528,24 @@ function mt(e = {}) {
528
528
  }
529
529
  return { parseValueSchema: v };
530
530
  }
531
- const ht = {}, yt = {};
532
- mt();
531
+ const yt = {}, gt = {};
532
+ ht();
533
533
  function K(e, t, n = /* @__PURE__ */ new Map(), a = (d, f, v) => f, o = {}, u = (d) => d) {
534
- return Ce[t.title] = t, Me[t.title] = a, ht[t.title] = o, yt[t.title] = u, (d = {}) => {
535
- const f = vt(d, t, n), v = Object.keys(e).reduce((r, p) => (r[p] = e[p].default, r), {});
534
+ return Ce[t.title] = t, Me[t.title] = a, yt[t.title] = o, gt[t.title] = u, (d = {}) => {
535
+ const f = mt(d, t, n), v = Object.keys(e).reduce((r, p) => (r[p] = e[p].default, r), {});
536
536
  return Object.assign(v, f);
537
537
  };
538
538
  }
539
539
  function ee(e, t) {
540
540
  return { customClass: t.class, customStyle: t.style };
541
541
  }
542
- const gt = /* @__PURE__ */ new Map([
542
+ const bt = /* @__PURE__ */ new Map([
543
543
  ["appearance", ee]
544
544
  ]);
545
- function bt(e, t, n) {
545
+ function wt(e, t, n) {
546
546
  return t;
547
547
  }
548
- const wt = "capsule", St = "A Farris Component", Ct = "object", Mt = {
548
+ const St = "capsule", Ct = "A Farris Component", Mt = "object", It = {
549
549
  basic: {
550
550
  description: "Basic Infomation",
551
551
  title: "基本信息",
@@ -567,11 +567,11 @@ const wt = "capsule", St = "A Farris Component", Ct = "object", Mt = {
567
567
  }
568
568
  }
569
569
  }
570
- }, It = {
571
- title: wt,
572
- description: St,
573
- type: Ct,
574
- categories: Mt
570
+ }, xt = {
571
+ title: St,
572
+ description: Ct,
573
+ type: Mt,
574
+ categories: It
575
575
  }, Ie = {
576
576
  items: {
577
577
  Type: Array,
@@ -585,7 +585,7 @@ const wt = "capsule", St = "A Farris Component", Ct = "object", Mt = {
585
585
  */
586
586
  modelValue: { type: String, default: "" },
587
587
  type: { type: String, default: "primary" }
588
- }, xt = {
588
+ }, Et = {
589
589
  name: { type: String, default: "" },
590
590
  value: { type: String, default: "" },
591
591
  isActive: { type: Boolean, default: !1 },
@@ -594,10 +594,10 @@ const wt = "capsule", St = "A Farris Component", Ct = "object", Mt = {
594
594
  show: { type: Boolean, default: !0 },
595
595
  disabled: { type: Boolean, default: !1 }
596
596
  };
597
- K(Ie, dt, gt, bt, It);
598
- const Et = /* @__PURE__ */ q({
597
+ K(Ie, ft, bt, wt, xt);
598
+ const Dt = /* @__PURE__ */ q({
599
599
  name: "FCapsuleItem",
600
- props: xt,
600
+ props: Et,
601
601
  emits: ["mounted", "active"],
602
602
  setup(e, t) {
603
603
  const n = l(), a = l(e.isActive);
@@ -626,7 +626,7 @@ const Et = /* @__PURE__ */ q({
626
626
  class: e.icon
627
627
  }, null), e.name]);
628
628
  }
629
- }), Dt = /* @__PURE__ */ q({
629
+ }), Tt = /* @__PURE__ */ q({
630
630
  name: "FCapsule",
631
631
  props: Ie,
632
632
  emits: ["change", "update:modelValue"],
@@ -648,26 +648,26 @@ const Et = /* @__PURE__ */ q({
648
648
  function S(g) {
649
649
  var m;
650
650
  if (w.has(g.value)) {
651
- const E = (m = w.get(g.value)) == null ? void 0 : m.value;
652
- if (E) {
653
- const A = E.getBoundingClientRect(), H = a.value.getBoundingClientRect();
651
+ const T = (m = w.get(g.value)) == null ? void 0 : m.value;
652
+ if (T) {
653
+ const A = T.getBoundingClientRect(), H = a.value.getBoundingClientRect();
654
654
  s.value = A.left - H.left + o + a.value.scrollLeft, c.value = A.width - 2 * o;
655
655
  }
656
656
  }
657
657
  }
658
658
  function k(g, m) {
659
- const E = g.value;
660
- u.value = E, t.emit("update:modelValue", E), S(g), m && t.emit("change", E);
659
+ const T = g.value;
660
+ u.value = T, t.emit("update:modelValue", T), S(g), m && t.emit("change", T);
661
661
  }
662
662
  function L(g) {
663
- const m = n.value.findIndex((E) => E.value === g);
663
+ const m = n.value.findIndex((T) => T.value === g);
664
664
  m > -1 && k(n.value[m], !1);
665
665
  }
666
666
  O(() => e.modelValue, (g) => {
667
667
  u.value = g, L(u.value);
668
668
  }), O(() => e.items, async (g) => {
669
- const m = g.filter((E) => E.show);
670
- y(m), n.value = m, await ce(), L(u.value), h.value = Array.from(w.values()).reduce((E, A) => (E += A.value.clientWidth, E), 0);
669
+ const m = g.filter((T) => T.show);
670
+ y(m), n.value = m, await ce(), L(u.value), h.value = Array.from(w.values()).reduce((T, A) => (T += A.value.clientWidth, T), 0);
671
671
  }), J(async () => {
672
672
  L(u.value), await ce(), d.value = "0.1s ease-out all", h.value = Array.from(w.values()).reduce((g, m) => (g += m.value.clientWidth, g), 0);
673
673
  });
@@ -682,8 +682,8 @@ const Et = /* @__PURE__ */ q({
682
682
  g.find((A) => A.value === m) || w.delete(m);
683
683
  });
684
684
  }
685
- function T(g, m) {
686
- return i(Et, {
685
+ function E(g, m) {
686
+ return i(Dt, {
687
687
  name: g.name,
688
688
  value: g.value,
689
689
  isActive: g.value === u.value,
@@ -700,7 +700,7 @@ const Et = /* @__PURE__ */ q({
700
700
  style: r.value
701
701
  }, [i("span", {
702
702
  class: "f-capsule-pane"
703
- }, [n.value.map((g, m) => T(g, m))]), i("small", {
703
+ }, [n.value.map((g, m) => E(g, m))]), i("small", {
704
704
  class: p.value,
705
705
  style: b.value
706
706
  }, null), i("div", {
@@ -708,9 +708,9 @@ const Et = /* @__PURE__ */ q({
708
708
  style: B.value
709
709
  }, null)]);
710
710
  }
711
- }), Tt = /* @__PURE__ */ new Map([
711
+ }), Bt = /* @__PURE__ */ new Map([
712
712
  ["appearance", ee]
713
- ]), Bt = "https://json-schema.org/draft/2020-12/schema", Lt = "https://farris-design.gitee.io/switch.schema.json", Rt = "switch", Ft = "A Farris Component", kt = "object", $t = {
713
+ ]), Lt = "https://json-schema.org/draft/2020-12/schema", Rt = "https://farris-design.gitee.io/switch.schema.json", Ft = "switch", kt = "A Farris Component", $t = "object", Wt = {
714
714
  id: {
715
715
  description: "The unique identifier for a switch",
716
716
  type: "string"
@@ -782,19 +782,19 @@ const Et = /* @__PURE__ */ q({
782
782
  type: "enum",
783
783
  default: "medium"
784
784
  }
785
- }, Wt = [
785
+ }, At = [
786
786
  "id",
787
787
  "type"
788
- ], At = {
789
- $schema: Bt,
790
- $id: Lt,
791
- title: Rt,
792
- description: Ft,
793
- type: kt,
794
- properties: $t,
795
- required: Wt
788
+ ], Ot = {
789
+ $schema: Lt,
790
+ $id: Rt,
791
+ title: Ft,
792
+ description: kt,
793
+ type: $t,
794
+ properties: Wt,
795
+ required: At
796
796
  };
797
- function Ot(e, t, n) {
797
+ function jt(e, t, n) {
798
798
  return t;
799
799
  }
800
800
  const xe = {
@@ -814,8 +814,8 @@ const xe = {
814
814
  onModelValueChanged: { type: Function, default: () => {
815
815
  } }
816
816
  };
817
- K(xe, At, Tt, Ot);
818
- const jt = /* @__PURE__ */ q({
817
+ K(xe, Ot, Bt, jt);
818
+ const Vt = /* @__PURE__ */ q({
819
819
  name: "FSwitch",
820
820
  props: xe,
821
821
  emits: ["update:modelValue", "modelValueChanged"],
@@ -829,7 +829,7 @@ const jt = /* @__PURE__ */ q({
829
829
  offBackground: f,
830
830
  onColor: v,
831
831
  offColor: r
832
- } = Xe(e), p = l(e.modelValue), s = R(() => ({
832
+ } = Ye(e), p = l(e.modelValue), s = R(() => ({
833
833
  switch: !0,
834
834
  "f-cmp-switch": !0,
835
835
  checked: p.value,
@@ -871,9 +871,9 @@ const jt = /* @__PURE__ */ q({
871
871
  style: h.value
872
872
  }, [t.slots.default && t.slots.default()])]);
873
873
  }
874
- }), Vt = /* @__PURE__ */ q({
874
+ }), zt = /* @__PURE__ */ q({
875
875
  name: "FScreenResolutionSelector",
876
- props: at,
876
+ props: lt,
877
877
  emits: ["screenNameChanged", "currentScreenResolutionChanged", "switchInStandardModeChanged"],
878
878
  setup(e, t) {
879
879
  const n = l([{
@@ -910,7 +910,7 @@ const jt = /* @__PURE__ */ q({
910
910
  a.value.mode === "standard" ? (d.value = !0, v()) : d.value = !1;
911
911
  });
912
912
  function r() {
913
- return i(Dt, {
913
+ return i(Tt, {
914
914
  class: "f-layout-editor-screen-resolution-selector-frame",
915
915
  items: n.value,
916
916
  modelValue: o.value,
@@ -926,7 +926,7 @@ const jt = /* @__PURE__ */ q({
926
926
  class: "f-layout-editor-screen-resolution-selector-form"
927
927
  }, [G("表单布局配置")])]), r(), i("div", {
928
928
  class: "f-layout-editor-screen-resolution-selector-switch"
929
- }, [i(jt, {
929
+ }, [i(Vt, {
930
930
  class: "f-layout-editor-show-switch",
931
931
  modelValue: d.value,
932
932
  "onUpdate:modelValue": (p) => d.value = p,
@@ -937,7 +937,7 @@ const jt = /* @__PURE__ */ q({
937
937
  class: "f-layout-editor-show-switch-label"
938
938
  }, [G("自定义模式")])])]);
939
939
  }
940
- }), zt = {
940
+ }), Nt = {
941
941
  /** 默认屏幕分辨率对应的英文缩写 */
942
942
  currentScreenResolution: { type: String, default: "" },
943
943
  /** 模式开关 */
@@ -946,7 +946,7 @@ const jt = /* @__PURE__ */ q({
946
946
  currentArea: { type: Object, default: [] },
947
947
  /** 接受组件列表区传入的二维数组 */
948
948
  twoDimensionalArray: { type: Array, default: [] }
949
- }, Nt = {
949
+ }, Ht = {
950
950
  /** 单个组件的预览状态 */
951
951
  item: { type: Object, default: {} },
952
952
  /** 默认屏幕分辨率对应的英文缩写 */
@@ -955,7 +955,7 @@ const jt = /* @__PURE__ */ q({
955
955
  switchInStandardMode: { type: Boolean, default: !1 }
956
956
  }, Pt = /* @__PURE__ */ q({
957
957
  name: "FColumnWidthView",
958
- props: Nt,
958
+ props: Ht,
959
959
  emits: [],
960
960
  setup(e, t) {
961
961
  const n = l(e.item), a = l(e.currentScreenResolution), o = R(() => `col-${n.value[`columnIn${a.value}`]}`);
@@ -970,9 +970,9 @@ const jt = /* @__PURE__ */ q({
970
970
  class: "f-layout-editor-column-width-view-label"
971
971
  }, [n.value.label])])]);
972
972
  }
973
- }), Ht = /* @__PURE__ */ q({
973
+ }), Gt = /* @__PURE__ */ q({
974
974
  name: "FPreview",
975
- props: zt,
975
+ props: Nt,
976
976
  emits: ["update:twoDimensionalArray"],
977
977
  setup(e, t) {
978
978
  const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), u = l(e.twoDimensionalArray), d = l([]);
@@ -1035,7 +1035,7 @@ const jt = /* @__PURE__ */ q({
1035
1035
  }, null))]));
1036
1036
  })])])]);
1037
1037
  }
1038
- }), Gt = {
1038
+ }), qt = {
1039
1039
  /** 用户切换屏幕分辨率-缩写-例:MD; */
1040
1040
  currentScreenResolution: { type: String, default: "" },
1041
1041
  /** 检测用户是否切换模式 */
@@ -1053,7 +1053,7 @@ const jt = /* @__PURE__ */ q({
1053
1053
  onOriginalDataChanged: { type: Function, default: () => {
1054
1054
  } }
1055
1055
  };
1056
- function qt(e, t) {
1056
+ function Ut(e, t) {
1057
1057
  const n = l(-1), a = l(!1);
1058
1058
  function o(s) {
1059
1059
  if (s.target.offsetParent) {
@@ -1096,9 +1096,9 @@ function qt(e, t) {
1096
1096
  isDragging: a
1097
1097
  };
1098
1098
  }
1099
- const Ut = /* @__PURE__ */ new Map([
1099
+ const Xt = /* @__PURE__ */ new Map([
1100
1100
  ["appearance", ee]
1101
- ]), Xt = "https://json-schema.org/draft/2020-12/schema", Yt = "https://farris-design.gitee.io/combo-list.schema.json", Jt = "combo-list", Qt = "A Farris Input Component", Zt = "object", _t = {
1101
+ ]), Yt = "https://json-schema.org/draft/2020-12/schema", Jt = "https://farris-design.gitee.io/combo-list.schema.json", Qt = "combo-list", Zt = "A Farris Input Component", _t = "object", Kt = {
1102
1102
  id: {
1103
1103
  description: "The unique identifier for a combo list",
1104
1104
  type: "string"
@@ -1153,7 +1153,7 @@ const Ut = /* @__PURE__ */ new Map([
1153
1153
  valueField: {
1154
1154
  description: "",
1155
1155
  type: "string",
1156
- default: "id"
1156
+ default: "value"
1157
1157
  },
1158
1158
  titleField: {
1159
1159
  description: "",
@@ -1209,19 +1209,19 @@ const Ut = /* @__PURE__ */ new Map([
1209
1209
  type: "sting",
1210
1210
  default: ""
1211
1211
  }
1212
- }, Kt = [
1212
+ }, en = [
1213
1213
  "id",
1214
1214
  "type"
1215
- ], en = {
1216
- $schema: Xt,
1217
- $id: Yt,
1218
- title: Jt,
1219
- description: Qt,
1220
- type: Zt,
1221
- properties: _t,
1222
- required: Kt
1215
+ ], tn = {
1216
+ $schema: Yt,
1217
+ $id: Jt,
1218
+ title: Qt,
1219
+ description: Zt,
1220
+ type: _t,
1221
+ properties: Kt,
1222
+ required: en
1223
1223
  };
1224
- function tn(e, t, n) {
1224
+ function nn(e, t, n) {
1225
1225
  return t;
1226
1226
  }
1227
1227
  const Ee = {
@@ -1385,8 +1385,8 @@ const Ee = {
1385
1385
  */
1386
1386
  beforeOpen: { type: Function, default: null }
1387
1387
  };
1388
- K(Ee, en, Ut, tn);
1389
- const nn = {
1388
+ K(Ee, tn, Xt, nn);
1389
+ const an = {
1390
1390
  dataSource: { type: Array, default: [] },
1391
1391
  enableSearch: { type: Boolean, default: !1 },
1392
1392
  idField: { type: String, default: "id" },
@@ -1401,9 +1401,9 @@ const nn = {
1401
1401
  /** 值变化事件 */
1402
1402
  onSelectionChange: { type: Function, default: () => {
1403
1403
  } }
1404
- }, an = /* @__PURE__ */ q({
1404
+ }, ln = /* @__PURE__ */ q({
1405
1405
  name: "FComboListContainer",
1406
- props: nn,
1406
+ props: an,
1407
1407
  emits: ["selectionChange"],
1408
1408
  setup(e, t) {
1409
1409
  const n = l(e.dataSource), a = l([]), o = l(e.separator), u = l(e.width), d = l(e.maxHeight), f = l(String(e.selectedValues).split(o.value));
@@ -1422,7 +1422,7 @@ const nn = {
1422
1422
  }), () => i("div", {
1423
1423
  class: "f-combo-list-container pl-3",
1424
1424
  style: r.value
1425
- }, [i(et, {
1425
+ }, [i(tt, {
1426
1426
  size: "small",
1427
1427
  itemClass: "f-combo-list-item",
1428
1428
  header: v.value,
@@ -1438,7 +1438,7 @@ const nn = {
1438
1438
  }, null)]);
1439
1439
  }
1440
1440
  });
1441
- function ln(e) {
1441
+ function on(e) {
1442
1442
  const t = l(""), n = l(e.modelValue), a = l(e.data || []), o = l(e.editable);
1443
1443
  function u(s) {
1444
1444
  const c = String(s).split(e.separator).map((b) => [b, !0]), h = new Map(c);
@@ -1486,7 +1486,7 @@ function ln(e) {
1486
1486
  n.value = s, d(s);
1487
1487
  }), d(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: f, getItemsByValue: u, getSelectedItemsByDisplayText: r };
1488
1488
  }
1489
- const on = /* @__PURE__ */ q({
1489
+ const un = /* @__PURE__ */ q({
1490
1490
  name: "FComboList",
1491
1491
  props: Ee,
1492
1492
  emits: ["clear", "update:modelValue", "change", "input"],
@@ -1497,7 +1497,7 @@ const on = /* @__PURE__ */ q({
1497
1497
  editable: r,
1498
1498
  modelValue: p,
1499
1499
  getSelectedItemsByDisplayText: s
1500
- } = ln(e), c = R(() => e.multiSelect), h = R(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1500
+ } = on(e), c = R(() => e.multiSelect), h = R(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1501
1501
  function b() {
1502
1502
  !c.value && n.value && n.value.hidePopup();
1503
1503
  }
@@ -1522,9 +1522,9 @@ const on = /* @__PURE__ */ q({
1522
1522
  }
1523
1523
  return t.expose({
1524
1524
  getDisplayText: L
1525
- }), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([W, y, T, g, m]) => {
1526
- a.value = W, r.value = y, o.value = T, u.value = g, d.value = m;
1527
- }), () => i(tt, {
1525
+ }), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([W, y, E, g, m]) => {
1526
+ a.value = W, r.value = y, o.value = E, u.value = g, d.value = m;
1527
+ }), () => i(nt, {
1528
1528
  ref: n,
1529
1529
  id: e.id,
1530
1530
  disable: a.value,
@@ -1549,7 +1549,7 @@ const on = /* @__PURE__ */ q({
1549
1549
  onInput: j,
1550
1550
  beforeOpen: e.beforeOpen
1551
1551
  }, {
1552
- default: () => [i(an, {
1552
+ default: () => [i(ln, {
1553
1553
  idField: e.idField,
1554
1554
  valueField: e.valueField,
1555
1555
  textField: e.textField,
@@ -1564,7 +1564,7 @@ const on = /* @__PURE__ */ q({
1564
1564
  }, null)]
1565
1565
  });
1566
1566
  }
1567
- }), un = {
1567
+ }), sn = {
1568
1568
  /** 默认屏幕分辨率对应的英文缩写 */
1569
1569
  currentScreenResolution: { type: String, default: "" },
1570
1570
  /** 传入的单个控件的响应式列宽值 */
@@ -1574,13 +1574,13 @@ const on = /* @__PURE__ */ q({
1574
1574
  /** 列数值变化事件 */
1575
1575
  fieldChanged: { type: Function, default: () => {
1576
1576
  } }
1577
- }, sn = /* @__PURE__ */ new Map([
1577
+ }, rn = /* @__PURE__ */ new Map([
1578
1578
  ["appearance", ee]
1579
1579
  ]);
1580
- function rn(e, t, n) {
1580
+ function cn(e, t, n) {
1581
1581
  return t;
1582
1582
  }
1583
- const cn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-design.gitee.io/radio-button.schema.json", fn = "radio-button", pn = "A Farris Component", vn = "object", mn = {
1583
+ const dn = "https://json-schema.org/draft/2020-12/schema", fn = "https://farris-design.gitee.io/radio-button.schema.json", pn = "radio-button", vn = "A Farris Component", mn = "object", hn = {
1584
1584
  id: {
1585
1585
  description: "The unique identifier for radio-button",
1586
1586
  type: "string"
@@ -1642,18 +1642,18 @@ const cn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
1642
1642
  type: "boolean",
1643
1643
  default: !0
1644
1644
  }
1645
- }, hn = [
1645
+ }, yn = [
1646
1646
  "id",
1647
1647
  "type"
1648
- ], yn = {
1649
- $schema: cn,
1650
- $id: dn,
1651
- title: fn,
1652
- description: pn,
1653
- type: vn,
1654
- properties: mn,
1655
- required: hn
1656
- }, gn = "radio-button", bn = "A Farris Component", wn = "object", Sn = {
1648
+ ], gn = {
1649
+ $schema: dn,
1650
+ $id: fn,
1651
+ title: pn,
1652
+ description: vn,
1653
+ type: mn,
1654
+ properties: hn,
1655
+ required: yn
1656
+ }, bn = "radio-button", wn = "A Farris Component", Sn = "object", Cn = {
1657
1657
  basic: {
1658
1658
  description: "Basic Infomation",
1659
1659
  title: "基本信息",
@@ -1675,11 +1675,11 @@ const cn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
1675
1675
  }
1676
1676
  }
1677
1677
  }
1678
- }, Cn = {
1679
- title: gn,
1680
- description: bn,
1681
- type: wn,
1682
- categories: Sn
1678
+ }, Mn = {
1679
+ title: bn,
1680
+ description: wn,
1681
+ type: Sn,
1682
+ categories: Cn
1683
1683
  }, De = {
1684
1684
  /**
1685
1685
  * 单选组枚举数组
@@ -1695,8 +1695,8 @@ const cn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
1695
1695
  onSelectedValueChanged: { type: Function, default: () => {
1696
1696
  } }
1697
1697
  };
1698
- K(De, yn, sn, rn, Cn);
1699
- const Mn = /* @__PURE__ */ q({
1698
+ K(De, gn, rn, cn, Mn);
1699
+ const In = /* @__PURE__ */ q({
1700
1700
  name: "FRadioButton",
1701
1701
  props: De,
1702
1702
  emits: ["selectedValueChanged"],
@@ -1720,20 +1720,20 @@ const Mn = /* @__PURE__ */ q({
1720
1720
  class: "f-radio-button"
1721
1721
  }, [i("div", {
1722
1722
  class: ["farris-input-wrap"]
1723
- }, [n.value.map((u, d) => i(ie, null, [i("label", {
1723
+ }, [n.value.map((u, d) => i(ue, null, [i("label", {
1724
1724
  class: u.active ? "btn btn-secondary active" : "btn btn-secondary",
1725
1725
  onClick: (f) => a(f, u)
1726
1726
  }, [i("span", {
1727
1727
  class: "f-radio-button-text"
1728
1728
  }, [o(u)])])]))])]);
1729
1729
  }
1730
- }), In = /* @__PURE__ */ new Map([
1730
+ }), xn = /* @__PURE__ */ new Map([
1731
1731
  ["appearance", ee]
1732
1732
  ]);
1733
- function xn(e, t, n) {
1733
+ function En(e, t, n) {
1734
1734
  return t;
1735
1735
  }
1736
- const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-design.gitee.io/rate.schema.json", Tn = "rate", Bn = "A Farris Component", Ln = "object", Rn = {
1736
+ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-design.gitee.io/rate.schema.json", Bn = "rate", Ln = "A Farris Component", Rn = "object", Fn = {
1737
1737
  id: {
1738
1738
  description: "The unique identifier for rate",
1739
1739
  type: "string"
@@ -1795,18 +1795,18 @@ const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-
1795
1795
  type: "boolean",
1796
1796
  default: !0
1797
1797
  }
1798
- }, Fn = [
1798
+ }, kn = [
1799
1799
  "id",
1800
1800
  "type"
1801
- ], kn = {
1802
- $schema: En,
1803
- $id: Dn,
1804
- title: Tn,
1805
- description: Bn,
1806
- type: Ln,
1807
- properties: Rn,
1808
- required: Fn
1809
- }, $n = "rate", Wn = "A Farris Component", An = "object", On = {
1801
+ ], $n = {
1802
+ $schema: Dn,
1803
+ $id: Tn,
1804
+ title: Bn,
1805
+ description: Ln,
1806
+ type: Rn,
1807
+ properties: Fn,
1808
+ required: kn
1809
+ }, Wn = "rate", An = "A Farris Component", On = "object", jn = {
1810
1810
  basic: {
1811
1811
  description: "Basic Infomation",
1812
1812
  title: "基本信息",
@@ -1828,12 +1828,12 @@ const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-
1828
1828
  }
1829
1829
  }
1830
1830
  }
1831
- }, jn = {
1832
- title: $n,
1833
- description: Wn,
1834
- type: An,
1835
- categories: On
1836
- }, Vn = ["很不满意", "不满意", "一般", "满意", "非常满意"], Te = {
1831
+ }, Vn = {
1832
+ title: Wn,
1833
+ description: An,
1834
+ type: On,
1835
+ categories: jn
1836
+ }, zn = ["很不满意", "不满意", "一般", "满意", "非常满意"], Te = {
1837
1837
  /** 星星大小 */
1838
1838
  size: { type: String, default: "large" },
1839
1839
  /** 启用半颗星模式 */
@@ -1855,7 +1855,7 @@ const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-
1855
1855
  /** 禁用单个星星的文字提示 */
1856
1856
  toolTipDisabled: { type: Boolean, default: !0 },
1857
1857
  /** 默认的满意度文案 */
1858
- toolTipContents: { type: Array, default: Vn },
1858
+ toolTipContents: { type: Array, default: zn },
1859
1859
  /** 启用评分 */
1860
1860
  enableScore: { type: Boolean, default: !0 },
1861
1861
  /** 启用满意度 */
@@ -1866,8 +1866,8 @@ const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-
1866
1866
  value: { type: Number, default: 0 },
1867
1867
  modelValue: { type: Number, default: 0 }
1868
1868
  };
1869
- K(Te, kn, In, xn, jn);
1870
- const zn = /* @__PURE__ */ q({
1869
+ K(Te, $n, xn, En, Vn);
1870
+ const Nn = /* @__PURE__ */ q({
1871
1871
  name: "FRate",
1872
1872
  props: Te,
1873
1873
  emits: ["selectedValue", "update:modelValue"],
@@ -1875,19 +1875,19 @@ const zn = /* @__PURE__ */ q({
1875
1875
  const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), u = l(e.disabled), d = l(e.pointSystem), f = l(e.lightColor), v = l(e.darkColor), r = l(e.iconClass), p = l(e.numOfStar), s = l(e.toolTipDisabled), c = l(e.toolTipContents), h = l(e.enableScore), b = l(e.enableSatisfaction);
1876
1876
  let B;
1877
1877
  const w = l(0), S = l(0), k = l(0), L = l(e.modelValue);
1878
- let j = 1, W, y, T;
1878
+ let j = 1, W, y, E;
1879
1879
  const g = 4;
1880
1880
  J(() => {
1881
1881
  });
1882
1882
  function m() {
1883
1883
  const x = p.value;
1884
- T = [];
1884
+ E = [];
1885
1885
  for (let $ = 1; $ <= x; $++)
1886
- T.push({
1886
+ E.push({
1887
1887
  id: $
1888
1888
  });
1889
1889
  }
1890
- function E() {
1890
+ function T() {
1891
1891
  let x;
1892
1892
  a.value ? x = Math.ceil(L.value / j) : x = L.value, S.value = (B * L.value + Math.floor(L.value) * g) / j, W = c.value[x - 1];
1893
1893
  }
@@ -1906,7 +1906,7 @@ const zn = /* @__PURE__ */ q({
1906
1906
  B = 24;
1907
1907
  break;
1908
1908
  }
1909
- m(), p.value && (j = d.value / p.value), L.value && E();
1909
+ m(), p.value && (j = d.value / p.value), L.value && T();
1910
1910
  }
1911
1911
  A();
1912
1912
  function H(x) {
@@ -1930,8 +1930,8 @@ const zn = /* @__PURE__ */ q({
1930
1930
  function F(x, $) {
1931
1931
  var N;
1932
1932
  if (H(x.target) && x.target) {
1933
- const ue = parseInt((N = x.target) == null ? void 0 : N.id);
1934
- D(x, ue, $);
1933
+ const te = parseInt((N = x.target) == null ? void 0 : N.id);
1934
+ D(x, te, $);
1935
1935
  }
1936
1936
  }
1937
1937
  const z = R(() => k.value ? k.value + "分" : L.value + "分"), C = R(() => ({
@@ -1941,17 +1941,17 @@ const zn = /* @__PURE__ */ q({
1941
1941
  w.value = 0;
1942
1942
  }
1943
1943
  return O(() => e.modelValue, (x) => {
1944
- L.value = x, E();
1944
+ L.value = x, T();
1945
1945
  }), () => i("div", {
1946
1946
  class: "farris-star-rating",
1947
- onMouseover: ae((x) => F(x, !1), ["prevent"]),
1948
- onMousemove: ae((x) => F(x, !1), ["prevent"]),
1949
- onMouseleave: ae((x) => I(), ["prevent"]),
1950
- onClick: ae((x) => F(x, !0), ["prevent"])
1947
+ onMouseover: le((x) => F(x, !1), ["prevent"]),
1948
+ onMousemove: le((x) => F(x, !1), ["prevent"]),
1949
+ onMouseleave: le((x) => I(), ["prevent"]),
1950
+ onClick: le((x) => F(x, !0), ["prevent"])
1951
1951
  }, [i("div", {
1952
1952
  class: "star-light-area",
1953
1953
  style: C.value
1954
- }, [T.map((x) => i("span", {
1954
+ }, [E.map((x) => i("span", {
1955
1955
  class: ["f-icon default-light-color ", r.value, {
1956
1956
  "f-star-sm": n.value === "small"
1957
1957
  }, {
@@ -1975,7 +1975,7 @@ const zn = /* @__PURE__ */ q({
1975
1975
  }, {
1976
1976
  large: n.value === "large"
1977
1977
  }]
1978
- }, [T.map((x) => i("span", {
1978
+ }, [E.map((x) => i("span", {
1979
1979
  class: ["f-icon default-dark-color", r.value, {
1980
1980
  "f-star-sm": n.value === "small"
1981
1981
  }, {
@@ -2001,9 +2001,9 @@ const zn = /* @__PURE__ */ q({
2001
2001
  }]
2002
2002
  }, [h.value && i("span", null, [G(" "), z.value, G(" ")]), b.value && (y || W) && i("span", null, [G(" "), W || y])])]);
2003
2003
  }
2004
- }), Nn = /* @__PURE__ */ q({
2004
+ }), Hn = /* @__PURE__ */ q({
2005
2005
  name: "FColumnWidthEditor",
2006
- props: un,
2006
+ props: sn,
2007
2007
  emits: ["fieldChanged"],
2008
2008
  setup(e, t) {
2009
2009
  const n = {
@@ -2022,19 +2022,19 @@ const zn = /* @__PURE__ */ q({
2022
2022
  }
2023
2023
  function S(m) {
2024
2024
  if (u.value === !0) {
2025
- const E = Number(m == null ? void 0 : m.text);
2026
- v.value = E;
2025
+ const T = Number(m == null ? void 0 : m.text);
2026
+ v.value = T;
2027
2027
  const A = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2028
- o.value[`columnIn${a.value}`] = E * A, o.value[`displayWidthIn${a.value}`] = Number(E), t.emit("fieldChanged", o.value);
2028
+ o.value[`columnIn${a.value}`] = T * A, o.value[`displayWidthIn${a.value}`] = Number(T), t.emit("fieldChanged", o.value);
2029
2029
  }
2030
2030
  }
2031
2031
  function k(m) {
2032
2032
  p.value = m;
2033
- const E = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2034
- o.value[`columnIn${a.value}`] = p.value, o.value[`displayWidthIn${a.value}`] = p.value / E, t.emit("fieldChanged", o.value);
2033
+ const T = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2034
+ o.value[`columnIn${a.value}`] = p.value, o.value[`displayWidthIn${a.value}`] = p.value / T, t.emit("fieldChanged", o.value);
2035
2035
  }
2036
2036
  function L() {
2037
- return i(zn, {
2037
+ return i(Nn, {
2038
2038
  enableHalf: !0,
2039
2039
  size: "extraLarge",
2040
2040
  pointSystem: 12,
@@ -2051,18 +2051,18 @@ const zn = /* @__PURE__ */ q({
2051
2051
  function j() {
2052
2052
  const m = [];
2053
2053
  d.value = n == null ? void 0 : n[a.value];
2054
- const E = o.value[`displayWidthIn${a.value}`];
2054
+ const T = o.value[`displayWidthIn${a.value}`];
2055
2055
  return d.value.forEach((A) => {
2056
2056
  const H = {
2057
2057
  text: A,
2058
- active: E.toString() === A
2058
+ active: T.toString() === A
2059
2059
  };
2060
2060
  m.push(H);
2061
2061
  }), m;
2062
2062
  }
2063
2063
  function W() {
2064
2064
  const m = j();
2065
- return i(Mn, {
2065
+ return i(In, {
2066
2066
  enumData: m,
2067
2067
  suffixValue: "列",
2068
2068
  onSelectedValueChanged: S
@@ -2083,7 +2083,7 @@ const zn = /* @__PURE__ */ q({
2083
2083
  class: "f-layout-editor-column-width-editor-row-right"
2084
2084
  }, null)]);
2085
2085
  }
2086
- function T() {
2086
+ function E() {
2087
2087
  return u.value ? i("div", {
2088
2088
  class: "f-column-width-editor-switch-standard"
2089
2089
  }, [i("div", {
@@ -2109,10 +2109,10 @@ const zn = /* @__PURE__ */ q({
2109
2109
  class: "f-layout-editor-column-width-editor-component"
2110
2110
  }, [i("div", {
2111
2111
  class: "f-layout-editor-column-width-editor-label"
2112
- }, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]), T()]);
2112
+ }, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]), E()]);
2113
2113
  }
2114
- return O(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([m, E, A], [H, X, D]) => {
2115
- A !== D && (a.value = A, d.value = n[a.value], w()), E !== X && (u.value = E), u.value === !1 && w(), m !== H && (o.value = m);
2114
+ return O(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([m, T, A], [H, X, D]) => {
2115
+ A !== D && (a.value = A, d.value = n[a.value], w()), T !== X && (u.value = T), u.value === !1 && w(), m !== H && (o.value = m);
2116
2116
  }), J(() => {
2117
2117
  w();
2118
2118
  }), () => i("div", {
@@ -2121,7 +2121,7 @@ const zn = /* @__PURE__ */ q({
2121
2121
  }
2122
2122
  }), Pn = /* @__PURE__ */ q({
2123
2123
  name: "FFieldList",
2124
- props: Gt,
2124
+ props: qt,
2125
2125
  emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
2126
2126
  setup(e, t) {
2127
2127
  const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), u = l(e.originalDataCopy), d = l(e.defaultStates), f = l(""), v = l([]), r = l(e.currentArea), p = l(0), s = l(), c = l(0), h = l("1"), b = l([]);
@@ -2184,14 +2184,14 @@ const zn = /* @__PURE__ */ q({
2184
2184
  F = F.concat(z);
2185
2185
  o.value = U(F), c.value = 0;
2186
2186
  }
2187
- function T() {
2187
+ function E() {
2188
2188
  return i("div", {
2189
2189
  class: "f-layout-editor-field-list-top"
2190
2190
  }, [i("div", {
2191
2191
  class: "f-layout-editor-field-list-header"
2192
2192
  }, [G("组件列表")]), i("div", {
2193
2193
  class: "f-layout-editor-choose-group"
2194
- }, [i(on, {
2194
+ }, [i(un, {
2195
2195
  modelValue: h.value,
2196
2196
  "onUpdate:modelValue": (D) => h.value = D,
2197
2197
  placeholder: "当前可编辑组",
@@ -2206,7 +2206,7 @@ const zn = /* @__PURE__ */ q({
2206
2206
  function g() {
2207
2207
  return i("div", {
2208
2208
  class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
2209
- }, [b.value.map((D) => i(Nn, {
2209
+ }, [b.value.map((D) => i(Hn, {
2210
2210
  key: D.label,
2211
2211
  currentScreenResolution: n.value,
2212
2212
  field: D,
@@ -2219,9 +2219,9 @@ const zn = /* @__PURE__ */ q({
2219
2219
  function m(D) {
2220
2220
  b.value.forEach((F) => {
2221
2221
  F.label == D.label && Object.assign(F, D);
2222
- }), L(), A(), E();
2222
+ }), L(), A(), T();
2223
2223
  }
2224
- function E() {
2224
+ function T() {
2225
2225
  b.value = [], o.value.forEach((D) => {
2226
2226
  D.group === Number(r.value[0].id) && b.value.push(D);
2227
2227
  });
@@ -2235,15 +2235,15 @@ const zn = /* @__PURE__ */ q({
2235
2235
  id: D[F].id,
2236
2236
  label: D[F].label
2237
2237
  }];
2238
- t.emit("update:currentArea", r.value), E(), L();
2238
+ t.emit("update:currentArea", r.value), T(), L();
2239
2239
  }
2240
- const X = qt(b, () => {
2241
- L(), A(), E();
2240
+ const X = Ut(b, () => {
2241
+ L(), A(), T();
2242
2242
  });
2243
- return Ye("ResponseLayoutEditorDraggableComposition", X), O(() => e.currentArea, (D, F) => {
2244
- D !== F && (r.value = e.currentArea, E());
2243
+ return Je("ResponseLayoutEditorDraggableComposition", X), O(() => e.currentArea, (D, F) => {
2244
+ D !== F && (r.value = e.currentArea, T());
2245
2245
  }), O(r, (D, F) => {
2246
- D !== F && E();
2246
+ D !== F && T();
2247
2247
  }), O(() => e.currentGroup, (D, F) => {
2248
2248
  D !== F && (f.value = e.currentGroup);
2249
2249
  }), O(() => e.currentScreenResolution, (D, F) => {
@@ -2253,24 +2253,24 @@ const zn = /* @__PURE__ */ q({
2253
2253
  }), O(d, (D, F) => {
2254
2254
  D !== F && A();
2255
2255
  }), fe(() => {
2256
- B(), j(), E();
2256
+ B(), j(), T();
2257
2257
  }), () => i("div", {
2258
2258
  class: "f-layout-editor-field-list f-utils-fill-flex-column"
2259
2259
  }, [a.value ? (
2260
2260
  /* 标准模式 */
2261
2261
  i("div", {
2262
2262
  class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
2263
- }, [T(), g()])
2263
+ }, [E(), g()])
2264
2264
  ) : (
2265
2265
  /* 自定义模式 */
2266
2266
  i("div", {
2267
2267
  class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
2268
- }, [T(), g()])
2268
+ }, [E(), g()])
2269
2269
  )]);
2270
2270
  }
2271
- }), oe = /* @__PURE__ */ q({
2271
+ }), ie = /* @__PURE__ */ q({
2272
2272
  name: "FResponseLayoutEditor",
2273
- props: nt,
2273
+ props: at,
2274
2274
  emits: ["close", "submit"],
2275
2275
  setup(e, t) {
2276
2276
  const n = l(e.initialState), a = l(), o = l(), u = l(""), d = l(""), f = l(!1), v = l([{
@@ -2279,8 +2279,8 @@ const zn = /* @__PURE__ */ q({
2279
2279
  }]), r = l([]), p = l(), s = l(e.width), c = l(e.height);
2280
2280
  O(() => e.initialState, (m) => {
2281
2281
  n.value = m;
2282
- }), O([() => e.currentArea, () => e.switchInStandardMode], ([m, E], [A, H]) => {
2283
- m !== A && (v.value = m), E !== H && (f.value = E);
2282
+ }), O([() => e.currentArea, () => e.switchInStandardMode], ([m, T], [A, H]) => {
2283
+ m !== A && (v.value = m), T !== H && (f.value = T);
2284
2284
  });
2285
2285
  function h(m) {
2286
2286
  u.value = m;
@@ -2325,7 +2325,7 @@ const zn = /* @__PURE__ */ q({
2325
2325
  }, null);
2326
2326
  }
2327
2327
  function y() {
2328
- return i(Ht, {
2328
+ return i(Gt, {
2329
2329
  class: "f-utils-fill-flex-column",
2330
2330
  currentArea: v.value,
2331
2331
  "onUpdate:currentArea": (m) => v.value = m,
@@ -2336,7 +2336,7 @@ const zn = /* @__PURE__ */ q({
2336
2336
  "onUpdate:twoDimensionalArray": (m) => r.value = m
2337
2337
  }, null);
2338
2338
  }
2339
- const T = R(() => f.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), g = R(() => f.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2339
+ const E = R(() => f.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), g = R(() => f.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2340
2340
  return fe(() => {
2341
2341
  a.value = U(n.value.importData), p.value = U(n.value.importData), o.value = n.value.defaultState, u.value = "中等屏幕", d.value = "MD";
2342
2342
  }), (m) => i("div", {
@@ -2344,7 +2344,7 @@ const zn = /* @__PURE__ */ q({
2344
2344
  style: "height:" + c.value + "px;width:" + s.value + "px;"
2345
2345
  }, [i("div", {
2346
2346
  class: "f-layout-editor-top"
2347
- }, [i(Vt, {
2347
+ }, [i(zt, {
2348
2348
  defaultStates: o.value,
2349
2349
  onScreenNameChanged: h,
2350
2350
  onCurrentScreenResolutionChanged: b,
@@ -2354,7 +2354,7 @@ const zn = /* @__PURE__ */ q({
2354
2354
  }, [i("div", {
2355
2355
  class: "f-layout-editor-left f-utils-fill-flex-column"
2356
2356
  }, [i("div", {
2357
- class: T.value
2357
+ class: E.value
2358
2358
  }, [W()])]), i("div", {
2359
2359
  class: "f-layout-editor-right f-utils-fill-flex-column"
2360
2360
  }, [i("div", {
@@ -2375,25 +2375,25 @@ const zn = /* @__PURE__ */ q({
2375
2375
  class: "f-layout-editor-text-sure"
2376
2376
  }, [G("确认")])])])])]);
2377
2377
  }
2378
- }), Hn = /* @__PURE__ */ new Map([
2378
+ }), Gn = /* @__PURE__ */ new Map([
2379
2379
  ["appearance", ee]
2380
2380
  ]);
2381
- function Gn(e, t, n, a) {
2381
+ function qn(e, t, n, a) {
2382
2382
  const o = e.getSchemaByType("section");
2383
2383
  return o.id = `${a}-section`, o.appearance = { class: "f-section-form f-section-in-main" }, o.mainTitle = "标题", o.contents = [t], o;
2384
2384
  }
2385
- function qn(e, t, n, a) {
2385
+ function Un(e, t, n, a) {
2386
2386
  const o = e.getSchemaByType("component");
2387
2387
  return o.id = `${a}-component`, o.componentType = "form-col-1", o.appearance = {
2388
2388
  class: "f-struct-form f-struct-wrapper"
2389
2389
  }, o.contents = [t], o;
2390
2390
  }
2391
- function Un(e, t, n) {
2391
+ function Xn(e, t, n) {
2392
2392
  t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
2393
- const a = Gn(e, t, n, t.id);
2394
- return qn(e, a, n, t.id);
2393
+ const a = qn(e, t, n, t.id);
2394
+ return Un(e, a, n, t.id);
2395
2395
  }
2396
- const Xn = "https://json-schema.org/draft/2020-12/schema", Yn = "https://farris-design.gitee.io/response-layout-editor-setting.schema.json", Jn = "response-layout-editor-setting", Qn = "A Farris Data Collection Component", Zn = "object", _n = {
2396
+ const Yn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-design.gitee.io/response-layout-editor-setting.schema.json", Qn = "response-layout-editor-setting", Zn = "A Farris Data Collection Component", _n = "object", Kn = {
2397
2397
  id: {
2398
2398
  description: "The unique identifier for response layout editor",
2399
2399
  type: "string"
@@ -2421,18 +2421,18 @@ const Xn = "https://json-schema.org/draft/2020-12/schema", Yn = "https://farris-
2421
2421
  type: "array",
2422
2422
  default: []
2423
2423
  }
2424
- }, Kn = [
2424
+ }, ea = [
2425
2425
  "id",
2426
2426
  "type"
2427
- ], ea = {
2428
- $schema: Xn,
2429
- $id: Yn,
2430
- title: Jn,
2431
- description: Qn,
2432
- type: Zn,
2433
- properties: _n,
2434
- required: Kn
2435
- }, ta = "response-form", na = "A Farris Component", aa = "object", la = {
2427
+ ], ta = {
2428
+ $schema: Yn,
2429
+ $id: Jn,
2430
+ title: Qn,
2431
+ description: Zn,
2432
+ type: _n,
2433
+ properties: Kn,
2434
+ required: ea
2435
+ }, na = "response-form", aa = "A Farris Component", la = "object", oa = {
2436
2436
  basic: {
2437
2437
  description: "Basic Infomation",
2438
2438
  title: "基本信息",
@@ -2454,11 +2454,11 @@ const Xn = "https://json-schema.org/draft/2020-12/schema", Yn = "https://farris-
2454
2454
  }
2455
2455
  }
2456
2456
  }
2457
- }, oa = {
2458
- title: ta,
2459
- description: na,
2460
- type: aa,
2461
- categories: la
2457
+ }, ia = {
2458
+ title: na,
2459
+ description: aa,
2460
+ type: la,
2461
+ categories: oa
2462
2462
  }, ve = {
2463
2463
  /** 接受传入的原始数据的defaultState */
2464
2464
  initialState: { type: Object, default: Se },
@@ -2467,7 +2467,7 @@ const Xn = "https://json-schema.org/draft/2020-12/schema", Yn = "https://farris-
2467
2467
  /** 页面宽度 */
2468
2468
  width: { type: Number, default: 750 },
2469
2469
  modelValue: { type: Object }
2470
- }, ye = K(ve, ea, Hn, Un, oa), ia = {
2470
+ }, ye = K(ve, ta, Gn, Xn, ia), ua = {
2471
2471
  /**
2472
2472
  * 自定义类
2473
2473
  */
@@ -2519,7 +2519,7 @@ const Xn = "https://json-schema.org/draft/2020-12/schema", Yn = "https://farris-
2519
2519
  containment: { type: HTMLElement, default: null },
2520
2520
  reiszeable: { type: Boolean, default: !1 },
2521
2521
  draggable: { type: Boolean, default: !1 },
2522
- dragHandle: { type: HTMLElement, default: null },
2522
+ dragHandle: { type: Object, default: null },
2523
2523
  closedCallback: { type: Function, default: null },
2524
2524
  resizeHandle: { type: Function, default: null },
2525
2525
  render: { type: Function, default: null },
@@ -2610,7 +2610,7 @@ class _ {
2610
2610
  return this.width = t.width, this.height = t.height, this;
2611
2611
  }
2612
2612
  }
2613
- function ua(e, t) {
2613
+ function sa(e, t) {
2614
2614
  const n = l(), a = l(), o = l(), u = l(), d = l(), f = l(), v = l(), r = l(), p = l(), s = l(), c = l(), h = l(), b = l(e.draggable), B = l(!1);
2615
2615
  function w() {
2616
2616
  const C = a.value || document.body, I = window.getComputedStyle(C);
@@ -2666,7 +2666,7 @@ function ua(e, t) {
2666
2666
  const I = P.fromEvent(C);
2667
2667
  I && W(I);
2668
2668
  }
2669
- function T() {
2669
+ function E() {
2670
2670
  if (n.value) {
2671
2671
  const {
2672
2672
  width: C,
@@ -2689,7 +2689,7 @@ function ua(e, t) {
2689
2689
  }
2690
2690
  function g(C) {
2691
2691
  if (n.value) {
2692
- const I = T();
2692
+ const I = E();
2693
2693
  c.value = I;
2694
2694
  }
2695
2695
  o.value = void 0, u.value = null, d.value = null, f.value = null, v.value = null, r.value = null, p.value = null, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", g);
@@ -2697,47 +2697,47 @@ function ua(e, t) {
2697
2697
  function m() {
2698
2698
  document.addEventListener("mousemove", y), document.addEventListener("mouseup", g);
2699
2699
  }
2700
- function E(C) {
2700
+ function T(C) {
2701
2701
  C instanceof MouseEvent && C.button === 2 || b.value && (C.stopPropagation(), C.preventDefault(), o.value = P.fromEvent(C), p.value = C.target, S(C), m());
2702
2702
  }
2703
2703
  function A(C) {
2704
- return n.value = C, i(ie, null, [i("div", {
2704
+ return n.value = C, i(ue, null, [i("div", {
2705
2705
  class: "ng-resizable-handle ng-resizable-n",
2706
2706
  type: "n",
2707
- onMousedown: (I) => E(I)
2707
+ onMousedown: (I) => T(I)
2708
2708
  }, null), i("div", {
2709
2709
  class: "ng-resizable-handle ng-resizable-e",
2710
2710
  type: "e",
2711
- onMousedown: (I) => E(I)
2711
+ onMousedown: (I) => T(I)
2712
2712
  }, null), i("div", {
2713
2713
  class: "ng-resizable-handle ng-resizable-s",
2714
2714
  type: "s",
2715
- onMousedown: (I) => E(I)
2715
+ onMousedown: (I) => T(I)
2716
2716
  }, null), i("div", {
2717
2717
  class: "ng-resizable-handle ng-resizable-w",
2718
2718
  type: "w",
2719
- onMousedown: (I) => E(I)
2719
+ onMousedown: (I) => T(I)
2720
2720
  }, null), i("div", {
2721
2721
  class: "ng-resizable-handle ng-resizable-ne",
2722
2722
  type: "ne",
2723
- onMousedown: (I) => E(I)
2723
+ onMousedown: (I) => T(I)
2724
2724
  }, null), i("div", {
2725
2725
  class: "ng-resizable-handle ng-resizable-se ng-resizable-diagonal",
2726
2726
  type: "se",
2727
- onMousedown: (I) => E(I)
2727
+ onMousedown: (I) => T(I)
2728
2728
  }, null), i("div", {
2729
2729
  class: "ng-resizable-handle ng-resizable-sw",
2730
2730
  type: "sw",
2731
- onMousedown: (I) => E(I)
2731
+ onMousedown: (I) => T(I)
2732
2732
  }, null), i("div", {
2733
2733
  class: "ng-resizable-handle ng-resizable-nw",
2734
2734
  type: "nw",
2735
- onMousedown: (I) => E(I)
2735
+ onMousedown: (I) => T(I)
2736
2736
  }, null)]);
2737
2737
  }
2738
2738
  function H(C = !0) {
2739
2739
  const I = a.value || document.body, x = _.getCurrent(I), $ = n.value;
2740
- C && (h.value = T(), h.value.transform = $.style.transform), x && $ && (f.value = x, $.style.height = f.value.height - 14 + "px", $.style.width = f.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", c.value = {
2740
+ C && (h.value = E(), h.value.transform = $.style.transform), x && $ && (f.value = x, $.style.height = f.value.height - 14 + "px", $.style.width = f.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", c.value = {
2741
2741
  size: f.value,
2742
2742
  position: {
2743
2743
  x: 0,
@@ -2795,35 +2795,35 @@ function ua(e, t) {
2795
2795
  unWindowResizeHandle: z
2796
2796
  };
2797
2797
  }
2798
- function sa(e, t) {
2798
+ function ra(e, t) {
2799
2799
  const n = l(), a = l(e.draggable), o = l(e.lockAxis), u = l(), d = l(), f = l(!1), v = l(new P(0, 0)), r = l(new P(0, 0)), p = l(new P(0, 0)), s = l(new P(0, 0));
2800
- function c(y, T) {
2801
- if (T.tagName === "BUTTON")
2800
+ function c(y, E) {
2801
+ if (E.tagName === "BUTTON")
2802
2802
  return !1;
2803
- if (T === y)
2803
+ if (E === y)
2804
2804
  return !0;
2805
- for (const g in T.children)
2806
- if (T.children.hasOwnProperty(g) && c(y, T.children[g]))
2805
+ for (const g in E.children)
2806
+ if (E.children.hasOwnProperty(g) && c(y, E.children[g]))
2807
2807
  return !0;
2808
2808
  return !1;
2809
2809
  }
2810
2810
  function h() {
2811
- var m, E;
2812
- let y = p.value.x + r.value.x, T = p.value.y + r.value.y;
2813
- o.value === "x" ? (y = ((m = v.value) == null ? void 0 : m.x) || 0, p.value.x = 0) : o.value === "y" && (T = ((E = v.value) == null ? void 0 : E.y) || 0, p.value.y = 0);
2814
- const g = `translate3d(${Math.round(y)}px, ${Math.round(T)}px, 0px)`;
2815
- n.value && (n.value.style.transform = g), s.value.x = y, s.value.y = T;
2811
+ var m, T;
2812
+ let y = p.value.x + r.value.x, E = p.value.y + r.value.y;
2813
+ o.value === "x" ? (y = ((m = v.value) == null ? void 0 : m.x) || 0, p.value.x = 0) : o.value === "y" && (E = ((T = v.value) == null ? void 0 : T.y) || 0, p.value.y = 0);
2814
+ const g = `translate3d(${Math.round(y)}px, ${Math.round(E)}px, 0px)`;
2815
+ n.value && (n.value.style.transform = g), s.value.x = y, s.value.y = E;
2816
2816
  }
2817
2817
  function b() {
2818
2818
  if (!d.value || !n.value)
2819
2819
  return null;
2820
- const y = d.value.getBoundingClientRect(), T = n.value.getBoundingClientRect(), g = {
2821
- top: y.top < T.top,
2822
- right: y.right > T.right,
2823
- bottom: y.bottom > T.bottom,
2824
- left: y.left < T.left
2820
+ const y = d.value.getBoundingClientRect(), E = n.value.getBoundingClientRect(), g = {
2821
+ top: y.top < E.top,
2822
+ right: y.right > E.right,
2823
+ bottom: y.bottom > E.bottom,
2824
+ left: y.left < E.left
2825
2825
  };
2826
- return g.top || (p.value.y -= T.top - y.top), g.bottom || (p.value.y -= T.bottom - y.bottom), g.right || (p.value.x -= T.right - y.right), g.left || (p.value.x -= T.left - y.left), h(), g;
2826
+ return g.top || (p.value.y -= E.top - y.top), g.bottom || (p.value.y -= E.bottom - y.bottom), g.right || (p.value.x -= E.right - y.right), g.left || (p.value.x -= E.left - y.left), h(), g;
2827
2827
  }
2828
2828
  function B(y) {
2829
2829
  y && (v.value && y.subtract(v.value), p.value.set(y), h(), b());
@@ -2849,18 +2849,29 @@ function sa(e, t) {
2849
2849
  function j(y) {
2850
2850
  if (y instanceof MouseEvent && y.button === 2)
2851
2851
  return;
2852
- const T = y.target || y.srcElement;
2853
- u.value !== void 0 && T && !c(T, u.value) || a.value !== !1 && (y.stopPropagation(), y.preventDefault(), v.value = P.fromEvent(y, n.value), L(), k());
2854
- }
2855
- function W(y, T, g) {
2856
- y && a.value && T && (u.value = y, n.value = T, d.value = g, y.classList.add("ng-draggable"), y.addEventListener("mousedown", j));
2852
+ const E = y.target || y.srcElement;
2853
+ u.value !== void 0 && E && !c(E, u.value) || a.value !== !1 && (y.stopPropagation(), y.preventDefault(), v.value = P.fromEvent(y, n.value), L(), k());
2854
+ }
2855
+ function W(y, E, g) {
2856
+ if (y && a.value && E) {
2857
+ if (e.dragHandle) {
2858
+ if (e.dragHandle instanceof HTMLElement)
2859
+ u.value = e.dragHandle;
2860
+ else if (typeof e.dragHandle == "string") {
2861
+ const m = E.querySelector(e.dragHandle);
2862
+ m && (u.value = m);
2863
+ }
2864
+ } else
2865
+ u.value = y;
2866
+ n.value = E, d.value = g, u.value.classList.add("ng-draggable"), u.value.addEventListener("mousedown", j);
2867
+ }
2857
2868
  }
2858
2869
  return {
2859
2870
  registerDraggle: W,
2860
2871
  resetTranslate: L
2861
2872
  };
2862
2873
  }
2863
- function ra(e, t) {
2874
+ function ca(e, t) {
2864
2875
  const n = l(e.enableEsc);
2865
2876
  function a(o) {
2866
2877
  o.key === "Escape" && e.enableEsc && t.emit("esc", { event: o, type: "esc" });
@@ -2869,38 +2880,38 @@ function ra(e, t) {
2869
2880
  }
2870
2881
  const Be = /* @__PURE__ */ q({
2871
2882
  name: "FModal",
2872
- props: ia,
2883
+ props: ua,
2873
2884
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc"],
2874
2885
  setup(e, t) {
2875
- const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), u = l(""), d = l(e.class), f = l(e.fitContent), v = l(e.showHeader), r = l(""), p = l(e.showCloseButton), s = l(e.showMaxButton), c = l(!1), h = l(""), b = l(""), B = l(""), w = l(e.showButtons), S = l(e.title), k = l(e.reiszeable), L = l(e.containment || null);
2876
- function j(M, V) {
2886
+ const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), u = l(""), d = l(e.class), f = l(e.fitContent), v = l(e.showHeader), r = l(""), p = l(e.showCloseButton), s = l(e.showMaxButton), c = l(!1), h = l(""), b = l(""), B = l(""), w = l(e.showButtons), S = l(e.title), k = l(e.reiszeable), L = l(e.containment || null), j = l();
2887
+ function W(M, V) {
2877
2888
  o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed", M);
2878
2889
  }
2879
- const W = [{
2890
+ const y = [{
2880
2891
  name: "cancel",
2881
2892
  text: "取消",
2882
2893
  class: "btn btn-light",
2883
2894
  handle: (M) => {
2884
- j(M, !1);
2895
+ W(M, !1);
2885
2896
  }
2886
2897
  }, {
2887
2898
  name: "accept",
2888
2899
  text: "确定",
2889
2900
  class: "btn btn-primary",
2890
2901
  handle: (M) => {
2891
- j(M, !0);
2902
+ W(M, !0);
2892
2903
  }
2893
- }], y = l(e.buttons && e.buttons.length ? e.buttons : W), T = R(() => !!r.value), g = R(() => !!w.value && !!y.value), m = l(), E = l(), A = l(!1), {
2894
- renderResizeBar: H,
2895
- maximize: X,
2896
- restore: D,
2897
- boundingElement: F,
2898
- resizedEventParam: z,
2899
- allowDrag: C,
2900
- unWindowResizeHandle: I
2901
- } = ua(e), {
2902
- registerDraggle: x
2903
- } = sa(e);
2904
+ }], E = l(e.buttons && e.buttons.length ? e.buttons : y), g = R(() => !!r.value), m = R(() => !!w.value && !!E.value), T = l(), A = l(), H = l(!1), {
2905
+ renderResizeBar: X,
2906
+ maximize: D,
2907
+ restore: F,
2908
+ boundingElement: z,
2909
+ resizedEventParam: C,
2910
+ allowDrag: I,
2911
+ unWindowResizeHandle: x
2912
+ } = sa(e), {
2913
+ registerDraggle: $
2914
+ } = ra(e);
2904
2915
  O(() => e.title, (M, V) => {
2905
2916
  M !== V && (S.value = M);
2906
2917
  }), O(() => e.modelValue, (M, V) => {
@@ -2909,83 +2920,82 @@ const Be = /* @__PURE__ */ q({
2909
2920
  M !== V && (v.value = M);
2910
2921
  }), O(() => e.showButtons, (M, V) => {
2911
2922
  M !== V && (w.value = M);
2912
- }), O(() => z.value, (M, V) => {
2913
- const te = M || {}, ne = V || {};
2914
- JSON.stringify(te) !== JSON.stringify(ne) && t.emit("resize", {
2923
+ }), O(() => C.value, (M, V) => {
2924
+ const ne = M || {}, ae = V || {};
2925
+ JSON.stringify(ne) !== JSON.stringify(ae) && t.emit("resize", {
2915
2926
  newSize: M,
2916
2927
  oldSize: V
2917
2928
  });
2918
2929
  });
2919
- function $() {
2930
+ function N() {
2920
2931
  const M = document.querySelectorAll(".farris-modal").length;
2921
- (!M || M - 1 <= 0) && document.body.classList.remove("modal-open");
2932
+ (!M || M - 1 <= 0) && document.body.classList.remove("modal-open"), j.value && j.value.classList.remove("show");
2922
2933
  }
2923
- const N = R(() => (o.value ? document.body.classList.add("modal-open") : $(), o.value)), ue = R(() => {
2934
+ const te = R(() => (o.value ? document.body.classList.add("modal-open") : N(), o.value)), Re = R(() => {
2924
2935
  const M = {
2925
2936
  modal: !0,
2926
2937
  "farris-modal": !0,
2927
- fade: !0,
2928
- show: N.value
2938
+ fade: !0
2929
2939
  };
2930
- return M["f-modal-fitContent"] = !!f.value, M;
2931
- }), Re = R(() => {
2932
- var te;
2940
+ return M["f-modal-fitContent"] = !!f.value, M.show = !!te.value, M;
2941
+ }), Fe = R(() => {
2942
+ var ne;
2933
2943
  const M = {
2934
2944
  "modal-dialog": !0
2935
- }, V = (te = d.value) == null ? void 0 : te.split(" ");
2936
- return V == null || V.reduce((ne, Ge) => (ne[Ge] = !0, ne), M), M;
2937
- }), Fe = R(() => ({
2945
+ }, V = (ne = d.value) == null ? void 0 : ne.split(" ");
2946
+ return V == null || V.reduce((ae, qe) => (ae[qe] = !0, ae), M), M;
2947
+ }), ke = R(() => ({
2938
2948
  position: "absolute",
2939
2949
  top: `${(window.innerHeight - a.value) / 2}px`,
2940
2950
  left: `${(window.innerWidth - n.value) / 2}px`,
2941
2951
  width: `${n.value}px`,
2942
2952
  height: f.value ? "auto" : `${a.value}px`
2943
- })), ke = R(() => ({
2953
+ })), $e = R(() => ({
2944
2954
  "modal-content": !0,
2945
2955
  "modal-content-has-header": v.value
2946
- })), $e = R(() => {
2956
+ })), We = R(() => {
2947
2957
  const M = {
2948
2958
  display: v.value ? "" : "none"
2949
2959
  };
2950
- return M["pointer-events"] = C.value ? "auto" : "none", M;
2951
- }), We = R(() => ({
2960
+ return M["pointer-events"] = I.value ? "auto" : "none", M;
2961
+ }), Ae = R(() => ({
2952
2962
  "f-icon": !0,
2953
2963
  modal_maximize: !0,
2954
- modalrevert: A.value
2955
- })), Ae = R(() => ({
2964
+ modalrevert: H.value
2965
+ })), Oe = R(() => ({
2956
2966
  "modal-body": !0,
2957
2967
  "f-utils-flex-column": h.value === "iframe"
2958
2968
  }));
2959
- function Oe() {
2969
+ function je() {
2960
2970
  return {};
2961
2971
  }
2962
- const je = R(() => {
2972
+ const Ve = R(() => {
2963
2973
  const M = {
2964
2974
  textAlgin: B.value
2965
- }, V = Oe();
2975
+ }, V = je();
2966
2976
  return Object.assign(M, V);
2967
2977
  });
2968
- function Ve(M) {
2969
- if (M.stopPropagation(), A.value) {
2970
- A.value = !1, D();
2978
+ function ze(M) {
2979
+ if (M.stopPropagation(), H.value) {
2980
+ H.value = !1, F();
2971
2981
  return;
2972
2982
  }
2973
- X(), A.value = !0;
2983
+ D(), H.value = !0;
2974
2984
  }
2975
- async function ze(M, V) {
2985
+ async function Ne(M, V) {
2976
2986
  M.handle && await M.handle(V, M) && t.emit("closed", V);
2977
2987
  }
2978
- function Ne(M) {
2979
- M.width && (n.value = M.width), M.height && (a.value = M.height), M.buttons && (y.value = M.buttons), M.title && (S.value = M.title);
2988
+ function He(M) {
2989
+ M.width && (n.value = M.width), M.height && (a.value = M.height), M.buttons && (E.value = M.buttons), M.title && (S.value = M.title);
2980
2990
  }
2981
2991
  J(() => {
2982
- E.value && !L.value && (L.value = E.value.parentElement, F.value = L.value, x(m.value, E.value, F.value)), N.value && document.body.classList.add("modal-open"), ra(e, t);
2992
+ A.value && !L.value && (L.value = A.value.parentElement, z.value = L.value, $(T.value, A.value, z.value)), te.value && document.body.classList.add("modal-open"), ca(e, t);
2983
2993
  }), be(() => {
2984
- $(), I && I();
2994
+ N(), x && x();
2985
2995
  }), t.expose({
2986
- modalElementRef: E,
2987
- updateModalOptions: Ne,
2988
- close: j
2996
+ modalElementRef: A,
2997
+ updateModalOptions: He,
2998
+ close: W
2989
2999
  });
2990
3000
  function Pe() {
2991
3001
  return i("ul", null, [c.value && i("li", {
@@ -2993,56 +3003,57 @@ const Be = /* @__PURE__ */ q({
2993
3003
  }, [i("span", {
2994
3004
  class: "f-icon modal_minimize"
2995
3005
  }, null)]), s.value && i("li", {
2996
- onClick: Ve,
3006
+ onClick: ze,
2997
3007
  class: "f-btn-icon f-bare",
2998
3008
  style: "pointer-events: auto;"
2999
3009
  }, [i("span", {
3000
- class: We.value
3010
+ class: Ae.value
3001
3011
  }, null)]), p.value && i("li", {
3002
3012
  class: "f-btn-icon f-bare",
3003
- onClick: (M) => j(M, !1),
3013
+ onClick: (M) => W(M, !1),
3004
3014
  style: "pointer-events: auto;"
3005
3015
  }, [i("span", {
3006
3016
  class: "f-icon modal_close"
3007
3017
  }, null)])]);
3008
3018
  }
3009
- function He() {
3019
+ function Ge() {
3010
3020
  return i("div", {
3011
3021
  class: "modal-footer",
3012
- style: je.value
3013
- }, [y.value && y.value.map((M) => i("button", {
3022
+ style: Ve.value
3023
+ }, [E.value && E.value.map((M) => i("button", {
3014
3024
  name: M.name,
3015
3025
  type: "button",
3016
3026
  class: M.class + (M.iconClass ? " btn-icontext" : ""),
3017
3027
  onClick: (V) => {
3018
- ze(M, V);
3028
+ Ne(M, V);
3019
3029
  }
3020
3030
  }, [!!M.iconClass && i("i", {
3021
3031
  class: M.iconClass
3022
3032
  }, null), M.text]))]);
3023
3033
  }
3024
- return () => i(Je, {
3034
+ return () => i(Qe, {
3025
3035
  to: "body"
3026
3036
  }, {
3027
3037
  default: () => {
3028
3038
  var M, V;
3029
- return [N.value && i("div", {
3030
- class: ue.value,
3031
- style: "display: block"
3039
+ return [te.value && i("div", {
3040
+ class: Re.value,
3041
+ style: "display: block",
3042
+ ref: j
3032
3043
  }, [i("div", {
3033
3044
  id: u.value,
3034
- class: Re.value,
3035
- style: Fe.value,
3036
- ref: E
3045
+ class: Fe.value,
3046
+ style: ke.value,
3047
+ ref: A
3037
3048
  }, [i("div", {
3038
- class: ke.value
3049
+ class: $e.value
3039
3050
  }, [i("div", {
3040
- ref: m,
3051
+ ref: T,
3041
3052
  class: "modal-header",
3042
- style: $e.value
3053
+ style: We.value
3043
3054
  }, [i("div", {
3044
3055
  class: "modal-title"
3045
- }, [T.value && i("span", {
3056
+ }, [g.value && i("span", {
3046
3057
  class: r.value,
3047
3058
  style: "margin-right: 8px"
3048
3059
  }, null), i("span", {
@@ -3050,14 +3061,14 @@ const Be = /* @__PURE__ */ q({
3050
3061
  }, [S.value])]), i("div", {
3051
3062
  class: "actions"
3052
3063
  }, [Pe()])]), i("div", {
3053
- class: Ae.value
3064
+ class: Oe.value
3054
3065
  }, [(V = (M = t.slots).default) == null ? void 0 : V.call(M), h.value === "iframe" && i("iframe", {
3055
3066
  title: u.value,
3056
3067
  class: "f-utils-fill",
3057
3068
  width: "100%",
3058
3069
  frameborder: "0",
3059
3070
  src: b.value
3060
- }, null)]), g.value && He()]), !f.value && k.value && E.value && H(E.value)])])];
3071
+ }, null)]), m.value && Ge()]), !f.value && k.value && A.value && X(A.value)])])];
3061
3072
  }
3062
3073
  });
3063
3074
  }
@@ -3068,10 +3079,10 @@ function Le(e) {
3068
3079
  if (e.render && typeof e.render == "function")
3069
3080
  return e.render;
3070
3081
  }
3071
- function ca(e) {
3082
+ function da(e) {
3072
3083
  const t = document.createElement("div");
3073
3084
  t.style.display = "contents";
3074
- const n = Ze({
3085
+ const n = _e({
3075
3086
  setup(a, o) {
3076
3087
  be(() => {
3077
3088
  document.body.removeChild(t);
@@ -3130,12 +3141,12 @@ class me {
3130
3141
  showButtons: !0,
3131
3142
  showHeader: !0
3132
3143
  }, t);
3133
- return ca(n);
3144
+ return da(n);
3134
3145
  }
3135
3146
  open(t) {
3136
3147
  const n = document.createDocumentFragment();
3137
3148
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
3138
- const a = Qe(Object.assign({
3149
+ const a = Ze(Object.assign({
3139
3150
  title: "",
3140
3151
  showButtons: !0,
3141
3152
  showHeader: !0
@@ -3175,7 +3186,7 @@ class me {
3175
3186
  default: () => [p && p()]
3176
3187
  });
3177
3188
  return r = ((S) => {
3178
- const k = _e(b, S);
3189
+ const k = Ke(b, S);
3179
3190
  return k.appContext = this.appContext, se(k, n), k;
3180
3191
  })({
3181
3192
  ...a.value
@@ -3185,7 +3196,7 @@ class me {
3185
3196
  a.value = {
3186
3197
  ...a.value,
3187
3198
  ...S
3188
- }, r && se(Ke(r, {
3199
+ }, r && se(et(r, {
3189
3200
  ...a
3190
3201
  }), n);
3191
3202
  },
@@ -3194,7 +3205,7 @@ class me {
3194
3205
  };
3195
3206
  }
3196
3207
  }
3197
- function da(e, t, n) {
3208
+ function fa(e, t, n) {
3198
3209
  var W;
3199
3210
  function a() {
3200
3211
  }
@@ -3216,12 +3227,12 @@ function da(e, t, n) {
3216
3227
  return null;
3217
3228
  if (y.value.schema && y.value.schema.type === "component")
3218
3229
  return y.value;
3219
- const T = l(y == null ? void 0 : y.value.parent), g = s(T);
3230
+ const E = l(y == null ? void 0 : y.value.parent), g = s(E);
3220
3231
  return g || null;
3221
3232
  }
3222
3233
  function c(y = t) {
3223
- const { componentInstance: T, designerItemElementRef: g } = y;
3224
- return !T || !T.value ? null : T.value.canMove ? g : c(y.parent);
3234
+ const { componentInstance: E, designerItemElementRef: g } = y;
3235
+ return !E || !E.value ? null : E.value.canMove ? g : c(y.parent);
3225
3236
  }
3226
3237
  function h(y) {
3227
3238
  return !!n;
@@ -3231,18 +3242,18 @@ function da(e, t, n) {
3231
3242
  }
3232
3243
  function B() {
3233
3244
  }
3234
- function w(y, T) {
3245
+ function w(y, E) {
3235
3246
  }
3236
3247
  function S(y) {
3237
- const { componentType: T } = y;
3238
- let g = de(T, y);
3239
- const m = T.toLowerCase().replace("-", "_");
3240
- return g && !g.id && g.type === T && (g.id = `${m}_${Math.random().toString().slice(2, 6)}`), g;
3241
- }
3242
- function k(y, T) {
3243
- const g = String(y.getAttribute("data-controltype")), m = y.getAttribute("data-feature"), E = m ? JSON.parse(m) : {};
3244
- E.parentComponentInstance = d.value;
3245
- let A = de(g, E);
3248
+ const { componentType: E } = y;
3249
+ let g = de(E, y);
3250
+ const m = E.toLowerCase().replace("-", "_");
3251
+ return g && !g.id && g.type === E && (g.id = `${m}_${Math.random().toString().slice(2, 6)}`), g;
3252
+ }
3253
+ function k(y, E) {
3254
+ const g = String(y.getAttribute("data-controltype")), m = y.getAttribute("data-feature"), T = m ? JSON.parse(m) : {};
3255
+ T.parentComponentInstance = d.value;
3256
+ let A = de(g, T);
3246
3257
  const H = g.toLowerCase().replace("-", "_");
3247
3258
  return A && !A.id && A.type === g && (A.id = `${H}_${Math.random().toString().slice(2, 6)}`), A;
3248
3259
  }
@@ -3276,19 +3287,19 @@ function da(e, t, n) {
3276
3287
  triggerBelongedComponentToDeleteWhenDeleted: l(!1)
3277
3288
  }, d;
3278
3289
  }
3279
- const fa = /* @__PURE__ */ q({
3290
+ const pa = /* @__PURE__ */ q({
3280
3291
  name: "FResponseLayoutEditorSettingDesign",
3281
3292
  props: ve,
3282
3293
  emits: [],
3283
3294
  setup(e, t) {
3284
- const n = l(e.initialState), a = l(e.width), o = l(e.height), u = l(), d = ge("design-item-context"), f = da(u, d);
3295
+ const n = l(e.initialState), a = l(e.width), o = l(e.height), u = l(), d = ge("design-item-context"), f = fa(u, d);
3285
3296
  J(() => {
3286
3297
  u.value.componentInstance = f;
3287
3298
  }), t.expose(f.value);
3288
3299
  function v() {
3289
3300
  const r = me.show({
3290
3301
  // title: '响应式列宽编辑器',
3291
- render: () => i(oe, {
3302
+ render: () => i(ie, {
3292
3303
  initialState: n,
3293
3304
  width: a,
3294
3305
  height: o
@@ -3324,7 +3335,7 @@ const fa = /* @__PURE__ */ q({
3324
3335
  class: "f-column-width-setting-button-center"
3325
3336
  }, [G("高级设置")])])]);
3326
3337
  }
3327
- }), pa = {
3338
+ }), va = {
3328
3339
  width: { Type: Number, default: 400 },
3329
3340
  type: { Type: String, default: "info" },
3330
3341
  title: { Type: String, default: "" },
@@ -3337,12 +3348,12 @@ const fa = /* @__PURE__ */ q({
3337
3348
  function he() {
3338
3349
  return new DOMException("The request is not allowed", "NotAllowedError");
3339
3350
  }
3340
- async function va(e) {
3351
+ async function ma(e) {
3341
3352
  if (!navigator.clipboard)
3342
3353
  throw he();
3343
3354
  return navigator.clipboard.writeText(e);
3344
3355
  }
3345
- async function ma(e) {
3356
+ async function ha(e) {
3346
3357
  const t = document.createElement("span");
3347
3358
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
3348
3359
  const n = window.getSelection(), a = window.document.createRange();
@@ -3355,24 +3366,24 @@ async function ma(e) {
3355
3366
  }
3356
3367
  if (!o) throw he();
3357
3368
  }
3358
- async function ha(e) {
3369
+ async function ya(e) {
3359
3370
  try {
3360
- await va(e);
3371
+ await ma(e);
3361
3372
  } catch (t) {
3362
3373
  try {
3363
- await ma(e);
3374
+ await ha(e);
3364
3375
  } catch (n) {
3365
3376
  throw n || t || he();
3366
3377
  }
3367
3378
  }
3368
3379
  }
3369
- function ya() {
3380
+ function ga() {
3370
3381
  async function e(t) {
3371
- await ha(t);
3382
+ await ya(t);
3372
3383
  }
3373
3384
  return { onCopy: e };
3374
3385
  }
3375
- function ga(e, t, n, a) {
3386
+ function ba(e, t, n, a) {
3376
3387
  const o = l(14), u = l(140), d = l(""), f = l(a.value.length), v = R(() => a.value), r = R(() => ({
3377
3388
  "font-size": `${o.value}px`,
3378
3389
  height: "100%"
@@ -3383,7 +3394,7 @@ function ga(e, t, n, a) {
3383
3394
  f.value = c.length;
3384
3395
  }
3385
3396
  }
3386
- return () => i(ie, null, [i("textarea", {
3397
+ return () => i(ue, null, [i("textarea", {
3387
3398
  title: "promptMessage",
3388
3399
  name: "promptMessage",
3389
3400
  class: "form-control",
@@ -3397,14 +3408,14 @@ function ga(e, t, n, a) {
3397
3408
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
3398
3409
  }, [f.value + " / " + u.value])]);
3399
3410
  }
3400
- function ba(e, t, n, a) {
3401
- const o = ga(e, t, n, a), u = /* @__PURE__ */ new Map([["text-area", o]]);
3411
+ function wa(e, t, n, a) {
3412
+ const o = ba(e, t, n, a), u = /* @__PURE__ */ new Map([["text-area", o]]);
3402
3413
  function d(f) {
3403
3414
  return u.get(f) || null;
3404
3415
  }
3405
3416
  return { getEditorRender: d };
3406
3417
  }
3407
- function wa() {
3418
+ function Sa() {
3408
3419
  const e = l(!1), t = l("复制成功");
3409
3420
  return {
3410
3421
  feedbackStyle: R(() => {
@@ -3430,11 +3441,11 @@ function wa() {
3430
3441
  toShowFeedback: e
3431
3442
  };
3432
3443
  }
3433
- function Sa(e, t) {
3444
+ function Ca(e, t) {
3434
3445
  const n = t.getEditorRender(e.promptEditorType);
3435
3446
  return () => n && n();
3436
3447
  }
3437
- function Ca(e) {
3448
+ function Ma(e) {
3438
3449
  const t = l(3), n = l(480), a = R(() => !!e.value && !!e.value.date), o = R(() => `发生时间 : ${e.value && e.value.date || ""}`), u = R(() => !!e.value && !!e.value.detail), d = R(() => {
3439
3450
  const w = `${n.value}px`;
3440
3451
  return {
@@ -3479,13 +3490,13 @@ function Ca(e) {
3479
3490
  style: "cursor: pointer;"
3480
3491
  }, [p.value])])]);
3481
3492
  }
3482
- function Ma(e) {
3493
+ function Ia(e) {
3483
3494
  return () => i("p", {
3484
3495
  class: "toast-msg-detail",
3485
3496
  innerHTML: e.value
3486
3497
  }, null);
3487
3498
  }
3488
- function Ia(e, t, n, a) {
3499
+ function xa(e, t, n, a) {
3489
3500
  const o = l(e.exceptionInfo), u = R(() => {
3490
3501
  const c = {
3491
3502
  "f-icon": !0
@@ -3493,10 +3504,10 @@ function Ia(e, t, n, a) {
3493
3504
  return c[h] = !0, c;
3494
3505
  }), d = R(() => n.value || o.value && o.value.message), f = R(() => a.value), v = R(() => !!a.value), r = R(() => !!o.value);
3495
3506
  function p() {
3496
- return r.value ? Ca(o) : v.value ? Ma(f) : () => null;
3507
+ return r.value ? Ma(o) : v.value ? Ia(f) : () => null;
3497
3508
  }
3498
3509
  const s = p();
3499
- return () => i(ie, null, [i("div", {
3510
+ return () => i(ue, null, [i("div", {
3500
3511
  class: "float-left modal-tips-iconwrap"
3501
3512
  }, [i("span", {
3502
3513
  class: u.value
@@ -3507,7 +3518,7 @@ function Ia(e, t, n, a) {
3507
3518
  innerHTML: d.value
3508
3519
  }, null), s()])]);
3509
3520
  }
3510
- function xa(e, t, n) {
3521
+ function Ea(e, t, n) {
3511
3522
  const {
3512
3523
  onCopy: a
3513
3524
  } = t, {
@@ -3533,8 +3544,8 @@ function xa(e, t, n) {
3533
3544
  style: "cursor: pointer;"
3534
3545
  }, [d.value])]);
3535
3546
  }
3536
- function Ea(e, t, n, a) {
3537
- const o = l(e.type), u = l([]), d = l(e.exceptionInfo), f = l(e.okButtonText), v = l(e.cancelButtonText), r = l(!0), p = l(!0), s = R(() => !!(u.value && u.value.length)), c = R(() => d.value && d.value.date && d.value.message && d.value.detail), h = R(() => !(u.value && u.value.length) && (f.value || v.value)), b = R(() => p.value && f.value), B = R(() => r.value && v.value), w = xa(e, n, a);
3547
+ function Da(e, t, n, a) {
3548
+ const o = l(e.type), u = l([]), d = l(e.exceptionInfo), f = l(e.okButtonText), v = l(e.cancelButtonText), r = l(!0), p = l(!0), s = R(() => !!(u.value && u.value.length)), c = R(() => d.value && d.value.date && d.value.message && d.value.detail), h = R(() => !(u.value && u.value.length) && (f.value || v.value)), b = R(() => p.value && f.value), B = R(() => r.value && v.value), w = Ea(e, n, a);
3538
3549
  function S(L) {
3539
3550
  o.value === "question" && t.emit("reject"), t.emit("close");
3540
3551
  }
@@ -3559,9 +3570,9 @@ function Ea(e, t, n, a) {
3559
3570
  class: L.iconClass
3560
3571
  }, null), L.text]))]);
3561
3572
  }
3562
- const le = /* @__PURE__ */ q({
3573
+ const oe = /* @__PURE__ */ q({
3563
3574
  name: "FMessageBox",
3564
- props: pa,
3575
+ props: va,
3565
3576
  emits: ["accept", "reject", "close"],
3566
3577
  setup(e, t) {
3567
3578
  const n = l(e.type), a = l(e.title), o = l(e.detail), u = R(() => {
@@ -3574,7 +3585,7 @@ const le = /* @__PURE__ */ q({
3574
3585
  }), d = R(() => {
3575
3586
  const w = {};
3576
3587
  return n.value === "prompt" ? w.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (w.padding = "0.5rem 1.5rem 1rem 1.5rem"), w;
3577
- }), f = ya(), v = ba(e, n, a, o), r = wa(), {
3588
+ }), f = ga(), v = wa(e, n, a, o), r = Sa(), {
3578
3589
  feedbackStyle: p,
3579
3590
  feedbackMessage: s
3580
3591
  } = r;
@@ -3586,12 +3597,12 @@ const le = /* @__PURE__ */ q({
3586
3597
  function h() {
3587
3598
  switch (n.value) {
3588
3599
  case "prompt":
3589
- return Sa(e, v);
3600
+ return Ca(e, v);
3590
3601
  default:
3591
- return Ia(e, n, a, o);
3602
+ return xa(e, n, a, o);
3592
3603
  }
3593
3604
  }
3594
- const b = h(), B = Ea(e, t, f, r);
3605
+ const b = h(), B = Da(e, t, f, r);
3595
3606
  return () => i("div", {
3596
3607
  class: "farris-messager"
3597
3608
  }, [i("section", {
@@ -3620,7 +3631,7 @@ class Y {
3620
3631
  width: a.width || 400,
3621
3632
  fitContent: !0,
3622
3633
  showMaxButton: !1,
3623
- render: () => i(le, we(a, {
3634
+ render: () => i(oe, we(a, {
3624
3635
  onAccept: f,
3625
3636
  onReject: v,
3626
3637
  onClose: p
@@ -3694,8 +3705,8 @@ class Y {
3694
3705
  Y.show(u);
3695
3706
  }
3696
3707
  }
3697
- le.install = (e) => {
3698
- e.component(le.name, le), e.provide("FMessageBoxService", Y);
3708
+ oe.install = (e) => {
3709
+ e.component(oe.name, oe), e.provide("FMessageBoxService", Y);
3699
3710
  };
3700
3711
  const re = /* @__PURE__ */ q({
3701
3712
  name: "FResponseLayoutEditorSetting",
@@ -3719,7 +3730,7 @@ const re = /* @__PURE__ */ q({
3719
3730
  return;
3720
3731
  }
3721
3732
  me.show({
3722
- render: (v) => i(oe, {
3733
+ render: (v) => i(ie, {
3723
3734
  initialState: n,
3724
3735
  width: a.value,
3725
3736
  height: o.value,
@@ -3744,19 +3755,19 @@ const re = /* @__PURE__ */ q({
3744
3755
  class: "f-column-width-setting-button-center"
3745
3756
  }, [G("高级设置")])])]);
3746
3757
  }
3747
- }), Fa = {
3758
+ }), ka = {
3748
3759
  install(e) {
3749
- e.component(oe.name, oe), e.component(re.name, re);
3760
+ e.component(ie.name, ie), e.component(re.name, re);
3750
3761
  },
3751
3762
  register(e, t, n, a) {
3752
3763
  e["response-layout-editor-setting"] = re, t["response-layout-editor-setting"] = ye;
3753
3764
  },
3754
3765
  registerDesigner(e, t, n) {
3755
- e["response-layout-editor-setting"] = fa, t["response-layout-editor-setting"] = ye;
3766
+ e["response-layout-editor-setting"] = pa, t["response-layout-editor-setting"] = ye;
3756
3767
  }
3757
3768
  };
3758
3769
  export {
3759
- oe as ResponseLayoutEditor,
3760
- Fa as default,
3761
- nt as responseLayoutEditorProps
3770
+ ie as ResponseLayoutEditor,
3771
+ ka as default,
3772
+ at as responseLayoutEditorProps
3762
3773
  };