@robot-admin/naive-ui-components 0.19.0 → 0.21.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 (185) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +5 -5
  3. package/README_EN.md +5 -5
  4. package/SECURITY.md +39 -0
  5. package/dist/C_AntV.css +31 -31
  6. package/dist/C_AntV2.cjs +1 -1
  7. package/dist/C_AntV2.js +1 -1
  8. package/dist/C_Breadcrumb.css +308 -20
  9. package/dist/C_Breadcrumb.d.cts +2 -2
  10. package/dist/C_Breadcrumb.d.ts +2 -2
  11. package/dist/C_Breadcrumb2.cjs +1 -1
  12. package/dist/C_Breadcrumb2.js +1 -1
  13. package/dist/C_Chat.css +90 -90
  14. package/dist/C_Chat2.cjs +1 -1
  15. package/dist/C_Chat2.js +1 -1
  16. package/dist/C_CollapsePanel2.cjs +1 -1
  17. package/dist/C_CollapsePanel2.js +1 -1
  18. package/dist/C_Draggable.css +53 -53
  19. package/dist/C_Draggable2.cjs +1 -1
  20. package/dist/C_Draggable2.js +1 -1
  21. package/dist/C_FilePreview.css +98 -98
  22. package/dist/C_FilePreview.d.cts +2 -2
  23. package/dist/C_FilePreview.d.ts +2 -2
  24. package/dist/C_FilePreview2.cjs +1 -1
  25. package/dist/C_FilePreview2.js +1 -1
  26. package/dist/C_Form.base.css +9 -9
  27. package/dist/C_Form.css +9 -9
  28. package/dist/C_FormSearch.css +52 -52
  29. package/dist/C_FormSearch2.cjs +1 -1
  30. package/dist/C_FormSearch2.js +1 -1
  31. package/dist/C_Language.css +2 -2
  32. package/dist/C_Language2.cjs +1 -1
  33. package/dist/C_Language2.js +1 -1
  34. package/dist/C_Login.css +79 -79
  35. package/dist/C_Login2.cjs +1 -1
  36. package/dist/C_Login2.js +1 -1
  37. package/dist/C_Menu.css +1 -1
  38. package/dist/C_Menu.d.cts +2 -2
  39. package/dist/C_Menu.d.ts +2 -2
  40. package/dist/C_Menu2.cjs +1 -1
  41. package/dist/C_Menu2.js +1 -1
  42. package/dist/C_NotificationCenter.css +124 -124
  43. package/dist/C_NotificationCenter.d.cts +2 -2
  44. package/dist/C_NotificationCenter.d.ts +2 -2
  45. package/dist/C_NotificationCenter2.cjs +1 -1
  46. package/dist/C_NotificationCenter2.js +1 -1
  47. package/dist/C_Skeleton.css +2 -2
  48. package/dist/C_Skeleton2.cjs +1 -1
  49. package/dist/C_Skeleton2.js +1 -1
  50. package/dist/C_SplitPane.css +66 -66
  51. package/dist/C_SplitPane2.cjs +1 -1
  52. package/dist/C_SplitPane2.js +1 -1
  53. package/dist/C_Table.base.css +9 -9
  54. package/dist/C_Table.css +9 -9
  55. package/dist/C_Table.d.ts +1 -0
  56. package/dist/C_Theme2.cjs +1 -1
  57. package/dist/C_Theme2.js +1 -1
  58. package/dist/C_Timeline.css +46 -46
  59. package/dist/C_Timeline2.cjs +1 -1
  60. package/dist/C_Timeline2.js +1 -1
  61. package/dist/C_Transfer.css +26 -26
  62. package/dist/C_Transfer2.cjs +1 -1
  63. package/dist/C_Transfer2.js +1 -1
  64. package/dist/C_Tree.css +23 -23
  65. package/dist/C_Tree.d.ts +1 -0
  66. package/dist/C_Tree2.cjs +1 -1
  67. package/dist/C_Tree2.js +1 -1
  68. package/dist/C_Upload2.cjs +1 -1
  69. package/dist/C_Upload2.js +1 -1
  70. package/dist/C_VideoPlayer.d.cts +2 -2
  71. package/dist/C_VideoPlayer.d.ts +2 -2
  72. package/dist/C_VideoPlayer2.cjs +2 -2
  73. package/dist/C_VideoPlayer2.js +2 -2
  74. package/dist/C_WaterFall.css +31 -29
  75. package/dist/C_WaterFall2.cjs +1 -1
  76. package/dist/C_WaterFall2.js +1 -1
  77. package/dist/C_WorkFlow.css +111 -111
  78. package/dist/C_WorkFlow2.cjs +1 -1
  79. package/dist/C_WorkFlow2.js +1 -1
  80. package/dist/config.cjs +1 -0
  81. package/dist/config.d.cts +8 -0
  82. package/dist/config.d.ts +8 -0
  83. package/dist/config.js +1 -0
  84. package/dist/constants3.d.cts +34 -11
  85. package/dist/constants3.d.ts +34 -11
  86. package/dist/constants4.d.cts +14 -3
  87. package/dist/constants4.d.ts +14 -3
  88. package/dist/constants5.d.cts +24 -20
  89. package/dist/constants5.d.ts +24 -20
  90. package/dist/data.d.cts +6 -6
  91. package/dist/data.d.ts +6 -6
  92. package/dist/dateRange.d.cts +2 -0
  93. package/dist/dateRange.d.ts +2 -0
  94. package/dist/feedback.cjs +1 -1
  95. package/dist/feedback.js +1 -1
  96. package/dist/helpers.cjs +1 -1
  97. package/dist/helpers.js +1 -1
  98. package/dist/index.cjs +1 -1
  99. package/dist/index.d.cts +8 -7
  100. package/dist/index.d.ts +9 -7
  101. package/dist/index.js +1 -1
  102. package/dist/index.vue.d.cts +4 -4
  103. package/dist/index.vue.d.ts +4 -4
  104. package/dist/index10.vue.d.cts +5 -5
  105. package/dist/index10.vue.d.ts +3 -3
  106. package/dist/index11.vue.d.cts +3 -3
  107. package/dist/index12.vue.d.ts +2 -2
  108. package/dist/index13.vue.d.cts +2 -2
  109. package/dist/index13.vue.d.ts +6 -6
  110. package/dist/index14.vue.d.cts +6 -6
  111. package/dist/index14.vue.d.ts +0 -1
  112. package/dist/index15.vue.d.cts +0 -1
  113. package/dist/index16.vue.d.ts +2 -2
  114. package/dist/index17.vue.d.cts +2 -2
  115. package/dist/index17.vue.d.ts +1 -1
  116. package/dist/index18.vue.d.cts +1 -1
  117. package/dist/index18.vue.d.ts +44 -40
  118. package/dist/index19.vue.d.cts +2 -2
  119. package/dist/index19.vue.d.ts +2 -2
  120. package/dist/index2.vue.d.cts +1 -1
  121. package/dist/index2.vue.d.ts +1 -1
  122. package/dist/index20.vue.d.cts +1 -1
  123. package/dist/index20.vue.d.ts +1 -1
  124. package/dist/index21.vue.d.cts +1 -1
  125. package/dist/index21.vue.d.ts +1 -1
  126. package/dist/index22.vue.d.cts +2 -2
  127. package/dist/index22.vue.d.ts +2 -2
  128. package/dist/index25.vue.d.cts +2 -3
  129. package/dist/index25.vue.d.ts +2 -3
  130. package/dist/index26.vue.d.cts +3 -3
  131. package/dist/index26.vue.d.ts +3 -3
  132. package/dist/index3.vue.d.cts +4 -4
  133. package/dist/index3.vue.d.ts +4 -4
  134. package/dist/index4.vue.d.cts +44 -40
  135. package/dist/index4.vue.d.ts +26 -12
  136. package/dist/index5.vue.d.cts +26 -12
  137. package/dist/index6.vue.d.ts +0 -2
  138. package/dist/index7.vue.d.cts +0 -2
  139. package/dist/index8.vue.d.ts +4 -4
  140. package/dist/index9.vue.d.cts +4 -4
  141. package/dist/index9.vue.d.ts +5 -5
  142. package/dist/mapUtils.d.cts +3 -3
  143. package/dist/mapUtils.d.ts +3 -3
  144. package/dist/presets.d.cts +1 -1
  145. package/dist/presets.d.ts +1 -1
  146. package/dist/public.d.ts +3 -1
  147. package/dist/style.css +1154 -864
  148. package/dist/types.d.cts +3 -1
  149. package/dist/useCalendarEvents.d.cts +1 -1
  150. package/dist/useCalendarEvents.d.ts +1 -1
  151. package/dist/useCollapsePanel.d.cts +3 -3
  152. package/dist/useCollapsePanel.d.ts +3 -3
  153. package/dist/useComponentLocale.cjs +1 -1
  154. package/dist/useComponentLocale.js +1 -1
  155. package/dist/useCropperCore.d.cts +4 -4
  156. package/dist/useCropperCore.d.ts +4 -4
  157. package/dist/useDraggableLayout.d.cts +1 -0
  158. package/dist/useDraggableLayout.d.ts +1 -0
  159. package/dist/useEdgeInteraction.d.cts +2 -2
  160. package/dist/useEdgeInteraction.d.ts +2 -2
  161. package/dist/useFullscreen.d.cts +41 -23
  162. package/dist/useFullscreen.d.ts +41 -23
  163. package/dist/useInfiniteScroll.d.cts +6 -4
  164. package/dist/useInfiniteScroll.d.ts +6 -4
  165. package/dist/useQRCode.d.cts +4 -4
  166. package/dist/useQRCode.d.ts +4 -4
  167. package/dist/useSignatureHistory.d.cts +2 -2
  168. package/dist/useSignatureHistory.d.ts +2 -2
  169. package/dist/useSplitResize.d.cts +6 -7
  170. package/dist/useSplitResize.d.ts +6 -7
  171. package/dist/useTableQuery.cjs +1 -1
  172. package/dist/useTableQuery.d.cts +6 -10
  173. package/dist/useTableQuery.d.ts +6 -10
  174. package/dist/useTableQuery.js +1 -1
  175. package/dist/useWorkflowValidation.d.cts +11 -3
  176. package/dist/useWorkflowValidation.d.ts +11 -3
  177. package/dist/verification.d.cts +1 -1
  178. package/dist/verification.d.ts +1 -1
  179. package/docs/architecture.en.md +3 -1
  180. package/docs/architecture.md +3 -1
  181. package/docs/guides/usage.en.md +22 -0
  182. package/docs/guides/usage.md +73 -0
  183. package/package.json +27 -10
  184. package/dist/context.cjs +0 -1
  185. package/dist/context.js +0 -1
