@robot-admin/naive-ui-components 0.16.0 → 0.17.1

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 (225) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +12 -9
  3. package/README_EN.md +12 -9
  4. package/dist/C_ActionBar.css +56 -48
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV2.cjs +1 -1
  8. package/dist/C_AntV2.js +3 -3
  9. package/dist/C_Barcode.css +6 -6
  10. package/dist/C_Barcode2.cjs +1 -1
  11. package/dist/C_Barcode2.js +1 -1
  12. package/dist/C_Chat.css +269 -185
  13. package/dist/C_Chat2.cjs +1 -1
  14. package/dist/C_Chat2.js +1 -1
  15. package/dist/C_Code.css +26 -26
  16. package/dist/C_Code2.cjs +1 -1
  17. package/dist/C_Code2.js +1 -1
  18. package/dist/C_Draggable2.cjs +1 -1
  19. package/dist/C_Draggable2.js +1 -1
  20. package/dist/C_FilePreview.css +96 -57
  21. package/dist/C_FilePreview2.cjs +1 -1
  22. package/dist/C_FilePreview2.js +1 -1
  23. package/dist/C_Form.base.css +295 -277
  24. package/dist/C_Form.css +295 -277
  25. package/dist/C_Form.d.cts +2 -1
  26. package/dist/C_Form.d.ts +2 -1
  27. package/dist/C_FormModal.css +10 -10
  28. package/dist/C_FormModal2.cjs +1 -1
  29. package/dist/C_FormModal2.js +1 -1
  30. package/dist/C_FormSearch.css +67 -68
  31. package/dist/C_FormSearch.d.cts +2 -1
  32. package/dist/C_FormSearch.d.ts +2 -1
  33. package/dist/C_FormSearch2.cjs +1 -1
  34. package/dist/C_FormSearch2.js +1 -1
  35. package/dist/C_FullCalendar2.cjs +1 -1
  36. package/dist/C_FullCalendar2.js +1 -1
  37. package/dist/C_GlobalSearch.css +140 -118
  38. package/dist/C_GlobalSearch2.cjs +1 -1
  39. package/dist/C_GlobalSearch2.js +1 -1
  40. package/dist/C_ImageCropper.css +12 -10
  41. package/dist/C_ImageCropper2.cjs +1 -1
  42. package/dist/C_ImageCropper2.js +1 -1
  43. package/dist/C_Login.css +79 -79
  44. package/dist/C_Login2.cjs +1 -1
  45. package/dist/C_Login2.js +1 -1
  46. package/dist/C_Map.css +10 -10
  47. package/dist/C_Map2.cjs +1 -1
  48. package/dist/C_Map2.js +1 -1
  49. package/dist/C_OrgChart.css +28 -4
  50. package/dist/C_OrgChart2.cjs +1 -1
  51. package/dist/C_OrgChart2.js +1 -1
  52. package/dist/C_QRCode2.cjs +1 -1
  53. package/dist/C_QRCode2.js +1 -1
  54. package/dist/C_Signature.css +15 -15
  55. package/dist/C_Signature2.cjs +1 -1
  56. package/dist/C_Signature2.js +1 -1
  57. package/dist/C_SplitPane.cjs +1 -1
  58. package/dist/C_SplitPane.css +251 -109
  59. package/dist/C_SplitPane.js +1 -1
  60. package/dist/C_SplitPane2.cjs +1 -1
  61. package/dist/C_SplitPane2.js +1 -1
  62. package/dist/C_Table.base.css +491 -563
  63. package/dist/C_Table.cjs +1 -1
  64. package/dist/C_Table.css +491 -563
  65. package/dist/C_Table.d.cts +3 -2
  66. package/dist/C_Table.d.ts +4 -2
  67. package/dist/C_Table.js +1 -1
  68. package/dist/C_TagsView2.cjs +1 -1
  69. package/dist/C_TagsView2.js +1 -1
  70. package/dist/C_Transfer.css +93 -84
  71. package/dist/C_Transfer2.cjs +1 -1
  72. package/dist/C_Transfer2.js +1 -1
  73. package/dist/C_Tree.css +72 -125
  74. package/dist/C_Tree.d.cts +3 -2
  75. package/dist/C_Tree.d.ts +15 -2
  76. package/dist/C_Tree2.cjs +1 -1
  77. package/dist/C_Tree2.js +1 -1
  78. package/dist/C_Upload.css +5 -5
  79. package/dist/C_Upload2.cjs +1 -1
  80. package/dist/C_Upload2.js +1 -1
  81. package/dist/C_VideoPlayer2.cjs +4 -3
  82. package/dist/C_VideoPlayer2.js +4 -3
  83. package/dist/C_VtableGantt.css +29 -28
  84. package/dist/C_VtableGantt2.cjs +1 -1
  85. package/dist/C_VtableGantt2.js +1 -1
  86. package/dist/C_WaterFall.css +29 -29
  87. package/dist/C_WaterFall2.cjs +1 -1
  88. package/dist/C_WaterFall2.js +1 -1
  89. package/dist/C_WorkFlow2.cjs +1 -1
  90. package/dist/C_WorkFlow2.js +1 -1
  91. package/dist/Card.cjs +1 -1
  92. package/dist/Card.js +1 -1
  93. package/dist/Custom.cjs +1 -1
  94. package/dist/Custom.js +1 -1
  95. package/dist/Dynamic.cjs +1 -1
  96. package/dist/Dynamic.js +1 -1
  97. package/dist/Steps.cjs +1 -1
  98. package/dist/Steps.js +1 -1
  99. package/dist/Tabs.cjs +1 -1
  100. package/dist/Tabs.js +1 -1
  101. package/dist/constants.d.cts +2 -2
  102. package/dist/constants.d.ts +2 -2
  103. package/dist/constants2.d.cts +2 -2
  104. package/dist/constants2.d.ts +2 -2
  105. package/dist/constants3.d.cts +2 -2
  106. package/dist/constants3.d.ts +2 -2
  107. package/dist/constants4.d.cts +4 -4
  108. package/dist/constants4.d.ts +4 -4
  109. package/dist/constants5.d.cts +3 -7
  110. package/dist/constants5.d.ts +3 -7
  111. package/dist/data.d.cts +10 -10
  112. package/dist/data.d.ts +10 -10
  113. package/dist/density.cjs +1 -0
  114. package/dist/density.d.cts +15 -0
  115. package/dist/density.d.ts +15 -0
  116. package/dist/density.js +1 -0
  117. package/dist/helpers.cjs +1 -1
  118. package/dist/helpers.js +1 -1
  119. package/dist/index.cjs +1 -1
  120. package/dist/index.d.cts +3 -3
  121. package/dist/index.d.ts +5 -3
  122. package/dist/index.js +1 -1
  123. package/dist/index.vue.d.cts +5 -5
  124. package/dist/index.vue.d.ts +5 -5
  125. package/dist/index10.vue.d.cts +5 -5
  126. package/dist/index10.vue.d.ts +3 -3
  127. package/dist/index11.vue.d.cts +3 -3
  128. package/dist/index11.vue.d.ts +5 -5
  129. package/dist/index12.vue.d.cts +5 -5
  130. package/dist/index13.vue.d.ts +5 -5
  131. package/dist/index14.vue.d.cts +5 -5
  132. package/dist/index14.vue.d.ts +9 -9
  133. package/dist/index15.vue.d.cts +9 -9
  134. package/dist/index15.vue.d.ts +3 -3
  135. package/dist/index16.vue.d.cts +3 -3
  136. package/dist/index17.vue.d.ts +1 -1
  137. package/dist/index18.vue.d.cts +1 -1
  138. package/dist/index18.vue.d.ts +7 -7
  139. package/dist/index19.vue.d.cts +7 -7
  140. package/dist/index19.vue.d.ts +5 -5
  141. package/dist/index2.vue.d.cts +2 -2
  142. package/dist/index2.vue.d.ts +2 -2
  143. package/dist/index20.vue.d.cts +6 -2
  144. package/dist/index20.vue.d.ts +6 -2
  145. package/dist/index21.vue.d.cts +2 -2
  146. package/dist/index21.vue.d.ts +2 -2
  147. package/dist/index22.vue.d.cts +2 -2
  148. package/dist/index22.vue.d.ts +2 -2
  149. package/dist/index23.vue.d.cts +2 -2
  150. package/dist/index23.vue.d.ts +2 -2
  151. package/dist/index25.vue.d.cts +5 -5
  152. package/dist/index25.vue.d.ts +5 -5
  153. package/dist/index27.vue.d.cts +2 -2
  154. package/dist/index27.vue.d.ts +2 -2
  155. package/dist/index28.vue.d.cts +7 -3
  156. package/dist/index28.vue.d.ts +7 -3
  157. package/dist/index3.vue.d.cts +3 -3
  158. package/dist/index3.vue.d.ts +3 -3
  159. package/dist/index4.vue.d.cts +5 -5
  160. package/dist/index5.vue.d.ts +2 -2
  161. package/dist/index6.vue.d.cts +2 -2
  162. package/dist/index6.vue.d.ts +7 -4
  163. package/dist/index7.vue.d.cts +7 -4
  164. package/dist/index7.vue.d.ts +2 -2
  165. package/dist/index8.vue.d.cts +2 -2
  166. package/dist/index8.vue.d.ts +4 -6
  167. package/dist/index9.vue.d.cts +4 -6
  168. package/dist/index9.vue.d.ts +5 -5
  169. package/dist/mapUtils.d.cts +4 -4
  170. package/dist/mapUtils.d.ts +4 -4
  171. package/dist/presets.d.cts +4 -1
  172. package/dist/presets.d.ts +4 -1
  173. package/dist/style.css +1763 -1566
  174. package/dist/useCalendarEvents.d.cts +10 -9
  175. package/dist/useCalendarEvents.d.ts +10 -9
  176. package/dist/useCollapsePanel.d.cts +3 -3
  177. package/dist/useCollapsePanel.d.ts +3 -3
  178. package/dist/useCropperCore.d.cts +9 -9
  179. package/dist/useCropperCore.d.ts +9 -9
  180. package/dist/useDraggableLayout.d.cts +15 -13
  181. package/dist/useDraggableLayout.d.ts +15 -13
  182. package/dist/useDynamicFormState.d.cts +5 -2
  183. package/dist/useDynamicFormState.d.ts +5 -2
  184. package/dist/useEdgeInteraction.d.cts +3 -3
  185. package/dist/useEdgeInteraction.d.ts +3 -3
  186. package/dist/useFullscreen.d.cts +4 -0
  187. package/dist/useFullscreen.d.ts +4 -0
  188. package/dist/useGlobalSearch.d.cts +9 -4
  189. package/dist/useGlobalSearch.d.ts +9 -4
  190. package/dist/useInfiniteScroll.d.cts +4 -1
  191. package/dist/useInfiniteScroll.d.ts +4 -1
  192. package/dist/useQRCode.d.cts +3 -3
  193. package/dist/useQRCode.d.ts +3 -3
  194. package/dist/useSearchState.d.cts +8 -6
  195. package/dist/useSearchState.d.ts +8 -6
  196. package/dist/useSignatureHistory.d.cts +7 -7
  197. package/dist/useSignatureHistory.d.ts +7 -7
  198. package/dist/useSplitResize.d.cts +50 -61
  199. package/dist/useSplitResize.d.ts +50 -61
  200. package/dist/useTableQuery.cjs +3 -3
  201. package/dist/useTableQuery.d.cts +237 -13
  202. package/dist/useTableQuery.d.ts +237 -13
  203. package/dist/useTableQuery.js +3 -3
  204. package/dist/useTimeSelection.d.cts +2 -2
  205. package/dist/useTimeSelection.d.ts +2 -2
  206. package/dist/useWorkflowValidation.d.cts +3 -3
  207. package/dist/useWorkflowValidation.d.ts +3 -3
  208. package/dist/verification.d.cts +5 -5
  209. package/dist/verification.d.ts +5 -5
  210. package/docs/component-review-20261019.md +55 -0
  211. package/docs/guides/form-density.en.md +42 -0
  212. package/docs/guides/form-density.md +59 -0
  213. package/docs/guides/runtime-performance.md +38 -0
  214. package/docs/guides/split-pane.en.md +103 -0
  215. package/docs/guides/split-pane.md +126 -0
  216. package/docs/guides/table-density.md +87 -0
  217. package/docs/guides/transfer.md +11 -0
  218. package/docs/guides/tree.md +157 -0
  219. package/docs/guides/usage.en.md +2 -0
  220. package/docs/guides/usage.md +2 -0
  221. package/docs/runtime-review-20261019.md +41 -0
  222. package/docs/wl-ui-produce-coverage.md +62 -0
  223. package/package.json +4 -2
  224. package/dist/useTreeOperations.d.cts +0 -185
  225. package/dist/useTreeOperations.d.ts +0 -185
