@farris/ui-vue 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,100 +1,100 @@
1
- import { ref as w, computed as T, createVNode as M, defineComponent as G, watch as R, onMounted as _, inject as I } from "vue";
2
- import { isPlainObject as W, cloneDeep as K } from "lodash-es";
3
- import ee from "../response-toolbar/index.esm.js";
1
+ import { ref as v, computed as h, createVNode as b, defineComponent as z, watch as U, onMounted as H, inject as N } from "vue";
2
+ import { isPlainObject as O, cloneDeep as x } from "lodash-es";
3
+ import _ from "../response-toolbar/index.esm.js";
4
4
  import "bignumber.js";
5
- import { withInstall as te } from "../common/index.esm.js";
6
- const J = {}, U = {};
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]) : K(e[m].default)), y), {});
9
- return (!s || !o.find((y) => y == "id")) && (i.id = `${n}-${Date.now()}`), i;
5
+ import { withInstall as Z } from "../common/index.esm.js";
6
+ const V = {}, $ = {};
7
+ function B(n) {
8
+ const { properties: e, title: t, ignore: a } = n, r = a && Array.isArray(a), i = Object.keys(e).reduce((o, p) => ((!r || !a.find((f) => f == p)) && (o[p] = e[p].type === "object" && e[p].properties ? B(e[p]) : x(e[p].default)), o), {});
9
+ return t && (!r || !a.find((o) => o == "id")) && (i.id = `${t}-${Date.now()}`), i;
10
10
  }