@@ -81,10 +81,10 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
83
  direction: OrgChartDirection;
84
- lineColor: string;
85
- lineWidth: number;
86
84
  collapsible: boolean;
87
85
  lineStyle: OrgChartLineStyle;
86
+ lineColor: string;
87
+ lineWidth: number;
88
88
  nodeSpacing: number;
89
89
  levelSpacing: number;
90
90
  zoomable: boolean;
@@ -81,10 +81,10 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
83
  direction: OrgChartDirection;
84
- lineColor: string;
85
- lineWidth: number;
86
84
  collapsible: boolean;
87
85
  lineStyle: OrgChartLineStyle;
86
+ lineColor: string;
87
+ lineWidth: number;
88
88
  nodeSpacing: number;
89
89
  levelSpacing: number;
90
90
  zoomable: boolean;
@@ -73,9 +73,9 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
+ max: number;
76
77
  direction: "ltr" | "rtl";
77
78
  clickable: boolean;
78
- max: number;
79
79
  overlap: number;
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
@@ -73,9 +73,9 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
+ max: number;
76
77
  direction: "ltr" | "rtl";
77
78
  clickable: boolean;
78
- max: number;
79
79
  overlap: number;
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
37
  status: "default" | "success" | "error" | "warning" | "info";
39
38
  strokeWidth: number;
