@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,111 +1,111 @@
1
- import { defineComponent as W, createVNode as _, ref as M, nextTick as Y, inject as Z, computed as R, onMounted as K } from "vue";
2
- import { cloneDeep as x } from "lodash-es";
1
+ import { defineComponent as _, createVNode as z, ref as M, nextTick as Z, inject as R, computed as x, onMounted as K } from "vue";
2
+ import { isPlainObject as q, cloneDeep as I } from "lodash-es";
3
3
  import "bignumber.js";
4
- const z = {}, G = {};
4
+ const G = {}, J = {};
5
5
  function k(n) {
6
- const { properties: e, title: t } = n, r = Object.keys(e).reduce((s, b) => (s[b] = e[b].type === "object" && e[b].properties ? k(e[b]) : x(e[b].default), s), {});
7
- return r.id = `${t}-${Date.now()}`, r;
6
+ const { properties: e, title: t, ignore: r } = n, c = r && Array.isArray(r), h = Object.keys(e).reduce((m, y) => ((!c || !r.find((T) => T == y)) && (m[y] = e[y].type === "object" && e[y].properties ? k(e[y]) : I(e[y].default)), m), {});
7
+ return (!c || !r.find((m) => m == "id")) && (h.id = `${t}-${Date.now()}`), h;
8
8
  }
