@farris/ui-vue 1.7.1 → 1.7.2-beta.2

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 (431) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1492 -59
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-edit/index.esm.js +1 -1
  8. package/components/button-edit/index.umd.cjs +1 -1
  9. package/components/button-group/index.esm.js +266 -110
  10. package/components/button-group/index.umd.cjs +1 -1
  11. package/components/calendar/index.esm.js +344 -341
  12. package/components/calendar/index.umd.cjs +3 -3
  13. package/components/code-editor/index.esm.js +237 -169
  14. package/components/code-editor/index.umd.cjs +3 -3
  15. package/components/collection-property-editor/index.esm.js +302 -299
  16. package/components/collection-property-editor/index.umd.cjs +2 -2
  17. package/components/color-picker/index.esm.js +812 -502
  18. package/components/color-picker/index.umd.cjs +1 -1
  19. package/components/combo-list/index.esm.js +329 -292
  20. package/components/combo-list/index.umd.cjs +1 -1
  21. package/components/combo-tree/index.esm.js +355 -174
  22. package/components/combo-tree/index.umd.cjs +1 -1
  23. package/components/comment/index.esm.js +294 -291
  24. package/components/comment/index.umd.cjs +6 -6
  25. package/components/common/index.esm.js +1 -1
  26. package/components/common/index.umd.cjs +1 -1
  27. package/components/component/index.esm.js +4390 -2708
  28. package/components/component/index.umd.cjs +8 -1
  29. package/components/condition/index.esm.js +3140 -487
  30. package/components/condition/index.umd.cjs +8 -1
  31. package/components/data-grid/index.esm.js +4 -2
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.esm.js +1859 -1832
  34. package/components/data-view/index.umd.cjs +1 -1
  35. package/components/date-picker/index.esm.js +1 -1
  36. package/components/date-picker/index.umd.cjs +1 -1
  37. package/components/designer-canvas/index.esm.js +3731 -2717
  38. package/components/designer-canvas/index.umd.cjs +1 -1
  39. package/components/drawer/index.esm.js +417 -405
  40. package/components/drawer/index.umd.cjs +2 -2
  41. package/components/dropdown/index.esm.js +373 -124
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.esm.js +1245 -1895
  44. package/components/dynamic-form/index.umd.cjs +1 -1
  45. package/components/dynamic-resolver/index.esm.js +275 -271
  46. package/components/dynamic-resolver/index.umd.cjs +2 -2
  47. package/components/dynamic-view/index.esm.js +529 -450
  48. package/components/dynamic-view/index.umd.cjs +1 -1
  49. package/components/event-parameter/index.esm.js +1 -1
  50. package/components/event-parameter/index.umd.cjs +1 -1
  51. package/components/events-editor/index.esm.js +2613 -1544
  52. package/components/events-editor/index.umd.cjs +3 -3
  53. package/components/expression-editor/index.css +1 -1
  54. package/components/expression-editor/index.esm.js +7376 -2
  55. package/components/expression-editor/index.umd.cjs +427 -1
  56. package/components/fieldset/index.esm.js +1 -1
  57. package/components/fieldset/index.umd.cjs +1 -1
  58. package/components/filter-bar/index.esm.js +423 -415
  59. package/components/filter-bar/index.umd.cjs +2 -2
  60. package/components/filter-condition-editor/index.css +1 -1
  61. package/components/filter-condition-editor/index.esm.js +9049 -425
  62. package/components/filter-condition-editor/index.umd.cjs +427 -1
  63. package/components/html-template/index.esm.js +33 -36
  64. package/components/html-template/index.umd.cjs +1 -1
  65. package/components/image/index.esm.js +364 -355
  66. package/components/image/index.umd.cjs +2 -2
  67. package/components/image-cropper/index.esm.js +615 -361
  68. package/components/image-cropper/index.umd.cjs +1 -1
  69. package/components/json-editor/index.esm.js +325 -247
  70. package/components/json-editor/index.umd.cjs +1 -1
  71. package/components/language-textbox/index.esm.js +411 -409
  72. package/components/language-textbox/index.umd.cjs +2 -2
  73. package/components/layout/index.esm.js +549 -163
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +837 -39
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.esm.js +427 -646
  78. package/components/list-view/index.umd.cjs +6 -6
  79. package/components/lookup/index.esm.js +3624 -3625
  80. package/components/lookup/index.umd.cjs +1 -1
  81. package/components/mapping-editor/index.esm.js +5 -3
  82. package/components/mapping-editor/index.umd.cjs +1 -1
  83. package/components/menu-lookup/index.esm.js +577 -536
  84. package/components/menu-lookup/index.umd.cjs +6 -6
  85. package/components/nav/index.esm.js +311 -31
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +1641 -189
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +82 -82
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +1196 -851
  92. package/components/order/index.umd.cjs +6 -6
  93. package/components/page-footer/index.esm.js +331 -48
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +110 -116
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +509 -232
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/progress/index.esm.js +353 -148
  100. package/components/progress/index.umd.cjs +3 -3
  101. package/components/property-editor/index.esm.js +157 -153
  102. package/components/property-editor/index.umd.cjs +1 -1
  103. package/components/property-panel/index.esm.js +1817 -854
  104. package/components/property-panel/index.umd.cjs +12 -5
  105. package/components/query-solution/index.css +1 -1
  106. package/components/query-solution/index.esm.js +6858 -3984
  107. package/components/query-solution/index.umd.cjs +13 -6
  108. package/components/response-layout/index.esm.js +1 -1
  109. package/components/response-layout/index.umd.cjs +1 -1
  110. package/components/schema-selector/index.esm.js +2448 -2222
  111. package/components/schema-selector/index.umd.cjs +7 -7
  112. package/components/search-box/index.esm.js +244 -72
  113. package/components/search-box/index.umd.cjs +1 -1
  114. package/components/section/index.esm.js +212 -209
  115. package/components/section/index.umd.cjs +2 -2
  116. package/components/smoke-detector/index.esm.js +179 -8
  117. package/components/smoke-detector/index.umd.cjs +1 -1
  118. package/components/sort-condition-editor/index.css +1 -0
  119. package/components/sort-condition-editor/index.esm.js +9493 -4
  120. package/components/sort-condition-editor/index.umd.cjs +427 -1
  121. package/components/splitter/index.esm.js +1172 -142
  122. package/components/splitter/index.umd.cjs +1 -1
  123. package/components/step/index.esm.js +47 -48
  124. package/components/step/index.umd.cjs +1 -1
  125. package/components/tabs/index.esm.js +490 -419
  126. package/components/tabs/index.umd.cjs +1 -1
  127. package/components/text/index.esm.js +217 -73
  128. package/components/text/index.umd.cjs +1 -1
  129. package/components/textarea/index.esm.js +29 -27
  130. package/components/textarea/index.umd.cjs +2 -2
  131. package/components/transfer/index.esm.js +760 -543
  132. package/components/transfer/index.umd.cjs +5 -5
  133. package/components/tree-grid/index.esm.js +129 -128
  134. package/components/tree-grid/index.umd.cjs +1 -1
  135. package/components/tree-view/index.esm.js +320 -153
  136. package/components/tree-view/index.umd.cjs +1 -1
  137. package/components/uploader/index.esm.js +1112 -607
  138. package/components/uploader/index.umd.cjs +2 -2
  139. package/components/verify-detail/index.esm.js +359 -106
  140. package/components/verify-detail/index.umd.cjs +1 -1
  141. package/components/video/index.esm.js +222 -89
  142. package/components/video/index.umd.cjs +1 -1
  143. package/components/weather/index.esm.js +290 -199
  144. package/components/weather/index.umd.cjs +1 -1
  145. package/designer/data-grid/index.esm.js +5301 -4507
  146. package/designer/data-grid/index.umd.cjs +17 -10
  147. package/designer/drawer/index.esm.js +626 -615
  148. package/designer/drawer/index.umd.cjs +2 -2
  149. package/designer/dynamic-form/index.esm.js +2043 -1290
  150. package/designer/dynamic-form/index.umd.cjs +8 -1
  151. package/designer/farris-designer.all.esm.js +14263 -12505
  152. package/designer/farris-designer.all.umd.cjs +16 -16
  153. package/designer/list-view/index.esm.js +327 -327
  154. package/designer/list-view/index.umd.cjs +3 -3
  155. package/designer/modal/index.esm.js +29 -137
  156. package/designer/modal/index.umd.cjs +1 -1
  157. package/designer/radio-group/index.esm.js +238 -232
  158. package/designer/radio-group/index.umd.cjs +1 -1
  159. package/designer/response-layout-editor/index.esm.js +178 -171
  160. package/designer/response-layout-editor/index.umd.cjs +1 -1
  161. package/designer/response-toolbar/index.esm.js +1 -1
  162. package/designer/response-toolbar/index.umd.cjs +1 -1
  163. package/designer/section/index.esm.js +1 -6
  164. package/designer/section/index.umd.cjs +1 -1
  165. package/designer/tabs/index.esm.js +3431 -2493
  166. package/designer/tabs/index.umd.cjs +2 -2
  167. package/designer/time-picker/index.esm.js +195 -188
  168. package/designer/time-picker/index.umd.cjs +1 -1
  169. package/designer/tree-grid/index.esm.js +822 -464
  170. package/designer/tree-grid/index.umd.cjs +1 -1
  171. package/farris.all.esm.js +77525 -74884
  172. package/farris.all.umd.cjs +93 -93
  173. package/index.css +1 -1
  174. package/package.json +1 -1
  175. package/types/accordion/src/accordion.props.d.ts +1 -0
  176. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  177. package/types/avatar/src/avatar.props.d.ts +1 -0
  178. package/types/binding-selector/index.d.ts +54 -0
  179. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  180. package/types/button-group/index.d.ts +0 -15
  181. package/types/button-group/src/button-group.props.d.ts +1 -0
  182. package/types/code-editor/index.d.ts +1 -0
  183. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  184. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  185. package/types/color-picker/index.d.ts +15 -0
  186. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  187. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  188. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  189. package/types/component/index.d.ts +2 -0
  190. package/types/component/src/component.props.d.ts +8 -0
  191. package/types/components.d.ts +8 -1
  192. package/types/condition/index.d.ts +55 -0
  193. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
  194. package/types/data-view/composition/types.d.ts +1 -1
  195. package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
  196. package/types/designer-toolbox/index.d.ts +3 -0
  197. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  198. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  199. package/types/designer-toolbox/src/types.d.ts +21 -0
  200. package/types/designer.d.ts +13 -0
  201. package/types/dropdown/index.d.ts +6 -27
  202. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  203. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  204. package/types/dynamic-form/designer.d.ts +1 -4
  205. package/types/dynamic-form/index.d.ts +6 -11
  206. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  207. package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
  208. package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
  209. package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
  210. package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
  211. package/types/dynamic-form/src/response-form.props.d.ts +13 -1
  212. package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
  213. package/types/dynamic-form/src/types.d.ts +1 -0
  214. package/types/dynamic-resolver/index.d.ts +0 -3
  215. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  216. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  217. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  218. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  219. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  220. package/types/dynamic-resolver/src/types.d.ts +1 -0
  221. package/types/dynamic-view/index.d.ts +43 -3
  222. package/types/dynamic-view/src/components/maps.d.ts +110 -98
  223. package/types/dynamic-view/src/composition/index.d.ts +5 -0
  224. package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
  225. package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
  226. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  227. package/types/filter-condition-editor/index.d.ts +9 -0
  228. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  229. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  230. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  231. package/types/flow-canvas/index.d.ts +3 -0
  232. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
  233. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  234. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  235. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  236. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  237. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  238. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  239. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  240. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  241. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  242. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  243. package/types/index.d.ts +1 -0
  244. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  245. package/types/language-textbox/index.d.ts +3 -3
  246. package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
  247. package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
  248. package/types/layout/index.d.ts +0 -1
  249. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  250. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
  251. package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
  252. package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
  253. package/types/layout/src/designer/layout.design.component.d.ts +8 -0
  254. package/types/layout/src/layout.props.d.ts +1 -0
  255. package/types/layout/src/schema/schema-mapper.d.ts +2 -0
  256. package/types/layout/src/schema/schema-resolver.d.ts +2 -0
  257. package/types/list-nav/index.d.ts +5 -24
  258. package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
  259. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  260. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
  261. package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
  262. package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
  263. package/types/list-view/index.d.ts +0 -1
  264. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  265. package/types/lookup/index.d.ts +1 -1
  266. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  267. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  268. package/types/modal/designer.d.ts +0 -2
  269. package/types/nav/index.d.ts +20 -24
  270. package/types/nav/src/nav.props.d.ts +1 -0
  271. package/types/number-range/src/number-range.props.d.ts +1 -0
  272. package/types/order/index.d.ts +5 -36
  273. package/types/order/src/designer/order.design.component.d.ts +1 -1
  274. package/types/order/src/order.props.d.ts +1 -0
  275. package/types/page-footer/index.d.ts +2 -0
  276. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  277. package/types/pagination/index.d.ts +0 -15
  278. package/types/pagination/src/pagination.props.d.ts +1 -0
  279. package/types/progress/src/progress.props.d.ts +1 -0
  280. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  281. package/types/query-solution/index.d.ts +2 -1
  282. package/types/radio-group/designer.d.ts +1 -2
  283. package/types/search-box/index.d.ts +17 -1
  284. package/types/search-box/src/search-box.props.d.ts +1 -0
  285. package/types/section/designer.d.ts +0 -1
  286. package/types/smoke-detector/index.d.ts +2 -0
  287. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  288. package/types/sort-condition-editor/index.d.ts +7 -2
  289. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  290. package/types/splitter/index.d.ts +0 -1
  291. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  292. package/types/splitter/src/splitter.props.d.ts +1 -0
  293. package/types/tabs/designer.d.ts +0 -1
  294. package/types/tabs/index.d.ts +1 -0
  295. package/types/text/index.d.ts +20 -24
  296. package/types/text/src/text.props.d.ts +1 -0
  297. package/types/transfer/src/transfer.props.d.ts +1 -0
  298. package/types/tree-view/src/tree-view.props.d.ts +1 -0
  299. package/types/uploader/src/uploader.props.d.ts +1 -0
  300. package/types/verify-detail/index.d.ts +5 -58
  301. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  302. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  303. package/types/video/index.d.ts +20 -24
  304. package/types/video/src/video.props.d.ts +1 -0
  305. package/components/dynamic-form/index.css +0 -1
  306. package/designer/accordion/index.esm.js +0 -257
  307. package/designer/accordion/index.umd.cjs +0 -1
  308. package/designer/avatar/index.esm.js +0 -1460
  309. package/designer/avatar/index.umd.cjs +0 -1
  310. package/designer/binding-selector/index.esm.js +0 -792
  311. package/designer/binding-selector/index.umd.cjs +0 -1
  312. package/designer/button-group/index.esm.js +0 -282
  313. package/designer/button-group/index.umd.cjs +0 -1
  314. package/designer/code-editor/index.esm.js +0 -75
  315. package/designer/code-editor/index.umd.cjs +0 -1
  316. package/designer/color-picker/index.esm.js +0 -1096
  317. package/designer/color-picker/index.umd.cjs +0 -1
  318. package/designer/combo-list/index.esm.js +0 -1095
  319. package/designer/combo-list/index.umd.cjs +0 -1
  320. package/designer/combo-tree/index.esm.js +0 -186
  321. package/designer/combo-tree/index.umd.cjs +0 -1
  322. package/designer/component/index.css +0 -1
  323. package/designer/component/index.esm.js +0 -5002
  324. package/designer/component/index.umd.cjs +0 -1
  325. package/designer/condition/index.esm.js +0 -1899
  326. package/designer/condition/index.umd.cjs +0 -1
  327. package/designer/dropdown/index.esm.js +0 -261
  328. package/designer/dropdown/index.umd.cjs +0 -1
  329. package/designer/expression-editor/index.css +0 -1
  330. package/designer/expression-editor/index.esm.js +0 -7006
  331. package/designer/expression-editor/index.umd.cjs +0 -427
  332. package/designer/filter-condition-editor/index.css +0 -1
  333. package/designer/filter-condition-editor/index.esm.js +0 -4795
  334. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  335. package/designer/html-template/index.esm.js +0 -718
  336. package/designer/html-template/index.umd.cjs +0 -1
  337. package/designer/image-cropper/index.esm.js +0 -765
  338. package/designer/image-cropper/index.umd.cjs +0 -1
  339. package/designer/json-editor/index.esm.js +0 -83
  340. package/designer/json-editor/index.umd.cjs +0 -1
  341. package/designer/language-textbox/index.esm.js +0 -783
  342. package/designer/language-textbox/index.umd.cjs +0 -8
  343. package/designer/layout/index.esm.js +0 -430
  344. package/designer/layout/index.umd.cjs +0 -1
  345. package/designer/list-nav/index.esm.js +0 -802
  346. package/designer/list-nav/index.umd.cjs +0 -1
  347. package/designer/lookup/index.esm.js +0 -2083
  348. package/designer/lookup/index.umd.cjs +0 -1
  349. package/designer/menu-lookup/index.esm.js +0 -46
  350. package/designer/menu-lookup/index.umd.cjs +0 -1
  351. package/designer/nav/index.esm.js +0 -284
  352. package/designer/nav/index.umd.cjs +0 -1
  353. package/designer/number-range/index.esm.js +0 -1616
  354. package/designer/number-range/index.umd.cjs +0 -1
  355. package/designer/order/index.css +0 -1
  356. package/designer/order/index.esm.js +0 -2196
  357. package/designer/order/index.umd.cjs +0 -18
  358. package/designer/page-footer/index.esm.js +0 -290
  359. package/designer/page-footer/index.umd.cjs +0 -1
  360. package/designer/page-header/index.esm.js +0 -1003
  361. package/designer/page-header/index.umd.cjs +0 -1
  362. package/designer/pagination/index.esm.js +0 -591
  363. package/designer/pagination/index.umd.cjs +0 -1
  364. package/designer/progress/index.esm.js +0 -213
  365. package/designer/progress/index.umd.cjs +0 -1
  366. package/designer/search-box/index.esm.js +0 -245
  367. package/designer/search-box/index.umd.cjs +0 -1
  368. package/designer/smoke-detector/index.css +0 -1
  369. package/designer/smoke-detector/index.esm.js +0 -178
  370. package/designer/smoke-detector/index.umd.cjs +0 -1
  371. package/designer/sort-condition-editor/index.esm.js +0 -138
  372. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  373. package/designer/splitter/index.esm.js +0 -1120
  374. package/designer/splitter/index.umd.cjs +0 -1
  375. package/designer/step/index.esm.js +0 -226
  376. package/designer/step/index.umd.cjs +0 -1
  377. package/designer/text/index.esm.js +0 -147
  378. package/designer/text/index.umd.cjs +0 -1
  379. package/designer/transfer/index.esm.js +0 -254
  380. package/designer/transfer/index.umd.cjs +0 -1
  381. package/designer/tree-view/index.esm.js +0 -313
  382. package/designer/tree-view/index.umd.cjs +0 -1
  383. package/designer/uploader/index.esm.js +0 -1190
  384. package/designer/uploader/index.umd.cjs +0 -2
  385. package/designer/verify-detail/index.esm.js +0 -258
  386. package/designer/verify-detail/index.umd.cjs +0 -1
  387. package/designer/video/index.esm.js +0 -136
  388. package/designer/video/index.umd.cjs +0 -1
  389. package/designer/weather/index.css +0 -1
  390. package/designer/weather/index.esm.js +0 -6244
  391. package/designer/weather/index.umd.cjs +0 -14
  392. package/types/accordion/designer.d.ts +0 -44
  393. package/types/avatar/designer.d.ts +0 -29
  394. package/types/button-group/designer.d.ts +0 -29
  395. package/types/code-editor/designer.d.ts +0 -5
  396. package/types/color-picker/designer.d.ts +0 -29
  397. package/types/combo-list/designer.d.ts +0 -29
  398. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  399. package/types/combo-tree/designer.d.ts +0 -5
  400. package/types/component/designer.d.ts +0 -35
  401. package/types/condition/designer.d.ts +0 -56
  402. package/types/dropdown/designer.d.ts +0 -6
  403. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  404. package/types/expression-editor/designer.d.ts +0 -9
  405. package/types/filter-condition-editor/designer.d.ts +0 -10
  406. package/types/html-template/designer.d.ts +0 -31
  407. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  408. package/types/image-cropper/designer.d.ts +0 -4
  409. package/types/json-editor/designer.d.ts +0 -5
  410. package/types/menu-lookup/designer.d.ts +0 -5
  411. package/types/nav/designer.d.ts +0 -6
  412. package/types/number-range/designer.d.ts +0 -29
  413. package/types/order/designer.d.ts +0 -6
  414. package/types/page-footer/designer.d.ts +0 -6
  415. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  416. package/types/pagination/designer.d.ts +0 -29
  417. package/types/progress/designer.d.ts +0 -29
  418. package/types/search-box/designer.d.ts +0 -52
  419. package/types/smoke-detector/designer.d.ts +0 -6
  420. package/types/sort-condition-editor/designer.d.ts +0 -9
  421. package/types/splitter/designer.d.ts +0 -32
  422. package/types/step/designer.d.ts +0 -6
  423. package/types/text/designer.d.ts +0 -6
  424. package/types/transfer/designer.d.ts +0 -35
  425. package/types/tree-view/designer.d.ts +0 -29
  426. package/types/uploader/designer.d.ts +0 -141
  427. package/types/verify-detail/designer.d.ts +0 -6
  428. package/types/video/designer.d.ts +0 -6
  429. /package/{designer → components}/condition/index.css +0 -0
  430. /package/{designer → components}/uploader/index.css +0 -0
  431. /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
