@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,23 +1,23 @@
1
- var Ot = Object.defineProperty;
2
- var jt = (e, b, t) => b in e ? Ot(e, b, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[b] = t;
3
- var ee = (e, b, t) => jt(e, typeof b != "symbol" ? b + "" : b, t);
4
- import { getCustomClass as ie, useGuid as At, withInstall as _t } from "../../components/common/index.esm.js";
5
- import { resolveAppearance as $t, createPropsResolver as st, createResponseToolbarEventHandlerResolver as Lt, getSchemaByType as lt } from "../../components/dynamic-resolver/index.esm.js";
6
- import { responseToolbarProps as at } from "../../components/response-toolbar/index.esm.js";
7
- import { computed as de, createVNode as N, Teleport as Nt, getCurrentInstance as Ft, reactive as Se, withDirectives as ke, resolveDirective as Pe, ref as re, defineComponent as qe, watch as De, onMounted as ze, onUnmounted as ct, nextTick as Ce, inject as we, provide as Wt, createTextVNode as qt } from "vue";
8
- import { LocaleService as zt } from "../../components/locale/index.esm.js";
9
- import { canvasChanged as Ne, useDesignerInnerComponent as Gt, FDesignerInnerItem as Ut, useDesignerComponent as Yt, setPositionForSelectedElement as Xt } from "../../components/designer-canvas/index.esm.js";
10
- import { BaseControlProperty as ut } from "../../components/property-panel/index.esm.js";
11
- import { isPlainObject as tt, cloneDeep as xe } from "lodash-es";
12
- import { TabToolbarItemProperty as Ht } from "../../components/tabs/index.esm.js";
13
- const Vt = /* @__PURE__ */ new Map([
1
+ var Bt = Object.defineProperty;
2
+ var jt = (e, m, t) => m in e ? Bt(e, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[m] = t;
3
+ var J = (e, m, t) => jt(e, typeof m != "symbol" ? m + "" : m, t);
4
+ import { getCustomClass as re, isMobilePhone as At, useGuid as _t, withInstall as $t } from "../../components/common/index.esm.js";
5
+ import { resolveAppearance as Lt, createPropsResolver as lt, createResponseToolbarEventHandlerResolver as Nt, getSchemaByType as at } from "../../components/dynamic-resolver/index.esm.js";
6
+ import { responseToolbarProps as ct } from "../../components/response-toolbar/index.esm.js";
7
+ import { computed as fe, createVNode as L, Teleport as Ft, getCurrentInstance as Wt, reactive as Pe, withDirectives as Ee, resolveDirective as Me, ref as oe, defineComponent as ze, watch as ke, onMounted as Ge, onUnmounted as ut, nextTick as Te, inject as xe, provide as qt, createTextVNode as zt } from "vue";
8
+ import { LocaleService as Gt } from "../../components/locale/index.esm.js";
9
+ import { canvasChanged as Fe, useDesignerInnerComponent as Ut, FDesignerInnerItem as Yt, useDesignerComponent as Xt, setPositionForSelectedElement as Ht } from "../../components/designer-canvas/index.esm.js";
10
+ import { BaseControlProperty as dt } from "../../components/property-panel/index.esm.js";
11
+ import { isPlainObject as nt, cloneDeep as Ce } from "lodash-es";
12
+ import { TabToolbarItemProperty as Vt } from "../tabs/index.esm.js";
13
+ const Qt = /* @__PURE__ */ new Map([
14
14
  ["buttons", "items"],
15
- ["appearance", $t]
15
+ ["appearance", Lt]
16
16
  ]);
17
- function dt(e, b, t) {
18
- return b;
17
+ function ft(e, m, t) {
18
+ return m;
19
19
  }
20
- const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-design.gitee.io/response-toolbar.schema.json", Jt = "response-toolbar", Kt = "A Farris Toolbar Component", en = "object", tn = {
20
+ const Zt = "https://json-schema.org/draft/2020-12/schema", Jt = "https://farris-design.gitee.io/response-toolbar.schema.json", Kt = "response-toolbar", en = "A Farris Toolbar Component", tn = "object", nn = {
21
21
  id: {
22
22
  description: "The unique identifier for a Response Toolbar",
23
23
  type: "string"
@@ -56,22 +56,22 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
56
56
  type: "boolean",
57
57
  default: !0
58
58
  }
59
- }, nn = [
59
+ }, on = [
60
60
  "id",
61
61
  "type",
62
62
  "buttons"
63
- ], on = {
63
+ ], rn = {
64
64
  onClick: "点击事件"
65
- }, rn = {
66
- $schema: Qt,
67
- $id: Zt,
68
- title: Jt,
69
- description: Kt,
70
- type: en,
71
- properties: tn,
72
- required: nn,
73
- events: on
74
- }, sn = "https://json-schema.org/draft/2020-12/schema", ln = "https://farris-design.gitee.io/response-toolbar-item.schema.json", an = "response-toolbar-item", cn = "A Farris Toolbar Item Component", un = "object", dn = {
65
+ }, sn = {
66
+ $schema: Zt,
67
+ $id: Jt,
68
+ title: Kt,
69
+ description: en,
70
+ type: tn,
71
+ properties: nn,
72
+ required: on,
73
+ events: rn
74
+ }, ln = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-design.gitee.io/response-toolbar-item.schema.json", cn = "response-toolbar-item", un = "A Farris Toolbar Item Component", dn = "object", fn = {
75
75
  id: {
76
76
  description: "The unique identifier for a Response Toolbar",
77
77
  type: "string"
@@ -141,33 +141,33 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
141
141
  type: "boolean",
142
142
  default: !1
143
143
  }
144
- }, fn = [
144
+ }, pn = [
145
145
  "id",
146
146
  "type",
147
147
  "text"
148
- ], pn = {
148
+ ], hn = {
149
149
  onClick: "点击事件"
150
- }, hn = {
151
- $schema: sn,
152
- $id: ln,
153
- title: an,
154
- description: cn,
155
- type: un,
156
- properties: dn,
157
- required: fn,
158
- events: pn
159
- }, gn = Object.assign({}, at, {
150
+ }, gn = {
151
+ $schema: ln,
152
+ $id: an,
153
+ title: cn,
154
+ description: un,
155
+ type: dn,
156
+ properties: fn,
157
+ required: pn,
158
+ events: hn
159
+ }, bn = Object.assign({}, ct, {
160
160
  componentId: { type: String, default: "" }
161
- }), Ge = st(
162
- at,
163
- rn,
164
- Vt,
165
- dt
166
- ), ft = {
161
+ }), Ue = lt(
162
+ ct,
163
+ sn,
164
+ Qt,
165
+ ft
166
+ ), vn = {
167
167
  id: { type: String, default: "" },
168
168
  item: { type: Object, default: {} },
169
169
  items: { type: Object, default: {} },
170
- class: { type: String, default: "btn-secondary" },
170
+ class: { type: String, default: "" },
171
171
  text: { type: String, default: "" },
172
172
  disabled: { type: Boolean, default: !1 },
173
173
  icon: { type: String, default: "" },
@@ -175,18 +175,22 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
175
175
  // 是否展开子级
176
176
  expanded: { type: Boolean, default: !1 },
177
177
  alignment: { Type: String, default: "right" },
178
- // 下拉按钮分离
179
178
  split: { type: Boolean, default: !1 },
180
179
  // 是否下拉
181
180
  isDP: { type: Boolean, default: !1 },
182
181
  // 是否下拉项
183
182
  isDPItem: { type: Boolean, default: !1 }
184
- }, bn = st(
185
- ft,
186
- hn,
183
+ }, pt = Object.assign({}, vn, {
184
+ item: { type: Object, default: {} },
185
+ items: { type: Object, default: {} },
186
+ class: { type: String, default: "btn-secondary" },
187
+ alignment: { Type: String, default: "right" }
188
+ }), mn = lt(
189
+ pt,
190
+ gn,
187
191
  void 0,
188
- dt
189
- ), vn = Lt(), mn = {
192
+ ft
193
+ ), yn = Nt(), wn = {
190
194
  id: { type: String, default: "" },
191
195
  /** 组件自定义样式 */
192
196
  customClass: { type: String, default: "" },
@@ -198,40 +202,40 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
198
202
  /** 控制是否可见 */
199
203
  visible: { type: Boolean, default: !0 }
200
204
  };
201
- class pt {
202
- constructor(b) {
205
+ class ht {
206
+ constructor(m) {
203
207
  /** 工具栏项标识 */
204
- ee(this, "id", "");
208
+ J(this, "id", "");
205
209
  /** 工具栏项自定义样式 */
206
- ee(this, "class", "btn-secondary");
210
+ J(this, "class", "btn-secondary");
207
211
  /** 图标 */
208
- ee(this, "icon", "");
212
+ J(this, "icon", "");
209
213
  /** 所属分组 */
210
- ee(this, "groupId", "");
214
+ J(this, "groupId", "");
211
215
  /** 收藏顺序 */
212
- ee(this, "order", -1);
216
+ J(this, "order", -1);
213
217
  /** 是否作为下拉菜单的顶层按钮 */
214
- ee(this, "asDropDownTop", !1);
218
+ J(this, "asDropDownTop", !1);
215
219
  /** 文本 */
216
- ee(this, "text", "");
220
+ J(this, "text", "");
217
221
  /** 是否可见原值 */
218
- ee(this, "visible", !0);
222
+ J(this, "visible", !0);
219
223
  /** 控制界面是否显示 */
220
- ee(this, "shown", !0);
221
- ee(this, "responsed", !1);
224
+ J(this, "shown", !0);
225
+ J(this, "responsed", !1);
222
226
  /** 是否启用提示消息 */
223
- ee(this, "tipsEnable", !1);
227
+ J(this, "tipsEnable", !1);
224
228
  /** 提示消息内容 */
225
- ee(this, "tipsText", "");
229
+ J(this, "tipsText", "");
226
230
  /** 记录宽度 */
227
- ee(this, "width", 0);
231
+ J(this, "width", 0);
228
232
  /** 下拉时的样式名 */
229
- ee(this, "dropdownClass", "");
230
- ee(this, "onClick", () => {
233
+ J(this, "dropdownClass", "");
234
+ J(this, "onClick", () => {
231
235
  });
232
- ee(this, "options");
236
+ J(this, "options");
233
237
  var h, c;
234
- this.options = b;
238
+ this.options = m;
235
239
  const t = [
236
240
  "id",
237
241
  "class",
@@ -249,238 +253,239 @@ class pt {
249
253
  "dropdownClass",
250
254
  "onClick"
251
255
  ];
252
- Object.keys(b).filter((r) => t.indexOf(r) > -1).forEach((r) => {
253
- r === "visible" ? this[r] = b[r] === void 0 ? !0 : b[r] : this[r] = b[r];
254
- }), this.shown = this.visible, (h = b.appearance) != null && h.class && (this.class = (c = b.appearance) == null ? void 0 : c.class);
256
+ Object.keys(m).filter((r) => t.indexOf(r) > -1).forEach((r) => {
257
+ r === "visible" ? this[r] = m[r] === void 0 ? !0 : m[r] : this[r] = m[r];
258
+ }), this.shown = this.visible, (h = m.appearance) != null && h.class && (this.class = (c = m.appearance) == null ? void 0 : c.class);
255
259
  }
256
260
  /** 是否可用 */
257
261
  get enable() {
258
- return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : de(() => !0);
262
+ return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : fe(() => !0);
259
263
  }
260
264
  /** 设置宽度 */
261
- setWidth(b) {
262
- this.width = parseInt(b, 10);
265
+ setWidth(m) {
266
+ this.width = parseInt(m, 10);
263
267
  }
264
268
  /** 获取宽度 */
265
269
  getWidth() {
266
270
  return this.visible ? this.width : !1;
267
271
  }
268
272
  }
269
- class yn extends pt {
270
- constructor(b) {
271
- super(b);
273
+ class xn extends ht {
274
+ constructor(m) {
275
+ super(m);
272
276
  }
273
277
  }
274
- function ht() {
275
- function e(b) {
278
+ function gt() {
279
+ function e(m) {
276
280
  const t = [];
277
- return b.reduce((h, c) => (c.children && c.children.length > 0 ? h.push(new Ie(c)) : h.push(new yn(c)), h), t), t;
281
+ return m.reduce((h, c) => (c.children && c.children.length > 0 ? h.push(new Ie(c)) : h.push(new xn(c)), h), t), t;
278
282
  }
279
283
  return { buildResponseToolbarItems: e };
280
284
  }
281
- const { buildResponseToolbarItems: wn } = ht();
282
- class Ie extends pt {
285
+ const { buildResponseToolbarItems: Cn } = gt();
286
+ class Ie extends ht {
283
287
  constructor(t) {
284
288
  super(t);
285
- ee(this, "placement", "");
289
+ J(this, "placement", "");
286
290
  // 下拉位置
287
291
  /** 是否可见 */
288
- ee(this, "visible", !0);
292
+ J(this, "visible", !0);
289
293
  /** 下拉class */
290
- ee(this, "dropdownClass", "");
294
+ J(this, "dropdownClass", "");
291
295
  /** 下拉菜单class */
292
- ee(this, "menuClass", "");
296
+ J(this, "menuClass", "");
293
297
  /** 是否用分开的下拉按钮 */
294
- ee(this, "split", !1);
295
- ee(this, "children", []);
296
- ee(this, "expanded", !1);
297
- ee(this, "shown", !0);
298
+ J(this, "split", !1);
299
+ J(this, "children", []);
300
+ J(this, "expanded", !1);
301
+ J(this, "shown", !0);
298
302
  const h = ["visible", "icon", "isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
299
303
  Object.keys(t).filter((c) => h.indexOf(c) > -1).forEach((c) => {
300
304
  c === "visible" ? this[c] = t[c] === void 0 ? !0 : t[c] : this[c] = t[c];
301
- }), this.shown = this.visible, t.children && t.children.length && (this.children = wn(t.children));
305
+ }), this.shown = this.visible, t.children && t.children.length && (this.children = Cn(t.children));
302
306
  }
303
307
  }
304
- function Ue() {
308
+ function Ye() {
305
309
  function e(t) {
306
310
  const h = {
307
311
  "f-icon": !0
308
312
  };
309
313
  if (t.icon) {
310
314
  const c = t.icon.trim().split(" ");
311
- c && c.length && c.reduce((r, D) => (r[D] = !0, r), h);
315
+ c && c.length && c.reduce((r, T) => (r[T] = !0, r), h);
312
316
  }
313
317
  return h;
314
318
  }
315
- function b(t) {
319
+ function m(t) {
316
320
  return !!(t.icon && t.icon.trim());
317
321
  }
318
- return { iconClass: e, shouldShowIcon: b };
322
+ return { iconClass: e, shouldShowIcon: m };
319
323
  }
320
- function xn(e, b) {
321
- function t(g) {
322
- return ie({
324
+ function Tn(e, m) {
325
+ function t(p) {
326
+ return re({
323
327
  "dropdown-menu": !0
324
- }, g.menuClass);
328
+ }, p.menuClass);
325
329
  }
326
- function h(g) {
330
+ function h(p) {
327
331
  const o = {
328
- disabled: !g.enable,
332
+ disabled: !p.enable,
329
333
  "dropdown-submenu": !0,
330
334
  "f-rt-dropdown": !0,
331
335
  "text-truncate": !0
332
336
  };
333
- return ie(o, g.dropdownClass);
337
+ return re(o, p.dropdownClass);
334
338
  }
335
- function c(g) {
339
+ function c(p) {
336
340
  const o = {
337
- disabled: !g.enable,
341
+ disabled: !p.enable,
338
342
  "dropdown-item": !0,
339
343
  "f-rt-btn": !0,
340
344
  "text-truncate": !0
341
345
  };
342
- return ie(o, g.dropdownClass);
346
+ return re(o, p.dropdownClass);
343
347
  }
344
- function r(g) {
348
+ function r(p) {
345
349
  const o = {
346
- disabled: !g.enable,
350
+ disabled: !p.enable,
347
351
  "dropdown-item": !0,
348
352
  "f-rt-btn": !0,
349
353
  "text-truncate": !0,
350
- "f-rt-toggle": !g.split,
351
- "btn-icontext": !!(g.icon && g.icon.trim()),
352
- "dropdown-toggle": !g.split
354
+ "f-rt-toggle": !p.split,
355
+ "btn-icontext": !!(p.icon && p.icon.trim()),
356
+ "dropdown-toggle": !p.split,
357
+ "btn-secondary": !0
353
358
  };
354
- return ie(o, g.dropdownClass);
359
+ return re(o, p.dropdownClass);
355
360
  }
356
- function D(g) {
361
+ function T(p) {
357
362
  const o = {
358
363
  "f-rt-btn": !0,
359
364
  "text-truncate": !0,
360
- "btn-icontext": !!(g.icon && g.icon.trim()),
365
+ "btn-icontext": !!(p.icon && p.icon.trim()),
361
366
  "d-block": !0
362
367
  };
363
- return ie(o, g.dropdownClass);
368
+ return re(o, p.dropdownClass);
364
369
  }
365
- let m;
366
- const v = /* @__PURE__ */ new Map();
367
- let S = "";
368
- function P(g) {
369
- S = "#" + g;
370
- }
371
- function d(g, o, $) {
372
- g.stopPropagation();
373
- const T = $ ? $.id : "__top_item__";
370
+ let x;
371
+ const g = /* @__PURE__ */ new Map();
372
+ let E = "";
373
+ function P(p) {
374
+ E = "#" + p;
375
+ }
376
+ function u(p, o, F) {
377
+ p.stopPropagation();
378
+ const I = F ? F.id : "__top_item__";
374
379
  if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded)) {
375
- if (v.has(T) && v.get(T) !== o) {
376
- const f = v.get(T);
377
- f && (f.expanded = !1, v.delete(T));
380
+ if (g.has(I) && g.get(I) !== o) {
381
+ const f = g.get(I);
382
+ f && (f.expanded = !1, g.delete(I));
378
383
  }
379
- v.set(T, o);
384
+ g.set(I, o);
380
385
  }
381
386
  }
382
- function l(g, o) {
383
- document.body.click(), o.enable && (g.stopPropagation(), typeof o.onClick == "function" && o.onClick(g, o.id), e.emit("click", g, o.id));
387
+ function l(p, o) {
388
+ document.body.click(), o.enable && (p.stopPropagation(), typeof o.onClick == "function" && o.onClick(p, o.id), e.emit("click", p, o.id));
384
389
  }
385
- function u(g, o) {
386
- const $ = g.target;
387
- $.className.indexOf("dropdown-item") < 0 || ($.title = $.scrollWidth > $.clientWidth ? o : "");
390
+ function d(p, o) {
391
+ const F = p.target;
392
+ F.className.indexOf("dropdown-item") < 0 || (F.title = F.scrollWidth > F.clientWidth ? o : "");
388
393
  }
389
- function i(g, o, $) {
394
+ function i(p, o, F) {
390
395
  if (o.tipsEnable && o.tipsText) {
391
- const T = Se({
396
+ const I = Pe({
392
397
  content: o.tipsText,
393
398
  enable: o.tipsEnable
394
399
  });
395
- return ke(N("li", {
400
+ return Ee(L("li", {
396
401
  class: c(o),
397
402
  id: o.id,
398
- key: o.id + "_" + $,
403
+ key: o.id + "_" + F,
399
404
  onClick: (f) => l(f, o)
400
- }, [N("span", {
401
- class: D(o)
402
- }, [b.shouldShowIcon(o) && N("i", {
403
- class: b.iconClass(o)
404
- }, null), o.text])]), [[Pe("tooltip"), T]]);
405
+ }, [L("span", {
406
+ class: T(o)
407
+ }, [m.shouldShowIcon(o) && L("i", {
408
+ class: m.iconClass(o)
409
+ }, null), o.text])]), [[Me("tooltip"), I]]);
405
410
  }
406
- return N("li", {
411
+ return L("li", {
407
412
  class: c(o),
408
413
  id: o.id,
409
- onClick: (T) => l(T, o)
410
- }, [N("span", {
411
- class: D(o),
412
- onMouseenter: (T) => u(T, o.text)
413
- }, [b.shouldShowIcon(o) && N("i", {
414
- class: b.iconClass(o)
414
+ onClick: (I) => l(I, o)
415
+ }, [L("span", {
416
+ class: T(o),
417
+ onMouseenter: (I) => d(I, o.text)
418
+ }, [m.shouldShowIcon(o) && L("i", {
419
+ class: m.iconClass(o)
415
420
  }, null), o.text])]);
416
421
  }
417
- function n(g, o, $) {
418
- o.enable && (typeof o.onClick == "function" && $.onClick(g, o.id), e.emit("click", g, o.id), $.split || d(g, o, $));
422
+ function n(p, o, F) {
423
+ o.enable && (typeof o.onClick == "function" && F.onClick(p, o.id), e.emit("click", p, o.id), F.split || u(p, o, F));
419
424
  }
420
- function k(g, o, $) {
421
- g && g.stopPropagation(), d(g, o, $);
425
+ function S(p, o, F) {
426
+ p && p.stopPropagation(), u(p, o, F);
422
427
  }
423
- function B(g, o) {
424
- g.stopPropagation();
425
- const $ = o.id;
426
- if (o.children && o.children.length && o.expanded && v.has($)) {
427
- const T = v.get($);
428
- T && (T.expanded = !1, v.delete($));
428
+ function B(p, o) {
429
+ p.stopPropagation();
430
+ const F = o.id;
431
+ if (o.children && o.children.length && o.expanded && g.has(F)) {
432
+ const I = g.get(F);
433
+ I && (I.expanded = !1, g.delete(F));
429
434
  }
430
435
  }
431
- function M(g, o, $) {
436
+ function G(p, o, F) {
432
437
  if (o.tipsEnable && o.tipsText) {
433
- const T = Se({
438
+ const I = Pe({
434
439
  content: o.tipsText,
435
440
  enable: o.tipsEnable
436
441
  });
437
- return N("li", {
442
+ return L("li", {
438
443
  class: h(o),
439
444
  id: o.id,
440
- key: o.id + "_" + $,
441
- onClick: (f) => n(f, o, g)
442
- }, [ke(N("span", {
445
+ key: o.id + "_" + F,
446
+ onClick: (f) => n(f, o, p)
447
+ }, [Ee(L("span", {
443
448
  class: r(o)
444
- }, [b.shouldShowIcon(o) && N("i", {
445
- class: b.iconClass(o)
446
- }, null), o.text]), [[Pe("tooltip"), T]]), o.split && N("span", {
449
+ }, [m.shouldShowIcon(o) && L("i", {
450
+ class: m.iconClass(o)
451
+ }, null), o.text]), [[Me("tooltip"), I]]), o.split && L("span", {
447
452
  class: "dropdown-toggle dropdown-toggle-split f-rt-toggle",
448
- onClick: (f) => k(f, o, g)
449
- }, null), m(o, o)]);
453
+ onClick: (f) => S(f, o, p)
454
+ }, null), x(o, o)]);
450
455
  }
451
- return N("li", {
456
+ return L("li", {
452
457
  class: h(o),
453
458
  id: o.id,
454
- onClick: (T) => n(T, o, g),
455
- onMouseenter: (T) => u(T, o.text)
456
- }, [N("span", {
459
+ onClick: (I) => n(I, o, p),
460
+ onMouseenter: (I) => d(I, o.text)
461
+ }, [L("span", {
457
462
  class: r(o)
458
- }, [b.shouldShowIcon(o) && N("i", {
459
- class: b.iconClass(o)
460
- }, null), o.text]), o.split && N("span", {
463
+ }, [m.shouldShowIcon(o) && L("i", {
464
+ class: m.iconClass(o)
465
+ }, null), o.text]), o.split && L("span", {
461
466
  class: "dropdown-toggle dropdown-toggle-split f-rt-toggle",
462
- onClick: (T) => k(T, o, g)
463
- }, null), m(o, o)]);
467
+ onClick: (I) => S(I, o, p)
468
+ }, null), x(o, o)]);
464
469
  }
465
- function j(g) {
466
- return g.children.filter((o) => o.visible).map((o, $) => o.children && o.children.length ? M(g, o, $) : i(g, o, $));
470
+ function j(p) {
471
+ return p.children.filter((o) => o.visible).map((o, F) => o.children && o.children.length ? G(p, o, F) : i(p, o, F));
467
472
  }
468
- function w(g, o) {
469
- if (!g)
473
+ function D(p, o) {
474
+ if (!p)
470
475
  return 1080;
471
- let $ = -1;
472
- const T = g.children.length;
473
- for (let f = 0; f < T; f++)
474
- if (g.children[f].id === o) {
475
- $ = f;
476
+ let F = -1;
477
+ const I = p.children.length;
478
+ for (let f = 0; f < I; f++)
479
+ if (p.children[f].id === o) {
480
+ F = f;
476
481
  break;
477
482
  }
478
- return 1080 + T - $;
483
+ return 1080 + I - F;
479
484
  }
480
- function y(g, o, $) {
481
- var z, H;
482
- const T = {
483
- display: g.expanded ? "block" : "none",
485
+ function b(p, o, F) {
486
+ var W, Y;
487
+ const I = {
488
+ display: p.expanded ? "block" : "none",
484
489
  position: "fixed",
485
490
  maxWidth: "300px",
486
491
  minWidth: "120px",
@@ -488,92 +493,95 @@ function xn(e, b) {
488
493
  // 先用固定zIndex,后期会统一调用动态的zIndex
489
494
  overflowY: "auto",
490
495
  maxHeight: "none"
491
- }, f = document.querySelector(S);
496
+ }, f = document.querySelector(E);
492
497
  if (!f)
493
- return T;
494
- const x = Ft();
495
- let s = (H = (z = x == null ? void 0 : x.exposed) == null ? void 0 : z.elementRef.value) == null ? void 0 : H.querySelector("#" + o);
498
+ return I;
499
+ const y = Wt();
500
+ let s = (Y = (W = y == null ? void 0 : y.exposed) == null ? void 0 : W.elementRef.value) == null ? void 0 : Y.querySelector("#" + o);
496
501
  if (s || (s = f == null ? void 0 : f.querySelector("#" + o)), !s)
497
- return T;
498
- const p = window.innerWidth, C = window.innerHeight, A = s == null ? void 0 : s.getClientRects();
499
- if (s && A && A.length) {
502
+ return I;
503
+ const v = window.innerWidth, k = window.innerHeight, M = s == null ? void 0 : s.getClientRects();
504
+ if (s && M && M.length) {
500
505
  const {
501
- top: Y,
502
- width: L,
503
- left: F,
504
- right: Q,
505
- height: V
506
- } = A[0], Z = Math.ceil(V + Y);
507
- T.top = `${Z}px`, T.left = `${F}px`;
508
- const W = g.id + "_menu", I = (s == null ? void 0 : s.querySelector("#" + W)) || (f == null ? void 0 : f.querySelector("#" + W)) || null;
509
- if (I) {
510
- I.style.visibility = "hidden", I.style.display = "block";
511
- const U = I.offsetHeight;
512
- T.zIndex = g.expanded ? w(f, W) : 1080, T.display === "block" && (I.style.display = "block");
513
- const G = I.getBoundingClientRect();
514
- if ($) {
515
- T.top = `${Y - 6}px`;
516
- const O = Math.ceil(L + F);
517
- T.left = `${O}px`;
506
+ top: X,
507
+ width: $,
508
+ left: N,
509
+ right: V,
510
+ height: U
511
+ } = M[0], H = Math.ceil(U + X);
512
+ I.top = `${H}px`, I.left = `${N}px`;
513
+ const q = p.id + "_menu", te = (s == null ? void 0 : s.querySelector("#" + q)) || (f == null ? void 0 : f.querySelector("#" + q)) || null;
514
+ if (te) {
515
+ te.style.visibility = "hidden", te.style.display = "block";
516
+ const ae = te.offsetHeight;
517
+ I.zIndex = p.expanded ? D(f, q) : 1080, I.display === "block" && (te.style.display = "block");
518
+ const w = te.getBoundingClientRect();
519
+ if (F) {
520
+ I.top = `${X - 6}px`;
521
+ const C = Math.ceil($ + N);
522
+ I.left = `${C}px`;
518
523
  }
519
- p - F - L < G.width && (T.left = `${($ ? F : Q) - G.width}px`), C - Y - V < U ? Y > U ? (T.top = `${Y - U - 6}px`, T.maxHeight = `${Y - 16}px`) : (T.maxHeight = `${C - Z}px`, Y > C - Y - V && (T.top = "10px", T.maxHeight = `${Y - 16}px`)) : T.maxHeight = `${C - Z}px`, I.style.visibility = "visible";
524
+ v - N - $ < w.width && (I.left = `${(F ? N : V) - w.width}px`), k - X - U < ae ? X > ae ? (I.top = `${X - ae - 6}px`, I.maxHeight = `${X - 16}px`) : (I.maxHeight = `${k - H}px`, X > k - X - U && (I.top = "10px", I.maxHeight = `${X - 16}px`)) : I.maxHeight = `${k - H}px`, te.style.visibility = "visible";
520
525
  }
521
526
  }
522
- return T;
527
+ return I;
523
528
  }
524
- m = function(g, o) {
525
- const $ = o ? o.id : g.id;
526
- return N(Nt, {
527
- to: S,
528
- disabled: !g.expanded
529
+ x = function(p, o) {
530
+ const F = o ? o.id : p.id;
531
+ return L(Ft, {
532
+ to: E,
533
+ disabled: !p.expanded
529
534
  }, {
530
- default: () => [N("ul", {
531
- class: t(g),
532
- style: y(g, $, o),
533
- id: g.id + "_menu",
534
- onWheel: (T) => B(T, g)
535
- }, [j(g)])]
535
+ default: () => [L("ul", {
536
+ class: t(p),
537
+ style: b(p, F, o),
538
+ id: p.id + "_menu",
539
+ onWheel: (I) => B(I, p)
540
+ }, [j(p)])]
536
541
  });
537
542
  };
538
- function _() {
539
- v.forEach((g) => {
540
- g.expanded = !1;
541
- }), v.clear();
543
+ function O() {
544
+ g.forEach((p) => {
545
+ p.expanded = !1;
546
+ }), g.clear();
542
547
  }
543
548
  return {
544
- renderDropdownMenu: m,
545
- clearAllDropDownMenu: _,
549
+ renderDropdownMenu: x,
550
+ clearAllDropDownMenu: O,
546
551
  updateContainerId: P
547
552
  };
548
553
  }
549
- function Cn(e, b, t) {
550
- const h = re(e.alignment), {
554
+ function Dn(e, m, t) {
555
+ const h = oe(e.alignment), {
551
556
  renderDropdownMenu: c,
552
557
  clearAllDropDownMenu: r,
553
- updateContainerId: D
554
- } = xn(b, t);
555
- function m(n) {
556
- const k = {
558
+ updateContainerId: T
559
+ } = Tn(m, t);
560
+ function x(n) {
561
+ const S = {
557
562
  "btn-group": !0,
558
563
  "f-rt-dropdown": !0,
559
564
  "f-btn-ml": h.value === "right" || h.value === "center",
560
565
  "f-btn-mr": h.value === "left"
561
566
  };
562
- return ie(k, n.dropdownClass);
567
+ return re(S, n.dropdownClass);
563
568
  }
564
- function v(n) {
565
- const k = {
569
+ function g(n) {
570
+ const S = {
566
571
  btn: !0,
567
572
  disabled: !n.enable,
568
573
  "f-rt-btn": !0,
569
- "btn-icontext": !!(n.icon && n.icon.trim()),
574
+ "btn-icontext": !!(n.icon && n.icon.trim()) && n.text,
575
+ // 图标+文本
570
576
  "f-rt-toggle": !n.split,
571
- "dropdown-toggle": !n.split
577
+ "dropdown-toggle": !n.split,
578
+ "f-btn-icon": n.icon && !n.text
579
+ // 只有图标
572
580
  };
573
- return ie(k, n.class);
581
+ return re(S, n.class);
574
582
  }
575
- function S(n) {
576
- return ie({
583
+ function E(n) {
584
+ return re({
577
585
  btn: !0,
578
586
  "dropdown-toggle": !0,
579
587
  "dropdown-toggle-split": !0
@@ -587,98 +595,98 @@ function Cn(e, b, t) {
587
595
  "border-radius": "6px"
588
596
  };
589
597
  }
590
- function d(n, k) {
598
+ function u(n, S) {
591
599
  n.stopPropagation();
592
- const B = k.expanded;
593
- document.body.click(), typeof k.onClick == "function" && k.onClick(n, k.id), b.emit("click", n, k.id), k.split || (k.expanded = !B);
600
+ const B = S.expanded;
601
+ document.body.click(), typeof S.onClick == "function" && S.onClick(n, S.id), m.emit("click", n, S.id), S.split || (S.expanded = !B);
594
602
  }
595
- function l(n, k) {
603
+ function l(n, S) {
596
604
  n.stopPropagation();
597
- const B = k.expanded;
598
- document.body.click(), k.expanded = !B;
605
+ const B = S.expanded;
606
+ document.body.click(), S.expanded = !B;
599
607
  }
600
- function u(n, k = !0) {
608
+ function d(n, S = !0) {
601
609
  if (n.tipsEnable && n.tipsText) {
602
- const B = Se({
610
+ const B = Pe({
603
611
  content: n.tipsText,
604
612
  enable: n.tipsEnable
605
613
  });
606
- return N("div", {
614
+ return L("div", {
607
615
  id: n.id,
608
- class: m(n)
609
- }, [ke(N("div", {
610
- class: v(n),
616
+ class: x(n)
617
+ }, [Ee(L("div", {
618
+ class: g(n),
611
619
  style: P(n),
612
- onClick: (M) => n.enable && d(M, n)
613
- }, [t.shouldShowIcon(n) && N("i", {
620
+ onClick: (G) => n.enable && u(G, n)
621
+ }, [t.shouldShowIcon(n) && L("i", {
614
622
  class: t.iconClass(n)
615
- }, null), N("span", null, [n.text])]), [[Pe("tooltip"), B]]), n.split && N("button", {
616
- class: S(n),
623
+ }, null), n.text && L("span", null, [n.text])]), [[Me("tooltip"), B]]), n.split && L("button", {
624
+ class: E(n),
617
625
  style: "border-radius:0 6px 6px 0;",
618
- onClick: (M) => l(M, n)
619
- }, null), k && c(n)]);
626
+ onClick: (G) => l(G, n)
627
+ }, null), S && c(n)]);
620
628
  }
621
- return N("div", {
629
+ return L("div", {
622
630
  id: n.id,
623
- class: m(n)
624
- }, [N("div", {
625
- class: v(n),
631
+ class: x(n)
632
+ }, [L("div", {
633
+ class: g(n),
626
634
  style: P(n),
627
- onClick: (B) => n.enable && d(B, n)
628
- }, [t.shouldShowIcon(n) && N("i", {
635
+ onClick: (B) => n.enable && u(B, n)
636
+ }, [t.shouldShowIcon(n) && L("i", {
629
637
  class: t.iconClass(n)
630
- }, null), N("span", null, [n.text])]), n.split && N("button", {
631
- class: S(n),
638
+ }, null), n.text && L("span", null, [n.text])]), n.split && L("button", {
639
+ class: E(n),
632
640
  style: "border-radius:0 6px 6px 0;",
633
641
  onClick: (B) => l(B, n)
634
- }, null), k && c(n)]);
642
+ }, null), S && c(n)]);
635
643
  }
636
644
  function i() {
637
645
  r();
638
646
  }
639
647
  return {
640
- renderToolbarDropdown: u,
648
+ renderToolbarDropdown: d,
641
649
  clearAllDropDown: i,
642
- updateContainerId: D
650
+ updateContainerId: T
643
651
  };
644
652
  }
645
653
  const {
646
- buildResponseToolbarItems: nt
647
- } = ht(), Tn = /* @__PURE__ */ qe({
654
+ buildResponseToolbarItems: ot
655
+ } = gt(), Sn = /* @__PURE__ */ ze({
648
656
  name: "FResponseToolbar",
649
- props: mn,
657
+ props: wn,
650
658
  emits: ["click"],
651
- setup(e, b) {
652
- const t = re(nt(e.items)), h = re(), c = re(), r = re(), D = {
659
+ setup(e, m) {
660
+ const t = oe(ot(e.items)), h = oe(), c = oe(), r = oe(), T = At(), x = {
653
661
  id: "__more_buttons__",
654
- text: zt.getLocaleValue("responseToolbar.more")
655
- }, m = re(new Ie(D)), v = {
656
- id: D.id + "width",
657
- text: D.text
658
- }, S = re(-1), P = Ue();
659
- let d = !1;
662
+ text: T ? "" : Gt.getLocaleValue("responseToolbar.more"),
663
+ icon: T ? "f-icon-more-horizontal" : ""
664
+ }, g = oe(new Ie(x)), E = Object.assign({}, x, {
665
+ id: x.id + "width"
666
+ }), P = oe(-1), u = Ye();
667
+ let l = !1;
660
668
  const {
661
- guid: l,
662
- uuid: u
663
- } = At(), i = e.id ? e.id : "toolbar-" + l(), n = re(), k = "dropdown-container-" + i + "-" + u(4), {
664
- renderToolbarDropdown: B,
665
- clearAllDropDown: M,
666
- updateContainerId: j
667
- } = Cn(e, b, P);
668
- j(k);
669
- const w = de(() => m.value.children.length > 0), y = de(() => e.visible ? m.value.children.length > 0 ? !0 : t.value.findIndex((I) => I.shown && I.children && I.children.length > 0) > -1 : !1);
670
- function _() {
671
- e.visible && !n.value && document && (n.value = document.createElement("div"), n.value.id = k, document.body.appendChild(n.value));
669
+ guid: d,
670
+ uuid: i
671
+ } = _t(), n = e.id ? e.id : "toolbar-" + d(), S = oe(), B = "dropdown-container-" + n + "-" + i(4), {
672
+ renderToolbarDropdown: G,
673
+ clearAllDropDown: j,
674
+ updateContainerId: D
675
+ } = Dn(e, m, u);
676
+ D(B);
677
+ const b = fe(() => g.value.children.length > 0), O = fe(() => e.visible ? g.value.children.length > 0 ? !0 : t.value.findIndex((w) => w.shown && w.children && w.children.length > 0) > -1 : !1);
678
+ function p() {
679
+ e.visible && !S.value && document && (S.value = document.createElement("div"), S.value.id = B, document.body.appendChild(S.value));
672
680
  }
673
- _();
674
- function g() {
675
- n.value && document.body.contains(n.value) && (document.body.removeChild(n.value), n.value = null);
681
+ p();
682
+ function o() {
683
+ S.value && document.body.contains(S.value) && (document.body.removeChild(S.value), S.value = null);
676
684
  }
677
- De(y, (I, U) => {
678
- I ? _() : g();
685
+ ke(O, (w, C) => {
686
+ w ? p() : o();
679
687
  });
680
- const o = de(() => {
681
- const I = {
688
+ const F = fe(() => {
689
+ const w = {
682
690
  "f-toolbar": !0,
683
691
  "f-response-toolbar": !0,
684
692
  "position-relative": !0,
@@ -686,8 +694,8 @@ const {
686
694
  "f-response-toolbar-lg": e.buttonSize === "lg",
687
695
  "d-none": !e.visible
688
696
  };
689
- return ie(I, e.customClass);
690
- }), $ = de(() => ({
697
+ return re(w, e.customClass);
698
+ }), I = fe(() => ({
691
699
  "w-100": !0,
692
700
  "d-flex": !0,
693
701
  "flex-nowrap": !0,
@@ -695,196 +703,211 @@ const {
695
703
  "justify-content-start": e.alignment === "left",
696
704
  "justify-content-center": e.alignment === "center"
697
705
  }));
698
- function T(I) {
699
- I && I.target.closest("ul.dropdown-menu") && I.type === "wheel" || (t.value.filter((U) => U.children && U.children.length > 0).forEach((U) => {
700
- U.expanded = !1;
701
- }), m.value.expanded = !1, M());
706
+ function f(w) {
707
+ w && w.target.closest("ul.dropdown-menu") && w.type === "wheel" || (t.value.filter((C) => C.children && C.children.length > 0).forEach((C) => {
708
+ C.expanded = !1;
709
+ }), g.value.expanded = !1, j());
702
710
  }
703
- function f(I, U) {
704
- var X;
705
- const G = {
711
+ function y(w, C) {
712
+ var ee;
713
+ const _ = {
706
714
  btn: !0,
707
715
  "f-rt-btn": !0,
708
- "f-btn-ml": e.alignment === "right" || U > 0 && e.alignment === "center",
716
+ "f-btn-ml": e.alignment === "right" || C > 0 && e.alignment === "center",
709
717
  "f-btn-mr": e.alignment === "left",
710
- "btn-icontext": !!(I.icon && I.icon.trim())
711
- }, O = ((X = I == null ? void 0 : I.appearance) == null ? void 0 : X.class) || I.class || "btn-secondary";
712
- return ie(G, O);
718
+ "btn-icontext": !!(w.icon && w.icon.trim())
719
+ }, K = ((ee = w == null ? void 0 : w.appearance) == null ? void 0 : ee.class) || w.class || "btn-secondary";
720
+ return re(_, K);
713
721
  }
714
- function x(I, U) {
715
- document.body.click(), typeof U.onClick == "function" && U.onClick(I, U.id), b.emit("click", I, U.id);
722
+ function s(w, C) {
723
+ document.body.click(), typeof C.onClick == "function" && C.onClick(w, C.id), m.emit("click", w, C.id);
716
724
  }
717
- function s(I, U) {
718
- if (I.tipsEnable && I.tipsText) {
719
- const G = Se({
720
- content: I.tipsText,
721
- enable: I.tipsEnable
725
+ function v(w, C) {
726
+ if (w.tipsEnable && w.tipsText) {
727
+ const _ = Pe({
728
+ content: w.tipsText,
729
+ enable: w.tipsEnable
722
730
  });
723
- return ke(N("button", {
731
+ return Ee(L("button", {
724
732
  type: "button",
725
- class: f(I, U),
726
- id: I.id,
727
- disabled: !I.enable,
728
- onClick: (O) => x(O, I)
729
- }, [P.shouldShowIcon(I) && N("i", {
730
- class: P.iconClass(I)
731
- }, null), I.text]), [[Pe("tooltip"), G]]);
733
+ class: y(w, C),
734
+ id: w.id,
735
+ disabled: !w.enable,
736
+ onClick: (K) => s(K, w)
737
+ }, [u.shouldShowIcon(w) && L("i", {
738
+ class: u.iconClass(w)
739
+ }, null), w.text]), [[Me("tooltip"), _]]);
732
740
  }
733
- return N("button", {
741
+ return L("button", {
734
742
  type: "button",
735
- class: f(I, U),
736
- id: I.id,
737
- disabled: !I.enable,
738
- onClick: (G) => x(G, I)
739
- }, [P.shouldShowIcon(I) && N("i", {
740
- class: P.iconClass(I)
741
- }, null), I.text]);
743
+ class: y(w, C),
744
+ id: w.id,
745
+ disabled: !w.enable,
746
+ onClick: (_) => s(_, w)
747
+ }, [u.shouldShowIcon(w) && L("i", {
748
+ class: u.iconClass(w)
749
+ }, null), w.text]);
742
750
  }
743
- let p = /* @__PURE__ */ new Map(), C = [];
744
- function A(I) {
745
- const U = Math.ceil(parseFloat(getComputedStyle(I).getPropertyValue("margin-left"))), G = Math.ceil(parseFloat(getComputedStyle(I).getPropertyValue("margin-right")));
746
- return (U || 0) + I.getBoundingClientRect().width + (G || 0);
751
+ let k = /* @__PURE__ */ new Map(), M = [];
752
+ function W(w) {
753
+ const C = Math.ceil(parseFloat(getComputedStyle(w).getPropertyValue("margin-left"))), _ = Math.ceil(parseFloat(getComputedStyle(w).getPropertyValue("margin-right")));
754
+ return (C || 0) + w.getBoundingClientRect().width + (_ || 0);
747
755
  }
748
- function z(I, U, G) {
749
- if (U < S.value) {
750
- let O = G - 1;
751
- for (; O >= 0; O--) {
752
- const X = I[O], ne = A(X);
753
- if (U += ne, U >= S.value)
756
+ function Y(w, C, _) {
757
+ if (C < P.value) {
758
+ let K = _ - 1;
759
+ for (; K >= 0; K--) {
760
+ const ee = w[K], ne = W(ee);
761
+ if (C += ne, C >= P.value)
754
762
  break;
755
763
  }
756
- G = O;
764
+ _ = K;
757
765
  }
758
- return U -= S.value, G = G < 0 ? 0 : G, {
759
- start: G,
760
- space: U
766
+ return C -= P.value, _ = _ < 0 ? 0 : _, {
767
+ start: _,
768
+ space: C
761
769
  };
762
770
  }
763
- function H(I) {
764
- const U = r.value;
765
- let G = I;
766
- const X = Array.from(U.children).filter((ae) => ae.id !== "__more_buttons__"), ne = X.length;
767
- let oe = !1, te = 0;
768
- for (; te < ne; te++) {
769
- const ae = X[te], he = A(ae);
770
- if (he <= G)
771
- G -= he;
771
+ function X(w) {
772
+ const C = r.value;
773
+ let _ = w;
774
+ const ee = Array.from(C.children).filter((ce) => ce.id !== "__more_buttons__"), ne = ee.length;
775
+ let ye = !1, se = 0;
776
+ for (; se < ne; se++) {
777
+ const ce = ee[se], we = W(ce);
778
+ if (we <= _)
779
+ _ -= we;
772
780
  else {
773
- const me = z(X, G, te);
774
- te = me.start, G = me.space, oe = !0;
781
+ const he = Y(ee, _, se);
782
+ se = he.start, _ = he.space, ye = !0;
775
783
  break;
776
784
  }
777
785
  }
778
- if (!oe && C.length > 0) {
779
- const ae = z(X, G, te);
780
- te = ae.start, G = ae.space;
786
+ if (!ye && M.length > 0) {
787
+ const ce = Y(ee, _, se);
788
+ se = ce.start, _ = ce.space;
781
789
  }
782
- const ye = C.length > 0;
783
- for (; te < ne; te++) {
784
- const ae = X[te], he = A(ae);
785
- p.set(ae.id, !0);
786
- const me = C.find((Me) => Me.id === ae.id);
787
- me ? me.width = he : C[ye ? "unshift" : "push"]({
788
- id: ae.id,
789
- width: he
790
+ const De = M.length > 0;
791
+ for (; se < ne; se++) {
792
+ const ce = ee[se], we = W(ce);
793
+ k.set(ce.id, !0);
794
+ const he = M.find((Oe) => Oe.id === ce.id);
795
+ he ? he.width = we : M[De ? "unshift" : "push"]({
796
+ id: ce.id,
797
+ width: we
790
798
  });
791
799
  }
792
- return G;
800
+ return _;
801
+ }
802
+ function $() {
803
+ k = /* @__PURE__ */ new Map(), M = [];
793
804
  }
794
- function Y(I) {
795
- let U = H(I);
796
- if (C.length) {
797
- let ne = 0;
798
- for (; ne < C.length; ne++) {
799
- const oe = e.items.find((te) => te.id === C[ne].id);
800
- if (oe && oe.visible !== !1) {
801
- const te = C[ne].width;
802
- if (U >= te || ne === C.length - 1 && U + S.value >= te)
803
- U -= te;
805
+ function N(w = !1) {
806
+ const C = Object.assign({}, g.value);
807
+ C.children = [];
808
+ const _ = new Ie(C), K = t.value.reduce((ee, ne) => {
809
+ const ye = e.items.find((se) => se.id === ne.id);
810
+ return w ? (_.children.push(ne), ne.shown = !1, ee) : (k.has(ne.id) ? (_.children.push(ne), ne.shown = !1) : ne.shown = ye.visible !== !1, ee.push(ne), ee);
811
+ }, []);
812
+ g.value = _, t.value = K;
813
+ }
814
+ function V(w) {
815
+ if (T) {
816
+ $(), N(!0);
817
+ return;
818
+ }
819
+ let C = X(w);
820
+ if (M.length) {
821
+ let _ = 0;
822
+ for (; _ < M.length; _++) {
823
+ const K = e.items.find((ee) => ee.id === M[_].id);
824
+ if (K && K.visible !== !1) {
825
+ const ee = M[_].width;
826
+ if (C >= ee || _ === M.length - 1 && C + P.value >= ee)
827
+ C -= ee;
804
828
  else
805
829
  break;
806
830
  }
807
831
  }
808
- for (let oe = 0; oe < ne; oe++)
809
- p.delete(C[oe].id);
810
- C.splice(0, ne - 1);
832
+ for (let K = 0; K < _; K++)
833
+ k.delete(M[K].id);
834
+ M.splice(0, _ - 1);
811
835
  }
812
- const G = Object.assign({}, m.value);
813
- G.children = [];
814
- const O = new Ie(G), X = t.value.reduce((ne, oe) => {
815
- const te = e.items.find((ye) => ye.id === oe.id);
816
- return p.has(oe.id) ? (O.children.push(oe), oe.shown = !1) : oe.shown = te.visible !== !1, ne.push(oe), ne;
817
- }, []);
818
- m.value = O, t.value = X;
836
+ N();
819
837
  }
820
- function L(I = -1) {
821
- if (I === 0 || !r.value || !c.value)
822
- return;
823
- I < 0 && (I = c.value.getBoundingClientRect().width);
824
- const U = r.value.getBoundingClientRect().width;
825
- (I >= 0 && I < U || C.length) && (Y(I), T());
826
- }
827
- function F() {
828
- return S.value < 0 && N("div", {
829
- style: "position:absolute;top:-30px;visibility:hidden;"
830
- }, [B(new Ie(v))]);
838
+ function U() {
839
+ if (h.value && P.value < 0) {
840
+ const w = h.value.querySelector("#" + E.id);
841
+ if (!w)
842
+ return;
843
+ w.getBoundingClientRect().width === 0 ? P.value = -1 : P.value = W(w);
844
+ }
831
845
  }
832
- const Q = new ResizeObserver((I) => {
833
- if (I.length) {
834
- const G = I[0].contentRect.width;
835
- L(G);
846
+ function H(w = -1) {
847
+ if (w === 0 || !r.value || !c.value)
848
+ return;
849
+ w < 0 && (w = c.value.getBoundingClientRect().width);
850
+ const C = r.value.getBoundingClientRect().width;
851
+ if (T) {
852
+ V(w), f();
853
+ return;
836
854
  }
837
- });
838
- function V() {
839
- p = /* @__PURE__ */ new Map(), C = [];
855
+ (w >= 0 && w < C || M.length) && (U(), V(w), f());
840
856
  }
841
- function Z() {
842
- c.value && !d && (Q.observe(c.value), d = !0);
857
+ function q() {
858
+ return P.value < 0 && L("div", {
859
+ style: "position:fixed;top:-40px;visibility:hidden;"
860
+ }, [G(new Ie(E))]);
843
861
  }
844
- function W() {
845
- if (h.value && S.value < 0) {
846
- const I = h.value.querySelector("#" + v.id);
847
- I && (S.value = A(I));
862
+ const te = new ResizeObserver((w) => {
863
+ if (w.length) {
864
+ if (T)
865
+ return;
866
+ const _ = w[0].contentRect.width;
867
+ H(_);
848
868
  }
869
+ });
870
+ function ae() {
871
+ c.value && !l && (te.observe(c.value), l = !0);
849
872
  }
850
- return ze(() => {
851
- W(), L(), Z(), document.body.addEventListener("click", T), document.body.addEventListener("wheel", T);
852
- }), ct(() => {
853
- Q.disconnect(), g(), document.body.removeEventListener("click", T), document.body.removeEventListener("wheel", T);
854
- }), De(() => e.items, () => {
855
- t.value = nt(e.items), m.value.children = [], Ce(() => {
856
- V(), L();
873
+ return Ge(() => {
874
+ U(), H(), ae(), document.body.addEventListener("click", f), document.body.addEventListener("wheel", f);
875
+ }), ut(() => {
876
+ te.disconnect(), o(), document.body.removeEventListener("click", f), document.body.removeEventListener("wheel", f);
877
+ }), ke(() => e.items, () => {
878
+ t.value = ot(e.items), g.value.children = [], Te(() => {
879
+ U(), $(), H();
857
880
  });
858
881
  }, {
859
882
  deep: !0
860
- }), De(() => e.visible, (I) => {
861
- I && Ce(() => {
862
- W(), L(), Z();
883
+ }), ke(() => e.visible, (w) => {
884
+ w && Te(() => {
885
+ U(), H(), ae();
863
886
  });
864
- }), b.expose({
887
+ }), m.expose({
865
888
  elementRef: h
866
- }), () => N("div", {
867
- class: o.value,
868
- id: i,
889
+ }), () => L("div", {
890
+ class: F.value,
891
+ id: n,
869
892
  ref: h,
870
893
  style: {
871
- "overflow-y": S.value < 0 ? "hidden" : "initial"
894
+ "overflow-y": P.value < 0 ? "hidden" : "initial"
872
895
  }
873
- }, [e.visible && F(), e.visible && N("div", {
896
+ }, [e.visible && q(), e.visible && L("div", {
874
897
  ref: c,
875
- class: $.value
876
- }, [N("div", {
898
+ class: I.value
899
+ }, [L("div", {
877
900
  ref: r,
878
901
  class: "d-inline-block f-response-content",
879
902
  style: "white-space: nowrap;"
880
- }, [t.value.filter((I) => I.shown).map((I, U) => I.children && I.children.length > 0 ? B(I) : s(I, U)), w.value && B(m.value)])])]);
903
+ }, [t.value.filter((w) => w.shown).map((w, C) => w.children && w.children.length > 0 ? G(w) : v(w, C)), b.value && G(g.value)])])]);
881
904
  }
882
905
  });
883
- class Dn extends ut {
906
+ class kn extends dt {
884
907
  constructor(t, h, c = "response-toolbar") {
885
908
  super(t, h);
886
909
  // 有三类值 response-toolbar、section-toolbar、tab-toolbar
887
- ee(this, "toolbarType", "response-toolbar");
910
+ J(this, "toolbarType", "response-toolbar");
888
911
  this.toolbarType = c;
889
912
  }
890
913
  getPropertyConfig(t) {
@@ -938,51 +961,61 @@ class Dn extends ut {
938
961
  };
939
962
  }
940
963
  }
941
- function In(e, b, t) {
964
+ function In(e, m, t) {
942
965
  const h = e.schema;
943
966
  function c() {
944
- var n;
967
+ var n, S, B;
945
968
  let i = ((n = e.parent) == null ? void 0 : n.schema.type) || "";
946
- ["page-header", "tabs", "section"].findIndex((k) => k === i) === -1 && (i = ""), t.toolbarPosition = i;
969
+ i === "drawer" && (((S = e.parent) == null ? void 0 : S.schema.headerToolbar.id) === h.id ? i = "drawer-header-toolbar" : ((B = e.parent) == null ? void 0 : B.schema.footerToolbar.id) === h.id && (i = "drawer-footer-toolbar")), ["page-header", "tabs", "section", "drawer-header-toolbar", "drawer-footer-toolbar"].findIndex((G) => G === i) === -1 && (i = ""), t.toolbarPosition = i;
947
970
  }
948
971
  c();
949
972
  function r(i) {
950
973
  return !1;
951
974
  }
952
- function D(i, n) {
975
+ function T(i, n) {
953
976
  return n.text = i.label, n;
954
977
  }
955
- function m() {
978
+ function x() {
956
979
  return !1;
957
980
  }
958
- function v() {
981
+ function g() {
959
982
  return !1;
960
983
  }
961
- function S() {
984
+ function E() {
962
985
  return !1;
963
986
  }
964
987
  function P() {
965
988
  return !0;
966
989
  }
967
- function d(i) {
968
- return new Dn(i, b, h.type).getPropertyConfig(h);
990
+ function u(i) {
991
+ return new kn(i, m, h.type).getPropertyConfig(h);
969
992
  }
970
993
  function l(i) {
971
- var M;
994
+ var G;
972
995
  i && (i.stopPropagation(), i.preventDefault());
973
996
  const { schema: n } = e;
974
997
  n.buttons || (n.buttons = []);
975
- let k = "";
998
+ let S = "";
976
999
  if (n.type)
977
- k = n.type + "-item";
978
- else {
979
- const j = (M = e.parent) == null ? void 0 : M.schema.type;
980
- k = j === "tabs" ? "tab-toolbar-item" : j === "section" ? "section-toolbar-item" : "response-toolbar-item";
981
- }
982
- const B = lt(k);
1000
+ S = n.type + "-item";
1001
+ else
1002
+ switch ((G = e.parent) == null ? void 0 : G.schema.type) {
1003
+ case "tabs":
1004
+ S = "tab-toolbar-item";
1005
+ break;
1006
+ case "section":
1007
+ S = "section-toolbar-item";
1008
+ break;
1009
+ case "drawer":
1010
+ S = "drawer-toolbar-item";
1011
+ break;
1012
+ default:
1013
+ S = "response-toolbar-item";
1014
+ }
1015
+ const B = at(S);
983
1016
  B.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, n.buttons.push(B), t.updateToolbarItems(), t.changeSelectedId("");
984
1017
  }
985
- function u() {
1018
+ function d() {
986
1019
  return [
987
1020
  {
988
1021
  id: "appendItem",
@@ -995,292 +1028,292 @@ function In(e, b, t) {
995
1028
  }
996
1029
  return {
997
1030
  canAccepts: r,
998
- checkCanAddComponent: S,
999
- checkCanDeleteComponent: v,
1000
- checkCanMoveComponent: m,
1031
+ checkCanAddComponent: E,
1032
+ checkCanDeleteComponent: g,
1033
+ checkCanMoveComponent: x,
1001
1034
  hideNestedPaddingInDesginerView: P,
1002
- onResolveNewComponentSchema: D,
1003
- getPropsConfig: d,
1004
- getCustomButtons: u
1035
+ onResolveNewComponentSchema: T,
1036
+ getPropsConfig: u,
1037
+ getCustomButtons: d
1005
1038
  };
1006
1039
  }
1007
- var ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1008
- function Sn(e) {
1040
+ var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1041
+ function Pn(e) {
1009
1042
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1010
1043
  }
1011
- function Te(e) {
1044
+ function Se(e) {
1012
1045
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1013
1046
  }
1014
- var gt = { exports: {} };
1015
- (function(e, b) {
1047
+ var bt = { exports: {} };
1048
+ (function(e, m) {
1016
1049
  (function(t) {
1017
1050
  e.exports = t();
1018
1051
  })(function() {
1019
1052
  return (/* @__PURE__ */ function() {
1020
1053
  function t(h, c, r) {
1021
- function D(S, P) {
1022
- if (!c[S]) {
1023
- if (!h[S]) {
1024
- var d = typeof Te == "function" && Te;
1025
- if (!P && d) return d(S, !0);
1026
- if (m) return m(S, !0);
1027
- var l = new Error("Cannot find module '" + S + "'");
1054
+ function T(E, P) {
1055
+ if (!c[E]) {
1056
+ if (!h[E]) {
1057
+ var u = typeof Se == "function" && Se;
1058
+ if (!P && u) return u(E, !0);
1059
+ if (x) return x(E, !0);
1060
+ var l = new Error("Cannot find module '" + E + "'");
1028
1061
  throw l.code = "MODULE_NOT_FOUND", l;
1029
1062
  }
1030
- var u = c[S] = { exports: {} };
1031
- h[S][0].call(u.exports, function(i) {
1032
- var n = h[S][1][i];
1033
- return D(n || i);
1034
- }, u, u.exports, t, h, c, r);
1063
+ var d = c[E] = { exports: {} };
1064
+ h[E][0].call(d.exports, function(i) {
1065
+ var n = h[E][1][i];
1066
+ return T(n || i);
1067
+ }, d, d.exports, t, h, c, r);
1035
1068
  }
1036
- return c[S].exports;
1069
+ return c[E].exports;
1037
1070
  }
1038
- for (var m = typeof Te == "function" && Te, v = 0; v < r.length; v++) D(r[v]);
1039
- return D;
1071
+ for (var x = typeof Se == "function" && Se, g = 0; g < r.length; g++) T(r[g]);
1072
+ return T;
1040
1073
  }
1041
1074
  return t;
1042
1075
  }())({
1043
1076
  1: [function(t, h, c) {
1044
- var r = {}, D = "(?:^|\\s)", m = "(?:\\s|$)";
1045
- function v(d) {
1046
- var l = r[d];
1047
- return l ? l.lastIndex = 0 : r[d] = l = new RegExp(D + d + m, "g"), l;
1077
+ var r = {}, T = "(?:^|\\s)", x = "(?:\\s|$)";
1078
+ function g(u) {
1079
+ var l = r[u];
1080
+ return l ? l.lastIndex = 0 : r[u] = l = new RegExp(T + u + x, "g"), l;
1048
1081
  }
1049
- function S(d, l) {
1050
- var u = d.className;
1051
- u.length ? v(l).test(u) || (d.className += " " + l) : d.className = l;
1082
+ function E(u, l) {
1083
+ var d = u.className;
1084
+ d.length ? g(l).test(d) || (u.className += " " + l) : u.className = l;
1052
1085
  }
1053
- function P(d, l) {
1054
- d.className = d.className.replace(v(l), " ").trim();
1086
+ function P(u, l) {
1087
+ u.className = u.className.replace(g(l), " ").trim();
1055
1088
  }
1056
1089
  h.exports = {
1057
- add: S,
1090
+ add: E,
1058
1091
  rm: P
1059
1092
  };
1060
1093
  }, {}],
1061
1094
  2: [function(t, h, c) {
1062
1095
  (function(r) {
1063
- var D = t("contra/emitter"), m = t("crossvent"), v = t("./classes"), S = document, P = S.documentElement;
1064
- function d(f, x) {
1096
+ var T = t("contra/emitter"), x = t("crossvent"), g = t("./classes"), E = document, P = E.documentElement;
1097
+ function u(f, y) {
1065
1098
  var s = arguments.length;
1066
- s === 1 && Array.isArray(f) === !1 && (x = f, f = []);
1067
- var p, C, A, z, H, Y, L, F, Q, V = null, Z, W, I = !1, U = 0, G, O = x || {};
1068
- O.moves === void 0 && (O.moves = M), O.accepts === void 0 && (O.accepts = M), O.invalid === void 0 && (O.invalid = yt), O.containers === void 0 && (O.containers = f || []), O.isContainer === void 0 && (O.isContainer = B), O.copy === void 0 && (O.copy = !1), O.copySortSource === void 0 && (O.copySortSource = !1), O.revertOnSpill === void 0 && (O.revertOnSpill = !1), O.removeOnSpill === void 0 && (O.removeOnSpill = !1), O.direction === void 0 && (O.direction = "vertical"), O.ignoreInputTextSelection === void 0 && (O.ignoreInputTextSelection = !0), O.mirrorContainer === void 0 && (O.mirrorContainer = S.body);
1069
- var X = D({
1070
- containers: O.containers,
1099
+ s === 1 && Array.isArray(f) === !1 && (y = f, f = []);
1100
+ var v, k, M, W, Y, X, $, N, V, U = null, H, q, te = !1, ae = 0, w, C = y || {};
1101
+ C.moves === void 0 && (C.moves = G), C.accepts === void 0 && (C.accepts = G), C.invalid === void 0 && (C.invalid = yt), C.containers === void 0 && (C.containers = f || []), C.isContainer === void 0 && (C.isContainer = B), C.copy === void 0 && (C.copy = !1), C.copySortSource === void 0 && (C.copySortSource = !1), C.revertOnSpill === void 0 && (C.revertOnSpill = !1), C.removeOnSpill === void 0 && (C.removeOnSpill = !1), C.direction === void 0 && (C.direction = "vertical"), C.ignoreInputTextSelection === void 0 && (C.ignoreInputTextSelection = !0), C.mirrorContainer === void 0 && (C.mirrorContainer = E.body);
1102
+ var _ = T({
1103
+ containers: C.containers,
1071
1104
  start: mt,
1072
- end: Xe,
1073
- cancel: Ze,
1074
- remove: Qe,
1075
- destroy: ae,
1076
- canMove: vt,
1105
+ end: He,
1106
+ cancel: Je,
1107
+ remove: Ze,
1108
+ destroy: se,
1109
+ canMove: Oe,
1077
1110
  dragging: !1
1078
1111
  });
1079
- return O.removeOnSpill === !0 && X.on("over", xt).on("out", Ct), oe(), X;
1080
- function ne(a) {
1081
- return X.containers.indexOf(a) !== -1 || O.isContainer(a);
1112
+ return C.removeOnSpill === !0 && _.on("over", xt).on("out", Ct), ee(), _;
1113
+ function K(a) {
1114
+ return _.containers.indexOf(a) !== -1 || C.isContainer(a);
1082
1115
  }
1083
- function oe(a) {
1084
- var E = a ? "remove" : "add";
1085
- i(P, E, "mousedown", me), i(P, E, "mouseup", Be);
1116
+ function ee(a) {
1117
+ var R = a ? "remove" : "add";
1118
+ i(P, R, "mousedown", ce), i(P, R, "mouseup", Be);
1086
1119
  }
1087
- function te(a) {
1088
- var E = a ? "remove" : "add";
1089
- i(P, E, "mousemove", Me);
1120
+ function ne(a) {
1121
+ var R = a ? "remove" : "add";
1122
+ i(P, R, "mousemove", we);
1090
1123
  }
1091
1124
  function ye(a) {
1092
- var E = a ? "remove" : "add";
1093
- m[E](P, "selectstart", he), m[E](P, "click", he);
1125
+ var R = a ? "remove" : "add";
1126
+ x[R](P, "selectstart", De), x[R](P, "click", De);
1094
1127
  }
1095
- function ae() {
1096
- oe(!0), Be({});
1128
+ function se() {
1129
+ ee(!0), Be({});
1097
1130
  }
1098
- function he(a) {
1099
- Z && a.preventDefault();
1131
+ function De(a) {
1132
+ H && a.preventDefault();
1100
1133
  }
1101
- function me(a) {
1102
- z = a.clientX, H = a.clientY;
1103
- var E = n(a) !== 1 || a.metaKey || a.ctrlKey;
1104
- if (!E) {
1105
- var R = a.target, q = Re(R);
1106
- q && (Z = q, te(), a.type === "mousedown" && (_(R) ? R.focus() : a.preventDefault()));
1134
+ function ce(a) {
1135
+ W = a.clientX, Y = a.clientY;
1136
+ var R = n(a) !== 1 || a.metaKey || a.ctrlKey;
1137
+ if (!R) {
1138
+ var A = a.target, z = he(A);
1139
+ z && (H = z, ne(), a.type === "mousedown" && (O(A) ? A.focus() : a.preventDefault()));
1107
1140
  }
1108
1141
  }
1109
- function Me(a) {
1110
- if (Z) {
1142
+ function we(a) {
1143
+ if (H) {
1111
1144
  if (n(a) === 0) {
1112
1145
  Be({});
1113
1146
  return;
1114
1147
  }
1115
- if (!(a.clientX !== void 0 && Math.abs(a.clientX - z) <= (O.slideFactorX || 0) && a.clientY !== void 0 && Math.abs(a.clientY - H) <= (O.slideFactorY || 0))) {
1116
- if (O.ignoreInputTextSelection) {
1117
- var E = T("clientX", a) || 0, R = T("clientY", a) || 0, q = S.elementFromPoint(E, R);
1118
- if (_(q))
1148
+ if (!(a.clientX !== void 0 && Math.abs(a.clientX - W) <= (C.slideFactorX || 0) && a.clientY !== void 0 && Math.abs(a.clientY - Y) <= (C.slideFactorY || 0))) {
1149
+ if (C.ignoreInputTextSelection) {
1150
+ var R = I("clientX", a) || 0, A = I("clientY", a) || 0, z = E.elementFromPoint(R, A);
1151
+ if (O(z))
1119
1152
  return;
1120
1153
  }
1121
- var J = Z;
1122
- te(!0), ye(), Xe(), Ye(J), v.add(F || A, "gu-transit"), Dt(), Tt(), U = 0, Ae(a);
1154
+ var Q = H;
1155
+ ne(!0), ye(), He(), Xe(Q), g.add(N || M, "gu-transit"), Dt(), Tt(), ae = 0, _e(a);
1123
1156
  }
1124
1157
  }
1125
1158
  }
1126
- function Re(a) {
1127
- if (!(X.dragging && p) && !ne(a)) {
1128
- for (var E = a; y(a) && ne(y(a)) === !1; )
1129
- if (O.invalid(a, E) || (a = y(a), !a))
1159
+ function he(a) {
1160
+ if (!(_.dragging && v) && !K(a)) {
1161
+ for (var R = a; b(a) && K(b(a)) === !1; )
1162
+ if (C.invalid(a, R) || (a = b(a), !a))
1130
1163
  return;
1131
- var R = y(a);
1132
- if (R && !O.invalid(a, E)) {
1133
- var q = O.moves(a, R, E, o(a));
1134
- if (q)
1164
+ var A = b(a);
1165
+ if (A && !C.invalid(a, R)) {
1166
+ var z = C.moves(a, A, R, o(a));
1167
+ if (z)
1135
1168
  return {
1136
1169
  item: a,
1137
- source: R
1170
+ source: A
1138
1171
  };
1139
1172
  }
1140
1173
  }
1141
1174
  }
1142
- function vt(a) {
1143
- return !!Re(a);
1175
+ function Oe(a) {
1176
+ return !!he(a);
1144
1177
  }
1145
1178
  function mt(a) {
1146
- var E = Re(a);
1147
- E && Ye(E);
1179
+ var R = he(a);
1180
+ R && Xe(R);
1148
1181
  }
1149
- function Ye(a) {
1150
- Bt(a.item, a.source) && (F = a.item.cloneNode(!0), X.emit("cloned", F, a.item, "copy")), C = a.source, A = a.item, Y = L = o(a.item), X.dragging = !0, X.emit("drag", A, C);
1182
+ function Xe(a) {
1183
+ Ot(a.item, a.source) && (N = a.item.cloneNode(!0), _.emit("cloned", N, a.item, "copy")), k = a.source, M = a.item, X = $ = o(a.item), _.dragging = !0, _.emit("drag", M, k);
1151
1184
  }
1152
1185
  function yt() {
1153
1186
  return !1;
1154
1187
  }
1155
- function Xe() {
1156
- if (X.dragging) {
1157
- var a = F || A;
1158
- Ve(a, y(a));
1188
+ function He() {
1189
+ if (_.dragging) {
1190
+ var a = N || M;
1191
+ Qe(a, b(a));
1159
1192
  }
1160
1193
  }
1161
- function He() {
1162
- Z = !1, te(!0), ye(!0);
1194
+ function Ve() {
1195
+ H = !1, ne(!0), ye(!0);
1163
1196
  }
1164
1197
  function Be(a) {
1165
- if (He(), !!X.dragging) {
1166
- var E = F || A, R = T("clientX", a) || 0, q = T("clientY", a) || 0, J = k(p, R, q), K = Je(J, R, q);
1167
- K && (F && O.copySortSource || !F || K !== C) ? Ve(E, K) : O.removeOnSpill ? Qe() : Ze();
1198
+ if (Ve(), !!_.dragging) {
1199
+ var R = N || M, A = I("clientX", a) || 0, z = I("clientY", a) || 0, Q = S(v, A, z), Z = Ke(Q, A, z);
1200
+ Z && (N && C.copySortSource || !N || Z !== k) ? Qe(R, Z) : C.removeOnSpill ? Ze() : Je();
1168
1201
  }
1169
1202
  }
1170
- function Ve(a, E) {
1171
- var R = y(a);
1172
- F && O.copySortSource && E === C && R.removeChild(A), je(E) ? X.emit("cancel", a, C) : X.emit("drop", a, E, C, L), Oe();
1203
+ function Qe(a, R) {
1204
+ var A = b(a);
1205
+ N && C.copySortSource && R === k && A.removeChild(M), Ae(R) ? _.emit("cancel", a, k) : _.emit("drop", a, R, k, $), je();
1173
1206
  }
1174
- function Qe() {
1175
- if (X.dragging) {
1176
- var a = F || A, E = y(a);
1177
- E && E.removeChild(a), X.emit(F ? "cancel" : "remove", a, E, C), Oe();
1207
+ function Ze() {
1208
+ if (_.dragging) {
1209
+ var a = N || M, R = b(a);
1210
+ R && R.removeChild(a), _.emit(N ? "cancel" : "remove", a, R, k), je();
1178
1211
  }
1179
1212
  }
1180
- function Ze(a) {
1181
- if (X.dragging) {
1182
- var E = arguments.length > 0 ? a : O.revertOnSpill, R = F || A, q = y(R), J = je(q);
1183
- J === !1 && E && (F ? q && q.removeChild(F) : C.insertBefore(R, Y)), J || E ? X.emit("cancel", R, C, C) : X.emit("drop", R, q, C, L), Oe();
1213
+ function Je(a) {
1214
+ if (_.dragging) {
1215
+ var R = arguments.length > 0 ? a : C.revertOnSpill, A = N || M, z = b(A), Q = Ae(z);
1216
+ Q === !1 && R && (N ? z && z.removeChild(N) : k.insertBefore(A, X)), Q || R ? _.emit("cancel", A, k, k) : _.emit("drop", A, z, k, $), je();
1184
1217
  }
1185
1218
  }
1186
- function Oe() {
1187
- var a = F || A;
1188
- He(), It(), St(), a && v.rm(a, "gu-transit"), Q && clearTimeout(Q), X.dragging = !1, V && X.emit("out", a, V, C), X.emit("dragend", a, U), C = A = F = Y = L = Q = V = null;
1219
+ function je() {
1220
+ var a = N || M;
1221
+ Ve(), St(), kt(), a && g.rm(a, "gu-transit"), V && clearTimeout(V), _.dragging = !1, U && _.emit("out", a, U, k), _.emit("dragend", a, ae), k = M = N = X = $ = V = U = null;
1189
1222
  }
1190
- function je(a, E) {
1191
- var R;
1192
- return E !== void 0 ? R = E : p ? R = L : R = o(F || A), a === C && R === Y;
1223
+ function Ae(a, R) {
1224
+ var A;
1225
+ return R !== void 0 ? A = R : v ? A = $ : A = o(N || M), a === k && A === X;
1193
1226
  }
1194
- function Je(a, E, R) {
1195
- for (var q = a; q && !J(); )
1196
- q = y(q);
1197
- return q;
1198
- function J() {
1199
- var K = ne(q);
1200
- if (K === !1)
1227
+ function Ke(a, R, A) {
1228
+ for (var z = a; z && !Q(); )
1229
+ z = b(z);
1230
+ return z;
1231
+ function Q() {
1232
+ var Z = K(z);
1233
+ if (Z === !1)
1201
1234
  return !1;
1202
- var pe = Ke(q, a), ce = et(q, pe, E, R), fe = je(q, ce);
1203
- return fe ? !0 : O.accepts(A, q, C, ce);
1235
+ var ge = et(z, a), ue = tt(z, ge, R, A), pe = Ae(z, ue);
1236
+ return pe ? !0 : C.accepts(M, z, k, ue);
1204
1237
  }
1205
1238
  }
1206
- function Ae(a) {
1207
- if (!p)
1239
+ function _e(a) {
1240
+ if (!v)
1208
1241
  return;
1209
1242
  a.preventDefault();
1210
- var E = T("clientX", a) || 0, R = T("clientY", a) || 0;
1211
- p.style.left = E - 2 + "px", p.style.top = R - 2 + "px";
1212
- var q = F || A, J = k(p, E, R), K = Je(J, E, R), pe = K !== null && K !== V;
1213
- (pe || K === null) && (ue(), V = K, be()), Rt(J, R);
1214
- var ce = y(q);
1215
- if (K === C && F && !O.copySortSource) {
1216
- ce && ce.removeChild(q);
1243
+ var R = I("clientX", a) || 0, A = I("clientY", a) || 0;
1244
+ v.style.left = R - 2 + "px", v.style.top = A - 2 + "px";
1245
+ var z = N || M, Q = S(v, R, A), Z = Ke(Q, R, A), ge = Z !== null && Z !== U;
1246
+ (ge || Z === null) && (de(), U = Z, ve()), Rt(Q, A);
1247
+ var ue = b(z);
1248
+ if (Z === k && N && !C.copySortSource) {
1249
+ ue && ue.removeChild(z);
1217
1250
  return;
1218
1251
  }
1219
- var fe, ge = Ke(K, J);
1220
- if (I = kt(ge, K), ge !== null)
1221
- fe = et(K, ge, E, R);
1222
- else if (O.revertOnSpill === !0 && !F)
1223
- fe = Y, K = C;
1252
+ var pe, be = et(Z, Q);
1253
+ if (te = It(be, Z), be !== null)
1254
+ pe = tt(Z, be, R, A);
1255
+ else if (C.revertOnSpill === !0 && !N)
1256
+ pe = X, Z = k;
1224
1257
  else {
1225
- F && ce && ce.removeChild(q), F && W && (W.style.display = "none");
1258
+ N && ue && ue.removeChild(z), N && q && (q.style.display = "none");
1226
1259
  return;
1227
1260
  }
1228
- W.style.display = "block", wt(fe, q, pe), fe ? Et(ge, fe) : Mt(K);
1229
- function se(le) {
1230
- X.emit(le, q, V, C);
1261
+ q.style.display = "block", wt(pe, z, ge), pe ? Et(be, pe) : Mt(Z);
1262
+ function ie(le) {
1263
+ _.emit(le, z, U, k);
1231
1264
  }
1232
- function be() {
1233
- pe && se("over");
1265
+ function ve() {
1266
+ ge && ie("over");
1234
1267
  }
1235
- function ue() {
1236
- V && se("out");
1268
+ function de() {
1269
+ U && ie("out");
1237
1270
  }
1238
1271
  }
1239
- function wt(a, E, R) {
1240
- (a === E || a === o(E)) && (L = o(E)), (a === null && R || a !== E && a !== o(E)) && (L = a);
1272
+ function wt(a, R, A) {
1273
+ (a === R || a === o(R)) && ($ = o(R)), (a === null && A || a !== R && a !== o(R)) && ($ = a);
1241
1274
  }
1242
1275
  function xt(a) {
1243
- v.rm(a, "gu-hide");
1276
+ g.rm(a, "gu-hide");
1244
1277
  }
1245
1278
  function Ct(a) {
1246
- X.dragging && v.add(a, "gu-hide");
1279
+ _.dragging && g.add(a, "gu-hide");
1247
1280
  }
1248
1281
  function Tt() {
1249
- p || (p = document.createElement("div"), p.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", p.innerHTML = O.getMirrorText && O.getMirrorText(A) || "控件", v.add(p, "gu-mirror"), O.mirrorContainer.appendChild(p), i(P, "add", "mousemove", Ae), v.add(O.mirrorContainer, "gu-unselectable"), X.emit("cloned", p, A, "mirror"));
1282
+ v || (v = document.createElement("div"), v.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", v.innerHTML = C.getMirrorText && C.getMirrorText(M) || "控件", g.add(v, "gu-mirror"), C.mirrorContainer.appendChild(v), i(P, "add", "mousemove", _e), g.add(C.mirrorContainer, "gu-unselectable"), _.emit("cloned", v, M, "mirror"));
1250
1283
  }
1251
1284
  function Dt() {
1252
- if (W = document.createElement("div"), v.add(W, "gu-insertion"), A) {
1253
- var a = A.getBoundingClientRect();
1254
- W.style.left = a.left + "px", W.style.top = a.top + "px";
1285
+ if (q = document.createElement("div"), g.add(q, "gu-insertion"), M) {
1286
+ var a = M.getBoundingClientRect();
1287
+ q.style.left = a.left + "px", q.style.top = a.top + "px";
1255
1288
  }
1256
- I = !1, O.mirrorContainer.appendChild(W);
1257
- }
1258
- function It() {
1259
- p && (v.rm(O.mirrorContainer, "gu-unselectable"), i(P, "remove", "mousemove", Ae), y(p).removeChild(p), p = null);
1289
+ te = !1, C.mirrorContainer.appendChild(q);
1260
1290
  }
1261
1291
  function St() {
1262
- W && (y(W).removeChild(W), W = null);
1292
+ v && (g.rm(C.mirrorContainer, "gu-unselectable"), i(P, "remove", "mousemove", _e), b(v).removeChild(v), v = null);
1293
+ }
1294
+ function kt() {
1295
+ q && (b(q).removeChild(q), q = null);
1263
1296
  }
1264
- function Ke(a, E) {
1265
- for (var R = E; R !== a && y(R) !== a; )
1266
- R = y(R);
1267
- return R === P ? null : R;
1297
+ function et(a, R) {
1298
+ for (var A = R; A !== a && b(A) !== a; )
1299
+ A = b(A);
1300
+ return A === P ? null : A;
1268
1301
  }
1269
- function kt(a, E) {
1270
- if (!E)
1271
- return I;
1272
- var R = a || E && E.lastElementChild;
1302
+ function It(a, R) {
1273
1303
  if (!R)
1304
+ return te;
1305
+ var A = a || R && R.lastElementChild;
1306
+ if (!A)
1274
1307
  return !0;
1275
- var q = getComputedStyle(a), J = /^inline/.test(q.getPropertyValue("display")) || /^(left|right)$/.test(q.getPropertyValue("float"));
1276
- if (J)
1308
+ var z = getComputedStyle(a), Q = /^inline/.test(z.getPropertyValue("display")) || /^(left|right)$/.test(z.getPropertyValue("float"));
1309
+ if (Q)
1277
1310
  return !0;
1278
- if (E) {
1279
- var K = getComputedStyle(E), pe = K.getPropertyValue("display");
1280
- if (/flex$/.test(pe)) {
1281
- var ce = K.getPropertyValue("flex-direction") || "row";
1282
- if (ce === "row" || ce === "row-reverse")
1283
- return !Pt(E);
1311
+ if (R) {
1312
+ var Z = getComputedStyle(R), ge = Z.getPropertyValue("display");
1313
+ if (/flex$/.test(ge)) {
1314
+ var ue = Z.getPropertyValue("flex-direction") || "row";
1315
+ if (ue === "row" || ue === "row-reverse")
1316
+ return !Pt(R);
1284
1317
  }
1285
1318
  return !1;
1286
1319
  }
@@ -1289,114 +1322,114 @@ var gt = { exports: {} };
1289
1322
  function Pt(a) {
1290
1323
  if (!a.children || !a.children.length)
1291
1324
  return !1;
1292
- for (const E of Array.from(a.children)) {
1293
- const q = (E.className && E.className.split(" ") || []).filter((J) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(J));
1294
- if (!q.length)
1325
+ for (const R of Array.from(a.children)) {
1326
+ const z = (R.className && R.className.split(" ") || []).filter((Q) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Q));
1327
+ if (!z.length)
1295
1328
  return !1;
1296
- for (const J of q) {
1297
- const K = J.slice(J.lastIndexOf("-") + 1);
1298
- if (parseInt(K, 10) !== 12)
1329
+ for (const Q of z) {
1330
+ const Z = Q.slice(Q.lastIndexOf("-") + 1);
1331
+ if (parseInt(Z, 10) !== 12)
1299
1332
  return !1;
1300
1333
  }
1301
1334
  }
1302
1335
  return !0;
1303
1336
  }
1304
- function Et(a, E) {
1305
- const R = E.getBoundingClientRect();
1306
- if (W.style.left = R.left + "px", W.style.top = R.top + "px", I) {
1307
- if (W.style.height = R.height + "px", W.style.width = "4px", a) {
1308
- const q = a.getBoundingClientRect();
1309
- q.top !== R.top && (W.style.left = q.right + "px", W.style.top = q.top + "px", W.style.height = q.height + "px");
1337
+ function Et(a, R) {
1338
+ const A = R.getBoundingClientRect();
1339
+ if (q.style.left = A.left + "px", q.style.top = A.top + "px", te) {
1340
+ if (q.style.height = A.height + "px", q.style.width = "4px", a) {
1341
+ const z = a.getBoundingClientRect();
1342
+ z.top !== A.top && (q.style.left = z.right + "px", q.style.top = z.top + "px", q.style.height = z.height + "px");
1310
1343
  }
1311
- } else if (W.style.height = "4px", W.style.width = R.width + "px", G) {
1312
- const q = G.getBoundingClientRect();
1313
- R.top < q.top && (W.style.display = "none");
1344
+ } else if (q.style.height = "4px", q.style.width = A.width + "px", w) {
1345
+ const z = w.getBoundingClientRect();
1346
+ A.top < z.top && (q.style.display = "none");
1314
1347
  }
1315
- E === A && A && (W.style.display = "none");
1348
+ R === M && M && (q.style.display = "none");
1316
1349
  }
1317
1350
  function Mt(a) {
1318
- L = null;
1319
- var E = a.lastElementChild;
1320
- if (E) {
1321
- var R = E.getBoundingClientRect();
1322
- I ? (W.style.left = R.right + "px", W.style.top = R.top + "px", W.style.height = R.height + "px", W.style.width = "4px") : (W.style.left = R.left + "px", W.style.top = R.bottom + "px", W.style.height = "4px", W.style.width = R.width + "px"), E === A && A && (W.style.display = "none");
1351
+ $ = null;
1352
+ var R = a.lastElementChild;
1353
+ if (R) {
1354
+ var A = R.getBoundingClientRect();
1355
+ te ? (q.style.left = A.right + "px", q.style.top = A.top + "px", q.style.height = A.height + "px", q.style.width = "4px") : (q.style.left = A.left + "px", q.style.top = A.bottom + "px", q.style.height = "4px", q.style.width = A.width + "px"), R === M && M && (q.style.display = "none");
1323
1356
  } else
1324
- W.style.display = "none";
1357
+ q.style.display = "none";
1325
1358
  }
1326
- function Rt(a, E) {
1327
- if (!O.mirrorContainer.contains(a) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (G = l(a), !G || !G.contains(a)))
1359
+ function Rt(a, R) {
1360
+ if (!C.mirrorContainer.contains(a) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (w = l(a), !w || !w.contains(a)))
1328
1361
  return;
1329
- const R = document.querySelector(".dgComponentSelected"), q = G.getBoundingClientRect();
1330
- if (E - 30 < q.top && G.scrollTop > 0) {
1331
- let J = G.scrollTop < 10 ? G.scrollTop : 10;
1332
- G.scrollBy(0, -1 * J), R && G.contains(R) && (U = U + -1 * J);
1362
+ const A = document.querySelector(".dgComponentSelected"), z = w.getBoundingClientRect();
1363
+ if (R - 30 < z.top && w.scrollTop > 0) {
1364
+ let Q = w.scrollTop < 10 ? w.scrollTop : 10;
1365
+ w.scrollBy(0, -1 * Q), A && w.contains(A) && (ae = ae + -1 * Q);
1333
1366
  }
1334
- if (E + 30 > q.bottom && G.scrollTop < G.scrollHeight - G.clientHeight) {
1335
- const J = G.scrollHeight - G.clientHeight - G.scrollTop;
1336
- let K = J < 10 ? J : 10;
1337
- G.scrollBy(0, K), R && G.contains(R) && (U = U + K);
1367
+ if (R + 30 > z.bottom && w.scrollTop < w.scrollHeight - w.clientHeight) {
1368
+ const Q = w.scrollHeight - w.clientHeight - w.scrollTop;
1369
+ let Z = Q < 10 ? Q : 10;
1370
+ w.scrollBy(0, Z), A && w.contains(A) && (ae = ae + Z);
1338
1371
  }
1339
1372
  }
1340
- function et(a, E, R, q) {
1341
- var J = O.direction === "horizontal", K = O.direction === "mixed", pe = E !== a ? fe() : ce();
1342
- return pe;
1343
- function ce() {
1344
- var se = a.children.length, be, ue, le;
1345
- for (be = 0; be < se; be++)
1346
- if (ue = a.children[be], le = ue.getBoundingClientRect(), J && le.left + le.width / 2 > R || !K && !J && le.top + le.height / 2 > q || K && le.left + le.width > R && le.top + le.height > q)
1347
- return ue;
1373
+ function tt(a, R, A, z) {
1374
+ var Q = C.direction === "horizontal", Z = C.direction === "mixed", ge = R !== a ? pe() : ue();
1375
+ return ge;
1376
+ function ue() {
1377
+ var ie = a.children.length, ve, de, le;
1378
+ for (ve = 0; ve < ie; ve++)
1379
+ if (de = a.children[ve], le = de.getBoundingClientRect(), Q && le.left + le.width / 2 > A || !Z && !Q && le.top + le.height / 2 > z || Z && le.left + le.width > A && le.top + le.height > z)
1380
+ return de;
1348
1381
  return null;
1349
1382
  }
1350
- function fe() {
1351
- var se = E.getBoundingClientRect();
1352
- if (K) {
1353
- var be = q - se.top, ue = R - se.left, le = se.bottom - q, _e = se.right - R, $e = Math.min(ue, _e, be, le), Le;
1354
- return I ? Le = _e < ue : Le = le === $e || _e === $e || ue === $e, ge(Le);
1383
+ function pe() {
1384
+ var ie = R.getBoundingClientRect();
1385
+ if (Z) {
1386
+ var ve = z - ie.top, de = A - ie.left, le = ie.bottom - z, $e = ie.right - A, Le = Math.min(de, $e, ve, le), Ne;
1387
+ return te ? Ne = $e < de : Ne = le === Le || $e === Le || de === Le, be(Ne);
1355
1388
  }
1356
- return ge(J ? R > se.left + j(se) / 2 : q > se.top + w(se) / 2);
1389
+ return be(Q ? A > ie.left + j(ie) / 2 : z > ie.top + D(ie) / 2);
1357
1390
  }
1358
- function ge(se) {
1359
- return se ? o(E) : E;
1391
+ function be(ie) {
1392
+ return ie ? o(R) : R;
1360
1393
  }
1361
1394
  }
1362
- function Bt(a, E) {
1363
- return typeof O.copy == "boolean" ? O.copy : O.copy(a, E);
1395
+ function Ot(a, R) {
1396
+ return typeof C.copy == "boolean" ? C.copy : C.copy(a, R);
1364
1397
  }
1365
1398
  }
1366
1399
  function l(f) {
1367
- const x = Array.from(window.scrollContainerList);
1368
- if (x.length === 1) {
1369
- const p = Array.from(window.scrollContainerList)[0];
1370
- return document.getElementById(p);
1400
+ const y = Array.from(window.scrollContainerList);
1401
+ if (y.length === 1) {
1402
+ const v = Array.from(window.scrollContainerList)[0];
1403
+ return document.getElementById(v);
1371
1404
  }
1372
- const s = u(x);
1373
- for (const p of s)
1374
- if (p.contains(f))
1375
- return p;
1405
+ const s = d(y);
1406
+ for (const v of s)
1407
+ if (v.contains(f))
1408
+ return v;
1376
1409
  return null;
1377
1410
  }
1378
- function u(f) {
1379
- const x = [];
1411
+ function d(f) {
1412
+ const y = [];
1380
1413
  return f.forEach((s) => {
1381
- const p = document.getElementById(s);
1382
- p && x.push(p);
1383
- }), x.sort((s, p) => s.contains(p) ? 1 : p.contains(s) ? -1 : 0), x;
1414
+ const v = document.getElementById(s);
1415
+ v && y.push(v);
1416
+ }), y.sort((s, v) => s.contains(v) ? 1 : v.contains(s) ? -1 : 0), y;
1384
1417
  }
1385
- function i(f, x, s, p) {
1386
- var C = {
1418
+ function i(f, y, s, v) {
1419
+ var k = {
1387
1420
  mouseup: "touchend",
1388
1421
  mousedown: "touchstart",
1389
1422
  mousemove: "touchmove"
1390
- }, A = {
1423
+ }, M = {
1391
1424
  mouseup: "pointerup",
1392
1425
  mousedown: "pointerdown",
1393
1426
  mousemove: "pointermove"
1394
- }, z = {
1427
+ }, W = {
1395
1428
  mouseup: "MSPointerUp",
1396
1429
  mousedown: "MSPointerDown",
1397
1430
  mousemove: "MSPointerMove"
1398
1431
  };
1399
- r.navigator.pointerEnabled ? m[x](f, A[s], p) : r.navigator.msPointerEnabled ? m[x](f, z[s], p) : (m[x](f, C[s], p), m[x](f, s, p));
1432
+ r.navigator.pointerEnabled ? x[y](f, M[s], v) : r.navigator.msPointerEnabled ? x[y](f, W[s], v) : (x[y](f, k[s], v), x[y](f, s, v));
1400
1433
  }
1401
1434
  function n(f) {
1402
1435
  if (f.touches !== void 0)
@@ -1405,39 +1438,39 @@ var gt = { exports: {} };
1405
1438
  return f.which;
1406
1439
  if (f.buttons !== void 0)
1407
1440
  return f.buttons;
1408
- var x = f.button;
1409
- if (x !== void 0)
1410
- return x & 1 ? 1 : x & 2 ? 3 : x & 4 ? 2 : 0;
1441
+ var y = f.button;
1442
+ if (y !== void 0)
1443
+ return y & 1 ? 1 : y & 2 ? 3 : y & 4 ? 2 : 0;
1411
1444
  }
1412
- function k(f, x, s) {
1445
+ function S(f, y, s) {
1413
1446
  f = f || {};
1414
- var p = f.className || "", C;
1415
- return f.className += " gu-hide", C = S.elementFromPoint(x, s), f.className = p, C;
1447
+ var v = f.className || "", k;
1448
+ return f.className += " gu-hide", k = E.elementFromPoint(y, s), f.className = v, k;
1416
1449
  }
1417
1450
  function B() {
1418
1451
  return !1;
1419
1452
  }
1420
- function M() {
1453
+ function G() {
1421
1454
  return !0;
1422
1455
  }
1423
1456
  function j(f) {
1424
1457
  return f.width || f.right - f.left;
1425
1458
  }
1426
- function w(f) {
1459
+ function D(f) {
1427
1460
  return f.height || f.bottom - f.top;
1428
1461
  }
1429
- function y(f) {
1430
- return f.parentNode === S ? null : f.parentNode;
1462
+ function b(f) {
1463
+ return f.parentNode === E ? null : f.parentNode;
1431
1464
  }
1432
- function _(f) {
1433
- return f.tagName === "INPUT" || f.tagName === "TEXTAREA" || f.tagName === "SELECT" || g(f);
1465
+ function O(f) {
1466
+ return f.tagName === "INPUT" || f.tagName === "TEXTAREA" || f.tagName === "SELECT" || p(f);
1434
1467
  }
1435
- function g(f) {
1436
- return !f || f.contentEditable === "false" ? !1 : f.contentEditable === "true" ? !0 : g(y(f));
1468
+ function p(f) {
1469
+ return !f || f.contentEditable === "false" ? !1 : f.contentEditable === "true" ? !0 : p(b(f));
1437
1470
  }
1438
1471
  function o(f) {
1439
- return f.nextElementSibling || x();
1440
- function x() {
1472
+ return f.nextElementSibling || y();
1473
+ function y() {
1441
1474
  var s = f;
1442
1475
  do
1443
1476
  s = s.nextSibling;
@@ -1445,260 +1478,260 @@ var gt = { exports: {} };
1445
1478
  return s;
1446
1479
  }
1447
1480
  }
1448
- function $(f) {
1481
+ function F(f) {
1449
1482
  return f.targetTouches && f.targetTouches.length ? f.targetTouches[0] : f.changedTouches && f.changedTouches.length ? f.changedTouches[0] : f;
1450
1483
  }
1451
- function T(f, x) {
1452
- var s = $(x), p = {
1484
+ function I(f, y) {
1485
+ var s = F(y), v = {
1453
1486
  pageX: "clientX",
1454
1487
  // IE8
1455
1488
  pageY: "clientY"
1456
1489
  // IE8
1457
1490
  };
1458
- return f in p && !(f in s) && p[f] in s && (f = p[f]), s[f];
1491
+ return f in v && !(f in s) && v[f] in s && (f = v[f]), s[f];
1459
1492
  }
1460
- h.exports = d;
1461
- }).call(this, typeof ve < "u" ? ve : typeof self < "u" ? self : typeof window < "u" ? window : {});
1493
+ h.exports = u;
1494
+ }).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
1462
1495
  }, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
1463
1496
  3: [function(t, h, c) {
1464
- h.exports = function(D, m) {
1465
- return Array.prototype.slice.call(D, m);
1497
+ h.exports = function(T, x) {
1498
+ return Array.prototype.slice.call(T, x);
1466
1499
  };
1467
1500
  }, {}],
1468
1501
  4: [function(t, h, c) {
1469
1502
  var r = t("ticky");
1470
- h.exports = function(m, v, S) {
1471
- m && r(function() {
1472
- m.apply(S || null, v || []);
1503
+ h.exports = function(x, g, E) {
1504
+ x && r(function() {
1505
+ x.apply(E || null, g || []);
1473
1506
  });
1474
1507
  };
1475
1508
  }, { ticky: 10 }],
1476
1509
  5: [function(t, h, c) {
1477
- var r = t("atoa"), D = t("./debounce");
1478
- h.exports = function(v, S) {
1479
- var P = S || {}, d = {};
1480
- return v === void 0 && (v = {}), v.on = function(l, u) {
1481
- return d[l] ? d[l].push(u) : d[l] = [u], v;
1482
- }, v.once = function(l, u) {
1483
- return u._once = !0, v.on(l, u), v;
1484
- }, v.off = function(l, u) {
1510
+ var r = t("atoa"), T = t("./debounce");
1511
+ h.exports = function(g, E) {
1512
+ var P = E || {}, u = {};
1513
+ return g === void 0 && (g = {}), g.on = function(l, d) {
1514
+ return u[l] ? u[l].push(d) : u[l] = [d], g;
1515
+ }, g.once = function(l, d) {
1516
+ return d._once = !0, g.on(l, d), g;
1517
+ }, g.off = function(l, d) {
1485
1518
  var i = arguments.length;
1486
1519
  if (i === 1)
1487
- delete d[l];
1520
+ delete u[l];
1488
1521
  else if (i === 0)
1489
- d = {};
1522
+ u = {};
1490
1523
  else {
1491
- var n = d[l];
1524
+ var n = u[l];
1492
1525
  if (!n)
1493
- return v;
1494
- n.splice(n.indexOf(u), 1);
1526
+ return g;
1527
+ n.splice(n.indexOf(d), 1);
1495
1528
  }
1496
- return v;
1497
- }, v.emit = function() {
1529
+ return g;
1530
+ }, g.emit = function() {
1498
1531
  var l = r(arguments);
1499
- return v.emitterSnapshot(l.shift()).apply(this, l);
1500
- }, v.emitterSnapshot = function(l) {
1501
- var u = (d[l] || []).slice(0);
1532
+ return g.emitterSnapshot(l.shift()).apply(this, l);
1533
+ }, g.emitterSnapshot = function(l) {
1534
+ var d = (u[l] || []).slice(0);
1502
1535
  return function() {
1503
- var i = r(arguments), n = this || v;
1504
- if (l === "error" && P.throws !== !1 && !u.length)
1536
+ var i = r(arguments), n = this || g;
1537
+ if (l === "error" && P.throws !== !1 && !d.length)
1505
1538
  throw i.length === 1 ? i[0] : i;
1506
- return u.forEach(function(B) {
1507
- P.async ? D(B, i, n) : B.apply(n, i), B._once && v.off(l, B);
1508
- }), v;
1539
+ return d.forEach(function(B) {
1540
+ P.async ? T(B, i, n) : B.apply(n, i), B._once && g.off(l, B);
1541
+ }), g;
1509
1542
  };
1510
- }, v;
1543
+ }, g;
1511
1544
  };
1512
1545
  }, { "./debounce": 4, atoa: 3 }],
1513
1546
  6: [function(t, h, c) {
1514
1547
  (function(r) {
1515
- var D = t("custom-event"), m = t("./eventmap"), v = r.document, S = l, P = i, d = [];
1516
- r.addEventListener || (S = u, P = n), h.exports = {
1517
- add: S,
1548
+ var T = t("custom-event"), x = t("./eventmap"), g = r.document, E = l, P = i, u = [];
1549
+ r.addEventListener || (E = d, P = n), h.exports = {
1550
+ add: E,
1518
1551
  remove: P,
1519
- fabricate: k
1552
+ fabricate: S
1520
1553
  };
1521
- function l(y, _, g, o) {
1522
- return y.addEventListener(_, g, o);
1554
+ function l(b, O, p, o) {
1555
+ return b.addEventListener(O, p, o);
1523
1556
  }
1524
- function u(y, _, g) {
1525
- return y.attachEvent("on" + _, M(y, _, g));
1557
+ function d(b, O, p) {
1558
+ return b.attachEvent("on" + O, G(b, O, p));
1526
1559
  }
1527
- function i(y, _, g, o) {
1528
- return y.removeEventListener(_, g, o);
1560
+ function i(b, O, p, o) {
1561
+ return b.removeEventListener(O, p, o);
1529
1562
  }
1530
- function n(y, _, g) {
1531
- var o = j(y, _, g);
1563
+ function n(b, O, p) {
1564
+ var o = j(b, O, p);
1532
1565
  if (o)
1533
- return y.detachEvent("on" + _, o);
1566
+ return b.detachEvent("on" + O, o);
1534
1567
  }
1535
- function k(y, _, g) {
1536
- var o = m.indexOf(_) === -1 ? T() : $();
1537
- y.dispatchEvent ? y.dispatchEvent(o) : y.fireEvent("on" + _, o);
1538
- function $() {
1568
+ function S(b, O, p) {
1569
+ var o = x.indexOf(O) === -1 ? I() : F();
1570
+ b.dispatchEvent ? b.dispatchEvent(o) : b.fireEvent("on" + O, o);
1571
+ function F() {
1539
1572
  var f;
1540
- return v.createEvent ? (f = v.createEvent("Event"), f.initEvent(_, !0, !0)) : v.createEventObject && (f = v.createEventObject()), f;
1573
+ return g.createEvent ? (f = g.createEvent("Event"), f.initEvent(O, !0, !0)) : g.createEventObject && (f = g.createEventObject()), f;
1541
1574
  }
1542
- function T() {
1543
- return new D(_, { detail: g });
1575
+ function I() {
1576
+ return new T(O, { detail: p });
1544
1577
  }
1545
1578
  }
1546
- function B(y, _, g) {
1547
- return function($) {
1548
- var T = $ || r.event;
1549
- T.target = T.target || T.srcElement, T.preventDefault = T.preventDefault || function() {
1550
- T.returnValue = !1;
1551
- }, T.stopPropagation = T.stopPropagation || function() {
1552
- T.cancelBubble = !0;
1553
- }, T.which = T.which || T.keyCode, g.call(y, T);
1579
+ function B(b, O, p) {
1580
+ return function(F) {
1581
+ var I = F || r.event;
1582
+ I.target = I.target || I.srcElement, I.preventDefault = I.preventDefault || function() {
1583
+ I.returnValue = !1;
1584
+ }, I.stopPropagation = I.stopPropagation || function() {
1585
+ I.cancelBubble = !0;
1586
+ }, I.which = I.which || I.keyCode, p.call(b, I);
1554
1587
  };
1555
1588
  }
1556
- function M(y, _, g) {
1557
- var o = j(y, _, g) || B(y, _, g);
1558
- return d.push({
1589
+ function G(b, O, p) {
1590
+ var o = j(b, O, p) || B(b, O, p);
1591
+ return u.push({
1559
1592
  wrapper: o,
1560
- element: y,
1561
- type: _,
1562
- fn: g
1593
+ element: b,
1594
+ type: O,
1595
+ fn: p
1563
1596
  }), o;
1564
1597
  }
1565
- function j(y, _, g) {
1566
- var o = w(y, _, g);
1598
+ function j(b, O, p) {
1599
+ var o = D(b, O, p);
1567
1600
  if (o) {
1568
- var $ = d[o].wrapper;
1569
- return d.splice(o, 1), $;
1601
+ var F = u[o].wrapper;
1602
+ return u.splice(o, 1), F;
1570
1603
  }
1571
1604
  }
1572
- function w(y, _, g) {
1573
- var o, $;
1574
- for (o = 0; o < d.length; o++)
1575
- if ($ = d[o], $.element === y && $.type === _ && $.fn === g)
1605
+ function D(b, O, p) {
1606
+ var o, F;
1607
+ for (o = 0; o < u.length; o++)
1608
+ if (F = u[o], F.element === b && F.type === O && F.fn === p)
1576
1609
  return o;
1577
1610
  }
1578
- }).call(this, typeof ve < "u" ? ve : typeof self < "u" ? self : typeof window < "u" ? window : {});
1611
+ }).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
1579
1612
  }, { "./eventmap": 7, "custom-event": 8 }],
1580
1613
  7: [function(t, h, c) {
1581
1614
  (function(r) {
1582
- var D = [], m = "", v = /^on/;
1583
- for (m in r)
1584
- v.test(m) && D.push(m.slice(2));
1585
- h.exports = D;
1586
- }).call(this, typeof ve < "u" ? ve : typeof self < "u" ? self : typeof window < "u" ? window : {});
1615
+ var T = [], x = "", g = /^on/;
1616
+ for (x in r)
1617
+ g.test(x) && T.push(x.slice(2));
1618
+ h.exports = T;
1619
+ }).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
1587
1620
  }, {}],
1588
1621
  8: [function(t, h, c) {
1589
1622
  (function(r) {
1590
- var D = r.CustomEvent;
1591
- function m() {
1623
+ var T = r.CustomEvent;
1624
+ function x() {
1592
1625
  try {
1593
- var v = new D("cat", { detail: { foo: "bar" } });
1594
- return v.type === "cat" && v.detail.foo === "bar";
1626
+ var g = new T("cat", { detail: { foo: "bar" } });
1627
+ return g.type === "cat" && g.detail.foo === "bar";
1595
1628
  } catch {
1596
1629
  }
1597
1630
  return !1;
1598
1631
  }
1599
- h.exports = m() ? D : (
1632
+ h.exports = x() ? T : (
1600
1633
  // IE >= 9
1601
- typeof document < "u" && typeof document.createEvent == "function" ? function(S, P) {
1602
- var d = document.createEvent("CustomEvent");
1603
- return P ? d.initCustomEvent(S, P.bubbles, P.cancelable, P.detail) : d.initCustomEvent(S, !1, !1, void 0), d;
1634
+ typeof document < "u" && typeof document.createEvent == "function" ? function(E, P) {
1635
+ var u = document.createEvent("CustomEvent");
1636
+ return P ? u.initCustomEvent(E, P.bubbles, P.cancelable, P.detail) : u.initCustomEvent(E, !1, !1, void 0), u;
1604
1637
  } : (
1605
1638
  // IE <= 8
1606
- function(S, P) {
1607
- var d = document.createEventObject();
1608
- return d.type = S, P ? (d.bubbles = !!P.bubbles, d.cancelable = !!P.cancelable, d.detail = P.detail) : (d.bubbles = !1, d.cancelable = !1, d.detail = void 0), d;
1639
+ function(E, P) {
1640
+ var u = document.createEventObject();
1641
+ return u.type = E, P ? (u.bubbles = !!P.bubbles, u.cancelable = !!P.cancelable, u.detail = P.detail) : (u.bubbles = !1, u.cancelable = !1, u.detail = void 0), u;
1609
1642
  }
1610
1643
  )
1611
1644
  );
1612
- }).call(this, typeof ve < "u" ? ve : typeof self < "u" ? self : typeof window < "u" ? window : {});
1645
+ }).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
1613
1646
  }, {}],
1614
1647
  9: [function(t, h, c) {
1615
- var r = h.exports = {}, D, m;
1616
- function v() {
1648
+ var r = h.exports = {}, T, x;
1649
+ function g() {
1617
1650
  throw new Error("setTimeout has not been defined");
1618
1651
  }
1619
- function S() {
1652
+ function E() {
1620
1653
  throw new Error("clearTimeout has not been defined");
1621
1654
  }
1622
1655
  (function() {
1623
1656
  try {
1624
- typeof setTimeout == "function" ? D = setTimeout : D = v;
1657
+ typeof setTimeout == "function" ? T = setTimeout : T = g;
1625
1658
  } catch {
1626
- D = v;
1659
+ T = g;
1627
1660
  }
1628
1661
  try {
1629
- typeof clearTimeout == "function" ? m = clearTimeout : m = S;
1662
+ typeof clearTimeout == "function" ? x = clearTimeout : x = E;
1630
1663
  } catch {
1631
- m = S;
1664
+ x = E;
1632
1665
  }
1633
1666
  })();
1634
- function P(w) {
1635
- if (D === setTimeout)
1636
- return setTimeout(w, 0);
1637
- if ((D === v || !D) && setTimeout)
1638
- return D = setTimeout, setTimeout(w, 0);
1667
+ function P(D) {
1668
+ if (T === setTimeout)
1669
+ return setTimeout(D, 0);
1670
+ if ((T === g || !T) && setTimeout)
1671
+ return T = setTimeout, setTimeout(D, 0);
1639
1672
  try {
1640
- return D(w, 0);
1673
+ return T(D, 0);
1641
1674
  } catch {
1642
1675
  try {
1643
- return D.call(null, w, 0);
1676
+ return T.call(null, D, 0);
1644
1677
  } catch {
1645
- return D.call(this, w, 0);
1678
+ return T.call(this, D, 0);
1646
1679
  }
1647
1680
  }
1648
1681
  }
1649
- function d(w) {
1650
- if (m === clearTimeout)
1651
- return clearTimeout(w);
1652
- if ((m === S || !m) && clearTimeout)
1653
- return m = clearTimeout, clearTimeout(w);
1682
+ function u(D) {
1683
+ if (x === clearTimeout)
1684
+ return clearTimeout(D);
1685
+ if ((x === E || !x) && clearTimeout)
1686
+ return x = clearTimeout, clearTimeout(D);
1654
1687
  try {
1655
- return m(w);
1688
+ return x(D);
1656
1689
  } catch {
1657
1690
  try {
1658
- return m.call(null, w);
1691
+ return x.call(null, D);
1659
1692
  } catch {
1660
- return m.call(this, w);
1693
+ return x.call(this, D);
1661
1694
  }
1662
1695
  }
1663
1696
  }
1664
- var l = [], u = !1, i, n = -1;
1665
- function k() {
1666
- !u || !i || (u = !1, i.length ? l = i.concat(l) : n = -1, l.length && B());
1697
+ var l = [], d = !1, i, n = -1;
1698
+ function S() {
1699
+ !d || !i || (d = !1, i.length ? l = i.concat(l) : n = -1, l.length && B());
1667
1700
  }
1668
1701
  function B() {
1669
- if (!u) {
1670
- var w = P(k);
1671
- u = !0;
1672
- for (var y = l.length; y; ) {
1673
- for (i = l, l = []; ++n < y; )
1702
+ if (!d) {
1703
+ var D = P(S);
1704
+ d = !0;
1705
+ for (var b = l.length; b; ) {
1706
+ for (i = l, l = []; ++n < b; )
1674
1707
  i && i[n].run();
1675
- n = -1, y = l.length;
1708
+ n = -1, b = l.length;
1676
1709
  }
1677
- i = null, u = !1, d(w);
1710
+ i = null, d = !1, u(D);
1678
1711
  }
1679
1712
  }
1680
- r.nextTick = function(w) {
1681
- var y = new Array(arguments.length - 1);
1713
+ r.nextTick = function(D) {
1714
+ var b = new Array(arguments.length - 1);
1682
1715
  if (arguments.length > 1)
1683
- for (var _ = 1; _ < arguments.length; _++)
1684
- y[_ - 1] = arguments[_];
1685
- l.push(new M(w, y)), l.length === 1 && !u && P(B);
1716
+ for (var O = 1; O < arguments.length; O++)
1717
+ b[O - 1] = arguments[O];
1718
+ l.push(new G(D, b)), l.length === 1 && !d && P(B);
1686
1719
  };
1687
- function M(w, y) {
1688
- this.fun = w, this.array = y;
1720
+ function G(D, b) {
1721
+ this.fun = D, this.array = b;
1689
1722
  }
1690
- M.prototype.run = function() {
1723
+ G.prototype.run = function() {
1691
1724
  this.fun.apply(null, this.array);
1692
1725
  }, r.title = "browser", r.browser = !0, r.env = {}, r.argv = [], r.version = "", r.versions = {};
1693
1726
  function j() {
1694
1727
  }
1695
- r.on = j, r.addListener = j, r.once = j, r.off = j, r.removeListener = j, r.removeAllListeners = j, r.emit = j, r.prependListener = j, r.prependOnceListener = j, r.listeners = function(w) {
1728
+ r.on = j, r.addListener = j, r.once = j, r.off = j, r.removeListener = j, r.removeAllListeners = j, r.emit = j, r.prependListener = j, r.prependOnceListener = j, r.listeners = function(D) {
1696
1729
  return [];
1697
- }, r.binding = function(w) {
1730
+ }, r.binding = function(D) {
1698
1731
  throw new Error("process.binding is not supported");
1699
1732
  }, r.cwd = function() {
1700
1733
  return "/";
1701
- }, r.chdir = function(w) {
1734
+ }, r.chdir = function(D) {
1702
1735
  throw new Error("process.chdir is not supported");
1703
1736
  }, r.umask = function() {
1704
1737
  return 0;
@@ -1706,274 +1739,281 @@ var gt = { exports: {} };
1706
1739
  }, {}],
1707
1740
  10: [function(t, h, c) {
1708
1741
  (function(r) {
1709
- var D = typeof r == "function", m;
1710
- D ? m = function(v) {
1711
- r(v);
1712
- } : m = function(v) {
1713
- setTimeout(v, 0);
1714
- }, h.exports = m;
1742
+ var T = typeof r == "function", x;
1743
+ T ? x = function(g) {
1744
+ r(g);
1745
+ } : x = function(g) {
1746
+ setTimeout(g, 0);
1747
+ }, h.exports = x;
1715
1748
  }).call(this, t("timers").setImmediate);
1716
1749
  }, { timers: 11 }],
1717
1750
  11: [function(t, h, c) {
1718
- (function(r, D) {
1719
- var m = t("process/browser.js").nextTick, v = Function.prototype.apply, S = Array.prototype.slice, P = {}, d = 0;
1751
+ (function(r, T) {
1752
+ var x = t("process/browser.js").nextTick, g = Function.prototype.apply, E = Array.prototype.slice, P = {}, u = 0;
1720
1753
  c.setTimeout = function() {
1721
- return new l(v.call(setTimeout, window, arguments), clearTimeout);
1754
+ return new l(g.call(setTimeout, window, arguments), clearTimeout);
1722
1755
  }, c.setInterval = function() {
1723
- return new l(v.call(setInterval, window, arguments), clearInterval);
1724
- }, c.clearTimeout = c.clearInterval = function(u) {
1725
- u.close();
1756
+ return new l(g.call(setInterval, window, arguments), clearInterval);
1757
+ }, c.clearTimeout = c.clearInterval = function(d) {
1758
+ d.close();
1726
1759
  };
1727
- function l(u, i) {
1728
- this._id = u, this._clearFn = i;
1760
+ function l(d, i) {
1761
+ this._id = d, this._clearFn = i;
1729
1762
  }
1730
1763
  l.prototype.unref = l.prototype.ref = function() {
1731
1764
  }, l.prototype.close = function() {
1732
1765
  this._clearFn.call(window, this._id);
1733
- }, c.enroll = function(u, i) {
1734
- clearTimeout(u._idleTimeoutId), u._idleTimeout = i;
1735
- }, c.unenroll = function(u) {
1736
- clearTimeout(u._idleTimeoutId), u._idleTimeout = -1;
1737
- }, c._unrefActive = c.active = function(u) {
1738
- clearTimeout(u._idleTimeoutId);
1739
- var i = u._idleTimeout;
1740
- i >= 0 && (u._idleTimeoutId = setTimeout(function() {
1741
- u._onTimeout && u._onTimeout();
1766
+ }, c.enroll = function(d, i) {
1767
+ clearTimeout(d._idleTimeoutId), d._idleTimeout = i;
1768
+ }, c.unenroll = function(d) {
1769
+ clearTimeout(d._idleTimeoutId), d._idleTimeout = -1;
1770
+ }, c._unrefActive = c.active = function(d) {
1771
+ clearTimeout(d._idleTimeoutId);
1772
+ var i = d._idleTimeout;
1773
+ i >= 0 && (d._idleTimeoutId = setTimeout(function() {
1774
+ d._onTimeout && d._onTimeout();
1742
1775
  }, i));
1743
- }, c.setImmediate = typeof r == "function" ? r : function(u) {
1744
- var i = d++, n = arguments.length < 2 ? !1 : S.call(arguments, 1);
1745
- return P[i] = !0, m(function() {
1746
- P[i] && (n ? u.apply(null, n) : u.call(null), c.clearImmediate(i));
1776
+ }, c.setImmediate = typeof r == "function" ? r : function(d) {
1777
+ var i = u++, n = arguments.length < 2 ? !1 : E.call(arguments, 1);
1778
+ return P[i] = !0, x(function() {
1779
+ P[i] && (n ? d.apply(null, n) : d.call(null), c.clearImmediate(i));
1747
1780
  }), i;
1748
- }, c.clearImmediate = typeof D == "function" ? D : function(u) {
1749
- delete P[u];
1781
+ }, c.clearImmediate = typeof T == "function" ? T : function(d) {
1782
+ delete P[d];
1750
1783
  };
1751
1784
  }).call(this, t("timers").setImmediate, t("timers").clearImmediate);
1752
1785
  }, { "process/browser.js": 9, timers: 11 }]
1753
1786
  }, {}, [2])(2);
1754
1787
  });
1755
- })(gt);
1756
- var kn = gt.exports;
1757
- const ot = /* @__PURE__ */ Sn(kn);
1758
- function Pn(e) {
1759
- let b;
1760
- function t(c, r, D, m) {
1761
- const v = e.schema;
1762
- if (!(v != null && v.buttons))
1788
+ })(bt);
1789
+ var En = bt.exports;
1790
+ const rt = /* @__PURE__ */ Pn(En);
1791
+ function Mn(e) {
1792
+ let m;
1793
+ function t(c, r, T, x) {
1794
+ const g = e.schema;
1795
+ if (!(g != null && g.buttons))
1763
1796
  return;
1764
- let S;
1765
- if (D) {
1766
- const u = D.getAttribute("id");
1767
- S = Array.from(r.children).findIndex((i) => i.getAttribute("id") === u);
1797
+ let E;
1798
+ if (T) {
1799
+ const d = T.getAttribute("id");
1800
+ E = Array.from(r.children).findIndex((i) => i.getAttribute("id") === d);
1768
1801
  } else
1769
- S = Array.from(r.children).length;
1770
- const P = c.getAttribute("id"), d = Array.from(r.children).findIndex((u) => u.getAttribute("id") === P), l = v.buttons[d];
1771
- d !== S && d > -1 && S > -1 && (d < S && (S = S - 1), v.buttons.splice(d, 1), v.buttons.splice(S, 0, l), m(), Ce(() => {
1772
- const u = r.querySelector(".dgComponentSelected");
1773
- u != null && u.className.includes("dgComponentSelected") && (u.classList.remove("dgComponentSelected"), u.classList.remove("dgComponentFocused"), u.click()), Ne.value++;
1802
+ E = Array.from(r.children).length;
1803
+ const P = c.getAttribute("id"), u = Array.from(r.children).findIndex((d) => d.getAttribute("id") === P), l = g.buttons[u];
1804
+ u !== E && u > -1 && E > -1 && (u < E && (E = E - 1), g.buttons.splice(u, 1), g.buttons.splice(E, 0, l), x(), Te(() => {
1805
+ const d = r.querySelector(".dgComponentSelected");
1806
+ d != null && d.className.includes("dgComponentSelected") && (d.classList.remove("dgComponentSelected"), d.classList.remove("dgComponentFocused"), d.click()), Fe.value++;
1774
1807
  }));
1775
1808
  }
1776
- function h(c, r, D) {
1777
- b && b.destroy(), !(!ot || !c || !r) && (b = ot([c], {
1809
+ function h(c, r, T) {
1810
+ m && m.destroy(), !(!rt || !c || !r) && (m = rt([c], {
1778
1811
  mirrorContainer: r,
1779
1812
  direction: "horizontal",
1780
- getMirrorText(m) {
1781
- return m.innerText;
1813
+ getMirrorText(x) {
1814
+ return x.innerText;
1782
1815
  },
1783
1816
  // 判断是否可移动
1784
- moves(m, v, S) {
1817
+ moves(x, g, E) {
1785
1818
  let P = !0;
1786
- return S.classList.contains("dropdown-item") ? (P = !1, P) : (m.classList.contains("no-drag") && (P = !1), P);
1819
+ return E.classList.contains("dropdown-item") ? (P = !1, P) : (x.classList.contains("no-drag") && (P = !1), P);
1787
1820
  }
1788
- }).on("drop", (m, v, S, P) => t(m, v, P, D)));
1821
+ }).on("drop", (x, g, E, P) => t(x, g, P, T)));
1789
1822
  }
1790
1823
  return {
1791
- dragulaInstance: b,
1824
+ dragulaInstance: m,
1792
1825
  initDragula: h
1793
1826
  };
1794
1827
  }
1795
- function En(e, b, t) {
1828
+ function Rn(e, m, t) {
1796
1829
  const {
1797
1830
  renderToolbarItemDesigner: h,
1798
1831
  actionHandlers: c
1799
1832
  } = t;
1800
1833
  let r;
1801
- function D(M) {
1802
- r = M;
1803
- }
1804
- function m(M, j = null) {
1805
- const w = b.value.find((y) => y.id === M.id);
1806
- if (w.isDP)
1807
- if (document.body.click(), typeof j == "boolean")
1808
- w.expanded = j;
1834
+ function T(j) {
1835
+ r = j;
1836
+ }
1837
+ function x(j, D = null) {
1838
+ const b = m.value.find((O) => O.id === j.id);
1839
+ if (b.isDP)
1840
+ if (document.body.click(), typeof D == "boolean")
1841
+ b.expanded = D;
1809
1842
  else {
1810
- const y = M.expanded;
1811
- w.expanded = !y;
1843
+ const O = j.expanded;
1844
+ b.expanded = !O;
1812
1845
  }
1813
1846
  }
1814
- c.toggleDropdownMenu = m;
1815
- function v(M) {
1816
- var w;
1817
- const j = {
1847
+ c.toggleDropdownMenu = x;
1848
+ function g(j) {
1849
+ var b;
1850
+ const D = {
1818
1851
  "dropdown-menu": !0
1819
1852
  };
1820
- if (M.class) {
1821
- const y = (w = M.menuClass) == null ? void 0 : w.split(" ");
1822
- y && y.length && y.reduce((_, g) => (_[g] = !0, _), j);
1853
+ if (j.class) {
1854
+ const O = (b = j.menuClass) == null ? void 0 : b.split(" ");
1855
+ O && O.length && O.reduce((p, o) => (p[o] = !0, p), D);
1823
1856
  }
1824
- return j;
1857
+ return D;
1825
1858
  }
1826
- function S(M) {
1827
- var y;
1828
- const j = {
1829
- disabled: M.disabled === !1,
1859
+ function E(j) {
1860
+ var O;
1861
+ const D = {
1862
+ disabled: j.disabled === !1,
1830
1863
  "dropdown-submenu": !0,
1831
1864
  "f-rt-dropdown": !0,
1832
1865
  "text-truncate": !0
1833
- }, w = (y = M.dropdownClass) == null ? void 0 : y.split(" ");
1834
- return w && w.length && w.reduce((_, g) => (_[g] = !0, _), j), j;
1866
+ }, b = (O = j.dropdownClass) == null ? void 0 : O.split(" ");
1867
+ return b && b.length && b.reduce((p, o) => (p[o] = !0, p), D), D;
1835
1868
  }
1836
- function P(M) {
1837
- const j = {
1869
+ function P(j) {
1870
+ const D = {
1838
1871
  disabled: !1,
1839
1872
  "dropdown-item": !0,
1840
1873
  "f-rt-btn": !0,
1841
1874
  "position-relative": !0,
1842
1875
  "farris-component": !0,
1843
1876
  "text-truncate": !0
1844
- }, w = (M.class || "").split(" ");
1845
- return w && w.length && w.reduce((y, _) => (y[_] = !0, y), j), j;
1877
+ }, b = (j.class || "").split(" ");
1878
+ return b && b.length && b.reduce((O, p) => (O[p] = !0, O), D), D;
1846
1879
  }
1847
- let d;
1880
+ let u;
1848
1881
  const l = /* @__PURE__ */ new Map();
1849
- function u(M, j, w) {
1850
- M.stopPropagation();
1851
- const y = w ? w.id : "__top_item__";
1852
- if (j.children && j.children.length && (j.expanded = !j.expanded, j.expanded)) {
1853
- if (l.has(y) && l.get(y) !== j) {
1854
- const _ = l.get(y);
1855
- _ && (_.expanded = !1, l.delete(y));
1882
+ function d(j, D, b) {
1883
+ j.stopPropagation();
1884
+ const O = b ? b.id : "__top_item__";
1885
+ if (D.children && D.children.length && (D.expanded = !D.expanded, D.expanded)) {
1886
+ if (l.has(O) && l.get(O) !== D) {
1887
+ const p = l.get(O);
1888
+ p && (p.expanded = !1, l.delete(O));
1856
1889
  }
1857
- l.set(y, j);
1890
+ l.set(O, D);
1858
1891
  }
1859
1892
  }
1860
- function i(M) {
1861
- var j;
1862
- return (j = M.children) == null ? void 0 : j.map((w, y) => w.children && w.children.length ? N("li", {
1863
- class: S(w),
1864
- id: w.id
1865
- }, [N("span", {
1866
- class: P(w),
1867
- onClick: (_) => u(_, w, M)
1868
- }, [w.text, N("i", {
1893
+ function i(j) {
1894
+ var D;
1895
+ return (D = j.children) == null ? void 0 : D.map((b, O) => b.children && b.children.length ? L("li", {
1896
+ class: E(b),
1897
+ id: b.id
1898
+ }, [L("span", {
1899
+ class: P(b),
1900
+ onClick: (p) => d(p, b, j)
1901
+ }, [b.text, L("i", {
1869
1902
  class: "f-icon f-icon-arrow-chevron-right",
1870
1903
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1871
- }, null)]), d(w, w)]) : h(w, y, !0));
1904
+ }, null)]), u(b, b)]) : h(b, O, !0));
1872
1905
  }
1873
- function n(M, j, w, y) {
1906
+ function n(j) {
1907
+ return j === "page-header" || j === "drawer-header-toolbar";
1908
+ }
1909
+ function S(j, D, b, O) {
1874
1910
  const {
1875
- height: o,
1876
- left: $,
1877
- top: T
1878
- } = y[0], {
1879
- width: f,
1880
- height: x
1881
- } = w.getBoundingClientRect(), {
1882
- marginTop: s,
1883
- marginBottom: p
1884
- } = getComputedStyle(w), C = Math.ceil(parseFloat(s)) + Math.ceil(parseFloat(p)), A = T + o, z = j == null ? void 0 : j.getBoundingClientRect();
1885
- function H() {
1886
- let Q = 0, V = "left";
1887
- const Z = z ? z.right : window.innerWidth, W = z ? z.left : 0;
1888
- return Q = Z - $ - 10, Z - $ < f && $ - W > Z - $ && (V = "right", Q = $ - W - 10), {
1889
- hposition: V,
1890
- maxWidth: Math.min(Q, 300)
1911
+ height: F,
1912
+ left: I,
1913
+ top: f
1914
+ } = O[0], {
1915
+ width: y,
1916
+ height: s
1917
+ } = b.getBoundingClientRect(), {
1918
+ marginTop: v,
1919
+ marginBottom: k
1920
+ } = getComputedStyle(b), M = Math.ceil(parseFloat(v)) + Math.ceil(parseFloat(k)), W = f + F, Y = D == null ? void 0 : D.getBoundingClientRect();
1921
+ function X() {
1922
+ let U = 0, H = "left";
1923
+ const q = Y ? Y.right : window.innerWidth, te = Y ? Y.left : 0;
1924
+ return U = q - I - 10, q - I < y && I - te > q - I && (H = "right", U = I - te - 10), {
1925
+ hposition: H,
1926
+ maxWidth: Math.min(U, 300)
1891
1927
  };
1892
1928
  }
1893
- let Y = 0, L = "bottom";
1894
- if (M === "tabs" || M === "section")
1895
- Y = j.getBoundingClientRect().bottom - A - C - 10;
1929
+ let $ = 0, N = "bottom";
1930
+ if (j === "tabs" || j === "section")
1931
+ $ = D.getBoundingClientRect().bottom - W - M - 10;
1896
1932
  else {
1897
- const Q = z ? z.bottom : window.innerHeight;
1898
- Y = M === "page-header" ? Q - A : T, Y = Y - C - 10, L = M === "page-header" ? "bottom" : "top";
1933
+ const U = Y ? Y.bottom : window.innerHeight;
1934
+ $ = n(j) ? U - W : f, $ = $ - M - 10, N = n(j) ? "bottom" : "top";
1899
1935
  }
1900
- const F = H();
1936
+ const V = X();
1901
1937
  return {
1902
- position: L + "-" + F.hposition,
1903
- maxWidth: F.maxWidth,
1904
- maxHeight: Y
1938
+ position: N + "-" + V.hposition,
1939
+ maxWidth: V.maxWidth,
1940
+ maxHeight: $
1905
1941
  };
1906
1942
  }
1907
- function k(M) {
1908
- var g, o, $;
1909
- const j = "300px", w = {
1910
- display: M.expanded === !0 ? "block" : "none",
1943
+ function B(j) {
1944
+ var o, F, I, f;
1945
+ const D = "300px", b = {
1946
+ display: j.expanded === !0 ? "block" : "none",
1911
1947
  position: "absolute",
1912
- maxWidth: j,
1948
+ maxWidth: D,
1913
1949
  minWidth: "120px"
1914
1950
  };
1915
1951
  if (!(r != null && r.value))
1916
- return w;
1917
- const y = r.value.querySelector("#" + M.id), _ = y == null ? void 0 : y.getClientRects();
1918
- if (y && _ && _.length > 0) {
1919
- const T = y ? y.querySelector("#" + M.id + "_menu") : null;
1920
- if (!T || M.expanded !== !0)
1921
- return w;
1922
- T.style.visibility = "hidden", T.style.display = "block", T.style.maxHeight = "auto", T.style.maxWidth = j;
1923
- let f;
1952
+ return b;
1953
+ const O = r.value.querySelector("#" + j.id), p = O == null ? void 0 : O.getClientRects();
1954
+ if (O && p && p.length > 0) {
1955
+ const y = O ? O.querySelector("#" + j.id + "_menu") : null;
1956
+ if (!y || j.expanded !== !0)
1957
+ return b;
1958
+ y.style.visibility = "hidden", y.style.display = "block", y.style.maxHeight = "auto", y.style.maxWidth = D;
1959
+ let s;
1924
1960
  switch (c.toolbarPosition) {
1925
1961
  case "tabs":
1926
- f = (g = r.value) == null ? void 0 : g.closest(".farris-tabs");
1962
+ s = (o = r.value) == null ? void 0 : o.closest(".farris-tabs");
1927
1963
  break;
1928
1964
  case "section":
1929
- f = (o = r.value) == null ? void 0 : o.closest(".f-section");
1965
+ s = (F = r.value) == null ? void 0 : F.closest(".f-section");
1966
+ break;
1967
+ case "drawer-header-toolbar":
1968
+ case "drawer-footer-toolbar":
1969
+ s = (I = r.value) == null ? void 0 : I.closest(".f-drawer-container");
1930
1970
  break;
1931
1971
  default:
1932
- f = ($ = r.value) == null ? void 0 : $.closest(".f-page");
1972
+ s = (f = r.value) == null ? void 0 : f.closest(".f-page");
1933
1973
  }
1934
- const x = n(c.toolbarPosition, f, T, _), {
1935
- position: s,
1936
- maxHeight: p,
1937
- maxWidth: C
1938
- } = x;
1939
- T.style.visibility = "visible";
1940
- const A = {
1941
- left: s.indexOf("left") > -1 ? 0 : "unset",
1942
- right: s.indexOf("left") > -1 ? "unset" : 0,
1943
- bottom: s.indexOf("bottom") > -1 ? "unset" : "100%",
1944
- top: s.indexOf("bottom") > -1 ? "!00%" : "unset",
1945
- maxWidth: C ? C + "px" : "300px",
1946
- maxHeight: p ? p + "px" : "auto",
1947
- overflowY: p ? "auto" : "unset"
1974
+ const v = S(c.toolbarPosition, s, y, p), {
1975
+ position: k,
1976
+ maxHeight: M,
1977
+ maxWidth: W
1978
+ } = v;
1979
+ y.style.visibility = "visible";
1980
+ const Y = {
1981
+ left: k.indexOf("left") > -1 ? 0 : "unset",
1982
+ right: k.indexOf("left") > -1 ? "unset" : 0,
1983
+ bottom: k.indexOf("bottom") > -1 ? "unset" : "100%",
1984
+ top: k.indexOf("bottom") > -1 ? "!00%" : "unset",
1985
+ maxWidth: W ? W + "px" : "300px",
1986
+ maxHeight: M ? M + "px" : "auto",
1987
+ overflowY: M ? "auto" : "unset"
1948
1988
  };
1949
- Object.assign(w, A);
1989
+ Object.assign(b, Y);
1950
1990
  }
1951
- return w;
1952
- }
1953
- c.changeMenuPosition = k, d = function(M, j) {
1954
- return N("ul", {
1955
- class: v(M),
1956
- style: k(M),
1957
- id: M.id + "_menu"
1958
- }, [i(M)]);
1991
+ return b;
1992
+ }
1993
+ c.changeMenuPosition = B, u = function(j, D) {
1994
+ return L("ul", {
1995
+ class: g(j),
1996
+ style: B(j),
1997
+ id: j.id + "_menu"
1998
+ }, [i(j)]);
1959
1999
  };
1960
- function B(M = "") {
1961
- M && l.has(M) ? l.forEach((j, w) => {
1962
- w !== M && (j.expanded = !1, l.delete(w));
1963
- }) : (l.forEach((j) => {
1964
- j.expanded = !1;
2000
+ function G(j = "") {
2001
+ j && l.has(j) ? l.forEach((D, b) => {
2002
+ b !== j && (D.expanded = !1, l.delete(b));
2003
+ }) : (l.forEach((D) => {
2004
+ D.expanded = !1;
1965
2005
  }), l.clear());
1966
2006
  }
1967
2007
  return {
1968
- renderDropdownMenu: d,
1969
- clearAllDropDownMenu: B,
1970
- setResponseToolbarRef: D
2008
+ renderDropdownMenu: u,
2009
+ clearAllDropDownMenu: G,
2010
+ setResponseToolbarRef: T
1971
2011
  };
1972
2012
  }
1973
- class Mn extends ut {
2013
+ class On extends dt {
1974
2014
  constructor(t, h, c = "response-toolbar-item") {
1975
2015
  super(t, h);
1976
- ee(this, "toolbarType", "response-toolbar-item");
2016
+ J(this, "toolbarType", "response-toolbar-item");
1977
2017
  this.toolbarType = c;
1978
2018
  }
1979
2019
  /**
@@ -2059,133 +2099,133 @@ class Mn extends ut {
2059
2099
  label: "onClick",
2060
2100
  name: "点击事件"
2061
2101
  }
2062
- ], c = this, r = c.eventsEditorUtils.formProperties(t, c.viewModelId, h), D = c.createBaseEventProperty(r);
2102
+ ], c = this, r = c.eventsEditorUtils.formProperties(t, c.viewModelId, h), T = c.createBaseEventProperty(r);
2063
2103
  this.propertyConfig.categories.eventsEditor = {
2064
2104
  title: "事件",
2065
2105
  hideTitle: !0,
2066
- properties: D,
2106
+ properties: T,
2067
2107
  // 这个属性,标记当属性变更得时候触发重新更新属性
2068
2108
  refreshPanelAfterChanged: !0,
2069
2109
  tabId: "commands",
2070
2110
  tabName: "交互",
2071
- setPropertyRelates(m, v) {
2072
- const S = m.propertyValue;
2073
- delete t[c.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, c.eventsEditorUtils.saveRelatedParameters(t, c.viewModelId, S.events, S));
2111
+ setPropertyRelates(x, g) {
2112
+ const E = x.propertyValue;
2113
+ delete t[c.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, c.eventsEditorUtils.saveRelatedParameters(t, c.viewModelId, E.events, E));
2074
2114
  }
2075
2115
  };
2076
2116
  }
2077
2117
  }
2078
- function Fe(e, b) {
2118
+ function We(e, m) {
2079
2119
  if (!e)
2080
2120
  return !1;
2081
- const t = b || [];
2121
+ const t = m || [];
2082
2122
  return (t == null ? void 0 : t.findIndex((c) => c.id === e)) === -1;
2083
2123
  }
2084
- function rt(e, b) {
2085
- const t = b || [];
2124
+ function it(e, m) {
2125
+ const t = m || [];
2086
2126
  let h = { parentIndex: -1, itemIndex: -1 };
2087
2127
  return t.some((c, r) => {
2088
2128
  if (c.children && c.children.length > 0) {
2089
- const D = c.children.findIndex((m) => m.id === e);
2090
- return D > -1 ? (h = { parentIndex: r, itemIndex: D }, !0) : !1;
2129
+ const T = c.children.findIndex((x) => x.id === e);
2130
+ return T > -1 ? (h = { parentIndex: r, itemIndex: T }, !0) : !1;
2091
2131
  }
2092
2132
  }), h;
2093
2133
  }
2094
- function it(e, b) {
2095
- const t = b || [];
2134
+ function st(e, m) {
2135
+ const t = m || [];
2096
2136
  let h = { parentIndex: -1, itemIndex: -1 };
2097
2137
  const c = t == null ? void 0 : t.findIndex((r) => r.id === e);
2098
- return c > -1 ? { parent: null, item: t[c] } : (t.some((r, D) => {
2138
+ return c > -1 ? { parent: null, item: t[c] } : (t.some((r, T) => {
2099
2139
  if (r.children && r.children.length > 0) {
2100
- const m = r.children.findIndex((v) => v.id === e);
2101
- return m > -1 ? (h = { parentIndex: D, itemIndex: m }, !0) : !1;
2140
+ const x = r.children.findIndex((g) => g.id === e);
2141
+ return x > -1 ? (h = { parentIndex: T, itemIndex: x }, !0) : !1;
2102
2142
  }
2103
2143
  }), h.parentIndex < 0 ? { parent: null, item: null } : { parent: t[h.parentIndex], item: t[h.parentIndex].children[h.itemIndex] });
2104
2144
  }
2105
- function Rn(e, b) {
2106
- const t = b || [], h = t == null ? void 0 : t.findIndex((c) => c.id === e);
2145
+ function Bn(e, m) {
2146
+ const t = m || [], h = t == null ? void 0 : t.findIndex((c) => c.id === e);
2107
2147
  return h > -1 && t[h].children && t[h].children.length > 0 ? t[h].expanded === !0 : !1;
2108
2148
  }
2109
- function Bn(e, b) {
2149
+ function jn(e, m) {
2110
2150
  let t;
2111
- function h(d) {
2112
- const { properties: l, title: u, ignore: i } = d, n = i && Array.isArray(i), k = Object.keys(l).reduce((B, M) => ((!n || !i.find((j) => j === M)) && (B[M] = l[M].type === "object" && l[M].properties ? h(l[M]) : xe(l[M].default)), B), {});
2113
- if (u && (!n || !i.find((B) => B === "id"))) {
2114
- const B = u.toLowerCase().replace(/-/g, "_");
2115
- k.id = `${B}_${Math.random().toString().slice(2, 6)}`;
2151
+ function h(u) {
2152
+ const { properties: l, title: d, ignore: i } = u, n = i && Array.isArray(i), S = Object.keys(l).reduce((B, G) => ((!n || !i.find((j) => j === G)) && (B[G] = l[G].type === "object" && l[G].properties ? h(l[G]) : Ce(l[G].default)), B), {});
2153
+ if (d && (!n || !i.find((B) => B === "id"))) {
2154
+ const B = d.toLowerCase().replace(/-/g, "_");
2155
+ S.id = `${B}_${Math.random().toString().slice(2, 6)}`;
2116
2156
  }
2117
- return k;
2157
+ return S;
2118
2158
  }
2119
- function c(d) {
2120
- const { properties: l, title: u, required: i } = d;
2159
+ function c(u) {
2160
+ const { properties: l, title: d, required: i } = u;
2121
2161
  if (i && Array.isArray(i)) {
2122
- const n = i.reduce((k, B) => (k[B] = l[B].type === "object" && l[B].properties ? h(l[B]) : xe(l[B].default), k), {});
2123
- if (u && i.find((k) => k === "id")) {
2124
- const k = u.toLowerCase().replace(/-/g, "_");
2125
- n.id = `${k}_${Math.random().toString().slice(2, 6)}`;
2162
+ const n = i.reduce((S, B) => (S[B] = l[B].type === "object" && l[B].properties ? h(l[B]) : Ce(l[B].default), S), {});
2163
+ if (d && i.find((S) => S === "id")) {
2164
+ const S = d.toLowerCase().replace(/-/g, "_");
2165
+ n.id = `${S}_${Math.random().toString().slice(2, 6)}`;
2126
2166
  }
2127
2167
  return n;
2128
2168
  }
2129
2169
  return {
2130
- type: u
2170
+ type: d
2131
2171
  };
2132
2172
  }
2133
- function r(d, l = {}, u) {
2134
- const i = e[d];
2173
+ function r(u, l = {}, d) {
2174
+ const i = e[u];
2135
2175
  if (i) {
2136
2176
  let n = c(i);
2137
- const k = b[d];
2138
- return n = k ? k({ getSchemaByType: r }, n, l, u) : n, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(n), n;
2177
+ const S = m[u];
2178
+ return n = S ? S({ getSchemaByType: r }, n, l, d) : n, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(n), n;
2139
2179
  }
2140
2180
  return null;
2141
2181
  }
2142
- function D(d, l) {
2143
- const u = h(l);
2144
- return Object.keys(u).reduce((i, n) => (Object.prototype.hasOwnProperty.call(d, n) && (i[n] && tt(i[n]) && tt(d[n] || !d[n]) ? Object.assign(i[n], d[n] || {}) : i[n] = d[n]), i), u), u;
2182
+ function T(u, l) {
2183
+ const d = h(l);
2184
+ return Object.keys(d).reduce((i, n) => (Object.prototype.hasOwnProperty.call(u, n) && (i[n] && nt(i[n]) && nt(u[n] || !u[n]) ? Object.assign(i[n], u[n] || {}) : i[n] = u[n]), i), d), d;
2145
2185
  }
2146
- function m(d, l) {
2147
- return Object.keys(d).filter((i) => d[i] != null).reduce((i, n) => {
2186
+ function x(u, l) {
2187
+ return Object.keys(u).filter((i) => u[i] != null).reduce((i, n) => {
2148
2188
  if (l.has(n)) {
2149
- const k = l.get(n);
2150
- if (typeof k == "string")
2151
- i[k] = d[n];
2189
+ const S = l.get(n);
2190
+ if (typeof S == "string")
2191
+ i[S] = u[n];
2152
2192
  else {
2153
- const B = k(n, d[n], d);
2193
+ const B = S(n, u[n], u);
2154
2194
  Object.assign(i, B);
2155
2195
  }
2156
2196
  } else
2157
- i[n] = d[n];
2197
+ i[n] = u[n];
2158
2198
  return i;
2159
2199
  }, {});
2160
2200
  }
2161
- function v(d, l, u = /* @__PURE__ */ new Map()) {
2162
- const i = D(d, l);
2163
- return m(i, u);
2201
+ function g(u, l, d = /* @__PURE__ */ new Map()) {
2202
+ const i = T(u, l);
2203
+ return x(i, d);
2164
2204
  }
2165
- function S(d) {
2166
- var u;
2167
- const l = d.type;
2205
+ function E(u) {
2206
+ var d;
2207
+ const l = u.type;
2168
2208
  if (l) {
2169
2209
  const i = e[l];
2170
2210
  if (!i)
2171
- return d;
2172
- const n = D(d, i), k = ((u = d.editor) == null ? void 0 : u.type) || "";
2173
- if (k) {
2174
- const B = e[k], M = D(d.editor, B);
2175
- n.editor = M;
2211
+ return u;
2212
+ const n = T(u, i), S = ((d = u.editor) == null ? void 0 : d.type) || "";
2213
+ if (S) {
2214
+ const B = e[S], G = T(u.editor, B);
2215
+ n.editor = G;
2176
2216
  }
2177
2217
  return n;
2178
2218
  }
2179
- return d;
2219
+ return u;
2180
2220
  }
2181
- function P(d) {
2182
- t = d;
2221
+ function P(u) {
2222
+ t = u;
2183
2223
  }
2184
- return { getSchemaByType: r, resolveSchemaWithDefaultValue: S, resolveSchemaToProps: v, mappingSchemaToProps: m, setDesignerContext: P };
2224
+ return { getSchemaByType: r, resolveSchemaWithDefaultValue: E, resolveSchemaToProps: g, mappingSchemaToProps: x, setDesignerContext: P };
2185
2225
  }
2186
- const On = {}, jn = {}, { getSchemaByType: An } = Bn(On, jn);
2187
- function _n(e, b, t) {
2188
- function h(x) {
2226
+ const An = {}, _n = {}, { getSchemaByType: $n } = jn(An, _n);
2227
+ function Ln(e, m, t) {
2228
+ function h(y) {
2189
2229
  return !1;
2190
2230
  }
2191
2231
  function c() {
@@ -2194,160 +2234,160 @@ function _n(e, b, t) {
2194
2234
  function r() {
2195
2235
  return !1;
2196
2236
  }
2197
- function D() {
2237
+ function T() {
2198
2238
  return !1;
2199
2239
  }
2200
- function m() {
2240
+ function x() {
2201
2241
  return t.toolbarContext.schema.buttons || [];
2202
2242
  }
2203
- function v(x, s = "") {
2243
+ function g(y, s = "") {
2204
2244
  setTimeout(() => {
2205
- var z, H;
2206
- const p = (z = e.parent) == null ? void 0 : z.designerItemElementRef.value;
2207
- let C;
2208
- s && (C = p == null ? void 0 : p.querySelector("#" + s));
2209
- const A = (H = C || p) == null ? void 0 : H.querySelector("#" + x);
2210
- A == null || A.click();
2245
+ var W, Y;
2246
+ const v = (W = e.parent) == null ? void 0 : W.designerItemElementRef.value;
2247
+ let k;
2248
+ s && (k = v == null ? void 0 : v.querySelector("#" + s));
2249
+ const M = (Y = k || v) == null ? void 0 : Y.querySelector("#" + y);
2250
+ M == null || M.click();
2211
2251
  }, 0);
2212
2252
  }
2213
- function S(x, s) {
2253
+ function E(y, s) {
2214
2254
  s.disabled && s.disabled.expressionId && (s.disabled.expressionId = `${s.id}_disabled`), s.visible && s.visible.expressionId && (s.visible.expressionId = `${s.id}_visible`);
2215
- const p = b.formSchemaUtils.getExpressions(), C = p.find((z) => z.target === x.id);
2216
- if (!C || !C.rules || !C.rules.length)
2255
+ const v = m.formSchemaUtils.getExpressions(), k = v.find((W) => W.target === y.id);
2256
+ if (!k || !k.rules || !k.rules.length)
2217
2257
  return;
2218
- const A = {
2258
+ const M = {
2219
2259
  target: s.id,
2220
2260
  rules: [],
2221
2261
  targetType: "Button"
2222
2262
  };
2223
- C.rules.forEach((z) => {
2224
- const H = Object.assign(xe(z), {
2225
- id: `${s.id}_${z.type}`
2263
+ k.rules.forEach((W) => {
2264
+ const Y = Object.assign(Ce(W), {
2265
+ id: `${s.id}_${W.type}`
2226
2266
  });
2227
- A.rules.push(H);
2228
- }), p.push(A);
2267
+ M.rules.push(Y);
2268
+ }), v.push(M);
2229
2269
  }
2230
2270
  function P() {
2231
- var C;
2232
- const x = e.schema, s = Object.assign(
2233
- xe(x),
2271
+ var k;
2272
+ const y = e.schema, s = Object.assign(
2273
+ Ce(y),
2234
2274
  {
2235
2275
  id: `${e.schema.type}-cloned-${Math.random().toString(36).slice(2, 6)}`,
2236
2276
  onClick: null
2237
2277
  }
2238
2278
  );
2239
- (C = b == null ? void 0 : b.designerContext) != null && C.appendIdentifyForNewControl && b.designerContext.appendIdentifyForNewControl(s);
2240
- let p = [];
2241
- return s.children && s.children.length && (p = s.children.map((A) => {
2242
- var H;
2243
- const z = xe(A);
2279
+ (k = m == null ? void 0 : m.designerContext) != null && k.appendIdentifyForNewControl && m.designerContext.appendIdentifyForNewControl(s);
2280
+ let v = [];
2281
+ return s.children && s.children.length && (v = s.children.map((M) => {
2282
+ var Y;
2283
+ const W = Ce(M);
2244
2284
  return Object.assign(
2245
- z,
2285
+ W,
2246
2286
  {
2247
2287
  id: `${e.schema.type}-cloned-${Math.random().toString(36).slice(2, 6)}`,
2248
2288
  onClick: null
2249
2289
  }
2250
- ), (H = b == null ? void 0 : b.designerContext) != null && H.appendIdentifyForNewControl && b.designerContext.appendIdentifyForNewControl(z), S(A, z), z;
2251
- }), s.children = p), S(x, s), s;
2290
+ ), (Y = m == null ? void 0 : m.designerContext) != null && Y.appendIdentifyForNewControl && m.designerContext.appendIdentifyForNewControl(W), E(M, W), W;
2291
+ }), s.children = v), E(y, s), s;
2252
2292
  }
2253
- function d() {
2254
- const x = e.schema.type || "response-toolbar-item", s = An(x), p = x.toLowerCase().replace("-", "_");
2255
- return s && !s.id && s.type === x && (s.id = `${p}_${Math.random().toString().slice(2, 6)}`, s.text = "按钮"), s;
2293
+ function u() {
2294
+ const y = e.schema.type || "response-toolbar-item", s = $n(y), v = y.toLowerCase().replace("-", "_");
2295
+ return s && !s.id && s.type === y && (s.id = `${v}_${Math.random().toString().slice(2, 6)}`, s.text = "按钮"), s;
2256
2296
  }
2257
- function l(x) {
2258
- const s = m(), p = s == null ? void 0 : s.findIndex((A) => A.id === x), C = p === -1 ? null : s[p];
2259
- return { index: p, toolbarItem: C };
2297
+ function l(y) {
2298
+ const s = x(), v = s == null ? void 0 : s.findIndex((M) => M.id === y), k = v === -1 ? null : s[v];
2299
+ return { index: v, toolbarItem: k };
2260
2300
  }
2261
- function u() {
2262
- const x = e.schema.id, s = m();
2263
- return Fe(x, s);
2301
+ function d() {
2302
+ const y = e.schema.id, s = x();
2303
+ return We(y, s);
2264
2304
  }
2265
- function i(x) {
2266
- const s = b.formSchemaUtils.getExpressions();
2305
+ function i(y) {
2306
+ const s = m.formSchemaUtils.getExpressions();
2267
2307
  if (!s || !s.length)
2268
2308
  return;
2269
- const p = (C) => {
2270
- const A = s && s.findIndex((z) => z.target === C.id);
2271
- A > -1 && s.splice(A, 1);
2309
+ const v = (k) => {
2310
+ const M = s && s.findIndex((W) => W.target === k.id);
2311
+ M > -1 && s.splice(M, 1);
2272
2312
  };
2273
- p(x), x.children && x.children.length && x.children.forEach((C) => {
2274
- p(C);
2313
+ v(y), y.children && y.children.length && y.children.forEach((k) => {
2314
+ v(k);
2275
2315
  });
2276
2316
  }
2277
- function n(x) {
2278
- t.changeSelectedId(x);
2317
+ function n(y) {
2318
+ t.changeSelectedId(y);
2279
2319
  }
2280
- function k(x) {
2281
- b.formSchemaUtils.removeCommunicationInComponent(x), x.children && x.children.length && x.children.forEach((s) => {
2282
- b.formSchemaUtils.removeCommunicationInComponent(s);
2320
+ function S(y) {
2321
+ m.formSchemaUtils.removeCommunicationInComponent(y), y.children && y.children.length && y.children.forEach((s) => {
2322
+ m.formSchemaUtils.removeCommunicationInComponent(s);
2283
2323
  });
2284
2324
  }
2285
2325
  function B() {
2286
- var C, A, z;
2287
- if ((C = b == null ? void 0 : b.designerContext) != null && C.checkCanDeleteControl && !b.designerContext.checkCanDeleteControl(e.schema))
2326
+ var k, M, W;
2327
+ if ((k = m == null ? void 0 : m.designerContext) != null && k.checkCanDeleteControl && !m.designerContext.checkCanDeleteControl(e.schema))
2288
2328
  return;
2289
- const x = m(), { parentIndex: s, itemIndex: p } = rt(e.schema.id, x);
2290
- s === -1 || p === -1 || (i(e.schema), k(e.schema), x[s].children.splice(p, 1), t.updateToolbarItems(), (A = e.setupContext) == null || A.emit("removeComponent"), (z = e.setupContext) == null || z.emit("selectionChange"), Ne.value++);
2329
+ const y = x(), { parentIndex: s, itemIndex: v } = it(e.schema.id, y);
2330
+ s === -1 || v === -1 || (i(e.schema), S(e.schema), y[s].children.splice(v, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (W = e.setupContext) == null || W.emit("selectionChange"), Fe.value++);
2291
2331
  }
2292
- function M() {
2293
- var C, A, z;
2294
- if ((C = b == null ? void 0 : b.designerContext) != null && C.checkCanDeleteControl && !b.designerContext.checkCanDeleteControl(e.schema))
2332
+ function G() {
2333
+ var k, M, W;
2334
+ if ((k = m == null ? void 0 : m.designerContext) != null && k.checkCanDeleteControl && !m.designerContext.checkCanDeleteControl(e.schema))
2295
2335
  return;
2296
- const x = e.schema.id, s = m(), p = s == null ? void 0 : s.findIndex((H) => H.id === x);
2297
- p !== -1 && (i(s[p]), k(s[p]), s == null || s.splice(p, 1), t.updateToolbarItems(), (A = e.setupContext) == null || A.emit("removeComponent"), (z = e.setupContext) == null || z.emit("selectionChange"), Ne.value++);
2336
+ const y = e.schema.id, s = x(), v = s == null ? void 0 : s.findIndex((Y) => Y.id === y);
2337
+ v !== -1 && (i(s[v]), S(s[v]), s == null || s.splice(v, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (W = e.setupContext) == null || W.emit("selectionChange"), Fe.value++);
2298
2338
  }
2299
- function j(x = "Append") {
2300
- var H;
2301
- const s = m(), { parentIndex: p, itemIndex: C } = rt(e.schema.id, s);
2302
- if (p === -1 || C === -1)
2339
+ function j(y = "Append") {
2340
+ var Y;
2341
+ const s = x(), { parentIndex: v, itemIndex: k } = it(e.schema.id, s);
2342
+ if (v === -1 || k === -1)
2303
2343
  return;
2304
- const A = d(), z = x === "Copy" ? P() : Object.assign({}, A);
2305
- s[p].children.splice(C + 1, 0, z), t.updateToolbarItems(), n(z.id), (H = e.setupContext) == null || H.emit("addComponent");
2306
- }
2307
- function w(x, s) {
2308
- const { index: p } = l(s);
2309
- if (p === -1)
2310
- return { index: p, schema: null };
2311
- const C = d(), A = x === "Copy" ? P() : Object.assign({}, C);
2312
- return { index: p, schema: A };
2313
- }
2314
- function y() {
2315
- var C;
2316
- const x = e.schema.id, { index: s, schema: p } = w("Copy", x);
2317
- p && (m().splice(s + 1, 0, p), t.updateToolbarItems(), v(p.id), (C = e.setupContext) == null || C.emit("addComponent"));
2318
- }
2319
- function _() {
2320
- var C;
2321
- const x = e.schema.id, { index: s, schema: p } = w("Append", x);
2322
- if (p && e.parent) {
2323
- const z = m()[s].children || [];
2324
- z.push(p);
2325
- const H = m();
2326
- H[s].children = z, t.updateToolbarItems(), n(p.id), (C = e.setupContext) == null || C.emit("addComponent");
2344
+ const M = u(), W = y === "Copy" ? P() : Object.assign({}, M);
2345
+ s[v].children.splice(k + 1, 0, W), t.updateToolbarItems(), n(W.id), (Y = e.setupContext) == null || Y.emit("addComponent");
2346
+ }
2347
+ function D(y, s) {
2348
+ const { index: v } = l(s);
2349
+ if (v === -1)
2350
+ return { index: v, schema: null };
2351
+ const k = u(), M = y === "Copy" ? P() : Object.assign({}, k);
2352
+ return { index: v, schema: M };
2353
+ }
2354
+ function b() {
2355
+ var k;
2356
+ const y = e.schema.id, { index: s, schema: v } = D("Copy", y);
2357
+ v && (x().splice(s + 1, 0, v), t.updateToolbarItems(), g(v.id), (k = e.setupContext) == null || k.emit("addComponent"));
2358
+ }
2359
+ function O() {
2360
+ var k;
2361
+ const y = e.schema.id, { index: s, schema: v } = D("Append", y);
2362
+ if (v && e.parent) {
2363
+ const W = x()[s].children || [];
2364
+ W.push(v);
2365
+ const Y = x();
2366
+ Y[s].children = W, t.updateToolbarItems(), n(v.id), (k = e.setupContext) == null || k.emit("addComponent");
2327
2367
  }
2328
2368
  }
2329
- function g(x) {
2369
+ function p(y) {
2330
2370
  let s;
2331
2371
  switch (e.schema.type) {
2332
2372
  case "tab-toolbar-item":
2333
- s = new Ht(x, b);
2373
+ s = new Vt(y, m);
2334
2374
  break;
2335
2375
  default:
2336
- s = new Mn(x, b, e.schema.type);
2376
+ s = new On(y, m, e.schema.type);
2337
2377
  }
2338
- return s.getPropertyConfig(e.schema, u());
2378
+ return s.getPropertyConfig(e.schema, d());
2339
2379
  }
2340
- function o(x) {
2341
- x.stopPropagation(), x.stopImmediatePropagation();
2380
+ function o(y) {
2381
+ y.stopPropagation(), y.stopImmediatePropagation();
2342
2382
  }
2343
- function $() {
2344
- const x = [{
2383
+ function F() {
2384
+ const y = [{
2345
2385
  id: "delete",
2346
2386
  title: "删除",
2347
2387
  text: "",
2348
2388
  icon: "f-icon-yxs_delete",
2349
2389
  onClick: (s) => {
2350
- o(s), u() ? B() : M();
2390
+ o(s), d() ? B() : G();
2351
2391
  }
2352
2392
  }, {
2353
2393
  id: "copy",
@@ -2355,13 +2395,13 @@ function _n(e, b, t) {
2355
2395
  icon: "f-icon-yxs_copy",
2356
2396
  onClick: (s) => {
2357
2397
  o(s);
2358
- const { activeElement: p } = document, C = p ? p.tagName.toLowerCase() : "";
2359
- C && C === "input" || C === "textarea" ? (p == null || p.blur(), Ce(() => {
2360
- u() ? j("Copy") : y();
2361
- })) : u() ? j("Copy") : y();
2398
+ const { activeElement: v } = document, k = v ? v.tagName.toLowerCase() : "";
2399
+ k && k === "input" || k === "textarea" ? (v == null || v.blur(), Te(() => {
2400
+ d() ? j("Copy") : b();
2401
+ })) : d() ? j("Copy") : b();
2362
2402
  }
2363
2403
  }];
2364
- return x.push(u() ? {
2404
+ return y.push(d() ? {
2365
2405
  id: "appendSiblingButton",
2366
2406
  title: "",
2367
2407
  text: "新增同级",
@@ -2375,31 +2415,32 @@ function _n(e, b, t) {
2375
2415
  text: "新增子级",
2376
2416
  icon: "f-icon-plus-circle",
2377
2417
  onClick: (s) => {
2378
- o(s), _();
2418
+ o(s), O();
2379
2419
  }
2380
- }), x;
2420
+ }), y;
2381
2421
  }
2382
- function T() {
2383
- const { schema: x } = e;
2384
- i(x);
2422
+ function I() {
2423
+ const { schema: y } = e;
2424
+ i(y);
2385
2425
  }
2386
2426
  function f() {
2387
- var x, s, p, C;
2388
- if (e && b) {
2389
- const { formSchemaUtils: A } = b, { schema: z } = e;
2390
- switch (z.type) {
2427
+ var y, s, v, k;
2428
+ if (e && m) {
2429
+ const { formSchemaUtils: M } = m, { schema: W } = e;
2430
+ switch (W.type) {
2391
2431
  case "response-toolbar-item": {
2392
- A.getControlBasicInfoMap().set(z.id, {
2393
- componentTitle: z.text,
2394
- parentPathName: z.text
2432
+ M.getControlBasicInfoMap().set(W.id, {
2433
+ componentTitle: W.text,
2434
+ parentPathName: W.text
2395
2435
  });
2396
2436
  break;
2397
2437
  }
2398
2438
  case "tab-toolbar-item":
2399
- case "section-toolbar-item": {
2400
- let H;
2401
- const Y = (x = e.parent) == null ? void 0 : x.parent;
2402
- (Y == null ? void 0 : Y.schema.type) === "tabs" || (Y == null ? void 0 : Y.schema.type) === "section" ? H = (s = Y.componentInstance) == null ? void 0 : s.value : H = (C = (p = Y == null ? void 0 : Y.parent) == null ? void 0 : p.componentInstance) == null ? void 0 : C.value, H != null && H.setComponentBasicInfoMap && H.setComponentBasicInfoMap();
2439
+ case "section-toolbar-item":
2440
+ case "drawer-toolbar-item": {
2441
+ let Y;
2442
+ const X = (y = e.parent) == null ? void 0 : y.parent;
2443
+ (X == null ? void 0 : X.schema.type) === "tabs" || (X == null ? void 0 : X.schema.type) === "section" || (X == null ? void 0 : X.schema.type) === "drawer" ? Y = (s = X.componentInstance) == null ? void 0 : s.value : Y = (k = (v = X == null ? void 0 : X.parent) == null ? void 0 : v.componentInstance) == null ? void 0 : k.value, Y != null && Y.setComponentBasicInfoMap && Y.setComponentBasicInfoMap();
2403
2444
  }
2404
2445
  }
2405
2446
  }
@@ -2408,33 +2449,33 @@ function _n(e, b, t) {
2408
2449
  canAccepts: h,
2409
2450
  checkCanMoveComponent: c,
2410
2451
  checkCanDeleteComponent: r,
2411
- checkCanAddComponent: D,
2412
- getPropsConfig: g,
2413
- getCustomButtons: $,
2414
- onRemoveComponent: T,
2452
+ checkCanAddComponent: T,
2453
+ getPropsConfig: p,
2454
+ getCustomButtons: F,
2455
+ onRemoveComponent: I,
2415
2456
  setComponentBasicInfoMap: f
2416
2457
  };
2417
2458
  }
2418
- const bt = /* @__PURE__ */ qe({
2459
+ const vt = /* @__PURE__ */ ze({
2419
2460
  name: "FResponseToolbarItemDesign",
2420
- props: ft,
2461
+ props: pt,
2421
2462
  emits: ["Click", "dropdown", "clearAll"],
2422
- setup(e, b) {
2423
- const t = re(e.alignment), h = Ue(), c = re(), r = we("designer-host-service"), D = we("design-item-context"), m = we("toolbar-item-action"), v = _n(D, r, m), S = Gt(c, D, v);
2424
- ze(() => {
2425
- c.value.componentInstance = S;
2426
- }), b.expose(S.value);
2463
+ setup(e, m) {
2464
+ const t = oe(e.alignment), h = Ye(), c = oe(), r = xe("designer-host-service"), T = xe("design-item-context"), x = xe("toolbar-item-action"), g = Ln(T, r, x), E = Ut(c, T, g);
2465
+ Ge(() => {
2466
+ c.value.componentInstance = E;
2467
+ }), m.expose(E.value);
2427
2468
  function P() {
2428
- const w = {
2469
+ const D = {
2429
2470
  "f-icon": !0
2430
- }, y = e.icon ? e.icon.trim() : "";
2431
- return ie(w, y);
2471
+ }, b = e.icon ? e.icon.trim() : "";
2472
+ return re(D, b);
2432
2473
  }
2433
- function d() {
2474
+ function u() {
2434
2475
  return !!(e.icon && e.icon.trim());
2435
2476
  }
2436
- const l = de(() => {
2437
- const w = {
2477
+ const l = fe(() => {
2478
+ const D = {
2438
2479
  btn: !0,
2439
2480
  "f-rt-btn": !0,
2440
2481
  "f-btn-ml": !e.isDP && (t.value === "right" || t.value === "center"),
@@ -2445,8 +2486,8 @@ const bt = /* @__PURE__ */ qe({
2445
2486
  "text-truncate": !0
2446
2487
  // 'f-rt-toggle':props.isDP&&!props.split
2447
2488
  };
2448
- return ie(w, e.class);
2449
- }), u = de(() => e.split ? {
2489
+ return re(D, e.class);
2490
+ }), d = fe(() => e.split ? {
2450
2491
  display: "flex",
2451
2492
  "align-items": "center"
2452
2493
  } : {
@@ -2456,17 +2497,17 @@ const bt = /* @__PURE__ */ qe({
2456
2497
  "padding-right": "0.1rem",
2457
2498
  "border-top-right-radius": "6px",
2458
2499
  "border-bottom-right-radius": "6px"
2459
- }), i = de(() => {
2460
- const w = {
2500
+ }), i = fe(() => {
2501
+ const D = {
2461
2502
  btn: !0,
2462
2503
  "dropdown-toggle": !0,
2463
2504
  "f-btn-mr": t.value === "left",
2464
2505
  "dropdown-toggle-split": !0,
2465
2506
  "no-drag": !0
2466
2507
  };
2467
- return ie(w, e.class);
2468
- }), n = de(() => {
2469
- let w = {
2508
+ return re(D, e.class);
2509
+ }), n = fe(() => {
2510
+ let D = {
2470
2511
  btn: !e.isDPItem,
2471
2512
  // 不是下拉按钮,不是下拉项
2472
2513
  disabled: e.disabled === !0,
@@ -2478,10 +2519,10 @@ const bt = /* @__PURE__ */ qe({
2478
2519
  // 保证内部层级不被拖拽
2479
2520
  "no-drag": !0
2480
2521
  };
2481
- return e.isDPItem || (w = ie(w, e.class || "")), e.isDP && (w = ie(w, e.dropdownClass || "")), w;
2522
+ return e.isDPItem || (D = re(D, e.class || "")), e.isDP && (D = re(D, e.dropdownClass || "")), D;
2482
2523
  });
2483
- function k(w, y) {
2484
- y && y.stopPropagation(), b.emit(w, {
2524
+ function S(D, b) {
2525
+ b && b.stopPropagation(), m.emit(D, {
2485
2526
  id: e.id,
2486
2527
  isDP: e.isDP
2487
2528
  });
@@ -2495,92 +2536,92 @@ const bt = /* @__PURE__ */ qe({
2495
2536
  "f-btn-mr": t.value === "left"
2496
2537
  };
2497
2538
  }
2498
- function M() {
2499
- return N("div", {
2539
+ function G() {
2540
+ return L("div", {
2500
2541
  ref: c,
2501
- "data-dragref": `${D.schema.id}-container`,
2542
+ "data-dragref": `${T.schema.id}-container`,
2502
2543
  class: "farris-component position-relative",
2503
2544
  style: "display:inline-block!important;"
2504
- }, [N("div", {
2545
+ }, [L("div", {
2505
2546
  class: B(),
2506
2547
  id: e.id
2507
- }, [N("div", {
2548
+ }, [L("div", {
2508
2549
  class: l.value,
2509
- style: u.value,
2510
- onClick: () => k("clearAll")
2511
- }, [h.shouldShowIcon(e) && N("i", {
2550
+ style: d.value,
2551
+ onClick: () => S("clearAll")
2552
+ }, [h.shouldShowIcon(e) && L("i", {
2512
2553
  class: h.iconClass(e)
2513
- }, null), N("span", null, [e.text]), !e.split && N("span", {
2554
+ }, null), L("span", null, [e.text]), !e.split && L("span", {
2514
2555
  class: "f-icon f-icon-arrow-chevron-down",
2515
2556
  style: "margin:0 0.5rem 0 0.25rem;",
2516
- onClick: (w) => k("dropdown", w)
2517
- }, null)]), e.split && N("button", {
2557
+ onClick: (D) => S("dropdown", D)
2558
+ }, null)]), e.split && L("button", {
2518
2559
  class: i.value,
2519
2560
  style: "border-radius:0 6px 6px 0;",
2520
- onClick: (w) => k("dropdown", w)
2521
- }, null), m.renderDropdownMenu(e.item, e.item)])]);
2561
+ onClick: (D) => S("dropdown", D)
2562
+ }, null), x.renderDropdownMenu(e.item, e.item)])]);
2522
2563
  }
2523
2564
  function j() {
2524
- return N("li", {
2565
+ return L("li", {
2525
2566
  ref: c,
2526
- "data-dragref": `${D.schema.id}-container`,
2567
+ "data-dragref": `${T.schema.id}-container`,
2527
2568
  id: e.id,
2528
2569
  class: n.value
2529
- }, [h.shouldShowIcon(e) && N("i", {
2570
+ }, [h.shouldShowIcon(e) && L("i", {
2530
2571
  class: h.iconClass(e)
2531
2572
  }, null), e.text]);
2532
2573
  }
2533
- return () => e.isDP ? M() : e.isDPItem ? j() : N("div", {
2574
+ return () => e.isDP ? G() : e.isDPItem ? j() : L("div", {
2534
2575
  ref: c,
2535
- "data-dragref": `${D.schema.id}-container`,
2576
+ "data-dragref": `${T.schema.id}-container`,
2536
2577
  class: "farris-component position-relative",
2537
2578
  style: "display:inline-block!important;"
2538
- }, [N("button", {
2579
+ }, [L("button", {
2539
2580
  type: "button",
2540
2581
  class: l.value,
2541
2582
  id: e.id,
2542
- onClick: () => k("clearAll")
2543
- }, [d() && N("i", {
2583
+ onClick: () => S("clearAll")
2584
+ }, [u() && L("i", {
2544
2585
  class: P()
2545
2586
  }, null), e.text])]);
2546
2587
  }
2547
2588
  });
2548
- function $n(e, b, t, h) {
2549
- function c(l, u, i, n) {
2550
- h.changeSelectedId((u == null ? void 0 : u.id) || ""), t && t.setupContext && t.setupContext.emit("selectionChange", l, u, i, n);
2589
+ function Nn(e, m, t, h) {
2590
+ function c(l, d, i, n) {
2591
+ h.changeSelectedId((d == null ? void 0 : d.id) || ""), t && t.setupContext && t.setupContext.emit("selectionChange", l, d, i, n);
2551
2592
  }
2552
2593
  function r() {
2553
2594
  }
2554
- function D(l) {
2555
- const u = l.expanded;
2556
- h.clearAllDropdown(), h.toggleDropdownMenu(l, !u);
2595
+ function T(l) {
2596
+ const d = l.expanded;
2597
+ h.clearAllDropdown(), h.toggleDropdownMenu(l, !d);
2557
2598
  }
2558
- function m(l) {
2599
+ function x(l) {
2559
2600
  h.clearAllDropdown(l.isDP ? l.id : "");
2560
2601
  }
2561
- function v(l, u = "") {
2562
- const i = e.items || [], n = u || l, k = i.find((B) => B.id === n);
2563
- return u ? k.children.find((B) => B.id === l) : k;
2602
+ function g(l, d = "") {
2603
+ const i = e.items || [], n = d || l, S = i.find((B) => B.id === n);
2604
+ return d ? S.children.find((B) => B.id === l) : S;
2564
2605
  }
2565
- function S(l, u = !1) {
2566
- if (!u)
2606
+ function E(l, d = !1) {
2607
+ if (!d)
2567
2608
  return;
2568
2609
  const i = l.target;
2569
2610
  i != null && i.classList.contains("dgComponentFocused") && (i == null || i.classList.add("dgComponentSelected"));
2570
2611
  }
2571
- function P(l, u = !1) {
2572
- if (!u)
2612
+ function P(l, d = !1) {
2613
+ if (!d)
2573
2614
  return;
2574
2615
  const i = l.target;
2575
2616
  i != null && i.classList.contains("dgComponentFocused") && (i == null || i.classList.remove("dgComponentSelected"));
2576
2617
  }
2577
- function d(l, u, i = !1) {
2578
- const n = v(l.id, l.parent), k = re(n);
2579
- return N(Ut, {
2618
+ function u(l, d, i = !1) {
2619
+ const n = g(l.id, l.parent), S = oe(n);
2620
+ return L(Yt, {
2580
2621
  key: n.id,
2581
2622
  class: ["p-0", i ? "d-block no-drag" : "d-inline-block"],
2582
- modelValue: k.value,
2583
- "onUpdate:modelValue": (B) => k.value = B,
2623
+ modelValue: S.value,
2624
+ "onUpdate:modelValue": (B) => S.value = B,
2584
2625
  canMove: !1,
2585
2626
  childType: "response-toolbar-item",
2586
2627
  childLabel: "按钮",
@@ -2589,12 +2630,12 @@ function $n(e, b, t, h) {
2589
2630
  id: n.id,
2590
2631
  onSelectionChange: c,
2591
2632
  onRemoveComponent: r,
2592
- onMouseenter: (B) => S(B, i),
2633
+ onMouseenter: (B) => E(B, i),
2593
2634
  onMouseleave: (B) => P(B, i)
2594
2635
  }, {
2595
2636
  default: () => {
2596
2637
  var B;
2597
- return [N(bt, {
2638
+ return [L(vt, {
2598
2639
  id: n.id,
2599
2640
  disabled: n.disabled,
2600
2641
  text: n.text,
@@ -2605,25 +2646,25 @@ function $n(e, b, t, h) {
2605
2646
  isDPItem: l.isDPItem,
2606
2647
  class: ((B = l.appearance) == null ? void 0 : B.class) || "btn-secondary",
2607
2648
  alignment: e.alignment || "right",
2608
- onDropdown: () => D(l),
2609
- onClearAll: (M) => m(M),
2649
+ onDropdown: () => T(l),
2650
+ onClearAll: (G) => x(G),
2610
2651
  componentId: e.componentId
2611
2652
  }, null)];
2612
2653
  }
2613
2654
  });
2614
2655
  }
2615
2656
  return {
2616
- renderToolbarItemDesigner: d,
2657
+ renderToolbarItemDesigner: u,
2617
2658
  actionHandlers: h
2618
2659
  };
2619
2660
  }
2620
- function We(e, b = !1, t = "") {
2661
+ function qe(e, m = !1, t = "") {
2621
2662
  const h = [];
2622
2663
  return e.reduce((c, r) => {
2623
2664
  if (r.children && r.children.length > 0) {
2624
- const D = We(r.children, !0, r.id);
2665
+ const T = qe(r.children, !0, r.id);
2625
2666
  c.push(Object.assign({}, r, {
2626
- children: D,
2667
+ children: T,
2627
2668
  isDPItem: !1,
2628
2669
  isDP: !0,
2629
2670
  parent: "",
@@ -2631,134 +2672,134 @@ function We(e, b = !1, t = "") {
2631
2672
  }));
2632
2673
  } else
2633
2674
  c.push(Object.assign({}, r, {
2634
- isDPItem: b,
2675
+ isDPItem: m,
2635
2676
  isDP: !1,
2636
2677
  parent: t
2637
2678
  }));
2638
2679
  return c;
2639
2680
  }, h), h;
2640
2681
  }
2641
- const Ee = /* @__PURE__ */ qe({
2682
+ const Re = /* @__PURE__ */ ze({
2642
2683
  name: "FResponseToolbarDesign",
2643
- props: gn,
2684
+ props: bn,
2644
2685
  emits: ["Click"],
2645
- setup(e, b) {
2646
- const t = re(We(e.items)), h = re(), c = re(), r = re(), D = re("");
2647
- let m = 0;
2648
- const v = 15, S = we("designer-host-service"), P = we("design-item-context"), d = {
2649
- clearAllDropdown: (L) => {
2686
+ setup(e, m) {
2687
+ const t = oe(qe(e.items)), h = oe(), c = oe(), r = oe(), T = oe("");
2688
+ let x = 0;
2689
+ const g = 15, E = xe("designer-host-service"), P = xe("design-item-context"), u = {
2690
+ clearAllDropdown: ($) => {
2650
2691
  },
2651
- toggleDropdownMenu: (L) => {
2692
+ toggleDropdownMenu: ($) => {
2652
2693
  },
2653
2694
  updateToolbarItems: () => {
2654
2695
  },
2655
- changeSelectedId: (L) => {
2656
- D.value = L;
2696
+ changeSelectedId: ($) => {
2697
+ T.value = $;
2657
2698
  },
2658
- renderDropdownMenu: (L, F) => {
2699
+ renderDropdownMenu: ($, N) => {
2659
2700
  },
2660
2701
  toolbarContext: P,
2661
- changeMenuPosition: (L, F, Q) => ({}),
2702
+ changeMenuPosition: ($, N, V) => ({}),
2662
2703
  toolbarPosition: ""
2663
- }, l = In(P, S, d), u = Yt(r, P, l), i = we("toolbar-item-handler"), {
2704
+ }, l = In(P, E, u), d = Xt(r, P, l), i = xe("toolbar-item-handler"), {
2664
2705
  initDragula: n,
2665
- dragulaInstance: k
2666
- } = Pn(P), B = Ue(), M = $n(e, c, P, d), j = En(B, t, M), {
2667
- renderToolbarItemDesigner: w
2668
- } = M, {
2669
- clearAllDropDownMenu: y,
2670
- renderDropdownMenu: _,
2671
- setResponseToolbarRef: g
2706
+ dragulaInstance: S
2707
+ } = Mn(P), B = Ye(), G = Nn(e, c, P, u), j = Rn(B, t, G), {
2708
+ renderToolbarItemDesigner: D
2709
+ } = G, {
2710
+ clearAllDropDownMenu: b,
2711
+ renderDropdownMenu: O,
2712
+ setResponseToolbarRef: p
2672
2713
  } = j;
2673
- Wt("toolbar-item-action", d), d.renderDropdownMenu = _, g(r), i && (i.changeSelectedId = function(L) {
2674
- D.value = L;
2714
+ qt("toolbar-item-action", u), u.renderDropdownMenu = O, p(r), i && (i.changeSelectedId = function($) {
2715
+ T.value = $;
2675
2716
  });
2676
2717
  function o() {
2677
- const L = c.value.querySelector(".dgComponentSelected");
2678
- L && Xt(L);
2718
+ const $ = c.value.querySelector(".dgComponentSelected");
2719
+ $ && Ht($);
2679
2720
  }
2680
- function $() {
2681
- if (D.value)
2682
- if (Fe(D.value, t.value)) {
2721
+ function F() {
2722
+ if (T.value)
2723
+ if (We(T.value, t.value)) {
2683
2724
  const {
2684
- parent: L,
2685
- item: F
2686
- } = it(D.value, t.value);
2687
- L && (d.toggleDropdownMenu(L, !0), setTimeout(() => {
2688
- var Z;
2689
- const Q = r.value.querySelector("#" + L.id), V = Q == null ? void 0 : Q.querySelector("#" + F.id);
2690
- (((Z = V == null ? void 0 : V.parentElement) == null ? void 0 : Z.className) || "").indexOf("dgComponentFocused") < 0 && (V == null || V.click());
2725
+ parent: $,
2726
+ item: N
2727
+ } = st(T.value, t.value);
2728
+ $ && (u.toggleDropdownMenu($, !0), setTimeout(() => {
2729
+ var H;
2730
+ const V = r.value.querySelector("#" + $.id), U = V == null ? void 0 : V.querySelector("#" + N.id);
2731
+ (((H = U == null ? void 0 : U.parentElement) == null ? void 0 : H.className) || "").indexOf("dgComponentFocused") < 0 && (U == null || U.click());
2691
2732
  }, 0));
2692
2733
  } else
2693
2734
  o();
2694
2735
  }
2695
- function T(L = "") {
2696
- t.value.filter((F) => F.id !== L && F.children && F.children.length > 0).forEach((F) => {
2697
- F.expanded = !1;
2698
- }), y(L);
2736
+ function I($ = "") {
2737
+ t.value.filter((N) => N.id !== $ && N.children && N.children.length > 0).forEach((N) => {
2738
+ N.expanded = !1;
2739
+ }), b($);
2699
2740
  }
2700
- d.clearAllDropdown = T;
2741
+ u.clearAllDropdown = I;
2701
2742
  function f() {
2702
2743
  i && i.updateToolbarItems && i.updateToolbarItems();
2703
2744
  }
2704
- d.updateToolbarItems = f;
2705
- function x(L) {
2706
- if (L) {
2707
- const F = r.value.querySelector("#" + L.id), Q = F.querySelector("#" + L.id + "_menu"), V = d.changeMenuPosition(L, F);
2708
- Object.keys(V).forEach((Z) => {
2709
- Q.style[Z] = V[Z];
2745
+ u.updateToolbarItems = f;
2746
+ function y($) {
2747
+ if ($) {
2748
+ const N = r.value.querySelector("#" + $.id), V = N.querySelector("#" + $.id + "_menu"), U = u.changeMenuPosition($, N);
2749
+ Object.keys(U).forEach((H) => {
2750
+ V.style[H] = U[H];
2710
2751
  });
2711
2752
  }
2712
2753
  }
2713
2754
  function s() {
2714
- const Q = c.value.clientWidth, V = c.value.querySelectorAll(".farris-component>.f-rt-btn");
2715
- V && V.forEach((W) => {
2716
- W.style.maxWidth = Q - 12 + "px";
2755
+ const V = c.value.clientWidth, U = c.value.querySelectorAll(".farris-component>.f-rt-btn");
2756
+ U && U.forEach((q) => {
2757
+ q.style.maxWidth = V - 12 + "px";
2717
2758
  });
2718
- const Z = c.value.querySelectorAll(".farris-component>.f-rt-dropdown");
2719
- Z && Z.forEach((W) => {
2720
- W.querySelector(".dropdown-toggle-split") ? W.querySelector(".f-rt-btn").style.maxWidth = Q - 38 + "px" : W.style.maxWidth = Q - 12 + "px";
2759
+ const H = c.value.querySelectorAll(".farris-component>.f-rt-dropdown");
2760
+ H && H.forEach((q) => {
2761
+ q.querySelector(".dropdown-toggle-split") ? q.querySelector(".f-rt-btn").style.maxWidth = V - 38 + "px" : q.style.maxWidth = V - 12 + "px";
2721
2762
  });
2722
2763
  }
2723
- const p = new ResizeObserver((L) => {
2724
- var F;
2725
- if (L.length) {
2726
- const V = L[0].contentRect.width;
2727
- if (V === 0) {
2728
- m = 0;
2764
+ const v = new ResizeObserver(($) => {
2765
+ var N;
2766
+ if ($.length) {
2767
+ const U = $[0].contentRect.width;
2768
+ if (U === 0) {
2769
+ x = 0;
2729
2770
  return;
2730
2771
  }
2731
- if (Math.abs(V - m) > v) {
2732
- if (m = V, Fe(D.value, t.value)) {
2772
+ if (Math.abs(U - x) > g) {
2773
+ if (x = U, We(T.value, t.value)) {
2733
2774
  const {
2734
- parent: Z,
2735
- item: W
2736
- } = it(D.value, t.value);
2737
- x(Z);
2738
- } else if (Rn(D.value, t.value)) {
2739
- const Z = (F = t.value) == null ? void 0 : F.find((W) => W.id === D.value);
2740
- x(Z);
2775
+ parent: H,
2776
+ item: q
2777
+ } = st(T.value, t.value);
2778
+ y(H);
2779
+ } else if (Bn(T.value, t.value)) {
2780
+ const H = (N = t.value) == null ? void 0 : N.find((q) => q.id === T.value);
2781
+ y(H);
2741
2782
  } else
2742
- T();
2783
+ I();
2743
2784
  s();
2744
2785
  }
2745
2786
  }
2746
2787
  });
2747
- ze(() => {
2748
- p.observe(r.value), m = r.value.clientWidth, r.value.componentInstance = u, n(c.value, h.value, f);
2749
- }), ct(() => {
2750
- p.disconnect(), k && k.destroy && k.destroy();
2751
- }), b.expose(u.value);
2752
- const C = de(() => {
2753
- const L = {
2788
+ Ge(() => {
2789
+ v.observe(r.value), x = r.value.clientWidth, r.value.componentInstance = d, n(c.value, h.value, f);
2790
+ }), ut(() => {
2791
+ v.disconnect(), S && S.destroy && S.destroy();
2792
+ }), m.expose(d.value);
2793
+ const k = fe(() => {
2794
+ const $ = {
2754
2795
  "f-toolbar": !0,
2755
2796
  "f-response-toolbar": !0,
2756
2797
  "position-relative": !0,
2757
2798
  "f-response-toolbar-sm": e.buttonSize === "sm",
2758
2799
  "f-response-toolbar-lg": e.buttonSize === "lg"
2759
2800
  };
2760
- return ie(L, e.customClass);
2761
- }), A = de(() => ({
2801
+ return re($, e.customClass);
2802
+ }), M = fe(() => ({
2762
2803
  "text-left": e.alignment === "left",
2763
2804
  "text-right": e.alignment === "right",
2764
2805
  "justify-content-end": e.alignment === "right",
@@ -2767,67 +2808,81 @@ const Ee = /* @__PURE__ */ qe({
2767
2808
  "no-drag": !0,
2768
2809
  "w-100": !0
2769
2810
  }));
2770
- De(() => e.items, () => {
2771
- t.value = We(e.items), Ce(() => {
2772
- $(), s();
2811
+ ke(() => e.items, () => {
2812
+ t.value = qe(e.items), Te(() => {
2813
+ F(), s();
2773
2814
  });
2774
2815
  }, {
2775
2816
  deep: !0
2776
2817
  });
2777
- function z(L) {
2778
- L && (L.stopPropagation(), L.preventDefault());
2818
+ function W($) {
2819
+ $ && ($.stopPropagation(), $.preventDefault());
2779
2820
  const {
2780
- schema: F
2821
+ schema: N
2781
2822
  } = P;
2782
- F.buttons || (F.buttons = []);
2783
- const Q = lt("response-toolbar-item");
2784
- Q.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, Q.appearance = {
2785
- class: "btn btn-secondary"
2786
- }, F.buttons.push(Q);
2823
+ N.buttons || (N.buttons = []);
2824
+ let V = "";
2825
+ switch (u.toolbarPosition) {
2826
+ case "drawer-header-toolbar":
2827
+ case "drawer-footer-toolbar":
2828
+ V = "drawer-toolbar-item";
2829
+ break;
2830
+ case "tabs":
2831
+ V = "tab-toolbar-item";
2832
+ break;
2833
+ case "section":
2834
+ V = "section-toolbar-item";
2835
+ break;
2836
+ default:
2837
+ V = "response-toolbar-item";
2838
+ }
2839
+ const U = at(V);
2840
+ U.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, N.buttons.push(U);
2787
2841
  }
2788
- function H() {
2789
- return N("li", {
2842
+ function Y() {
2843
+ return L("li", {
2790
2844
  style: "border-width: 1px;border-style: dashed;display: inline-block;padding: 0 8px;line-height: 24px; border-radius: 3px; cursor: default;color: #B4BCCC;",
2791
- onClick: z
2792
- }, [N("span", {
2845
+ onClick: W
2846
+ }, [L("span", {
2793
2847
  class: "f-icon f-icon-amplification mr-1",
2794
2848
  style: "font-size: 12px;"
2795
- }, null), N("span", {
2849
+ }, null), L("span", {
2796
2850
  class: "farris-tag-add-text"
2797
- }, [qt("添加按钮")])]);
2851
+ }, [zt("添加按钮")])]);
2798
2852
  }
2799
- function Y() {
2800
- return t.value.map((L, F) => w(L, F));
2853
+ function X() {
2854
+ return t.value.map(($, N) => D($, N));
2801
2855
  }
2802
2856
  return () => {
2803
- var L;
2804
- return N("div", {
2857
+ var $;
2858
+ return L("div", {
2805
2859
  ref: r,
2806
2860
  "data-dragref": `${P.schema.id}-container`,
2807
- class: C.value,
2861
+ class: k.value,
2808
2862
  id: e.id
2809
- }, [N("div", {
2863
+ }, [L("div", {
2810
2864
  ref: h,
2811
- class: A.value,
2812
- onClick: (F) => T(F)
2813
- }, [N("div", {
2865
+ class: M.value,
2866
+ onClick: (N) => I(N)
2867
+ }, [L("div", {
2814
2868
  ref: c,
2815
2869
  class: "d-block f-response-content"
2816
- }, [(L = t.value) != null && L.length ? Y() : H()])])]);
2870
+ }, [($ = t.value) != null && $.length ? X() : Y()])])]);
2817
2871
  };
2818
2872
  }
2819
- }), Hn = Ge;
2820
- Ee.register = (e, b, t, h) => {
2821
- e["response-toolbar"] = Tn, b["response-toolbar"] = Ge, h["response-toolbar"] = { eventHandlerResolver: vn };
2873
+ }), Qn = Ue;
2874
+ Re.register = (e, m, t, h) => {
2875
+ e["response-toolbar"] = Sn, m["response-toolbar"] = Ue, h["response-toolbar"] = { eventHandlerResolver: yn };
2822
2876
  };
2823
- Ee.registerDesigner = (e, b, t) => {
2824
- e["response-toolbar"] = Ee, b["response-toolbar"] = Ge, e["response-toolbar-item"] = bt, b["response-toolbar-item"] = bn;
2877
+ Re.registerDesigner = (e, m, t) => {
2878
+ e["response-toolbar"] = Re, m["response-toolbar"] = Ue, e["response-toolbar-item"] = vt, m["response-toolbar-item"] = mn;
2825
2879
  };
2826
- const Vn = _t(Ee);
2880
+ const Zn = $t(Re);
2827
2881
  export {
2828
- Ee as FResponseToolbarDesign,
2829
- bt as FResponseToolbarItemDesign,
2830
- Vn as default,
2831
- Hn as responseToolbarResolver,
2832
- dt as schemaResolver
2882
+ Re as FResponseToolbarDesign,
2883
+ vt as FResponseToolbarItemDesign,
2884
+ vn as commonToolbarItemDesignProps,
2885
+ Zn as default,
2886
+ Qn as responseToolbarResolver,
2887
+ ft as schemaResolver
2833
2888
  };