@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,114 +1,153 @@
1
- import { ref as S, computed as w, createVNode as P, defineComponent as W, watch as X, onMounted as _, inject as Y } from "vue";
2
- import { cloneDeep as R } from "lodash-es";
3
- import K from "../response-toolbar/index.esm.js";
1
+ import { ref as w, computed as T, createVNode as M, defineComponent as G, watch as R, onMounted as _, inject as I } from "vue";
2
+ import { isPlainObject as W, cloneDeep as K } from "lodash-es";
3
+ import ee from "../response-toolbar/index.esm.js";
4
4
  import "bignumber.js";
5
- import { withInstall as I } from "../common/index.esm.js";
6
- const J = {}, Z = {};
7
- function B(t) {
8
- const { properties: e, title: n } = t, r = Object.keys(e).reduce((a, l) => (a[l] = e[l].type === "object" && e[l].properties ? B(e[l]) : R(e[l].default), a), {});
9
- return r.id = `${n}-${Date.now()}`, r;
5
+ import { withInstall as te } from "../common/index.esm.js";
6
+ const J = {}, U = {};
7
+ function H(t) {
8
+ const { properties: e, title: n, ignore: o } = t, s = o && Array.isArray(o), i = Object.keys(e).reduce((y, m) => ((!s || !o.find((C) => C == m)) && (y[m] = e[m].type === "object" && e[m].properties ? H(e[m]) : K(e[m].default)), y), {});
9
+ return (!s || !o.find((y) => y == "id")) && (i.id = `${n}-${Date.now()}`), i;
10
10
  }
11
- function x(t, e = {}) {
12
- const n = J[t];
13
- if (n) {
14
- let r = B(n);
15
- const a = Z[t];
16
- return r = a ? a({ getSchemaByType: x }, r, e) : r, r;
11
+ function $(t, e = {}, n) {
12
+ const o = J[t];
13
+ if (o) {
14
+ let s = H(o);
15
+ const i = U[t];
16
+ return s = i ? i({ getSchemaByType: $ }, s, e, n) : s, s;
17
17
  }
18
18
  return null;
19
19
  }
20
- function ee(t, e) {
21
- const n = B(e);
22
- return Object.keys(t).reduce((r, a) => (r[a] && typeof r[a] == "object" ? Object.assign(r[a], t[a]) : r[a] = t[a], r), n), n;
20
+ function ne(t, e) {
21
+ const n = H(e);
22
+ return Object.keys(t).reduce((o, s) => (o[s] && W(o[s]) && W(t[s]) ? Object.assign(o[s], t[s]) : o[s] = t[s], o), n), n;
23
23
  }
24
- function te(t, e) {
25
- return Object.keys(t).filter((r) => t[r] != null).reduce((r, a) => {
26
- if (e.has(a)) {
27
- const l = e.get(a);
28
- if (typeof l == "string")
29
- r[l] = t[a];
24
+ function oe(t, e) {
25
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, s) => {
26
+ if (e.has(s)) {
27
+ const i = e.get(s);
28
+ if (typeof i == "string")
29
+ o[i] = t[s];
30
30
  else {
31
- const h = l(a, t[a], t);
32
- Object.assign(r, h);
31
+ const y = i(s, t[s], t);
32
+ Object.assign(o, y);
33
33
  }
34
34
  } else
35
- r[a] = t[a];
36
- return r;
35
+ o[s] = t[s];
36
+ return o;
37
37
  }, {});
38
38
  }
39
- function ne(t, e, n = /* @__PURE__ */ new Map()) {
40
- const r = ee(t, e);
41
- return te(r, n);
39
+ function re(t, e, n = /* @__PURE__ */ new Map()) {
40
+ const o = ne(t, e);
41
+ return oe(o, n);
42
42
  }
43
- function oe(t = {}) {
44
- function e(c, d, u, p) {
45
- if (typeof u == "number")
46
- return p[c].length === u;
47
- if (typeof u == "object") {
48
- const m = Object.keys(u)[0], o = u[m];
49
- if (m === "not")
50
- return Number(p[c].length) !== Number(o);
51
- if (m === "moreThan")
52
- return Number(p[c].length) >= Number(o);
53
- if (m === "lessThan")
54
- return Number(p[c].length) <= Number(o);
43
+ function ae(t = {}) {
44
+ function e(c, b, f, u) {
45
+ if (typeof f == "number")
46
+ return u[c].length === f;
47
+ if (typeof f == "object") {
48
+ const g = Object.keys(f)[0], r = f[g];
49
+ if (g === "not")
50
+ return Number(u[c].length) !== Number(r);
51
+ if (g === "moreThan")
52
+ return Number(u[c].length) >= Number(r);
53
+ if (g === "lessThan")
54
+ return Number(u[c].length) <= Number(r);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function n(c, d, u, p) {
59
- return p[c] && p[c].propertyValue && String(p[c].propertyValue.value) === String(u);
58
+ function n(c, b, f, u) {
59
+ return u[c] && u[c].propertyValue && String(u[c].propertyValue.value) === String(f);
60
60
  }
61
- const r = /* @__PURE__ */ new Map([
61
+ const o = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
63
  ["getProperty", n]
64
64
  ]);
65
- Object.keys(t).reduce((c, d) => (c.set(d, t[d]), c), r);
66
- function a(c, d) {
67
- const u = c;
68
- return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
69
- if (p === "length")
70
- return { target: u, operator: "length", param: null, value: d[p] };
71
- const m = p, o = d[p];
72
- return { target: u, operator: "getProperty", param: m, value: o };
65
+ Object.keys(t).reduce((c, b) => (c.set(b, t[b]), c), o);
66
+ function s(c, b) {
67
+ const f = c;
68
+ return typeof b == "number" ? [{ target: f, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: f, operator: "getProperty", param: c, value: !!b }] : typeof b == "object" ? Object.keys(b).map((u) => {
69
+ if (u === "length")
70
+ return { target: f, operator: "length", param: null, value: b[u] };
71
+ const g = u, r = b[u];
72
+ return { target: f, operator: "getProperty", param: g, value: r };
73
73
  }) : [];
74
74
  }
75
- function l(c) {
76
- return Object.keys(c).reduce((u, p) => {
77
- const m = a(p, c[p]);
78
- return u.push(...m), u;
75
+ function i(c) {
76
+ return Object.keys(c).reduce((f, u) => {
77
+ const g = s(u, c[u]);
78
+ return f.push(...g), f;
79
79
  }, []);
80
80
  }
81
- function h(c, d) {
82
- if (r.has(c.operator)) {
83
- const u = r.get(c.operator);
84
- return u && u(c.target, c.param, c.value, d) || !1;
81
+ function y(c, b) {
82
+ if (o.has(c.operator)) {
83
+ const f = o.get(c.operator);
84
+ return f && f(c.target, c.param, c.value, b) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function v(c, d) {
89
- return l(c).reduce((m, o) => m && h(o, d), !0);
88
+ function m(c, b) {
89
+ return i(c).reduce((g, r) => g && y(r, b), !0);
90
90
  }
91
- function C(c, d) {
92
- const u = Object.keys(c), p = u.includes("allOf"), m = u.includes("anyOf"), o = p || m, f = (o ? c[o ? p ? "allOf" : "anyOf" : "allOf"] : [c]).map((y) => v(y, d));
93
- return p ? !f.includes(!1) : f.includes(!0);
91
+ function C(c, b) {
92
+ const f = Object.keys(c), u = f.includes("allOf"), g = f.includes("anyOf"), r = u || g, p = (r ? c[r ? u ? "allOf" : "anyOf" : "allOf"] : [c]).map((d) => m(d, b));
93
+ return u ? !p.includes(!1) : p.includes(!0);
94
94
  }
95
95
  return { parseValueSchema: C };
96
96
  }
97
- const re = {}, se = {};
98
- oe();
99
- function ae(t, e, n = /* @__PURE__ */ new Map(), r = (h, v, C) => v, a = {}, l = (h) => h) {
100
- return J[e.title] = e, Z[e.title] = r, re[e.title] = a, se[e.title] = l, (h = {}) => {
101
- const v = ne(h, e, n), C = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
102
- return Object.assign(C, v);
97
+ const se = {
98
+ button: { type: "button", name: "按钮", icon: "Button" },
99
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
101
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
102
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
103
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
104
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
105
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
106
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
107
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
108
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
109
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
110
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
111
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
112
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
113
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
114
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
115
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
116
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
117
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
118
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
119
+ module: { type: "Module", name: "模块", icon: "Module" },
120
+ component: { type: "component", name: "组件", icon: "Component" },
121
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
122
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
123
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
124
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
125
+ section: { type: "section", name: "分组面板", icon: "Section" },
126
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
127
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
128
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
129
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
130
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
131
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
132
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
133
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
135
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
136
+ }, ce = {}, ie = {};
137
+ ae();
138
+ function le(t, e, n = /* @__PURE__ */ new Map(), o = (y, m, C) => m, s = {}, i = (y) => y) {
139
+ return J[e.title] = e, U[e.title] = o, ce[e.title] = s, ie[e.title] = i, (y = {}) => {
140
+ const m = re(y, e, n), C = Object.keys(t).reduce((c, b) => (c[b] = t[b].default, c), {});
141
+ return Object.assign(C, m);
103
142
  };
104
143
  }
105
- function ce(t, e) {
144
+ function pe(t, e) {
106
145
  return { customClass: e.class, customStyle: e.style };
107
146
  }
108
- function ie(t, e, n) {
147
+ function ue(t, e, n) {
109
148
  return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
110
149
  }
111
- function le(t, e) {
150
+ function fe(t, e) {
112
151
  return e && e.contents && e.contents.length && e.contents.forEach((n) => {
113
152
  n.title && (n.text = n.title);
114
153
  }), {
@@ -116,16 +155,43 @@ function le(t, e) {
116
155
  buttonPosition: e.position
117
156
  };
118
157
  }
119
- const pe = /* @__PURE__ */ new Map([
120
- ["appearance", ce],
158
+ const de = /* @__PURE__ */ new Map([
159
+ ["appearance", pe],
121
160
  ["expanded", "expandStatus"],
122
- ["enableAccordion", ie],
123
- ["toolbar", le]
161
+ ["enableAccordion", ue],
162
+ ["toolbar", fe]
124
163
  ]);
125
- function ue(t, e, n) {
126
- return e;
164
+ function ye(t, e, n, o) {
165
+ const s = Math.random().toString().slice(2, 6), i = n.parentComponentInstance;
166
+ Object.assign(e, {
167
+ id: `section-${s}`,
168
+ appearance: {
169
+ class: "f-section-in-mainsubcard"
170
+ },
171
+ enableAccordion: !1,
172
+ mainTitle: e.mainTitle || "标题"
173
+ });
174
+ const y = t.getSchemaByType("content-container");
175
+ Object.assign(y, {
176
+ id: `container-${s}`,
177
+ appearance: {
178
+ class: "f-struct-wrapper"
179
+ },
180
+ contents: [e]
181
+ });
182
+ const m = i.schema;
183
+ switch (m && m.type) {
184
+ case se.splitter.type: {
185
+ e.appearance.class = "f-section-in-main";
186
+ break;
187
+ }
188
+ }
189
+ return y;
127
190
  }
128
- const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/section.schema.json", ye = "section", be = "A Farris Container Component", he = "object", me = {
191
+ function be(t, e, n, o) {
192
+ return n.parentComponentInstance ? ye(t, e, n) : e;
193
+ }
194
+ const me = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-design.gitee.io/section.schema.json", ge = "section", Ce = "A Farris Container Component", ve = "object", je = {
129
195
  id: {
130
196
  description: "The unique identifier for a Section",
131
197
  type: "string"
@@ -250,121 +316,18 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
250
316
  },
251
317
  default: null
252
318
  }
253
- }, ge = [
319
+ }, Te = [
254
320
  "id",
255
321
  "type",
256
322
  "contents"
257
- ], ve = {
258
- $schema: fe,
259
- $id: de,
260
- title: ye,
261
- description: be,
262
- type: he,
263
- properties: me,
264
- required: ge
265
- }, Ce = "section", je = "A Farris Container Component", Ae = "object", Te = {
266
- basic: {
267
- title: "基本信息",
268
- description: "Basic Infomation",
269
- properties: {
270
- id: {
271
- title: "标识",
272
- type: "string",
273
- description: "The identifier of a component.",
274
- readonly: !0
275
- },
276
- type: {
277
- title: "组件类型",
278
- type: "enum",
279
- description: "The type of a component.",
280
- editor: {
281
- type: "combo-list",
282
- textField: "value",
283
- valueField: "key",
284
- data: [
285
- {
286
- key: "section",
287
- value: "分组面板"
288
- }
289
- ]
290
- }
291
- },
292
- mainTitle: {
293
- title: "主标题",
294
- type: "string",
295
- description: ""
296
- },
297
- subTitle: {
298
- title: "副标题",
299
- type: "string",
300
- description: ""
301
- }
302
- }
303
- },
304
- appearance: {
305
- title: "样式",
306
- description: "Appearance",
307
- properties: {
308
- class: {
309
- description: "组件的CSS样式",
310
- title: "class样式"
311
- },
312
- style: {
313
- description: "组件的内容样式",
314
- title: "style样式"
315
- },
316
- fill: {
317
- title: "填充内容区域",
318
- type: "boolean",
319
- description: "To fill the space of parent container in flex layout."
320
- },
321
- showHeader: {
322
- title: "显示标题区域",
323
- type: "boolean",
324
- description: ""
325
- },
326
- mainTitle: {
327
- title: "主标题",
328
- type: "string",
329
- description: "",
330
- visible: {
331
- showHeader: !0
332
- }
333
- },
334
- subTitle: {
335
- title: "副标题",
336
- type: "string",
337
- description: "",
338
- visible: {
339
- showHeader: !0
340
- }
341
- },
342
- enableAccordion: {
343
- title: "允许收折",
344
- type: "boolean",
345
- description: "",
346
- visible: {
347
- showHeader: !0
348
- }
349
- }
350
- }
351
- },
352
- extends: {
353
- title: "扩展",
354
- description: "",
355
- properties: {
356
- contentClass: {
357
- title: "内容区域样式",
358
- type: "string",
359
- description: ""
360
- }
361
- }
362
- }
363
- }, we = {
364
- title: Ce,
365
- description: je,
366
- type: Ae,
367
- categories: Te
323
+ ], Ae = {
324
+ $schema: me,
325
+ $id: he,
326
+ title: ge,
327
+ description: Ce,
328
+ type: ve,
329
+ properties: je,
330
+ required: Te
368
331
  }, L = {
369
332
  /** 设置内容区域样式 */
370
333
  contentClass: { type: String, default: "" },
@@ -409,24 +372,24 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
409
372
  // toolbarPosition: { type: String, default: '' },
410
373
  // toolbarButtons: { type: Array<object>, default: [] },
411
374
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
412
- }, G = ae(L, ve, pe, ue, we);
413
- function Se(t, e, n) {
414
- let r;
415
- function a() {
416
- !t || !e.value || (n.value = !n.value, n.value ? l() : h());
375
+ }, Z = le(L, Ae, de, be);
376
+ function we(t, e, n) {
377
+ let o;
378
+ function s() {
379
+ !t || !e.value || (n.value = !n.value, n.value ? i() : y());
417
380
  }
418
- function l() {
419
- r = t.value.nextElementSibling;
381
+ function i() {
382
+ o = t.value.nextElementSibling;
420
383
  const C = document && document.querySelector("body");
421
- C && (C.appendChild(t.value), t.value.style.zIndex = v());
384
+ C && (C.appendChild(t.value), t.value.style.zIndex = m());
422
385
  }
423
- function h() {
424
- r ? e.value.insertBefore(
386
+ function y() {
387
+ o ? e.value.insertBefore(
425
388
  t.value,
426
- r
389
+ o
427
390
  ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
428
391
  }
429
- function v(C = 1) {
392
+ function m(C = 1) {
430
393
  const c = [
431
394
  "body>.f-datagrid-settings-simple-host",
432
395
  "body>div",
@@ -437,170 +400,170 @@ function Se(t, e, n) {
437
400
  "body>.popover.show",
438
401
  "body>filter-row-panel>.f-datagrid-filter-panel",
439
402
  "body>.f-section-maximize"
440
- ], d = Array.from(document.body.querySelectorAll(c.join(","))).filter((p) => p).map((p) => {
441
- const { display: m, zIndex: o } = window.getComputedStyle(p);
442
- return m === "none" ? 0 : parseInt(o, 10);
443
- }).filter((p) => p);
444
- let u = Math.max(...d);
445
- return u < 1040 && (u = 1040), u + C;
403
+ ], b = Array.from(document.body.querySelectorAll(c.join(","))).filter((u) => u).map((u) => {
404
+ const { display: g, zIndex: r } = window.getComputedStyle(u);
405
+ return g === "none" ? 0 : parseInt(r, 10);
406
+ }).filter((u) => u);
407
+ let f = Math.max(...b);
408
+ return f < 1040 && (f = 1040), f + C;
446
409
  }
447
- return { onClickMaxMinIcon: a };
410
+ return { onClickMaxMinIcon: s };
448
411
  }
449
- function V(t, e) {
450
- const n = S(t.buttons), r = w(() => t.buttonPosition === "inHead" ? "right" : "left"), a = w(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), l = w(() => {
412
+ function z(t, e) {
413
+ const n = w(t.buttons), o = T(() => t.buttonPosition === "inHead" ? "right" : "left"), s = T(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), i = T(() => {
451
414
  t.buttons && t.buttons.length > 0 && t.buttonPosition;
452
415
  });
453
- function h(v) {
454
- e.emit("Click", v);
416
+ function y(m) {
417
+ e.emit("Click", m);
455
418
  }
456
- return () => l && P(K, {
457
- customClass: a.value,
419
+ return () => i && M(ee, {
420
+ customClass: s.value,
458
421
  items: n.value,
459
- onClick: h,
460
- alignment: r.value
422
+ onClick: y,
423
+ alignment: o.value
461
424
  }, null);
462
425
  }
463
- function Q(t, e, n, r, a, l) {
464
- S(t.subTitle);
465
- const h = w(() => t.buttonPosition), v = V(t, e), {
426
+ function Q(t, e, n, o, s, i) {
427
+ w(t.subTitle);
428
+ const y = T(() => t.buttonPosition), m = z(t, e), {
466
429
  onClickMaxMinIcon: C
467
- } = Se(r, a, l), c = w(() => !!t.subTitle), d = w(() => t.enableMaximize), u = w(() => t.enableAccordion != ""), p = w(() => {
468
- const y = {
430
+ } = we(o, s, i), c = T(() => !!t.subTitle), b = T(() => t.enableMaximize), f = T(() => t.enableAccordion != ""), u = T(() => {
431
+ const d = {
469
432
  "f-section-header": !0
470
433
  };
471
- return e.slots.header && t.headerClass.split(" ").reduce((M, b) => (M[b] = !0, M), y), y;
434
+ return e.slots.header && t.headerClass.split(" ").reduce((S, h) => (S[h] = !0, S), d), d;
472
435
  });
473
- function m(y) {
474
- y.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
436
+ function g(d) {
437
+ d.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
475
438
  }
476
- function o() {
477
- const y = w(() => ({
439
+ function r() {
440
+ const d = T(() => ({
478
441
  btn: !0,
479
442
  "f-btn-collapse-expand": !0,
480
443
  "f-btn-mx": !0,
481
444
  "f-state-expand": n.value
482
- })), j = w(() => ({
445
+ })), v = T(() => ({
483
446
  "f-icon": !0,
484
- "f-icon-maximize": !l.value,
485
- "f-icon-minimize": l.value
447
+ "f-icon-maximize": !i.value,
448
+ "f-icon-minimize": i.value
486
449
  }));
487
- return P("div", {
450
+ return M("div", {
488
451
  class: "f-max-accordion"
489
- }, [d.value ? P("span", {
490
- class: j.value,
452
+ }, [b.value ? M("span", {
453
+ class: v.value,
491
454
  onClick: C
492
- }, null) : "", u.value ? P("button", {
493
- class: y.value,
494
- onClick: m
495
- }, [P("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
455
+ }, null) : "", f.value ? M("button", {
456
+ class: d.value,
457
+ onClick: g
458
+ }, [M("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
496
459
  }
497
- function i() {
498
- return e.slots.header ? P("div", {
499
- class: p.value
460
+ function l() {
461
+ return e.slots.header ? M("div", {
462
+ class: u.value
500
463
  }, [e.slots.header()]) : "";
501
464
  }
502
- function s() {
503
- return P("div", {
465
+ function a() {
466
+ return M("div", {
504
467
  class: "f-title",
505
- onClick: m
506
- }, [P("h4", {
468
+ onClick: g
469
+ }, [M("h4", {
507
470
  class: "f-title-text"
508
- }, [t.mainTitle]), c.value && P("span", null, [t.subTitle])]);
471
+ }, [t.mainTitle]), c.value && M("span", null, [t.subTitle])]);
509
472
  }
510
- function f() {
511
- const y = w(() => {
512
- const j = {
473
+ function p() {
474
+ const d = T(() => {
475
+ const v = {
513
476
  "f-content": !0
514
477
  };
515
- return t.headerContentClass && t.headerContentClass.split(" ").reduce((b, A) => (b[A] = !0, b), j), j;
478
+ return t.headerContentClass && t.headerContentClass.split(" ").reduce((h, P) => (h[P] = !0, h), v), v;
516
479
  });
517
- return e.slots.headerContent ? P("div", {
518
- class: y.value
480
+ return e.slots.headerContent ? M("div", {
481
+ class: d.value
519
482
  }, [e.slots.headerContent()]) : "";
520
483
  }
521
- function g() {
522
- return P("div", {
523
- class: p.value
524
- }, [e.slots.headerTitle ? e.slots.headerTitle() : s(), f(), h.value === "inHead" && v(), (d.value || u.value) && o()]);
484
+ function j() {
485
+ return M("div", {
486
+ class: u.value
487
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : a(), p(), y.value === "inHead" && m(), (b.value || f.value) && r()]);
525
488
  }
526
- return () => t.showHeader && (e.slots.header ? i() : g());
489
+ return () => t.showHeader && (e.slots.header ? l() : j());
527
490
  }
528
- const Pe = ["moz", "ms", "webkit"];
529
- function Me() {
491
+ const Se = ["moz", "ms", "webkit"];
492
+ function Pe() {
530
493
  let t = 0;
531
494
  return (e) => {
532
- const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
533
- e(n + r);
534
- }, r);
535
- return t = n + r, a;
495
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), s = setTimeout(() => {
496
+ e(n + o);
497
+ }, o);
498
+ return t = n + o, s;
536
499
  };
537
500
  }
538
- function De() {
501
+ function Me() {
539
502
  if (typeof window > "u")
540
503
  return () => 0;
541
504
  if (window.requestAnimationFrame)
542
505
  return window.requestAnimationFrame.bind(window);
543
- const t = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
544
- return t ? window[`${t}RequestAnimationFrame`] : Me();
506
+ const t = Se.filter((e) => `${e}RequestAnimationFrame` in window)[0];
507
+ return t ? window[`${t}RequestAnimationFrame`] : Pe();
545
508
  }
546
- De();
547
- function E(t, e) {
548
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, a) => (a && (r[a] = !0), r), t), t;
509
+ Me();
510
+ function O(t, e) {
511
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, s) => (s && (o[s] = !0), o), t), t;
549
512
  }
550
- const N = /* @__PURE__ */ W({
513
+ const x = /* @__PURE__ */ G({
551
514
  name: "FSection",
552
515
  props: L,
553
516
  emits: [],
554
517
  setup(t, e) {
555
- const n = S();
556
- let r = S();
557
- const a = S(t.customClass), l = w(() => t.enableAccordion), h = S(t.expandStatus), v = w(() => t.buttonPosition), C = S(!1), c = Q(t, e, h, n, r, C), d = V(t, e), u = w(() => {
558
- const s = {
518
+ const n = w();
519
+ let o = w();
520
+ const s = w(t.customClass), i = T(() => t.enableAccordion), y = w(t.expandStatus), m = T(() => t.buttonPosition), C = w(!1), c = Q(t, e, y, n, o, C), b = z(t, e), f = T(() => {
521
+ const a = {
559
522
  "f-section": !0,
560
- "f-section-accordion": l.value === "default",
561
- "f-state-collapse": (l.value === "default" || l.value === "custom") && !h.value,
562
- "f-section-custom-accordion": l.value === "custom",
523
+ "f-section-accordion": i.value === "default",
524
+ "f-state-collapse": (i.value === "default" || i.value === "custom") && !y.value,
525
+ "f-section-custom-accordion": i.value === "custom",
563
526
  "f-section-fill": t.fill,
564
527
  "f-section-maximize": C.value
565
528
  };
566
- return E(s, a.value);
567
- }), p = w(() => E({
529
+ return O(a, s.value);
530
+ }), u = T(() => O({
568
531
  "f-section-content": !0
569
- }, t.contentClass)), m = w(() => E({
532
+ }, t.contentClass)), g = T(() => O({
570
533
  "f-section-extend": !0
571
- }, m.value));
572
- function o() {
573
- return e.slots.extend && P("div", {
574
- class: m.value
534
+ }, g.value));
535
+ function r() {
536
+ return e.slots.extend && M("div", {
537
+ class: g.value
575
538
  }, [e.slots.extend()]);
576
539
  }
577
- function i() {
578
- return P("div", {
579
- class: p.value
580
- }, [v.value === "inContent" && d(), e.slots.default && e.slots.default()]);
540
+ function l() {
541
+ return M("div", {
542
+ class: u.value
543
+ }, [m.value === "inContent" && b(), e.slots.default && e.slots.default()]);
581
544
  }
582
- return X(() => t.expandStatus, (s, f) => {
583
- s !== f && (h.value = s);
545
+ return R(() => t.expandStatus, (a, p) => {
546
+ a !== p && (y.value = a);
584
547
  }), _(() => {
585
- n && n.value && (r.value = n.value.parentElement);
586
- }), () => P("div", {
587
- class: u.value,
548
+ n && n.value && (o.value = n.value.parentElement);
549
+ }), () => M("div", {
550
+ class: f.value,
588
551
  ref: n
589
- }, [c(), o(), i()]);
552
+ }, [c(), r(), l()]);
590
553
  }
591
554
  });
592
- function Oe() {
555
+ function ke() {
593
556
  function t(e) {
594
- var a, l;
557
+ var s, i;
595
558
  if (!e)
596
559
  return !1;
597
- const n = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
560
+ const n = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
598
561
  if (!n)
599
562
  return !1;
600
- const r = (l = n.schema.appearance) == null ? void 0 : l.class;
563
+ const o = (i = n.schema.appearance) == null ? void 0 : i.class;
601
564
  if (e.controlCategory === "input" || e.controlType === "form-group") {
602
- const h = n.schema.type, v = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
603
- if (n.schema.type !== "response-layout-item" && !v)
565
+ const y = n.schema.type, m = (y === "response-form" || y === "content-container") && o && o.includes("farris-form");
566
+ if (n.schema.type !== "response-layout-item" && !m)
604
567
  return !1;
605
568
  }
606
569
  return e.controlType !== "field-set";
@@ -609,7 +572,7 @@ function Oe() {
609
572
  basalDragulaRuleForContainer: t
610
573
  };
611
574
  }
612
- const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/dragging-rules.schema.json", Ne = "Dragging Rules", $e = "The rules of designer canvas", Fe = "object", He = {
575
+ const De = "https://json-schema.org/draft/2020-12/schema", Ee = "https://farris-design.gitee.io/dragging-rules.schema.json", Oe = "Dragging Rules", xe = "The rules of designer canvas", Ne = "object", Fe = {
613
576
  "f-page": {
614
577
  description: "The root class of page designed by farris.",
615
578
  type: "object",
@@ -1028,6 +991,80 @@ const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-
1028
991
  "f-list-nav-left": {
1029
992
  description: "",
1030
993
  type: "object"
994
+ },
995
+ "f-struct-data-grid-in-nav": {
996
+ description: "",
997
+ type: "object",
998
+ properties: {
999
+ contents: {
1000
+ type: "object",
1001
+ properties: {
1002
+ "f-section-form": {
1003
+ description: "",
1004
+ type: "object",
1005
+ properties: {
1006
+ rules: {
1007
+ type: "object",
1008
+ properties: {
1009
+ canAccept: {
1010
+ type: "boolean",
1011
+ const: !1
1012
+ },
1013
+ fixed: {
1014
+ type: "boolean",
1015
+ const: !0
1016
+ },
1017
+ hidePadding: {
1018
+ type: "boolean",
1019
+ const: !0
1020
+ }
1021
+ }
1022
+ }
1023
+ }
1024
+ },
1025
+ "f-section-grid": {
1026
+ description: "",
1027
+ type: "object",
1028
+ properties: {
1029
+ rules: {
1030
+ type: "object",
1031
+ properties: {
1032
+ canAccept: {
1033
+ type: "boolean",
1034
+ const: !1
1035
+ },
1036
+ fixed: {
1037
+ type: "boolean",
1038
+ const: !0
1039
+ },
1040
+ hidePadding: {
1041
+ type: "boolean",
1042
+ const: !0
1043
+ }
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1048
+ }
1049
+ },
1050
+ rules: {
1051
+ type: "object",
1052
+ properties: {
1053
+ canAccept: {
1054
+ type: "boolean",
1055
+ const: !1
1056
+ },
1057
+ fixed: {
1058
+ type: "boolean",
1059
+ const: !0
1060
+ },
1061
+ hidePadding: {
1062
+ type: "boolean",
1063
+ const: !0
1064
+ }
1065
+ }
1066
+ }
1067
+ }
1031
1068
  }
1032
1069
  }
1033
1070
  }
@@ -1173,163 +1210,269 @@ const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-
1173
1210
  description: "",
1174
1211
  type: "object"
1175
1212
  }
1176
- }, xe = [], Be = {
1177
- $schema: Ee,
1178
- $id: ke,
1179
- title: Ne,
1180
- description: $e,
1181
- type: Fe,
1182
- properties: He,
1183
- required: xe
1184
- }, H = /* @__PURE__ */ new Map();
1185
- function Le() {
1186
- function t(o, i, s, f) {
1187
- var g;
1188
- if (typeof s == "number")
1189
- return ((g = f[o]) == null ? void 0 : g.length) === s;
1190
- if (typeof s == "object") {
1191
- const y = Object.keys(s)[0], j = s[y];
1192
- if (y === "not")
1193
- return Number(f[o].length) !== Number(j);
1194
- if (y === "moreThan")
1195
- return Number(f[o].length) >= Number(j);
1196
- if (y === "lessThan")
1197
- return Number(f[o].length) <= Number(j);
1213
+ }, Be = {
1214
+ $schema: De,
1215
+ $id: Ee,
1216
+ title: Oe,
1217
+ description: xe,
1218
+ type: Ne,
1219
+ properties: Fe
1220
+ }, B = /* @__PURE__ */ new Map();
1221
+ function $e() {
1222
+ function t(r, l, a, p) {
1223
+ var j;
1224
+ if (typeof a == "number")
1225
+ return ((j = p[r]) == null ? void 0 : j.length) === a;
1226
+ if (typeof a == "object") {
1227
+ const d = Object.keys(a)[0], v = a[d];
1228
+ if (d === "not")
1229
+ return Number(p[r].length) !== Number(v);
1230
+ if (d === "moreThan")
1231
+ return Number(p[r].length) >= Number(v);
1232
+ if (d === "lessThan")
1233
+ return Number(p[r].length) <= Number(v);
1198
1234
  }
1199
1235
  return !1;
1200
1236
  }
1201
- function e(o, i, s, f) {
1202
- return typeof s == "boolean" ? f.childrenClassList.includes(i) === !!s : !1;
1237
+ function e(r, l, a, p) {
1238
+ return typeof a == "boolean" ? p.childrenClassList.includes(l) === !!a : !1;
1203
1239
  }
1204
- function n(o, i, s, f) {
1205
- return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
1240
+ function n(r, l, a, p) {
1241
+ return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1206
1242
  }
1207
- function r(o, i, s, f) {
1208
- return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
1243
+ function o(r, l, a, p) {
1244
+ return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1209
1245
  }
1210
- const a = /* @__PURE__ */ new Map([
1246
+ const s = /* @__PURE__ */ new Map([
1211
1247
  ["length", t],
1212
1248
  ["hasChildren", e],
1213
- ["hasSibling", r],
1249
+ ["hasSibling", o],
1214
1250
  ["hasParent", n]
1215
1251
  ]);
1216
- function l(o, i) {
1217
- const s = o;
1218
- return typeof i == "number" ? [{ target: s, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((f) => {
1219
- if (f === "length")
1220
- return { target: s, operator: "length", param: null, value: i[f] };
1221
- const g = f, y = i[f];
1222
- return { target: s, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: g, value: y };
1252
+ function i(r, l) {
1253
+ const a = r;
1254
+ return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((p) => {
1255
+ if (p === "length")
1256
+ return { target: a, operator: "length", param: null, value: l[p] };
1257
+ const j = p, d = l[p];
1258
+ return { target: a, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: j, value: d };
1223
1259
  }) : [];
1224
1260
  }
1225
- function h(o, i) {
1226
- if (a.has(o.operator)) {
1227
- const s = a.get(o.operator);
1228
- return s && s(o.target, o.param, o.value, i) || !1;
1261
+ function y(r, l) {
1262
+ if (s.has(r.operator)) {
1263
+ const a = s.get(r.operator);
1264
+ return a && a(r.target, r.param, r.value, l) || !1;
1229
1265
  }
1230
1266
  return !1;
1231
1267
  }
1232
- function v(o, i) {
1233
- return Object.keys(o).reduce((y, j) => {
1234
- const M = l(j, o[j]);
1235
- return y.push(...M), y;
1236
- }, []).reduce((y, j) => y && h(j, i), !0);
1268
+ function m(r, l) {
1269
+ return Object.keys(r).reduce((d, v) => {
1270
+ const S = i(v, r[v]);
1271
+ return d.push(...S), d;
1272
+ }, []).reduce((d, v) => d && y(v, l), !0);
1237
1273
  }
1238
- function C(o, i) {
1239
- const s = Object.keys(o), f = s.includes("allOf"), g = s.includes("anyOf"), y = f || g, b = (y ? o[y ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((T) => v(T, i));
1240
- return f ? !b.includes(!1) : b.includes(!0);
1274
+ function C(r, l) {
1275
+ const a = Object.keys(r), p = a.includes("allOf"), j = a.includes("anyOf"), d = p || j, h = (d ? r[d ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((A) => m(A, l));
1276
+ return p ? !h.includes(!1) : h.includes(!0);
1241
1277
  }
1242
- function c(o, i) {
1243
- const s = o.const;
1244
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s, i) : !1 : !1;
1278
+ function c(r, l) {
1279
+ const a = r.const;
1280
+ return a ? typeof a == "boolean" ? a : typeof a == "object" ? C(a, l) : !1 : !1;
1245
1281
  }
1246
- function d(o) {
1247
- return (i) => {
1248
- const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
1249
- return o && o.properties && Object.keys(o.properties).reduce((f, g) => {
1250
- const y = o.properties[g];
1251
- return f[g] = c(y, i), f;
1252
- }, s), s;
1282
+ function b(r) {
1283
+ return (l) => {
1284
+ const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
1285
+ return r && r.properties && Object.keys(r.properties).reduce((p, j) => {
1286
+ const d = r.properties[j];
1287
+ return p[j] = c(d, l), p;
1288
+ }, a), a;
1253
1289
  };
1254
1290
  }
1255
- function u(o, i, s) {
1256
- if (i.type === "object" && i.properties) {
1257
- const { rules: f, contents: g } = i.properties;
1258
- s.set(o, d(f)), g && Object.keys(g.properties).forEach(
1259
- (y) => u(y, g.properties[y], s)
1291
+ function f(r, l, a) {
1292
+ if (l.type === "object" && l.properties) {
1293
+ const { rules: p, contents: j } = l.properties;
1294
+ a.set(r, b(p)), j && Object.keys(j.properties).forEach(
1295
+ (d) => f(d, j.properties[d], a)
1260
1296
  );
1261
1297
  }
1262
1298
  }
1263
- function p() {
1264
- const { properties: o } = Be;
1265
- Object.keys(o).forEach((i) => {
1266
- u(i, o[i], H);
1299
+ function u() {
1300
+ const { properties: r } = Be;
1301
+ Object.keys(r).forEach((l) => {
1302
+ f(l, r[l], B);
1267
1303
  });
1268
1304
  }
1269
- function m(o, i) {
1270
- const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1271
- return H.has(o) ? H.get(o)(i) : s;
1305
+ function g(r, l) {
1306
+ const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
1307
+ return B.has(r) ? B.get(r)(l) : a;
1272
1308
  }
1273
- return p(), { getRuleValue: m };
1309
+ return u(), { getRuleValue: g };
1274
1310
  }
1275
- function Ve(t, e) {
1276
- const n = S(!1), r = S(!1), a = Le();
1277
- let l = !0, h = !1, v, C = !1;
1278
- function c(i) {
1279
- return !(!Oe().basalDragulaRuleForContainer(i) || !l);
1311
+ const He = {
1312
+ title: "section",
1313
+ description: "A Farris Container Component",
1314
+ type: "object",
1315
+ categories: {
1316
+ basic: {
1317
+ title: "基本信息",
1318
+ description: "Basic Infomation",
1319
+ properties: {
1320
+ id: {
1321
+ title: "标识",
1322
+ type: "string",
1323
+ description: "The identifier of a component.",
1324
+ readonly: !0
1325
+ },
1326
+ type: {
1327
+ title: "组件类型",
1328
+ type: "enum",
1329
+ description: "The type of a component.",
1330
+ editor: {
1331
+ type: "combo-list",
1332
+ textField: "value",
1333
+ valueField: "key",
1334
+ data: [
1335
+ {
1336
+ key: "section",
1337
+ value: "分组面板"
1338
+ }
1339
+ ]
1340
+ }
1341
+ },
1342
+ mainTitle: {
1343
+ title: "主标题",
1344
+ type: "string",
1345
+ description: "",
1346
+ visible: {
1347
+ showHeader: !0
1348
+ }
1349
+ },
1350
+ subTitle: {
1351
+ title: "副标题",
1352
+ type: "string",
1353
+ description: "",
1354
+ visible: {
1355
+ showHeader: !0
1356
+ }
1357
+ }
1358
+ },
1359
+ setPropertyRelates(t, e) {
1360
+ if (t)
1361
+ switch (t && t.propertyID) {
1362
+ case "mainTitle": {
1363
+ t.needRefreshControlTree = !0;
1364
+ break;
1365
+ }
1366
+ }
1367
+ }
1368
+ },
1369
+ appearance: {
1370
+ title: "样式",
1371
+ description: "Appearance",
1372
+ properties: {
1373
+ class: {
1374
+ description: "组件的CSS样式",
1375
+ title: "class样式"
1376
+ },
1377
+ style: {
1378
+ description: "组件的内容样式",
1379
+ title: "style样式"
1380
+ },
1381
+ showHeader: {
1382
+ title: "显示标题区域",
1383
+ type: "boolean",
1384
+ description: ""
1385
+ },
1386
+ fill: {
1387
+ title: "填充内容区域",
1388
+ type: "boolean",
1389
+ description: "To fill the space of parent container in flex layout."
1390
+ },
1391
+ enableAccordion: {
1392
+ title: "允许收折",
1393
+ type: "boolean",
1394
+ description: "",
1395
+ visible: {
1396
+ showHeader: !0
1397
+ }
1398
+ }
1399
+ }
1400
+ },
1401
+ extends: {
1402
+ title: "扩展",
1403
+ description: "",
1404
+ properties: {
1405
+ contentClass: {
1406
+ title: "内容区域样式",
1407
+ type: "string",
1408
+ description: ""
1409
+ }
1410
+ }
1411
+ }
1280
1412
  }
1281
- function d() {
1413
+ };
1414
+ function Le(t, e) {
1415
+ const n = w(!1), o = w(!1), s = $e();
1416
+ let i = !0, y = !1, m, C = !1;
1417
+ function c(a) {
1418
+ return He;
1419
+ }
1420
+ function b(a) {
1421
+ return !(!ke().basalDragulaRuleForContainer(a) || !i);
1422
+ }
1423
+ function f() {
1282
1424
  return !C;
1283
1425
  }
1284
1426
  function u() {
1285
1427
  return !C;
1286
1428
  }
1287
- function p() {
1288
- return h;
1429
+ function g() {
1430
+ return y;
1289
1431
  }
1290
- function m(i) {
1432
+ function r(a) {
1291
1433
  }
1292
- function o() {
1293
- n.value = !1, r.value = !1, C = !1, l = !0;
1294
- const i = t, s = i.appearance && i.appearance.class || "", f = s ? s.split(" ") : [], g = i.contents || [], y = g.length ? g[0] : null, j = y && y.appearance && y.appearance.class || "", M = j ? j.split(" ") : [], b = g.length ? g.reduce((z, F) => {
1295
- const q = F && F.appearance ? F.appearance.class : "", U = q ? q.split(" ") : [];
1296
- return z.push(...U), z;
1297
- }, []) : [], A = e, T = A && A.appearance && A.appearance.class || "", O = T ? T.split(" ") : [];
1298
- v = {
1299
- componentClass: s,
1300
- componentClassList: f,
1301
- childContents: g,
1302
- firstChildContent: y,
1303
- firstChildClass: j,
1304
- firstChildClassList: M,
1434
+ function l() {
1435
+ n.value = !1, o.value = !1, C = !1, i = !0;
1436
+ const a = t, p = a.appearance && a.appearance.class || "", j = p ? p.split(" ") : [], d = a.contents || [], v = d.length ? d[0] : null, S = v && v.appearance && v.appearance.class || "", h = S ? S.split(" ") : [], P = d.length ? d.reduce((V, F) => {
1437
+ const q = F && F.appearance ? F.appearance.class : "", Y = q ? q.split(" ") : [];
1438
+ return V.push(...Y), V;
1439
+ }, []) : [], A = e, k = A && A.appearance && A.appearance.class || "", E = k ? k.split(" ") : [];
1440
+ m = {
1441
+ componentClass: p,
1442
+ componentClassList: j,
1443
+ childContents: d,
1444
+ firstChildContent: v,
1445
+ firstChildClass: S,
1446
+ firstChildClassList: h,
1305
1447
  parent: A,
1306
- parentClass: T,
1307
- parentClassList: O,
1308
- children: g,
1309
- childrenClassList: b
1448
+ parentClass: k,
1449
+ parentClassList: E,
1450
+ children: d,
1451
+ childrenClassList: P
1310
1452
  };
1311
- const { canAccept: k, fixed: D, hidePadding: $ } = a.getRuleValue(f[0], v);
1312
- return l = k, h = $, C = D, !0;
1453
+ const { canAccept: D, fixed: N, hidePadding: X } = s.getRuleValue(j[0], m);
1454
+ return i = D, y = X, C = N, !0;
1313
1455
  }
1314
1456
  return {
1315
- canAccepts: c,
1316
- checkCanDeleteComponent: d,
1457
+ canAccepts: b,
1458
+ checkCanDeleteComponent: f,
1317
1459
  checkCanMoveComponent: u,
1318
- hideNestedPaddingInDesginerView: p,
1319
- onAcceptMovedChildElement: m,
1320
- resolveComponentContext: o,
1460
+ hideNestedPaddingInDesginerView: g,
1461
+ onAcceptMovedChildElement: r,
1462
+ resolveComponentContext: l,
1321
1463
  triggerBelongedComponentToMoveWhenMoved: n,
1322
- triggerBelongedComponentToDeleteWhenDeleted: r
1464
+ triggerBelongedComponentToDeleteWhenDeleted: o,
1465
+ getPropsConfig: c
1323
1466
  };
1324
1467
  }
1325
1468
  function ze(t, e, n) {
1326
- var M;
1327
- function r() {
1469
+ var S;
1470
+ function o() {
1328
1471
  n != null && n.resolveComponentContext && n.resolveComponentContext();
1329
1472
  }
1330
- r();
1331
- const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", h = S();
1332
- function v() {
1473
+ o();
1474
+ const s = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", y = w();
1475
+ function m() {
1333
1476
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1334
1477
  }
1335
1478
  function C() {
@@ -1338,137 +1481,137 @@ function ze(t, e, n) {
1338
1481
  function c() {
1339
1482
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1340
1483
  }
1341
- function d() {
1484
+ function b() {
1342
1485
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1343
1486
  }
1344
- function u(b) {
1345
- if (!b || !b.value)
1487
+ function f(h) {
1488
+ if (!h || !h.value)
1346
1489
  return null;
1347
- if (b.value.schema && b.value.schema.type === "component")
1348
- return b.value;
1349
- const A = S(b == null ? void 0 : b.value.parent), T = u(A);
1350
- return T || null;
1490
+ if (h.value.schema && h.value.schema.type === "component")
1491
+ return h.value;
1492
+ const P = w(h == null ? void 0 : h.value.parent), A = f(P);
1493
+ return A || null;
1351
1494
  }
1352
- function p(b = e) {
1353
- const { componentInstance: A, designerItemElementRef: T } = b;
1354
- return !A || !A.value ? null : A.value.canMove ? T : p(b.parent);
1495
+ function u(h = e) {
1496
+ const { componentInstance: P, designerItemElementRef: A } = h;
1497
+ return !P || !P.value ? null : P.value.canMove ? A : u(h.parent);
1355
1498
  }
1356
- function m(b) {
1357
- return !!n && n.canAccepts(b);
1499
+ function g(h) {
1500
+ return !!n && n.canAccepts(h);
1358
1501
  }
1359
- function o() {
1502
+ function r() {
1360
1503
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1361
1504
  }
1362
- function i() {
1505
+ function l() {
1363
1506
  }
1364
- function s(b, A) {
1365
- A && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(A);
1507
+ function a(h, P) {
1508
+ P && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(P);
1366
1509
  }
1367
- function f(b) {
1368
- const { componentType: A } = b;
1369
- let T = x(A, b);
1370
- n && n.onResolveNewComponentSchema && (T = n.onResolveNewComponentSchema(b, T));
1371
- const O = A.toLowerCase().replace("-", "_");
1372
- return T && !T.id && T.type === A && (T.id = `${O}_${Math.random().toString().slice(2, 6)}`), T;
1510
+ function p(h, P) {
1511
+ const { componentType: A } = h;
1512
+ let k = $(A, h, P);
1513
+ n && n.onResolveNewComponentSchema && (k = n.onResolveNewComponentSchema(h, k));
1514
+ const E = A.toLowerCase().replace("-", "_");
1515
+ return k && !k.id && k.type === A && (k.id = `${E}_${Math.random().toString().slice(2, 6)}`), k;
1373
1516
  }
1374
- function g(b, A) {
1375
- const T = String(b.getAttribute("data-controltype")), O = b.getAttribute("data-feature"), k = O ? JSON.parse(O) : {};
1376
- k.parentComponentInstance = h.value;
1377
- let D = x(T, k);
1378
- n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(b, A, D));
1379
- const $ = T.toLowerCase().replace("-", "_");
1380
- return D && !D.id && D.type === T && (D.id = `${$}_${Math.random().toString().slice(2, 6)}`), D;
1517
+ function j(h, P) {
1518
+ const A = String(h.getAttribute("data-controltype")), k = h.getAttribute("data-feature"), E = k ? JSON.parse(k) : {};
1519
+ E.parentComponentInstance = y.value;
1520
+ let D = $(A, E);
1521
+ n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, P, D));
1522
+ const N = A.toLowerCase().replace("-", "_");
1523
+ return D && !D.id && D.type === A && (D.id = `${N}_${Math.random().toString().slice(2, 6)}`), D;
1381
1524
  }
1382
- function y(b) {
1525
+ function d(h) {
1383
1526
  }
1384
- function j(...b) {
1527
+ function v(...h) {
1385
1528
  if (n && n.getPropsConfig)
1386
- return n.getPropsConfig(...b);
1529
+ return n.getPropsConfig(...h);
1387
1530
  }
1388
- return h.value = {
1389
- canMove: v(),
1531
+ return y.value = {
1532
+ canMove: m(),
1390
1533
  canSelectParent: C(),
1391
1534
  canDelete: c(),
1392
- canNested: !d(),
1535
+ canNested: !b(),
1393
1536
  contents: e == null ? void 0 : e.schema.contents,
1394
1537
  elementRef: t,
1395
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
1538
+ parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
1396
1539
  schema: e == null ? void 0 : e.schema,
1397
- styles: a,
1398
- designerClass: l,
1399
- canAccepts: m,
1400
- getBelongedComponentInstance: u,
1401
- getDraggableDesignItemElement: p,
1402
- getDraggingDisplayText: o,
1403
- getPropConfig: j,
1404
- getDragScopeElement: i,
1405
- onAcceptMovedChildElement: s,
1406
- onAcceptNewChildElement: g,
1407
- onChildElementMovedOut: y,
1408
- addNewChildComponentSchema: f,
1409
- updateDragAndDropRules: r,
1410
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || S(!1),
1411
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
1412
- }, h;
1540
+ styles: s,
1541
+ designerClass: i,
1542
+ canAccepts: g,
1543
+ getBelongedComponentInstance: f,
1544
+ getDraggableDesignItemElement: u,
1545
+ getDraggingDisplayText: r,
1546
+ getPropConfig: v,
1547
+ getDragScopeElement: l,
1548
+ onAcceptMovedChildElement: a,
1549
+ onAcceptNewChildElement: j,
1550
+ onChildElementMovedOut: d,
1551
+ addNewChildComponentSchema: p,
1552
+ updateDragAndDropRules: o,
1553
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || w(!1),
1554
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
1555
+ }, y;
1413
1556
  }
1414
- const qe = /* @__PURE__ */ W({
1557
+ const Ve = /* @__PURE__ */ G({
1415
1558
  name: "FSectionDesign",
1416
1559
  props: L,
1417
1560
  emits: [],
1418
1561
  setup(t, e) {
1419
- var j;
1420
- const n = S(), r = S();
1421
- let a = S();
1422
- const l = Y("design-item-context"), h = Ve(l.schema, (j = l.parent) == null ? void 0 : j.schema), v = ze(n, l, h);
1423
- v.value.styles = "display: inherit;", _(() => {
1424
- n.value.componentInstance = v;
1425
- }), e.expose(v.value);
1426
- const C = S(t.customClass), c = w(() => t.enableAccordion), d = S(t.expandStatus), u = w(() => t.buttonPosition), p = S(!1), m = Q(t, e, d, r, a, p), o = V(t, e), i = w(() => {
1427
- const M = {
1562
+ var v;
1563
+ const n = w(), o = w();
1564
+ let s = w();
1565
+ const i = I("design-item-context"), y = Le(i.schema, (v = i.parent) == null ? void 0 : v.schema), m = ze(n, i, y);
1566
+ m.value.styles = "display: inherit;", _(() => {
1567
+ n.value.componentInstance = m;
1568
+ }), e.expose(m.value);
1569
+ const C = w(t.customClass), c = T(() => t.enableAccordion), b = w(t.expandStatus), f = T(() => t.buttonPosition), u = w(!1), g = Q(t, e, b, o, s, u), r = z(t, e), l = T(() => {
1570
+ const S = {
1428
1571
  "f-section": !0,
1429
1572
  "f-section-accordion": c.value === "default",
1430
- "f-state-collapse": (c.value === "default" || c.value === "custom") && !d.value,
1573
+ "f-state-collapse": (c.value === "default" || c.value === "custom") && !b.value,
1431
1574
  "f-section-custom-accordion": c.value === "custom",
1432
1575
  "f-section-fill": t.fill,
1433
- "f-section-maximize": p.value,
1576
+ "f-section-maximize": u.value,
1434
1577
  "f-utils-fill": !0,
1435
1578
  "p-0": !0
1436
1579
  };
1437
- return E(M, C.value);
1438
- }), s = w(() => E({
1580
+ return O(S, C.value);
1581
+ }), a = T(() => O({
1439
1582
  "f-section-content": !0,
1440
1583
  "drag-container": !0
1441
- }, t.contentClass)), f = w(() => E({
1584
+ }, t.contentClass)), p = T(() => O({
1442
1585
  "f-section-extend": !0
1443
- }, f.value));
1444
- function g() {
1445
- return e.slots.extend && P("div", {
1446
- class: f.value
1586
+ }, p.value));
1587
+ function j() {
1588
+ return e.slots.extend && M("div", {
1589
+ class: p.value
1447
1590
  }, [e.slots.extend()]);
1448
1591
  }
1449
- function y() {
1450
- return P("div", {
1451
- class: s.value,
1592
+ function d() {
1593
+ return M("div", {
1594
+ class: a.value,
1452
1595
  ref: n,
1453
- "data-dragref": `${l.schema.id}-container`
1454
- }, [u.value === "inContent" && o(), e.slots.default && e.slots.default()]);
1596
+ "data-dragref": `${i.schema.id}-container`
1597
+ }, [f.value === "inContent" && r(), e.slots.default && e.slots.default()]);
1455
1598
  }
1456
- return () => P("div", {
1457
- class: i.value,
1458
- ref: r
1459
- }, [m(), g(), y()]);
1599
+ return () => M("div", {
1600
+ class: l.value,
1601
+ ref: o
1602
+ }, [g(), j(), d()]);
1460
1603
  }
1461
1604
  });
1462
- N.register = (t, e, n, r) => {
1463
- t.section = N, e.section = G;
1605
+ x.register = (t, e, n, o) => {
1606
+ t.section = x, e.section = Z;
1464
1607
  };
1465
- N.registerDesigner = (t, e, n) => {
1466
- t.section = qe, e.section = G;
1608
+ x.registerDesigner = (t, e, n) => {
1609
+ t.section = Ve, e.section = Z;
1467
1610
  };
1468
- const Qe = I(N);
1611
+ const Ue = te(x);
1469
1612
  export {
1470
- N as Section,
1471
- Qe as default,
1472
- G as propsResolver,
1613
+ x as Section,
1614
+ Ue as default,
1615
+ Z as propsResolver,
1473
1616
  L as sectionProps
1474
1617
  };