9
- function N(n, e = {}) {
10
- const t = z[n];
11
- if (t) {
12
- let r = k(t);
13
- const s = G[n];
14
- return r = s ? s({ getSchemaByType: N }, r, e) : r, r;
9
+ function N(n, e = {}, t) {
10
+ const r = G[n];
11
+ if (r) {
12
+ let c = k(r);
13
+ const h = J[n];
14
+ return c = h ? h({ getSchemaByType: N }, c, e, t) : c, c;
15
15
  }
16
16
  return null;
17
17
  }
18
- function I(n, e) {
18
+ function ee(n, e) {
19
19
  const t = k(e);
20
- return Object.keys(n).reduce((r, s) => (r[s] && typeof r[s] == "object" ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
20
+ return Object.keys(n).reduce((r, c) => (r[c] && q(r[c]) && q(n[c]) ? Object.assign(r[c], n[c]) : r[c] = n[c], r), t), t;
21
21
  }
22
- function ee(n, e) {
23
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
24
- if (e.has(s)) {
25
- const b = e.get(s);
26
- if (typeof b == "string")
27
- r[b] = n[s];
22
+ function te(n, e) {
23
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, c) => {
24
+ if (e.has(c)) {
25
+ const h = e.get(c);
26
+ if (typeof h == "string")
27
+ r[h] = n[c];
28
28
  else {
29
- const h = b(s, n[s], n);
30
- Object.assign(r, h);
29
+ const m = h(c, n[c], n);
30
+ Object.assign(r, m);
31
31
  }
32
32
  } else
33
- r[s] = n[s];
33
+ r[c] = n[c];
34
34
  return r;
35
35
  }, {});
36
36
  }
37
- function te(n, e, t = /* @__PURE__ */ new Map()) {
38
- const r = I(n, e);
39
- return ee(r, t);
37
+ function ne(n, e, t = /* @__PURE__ */ new Map()) {
38
+ const r = ee(n, e);
39
+ return te(r, t);
40
40
  }
41
- function ne(n = {}) {
42
- function e(p, d, f, y) {
41
+ function oe(n = {}) {
42
+ function e(p, d, f, b) {
43
43
  if (typeof f == "number")
44
- return y[p].length === f;
44
+ return b[p].length === f;
45
45
  if (typeof f == "object") {
46
- const A = Object.keys(f)[0], o = f[A];
47
- if (A === "not")
48
- return Number(y[p].length) !== Number(o);
49
- if (A === "moreThan")
50
- return Number(y[p].length) >= Number(o);
51
- if (A === "lessThan")
52
- return Number(y[p].length) <= Number(o);
46
+ const v = Object.keys(f)[0], o = f[v];
47
+ if (v === "not")
48
+ return Number(b[p].length) !== Number(o);
49
+ if (v === "moreThan")
50
+ return Number(b[p].length) >= Number(o);
51
+ if (v === "lessThan")
52
+ return Number(b[p].length) <= Number(o);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function t(p, d, f, y) {
57
- return y[p] && y[p].propertyValue && String(y[p].propertyValue.value) === String(f);
56
+ function t(p, d, f, b) {
57
+ return b[p] && b[p].propertyValue && String(b[p].propertyValue.value) === String(f);
58
58
  }
59
59
  const r = /* @__PURE__ */ new Map([
60
60
  ["length", e],
61
61
  ["getProperty", t]
62
62
  ]);
63
63
  Object.keys(n).reduce((p, d) => (p.set(d, n[d]), p), r);
64
- function s(p, d) {
64
+ function c(p, d) {
65
65
  const f = p;
66
- return typeof d == "number" ? [{ target: f, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: f, operator: "getProperty", param: p, value: !!d }] : typeof d == "object" ? Object.keys(d).map((y) => {
67
- if (y === "length")
68
- return { target: f, operator: "length", param: null, value: d[y] };
69
- const A = y, o = d[y];
70
- return { target: f, operator: "getProperty", param: A, value: o };
66
+ return typeof d == "number" ? [{ target: f, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: f, operator: "getProperty", param: p, value: !!d }] : typeof d == "object" ? Object.keys(d).map((b) => {
67
+ if (b === "length")
68
+ return { target: f, operator: "length", param: null, value: d[b] };
69
+ const v = b, o = d[b];
70
+ return { target: f, operator: "getProperty", param: v, value: o };
71
71
  }) : [];
72
72
  }
73
- function b(p) {
74
- return Object.keys(p).reduce((f, y) => {
75
- const A = s(y, p[y]);
76
- return f.push(...A), f;
73
+ function h(p) {
74
+ return Object.keys(p).reduce((f, b) => {
75
+ const v = c(b, p[b]);
76
+ return f.push(...v), f;
77
77
  }, []);
78
78
  }
79
- function h(p, d) {
79
+ function m(p, d) {
80
80
  if (r.has(p.operator)) {
81
81
  const f = r.get(p.operator);
82
82
  return f && f(p.target, p.param, p.value, d) || !1;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function j(p, d) {
87
- return b(p).reduce((A, o) => A && h(o, d), !0);
86
+ function y(p, d) {
87
+ return h(p).reduce((v, o) => v && m(o, d), !0);
88
88
  }
89
- function P(p, d) {
90
- const f = Object.keys(p), y = f.includes("allOf"), A = f.includes("anyOf"), o = y || A, u = (o ? p[o ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((a) => j(a, d));
91
- return y ? !u.includes(!1) : u.includes(!0);
89
+ function T(p, d) {
90
+ const f = Object.keys(p), b = f.includes("allOf"), v = f.includes("anyOf"), o = b || v, u = (o ? p[o ? b ? "allOf" : "anyOf" : "allOf"] : [p]).map((a) => y(a, d));
91
+ return b ? !u.includes(!1) : u.includes(!0);
92
92
  }
93
- return { parseValueSchema: P };
93
+ return { parseValueSchema: T };
94
94
  }
95
- const oe = {}, re = {};
96
- ne();
97
- function ce(n, e, t = /* @__PURE__ */ new Map(), r = (h, j, P) => j, s = {}, b = (h) => h) {
98
- return z[e.title] = e, G[e.title] = r, oe[e.title] = s, re[e.title] = b, (h = {}) => {
99
- const j = te(h, e, t), P = Object.keys(n).reduce((p, d) => (p[d] = n[d].default, p), {});
100
- return Object.assign(P, j);
95
+ const re = {}, ce = {};
96
+ oe();
97
+ function se(n, e, t = /* @__PURE__ */ new Map(), r = (m, y, T) => y, c = {}, h = (m) => m) {
98
+ return G[e.title] = e, J[e.title] = r, re[e.title] = c, ce[e.title] = h, (m = {}) => {
99
+ const y = ne(m, e, t), T = Object.keys(n).reduce((p, d) => (p[d] = n[d].default, p), {});
100
+ return Object.assign(T, y);
101
101
  };
102
102
  }
103
- function se(n, e) {
103
+ function ae(n, e) {
104
104
  return { customClass: e.class, customStyle: e.style };
105
105
  }
106
- const ae = /* @__PURE__ */ new Map([
107
- ["appearance", se]
108
- ]), ie = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/content-container.schema.json", le = "content-container", ue = "A Farris Container Component", fe = "object", de = {
106
+ const ie = /* @__PURE__ */ new Map([
107
+ ["appearance", ae]
108
+ ]), pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-design.gitee.io/content-container.schema.json", ue = "content-container", fe = "A Farris Container Component", de = "object", ye = {
109
109
  id: {
110
110
  description: "The unique identifier for a Section",
111
111
  type: "string"
@@ -151,19 +151,19 @@ const ae = /* @__PURE__ */ new Map([
151
151
  type: "boolean",
152
152
  default: !0
153
153
  }
154
- }, ye = [
154
+ }, be = [
155
155
  "id",
156
156
  "type",
157
157
  "contents"
158
- ], be = {
159
- $schema: ie,
160
- $id: pe,
161
- title: le,
162
- description: ue,
163
- type: fe,
164
- properties: de,
165
- required: ye
166
- }, me = "content-container", he = "A Farris Container Component", ge = "object", je = {
158
+ ], me = {
159
+ $schema: pe,
160
+ $id: le,
161
+ title: ue,
162
+ description: fe,
163
+ type: de,
164
+ properties: ye,
165
+ required: be
166
+ }, he = "content-container", ge = "A Farris Container Component", je = "object", Ce = {
167
167
  basic: {
168
168
  description: "Basic Infomation",
169
169
  title: "基本信息",
@@ -206,11 +206,11 @@ const ae = /* @__PURE__ */ new Map([
206
206
  }
207
207
  }
208
208
  }
209
- }, Ce = {
210
- title: me,
211
- description: he,
212
- type: ge,
213
- categories: je
209
+ }, Ae = {
210
+ title: he,
211
+ description: ge,
212
+ type: je,
213
+ categories: Ce
214
214
  };
215
215
  function ve(n, e, t) {
216
216
  return e;
@@ -218,29 +218,29 @@ function ve(n, e, t) {
218
218
  const L = {
219
219
  customClass: { type: String, default: "" },
220
220
  customStyle: { type: String, default: "" }
221
- }, q = ce(L, be, ae, ve, Ce), $ = /* @__PURE__ */ W({
221
+ }, W = se(L, me, ie, ve, Ae), $ = /* @__PURE__ */ _({
222
222
  name: "FContentContainer",
223
223
  props: L,
224
224
  emits: [],
225
225
  setup(n, e) {
226
- return () => _("div", {
226
+ return () => z("div", {
227
227
  class: n.customClass,
228
228
  style: n.customStyle
229
229
  }, [e.slots.default && e.slots.default()]);
230
230
  }
231
231
  });
232
- function Ae() {
232
+ function Pe() {
233
233
  function n(e) {
234
- var s, b;
234
+ var c, h;
235
235
  if (!e)
236
236
  return !1;
237
- const t = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
237
+ const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
238
238
  if (!t)
239
239
  return !1;
240
- const r = (b = t.schema.appearance) == null ? void 0 : b.class;
240
+ const r = (h = t.schema.appearance) == null ? void 0 : h.class;
241
241
  if (e.controlCategory === "input" || e.controlType === "form-group") {
242
- const h = t.schema.type, j = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
243
- if (t.schema.type !== "response-layout-item" && !j)
242
+ const m = t.schema.type, y = (m === "response-form" || m === "content-container") && r && r.includes("farris-form");
243
+ if (t.schema.type !== "response-layout-item" && !y)
244
244
  return !1;
245
245
  }
246
246
  return e.controlType !== "field-set";
@@ -249,7 +249,7 @@ function Ae() {
249
249
  basalDragulaRuleForContainer: n
250
250
  };
251
251
  }
252
- const Te = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-design.gitee.io/dragging-rules.schema.json", we = "Dragging Rules", De = "The rules of designer canvas", Oe = "object", Me = {
252
+ const Te = "https://json-schema.org/draft/2020-12/schema", we = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Oe = "The rules of designer canvas", Me = "object", Ee = {
253
253
  "f-page": {
254
254
  description: "The root class of page designed by farris.",
255
255
  type: "object",
@@ -668,6 +668,80 @@ const Te = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
668
668
  "f-list-nav-left": {
669
669
  description: "",
670
670
  type: "object"
671
+ },
672
+ "f-struct-data-grid-in-nav": {
673
+ description: "",
674
+ type: "object",
675
+ properties: {
676
+ contents: {
677
+ type: "object",
678
+ properties: {
679
+ "f-section-form": {
680
+ description: "",
681
+ type: "object",
682
+ properties: {
683
+ rules: {
684
+ type: "object",
685
+ properties: {
686
+ canAccept: {
687
+ type: "boolean",
688
+ const: !1
689
+ },
690
+ fixed: {
691
+ type: "boolean",
692
+ const: !0
693
+ },
694
+ hidePadding: {
695
+ type: "boolean",
696
+ const: !0
697
+ }
698
+ }
699
+ }
700
+ }
701
+ },
702
+ "f-section-grid": {
703
+ description: "",
704
+ type: "object",
705
+ properties: {
706
+ rules: {
707
+ type: "object",
708
+ properties: {
709
+ canAccept: {
710
+ type: "boolean",
711
+ const: !1
712
+ },
713
+ fixed: {
714
+ type: "boolean",
715
+ const: !0
716
+ },
717
+ hidePadding: {
718
+ type: "boolean",
719
+ const: !0
720
+ }
721
+ }
722
+ }
723
+ }
724
+ }
725
+ }
726
+ },
727
+ rules: {
728
+ type: "object",
729
+ properties: {
730
+ canAccept: {
731
+ type: "boolean",
732
+ const: !1
733
+ },
734
+ fixed: {
735
+ type: "boolean",
736
+ const: !0
737
+ },
738
+ hidePadding: {
739
+ type: "boolean",
740
+ const: !0
741
+ }
742
+ }
743
+ }
744
+ }
671
745
  }
672
746
  }
673
747
  }
@@ -813,192 +887,191 @@ const Te = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
813
887
  description: "",
814
888
  type: "object"
815
889
  }
816
- }, Ee = [], Ne = {
890
+ }, Ne = {
817
891
  $schema: Te,
818
- $id: Pe,
819
- title: we,
820
- description: De,
821
- type: Oe,
822
- properties: Me,
823
- required: Ee
892
+ $id: we,
893
+ title: De,
894
+ description: Oe,
895
+ type: Me,
896
+ properties: Ee
824
897
  }, F = /* @__PURE__ */ new Map();
825
898
  function Se() {
826
- function n(o, l, c, u) {
827
- var v;
828
- if (typeof c == "number")
829
- return ((v = u[o]) == null ? void 0 : v.length) === c;
830
- if (typeof c == "object") {
831
- const a = Object.keys(c)[0], C = c[a];
899
+ function n(o, l, s, u) {
900
+ var A;
901
+ if (typeof s == "number")
902
+ return ((A = u[o]) == null ? void 0 : A.length) === s;
903
+ if (typeof s == "object") {
904
+ const a = Object.keys(s)[0], j = s[a];
832
905
  if (a === "not")
833
- return Number(u[o].length) !== Number(C);
906
+ return Number(u[o].length) !== Number(j);
834
907
  if (a === "moreThan")
835
- return Number(u[o].length) >= Number(C);
908
+ return Number(u[o].length) >= Number(j);
836
909
  if (a === "lessThan")
837
- return Number(u[o].length) <= Number(C);
910
+ return Number(u[o].length) <= Number(j);
838
911
  }
839
912
  return !1;
840
913
  }
841
- function e(o, l, c, u) {
842
- return typeof c == "boolean" ? u.childrenClassList.includes(l) === !!c : !1;
914
+ function e(o, l, s, u) {
915
+ return typeof s == "boolean" ? u.childrenClassList.includes(l) === !!s : !1;
843
916
  }
844
- function t(o, l, c, u) {
845
- return typeof c == "boolean" ? u.parentClassList.includes(l) === !!c : !1;
917
+ function t(o, l, s, u) {
918
+ return typeof s == "boolean" ? u.parentClassList.includes(l) === !!s : !1;
846
919
  }
847
- function r(o, l, c, u) {
848
- return typeof c == "boolean" ? u.parentClassList.includes(l) === !!c : !1;
920
+ function r(o, l, s, u) {
921
+ return typeof s == "boolean" ? u.parentClassList.includes(l) === !!s : !1;
849
922
  }
850
- const s = /* @__PURE__ */ new Map([
923
+ const c = /* @__PURE__ */ new Map([
851
924
  ["length", n],
852
925
  ["hasChildren", e],
853
926
  ["hasSibling", r],
854
927
  ["hasParent", t]
855
928
  ]);
856
- function b(o, l) {
857
- const c = o;
858
- return typeof l == "number" ? [{ target: c, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((u) => {
929
+ function h(o, l) {
930
+ const s = o;
931
+ return typeof l == "number" ? [{ target: s, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((u) => {
859
932
  if (u === "length")
860
- return { target: c, operator: "length", param: null, value: l[u] };
861
- const v = u, a = l[u];
862
- return { target: c, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: v, value: a };
933
+ return { target: s, operator: "length", param: null, value: l[u] };
934
+ const A = u, a = l[u];
935
+ return { target: s, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: A, value: a };
863
936
  }) : [];
864
937
  }
865
- function h(o, l) {
866
- if (s.has(o.operator)) {
867
- const c = s.get(o.operator);
868
- return c && c(o.target, o.param, o.value, l) || !1;
938
+ function m(o, l) {
939
+ if (c.has(o.operator)) {
940
+ const s = c.get(o.operator);
941
+ return s && s(o.target, o.param, o.value, l) || !1;
869
942
  }
870
943
  return !1;
871
944
  }
872
- function j(o, l) {
873
- return Object.keys(o).reduce((a, C) => {
874
- const T = b(C, o[C]);
875
- return a.push(...T), a;
876
- }, []).reduce((a, C) => a && h(C, l), !0);
945
+ function y(o, l) {
946
+ return Object.keys(o).reduce((a, j) => {
947
+ const w = h(j, o[j]);
948
+ return a.push(...w), a;
949
+ }, []).reduce((a, j) => a && m(j, l), !0);
877
950
  }
878
- function P(o, l) {
879
- const c = Object.keys(o), u = c.includes("allOf"), v = c.includes("anyOf"), a = u || v, i = (a ? o[a ? u ? "allOf" : "anyOf" : "allOf"] : [o]).map((m) => j(m, l));
951
+ function T(o, l) {
952
+ const s = Object.keys(o), u = s.includes("allOf"), A = s.includes("anyOf"), a = u || A, i = (a ? o[a ? u ? "allOf" : "anyOf" : "allOf"] : [o]).map((g) => y(g, l));
880
953
  return u ? !i.includes(!1) : i.includes(!0);
881
954
  }
882
955
  function p(o, l) {
883
- const c = o.const;
884
- return c ? typeof c == "boolean" ? c : typeof c == "object" ? P(c, l) : !1 : !1;
956
+ const s = o.const;
957
+ return s ? typeof s == "boolean" ? s : typeof s == "object" ? T(s, l) : !1 : !1;
885
958
  }
886
959
  function d(o) {
887
960
  return (l) => {
888
- const c = { canAccept: !0, fixed: !1, hidePadding: !1 };
889
- return o && o.properties && Object.keys(o.properties).reduce((u, v) => {
890
- const a = o.properties[v];
891
- return u[v] = p(a, l), u;
892
- }, c), c;
961
+ const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
962
+ return o && o.properties && Object.keys(o.properties).reduce((u, A) => {
963
+ const a = o.properties[A];
964
+ return u[A] = p(a, l), u;
965
+ }, s), s;
893
966
  };
894
967
  }
895
- function f(o, l, c) {
968
+ function f(o, l, s) {
896
969
  if (l.type === "object" && l.properties) {
897
- const { rules: u, contents: v } = l.properties;
898
- c.set(o, d(u)), v && Object.keys(v.properties).forEach(
899
- (a) => f(a, v.properties[a], c)
970
+ const { rules: u, contents: A } = l.properties;
971
+ s.set(o, d(u)), A && Object.keys(A.properties).forEach(
972
+ (a) => f(a, A.properties[a], s)
900
973
  );
901
974
  }
902
975
  }
903
- function y() {
976
+ function b() {
904
977
  const { properties: o } = Ne;
905
978
  Object.keys(o).forEach((l) => {
906
979
  f(l, o[l], F);
907
980
  });
908
981
  }
909
- function A(o, l) {
910
- const c = { canAccept: !0, fixed: !1, hidePadding: !0 };
911
- return F.has(o) ? F.get(o)(l) : c;
982
+ function v(o, l) {
983
+ const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
984
+ return F.has(o) ? F.get(o)(l) : s;
912
985
  }
913
- return y(), { getRuleValue: A };
986
+ return b(), { getRuleValue: v };
914
987
  }
915
988
  function $e(n, e) {
916
- const t = Se(), r = M(!1), s = M(!1);
917
- let b = !0, h = !1, j, P = !1;
989
+ const t = Se(), r = M(!1), c = M(!1);
990
+ let h = !0, m = !1, y, T = !1;
918
991
  function p(a) {
919
- return j && j.componentClassList && j.componentClassList.includes("f-form-layout") && j.componentClassList.includes("farris-form") ? a.sourceType === "control" && a.controlCategory === "input" || a.sourceType === "move" && a.controlType === "form-group" : !0;
992
+ return y && y.componentClassList && y.componentClassList.includes("f-form-layout") && y.componentClassList.includes("farris-form") ? a.sourceType === "control" && a.controlCategory === "input" || a.sourceType === "move" && a.controlType === "form-group" : !0;
920
993
  }
921
994
  function d(a) {
922
- return !(!Ae().basalDragulaRuleForContainer(a) || !b || !p(a));
995
+ return !(!Pe().basalDragulaRuleForContainer(a) || !h || !p(a));
923
996
  }
924
997
  function f() {
925
- r.value = !1, s.value = !1;
926
- const a = n, C = a.appearance && a.appearance.class || "", T = C.split(" "), i = a.contents || [], g = i.length ? i[0] : null, m = g && g.appearance ? g.appearance.class : "", w = m ? m.split(" ") : [], O = i.length ? i.reduce((V, S) => {
927
- const B = S && S.appearance ? S.appearance.class : "", X = B ? B.split(" ") : [];
928
- return V.push(...X), V;
929
- }, []) : [], D = e, E = D && D.appearance && D.appearance.class || "", J = E ? E.split(" ") : [];
930
- j = {
931
- componentClass: C,
932
- componentClassList: T,
998
+ r.value = !1, c.value = !1;
999
+ const a = n, j = a.appearance && a.appearance.class || "", w = j.split(" "), i = a.contents || [], C = i.length ? i[0] : null, g = C && C.appearance ? C.appearance.class : "", P = g ? g.split(" ") : [], O = i.length ? i.reduce((V, S) => {
1000
+ const B = S && S.appearance ? S.appearance.class : "", Y = B ? B.split(" ") : [];
1001
+ return V.push(...Y), V;
1002
+ }, []) : [], D = e, E = D && D.appearance && D.appearance.class || "", H = E ? E.split(" ") : [];
1003
+ y = {
1004
+ componentClass: j,
1005
+ componentClassList: w,
933
1006
  childContents: i,
934
- firstChildContent: g,
935
- firstChildClass: m,
936
- firstChildClassList: w,
1007
+ firstChildContent: C,
1008
+ firstChildClass: g,
1009
+ firstChildClassList: P,
937
1010
  parent: D,
938
1011
  parentClass: E,
939
- parentClassList: J,
1012
+ parentClassList: H,
940
1013
  children: i,
941
1014
  childrenClassList: O
942
1015
  };
943
- const { canAccept: H, fixed: Q, hidePadding: U } = t.getRuleValue(T[0], j);
944
- return b = H, h = U, P = Q, !0;
1016
+ const { canAccept: Q, fixed: U, hidePadding: X } = t.getRuleValue(w[0], y);
1017
+ return h = Q, m = X, T = U, !0;
945
1018
  }
946
- function y(a) {
947
- Y();
1019
+ function b(a) {
1020
+ Z();
948
1021
  }
949
- function A() {
1022
+ function v() {
950
1023
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
951
1024
  }
952
- function o(a, C) {
953
- const T = n;
954
- if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
955
- const { label: m } = a, w = N("form-group");
956
- return w.editor = C, w.label = m, w;
1025
+ function o(a, j) {
1026
+ const w = n;
1027
+ if ((w.appearance && w.appearance.class || "").split(" ").includes("f-form-layout")) {
1028
+ const { label: g } = a, P = N("form-group");
1029
+ return P.editor = j, P.label = g, P;
957
1030
  }
958
- return C;
1031
+ return j;
959
1032
  }
960
- function l(a, C, T) {
1033
+ function l(a, j, w) {
961
1034
  const i = n;
962
1035
  if ((i.appearance && i.appearance.class || "").split(" ").includes("f-form-layout")) {
963
- const w = String(a.innerText), O = N("form-group");
964
- return O.editor = T, O.label = w, O;
1036
+ const P = String(a.innerText), O = N("form-group");
1037
+ return O.editor = w, O.label = P, O;
965
1038
  }
966
- return T;
1039
+ return w;
967
1040
  }
968
- function c() {
969
- return !P;
1041
+ function s() {
1042
+ return !T;
970
1043
  }
971
1044
  function u() {
972
- return !P;
1045
+ return !T;
973
1046
  }
974
- function v() {
975
- return h;
1047
+ function A() {
1048
+ return m;
976
1049
  }
977
1050
  return {
978
1051
  canAccepts: d,
979
1052
  resolveComponentContext: f,
980
- getStyles: A,
1053
+ getStyles: v,
981
1054
  onAcceptNewChildElement: l,
982
- onAcceptMovedChildElement: y,
1055
+ onAcceptMovedChildElement: b,
983
1056
  onResolveNewComponentSchema: o,
984
1057
  triggerBelongedComponentToMoveWhenMoved: r,
985
- triggerBelongedComponentToDeleteWhenDeleted: s,
986
- checkCanMoveComponent: c,
1058
+ triggerBelongedComponentToDeleteWhenDeleted: c,
1059
+ checkCanMoveComponent: s,
987
1060
  checkCanDeleteComponent: u,
988
- hideNestedPaddingInDesginerView: v
1061
+ hideNestedPaddingInDesginerView: A
989
1062
  };
990
1063
  }
991
1064
  function Fe(n, e, t) {
992
- var T;
1065
+ var w;
993
1066
  function r() {
994
1067
  t != null && t.resolveComponentContext && t.resolveComponentContext();
995
1068
  }
996
1069
  r();
997
- const s = t && t.getStyles && t.getStyles() || "", b = t && t.getDesignerClass && t.getDesignerClass() || "", h = M();
998
- function j() {
1070
+ const c = t && t.getStyles && t.getStyles() || "", h = t && t.getDesignerClass && t.getDesignerClass() || "", m = M();
1071
+ function y() {
999
1072
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1000
1073
  }
1001
- function P() {
1074
+ function T() {
1002
1075
  return !1;
1003
1076
  }
1004
1077
  function p() {
@@ -1012,14 +1085,14 @@ function Fe(n, e, t) {
1012
1085
  return null;
1013
1086
  if (i.value.schema && i.value.schema.type === "component")
1014
1087
  return i.value;
1015
- const g = M(i == null ? void 0 : i.value.parent), m = f(g);
1016
- return m || null;
1088
+ const C = M(i == null ? void 0 : i.value.parent), g = f(C);
1089
+ return g || null;
1017
1090
  }
1018
- function y(i = e) {
1019
- const { componentInstance: g, designerItemElementRef: m } = i;
1020
- return !g || !g.value ? null : g.value.canMove ? m : y(i.parent);
1091
+ function b(i = e) {
1092
+ const { componentInstance: C, designerItemElementRef: g } = i;
1093
+ return !C || !C.value ? null : C.value.canMove ? g : b(i.parent);
1021
1094
  }
1022
- function A(i) {
1095
+ function v(i) {
1023
1096
  return !!t && t.canAccepts(i);
1024
1097
  }
1025
1098
  function o() {
@@ -1027,64 +1100,64 @@ function Fe(n, e, t) {
1027
1100
  }
1028
1101
  function l() {
1029
1102
  }
1030
- function c(i, g) {
1031
- g && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(g);
1103
+ function s(i, C) {
1104
+ C && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(C);
1032
1105
  }
1033
- function u(i) {
1106
+ function u(i, C) {
1034
1107
  const { componentType: g } = i;
1035
- let m = N(g, i);
1036
- t && t.onResolveNewComponentSchema && (m = t.onResolveNewComponentSchema(i, m));
1037
- const w = g.toLowerCase().replace("-", "_");
1038
- return m && !m.id && m.type === g && (m.id = `${w}_${Math.random().toString().slice(2, 6)}`), m;
1108
+ let P = N(g, i, C);
1109
+ t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(i, P));
1110
+ const O = g.toLowerCase().replace("-", "_");
1111
+ return P && !P.id && P.type === g && (P.id = `${O}_${Math.random().toString().slice(2, 6)}`), P;
1039
1112
  }
1040
- function v(i, g) {
1041
- const m = String(i.getAttribute("data-controltype")), w = i.getAttribute("data-feature"), O = w ? JSON.parse(w) : {};
1042
- O.parentComponentInstance = h.value;
1043
- let D = N(m, O);
1044
- t && t.onAcceptNewChildElement && (D = t.onAcceptNewChildElement(i, g, D));
1045
- const E = m.toLowerCase().replace("-", "_");
1046
- return D && !D.id && D.type === m && (D.id = `${E}_${Math.random().toString().slice(2, 6)}`), D;
1113
+ function A(i, C) {
1114
+ const g = String(i.getAttribute("data-controltype")), P = i.getAttribute("data-feature"), O = P ? JSON.parse(P) : {};
1115
+ O.parentComponentInstance = m.value;
1116
+ let D = N(g, O);
1117
+ t && t.onAcceptNewChildElement && (D = t.onAcceptNewChildElement(i, C, D));
1118
+ const E = g.toLowerCase().replace("-", "_");
1119
+ return D && !D.id && D.type === g && (D.id = `${E}_${Math.random().toString().slice(2, 6)}`), D;
1047
1120
  }
1048
1121
  function a(i) {
1049
1122
  }
1050
- function C(...i) {
1123
+ function j(...i) {
1051
1124
  if (t && t.getPropsConfig)
1052
1125
  return t.getPropsConfig(...i);
1053
1126
  }
1054
- return h.value = {
1055
- canMove: j(),
1056
- canSelectParent: P(),
1127
+ return m.value = {
1128
+ canMove: y(),
1129
+ canSelectParent: T(),
1057
1130
  canDelete: p(),
1058
1131
  canNested: !d(),
1059
1132
  contents: e == null ? void 0 : e.schema.contents,
1060
1133
  elementRef: n,
1061
- parent: (T = e == null ? void 0 : e.parent) == null ? void 0 : T.componentInstance,
1134
+ parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
1062
1135
  schema: e == null ? void 0 : e.schema,
1063
- styles: s,
1064
- designerClass: b,
1065
- canAccepts: A,
1136
+ styles: c,
1137
+ designerClass: h,
1138
+ canAccepts: v,
1066
1139
  getBelongedComponentInstance: f,
1067
- getDraggableDesignItemElement: y,
1140
+ getDraggableDesignItemElement: b,
1068
1141
  getDraggingDisplayText: o,
1069
- getPropConfig: C,
1142
+ getPropConfig: j,
1070
1143
  getDragScopeElement: l,
1071
- onAcceptMovedChildElement: c,
1072
- onAcceptNewChildElement: v,
1144
+ onAcceptMovedChildElement: s,
1145
+ onAcceptNewChildElement: A,
1073
1146
  onChildElementMovedOut: a,
1074
1147
  addNewChildComponentSchema: u,
1075
1148
  updateDragAndDropRules: r,
1076
1149
  triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
1077
1150
  triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
1078
- }, h;
1151
+ }, m;
1079
1152
  }
1080
1153
  const ke = ["moz", "ms", "webkit"];
1081
1154
  function Le() {
1082
1155
  let n = 0;
1083
1156
  return (e) => {
1084
- const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), s = setTimeout(() => {
1157
+ const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), c = setTimeout(() => {
1085
1158
  e(t + r);
1086
1159
  }, r);
1087
- return n = t + r, s;
1160
+ return n = t + r, c;
1088
1161
  };
1089
1162
  }
1090
1163
  function Ve() {
@@ -1097,22 +1170,22 @@ function Ve() {
1097
1170
  }
1098
1171
  Ve();
1099
1172
  function Be(n, e) {
1100
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, s) => (s && (r[s] = !0), r), n), n;
1173
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, c) => (c && (r[c] = !0), r), n), n;
1101
1174
  }
1102
- const qe = /* @__PURE__ */ W({
1175
+ const qe = /* @__PURE__ */ _({
1103
1176
  name: "FContentContainerDesign",
1104
1177
  props: L,
1105
1178
  emits: [],
1106
1179
  setup(n, e) {
1107
- var j;
1108
- const t = M(), r = Z("design-item-context"), s = $e(r.schema, (j = r.parent) == null ? void 0 : j.schema), b = Fe(t, r, s), h = R(() => Be({
1180
+ var y;
1181
+ const t = M(), r = R("design-item-context"), c = $e(r.schema, (y = r.parent) == null ? void 0 : y.schema), h = Fe(t, r, c), m = x(() => Be({
1109
1182
  "drag-container": !0
1110
1183
  }, n == null ? void 0 : n.customClass));
1111
1184
  return K(() => {
1112
- t.value.componentInstance = b;
1113
- }), e.expose(b.value), () => _("div", {
1185
+ t.value.componentInstance = h;
1186
+ }), e.expose(h.value), () => z("div", {
1114
1187
  ref: t,
1115
- class: h.value,
1188
+ class: m.value,
1116
1189
  style: n.customStyle,
1117
1190
  "data-dragref": `${r.schema.id}-container`
1118
1191
  }, [e.slots.default && e.slots.default()]);
@@ -1122,10 +1195,10 @@ const qe = /* @__PURE__ */ W({
1122
1195
  n.component($.name, $);
1123
1196
  },
1124
1197
  register(n, e, t, r) {
1125
- n["content-container"] = $, e["content-container"] = q;
1198
+ n["content-container"] = $, e["content-container"] = W;
1126
1199
  },
1127
1200
  registerDesigner(n, e, t) {
1128
- n["content-container"] = qe, e["content-container"] = q;
1201
+ n["content-container"] = qe, e["content-container"] = W;
1129
1202
  }
1130
1203
  };
1131
1204
  export {
@@ -1133,5 +1206,5 @@ export {
1133
1206
  qe as ContentContainerDesign,
1134
1207
  L as contentContainerProps,
1135
1208
  Ge as default,
1136
- q as propsResolver
1209
+ W as propsResolver
1137
1210
  };