@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 ee(){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,ee,{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 ee(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 te={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 月`}},O=Symbol(`ccui-config`);function ne(){return(0,t.inject)(O,{prefixCls:`ccui`,componentSize:`middle`,locale:te,direction:`ltr`,theme:void 0,iconPrefixCls:`ccui-icon`})}var re=Symbol(`ccuiFormItem`),k=/^[a-z0-9]+(-[a-z0-9]+)*$/,A=(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&&!j(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&&!j(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!j(e,n)?null:e}return null},j=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function M(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 N=Object.freeze({left:0,top:0,width:16,height:16}),P=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...N,...P}),I=Object.freeze({...F,body:``,hidden:!1});function L(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 R(e,t){let n=L(e,t);for(let r in I)r in P?r in e&&!(r in n)&&(n[r]=P[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function z(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=R(r[e]||i[e],a)}return o(t),n.forEach(o),R(e,a)}function B(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=M(e);for(let i in r){let a=r[i];a&&(t(i,z(e,i,a)),n.push(i))}return n}var ie={provider:``,aliases:{},not_found:{},...N};function V(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function H(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!V(e,ie))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!V(t,I))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]||!V(t,I))return null}return t}var ae=Object.create(null);function oe(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function U(e,t){let n=ae[e]||(ae[e]=Object.create(null));return n[t]||(n[t]=oe(e,t))}function se(e,t){return H(t)?B(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function ce(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var W=!1;function le(e){return typeof e==`boolean`&&(W=e),W}function ue(e){let t=typeof e==`string`?A(e,!0,W):e;if(t){let e=U(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function de(e,t){let n=A(e,!0,W);if(!n)return!1;let r=U(n.provider,n.prefix);return t?ce(r,n.name,t):(r.missing.add(n.name),!0)}function fe(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),W&&!t&&!e.prefix){let t=!1;return H(e)&&(e.prefix=``,B(e,(e,n)=>{de(e,n)&&(t=!0)})),t}let n=e.prefix;return j({prefix:n,name:`a`})?!!se(U(t,n),e):!1}var pe=Object.freeze({width:null,height:null}),me=Object.freeze({...pe,...P}),he=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ge=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function _e(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(he);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ge.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 ve(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 ye(e,t){return e?`<defs>`+e+`</defs>`+t:t}function be(e,t,n){let r=ve(e);return ye(r.defs,t+r.content+n)}var xe=e=>e===`unset`||e===`undefined`||e===`none`;function Se(e,t){let n={...F,...e},r={...me,...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=be(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=_e(d,c/l)):(u=o===`auto`?c:o,d=s===null?_e(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{xe(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 Ce=/\sid="(\S+)"/g,we=new Map;function Te(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=we.get(e)||0;return we.set(e,t+1),t?`${e}${t}`:e}function Ee(e){let t=[],n;for(;n=Ce.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=Te(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 G=Object.create(null);function De(e,t){G[e]=t}function K(e){return G[e]||G[``]}function q(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 J=Object.create(null),Y=[`https://api.simplesvg.com`,`https://api.unisvg.com`],X=[];Y.length>0;)Y.length===1||Math.random()>.5?X.push(Y.shift()):X.push(Y.pop());J[``]=q({resources:[`https://api.iconify.design`].concat(X)});function Oe(e,t){let n=q(t);return n===null?!1:(J[e]=n,!0)}function ke(e){return J[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]=U(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`?A(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=K(e);if(!t)return n(void 0,424),Ge;i=t.send;let a=qe(e);a&&(r=a.redundancy)}else{let t=q(e);if(t){r=We(t);let n=K(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(k)?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(!se(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(k)?K(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,le()));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(U(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=U(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 pe?(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={...me,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 Q={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;Q[e+`-flip`]=t,Q[e.slice(0,1)+`-flip`]=t,Q[e+`Flip`]=t});function gt(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var _t=(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=Q[e];n?(t===!0||t===`true`||t===1)&&(r[n]=!0):lt[e]===void 0&&(i[e]=t)}}}let l=Se(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=Ee(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:gt(u.width),height:gt(u.height),...dt,...m?ft:pt,...c},(0,t.h)(`span`,i)};if(le(!0),De(``,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`||!fe(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 vt={...F,body:``},yt=(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=A(a,!1,!0))===null)return null;let c=ue(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 _t(vt,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),_t({...F,...t.data},n)}},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`],emits:[`load`]}),bt={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"/>`}}},xt=!1;function St(){xt||=(fe(bt),!0)}St();function Ct(e){return e.includes(`:`)}function wt(e){return e?typeof e==`string`?Ct(e)?(0,t.h)(yt,{icon:e}):(0,t.h)(`i`,{class:e}):e:null}var Tt={modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number],default:``},options:{type:Array,default:()=>[]},placeholder:{type:String,default:``},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},clearIcon:{type:[String,Object],default:void 0},size:{type:String,default:`default`},status:{type:String,default:``},filterOption:{type:[Boolean,Function],default:!0},caseSensitive:{type:Boolean,default:!1},notFoundContent:{type:String,default:``},placement:{type:String,default:`bottomLeft`},popupClassName:{type:String,default:``},popupAppendToBody:{type:Boolean,default:!1},getPopupContainer:{type:Function,default:void 0},transitionName:{type:String,default:`ccui-auto-complete-fade`},popupMaxHeight:{type:Number,default:256},defaultActiveFirstOption:{type:Boolean,default:!1},backfill:{type:Boolean,default:!1},searchDebounce:{type:Number,default:0},variant:{type:String,default:`outlined`},classNames:{type:Object,default:void 0},styles:{type:Object,default:void 0}};function Et(e){return typeof e==`string`||typeof e==`number`?{value:e,label:String(e),disabled:!1,raw:{value:e,label:String(e)}}:{value:e.value,label:e.label===void 0?String(e.value):String(e.label),disabled:!!e.disabled,raw:e}}var Dt={bottomLeft:`bottom-start`,bottomRight:`bottom-end`,topLeft:`top-start`,topRight:`top-end`},$=(0,t.defineComponent)({name:`CAutoComplete`,props:Tt,emits:[`update:modelValue`,`change`,`select`,`search`,`focus`,`blur`,`open-change`],setup(e,{emit:r,slots:i}){let a=ee(`auto-complete`),o=ne(),s=(0,t.getCurrentInstance)()?.uid??0,c=`ccui-auto-complete-popup-${s}`,l=e=>`ccui-auto-complete-option-${s}-${e}`,u=(0,t.computed)(()=>e.notFoundContent||o.locale?.AutoComplete?.notFoundContent||`暂无数据`),d=(0,t.ref)(null),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.shallowRef)(!1),h=(0,t.shallowRef)(e.defaultValue??``),g=(0,t.shallowRef)(-1),_=(0,t.inject)(re,null),v=(0,t.computed)(()=>e.modelValue!==void 0),y=(0,t.computed)(()=>(v.value?e.modelValue:h.value)??``),b=(0,t.computed)(()=>M.value??String(y.value??``)),x=(0,t.computed)(()=>(e.options||[]).map(e=>Et(e))),S=(0,t.computed)(()=>{let t=e.filterOption;if(t===!1)return x.value;let n=b.value;if(!n)return x.value;if(typeof t==`function`)return x.value.filter(e=>t(n,e.raw));let r=e.caseSensitive?n:n.toLowerCase();return x.value.filter(t=>(e.caseSensitive?t.label:t.label.toLowerCase()).includes(r))}),C=(0,t.computed)(()=>Dt[e.placement]),w=(0,t.computed)(()=>typeof document>`u`?null:e.getPopupContainer?e.getPopupContainer(d.value):e.popupAppendToBody?document.body:null),T=(0,t.computed)(()=>w.value!==null),{floatingStyles:D}=E(d,f,{placement:C,open:m,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(4),(0,n.flip)(),(0,n.shift)({padding:8})],strategy:(0,t.computed)(()=>T.value?`fixed`:`absolute`)}),te=(0,t.computed)(()=>_?.validateStatus.value??``),O=(0,t.computed)(()=>e.status||te.value);function k(){return e.defaultActiveFirstOption?S.value.findIndex(e=>!e.disabled):-1}function A(){e.disabled||m.value||(m.value=!0,g.value=k(),r(`open-change`,!0))}function j(){m.value&&(m.value=!1,M.value=null,r(`open-change`,!1))}let M=(0,t.shallowRef)(null),N=null;function P(t){M.value=null,v.value||(h.value=t),r(`update:modelValue`,t),r(`change`,t),e.searchDebounce>0?(N&&clearTimeout(N),N=setTimeout(()=>{r(`search`,String(t))},e.searchDebounce)):r(`search`,String(t)),_?.validate(`change`)}function F(e){e.disabled||(P(e.value),r(`select`,e.value,e.raw),j())}function I(e){let t=e.target;P(t.value),m.value||A(),g.value=-1}function L(t){r(`focus`,t),e.disabled||A()}function R(e){r(`blur`,e),_?.validate(`blur`)}function z(t){if(e.disabled)return;let n=S.value,r=n.filter(e=>!e.disabled);function i(t){e.backfill&&t>=0&&n[t]&&(M.value=n[t].label)}if(t.key===`ArrowDown`){if(t.preventDefault(),!m.value){A();return}if(r.length===0)return;let e=r[(r.findIndex(e=>e===n[g.value])+1)%r.length];g.value=n.indexOf(e),i(g.value)}else if(t.key===`ArrowUp`){if(t.preventDefault(),!m.value){A();return}if(r.length===0)return;let e=r.findIndex(e=>e===n[g.value]),a=e<=0?r[r.length-1]:r[e-1];g.value=n.indexOf(a),i(g.value)}else t.key===`Enter`?m.value&&g.value>=0&&n[g.value]&&(t.preventDefault(),F(n[g.value])):t.key===`Escape`&&m.value&&(t.preventDefault(),j())}function B(e){if(!m.value)return;let t=e.target;t&&(d.value?.contains(t)||f.value?.contains(t)||j())}function ie(e){e.stopPropagation(),e.preventDefault(),P(``)}(0,t.onMounted)(()=>{document.addEventListener(`mousedown`,B,!0)}),(0,t.onUnmounted)(()=>{document.removeEventListener(`mousedown`,B,!0),N&&=(clearTimeout(N),null)}),(0,t.watch)(S,e=>{g.value>=e.length&&(g.value=-1)});let V=(0,t.computed)(()=>e.allowClear&&!e.disabled&&b.value!==``);function H(){let n=[a.e(`wrap`),a.em(`size`,e.size),e.disabled?a.is(`disabled`):``,m.value?a.is(`open`):``,O.value?a.em(`wrap`,`status-${O.value}`):``],r=i.trigger?i.trigger({value:b.value,onInput:I,onFocus:L,onBlur:R,onKeydown:z,placeholder:e.placeholder,disabled:e.disabled}):(0,t.createVNode)(`input`,{ref:p,class:a.e(`input`),type:`text`,value:b.value,placeholder:e.placeholder,disabled:e.disabled,autocomplete:`off`,spellcheck:!1,role:`combobox`,"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-expanded":m.value,"aria-controls":c,"aria-activedescendant":m.value&&g.value>=0?l(g.value):void 0,onInput:I,onFocus:L,onBlur:R,onKeydown:z},null);return(0,t.createVNode)(`div`,{ref:d,class:[n,e.classNames?.input],style:e.styles?.input},[r,V.value&&(0,t.createVNode)(`span`,{class:a.e(`clear`),role:`button`,"aria-label":`clear`,onMousedown:ie},[i.clearIcon?i.clearIcon():wt(e.clearIcon)??wt(`mdi:close-circle`)])])}function ae(e,n){let r=[a.e(`option`),n===g.value?a.is(`active`):``,e.disabled?a.is(`disabled`):``];return(0,t.createVNode)(`li`,{key:`${e.value}-${n}`,id:l(n),class:r,role:`option`,"aria-selected":n===g.value,"aria-disabled":e.disabled,onMousedown:t=>{t.preventDefault(),F(e)},onMouseenter:()=>{e.disabled||(g.value=n)}},[i.option?i.option({option:e.raw,index:n}):e.label])}function oe(){if(!m.value)return null;let n=S.value,r=[a.e(`panel`),e.popupClassName].filter(Boolean),i={...D.value,maxHeight:`${e.popupMaxHeight}px`};return(0,t.createVNode)(t.Teleport,{to:w.value,disabled:!T.value},{default:()=>[(0,t.createVNode)(t.Transition,{name:e.transitionName,appear:!0},{default:()=>[(0,t.createVNode)(`div`,{ref:f,class:[r,e.classNames?.popup],style:[i,e.styles?.popup],id:c,role:`listbox`},[n.length===0?(0,t.createVNode)(`div`,{class:a.e(`empty`)},[u.value]):(0,t.createVNode)(`ul`,{class:a.e(`options`)},[n.map((e,t)=>ae(e,t))])])]})]})}return()=>(0,t.createVNode)(`div`,{class:[a.b(),e.variant?a.m(`variant-${e.variant}`):``,e.classNames?.root],style:e.styles?.root},[H(),oe()])}});$.install=function(e){e.component($.name,$)},e.AutoComplete=$,e.default={title:`AutoComplete 自动完成`,category:`数据录入`,status:`80%`,install(e){e.component($.name,$)}}});
@@ -0,0 +1,134 @@
1
+ import type { ExtractPropTypes, PropType, VNode } from 'vue';
2
+ import type { CcSemanticClasses, CcSemanticStyles } from '../../shared/hooks/use-semantic';
3
+ export type AutoCompleteSize = 'large' | 'default' | 'small';
4
+ export type AutoCompleteStatus = '' | 'error' | 'warning' | 'success' | 'validating';
5
+ export type AutoCompletePlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
6
+ export type GetPopupContainer = (triggerNode: HTMLElement | null) => HTMLElement | null;
7
+ export interface AutoCompleteOption {
8
+ value: string | number;
9
+ label?: string;
10
+ disabled?: boolean;
11
+ [key: string]: unknown;
12
+ }
13
+ export type AutoCompleteSourceItem = string | number | AutoCompleteOption;
14
+ export type FilterOption = boolean | ((inputValue: string, option: AutoCompleteOption) => boolean);
15
+ export declare const autoCompleteProps: {
16
+ readonly modelValue: {
17
+ readonly type: PropType<string | number | null>;
18
+ readonly default: undefined;
19
+ };
20
+ readonly defaultValue: {
21
+ readonly type: PropType<string | number>;
22
+ readonly default: "";
23
+ };
24
+ readonly options: {
25
+ readonly type: PropType<AutoCompleteSourceItem[]>;
26
+ readonly default: () => never[];
27
+ };
28
+ readonly placeholder: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "";
31
+ };
32
+ readonly disabled: {
33
+ readonly type: BooleanConstructor;
34
+ readonly default: false;
35
+ };
36
+ readonly allowClear: {
37
+ readonly type: BooleanConstructor;
38
+ readonly default: false;
39
+ };
40
+ /**
41
+ * 自定义清除图标。接 string(Iconify name / CSS class)或 VNode;
42
+ * 同名 `clearIcon` slot 优先级最高。
43
+ */
44
+ readonly clearIcon: {
45
+ readonly type: PropType<string | VNode>;
46
+ readonly default: undefined;
47
+ };
48
+ readonly size: {
49
+ readonly type: PropType<AutoCompleteSize>;
50
+ readonly default: "default";
51
+ };
52
+ readonly status: {
53
+ readonly type: PropType<AutoCompleteStatus>;
54
+ readonly default: "";
55
+ };
56
+ readonly filterOption: {
57
+ readonly type: PropType<FilterOption>;
58
+ readonly default: true;
59
+ };
60
+ readonly caseSensitive: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: false;
63
+ };
64
+ readonly notFoundContent: {
65
+ readonly type: StringConstructor;
66
+ readonly default: "";
67
+ };
68
+ readonly placement: {
69
+ readonly type: PropType<AutoCompletePlacement>;
70
+ readonly default: "bottomLeft";
71
+ };
72
+ readonly popupClassName: {
73
+ readonly type: StringConstructor;
74
+ readonly default: "";
75
+ };
76
+ readonly popupAppendToBody: {
77
+ readonly type: BooleanConstructor;
78
+ readonly default: false;
79
+ };
80
+ readonly getPopupContainer: {
81
+ readonly type: PropType<GetPopupContainer>;
82
+ readonly default: undefined;
83
+ };
84
+ readonly transitionName: {
85
+ readonly type: StringConstructor;
86
+ readonly default: "ccui-auto-complete-fade";
87
+ };
88
+ readonly popupMaxHeight: {
89
+ readonly type: NumberConstructor;
90
+ readonly default: 256;
91
+ };
92
+ readonly defaultActiveFirstOption: {
93
+ readonly type: BooleanConstructor;
94
+ readonly default: false;
95
+ };
96
+ readonly backfill: {
97
+ readonly type: BooleanConstructor;
98
+ readonly default: false;
99
+ };
100
+ readonly searchDebounce: {
101
+ readonly type: NumberConstructor;
102
+ readonly default: 0;
103
+ };
104
+ /**
105
+ * 录入组件统一 variant 形态。
106
+ */
107
+ readonly variant: {
108
+ readonly type: PropType<AutoCompleteVariant>;
109
+ readonly default: "outlined";
110
+ };
111
+ /**
112
+ * 语义化 DOM className 注入。可用 key:`root` / `input` / `popup`。
113
+ */
114
+ readonly classNames: {
115
+ readonly type: PropType<CcSemanticClasses>;
116
+ readonly default: undefined;
117
+ };
118
+ /**
119
+ * 语义化 DOM style 注入。可用 key 与 classNames 一致。
120
+ */
121
+ readonly styles: {
122
+ readonly type: PropType<CcSemanticStyles>;
123
+ readonly default: undefined;
124
+ };
125
+ };
126
+ export type AutoCompleteProps = ExtractPropTypes<typeof autoCompleteProps>;
127
+ export type AutoCompleteVariant = 'outlined' | 'filled' | 'borderless' | 'underlined';
128
+ export interface NormalizedOption {
129
+ value: string | number;
130
+ label: string;
131
+ disabled: boolean;
132
+ raw: AutoCompleteOption;
133
+ }
134
+ export declare function normalizeOption(item: AutoCompleteSourceItem): NormalizedOption;
@@ -0,0 +1,94 @@
1
+ import type { VNode } from 'vue';
2
+ import type { AutoCompletePlacement } from './auto-complete-types';
3
+
4
+ declare const _default: import("vue").DefineComponent<{
5
+ readonly size: import("./auto-complete-types").AutoCompleteSize;
6
+ readonly disabled: boolean;
7
+ readonly defaultValue: string | number;
8
+ readonly options: import("./auto-complete-types").AutoCompleteSourceItem[];
9
+ readonly placeholder: string;
10
+ readonly allowClear: boolean;
11
+ readonly status: import("./auto-complete-types").AutoCompleteStatus;
12
+ readonly filterOption: import("./auto-complete-types").FilterOption;
13
+ readonly caseSensitive: boolean;
14
+ readonly notFoundContent: string;
15
+ readonly placement: AutoCompletePlacement;
16
+ readonly popupClassName: string;
17
+ readonly popupAppendToBody: boolean;
18
+ readonly transitionName: string;
19
+ readonly popupMaxHeight: number;
20
+ readonly defaultActiveFirstOption: boolean;
21
+ readonly backfill: boolean;
22
+ readonly searchDebounce: number;
23
+ readonly variant: import("./auto-complete-types").AutoCompleteVariant;
24
+ readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
25
+ readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
26
+ readonly modelValue?: string | number | null | undefined;
27
+ readonly clearIcon?: string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ [key: string]: any;
29
+ }> | undefined;
30
+ readonly getPopupContainer?: import("./auto-complete-types").GetPopupContainer | undefined;
31
+ }, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "select" | "change" | "blur" | "focus" | "update:modelValue" | "open-change")[], "search" | "select" | "change" | "blur" | "focus" | "update:modelValue" | "open-change", import("vue").PublicProps, Readonly<{
32
+ readonly size: import("./auto-complete-types").AutoCompleteSize;
33
+ readonly disabled: boolean;
34
+ readonly defaultValue: string | number;
35
+ readonly options: import("./auto-complete-types").AutoCompleteSourceItem[];
36
+ readonly placeholder: string;
37
+ readonly allowClear: boolean;
38
+ readonly status: import("./auto-complete-types").AutoCompleteStatus;
39
+ readonly filterOption: import("./auto-complete-types").FilterOption;
40
+ readonly caseSensitive: boolean;
41
+ readonly notFoundContent: string;
42
+ readonly placement: AutoCompletePlacement;
43
+ readonly popupClassName: string;
44
+ readonly popupAppendToBody: boolean;
45
+ readonly transitionName: string;
46
+ readonly popupMaxHeight: number;
47
+ readonly defaultActiveFirstOption: boolean;
48
+ readonly backfill: boolean;
49
+ readonly searchDebounce: number;
50
+ readonly variant: import("./auto-complete-types").AutoCompleteVariant;
51
+ readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
52
+ readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
53
+ readonly modelValue?: string | number | null | undefined;
54
+ readonly clearIcon?: string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }> | undefined;
57
+ readonly getPopupContainer?: import("./auto-complete-types").GetPopupContainer | undefined;
58
+ }> & Readonly<{
59
+ onChange?: ((...args: any[]) => any) | undefined;
60
+ onSelect?: ((...args: any[]) => any) | undefined;
61
+ onBlur?: ((...args: any[]) => any) | undefined;
62
+ onFocus?: ((...args: any[]) => any) | undefined;
63
+ onSearch?: ((...args: any[]) => any) | undefined;
64
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
65
+ "onOpen-change"?: ((...args: any[]) => any) | undefined;
66
+ }>, {
67
+ readonly size: import("./auto-complete-types").AutoCompleteSize;
68
+ readonly disabled: boolean;
69
+ readonly classNames: import("../../shared/hooks/use-semantic").CcSemanticClasses;
70
+ readonly styles: import("../../shared/hooks/use-semantic").CcSemanticStyles;
71
+ readonly modelValue: string | number | null;
72
+ readonly defaultValue: string | number;
73
+ readonly options: import("./auto-complete-types").AutoCompleteSourceItem[];
74
+ readonly placeholder: string;
75
+ readonly allowClear: boolean;
76
+ readonly clearIcon: string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
+ [key: string]: any;
78
+ }>;
79
+ readonly status: import("./auto-complete-types").AutoCompleteStatus;
80
+ readonly filterOption: import("./auto-complete-types").FilterOption;
81
+ readonly caseSensitive: boolean;
82
+ readonly notFoundContent: string;
83
+ readonly placement: AutoCompletePlacement;
84
+ readonly popupClassName: string;
85
+ readonly popupAppendToBody: boolean;
86
+ readonly getPopupContainer: import("./auto-complete-types").GetPopupContainer;
87
+ readonly transitionName: string;
88
+ readonly popupMaxHeight: number;
89
+ readonly defaultActiveFirstOption: boolean;
90
+ readonly backfill: boolean;
91
+ readonly searchDebounce: number;
92
+ readonly variant: import("./auto-complete-types").AutoCompleteVariant;
93
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
94
+ export default _default;
@@ -0,0 +1,2 @@
1
+ :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-auto-complete{width:100%;display:inline-block;position:relative}.ccui-auto-complete--variant-filled .ccui-auto-complete__wrap{background-color:var(--ccui-color-fill-secondary,#0000000f);border-color:#0000}.ccui-auto-complete--variant-filled .ccui-auto-complete__wrap:hover{background-color:var(--ccui-color-fill,#00000026);border-color:#0000}.ccui-auto-complete--variant-borderless .ccui-auto-complete__wrap{background-color:#0000;border-color:#0000}.ccui-auto-complete--variant-borderless .ccui-auto-complete__wrap:hover{border-color:#0000}.ccui-auto-complete--variant-underlined .ccui-auto-complete__wrap{border-color:#0000;border-bottom-color:var(--ccui-color-border,#d9d9d9);background-color:#0000;border-radius:0}.ccui-auto-complete--variant-underlined .ccui-auto-complete__wrap:hover{border-color:#0000;border-bottom-color:var(--ccui-color-primary-hover,#4096ff)}.ccui-auto-complete__wrap{box-sizing:border-box;cursor:text;background:#fff;border:1px solid #d9d9d9;border-radius:6px;align-items:center;gap:4px;width:100%;height:32px;padding:0 11px;transition:border-color .2s,box-shadow .2s;display:inline-flex}.ccui-auto-complete__wrap:hover{border-color:var(--ccui-color-primary-hover,#4096ff)}.ccui-auto-complete__wrap.is-open{border-color:var(--ccui-color-primary,#1677ff);box-shadow:0 0 0 2px var(--ccui-control-outline,#0591ff1a)}.ccui-auto-complete__wrap.is-disabled{cursor:not-allowed;background:#f5f5f5}.ccui-auto-complete__wrap.is-disabled input{cursor:not-allowed}.ccui-auto-complete__wrap--size-small{height:24px}.ccui-auto-complete__wrap--size-large{height:40px}.ccui-auto-complete__wrap--status-error{border-color:#ff4d4f}.ccui-auto-complete__wrap--status-warning{border-color:#faad14}.ccui-auto-complete__input{color:#000000e0;background:0 0;border:0;outline:0;flex:1;width:100%;font-size:14px}.ccui-auto-complete__input::placeholder{color:#00000040}.ccui-auto-complete__input:disabled{color:#0006}.ccui-auto-complete__clear{color:#00000073;cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:16px;height:16px;font-size:11px;transition:color .2s;display:inline-flex}.ccui-auto-complete__clear:hover{color:#000000d9}.ccui-auto-complete__panel{box-sizing:border-box;z-index:1050;background:#fff;border:1px solid #f0f0f0;border-radius:6px;min-width:100px;overflow:auto;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f}.ccui-auto-complete__options{margin:0;padding:4px 0;list-style:none}.ccui-auto-complete__option{color:#000000e0;cursor:pointer;padding:5px 12px;font-size:14px;transition:background .2s}.ccui-auto-complete__option.is-active{background:#0000000a}.ccui-auto-complete__option.is-disabled{color:#00000040;cursor:not-allowed;background:0 0}.ccui-auto-complete__empty{color:#00000073;text-align:center;padding:12px;font-size:13px}.ccui-auto-complete-fade-enter-active,.ccui-auto-complete-fade-leave-active{transition:opacity .15s}.ccui-auto-complete-fade-enter-from,.ccui-auto-complete-fade-leave-to{opacity:0}
2
+ /*$vite$:1*/
@@ -0,0 +1,10 @@
1
+ import type { App } from 'vue';
2
+ import Avatar from './src/avatar';
3
+ export { Avatar };
4
+ declare const _default: {
5
+ title: string;
6
+ category: string;
7
+ status: string;
8
+ install(app: App): void;
9
+ };
10
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { CcSemanticClasses, CcSemanticStyles } from '../../shared/hooks/use-semantic';
3
+ export type FitType = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
4
+ export type GenderType = 'male' | 'female' | (string & {});
5
+ export declare const avatarProps: {
6
+ readonly name: {
7
+ readonly type: StringConstructor;
8
+ readonly default: null;
9
+ };
10
+ readonly gender: {
11
+ readonly type: PropType<GenderType>;
12
+ readonly default: null;
13
+ };
14
+ readonly width: {
15
+ readonly type: NumberConstructor;
16
+ readonly default: 36;
17
+ };
18
+ readonly height: {
19
+ readonly type: NumberConstructor;
20
+ readonly default: 36;
21
+ };
22
+ readonly isRound: {
23
+ readonly type: BooleanConstructor;
24
+ readonly default: true;
25
+ };
26
+ readonly imgSrc: {
27
+ readonly type: StringConstructor;
28
+ readonly default: "";
29
+ };
30
+ readonly customText: {
31
+ readonly type: StringConstructor;
32
+ readonly default: null;
33
+ };
34
+ readonly fit: {
35
+ readonly type: PropType<FitType>;
36
+ readonly default: "cover";
37
+ };
38
+ /**
39
+ * 语义化 DOM className 注入。可用 key:`root` / `image` / `text`。
40
+ */
41
+ readonly classNames: {
42
+ readonly type: PropType<CcSemanticClasses>;
43
+ readonly default: undefined;
44
+ };
45
+ /**
46
+ * 语义化 DOM style 注入。可用 key 与 classNames 一致。
47
+ */
48
+ readonly styles: {
49
+ readonly type: PropType<CcSemanticStyles>;
50
+ readonly default: undefined;
51
+ };
52
+ };
53
+ export type AvatarProps = ExtractPropTypes<typeof avatarProps>;
@@ -0,0 +1,36 @@
1
+
2
+ declare const _default: import("vue").DefineComponent<{
3
+ readonly name: string;
4
+ readonly height: number;
5
+ readonly width: number;
6
+ readonly gender: string;
7
+ readonly isRound: boolean;
8
+ readonly imgSrc: string;
9
+ readonly customText: string;
10
+ readonly fit: import("./avatar-types").FitType;
11
+ readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
12
+ readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
13
+ }, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").PublicProps, Readonly<{
14
+ readonly name: string;
15
+ readonly height: number;
16
+ readonly width: number;
17
+ readonly gender: string;
18
+ readonly isRound: boolean;
19
+ readonly imgSrc: string;
20
+ readonly customText: string;
21
+ readonly fit: import("./avatar-types").FitType;
22
+ readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
23
+ readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
24
+ }> & Readonly<{}>, {
25
+ readonly name: string;
26
+ readonly height: number;
27
+ readonly width: number;
28
+ readonly classNames: import("../../shared/hooks/use-semantic").CcSemanticClasses;
29
+ readonly styles: import("../../shared/hooks/use-semantic").CcSemanticStyles;
30
+ readonly gender: import("./avatar-types").GenderType;
31
+ readonly isRound: boolean;
32
+ readonly imgSrc: string;
33
+ readonly customText: string;
34
+ readonly fit: import("./avatar-types").FitType;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare function IconBody(props: {
2
+ width: number;
3
+ height: number;
4
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function IconImgError(props: {
2
+ width: number;
3
+ height: number;
4
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function IconNobody(props: {
2
+ width: number;
3
+ height: number;
4
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export default function getBackgroundColor(gender: string, char: string): number;
@@ -0,0 +1 @@
1
+ export default function useGetDisplayName(name: string, customText: string, width: number): string;
@@ -0,0 +1,12 @@
1
+ import type { App } from 'vue';
2
+ import AvatarGroup from './src/avatar-group';
3
+ export { AvatarGroup };
4
+ export type { AvatarGroupContext, AvatarGroupPlacement, AvatarGroupProps, AvatarGroupShape, AvatarGroupSize, AvatarGroupTrigger, } from './src/avatar-group-types';
5
+ export { avatarGroupInjectionKey, resolveAvatarSize } from './src/avatar-group-types';
6
+ declare const _default: {
7
+ title: string;
8
+ category: string;
9
+ status: string;
10
+ install(app: App): void;
11
+ };
12
+ export default _default;
@@ -0,0 +1,119 @@
1
+ import { computed as e, defineComponent as t, h as n, provide as r, ref as i } from "vue";
2
+ //#region ../ccui/ui/shared/hooks/use-namespace.ts
3
+ function a(e, t, n) {
4
+ let r = e;
5
+ return t && (r += `__${t}`), n && (r += `--${n}`), r;
6
+ }
7
+ function o(e, t = !1) {
8
+ let n = t ? `.ccui-${e}` : `ccui-${e}`;
9
+ return {
10
+ b: () => a(n),
11
+ e: (e) => e ? a(n, e) : "",
12
+ m: (e) => e ? a(n, "", e) : "",
13
+ em: (e, t) => e && t ? a(n, e, t) : "",
14
+ is: (e) => `is-${e}`
15
+ };
16
+ }
17
+ //#endregion
18
+ //#region ../ccui/ui/avatar-group/src/avatar-group-types.ts
19
+ var s = {
20
+ maxCount: {
21
+ type: Number,
22
+ default: void 0
23
+ },
24
+ maxStyle: {
25
+ type: Object,
26
+ default: void 0
27
+ },
28
+ maxPopoverPlacement: {
29
+ type: String,
30
+ default: "top"
31
+ },
32
+ maxPopoverTrigger: {
33
+ type: String,
34
+ default: "hover"
35
+ },
36
+ size: {
37
+ type: [Number, String],
38
+ default: "default"
39
+ },
40
+ shape: {
41
+ type: String,
42
+ default: "circle"
43
+ }
44
+ }, c = Symbol("AvatarGroup"), l = {
45
+ large: 40,
46
+ default: 32,
47
+ small: 24
48
+ };
49
+ function u(e) {
50
+ return typeof e == "number" ? e : l[e] ?? 32;
51
+ }
52
+ //#endregion
53
+ //#region ../ccui/ui/avatar-group/src/avatar-group.tsx
54
+ var d = /* @__PURE__ */ t({
55
+ name: "CAvatarGroup",
56
+ props: s,
57
+ setup(t, { slots: a }) {
58
+ let s = o("avatar-group");
59
+ r(c, {
60
+ size: e(() => t.size),
61
+ shape: e(() => t.shape)
62
+ });
63
+ let l = i(!1), d = i(null), f = e(() => t.maxPopoverTrigger === "hover"), p = e(() => t.maxPopoverTrigger === "click"), m = () => {
64
+ l.value = !0;
65
+ }, h = () => {
66
+ l.value = !1;
67
+ }, g = () => {
68
+ l.value = !l.value;
69
+ };
70
+ return () => {
71
+ let e = (a.default?.() ?? []).filter((e) => typeof e.type != "symbol"), r = e.length, i = t.maxCount, o = i !== void 0 && r > i ? e.slice(0, i) : e, c = i !== void 0 && r > i ? e.slice(i) : [], _ = c.length, v = u(t.size), y = _ > 0 ? n("span", {
72
+ ref: (e) => {
73
+ d.value = e ?? null;
74
+ },
75
+ class: s.e("overflow"),
76
+ style: {
77
+ width: `${v}px`,
78
+ height: `${v}px`,
79
+ fontSize: `${Math.max(12, Math.round(v * .4))}px`,
80
+ borderRadius: t.shape === "square" ? "4px" : "50%",
81
+ ...t.maxStyle
82
+ },
83
+ onMouseenter: f.value ? m : void 0,
84
+ onMouseleave: f.value ? h : void 0,
85
+ onClick: p.value ? g : void 0,
86
+ onFocus: t.maxPopoverTrigger === "focus" ? m : void 0,
87
+ onBlur: t.maxPopoverTrigger === "focus" ? h : void 0,
88
+ tabindex: t.maxPopoverTrigger === "focus" ? 0 : void 0
89
+ }, `+${_}`) : null, b = _ > 0 && l.value ? n("div", {
90
+ class: [s.e("popover"), s.em("popover", t.maxPopoverPlacement)],
91
+ role: "tooltip",
92
+ onMouseenter: f.value ? m : void 0,
93
+ onMouseleave: f.value ? h : void 0
94
+ }, c) : null;
95
+ return n("div", {
96
+ class: s.b(),
97
+ role: "group"
98
+ }, [...o, y ? n("span", {
99
+ class: s.e("overflow-wrap"),
100
+ style: { position: "relative" }
101
+ }, [y, b]) : null]);
102
+ };
103
+ }
104
+ });
105
+ //#endregion
106
+ //#region ../ccui/ui/avatar-group/index.ts
107
+ d.install = function(e) {
108
+ e.component(d.name, d);
109
+ };
110
+ var f = {
111
+ title: "AvatarGroup 头像组",
112
+ category: "数据展示",
113
+ status: "80%",
114
+ install(e) {
115
+ e.component(d.name, d);
116
+ }
117
+ };
118
+ //#endregion
119
+ export { d as AvatarGroup, c as avatarGroupInjectionKey, f as default, u as resolveAvatarSize };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});function n(e,t,n){let r=e;return t&&(r+=`__${t}`),n&&(r+=`--${n}`),r}function r(e,t=!1){let r=t?`.ccui-${e}`:`ccui-${e}`;return{b:()=>n(r),e:e=>e?n(r,e):``,m:e=>e?n(r,``,e):``,em:(e,t)=>e&&t?n(r,e,t):``,is:e=>`is-${e}`}}var i={maxCount:{type:Number,default:void 0},maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:`top`},maxPopoverTrigger:{type:String,default:`hover`},size:{type:[Number,String],default:`default`},shape:{type:String,default:`circle`}},a=Symbol(`AvatarGroup`),o={large:40,default:32,small:24};function s(e){return typeof e==`number`?e:o[e]??32}var c=(0,t.defineComponent)({name:`CAvatarGroup`,props:i,setup(e,{slots:n}){let i=r(`avatar-group`);(0,t.provide)(a,{size:(0,t.computed)(()=>e.size),shape:(0,t.computed)(()=>e.shape)});let o=(0,t.ref)(!1),c=(0,t.ref)(null),l=(0,t.computed)(()=>e.maxPopoverTrigger===`hover`),u=(0,t.computed)(()=>e.maxPopoverTrigger===`click`),d=()=>{o.value=!0},f=()=>{o.value=!1},p=()=>{o.value=!o.value};return()=>{let r=(n.default?.()??[]).filter(e=>typeof e.type!=`symbol`),a=r.length,m=e.maxCount,h=m!==void 0&&a>m?r.slice(0,m):r,g=m!==void 0&&a>m?r.slice(m):[],_=g.length,v=s(e.size),y=_>0?(0,t.h)(`span`,{ref:e=>{c.value=e??null},class:i.e(`overflow`),style:{width:`${v}px`,height:`${v}px`,fontSize:`${Math.max(12,Math.round(v*.4))}px`,borderRadius:e.shape===`square`?`4px`:`50%`,...e.maxStyle},onMouseenter:l.value?d:void 0,onMouseleave:l.value?f:void 0,onClick:u.value?p:void 0,onFocus:e.maxPopoverTrigger===`focus`?d:void 0,onBlur:e.maxPopoverTrigger===`focus`?f:void 0,tabindex:e.maxPopoverTrigger===`focus`?0:void 0},`+${_}`):null,b=_>0&&o.value?(0,t.h)(`div`,{class:[i.e(`popover`),i.em(`popover`,e.maxPopoverPlacement)],role:`tooltip`,onMouseenter:l.value?d:void 0,onMouseleave:l.value?f:void 0},g):null;return(0,t.h)(`div`,{class:i.b(),role:`group`},[...h,y?(0,t.h)(`span`,{class:i.e(`overflow-wrap`),style:{position:`relative`}},[y,b]):null])}}});c.install=function(e){e.component(c.name,c)},e.AvatarGroup=c,e.avatarGroupInjectionKey=a,e.default={title:`AvatarGroup 头像组`,category:`数据展示`,status:`80%`,install(e){e.component(c.name,c)}},e.resolveAvatarSize=s});