@farris/ui-vue 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,103 +1,103 @@
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";
1
+ import { ref as P, computed as S, defineComponent as M, provide as X, createVNode as T, inject as R, onMounted as Y } from "vue";
2
2
  import { cloneDeep as ee } from "lodash-es";
3
3
  import "bignumber.js";
4
4
  const _ = {}, J = {};
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;
5
+ function L(t) {
6
+ const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), d = Object.keys(e).reduce((c, m) => ((!r || !o.find((j) => j == m)) && (c[m] = e[m].type === "object" && e[m].properties ? L(e[m]) : ee(e[m].default)), c), {});
7
+ return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
8
8
  }
9
- function $(t, e = {}) {
10
- const n = _[t];
11
- if (n) {
12
- let s = F(n);
13
- const r = J[t];
14
- return s = r ? r({ getSchemaByType: $ }, s, e) : s, s;
9
+ function $(t, e = {}, n) {
10
+ const o = _[t];
11
+ if (o) {
12
+ let r = L(o);
13
+ const d = J[t];
14
+ return r = d ? d({ getSchemaByType: $ }, r, e, n) : r, r;
15
15
  }
16
16
  return null;
17
17
  }
18
18
  function te(t, e) {
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;
19
+ const n = L(e);
20
+ return Object.keys(t).reduce((o, r) => (o[r] && typeof o[r] == "object" ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
21
21
  }
22
22
  function ne(t, e) {
23
- return Object.keys(t).filter((s) => t[s] != null).reduce((s, r) => {
23
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
24
24
  if (e.has(r)) {
25
25
  const d = e.get(r);
26
26
  if (typeof d == "string")
27
- s[d] = t[r];
27
+ o[d] = t[r];
28
28
  else {
29
- const u = d(r, t[r], t);
30
- Object.assign(s, u);
29
+ const c = d(r, t[r], t);
30
+ Object.assign(o, c);
31
31
  }
32
32
  } else
33
- s[r] = t[r];
34
- return s;
33
+ o[r] = t[r];
34
+ return o;
35
35
  }, {});
36
36
  }
37
- function se(t, e, n = /* @__PURE__ */ new Map()) {
38
- const s = te(t, e);
39
- return ne(s, n);
37
+ function oe(t, e, n = /* @__PURE__ */ new Map()) {
38
+ const o = te(t, e);
39
+ return ne(o, n);
40
40
  }
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];
41
+ function se(t = {}) {
42
+ function e(p, i, l, u) {
43
+ if (typeof l == "number")
44
+ return u[p].length === l;
45
+ if (typeof l == "object") {
46
+ const b = Object.keys(l)[0], s = l[b];
47
47
  if (b === "not")
48
- return Number(p[l].length) !== Number(o);
48
+ return Number(u[p].length) !== Number(s);
49
49
  if (b === "moreThan")
50
- return Number(p[l].length) >= Number(o);
50
+ return Number(u[p].length) >= Number(s);
51
51
  if (b === "lessThan")
52
- return Number(p[l].length) <= Number(o);
52
+ return Number(u[p].length) <= Number(s);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function n(l, i, c, p) {
57
- return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(c);
56
+ function n(p, i, l, u) {
57
+ return u[p] && u[p].propertyValue && String(u[p].propertyValue.value) === String(l);
58
58
  }
59
- const s = /* @__PURE__ */ new Map([
59
+ const o = /* @__PURE__ */ new Map([
60
60
  ["length", e],
61
61
  ["getProperty", n]
62
62
  ]);
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 };
63
+ Object.keys(t).reduce((p, i) => (p.set(i, t[i]), p), o);
64
+ function r(p, i) {
65
+ const l = p;
66
+ return typeof i == "number" ? [{ target: l, operator: "length", param: null, value: Number(i) }] : typeof i == "boolean" ? [{ target: l, operator: "getProperty", param: p, value: !!i }] : typeof i == "object" ? Object.keys(i).map((u) => {
67
+ if (u === "length")
68
+ return { target: l, operator: "length", param: null, value: i[u] };
69
+ const b = u, s = i[u];
70
+ return { target: l, operator: "getProperty", param: b, value: s };
71
71
  }) : [];
72
72
  }
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;
73
+ function d(p) {
74
+ return Object.keys(p).reduce((l, u) => {
75
+ const b = r(u, p[u]);
76
+ return l.push(...b), l;
77
77
  }, []);
78
78
  }
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;
79
+ function c(p, i) {
80
+ if (o.has(p.operator)) {
81
+ const l = o.get(p.operator);
82
+ return l && l(p.target, p.param, p.value, i) || !1;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function v(l, i) {
87
- return d(l).reduce((b, o) => b && u(o, i), !0);
86
+ function m(p, i) {
87
+ return d(p).reduce((b, s) => b && c(s, i), !0);
88
88
  }
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);
89
+ function j(p, i) {
90
+ const l = Object.keys(p), u = l.includes("allOf"), b = l.includes("anyOf"), s = u || b, h = (s ? p[s ? u ? "allOf" : "anyOf" : "allOf"] : [p]).map((g) => m(g, i));
91
+ return u ? !h.includes(!1) : h.includes(!0);
92
92
  }
93
93
  return { parseValueSchema: j };
94
94
  }
95
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);
96
+ se();
97
+ function G(t, e, n = /* @__PURE__ */ new Map(), o = (c, m, j) => m, r = {}, d = (c) => c) {
98
+ return _[e.title] = e, J[e.title] = o, re[e.title] = r, ie[e.title] = d, (c = {}) => {
99
+ const m = oe(c, e, n), j = Object.keys(t).reduce((p, i) => (p[i] = t[i].default, p), {});
100
+ return Object.assign(j, m);
101
101
  };
102
102
  }
103
103
  function Q(t, e) {
@@ -107,20 +107,20 @@ const ae = /* @__PURE__ */ new Map([
107
107
  ["appearance", Q]
108
108
  ]);
109
109
  function ce(t, e, n) {
110
- const s = t.getSchemaByType("splitter-pane");
111
- return s.appearance = {
110
+ const o = t.getSchemaByType("splitter-pane");
111
+ return o.appearance = {
112
112
  class: "f-col-w6 f-page-content-nav"
113
- }, s.position = "left", e.contents.unshift(s), e;
113
+ }, o.position = "left", e.contents.unshift(o), e;
114
114
  }
115
115
  function le(t, e, n) {
116
- const s = t.getSchemaByType("splitter-pane");
117
- return s.appearance = {
116
+ const o = t.getSchemaByType("splitter-pane");
117
+ return o.appearance = {
118
118
  class: "f-page-content-main"
119
- }, s.position = "main", e.contents.push(s), e;
119
+ }, o.position = "main", e.contents.push(o), e;
120
120
  }
121
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;
122
+ const o = n.parentComponentInstance;
123
+ return String(o.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), ce(t, e), le(t, e), e;
124
124
  }
125
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: {
@@ -225,57 +225,57 @@ const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-
225
225
  description: ve,
226
226
  type: je,
227
227
  categories: Ce
228
- }, L = {
228
+ }, V = {
229
229
  customStyle: { type: String, default: "" },
230
230
  customClass: { type: String, default: "" },
231
231
  direction: { Type: String, default: "column" }
232
- }, q = G(L, he, ae, pe, Pe);
232
+ }, x = G(V, he, ae, pe, Pe);
233
233
  function U(t) {
234
- const e = z(-1), n = z(-1), s = z(0), r = z(0), d = z(!1), u = z(!1), v = S(() => ({
234
+ const e = P(-1), n = P(-1), o = P(0), r = P(0), d = P(!1), c = P(!1), m = S(() => ({
235
235
  display: d.value ? "block" : "none",
236
- left: `${s.value}px`
236
+ left: `${o.value}px`
237
237
  })), j = S(() => ({
238
- display: u.value ? "block" : "none",
238
+ display: c.value ? "block" : "none",
239
239
  top: `${r.value}px`
240
- })), l = S(() => ({
241
- display: u.value || d.value ? "block" : "none"
240
+ })), p = S(() => ({
241
+ display: c.value || d.value ? "block" : "none"
242
242
  }));
243
- function i(p) {
243
+ function i(u) {
244
244
  const b = t.value;
245
245
  if (b) {
246
- const { left: o } = b.getBoundingClientRect();
247
- s.value = p.clientX - o;
246
+ const { left: s } = b.getBoundingClientRect();
247
+ o.value = u.clientX - s;
248
248
  }
249
249
  }
250
- function c(p) {
250
+ function l(u) {
251
251
  const b = t.value;
252
252
  if (b) {
253
- const { top: o } = b.getBoundingClientRect();
254
- r.value = p.clientY - o;
253
+ const { top: s } = b.getBoundingClientRect();
254
+ r.value = u.clientY - s;
255
255
  }
256
256
  }
257
257
  return {
258
- horizontalResizeHandleStyle: v,
258
+ horizontalResizeHandleStyle: m,
259
259
  verticalResizeHandleStyle: j,
260
- resizeOverlayStyle: l,
260
+ resizeOverlayStyle: p,
261
261
  showHorizontalResizeHandle: d,
262
- showVerticalResizeHandle: u,
262
+ showVerticalResizeHandle: c,
263
263
  horizontalResizeBarPosition: e,
264
264
  verticalResizeBarPosition: n,
265
265
  verticalResizeHandleOffset: r,
266
- horizontalResizeHandleOffset: s,
266
+ horizontalResizeHandleOffset: o,
267
267
  draggingHorizontalResizeHandle: i,
268
- draggingVerticalResizeHandle: c
268
+ draggingVerticalResizeHandle: l
269
269
  };
270
270
  }
271
271
  const we = ["moz", "ms", "webkit"];
272
272
  function ze() {
273
273
  let t = 0;
274
274
  return (e) => {
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;
275
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
276
+ e(n + o);
277
+ }, o);
278
+ return t = n + o, r;
279
279
  };
280
280
  }
281
281
  function Oe() {
@@ -287,57 +287,57 @@ function Oe() {
287
287
  return t ? window[`${t}RequestAnimationFrame`] : ze();
288
288
  }
289
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;
292
- }
293
290
  function H(t, e) {
294
- return ((e == null ? void 0 : e.split(";")) || []).reduce((s, r) => {
291
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
292
+ }
293
+ function B(t, e) {
294
+ return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
295
295
  if (r) {
296
296
  const d = r.split(":");
297
- s[d[0]] = d[1];
297
+ o[d[0]] = d[1];
298
298
  }
299
- return s;
299
+ return o;
300
300
  }, t), t;
301
301
  }
302
- const B = /* @__PURE__ */ R({
302
+ const N = /* @__PURE__ */ M({
303
303
  name: "FSplitter",
304
- props: L,
304
+ props: V,
305
305
  emits: [],
306
306
  setup(t, e) {
307
- const n = z(), s = U(n), {
307
+ const n = P(), o = U(n), {
308
308
  horizontalResizeHandleStyle: r,
309
309
  verticalResizeHandleStyle: d,
310
- resizeOverlayStyle: u
311
- } = s;
310
+ resizeOverlayStyle: c
311
+ } = o;
312
312
  X("splitter", {
313
- useResizeHandleComposition: s
313
+ useResizeHandleComposition: o
314
314
  });
315
- const v = S(() => M({
315
+ const m = S(() => H({
316
316
  "f-splitter": !0
317
317
  }, t == null ? void 0 : t.customClass)), j = S(() => {
318
- const l = {
318
+ const p = {
319
319
  "flex-direction": t.direction === "row" ? "column" : "row"
320
320
  };
321
- return H(l, t == null ? void 0 : t.customStyle);
321
+ return B(p, t == null ? void 0 : t.customStyle);
322
322
  });
323
- return () => A("div", {
324
- class: v.value,
323
+ return () => T("div", {
324
+ class: m.value,
325
325
  ref: n,
326
326
  style: j.value
327
- }, [e.slots.default && e.slots.default(), A("div", {
327
+ }, [e.slots.default && e.slots.default(), T("div", {
328
328
  class: "f-splitter-resize-overlay",
329
- style: u.value
330
- }, null), A("div", {
329
+ style: c.value
330
+ }, null), T("div", {
331
331
  class: "f-splitter-horizontal-resize-proxy",
332
332
  style: r.value
333
- }, null), A("div", {
333
+ }, null), T("div", {
334
334
  class: "f-splitter-vertical-resize-proxy",
335
335
  style: d.value
336
336
  }, null)]);
337
337
  }
338
- }), Se = /* @__PURE__ */ new Map([
338
+ }), Ae = /* @__PURE__ */ new Map([
339
339
  ["appearance", Q]
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 = {
340
+ ]), Se = "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 = {
341
341
  id: {
342
342
  description: "The unique identifier for a splitter",
343
343
  type: "string"
@@ -414,7 +414,7 @@ const B = /* @__PURE__ */ R({
414
414
  default: !0
415
415
  }
416
416
  }, Me = {
417
- $schema: Ae,
417
+ $schema: Se,
418
418
  $id: Te,
419
419
  title: Ee,
420
420
  description: $e,
@@ -521,7 +521,7 @@ const B = /* @__PURE__ */ R({
521
521
  description: Be,
522
522
  type: Ne,
523
523
  categories: ke
524
- }, V = {
524
+ }, W = {
525
525
  customClass: { type: String, defaut: "" },
526
526
  customStyle: { type: String, default: "" },
527
527
  /** 记录原始定义宽度 */
@@ -540,78 +540,78 @@ const B = /* @__PURE__ */ R({
540
540
  minWidth: { type: Number, default: 200 },
541
541
  /** 面板最小高度 */
542
542
  minHeight: { type: Number, default: 200 }
543
- }, x = G(
544
- V,
543
+ }, q = G(
544
+ W,
545
545
  Me,
546
- Se,
546
+ Ae,
547
547
  void 0,
548
548
  Fe
549
549
  );
550
550
  function Z(t, e) {
551
- const n = z(t.width), s = z(t.height), {
551
+ const n = P(t.width), o = P(t.height), {
552
552
  horizontalResizeBarPosition: r,
553
553
  horizontalResizeHandleOffset: d,
554
- showHorizontalResizeHandle: u,
555
- showVerticalResizeHandle: v,
554
+ showHorizontalResizeHandle: c,
555
+ showVerticalResizeHandle: m,
556
556
  verticalResizeBarPosition: j,
557
- verticalResizeHandleOffset: l,
557
+ verticalResizeHandleOffset: p,
558
558
  draggingHorizontalResizeHandle: i,
559
- draggingVerticalResizeHandle: c
559
+ draggingVerticalResizeHandle: l
560
560
  } = e;
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);
561
+ let u = "", b, s;
562
+ function a(v) {
563
+ if ((u === "left" || u === "right") && s) {
564
+ const { left: g } = s.getBoundingClientRect(), { width: C } = b.getBoundingClientRect(), O = v.clientX - g, y = u === "left" ? (C || 0) + (O - r.value) : (C || 0) - (O - r.value);
565
565
  n.value = t.minWidth > 0 ? Math.max(t.minWidth, y) : y;
566
566
  }
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;
567
+ if ((u === "top" || u === "bottom") && s) {
568
+ const { top: g } = s.getBoundingClientRect(), { height: C } = b.getBoundingClientRect(), O = v.clientY - g, y = u === "top" ? (C || 0) + (O - j.value) : (C || 0) - (O - j.value);
569
+ o.value = t.minHeight > 0 ? Math.max(t.minHeight, y) : y;
570
570
  }
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;
571
+ d.value = 0, p.value = 0, r.value = -1, j.value = -1, c.value = !1, m.value = !1, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a), document.body.style.userSelect = "", u = "", b = null, s = null;
572
572
  }
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";
573
+ function f(v, g, C) {
574
+ if (u = g, b = C, c.value = !0, s = v.composedPath().find((y) => y.className.split(" ")[0] === "f-splitter"), s) {
575
+ const { left: y } = s.getBoundingClientRect();
576
+ d.value = v.clientX - y, r.value = v.clientX - y, document.addEventListener("mousemove", i), document.addEventListener("mouseup", a), document.body.style.userSelect = "none";
577
577
  }
578
578
  }
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";
579
+ function h(v, g, C) {
580
+ if (u = g, b = C, m.value = !0, s = v.composedPath().find((y) => y.className.split(" ")[0] === "f-splitter"), s) {
581
+ const { top: y } = s.getBoundingClientRect();
582
+ p.value = v.clientY - y, j.value = v.clientY - y, document.addEventListener("mousemove", l), document.addEventListener("mouseup", a), document.body.style.userSelect = "none";
583
583
  }
584
584
  }
585
585
  return {
586
586
  actualWidth: n,
587
- actualHeight: s,
587
+ actualHeight: o,
588
588
  onClickSplitterHorizontalResizeBar: f,
589
- onClickSplitterVerticalResizeBar: m
589
+ onClickSplitterVerticalResizeBar: h
590
590
  };
591
591
  }
592
- const N = /* @__PURE__ */ R({
592
+ const k = /* @__PURE__ */ M({
593
593
  name: "FSplitterPane",
594
- props: V,
594
+ props: W,
595
595
  emits: [],
596
596
  setup(t, e) {
597
- const n = z(), s = D("splitter"), {
597
+ const n = P(), o = R("splitter"), {
598
598
  useResizeHandleComposition: r
599
- } = s, d = Z(t, r), {
600
- actualHeight: u,
601
- actualWidth: v,
599
+ } = o, d = Z(t, r), {
600
+ actualHeight: c,
601
+ actualWidth: m,
602
602
  onClickSplitterHorizontalResizeBar: j,
603
- onClickSplitterVerticalResizeBar: l
604
- } = d, i = z(t.position), c = S(() => {
603
+ onClickSplitterVerticalResizeBar: p
604
+ } = d, i = P(t.position), l = S(() => {
605
605
  const a = {
606
606
  "f-splitter-pane": !0,
607
607
  "f-splitter-pane-column": i.value === "left" || i.value === "right",
608
608
  "f-splitter-pane-row": i.value === "bottom" || i.value === "top",
609
609
  "f-splitter-pane-main": i.value === "center"
610
610
  };
611
- return M(a, t == null ? void 0 : t.customClass);
612
- }), p = S(() => {
611
+ return H(a, t == null ? void 0 : t.customClass);
612
+ }), u = S(() => {
613
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);
614
+ return (m.value && i.value === "left" || i.value === "right") && (a.width = `${m.value}px`), (c.value && i.value === "bottom" || i.value === "top") && (a.height = `${c.value}px`), B(a, t == null ? void 0 : t.customStyle);
615
615
  }), b = S(() => ({
616
616
  "f-splitter-resize-bar": !0,
617
617
  "f-splitter-resize-bar-e": i.value === "left",
@@ -619,54 +619,54 @@ const N = /* @__PURE__ */ R({
619
619
  "f-splitter-resize-bar-s": i.value === "top",
620
620
  "f-splitter-resize-bar-w": i.value === "right"
621
621
  }));
622
- function o(a, f) {
623
- (f === "left" || f === "right") && j(a, f, n.value), (f === "top" || f === "bottom") && l(a, f, n.value);
622
+ function s(a, f) {
623
+ (f === "left" || f === "right") && j(a, f, n.value), (f === "top" || f === "bottom") && p(a, f, n.value);
624
624
  }
625
- return () => A("div", {
625
+ return () => T("div", {
626
626
  ref: n,
627
- class: c.value,
628
- style: p.value
629
- }, [e.slots.default && e.slots.default(), A("span", {
627
+ class: l.value,
628
+ style: u.value
629
+ }, [e.slots.default && e.slots.default(), T("span", {
630
630
  class: b.value,
631
- onMousedown: (a) => o(a, i.value)
631
+ onMousedown: (a) => s(a, i.value)
632
632
  }, null)]);
633
633
  }
634
634
  });
635
635
  function K(t, e, n) {
636
636
  var O;
637
- function s() {
637
+ function o() {
638
638
  n != null && n.resolveComponentContext && n.resolveComponentContext();
639
639
  }
640
- s();
641
- const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", u = z();
642
- function v() {
640
+ o();
641
+ const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", c = P();
642
+ function m() {
643
643
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
644
644
  }
645
645
  function j() {
646
646
  return !1;
647
647
  }
648
- function l() {
648
+ function p() {
649
649
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
650
650
  }
651
651
  function i() {
652
652
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
653
653
  }
654
- function c(y) {
654
+ function l(y) {
655
655
  if (!y || !y.value)
656
656
  return null;
657
657
  if (y.value.schema && y.value.schema.type === "component")
658
658
  return y.value;
659
- const w = z(y == null ? void 0 : y.value.parent), P = c(w);
660
- return P || null;
659
+ const w = P(y == null ? void 0 : y.value.parent), z = l(w);
660
+ return z || null;
661
661
  }
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);
662
+ function u(y = e) {
663
+ const { componentInstance: w, designerItemElementRef: z } = y;
664
+ return !w || !w.value ? null : w.value.canMove ? z : u(y.parent);
665
665
  }
666
666
  function b(y) {
667
667
  return !!n && n.canAccepts(y);
668
668
  }
669
- function o() {
669
+ function s() {
670
670
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
671
671
  }
672
672
  function a() {
@@ -674,31 +674,31 @@ function K(t, e, n) {
674
674
  function f(y, w) {
675
675
  w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
676
676
  }
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;
677
+ function h(y, w) {
678
+ const { componentType: z } = y;
679
+ let A = $(z, y, w);
680
+ n && n.onResolveNewComponentSchema && (A = n.onResolveNewComponentSchema(y, A));
681
+ const D = z.toLowerCase().replace("-", "_");
682
+ return A && !A.id && A.type === z && (A.id = `${D}_${Math.random().toString().slice(2, 6)}`), A;
683
683
  }
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
+ function v(y, w) {
685
+ const z = String(y.getAttribute("data-controltype")), A = y.getAttribute("data-feature"), D = A ? JSON.parse(A) : {};
686
+ D.parentComponentInstance = c.value;
687
+ let E = $(z, D);
688
+ n && n.onAcceptNewChildElement && (E = n.onAcceptNewChildElement(y, w, E));
689
+ const I = z.toLowerCase().replace("-", "_");
690
+ return E && !E.id && E.type === z && (E.id = `${I}_${Math.random().toString().slice(2, 6)}`), E;
691
691
  }
692
- function h(y) {
692
+ function g(y) {
693
693
  }
694
694
  function C(...y) {
695
695
  if (n && n.getPropsConfig)
696
696
  return n.getPropsConfig(...y);
697
697
  }
698
- return u.value = {
699
- canMove: v(),
698
+ return c.value = {
699
+ canMove: m(),
700
700
  canSelectParent: j(),
701
- canDelete: l(),
701
+ canDelete: p(),
702
702
  canNested: !i(),
703
703
  contents: e == null ? void 0 : e.schema.contents,
704
704
  elementRef: t,
@@ -707,21 +707,21 @@ function K(t, e, n) {
707
707
  styles: r,
708
708
  designerClass: d,
709
709
  canAccepts: b,
710
- getBelongedComponentInstance: c,
711
- getDraggableDesignItemElement: p,
712
- getDraggingDisplayText: o,
710
+ getBelongedComponentInstance: l,
711
+ getDraggableDesignItemElement: u,
712
+ getDraggingDisplayText: s,
713
713
  getPropConfig: C,
714
714
  getDragScopeElement: a,
715
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;
716
+ onAcceptNewChildElement: v,
717
+ onChildElementMovedOut: g,
718
+ addNewChildComponentSchema: h,
719
+ updateDragAndDropRules: o,
720
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || P(!1),
721
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || P(!1)
722
+ }, c;
723
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 = {
724
+ const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-design.gitee.io/dragging-rules.schema.json", We = "Dragging Rules", xe = "The rules of designer canvas", qe = "object", Xe = {
725
725
  "f-page": {
726
726
  description: "The root class of page designed by farris.",
727
727
  type: "object",
@@ -1140,6 +1140,80 @@ const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-
1140
1140
  "f-list-nav-left": {
1141
1141
  description: "",
1142
1142
  type: "object"
1143
+ },
1144
+ "f-struct-data-grid-in-nav": {
1145
+ description: "",
1146
+ type: "object",
1147
+ properties: {
1148
+ contents: {
1149
+ type: "object",
1150
+ properties: {
1151
+ "f-section-form": {
1152
+ description: "",
1153
+ type: "object",
1154
+ properties: {
1155
+ rules: {
1156
+ type: "object",
1157
+ properties: {
1158
+ canAccept: {
1159
+ type: "boolean",
1160
+ const: !1
1161
+ },
1162
+ fixed: {
1163
+ type: "boolean",
1164
+ const: !0
1165
+ },
1166
+ hidePadding: {
1167
+ type: "boolean",
1168
+ const: !0
1169
+ }
1170
+ }
1171
+ }
1172
+ }
1173
+ },
1174
+ "f-section-grid": {
1175
+ description: "",
1176
+ type: "object",
1177
+ properties: {
1178
+ rules: {
1179
+ type: "object",
1180
+ properties: {
1181
+ canAccept: {
1182
+ type: "boolean",
1183
+ const: !1
1184
+ },
1185
+ fixed: {
1186
+ type: "boolean",
1187
+ const: !0
1188
+ },
1189
+ hidePadding: {
1190
+ type: "boolean",
1191
+ const: !0
1192
+ }
1193
+ }
1194
+ }
1195
+ }
1196
+ }
1197
+ }
1198
+ },
1199
+ rules: {
1200
+ type: "object",
1201
+ properties: {
1202
+ canAccept: {
1203
+ type: "boolean",
1204
+ const: !1
1205
+ },
1206
+ fixed: {
1207
+ type: "boolean",
1208
+ const: !0
1209
+ },
1210
+ hidePadding: {
1211
+ type: "boolean",
1212
+ const: !0
1213
+ }
1214
+ }
1215
+ }
1216
+ }
1143
1217
  }
1144
1218
  }
1145
1219
  }
@@ -1285,187 +1359,186 @@ const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-
1285
1359
  description: "",
1286
1360
  type: "object"
1287
1361
  }
1288
- }, Ye = [], _e = {
1362
+ }, Ye = {
1289
1363
  $schema: Le,
1290
1364
  $id: Ve,
1291
1365
  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;
1366
+ description: xe,
1367
+ type: qe,
1368
+ properties: Xe
1369
+ }, F = /* @__PURE__ */ new Map();
1370
+ function _e() {
1371
+ function t(s, a, f, h) {
1372
+ var v;
1300
1373
  if (typeof f == "number")
1301
- return ((g = m[o]) == null ? void 0 : g.length) === f;
1374
+ return ((v = h[s]) == null ? void 0 : v.length) === f;
1302
1375
  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);
1376
+ const g = Object.keys(f)[0], C = f[g];
1377
+ if (g === "not")
1378
+ return Number(h[s].length) !== Number(C);
1379
+ if (g === "moreThan")
1380
+ return Number(h[s].length) >= Number(C);
1381
+ if (g === "lessThan")
1382
+ return Number(h[s].length) <= Number(C);
1310
1383
  }
1311
1384
  return !1;
1312
1385
  }
1313
- function e(o, a, f, m) {
1314
- return typeof f == "boolean" ? m.childrenClassList.includes(a) === !!f : !1;
1386
+ function e(s, a, f, h) {
1387
+ return typeof f == "boolean" ? h.childrenClassList.includes(a) === !!f : !1;
1315
1388
  }
1316
- function n(o, a, f, m) {
1317
- return typeof f == "boolean" ? m.parentClassList.includes(a) === !!f : !1;
1389
+ function n(s, a, f, h) {
1390
+ return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
1318
1391
  }
1319
- function s(o, a, f, m) {
1320
- return typeof f == "boolean" ? m.parentClassList.includes(a) === !!f : !1;
1392
+ function o(s, a, f, h) {
1393
+ return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
1321
1394
  }
1322
1395
  const r = /* @__PURE__ */ new Map([
1323
1396
  ["length", t],
1324
1397
  ["hasChildren", e],
1325
- ["hasSibling", s],
1398
+ ["hasSibling", o],
1326
1399
  ["hasParent", n]
1327
1400
  ]);
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 };
1401
+ function d(s, a) {
1402
+ const f = s;
1403
+ return typeof a == "number" ? [{ target: f, operator: "length", param: null, value: Number(a) }] : typeof a == "object" ? Object.keys(a).map((h) => {
1404
+ if (h === "length")
1405
+ return { target: f, operator: "length", param: null, value: a[h] };
1406
+ const v = h, g = a[h];
1407
+ return { target: f, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: v, value: g };
1335
1408
  }) : [];
1336
1409
  }
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;
1410
+ function c(s, a) {
1411
+ if (r.has(s.operator)) {
1412
+ const f = r.get(s.operator);
1413
+ return f && f(s.target, s.param, s.value, a) || !1;
1341
1414
  }
1342
1415
  return !1;
1343
1416
  }
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);
1417
+ function m(s, a) {
1418
+ return Object.keys(s).reduce((g, C) => {
1419
+ const O = d(C, s[C]);
1420
+ return g.push(...O), g;
1421
+ }, []).reduce((g, C) => g && c(C, a), !0);
1349
1422
  }
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);
1423
+ function j(s, a) {
1424
+ const f = Object.keys(s), h = f.includes("allOf"), v = f.includes("anyOf"), g = h || v, y = (g ? s[g ? h ? "allOf" : "anyOf" : "allOf"] : [s]).map((z) => m(z, a));
1425
+ return h ? !y.includes(!1) : y.includes(!0);
1353
1426
  }
1354
- function l(o, a) {
1355
- const f = o.const;
1427
+ function p(s, a) {
1428
+ const f = s.const;
1356
1429
  return f ? typeof f == "boolean" ? f : typeof f == "object" ? j(f, a) : !1 : !1;
1357
1430
  }
1358
- function i(o) {
1431
+ function i(s) {
1359
1432
  return (a) => {
1360
1433
  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;
1434
+ return s && s.properties && Object.keys(s.properties).reduce((h, v) => {
1435
+ const g = s.properties[v];
1436
+ return h[v] = p(g, a), h;
1364
1437
  }, f), f;
1365
1438
  };
1366
1439
  }
1367
- function c(o, a, f) {
1440
+ function l(s, a, f) {
1368
1441
  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)
1442
+ const { rules: h, contents: v } = a.properties;
1443
+ f.set(s, i(h)), v && Object.keys(v.properties).forEach(
1444
+ (g) => l(g, v.properties[g], f)
1372
1445
  );
1373
1446
  }
1374
1447
  }
1375
- function p() {
1376
- const { properties: o } = _e;
1377
- Object.keys(o).forEach((a) => {
1378
- c(a, o[a], k);
1448
+ function u() {
1449
+ const { properties: s } = Ye;
1450
+ Object.keys(s).forEach((a) => {
1451
+ l(a, s[a], F);
1379
1452
  });
1380
1453
  }
1381
- function b(o, a) {
1454
+ function b(s, a) {
1382
1455
  const f = { canAccept: !0, fixed: !1, hidePadding: !0 };
1383
- return k.has(o) ? k.get(o)(a) : f;
1456
+ return F.has(s) ? F.get(s)(a) : f;
1384
1457
  }
1385
- return p(), { getRuleValue: b };
1458
+ return u(), { getRuleValue: b };
1386
1459
  }
1387
- function Ge(t, e) {
1388
- const n = Je();
1389
- let s, r = !1;
1460
+ function Je(t, e) {
1461
+ const n = _e();
1462
+ let o, r = !1;
1390
1463
  function d() {
1391
1464
  return !1;
1392
1465
  }
1393
- function u() {
1466
+ function c() {
1394
1467
  return !r;
1395
1468
  }
1396
- function v() {
1469
+ function m() {
1397
1470
  return !r;
1398
1471
  }
1399
1472
  function j() {
1400
1473
  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,
1474
+ const i = t, l = i.appearance && i.appearance.class || "", u = l.split(" "), b = i.contents || [], s = b.length ? b[0] : null, a = s && s.appearance ? s.appearance.class : "", f = a ? a.split(" ") : [], h = b.length ? b.reduce((y, w) => {
1475
+ const z = w && w.appearance ? w.appearance.class : "", A = z ? z.split(" ") : [];
1476
+ return y.push(...A), y;
1477
+ }, []) : [], v = e, g = v && v.appearance && v.appearance.class || "", C = g ? g.split(" ") : [];
1478
+ o = {
1479
+ componentClass: l,
1480
+ componentClassList: u,
1408
1481
  childContents: b,
1409
- firstChildContent: o,
1482
+ firstChildContent: s,
1410
1483
  firstChildClass: a,
1411
1484
  firstChildClassList: f,
1412
- parent: g,
1413
- parentClass: h,
1485
+ parent: v,
1486
+ parentClass: g,
1414
1487
  parentClassList: C,
1415
1488
  children: b,
1416
- childrenClassList: m
1489
+ childrenClassList: h
1417
1490
  };
1418
- const { fixed: O } = n.getRuleValue(p[0], s);
1491
+ const { fixed: O } = n.getRuleValue(u[0], o);
1419
1492
  return r = O, !0;
1420
1493
  }
1421
- function l() {
1494
+ function p() {
1422
1495
  return !0;
1423
1496
  }
1424
- return { canAccepts: d, checkCanDeleteComponent: u, checkCanMoveComponent: v, resolveComponentContext: j, hideNestedPaddingInDesginerView: l };
1497
+ return { canAccepts: d, checkCanDeleteComponent: c, checkCanMoveComponent: m, resolveComponentContext: j, hideNestedPaddingInDesginerView: p };
1425
1498
  }
1426
- const Qe = /* @__PURE__ */ R({
1499
+ const Ge = /* @__PURE__ */ M({
1427
1500
  name: "FSplitterDesign",
1428
- props: L,
1501
+ props: V,
1429
1502
  emits: [],
1430
1503
  setup(t, e) {
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);
1504
+ var u;
1505
+ const n = P(), o = R("design-item-context"), r = Je(o.schema, (u = o.parent) == null ? void 0 : u.schema), d = K(n, o, r);
1433
1506
  d.value.canNested = !1;
1434
- const u = U(n), {
1435
- horizontalResizeHandleStyle: v,
1507
+ const c = U(n), {
1508
+ horizontalResizeHandleStyle: m,
1436
1509
  verticalResizeHandleStyle: j,
1437
- resizeOverlayStyle: l
1438
- } = u;
1510
+ resizeOverlayStyle: p
1511
+ } = c;
1439
1512
  X("splitter", {
1440
- useResizeHandleComposition: u
1513
+ useResizeHandleComposition: c
1441
1514
  });
1442
- const i = S(() => M({
1515
+ const i = S(() => H({
1443
1516
  "f-splitter": !0
1444
- }, t == null ? void 0 : t.customClass)), c = S(() => {
1517
+ }, t == null ? void 0 : t.customClass)), l = S(() => {
1445
1518
  const b = {
1446
1519
  "flex-direction": t.direction === "row" ? "column" : "row"
1447
1520
  };
1448
- return H(b, t == null ? void 0 : t.customStyle);
1521
+ return B(b, t == null ? void 0 : t.customStyle);
1449
1522
  });
1450
1523
  return Y(() => {
1451
1524
  n.value.componentInstance = d;
1452
- }), e.expose(d.value), () => A("div", {
1525
+ }), e.expose(d.value), () => T("div", {
1453
1526
  class: i.value,
1454
1527
  ref: n,
1455
- style: c.value
1456
- }, [e.slots.default && e.slots.default(), A("div", {
1457
- class: "f-splitter-resize-overlay",
1458
1528
  style: l.value
1459
- }, null), A("div", {
1529
+ }, [e.slots.default && e.slots.default(), T("div", {
1530
+ class: "f-splitter-resize-overlay",
1531
+ style: p.value
1532
+ }, null), T("div", {
1460
1533
  class: "f-splitter-horizontal-resize-proxy",
1461
- style: v.value
1462
- }, null), A("div", {
1534
+ style: m.value
1535
+ }, null), T("div", {
1463
1536
  class: "f-splitter-vertical-resize-proxy",
1464
1537
  style: j.value
1465
1538
  }, null)]);
1466
1539
  }
1467
1540
  });
1468
- function Ue() {
1541
+ function Qe() {
1469
1542
  function t(e) {
1470
1543
  var r, d;
1471
1544
  if (!e)
@@ -1473,10 +1546,10 @@ function Ue() {
1473
1546
  const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
1474
1547
  if (!n)
1475
1548
  return !1;
1476
- const s = (d = n.schema.appearance) == null ? void 0 : d.class;
1549
+ const o = (d = n.schema.appearance) == null ? void 0 : d.class;
1477
1550
  if (e.controlCategory === "input" || e.controlType === "form-group") {
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)
1551
+ const c = n.schema.type, m = (c === "response-form" || c === "content-container") && o && o.includes("farris-form");
1552
+ if (n.schema.type !== "response-layout-item" && !m)
1480
1553
  return !1;
1481
1554
  }
1482
1555
  return e.controlType !== "field-set";
@@ -1485,90 +1558,90 @@ function Ue() {
1485
1558
  basalDragulaRuleForContainer: t
1486
1559
  };
1487
1560
  }
1488
- function Ze(t, e) {
1561
+ function Ue(t, e) {
1489
1562
  function n(r) {
1490
1563
  var j;
1491
- if (!Ue().basalDragulaRuleForContainer(r))
1564
+ if (!Qe().basalDragulaRuleForContainer(r))
1492
1565
  return !1;
1493
1566
  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");
1567
+ const p = t.contents && t.contents[0];
1568
+ return !(p && p.type === "component");
1496
1569
  }
1497
1570
  return !0;
1498
1571
  }
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;
1572
+ function o(r, d, c) {
1573
+ const m = t, p = (m.appearance && m.appearance.class || "").split(" ");
1574
+ if (m.position === "main" && p.includes("f-page-content-main")) {
1575
+ if (c.type === "tabs") {
1576
+ const i = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
1577
+ i.unshift("f-tabs-in-card"), c.appearance = { class: i.join(" ") };
1578
+ const l = $("section");
1579
+ l.id = `${c.id}-section`, l.appearance = { class: "f-section-tabs f-section-in-mainsubcard" }, l.contents = [c];
1580
+ const u = $("content-container");
1581
+ return u.id = `${c.id}-struct-wrapper`, u.appearance = { class: "f-struct-wrapper" }, u.contents = [l], u;
1509
1582
  }
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;
1583
+ if (c.type === "section") {
1584
+ const i = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
1585
+ i.unshift("f-section-in-main"), c.appearance = { class: i.join(" ") }, c.title = String(r.innerText);
1586
+ const l = $("content-container");
1587
+ return l.id = `${c.id}-struct-wrapper`, l.appearance = { class: "f-struct-wrapper" }, l.contents = [c], l;
1515
1588
  }
1516
1589
  }
1517
- return u;
1590
+ return c;
1518
1591
  }
1519
- return { canAccepts: n, onAcceptNewChildElement: s };
1592
+ return { canAccepts: n, onAcceptNewChildElement: o };
1520
1593
  }
1521
- const Ke = /* @__PURE__ */ R({
1594
+ const Ze = /* @__PURE__ */ M({
1522
1595
  name: "FSplitterPaneDesign",
1523
- props: V,
1596
+ props: W,
1524
1597
  emits: [],
1525
1598
  setup(t, e) {
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);
1599
+ var s;
1600
+ const n = P(), o = R("design-item-context"), r = Ue(o.schema, (s = o.parent) == null ? void 0 : s.schema), d = K(n, o, r);
1528
1601
  d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1, Y(() => {
1529
1602
  n.value.componentInstance = d;
1530
1603
  }), e.expose(d.value);
1531
- const u = D("splitter"), {
1532
- useResizeHandleComposition: v
1533
- } = u, j = Z(t, v), {
1534
- actualHeight: l,
1604
+ const c = R("splitter"), {
1605
+ useResizeHandleComposition: m
1606
+ } = c, j = Z(t, m), {
1607
+ actualHeight: p,
1535
1608
  actualWidth: i
1536
- } = j, c = z(t.position), p = S(() => {
1609
+ } = j, l = P(t.position), u = S(() => {
1537
1610
  const a = {
1538
1611
  "f-splitter-pane": !0,
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",
1612
+ "f-splitter-pane-column": l.value === "left" || l.value === "right",
1613
+ "f-splitter-pane-row": l.value === "bottom" || l.value === "top",
1614
+ "f-splitter-pane-main": l.value === "center",
1542
1615
  "f-component-splitter-pane": !0,
1543
1616
  "drag-container": !0
1544
1617
  };
1545
- return M(a, t == null ? void 0 : t.customClass);
1618
+ return H(a, t == null ? void 0 : t.customClass);
1546
1619
  }), b = S(() => {
1547
1620
  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);
1621
+ return (i.value && l.value === "left" || l.value === "right") && (a.width = `${i.value}px`), (p.value && l.value === "bottom" || l.value === "top") && (a.height = `${p.value}px`), B(a, t == null ? void 0 : t.customStyle);
1549
1622
  });
1550
- return () => A("div", {
1623
+ return () => T("div", {
1551
1624
  ref: n,
1552
- "data-dragref": `${s.schema.id}-container`,
1553
- class: p.value,
1625
+ "data-dragref": `${o.schema.id}-container`,
1626
+ class: u.value,
1554
1627
  style: b.value
1555
1628
  }, [e.slots.default && e.slots.default()]);
1556
1629
  }
1557
- }), nt = {
1630
+ }), tt = {
1558
1631
  install(t) {
1559
- t.component(B.name, B), t.component(N.name, N);
1632
+ t.component(N.name, N), t.component(k.name, k);
1560
1633
  },
1561
- register(t, e, n, s) {
1562
- t.splitter = B, e.splitter = q, t["splitter-pane"] = N, e["splitter-pane"] = x;
1634
+ register(t, e, n, o) {
1635
+ t.splitter = N, e.splitter = x, t["splitter-pane"] = k, e["splitter-pane"] = q;
1563
1636
  },
1564
1637
  registerDesigner(t, e, n) {
1565
- t.splitter = Qe, e.splitter = q, t["splitter-pane"] = Ke, e["splitter-pane"] = x;
1638
+ t.splitter = Ge, e.splitter = x, t["splitter-pane"] = Ze, e["splitter-pane"] = q;
1566
1639
  }
1567
1640
  };
1568
1641
  export {
1569
- B as FSplitter,
1570
- N as FSplitterPane,
1571
- nt as default,
1572
- L as splitterProps,
1573
- q as splitterPropsResolver
1642
+ N as FSplitter,
1643
+ k as FSplitterPane,
1644
+ tt as default,
1645
+ V as splitterProps,
1646
+ x as splitterPropsResolver
1574
1647
  };