@robot-admin/naive-ui-components 0.17.6 → 0.18.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 (200) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/C_AntV.css +10 -10
  3. package/dist/C_AntV.d.cts +2 -2
  4. package/dist/C_AntV.d.ts +2 -2
  5. package/dist/C_AntV2.cjs +1 -1
  6. package/dist/C_AntV2.js +1 -1
  7. package/dist/C_Date.cjs +1 -1
  8. package/dist/C_Date.css +5 -5
  9. package/dist/C_Date.d.cts +18 -2
  10. package/dist/C_Date.d.ts +18 -2
  11. package/dist/C_Date.js +1 -1
  12. package/dist/C_Date2.cjs +1 -1
  13. package/dist/C_Date2.js +1 -1
  14. package/dist/C_Draggable.css +53 -53
  15. package/dist/C_Draggable.d.cts +2 -2
  16. package/dist/C_Draggable.d.ts +2 -2
  17. package/dist/C_Draggable2.cjs +1 -1
  18. package/dist/C_Draggable2.js +1 -1
  19. package/dist/C_Editor.d.cts +1 -1
  20. package/dist/C_Editor.d.ts +1 -1
  21. package/dist/C_FormModal.d.cts +1 -1
  22. package/dist/C_FormModal.d.ts +1 -1
  23. package/dist/C_FormSearch.cjs +1 -1
  24. package/dist/C_FormSearch.css +52 -52
  25. package/dist/C_FormSearch.d.cts +18 -2
  26. package/dist/C_FormSearch.d.ts +18 -2
  27. package/dist/C_FormSearch.js +1 -1
  28. package/dist/C_FormSearch2.cjs +1 -1
  29. package/dist/C_FormSearch2.js +1 -1
  30. package/dist/C_Guide.d.cts +1 -1
  31. package/dist/C_Guide.d.ts +1 -1
  32. package/dist/C_Icon.d.cts +1 -1
  33. package/dist/C_Icon.d.ts +1 -1
  34. package/dist/C_Language.d.cts +1 -1
  35. package/dist/C_Language.d.ts +1 -1
  36. package/dist/C_Loading.d.cts +1 -1
  37. package/dist/C_Loading.d.ts +1 -1
  38. package/dist/C_Login.d.cts +1 -1
  39. package/dist/C_Login.d.ts +1 -1
  40. package/dist/C_Markdown.d.cts +1 -1
  41. package/dist/C_Markdown.d.ts +1 -1
  42. package/dist/C_Menu.d.ts +1 -1
  43. package/dist/C_OrgChart.d.cts +1 -1
  44. package/dist/C_OrgChart.d.ts +1 -1
  45. package/dist/C_Progress.d.cts +1 -1
  46. package/dist/C_Progress.d.ts +1 -1
  47. package/dist/C_Skeleton.d.cts +1 -1
  48. package/dist/C_Skeleton.d.ts +1 -1
  49. package/dist/C_Steps.d.cts +1 -1
  50. package/dist/C_Steps.d.ts +1 -1
  51. package/dist/C_Table.base.css +144 -155
  52. package/dist/C_Table.css +144 -155
  53. package/dist/C_Table.d.cts +2 -2
  54. package/dist/C_Table.d.ts +6 -6
  55. package/dist/C_TagsView.d.cts +1 -1
  56. package/dist/C_TagsView.d.ts +1 -1
  57. package/dist/C_Theme.d.cts +1 -1
  58. package/dist/C_Theme.d.ts +1 -1
  59. package/dist/C_Time.cjs +1 -1
  60. package/dist/C_Time.css +4 -4
  61. package/dist/C_Time.d.cts +18 -2
  62. package/dist/C_Time.d.ts +18 -2
  63. package/dist/C_Time.js +1 -1
  64. package/dist/C_Time2.cjs +1 -1
  65. package/dist/C_Time2.js +1 -1
  66. package/dist/C_Timeline.d.cts +1 -1
  67. package/dist/C_Timeline.d.ts +1 -1
  68. package/dist/C_Transfer.css +26 -26
  69. package/dist/C_Transfer.d.cts +2 -2
  70. package/dist/C_Transfer.d.ts +2 -2
  71. package/dist/C_Transfer2.cjs +1 -1
  72. package/dist/C_Transfer2.js +1 -1
  73. package/dist/C_Tree.css +23 -23
  74. package/dist/C_Tree.d.ts +4 -4
  75. package/dist/C_Tree2.cjs +1 -1
  76. package/dist/C_Tree2.js +1 -1
  77. package/dist/C_VtableGantt.cjs +1 -1
  78. package/dist/C_VtableGantt.css +31 -31
  79. package/dist/C_VtableGantt.d.cts +18 -2
  80. package/dist/C_VtableGantt.d.ts +18 -2
  81. package/dist/C_VtableGantt.js +1 -1
  82. package/dist/C_WorkFlow.css +150 -150
  83. package/dist/C_WorkFlow.d.cts +2 -2
  84. package/dist/C_WorkFlow.d.ts +2 -2
  85. package/dist/C_WorkFlow2.cjs +1 -1
  86. package/dist/C_WorkFlow2.js +1 -1
  87. package/dist/constants3.d.cts +3 -3
  88. package/dist/constants3.d.ts +3 -3
  89. package/dist/constants4.d.cts +8 -8
  90. package/dist/constants4.d.ts +8 -8
  91. package/dist/constants5.d.cts +2 -2
  92. package/dist/constants5.d.ts +2 -2
  93. package/dist/data.d.cts +10 -10
  94. package/dist/data.d.ts +10 -10
  95. package/dist/dateRange.d.cts +197 -0
  96. package/dist/dateRange.d.ts +197 -0
  97. package/dist/graphics.cjs +1 -0
  98. package/dist/graphics.d.cts +837 -0
  99. package/dist/graphics.d.ts +837 -0
  100. package/dist/graphics.js +1 -0
  101. package/dist/index.cjs +1 -1
  102. package/dist/index.d.cts +47 -43
  103. package/dist/index.d.ts +47 -44
  104. package/dist/index.js +1 -1
  105. package/dist/index.vue.d.cts +5 -5
  106. package/dist/index.vue.d.ts +5 -5
  107. package/dist/index10.vue.d.cts +4 -4
  108. package/dist/index10.vue.d.ts +54 -69
  109. package/dist/index11.vue.d.cts +54 -69
  110. package/dist/index11.vue.d.ts +52 -58
  111. package/dist/index12.vue.d.cts +52 -58
  112. package/dist/index12.vue.d.ts +124 -50
  113. package/dist/index13.vue.d.cts +124 -50
  114. package/dist/index13.vue.d.ts +51 -123
  115. package/dist/index14.vue.d.cts +51 -123
  116. package/dist/index14.vue.d.ts +26 -52
  117. package/dist/index15.vue.d.cts +26 -52
  118. package/dist/index15.vue.d.ts +12 -26
  119. package/dist/index16.vue.d.cts +12 -26
  120. package/dist/index16.vue.d.ts +129 -13
  121. package/dist/index17.vue.d.cts +129 -13
  122. package/dist/index17.vue.d.ts +76 -129
  123. package/dist/index18.vue.d.cts +76 -129
  124. package/dist/index18.vue.d.ts +65 -75
  125. package/dist/index19.vue.d.cts +97 -75
  126. package/dist/index19.vue.d.ts +94 -62
  127. package/dist/index2.vue.d.cts +2 -2
  128. package/dist/index2.vue.d.ts +2 -2
  129. package/dist/index20.vue.d.cts +40 -91
  130. package/dist/index20.vue.d.ts +40 -91
  131. package/dist/index21.vue.d.cts +89 -40
  132. package/dist/index21.vue.d.ts +89 -40
  133. package/dist/index22.vue.d.cts +37 -95
  134. package/dist/index22.vue.d.ts +37 -95
  135. package/dist/index23.vue.d.cts +8 -34
  136. package/dist/index23.vue.d.ts +8 -34
  137. package/dist/index24.vue.d.cts +86 -9
  138. package/dist/index24.vue.d.ts +86 -9
  139. package/dist/index25.vue.d.cts +99 -654
  140. package/dist/index25.vue.d.ts +99 -654
  141. package/dist/index26.vue.d.cts +66 -87
  142. package/dist/index26.vue.d.ts +66 -87
  143. package/dist/index3.vue.d.cts +3 -3
  144. package/dist/index3.vue.d.ts +3 -3
  145. package/dist/index4.vue.d.cts +3 -3
  146. package/dist/index6.vue.d.ts +3 -3
  147. package/dist/index7.vue.d.cts +3 -3
  148. package/dist/index8.vue.d.ts +2 -2
  149. package/dist/index9.vue.d.cts +2 -2
  150. package/dist/index9.vue.d.ts +4 -4
  151. package/dist/mapUtils.d.cts +1 -1
  152. package/dist/mapUtils.d.ts +1 -1
  153. package/dist/presets.d.cts +1 -1
  154. package/dist/presets.d.ts +1 -1
  155. package/dist/style.css +499 -510
  156. package/dist/types.d.ts +51 -0
  157. package/dist/types2.d.cts +51 -0
  158. package/dist/useCalendarEvents.d.cts +3 -3
  159. package/dist/useCalendarEvents.d.ts +3 -3
  160. package/dist/useCollapsePanel.d.cts +6 -6
  161. package/dist/useCollapsePanel.d.ts +6 -6
  162. package/dist/useCropperCore.d.cts +7 -7
  163. package/dist/useCropperCore.d.ts +7 -7
  164. package/dist/useDraggableLayout.d.cts +94 -125
  165. package/dist/useDraggableLayout.d.ts +94 -125
  166. package/dist/useDynamicFormState.d.cts +21 -8
  167. package/dist/useDynamicFormState.d.ts +21 -8
  168. package/dist/useEdgeInteraction.d.cts +10 -5
  169. package/dist/useEdgeInteraction.d.ts +10 -5
  170. package/dist/useFullscreen.d.cts +3 -3
  171. package/dist/useFullscreen.d.ts +3 -3
  172. package/dist/useInfiniteScroll.d.cts +2 -2
  173. package/dist/useInfiniteScroll.d.ts +2 -2
  174. package/dist/useQRCode.d.cts +4 -4
  175. package/dist/useQRCode.d.ts +4 -4
  176. package/dist/useSignatureHistory.d.cts +7 -7
  177. package/dist/useSignatureHistory.d.ts +7 -7
  178. package/dist/useSplitResize.d.cts +1 -1
  179. package/dist/useSplitResize.d.ts +1 -1
  180. package/dist/useTableQuery.cjs +2 -2
  181. package/dist/useTableQuery.d.cts +473 -463
  182. package/dist/useTableQuery.d.ts +473 -463
  183. package/dist/useTableQuery.js +2 -2
  184. package/dist/useTimeSelection.d.cts +19 -52
  185. package/dist/useTimeSelection.d.ts +19 -52
  186. package/dist/useWorkflowValidation.d.cts +534 -155
  187. package/dist/useWorkflowValidation.d.ts +534 -155
  188. package/dist/verification.d.cts +2 -2
  189. package/dist/verification.d.ts +2 -2
  190. package/docs/guides/usage.en.md +15 -0
  191. package/docs/guides/usage.md +15 -0
  192. package/package.json +1 -1
  193. package/dist/C_VtableGantt2.cjs +0 -1
  194. package/dist/C_VtableGantt2.js +0 -1
  195. package/dist/index27.vue.d.cts +0 -111
  196. package/dist/index27.vue.d.ts +0 -111
  197. package/dist/index28.vue.d.cts +0 -84
  198. package/dist/index28.vue.d.ts +0 -84
  199. package/dist/useSearchState.d.cts +0 -163
  200. package/dist/useSearchState.d.ts +0 -163
