@farris/ui-vue 1.2.8 → 1.3.0

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 (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  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.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,128 +1,128 @@
1
- import { ref as z, computed as S, defineComponent as R, provide as X, createVNode as A, inject as D, onMounted as Y } from "vue";
2
- import { cloneDeep as ee } from "lodash-es";
1
+ import { ref as P, computed as S, defineComponent as M, provide as Y, createVNode as T, inject as R, onMounted as _ } from "vue";
2
+ import { isPlainObject as x, cloneDeep as te } from "lodash-es";
3
3
  import "bignumber.js";
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;
4
+ const J = {}, G = {};
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]) : te(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 = J[t];
11
+ if (o) {
12
+ let r = L(o);
13
+ const d = G[t];
14
+ return r = d ? d({ getSchemaByType: $ }, r, e, n) : r, r;
15
15
  }
16
16
  return null;
17
17
  }
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;
21
- }
22
18
  function ne(t, e) {
23
- return Object.keys(t).filter((s) => t[s] != null).reduce((s, r) => {
19
+ const n = L(e);
20
+ return Object.keys(t).reduce((o, r) => (o[r] && x(o[r]) && x(t[r]) ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
21
+ }
22
+ function oe(t, e) {
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
37
  function se(t, e, n = /* @__PURE__ */ new Map()) {
38
- const s = te(t, e);
39
- return ne(s, n);
38
+ const o = ne(t, e);
39
+ return oe(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 re(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
- 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);
95
+ const ie = {}, ae = {};
96
+ re();
97
+ function Q(t, e, n = /* @__PURE__ */ new Map(), o = (c, m, j) => m, r = {}, d = (c) => c) {
98
+ return J[e.title] = e, G[e.title] = o, ie[e.title] = r, ae[e.title] = d, (c = {}) => {
99
+ const m = se(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
- function Q(t, e) {
103
+ function U(t, e) {
104
104
  return { customClass: e.class, customStyle: e.style };
105
105
  }
106
- const ae = /* @__PURE__ */ new Map([
107
- ["appearance", Q]
106
+ const ce = /* @__PURE__ */ new Map([
107
+ ["appearance", U]
108
108
  ]);
109
- function ce(t, e, n) {
110
- const s = t.getSchemaByType("splitter-pane");
111
- return s.appearance = {
109
+ function le(t, e, n) {
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
- function le(t, e, n) {
116
- const s = t.getSchemaByType("splitter-pane");
117
- return s.appearance = {
115
+ function pe(t, e, n) {
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
- 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;
121
+ function ue(t, e, n) {
122
+ const o = n.parentComponentInstance;
123
+ return String(o.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), le(t, e), pe(t, e), e;
124
124
  }
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 = {
125
+ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/splitter.schema.json", ye = "splitter", be = "A Farris Container Component", me = "object", he = {
126
126
  id: {
127
127
  description: "The unique identifier for a splitter",
128
128
  type: "string"
@@ -159,14 +159,14 @@ const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-
159
159
  "row"
160
160
  ]
161
161
  }
162
- }, he = {
163
- $schema: ue,
164
- $id: fe,
165
- title: de,
166
- description: ye,
167
- type: be,
168
- properties: me
169
- }, ge = "splitter", ve = "A Farris Container Component", je = "object", Ce = {
162
+ }, ge = {
163
+ $schema: fe,
164
+ $id: de,
165
+ title: ye,
166
+ description: be,
167
+ type: me,
168
+ properties: he
169
+ }, ve = "splitter", je = "A Farris Container Component", Ce = "object", Pe = {
170
170
  basic: {
171
171
  description: "Basic Infomation",
172
172
  title: "基本信息",
@@ -220,124 +220,124 @@ const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-
220
220
  }
221
221
  }
222
222
  }
223
- }, Pe = {
224
- title: ge,
225
- description: ve,
226
- type: je,
227
- categories: Ce
228
- }, L = {
223
+ }, we = {
224
+ title: ve,
225
+ description: je,
226
+ type: Ce,
227
+ categories: Pe
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);
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(() => ({
232
+ }, q = Q(V, ge, ce, ue, we);
233
+ function Z(t) {
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
- const we = ["moz", "ms", "webkit"];
272
- function ze() {
271
+ const ze = ["moz", "ms", "webkit"];
272
+ function Oe() {
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
- function Oe() {
281
+ function Ae() {
282
282
  if (typeof window > "u")
283
283
  return () => 0;
284
284
  if (window.requestAnimationFrame)
285
285
  return window.requestAnimationFrame.bind(window);
286
- const t = we.filter((e) => `${e}RequestAnimationFrame` in window)[0];
287
- return t ? window[`${t}RequestAnimationFrame`] : ze();
288
- }
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;
286
+ const t = ze.filter((e) => `${e}RequestAnimationFrame` in window)[0];
287
+ return t ? window[`${t}RequestAnimationFrame`] : Oe();
292
288
  }
289
+ Ae();
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 = Z(n), {
308
308
  horizontalResizeHandleStyle: r,
309
309
  verticalResizeHandleStyle: d,
310
- resizeOverlayStyle: u
311
- } = s;
312
- X("splitter", {
313
- useResizeHandleComposition: s
310
+ resizeOverlayStyle: c
311
+ } = o;
312
+ Y("splitter", {
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
338
  }), Se = /* @__PURE__ */ new Map([
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 = {
339
+ ["appearance", U]
340
+ ]), Te = "https://json-schema.org/draft/2020-12/schema", Ee = "https://farris-design.gitee.io/splitter-pane.schema.json", $e = "splitter-pane", De = "A Farris Container Component", Re = "object", Me = {
341
341
  id: {
342
342
  description: "The unique identifier for a splitter",
343
343
  type: "string"
@@ -413,14 +413,14 @@ const B = /* @__PURE__ */ R({
413
413
  type: "number",
414
414
  default: !0
415
415
  }
416
- }, Me = {
417
- $schema: Ae,
418
- $id: Te,
419
- title: Ee,
420
- description: $e,
421
- type: De,
422
- properties: Re
423
- }, He = "splitter-pane", Be = "A Farris Container Component", Ne = "object", ke = {
416
+ }, He = {
417
+ $schema: Te,
418
+ $id: Ee,
419
+ title: $e,
420
+ description: De,
421
+ type: Re,
422
+ properties: Me
423
+ }, Be = "splitter-pane", Ne = "A Farris Container Component", ke = "object", Fe = {
424
424
  basic: {
425
425
  description: "Basic Infomation",
426
426
  title: "基本信息",
@@ -516,12 +516,12 @@ const B = /* @__PURE__ */ R({
516
516
  }
517
517
  }
518
518
  }
519
- }, Fe = {
520
- title: He,
521
- description: Be,
522
- type: Ne,
523
- categories: ke
524
- }, V = {
519
+ }, Le = {
520
+ title: Be,
521
+ description: Ne,
522
+ type: ke,
523
+ categories: Fe
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,
545
- Me,
543
+ }, X = Q(
544
+ W,
545
+ He,
546
546
  Se,
547
547
  void 0,
548
- Fe
548
+ Le
549
549
  );
550
- function Z(t, e) {
551
- const n = z(t.width), s = z(t.height), {
550
+ function K(t, e) {
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 = K(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
- function K(t, e, n) {
635
+ function I(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 ee = z.toLowerCase().replace("-", "_");
690
+ return E && !E.id && E.type === z && (E.id = `${ee}_${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 Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-design.gitee.io/dragging-rules.schema.json", xe = "Dragging Rules", qe = "The rules of designer canvas", Xe = "object", Ye = {
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,181 +1359,180 @@ 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 = {
1289
- $schema: Le,
1290
- $id: Ve,
1291
- title: We,
1362
+ }, _e = {
1363
+ $schema: Ve,
1364
+ $id: We,
1365
+ title: xe,
1292
1366
  description: qe,
1293
- type: xe,
1294
- properties: Xe,
1295
- required: Ye
1296
- }, k = /* @__PURE__ */ new Map();
1367
+ type: Xe,
1368
+ properties: Ye
1369
+ }, F = /* @__PURE__ */ new Map();
1297
1370
  function Je() {
1298
- function t(o, a, f, m) {
1299
- var g;
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 } = _e;
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
1460
  function Ge(t, e) {
1388
1461
  const n = Je();
1389
- let s, r = !1;
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 Qe = /* @__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 = Ge(o.schema, (u = o.parent) == null ? void 0 : u.schema), d = I(n, o, r);
1433
1506
  d.value.canNested = !1;
1434
- const u = U(n), {
1435
- horizontalResizeHandleStyle: v,
1507
+ const c = Z(n), {
1508
+ horizontalResizeHandleStyle: m,
1436
1509
  verticalResizeHandleStyle: j,
1437
- resizeOverlayStyle: l
1438
- } = u;
1439
- X("splitter", {
1440
- useResizeHandleComposition: u
1510
+ resizeOverlayStyle: p
1511
+ } = c;
1512
+ Y("splitter", {
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
- return Y(() => {
1523
+ return _(() => {
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)]);
@@ -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";
@@ -1491,84 +1564,84 @@ function Ze(t, e) {
1491
1564
  if (!Ue().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 Ke = /* @__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);
1528
- d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1, Y(() => {
1599
+ var s;
1600
+ const n = P(), o = R("design-item-context"), r = Ze(o.schema, (s = o.parent) == null ? void 0 : s.schema), d = I(n, o, r);
1601
+ d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1, _(() => {
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 = K(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
1630
  }), nt = {
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 = q, t["splitter-pane"] = k, e["splitter-pane"] = X;
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 = Qe, e.splitter = q, t["splitter-pane"] = Ke, e["splitter-pane"] = X;
1566
1639
  }
1567
1640
  };
1568
1641
  export {
1569
- B as FSplitter,
1570
- N as FSplitterPane,
1642
+ N as FSplitter,
1643
+ k as FSplitterPane,
1571
1644
  nt as default,
1572
- L as splitterProps,
1645
+ V as splitterProps,
1573
1646
  q as splitterPropsResolver
1574
1647
  };