@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,17 +1,17 @@
1
- import { ref as z, computed as D, defineComponent as $, provide as V, createVNode as j, watch as I, inject as E, onMounted as W } from "vue";
1
+ import { ref as C, computed as D, defineComponent as $, provide as V, createVNode as B, watch as I, inject as E, onMounted as W } from "vue";
2
2
  import { cloneDeep as ee } from "lodash-es";
3
3
  import "bignumber.js";
4
4
  const q = {}, Y = {};
5
5
  function N(t) {
6
- const { properties: e, title: n } = t, o = Object.keys(e).reduce((r, i) => (r[i] = e[i].type === "object" && e[i].properties ? N(e[i]) : ee(e[i].default), r), {});
7
- return o.id = `${n}-${Date.now()}`, o;
6
+ const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), l = Object.keys(e).reduce((s, m) => ((!r || !o.find((w) => w == m)) && (s[m] = e[m].type === "object" && e[m].properties ? N(e[m]) : ee(e[m].default)), s), {});
7
+ return (!r || !o.find((s) => s == "id")) && (l.id = `${n}-${Date.now()}`), l;
8
8
  }
9
- function T(t, e = {}) {
10
- const n = q[t];
11
- if (n) {
12
- let o = N(n);
13
- const r = Y[t];
14
- return o = r ? r({ getSchemaByType: T }, o, e) : o, o;
9
+ function T(t, e = {}, n) {
10
+ const o = q[t];
11
+ if (o) {
12
+ let r = N(o);
13
+ const l = Y[t];
14
+ return r = l ? l({ getSchemaByType: T }, r, e, n) : r, r;
15
15
  }
16
16
  return null;
17
17
  }
@@ -22,12 +22,12 @@ function te(t, e) {
22
22
  function ne(t, e) {
23
23
  return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
24
24
  if (e.has(r)) {
25
- const i = e.get(r);
26
- if (typeof i == "string")
27
- o[i] = t[r];
25
+ const l = e.get(r);
26
+ if (typeof l == "string")
27
+ o[l] = t[r];
28
28
  else {
29
- const f = i(r, t[r], t);
30
- Object.assign(o, f);
29
+ const s = l(r, t[r], t);
30
+ Object.assign(o, s);
31
31
  }
32
32
  } else
33
33
  o[r] = t[r];
@@ -39,22 +39,22 @@ function oe(t, e, n = /* @__PURE__ */ new Map()) {
39
39
  return ne(o, n);
40
40
  }
41
41
  function ae(t = {}) {
42
- function e(a, p, c, v) {
42
+ function e(a, p, c, g) {
43
43
  if (typeof c == "number")
44
- return v[a].length === c;
44
+ return g[a].length === c;
45
45
  if (typeof c == "object") {
46
- const P = Object.keys(c)[0], S = c[P];
47
- if (P === "not")
48
- return Number(v[a].length) !== Number(S);
49
- if (P === "moreThan")
50
- return Number(v[a].length) >= Number(S);
51
- if (P === "lessThan")
52
- return Number(v[a].length) <= Number(S);
46
+ const O = Object.keys(c)[0], S = c[O];
47
+ if (O === "not")
48
+ return Number(g[a].length) !== Number(S);
49
+ if (O === "moreThan")
50
+ return Number(g[a].length) >= Number(S);
51
+ if (O === "lessThan")
52
+ return Number(g[a].length) <= Number(S);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function n(a, p, c, v) {
57
- return v[a] && v[a].propertyValue && String(v[a].propertyValue.value) === String(c);
56
+ function n(a, p, c, g) {
57
+ return g[a] && g[a].propertyValue && String(g[a].propertyValue.value) === String(c);
58
58
  }
59
59
  const o = /* @__PURE__ */ new Map([
60
60
  ["length", e],
@@ -63,48 +63,48 @@ function ae(t = {}) {
63
63
  Object.keys(t).reduce((a, p) => (a.set(p, t[p]), a), o);
64
64
  function r(a, p) {
65
65
  const c = a;
66
- return typeof p == "number" ? [{ target: c, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!p }] : typeof p == "object" ? Object.keys(p).map((v) => {
67
- if (v === "length")
68
- return { target: c, operator: "length", param: null, value: p[v] };
69
- const P = v, S = p[v];
70
- return { target: c, operator: "getProperty", param: P, value: S };
66
+ return typeof p == "number" ? [{ target: c, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!p }] : typeof p == "object" ? Object.keys(p).map((g) => {
67
+ if (g === "length")
68
+ return { target: c, operator: "length", param: null, value: p[g] };
69
+ const O = g, S = p[g];
70
+ return { target: c, operator: "getProperty", param: O, value: S };
71
71
  }) : [];
72
72
  }
73
- function i(a) {
74
- return Object.keys(a).reduce((c, v) => {
75
- const P = r(v, a[v]);
76
- return c.push(...P), c;
73
+ function l(a) {
74
+ return Object.keys(a).reduce((c, g) => {
75
+ const O = r(g, a[g]);
76
+ return c.push(...O), c;
77
77
  }, []);
78
78
  }
79
- function f(a, p) {
79
+ function s(a, p) {
80
80
  if (o.has(a.operator)) {
81
81
  const c = o.get(a.operator);
82
82
  return c && c(a.target, a.param, a.value, p) || !1;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function b(a, p) {
87
- return i(a).reduce((P, S) => P && f(S, p), !0);
86
+ function m(a, p) {
87
+ return l(a).reduce((O, S) => O && s(S, p), !0);
88
88
  }
89
- function O(a, p) {
90
- const c = Object.keys(a), v = c.includes("allOf"), P = c.includes("anyOf"), S = v || P, u = (S ? a[S ? v ? "allOf" : "anyOf" : "allOf"] : [a]).map((d) => b(d, p));
91
- return v ? !u.includes(!1) : u.includes(!0);
89
+ function w(a, p) {
90
+ const c = Object.keys(a), g = c.includes("allOf"), O = c.includes("anyOf"), S = g || O, u = (S ? a[S ? g ? "allOf" : "anyOf" : "allOf"] : [a]).map((h) => m(h, p));
91
+ return g ? !u.includes(!1) : u.includes(!0);
92
92
  }
93
- return { parseValueSchema: O };
93
+ return { parseValueSchema: w };
94
94
  }
95
- const le = {}, re = {};
95
+ const ie = {}, re = {};
96
96
  ae();
97
- function X(t, e, n = /* @__PURE__ */ new Map(), o = (f, b, O) => b, r = {}, i = (f) => f) {
98
- return q[e.title] = e, Y[e.title] = o, le[e.title] = r, re[e.title] = i, (f = {}) => {
99
- const b = oe(f, e, n), O = Object.keys(t).reduce((a, p) => (a[p] = t[p].default, a), {});
100
- return Object.assign(O, b);
97
+ function X(t, e, n = /* @__PURE__ */ new Map(), o = (s, m, w) => m, r = {}, l = (s) => s) {
98
+ return q[e.title] = e, Y[e.title] = o, ie[e.title] = r, re[e.title] = l, (s = {}) => {
99
+ const m = oe(s, e, n), w = Object.keys(t).reduce((a, p) => (a[p] = t[p].default, a), {});
100
+ return Object.assign(w, m);
101
101
  };
102
102
  }
103
- function ie(t, e) {
103
+ function le(t, e) {
104
104
  return { customClass: e.class, customStyle: e.style };
105
105
  }
106
106
  const _ = /* @__PURE__ */ new Map([
107
- ["appearance", ie]
107
+ ["appearance", le]
108
108
  ]);
109
109
  function J(t, e, n) {
110
110
  return e;
@@ -209,81 +209,81 @@ const se = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
209
209
  customClass: { type: String, defaut: "" }
210
210
  }, G = X(L, de, _, J, ze);
211
211
  function Q(t) {
212
- const e = z(-1), n = z(-1), o = z(0), r = z(0), i = z(!1), f = z(!1), b = D(() => ({
213
- display: i.value ? "block" : "none",
212
+ const e = C(-1), n = C(-1), o = C(0), r = C(0), l = C(!1), s = C(!1), m = D(() => ({
213
+ display: l.value ? "block" : "none",
214
214
  left: `${o.value}px`,
215
215
  cursor: "e-resize"
216
- })), O = D(() => ({
217
- display: f.value ? "block" : "none",
216
+ })), w = D(() => ({
217
+ display: s.value ? "block" : "none",
218
218
  top: `${r.value}px`,
219
219
  cursor: "n-resize"
220
220
  })), a = D(() => ({
221
- display: f.value || i.value ? "block" : "none"
221
+ display: s.value || l.value ? "block" : "none"
222
222
  }));
223
- function p(g, u, m, d) {
223
+ function p(b, u, d, h) {
224
224
  const H = t.value;
225
225
  if (H) {
226
- const { left: h, right: l, width: y } = H.getBoundingClientRect();
227
- let s = g.clientX - h;
228
- d === "right" && (s = l - g.clientX), s > u && (s = u), s < m && (s = m), d === "right" && (s = y - s), o.value = s;
226
+ const { left: v, right: i, width: y } = H.getBoundingClientRect();
227
+ let f = b.clientX - v;
228
+ h === "right" && (f = i - b.clientX), f > u && (f = u), f < d && (f = d), h === "right" && (f = y - f), o.value = f;
229
229
  }
230
230
  }
231
- function c(g, u, m, d) {
231
+ function c(b, u, d, h) {
232
232
  const H = t.value;
233
233
  if (H) {
234
- const { top: h, bottom: l, height: y } = H.getBoundingClientRect();
235
- let s = g.clientY - h;
236
- d === "bottom" && (s = l - g.clientY), s > u && (s = u), s < m && (s = m), d === "bottom" && (s = y - s), r.value = s;
234
+ const { top: v, bottom: i, height: y } = H.getBoundingClientRect();
235
+ let f = b.clientY - v;
236
+ h === "bottom" && (f = i - b.clientY), f > u && (f = u), f < d && (f = d), h === "bottom" && (f = y - f), r.value = f;
237
237
  }
238
238
  }
239
- function v() {
240
- const g = t.value;
241
- if (g) {
242
- const { width: u, height: m } = g.getBoundingClientRect();
243
- return { width: u, height: m };
239
+ function g() {
240
+ const b = t.value;
241
+ if (b) {
242
+ const { width: u, height: d } = b.getBoundingClientRect();
243
+ return { width: u, height: d };
244
244
  }
245
245
  return null;
246
246
  }
247
- function P() {
248
- const g = t.value;
249
- return g ? Array.from(g.querySelectorAll("[data-position]")).reduce((u, m) => {
250
- const d = m.getAttribute("data-position");
251
- return u = Object.assign(u, { [d]: m }), u;
247
+ function O() {
248
+ const b = t.value;
249
+ return b ? Array.from(b.querySelectorAll("[data-position]")).reduce((u, d) => {
250
+ const h = d.getAttribute("data-position");
251
+ return u = Object.assign(u, { [h]: d }), u;
252
252
  }, {}) : null;
253
253
  }
254
- function S(g, u) {
255
- const m = v(), d = P();
256
- if (m && d) {
257
- const H = d == null ? void 0 : d.right, h = d == null ? void 0 : d.left;
258
- if (g === "left" && h)
259
- return H ? m.width - H.clientWidth - u : m.width - u;
260
- if (g === "right" && H)
261
- return h ? m.width - h.clientWidth - u : m.width - u;
254
+ function S(b, u) {
255
+ const d = g(), h = O();
256
+ if (d && h) {
257
+ const H = h == null ? void 0 : h.right, v = h == null ? void 0 : h.left;
258
+ if (b === "left" && v)
259
+ return H ? d.width - H.clientWidth - u : d.width - u;
260
+ if (b === "right" && H)
261
+ return v ? d.width - v.clientWidth - u : d.width - u;
262
262
  }
263
263
  }
264
- function w(g, u) {
265
- const m = v(), d = P();
266
- if (m && d) {
267
- const H = d == null ? void 0 : d.bottom, h = d == null ? void 0 : d.top;
268
- if (g === "top" && h)
269
- return H ? m.height - H.clientHeight - u : m.height - u;
270
- if (g === "bottom" && H)
271
- return h ? m.height - h.clientHeight - u : m.height - u;
264
+ function P(b, u) {
265
+ const d = g(), h = O();
266
+ if (d && h) {
267
+ const H = h == null ? void 0 : h.bottom, v = h == null ? void 0 : h.top;
268
+ if (b === "top" && v)
269
+ return H ? d.height - H.clientHeight - u : d.height - u;
270
+ if (b === "bottom" && H)
271
+ return v ? d.height - v.clientHeight - u : d.height - u;
272
272
  }
273
273
  }
274
274
  return {
275
- horizontalResizeHandleStyle: b,
276
- verticalResizeHandleStyle: O,
275
+ horizontalResizeHandleStyle: m,
276
+ verticalResizeHandleStyle: w,
277
277
  resizeOverlayStyle: a,
278
- showHorizontalResizeHandle: i,
279
- showVerticalResizeHandle: f,
278
+ showHorizontalResizeHandle: l,
279
+ showVerticalResizeHandle: s,
280
280
  horizontalResizeBarPosition: e,
281
281
  verticalResizeBarPosition: n,
282
282
  verticalResizeHandleOffset: r,
283
283
  horizontalResizeHandleOffset: o,
284
284
  draggingHorizontalResizeHandle: p,
285
285
  draggingVerticalResizeHandle: c,
286
- getPanelMaxHeight: w,
286
+ getPanelMaxHeight: P,
287
287
  getPanelMaxWidth: S
288
288
  };
289
289
  }
@@ -312,44 +312,44 @@ function Oe(t, e) {
312
312
  function Se(t, e) {
313
313
  return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
314
314
  if (r) {
315
- const i = r.split(":");
316
- o[i[0]] = i[1];
315
+ const l = r.split(":");
316
+ o[l[0]] = l[1];
317
317
  }
318
318
  return o;
319
319
  }, t), t;
320
320
  }
321
- const R = /* @__PURE__ */ $({
321
+ const A = /* @__PURE__ */ $({
322
322
  name: "FLayout",
323
323
  props: L,
324
324
  emits: [],
325
325
  setup(t, e) {
326
- const n = z(), o = Q(n), {
326
+ const n = C(), o = Q(n), {
327
327
  horizontalResizeHandleStyle: r,
328
- verticalResizeHandleStyle: i,
329
- resizeOverlayStyle: f
328
+ verticalResizeHandleStyle: l,
329
+ resizeOverlayStyle: s
330
330
  } = o;
331
331
  V("layout", {
332
332
  useResizeHandleComposition: o
333
333
  });
334
- const b = D(() => Oe({
334
+ const m = D(() => Oe({
335
335
  "f-layout": !0
336
- }, t == null ? void 0 : t.customClass)), O = D(() => Se({}, t == null ? void 0 : t.customStyle));
337
- return () => j("div", {
338
- class: b.value,
339
- style: O.value,
336
+ }, t == null ? void 0 : t.customClass)), w = D(() => Se({}, t == null ? void 0 : t.customStyle));
337
+ return () => B("div", {
338
+ class: m.value,
339
+ style: w.value,
340
340
  ref: n
341
- }, [e.slots.default && e.slots.default(), j("div", {
341
+ }, [e.slots.default && e.slots.default(), B("div", {
342
342
  class: "f-layout-resize-overlay",
343
- style: f.value
344
- }, null), j("div", {
343
+ style: s.value
344
+ }, null), B("div", {
345
345
  class: "f-layout-horizontal-resize-proxy",
346
346
  style: r.value
347
- }, null), j("div", {
347
+ }, null), B("div", {
348
348
  class: "f-layout-vertical-resize-proxy",
349
- style: i.value
349
+ style: l.value
350
350
  }, null)]);
351
351
  }
352
- }), He = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/layout-pane.schema.json", je = "layout-pane", Be = "A Farris Container Component", De = "object", Re = {
352
+ }), He = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/layout-pane.schema.json", je = "layout-pane", Be = "A Farris Container Component", De = "object", Ae = {
353
353
  id: {
354
354
  description: "The unique identifier for a layout pane",
355
355
  type: "string"
@@ -412,13 +412,13 @@ const R = /* @__PURE__ */ $({
412
412
  type: "number",
413
413
  default: !0
414
414
  }
415
- }, Ae = {
415
+ }, Re = {
416
416
  $schema: He,
417
417
  $id: Me,
418
418
  title: je,
419
419
  description: Be,
420
420
  type: De,
421
- properties: Re
421
+ properties: Ae
422
422
  }, Ee = "layout-pane", $e = "A Farris Container Component", Te = "object", ke = {
423
423
  basic: {
424
424
  description: "Basic Infomation",
@@ -538,99 +538,99 @@ const R = /* @__PURE__ */ $({
538
538
  minWidth: { type: Number, default: 100 },
539
539
  /** 面板最小高度 */
540
540
  minHeight: { type: Number, default: 100 }
541
- }, U = X(F, Ae, _, J, Ne);
541
+ }, U = X(F, Re, _, J, Ne);
542
542
  function Z(t, e, n, o, r) {
543
543
  const {
544
- horizontalResizeBarPosition: i,
545
- horizontalResizeHandleOffset: f,
546
- showHorizontalResizeHandle: b,
547
- showVerticalResizeHandle: O,
544
+ horizontalResizeBarPosition: l,
545
+ horizontalResizeHandleOffset: s,
546
+ showHorizontalResizeHandle: m,
547
+ showVerticalResizeHandle: w,
548
548
  verticalResizeBarPosition: a,
549
549
  verticalResizeHandleOffset: p,
550
550
  draggingHorizontalResizeHandle: c,
551
- draggingVerticalResizeHandle: v,
552
- getPanelMaxHeight: P,
551
+ draggingVerticalResizeHandle: g,
552
+ getPanelMaxHeight: O,
553
553
  getPanelMaxWidth: S
554
554
  } = r;
555
- let w = "", g, u, m;
556
- function d(l) {
557
- if ((w === "left" || w === "right") && u) {
558
- const { left: y } = u.getBoundingClientRect(), { width: s } = g.getBoundingClientRect(), B = l.clientX - y;
559
- let C = w === "left" ? (s || 0) + (B - i.value) : (s || 0) - (B - i.value);
560
- C = n.value > 0 ? Math.max(n.value, C) : C;
561
- const M = S(w, n.value);
562
- M != null && (C = M > C ? C : M), t.value = C;
555
+ let P = "", b, u, d;
556
+ function h(i) {
557
+ if ((P === "left" || P === "right") && u) {
558
+ const { left: y } = u.getBoundingClientRect(), { width: f } = b.getBoundingClientRect(), j = i.clientX - y;
559
+ let z = P === "left" ? (f || 0) + (j - l.value) : (f || 0) - (j - l.value);
560
+ z = n.value > 0 ? Math.max(n.value, z) : z;
561
+ const M = S(P, n.value);
562
+ M != null && (z = M > z ? z : M), t.value = z;
563
563
  }
564
- if ((w === "top" || w === "bottom") && u) {
565
- const { top: y } = u.getBoundingClientRect(), { height: s } = g.getBoundingClientRect(), B = l.clientY - y;
566
- let C = w === "top" ? (s || 0) + (B - a.value) : (s || 0) - (B - a.value);
567
- C = o.value > 0 ? Math.max(o.value, C) : C;
568
- const M = P(w, o.value);
569
- M != null && (C = M > C ? C : M), e.value = C;
564
+ if ((P === "top" || P === "bottom") && u) {
565
+ const { top: y } = u.getBoundingClientRect(), { height: f } = b.getBoundingClientRect(), j = i.clientY - y;
566
+ let z = P === "top" ? (f || 0) + (j - a.value) : (f || 0) - (j - a.value);
567
+ z = o.value > 0 ? Math.max(o.value, z) : z;
568
+ const M = O(P, o.value);
569
+ M != null && (z = M > z ? z : M), e.value = z;
570
570
  }
571
- f.value = 0, p.value = 0, i.value = -1, a.value = -1, b.value = !1, O.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", d), document.body.style.userSelect = "", w = "", g = null, u = null;
572
- }
573
- function H(l, y, s) {
574
- if (w = y, g = s, b.value = !0, u = l.composedPath().find((C) => (C.className || "").split(" ")[0] === "f-layout"), u) {
575
- const { left: C } = u.getBoundingClientRect(), M = l.clientX - C;
576
- f.value = M, i.value = M;
577
- const A = S(w, n.value) || 0;
578
- m = (x) => c(x, A, n.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
571
+ s.value = 0, p.value = 0, l.value = -1, a.value = -1, m.value = !1, w.value = !1, document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", h), document.body.style.userSelect = "", P = "", b = null, u = null;
572
+ }
573
+ function H(i, y, f) {
574
+ if (P = y, b = f, m.value = !0, u = i.composedPath().find((z) => (z.className || "").split(" ")[0] === "f-layout"), u) {
575
+ const { left: z } = u.getBoundingClientRect(), M = i.clientX - z;
576
+ s.value = M, l.value = M;
577
+ const R = S(P, n.value) || 0;
578
+ d = (K) => c(K, R, n.value, P), document.addEventListener("mousemove", d), document.addEventListener("mouseup", h), document.body.style.userSelect = "none";
579
579
  }
580
580
  }
581
- function h(l, y, s) {
582
- if (w = y, g = s, O.value = !0, u = l.composedPath().find((C) => (C.className || "").split(" ")[0] === "f-layout"), u) {
583
- const { top: C } = u.getBoundingClientRect();
584
- p.value = l.clientY - C, a.value = l.clientY - C;
585
- const M = P(w, o.value) || 0;
586
- m = (A) => v(A, M, o.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
581
+ function v(i, y, f) {
582
+ if (P = y, b = f, w.value = !0, u = i.composedPath().find((z) => (z.className || "").split(" ")[0] === "f-layout"), u) {
583
+ const { top: z } = u.getBoundingClientRect();
584
+ p.value = i.clientY - z, a.value = i.clientY - z;
585
+ const M = O(P, o.value) || 0;
586
+ d = (R) => g(R, M, o.value, P), document.addEventListener("mousemove", d), document.addEventListener("mouseup", h), document.body.style.userSelect = "none";
587
587
  }
588
588
  }
589
- return { onClickHorizontalResizeBar: H, onClickVerticalResizeBar: h };
589
+ return { onClickHorizontalResizeBar: H, onClickVerticalResizeBar: v };
590
590
  }
591
591
  const k = /* @__PURE__ */ $({
592
592
  name: "FLayoutPane",
593
593
  props: F,
594
594
  emits: [],
595
595
  setup(t, e) {
596
- const n = z(t.minHeight <= 0 ? 100 : t.minHeight), o = z(t.minWidth <= 0 ? 100 : t.minWidth), r = z(t.width <= 0 ? 100 : t.width), i = z(t.height <= 100 ? 100 : t.height), f = z(Math.max(n.value, i.value)), b = z(Math.max(o.value, r.value)), O = z(), a = z(t.position), p = z(t.resizable);
597
- I(() => t.resizable, (h) => {
598
- p.value = h;
596
+ const n = C(t.minHeight <= 0 ? 100 : t.minHeight), o = C(t.minWidth <= 0 ? 100 : t.minWidth), r = C(t.width <= 0 ? 100 : t.width), l = C(t.height <= 100 ? 100 : t.height), s = C(Math.max(n.value, l.value)), m = C(Math.max(o.value, r.value)), w = C(), a = C(t.position), p = C(t.resizable);
597
+ I(() => t.resizable, (v) => {
598
+ p.value = v;
599
599
  });
600
600
  const c = E("layout"), {
601
- useResizeHandleComposition: v
602
- } = c, P = Z(b, f, o, n, v), {
601
+ useResizeHandleComposition: g
602
+ } = c, O = Z(m, s, o, n, g), {
603
603
  onClickHorizontalResizeBar: S,
604
- onClickVerticalResizeBar: w
605
- } = P, g = D(() => ({
604
+ onClickVerticalResizeBar: P
605
+ } = O, b = D(() => ({
606
606
  "f-layout-resize-bar": !0,
607
607
  "f-layout-resize-bar-e": a.value === "left",
608
608
  "f-layout-resize-bar-n": a.value === "bottom",
609
609
  "f-layout-resize-bar-s": a.value === "top",
610
610
  "f-layout-resize-bar-w": a.value === "right"
611
611
  })), u = D(() => a.value !== "center" && p.value);
612
- function m(h, l) {
613
- (l === "left" || l === "right") && S(h, l, O.value), (l === "top" || l === "bottom") && w(h, l, O.value);
612
+ function d(v, i) {
613
+ (i === "left" || i === "right") && S(v, i, w.value), (i === "top" || i === "bottom") && P(v, i, w.value);
614
614
  }
615
- const d = D(() => {
616
- const h = {
615
+ const h = D(() => {
616
+ const v = {
617
617
  "f-layout-pane": !0,
618
618
  "f-page-content-nav": a.value === "left" || a.value === "right",
619
619
  "f-page-content-main": a.value === "center"
620
620
  };
621
- return t.customClass && String(t.customClass).split(" ").reduce((l, y) => (l[y] = !0, l), h), h;
621
+ return t.customClass && String(t.customClass).split(" ").reduce((i, y) => (i[y] = !0, i), v), v;
622
622
  }), H = D(() => {
623
- const h = {};
624
- return (b.value && a.value === "left" || a.value === "right") && (h.width = `${b.value}px`), (f.value && a.value === "bottom" || a.value === "top") && (h.height = `${f.value}px`), t.visible || (h.display = "none"), h;
623
+ const v = {};
624
+ return (m.value && a.value === "left" || a.value === "right") && (v.width = `${m.value}px`), (s.value && a.value === "bottom" || a.value === "top") && (v.height = `${s.value}px`), t.visible || (v.display = "none"), v;
625
625
  });
626
- return () => j("div", {
627
- ref: O,
628
- class: d.value,
626
+ return () => B("div", {
627
+ ref: w,
628
+ class: h.value,
629
629
  style: H.value,
630
630
  "data-position": a.value
631
- }, [e.slots.default && e.slots.default(), u.value && j("span", {
632
- class: g.value,
633
- onMousedown: (h) => m(h, a.value)
631
+ }, [e.slots.default && e.slots.default(), u.value && B("span", {
632
+ class: b.value,
633
+ onMousedown: (v) => d(v, a.value)
634
634
  }, null)]);
635
635
  }
636
636
  });
@@ -640,17 +640,17 @@ function Le(t, e) {
640
640
  }
641
641
  return { canAccepts: n };
642
642
  }
643
- function K(t, e, n) {
644
- var h;
643
+ function x(t, e, n) {
644
+ var v;
645
645
  function o() {
646
646
  n != null && n.resolveComponentContext && n.resolveComponentContext();
647
647
  }
648
648
  o();
649
- const r = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", f = z();
650
- function b() {
649
+ const r = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", s = C();
650
+ function m() {
651
651
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
652
652
  }
653
- function O() {
653
+ function w() {
654
654
  return !1;
655
655
  }
656
656
  function a() {
@@ -659,75 +659,75 @@ function K(t, e, n) {
659
659
  function p() {
660
660
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
661
661
  }
662
- function c(l) {
663
- if (!l || !l.value)
662
+ function c(i) {
663
+ if (!i || !i.value)
664
664
  return null;
665
- if (l.value.schema && l.value.schema.type === "component")
666
- return l.value;
667
- const y = z(l == null ? void 0 : l.value.parent), s = c(y);
668
- return s || null;
665
+ if (i.value.schema && i.value.schema.type === "component")
666
+ return i.value;
667
+ const y = C(i == null ? void 0 : i.value.parent), f = c(y);
668
+ return f || null;
669
669
  }
670
- function v(l = e) {
671
- const { componentInstance: y, designerItemElementRef: s } = l;
672
- return !y || !y.value ? null : y.value.canMove ? s : v(l.parent);
670
+ function g(i = e) {
671
+ const { componentInstance: y, designerItemElementRef: f } = i;
672
+ return !y || !y.value ? null : y.value.canMove ? f : g(i.parent);
673
673
  }
674
- function P(l) {
675
- return !!n && n.canAccepts(l);
674
+ function O(i) {
675
+ return !!n && n.canAccepts(i);
676
676
  }
677
677
  function S() {
678
678
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
679
679
  }
680
- function w() {
680
+ function P() {
681
681
  }
682
- function g(l, y) {
682
+ function b(i, y) {
683
683
  y && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(y);
684
684
  }
685
- function u(l) {
686
- const { componentType: y } = l;
687
- let s = T(y, l);
688
- n && n.onResolveNewComponentSchema && (s = n.onResolveNewComponentSchema(l, s));
689
- const B = y.toLowerCase().replace("-", "_");
690
- return s && !s.id && s.type === y && (s.id = `${B}_${Math.random().toString().slice(2, 6)}`), s;
685
+ function u(i, y) {
686
+ const { componentType: f } = i;
687
+ let j = T(f, i, y);
688
+ n && n.onResolveNewComponentSchema && (j = n.onResolveNewComponentSchema(i, j));
689
+ const z = f.toLowerCase().replace("-", "_");
690
+ return j && !j.id && j.type === f && (j.id = `${z}_${Math.random().toString().slice(2, 6)}`), j;
691
691
  }
692
- function m(l, y) {
693
- const s = String(l.getAttribute("data-controltype")), B = l.getAttribute("data-feature"), C = B ? JSON.parse(B) : {};
694
- C.parentComponentInstance = f.value;
695
- let M = T(s, C);
696
- n && n.onAcceptNewChildElement && (M = n.onAcceptNewChildElement(l, y, M));
697
- const A = s.toLowerCase().replace("-", "_");
698
- return M && !M.id && M.type === s && (M.id = `${A}_${Math.random().toString().slice(2, 6)}`), M;
692
+ function d(i, y) {
693
+ const f = String(i.getAttribute("data-controltype")), j = i.getAttribute("data-feature"), z = j ? JSON.parse(j) : {};
694
+ z.parentComponentInstance = s.value;
695
+ let M = T(f, z);
696
+ n && n.onAcceptNewChildElement && (M = n.onAcceptNewChildElement(i, y, M));
697
+ const R = f.toLowerCase().replace("-", "_");
698
+ return M && !M.id && M.type === f && (M.id = `${R}_${Math.random().toString().slice(2, 6)}`), M;
699
699
  }
700
- function d(l) {
700
+ function h(i) {
701
701
  }
702
- function H(...l) {
702
+ function H(...i) {
703
703
  if (n && n.getPropsConfig)
704
- return n.getPropsConfig(...l);
704
+ return n.getPropsConfig(...i);
705
705
  }
706
- return f.value = {
707
- canMove: b(),
708
- canSelectParent: O(),
706
+ return s.value = {
707
+ canMove: m(),
708
+ canSelectParent: w(),
709
709
  canDelete: a(),
710
710
  canNested: !p(),
711
711
  contents: e == null ? void 0 : e.schema.contents,
712
712
  elementRef: t,
713
- parent: (h = e == null ? void 0 : e.parent) == null ? void 0 : h.componentInstance,
713
+ parent: (v = e == null ? void 0 : e.parent) == null ? void 0 : v.componentInstance,
714
714
  schema: e == null ? void 0 : e.schema,
715
715
  styles: r,
716
- designerClass: i,
717
- canAccepts: P,
716
+ designerClass: l,
717
+ canAccepts: O,
718
718
  getBelongedComponentInstance: c,
719
- getDraggableDesignItemElement: v,
719
+ getDraggableDesignItemElement: g,
720
720
  getDraggingDisplayText: S,
721
721
  getPropConfig: H,
722
- getDragScopeElement: w,
723
- onAcceptMovedChildElement: g,
724
- onAcceptNewChildElement: m,
725
- onChildElementMovedOut: d,
722
+ getDragScopeElement: P,
723
+ onAcceptMovedChildElement: b,
724
+ onAcceptNewChildElement: d,
725
+ onChildElementMovedOut: h,
726
726
  addNewChildComponentSchema: u,
727
727
  updateDragAndDropRules: o,
728
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || z(!1),
729
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || z(!1)
730
- }, f;
728
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
729
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
730
+ }, s;
731
731
  }
732
732
  const Fe = /* @__PURE__ */ $({
733
733
  name: "FLayoutDesign",
@@ -735,44 +735,44 @@ const Fe = /* @__PURE__ */ $({
735
735
  emits: [],
736
736
  setup(t, e) {
737
737
  var p;
738
- const n = z(), o = E("design-item-context"), r = Le(o.schema, (p = o.parent) == null ? void 0 : p.schema), i = K(n, o, r);
739
- i.value.canNested = !1;
740
- const f = Q(n), {
741
- horizontalResizeHandleStyle: b,
742
- verticalResizeHandleStyle: O,
738
+ const n = C(), o = E("design-item-context"), r = Le(o.schema, (p = o.parent) == null ? void 0 : p.schema), l = x(n, o, r);
739
+ l.value.canNested = !1;
740
+ const s = Q(n), {
741
+ horizontalResizeHandleStyle: m,
742
+ verticalResizeHandleStyle: w,
743
743
  resizeOverlayStyle: a
744
- } = f;
744
+ } = s;
745
745
  return V("layout", {
746
- useResizeHandleComposition: f
746
+ useResizeHandleComposition: s
747
747
  }), W(() => {
748
- n.value.componentInstance = i;
749
- }), e.expose(i.value), () => j("div", {
748
+ n.value.componentInstance = l;
749
+ }), e.expose(l.value), () => B("div", {
750
750
  class: "f-layout f-page-content",
751
751
  ref: n
752
- }, [e.slots.default && e.slots.default(), j("div", {
752
+ }, [e.slots.default && e.slots.default(), B("div", {
753
753
  class: "f-layout-resize-overlay",
754
754
  style: a.value
755
- }, null), j("div", {
755
+ }, null), B("div", {
756
756
  class: "f-layout-horizontal-resize-proxy",
757
- style: b.value
758
- }, null), j("div", {
757
+ style: m.value
758
+ }, null), B("div", {
759
759
  class: "f-layout-vertical-resize-proxy",
760
- style: O.value
760
+ style: w.value
761
761
  }, null)]);
762
762
  }
763
763
  });
764
764
  function Ve() {
765
765
  function t(e) {
766
- var r, i;
766
+ var r, l;
767
767
  if (!e)
768
768
  return !1;
769
769
  const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
770
770
  if (!n)
771
771
  return !1;
772
- const o = (i = n.schema.appearance) == null ? void 0 : i.class;
772
+ const o = (l = n.schema.appearance) == null ? void 0 : l.class;
773
773
  if (e.controlCategory === "input" || e.controlType === "form-group") {
774
- const f = n.schema.type, b = (f === "response-form" || f === "content-container") && o && o.includes("farris-form");
775
- if (n.schema.type !== "response-layout-item" && !b)
774
+ const s = n.schema.type, m = (s === "response-form" || s === "content-container") && o && o.includes("farris-form");
775
+ if (n.schema.type !== "response-layout-item" && !m)
776
776
  return !1;
777
777
  }
778
778
  return e.controlType !== "field-set";
@@ -782,15 +782,15 @@ function Ve() {
782
782
  };
783
783
  }
784
784
  function We(t, e) {
785
- function n(i) {
786
- return !!Ve().basalDragulaRuleForContainer(i);
785
+ function n(l) {
786
+ return !!Ve().basalDragulaRuleForContainer(l);
787
787
  }
788
- function o(i, f, b) {
789
- return b;
788
+ function o(l, s, m) {
789
+ return m;
790
790
  }
791
791
  function r() {
792
- const i = ["f-layout-pane"];
793
- return (t.position === "left" || t.position === "right") && i.push("f-page-content-nav"), t.position === "center" && i.push("f-page-content-main"), i.join(" ");
792
+ const l = ["f-layout-pane"];
793
+ return (t.position === "left" || t.position === "right") && l.push("f-page-content-nav"), t.position === "center" && l.push("f-page-content-main"), l.join(" ");
794
794
  }
795
795
  return { canAccepts: n, getDesignerClass: r, onAcceptNewChildElement: o };
796
796
  }
@@ -799,16 +799,16 @@ const qe = /* @__PURE__ */ $({
799
799
  props: F,
800
800
  emits: [],
801
801
  setup(t, e) {
802
- var h;
803
- const n = z(), o = z(), r = E("design-item-context"), i = We(r.schema, (h = r.parent) == null ? void 0 : h.schema), f = K(o, r, i);
804
- f.value.canNested = !1, f.value.canMove = !1, f.value.canDelete = !1, W(() => {
805
- o.value.componentInstance = f;
806
- }), e.expose(f.value);
807
- const b = z(Math.max(t.minHeight, t.height)), O = z(Math.max(t.minWidth, t.width)), a = z(t.minHeight), p = z(t.minWidth), c = z(t.position), v = E("layout"), {
808
- useResizeHandleComposition: P
809
- } = v, S = Z(O, b, p, a, P), {
810
- onClickHorizontalResizeBar: w,
811
- onClickVerticalResizeBar: g
802
+ var v;
803
+ const n = C(), o = C(), r = E("design-item-context"), l = We(r.schema, (v = r.parent) == null ? void 0 : v.schema), s = x(o, r, l);
804
+ s.value.canNested = !1, s.value.canMove = !1, s.value.canDelete = !1, W(() => {
805
+ o.value.componentInstance = s;
806
+ }), e.expose(s.value);
807
+ const m = C(Math.max(t.minHeight, t.height)), w = C(Math.max(t.minWidth, t.width)), a = C(t.minHeight), p = C(t.minWidth), c = C(t.position), g = E("layout"), {
808
+ useResizeHandleComposition: O
809
+ } = g, S = Z(w, m, p, a, O), {
810
+ onClickHorizontalResizeBar: P,
811
+ onClickVerticalResizeBar: b
812
812
  } = S, u = D(() => ({
813
813
  "f-layout-resize-bar": !0,
814
814
  "f-layout-resize-bar-e": c.value === "left",
@@ -816,49 +816,49 @@ const qe = /* @__PURE__ */ $({
816
816
  "f-layout-resize-bar-s": c.value === "top",
817
817
  "f-layout-resize-bar-w": c.value === "right"
818
818
  }));
819
- function m(l, y) {
820
- (y === "left" || y === "right") && w(l, y, n.value), (y === "top" || y === "bottom") && g(l, y, n.value);
819
+ function d(i, y) {
820
+ (y === "left" || y === "right") && P(i, y, n.value), (y === "top" || y === "bottom") && b(i, y, n.value);
821
821
  }
822
- const d = D(() => {
823
- const l = {
822
+ const h = D(() => {
823
+ const i = {
824
824
  "f-layout-pane": !0,
825
825
  "f-page-content-nav": c.value === "left" || c.value === "right",
826
826
  "f-page-content-main": c.value === "center"
827
827
  };
828
- return t.customClass && String(t.customClass).split(" ").reduce((y, s) => (y[s] = !0, y), l), l;
828
+ return t.customClass && String(t.customClass).split(" ").reduce((y, f) => (y[f] = !0, y), i), i;
829
829
  }), H = D(() => {
830
- const l = {
830
+ const i = {
831
831
  flex: "1"
832
832
  };
833
- return (O.value && c.value === "left" || c.value === "right") && (l.width = `${O.value}px`), (b.value && c.value === "bottom" || c.value === "top") && (l.height = `${b.value}px`), l;
833
+ return (w.value && c.value === "left" || c.value === "right") && (i.width = `${w.value}px`), (m.value && c.value === "bottom" || c.value === "top") && (i.height = `${m.value}px`), i;
834
834
  });
835
- return () => j("div", {
835
+ return () => B("div", {
836
836
  ref: n,
837
- class: d.value,
837
+ class: h.value,
838
838
  style: H.value
839
- }, [j("div", {
839
+ }, [B("div", {
840
840
  ref: o,
841
841
  class: "drag-container",
842
842
  "data-dragref": `${r.schema.id}-container`
843
- }, [e.slots.default && e.slots.default()]), j("span", {
843
+ }, [e.slots.default && e.slots.default()]), B("span", {
844
844
  class: u.value,
845
- onMousedown: (l) => m(l, c.value)
845
+ onMousedown: (i) => d(i, c.value)
846
846
  }, null)]);
847
847
  }
848
848
  });
849
- R.install = (t) => {
850
- t.component(R.name, R), t.component(k.name, k);
849
+ A.install = (t) => {
850
+ t.component(A.name, A), t.component(k.name, k);
851
851
  };
852
- R.register = (t, e, n, o) => {
853
- t.layout = R, e.layout = G, t["layout-pane"] = k, e["layout-pane"] = U;
852
+ A.register = (t, e, n, o) => {
853
+ t.layout = A, e.layout = G, t["layout-pane"] = k, e["layout-pane"] = U;
854
854
  };
855
- R.registerDesigner = (t, e, n) => {
855
+ A.registerDesigner = (t, e, n) => {
856
856
  t.layout = Fe, e.layout = G, t["layout-pane"] = qe, e["layout-pane"] = U;
857
857
  };
858
858
  export {
859
- R as FLayout,
859
+ A as FLayout,
860
860
  k as FLayoutPane,
861
- R as default,
861
+ A as default,
862
862
  L as layoutProps,
863
863
  G as layoutPropsResolver
864
864
  };