@vaebe/ccui 2.0.1-beta.2 → 2.0.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/README.md +1 -1
  2. package/affix/index.d.ts +10 -0
  3. package/affix/src/affix-types.d.ts +20 -0
  4. package/affix/src/affix.d.ts +20 -0
  5. package/alert/index.d.ts +10 -0
  6. package/alert/src/alert-types.d.ts +48 -0
  7. package/alert/src/alert.d.ts +36 -0
  8. package/anchor/index.d.ts +10 -0
  9. package/anchor/src/anchor-types.d.ts +37 -0
  10. package/anchor/src/anchor.d.ts +31 -0
  11. package/auto-complete/index.d.ts +10 -0
  12. package/auto-complete/index.es.js +1986 -0
  13. package/auto-complete/index.umd.js +1 -0
  14. package/auto-complete/src/auto-complete-types.d.ts +134 -0
  15. package/auto-complete/src/auto-complete.d.ts +94 -0
  16. package/auto-complete/style.css +2 -0
  17. package/avatar/index.d.ts +10 -0
  18. package/avatar/src/avatar-types.d.ts +53 -0
  19. package/avatar/src/avatar.d.ts +36 -0
  20. package/avatar/src/components/icon-body.d.ts +4 -0
  21. package/avatar/src/components/icon-img-error.d.ts +4 -0
  22. package/avatar/src/components/icon-nobody.d.ts +4 -0
  23. package/avatar/src/composables/use-get-background-color.d.ts +1 -0
  24. package/avatar/src/composables/use-get-display-name.d.ts +1 -0
  25. package/avatar-group/index.d.ts +12 -0
  26. package/avatar-group/index.es.js +119 -0
  27. package/avatar-group/index.umd.js +1 -0
  28. package/avatar-group/src/avatar-group-types.d.ts +56 -0
  29. package/avatar-group/src/avatar-group.d.ts +27 -0
  30. package/avatar-group/style.css +2 -0
  31. package/badge/index.d.ts +10 -0
  32. package/badge/src/badge-types.d.ts +52 -0
  33. package/badge/src/badge.d.ts +36 -0
  34. package/badge-ribbon/index.d.ts +12 -0
  35. package/badge-ribbon/index.es.js +84 -0
  36. package/badge-ribbon/index.umd.js +1 -0
  37. package/badge-ribbon/src/badge-ribbon-types.d.ts +30 -0
  38. package/badge-ribbon/src/badge-ribbon.d.ts +17 -0
  39. package/badge-ribbon/style.css +2 -0
  40. package/breadcrumb/index.d.ts +10 -0
  41. package/breadcrumb/src/breadcrumb-types.d.ts +29 -0
  42. package/breadcrumb/src/breadcrumb.d.ts +21 -0
  43. package/button/index.d.ts +12 -0
  44. package/button/src/button-group.d.ts +12 -0
  45. package/button/src/button-types.d.ts +168 -0
  46. package/button/src/button.d.ts +75 -0
  47. package/button-3d/index.d.ts +10 -0
  48. package/button-3d/src/button-3d-types.d.ts +27 -0
  49. package/button-3d/src/button-3d.d.ts +23 -0
  50. package/calendar/index.d.ts +10 -0
  51. package/calendar/src/calendar-types.d.ts +56 -0
  52. package/calendar/src/calendar.d.ts +27 -0
  53. package/card/index.d.ts +10 -0
  54. package/card/src/card-types.d.ts +34 -0
  55. package/card/src/card.d.ts +21 -0
  56. package/card-meta/index.d.ts +11 -0
  57. package/card-meta/index.es.js +53 -0
  58. package/card-meta/index.umd.js +1 -0
  59. package/card-meta/src/card-meta-types.d.ts +19 -0
  60. package/card-meta/src/card-meta.d.ts +14 -0
  61. package/card-meta/style.css +2 -0
  62. package/carousel/index.d.ts +10 -0
  63. package/carousel/index.es.js +306 -0
  64. package/carousel/index.umd.js +1 -0
  65. package/carousel/src/carousel-types.d.ts +72 -0
  66. package/carousel/src/carousel.d.ts +58 -0
  67. package/carousel/style.css +2 -0
  68. package/cascader/index.d.ts +12 -0
  69. package/cascader/index.es.js +2267 -0
  70. package/cascader/index.umd.js +1 -0
  71. package/cascader/src/cascader-types.d.ts +214 -0
  72. package/cascader/src/cascader.d.ts +133 -0
  73. package/cascader/style.css +2 -0
  74. package/check-box/index.d.ts +10 -0
  75. package/check-box/src/check-box-group.d.ts +31 -0
  76. package/check-box/src/check-box-types.d.ts +74 -0
  77. package/check-box/src/check-box.d.ts +28 -0
  78. package/check-box/src/components/icon-active.d.ts +2 -0
  79. package/check-box/src/components/icon-default.d.ts +2 -0
  80. package/checkable-tag/index.d.ts +13 -0
  81. package/checkable-tag/index.es.js +141 -0
  82. package/checkable-tag/index.umd.js +1 -0
  83. package/checkable-tag/src/checkable-tag-group.d.ts +26 -0
  84. package/checkable-tag/src/checkable-tag-types.d.ts +83 -0
  85. package/checkable-tag/src/checkable-tag.d.ts +20 -0
  86. package/checkable-tag/style.css +2 -0
  87. package/collapse/index.d.ts +11 -0
  88. package/collapse/src/collapse-item.d.ts +16 -0
  89. package/collapse/src/collapse-types.d.ts +52 -0
  90. package/collapse/src/collapse.d.ts +24 -0
  91. package/color-picker/index.d.ts +10 -0
  92. package/color-picker/index.es.js +1881 -0
  93. package/color-picker/index.umd.js +1 -0
  94. package/color-picker/src/color-picker-types.d.ts +121 -0
  95. package/color-picker/src/color-picker.d.ts +75 -0
  96. package/color-picker/style.css +2 -0
  97. package/config-provider/index.d.ts +10 -0
  98. package/config-provider/src/config-provider-types.d.ts +131 -0
  99. package/config-provider/src/config-provider.d.ts +24 -0
  100. package/date-picker/index.d.ts +10 -0
  101. package/date-picker/src/date-picker-types.d.ts +179 -0
  102. package/date-picker/src/date-picker.d.ts +113 -0
  103. package/descriptions/index.d.ts +11 -0
  104. package/descriptions/src/descriptions-item.d.ts +19 -0
  105. package/descriptions/src/descriptions-types.d.ts +64 -0
  106. package/descriptions/src/descriptions.d.ts +31 -0
  107. package/divider/index.d.ts +10 -0
  108. package/divider/src/divider-types.d.ts +31 -0
  109. package/divider/src/divider.d.ts +24 -0
  110. package/drawer/index.d.ts +10 -0
  111. package/drawer/src/drawer-types.d.ts +155 -0
  112. package/drawer/src/drawer.d.ts +79 -0
  113. package/dropdown/index.d.ts +10 -0
  114. package/dropdown/index.es.js +2 -2
  115. package/dropdown/index.umd.js +1 -1
  116. package/dropdown/src/dropdown-types.d.ts +41 -0
  117. package/dropdown/src/dropdown.d.ts +32 -0
  118. package/empty/index.d.ts +10 -0
  119. package/empty/src/empty-types.d.ts +16 -0
  120. package/empty/src/empty.d.ts +15 -0
  121. package/flex/index.d.ts +10 -0
  122. package/flex/src/flex-types.d.ts +36 -0
  123. package/flex/src/flex.d.ts +29 -0
  124. package/float-button/index.d.ts +11 -0
  125. package/float-button/src/back-top.d.ts +26 -0
  126. package/float-button/src/float-button-types.d.ts +65 -0
  127. package/float-button/src/float-button.d.ts +32 -0
  128. package/form/index.d.ts +14 -0
  129. package/form/src/form-item.d.ts +72 -0
  130. package/form/src/form-list.d.ts +12 -0
  131. package/form/src/form-provider.d.ts +7 -0
  132. package/form/src/form-types.d.ts +360 -0
  133. package/form/src/form.d.ts +64 -0
  134. package/form/src/utils.d.ts +10 -0
  135. package/grid/index.d.ts +10 -0
  136. package/grid/src/grid-types.d.ts +90 -0
  137. package/grid/src/grid.d.ts +58 -0
  138. package/icon/index.d.ts +12 -0
  139. package/icon/src/icon-registry.d.ts +5 -0
  140. package/icon/src/icon-types.d.ts +95 -0
  141. package/icon/src/icon.d.ts +63 -0
  142. package/image/index.d.ts +10 -0
  143. package/image/src/image-types.d.ts +56 -0
  144. package/image/src/image.d.ts +42 -0
  145. package/image-preview-group/index.d.ts +11 -0
  146. package/image-preview-group/index.es.js +162 -0
  147. package/image-preview-group/index.umd.js +1 -0
  148. package/image-preview-group/src/image-preview-group-types.d.ts +51 -0
  149. package/image-preview-group/src/image-preview-group.d.ts +25 -0
  150. package/image-preview-group/style.css +2 -0
  151. package/index.d.ts +93 -7
  152. package/input/index.d.ts +10 -0
  153. package/input/src/input-types.d.ts +164 -0
  154. package/input/src/input.d.ts +74 -0
  155. package/input-number/index.d.ts +10 -0
  156. package/input-number/src/input-number-types.d.ts +165 -0
  157. package/input-number/src/input-number.d.ts +66 -0
  158. package/input-otp/index.d.ts +11 -0
  159. package/input-otp/index.es.js +186 -0
  160. package/input-otp/index.umd.js +1 -0
  161. package/input-otp/src/input-otp-types.d.ts +68 -0
  162. package/input-otp/src/input-otp.d.ts +40 -0
  163. package/input-otp/style.css +2 -0
  164. package/input-search/index.d.ts +11 -0
  165. package/input-search/index.es.js +1228 -0
  166. package/input-search/index.umd.js +1 -0
  167. package/input-search/src/input-search-types.d.ts +106 -0
  168. package/input-search/src/input-search.d.ts +84 -0
  169. package/input-search/style.css +2 -0
  170. package/layout/index.d.ts +10 -0
  171. package/layout/src/layout-types.d.ts +70 -0
  172. package/layout/src/layout.d.ts +56 -0
  173. package/masonry/index.d.ts +10 -0
  174. package/masonry/src/masonry-types.d.ts +19 -0
  175. package/masonry/src/masonry.d.ts +16 -0
  176. package/mentions/index.d.ts +10 -0
  177. package/mentions/index.es.js +711 -0
  178. package/mentions/index.umd.js +1 -0
  179. package/mentions/src/mentions-types.d.ts +124 -0
  180. package/mentions/src/mentions.d.ts +79 -0
  181. package/mentions/style.css +2 -0
  182. package/menu/index.d.ts +10 -0
  183. package/menu/src/menu-types.d.ts +109 -0
  184. package/menu/src/menu.d.ts +63 -0
  185. package/message/index.d.ts +22 -0
  186. package/message/src/message-item.d.ts +46 -0
  187. package/message/src/message-types.d.ts +86 -0
  188. package/message/src/message.d.ts +21 -0
  189. package/message/src/use-message.d.ts +35 -0
  190. package/modal/index.d.ts +24 -0
  191. package/modal/src/confirm-types.d.ts +30 -0
  192. package/modal/src/confirm.d.ts +17 -0
  193. package/modal/src/modal-types.d.ts +175 -0
  194. package/modal/src/modal.d.ts +99 -0
  195. package/modal/src/use-modal.d.ts +34 -0
  196. package/notification/index.d.ts +21 -0
  197. package/notification/src/notification-item.d.ts +49 -0
  198. package/notification/src/notification-types.d.ts +91 -0
  199. package/notification/src/notification.d.ts +20 -0
  200. package/notification/src/use-notification.d.ts +34 -0
  201. package/package.json +611 -12
  202. package/pagination/index.d.ts +10 -0
  203. package/pagination/index.es.js +4 -2
  204. package/pagination/index.umd.js +1 -1
  205. package/pagination/src/pagination-types.d.ts +49 -0
  206. package/pagination/src/pagination.d.ts +43 -0
  207. package/popconfirm/index.d.ts +10 -0
  208. package/popconfirm/src/popconfirm-types.d.ts +82 -0
  209. package/popconfirm/src/popconfirm.d.ts +55 -0
  210. package/popover/index.d.ts +10 -0
  211. package/popover/src/popover-types.d.ts +235 -0
  212. package/popover/src/popover.d.ts +130 -0
  213. package/progress/index.d.ts +10 -0
  214. package/progress/src/progress-types.d.ts +48 -0
  215. package/progress/src/progress.d.ts +37 -0
  216. package/radio/index.d.ts +11 -0
  217. package/radio/src/components/icon-active.d.ts +2 -0
  218. package/radio/src/components/icon-circle.d.ts +2 -0
  219. package/radio/src/radio-group.d.ts +21 -0
  220. package/radio/src/radio-types.d.ts +55 -0
  221. package/radio/src/radio.d.ts +24 -0
  222. package/range-picker/index.d.ts +10 -0
  223. package/range-picker/index.es.js +2415 -0
  224. package/range-picker/index.umd.js +1 -0
  225. package/range-picker/src/range-picker-types.d.ts +169 -0
  226. package/range-picker/src/range-picker.d.ts +112 -0
  227. package/range-picker/style.css +2 -0
  228. package/rate/index.d.ts +10 -0
  229. package/rate/src/components/icon-default.d.ts +2 -0
  230. package/rate/src/rate-types.d.ts +34 -0
  231. package/rate/src/rate.d.ts +30 -0
  232. package/result/index.d.ts +10 -0
  233. package/result/src/result-types.d.ts +21 -0
  234. package/result/src/result.d.ts +18 -0
  235. package/segmented/index.d.ts +10 -0
  236. package/segmented/src/segmented-types.d.ts +32 -0
  237. package/segmented/src/segmented.d.ts +25 -0
  238. package/select/index.d.ts +10 -0
  239. package/select/src/composables/use-select.d.ts +29 -0
  240. package/select/src/select-types.d.ts +215 -0
  241. package/select/src/select.d.ts +149 -0
  242. package/skeleton/index.d.ts +10 -0
  243. package/skeleton/src/skeleton-types.d.ts +39 -0
  244. package/skeleton/src/skeleton.d.ts +27 -0
  245. package/skeleton-node/index.d.ts +11 -0
  246. package/skeleton-node/index.es.js +71 -0
  247. package/skeleton-node/index.umd.js +1 -0
  248. package/skeleton-node/src/skeleton-node-types.d.ts +23 -0
  249. package/skeleton-node/src/skeleton-node.d.ts +17 -0
  250. package/skeleton-node/style.css +2 -0
  251. package/slider/index.d.ts +10 -0
  252. package/slider/index.es.js +3 -3
  253. package/slider/index.umd.js +1 -1
  254. package/slider/src/composables/use-slider-tooltip.d.ts +18 -0
  255. package/slider/src/composables/use-slider.d.ts +68 -0
  256. package/slider/src/slider-types.d.ts +112 -0
  257. package/slider/src/slider.d.ts +149 -0
  258. package/space/index.d.ts +10 -0
  259. package/space/src/space-types.d.ts +28 -0
  260. package/space/src/space.d.ts +21 -0
  261. package/space-compact/index.d.ts +11 -0
  262. package/space-compact/index.es.js +59 -0
  263. package/space-compact/index.umd.js +1 -0
  264. package/space-compact/src/space-compact-types.d.ts +27 -0
  265. package/space-compact/src/space-compact.d.ts +15 -0
  266. package/space-compact/style.css +2 -0
  267. package/spin/index.d.ts +10 -0
  268. package/spin/src/spin-types.d.ts +29 -0
  269. package/spin/src/spin.d.ts +24 -0
  270. package/splitter/index.d.ts +10 -0
  271. package/splitter/src/splitter-types.d.ts +70 -0
  272. package/splitter/src/splitter.d.ts +62 -0
  273. package/status/index.d.ts +10 -0
  274. package/status/src/status-types.d.ts +10 -0
  275. package/status/src/status.d.ts +9 -0
  276. package/steps/index.d.ts +10 -0
  277. package/steps/src/steps-types.d.ts +48 -0
  278. package/steps/src/steps.d.ts +34 -0
  279. package/style.css +2 -0
  280. package/switch/index.d.ts +10 -0
  281. package/switch/src/switch-types.d.ts +45 -0
  282. package/switch/src/switch.d.ts +37 -0
  283. package/table/index.d.ts +11 -0
  284. package/table/src/table-types.d.ts +172 -0
  285. package/table/src/table.d.ts +67 -0
  286. package/table-column/index.d.ts +11 -0
  287. package/table-column/index.es.js +155 -0
  288. package/table-column/index.umd.js +1 -0
  289. package/table-column/src/table-column-types.d.ts +75 -0
  290. package/table-column/src/table-column.d.ts +63 -0
  291. package/table-column-group/index.d.ts +11 -0
  292. package/table-column-group/index.es.js +80 -0
  293. package/table-column-group/index.umd.js +1 -0
  294. package/table-column-group/src/table-column-group-types.d.ts +36 -0
  295. package/table-column-group/src/table-column-group.d.ts +20 -0
  296. package/table-summary/index.d.ts +11 -0
  297. package/table-summary/index.es.js +30 -0
  298. package/table-summary/index.umd.js +1 -0
  299. package/table-summary/src/table-summary-types.d.ts +29 -0
  300. package/table-summary/src/table-summary.d.ts +8 -0
  301. package/tabs/index.d.ts +11 -0
  302. package/tabs/src/components/tab/tab-types.d.ts +18 -0
  303. package/tabs/src/components/tab/tab.d.ts +15 -0
  304. package/tabs/src/components/tabs-nav/index.d.ts +26 -0
  305. package/tabs/src/tabs-types.d.ts +49 -0
  306. package/tabs/src/tabs.d.ts +27 -0
  307. package/tag/index.d.ts +10 -0
  308. package/tag/src/tag-types.d.ts +41 -0
  309. package/tag/src/tag.d.ts +24 -0
  310. package/textarea/index.d.ts +11 -0
  311. package/textarea/index.es.js +1241 -0
  312. package/textarea/index.umd.js +1 -0
  313. package/textarea/src/textarea-types.d.ts +150 -0
  314. package/textarea/src/textarea.d.ts +63 -0
  315. package/textarea/style.css +2 -0
  316. package/time-picker/index.d.ts +10 -0
  317. package/time-picker/index.es.js +2325 -0
  318. package/time-picker/index.umd.js +1 -0
  319. package/time-picker/src/time-picker-types.d.ts +168 -0
  320. package/time-picker/src/time-picker.d.ts +127 -0
  321. package/time-picker/style.css +2 -0
  322. package/time-range-picker/index.d.ts +10 -0
  323. package/time-range-picker/index.es.js +2568 -0
  324. package/time-range-picker/index.umd.js +1 -0
  325. package/time-range-picker/src/time-range-picker-types.d.ts +147 -0
  326. package/time-range-picker/src/time-range-picker.d.ts +124 -0
  327. package/time-range-picker/style.css +2 -0
  328. package/timeline/index.d.ts +11 -0
  329. package/timeline/src/timeline-item.d.ts +31 -0
  330. package/timeline/src/timeline-types.d.ts +72 -0
  331. package/timeline/src/timeline.d.ts +3 -0
  332. package/tooltip/index.d.ts +10 -0
  333. package/tooltip/src/tooltip-types.d.ts +201 -0
  334. package/tooltip/src/tooltip.d.ts +87 -0
  335. package/transfer/index.d.ts +10 -0
  336. package/transfer/index.es.js +1407 -0
  337. package/transfer/index.umd.js +1 -0
  338. package/transfer/src/transfer-types.d.ts +76 -0
  339. package/transfer/src/transfer.d.ts +59 -0
  340. package/transfer/style.css +2 -0
  341. package/tree/index.d.ts +10 -0
  342. package/tree/src/composables/use-tree-check.d.ts +9 -0
  343. package/tree/src/composables/use-tree-flatten.d.ts +11 -0
  344. package/tree/src/composables/use-tree-state.d.ts +17 -0
  345. package/tree/src/tree-types.d.ts +202 -0
  346. package/tree/src/tree.d.ts +122 -0
  347. package/tree-select/index.d.ts +12 -0
  348. package/tree-select/index.es.js +3009 -0
  349. package/tree-select/index.umd.js +1 -0
  350. package/tree-select/src/tree-select-types.d.ts +188 -0
  351. package/tree-select/src/tree-select.d.ts +128 -0
  352. package/tree-select/style.css +2 -0
  353. package/typography/index.d.ts +10 -0
  354. package/typography/src/typography-types.d.ts +316 -0
  355. package/typography/src/typography.d.ts +33 -0
  356. package/upload/index.d.ts +10 -0
  357. package/upload/index.es.js +1450 -0
  358. package/upload/index.umd.js +1 -0
  359. package/upload/src/upload-types.d.ts +99 -0
  360. package/upload/src/upload.d.ts +66 -0
  361. package/upload/style.css +2 -0
  362. package/upload-dragger/index.d.ts +10 -0
  363. package/upload-dragger/index.es.js +1472 -0
  364. package/upload-dragger/index.umd.js +1 -0
  365. package/upload-dragger/src/upload-dragger.d.ts +167 -0
  366. package/upload-dragger/style.css +2 -0
  367. package/util/index.d.ts +12 -0
  368. package/util/src/dom.d.ts +8 -0
  369. package/util/src/func.d.ts +7 -0
  370. package/util/src/type.d.ts +3 -0
  371. package/vue-ccui.es.js +11 -9
  372. package/vue-ccui.umd.js +1 -1
  373. package/watermark/index.d.ts +10 -0
  374. package/watermark/src/watermark-types.d.ts +47 -0
  375. package/watermark/src/watermark.d.ts +34 -0
  376. package/ccui-cli.css +0 -2
  377. package/nuxt/components/category.js +0 -2
  378. package/nuxt/components/install.js +0 -2
  379. package/nuxt/components/status.js +0 -2
  380. package/nuxt/components/title.js +0 -2
  381. package/nuxt/index.js +0 -13
  382. /package/affix/{ccui-cli.css → style.css} +0 -0
  383. /package/alert/{ccui-cli.css → style.css} +0 -0
  384. /package/anchor/{ccui-cli.css → style.css} +0 -0
  385. /package/avatar/{ccui-cli.css → style.css} +0 -0
  386. /package/badge/{ccui-cli.css → style.css} +0 -0
  387. /package/breadcrumb/{ccui-cli.css → style.css} +0 -0
  388. /package/button/{ccui-cli.css → style.css} +0 -0
  389. /package/button-3d/{ccui-cli.css → style.css} +0 -0
  390. /package/calendar/{ccui-cli.css → style.css} +0 -0
  391. /package/card/{ccui-cli.css → style.css} +0 -0
  392. /package/check-box/{ccui-cli.css → style.css} +0 -0
  393. /package/collapse/{ccui-cli.css → style.css} +0 -0
  394. /package/date-picker/{ccui-cli.css → style.css} +0 -0
  395. /package/descriptions/{ccui-cli.css → style.css} +0 -0
  396. /package/divider/{ccui-cli.css → style.css} +0 -0
  397. /package/drawer/{ccui-cli.css → style.css} +0 -0
  398. /package/dropdown/{ccui-cli.css → style.css} +0 -0
  399. /package/empty/{ccui-cli.css → style.css} +0 -0
  400. /package/flex/{ccui-cli.css → style.css} +0 -0
  401. /package/float-button/{ccui-cli.css → style.css} +0 -0
  402. /package/form/{ccui-cli.css → style.css} +0 -0
  403. /package/grid/{ccui-cli.css → style.css} +0 -0
  404. /package/icon/{ccui-cli.css → style.css} +0 -0
  405. /package/image/{ccui-cli.css → style.css} +0 -0
  406. /package/input/{ccui-cli.css → style.css} +0 -0
  407. /package/input-number/{ccui-cli.css → style.css} +0 -0
  408. /package/layout/{ccui-cli.css → style.css} +0 -0
  409. /package/masonry/{ccui-cli.css → style.css} +0 -0
  410. /package/menu/{ccui-cli.css → style.css} +0 -0
  411. /package/message/{ccui-cli.css → style.css} +0 -0
  412. /package/modal/{ccui-cli.css → style.css} +0 -0
  413. /package/notification/{ccui-cli.css → style.css} +0 -0
  414. /package/pagination/{ccui-cli.css → style.css} +0 -0
  415. /package/popconfirm/{ccui-cli.css → style.css} +0 -0
  416. /package/popover/{ccui-cli.css → style.css} +0 -0
  417. /package/progress/{ccui-cli.css → style.css} +0 -0
  418. /package/radio/{ccui-cli.css → style.css} +0 -0
  419. /package/rate/{ccui-cli.css → style.css} +0 -0
  420. /package/result/{ccui-cli.css → style.css} +0 -0
  421. /package/segmented/{ccui-cli.css → style.css} +0 -0
  422. /package/select/{ccui-cli.css → style.css} +0 -0
  423. /package/skeleton/{ccui-cli.css → style.css} +0 -0
  424. /package/slider/{ccui-cli.css → style.css} +0 -0
  425. /package/space/{ccui-cli.css → style.css} +0 -0
  426. /package/spin/{ccui-cli.css → style.css} +0 -0
  427. /package/splitter/{ccui-cli.css → style.css} +0 -0
  428. /package/status/{ccui-cli.css → style.css} +0 -0
  429. /package/steps/{ccui-cli.css → style.css} +0 -0
  430. /package/switch/{ccui-cli.css → style.css} +0 -0
  431. /package/table/{ccui-cli.css → style.css} +0 -0
  432. /package/tabs/{ccui-cli.css → style.css} +0 -0
  433. /package/tag/{ccui-cli.css → style.css} +0 -0
  434. /package/timeline/{ccui-cli.css → style.css} +0 -0
  435. /package/tooltip/{ccui-cli.css → style.css} +0 -0
  436. /package/tree/{ccui-cli.css → style.css} +0 -0
  437. /package/typography/{ccui-cli.css → style.css} +0 -0
  438. /package/watermark/{ccui-cli.css → style.css} +0 -0
