@farris/ui-vue 1.3.0 → 1.3.3

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 (305) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +454 -398
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +479 -476
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +255 -252
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +652 -567
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +518 -521
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +659 -553
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +162 -155
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +866 -747
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +371 -998
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1174 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +340 -991
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +6066 -5847
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3400 -3486
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2328 -2446
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9551 -1200
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +234 -231
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1996 -2630
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +138 -123
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +548 -586
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2871 -3736
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3380 -3645
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10543 -3207
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9775 -1312
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +442 -438
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +587 -807
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +415 -381
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +361 -1024
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2265 -2371
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6425 -6257
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +6164 -5946
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +524 -1474
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +547 -502
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +646 -574
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1181 -2028
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1185 -2027
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +442 -1368
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +238 -235
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1635 -1713
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +791 -716
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12203 -5274
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1873 -520
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +299 -300
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +176 -173
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +715 -659
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +1032 -1883
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4767 -5693
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +169 -161
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +490 -1167
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +154 -151
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +575 -1204
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/splitter/style.js +2 -0
  136. package/components/step/index.esm.js +279 -276
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +478 -428
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2591 -3326
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +442 -439
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +309 -307
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +500 -430
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +1391 -1341
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +574 -575
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +3422 -3536
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2661 -2764
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +675 -674
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +300 -297
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +454 -1089
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +709 -706
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +54780 -52757
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/directive/area-response.d.ts +10 -0
  177. package/types/common/entity/entity-schema.d.ts +26 -11
  178. package/types/common/index.d.ts +9 -0
  179. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  180. package/types/common/types.d.ts +2 -2
  181. package/types/common/utils/resolve-field.d.ts +2 -0
  182. package/types/common/utils/use-class.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  184. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  185. package/types/condition/src/types.d.ts +5 -4
  186. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  187. package/types/data-grid/index.d.ts +8 -5
  188. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  189. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  190. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  191. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  194. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  196. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  197. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  198. package/types/data-view/composition/types.d.ts +9 -11
  199. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  200. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  201. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  202. package/types/designer-canvas/index.d.ts +3 -1
  203. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  204. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  205. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  206. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  207. package/types/designer-canvas/src/composition/types.d.ts +49 -41
  208. package/types/designer-canvas/src/types.d.ts +10 -21
  209. package/types/dynamic-form/index.d.ts +1 -1
  210. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  211. package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
  212. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  213. package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
  214. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  215. package/types/dynamic-form/src/types.d.ts +1 -1
  216. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
  217. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  218. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  219. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  220. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  221. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  222. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  223. package/types/event-parameter/index.d.ts +31 -0
  224. package/types/event-parameter/src/composition/type.d.ts +77 -0
  225. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  226. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  227. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  228. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  229. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  230. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  231. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  232. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  233. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  234. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  235. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  236. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  237. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  238. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  239. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  240. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  241. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  242. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  243. package/types/modal/src/composition/modal.service.d.ts +2 -1
  244. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  245. package/types/page-header/src/page-header.component.d.ts +1 -1
  246. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  247. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  248. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  249. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  250. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  251. package/types/property-panel/index.d.ts +3 -1
  252. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  253. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  254. package/types/property-panel/src/composition/type.d.ts +0 -13
  255. package/types/query-solution/src/composition/types.d.ts +35 -4
  256. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  257. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  258. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  259. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
  260. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  262. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  264. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
  266. package/types/query-solution/src/query-solution.d.ts +10 -2
  267. package/types/query-solution/src/solutions.d.ts +108 -509
  268. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  269. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  270. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  271. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  272. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  273. package/types/response-layout-editor/index.d.ts +3 -1
  274. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  275. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  276. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  277. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  278. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  279. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  280. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  281. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  282. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  283. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  284. package/types/tabs/src/composition/types.d.ts +4 -1
  285. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  286. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  287. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  288. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  289. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  290. package/types/text/src/composition/types.d.ts +4 -4
  291. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  292. package/types/tree-grid/index.d.ts +3 -3
  293. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  294. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  295. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  296. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  297. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  298. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  299. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  300. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
  301. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  302. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  303. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  304. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  305. package/types/weather/src/composition/types.d.ts +0 -2
@@ -1,111 +1,155 @@
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";
1
+ import { defineComponent as j, createVNode as N, nextTick as q, ref as k, inject as S, computed as G, onMounted as W } from "vue";
2
+ import { isPlainObject as E, cloneDeep as _ } from "lodash-es";
3
3
  import "bignumber.js";