39
+ time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
37
  status: "default" | "success" | "error" | "warning" | "info";
39
38
  strokeWidth: number;
39
+ time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -86,8 +86,8 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
89
  repeat: number;
90
+ loading: boolean;
91
91
  preset: SkeletonPreset;
92
92
  animation: SkeletonAnimation;
93
93
  borderRadius: string;
@@ -86,8 +86,8 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
89
  repeat: number;
90
+ loading: boolean;
91
91
  preset: SkeletonPreset;
92
92
  animation: SkeletonAnimation;
93
93
  borderRadius: string;
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
- connected: boolean;
39
- current: number;
40
38
  direction: "horizontal" | "vertical";
39
+ current: number;
41
40
  clickable: boolean;
41
+ connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
- connected: boolean;
39
- current: number;
40
38
  direction: "horizontal" | "vertical";
39
+ current: number;
41
40
  clickable: boolean;
41
+ connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -90,13 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
91
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
- reverse: boolean;
93
+ items: TimelineItem[];
94
94
  size: "small" | "medium" | "large";
95
+ reverse: boolean;
95
96
  pending: boolean;
96
97
  mode: "vertical" | "horizontal";
97
- items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
- pendingText: string;
100
99
  lineType: "solid" | "dashed" | "dotted";
101
100
  showTime: boolean;