@@ -1,19 +1,96 @@
1
+ import { i as TagItem } from "./types.cjs";
1
2
  import * as vue from "vue";
3
+ import { Ref } from "vue";
2
4
 
3
- //#region src/components/C_Theme/types.d.ts
4
- type ThemeMode = 'system' | 'light' | 'dark';
5
+ //#region src/components/C_TagsView/useTagsView.d.ts
6
+ interface UseTagsViewOptions {
7
+ /** localStorage 持久化 key,传空字符串则不持久化 */
8
+ persistKey?: string;
9
+ /** 首页路径,用于 removeAll 后的回退 */
10
+ homePath?: string;
11
+ }
12
+ /**
13
+ * 标签页管理 composable
14
+ *
15
+ * 独立于组件使用 — 可在任何地方管理标签状态
16
+ *
17
+ * @example 独立使用
18
+ * ```ts
19
+ * const tags = useTagsView({ persistKey: 'my-tags' })
20
+ * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
+ * ```
22
+ */
23
+ declare function useTagsView(options?: UseTagsViewOptions): {
24
+ tagsViewList: Ref<TagItem[], TagItem[]>;
25
+ activeTag: Ref<string, string>;
26
+ homePath: string;
27
+ initTags: (tags?: TagItem[]) => void;
28
+ setActiveTag: (path: string) => void;
29
+ addTag: (tag: TagItem) => void;
30
+ removeTag: (index: number) => string | null;
31
+ removeOtherTags: (index: number) => void;
32
+ removeLeftTags: (index: number) => void;
33
+ removeRightTags: (index: number) => void;
34
+ removeAllTags: () => void;
35
+ };
36
+ //#endregion
37
+ //#region src/components/C_TagsView/types.d.ts
38
+ interface ContextMenuLabels {
39
+ close?: string;
40
+ closeOthers?: string;
41
+ closeLeft?: string;
42
+ closeRight?: string;
43
+ closeAll?: string;
44
+ }
5
45
  //#endregion