@@ -1,185 +0,0 @@
1
- import * as vue from "vue";
2
- import { Ref } from "vue";
3
-
4
- //#region src/components/C_Tree/types.d.ts
5
- type TreeMode = "menu" | "file" | "org" | "custom";
6
- type StatusType = "success" | "warning" | "error" | "info";
7
- type ButtonType = "primary" | "info" | "warning" | "error" | "default";
8
- interface TreeOption {
9
- [key: string]: any;
10
- id?: string | number;
11
- key?: string | number;
12
- label?: string;
13
- children?: TreeOption[];
14
- }
15
- interface DropInfo {
16
- node: TreeOption;
17
- dragNode: TreeOption;
18
- dropPosition: "before" | "inside" | "after";
19
- event: DragEvent;
20
- }
21
- interface TreeNodeData {
22
- [key: string]: any;
23
- id: string | number;
24
- name: string;
25
- type?: string;
26
- children?: TreeNodeData[];
27
- }
28
- interface StatusConfig {
29
- field: string;
30
- values: Record<string | number, {
31
- text: string;
32
- type: StatusType;
33
- }>;
34
- }
35
- interface ActionConfig {
36
- key: string;
37
- text: string;
38
- icon: string;
39
- type?: ButtonType;
40
- show?: (node: TreeNodeData) => boolean;
41
- confirm?: string;
42
- }
43
- interface IconConfig {
44
- default?: string;
45
- typeMap?: Record<string, string>;
46
- colorMap?: Record<string, string>;
47
- }
48
- interface TreeProps {
49
- data: TreeNodeData[];
50
- mode?: TreeMode;
51
- keyField?: string;
52
- labelField?: string;
53
- childrenField?: string;
54
- searchPattern?: string;
55
- searchable?: boolean;
56
- searchPlaceholder?: string;
57
- draggable?: boolean;
58
- showLine?: boolean;
59
- showToolbar?: boolean;
60
- addable?: boolean;
61
- addText?: string;
62
- refreshable?: boolean;
63
- iconField?: string;
64
- iconConfig?: IconConfig;
65
- statusConfigs?: StatusConfig[];
66
- actions?: ActionConfig[];
67
- defaultExpandAll?: boolean;
68
- defaultExpandedKeys?: (string | number)[];
69
- defaultSelectedKeys?: (string | number)[];
70
- }
71
- interface TreeExpose {
72
- expandAll: () => void;
73
- collapseAll: () => void;
74
- selectNode: (key: string | number) => void;
75
- getSelectedNode: () => TreeNodeData | null;
76
- expandedKeys: Ref<(string | number)[]>;
77
- selectedKeys: Ref<(string | number)[]>;
78
- }
79
- interface TreeEmits {
80
- "node-select": [node: TreeNodeData | null, selectedKeys: (string | number)[]];
81
- "node-action": [action: string, node: TreeNodeData];
82
- "node-drop": [info: DropInfo];
83
- add: [parentNode?: TreeNodeData];
84
- refresh: [];
85
- }
86
- //#endregion
87
- //#region src/components/C_Tree/index.vue.d.ts
88
- declare var __VLS_13: {};
89
- type __VLS_Slots = {} & {
90
- 'toolbar-actions'?: (props: typeof __VLS_13) => any;
91
- };
92
- declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
93
- refresh: () => any;
94
- add: (parentNode?: TreeNodeData | undefined) => any;
95
- "node-select": (node: TreeNodeData | null, selectedKeys: (string | number)[]) => any;
96
- "node-action": (action: string, node: TreeNodeData) => any;
97
- "node-drop": (info: DropInfo) => any;
98
- }, string, vue.PublicProps, Readonly<TreeProps> & Readonly<{
99
- onRefresh?: (() => any) | undefined;
100
- onAdd?: ((parentNode?: TreeNodeData | undefined) => any) | undefined;
101
- "onNode-select"?: ((node: TreeNodeData | null, selectedKeys: (string | number)[]) => any) | undefined;
102
- "onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
103
- "onNode-drop"?: ((info: DropInfo) => any) | undefined;
104
- }>, {
105
- showToolbar: boolean;
106
- mode: TreeMode;
107
- draggable: boolean;
108
- actions: ActionConfig[];
109
- defaultExpandedKeys: (string | number)[];
110
- labelField: string;
111
- keyField: string;
112
- childrenField: string;
113
- searchPattern: string;
114
- searchable: boolean;
115
- searchPlaceholder: string;
116
- showLine: boolean;
117
- addable: boolean;
118
- addText: string;
119
- refreshable: boolean;
120
- iconField: string;
121
- iconConfig: IconConfig;
122
- statusConfigs: StatusConfig[];
123
- defaultExpandAll: boolean;
124
- defaultSelectedKeys: (string | number)[];
125
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
126
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
127
- declare const _default: typeof __VLS_export;
128
- type __VLS_WithSlots<T, S> = T & {
129
- new (): {
130
- $slots: S;
131
- };
132
- };
133
- //#endregion
134
- //#region src/components/C_Tree/data.d.ts
135
- declare const presetConfigs: Record<TreeMode, Partial<TreeProps>>;
136
- //#endregion
137
- //#region src/components/C_Tree/composables/useTreeOperations.d.ts
138
- type EmitFn = {
139
- (event: 'node-select', node: TreeNodeData | null, selectedKeys: (string | number)[]): void;
140
- (event: 'node-action', action: string, node: TreeNodeData): void;
141
- (event: 'node-drop', info: DropInfo): void;
142
- (event: 'add', parentNode?: TreeNodeData): void;
143
- (event: 'refresh'): void;
144
- };
145
- /**
146
- *
147
- */
148
- declare function useTreeOperations(props: TreeProps, emit: EmitFn): {
149
- internalSearchPattern: vue.Ref<string, string>;
150
- expandedKeys: vue.Ref<(string | number)[], (string | number)[]>;
151
- selectedKeys: vue.Ref<(string | number)[], (string | number)[]>;
152
- isAllExpanded: vue.ComputedRef<boolean>;
153
- treeData: vue.ComputedRef<TreeOption[]>;
154
- currentSearchPattern: vue.ComputedRef<string>;
155
- renderPrefix: ({
156
- option
157
- }: {
158
- option: TreeOption;
159
- }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
160
- [key: string]: any;
161
- }>;
162
- renderLabel: ({
163
- option
164
- }: {
165
- option: TreeOption;
166
- }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
167
- [key: string]: any;
168
- }>;
169
- renderSuffix: ({
170
- option
171
- }: {
172
- option: TreeOption;
173
- }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
174
- [key: string]: any;
175
- }>;
176
- toggleExpandAll: () => void;
177
- handleExpandedKeysChange: (keys: (string | number)[]) => void;
178
- handleSelectedKeysChange: (keys: (string | number)[]) => void;
179
- handleDrop: (info: DropInfo) => void;
180
- handleAdd: () => void;
181
- handleRefresh: () => void;
182
- expose: TreeExpose;
183
- };
184
- //#endregion
185
- export { ButtonType as a, StatusConfig as c, TreeExpose as d, TreeMode as f, TreeProps as h, ActionConfig as i, StatusType as l, TreeOption as m, presetConfigs as n, DropInfo as o, TreeNodeData as p, _default as r, IconConfig as s, useTreeOperations as t, TreeEmits as u };