@robot-admin/naive-ui-components 0.31.5 → 0.33.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 (285) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +11 -5
  3. package/README_EN.md +11 -5
  4. package/dist/C_AutoComplete.cjs +1 -0
  5. package/dist/C_AutoComplete.css +36 -0
  6. package/dist/C_AutoComplete.d.cts +4 -0
  7. package/dist/C_AutoComplete.d.ts +4 -0
  8. package/dist/C_AutoComplete.js +1 -0
  9. package/dist/C_AutoComplete2.cjs +1 -0
  10. package/dist/C_AutoComplete2.js +1 -0
  11. package/dist/C_AvatarGroup.d.cts +1 -1
  12. package/dist/C_AvatarGroup.d.ts +1 -1
  13. package/dist/C_Barcode.d.cts +1 -1
  14. package/dist/C_Barcode.d.ts +1 -1
  15. package/dist/C_BatchResult.d.cts +1 -1
  16. package/dist/C_BatchResult.d.ts +1 -1
  17. package/dist/C_Breadcrumb.d.cts +2 -2
  18. package/dist/C_Breadcrumb.d.ts +1 -1
  19. package/dist/C_Cascade.d.cts +1 -1
  20. package/dist/C_Cascade.d.ts +1 -1
  21. package/dist/C_Chat.d.cts +1 -1
  22. package/dist/C_Chat.d.ts +1 -1
  23. package/dist/C_City.d.cts +1 -1
  24. package/dist/C_City.d.ts +1 -1
  25. package/dist/C_Code.d.cts +1 -1
  26. package/dist/C_Code.d.ts +1 -1
  27. package/dist/C_ContextMenu.d.cts +1 -1
  28. package/dist/C_ContextMenu.d.ts +1 -1
  29. package/dist/C_DataPicker.css +235 -31
  30. package/dist/C_DataPicker.d.cts +2 -2
  31. package/dist/C_DataPicker.d.ts +2 -2
  32. package/dist/C_Date.d.cts +1 -1
  33. package/dist/C_Date.d.ts +1 -1
  34. package/dist/C_Density.d.cts +1 -1
  35. package/dist/C_Density.d.ts +1 -1
  36. package/dist/C_Editor.d.cts +1 -1
  37. package/dist/C_Editor.d.ts +1 -1
  38. package/dist/C_ErrorSummary.d.cts +1 -1
  39. package/dist/C_ErrorSummary.d.ts +1 -1
  40. package/dist/C_Form.base.css +68 -1
  41. package/dist/C_Form.cjs +1 -1
  42. package/dist/C_Form.css +68 -1
  43. package/dist/C_Form.d.cts +3 -3
  44. package/dist/C_Form.d.ts +5 -3
  45. package/dist/C_Form.js +1 -1
  46. package/dist/C_FormModal.cjs +1 -1
  47. package/dist/C_FormModal.d.cts +1 -1
  48. package/dist/C_FormModal.d.ts +3 -1
  49. package/dist/C_FormModal.js +1 -1
  50. package/dist/C_FormModal2.cjs +1 -1
  51. package/dist/C_FormModal2.js +1 -1
  52. package/dist/C_FormSearch.css +160 -72
  53. package/dist/C_FormSearch.d.cts +3 -3
  54. package/dist/C_FormSearch.d.ts +3 -3
  55. package/dist/C_GlobalSearch2.cjs +1 -1
  56. package/dist/C_GlobalSearch2.js +1 -1
  57. package/dist/C_Guide.d.cts +1 -1
  58. package/dist/C_Guide.d.ts +1 -1
  59. package/dist/C_Icon.d.cts +1 -1
  60. package/dist/C_Icon.d.ts +1 -1
  61. package/dist/C_Language.d.cts +1 -1
  62. package/dist/C_Language.d.ts +1 -1
  63. package/dist/C_Loading.d.cts +1 -1
  64. package/dist/C_Loading.d.ts +1 -1
  65. package/dist/C_Login.d.cts +1 -1
  66. package/dist/C_Login.d.ts +1 -1
  67. package/dist/C_Markdown.d.cts +1 -1
  68. package/dist/C_Markdown.d.ts +1 -1
  69. package/dist/C_Menu.d.cts +2 -2
  70. package/dist/C_Menu.d.ts +1 -1
  71. package/dist/C_OrgChart.d.cts +1 -1
  72. package/dist/C_OrgChart.d.ts +1 -1
  73. package/dist/C_Progress.d.cts +1 -1
  74. package/dist/C_Progress.d.ts +1 -1
  75. package/dist/C_SectionNav.d.cts +1 -1
  76. package/dist/C_SectionNav.d.ts +1 -1
  77. package/dist/C_Select.css +32 -1
  78. package/dist/C_Select.d.cts +4 -2
  79. package/dist/C_Select.d.ts +4 -2
  80. package/dist/C_Select2.cjs +1 -1
  81. package/dist/C_Select2.js +1 -1
  82. package/dist/C_Skeleton.d.cts +1 -1
  83. package/dist/C_Skeleton.d.ts +1 -1
  84. package/dist/C_Steps.d.cts +1 -1
  85. package/dist/C_Steps.d.ts +1 -1
  86. package/dist/C_Table.base.css +214 -147
  87. package/dist/C_Table.cjs +1 -1
  88. package/dist/C_Table.css +146 -146
  89. package/dist/C_Table.d.cts +3 -3
  90. package/dist/C_Table.d.ts +13 -10
  91. package/dist/C_Table.js +1 -1
  92. package/dist/C_Table2.cjs +4 -3
  93. package/dist/C_Table2.js +4 -3
  94. package/dist/C_TagsView.css +51 -51
  95. package/dist/C_TagsView.d.cts +2 -2
  96. package/dist/C_TagsView.d.ts +1 -1
  97. package/dist/C_TagsView2.cjs +1 -1
  98. package/dist/C_TagsView2.js +1 -1
  99. package/dist/C_Theme.d.cts +1 -1
  100. package/dist/C_Theme.d.ts +1 -1
  101. package/dist/C_Timeline.d.cts +1 -1
  102. package/dist/C_Timeline.d.ts +1 -1
  103. package/dist/C_Transfer.d.cts +1 -1
  104. package/dist/C_Transfer.d.ts +1 -1
  105. package/dist/C_Tree.cjs +1 -1
  106. package/dist/C_Tree.css +60 -23
  107. package/dist/C_Tree.d.cts +2 -2
  108. package/dist/C_Tree.d.ts +12 -9
  109. package/dist/C_Tree.js +1 -1
  110. package/dist/C_Tree2.cjs +1 -1
  111. package/dist/C_Tree2.js +1 -1
  112. package/dist/OptionStatus.cjs +1 -0
  113. package/dist/OptionStatus.js +1 -0
  114. package/dist/SearchFieldSettings.cjs +1 -0
  115. package/dist/SearchFieldSettings.js +1 -0
  116. package/dist/constants4.d.cts +9 -9
  117. package/dist/constants4.d.ts +9 -9
  118. package/dist/constants5.d.cts +2 -2
  119. package/dist/constants5.d.ts +2 -2
  120. package/dist/data.d.cts +2 -1
  121. package/dist/data.d.ts +2 -1
  122. package/dist/data2.d.cts +7 -7
  123. package/dist/data2.d.ts +7 -7
  124. package/dist/dateRange.d.cts +52 -7
  125. package/dist/dateRange.d.ts +52 -7
  126. package/dist/editors.cjs +1 -0
  127. package/dist/{useTableQuery.d.cts → editors.d.cts} +120 -13
  128. package/dist/{useTableQuery.d.ts → editors.d.ts} +120 -13
  129. package/dist/editors.js +1 -0
  130. package/dist/fieldRenderers.cjs +1 -0
  131. package/dist/fieldRenderers.js +1 -0
  132. package/dist/formField.cjs +1 -1
  133. package/dist/formField.d.cts +79 -29
  134. package/dist/formField.d.ts +79 -29
  135. package/dist/formField.js +1 -1
  136. package/dist/helpers.cjs +1 -1
  137. package/dist/helpers.js +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.cts +63 -59
  140. package/dist/index.d.ts +63 -58
  141. package/dist/index.js +1 -1
  142. package/dist/index.vue.d.cts +5 -5
  143. package/dist/index.vue.d.ts +5 -5
  144. package/dist/index10.vue.d.cts +27 -35
  145. package/dist/index10.vue.d.ts +37 -80
  146. package/dist/index11.vue.d.cts +37 -80
  147. package/dist/index11.vue.d.ts +83 -16
  148. package/dist/index12.vue.d.cts +83 -16
  149. package/dist/index12.vue.d.ts +16 -59
  150. package/dist/index13.vue.d.cts +16 -59
  151. package/dist/index13.vue.d.ts +57 -17
  152. package/dist/index14.vue.d.cts +57 -17
  153. package/dist/index14.vue.d.ts +18 -55
  154. package/dist/index15.vue.d.cts +18 -55
  155. package/dist/index15.vue.d.ts +53 -124
  156. package/dist/index16.vue.d.cts +53 -124
  157. package/dist/index16.vue.d.ts +123 -51
  158. package/dist/index17.vue.d.cts +123 -51
  159. package/dist/index17.vue.d.ts +52 -25
  160. package/dist/index18.vue.d.cts +52 -25
  161. package/dist/index18.vue.d.ts +25 -12
  162. package/dist/index19.vue.d.cts +25 -12
  163. package/dist/index19.vue.d.ts +13 -129
  164. package/dist/index2.vue.d.cts +26 -82
  165. package/dist/index2.vue.d.ts +26 -82
  166. package/dist/index20.vue.d.cts +13 -129
  167. package/dist/index20.vue.d.ts +129 -76
  168. package/dist/index21.vue.d.cts +129 -76
  169. package/dist/index21.vue.d.ts +78 -72
  170. package/dist/index22.vue.d.cts +75 -97
  171. package/dist/index22.vue.d.ts +68 -96
  172. package/dist/index23.vue.d.cts +91 -40
  173. package/dist/index23.vue.d.ts +91 -40
  174. package/dist/index24.vue.d.cts +49 -23
  175. package/dist/index24.vue.d.ts +49 -23
  176. package/dist/index25.vue.d.cts +19 -46
  177. package/dist/index25.vue.d.ts +19 -46
  178. package/dist/index26.vue.d.cts +25 -98
  179. package/dist/index26.vue.d.ts +25 -98
  180. package/dist/index27.vue.d.cts +95 -37
  181. package/dist/index27.vue.d.ts +95 -37
  182. package/dist/index28.vue.d.cts +34 -8
  183. package/dist/index28.vue.d.ts +34 -8
  184. package/dist/index29.vue.d.cts +9 -86
  185. package/dist/index29.vue.d.ts +9 -86
  186. package/dist/index3.vue.d.cts +80 -30
  187. package/dist/index3.vue.d.ts +80 -30
  188. package/dist/index30.vue.d.cts +85 -99
  189. package/dist/index30.vue.d.ts +85 -99
  190. package/dist/index31.vue.d.cts +94 -63
  191. package/dist/index31.vue.d.ts +94 -63
  192. package/dist/index32.vue.d.cts +79 -0
  193. package/dist/index32.vue.d.ts +79 -0
  194. package/dist/index4.vue.d.cts +30 -19
  195. package/dist/index4.vue.d.ts +30 -19
  196. package/dist/index5.vue.d.cts +19 -128
  197. package/dist/index5.vue.d.ts +17 -34
  198. package/dist/index6.vue.d.cts +127 -35
  199. package/dist/index6.vue.d.ts +30 -22
  200. package/dist/index7.vue.d.cts +30 -22
  201. package/dist/index7.vue.d.ts +25 -118
  202. package/dist/index8.vue.d.cts +25 -118
  203. package/dist/index8.vue.d.ts +112 -21
  204. package/dist/index9.vue.d.cts +112 -21
  205. package/dist/index9.vue.d.ts +27 -35
  206. package/dist/mapUtils.d.cts +3 -3
  207. package/dist/mapUtils.d.ts +3 -3
  208. package/dist/optionSource.d.cts +30 -0
  209. package/dist/optionSource.d.ts +30 -0
  210. package/dist/public.d.ts +2 -0
  211. package/dist/resolver.cjs +1 -1
  212. package/dist/resolver.d.cts +1 -1
  213. package/dist/resolver.d.ts +1 -1
  214. package/dist/resolver.js +1 -1
  215. package/dist/selectPresentation.cjs +1 -1
  216. package/dist/selectPresentation.js +1 -1
  217. package/dist/serializeSearch.cjs +1 -1
  218. package/dist/serializeSearch.js +1 -1
  219. package/dist/sourceControls.cjs +1 -0
  220. package/dist/sourceControls.js +1 -0
  221. package/dist/style.css +513 -324
  222. package/dist/types2.d.cts +29 -103
  223. package/dist/types2.d.ts +30 -55
  224. package/dist/types3.d.cts +106 -55
  225. package/dist/types3.d.ts +60 -0
  226. package/dist/types4.d.cts +60 -0
  227. package/dist/types4.d.ts +50 -0
  228. package/dist/types5.d.cts +50 -0
  229. package/dist/useCalendarEvents.d.cts +1 -1
  230. package/dist/useCalendarEvents.d.ts +1 -1
  231. package/dist/useCollapsePanel.d.cts +3 -3
  232. package/dist/useCollapsePanel.d.ts +3 -3
  233. package/dist/useComponentLocale.cjs +1 -1
  234. package/dist/useComponentLocale.js +1 -1
  235. package/dist/useCropperCore.d.cts +9 -9
  236. package/dist/useCropperCore.d.ts +9 -9
  237. package/dist/useDataResource.cjs +1 -1
  238. package/dist/useDataResource.js +1 -1
  239. package/dist/useDraggableLayout.d.cts +2 -2
  240. package/dist/useDraggableLayout.d.ts +2 -2
  241. package/dist/useDynamicFormState.d.cts +17 -3
  242. package/dist/useDynamicFormState.d.ts +17 -3
  243. package/dist/useEdgeInteraction.d.cts +2 -2
  244. package/dist/useEdgeInteraction.d.ts +2 -2
  245. package/dist/useFormConfig.d.cts +5 -2
  246. package/dist/useFormConfig.d.ts +5 -2
  247. package/dist/useFormRenderer.d.cts +1 -1
  248. package/dist/useFormRenderer.d.ts +1 -1
  249. package/dist/useFullscreen.d.cts +2 -2
  250. package/dist/useFullscreen.d.ts +2 -2
  251. package/dist/useGlobalSearch.d.cts +8 -0
  252. package/dist/useGlobalSearch.d.ts +8 -0
  253. package/dist/useInfiniteScroll.d.cts +2 -2
  254. package/dist/useInfiniteScroll.d.ts +2 -2
  255. package/dist/useQRCode.d.cts +3 -3
  256. package/dist/useQRCode.d.ts +3 -3
  257. package/dist/useSignatureHistory.d.cts +4 -4
  258. package/dist/useSignatureHistory.d.ts +4 -4
  259. package/dist/useSplitResize.d.cts +7 -7
  260. package/dist/useSplitResize.d.ts +7 -7
  261. package/dist/useWorkflowValidation.d.cts +4 -4
  262. package/dist/useWorkflowValidation.d.ts +4 -4
  263. package/dist/verification.d.cts +6 -6
  264. package/dist/verification.d.ts +6 -6
  265. package/docs/architecture.md +3 -1
  266. package/docs/components.en.md +2 -1
  267. package/docs/components.md +2 -1
  268. package/docs/engineering.en.md +11 -1
  269. package/docs/engineering.md +11 -1
  270. package/docs/guides/component-contracts.md +72 -0
  271. package/docs/guides/data-picker.md +37 -1
  272. package/docs/guides/remote-options.md +117 -0
  273. package/docs/guides/search-workflows.md +162 -2
  274. package/docs/guides/table-editing.md +79 -0
  275. package/docs/guides/tree.en.md +41 -0
  276. package/docs/guides/tree.md +80 -1
  277. package/docs/search-selection-coverage.md +59 -0
  278. package/docs/wl-ui-produce-coverage.md +2 -0
  279. package/package.json +6 -3
  280. package/dist/helpers2.cjs +0 -1
  281. package/dist/helpers2.js +0 -1
  282. package/dist/temporalField.cjs +0 -1
  283. package/dist/temporalField.js +0 -1
  284. package/dist/useTableQuery.cjs +0 -1
  285. package/dist/useTableQuery.js +0 -1
