@farris/ui-vue 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/components/accordion/index.esm.js +79 -79
  2. package/components/avatar/index.esm.js +393 -440
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +496 -542
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +437 -483
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +839 -726
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4702 -4972
  17. package/components/data-view/index.esm.js +2999 -2875
  18. package/components/date-picker/index.esm.js +2626 -2672
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +934 -976
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +258 -249
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1892 -1775
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5245 -5514
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1483 -1556
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +668 -714
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1679 -1563
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6596 -6865
  47. package/components/mapping-editor/index.esm.js +5592 -5862
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +988 -1034
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1296
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1416 -1462
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +757 -830
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +452 -498
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +117 -117
  74. package/components/response-toolbar/index.esm.js +1021 -1238
  75. package/components/schema-selector/index.esm.js +3215 -3308
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +442 -488
  83. package/components/tabs/index.esm.js +1835 -2004
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +451 -482
  87. package/components/time-picker/index.esm.js +1345 -1392
  88. package/components/transfer/index.esm.js +135 -135
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5761 -6020
  91. package/components/tree-view/index.esm.js +2380 -2253
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +31630 -31224
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  102. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  103. package/types/data-view/composition/types.d.ts +1 -1
  104. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  105. package/types/designer-canvas/src/types.d.ts +1 -1
  106. package/types/dynamic-form/index.d.ts +1 -0
  107. package/types/dynamic-form/src/types.d.ts +1 -1
  108. package/types/dynamic-resolver/index.d.ts +1 -0
  109. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  110. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  111. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  112. package/types/modal/src/modal.props.d.ts +1 -4
  113. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  114. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  115. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  116. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  117. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  118. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  119. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  120. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  121. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  122. package/components/accordion/index.umd.cjs +0 -1
  123. package/components/avatar/index.umd.cjs +0 -1
  124. package/components/border-editor/index.umd.cjs +0 -1
  125. package/components/button/index.umd.cjs +0 -1
  126. package/components/button-edit/index.umd.cjs +0 -1
  127. package/components/button-group/index.umd.cjs +0 -1
  128. package/components/calculator/index.umd.cjs +0 -1
  129. package/components/calendar/index.umd.cjs +0 -1
  130. package/components/capsule/index.umd.cjs +0 -1
  131. package/components/checkbox/index.umd.cjs +0 -1
  132. package/components/color-picker/index.umd.cjs +0 -3
  133. package/components/combo-list/index.umd.cjs +0 -1
  134. package/components/combo-tree/index.umd.cjs +0 -1
  135. package/components/common/index.umd.cjs +0 -1
  136. package/components/component/index.umd.cjs +0 -1
  137. package/components/condition/index.umd.cjs +0 -1
  138. package/components/content-container/index.umd.cjs +0 -1
  139. package/components/data-grid/index.umd.cjs +0 -1
  140. package/components/data-view/index.umd.cjs +0 -1
  141. package/components/date-picker/index.umd.cjs +0 -1
  142. package/components/designer-canvas/index.umd.cjs +0 -1
  143. package/components/designer-outline/index.umd.cjs +0 -1
  144. package/components/designer-toolbox/index.umd.cjs +0 -1
  145. package/components/discussion-editor/index.umd.cjs +0 -3
  146. package/components/discussion-list/index.umd.cjs +0 -1
  147. package/components/drawer/index.umd.cjs +0 -1
  148. package/components/dropdown/index.umd.cjs +0 -2
  149. package/components/dynamic-form/index.umd.cjs +0 -1
  150. package/components/dynamic-resolver/index.umd.cjs +0 -1
  151. package/components/dynamic-view/index.umd.cjs +0 -1
  152. package/components/enum-editor/index.umd.cjs +0 -1
  153. package/components/events-editor/index.umd.cjs +0 -1
  154. package/components/expression-editor/index.umd.cjs +0 -1
  155. package/components/external-container/index.umd.cjs +0 -1
  156. package/components/field-selector/index.umd.cjs +0 -1
  157. package/components/filter-bar/index.umd.cjs +0 -1
  158. package/components/flow-canvas/index.umd.cjs +0 -1
  159. package/components/image-cropper/index.umd.cjs +0 -1
  160. package/components/input-group/index.umd.cjs +0 -1
  161. package/components/layout/index.umd.cjs +0 -1
  162. package/components/list-nav/index.umd.cjs +0 -1
  163. package/components/list-view/index.umd.cjs +0 -1
  164. package/components/loading/index.umd.cjs +0 -8
  165. package/components/locale/index.umd.cjs +0 -1
  166. package/components/lookup/index.umd.cjs +0 -1
  167. package/components/mapping-editor/index.umd.cjs +0 -1
  168. package/components/message-box/index.umd.cjs +0 -1
  169. package/components/modal/index.umd.cjs +0 -1
  170. package/components/nav/index.umd.cjs +0 -3
  171. package/components/notify/index.umd.cjs +0 -1
  172. package/components/order/index.umd.cjs +0 -1
  173. package/components/page-footer/index.umd.cjs +0 -1
  174. package/components/page-header/index.umd.cjs +0 -1
  175. package/components/pagination/index.umd.cjs +0 -1
  176. package/components/popover/index.umd.cjs +0 -1
  177. package/components/progress/index.umd.cjs +0 -3
  178. package/components/property-editor/index.umd.cjs +0 -3
  179. package/components/property-panel/index.umd.cjs +0 -1
  180. package/components/radio-button/index.umd.cjs +0 -1
  181. package/components/radio-group/index.umd.cjs +0 -1
  182. package/components/rate/index.umd.cjs +0 -1
  183. package/components/response-layout/index.umd.cjs +0 -1
  184. package/components/response-layout-editor/index.umd.cjs +0 -1
  185. package/components/response-toolbar/index.umd.cjs +0 -1
  186. package/components/schema-selector/index.umd.cjs +0 -8
  187. package/components/search-box/index.umd.cjs +0 -1
  188. package/components/section/index.umd.cjs +0 -1
  189. package/components/smoke-detector/index.umd.cjs +0 -1
  190. package/components/spacing-editor/index.umd.cjs +0 -1
  191. package/components/splitter/index.umd.cjs +0 -1
  192. package/components/step/index.umd.cjs +0 -1
  193. package/components/switch/index.umd.cjs +0 -1
  194. package/components/tabs/index.umd.cjs +0 -1
  195. package/components/tags/index.umd.cjs +0 -1
  196. package/components/text/index.umd.cjs +0 -1
  197. package/components/textarea/index.umd.cjs +0 -1
  198. package/components/time-picker/index.umd.cjs +0 -1
  199. package/components/tooltip/index.umd.cjs +0 -1
  200. package/components/transfer/index.umd.cjs +0 -1
  201. package/components/tree-grid/index.umd.cjs +0 -1
  202. package/components/tree-view/index.umd.cjs +0 -1
  203. package/components/uploader/index.umd.cjs +0 -2
  204. package/components/verify-detail/index.umd.cjs +0 -1
  205. package/components/video/index.umd.cjs +0 -1
  206. package/components/weather/index.umd.cjs +0 -16
