@vaebe/ccui 2.0.1-beta.1 → 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 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`@floating-ui/dom`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`@floating-ui/dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue,e._floating_ui_dom))})(this,function(e,t,n){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},f=(e,t,n)=>(d(e,t,`default`),n&&d(n,t,`default`));t=((e,t,n)=>(n=e==null?{}:r(s(e)),d(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function p(){return typeof window<`u`}function m(e){return g(e)?(e.nodeName||``).toLowerCase():`#document`}function h(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function g(e){return p()?e instanceof Node||e instanceof h(e).Node:!1}var _=u({Vue:()=>t,Vue2:()=>void 0,del:()=>b,install:()=>v,isVue2:()=>!1,isVue3:()=>!0,set:()=>y});f(_,require(`vue`));function v(){}function y(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function b(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function x(e){return typeof e==`object`&&!!e&&`$el`in e}function S(e){if(x(e)){let t=e.$el;return g(t)&&m(t)===`#comment`?null:t}return e}function C(e){return typeof e==`function`?e():(0,_.unref)(e)}function w(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function T(e,t){let n=w(e);return Math.round(t*n)/n}function E(e,t,r){r===void 0&&(r={});let i=r.whileElementsMounted,a=(0,_.computed)(()=>C(r.open)??!0),o=(0,_.computed)(()=>C(r.middleware)),s=(0,_.computed)(()=>C(r.placement)??`bottom`),c=(0,_.computed)(()=>C(r.strategy)??`absolute`),l=(0,_.computed)(()=>C(r.transform)??!0),u=(0,_.computed)(()=>S(e.value)),d=(0,_.computed)(()=>S(t.value)),f=(0,_.ref)(0),p=(0,_.ref)(0),m=(0,_.ref)(c.value),h=(0,_.ref)(s.value),g=(0,_.shallowRef)({}),v=(0,_.ref)(!1),y=(0,_.computed)(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=T(d.value,f.value),n=T(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...w(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),b;function x(){if(u.value==null||d.value==null)return;let e=a.value;(0,n.computePosition)(u.value,d.value,{middleware:o.value,placement:s.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,g.value=t.middlewareData,v.value=e!==!1})}function E(){typeof b==`function`&&(b(),b=void 0)}function D(){if(E(),i===void 0){x();return}if(u.value!=null&&d.value!=null){b=i(u.value,d.value,x);return}}function O(){a.value||(v.value=!1)}return(0,_.watch)([o,s,c,a],x,{flush:`sync`}),(0,_.watch)([u,d],D,{flush:`sync`}),(0,_.watch)(a,O,{flush:`sync`}),(0,_.getCurrentScope)()&&(0,_.onScopeDispose)(E),{x:(0,_.shallowReadonly)(f),y:(0,_.shallowReadonly)(p),strategy:(0,_.shallowReadonly)(m),placement:(0,_.shallowReadonly)(h),middlewareData:(0,_.shallowReadonly)(g),isPositioned:(0,_.shallowReadonly)(v),floatingStyles:y,update:x}}function D(e,t,n){let r=e;return t&&(r+=`__${t}`),n&&(r+=`--${n}`),r}function O(e,t=!1){let n=t?`.ccui-${e}`:`ccui-${e}`;return{b:()=>D(n),e:e=>e?D(n,e):``,m:e=>e?D(n,``,e):``,em:(e,t)=>e&&t?D(n,e,t):``,is:e=>`is-${e}`}}l(((e,t)=>{(function(n,r){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()})(e,(function(){"use strict";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={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);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);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);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)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;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()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){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;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;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){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))();var k={locale:`zh-CN`,Modal:{okText:`确 定`,cancelText:`取 消`,justOkText:`知道了`},Popconfirm:{okText:`确 定`,cancelText:`取 消`},Empty:{description:`暂无数据`},AutoComplete:{notFoundContent:`暂无数据`},Mentions:{notFoundContent:`暂无数据`},Cascader:{notFoundContent:`暂无数据`},TreeSelect:{notFoundContent:`暂无数据`,searchPlaceholder:`搜索`},Select:{notFoundContent:`暂无数据`},Pagination:{itemsPerPage:`条/页`,jumpTo:`跳至`,page:`页`,prevPage:`上一页`,nextPage:`下一页`,total:`共 {total} 条`,pagination:`分页`},Image:{loading:`加载中`,error:`加载失败`},DatePicker:{placeholder:`请选择日期`,rangePlaceholder:[`开始日期`,`结束日期`],timePlaceholder:`请选择时间`,weekdaysShort:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],panelLabelFormat:`YYYY 年 M 月`,monthNamesShort:[`1 月`,`2 月`,`3 月`,`4 月`,`5 月`,`6 月`,`7 月`,`8 月`,`9 月`,`10 月`,`11 月`,`12 月`],quarterNames:[`一季度`,`二季度`,`三季度`,`四季度`],weekFormat:`{weekYear} 年第 {weekNumber} 周`,weekHeader:`周`,now:`此刻`,ok:`确定`,prevYearLabel:`前一年`,prevMonthLabel:`上个月`,nextYearLabel:`后一年`,nextMonthLabel:`下个月`,clearLabel:`清除`},Calendar:{weekdaysShort:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],prevMonthLabel:`上个月`,nextMonthLabel:`下个月`,todayLabel:`今天`,monthFormat:`YYYY 年 M 月`}},A=Symbol(`ccui-config`);function j(){return(0,t.inject)(A,{prefixCls:`ccui`,componentSize:`middle`,locale:k,direction:`ltr`,theme:void 0,iconPrefixCls:`ccui-icon`})}var M=Symbol(`ccuiFormItem`),N=/^[a-z0-9]+(-[a-z0-9]+)*$/,P=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!F(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!F(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!F(e,n)?null:e}return null},F=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function I(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var L=Object.freeze({left:0,top:0,width:16,height:16}),R=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...L,...R}),B=Object.freeze({...z,body:``,hidden:!1});function V(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function H(e,t){let n=V(e,t);for(let r in B)r in R?r in e&&!(r in n)&&(n[r]=R[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ee(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=H(r[e]||i[e],a)}return o(t),n.forEach(o),H(e,a)}function U(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=I(e);for(let i in r){let a=r[i];a&&(t(i,ee(e,i,a)),n.push(i))}return n}var W={provider:``,aliases:{},not_found:{},...L};function G(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function K(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!G(e,W))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!G(t,B))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!G(t,B))return null}return t}var q=Object.create(null);function te(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function J(e,t){let n=q[e]||(q[e]=Object.create(null));return n[t]||(n[t]=te(e,t))}function Y(e,t){return K(t)?U(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function ne(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var X=!1;function re(e){return typeof e==`boolean`&&(X=e),X}function ie(e){let t=typeof e==`string`?P(e,!0,X):e;if(t){let e=J(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function ae(e,t){let n=P(e,!0,X);if(!n)return!1;let r=J(n.provider,n.prefix);return t?ne(r,n.name,t):(r.missing.add(n.name),!0)}function oe(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),X&&!t&&!e.prefix){let t=!1;return K(e)&&(e.prefix=``,U(e,(e,n)=>{ae(e,n)&&(t=!0)})),t}let n=e.prefix;return F({prefix:n,name:`a`})?!!Y(J(t,n),e):!1}var se=Object.freeze({width:null,height:null}),ce=Object.freeze({...se,...R}),le=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ue=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(le);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ue.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function fe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function pe(e,t){return e?`<defs>`+e+`</defs>`+t:t}function me(e,t,n){let r=fe(e);return pe(r.defs,t+r.content+n)}var he=e=>e===`unset`||e===`undefined`||e===`none`;function ge(e,t){let n={...z,...e},r={...ce,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;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);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}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=me(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;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);let f={},p=(e,t)=>{he(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var _e=/\sid="(\S+)"/g,ve=new Map;function ye(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=ve.get(e)||0;return ve.set(e,t+1),t?`${e}${t}`:e}function be(e){let t=[],n;for(;n=_e.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=ye(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var xe=Object.create(null);function Se(e,t){xe[e]=t}function Ce(e){return xe[e]||xe[``]}function we(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var Te=Object.create(null),Ee=[`https://api.simplesvg.com`,`https://api.unisvg.com`],De=[];Ee.length>0;)Ee.length===1||Math.random()>.5?De.push(Ee.shift()):De.push(Ee.pop());Te[``]=we({resources:[`https://api.iconify.design`].concat(De)});function Oe(e,t){let n=we(t);return n===null?!1:(Te[e]=n,!0)}function ke(e){return Te[e]}var Ae=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function je(e,t){let n=ke(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function Me(e){return e===404}var Ne=(e,t,n)=>{let r=[],i=je(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function Pe(e){if(typeof e==`string`){let t=ke(e);if(t)return t.path}return`/`}var Fe={prepare:Ne,send:(e,t,n)=>{if(!Ae){n(`abort`,424);return}let r=Pe(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;Ae(e+r).then(e=>{let t=e.status;if(t!==200){setTimeout(()=>{n(Me(t)?`abort`:`next`,t)});return}return i=501,e.json()}).then(e=>{if(typeof e!=`object`||!e){setTimeout(()=>{e===404?n(`abort`,e):n(`next`,i)});return}setTimeout(()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function Ie(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function Le(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||Ie([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var Re=0;function ze(e,t,n){let r=Re++,i=Ie.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function Be(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);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));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=J(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function Ve(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?P(e,t,n):e;i&&r.push(i)}),r}var He={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ue(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`){u=r,v();return}if(i){u=r,f.length||(o.length?x():v());return}if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function We(e){let t={...He,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=Ue(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function Ge(){}var Ke=Object.create(null);function qe(e){if(!Ke[e]){let t=ke(e);if(!t)return;Ke[e]={config:t,redundancy:We(t)}}return Ke[e]}function Je(e,t,n){let r,i;if(typeof e==`string`){let t=Ce(e);if(!t)return n(void 0,424),Ge;i=t.send;let a=qe(e);a&&(r=a.redundancy)}else{let t=we(e);if(t){r=We(t);let n=Ce(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),Ge):r.query(t,i,n)().abort}function Ye(){}function Xe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Le(e)}))}function Ze(e){let t=[],n=[];return e.forEach(e=>{(e.match(N)?t:n).push(e)}),{valid:t,invalid:n}}function Z(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!Y(e,n).length){r();return}}catch(e){console.error(e)}r(),Xe(e)}function Qe(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function $e(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){Qe(e.loadIcons(r,n,t),t=>{Z(e,r,t)});return}if(i){r.forEach(r=>{Qe(i(r,n,t),t=>{Z(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=Ze(r);if(o.length&&Z(e,o,null),!a.length)return;let s=n.match(N)?Ce(t):null;if(!s){Z(e,a,null);return}s.prepare(t,n,a).forEach(n=>{Je(t,n,t=>{Z(e,n.icons,t)})})}))}var et=(e,t)=>{let n=Be(Ve(e,!0,re()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,Ye)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(J(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=J(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&$e(e,t)}),t?ze(t,n,i):Ye};function tt(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in se?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var nt=/[\s,]+/;function rt(e,t){t.split(nt).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0;break}})}function it(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}else if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function at(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function ot(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function st(e){return`data:image/svg+xml,`+ot(e)}function ct(e){return`url("`+st(e)+`")`}var lt={...ce,inline:!1},ut={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},dt={display:`inline-block`},ft={backgroundColor:`currentColor`},pt={backgroundColor:`transparent`},mt={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},ht={webkitMask:ft,mask:ft,background:pt};for(let e in ht){let t=ht[e];for(let n in mt)t[e+n]=mt[n]}var gt={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;gt[e+`-flip`]=t,gt[e.slice(0,1)+`-flip`]=t,gt[e+`Flip`]=t});function _t(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var vt=(e,n)=>{let r=tt(lt,n),i={...ut},a=n.mode||`svg`,o={},s=n.style,c=typeof s==`object`&&!(s instanceof Array)?s:{};for(let e in n){let t=n[e];if(t!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:r[e]=t===!0||t===`true`||t===1;break;case`flip`:typeof t==`string`&&rt(r,t);break;case`color`:o.color=t;break;case`rotate`:typeof t==`string`?r[e]=it(t):typeof t==`number`&&(r[e]=t);break;case`ariaHidden`:case`aria-hidden`:t!==!0&&t!==`true`&&delete i[`aria-hidden`];break;default:{let n=gt[e];n?(t===!0||t===`true`||t===1)&&(r[n]=!0):lt[e]===void 0&&(i[e]=t)}}}let l=ge(e,r),u=l.attributes;if(r.inline&&(o.verticalAlign=`-0.125em`),a===`svg`)return i.style={...o,...c},Object.assign(i,u),i.innerHTML=be(l.body),(0,t.h)(`svg`,i);let{body:d,width:f,height:p}=e,m=a===`mask`||(a===`bg`?!1:d.indexOf(`currentColor`)!==-1),h=at(d,{...u,width:f+``,height:p+``});return i.style={...o,"--svg":ct(h),width:_t(u.width),height:_t(u.height),...dt,...m?ft:pt,...c},(0,t.h)(`span`,i)};if(re(!0),Se(``,Fe),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!oe(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;Oe(e,r)||console.error(n)}catch{console.error(n)}}}}var yt={...z,body:``},bt=(0,t.defineComponent)((e,{emit:n})=>{let r=(0,t.ref)(null);function i(){r.value&&=(r.value.abort?.(),null)}let a=(0,t.ref)(!!e.ssr),o=(0,t.ref)(``),s=(0,t.shallowRef)(null);function c(){let a=e.icon;if(typeof a==`object`&&a&&typeof a.body==`string`)return o.value=``,{data:a};let s;if(typeof a!=`string`||(s=P(a,!1,!0))===null)return null;let c=ie(s);if(!c){let e=r.value;return(!e||e.name!==a)&&(c===null?r.value={name:a}:r.value={name:a,abort:et([s],l)}),null}i(),o.value!==a&&(o.value=a,(0,t.nextTick)(()=>{n(`load`,a)}));let u=e.customise;if(u){c=Object.assign({},c);let e=u(c.body,s.name,s.prefix,s.provider);typeof e==`string`&&(c.body=e)}let d=[`iconify`];return s.prefix!==``&&d.push(`iconify--`+s.prefix),s.provider!==``&&d.push(`iconify--`+s.provider),{data:c,classes:d}}function l(){let e=c();e?e.data!==s.value?.data&&(s.value=e):s.value=null}return a.value?l():(0,t.onMounted)(()=>{a.value=!0,l()}),(0,t.watch)(()=>e.icon,l),(0,t.onUnmounted)(i),()=>{let t=s.value;if(!t)return vt(yt,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),vt({...z,...t.data},n)}},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`],emits:[`load`]}),xt={prefix:`mdi`,icons:{"alert-circle":{width:24,height:24,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"/>`},"arrow-up":{width:24,height:24,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"/>`},"calendar-outline":{width:24,height:24,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"/>`},check:{width:24,height:24,body:`<path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"/>`},"check-circle":{width:24,height:24,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"/>`},"chevron-right":{width:24,height:24,body:`<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>`},"clock-outline":{width:24,height:24,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"/>`},close:{width:24,height:24,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"/>`},"close-circle":{width:24,height:24,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"/>`},"content-copy":{width:24,height:24,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"/>`},loading:{width:24,height:24,body:`<path fill="currentColor" d="M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z"/>`},magnify:{width:24,height:24,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"/>`},"menu-down":{width:24,height:24,body:`<path fill="currentColor" d="m7 10l5 5l5-5H7Z"/>`},"menu-right":{width:24,height:24,body:`<path fill="currentColor" d="m10 17l5-5l-5-5v10Z"/>`}}},St=!1;function Ct(){St||=(oe(xt),!0)}Ct();function wt(e){return e.includes(`:`)}function Q(e){return e?typeof e==`string`?wt(e)?(0,t.h)(bt,{icon:e}):(0,t.h)(`i`,{class:e}):e:null}var Tt=new Map;function Et(e){return e.trim()}function Dt(e){if(e)return Tt.get(Et(e))}var Ot={name:{type:String,default:``},component:{type:Object,default:void 0},size:{type:[Number,String],default:void 0},color:{type:String,default:``},twoToneColor:{type:String,default:``},theme:{type:String,default:void 0},themePrefixMap:{type:Object,default:void 0},rotate:{type:Number,default:0},spin:{type:Boolean,default:!1},spinDirection:{type:String,default:`cw`},loading:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconifyPrefix:{type:String,default:``},title:{type:String,default:``},ariaLabel:{type:String,default:``},prefixCls:{type:String,default:``}},kt={prefixCls:`ccui`,componentSize:`middle`,locale:void 0,direction:`ltr`,theme:void 0,iconPrefixCls:`ccui-icon`},At={small:14,large:20};function jt(e){return!!e&&e.includes(`:`)}function Mt(e,t){let n=e===void 0?t:e;if(!(n==null||n===``||n===`default`))return typeof n==`number`?`${n}px`:n in At?`${At[n]}px`:n}function Nt(e){return e===`middle`?`default`:e}var Pt=(0,t.defineComponent)({name:`CIcon`,inheritAttrs:!1,props:Ot,emits:[`click`],setup(e,{slots:n,emit:r}){let i=(0,t.useAttrs)(),a=O(`icon`),o=(0,t.inject)(A,kt),s=(0,t.computed)(()=>e.prefixCls||o.iconPrefixCls||`ccui-icon`),c=(0,t.computed)(()=>{if(!(!e.theme||!e.themePrefixMap))return e.themePrefixMap[e.theme]}),l=(0,t.computed)(()=>e.name?e.name.includes(`:`)?e.name:c.value?`${c.value}:${e.name}`:e.iconifyPrefix?`${e.iconifyPrefix}:${e.name}`:e.name:``),u=(0,t.computed)(()=>jt(l.value)?l.value:void 0),d=(0,t.computed)(()=>{if(e.component)return e.component;if(e.name&&!u.value)return Dt(e.name)}),f=(0,t.computed)(()=>!!e.name&&!u.value&&!d.value&&!e.component),p=(0,t.computed)(()=>{let t={},n=Mt(e.size,Nt(o.componentSize));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}),m=(0,t.computed)(()=>({[a.b()]:!0,[a.m(`spin`)]:e.spin||e.loading,[a.m(`spin-ccw`)]:(e.spin||e.loading)&&e.spinDirection===`ccw`,[a.m(`font`)]:f.value,[a.m(`svg`)]:!!d.value||!!u.value||!!n.default,[a.m(`iconify`)]:!!u.value,[a.m(e.theme)]:!!e.theme,[a.m(`clickable`)]:e.clickable&&!e.disabled,[a.m(`disabled`)]:e.clickable&&e.disabled,[a.m(`loading`)]:e.loading})),h=t=>{if(e.clickable&&e.disabled){t.preventDefault(),t.stopPropagation();return}r(`click`,t)},g=t=>{!e.clickable||e.disabled||(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),t.currentTarget.click())};return()=>{let{class:r,style:o,...c}=i,l;l=e.loading?(0,t.h)(`svg`,{viewBox:`0 0 24 24`,class:a.e(`loading-spinner`),"aria-hidden":`true`},(0,t.h)(`circle`,{cx:`12`,cy:`12`,r:`9`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-dasharray":`40 18`})):d.value?(0,t.h)(d.value):u.value?(0,t.h)(bt,{icon:u.value}):f.value?(0,t.h)(`i`,{class:[s.value,`${s.value}-${e.name}`]}):n.default?.();let _=e.clickable,v=_?`button`:e.title||e.ariaLabel?`img`:void 0,y=_?e.disabled?-1:0:void 0;return(0,t.h)(`span`,{...c,class:[r,m.value],style:[o,p.value],role:v,tabindex:y,"aria-hidden":_||e.title||e.ariaLabel?void 0:`true`,"aria-label":e.ariaLabel||e.title||void 0,"aria-disabled":_&&e.disabled?`true`:void 0,"aria-busy":e.loading?`true`:void 0,title:e.title||void 0,onClick:h,onKeydown:g},l)}}});function Ft(e,n){let r=(0,t.ref)(0),i=n.buffer??4,a=(0,t.computed)(()=>e.value.length*n.itemHeight),o=(0,t.computed)(()=>Math.min(n.maxHeight,a.value));return{scrollTop:r,onScroll:e=>{r.value=e.currentTarget.scrollTop},visible:(0,t.computed)(()=>{let t=e.value;if(t.length===0)return[];let a=Math.max(0,Math.floor(r.value/n.itemHeight)-i),s=Math.ceil(o.value/n.itemHeight)+i*2,c=Math.min(t.length,a+s),l=[];for(let e=a;e<c;e+=1)l.push({index:e,data:t[e],top:e*n.itemHeight});return l}),totalHeight:a,containerHeight:o,scrollToIndex:(e,t)=>{if(!t)return;let i=e*n.itemHeight;i<r.value?t.scrollTop=i:i+n.itemHeight>r.value+o.value&&(t.scrollTop=i-o.value+n.itemHeight)}}}function It(e,n,r){return(0,t.computed)(()=>{let{flatAll:t,byKey:i}=e.value;if(r.value)return{checked:new Set(n.value),halfChecked:new Set};let a=new Set,o=new Set,s=new Set(n.value),c=e=>{let t=i.get(e);return!!t&&!t.disableCheckbox&&!t.disabled};for(let e of t)if(s.has(e.key)){let t=[e];for(;t.length;){let e=t.pop();c(e.key)&&a.add(e.key);for(let n of e.childKeys){let e=i.get(n);e&&t.push(e)}}}for(let e=t.length-1;e>=0;--e){let n=t[e];if(!n.hasChildren)continue;let r=n.childKeys.map(e=>i.get(e)).filter(e=>!!e&&c(e.key));if(r.length===0)continue;let s=r.every(e=>a.has(e.key)),l=r.some(e=>a.has(e.key)||o.has(e.key));s?(c(n.key)&&a.add(n.key),o.delete(n.key)):l&&(o.add(n.key),a.delete(n.key))}return{checked:a,halfChecked:o}})}function Lt(e,t,n,r){let i=e.byKey.get(n);if(!i||i.disabled||i.disableCheckbox)return Array.from(t);let a=t.has(n),o=new Set(t);if(r)return a?o.delete(n):o.add(n),Array.from(o);let s=[],c=[n];for(;c.length;){let t=c.pop();s.push(t);let n=e.byKey.get(t);if(n)for(let e of n.childKeys)c.push(e)}if(a)for(let e of s)o.delete(e);else for(let t of s){let n=e.byKey.get(t);n&&!n.disabled&&!n.disableCheckbox&&o.add(t)}for(let t of[...i.parentKeys].reverse()){let n=e.byKey.get(t);if(!n)continue;let r=n.childKeys.map(t=>e.byKey.get(t)).filter(e=>!!e&&!e.disableCheckbox&&!e.disabled);r.length!==0&&(r.every(e=>o.has(e.key))?o.add(t):o.delete(t))}return Array.from(o)}var Rt={key:`key`,title:`title`,children:`children`,disabled:`disabled`,disableCheckbox:`disableCheckbox`,isLeaf:`isLeaf`,selectable:`selectable`};function zt(e){return{...Rt,...e}}function Bt(e,t,n){return e[t.key]??`__auto_${n}`}function Vt(e,t){let n=e[t.children];return Array.isArray(n)?n:void 0}function Ht(e,t,n,r,i){let a=Vt(e,t),o=e[t.isLeaf],s=!!a&&a.length>0,c=o===void 0?!s&&!e.loadable:o,l=Bt(e,t,i);return{key:l,raw:e,title:e[t.title]??l,level:n,parentKeys:r,isLeaf:c,disabled:!!e[t.disabled],disableCheckbox:!!e[t.disableCheckbox],selectable:e[t.selectable]!==!1,hasChildren:s,childKeys:s?a.map((e,n)=>Bt(e,t,i*1e3+n)):[]}}function Ut(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):``}function Wt(e,n){return(0,t.computed)(()=>{let t=[],r=new Map,i=new Map,a=[],o=n.value,s=0,c=(e,n,l)=>{let u=[];for(let i of e){s+=1;let e=Ht(i,o,n,l,s);t.push(e),u.push(e),r.set(e.key,e);let a=Vt(i,o);a&&c(a,n+1,[...l,e.key])}l.length===0?a.push(...u.map(e=>e.key)):i.set(l[l.length-1],u)};return c(e.value,0,[]),{flatAll:t,byKey:r,childrenByKey:i,rootKeys:a}})}function Gt(e,n,r,i){return(0,t.computed)(()=>{let{flatAll:t}=e.value,a=n.value,o=r.value.trim(),s=i?.value,c=[],l=new Set;if(o||s){for(let e of t)if(s?s(e.raw,e.parentKeys):o.length>0&&Ut(e.title).toLowerCase().includes(o.toLowerCase())){l.add(e.key);for(let t of e.parentKeys)l.add(t)}}for(let e of t)l.size>0&&!l.has(e.key)||e.parentKeys.every(e=>a.has(e))&&c.push(e);return c})}function Kt(e){return new Set(e??[])}function qt(e,n,r){let i=(0,t.ref)(Kt(n.value));return(0,t.watch)(e,e=>{e!==void 0&&(i.value=Kt(e))}),{current:(0,t.computed)(()=>e.value===void 0?i.value:Kt(e.value)),setKeys:t=>{e.value===void 0&&(i.value=Kt(t)),r(t)}}}function Jt(e,n,r){let i=(0,t.computed)(()=>e.selectedKeys),a=(0,t.computed)(()=>e.defaultSelectedKeys??[]),o=(0,t.computed)(()=>e.checkedKeys),s=(0,t.computed)(()=>e.defaultCheckedKeys??[]),c=(0,t.computed)(()=>e.expandedKeys),l=(0,t.computed)(()=>e.expandedKeys?e.expandedKeys:n.value.length>0?n.value:e.defaultExpandedKeys??[]),u=qt(i,a,e=>r(`update:selectedKeys`,e)),d=qt(o,s,e=>r(`update:checkedKeys`,e)),f=qt(c,l,e=>r(`update:expandedKeys`,e));return{selectedKeys:u.current,setSelectedKeys:u.setKeys,checkedKeys:d.current,setCheckedKeys:d.setKeys,expandedKeys:f.current,setExpandedKeys:f.setKeys}}var Yt={data:{type:Array,default:()=>[]},fieldNames:{type:Object,default:()=>({})},selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},selectedKeys:{type:Array,default:void 0},defaultSelectedKeys:{type:Array,default:()=>[]},checkable:{type:Boolean,default:!1},checkedKeys:{type:Array,default:void 0},defaultCheckedKeys:{type:Array,default:()=>[]},checkStrictly:{type:Boolean,default:!1},expandedKeys:{type:Array,default:void 0},defaultExpandedKeys:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loadData:{type:Function,default:void 0},draggable:{type:Boolean,default:!1},showLine:{type:Boolean,default:!1},blockNode:{type:Boolean,default:!1},expandAction:{type:[String,Boolean],default:`click`},searchValue:{type:String,default:``},filterTreeNode:{type:Function,default:void 0},indentSize:{type:Number,default:24},virtualScroll:{type:Boolean,default:!1},virtualItemHeight:{type:Number,default:32},virtualMaxHeight:{type:Number,default:320},focusedKey:{type:[String,Number],default:void 0},dragHoverExpandDelay:{type:Number,default:600},dragAutoScroll:{type:Boolean,default:!0},dragAutoScrollEdge:{type:Number,default:32},dragAutoScrollSpeed:{type:Number,default:12},classNames:{type:Object,default:void 0},styles:{type:Object,default:void 0}};function Xt(e){return e.filter(e=>e.hasChildren).map(e=>e.key)}function Zt(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):``}function Qt(e,n){let r=Zt(e);if(!n)return r;let i=r.toLowerCase(),a=n.toLowerCase(),o=i.indexOf(a);return o<0?r:(0,t.h)(`span`,null,[r.slice(0,o),(0,t.h)(`span`,{class:`ccui-tree__highlight`},r.slice(o,o+n.length)),r.slice(o+n.length)])}var $t=(0,t.defineComponent)({name:`CTree`,props:Yt,emits:[`update:selectedKeys`,`update:checkedKeys`,`update:expandedKeys`,`update:focusedKey`,`select`,`check`,`expand`,`load`,`drop`,`dragstart`,`dragenter`,`dragover`,`dragleave`,`focus-change`,`load-error`],setup(e,{emit:n,expose:r,slots:i}){let a=O(`tree`),o=(0,t.computed)(()=>zt(e.fieldNames)),s=(0,t.toRef)(e,`data`),c=(0,t.toRef)(e,`searchValue`),l=(0,t.computed)(()=>e.filterTreeNode),u=Wt(s,o),d=(0,t.ref)([]);e.defaultExpandAll&&e.expandedKeys===void 0&&(e.defaultExpandedKeys??[]).length===0&&(d.value=Xt(u.value.flatAll));let{selectedKeys:f,setSelectedKeys:p,checkedKeys:m,setCheckedKeys:h,expandedKeys:g,setExpandedKeys:_}=Jt(e,d,n),v=It(u,m,(0,t.computed)(()=>e.checkStrictly)),y=Gt(u,g,c,l),b=(0,t.ref)(new Set),x=(0,t.ref)(new Set),S=(0,t.ref)(new Set),C=(0,t.shallowRef)(null),w=(0,t.shallowRef)(null),T=(0,t.shallowRef)(null),E=(0,t.shallowRef)(null),D=(0,t.shallowRef)(null),k=(0,t.shallowRef)(0),A=(0,t.ref)(e.focusedKey),j=(0,t.computed)(()=>e.focusedKey===void 0?A.value:e.focusedKey),M=t=>{e.focusedKey===void 0&&(A.value=t),n(`update:focusedKey`,t),n(`focus-change`,t)},N=(0,t.ref)(null),P=(0,t.ref)(null),F=(0,t.computed)(()=>{let e=new Map;return y.value.forEach((t,n)=>e.set(t.key,n)),e}),I=(0,t.computed)(()=>e.virtualScroll&&y.value.length>0),L=Ft(y,{itemHeight:e.virtualItemHeight,maxHeight:e.virtualMaxHeight}),R=async(t,r)=>{if(e.loadData){S.value.delete(t.key),S.value=new Set(S.value),b.value.add(t.key),b.value=new Set(b.value);try{await e.loadData(t.raw),x.value.add(t.key),x.value=new Set(x.value),n(`load`,Array.from(x.value),{event:r,node:t})}catch(e){S.value.add(t.key),S.value=new Set(S.value),n(`load-error`,{error:e,node:t})}finally{b.value.delete(t.key),b.value=new Set(b.value)}}},z=async(t,r)=>{if(e.disabled)return;let i=g.value.has(t.key),a=new Set(g.value);i?a.delete(t.key):(a.add(t.key),e.loadData&&!t.hasChildren&&!t.isLeaf&&!x.value.has(t.key)&&await R(t,r));let o=Array.from(a);_(o),n(`expand`,o,{expanded:!i,node:t})},B=async t=>{let n=u.value.byKey.get(t);!n||!e.loadData||await R(n)},V=(t,r)=>{if(e.disabled||!e.selectable||!t.selectable||t.disabled)return;let i=f.value.has(t.key),a;a=e.multiple?i?Array.from(f.value).filter(e=>e!==t.key):[...f.value,t.key]:i?[]:[t.key],p(a),n(`select`,a,{selectedKeys:a,selected:!i,node:t,event:r})},H=(t,r)=>{if(e.disabled||!e.checkable||t.disableCheckbox||t.disabled)return;let i=v.value.checked.has(t.key),a=e.checkStrictly?m.value:v.value.checked,o=Lt(u.value,a,t.key,e.checkStrictly);h(o),n(`check`,o,{checkedKeys:o,halfCheckedKeys:Array.from(v.value.halfChecked),checked:!i,node:t,event:r})},ee=(t,r)=>{if(!e.draggable||r.disabled){t.preventDefault();return}w.value=r.key,t.dataTransfer?.setData(`text/plain`,String(r.key)),n(`dragstart`,{event:t,node:r})},U=(e,t)=>{let n=t.getBoundingClientRect();if(!n.height)return`inside`;let r=(e.clientY-n.top)/n.height;return r<.25?`before`:r>.75?`after`:`inside`},W=()=>{T.value&&=(clearTimeout(T.value),null),E.value=null},G=(t,n)=>{!e.dragHoverExpandDelay||e.dragHoverExpandDelay<=0||!t.hasChildren&&(!e.loadData||t.isLeaf)||g.value.has(t.key)||E.value!==t.key&&(W(),E.value=t.key,T.value=setTimeout(()=>{w.value!==null&&E.value===t.key&&z(t,n),T.value=null},e.dragHoverExpandDelay))},K=()=>{k.value=0,D.value!==null&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(D.value),D.value=null},q=()=>{let e=P.value;if(!e||k.value===0){D.value=null;return}e.scrollTop+=k.value,typeof requestAnimationFrame==`function`?D.value=requestAnimationFrame(q):D.value=null},te=t=>{if(!e.dragAutoScroll)return;let n=P.value;if(!n)return;let r=n.getBoundingClientRect(),i=e.dragAutoScrollEdge,a=e.dragAutoScrollSpeed,o=t.clientY-r.top,s=r.bottom-t.clientY,c=0;o<i&&o>0?c=-a:s<i&&s>0&&(c=a);let l=k.value===0;k.value=c,c!==0&&l&&typeof requestAnimationFrame==`function`?D.value=requestAnimationFrame(q):c===0&&K()},J=(t,r)=>{if(!e.draggable||w.value===null)return;t.preventDefault();let i=U(t,t.currentTarget);C.value={key:r.key,position:i},i===`inside`?G(r,t):E.value!==null&&W(),te(t),n(`dragover`,{event:t,node:r})},Y=(t,r)=>{e.draggable&&n(`dragenter`,{event:t,node:r})},ne=(t,r)=>{e.draggable&&(E.value===r.key&&W(),n(`dragleave`,{event:t,node:r}))},X=(t,r)=>{if(!e.draggable||w.value===null)return;t.preventDefault(),W(),K();let i=u.value.byKey.get(w.value);if(!i||i.key===r.key){w.value=null,C.value=null;return}n(`drop`,{event:t,node:r,dragNode:i,dropPosition:C.value?.key===r.key?C.value.position:`inside`}),w.value=null,C.value=null},re=n=>{if(i.switcher)return i.switcher({expanded:g.value.has(n.key),node:n,loading:b.value.has(n.key),loadFailed:S.value.has(n.key)});let r=g.value.has(n.key),o=b.value.has(n.key),s=S.value.has(n.key);return o?(0,t.h)(`span`,{class:a.e(`switcher-loading`)},`○`):s?(0,t.h)(`span`,{class:a.e(`switcher-error`),role:`button`,title:`Click to retry`,onClick:e=>{e.stopPropagation(),B(n.key)}},`!`):n.isLeaf&&!n.hasChildren?(0,t.h)(`span`,{class:a.e(`switcher-leaf`)}):(0,t.h)(`span`,{class:[a.e(`switcher`),r&&a.em(`switcher`,`open`),e.classNames?.switcher],style:e.styles?.switcher},(0,t.h)(Pt,{name:`mdi:menu-right`,size:12}))},ie=n=>{if(!e.checkable)return null;let r=v.value.checked.has(n.key),i=v.value.halfChecked.has(n.key);return(0,t.h)(`span`,{class:[a.e(`checkbox`),r&&a.em(`checkbox`,`checked`),i&&a.em(`checkbox`,`indeterminate`),(n.disabled||n.disableCheckbox)&&a.em(`checkbox`,`disabled`)],role:`checkbox`,"aria-checked":i?`mixed`:r,onClick:e=>{e.stopPropagation(),H(n,e)}},r?`✓`:i?`–`:``)},ae=e=>i.title?i.title({node:e,data:e.raw,expanded:g.value.has(e.key)}):Qt(e.title,c.value),oe=e=>i.icon?(0,t.h)(`span`,{class:a.e(`icon`)},i.icon({node:e,expanded:g.value.has(e.key)})):e.raw.icon?(0,t.h)(`span`,{class:a.e(`icon`)},e.raw.icon):null,se=n=>{if(!e.showLine||n.level===0)return null;let r=[];for(let o=0;o<n.level;o+=1)i.connector?r.push((0,t.h)(`span`,{key:`guide-${o}`,class:a.e(`guide`),style:{left:`${o*e.indentSize+e.indentSize/2}px`}},i.connector({depth:o,node:n}))):r.push((0,t.h)(`span`,{key:`guide-${o}`,class:a.e(`guide`),style:{left:`${o*e.indentSize+e.indentSize/2}px`}}));return r},ce=()=>{W(),K(),w.value=null,C.value=null},le=(n,r)=>{let i={paddingLeft:`${e.indentSize*n.level}px`,...r},o=f.value.has(n.key),s=j.value===n.key,c=C.value?.key===n.key,l=c?C.value.position:null,u=E.value===n.key;return(0,t.h)(`div`,{key:n.key,class:[a.e(`node`),o&&a.em(`node`,`selected`),s&&a.em(`node`,`focused`),n.disabled&&a.em(`node`,`disabled`),c&&l===`inside`&&a.em(`node`,`drop-inside`),c&&l===`before`&&a.em(`node`,`drop-before`),c&&l===`after`&&a.em(`node`,`drop-after`),e.blockNode&&a.em(`node`,`block`),u&&a.em(`node`,`hover-expand`),e.classNames?.node],role:`treeitem`,tabindex:s?0:-1,"aria-selected":o,"aria-expanded":n.hasChildren?g.value.has(n.key):void 0,"aria-disabled":n.disabled||void 0,"aria-level":n.level+1,"data-key":n.key,style:[i,e.styles?.node],draggable:e.draggable&&!n.disabled?!0:void 0,onDragstart:e=>ee(e,n),onDragover:e=>J(e,n),onDragenter:e=>Y(e,n),onDragleave:e=>ne(e,n),onDrop:e=>X(e,n),onDragend:ce,onFocus:()=>{j.value!==n.key&&M(n.key)}},[...se(n)||[],(0,t.h)(`span`,{class:a.e(`switcher-wrap`),onClick:t=>{t.stopPropagation(),(n.hasChildren||e.loadData&&!n.isLeaf)&&z(n,t)}},re(n)),ie(n),(0,t.h)(`span`,{class:[a.e(`content`),e.classNames?.label],style:e.styles?.label,onClick:t=>{V(n,t),e.expandAction===`click`&&!e.disabled&&!n.disabled&&(n.hasChildren||e.loadData&&!n.isLeaf)&&z(n,t)}},[oe(n),(0,t.h)(`span`,{class:a.e(`title`)},ae(n))])])},ue=e=>{let t=y.value;if(t.length===0)return;let n=j.value,r=n===void 0?-1:F.value.get(n)??-1,i=Math.max(0,Math.min(t.length-1,r+e));if(r===i&&n!==void 0)return;let a=t[i].key;M(a)},de=e=>{let t=y.value;t.length!==0&&M(t[e===1?t.length-1:0].key)},fe=t=>{if(e.disabled)return;let n=y.value;if(n.length===0)return;let r=j.value??n[0].key,i=F.value.get(r)??0,a=n[i];switch(t.key){case`ArrowDown`:t.preventDefault(),ue(1);break;case`ArrowUp`:t.preventDefault(),ue(-1);break;case`ArrowRight`:if(t.preventDefault(),a.hasChildren&&!g.value.has(a.key))z(a,t);else if(a.hasChildren){let e=n[i+1];e&&e.parentKeys.includes(a.key)&&M(e.key)}else e.loadData&&!a.isLeaf&&!x.value.has(a.key)&&z(a,t);break;case`ArrowLeft`:if(t.preventDefault(),a.hasChildren&&g.value.has(a.key))z(a,t);else if(a.parentKeys.length>0){let e=a.parentKeys[a.parentKeys.length-1];M(e)}break;case`Home`:t.preventDefault(),de(-1);break;case`End`:t.preventDefault(),de(1);break;case`Enter`:case` `:{t.preventDefault();let n=new MouseEvent(`click`);e.checkable?H(a,n):V(a,n);break}}},pe=e=>typeof CSS<`u`&&typeof CSS.escape==`function`?CSS.escape(e):e.replace(/(["\\])/g,`\\$1`),me=()=>{let e=j.value;if(e===void 0)return;let t=F.value.get(e);t!==void 0&&(I.value?L.scrollToIndex(t,P.value):N.value&&N.value.querySelector(`[data-key="${pe(String(e))}"]`)?.focus({preventScroll:!1}))};return(0,t.watch)(j,()=>{(0,t.nextTick)(me)}),(0,t.onUnmounted)(()=>{W(),K()}),r({retryLoad:B,isNodeLoading:e=>b.value.has(e),hasLoadError:e=>S.value.has(e)}),()=>{let n=[a.b(),e.disabled&&a.m(`disabled`),e.showLine&&a.m(`show-line`),e.draggable&&a.m(`draggable`),e.classNames?.root],r=e.styles?.root,i=e.multiple||e.checkable;if(y.value.length===0)return(0,t.h)(`div`,{ref:N,class:n,style:r,role:`tree`,"aria-multiselectable":i||void 0,"aria-disabled":e.disabled||void 0,onKeydown:fe},(0,t.h)(`div`,{class:a.e(`empty`)},`No data`));if(I.value){let o=L.visible.value.map(({data:t,top:n})=>le(t,{position:`absolute`,top:`${n}px`,left:0,right:0,height:`${e.virtualItemHeight}px`}));return(0,t.h)(`div`,{ref:N,class:n,style:r,role:`tree`,"aria-multiselectable":i||void 0,"aria-disabled":e.disabled||void 0,onKeydown:fe},(0,t.h)(`div`,{ref:P,class:a.e(`virtual`),style:{height:`${L.containerHeight.value}px`,overflow:`auto`,position:`relative`},onScroll:L.onScroll},(0,t.h)(`div`,{style:{height:`${L.totalHeight.value}px`,position:`relative`}},o)))}return(0,t.h)(`div`,{ref:N,class:n,style:r,role:`tree`,"aria-multiselectable":i||void 0,"aria-disabled":e.disabled||void 0,onKeydown:fe,tabindex:j.value===void 0?0:-1},y.value.map(e=>le(e)))}}});$t.install=function(e){e.component($t.name,$t)};var en=`SHOW_PARENT`,tn=`SHOW_CHILD`,nn=`SHOW_ALL`,rn={modelValue:{type:[String,Number,Array],default:void 0},treeData:{type:Array,default:()=>[]},fieldNames:{type:Object,default:()=>({})},multiple:{type:Boolean,default:!1},treeCheckable:{type:Boolean,default:!0},treeCheckStrictly:{type:Boolean,default:!1},treeDefaultExpandAll:{type:Boolean,default:!1},treeDefaultExpandedKeys:{type:Array,default:()=>[]},placeholder:{type:String,default:`请选择`},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:void 0},suffixIcon:{type:[String,Object],default:void 0},removeIcon:{type:[String,Object],default:void 0},size:{type:String,default:`default`},status:{type:String,default:``},placement:{type:String,default:`bottomLeft`},popupClassName:{type:String,default:``},popupAppendToBody:{type:Boolean,default:!1},getPopupContainer:{type:Function,default:void 0},autoFocus:{type:Boolean,default:!1},inputReadOnly:{type:Boolean,default:!0},transitionName:{type:String,default:`ccui-tree-select-fade`},maxTagCount:{type:Number,default:3},notFoundContent:{type:String,default:``},popupMaxHeight:{type:Number,default:280},showSearch:{type:[Boolean,Object],default:!1},searchPlaceholder:{type:String,default:``},loadData:{type:Function,default:void 0},variant:{type:String,default:`outlined`},classNames:{type:Object,default:void 0},styles:{type:Object,default:void 0}},an={bottomLeft:`bottom-start`,bottomRight:`bottom-end`,topLeft:`top-start`,topRight:`top-end`};function on(e){return{label:e?.label??`label`,value:e?.value??`value`,children:e?.children??`children`,disabled:e?.disabled??`disabled`}}function sn(e){return{title:e.label,key:e.value,children:e.children,disabled:e.disabled}}function cn(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):``}function ln(e,t){let n=new Map;function r(e){if(e)for(let i of e){let e=i[t.value];e!=null&&n.set(e,{key:e,label:cn(i[t.label]),disabled:!!i[t.disabled]});let a=i[t.children];Array.isArray(a)&&r(a)}}return r(e),n}function un(e){return e?Array.isArray(e)?e:[e]:[]}var $=(0,t.defineComponent)({name:`CTreeSelect`,props:rn,emits:[`update:modelValue`,`change`,`popup-visible-change`,`focus`,`blur`],setup(e,{emit:r,slots:i}){let a=O(`tree-select`),o=j(),s=`ccui-tree-select-popup-${(0,t.getCurrentInstance)()?.uid??0}`,c=(0,t.computed)(()=>e.notFoundContent||o.locale?.TreeSelect?.notFoundContent||`暂无数据`),l=(0,t.ref)(null),u=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.shallowRef)(!1),h=(0,t.inject)(M,null),g=(0,t.computed)(()=>on(e.fieldNames)),_=(0,t.computed)(()=>sn(g.value)),v=(0,t.computed)(()=>!!e.showSearch),y=(0,t.computed)(()=>{let t=e.showSearch;return t&&typeof t==`object`?t:{}}),b=(0,t.shallowRef)(``),x=(0,t.computed)(()=>{if(!v.value)return;let e=y.value.filterTreeNode;if(e){let t=b.value;return n=>e(t,n)}let t=y.value.treeNodeFilterProp;if(t&&t!==g.value.label){let e=b.value;return n=>{if(!e)return!0;let r=n[t];return r==null||typeof r!=`string`&&typeof r!=`number`?!1:String(r).toLowerCase().includes(e.toLowerCase())}}}),S=(0,t.computed)(()=>e.searchPlaceholder||o.locale?.TreeSelect?.searchPlaceholder||`搜索`),C=(0,t.computed)(()=>ln(e.treeData,g.value)),w=(0,t.computed)(()=>an[e.placement]),T=(0,t.computed)(()=>typeof document>`u`?null:e.getPopupContainer?e.getPopupContainer(l.value):e.popupAppendToBody?document.body:null),D=(0,t.computed)(()=>T.value!==null),{floatingStyles:k}=E(l,u,{placement:w,open:m,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(4),(0,n.flip)(),(0,n.shift)({padding:8})],strategy:(0,t.computed)(()=>D.value?`fixed`:`absolute`)}),A=(0,t.computed)(()=>h?.validateStatus.value??``),N=(0,t.computed)(()=>e.status||A.value),P=(0,t.computed)(()=>un(e.modelValue)),F=(0,t.computed)(()=>e.multiple?P.value.map(e=>({key:e,label:C.value.get(e)?.label??String(e)})):[]),I=(0,t.computed)(()=>F.value.slice(0,e.maxTagCount)),L=(0,t.computed)(()=>Math.max(F.value.length-I.value.length,0)),R=(0,t.computed)(()=>{if(e.multiple)return``;let t=P.value;return t.length===0?``:C.value.get(t[0])?.label??``});function z(){e.disabled||m.value||(m.value=!0,r(`popup-visible-change`,!0),v.value&&(0,t.nextTick)(()=>f.value?.focus()))}function B(){m.value&&(m.value=!1,b.value=``,r(`popup-visible-change`,!1))}function V(){m.value?B():z()}function H(e){r(`update:modelValue`,e);let t=[];Array.isArray(e)?t=e.map(e=>C.value.get(e)?.label??``):e!=null&&(t=[C.value.get(e)?.label??``]),r(`change`,e,t),h?.validate(`change`)}function ee(t){if(!e.multiple){let e=t[t.length-1];H(e??null),B();return}e.treeCheckable||H(t.length===0?null:t)}function U(t){!e.multiple||!e.treeCheckable||H(t.length===0?null:t)}function W(e,t){e.stopPropagation();let n=P.value.filter(e=>e!==t);H(n.length===0?null:n)}function G(e){e.stopPropagation(),P.value.length!==0&&H(null)}function K(e){if(!m.value)return;let t=e.target;t&&(l.value?.contains(t)||u.value?.contains(t)||B())}(0,t.onMounted)(()=>{document.addEventListener(`mousedown`,K,!0),e.autoFocus&&(0,t.nextTick)(()=>d.value?.focus())}),(0,t.onUnmounted)(()=>{document.removeEventListener(`mousedown`,K,!0)});let q=(0,t.computed)(()=>e.clearable&&!e.disabled&&P.value.length>0);function te(){let n=e.multiple&&e.treeCheckable,r={ref:p,data:e.treeData,fieldNames:_.value,defaultExpandAll:e.treeDefaultExpandAll,defaultExpandedKeys:e.treeDefaultExpandedKeys,blockNode:!0,searchValue:v.value?b.value:``,filterTreeNode:x.value,loadData:e.loadData};return n?(r.checkable=!0,r.checkStrictly=e.treeCheckStrictly,r.checkedKeys=P.value,r.selectable=!1,r.onCheck=e=>U(e)):(r.selectable=!0,r.multiple=!!e.multiple,r.selectedKeys=P.value,r.onSelect=e=>ee(e)),(0,t.h)($t,r)}function J(){return v.value?(0,t.createVNode)(`div`,{class:a.e(`search`)},[(0,t.createVNode)(`input`,{ref:f,class:a.e(`search-input`),type:`text`,value:b.value,placeholder:S.value,onInput:e=>{b.value=e.target.value},onKeydown:re},null)]):null}function Y(){let n=[a.e(`panel`),e.popupClassName].filter(Boolean),r={...k.value,maxHeight:`${e.popupMaxHeight}px`},i=!e.treeData||e.treeData.length===0;return(0,t.h)(`div`,{ref:u,id:s,class:[n,e.classNames?.popup],style:[r,e.styles?.popup],role:`dialog`,"aria-label":e.placeholder||`选择`},[J(),i?(0,t.createVNode)(`div`,{class:a.e(`empty`)},[c.value]):(0,t.createVNode)(`div`,{class:a.e(`tree-wrap`)},[te()])])}function ne(e){let t=p.value??null,n=t&&t.$el||t;if(!n)return!1;let r=new KeyboardEvent(`keydown`,{key:e,bubbles:!0,cancelable:!0});return n.dispatchEvent(r),!0}function X(t){if(e.disabled)return;let n=t.key;if(!m.value){(n===`Enter`||n===` `||n===`ArrowDown`)&&(t.preventDefault(),z());return}if(n===`Escape`){t.preventDefault(),B();return}if(n===`Tab`){B();return}v.value||[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`,`Enter`,`Home`,`End`].includes(n)&&(t.preventDefault(),ne(n))}function re(e){let t=e.key;if(t===`Escape`){e.preventDefault(),B(),d.value?.focus();return}[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`,`Enter`].includes(t)&&(e.preventDefault(),ne(t))}function ie(){let n=m.value?Y():null,r=(0,t.h)(t.Transition,{name:e.transitionName,appear:!0},{default:()=>n});return D.value&&T.value?(0,t.h)(t.Teleport,{to:T.value},[r]):r}let ae=(0,t.computed)(()=>[a.b(),e.disabled&&a.is(`disabled`),m.value&&a.is(`open`),e.multiple&&a.is(`multiple`),a.m(e.size),N.value&&a.m(`status-${N.value}`),e.variant&&a.m(`variant-${e.variant}`)]);function oe(){return e.multiple?P.value.length===0?(0,t.createVNode)(`span`,{class:a.e(`placeholder`),"aria-hidden":`true`},[e.placeholder]):(0,t.createVNode)(`span`,{class:a.e(`tags`)},[I.value.map(n=>(0,t.createVNode)(`span`,{class:a.e(`tag`)},[(0,t.createVNode)(`span`,{class:a.e(`tag-label`)},[n.label]),!e.disabled&&(0,t.createVNode)(`span`,{class:a.e(`tag-close`),role:`button`,"aria-label":`移除`,onClick:e=>W(e,n.key)},[i.removeIcon?i.removeIcon():Q(e.removeIcon)??Q(`mdi:close`)])])),L.value>0&&(0,t.createVNode)(`span`,{class:[a.e(`tag`),a.em(`tag`,`overflow`)]},[(0,t.createVNode)(`span`,{class:a.e(`tag-label`)},[(0,t.createTextVNode)(`+ `),L.value])])]):(0,t.createVNode)(`input`,{ref:d,class:a.e(`input`),type:`text`,readonly:e.inputReadOnly,disabled:e.disabled,placeholder:e.placeholder,value:R.value,role:`combobox`,"aria-haspopup":`tree`,"aria-expanded":m.value,"aria-controls":s,onFocus:()=>r(`focus`),onBlur:()=>{r(`blur`),h?.validate(`blur`)},onKeydown:X},null)}return()=>(0,t.createVNode)(`div`,{ref:l,class:[ae.value,e.classNames?.root],style:e.styles?.root},[(0,t.createVNode)(`div`,{class:[a.e(`input-wrap`),e.classNames?.inputWrap],style:e.styles?.inputWrap,tabindex:e.multiple?0:void 0,role:e.multiple?`combobox`:void 0,"aria-haspopup":e.multiple?`tree`:void 0,"aria-expanded":e.multiple?m.value:void 0,"aria-controls":e.multiple?s:void 0,onClick:V,onKeydown:e.multiple?X:void 0},[oe(),q.value?(0,t.createVNode)(`span`,{class:a.e(`clear`),role:`button`,"aria-label":`清除`,onClick:G},[i.clearIcon?i.clearIcon():Q(e.clearIcon)??Q(`mdi:close`)]):(0,t.createVNode)(`span`,{class:a.e(`suffix`),"aria-hidden":`true`},[i.suffixIcon?i.suffixIcon():Q(e.suffixIcon)??Q(`mdi:menu-down`)])]),ie()])}});$.install=function(e){e.component($.name,$)},e.TREE_SELECT_SHOW_ALL=nn,e.TREE_SELECT_SHOW_CHILD=tn,e.TREE_SELECT_SHOW_PARENT=en,e.TreeSelect=$,e.default={title:`TreeSelect 树选择`,category:`数据录入`,status:`80%`,install(e){e.component($.name,$)}}});
@@ -0,0 +1,188 @@
1
+ import type { ExtractPropTypes, PropType, VNode } from 'vue';
2
+ import type { CcSemanticClasses, CcSemanticStyles } from '../../shared/hooks/use-semantic';
3
+ import type { TreeNodeData, TreeNodeKey } from '../../tree/src/tree-types';
4
+ /**
5
+ * `showCheckedStrategy` 取值常量:
6
+ *
7
+ * - `TREE_SELECT_SHOW_PARENT`:父子都选中时只输出父节点(默认)
8
+ * - `TREE_SELECT_SHOW_CHILD`:只输出叶子节点
9
+ * - `TREE_SELECT_SHOW_ALL`:输出所有选中节点(父 + 子全集)
10
+ *
11
+ * **不挂命名空间**,从 `@vaebe/ccui` 顶层 export。
12
+ * 当前 TreeSelect 尚未接入 `showCheckedStrategy`,常量已 export 供外部代码提前引用。
13
+ */
14
+ export declare const TREE_SELECT_SHOW_PARENT: "SHOW_PARENT";
15
+ export declare const TREE_SELECT_SHOW_CHILD: "SHOW_CHILD";
16
+ export declare const TREE_SELECT_SHOW_ALL: "SHOW_ALL";
17
+ export type TreeSelectShowCheckedStrategy = typeof TREE_SELECT_SHOW_PARENT | typeof TREE_SELECT_SHOW_CHILD | typeof TREE_SELECT_SHOW_ALL;
18
+ export type TreeSelectSize = 'large' | 'default' | 'small';
19
+ export type TreeSelectStatus = '' | 'error' | 'warning' | 'success' | 'validating';
20
+ export type TreeSelectPlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
21
+ export type TreeSelectModelValue = TreeNodeKey | TreeNodeKey[] | null;
22
+ export type GetPopupContainer = (triggerNode: HTMLElement | null) => HTMLElement | null;
23
+ export interface TreeSelectFieldNames {
24
+ label?: string;
25
+ value?: string;
26
+ children?: string;
27
+ disabled?: string;
28
+ }
29
+ export interface TreeSelectFilterTreeNode {
30
+ (input: string, node: TreeNodeData): boolean;
31
+ }
32
+ export interface TreeSelectShowSearchConfig {
33
+ filterTreeNode?: TreeSelectFilterTreeNode;
34
+ treeNodeFilterProp?: string;
35
+ }
36
+ export declare const treeSelectProps: {
37
+ readonly modelValue: {
38
+ readonly type: PropType<TreeSelectModelValue>;
39
+ readonly default: undefined;
40
+ };
41
+ readonly treeData: {
42
+ readonly type: PropType<TreeNodeData[]>;
43
+ readonly default: () => never[];
44
+ };
45
+ readonly fieldNames: {
46
+ readonly type: PropType<TreeSelectFieldNames>;
47
+ readonly default: () => {};
48
+ };
49
+ readonly multiple: {
50
+ readonly type: BooleanConstructor;
51
+ readonly default: false;
52
+ };
53
+ readonly treeCheckable: {
54
+ readonly type: BooleanConstructor;
55
+ readonly default: true;
56
+ };
57
+ readonly treeCheckStrictly: {
58
+ readonly type: BooleanConstructor;
59
+ readonly default: false;
60
+ };
61
+ readonly treeDefaultExpandAll: {
62
+ readonly type: BooleanConstructor;
63
+ readonly default: false;
64
+ };
65
+ readonly treeDefaultExpandedKeys: {
66
+ readonly type: PropType<TreeNodeKey[]>;
67
+ readonly default: () => never[];
68
+ };
69
+ readonly placeholder: {
70
+ readonly type: StringConstructor;
71
+ readonly default: "请选择";
72
+ };
73
+ readonly disabled: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: false;
76
+ };
77
+ readonly clearable: {
78
+ readonly type: BooleanConstructor;
79
+ readonly default: true;
80
+ };
81
+ /**
82
+ * 自定义清除图标。接 string(Iconify name / CSS class)或 VNode;
83
+ * 同名 `clearIcon` slot 优先级最高。
84
+ */
85
+ readonly clearIcon: {
86
+ readonly type: PropType<string | VNode>;
87
+ readonly default: undefined;
88
+ };
89
+ /**
90
+ * 自定义下拉箭头图标。接 string(Iconify name / CSS class)或 VNode;
91
+ * 同名 `suffixIcon` slot 优先级最高。
92
+ */
93
+ readonly suffixIcon: {
94
+ readonly type: PropType<string | VNode>;
95
+ readonly default: undefined;
96
+ };
97
+ /**
98
+ * 自定义 multiple 模式下 tag 的删除图标。接 string(Iconify name / CSS class)或 VNode;
99
+ * 同名 `removeIcon` slot 优先级最高。
100
+ */
101
+ readonly removeIcon: {
102
+ readonly type: PropType<string | VNode>;
103
+ readonly default: undefined;
104
+ };
105
+ readonly size: {
106
+ readonly type: PropType<TreeSelectSize>;
107
+ readonly default: "default";
108
+ };
109
+ readonly status: {
110
+ readonly type: PropType<TreeSelectStatus>;
111
+ readonly default: "";
112
+ };
113
+ readonly placement: {
114
+ readonly type: PropType<TreeSelectPlacement>;
115
+ readonly default: "bottomLeft";
116
+ };
117
+ readonly popupClassName: {
118
+ readonly type: StringConstructor;
119
+ readonly default: "";
120
+ };
121
+ readonly popupAppendToBody: {
122
+ readonly type: BooleanConstructor;
123
+ readonly default: false;
124
+ };
125
+ readonly getPopupContainer: {
126
+ readonly type: PropType<GetPopupContainer>;
127
+ readonly default: undefined;
128
+ };
129
+ readonly autoFocus: {
130
+ readonly type: BooleanConstructor;
131
+ readonly default: false;
132
+ };
133
+ readonly inputReadOnly: {
134
+ readonly type: BooleanConstructor;
135
+ readonly default: true;
136
+ };
137
+ readonly transitionName: {
138
+ readonly type: StringConstructor;
139
+ readonly default: "ccui-tree-select-fade";
140
+ };
141
+ readonly maxTagCount: {
142
+ readonly type: NumberConstructor;
143
+ readonly default: 3;
144
+ };
145
+ readonly notFoundContent: {
146
+ readonly type: StringConstructor;
147
+ readonly default: "";
148
+ };
149
+ readonly popupMaxHeight: {
150
+ readonly type: NumberConstructor;
151
+ readonly default: 280;
152
+ };
153
+ readonly showSearch: {
154
+ readonly type: PropType<boolean | TreeSelectShowSearchConfig>;
155
+ readonly default: false;
156
+ };
157
+ readonly searchPlaceholder: {
158
+ readonly type: StringConstructor;
159
+ readonly default: "";
160
+ };
161
+ readonly loadData: {
162
+ readonly type: PropType<(node: TreeNodeData) => Promise<void>>;
163
+ readonly default: undefined;
164
+ };
165
+ /**
166
+ * 录入组件统一 variant 形态。
167
+ */
168
+ readonly variant: {
169
+ readonly type: PropType<TreeSelectVariant>;
170
+ readonly default: "outlined";
171
+ };
172
+ /**
173
+ * 语义化 DOM className 注入。可用 key:`root` / `inputWrap` / `popup`。
174
+ */
175
+ readonly classNames: {
176
+ readonly type: PropType<CcSemanticClasses>;
177
+ readonly default: undefined;
178
+ };
179
+ /**
180
+ * 语义化 DOM style 注入。可用 key 与 classNames 一致。
181
+ */
182
+ readonly styles: {
183
+ readonly type: PropType<CcSemanticStyles>;
184
+ readonly default: undefined;
185
+ };
186
+ };
187
+ export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
188
+ export type TreeSelectVariant = 'outlined' | 'filled' | 'borderless' | 'underlined';
@@ -0,0 +1,128 @@
1
+ import type { TreeNodeData, TreeNodeKey } from '../../tree/src/tree-types';
2
+ import type { TreeSelectFieldNames, TreeSelectPlacement, TreeSelectShowSearchConfig } from './tree-select-types';
3
+
4
+ declare const _default: import("vue").DefineComponent<{
5
+ readonly size: import("./tree-select-types").TreeSelectSize;
6
+ readonly multiple: boolean;
7
+ readonly disabled: boolean;
8
+ readonly placeholder: string;
9
+ readonly status: import("./tree-select-types").TreeSelectStatus;
10
+ readonly notFoundContent: string;
11
+ readonly placement: TreeSelectPlacement;
12
+ readonly popupClassName: string;
13
+ readonly popupAppendToBody: boolean;
14
+ readonly transitionName: string;
15
+ readonly popupMaxHeight: number;
16
+ readonly variant: import("./tree-select-types").TreeSelectVariant;
17
+ readonly searchPlaceholder: string;
18
+ readonly fieldNames: TreeSelectFieldNames;
19
+ readonly showSearch: boolean | TreeSelectShowSearchConfig;
20
+ readonly maxTagCount: number;
21
+ readonly clearable: boolean;
22
+ readonly autoFocus: boolean;
23
+ readonly inputReadOnly: boolean;
24
+ readonly treeData: TreeNodeData[];
25
+ readonly treeCheckable: boolean;
26
+ readonly treeCheckStrictly: boolean;
27
+ readonly treeDefaultExpandAll: boolean;
28
+ readonly treeDefaultExpandedKeys: TreeNodeKey[];
29
+ readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
30
+ readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
31
+ readonly modelValue?: import("./tree-select-types").TreeSelectModelValue | undefined;
32
+ readonly clearIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }> | undefined;
35
+ readonly getPopupContainer?: import("./tree-select-types").GetPopupContainer | undefined;
36
+ readonly loadData?: ((node: TreeNodeData) => Promise<void>) | undefined;
37
+ readonly suffixIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }> | undefined;
40
+ readonly removeIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }> | undefined;
43
+ }, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "blur" | "focus" | "update:modelValue" | "popup-visible-change")[], "change" | "blur" | "focus" | "update:modelValue" | "popup-visible-change", import("vue").PublicProps, Readonly<{
44
+ readonly size: import("./tree-select-types").TreeSelectSize;
45
+ readonly multiple: boolean;
46
+ readonly disabled: boolean;
47
+ readonly placeholder: string;
48
+ readonly status: import("./tree-select-types").TreeSelectStatus;
49
+ readonly notFoundContent: string;
50
+ readonly placement: TreeSelectPlacement;
51
+ readonly popupClassName: string;
52
+ readonly popupAppendToBody: boolean;
53
+ readonly transitionName: string;
54
+ readonly popupMaxHeight: number;
55
+ readonly variant: import("./tree-select-types").TreeSelectVariant;
56
+ readonly searchPlaceholder: string;
57
+ readonly fieldNames: TreeSelectFieldNames;
58
+ readonly showSearch: boolean | TreeSelectShowSearchConfig;
59
+ readonly maxTagCount: number;
60
+ readonly clearable: boolean;
61
+ readonly autoFocus: boolean;
62
+ readonly inputReadOnly: boolean;
63
+ readonly treeData: TreeNodeData[];
64
+ readonly treeCheckable: boolean;
65
+ readonly treeCheckStrictly: boolean;
66
+ readonly treeDefaultExpandAll: boolean;
67
+ readonly treeDefaultExpandedKeys: TreeNodeKey[];
68
+ readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
69
+ readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
70
+ readonly modelValue?: import("./tree-select-types").TreeSelectModelValue | undefined;
71
+ readonly clearIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
72
+ [key: string]: any;
73
+ }> | undefined;
74
+ readonly getPopupContainer?: import("./tree-select-types").GetPopupContainer | undefined;
75
+ readonly loadData?: ((node: TreeNodeData) => Promise<void>) | undefined;
76
+ readonly suffixIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
+ [key: string]: any;
78
+ }> | undefined;
79
+ readonly removeIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
80
+ [key: string]: any;
81
+ }> | undefined;
82
+ }> & Readonly<{
83
+ onChange?: ((...args: any[]) => any) | undefined;
84
+ onBlur?: ((...args: any[]) => any) | undefined;
85
+ onFocus?: ((...args: any[]) => any) | undefined;
86
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
87
+ "onPopup-visible-change"?: ((...args: any[]) => any) | undefined;
88
+ }>, {
89
+ readonly size: import("./tree-select-types").TreeSelectSize;
90
+ readonly multiple: boolean;
91
+ readonly disabled: boolean;
92
+ readonly classNames: import("../../shared/hooks/use-semantic").CcSemanticClasses;
93
+ readonly styles: import("../../shared/hooks/use-semantic").CcSemanticStyles;
94
+ readonly modelValue: import("./tree-select-types").TreeSelectModelValue;
95
+ readonly placeholder: string;
96
+ readonly clearIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
97
+ [key: string]: any;
98
+ }>;
99
+ readonly status: import("./tree-select-types").TreeSelectStatus;
100
+ readonly notFoundContent: string;
101
+ readonly placement: TreeSelectPlacement;
102
+ readonly popupClassName: string;
103
+ readonly popupAppendToBody: boolean;
104
+ readonly getPopupContainer: import("./tree-select-types").GetPopupContainer;
105
+ readonly transitionName: string;
106
+ readonly popupMaxHeight: number;
107
+ readonly variant: import("./tree-select-types").TreeSelectVariant;
108
+ readonly searchPlaceholder: string;
109
+ readonly fieldNames: TreeSelectFieldNames;
110
+ readonly showSearch: boolean | TreeSelectShowSearchConfig;
111
+ readonly maxTagCount: number;
112
+ readonly loadData: (node: TreeNodeData) => Promise<void>;
113
+ readonly clearable: boolean;
114
+ readonly autoFocus: boolean;
115
+ readonly inputReadOnly: boolean;
116
+ readonly suffixIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
117
+ [key: string]: any;
118
+ }>;
119
+ readonly removeIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
120
+ [key: string]: any;
121
+ }>;
122
+ readonly treeData: TreeNodeData[];
123
+ readonly treeCheckable: boolean;
124
+ readonly treeCheckStrictly: boolean;
125
+ readonly treeDefaultExpandAll: boolean;
126
+ readonly treeDefaultExpandedKeys: TreeNodeKey[];
127
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
128
+ export default _default;
@@ -0,0 +1,2 @@
1
+ .ccui-icon{color:inherit;fill:currentColor;transform:rotate(var(--ccui-icon-rotate,0deg));transform-origin:50%;vertical-align:-.125em;justify-content:center;align-items:center;line-height:0;display:inline-flex}.ccui-icon svg,.ccui-icon i{fill:currentColor;stroke:currentColor;flex:none;width:1em;height:1em;display:block}.ccui-icon--spin{animation:1s linear infinite ccui-icon-spin}.ccui-icon--spin-ccw{animation-direction:reverse}.ccui-icon--clickable{cursor:pointer;transition:opacity .2s}.ccui-icon--clickable:hover{opacity:.7}.ccui-icon--clickable:focus-visible{outline:2px solid var(--ccui-primary,#1677ff);outline-offset:2px}.ccui-icon--disabled{cursor:not-allowed;color:var(--ccui-color-text-disabled,#00000040);opacity:.5}.ccui-icon--loading{color:var(--ccui-color-text-tertiary,#00000073)}.ccui-icon__loading-spinner{width:1em;height:1em;display:block}.ccui-icon--two-tone{color:var(--ccui-icon-two-tone-color,var(--ccui-color-primary,#1677ff))}@keyframes ccui-icon-spin{0%{transform:rotate(var(--ccui-icon-rotate,0deg))}to{transform:rotate(calc(var(--ccui-icon-rotate,0deg) + 1turn))}}.ccui-tree{color:var(--ccui-text,#000000e0);font-size:var(--ccui-font-size,14px)}.ccui-tree__node{border-radius:var(--ccui-border-radius,6px);cursor:pointer;align-items:center;gap:4px;min-height:28px;padding:2px 4px;transition:background-color .2s;display:flex;position:relative}.ccui-tree__node:hover{background:var(--ccui-color-fill-tertiary,#0000000a)}.ccui-tree__node--selected{background:var(--ccui-color-primary-bg,#e6f4ff);color:var(--ccui-primary,#1677ff)}.ccui-tree__node--focused{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--ccui-color-primary,#1677ff) 45%, transparent)}.ccui-tree__node:focus-visible{outline:2px solid var(--ccui-primary,#1677ff);outline-offset:-2px}.ccui-tree__virtual{width:100%}.ccui-tree__guide{background:var(--ccui-color-border-secondary,#f0f0f0);pointer-events:none;width:1px;position:absolute;top:0;bottom:0}.ccui-tree__node--hover-expand{background:color-mix(in srgb, var(--ccui-color-primary,#1677ff) 6%, transparent)}.ccui-tree__switcher-error{background:var(--ccui-color-error-bg,#fff2f0);width:16px;height:16px;color:var(--ccui-color-error,#ff4d4f);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:700;line-height:1;display:inline-flex}.ccui-tree__node--disabled{color:var(--ccui-color-text-disabled,#00000040);cursor:not-allowed}.ccui-tree__node--block{width:100%}.ccui-tree__node--drop-inside{background:var(--ccui-color-primary-bg,#e6f4ff);box-shadow:inset 0 0 0 1px var(--ccui-primary,#1677ff)}.ccui-tree__node--drop-before:before,.ccui-tree__node--drop-after:after{background:var(--ccui-primary,#1677ff);content:"";width:100%;height:2px;position:absolute;left:0}.ccui-tree__node--drop-before:before{top:-1px}.ccui-tree__node--drop-after:after{bottom:-1px}.ccui-tree__switcher-wrap{width:20px;height:20px;color:var(--ccui-color-text-tertiary,#00000073);flex:none;justify-content:center;align-items:center;display:inline-flex}.ccui-tree__switcher{justify-content:center;align-items:center;line-height:0;transition:transform .2s;display:inline-flex}.ccui-tree__switcher--open{transform:rotate(90deg)}.ccui-tree__switcher-leaf{width:14px;height:14px;display:inline-block}.ccui-tree__switcher-loading{text-align:center;width:14px;height:14px;font-size:14px;line-height:14px;animation:1s linear infinite ccui-tree-spin;display:inline-block}.ccui-tree__checkbox{border:1px solid var(--ccui-color-border,#d9d9d9);background:var(--ccui-color-bg-container,#fff);color:#0000;border-radius:2px;flex:none;justify-content:center;align-items:center;width:16px;height:16px;font-size:12px;line-height:1;transition:background-color .2s,border-color .2s;display:inline-flex}.ccui-tree__checkbox--checked{background:var(--ccui-primary,#1677ff);border-color:var(--ccui-primary,#1677ff);color:#fff}.ccui-tree__checkbox--indeterminate{border-color:var(--ccui-primary,#1677ff);color:var(--ccui-primary,#1677ff)}.ccui-tree__checkbox--disabled{background:var(--ccui-disabled-bg,#0000000a);border-color:var(--ccui-color-border,#d9d9d9);color:var(--ccui-color-text-disabled,#00000040);cursor:not-allowed}.ccui-tree__content{flex:1;align-items:center;gap:4px;min-width:0;padding:0 4px;display:inline-flex}.ccui-tree__icon{color:var(--ccui-color-text-secondary,#000000a6);flex:none;display:inline-flex}.ccui-tree__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ccui-tree__highlight{background:var(--ccui-color-warning-bg,#fffbe6);color:var(--ccui-color-warning,#faad14)}.ccui-tree__empty{color:var(--ccui-color-text-tertiary,#00000073);text-align:center;padding:16px}.ccui-tree--draggable .ccui-tree__node{cursor:grab}@keyframes ccui-tree-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--ccui-global-bg:#f5f5f5;--ccui-global-bg-normal:#fff;--ccui-base-bg:#fff;--ccui-base-bg-dark:#000000d9;--ccui-brand:#1677ff;--ccui-brand-foil:#e6f4ff;--ccui-brand-hover:#4096ff;--ccui-brand-active:#0958d9;--ccui-brand-active-focus:#003eb3;--ccui-contrast:#ff4d4f;--ccui-text:#000000e0;--ccui-text-weak:#000000a6;--ccui-aide-text:#00000073;--ccui-aide-text-stress:#000000a6;--ccui-placeholder:#00000040;--ccui-light-text:#fff;--ccui-dark-text:#000000e0;--ccui-link:#1677ff;--ccui-link-active:#0958d9;--ccui-link-light:#4096ff;--ccui-link-light-active:#69b1ff;--ccui-line:#d9d9d9;--ccui-dividing-line:#f0f0f0;--ccui-block:#fff;--ccui-area:#fafafa;--ccui-danger:#ff4d4f;--ccui-warning:#faad14;--ccui-waiting:#00000073;--ccui-success:#52c41a;--ccui-info:#1677ff;--ccui-initial:#e6f4ff;--ccui-unavailable:#f5f5f5;--ccui-shadow:#00000026;--ccui-light-shadow:#0000000f;--ccui-icon-text:#000000e0;--ccui-icon-bg:#fff;--ccui-icon-fill:#00000073;--ccui-icon-fill-hover:#000000a6;--ccui-icon-fill-active:#1677ff;--ccui-icon-fill-active-hover:#4096ff;--ccui-form-control-line:#d9d9d9;--ccui-form-control-line-hover:#4096ff;--ccui-form-control-line-active:#1677ff;--ccui-form-control-line-active-hover:#0958d9;--ccui-list-item-active-bg:#1677ff;--ccui-list-item-active-text:#fff;--ccui-list-item-active-hover-bg:#4096ff;--ccui-list-item-hover-bg:#0000000a;--ccui-list-item-hover-text:#1677ff;--ccui-list-item-selected-bg:#e6f4ff;--ccui-list-item-strip-bg:#fafafa;--ccui-disabled-bg:#0000000a;--ccui-disabled-line:#d9d9d9;--ccui-disabled-text:#00000040;--ccui-primary-disabled:#91caff;--ccui-icon-fill-active-disabled:#91caff;--ccui-label-bg:#fafafa;--ccui-connected-overlay-bg:#fff;--ccui-connected-overlay-line:#1677ff;--ccui-fullscreen-overlay-bg:#fff;--ccui-feedback-overlay-bg:#000000d9;--ccui-feedback-overlay-text:#fff;--ccui-embed-search-bg:#fafafa;--ccui-embed-search-bg-hover:#f0f0f0;--ccui-float-block-shadow:#1677ff29;--ccui-highlight-overlay:#fffc;--ccui-range-item-hover-bg:#e6f4ff;--ccui-primary:#1677ff;--ccui-primary-hover:#4096ff;--ccui-primary-active:#0958d9;--ccui-contrast-hover:#ff7875;--ccui-contrast-active:#d9363e;--ccui-secondary:#000000a6;--ccui-danger-line:#ffccc7;--ccui-danger-bg:#fff2f0;--ccui-warning-line:#ffe58f;--ccui-warning-bg:#fffbe6;--ccui-info-line:#91caff;--ccui-info-bg:#e6f4ff;--ccui-success-line:#b7eb8f;--ccui-success-bg:#f6ffed;--ccui-primary-line:#91caff;--ccui-primary-bg:#e6f4ff;--ccui-default-line:#d9d9d9;--ccui-default-bg:#fff;--ccui-font-size:14px;--ccui-font-size-card-title:16px;--ccui-font-size-page-title:20px;--ccui-font-size-modal-title:16px;--ccui-font-size-price:24px;--ccui-font-size-data-overview:30px;--ccui-font-size-icon:16px;--ccui-font-size-sm:12px;--ccui-font-size-md:14px;--ccui-font-size-lg:16px;--ccui-font-title-weight:600;--ccui-font-content-weight:400;--ccui-line-height-base:1.57143;--ccui-border-radius:6px;--ccui-border-radius-feedback:8px;--ccui-border-radius-card:8px;--ccui-shadow-length-base:0 1px 2px 0;--ccui-shadow-length-slide-left:-6px 0 16px 0;--ccui-shadow-length-slide-right:6px 0 16px 0;--ccui-shadow-length-connected-overlay:0 6px 16px 0;--ccui-shadow-length-hover:0 6px 16px 0;--ccui-shadow-length-feedback-overlay:0 6px 16px 0;--ccui-shadow-fullscreen-overlay:0 6px 16px 0;--ccui-animation-duration-slow:.3s;--ccui-animation-duration-base:.2s;--ccui-animation-duration-fast:.1s;--ccui-animation-ease-in:cubic-bezier(.7, 0, .84, 0);--ccui-animation-ease-out:cubic-bezier(.215, .61, .355, 1);--ccui-animation-ease-in-out:cubic-bezier(.78, .14, .15, .86);--ccui-animation-ease-in-smooth:cubic-bezier(.645, .045, .355, 1);--ccui-animation-linear:cubic-bezier(0, 0, 1, 1);--ccui-z-index-full-page-overlay:1080;--ccui-z-index-pop-up:1060;--ccui-z-index-dropdown:1052;--ccui-z-index-modal:1050;--ccui-z-index-drawer:1040;--ccui-z-index-framework:1000;--ccui-size-sm:24px;--ccui-size-md:32px;--ccui-size-lg:40px;--ccui-color-primary:#1677ff;--ccui-color-primary-hover:#4096ff;--ccui-color-primary-active:#0958d9;--ccui-color-primary-bg:#e6f4ff;--ccui-color-primary-bg-hover:#bae0ff;--ccui-color-primary-border:#91caff;--ccui-color-primary-border-hover:#69b1ff;--ccui-color-success:#52c41a;--ccui-color-success-hover:#73d13d;--ccui-color-success-active:#389e0d;--ccui-color-success-bg:#f6ffed;--ccui-color-success-border:#b7eb8f;--ccui-color-warning:#faad14;--ccui-color-warning-hover:#ffc53d;--ccui-color-warning-active:#d48806;--ccui-color-warning-bg:#fffbe6;--ccui-color-warning-border:#ffe58f;--ccui-color-error:#ff4d4f;--ccui-color-error-hover:#ff7875;--ccui-color-error-active:#d9363e;--ccui-color-error-bg:#fff2f0;--ccui-color-error-border:#ffccc7;--ccui-color-info:#1677ff;--ccui-color-info-hover:#4096ff;--ccui-color-info-bg:#e6f4ff;--ccui-color-info-border:#91caff;--ccui-color-text:#000000e0;--ccui-color-text-secondary:#000000a6;--ccui-color-text-tertiary:#00000073;--ccui-color-text-quaternary:#00000040;--ccui-color-text-disabled:#00000040;--ccui-color-text-placeholder:#00000040;--ccui-color-text-heading:#000000e0;--ccui-color-text-light-solid:#fff;--ccui-color-bg-base:#fff;--ccui-color-bg-container:#fff;--ccui-color-bg-elevated:#fff;--ccui-color-bg-layout:#f5f5f5;--ccui-color-bg-spotlight:#000000d9;--ccui-color-bg-mask:#00000073;--ccui-color-bg-text-hover:#0000000f;--ccui-color-bg-text-active:#00000026;--ccui-color-border:#d9d9d9;--ccui-color-border-secondary:#f0f0f0;--ccui-color-border-disabled:#0000000a;--ccui-color-split:#0505050f;--ccui-color-fill:#00000026;--ccui-color-fill-secondary:#0000000f;--ccui-color-fill-tertiary:#0000000a;--ccui-color-fill-quaternary:#00000005;--ccui-control-outline:#0591ff1a;--ccui-control-outline-error:#ff26050f;--ccui-control-outline-warning:#ffd7051a;--ccui-red-1:#fff1f0;--ccui-red-2:#ffccc7;--ccui-red-3:#ffa39e;--ccui-red-4:#ff7875;--ccui-red-5:#ff4d4f;--ccui-red-6:#f5222d;--ccui-red-7:#cf1322;--ccui-red-8:#a8071a;--ccui-red-9:#820014;--ccui-red-10:#5c0011;--ccui-volcano-1:#fff2e8;--ccui-volcano-2:#ffd8bf;--ccui-volcano-3:#ffbb96;--ccui-volcano-4:#ff9c6e;--ccui-volcano-5:#ff7a45;--ccui-volcano-6:#fa541c;--ccui-volcano-7:#d4380d;--ccui-volcano-8:#ad2102;--ccui-volcano-9:#871400;--ccui-volcano-10:#610b00;--ccui-orange-1:#fff7e6;--ccui-orange-2:#ffe7ba;--ccui-orange-3:#ffd591;--ccui-orange-4:#ffc069;--ccui-orange-5:#ffa940;--ccui-orange-6:#fa8c16;--ccui-orange-7:#d46b08;--ccui-orange-8:#ad4e00;--ccui-orange-9:#873800;--ccui-orange-10:#612500;--ccui-gold-1:#fffbe6;--ccui-gold-2:#fff1b8;--ccui-gold-3:#ffe58f;--ccui-gold-4:#ffd666;--ccui-gold-5:#ffc53d;--ccui-gold-6:#faad14;--ccui-gold-7:#d48806;--ccui-gold-8:#ad6800;--ccui-gold-9:#874d00;--ccui-gold-10:#613400;--ccui-yellow-1:#feffe6;--ccui-yellow-2:#ffffb8;--ccui-yellow-3:#fffb8f;--ccui-yellow-4:#fff566;--ccui-yellow-5:#ffec3d;--ccui-yellow-6:#fadb14;--ccui-yellow-7:#d4b106;--ccui-yellow-8:#ad8b00;--ccui-yellow-9:#876800;--ccui-yellow-10:#614700;--ccui-lime-1:#fcffe6;--ccui-lime-2:#f4ffb8;--ccui-lime-3:#eaff8f;--ccui-lime-4:#d3f261;--ccui-lime-5:#bae637;--ccui-lime-6:#a0d911;--ccui-lime-7:#7cb305;--ccui-lime-8:#5b8c00;--ccui-lime-9:#3f6600;--ccui-lime-10:#254000;--ccui-green-1:#f6ffed;--ccui-green-2:#d9f7be;--ccui-green-3:#b7eb8f;--ccui-green-4:#95de64;--ccui-green-5:#73d13d;--ccui-green-6:#52c41a;--ccui-green-7:#389e0d;--ccui-green-8:#237804;--ccui-green-9:#135200;--ccui-green-10:#092b00;--ccui-cyan-1:#e6fffb;--ccui-cyan-2:#b5f5ec;--ccui-cyan-3:#87e8de;--ccui-cyan-4:#5cdbd3;--ccui-cyan-5:#36cfc9;--ccui-cyan-6:#13c2c2;--ccui-cyan-7:#08979c;--ccui-cyan-8:#006d75;--ccui-cyan-9:#00474f;--ccui-cyan-10:#002329;--ccui-blue-1:#e6f4ff;--ccui-blue-2:#bae0ff;--ccui-blue-3:#91caff;--ccui-blue-4:#69b1ff;--ccui-blue-5:#4096ff;--ccui-blue-6:#1677ff;--ccui-blue-7:#0958d9;--ccui-blue-8:#003eb3;--ccui-blue-9:#002c8c;--ccui-blue-10:#001d66;--ccui-geekblue-1:#f0f5ff;--ccui-geekblue-2:#d6e4ff;--ccui-geekblue-3:#adc6ff;--ccui-geekblue-4:#85a5ff;--ccui-geekblue-5:#597ef7;--ccui-geekblue-6:#2f54eb;--ccui-geekblue-7:#1d39c4;--ccui-geekblue-8:#10239e;--ccui-geekblue-9:#061178;--ccui-geekblue-10:#030852;--ccui-purple-1:#f9f0ff;--ccui-purple-2:#efdbff;--ccui-purple-3:#d3adf7;--ccui-purple-4:#b37feb;--ccui-purple-5:#9254de;--ccui-purple-6:#722ed1;--ccui-purple-7:#531dab;--ccui-purple-8:#391085;--ccui-purple-9:#22075e;--ccui-purple-10:#120338;--ccui-magenta-1:#fff0f6;--ccui-magenta-2:#ffd6e7;--ccui-magenta-3:#ffadd2;--ccui-magenta-4:#ff85c0;--ccui-magenta-5:#f759ab;--ccui-magenta-6:#eb2f96;--ccui-magenta-7:#c41d7f;--ccui-magenta-8:#9e1068;--ccui-magenta-9:#780650;--ccui-magenta-10:#520339;--ccui-pink-1:#fff0f6;--ccui-pink-6:#eb2f96;--ccui-border-radius-lg:8px;--ccui-border-radius-sm:4px;--ccui-border-radius-xs:2px;--ccui-border-radius-outer:4px;--ccui-font-size-xl:20px;--ccui-font-size-heading-1:38px;--ccui-font-size-heading-2:30px;--ccui-font-size-heading-3:24px;--ccui-font-size-heading-4:20px;--ccui-font-size-heading-5:16px;--ccui-line-height-lg:1.5;--ccui-line-height-sm:1.66;--ccui-line-height-heading-1:1.21052;--ccui-line-height-heading-2:1.26666;--ccui-line-height-heading-3:1.33333;--ccui-line-height-heading-4:1.4;--ccui-line-height-heading-5:1.5;--ccui-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--ccui-font-family-code:SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;--ccui-control-height:32px;--ccui-control-height-sm:24px;--ccui-control-height-lg:40px;--ccui-control-height-xs:16px;--ccui-box-shadow:0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;--ccui-box-shadow-secondary:0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;--ccui-box-shadow-tertiary:0 1px 2px 0 #00000008, 0 1px 6px -1px #00000005, 0 2px 4px 0 #00000005;--ccui-motion-duration-slow:.3s;--ccui-motion-duration-mid:.2s;--ccui-motion-duration-fast:.1s;--ccui-motion-ease-in-out:cubic-bezier(.645, .045, .355, 1);--ccui-motion-ease-out:cubic-bezier(.215, .61, .355, 1);--ccui-motion-ease-in:cubic-bezier(.55, .055, .675, .19);--ccui-motion-ease-out-back:cubic-bezier(.12, .4, .29, 1.46);--ccui-motion-ease-in-back:cubic-bezier(.71, -.46, .88, .6);--ccui-motion-ease-out-circ:cubic-bezier(.08, .82, .17, 1);--ccui-motion-ease-in-out-circ:cubic-bezier(.78, .14, .15, .86);--ccui-padding-xxs:4px;--ccui-padding-xs:8px;--ccui-padding-sm:12px;--ccui-padding:16px;--ccui-padding-md:20px;--ccui-padding-lg:24px;--ccui-padding-xl:32px;--ccui-margin-xxs:4px;--ccui-margin-xs:8px;--ccui-margin-sm:12px;--ccui-margin:16px;--ccui-margin-md:20px;--ccui-margin-lg:24px;--ccui-margin-xl:32px}.ccui-tree-select{width:220px;color:var(--ccui-text,#000000e0);font-size:var(--ccui-font-size,14px);vertical-align:middle;display:inline-block;position:relative}.ccui-tree-select.is-disabled{cursor:not-allowed}.ccui-tree-select--variant-filled .ccui-tree-select__input-wrap{background-color:var(--ccui-color-fill-secondary,#0000000f);border-color:#0000}.ccui-tree-select--variant-filled .ccui-tree-select__input-wrap:hover{background-color:var(--ccui-color-fill,#00000026);border-color:#0000}.ccui-tree-select--variant-borderless .ccui-tree-select__input-wrap{background-color:#0000;border-color:#0000}.ccui-tree-select--variant-borderless .ccui-tree-select__input-wrap:hover{border-color:#0000}.ccui-tree-select--variant-underlined .ccui-tree-select__input-wrap{border-color:#0000;border-bottom-color:var(--ccui-color-border,#d9d9d9);background-color:#0000;border-radius:0}.ccui-tree-select--variant-underlined .ccui-tree-select__input-wrap:hover{border-color:#0000;border-bottom-color:var(--ccui-color-primary-hover,#4096ff)}.ccui-tree-select--small .ccui-tree-select__input-wrap{min-height:24px;padding:0 8px}.ccui-tree-select--large .ccui-tree-select__input-wrap{min-height:40px;padding:0 12px}.ccui-tree-select--status-error .ccui-tree-select__input-wrap{border-color:var(--ccui-color-error,#ff4d4f)}.ccui-tree-select--status-warning .ccui-tree-select__input-wrap{border-color:var(--ccui-color-warning,#faad14)}.ccui-tree-select__input-wrap{box-sizing:border-box;border:1px solid var(--ccui-color-border,#d9d9d9);border-radius:var(--ccui-border-radius,6px);background-color:var(--ccui-color-bg-container,#fff);cursor:pointer;flex-wrap:wrap;align-items:center;gap:4px 0;min-height:32px;padding:0 11px;transition:border-color .2s;display:flex}.ccui-tree-select__input-wrap:hover{border-color:var(--ccui-primary,#1677ff)}.ccui-tree-select.is-disabled .ccui-tree-select__input-wrap{background-color:var(--ccui-disabled-bg,#0000000a);border-color:var(--ccui-color-border,#d9d9d9);cursor:not-allowed}.ccui-tree-select.is-disabled .ccui-tree-select__input-wrap:hover{border-color:var(--ccui-color-border,#d9d9d9)}.ccui-tree-select.is-open .ccui-tree-select__input-wrap{border-color:var(--ccui-primary,#1677ff)}.ccui-tree-select.is-multiple .ccui-tree-select__input-wrap{padding:4px 8px}.ccui-tree-select__input{color:inherit;font-size:inherit;cursor:inherit;background:0 0;border:none;outline:none;flex:1;padding:0}.ccui-tree-select__input::placeholder{color:var(--ccui-color-text-placeholder,#00000040)}.ccui-tree-select__input:disabled{cursor:not-allowed}.ccui-tree-select__placeholder{color:var(--ccui-color-text-placeholder,#00000040);flex:1}.ccui-tree-select__tags{flex-wrap:wrap;flex:1;gap:4px;display:flex}.ccui-tree-select__tag{background-color:var(--ccui-color-fill-tertiary,#0000000a);border-radius:var(--ccui-border-radius,6px);height:22px;font-size:var(--ccui-font-size-sm,12px);color:var(--ccui-text,#000000e0);align-items:center;padding:0 6px;display:inline-flex}.ccui-tree-select__tag--overflow{color:var(--ccui-color-text-tertiary,#00000073);background-color:#0000}.ccui-tree-select__tag-label{text-overflow:ellipsis;white-space:nowrap;max-width:120px;overflow:hidden}.ccui-tree-select__tag-close{width:14px;height:14px;color:var(--ccui-color-text-tertiary,#00000073);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;margin-left:4px;font-size:12px;display:inline-flex}.ccui-tree-select__tag-close:hover{color:var(--ccui-text,#000000e0);background-color:#0000000f}.ccui-tree-select__suffix,.ccui-tree-select__clear{color:var(--ccui-color-text-tertiary,#00000073);font-size:var(--ccui-font-size-sm,12px);justify-content:center;align-items:center;margin-left:auto;padding-left:4px;display:inline-flex}.ccui-tree-select__clear{cursor:pointer;border-radius:50%;width:16px;height:16px}.ccui-tree-select__clear:hover{background-color:var(--ccui-color-fill-tertiary,#0000000a);color:var(--ccui-text,#000000e0)}.ccui-tree-select__panel{z-index:1050;box-sizing:border-box;background-color:var(--ccui-color-bg-elevated,#fff);border-radius:var(--ccui-border-radius,6px);box-shadow:var(--ccui-box-shadow-secondary,0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d);min-width:220px;padding:4px;position:absolute;overflow:auto}.ccui-tree-select__tree-wrap{padding:4px 0}.ccui-tree-select__search{border-bottom:1px solid var(--ccui-color-border-secondary,#f0f0f0);margin-bottom:4px;padding:6px 6px 4px}.ccui-tree-select__search-input{box-sizing:border-box;border:1px solid var(--ccui-color-border,#d9d9d9);border-radius:var(--ccui-border-radius,6px);background-color:var(--ccui-color-bg-container,#fff);width:100%;color:var(--ccui-text,#000000e0);font-size:var(--ccui-font-size-sm,12px);outline:none;padding:4px 8px;transition:border-color .2s}.ccui-tree-select__search-input:focus{border-color:var(--ccui-primary,#1677ff)}.ccui-tree-select__search-input::placeholder{color:var(--ccui-color-text-placeholder,#00000040)}.ccui-tree-select__empty{text-align:center;color:var(--ccui-color-text-tertiary,#00000073);font-size:var(--ccui-font-size-sm,12px);padding:16px}.ccui-tree-select-fade-enter-active,.ccui-tree-select-fade-leave-active{transition:opacity .18s,transform .18s}.ccui-tree-select-fade-enter-from,.ccui-tree-select-fade-leave-to{opacity:0;transform:translateY(-4px)}
2
+ /*$vite$:1*/
@@ -0,0 +1,10 @@
1
+ import type { App } from 'vue';
2
+ import { Link, Paragraph, Text, Title, Typography } from './src/typography';
3
+ export { Link, Paragraph, Text, Title, Typography };
4
+ declare const _default: {
5
+ title: string;
6
+ category: string;
7
+ status: string;
8
+ install(app: App): void;
9
+ };
10
+ export default _default;