102
101
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -90,13 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
91
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
- reverse: boolean;
93
+ items: TimelineItem[];
94
94
  size: "small" | "medium" | "large";
95
+ reverse: boolean;
95
96
  pending: boolean;
96
97
  mode: "vertical" | "horizontal";
97
- items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
- pendingText: string;
100
99
  lineType: "solid" | "dashed" | "dotted";
101
100
  showTime: boolean;
102
101
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -28,7 +28,7 @@ interface TransferProps<T extends TransferItem = TransferItem> {
28
28
  /** 右侧已选 key 列表 (v-model) */
29
29
  modelValue: readonly NoInfer<T['key']>[];
30
30
  /** 左右栏标题 */
31
- titles?: [string, string];
31
+ titles?: readonly [string, string];
32
32
  /** 是否可搜索 */
33
33
  filterable?: boolean;
34
34
  /** 搜索占位符 */
@@ -58,14 +58,14 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
58
58
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
59
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
60
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
- onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
62
62
  }> & (typeof globalThis extends {
63
63
  __VLS_PROPS_FALLBACK: infer P;
64
64
  } ? P : {});
65
65
  expose: (exposed: {}) => void;
66
66
  attrs: any;
67
67
  slots: {};
68
- emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void);
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
69
69
  }>) => vue.VNode & {
70
70
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
71
71
  };
@@ -28,7 +28,7 @@ interface TransferProps<T extends TransferItem = TransferItem> {
28
28
  /** 右侧已选 key 列表 (v-model) */
29
29
  modelValue: readonly NoInfer<T['key']>[];
30
30
  /** 左右栏标题 */
31
- titles?: [string, string];
31
+ titles?: readonly [string, string];
32
32
  /** 是否可搜索 */
33
33
  filterable?: boolean;
34
34
  /** 搜索占位符 */
@@ -58,14 +58,14 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
58
58
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
59
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
60
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
- onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
62
62
  }> & (typeof globalThis extends {
63
63
  __VLS_PROPS_FALLBACK: infer P;
64
64
  } ? P : {});
65
65
  expose: (exposed: {}) => void;
66
66
  attrs: any;
67
67
  slots: {};
68
- emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void);
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
69
69
  }>) => vue.VNode & {
70
70
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
71
71
  };
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
+ fontSize: number;
24
+ label: string;
23
25
  width: number;
24
26
  height: number;
25
- label: string;
26
- fontSize: number;
27
+ showBorder: boolean;
27
28
  lineColor: string;
