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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/README.md +1 -1
  2. package/affix/index.d.ts +10 -0
  3. package/affix/src/affix-types.d.ts +20 -0
  4. package/affix/src/affix.d.ts +20 -0
  5. package/alert/index.d.ts +10 -0
  6. package/alert/src/alert-types.d.ts +48 -0
  7. package/alert/src/alert.d.ts +36 -0
  8. package/anchor/index.d.ts +10 -0
  9. package/anchor/src/anchor-types.d.ts +37 -0
  10. package/anchor/src/anchor.d.ts +31 -0
  11. package/auto-complete/index.d.ts +10 -0
  12. package/auto-complete/index.es.js +1986 -0
  13. package/auto-complete/index.umd.js +1 -0
  14. package/auto-complete/src/auto-complete-types.d.ts +134 -0
  15. package/auto-complete/src/auto-complete.d.ts +94 -0
  16. package/auto-complete/style.css +2 -0
  17. package/avatar/index.d.ts +10 -0
  18. package/avatar/src/avatar-types.d.ts +53 -0
  19. package/avatar/src/avatar.d.ts +36 -0
  20. package/avatar/src/components/icon-body.d.ts +4 -0
  21. package/avatar/src/components/icon-img-error.d.ts +4 -0
  22. package/avatar/src/components/icon-nobody.d.ts +4 -0
  23. package/avatar/src/composables/use-get-background-color.d.ts +1 -0
  24. package/avatar/src/composables/use-get-display-name.d.ts +1 -0
  25. package/avatar-group/index.d.ts +12 -0
  26. package/avatar-group/index.es.js +119 -0
  27. package/avatar-group/index.umd.js +1 -0
  28. package/avatar-group/src/avatar-group-types.d.ts +56 -0
  29. package/avatar-group/src/avatar-group.d.ts +27 -0
  30. package/avatar-group/style.css +2 -0
  31. package/badge/index.d.ts +10 -0
  32. package/badge/src/badge-types.d.ts +52 -0
  33. package/badge/src/badge.d.ts +36 -0
  34. package/badge-ribbon/index.d.ts +12 -0
  35. package/badge-ribbon/index.es.js +84 -0
  36. package/badge-ribbon/index.umd.js +1 -0
  37. package/badge-ribbon/src/badge-ribbon-types.d.ts +30 -0
  38. package/badge-ribbon/src/badge-ribbon.d.ts +17 -0
  39. package/badge-ribbon/style.css +2 -0
  40. package/breadcrumb/index.d.ts +10 -0
  41. package/breadcrumb/src/breadcrumb-types.d.ts +29 -0
  42. package/breadcrumb/src/breadcrumb.d.ts +21 -0
  43. package/button/index.d.ts +12 -0
  44. package/button/src/button-group.d.ts +12 -0
  45. package/button/src/button-types.d.ts +168 -0
  46. package/button/src/button.d.ts +75 -0
  47. package/button-3d/index.d.ts +10 -0
  48. package/button-3d/src/button-3d-types.d.ts +27 -0
  49. package/button-3d/src/button-3d.d.ts +23 -0
  50. package/calendar/index.d.ts +10 -0
  51. package/calendar/src/calendar-types.d.ts +56 -0
  52. package/calendar/src/calendar.d.ts +27 -0
  53. package/card/index.d.ts +10 -0
  54. package/card/src/card-types.d.ts +34 -0
  55. package/card/src/card.d.ts +21 -0
  56. package/card-meta/index.d.ts +11 -0
  57. package/card-meta/index.es.js +53 -0
  58. package/card-meta/index.umd.js +1 -0
  59. package/card-meta/src/card-meta-types.d.ts +19 -0
  60. package/card-meta/src/card-meta.d.ts +14 -0
  61. package/card-meta/style.css +2 -0
  62. package/carousel/index.d.ts +10 -0
  63. package/carousel/index.es.js +306 -0
  64. package/carousel/index.umd.js +1 -0
  65. package/carousel/src/carousel-types.d.ts +72 -0
  66. package/carousel/src/carousel.d.ts +58 -0
  67. package/carousel/style.css +2 -0
  68. package/cascader/index.d.ts +12 -0
  69. package/cascader/index.es.js +2267 -0
  70. package/cascader/index.umd.js +1 -0
  71. package/cascader/src/cascader-types.d.ts +214 -0
  72. package/cascader/src/cascader.d.ts +133 -0
  73. package/cascader/style.css +2 -0
  74. package/check-box/index.d.ts +10 -0
  75. package/check-box/src/check-box-group.d.ts +31 -0
  76. package/check-box/src/check-box-types.d.ts +74 -0
  77. package/check-box/src/check-box.d.ts +28 -0
  78. package/check-box/src/components/icon-active.d.ts +2 -0
  79. package/check-box/src/components/icon-default.d.ts +2 -0
  80. package/checkable-tag/index.d.ts +13 -0
  81. package/checkable-tag/index.es.js +141 -0
  82. package/checkable-tag/index.umd.js +1 -0
  83. package/checkable-tag/src/checkable-tag-group.d.ts +26 -0
  84. package/checkable-tag/src/checkable-tag-types.d.ts +83 -0
  85. package/checkable-tag/src/checkable-tag.d.ts +20 -0
  86. package/checkable-tag/style.css +2 -0
  87. package/collapse/index.d.ts +11 -0
  88. package/collapse/src/collapse-item.d.ts +16 -0
  89. package/collapse/src/collapse-types.d.ts +52 -0
  90. package/collapse/src/collapse.d.ts +24 -0
  91. package/color-picker/index.d.ts +10 -0
  92. package/color-picker/index.es.js +1881 -0
  93. package/color-picker/index.umd.js +1 -0
  94. package/color-picker/src/color-picker-types.d.ts +121 -0
  95. package/color-picker/src/color-picker.d.ts +75 -0
  96. package/color-picker/style.css +2 -0
  97. package/config-provider/index.d.ts +10 -0
  98. package/config-provider/src/config-provider-types.d.ts +131 -0
  99. package/config-provider/src/config-provider.d.ts +24 -0
  100. package/date-picker/index.d.ts +10 -0
  101. package/date-picker/src/date-picker-types.d.ts +179 -0
  102. package/date-picker/src/date-picker.d.ts +113 -0
  103. package/descriptions/index.d.ts +11 -0
  104. package/descriptions/src/descriptions-item.d.ts +19 -0
  105. package/descriptions/src/descriptions-types.d.ts +64 -0
  106. package/descriptions/src/descriptions.d.ts +31 -0
  107. package/divider/index.d.ts +10 -0
  108. package/divider/src/divider-types.d.ts +31 -0
  109. package/divider/src/divider.d.ts +24 -0
  110. package/drawer/index.d.ts +10 -0
  111. package/drawer/src/drawer-types.d.ts +155 -0
  112. package/drawer/src/drawer.d.ts +79 -0
  113. package/dropdown/index.d.ts +10 -0
  114. package/dropdown/index.es.js +2 -2
  115. package/dropdown/index.umd.js +1 -1
  116. package/dropdown/src/dropdown-types.d.ts +41 -0
  117. package/dropdown/src/dropdown.d.ts +32 -0
  118. package/empty/index.d.ts +10 -0
  119. package/empty/src/empty-types.d.ts +16 -0
  120. package/empty/src/empty.d.ts +15 -0
  121. package/flex/index.d.ts +10 -0
  122. package/flex/src/flex-types.d.ts +36 -0
  123. package/flex/src/flex.d.ts +29 -0
  124. package/float-button/index.d.ts +11 -0
  125. package/float-button/src/back-top.d.ts +26 -0
  126. package/float-button/src/float-button-types.d.ts +65 -0
  127. package/float-button/src/float-button.d.ts +32 -0
  128. package/form/index.d.ts +14 -0
  129. package/form/src/form-item.d.ts +72 -0
  130. package/form/src/form-list.d.ts +12 -0
  131. package/form/src/form-provider.d.ts +7 -0
  132. package/form/src/form-types.d.ts +360 -0
  133. package/form/src/form.d.ts +64 -0
  134. package/form/src/utils.d.ts +10 -0
  135. package/grid/index.d.ts +10 -0
  136. package/grid/src/grid-types.d.ts +90 -0
  137. package/grid/src/grid.d.ts +58 -0
  138. package/icon/index.d.ts +12 -0
  139. package/icon/src/icon-registry.d.ts +5 -0
  140. package/icon/src/icon-types.d.ts +95 -0
  141. package/icon/src/icon.d.ts +63 -0
  142. package/image/index.d.ts +10 -0
  143. package/image/src/image-types.d.ts +56 -0
  144. package/image/src/image.d.ts +42 -0
  145. package/image-preview-group/index.d.ts +11 -0
  146. package/image-preview-group/index.es.js +162 -0
  147. package/image-preview-group/index.umd.js +1 -0
  148. package/image-preview-group/src/image-preview-group-types.d.ts +51 -0
  149. package/image-preview-group/src/image-preview-group.d.ts +25 -0
  150. package/image-preview-group/style.css +2 -0
  151. package/index.d.ts +93 -7
  152. package/input/index.d.ts +10 -0
  153. package/input/src/input-types.d.ts +164 -0
  154. package/input/src/input.d.ts +74 -0
  155. package/input-number/index.d.ts +10 -0
  156. package/input-number/src/input-number-types.d.ts +165 -0
  157. package/input-number/src/input-number.d.ts +66 -0
  158. package/input-otp/index.d.ts +11 -0
  159. package/input-otp/index.es.js +186 -0
  160. package/input-otp/index.umd.js +1 -0
  161. package/input-otp/src/input-otp-types.d.ts +68 -0
  162. package/input-otp/src/input-otp.d.ts +40 -0
  163. package/input-otp/style.css +2 -0
  164. package/input-search/index.d.ts +11 -0
  165. package/input-search/index.es.js +1228 -0
  166. package/input-search/index.umd.js +1 -0
  167. package/input-search/src/input-search-types.d.ts +106 -0
  168. package/input-search/src/input-search.d.ts +84 -0
  169. package/input-search/style.css +2 -0
  170. package/layout/index.d.ts +10 -0
  171. package/layout/src/layout-types.d.ts +70 -0
  172. package/layout/src/layout.d.ts +56 -0
  173. package/masonry/index.d.ts +10 -0
  174. package/masonry/src/masonry-types.d.ts +19 -0
  175. package/masonry/src/masonry.d.ts +16 -0
  176. package/mentions/index.d.ts +10 -0
  177. package/mentions/index.es.js +711 -0
  178. package/mentions/index.umd.js +1 -0
  179. package/mentions/src/mentions-types.d.ts +124 -0
  180. package/mentions/src/mentions.d.ts +79 -0
  181. package/mentions/style.css +2 -0
  182. package/menu/index.d.ts +10 -0
  183. package/menu/src/menu-types.d.ts +109 -0
  184. package/menu/src/menu.d.ts +63 -0
  185. package/message/index.d.ts +22 -0
  186. package/message/src/message-item.d.ts +46 -0
  187. package/message/src/message-types.d.ts +86 -0
  188. package/message/src/message.d.ts +21 -0
  189. package/message/src/use-message.d.ts +35 -0
  190. package/modal/index.d.ts +24 -0
  191. package/modal/src/confirm-types.d.ts +30 -0
  192. package/modal/src/confirm.d.ts +17 -0
  193. package/modal/src/modal-types.d.ts +175 -0
  194. package/modal/src/modal.d.ts +99 -0
  195. package/modal/src/use-modal.d.ts +34 -0
  196. package/notification/index.d.ts +21 -0
  197. package/notification/src/notification-item.d.ts +49 -0
  198. package/notification/src/notification-types.d.ts +91 -0
  199. package/notification/src/notification.d.ts +20 -0
  200. package/notification/src/use-notification.d.ts +34 -0
  201. package/package.json +611 -12
  202. package/pagination/index.d.ts +10 -0
  203. package/pagination/index.es.js +4 -2
  204. package/pagination/index.umd.js +1 -1
  205. package/pagination/src/pagination-types.d.ts +49 -0
  206. package/pagination/src/pagination.d.ts +43 -0
  207. package/popconfirm/index.d.ts +10 -0
  208. package/popconfirm/src/popconfirm-types.d.ts +82 -0
  209. package/popconfirm/src/popconfirm.d.ts +55 -0
  210. package/popover/index.d.ts +10 -0
  211. package/popover/src/popover-types.d.ts +235 -0
  212. package/popover/src/popover.d.ts +130 -0
  213. package/progress/index.d.ts +10 -0
  214. package/progress/src/progress-types.d.ts +48 -0
  215. package/progress/src/progress.d.ts +37 -0
  216. package/radio/index.d.ts +11 -0
  217. package/radio/src/components/icon-active.d.ts +2 -0
  218. package/radio/src/components/icon-circle.d.ts +2 -0
  219. package/radio/src/radio-group.d.ts +21 -0
  220. package/radio/src/radio-types.d.ts +55 -0
  221. package/radio/src/radio.d.ts +24 -0
  222. package/range-picker/index.d.ts +10 -0
  223. package/range-picker/index.es.js +2415 -0
  224. package/range-picker/index.umd.js +1 -0
  225. package/range-picker/src/range-picker-types.d.ts +169 -0
  226. package/range-picker/src/range-picker.d.ts +112 -0
  227. package/range-picker/style.css +2 -0
  228. package/rate/index.d.ts +10 -0
  229. package/rate/src/components/icon-default.d.ts +2 -0
  230. package/rate/src/rate-types.d.ts +34 -0
  231. package/rate/src/rate.d.ts +30 -0
  232. package/result/index.d.ts +10 -0
  233. package/result/src/result-types.d.ts +21 -0
  234. package/result/src/result.d.ts +18 -0
  235. package/segmented/index.d.ts +10 -0
  236. package/segmented/src/segmented-types.d.ts +32 -0
  237. package/segmented/src/segmented.d.ts +25 -0
  238. package/select/index.d.ts +10 -0
  239. package/select/src/composables/use-select.d.ts +29 -0
  240. package/select/src/select-types.d.ts +215 -0
  241. package/select/src/select.d.ts +149 -0
  242. package/skeleton/index.d.ts +10 -0
  243. package/skeleton/src/skeleton-types.d.ts +39 -0
  244. package/skeleton/src/skeleton.d.ts +27 -0
  245. package/skeleton-node/index.d.ts +11 -0
  246. package/skeleton-node/index.es.js +71 -0
  247. package/skeleton-node/index.umd.js +1 -0
  248. package/skeleton-node/src/skeleton-node-types.d.ts +23 -0
  249. package/skeleton-node/src/skeleton-node.d.ts +17 -0
  250. package/skeleton-node/style.css +2 -0
  251. package/slider/index.d.ts +10 -0
  252. package/slider/index.es.js +3 -3
  253. package/slider/index.umd.js +1 -1
  254. package/slider/src/composables/use-slider-tooltip.d.ts +18 -0
  255. package/slider/src/composables/use-slider.d.ts +68 -0
  256. package/slider/src/slider-types.d.ts +112 -0
  257. package/slider/src/slider.d.ts +149 -0
  258. package/space/index.d.ts +10 -0
  259. package/space/src/space-types.d.ts +28 -0
  260. package/space/src/space.d.ts +21 -0
  261. package/space-compact/index.d.ts +11 -0
  262. package/space-compact/index.es.js +59 -0
  263. package/space-compact/index.umd.js +1 -0
  264. package/space-compact/src/space-compact-types.d.ts +27 -0
  265. package/space-compact/src/space-compact.d.ts +15 -0
  266. package/space-compact/style.css +2 -0
  267. package/spin/index.d.ts +10 -0
  268. package/spin/src/spin-types.d.ts +29 -0
  269. package/spin/src/spin.d.ts +24 -0
  270. package/splitter/index.d.ts +10 -0
  271. package/splitter/src/splitter-types.d.ts +70 -0
  272. package/splitter/src/splitter.d.ts +62 -0
  273. package/status/index.d.ts +10 -0
  274. package/status/src/status-types.d.ts +10 -0
  275. package/status/src/status.d.ts +9 -0
  276. package/steps/index.d.ts +10 -0
  277. package/steps/src/steps-types.d.ts +48 -0
  278. package/steps/src/steps.d.ts +34 -0
  279. package/style.css +2 -0
  280. package/switch/index.d.ts +10 -0
  281. package/switch/src/switch-types.d.ts +45 -0
  282. package/switch/src/switch.d.ts +37 -0
  283. package/table/index.d.ts +11 -0
  284. package/table/src/table-types.d.ts +172 -0
  285. package/table/src/table.d.ts +67 -0
  286. package/table-column/index.d.ts +11 -0
  287. package/table-column/index.es.js +155 -0
  288. package/table-column/index.umd.js +1 -0
  289. package/table-column/src/table-column-types.d.ts +75 -0
  290. package/table-column/src/table-column.d.ts +63 -0
  291. package/table-column-group/index.d.ts +11 -0
  292. package/table-column-group/index.es.js +80 -0
  293. package/table-column-group/index.umd.js +1 -0
  294. package/table-column-group/src/table-column-group-types.d.ts +36 -0
  295. package/table-column-group/src/table-column-group.d.ts +20 -0
  296. package/table-summary/index.d.ts +11 -0
  297. package/table-summary/index.es.js +30 -0
  298. package/table-summary/index.umd.js +1 -0
  299. package/table-summary/src/table-summary-types.d.ts +29 -0
  300. package/table-summary/src/table-summary.d.ts +8 -0
  301. package/tabs/index.d.ts +11 -0
  302. package/tabs/src/components/tab/tab-types.d.ts +18 -0
  303. package/tabs/src/components/tab/tab.d.ts +15 -0
  304. package/tabs/src/components/tabs-nav/index.d.ts +26 -0
  305. package/tabs/src/tabs-types.d.ts +49 -0
  306. package/tabs/src/tabs.d.ts +27 -0
  307. package/tag/index.d.ts +10 -0
  308. package/tag/src/tag-types.d.ts +41 -0
  309. package/tag/src/tag.d.ts +24 -0
  310. package/textarea/index.d.ts +11 -0
  311. package/textarea/index.es.js +1241 -0
  312. package/textarea/index.umd.js +1 -0
  313. package/textarea/src/textarea-types.d.ts +150 -0
  314. package/textarea/src/textarea.d.ts +63 -0
  315. package/textarea/style.css +2 -0
  316. package/time-picker/index.d.ts +10 -0
  317. package/time-picker/index.es.js +2325 -0
  318. package/time-picker/index.umd.js +1 -0
  319. package/time-picker/src/time-picker-types.d.ts +168 -0
  320. package/time-picker/src/time-picker.d.ts +127 -0
  321. package/time-picker/style.css +2 -0
  322. package/time-range-picker/index.d.ts +10 -0
  323. package/time-range-picker/index.es.js +2568 -0
  324. package/time-range-picker/index.umd.js +1 -0
  325. package/time-range-picker/src/time-range-picker-types.d.ts +147 -0
  326. package/time-range-picker/src/time-range-picker.d.ts +124 -0
  327. package/time-range-picker/style.css +2 -0
  328. package/timeline/index.d.ts +11 -0
  329. package/timeline/src/timeline-item.d.ts +31 -0
  330. package/timeline/src/timeline-types.d.ts +72 -0
  331. package/timeline/src/timeline.d.ts +3 -0
  332. package/tooltip/index.d.ts +10 -0
  333. package/tooltip/src/tooltip-types.d.ts +201 -0
  334. package/tooltip/src/tooltip.d.ts +87 -0
  335. package/transfer/index.d.ts +10 -0
  336. package/transfer/index.es.js +1407 -0
  337. package/transfer/index.umd.js +1 -0
  338. package/transfer/src/transfer-types.d.ts +76 -0
  339. package/transfer/src/transfer.d.ts +59 -0
  340. package/transfer/style.css +2 -0
  341. package/tree/index.d.ts +10 -0
  342. package/tree/src/composables/use-tree-check.d.ts +9 -0
  343. package/tree/src/composables/use-tree-flatten.d.ts +11 -0
  344. package/tree/src/composables/use-tree-state.d.ts +17 -0
  345. package/tree/src/tree-types.d.ts +202 -0
  346. package/tree/src/tree.d.ts +122 -0
  347. package/tree-select/index.d.ts +12 -0
  348. package/tree-select/index.es.js +3009 -0
  349. package/tree-select/index.umd.js +1 -0
  350. package/tree-select/src/tree-select-types.d.ts +188 -0
  351. package/tree-select/src/tree-select.d.ts +128 -0
  352. package/tree-select/style.css +2 -0
  353. package/typography/index.d.ts +10 -0
  354. package/typography/src/typography-types.d.ts +316 -0
  355. package/typography/src/typography.d.ts +33 -0
  356. package/upload/index.d.ts +10 -0
  357. package/upload/index.es.js +1450 -0
  358. package/upload/index.umd.js +1 -0
  359. package/upload/src/upload-types.d.ts +99 -0
  360. package/upload/src/upload.d.ts +66 -0
  361. package/upload/style.css +2 -0
  362. package/upload-dragger/index.d.ts +10 -0
  363. package/upload-dragger/index.es.js +1472 -0
  364. package/upload-dragger/index.umd.js +1 -0
  365. package/upload-dragger/src/upload-dragger.d.ts +167 -0
  366. package/upload-dragger/style.css +2 -0
  367. package/util/index.d.ts +12 -0
  368. package/util/src/dom.d.ts +8 -0
  369. package/util/src/func.d.ts +7 -0
  370. package/util/src/type.d.ts +3 -0
  371. package/vue-ccui.es.js +11 -9
  372. package/vue-ccui.umd.js +1 -1
  373. package/watermark/index.d.ts +10 -0
  374. package/watermark/src/watermark-types.d.ts +47 -0
  375. package/watermark/src/watermark.d.ts +34 -0
  376. package/ccui-cli.css +0 -2
  377. package/nuxt/components/category.js +0 -2
  378. package/nuxt/components/install.js +0 -2
  379. package/nuxt/components/status.js +0 -2
  380. package/nuxt/components/title.js +0 -2
  381. package/nuxt/index.js +0 -13
  382. /package/affix/{ccui-cli.css → style.css} +0 -0
  383. /package/alert/{ccui-cli.css → style.css} +0 -0
  384. /package/anchor/{ccui-cli.css → style.css} +0 -0
  385. /package/avatar/{ccui-cli.css → style.css} +0 -0
  386. /package/badge/{ccui-cli.css → style.css} +0 -0
  387. /package/breadcrumb/{ccui-cli.css → style.css} +0 -0
  388. /package/button/{ccui-cli.css → style.css} +0 -0
  389. /package/button-3d/{ccui-cli.css → style.css} +0 -0
  390. /package/calendar/{ccui-cli.css → style.css} +0 -0
  391. /package/card/{ccui-cli.css → style.css} +0 -0
  392. /package/check-box/{ccui-cli.css → style.css} +0 -0
  393. /package/collapse/{ccui-cli.css → style.css} +0 -0
  394. /package/date-picker/{ccui-cli.css → style.css} +0 -0
  395. /package/descriptions/{ccui-cli.css → style.css} +0 -0
  396. /package/divider/{ccui-cli.css → style.css} +0 -0
  397. /package/drawer/{ccui-cli.css → style.css} +0 -0
  398. /package/dropdown/{ccui-cli.css → style.css} +0 -0
  399. /package/empty/{ccui-cli.css → style.css} +0 -0
  400. /package/flex/{ccui-cli.css → style.css} +0 -0
  401. /package/float-button/{ccui-cli.css → style.css} +0 -0
  402. /package/form/{ccui-cli.css → style.css} +0 -0
  403. /package/grid/{ccui-cli.css → style.css} +0 -0
  404. /package/icon/{ccui-cli.css → style.css} +0 -0
  405. /package/image/{ccui-cli.css → style.css} +0 -0
  406. /package/input/{ccui-cli.css → style.css} +0 -0
  407. /package/input-number/{ccui-cli.css → style.css} +0 -0
  408. /package/layout/{ccui-cli.css → style.css} +0 -0
  409. /package/masonry/{ccui-cli.css → style.css} +0 -0
  410. /package/menu/{ccui-cli.css → style.css} +0 -0
  411. /package/message/{ccui-cli.css → style.css} +0 -0
  412. /package/modal/{ccui-cli.css → style.css} +0 -0
  413. /package/notification/{ccui-cli.css → style.css} +0 -0
  414. /package/pagination/{ccui-cli.css → style.css} +0 -0
  415. /package/popconfirm/{ccui-cli.css → style.css} +0 -0
  416. /package/popover/{ccui-cli.css → style.css} +0 -0
  417. /package/progress/{ccui-cli.css → style.css} +0 -0
  418. /package/radio/{ccui-cli.css → style.css} +0 -0
  419. /package/rate/{ccui-cli.css → style.css} +0 -0
  420. /package/result/{ccui-cli.css → style.css} +0 -0
  421. /package/segmented/{ccui-cli.css → style.css} +0 -0
  422. /package/select/{ccui-cli.css → style.css} +0 -0
  423. /package/skeleton/{ccui-cli.css → style.css} +0 -0
  424. /package/slider/{ccui-cli.css → style.css} +0 -0
  425. /package/space/{ccui-cli.css → style.css} +0 -0
  426. /package/spin/{ccui-cli.css → style.css} +0 -0
  427. /package/splitter/{ccui-cli.css → style.css} +0 -0
  428. /package/status/{ccui-cli.css → style.css} +0 -0
  429. /package/steps/{ccui-cli.css → style.css} +0 -0
  430. /package/switch/{ccui-cli.css → style.css} +0 -0
  431. /package/table/{ccui-cli.css → style.css} +0 -0
  432. /package/tabs/{ccui-cli.css → style.css} +0 -0
  433. /package/tag/{ccui-cli.css → style.css} +0 -0
  434. /package/timeline/{ccui-cli.css → style.css} +0 -0
  435. /package/tooltip/{ccui-cli.css → style.css} +0 -0
  436. /package/tree/{ccui-cli.css → style.css} +0 -0
  437. /package/typography/{ccui-cli.css → style.css} +0 -0
  438. /package/watermark/{ccui-cli.css → style.css} +0 -0
