@farris/ui-vue 1.2.7 → 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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,131 +1,196 @@
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 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
+ import K from "../response-toolbar/index.esm.js";
4
4
  import "bignumber.js";
5
- import { withInstall as I } from "@farris/ui-vue/components/common";
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;
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(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 $(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(n, e) {
21
- const t = B(e);
22
- return Object.keys(n).reduce((r, i) => (r[i] = n[i], r), t), t;
20
+ function te(t, e) {
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
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);
28
- if (typeof l == "string")
29
- r[l] = n[i];
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(i, n[i], n);
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[i] = n[i];
36
- return r;
35
+ o[s] = t[s];
36
+ return o;
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 oe(t, e, n = /* @__PURE__ */ new Map()) {
40
+ const o = te(t, e);
41
+ return ne(o, n);
42
42
  }
43
- function oe(n = {}) {
44
- function e(a, d, u, p) {
45
- if (typeof u == "number")
46
- return p[a].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[a].length) !== Number(o);
51
- if (m === "moreThan")
52
- return Number(p[a].length) >= Number(o);
53
- if (m === "lessThan")
54
- return Number(p[a].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 t(a, d, u, p) {
59
- return p[a] && p[a].propertyValue && String(p[a].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
- ["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) => {
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(a) {
76
- return Object.keys(a).reduce((u, p) => {
77
- const m = i(p, a[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(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 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(a, d) {
89
- return l(a).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(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));
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(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), {});
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(n, e) {
143
+ function le(t, e) {
106
144
  return { customClass: e.class, customStyle: e.style };
107
145
  }
108
- function ie(n, e, t) {
109
- return e ? { enableAccordion: t.accordionMode } : { enableAccordion: "" };
146
+ function pe(t, e, n) {
147
+ return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
110
148
  }
111
- function le(n, e) {
112
- return e && e.contents && e.contents.length && e.contents.forEach((t) => {
113
- t.title && (t.text = t.title);
149
+ function ue(t, e) {
150
+ return e && e.contents && e.contents.length && e.contents.forEach((n) => {
151
+ n.title && (n.text = n.title);
114
152
  }), {
115
153
  buttons: e.contents,
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(n, e, t) {
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;
189
+ }
190
+ function ye(t, e, n, o) {
191
+ return n.parentComponentInstance ? de(t, e, n) : e;
127
192
  }
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 = {
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,122 +315,19 @@ 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
- }, Se = {
364
- title: Ce,
365
- description: je,
366
- type: Ae,
367
- categories: Te
368
- }, V = {
322
+ ], Te = {
323
+ $schema: be,
324
+ $id: me,
325
+ title: he,
326
+ description: ge,
327
+ type: Ce,
328
+ properties: ve,
329
+ required: je
330
+ }, L = {
369
331
  /** 设置内容区域样式 */
370
332
  contentClass: { type: String, default: "" },
371
333
  /** 自定义样式 */
@@ -409,25 +371,25 @@ 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(V, ve, pe, ue, Se);
413
- function we(n, e, t) {
414
- let r;
415
- function i() {
416
- !n || !e.value || (t.value = !t.value, t.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 = n.value.nextElementSibling;
380
+ function i() {
381
+ o = t.value.nextElementSibling;
420
382
  const C = document && document.querySelector("body");
421
- C && (C.appendChild(n.value), n.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(
425
- n.value,
426
- r
427
- ) : e.value.appendChild(n.value), n.value.style.zIndex = null;
385
+ function y() {
386
+ o ? e.value.insertBefore(
387
+ t.value,
388
+ o
389
+ ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
428
390
  }
429
- function v(C = 1) {
430
- const a = [
391
+ function m(C = 1) {
392
+ const c = [
431
393
  "body>.f-datagrid-settings-simple-host",
432
394
  "body>div",
433
395
  "body>farris-dialog>.farris-modal.show",
@@ -437,179 +399,179 @@ function we(n, e, t) {
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(a.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: i };
409
+ return { onClickMaxMinIcon: s };
448
410
  }
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;
411
+ function V(t, e) {
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(() => {
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(R, {
457
- customClass: i.value,
458
- items: t.value,
459
- onClick: h,
460
- alignment: r.value
418
+ return () => i && M(K, {
419
+ customClass: s.value,
420
+ items: n.value,
421
+ onClick: y,
422
+ alignment: o.value
461
423
  }, null);
462
424
  }
463
- function Q(n, e, t, r, i, l) {
464
- w(n.subTitle);
465
- const h = S(() => n.buttonPosition), v = L(n, 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
- } = we(r, i, l), a = S(() => !!n.subTitle), d = S(() => n.enableMaximize), u = S(() => n.enableAccordion != ""), p = S(() => {
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 && n.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(), n.enableAccordion !== "" && (t.value = !t.value);
435
+ function g(d) {
436
+ d.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
475
437
  }
476
- function o() {
477
- const y = S(() => ({
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
- "f-state-expand": t.value
482
- })), j = S(() => ({
443
+ "f-state-expand": n.value
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, [t.value ? n.collapseLabel : n.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 c() {
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
- }, [n.mainTitle]), a.value && P("span", null, [n.subTitle])]);
470
+ }, [t.mainTitle]), c.value && M("span", null, [t.subTitle])]);
509
471
  }
510
- function f() {
511
- const y = S(() => {
512
- const j = {
472
+ function p() {
473
+ const d = T(() => {
474
+ const v = {
513
475
  "f-content": !0
514
476
  };
515
- return n.headerContentClass && n.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 () => n.showHeader && (e.slots.header ? c() : g());
488
+ return () => t.showHeader && (e.slots.header ? l() : j());
527
489
  }
528
- const Pe = ["moz", "ms", "webkit"];
529
- function Me() {
530
- let n = 0;
490
+ const we = ["moz", "ms", "webkit"];
491
+ function Se() {
492
+ let t = 0;
531
493
  return (e) => {
532
- const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), i = setTimeout(() => {
533
- e(t + r);
534
- }, r);
535
- return n = t + r, i;
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 n = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
544
- return n ? window[`${n}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(n, e) {
548
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, i) => (i && (r[i] = !0), r), n), n;
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
- props: V,
514
+ props: L,
553
515
  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(() => {
558
- const s = {
516
+ setup(t, e) {
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",
563
- "f-section-fill": n.fill,
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",
525
+ "f-section-fill": t.fill,
564
526
  "f-section-maximize": C.value
565
527
  };
566
- return E(s, i.value);
567
- }), p = S(() => E({
528
+ return O(a, s.value);
529
+ }), u = T(() => O({
568
530
  "f-section-content": !0
569
- }, n.contentClass)), m = S(() => 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 c() {
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(() => n.expandStatus, (s, f) => {
583
- s !== f && (h.value = s);
584
- }), _(() => {
585
- t && t.value && (r.value = t.value.parentElement);
586
- }), () => P("div", {
587
- class: u.value,
588
- ref: t
589
- }, [a(), o(), c()]);
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,
550
+ ref: n
551
+ }, [c(), r(), l()]);
590
552
  }
591
553
  });
592
- function Oe() {
593
- function n(e) {
594
- var i, l;
554
+ function Me() {
555
+ function t(e) {
556
+ var s, i;
595
557
  if (!e)
596
558
  return !1;
597
- const t = ((i = e.targetContainer) == null ? void 0 : i.componentInstance) && e.targetContainer.componentInstance.value;
598
- if (!t)
559
+ const n = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
560
+ if (!n)
599
561
  return !1;
600
- const r = (l = t.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 = t.schema.type, v = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
603
- if (t.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";
607
569
  }
608
570
  return {
609
- basalDragulaRuleForContainer: n
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,302 +1209,408 @@ 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 Ve() {
1186
- function n(o, c, 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, c, s, f) {
1202
- return typeof s == "boolean" ? f.childrenClassList.includes(c) === !!s : !1;
1236
+ function e(r, l, a, p) {
1237
+ return typeof a == "boolean" ? p.childrenClassList.includes(l) === !!a : !1;
1203
1238
  }
1204
- function t(o, c, s, f) {
1205
- return typeof s == "boolean" ? f.parentClassList.includes(c) === !!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, c, s, f) {
1208
- return typeof s == "boolean" ? f.parentClassList.includes(c) === !!s : !1;
1242
+ function o(r, l, a, p) {
1243
+ return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1209
1244
  }
1210
- const i = /* @__PURE__ */ new Map([
1211
- ["length", n],
1245
+ const s = /* @__PURE__ */ new Map([
1246
+ ["length", t],
1212
1247
  ["hasChildren", e],
1213
- ["hasSibling", r],
1214
- ["hasParent", t]
1248
+ ["hasSibling", o],
1249
+ ["hasParent", n]
1215
1250
  ]);
1216
- function l(o, c) {
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) => {
1219
- if (f === "length")
1220
- return { target: s, operator: "length", param: null, value: c[f] };
1221
- const g = f, y = c[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, 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;
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, c) {
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, c), !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, 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));
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 a(o, c) {
1243
- const s = o.const;
1244
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s, c) : !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 (c) => {
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] = a(y, c), 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, c, s) {
1256
- if (c.type === "object" && c.properties) {
1257
- const { rules: f, contents: g } = c.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((c) => {
1266
- u(c, o[c], 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, c) {
1270
- const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1271
- return H.has(o) ? H.get(o)(c) : 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 Le(n, e) {
1276
- const t = w(!1), r = w(!1), i = Ve();
1277
- let l = !0, h = !1, v, C = !1;
1278
- function a(c) {
1279
- return !(!Oe().basalDragulaRuleForContainer(c) || !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
+ }
1411
+ }
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);
1280
1421
  }
1281
- function d() {
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(c) {
1431
+ function r(a) {
1291
1432
  }
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) => {
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: $ } = i.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: a,
1316
- checkCanDeleteComponent: d,
1456
+ canAccepts: b,
1457
+ checkCanDeleteComponent: f,
1317
1458
  checkCanMoveComponent: u,
1318
- hideNestedPaddingInDesginerView: p,
1319
- onAcceptMovedChildElement: m,
1320
- resolveComponentContext: o,
1321
- triggerBelongedComponentToMoveWhenMoved: t,
1322
- triggerBelongedComponentToDeleteWhenDeleted: r
1459
+ hideNestedPaddingInDesginerView: g,
1460
+ onAcceptMovedChildElement: r,
1461
+ resolveComponentContext: l,
1462
+ triggerBelongedComponentToMoveWhenMoved: n,
1463
+ triggerBelongedComponentToDeleteWhenDeleted: o,
1464
+ getPropsConfig: c
1323
1465
  };
1324
1466
  }
1325
- function ze(n, e, t) {
1326
- var M;
1327
- function r() {
1328
- t != null && t.resolveComponentContext && t.resolveComponentContext();
1467
+ function Le(t, e, n) {
1468
+ var S;
1469
+ function o() {
1470
+ n != null && n.resolveComponentContext && n.resolveComponentContext();
1329
1471
  }
1330
- r();
1331
- const i = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", h = w();
1332
- function v() {
1333
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1472
+ o();
1473
+ const s = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", y = w();
1474
+ function m() {
1475
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1334
1476
  }
1335
1477
  function C() {
1336
1478
  return !1;
1337
1479
  }
1338
- function a() {
1339
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1480
+ function c() {
1481
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1340
1482
  }
1341
- function d() {
1342
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1483
+ function b() {
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 = w(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 !!t && t.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 c() {
1504
+ function l() {
1363
1505
  }
1364
- function s(b, A) {
1365
- A && t != null && t.onAcceptMovedChildElement && t.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
- t && t.onResolveNewComponentSchema && (T = t.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
- t && t.onAcceptNewChildElement && (D = t.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) {
1385
- if (t && t.getPropsConfig)
1386
- return t.getPropsConfig(...b);
1526
+ function v(...h) {
1527
+ if (n && n.getPropsConfig)
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
- canDelete: a(),
1392
- canNested: !d(),
1533
+ canDelete: c(),
1534
+ canNested: !b(),
1393
1535
  contents: e == null ? void 0 : e.schema.contents,
1394
- elementRef: n,
1395
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
1536
+ elementRef: t,
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: i,
1398
- designerClass: l,
1399
- canAccepts: m,
1400
- getBelongedComponentInstance: u,
1401
- getDraggableDesignItemElement: p,
1402
- getDraggingDisplayText: o,
1403
- getPropConfig: j,
1404
- getDragScopeElement: c,
1405
- onAcceptMovedChildElement: s,
1406
- onAcceptNewChildElement: g,
1407
- onChildElementMovedOut: y,
1408
- addNewChildComponentSchema: f,
1409
- updateDragAndDropRules: r,
1410
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || w(!1),
1411
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || w(!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
- props: V,
1558
+ props: L,
1417
1559
  emits: [],
1418
- setup(n, e) {
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);
1423
- v.value.styles = "display: inherit;", _(() => {
1424
- t.value.componentInstance = v;
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(() => {
1427
- const M = {
1560
+ setup(t, e) {
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
- "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,
1433
- "f-section-maximize": p.value,
1571
+ "f-section-accordion": c.value === "default",
1572
+ "f-state-collapse": (c.value === "default" || c.value === "custom") && !b.value,
1573
+ "f-section-custom-accordion": c.value === "custom",
1574
+ "f-section-fill": t.fill,
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 = S(() => E({
1579
+ return O(S, C.value);
1580
+ }), a = T(() => O({
1439
1581
  "f-section-content": !0,
1440
1582
  "drag-container": !0
1441
- }, n.contentClass)), f = S(() => 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,
1452
- ref: t,
1453
- "data-dragref": `${l.schema.id}-container`
1454
- }, [u.value === "inContent" && o(), e.slots.default && e.slots.default()]);
1591
+ function d() {
1592
+ return M("div", {
1593
+ class: a.value,
1594
+ ref: n,
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: c.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 = (n, e, t, r) => {
1463
- n.section = N, e.section = G;
1604
+ x.register = (t, e, n, o) => {
1605
+ t.section = x, e.section = U;
1464
1606
  };
1465
- N.registerDesigner = (n, e, t) => {
1466
- n.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,
1473
- V as sectionProps
1612
+ x as Section,
1613
+ Je as default,
1614
+ U as propsResolver,
1615
+ L as sectionProps
1474
1616
  };