28
29
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
+ showLabel: boolean;
29
31
  showText: boolean;
30
32
  textPosition: "bottom" | "top";
31
33
  background: string;
32
- showBorder: boolean;
33
- showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
+ fontSize: number;
24
+ label: string;
23
25
  width: number;
24
26
  height: number;
25
- label: string;
26
- fontSize: number;
27
+ showBorder: boolean;
27
28
  lineColor: string;
28
29
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
+ showLabel: boolean;
29
31
  showText: boolean;
30
32
  textPosition: "bottom" | "top";
31
33
  background: string;
32
- showBorder: boolean;
33
- showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -1,7 +1,6 @@
1
1
  import { n as RouteItem } from "./types.cjs";
2
2
  import * as vue from "vue";
3
3
  import { Ref, VNode } from "vue";
4
- import * as naive_ui0 from "naive-ui";
5
4
  import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
6
5
 
7
6
  //#region src/components/_shared/menuAdapter.d.ts
@@ -63,17 +62,27 @@ declare function createMenuOptions(routes: RouteItem[], config?: MenuAdapterConf
63
62
  declare function flattenRoutes(routes: RouteItem[], filter?: (route: RouteItem) => boolean): RouteItem[];
64
63
  //#endregion
65
64
  //#region src/components/C_Menu/types.d.ts
66
- type MenuValue = string | null;
67
- interface MenuProps {
68
- options?: MenuOption[];
65
+ type MenuKey = string | number;
66
+ type MenuValue = MenuKey | null;
67
+ type OwnMenuKey<Option> = Option extends {
68
+ key?: infer Key;
69
+ } ? Extract<Key, MenuKey> : never;
70
+ /** 已遇到的递归业务类型或原生完整键类型均停止展开,内联配置包含子节点。 */
71
+ type MenuOptionKeys<Option, Seen = never> = Option extends Seen ? OwnMenuKey<Option> : MenuKey extends OwnMenuKey<Option> ? MenuKey : OwnMenuKey<Option> | (Option extends {
72
+ children?: infer Children;
73
+ } ? Children extends readonly unknown[] ? MenuOptionKeys<Children[number], Seen | Option> : never : never);
74
+ type WidenMenuKey<Key> = Key extends string ? string : Key extends number ? number : never;
75
+ type MenuSelectionKey<O extends MenuOption[] | undefined> = O extends MenuOption[] ? [MenuOptionKeys<O[number]>] extends [never] ? MenuKey : WidenMenuKey<MenuOptionKeys<O[number]>> : string;
76
+ interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
77
+ options?: O;
69
78
  routes?: RouteItem[];
70
79
  adapterConfig?: MenuAdapterConfig;
71
80
  labelFormatter?: (label: string) => string;
72
81
  /** @deprecated Use modelValue. */
73
82
  value?: MenuValue;
74
83
  modelValue?: MenuValue;
75
- expandedKeys?: string[];
76
- defaultExpandedKeys?: string[];
84
+ expandedKeys?: MenuKey[];
85
+ defaultExpandedKeys?: MenuKey[];
77
86
  mode?: 'vertical' | 'horizontal';
78
87
  collapsed?: boolean;
79
88
  collapsedWidth?: number;
@@ -84,48 +93,43 @@ interface MenuProps {
84
93
  rootIndent?: number;
85
94
  dropdownProps?: DropdownProps;
86
95
  }
87
- interface MenuEmits {
88
- select: [key: string];
96
+ interface MenuEmits<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
97
+ select: [key: MenuSelectionKey<O>];
89
98
  /** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
90
- intent: [key: string];
91
- 'update:modelValue': [key: MenuValue];
99
+ intent: [key: MenuSelectionKey<O>];
100
+ 'update:modelValue': [key: MenuSelectionKey<O> | null];
92
101
  /** @deprecated Use update:modelValue. */
93
- 'update:value': [key: MenuValue];
94
- 'update:expandedKeys': [keys: string[]];
102
+ 'update:value': [key: MenuSelectionKey<O> | null];
103
+ 'update:expandedKeys': [keys: MenuSelectionKey<O>[]];
95
104
  }
96
105
  interface MenuExpose {
97
- showOption: (key: string) => void;
106
+ showOption: (key: MenuKey) => void;
98
107
  /** Vue 公开实例会解包顶层 Ref。 */
99
108
  menuRef: MenuInst | null;
100
109
  }
101
110
  //#endregion
102
111
  //#region src/components/C_Menu/index.vue.d.ts
103
- declare const __VLS_export: vue.DefineComponent<MenuProps, {
104
- showOption: (key: string) => void | undefined;
105
- menuRef: Ref<MenuInst | null, MenuInst | null>;
106
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
107
- "update:modelValue": (key: MenuValue) => any;
108
- select: (key: string) => any;
109
- intent: (key: string) => any;
110
- "update:value": (key: MenuValue) => any;
111
- "update:expandedKeys": (keys: string[]) => any;
112
- }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
113
- "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
114
- onSelect?: ((key: string) => any) | undefined;
115
- onIntent?: ((key: string) => any) | undefined;
116
- "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
117
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
118
- }>, {
119
- mode: "vertical" | "horizontal";
120
- defaultExpandedKeys: string[];
121
- collapsed: boolean;
122
- collapsedWidth: number;
123
- collapsedIconSize: number;
124
- inverted: boolean;
125
- indent: number;
126
- rootIndent: number;
127
- dropdownProps: naive_ui0.DropdownProps;
128
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
112
+ declare const __VLS_export: <Options extends MenuOption[] | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
113
+ props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps<Options> & {
114
+ "onUpdate:modelValue"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
115
+ onSelect?: ((key: MenuSelectionKey<Options>) => any) | undefined;
116
+ onIntent?: ((key: MenuSelectionKey<Options>) => any) | undefined;
117
+ "onUpdate:value"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
118
+ "onUpdate:expandedKeys"?: ((keys: MenuSelectionKey<Options>[]) => any) | undefined;
119
+ }> & (typeof globalThis extends {
120
+ __VLS_PROPS_FALLBACK: infer P;
121
+ } ? P : {});
122
+ expose: (exposed: vue.ShallowUnwrapRef<{
123
+ showOption: (key: MenuKey) => void | undefined;
124
+ menuRef: Ref<MenuInst | null, MenuInst | null>;
125
+ }>) => void;
126
+ attrs: any;
127
+ slots: {};
128
+ emit: ((evt: "update:modelValue", key: MenuSelectionKey<Options> | null) => void) & ((evt: "select", key: MenuSelectionKey<Options>) => void) & ((evt: "intent", key: MenuSelectionKey<Options>) => void) & ((evt: "update:value", key: MenuSelectionKey<Options> | null) => void) & ((evt: "update:expandedKeys", keys: MenuSelectionKey<Options>[]) => void);
129
+ }>) => vue.VNode & {
130
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
131
+ };
129
132
  declare const _default: typeof __VLS_export;