@@ -0,0 +1,1241 @@
1
+ import { computed as e, createTextVNode as t, createVNode as n, defineComponent as r, h as i, nextTick as a, onMounted as o, onUnmounted as s, ref as c, shallowRef as l, watch as u } from "vue";
2
+ //#region ../../node_modules/.pnpm/@iconify+vue@5.0.1_vue@3.5.33_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.mjs
3
+ var d = /^[a-z0-9]+(-[a-z0-9]+)*$/, f = (e, t, n, r = "") => {
4
+ let i = e.split(":");
5
+ if (e.slice(0, 1) === "@") {
6
+ if (i.length < 2 || i.length > 3) return null;
7
+ r = i.shift().slice(1);
8
+ }
9
+ if (i.length > 3 || !i.length) return null;
10
+ if (i.length > 1) {
11
+ let e = i.pop(), n = i.pop(), a = {
12
+ provider: i.length > 0 ? i[0] : r,
13
+ prefix: n,
14
+ name: e
15
+ };
16
+ return t && !p(a) ? null : a;
17
+ }
18
+ let a = i[0], o = a.split("-");
19
+ if (o.length > 1) {
20
+ let e = {
21
+ provider: r,
22
+ prefix: o.shift(),
23
+ name: o.join("-")
24
+ };
25
+ return t && !p(e) ? null : e;
26
+ }
27
+ if (n && r === "") {
28
+ let e = {
29
+ provider: r,
30
+ prefix: "",
31
+ name: a
32
+ };
33
+ return t && !p(e, n) ? null : e;
34
+ }
35
+ return null;
36
+ }, p = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
37
+ function m(e, t) {
38
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
39
+ function a(e) {
40
+ if (n[e]) return i[e] = [];
41
+ if (!(e in i)) {
42
+ i[e] = null;
43
+ let t = r[e] && r[e].parent, n = t && a(t);
44
+ n && (i[e] = [t].concat(n));
45
+ }
46
+ return i[e];
47
+ }
48
+ return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
49
+ }
50
+ var h = Object.freeze({
51
+ left: 0,
52
+ top: 0,
53
+ width: 16,
54
+ height: 16
55
+ }), g = Object.freeze({
56
+ rotate: 0,
57
+ vFlip: !1,
58
+ hFlip: !1
59
+ }), _ = Object.freeze({
60
+ ...h,
61
+ ...g
62
+ }), v = Object.freeze({
63
+ ..._,
64
+ body: "",
65
+ hidden: !1
66
+ });
67
+ function y(e, t) {
68
+ let n = {};
69
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
70
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
71
+ return r && (n.rotate = r), n;
72
+ }
73
+ function b(e, t) {
74
+ let n = y(e, t);
75
+ for (let r in v) r in g ? r in e && !(r in n) && (n[r] = g[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
76
+ return n;
77
+ }
78
+ function x(e, t, n) {
79
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
80
+ function o(e) {
81
+ a = b(r[e] || i[e], a);
82
+ }
83
+ return o(t), n.forEach(o), b(e, a);
84
+ }
85
+ function S(e, t) {
86
+ let n = [];
87
+ if (typeof e != "object" || typeof e.icons != "object") return n;
88
+ e.not_found instanceof Array && e.not_found.forEach((e) => {
89
+ t(e, null), n.push(e);
90
+ });
91
+ let r = m(e);
92
+ for (let i in r) {
93
+ let a = r[i];
94
+ a && (t(i, x(e, i, a)), n.push(i));
95
+ }
96
+ return n;
97
+ }
98
+ var C = {
99
+ provider: "",
100
+ aliases: {},
101
+ not_found: {},
102
+ ...h
103
+ };
104
+ function w(e, t) {
105
+ for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
106
+ return !0;
107
+ }
108
+ function T(e) {
109
+ if (typeof e != "object" || !e) return null;
110
+ let t = e;
111
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !w(e, C)) return null;
112
+ let n = t.icons;
113
+ for (let e in n) {
114
+ let t = n[e];
115
+ if (!e || typeof t.body != "string" || !w(t, v)) return null;
116
+ }
117
+ let r = t.aliases || Object.create(null);
118
+ for (let e in r) {
119
+ let t = r[e], i = t.parent;
120
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !w(t, v)) return null;
121
+ }
122
+ return t;
123
+ }
124
+ var E = Object.create(null);
125
+ function D(e, t) {
126
+ return {
127
+ provider: e,
128
+ prefix: t,
129
+ icons: Object.create(null),
130
+ missing: /* @__PURE__ */ new Set()
131
+ };
132
+ }
133
+ function O(e, t) {
134
+ let n = E[e] || (E[e] = Object.create(null));
135
+ return n[t] || (n[t] = D(e, t));
136
+ }
137
+ function k(e, t) {
138
+ return T(t) ? S(t, (t, n) => {
139
+ n ? e.icons[t] = n : e.missing.add(t);
140
+ }) : [];
141
+ }
142
+ function A(e, t, n) {
143
+ try {
144
+ if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
145
+ } catch {}
146
+ return !1;
147
+ }
148
+ var j = !1;
149
+ function M(e) {
150
+ return typeof e == "boolean" && (j = e), j;
151
+ }
152
+ function ee(e) {
153
+ let t = typeof e == "string" ? f(e, !0, j) : e;
154
+ if (t) {
155
+ let e = O(t.provider, t.prefix), n = t.name;
156
+ return e.icons[n] || (e.missing.has(n) ? null : void 0);
157
+ }
158
+ }
159
+ function te(e, t) {
160
+ let n = f(e, !0, j);
161
+ if (!n) return !1;
162
+ let r = O(n.provider, n.prefix);
163
+ return t ? A(r, n.name, t) : (r.missing.add(n.name), !0);
164
+ }
165
+ function ne(e, t) {
166
+ if (typeof e != "object") return !1;
167
+ if (typeof t != "string" && (t = e.provider || ""), j && !t && !e.prefix) {
168
+ let t = !1;
169
+ return T(e) && (e.prefix = "", S(e, (e, n) => {
170
+ te(e, n) && (t = !0);
171
+ })), t;
172
+ }
173
+ let n = e.prefix;
174
+ return p({
175
+ prefix: n,
176
+ name: "a"
177
+ }) ? !!k(O(t, n), e) : !1;
178
+ }
179
+ var N = Object.freeze({
180
+ width: null,
181
+ height: null
182
+ }), re = Object.freeze({
183
+ ...N,
184
+ ...g
185
+ }), ie = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ae = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
186
+ function oe(e, t, n) {
187
+ if (t === 1) return e;
188
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
189
+ if (typeof e != "string") return e;
190
+ let r = e.split(ie);
191
+ if (r === null || !r.length) return e;
192
+ let i = [], a = r.shift(), o = ae.test(a);
193
+ for (;;) {
194
+ if (o) {
195
+ let e = parseFloat(a);
196
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
197
+ } else i.push(a);
198
+ if (a = r.shift(), a === void 0) return i.join("");
199
+ o = !o;
200
+ }
201
+ }
202
+ function se(e, t = "defs") {
203
+ let n = "", r = e.indexOf("<" + t);
204
+ for (; r >= 0;) {
205
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
206
+ if (i === -1 || a === -1) break;
207
+ let o = e.indexOf(">", a);
208
+ if (o === -1) break;
209
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
210
+ }
211
+ return {
212
+ defs: n,
213
+ content: e
214
+ };
215
+ }
216
+ function ce(e, t) {
217
+ return e ? "<defs>" + e + "</defs>" + t : t;
218
+ }
219
+ function le(e, t, n) {
220
+ let r = se(e);
221
+ return ce(r.defs, t + r.content + n);
222
+ }
223
+ var ue = (e) => e === "unset" || e === "undefined" || e === "none";
224
+ function de(e, t) {
225
+ let n = {
226
+ ..._,
227
+ ...e
228
+ }, r = {
229
+ ...re,
230
+ ...t
231
+ }, i = {
232
+ left: n.left,
233
+ top: n.top,
234
+ width: n.width,
235
+ height: n.height
236
+ }, a = n.body;
237
+ [n, r].forEach((e) => {
238
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
239
+ 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);
240
+ let s;
241
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
242
+ case 1:
243
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
244
+ break;
245
+ case 2:
246
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
247
+ break;
248
+ case 3:
249
+ s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
250
+ break;
251
+ }
252
+ 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 = le(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
253
+ });
254
+ let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
255
+ o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = oe(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? oe(u, l / c) : s === "auto" ? l : s);
256
+ let f = {}, p = (e, t) => {
257
+ ue(t) || (f[e] = t.toString());
258
+ };
259
+ p("width", u), p("height", d);
260
+ let m = [
261
+ i.left,
262
+ i.top,
263
+ c,
264
+ l
265
+ ];
266
+ return f.viewBox = m.join(" "), {
267
+ attributes: f,
268
+ viewBox: m,
269
+ body: a
270
+ };
271
+ }
272
+ var fe = /\sid="(\S+)"/g, P = /* @__PURE__ */ new Map();
273
+ function pe(e) {
274
+ e = e.replace(/[0-9]+$/, "") || "a";
275
+ let t = P.get(e) || 0;
276
+ return P.set(e, t + 1), t ? `${e}${t}` : e;
277
+ }
278
+ function me(e) {
279
+ let t = [], n;
280
+ for (; n = fe.exec(e);) t.push(n[1]);
281
+ if (!t.length) return e;
282
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
283
+ return t.forEach((t) => {
284
+ let n = pe(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
285
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
286
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
287
+ }
288
+ var F = Object.create(null);
289
+ function he(e, t) {
290
+ F[e] = t;
291
+ }
292
+ function I(e) {
293
+ return F[e] || F[""];
294
+ }
295
+ function L(e) {
296
+ let t;
297
+ if (typeof e.resources == "string") t = [e.resources];
298
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
299
+ return {
300
+ resources: t,
301
+ path: e.path || "/",
302
+ maxURL: e.maxURL || 500,
303
+ rotate: e.rotate || 750,
304
+ timeout: e.timeout || 5e3,
305
+ random: e.random === !0,
306
+ index: e.index || 0,
307
+ dataAfterTimeout: e.dataAfterTimeout !== !1
308
+ };
309
+ }
310
+ for (var R = Object.create(null), z = ["https://api.simplesvg.com", "https://api.unisvg.com"], B = []; z.length > 0;) z.length === 1 || Math.random() > .5 ? B.push(z.shift()) : B.push(z.pop());
311
+ R[""] = L({ resources: ["https://api.iconify.design"].concat(B) });
312
+ function ge(e, t) {
313
+ let n = L(t);
314
+ return n === null ? !1 : (R[e] = n, !0);
315
+ }
316
+ function V(e) {
317
+ return R[e];
318
+ }
319
+ var H = (() => {
320
+ let e;
321
+ try {
322
+ if (e = fetch, typeof e == "function") return e;
323
+ } catch {}
324
+ })();
325
+ function _e(e, t) {
326
+ let n = V(e);
327
+ if (!n) return 0;
328
+ let r;
329
+ if (!n.maxURL) r = 0;
330
+ else {
331
+ let e = 0;
332
+ n.resources.forEach((t) => {
333
+ e = Math.max(e, t.length);
334
+ });
335
+ let i = t + ".json?icons=";
336
+ r = n.maxURL - e - n.path.length - i.length;
337
+ }
338
+ return r;
339
+ }
340
+ function ve(e) {
341
+ return e === 404;
342
+ }
343
+ var ye = (e, t, n) => {
344
+ let r = [], i = _e(e, t), a = "icons", o = {
345
+ type: a,
346
+ provider: e,
347
+ prefix: t,
348
+ icons: []
349
+ }, s = 0;
350
+ return n.forEach((n, c) => {
351
+ s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
352
+ type: a,
353
+ provider: e,
354
+ prefix: t,
355
+ icons: []
356
+ }, s = n.length), o.icons.push(n);
357
+ }), r.push(o), r;
358
+ };
359
+ function be(e) {
360
+ if (typeof e == "string") {
361
+ let t = V(e);
362
+ if (t) return t.path;
363
+ }
364
+ return "/";
365
+ }
366
+ var xe = {
367
+ prepare: ye,
368
+ send: (e, t, n) => {
369
+ if (!H) {
370
+ n("abort", 424);
371
+ return;
372
+ }
373
+ let r = be(t.provider);
374
+ switch (t.type) {
375
+ case "icons": {
376
+ let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
377
+ r += e + ".json?" + i.toString();
378
+ break;
379
+ }
380
+ case "custom": {
381
+ let e = t.uri;
382
+ r += e.slice(0, 1) === "/" ? e.slice(1) : e;
383
+ break;
384
+ }
385
+ default:
386
+ n("abort", 400);
387
+ return;
388
+ }
389
+ let i = 503;
390
+ H(e + r).then((e) => {
391
+ let t = e.status;
392
+ if (t !== 200) {
393
+ setTimeout(() => {
394
+ n(ve(t) ? "abort" : "next", t);
395
+ });
396
+ return;
397
+ }
398
+ return i = 501, e.json();
399
+ }).then((e) => {
400
+ if (typeof e != "object" || !e) {
401
+ setTimeout(() => {
402
+ e === 404 ? n("abort", e) : n("next", i);
403
+ });
404
+ return;
405
+ }
406
+ setTimeout(() => {
407
+ n("success", e);
408
+ });
409
+ }).catch(() => {
410
+ n("next", i);
411
+ });
412
+ }
413
+ };
414
+ function U(e, t) {
415
+ e.forEach((e) => {
416
+ let n = e.loaderCallbacks;
417
+ n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
418
+ });
419
+ }
420
+ function Se(e) {
421
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
422
+ e.pendingCallbacksFlag = !1;
423
+ let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
424
+ if (!t.length) return;
425
+ let n = !1, r = e.provider, i = e.prefix;
426
+ t.forEach((t) => {
427
+ let a = t.icons, o = a.pending.length;
428
+ a.pending = a.pending.filter((t) => {
429
+ if (t.prefix !== i) return !0;
430
+ let o = t.name;
431
+ if (e.icons[o]) a.loaded.push({
432
+ provider: r,
433
+ prefix: i,
434
+ name: o
435
+ });
436
+ else if (e.missing.has(o)) a.missing.push({
437
+ provider: r,
438
+ prefix: i,
439
+ name: o
440
+ });
441
+ else return n = !0, !0;
442
+ return !1;
443
+ }), a.pending.length !== o && (n || U([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
444
+ });
445
+ }));
446
+ }
447
+ var Ce = 0;
448
+ function we(e, t, n) {
449
+ let r = Ce++, i = U.bind(null, n, r);
450
+ if (!t.pending.length) return i;
451
+ let a = {
452
+ id: r,
453
+ icons: t,
454
+ callback: e,
455
+ abort: i
456
+ };
457
+ return n.forEach((e) => {
458
+ (e.loaderCallbacks ||= []).push(a);
459
+ }), i;
460
+ }
461
+ function Te(e) {
462
+ let t = {
463
+ loaded: [],
464
+ missing: [],
465
+ pending: []
466
+ }, n = Object.create(null);
467
+ 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));
468
+ let r = {
469
+ provider: "",
470
+ prefix: "",
471
+ name: ""
472
+ };
473
+ return e.forEach((e) => {
474
+ if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
475
+ r = e;
476
+ let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = O(i, a)), l;
477
+ l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
478
+ let u = {
479
+ provider: i,
480
+ prefix: a,
481
+ name: o
482
+ };
483
+ l.push(u);
484
+ }), t;
485
+ }
486
+ function Ee(e, t = !0, n = !1) {
487
+ let r = [];
488
+ return e.forEach((e) => {
489
+ let i = typeof e == "string" ? f(e, t, n) : e;
490
+ i && r.push(i);
491
+ }), r;
492
+ }
493
+ var De = {
494
+ resources: [],
495
+ index: 0,
496
+ timeout: 2e3,
497
+ rotate: 750,
498
+ random: !1,
499
+ dataAfterTimeout: !1
500
+ };
501
+ function Oe(e, t, n, r) {
502
+ let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
503
+ if (e.random) {
504
+ let t = e.resources.slice(0);
505
+ for (o = []; t.length > 1;) {
506
+ let e = Math.floor(Math.random() * t.length);
507
+ o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
508
+ }
509
+ o = o.concat(t);
510
+ } else o = e.resources.slice(a).concat(e.resources.slice(0, a));
511
+ let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
512
+ typeof r == "function" && p.push(r);
513
+ function m() {
514
+ d &&= (clearTimeout(d), null);
515
+ }
516
+ function h() {
517
+ c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
518
+ e.status === "pending" && (e.status = "aborted");
519
+ }), f = [];
520
+ }
521
+ function g(e, t) {
522
+ t && (p = []), typeof e == "function" && p.push(e);
523
+ }
524
+ function _() {
525
+ return {
526
+ startTime: s,
527
+ payload: t,
528
+ status: c,
529
+ queriesSent: l,
530
+ queriesPending: f.length,
531
+ subscribe: g,
532
+ abort: h
533
+ };
534
+ }
535
+ function v() {
536
+ c = "failed", p.forEach((e) => {
537
+ e(void 0, u);
538
+ });
539
+ }
540
+ function y() {
541
+ f.forEach((e) => {
542
+ e.status === "pending" && (e.status = "aborted");
543
+ }), f = [];
544
+ }
545
+ function b(t, n, r) {
546
+ let i = n !== "success";
547
+ switch (f = f.filter((e) => e !== t), c) {
548
+ case "pending": break;
549
+ case "failed":
550
+ if (i || !e.dataAfterTimeout) return;
551
+ break;
552
+ default: return;
553
+ }
554
+ if (n === "abort") {
555
+ u = r, v();
556
+ return;
557
+ }
558
+ if (i) {
559
+ u = r, f.length || (o.length ? x() : v());
560
+ return;
561
+ }
562
+ if (m(), y(), !e.random) {
563
+ let n = e.resources.indexOf(t.resource);
564
+ n !== -1 && n !== e.index && (e.index = n);
565
+ }
566
+ c = "completed", p.forEach((e) => {
567
+ e(r);
568
+ });
569
+ }
570
+ function x() {
571
+ if (c !== "pending") return;
572
+ m();
573
+ let r = o.shift();
574
+ if (r === void 0) {
575
+ if (f.length) {
576
+ d = setTimeout(() => {
577
+ m(), c === "pending" && (y(), v());
578
+ }, e.timeout);
579
+ return;
580
+ }
581
+ v();
582
+ return;
583
+ }
584
+ let i = {
585
+ status: "pending",
586
+ resource: r,
587
+ callback: (e, t) => {
588
+ b(i, e, t);
589
+ }
590
+ };
591
+ f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
592
+ }
593
+ return setTimeout(x), _;
594
+ }
595
+ function W(e) {
596
+ let t = {
597
+ ...De,
598
+ ...e
599
+ }, n = [];
600
+ function r() {
601
+ n = n.filter((e) => e().status === "pending");
602
+ }
603
+ function i(e, i, a) {
604
+ let o = Oe(t, e, i, (e, t) => {
605
+ r(), a && a(e, t);
606
+ });
607
+ return n.push(o), o;
608
+ }
609
+ function a(e) {
610
+ return n.find((t) => e(t)) || null;
611
+ }
612
+ return {
613
+ query: i,
614
+ find: a,
615
+ setIndex: (e) => {
616
+ t.index = e;
617
+ },
618
+ getIndex: () => t.index,
619
+ cleanup: r
620
+ };
621
+ }
622
+ function G() {}
623
+ var K = Object.create(null);
624
+ function ke(e) {
625
+ if (!K[e]) {
626
+ let t = V(e);
627
+ if (!t) return;
628
+ K[e] = {
629
+ config: t,
630
+ redundancy: W(t)
631
+ };
632
+ }
633
+ return K[e];
634
+ }
635
+ function Ae(e, t, n) {
636
+ let r, i;
637
+ if (typeof e == "string") {
638
+ let t = I(e);
639
+ if (!t) return n(void 0, 424), G;
640
+ i = t.send;
641
+ let a = ke(e);
642
+ a && (r = a.redundancy);
643
+ } else {
644
+ let t = L(e);
645
+ if (t) {
646
+ r = W(t);
647
+ let n = I(e.resources ? e.resources[0] : "");
648
+ n && (i = n.send);
649
+ }
650
+ }
651
+ return !r || !i ? (n(void 0, 424), G) : r.query(t, i, n)().abort;
652
+ }
653
+ function je() {}
654
+ function Me(e) {
655
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
656
+ e.iconsLoaderFlag = !1, Se(e);
657
+ }));
658
+ }
659
+ function Ne(e) {
660
+ let t = [], n = [];
661
+ return e.forEach((e) => {
662
+ (e.match(d) ? t : n).push(e);
663
+ }), {
664
+ valid: t,
665
+ invalid: n
666
+ };
667
+ }
668
+ function q(e, t, n) {
669
+ function r() {
670
+ let n = e.pendingIcons;
671
+ t.forEach((t) => {
672
+ n && n.delete(t), e.icons[t] || e.missing.add(t);
673
+ });
674
+ }
675
+ if (n && typeof n == "object") try {
676
+ if (!k(e, n).length) {
677
+ r();
678
+ return;
679
+ }
680
+ } catch (e) {
681
+ console.error(e);
682
+ }
683
+ r(), Me(e);
684
+ }
685
+ function Pe(e, t) {
686
+ e instanceof Promise ? e.then((e) => {
687
+ t(e);
688
+ }).catch(() => {
689
+ t(null);
690
+ }) : t(e);
691
+ }
692
+ function Fe(e, t) {
693
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
694
+ e.iconsQueueFlag = !1;
695
+ let { provider: t, prefix: n } = e, r = e.iconsToLoad;
696
+ if (delete e.iconsToLoad, !r || !r.length) return;
697
+ let i = e.loadIcon;
698
+ if (e.loadIcons && (r.length > 1 || !i)) {
699
+ Pe(e.loadIcons(r, n, t), (t) => {
700
+ q(e, r, t);
701
+ });
702
+ return;
703
+ }
704
+ if (i) {
705
+ r.forEach((r) => {
706
+ Pe(i(r, n, t), (t) => {
707
+ q(e, [r], t ? {
708
+ prefix: n,
709
+ icons: { [r]: t }
710
+ } : null);
711
+ });
712
+ });
713
+ return;
714
+ }
715
+ let { valid: a, invalid: o } = Ne(r);
716
+ if (o.length && q(e, o, null), !a.length) return;
717
+ let s = n.match(d) ? I(t) : null;
718
+ if (!s) {
719
+ q(e, a, null);
720
+ return;
721
+ }
722
+ s.prepare(t, n, a).forEach((n) => {
723
+ Ae(t, n, (t) => {
724
+ q(e, n.icons, t);
725
+ });
726
+ });
727
+ }));
728
+ }
729
+ var Ie = (e, t) => {
730
+ let n = Te(Ee(e, !0, M()));
731
+ if (!n.pending.length) {
732
+ let e = !0;
733
+ return t && setTimeout(() => {
734
+ e && t(n.loaded, n.missing, n.pending, je);
735
+ }), () => {
736
+ e = !1;
737
+ };
738
+ }
739
+ let r = Object.create(null), i = [], a, o;
740
+ return n.pending.forEach((e) => {
741
+ let { provider: t, prefix: n } = e;
742
+ if (n === o && t === a) return;
743
+ a = t, o = n, i.push(O(t, n));
744
+ let s = r[t] || (r[t] = Object.create(null));
745
+ s[n] || (s[n] = []);
746
+ }), n.pending.forEach((e) => {
747
+ let { provider: t, prefix: n, name: i } = e, a = O(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
748
+ o.has(i) || (o.add(i), r[t][n].push(i));
749
+ }), i.forEach((e) => {
750
+ let t = r[e.provider][e.prefix];
751
+ t.length && Fe(e, t);
752
+ }), t ? we(t, n, i) : je;
753
+ };
754
+ function Le(e, t) {
755
+ let n = { ...e };
756
+ for (let e in t) {
757
+ let r = t[e], i = typeof r;
758
+ e in N ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
759
+ }
760
+ return n;
761
+ }
762
+ var Re = /[\s,]+/;
763
+ function ze(e, t) {
764
+ t.split(Re).forEach((t) => {
765
+ switch (t.trim()) {
766
+ case "horizontal":
767
+ e.hFlip = !0;
768
+ break;
769
+ case "vertical":
770
+ e.vFlip = !0;
771
+ break;
772
+ }
773
+ });
774
+ }
775
+ function Be(e, t = 0) {
776
+ let n = e.replace(/^-?[0-9.]*/, "");
777
+ function r(e) {
778
+ for (; e < 0;) e += 4;
779
+ return e % 4;
780
+ }
781
+ if (n === "") {
782
+ let t = parseInt(e);
783
+ return isNaN(t) ? 0 : r(t);
784
+ } else if (n !== e) {
785
+ let t = 0;
786
+ switch (n) {
787
+ case "%":
788
+ t = 25;
789
+ break;
790
+ case "deg": t = 90;
791
+ }
792
+ if (t) {
793
+ let i = parseFloat(e.slice(0, e.length - n.length));
794
+ return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
795
+ }
796
+ }
797
+ return t;
798
+ }
799
+ function Ve(e, t) {
800
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
801
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
802
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
803
+ }
804
+ function He(e) {
805
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
806
+ }
807
+ function Ue(e) {
808
+ return "data:image/svg+xml," + He(e);
809
+ }
810
+ function We(e) {
811
+ return "url(\"" + Ue(e) + "\")";
812
+ }
813
+ var Ge = {
814
+ ...re,
815
+ inline: !1
816
+ }, Ke = {
817
+ xmlns: "http://www.w3.org/2000/svg",
818
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
819
+ "aria-hidden": !0,
820
+ role: "img"
821
+ }, qe = { display: "inline-block" }, J = { backgroundColor: "currentColor" }, Je = { backgroundColor: "transparent" }, Ye = {
822
+ Image: "var(--svg)",
823
+ Repeat: "no-repeat",
824
+ Size: "100% 100%"
825
+ }, Xe = {
826
+ webkitMask: J,
827
+ mask: J,
828
+ background: Je
829
+ };
830
+ for (let e in Xe) {
831
+ let t = Xe[e];
832
+ for (let n in Ye) t[e + n] = Ye[n];
833
+ }
834
+ var Y = {};
835
+ ["horizontal", "vertical"].forEach((e) => {
836
+ let t = e.slice(0, 1) + "Flip";
837
+ Y[e + "-flip"] = t, Y[e.slice(0, 1) + "-flip"] = t, Y[e + "Flip"] = t;
838
+ });
839
+ function Ze(e) {
840
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
841
+ }
842
+ var X = (e, t) => {
843
+ let n = Le(Ge, t), r = { ...Ke }, a = t.mode || "svg", o = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
844
+ for (let e in t) {
845
+ let i = t[e];
846
+ if (i !== void 0) switch (e) {
847
+ case "icon":
848
+ case "style":
849
+ case "onLoad":
850
+ case "mode":
851
+ case "ssr":
852
+ case "customise": break;
853
+ case "inline":
854
+ case "hFlip":
855
+ case "vFlip":
856
+ n[e] = i === !0 || i === "true" || i === 1;
857
+ break;
858
+ case "flip":
859
+ typeof i == "string" && ze(n, i);
860
+ break;
861
+ case "color":
862
+ o.color = i;
863
+ break;
864
+ case "rotate":
865
+ typeof i == "string" ? n[e] = Be(i) : typeof i == "number" && (n[e] = i);
866
+ break;
867
+ case "ariaHidden":
868
+ case "aria-hidden":
869
+ i !== !0 && i !== "true" && delete r["aria-hidden"];
870
+ break;
871
+ default: {
872
+ let t = Y[e];
873
+ t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : Ge[e] === void 0 && (r[e] = i);
874
+ }
875
+ }
876
+ }
877
+ let l = de(e, n), u = l.attributes;
878
+ if (n.inline && (o.verticalAlign = "-0.125em"), a === "svg") return r.style = {
879
+ ...o,
880
+ ...c
881
+ }, Object.assign(r, u), r.innerHTML = me(l.body), i("svg", r);
882
+ let { body: d, width: f, height: p } = e, m = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = Ve(d, {
883
+ ...u,
884
+ width: f + "",
885
+ height: p + ""
886
+ });
887
+ return r.style = {
888
+ ...o,
889
+ "--svg": We(h),
890
+ width: Ze(u.width),
891
+ height: Ze(u.height),
892
+ ...qe,
893
+ ...m ? J : Je,
894
+ ...c
895
+ }, i("span", r);
896
+ };
897
+ if (M(!0), he("", xe), typeof document < "u" && typeof window < "u") {
898
+ let e = window;
899
+ if (e.IconifyPreload !== void 0) {
900
+ let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
901
+ typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
902
+ try {
903
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !ne(e)) && console.error(n);
904
+ } catch {
905
+ console.error(n);
906
+ }
907
+ });
908
+ }
909
+ if (e.IconifyProviders !== void 0) {
910
+ let t = e.IconifyProviders;
911
+ if (typeof t == "object" && t) for (let e in t) {
912
+ let n = "IconifyProviders[" + e + "] is invalid.";
913
+ try {
914
+ let r = t[e];
915
+ if (typeof r != "object" || !r || r.resources === void 0) continue;
916
+ ge(e, r) || console.error(n);
917
+ } catch {
918
+ console.error(n);
919
+ }
920
+ }
921
+ }
922
+ }
923
+ var Qe = {
924
+ ..._,
925
+ body: ""
926
+ }, $e = r((e, { emit: t }) => {
927
+ let n = c(null);
928
+ function r() {
929
+ n.value &&= (n.value.abort?.(), null);
930
+ }
931
+ let i = c(!!e.ssr), d = c(""), p = l(null);
932
+ function m() {
933
+ let i = e.icon;
934
+ if (typeof i == "object" && i && typeof i.body == "string") return d.value = "", { data: i };
935
+ let o;
936
+ if (typeof i != "string" || (o = f(i, !1, !0)) === null) return null;
937
+ let s = ee(o);
938
+ if (!s) {
939
+ let e = n.value;
940
+ return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
941
+ name: i,
942
+ abort: Ie([o], h)
943
+ }), null;
944
+ }
945
+ r(), d.value !== i && (d.value = i, a(() => {
946
+ t("load", i);
947
+ }));
948
+ let c = e.customise;
949
+ if (c) {
950
+ s = Object.assign({}, s);
951
+ let e = c(s.body, o.name, o.prefix, o.provider);
952
+ typeof e == "string" && (s.body = e);
953
+ }
954
+ let l = ["iconify"];
955
+ return o.prefix !== "" && l.push("iconify--" + o.prefix), o.provider !== "" && l.push("iconify--" + o.provider), {
956
+ data: s,
957
+ classes: l
958
+ };
959
+ }
960
+ function h() {
961
+ let e = m();
962
+ e ? e.data !== p.value?.data && (p.value = e) : p.value = null;
963
+ }
964
+ return i.value ? h() : o(() => {
965
+ i.value = !0, h();
966
+ }), u(() => e.icon, h), s(r), () => {
967
+ let t = p.value;
968
+ if (!t) return X(Qe, e);
969
+ let n = e;
970
+ return t.classes && (n = {
971
+ ...e,
972
+ class: t.classes.join(" ")
973
+ }), X({
974
+ ..._,
975
+ ...t.data
976
+ }, n);
977
+ };
978
+ }, {
979
+ props: [
980
+ "icon",
981
+ "mode",
982
+ "ssr",
983
+ "width",
984
+ "height",
985
+ "style",
986
+ "color",
987
+ "inline",
988
+ "rotate",
989
+ "hFlip",
990
+ "horizontalFlip",
991
+ "vFlip",
992
+ "verticalFlip",
993
+ "flip",
994
+ "id",
995
+ "ariaHidden",
996
+ "customise",
997
+ "title"
998
+ ],
999
+ emits: ["load"]
1000
+ });
1001
+ //#endregion
1002
+ //#region ../ccui/ui/shared/hooks/use-namespace.ts
1003
+ function Z(e, t, n) {
1004
+ let r = e;
1005
+ return t && (r += `__${t}`), n && (r += `--${n}`), r;
1006
+ }
1007
+ function et(e, t = !1) {
1008
+ let n = t ? `.ccui-${e}` : `ccui-${e}`;
1009
+ return {
1010
+ b: () => Z(n),
1011
+ e: (e) => e ? Z(n, e) : "",
1012
+ m: (e) => e ? Z(n, "", e) : "",
1013
+ em: (e, t) => e && t ? Z(n, e, t) : "",
1014
+ is: (e) => `is-${e}`
1015
+ };
1016
+ }
1017
+ //#endregion
1018
+ //#region ../ccui/ui/textarea/src/textarea-types.ts
1019
+ var tt = {
1020
+ modelValue: {
1021
+ type: String,
1022
+ default: ""
1023
+ },
1024
+ defaultValue: {
1025
+ type: String,
1026
+ default: void 0
1027
+ },
1028
+ placeholder: {
1029
+ type: String,
1030
+ default: ""
1031
+ },
1032
+ size: {
1033
+ type: String,
1034
+ default: "default"
1035
+ },
1036
+ disabled: {
1037
+ type: Boolean,
1038
+ default: !1
1039
+ },
1040
+ readonly: {
1041
+ type: Boolean,
1042
+ default: !1
1043
+ },
1044
+ rows: {
1045
+ type: Number,
1046
+ default: 2
1047
+ },
1048
+ autoSize: {
1049
+ type: [Boolean, Object],
1050
+ default: !1
1051
+ },
1052
+ allowClear: {
1053
+ type: [Boolean, Object],
1054
+ default: !1
1055
+ },
1056
+ showCount: {
1057
+ type: [Boolean, Object],
1058
+ default: !1
1059
+ },
1060
+ maxLength: {
1061
+ type: Number,
1062
+ default: void 0
1063
+ },
1064
+ status: {
1065
+ type: String,
1066
+ default: ""
1067
+ },
1068
+ resize: {
1069
+ type: String,
1070
+ default: "vertical"
1071
+ },
1072
+ variant: {
1073
+ type: String,
1074
+ default: "outlined"
1075
+ },
1076
+ classNames: {
1077
+ type: Object,
1078
+ default: void 0
1079
+ },
1080
+ styles: {
1081
+ type: Object,
1082
+ default: void 0
1083
+ }
1084
+ };
1085
+ //#endregion
1086
+ //#region ../ccui/ui/textarea/src/textarea.tsx
1087
+ function nt(e) {
1088
+ return e.includes(":");
1089
+ }
1090
+ function rt(e) {
1091
+ return typeof e == "object" && !!e && !Array.isArray(e);
1092
+ }
1093
+ function it(e) {
1094
+ return typeof e == "object" && !!e && !Array.isArray(e);
1095
+ }
1096
+ function at(e) {
1097
+ return typeof e == "object" && !!e && !Array.isArray(e);
1098
+ }
1099
+ function Q(e, t) {
1100
+ let n = window.getComputedStyle(e), r = Number.parseFloat(n.lineHeight) || Number.parseFloat(n.fontSize) * 1.5, i = Number.parseFloat(n.paddingTop) || 0, a = Number.parseFloat(n.paddingBottom) || 0, o = Number.parseFloat(n.borderTopWidth) || 0, s = Number.parseFloat(n.borderBottomWidth) || 0;
1101
+ return r * t + i + a + o + s;
1102
+ }
1103
+ var $ = /* @__PURE__ */ r({
1104
+ name: "CTextarea",
1105
+ props: tt,
1106
+ emits: [
1107
+ "update:modelValue",
1108
+ "input",
1109
+ "change",
1110
+ "focus",
1111
+ "blur",
1112
+ "clear",
1113
+ "press-enter",
1114
+ "resize"
1115
+ ],
1116
+ setup(r, { emit: i, slots: s }) {
1117
+ let l = et("textarea"), d = c(null), f = c(r.modelValue === "" ? r.defaultValue ?? "" : r.modelValue), p = e(() => {
1118
+ let e = r.allowClear;
1119
+ return typeof e == "boolean" ? e : e != null;
1120
+ }), m = e(() => it(r.allowClear) ? r.allowClear.clearIcon : void 0), h = e(() => {
1121
+ let e = r.showCount;
1122
+ return typeof e == "boolean" ? e : e != null;
1123
+ }), g = e(() => at(r.showCount) ? r.showCount.formatter : void 0), _ = e(() => {
1124
+ if (!h.value) return "";
1125
+ let e = f.value ?? "", t = e.length, n = r.maxLength;
1126
+ return g.value ? g.value({
1127
+ value: e,
1128
+ count: t,
1129
+ maxLength: n
1130
+ }) : n === void 0 ? `${t}` : `${t} / ${n}`;
1131
+ }), v = e(() => !!r.autoSize), y = e(() => rt(r.autoSize) ? r.autoSize : {}), b = () => {
1132
+ let e = d.value;
1133
+ if (!e || !v.value) return;
1134
+ e.style.height = "auto";
1135
+ let t = e.scrollHeight, { minRows: n, maxRows: r } = y.value;
1136
+ if (n !== void 0) {
1137
+ let r = Q(e, n);
1138
+ t < r && (t = r);
1139
+ }
1140
+ if (r !== void 0) {
1141
+ let n = Q(e, r);
1142
+ t > n ? (t = n, e.style.overflowY = "auto") : e.style.overflowY = "hidden";
1143
+ } else v.value && (e.style.overflowY = "hidden");
1144
+ e.style.height = `${t}px`, i("resize", { height: t });
1145
+ }, x = e(() => ({ resize: v.value ? "none" : r.resize })), S = e(() => ({
1146
+ [l.b()]: !0,
1147
+ [l.m(r.size)]: !!r.size,
1148
+ [l.m("disabled")]: r.disabled,
1149
+ [l.m("readonly")]: r.readonly,
1150
+ [l.m(`status-${r.status}`)]: !!r.status,
1151
+ [l.m(`variant-${r.variant}`)]: !!r.variant,
1152
+ [l.m("show-count")]: h.value
1153
+ })), C = (e) => {
1154
+ f.value = e, i("update:modelValue", e), i("input", e);
1155
+ }, w = (e) => {
1156
+ let t = e.target;
1157
+ C(t.value), v.value && a(b);
1158
+ }, T = (e) => {
1159
+ let t = e.target;
1160
+ i("change", t.value);
1161
+ }, E = (e) => i("focus", e), D = (e) => i("blur", e), O = (e) => {
1162
+ e.key === "Enter" && !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && i("press-enter", e);
1163
+ }, k = () => {
1164
+ C(""), i("clear"), v.value && a(b);
1165
+ };
1166
+ u(() => r.modelValue, (e) => {
1167
+ e !== f.value && (f.value = e, v.value && a(b));
1168
+ }), u(() => r.autoSize, () => {
1169
+ if (v.value) a(b);
1170
+ else {
1171
+ let e = d.value;
1172
+ e && (e.style.height = "", e.style.overflowY = "");
1173
+ }
1174
+ }), o(() => {
1175
+ v.value && b();
1176
+ });
1177
+ let A = () => {
1178
+ if (!p.value || !f.value || r.disabled || r.readonly) return null;
1179
+ let e = m.value;
1180
+ return e ? typeof e == "string" ? nt(e) ? n("span", {
1181
+ class: l.e("clear"),
1182
+ onClick: k
1183
+ }, [n($e, { icon: e }, null)]) : n("i", {
1184
+ class: [l.e("clear"), e],
1185
+ onClick: k
1186
+ }, null) : n("span", {
1187
+ class: l.e("clear"),
1188
+ onClick: k
1189
+ }, [e]) : n("i", {
1190
+ class: l.e("clear"),
1191
+ onClick: k,
1192
+ "aria-label": "clear"
1193
+ }, [t("×")]);
1194
+ };
1195
+ return () => n("div", {
1196
+ class: [S.value, r.classNames?.root],
1197
+ style: r.styles?.root
1198
+ }, [
1199
+ n("textarea", {
1200
+ ref: d,
1201
+ class: [l.e("inner"), r.classNames?.textarea],
1202
+ style: [x.value, r.styles?.textarea],
1203
+ placeholder: r.placeholder,
1204
+ disabled: r.disabled,
1205
+ readonly: r.readonly,
1206
+ maxlength: r.maxLength,
1207
+ rows: v.value ? void 0 : r.rows,
1208
+ value: f.value,
1209
+ "aria-invalid": r.status === "error" ? !0 : void 0,
1210
+ "aria-disabled": r.disabled ? !0 : void 0,
1211
+ "aria-readonly": r.readonly ? !0 : void 0,
1212
+ onInput: w,
1213
+ onChange: T,
1214
+ onFocus: E,
1215
+ onBlur: D,
1216
+ onKeydown: O
1217
+ }, null),
1218
+ A(),
1219
+ h.value && n("span", {
1220
+ class: [l.e("count"), r.classNames?.count],
1221
+ style: r.styles?.count
1222
+ }, [_.value]),
1223
+ s.suffix && n("div", { class: l.e("suffix") }, [s.suffix()])
1224
+ ]);
1225
+ }
1226
+ });
1227
+ //#endregion
1228
+ //#region ../ccui/ui/textarea/index.ts
1229
+ $.install = function(e) {
1230
+ e.component($.name, $);
1231
+ };
1232
+ var ot = {
1233
+ title: "Textarea 多行文本",
1234
+ category: "数据录入",
1235
+ status: "80%",
1236
+ install(e) {
1237
+ e.component($.name, $);
1238
+ }
1239
+ };
1240
+ //#endregion
1241
+ export { $ as Textarea, ot as default };