@robot-admin/naive-ui-components 0.11.8 → 0.13.0

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 (310) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +172 -29
  3. package/README_EN.md +171 -28
  4. package/SECURITY.md +1 -0
  5. package/dist/C_ActionBar.cjs +1 -1
  6. package/dist/C_ActionBar.css +67 -67
  7. package/dist/C_ActionBar.d.cts +2 -2
  8. package/dist/C_ActionBar.d.ts +2 -2
  9. package/dist/C_ActionBar.js +1 -1
  10. package/dist/C_ActionBar2.cjs +1 -1
  11. package/dist/C_ActionBar2.js +1 -1
  12. package/dist/C_AntV.css +70 -70
  13. package/dist/C_AntV2.cjs +3 -3
  14. package/dist/C_AntV2.js +3 -3
  15. package/dist/C_AudioPlayer.css +81 -66
  16. package/dist/C_AudioPlayer.d.cts +1 -1
  17. package/dist/C_AudioPlayer.d.ts +1 -1
  18. package/dist/C_AudioPlayer2.cjs +1 -1
  19. package/dist/C_AudioPlayer2.js +1 -1
  20. package/dist/C_AvatarGroup.css +40 -25
  21. package/dist/C_AvatarGroup.d.cts +1 -1
  22. package/dist/C_AvatarGroup.d.ts +1 -1
  23. package/dist/C_AvatarGroup2.cjs +1 -1
  24. package/dist/C_AvatarGroup2.js +1 -1
  25. package/dist/C_Barcode.css +6 -6
  26. package/dist/C_Barcode.d.cts +1 -1
  27. package/dist/C_Barcode.d.ts +1 -1
  28. package/dist/C_Barcode2.cjs +1 -1
  29. package/dist/C_Barcode2.js +1 -1
  30. package/dist/C_Breadcrumb.css +14 -14
  31. package/dist/C_Breadcrumb.d.cts +1 -1
  32. package/dist/C_Breadcrumb.d.ts +1 -1
  33. package/dist/C_Breadcrumb2.cjs +1 -1
  34. package/dist/C_Breadcrumb2.js +1 -1
  35. package/dist/C_Captcha.cjs +1 -1
  36. package/dist/C_Captcha.css +193 -51
  37. package/dist/C_Captcha.d.cts +2 -3
  38. package/dist/C_Captcha.d.ts +2 -3
  39. package/dist/C_Captcha.js +1 -1
  40. package/dist/C_Captcha2.cjs +1 -1
  41. package/dist/C_Captcha2.js +1 -1
  42. package/dist/C_Cascade.css +2 -2
  43. package/dist/C_Cascade.d.cts +1 -1
  44. package/dist/C_Cascade.d.ts +1 -1
  45. package/dist/C_Cascade2.cjs +1 -1
  46. package/dist/C_Cascade2.js +1 -1
  47. package/dist/C_Chat.css +96 -78
  48. package/dist/C_Chat.d.cts +1 -1
  49. package/dist/C_Chat.d.ts +1 -1
  50. package/dist/C_Chat2.cjs +1 -1
  51. package/dist/C_Chat2.js +1 -1
  52. package/dist/C_City.css +52 -28
  53. package/dist/C_City.d.cts +1 -1
  54. package/dist/C_City.d.ts +1 -1
  55. package/dist/C_City2.cjs +1 -1
  56. package/dist/C_City2.js +1 -1
  57. package/dist/C_Code.css +48 -42
  58. package/dist/C_Code.d.cts +1 -1
  59. package/dist/C_Code.d.ts +1 -1
  60. package/dist/C_Code2.cjs +1 -1
  61. package/dist/C_Code2.js +1 -1
  62. package/dist/C_CollapsePanel.css +14 -14
  63. package/dist/C_CollapsePanel2.cjs +1 -1
  64. package/dist/C_CollapsePanel2.js +1 -1
  65. package/dist/C_ContextMenu.css +14 -14
  66. package/dist/C_ContextMenu.d.cts +1 -1
  67. package/dist/C_ContextMenu.d.ts +1 -1
  68. package/dist/C_ContextMenu2.cjs +1 -1
  69. package/dist/C_ContextMenu2.js +1 -1
  70. package/dist/C_Cron.css +94 -55
  71. package/dist/C_Cron2.cjs +1 -1
  72. package/dist/C_Cron2.js +1 -1
  73. package/dist/C_Date.d.cts +1 -1
  74. package/dist/C_Date.d.ts +1 -1
  75. package/dist/C_Date2.cjs +1 -1
  76. package/dist/C_Date2.js +1 -1
  77. package/dist/C_Draggable.css +48 -48
  78. package/dist/C_Draggable2.cjs +1 -1
  79. package/dist/C_Draggable2.js +1 -1
  80. package/dist/C_Editor.css +13 -14
  81. package/dist/C_Editor.d.cts +1 -1
  82. package/dist/C_Editor.d.ts +1 -1
  83. package/dist/C_Editor2.cjs +1 -1
  84. package/dist/C_Editor2.js +1 -1
  85. package/dist/C_FilePreview.css +18 -18
  86. package/dist/C_FilePreview2.cjs +1 -1
  87. package/dist/C_FilePreview2.js +1 -1
  88. package/dist/C_Form.base.css +36 -36
  89. package/dist/C_Form.css +49 -50
  90. package/dist/C_Form2.cjs +1 -1
  91. package/dist/C_Form2.js +1 -1
  92. package/dist/C_FormModal.cjs +1 -0
  93. package/dist/C_FormModal.css +41 -0
  94. package/dist/C_FormModal.d.cts +2 -0
  95. package/dist/C_FormModal.d.ts +3 -0
  96. package/dist/C_FormModal.js +1 -0
  97. package/dist/C_FormModal2.cjs +1 -0
  98. package/dist/C_FormModal2.js +1 -0
  99. package/dist/C_FormSearch.css +45 -45
  100. package/dist/C_FormSearch2.cjs +1 -1
  101. package/dist/C_FormSearch2.js +1 -1
  102. package/dist/C_FormulaEditor.css +94 -55
  103. package/dist/C_FormulaEditor2.cjs +2 -2
  104. package/dist/C_FormulaEditor2.js +2 -2
  105. package/dist/C_FullCalendar.css +8 -1
  106. package/dist/C_FullCalendar2.cjs +1 -1
  107. package/dist/C_FullCalendar2.js +1 -1
  108. package/dist/C_GlobalSearch2.cjs +1 -1
  109. package/dist/C_GlobalSearch2.js +1 -1
  110. package/dist/C_Guide.css +14 -14
  111. package/dist/C_Guide2.cjs +1 -1
  112. package/dist/C_Guide2.js +1 -1
  113. package/dist/C_Icon.css +14 -14
  114. package/dist/C_Icon2.cjs +1 -1
  115. package/dist/C_Icon2.js +1 -1
  116. package/dist/C_ImageCropper.css +22 -22
  117. package/dist/C_ImageCropper2.cjs +1 -1
  118. package/dist/C_ImageCropper2.js +1 -1
  119. package/dist/C_Language.css +14 -14
  120. package/dist/C_Language2.cjs +1 -1
  121. package/dist/C_Language2.js +1 -1
  122. package/dist/C_Login.css +232 -149
  123. package/dist/C_Login2.cjs +1 -1
  124. package/dist/C_Login2.js +1 -1
  125. package/dist/C_Map.css +3 -3
  126. package/dist/C_Map2.cjs +1 -1
  127. package/dist/C_Map2.js +1 -1
  128. package/dist/C_Markdown.css +35 -35
  129. package/dist/C_Markdown2.cjs +1 -1
  130. package/dist/C_Markdown2.js +1 -1
  131. package/dist/C_Menu.d.cts +1 -1
  132. package/dist/C_Menu2.cjs +1 -1
  133. package/dist/C_Menu2.js +1 -1
  134. package/dist/C_NotificationCenter.css +30 -30
  135. package/dist/C_NotificationCenter2.cjs +1 -1
  136. package/dist/C_NotificationCenter2.js +1 -1
  137. package/dist/C_OrgChart.css +4 -0
  138. package/dist/C_OrgChart2.cjs +1 -1
  139. package/dist/C_OrgChart2.js +1 -1
  140. package/dist/C_Progress2.cjs +1 -1
  141. package/dist/C_Progress2.js +1 -1
  142. package/dist/C_QRCode.css +8 -8
  143. package/dist/C_QRCode2.cjs +1 -1
  144. package/dist/C_QRCode2.js +1 -1
  145. package/dist/C_Signature.css +14 -14
  146. package/dist/C_Signature2.cjs +1 -1
  147. package/dist/C_Signature2.js +1 -1
  148. package/dist/C_Skeleton2.cjs +1 -1
  149. package/dist/C_Skeleton2.js +1 -1
  150. package/dist/C_SplitPane.css +39 -39
  151. package/dist/C_SplitPane2.cjs +1 -1
  152. package/dist/C_SplitPane2.js +1 -1
  153. package/dist/C_Steps.css +48 -38
  154. package/dist/C_Steps2.cjs +1 -1
  155. package/dist/C_Steps2.js +1 -1
  156. package/dist/C_Table.base.css +160 -160
  157. package/dist/C_Table.cjs +1 -1
  158. package/dist/C_Table.css +173 -174
  159. package/dist/C_Table.d.ts +4 -3
  160. package/dist/C_Table.js +1 -1
  161. package/dist/C_Tabs.cjs +1 -0
  162. package/dist/C_Tabs.css +1 -0
  163. package/dist/C_Tabs.d.cts +2 -0
  164. package/dist/C_Tabs.d.ts +2 -0
  165. package/dist/C_Tabs.js +1 -0
  166. package/dist/C_TagsView.css +52 -52
  167. package/dist/C_TagsView2.cjs +1 -1
  168. package/dist/C_TagsView2.js +1 -1
  169. package/dist/C_Theme.css +14 -14
  170. package/dist/C_Theme2.cjs +1 -1
  171. package/dist/C_Theme2.js +1 -1
  172. package/dist/C_Time.css +4 -4
  173. package/dist/C_Time2.cjs +1 -1
  174. package/dist/C_Time2.js +1 -1
  175. package/dist/C_Timeline.css +76 -58
  176. package/dist/C_Timeline2.cjs +1 -1
  177. package/dist/C_Timeline2.js +1 -1
  178. package/dist/C_Transfer.css +51 -51
  179. package/dist/C_Transfer2.cjs +1 -1
  180. package/dist/C_Transfer2.js +1 -1
  181. package/dist/C_Tree.css +35 -32
  182. package/dist/C_Tree2.cjs +1 -1
  183. package/dist/C_Tree2.js +1 -1
  184. package/dist/C_Upload.css +53 -50
  185. package/dist/C_Upload2.cjs +1 -1
  186. package/dist/C_Upload2.js +1 -1
  187. package/dist/C_VideoPlayer.css +17 -13
  188. package/dist/C_VideoPlayer2.cjs +2 -2
  189. package/dist/C_VideoPlayer2.js +2 -2
  190. package/dist/C_VtableGantt.css +19 -19
  191. package/dist/C_VtableGantt2.cjs +1 -1
  192. package/dist/C_VtableGantt2.js +1 -1
  193. package/dist/C_WaterFall.css +19 -15
  194. package/dist/C_WaterFall2.cjs +1 -1
  195. package/dist/C_WaterFall2.js +1 -1
  196. package/dist/C_WorkFlow.css +123 -123
  197. package/dist/C_WorkFlow2.cjs +1 -1
  198. package/dist/C_WorkFlow2.js +1 -1
  199. package/dist/constants.d.cts +2 -2
  200. package/dist/constants.d.ts +2 -2
  201. package/dist/constants2.d.cts +3 -3
  202. package/dist/constants2.d.ts +3 -3
  203. package/dist/constants3.d.cts +8 -4
  204. package/dist/constants3.d.ts +8 -4
  205. package/dist/constants4.d.cts +6 -6
  206. package/dist/constants4.d.ts +6 -6
  207. package/dist/constants5.d.cts +2 -2
  208. package/dist/constants5.d.ts +2 -2
  209. package/dist/data.d.cts +108 -0
  210. package/dist/data.d.ts +108 -0
  211. package/dist/data2.cjs +1 -0
  212. package/dist/data2.js +1 -0
  213. package/dist/index.cjs +1 -1
  214. package/dist/index.d.cts +49 -49
  215. package/dist/index.d.ts +51 -49
  216. package/dist/index.js +1 -1
  217. package/dist/index.vue.d.cts +74 -69
  218. package/dist/index.vue.d.ts +74 -69
  219. package/dist/index10.vue.d.cts +80 -39
  220. package/dist/index10.vue.d.ts +68 -77
  221. package/dist/index11.vue.d.cts +68 -77
  222. package/dist/index11.vue.d.ts +54 -69
  223. package/dist/index12.vue.d.cts +54 -69
  224. package/dist/index12.vue.d.ts +52 -58
  225. package/dist/index13.vue.d.cts +52 -58
  226. package/dist/index13.vue.d.ts +1 -1
  227. package/dist/index14.vue.d.cts +1 -1
  228. package/dist/index14.vue.d.ts +14 -47
  229. package/dist/index15.vue.d.cts +14 -47
  230. package/dist/index16.vue.d.ts +15 -12
  231. package/dist/index17.vue.d.cts +15 -12
  232. package/dist/index17.vue.d.ts +4 -4
  233. package/dist/index18.vue.d.cts +4 -4
  234. package/dist/index18.vue.d.ts +2 -2
  235. package/dist/index19.vue.d.cts +1 -1
  236. package/dist/index19.vue.d.ts +1 -1
  237. package/dist/index2.vue.d.cts +70 -65
  238. package/dist/index2.vue.d.ts +70 -65
  239. package/dist/index20.vue.d.cts +1 -1
  240. package/dist/index20.vue.d.ts +1 -1
  241. package/dist/index24.vue.d.cts +3 -3
  242. package/dist/index24.vue.d.ts +3 -3
  243. package/dist/index25.vue.d.cts +1 -1
  244. package/dist/index25.vue.d.ts +1 -1
  245. package/dist/index26.vue.d.cts +5 -5
  246. package/dist/index26.vue.d.ts +5 -5
  247. package/dist/index27.vue.d.cts +1 -1
  248. package/dist/index27.vue.d.ts +1 -1
  249. package/dist/index3.vue.d.cts +30 -80
  250. package/dist/index3.vue.d.ts +30 -80
  251. package/dist/index4.vue.d.cts +130 -30
  252. package/dist/index4.vue.d.ts +22 -30
  253. package/dist/index5.vue.d.cts +18 -126
  254. package/dist/index5.vue.d.ts +22 -19
  255. package/dist/index6.vue.d.cts +22 -19
  256. package/dist/index6.vue.d.ts +117 -22
  257. package/dist/index7.vue.d.cts +117 -22
  258. package/dist/index7.vue.d.ts +17 -110
  259. package/dist/index8.vue.d.cts +17 -110
  260. package/dist/index8.vue.d.ts +37 -24
  261. package/dist/index9.vue.d.cts +37 -24
  262. package/dist/index9.vue.d.ts +80 -39
  263. package/dist/mapUtils.d.cts +2 -2
  264. package/dist/mapUtils.d.ts +2 -2
  265. package/dist/presets.d.cts +96 -0
  266. package/dist/presets.d.ts +96 -0
  267. package/dist/resolver.cjs +1 -1
  268. package/dist/resolver.d.cts +1 -1
  269. package/dist/resolver.d.ts +1 -1
  270. package/dist/resolver.js +1 -1
  271. package/dist/style.css +1735 -1400
  272. package/dist/useCalendarEvents.d.cts +23 -18
  273. package/dist/useCalendarEvents.d.ts +23 -18
  274. package/dist/useCollapsePanel.d.cts +4 -3
  275. package/dist/useCollapsePanel.d.ts +4 -3
  276. package/dist/useCropperCore.d.cts +32 -17
  277. package/dist/useCropperCore.d.ts +32 -17
  278. package/dist/useDraggableLayout.d.cts +2 -2
  279. package/dist/useDraggableLayout.d.ts +2 -2
  280. package/dist/useDynamicFormState.d.cts +7 -2
  281. package/dist/useDynamicFormState.d.ts +7 -2
  282. package/dist/useEdgeInteraction.d.cts +20 -19
  283. package/dist/useEdgeInteraction.d.ts +20 -19
  284. package/dist/useFullscreen.d.cts +6 -6
  285. package/dist/useFullscreen.d.ts +6 -6
  286. package/dist/useInfiniteScroll.d.cts +1 -1
  287. package/dist/useInfiniteScroll.d.ts +1 -1
  288. package/dist/useQRCode.d.cts +5 -4
  289. package/dist/useQRCode.d.ts +5 -4
  290. package/dist/useSearchState.d.cts +9 -9
  291. package/dist/useSearchState.d.ts +9 -9
  292. package/dist/useSignatureHistory.d.cts +18 -10
  293. package/dist/useSignatureHistory.d.ts +18 -10
  294. package/dist/useSplitResize.d.cts +7 -7
  295. package/dist/useSplitResize.d.ts +7 -7
  296. package/dist/useTableQuery.cjs +3 -3
  297. package/dist/useTableQuery.d.cts +12 -5
  298. package/dist/useTableQuery.d.ts +12 -5
  299. package/dist/useTableQuery.js +3 -3
  300. package/dist/useTimeSelection.d.cts +6 -3
  301. package/dist/useTimeSelection.d.ts +6 -3
  302. package/dist/useTreeOperations.d.cts +8 -8
  303. package/dist/useTreeOperations.d.ts +8 -8
  304. package/dist/useWorkflowValidation.d.cts +6 -4
  305. package/dist/useWorkflowValidation.d.ts +6 -4
  306. package/dist/verification.d.cts +71 -6
  307. package/dist/verification.d.ts +71 -6
  308. package/package.json +5 -3
  309. package/dist/types.d.ts +0 -58
  310. package/dist/types2.d.cts +0 -58