@@ -1,14 +1,13 @@
1
1
  import { resolveAppearance as te, createPropsResolver as J } from "../../components/dynamic-resolver/index.esm.js";
2
- import { getCustomStyle as Se, getMaxZIndex as xe, withInstall as Fe } from "../../components/common/index.esm.js";
3
- import { ref as M, computed as D, defineComponent as oe, watch as _, watchEffect as Pe, createVNode as p, Teleport as $e, Transition as Z, withModifiers as W, withDirectives as Re, vShow as De, Fragment as re, nextTick as Me, inject as G, onMounted as Ee } from "vue";
2
+ import { getCustomStyle as xe, getMaxZIndex as Fe, withInstall as Pe } from "../../components/common/index.esm.js";
3
+ import { ref as E, computed as D, defineComponent as re, watch as _, onMounted as oe, watchEffect as $e, createVNode as m, Teleport as Re, Transition as Z, withModifiers as W, withDirectives as De, vShow as Ee, Fragment as ne, nextTick as Me, inject as G } from "vue";
4
4
  import je, { responseToolbarProps as Oe } from "../../components/response-toolbar/index.esm.js";
5
5
  import { isPlainObject as Y, cloneDeep as K } from "lodash-es";
6
6
  import { LocaleService as ee } from "../../components/locale/index.esm.js";