133
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
130
134
  //#endregion
131
- export { MenuValue as a, flattenRoutes as c, MenuProps as i, MenuEmits as n, MenuAdapterConfig as o, MenuExpose as r, createMenuOptions as s, _default as t };
135
+ export { MenuProps as a, createMenuOptions as c, MenuKey as i, flattenRoutes as l, MenuEmits as n, MenuValue as o, MenuExpose as r, MenuAdapterConfig as s, _default as t };
@@ -1,19 +1,33 @@
1
1
  import { i as BreadcrumbItem } from "./public.js";
2
2
  import * as vue from "vue";
3
3
 
4
+ //#region src/components/C_Breadcrumb/types.d.ts
5
+ interface BreadcrumbRouteMeta {
6
+ [key: string]: unknown;
7
+ title?: unknown;
8
+ icon?: unknown;
9
+ hidden?: unknown;
10
+ breadcrumb?: unknown;
11
+ }
12
+ /** 可直接接收应用提供的授权菜单,非字符串图标由组件安全忽略。 */
13
+ interface BreadcrumbMenuItem {
14
+ path?: string;
15
+ key?: string | number;
16
+ name?: string | symbol | null;
17
+ label?: string;
18
+ icon?: unknown;
19
+ meta?: BreadcrumbRouteMeta;
20
+ children?: readonly BreadcrumbMenuItem[];
21
+ disabled?: boolean;
22
+ type?: string;
23
+ }
24
+ //#endregion
4
25
  //#region src/components/C_Breadcrumb/index.vue.d.ts
