@farris/ui-vue 1.7.3 → 1.7.5

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