7
- import { UseTemplateDragAndDropRules as Ie, DgControl as Be, useDragulaCommonRule as He, setPositionOfButtonGroup as Ne, useDesignerComponent as Ae, FDesignerInnerItem as Le } from "../../components/designer-canvas/index.esm.js";
8
- import { commonToolbarItemDesignProps as Ve, FResponseToolbarDesign as ne, FResponseToolbarItemDesign as qe } from "../response-toolbar/index.esm.js";
9
- import { BaseControlProperty as ze } from "../../components/property-panel/index.esm.js";
10
- import { canvasChanged as _e } from "../../components/designer-canvas/index.esm.js/src/composition/designer-canvas-changed";
11
- const ie = /* @__PURE__ */ new Map([
7
+ import { UseTemplateDragAndDropRules as Ie, DgControl as Be, useDragulaCommonRule as Ne, setPositionOfButtonGroup as He, useDesignerComponent as Le, FDesignerInnerItem as ze, canvasChanged as Ae } from "../../components/designer-canvas/index.esm.js";
8
+ import { commonToolbarItemDesignProps as qe, FResponseToolbarDesign as ie, FResponseToolbarItemDesign as Ve } from "../response-toolbar/index.esm.js";
9
+ import { BaseControlProperty as _e } from "../../components/property-panel/index.esm.js";
10
+ const ae = /* @__PURE__ */ new Map([
12
11
  ["appearance", te]
13
12
  ]), We = /* @__PURE__ */ new Map([
14
13
  ["buttons", "items"],
@@ -188,6 +187,10 @@ const ie = /* @__PURE__ */ new Map([
188
187
  description: "遮罩层是否透明",
189
188
  type: "boolean",
190
189
  default: !1
190
+ },
191
+ host: {
192
+ description: "",
193
+ type: "string"
191
194
  }
192
195
  }, Ye = [
193
196
  "id",
@@ -195,7 +198,7 @@ const ie = /* @__PURE__ */ new Map([
195
198
  "contents"
196
199
  ], Ke = {
197
200
  beforeClose: "关闭前事件"
198
- }, ae = {
201
+ }, se = {
199
202
  $schema: Ue,
200
203
  $id: Ge,
201
204
  title: Ze,
@@ -205,7 +208,7 @@ const ie = /* @__PURE__ */ new Map([
205
208
  required: Ye,
206
209
  events: Ke
207
210
  };
208
- function se(e, t, o) {
211
+ function le(e, t, r) {
209
212
  return Object.assign(t, {
210
213
  title: "标题",
211
214
  headerToolbar: {
@@ -220,76 +223,154 @@ function se(e, t, o) {
220
223
  }
221
224
  }), t;
222
225
  }
223
- function le(e, t, o) {
226
+ function ce(e, t, r) {
224
227
  return t;
225
228
  }
226
- function et(e = {}) {
227
- function t(f, v, s, c) {
228
- if (typeof s == "number")
229
- return c[f].length === s;
230
- if (typeof s == "object") {
231
- const b = Object.keys(s)[0], i = s[b];
232
- if (b === "not")
233
- return Number(c[f].length) !== Number(i);
234
- if (b === "moreThan")
235
- return Number(c[f].length) >= Number(i);
236
- if (b === "lessThan")
237
- return Number(c[f].length) <= Number(i);
229
+ function ue(e, t) {
230
+ let r;
231
+ function o(a) {
232
+ const { properties: u, title: v, ignore: i } = a, n = i && Array.isArray(i), s = Object.keys(u).reduce((d, h) => ((!n || !i.find((S) => S === h)) && (d[h] = u[h].type === "object" && u[h].properties ? o(u[h]) : K(u[h].default)), d), {});
233
+ if (v && (!n || !i.find((d) => d === "id"))) {
234
+ const d = v.toLowerCase().replace(/-/g, "_");
235
+ s.id = `${d}_${Math.random().toString().slice(2, 6)}`;
236
+ }
237
+ return s;
238
+ }
239
+ function b(a) {
240
+ const { properties: u, title: v, required: i } = a;
241
+ if (i && Array.isArray(i)) {
242
+ const n = i.reduce((s, d) => (s[d] = u[d].type === "object" && u[d].properties ? o(u[d]) : K(u[d].default), s), {});
243
+ if (v && i.find((s) => s === "id")) {
244
+ const s = v.toLowerCase().replace(/-/g, "_");
245
+ n.id = `${s}_${Math.random().toString().slice(2, 6)}`;
246
+ }
247
+ return n;
248
+ }
249
+ return {
250
+ type: v
251
+ };
252
+ }
253
+ function k(a, u = {}, v) {
254
+ const i = e[a];
255
+ if (i) {
256
+ let n = b(i);
257
+ const s = t[a];
258
+ return n = s ? s({ getSchemaByType: k }, n, u, v) : n, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(n), n;
259
+ }
260
+ return null;
261
+ }
262
+ function C(a, u) {
263
+ const v = o(u);
264
+ return Object.keys(v).reduce((i, n) => (Object.prototype.hasOwnProperty.call(a, n) && (i[n] && Y(i[n]) && Y(a[n] || !a[n]) ? Object.assign(i[n], a[n] || {}) : i[n] = a[n]), i), v), v;
265
+ }
266
+ function g(a, u) {
267
+ return Object.keys(a).filter((i) => a[i] != null).reduce((i, n) => {
268
+ if (u.has(n)) {
269
+ const s = u.get(n);
270
+ if (typeof s == "string")
271
+ i[s] = a[n];
272
+ else {
273
+ const d = s(n, a[n], a);
274
+ Object.assign(i, d);
275
+ }
276
+ } else
277
+ i[n] = a[n];
278
+ return i;
279
+ }, {});
280
+ }
281
+ function x(a, u, v = /* @__PURE__ */ new Map()) {
282
+ const i = C(a, u);
283
+ return g(i, v);
284
+ }
285
+ function f(a) {
286
+ var v;
287
+ const u = a.type;
288
+ if (u) {
289
+ const i = e[u];
290
+ if (!i)
291
+ return a;
292
+ const n = C(a, i), s = ((v = a.editor) == null ? void 0 : v.type) || "";
293
+ if (s) {
294
+ const d = e[s], h = C(a.editor, d);
295
+ n.editor = h;
296
+ }
297
+ return n;
298
+ }
299
+ return a;
300
+ }
301
+ function y(a) {
302
+ r = a;
303
+ }
304
+ return { getSchemaByType: k, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: x, mappingSchemaToProps: g, setDesignerContext: y };
305
+ }
306
+ const de = {}, fe = {}, { resolveSchemaWithDefaultValue: et, resolveSchemaToProps: tt, mappingSchemaToProps: rt } = ue(de, fe);
307
+ function ot(e = {}) {
308
+ function t(f, y, a, u) {
309
+ if (typeof a == "number")
310
+ return u[f].length === a;
311
+ if (typeof a == "object") {
312
+ const v = Object.keys(a)[0], i = a[v];
313
+ if (v === "not")
314
+ return Number(u[f].length) !== Number(i);
315
+ if (v === "moreThan")
316
+ return Number(u[f].length) >= Number(i);
317
+ if (v === "lessThan")
318
+ return Number(u[f].length) <= Number(i);
238
319
  }
239
320
  return !1;
240
321
  }
241
- function o(f, v, s, c) {
242
- return c[f] && c[f].propertyValue && String(c[f].propertyValue.value) === String(s);
322
+ function r(f, y, a, u) {
323
+ return u[f] && u[f].propertyValue && String(u[f].propertyValue.value) === String(a);
243
324
  }
244
- const r = /* @__PURE__ */ new Map([
325
+ const o = /* @__PURE__ */ new Map([
245
326
  ["length", t],
246
- ["getProperty", o]
327
+ ["getProperty", r]
247
328
  ]);
248
- Object.keys(e).reduce((f, v) => (f.set(v, e[v]), f), r);
249
- function g(f, v) {
250
- const s = f;
251
- return typeof v == "number" ? [{ target: s, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: s, operator: "getProperty", param: f, value: !!v }] : typeof v == "object" ? Object.keys(v).map((c) => {
252
- if (c === "length")
253
- return { target: s, operator: "length", param: null, value: v[c] };
254
- const b = c, i = v[c];
255
- return { target: s, operator: "getProperty", param: b, value: i };
329
+ Object.keys(e).reduce((f, y) => (f.set(y, e[y]), f), o);
330
+ function b(f, y) {
331
+ const a = f;
332
+ return typeof y == "number" ? [{ target: a, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: a, operator: "getProperty", param: f, value: !!y }] : typeof y == "object" ? Object.keys(y).map((u) => {
333
+ if (u === "length")
334
+ return { target: a, operator: "length", param: null, value: y[u] };
335
+ const v = u, i = y[u];
336
+ return { target: a, operator: "getProperty", param: v, value: i };
256
337
  }) : [];
257
338
  }
258
339
  function k(f) {
259
- return Object.keys(f).reduce((s, c) => {
260
- const b = g(c, f[c]);
261
- return s.push(...b), s;
340
+ return Object.keys(f).reduce((a, u) => {
341
+ const v = b(u, f[u]);
342
+ return a.push(...v), a;
262
343
  }, []);
263
344
  }
264
- function T(f, v) {
265
- if (r.has(f.operator)) {
266
- const s = r.get(f.operator);
267
- return s && s(f.target, f.param, f.value, v) || !1;
345
+ function C(f, y) {
346
+ if (o.has(f.operator)) {
347
+ const a = o.get(f.operator);
348
+ return a && a(f.target, f.param, f.value, y) || !1;
268
349
  }
269
350
  return !1;
270
351
  }
271
- function m(f, v) {
272
- return k(f).reduce((b, i) => b && T(i, v), !0);
352
+ function g(f, y) {
353
+ return k(f).reduce((v, i) => v && C(i, y), !0);
273
354
  }
274
- function x(f, v) {
275
- const s = Object.keys(f), c = s.includes("allOf"), b = s.includes("anyOf"), i = c || b, u = (i ? f[i ? c ? "allOf" : "anyOf" : "allOf"] : [f]).map((S) => m(S, v));
276
- return c ? !u.includes(!1) : u.includes(!0);
355
+ function x(f, y) {
356
+ const a = Object.keys(f), u = a.includes("allOf"), v = a.includes("anyOf"), i = u || v, d = (i ? f[i ? u ? "allOf" : "anyOf" : "allOf"] : [f]).map((S) => g(S, y));
357
+ return u ? !d.includes(!1) : d.includes(!0);
277
358
  }
278
359
  return { parseValueSchema: x };
279
360
  }
280
- const tt = {
281
- convertTo: (e, t, o, r) => {
282
- e.appearance || (e.appearance = {}), e.appearance[t] = o;
361
+ const nt = {
362
+ convertTo: (e, t, r, o) => {
363
+ e.appearance || (e.appearance = {}), e.appearance[t] = r;
283
364
  },
284
- convertFrom: (e, t, o) => e.appearance ? e.appearance[t] : e[t]
285
- }, ot = {
286
- convertFrom: (e, t, o) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
287
- }, rt = {
288
- convertTo: (e, t, o, r) => {
289
- e.editor && (e.editor[t] = o);
365
+ convertFrom: (e, t, r) => e.appearance ? e.appearance[t] : e[t]
366
+ }, it = {
367
+ convertFrom: (e, t, r) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
368
+ }, at = {
369
+ convertTo: (e, t, r, o) => {
370
+ e.editor && (e.editor[t] = r);
290
371
  },
291
- convertFrom: (e, t, o) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
292
- }, nt = {
372
+ convertFrom: (e, t, r) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
373
+ }, st = {
293
374
  button: { type: "button", name: "按钮" },
294
375
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
295
376
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -343,25 +424,30 @@ const tt = {
343
424
  "discussion-list": { type: "discussion-list", name: "评论列表" },
344
425
  comment: { type: "comment", name: "评论区" },
345
426
  "rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
346
- calendar: { type: "calendar", name: "日历", icon: "date-picker" }
347
- }, it = {
348
- convertFrom: (e, t, o) => {
349
- var g;
350
- const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
351
- return ((g = nt[r]) == null ? void 0 : g.name) || r;
427
+ calendar: { type: "calendar", name: "日历", icon: "date-picker" },
428
+ wizard: { type: "wizard", name: "向导", icon: "wizard" },
429
+ "wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
430
+ "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
431
+ step: { type: "step", name: "步骤条", icon: "step" },
432
+ "dynamic-form": { type: "dynamic-form", name: "动态表单" }
433
+ }, lt = {
434
+ convertFrom: (e, t, r) => {
435
+ var b;
436
+ const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
437
+ return ((b = st[o]) == null ? void 0 : b.name) || o;
352
438
  }
353
- }, at = {
354
- convertTo: (e, t, o, r) => {
439
+ }, ct = {
440
+ convertTo: (e, t, r, o) => {
355
441
  e[t] = e[t];
356
442
  },
357
- convertFrom: (e, t, o) => e.editor ? o.getRealEditorType(e.editor.type) : ""
358
- }, st = {
359
- convertTo: (e, t, o, r) => {
360
- (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = o : e.formatter = {
361
- [t]: o
443
+ convertFrom: (e, t, r) => e.editor ? r.getRealEditorType(e.editor.type) : ""
444
+ }, ut = {
445
+ convertTo: (e, t, r, o) => {
446
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = r : e.formatter = {
447
+ [t]: r
362
448
  });
363
449
  },
364
- convertFrom: (e, t, o) => {
450
+ convertFrom: (e, t, r) => {
365
451
  if (e.formatter) {
366
452
  if (t === "trueText")
367
453
  return e.formatter.trueText;
@@ -383,14 +469,16 @@ const tt = {
383
469
  return e.formatter.customFormat;
384
470
  if (t === "type")
385
471
  return e.formatter.type || "none";
472
+ if (t === "customFormat")
473
+ return e.formmater.customFormat;
386
474
  }
387
475
  return "none";
388
476
  }
389
- }, lt = {
390
- convertTo: (e, t, o, r) => {
391
- e.command ? e.command[t] = o : e.command = {
392
- [t]: o
393
- }, t === "enableType" && o === "default" && (e.command.enable = !0, e.command.commands = [
477
+ }, dt = {
478
+ convertTo: (e, t, r, o) => {
479
+ e.command ? e.command[t] = r : e.command = {
480
+ [t]: r
481
+ }, t === "enableType" && r === "default" && (e.command.enable = !0, e.command.commands = [
394
482
  {
395
483
  text: "编辑",
396
484
  type: "primary",
@@ -401,41 +489,29 @@ const tt = {
401
489
  type: "danger",
402
490
  command: "remove"
403
491
  }
404
- ]), t === "enableType" && o === "custom" && (e.command.enable = !0, e.command.commands = [
492
+ ]), t === "enableType" && r === "custom" && (e.command.enable = !0, e.command.commands = [
405
493
  {
406
494
  value: "add",
407
- text: {
408
- en: "add",
409
- "zh-CHS": "增加",
410
- "zh-CHT": "增加"
411
- },
495
+ text: "增加",
412
496
  type: "link"
413
497
  },
414
498
  {
415
499
  value: "edit",
416
- text: {
417
- en: "edit",
418
- "zh-CHS": "编辑",
419
- "zh-CHT": "編輯"
420
- },
500
+ text: "编辑",
421
501
  type: "danger"
422
502
  },
423
503
  {
424
504
  value: "remove",
425
- text: {
426
- en: "remove",
427
- "zh-CHS": "删除",
428
- "zh-CHT": "刪除"
429
- },
505
+ text: "删除",
430
506
  type: "remove"
431
507
  }
432
- ]), t === "enableType" && o === "unable" && (e.command.enable = !1);
508
+ ]), t === "enableType" && r === "unable" && (e.command.enable = !1);
433
509
  },
434
- convertFrom: (e, t, o) => {
435
- var r, g;
510
+ convertFrom: (e, t, r) => {
511
+ var o, b;
436
512
  if (e.command) {
437
513
  if (t === "enableType") {
438
- const k = (g = (r = e.command) == null ? void 0 : r.commands) == null ? void 0 : g.find((T) => T.command === "edit" && T.type === "primary");
514
+ const k = (b = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : b.find((C) => C.command === "edit" && C.type === "primary");
439
515
  return e.command.enable ? k ? "default" : "custom" : "unable";
440
516
  }
441
517
  if (t === "commands")
@@ -444,16 +520,18 @@ const tt = {
444
520
  return e.command.formatter;
445
521
  if (t === "count")
446
522
  return e.command.count;
523
+ if (t === "columnWidth")
524
+ return e.command.columnWidth || 150;
447
525
  }
448
526
  return "";
449
527
  }
450
- }, ct = {
451
- convertTo: (e, t, o, r) => {
452
- e.column ? e.column[t] = o : e.column = {
453
- [t]: o
454
- }, t === "fitColumns" && o && (e.column.fitMode || (e.column.fitMode = "average"));
528
+ }, ft = {
529
+ convertTo: (e, t, r, o) => {
530
+ e.column ? e.column[t] = r : e.column = {
531
+ [t]: r
532
+ }, t === "fitColumns" && r && (e.column.fitMode || (e.column.fitMode = "average"));
455
533
  },
456
- convertFrom: (e, t, o) => {
534
+ convertFrom: (e, t, r) => {
457
535
  if (e.column) {
458
536
  if (t === "fitColumns")
459
537
  return e.column.fitColumns;
@@ -462,27 +540,30 @@ const tt = {
462
540
  }
463
541
  return "";
464
542
  }
465
- }, ut = {
466
- convertTo: (e, t, o, r) => {
467
- e.summary ? e.summary[t] = o : e.summary = {
468
- [t]: o
469
- }, t === "enable" && o && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
470
- enable: o,
543
+ }, mt = {
544
+ convertTo: (e, t, r, o) => {
545
+ e.summary ? e.summary[t] = r : e.summary = {
546
+ [t]: r
547
+ }, t === "enable" && r && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
548
+ enable: r,
471
549
  groupFields: []
472
550
  });
473
551
  },
474
- convertFrom: (e, t, o) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
475
- }, dt = {
476
- convertTo: (e, t, o, r) => {
477
- e.group ? e.group[t] = o : e.group = {
478
- [t]: o
479
- }, t === "enable" && o && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
480
- enable: o,
552
+ convertFrom: (e, t, r) => {
553
+ var o;
554
+ return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
555
+ }
556
+ }, pt = {
557
+ convertTo: (e, t, r, o) => {
558
+ e.group ? e.group[t] = r : e.group = {
559
+ [t]: r
560
+ }, t === "enable" && r && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
561
+ enable: r,
481
562
  groupFields: [],
482
563
  showSummary: !1
483
564
  });
484
565
  },
485
- convertFrom: (e, t, o) => {
566
+ convertFrom: (e, t, r) => {
486
567
  if (e.group) {
487
568
  if (t === "enable")
488
569
  return e.group.enable;
@@ -490,122 +571,124 @@ const tt = {
490
571
  return e.group.showSummary;
491
572
  }
492
573
  }
493
- }, ft = {
574
+ }, gt = {
494
575
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
495
- convertTo: (e, t, o) => {
496
- if (o && o.length > 0) {
497
- const r = o[0];
498
- e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
576
+ convertTo: (e, t, r) => {
577
+ if (r && r.length > 0) {
578
+ const o = r[0];
579
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
499
580
  }
500
581
  }
501
- }, pt = {
502
- convertTo: (e, t, o, r) => {
503
- e.pagination || (e.pagination = {}), e.pagination[t] = o;
582
+ }, bt = {
583
+ convertTo: (e, t, r, o) => {
584
+ e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = r.split(",") : e.pagination[t] = r;
504
585
  },
505
- convertFrom: (e, t, o) => e.pagination ? e.pagination[t] : e[t]
506
- }, mt = {
507
- convertTo: (e, t, o, r) => {
508
- e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = o;
586
+ convertFrom: (e, t, r) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
587
+ }, vt = {
588
+ convertTo: (e, t, r, o) => {
589
+ e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
509
590
  },
510
- convertFrom: (e, t, o) => e.rowNumber ? e.rowNumber[t] : e[t]
511
- }, bt = {
512
- convertTo: (e, t, o, r) => {
513
- e.selection || (e.selection = {}), e.selection[t] = o;
591
+ convertFrom: (e, t, r) => e.rowNumber ? e.rowNumber[t] : e[t]
592
+ }, yt = {
593
+ convertTo: (e, t, r, o) => {
594
+ e.selection || (e.selection = {}), e.selection[t] = r;
514
595
  },
515
- convertFrom: (e, t, o) => {
516
- var r, g;
517
- return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (g = e.selection) == null ? void 0 : g.showCheckbox : e.selection ? e.selection[t] : e[t];
596
+ convertFrom: (e, t, r) => {
597
+ var o, b;
598
+ return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (b = e.selection) == null ? void 0 : b.showCheckbox : e.selection ? e.selection[t] : e[t];
518
599
  }
519
- }, gt = {
520
- convertFrom: (e, t, o) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
521
- }, vt = {
600
+ }, ht = {
601
+ convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
602
+ }, wt = {
522
603
  convertFrom: (e, t) => e[t] || "",
523
- convertTo: (e, t, o) => {
524
- e[t] = o;
604
+ convertTo: (e, t, r) => {
605
+ e[t] = r;
525
606
  }
526
- }, yt = {
527
- convertTo: (e, t, o, r) => {
528
- e.size || (e.size = {}), e.size[t] = o;
607
+ }, Ct = {
608
+ convertTo: (e, t, r, o) => {
609
+ e.size || (e.size = {}), e.size[t] = r;
529
610
  },
530
- convertFrom: (e, t, o) => e.size ? e.size[t] : e[t]
531
- }, ht = {
532
- convertFrom: (e, t, o) => {
533
- var r, g;
534
- return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (g = e.formatter) == null ? void 0 : g.data : e.formatterEnumData;
611
+ convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
612
+ }, Tt = {
613
+ convertFrom: (e, t, r) => {
614
+ var o, b;
615
+ return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (b = e.formatter) == null ? void 0 : b.data : e.formatterEnumData;
535
616
  }
536
- }, wt = {
537
- convertTo: (e, t, o, r) => {
538
- e.sort || (e.sort = {}), e.sort[t] = o;
617
+ }, kt = {
618
+ convertTo: (e, t, r, o) => {
619
+ e.sort || (e.sort = {}), e.sort[t] = r;
539
620
  },
540
- convertFrom: (e, t, o) => {
541
- var r, g;
621
+ convertFrom: (e, t, r) => {
622
+ var o, b;
542
623
  if (t === "mode")
543
- return ((r = e.sort) == null ? void 0 : r.mode) || "client";
624
+ return ((o = e.sort) == null ? void 0 : o.mode) || "client";
544
625
  if (t === "multiSort")
545
- return !!((g = e.sort) != null && g.multiSort);
626
+ return !!((b = e.sort) != null && b.multiSort);
546
627
  }
547
- }, Ct = {
548
- convertTo: (e, t, o, r) => {
549
- e.filter || (e.filter = {}), e.filter[t] = o;
628
+ }, St = {
629
+ convertTo: (e, t, r, o) => {
630
+ e.filter || (e.filter = {}), e.filter[t] = r;
550
631
  },
551
- convertFrom: (e, t, o) => {
552
- var r;
632
+ convertFrom: (e, t, r) => {
633
+ var o;
553
634
  if (t === "mode")
554
- return ((r = e.filter) == null ? void 0 : r.mode) || "client";
635
+ return ((o = e.filter) == null ? void 0 : o.mode) || "client";
555
636
  }
556
- }, Tt = {
557
- convertTo: (e, t, o, r) => {
558
- e.rowOption ? e.rowOption[t] = o : e.rowOption = {
559
- [t]: o
637
+ }, xt = {
638
+ convertTo: (e, t, r, o) => {
639
+ e.rowOption ? e.rowOption[t] = r : e.rowOption = {
640
+ [t]: r
560
641
  };
561
642
  },
562
- convertFrom: (e, t, o) => {
643
+ convertFrom: (e, t, r) => {
563
644
  if (e.rowOption) {
564
645
  if (t === "customRowStyle")
565
646
  return e.rowOption.customRowStyle;
566
647
  if (t === "customCellStyle")
567
648
  return e.rowOption.customCellStyle;
649
+ if (t === "height")
650
+ return e.rowOption.height;
568
651
  }
569
652
  return "";
570
653
  }
571
- }, kt = {
572
- convertTo: (e, t, o, r) => {
573
- (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = o, t === "columnTemplateType" && o === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
654
+ }, Ft = {
655
+ convertTo: (e, t, r, o) => {
656
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = r, t === "columnTemplateType" && r === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
574
657
  <span class="f-pretend-link f-cursor-pointer"
575
658
  @click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
576
659
  {{rowData.${e.field}}}
577
660
  </span>` : e.columnTemplate = `
578
661
  <span class="f-pretend-link f-cursor-pointer">
579
662
  {{rowData.${e.field}}}
580
- </span>`), t === "columnTemplateType" && o === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && o === "custom" && (e.columnTemplate = ""));
663
+ </span>`), t === "columnTemplateType" && r === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && r === "custom" && (e.columnTemplate = ""));
581
664
  },
582
- convertFrom: (e, t, o) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
665
+ convertFrom: (e, t, r) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
583
666
  };
584
- function ce(e, t, o) {
585
- const r = /* @__PURE__ */ new Map([
586
- ["/converter/appearance.converter", tt],
587
- ["/converter/buttons.converter", ot],
588
- ["/converter/property-editor.converter", rt],
589
- ["/converter/items-count.converter", gt],
590
- ["/converter/type.converter", it],
591
- ["/converter/change-editor.converter", at],
592
- ["/converter/change-formatter.converter", st],
593
- ["/converter/column-command.converter", lt],
594
- ["/converter/column-option.converter", ct],
595
- ["/converter/summary.converter", ut],
596
- ["/converter/group.converter", dt],
597
- ["/converter/form-group-label.converter", vt],
598
- ["/converter/field-selector.converter", ft],
599
- ["/converter/pagination.converter", pt],
600
- ["/converter/row-number.converter", mt],
601
- ["/converter/grid-selection.converter", bt],
602
- ["/converter/size.converter", yt],
603
- ["/converter/change-formatter-enum.converter", ht],
604
- ["/converter/grid-sort.converter", wt],
605
- ["/converter/grid-filter.converter", Ct],
606
- ["/converter/row-option.converter", Tt],
607
- ["/converter/change-formatter-type.converter", kt]
608
- ]), g = /* @__PURE__ */ new Map([
667
+ function me(e, t, r) {
668
+ const o = /* @__PURE__ */ new Map([
669
+ ["/converter/appearance.converter", nt],
670
+ ["/converter/buttons.converter", it],
671
+ ["/converter/property-editor.converter", at],
672
+ ["/converter/items-count.converter", ht],
673
+ ["/converter/type.converter", lt],
674
+ ["/converter/change-editor.converter", ct],
675
+ ["/converter/change-formatter.converter", ut],
676
+ ["/converter/column-command.converter", dt],
677
+ ["/converter/column-option.converter", ft],
678
+ ["/converter/summary.converter", mt],
679
+ ["/converter/group.converter", pt],
680
+ ["/converter/form-group-label.converter", wt],
681
+ ["/converter/field-selector.converter", gt],
682
+ ["/converter/pagination.converter", bt],
683
+ ["/converter/row-number.converter", vt],
684
+ ["/converter/grid-selection.converter", yt],
685
+ ["/converter/size.converter", Ct],
686
+ ["/converter/change-formatter-enum.converter", Tt],
687
+ ["/converter/grid-sort.converter", kt],
688
+ ["/converter/grid-filter.converter", St],
689
+ ["/converter/row-option.converter", xt],
690
+ ["/converter/change-formatter-type.converter", Ft]
691
+ ]), b = /* @__PURE__ */ new Map([
609
692
  ["string", { type: "input-group", enableClear: !1 }],
610
693
  ["boolean", {
611
694
  type: "combo-list",
@@ -629,194 +712,117 @@ function ce(e, t, o) {
629
712
  ["array", { type: "button-edit" }],
630
713
  ["number", { type: "number-spinner", placeholder: "" }],
631
714
  ["events-editor", { type: "events-editor", hide: !0 }]
632
- ]), k = et();
633
- function T(i, n) {
715
+ ]), k = ot();
716
+ function C(i, n) {
634
717
  return () => k.parseValueSchema(i, n);
635
718
  }
636
- function m(i, n, l) {
637
- return i.includes("visible") && n.visible !== void 0 ? typeof n.visible == "boolean" ? () => !!n.visible : n.visible === void 0 ? !0 : T(n.visible, l) : () => !0;
719
+ function g(i, n, s) {
720
+ return i.includes("visible") && n.visible !== void 0 ? typeof n.visible == "boolean" ? () => !!n.visible : n.visible === void 0 ? !0 : C(n.visible, s) : () => !0;
638
721
  }
639
- function x(i, n, l) {
640
- return i.includes("readonly") && n.readonly !== void 0 ? typeof n.readonly == "boolean" ? () => !!n.readonly : T(n.readonly, l) : () => !1;
722
+ function x(i, n, s) {
723
+ return i.includes("readonly") && n.readonly !== void 0 ? typeof n.readonly == "boolean" ? () => !!n.readonly : C(n.readonly, s) : () => !1;
641
724
  }
642
725
  function f(i, n) {
643
- const l = i.$converter || n;
644
- return typeof l == "string" && l && r.has(l) ? r.get(l) || null : l || null;
726
+ const s = i.$converter || n;
727
+ return typeof s == "string" && s && o.has(s) ? o.get(s) || null : s || null;
645
728
  }
646
- function v(i, n, l, u, h, S = "", $ = "") {
647
- return Object.keys(i).map((a) => {
648
- const y = M(1), R = a, w = i[a], d = Object.keys(w), B = w.title, E = w.type, N = g.get(E) || { type: "input-group", enableClear: !1 }, O = w.editor ? Object.assign({}, N, w.editor) : Object.assign({}, N), L = m(d, w, n), A = x(d, w, n);
649
- O.readonly = O.readonly === void 0 ? A() : O.readonly;
650
- const V = w.type === "cascade" ? v(w.properties, n, l, u, h, S, $) : [], q = !0;
651
- let C = f(w, $);
652
- const P = D({
729
+ function y(i, n, s, d, h, S = "", R = "") {
730
+ return Object.keys(i).map((T) => {
731
+ const M = E(1), l = T, c = i[T], p = Object.keys(c), O = c.title, F = c.type, B = b.get(F) || { type: "input-group", enableClear: !1 }, j = c.editor ? Object.assign({}, B, c.editor) : Object.assign({}, B), z = g(p, c, n), L = x(p, c, n);
732
+ j.readonly = j.readonly === void 0 ? L() : j.readonly;
733
+ const A = c.type === "cascade" ? y(c.properties, n, s, d, h, S, R) : [], q = !0;
734
+ let w = f(c, R);
735
+ const $ = D({
653
736
  get() {
654
- if (y.value) {
655
- if (["class", "style"].find((ke) => ke === R) && !C && (C = r.get("/converter/appearance.converter") || null), C && C.convertFrom)
656
- return C.convertFrom(l, a, h, S);
657
- const H = l[a];
658
- return Object.prototype.hasOwnProperty.call(w, "defaultValue") && (H === void 0 || typeof H == "string" && H === "") ? w.type === "boolean" ? w.defaultValue : w.defaultValue || "" : H;
737
+ if (M.value) {
738
+ if (["class", "style"].find((Se) => Se === l) && !w && (w = o.get("/converter/appearance.converter") || null), w && w.convertFrom)
739
+ return w.convertFrom(s, T, h, S);
740
+ const H = s[T];
741
+ return Object.prototype.hasOwnProperty.call(c, "defaultValue") && (H === void 0 || typeof H == "string" && H === "") ? c.type === "boolean" ? c.defaultValue : c.defaultValue || "" : H;
659
742
  }
660
743
  return null;
661
744
  },
662
745
  set(H) {
663
- y.value += 1, C && C.convertTo ? (C.convertTo(u, a, H, h, S), C.convertTo(l, a, H, h, S)) : (u[a] = H, l[a] = H);
746
+ M.value += 1, w && w.convertTo ? (w.convertTo(d, T, H, h, S), w.convertTo(s, T, H, h, S)) : (d[T] = H, s[T] = H);
664
747
  }
665
- }), { refreshPanelAfterChanged: I, description: j, isExpand: Ce, parentPropertyID: Te } = w, X = { propertyID: R, propertyName: B, propertyType: E, propertyValue: P, editor: O, visible: L, readonly: A, cascadeConfig: V, hideCascadeTitle: q, refreshPanelAfterChanged: I, description: j, isExpand: Ce, parentPropertyID: Te };
666
- return n[R] = X, X;
748
+ }), { refreshPanelAfterChanged: N, description: I, isExpand: Te, parentPropertyID: ke } = c, X = { propertyID: l, propertyName: O, propertyType: F, propertyValue: $, editor: j, visible: z, readonly: L, cascadeConfig: A, hideCascadeTitle: q, refreshPanelAfterChanged: N, description: I, isExpand: Te, parentPropertyID: ke };
749
+ return n[l] = X, X;
667
750
  });
668
751
  }
669
- function s(i, n, l = {}) {
670
- const u = {}, h = e[i];
671
- return h && h.categories ? Object.keys(h.categories).map(($) => {
672
- const F = h.categories[$], a = F == null ? void 0 : F.title, y = v(F.properties || {}, u, {}, l, n);
673
- return { categoryId: $, categoryName: a, properties: y };
752
+ function a(i, n, s = {}) {
753
+ const d = {}, h = e[i];
754
+ return h && h.categories ? Object.keys(h.categories).map((R) => {
755
+ const P = h.categories[R], T = P == null ? void 0 : P.title, M = y(P.properties || {}, d, {}, s, n);
756
+ return { categoryId: R, categoryName: T, properties: M };
674
757
  }) : [];
675
758
  }
676
- function c(i, n, l, u, h = "") {
677
- const S = n.$ref.schema, $ = n.$ref.converter, F = l[S], a = F.type, y = o(F), R = {}, w = e[a];
678
- if (w && w.categories) {
679
- const d = w.categories[i], B = d == null ? void 0 : d.title;
680
- $ && Object.keys(d.properties).forEach((O) => {
681
- d.properties[O].$converter = $;
759
+ function u(i, n, s, d, h = "") {
760
+ const S = n.$ref.schema, R = n.$ref.converter, P = s[S], T = P.type, M = r(P), l = {}, c = e[T];
761
+ if (c && c.categories) {
762
+ const p = c.categories[i], O = p == null ? void 0 : p.title;
763
+ R && Object.keys(p.properties).forEach((j) => {
764
+ p.properties[j].$converter = R;
682
765
  });
683
- const E = (d == null ? void 0 : d.properties) || {}, N = v(E, R, y, F, u, h);
684
- return { categoryId: i, categoryName: B, properties: N };
766
+ const F = (p == null ? void 0 : p.properties) || {}, B = y(F, l, M, P, d, h);
767
+ return { categoryId: i, categoryName: O, properties: B };
685
768
  }
686
769
  return { categoryId: i, categoryName: "", properties: [] };
687
770
  }
688
- function b(i, n, l, u, h) {
689
- const S = i.type, $ = o(i), F = {};
690
- let a = h || e[S];
691
- if (!(a && Object.keys(a).length > 0) && l && l.getPropConfig && (a = l.getPropConfig(u)), a && a.categories) {
692
- const R = [];
693
- return Object.keys(a.categories).map((w) => {
694
- const d = a.categories[w];
695
- if (d.$ref) {
696
- R.push(c(w, d, i, n, u));
771
+ function v(i, n, s, d, h) {
772
+ const S = i.type, R = r(i), P = {};
773
+ let T = h || e[S];
774
+ if (!(T && Object.keys(T).length > 0) && s && s.getPropConfig && (T = s.getPropConfig(d)), T && T.categories) {
775
+ const l = [];
776
+ return Object.keys(T.categories).map((c) => {
777
+ const p = T.categories[c];
778
+ if (p.$ref) {
779
+ l.push(u(c, p, i, n, d));
697
780
  return;
698
781
  }
699
- const B = d == null ? void 0 : d.title, E = d == null ? void 0 : d.tabId, N = d == null ? void 0 : d.tabName, O = d == null ? void 0 : d.hide, L = d == null ? void 0 : d.hideTitle, A = v(d.properties || {}, F, $, i, n, u, d.$converter), { setPropertyRelates: V } = d, q = d == null ? void 0 : d.parentPropertyID;
700
- R.push({ categoryId: w, categoryName: B, tabId: E, tabName: N, hide: O, properties: A, hideTitle: L, setPropertyRelates: V, parentPropertyID: q });
701
- }), R;
782
+ const O = p == null ? void 0 : p.title, F = p == null ? void 0 : p.tabId, B = p == null ? void 0 : p.tabName, j = p == null ? void 0 : p.hide, z = p == null ? void 0 : p.hideTitle, L = y(p.properties || {}, P, R, i, n, d, p.$converter), { setPropertyRelates: A } = p, q = p == null ? void 0 : p.parentPropertyID;
783
+ l.push({ categoryId: c, categoryName: O, tabId: F, tabName: B, hide: j, properties: L, hideTitle: z, setPropertyRelates: A, parentPropertyID: q });
784
+ }), l;
702
785
  }
703
786
  return [];
704
787
  }
705
788
  return {
706
- getPropertyConfigBySchema: b,
707
- getPropertyConfigByType: s,
708
- propertyConverterMap: r
789
+ getPropertyConfigBySchema: v,
790
+ getPropertyConfigByType: a,
791
+ propertyConverterMap: o
709
792
  };
710
793
  }
711
- function ue(e, t) {
712
- let o;
713
- function r(s) {
714
- const { properties: c, title: b, ignore: i } = s, n = i && Array.isArray(i), l = Object.keys(c).reduce((u, h) => ((!n || !i.find((S) => S === h)) && (u[h] = c[h].type === "object" && c[h].properties ? r(c[h]) : K(c[h].default)), u), {});
715
- if (b && (!n || !i.find((u) => u === "id"))) {
716
- const u = b.toLowerCase().replace(/-/g, "_");
717
- l.id = `${u}_${Math.random().toString().slice(2, 6)}`;
718
- }
719
- return l;
720
- }
721
- function g(s) {
722
- const { properties: c, title: b, required: i } = s;
723
- if (i && Array.isArray(i)) {
724
- const n = i.reduce((l, u) => (l[u] = c[u].type === "object" && c[u].properties ? r(c[u]) : K(c[u].default), l), {});
725
- if (b && i.find((l) => l === "id")) {
726
- const l = b.toLowerCase().replace(/-/g, "_");
727
- n.id = `${l}_${Math.random().toString().slice(2, 6)}`;
728
- }
729
- return n;
730
- }
731
- return {
732
- type: b
733
- };
734
- }
735
- function k(s, c = {}, b) {
736
- const i = e[s];
737
- if (i) {
738
- let n = g(i);
739
- const l = t[s];
740
- return n = l ? l({ getSchemaByType: k }, n, c, b) : n, o != null && o.appendIdentifyForNewControl && o.appendIdentifyForNewControl(n), n;
741
- }
742
- return null;
743
- }
744
- function T(s, c) {
745
- const b = r(c);
746
- return Object.keys(b).reduce((i, n) => (Object.prototype.hasOwnProperty.call(s, n) && (i[n] && Y(i[n]) && Y(s[n] || !s[n]) ? Object.assign(i[n], s[n] || {}) : i[n] = s[n]), i), b), b;
747
- }
748
- function m(s, c) {
749
- return Object.keys(s).filter((i) => s[i] != null).reduce((i, n) => {
750
- if (c.has(n)) {
751
- const l = c.get(n);
752
- if (typeof l == "string")
753
- i[l] = s[n];
754
- else {
755
- const u = l(n, s[n], s);
756
- Object.assign(i, u);
757
- }
758
- } else
759
- i[n] = s[n];
760
- return i;
761
- }, {});
762
- }
763
- function x(s, c, b = /* @__PURE__ */ new Map()) {
764
- const i = T(s, c);
765
- return m(i, b);
766
- }
767
- function f(s) {
768
- var b;
769
- const c = s.type;
770
- if (c) {
771
- const i = e[c];
772
- if (!i)
773
- return s;
774
- const n = T(s, i), l = ((b = s.editor) == null ? void 0 : b.type) || "";
775
- if (l) {
776
- const u = e[l], h = T(s.editor, u);
777
- n.editor = h;
778
- }
779
- return n;
780
- }
781
- return s;
782
- }
783
- function v(s) {
784
- o = s;
785
- }
786
- return { getSchemaByType: k, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: x, mappingSchemaToProps: m, setDesignerContext: v };
787
- }
788
- const de = {}, fe = {}, { resolveSchemaWithDefaultValue: St } = ue(de, fe), pe = {}, me = {};
789
- ce(pe, me, St);
790
- const be = {}, ge = {}, { resolveSchemaWithDefaultValue: xt, resolveSchemaToProps: Ft, mappingSchemaToProps: Pt } = ue(be, ge), ve = {}, ye = {};
791
- ce(ve, ye, xt);
792
- function $t(e, t, o = /* @__PURE__ */ new Map(), r = (T, m, x, f) => m, g = {}, k = (T) => T) {
793
- return be[t.title] = t, ge[t.title] = r, ve[t.title] = g, ye[t.title] = k, de[t.title] = t, fe[t.title] = r, pe[t.title] = g, me[t.title] = k, (T = {}, m = !0) => {
794
- if (!m)
795
- return Pt(T, o);
796
- const x = Ft(T, t, o), f = Object.keys(e).reduce((v, s) => (v[s] = e[s].default, v), {});
794
+ const pe = {}, ge = {};
795
+ me(pe, ge, et);
796
+ const be = {}, ve = {}, { resolveSchemaWithDefaultValue: Pt } = ue(be, ve), ye = {}, he = {};
797
+ me(ye, he, Pt);
798
+ function $t(e, t, r = /* @__PURE__ */ new Map(), o = (C, g, x, f) => g, b = {}, k = (C) => C) {
799
+ return de[t.title] = t, fe[t.title] = o, pe[t.title] = b, ge[t.title] = k, be[t.title] = t, ve[t.title] = o, ye[t.title] = b, he[t.title] = k, (C = {}, g = !0) => {
800
+ if (!g)
801
+ return rt(C, r);
802
+ const x = tt(C, t, r), f = Object.keys(e).reduce((y, a) => (y[a] = e[a].default, y), {});
797
803
  return Object.assign(f, x);
798
804
  };
799
805
  }
800
806
  function Rt(e, t) {
801
807
  if (!e || e.length < 1)
802
808
  return null;
803
- for (const o of e) {
804
- if (o.id === t)
805
- return o;
806
- if (o.children) {
807
- const r = o.children.find((g) => g.id === t);
808
- if (r)
809
- return r;
809
+ for (const r of e) {
810
+ if (r.id === t)
811
+ return r;
812
+ if (r.children) {
813
+ const o = r.children.find((b) => b.id === t);
814
+ if (o)
815
+ return o;
810
816
  }
811
817
  }
812
818
  return null;
813
819
  }
814
820
  function Dt() {
815
- function e(t, o) {
816
- const { footerToolbar: r, headerToolbar: g } = t, k = ((r == null ? void 0 : r.buttons) || []).concat((g == null ? void 0 : g.buttons) || []);
821
+ function e(t, r) {
822
+ const { footerToolbar: o, headerToolbar: b } = t, k = ((o == null ? void 0 : o.buttons) || []).concat((b == null ? void 0 : b.buttons) || []);
817
823
  if (!k || k.length < 1)
818
824
  return null;
819
- const [T, m] = o.payloads, x = Rt(k, m);
825
+ const [C, g] = r.payloads, x = Rt(k, g);
820
826
  return x ? x.onClick || x.click : null;
821
827
  }
822
828
  return {
@@ -877,207 +883,212 @@ const Q = {
877
883
  customClass: { type: String, default: "" },
878
884
  customStyle: { type: String, default: "" }
879
885
  };
880
- $t(Q, ae, ie, se);
881
- const Mt = Dt();
882
- function Et() {
886
+ $t(Q, se, ae, le);
887
+ const Et = Dt();
888
+ function Mt() {
883
889
  return { drawerLocale: {
884
890
  cancel: ee.getLocaleValue("drawer.cancel") || "取消",
885
891
  confirm: ee.getLocaleValue("drawer.confirm") || "确定"
886
892
  } };
887
893
  }
888
- const jt = /* @__PURE__ */ oe({
894
+ const jt = /* @__PURE__ */ re({
889
895
  name: "FDrawer",
890
896
  props: Q,
891
897
  emits: ["afterClose", "update:modelValue", "click"],
892
898
  setup(e, t) {
893
- Et();
894
- const o = M(e.modelValue), r = M(e.buttons), g = D(() => ({
899
+ Mt();
900
+ const r = E(e.modelValue), o = E(e.buttons), b = E(!1), k = D(() => ({
895
901
  "f-utils-absolute-all f-drawer": !0,
896
902
  // 在某个DOM内部打开抽屉
897
903
  "f-drawer-inline": typeof e.host == "string" ? e.host !== "body" : document.querySelector(e.host) !== document.body
898
- })), k = D(() => ({
904
+ })), C = D(() => ({
899
905
  opacity: e.transparent ? 0 : 1
900
- })), T = D(() => {
901
- const a = {};
902
- return e.maskClass && e.maskClass.split(" ").forEach((y) => {
903
- a[y] = !0;
906
+ })), g = D(() => {
907
+ const l = {};
908
+ return e.maskClass && e.maskClass.split(" ").forEach((c) => {
909
+ l[c] = !0;
904
910
  }), {
905
911
  "f-drawer-mask f-utils-absolute-all": !0,
906
- ...a
912
+ ...l
907
913
  };
908
- }), m = D(() => {
909
- const a = {};
910
- return e.customClass && e.customClass.split(" ").forEach((y) => {
911
- a[y] = !0;
914
+ }), x = D(() => {
915
+ const l = {};
916
+ return e.customClass && e.customClass.split(" ").forEach((c) => {
917
+ l[c] = !0;
912
918
  }), {
913
919
  "f-drawer-wrapper": !0,
914
920
  [`f-drawer-wrapper-${e.position}`]: !0,
915
- ...a
921
+ ...l
916
922
  };
917
- }), x = D(() => {
918
- const a = e.width;
919
- return typeof a == "string" ? a : typeof a == "number" ? `${a}px` : "20%";
920
923
  }), f = D(() => {
921
- const a = e.height;
922
- return typeof a == "string" ? a : typeof a == "number" ? `${a}px` : "20%";
923
- }), v = D(() => {
924
- let a = "-6px 0";
924
+ const l = e.width;
925
+ return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
926
+ }), y = D(() => {
927
+ const l = e.height;
928
+ return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
929
+ }), a = D(() => {
930
+ let l = "-6px 0";
925
931
  switch (e.position) {
926
932
  case "left":
927
- a = "6px 0";
933
+ l = "6px 0";
928
934
  break;
929
935
  case "right":
930
- a = "-6px 0";
936
+ l = "-6px 0";
931
937
  break;
932
938
  case "top":
933
- a = "0 6px";
939
+ l = "0 6px";
934
940
  break;
935
941
  case "bottom":
936
- a = "0 -6px";
942
+ l = "0 -6px";
937
943
  break;
938
944
  }
939
- const y = {
940
- width: x.value,
941
- height: f.value,
945
+ const c = {
946
+ width: f.value,
947
+ height: y.value,
942
948
  backgroundColor: e.backgroundColor,
943
949
  maxWidth: "100%"
944
950
  };
945
- return e.transparent && (y.boxShadow = `${a} 8px 0 rgba(31, 35, 41, .1)`), Se(y, e == null ? void 0 : e.customStyle);
946
- }), s = D(() => `f-drawer-${e.position}`), c = (a) => {
951
+ return e.transparent && (c.boxShadow = `${l} 8px 0 rgba(31, 35, 41, .1)`), xe(c, e == null ? void 0 : e.customStyle);
952
+ }), u = D(() => `f-drawer-${e.position}`), v = (l) => {
947
953
  Promise.resolve().then(() => {
948
- var y;
949
- return (y = e.beforeClose) == null ? void 0 : y.call(e);
950
- }).then((y) => {
951
- y && (o.value = !1, t.emit("update:modelValue", o.value), t.emit("afterClose"));
954
+ var c;
955
+ return (c = e.beforeClose) == null ? void 0 : c.call(e);
956
+ }).then((c) => {
957
+ c && (r.value = !1, t.emit("update:modelValue", r.value), t.emit("afterClose"));
952
958
  });
953
959
  };
954
- _(() => e.modelValue, (a, y) => {
955
- a !== y && (o.value = a);
960
+ _(() => e.modelValue, (l, c) => {
961
+ l !== c && (r.value = l);
956
962
  });
957
- const b = (a, y) => {
958
- t.emit("click", a, y);
959
- }, i = {
963
+ const i = (l, c) => {
964
+ t.emit("click", l, c);
965
+ }, n = {
960
966
  close: () => {
961
- o.value = !1;
967
+ r.value = !1;
962
968
  }
963
969
  };
964
- async function n(a, y) {
965
- a.handle && await a.handle(y, i) && t.emit("closed", y);
970
+ async function s(l, c) {
971
+ l.handle && await l.handle(c, n) && t.emit("closed", c);
966
972
  }
967
- const l = (a, y) => p(je, {
968
- class: y,
973
+ const d = (l, c) => m(je, {
974
+ class: c,
969
975
  alignment: "right",
970
- items: a,
971
- onClick: b
976
+ items: l,
977
+ onClick: i
972
978
  }, null);
973
- function u() {
974
- var a, y, R, w;
975
- if ((y = (a = e.footerToolbar) == null ? void 0 : a.buttons) != null && y.length && (e.footerToolbar.visible === void 0 || e.footerToolbar.visible)) {
976
- const d = {
979
+ function h() {
980
+ var l, c, p, O;
981
+ if ((c = (l = e.footerToolbar) == null ? void 0 : l.buttons) != null && c.length && (e.footerToolbar.visible === void 0 || e.footerToolbar.visible)) {
982
+ const F = {
977
983
  "f-utils-fill": !0
978
984
  };
979
- return (w = (R = e.footerToolbar) == null ? void 0 : R.appearance) != null && w.class && (d[e.footerToolbar.appearance.class] = !0), l(e.footerToolbar.buttons, d);
985
+ return (O = (p = e.footerToolbar) == null ? void 0 : p.appearance) != null && O.class && (F[e.footerToolbar.appearance.class] = !0), d(e.footerToolbar.buttons, F);
980
986
  }
981
- return r.value && !!r.value.length && r.value.map((d) => {
982
- const B = M(d.disabled);
983
- return p("button", {
984
- id: d.id,
987
+ return o.value && !!o.value.length && o.value.map((F) => {
988
+ const B = E(F.disabled);
989
+ return m("button", {
990
+ id: F.id,
985
991
  type: "button",
986
992
  disabled: B.value,
987
- class: d.class + (d.iconClass ? " btn-icontext" : ""),
988
- onClick: (E) => {
989
- n(d, E);
993
+ class: F.class + (F.iconClass ? " btn-icontext" : ""),
994
+ onClick: (j) => {
995
+ s(F, j);
990
996
  }
991
- }, [!!d.iconClass && p("i", {
992
- class: d.iconClass
993
- }, null), d.text]);
997
+ }, [!!F.iconClass && m("i", {
998
+ class: F.iconClass
999
+ }, null), F.text]);
994
1000
  });
995
1001
  }
996
- function h() {
997
- return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : u();
998
- }
999
1002
  function S() {
1000
- var y, R;
1001
- const a = {
1003
+ return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : h();
1004
+ }
1005
+ function R() {
1006
+ var c, p;
1007
+ const l = {
1002
1008
  "f-utils-fill": !0
1003
1009
  };
1004
- return (R = (y = e.headerToolbar) == null ? void 0 : y.appearance) != null && R.class && (a[e.headerToolbar.appearance.class] = !0), e.headerTemplate && typeof e.headerTemplate == "function" ? e.headerTemplate() : t.slots.headerTemplate ? t.slots.headerTemplate() : p(re, null, [p("div", {
1010
+ return (p = (c = e.headerToolbar) == null ? void 0 : c.appearance) != null && p.class && (l[e.headerToolbar.appearance.class] = !0), e.headerTemplate && typeof e.headerTemplate == "function" ? e.headerTemplate() : t.slots.headerTemplate ? t.slots.headerTemplate() : m(ne, null, [m("div", {
1005
1011
  class: "f-drawer-title",
1006
1012
  title: e.title
1007
- }, [e.title]), e.headerToolbar && (e.headerToolbar.visible === void 0 || e.headerToolbar.visible) && p("div", {
1013
+ }, [e.title]), e.headerToolbar && (e.headerToolbar.visible === void 0 || e.headerToolbar.visible) && m("div", {
1008
1014
  class: "f-utils-fill-flex-row mx-2 col-7"
1009
- }, [l(e.headerToolbar.buttons || [], a)]), e.showClose && p("div", {
1015
+ }, [d(e.headerToolbar.buttons || [], l)]), e.showClose && m("div", {
1010
1016
  class: "f-drawer-close"
1011
- }, [p("span", {
1017
+ }, [m("span", {
1012
1018
  class: "f-icon f-icon-close",
1013
- onClick: W((w) => {
1014
- c();
1019
+ onClick: W((O) => {
1020
+ v();
1015
1021
  }, ["stop"])
1016
1022
  }, null)])]);
1017
1023
  }
1018
- const $ = M({});
1019
- function F() {
1020
- const a = xe();
1021
- $.value = {
1022
- zIndex: a < 1e3 ? 1e3 : a
1024
+ const P = E({});
1025
+ function T() {
1026
+ const l = Fe();
1027
+ P.value = {
1028
+ zIndex: l < 1e3 ? 1e3 : l
1023
1029
  };
1024
1030
  }
1025
- return Pe(() => {
1026
- o.value && F();
1031
+ function M() {
1032
+ return b.value ? !0 : typeof e.host == "string" ? e.host === "body" ? !0 : !!document.querySelector(e.host) : !!e.host;
1033
+ }
1034
+ return b.value = M(), oe(() => {
1035
+ b.value = M();
1036
+ }), $e(() => {
1037
+ r.value && T();
1027
1038
  }), t.expose({
1028
1039
  open: () => {
1029
- o.value = !0;
1040
+ r.value = !0;
1030
1041
  },
1031
1042
  close: () => {
1032
- c();
1043
+ v();
1033
1044
  }
1034
- }), () => p($e, {
1045
+ }), () => b.value ? m(Re, {
1035
1046
  to: e.host
1036
1047
  }, {
1037
- default: () => [p("div", {
1038
- class: g.value,
1048
+ default: () => [m("div", {
1049
+ class: k.value,
1039
1050
  id: e.id,
1040
- style: $.value
1041
- }, [p(Z, {
1051
+ style: P.value
1052
+ }, [m(Z, {
1042
1053
  name: "f-drawer-mask",
1043
1054
  appear: !0
1044
1055
  }, {
1045
- default: () => [o.value && p("div", {
1046
- class: T.value,
1047
- style: k.value,
1048
- onClick: W((a) => {
1049
- e.allowClickMaskToClose && c();
1056
+ default: () => [r.value && m("div", {
1057
+ class: g.value,
1058
+ style: C.value,
1059
+ onClick: W((l) => {
1060
+ e.allowClickMaskToClose && v();
1050
1061
  }, ["stop"])
1051
1062
  }, null)]
1052
- }), p(Z, {
1053
- name: s.value
1063
+ }), m(Z, {
1064
+ name: u.value
1054
1065
  }, {
1055
1066
  default: () => {
1056
- var a, y;
1057
- return [Re(p("div", {
1058
- class: m.value,
1059
- style: v.value
1060
- }, [p("div", {
1067
+ var l, c;
1068
+ return [De(m("div", {
1069
+ class: x.value,
1070
+ style: a.value
1071
+ }, [m("div", {
1061
1072
  class: "f-drawer-container"
1062
- }, [e.showHeader && p("div", {
1073
+ }, [e.showHeader && m("div", {
1063
1074
  class: "f-drawer-header align-items-center"
1064
- }, [S()]), p("div", {
1075
+ }, [R()]), m("div", {
1065
1076
  class: "f-drawer-body f-utils-fill",
1066
1077
  style: "overflow: auto;"
1067
- }, [(y = (a = t.slots).default) == null ? void 0 : y.call(a)]), e.showFooter && p("div", {
1078
+ }, [(c = (l = t.slots).default) == null ? void 0 : c.call(l)]), e.showFooter && m("div", {
1068
1079
  class: "f-drawer-footer px-2",
1069
1080
  style: {
1070
1081
  height: e.footerHeight + "px"
1071
1082
  }
1072
- }, [h()])])]), [[De, o.value]])];
1083
+ }, [S()])])]), [[Ee, r.value]])];
1073
1084
  }
1074
1085
  })])]
1075
- });
1086
+ }) : null;
1076
1087
  }
1077
1088
  });
1078
- class Ot extends ze {
1079
- constructor(t, o) {
1080
- super(t, o);
1089
+ class Ot extends _e {
1090
+ constructor(t, r) {
1091
+ super(t, r);
1081
1092
  }
1082
1093
  getPropertyConfig(t) {
1083
1094
  return this.propertyConfig.categories.basic = this.getBasicPropConfig(t), this.propertyConfig.categories.appearance = this.getAppearanceConfig(t), this.getBehaviorConfig(), this.propertyConfig.categories.header = this.headerPropertyConfig(t), this.propertyConfig.categories.footer = this.footerPropertyConfig(t), this.propertyConfig.categories.eventsEditor = this.eventPropertyConfig(t), this.propertyConfig;
@@ -1123,11 +1134,11 @@ class Ot extends ze {
1123
1134
  visible: t.showHeader !== !1 && t.customHeader === !0
1124
1135
  }
1125
1136
  },
1126
- setPropertyRelates: (o, r) => {
1127
- if (o)
1128
- switch (o && o.propertyID) {
1137
+ setPropertyRelates: (r, o) => {
1138
+ if (r)
1139
+ switch (r && r.propertyID) {
1129
1140
  case "title": {
1130
- o.needRefreshControlTree = !0;
1141
+ r.needRefreshControlTree = !0;
1131
1142
  break;
1132
1143
  }
1133
1144
  }
@@ -1185,15 +1196,15 @@ class Ot extends ze {
1185
1196
  visible: t.footerContentType === "html" && t.showFooter !== !1
1186
1197
  }
1187
1198
  },
1188
- setPropertyRelates: (o, r) => {
1189
- if (o)
1190
- switch (o && o.propertyID) {
1199
+ setPropertyRelates: (r, o) => {
1200
+ if (r)
1201
+ switch (r && r.propertyID) {
1191
1202
  case "showFooter": {
1192
- r.footerToolbar = { id: r.id + "_footer-toolbar", type: "drawer-toolbar", buttons: [] }, r.footerTemplate = "", r.footerContentType = "toolbar";
1203
+ o.footerToolbar = { id: o.id + "_footer-toolbar", type: "drawer-toolbar", buttons: [] }, o.footerTemplate = "", o.footerContentType = "toolbar";
1193
1204
  break;
1194
1205
  }
1195
1206
  case "footerContentType": {
1196
- this.resetFooterContent(r, o.propertyValue);
1207
+ this.resetFooterContent(o, r.propertyValue);
1197
1208
  break;
1198
1209
  }
1199
1210
  }
@@ -1246,8 +1257,8 @@ class Ot extends ze {
1246
1257
  }
1247
1258
  };
1248
1259
  }
1249
- resetFooterContent(t, o = "toolbar") {
1250
- switch (o) {
1260
+ resetFooterContent(t, r = "toolbar") {
1261
+ switch (r) {
1251
1262
  case "toolbar": {
1252
1263
  t.footerTemplate = "";
1253
1264
  break;
@@ -1259,109 +1270,109 @@ class Ot extends ze {
1259
1270
  }
1260
1271
  }
1261
1272
  eventPropertyConfig(t) {
1262
- const o = this, r = [
1273
+ const r = this, o = [
1263
1274
  {
1264
1275
  label: "beforeClose",
1265
1276
  name: "关闭前事件"
1266
1277
  }
1267
- ], g = o.eventsEditorUtils.formProperties(t, o.viewModelId, r);
1278
+ ], b = r.eventsEditorUtils.formProperties(t, r.viewModelId, o);
1268
1279
  return {
1269
1280
  title: "事件",
1270
1281
  hideTitle: !0,
1271
- properties: o.createBaseEventProperty(g),
1282
+ properties: r.createBaseEventProperty(b),
1272
1283
  // 这个属性,标记当属性变更得时候触发重新更新属性
1273
1284
  refreshPanelAfterChanged: !0,
1274
1285
  tabId: "commands",
1275
1286
  tabName: "交互",
1276
- setPropertyRelates(T, m) {
1277
- const x = T.propertyValue;
1278
- delete m[o.viewModelId], x && o.eventsEditorUtils.saveRelatedParameters(m, o.viewModelId, x.events, x);
1279
- const f = o.designViewModelUtils.getDgViewModel(o.viewModelId);
1280
- f && o.designViewModelField && f.changeField(o.designViewModelField.id, { valueChanging: m.fieldValueChanging, valueChanged: m.fieldValueChanged });
1287
+ setPropertyRelates(C, g) {
1288
+ const x = C.propertyValue;
1289
+ delete g[r.viewModelId], x && r.eventsEditorUtils.saveRelatedParameters(g, r.viewModelId, x.events, x);
1290
+ const f = r.designViewModelUtils.getDgViewModel(r.viewModelId);
1291
+ f && r.designViewModelField && f.changeField(r.designViewModelField.id, { valueChanging: g.fieldValueChanging, valueChanged: g.fieldValueChanged });
1281
1292
  }
1282
1293
  };
1283
1294
  }
1284
1295
  }
1285
- function It(e, t, o) {
1286
- const r = new Ie();
1287
- function g(n) {
1288
- if (!He().basalDragulaRuleForContainer(n, o))
1296
+ function It(e, t, r) {
1297
+ const o = new Ie();
1298
+ function b(n) {
1299
+ if (!Ne().basalDragulaRuleForContainer(n, r))
1289
1300
  return !1;
1290
- const { canAccept: u } = r.getTemplateRule(e, o);
1291
- return u;
1301
+ const { canAccept: d } = o.getTemplateRule(e, r);
1302
+ return d;
1292
1303
  }
1293
1304
  function k() {
1294
1305
  return !1;
1295
1306
  }
1296
- function T() {
1307
+ function C() {
1297
1308
  return !1;
1298
1309
  }
1299
- function m() {
1310
+ function g() {
1300
1311
  return !0;
1301
1312
  }
1302
1313
  function x() {
1303
1314
  return "position: initial !important;border: none !important;left: 0;right: 0;padding: 0;";
1304
1315
  }
1305
1316
  function f(n) {
1306
- const l = new Ot(n, o), { schema: u } = e;
1307
- return l.getPropertyConfig(u);
1317
+ const s = new Ot(n, r), { schema: d } = e;
1318
+ return s.getPropertyConfig(d);
1308
1319
  }
1309
- function v(n) {
1320
+ function y(n) {
1310
1321
  return t;
1311
1322
  }
1312
- function s() {
1323
+ function a() {
1313
1324
  e.designerItemElementRef.value && Me(() => {
1314
- Ne(t.value);
1325
+ He(t.value);
1315
1326
  });
1316
1327
  }
1317
- function c(n) {
1328
+ function u(n) {
1318
1329
  if (!n)
1319
1330
  return;
1320
- const { changeObject: l } = n;
1321
- l && ["width", "position"].includes(l.propertyID) && s();
1331
+ const { changeObject: s } = n;
1332
+ s && ["width", "position"].includes(s.propertyID) && a();
1322
1333
  }
1323
- function b(n, l, u) {
1334
+ function v(n, s, d) {
1324
1335
  var h;
1325
1336
  (h = n == null ? void 0 : n.buttons) != null && h.length && n.buttons.map((S) => {
1326
- var $;
1327
- u.set(S.id, {
1337
+ var R;
1338
+ d.set(S.id, {
1328
1339
  componentTitle: S.text,
1329
- parentPathName: `${l} > ${S.text}`
1330
- }), ($ = S.children) != null && $.length && S.children.map((F) => {
1331
- u.set(F.id, {
1332
- componentTitle: F.text,
1333
- parentPathName: `${l} > ${F.text}`
1340
+ parentPathName: `${s} > ${S.text}`
1341
+ }), (R = S.children) != null && R.length && S.children.map((P) => {
1342
+ d.set(P.id, {
1343
+ componentTitle: P.text,
1344
+ parentPathName: `${s} > ${P.text}`
1334
1345
  });
1335
1346
  });
1336
1347
  });
1337
1348
  }
1338
1349
  function i() {
1339
- if (e && o) {
1340
- const { formSchemaUtils: n } = o, l = n.getControlBasicInfoMap(), { schema: u } = e, h = u.title || Be.drawer.name;
1341
- l.set(u.id, {
1350
+ if (e && r) {
1351
+ const { formSchemaUtils: n } = r, s = n.getControlBasicInfoMap(), { schema: d } = e, h = d.title || Be.drawer.name;
1352
+ s.set(d.id, {
1342
1353
  componentTitle: h,
1343
1354
  parentPathName: h
1344
- }), b(u.headerToolbar, h, l), b(u.footerToolbar, h, l);
1355
+ }), v(d.headerToolbar, h, s), v(d.footerToolbar, h, s);
1345
1356
  }
1346
1357
  }
1347
1358
  return {
1348
- canAccepts: g,
1359
+ canAccepts: b,
1349
1360
  checkCanDeleteComponent: k,
1350
- checkCanMoveComponent: T,
1351
- hideNestedPaddingInDesginerView: m,
1361
+ checkCanMoveComponent: C,
1362
+ hideNestedPaddingInDesginerView: g,
1352
1363
  getStyles: x,
1353
1364
  getPropsConfig: f,
1354
- getDraggableDesignItemElement: v,
1355
- onPropertyChanged: c,
1365
+ getDraggableDesignItemElement: y,
1366
+ onPropertyChanged: u,
1356
1367
  setComponentBasicInfoMap: i
1357
1368
  };
1358
1369
  }
1359
- const he = Object.assign({}, Q, {
1370
+ const we = Object.assign({}, Q, {
1360
1371
  componentId: { type: String, default: "" },
1361
1372
  footerContentType: { type: String, default: "toolbar" },
1362
1373
  customHeader: { type: Boolean, default: !1 },
1363
1374
  showWrapperInCanvas: { type: Boolean, default: !1 }
1364
- }), Bt = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Nt = "drawer-toolbar-item", At = "A Farris Toolbar Item Component", Lt = "object", Vt = {
1375
+ }), Bt = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Ht = "drawer-toolbar-item", Lt = "A Farris Toolbar Item Component", zt = "object", At = {
1365
1376
  id: {
1366
1377
  description: "The unique identifier for a Response Toolbar",
1367
1378
  type: "string"
@@ -1433,17 +1444,17 @@ const he = Object.assign({}, Q, {
1433
1444
  "id",
1434
1445
  "type",
1435
1446
  "text"
1436
- ], zt = {
1447
+ ], Vt = {
1437
1448
  onClick: "点击事件"
1438
1449
  }, _t = {
1439
1450
  $schema: Bt,
1440
- $id: Ht,
1441
- title: Nt,
1442
- description: At,
1443
- type: Lt,
1444
- properties: Vt,
1451
+ $id: Nt,
1452
+ title: Ht,
1453
+ description: Lt,
1454
+ type: zt,
1455
+ properties: At,
1445
1456
  required: qt,
1446
- events: zt
1457
+ events: Vt
1447
1458
  }, Wt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/section-toolbar.schema.json", Gt = "drawer-toolbar", Zt = "A Farris Toolbar Component", Jt = "object", Qt = {
1448
1459
  id: {
1449
1460
  description: "The unique identifier for a Section Toolbar",
@@ -1498,197 +1509,197 @@ const he = Object.assign({}, Q, {
1498
1509
  properties: Qt,
1499
1510
  required: Xt,
1500
1511
  events: Yt
1501
- }, eo = Object.assign({}, Ve), to = J(eo, _t, void 0, le), oo = Object.assign({}, Oe, {
1512
+ }, er = Object.assign({}, qe), tr = J(er, _t, void 0, ce), rr = Object.assign({}, Oe, {
1502
1513
  componentId: { type: String, default: "" }
1503
- }), z = J(
1504
- oo,
1514
+ }), V = J(
1515
+ rr,
1505
1516
  Kt,
1506
1517
  We,
1507
- le
1508
- ), U = /* @__PURE__ */ oe({
1518
+ ce
1519
+ ), U = /* @__PURE__ */ re({
1509
1520
  name: "FDrawerDesign",
1510
- props: he,
1521
+ props: we,
1511
1522
  setup(e, t) {
1512
- const o = M(), r = M(), g = e.id + "_footer-toolbar", k = e.id + "_header-toolbar", T = G("designer-host-service"), m = G("design-item-context"), x = It(m, r, T), f = Ae(o, m, x);
1513
- m.schema.footerToolbar = m.schema.footerToolbar || {
1514
- id: g,
1523
+ const r = E(), o = E(), b = e.id + "_footer-toolbar", k = e.id + "_header-toolbar", C = G("designer-host-service"), g = G("design-item-context"), x = It(g, o, C), f = Le(r, g, x);
1524
+ g.schema.footerToolbar = g.schema.footerToolbar || {
1525
+ id: b,
1515
1526
  type: "drawer-toolbar",
1516
1527
  buttons: []
1517
1528
  };
1518
- const v = M(m.schema.footerToolbar), s = M(z(v.value));
1519
- _(() => m.schema.footerToolbar, () => {
1520
- v.value = m.schema.footerToolbar, s.value = z(v.value);
1529
+ const y = E(g.schema.footerToolbar), a = E(V(y.value));
1530
+ _(() => g.schema.footerToolbar, () => {
1531
+ y.value = g.schema.footerToolbar, a.value = V(y.value);
1521
1532
  }, {
1522
1533
  deep: !0
1523
1534
  });
1524
- const c = G("design-item-context"), b = D(() => [...s.value.items]);
1525
- m.schema.headerToolbar = m.schema.headerToolbar || {
1535
+ const u = G("design-item-context"), v = D(() => [...a.value.items]);
1536
+ g.schema.headerToolbar = g.schema.headerToolbar || {
1526
1537
  id: k,
1527
1538
  type: "drawer-toolbar",
1528
1539
  buttons: []
1529
1540
  };
1530
- const i = M(m.schema.headerToolbar), n = M(z(i.value));
1531
- _(() => m.schema.headerToolbar, () => {
1532
- i.value = m.schema.headerToolbar, n.value = z(i.value);
1541
+ const i = E(g.schema.headerToolbar), n = E(V(i.value));
1542
+ _(() => g.schema.headerToolbar, () => {
1543
+ i.value = g.schema.headerToolbar, n.value = V(i.value);
1533
1544
  }, {
1534
1545
  deep: !0
1535
1546
  });
1536
- const l = D(() => [...n.value.items]);
1537
- Ee(() => {
1538
- o.value.componentInstance = f;
1547
+ const s = D(() => [...n.value.items]);
1548
+ oe(() => {
1549
+ r.value.componentInstance = f;
1539
1550
  }), t.expose(f.value);
1540
- const u = M(e.modelValue || m.schema.showWrapperInCanvas);
1551
+ const d = E(e.modelValue || g.schema.showWrapperInCanvas);
1541
1552
  _(() => e.modelValue, () => {
1542
- u.value = e.modelValue;
1553
+ d.value = e.modelValue;
1543
1554
  });
1544
1555
  const h = D(() => {
1545
- const C = ["f-drawer-wrapper", `f-drawer-wrapper-${e.position}`, e.wrapperClass];
1546
- return u.value || C.push("d-none"), C;
1556
+ const w = ["f-drawer-wrapper", `f-drawer-wrapper-${e.position}`, e.wrapperClass];
1557
+ return d.value || w.push("d-none"), w;
1547
1558
  }), S = D(() => {
1548
- const C = e.width, P = e.height, I = typeof C == "string" ? C : typeof C == "number" ? `${C}px` : "20%", j = typeof P == "string" ? P : typeof P == "number" ? `${P}px` : "20%";
1559
+ const w = e.width, $ = e.height, N = typeof w == "string" ? w : typeof w == "number" ? `${w}px` : "20%", I = typeof $ == "string" ? $ : typeof $ == "number" ? `${$}px` : "20%";
1549
1560
  return {
1550
- width: I,
1551
- height: j,
1561
+ width: N,
1562
+ height: I,
1552
1563
  backgroundColor: e.backgroundColor,
1553
1564
  maxWidth: "100%"
1554
1565
  };
1555
- }), $ = D(() => ["f-drawer-entry", `f-drawer-entry-${e.position}`, e.entryClass]), F = D(() => `f-icon-arrow-chevron-${{
1566
+ }), R = D(() => ["f-drawer-entry", `f-drawer-entry-${e.position}`, e.entryClass]), P = D(() => `f-icon-arrow-chevron-${{
1556
1567
  left: "right",
1557
1568
  right: "left",
1558
1569
  top: "down",
1559
1570
  bottom: "up"
1560
- }[e.position] ?? "right"}`), a = () => {
1561
- u.value = !1, m.schema.showWrapperInCanvas = !1;
1562
- }, y = () => {
1563
- u.value = !0, m.schema.showWrapperInCanvas = !0;
1564
- }, R = () => p("div", {
1565
- class: $.value,
1566
- onClick: y
1567
- }, [t.slots.button ? t.slots.button() : p("div", {
1571
+ }[e.position] ?? "right"}`), T = () => {
1572
+ d.value = !1, g.schema.showWrapperInCanvas = !1;
1573
+ }, M = () => {
1574
+ d.value = !0, g.schema.showWrapperInCanvas = !0;
1575
+ }, l = () => m("div", {
1576
+ class: R.value,
1577
+ onClick: M
1578
+ }, [t.slots.button ? t.slots.button() : m("div", {
1568
1579
  class: "f-drawer-entry-icon"
1569
- }, [p("span", {
1570
- class: `f-icon ${F.value}`
1571
- }, null)])]), w = D(() => ({
1580
+ }, [m("span", {
1581
+ class: `f-icon ${P.value}`
1582
+ }, null)])]), c = D(() => ({
1572
1583
  opacity: e.transparent ? 0 : 1
1573
- })), d = () => p(Z, {
1584
+ })), p = () => m(Z, {
1574
1585
  name: "f-drawer-mask",
1575
1586
  appear: !0
1576
1587
  }, {
1577
- default: () => [u.value && p("div", {
1588
+ default: () => [d.value && m("div", {
1578
1589
  class: "f-drawer-mask",
1579
- style: w.value,
1580
- onClick: W(a, ["stop"])
1590
+ style: c.value,
1591
+ onClick: W(T, ["stop"])
1581
1592
  }, null)]
1582
1593
  });
1583
- function B(C, P, I, j) {
1584
- m && m.setupContext && m.setupContext.emit("selectionChange", C, P, I, j);
1594
+ function O(w, $, N, I) {
1595
+ g && g.setupContext && g.setupContext.emit("selectionChange", w, $, N, I);
1585
1596
  }
1586
- const E = (C, P, I) => p(Le, {
1587
- modelValue: I,
1588
- "onUpdate:modelValue": (j) => I = j,
1597
+ const F = (w, $, N) => m(ze, {
1598
+ modelValue: N,
1599
+ "onUpdate:modelValue": (I) => N = I,
1589
1600
  canAdd: !1,
1590
1601
  class: "w-100 position-relative",
1591
1602
  childType: "drawer-toolbar-item",
1592
1603
  childLabel: "按钮",
1593
1604
  contentKey: "buttons",
1594
- id: C,
1605
+ id: w,
1595
1606
  componentId: e.componentId,
1596
- onSelectionChange: B
1607
+ onSelectionChange: O
1597
1608
  }, {
1598
- default: () => [p(ne, {
1609
+ default: () => [m(ie, {
1599
1610
  customClass: "w-100",
1600
- items: P,
1611
+ items: $,
1601
1612
  componentId: e.componentId
1602
1613
  }, null)]
1603
- }), N = () => p("div", {
1614
+ }), B = () => m("div", {
1604
1615
  class: "f-drawer-close"
1605
- }, [p("span", {
1616
+ }, [m("span", {
1606
1617
  class: "f-icon f-icon-close",
1607
- onClick: W(a, ["stop"])
1608
- }, null)]), O = () => e.showHeader ? p("div", {
1618
+ onClick: W(T, ["stop"])
1619
+ }, null)]), j = () => e.showHeader ? m("div", {
1609
1620
  class: "f-drawer-header align-items-center"
1610
- }, [e.customHeader ? p("div", {
1621
+ }, [e.customHeader ? m("div", {
1611
1622
  class: "w-100 h-100",
1612
1623
  innerHTML: e.headerTemplate
1613
- }, null) : p(re, null, [p("div", {
1624
+ }, null) : m(ne, null, [m("div", {
1614
1625
  class: "f-drawer-title"
1615
- }, [t.slots.title ? t.slots.title() : e.title]), p("div", {
1626
+ }, [t.slots.title ? t.slots.title() : e.title]), m("div", {
1616
1627
  class: "mx-2 col-7"
1617
- }, [E(k, l.value, i.value)]), p("div", {
1628
+ }, [F(k, s.value, i.value)]), m("div", {
1618
1629
  class: "f-drawer-header-right"
1619
- }, [e.showClose && N()])])]) : null;
1620
- function L(C) {
1621
- C && (C.preventDefault(), C.stopPropagation()), f.value.onRemoveComponent(T);
1622
- const P = c == null ? void 0 : c.parent, I = (j) => j.id === m.schema.id;
1623
- if (P && P.schema.contents) {
1624
- const j = P.schema.contents.findIndex(I);
1625
- P.schema.contents.splice(j, 1), _e.value++, t.emit("selectionChange");
1630
+ }, [e.showClose && B()])])]) : null;
1631
+ function z(w) {
1632
+ w && (w.preventDefault(), w.stopPropagation()), f.value.onRemoveComponent(C);
1633
+ const $ = u == null ? void 0 : u.parent, N = (I) => I.id === g.schema.id;
1634
+ if ($ && $.schema.contents) {
1635
+ const I = $.schema.contents.findIndex(N);
1636
+ $.schema.contents.splice(I, 1), Ae.value++, t.emit("selectionChange");
1626
1637
  }
1627
1638
  }
1628
- const A = () => p("div", {
1639
+ const L = () => m("div", {
1629
1640
  class: "component-btn-group"
1630
- }, [p("div", null, [p("div", {
1641
+ }, [m("div", null, [m("div", {
1631
1642
  class: "btn component-settings-button",
1632
1643
  title: "删除",
1633
- onClick: L
1634
- }, [p("i", {
1644
+ onClick: z
1645
+ }, [m("i", {
1635
1646
  class: "f-icon f-icon-yxs_delete"
1636
- }, null)]), p("div", {
1647
+ }, null)]), m("div", {
1637
1648
  class: "btn component-settings-button",
1638
1649
  title: "关闭抽屉",
1639
- onClick: a
1640
- }, [p("i", {
1650
+ onClick: T
1651
+ }, [m("i", {
1641
1652
  class: "f-icon f-icon-close"
1642
- }, null)])])]), V = () => {
1643
- var C, P;
1644
- return p("div", {
1653
+ }, null)])])]), A = () => {
1654
+ var w, $;
1655
+ return m("div", {
1645
1656
  class: h.value,
1646
1657
  style: S.value
1647
- }, [p("div", {
1658
+ }, [m("div", {
1648
1659
  class: "f-drawer-container position-relative",
1649
- ref: r
1650
- }, [A(), O(), p("div", {
1660
+ ref: o
1661
+ }, [L(), j(), m("div", {
1651
1662
  class: "f-drawer-body drag-container d-block",
1652
- "data-dragref": `${m.schema.id}-container`,
1653
- ref: o,
1663
+ "data-dragref": `${g.schema.id}-container`,
1664
+ ref: r,
1654
1665
  style: "overflow: auto;",
1655
- id: m.schema.id
1656
- }, [(P = (C = t.slots).default) == null ? void 0 : P.call(C)]), e.showFooter && p("div", {
1666
+ id: g.schema.id
1667
+ }, [($ = (w = t.slots).default) == null ? void 0 : $.call(w)]), e.showFooter && m("div", {
1657
1668
  class: "f-drawer-footer px-2 border-top",
1658
1669
  style: {
1659
1670
  height: e.footerHeight + "px"
1660
1671
  }
1661
- }, [e.footerContentType === "toolbar" && E(g, b.value, v.value), e.footerContentType === "html" && p("div", {
1672
+ }, [e.footerContentType === "toolbar" && F(b, v.value, y.value), e.footerContentType === "html" && m("div", {
1662
1673
  class: "w-100 h-100",
1663
1674
  innerHTML: e.footerTemplate
1664
1675
  }, null)])])]);
1665
- }, q = () => p("div", {
1676
+ }, q = () => m("div", {
1666
1677
  class: "f-drawer f-drawer-inline"
1667
- }, [d(), V()]);
1668
- return () => p("div", null, [q(), R()]);
1678
+ }, [p(), A()]);
1679
+ return () => m("div", null, [q(), l()]);
1669
1680
  }
1670
1681
  });
1671
- function ro() {
1672
- function e(t, o) {
1673
- const r = {};
1674
- return r.beforeClose = (g) => o.call("beforeClose", t, [t]), r;
1682
+ function or() {
1683
+ function e(t, r) {
1684
+ const o = {};
1685
+ return o.beforeClose = (b) => r.call("beforeClose", t, [t]), o;
1675
1686
  }
1676
1687
  return {
1677
1688
  resolve: e
1678
1689
  };
1679
1690
  }
1680
- const we = J(he, ae, ie, se), no = ro();
1681
- U.register = (e, t, o, r) => {
1682
- e.drawer = jt, t.drawer = we, r.drawer = { eventHandlerResolver: Mt, callbackResolver: no };
1691
+ const Ce = J(we, se, ae, le), nr = or();
1692
+ U.register = (e, t, r, o) => {
1693
+ e.drawer = jt, t.drawer = Ce, o.drawer = { eventHandlerResolver: Et, callbackResolver: nr };
1683
1694
  };
1684
- U.registerDesigner = (e, t, o) => {
1685
- e.drawer = U, t.drawer = we, e["drawer-toolbar-item"] = qe, t["drawer-toolbar-item"] = to, e["drawer-toolbar"] = ne, t["drawer-toolbar"] = z;
1695
+ U.registerDesigner = (e, t, r) => {
1696
+ e.drawer = U, t.drawer = Ce, e["drawer-toolbar-item"] = Ve, t["drawer-toolbar-item"] = tr, e["drawer-toolbar"] = ie, t["drawer-toolbar"] = V;
1686
1697
  };
1687
- const go = Fe(U);
1698
+ const pr = Pe(U);
1688
1699
  export {
1689
- no as callbackResolver,
1690
- go as default,
1700
+ nr as callbackResolver,
1701
+ pr as default,
1691
1702
  Q as drawerProps,
1692
- Mt as eventHandlerResolver,
1693
- we as propsResolver
1703
+ Et as eventHandlerResolver,
1704
+ Ce as propsResolver
1694
1705
  };