4
- const G = {}, J = {};
5
- function k(n) {
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;
4
+ const O = {}, V = {};
5
+ function A(n) {
6
+ const { properties: e, title: t, ignore: r } = n, o = r && Array.isArray(r), c = Object.keys(e).reduce((a, u) => ((!o || !r.find((y) => y === u)) && (a[u] = e[u].type === "object" && e[u].properties ? A(e[u]) : _(e[u].default)), a), {});
7
+ if (t && (!o || !r.find((a) => a === "id"))) {
8
+ const a = t.toLowerCase().replace(/-/g, "_");
9
+ c.id = `${a}_${Math.random().toString().slice(2, 6)}`;
10
+ }
11
+ return c;
8
12
  }
9
- function N(n, e = {}, t) {
10
- const r = G[n];
13
+ function $(n, e = {}, t) {
14
+ const r = O[n];
11
15
  if (r) {
12
- let c = k(r);
13
- const h = J[n];
14
- return c = h ? h({ getSchemaByType: N }, c, e, t) : c, c;
16
+ let o = A(r);
17
+ const c = V[n];
18
+ return o = c ? c({ getSchemaByType: $ }, o, e, t) : o, o;
15
19
  }
16
20
  return null;
17
21
  }
18
- function ee(n, e) {
19
- const t = k(e);
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;
22
+ function U(n, e) {
23
+ const t = A(e);
24
+ return Object.keys(t).reduce((r, o) => (r[o] && E(r[o]) && E(n[o] || !n[o]) ? Object.assign(r[o], n[o] || {}) : r[o] = n[o], r), t), t;
21
25
  }
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];
26
+ function z(n, e) {
27
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
28
+ if (e.has(o)) {
29
+ const c = e.get(o);
30
+ if (typeof c == "string")
31
+ r[c] = n[o];
28
32
  else {
29
- const m = h(c, n[c], n);
30
- Object.assign(r, m);
33
+ const a = c(o, n[o], n);
34
+ Object.assign(r, a);
31
35
  }
32
36
  } else
33
- r[c] = n[c];
37
+ r[o] = n[o];
34
38
  return r;
35
39
  }, {});
36
40
  }
