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