@robot-admin/naive-ui-components 0.22.1 → 0.23.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 (308) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +7 -5
  3. package/README_EN.md +7 -5
  4. package/dist/C_ActionBar.d.cts +2 -1
  5. package/dist/C_ActionBar.d.ts +2 -1
  6. package/dist/C_AntV2.cjs +3 -3
  7. package/dist/C_AntV2.js +3 -3
  8. package/dist/C_BatchResult.cjs +1 -0
  9. package/dist/C_BatchResult.css +32 -0
  10. package/dist/C_BatchResult.d.cts +2 -0
  11. package/dist/C_BatchResult.d.ts +2 -0
  12. package/dist/C_BatchResult.js +1 -0
  13. package/dist/C_BatchResult2.cjs +1 -0
  14. package/dist/C_BatchResult2.js +1 -0
  15. package/dist/C_Breadcrumb.d.cts +2 -2
  16. package/dist/C_Breadcrumb.d.ts +1 -1
  17. package/dist/C_Cascade.d.cts +1 -1
  18. package/dist/C_Cascade.d.ts +1 -1
  19. package/dist/C_Chat.d.cts +1 -1
  20. package/dist/C_Chat.d.ts +1 -1
  21. package/dist/C_City.d.cts +1 -1
  22. package/dist/C_City.d.ts +1 -1
  23. package/dist/C_Code.d.cts +1 -1
  24. package/dist/C_Code.d.ts +1 -1
  25. package/dist/C_ContextMenu.d.cts +1 -1
  26. package/dist/C_ContextMenu.d.ts +1 -1
  27. package/dist/C_DataPicker.cjs +1 -0
  28. package/dist/C_DataPicker.css +54 -0
  29. package/dist/C_DataPicker.d.cts +2 -0
  30. package/dist/C_DataPicker.d.ts +5 -0
  31. package/dist/C_DataPicker.js +1 -0
  32. package/dist/C_DataPicker2.cjs +1 -0
  33. package/dist/C_DataPicker2.js +1 -0
  34. package/dist/C_Date.d.cts +1 -1
  35. package/dist/C_Date.d.ts +1 -1
  36. package/dist/C_Density.cjs +1 -0
  37. package/dist/C_Density.css +1 -0
  38. package/dist/C_Density.d.cts +3 -0
  39. package/dist/C_Density.d.ts +3 -0
  40. package/dist/C_Density.js +1 -0
  41. package/dist/C_Density2.cjs +1 -0
  42. package/dist/C_Density2.js +1 -0
  43. package/dist/C_Editor.d.cts +1 -1
  44. package/dist/C_Editor.d.ts +1 -1
  45. package/dist/C_ErrorSummary.cjs +1 -0
  46. package/dist/C_ErrorSummary.css +29 -0
  47. package/dist/C_ErrorSummary.d.cts +3 -0
  48. package/dist/C_ErrorSummary.d.ts +3 -0
  49. package/dist/C_ErrorSummary.js +1 -0
  50. package/dist/C_ErrorSummary2.cjs +1 -0
  51. package/dist/C_ErrorSummary2.js +1 -0
  52. package/dist/C_Form.base.css +150 -148
  53. package/dist/C_Form.css +151 -253
  54. package/dist/C_Form.d.cts +1 -1
  55. package/dist/C_Form.d.ts +19 -2
  56. package/dist/C_FormModal.css +1 -2
  57. package/dist/C_FormModal.d.cts +1 -1
  58. package/dist/C_FormModal.d.ts +17 -2
  59. package/dist/C_FormSearch.cjs +1 -1
  60. package/dist/C_FormSearch.css +124 -52
  61. package/dist/C_FormSearch.d.cts +3 -3
  62. package/dist/C_FormSearch.d.ts +5 -4
  63. package/dist/C_FormSearch.js +1 -1
  64. package/dist/C_FormulaEditor.d.cts +1 -1
  65. package/dist/C_FormulaEditor.d.ts +1 -1
  66. package/dist/C_Guide.d.cts +1 -1
  67. package/dist/C_Guide.d.ts +1 -1
  68. package/dist/C_Icon.d.cts +1 -1
  69. package/dist/C_Icon.d.ts +1 -1
  70. package/dist/C_Language.d.cts +1 -1
  71. package/dist/C_Language.d.ts +1 -1
  72. package/dist/C_Loading.d.cts +1 -1
  73. package/dist/C_Loading.d.ts +1 -1
  74. package/dist/C_Login.d.cts +1 -1
  75. package/dist/C_Login.d.ts +1 -1
  76. package/dist/C_Markdown.d.cts +1 -1
  77. package/dist/C_Markdown.d.ts +1 -1
  78. package/dist/C_Menu.d.cts +2 -2
  79. package/dist/C_Menu.d.ts +1 -1
  80. package/dist/C_OrgChart.d.cts +1 -1
  81. package/dist/C_OrgChart.d.ts +1 -1
  82. package/dist/C_Progress.d.cts +1 -1
  83. package/dist/C_Progress.d.ts +1 -1
  84. package/dist/C_SectionNav.cjs +1 -0
  85. package/dist/C_SectionNav.css +46 -0
  86. package/dist/C_SectionNav.d.cts +2 -0
  87. package/dist/C_SectionNav.d.ts +2 -0
  88. package/dist/C_SectionNav.js +1 -0
  89. package/dist/C_SectionNav2.cjs +1 -0
  90. package/dist/C_SectionNav2.js +1 -0
  91. package/dist/C_Skeleton.d.cts +1 -1
  92. package/dist/C_Skeleton.d.ts +1 -1
  93. package/dist/C_Steps.d.cts +1 -1
  94. package/dist/C_Steps.d.ts +1 -1
  95. package/dist/C_Table.base.css +258 -256
  96. package/dist/C_Table.cjs +1 -1
  97. package/dist/C_Table.css +109 -1283
  98. package/dist/C_Table.d.cts +2 -1
  99. package/dist/C_Table.d.ts +9 -8
  100. package/dist/C_Table.js +1 -1
  101. package/dist/C_Table2.cjs +3 -0
  102. package/dist/C_Table2.js +3 -0
  103. package/dist/C_Tabs.cjs +1 -1
  104. package/dist/C_Tabs.d.cts +1 -1
  105. package/dist/C_Tabs.d.ts +1 -1
  106. package/dist/C_Tabs.js +1 -1
  107. package/dist/C_TagsView.d.cts +1 -1
  108. package/dist/C_Theme.d.cts +1 -1
  109. package/dist/C_Theme.d.ts +1 -1
  110. package/dist/C_Timeline.d.cts +1 -1
  111. package/dist/C_Timeline.d.ts +1 -1
  112. package/dist/C_Transfer.d.cts +1 -1
  113. package/dist/C_Transfer.d.ts +1 -1
  114. package/dist/C_Tree.d.cts +1 -1
  115. package/dist/C_Tree.d.ts +9 -8
  116. package/dist/C_Upload.d.cts +1 -1
  117. package/dist/C_Upload.d.ts +1 -1
  118. package/dist/C_WorkFlow2.cjs +1 -1
  119. package/dist/C_WorkFlow2.js +1 -1
  120. package/dist/Card.cjs +1 -1
  121. package/dist/Card.js +1 -1
  122. package/dist/Steps.cjs +1 -1
  123. package/dist/Steps.js +1 -1
  124. package/dist/Tabs.cjs +1 -1
  125. package/dist/Tabs.js +1 -1
  126. package/dist/batchPatch.cjs +1 -0
  127. package/dist/batchPatch.d.cts +26 -0
  128. package/dist/batchPatch.d.ts +26 -0
  129. package/dist/batchPatch.js +1 -0
  130. package/dist/config.cjs +1 -1
  131. package/dist/config.d.cts +4 -1
  132. package/dist/config.d.ts +6 -2
  133. package/dist/config.js +1 -1
  134. package/dist/config2.d.ts +1 -1
  135. package/dist/constants.d.cts +3 -3
  136. package/dist/constants.d.ts +3 -3
  137. package/dist/constants2.d.cts +402 -173
  138. package/dist/constants2.d.ts +402 -173
  139. package/dist/constants3.d.cts +4 -4
  140. package/dist/constants3.d.ts +4 -4
  141. package/dist/constants4.d.cts +173 -402
  142. package/dist/constants4.d.ts +173 -402
  143. package/dist/constants5.d.cts +2 -2
  144. package/dist/constants5.d.ts +2 -2
  145. package/dist/contracts.d.ts +24 -0
  146. package/dist/data.cjs +1 -1
  147. package/dist/data.d.cts +5 -108
  148. package/dist/data.d.ts +5 -108
  149. package/dist/data.js +1 -1
  150. package/dist/data2.cjs +1 -1
  151. package/dist/data2.d.cts +108 -0
  152. package/dist/data2.d.ts +108 -0
  153. package/dist/data2.js +1 -1
  154. package/dist/data3.cjs +1 -0
  155. package/dist/data3.js +1 -0
  156. package/dist/dateRange.d.cts +108 -13
  157. package/dist/dateRange.d.ts +110 -14
  158. package/dist/density.d.ts +15 -0
  159. package/dist/dictionary.cjs +1 -0
  160. package/dist/dictionary.d.cts +38 -0
  161. package/dist/dictionary.d.ts +38 -0
  162. package/dist/dictionary.js +1 -0
  163. package/dist/helpers.cjs +1 -1
  164. package/dist/helpers.js +1 -1
  165. package/dist/index.cjs +1 -1
  166. package/dist/index.d.cts +63 -52
  167. package/dist/index.d.ts +71 -57
  168. package/dist/index.js +1 -1
  169. package/dist/index.vue.d.cts +5 -5
  170. package/dist/index.vue.d.ts +5 -5
  171. package/dist/index10.vue.d.cts +37 -80
  172. package/dist/index10.vue.d.ts +77 -53
  173. package/dist/index11.vue.d.cts +77 -53
  174. package/dist/index11.vue.d.ts +1117 -45
  175. package/dist/index12.vue.d.cts +1117 -45
  176. package/dist/index12.vue.d.ts +17 -128
  177. package/dist/index13.vue.d.cts +17 -128
  178. package/dist/index13.vue.d.ts +57 -53
  179. package/dist/index14.vue.d.cts +57 -53
  180. package/dist/index14.vue.d.ts +16 -25
  181. package/dist/index15.vue.d.cts +16 -25
  182. package/dist/index15.vue.d.ts +52 -12
  183. package/dist/index16.vue.d.cts +52 -12
  184. package/dist/index16.vue.d.ts +13 -129
  185. package/dist/index17.vue.d.cts +13 -129
  186. package/dist/index17.vue.d.ts +123 -74
  187. package/dist/index18.vue.d.cts +123 -74
  188. package/dist/index18.vue.d.ts +48 -71
  189. package/dist/index19.vue.d.cts +40 -91
  190. package/dist/index19.vue.d.ts +36 -96
  191. package/dist/index2.vue.d.cts +2 -2
  192. package/dist/index2.vue.d.ts +2 -2
  193. package/dist/index20.vue.d.cts +38 -47
  194. package/dist/index20.vue.d.ts +13 -48
  195. package/dist/index21.vue.d.cts +12 -96
  196. package/dist/index21.vue.d.ts +25 -95
  197. package/dist/index22.vue.d.cts +20 -32
  198. package/dist/index22.vue.d.ts +75 -37
  199. package/dist/index23.vue.d.cts +77 -13
  200. package/dist/index23.vue.d.ts +71 -13
  201. package/dist/index24.vue.d.cts +1 -1
  202. package/dist/index25.vue.d.cts +116 -90
  203. package/dist/index25.vue.d.ts +116 -90
  204. package/dist/index26.vue.d.cts +94 -59
  205. package/dist/index26.vue.d.ts +94 -59
  206. package/dist/index27.vue.d.cts +75 -0
  207. package/dist/index27.vue.d.ts +75 -0
  208. package/dist/index28.vue.d.cts +103 -0
  209. package/dist/index28.vue.d.ts +103 -0
  210. package/dist/index29.vue.d.cts +105 -0
  211. package/dist/index29.vue.d.ts +105 -0
  212. package/dist/index3.vue.d.cts +5 -5
  213. package/dist/index3.vue.d.ts +5 -5
  214. package/dist/index30.vue.d.cts +28 -0
  215. package/dist/index30.vue.d.ts +28 -0
  216. package/dist/index4.vue.d.cts +19 -128
  217. package/dist/index4.vue.d.ts +17 -34
  218. package/dist/index5.vue.d.cts +127 -35
  219. package/dist/index5.vue.d.ts +30 -19
  220. package/dist/index6.vue.d.cts +30 -19
  221. package/dist/index6.vue.d.ts +22 -118
  222. package/dist/index7.vue.d.cts +22 -118
  223. package/dist/index7.vue.d.ts +112 -18
  224. package/dist/index8.vue.d.cts +112 -18
  225. package/dist/index8.vue.d.ts +24 -35
  226. package/dist/index9.vue.d.cts +24 -35
  227. package/dist/index9.vue.d.ts +37 -80
  228. package/dist/mapUtils.d.cts +4 -4
  229. package/dist/mapUtils.d.ts +4 -4
  230. package/dist/numberCodec.cjs +1 -0
  231. package/dist/numberCodec.d.cts +25 -0
  232. package/dist/numberCodec.d.ts +25 -0
  233. package/dist/numberCodec.js +1 -0
  234. package/dist/observer.cjs +1 -0
  235. package/dist/observer.js +1 -0
  236. package/dist/presets.d.cts +3 -66
  237. package/dist/presets.d.ts +3 -66
  238. package/dist/resolver.cjs +1 -1
  239. package/dist/resolver.d.cts +1 -1
  240. package/dist/resolver.d.ts +1 -1
  241. package/dist/resolver.js +1 -1
  242. package/dist/serializeSearch.cjs +1 -0
  243. package/dist/serializeSearch.js +1 -0
  244. package/dist/style.css +547 -308
  245. package/dist/types.d.cts +60 -103
  246. package/dist/types.d.ts +62 -52
  247. package/dist/types2.d.cts +104 -51
  248. package/dist/types2.d.ts +56 -0
  249. package/dist/types3.d.cts +56 -0
  250. package/dist/useCollapsePanel.d.cts +6 -6
  251. package/dist/useCollapsePanel.d.ts +6 -6
  252. package/dist/useComponentLocale.cjs +1 -1
  253. package/dist/useComponentLocale.js +1 -1
  254. package/dist/useCropperCore.d.cts +13 -13
  255. package/dist/useCropperCore.d.ts +13 -13
  256. package/dist/useDataResource.cjs +1 -0
  257. package/dist/useDataResource.js +1 -0
  258. package/dist/useDictionary.cjs +1 -0
  259. package/dist/useDictionary.js +1 -0
  260. package/dist/useDynamicFormState.d.cts +960 -10
  261. package/dist/useDynamicFormState.d.ts +951 -11
  262. package/dist/useEdgeInteraction.d.cts +3 -3
  263. package/dist/useEdgeInteraction.d.ts +3 -3
  264. package/dist/useFormArray.cjs +1 -0
  265. package/dist/useFormArray.d.cts +69 -0
  266. package/dist/useFormArray.d.ts +69 -0
  267. package/dist/useFormArray.js +1 -0
  268. package/dist/useFormConfig.d.cts +14 -0
  269. package/dist/useFormConfig.d.ts +17 -38
  270. package/dist/useGridWidth.cjs +1 -0
  271. package/dist/useGridWidth.js +1 -0
  272. package/dist/useInfiniteScroll.d.cts +3 -3
  273. package/dist/useInfiniteScroll.d.ts +3 -3
  274. package/dist/useQRCode.d.cts +5 -5
  275. package/dist/useQRCode.d.ts +5 -5
  276. package/dist/useSignatureHistory.d.cts +7 -7
  277. package/dist/useSignatureHistory.d.ts +7 -7
  278. package/dist/useSplitResize.d.cts +9 -9
  279. package/dist/useSplitResize.d.ts +9 -9
  280. package/dist/useTableGlobalConfig.cjs +1 -0
  281. package/dist/useTableGlobalConfig.js +1 -0
  282. package/dist/useTableQuery.cjs +1 -3
  283. package/dist/useTableQuery.js +1 -3
  284. package/dist/useWorkflowValidation.d.cts +5 -5
  285. package/dist/useWorkflowValidation.d.ts +5 -5
  286. package/dist/validation.cjs +1 -0
  287. package/dist/validation.d.cts +18 -0
  288. package/dist/validation.d.ts +18 -0
  289. package/dist/validation.js +1 -0
  290. package/dist/verification.d.cts +4 -4
  291. package/dist/verification.d.ts +5 -5
  292. package/dist/workflows.cjs +1 -0
  293. package/dist/workflows.d.cts +2 -0
  294. package/dist/workflows.d.ts +2 -0
  295. package/dist/workflows.js +1 -0
  296. package/docs/components.en.md +13 -1
  297. package/docs/components.md +13 -1
  298. package/docs/guides/batch-results.md +47 -0
  299. package/docs/guides/data-picker.md +65 -0
  300. package/docs/guides/data-workflows.md +123 -0
  301. package/docs/guides/form-density.en.md +39 -0
  302. package/docs/guides/form-density.md +39 -0
  303. package/docs/guides/search-workflows.md +164 -0
  304. package/package.json +21 -1
  305. package/dist/C_FormSearch2.cjs +0 -1
  306. package/dist/C_FormSearch2.js +0 -1
  307. package/dist/useTableQuery.d.cts +0 -1957
  308. package/dist/useTableQuery.d.ts +0 -1946