@@ -1,116 +1,116 @@
1
- import { ref as w, computed as S, createVNode as P, defineComponent as W, watch as X, onMounted as _, inject as Y } from "vue";
2
- import { cloneDeep as K } from "lodash-es";
3
- import R from "@farris/ui-vue/components/response-toolbar";
1
+ import { ref as S, computed as w, createVNode as P, defineComponent as W, watch as X, onMounted as _, inject as Y } from "vue";
2
+ import { cloneDeep as R } from "lodash-es";
3
+ import K from "../response-toolbar/index.esm.js";
4
4
  import "bignumber.js";
5
- import { withInstall as I } from "@farris/ui-vue/components/common";
5
+ import { withInstall as I } from "../common/index.esm.js";
6
6
  const J = {}, Z = {};
7
- function B(n) {
8
- const { properties: e, title: t } = n, r = Object.keys(e).reduce((i, l) => (i[l] = e[l].type === "object" && e[l].properties ? B(e[l]) : K(e[l].default), i), {});
9
- return r.id = `${t}-${Date.now()}`, r;
7
+ function B(t) {
8
+ const { properties: e, title: n } = t, r = Object.keys(e).reduce((a, l) => (a[l] = e[l].type === "object" && e[l].properties ? B(e[l]) : R(e[l].default), a), {});
9
+ return r.id = `${n}-${Date.now()}`, r;
10
10
  }
11
- function x(n, e = {}) {
12
- const t = J[n];
13
- if (t) {
14
- let r = B(t);
15
- const i = Z[n];
16
- return r = i ? i({ getSchemaByType: x }, r, e) : r, r;
11
+ function x(t, e = {}) {
12
+ const n = J[t];
13
+ if (n) {
14
+ let r = B(n);
15
+ const a = Z[t];
16
+ return r = a ? a({ getSchemaByType: x }, r, e) : r, r;
17
17
  }
18
18
  return null;
19
19
  }
20
- function ee(n, e) {
21
- const t = B(e);
22
- return Object.keys(n).reduce((r, i) => (r[i] = n[i], r), t), t;
20
+ function ee(t, e) {
21
+ const n = B(e);
22
+ return Object.keys(t).reduce((r, a) => (r[a] && typeof r[a] == "object" ? Object.assign(r[a], t[a]) : r[a] = t[a], r), n), n;
23
23
  }
24
- function te(n, e) {
25
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, i) => {
26
- if (e.has(i)) {
27
- const l = e.get(i);
24
+ function te(t, e) {
25
+ return Object.keys(t).filter((r) => t[r] != null).reduce((r, a) => {
26
+ if (e.has(a)) {
27
+ const l = e.get(a);
28
28
  if (typeof l == "string")
29
- r[l] = n[i];
29
+ r[l] = t[a];
30
30
  else {
31
- const h = l(i, n[i], n);
31
+ const h = l(a, t[a], t);
32
32
  Object.assign(r, h);
33
33
  }
34
34
  } else
35
- r[i] = n[i];
35
+ r[a] = t[a];
36
36
  return r;
37
37
  }, {});
38
38
  }
39
- function ne(n, e, t = /* @__PURE__ */ new Map()) {
40
- const r = ee(n, e);
41
- return te(r, t);
39
+ function ne(t, e, n = /* @__PURE__ */ new Map()) {
40
+ const r = ee(t, e);
41
+ return te(r, n);
42
42
  }
43
- function oe(n = {}) {
44
- function e(a, d, u, p) {
43
+ function oe(t = {}) {
44
+ function e(c, d, u, p) {
45
45
  if (typeof u == "number")
46
- return p[a].length === u;
46
+ return p[c].length === u;
47
47
  if (typeof u == "object") {
48
48
  const m = Object.keys(u)[0], o = u[m];
49
49
  if (m === "not")
50
- return Number(p[a].length) !== Number(o);
50
+ return Number(p[c].length) !== Number(o);
51
51
  if (m === "moreThan")
52
- return Number(p[a].length) >= Number(o);
52
+ return Number(p[c].length) >= Number(o);
53
53
  if (m === "lessThan")
54
- return Number(p[a].length) <= Number(o);
54
+ return Number(p[c].length) <= Number(o);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function t(a, d, u, p) {
59
- return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(u);
58
+ function n(c, d, u, p) {
59
+ return p[c] && p[c].propertyValue && String(p[c].propertyValue.value) === String(u);
60
60
  }
61
61
  const r = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
- ["getProperty", t]
63
+ ["getProperty", n]
64
64
  ]);
65
- Object.keys(n).reduce((a, d) => (a.set(d, n[d]), a), r);
66
- function i(a, d) {
67
- const u = a;
68
- return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: a, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
65
+ Object.keys(t).reduce((c, d) => (c.set(d, t[d]), c), r);
66
+ function a(c, d) {
67
+ const u = c;
68
+ return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
69
69
  if (p === "length")
70
70
  return { target: u, operator: "length", param: null, value: d[p] };
71
71
  const m = p, o = d[p];
72
72
  return { target: u, operator: "getProperty", param: m, value: o };
73
73
  }) : [];
74
74
  }
75
- function l(a) {
76
- return Object.keys(a).reduce((u, p) => {
77
- const m = i(p, a[p]);
75
+ function l(c) {
76
+ return Object.keys(c).reduce((u, p) => {
77
+ const m = a(p, c[p]);
78
78
  return u.push(...m), u;
79
79
  }, []);
80
80
  }
81
- function h(a, d) {
82
- if (r.has(a.operator)) {
83
- const u = r.get(a.operator);
84
- return u && u(a.target, a.param, a.value, d) || !1;
81
+ function h(c, d) {
82
+ if (r.has(c.operator)) {
83
+ const u = r.get(c.operator);
84
+ return u && u(c.target, c.param, c.value, d) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function v(a, d) {
89
- return l(a).reduce((m, o) => m && h(o, d), !0);
88
+ function v(c, d) {
89
+ return l(c).reduce((m, o) => m && h(o, d), !0);
90
90
  }
91
- function C(a, d) {
92
- const u = Object.keys(a), p = u.includes("allOf"), m = u.includes("anyOf"), o = p || m, f = (o ? a[o ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((y) => v(y, d));
91
+ function C(c, d) {
92
+ const u = Object.keys(c), p = u.includes("allOf"), m = u.includes("anyOf"), o = p || m, f = (o ? c[o ? p ? "allOf" : "anyOf" : "allOf"] : [c]).map((y) => v(y, d));
93
93
  return p ? !f.includes(!1) : f.includes(!0);
94
94
  }
95
95
  return { parseValueSchema: C };
96
96
  }
97
97
  const re = {}, se = {};
98
98
  oe();
99
- function ae(n, e, t = /* @__PURE__ */ new Map(), r = (h, v, C) => v, i = {}, l = (h) => h) {
100
- return J[e.title] = e, Z[e.title] = r, re[e.title] = i, se[e.title] = l, (h = {}) => {
101
- const v = ne(h, e, t), C = Object.keys(n).reduce((a, d) => (a[d] = n[d].default, a), {});
99
+ function ae(t, e, n = /* @__PURE__ */ new Map(), r = (h, v, C) => v, a = {}, l = (h) => h) {
100
+ return J[e.title] = e, Z[e.title] = r, re[e.title] = a, se[e.title] = l, (h = {}) => {
101
+ const v = ne(h, e, n), C = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
102
102
  return Object.assign(C, v);
103
103
  };
104
104
  }
105
- function ce(n, e) {
105
+ function ce(t, e) {
106
106
  return { customClass: e.class, customStyle: e.style };
107
107
  }
108
- function ie(n, e, t) {
109
- return e ? { enableAccordion: t.accordionMode } : { enableAccordion: "" };
108
+ function ie(t, e, n) {
109
+ return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
110
110
  }
111
- function le(n, e) {
112
- return e && e.contents && e.contents.length && e.contents.forEach((t) => {
113
- t.title && (t.text = t.title);
111
+ function le(t, e) {
112
+ return e && e.contents && e.contents.length && e.contents.forEach((n) => {
113
+ n.title && (n.text = n.title);
114
114
  }), {
115
115
  buttons: e.contents,
116
116
  buttonPosition: e.position
@@ -122,7 +122,7 @@ const pe = /* @__PURE__ */ new Map([
122
122
  ["enableAccordion", ie],
123
123
  ["toolbar", le]
124
124
  ]);
125
- function ue(n, e, t) {
125
+ function ue(t, e, n) {
126
126
  return e;
127
127
  }
128
128
  const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/section.schema.json", ye = "section", be = "A Farris Container Component", he = "object", me = {
@@ -360,12 +360,12 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
360
360
  }
361
361
  }
362
362
  }
363
- }, Se = {
363
+ }, we = {
364
364
  title: Ce,
365
365
  description: je,
366
366
  type: Ae,
367
367
  categories: Te
368
- }, V = {
368
+ }, L = {
369
369
  /** 设置内容区域样式 */
370
370
  contentClass: { type: String, default: "" },
371
371
  /** 自定义样式 */
@@ -409,25 +409,25 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
409
409
  // toolbarPosition: { type: String, default: '' },
410
410
  // toolbarButtons: { type: Array<object>, default: [] },
411
411
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
412
- }, G = ae(V, ve, pe, ue, Se);
413
- function we(n, e, t) {
412
+ }, G = ae(L, ve, pe, ue, we);
413
+ function Se(t, e, n) {
414
414
  let r;
415
- function i() {
416
- !n || !e.value || (t.value = !t.value, t.value ? l() : h());
415
+ function a() {
416
+ !t || !e.value || (n.value = !n.value, n.value ? l() : h());
417
417
  }
418
418
  function l() {
419
- r = n.value.nextElementSibling;
419
+ r = t.value.nextElementSibling;
420
420
  const C = document && document.querySelector("body");
421
- C && (C.appendChild(n.value), n.value.style.zIndex = v());
421
+ C && (C.appendChild(t.value), t.value.style.zIndex = v());
422
422
  }
423
423
  function h() {
424
424
  r ? e.value.insertBefore(
425
- n.value,
425
+ t.value,
426
426
  r
427
- ) : e.value.appendChild(n.value), n.value.style.zIndex = null;
427
+ ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
428
428
  }
429
429
  function v(C = 1) {
430
- const a = [
430
+ const c = [
431
431
  "body>.f-datagrid-settings-simple-host",
432
432
  "body>div",
433
433
  "body>farris-dialog>.farris-modal.show",
@@ -437,49 +437,49 @@ function we(n, e, t) {
437
437
  "body>.popover.show",
438
438
  "body>filter-row-panel>.f-datagrid-filter-panel",
439
439
  "body>.f-section-maximize"
440
- ], d = Array.from(document.body.querySelectorAll(a.join(","))).filter((p) => p).map((p) => {
440
+ ], d = Array.from(document.body.querySelectorAll(c.join(","))).filter((p) => p).map((p) => {
441
441
  const { display: m, zIndex: o } = window.getComputedStyle(p);
442
442
  return m === "none" ? 0 : parseInt(o, 10);
443
443
  }).filter((p) => p);
444
444
  let u = Math.max(...d);
445
445
  return u < 1040 && (u = 1040), u + C;
446
446
  }
447
- return { onClickMaxMinIcon: i };
447
+ return { onClickMaxMinIcon: a };
448
448
  }
449
- function L(n, e) {
450
- const t = w(n.buttons), r = S(() => n.buttonPosition === "inHead" ? "right" : "left"), i = S(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), l = S(() => {
451
- n.buttons && n.buttons.length > 0 && n.buttonPosition;
449
+ function V(t, e) {
450
+ const n = S(t.buttons), r = w(() => t.buttonPosition === "inHead" ? "right" : "left"), a = w(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), l = w(() => {
451
+ t.buttons && t.buttons.length > 0 && t.buttonPosition;
452
452
  });
453
453
  function h(v) {
454
454
  e.emit("Click", v);
455
455
  }
456
- return () => l && P(R, {
457
- customClass: i.value,
458
- items: t.value,
456
+ return () => l && P(K, {
457
+ customClass: a.value,
458
+ items: n.value,
459
459
  onClick: h,
460
460
  alignment: r.value
461
461
  }, null);
462
462
  }
463
- function Q(n, e, t, r, i, l) {
464
- w(n.subTitle);
465
- const h = S(() => n.buttonPosition), v = L(n, e), {
463
+ function Q(t, e, n, r, a, l) {
464
+ S(t.subTitle);
465
+ const h = w(() => t.buttonPosition), v = V(t, e), {
466
466
  onClickMaxMinIcon: C
467
- } = we(r, i, l), a = S(() => !!n.subTitle), d = S(() => n.enableMaximize), u = S(() => n.enableAccordion != ""), p = S(() => {
467
+ } = Se(r, a, l), c = w(() => !!t.subTitle), d = w(() => t.enableMaximize), u = w(() => t.enableAccordion != ""), p = w(() => {
468
468
  const y = {
469
469
  "f-section-header": !0
470
470
  };
471
- return e.slots.header && n.headerClass.split(" ").reduce((M, b) => (M[b] = !0, M), y), y;
471
+ return e.slots.header && t.headerClass.split(" ").reduce((M, b) => (M[b] = !0, M), y), y;
472
472
  });
473
473
  function m(y) {
474
- y.stopPropagation(), n.enableAccordion !== "" && (t.value = !t.value);
474
+ y.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
475
475
  }
476
476
  function o() {
477
- const y = S(() => ({
477
+ const y = w(() => ({
478
478
  btn: !0,
479
479
  "f-btn-collapse-expand": !0,
480
480
  "f-btn-mx": !0,
481
- "f-state-expand": t.value
482
- })), j = S(() => ({
481
+ "f-state-expand": n.value
482
+ })), j = w(() => ({
483
483
  "f-icon": !0,
484
484
  "f-icon-maximize": !l.value,
485
485
  "f-icon-minimize": l.value
@@ -492,9 +492,9 @@ function Q(n, e, t, r, i, l) {
492
492
  }, null) : "", u.value ? P("button", {
493
493
  class: y.value,
494
494
  onClick: m
495
- }, [P("span", null, [t.value ? n.collapseLabel : n.expandLabel])]) : ""]);
495
+ }, [P("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
496
496
  }
497
- function c() {
497
+ function i() {
498
498
  return e.slots.header ? P("div", {
499
499
  class: p.value
500
500
  }, [e.slots.header()]) : "";
@@ -505,14 +505,14 @@ function Q(n, e, t, r, i, l) {
505
505
  onClick: m
506
506
  }, [P("h4", {
507
507
  class: "f-title-text"
508
- }, [n.mainTitle]), a.value && P("span", null, [n.subTitle])]);
508
+ }, [t.mainTitle]), c.value && P("span", null, [t.subTitle])]);
509
509
  }
510
510
  function f() {
511
- const y = S(() => {
511
+ const y = w(() => {
512
512
  const j = {
513
513
  "f-content": !0
514
514
  };
515
- return n.headerContentClass && n.headerContentClass.split(" ").reduce((b, A) => (b[A] = !0, b), j), j;
515
+ return t.headerContentClass && t.headerContentClass.split(" ").reduce((b, A) => (b[A] = !0, b), j), j;
516
516
  });
517
517
  return e.slots.headerContent ? P("div", {
518
518
  class: y.value
@@ -523,16 +523,16 @@ function Q(n, e, t, r, i, l) {
523
523
  class: p.value
524
524
  }, [e.slots.headerTitle ? e.slots.headerTitle() : s(), f(), h.value === "inHead" && v(), (d.value || u.value) && o()]);
525
525
  }
526
- return () => n.showHeader && (e.slots.header ? c() : g());
526
+ return () => t.showHeader && (e.slots.header ? i() : g());
527
527
  }
528
528
  const Pe = ["moz", "ms", "webkit"];
529
529
  function Me() {
530
- let n = 0;
530
+ let t = 0;
531
531
  return (e) => {
532
- const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), i = setTimeout(() => {
533
- e(t + r);
532
+ const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
533
+ e(n + r);
534
534
  }, r);
535
- return n = t + r, i;
535
+ return t = n + r, a;
536
536
  };
537
537
  }
538
538
  function De() {
@@ -540,33 +540,33 @@ function De() {
540
540
  return () => 0;
541
541
  if (window.requestAnimationFrame)
542
542
  return window.requestAnimationFrame.bind(window);
543
- const n = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
544
- return n ? window[`${n}RequestAnimationFrame`] : Me();
543
+ const t = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
544
+ return t ? window[`${t}RequestAnimationFrame`] : Me();
545
545
  }
546
546
  De();
547
- function E(n, e) {
548
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, i) => (i && (r[i] = !0), r), n), n;
547
+ function E(t, e) {
548
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, a) => (a && (r[a] = !0), r), t), t;
549
549
  }
550
550
  const N = /* @__PURE__ */ W({
551
551
  name: "FSection",
552
- props: V,
552
+ props: L,
553
553
  emits: [],
554
- setup(n, e) {
555
- const t = w();
556
- let r = w();
557
- const i = w(n.customClass), l = S(() => n.enableAccordion), h = w(n.expandStatus), v = S(() => n.buttonPosition), C = w(!1), a = Q(n, e, h, t, r, C), d = L(n, e), u = S(() => {
554
+ setup(t, e) {
555
+ const n = S();
556
+ let r = S();
557
+ const a = S(t.customClass), l = w(() => t.enableAccordion), h = S(t.expandStatus), v = w(() => t.buttonPosition), C = S(!1), c = Q(t, e, h, n, r, C), d = V(t, e), u = w(() => {
558
558
  const s = {
559
559
  "f-section": !0,
560
560
  "f-section-accordion": l.value === "default",
561
561
  "f-state-collapse": (l.value === "default" || l.value === "custom") && !h.value,
562
562
  "f-section-custom-accordion": l.value === "custom",
563
- "f-section-fill": n.fill,
563
+ "f-section-fill": t.fill,
564
564
  "f-section-maximize": C.value
565
565
  };
566
- return E(s, i.value);
567
- }), p = S(() => E({
566
+ return E(s, a.value);
567
+ }), p = w(() => E({
568
568
  "f-section-content": !0
569
- }, n.contentClass)), m = S(() => E({
569
+ }, t.contentClass)), m = w(() => E({
570
570
  "f-section-extend": !0
571
571
  }, m.value));
572
572
  function o() {
@@ -574,39 +574,39 @@ const N = /* @__PURE__ */ W({
574
574
  class: m.value
575
575
  }, [e.slots.extend()]);
576
576
  }
577
- function c() {
577
+ function i() {
578
578
  return P("div", {
579
579
  class: p.value
580
580
  }, [v.value === "inContent" && d(), e.slots.default && e.slots.default()]);
581
581
  }
582
- return X(() => n.expandStatus, (s, f) => {
582
+ return X(() => t.expandStatus, (s, f) => {
583
583
  s !== f && (h.value = s);
584
584
  }), _(() => {
585
- t && t.value && (r.value = t.value.parentElement);
585
+ n && n.value && (r.value = n.value.parentElement);
586
586
  }), () => P("div", {
587
587
  class: u.value,
588
- ref: t
589
- }, [a(), o(), c()]);
588
+ ref: n
589
+ }, [c(), o(), i()]);
590
590
  }
591
591
  });
592
592
  function Oe() {
593
- function n(e) {
594
- var i, l;
593
+ function t(e) {
594
+ var a, l;
595
595
  if (!e)
596
596
  return !1;
597
- const t = ((i = e.targetContainer) == null ? void 0 : i.componentInstance) && e.targetContainer.componentInstance.value;
598
- if (!t)
597
+ const n = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
598
+ if (!n)
599
599
  return !1;
600
- const r = (l = t.schema.appearance) == null ? void 0 : l.class;
600
+ const r = (l = n.schema.appearance) == null ? void 0 : l.class;
601
601
  if (e.controlCategory === "input" || e.controlType === "form-group") {
602
- const h = t.schema.type, v = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
603
- if (t.schema.type !== "response-layout-item" && !v)
602
+ const h = n.schema.type, v = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
603
+ if (n.schema.type !== "response-layout-item" && !v)
604
604
  return !1;
605
605
  }
606
606
  return e.controlType !== "field-set";
607
607
  }
608
608
  return {
609
- basalDragulaRuleForContainer: n
609
+ basalDragulaRuleForContainer: t
610
610
  };
611
611
  }
612
612
  const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/dragging-rules.schema.json", Ne = "Dragging Rules", $e = "The rules of designer canvas", Fe = "object", He = {
@@ -1182,8 +1182,8 @@ const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-
1182
1182
  properties: He,
1183
1183
  required: xe
1184
1184
  }, H = /* @__PURE__ */ new Map();
1185
- function Ve() {
1186
- function n(o, c, s, f) {
1185
+ function Le() {
1186
+ function t(o, i, s, f) {
1187
1187
  var g;
1188
1188
  if (typeof s == "number")
1189
1189
  return ((g = f[o]) == null ? void 0 : g.length) === s;
@@ -1198,63 +1198,63 @@ function Ve() {
1198
1198
  }
1199
1199
  return !1;
1200
1200
  }
1201
- function e(o, c, s, f) {
1202
- return typeof s == "boolean" ? f.childrenClassList.includes(c) === !!s : !1;
1201
+ function e(o, i, s, f) {
1202
+ return typeof s == "boolean" ? f.childrenClassList.includes(i) === !!s : !1;
1203
1203
  }
1204
- function t(o, c, s, f) {
1205
- return typeof s == "boolean" ? f.parentClassList.includes(c) === !!s : !1;
1204
+ function n(o, i, s, f) {
1205
+ return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
1206
1206
  }
1207
- function r(o, c, s, f) {
1208
- return typeof s == "boolean" ? f.parentClassList.includes(c) === !!s : !1;
1207
+ function r(o, i, s, f) {
1208
+ return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
1209
1209
  }
1210
- const i = /* @__PURE__ */ new Map([
1211
- ["length", n],
1210
+ const a = /* @__PURE__ */ new Map([
1211
+ ["length", t],
1212
1212
  ["hasChildren", e],
1213
1213
  ["hasSibling", r],
1214
- ["hasParent", t]
1214
+ ["hasParent", n]
1215
1215
  ]);
1216
- function l(o, c) {
1216
+ function l(o, i) {
1217
1217
  const s = o;
1218
- return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((f) => {
1218
+ return typeof i == "number" ? [{ target: s, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((f) => {
1219
1219
  if (f === "length")
1220
- return { target: s, operator: "length", param: null, value: c[f] };
1221
- const g = f, y = c[f];
1220
+ return { target: s, operator: "length", param: null, value: i[f] };
1221
+ const g = f, y = i[f];
1222
1222
  return { target: s, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: g, value: y };
1223
1223
  }) : [];
1224
1224
  }
1225
- function h(o, c) {
1226
- if (i.has(o.operator)) {
1227
- const s = i.get(o.operator);
1228
- return s && s(o.target, o.param, o.value, c) || !1;
1225
+ function h(o, i) {
1226
+ if (a.has(o.operator)) {
1227
+ const s = a.get(o.operator);
1228
+ return s && s(o.target, o.param, o.value, i) || !1;
1229
1229
  }
1230
1230
  return !1;
1231
1231
  }
1232
- function v(o, c) {
1232
+ function v(o, i) {
1233
1233
  return Object.keys(o).reduce((y, j) => {
1234
1234
  const M = l(j, o[j]);
1235
1235
  return y.push(...M), y;
1236
- }, []).reduce((y, j) => y && h(j, c), !0);
1236
+ }, []).reduce((y, j) => y && h(j, i), !0);
1237
1237
  }
1238
- function C(o, c) {
1239
- const s = Object.keys(o), f = s.includes("allOf"), g = s.includes("anyOf"), y = f || g, b = (y ? o[y ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((T) => v(T, c));
1238
+ function C(o, i) {
1239
+ const s = Object.keys(o), f = s.includes("allOf"), g = s.includes("anyOf"), y = f || g, b = (y ? o[y ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((T) => v(T, i));
1240
1240
  return f ? !b.includes(!1) : b.includes(!0);
1241
1241
  }
1242
- function a(o, c) {
1242
+ function c(o, i) {
1243
1243
  const s = o.const;
1244
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s, c) : !1 : !1;
1244
+ return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s, i) : !1 : !1;
1245
1245
  }
1246
1246
  function d(o) {
1247
- return (c) => {
1247
+ return (i) => {
1248
1248
  const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
1249
1249
  return o && o.properties && Object.keys(o.properties).reduce((f, g) => {
1250
1250
  const y = o.properties[g];
1251
- return f[g] = a(y, c), f;
1251
+ return f[g] = c(y, i), f;
1252
1252
  }, s), s;
1253
1253
  };
1254
1254
  }
1255
- function u(o, c, s) {
1256
- if (c.type === "object" && c.properties) {
1257
- const { rules: f, contents: g } = c.properties;
1255
+ function u(o, i, s) {
1256
+ if (i.type === "object" && i.properties) {
1257
+ const { rules: f, contents: g } = i.properties;
1258
1258
  s.set(o, d(f)), g && Object.keys(g.properties).forEach(
1259
1259
  (y) => u(y, g.properties[y], s)
1260
1260
  );
@@ -1262,21 +1262,21 @@ function Ve() {
1262
1262
  }
1263
1263
  function p() {
1264
1264
  const { properties: o } = Be;
1265
- Object.keys(o).forEach((c) => {
1266
- u(c, o[c], H);
1265
+ Object.keys(o).forEach((i) => {
1266
+ u(i, o[i], H);
1267
1267
  });
1268
1268
  }
1269
- function m(o, c) {
1269
+ function m(o, i) {
1270
1270
  const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1271
- return H.has(o) ? H.get(o)(c) : s;
1271
+ return H.has(o) ? H.get(o)(i) : s;
1272
1272
  }
1273
1273
  return p(), { getRuleValue: m };
1274
1274
  }
1275
- function Le(n, e) {
1276
- const t = w(!1), r = w(!1), i = Ve();
1275
+ function Ve(t, e) {
1276
+ const n = S(!1), r = S(!1), a = Le();
1277
1277
  let l = !0, h = !1, v, C = !1;
1278
- function a(c) {
1279
- return !(!Oe().basalDragulaRuleForContainer(c) || !l);
1278
+ function c(i) {
1279
+ return !(!Oe().basalDragulaRuleForContainer(i) || !l);
1280
1280
  }
1281
1281
  function d() {
1282
1282
  return !C;
@@ -1287,11 +1287,11 @@ function Le(n, e) {
1287
1287
  function p() {
1288
1288
  return h;
1289
1289
  }
1290
- function m(c) {
1290
+ function m(i) {
1291
1291
  }
1292
1292
  function o() {
1293
- t.value = !1, r.value = !1, C = !1, l = !0;
1294
- const c = n, s = c.appearance && c.appearance.class || "", f = s ? s.split(" ") : [], g = c.contents || [], y = g.length ? g[0] : null, j = y && y.appearance && y.appearance.class || "", M = j ? j.split(" ") : [], b = g.length ? g.reduce((z, F) => {
1293
+ n.value = !1, r.value = !1, C = !1, l = !0;
1294
+ const i = t, s = i.appearance && i.appearance.class || "", f = s ? s.split(" ") : [], g = i.contents || [], y = g.length ? g[0] : null, j = y && y.appearance && y.appearance.class || "", M = j ? j.split(" ") : [], b = g.length ? g.reduce((z, F) => {
1295
1295
  const q = F && F.appearance ? F.appearance.class : "", U = q ? q.split(" ") : [];
1296
1296
  return z.push(...U), z;
1297
1297
  }, []) : [], A = e, T = A && A.appearance && A.appearance.class || "", O = T ? T.split(" ") : [];
@@ -1308,45 +1308,45 @@ function Le(n, e) {
1308
1308
  children: g,
1309
1309
  childrenClassList: b
1310
1310
  };
1311
- const { canAccept: k, fixed: D, hidePadding: $ } = i.getRuleValue(f[0], v);
1311
+ const { canAccept: k, fixed: D, hidePadding: $ } = a.getRuleValue(f[0], v);
1312
1312
  return l = k, h = $, C = D, !0;
1313
1313
  }
1314
1314
  return {
1315
- canAccepts: a,
1315
+ canAccepts: c,
1316
1316
  checkCanDeleteComponent: d,
1317
1317
  checkCanMoveComponent: u,
1318
1318
  hideNestedPaddingInDesginerView: p,
1319
1319
  onAcceptMovedChildElement: m,
1320
1320
  resolveComponentContext: o,
1321
- triggerBelongedComponentToMoveWhenMoved: t,
1321
+ triggerBelongedComponentToMoveWhenMoved: n,
1322
1322
  triggerBelongedComponentToDeleteWhenDeleted: r
1323
1323
  };
1324
1324
  }
1325
- function ze(n, e, t) {
1325
+ function ze(t, e, n) {
1326
1326
  var M;
1327
1327
  function r() {
1328
- t != null && t.resolveComponentContext && t.resolveComponentContext();
1328
+ n != null && n.resolveComponentContext && n.resolveComponentContext();
1329
1329
  }
1330
1330
  r();
1331
- const i = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", h = w();
1331
+ const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", h = S();
1332
1332
  function v() {
1333
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1333
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1334
1334
  }
1335
1335
  function C() {
1336
1336
  return !1;
1337
1337
  }
1338
- function a() {
1339
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1338
+ function c() {
1339
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1340
1340
  }
1341
1341
  function d() {
1342
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1342
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1343
1343
  }
1344
1344
  function u(b) {
1345
1345
  if (!b || !b.value)
1346
1346
  return null;
1347
1347
  if (b.value.schema && b.value.schema.type === "component")
1348
1348
  return b.value;
1349
- const A = w(b == null ? void 0 : b.value.parent), T = u(A);
1349
+ const A = S(b == null ? void 0 : b.value.parent), T = u(A);
1350
1350
  return T || null;
1351
1351
  }
1352
1352
  function p(b = e) {
@@ -1354,20 +1354,20 @@ function ze(n, e, t) {
1354
1354
  return !A || !A.value ? null : A.value.canMove ? T : p(b.parent);
1355
1355
  }
1356
1356
  function m(b) {
1357
- return !!t && t.canAccepts(b);
1357
+ return !!n && n.canAccepts(b);
1358
1358
  }
1359
1359
  function o() {
1360
1360
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1361
1361
  }
1362
- function c() {
1362
+ function i() {
1363
1363
  }
1364
1364
  function s(b, A) {
1365
- A && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(A);
1365
+ A && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(A);
1366
1366
  }
1367
1367
  function f(b) {
1368
1368
  const { componentType: A } = b;
1369
1369
  let T = x(A, b);
1370
- t && t.onResolveNewComponentSchema && (T = t.onResolveNewComponentSchema(b, T));
1370
+ n && n.onResolveNewComponentSchema && (T = n.onResolveNewComponentSchema(b, T));
1371
1371
  const O = A.toLowerCase().replace("-", "_");
1372
1372
  return T && !T.id && T.type === A && (T.id = `${O}_${Math.random().toString().slice(2, 6)}`), T;
1373
1373
  }
@@ -1375,70 +1375,70 @@ function ze(n, e, t) {
1375
1375
  const T = String(b.getAttribute("data-controltype")), O = b.getAttribute("data-feature"), k = O ? JSON.parse(O) : {};
1376
1376
  k.parentComponentInstance = h.value;
1377
1377
  let D = x(T, k);
1378
- t && t.onAcceptNewChildElement && (D = t.onAcceptNewChildElement(b, A, D));
1378
+ n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(b, A, D));
1379
1379
  const $ = T.toLowerCase().replace("-", "_");
1380
1380
  return D && !D.id && D.type === T && (D.id = `${$}_${Math.random().toString().slice(2, 6)}`), D;
1381
1381
  }
1382
1382
  function y(b) {
1383
1383
  }
1384
1384
  function j(...b) {
1385
- if (t && t.getPropsConfig)
1386
- return t.getPropsConfig(...b);
1385
+ if (n && n.getPropsConfig)
1386
+ return n.getPropsConfig(...b);
1387
1387
  }
1388
1388
  return h.value = {
1389
1389
  canMove: v(),
1390
1390
  canSelectParent: C(),
1391
- canDelete: a(),
1391
+ canDelete: c(),
1392
1392
  canNested: !d(),
1393
1393
  contents: e == null ? void 0 : e.schema.contents,
1394
- elementRef: n,
1394
+ elementRef: t,
1395
1395
  parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
1396
1396
  schema: e == null ? void 0 : e.schema,
1397
- styles: i,
1397
+ styles: a,
1398
1398
  designerClass: l,
1399
1399
  canAccepts: m,
1400
1400
  getBelongedComponentInstance: u,
1401
1401
  getDraggableDesignItemElement: p,
1402
1402
  getDraggingDisplayText: o,
1403
1403
  getPropConfig: j,
1404
- getDragScopeElement: c,
1404
+ getDragScopeElement: i,
1405
1405
  onAcceptMovedChildElement: s,
1406
1406
  onAcceptNewChildElement: g,
1407
1407
  onChildElementMovedOut: y,
1408
1408
  addNewChildComponentSchema: f,
1409
1409
  updateDragAndDropRules: r,
1410
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || w(!1),
1411
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
1410
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || S(!1),
1411
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
1412
1412
  }, h;
1413
1413
  }
1414
1414
  const qe = /* @__PURE__ */ W({
1415
1415
  name: "FSectionDesign",
1416
- props: V,
1416
+ props: L,
1417
1417
  emits: [],
1418
- setup(n, e) {
1418
+ setup(t, e) {
1419
1419
  var j;
1420
- const t = w(), r = w();
1421
- let i = w();
1422
- const l = Y("design-item-context"), h = Le(l.schema, (j = l.parent) == null ? void 0 : j.schema), v = ze(t, l, h);
1420
+ const n = S(), r = S();
1421
+ let a = S();
1422
+ const l = Y("design-item-context"), h = Ve(l.schema, (j = l.parent) == null ? void 0 : j.schema), v = ze(n, l, h);
1423
1423
  v.value.styles = "display: inherit;", _(() => {
1424
- t.value.componentInstance = v;
1424
+ n.value.componentInstance = v;
1425
1425
  }), e.expose(v.value);
1426
- const C = w(n.customClass), a = S(() => n.enableAccordion), d = w(n.expandStatus), u = S(() => n.buttonPosition), p = w(!1), m = Q(n, e, d, r, i, p), o = L(n, e), c = S(() => {
1426
+ const C = S(t.customClass), c = w(() => t.enableAccordion), d = S(t.expandStatus), u = w(() => t.buttonPosition), p = S(!1), m = Q(t, e, d, r, a, p), o = V(t, e), i = w(() => {
1427
1427
  const M = {
1428
1428
  "f-section": !0,
1429
- "f-section-accordion": a.value === "default",
1430
- "f-state-collapse": (a.value === "default" || a.value === "custom") && !d.value,
1431
- "f-section-custom-accordion": a.value === "custom",
1432
- "f-section-fill": n.fill,
1429
+ "f-section-accordion": c.value === "default",
1430
+ "f-state-collapse": (c.value === "default" || c.value === "custom") && !d.value,
1431
+ "f-section-custom-accordion": c.value === "custom",
1432
+ "f-section-fill": t.fill,
1433
1433
  "f-section-maximize": p.value,
1434
1434
  "f-utils-fill": !0,
1435
1435
  "p-0": !0
1436
1436
  };
1437
1437
  return E(M, C.value);
1438
- }), s = S(() => E({
1438
+ }), s = w(() => E({
1439
1439
  "f-section-content": !0,
1440
1440
  "drag-container": !0
1441
- }, n.contentClass)), f = S(() => E({
1441
+ }, t.contentClass)), f = w(() => E({
1442
1442
  "f-section-extend": !0
1443
1443
  }, f.value));
1444
1444
  function g() {
@@ -1449,26 +1449,26 @@ const qe = /* @__PURE__ */ W({
1449
1449
  function y() {
1450
1450
  return P("div", {
1451
1451
  class: s.value,
1452
- ref: t,
1452
+ ref: n,
1453
1453
  "data-dragref": `${l.schema.id}-container`
1454
1454
  }, [u.value === "inContent" && o(), e.slots.default && e.slots.default()]);
1455
1455
  }
1456
1456
  return () => P("div", {
1457
- class: c.value,
1457
+ class: i.value,
1458
1458
  ref: r
1459
1459
  }, [m(), g(), y()]);
1460
1460
  }
1461
1461
  });
1462
- N.register = (n, e, t, r) => {
1463
- n.section = N, e.section = G;
1462
+ N.register = (t, e, n, r) => {
1463
+ t.section = N, e.section = G;
1464
1464
  };
1465
- N.registerDesigner = (n, e, t) => {
1466
- n.section = qe, e.section = G;
1465
+ N.registerDesigner = (t, e, n) => {
1466
+ t.section = qe, e.section = G;
1467
1467
  };
1468
1468
  const Qe = I(N);
1469
1469
  export {
1470
1470
  N as Section,
1471
1471
  Qe as default,
1472
1472
  G as propsResolver,
1473
- V as sectionProps
1473
+ L as sectionProps
1474
1474
  };