@farris/ui-vue 1.2.9 → 1.3.1

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 (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6193 -4702
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4562 -3294
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  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/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,100 +1,100 @@
1
- import { ref as w, computed as T, createVNode as M, defineComponent as W, watch as Y, onMounted as G, inject as R } from "vue";
2
- import { cloneDeep as I } from "lodash-es";
3
- import K from "../response-toolbar/index.esm.js";
1
+ import { ref as v, computed as h, createVNode as b, defineComponent as z, watch as U, onMounted as H, inject as N } from "vue";
2
+ import { isPlainObject as O, cloneDeep as x } from "lodash-es";
3
+ import _ from "../response-toolbar/index.esm.js";
4
4
  import "bignumber.js";
5
- import { withInstall as ee } from "../common/index.esm.js";
6
- const _ = {}, J = {};
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]) : I(e[m].default)), y), {});
9
- return (!s || !o.find((y) => y == "id")) && (i.id = `${n}-${Date.now()}`), i;
5
+ import { withInstall as Z } from "../common/index.esm.js";
6
+ const V = {}, $ = {};
7
+ function B(n) {
8
+ const { properties: e, title: t, ignore: a } = n, r = a && Array.isArray(a), i = Object.keys(e).reduce((o, p) => ((!r || !a.find((f) => f == p)) && (o[p] = e[p].type === "object" && e[p].properties ? B(e[p]) : x(e[p].default)), o), {});
9
+ return t && (!r || !a.find((o) => o == "id")) && (i.id = `${t}-${Date.now()}`), i;
10
10
  }