37
- function ne(n, e, t = /* @__PURE__ */ new Map()) {
38
- const r = ee(n, e);
39
- return te(r, t);
41
+ function Q(n, e, t = /* @__PURE__ */ new Map()) {
42
+ const r = U(n, e);
43
+ return z(r, t);
40
44
  }
41
- function oe(n = {}) {
42
- function e(p, d, f, b) {
43
- if (typeof f == "number")
44
- return b[p].length === f;
45
- if (typeof f == "object") {
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);
45
+ function J(n = {}) {
46
+ function e(i, s, l, p) {
47
+ if (typeof l == "number")
48
+ return p[i].length === l;
49
+ if (typeof l == "object") {
50
+ const m = Object.keys(l)[0], h = l[m];
51
+ if (m === "not")
52
+ return Number(p[i].length) !== Number(h);
53
+ if (m === "moreThan")
54
+ return Number(p[i].length) >= Number(h);
55
+ if (m === "lessThan")
56
+ return Number(p[i].length) <= Number(h);
53
57
  }
54
58
  return !1;
55
59
  }
56
- function t(p, d, f, b) {
57
- return b[p] && b[p].propertyValue && String(b[p].propertyValue.value) === String(f);
60
+ function t(i, s, l, p) {
61
+ return p[i] && p[i].propertyValue && String(p[i].propertyValue.value) === String(l);
58
62
  }
59
63
  const r = /* @__PURE__ */ new Map([
60
64
  ["length", e],
61
65
  ["getProperty", t]
62
66
  ]);
63
- Object.keys(n).reduce((p, d) => (p.set(d, n[d]), p), r);
64
- function c(p, d) {
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((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 };
67
+ Object.keys(n).reduce((i, s) => (i.set(s, n[s]), i), r);
68
+ function o(i, s) {
69
+ const l = i;
70
+ return typeof s == "number" ? [{ target: l, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: l, operator: "getProperty", param: i, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
71
+ if (p === "length")
72
+ return { target: l, operator: "length", param: null, value: s[p] };
73
+ const m = p, h = s[p];
74
+ return { target: l, operator: "getProperty", param: m, value: h };
71
75
  }) : [];
72
76
  }
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
+ function c(i) {
78
+ return Object.keys(i).reduce((l, p) => {
79
+ const m = o(p, i[p]);
80
+ return l.push(...m), l;
77
81
  }, []);
78
82
  }
79
- function m(p, d) {
80
- if (r.has(p.operator)) {
81
- const f = r.get(p.operator);
82
- return f && f(p.target, p.param, p.value, d) || !1;
83
+ function a(i, s) {
84
+ if (r.has(i.operator)) {
85
+ const l = r.get(i.operator);
86
+ return l && l(i.target, i.param, i.value, s) || !1;
83
87
  }
84
88
  return !1;
85
89
  }
86
- function y(p, d) {
87
- return h(p).reduce((v, o) => v && m(o, d), !0);
90
+ function u(i, s) {
91
+ return c(i).reduce((m, h) => m && a(h, s), !0);
88
92
  }
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);
93
+ function y(i, s) {
94
+ const l = Object.keys(i), p = l.includes("allOf"), m = l.includes("anyOf"), h = p || m, C = (h ? i[h ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((w) => u(w, s));
95
+ return p ? !C.includes(!1) : C.includes(!0);
92
96
  }
93
- return { parseValueSchema: T };
97
+ return { parseValueSchema: y };
94
98
  }
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);
99
+ const T = {
100
+ button: { type: "button", name: "按钮", icon: "Button" },
101
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
102
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
103
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
104
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
105
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
106
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
107
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
108
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
109
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
110
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
111
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
112
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
113
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
114
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
115
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
116
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
117
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
118
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
119
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
120
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
121
+ module: { type: "Module", name: "模块", icon: "Module" },
122
+ component: { type: "component", name: "组件", icon: "Component" },
123
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
124
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
125
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
126
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
127
+ section: { type: "section", name: "分组面板", icon: "Section" },
128
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
129
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
130
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
131
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
132
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
133
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
134
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
135
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
136
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
137
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
138
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
139
+ }, X = {}, Y = {};
140
+ J();
141
+ function Z(n, e, t = /* @__PURE__ */ new Map(), r = (a, u, y, i) => u, o = {}, c = (a) => a) {
142
+ return O[e.title] = e, V[e.title] = r, X[e.title] = o, Y[e.title] = c, (a = {}) => {
143
+ const u = Q(a, e, t), y = Object.keys(n).reduce((i, s) => (i[s] = n[s].default, i), {});
144
+ return Object.assign(y, u);
101
145
  };
102
146
  }
103
- function ae(n, e) {
147
+ function H(n, e) {
104
148
  return { customClass: e.class, customStyle: e.style };
105
149
  }
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 = {
150
+ const K = /* @__PURE__ */ new Map([
151
+ ["appearance", H]
152
+ ]), x = "https://json-schema.org/draft/2020-12/schema", I = "https://farris-design.gitee.io/content-container.schema.json", ee = "content-container", te = "A Farris Container Component", ne = "object", oe = {
109
153
  id: {
110
154
  description: "The unique identifier for a Section",
111
155
  type: "string"
@@ -151,19 +195,19 @@ const ie = /* @__PURE__ */ new Map([
151
195
  type: "boolean",
152
196
  default: !0
153
197
  }
154
- }, be = [
198
+ }, ae = [
155
199
  "id",
156
200
  "type",
157
201
  "contents"
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 = {
202
+ ], re = {
203
+ $schema: x,
204
+ $id: I,
205
+ title: ee,
206
+ description: te,
207
+ type: ne,
208
+ properties: oe,
209
+ required: ae
210
+ }, ce = "content-container", ie = "A Farris Container Component", se = "object", le = {
167
211
  basic: {
168
212
  description: "Basic Infomation",
169
213
  title: "基本信息",
@@ -206,1005 +250,310 @@ const ie = /* @__PURE__ */ new Map([
206
250
  }
207
251
  }
208
252
  }
209
- }, Ae = {
210
- title: he,
211
- description: ge,
212
- type: je,
213
- categories: Ce
253
+ }, pe = {
254
+ title: ce,
255
+ description: ie,
256
+ type: se,
257
+ categories: le
214
258
  };
215
- function ve(n, e, t) {
259
+ function ue(n, e, t) {
216
260
  return e;
217
261
  }
218
- const L = {
262
+ const P = {
219
263
  customClass: { type: String, default: "" },
220
264
  customStyle: { type: String, default: "" }
221
- }, W = se(L, me, ie, ve, Ae), $ = /* @__PURE__ */ _({
265
+ }, B = Z(P, re, K, ue, pe), L = /* @__PURE__ */ j({
222
266
  name: "FContentContainer",
223
- props: L,
267
+ props: P,
224
268
  emits: [],
225
269
  setup(n, e) {
226
- return () => z("div", {
270
+ return () => N("div", {
227
271
  class: n.customClass,
228
272
  style: n.customStyle
229
273
  }, [e.slots.default && e.slots.default()]);
230
274
  }
231
275
  });
232
- function Pe() {
233
- function n(e) {
234
- var c, h;
276
+ function fe() {
277
+ function n(e, t) {
278
+ var a;
235
279
  if (!e)
236
280
  return !1;
237
- const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
238
- if (!t)
281
+ const r = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
282
+ if (!r)
239
283
  return !1;
240
- const r = (h = t.schema.appearance) == null ? void 0 : h.class;
241
- if (e.controlCategory === "input" || e.controlType === "form-group") {
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
- return !1;
245
- }
246
- return e.controlType !== "field-set";
284
+ const o = r.schema.type, c = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
285
+ return !((e.componentCategory === "input" || e.componentType === "form-group") && ![T["response-layout-item"].type, T["response-form"].type].includes(o) || (e.componentType === T.tabs.type || e.componentType === T.section.type) && ((c == null ? void 0 : c.componentType) !== "frame" || ![T["content-container"].type, T["splitter-pane"].type, T["response-layout-item"].type].includes(o)));
247
286
  }
248
287
  return {
249
288
  basalDragulaRuleForContainer: n
250
289
  };
251
290
  }
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
- "f-page": {
254
- description: "The root class of page designed by farris.",
255
- type: "object",
256
- properties: {
257
- contents: {
258
- type: "object",
259
- properties: {
260
- "f-page-header": {
261
- description: "The class of page header designed by farris.",
262
- type: "string"
263
- },
264
- "f-page-main": {
265
- description: "The class of page body designed by farris.",
266
- type: "object",
267
- properties: {
268
- contents: {
269
- type: "object",
270
- properties: {
271
- "f-struct-like-card": {
272
- description: "",
273
- type: "object",
274
- properties: {
275
- contents: {
276
- type: "object",
277
- properties: {
278
- "f-struct-form": {
279
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
280
- type: "object",
281
- properties: {
282
- contents: {
283
- type: "object",
284
- properties: {
285
- "f-section-form": {
286
- description: "The class of section which has wrapped a reponse-form component.",
287
- type: "object",
288
- properties: {
289
- contents: {
290
- type: "object",
291
- properties: {
292
- "f-form-layout": {
293
- description: "The class of reponse form",
294
- type: "object",
295
- properties: {
296
- rules: {
297
- type: "object",
298
- properties: {
299
- canAccept: {
300
- type: "boolean",
301
- const: !0
302
- },
303
- fixed: {
304
- type: "boolean",
305
- const: !0
306
- },
307
- hidePadding: {
308
- type: "boolean",
309
- const: !1
310
- }
311
- }
312
- }
313
- }
314
- }
315
- }
316
- },
317
- rules: {
318
- type: "object",
319
- properties: {
320
- canAccept: {
321
- type: "boolean",
322
- const: !1
323
- },
324
- fixed: {
325
- type: "boolean",
326
- const: !0
327
- },
328
- hidePadding: {
329
- type: "boolean",
330
- const: !0
331
- }
332
- }
333
- }
334
- }
335
- }
336
- }
337
- },
338
- rules: {
339
- type: "object",
340
- properties: {
341
- canAccept: {
342
- type: "boolean",
343
- const: !1
344
- },
345
- fixed: {
346
- type: "boolean",
347
- const: !1
348
- },
349
- hidePadding: {
350
- type: "boolean",
351
- const: !0
352
- }
353
- }
354
- }
355
- }
356
- },
357
- "f-struct-wrapper": {
358
- description: "",
359
- type: "object",
360
- properties: {
361
- contents: {
362
- type: "object",
363
- properties: {
364
- "f-section-tabs": {
365
- description: "The class of section which has wrapped sub-grid tabs.",
366
- type: "object",
367
- properties: {
368
- contents: {
369
- type: "object",
370
- properties: {
371
- "f-tabs-in-card": {
372
- description: "The class of tabs which contains sub-grid.",
373
- type: "object",
374
- properties: {
375
- contents: {
376
- type: "object",
377
- properties: {
378
- "f-struct-data-grid-in-card": {
379
- description: "The class of sub-grid component",
380
- type: "object",
381
- properties: {
382
- contents: {
383
- type: "object",
384
- properties: {
385
- "f-grid-is-sub": {
386
- description: "The class of sub-grid",
387
- type: "object",
388
- properties: {
389
- rules: {
390
- type: "object",
391
- properties: {
392
- canAccept: {
393
- type: "boolean",
394
- const: !0
395
- },
396
- fixed: {
397
- type: "boolean",
398
- const: !0
399
- },
400
- hidePadding: {
401
- type: "boolean",
402
- const: !1
403
- }
404
- }
405
- }
406
- }
407
- }
408
- }
409
- },
410
- rules: {
411
- type: "object",
412
- properties: {
413
- canAccept: {
414
- type: "boolean",
415
- const: !1
416
- },
417
- fixed: {
418
- type: "boolean",
419
- const: !1
420
- },
421
- hidePadding: {
422
- type: "boolean",
423
- const: !0
424
- }
425
- }
426
- }
427
- }
428
- }
429
- }
430
- },
431
- rules: {
432
- type: "object",
433
- properties: {
434
- canAccept: {
435
- type: "boolean",
436
- const: !1
437
- },
438
- fixed: {
439
- type: "boolean",
440
- const: !0
441
- },
442
- hidePadding: {
443
- type: "boolean",
444
- const: !0
445
- }
446
- }
447
- }
448
- }
449
- }
450
- }
451
- },
452
- rules: {
453
- type: "object",
454
- properties: {
455
- canAccept: {
456
- type: "boolean",
457
- const: !1
458
- },
459
- fixed: {
460
- type: "boolean",
461
- const: !0
462
- },
463
- hidePadding: {
464
- type: "boolean",
465
- const: !0
466
- }
467
- }
468
- }
469
- }
470
- },
471
- "f-section-in-main": {
472
- description: "The class of section which has wrapped a reponse-form component.",
473
- type: "object",
474
- properties: {
475
- rules: {
476
- type: "object",
477
- properties: {
478
- canAccept: {
479
- type: "boolean",
480
- const: !0
481
- },
482
- fixed: {
483
- type: "boolean",
484
- const: !0
485
- },
486
- hidePadding: {
487
- type: "boolean",
488
- const: !1
489
- }
490
- }
491
- }
492
- }
493
- }
494
- }
495
- },
496
- rules: {
497
- type: "object",
498
- properties: {
499
- canAccept: {
500
- type: "boolean",
501
- const: !1
502
- },
503
- fixed: {
504
- type: "boolean",
505
- const: !1
506
- },
507
- hidePadding: {
508
- type: "boolean",
509
- const: !0
510
- }
511
- }
512
- }
513
- }
514
- }
515
- }
516
- },
517
- rules: {
518
- type: "object",
519
- properties: {
520
- canAccept: {
521
- type: "boolean",
522
- const: !0
523
- },
524
- fixed: {
525
- type: "boolean",
526
- const: !0
527
- },
528
- hidePadding: {
529
- type: "object",
530
- const: {
531
- allOf: [
532
- {
533
- sibling: 0,
534
- parent: {
535
- "f-page-main": !0
536
- }
537
- }
538
- ]
539
- }
540
- }
541
- }
542
- }
543
- }
544
- },
545
- "f-struct-data-grid": {
546
- description: "",
547
- type: "object",
548
- properties: {
549
- rules: {
550
- type: "object",
551
- properties: {
552
- canAccept: {
553
- type: "object",
554
- const: !0
555
- },
556
- fixed: {
557
- type: "boolean",
558
- const: !0
559
- },
560
- hidePadding: {
561
- type: "boolean",
562
- const: !0
563
- }
564
- }
565
- }
566
- }
567
- },
568
- "f-page-main-content": {
569
- description: "",
570
- type: "object",
571
- properties: {
572
- contents: {
573
- type: "object",
574
- properties: {
575
- "f-page-content-nav": {
576
- description: "",
577
- type: "object",
578
- properties: {
579
- contents: {
580
- type: "object",
581
- properties: {
582
- "f-struct-data-grid-in-nav": {
583
- description: "",
584
- type: "object",
585
- properties: {
586
- contents: {
587
- type: "object",
588
- properties: {
589
- "f-page-content-nav-extend": {
590
- description: "",
591
- type: "object"
592
- },
593
- "f-section-in-nav": {
594
- description: "",
595
- type: "object",
596
- properties: {
597
- rules: {
598
- type: "object",
599
- properties: {
600
- canAccept: {
601
- type: "boolean",
602
- const: !1
603
- },
604
- fixed: {
605
- type: "boolean",
606
- const: !0
607
- },
608
- hidePadding: {
609
- type: "boolean",
610
- const: !1
611
- }
612
- }
613
- }
614
- }
615
- }
616
- }
617
- },
618
- rules: {
619
- type: "object",
620
- properties: {
621
- canAccept: {
622
- type: "boolean",
623
- const: !0
624
- },
625
- fixed: {
626
- type: "boolean",
627
- const: !1
628
- },
629
- hidePadding: {
630
- type: "boolean",
631
- const: !0
632
- }
633
- }
634
- }
635
- }
636
- }
637
- }
638
- }
639
- }
640
- },
641
- "f-page-content-main": {
642
- description: "",
643
- type: "object",
644
- properties: {}
645
- }
646
- }
647
- }
648
- }
649
- },
650
- "f-page-content": {
651
- description: "",
652
- type: "object",
653
- properties: {
654
- contents: {
655
- type: "object",
656
- properties: {
657
- "f-page-content-nav": {
658
- description: "",
659
- type: "object",
660
- properties: {
661
- contents: {
662
- type: "object",
663
- properties: {
664
- "f-list-nav": {
665
- description: "",
666
- type: "object"
667
- },
668
- "f-list-nav-left": {
669
- description: "",
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
- }
745
- }
746
- }
747
- }
748
- },
749
- rules: {
750
- type: "object",
751
- properties: {
752
- canAccept: {
753
- type: "boolean",
754
- const: !1
755
- },
756
- fixed: {
757
- type: "boolean",
758
- const: !0
759
- },
760
- hidePadding: {
761
- type: "boolean",
762
- const: !0
763
- }
764
- }
765
- }
766
- },
767
- "f-page-content-main": {
768
- description: "",
769
- type: "object",
770
- properties: {
771
- rules: {
772
- type: "object",
773
- properties: {
774
- canAccept: {
775
- type: "boolean",
776
- const: !1
777
- },
778
- fixed: {
779
- type: "boolean",
780
- const: !1
781
- },
782
- hidePadding: {
783
- type: "boolean",
784
- const: !0
785
- }
786
- }
787
- }
788
- }
789
- }
790
- }
791
- },
792
- rules: {
793
- type: "object",
794
- properties: {
795
- canAccept: {
796
- type: "boolean",
797
- const: !1
798
- },
799
- fixed: {
800
- type: "boolean",
801
- const: !0
802
- },
803
- hidePadding: {
804
- type: "boolean",
805
- const: !0
806
- }
807
- }
808
- }
809
- }
810
- }
811
- }
812
- },
813
- rules: {
814
- type: "object",
815
- properties: {
816
- canAccept: {
817
- type: "object",
818
- const: {
819
- anyOf: [
820
- {
821
- children: 0
822
- },
823
- {
824
- children: {
825
- length: {
826
- not: 1
827
- },
828
- "f-struct-like-card": !0
829
- }
830
- },
831
- {
832
- children: {
833
- "scroll-spy": !1,
834
- "f-page-content": !1,
835
- "f-struct-like-card": !1
836
- }
837
- }
838
- ]
839
- }
840
- },
841
- fixed: {
842
- type: "boolean",
843
- const: !0
844
- },
845
- hidePadding: {
846
- type: "boolean",
847
- const: !0
848
- }
849
- }
850
- }
851
- }
852
- },
853
- "f-page-footer": {
854
- description: "The class of page footer designed by farris.",
855
- type: "string"
291
+ class me {
292
+ getTemplateRule(e, t) {
293
+ const r = t == null ? void 0 : t.formSchemaUtils, o = r == null ? void 0 : r.getFormTemplateRule(), c = { canAccept: !0, canDelete: !0, canMove: !0 };
294
+ if (!o)
295
+ return c;
296
+ const a = this.getComponentContext(e), { componentClassList: u } = a;
297
+ return u.forEach((y) => {
298
+ if (!y || !o[y])
299
+ return;
300
+ const { canMove: i, canDelete: s, canAccept: l } = o[y];
301
+ c.canMove = c.canMove && this.resolveRuleValue(i, a), c.canDelete = c.canDelete && this.resolveRuleValue(s, a), c.canAccept = c.canAccept && this.resolveRuleValue(l, a);
302
+ }), c;
303
+ }
304
+ resolveRuleValue(e, t) {
305
+ return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
306
+ }
307
+ parseRuleValueSchema(e, t) {
308
+ const r = e.invalidContext || [];
309
+ let o = !0;
310
+ for (const c of r) {
311
+ if (c.firstLevelChild) {
312
+ if (c.firstLevelChild.class) {
313
+ const { firstLevelChildClassList: a } = t;
314
+ if (a && !a.includes(c.firstLevelChild.class)) {
315
+ o = !1;
316
+ continue;
856
317
  }
857
318
  }
858
- },
859
- rules: {
860
- type: "object",
861
- properties: {
862
- canAccept: {
863
- type: "boolean",
864
- const: !1
865
- },
866
- fixed: {
867
- type: "boolean",
868
- const: !0
869
- },
870
- hidePadding: {
871
- type: "boolean",
872
- const: !0
319
+ if (c.firstLevelChild.type) {
320
+ const { firstLevelChildSchema: a } = t;
321
+ if (!a || a.type !== c.firstLevelChild.type) {
322
+ o = !1;
323
+ continue;
873
324
  }
874
325
  }
875
326
  }
327
+ if (c.secondLevelChild) {
328
+ if (c.secondLevelChild.class) {
329
+ const { secondLevelChildClassList: a } = t;
330
+ if (a && !a.includes(c.secondLevelChild.class)) {
331
+ o = !1;
332
+ continue;
333
+ }
334
+ }
335
+ if (c.secondLevelChild.type) {
336
+ const { secondLevelChildSchema: a } = t;
337
+ if (!a || a.type !== c.secondLevelChild.type) {
338
+ o = !1;
339
+ continue;
340
+ }
341
+ }
342
+ }
343
+ if (c.parent) {
344
+ if (c.parent.class) {
345
+ const { parentClassList: a } = t;
346
+ if (a && !a.includes(c.parent.class)) {
347
+ o = !1;
348
+ continue;
349
+ }
350
+ }
351
+ if (c.parent.type) {
352
+ const { parentSchema: a } = t;
353
+ if (a && a.type !== c.parent.type) {
354
+ o = !1;
355
+ continue;
356
+ }
357
+ }
358
+ }
359
+ o = !0;
360
+ break;
876
361
  }
877
- },
878
- "f-page-is-managelist": {
879
- description: "The root class of mangement list page.",
880
- type: "string"
881
- },
882
- "f-page-card": {
883
- description: "",
884
- type: "object"
885
- },
886
- "f-page-is-mainsubcard": {
887
- description: "",
888
- type: "object"
889
- }
890
- }, Ne = {
891
- $schema: Te,
892
- $id: we,
893
- title: De,
894
- description: Oe,
895
- type: Me,
896
- properties: Ee
897
- }, F = /* @__PURE__ */ new Map();
898
- function Se() {
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];
905
- if (a === "not")
906
- return Number(u[o].length) !== Number(j);
907
- if (a === "moreThan")
908
- return Number(u[o].length) >= Number(j);
909
- if (a === "lessThan")
910
- return Number(u[o].length) <= Number(j);
911
- }
912
- return !1;
913
- }
914
- function e(o, l, s, u) {
915
- return typeof s == "boolean" ? u.childrenClassList.includes(l) === !!s : !1;
916
- }
917
- function t(o, l, s, u) {
918
- return typeof s == "boolean" ? u.parentClassList.includes(l) === !!s : !1;
919
- }
920
- function r(o, l, s, u) {
921
- return typeof s == "boolean" ? u.parentClassList.includes(l) === !!s : !1;
922
- }
923
- const c = /* @__PURE__ */ new Map([
924
- ["length", n],
925
- ["hasChildren", e],
926
- ["hasSibling", r],
927
- ["hasParent", t]
928
- ]);
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) => {
932
- if (u === "length")
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 };
936
- }) : [];
937
- }
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;
942
- }
943
- return !1;
944
- }
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);
950
- }
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));
953
- return u ? !i.includes(!1) : i.includes(!0);
954
- }
955
- function p(o, l) {
956
- const s = o.const;
957
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? T(s, l) : !1 : !1;
958
- }
959
- function d(o) {
960
- return (l) => {
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;
362
+ return !o;
363
+ }
364
+ getComponentContext(e) {
365
+ var g, D, C, M;
366
+ const t = e.schema, r = t.appearance && t.appearance.class || "", o = r.split(" ") || [], c = t.contents || [], a = c.length ? c[0] : null, u = a && a.appearance ? a.appearance.class : "", y = u ? u.split(" ") : [], i = (g = a == null ? void 0 : a.contents) != null && g.length ? a == null ? void 0 : a.contents[0] : null, s = i && i.appearance ? i.appearance.class : "", l = s ? s.split(" ") : [], p = t.type === "component" ? (C = (D = e.parent) == null ? void 0 : D.parent) == null ? void 0 : C.schema : (M = e.parent) == null ? void 0 : M.schema, m = p && p.appearance && p.appearance.class || "", h = m ? m.split(" ") : [];
367
+ return {
368
+ componentClass: r,
369
+ componentClassList: o,
370
+ childContents: c,
371
+ firstLevelChildSchema: a,
372
+ firstLevelChildClass: u,
373
+ firstLevelChildClassList: y,
374
+ secondLevelChildSchema: i,
375
+ secondLevelChildClass: s,
376
+ secondLevelChildClassList: l,
377
+ parentSchema: p,
378
+ parentClass: m,
379
+ parentClassList: h
966
380
  };
967
381
  }
968
- function f(o, l, s) {
969
- if (l.type === "object" && l.properties) {
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)
973
- );
974
- }
975
- }
976
- function b() {
977
- const { properties: o } = Ne;
978
- Object.keys(o).forEach((l) => {
979
- f(l, o[l], F);
980
- });
981
- }
982
- function v(o, l) {
983
- const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
984
- return F.has(o) ? F.get(o)(l) : s;
985
- }
986
- return b(), { getRuleValue: v };
987
382
  }
988
- function $e(n, e) {
989
- const t = Se(), r = M(!1), c = M(!1);
990
- let h = !0, m = !1, y, T = !1;
991
- function p(a) {
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;
993
- }
994
- function d(a) {
995
- return !(!Pe().basalDragulaRuleForContainer(a) || !h || !p(a));
996
- }
997
- function f() {
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,
1006
- childContents: i,
1007
- firstChildContent: C,
1008
- firstChildClass: g,
1009
- firstChildClassList: P,
1010
- parent: D,
1011
- parentClass: E,
1012
- parentClassList: H,
1013
- children: i,
1014
- childrenClassList: O
1015
- };
1016
- const { canAccept: Q, fixed: U, hidePadding: X } = t.getRuleValue(w[0], y);
1017
- return h = Q, m = X, T = U, !0;
1018
- }
1019
- function b(a) {
1020
- Z();
1021
- }
1022
- function v() {
1023
- return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1024
- }
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;
1030
- }
1031
- return j;
383
+ function ye(n, e) {
384
+ const t = n.schema, r = new me();
385
+ function o(s) {
386
+ if (!fe().basalDragulaRuleForContainer(s, e))
387
+ return !1;
388
+ const { canAccept: p } = r.getTemplateRule(n, e);
389
+ return p;
1032
390
  }
1033
- function l(a, j, w) {
1034
- const i = n;
1035
- if ((i.appearance && i.appearance.class || "").split(" ").includes("f-form-layout")) {
1036
- const P = String(a.innerText), O = N("form-group");
1037
- return O.editor = w, O.label = P, O;
1038
- }
1039
- return w;
391
+ function c(s) {
392
+ q();
1040
393
  }
1041
- function s() {
1042
- return !T;
394
+ function a() {
395
+ return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1043
396
  }
1044
397
  function u() {
1045
- return !T;
398
+ const { canMove: s } = r.getTemplateRule(n, e);
399
+ return s;
400
+ }
401
+ function y() {
402
+ const { canDelete: s } = r.getTemplateRule(n, e);
403
+ return s;
1046
404
  }
1047
- function A() {
1048
- return m;
405
+ function i() {
406
+ const { canMove: s, canDelete: l } = r.getTemplateRule(n, e);
407
+ return !s && !l;
1049
408
  }
1050
409
  return {
1051
- canAccepts: d,
1052
- resolveComponentContext: f,
1053
- getStyles: v,
1054
- onAcceptNewChildElement: l,
1055
- onAcceptMovedChildElement: b,
1056
- onResolveNewComponentSchema: o,
1057
- triggerBelongedComponentToMoveWhenMoved: r,
1058
- triggerBelongedComponentToDeleteWhenDeleted: c,
1059
- checkCanMoveComponent: s,
1060
- checkCanDeleteComponent: u,
1061
- hideNestedPaddingInDesginerView: A
410
+ canAccepts: o,
411
+ getStyles: a,
412
+ onAcceptMovedChildElement: c,
413
+ checkCanMoveComponent: u,
414
+ checkCanDeleteComponent: y,
415
+ hideNestedPaddingInDesginerView: i
1062
416
  };
1063
417
  }
1064
- function Fe(n, e, t) {
1065
- var w;
1066
- function r() {
1067
- t != null && t.resolveComponentContext && t.resolveComponentContext();
1068
- }
1069
- r();
1070
- const c = t && t.getStyles && t.getStyles() || "", h = t && t.getDesignerClass && t.getDesignerClass() || "", m = M();
1071
- function y() {
418
+ function he(n, e, t) {
419
+ var F;
420
+ const r = t && t.getStyles && t.getStyles() || "", o = t && t.getDesignerClass && t.getDesignerClass() || "", c = k();
421
+ function a() {
1072
422
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1073
423
  }
1074
- function T() {
424
+ function u() {
1075
425
  return !1;
1076
426
  }
1077
- function p() {
427
+ function y() {
1078
428
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1079
429
  }
1080
- function d() {
430
+ function i() {
1081
431
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1082
432
  }
1083
- function f(i) {
1084
- if (!i || !i.value)
433
+ function s(f) {
434
+ if (!f || !f.value)
1085
435
  return null;
1086
- if (i.value.schema && i.value.schema.type === "component")
1087
- return i.value;
1088
- const C = M(i == null ? void 0 : i.value.parent), g = f(C);
1089
- return g || null;
436
+ if (f.value.schema && f.value.schema.type === "component")
437
+ return f.value;
438
+ const d = k(f == null ? void 0 : f.value.parent), b = s(d);
439
+ return b || null;
1090
440
  }
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);
441
+ function l(f = e) {
442
+ const { componentInstance: d, designerItemElementRef: b } = f;
443
+ return !d || !d.value ? null : d.value.canMove ? b : l(f.parent);
1094
444
  }
1095
- function v(i) {
1096
- return !!t && t.canAccepts(i);
445
+ function p(f) {
446
+ return !!t && t.canAccepts(f);
1097
447
  }
1098
- function o() {
448
+ function m() {
1099
449
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1100
450
  }
1101
- function l() {
1102
- }
1103
- function s(i, C) {
1104
- C && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(C);
451
+ function h() {
1105
452
  }
1106
- function u(i, C) {
1107
- const { componentType: g } = i;
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;
453
+ function g(f, d) {
454
+ d && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(d);
1112
455
  }
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;
456
+ function D(f, d) {
457
+ const { componentType: b } = f;
458
+ let v = $(b, f, d);
459
+ t && t.onResolveNewComponentSchema && (v = t.onResolveNewComponentSchema(f, v));
460
+ const R = b.toLowerCase().replace(/-/g, "_");
461
+ return v && !v.id && v.type === b && (v.id = `${R}_${Math.random().toString().slice(2, 6)}`), v;
1120
462
  }
1121
- function a(i) {
463
+ function C(f) {
1122
464
  }
1123
- function j(...i) {
465
+ function M(...f) {
1124
466
  if (t && t.getPropsConfig)
1125
- return t.getPropsConfig(...i);
467
+ return t.getPropsConfig(...f);
468
+ }
469
+ function w() {
470
+ t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((f) => {
471
+ var v;
472
+ let d = f.id;
473
+ f.type === "component-ref" && (d = f.component);
474
+ const b = n.value.querySelector(`#${d}-design-item`);
475
+ (v = b == null ? void 0 : b.componentInstance) != null && v.value.onRemoveComponent && b.componentInstance.value.onRemoveComponent();
476
+ });
1126
477
  }
1127
- return m.value = {
1128
- canMove: y(),
1129
- canSelectParent: T(),
1130
- canDelete: p(),
1131
- canNested: !d(),
478
+ return c.value = {
479
+ canMove: a(),
480
+ canSelectParent: u(),
481
+ canDelete: y(),
482
+ canNested: !i(),
1132
483
  contents: e == null ? void 0 : e.schema.contents,
1133
484
  elementRef: n,
1134
- parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
485
+ parent: (F = e == null ? void 0 : e.parent) == null ? void 0 : F.componentInstance,
1135
486
  schema: e == null ? void 0 : e.schema,
1136
- styles: c,
1137
- designerClass: h,
1138
- canAccepts: v,
1139
- getBelongedComponentInstance: f,
1140
- getDraggableDesignItemElement: b,
1141
- getDraggingDisplayText: o,
1142
- getPropConfig: j,
1143
- getDragScopeElement: l,
1144
- onAcceptMovedChildElement: s,
1145
- onAcceptNewChildElement: A,
1146
- onChildElementMovedOut: a,
1147
- addNewChildComponentSchema: u,
1148
- updateDragAndDropRules: r,
1149
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
1150
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
1151
- }, m;
487
+ styles: r,
488
+ designerClass: o,
489
+ canAccepts: p,
490
+ getBelongedComponentInstance: s,
491
+ getDraggableDesignItemElement: l,
492
+ getDraggingDisplayText: m,
493
+ getPropConfig: M,
494
+ getDragScopeElement: h,
495
+ onAcceptMovedChildElement: g,
496
+ onChildElementMovedOut: C,
497
+ addNewChildComponentSchema: D,
498
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
499
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1),
500
+ onRemoveComponent: w
501
+ }, c;
1152
502
  }
1153
- const ke = ["moz", "ms", "webkit"];
1154
- function Le() {
503
+ const de = ["moz", "ms", "webkit"];
504
+ function be() {
1155
505
  let n = 0;
1156
506
  return (e) => {
1157
- const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), c = setTimeout(() => {
507
+ const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), o = setTimeout(() => {
1158
508
  e(t + r);
1159
509
  }, r);
1160
- return n = t + r, c;
510
+ return n = t + r, o;
1161
511
  };
1162
512
  }
1163
- function Ve() {
513
+ function ve() {
1164
514
  if (typeof window > "u")
1165
515
  return () => 0;
1166
516
  if (window.requestAnimationFrame)
1167
517
  return window.requestAnimationFrame.bind(window);
1168
- const n = ke.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1169
- return n ? window[`${n}RequestAnimationFrame`] : Le();
518
+ const n = de.filter((e) => `${e}RequestAnimationFrame` in window)[0];
519
+ return n ? window[`${n}RequestAnimationFrame`] : be();
1170
520
  }
1171
- Ve();
1172
- function Be(n, e) {
1173
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, c) => (c && (r[c] = !0), r), n), n;
521
+ ve();
522
+ function Ce(n, e) {
523
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, o) => (o && (r[o] = !0), r), n), n;
1174
524
  }
1175
- const qe = /* @__PURE__ */ _({
525
+ const Te = /* @__PURE__ */ j({
1176
526
  name: "FContentContainerDesign",
1177
- props: L,
527
+ props: P,
1178
528
  emits: [],
1179
529
  setup(n, e) {
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({
530
+ const t = k(), r = S("designer-host-service"), o = S("design-item-context"), c = ye(o, r), a = he(t, o, c), u = G(() => Ce({
1182
531
  "drag-container": !0
1183
532
  }, n == null ? void 0 : n.customClass));
1184
- return K(() => {
1185
- t.value.componentInstance = h;
1186
- }), e.expose(h.value), () => z("div", {
533
+ return W(() => {
534
+ t.value.componentInstance = a;
535
+ }), e.expose(a.value), () => N("div", {
1187
536
  ref: t,
1188
- class: m.value,
537
+ class: u.value,
1189
538
  style: n.customStyle,
1190
- "data-dragref": `${r.schema.id}-container`
539
+ "data-dragref": `${o.schema.id}-container`
1191
540
  }, [e.slots.default && e.slots.default()]);
1192
541
  }
1193
- }), Ge = {
542
+ }), ke = {
1194
543
  install(n) {
1195
- n.component($.name, $);
544
+ n.component(L.name, L);
1196
545
  },
1197
546
  register(n, e, t, r) {
1198
- n["content-container"] = $, e["content-container"] = W;
547
+ n["content-container"] = L, e["content-container"] = B;
1199
548
  },
1200
549
  registerDesigner(n, e, t) {
1201
- n["content-container"] = qe, e["content-container"] = W;
550
+ n["content-container"] = Te, e["content-container"] = B;
1202
551
  }
1203
552
  };
1204
553
  export {
1205
- $ as ContentContainer,
1206
- qe as ContentContainerDesign,
1207
- L as contentContainerProps,
1208
- Ge as default,
1209
- W as propsResolver
554
+ L as ContentContainer,
555
+ Te as ContentContainerDesign,
556
+ P as contentContainerProps,
557
+ ke as default,
558
+ B as propsResolver
1210
559
  };