6
- //#region src/components/C_Theme/index.vue.d.ts
46
+ //#region src/components/C_TagsView/index.vue.d.ts
47
+ interface LegacyContextMenuLabels extends ContextMenuLabels {
48
+ close?: string;
49
+ closeOthers?: string;
50
+ closeLeft?: string;
51
+ closeRight?: string;
52
+ closeAll?: string;
53
+ }
7
54
  type __VLS_Props = {
8
- modelValue?: ThemeMode;
55
+ /**
56
+ * 标签文本格式化函数(用于 i18n)
57
+ */
58
+ labelFormatter?: (label: string) => string; /** 首页路径 */
59
+ homePath?: string; /** 首页标题(原始文本) */
60
+ homeTitle?: string; /** 首页图标 */
61
+ homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
+ persistKey?: string; /** 右键菜单文案(国际化适配) */
63
+ contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
+ tagsViewOptions?: UseTagsViewOptions;
9
65
  };
10
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
- "update:modelValue": (mode: ThemeMode) => any;
66
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
+ /** useTagsView composable 实例 */tags: {
68
+ tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
+ activeTag: vue.Ref<string, string>;
70
+ homePath: string;
71
+ initTags: (tags?: TagItem[]) => void;
72
+ setActiveTag: (path: string) => void;
73
+ addTag: (tag: TagItem) => void;
74
+ removeTag: (index: number) => string | null;
75
+ removeOtherTags: (index: number) => void;
76
+ removeLeftTags: (index: number) => void;
77
+ removeRightTags: (index: number) => void;
78
+ removeAllTags: () => void;
79
+ }; /** 滚动到指定标签 */
80
+ scrollToTag: (path: string) => void;
81
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
+ close: (fallbackPath: string) => any;
83
+ closeAll: () => any;
12
84
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
85
+ onClose?: ((fallbackPath: string) => any) | undefined;
86
+ onCloseAll?: (() => any) | undefined;
14
87
  }>, {
15
- modelValue: ThemeMode;
88
+ persistKey: string;
89
+ homePath: string;
90
+ homeTitle: string;
91
+ homeIcon: string;
92
+ contextMenuLabels: LegacyContextMenuLabels;
16
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
17
94
  declare const _default: typeof __VLS_export;
18
95
  //#endregion
19
- export { ThemeMode as n, _default as t };
96
+ export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
@@ -1,19 +1,96 @@
1
+ import { s as TagItem } from "./public.js";
1
2
  import * as vue from "vue";
3
+ import { Ref } from "vue";
2
4
 
3
- //#region src/components/C_Theme/types.d.ts
4
- type ThemeMode = 'system' | 'light' | 'dark';
5
+ //#region src/components/C_TagsView/useTagsView.d.ts
6
+ interface UseTagsViewOptions {
7
+ /** localStorage 持久化 key,传空字符串则不持久化 */
8
+ persistKey?: string;
9
+ /** 首页路径,用于 removeAll 后的回退 */
10
+ homePath?: string;
11
+ }
12
+ /**
13
+ * 标签页管理 composable
14
+ *
15
+ * 独立于组件使用 — 可在任何地方管理标签状态
16
+ *
17
+ * @example 独立使用
18
+ * ```ts
19
+ * const tags = useTagsView({ persistKey: 'my-tags' })
20
+ * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
+ * ```
22
+ */
23
+ declare function useTagsView(options?: UseTagsViewOptions): {
24
+ tagsViewList: Ref<TagItem[], TagItem[]>;
25
+ activeTag: Ref<string, string>;
26
+ homePath: string;
27
+ initTags: (tags?: TagItem[]) => void;
28
+ setActiveTag: (path: string) => void;
29
+ addTag: (tag: TagItem) => void;
30
+ removeTag: (index: number) => string | null;
31
+ removeOtherTags: (index: number) => void;
32
+ removeLeftTags: (index: number) => void;
33
+ removeRightTags: (index: number) => void;
34
+ removeAllTags: () => void;
35
+ };
36
+ //#endregion
37
+ //#region src/components/C_TagsView/types.d.ts
38
+ interface ContextMenuLabels {
39
+ close?: string;
40
+ closeOthers?: string;
41
+ closeLeft?: string;
42
+ closeRight?: string;
43
+ closeAll?: string;
44
+ }
5
45
  //#endregion
6
- //#region src/components/C_Theme/index.vue.d.ts
46
+ //#region src/components/C_TagsView/index.vue.d.ts
47
+ interface LegacyContextMenuLabels extends ContextMenuLabels {
48
+ close?: string;
49
+ closeOthers?: string;
50
+ closeLeft?: string;
51
+ closeRight?: string;
52
+ closeAll?: string;
53
+ }
7
54
  type __VLS_Props = {
8
- modelValue?: ThemeMode;
55
+ /**
56
+ * 标签文本格式化函数(用于 i18n)
57
+ */
58
+ labelFormatter?: (label: string) => string; /** 首页路径 */
59
+ homePath?: string; /** 首页标题(原始文本) */
60
+ homeTitle?: string; /** 首页图标 */
61
+ homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
+ persistKey?: string; /** 右键菜单文案(国际化适配) */
63
+ contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
+ tagsViewOptions?: UseTagsViewOptions;
9
65
  };
10
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
- "update:modelValue": (mode: ThemeMode) => any;
66
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
+ /** useTagsView composable 实例 */tags: {
68
+ tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
+ activeTag: vue.Ref<string, string>;
70
+ homePath: string;
71
+ initTags: (tags?: TagItem[]) => void;
72
+ setActiveTag: (path: string) => void;
73
+ addTag: (tag: TagItem) => void;
74
+ removeTag: (index: number) => string | null;
75
+ removeOtherTags: (index: number) => void;
76
+ removeLeftTags: (index: number) => void;
77
+ removeRightTags: (index: number) => void;
78
+ removeAllTags: () => void;
79
+ }; /** 滚动到指定标签 */
80
+ scrollToTag: (path: string) => void;
81
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
+ close: (fallbackPath: string) => any;
83
+ closeAll: () => any;
12
84
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
85
+ onClose?: ((fallbackPath: string) => any) | undefined;
86
+ onCloseAll?: (() => any) | undefined;
14
87
  }>, {
15
- modelValue: ThemeMode;
88
+ persistKey: string;
89
+ homePath: string;
90
+ homeTitle: string;
91
+ homeIcon: string;
92
+ contextMenuLabels: LegacyContextMenuLabels;
16
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
17
94
  declare const _default: typeof __VLS_export;
18
95
  //#endregion
19
- export { ThemeMode as n, _default as t };
96
+ export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };