@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,115 +1,159 @@
1
- import { ref as C, computed as D, defineComponent as $, provide as W, createVNode as B, watch as ee, inject as E, onMounted as q } from "vue";
2
- import { isPlainObject as V, cloneDeep as te } from "lodash-es";
1
+ import { ref as z, computed as M, defineComponent as E, provide as q, createVNode as S, watch as te, inject as D, onMounted as W } from "vue";
2
+ import { isPlainObject as V, cloneDeep as ne } from "lodash-es";
3
3
  import "bignumber.js";
4
- const Y = {}, X = {};
5
- function N(t) {
6
- const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), l = Object.keys(e).reduce((s, m) => ((!r || !o.find((w) => w == m)) && (s[m] = e[m].type === "object" && e[m].properties ? N(e[m]) : te(e[m].default)), s), {});
7
- return (!r || !o.find((s) => s == "id")) && (l.id = `${n}-${Date.now()}`), l;
4
+ const G = {}, Y = {};
5
+ function L(t) {
6
+ const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), l = Object.keys(e).reduce((u, v) => ((!r || !o.find((P) => P === v)) && (u[v] = e[v].type === "object" && e[v].properties ? L(e[v]) : ne(e[v].default)), u), {});
7
+ if (n && (!r || !o.find((u) => u === "id"))) {
8
+ const u = n.toLowerCase().replace(/-/g, "_");
9
+ l.id = `${u}_${Math.random().toString().slice(2, 6)}`;
10
+ }
11
+ return l;
8
12
  }
