@farris/ui-vue 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/components/accordion/index.esm.js +150 -142
  2. package/components/avatar/index.esm.js +393 -457
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +491 -554
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +479 -513
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +857 -743
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4883 -5182
  17. package/components/data-view/index.esm.js +3072 -2949
  18. package/components/date-picker/index.esm.js +2626 -2689
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +940 -998
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +307 -293
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1747 -1627
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5877 -6176
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1454 -1524
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +659 -722
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1643 -1524
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6502 -6770
  47. package/components/mapping-editor/index.esm.js +5639 -5939
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +1098 -1130
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1317
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1479 -1513
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +706 -778
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +453 -516
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +555 -526
  74. package/components/response-toolbar/index.esm.js +1009 -1247
  75. package/components/schema-selector/index.esm.js +3261 -3373
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +441 -504
  83. package/components/tabs/index.esm.js +1849 -2039
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +445 -493
  87. package/components/time-picker/index.esm.js +1350 -1414
  88. package/components/transfer/index.esm.js +146 -144
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5948 -6237
  91. package/components/tree-view/index.esm.js +2381 -2255
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +27221 -26804
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  102. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  103. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  104. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  105. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  106. package/types/data-view/composition/types.d.ts +1 -1
  107. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  108. package/types/designer-canvas/src/types.d.ts +1 -1
  109. package/types/dynamic-form/index.d.ts +1 -0
  110. package/types/dynamic-form/src/types.d.ts +1 -1
  111. package/types/dynamic-resolver/index.d.ts +1 -0
  112. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  113. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  114. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  115. package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
  116. package/types/modal/src/modal.props.d.ts +1 -4
  117. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
  118. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
  119. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  120. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  121. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  122. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  123. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  124. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  125. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  126. package/components/accordion/index.umd.cjs +0 -1
  127. package/components/avatar/index.umd.cjs +0 -1
  128. package/components/border-editor/index.umd.cjs +0 -1
  129. package/components/button/index.umd.cjs +0 -1
  130. package/components/button-edit/index.umd.cjs +0 -1
  131. package/components/button-group/index.umd.cjs +0 -1
  132. package/components/calculator/index.umd.cjs +0 -1
  133. package/components/calendar/index.umd.cjs +0 -1
  134. package/components/capsule/index.umd.cjs +0 -1
  135. package/components/checkbox/index.umd.cjs +0 -1
  136. package/components/color-picker/index.umd.cjs +0 -3
  137. package/components/combo-list/index.umd.cjs +0 -1
  138. package/components/combo-tree/index.umd.cjs +0 -1
  139. package/components/common/index.umd.cjs +0 -1
  140. package/components/component/index.umd.cjs +0 -1
  141. package/components/condition/index.umd.cjs +0 -1
  142. package/components/content-container/index.umd.cjs +0 -1
  143. package/components/data-grid/index.umd.cjs +0 -1
  144. package/components/data-view/index.umd.cjs +0 -1
  145. package/components/date-picker/index.umd.cjs +0 -1
  146. package/components/designer-canvas/index.umd.cjs +0 -1
  147. package/components/designer-outline/index.umd.cjs +0 -1
  148. package/components/designer-toolbox/index.umd.cjs +0 -1
  149. package/components/discussion-editor/index.umd.cjs +0 -3
  150. package/components/discussion-list/index.umd.cjs +0 -1
  151. package/components/drawer/index.umd.cjs +0 -1
  152. package/components/dropdown/index.umd.cjs +0 -2
  153. package/components/dynamic-form/index.umd.cjs +0 -1
  154. package/components/dynamic-resolver/index.umd.cjs +0 -1
  155. package/components/dynamic-view/index.umd.cjs +0 -1
  156. package/components/enum-editor/index.umd.cjs +0 -1
  157. package/components/events-editor/index.umd.cjs +0 -1
  158. package/components/expression-editor/index.umd.cjs +0 -1
  159. package/components/external-container/index.umd.cjs +0 -1
  160. package/components/field-selector/index.umd.cjs +0 -1
  161. package/components/filter-bar/index.umd.cjs +0 -1
  162. package/components/flow-canvas/index.umd.cjs +0 -1
  163. package/components/image-cropper/index.umd.cjs +0 -1
  164. package/components/input-group/index.umd.cjs +0 -1
  165. package/components/layout/index.umd.cjs +0 -1
  166. package/components/list-nav/index.umd.cjs +0 -1
  167. package/components/list-view/index.umd.cjs +0 -1
  168. package/components/loading/index.umd.cjs +0 -8
  169. package/components/locale/index.umd.cjs +0 -1
  170. package/components/lookup/index.umd.cjs +0 -1
  171. package/components/mapping-editor/index.umd.cjs +0 -1
  172. package/components/message-box/index.umd.cjs +0 -1
  173. package/components/modal/index.umd.cjs +0 -1
  174. package/components/nav/index.umd.cjs +0 -3
  175. package/components/notify/index.umd.cjs +0 -1
  176. package/components/order/index.umd.cjs +0 -1
  177. package/components/page-footer/index.umd.cjs +0 -1
  178. package/components/page-header/index.umd.cjs +0 -1
  179. package/components/pagination/index.umd.cjs +0 -1
  180. package/components/popover/index.umd.cjs +0 -1
  181. package/components/progress/index.umd.cjs +0 -3
  182. package/components/property-editor/index.umd.cjs +0 -3
  183. package/components/property-panel/index.umd.cjs +0 -1
  184. package/components/radio-button/index.umd.cjs +0 -1
  185. package/components/radio-group/index.umd.cjs +0 -1
  186. package/components/rate/index.umd.cjs +0 -1
  187. package/components/response-layout/index.umd.cjs +0 -1
  188. package/components/response-layout-editor/index.umd.cjs +0 -1
  189. package/components/response-toolbar/index.umd.cjs +0 -1
  190. package/components/schema-selector/index.umd.cjs +0 -8
  191. package/components/search-box/index.umd.cjs +0 -1
  192. package/components/section/index.umd.cjs +0 -1
  193. package/components/smoke-detector/index.umd.cjs +0 -1
  194. package/components/spacing-editor/index.umd.cjs +0 -1
  195. package/components/splitter/index.umd.cjs +0 -1
  196. package/components/step/index.umd.cjs +0 -1
  197. package/components/switch/index.umd.cjs +0 -1
  198. package/components/tabs/index.umd.cjs +0 -1
  199. package/components/tags/index.umd.cjs +0 -1
  200. package/components/text/index.umd.cjs +0 -1
  201. package/components/textarea/index.umd.cjs +0 -1
  202. package/components/time-picker/index.umd.cjs +0 -1
  203. package/components/tooltip/index.umd.cjs +0 -1
  204. package/components/transfer/index.umd.cjs +0 -1
  205. package/components/tree-grid/index.umd.cjs +0 -1
  206. package/components/tree-view/index.umd.cjs +0 -1
  207. package/components/uploader/index.umd.cjs +0 -2
  208. package/components/verify-detail/index.umd.cjs +0 -1
  209. package/components/video/index.umd.cjs +0 -1
  210. package/components/weather/index.umd.cjs +0 -16
@@ -1,128 +1,128 @@
1
- import { ref as h, computed as z, defineComponent as T, provide as X, createVNode as O, inject as $, onMounted as Y } from "vue";
2
- import { cloneDeep as I } from "lodash-es";
1
+ import { ref as z, computed as S, defineComponent as R, provide as X, createVNode as A, inject as D, onMounted as Y } from "vue";
2
+ import { cloneDeep as ee } from "lodash-es";
3
3
  import "bignumber.js";
4
4
  const _ = {}, J = {};
