@farris/ui-vue 1.2.8 → 1.2.9

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 (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,114 +1,152 @@
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";
1
+ import { ref as w, computed as T, createVNode as M, defineComponent as W, watch as Y, onMounted as G, inject as R } from "vue";
2
+ import { cloneDeep as I } from "lodash-es";
3
3
  import K from "../response-toolbar/index.esm.js";
4
4
  import "bignumber.js";
5
- import { withInstall as I } from "../common/index.esm.js";
6
- const J = {}, Z = {};
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;
5
+ import { withInstall as ee } from "../common/index.esm.js";
6
+ const _ = {}, J = {};
7
+ function H(t) {
8
+ const { properties: e, title: n, ignore: o } = t, s = o && Array.isArray(o), i = Object.keys(e).reduce((y, m) => ((!s || !o.find((C) => C == m)) && (y[m] = e[m].type === "object" && e[m].properties ? H(e[m]) : I(e[m].default)), y), {});
9
+ return (!s || !o.find((y) => y == "id")) && (i.id = `${n}-${Date.now()}`), i;
10
10
  }
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;
11
+ function $(t, e = {}, n) {
12
+ const o = _[t];
13
+ if (o) {
14
+ let s = H(o);
15
+ const i = J[t];
16
+ return s = i ? i({ getSchemaByType: $ }, s, e, n) : s, s;
17
17
  }
18
18
  return null;
19
19
  }
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
- }
24
20
  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
- if (typeof l == "string")
29
- r[l] = t[a];
21
+ const n = H(e);
22
+ return Object.keys(t).reduce((o, s) => (o[s] && typeof o[s] == "object" ? Object.assign(o[s], t[s]) : o[s] = t[s], o), n), n;
23
+ }
24
+ function ne(t, e) {
25
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, s) => {
26
+ if (e.has(s)) {
27
+ const i = e.get(s);
28
+ if (typeof i == "string")
29
+ o[i] = t[s];
30
30
  else {
31
- const h = l(a, t[a], t);
32
- Object.assign(r, h);
31
+ const y = i(s, t[s], t);
32
+ Object.assign(o, y);
33
33
  }
34
34
  } else
35
- r[a] = t[a];
36
- return r;
35
+ o[s] = t[s];
36
+ return o;
37
37
  }, {});
38
38
  }