11
- function $(t, e = {}, n) {
12
- const o = _[t];
13
- if (o) {
14
- let s = H(o);
15
- const i = J[t];
16
- return s = i ? i({ getSchemaByType: $ }, s, e, n) : s, s;
11
+ function q(n, e = {}, t) {
12
+ const a = V[n];
13
+ if (a) {
14
+ let r = B(a);
15
+ const i = $[n];
16
+ return r = i ? i({ getSchemaByType: q }, r, e, t) : r, r;
17
17
  }
18
18
  return null;
19
19
  }
20
- function te(t, e) {
21
- const n = H(e);
22
- return Object.keys(t).reduce((o, s) => (o[s] && typeof o[s] == "object" ? Object.assign(o[s], t[s]) : o[s] = t[s], o), n), n;
20
+ function J(n, e) {
21
+ const t = B(e);
22
+ return Object.keys(n).reduce((a, r) => (a[r] && O(a[r]) && O(n[r]) ? Object.assign(a[r], n[r]) : a[r] = n[r], a), t), t;
23
23
  }
24
- function ne(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);
24
+ function Q(n, e) {
25
+ return Object.keys(n).filter((a) => n[a] != null).reduce((a, r) => {
26
+ if (e.has(r)) {
27
+ const i = e.get(r);
28
28
  if (typeof i == "string")
29
- o[i] = t[s];
29
+ a[i] = n[r];
30
30
  else {
31
- const y = i(s, t[s], t);
32
- Object.assign(o, y);
31
+ const o = i(r, n[r], n);
32
+ Object.assign(a, o);
33
33
  }
34
34
  } else
35
- o[s] = t[s];
36
- return o;
35
+ a[r] = n[r];
36
+ return a;
37
37
  }, {});
38
38
  }
39
- function oe(t, e, n = /* @__PURE__ */ new Map()) {
40
- const o = te(t, e);
41
- return ne(o, n);
39
+ function X(n, e, t = /* @__PURE__ */ new Map()) {
40
+ const a = J(n, e);
41
+ return Q(a, t);
42
42
  }
43
- function re(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);
43
+ function Y(n = {}) {
44
+ function e(s, c, l, u) {
45
+ if (typeof l == "number")
46
+ return u[s].length === l;
47
+ if (typeof l == "object") {
48
+ const d = Object.keys(l)[0], y = l[d];
49
+ if (d === "not")
50
+ return Number(u[s].length) !== Number(y);
51
+ if (d === "moreThan")
52
+ return Number(u[s].length) >= Number(y);
53
+ if (d === "lessThan")
54
+ return Number(u[s].length) <= Number(y);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function n(c, b, f, u) {
59
- return u[c] && u[c].propertyValue && String(u[c].propertyValue.value) === String(f);
58
+ function t(s, c, l, u) {
59
+ return u[s] && u[s].propertyValue && String(u[s].propertyValue.value) === String(l);
60
60
  }
61
- const o = /* @__PURE__ */ new Map([
61
+ const a = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
- ["getProperty", n]
63
+ ["getProperty", t]
64
64
  ]);
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) => {
65
+ Object.keys(n).reduce((s, c) => (s.set(c, n[c]), s), a);
66
+ function r(s, c) {
67
+ const l = s;
68
+ return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((u) => {
69
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 };
70
+ return { target: l, operator: "length", param: null, value: c[u] };
71
+ const d = u, y = c[u];
72
+ return { target: l, operator: "getProperty", param: d, value: y };
73
73
  }) : [];
74
74
  }
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;
75
+ function i(s) {
76
+ return Object.keys(s).reduce((l, u) => {
77
+ const d = r(u, s[u]);
78
+ return l.push(...d), l;
79
79
  }, []);
80
80
  }
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;
81
+ function o(s, c) {
82
+ if (a.has(s.operator)) {
83
+ const l = a.get(s.operator);
84
+ return l && l(s.target, s.param, s.value, c) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function m(c, b) {
89
- return i(c).reduce((g, r) => g && y(r, b), !0);
88
+ function p(s, c) {
89
+ return i(s).reduce((d, y) => d && o(y, c), !0);
90
90
  }
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);
91
+ function f(s, c) {
92
+ const l = Object.keys(s), u = l.includes("allOf"), d = l.includes("anyOf"), y = u || d, S = (y ? s[y ? u ? "allOf" : "anyOf" : "allOf"] : [s]).map((T) => p(T, c));
93
+ return u ? !S.includes(!1) : S.includes(!0);
94
94
  }
95
- return { parseValueSchema: C };
95
+ return { parseValueSchema: f };
96
96
  }
97
- const ae = {
97
+ const k = {
98
98
  button: { type: "button", name: "按钮", icon: "Button" },
99
99
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
100
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -131,66 +131,67 @@ const ae = {
131
131
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
132
132
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
133
133
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
135
- }, se = {}, ce = {};
136
- re();
137
- function ie(t, e, n = /* @__PURE__ */ new Map(), o = (y, m, C) => m, s = {}, i = (y) => y) {
138
- return _[e.title] = e, J[e.title] = o, se[e.title] = s, ce[e.title] = i, (y = {}) => {
139
- const m = oe(y, e, n), C = Object.keys(t).reduce((c, b) => (c[b] = t[b].default, c), {});
140
- return Object.assign(C, m);
134
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
135
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
136
+ }, K = {}, I = {};
137
+ Y();
138
+ function ee(n, e, t = /* @__PURE__ */ new Map(), a = (o, p, f) => p, r = {}, i = (o) => o) {
139
+ return V[e.title] = e, $[e.title] = a, K[e.title] = r, I[e.title] = i, (o = {}) => {
140
+ const p = X(o, e, t), f = Object.keys(n).reduce((s, c) => (s[c] = n[c].default, s), {});
141
+ return Object.assign(f, p);
141
142
  };
142
143
  }
143
- function le(t, e) {
144
+ function te(n, e) {
144
145
  return { customClass: e.class, customStyle: e.style };
145
146
  }
146
- function pe(t, e, n) {
147
- return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
147
+ function ne(n, e, t) {
148
+ return e ? { enableAccordion: t.accordionMode } : { enableAccordion: "" };
148
149
  }
149
- function ue(t, e) {
150
- return e && e.contents && e.contents.length && e.contents.forEach((n) => {
151
- n.title && (n.text = n.title);
150
+ function oe(n, e) {
151
+ return e && e.contents && e.contents.length && e.contents.forEach((t) => {
152
+ t.title && (t.text = t.title);
152
153
  }), {
153
154
  buttons: e.contents,
154
155
  buttonPosition: e.position
155
156
  };
156
157
  }
157
- const fe = /* @__PURE__ */ new Map([
158
- ["appearance", le],
158
+ const ae = /* @__PURE__ */ new Map([
159
+ ["appearance", te],
159
160
  ["expanded", "expandStatus"],
160
- ["enableAccordion", pe],
161
- ["toolbar", ue]
161
+ ["enableAccordion", ne],
162
+ ["toolbar", oe]
162
163
  ]);
163
- function de(t, e, n, o) {
164
- const s = Math.random().toString().slice(2, 6), i = n.parentComponentInstance;
164
+ function re(n, e, t, a) {
165
+ const r = Math.random().toString().slice(2, 6), i = t.parentComponentInstance;
165
166
  Object.assign(e, {
166
- id: `section-${s}`,
167
+ id: `section-${r}`,
167
168
  appearance: {
168
169
  class: "f-section-in-mainsubcard"
169
170
  },
170
171
  enableAccordion: !1,
171
172
  mainTitle: e.mainTitle || "标题"
172
173
  });
173
- const y = t.getSchemaByType("content-container");
174
- Object.assign(y, {
175
- id: `container-${s}`,
174
+ const o = n.getSchemaByType("content-container");
175
+ Object.assign(o, {
176
+ id: `container-${r}`,
176
177
  appearance: {
177
178
  class: "f-struct-wrapper"
178
179
  },
179
180
  contents: [e]
180
181
  });
181
- const m = i.schema;
182
- switch (m && m.type) {
183
- case ae.splitter.type: {
182
+ const p = i.schema;
183
+ switch (p && p.type) {
184
+ case k["splitter-pane"].type: {
184
185
  e.appearance.class = "f-section-in-main";
185
186
  break;
186
187
  }
187
188
  }
188
- return y;
189
+ return o;
189
190
  }
190
- function ye(t, e, n, o) {
191
- return n.parentComponentInstance ? de(t, e, n) : e;
191
+ function ie(n, e, t, a) {
192
+ return t.parentComponentInstance ? re(n, e, t) : e;
192
193
  }
193
- const be = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-design.gitee.io/section.schema.json", he = "section", ge = "A Farris Container Component", Ce = "object", ve = {
194
+ const se = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/section.schema.json", le = "section", ue = "A Farris Container Component", pe = "object", fe = {
194
195
  id: {
195
196
  description: "The unique identifier for a Section",
196
197
  type: "string"
@@ -315,19 +316,19 @@ const be = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
315
316
  },
316
317
  default: null
317
318
  }
318
- }, je = [
319
+ }, de = [
319
320
  "id",
320
321
  "type",
321
322
  "contents"
322
- ], Te = {
323
- $schema: be,
324
- $id: me,
325
- title: he,
326
- description: ge,
327
- type: Ce,
328
- properties: ve,
329
- required: je
330
- }, L = {
323
+ ], me = {
324
+ $schema: se,
325
+ $id: ce,
326
+ title: le,
327
+ description: ue,
328
+ type: pe,
329
+ properties: fe,
330
+ required: de
331
+ }, F = {
331
332
  /** 设置内容区域样式 */
332
333
  contentClass: { type: String, default: "" },
333
334
  /** 自定义样式 */
@@ -371,25 +372,25 @@ const be = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
371
372
  // toolbarPosition: { type: String, default: '' },
372
373
  // toolbarButtons: { type: Array<object>, default: [] },
373
374
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
374
- }, U = ie(L, Te, fe, ye);
375
- function Ae(t, e, n) {
376
- let o;
377
- function s() {
378
- !t || !e.value || (n.value = !n.value, n.value ? i() : y());
375
+ }, G = ee(F, me, ae, ie);
376
+ function ye(n, e, t) {
377
+ let a;
378
+ function r() {
379
+ !n || !e.value || (t.value = !t.value, t.value ? i() : o());
379
380
  }
380
381
  function i() {
381
- o = t.value.nextElementSibling;
382
- const C = document && document.querySelector("body");
383
- C && (C.appendChild(t.value), t.value.style.zIndex = m());
382
+ a = n.value.nextElementSibling;
383
+ const f = document && document.querySelector("body");
384
+ f && (f.appendChild(n.value), n.value.style.zIndex = p());
384
385
  }
385
- function y() {
386
- o ? e.value.insertBefore(
387
- t.value,
388
- o
389
- ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
386
+ function o() {
387
+ a ? e.value.insertBefore(
388
+ n.value,
389
+ a
390
+ ) : e.value.appendChild(n.value), n.value.style.zIndex = null;
390
391
  }
391
- function m(C = 1) {
392
- const c = [
392
+ function p(f = 1) {
393
+ const s = [
393
394
  "body>.f-datagrid-settings-simple-host",
394
395
  "body>div",
395
396
  "body>farris-dialog>.farris-modal.show",
@@ -399,915 +400,174 @@ function Ae(t, e, n) {
399
400
  "body>.popover.show",
400
401
  "body>filter-row-panel>.f-datagrid-filter-panel",
401
402
  "body>.f-section-maximize"
402
- ], b = Array.from(document.body.querySelectorAll(c.join(","))).filter((u) => u).map((u) => {
403
- const { display: g, zIndex: r } = window.getComputedStyle(u);
404
- return g === "none" ? 0 : parseInt(r, 10);
403
+ ], c = Array.from(document.body.querySelectorAll(s.join(","))).filter((u) => u).map((u) => {
404
+ const { display: d, zIndex: y } = window.getComputedStyle(u);
405
+ return d === "none" ? 0 : parseInt(y, 10);
405
406
  }).filter((u) => u);
406
- let f = Math.max(...b);
407
- return f < 1040 && (f = 1040), f + C;
407
+ let l = Math.max(...c);
408
+ return l < 1040 && (l = 1040), l + f;
408
409
  }
409
- return { onClickMaxMinIcon: s };
410
+ return { onClickMaxMinIcon: r };
410
411
  }
411
- function V(t, e) {
412
- 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(() => {
413
- t.buttons && t.buttons.length > 0 && t.buttonPosition;
412
+ function j(n, e) {
413
+ const t = v(n.buttons), a = h(() => n.buttonPosition === "inHead" ? "right" : "left"), r = h(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), i = h(() => {
414
+ n.buttons && n.buttons.length > 0 && n.buttonPosition;
414
415
  });
415
- function y(m) {
416
- e.emit("Click", m);
417
- }
418
- return () => i && M(K, {
419
- customClass: s.value,
420
- items: n.value,
421
- onClick: y,
422
- alignment: o.value
416
+ function o(p) {
417
+ e.emit("Click", p);
418
+ }
419
+ return () => i && b(_, {
420
+ customClass: r.value,
421
+ items: t.value,
422
+ onClick: o,
423
+ alignment: a.value
423
424
  }, null);
424
425
  }
425
- function Z(t, e, n, o, s, i) {
426
- w(t.subTitle);
427
- const y = T(() => t.buttonPosition), m = V(t, e), {
428
- onClickMaxMinIcon: C
429
- } = Ae(o, s, i), c = T(() => !!t.subTitle), b = T(() => t.enableMaximize), f = T(() => t.enableAccordion != ""), u = T(() => {
430
- const d = {
426
+ function R(n, e, t, a, r, i) {
427
+ v(n.subTitle);
428
+ const o = h(() => n.buttonPosition), p = j(n, e), {
429
+ onClickMaxMinIcon: f
430
+ } = ye(a, r, i), s = h(() => !!n.subTitle), c = h(() => n.enableMaximize), l = h(() => n.enableAccordion != ""), u = h(() => {
431
+ const T = {
431
432
  "f-section-header": !0
432
433
  };
433
- return e.slots.header && t.headerClass.split(" ").reduce((S, h) => (S[h] = !0, S), d), d;
434
+ return e.slots.header && n.headerClass.split(" ").reduce((m, g) => (m[g] = !0, m), T), T;
434
435
  });
435
- function g(d) {
436
- d.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
436
+ function d(T) {
437
+ T.stopPropagation(), n.enableAccordion !== "" && (t.value = !t.value);
437
438
  }
438
- function r() {
439
- const d = T(() => ({
439
+ function y() {
440
+ const T = h(() => ({
440
441
  btn: !0,
441
442
  "f-btn-collapse-expand": !0,
442
443
  "f-btn-mx": !0,
443
- "f-state-expand": n.value
444
- })), v = T(() => ({
444
+ "f-state-expand": t.value
445
+ })), A = h(() => ({
445
446
  "f-icon": !0,
446
447
  "f-icon-maximize": !i.value,
447
448
  "f-icon-minimize": i.value
448
449
  }));
449
- return M("div", {
450
+ return b("div", {
450
451
  class: "f-max-accordion"
451
- }, [b.value ? M("span", {
452
- class: v.value,
453
- onClick: C
454
- }, null) : "", f.value ? M("button", {
455
- class: d.value,
456
- onClick: g
457
- }, [M("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
458
- }
459
- function l() {
460
- return e.slots.header ? M("div", {
452
+ }, [c.value ? b("span", {
453
+ class: A.value,
454
+ onClick: f
455
+ }, null) : "", l.value ? b("button", {
456
+ class: T.value,
457
+ onClick: d
458
+ }, [b("span", null, [t.value ? n.collapseLabel : n.expandLabel])]) : ""]);
459
+ }
460
+ function M() {
461
+ return e.slots.header ? b("div", {
461
462
  class: u.value
462
463
  }, [e.slots.header()]) : "";
463
464
  }
464
- function a() {
465
- return M("div", {
465
+ function C() {
466
+ return b("div", {
466
467
  class: "f-title",
467
- onClick: g
468
- }, [M("h4", {
468
+ onClick: d
469
+ }, [b("h4", {
469
470
  class: "f-title-text"
470
- }, [t.mainTitle]), c.value && M("span", null, [t.subTitle])]);
471
+ }, [n.mainTitle]), s.value && b("span", null, [n.subTitle])]);
471
472
  }
472
- function p() {
473
- const d = T(() => {
474
- const v = {
473
+ function S() {
474
+ const T = h(() => {
475
+ const A = {
475
476
  "f-content": !0
476
477
  };
477
- return t.headerContentClass && t.headerContentClass.split(" ").reduce((h, P) => (h[P] = !0, h), v), v;
478
+ return n.headerContentClass && n.headerContentClass.split(" ").reduce((g, D) => (g[D] = !0, g), A), A;
478
479
  });
479
- return e.slots.headerContent ? M("div", {
480
- class: d.value
480
+ return e.slots.headerContent ? b("div", {
481
+ class: T.value
481
482
  }, [e.slots.headerContent()]) : "";
482
483
  }
483
- function j() {
484
- return M("div", {
484
+ function w() {
485
+ return b("div", {
485
486
  class: u.value
486
- }, [e.slots.headerTitle ? e.slots.headerTitle() : a(), p(), y.value === "inHead" && m(), (b.value || f.value) && r()]);
487
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : C(), S(), o.value === "inHead" && p(), (c.value || l.value) && y()]);
487
488
  }
488
- return () => t.showHeader && (e.slots.header ? l() : j());
489
+ return () => n.showHeader && (e.slots.header ? M() : w());
489
490
  }
490
- const we = ["moz", "ms", "webkit"];
491
- function Se() {
492
- let t = 0;
491
+ const he = ["moz", "ms", "webkit"];
492
+ function be() {
493
+ let n = 0;
493
494
  return (e) => {
494
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), s = setTimeout(() => {
495
- e(n + o);
496
- }, o);
497
- return t = n + o, s;
495
+ const t = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (t - n)), r = setTimeout(() => {
496
+ e(t + a);
497
+ }, a);
498
+ return n = t + a, r;
498
499
  };
499
500
  }
500
- function Pe() {
501
+ function ve() {
501
502
  if (typeof window > "u")
502
503
  return () => 0;
503
504
  if (window.requestAnimationFrame)
504
505
  return window.requestAnimationFrame.bind(window);
505
- const t = we.filter((e) => `${e}RequestAnimationFrame` in window)[0];
506
- return t ? window[`${t}RequestAnimationFrame`] : Se();
506
+ const n = he.filter((e) => `${e}RequestAnimationFrame` in window)[0];
507
+ return n ? window[`${n}RequestAnimationFrame`] : be();
507
508
  }
508
- Pe();
509
- function O(t, e) {
510
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, s) => (s && (o[s] = !0), o), t), t;
509
+ ve();
510
+ function P(n, e) {
511
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((a, r) => (r && (a[r] = !0), a), n), n;
511
512
  }
512
- const x = /* @__PURE__ */ W({
513
+ const E = /* @__PURE__ */ z({
513
514
  name: "FSection",
514
- props: L,
515
+ props: F,
515
516
  emits: [],
516
- setup(t, e) {
517
- const n = w();
518
- let o = w();
519
- const s = w(t.customClass), i = T(() => t.enableAccordion), y = w(t.expandStatus), m = T(() => t.buttonPosition), C = w(!1), c = Z(t, e, y, n, o, C), b = V(t, e), f = T(() => {
520
- const a = {
517
+ setup(n, e) {
518
+ const t = v();
519
+ let a = v();
520
+ const r = v(n.customClass), i = h(() => n.enableAccordion), o = v(n.expandStatus), p = h(() => n.buttonPosition), f = v(!1), s = R(n, e, o, t, a, f), c = j(n, e), l = h(() => {
521
+ const C = {
521
522
  "f-section": !0,
522
523
  "f-section-accordion": i.value === "default",
523
- "f-state-collapse": (i.value === "default" || i.value === "custom") && !y.value,
524
+ "f-state-collapse": (i.value === "default" || i.value === "custom") && !o.value,
524
525
  "f-section-custom-accordion": i.value === "custom",
525
- "f-section-fill": t.fill,
526
- "f-section-maximize": C.value
526
+ "f-section-fill": n.fill,
527
+ "f-section-maximize": f.value
527
528
  };
528
- return O(a, s.value);
529
- }), u = T(() => O({
529
+ return P(C, r.value);
530
+ }), u = h(() => P({
530
531
  "f-section-content": !0
531
- }, t.contentClass)), g = T(() => O({
532
+ }, n.contentClass)), d = h(() => P({
532
533
  "f-section-extend": !0
533
- }, g.value));
534
- function r() {
535
- return e.slots.extend && M("div", {
536
- class: g.value
534
+ }, d.value));
535
+ function y() {
536
+ return e.slots.extend && b("div", {
537
+ class: d.value
537
538
  }, [e.slots.extend()]);
538
539
  }
539
- function l() {
540
- return M("div", {
540
+ function M() {
541
+ return b("div", {
541
542
  class: u.value
542
- }, [m.value === "inContent" && b(), e.slots.default && e.slots.default()]);
543
+ }, [p.value === "inContent" && c(), e.slots.default && e.slots.default()]);
543
544
  }
544
- return Y(() => t.expandStatus, (a, p) => {
545
- a !== p && (y.value = a);
546
- }), G(() => {
547
- n && n.value && (o.value = n.value.parentElement);
548
- }), () => M("div", {
549
- class: f.value,
550
- ref: n
551
- }, [c(), r(), l()]);
545
+ return U(() => n.expandStatus, (C, S) => {
546
+ C !== S && (o.value = C);
547
+ }), H(() => {
548
+ t && t.value && (a.value = t.value.parentElement);
549
+ }), () => b("div", {
550
+ class: l.value,
551
+ ref: t
552
+ }, [s(), y(), M()]);
552
553
  }
553
554
  });
554
- function Me() {
555
- function t(e) {
556
- var s, i;
555
+ function Ce() {
556
+ function n(e, t) {
557
+ var o;
557
558
  if (!e)
558
559
  return !1;
559
- const n = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
560
- if (!n)
560
+ const a = ((o = e.targetContainer) == null ? void 0 : o.componentInstance) && e.targetContainer.componentInstance.value;
561
+ if (!a)
561
562
  return !1;
562
- const o = (i = n.schema.appearance) == null ? void 0 : i.class;
563
- if (e.controlCategory === "input" || e.controlType === "form-group") {
564
- const y = n.schema.type, m = (y === "response-form" || y === "content-container") && o && o.includes("farris-form");
565
- if (n.schema.type !== "response-layout-item" && !m)
566
- return !1;
567
- }
568
- return e.controlType !== "field-set";
563
+ const r = a.schema.type, i = t == null ? void 0 : t.formSchemaUtils.getComponentById(a.belongedComponentId);
564
+ return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(r) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((i == null ? void 0 : i.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(r)));
569
565
  }
570
566
  return {
571
- basalDragulaRuleForContainer: t
567
+ basalDragulaRuleForContainer: n
572
568
  };
573
569
  }
574
- const ke = "https://json-schema.org/draft/2020-12/schema", De = "https://farris-design.gitee.io/dragging-rules.schema.json", Ee = "Dragging Rules", Oe = "The rules of designer canvas", xe = "object", Ne = {
575
- "f-page": {
576
- description: "The root class of page designed by farris.",
577
- type: "object",
578
- properties: {
579
- contents: {
580
- type: "object",
581
- properties: {
582
- "f-page-header": {
583
- description: "The class of page header designed by farris.",
584
- type: "string"
585
- },
586
- "f-page-main": {
587
- description: "The class of page body designed by farris.",
588
- type: "object",
589
- properties: {
590
- contents: {
591
- type: "object",
592
- properties: {
593
- "f-struct-like-card": {
594
- description: "",
595
- type: "object",
596
- properties: {
597
- contents: {
598
- type: "object",
599
- properties: {
600
- "f-struct-form": {
601
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
602
- type: "object",
603
- properties: {
604
- contents: {
605
- type: "object",
606
- properties: {
607
- "f-section-form": {
608
- description: "The class of section which has wrapped a reponse-form component.",
609
- type: "object",
610
- properties: {
611
- contents: {
612
- type: "object",
613
- properties: {
614
- "f-form-layout": {
615
- description: "The class of reponse form",
616
- type: "object",
617
- properties: {
618
- rules: {
619
- type: "object",
620
- properties: {
621
- canAccept: {
622
- type: "boolean",
623
- const: !0
624
- },
625
- fixed: {
626
- type: "boolean",
627
- const: !0
628
- },
629
- hidePadding: {
630
- type: "boolean",
631
- const: !1
632
- }
633
- }
634
- }
635
- }
636
- }
637
- }
638
- },
639
- rules: {
640
- type: "object",
641
- properties: {
642
- canAccept: {
643
- type: "boolean",
644
- const: !1
645
- },
646
- fixed: {
647
- type: "boolean",
648
- const: !0
649
- },
650
- hidePadding: {
651
- type: "boolean",
652
- const: !0
653
- }
654
- }
655
- }
656
- }
657
- }
658
- }
659
- },
660
- rules: {
661
- type: "object",
662
- properties: {
663
- canAccept: {
664
- type: "boolean",
665
- const: !1
666
- },
667
- fixed: {
668
- type: "boolean",
669
- const: !1
670
- },
671
- hidePadding: {
672
- type: "boolean",
673
- const: !0
674
- }
675
- }
676
- }
677
- }
678
- },
679
- "f-struct-wrapper": {
680
- description: "",
681
- type: "object",
682
- properties: {
683
- contents: {
684
- type: "object",
685
- properties: {
686
- "f-section-tabs": {
687
- description: "The class of section which has wrapped sub-grid tabs.",
688
- type: "object",
689
- properties: {
690
- contents: {
691
- type: "object",
692
- properties: {
693
- "f-tabs-in-card": {
694
- description: "The class of tabs which contains sub-grid.",
695
- type: "object",
696
- properties: {
697
- contents: {
698
- type: "object",
699
- properties: {
700
- "f-struct-data-grid-in-card": {
701
- description: "The class of sub-grid component",
702
- type: "object",
703
- properties: {
704
- contents: {
705
- type: "object",
706
- properties: {
707
- "f-grid-is-sub": {
708
- description: "The class of sub-grid",
709
- type: "object",
710
- properties: {
711
- rules: {
712
- type: "object",
713
- properties: {
714
- canAccept: {
715
- type: "boolean",
716
- const: !0
717
- },
718
- fixed: {
719
- type: "boolean",
720
- const: !0
721
- },
722
- hidePadding: {
723
- type: "boolean",
724
- const: !1
725
- }
726
- }
727
- }
728
- }
729
- }
730
- }
731
- },
732
- rules: {
733
- type: "object",
734
- properties: {
735
- canAccept: {
736
- type: "boolean",
737
- const: !1
738
- },
739
- fixed: {
740
- type: "boolean",
741
- const: !1
742
- },
743
- hidePadding: {
744
- type: "boolean",
745
- const: !0
746
- }
747
- }
748
- }
749
- }
750
- }
751
- }
752
- },
753
- rules: {
754
- type: "object",
755
- properties: {
756
- canAccept: {
757
- type: "boolean",
758
- const: !1
759
- },
760
- fixed: {
761
- type: "boolean",
762
- const: !0
763
- },
764
- hidePadding: {
765
- type: "boolean",
766
- const: !0
767
- }
768
- }
769
- }
770
- }
771
- }
772
- }
773
- },
774
- rules: {
775
- type: "object",
776
- properties: {
777
- canAccept: {
778
- type: "boolean",
779
- const: !1
780
- },
781
- fixed: {
782
- type: "boolean",
783
- const: !0
784
- },
785
- hidePadding: {
786
- type: "boolean",
787
- const: !0
788
- }
789
- }
790
- }
791
- }
792
- },
793
- "f-section-in-main": {
794
- description: "The class of section which has wrapped a reponse-form component.",
795
- type: "object",
796
- properties: {
797
- rules: {
798
- type: "object",
799
- properties: {
800
- canAccept: {
801
- type: "boolean",
802
- const: !0
803
- },
804
- fixed: {
805
- type: "boolean",
806
- const: !0
807
- },
808
- hidePadding: {
809
- type: "boolean",
810
- const: !1
811
- }
812
- }
813
- }
814
- }
815
- }
816
- }
817
- },
818
- rules: {
819
- type: "object",
820
- properties: {
821
- canAccept: {
822
- type: "boolean",
823
- const: !1
824
- },
825
- fixed: {
826
- type: "boolean",
827
- const: !1
828
- },
829
- hidePadding: {
830
- type: "boolean",
831
- const: !0
832
- }
833
- }
834
- }
835
- }
836
- }
837
- }
838
- },
839
- rules: {
840
- type: "object",
841
- properties: {
842
- canAccept: {
843
- type: "boolean",
844
- const: !0
845
- },
846
- fixed: {
847
- type: "boolean",
848
- const: !0
849
- },
850
- hidePadding: {
851
- type: "object",
852
- const: {
853
- allOf: [
854
- {
855
- sibling: 0,
856
- parent: {
857
- "f-page-main": !0
858
- }
859
- }
860
- ]
861
- }
862
- }
863
- }
864
- }
865
- }
866
- },
867
- "f-struct-data-grid": {
868
- description: "",
869
- type: "object",
870
- properties: {
871
- rules: {
872
- type: "object",
873
- properties: {
874
- canAccept: {
875
- type: "object",
876
- const: !0
877
- },
878
- fixed: {
879
- type: "boolean",
880
- const: !0
881
- },
882
- hidePadding: {
883
- type: "boolean",
884
- const: !0
885
- }
886
- }
887
- }
888
- }
889
- },
890
- "f-page-main-content": {
891
- description: "",
892
- type: "object",
893
- properties: {
894
- contents: {
895
- type: "object",
896
- properties: {
897
- "f-page-content-nav": {
898
- description: "",
899
- type: "object",
900
- properties: {
901
- contents: {
902
- type: "object",
903
- properties: {
904
- "f-struct-data-grid-in-nav": {
905
- description: "",
906
- type: "object",
907
- properties: {
908
- contents: {
909
- type: "object",
910
- properties: {
911
- "f-page-content-nav-extend": {
912
- description: "",
913
- type: "object"
914
- },
915
- "f-section-in-nav": {
916
- description: "",
917
- type: "object",
918
- properties: {
919
- rules: {
920
- type: "object",
921
- properties: {
922
- canAccept: {
923
- type: "boolean",
924
- const: !1
925
- },
926
- fixed: {
927
- type: "boolean",
928
- const: !0
929
- },
930
- hidePadding: {
931
- type: "boolean",
932
- const: !1
933
- }
934
- }
935
- }
936
- }
937
- }
938
- }
939
- },
940
- rules: {
941
- type: "object",
942
- properties: {
943
- canAccept: {
944
- type: "boolean",
945
- const: !0
946
- },
947
- fixed: {
948
- type: "boolean",
949
- const: !1
950
- },
951
- hidePadding: {
952
- type: "boolean",
953
- const: !0
954
- }
955
- }
956
- }
957
- }
958
- }
959
- }
960
- }
961
- }
962
- },
963
- "f-page-content-main": {
964
- description: "",
965
- type: "object",
966
- properties: {}
967
- }
968
- }
969
- }
970
- }
971
- },
972
- "f-page-content": {
973
- description: "",
974
- type: "object",
975
- properties: {
976
- contents: {
977
- type: "object",
978
- properties: {
979
- "f-page-content-nav": {
980
- description: "",
981
- type: "object",
982
- properties: {
983
- contents: {
984
- type: "object",
985
- properties: {
986
- "f-list-nav": {
987
- description: "",
988
- type: "object"
989
- },
990
- "f-list-nav-left": {
991
- description: "",
992
- type: "object"
993
- },
994
- "f-struct-data-grid-in-nav": {
995
- description: "",
996
- type: "object",
997
- properties: {
998
- contents: {
999
- type: "object",
1000
- properties: {
1001
- "f-section-form": {
1002
- description: "",
1003
- type: "object",
1004
- properties: {
1005
- rules: {
1006
- type: "object",
1007
- properties: {
1008
- canAccept: {
1009
- type: "boolean",
1010
- const: !1
1011
- },
1012
- fixed: {
1013
- type: "boolean",
1014
- const: !0
1015
- },
1016
- hidePadding: {
1017
- type: "boolean",
1018
- const: !0
1019
- }
1020
- }
1021
- }
1022
- }
1023
- },
1024
- "f-section-grid": {
1025
- description: "",
1026
- type: "object",
1027
- properties: {
1028
- rules: {
1029
- type: "object",
1030
- properties: {
1031
- canAccept: {
1032
- type: "boolean",
1033
- const: !1
1034
- },
1035
- fixed: {
1036
- type: "boolean",
1037
- const: !0
1038
- },
1039
- hidePadding: {
1040
- type: "boolean",
1041
- const: !0
1042
- }
1043
- }
1044
- }
1045
- }
1046
- }
1047
- }
1048
- },
1049
- rules: {
1050
- type: "object",
1051
- properties: {
1052
- canAccept: {
1053
- type: "boolean",
1054
- const: !1
1055
- },
1056
- fixed: {
1057
- type: "boolean",
1058
- const: !0
1059
- },
1060
- hidePadding: {
1061
- type: "boolean",
1062
- const: !0
1063
- }
1064
- }
1065
- }
1066
- }
1067
- }
1068
- }
1069
- }
1070
- },
1071
- rules: {
1072
- type: "object",
1073
- properties: {
1074
- canAccept: {
1075
- type: "boolean",
1076
- const: !1
1077
- },
1078
- fixed: {
1079
- type: "boolean",
1080
- const: !0
1081
- },
1082
- hidePadding: {
1083
- type: "boolean",
1084
- const: !0
1085
- }
1086
- }
1087
- }
1088
- },
1089
- "f-page-content-main": {
1090
- description: "",
1091
- type: "object",
1092
- properties: {
1093
- rules: {
1094
- type: "object",
1095
- properties: {
1096
- canAccept: {
1097
- type: "boolean",
1098
- const: !1
1099
- },
1100
- fixed: {
1101
- type: "boolean",
1102
- const: !1
1103
- },
1104
- hidePadding: {
1105
- type: "boolean",
1106
- const: !0
1107
- }
1108
- }
1109
- }
1110
- }
1111
- }
1112
- }
1113
- },
1114
- rules: {
1115
- type: "object",
1116
- properties: {
1117
- canAccept: {
1118
- type: "boolean",
1119
- const: !1
1120
- },
1121
- fixed: {
1122
- type: "boolean",
1123
- const: !0
1124
- },
1125
- hidePadding: {
1126
- type: "boolean",
1127
- const: !0
1128
- }
1129
- }
1130
- }
1131
- }
1132
- }
1133
- }
1134
- },
1135
- rules: {
1136
- type: "object",
1137
- properties: {
1138
- canAccept: {
1139
- type: "object",
1140
- const: {
1141
- anyOf: [
1142
- {
1143
- children: 0
1144
- },
1145
- {
1146
- children: {
1147
- length: {
1148
- not: 1
1149
- },
1150
- "f-struct-like-card": !0
1151
- }
1152
- },
1153
- {
1154
- children: {
1155
- "scroll-spy": !1,
1156
- "f-page-content": !1,
1157
- "f-struct-like-card": !1
1158
- }
1159
- }
1160
- ]
1161
- }
1162
- },
1163
- fixed: {
1164
- type: "boolean",
1165
- const: !0
1166
- },
1167
- hidePadding: {
1168
- type: "boolean",
1169
- const: !0
1170
- }
1171
- }
1172
- }
1173
- }
1174
- },
1175
- "f-page-footer": {
1176
- description: "The class of page footer designed by farris.",
1177
- type: "string"
1178
- }
1179
- }
1180
- },
1181
- rules: {
1182
- type: "object",
1183
- properties: {
1184
- canAccept: {
1185
- type: "boolean",
1186
- const: !1
1187
- },
1188
- fixed: {
1189
- type: "boolean",
1190
- const: !0
1191
- },
1192
- hidePadding: {
1193
- type: "boolean",
1194
- const: !0
1195
- }
1196
- }
1197
- }
1198
- }
1199
- },
1200
- "f-page-is-managelist": {
1201
- description: "The root class of mangement list page.",
1202
- type: "string"
1203
- },
1204
- "f-page-card": {
1205
- description: "",
1206
- type: "object"
1207
- },
1208
- "f-page-is-mainsubcard": {
1209
- description: "",
1210
- type: "object"
1211
- }
1212
- }, Fe = {
1213
- $schema: ke,
1214
- $id: De,
1215
- title: Ee,
1216
- description: Oe,
1217
- type: xe,
1218
- properties: Ne
1219
- }, B = /* @__PURE__ */ new Map();
1220
- function Be() {
1221
- function t(r, l, a, p) {
1222
- var j;
1223
- if (typeof a == "number")
1224
- return ((j = p[r]) == null ? void 0 : j.length) === a;
1225
- if (typeof a == "object") {
1226
- const d = Object.keys(a)[0], v = a[d];
1227
- if (d === "not")
1228
- return Number(p[r].length) !== Number(v);
1229
- if (d === "moreThan")
1230
- return Number(p[r].length) >= Number(v);
1231
- if (d === "lessThan")
1232
- return Number(p[r].length) <= Number(v);
1233
- }
1234
- return !1;
1235
- }
1236
- function e(r, l, a, p) {
1237
- return typeof a == "boolean" ? p.childrenClassList.includes(l) === !!a : !1;
1238
- }
1239
- function n(r, l, a, p) {
1240
- return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1241
- }
1242
- function o(r, l, a, p) {
1243
- return typeof a == "boolean" ? p.parentClassList.includes(l) === !!a : !1;
1244
- }
1245
- const s = /* @__PURE__ */ new Map([
1246
- ["length", t],
1247
- ["hasChildren", e],
1248
- ["hasSibling", o],
1249
- ["hasParent", n]
1250
- ]);
1251
- function i(r, l) {
1252
- const a = r;
1253
- return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((p) => {
1254
- if (p === "length")
1255
- return { target: a, operator: "length", param: null, value: l[p] };
1256
- const j = p, d = l[p];
1257
- return { target: a, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: j, value: d };
1258
- }) : [];
1259
- }
1260
- function y(r, l) {
1261
- if (s.has(r.operator)) {
1262
- const a = s.get(r.operator);
1263
- return a && a(r.target, r.param, r.value, l) || !1;
1264
- }
1265
- return !1;
1266
- }
1267
- function m(r, l) {
1268
- return Object.keys(r).reduce((d, v) => {
1269
- const S = i(v, r[v]);
1270
- return d.push(...S), d;
1271
- }, []).reduce((d, v) => d && y(v, l), !0);
1272
- }
1273
- function C(r, l) {
1274
- 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));
1275
- return p ? !h.includes(!1) : h.includes(!0);
1276
- }
1277
- function c(r, l) {
1278
- const a = r.const;
1279
- return a ? typeof a == "boolean" ? a : typeof a == "object" ? C(a, l) : !1 : !1;
1280
- }
1281
- function b(r) {
1282
- return (l) => {
1283
- const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
1284
- return r && r.properties && Object.keys(r.properties).reduce((p, j) => {
1285
- const d = r.properties[j];
1286
- return p[j] = c(d, l), p;
1287
- }, a), a;
1288
- };
1289
- }
1290
- function f(r, l, a) {
1291
- if (l.type === "object" && l.properties) {
1292
- const { rules: p, contents: j } = l.properties;
1293
- a.set(r, b(p)), j && Object.keys(j.properties).forEach(
1294
- (d) => f(d, j.properties[d], a)
1295
- );
1296
- }
1297
- }
1298
- function u() {
1299
- const { properties: r } = Fe;
1300
- Object.keys(r).forEach((l) => {
1301
- f(l, r[l], B);
1302
- });
1303
- }
1304
- function g(r, l) {
1305
- const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
1306
- return B.has(r) ? B.get(r)(l) : a;
1307
- }
1308
- return u(), { getRuleValue: g };
1309
- }
1310
- const $e = {
570
+ const ge = {
1311
571
  title: "section",
1312
572
  description: "A Farris Container Component",
1313
573
  type: "object",
@@ -1355,11 +615,11 @@ const $e = {
1355
615
  }
1356
616
  }
1357
617
  },
1358
- setPropertyRelates(t, e) {
1359
- if (t)
1360
- switch (t && t.propertyID) {
618
+ setPropertyRelates(n, e) {
619
+ if (n)
620
+ switch (n && n.propertyID) {
1361
621
  case "mainTitle": {
1362
- t.needRefreshControlTree = !0;
622
+ n.needRefreshControlTree = !0;
1363
623
  break;
1364
624
  }
1365
625
  }
@@ -1410,207 +670,260 @@ const $e = {
1410
670
  }
1411
671
  }
1412
672
  };
1413
- function He(t, e) {
1414
- const n = w(!1), o = w(!1), s = Be();
1415
- let i = !0, y = !1, m, C = !1;
1416
- function c(a) {
1417
- return $e;
1418
- }
1419
- function b(a) {
1420
- return !(!Me().basalDragulaRuleForContainer(a) || !i);
673
+ class Te {
674
+ getTemplateRule(e, t) {
675
+ const a = t == null ? void 0 : t.formSchemaUtils, r = a == null ? void 0 : a.getFormTemplateRule(), i = { canAccept: !0, canDelete: !0, canMove: !0 };
676
+ if (!r)
677
+ return i;
678
+ const o = this.getComponentContext(e);
679
+ return o.componentClassList.forEach((f) => {
680
+ if (!f || !r[f])
681
+ return;
682
+ const { canMove: s, canDelete: c, canAccept: l } = r[f];
683
+ i.canMove = i.canMove && this.resolveRuleValue(s, o), i.canDelete = i.canDelete && this.resolveRuleValue(c, o), i.canAccept = i.canAccept && this.resolveRuleValue(l, o);
684
+ }), i;
685
+ }
686
+ resolveRuleValue(e, t) {
687
+ return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
688
+ }
689
+ parseRuleValueSchema(e, t) {
690
+ const a = e.invalidContext || [];
691
+ let r = !0;
692
+ for (const i of a) {
693
+ if (i.firstLevelChild) {
694
+ if (i.firstLevelChild.class) {
695
+ const o = t.firstLevelChildClassList;
696
+ if (o && !o.includes(i.firstLevelChild.class)) {
697
+ r = !1;
698
+ continue;
699
+ }
700
+ }
701
+ if (i.firstLevelChild.type) {
702
+ const o = t.firstLevelChildSchema;
703
+ if (o && o.type !== i.firstLevelChild.type) {
704
+ r = !1;
705
+ continue;
706
+ }
707
+ }
708
+ }
709
+ if (i.secondLevelChild) {
710
+ if (i.secondLevelChild.class) {
711
+ const o = t.secondLevelChildClassList;
712
+ if (o && !o.includes(i.secondLevelChild.class)) {
713
+ r = !1;
714
+ continue;
715
+ }
716
+ }
717
+ if (i.secondLevelChild.type) {
718
+ const o = t.secondLevelChildSchema;
719
+ if (o && o.type !== i.secondLevelChild.type) {
720
+ r = !1;
721
+ continue;
722
+ }
723
+ }
724
+ }
725
+ if (i.parent) {
726
+ if (i.parent.class) {
727
+ const o = t.parentClassList;
728
+ if (o && !o.includes(i.parent.class)) {
729
+ r = !1;
730
+ continue;
731
+ }
732
+ }
733
+ if (i.parent.type) {
734
+ const o = t.parentSchema;
735
+ if (o && o.type !== i.parent.type) {
736
+ r = !1;
737
+ continue;
738
+ }
739
+ }
740
+ }
741
+ r = !0;
742
+ break;
743
+ }
744
+ return !r;
745
+ }
746
+ getComponentContext(e) {
747
+ var M, C, S, w;
748
+ const t = e.schema, a = t.appearance && t.appearance.class || "", r = a.split(" ") || [], i = t.contents || [], o = i.length ? i[0] : null, p = o && o.appearance ? o.appearance.class : "", f = p ? p.split(" ") : [], s = (M = o == null ? void 0 : o.contents) != null && M.length ? o == null ? void 0 : o.contents[0] : null, c = s && s.appearance ? s.appearance.class : "", l = c ? c.split(" ") : [], u = t.type === "component" ? (S = (C = e.parent) == null ? void 0 : C.parent) == null ? void 0 : S.schema : (w = e.parent) == null ? void 0 : w.schema, d = u && u.appearance && u.appearance.class || "", y = d ? d.split(" ") : [];
749
+ return {
750
+ componentClass: a,
751
+ componentClassList: r,
752
+ childContents: i,
753
+ firstLevelChildSchema: o,
754
+ firstLevelChildClass: p,
755
+ firstLevelChildClassList: f,
756
+ secondLevelChildSchema: s,
757
+ secondLevelChildClass: c,
758
+ secondLevelChildClassList: l,
759
+ parentSchema: u,
760
+ parentClass: d,
761
+ parentClassList: y
762
+ };
1421
763
  }
1422
- function f() {
1423
- return !C;
764
+ }
765
+ function Se(n, e) {
766
+ const t = new Te(), { canMove: a, canAccept: r, canDelete: i } = t.getTemplateRule(n, e);
767
+ function o(l) {
768
+ return ge;
1424
769
  }
1425
- function u() {
1426
- return !C;
770
+ function p(l) {
771
+ return Ce().basalDragulaRuleForContainer(l, e) ? r : !1;
1427
772
  }
1428
- function g() {
1429
- return y;
773
+ function f() {
774
+ return i;
1430
775
  }
1431
- function r(a) {
776
+ function s() {
777
+ return a;
1432
778
  }
1433
- function l() {
1434
- n.value = !1, o.value = !1, C = !1, i = !0;
1435
- 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((z, F) => {
1436
- const q = F && F.appearance ? F.appearance.class : "", X = q ? q.split(" ") : [];
1437
- return z.push(...X), z;
1438
- }, []) : [], A = e, k = A && A.appearance && A.appearance.class || "", E = k ? k.split(" ") : [];
1439
- m = {
1440
- componentClass: p,
1441
- componentClassList: j,
1442
- childContents: d,
1443
- firstChildContent: v,
1444
- firstChildClass: S,
1445
- firstChildClassList: h,
1446
- parent: A,
1447
- parentClass: k,
1448
- parentClassList: E,
1449
- children: d,
1450
- childrenClassList: P
1451
- };
1452
- const { canAccept: D, fixed: N, hidePadding: Q } = s.getRuleValue(j[0], m);
1453
- return i = D, y = Q, C = N, !0;
779
+ function c() {
780
+ return !a && !i;
1454
781
  }
1455
782
  return {
1456
- canAccepts: b,
783
+ canAccepts: p,
1457
784
  checkCanDeleteComponent: f,
1458
- checkCanMoveComponent: u,
1459
- hideNestedPaddingInDesginerView: g,
1460
- onAcceptMovedChildElement: r,
1461
- resolveComponentContext: l,
1462
- triggerBelongedComponentToMoveWhenMoved: n,
1463
- triggerBelongedComponentToDeleteWhenDeleted: o,
1464
- getPropsConfig: c
785
+ checkCanMoveComponent: s,
786
+ hideNestedPaddingInDesginerView: c,
787
+ getPropsConfig: o
1465
788
  };
1466
789
  }
1467
- function Le(t, e, n) {
1468
- var S;
1469
- function o() {
1470
- n != null && n.resolveComponentContext && n.resolveComponentContext();
790
+ function Me(n, e, t) {
791
+ var A;
792
+ function a() {
793
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
1471
794
  }
1472
- o();
1473
- const s = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", y = w();
1474
- function m() {
1475
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
795
+ a();
796
+ const r = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", o = v();
797
+ function p() {
798
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1476
799
  }
1477
- function C() {
800
+ function f() {
1478
801
  return !1;
1479
802
  }
1480
- function c() {
1481
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
803
+ function s() {
804
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1482
805
  }
1483
- function b() {
1484
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
806
+ function c() {
807
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1485
808
  }
1486
- function f(h) {
1487
- if (!h || !h.value)
809
+ function l(m) {
810
+ if (!m || !m.value)
1488
811
  return null;
1489
- if (h.value.schema && h.value.schema.type === "component")
1490
- return h.value;
1491
- const P = w(h == null ? void 0 : h.value.parent), A = f(P);
1492
- return A || null;
812
+ if (m.value.schema && m.value.schema.type === "component")
813
+ return m.value;
814
+ const g = v(m == null ? void 0 : m.value.parent), D = l(g);
815
+ return D || null;
1493
816
  }
1494
- function u(h = e) {
1495
- const { componentInstance: P, designerItemElementRef: A } = h;
1496
- return !P || !P.value ? null : P.value.canMove ? A : u(h.parent);
817
+ function u(m = e) {
818
+ const { componentInstance: g, designerItemElementRef: D } = m;
819
+ return !g || !g.value ? null : g.value.canMove ? D : u(m.parent);
1497
820
  }
1498
- function g(h) {
1499
- return !!n && n.canAccepts(h);
821
+ function d(m) {
822
+ return !!t && t.canAccepts(m);
1500
823
  }
1501
- function r() {
824
+ function y() {
1502
825
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1503
826
  }
1504
- function l() {
1505
- }
1506
- function a(h, P) {
1507
- P && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(P);
827
+ function M() {
1508
828
  }
1509
- function p(h, P) {
1510
- const { componentType: A } = h;
1511
- let k = $(A, h, P);
1512
- n && n.onResolveNewComponentSchema && (k = n.onResolveNewComponentSchema(h, k));
1513
- const E = A.toLowerCase().replace("-", "_");
1514
- return k && !k.id && k.type === A && (k.id = `${E}_${Math.random().toString().slice(2, 6)}`), k;
829
+ function C(m, g) {
830
+ g && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(g);
1515
831
  }
1516
- function j(h, P) {
1517
- const A = String(h.getAttribute("data-controltype")), k = h.getAttribute("data-feature"), E = k ? JSON.parse(k) : {};
1518
- E.parentComponentInstance = y.value;
1519
- let D = $(A, E);
1520
- n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, P, D));
1521
- const N = A.toLowerCase().replace("-", "_");
1522
- return D && !D.id && D.type === A && (D.id = `${N}_${Math.random().toString().slice(2, 6)}`), D;
832
+ function S(m, g) {
833
+ const { componentType: D } = m;
834
+ let L = q(D, m, g);
835
+ t && t.onResolveNewComponentSchema && (L = t.onResolveNewComponentSchema(m, L));
836
+ const W = D.toLowerCase().replace("-", "_");
837
+ return L && !L.id && L.type === D && (L.id = `${W}_${Math.random().toString().slice(2, 6)}`), L;
1523
838
  }
1524
- function d(h) {
839
+ function w(m) {
1525
840
  }
1526
- function v(...h) {
1527
- if (n && n.getPropsConfig)
1528
- return n.getPropsConfig(...h);
841
+ function T(...m) {
842
+ if (t && t.getPropsConfig)
843
+ return t.getPropsConfig(...m);
1529
844
  }
1530
- return y.value = {
1531
- canMove: m(),
1532
- canSelectParent: C(),
1533
- canDelete: c(),
1534
- canNested: !b(),
845
+ return o.value = {
846
+ canMove: p(),
847
+ canSelectParent: f(),
848
+ canDelete: s(),
849
+ canNested: !c(),
1535
850
  contents: e == null ? void 0 : e.schema.contents,
1536
- elementRef: t,
1537
- parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
851
+ elementRef: n,
852
+ parent: (A = e == null ? void 0 : e.parent) == null ? void 0 : A.componentInstance,
1538
853
  schema: e == null ? void 0 : e.schema,
1539
- styles: s,
854
+ styles: r,
1540
855
  designerClass: i,
1541
- canAccepts: g,
1542
- getBelongedComponentInstance: f,
856
+ canAccepts: d,
857
+ getBelongedComponentInstance: l,
1543
858
  getDraggableDesignItemElement: u,
1544
- getDraggingDisplayText: r,
1545
- getPropConfig: v,
1546
- getDragScopeElement: l,
1547
- onAcceptMovedChildElement: a,
1548
- onAcceptNewChildElement: j,
1549
- onChildElementMovedOut: d,
1550
- addNewChildComponentSchema: p,
1551
- updateDragAndDropRules: o,
1552
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || w(!1),
1553
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
1554
- }, y;
859
+ getDraggingDisplayText: y,
860
+ getPropConfig: T,
861
+ getDragScopeElement: M,
862
+ onAcceptMovedChildElement: C,
863
+ onChildElementMovedOut: w,
864
+ addNewChildComponentSchema: S,
865
+ updateDragAndDropRules: a,
866
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || v(!1),
867
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
868
+ }, o;
1555
869
  }
1556
- const Ve = /* @__PURE__ */ W({
870
+ const we = /* @__PURE__ */ z({
1557
871
  name: "FSectionDesign",
1558
- props: L,
872
+ props: F,
1559
873
  emits: [],
1560
- setup(t, e) {
1561
- var v;
1562
- const n = w(), o = w();
1563
- let s = w();
1564
- const i = R("design-item-context"), y = He(i.schema, (v = i.parent) == null ? void 0 : v.schema), m = Le(n, i, y);
1565
- m.value.styles = "display: inherit;", G(() => {
1566
- n.value.componentInstance = m;
1567
- }), e.expose(m.value);
1568
- const C = w(t.customClass), c = T(() => t.enableAccordion), b = w(t.expandStatus), f = T(() => t.buttonPosition), u = w(!1), g = Z(t, e, b, o, s, u), r = V(t, e), l = T(() => {
1569
- const S = {
874
+ setup(n, e) {
875
+ const t = v(), a = v();
876
+ let r = v();
877
+ const i = N("designer-host-service"), o = N("design-item-context"), p = Se(o, i), f = Me(t, o, p);
878
+ f.value.styles = "display: inherit;", H(() => {
879
+ t.value.componentInstance = f;
880
+ }), e.expose(f.value);
881
+ const s = v(n.customClass), c = h(() => n.enableAccordion), l = v(n.expandStatus), u = h(() => n.buttonPosition), d = v(!1), y = R(n, e, l, a, r, d), M = j(n, e), C = h(() => {
882
+ const m = {
1570
883
  "f-section": !0,
1571
884
  "f-section-accordion": c.value === "default",
1572
- "f-state-collapse": (c.value === "default" || c.value === "custom") && !b.value,
885
+ "f-state-collapse": (c.value === "default" || c.value === "custom") && !l.value,
1573
886
  "f-section-custom-accordion": c.value === "custom",
1574
- "f-section-fill": t.fill,
1575
- "f-section-maximize": u.value,
887
+ "f-section-fill": n.fill,
888
+ "f-section-maximize": d.value,
1576
889
  "f-utils-fill": !0,
1577
890
  "p-0": !0
1578
891
  };
1579
- return O(S, C.value);
1580
- }), a = T(() => O({
892
+ return P(m, s.value);
893
+ }), S = h(() => P({
1581
894
  "f-section-content": !0,
1582
895
  "drag-container": !0
1583
- }, t.contentClass)), p = T(() => O({
896
+ }, n.contentClass)), w = h(() => P({
1584
897
  "f-section-extend": !0
1585
- }, p.value));
1586
- function j() {
1587
- return e.slots.extend && M("div", {
1588
- class: p.value
898
+ }, w.value));
899
+ function T() {
900
+ return e.slots.extend && b("div", {
901
+ class: w.value
1589
902
  }, [e.slots.extend()]);
1590
903
  }
1591
- function d() {
1592
- return M("div", {
1593
- class: a.value,
1594
- ref: n,
1595
- "data-dragref": `${i.schema.id}-container`
1596
- }, [f.value === "inContent" && r(), e.slots.default && e.slots.default()]);
904
+ function A() {
905
+ return b("div", {
906
+ class: S.value,
907
+ ref: t,
908
+ "data-dragref": `${o.schema.id}-container`
909
+ }, [u.value === "inContent" && M(), e.slots.default && e.slots.default()]);
1597
910
  }
1598
- return () => M("div", {
1599
- class: l.value,
1600
- ref: o
1601
- }, [g(), j(), d()]);
911
+ return () => b("div", {
912
+ class: C.value,
913
+ ref: a
914
+ }, [y(), T(), A()]);
1602
915
  }
1603
916
  });
1604
- x.register = (t, e, n, o) => {
1605
- t.section = x, e.section = U;
917
+ E.register = (n, e, t, a) => {
918
+ n.section = E, e.section = G;
1606
919
  };
1607
- x.registerDesigner = (t, e, n) => {
1608
- t.section = Ve, e.section = U;
920
+ E.registerDesigner = (n, e, t) => {
921
+ n.section = we, e.section = G;
1609
922
  };
1610
- const Je = ee(x);
923
+ const Ee = Z(E);
1611
924
  export {
1612
- x as Section,
1613
- Je as default,
1614
- U as propsResolver,
1615
- L as sectionProps
925
+ E as Section,
926
+ Ee as default,
927
+ G as propsResolver,
928
+ F as sectionProps
1616
929
  };