9
- function T(t, e = {}, n) {
10
- const o = Y[t];
13
+ function X(t, e = {}, n) {
14
+ const o = G[t];
11
15
  if (o) {
12
- let r = N(o);
13
- const l = X[t];
14
- return r = l ? l({ getSchemaByType: T }, r, e, n) : r, r;
16
+ let r = L(o);
17
+ const l = Y[t];
18
+ return r = l ? l({ getSchemaByType: X }, r, e, n) : r, r;
15
19
  }
16
20
  return null;
17
21
  }
18
- function ne(t, e) {
19
- const n = N(e);
20
- return Object.keys(t).reduce((o, r) => (o[r] && V(o[r]) && V(t[r]) ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
21
- }
22
22
  function oe(t, e) {
23
+ const n = L(e);
24
+ return Object.keys(n).reduce((o, r) => (o[r] && V(o[r]) && V(t[r] || !t[r]) ? Object.assign(o[r], t[r] || {}) : o[r] = t[r], o), n), n;
25
+ }
26
+ function ae(t, e) {
23
27
  return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
24
28
  if (e.has(r)) {
25
29
  const l = e.get(r);
26
30
  if (typeof l == "string")
27
31
  o[l] = t[r];
28
32
  else {
29
- const s = l(r, t[r], t);
30
- Object.assign(o, s);
33
+ const u = l(r, t[r], t);
34
+ Object.assign(o, u);
31
35
  }
32
36
  } else
33
37
  o[r] = t[r];
34
38
  return o;
35
39
  }, {});
36
40
  }
37
- function ae(t, e, n = /* @__PURE__ */ new Map()) {
38
- const o = ne(t, e);
39
- return oe(o, n);
41
+ function ie(t, e, n = /* @__PURE__ */ new Map()) {
42
+ const o = oe(t, e);
43
+ return ae(o, n);
40
44
  }
41
- function ie(t = {}) {
42
- function e(a, p, c, g) {
45
+ function re(t = {}) {
46
+ function e(i, f, c, b) {
43
47
  if (typeof c == "number")
44
- return g[a].length === c;
48
+ return b[i].length === c;
45
49
  if (typeof c == "object") {
46
- const O = Object.keys(c)[0], S = c[O];
47
- if (O === "not")
48
- return Number(g[a].length) !== Number(S);
49
- if (O === "moreThan")
50
- return Number(g[a].length) >= Number(S);
51
- if (O === "lessThan")
52
- return Number(g[a].length) <= Number(S);
50
+ const C = Object.keys(c)[0], O = c[C];
51
+ if (C === "not")
52
+ return Number(b[i].length) !== Number(O);
53
+ if (C === "moreThan")
54
+ return Number(b[i].length) >= Number(O);
55
+ if (C === "lessThan")
56
+ return Number(b[i].length) <= Number(O);
53
57
  }
54
58
  return !1;
55
59
  }
56
- function n(a, p, c, g) {
57
- return g[a] && g[a].propertyValue && String(g[a].propertyValue.value) === String(c);
60
+ function n(i, f, c, b) {
61
+ return b[i] && b[i].propertyValue && String(b[i].propertyValue.value) === String(c);
58
62
  }
59
63
  const o = /* @__PURE__ */ new Map([
60
64
  ["length", e],
61
65
  ["getProperty", n]
62
66
  ]);
63
- Object.keys(t).reduce((a, p) => (a.set(p, t[p]), a), o);
64
- function r(a, p) {
65
- const c = a;
66
- return typeof p == "number" ? [{ target: c, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!p }] : typeof p == "object" ? Object.keys(p).map((g) => {
67
- if (g === "length")
68
- return { target: c, operator: "length", param: null, value: p[g] };
69
- const O = g, S = p[g];
70
- return { target: c, operator: "getProperty", param: O, value: S };
67
+ Object.keys(t).reduce((i, f) => (i.set(f, t[f]), i), o);
68
+ function r(i, f) {
69
+ const c = i;
70
+ return typeof f == "number" ? [{ target: c, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!f }] : typeof f == "object" ? Object.keys(f).map((b) => {
71
+ if (b === "length")
72
+ return { target: c, operator: "length", param: null, value: f[b] };
73
+ const C = b, O = f[b];
74
+ return { target: c, operator: "getProperty", param: C, value: O };
71
75
  }) : [];
72
76
  }
73
- function l(a) {
74
- return Object.keys(a).reduce((c, g) => {
75
- const O = r(g, a[g]);
76
- return c.push(...O), c;
77
+ function l(i) {
78
+ return Object.keys(i).reduce((c, b) => {
79
+ const C = r(b, i[b]);
80
+ return c.push(...C), c;
77
81
  }, []);
78
82
  }
79
- function s(a, p) {
80
- if (o.has(a.operator)) {
81
- const c = o.get(a.operator);
82
- return c && c(a.target, a.param, a.value, p) || !1;
83
+ function u(i, f) {
84
+ if (o.has(i.operator)) {
85
+ const c = o.get(i.operator);
86
+ return c && c(i.target, i.param, i.value, f) || !1;
83
87
  }
84
88
  return !1;
85
89
  }
86
- function m(a, p) {
87
- return l(a).reduce((O, S) => O && s(S, p), !0);
90
+ function v(i, f) {
91
+ return l(i).reduce((C, O) => C && u(O, f), !0);
88
92
  }
89
- function w(a, p) {
90
- const c = Object.keys(a), g = c.includes("allOf"), O = c.includes("anyOf"), S = g || O, u = (S ? a[S ? g ? "allOf" : "anyOf" : "allOf"] : [a]).map((h) => m(h, p));
91
- return g ? !u.includes(!1) : u.includes(!0);
93
+ function P(i, f) {
94
+ const c = Object.keys(i), b = c.includes("allOf"), C = c.includes("anyOf"), O = b || C, p = (O ? i[O ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((d) => v(d, f));
95
+ return b ? !p.includes(!1) : p.includes(!0);
92
96
  }
93
- return { parseValueSchema: w };
97
+ return { parseValueSchema: P };
94
98
  }
95
- const re = {}, le = {};
96
- ie();
97
- function _(t, e, n = /* @__PURE__ */ new Map(), o = (s, m, w) => m, r = {}, l = (s) => s) {
98
- return Y[e.title] = e, X[e.title] = o, re[e.title] = r, le[e.title] = l, (s = {}) => {
99
- const m = ae(s, e, n), w = Object.keys(t).reduce((a, p) => (a[p] = t[p].default, a), {});
100
- return Object.assign(w, m);
99
+ const H = {
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
+ }, le = {}, se = {};
140
+ re();
141
+ function _(t, e, n = /* @__PURE__ */ new Map(), o = (u, v, P, i) => v, r = {}, l = (u) => u) {
142
+ return G[e.title] = e, Y[e.title] = o, le[e.title] = r, se[e.title] = l, (u = {}) => {
143
+ const v = ie(u, e, n), P = Object.keys(t).reduce((i, f) => (i[f] = t[f].default, i), {});
144
+ return Object.assign(P, v);
101
145
  };
102
146
  }
103
- function se(t, e) {
147
+ function ce(t, e) {
104
148
  return { customClass: e.class, customStyle: e.style };
105
149
  }
106
- const J = /* @__PURE__ */ new Map([
107
- ["appearance", se]
150
+ const U = /* @__PURE__ */ new Map([
151
+ ["appearance", ce]
108
152
  ]);
109
- function G(t, e, n) {
153
+ function Q(t, e, n) {
110
154
  return e;
111
155
  }
112
- const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/layout.schema.json", fe = "layout", pe = "A Farris Container Component", ye = "object", me = {
156
+ const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/layout.schema.json", fe = "layout", ye = "A Farris Container Component", me = "object", de = {
113
157
  id: {
114
158
  description: "The unique identifier for layout component",
115
159
  type: "string"
@@ -152,19 +196,19 @@ const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
152
196
  type: "boolean",
153
197
  default: !0
154
198
  }
155
- }, de = [
199
+ }, he = [
156
200
  "id",
157
201
  "type",
158
202
  "contents"
159
- ], he = {
160
- $schema: ce,
161
- $id: ue,
203
+ ], ve = {
204
+ $schema: ue,
205
+ $id: pe,
162
206
  title: fe,
163
- description: pe,
164
- type: ye,
165
- properties: me,
166
- required: de
167
- }, ve = "layout", ge = "A Farris Component", be = "object", ze = {
207
+ description: ye,
208
+ type: me,
209
+ properties: de,
210
+ required: he
211
+ }, be = "layout", ge = "A Farris Component", ze = "object", Pe = {
168
212
  basic: {
169
213
  description: "Basic Infomation",
170
214
  title: "基本信息",
@@ -199,96 +243,96 @@ const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
199
243
  }
200
244
  }
201
245
  }
202
- }, Ce = {
203
- title: ve,
246
+ }, we = {
247
+ title: be,
204
248
  description: ge,
205
- type: be,
206
- categories: ze
207
- }, L = {
249
+ type: ze,
250
+ categories: Pe
251
+ }, F = {
208
252
  customStyle: { type: String, defaut: "" },
209
253
  customClass: { type: String, defaut: "" }
210
- }, Q = _(L, he, J, G, Ce);
211
- function U(t) {
212
- const e = C(-1), n = C(-1), o = C(0), r = C(0), l = C(!1), s = C(!1), m = D(() => ({
254
+ }, J = _(F, ve, U, Q, we);
255
+ function Z(t) {
256
+ const e = z(-1), n = z(-1), o = z(0), r = z(0), l = z(!1), u = z(!1), v = M(() => ({
213
257
  display: l.value ? "block" : "none",
214
258
  left: `${o.value}px`,
215
259
  cursor: "e-resize"
216
- })), w = D(() => ({
217
- display: s.value ? "block" : "none",
260
+ })), P = M(() => ({
261
+ display: u.value ? "block" : "none",
218
262
  top: `${r.value}px`,
219
263
  cursor: "n-resize"
220
- })), a = D(() => ({
221
- display: s.value || l.value ? "block" : "none"
264
+ })), i = M(() => ({
265
+ display: u.value || l.value ? "block" : "none"
222
266
  }));
223
- function p(b, u, d, h) {
224
- const H = t.value;
225
- if (H) {
226
- const { left: v, right: i, width: y } = H.getBoundingClientRect();
227
- let f = b.clientX - v;
228
- h === "right" && (f = i - b.clientX), f > u && (f = u), f < d && (f = d), h === "right" && (f = y - f), o.value = f;
267
+ function f(h, p, m, d) {
268
+ const R = t.value;
269
+ if (R) {
270
+ const { left: a, right: s, width: g } = R.getBoundingClientRect();
271
+ let y = h.clientX - a;
272
+ d === "right" && (y = s - h.clientX), y > p && (y = p), y < m && (y = m), d === "right" && (y = g - y), o.value = y;
229
273
  }
230
274
  }
231
- function c(b, u, d, h) {
232
- const H = t.value;
233
- if (H) {
234
- const { top: v, bottom: i, height: y } = H.getBoundingClientRect();
235
- let f = b.clientY - v;
236
- h === "bottom" && (f = i - b.clientY), f > u && (f = u), f < d && (f = d), h === "bottom" && (f = y - f), r.value = f;
275
+ function c(h, p, m, d) {
276
+ const R = t.value;
277
+ if (R) {
278
+ const { top: a, bottom: s, height: g } = R.getBoundingClientRect();
279
+ let y = h.clientY - a;
280
+ d === "bottom" && (y = s - h.clientY), y > p && (y = p), y < m && (y = m), d === "bottom" && (y = g - y), r.value = y;
237
281
  }
238
282
  }
239
- function g() {
240
- const b = t.value;
241
- if (b) {
242
- const { width: u, height: d } = b.getBoundingClientRect();
243
- return { width: u, height: d };
283
+ function b() {
284
+ const h = t.value;
285
+ if (h) {
286
+ const { width: p, height: m } = h.getBoundingClientRect();
287
+ return { width: p, height: m };
244
288
  }
245
289
  return null;
246
290
  }
247
- function O() {
248
- const b = t.value;
249
- return b ? Array.from(b.querySelectorAll("[data-position]")).reduce((u, d) => {
250
- const h = d.getAttribute("data-position");
251
- return u = Object.assign(u, { [h]: d }), u;
291
+ function C() {
292
+ const h = t.value;
293
+ return h ? Array.from(h.querySelectorAll("[data-position]")).reduce((p, m) => {
294
+ const d = m.getAttribute("data-position");
295
+ return p = Object.assign(p, { [d]: m }), p;
252
296
  }, {}) : null;
253
297
  }
254
- function S(b, u) {
255
- const d = g(), h = O();
256
- if (d && h) {
257
- const H = h == null ? void 0 : h.right, v = h == null ? void 0 : h.left;
258
- if (b === "left" && v)
259
- return H ? d.width - H.clientWidth - u : d.width - u;
260
- if (b === "right" && H)
261
- return v ? d.width - v.clientWidth - u : d.width - u;
298
+ function O(h, p) {
299
+ const m = b(), d = C();
300
+ if (m && d) {
301
+ const R = d == null ? void 0 : d.right, a = d == null ? void 0 : d.left;
302
+ if (h === "left" && a)
303
+ return R ? m.width - R.clientWidth - p : m.width - p;
304
+ if (h === "right" && R)
305
+ return a ? m.width - a.clientWidth - p : m.width - p;
262
306
  }
263
307
  }
264
- function P(b, u) {
265
- const d = g(), h = O();
266
- if (d && h) {
267
- const H = h == null ? void 0 : h.bottom, v = h == null ? void 0 : h.top;
268
- if (b === "top" && v)
269
- return H ? d.height - H.clientHeight - u : d.height - u;
270
- if (b === "bottom" && H)
271
- return v ? d.height - v.clientHeight - u : d.height - u;
308
+ function w(h, p) {
309
+ const m = b(), d = C();
310
+ if (m && d) {
311
+ const R = d == null ? void 0 : d.bottom, a = d == null ? void 0 : d.top;
312
+ if (h === "top" && a)
313
+ return R ? m.height - R.clientHeight - p : m.height - p;
314
+ if (h === "bottom" && R)
315
+ return a ? m.height - a.clientHeight - p : m.height - p;
272
316
  }
273
317
  }
274
318
  return {
275
- horizontalResizeHandleStyle: m,
276
- verticalResizeHandleStyle: w,
277
- resizeOverlayStyle: a,
319
+ horizontalResizeHandleStyle: v,
320
+ verticalResizeHandleStyle: P,
321
+ resizeOverlayStyle: i,
278
322
  showHorizontalResizeHandle: l,
279
- showVerticalResizeHandle: s,
323
+ showVerticalResizeHandle: u,
280
324
  horizontalResizeBarPosition: e,
281
325
  verticalResizeBarPosition: n,
282
326
  verticalResizeHandleOffset: r,
283
327
  horizontalResizeHandleOffset: o,
284
- draggingHorizontalResizeHandle: p,
328
+ draggingHorizontalResizeHandle: f,
285
329
  draggingVerticalResizeHandle: c,
286
- getPanelMaxHeight: P,
287
- getPanelMaxWidth: S
330
+ getPanelMaxHeight: w,
331
+ getPanelMaxWidth: O
288
332
  };
289
333
  }
290
- const we = ["moz", "ms", "webkit"];
291
- function Pe() {
334
+ const Ce = ["moz", "ms", "webkit"];
335
+ function Be() {
292
336
  let t = 0;
293
337
  return (e) => {
294
338
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
@@ -297,19 +341,19 @@ function Pe() {
297
341
  return t = n + o, r;
298
342
  };
299
343
  }
300
- function Oe() {
344
+ function Re() {
301
345
  if (typeof window > "u")
302
346
  return () => 0;
303
347
  if (window.requestAnimationFrame)
304
348
  return window.requestAnimationFrame.bind(window);
305
- const t = we.filter((e) => `${e}RequestAnimationFrame` in window)[0];
306
- return t ? window[`${t}RequestAnimationFrame`] : Pe();
349
+ const t = Ce.filter((e) => `${e}RequestAnimationFrame` in window)[0];
350
+ return t ? window[`${t}RequestAnimationFrame`] : Be();
307
351
  }
308
- Oe();
309
- function Se(t, e) {
352
+ Re();
353
+ function Oe(t, e) {
310
354
  return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
311
355
  }
312
- function He(t, e) {
356
+ function Se(t, e) {
313
357
  return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
314
358
  if (r) {
315
359
  const l = r.split(":");
@@ -318,38 +362,38 @@ function He(t, e) {
318
362
  return o;
319
363
  }, t), t;
320
364
  }
321
- const A = /* @__PURE__ */ $({
365
+ const j = /* @__PURE__ */ E({
322
366
  name: "FLayout",
323
- props: L,
367
+ props: F,
324
368
  emits: [],
325
369
  setup(t, e) {
326
- const n = C(), o = U(n), {
370
+ const n = z(), o = Z(n), {
327
371
  horizontalResizeHandleStyle: r,
328
372
  verticalResizeHandleStyle: l,
329
- resizeOverlayStyle: s
373
+ resizeOverlayStyle: u
330
374
  } = o;
331
- W("layout", {
375
+ q("layout", {
332
376
  useResizeHandleComposition: o
333
377
  });
334
- const m = D(() => Se({
378
+ const v = M(() => Oe({
335
379
  "f-layout": !0
336
- }, t == null ? void 0 : t.customClass)), w = D(() => He({}, t == null ? void 0 : t.customStyle));
337
- return () => B("div", {
338
- class: m.value,
339
- style: w.value,
380
+ }, t == null ? void 0 : t.customClass)), P = M(() => Se({}, t == null ? void 0 : t.customStyle));
381
+ return () => S("div", {
382
+ class: v.value,
383
+ style: P.value,
340
384
  ref: n
341
- }, [e.slots.default && e.slots.default(), B("div", {
385
+ }, [e.slots.default && e.slots.default(), S("div", {
342
386
  class: "f-layout-resize-overlay",
343
- style: s.value
344
- }, null), B("div", {
387
+ style: u.value
388
+ }, null), S("div", {
345
389
  class: "f-layout-horizontal-resize-proxy",
346
390
  style: r.value
347
- }, null), B("div", {
391
+ }, null), S("div", {
348
392
  class: "f-layout-vertical-resize-proxy",
349
393
  style: l.value
350
394
  }, null)]);
351
395
  }
352
- }), Me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-design.gitee.io/layout-pane.schema.json", Be = "layout-pane", De = "A Farris Container Component", Ae = "object", Re = {
396
+ }), ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/layout-pane.schema.json", Te = "layout-pane", He = "A Farris Container Component", je = "object", De = {
353
397
  id: {
354
398
  description: "The unique identifier for a layout pane",
355
399
  type: "string"
@@ -413,13 +457,13 @@ const A = /* @__PURE__ */ $({
413
457
  default: !0
414
458
  }
415
459
  }, Ee = {
416
- $schema: Me,
417
- $id: je,
418
- title: Be,
419
- description: De,
420
- type: Ae,
421
- properties: Re
422
- }, $e = "layout-pane", Te = "A Farris Container Component", ke = "object", Ne = {
460
+ $schema: ke,
461
+ $id: Me,
462
+ title: Te,
463
+ description: He,
464
+ type: je,
465
+ properties: De
466
+ }, $e = "layout-pane", Ae = "A Farris Container Component", Le = "object", Fe = {
423
467
  basic: {
424
468
  description: "Basic Infomation",
425
469
  title: "基本信息",
@@ -452,7 +496,7 @@ const A = /* @__PURE__ */ $({
452
496
  description: "Appearance",
453
497
  properties: {
454
498
  class: {
455
- title: "class",
499
+ title: "class样式",
456
500
  type: "string",
457
501
  description: ""
458
502
  },
@@ -514,12 +558,12 @@ const A = /* @__PURE__ */ $({
514
558
  }
515
559
  }
516
560
  }
517
- }, Le = {
561
+ }, Ne = {
518
562
  title: $e,
519
- description: Te,
520
- type: ke,
521
- categories: Ne
522
- }, F = {
563
+ description: Ae,
564
+ type: Le,
565
+ categories: Fe
566
+ }, N = {
523
567
  customClass: { type: String, defaut: "" },
524
568
  customStyle: { type: String, defaut: "" },
525
569
  /** 记录原始定义宽度 */
@@ -538,327 +582,317 @@ const A = /* @__PURE__ */ $({
538
582
  minWidth: { type: Number, default: 100 },
539
583
  /** 面板最小高度 */
540
584
  minHeight: { type: Number, default: 100 }
541
- }, Z = _(F, Ee, J, G, Le);
542
- function x(t, e, n, o, r) {
585
+ }, x = _(N, Ee, U, Q, Ne);
586
+ function K(t, e, n, o, r) {
543
587
  const {
544
588
  horizontalResizeBarPosition: l,
545
- horizontalResizeHandleOffset: s,
546
- showHorizontalResizeHandle: m,
547
- showVerticalResizeHandle: w,
548
- verticalResizeBarPosition: a,
549
- verticalResizeHandleOffset: p,
589
+ horizontalResizeHandleOffset: u,
590
+ showHorizontalResizeHandle: v,
591
+ showVerticalResizeHandle: P,
592
+ verticalResizeBarPosition: i,
593
+ verticalResizeHandleOffset: f,
550
594
  draggingHorizontalResizeHandle: c,
551
- draggingVerticalResizeHandle: g,
552
- getPanelMaxHeight: O,
553
- getPanelMaxWidth: S
595
+ draggingVerticalResizeHandle: b,
596
+ getPanelMaxHeight: C,
597
+ getPanelMaxWidth: O
554
598
  } = r;
555
- let P = "", b, u, d;
556
- function h(i) {
557
- if ((P === "left" || P === "right") && u) {
558
- const { left: y } = u.getBoundingClientRect(), { width: f } = b.getBoundingClientRect(), j = i.clientX - y;
559
- let z = P === "left" ? (f || 0) + (j - l.value) : (f || 0) - (j - l.value);
560
- z = n.value > 0 ? Math.max(n.value, z) : z;
561
- const M = S(P, n.value);
562
- M != null && (z = M > z ? z : M), t.value = z;
599
+ let w = "", h, p, m;
600
+ function d(s) {
601
+ if ((w === "left" || w === "right") && p) {
602
+ const { left: g } = p.getBoundingClientRect(), { width: y } = h.getBoundingClientRect(), T = s.clientX - g;
603
+ let B = w === "left" ? (y || 0) + (T - l.value) : (y || 0) - (T - l.value);
604
+ B = n.value > 0 ? Math.max(n.value, B) : B;
605
+ const k = O(w, n.value);
606
+ k != null && (B = k > B ? B : k), t.value = B;
563
607
  }
564
- if ((P === "top" || P === "bottom") && u) {
565
- const { top: y } = u.getBoundingClientRect(), { height: f } = b.getBoundingClientRect(), j = i.clientY - y;
566
- let z = P === "top" ? (f || 0) + (j - a.value) : (f || 0) - (j - a.value);
567
- z = o.value > 0 ? Math.max(o.value, z) : z;
568
- const M = O(P, o.value);
569
- M != null && (z = M > z ? z : M), e.value = z;
608
+ if ((w === "top" || w === "bottom") && p) {
609
+ const { top: g } = p.getBoundingClientRect(), { height: y } = h.getBoundingClientRect(), T = s.clientY - g;
610
+ let B = w === "top" ? (y || 0) + (T - i.value) : (y || 0) - (T - i.value);
611
+ B = o.value > 0 ? Math.max(o.value, B) : B;
612
+ const k = C(w, o.value);
613
+ k != null && (B = k > B ? B : k), e.value = B;
570
614
  }
571
- s.value = 0, p.value = 0, l.value = -1, a.value = -1, m.value = !1, w.value = !1, document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", h), document.body.style.userSelect = "", P = "", b = null, u = null;
572
- }
573
- function H(i, y, f) {
574
- if (P = y, b = f, m.value = !0, u = i.composedPath().find((z) => (z.className || "").split(" ")[0] === "f-layout"), u) {
575
- const { left: z } = u.getBoundingClientRect(), M = i.clientX - z;
576
- s.value = M, l.value = M;
577
- const R = S(P, n.value) || 0;
578
- d = (I) => c(I, R, n.value, P), document.addEventListener("mousemove", d), document.addEventListener("mouseup", h), document.body.style.userSelect = "none";
615
+ u.value = 0, f.value = 0, l.value = -1, i.value = -1, v.value = !1, P.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", d), document.body.style.userSelect = "", w = "", h = null, p = null;
616
+ }
617
+ function R(s, g, y) {
618
+ if (w = g, h = y, v.value = !0, p = s.composedPath().find((B) => (B.className || "").split(" ")[0] === "f-layout"), p) {
619
+ const { left: B } = p.getBoundingClientRect(), k = s.clientX - B;
620
+ u.value = k, l.value = k;
621
+ const $ = O(w, n.value) || 0;
622
+ m = (ee) => c(ee, $, n.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
579
623
  }
580
624
  }
581
- function v(i, y, f) {
582
- if (P = y, b = f, w.value = !0, u = i.composedPath().find((z) => (z.className || "").split(" ")[0] === "f-layout"), u) {
583
- const { top: z } = u.getBoundingClientRect();
584
- p.value = i.clientY - z, a.value = i.clientY - z;
585
- const M = O(P, o.value) || 0;
586
- d = (R) => g(R, M, o.value, P), document.addEventListener("mousemove", d), document.addEventListener("mouseup", h), document.body.style.userSelect = "none";
625
+ function a(s, g, y) {
626
+ if (w = g, h = y, P.value = !0, p = s.composedPath().find((B) => (B.className || "").split(" ")[0] === "f-layout"), p) {
627
+ const { top: B } = p.getBoundingClientRect();
628
+ f.value = s.clientY - B, i.value = s.clientY - B;
629
+ const k = C(w, o.value) || 0;
630
+ m = ($) => b($, k, o.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
587
631
  }
588
632
  }
589
- return { onClickHorizontalResizeBar: H, onClickVerticalResizeBar: v };
633
+ return { onClickHorizontalResizeBar: R, onClickVerticalResizeBar: a };
590
634
  }
591
- const k = /* @__PURE__ */ $({
635
+ const A = /* @__PURE__ */ E({
592
636
  name: "FLayoutPane",
593
- props: F,
637
+ props: N,
594
638
  emits: [],
595
639
  setup(t, e) {
596
- const n = C(t.minHeight <= 0 ? 100 : t.minHeight), o = C(t.minWidth <= 0 ? 100 : t.minWidth), r = C(t.width <= 0 ? 100 : t.width), l = C(t.height <= 100 ? 100 : t.height), s = C(Math.max(n.value, l.value)), m = C(Math.max(o.value, r.value)), w = C(), a = C(t.position), p = C(t.resizable);
597
- ee(() => t.resizable, (v) => {
598
- p.value = v;
640
+ const n = z(t.minHeight <= 0 ? 100 : t.minHeight), o = z(t.minWidth <= 0 ? 100 : t.minWidth), r = z(t.width <= 0 ? 100 : t.width), l = z(t.height <= 100 ? 100 : t.height), u = z(Math.max(n.value, l.value)), v = z(Math.max(o.value, r.value)), P = z(), i = z(t.position), f = z(t.resizable);
641
+ te(() => t.resizable, (a) => {
642
+ f.value = a;
599
643
  });
600
- const c = E("layout"), {
601
- useResizeHandleComposition: g
602
- } = c, O = x(m, s, o, n, g), {
603
- onClickHorizontalResizeBar: S,
604
- onClickVerticalResizeBar: P
605
- } = O, b = D(() => ({
644
+ const c = D("layout"), {
645
+ useResizeHandleComposition: b
646
+ } = c, C = K(v, u, o, n, b), {
647
+ onClickHorizontalResizeBar: O,
648
+ onClickVerticalResizeBar: w
649
+ } = C, h = M(() => ({
606
650
  "f-layout-resize-bar": !0,
607
- "f-layout-resize-bar-e": a.value === "left",
608
- "f-layout-resize-bar-n": a.value === "bottom",
609
- "f-layout-resize-bar-s": a.value === "top",
610
- "f-layout-resize-bar-w": a.value === "right"
611
- })), u = D(() => a.value !== "center" && p.value);
612
- function d(v, i) {
613
- (i === "left" || i === "right") && S(v, i, w.value), (i === "top" || i === "bottom") && P(v, i, w.value);
651
+ "f-layout-resize-bar-e": i.value === "left",
652
+ "f-layout-resize-bar-n": i.value === "bottom",
653
+ "f-layout-resize-bar-s": i.value === "top",
654
+ "f-layout-resize-bar-w": i.value === "right"
655
+ })), p = M(() => i.value !== "center" && f.value);
656
+ function m(a, s) {
657
+ (s === "left" || s === "right") && O(a, s, P.value), (s === "top" || s === "bottom") && w(a, s, P.value);
614
658
  }
615
- const h = D(() => {
616
- const v = {
659
+ const d = M(() => {
660
+ const a = {
617
661
  "f-layout-pane": !0,
618
- "f-page-content-nav": a.value === "left" || a.value === "right",
619
- "f-page-content-main": a.value === "center"
662
+ "f-page-content-nav": i.value === "left" || i.value === "right",
663
+ "f-page-content-main": i.value === "center"
620
664
  };
621
- return t.customClass && String(t.customClass).split(" ").reduce((i, y) => (i[y] = !0, i), v), v;
622
- }), H = D(() => {
623
- const v = {};
624
- return (m.value && a.value === "left" || a.value === "right") && (v.width = `${m.value}px`), (s.value && a.value === "bottom" || a.value === "top") && (v.height = `${s.value}px`), t.visible || (v.display = "none"), v;
665
+ return t.customClass && String(t.customClass).split(" ").reduce((s, g) => (s[g] = !0, s), a), a;
666
+ }), R = M(() => {
667
+ const a = {};
668
+ return (v.value && i.value === "left" || i.value === "right") && (a.width = `${v.value}px`), (u.value && i.value === "bottom" || i.value === "top") && (a.height = `${u.value}px`), t.visible || (a.display = "none"), a;
625
669
  });
626
- return () => B("div", {
627
- ref: w,
670
+ return () => S("div", {
671
+ ref: P,
672
+ class: d.value,
673
+ style: R.value,
674
+ "data-position": i.value
675
+ }, [e.slots.default && e.slots.default(), p.value && S("span", {
628
676
  class: h.value,
629
- style: H.value,
630
- "data-position": a.value
631
- }, [e.slots.default && e.slots.default(), u.value && B("span", {
632
- class: b.value,
633
- onMousedown: (v) => d(v, a.value)
677
+ onMousedown: (a) => m(a, i.value)
634
678
  }, null)]);
635
679
  }
636
680
  });
637
- function Fe(t, e) {
681
+ function Ve(t, e) {
638
682
  function n() {
639
683
  return !1;
640
684
  }
641
685
  return { canAccepts: n };
642
686
  }
643
- function K(t, e, n) {
644
- var v;
645
- function o() {
646
- n != null && n.resolveComponentContext && n.resolveComponentContext();
647
- }
648
- o();
649
- const r = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", s = C();
650
- function m() {
687
+ function I(t, e, n) {
688
+ var R;
689
+ const o = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", l = z();
690
+ function u() {
651
691
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
652
692
  }
653
- function w() {
693
+ function v() {
654
694
  return !1;
655
695
  }
656
- function a() {
696
+ function P() {
657
697
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
658
698
  }
659
- function p() {
699
+ function i() {
660
700
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
661
701
  }
662
- function c(i) {
663
- if (!i || !i.value)
702
+ function f(a) {
703
+ if (!a || !a.value)
664
704
  return null;
665
- if (i.value.schema && i.value.schema.type === "component")
666
- return i.value;
667
- const y = C(i == null ? void 0 : i.value.parent), f = c(y);
668
- return f || null;
705
+ if (a.value.schema && a.value.schema.type === "component")
706
+ return a.value;
707
+ const s = z(a == null ? void 0 : a.value.parent), g = f(s);
708
+ return g || null;
669
709
  }
670
- function g(i = e) {
671
- const { componentInstance: y, designerItemElementRef: f } = i;
672
- return !y || !y.value ? null : y.value.canMove ? f : g(i.parent);
710
+ function c(a = e) {
711
+ const { componentInstance: s, designerItemElementRef: g } = a;
712
+ return !s || !s.value ? null : s.value.canMove ? g : c(a.parent);
673
713
  }
674
- function O(i) {
675
- return !!n && n.canAccepts(i);
714
+ function b(a) {
715
+ return !!n && n.canAccepts(a);
676
716
  }
677
- function S() {
717
+ function C() {
678
718
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
679
719
  }
680
- function P() {
681
- }
682
- function b(i, y) {
683
- y && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(y);
720
+ function O() {
684
721
  }
685
- function u(i, y) {
686
- const { componentType: f } = i;
687
- let j = T(f, i, y);
688
- n && n.onResolveNewComponentSchema && (j = n.onResolveNewComponentSchema(i, j));
689
- const z = f.toLowerCase().replace("-", "_");
690
- return j && !j.id && j.type === f && (j.id = `${z}_${Math.random().toString().slice(2, 6)}`), j;
722
+ function w(a, s) {
723
+ s && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(s);
691
724
  }
692
- function d(i, y) {
693
- const f = String(i.getAttribute("data-controltype")), j = i.getAttribute("data-feature"), z = j ? JSON.parse(j) : {};
694
- z.parentComponentInstance = s.value;
695
- let M = T(f, z);
696
- n && n.onAcceptNewChildElement && (M = n.onAcceptNewChildElement(i, y, M));
697
- const R = f.toLowerCase().replace("-", "_");
698
- return M && !M.id && M.type === f && (M.id = `${R}_${Math.random().toString().slice(2, 6)}`), M;
725
+ function h(a, s) {
726
+ const { componentType: g } = a;
727
+ let y = X(g, a, s);
728
+ n && n.onResolveNewComponentSchema && (y = n.onResolveNewComponentSchema(a, y));
729
+ const T = g.toLowerCase().replace(/-/g, "_");
730
+ return y && !y.id && y.type === g && (y.id = `${T}_${Math.random().toString().slice(2, 6)}`), y;
699
731
  }
700
- function h(i) {
732
+ function p(a) {
701
733
  }
702
- function H(...i) {
734
+ function m(...a) {
703
735
  if (n && n.getPropsConfig)
704
- return n.getPropsConfig(...i);
736
+ return n.getPropsConfig(...a);
737
+ }
738
+ function d() {
739
+ n && n.onRemoveComponent && n.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((a) => {
740
+ var y;
741
+ let s = a.id;
742
+ a.type === "component-ref" && (s = a.component);
743
+ const g = t.value.querySelector(`#${s}-design-item`);
744
+ (y = g == null ? void 0 : g.componentInstance) != null && y.value.onRemoveComponent && g.componentInstance.value.onRemoveComponent();
745
+ });
705
746
  }
706
- return s.value = {
707
- canMove: m(),
708
- canSelectParent: w(),
709
- canDelete: a(),
710
- canNested: !p(),
747
+ return l.value = {
748
+ canMove: u(),
749
+ canSelectParent: v(),
750
+ canDelete: P(),
751
+ canNested: !i(),
711
752
  contents: e == null ? void 0 : e.schema.contents,
712
753
  elementRef: t,
713
- parent: (v = e == null ? void 0 : e.parent) == null ? void 0 : v.componentInstance,
754
+ parent: (R = e == null ? void 0 : e.parent) == null ? void 0 : R.componentInstance,
714
755
  schema: e == null ? void 0 : e.schema,
715
- styles: r,
716
- designerClass: l,
717
- canAccepts: O,
718
- getBelongedComponentInstance: c,
719
- getDraggableDesignItemElement: g,
720
- getDraggingDisplayText: S,
721
- getPropConfig: H,
722
- getDragScopeElement: P,
723
- onAcceptMovedChildElement: b,
724
- onAcceptNewChildElement: d,
725
- onChildElementMovedOut: h,
726
- addNewChildComponentSchema: u,
727
- updateDragAndDropRules: o,
728
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
729
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
730
- }, s;
756
+ styles: o,
757
+ designerClass: r,
758
+ canAccepts: b,
759
+ getBelongedComponentInstance: f,
760
+ getDraggableDesignItemElement: c,
761
+ getDraggingDisplayText: C,
762
+ getPropConfig: m,
763
+ getDragScopeElement: O,
764
+ onAcceptMovedChildElement: w,
765
+ onChildElementMovedOut: p,
766
+ addNewChildComponentSchema: h,
767
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || z(!1),
768
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || z(!1),
769
+ onRemoveComponent: d
770
+ }, l;
731
771
  }
732
- const Ve = /* @__PURE__ */ $({
772
+ const qe = /* @__PURE__ */ E({
733
773
  name: "FLayoutDesign",
734
- props: L,
774
+ props: F,
735
775
  emits: [],
736
776
  setup(t, e) {
737
- var p;
738
- const n = C(), o = E("design-item-context"), r = Fe(o.schema, (p = o.parent) == null ? void 0 : p.schema), l = K(n, o, r);
777
+ var f;
778
+ const n = z(), o = D("design-item-context"), r = Ve(o.schema, (f = o.parent) == null ? void 0 : f.schema), l = I(n, o, r);
739
779
  l.value.canNested = !1;
740
- const s = U(n), {
741
- horizontalResizeHandleStyle: m,
742
- verticalResizeHandleStyle: w,
743
- resizeOverlayStyle: a
744
- } = s;
745
- return W("layout", {
746
- useResizeHandleComposition: s
747
- }), q(() => {
780
+ const u = Z(n), {
781
+ horizontalResizeHandleStyle: v,
782
+ verticalResizeHandleStyle: P,
783
+ resizeOverlayStyle: i
784
+ } = u;
785
+ return q("layout", {
786
+ useResizeHandleComposition: u
787
+ }), W(() => {
748
788
  n.value.componentInstance = l;
749
- }), e.expose(l.value), () => B("div", {
789
+ }), e.expose(l.value), () => S("div", {
750
790
  class: "f-layout f-page-content",
751
791
  ref: n
752
- }, [e.slots.default && e.slots.default(), B("div", {
792
+ }, [e.slots.default && e.slots.default(), S("div", {
753
793
  class: "f-layout-resize-overlay",
754
- style: a.value
755
- }, null), B("div", {
794
+ style: i.value
795
+ }, null), S("div", {
756
796
  class: "f-layout-horizontal-resize-proxy",
757
- style: m.value
758
- }, null), B("div", {
797
+ style: v.value
798
+ }, null), S("div", {
759
799
  class: "f-layout-vertical-resize-proxy",
760
- style: w.value
800
+ style: P.value
761
801
  }, null)]);
762
802
  }
763
803
  });
764
804
  function We() {
765
- function t(e) {
766
- var r, l;
805
+ function t(e, n) {
806
+ var u;
767
807
  if (!e)
768
808
  return !1;
769
- const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
770
- if (!n)
809
+ const o = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
810
+ if (!o)
771
811
  return !1;
772
- const o = (l = n.schema.appearance) == null ? void 0 : l.class;
773
- if (e.controlCategory === "input" || e.controlType === "form-group") {
774
- const s = n.schema.type, m = (s === "response-form" || s === "content-container") && o && o.includes("farris-form");
775
- if (n.schema.type !== "response-layout-item" && !m)
776
- return !1;
777
- }
778
- return e.controlType !== "field-set";
812
+ const r = o.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(o.belongedComponentId);
813
+ return !((e.componentCategory === "input" || e.componentType === "form-group") && ![H["response-layout-item"].type, H["response-form"].type].includes(r) || (e.componentType === H.tabs.type || e.componentType === H.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![H["content-container"].type, H["splitter-pane"].type, H["response-layout-item"].type].includes(r)));
779
814
  }
780
815
  return {
781
816
  basalDragulaRuleForContainer: t
782
817
  };
783
818
  }
784
- function qe(t, e) {
785
- function n(l) {
819
+ function Ge(t, e) {
820
+ const n = t.schema;
821
+ function o(l) {
786
822
  return !!We().basalDragulaRuleForContainer(l);
787
823
  }
788
- function o(l, s, m) {
789
- return m;
790
- }
791
824
  function r() {
792
825
  const l = ["f-layout-pane"];
793
- return (t.position === "left" || t.position === "right") && l.push("f-page-content-nav"), t.position === "center" && l.push("f-page-content-main"), l.join(" ");
826
+ return (n.position === "left" || n.position === "right") && l.push("f-page-content-nav"), n.position === "center" && l.push("f-page-content-main"), l.join(" ");
794
827
  }
795
- return { canAccepts: n, getDesignerClass: r, onAcceptNewChildElement: o };
828
+ return { canAccepts: o, getDesignerClass: r };
796
829
  }
797
- const Ye = /* @__PURE__ */ $({
830
+ const Ye = /* @__PURE__ */ E({
798
831
  name: "FLayoutPaneDesign",
799
- props: F,
832
+ props: N,
800
833
  emits: [],
801
834
  setup(t, e) {
802
- var v;
803
- const n = C(), o = C(), r = E("design-item-context"), l = qe(r.schema, (v = r.parent) == null ? void 0 : v.schema), s = K(o, r, l);
804
- s.value.canNested = !1, s.value.canMove = !1, s.value.canDelete = !1, q(() => {
805
- o.value.componentInstance = s;
806
- }), e.expose(s.value);
807
- const m = C(Math.max(t.minHeight, t.height)), w = C(Math.max(t.minWidth, t.width)), a = C(t.minHeight), p = C(t.minWidth), c = C(t.position), g = E("layout"), {
808
- useResizeHandleComposition: O
809
- } = g, S = x(w, m, p, a, O), {
810
- onClickHorizontalResizeBar: P,
811
- onClickVerticalResizeBar: b
812
- } = S, u = D(() => ({
835
+ const n = z(), o = z();
836
+ D("designer-host-service");
837
+ const r = D("design-item-context"), l = Ge(r), u = I(o, r, l);
838
+ u.value.canNested = !1, u.value.canMove = !1, u.value.canDelete = !1, W(() => {
839
+ o.value.componentInstance = u;
840
+ }), e.expose(u.value);
841
+ const v = z(Math.max(t.minHeight, t.height)), P = z(Math.max(t.minWidth, t.width)), i = z(t.minHeight), f = z(t.minWidth), c = z(t.position), b = D("layout"), {
842
+ useResizeHandleComposition: C
843
+ } = b, O = K(P, v, f, i, C), {
844
+ onClickHorizontalResizeBar: w,
845
+ onClickVerticalResizeBar: h
846
+ } = O, p = M(() => ({
813
847
  "f-layout-resize-bar": !0,
814
848
  "f-layout-resize-bar-e": c.value === "left",
815
849
  "f-layout-resize-bar-n": c.value === "bottom",
816
850
  "f-layout-resize-bar-s": c.value === "top",
817
851
  "f-layout-resize-bar-w": c.value === "right"
818
852
  }));
819
- function d(i, y) {
820
- (y === "left" || y === "right") && P(i, y, n.value), (y === "top" || y === "bottom") && b(i, y, n.value);
853
+ function m(a, s) {
854
+ (s === "left" || s === "right") && w(a, s, n.value), (s === "top" || s === "bottom") && h(a, s, n.value);
821
855
  }
822
- const h = D(() => {
823
- const i = {
856
+ const d = M(() => {
857
+ const a = {
824
858
  "f-layout-pane": !0,
825
859
  "f-page-content-nav": c.value === "left" || c.value === "right",
826
860
  "f-page-content-main": c.value === "center"
827
861
  };
828
- return t.customClass && String(t.customClass).split(" ").reduce((y, f) => (y[f] = !0, y), i), i;
829
- }), H = D(() => {
830
- const i = {
862
+ return t.customClass && String(t.customClass).split(" ").reduce((s, g) => (s[g] = !0, s), a), a;
863
+ }), R = M(() => {
864
+ const a = {
831
865
  flex: "1"
832
866
  };
833
- return (w.value && c.value === "left" || c.value === "right") && (i.width = `${w.value}px`), (m.value && c.value === "bottom" || c.value === "top") && (i.height = `${m.value}px`), i;
867
+ return (P.value && c.value === "left" || c.value === "right") && (a.width = `${P.value}px`), (v.value && c.value === "bottom" || c.value === "top") && (a.height = `${v.value}px`), a;
834
868
  });
835
- return () => B("div", {
869
+ return () => S("div", {
836
870
  ref: n,
837
- class: h.value,
838
- style: H.value
839
- }, [B("div", {
871
+ class: d.value,
872
+ style: R.value
873
+ }, [S("div", {
840
874
  ref: o,
841
875
  class: "drag-container",
842
876
  "data-dragref": `${r.schema.id}-container`
843
- }, [e.slots.default && e.slots.default()]), B("span", {
844
- class: u.value,
845
- onMousedown: (i) => d(i, c.value)
877
+ }, [e.slots.default && e.slots.default()]), S("span", {
878
+ class: p.value,
879
+ onMousedown: (a) => m(a, c.value)
846
880
  }, null)]);
847
881
  }
848
882
  });
849
- A.install = (t) => {
850
- t.component(A.name, A), t.component(k.name, k);
883
+ j.install = (t) => {
884
+ t.component(j.name, j), t.component(A.name, A);
851
885
  };
852
- A.register = (t, e, n, o) => {
853
- t.layout = A, e.layout = Q, t["layout-pane"] = k, e["layout-pane"] = Z;
886
+ j.register = (t, e, n, o) => {
887
+ t.layout = j, e.layout = J, t["layout-pane"] = A, e["layout-pane"] = x;
854
888
  };
855
- A.registerDesigner = (t, e, n) => {
856
- t.layout = Ve, e.layout = Q, t["layout-pane"] = Ye, e["layout-pane"] = Z;
889
+ j.registerDesigner = (t, e, n) => {
890
+ t.layout = qe, e.layout = J, t["layout-pane"] = Ye, e["layout-pane"] = x;
857
891
  };
858
892
  export {
859
- A as FLayout,
860
- k as FLayoutPane,
861
- A as default,
862
- L as layoutProps,
863
- Q as layoutPropsResolver
893
+ j as FLayout,
894
+ A as FLayoutPane,
895
+ j as default,
896
+ F as layoutProps,
897
+ J as layoutPropsResolver
864
898
  };