5
- function k(t) {
6
- const { properties: e, title: n } = t, i = Object.keys(e).reduce((a, p) => (a[p] = e[p].type === "object" && e[p].properties ? k(e[p]) : I(e[p].default), a), {});
7
- return i.id = `${n}-${Date.now()}`, i;
5
+ function F(t) {
6
+ const { properties: e, title: n } = t, s = Object.keys(e).reduce((r, d) => (r[d] = e[d].type === "object" && e[d].properties ? F(e[d]) : ee(e[d].default), r), {});
7
+ return s.id = `${n}-${Date.now()}`, s;
8
8
  }
9
- function D(t, e = {}) {
9
+ function $(t, e = {}) {
10
10
  const n = _[t];
11
11
  if (n) {
12
- let i = k(n);
13
- const a = J[t];
14
- return i = a ? a({ getSchemaByType: D }, i, e) : i, i;
12
+ let s = F(n);
13
+ const r = J[t];
14
+ return s = r ? r({ getSchemaByType: $ }, s, e) : s, s;
15
15
  }
16
16
  return null;
17
17
  }
18
- function ee(t, e) {
19
- const n = k(e);
20
- return Object.keys(t).reduce((i, a) => (i[a] = t[a], i), n), n;
21
- }
22
18
  function te(t, e) {
23
- return Object.keys(t).filter((i) => t[i] != null).reduce((i, a) => {
24
- if (e.has(a)) {
25
- const p = e.get(a);
26
- if (typeof p == "string")
27
- i[p] = t[a];
19
+ const n = F(e);
20
+ return Object.keys(t).reduce((s, r) => (s[r] && typeof s[r] == "object" ? Object.assign(s[r], t[r]) : s[r] = t[r], s), n), n;
21
+ }
22
+ function ne(t, e) {
23
+ return Object.keys(t).filter((s) => t[s] != null).reduce((s, r) => {
24
+ if (e.has(r)) {
25
+ const d = e.get(r);
26
+ if (typeof d == "string")
27
+ s[d] = t[r];
28
28
  else {
29
- const c = p(a, t[a], t);
30
- Object.assign(i, c);
29
+ const u = d(r, t[r], t);
30
+ Object.assign(s, u);
31
31
  }
32
32
  } else
33
- i[a] = t[a];
34
- return i;
33
+ s[r] = t[r];
34
+ return s;
35
35
  }, {});
36
36
  }
37
- function ne(t, e, n = /* @__PURE__ */ new Map()) {
38
- const i = ee(t, e);
39
- return te(i, n);
37
+ function se(t, e, n = /* @__PURE__ */ new Map()) {
38
+ const s = te(t, e);
39
+ return ne(s, n);
40
40
  }
41
- function ie(t = {}) {
42
- function e(r, s, o, l) {
43
- if (typeof o == "number")
44
- return l[r].length === o;
45
- if (typeof o == "object") {
46
- const f = Object.keys(o)[0], m = o[f];
47
- if (f === "not")
48
- return Number(l[r].length) !== Number(m);
49
- if (f === "moreThan")
50
- return Number(l[r].length) >= Number(m);
51
- if (f === "lessThan")
52
- return Number(l[r].length) <= Number(m);
41
+ function oe(t = {}) {
42
+ function e(l, i, c, p) {
43
+ if (typeof c == "number")
44
+ return p[l].length === c;
45
+ if (typeof c == "object") {
46
+ const b = Object.keys(c)[0], o = c[b];
47
+ if (b === "not")
48
+ return Number(p[l].length) !== Number(o);
49
+ if (b === "moreThan")
50
+ return Number(p[l].length) >= Number(o);
51
+ if (b === "lessThan")
52
+ return Number(p[l].length) <= Number(o);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function n(r, s, o, l) {
57
- return l[r] && l[r].propertyValue && String(l[r].propertyValue.value) === String(o);
56
+ function n(l, i, c, p) {
57
+ return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(c);
58
58
  }
59
- const i = /* @__PURE__ */ new Map([
59
+ const s = /* @__PURE__ */ new Map([
60
60
  ["length", e],
61
61
  ["getProperty", n]
62
62
  ]);
63
- Object.keys(t).reduce((r, s) => (r.set(s, t[s]), r), i);
64
- function a(r, s) {
65
- const o = r;
66
- return typeof s == "number" ? [{ target: o, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: o, operator: "getProperty", param: r, value: !!s }] : typeof s == "object" ? Object.keys(s).map((l) => {
67
- if (l === "length")
68
- return { target: o, operator: "length", param: null, value: s[l] };
69
- const f = l, m = s[l];
70
- return { target: o, operator: "getProperty", param: f, value: m };
63
+ Object.keys(t).reduce((l, i) => (l.set(i, t[i]), l), s);
64
+ function r(l, i) {
65
+ const c = l;
66
+ return typeof i == "number" ? [{ target: c, operator: "length", param: null, value: Number(i) }] : typeof i == "boolean" ? [{ target: c, operator: "getProperty", param: l, value: !!i }] : typeof i == "object" ? Object.keys(i).map((p) => {
67
+ if (p === "length")
68
+ return { target: c, operator: "length", param: null, value: i[p] };
69
+ const b = p, o = i[p];
70
+ return { target: c, operator: "getProperty", param: b, value: o };
71
71
  }) : [];
72
72
  }
73
- function p(r) {
74
- return Object.keys(r).reduce((o, l) => {
75
- const f = a(l, r[l]);
76
- return o.push(...f), o;
73
+ function d(l) {
74
+ return Object.keys(l).reduce((c, p) => {
75
+ const b = r(p, l[p]);
76
+ return c.push(...b), c;
77
77
  }, []);
78
78
  }
79
- function c(r, s) {
80
- if (i.has(r.operator)) {
81
- const o = i.get(r.operator);
82
- return o && o(r.target, r.param, r.value, s) || !1;
79
+ function u(l, i) {
80
+ if (s.has(l.operator)) {
81
+ const c = s.get(l.operator);
82
+ return c && c(l.target, l.param, l.value, i) || !1;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function d(r, s) {
87
- return p(r).reduce((f, m) => f && c(m, s), !0);
86
+ function v(l, i) {
87
+ return d(l).reduce((b, o) => b && u(o, i), !0);
88
88
  }
89
- function y(r, s) {
90
- const o = Object.keys(r), l = o.includes("allOf"), f = o.includes("anyOf"), m = l || f, H = (m ? r[m ? l ? "allOf" : "anyOf" : "allOf"] : [r]).map((P) => d(P, s));
91
- return l ? !H.includes(!1) : H.includes(!0);
89
+ function j(l, i) {
90
+ const c = Object.keys(l), p = c.includes("allOf"), b = c.includes("anyOf"), o = p || b, m = (o ? l[o ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((h) => v(h, i));
91
+ return p ? !m.includes(!1) : m.includes(!0);
92
92
  }
93
- return { parseValueSchema: y };
93
+ return { parseValueSchema: j };
94
94
  }
95
- const ae = {}, se = {};
96
- ie();
97
- function G(t, e, n = /* @__PURE__ */ new Map(), i = (c, d, y) => d, a = {}, p = (c) => c) {
98
- return _[e.title] = e, J[e.title] = i, ae[e.title] = a, se[e.title] = p, (c = {}) => {
99
- const d = ne(c, e, n), y = Object.keys(t).reduce((r, s) => (r[s] = t[s].default, r), {});
100
- return Object.assign(y, d);
95
+ const re = {}, ie = {};
96
+ oe();
97
+ function G(t, e, n = /* @__PURE__ */ new Map(), s = (u, v, j) => v, r = {}, d = (u) => u) {
98
+ return _[e.title] = e, J[e.title] = s, re[e.title] = r, ie[e.title] = d, (u = {}) => {
99
+ const v = se(u, e, n), j = Object.keys(t).reduce((l, i) => (l[i] = t[i].default, l), {});
100
+ return Object.assign(j, v);
101
101
  };
102
102
  }
103
103
  function Q(t, e) {
104
104
  return { customClass: e.class, customStyle: e.style };
105
105
  }
106
- const re = /* @__PURE__ */ new Map([
106
+ const ae = /* @__PURE__ */ new Map([
107
107
  ["appearance", Q]
108
108
  ]);
109
- function oe(t, e, n) {
110
- const i = t.getSchemaByType("splitter-pane");
111
- return i.appearance = {
109
+ function ce(t, e, n) {
110
+ const s = t.getSchemaByType("splitter-pane");
111
+ return s.appearance = {
112
112
  class: "f-col-w6 f-page-content-nav"
113
- }, i.position = "left", e.contents.unshift(i), e;
113
+ }, s.position = "left", e.contents.unshift(s), e;
114
114
  }
115
115
  function le(t, e, n) {
116
- const i = t.getSchemaByType("splitter-pane");
117
- return i.appearance = {
116
+ const s = t.getSchemaByType("splitter-pane");
117
+ return s.appearance = {
118
118
  class: "f-page-content-main"
119
- }, i.position = "main", e.contents.push(i), e;
119
+ }, s.position = "main", e.contents.push(s), e;
120
120
  }
121
- function ce(t, e, n) {
122
- const i = n.parentComponentInstance;
123
- return String(i.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), oe(t, e), le(t, e), e;
121
+ function pe(t, e, n) {
122
+ const s = n.parentComponentInstance;
123
+ return String(s.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), ce(t, e), le(t, e), e;
124
124
  }
125
- const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/splitter.schema.json", fe = "splitter", me = "A Farris Container Component", de = "object", ye = {
125
+ const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-design.gitee.io/splitter.schema.json", de = "splitter", ye = "A Farris Container Component", be = "object", me = {
126
126
  id: {
127
127
  description: "The unique identifier for a splitter",
128
128
  type: "string"
@@ -159,14 +159,14 @@ const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
159
159
  "row"
160
160
  ]
161
161
  }
162
- }, ve = {
163
- $schema: pe,
164
- $id: ue,
165
- title: fe,
166
- description: me,
167
- type: de,
168
- properties: ye
169
- }, he = "splitter", ge = "A Farris Container Component", be = "object", Ce = {
162
+ }, he = {
163
+ $schema: ue,
164
+ $id: fe,
165
+ title: de,
166
+ description: ye,
167
+ type: be,
168
+ properties: me
169
+ }, ge = "splitter", ve = "A Farris Container Component", je = "object", Ce = {
170
170
  basic: {
171
171
  description: "Basic Infomation",
172
172
  title: "基本信息",
@@ -182,8 +182,15 @@ const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
182
182
  title: "控件类型",
183
183
  type: "select",
184
184
  editor: {
185
- type: "Splitter",
186
- enum: []
185
+ type: "combo-list",
186
+ textField: "value",
187
+ valueField: "key",
188
+ data: [
189
+ {
190
+ key: "splitter",
191
+ value: "分栏面板"
192
+ }
193
+ ]
187
194
  }
188
195
  }
189
196
  }
@@ -213,124 +220,124 @@ const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
213
220
  }
214
221
  }
215
222
  }
216
- }, ze = {
217
- title: he,
218
- description: ge,
219
- type: be,
223
+ }, Pe = {
224
+ title: ge,
225
+ description: ve,
226
+ type: je,
220
227
  categories: Ce
221
- }, F = {
228
+ }, L = {
222
229
  customStyle: { type: String, default: "" },
223
230
  customClass: { type: String, default: "" },
224
231
  direction: { Type: String, default: "column" }
225
- }, W = G(F, ve, re, ce, ze);
232
+ }, q = G(L, he, ae, pe, Pe);
226
233
  function U(t) {
227
- const e = h(-1), n = h(-1), i = h(0), a = h(0), p = h(!1), c = h(!1), d = z(() => ({
228
- display: p.value ? "block" : "none",
229
- left: `${i.value}px`
230
- })), y = z(() => ({
231
- display: c.value ? "block" : "none",
232
- top: `${a.value}px`
233
- })), r = z(() => ({
234
- display: c.value || p.value ? "block" : "none"
234
+ const e = z(-1), n = z(-1), s = z(0), r = z(0), d = z(!1), u = z(!1), v = S(() => ({
235
+ display: d.value ? "block" : "none",
236
+ left: `${s.value}px`
237
+ })), j = S(() => ({
238
+ display: u.value ? "block" : "none",
239
+ top: `${r.value}px`
240
+ })), l = S(() => ({
241
+ display: u.value || d.value ? "block" : "none"
235
242
  }));
236
- function s(l) {
237
- const f = t.value;
238
- if (f) {
239
- const { left: m } = f.getBoundingClientRect();
240
- i.value = l.clientX - m;
243
+ function i(p) {
244
+ const b = t.value;
245
+ if (b) {
246
+ const { left: o } = b.getBoundingClientRect();
247
+ s.value = p.clientX - o;
241
248
  }
242
249
  }
243
- function o(l) {
244
- const f = t.value;
245
- if (f) {
246
- const { top: m } = f.getBoundingClientRect();
247
- a.value = l.clientY - m;
250
+ function c(p) {
251
+ const b = t.value;
252
+ if (b) {
253
+ const { top: o } = b.getBoundingClientRect();
254
+ r.value = p.clientY - o;
248
255
  }
249
256
  }
250
257
  return {
251
- horizontalResizeHandleStyle: d,
252
- verticalResizeHandleStyle: y,
253
- resizeOverlayStyle: r,
254
- showHorizontalResizeHandle: p,
255
- showVerticalResizeHandle: c,
258
+ horizontalResizeHandleStyle: v,
259
+ verticalResizeHandleStyle: j,
260
+ resizeOverlayStyle: l,
261
+ showHorizontalResizeHandle: d,
262
+ showVerticalResizeHandle: u,
256
263
  horizontalResizeBarPosition: e,
257
264
  verticalResizeBarPosition: n,
258
- verticalResizeHandleOffset: a,
259
- horizontalResizeHandleOffset: i,
260
- draggingHorizontalResizeHandle: s,
261
- draggingVerticalResizeHandle: o
265
+ verticalResizeHandleOffset: r,
266
+ horizontalResizeHandleOffset: s,
267
+ draggingHorizontalResizeHandle: i,
268
+ draggingVerticalResizeHandle: c
262
269
  };
263
270
  }
264
271
  const we = ["moz", "ms", "webkit"];
265
- function Pe() {
272
+ function ze() {
266
273
  let t = 0;
267
274
  return (e) => {
268
- const n = (/* @__PURE__ */ new Date()).getTime(), i = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
269
- e(n + i);
270
- }, i);
271
- return t = n + i, a;
275
+ const n = (/* @__PURE__ */ new Date()).getTime(), s = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
276
+ e(n + s);
277
+ }, s);
278
+ return t = n + s, r;
272
279
  };
273
280
  }
274
- function Se() {
281
+ function Oe() {
275
282
  if (typeof window > "u")
276
283
  return () => 0;
277
284
  if (window.requestAnimationFrame)
278
285
  return window.requestAnimationFrame.bind(window);
279
286
  const t = we.filter((e) => `${e}RequestAnimationFrame` in window)[0];
280
- return t ? window[`${t}RequestAnimationFrame`] : Pe();
287
+ return t ? window[`${t}RequestAnimationFrame`] : ze();
281
288
  }
282
- Se();
283
- function B(t, e) {
284
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((i, a) => (a && (i[a] = !0), i), t), t;
289
+ Oe();
290
+ function M(t, e) {
291
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((s, r) => (r && (s[r] = !0), s), t), t;
285
292
  }
286
- function R(t, e) {
287
- return ((e == null ? void 0 : e.split(";")) || []).reduce((i, a) => {
288
- if (a) {
289
- const p = a.split(":");
290
- i[p[0]] = p[1];
293
+ function H(t, e) {
294
+ return ((e == null ? void 0 : e.split(";")) || []).reduce((s, r) => {
295
+ if (r) {
296
+ const d = r.split(":");
297
+ s[d[0]] = d[1];
291
298
  }
292
- return i;
299
+ return s;
293
300
  }, t), t;
294
301
  }
295
- const A = /* @__PURE__ */ T({
302
+ const B = /* @__PURE__ */ R({
296
303
  name: "FSplitter",
297
- props: F,
304
+ props: L,
298
305
  emits: [],
299
306
  setup(t, e) {
300
- const n = h(), i = U(n), {
301
- horizontalResizeHandleStyle: a,
302
- verticalResizeHandleStyle: p,
303
- resizeOverlayStyle: c
304
- } = i;
307
+ const n = z(), s = U(n), {
308
+ horizontalResizeHandleStyle: r,
309
+ verticalResizeHandleStyle: d,
310
+ resizeOverlayStyle: u
311
+ } = s;
305
312
  X("splitter", {
306
- useResizeHandleComposition: i
313
+ useResizeHandleComposition: s
307
314
  });
308
- const d = z(() => B({
315
+ const v = S(() => M({
309
316
  "f-splitter": !0
310
- }, t == null ? void 0 : t.customClass)), y = z(() => {
311
- const r = {
317
+ }, t == null ? void 0 : t.customClass)), j = S(() => {
318
+ const l = {
312
319
  "flex-direction": t.direction === "row" ? "column" : "row"
313
320
  };
314
- return R(r, t == null ? void 0 : t.customStyle);
321
+ return H(l, t == null ? void 0 : t.customStyle);
315
322
  });
316
- return () => O("div", {
317
- class: d.value,
323
+ return () => A("div", {
324
+ class: v.value,
318
325
  ref: n,
319
- style: y.value
320
- }, [e.slots.default && e.slots.default(), O("div", {
326
+ style: j.value
327
+ }, [e.slots.default && e.slots.default(), A("div", {
321
328
  class: "f-splitter-resize-overlay",
322
- style: c.value
323
- }, null), O("div", {
329
+ style: u.value
330
+ }, null), A("div", {
324
331
  class: "f-splitter-horizontal-resize-proxy",
325
- style: a.value
326
- }, null), O("div", {
332
+ style: r.value
333
+ }, null), A("div", {
327
334
  class: "f-splitter-vertical-resize-proxy",
328
- style: p.value
335
+ style: d.value
329
336
  }, null)]);
330
337
  }
331
- }), Oe = /* @__PURE__ */ new Map([
338
+ }), Se = /* @__PURE__ */ new Map([
332
339
  ["appearance", Q]
333
- ]), Ee = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-design.gitee.io/splitter-pane.schema.json", He = "splitter-pane", De = "A Farris Container Component", Me = "object", $e = {
340
+ ]), Ae = "https://json-schema.org/draft/2020-12/schema", Te = "https://farris-design.gitee.io/splitter-pane.schema.json", Ee = "splitter-pane", $e = "A Farris Container Component", De = "object", Re = {
334
341
  id: {
335
342
  description: "The unique identifier for a splitter",
336
343
  type: "string"
@@ -406,14 +413,14 @@ const A = /* @__PURE__ */ T({
406
413
  type: "number",
407
414
  default: !0
408
415
  }
409
- }, Te = {
410
- $schema: Ee,
411
- $id: je,
412
- title: He,
413
- description: De,
414
- type: Me,
415
- properties: $e
416
- }, Be = "splitter-pane", Re = "A Farris Container Component", Ae = "object", Ne = {
416
+ }, Me = {
417
+ $schema: Ae,
418
+ $id: Te,
419
+ title: Ee,
420
+ description: $e,
421
+ type: De,
422
+ properties: Re
423
+ }, He = "splitter-pane", Be = "A Farris Container Component", Ne = "object", ke = {
417
424
  basic: {
418
425
  description: "Basic Infomation",
419
426
  title: "基本信息",
@@ -509,12 +516,12 @@ const A = /* @__PURE__ */ T({
509
516
  }
510
517
  }
511
518
  }
512
- }, ke = {
513
- title: Be,
514
- description: Re,
515
- type: Ae,
516
- categories: Ne
517
- }, L = {
519
+ }, Fe = {
520
+ title: He,
521
+ description: Be,
522
+ type: Ne,
523
+ categories: ke
524
+ }, V = {
518
525
  customClass: { type: String, defaut: "" },
519
526
  customStyle: { type: String, default: "" },
520
527
  /** 记录原始定义宽度 */
@@ -533,247 +540,943 @@ const A = /* @__PURE__ */ T({
533
540
  minWidth: { type: Number, default: 200 },
534
541
  /** 面板最小高度 */
535
542
  minHeight: { type: Number, default: 200 }
536
- }, q = G(
537
- L,
538
- Te,
539
- Oe,
543
+ }, x = G(
544
+ V,
545
+ Me,
546
+ Se,
540
547
  void 0,
541
- ke
548
+ Fe
542
549
  );
543
550
  function Z(t, e) {
544
- const n = h(t.width), i = h(t.height), {
545
- horizontalResizeBarPosition: a,
546
- horizontalResizeHandleOffset: p,
547
- showHorizontalResizeHandle: c,
548
- showVerticalResizeHandle: d,
549
- verticalResizeBarPosition: y,
550
- verticalResizeHandleOffset: r,
551
- draggingHorizontalResizeHandle: s,
552
- draggingVerticalResizeHandle: o
551
+ const n = z(t.width), s = z(t.height), {
552
+ horizontalResizeBarPosition: r,
553
+ horizontalResizeHandleOffset: d,
554
+ showHorizontalResizeHandle: u,
555
+ showVerticalResizeHandle: v,
556
+ verticalResizeBarPosition: j,
557
+ verticalResizeHandleOffset: l,
558
+ draggingHorizontalResizeHandle: i,
559
+ draggingVerticalResizeHandle: c
553
560
  } = e;
554
- let l = "", f, m;
555
- function v(C) {
556
- if ((l === "left" || l === "right") && m) {
557
- const { left: P } = m.getBoundingClientRect(), { width: S } = f.getBoundingClientRect(), E = C.clientX - P, u = l === "left" ? (S || 0) + (E - a.value) : (S || 0) - (E - a.value);
558
- n.value = t.minWidth > 0 ? Math.max(t.minWidth, u) : u;
561
+ let p = "", b, o;
562
+ function a(g) {
563
+ if ((p === "left" || p === "right") && o) {
564
+ const { left: h } = o.getBoundingClientRect(), { width: C } = b.getBoundingClientRect(), O = g.clientX - h, y = p === "left" ? (C || 0) + (O - r.value) : (C || 0) - (O - r.value);
565
+ n.value = t.minWidth > 0 ? Math.max(t.minWidth, y) : y;
559
566
  }
560
- if ((l === "top" || l === "bottom") && m) {
561
- const { top: P } = m.getBoundingClientRect(), { height: S } = f.getBoundingClientRect(), E = C.clientY - P, u = l === "top" ? (S || 0) + (E - y.value) : (S || 0) - (E - y.value);
562
- i.value = t.minHeight > 0 ? Math.max(t.minHeight, u) : u;
567
+ if ((p === "top" || p === "bottom") && o) {
568
+ const { top: h } = o.getBoundingClientRect(), { height: C } = b.getBoundingClientRect(), O = g.clientY - h, y = p === "top" ? (C || 0) + (O - j.value) : (C || 0) - (O - j.value);
569
+ s.value = t.minHeight > 0 ? Math.max(t.minHeight, y) : y;
563
570
  }
564
- p.value = 0, r.value = 0, a.value = -1, y.value = -1, c.value = !1, d.value = !1, document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", v), document.body.style.userSelect = "", l = "", f = null, m = null;
571
+ d.value = 0, l.value = 0, r.value = -1, j.value = -1, u.value = !1, v.value = !1, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a), document.body.style.userSelect = "", p = "", b = null, o = null;
565
572
  }
566
- function w(C, P, S) {
567
- if (l = P, f = S, c.value = !0, m = C.composedPath().find((u) => u.className.split(" ")[0] === "f-splitter"), m) {
568
- const { left: u } = m.getBoundingClientRect();
569
- p.value = C.clientX - u, a.value = C.clientX - u, document.addEventListener("mousemove", s), document.addEventListener("mouseup", v), document.body.style.userSelect = "none";
573
+ function f(g, h, C) {
574
+ if (p = h, b = C, u.value = !0, o = g.composedPath().find((y) => y.className.split(" ")[0] === "f-splitter"), o) {
575
+ const { left: y } = o.getBoundingClientRect();
576
+ d.value = g.clientX - y, r.value = g.clientX - y, document.addEventListener("mousemove", i), document.addEventListener("mouseup", a), document.body.style.userSelect = "none";
570
577
  }
571
578
  }
572
- function H(C, P, S) {
573
- if (l = P, f = S, d.value = !0, m = C.composedPath().find((u) => u.className.split(" ")[0] === "f-splitter"), m) {
574
- const { top: u } = m.getBoundingClientRect();
575
- r.value = C.clientY - u, y.value = C.clientY - u, document.addEventListener("mousemove", o), document.addEventListener("mouseup", v), document.body.style.userSelect = "none";
579
+ function m(g, h, C) {
580
+ if (p = h, b = C, v.value = !0, o = g.composedPath().find((y) => y.className.split(" ")[0] === "f-splitter"), o) {
581
+ const { top: y } = o.getBoundingClientRect();
582
+ l.value = g.clientY - y, j.value = g.clientY - y, document.addEventListener("mousemove", c), document.addEventListener("mouseup", a), document.body.style.userSelect = "none";
576
583
  }
577
584
  }
578
585
  return {
579
586
  actualWidth: n,
580
- actualHeight: i,
581
- onClickSplitterHorizontalResizeBar: w,
582
- onClickSplitterVerticalResizeBar: H
587
+ actualHeight: s,
588
+ onClickSplitterHorizontalResizeBar: f,
589
+ onClickSplitterVerticalResizeBar: m
583
590
  };
584
591
  }
585
- const N = /* @__PURE__ */ T({
592
+ const N = /* @__PURE__ */ R({
586
593
  name: "FSplitterPane",
587
- props: L,
594
+ props: V,
588
595
  emits: [],
589
596
  setup(t, e) {
590
- const n = h(), i = $("splitter"), {
591
- useResizeHandleComposition: a
592
- } = i, p = Z(t, a), {
593
- actualHeight: c,
594
- actualWidth: d,
595
- onClickSplitterHorizontalResizeBar: y,
596
- onClickSplitterVerticalResizeBar: r
597
- } = p, s = h(t.position), o = z(() => {
598
- const v = {
597
+ const n = z(), s = D("splitter"), {
598
+ useResizeHandleComposition: r
599
+ } = s, d = Z(t, r), {
600
+ actualHeight: u,
601
+ actualWidth: v,
602
+ onClickSplitterHorizontalResizeBar: j,
603
+ onClickSplitterVerticalResizeBar: l
604
+ } = d, i = z(t.position), c = S(() => {
605
+ const a = {
599
606
  "f-splitter-pane": !0,
600
- "f-splitter-pane-column": s.value === "left" || s.value === "right",
601
- "f-splitter-pane-row": s.value === "bottom" || s.value === "top",
602
- "f-splitter-pane-main": s.value === "center"
607
+ "f-splitter-pane-column": i.value === "left" || i.value === "right",
608
+ "f-splitter-pane-row": i.value === "bottom" || i.value === "top",
609
+ "f-splitter-pane-main": i.value === "center"
603
610
  };
604
- return B(v, t == null ? void 0 : t.customClass);
605
- }), l = z(() => {
606
- const v = {};
607
- return (d.value && s.value === "left" || s.value === "right") && (v.width = `${d.value}px`), (c.value && s.value === "bottom" || s.value === "top") && (v.height = `${c.value}px`), R(v, t == null ? void 0 : t.customStyle);
608
- }), f = z(() => ({
611
+ return M(a, t == null ? void 0 : t.customClass);
612
+ }), p = S(() => {
613
+ const a = {};
614
+ return (v.value && i.value === "left" || i.value === "right") && (a.width = `${v.value}px`), (u.value && i.value === "bottom" || i.value === "top") && (a.height = `${u.value}px`), H(a, t == null ? void 0 : t.customStyle);
615
+ }), b = S(() => ({
609
616
  "f-splitter-resize-bar": !0,
610
- "f-splitter-resize-bar-e": s.value === "left",
611
- "f-splitter-resize-bar-n": s.value === "bottom",
612
- "f-splitter-resize-bar-s": s.value === "top",
613
- "f-splitter-resize-bar-w": s.value === "right"
617
+ "f-splitter-resize-bar-e": i.value === "left",
618
+ "f-splitter-resize-bar-n": i.value === "bottom",
619
+ "f-splitter-resize-bar-s": i.value === "top",
620
+ "f-splitter-resize-bar-w": i.value === "right"
614
621
  }));
615
- function m(v, w) {
616
- (w === "left" || w === "right") && y(v, w, n.value), (w === "top" || w === "bottom") && r(v, w, n.value);
622
+ function o(a, f) {
623
+ (f === "left" || f === "right") && j(a, f, n.value), (f === "top" || f === "bottom") && l(a, f, n.value);
617
624
  }
618
- return () => O("div", {
625
+ return () => A("div", {
619
626
  ref: n,
620
- class: o.value,
621
- style: l.value
622
- }, [e.slots.default && e.slots.default(), O("span", {
623
- class: f.value,
624
- onMousedown: (v) => m(v, s.value)
627
+ class: c.value,
628
+ style: p.value
629
+ }, [e.slots.default && e.slots.default(), A("span", {
630
+ class: b.value,
631
+ onMousedown: (a) => o(a, i.value)
625
632
  }, null)]);
626
633
  }
627
634
  });
628
635
  function K(t, e, n) {
629
- var E;
630
- function i() {
636
+ var O;
637
+ function s() {
631
638
  n != null && n.resolveComponentContext && n.resolveComponentContext();
632
639
  }
633
- i();
634
- const a = n && n.getStyles && n.getStyles() || "", p = n && n.getDesignerClass && n.getDesignerClass() || "", c = h();
635
- function d() {
640
+ s();
641
+ const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", u = z();
642
+ function v() {
636
643
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
637
644
  }
638
- function y() {
645
+ function j() {
639
646
  return !1;
640
647
  }
641
- function r() {
648
+ function l() {
642
649
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
643
650
  }
644
- function s() {
651
+ function i() {
645
652
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
646
653
  }
647
- function o(u) {
648
- if (!u || !u.value)
654
+ function c(y) {
655
+ if (!y || !y.value)
649
656
  return null;
650
- if (u.value.schema && u.value.schema.type === "component")
651
- return u.value;
652
- const b = h(u == null ? void 0 : u.value.parent), g = o(b);
653
- return g || null;
657
+ if (y.value.schema && y.value.schema.type === "component")
658
+ return y.value;
659
+ const w = z(y == null ? void 0 : y.value.parent), P = c(w);
660
+ return P || null;
654
661
  }
655
- function l(u = e) {
656
- const { componentInstance: b, designerItemElementRef: g } = u;
657
- return !b || !b.value ? null : b.value.canMove ? g : l(u.parent);
662
+ function p(y = e) {
663
+ const { componentInstance: w, designerItemElementRef: P } = y;
664
+ return !w || !w.value ? null : w.value.canMove ? P : p(y.parent);
658
665
  }
659
- function f(u) {
660
- return !!n && n.canAccepts(u);
666
+ function b(y) {
667
+ return !!n && n.canAccepts(y);
661
668
  }
662
- function m() {
669
+ function o() {
663
670
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
664
671
  }
665
- function v() {
672
+ function a() {
666
673
  }
667
- function w(u, b) {
668
- b && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(b);
674
+ function f(y, w) {
675
+ w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
669
676
  }
670
- function H(u) {
671
- const { componentType: b } = u;
672
- let g = D(b, u);
673
- n && n.onResolveNewComponentSchema && (g = n.onResolveNewComponentSchema(u, g));
674
- const M = b.toLowerCase().replace("-", "_");
675
- return g && !g.id && g.type === b && (g.id = `${M}_${Math.random().toString().slice(2, 6)}`), g;
677
+ function m(y) {
678
+ const { componentType: w } = y;
679
+ let P = $(w, y);
680
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(y, P));
681
+ const E = w.toLowerCase().replace("-", "_");
682
+ return P && !P.id && P.type === w && (P.id = `${E}_${Math.random().toString().slice(2, 6)}`), P;
676
683
  }
677
- function C(u, b) {
678
- const g = String(u.getAttribute("data-controltype")), M = u.getAttribute("data-feature"), V = M ? JSON.parse(M) : {};
679
- V.parentComponentInstance = c.value;
680
- let j = D(g, V);
681
- n && n.onAcceptNewChildElement && (j = n.onAcceptNewChildElement(u, b, j));
682
- const x = g.toLowerCase().replace("-", "_");
683
- return j && !j.id && j.type === g && (j.id = `${x}_${Math.random().toString().slice(2, 6)}`), j;
684
+ function g(y, w) {
685
+ const P = String(y.getAttribute("data-controltype")), E = y.getAttribute("data-feature"), W = E ? JSON.parse(E) : {};
686
+ W.parentComponentInstance = u.value;
687
+ let T = $(P, W);
688
+ n && n.onAcceptNewChildElement && (T = n.onAcceptNewChildElement(y, w, T));
689
+ const I = P.toLowerCase().replace("-", "_");
690
+ return T && !T.id && T.type === P && (T.id = `${I}_${Math.random().toString().slice(2, 6)}`), T;
684
691
  }
685
- function P(u) {
692
+ function h(y) {
686
693
  }
687
- function S(...u) {
694
+ function C(...y) {
688
695
  if (n && n.getPropsConfig)
689
- return n.getPropsConfig(...u);
696
+ return n.getPropsConfig(...y);
690
697
  }
691
- return c.value = {
692
- canMove: d(),
693
- canSelectParent: y(),
694
- canDelete: r(),
695
- canNested: !s(),
698
+ return u.value = {
699
+ canMove: v(),
700
+ canSelectParent: j(),
701
+ canDelete: l(),
702
+ canNested: !i(),
696
703
  contents: e == null ? void 0 : e.schema.contents,
697
704
  elementRef: t,
698
- parent: (E = e == null ? void 0 : e.parent) == null ? void 0 : E.componentInstance,
705
+ parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
699
706
  schema: e == null ? void 0 : e.schema,
700
- styles: a,
701
- designerClass: p,
702
- canAccepts: f,
703
- getBelongedComponentInstance: o,
704
- getDraggableDesignItemElement: l,
705
- getDraggingDisplayText: m,
706
- getPropConfig: S,
707
- getDragScopeElement: v,
708
- onAcceptMovedChildElement: w,
709
- onAcceptNewChildElement: C,
710
- onChildElementMovedOut: P,
711
- addNewChildComponentSchema: H,
712
- updateDragAndDropRules: i,
713
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
714
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
715
- }, c;
707
+ styles: r,
708
+ designerClass: d,
709
+ canAccepts: b,
710
+ getBelongedComponentInstance: c,
711
+ getDraggableDesignItemElement: p,
712
+ getDraggingDisplayText: o,
713
+ getPropConfig: C,
714
+ getDragScopeElement: a,
715
+ onAcceptMovedChildElement: f,
716
+ onAcceptNewChildElement: g,
717
+ onChildElementMovedOut: h,
718
+ addNewChildComponentSchema: m,
719
+ updateDragAndDropRules: s,
720
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || z(!1),
721
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || z(!1)
722
+ }, u;
723
+ }
724
+ const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-design.gitee.io/dragging-rules.schema.json", We = "Dragging Rules", qe = "The rules of designer canvas", xe = "object", Xe = {
725
+ "f-page": {
726
+ description: "The root class of page designed by farris.",
727
+ type: "object",
728
+ properties: {
729
+ contents: {
730
+ type: "object",
731
+ properties: {
732
+ "f-page-header": {
733
+ description: "The class of page header designed by farris.",
734
+ type: "string"
735
+ },
736
+ "f-page-main": {
737
+ description: "The class of page body designed by farris.",
738
+ type: "object",
739
+ properties: {
740
+ contents: {
741
+ type: "object",
742
+ properties: {
743
+ "f-struct-like-card": {
744
+ description: "",
745
+ type: "object",
746
+ properties: {
747
+ contents: {
748
+ type: "object",
749
+ properties: {
750
+ "f-struct-form": {
751
+ description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
752
+ type: "object",
753
+ properties: {
754
+ contents: {
755
+ type: "object",
756
+ properties: {
757
+ "f-section-form": {
758
+ description: "The class of section which has wrapped a reponse-form component.",
759
+ type: "object",
760
+ properties: {
761
+ contents: {
762
+ type: "object",
763
+ properties: {
764
+ "f-form-layout": {
765
+ description: "The class of reponse form",
766
+ type: "object",
767
+ properties: {
768
+ rules: {
769
+ type: "object",
770
+ properties: {
771
+ canAccept: {
772
+ type: "boolean",
773
+ const: !0
774
+ },
775
+ fixed: {
776
+ type: "boolean",
777
+ const: !0
778
+ },
779
+ hidePadding: {
780
+ type: "boolean",
781
+ const: !1
782
+ }
783
+ }
784
+ }
785
+ }
786
+ }
787
+ }
788
+ },
789
+ rules: {
790
+ type: "object",
791
+ properties: {
792
+ canAccept: {
793
+ type: "boolean",
794
+ const: !1
795
+ },
796
+ fixed: {
797
+ type: "boolean",
798
+ const: !0
799
+ },
800
+ hidePadding: {
801
+ type: "boolean",
802
+ const: !0
803
+ }
804
+ }
805
+ }
806
+ }
807
+ }
808
+ }
809
+ },
810
+ rules: {
811
+ type: "object",
812
+ properties: {
813
+ canAccept: {
814
+ type: "boolean",
815
+ const: !1
816
+ },
817
+ fixed: {
818
+ type: "boolean",
819
+ const: !1
820
+ },
821
+ hidePadding: {
822
+ type: "boolean",
823
+ const: !0
824
+ }
825
+ }
826
+ }
827
+ }
828
+ },
829
+ "f-struct-wrapper": {
830
+ description: "",
831
+ type: "object",
832
+ properties: {
833
+ contents: {
834
+ type: "object",
835
+ properties: {
836
+ "f-section-tabs": {
837
+ description: "The class of section which has wrapped sub-grid tabs.",
838
+ type: "object",
839
+ properties: {
840
+ contents: {
841
+ type: "object",
842
+ properties: {
843
+ "f-tabs-in-card": {
844
+ description: "The class of tabs which contains sub-grid.",
845
+ type: "object",
846
+ properties: {
847
+ contents: {
848
+ type: "object",
849
+ properties: {
850
+ "f-struct-data-grid-in-card": {
851
+ description: "The class of sub-grid component",
852
+ type: "object",
853
+ properties: {
854
+ contents: {
855
+ type: "object",
856
+ properties: {
857
+ "f-grid-is-sub": {
858
+ description: "The class of sub-grid",
859
+ type: "object",
860
+ properties: {
861
+ rules: {
862
+ type: "object",
863
+ properties: {
864
+ canAccept: {
865
+ type: "boolean",
866
+ const: !0
867
+ },
868
+ fixed: {
869
+ type: "boolean",
870
+ const: !0
871
+ },
872
+ hidePadding: {
873
+ type: "boolean",
874
+ const: !1
875
+ }
876
+ }
877
+ }
878
+ }
879
+ }
880
+ }
881
+ },
882
+ rules: {
883
+ type: "object",
884
+ properties: {
885
+ canAccept: {
886
+ type: "boolean",
887
+ const: !1
888
+ },
889
+ fixed: {
890
+ type: "boolean",
891
+ const: !1
892
+ },
893
+ hidePadding: {
894
+ type: "boolean",
895
+ const: !0
896
+ }
897
+ }
898
+ }
899
+ }
900
+ }
901
+ }
902
+ },
903
+ rules: {
904
+ type: "object",
905
+ properties: {
906
+ canAccept: {
907
+ type: "boolean",
908
+ const: !1
909
+ },
910
+ fixed: {
911
+ type: "boolean",
912
+ const: !0
913
+ },
914
+ hidePadding: {
915
+ type: "boolean",
916
+ const: !0
917
+ }
918
+ }
919
+ }
920
+ }
921
+ }
922
+ }
923
+ },
924
+ rules: {
925
+ type: "object",
926
+ properties: {
927
+ canAccept: {
928
+ type: "boolean",
929
+ const: !1
930
+ },
931
+ fixed: {
932
+ type: "boolean",
933
+ const: !0
934
+ },
935
+ hidePadding: {
936
+ type: "boolean",
937
+ const: !0
938
+ }
939
+ }
940
+ }
941
+ }
942
+ },
943
+ "f-section-in-main": {
944
+ description: "The class of section which has wrapped a reponse-form component.",
945
+ type: "object",
946
+ properties: {
947
+ rules: {
948
+ type: "object",
949
+ properties: {
950
+ canAccept: {
951
+ type: "boolean",
952
+ const: !0
953
+ },
954
+ fixed: {
955
+ type: "boolean",
956
+ const: !0
957
+ },
958
+ hidePadding: {
959
+ type: "boolean",
960
+ const: !1
961
+ }
962
+ }
963
+ }
964
+ }
965
+ }
966
+ }
967
+ },
968
+ rules: {
969
+ type: "object",
970
+ properties: {
971
+ canAccept: {
972
+ type: "boolean",
973
+ const: !1
974
+ },
975
+ fixed: {
976
+ type: "boolean",
977
+ const: !1
978
+ },
979
+ hidePadding: {
980
+ type: "boolean",
981
+ const: !0
982
+ }
983
+ }
984
+ }
985
+ }
986
+ }
987
+ }
988
+ },
989
+ rules: {
990
+ type: "object",
991
+ properties: {
992
+ canAccept: {
993
+ type: "boolean",
994
+ const: !0
995
+ },
996
+ fixed: {
997
+ type: "boolean",
998
+ const: !0
999
+ },
1000
+ hidePadding: {
1001
+ type: "object",
1002
+ const: {
1003
+ allOf: [
1004
+ {
1005
+ sibling: 0,
1006
+ parent: {
1007
+ "f-page-main": !0
1008
+ }
1009
+ }
1010
+ ]
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ }
1016
+ },
1017
+ "f-struct-data-grid": {
1018
+ description: "",
1019
+ type: "object",
1020
+ properties: {
1021
+ rules: {
1022
+ type: "object",
1023
+ properties: {
1024
+ canAccept: {
1025
+ type: "object",
1026
+ const: !0
1027
+ },
1028
+ fixed: {
1029
+ type: "boolean",
1030
+ const: !0
1031
+ },
1032
+ hidePadding: {
1033
+ type: "boolean",
1034
+ const: !0
1035
+ }
1036
+ }
1037
+ }
1038
+ }
1039
+ },
1040
+ "f-page-main-content": {
1041
+ description: "",
1042
+ type: "object",
1043
+ properties: {
1044
+ contents: {
1045
+ type: "object",
1046
+ properties: {
1047
+ "f-page-content-nav": {
1048
+ description: "",
1049
+ type: "object",
1050
+ properties: {
1051
+ contents: {
1052
+ type: "object",
1053
+ properties: {
1054
+ "f-struct-data-grid-in-nav": {
1055
+ description: "",
1056
+ type: "object",
1057
+ properties: {
1058
+ contents: {
1059
+ type: "object",
1060
+ properties: {
1061
+ "f-page-content-nav-extend": {
1062
+ description: "",
1063
+ type: "object"
1064
+ },
1065
+ "f-section-in-nav": {
1066
+ description: "",
1067
+ type: "object",
1068
+ properties: {
1069
+ rules: {
1070
+ type: "object",
1071
+ properties: {
1072
+ canAccept: {
1073
+ type: "boolean",
1074
+ const: !1
1075
+ },
1076
+ fixed: {
1077
+ type: "boolean",
1078
+ const: !0
1079
+ },
1080
+ hidePadding: {
1081
+ type: "boolean",
1082
+ const: !1
1083
+ }
1084
+ }
1085
+ }
1086
+ }
1087
+ }
1088
+ }
1089
+ },
1090
+ rules: {
1091
+ type: "object",
1092
+ properties: {
1093
+ canAccept: {
1094
+ type: "boolean",
1095
+ const: !0
1096
+ },
1097
+ fixed: {
1098
+ type: "boolean",
1099
+ const: !1
1100
+ },
1101
+ hidePadding: {
1102
+ type: "boolean",
1103
+ const: !0
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ },
1113
+ "f-page-content-main": {
1114
+ description: "",
1115
+ type: "object",
1116
+ properties: {}
1117
+ }
1118
+ }
1119
+ }
1120
+ }
1121
+ },
1122
+ "f-page-content": {
1123
+ description: "",
1124
+ type: "object",
1125
+ properties: {
1126
+ contents: {
1127
+ type: "object",
1128
+ properties: {
1129
+ "f-page-content-nav": {
1130
+ description: "",
1131
+ type: "object",
1132
+ properties: {
1133
+ contents: {
1134
+ type: "object",
1135
+ properties: {
1136
+ "f-list-nav": {
1137
+ description: "",
1138
+ type: "object"
1139
+ },
1140
+ "f-list-nav-left": {
1141
+ description: "",
1142
+ type: "object"
1143
+ }
1144
+ }
1145
+ }
1146
+ },
1147
+ rules: {
1148
+ type: "object",
1149
+ properties: {
1150
+ canAccept: {
1151
+ type: "boolean",
1152
+ const: !1
1153
+ },
1154
+ fixed: {
1155
+ type: "boolean",
1156
+ const: !0
1157
+ },
1158
+ hidePadding: {
1159
+ type: "boolean",
1160
+ const: !0
1161
+ }
1162
+ }
1163
+ }
1164
+ },
1165
+ "f-page-content-main": {
1166
+ description: "",
1167
+ type: "object",
1168
+ properties: {
1169
+ rules: {
1170
+ type: "object",
1171
+ properties: {
1172
+ canAccept: {
1173
+ type: "boolean",
1174
+ const: !1
1175
+ },
1176
+ fixed: {
1177
+ type: "boolean",
1178
+ const: !1
1179
+ },
1180
+ hidePadding: {
1181
+ type: "boolean",
1182
+ const: !0
1183
+ }
1184
+ }
1185
+ }
1186
+ }
1187
+ }
1188
+ }
1189
+ },
1190
+ rules: {
1191
+ type: "object",
1192
+ properties: {
1193
+ canAccept: {
1194
+ type: "boolean",
1195
+ const: !1
1196
+ },
1197
+ fixed: {
1198
+ type: "boolean",
1199
+ const: !0
1200
+ },
1201
+ hidePadding: {
1202
+ type: "boolean",
1203
+ const: !0
1204
+ }
1205
+ }
1206
+ }
1207
+ }
1208
+ }
1209
+ }
1210
+ },
1211
+ rules: {
1212
+ type: "object",
1213
+ properties: {
1214
+ canAccept: {
1215
+ type: "object",
1216
+ const: {
1217
+ anyOf: [
1218
+ {
1219
+ children: 0
1220
+ },
1221
+ {
1222
+ children: {
1223
+ length: {
1224
+ not: 1
1225
+ },
1226
+ "f-struct-like-card": !0
1227
+ }
1228
+ },
1229
+ {
1230
+ children: {
1231
+ "scroll-spy": !1,
1232
+ "f-page-content": !1,
1233
+ "f-struct-like-card": !1
1234
+ }
1235
+ }
1236
+ ]
1237
+ }
1238
+ },
1239
+ fixed: {
1240
+ type: "boolean",
1241
+ const: !0
1242
+ },
1243
+ hidePadding: {
1244
+ type: "boolean",
1245
+ const: !0
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ },
1251
+ "f-page-footer": {
1252
+ description: "The class of page footer designed by farris.",
1253
+ type: "string"
1254
+ }
1255
+ }
1256
+ },
1257
+ rules: {
1258
+ type: "object",
1259
+ properties: {
1260
+ canAccept: {
1261
+ type: "boolean",
1262
+ const: !1
1263
+ },
1264
+ fixed: {
1265
+ type: "boolean",
1266
+ const: !0
1267
+ },
1268
+ hidePadding: {
1269
+ type: "boolean",
1270
+ const: !0
1271
+ }
1272
+ }
1273
+ }
1274
+ }
1275
+ },
1276
+ "f-page-is-managelist": {
1277
+ description: "The root class of mangement list page.",
1278
+ type: "string"
1279
+ },
1280
+ "f-page-card": {
1281
+ description: "",
1282
+ type: "object"
1283
+ },
1284
+ "f-page-is-mainsubcard": {
1285
+ description: "",
1286
+ type: "object"
1287
+ }
1288
+ }, Ye = [], _e = {
1289
+ $schema: Le,
1290
+ $id: Ve,
1291
+ title: We,
1292
+ description: qe,
1293
+ type: xe,
1294
+ properties: Xe,
1295
+ required: Ye
1296
+ }, k = /* @__PURE__ */ new Map();
1297
+ function Je() {
1298
+ function t(o, a, f, m) {
1299
+ var g;
1300
+ if (typeof f == "number")
1301
+ return ((g = m[o]) == null ? void 0 : g.length) === f;
1302
+ if (typeof f == "object") {
1303
+ const h = Object.keys(f)[0], C = f[h];
1304
+ if (h === "not")
1305
+ return Number(m[o].length) !== Number(C);
1306
+ if (h === "moreThan")
1307
+ return Number(m[o].length) >= Number(C);
1308
+ if (h === "lessThan")
1309
+ return Number(m[o].length) <= Number(C);
1310
+ }
1311
+ return !1;
1312
+ }
1313
+ function e(o, a, f, m) {
1314
+ return typeof f == "boolean" ? m.childrenClassList.includes(a) === !!f : !1;
1315
+ }
1316
+ function n(o, a, f, m) {
1317
+ return typeof f == "boolean" ? m.parentClassList.includes(a) === !!f : !1;
1318
+ }
1319
+ function s(o, a, f, m) {
1320
+ return typeof f == "boolean" ? m.parentClassList.includes(a) === !!f : !1;
1321
+ }
1322
+ const r = /* @__PURE__ */ new Map([
1323
+ ["length", t],
1324
+ ["hasChildren", e],
1325
+ ["hasSibling", s],
1326
+ ["hasParent", n]
1327
+ ]);
1328
+ function d(o, a) {
1329
+ const f = o;
1330
+ return typeof a == "number" ? [{ target: f, operator: "length", param: null, value: Number(a) }] : typeof a == "object" ? Object.keys(a).map((m) => {
1331
+ if (m === "length")
1332
+ return { target: f, operator: "length", param: null, value: a[m] };
1333
+ const g = m, h = a[m];
1334
+ return { target: f, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: g, value: h };
1335
+ }) : [];
1336
+ }
1337
+ function u(o, a) {
1338
+ if (r.has(o.operator)) {
1339
+ const f = r.get(o.operator);
1340
+ return f && f(o.target, o.param, o.value, a) || !1;
1341
+ }
1342
+ return !1;
1343
+ }
1344
+ function v(o, a) {
1345
+ return Object.keys(o).reduce((h, C) => {
1346
+ const O = d(C, o[C]);
1347
+ return h.push(...O), h;
1348
+ }, []).reduce((h, C) => h && u(C, a), !0);
1349
+ }
1350
+ function j(o, a) {
1351
+ const f = Object.keys(o), m = f.includes("allOf"), g = f.includes("anyOf"), h = m || g, y = (h ? o[h ? m ? "allOf" : "anyOf" : "allOf"] : [o]).map((P) => v(P, a));
1352
+ return m ? !y.includes(!1) : y.includes(!0);
1353
+ }
1354
+ function l(o, a) {
1355
+ const f = o.const;
1356
+ return f ? typeof f == "boolean" ? f : typeof f == "object" ? j(f, a) : !1 : !1;
1357
+ }
1358
+ function i(o) {
1359
+ return (a) => {
1360
+ const f = { canAccept: !0, fixed: !1, hidePadding: !1 };
1361
+ return o && o.properties && Object.keys(o.properties).reduce((m, g) => {
1362
+ const h = o.properties[g];
1363
+ return m[g] = l(h, a), m;
1364
+ }, f), f;
1365
+ };
1366
+ }
1367
+ function c(o, a, f) {
1368
+ if (a.type === "object" && a.properties) {
1369
+ const { rules: m, contents: g } = a.properties;
1370
+ f.set(o, i(m)), g && Object.keys(g.properties).forEach(
1371
+ (h) => c(h, g.properties[h], f)
1372
+ );
1373
+ }
1374
+ }
1375
+ function p() {
1376
+ const { properties: o } = _e;
1377
+ Object.keys(o).forEach((a) => {
1378
+ c(a, o[a], k);
1379
+ });
1380
+ }
1381
+ function b(o, a) {
1382
+ const f = { canAccept: !0, fixed: !1, hidePadding: !0 };
1383
+ return k.has(o) ? k.get(o)(a) : f;
1384
+ }
1385
+ return p(), { getRuleValue: b };
716
1386
  }
717
- function Fe(t, e) {
718
- function n() {
1387
+ function Ge(t, e) {
1388
+ const n = Je();
1389
+ let s, r = !1;
1390
+ function d() {
719
1391
  return !1;
720
1392
  }
721
- return { canAccepts: n };
1393
+ function u() {
1394
+ return !r;
1395
+ }
1396
+ function v() {
1397
+ return !r;
1398
+ }
1399
+ function j() {
1400
+ r = !1;
1401
+ const i = t, c = i.appearance && i.appearance.class || "", p = c.split(" "), b = i.contents || [], o = b.length ? b[0] : null, a = o && o.appearance ? o.appearance.class : "", f = a ? a.split(" ") : [], m = b.length ? b.reduce((y, w) => {
1402
+ const P = w && w.appearance ? w.appearance.class : "", E = P ? P.split(" ") : [];
1403
+ return y.push(...E), y;
1404
+ }, []) : [], g = e, h = g && g.appearance && g.appearance.class || "", C = h ? h.split(" ") : [];
1405
+ s = {
1406
+ componentClass: c,
1407
+ componentClassList: p,
1408
+ childContents: b,
1409
+ firstChildContent: o,
1410
+ firstChildClass: a,
1411
+ firstChildClassList: f,
1412
+ parent: g,
1413
+ parentClass: h,
1414
+ parentClassList: C,
1415
+ children: b,
1416
+ childrenClassList: m
1417
+ };
1418
+ const { fixed: O } = n.getRuleValue(p[0], s);
1419
+ return r = O, !0;
1420
+ }
1421
+ function l() {
1422
+ return !0;
1423
+ }
1424
+ return { canAccepts: d, checkCanDeleteComponent: u, checkCanMoveComponent: v, resolveComponentContext: j, hideNestedPaddingInDesginerView: l };
722
1425
  }
723
- const Le = /* @__PURE__ */ T({
1426
+ const Qe = /* @__PURE__ */ R({
724
1427
  name: "FSplitterDesign",
725
- props: F,
1428
+ props: L,
726
1429
  emits: [],
727
1430
  setup(t, e) {
728
- var l;
729
- const n = h(), i = $("design-item-context"), a = Fe(i.schema, (l = i.parent) == null ? void 0 : l.schema), p = K(n, i, a);
730
- p.value.canNested = !1;
731
- const c = U(n), {
732
- horizontalResizeHandleStyle: d,
733
- verticalResizeHandleStyle: y,
734
- resizeOverlayStyle: r
735
- } = c;
1431
+ var p;
1432
+ const n = z(), s = D("design-item-context"), r = Ge(s.schema, (p = s.parent) == null ? void 0 : p.schema), d = K(n, s, r);
1433
+ d.value.canNested = !1;
1434
+ const u = U(n), {
1435
+ horizontalResizeHandleStyle: v,
1436
+ verticalResizeHandleStyle: j,
1437
+ resizeOverlayStyle: l
1438
+ } = u;
736
1439
  X("splitter", {
737
- useResizeHandleComposition: c
1440
+ useResizeHandleComposition: u
738
1441
  });
739
- const s = z(() => B({
1442
+ const i = S(() => M({
740
1443
  "f-splitter": !0
741
- }, t == null ? void 0 : t.customClass)), o = z(() => {
742
- const f = {
1444
+ }, t == null ? void 0 : t.customClass)), c = S(() => {
1445
+ const b = {
743
1446
  "flex-direction": t.direction === "row" ? "column" : "row"
744
1447
  };
745
- return R(f, t == null ? void 0 : t.customStyle);
1448
+ return H(b, t == null ? void 0 : t.customStyle);
746
1449
  });
747
1450
  return Y(() => {
748
- n.value.componentInstance = p;
749
- }), e.expose(p.value), () => O("div", {
750
- class: s.value,
1451
+ n.value.componentInstance = d;
1452
+ }), e.expose(d.value), () => A("div", {
1453
+ class: i.value,
751
1454
  ref: n,
752
- style: o.value
753
- }, [e.slots.default && e.slots.default(), O("div", {
1455
+ style: c.value
1456
+ }, [e.slots.default && e.slots.default(), A("div", {
754
1457
  class: "f-splitter-resize-overlay",
755
- style: r.value
756
- }, null), O("div", {
1458
+ style: l.value
1459
+ }, null), A("div", {
757
1460
  class: "f-splitter-horizontal-resize-proxy",
758
- style: d.value
759
- }, null), O("div", {
1461
+ style: v.value
1462
+ }, null), A("div", {
760
1463
  class: "f-splitter-vertical-resize-proxy",
761
- style: y.value
1464
+ style: j.value
762
1465
  }, null)]);
763
1466
  }
764
1467
  });
765
- function Ve() {
1468
+ function Ue() {
766
1469
  function t(e) {
767
- var a, p;
1470
+ var r, d;
768
1471
  if (!e)
769
1472
  return !1;
770
- const n = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
1473
+ const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
771
1474
  if (!n)
772
1475
  return !1;
773
- const i = (p = n.schema.appearance) == null ? void 0 : p.class;
1476
+ const s = (d = n.schema.appearance) == null ? void 0 : d.class;
774
1477
  if (e.controlCategory === "input" || e.controlType === "form-group") {
775
- const c = n.schema.type, d = (c === "response-form" || c === "content-container") && i && i.includes("farris-form");
776
- if (n.schema.type !== "response-layout-item" && !d)
1478
+ const u = n.schema.type, v = (u === "response-form" || u === "content-container") && s && s.includes("farris-form");
1479
+ if (n.schema.type !== "response-layout-item" && !v)
777
1480
  return !1;
778
1481
  }
779
1482
  return e.controlType !== "field-set";
@@ -782,90 +1485,90 @@ function Ve() {
782
1485
  basalDragulaRuleForContainer: t
783
1486
  };
784
1487
  }
785
- function We(t, e) {
786
- function n(a) {
787
- var y;
788
- if (!Ve().basalDragulaRuleForContainer(a))
1488
+ function Ze(t, e) {
1489
+ function n(r) {
1490
+ var j;
1491
+ if (!Ue().basalDragulaRuleForContainer(r))
789
1492
  return !1;
790
- if (((((y = t.appearance) == null ? void 0 : y.class) || "").split(" ") || []).includes("f-page-content-nav")) {
791
- const r = t.contents && t.contents[0];
792
- return !(r && r.type === "component");
1493
+ if (((((j = t.appearance) == null ? void 0 : j.class) || "").split(" ") || []).includes("f-page-content-nav")) {
1494
+ const l = t.contents && t.contents[0];
1495
+ return !(l && l.type === "component");
793
1496
  }
794
1497
  return !0;
795
1498
  }
796
- function i(a, p, c) {
797
- const d = t, r = (d.appearance && d.appearance.class || "").split(" ");
798
- if (d.position === "main" && r.includes("f-page-content-main")) {
799
- if (c.type === "tabs") {
800
- const s = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
801
- s.unshift("f-tabs-in-card"), c.appearance = { class: s.join(" ") };
802
- const o = D("section");
803
- o.id = `${c.id}-section`, o.appearance = { class: "f-section-tabs f-section-in-mainsubcard" }, o.contents = [c];
804
- const l = D("content-container");
805
- return l.id = `${c.id}-struct-wrapper`, l.appearance = { class: "f-struct-wrapper" }, l.contents = [o], l;
1499
+ function s(r, d, u) {
1500
+ const v = t, l = (v.appearance && v.appearance.class || "").split(" ");
1501
+ if (v.position === "main" && l.includes("f-page-content-main")) {
1502
+ if (u.type === "tabs") {
1503
+ const i = u.appearance && u.appearance.class ? String(u.appearance.class).split(" ") : [];
1504
+ i.unshift("f-tabs-in-card"), u.appearance = { class: i.join(" ") };
1505
+ const c = $("section");
1506
+ c.id = `${u.id}-section`, c.appearance = { class: "f-section-tabs f-section-in-mainsubcard" }, c.contents = [u];
1507
+ const p = $("content-container");
1508
+ return p.id = `${u.id}-struct-wrapper`, p.appearance = { class: "f-struct-wrapper" }, p.contents = [c], p;
806
1509
  }
807
- if (c.type === "section") {
808
- const s = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
809
- s.unshift("f-section-in-main"), c.appearance = { class: s.join(" ") }, c.title = String(a.innerText);
810
- const o = D("content-container");
811
- return o.id = `${c.id}-struct-wrapper`, o.appearance = { class: "f-struct-wrapper" }, o.contents = [c], o;
1510
+ if (u.type === "section") {
1511
+ const i = u.appearance && u.appearance.class ? String(u.appearance.class).split(" ") : [];
1512
+ i.unshift("f-section-in-main"), u.appearance = { class: i.join(" ") }, u.title = String(r.innerText);
1513
+ const c = $("content-container");
1514
+ return c.id = `${u.id}-struct-wrapper`, c.appearance = { class: "f-struct-wrapper" }, c.contents = [u], c;
812
1515
  }
813
1516
  }
814
- return c;
1517
+ return u;
815
1518
  }
816
- return { canAccepts: n, onAcceptNewChildElement: i };
1519
+ return { canAccepts: n, onAcceptNewChildElement: s };
817
1520
  }
818
- const qe = /* @__PURE__ */ T({
1521
+ const Ke = /* @__PURE__ */ R({
819
1522
  name: "FSplitterPaneDesign",
820
- props: L,
1523
+ props: V,
821
1524
  emits: [],
822
1525
  setup(t, e) {
823
- var m;
824
- const n = h(), i = $("design-item-context"), a = We(i.schema, (m = i.parent) == null ? void 0 : m.schema), p = K(n, i, a);
825
- p.value.styles = "padding:0;box-shadow:none;", p.value.canNested = !1, p.value.canMove = !1, p.value.canDelete = !1, Y(() => {
826
- n.value.componentInstance = p;
827
- }), e.expose(p.value);
828
- const c = $("splitter"), {
829
- useResizeHandleComposition: d
830
- } = c, y = Z(t, d), {
831
- actualHeight: r,
832
- actualWidth: s
833
- } = y, o = h(t.position), l = z(() => {
834
- const v = {
1526
+ var o;
1527
+ const n = z(), s = D("design-item-context"), r = Ze(s.schema, (o = s.parent) == null ? void 0 : o.schema), d = K(n, s, r);
1528
+ d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1, Y(() => {
1529
+ n.value.componentInstance = d;
1530
+ }), e.expose(d.value);
1531
+ const u = D("splitter"), {
1532
+ useResizeHandleComposition: v
1533
+ } = u, j = Z(t, v), {
1534
+ actualHeight: l,
1535
+ actualWidth: i
1536
+ } = j, c = z(t.position), p = S(() => {
1537
+ const a = {
835
1538
  "f-splitter-pane": !0,
836
- "f-splitter-pane-column": o.value === "left" || o.value === "right",
837
- "f-splitter-pane-row": o.value === "bottom" || o.value === "top",
838
- "f-splitter-pane-main": o.value === "center",
1539
+ "f-splitter-pane-column": c.value === "left" || c.value === "right",
1540
+ "f-splitter-pane-row": c.value === "bottom" || c.value === "top",
1541
+ "f-splitter-pane-main": c.value === "center",
839
1542
  "f-component-splitter-pane": !0,
840
1543
  "drag-container": !0
841
1544
  };
842
- return B(v, t == null ? void 0 : t.customClass);
843
- }), f = z(() => {
844
- const v = {};
845
- return (s.value && o.value === "left" || o.value === "right") && (v.width = `${s.value}px`), (r.value && o.value === "bottom" || o.value === "top") && (v.height = `${r.value}px`), R(v, t == null ? void 0 : t.customStyle);
1545
+ return M(a, t == null ? void 0 : t.customClass);
1546
+ }), b = S(() => {
1547
+ const a = {};
1548
+ return (i.value && c.value === "left" || c.value === "right") && (a.width = `${i.value}px`), (l.value && c.value === "bottom" || c.value === "top") && (a.height = `${l.value}px`), H(a, t == null ? void 0 : t.customStyle);
846
1549
  });
847
- return () => O("div", {
1550
+ return () => A("div", {
848
1551
  ref: n,
849
- "data-dragref": `${i.schema.id}-container`,
850
- class: l.value,
851
- style: f.value
1552
+ "data-dragref": `${s.schema.id}-container`,
1553
+ class: p.value,
1554
+ style: b.value
852
1555
  }, [e.slots.default && e.slots.default()]);
853
1556
  }
854
- }), Je = {
1557
+ }), nt = {
855
1558
  install(t) {
856
- t.component(A.name, A), t.component(N.name, N);
1559
+ t.component(B.name, B), t.component(N.name, N);
857
1560
  },
858
- register(t, e, n, i) {
859
- t.splitter = A, e.splitter = W, t["splitter-pane"] = N, e["splitter-pane"] = q;
1561
+ register(t, e, n, s) {
1562
+ t.splitter = B, e.splitter = q, t["splitter-pane"] = N, e["splitter-pane"] = x;
860
1563
  },
861
1564
  registerDesigner(t, e, n) {
862
- t.splitter = Le, e.splitter = W, t["splitter-pane"] = qe, e["splitter-pane"] = q;
1565
+ t.splitter = Qe, e.splitter = q, t["splitter-pane"] = Ke, e["splitter-pane"] = x;
863
1566
  }
864
1567
  };
865
1568
  export {
866
- A as FSplitter,
1569
+ B as FSplitter,
867
1570
  N as FSplitterPane,
868
- Je as default,
869
- F as splitterProps,
870
- W as splitterPropsResolver
1571
+ nt as default,
1572
+ L as splitterProps,
1573
+ q as splitterPropsResolver
871
1574
  };