@@ -1,82 +1,87 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_AudioPlayer/types.d.ts
3
+ //#region src/components/C_AvatarGroup/types.d.ts
4
4
  /**
5
- * @Description: Audio player component type definitions
6
- * Copyright (c) 2026 by CHENY, All Rights Reserved.
5
+ * @Description: 头像组组件类型定义
6
+ * Copyright (c) 2026 by CHENY, All Rights Reserved 😎.
7
7
  */
8
- /** Single audio track */
9
- interface AudioTrack {
10
- /** Unique identifier */
8
+ /** 单个头像数据 */
9
+ interface AvatarItem {
10
+ /** 唯一标识 */
11
11
  id: string | number;
12
- /** Track title */
13
- title: string;
14
- /** Artist / author */
15
- artist?: string;
16
- /** Audio source URL */
17
- src: string;
18
- /** Cover image URL */
19
- cover?: string;
20
- /** Duration in seconds (optional, for static display) */
21
- duration?: number;
22
- /** Extra data */
12
+ /** 头像图片 URL */
13
+ src?: string;
14
+ /** 姓名(用于首字母 fallback 和 tooltip) */
15
+ name: string;
16
+ /** 悬浮提示(默认取 name) */
17
+ tooltip?: string;
18
+ /** 在线状态 */
19
+ status?: 'online' | 'offline' | 'busy' | 'away';
20
+ /** 额外数据 */
23
21
  extra?: Record<string, unknown>;
24
22
  }
25
- /** Component props */
26
- interface AudioPlayerProps {
27
- /** Playlist */
28
- tracks: AudioTrack[];
29
- /** Initial active index */
30
- initialIndex?: number;
31
- /** Whether to show the playlist panel */
32
- showPlaylist?: boolean;
33
- /** Whether to show the cover art */
34
- showCover?: boolean;
35
- /** Whether to auto-play on mount */
36
- autoplay?: boolean;
37
- /** Playback mode */
38
- mode?: 'list' | 'loop' | 'single' | 'shuffle';
39
- /** Theme appearance */
40
- theme?: 'default' | 'minimal';
23
+ /** 组件 Props */
24
+ interface AvatarGroupProps {
25
+ /** 头像数据列表 */
26
+ items: AvatarItem[];
27
+ /** 最多显示数量(超出 +N) */
28
+ max?: number;
29
+ /** 头像尺寸 (px) */
30
+ size?: number;
31
+ /** 头像间重叠偏移量 (px),负值表示堆叠 */
32
+ overlap?: number;
33
+ /** 形状 */
34
+ shape?: 'circle' | 'square';
35
+ /** 是否显示状态指示点 */
36
+ showStatus?: boolean;
37
+ /** 是否显示悬浮提示 */
38
+ showTooltip?: boolean;
39
+ /** 是否可点击 */
40
+ clickable?: boolean;
41
+ /** +N 溢出按钮是否可点击 */
42
+ overflowClickable?: boolean;
43
+ /** 堆叠方向 */
44
+ direction?: 'ltr' | 'rtl';
41
45
  }
42
- /** Default props */
43
- declare const DEFAULT_AUDIO_PLAYER_PROPS: Partial<AudioPlayerProps>;
44
- /** Playback mode icon map */
45
- declare const MODE_ICON_MAP: Record<string, {
46
- icon: string;
47
- label: string;
48
- }>;
49
- /** Format seconds to mm:ss */
50
- declare function formatTime(seconds: number): string;
46
+ /** 默认 Props */
47
+ declare const DEFAULT_AVATAR_GROUP_PROPS: Partial<AvatarGroupProps>;
48
+ /** 状态颜色映射 */
49
+ declare const STATUS_COLOR_MAP: Record<string, string>;
50
+ /** 从名字中提取首字母 */
51
+ declare function getInitials(name: string): string;
52
+ /** 根据名字生成稳定的背景色 */
53
+ declare function nameToColor(name: string): string;
51
54
  //#endregion
52
- //#region src/components/C_AudioPlayer/index.vue.d.ts
55
+ //#region src/components/C_AvatarGroup/index.vue.d.ts
53
56
  type __VLS_Props = {
54
- tracks: AudioPlayerProps['tracks'];
55
- initialIndex?: number;
56
- showPlaylist?: boolean;
57
- showCover?: boolean;
58
- autoplay?: boolean;
59
- mode?: AudioPlayerProps['mode'];
60
- theme?: AudioPlayerProps['theme'];
57
+ items: AvatarGroupProps['items'];
58
+ max?: number;
59
+ size?: number;
60
+ overlap?: number;
61
+ shape?: AvatarGroupProps['shape'];
62
+ showStatus?: boolean;
63
+ showTooltip?: boolean;
64
+ clickable?: boolean;
65
+ overflowClickable?: boolean;
66
+ direction?: AvatarGroupProps['direction'];
61
67
  };
62
68
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
63
- ended: (index: number) => any;
64
- play: (index: number) => any;
65
- pause: () => any;
66
- modeChange: (mode: string) => any;
69
+ itemClick: (item: AvatarItem) => any;
70
+ overflowClick: (hiddenItems: AvatarItem[]) => any;
67
71
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
68
- onEnded?: ((index: number) => any) | undefined;
69
- onPlay?: ((index: number) => any) | undefined;
70
- onPause?: (() => any) | undefined;
71
- onModeChange?: ((mode: string) => any) | undefined;
72
+ onItemClick?: ((item: AvatarItem) => any) | undefined;
73
+ onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
72
74
  }>, {
73
- theme: "default" | "minimal";
74
- mode: "list" | "loop" | "single" | "shuffle";
75
- autoplay: boolean;
76
- initialIndex: number;
77
- showPlaylist: boolean;
78
- showCover: boolean;
75
+ size: number;
76
+ max: number;
77
+ overlap: number;
78
+ shape: "circle" | "square";
79
+ showStatus: boolean;
80
+ showTooltip: boolean;
81
+ clickable: boolean;
82
+ overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
79
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
85
  declare const _default: typeof __VLS_export;
81
86
  //#endregion
82
- export { MODE_ICON_MAP as a, DEFAULT_AUDIO_PLAYER_PROPS as i, AudioPlayerProps as n, formatTime as o, AudioTrack as r, _default as t };
87
+ export { STATUS_COLOR_MAP as a, DEFAULT_AVATAR_GROUP_PROPS as i, AvatarGroupProps as n, getInitials as o, AvatarItem as r, nameToColor as s, _default as t };
@@ -1,82 +1,87 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_AudioPlayer/types.d.ts
3
+ //#region src/components/C_AvatarGroup/types.d.ts
4
4
  /**
5
- * @Description: Audio player component type definitions
6
- * Copyright (c) 2026 by CHENY, All Rights Reserved.
5
+ * @Description: 头像组组件类型定义
6
+ * Copyright (c) 2026 by CHENY, All Rights Reserved 😎.
7
7
  */
8
- /** Single audio track */
9
- interface AudioTrack {
10
- /** Unique identifier */
8
+ /** 单个头像数据 */
9
+ interface AvatarItem {
10
+ /** 唯一标识 */
11
11
  id: string | number;
12
- /** Track title */
13
- title: string;
14
- /** Artist / author */
15
- artist?: string;
16
- /** Audio source URL */
17
- src: string;
18
- /** Cover image URL */
19
- cover?: string;
20
- /** Duration in seconds (optional, for static display) */
21
- duration?: number;
22
- /** Extra data */
12
+ /** 头像图片 URL */
13
+ src?: string;
14
+ /** 姓名(用于首字母 fallback 和 tooltip) */
15
+ name: string;
16
+ /** 悬浮提示(默认取 name) */
17
+ tooltip?: string;
18
+ /** 在线状态 */
19
+ status?: 'online' | 'offline' | 'busy' | 'away';
20
+ /** 额外数据 */
23
21
  extra?: Record<string, unknown>;
24
22
  }
25
- /** Component props */
26
- interface AudioPlayerProps {
27
- /** Playlist */
28
- tracks: AudioTrack[];
29
- /** Initial active index */
30
- initialIndex?: number;
31
- /** Whether to show the playlist panel */
32
- showPlaylist?: boolean;
33
- /** Whether to show the cover art */
34
- showCover?: boolean;
35
- /** Whether to auto-play on mount */
36
- autoplay?: boolean;
37
- /** Playback mode */
38
- mode?: 'list' | 'loop' | 'single' | 'shuffle';
39
- /** Theme appearance */
40
- theme?: 'default' | 'minimal';
23
+ /** 组件 Props */
24
+ interface AvatarGroupProps {
25
+ /** 头像数据列表 */
26
+ items: AvatarItem[];
27
+ /** 最多显示数量(超出 +N) */
28
+ max?: number;
29
+ /** 头像尺寸 (px) */
30
+ size?: number;
31
+ /** 头像间重叠偏移量 (px),负值表示堆叠 */
32
+ overlap?: number;
33
+ /** 形状 */
34
+ shape?: 'circle' | 'square';
35
+ /** 是否显示状态指示点 */
36
+ showStatus?: boolean;
37
+ /** 是否显示悬浮提示 */
38
+ showTooltip?: boolean;
39
+ /** 是否可点击 */
40
+ clickable?: boolean;
41
+ /** +N 溢出按钮是否可点击 */
42
+ overflowClickable?: boolean;
43
+ /** 堆叠方向 */
44
+ direction?: 'ltr' | 'rtl';
41
45
  }
42
- /** Default props */
43
- declare const DEFAULT_AUDIO_PLAYER_PROPS: Partial<AudioPlayerProps>;
44
- /** Playback mode icon map */
45
- declare const MODE_ICON_MAP: Record<string, {
46
- icon: string;
47
- label: string;
48
- }>;
49
- /** Format seconds to mm:ss */
50
- declare function formatTime(seconds: number): string;
46
+ /** 默认 Props */
47
+ declare const DEFAULT_AVATAR_GROUP_PROPS: Partial<AvatarGroupProps>;
48
+ /** 状态颜色映射 */
49
+ declare const STATUS_COLOR_MAP: Record<string, string>;
50
+ /** 从名字中提取首字母 */
51
+ declare function getInitials(name: string): string;
52
+ /** 根据名字生成稳定的背景色 */
53
+ declare function nameToColor(name: string): string;
51
54
  //#endregion
52
- //#region src/components/C_AudioPlayer/index.vue.d.ts
55
+ //#region src/components/C_AvatarGroup/index.vue.d.ts
53
56
  type __VLS_Props = {
54
- tracks: AudioPlayerProps['tracks'];
55
- initialIndex?: number;
56
- showPlaylist?: boolean;
57
- showCover?: boolean;
58
- autoplay?: boolean;
59
- mode?: AudioPlayerProps['mode'];
60
- theme?: AudioPlayerProps['theme'];
57
+ items: AvatarGroupProps['items'];
58
+ max?: number;
59
+ size?: number;
60
+ overlap?: number;
61
+ shape?: AvatarGroupProps['shape'];
62
+ showStatus?: boolean;
63
+ showTooltip?: boolean;
64
+ clickable?: boolean;
65
+ overflowClickable?: boolean;
66
+ direction?: AvatarGroupProps['direction'];
61
67
  };
62
68
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
63
- ended: (index: number) => any;
64
- play: (index: number) => any;
65
- pause: () => any;
66
- modeChange: (mode: string) => any;
69
+ itemClick: (item: AvatarItem) => any;
70
+ overflowClick: (hiddenItems: AvatarItem[]) => any;
67
71
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
68
- onEnded?: ((index: number) => any) | undefined;
69
- onPlay?: ((index: number) => any) | undefined;
70
- onPause?: (() => any) | undefined;
71
- onModeChange?: ((mode: string) => any) | undefined;
72
+ onItemClick?: ((item: AvatarItem) => any) | undefined;
73
+ onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
72
74
  }>, {
73
- theme: "default" | "minimal";
74
- mode: "list" | "loop" | "single" | "shuffle";
75
- autoplay: boolean;
76
- initialIndex: number;
77
- showPlaylist: boolean;
78
- showCover: boolean;
75
+ size: number;
76
+ max: number;
77
+ overlap: number;
78
+ shape: "circle" | "square";
79
+ showStatus: boolean;
80
+ showTooltip: boolean;
81
+ clickable: boolean;
82
+ overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
79
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
85
  declare const _default: typeof __VLS_export;
81
86
  //#endregion
82
- export { MODE_ICON_MAP as a, DEFAULT_AUDIO_PLAYER_PROPS as i, AudioPlayerProps as n, formatTime as o, AudioTrack as r, _default as t };
87
+ export { STATUS_COLOR_MAP as a, DEFAULT_AVATAR_GROUP_PROPS as i, AvatarGroupProps as n, getInitials as o, AvatarItem as r, nameToColor as s, _default as t };
@@ -35,9 +35,9 @@ type __VLS_Slots = {} & {
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
37
  status: "default" | "success" | "error" | "warning" | "info";
38
+ time: number;
38
39
  percentage: number | number[];
39
40
  isAnimation: boolean;
40
- time: number;
41
41
  indicatorPlacement: "inside" | "outside";
42
42
  showIndicator: boolean;
43
43
  strokeWidth: number;
@@ -35,9 +35,9 @@ type __VLS_Slots = {} & {
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
37
  status: "default" | "success" | "error" | "warning" | "info";
38
+ time: number;
38
39
  percentage: number | number[];
39
40
  isAnimation: boolean;
40
- time: number;
41
41
  indicatorPlacement: "inside" | "outside";
42
42
  showIndicator: boolean;
43
43
  strokeWidth: number;
@@ -647,12 +647,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- height: string | number;
651
650
  theme: "light" | "dark";
652
- options: GanttOptions;
653
- title: string;
654
651
  data: GanttTask[];
652
+ height: string | number;
653
+ title: string;
655
654
  showToolbar: boolean;
655
+ options: GanttOptions;
656
656
  preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -647,12 +647,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- height: string | number;
651
650
  theme: "light" | "dark";
652
- options: GanttOptions;
653
- title: string;
654
651
  data: GanttTask[];
652
+ height: string | number;
653
+ title: string;
655
654
  showToolbar: boolean;
655
+ options: GanttOptions;
656
656
  preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
85
85
  onClose?: ((fallbackPath: string) => any) | undefined;
86
86
  onCloseAll?: (() => any) | undefined;
87
87
  }>, {
88
- persistKey: string;
89
88
  homePath: string;
90
89
  homeTitle: string;
91
90
  homeIcon: string;
91
+ persistKey: string;
92
92
  contextMenuLabels: LegacyContextMenuLabels;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const _default: typeof __VLS_export;
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
85
85
  onClose?: ((fallbackPath: string) => any) | undefined;
86
86
  onCloseAll?: (() => any) | undefined;
87
87
  }>, {
88
- persistKey: string;
89
88
  homePath: string;
90
89
  homeTitle: string;
91
90
  homeIcon: string;
91
+ persistKey: string;
92
92
  contextMenuLabels: LegacyContextMenuLabels;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const _default: typeof __VLS_export;
@@ -84,17 +84,17 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- expand: (item: TimelineItem, expanded: boolean) => any;
88
87
  "item-click": (item: TimelineItem, index: number) => any;
88
+ expand: (item: TimelineItem, expanded: boolean) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
- reverse: boolean;
94
- items: TimelineItem[];
95
- size: "small" | "medium" | "large";
96
93
  mode: "vertical" | "horizontal";
94
+ reverse: boolean;
97
95
  pending: boolean;
96
+ size: "small" | "medium" | "large";
97
+ items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
@@ -84,17 +84,17 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- expand: (item: TimelineItem, expanded: boolean) => any;
88
87
  "item-click": (item: TimelineItem, index: number) => any;
88
+ expand: (item: TimelineItem, expanded: boolean) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
- reverse: boolean;
94
- items: TimelineItem[];
95
- size: "small" | "medium" | "large";
96
93
  mode: "vertical" | "horizontal";
94
+ reverse: boolean;
97
95
  pending: boolean;
96
+ size: "small" | "medium" | "large";
97
+ items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
@@ -67,7 +67,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
67
67
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
68
  onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
- size: "small" | "medium" | "large";
70
+ size: "medium" | "small" | "large";
71
71
  filterable: boolean;
72
72
  titles: [string, string];
73
73
  filterPlaceholder: string;
@@ -67,7 +67,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
67
67
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
68
  onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
- size: "small" | "medium" | "large";
70
+ size: "medium" | "small" | "large";
71
71
  filterable: boolean;
72
72
  titles: [string, string];
73
73
  filterPlaceholder: string;
@@ -1,87 +1,37 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_AvatarGroup/types.d.ts
4
- /**
5
- * @Description: 头像组组件类型定义
6
- * Copyright (c) 2026 by CHENY, All Rights Reserved 😎.
7
- */
8
- /** 单个头像数据 */
9
- interface AvatarItem {
10
- /** 唯一标识 */
11
- id: string | number;
12
- /** 头像图片 URL */
13
- src?: string;
14
- /** 姓名(用于首字母 fallback 和 tooltip) */
15
- name: string;
16
- /** 悬浮提示(默认取 name) */
17
- tooltip?: string;
18
- /** 在线状态 */
19
- status?: 'online' | 'offline' | 'busy' | 'away';
20
- /** 额外数据 */
21
- extra?: Record<string, unknown>;
3
+ //#region src/components/C_Barcode/index.vue.d.ts
4
+ interface Props {
5
+ value: string;
6
+ format?: 'CODE128' | 'CODE39' | 'EAN13' | 'EAN8' | 'UPC' | 'ITF14' | 'MSI' | 'pharmacode';
7
+ width?: number;
8
+ height?: number;
9
+ showText?: boolean;
10
+ fontSize?: number;
11
+ textPosition?: 'bottom' | 'top';
12
+ lineColor?: string;
13
+ background?: string;
14
+ showBorder?: boolean;
15
+ label?: string;
16
+ showLabel?: boolean;
22
17
  }
23
- /** 组件 Props */
24
- interface AvatarGroupProps {
25
- /** 头像数据列表 */
26
- items: AvatarItem[];
27
- /** 最多显示数量(超出 +N) */
28
- max?: number;
29
- /** 头像尺寸 (px) */
30
- size?: number;
31
- /** 头像间重叠偏移量 (px),负值表示堆叠 */
32
- overlap?: number;
33
- /** 形状 */
34
- shape?: 'circle' | 'square';
35
- /** 是否显示状态指示点 */
36
- showStatus?: boolean;
37
- /** 是否显示悬浮提示 */
38
- showTooltip?: boolean;
39
- /** 是否可点击 */
40
- clickable?: boolean;
41
- /** +N 溢出按钮是否可点击 */
42
- overflowClickable?: boolean;
43
- /** 堆叠方向 */
44
- direction?: 'ltr' | 'rtl';
45
- }
46
- /** 默认 Props */
47
- declare const DEFAULT_AVATAR_GROUP_PROPS: Partial<AvatarGroupProps>;
48
- /** 状态颜色映射 */
49
- declare const STATUS_COLOR_MAP: Record<string, string>;
50
- /** 从名字中提取首字母 */
51
- declare function getInitials(name: string): string;
52
- /** 根据名字生成稳定的背景色 */
53
- declare function nameToColor(name: string): string;
54
- //#endregion
55
- //#region src/components/C_AvatarGroup/index.vue.d.ts
56
- type __VLS_Props = {
57
- items: AvatarGroupProps['items'];
58
- max?: number;
59
- size?: number;
60
- overlap?: number;
61
- shape?: AvatarGroupProps['shape'];
62
- showStatus?: boolean;
63
- showTooltip?: boolean;
64
- clickable?: boolean;
65
- overflowClickable?: boolean;
66
- direction?: AvatarGroupProps['direction'];
67
- };
68
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
69
- itemClick: (item: AvatarItem) => any;
70
- overflowClick: (hiddenItems: AvatarItem[]) => any;
71
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
72
- onItemClick?: ((item: AvatarItem) => any) | undefined;
73
- onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
18
+ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
19
+ error: (error: Error) => any;
20
+ }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
+ onError?: ((error: Error) => any) | undefined;
74
22
  }>, {
75
- size: number;
76
- overlap: number;
77
- max: number;
78
- shape: "circle" | "square";
79
- showStatus: boolean;
80
- showTooltip: boolean;
81
- clickable: boolean;
82
- overflowClickable: boolean;
83
- direction: "ltr" | "rtl";
23
+ width: number;
24
+ height: number;
25
+ label: string;
26
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
+ showText: boolean;
28
+ fontSize: number;
29
+ textPosition: "bottom" | "top";
30
+ lineColor: string;
31
+ background: string;
32
+ showBorder: boolean;
33
+ showLabel: boolean;
84
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
35
  declare const _default: typeof __VLS_export;
86
36
  //#endregion
87
- export { STATUS_COLOR_MAP as a, DEFAULT_AVATAR_GROUP_PROPS as i, AvatarGroupProps as n, getInitials as o, AvatarItem as r, nameToColor as s, _default as t };
37
+ export { _default as t };