11
- function $(t, e = {}, n) {
12
- const o = J[t];
13
- if (o) {
14
- let s = H(o);
15
- const i = U[t];
16
- return s = i ? i({ getSchemaByType: $ }, s, e, n) : s, s;
11
+ function q(n, e = {}, t) {
12
+ const a = V[n];
13
+ if (a) {
14
+ let r = B(a);
15
+ const i = $[n];
16
+ return r = i ? i({ getSchemaByType: q }, r, e, t) : r, r;
17
17
  }
18
18
  return null;
19
19
  }
20
- function ne(t, e) {
21
- const n = H(e);
22
- return Object.keys(t).reduce((o, s) => (o[s] && W(o[s]) && W(t[s]) ? Object.assign(o[s], t[s]) : o[s] = t[s], o), n), n;
20
+ function J(n, e) {
21
+ const t = B(e);
22
+ return Object.keys(n).reduce((a, r) => (a[r] && O(a[r]) && O(n[r]) ? Object.assign(a[r], n[r]) : a[r] = n[r], a), t), t;
23
23
  }
24
- function oe(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);
24
+ function Q(n, e) {
25
+ return Object.keys(n).filter((a) => n[a] != null).reduce((a, r) => {
26
+ if (e.has(r)) {
27
+ const i = e.get(r);
28
28
  if (typeof i == "string")
29
- o[i] = t[s];
29
+ a[i] = n[r];
30
30
  else {
31
- const y = i(s, t[s], t);
32
- Object.assign(o, y);
31
+ const o = i(r, n[r], n);
32
+ Object.assign(a, o);
33
33
  }
34
34
  } else
35
- o[s] = t[s];
36
- return o;
35
+ a[r] = n[r];
36
+ return a;
37
37
  }, {});
38
38
  }
39
- function re(t, e, n = /* @__PURE__ */ new Map()) {
40
- const o = ne(t, e);
41
- return oe(o, n);
39
+ function X(n, e, t = /* @__PURE__ */ new Map()) {
40
+ const a = J(n, e);
41
+ return Q(a, t);
42
42
  }
43
- function ae(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);
43
+ function Y(n = {}) {
44
+ function e(s, c, l, u) {
45
+ if (typeof l == "number")
46
+ return u[s].length === l;
47
+ if (typeof l == "object") {
48
+ const d = Object.keys(l)[0], y = l[d];
49
+ if (d === "not")
50
+ return Number(u[s].length) !== Number(y);
51
+ if (d === "moreThan")
52
+ return Number(u[s].length) >= Number(y);
53
+ if (d === "lessThan")
54
+ return Number(u[s].length) <= Number(y);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function n(c, b, f, u) {
59
- return u[c] && u[c].propertyValue && String(u[c].propertyValue.value) === String(f);
58
+ function t(s, c, l, u) {
59
+ return u[s] && u[s].propertyValue && String(u[s].propertyValue.value) === String(l);
60
60
  }
61
- const o = /* @__PURE__ */ new Map([
61
+ const a = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
- ["getProperty", n]
63
+ ["getProperty", t]
64
64
  ]);
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) => {
65
+ Object.keys(n).reduce((s, c) => (s.set(c, n[c]), s), a);
66
+ function r(s, c) {
67
+ const l = s;
68
+ return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((u) => {
69
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 };
70
+ return { target: l, operator: "length", param: null, value: c[u] };
71
+ const d = u, y = c[u];
72
+ return { target: l, operator: "getProperty", param: d, value: y };
73
73
  }) : [];
74
74
  }
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;
75
+ function i(s) {
76
+ return Object.keys(s).reduce((l, u) => {
77
+ const d = r(u, s[u]);
78
+ return l.push(...d), l;
79
79
  }, []);
80
80
  }
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;
81
+ function o(s, c) {
82
+ if (a.has(s.operator)) {
83
+ const l = a.get(s.operator);
84
+ return l && l(s.target, s.param, s.value, c) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function m(c, b) {
89
- return i(c).reduce((g, r) => g && y(r, b), !0);
88
+ function p(s, c) {
89
+ return i(s).reduce((d, y) => d && o(y, c), !0);
90
90
  }
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);
91
+ function f(s, c) {
92
+ const l = Object.keys(s), u = l.includes("allOf"), d = l.includes("anyOf"), y = u || d, S = (y ? s[y ? u ? "allOf" : "anyOf" : "allOf"] : [s]).map((T) => p(T, c));
93
+ return u ? !S.includes(!1) : S.includes(!0);
94
94
  }
95
- return { parseValueSchema: C };
95
+ return { parseValueSchema: f };
96
96
  }
97
- const se = {
97
+ const k = {
98
98
  button: { type: "button", name: "按钮", icon: "Button" },
99
99
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
100
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -133,65 +133,65 @@ const se = {
133
133
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
134
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
135
135
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
136
- }, ce = {}, ie = {};
137
- ae();
138
- function le(t, e, n = /* @__PURE__ */ new Map(), o = (y, m, C) => m, s = {}, i = (y) => y) {
139
- return J[e.title] = e, U[e.title] = o, ce[e.title] = s, ie[e.title] = i, (y = {}) => {
140
- const m = re(y, e, n), C = Object.keys(t).reduce((c, b) => (c[b] = t[b].default, c), {});
141
- return Object.assign(C, m);
136
+ }, K = {}, I = {};
137
+ Y();
138
+ function ee(n, e, t = /* @__PURE__ */ new Map(), a = (o, p, f) => p, r = {}, i = (o) => o) {
139
+ return V[e.title] = e, $[e.title] = a, K[e.title] = r, I[e.title] = i, (o = {}) => {
140
+ const p = X(o, e, t), f = Object.keys(n).reduce((s, c) => (s[c] = n[c].default, s), {});
141
+ return Object.assign(f, p);
142
142
  };
143
143
  }
144
- function pe(t, e) {
144
+ function te(n, e) {
145
145
  return { customClass: e.class, customStyle: e.style };
146
146
  }
147
- function ue(t, e, n) {
148
- return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
147
+ function ne(n, e, t) {
148
+ return e ? { enableAccordion: t.accordionMode } : { enableAccordion: "" };
149
149
  }
150
- function fe(t, e) {
151
- return e && e.contents && e.contents.length && e.contents.forEach((n) => {
152
- n.title && (n.text = n.title);
150
+ function oe(n, e) {
151
+ return e && e.contents && e.contents.length && e.contents.forEach((t) => {
152
+ t.title && (t.text = t.title);
153
153
  }), {
154
154
  buttons: e.contents,
155
155
  buttonPosition: e.position
156
156
  };
157
157
  }
158
- const de = /* @__PURE__ */ new Map([
159
- ["appearance", pe],
158
+ const ae = /* @__PURE__ */ new Map([
159
+ ["appearance", te],
160
160
  ["expanded", "expandStatus"],
161
- ["enableAccordion", ue],
162
- ["toolbar", fe]
161
+ ["enableAccordion", ne],
162
+ ["toolbar", oe]
163
163
  ]);
164
- function ye(t, e, n, o) {
165
- const s = Math.random().toString().slice(2, 6), i = n.parentComponentInstance;
164
+ function re(n, e, t, a) {
165
+ const r = Math.random().toString().slice(2, 6), i = t.parentComponentInstance;
166
166
  Object.assign(e, {
167
- id: `section-${s}`,
167
+ id: `section-${r}`,
168
168
  appearance: {
169
169
  class: "f-section-in-mainsubcard"
170
170
  },
171
171
  enableAccordion: !1,
172
172
  mainTitle: e.mainTitle || "标题"
173
173
  });
174
- const y = t.getSchemaByType("content-container");
175
- Object.assign(y, {
176
- id: `container-${s}`,
174
+ const o = n.getSchemaByType("content-container");
175
+ Object.assign(o, {
176
+ id: `container-${r}`,
177
177
  appearance: {
178
178
  class: "f-struct-wrapper"
179
179
  },
180
180
  contents: [e]
181
181
  });
182
- const m = i.schema;
183
- switch (m && m.type) {
184
- case se.splitter.type: {
182
+ const p = i.schema;
183
+ switch (p && p.type) {
184
+ case k["splitter-pane"].type: {
185
185
  e.appearance.class = "f-section-in-main";
186
186
  break;
187
187
  }
188
188
  }
189
- return y;
189
+ return o;
190
190
  }
191
- function be(t, e, n, o) {
192
- return n.parentComponentInstance ? ye(t, e, n) : e;
191
+ function ie(n, e, t, a) {
192
+ return t.parentComponentInstance ? re(n, e, t) : e;
193
193
  }
194
- const me = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-design.gitee.io/section.schema.json", ge = "section", Ce = "A Farris Container Component", ve = "object", je = {
194
+ const se = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/section.schema.json", le = "section", ue = "A Farris Container Component", pe = "object", fe = {
195
195
  id: {
196
196
  description: "The unique identifier for a Section",
197
197
  type: "string"
@@ -316,19 +316,19 @@ const me = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
316
316
  },
317
317
  default: null
318
318
  }
319
- }, Te = [
319
+ }, de = [
320
320
  "id",
321
321
  "type",
322
322
  "contents"
323
- ], Ae = {
324
- $schema: me,
325
- $id: he,
326
- title: ge,
327
- description: Ce,
328
- type: ve,
329
- properties: je,
330
- required: Te
331
- }, L = {
323
+ ], me = {
324
+ $schema: se,
325
+ $id: ce,
326
+ title: le,
327
+ description: ue,
328
+ type: pe,
329
+ properties: fe,
330
+ required: de
331
+ }, F = {
332
332
  /** 设置内容区域样式 */
333
333
  contentClass: { type: String, default: "" },
334
334
  /** 自定义样式 */
@@ -372,25 +372,25 @@ const me = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
372
372
  // toolbarPosition: { type: String, default: '' },
373
373
  // toolbarButtons: { type: Array<object>, default: [] },
374
374
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
375
- }, Z = le(L, Ae, de, be);
376
- function we(t, e, n) {
377
- let o;
378
- function s() {
379
- !t || !e.value || (n.value = !n.value, n.value ? i() : y());
375
+ }, G = ee(F, me, ae, ie);
376
+ function ye(n, e, t) {
377
+ let a;
378
+ function r() {
379
+ !n || !e.value || (t.value = !t.value, t.value ? i() : o());
380
380
  }
381
381
  function i() {
382
- o = t.value.nextElementSibling;
383
- const C = document && document.querySelector("body");
384
- C && (C.appendChild(t.value), t.value.style.zIndex = m());
382
+ a = n.value.nextElementSibling;
383
+ const f = document && document.querySelector("body");
384
+ f && (f.appendChild(n.value), n.value.style.zIndex = p());
385
385
  }
386
- function y() {
387
- o ? e.value.insertBefore(
388
- t.value,
389
- o
390
- ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
386
+ function o() {
387
+ a ? e.value.insertBefore(
388
+ n.value,
389
+ a
390
+ ) : e.value.appendChild(n.value), n.value.style.zIndex = null;
391
391
  }
392
- function m(C = 1) {
393
- const c = [
392
+ function p(f = 1) {
393
+ const s = [
394
394
  "body>.f-datagrid-settings-simple-host",
395
395
  "body>div",
396
396
  "body>farris-dialog>.farris-modal.show",
@@ -400,915 +400,174 @@ function we(t, e, n) {
400
400
  "body>.popover.show",
401
401
  "body>filter-row-panel>.f-datagrid-filter-panel",
402
402
  "body>.f-section-maximize"
403
- ], b = Array.from(document.body.querySelectorAll(c.join(","))).filter((u) => u).map((u) => {
404
- const { display: g, zIndex: r } = window.getComputedStyle(u);
405
- return g === "none" ? 0 : parseInt(r, 10);
403
+ ], c = Array.from(document.body.querySelectorAll(s.join(","))).filter((u) => u).map((u) => {
404
+ const { display: d, zIndex: y } = window.getComputedStyle(u);
405
+ return d === "none" ? 0 : parseInt(y, 10);
406
406
  }).filter((u) => u);
407
- let f = Math.max(...b);
408
- return f < 1040 && (f = 1040), f + C;
407
+ let l = Math.max(...c);
408
+ return l < 1040 && (l = 1040), l + f;
409
409
  }
410
- return { onClickMaxMinIcon: s };
410
+ return { onClickMaxMinIcon: r };
411
411
  }
412
- function z(t, e) {
413
- 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(() => {
414
- t.buttons && t.buttons.length > 0 && t.buttonPosition;
412
+ function j(n, e) {
413
+ const t = v(n.buttons), a = h(() => n.buttonPosition === "inHead" ? "right" : "left"), r = h(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), i = h(() => {
414
+ n.buttons && n.buttons.length > 0 && n.buttonPosition;
415
415
  });
416
- function y(m) {
417
- e.emit("Click", m);
418
- }
419
- return () => i && M(ee, {
420
- customClass: s.value,
421
- items: n.value,
422
- onClick: y,
423
- alignment: o.value
416
+ function o(p) {
417
+ e.emit("Click", p);
418
+ }
419
+ return () => i && b(_, {
420
+ customClass: r.value,
421
+ items: t.value,
422
+ onClick: o,
423
+ alignment: a.value
424
424
  }, null);
425
425
  }
426
- function Q(t, e, n, o, s, i) {
427
- w(t.subTitle);
428
- const y = T(() => t.buttonPosition), m = z(t, e), {
429
- onClickMaxMinIcon: C
430
- } = we(o, s, i), c = T(() => !!t.subTitle), b = T(() => t.enableMaximize), f = T(() => t.enableAccordion != ""), u = T(() => {
431
- const d = {
426
+ function R(n, e, t, a, r, i) {
427
+ v(n.subTitle);
428
+ const o = h(() => n.buttonPosition), p = j(n, e), {
429
+ onClickMaxMinIcon: f
430
+ } = ye(a, r, i), s = h(() => !!n.subTitle), c = h(() => n.enableMaximize), l = h(() => n.enableAccordion != ""), u = h(() => {
431
+ const T = {
432
432
  "f-section-header": !0
433
433
  };
434
- return e.slots.header && t.headerClass.split(" ").reduce((S, h) => (S[h] = !0, S), d), d;
434
+ return e.slots.header && n.headerClass.split(" ").reduce((m, g) => (m[g] = !0, m), T), T;
435
435
  });
436
- function g(d) {
437
- d.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
436
+ function d(T) {
437
+ T.stopPropagation(), n.enableAccordion !== "" && (t.value = !t.value);
438
438
  }
439
- function r() {
440
- const d = T(() => ({
439
+ function y() {
440
+ const T = h(() => ({
441
441
  btn: !0,
442
442
  "f-btn-collapse-expand": !0,
443
443
  "f-btn-mx": !0,
444
- "f-state-expand": n.value
445
- })), v = T(() => ({
444
+ "f-state-expand": t.value
445
+ })), A = h(() => ({
446
446
  "f-icon": !0,
447
447
  "f-icon-maximize": !i.value,
448
448
  "f-icon-minimize": i.value
449
449
  }));
450
- return M("div", {
450
+ return b("div", {
451
451
  class: "f-max-accordion"
452
- }, [b.value ? M("span", {
453
- class: v.value,
454
- onClick: C
455
- }, null) : "", f.value ? M("button", {
456
- class: d.value,
457
- onClick: g
458
- }, [M("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
459
- }
460
- function l() {
461
- return e.slots.header ? M("div", {
452
+ }, [c.value ? b("span", {
453
+ class: A.value,
454
+ onClick: f
455
+ }, null) : "", l.value ? b("button", {
456
+ class: T.value,
457
+ onClick: d
458
+ }, [b("span", null, [t.value ? n.collapseLabel : n.expandLabel])]) : ""]);
459
+ }
460
+ function M() {
461
+ return e.slots.header ? b("div", {
462
462
  class: u.value
463
463
  }, [e.slots.header()]) : "";
464
464
  }
465
- function a() {
466
- return M("div", {
465
+ function C() {
466
+ return b("div", {
467
467
  class: "f-title",
468
- onClick: g
469
- }, [M("h4", {
468
+ onClick: d
469
+ }, [b("h4", {
470
470
  class: "f-title-text"
471
- }, [t.mainTitle]), c.value && M("span", null, [t.subTitle])]);
471
+ }, [n.mainTitle]), s.value && b("span", null, [n.subTitle])]);
472
472
  }
473
- function p() {
474
- const d = T(() => {
475
- const v = {
473
+ function S() {
474
+ const T = h(() => {
475
+ const A = {
476
476
  "f-content": !0
477
477
  };
478
- return t.headerContentClass && t.headerContentClass.split(" ").reduce((h, P) => (h[P] = !0, h), v), v;
478
+ return n.headerContentClass && n.headerContentClass.split(" ").reduce((g, D) => (g[D] = !0, g), A), A;
479
479
  });
480
- return e.slots.headerContent ? M("div", {
481
- class: d.value
480
+ return e.slots.headerContent ? b("div", {
481
+ class: T.value
482
482
  }, [e.slots.headerContent()]) : "";
483
483
  }
484
- function j() {
485
- return M("div", {
484
+ function w() {
485
+ return b("div", {
486
486
  class: u.value
487
- }, [e.slots.headerTitle ? e.slots.headerTitle() : a(), p(), y.value === "inHead" && m(), (b.value || f.value) && r()]);
487
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : C(), S(), o.value === "inHead" && p(), (c.value || l.value) && y()]);
488
488
  }
489
- return () => t.showHeader && (e.slots.header ? l() : j());
489
+ return () => n.showHeader && (e.slots.header ? M() : w());
490
490
  }
491
- const Se = ["moz", "ms", "webkit"];
492
- function Pe() {
493
- let t = 0;
491
+ const he = ["moz", "ms", "webkit"];
492
+ function be() {
493
+ let n = 0;
494
494
  return (e) => {
495
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), s = setTimeout(() => {
496
- e(n + o);
497
- }, o);
498
- return t = n + o, s;
495
+ const t = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (t - n)), r = setTimeout(() => {
496
+ e(t + a);
497
+ }, a);
498
+ return n = t + a, r;
499
499
  };
500
500
  }
501
- function Me() {
501
+ function ve() {
502
502
  if (typeof window > "u")
503
503
  return () => 0;
504
504
  if (window.requestAnimationFrame)
505
505
  return window.requestAnimationFrame.bind(window);
506
- const t = Se.filter((e) => `${e}RequestAnimationFrame` in window)[0];
507
- return t ? window[`${t}RequestAnimationFrame`] : Pe();
506
+ const n = he.filter((e) => `${e}RequestAnimationFrame` in window)[0];
507
+ return n ? window[`${n}RequestAnimationFrame`] : be();
508
508
  }
509
- Me();
510
- function O(t, e) {
511
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, s) => (s && (o[s] = !0), o), t), t;
509
+ ve();
510
+ function P(n, e) {
511
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((a, r) => (r && (a[r] = !0), a), n), n;
512
512
  }
513
- const x = /* @__PURE__ */ G({
513
+ const E = /* @__PURE__ */ z({
514
514
  name: "FSection",
515
- props: L,
515
+ props: F,
516
516
  emits: [],
517
- setup(t, e) {
518
- const n = w();
519
- let o = w();
520
- const s = w(t.customClass), i = T(() => t.enableAccordion), y = w(t.expandStatus), m = T(() => t.buttonPosition), C = w(!1), c = Q(t, e, y, n, o, C), b = z(t, e), f = T(() => {
521
- const a = {
517
+ setup(n, e) {
518
+ const t = v();
519
+ let a = v();
520
+ const r = v(n.customClass), i = h(() => n.enableAccordion), o = v(n.expandStatus), p = h(() => n.buttonPosition), f = v(!1), s = R(n, e, o, t, a, f), c = j(n, e), l = h(() => {
521
+ const C = {
522
522
  "f-section": !0,
523
523
  "f-section-accordion": i.value === "default",
524
- "f-state-collapse": (i.value === "default" || i.value === "custom") && !y.value,
524
+ "f-state-collapse": (i.value === "default" || i.value === "custom") && !o.value,
525
525
  "f-section-custom-accordion": i.value === "custom",
526
- "f-section-fill": t.fill,
527
- "f-section-maximize": C.value
526
+ "f-section-fill": n.fill,
527
+ "f-section-maximize": f.value
528
528
  };
529
- return O(a, s.value);
530
- }), u = T(() => O({
529
+ return P(C, r.value);
530
+ }), u = h(() => P({
531
531
  "f-section-content": !0
532
- }, t.contentClass)), g = T(() => O({
532
+ }, n.contentClass)), d = h(() => P({
533
533
  "f-section-extend": !0
534
- }, g.value));
535
- function r() {
536
- return e.slots.extend && M("div", {
537
- class: g.value
534
+ }, d.value));
535
+ function y() {
536
+ return e.slots.extend && b("div", {
537
+ class: d.value
538
538
  }, [e.slots.extend()]);
539
539
  }
540
- function l() {
541
- return M("div", {
540
+ function M() {
541
+ return b("div", {
542
542
  class: u.value
543
- }, [m.value === "inContent" && b(), e.slots.default && e.slots.default()]);
543
+ }, [p.value === "inContent" && c(), e.slots.default && e.slots.default()]);
544
544
  }
545
- return R(() => t.expandStatus, (a, p) => {
546
- a !== p && (y.value = a);
547
- }), _(() => {
548
- n && n.value && (o.value = n.value.parentElement);
549
- }), () => M("div", {
550
- class: f.value,
551
- ref: n
552
- }, [c(), r(), l()]);
545
+ return U(() => n.expandStatus, (C, S) => {
546
+ C !== S && (o.value = C);
547
+ }), H(() => {
548
+ t && t.value && (a.value = t.value.parentElement);
549
+ }), () => b("div", {
550
+ class: l.value,
551
+ ref: t
552
+ }, [s(), y(), M()]);
553
553
  }
554
554
  });
555
- function ke() {
556
- function t(e) {
557
- var s, i;
555
+ function Ce() {
556
+ function n(e, t) {
557
+ var o;
558
558
  if (!e)
559
559
  return !1;
560
- const n = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
561
- if (!n)
560
+ const a = ((o = e.targetContainer) == null ? void 0 : o.componentInstance) && e.targetContainer.componentInstance.value;
561
+ if (!a)
562
562
  return !1;
563
- const o = (i = n.schema.appearance) == null ? void 0 : i.class;
564
- if (e.controlCategory === "input" || e.controlType === "form-group") {
565
- const y = n.schema.type, m = (y === "response-form" || y === "content-container") && o && o.includes("farris-form");
566
- if (n.schema.type !== "response-layout-item" && !m)
567
- return !1;
568
- }
569
- return e.controlType !== "field-set";
563
+ const r = a.schema.type, i = t == null ? void 0 : t.formSchemaUtils.getComponentById(a.belongedComponentId);
564
+ return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(r) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((i == null ? void 0 : i.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(r)));
570
565
  }
571
566
  return {
572
- basalDragulaRuleForContainer: t
567
+ basalDragulaRuleForContainer: n
573
568
  };
574
569
  }
575
- const De = "https://json-schema.org/draft/2020-12/schema", Ee = "https://farris-design.gitee.io/dragging-rules.schema.json", Oe = "Dragging Rules", xe = "The rules of designer canvas", Ne = "object", Fe = {
576
- "f-page": {
577
- description: "The root class of page designed by farris.",
578
- type: "object",
579
- properties: {
580
- contents: {
581
- type: "object",
582
- properties: {
583
- "f-page-header": {
584
- description: "The class of page header designed by farris.",
585
- type: "string"
586
- },
587
- "f-page-main": {
588
- description: "The class of page body designed by farris.",
589
- type: "object",
590
- properties: {
591
- contents: {
592
- type: "object",
593
- properties: {
594
- "f-struct-like-card": {
595
- description: "",
596
- type: "object",
597
- properties: {
598
- contents: {
599
- type: "object",
600
- properties: {
601
- "f-struct-form": {
602
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
603
- type: "object",
604
- properties: {
605
- contents: {
606
- type: "object",
607
- properties: {
608
- "f-section-form": {
609
- description: "The class of section which has wrapped a reponse-form component.",
610
- type: "object",
611
- properties: {
612
- contents: {
613
- type: "object",
614
- properties: {
615
- "f-form-layout": {
616
- description: "The class of reponse form",
617
- type: "object",
618
- properties: {
619
- rules: {
620
- type: "object",
621
- properties: {
622
- canAccept: {
623
- type: "boolean",
624
- const: !0
625
- },
626
- fixed: {
627
- type: "boolean",
628
- const: !0
629
- },
630
- hidePadding: {
631
- type: "boolean",
632
- const: !1
633
- }
634
- }
635
- }
636
- }
637
- }
638
- }
639
- },
640
- rules: {
641
- type: "object",
642
- properties: {
643
- canAccept: {
644
- type: "boolean",
645
- const: !1
646
- },
647
- fixed: {
648
- type: "boolean",
649
- const: !0
650
- },
651
- hidePadding: {
652
- type: "boolean",
653
- const: !0
654
- }
655
- }
656
- }
657
- }
658
- }
659
- }
660
- },
661
- rules: {
662
- type: "object",
663
- properties: {
664
- canAccept: {
665
- type: "boolean",
666
- const: !1
667
- },
668
- fixed: {
669
- type: "boolean",
670
- const: !1
671
- },
672
- hidePadding: {
673
- type: "boolean",
674
- const: !0
675
- }
676
- }
677
- }
678
- }
679
- },
680
- "f-struct-wrapper": {
681
- description: "",
682
- type: "object",
683
- properties: {
684
- contents: {
685
- type: "object",
686
- properties: {
687
- "f-section-tabs": {
688
- description: "The class of section which has wrapped sub-grid tabs.",
689
- type: "object",
690
- properties: {
691
- contents: {
692
- type: "object",
693
- properties: {
694
- "f-tabs-in-card": {
695
- description: "The class of tabs which contains sub-grid.",
696
- type: "object",
697
- properties: {
698
- contents: {
699
- type: "object",
700
- properties: {
701
- "f-struct-data-grid-in-card": {
702
- description: "The class of sub-grid component",
703
- type: "object",
704
- properties: {
705
- contents: {
706
- type: "object",
707
- properties: {
708
- "f-grid-is-sub": {
709
- description: "The class of sub-grid",
710
- type: "object",
711
- properties: {
712
- rules: {
713
- type: "object",
714
- properties: {
715
- canAccept: {
716
- type: "boolean",
717
- const: !0
718
- },
719
- fixed: {
720
- type: "boolean",
721
- const: !0
722
- },
723
- hidePadding: {
724
- type: "boolean",
725
- const: !1
726
- }
727
- }
728
- }
729
- }
730
- }
731
- }
732
- },
733
- rules: {
734
- type: "object",
735
- properties: {
736
- canAccept: {
737
- type: "boolean",
738
- const: !1
739
- },
740
- fixed: {
741
- type: "boolean",
742
- const: !1
743
- },
744
- hidePadding: {
745
- type: "boolean",
746
- const: !0
747
- }
748
- }
749
- }
750
- }
751
- }
752
- }
753
- },
754
- rules: {
755
- type: "object",
756
- properties: {
757
- canAccept: {
758
- type: "boolean",
759
- const: !1
760
- },
761
- fixed: {
762
- type: "boolean",
763
- const: !0
764
- },
765
- hidePadding: {
766
- type: "boolean",
767
- const: !0
768
- }
769
- }
770
- }
771
- }
772
- }
773
- }
774
- },
775
- rules: {
776
- type: "object",
777
- properties: {
778
- canAccept: {
779
- type: "boolean",
780
- const: !1
781
- },
782
- fixed: {
783
- type: "boolean",
784
- const: !0
785
- },
786
- hidePadding: {
787
- type: "boolean",
788
- const: !0
789
- }
790
- }
791
- }
792
- }
793
- },
794
- "f-section-in-main": {
795
- description: "The class of section which has wrapped a reponse-form component.",
796
- type: "object",
797
- properties: {
798
- rules: {
799
- type: "object",
800
- properties: {
801
- canAccept: {
802
- type: "boolean",
803
- const: !0
804
- },
805
- fixed: {
806
- type: "boolean",
807
- const: !0
808
- },
809
- hidePadding: {
810
- type: "boolean",
811
- const: !1
812
- }
813
- }
814
- }
815
- }
816
- }
817
- }
818
- },
819
- rules: {
820
- type: "object",
821
- properties: {
822
- canAccept: {
823
- type: "boolean",
824
- const: !1
825
- },
826
- fixed: {
827
- type: "boolean",
828
- const: !1
829
- },
830
- hidePadding: {
831
- type: "boolean",
832
- const: !0
833
- }
834
- }
835
- }
836
- }
837
- }
838
- }
839
- },
840
- rules: {
841
- type: "object",
842
- properties: {
843
- canAccept: {
844
- type: "boolean",
845
- const: !0
846
- },
847
- fixed: {
848
- type: "boolean",
849
- const: !0
850
- },
851
- hidePadding: {
852
- type: "object",
853
- const: {
854
- allOf: [
855
- {
856
- sibling: 0,
857
- parent: {
858
- "f-page-main": !0
859
- }
860
- }
861
- ]
862
- }
863
- }
864
- }
865
- }
866
- }
867
- },
868
- "f-struct-data-grid": {
869
- description: "",
870
- type: "object",
871
- properties: {
872
- rules: {
873
- type: "object",
874
- properties: {
875
- canAccept: {
876
- type: "object",
877
- const: !0
878
- },
879
- fixed: {
880
- type: "boolean",
881
- const: !0
882
- },
883
- hidePadding: {
884
- type: "boolean",
885
- const: !0
886
- }
887
- }
888
- }
889
- }
890
- },
891
- "f-page-main-content": {
892
- description: "",
893
- type: "object",
894
- properties: {
895
- contents: {
896
- type: "object",
897
- properties: {
898
- "f-page-content-nav": {
899
- description: "",
900
- type: "object",
901
- properties: {
902
- contents: {
903
- type: "object",
904
- properties: {
905
- "f-struct-data-grid-in-nav": {
906
- description: "",
907
- type: "object",
908
- properties: {
909
- contents: {
910
- type: "object",
911
- properties: {
912
- "f-page-content-nav-extend": {
913
- description: "",
914
- type: "object"
915
- },
916
- "f-section-in-nav": {
917
- description: "",
918
- type: "object",
919
- properties: {
920
- rules: {
921
- type: "object",
922
- properties: {
923
- canAccept: {
924
- type: "boolean",
925
- const: !1
926
- },
927
- fixed: {
928
- type: "boolean",
929
- const: !0
930
- },
931
- hidePadding: {
932
- type: "boolean",
933
- const: !1
934
- }
935
- }
936
- }
937
- }
938
- }
939
- }
940
- },
941
- rules: {
942
- type: "object",
943
- properties: {
944
- canAccept: {
945
- type: "boolean",
946
- const: !0
947
- },
948
- fixed: {
949
- type: "boolean",
950
- const: !1
951
- },
952
- hidePadding: {
953
- type: "boolean",
954
- const: !0
955
- }
956
- }
957
- }
958
- }
959
- }
960
- }
961
- }
962
- }
963
- },
964
- "f-page-content-main": {
965
- description: "",
966
- type: "object",
967
- properties: {}
968
- }
969
- }
970
- }
971
- }
972
- },
973
- "f-page-content": {
974
- description: "",
975
- type: "object",
976
- properties: {
977
- contents: {
978
- type: "object",
979
- properties: {
980
- "f-page-content-nav": {
981
- description: "",
982
- type: "object",
983
- properties: {
984
- contents: {
985
- type: "object",
986
- properties: {
987
- "f-list-nav": {
988
- description: "",
989
- type: "object"
990
- },
991
- "f-list-nav-left": {
992
- description: "",
993
- type: "object"
994
- },
995
- "f-struct-data-grid-in-nav": {
996
- description: "",
997
- type: "object",
998
- properties: {
999
- contents: {
1000
- type: "object",
1001
- properties: {
1002
- "f-section-form": {
1003
- description: "",
1004
- type: "object",
1005
- properties: {
1006
- rules: {
1007
- type: "object",
1008
- properties: {
1009
- canAccept: {
1010
- type: "boolean",
1011
- const: !1
1012
- },
1013
- fixed: {
1014
- type: "boolean",
1015
- const: !0
1016
- },
1017
- hidePadding: {
1018
- type: "boolean",
1019
- const: !0
1020
- }
1021
- }
1022
- }
1023
- }
1024
- },
1025
- "f-section-grid": {
1026
- description: "",
1027
- type: "object",
1028
- properties: {
1029
- rules: {
1030
- type: "object",
1031
- properties: {
1032
- canAccept: {
1033
- type: "boolean",
1034
- const: !1
1035
- },
1036
- fixed: {
1037
- type: "boolean",
1038
- const: !0
1039
- },
1040
- hidePadding: {
1041
- type: "boolean",
1042
- const: !0
1043
- }
1044
- }
1045
- }
1046
- }
1047
- }
1048
- }
1049
- },
1050
- rules: {
1051
- type: "object",
1052
- properties: {
1053
- canAccept: {
1054
- type: "boolean",
1055
- const: !1
1056
- },
1057
- fixed: {
1058
- type: "boolean",
1059
- const: !0
1060
- },
1061
- hidePadding: {
1062
- type: "boolean",
1063
- const: !0
1064
- }
1065
- }
1066
- }
1067
- }
1068
- }
1069
- }
1070
- }
1071
- },
1072
- rules: {
1073
- type: "object",
1074
- properties: {
1075
- canAccept: {
1076
- type: "boolean",
1077
- const: !1
1078
- },
1079
- fixed: {
1080
- type: "boolean",
1081
- const: !0
1082
- },
1083
- hidePadding: {
1084
- type: "boolean",
1085
- const: !0
1086
- }
1087
- }
1088
- }
1089
- },
1090
- "f-page-content-main": {
1091
- description: "",
1092
- type: "object",
1093
- properties: {
1094
- rules: {
1095
- type: "object",
1096
- properties: {
1097
- canAccept: {
1098
- type: "boolean",
1099
- const: !1
1100
- },
1101
- fixed: {
1102
- type: "boolean",
1103
- const: !1
1104
- },
1105
- hidePadding: {
1106
- type: "boolean",
1107
- const: !0
1108
- }
1109
- }
1110
- }
1111
- }
1112
- }
1113
- }
1114
- },
1115
- rules: {
1116
- type: "object",
1117
- properties: {
1118
- canAccept: {
1119
- type: "boolean",
1120
- const: !1
1121
- },
1122
- fixed: {
1123
- type: "boolean",
1124
- const: !0
1125
- },
1126
- hidePadding: {
1127
- type: "boolean",
1128
- const: !0
1129
- }
1130
- }
1131
- }
1132
- }
1133
- }
1134
- }
1135
- },
1136
- rules: {
1137
- type: "object",
1138
- properties: {
1139
- canAccept: {
1140
- type: "object",
1141
- const: {
1142
- anyOf: [
1143
- {
1144
- children: 0
1145
- },
1146
- {
1147
- children: {
1148
- length: {
1149
- not: 1
1150
- },
1151
- "f-struct-like-card": !0
1152
- }
1153
- },
1154
- {
1155
- children: {
1156
- "scroll-spy": !1,
1157
- "f-page-content": !1,
1158
- "f-struct-like-card": !1
1159
- }
1160
- }
1161
- ]
1162
- }
1163
- },
1164
- fixed: {
1165
- type: "boolean",
1166
- const: !0
1167
- },
1168
- hidePadding: {
1169
- type: "boolean",
1170
- const: !0
1171
- }
1172
- }
1173
- }
1174
- }
1175
- },
1176
- "f-page-footer": {
1177
- description: "The class of page footer designed by farris.",
1178
- type: "string"
1179
- }
1180
- }
1181
- },
1182
- rules: {
1183
- type: "object",
1184
- properties: {
1185
- canAccept: {
1186
- type: "boolean",
1187
- const: !1
1188
- },
1189
- fixed: {
1190
- type: "boolean",
1191
- const: !0
1192
- },
1193
- hidePadding: {
1194
- type: "boolean",
1195
- const: !0
1196
- }
1197
- }
1198
- }
1199
- }
1200
- },
1201
- "f-page-is-managelist": {
1202
- description: "The root class of mangement list page.",
1203
- type: "string"
1204
- },
1205
- "f-page-card": {
1206
- description: "",
1207
- type: "object"
1208
- },
1209
- "f-page-is-mainsubcard": {
1210
- description: "",
1211
- type: "object"
1212
- }
1213
- }, Be = {
1214
- $schema: De,
1215
- $id: Ee,
1216
- title: Oe,
1217
- description: xe,
1218
- type: Ne,
1219
- properties: Fe
1220
- }, B = /* @__PURE__ */ new Map();
1221
- function $e() {
1222
- function t(r, l, a, p) {
1223
- var j;
1224
- if (typeof a == "number")
1225
- return ((j = p[r]) == null ? void 0 : j.length) === a;
1226
- if (typeof a == "object") {
1227
- const d = Object.keys(a)[0], v = a[d];
1228
- if (d === "not")
1229
- return Number(p[r].length) !== Number(v);
1230
- if (d === "moreThan")
1231
- return Number(p[r].length) >= Number(v);
1232
- if (d === "lessThan")
1233
- return Number(p[r].length) <= Number(v);
1234
- }
1235
- return !1;
1236
- }
1237
- function e(r, l, a, p) {
1238
- return typeof a == "boolean" ? p.childrenClassList.includes(l) === !!a : !1;
1239
- }
1240
- function n(r, l, a, p) {
1241
- return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1242
- }
1243
- function o(r, l, a, p) {
1244
- return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1245
- }
1246
- const s = /* @__PURE__ */ new Map([
1247
- ["length", t],
1248
- ["hasChildren", e],
1249
- ["hasSibling", o],
1250
- ["hasParent", n]
1251
- ]);
1252
- function i(r, l) {
1253
- const a = r;
1254
- return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((p) => {
1255
- if (p === "length")
1256
- return { target: a, operator: "length", param: null, value: l[p] };
1257
- const j = p, d = l[p];
1258
- return { target: a, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: j, value: d };
1259
- }) : [];
1260
- }
1261
- function y(r, l) {
1262
- if (s.has(r.operator)) {
1263
- const a = s.get(r.operator);
1264
- return a && a(r.target, r.param, r.value, l) || !1;
1265
- }
1266
- return !1;
1267
- }
1268
- function m(r, l) {
1269
- return Object.keys(r).reduce((d, v) => {
1270
- const S = i(v, r[v]);
1271
- return d.push(...S), d;
1272
- }, []).reduce((d, v) => d && y(v, l), !0);
1273
- }
1274
- function C(r, l) {
1275
- 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));
1276
- return p ? !h.includes(!1) : h.includes(!0);
1277
- }
1278
- function c(r, l) {
1279
- const a = r.const;
1280
- return a ? typeof a == "boolean" ? a : typeof a == "object" ? C(a, l) : !1 : !1;
1281
- }
1282
- function b(r) {
1283
- return (l) => {
1284
- const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
1285
- return r && r.properties && Object.keys(r.properties).reduce((p, j) => {
1286
- const d = r.properties[j];
1287
- return p[j] = c(d, l), p;
1288
- }, a), a;
1289
- };
1290
- }
1291
- function f(r, l, a) {
1292
- if (l.type === "object" && l.properties) {
1293
- const { rules: p, contents: j } = l.properties;
1294
- a.set(r, b(p)), j && Object.keys(j.properties).forEach(
1295
- (d) => f(d, j.properties[d], a)
1296
- );
1297
- }
1298
- }
1299
- function u() {
1300
- const { properties: r } = Be;
1301
- Object.keys(r).forEach((l) => {
1302
- f(l, r[l], B);
1303
- });
1304
- }
1305
- function g(r, l) {
1306
- const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
1307
- return B.has(r) ? B.get(r)(l) : a;
1308
- }
1309
- return u(), { getRuleValue: g };
1310
- }
1311
- const He = {
570
+ const ge = {
1312
571
  title: "section",
1313
572
  description: "A Farris Container Component",
1314
573
  type: "object",
@@ -1356,11 +615,11 @@ const He = {
1356
615
  }
1357
616
  }
1358
617
  },
1359
- setPropertyRelates(t, e) {
1360
- if (t)
1361
- switch (t && t.propertyID) {
618
+ setPropertyRelates(n, e) {
619
+ if (n)
620
+ switch (n && n.propertyID) {
1362
621
  case "mainTitle": {
1363
- t.needRefreshControlTree = !0;
622
+ n.needRefreshControlTree = !0;
1364
623
  break;
1365
624
  }
1366
625
  }
@@ -1411,207 +670,260 @@ const He = {
1411
670
  }
1412
671
  }
1413
672
  };
1414
- function Le(t, e) {
1415
- const n = w(!1), o = w(!1), s = $e();
1416
- let i = !0, y = !1, m, C = !1;
1417
- function c(a) {
1418
- return He;
1419
- }
1420
- function b(a) {
1421
- return !(!ke().basalDragulaRuleForContainer(a) || !i);
673
+ class Te {
674
+ getTemplateRule(e, t) {
675
+ const a = t == null ? void 0 : t.formSchemaUtils, r = a == null ? void 0 : a.getFormTemplateRule(), i = { canAccept: !0, canDelete: !0, canMove: !0 };
676
+ if (!r)
677
+ return i;
678
+ const o = this.getComponentContext(e);
679
+ return o.componentClassList.forEach((f) => {
680
+ if (!f || !r[f])
681
+ return;
682
+ const { canMove: s, canDelete: c, canAccept: l } = r[f];
683
+ i.canMove = i.canMove && this.resolveRuleValue(s, o), i.canDelete = i.canDelete && this.resolveRuleValue(c, o), i.canAccept = i.canAccept && this.resolveRuleValue(l, o);
684
+ }), i;
685
+ }
686
+ resolveRuleValue(e, t) {
687
+ return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
688
+ }
689
+ parseRuleValueSchema(e, t) {
690
+ const a = e.invalidContext || [];
691
+ let r = !0;
692
+ for (const i of a) {
693
+ if (i.firstLevelChild) {
694
+ if (i.firstLevelChild.class) {
695
+ const o = t.firstLevelChildClassList;
696
+ if (o && !o.includes(i.firstLevelChild.class)) {
697
+ r = !1;
698
+ continue;
699
+ }
700
+ }
701
+ if (i.firstLevelChild.type) {
702
+ const o = t.firstLevelChildSchema;
703
+ if (o && o.type !== i.firstLevelChild.type) {
704
+ r = !1;
705
+ continue;
706
+ }
707
+ }
708
+ }
709
+ if (i.secondLevelChild) {
710
+ if (i.secondLevelChild.class) {
711
+ const o = t.secondLevelChildClassList;
712
+ if (o && !o.includes(i.secondLevelChild.class)) {
713
+ r = !1;
714
+ continue;
715
+ }
716
+ }
717
+ if (i.secondLevelChild.type) {
718
+ const o = t.secondLevelChildSchema;
719
+ if (o && o.type !== i.secondLevelChild.type) {
720
+ r = !1;
721
+ continue;
722
+ }
723
+ }
724
+ }
725
+ if (i.parent) {
726
+ if (i.parent.class) {
727
+ const o = t.parentClassList;
728
+ if (o && !o.includes(i.parent.class)) {
729
+ r = !1;
730
+ continue;
731
+ }
732
+ }
733
+ if (i.parent.type) {
734
+ const o = t.parentSchema;
735
+ if (o && o.type !== i.parent.type) {
736
+ r = !1;
737
+ continue;
738
+ }
739
+ }
740
+ }
741
+ r = !0;
742
+ break;
743
+ }
744
+ return !r;
745
+ }
746
+ getComponentContext(e) {
747
+ var M, C, S, w;
748
+ const t = e.schema, a = t.appearance && t.appearance.class || "", r = a.split(" ") || [], i = t.contents || [], o = i.length ? i[0] : null, p = o && o.appearance ? o.appearance.class : "", f = p ? p.split(" ") : [], s = (M = o == null ? void 0 : o.contents) != null && M.length ? o == null ? void 0 : o.contents[0] : null, c = s && s.appearance ? s.appearance.class : "", l = c ? c.split(" ") : [], u = t.type === "component" ? (S = (C = e.parent) == null ? void 0 : C.parent) == null ? void 0 : S.schema : (w = e.parent) == null ? void 0 : w.schema, d = u && u.appearance && u.appearance.class || "", y = d ? d.split(" ") : [];
749
+ return {
750
+ componentClass: a,
751
+ componentClassList: r,
752
+ childContents: i,
753
+ firstLevelChildSchema: o,
754
+ firstLevelChildClass: p,
755
+ firstLevelChildClassList: f,
756
+ secondLevelChildSchema: s,
757
+ secondLevelChildClass: c,
758
+ secondLevelChildClassList: l,
759
+ parentSchema: u,
760
+ parentClass: d,
761
+ parentClassList: y
762
+ };
1422
763
  }
1423
- function f() {
1424
- return !C;
764
+ }
765
+ function Se(n, e) {
766
+ const t = new Te(), { canMove: a, canAccept: r, canDelete: i } = t.getTemplateRule(n, e);
767
+ function o(l) {
768
+ return ge;
1425
769
  }
1426
- function u() {
1427
- return !C;
770
+ function p(l) {
771
+ return Ce().basalDragulaRuleForContainer(l, e) ? r : !1;
1428
772
  }
1429
- function g() {
1430
- return y;
773
+ function f() {
774
+ return i;
1431
775
  }
1432
- function r(a) {
776
+ function s() {
777
+ return a;
1433
778
  }
1434
- function l() {
1435
- n.value = !1, o.value = !1, C = !1, i = !0;
1436
- 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((V, F) => {
1437
- const q = F && F.appearance ? F.appearance.class : "", Y = q ? q.split(" ") : [];
1438
- return V.push(...Y), V;
1439
- }, []) : [], A = e, k = A && A.appearance && A.appearance.class || "", E = k ? k.split(" ") : [];
1440
- m = {
1441
- componentClass: p,
1442
- componentClassList: j,
1443
- childContents: d,
1444
- firstChildContent: v,
1445
- firstChildClass: S,
1446
- firstChildClassList: h,
1447
- parent: A,
1448
- parentClass: k,
1449
- parentClassList: E,
1450
- children: d,
1451
- childrenClassList: P
1452
- };
1453
- const { canAccept: D, fixed: N, hidePadding: X } = s.getRuleValue(j[0], m);
1454
- return i = D, y = X, C = N, !0;
779
+ function c() {
780
+ return !a && !i;
1455
781
  }
1456
782
  return {
1457
- canAccepts: b,
783
+ canAccepts: p,
1458
784
  checkCanDeleteComponent: f,
1459
- checkCanMoveComponent: u,
1460
- hideNestedPaddingInDesginerView: g,
1461
- onAcceptMovedChildElement: r,
1462
- resolveComponentContext: l,
1463
- triggerBelongedComponentToMoveWhenMoved: n,
1464
- triggerBelongedComponentToDeleteWhenDeleted: o,
1465
- getPropsConfig: c
785
+ checkCanMoveComponent: s,
786
+ hideNestedPaddingInDesginerView: c,
787
+ getPropsConfig: o
1466
788
  };
1467
789
  }
1468
- function ze(t, e, n) {
1469
- var S;
1470
- function o() {
1471
- n != null && n.resolveComponentContext && n.resolveComponentContext();
790
+ function Me(n, e, t) {
791
+ var A;
792
+ function a() {
793
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
1472
794
  }
1473
- o();
1474
- const s = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", y = w();
1475
- function m() {
1476
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
795
+ a();
796
+ const r = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", o = v();
797
+ function p() {
798
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1477
799
  }
1478
- function C() {
800
+ function f() {
1479
801
  return !1;
1480
802
  }
1481
- function c() {
1482
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
803
+ function s() {
804
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1483
805
  }
1484
- function b() {
1485
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
806
+ function c() {
807
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1486
808
  }
1487
- function f(h) {
1488
- if (!h || !h.value)
809
+ function l(m) {
810
+ if (!m || !m.value)
1489
811
  return null;
1490
- if (h.value.schema && h.value.schema.type === "component")
1491
- return h.value;
1492
- const P = w(h == null ? void 0 : h.value.parent), A = f(P);
1493
- return A || null;
812
+ if (m.value.schema && m.value.schema.type === "component")
813
+ return m.value;
814
+ const g = v(m == null ? void 0 : m.value.parent), D = l(g);
815
+ return D || null;
1494
816
  }
1495
- function u(h = e) {
1496
- const { componentInstance: P, designerItemElementRef: A } = h;
1497
- return !P || !P.value ? null : P.value.canMove ? A : u(h.parent);
817
+ function u(m = e) {
818
+ const { componentInstance: g, designerItemElementRef: D } = m;
819
+ return !g || !g.value ? null : g.value.canMove ? D : u(m.parent);
1498
820
  }
1499
- function g(h) {
1500
- return !!n && n.canAccepts(h);
821
+ function d(m) {
822
+ return !!t && t.canAccepts(m);
1501
823
  }
1502
- function r() {
824
+ function y() {
1503
825
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1504
826
  }
1505
- function l() {
1506
- }
1507
- function a(h, P) {
1508
- P && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(P);
827
+ function M() {
1509
828
  }
1510
- function p(h, P) {
1511
- const { componentType: A } = h;
1512
- let k = $(A, h, P);
1513
- n && n.onResolveNewComponentSchema && (k = n.onResolveNewComponentSchema(h, k));
1514
- const E = A.toLowerCase().replace("-", "_");
1515
- return k && !k.id && k.type === A && (k.id = `${E}_${Math.random().toString().slice(2, 6)}`), k;
829
+ function C(m, g) {
830
+ g && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(g);
1516
831
  }
1517
- function j(h, P) {
1518
- const A = String(h.getAttribute("data-controltype")), k = h.getAttribute("data-feature"), E = k ? JSON.parse(k) : {};
1519
- E.parentComponentInstance = y.value;
1520
- let D = $(A, E);
1521
- n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, P, D));
1522
- const N = A.toLowerCase().replace("-", "_");
1523
- return D && !D.id && D.type === A && (D.id = `${N}_${Math.random().toString().slice(2, 6)}`), D;
832
+ function S(m, g) {
833
+ const { componentType: D } = m;
834
+ let L = q(D, m, g);
835
+ t && t.onResolveNewComponentSchema && (L = t.onResolveNewComponentSchema(m, L));
836
+ const W = D.toLowerCase().replace("-", "_");
837
+ return L && !L.id && L.type === D && (L.id = `${W}_${Math.random().toString().slice(2, 6)}`), L;
1524
838
  }
1525
- function d(h) {
839
+ function w(m) {
1526
840
  }
1527
- function v(...h) {
1528
- if (n && n.getPropsConfig)
1529
- return n.getPropsConfig(...h);
841
+ function T(...m) {
842
+ if (t && t.getPropsConfig)
843
+ return t.getPropsConfig(...m);
1530
844
  }
1531
- return y.value = {
1532
- canMove: m(),
1533
- canSelectParent: C(),
1534
- canDelete: c(),
1535
- canNested: !b(),
845
+ return o.value = {
846
+ canMove: p(),
847
+ canSelectParent: f(),
848
+ canDelete: s(),
849
+ canNested: !c(),
1536
850
  contents: e == null ? void 0 : e.schema.contents,
1537
- elementRef: t,
1538
- parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
851
+ elementRef: n,
852
+ parent: (A = e == null ? void 0 : e.parent) == null ? void 0 : A.componentInstance,
1539
853
  schema: e == null ? void 0 : e.schema,
1540
- styles: s,
854
+ styles: r,
1541
855
  designerClass: i,
1542
- canAccepts: g,
1543
- getBelongedComponentInstance: f,
856
+ canAccepts: d,
857
+ getBelongedComponentInstance: l,
1544
858
  getDraggableDesignItemElement: u,
1545
- getDraggingDisplayText: r,
1546
- getPropConfig: v,
1547
- getDragScopeElement: l,
1548
- onAcceptMovedChildElement: a,
1549
- onAcceptNewChildElement: j,
1550
- onChildElementMovedOut: d,
1551
- addNewChildComponentSchema: p,
1552
- updateDragAndDropRules: o,
1553
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || w(!1),
1554
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
1555
- }, y;
859
+ getDraggingDisplayText: y,
860
+ getPropConfig: T,
861
+ getDragScopeElement: M,
862
+ onAcceptMovedChildElement: C,
863
+ onChildElementMovedOut: w,
864
+ addNewChildComponentSchema: S,
865
+ updateDragAndDropRules: a,
866
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || v(!1),
867
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
868
+ }, o;
1556
869
  }
1557
- const Ve = /* @__PURE__ */ G({
870
+ const we = /* @__PURE__ */ z({
1558
871
  name: "FSectionDesign",
1559
- props: L,
872
+ props: F,
1560
873
  emits: [],
1561
- setup(t, e) {
1562
- var v;
1563
- const n = w(), o = w();
1564
- let s = w();
1565
- const i = I("design-item-context"), y = Le(i.schema, (v = i.parent) == null ? void 0 : v.schema), m = ze(n, i, y);
1566
- m.value.styles = "display: inherit;", _(() => {
1567
- n.value.componentInstance = m;
1568
- }), e.expose(m.value);
1569
- const C = w(t.customClass), c = T(() => t.enableAccordion), b = w(t.expandStatus), f = T(() => t.buttonPosition), u = w(!1), g = Q(t, e, b, o, s, u), r = z(t, e), l = T(() => {
1570
- const S = {
874
+ setup(n, e) {
875
+ const t = v(), a = v();
876
+ let r = v();
877
+ const i = N("designer-host-service"), o = N("design-item-context"), p = Se(o, i), f = Me(t, o, p);
878
+ f.value.styles = "display: inherit;", H(() => {
879
+ t.value.componentInstance = f;
880
+ }), e.expose(f.value);
881
+ const s = v(n.customClass), c = h(() => n.enableAccordion), l = v(n.expandStatus), u = h(() => n.buttonPosition), d = v(!1), y = R(n, e, l, a, r, d), M = j(n, e), C = h(() => {
882
+ const m = {
1571
883
  "f-section": !0,
1572
884
  "f-section-accordion": c.value === "default",
1573
- "f-state-collapse": (c.value === "default" || c.value === "custom") && !b.value,
885
+ "f-state-collapse": (c.value === "default" || c.value === "custom") && !l.value,
1574
886
  "f-section-custom-accordion": c.value === "custom",
1575
- "f-section-fill": t.fill,
1576
- "f-section-maximize": u.value,
887
+ "f-section-fill": n.fill,
888
+ "f-section-maximize": d.value,
1577
889
  "f-utils-fill": !0,
1578
890
  "p-0": !0
1579
891
  };
1580
- return O(S, C.value);
1581
- }), a = T(() => O({
892
+ return P(m, s.value);
893
+ }), S = h(() => P({
1582
894
  "f-section-content": !0,
1583
895
  "drag-container": !0
1584
- }, t.contentClass)), p = T(() => O({
896
+ }, n.contentClass)), w = h(() => P({
1585
897
  "f-section-extend": !0
1586
- }, p.value));
1587
- function j() {
1588
- return e.slots.extend && M("div", {
1589
- class: p.value
898
+ }, w.value));
899
+ function T() {
900
+ return e.slots.extend && b("div", {
901
+ class: w.value
1590
902
  }, [e.slots.extend()]);
1591
903
  }
1592
- function d() {
1593
- return M("div", {
1594
- class: a.value,
1595
- ref: n,
1596
- "data-dragref": `${i.schema.id}-container`
1597
- }, [f.value === "inContent" && r(), e.slots.default && e.slots.default()]);
904
+ function A() {
905
+ return b("div", {
906
+ class: S.value,
907
+ ref: t,
908
+ "data-dragref": `${o.schema.id}-container`
909
+ }, [u.value === "inContent" && M(), e.slots.default && e.slots.default()]);
1598
910
  }
1599
- return () => M("div", {
1600
- class: l.value,
1601
- ref: o
1602
- }, [g(), j(), d()]);
911
+ return () => b("div", {
912
+ class: C.value,
913
+ ref: a
914
+ }, [y(), T(), A()]);
1603
915
  }
1604
916
  });
1605
- x.register = (t, e, n, o) => {
1606
- t.section = x, e.section = Z;
917
+ E.register = (n, e, t, a) => {
918
+ n.section = E, e.section = G;
1607
919
  };
1608
- x.registerDesigner = (t, e, n) => {
1609
- t.section = Ve, e.section = Z;
920
+ E.registerDesigner = (n, e, t) => {
921
+ n.section = we, e.section = G;
1610
922
  };
1611
- const Ue = te(x);
923
+ const Ee = Z(E);
1612
924
  export {
1613
- x as Section,
1614
- Ue as default,
1615
- Z as propsResolver,
1616
- L as sectionProps
925
+ E as Section,
926
+ Ee as default,
927
+ G as propsResolver,
928
+ F as sectionProps
1617
929
  };