@@ -1,83 +1,132 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Markdown/index.vue.d.ts
4
- type ToolbarName = string | number;
5
- type InsertImageFunction = (config: {
6
- url: string;
7
- desc?: string;
8
- width?: string | number;
9
- height?: string | number;
10
- }) => void;
11
- interface Props {
12
- modelValue?: string;
13
- /** SSR 或同页多实例时建议显式传入稳定 ID */
14
- editorId?: string;
15
- height?: string | number;
16
- disabled?: boolean;
17
- placeholder?: string;
18
- mode?: 'edit' | 'editable' | 'preview';
19
- toolbar?: object | ToolbarName[];
20
- uploadImageConfig?: {
21
- accept?: string;
22
- multiple?: boolean;
23
- [key: string]: unknown;
3
+ //#region src/components/C_Guide/types.d.ts
4
+ /** 通用功能示意图,不包含宿主业务数据。 */
5
+ type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
6
+ /** 可使用选择器、真实元素或动态解析函数定位目标。 */
7
+ type GuideTarget = string | Element | (() => Element | null | undefined);
8
+ /** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
9
+ interface GuideExpose {
10
+ startGuide: (force?: boolean) => Promise<void>;
11
+ stopGuide: () => void;
12
+ resetCompleted: () => void;
13
+ isCompleted: () => boolean;
14
+ }
15
+ /** 引导步骤定义 */
16
+ interface GuideStep {
17
+ /** 目标元素;不传时可展示居中的欢迎步骤。 */
18
+ element?: GuideTarget;
19
+ /** 弹出层配置 */
20
+ popover: {
21
+ title: string;
22
+ description: string;
23
+ side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
24
+ illustration?: GuideIllustration;
24
25
  };
25
- tocNavPosition?: 'left' | 'right';
26
- defaultFullscreen?: boolean;
27
- autofocus?: boolean;
28
- includeLevel?: number[];
29
- leftToolbar?: string;
30
- rightToolbar?: string;
31
- maxLength?: number;
32
- showWordCount?: boolean;
33
- autoSave?: boolean;
34
- autoSaveInterval?: number;
35
- /** 是否为暗色主题(外部传入) */
36
- isDark?: boolean;
26
+ /** 步骤所属分组(用于步骤分组展示) */
27
+ group?: string;
28
+ /** 进入此步骤前的回调 */
29
+ onHighlightStarted?: (element: Element | undefined, step: GuideStep) => void;
30
+ /** 离开此步骤后的回调 */
31
+ onDeselected?: (element: Element | undefined, step: GuideStep) => void;
32
+ /** 是否跳过此步骤的条件 */
33
+ skipIf?: () => boolean;
34
+ }
35
+ /** 引导主题配置 */
36
+ interface GuideTheme {
37
+ /** 弹层背景色 */
38
+ popoverBgColor?: string;
39
+ /** 弹层文字色 */
40
+ popoverTextColor?: string;
41
+ /** 按钮主色 */
42
+ primaryColor?: string;
43
+ /** 遮罩层透明度 */
44
+ overlayOpacity?: number;
45
+ /** 弹层圆角 */
46
+ borderRadius?: string;
47
+ }
48
+ /** 引导持久化配置 */
49
+ interface GuidePersistence {
50
+ /** 是否启用持久化(记住已完成的引导) */
51
+ enabled?: boolean;
52
+ /** 持久化 key 前缀 */
53
+ keyPrefix?: string;
37
54
  }
38
- declare const __VLS_export: vue.DefineComponent<Props, {
39
- focus: () => void;
40
- getHtml: () => string;
41
- insertText: (text: string) => void;
42
- wordCount: vue.ComputedRef<number>;
55
+ /** C_Guide Props */
56
+ interface GuideProps {
57
+ /** 引导步骤 */
58
+ steps?: GuideStep[];
59
+ /** 完成按钮文字 */
60
+ doneBtnText?: string;
61
+ /** 下一步按钮文字 */
62
+ nextBtnText?: string;
63
+ /** 上一步按钮文字 */
64
+ prevBtnText?: string;
65
+ /** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
66
+ showSkipButton?: boolean;
67
+ /** 跳过按钮文字,默认“跳过引导”。 */
68
+ skipBtnText?: string;
69
+ /** 是否显示进度条 */
70
+ showProgress?: boolean;
71
+ /** 是否启用键盘导航(← → Esc) */
72
+ keyboard?: boolean;
73
+ /** 是否启用动画 */
74
+ animate?: boolean;
75
+ /** 是否允许点击遮罩关闭 */
76
+ allowClose?: boolean;
77
+ /** 自动跳过不存在或不可见的目标,默认 true。 */
78
+ skipMissingElements?: boolean;
79
+ /** 主题配置 */
80
+ theme?: GuideTheme;
81
+ /** 持久化配置 */
82
+ persistence?: GuidePersistence;
83
+ /** 弹层自定义 CSS 类 */
84
+ popoverClass?: string;
85
+ /** 是否显示触发按钮(设为 false 则仅通过 expose 的 startGuide 触发) */
86
+ showTrigger?: boolean;
87
+ /** 触发按钮的 tooltip 文字 */
88
+ triggerTooltip?: string;
89
+ /** 触发按钮图标 */
90
+ triggerIcon?: string;
91
+ }
92
+ //#endregion
93
+ //#region src/components/C_Guide/index.vue.d.ts
94
+ declare const __VLS_export: vue.DefineComponent<GuideProps, {
95
+ startGuide: (force?: boolean) => Promise<void>;
96
+ stopGuide: () => void;
97
+ resetCompleted: () => void;
98
+ isCompleted: () => boolean;
43
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- "update:modelValue": (value: string) => any;
45
- change: (text: string, html: string) => any;
46
- save: (text: string, html: string) => any;
47
- "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
- "fullscreen-change": (isFullscreen: boolean) => any;
49
- "copy-code-success": (text: string) => any;
50
- "word-count-change": (count: number) => any;
51
- "auto-save": (text: string) => any;
52
- "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
- onChange?: ((text: string, html: string) => any) | undefined;
56
- onSave?: ((text: string, html: string) => any) | undefined;
57
- "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
- "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
59
- "onCopy-code-success"?: ((text: string) => any) | undefined;
60
- "onWord-count-change"?: ((count: number) => any) | undefined;
61
- "onAuto-save"?: ((text: string) => any) | undefined;
62
- "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
100
+ error: (error: unknown) => any;
101
+ close: (currentStep: number) => any;
102
+ start: () => any;
103
+ complete: () => any;
104
+ skip: (currentStep: number) => any;
105
+ "step-change": (stepIndex: number, step: GuideStep) => any;
106
+ }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
+ onError?: ((error: unknown) => any) | undefined;
108
+ onClose?: ((currentStep: number) => any) | undefined;
109
+ onStart?: (() => any) | undefined;
110
+ onComplete?: (() => any) | undefined;
111
+ onSkip?: ((currentStep: number) => any) | undefined;
112
+ "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
63
113
  }>, {
64
- modelValue: string;
65
- height: string | number;
66
- disabled: boolean;
67
- placeholder: string;
68
- mode: "edit" | "editable" | "preview";
69
- tocNavPosition: "left" | "right";
70
- defaultFullscreen: boolean;
71
- autofocus: boolean;
72
- includeLevel: number[];
73
- leftToolbar: string;
74
- rightToolbar: string;
75
- maxLength: number;
76
- showWordCount: boolean;
77
- autoSave: boolean;
78
- autoSaveInterval: number;
79
- isDark: boolean;
114
+ steps: GuideStep[];
115
+ keyboard: boolean;
116
+ doneBtnText: string;
117
+ nextBtnText: string;
118
+ prevBtnText: string;
119
+ showSkipButton: boolean;
120
+ skipBtnText: string;
121
+ showProgress: boolean;
122
+ animate: boolean;
123
+ allowClose: boolean;
124
+ skipMissingElements: boolean;
125
+ popoverClass: string;
126
+ showTrigger: boolean;
127
+ triggerTooltip: string;
128
+ triggerIcon: string;
80
129
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
130
  declare const _default: typeof __VLS_export;
82
131
  //#endregion
83
- export { _default as t };
132
+ export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
@@ -1,77 +1,54 @@
1
- import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
- import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
2
+ import { CSSProperties } from "vue";
5
3
 
6
- //#region src/components/C_Menu/types.d.ts
7
- type MenuKey = string | number;
8
- type MenuValue = MenuKey | null;
9
- type OwnMenuKey<Option> = Option extends {
10
- key?: infer Key;
11
- } ? Extract<Key, MenuKey> : never;
12
- /** 已遇到的递归业务类型或原生完整键类型均停止展开,内联配置包含子节点。 */
13
- type MenuOptionKeys<Option, Seen = never> = Option extends Seen ? OwnMenuKey<Option> : MenuKey extends OwnMenuKey<Option> ? MenuKey : OwnMenuKey<Option> | (Option extends {
14
- children?: infer Children;
15
- } ? Children extends readonly unknown[] ? MenuOptionKeys<Children[number], Seen | Option> : never : never);
16
- type WidenMenuKey<Key> = Key extends string ? string : Key extends number ? number : never;
17
- type MenuSelectionKey<O extends MenuOption[] | undefined> = O extends MenuOption[] ? [MenuOptionKeys<O[number]>] extends [never] ? MenuKey : WidenMenuKey<MenuOptionKeys<O[number]>> : string;
18
- interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
19
- options?: O;
20
- routes?: RouteItem[];
21
- adapterConfig?: MenuAdapterConfig;
22
- labelFormatter?: (label: string) => string;
23
- /** @deprecated Use modelValue. */
24
- value?: MenuValue;
25
- modelValue?: MenuValue;
26
- expandedKeys?: MenuKey[];
27
- defaultExpandedKeys?: MenuKey[];
28
- mode?: 'vertical' | 'horizontal';
29
- collapsed?: boolean;
30
- collapsedWidth?: number;
31
- collapsedIconSize?: number;
32
- inverted?: boolean;
33
- themeOverrides?: Record<string, any>;
34
- indent?: number;
35
- rootIndent?: number;
36
- dropdownProps?: DropdownProps;
4
+ //#region src/components/C_Progress/index.vue.d.ts
5
+ type CSS = CSSProperties | string;
6
+ interface Props {
7
+ percentage: number | number[];
8
+ isAnimation?: boolean;
9
+ time?: number;
10
+ type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
11
+ borderRadius?: number | string;
12
+ circleGap?: number;
13
+ color?: string | string[] | {
14
+ stops: string[];
15
+ } | Array<{
16
+ stops: string[];
17
+ }>;
18
+ fillBorderRadius?: number | string;
19
+ gapDegree?: number;
20
+ gapOffsetDegree?: number;
21
+ height?: number;
22
+ indicatorPlacement?: 'inside' | 'outside';
23
+ indicatorTextColor?: string;
24
+ offsetDegree?: number;
25
+ railColor?: string | string[];
26
+ railStyle?: string | CSS | Array<string | CSS>;
27
+ showIndicator?: boolean;
28
+ status?: 'default' | 'success' | 'error' | 'warning' | 'info';
29
+ strokeWidth?: number;
30
+ unit?: string;
37
31
  }
38
- interface MenuEmits<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
39
- select: [key: MenuSelectionKey<O>];
40
- /** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
41
- intent: [key: MenuSelectionKey<O>];
42
- 'update:modelValue': [key: MenuSelectionKey<O> | null];
43
- /** @deprecated Use update:modelValue. */
44
- 'update:value': [key: MenuSelectionKey<O> | null];
45
- 'update:expandedKeys': [keys: MenuSelectionKey<O>[]];
46
- }
47
- interface MenuExpose {
48
- showOption: (key: MenuKey) => void;
49
- /** Vue 公开实例会解包顶层 Ref。 */
50
- menuRef: MenuInst | null;
51
- }
52
- //#endregion
53
- //#region src/components/C_Menu/index.vue.d.ts
54
- 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<{
55
- props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps<Options> & {
56
- "onUpdate:modelValue"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
57
- onSelect?: ((key: MenuSelectionKey<Options>) => any) | undefined;
58
- "onUpdate:expandedKeys"?: ((keys: MenuSelectionKey<Options>[]) => any) | undefined;
59
- onIntent?: ((key: MenuSelectionKey<Options>) => any) | undefined;
60
- "onUpdate:value"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
61
- }> & (typeof globalThis extends {
62
- __VLS_PROPS_FALLBACK: infer P;
63
- } ? P : {});
64
- expose: (exposed: vue.ShallowUnwrapRef<{
65
- showOption: (key: MenuKey) => void | undefined;
66
- menuRef: Ref<MenuInst | null, MenuInst | null>;
67
- }>) => void;
68
- attrs: any;
69
- slots: {};
70
- emit: ((evt: "update:modelValue", key: MenuSelectionKey<Options> | null) => void) & ((evt: "select", key: MenuSelectionKey<Options>) => void) & ((evt: "update:expandedKeys", keys: MenuSelectionKey<Options>[]) => void) & ((evt: "intent", key: MenuSelectionKey<Options>) => void) & ((evt: "update:value", key: MenuSelectionKey<Options> | null) => void);
71
- }>) => vue.VNode & {
72
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
32
+ declare var __VLS_9: {};
33
+ type __VLS_Slots = {} & {
34
+ indicator?: (props: typeof __VLS_9) => any;
73
35
  };
36
+ declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ status: "default" | "success" | "error" | "warning" | "info";
38
+ percentage: number | number[];
39
+ isAnimation: boolean;
40
+ time: number;
41
+ indicatorPlacement: "inside" | "outside";
42
+ showIndicator: boolean;
43
+ strokeWidth: number;
44
+ unit: string;
45
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
74
47
  declare const _default: typeof __VLS_export;
75
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
76
53
  //#endregion
77
- export { MenuProps as a, MenuKey as i, MenuEmits as n, MenuValue as o, MenuExpose as r, _default as t };
54
+ export { _default as t };
@@ -1,98 +1,47 @@
1
1
  import * as vue from "vue";
2
+ import { CSSProperties } from "vue";
2
3
 
3
- //#region src/components/C_OrgChart/types.d.ts
4
- /** 节点数据 */
5
- interface OrgChartNode {
6
- /** 唯一标识 */
7
- id: string | number;
8
- /** 节点标题(姓名/部门名) */
9
- label: string;
10
- /** 副标题(职位/描述) */
11
- subtitle?: string;
12
- /** 头像 URL */
13
- avatar?: string;
14
- /** 子节点 */
15
- children?: OrgChartNode[];
16
- /** 自定义 CSS 类 */
17
- className?: string;
18
- /** 节点是否默认折叠 */
19
- collapsed?: boolean;
20
- /** 节点额外数据(透传给插槽/事件) */
21
- data?: Record<string, unknown>;
4
+ //#region src/components/C_Progress/index.vue.d.ts
5
+ type CSS = CSSProperties | string;
6
+ interface Props {
7
+ percentage: number | number[];
8
+ isAnimation?: boolean;
9
+ time?: number;
10
+ type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
11
+ borderRadius?: number | string;
12
+ circleGap?: number;
13
+ color?: string | string[] | {
14
+ stops: string[];
15
+ } | Array<{
16
+ stops: string[];
17
+ }>;
18
+ fillBorderRadius?: number | string;
19
+ gapDegree?: number;
20
+ gapOffsetDegree?: number;
21
+ height?: number;
22
+ indicatorPlacement?: 'inside' | 'outside';
23
+ indicatorTextColor?: string;
24
+ offsetDegree?: number;
25
+ railColor?: string | string[];
26
+ railStyle?: string | CSS | Array<string | CSS>;
27
+ showIndicator?: boolean;
28
+ status?: 'default' | 'success' | 'error' | 'warning' | 'info';
29
+ strokeWidth?: number;
30
+ unit?: string;
22
31
  }
23
- /** 布局方向 */
24
- type OrgChartDirection = 'vertical' | 'horizontal';
25
- /** 连线样式 */
26
- type OrgChartLineStyle = 'straight' | 'rounded' | 'stepped';
27
- /** C_OrgChart Props */
28
- interface OrgChartProps {
29
- /** 树形数据 */
30
- data: OrgChartNode;
31
- /** 布局方向 */
32
- direction?: OrgChartDirection;
33
- /** 连线样式 */
34
- lineStyle?: OrgChartLineStyle;
35
- /** 连线颜色 */
36
- lineColor?: string;
37
- /** 连线宽度(px) */
38
- lineWidth?: number;
39
- /** 节点间距(px) */
40
- nodeSpacing?: number;
41
- /** 层级间距(px) */
42
- levelSpacing?: number;
43
- /** 是否支持缩放 */
44
- zoomable?: boolean;
45
- /** 是否支持平移 */
46
- pannable?: boolean;
47
- /** 初始缩放比例 */
48
- initialZoom?: number;
49
- /** 首次渲染与数据、布局变化时适配完整树形范围。 */
50
- fitOnInit?: boolean;
51
- /** 最小缩放 */
52
- minZoom?: number;
53
- /** 最大缩放 */
54
- maxZoom?: number;
55
- /** 是否可折叠 */
56
- collapsible?: boolean;
57
- }
58
- //#endregion
59
- //#region src/components/C_OrgChart/index.vue.d.ts
60
- declare var __VLS_12: {
61
- node: OrgChartNode;
62
- isLeaf: boolean;
63
- isExpanded: boolean;
64
- };
32
+ declare var __VLS_9: {};
65
33
  type __VLS_Slots = {} & {
66
- node?: (props: typeof __VLS_12) => any;
34
+ indicator?: (props: typeof __VLS_9) => any;
67
35
  };
68
- declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
69
- zoomIn: () => void;
70
- zoomOut: () => void;
71
- resetView: () => void;
72
- fitView: () => Promise<void>;
73
- zoom: vue.Ref<number, number>;
74
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
75
- "node-click": (node: OrgChartNode) => any;
76
- "node-expand": (node: OrgChartNode) => any;
77
- "node-collapse": (node: OrgChartNode) => any;
78
- }, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
79
- "onNode-click"?: ((node: OrgChartNode) => any) | undefined;
80
- "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
81
- "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
- }>, {
83
- direction: OrgChartDirection;
84
- collapsible: boolean;
85
- lineStyle: OrgChartLineStyle;
86
- lineColor: string;
87
- lineWidth: number;
88
- nodeSpacing: number;
89
- levelSpacing: number;
90
- zoomable: boolean;
91
- pannable: boolean;
92
- initialZoom: number;
93
- fitOnInit: boolean;
94
- minZoom: number;
95
- maxZoom: number;
36
+ declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ status: "default" | "success" | "error" | "warning" | "info";
38
+ percentage: number | number[];
39
+ isAnimation: boolean;
40
+ time: number;
41
+ indicatorPlacement: "inside" | "outside";
42
+ showIndicator: boolean;
43
+ strokeWidth: number;
44
+ unit: string;
96
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
97
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
98
47
  declare const _default: typeof __VLS_export;
@@ -102,4 +51,4 @@ type __VLS_WithSlots<T, S> = T & {
102
51
  };
103
52
  };
104
53
  //#endregion
105
- export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
54
+ export { _default as t };
@@ -1,105 +1,45 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_OrgChart/types.d.ts
4
- /** 节点数据 */
5
- interface OrgChartNode {
6
- /** 唯一标识 */
7
- id: string | number;
8
- /** 节点标题(姓名/部门名) */
9
- label: string;
10
- /** 副标题(职位/描述) */
11
- subtitle?: string;
12
- /** 头像 URL */
13
- avatar?: string;
14
- /** 子节点 */
15
- children?: OrgChartNode[];
16
- /** 自定义 CSS 类 */
17
- className?: string;
18
- /** 节点是否默认折叠 */
19
- collapsed?: boolean;
20
- /** 节点额外数据(透传给插槽/事件) */
21
- data?: Record<string, unknown>;
22
- }
23
- /** 布局方向 */
24
- type OrgChartDirection = 'vertical' | 'horizontal';
25
- /** 连线样式 */
26
- type OrgChartLineStyle = 'straight' | 'rounded' | 'stepped';
27
- /** C_OrgChart Props */
28
- interface OrgChartProps {
29
- /** 树形数据 */
30
- data: OrgChartNode;
31
- /** 布局方向 */
32
- direction?: OrgChartDirection;
33
- /** 连线样式 */
34
- lineStyle?: OrgChartLineStyle;
35
- /** 连线颜色 */
36
- lineColor?: string;
37
- /** 连线宽度(px) */
38
- lineWidth?: number;
39
- /** 节点间距(px) */
40
- nodeSpacing?: number;
41
- /** 层级间距(px) */
42
- levelSpacing?: number;
43
- /** 是否支持缩放 */
44
- zoomable?: boolean;
45
- /** 是否支持平移 */
46
- pannable?: boolean;
47
- /** 初始缩放比例 */
48
- initialZoom?: number;
49
- /** 首次渲染与数据、布局变化时适配完整树形范围。 */
50
- fitOnInit?: boolean;
51
- /** 最小缩放 */
52
- minZoom?: number;
53
- /** 最大缩放 */
54
- maxZoom?: number;
55
- /** 是否可折叠 */
56
- collapsible?: boolean;
3
+ //#region src/components/C_Steps/types.d.ts
4
+ interface StepItem {
5
+ title: string;
6
+ description?: string;
7
+ time?: string;
8
+ icon?: string;
9
+ status?: 'wait' | 'process' | 'finish' | 'error';
10
+ disabled?: boolean;
11
+ detail?: string;
57
12
  }
58
13
  //#endregion
59
- //#region src/components/C_OrgChart/index.vue.d.ts
60
- declare var __VLS_12: {
61
- node: OrgChartNode;
62
- isLeaf: boolean;
63
- isExpanded: boolean;
64
- };
65
- type __VLS_Slots = {} & {
66
- node?: (props: typeof __VLS_12) => any;
14
+ //#region src/components/C_Steps/index.vue.d.ts
15
+ interface LegacyStepItem extends StepItem {
16
+ title: string;
17
+ description?: string;
18
+ time?: string;
19
+ icon?: string;
20
+ status?: 'wait' | 'process' | 'finish' | 'error';
21
+ disabled?: boolean;
22
+ detail?: string;
23
+ }
24
+ type __VLS_Props = {
25
+ steps: LegacyStepItem[];
26
+ current?: number;
27
+ direction?: 'horizontal' | 'vertical';
28
+ clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
+ connected?: boolean;
67
30
  };
68
- declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
69
- zoomIn: () => void;
70
- zoomOut: () => void;
71
- resetView: () => void;
72
- fitView: () => Promise<void>;
73
- zoom: vue.Ref<number, number>;
74
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
75
- "node-click": (node: OrgChartNode) => any;
76
- "node-expand": (node: OrgChartNode) => any;
77
- "node-collapse": (node: OrgChartNode) => any;
78
- }, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
79
- "onNode-click"?: ((node: OrgChartNode) => any) | undefined;
80
- "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
81
- "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
31
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
+ change: (args_0: number) => any;
33
+ "update:current": (args_0: number) => any;
34
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ onChange?: ((args_0: number) => any) | undefined;
36
+ "onUpdate:current"?: ((args_0: number) => any) | undefined;
82
37
  }>, {
83
- direction: OrgChartDirection;
84
- collapsible: boolean;
85
- lineStyle: OrgChartLineStyle;
86
- lineColor: string;
87
- lineWidth: number;
88
- nodeSpacing: number;
89
- levelSpacing: number;
90
- zoomable: boolean;
91
- pannable: boolean;
92
- initialZoom: number;
93
- fitOnInit: boolean;
94
- minZoom: number;
95
- maxZoom: number;
38
+ direction: "horizontal" | "vertical";
39
+ current: number;
40
+ clickable: boolean;
41
+ connected: boolean;
96
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
97
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
98
43
  declare const _default: typeof __VLS_export;
99
- type __VLS_WithSlots<T, S> = T & {
100
- new (): {
101
- $slots: S;
102
- };
103
- };
104
44
  //#endregion
105
- export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
45
+ export { StepItem as n, _default as t };
@@ -72,14 +72,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
- size: number;
76
75
  max: number;
76
+ size: number;
77
77
  direction: "ltr" | "rtl";
78
+ clickable: boolean;
78
79
  overlap: number;
79
80
  shape: "circle" | "square";
80
81
  showStatus: boolean;
81
82
  showTooltip: boolean;
82
- clickable: boolean;
83
83
  overflowClickable: boolean;
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
@@ -72,14 +72,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
- size: number;
76
75
  max: number;
76
+ size: number;
77
77
  direction: "ltr" | "rtl";
78
+ clickable: boolean;
78
79
  overlap: number;
79
80
  shape: "circle" | "square";
80
81
  showStatus: boolean;
81
82
  showTooltip: boolean;
82
- clickable: boolean;
83
83
  overflowClickable: boolean;
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;