@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,711 @@
1
+ import { computed as e, createVNode as t, defineComponent as n, getCurrentInstance as r, inject as i, nextTick as a, onMounted as o, onUnmounted as s, ref as c, shallowRef as l } from "vue";
2
+ //#region \0rolldown/runtime.js
3
+ var u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
4
+ //#endregion
5
+ //#region ../ccui/ui/shared/hooks/use-namespace.ts
6
+ function d(e, t, n) {
7
+ let r = e;
8
+ return t && (r += `__${t}`), n && (r += `--${n}`), r;
9
+ }
10
+ function f(e, t = !1) {
11
+ let n = t ? `.ccui-${e}` : `ccui-${e}`;
12
+ return {
13
+ b: () => d(n),
14
+ e: (e) => e ? d(n, e) : "",
15
+ m: (e) => e ? d(n, "", e) : "",
16
+ em: (e, t) => e && t ? d(n, e, t) : "",
17
+ is: (e) => `is-${e}`
18
+ };
19
+ }
20
+ (/* @__PURE__ */ u(((e, t) => {
21
+ (function(n, r) {
22
+ 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();
23
+ })(e, (function() {
24
+ 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 = {
25
+ name: "en",
26
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
27
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
28
+ ordinal: function(e) {
29
+ var t = [
30
+ "th",
31
+ "st",
32
+ "nd",
33
+ "rd"
34
+ ], n = e % 100;
35
+ return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
36
+ }
37
+ }, _ = function(e, t, n) {
38
+ var r = String(e);
39
+ return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
40
+ }, v = {
41
+ s: _,
42
+ z: function(e) {
43
+ var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
44
+ return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
45
+ },
46
+ m: function e(t, n) {
47
+ if (t.date() < n.date()) return -e(n, t);
48
+ 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);
49
+ return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
50
+ },
51
+ a: function(e) {
52
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
53
+ },
54
+ p: function(e) {
55
+ return {
56
+ M: l,
57
+ y: d,
58
+ w: c,
59
+ d: s,
60
+ D: f,
61
+ h: o,
62
+ m: a,
63
+ s: i,
64
+ ms: r,
65
+ Q: u
66
+ }[e] || String(e || "").toLowerCase().replace(/s$/, "");
67
+ },
68
+ u: function(e) {
69
+ return e === void 0;
70
+ }
71
+ }, y = "en", b = {};
72
+ b[y] = g;
73
+ var x = "$isDayjsObject", S = function(e) {
74
+ return e instanceof E || !(!e || !e[x]);
75
+ }, C = function e(t, n, r) {
76
+ var i;
77
+ if (!t) return y;
78
+ if (typeof t == "string") {
79
+ var a = t.toLowerCase();
80
+ b[a] && (i = a), n && (b[a] = n, i = a);
81
+ var o = t.split("-");
82
+ if (!i && o.length > 1) return e(o[0]);
83
+ } else {
84
+ var s = t.name;
85
+ b[s] = t, i = s;
86
+ }
87
+ return !r && i && (y = i), i || !r && y;
88
+ }, w = function(e, t) {
89
+ if (S(e)) return e.clone();
90
+ var n = typeof t == "object" ? t : {};
91
+ return n.date = e, n.args = arguments, new E(n);
92
+ }, T = v;
93
+ T.l = C, T.i = S, T.w = function(e, t) {
94
+ return w(e, {
95
+ locale: t.$L,
96
+ utc: t.$u,
97
+ x: t.$x,
98
+ $offset: t.$offset
99
+ });
100
+ };
101
+ var E = function() {
102
+ function g(e) {
103
+ this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
104
+ }
105
+ var _ = g.prototype;
106
+ return _.parse = function(e) {
107
+ this.$d = function(e) {
108
+ var t = e.date, n = e.utc;
109
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
110
+ if (T.u(t)) return /* @__PURE__ */ new Date();
111
+ if (t instanceof Date) return new Date(t);
112
+ if (typeof t == "string" && !/Z$/i.test(t)) {
113
+ var r = t.match(m);
114
+ if (r) {
115
+ var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
116
+ 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);
117
+ }
118
+ }
119
+ return new Date(t);
120
+ }(e), this.init();
121
+ }, _.init = function() {
122
+ var e = this.$d;
123
+ 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();
124
+ }, _.$utils = function() {
125
+ return T;
126
+ }, _.isValid = function() {
127
+ return this.$d.toString() !== p;
128
+ }, _.isSame = function(e, t) {
129
+ var n = w(e);
130
+ return this.startOf(t) <= n && n <= this.endOf(t);
131
+ }, _.isAfter = function(e, t) {
132
+ return w(e) < this.startOf(t);
133
+ }, _.isBefore = function(e, t) {
134
+ return this.endOf(t) < w(e);
135
+ }, _.$g = function(e, t, n) {
136
+ return T.u(e) ? this[t] : this.set(n, e);
137
+ }, _.unix = function() {
138
+ return Math.floor(this.valueOf() / 1e3);
139
+ }, _.valueOf = function() {
140
+ return this.$d.getTime();
141
+ }, _.startOf = function(e, t) {
142
+ var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
143
+ var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
144
+ return r ? i : i.endOf(s);
145
+ }, m = function(e, t) {
146
+ return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
147
+ 0,
148
+ 0,
149
+ 0,
150
+ 0
151
+ ] : [
152
+ 23,
153
+ 59,
154
+ 59,
155
+ 999
156
+ ]).slice(t)), n);
157
+ }, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
158
+ switch (u) {
159
+ case d: return r ? p(1, 0) : p(31, 11);
160
+ case l: return r ? p(1, g) : p(0, g + 1);
161
+ case c:
162
+ var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
163
+ return p(r ? _ - b : _ + (6 - b), g);
164
+ case s:
165
+ case f: return m(v + "Hours", 0);
166
+ case o: return m(v + "Minutes", 1);
167
+ case a: return m(v + "Seconds", 2);
168
+ case i: return m(v + "Milliseconds", 3);
169
+ default: return this.clone();
170
+ }
171
+ }, _.endOf = function(e) {
172
+ return this.startOf(e, !1);
173
+ }, _.$set = function(e, t) {
174
+ 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;
175
+ if (c === l || c === d) {
176
+ var h = this.clone().set(f, 1);
177
+ h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
178
+ } else p && this.$d[p](m);
179
+ return this.init(), this;
180
+ }, _.set = function(e, t) {
181
+ return this.clone().$set(e, t);
182
+ }, _.get = function(e) {
183
+ return this[T.p(e)]();
184
+ }, _.add = function(r, u) {
185
+ var f, p = this;
186
+ r = Number(r);
187
+ var m = T.p(u), h = function(e) {
188
+ var t = w(p);
189
+ return T.w(t.date(t.date() + Math.round(e * r)), p);
190
+ };
191
+ if (m === l) return this.set(l, this.$M + r);
192
+ if (m === d) return this.set(d, this.$y + r);
193
+ if (m === s) return h(1);
194
+ if (m === c) return h(7);
195
+ var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
196
+ return T.w(_, this);
197
+ }, _.subtract = function(e, t) {
198
+ return this.add(-1 * e, t);
199
+ }, _.format = function(e) {
200
+ var t = this, n = this.$locale();
201
+ if (!this.isValid()) return n.invalidDate || p;
202
+ 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) {
203
+ return e && (e[n] || e(t, r)) || i[n].slice(0, a);
204
+ }, f = function(e) {
205
+ return T.s(a % 12 || 12, e, "0");
206
+ }, m = u || function(e, t, n) {
207
+ var r = e < 12 ? "AM" : "PM";
208
+ return n ? r.toLowerCase() : r;
209
+ };
210
+ return r.replace(h, (function(e, r) {
211
+ return r || function(e) {
212
+ switch (e) {
213
+ case "YY": return String(t.$y).slice(-2);
214
+ case "YYYY": return T.s(t.$y, 4, "0");
215
+ case "M": return s + 1;
216
+ case "MM": return T.s(s + 1, 2, "0");
217
+ case "MMM": return d(n.monthsShort, s, l, 3);
218
+ case "MMMM": return d(l, s);
219
+ case "D": return t.$D;
220
+ case "DD": return T.s(t.$D, 2, "0");
221
+ case "d": return String(t.$W);
222
+ case "dd": return d(n.weekdaysMin, t.$W, c, 2);
223
+ case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
224
+ case "dddd": return c[t.$W];
225
+ case "H": return String(a);
226
+ case "HH": return T.s(a, 2, "0");
227
+ case "h": return f(1);
228
+ case "hh": return f(2);
229
+ case "a": return m(a, o, !0);
230
+ case "A": return m(a, o, !1);
231
+ case "m": return String(o);
232
+ case "mm": return T.s(o, 2, "0");
233
+ case "s": return String(t.$s);
234
+ case "ss": return T.s(t.$s, 2, "0");
235
+ case "SSS": return T.s(t.$ms, 3, "0");
236
+ case "Z": return i;
237
+ }
238
+ return null;
239
+ }(e) || i.replace(":", "");
240
+ }));
241
+ }, _.utcOffset = function() {
242
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
243
+ }, _.diff = function(r, f, p) {
244
+ var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
245
+ return T.m(h, _);
246
+ };
247
+ switch (g) {
248
+ case d:
249
+ m = b() / 12;
250
+ break;
251
+ case l:
252
+ m = b();
253
+ break;
254
+ case u:
255
+ m = b() / 3;
256
+ break;
257
+ case c:
258
+ m = (y - v) / 6048e5;
259
+ break;
260
+ case s:
261
+ m = (y - v) / 864e5;
262
+ break;
263
+ case o:
264
+ m = y / n;
265
+ break;
266
+ case a:
267
+ m = y / t;
268
+ break;
269
+ case i:
270
+ m = y / e;
271
+ break;
272
+ default: m = y;
273
+ }
274
+ return p ? m : T.a(m);
275
+ }, _.daysInMonth = function() {
276
+ return this.endOf(l).$D;
277
+ }, _.$locale = function() {
278
+ return b[this.$L];
279
+ }, _.locale = function(e, t) {
280
+ if (!e) return this.$L;
281
+ var n = this.clone(), r = C(e, t, !0);
282
+ return r && (n.$L = r), n;
283
+ }, _.clone = function() {
284
+ return T.w(this.$d, this);
285
+ }, _.toDate = function() {
286
+ return new Date(this.valueOf());
287
+ }, _.toJSON = function() {
288
+ return this.isValid() ? this.toISOString() : null;
289
+ }, _.toISOString = function() {
290
+ return this.$d.toISOString();
291
+ }, _.toString = function() {
292
+ return this.$d.toUTCString();
293
+ }, g;
294
+ }(), D = E.prototype;
295
+ return w.prototype = D, [
296
+ ["$ms", r],
297
+ ["$s", i],
298
+ ["$m", a],
299
+ ["$H", o],
300
+ ["$W", s],
301
+ ["$M", l],
302
+ ["$y", d],
303
+ ["$D", f]
304
+ ].forEach((function(e) {
305
+ D[e[1]] = function(t) {
306
+ return this.$g(t, e[0], e[1]);
307
+ };
308
+ })), w.extend = function(e, t) {
309
+ return e.$i ||= (e(t, E, w), !0), w;
310
+ }, w.locale = C, w.isDayjs = S, w.unix = function(e) {
311
+ return w(1e3 * e);
312
+ }, w.en = b[y], w.Ls = b, w.p = {}, w;
313
+ }));
314
+ })))();
315
+ //#endregion
316
+ //#region ../ccui/ui/locale/zh-CN.ts
317
+ var p = {
318
+ locale: "zh-CN",
319
+ Modal: {
320
+ okText: "确 定",
321
+ cancelText: "取 消",
322
+ justOkText: "知道了"
323
+ },
324
+ Popconfirm: {
325
+ okText: "确 定",
326
+ cancelText: "取 消"
327
+ },
328
+ Empty: { description: "暂无数据" },
329
+ AutoComplete: { notFoundContent: "暂无数据" },
330
+ Mentions: { notFoundContent: "暂无数据" },
331
+ Cascader: { notFoundContent: "暂无数据" },
332
+ TreeSelect: {
333
+ notFoundContent: "暂无数据",
334
+ searchPlaceholder: "搜索"
335
+ },
336
+ Select: { notFoundContent: "暂无数据" },
337
+ Pagination: {
338
+ itemsPerPage: "条/页",
339
+ jumpTo: "跳至",
340
+ page: "页",
341
+ prevPage: "上一页",
342
+ nextPage: "下一页",
343
+ total: "共 {total} 条",
344
+ pagination: "分页"
345
+ },
346
+ Image: {
347
+ loading: "加载中",
348
+ error: "加载失败"
349
+ },
350
+ DatePicker: {
351
+ placeholder: "请选择日期",
352
+ rangePlaceholder: ["开始日期", "结束日期"],
353
+ timePlaceholder: "请选择时间",
354
+ weekdaysShort: [
355
+ "日",
356
+ "一",
357
+ "二",
358
+ "三",
359
+ "四",
360
+ "五",
361
+ "六"
362
+ ],
363
+ panelLabelFormat: "YYYY 年 M 月",
364
+ monthNamesShort: [
365
+ "1 月",
366
+ "2 月",
367
+ "3 月",
368
+ "4 月",
369
+ "5 月",
370
+ "6 月",
371
+ "7 月",
372
+ "8 月",
373
+ "9 月",
374
+ "10 月",
375
+ "11 月",
376
+ "12 月"
377
+ ],
378
+ quarterNames: [
379
+ "一季度",
380
+ "二季度",
381
+ "三季度",
382
+ "四季度"
383
+ ],
384
+ weekFormat: "{weekYear} 年第 {weekNumber} 周",
385
+ weekHeader: "周",
386
+ now: "此刻",
387
+ ok: "确定",
388
+ prevYearLabel: "前一年",
389
+ prevMonthLabel: "上个月",
390
+ nextYearLabel: "后一年",
391
+ nextMonthLabel: "下个月",
392
+ clearLabel: "清除"
393
+ },
394
+ Calendar: {
395
+ weekdaysShort: [
396
+ "日",
397
+ "一",
398
+ "二",
399
+ "三",
400
+ "四",
401
+ "五",
402
+ "六"
403
+ ],
404
+ prevMonthLabel: "上个月",
405
+ nextMonthLabel: "下个月",
406
+ todayLabel: "今天",
407
+ monthFormat: "YYYY 年 M 月"
408
+ }
409
+ }, m = Symbol("ccui-config");
410
+ //#endregion
411
+ //#region ../ccui/ui/config-provider/src/config-provider.tsx
412
+ function h() {
413
+ return i(m, {
414
+ prefixCls: "ccui",
415
+ componentSize: "middle",
416
+ locale: p,
417
+ direction: "ltr",
418
+ theme: void 0,
419
+ iconPrefixCls: "ccui-icon"
420
+ });
421
+ }
422
+ //#endregion
423
+ //#region ../ccui/ui/form/src/form-types.ts
424
+ var g = Symbol("ccuiFormItem"), _ = {
425
+ modelValue: {
426
+ type: String,
427
+ default: void 0
428
+ },
429
+ defaultValue: {
430
+ type: String,
431
+ default: ""
432
+ },
433
+ options: {
434
+ type: Array,
435
+ default: () => []
436
+ },
437
+ prefix: {
438
+ type: [String, Array],
439
+ default: "@"
440
+ },
441
+ split: {
442
+ type: String,
443
+ default: " "
444
+ },
445
+ placeholder: {
446
+ type: String,
447
+ default: ""
448
+ },
449
+ disabled: {
450
+ type: Boolean,
451
+ default: !1
452
+ },
453
+ rows: {
454
+ type: Number,
455
+ default: 3
456
+ },
457
+ filterOption: {
458
+ type: [Boolean, Function],
459
+ default: !0
460
+ },
461
+ caseSensitive: {
462
+ type: Boolean,
463
+ default: !1
464
+ },
465
+ notFoundContent: {
466
+ type: String,
467
+ default: ""
468
+ },
469
+ placement: {
470
+ type: String,
471
+ default: "bottom"
472
+ },
473
+ popupMaxHeight: {
474
+ type: Number,
475
+ default: 256
476
+ },
477
+ autoSize: {
478
+ type: [Boolean, Object],
479
+ default: !1
480
+ },
481
+ searchDebounce: {
482
+ type: Number,
483
+ default: 0
484
+ },
485
+ variant: {
486
+ type: String,
487
+ default: "outlined"
488
+ },
489
+ status: {
490
+ type: String,
491
+ default: ""
492
+ },
493
+ classNames: {
494
+ type: Object,
495
+ default: void 0
496
+ },
497
+ styles: {
498
+ type: Object,
499
+ default: void 0
500
+ }
501
+ };
502
+ function v(e) {
503
+ return typeof e == "string" ? {
504
+ value: e,
505
+ label: e,
506
+ disabled: !1,
507
+ raw: {
508
+ value: e,
509
+ label: e
510
+ }
511
+ } : {
512
+ value: e.value,
513
+ label: e.label === void 0 ? e.value : String(e.label),
514
+ disabled: !!e.disabled,
515
+ raw: e
516
+ };
517
+ }
518
+ function y(e, t, n) {
519
+ let r = e.slice(0, t), i = null;
520
+ for (let e of n) {
521
+ let t = r.lastIndexOf(e);
522
+ if (t === -1) continue;
523
+ let n = r[t - 1];
524
+ if (t > 0 && n !== void 0 && !/\s/.test(n)) continue;
525
+ let a = r.slice(t + e.length);
526
+ if (/\s/.test(a)) continue;
527
+ let o = {
528
+ prefix: e,
529
+ search: a,
530
+ start: t
531
+ };
532
+ (!i || o.start > i.start) && (i = o);
533
+ }
534
+ return i;
535
+ }
536
+ //#endregion
537
+ //#region ../ccui/ui/mentions/src/mentions.tsx
538
+ var b = /* @__PURE__ */ n({
539
+ name: "CMentions",
540
+ props: _,
541
+ emits: [
542
+ "update:modelValue",
543
+ "change",
544
+ "select",
545
+ "search",
546
+ "focus",
547
+ "blur"
548
+ ],
549
+ setup(n, { emit: u, slots: d }) {
550
+ let p = f("mentions"), m = h(), _ = r()?.uid ?? 0, b = `ccui-mentions-popup-${_}`, x = (e) => `ccui-mentions-option-${_}-${e}`, S = e(() => n.notFoundContent || m.locale?.Mentions?.notFoundContent || "暂无数据"), C = c(null), w = c(null), T = l(!1), E = l(n.defaultValue ?? ""), D = l(0), O = l(null), k = i(g, null), A = e(() => k?.validateStatus.value ?? ""), j = e(() => n.status || A.value), M = e(() => n.modelValue !== void 0), N = e(() => (M.value ? n.modelValue : E.value) ?? ""), P = e(() => {
551
+ let e = n.prefix;
552
+ return Array.isArray(e) ? e : [e];
553
+ }), F = e(() => (n.options || []).map((e) => v(e))), I = e(() => {
554
+ let e = n.filterOption;
555
+ if (e === !1) return F.value;
556
+ let t = O.value?.search ?? "";
557
+ if (!t) return F.value;
558
+ if (typeof e == "function") return F.value.filter((n) => e(t, n.raw));
559
+ let r = n.caseSensitive ? t : t.toLowerCase();
560
+ return F.value.filter((e) => (n.caseSensitive ? e.label : e.label.toLowerCase()).includes(r));
561
+ }), L = null;
562
+ function R(e) {
563
+ M.value || (E.value = e), u("update:modelValue", e), u("change", e), k?.validate("change");
564
+ }
565
+ function z() {
566
+ let e = w.value;
567
+ if (!e || !n.autoSize) return;
568
+ e.style.height = "auto";
569
+ let t = Number.parseInt(getComputedStyle(e).lineHeight) || 20, r = typeof n.autoSize == "object" ? n.autoSize : {}, i = r.minRows ? r.minRows * t : 0, a = r.maxRows ? r.maxRows * t : Infinity, o = e.scrollHeight;
570
+ e.style.height = `${Math.min(Math.max(o, i), a)}px`, a < Infinity && (e.style.overflowY = o > a ? "auto" : "hidden");
571
+ }
572
+ function B() {
573
+ let e = w.value;
574
+ if (!e) return;
575
+ let t = e.selectionStart, r = y(N.value, t, P.value);
576
+ O.value = r, r ? (T.value || (T.value = !0, D.value = 0), n.searchDebounce > 0 ? (L && clearTimeout(L), L = setTimeout(() => u("search", r.search, r.prefix), n.searchDebounce)) : u("search", r.search, r.prefix)) : T.value &&= !1;
577
+ }
578
+ function V(e) {
579
+ let t = e.target.value;
580
+ R(t), a(() => {
581
+ B(), z();
582
+ });
583
+ }
584
+ function H() {
585
+ B();
586
+ }
587
+ function U() {
588
+ B();
589
+ }
590
+ function W(e) {
591
+ let t = w.value, r = O.value;
592
+ if (!t || !r || e.disabled) return;
593
+ let i = N.value.slice(0, r.start), o = N.value.slice(t.selectionStart), s = `${r.prefix}${e.value}${n.split}`;
594
+ R(`${i}${s}${o}`), u("select", e.raw, r.prefix), T.value = !1, O.value = null;
595
+ let c = i.length + s.length;
596
+ a(() => {
597
+ w.value && (w.value.focus(), w.value.setSelectionRange(c, c));
598
+ });
599
+ }
600
+ function G(e) {
601
+ if (n.disabled || !T.value) return;
602
+ let t = I.value, r = t.filter((e) => !e.disabled);
603
+ if (!(r.length === 0 && (e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Enter"))) if (e.key === "ArrowDown") {
604
+ e.preventDefault();
605
+ let n = r[(r.findIndex((e) => e === t[D.value]) + 1) % r.length];
606
+ D.value = t.indexOf(n);
607
+ } else if (e.key === "ArrowUp") {
608
+ e.preventDefault();
609
+ let n = r.findIndex((e) => e === t[D.value]), i = n <= 0 ? r[r.length - 1] : r[n - 1];
610
+ D.value = t.indexOf(i);
611
+ } else e.key === "Enter" || e.key === "Tab" ? t[D.value] && (e.preventDefault(), W(t[D.value])) : e.key === "Escape" && (e.preventDefault(), T.value = !1, O.value = null);
612
+ }
613
+ function K(e) {
614
+ u("focus", e);
615
+ }
616
+ function q(e) {
617
+ u("blur", e), k?.validate("blur");
618
+ }
619
+ function J(e) {
620
+ if (!T.value) return;
621
+ let t = e.target;
622
+ t && (C.value?.contains(t) || (T.value = !1));
623
+ }
624
+ o(() => {
625
+ document.addEventListener("mousedown", J, !0), z();
626
+ }), s(() => {
627
+ document.removeEventListener("mousedown", J, !0), L &&= (clearTimeout(L), null);
628
+ });
629
+ function Y(e, n) {
630
+ let r = [
631
+ p.e("option"),
632
+ n === D.value ? p.is("active") : "",
633
+ e.disabled ? p.is("disabled") : ""
634
+ ];
635
+ return t("li", {
636
+ key: `${e.value}-${n}`,
637
+ id: x(n),
638
+ class: r,
639
+ role: "option",
640
+ "aria-selected": n === D.value,
641
+ "aria-disabled": e.disabled,
642
+ onMousedown: (t) => {
643
+ t.preventDefault(), W(e);
644
+ },
645
+ onMouseenter: () => {
646
+ e.disabled || (D.value = n);
647
+ }
648
+ }, [d.option ? d.option({
649
+ option: e.raw,
650
+ index: n
651
+ }) : e.label]);
652
+ }
653
+ function X() {
654
+ if (!T.value) return null;
655
+ let e = I.value, r = { maxHeight: `${n.popupMaxHeight}px` };
656
+ return n.placement === "top" ? (r.bottom = "100%", r.marginBottom = "4px") : (r.top = "100%", r.marginTop = "4px"), t("div", {
657
+ id: b,
658
+ class: [p.e("panel"), n.classNames?.popup],
659
+ style: [r, n.styles?.popup],
660
+ role: "listbox"
661
+ }, [e.length === 0 ? t("div", { class: p.e("empty") }, [S.value]) : t("ul", { class: p.e("options") }, [e.map((e, t) => Y(e, t))])]);
662
+ }
663
+ return () => t("div", {
664
+ ref: C,
665
+ class: [
666
+ p.b(),
667
+ n.disabled ? p.is("disabled") : "",
668
+ n.variant ? p.m(`variant-${n.variant}`) : "",
669
+ j.value ? p.m(`status-${j.value}`) : "",
670
+ n.classNames?.root
671
+ ],
672
+ style: n.styles?.root
673
+ }, [t("textarea", {
674
+ ref: w,
675
+ class: [p.e("textarea"), n.classNames?.textarea],
676
+ style: n.styles?.textarea,
677
+ value: N.value,
678
+ rows: n.rows,
679
+ placeholder: n.placeholder,
680
+ disabled: n.disabled,
681
+ spellcheck: !1,
682
+ role: "combobox",
683
+ "aria-autocomplete": "list",
684
+ "aria-haspopup": "listbox",
685
+ "aria-expanded": T.value,
686
+ "aria-controls": b,
687
+ "aria-activedescendant": T.value && I.value[D.value] ? x(D.value) : void 0,
688
+ onInput: V,
689
+ onKeyup: H,
690
+ onKeydown: G,
691
+ onClick: U,
692
+ onFocus: K,
693
+ onBlur: q
694
+ }, null), X()]);
695
+ }
696
+ });
697
+ //#endregion
698
+ //#region ../ccui/ui/mentions/index.ts
699
+ b.install = function(e) {
700
+ e.component(b.name, b);
701
+ };
702
+ var x = {
703
+ title: "Mentions 提及",
704
+ category: "数据录入",
705
+ status: "80%",
706
+ install(e) {
707
+ e.component(b.name, b);
708
+ }
709
+ };
710
+ //#endregion
711
+ export { b as Mentions, x as default };