@@ -0,0 +1,3009 @@
1
+ import * as e from "vue";
2
+ import { Teleport as t, Transition as n, computed as r, createTextVNode as i, createVNode as a, defineComponent as o, getCurrentInstance as s, h as c, inject as l, nextTick as u, onMounted as d, onUnmounted as f, ref as p, shallowRef as m, toRef as h, useAttrs as g, watch as _ } from "vue";
3
+ import { autoUpdate as v, computePosition as y, flip as b, offset as x, shift as S } from "@floating-ui/dom";
4
+ //#region \0rolldown/runtime.js
5
+ var C = Object.defineProperty, w = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, E = Object.prototype.hasOwnProperty, D = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), O = (e, t) => {
6
+ let n = {};
7
+ for (var r in e) C(n, r, {
8
+ get: e[r],
9
+ enumerable: !0
10
+ });
11
+ return t || C(n, Symbol.toStringTag, { value: "Module" }), n;
12
+ }, k = (e, t, n, r) => {
13
+ if (t && typeof t == "object" || typeof t == "function") for (var i = T(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !E.call(e, s) && s !== n && C(e, s, {
14
+ get: ((e) => t[e]).bind(null, s),
15
+ enumerable: !(r = w(t, s)) || r.enumerable
16
+ });
17
+ return e;
18
+ }, A = (e, t, n) => (k(e, t, "default"), n && k(n, t, "default"));
19
+ //#endregion
20
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
21
+ function j() {
22
+ return typeof window < "u";
23
+ }
24
+ function ee(e) {
25
+ return N(e) ? (e.nodeName || "").toLowerCase() : "#document";
26
+ }
27
+ function M(e) {
28
+ var t;
29
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
30
+ }
31
+ function N(e) {
32
+ return j() ? e instanceof Node || e instanceof M(e).Node : !1;
33
+ }
34
+ //#endregion
35
+ //#region ../../node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.33_typescript@5.9.3_/node_modules/vue-demi/lib/index.mjs
36
+ var P = /* @__PURE__ */ O({
37
+ Vue: () => e,
38
+ Vue2: () => void 0,
39
+ del: () => L,
40
+ install: () => F,
41
+ isVue2: () => !1,
42
+ isVue3: () => !0,
43
+ set: () => I
44
+ });
45
+ import * as te from "vue";
46
+ A(P, te);
47
+ function F() {}
48
+ function I(e, t, n) {
49
+ return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
50
+ }
51
+ function L(e, t) {
52
+ if (Array.isArray(e)) {
53
+ e.splice(t, 1);
54
+ return;
55
+ }
56
+ delete e[t];
57
+ }
58
+ //#endregion
59
+ //#region ../../node_modules/.pnpm/@floating-ui+vue@1.1.9_vue@3.5.33_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
60
+ function R(e) {
61
+ return typeof e == "object" && !!e && "$el" in e;
62
+ }
63
+ function z(e) {
64
+ if (R(e)) {
65
+ let t = e.$el;
66
+ return N(t) && ee(t) === "#comment" ? null : t;
67
+ }
68
+ return e;
69
+ }
70
+ function B(e) {
71
+ return typeof e == "function" ? e() : (0, P.unref)(e);
72
+ }
73
+ function V(e) {
74
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
75
+ }
76
+ function H(e, t) {
77
+ let n = V(e);
78
+ return Math.round(t * n) / n;
79
+ }
80
+ function U(e, t, n) {
81
+ n === void 0 && (n = {});
82
+ let r = n.whileElementsMounted, i = (0, P.computed)(() => B(n.open) ?? !0), a = (0, P.computed)(() => B(n.middleware)), o = (0, P.computed)(() => B(n.placement) ?? "bottom"), s = (0, P.computed)(() => B(n.strategy) ?? "absolute"), c = (0, P.computed)(() => B(n.transform) ?? !0), l = (0, P.computed)(() => z(e.value)), u = (0, P.computed)(() => z(t.value)), d = (0, P.ref)(0), f = (0, P.ref)(0), p = (0, P.ref)(s.value), m = (0, P.ref)(o.value), h = (0, P.shallowRef)({}), g = (0, P.ref)(!1), _ = (0, P.computed)(() => {
83
+ let e = {
84
+ position: p.value,
85
+ left: "0",
86
+ top: "0"
87
+ };
88
+ if (!u.value) return e;
89
+ let t = H(u.value, d.value), n = H(u.value, f.value);
90
+ return c.value ? {
91
+ ...e,
92
+ transform: "translate(" + t + "px, " + n + "px)",
93
+ ...V(u.value) >= 1.5 && { willChange: "transform" }
94
+ } : {
95
+ position: p.value,
96
+ left: t + "px",
97
+ top: n + "px"
98
+ };
99
+ }), v;
100
+ function b() {
101
+ if (l.value == null || u.value == null) return;
102
+ let e = i.value;
103
+ y(l.value, u.value, {
104
+ middleware: a.value,
105
+ placement: o.value,
106
+ strategy: s.value
107
+ }).then((t) => {
108
+ d.value = t.x, f.value = t.y, p.value = t.strategy, m.value = t.placement, h.value = t.middlewareData, g.value = e !== !1;
109
+ });
110
+ }
111
+ function x() {
112
+ typeof v == "function" && (v(), v = void 0);
113
+ }
114
+ function S() {
115
+ if (x(), r === void 0) {
116
+ b();
117
+ return;
118
+ }
119
+ if (l.value != null && u.value != null) {
120
+ v = r(l.value, u.value, b);
121
+ return;
122
+ }
123
+ }
124
+ function C() {
125
+ i.value || (g.value = !1);
126
+ }
127
+ return (0, P.watch)([
128
+ a,
129
+ o,
130
+ s,
131
+ i
132
+ ], b, { flush: "sync" }), (0, P.watch)([l, u], S, { flush: "sync" }), (0, P.watch)(i, C, { flush: "sync" }), (0, P.getCurrentScope)() && (0, P.onScopeDispose)(x), {
133
+ x: (0, P.shallowReadonly)(d),
134
+ y: (0, P.shallowReadonly)(f),
135
+ strategy: (0, P.shallowReadonly)(p),
136
+ placement: (0, P.shallowReadonly)(m),
137
+ middlewareData: (0, P.shallowReadonly)(h),
138
+ isPositioned: (0, P.shallowReadonly)(g),
139
+ floatingStyles: _,
140
+ update: b
141
+ };
142
+ }
143
+ //#endregion
144
+ //#region ../ccui/ui/shared/hooks/use-namespace.ts
145
+ function W(e, t, n) {
146
+ let r = e;
147
+ return t && (r += `__${t}`), n && (r += `--${n}`), r;
148
+ }
149
+ function ne(e, t = !1) {
150
+ let n = t ? `.ccui-${e}` : `ccui-${e}`;
151
+ return {
152
+ b: () => W(n),
153
+ e: (e) => e ? W(n, e) : "",
154
+ m: (e) => e ? W(n, "", e) : "",
155
+ em: (e, t) => e && t ? W(n, e, t) : "",
156
+ is: (e) => `is-${e}`
157
+ };
158
+ }
159
+ (/* @__PURE__ */ D(((e, t) => {
160
+ (function(n, r) {
161
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
162
+ })(e, (function() {
163
+ var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
164
+ name: "en",
165
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
166
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
167
+ ordinal: function(e) {
168
+ var t = [
169
+ "th",
170
+ "st",
171
+ "nd",
172
+ "rd"
173
+ ], n = e % 100;
174
+ return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
175
+ }
176
+ }, _ = function(e, t, n) {
177
+ var r = String(e);
178
+ return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
179
+ }, v = {
180
+ s: _,
181
+ z: function(e) {
182
+ var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
183
+ return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
184
+ },
185
+ m: function e(t, n) {
186
+ if (t.date() < n.date()) return -e(n, t);
187
+ var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
188
+ return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
189
+ },
190
+ a: function(e) {
191
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
192
+ },
193
+ p: function(e) {
194
+ return {
195
+ M: l,
196
+ y: d,
197
+ w: c,
198
+ d: s,
199
+ D: f,
200
+ h: o,
201
+ m: a,
202
+ s: i,
203
+ ms: r,
204
+ Q: u
205
+ }[e] || String(e || "").toLowerCase().replace(/s$/, "");
206
+ },
207
+ u: function(e) {
208
+ return e === void 0;
209
+ }
210
+ }, y = "en", b = {};
211
+ b[y] = g;
212
+ var x = "$isDayjsObject", S = function(e) {
213
+ return e instanceof E || !(!e || !e[x]);
214
+ }, C = function e(t, n, r) {
215
+ var i;
216
+ if (!t) return y;
217
+ if (typeof t == "string") {
218
+ var a = t.toLowerCase();
219
+ b[a] && (i = a), n && (b[a] = n, i = a);
220
+ var o = t.split("-");
221
+ if (!i && o.length > 1) return e(o[0]);
222
+ } else {
223
+ var s = t.name;
224
+ b[s] = t, i = s;
225
+ }
226
+ return !r && i && (y = i), i || !r && y;
227
+ }, w = function(e, t) {
228
+ if (S(e)) return e.clone();
229
+ var n = typeof t == "object" ? t : {};
230
+ return n.date = e, n.args = arguments, new E(n);
231
+ }, T = v;
232
+ T.l = C, T.i = S, T.w = function(e, t) {
233
+ return w(e, {
234
+ locale: t.$L,
235
+ utc: t.$u,
236
+ x: t.$x,
237
+ $offset: t.$offset
238
+ });
239
+ };
240
+ var E = function() {
241
+ function g(e) {
242
+ this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
243
+ }
244
+ var _ = g.prototype;
245
+ return _.parse = function(e) {
246
+ this.$d = function(e) {
247
+ var t = e.date, n = e.utc;
248
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
249
+ if (T.u(t)) return /* @__PURE__ */ new Date();
250
+ if (t instanceof Date) return new Date(t);
251
+ if (typeof t == "string" && !/Z$/i.test(t)) {
252
+ var r = t.match(m);
253
+ if (r) {
254
+ var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
255
+ return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
256
+ }
257
+ }
258
+ return new Date(t);
259
+ }(e), this.init();
260
+ }, _.init = function() {
261
+ var e = this.$d;
262
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
263
+ }, _.$utils = function() {
264
+ return T;
265
+ }, _.isValid = function() {
266
+ return this.$d.toString() !== p;
267
+ }, _.isSame = function(e, t) {
268
+ var n = w(e);
269
+ return this.startOf(t) <= n && n <= this.endOf(t);
270
+ }, _.isAfter = function(e, t) {
271
+ return w(e) < this.startOf(t);
272
+ }, _.isBefore = function(e, t) {
273
+ return this.endOf(t) < w(e);
274
+ }, _.$g = function(e, t, n) {
275
+ return T.u(e) ? this[t] : this.set(n, e);
276
+ }, _.unix = function() {
277
+ return Math.floor(this.valueOf() / 1e3);
278
+ }, _.valueOf = function() {
279
+ return this.$d.getTime();
280
+ }, _.startOf = function(e, t) {
281
+ var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
282
+ var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
283
+ return r ? i : i.endOf(s);
284
+ }, m = function(e, t) {
285
+ return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
286
+ 0,
287
+ 0,
288
+ 0,
289
+ 0
290
+ ] : [
291
+ 23,
292
+ 59,
293
+ 59,
294
+ 999
295
+ ]).slice(t)), n);
296
+ }, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
297
+ switch (u) {
298
+ case d: return r ? p(1, 0) : p(31, 11);
299
+ case l: return r ? p(1, g) : p(0, g + 1);
300
+ case c:
301
+ var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
302
+ return p(r ? _ - b : _ + (6 - b), g);
303
+ case s:
304
+ case f: return m(v + "Hours", 0);
305
+ case o: return m(v + "Minutes", 1);
306
+ case a: return m(v + "Seconds", 2);
307
+ case i: return m(v + "Milliseconds", 3);
308
+ default: return this.clone();
309
+ }
310
+ }, _.endOf = function(e) {
311
+ return this.startOf(e, !1);
312
+ }, _.$set = function(e, t) {
313
+ var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
314
+ if (c === l || c === d) {
315
+ var h = this.clone().set(f, 1);
316
+ h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
317
+ } else p && this.$d[p](m);
318
+ return this.init(), this;
319
+ }, _.set = function(e, t) {
320
+ return this.clone().$set(e, t);
321
+ }, _.get = function(e) {
322
+ return this[T.p(e)]();
323
+ }, _.add = function(r, u) {
324
+ var f, p = this;
325
+ r = Number(r);
326
+ var m = T.p(u), h = function(e) {
327
+ var t = w(p);
328
+ return T.w(t.date(t.date() + Math.round(e * r)), p);
329
+ };
330
+ if (m === l) return this.set(l, this.$M + r);
331
+ if (m === d) return this.set(d, this.$y + r);
332
+ if (m === s) return h(1);
333
+ if (m === c) return h(7);
334
+ var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
335
+ return T.w(_, this);
336
+ }, _.subtract = function(e, t) {
337
+ return this.add(-1 * e, t);
338
+ }, _.format = function(e) {
339
+ var t = this, n = this.$locale();
340
+ if (!this.isValid()) return n.invalidDate || p;
341
+ var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
342
+ return e && (e[n] || e(t, r)) || i[n].slice(0, a);
343
+ }, f = function(e) {
344
+ return T.s(a % 12 || 12, e, "0");
345
+ }, m = u || function(e, t, n) {
346
+ var r = e < 12 ? "AM" : "PM";
347
+ return n ? r.toLowerCase() : r;
348
+ };
349
+ return r.replace(h, (function(e, r) {
350
+ return r || function(e) {
351
+ switch (e) {
352
+ case "YY": return String(t.$y).slice(-2);
353
+ case "YYYY": return T.s(t.$y, 4, "0");
354
+ case "M": return s + 1;
355
+ case "MM": return T.s(s + 1, 2, "0");
356
+ case "MMM": return d(n.monthsShort, s, l, 3);
357
+ case "MMMM": return d(l, s);
358
+ case "D": return t.$D;
359
+ case "DD": return T.s(t.$D, 2, "0");
360
+ case "d": return String(t.$W);
361
+ case "dd": return d(n.weekdaysMin, t.$W, c, 2);
362
+ case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
363
+ case "dddd": return c[t.$W];
364
+ case "H": return String(a);
365
+ case "HH": return T.s(a, 2, "0");
366
+ case "h": return f(1);
367
+ case "hh": return f(2);
368
+ case "a": return m(a, o, !0);
369
+ case "A": return m(a, o, !1);
370
+ case "m": return String(o);
371
+ case "mm": return T.s(o, 2, "0");
372
+ case "s": return String(t.$s);
373
+ case "ss": return T.s(t.$s, 2, "0");
374
+ case "SSS": return T.s(t.$ms, 3, "0");
375
+ case "Z": return i;
376
+ }
377
+ return null;
378
+ }(e) || i.replace(":", "");
379
+ }));
380
+ }, _.utcOffset = function() {
381
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
382
+ }, _.diff = function(r, f, p) {
383
+ var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
384
+ return T.m(h, _);
385
+ };
386
+ switch (g) {
387
+ case d:
388
+ m = b() / 12;
389
+ break;
390
+ case l:
391
+ m = b();
392
+ break;
393
+ case u:
394
+ m = b() / 3;
395
+ break;
396
+ case c:
397
+ m = (y - v) / 6048e5;
398
+ break;
399
+ case s:
400
+ m = (y - v) / 864e5;
401
+ break;
402
+ case o:
403
+ m = y / n;
404
+ break;
405
+ case a:
406
+ m = y / t;
407
+ break;
408
+ case i:
409
+ m = y / e;
410
+ break;
411
+ default: m = y;
412
+ }
413
+ return p ? m : T.a(m);
414
+ }, _.daysInMonth = function() {
415
+ return this.endOf(l).$D;
416
+ }, _.$locale = function() {
417
+ return b[this.$L];
418
+ }, _.locale = function(e, t) {
419
+ if (!e) return this.$L;
420
+ var n = this.clone(), r = C(e, t, !0);
421
+ return r && (n.$L = r), n;
422
+ }, _.clone = function() {
423
+ return T.w(this.$d, this);
424
+ }, _.toDate = function() {
425
+ return new Date(this.valueOf());
426
+ }, _.toJSON = function() {
427
+ return this.isValid() ? this.toISOString() : null;
428
+ }, _.toISOString = function() {
429
+ return this.$d.toISOString();
430
+ }, _.toString = function() {
431
+ return this.$d.toUTCString();
432
+ }, g;
433
+ }(), D = E.prototype;
434
+ return w.prototype = D, [
435
+ ["$ms", r],
436
+ ["$s", i],
437
+ ["$m", a],
438
+ ["$H", o],
439
+ ["$W", s],
440
+ ["$M", l],
441
+ ["$y", d],
442
+ ["$D", f]
443
+ ].forEach((function(e) {
444
+ D[e[1]] = function(t) {
445
+ return this.$g(t, e[0], e[1]);
446
+ };
447
+ })), w.extend = function(e, t) {
448
+ return e.$i ||= (e(t, E, w), !0), w;
449
+ }, w.locale = C, w.isDayjs = S, w.unix = function(e) {
450
+ return w(1e3 * e);
451
+ }, w.en = b[y], w.Ls = b, w.p = {}, w;
452
+ }));
453
+ })))();
454
+ //#endregion
455
+ //#region ../ccui/ui/locale/zh-CN.ts
456
+ var re = {
457
+ locale: "zh-CN",
458
+ Modal: {
459
+ okText: "确 定",
460
+ cancelText: "取 消",
461
+ justOkText: "知道了"
462
+ },
463
+ Popconfirm: {
464
+ okText: "确 定",
465
+ cancelText: "取 消"
466
+ },
467
+ Empty: { description: "暂无数据" },
468
+ AutoComplete: { notFoundContent: "暂无数据" },
469
+ Mentions: { notFoundContent: "暂无数据" },
470
+ Cascader: { notFoundContent: "暂无数据" },
471
+ TreeSelect: {
472
+ notFoundContent: "暂无数据",
473
+ searchPlaceholder: "搜索"
474
+ },
475
+ Select: { notFoundContent: "暂无数据" },
476
+ Pagination: {
477
+ itemsPerPage: "条/页",
478
+ jumpTo: "跳至",
479
+ page: "页",
480
+ prevPage: "上一页",
481
+ nextPage: "下一页",
482
+ total: "共 {total} 条",
483
+ pagination: "分页"
484
+ },
485
+ Image: {
486
+ loading: "加载中",
487
+ error: "加载失败"
488
+ },
489
+ DatePicker: {
490
+ placeholder: "请选择日期",
491
+ rangePlaceholder: ["开始日期", "结束日期"],
492
+ timePlaceholder: "请选择时间",
493
+ weekdaysShort: [
494
+ "日",
495
+ "一",
496
+ "二",
497
+ "三",
498
+ "四",
499
+ "五",
500
+ "六"
501
+ ],
502
+ panelLabelFormat: "YYYY 年 M 月",
503
+ monthNamesShort: [
504
+ "1 月",
505
+ "2 月",
506
+ "3 月",
507
+ "4 月",
508
+ "5 月",
509
+ "6 月",
510
+ "7 月",
511
+ "8 月",
512
+ "9 月",
513
+ "10 月",
514
+ "11 月",
515
+ "12 月"
516
+ ],
517
+ quarterNames: [
518
+ "一季度",
519
+ "二季度",
520
+ "三季度",
521
+ "四季度"
522
+ ],
523
+ weekFormat: "{weekYear} 年第 {weekNumber} 周",
524
+ weekHeader: "周",
525
+ now: "此刻",
526
+ ok: "确定",
527
+ prevYearLabel: "前一年",
528
+ prevMonthLabel: "上个月",
529
+ nextYearLabel: "后一年",
530
+ nextMonthLabel: "下个月",
531
+ clearLabel: "清除"
532
+ },
533
+ Calendar: {
534
+ weekdaysShort: [
535
+ "日",
536
+ "一",
537
+ "二",
538
+ "三",
539
+ "四",
540
+ "五",
541
+ "六"
542
+ ],
543
+ prevMonthLabel: "上个月",
544
+ nextMonthLabel: "下个月",
545
+ todayLabel: "今天",
546
+ monthFormat: "YYYY 年 M 月"
547
+ }
548
+ }, ie = Symbol("ccui-config");
549
+ //#endregion
550
+ //#region ../ccui/ui/config-provider/src/config-provider.tsx
551
+ function ae() {
552
+ return l(ie, {
553
+ prefixCls: "ccui",
554
+ componentSize: "middle",
555
+ locale: re,
556
+ direction: "ltr",
557
+ theme: void 0,
558
+ iconPrefixCls: "ccui-icon"
559
+ });
560
+ }
561
+ //#endregion
562
+ //#region ../ccui/ui/form/src/form-types.ts
563
+ var oe = Symbol("ccuiFormItem"), G = /^[a-z0-9]+(-[a-z0-9]+)*$/, K = (e, t, n, r = "") => {
564
+ let i = e.split(":");
565
+ if (e.slice(0, 1) === "@") {
566
+ if (i.length < 2 || i.length > 3) return null;
567
+ r = i.shift().slice(1);
568
+ }
569
+ if (i.length > 3 || !i.length) return null;
570
+ if (i.length > 1) {
571
+ let e = i.pop(), n = i.pop(), a = {
572
+ provider: i.length > 0 ? i[0] : r,
573
+ prefix: n,
574
+ name: e
575
+ };
576
+ return t && !q(a) ? null : a;
577
+ }
578
+ let a = i[0], o = a.split("-");
579
+ if (o.length > 1) {
580
+ let e = {
581
+ provider: r,
582
+ prefix: o.shift(),
583
+ name: o.join("-")
584
+ };
585
+ return t && !q(e) ? null : e;
586
+ }
587
+ if (n && r === "") {
588
+ let e = {
589
+ provider: r,
590
+ prefix: "",
591
+ name: a
592
+ };
593
+ return t && !q(e, n) ? null : e;
594
+ }
595
+ return null;
596
+ }, q = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
597
+ function J(e, t) {
598
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
599
+ function a(e) {
600
+ if (n[e]) return i[e] = [];
601
+ if (!(e in i)) {
602
+ i[e] = null;
603
+ let t = r[e] && r[e].parent, n = t && a(t);
604
+ n && (i[e] = [t].concat(n));
605
+ }
606
+ return i[e];
607
+ }
608
+ return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
609
+ }
610
+ var se = Object.freeze({
611
+ left: 0,
612
+ top: 0,
613
+ width: 16,
614
+ height: 16
615
+ }), Y = Object.freeze({
616
+ rotate: 0,
617
+ vFlip: !1,
618
+ hFlip: !1
619
+ }), X = Object.freeze({
620
+ ...se,
621
+ ...Y
622
+ }), ce = Object.freeze({
623
+ ...X,
624
+ body: "",
625
+ hidden: !1
626
+ });
627
+ function le(e, t) {
628
+ let n = {};
629
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
630
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
631
+ return r && (n.rotate = r), n;
632
+ }
633
+ function ue(e, t) {
634
+ let n = le(e, t);
635
+ for (let r in ce) r in Y ? r in e && !(r in n) && (n[r] = Y[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
636
+ return n;
637
+ }
638
+ function de(e, t, n) {
639
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
640
+ function o(e) {
641
+ a = ue(r[e] || i[e], a);
642
+ }
643
+ return o(t), n.forEach(o), ue(e, a);
644
+ }
645
+ function fe(e, t) {
646
+ let n = [];
647
+ if (typeof e != "object" || typeof e.icons != "object") return n;
648
+ e.not_found instanceof Array && e.not_found.forEach((e) => {
649
+ t(e, null), n.push(e);
650
+ });
651
+ let r = J(e);
652
+ for (let i in r) {
653
+ let a = r[i];
654
+ a && (t(i, de(e, i, a)), n.push(i));
655
+ }
656
+ return n;
657
+ }
658
+ var pe = {
659
+ provider: "",
660
+ aliases: {},
661
+ not_found: {},
662
+ ...se
663
+ };
664
+ function me(e, t) {
665
+ for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
666
+ return !0;
667
+ }
668
+ function he(e) {
669
+ if (typeof e != "object" || !e) return null;
670
+ let t = e;
671
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !me(e, pe)) return null;
672
+ let n = t.icons;
673
+ for (let e in n) {
674
+ let t = n[e];
675
+ if (!e || typeof t.body != "string" || !me(t, ce)) return null;
676
+ }
677
+ let r = t.aliases || Object.create(null);
678
+ for (let e in r) {
679
+ let t = r[e], i = t.parent;
680
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !me(t, ce)) return null;
681
+ }
682
+ return t;
683
+ }
684
+ var Z = Object.create(null);
685
+ function ge(e, t) {
686
+ return {
687
+ provider: e,
688
+ prefix: t,
689
+ icons: Object.create(null),
690
+ missing: /* @__PURE__ */ new Set()
691
+ };
692
+ }
693
+ function Q(e, t) {
694
+ let n = Z[e] || (Z[e] = Object.create(null));
695
+ return n[t] || (n[t] = ge(e, t));
696
+ }
697
+ function _e(e, t) {
698
+ return he(t) ? fe(t, (t, n) => {
699
+ n ? e.icons[t] = n : e.missing.add(t);
700
+ }) : [];
701
+ }
702
+ function ve(e, t, n) {
703
+ try {
704
+ if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
705
+ } catch {}
706
+ return !1;
707
+ }
708
+ var $ = !1;
709
+ function ye(e) {
710
+ return typeof e == "boolean" && ($ = e), $;
711
+ }
712
+ function be(e) {
713
+ let t = typeof e == "string" ? K(e, !0, $) : e;
714
+ if (t) {
715
+ let e = Q(t.provider, t.prefix), n = t.name;
716
+ return e.icons[n] || (e.missing.has(n) ? null : void 0);
717
+ }
718
+ }
719
+ function xe(e, t) {
720
+ let n = K(e, !0, $);
721
+ if (!n) return !1;
722
+ let r = Q(n.provider, n.prefix);
723
+ return t ? ve(r, n.name, t) : (r.missing.add(n.name), !0);
724
+ }
725
+ function Se(e, t) {
726
+ if (typeof e != "object") return !1;
727
+ if (typeof t != "string" && (t = e.provider || ""), $ && !t && !e.prefix) {
728
+ let t = !1;
729
+ return he(e) && (e.prefix = "", fe(e, (e, n) => {
730
+ xe(e, n) && (t = !0);
731
+ })), t;
732
+ }
733
+ let n = e.prefix;
734
+ return q({
735
+ prefix: n,
736
+ name: "a"
737
+ }) ? !!_e(Q(t, n), e) : !1;
738
+ }
739
+ var Ce = Object.freeze({
740
+ width: null,
741
+ height: null
742
+ }), we = Object.freeze({
743
+ ...Ce,
744
+ ...Y
745
+ }), Te = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ee = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
746
+ function De(e, t, n) {
747
+ if (t === 1) return e;
748
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
749
+ if (typeof e != "string") return e;
750
+ let r = e.split(Te);
751
+ if (r === null || !r.length) return e;
752
+ let i = [], a = r.shift(), o = Ee.test(a);
753
+ for (;;) {
754
+ if (o) {
755
+ let e = parseFloat(a);
756
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
757
+ } else i.push(a);
758
+ if (a = r.shift(), a === void 0) return i.join("");
759
+ o = !o;
760
+ }
761
+ }
762
+ function Oe(e, t = "defs") {
763
+ let n = "", r = e.indexOf("<" + t);
764
+ for (; r >= 0;) {
765
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
766
+ if (i === -1 || a === -1) break;
767
+ let o = e.indexOf(">", a);
768
+ if (o === -1) break;
769
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
770
+ }
771
+ return {
772
+ defs: n,
773
+ content: e
774
+ };
775
+ }
776
+ function ke(e, t) {
777
+ return e ? "<defs>" + e + "</defs>" + t : t;
778
+ }
779
+ function Ae(e, t, n) {
780
+ let r = Oe(e);
781
+ return ke(r.defs, t + r.content + n);
782
+ }
783
+ var je = (e) => e === "unset" || e === "undefined" || e === "none";
784
+ function Me(e, t) {
785
+ let n = {
786
+ ...X,
787
+ ...e
788
+ }, r = {
789
+ ...we,
790
+ ...t
791
+ }, i = {
792
+ left: n.left,
793
+ top: n.top,
794
+ width: n.width,
795
+ height: n.height
796
+ }, a = n.body;
797
+ [n, r].forEach((e) => {
798
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
799
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
800
+ let s;
801
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
802
+ case 1:
803
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
804
+ break;
805
+ case 2:
806
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
807
+ break;
808
+ case 3:
809
+ s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
810
+ break;
811
+ }
812
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = Ae(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
813
+ });
814
+ let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
815
+ o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = De(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? De(u, l / c) : s === "auto" ? l : s);
816
+ let f = {}, p = (e, t) => {
817
+ je(t) || (f[e] = t.toString());
818
+ };
819
+ p("width", u), p("height", d);
820
+ let m = [
821
+ i.left,
822
+ i.top,
823
+ c,
824
+ l
825
+ ];
826
+ return f.viewBox = m.join(" "), {
827
+ attributes: f,
828
+ viewBox: m,
829
+ body: a
830
+ };
831
+ }
832
+ var Ne = /\sid="(\S+)"/g, Pe = /* @__PURE__ */ new Map();
833
+ function Fe(e) {
834
+ e = e.replace(/[0-9]+$/, "") || "a";
835
+ let t = Pe.get(e) || 0;
836
+ return Pe.set(e, t + 1), t ? `${e}${t}` : e;
837
+ }
838
+ function Ie(e) {
839
+ let t = [], n;
840
+ for (; n = Ne.exec(e);) t.push(n[1]);
841
+ if (!t.length) return e;
842
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
843
+ return t.forEach((t) => {
844
+ let n = Fe(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
845
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
846
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
847
+ }
848
+ var Le = Object.create(null);
849
+ function Re(e, t) {
850
+ Le[e] = t;
851
+ }
852
+ function ze(e) {
853
+ return Le[e] || Le[""];
854
+ }
855
+ function Be(e) {
856
+ let t;
857
+ if (typeof e.resources == "string") t = [e.resources];
858
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
859
+ return {
860
+ resources: t,
861
+ path: e.path || "/",
862
+ maxURL: e.maxURL || 500,
863
+ rotate: e.rotate || 750,
864
+ timeout: e.timeout || 5e3,
865
+ random: e.random === !0,
866
+ index: e.index || 0,
867
+ dataAfterTimeout: e.dataAfterTimeout !== !1
868
+ };
869
+ }
870
+ for (var Ve = Object.create(null), He = ["https://api.simplesvg.com", "https://api.unisvg.com"], Ue = []; He.length > 0;) He.length === 1 || Math.random() > .5 ? Ue.push(He.shift()) : Ue.push(He.pop());
871
+ Ve[""] = Be({ resources: ["https://api.iconify.design"].concat(Ue) });
872
+ function We(e, t) {
873
+ let n = Be(t);
874
+ return n === null ? !1 : (Ve[e] = n, !0);
875
+ }
876
+ function Ge(e) {
877
+ return Ve[e];
878
+ }
879
+ var Ke = (() => {
880
+ let e;
881
+ try {
882
+ if (e = fetch, typeof e == "function") return e;
883
+ } catch {}
884
+ })();
885
+ function qe(e, t) {
886
+ let n = Ge(e);
887
+ if (!n) return 0;
888
+ let r;
889
+ if (!n.maxURL) r = 0;
890
+ else {
891
+ let e = 0;
892
+ n.resources.forEach((t) => {
893
+ e = Math.max(e, t.length);
894
+ });
895
+ let i = t + ".json?icons=";
896
+ r = n.maxURL - e - n.path.length - i.length;
897
+ }
898
+ return r;
899
+ }
900
+ function Je(e) {
901
+ return e === 404;
902
+ }
903
+ var Ye = (e, t, n) => {
904
+ let r = [], i = qe(e, t), a = "icons", o = {
905
+ type: a,
906
+ provider: e,
907
+ prefix: t,
908
+ icons: []
909
+ }, s = 0;
910
+ return n.forEach((n, c) => {
911
+ s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
912
+ type: a,
913
+ provider: e,
914
+ prefix: t,
915
+ icons: []
916
+ }, s = n.length), o.icons.push(n);
917
+ }), r.push(o), r;
918
+ };
919
+ function Xe(e) {
920
+ if (typeof e == "string") {
921
+ let t = Ge(e);
922
+ if (t) return t.path;
923
+ }
924
+ return "/";
925
+ }
926
+ var Ze = {
927
+ prepare: Ye,
928
+ send: (e, t, n) => {
929
+ if (!Ke) {
930
+ n("abort", 424);
931
+ return;
932
+ }
933
+ let r = Xe(t.provider);
934
+ switch (t.type) {
935
+ case "icons": {
936
+ let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
937
+ r += e + ".json?" + i.toString();
938
+ break;
939
+ }
940
+ case "custom": {
941
+ let e = t.uri;
942
+ r += e.slice(0, 1) === "/" ? e.slice(1) : e;
943
+ break;
944
+ }
945
+ default:
946
+ n("abort", 400);
947
+ return;
948
+ }
949
+ let i = 503;
950
+ Ke(e + r).then((e) => {
951
+ let t = e.status;
952
+ if (t !== 200) {
953
+ setTimeout(() => {
954
+ n(Je(t) ? "abort" : "next", t);
955
+ });
956
+ return;
957
+ }
958
+ return i = 501, e.json();
959
+ }).then((e) => {
960
+ if (typeof e != "object" || !e) {
961
+ setTimeout(() => {
962
+ e === 404 ? n("abort", e) : n("next", i);
963
+ });
964
+ return;
965
+ }
966
+ setTimeout(() => {
967
+ n("success", e);
968
+ });
969
+ }).catch(() => {
970
+ n("next", i);
971
+ });
972
+ }
973
+ };
974
+ function Qe(e, t) {
975
+ e.forEach((e) => {
976
+ let n = e.loaderCallbacks;
977
+ n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
978
+ });
979
+ }
980
+ function $e(e) {
981
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
982
+ e.pendingCallbacksFlag = !1;
983
+ let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
984
+ if (!t.length) return;
985
+ let n = !1, r = e.provider, i = e.prefix;
986
+ t.forEach((t) => {
987
+ let a = t.icons, o = a.pending.length;
988
+ a.pending = a.pending.filter((t) => {
989
+ if (t.prefix !== i) return !0;
990
+ let o = t.name;
991
+ if (e.icons[o]) a.loaded.push({
992
+ provider: r,
993
+ prefix: i,
994
+ name: o
995
+ });
996
+ else if (e.missing.has(o)) a.missing.push({
997
+ provider: r,
998
+ prefix: i,
999
+ name: o
1000
+ });
1001
+ else return n = !0, !0;
1002
+ return !1;
1003
+ }), a.pending.length !== o && (n || Qe([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
1004
+ });
1005
+ }));
1006
+ }
1007
+ var et = 0;
1008
+ function tt(e, t, n) {
1009
+ let r = et++, i = Qe.bind(null, n, r);
1010
+ if (!t.pending.length) return i;
1011
+ let a = {
1012
+ id: r,
1013
+ icons: t,
1014
+ callback: e,
1015
+ abort: i
1016
+ };
1017
+ return n.forEach((e) => {
1018
+ (e.loaderCallbacks ||= []).push(a);
1019
+ }), i;
1020
+ }
1021
+ function nt(e) {
1022
+ let t = {
1023
+ loaded: [],
1024
+ missing: [],
1025
+ pending: []
1026
+ }, n = Object.create(null);
1027
+ e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
1028
+ let r = {
1029
+ provider: "",
1030
+ prefix: "",
1031
+ name: ""
1032
+ };
1033
+ return e.forEach((e) => {
1034
+ if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
1035
+ r = e;
1036
+ let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = Q(i, a)), l;
1037
+ l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
1038
+ let u = {
1039
+ provider: i,
1040
+ prefix: a,
1041
+ name: o
1042
+ };
1043
+ l.push(u);
1044
+ }), t;
1045
+ }
1046
+ function rt(e, t = !0, n = !1) {
1047
+ let r = [];
1048
+ return e.forEach((e) => {
1049
+ let i = typeof e == "string" ? K(e, t, n) : e;
1050
+ i && r.push(i);
1051
+ }), r;
1052
+ }
1053
+ var it = {
1054
+ resources: [],
1055
+ index: 0,
1056
+ timeout: 2e3,
1057
+ rotate: 750,
1058
+ random: !1,
1059
+ dataAfterTimeout: !1
1060
+ };
1061
+ function at(e, t, n, r) {
1062
+ let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
1063
+ if (e.random) {
1064
+ let t = e.resources.slice(0);
1065
+ for (o = []; t.length > 1;) {
1066
+ let e = Math.floor(Math.random() * t.length);
1067
+ o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
1068
+ }
1069
+ o = o.concat(t);
1070
+ } else o = e.resources.slice(a).concat(e.resources.slice(0, a));
1071
+ let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
1072
+ typeof r == "function" && p.push(r);
1073
+ function m() {
1074
+ d &&= (clearTimeout(d), null);
1075
+ }
1076
+ function h() {
1077
+ c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
1078
+ e.status === "pending" && (e.status = "aborted");
1079
+ }), f = [];
1080
+ }
1081
+ function g(e, t) {
1082
+ t && (p = []), typeof e == "function" && p.push(e);
1083
+ }
1084
+ function _() {
1085
+ return {
1086
+ startTime: s,
1087
+ payload: t,
1088
+ status: c,
1089
+ queriesSent: l,
1090
+ queriesPending: f.length,
1091
+ subscribe: g,
1092
+ abort: h
1093
+ };
1094
+ }
1095
+ function v() {
1096
+ c = "failed", p.forEach((e) => {
1097
+ e(void 0, u);
1098
+ });
1099
+ }
1100
+ function y() {
1101
+ f.forEach((e) => {
1102
+ e.status === "pending" && (e.status = "aborted");
1103
+ }), f = [];
1104
+ }
1105
+ function b(t, n, r) {
1106
+ let i = n !== "success";
1107
+ switch (f = f.filter((e) => e !== t), c) {
1108
+ case "pending": break;
1109
+ case "failed":
1110
+ if (i || !e.dataAfterTimeout) return;
1111
+ break;
1112
+ default: return;
1113
+ }
1114
+ if (n === "abort") {
1115
+ u = r, v();
1116
+ return;
1117
+ }
1118
+ if (i) {
1119
+ u = r, f.length || (o.length ? x() : v());
1120
+ return;
1121
+ }
1122
+ if (m(), y(), !e.random) {
1123
+ let n = e.resources.indexOf(t.resource);
1124
+ n !== -1 && n !== e.index && (e.index = n);
1125
+ }
1126
+ c = "completed", p.forEach((e) => {
1127
+ e(r);
1128
+ });
1129
+ }
1130
+ function x() {
1131
+ if (c !== "pending") return;
1132
+ m();
1133
+ let r = o.shift();
1134
+ if (r === void 0) {
1135
+ if (f.length) {
1136
+ d = setTimeout(() => {
1137
+ m(), c === "pending" && (y(), v());
1138
+ }, e.timeout);
1139
+ return;
1140
+ }
1141
+ v();
1142
+ return;
1143
+ }
1144
+ let i = {
1145
+ status: "pending",
1146
+ resource: r,
1147
+ callback: (e, t) => {
1148
+ b(i, e, t);
1149
+ }
1150
+ };
1151
+ f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
1152
+ }
1153
+ return setTimeout(x), _;
1154
+ }
1155
+ function ot(e) {
1156
+ let t = {
1157
+ ...it,
1158
+ ...e
1159
+ }, n = [];
1160
+ function r() {
1161
+ n = n.filter((e) => e().status === "pending");
1162
+ }
1163
+ function i(e, i, a) {
1164
+ let o = at(t, e, i, (e, t) => {
1165
+ r(), a && a(e, t);
1166
+ });
1167
+ return n.push(o), o;
1168
+ }
1169
+ function a(e) {
1170
+ return n.find((t) => e(t)) || null;
1171
+ }
1172
+ return {
1173
+ query: i,
1174
+ find: a,
1175
+ setIndex: (e) => {
1176
+ t.index = e;
1177
+ },
1178
+ getIndex: () => t.index,
1179
+ cleanup: r
1180
+ };
1181
+ }
1182
+ function st() {}
1183
+ var ct = Object.create(null);
1184
+ function lt(e) {
1185
+ if (!ct[e]) {
1186
+ let t = Ge(e);
1187
+ if (!t) return;
1188
+ ct[e] = {
1189
+ config: t,
1190
+ redundancy: ot(t)
1191
+ };
1192
+ }
1193
+ return ct[e];
1194
+ }
1195
+ function ut(e, t, n) {
1196
+ let r, i;
1197
+ if (typeof e == "string") {
1198
+ let t = ze(e);
1199
+ if (!t) return n(void 0, 424), st;
1200
+ i = t.send;
1201
+ let a = lt(e);
1202
+ a && (r = a.redundancy);
1203
+ } else {
1204
+ let t = Be(e);
1205
+ if (t) {
1206
+ r = ot(t);
1207
+ let n = ze(e.resources ? e.resources[0] : "");
1208
+ n && (i = n.send);
1209
+ }
1210
+ }
1211
+ return !r || !i ? (n(void 0, 424), st) : r.query(t, i, n)().abort;
1212
+ }
1213
+ function dt() {}
1214
+ function ft(e) {
1215
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1216
+ e.iconsLoaderFlag = !1, $e(e);
1217
+ }));
1218
+ }
1219
+ function pt(e) {
1220
+ let t = [], n = [];
1221
+ return e.forEach((e) => {
1222
+ (e.match(G) ? t : n).push(e);
1223
+ }), {
1224
+ valid: t,
1225
+ invalid: n
1226
+ };
1227
+ }
1228
+ function mt(e, t, n) {
1229
+ function r() {
1230
+ let n = e.pendingIcons;
1231
+ t.forEach((t) => {
1232
+ n && n.delete(t), e.icons[t] || e.missing.add(t);
1233
+ });
1234
+ }
1235
+ if (n && typeof n == "object") try {
1236
+ if (!_e(e, n).length) {
1237
+ r();
1238
+ return;
1239
+ }
1240
+ } catch (e) {
1241
+ console.error(e);
1242
+ }
1243
+ r(), ft(e);
1244
+ }
1245
+ function ht(e, t) {
1246
+ e instanceof Promise ? e.then((e) => {
1247
+ t(e);
1248
+ }).catch(() => {
1249
+ t(null);
1250
+ }) : t(e);
1251
+ }
1252
+ function gt(e, t) {
1253
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1254
+ e.iconsQueueFlag = !1;
1255
+ let { provider: t, prefix: n } = e, r = e.iconsToLoad;
1256
+ if (delete e.iconsToLoad, !r || !r.length) return;
1257
+ let i = e.loadIcon;
1258
+ if (e.loadIcons && (r.length > 1 || !i)) {
1259
+ ht(e.loadIcons(r, n, t), (t) => {
1260
+ mt(e, r, t);
1261
+ });
1262
+ return;
1263
+ }
1264
+ if (i) {
1265
+ r.forEach((r) => {
1266
+ ht(i(r, n, t), (t) => {
1267
+ mt(e, [r], t ? {
1268
+ prefix: n,
1269
+ icons: { [r]: t }
1270
+ } : null);
1271
+ });
1272
+ });
1273
+ return;
1274
+ }
1275
+ let { valid: a, invalid: o } = pt(r);
1276
+ if (o.length && mt(e, o, null), !a.length) return;
1277
+ let s = n.match(G) ? ze(t) : null;
1278
+ if (!s) {
1279
+ mt(e, a, null);
1280
+ return;
1281
+ }
1282
+ s.prepare(t, n, a).forEach((n) => {
1283
+ ut(t, n, (t) => {
1284
+ mt(e, n.icons, t);
1285
+ });
1286
+ });
1287
+ }));
1288
+ }
1289
+ var _t = (e, t) => {
1290
+ let n = nt(rt(e, !0, ye()));
1291
+ if (!n.pending.length) {
1292
+ let e = !0;
1293
+ return t && setTimeout(() => {
1294
+ e && t(n.loaded, n.missing, n.pending, dt);
1295
+ }), () => {
1296
+ e = !1;
1297
+ };
1298
+ }
1299
+ let r = Object.create(null), i = [], a, o;
1300
+ return n.pending.forEach((e) => {
1301
+ let { provider: t, prefix: n } = e;
1302
+ if (n === o && t === a) return;
1303
+ a = t, o = n, i.push(Q(t, n));
1304
+ let s = r[t] || (r[t] = Object.create(null));
1305
+ s[n] || (s[n] = []);
1306
+ }), n.pending.forEach((e) => {
1307
+ let { provider: t, prefix: n, name: i } = e, a = Q(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
1308
+ o.has(i) || (o.add(i), r[t][n].push(i));
1309
+ }), i.forEach((e) => {
1310
+ let t = r[e.provider][e.prefix];
1311
+ t.length && gt(e, t);
1312
+ }), t ? tt(t, n, i) : dt;
1313
+ };
1314
+ function vt(e, t) {
1315
+ let n = { ...e };
1316
+ for (let e in t) {
1317
+ let r = t[e], i = typeof r;
1318
+ e in Ce ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
1319
+ }
1320
+ return n;
1321
+ }
1322
+ var yt = /[\s,]+/;
1323
+ function bt(e, t) {
1324
+ t.split(yt).forEach((t) => {
1325
+ switch (t.trim()) {
1326
+ case "horizontal":
1327
+ e.hFlip = !0;
1328
+ break;
1329
+ case "vertical":
1330
+ e.vFlip = !0;
1331
+ break;
1332
+ }
1333
+ });
1334
+ }
1335
+ function xt(e, t = 0) {
1336
+ let n = e.replace(/^-?[0-9.]*/, "");
1337
+ function r(e) {
1338
+ for (; e < 0;) e += 4;
1339
+ return e % 4;
1340
+ }
1341
+ if (n === "") {
1342
+ let t = parseInt(e);
1343
+ return isNaN(t) ? 0 : r(t);
1344
+ } else if (n !== e) {
1345
+ let t = 0;
1346
+ switch (n) {
1347
+ case "%":
1348
+ t = 25;
1349
+ break;
1350
+ case "deg": t = 90;
1351
+ }
1352
+ if (t) {
1353
+ let i = parseFloat(e.slice(0, e.length - n.length));
1354
+ return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
1355
+ }
1356
+ }
1357
+ return t;
1358
+ }
1359
+ function St(e, t) {
1360
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
1361
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
1362
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
1363
+ }
1364
+ function Ct(e) {
1365
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1366
+ }
1367
+ function wt(e) {
1368
+ return "data:image/svg+xml," + Ct(e);
1369
+ }
1370
+ function Tt(e) {
1371
+ return "url(\"" + wt(e) + "\")";
1372
+ }
1373
+ var Et = {
1374
+ ...we,
1375
+ inline: !1
1376
+ }, Dt = {
1377
+ xmlns: "http://www.w3.org/2000/svg",
1378
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1379
+ "aria-hidden": !0,
1380
+ role: "img"
1381
+ }, Ot = { display: "inline-block" }, kt = { backgroundColor: "currentColor" }, At = { backgroundColor: "transparent" }, jt = {
1382
+ Image: "var(--svg)",
1383
+ Repeat: "no-repeat",
1384
+ Size: "100% 100%"
1385
+ }, Mt = {
1386
+ webkitMask: kt,
1387
+ mask: kt,
1388
+ background: At
1389
+ };
1390
+ for (let e in Mt) {
1391
+ let t = Mt[e];
1392
+ for (let n in jt) t[e + n] = jt[n];
1393
+ }
1394
+ var Nt = {};
1395
+ ["horizontal", "vertical"].forEach((e) => {
1396
+ let t = e.slice(0, 1) + "Flip";
1397
+ Nt[e + "-flip"] = t, Nt[e.slice(0, 1) + "-flip"] = t, Nt[e + "Flip"] = t;
1398
+ });
1399
+ function Pt(e) {
1400
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1401
+ }
1402
+ var Ft = (e, t) => {
1403
+ let n = vt(Et, t), r = { ...Dt }, i = t.mode || "svg", a = {}, o = t.style, s = typeof o == "object" && !(o instanceof Array) ? o : {};
1404
+ for (let e in t) {
1405
+ let i = t[e];
1406
+ if (i !== void 0) switch (e) {
1407
+ case "icon":
1408
+ case "style":
1409
+ case "onLoad":
1410
+ case "mode":
1411
+ case "ssr":
1412
+ case "customise": break;
1413
+ case "inline":
1414
+ case "hFlip":
1415
+ case "vFlip":
1416
+ n[e] = i === !0 || i === "true" || i === 1;
1417
+ break;
1418
+ case "flip":
1419
+ typeof i == "string" && bt(n, i);
1420
+ break;
1421
+ case "color":
1422
+ a.color = i;
1423
+ break;
1424
+ case "rotate":
1425
+ typeof i == "string" ? n[e] = xt(i) : typeof i == "number" && (n[e] = i);
1426
+ break;
1427
+ case "ariaHidden":
1428
+ case "aria-hidden":
1429
+ i !== !0 && i !== "true" && delete r["aria-hidden"];
1430
+ break;
1431
+ default: {
1432
+ let t = Nt[e];
1433
+ t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : Et[e] === void 0 && (r[e] = i);
1434
+ }
1435
+ }
1436
+ }
1437
+ let l = Me(e, n), u = l.attributes;
1438
+ if (n.inline && (a.verticalAlign = "-0.125em"), i === "svg") return r.style = {
1439
+ ...a,
1440
+ ...s
1441
+ }, Object.assign(r, u), r.innerHTML = Ie(l.body), c("svg", r);
1442
+ let { body: d, width: f, height: p } = e, m = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = St(d, {
1443
+ ...u,
1444
+ width: f + "",
1445
+ height: p + ""
1446
+ });
1447
+ return r.style = {
1448
+ ...a,
1449
+ "--svg": Tt(h),
1450
+ width: Pt(u.width),
1451
+ height: Pt(u.height),
1452
+ ...Ot,
1453
+ ...m ? kt : At,
1454
+ ...s
1455
+ }, c("span", r);
1456
+ };
1457
+ if (ye(!0), Re("", Ze), typeof document < "u" && typeof window < "u") {
1458
+ let e = window;
1459
+ if (e.IconifyPreload !== void 0) {
1460
+ let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
1461
+ typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
1462
+ try {
1463
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !Se(e)) && console.error(n);
1464
+ } catch {
1465
+ console.error(n);
1466
+ }
1467
+ });
1468
+ }
1469
+ if (e.IconifyProviders !== void 0) {
1470
+ let t = e.IconifyProviders;
1471
+ if (typeof t == "object" && t) for (let e in t) {
1472
+ let n = "IconifyProviders[" + e + "] is invalid.";
1473
+ try {
1474
+ let r = t[e];
1475
+ if (typeof r != "object" || !r || r.resources === void 0) continue;
1476
+ We(e, r) || console.error(n);
1477
+ } catch {
1478
+ console.error(n);
1479
+ }
1480
+ }
1481
+ }
1482
+ }
1483
+ var It = {
1484
+ ...X,
1485
+ body: ""
1486
+ }, Lt = o((e, { emit: t }) => {
1487
+ let n = p(null);
1488
+ function r() {
1489
+ n.value &&= (n.value.abort?.(), null);
1490
+ }
1491
+ let i = p(!!e.ssr), a = p(""), o = m(null);
1492
+ function s() {
1493
+ let i = e.icon;
1494
+ if (typeof i == "object" && i && typeof i.body == "string") return a.value = "", { data: i };
1495
+ let o;
1496
+ if (typeof i != "string" || (o = K(i, !1, !0)) === null) return null;
1497
+ let s = be(o);
1498
+ if (!s) {
1499
+ let e = n.value;
1500
+ return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
1501
+ name: i,
1502
+ abort: _t([o], c)
1503
+ }), null;
1504
+ }
1505
+ r(), a.value !== i && (a.value = i, u(() => {
1506
+ t("load", i);
1507
+ }));
1508
+ let l = e.customise;
1509
+ if (l) {
1510
+ s = Object.assign({}, s);
1511
+ let e = l(s.body, o.name, o.prefix, o.provider);
1512
+ typeof e == "string" && (s.body = e);
1513
+ }
1514
+ let d = ["iconify"];
1515
+ return o.prefix !== "" && d.push("iconify--" + o.prefix), o.provider !== "" && d.push("iconify--" + o.provider), {
1516
+ data: s,
1517
+ classes: d
1518
+ };
1519
+ }
1520
+ function c() {
1521
+ let e = s();
1522
+ e ? e.data !== o.value?.data && (o.value = e) : o.value = null;
1523
+ }
1524
+ return i.value ? c() : d(() => {
1525
+ i.value = !0, c();
1526
+ }), _(() => e.icon, c), f(r), () => {
1527
+ let t = o.value;
1528
+ if (!t) return Ft(It, e);
1529
+ let n = e;
1530
+ return t.classes && (n = {
1531
+ ...e,
1532
+ class: t.classes.join(" ")
1533
+ }), Ft({
1534
+ ...X,
1535
+ ...t.data
1536
+ }, n);
1537
+ };
1538
+ }, {
1539
+ props: [
1540
+ "icon",
1541
+ "mode",
1542
+ "ssr",
1543
+ "width",
1544
+ "height",
1545
+ "style",
1546
+ "color",
1547
+ "inline",
1548
+ "rotate",
1549
+ "hFlip",
1550
+ "horizontalFlip",
1551
+ "vFlip",
1552
+ "verticalFlip",
1553
+ "flip",
1554
+ "id",
1555
+ "ariaHidden",
1556
+ "customise",
1557
+ "title"
1558
+ ],
1559
+ emits: ["load"]
1560
+ }), Rt = {
1561
+ prefix: "mdi",
1562
+ icons: {
1563
+ "alert-circle": {
1564
+ width: 24,
1565
+ height: 24,
1566
+ body: "<path fill=\"currentColor\" d=\"M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z\"/>"
1567
+ },
1568
+ "arrow-up": {
1569
+ width: 24,
1570
+ height: 24,
1571
+ body: "<path fill=\"currentColor\" d=\"M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z\"/>"
1572
+ },
1573
+ "calendar-outline": {
1574
+ width: 24,
1575
+ height: 24,
1576
+ body: "<path fill=\"currentColor\" d=\"M12 12h5v5h-5v-5m7-9h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v2H5V5h14M5 19V9h14v10H5Z\"/>"
1577
+ },
1578
+ check: {
1579
+ width: 24,
1580
+ height: 24,
1581
+ body: "<path fill=\"currentColor\" d=\"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z\"/>"
1582
+ },
1583
+ "check-circle": {
1584
+ width: 24,
1585
+ height: 24,
1586
+ body: "<path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z\"/>"
1587
+ },
1588
+ "chevron-right": {
1589
+ width: 24,
1590
+ height: 24,
1591
+ body: "<path fill=\"currentColor\" d=\"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z\"/>"
1592
+ },
1593
+ "clock-outline": {
1594
+ width: 24,
1595
+ height: 24,
1596
+ body: "<path fill=\"currentColor\" d=\"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z\"/>"
1597
+ },
1598
+ close: {
1599
+ width: 24,
1600
+ height: 24,
1601
+ body: "<path fill=\"currentColor\" d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/>"
1602
+ },
1603
+ "close-circle": {
1604
+ width: 24,
1605
+ height: 24,
1606
+ body: "<path fill=\"currentColor\" d=\"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z\"/>"
1607
+ },
1608
+ "content-copy": {
1609
+ width: 24,
1610
+ height: 24,
1611
+ body: "<path fill=\"currentColor\" d=\"M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z\"/>"
1612
+ },
1613
+ loading: {
1614
+ width: 24,
1615
+ height: 24,
1616
+ body: "<path fill=\"currentColor\" d=\"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z\"/>"
1617
+ },
1618
+ magnify: {
1619
+ width: 24,
1620
+ height: 24,
1621
+ body: "<path fill=\"currentColor\" d=\"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z\"/>"
1622
+ },
1623
+ "menu-down": {
1624
+ width: 24,
1625
+ height: 24,
1626
+ body: "<path fill=\"currentColor\" d=\"m7 10l5 5l5-5H7Z\"/>"
1627
+ },
1628
+ "menu-right": {
1629
+ width: 24,
1630
+ height: 24,
1631
+ body: "<path fill=\"currentColor\" d=\"m10 17l5-5l-5-5v10Z\"/>"
1632
+ }
1633
+ }
1634
+ }, zt = !1;
1635
+ function Bt() {
1636
+ zt ||= (Se(Rt), !0);
1637
+ }
1638
+ //#endregion
1639
+ //#region ../icons/dist/install.js
1640
+ Bt();
1641
+ //#endregion
1642
+ //#region ../ccui/ui/shared/hooks/use-icon.ts
1643
+ function Vt(e) {
1644
+ return e.includes(":");
1645
+ }
1646
+ function Ht(e) {
1647
+ return e ? typeof e == "string" ? Vt(e) ? c(Lt, { icon: e }) : c("i", { class: e }) : e : null;
1648
+ }
1649
+ //#endregion
1650
+ //#region ../ccui/ui/icon/src/icon-registry.ts
1651
+ var Ut = /* @__PURE__ */ new Map();
1652
+ function Wt(e) {
1653
+ return e.trim();
1654
+ }
1655
+ function Gt(e) {
1656
+ if (e) return Ut.get(Wt(e));
1657
+ }
1658
+ //#endregion
1659
+ //#region ../ccui/ui/icon/src/icon-types.ts
1660
+ var Kt = {
1661
+ name: {
1662
+ type: String,
1663
+ default: ""
1664
+ },
1665
+ component: {
1666
+ type: Object,
1667
+ default: void 0
1668
+ },
1669
+ size: {
1670
+ type: [Number, String],
1671
+ default: void 0
1672
+ },
1673
+ color: {
1674
+ type: String,
1675
+ default: ""
1676
+ },
1677
+ twoToneColor: {
1678
+ type: String,
1679
+ default: ""
1680
+ },
1681
+ theme: {
1682
+ type: String,
1683
+ default: void 0
1684
+ },
1685
+ themePrefixMap: {
1686
+ type: Object,
1687
+ default: void 0
1688
+ },
1689
+ rotate: {
1690
+ type: Number,
1691
+ default: 0
1692
+ },
1693
+ spin: {
1694
+ type: Boolean,
1695
+ default: !1
1696
+ },
1697
+ spinDirection: {
1698
+ type: String,
1699
+ default: "cw"
1700
+ },
1701
+ loading: {
1702
+ type: Boolean,
1703
+ default: !1
1704
+ },
1705
+ clickable: {
1706
+ type: Boolean,
1707
+ default: !1
1708
+ },
1709
+ disabled: {
1710
+ type: Boolean,
1711
+ default: !1
1712
+ },
1713
+ iconifyPrefix: {
1714
+ type: String,
1715
+ default: ""
1716
+ },
1717
+ title: {
1718
+ type: String,
1719
+ default: ""
1720
+ },
1721
+ ariaLabel: {
1722
+ type: String,
1723
+ default: ""
1724
+ },
1725
+ prefixCls: {
1726
+ type: String,
1727
+ default: ""
1728
+ }
1729
+ }, qt = {
1730
+ prefixCls: "ccui",
1731
+ componentSize: "middle",
1732
+ locale: void 0,
1733
+ direction: "ltr",
1734
+ theme: void 0,
1735
+ iconPrefixCls: "ccui-icon"
1736
+ }, Jt = {
1737
+ small: 14,
1738
+ large: 20
1739
+ };
1740
+ function Yt(e) {
1741
+ return !!e && e.includes(":");
1742
+ }
1743
+ function Xt(e, t) {
1744
+ let n = e === void 0 ? t : e;
1745
+ if (!(n == null || n === "" || n === "default")) return typeof n == "number" ? `${n}px` : n in Jt ? `${Jt[n]}px` : n;
1746
+ }
1747
+ function Zt(e) {
1748
+ return e === "middle" ? "default" : e;
1749
+ }
1750
+ var Qt = /* @__PURE__ */ o({
1751
+ name: "CIcon",
1752
+ inheritAttrs: !1,
1753
+ props: Kt,
1754
+ emits: ["click"],
1755
+ setup(e, { slots: t, emit: n }) {
1756
+ let i = g(), a = ne("icon"), o = l(ie, qt), s = r(() => e.prefixCls || o.iconPrefixCls || "ccui-icon"), u = r(() => {
1757
+ if (!(!e.theme || !e.themePrefixMap)) return e.themePrefixMap[e.theme];
1758
+ }), d = r(() => e.name ? e.name.includes(":") ? e.name : u.value ? `${u.value}:${e.name}` : e.iconifyPrefix ? `${e.iconifyPrefix}:${e.name}` : e.name : ""), f = r(() => Yt(d.value) ? d.value : void 0), p = r(() => {
1759
+ if (e.component) return e.component;
1760
+ if (e.name && !f.value) return Gt(e.name);
1761
+ }), m = r(() => !!e.name && !f.value && !p.value && !e.component), h = r(() => {
1762
+ let t = {}, n = Xt(e.size, Zt(o.componentSize));
1763
+ return n && (t.fontSize = n), e.color && (t.color = e.color), e.twoToneColor && (t["--ccui-icon-two-tone-color"] = e.twoToneColor), e.rotate !== void 0 && (t["--ccui-icon-rotate"] = `${e.rotate}deg`), t;
1764
+ }), _ = r(() => ({
1765
+ [a.b()]: !0,
1766
+ [a.m("spin")]: e.spin || e.loading,
1767
+ [a.m("spin-ccw")]: (e.spin || e.loading) && e.spinDirection === "ccw",
1768
+ [a.m("font")]: m.value,
1769
+ [a.m("svg")]: !!p.value || !!f.value || !!t.default,
1770
+ [a.m("iconify")]: !!f.value,
1771
+ [a.m(e.theme)]: !!e.theme,
1772
+ [a.m("clickable")]: e.clickable && !e.disabled,
1773
+ [a.m("disabled")]: e.clickable && e.disabled,
1774
+ [a.m("loading")]: e.loading
1775
+ })), v = (t) => {
1776
+ if (e.clickable && e.disabled) {
1777
+ t.preventDefault(), t.stopPropagation();
1778
+ return;
1779
+ }
1780
+ n("click", t);
1781
+ }, y = (t) => {
1782
+ !e.clickable || e.disabled || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.currentTarget.click());
1783
+ };
1784
+ return () => {
1785
+ let { class: n, style: r, ...o } = i, l;
1786
+ l = e.loading ? c("svg", {
1787
+ viewBox: "0 0 24 24",
1788
+ class: a.e("loading-spinner"),
1789
+ "aria-hidden": "true"
1790
+ }, c("circle", {
1791
+ cx: "12",
1792
+ cy: "12",
1793
+ r: "9",
1794
+ fill: "none",
1795
+ stroke: "currentColor",
1796
+ "stroke-width": "2.5",
1797
+ "stroke-linecap": "round",
1798
+ "stroke-dasharray": "40 18"
1799
+ })) : p.value ? c(p.value) : f.value ? c(Lt, { icon: f.value }) : m.value ? c("i", { class: [s.value, `${s.value}-${e.name}`] }) : t.default?.();
1800
+ let u = e.clickable, d = u ? "button" : e.title || e.ariaLabel ? "img" : void 0, g = u ? e.disabled ? -1 : 0 : void 0;
1801
+ return c("span", {
1802
+ ...o,
1803
+ class: [n, _.value],
1804
+ style: [r, h.value],
1805
+ role: d,
1806
+ tabindex: g,
1807
+ "aria-hidden": u || e.title || e.ariaLabel ? void 0 : "true",
1808
+ "aria-label": e.ariaLabel || e.title || void 0,
1809
+ "aria-disabled": u && e.disabled ? "true" : void 0,
1810
+ "aria-busy": e.loading ? "true" : void 0,
1811
+ title: e.title || void 0,
1812
+ onClick: v,
1813
+ onKeydown: y
1814
+ }, l);
1815
+ };
1816
+ }
1817
+ });
1818
+ //#endregion
1819
+ //#region ../ccui/ui/shared/hooks/use-virtual-list.ts
1820
+ function $t(e, t) {
1821
+ let n = p(0), i = t.buffer ?? 4, a = r(() => e.value.length * t.itemHeight), o = r(() => Math.min(t.maxHeight, a.value));
1822
+ return {
1823
+ scrollTop: n,
1824
+ onScroll: (e) => {
1825
+ n.value = e.currentTarget.scrollTop;
1826
+ },
1827
+ visible: r(() => {
1828
+ let r = e.value;
1829
+ if (r.length === 0) return [];
1830
+ let a = Math.max(0, Math.floor(n.value / t.itemHeight) - i), s = Math.ceil(o.value / t.itemHeight) + i * 2, c = Math.min(r.length, a + s), l = [];
1831
+ for (let e = a; e < c; e += 1) l.push({
1832
+ index: e,
1833
+ data: r[e],
1834
+ top: e * t.itemHeight
1835
+ });
1836
+ return l;
1837
+ }),
1838
+ totalHeight: a,
1839
+ containerHeight: o,
1840
+ scrollToIndex: (e, r) => {
1841
+ if (!r) return;
1842
+ let i = e * t.itemHeight;
1843
+ i < n.value ? r.scrollTop = i : i + t.itemHeight > n.value + o.value && (r.scrollTop = i - o.value + t.itemHeight);
1844
+ }
1845
+ };
1846
+ }
1847
+ //#endregion
1848
+ //#region ../ccui/ui/tree/src/composables/use-tree-check.ts
1849
+ function en(e, t, n) {
1850
+ return r(() => {
1851
+ let { flatAll: r, byKey: i } = e.value;
1852
+ if (n.value) return {
1853
+ checked: new Set(t.value),
1854
+ halfChecked: /* @__PURE__ */ new Set()
1855
+ };
1856
+ let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = new Set(t.value), c = (e) => {
1857
+ let t = i.get(e);
1858
+ return !!t && !t.disableCheckbox && !t.disabled;
1859
+ };
1860
+ for (let e of r) if (s.has(e.key)) {
1861
+ let t = [e];
1862
+ for (; t.length;) {
1863
+ let e = t.pop();
1864
+ c(e.key) && a.add(e.key);
1865
+ for (let n of e.childKeys) {
1866
+ let e = i.get(n);
1867
+ e && t.push(e);
1868
+ }
1869
+ }
1870
+ }
1871
+ for (let e = r.length - 1; e >= 0; --e) {
1872
+ let t = r[e];
1873
+ if (!t.hasChildren) continue;
1874
+ let n = t.childKeys.map((e) => i.get(e)).filter((e) => !!e && c(e.key));
1875
+ if (n.length === 0) continue;
1876
+ let s = n.every((e) => a.has(e.key)), l = n.some((e) => a.has(e.key) || o.has(e.key));
1877
+ s ? (c(t.key) && a.add(t.key), o.delete(t.key)) : l && (o.add(t.key), a.delete(t.key));
1878
+ }
1879
+ return {
1880
+ checked: a,
1881
+ halfChecked: o
1882
+ };
1883
+ });
1884
+ }
1885
+ function tn(e, t, n, r) {
1886
+ let i = e.byKey.get(n);
1887
+ if (!i || i.disabled || i.disableCheckbox) return Array.from(t);
1888
+ let a = t.has(n), o = new Set(t);
1889
+ if (r) return a ? o.delete(n) : o.add(n), Array.from(o);
1890
+ let s = [], c = [n];
1891
+ for (; c.length;) {
1892
+ let t = c.pop();
1893
+ s.push(t);
1894
+ let n = e.byKey.get(t);
1895
+ if (n) for (let e of n.childKeys) c.push(e);
1896
+ }
1897
+ if (a) for (let e of s) o.delete(e);
1898
+ else for (let t of s) {
1899
+ let n = e.byKey.get(t);
1900
+ n && !n.disabled && !n.disableCheckbox && o.add(t);
1901
+ }
1902
+ for (let t of [...i.parentKeys].reverse()) {
1903
+ let n = e.byKey.get(t);
1904
+ if (!n) continue;
1905
+ let r = n.childKeys.map((t) => e.byKey.get(t)).filter((e) => !!e && !e.disableCheckbox && !e.disabled);
1906
+ r.length !== 0 && (r.every((e) => o.has(e.key)) ? o.add(t) : o.delete(t));
1907
+ }
1908
+ return Array.from(o);
1909
+ }
1910
+ //#endregion
1911
+ //#region ../ccui/ui/tree/src/composables/use-tree-flatten.ts
1912
+ var nn = {
1913
+ key: "key",
1914
+ title: "title",
1915
+ children: "children",
1916
+ disabled: "disabled",
1917
+ disableCheckbox: "disableCheckbox",
1918
+ isLeaf: "isLeaf",
1919
+ selectable: "selectable"
1920
+ };
1921
+ function rn(e) {
1922
+ return {
1923
+ ...nn,
1924
+ ...e
1925
+ };
1926
+ }
1927
+ function an(e, t, n) {
1928
+ return e[t.key] ?? `__auto_${n}`;
1929
+ }
1930
+ function on(e, t) {
1931
+ let n = e[t.children];
1932
+ return Array.isArray(n) ? n : void 0;
1933
+ }
1934
+ function sn(e, t, n, r, i) {
1935
+ let a = on(e, t), o = e[t.isLeaf], s = !!a && a.length > 0, c = o === void 0 ? !s && !e.loadable : o, l = an(e, t, i);
1936
+ return {
1937
+ key: l,
1938
+ raw: e,
1939
+ title: e[t.title] ?? l,
1940
+ level: n,
1941
+ parentKeys: r,
1942
+ isLeaf: c,
1943
+ disabled: !!e[t.disabled],
1944
+ disableCheckbox: !!e[t.disableCheckbox],
1945
+ selectable: e[t.selectable] !== !1,
1946
+ hasChildren: s,
1947
+ childKeys: s ? a.map((e, n) => an(e, t, i * 1e3 + n)) : []
1948
+ };
1949
+ }
1950
+ function cn(e) {
1951
+ return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
1952
+ }
1953
+ function ln(e, t) {
1954
+ return r(() => {
1955
+ let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = t.value, s = 0, c = (e, t, l) => {
1956
+ let u = [];
1957
+ for (let i of e) {
1958
+ s += 1;
1959
+ let e = sn(i, o, t, l, s);
1960
+ n.push(e), u.push(e), r.set(e.key, e);
1961
+ let a = on(i, o);
1962
+ a && c(a, t + 1, [...l, e.key]);
1963
+ }
1964
+ l.length === 0 ? a.push(...u.map((e) => e.key)) : i.set(l[l.length - 1], u);
1965
+ };
1966
+ return c(e.value, 0, []), {
1967
+ flatAll: n,
1968
+ byKey: r,
1969
+ childrenByKey: i,
1970
+ rootKeys: a
1971
+ };
1972
+ });
1973
+ }
1974
+ function un(e, t, n, i) {
1975
+ return r(() => {
1976
+ let { flatAll: r } = e.value, a = t.value, o = n.value.trim(), s = i?.value, c = [], l = /* @__PURE__ */ new Set();
1977
+ if (o || s) {
1978
+ for (let e of r) if (s ? s(e.raw, e.parentKeys) : o.length > 0 && cn(e.title).toLowerCase().includes(o.toLowerCase())) {
1979
+ l.add(e.key);
1980
+ for (let t of e.parentKeys) l.add(t);
1981
+ }
1982
+ }
1983
+ for (let e of r) l.size > 0 && !l.has(e.key) || e.parentKeys.every((e) => a.has(e)) && c.push(e);
1984
+ return c;
1985
+ });
1986
+ }
1987
+ //#endregion
1988
+ //#region ../ccui/ui/tree/src/composables/use-tree-state.ts
1989
+ function dn(e) {
1990
+ return new Set(e ?? []);
1991
+ }
1992
+ function fn(e, t, n) {
1993
+ let i = p(dn(t.value));
1994
+ return _(e, (e) => {
1995
+ e !== void 0 && (i.value = dn(e));
1996
+ }), {
1997
+ current: r(() => e.value === void 0 ? i.value : dn(e.value)),
1998
+ setKeys: (t) => {
1999
+ e.value === void 0 && (i.value = dn(t)), n(t);
2000
+ }
2001
+ };
2002
+ }
2003
+ function pn(e, t, n) {
2004
+ let i = r(() => e.selectedKeys), a = r(() => e.defaultSelectedKeys ?? []), o = r(() => e.checkedKeys), s = r(() => e.defaultCheckedKeys ?? []), c = r(() => e.expandedKeys), l = r(() => e.expandedKeys ? e.expandedKeys : t.value.length > 0 ? t.value : e.defaultExpandedKeys ?? []), u = fn(i, a, (e) => n("update:selectedKeys", e)), d = fn(o, s, (e) => n("update:checkedKeys", e)), f = fn(c, l, (e) => n("update:expandedKeys", e));
2005
+ return {
2006
+ selectedKeys: u.current,
2007
+ setSelectedKeys: u.setKeys,
2008
+ checkedKeys: d.current,
2009
+ setCheckedKeys: d.setKeys,
2010
+ expandedKeys: f.current,
2011
+ setExpandedKeys: f.setKeys
2012
+ };
2013
+ }
2014
+ //#endregion
2015
+ //#region ../ccui/ui/tree/src/tree-types.ts
2016
+ var mn = {
2017
+ data: {
2018
+ type: Array,
2019
+ default: () => []
2020
+ },
2021
+ fieldNames: {
2022
+ type: Object,
2023
+ default: () => ({})
2024
+ },
2025
+ selectable: {
2026
+ type: Boolean,
2027
+ default: !0
2028
+ },
2029
+ multiple: {
2030
+ type: Boolean,
2031
+ default: !1
2032
+ },
2033
+ selectedKeys: {
2034
+ type: Array,
2035
+ default: void 0
2036
+ },
2037
+ defaultSelectedKeys: {
2038
+ type: Array,
2039
+ default: () => []
2040
+ },
2041
+ checkable: {
2042
+ type: Boolean,
2043
+ default: !1
2044
+ },
2045
+ checkedKeys: {
2046
+ type: Array,
2047
+ default: void 0
2048
+ },
2049
+ defaultCheckedKeys: {
2050
+ type: Array,
2051
+ default: () => []
2052
+ },
2053
+ checkStrictly: {
2054
+ type: Boolean,
2055
+ default: !1
2056
+ },
2057
+ expandedKeys: {
2058
+ type: Array,
2059
+ default: void 0
2060
+ },
2061
+ defaultExpandedKeys: {
2062
+ type: Array,
2063
+ default: () => []
2064
+ },
2065
+ defaultExpandAll: {
2066
+ type: Boolean,
2067
+ default: !1
2068
+ },
2069
+ disabled: {
2070
+ type: Boolean,
2071
+ default: !1
2072
+ },
2073
+ loadData: {
2074
+ type: Function,
2075
+ default: void 0
2076
+ },
2077
+ draggable: {
2078
+ type: Boolean,
2079
+ default: !1
2080
+ },
2081
+ showLine: {
2082
+ type: Boolean,
2083
+ default: !1
2084
+ },
2085
+ blockNode: {
2086
+ type: Boolean,
2087
+ default: !1
2088
+ },
2089
+ expandAction: {
2090
+ type: [String, Boolean],
2091
+ default: "click"
2092
+ },
2093
+ searchValue: {
2094
+ type: String,
2095
+ default: ""
2096
+ },
2097
+ filterTreeNode: {
2098
+ type: Function,
2099
+ default: void 0
2100
+ },
2101
+ indentSize: {
2102
+ type: Number,
2103
+ default: 24
2104
+ },
2105
+ virtualScroll: {
2106
+ type: Boolean,
2107
+ default: !1
2108
+ },
2109
+ virtualItemHeight: {
2110
+ type: Number,
2111
+ default: 32
2112
+ },
2113
+ virtualMaxHeight: {
2114
+ type: Number,
2115
+ default: 320
2116
+ },
2117
+ focusedKey: {
2118
+ type: [String, Number],
2119
+ default: void 0
2120
+ },
2121
+ dragHoverExpandDelay: {
2122
+ type: Number,
2123
+ default: 600
2124
+ },
2125
+ dragAutoScroll: {
2126
+ type: Boolean,
2127
+ default: !0
2128
+ },
2129
+ dragAutoScrollEdge: {
2130
+ type: Number,
2131
+ default: 32
2132
+ },
2133
+ dragAutoScrollSpeed: {
2134
+ type: Number,
2135
+ default: 12
2136
+ },
2137
+ classNames: {
2138
+ type: Object,
2139
+ default: void 0
2140
+ },
2141
+ styles: {
2142
+ type: Object,
2143
+ default: void 0
2144
+ }
2145
+ };
2146
+ //#endregion
2147
+ //#region ../ccui/ui/tree/src/tree.tsx
2148
+ function hn(e) {
2149
+ return e.filter((e) => e.hasChildren).map((e) => e.key);
2150
+ }
2151
+ function gn(e) {
2152
+ return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
2153
+ }
2154
+ function _n(e, t) {
2155
+ let n = gn(e);
2156
+ if (!t) return n;
2157
+ let r = n.toLowerCase(), i = t.toLowerCase(), a = r.indexOf(i);
2158
+ return a < 0 ? n : c("span", null, [
2159
+ n.slice(0, a),
2160
+ c("span", { class: "ccui-tree__highlight" }, n.slice(a, a + t.length)),
2161
+ n.slice(a + t.length)
2162
+ ]);
2163
+ }
2164
+ var vn = /* @__PURE__ */ o({
2165
+ name: "CTree",
2166
+ props: mn,
2167
+ emits: [
2168
+ "update:selectedKeys",
2169
+ "update:checkedKeys",
2170
+ "update:expandedKeys",
2171
+ "update:focusedKey",
2172
+ "select",
2173
+ "check",
2174
+ "expand",
2175
+ "load",
2176
+ "drop",
2177
+ "dragstart",
2178
+ "dragenter",
2179
+ "dragover",
2180
+ "dragleave",
2181
+ "focus-change",
2182
+ "load-error"
2183
+ ],
2184
+ setup(e, { emit: t, expose: n, slots: i }) {
2185
+ let a = ne("tree"), o = r(() => rn(e.fieldNames)), s = h(e, "data"), l = h(e, "searchValue"), d = r(() => e.filterTreeNode), g = ln(s, o), v = p([]);
2186
+ e.defaultExpandAll && e.expandedKeys === void 0 && (e.defaultExpandedKeys ?? []).length === 0 && (v.value = hn(g.value.flatAll));
2187
+ let { selectedKeys: y, setSelectedKeys: b, checkedKeys: x, setCheckedKeys: S, expandedKeys: C, setExpandedKeys: w } = pn(e, v, t), T = en(g, x, r(() => e.checkStrictly)), E = un(g, C, l, d), D = p(/* @__PURE__ */ new Set()), O = p(/* @__PURE__ */ new Set()), k = p(/* @__PURE__ */ new Set()), A = m(null), j = m(null), ee = m(null), M = m(null), N = m(null), P = m(0), te = p(e.focusedKey), F = r(() => e.focusedKey === void 0 ? te.value : e.focusedKey), I = (n) => {
2188
+ e.focusedKey === void 0 && (te.value = n), t("update:focusedKey", n), t("focus-change", n);
2189
+ }, L = p(null), R = p(null), z = r(() => {
2190
+ let e = /* @__PURE__ */ new Map();
2191
+ return E.value.forEach((t, n) => e.set(t.key, n)), e;
2192
+ }), B = r(() => e.virtualScroll && E.value.length > 0), V = $t(E, {
2193
+ itemHeight: e.virtualItemHeight,
2194
+ maxHeight: e.virtualMaxHeight
2195
+ }), H = async (n, r) => {
2196
+ if (e.loadData) {
2197
+ k.value.delete(n.key), k.value = new Set(k.value), D.value.add(n.key), D.value = new Set(D.value);
2198
+ try {
2199
+ await e.loadData(n.raw), O.value.add(n.key), O.value = new Set(O.value), t("load", Array.from(O.value), {
2200
+ event: r,
2201
+ node: n
2202
+ });
2203
+ } catch (e) {
2204
+ k.value.add(n.key), k.value = new Set(k.value), t("load-error", {
2205
+ error: e,
2206
+ node: n
2207
+ });
2208
+ } finally {
2209
+ D.value.delete(n.key), D.value = new Set(D.value);
2210
+ }
2211
+ }
2212
+ }, U = async (n, r) => {
2213
+ if (e.disabled) return;
2214
+ let i = C.value.has(n.key), a = new Set(C.value);
2215
+ i ? a.delete(n.key) : (a.add(n.key), e.loadData && !n.hasChildren && !n.isLeaf && !O.value.has(n.key) && await H(n, r));
2216
+ let o = Array.from(a);
2217
+ w(o), t("expand", o, {
2218
+ expanded: !i,
2219
+ node: n
2220
+ });
2221
+ }, W = async (t) => {
2222
+ let n = g.value.byKey.get(t);
2223
+ !n || !e.loadData || await H(n);
2224
+ }, re = (n, r) => {
2225
+ if (e.disabled || !e.selectable || !n.selectable || n.disabled) return;
2226
+ let i = y.value.has(n.key), a;
2227
+ a = e.multiple ? i ? Array.from(y.value).filter((e) => e !== n.key) : [...y.value, n.key] : i ? [] : [n.key], b(a), t("select", a, {
2228
+ selectedKeys: a,
2229
+ selected: !i,
2230
+ node: n,
2231
+ event: r
2232
+ });
2233
+ }, ie = (n, r) => {
2234
+ if (e.disabled || !e.checkable || n.disableCheckbox || n.disabled) return;
2235
+ let i = T.value.checked.has(n.key), a = e.checkStrictly ? x.value : T.value.checked, o = tn(g.value, a, n.key, e.checkStrictly);
2236
+ S(o), t("check", o, {
2237
+ checkedKeys: o,
2238
+ halfCheckedKeys: Array.from(T.value.halfChecked),
2239
+ checked: !i,
2240
+ node: n,
2241
+ event: r
2242
+ });
2243
+ }, ae = (n, r) => {
2244
+ if (!e.draggable || r.disabled) {
2245
+ n.preventDefault();
2246
+ return;
2247
+ }
2248
+ j.value = r.key, n.dataTransfer?.setData("text/plain", String(r.key)), t("dragstart", {
2249
+ event: n,
2250
+ node: r
2251
+ });
2252
+ }, oe = (e, t) => {
2253
+ let n = t.getBoundingClientRect();
2254
+ if (!n.height) return "inside";
2255
+ let r = (e.clientY - n.top) / n.height;
2256
+ return r < .25 ? "before" : r > .75 ? "after" : "inside";
2257
+ }, G = () => {
2258
+ ee.value &&= (clearTimeout(ee.value), null), M.value = null;
2259
+ }, K = (t, n) => {
2260
+ !e.dragHoverExpandDelay || e.dragHoverExpandDelay <= 0 || !t.hasChildren && (!e.loadData || t.isLeaf) || C.value.has(t.key) || M.value !== t.key && (G(), M.value = t.key, ee.value = setTimeout(() => {
2261
+ j.value !== null && M.value === t.key && U(t, n), ee.value = null;
2262
+ }, e.dragHoverExpandDelay));
2263
+ }, q = () => {
2264
+ P.value = 0, N.value !== null && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(N.value), N.value = null;
2265
+ }, J = () => {
2266
+ let e = R.value;
2267
+ if (!e || P.value === 0) {
2268
+ N.value = null;
2269
+ return;
2270
+ }
2271
+ e.scrollTop += P.value, typeof requestAnimationFrame == "function" ? N.value = requestAnimationFrame(J) : N.value = null;
2272
+ }, se = (t) => {
2273
+ if (!e.dragAutoScroll) return;
2274
+ let n = R.value;
2275
+ if (!n) return;
2276
+ let r = n.getBoundingClientRect(), i = e.dragAutoScrollEdge, a = e.dragAutoScrollSpeed, o = t.clientY - r.top, s = r.bottom - t.clientY, c = 0;
2277
+ o < i && o > 0 ? c = -a : s < i && s > 0 && (c = a);
2278
+ let l = P.value === 0;
2279
+ P.value = c, c !== 0 && l && typeof requestAnimationFrame == "function" ? N.value = requestAnimationFrame(J) : c === 0 && q();
2280
+ }, Y = (n, r) => {
2281
+ if (!e.draggable || j.value === null) return;
2282
+ n.preventDefault();
2283
+ let i = oe(n, n.currentTarget);
2284
+ A.value = {
2285
+ key: r.key,
2286
+ position: i
2287
+ }, i === "inside" ? K(r, n) : M.value !== null && G(), se(n), t("dragover", {
2288
+ event: n,
2289
+ node: r
2290
+ });
2291
+ }, X = (n, r) => {
2292
+ e.draggable && t("dragenter", {
2293
+ event: n,
2294
+ node: r
2295
+ });
2296
+ }, ce = (n, r) => {
2297
+ e.draggable && (M.value === r.key && G(), t("dragleave", {
2298
+ event: n,
2299
+ node: r
2300
+ }));
2301
+ }, le = (n, r) => {
2302
+ if (!e.draggable || j.value === null) return;
2303
+ n.preventDefault(), G(), q();
2304
+ let i = g.value.byKey.get(j.value);
2305
+ if (!i || i.key === r.key) {
2306
+ j.value = null, A.value = null;
2307
+ return;
2308
+ }
2309
+ t("drop", {
2310
+ event: n,
2311
+ node: r,
2312
+ dragNode: i,
2313
+ dropPosition: A.value?.key === r.key ? A.value.position : "inside"
2314
+ }), j.value = null, A.value = null;
2315
+ }, ue = (t) => {
2316
+ if (i.switcher) return i.switcher({
2317
+ expanded: C.value.has(t.key),
2318
+ node: t,
2319
+ loading: D.value.has(t.key),
2320
+ loadFailed: k.value.has(t.key)
2321
+ });
2322
+ let n = C.value.has(t.key), r = D.value.has(t.key), o = k.value.has(t.key);
2323
+ return r ? c("span", { class: a.e("switcher-loading") }, "○") : o ? c("span", {
2324
+ class: a.e("switcher-error"),
2325
+ role: "button",
2326
+ title: "Click to retry",
2327
+ onClick: (e) => {
2328
+ e.stopPropagation(), W(t.key);
2329
+ }
2330
+ }, "!") : t.isLeaf && !t.hasChildren ? c("span", { class: a.e("switcher-leaf") }) : c("span", {
2331
+ class: [
2332
+ a.e("switcher"),
2333
+ n && a.em("switcher", "open"),
2334
+ e.classNames?.switcher
2335
+ ],
2336
+ style: e.styles?.switcher
2337
+ }, c(Qt, {
2338
+ name: "mdi:menu-right",
2339
+ size: 12
2340
+ }));
2341
+ }, de = (t) => {
2342
+ if (!e.checkable) return null;
2343
+ let n = T.value.checked.has(t.key), r = T.value.halfChecked.has(t.key);
2344
+ return c("span", {
2345
+ class: [
2346
+ a.e("checkbox"),
2347
+ n && a.em("checkbox", "checked"),
2348
+ r && a.em("checkbox", "indeterminate"),
2349
+ (t.disabled || t.disableCheckbox) && a.em("checkbox", "disabled")
2350
+ ],
2351
+ role: "checkbox",
2352
+ "aria-checked": r ? "mixed" : n,
2353
+ onClick: (e) => {
2354
+ e.stopPropagation(), ie(t, e);
2355
+ }
2356
+ }, n ? "✓" : r ? "–" : "");
2357
+ }, fe = (e) => i.title ? i.title({
2358
+ node: e,
2359
+ data: e.raw,
2360
+ expanded: C.value.has(e.key)
2361
+ }) : _n(e.title, l.value), pe = (e) => i.icon ? c("span", { class: a.e("icon") }, i.icon({
2362
+ node: e,
2363
+ expanded: C.value.has(e.key)
2364
+ })) : e.raw.icon ? c("span", { class: a.e("icon") }, e.raw.icon) : null, me = (t) => {
2365
+ if (!e.showLine || t.level === 0) return null;
2366
+ let n = [];
2367
+ for (let r = 0; r < t.level; r += 1) i.connector ? n.push(c("span", {
2368
+ key: `guide-${r}`,
2369
+ class: a.e("guide"),
2370
+ style: { left: `${r * e.indentSize + e.indentSize / 2}px` }
2371
+ }, i.connector({
2372
+ depth: r,
2373
+ node: t
2374
+ }))) : n.push(c("span", {
2375
+ key: `guide-${r}`,
2376
+ class: a.e("guide"),
2377
+ style: { left: `${r * e.indentSize + e.indentSize / 2}px` }
2378
+ }));
2379
+ return n;
2380
+ }, he = () => {
2381
+ G(), q(), j.value = null, A.value = null;
2382
+ }, Z = (t, n) => {
2383
+ let r = {
2384
+ paddingLeft: `${e.indentSize * t.level}px`,
2385
+ ...n
2386
+ }, i = y.value.has(t.key), o = F.value === t.key, s = A.value?.key === t.key, l = s ? A.value.position : null, u = M.value === t.key;
2387
+ return c("div", {
2388
+ key: t.key,
2389
+ class: [
2390
+ a.e("node"),
2391
+ i && a.em("node", "selected"),
2392
+ o && a.em("node", "focused"),
2393
+ t.disabled && a.em("node", "disabled"),
2394
+ s && l === "inside" && a.em("node", "drop-inside"),
2395
+ s && l === "before" && a.em("node", "drop-before"),
2396
+ s && l === "after" && a.em("node", "drop-after"),
2397
+ e.blockNode && a.em("node", "block"),
2398
+ u && a.em("node", "hover-expand"),
2399
+ e.classNames?.node
2400
+ ],
2401
+ role: "treeitem",
2402
+ tabindex: o ? 0 : -1,
2403
+ "aria-selected": i,
2404
+ "aria-expanded": t.hasChildren ? C.value.has(t.key) : void 0,
2405
+ "aria-disabled": t.disabled || void 0,
2406
+ "aria-level": t.level + 1,
2407
+ "data-key": t.key,
2408
+ style: [r, e.styles?.node],
2409
+ draggable: e.draggable && !t.disabled ? !0 : void 0,
2410
+ onDragstart: (e) => ae(e, t),
2411
+ onDragover: (e) => Y(e, t),
2412
+ onDragenter: (e) => X(e, t),
2413
+ onDragleave: (e) => ce(e, t),
2414
+ onDrop: (e) => le(e, t),
2415
+ onDragend: he,
2416
+ onFocus: () => {
2417
+ F.value !== t.key && I(t.key);
2418
+ }
2419
+ }, [
2420
+ ...me(t) || [],
2421
+ c("span", {
2422
+ class: a.e("switcher-wrap"),
2423
+ onClick: (n) => {
2424
+ n.stopPropagation(), (t.hasChildren || e.loadData && !t.isLeaf) && U(t, n);
2425
+ }
2426
+ }, ue(t)),
2427
+ de(t),
2428
+ c("span", {
2429
+ class: [a.e("content"), e.classNames?.label],
2430
+ style: e.styles?.label,
2431
+ onClick: (n) => {
2432
+ re(t, n), e.expandAction === "click" && !e.disabled && !t.disabled && (t.hasChildren || e.loadData && !t.isLeaf) && U(t, n);
2433
+ }
2434
+ }, [pe(t), c("span", { class: a.e("title") }, fe(t))])
2435
+ ]);
2436
+ }, ge = (e) => {
2437
+ let t = E.value;
2438
+ if (t.length === 0) return;
2439
+ let n = F.value, r = n === void 0 ? -1 : z.value.get(n) ?? -1, i = Math.max(0, Math.min(t.length - 1, r + e));
2440
+ if (r === i && n !== void 0) return;
2441
+ let a = t[i].key;
2442
+ I(a);
2443
+ }, Q = (e) => {
2444
+ let t = E.value;
2445
+ t.length !== 0 && I(t[e === 1 ? t.length - 1 : 0].key);
2446
+ }, _e = (t) => {
2447
+ if (e.disabled) return;
2448
+ let n = E.value;
2449
+ if (n.length === 0) return;
2450
+ let r = F.value ?? n[0].key, i = z.value.get(r) ?? 0, a = n[i];
2451
+ switch (t.key) {
2452
+ case "ArrowDown":
2453
+ t.preventDefault(), ge(1);
2454
+ break;
2455
+ case "ArrowUp":
2456
+ t.preventDefault(), ge(-1);
2457
+ break;
2458
+ case "ArrowRight":
2459
+ if (t.preventDefault(), a.hasChildren && !C.value.has(a.key)) U(a, t);
2460
+ else if (a.hasChildren) {
2461
+ let e = n[i + 1];
2462
+ e && e.parentKeys.includes(a.key) && I(e.key);
2463
+ } else e.loadData && !a.isLeaf && !O.value.has(a.key) && U(a, t);
2464
+ break;
2465
+ case "ArrowLeft":
2466
+ if (t.preventDefault(), a.hasChildren && C.value.has(a.key)) U(a, t);
2467
+ else if (a.parentKeys.length > 0) {
2468
+ let e = a.parentKeys[a.parentKeys.length - 1];
2469
+ I(e);
2470
+ }
2471
+ break;
2472
+ case "Home":
2473
+ t.preventDefault(), Q(-1);
2474
+ break;
2475
+ case "End":
2476
+ t.preventDefault(), Q(1);
2477
+ break;
2478
+ case "Enter":
2479
+ case " ": {
2480
+ t.preventDefault();
2481
+ let n = new MouseEvent("click");
2482
+ e.checkable ? ie(a, n) : re(a, n);
2483
+ break;
2484
+ }
2485
+ }
2486
+ }, ve = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/(["\\])/g, "\\$1"), $ = () => {
2487
+ let e = F.value;
2488
+ if (e === void 0) return;
2489
+ let t = z.value.get(e);
2490
+ t !== void 0 && (B.value ? V.scrollToIndex(t, R.value) : L.value && L.value.querySelector(`[data-key="${ve(String(e))}"]`)?.focus({ preventScroll: !1 }));
2491
+ };
2492
+ return _(F, () => {
2493
+ u($);
2494
+ }), f(() => {
2495
+ G(), q();
2496
+ }), n({
2497
+ retryLoad: W,
2498
+ isNodeLoading: (e) => D.value.has(e),
2499
+ hasLoadError: (e) => k.value.has(e)
2500
+ }), () => {
2501
+ let t = [
2502
+ a.b(),
2503
+ e.disabled && a.m("disabled"),
2504
+ e.showLine && a.m("show-line"),
2505
+ e.draggable && a.m("draggable"),
2506
+ e.classNames?.root
2507
+ ], n = e.styles?.root, r = e.multiple || e.checkable;
2508
+ if (E.value.length === 0) return c("div", {
2509
+ ref: L,
2510
+ class: t,
2511
+ style: n,
2512
+ role: "tree",
2513
+ "aria-multiselectable": r || void 0,
2514
+ "aria-disabled": e.disabled || void 0,
2515
+ onKeydown: _e
2516
+ }, c("div", { class: a.e("empty") }, "No data"));
2517
+ if (B.value) {
2518
+ let i = V.visible.value.map(({ data: t, top: n }) => Z(t, {
2519
+ position: "absolute",
2520
+ top: `${n}px`,
2521
+ left: 0,
2522
+ right: 0,
2523
+ height: `${e.virtualItemHeight}px`
2524
+ }));
2525
+ return c("div", {
2526
+ ref: L,
2527
+ class: t,
2528
+ style: n,
2529
+ role: "tree",
2530
+ "aria-multiselectable": r || void 0,
2531
+ "aria-disabled": e.disabled || void 0,
2532
+ onKeydown: _e
2533
+ }, c("div", {
2534
+ ref: R,
2535
+ class: a.e("virtual"),
2536
+ style: {
2537
+ height: `${V.containerHeight.value}px`,
2538
+ overflow: "auto",
2539
+ position: "relative"
2540
+ },
2541
+ onScroll: V.onScroll
2542
+ }, c("div", { style: {
2543
+ height: `${V.totalHeight.value}px`,
2544
+ position: "relative"
2545
+ } }, i)));
2546
+ }
2547
+ return c("div", {
2548
+ ref: L,
2549
+ class: t,
2550
+ style: n,
2551
+ role: "tree",
2552
+ "aria-multiselectable": r || void 0,
2553
+ "aria-disabled": e.disabled || void 0,
2554
+ onKeydown: _e,
2555
+ tabindex: F.value === void 0 ? 0 : -1
2556
+ }, E.value.map((e) => Z(e)));
2557
+ };
2558
+ }
2559
+ });
2560
+ //#endregion
2561
+ //#region ../ccui/ui/tree/index.ts
2562
+ vn.install = function(e) {
2563
+ e.component(vn.name, vn);
2564
+ };
2565
+ //#endregion
2566
+ //#region ../ccui/ui/tree-select/src/tree-select-types.ts
2567
+ var yn = "SHOW_PARENT", bn = "SHOW_CHILD", xn = "SHOW_ALL", Sn = {
2568
+ modelValue: {
2569
+ type: [
2570
+ String,
2571
+ Number,
2572
+ Array
2573
+ ],
2574
+ default: void 0
2575
+ },
2576
+ treeData: {
2577
+ type: Array,
2578
+ default: () => []
2579
+ },
2580
+ fieldNames: {
2581
+ type: Object,
2582
+ default: () => ({})
2583
+ },
2584
+ multiple: {
2585
+ type: Boolean,
2586
+ default: !1
2587
+ },
2588
+ treeCheckable: {
2589
+ type: Boolean,
2590
+ default: !0
2591
+ },
2592
+ treeCheckStrictly: {
2593
+ type: Boolean,
2594
+ default: !1
2595
+ },
2596
+ treeDefaultExpandAll: {
2597
+ type: Boolean,
2598
+ default: !1
2599
+ },
2600
+ treeDefaultExpandedKeys: {
2601
+ type: Array,
2602
+ default: () => []
2603
+ },
2604
+ placeholder: {
2605
+ type: String,
2606
+ default: "请选择"
2607
+ },
2608
+ disabled: {
2609
+ type: Boolean,
2610
+ default: !1
2611
+ },
2612
+ clearable: {
2613
+ type: Boolean,
2614
+ default: !0
2615
+ },
2616
+ clearIcon: {
2617
+ type: [String, Object],
2618
+ default: void 0
2619
+ },
2620
+ suffixIcon: {
2621
+ type: [String, Object],
2622
+ default: void 0
2623
+ },
2624
+ removeIcon: {
2625
+ type: [String, Object],
2626
+ default: void 0
2627
+ },
2628
+ size: {
2629
+ type: String,
2630
+ default: "default"
2631
+ },
2632
+ status: {
2633
+ type: String,
2634
+ default: ""
2635
+ },
2636
+ placement: {
2637
+ type: String,
2638
+ default: "bottomLeft"
2639
+ },
2640
+ popupClassName: {
2641
+ type: String,
2642
+ default: ""
2643
+ },
2644
+ popupAppendToBody: {
2645
+ type: Boolean,
2646
+ default: !1
2647
+ },
2648
+ getPopupContainer: {
2649
+ type: Function,
2650
+ default: void 0
2651
+ },
2652
+ autoFocus: {
2653
+ type: Boolean,
2654
+ default: !1
2655
+ },
2656
+ inputReadOnly: {
2657
+ type: Boolean,
2658
+ default: !0
2659
+ },
2660
+ transitionName: {
2661
+ type: String,
2662
+ default: "ccui-tree-select-fade"
2663
+ },
2664
+ maxTagCount: {
2665
+ type: Number,
2666
+ default: 3
2667
+ },
2668
+ notFoundContent: {
2669
+ type: String,
2670
+ default: ""
2671
+ },
2672
+ popupMaxHeight: {
2673
+ type: Number,
2674
+ default: 280
2675
+ },
2676
+ showSearch: {
2677
+ type: [Boolean, Object],
2678
+ default: !1
2679
+ },
2680
+ searchPlaceholder: {
2681
+ type: String,
2682
+ default: ""
2683
+ },
2684
+ loadData: {
2685
+ type: Function,
2686
+ default: void 0
2687
+ },
2688
+ variant: {
2689
+ type: String,
2690
+ default: "outlined"
2691
+ },
2692
+ classNames: {
2693
+ type: Object,
2694
+ default: void 0
2695
+ },
2696
+ styles: {
2697
+ type: Object,
2698
+ default: void 0
2699
+ }
2700
+ }, Cn = {
2701
+ bottomLeft: "bottom-start",
2702
+ bottomRight: "bottom-end",
2703
+ topLeft: "top-start",
2704
+ topRight: "top-end"
2705
+ };
2706
+ function wn(e) {
2707
+ return {
2708
+ label: e?.label ?? "label",
2709
+ value: e?.value ?? "value",
2710
+ children: e?.children ?? "children",
2711
+ disabled: e?.disabled ?? "disabled"
2712
+ };
2713
+ }
2714
+ function Tn(e) {
2715
+ return {
2716
+ title: e.label,
2717
+ key: e.value,
2718
+ children: e.children,
2719
+ disabled: e.disabled
2720
+ };
2721
+ }
2722
+ function En(e) {
2723
+ return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
2724
+ }
2725
+ function Dn(e, t) {
2726
+ let n = /* @__PURE__ */ new Map();
2727
+ function r(e) {
2728
+ if (e) for (let i of e) {
2729
+ let e = i[t.value];
2730
+ e != null && n.set(e, {
2731
+ key: e,
2732
+ label: En(i[t.label]),
2733
+ disabled: !!i[t.disabled]
2734
+ });
2735
+ let a = i[t.children];
2736
+ Array.isArray(a) && r(a);
2737
+ }
2738
+ }
2739
+ return r(e), n;
2740
+ }
2741
+ function On(e) {
2742
+ return e ? Array.isArray(e) ? e : [e] : [];
2743
+ }
2744
+ var kn = /* @__PURE__ */ o({
2745
+ name: "CTreeSelect",
2746
+ props: Sn,
2747
+ emits: [
2748
+ "update:modelValue",
2749
+ "change",
2750
+ "popup-visible-change",
2751
+ "focus",
2752
+ "blur"
2753
+ ],
2754
+ setup(e, { emit: o, slots: h }) {
2755
+ let g = ne("tree-select"), _ = ae(), y = `ccui-tree-select-popup-${s()?.uid ?? 0}`, C = r(() => e.notFoundContent || _.locale?.TreeSelect?.notFoundContent || "暂无数据"), w = p(null), T = p(null), E = p(null), D = p(null), O = p(null), k = m(!1), A = l(oe, null), j = r(() => wn(e.fieldNames)), ee = r(() => Tn(j.value)), M = r(() => !!e.showSearch), N = r(() => {
2756
+ let t = e.showSearch;
2757
+ return t && typeof t == "object" ? t : {};
2758
+ }), P = m(""), te = r(() => {
2759
+ if (!M.value) return;
2760
+ let e = N.value.filterTreeNode;
2761
+ if (e) {
2762
+ let t = P.value;
2763
+ return (n) => e(t, n);
2764
+ }
2765
+ let t = N.value.treeNodeFilterProp;
2766
+ if (t && t !== j.value.label) {
2767
+ let e = P.value;
2768
+ return (n) => {
2769
+ if (!e) return !0;
2770
+ let r = n[t];
2771
+ return r == null || typeof r != "string" && typeof r != "number" ? !1 : String(r).toLowerCase().includes(e.toLowerCase());
2772
+ };
2773
+ }
2774
+ }), F = r(() => e.searchPlaceholder || _.locale?.TreeSelect?.searchPlaceholder || "搜索"), I = r(() => Dn(e.treeData, j.value)), L = r(() => Cn[e.placement]), R = r(() => typeof document > "u" ? null : e.getPopupContainer ? e.getPopupContainer(w.value) : e.popupAppendToBody ? document.body : null), z = r(() => R.value !== null), { floatingStyles: B } = U(w, T, {
2775
+ placement: L,
2776
+ open: k,
2777
+ whileElementsMounted: v,
2778
+ middleware: [
2779
+ x(4),
2780
+ b(),
2781
+ S({ padding: 8 })
2782
+ ],
2783
+ strategy: r(() => z.value ? "fixed" : "absolute")
2784
+ }), V = r(() => A?.validateStatus.value ?? ""), H = r(() => e.status || V.value), W = r(() => On(e.modelValue)), re = r(() => e.multiple ? W.value.map((e) => ({
2785
+ key: e,
2786
+ label: I.value.get(e)?.label ?? String(e)
2787
+ })) : []), ie = r(() => re.value.slice(0, e.maxTagCount)), G = r(() => Math.max(re.value.length - ie.value.length, 0)), K = r(() => {
2788
+ if (e.multiple) return "";
2789
+ let t = W.value;
2790
+ return t.length === 0 ? "" : I.value.get(t[0])?.label ?? "";
2791
+ });
2792
+ function q() {
2793
+ e.disabled || k.value || (k.value = !0, o("popup-visible-change", !0), M.value && u(() => D.value?.focus()));
2794
+ }
2795
+ function J() {
2796
+ k.value && (k.value = !1, P.value = "", o("popup-visible-change", !1));
2797
+ }
2798
+ function se() {
2799
+ k.value ? J() : q();
2800
+ }
2801
+ function Y(e) {
2802
+ o("update:modelValue", e);
2803
+ let t = [];
2804
+ Array.isArray(e) ? t = e.map((e) => I.value.get(e)?.label ?? "") : e != null && (t = [I.value.get(e)?.label ?? ""]), o("change", e, t), A?.validate("change");
2805
+ }
2806
+ function X(t) {
2807
+ if (!e.multiple) {
2808
+ let e = t[t.length - 1];
2809
+ Y(e ?? null), J();
2810
+ return;
2811
+ }
2812
+ e.treeCheckable || Y(t.length === 0 ? null : t);
2813
+ }
2814
+ function ce(t) {
2815
+ !e.multiple || !e.treeCheckable || Y(t.length === 0 ? null : t);
2816
+ }
2817
+ function le(e, t) {
2818
+ e.stopPropagation();
2819
+ let n = W.value.filter((e) => e !== t);
2820
+ Y(n.length === 0 ? null : n);
2821
+ }
2822
+ function ue(e) {
2823
+ e.stopPropagation(), W.value.length !== 0 && Y(null);
2824
+ }
2825
+ function de(e) {
2826
+ if (!k.value) return;
2827
+ let t = e.target;
2828
+ t && (w.value?.contains(t) || T.value?.contains(t) || J());
2829
+ }
2830
+ d(() => {
2831
+ document.addEventListener("mousedown", de, !0), e.autoFocus && u(() => E.value?.focus());
2832
+ }), f(() => {
2833
+ document.removeEventListener("mousedown", de, !0);
2834
+ });
2835
+ let fe = r(() => e.clearable && !e.disabled && W.value.length > 0);
2836
+ function pe() {
2837
+ let t = e.multiple && e.treeCheckable, n = {
2838
+ ref: O,
2839
+ data: e.treeData,
2840
+ fieldNames: ee.value,
2841
+ defaultExpandAll: e.treeDefaultExpandAll,
2842
+ defaultExpandedKeys: e.treeDefaultExpandedKeys,
2843
+ blockNode: !0,
2844
+ searchValue: M.value ? P.value : "",
2845
+ filterTreeNode: te.value,
2846
+ loadData: e.loadData
2847
+ };
2848
+ return t ? (n.checkable = !0, n.checkStrictly = e.treeCheckStrictly, n.checkedKeys = W.value, n.selectable = !1, n.onCheck = (e) => ce(e)) : (n.selectable = !0, n.multiple = !!e.multiple, n.selectedKeys = W.value, n.onSelect = (e) => X(e)), c(vn, n);
2849
+ }
2850
+ function me() {
2851
+ return M.value ? a("div", { class: g.e("search") }, [a("input", {
2852
+ ref: D,
2853
+ class: g.e("search-input"),
2854
+ type: "text",
2855
+ value: P.value,
2856
+ placeholder: F.value,
2857
+ onInput: (e) => {
2858
+ P.value = e.target.value;
2859
+ },
2860
+ onKeydown: Q
2861
+ }, null)]) : null;
2862
+ }
2863
+ function he() {
2864
+ let t = [g.e("panel"), e.popupClassName].filter(Boolean), n = {
2865
+ ...B.value,
2866
+ maxHeight: `${e.popupMaxHeight}px`
2867
+ }, r = !e.treeData || e.treeData.length === 0;
2868
+ return c("div", {
2869
+ ref: T,
2870
+ id: y,
2871
+ class: [t, e.classNames?.popup],
2872
+ style: [n, e.styles?.popup],
2873
+ role: "dialog",
2874
+ "aria-label": e.placeholder || "选择"
2875
+ }, [me(), r ? a("div", { class: g.e("empty") }, [C.value]) : a("div", { class: g.e("tree-wrap") }, [pe()])]);
2876
+ }
2877
+ function Z(e) {
2878
+ let t = O.value ?? null, n = t && t.$el || t;
2879
+ if (!n) return !1;
2880
+ let r = new KeyboardEvent("keydown", {
2881
+ key: e,
2882
+ bubbles: !0,
2883
+ cancelable: !0
2884
+ });
2885
+ return n.dispatchEvent(r), !0;
2886
+ }
2887
+ function ge(t) {
2888
+ if (e.disabled) return;
2889
+ let n = t.key;
2890
+ if (!k.value) {
2891
+ (n === "Enter" || n === " " || n === "ArrowDown") && (t.preventDefault(), q());
2892
+ return;
2893
+ }
2894
+ if (n === "Escape") {
2895
+ t.preventDefault(), J();
2896
+ return;
2897
+ }
2898
+ if (n === "Tab") {
2899
+ J();
2900
+ return;
2901
+ }
2902
+ M.value || [
2903
+ "ArrowDown",
2904
+ "ArrowUp",
2905
+ "ArrowLeft",
2906
+ "ArrowRight",
2907
+ "Enter",
2908
+ "Home",
2909
+ "End"
2910
+ ].includes(n) && (t.preventDefault(), Z(n));
2911
+ }
2912
+ function Q(e) {
2913
+ let t = e.key;
2914
+ if (t === "Escape") {
2915
+ e.preventDefault(), J(), E.value?.focus();
2916
+ return;
2917
+ }
2918
+ [
2919
+ "ArrowDown",
2920
+ "ArrowUp",
2921
+ "ArrowLeft",
2922
+ "ArrowRight",
2923
+ "Enter"
2924
+ ].includes(t) && (e.preventDefault(), Z(t));
2925
+ }
2926
+ function _e() {
2927
+ let r = k.value ? he() : null, i = c(n, {
2928
+ name: e.transitionName,
2929
+ appear: !0
2930
+ }, { default: () => r });
2931
+ return z.value && R.value ? c(t, { to: R.value }, [i]) : i;
2932
+ }
2933
+ let ve = r(() => [
2934
+ g.b(),
2935
+ e.disabled && g.is("disabled"),
2936
+ k.value && g.is("open"),
2937
+ e.multiple && g.is("multiple"),
2938
+ g.m(e.size),
2939
+ H.value && g.m(`status-${H.value}`),
2940
+ e.variant && g.m(`variant-${e.variant}`)
2941
+ ]);
2942
+ function $() {
2943
+ return e.multiple ? W.value.length === 0 ? a("span", {
2944
+ class: g.e("placeholder"),
2945
+ "aria-hidden": "true"
2946
+ }, [e.placeholder]) : a("span", { class: g.e("tags") }, [ie.value.map((t) => a("span", { class: g.e("tag") }, [a("span", { class: g.e("tag-label") }, [t.label]), !e.disabled && a("span", {
2947
+ class: g.e("tag-close"),
2948
+ role: "button",
2949
+ "aria-label": "移除",
2950
+ onClick: (e) => le(e, t.key)
2951
+ }, [h.removeIcon ? h.removeIcon() : Ht(e.removeIcon) ?? Ht("mdi:close")])])), G.value > 0 && a("span", { class: [g.e("tag"), g.em("tag", "overflow")] }, [a("span", { class: g.e("tag-label") }, [i("+ "), G.value])])]) : a("input", {
2952
+ ref: E,
2953
+ class: g.e("input"),
2954
+ type: "text",
2955
+ readonly: e.inputReadOnly,
2956
+ disabled: e.disabled,
2957
+ placeholder: e.placeholder,
2958
+ value: K.value,
2959
+ role: "combobox",
2960
+ "aria-haspopup": "tree",
2961
+ "aria-expanded": k.value,
2962
+ "aria-controls": y,
2963
+ onFocus: () => o("focus"),
2964
+ onBlur: () => {
2965
+ o("blur"), A?.validate("blur");
2966
+ },
2967
+ onKeydown: ge
2968
+ }, null);
2969
+ }
2970
+ return () => a("div", {
2971
+ ref: w,
2972
+ class: [ve.value, e.classNames?.root],
2973
+ style: e.styles?.root
2974
+ }, [a("div", {
2975
+ class: [g.e("input-wrap"), e.classNames?.inputWrap],
2976
+ style: e.styles?.inputWrap,
2977
+ tabindex: e.multiple ? 0 : void 0,
2978
+ role: e.multiple ? "combobox" : void 0,
2979
+ "aria-haspopup": e.multiple ? "tree" : void 0,
2980
+ "aria-expanded": e.multiple ? k.value : void 0,
2981
+ "aria-controls": e.multiple ? y : void 0,
2982
+ onClick: se,
2983
+ onKeydown: e.multiple ? ge : void 0
2984
+ }, [$(), fe.value ? a("span", {
2985
+ class: g.e("clear"),
2986
+ role: "button",
2987
+ "aria-label": "清除",
2988
+ onClick: ue
2989
+ }, [h.clearIcon ? h.clearIcon() : Ht(e.clearIcon) ?? Ht("mdi:close")]) : a("span", {
2990
+ class: g.e("suffix"),
2991
+ "aria-hidden": "true"
2992
+ }, [h.suffixIcon ? h.suffixIcon() : Ht(e.suffixIcon) ?? Ht("mdi:menu-down")])]), _e()]);
2993
+ }
2994
+ });
2995
+ //#endregion
2996
+ //#region ../ccui/ui/tree-select/index.ts
2997
+ kn.install = function(e) {
2998
+ e.component(kn.name, kn);
2999
+ };
3000
+ var An = {
3001
+ title: "TreeSelect 树选择",
3002
+ category: "数据录入",
3003
+ status: "80%",
3004
+ install(e) {
3005
+ e.component(kn.name, kn);
3006
+ }
3007
+ };
3008
+ //#endregion
3009
+ export { xn as TREE_SELECT_SHOW_ALL, bn as TREE_SELECT_SHOW_CHILD, yn as TREE_SELECT_SHOW_PARENT, kn as TreeSelect, An as default };