39
- function ne(t, e, n = /* @__PURE__ */ new Map()) {
40
- const r = ee(t, e);
41
- return te(r, n);
39
+ function oe(t, e, n = /* @__PURE__ */ new Map()) {
40
+ const o = te(t, e);
41
+ return ne(o, n);
42
42
  }
43
- function oe(t = {}) {
44
- function e(c, d, u, p) {
45
- if (typeof u == "number")
46
- return p[c].length === u;
47
- if (typeof u == "object") {
48
- const m = Object.keys(u)[0], o = u[m];
49
- if (m === "not")
50
- return Number(p[c].length) !== Number(o);
51
- if (m === "moreThan")
52
- return Number(p[c].length) >= Number(o);
53
- if (m === "lessThan")
54
- return Number(p[c].length) <= Number(o);
43
+ function re(t = {}) {
44
+ function e(c, b, f, u) {
45
+ if (typeof f == "number")
46
+ return u[c].length === f;
47
+ if (typeof f == "object") {
48
+ const g = Object.keys(f)[0], r = f[g];
49
+ if (g === "not")
50
+ return Number(u[c].length) !== Number(r);
51
+ if (g === "moreThan")
52
+ return Number(u[c].length) >= Number(r);
53
+ if (g === "lessThan")
54
+ return Number(u[c].length) <= Number(r);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function n(c, d, u, p) {
59
- return p[c] && p[c].propertyValue && String(p[c].propertyValue.value) === String(u);
58
+ function n(c, b, f, u) {
59
+ return u[c] && u[c].propertyValue && String(u[c].propertyValue.value) === String(f);
60
60
  }
61
- const r = /* @__PURE__ */ new Map([
61
+ const o = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
63
  ["getProperty", n]
64
64
  ]);
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
- if (p === "length")
70
- return { target: u, operator: "length", param: null, value: d[p] };
71
- const m = p, o = d[p];
72
- return { target: u, operator: "getProperty", param: m, value: o };
65
+ Object.keys(t).reduce((c, b) => (c.set(b, t[b]), c), o);
66
+ function s(c, b) {
67
+ const f = c;
68
+ return typeof b == "number" ? [{ target: f, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: f, operator: "getProperty", param: c, value: !!b }] : typeof b == "object" ? Object.keys(b).map((u) => {
69
+ if (u === "length")
70
+ return { target: f, operator: "length", param: null, value: b[u] };
71
+ const g = u, r = b[u];
72
+ return { target: f, operator: "getProperty", param: g, value: r };
73
73
  }) : [];
74
74
  }
75
- function l(c) {
76
- return Object.keys(c).reduce((u, p) => {
77
- const m = a(p, c[p]);
78
- return u.push(...m), u;
75
+ function i(c) {
76
+ return Object.keys(c).reduce((f, u) => {
77
+ const g = s(u, c[u]);
78
+ return f.push(...g), f;
79
79
  }, []);
80
80
  }
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;
81
+ function y(c, b) {
82
+ if (o.has(c.operator)) {
83
+ const f = o.get(c.operator);
84
+ return f && f(c.target, c.param, c.value, b) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function v(c, d) {
89
- return l(c).reduce((m, o) => m && h(o, d), !0);
88
+ function m(c, b) {
89
+ return i(c).reduce((g, r) => g && y(r, b), !0);
90
90
  }
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
- return p ? !f.includes(!1) : f.includes(!0);
91
+ function C(c, b) {
92
+ const f = Object.keys(c), u = f.includes("allOf"), g = f.includes("anyOf"), r = u || g, p = (r ? c[r ? u ? "allOf" : "anyOf" : "allOf"] : [c]).map((d) => m(d, b));
93
+ return u ? !p.includes(!1) : p.includes(!0);
94
94
  }
95
95
  return { parseValueSchema: C };
96
96
  }
97
- const re = {}, se = {};
98
- oe();
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
- return Object.assign(C, v);
97
+ const ae = {
98
+ button: { type: "button", name: "按钮", icon: "Button" },
99
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
101
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
102
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
103
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
104
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
105
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
106
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
107
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
108
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
109
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
110
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
111
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
112
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
113
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
114
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
115
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
116
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
117
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
118
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
119
+ module: { type: "Module", name: "模块", icon: "Module" },
120
+ component: { type: "component", name: "组件", icon: "Component" },
121
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
122
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
123
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
124
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
125
+ section: { type: "section", name: "分组面板", icon: "Section" },
126
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
127
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
128
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
129
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
130
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
131
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
132
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
133
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
135
+ }, se = {}, ce = {};
136
+ re();
137
+ function ie(t, e, n = /* @__PURE__ */ new Map(), o = (y, m, C) => m, s = {}, i = (y) => y) {
138
+ return _[e.title] = e, J[e.title] = o, se[e.title] = s, ce[e.title] = i, (y = {}) => {
139
+ const m = oe(y, e, n), C = Object.keys(t).reduce((c, b) => (c[b] = t[b].default, c), {});
140
+ return Object.assign(C, m);
103
141
  };
104
142
  }
105
- function ce(t, e) {
143
+ function le(t, e) {
106
144
  return { customClass: e.class, customStyle: e.style };
107
145
  }
108
- function ie(t, e, n) {
146
+ function pe(t, e, n) {
109
147
  return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
110
148
  }
111
- function le(t, e) {
149
+ function ue(t, e) {
112
150
  return e && e.contents && e.contents.length && e.contents.forEach((n) => {
113
151
  n.title && (n.text = n.title);
114
152
  }), {
@@ -116,16 +154,43 @@ function le(t, e) {
116
154
  buttonPosition: e.position
117
155
  };
118
156
  }
119
- const pe = /* @__PURE__ */ new Map([
120
- ["appearance", ce],
157
+ const fe = /* @__PURE__ */ new Map([
158
+ ["appearance", le],
121
159
  ["expanded", "expandStatus"],
122
- ["enableAccordion", ie],
123
- ["toolbar", le]
160
+ ["enableAccordion", pe],
161
+ ["toolbar", ue]
124
162
  ]);
125
- function ue(t, e, n) {
126
- return e;
163
+ function de(t, e, n, o) {
164
+ const s = Math.random().toString().slice(2, 6), i = n.parentComponentInstance;
165
+ Object.assign(e, {
166
+ id: `section-${s}`,
167
+ appearance: {
168
+ class: "f-section-in-mainsubcard"
169
+ },
170
+ enableAccordion: !1,
171
+ mainTitle: e.mainTitle || "标题"
172
+ });
173
+ const y = t.getSchemaByType("content-container");
174
+ Object.assign(y, {
175
+ id: `container-${s}`,
176
+ appearance: {
177
+ class: "f-struct-wrapper"
178
+ },
179
+ contents: [e]
180
+ });
181
+ const m = i.schema;
182
+ switch (m && m.type) {
183
+ case ae.splitter.type: {
184
+ e.appearance.class = "f-section-in-main";
185
+ break;
186
+ }
187
+ }
188
+ return y;
127
189
  }
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 = {
190
+ function ye(t, e, n, o) {
191
+ return n.parentComponentInstance ? de(t, e, n) : e;
192
+ }
193
+ const be = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-design.gitee.io/section.schema.json", he = "section", ge = "A Farris Container Component", Ce = "object", ve = {
129
194
  id: {
130
195
  description: "The unique identifier for a Section",
131
196
  type: "string"
@@ -250,121 +315,18 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
250
315
  },
251
316
  default: null
252
317
  }
253
- }, ge = [
318
+ }, je = [
254
319
  "id",
255
320
  "type",
256
321
  "contents"
257
- ], ve = {
258
- $schema: fe,
259
- $id: de,
260
- title: ye,
261
- description: be,
262
- type: he,
263
- properties: me,
264
- required: ge
265
- }, Ce = "section", je = "A Farris Container Component", Ae = "object", Te = {
266
- basic: {
267
- title: "基本信息",
268
- description: "Basic Infomation",
269
- properties: {
270
- id: {
271
- title: "标识",
272
- type: "string",
273
- description: "The identifier of a component.",
274
- readonly: !0
275
- },
276
- type: {
277
- title: "组件类型",
278
- type: "enum",
279
- description: "The type of a component.",
280
- editor: {
281
- type: "combo-list",
282
- textField: "value",
283
- valueField: "key",
284
- data: [
285
- {
286
- key: "section",
287
- value: "分组面板"
288
- }
289
- ]
290
- }
291
- },
292
- mainTitle: {
293
- title: "主标题",
294
- type: "string",
295
- description: ""
296
- },
297
- subTitle: {
298
- title: "副标题",
299
- type: "string",
300
- description: ""
301
- }
302
- }
303
- },
304
- appearance: {
305
- title: "样式",
306
- description: "Appearance",
307
- properties: {
308
- class: {
309
- description: "组件的CSS样式",
310
- title: "class样式"
311
- },
312
- style: {
313
- description: "组件的内容样式",
314
- title: "style样式"
315
- },
316
- fill: {
317
- title: "填充内容区域",
318
- type: "boolean",
319
- description: "To fill the space of parent container in flex layout."
320
- },
321
- showHeader: {
322
- title: "显示标题区域",
323
- type: "boolean",
324
- description: ""
325
- },
326
- mainTitle: {
327
- title: "主标题",
328
- type: "string",
329
- description: "",
330
- visible: {
331
- showHeader: !0
332
- }
333
- },
334
- subTitle: {
335
- title: "副标题",
336
- type: "string",
337
- description: "",
338
- visible: {
339
- showHeader: !0
340
- }
341
- },
342
- enableAccordion: {
343
- title: "允许收折",
344
- type: "boolean",
345
- description: "",
346
- visible: {
347
- showHeader: !0
348
- }
349
- }
350
- }
351
- },
352
- extends: {
353
- title: "扩展",
354
- description: "",
355
- properties: {
356
- contentClass: {
357
- title: "内容区域样式",
358
- type: "string",
359
- description: ""
360
- }
361
- }
362
- }
363
- }, we = {
364
- title: Ce,
365
- description: je,
366
- type: Ae,
367
- categories: Te
322
+ ], Te = {
323
+ $schema: be,
324
+ $id: me,
325
+ title: he,
326
+ description: ge,
327
+ type: Ce,
328
+ properties: ve,
329
+ required: je
368
330
  }, L = {
369
331
  /** 设置内容区域样式 */
370
332
  contentClass: { type: String, default: "" },
@@ -409,24 +371,24 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
409
371
  // toolbarPosition: { type: String, default: '' },
410
372
  // toolbarButtons: { type: Array<object>, default: [] },
411
373
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
412
- }, G = ae(L, ve, pe, ue, we);
413
- function Se(t, e, n) {
414
- let r;
415
- function a() {
416
- !t || !e.value || (n.value = !n.value, n.value ? l() : h());
374
+ }, U = ie(L, Te, fe, ye);
375
+ function Ae(t, e, n) {
376
+ let o;
377
+ function s() {
378
+ !t || !e.value || (n.value = !n.value, n.value ? i() : y());
417
379
  }
418
- function l() {
419
- r = t.value.nextElementSibling;
380
+ function i() {
381
+ o = t.value.nextElementSibling;
420
382
  const C = document && document.querySelector("body");
421
- C && (C.appendChild(t.value), t.value.style.zIndex = v());
383
+ C && (C.appendChild(t.value), t.value.style.zIndex = m());
422
384
  }
423
- function h() {
424
- r ? e.value.insertBefore(
385
+ function y() {
386
+ o ? e.value.insertBefore(
425
387
  t.value,
426
- r
388
+ o
427
389
  ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
428
390
  }
429
- function v(C = 1) {
391
+ function m(C = 1) {
430
392
  const c = [
431
393
  "body>.f-datagrid-settings-simple-host",
432
394
  "body>div",
@@ -437,170 +399,170 @@ function Se(t, e, n) {
437
399
  "body>.popover.show",
438
400
  "body>filter-row-panel>.f-datagrid-filter-panel",
439
401
  "body>.f-section-maximize"
440
- ], d = Array.from(document.body.querySelectorAll(c.join(","))).filter((p) => p).map((p) => {
441
- const { display: m, zIndex: o } = window.getComputedStyle(p);
442
- return m === "none" ? 0 : parseInt(o, 10);
443
- }).filter((p) => p);
444
- let u = Math.max(...d);
445
- return u < 1040 && (u = 1040), u + C;
402
+ ], b = Array.from(document.body.querySelectorAll(c.join(","))).filter((u) => u).map((u) => {
403
+ const { display: g, zIndex: r } = window.getComputedStyle(u);
404
+ return g === "none" ? 0 : parseInt(r, 10);
405
+ }).filter((u) => u);
406
+ let f = Math.max(...b);
407
+ return f < 1040 && (f = 1040), f + C;
446
408
  }
447
- return { onClickMaxMinIcon: a };
409
+ return { onClickMaxMinIcon: s };
448
410
  }
449
411
  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(() => {
412
+ const n = w(t.buttons), o = T(() => t.buttonPosition === "inHead" ? "right" : "left"), s = T(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), i = T(() => {
451
413
  t.buttons && t.buttons.length > 0 && t.buttonPosition;
452
414
  });
453
- function h(v) {
454
- e.emit("Click", v);
415
+ function y(m) {
416
+ e.emit("Click", m);
455
417
  }
456
- return () => l && P(K, {
457
- customClass: a.value,
418
+ return () => i && M(K, {
419
+ customClass: s.value,
458
420
  items: n.value,
459
- onClick: h,
460
- alignment: r.value
421
+ onClick: y,
422
+ alignment: o.value
461
423
  }, null);
462
424
  }
463
- function Q(t, e, n, r, a, l) {
464
- S(t.subTitle);
465
- const h = w(() => t.buttonPosition), v = V(t, e), {
425
+ function Z(t, e, n, o, s, i) {
426
+ w(t.subTitle);
427
+ const y = T(() => t.buttonPosition), m = V(t, e), {
466
428
  onClickMaxMinIcon: C
467
- } = Se(r, a, l), c = w(() => !!t.subTitle), d = w(() => t.enableMaximize), u = w(() => t.enableAccordion != ""), p = w(() => {
468
- const y = {
429
+ } = Ae(o, s, i), c = T(() => !!t.subTitle), b = T(() => t.enableMaximize), f = T(() => t.enableAccordion != ""), u = T(() => {
430
+ const d = {
469
431
  "f-section-header": !0
470
432
  };
471
- return e.slots.header && t.headerClass.split(" ").reduce((M, b) => (M[b] = !0, M), y), y;
433
+ return e.slots.header && t.headerClass.split(" ").reduce((S, h) => (S[h] = !0, S), d), d;
472
434
  });
473
- function m(y) {
474
- y.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
435
+ function g(d) {
436
+ d.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
475
437
  }
476
- function o() {
477
- const y = w(() => ({
438
+ function r() {
439
+ const d = T(() => ({
478
440
  btn: !0,
479
441
  "f-btn-collapse-expand": !0,
480
442
  "f-btn-mx": !0,
481
443
  "f-state-expand": n.value
482
- })), j = w(() => ({
444
+ })), v = T(() => ({
483
445
  "f-icon": !0,
484
- "f-icon-maximize": !l.value,
485
- "f-icon-minimize": l.value
446
+ "f-icon-maximize": !i.value,
447
+ "f-icon-minimize": i.value
486
448
  }));
487
- return P("div", {
449
+ return M("div", {
488
450
  class: "f-max-accordion"
489
- }, [d.value ? P("span", {
490
- class: j.value,
451
+ }, [b.value ? M("span", {
452
+ class: v.value,
491
453
  onClick: C
492
- }, null) : "", u.value ? P("button", {
493
- class: y.value,
494
- onClick: m
495
- }, [P("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
454
+ }, null) : "", f.value ? M("button", {
455
+ class: d.value,
456
+ onClick: g
457
+ }, [M("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
496
458
  }
497
- function i() {
498
- return e.slots.header ? P("div", {
499
- class: p.value
459
+ function l() {
460
+ return e.slots.header ? M("div", {
461
+ class: u.value
500
462
  }, [e.slots.header()]) : "";
501
463
  }
502
- function s() {
503
- return P("div", {
464
+ function a() {
465
+ return M("div", {
504
466
  class: "f-title",
505
- onClick: m
506
- }, [P("h4", {
467
+ onClick: g
468
+ }, [M("h4", {
507
469
  class: "f-title-text"
508
- }, [t.mainTitle]), c.value && P("span", null, [t.subTitle])]);
470
+ }, [t.mainTitle]), c.value && M("span", null, [t.subTitle])]);
509
471
  }
510
- function f() {
511
- const y = w(() => {
512
- const j = {
472
+ function p() {
473
+ const d = T(() => {
474
+ const v = {
513
475
  "f-content": !0
514
476
  };
515
- return t.headerContentClass && t.headerContentClass.split(" ").reduce((b, A) => (b[A] = !0, b), j), j;
477
+ return t.headerContentClass && t.headerContentClass.split(" ").reduce((h, P) => (h[P] = !0, h), v), v;
516
478
  });
517
- return e.slots.headerContent ? P("div", {
518
- class: y.value
479
+ return e.slots.headerContent ? M("div", {
480
+ class: d.value
519
481
  }, [e.slots.headerContent()]) : "";
520
482
  }
521
- function g() {
522
- return P("div", {
523
- class: p.value
524
- }, [e.slots.headerTitle ? e.slots.headerTitle() : s(), f(), h.value === "inHead" && v(), (d.value || u.value) && o()]);
483
+ function j() {
484
+ return M("div", {
485
+ class: u.value
486
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : a(), p(), y.value === "inHead" && m(), (b.value || f.value) && r()]);
525
487
  }
526
- return () => t.showHeader && (e.slots.header ? i() : g());
488
+ return () => t.showHeader && (e.slots.header ? l() : j());
527
489
  }
528
- const Pe = ["moz", "ms", "webkit"];
529
- function Me() {
490
+ const we = ["moz", "ms", "webkit"];
491
+ function Se() {
530
492
  let t = 0;
531
493
  return (e) => {
532
- const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
533
- e(n + r);
534
- }, r);
535
- return t = n + r, a;
494
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), s = setTimeout(() => {
495
+ e(n + o);
496
+ }, o);
497
+ return t = n + o, s;
536
498
  };
537
499
  }
538
- function De() {
500
+ function Pe() {
539
501
  if (typeof window > "u")
540
502
  return () => 0;
541
503
  if (window.requestAnimationFrame)
542
504
  return window.requestAnimationFrame.bind(window);
543
- const t = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
544
- return t ? window[`${t}RequestAnimationFrame`] : Me();
505
+ const t = we.filter((e) => `${e}RequestAnimationFrame` in window)[0];
506
+ return t ? window[`${t}RequestAnimationFrame`] : Se();
545
507
  }
546
- De();
547
- function E(t, e) {
548
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, a) => (a && (r[a] = !0), r), t), t;
508
+ Pe();
509
+ function O(t, e) {
510
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, s) => (s && (o[s] = !0), o), t), t;
549
511
  }
550
- const N = /* @__PURE__ */ W({
512
+ const x = /* @__PURE__ */ W({
551
513
  name: "FSection",
552
514
  props: L,
553
515
  emits: [],
554
516
  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
- const s = {
517
+ const n = w();
518
+ let o = w();
519
+ const s = w(t.customClass), i = T(() => t.enableAccordion), y = w(t.expandStatus), m = T(() => t.buttonPosition), C = w(!1), c = Z(t, e, y, n, o, C), b = V(t, e), f = T(() => {
520
+ const a = {
559
521
  "f-section": !0,
560
- "f-section-accordion": l.value === "default",
561
- "f-state-collapse": (l.value === "default" || l.value === "custom") && !h.value,
562
- "f-section-custom-accordion": l.value === "custom",
522
+ "f-section-accordion": i.value === "default",
523
+ "f-state-collapse": (i.value === "default" || i.value === "custom") && !y.value,
524
+ "f-section-custom-accordion": i.value === "custom",
563
525
  "f-section-fill": t.fill,
564
526
  "f-section-maximize": C.value
565
527
  };
566
- return E(s, a.value);
567
- }), p = w(() => E({
528
+ return O(a, s.value);
529
+ }), u = T(() => O({
568
530
  "f-section-content": !0
569
- }, t.contentClass)), m = w(() => E({
531
+ }, t.contentClass)), g = T(() => O({
570
532
  "f-section-extend": !0
571
- }, m.value));
572
- function o() {
573
- return e.slots.extend && P("div", {
574
- class: m.value
533
+ }, g.value));
534
+ function r() {
535
+ return e.slots.extend && M("div", {
536
+ class: g.value
575
537
  }, [e.slots.extend()]);
576
538
  }
577
- function i() {
578
- return P("div", {
579
- class: p.value
580
- }, [v.value === "inContent" && d(), e.slots.default && e.slots.default()]);
539
+ function l() {
540
+ return M("div", {
541
+ class: u.value
542
+ }, [m.value === "inContent" && b(), e.slots.default && e.slots.default()]);
581
543
  }
582
- return X(() => t.expandStatus, (s, f) => {
583
- s !== f && (h.value = s);
584
- }), _(() => {
585
- n && n.value && (r.value = n.value.parentElement);
586
- }), () => P("div", {
587
- class: u.value,
544
+ return Y(() => t.expandStatus, (a, p) => {
545
+ a !== p && (y.value = a);
546
+ }), G(() => {
547
+ n && n.value && (o.value = n.value.parentElement);
548
+ }), () => M("div", {
549
+ class: f.value,
588
550
  ref: n
589
- }, [c(), o(), i()]);
551
+ }, [c(), r(), l()]);
590
552
  }
591
553
  });
592
- function Oe() {
554
+ function Me() {
593
555
  function t(e) {
594
- var a, l;
556
+ var s, i;
595
557
  if (!e)
596
558
  return !1;
597
- const n = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
559
+ const n = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
598
560
  if (!n)
599
561
  return !1;
600
- const r = (l = n.schema.appearance) == null ? void 0 : l.class;
562
+ const o = (i = n.schema.appearance) == null ? void 0 : i.class;
601
563
  if (e.controlCategory === "input" || e.controlType === "form-group") {
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)
564
+ const y = n.schema.type, m = (y === "response-form" || y === "content-container") && o && o.includes("farris-form");
565
+ if (n.schema.type !== "response-layout-item" && !m)
604
566
  return !1;
605
567
  }
606
568
  return e.controlType !== "field-set";
@@ -609,7 +571,7 @@ function Oe() {
609
571
  basalDragulaRuleForContainer: t
610
572
  };
611
573
  }
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 = {
574
+ const ke = "https://json-schema.org/draft/2020-12/schema", De = "https://farris-design.gitee.io/dragging-rules.schema.json", Ee = "Dragging Rules", Oe = "The rules of designer canvas", xe = "object", Ne = {
613
575
  "f-page": {
614
576
  description: "The root class of page designed by farris.",
615
577
  type: "object",
@@ -1028,6 +990,80 @@ const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-
1028
990
  "f-list-nav-left": {
1029
991
  description: "",
1030
992
  type: "object"
993
+ },
994
+ "f-struct-data-grid-in-nav": {
995
+ description: "",
996
+ type: "object",
997
+ properties: {
998
+ contents: {
999
+ type: "object",
1000
+ properties: {
1001
+ "f-section-form": {
1002
+ description: "",
1003
+ type: "object",
1004
+ properties: {
1005
+ rules: {
1006
+ type: "object",
1007
+ properties: {
1008
+ canAccept: {
1009
+ type: "boolean",
1010
+ const: !1
1011
+ },
1012
+ fixed: {
1013
+ type: "boolean",
1014
+ const: !0
1015
+ },
1016
+ hidePadding: {
1017
+ type: "boolean",
1018
+ const: !0
1019
+ }
1020
+ }
1021
+ }
1022
+ }
1023
+ },
1024
+ "f-section-grid": {
1025
+ description: "",
1026
+ type: "object",
1027
+ properties: {
1028
+ rules: {
1029
+ type: "object",
1030
+ properties: {
1031
+ canAccept: {
1032
+ type: "boolean",
1033
+ const: !1
1034
+ },
1035
+ fixed: {
1036
+ type: "boolean",
1037
+ const: !0
1038
+ },
1039
+ hidePadding: {
1040
+ type: "boolean",
1041
+ const: !0
1042
+ }
1043
+ }
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1048
+ },
1049
+ rules: {
1050
+ type: "object",
1051
+ properties: {
1052
+ canAccept: {
1053
+ type: "boolean",
1054
+ const: !1
1055
+ },
1056
+ fixed: {
1057
+ type: "boolean",
1058
+ const: !0
1059
+ },
1060
+ hidePadding: {
1061
+ type: "boolean",
1062
+ const: !0
1063
+ }
1064
+ }
1065
+ }
1066
+ }
1031
1067
  }
1032
1068
  }
1033
1069
  }
@@ -1173,163 +1209,269 @@ const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-
1173
1209
  description: "",
1174
1210
  type: "object"
1175
1211
  }
1176
- }, xe = [], Be = {
1177
- $schema: Ee,
1178
- $id: ke,
1179
- title: Ne,
1180
- description: $e,
1181
- type: Fe,
1182
- properties: He,
1183
- required: xe
1184
- }, H = /* @__PURE__ */ new Map();
1185
- function Le() {
1186
- function t(o, i, s, f) {
1187
- var g;
1188
- if (typeof s == "number")
1189
- return ((g = f[o]) == null ? void 0 : g.length) === s;
1190
- if (typeof s == "object") {
1191
- const y = Object.keys(s)[0], j = s[y];
1192
- if (y === "not")
1193
- return Number(f[o].length) !== Number(j);
1194
- if (y === "moreThan")
1195
- return Number(f[o].length) >= Number(j);
1196
- if (y === "lessThan")
1197
- return Number(f[o].length) <= Number(j);
1212
+ }, Fe = {
1213
+ $schema: ke,
1214
+ $id: De,
1215
+ title: Ee,
1216
+ description: Oe,
1217
+ type: xe,
1218
+ properties: Ne
1219
+ }, B = /* @__PURE__ */ new Map();
1220
+ function Be() {
1221
+ function t(r, l, a, p) {
1222
+ var j;
1223
+ if (typeof a == "number")
1224
+ return ((j = p[r]) == null ? void 0 : j.length) === a;
1225
+ if (typeof a == "object") {
1226
+ const d = Object.keys(a)[0], v = a[d];
1227
+ if (d === "not")
1228
+ return Number(p[r].length) !== Number(v);
1229
+ if (d === "moreThan")
1230
+ return Number(p[r].length) >= Number(v);
1231
+ if (d === "lessThan")
1232
+ return Number(p[r].length) <= Number(v);
1198
1233
  }
1199
1234
  return !1;
1200
1235
  }
1201
- function e(o, i, s, f) {
1202
- return typeof s == "boolean" ? f.childrenClassList.includes(i) === !!s : !1;
1236
+ function e(r, l, a, p) {
1237
+ return typeof a == "boolean" ? p.childrenClassList.includes(l) === !!a : !1;
1203
1238
  }
1204
- function n(o, i, s, f) {
1205
- return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
1239
+ function n(r, l, a, p) {
1240
+ return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1206
1241
  }
1207
- function r(o, i, s, f) {
1208
- return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
1242
+ function o(r, l, a, p) {
1243
+ return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1209
1244
  }
1210
- const a = /* @__PURE__ */ new Map([
1245
+ const s = /* @__PURE__ */ new Map([
1211
1246
  ["length", t],
1212
1247
  ["hasChildren", e],
1213
- ["hasSibling", r],
1248
+ ["hasSibling", o],
1214
1249
  ["hasParent", n]
1215
1250
  ]);
1216
- function l(o, i) {
1217
- const s = o;
1218
- return typeof i == "number" ? [{ target: s, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((f) => {
1219
- if (f === "length")
1220
- return { target: s, operator: "length", param: null, value: i[f] };
1221
- const g = f, y = i[f];
1222
- return { target: s, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: g, value: y };
1251
+ function i(r, l) {
1252
+ const a = r;
1253
+ return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((p) => {
1254
+ if (p === "length")
1255
+ return { target: a, operator: "length", param: null, value: l[p] };
1256
+ const j = p, d = l[p];
1257
+ return { target: a, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: j, value: d };
1223
1258
  }) : [];
1224
1259
  }
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;
1260
+ function y(r, l) {
1261
+ if (s.has(r.operator)) {
1262
+ const a = s.get(r.operator);
1263
+ return a && a(r.target, r.param, r.value, l) || !1;
1229
1264
  }
1230
1265
  return !1;
1231
1266
  }
1232
- function v(o, i) {
1233
- return Object.keys(o).reduce((y, j) => {
1234
- const M = l(j, o[j]);
1235
- return y.push(...M), y;
1236
- }, []).reduce((y, j) => y && h(j, i), !0);
1267
+ function m(r, l) {
1268
+ return Object.keys(r).reduce((d, v) => {
1269
+ const S = i(v, r[v]);
1270
+ return d.push(...S), d;
1271
+ }, []).reduce((d, v) => d && y(v, l), !0);
1237
1272
  }
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
- return f ? !b.includes(!1) : b.includes(!0);
1273
+ function C(r, l) {
1274
+ const a = Object.keys(r), p = a.includes("allOf"), j = a.includes("anyOf"), d = p || j, h = (d ? r[d ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((A) => m(A, l));
1275
+ return p ? !h.includes(!1) : h.includes(!0);
1241
1276
  }
1242
- function c(o, i) {
1243
- const s = o.const;
1244
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s, i) : !1 : !1;
1277
+ function c(r, l) {
1278
+ const a = r.const;
1279
+ return a ? typeof a == "boolean" ? a : typeof a == "object" ? C(a, l) : !1 : !1;
1245
1280
  }
1246
- function d(o) {
1247
- return (i) => {
1248
- const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
1249
- return o && o.properties && Object.keys(o.properties).reduce((f, g) => {
1250
- const y = o.properties[g];
1251
- return f[g] = c(y, i), f;
1252
- }, s), s;
1281
+ function b(r) {
1282
+ return (l) => {
1283
+ const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
1284
+ return r && r.properties && Object.keys(r.properties).reduce((p, j) => {
1285
+ const d = r.properties[j];
1286
+ return p[j] = c(d, l), p;
1287
+ }, a), a;
1253
1288
  };
1254
1289
  }
1255
- function u(o, i, s) {
1256
- if (i.type === "object" && i.properties) {
1257
- const { rules: f, contents: g } = i.properties;
1258
- s.set(o, d(f)), g && Object.keys(g.properties).forEach(
1259
- (y) => u(y, g.properties[y], s)
1290
+ function f(r, l, a) {
1291
+ if (l.type === "object" && l.properties) {
1292
+ const { rules: p, contents: j } = l.properties;
1293
+ a.set(r, b(p)), j && Object.keys(j.properties).forEach(
1294
+ (d) => f(d, j.properties[d], a)
1260
1295
  );
1261
1296
  }
1262
1297
  }
1263
- function p() {
1264
- const { properties: o } = Be;
1265
- Object.keys(o).forEach((i) => {
1266
- u(i, o[i], H);
1298
+ function u() {
1299
+ const { properties: r } = Fe;
1300
+ Object.keys(r).forEach((l) => {
1301
+ f(l, r[l], B);
1267
1302
  });
1268
1303
  }
1269
- function m(o, i) {
1270
- const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1271
- return H.has(o) ? H.get(o)(i) : s;
1304
+ function g(r, l) {
1305
+ const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
1306
+ return B.has(r) ? B.get(r)(l) : a;
1272
1307
  }
1273
- return p(), { getRuleValue: m };
1308
+ return u(), { getRuleValue: g };
1274
1309
  }
1275
- function Ve(t, e) {
1276
- const n = S(!1), r = S(!1), a = Le();
1277
- let l = !0, h = !1, v, C = !1;
1278
- function c(i) {
1279
- return !(!Oe().basalDragulaRuleForContainer(i) || !l);
1310
+ const $e = {
1311
+ title: "section",
1312
+ description: "A Farris Container Component",
1313
+ type: "object",
1314
+ categories: {
1315
+ basic: {
1316
+ title: "基本信息",
1317
+ description: "Basic Infomation",
1318
+ properties: {
1319
+ id: {
1320
+ title: "标识",
1321
+ type: "string",
1322
+ description: "The identifier of a component.",
1323
+ readonly: !0
1324
+ },
1325
+ type: {
1326
+ title: "组件类型",
1327
+ type: "enum",
1328
+ description: "The type of a component.",
1329
+ editor: {
1330
+ type: "combo-list",
1331
+ textField: "value",
1332
+ valueField: "key",
1333
+ data: [
1334
+ {
1335
+ key: "section",
1336
+ value: "分组面板"
1337
+ }
1338
+ ]
1339
+ }
1340
+ },
1341
+ mainTitle: {
1342
+ title: "主标题",
1343
+ type: "string",
1344
+ description: "",
1345
+ visible: {
1346
+ showHeader: !0
1347
+ }
1348
+ },
1349
+ subTitle: {
1350
+ title: "副标题",
1351
+ type: "string",
1352
+ description: "",
1353
+ visible: {
1354
+ showHeader: !0
1355
+ }
1356
+ }
1357
+ },
1358
+ setPropertyRelates(t, e) {
1359
+ if (t)
1360
+ switch (t && t.propertyID) {
1361
+ case "mainTitle": {
1362
+ t.needRefreshControlTree = !0;
1363
+ break;
1364
+ }
1365
+ }
1366
+ }
1367
+ },
1368
+ appearance: {
1369
+ title: "样式",
1370
+ description: "Appearance",
1371
+ properties: {
1372
+ class: {
1373
+ description: "组件的CSS样式",
1374
+ title: "class样式"
1375
+ },
1376
+ style: {
1377
+ description: "组件的内容样式",
1378
+ title: "style样式"
1379
+ },
1380
+ showHeader: {
1381
+ title: "显示标题区域",
1382
+ type: "boolean",
1383
+ description: ""
1384
+ },
1385
+ fill: {
1386
+ title: "填充内容区域",
1387
+ type: "boolean",
1388
+ description: "To fill the space of parent container in flex layout."
1389
+ },
1390
+ enableAccordion: {
1391
+ title: "允许收折",
1392
+ type: "boolean",
1393
+ description: "",
1394
+ visible: {
1395
+ showHeader: !0
1396
+ }
1397
+ }
1398
+ }
1399
+ },
1400
+ extends: {
1401
+ title: "扩展",
1402
+ description: "",
1403
+ properties: {
1404
+ contentClass: {
1405
+ title: "内容区域样式",
1406
+ type: "string",
1407
+ description: ""
1408
+ }
1409
+ }
1410
+ }
1280
1411
  }
1281
- function d() {
1412
+ };
1413
+ function He(t, e) {
1414
+ const n = w(!1), o = w(!1), s = Be();
1415
+ let i = !0, y = !1, m, C = !1;
1416
+ function c(a) {
1417
+ return $e;
1418
+ }
1419
+ function b(a) {
1420
+ return !(!Me().basalDragulaRuleForContainer(a) || !i);
1421
+ }
1422
+ function f() {
1282
1423
  return !C;
1283
1424
  }
1284
1425
  function u() {
1285
1426
  return !C;
1286
1427
  }
1287
- function p() {
1288
- return h;
1428
+ function g() {
1429
+ return y;
1289
1430
  }
1290
- function m(i) {
1431
+ function r(a) {
1291
1432
  }
1292
- function o() {
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
- const q = F && F.appearance ? F.appearance.class : "", U = q ? q.split(" ") : [];
1296
- return z.push(...U), z;
1297
- }, []) : [], A = e, T = A && A.appearance && A.appearance.class || "", O = T ? T.split(" ") : [];
1298
- v = {
1299
- componentClass: s,
1300
- componentClassList: f,
1301
- childContents: g,
1302
- firstChildContent: y,
1303
- firstChildClass: j,
1304
- firstChildClassList: M,
1433
+ function l() {
1434
+ n.value = !1, o.value = !1, C = !1, i = !0;
1435
+ const a = t, p = a.appearance && a.appearance.class || "", j = p ? p.split(" ") : [], d = a.contents || [], v = d.length ? d[0] : null, S = v && v.appearance && v.appearance.class || "", h = S ? S.split(" ") : [], P = d.length ? d.reduce((z, F) => {
1436
+ const q = F && F.appearance ? F.appearance.class : "", X = q ? q.split(" ") : [];
1437
+ return z.push(...X), z;
1438
+ }, []) : [], A = e, k = A && A.appearance && A.appearance.class || "", E = k ? k.split(" ") : [];
1439
+ m = {
1440
+ componentClass: p,
1441
+ componentClassList: j,
1442
+ childContents: d,
1443
+ firstChildContent: v,
1444
+ firstChildClass: S,
1445
+ firstChildClassList: h,
1305
1446
  parent: A,
1306
- parentClass: T,
1307
- parentClassList: O,
1308
- children: g,
1309
- childrenClassList: b
1447
+ parentClass: k,
1448
+ parentClassList: E,
1449
+ children: d,
1450
+ childrenClassList: P
1310
1451
  };
1311
- const { canAccept: k, fixed: D, hidePadding: $ } = a.getRuleValue(f[0], v);
1312
- return l = k, h = $, C = D, !0;
1452
+ const { canAccept: D, fixed: N, hidePadding: Q } = s.getRuleValue(j[0], m);
1453
+ return i = D, y = Q, C = N, !0;
1313
1454
  }
1314
1455
  return {
1315
- canAccepts: c,
1316
- checkCanDeleteComponent: d,
1456
+ canAccepts: b,
1457
+ checkCanDeleteComponent: f,
1317
1458
  checkCanMoveComponent: u,
1318
- hideNestedPaddingInDesginerView: p,
1319
- onAcceptMovedChildElement: m,
1320
- resolveComponentContext: o,
1459
+ hideNestedPaddingInDesginerView: g,
1460
+ onAcceptMovedChildElement: r,
1461
+ resolveComponentContext: l,
1321
1462
  triggerBelongedComponentToMoveWhenMoved: n,
1322
- triggerBelongedComponentToDeleteWhenDeleted: r
1463
+ triggerBelongedComponentToDeleteWhenDeleted: o,
1464
+ getPropsConfig: c
1323
1465
  };
1324
1466
  }
1325
- function ze(t, e, n) {
1326
- var M;
1327
- function r() {
1467
+ function Le(t, e, n) {
1468
+ var S;
1469
+ function o() {
1328
1470
  n != null && n.resolveComponentContext && n.resolveComponentContext();
1329
1471
  }
1330
- r();
1331
- const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", h = S();
1332
- function v() {
1472
+ o();
1473
+ const s = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", y = w();
1474
+ function m() {
1333
1475
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1334
1476
  }
1335
1477
  function C() {
@@ -1338,137 +1480,137 @@ function ze(t, e, n) {
1338
1480
  function c() {
1339
1481
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1340
1482
  }
1341
- function d() {
1483
+ function b() {
1342
1484
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1343
1485
  }
1344
- function u(b) {
1345
- if (!b || !b.value)
1486
+ function f(h) {
1487
+ if (!h || !h.value)
1346
1488
  return null;
1347
- if (b.value.schema && b.value.schema.type === "component")
1348
- return b.value;
1349
- const A = S(b == null ? void 0 : b.value.parent), T = u(A);
1350
- return T || null;
1489
+ if (h.value.schema && h.value.schema.type === "component")
1490
+ return h.value;
1491
+ const P = w(h == null ? void 0 : h.value.parent), A = f(P);
1492
+ return A || null;
1351
1493
  }
1352
- function p(b = e) {
1353
- const { componentInstance: A, designerItemElementRef: T } = b;
1354
- return !A || !A.value ? null : A.value.canMove ? T : p(b.parent);
1494
+ function u(h = e) {
1495
+ const { componentInstance: P, designerItemElementRef: A } = h;
1496
+ return !P || !P.value ? null : P.value.canMove ? A : u(h.parent);
1355
1497
  }
1356
- function m(b) {
1357
- return !!n && n.canAccepts(b);
1498
+ function g(h) {
1499
+ return !!n && n.canAccepts(h);
1358
1500
  }
1359
- function o() {
1501
+ function r() {
1360
1502
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1361
1503
  }
1362
- function i() {
1504
+ function l() {
1363
1505
  }
1364
- function s(b, A) {
1365
- A && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(A);
1506
+ function a(h, P) {
1507
+ P && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(P);
1366
1508
  }
1367
- function f(b) {
1368
- const { componentType: A } = b;
1369
- let T = x(A, b);
1370
- n && n.onResolveNewComponentSchema && (T = n.onResolveNewComponentSchema(b, T));
1371
- const O = A.toLowerCase().replace("-", "_");
1372
- return T && !T.id && T.type === A && (T.id = `${O}_${Math.random().toString().slice(2, 6)}`), T;
1509
+ function p(h, P) {
1510
+ const { componentType: A } = h;
1511
+ let k = $(A, h, P);
1512
+ n && n.onResolveNewComponentSchema && (k = n.onResolveNewComponentSchema(h, k));
1513
+ const E = A.toLowerCase().replace("-", "_");
1514
+ return k && !k.id && k.type === A && (k.id = `${E}_${Math.random().toString().slice(2, 6)}`), k;
1373
1515
  }
1374
- function g(b, A) {
1375
- const T = String(b.getAttribute("data-controltype")), O = b.getAttribute("data-feature"), k = O ? JSON.parse(O) : {};
1376
- k.parentComponentInstance = h.value;
1377
- let D = x(T, k);
1378
- n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(b, A, D));
1379
- const $ = T.toLowerCase().replace("-", "_");
1380
- return D && !D.id && D.type === T && (D.id = `${$}_${Math.random().toString().slice(2, 6)}`), D;
1516
+ function j(h, P) {
1517
+ const A = String(h.getAttribute("data-controltype")), k = h.getAttribute("data-feature"), E = k ? JSON.parse(k) : {};
1518
+ E.parentComponentInstance = y.value;
1519
+ let D = $(A, E);
1520
+ n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, P, D));
1521
+ const N = A.toLowerCase().replace("-", "_");
1522
+ return D && !D.id && D.type === A && (D.id = `${N}_${Math.random().toString().slice(2, 6)}`), D;
1381
1523
  }
1382
- function y(b) {
1524
+ function d(h) {
1383
1525
  }
1384
- function j(...b) {
1526
+ function v(...h) {
1385
1527
  if (n && n.getPropsConfig)
1386
- return n.getPropsConfig(...b);
1528
+ return n.getPropsConfig(...h);
1387
1529
  }
1388
- return h.value = {
1389
- canMove: v(),
1530
+ return y.value = {
1531
+ canMove: m(),
1390
1532
  canSelectParent: C(),
1391
1533
  canDelete: c(),
1392
- canNested: !d(),
1534
+ canNested: !b(),
1393
1535
  contents: e == null ? void 0 : e.schema.contents,
1394
1536
  elementRef: t,
1395
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
1537
+ parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
1396
1538
  schema: e == null ? void 0 : e.schema,
1397
- styles: a,
1398
- designerClass: l,
1399
- canAccepts: m,
1400
- getBelongedComponentInstance: u,
1401
- getDraggableDesignItemElement: p,
1402
- getDraggingDisplayText: o,
1403
- getPropConfig: j,
1404
- getDragScopeElement: i,
1405
- onAcceptMovedChildElement: s,
1406
- onAcceptNewChildElement: g,
1407
- onChildElementMovedOut: y,
1408
- addNewChildComponentSchema: f,
1409
- updateDragAndDropRules: r,
1410
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || S(!1),
1411
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
1412
- }, h;
1539
+ styles: s,
1540
+ designerClass: i,
1541
+ canAccepts: g,
1542
+ getBelongedComponentInstance: f,
1543
+ getDraggableDesignItemElement: u,
1544
+ getDraggingDisplayText: r,
1545
+ getPropConfig: v,
1546
+ getDragScopeElement: l,
1547
+ onAcceptMovedChildElement: a,
1548
+ onAcceptNewChildElement: j,
1549
+ onChildElementMovedOut: d,
1550
+ addNewChildComponentSchema: p,
1551
+ updateDragAndDropRules: o,
1552
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || w(!1),
1553
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
1554
+ }, y;
1413
1555
  }
1414
- const qe = /* @__PURE__ */ W({
1556
+ const Ve = /* @__PURE__ */ W({
1415
1557
  name: "FSectionDesign",
1416
1558
  props: L,
1417
1559
  emits: [],
1418
1560
  setup(t, e) {
1419
- var j;
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
- v.value.styles = "display: inherit;", _(() => {
1424
- n.value.componentInstance = v;
1425
- }), e.expose(v.value);
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
- const M = {
1561
+ var v;
1562
+ const n = w(), o = w();
1563
+ let s = w();
1564
+ const i = R("design-item-context"), y = He(i.schema, (v = i.parent) == null ? void 0 : v.schema), m = Le(n, i, y);
1565
+ m.value.styles = "display: inherit;", G(() => {
1566
+ n.value.componentInstance = m;
1567
+ }), e.expose(m.value);
1568
+ const C = w(t.customClass), c = T(() => t.enableAccordion), b = w(t.expandStatus), f = T(() => t.buttonPosition), u = w(!1), g = Z(t, e, b, o, s, u), r = V(t, e), l = T(() => {
1569
+ const S = {
1428
1570
  "f-section": !0,
1429
1571
  "f-section-accordion": c.value === "default",
1430
- "f-state-collapse": (c.value === "default" || c.value === "custom") && !d.value,
1572
+ "f-state-collapse": (c.value === "default" || c.value === "custom") && !b.value,
1431
1573
  "f-section-custom-accordion": c.value === "custom",
1432
1574
  "f-section-fill": t.fill,
1433
- "f-section-maximize": p.value,
1575
+ "f-section-maximize": u.value,
1434
1576
  "f-utils-fill": !0,
1435
1577
  "p-0": !0
1436
1578
  };
1437
- return E(M, C.value);
1438
- }), s = w(() => E({
1579
+ return O(S, C.value);
1580
+ }), a = T(() => O({
1439
1581
  "f-section-content": !0,
1440
1582
  "drag-container": !0
1441
- }, t.contentClass)), f = w(() => E({
1583
+ }, t.contentClass)), p = T(() => O({
1442
1584
  "f-section-extend": !0
1443
- }, f.value));
1444
- function g() {
1445
- return e.slots.extend && P("div", {
1446
- class: f.value
1585
+ }, p.value));
1586
+ function j() {
1587
+ return e.slots.extend && M("div", {
1588
+ class: p.value
1447
1589
  }, [e.slots.extend()]);
1448
1590
  }
1449
- function y() {
1450
- return P("div", {
1451
- class: s.value,
1591
+ function d() {
1592
+ return M("div", {
1593
+ class: a.value,
1452
1594
  ref: n,
1453
- "data-dragref": `${l.schema.id}-container`
1454
- }, [u.value === "inContent" && o(), e.slots.default && e.slots.default()]);
1595
+ "data-dragref": `${i.schema.id}-container`
1596
+ }, [f.value === "inContent" && r(), e.slots.default && e.slots.default()]);
1455
1597
  }
1456
- return () => P("div", {
1457
- class: i.value,
1458
- ref: r
1459
- }, [m(), g(), y()]);
1598
+ return () => M("div", {
1599
+ class: l.value,
1600
+ ref: o
1601
+ }, [g(), j(), d()]);
1460
1602
  }
1461
1603
  });
1462
- N.register = (t, e, n, r) => {
1463
- t.section = N, e.section = G;
1604
+ x.register = (t, e, n, o) => {
1605
+ t.section = x, e.section = U;
1464
1606
  };
1465
- N.registerDesigner = (t, e, n) => {
1466
- t.section = qe, e.section = G;
1607
+ x.registerDesigner = (t, e, n) => {
1608
+ t.section = Ve, e.section = U;
1467
1609
  };
1468
- const Qe = I(N);
1610
+ const Je = ee(x);
1469
1611
  export {
1470
- N as Section,
1471
- Qe as default,
1472
- G as propsResolver,
1612
+ x as Section,
1613
+ Je as default,
1614
+ U as propsResolver,
1473
1615
  L as sectionProps
1474
1616
  };