5
26
  type __VLS_Props = {
6
- /**
7
- * 手动传入面包屑数据
8
- * 不传时自动从 `route.matched` 生成(零配置)
9
- */
10
- items?: BreadcrumbItem[]; /** 是否显示图标 */
11
- showIcon?: boolean; /** 图标大小 (px),默认 16 */
12
- iconSize?: number;
13
- /**
14
- * 标签文本格式化函数(用于 i18n)
15
- * 仅在自动模式下生效
16
- */
27
+ /** 手动路径,标签沿用传入值。 */items?: readonly BreadcrumbItem[]; /** 授权后的菜单树;提供时(含空数组)作为目录的唯一数据来源。 */
28
+ menus?: readonly BreadcrumbMenuItem[];
29
+ showIcon?: boolean;
30
+ iconSize?: number; /** 自动路径和菜单标签的翻译函数。 */
17
31
  labelFormatter?: (label: string) => string;
18
32
  };
19
33
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -26,4 +40,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
40
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
41
  declare const _default: typeof __VLS_export;
28
42
  //#endregion
29
- export { _default as t };
43
+ export { BreadcrumbMenuItem as n, _default as t };
@@ -1,19 +1,33 @@
1
1
  import { t as BreadcrumbItem } from "./types.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
+ //#region src/components/C_Breadcrumb/types.d.ts
5
+ interface BreadcrumbRouteMeta {
6
+ [key: string]: unknown;
7
+ title?: unknown;
8
+ icon?: unknown;
9
+ hidden?: unknown;
10
+ breadcrumb?: unknown;
11
+ }
12
+ /** 可直接接收应用提供的授权菜单,非字符串图标由组件安全忽略。 */
13
+ interface BreadcrumbMenuItem {
14
+ path?: string;
15
+ key?: string | number;
16
+ name?: string | symbol | null;
17
+ label?: string;
18
+ icon?: unknown;
19
+ meta?: BreadcrumbRouteMeta;
20
+ children?: readonly BreadcrumbMenuItem[];
21
+ disabled?: boolean;
22
+ type?: string;
23
+ }
24
+ //#endregion
4
25
  //#region src/components/C_Breadcrumb/index.vue.d.ts
5
26
  type __VLS_Props = {
6
- /**
7
- * 手动传入面包屑数据
8
- * 不传时自动从 `route.matched` 生成(零配置)
9
- */
10
- items?: BreadcrumbItem[]; /** 是否显示图标 */
11
- showIcon?: boolean; /** 图标大小 (px),默认 16 */
12
- iconSize?: number;
13
- /**
14
- * 标签文本格式化函数(用于 i18n)
15
- * 仅在自动模式下生效
16
- */
27
+ /** 手动路径,标签沿用传入值。 */items?: readonly BreadcrumbItem[]; /** 授权后的菜单树;提供时(含空数组)作为目录的唯一数据来源。 */
28
+ menus?: readonly BreadcrumbMenuItem[];
29
+ showIcon?: boolean;
30
+ iconSize?: number; /** 自动路径和菜单标签的翻译函数。 */
17
31
  labelFormatter?: (label: string) => string;
18
32
  };
19
33
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -26,4 +40,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
40
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
41
  declare const _default: typeof __VLS_export;
28
42
  //#endregion
29
- export { _default as t };
43
+ export { BreadcrumbMenuItem as n, _default as t };
@@ -107,8 +107,6 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
109
  virtualScroll: boolean;
110
- title: string;
111
- placeholder: string;
112
110
  showContacts: boolean;