@@ -1,33 +1,60 @@
1
1
  import * as vue from "vue";
2
+ import { Component } from "vue";
2
3
 
3
- //#region src/components/C_Language/types.d.ts
4
- interface LanguageOption {
5
- key: string;
6
- label: string;
7
- iconClass?: string;
4
+ //#region src/components/C_Icon/types.d.ts
5
+ interface IconProps {
6
+ name?: string | Component;
7
+ type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
8
+ color?: string;
9
+ size?: number | string;
10
+ svgPath?: string;
11
+ viewBox?: string;
12
+ alt?: string;
13
+ clickable?: boolean;
14
+ loading?: boolean;
15
+ fallbackIcon?: string;
16
+ /** 图标 API 请求超时(毫秒);超时后显示离线占位或配置的回退图标。 */
17
+ loadTimeout?: number;
18
+ title?: string;
19
+ ariaLabel?: string;
20
+ customClass?: string;
21
+ rotate?: number;
22
+ flip?: 'horizontal' | 'vertical' | 'both';
23
+ componentProps?: Record<string, unknown>;
8
24
  }
9
25
  //#endregion
10
- //#region src/components/C_Language/index.vue.d.ts
11
- interface LegacyLanguageOption extends LanguageOption {
12
- key: string;
13
- label: string;
14
- iconClass?: string;
15
- }
16
- type __VLS_Props = {
17
- modelValue?: string;
18
- options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
- tooltip?: string;
20
- };
21
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- change: (key: string) => any;
23
- "update:modelValue": (key: string) => any;
24
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onChange?: ((key: string) => any) | undefined;
26
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
26
+ //#region src/components/C_Icon/index.vue.d.ts
27
+ declare const __VLS_export: vue.DefineComponent<IconProps, {
28
+ validate: () => void;
29
+ hasError: Readonly<vue.Ref<boolean, boolean>>;
30
+ errorMessage: Readonly<vue.Ref<string, string>>;
31
+ el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
32
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
33
+ error: (type: string, error?: unknown) => any;
34
+ click: (event: MouseEvent | KeyboardEvent) => any;
35
+ load: () => any;
36
+ }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
37
+ onError?: ((type: string, error?: unknown) => any) | undefined;
38
+ onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
+ onLoad?: (() => any) | undefined;
27
40
  }>, {
28
- modelValue: string;
29
- options: LegacyLanguageOption[];
41
+ size: number | string;
42
+ color: string;
43
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
44
+ clickable: boolean;
45
+ title: string;
46
+ viewBox: string;
47
+ loading: boolean;
48
+ flip: "horizontal" | "vertical" | "both";
49
+ rotate: number;
50
+ ariaLabel: string;
51
+ svgPath: string;
52
+ alt: string;
53
+ fallbackIcon: string;
54
+ loadTimeout: number;
55
+ customClass: string;
56
+ componentProps: Record<string, unknown>;
30
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
31
58
  declare const _default: typeof __VLS_export;
32
59
  //#endregion
33
- export { LanguageOption as n, _default as t };
60
+ export { IconProps as n, _default as t };
@@ -1,20 +1,33 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Loading/types.d.ts
4
- interface LoadingProps {
5
- /** SVG 尺寸,单位 px,默认 48。 */
6
- size?: number;
7
- /** 可选可见提示;不传时仍提供可访问的加载说明。 */
8
- label?: string;
9
- /** 默认使用 Naive UI 主题主色。 */
10
- color?: string;
3
+ //#region src/components/C_Language/types.d.ts
4
+ interface LanguageOption {
5
+ key: string;
6
+ label: string;
7
+ iconClass?: string;
11
8
  }
12
9
  //#endregion
13
- //#region src/components/C_Loading/index.vue.d.ts
14
- declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
- size: number;
10
+ //#region src/components/C_Language/index.vue.d.ts
11
+ interface LegacyLanguageOption extends LanguageOption {
12
+ key: string;
16
13
  label: string;
14
+ iconClass?: string;
15
+ }
16
+ type __VLS_Props = {
17
+ modelValue?: string;
18
+ options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
+ tooltip?: string;
20
+ };
21
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
+ change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
+ }>, {
28
+ modelValue: string;
29
+ options: LegacyLanguageOption[];
17
30
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
18
31
  declare const _default: typeof __VLS_export;
19
32
  //#endregion
20
- export { LoadingProps as n, _default as t };
33
+ export { LanguageOption as n, _default as t };
@@ -1,20 +1,33 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Loading/types.d.ts
4
- interface LoadingProps {
5
- /** SVG 尺寸,单位 px,默认 48。 */
6
- size?: number;
7
- /** 可选可见提示;不传时仍提供可访问的加载说明。 */
8
- label?: string;
9
- /** 默认使用 Naive UI 主题主色。 */
10
- color?: string;
3
+ //#region src/components/C_Language/types.d.ts
4
+ interface LanguageOption {
5
+ key: string;
6
+ label: string;
7
+ iconClass?: string;
11
8
  }
12
9
  //#endregion
13
- //#region src/components/C_Loading/index.vue.d.ts
14
- declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
- size: number;
10
+ //#region src/components/C_Language/index.vue.d.ts
11
+ interface LegacyLanguageOption extends LanguageOption {
12
+ key: string;
16
13
  label: string;
14
+ iconClass?: string;
15
+ }
16
+ type __VLS_Props = {
17
+ modelValue?: string;
18
+ options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
+ tooltip?: string;
20
+ };
21
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
+ change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
+ }>, {
28
+ modelValue: string;
29
+ options: LegacyLanguageOption[];
17
30
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
18
31
  declare const _default: typeof __VLS_export;
19
32
  //#endregion
20
- export { LoadingProps as n, _default as t };
33
+ export { LanguageOption as n, _default as t };
@@ -1,136 +1,20 @@
1
- import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.js";
2
1
  import * as vue from "vue";
3
2
 
4
- //#region src/components/C_Login/types.d.ts
5
- interface LoginFeatures {
6
- /** 是否显示密码登录(默认 true) */
7
- passwordLogin?: boolean;
8
- /** 是否显示验证码登录(默认 true) */
9
- captchaLogin?: boolean;
10
- /** 是否显示扫码登录(默认 true) */
11
- qrcodeLogin?: boolean;
12
- /** 是否显示其他账号登录(默认 true) */
13
- socialLogin?: boolean;
14
- /** 是否显示注册账号(默认 true) */
15
- register?: boolean;
16
- /** 是否启用人机验证拼图(默认 true) */
17
- captchaVerify?: boolean;
18
- /** 是否显示记住我(默认 true) */
19
- rememberMe?: boolean;
20
- /** 是否显示忘记密码(默认 true) */
21
- forgotPassword?: boolean;
3
+ //#region src/components/C_Loading/types.d.ts
4
+ interface LoadingProps {
5
+ /** SVG 尺寸,单位 px,默认 48。 */
6
+ size?: number;
7
+ /** 可选可见提示;不传时仍提供可访问的加载说明。 */
8
+ label?: string;
9
+ /** 默认使用 Naive UI 主题主色。 */
10
+ color?: string;
22
11
  }
23
- interface SocialProvider {
24
- key: string;
25
- label: string;
26
- /** mdi 图标名称 */
27
- icon: string;
28
- }
29
- interface PasswordFormData {
30
- username: string;
31
- password: string;
32
- captchaToken?: string;
33
- captchaTimestamp?: number;
34
- captchaType?: CaptchaProof['type'];
35
- captchaVerifiedBy?: CaptchaSuccessPayload['verifiedBy'];
36
- }
37
- interface CaptchaFormData {
38
- account: string;
39
- code: string;
40
- }
41
- interface RegisterFormData {
42
- phone: string;
43
- code: string;
44
- password: string;
45
- confirmPassword: string;
46
- }
47
- interface LoginProps {
48
- /** 标题文字 */
49
- title?: string;
50
- /** 副标题 */
51
- subtitle?: string;
52
- /** Logo icon 名称(mdi:xxx),不传则不显示图标 */
53
- logoIcon?: string;
54
- /** 功能开关配置 */
55
- features?: LoginFeatures;
56
- /** 社交登录提供商列表 */
57
- socialProviders?: SocialProvider[];
58
- /** 扫码登录二维码 URL */
59
- qrcodeUrl?: string;
60
- /** localStorage key(记住我) */
61
- storageKey?: string;
62
- /** 外部传入的 loading 状态 */
63
- loading?: boolean;
64
- /** 宿主扩展字段未就绪时阻止按钮和回车提交 */
65
- submitDisabled?: boolean;
66
- /** 表单默认用户名(Demo / 预填场景) */
67
- defaultUsername?: string;
68
- /** 表单默认密码(Demo / 预填场景) */
69
- defaultPassword?: string;
70
- /** 人机验证的应用服务端校验适配器 */
71
- captchaVerifier?: CaptchaVerifier;
72
- /** 人机验证提供方;ALTCHA 模式必须同时配置挑战地址和服务端校验器 */
73
- captchaProvider?: CaptchaProvider;
74
- /** 签发一次性 ALTCHA 挑战的同源服务端地址 */
75
- captchaChallengeUrl?: string;
76
- /** 未配置服务端校验器时是否拒绝登录验证 */
77
- requireCaptchaServerVerification?: boolean;
78
- /** 服务端人机验证超时(毫秒) */
79
- captchaVerificationTimeout?: number;
80
- }
81
- declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
82
- declare const DEFAULT_FEATURES: Required<LoginFeatures>;
83
12
  //#endregion
84
- //#region src/components/C_Login/index.vue.d.ts
85
- declare var __VLS_1: {}, __VLS_54: {
86
- username: string;
87
- loading: boolean;
88
- };
89
- type __VLS_Slots = {} & {
90
- logo?: (props: typeof __VLS_1) => any;
91
- } & {
92
- 'password-fields'?: (props: typeof __VLS_54) => any;
93
- };
94
- declare const __VLS_base: vue.DefineComponent<LoginProps, {
95
- resetCaptcha: () => void;
96
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
97
- submit: (data: PasswordFormData) => any;
98
- "captcha-submit": (data: CaptchaFormData) => any;
99
- "send-code": (account: string) => any;
100
- "social-login": (provider: string) => any;
101
- "forgot-password": () => any;
102
- "qrcode-refresh": () => any;
103
- "register-submit": (data: RegisterFormData) => any;
104
- "register-send-code": (phone: string) => any;
105
- "captcha-visible-change": (visible: boolean) => any;
106
- "username-change": (username: string) => any;
107
- }, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
108
- onSubmit?: ((data: PasswordFormData) => any) | undefined;
109
- "onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
110
- "onSend-code"?: ((account: string) => any) | undefined;
111
- "onSocial-login"?: ((provider: string) => any) | undefined;
112
- "onForgot-password"?: (() => any) | undefined;
113
- "onQrcode-refresh"?: (() => any) | undefined;
114
- "onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
115
- "onRegister-send-code"?: ((phone: string) => any) | undefined;
116
- "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
- "onUsername-change"?: ((username: string) => any) | undefined;
118
- }>, {
119
- loading: boolean;
120
- title: string;
121
- storageKey: string;
122
- defaultUsername: string;
123
- defaultPassword: string;
124
- captchaProvider: CaptchaProvider;
125
- requireCaptchaServerVerification: boolean;
126
- captchaVerificationTimeout: number;
13
+ //#region src/components/C_Loading/index.vue.d.ts
14
+ declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
+ size: number;
16
+ label: string;
127
17
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
128
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
129
18
  declare const _default: typeof __VLS_export;
130
- type __VLS_WithSlots<T, S> = T & {
131
- new (): {
132
- $slots: S;
133
- };
134
- };
135
19
  //#endregion
136
- export { LoginFeatures as a, RegisterFormData as c, DEFAULT_SOCIAL_PROVIDERS as i, SocialProvider as l, CaptchaFormData as n, LoginProps as o, DEFAULT_FEATURES as r, PasswordFormData as s, _default as t };
20
+ export { LoadingProps as n, _default as t };
@@ -1,87 +1,31 @@
1
+ import { n as AutoCompleteProps, t as AutoCompleteOptionItem } from "./types2.cjs";
1
2
  import * as vue from "vue";
2
3
 
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>;
22
- }
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'];
4
+ //#region src/components/C_AutoComplete/index.vue.d.ts
5
+ declare const __VLS_export: <R extends object = AutoCompleteOptionItem, F extends object = Record<string, unknown>>(__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<{
6
+ props: vue.PublicProps & __VLS_PrettifyLocal<AutoCompleteProps<R, F> & {
7
+ onSelect?: ((row: R) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: vue.ShallowUnwrapRef<{
13
+ focus: () => void | undefined;
14
+ blur: () => void | undefined;
15
+ }>) => void;
16
+ attrs: any;
17
+ slots: {
18
+ [x: string]: ((props: any) => any) | undefined;
19
+ } & {
20
+ suffix?: (props: {}) => any;
21
+ } & {
22
+ empty?: (props: {}) => any;
23
+ };
24
+ emit: ((evt: "select", row: R) => void) & ((evt: "update:modelValue", value: string) => void);
25
+ }>) => vue.VNode & {
26
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
67
27
  };
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;
74
- }>, {
75
- size: number;
76
- clickable: boolean;
77
- direction: "ltr" | "rtl";
78
- max: number;
79
- overlap: number;
80
- shape: "circle" | "square";
81
- showStatus: boolean;
82
- showTooltip: boolean;
83
- overflowClickable: boolean;
84
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
28
  declare const _default: typeof __VLS_export;
29
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
86
30
  //#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 };
31
+ export { _default as t };
@@ -1,87 +1,31 @@
1
+ import { n as AutoCompleteProps, t as AutoCompleteOptionItem } from "./types2.js";
1
2
  import * as vue from "vue";
2
3
 
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>;
22
- }
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'];
4
+ //#region src/components/C_AutoComplete/index.vue.d.ts
5
+ declare const __VLS_export: <R extends object = AutoCompleteOptionItem, F extends object = Record<string, unknown>>(__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<{
6
+ props: vue.PublicProps & __VLS_PrettifyLocal<AutoCompleteProps<R, F> & {
7
+ onSelect?: ((row: R) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: vue.ShallowUnwrapRef<{
13
+ focus: () => void | undefined;
14
+ blur: () => void | undefined;
15
+ }>) => void;
16
+ attrs: any;
17
+ slots: {
18
+ [x: string]: ((props: any) => any) | undefined;
19
+ } & {
20
+ suffix?: (props: {}) => any;
21
+ } & {
22
+ empty?: (props: {}) => any;
23
+ };
24
+ emit: ((evt: "select", row: R) => void) & ((evt: "update:modelValue", value: string) => void);
25
+ }>) => vue.VNode & {
26
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
67
27
  };
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;
74
- }>, {
75
- size: number;
76
- clickable: boolean;
77
- direction: "ltr" | "rtl";
78
- max: number;
79
- overlap: number;
80
- shape: "circle" | "square";
81
- showStatus: boolean;
82
- showTooltip: boolean;
83
- overflowClickable: boolean;
84
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
28
  declare const _default: typeof __VLS_export;
29
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
86
30
  //#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 };
31
+ export { _default as t };