@farris/ui-vue 1.7.0-beta.4 → 1.7.0

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