113
111
  showTimestamp: boolean;
114
112
  showSendBtn: boolean;
@@ -107,8 +107,6 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
109
  virtualScroll: boolean;
110
- title: string;
111
- placeholder: string;
112
110
  showContacts: boolean;
113
111
  showTimestamp: boolean;
114
112
  showSendBtn: boolean;
@@ -23,18 +23,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
- fullscreen: (isFullscreen: boolean) => any;
27
26
  click: (event: MouseEvent) => any;
28
27
  copy: (code: string) => any;
28
+ fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
31
30
  onClick?: ((event: MouseEvent) => any) | undefined;
32
31
  onCopy?: ((code: string) => any) | undefined;
32
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
- language: string;
35
- showHeader: boolean;
36
34
  trim: boolean;
37
35
  code: string;
36
+ language: string;
37
+ showHeader: boolean;
38
38
  showLineNumbers: boolean;
39
39
  wordWrap: boolean;
40
40
  showFullscreen: boolean;
@@ -23,18 +23,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
- fullscreen: (isFullscreen: boolean) => any;
27
26
  click: (event: MouseEvent) => any;
28
27
  copy: (code: string) => any;
28
+ fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
31
30
  onClick?: ((event: MouseEvent) => any) | undefined;
32
31
  onCopy?: ((code: string) => any) | undefined;
32
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
- language: string;
35
- showHeader: boolean;
36
34
  trim: boolean;
37
35
  code: string;
36
+ language: string;
37
+ showHeader: boolean;
38
38
  showLineNumbers: boolean;
39
39
  wordWrap: boolean;
40
40
  showFullscreen: boolean;
@@ -61,24 +61,24 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
61
61
  close: () => void; /** 当前是否可见 */
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
- select: (item: ContextMenuItem) => any;
64
+ close: () => any;
65
65
  open: (position: {
66
66
  x: number;
67
67
  y: number;
68
68
  }) => any;
69
- close: () => any;
69
+ select: (item: ContextMenuItem) => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
- onSelect?: ((item: ContextMenuItem) => any) | undefined;
71
+ onClose?: (() => any) | undefined;
72
72
  onOpen?: ((position: {
73
73
  x: number;
74
74
  y: number;
75
75
  }) => any) | undefined;
76
- onClose?: (() => any) | undefined;
76
+ onSelect?: ((item: ContextMenuItem) => any) | undefined;
77
77
  }>, {
78
+ items: ContextMenuItem[];
78
79
  disabled: boolean;
79
80
  minWidth: number;
80
81
  maxWidth: number;
81
- items: ContextMenuItem[];
82
82
  subMenuPlacement: "right" | "left";
83
83
  autoClose: boolean;
84
84
  zIndex: number;
@@ -83,16 +83,16 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- ready: (map: MapInstance) => any;
87
86
  error: (error: Error) => any;
87
+ ready: (map: MapInstance) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onReady?: ((map: MapInstance) => any) | undefined;
91
90
  onError?: ((error: Error) => any) | undefined;
91
+ onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
- height: string;
95
94
  center: MapCoordinate;
95
+ height: string;
96
96
  ariaLabel: string;
97
97
  zoom: number;
98
98
  mapType: MapType;
@@ -83,16 +83,16 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- ready: (map: MapInstance) => any;
87
86
  error: (error: Error) => any;
87
+ ready: (map: MapInstance) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onReady?: ((map: MapInstance) => any) | undefined;
91
90
  onError?: ((error: Error) => any) | undefined;
91
+ onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
- height: string;
95
94
  center: MapCoordinate;
95
+ height: string;
96
96
  ariaLabel: string;
97
97
  zoom: number;
98
98
  mapType: MapType;
@@ -78,10 +78,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
78
78
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
79
79
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
80
80
  }>, {
81
+ config: ActionBarConfig;
81
82
  actions: ActionItem[];
82
83
  leftActions: ActionItem[];
83
84
  rightActions: ActionItem[];
84
- config: ActionBarConfig;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
87
87
  declare const _default: typeof __VLS_export;