@robot-admin/naive-ui-components 0.12.1 → 0.13.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.
- package/CHANGELOG.md +20 -0
- package/README.md +60 -1
- package/README_EN.md +59 -0
- package/dist/C_ActionBar.css +60 -60
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +49 -49
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_AudioPlayer.css +81 -66
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AvatarGroup.css +40 -25
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_Barcode.css +6 -6
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Breadcrumb.css +14 -14
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.css +50 -50
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +2 -2
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat.css +96 -78
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +52 -28
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +48 -42
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +1 -1
- package/dist/C_CollapsePanel.css +14 -14
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +14 -14
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +94 -55
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Draggable.css +48 -48
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +13 -14
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +18 -18
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +36 -36
- package/dist/C_Form.css +49 -50
- package/dist/C_Form2.cjs +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/C_FormModal.css +8 -8
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +45 -45
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +1 -1
- package/dist/C_FormulaEditor.css +94 -55
- package/dist/C_FormulaEditor2.cjs +2 -2
- package/dist/C_FormulaEditor2.js +2 -2
- package/dist/C_FullCalendar.css +8 -1
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +137 -14
- package/dist/C_Guide.d.cts +2 -2
- package/dist/C_Guide.d.ts +2 -2
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.css +14 -14
- package/dist/C_Icon2.cjs +1 -1
- package/dist/C_Icon2.js +1 -1
- package/dist/C_ImageCropper.css +22 -22
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Language.css +14 -14
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Login.css +134 -134
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +3 -3
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Markdown.css +35 -35
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_Menu2.cjs +1 -1
- package/dist/C_Menu2.js +1 -1
- package/dist/C_NotificationCenter.css +30 -30
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.css +4 -0
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- package/dist/C_QRCode.css +8 -8
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Signature.css +14 -14
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Skeleton2.cjs +1 -1
- package/dist/C_Skeleton2.js +1 -1
- package/dist/C_SplitPane.css +39 -39
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Steps.css +48 -38
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +160 -160
- package/dist/C_Table.css +173 -174
- package/dist/C_TagsView.css +52 -52
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +14 -14
- package/dist/C_Theme2.cjs +1 -1
- package/dist/C_Theme2.js +1 -1
- package/dist/C_Time.css +4 -4
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.css +76 -58
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +51 -51
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +35 -32
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +53 -50
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_VideoPlayer.css +17 -13
- package/dist/C_VideoPlayer2.cjs +2 -2
- package/dist/C_VideoPlayer2.js +2 -2
- package/dist/C_VtableGantt.css +19 -19
- package/dist/C_VtableGantt2.cjs +1 -1
- package/dist/C_VtableGantt2.js +1 -1
- package/dist/C_WaterFall.css +19 -15
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +123 -123
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +12 -8
- package/dist/constants3.d.ts +12 -8
- package/dist/constants4.d.cts +9 -9
- package/dist/constants4.d.ts +9 -9
- package/dist/constants5.d.cts +4 -4
- package/dist/constants5.d.ts +4 -4
- package/dist/data.d.cts +11 -11
- package/dist/data.d.ts +11 -11
- package/dist/data2.cjs +1 -1
- package/dist/data2.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +7 -5
- package/dist/index.vue.d.ts +7 -5
- package/dist/index10.vue.d.cts +2 -2
- package/dist/index10.vue.d.ts +2 -2
- package/dist/index11.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +5 -5
- package/dist/index12.vue.d.cts +5 -5
- package/dist/index12.vue.d.ts +2 -2
- package/dist/index13.vue.d.cts +2 -2
- package/dist/index13.vue.d.ts +35 -9
- package/dist/index14.vue.d.cts +35 -9
- package/dist/index14.vue.d.ts +15 -48
- package/dist/index15.vue.d.cts +15 -48
- package/dist/index17.vue.d.ts +4 -4
- package/dist/index18.vue.d.cts +4 -4
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index19.vue.d.cts +2 -2
- package/dist/index19.vue.d.ts +2 -2
- package/dist/index2.vue.d.cts +3 -3
- package/dist/index2.vue.d.ts +3 -3
- package/dist/index20.vue.d.cts +2 -2
- package/dist/index20.vue.d.ts +2 -2
- package/dist/index21.vue.d.cts +3 -3
- package/dist/index21.vue.d.ts +3 -3
- package/dist/index22.vue.d.cts +1 -1
- package/dist/index22.vue.d.ts +1 -1
- package/dist/index24.vue.d.cts +3 -3
- package/dist/index24.vue.d.ts +3 -3
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +8 -8
- package/dist/index3.vue.d.ts +8 -8
- package/dist/index4.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +1 -1
- package/dist/index7.vue.d.cts +1 -1
- package/dist/index8.vue.d.ts +3 -3
- package/dist/index9.vue.d.cts +3 -3
- package/dist/index9.vue.d.ts +2 -2
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/style.css +1698 -1365
- package/dist/useCalendarEvents.d.cts +23 -18
- package/dist/useCalendarEvents.d.ts +23 -18
- package/dist/useCollapsePanel.d.cts +1 -0
- package/dist/useCollapsePanel.d.ts +1 -0
- package/dist/useCropperCore.d.cts +32 -17
- package/dist/useCropperCore.d.ts +32 -17
- package/dist/useDraggableLayout.d.cts +3 -3
- package/dist/useDraggableLayout.d.ts +3 -3
- package/dist/useDynamicFormState.d.cts +5 -0
- package/dist/useDynamicFormState.d.ts +5 -0
- package/dist/useEdgeInteraction.d.cts +19 -19
- package/dist/useEdgeInteraction.d.ts +19 -19
- package/dist/useFullscreen.d.cts +6 -6
- package/dist/useFullscreen.d.ts +6 -6
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +6 -5
- package/dist/useQRCode.d.ts +6 -5
- package/dist/useSearchState.d.cts +7 -7
- package/dist/useSearchState.d.ts +7 -7
- package/dist/useSignatureHistory.d.cts +16 -8
- package/dist/useSignatureHistory.d.ts +16 -8
- package/dist/useSplitResize.d.cts +4 -4
- package/dist/useSplitResize.d.ts +4 -4
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +2 -5
- package/dist/useTableQuery.d.ts +2 -5
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +5 -2
- package/dist/useTimeSelection.d.ts +5 -2
- package/dist/useTreeOperations.d.cts +6 -6
- package/dist/useTreeOperations.d.ts +6 -6
- package/dist/useWorkflowValidation.d.cts +4 -2
- package/dist/useWorkflowValidation.d.ts +4 -2
- package/dist/verification.d.cts +3 -3
- package/dist/verification.d.ts +3 -3
- package/package.json +4 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
|
-
import { CalendarOptions } from "@fullcalendar/core";
|
|
3
|
+
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
4
4
|
|
|
5
5
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
6
6
|
interface CalendarEvent {
|
|
@@ -12,11 +12,11 @@ interface CalendarEvent {
|
|
|
12
12
|
editable?: boolean;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
|
-
type CalendarViewType =
|
|
15
|
+
type CalendarViewType = 'dayGridMonth' | 'dayGridWeek' | 'dayGridDay' | 'listWeek';
|
|
16
16
|
interface CalendarEditForm {
|
|
17
17
|
id: string;
|
|
18
18
|
title: string;
|
|
19
|
-
date: number;
|
|
19
|
+
date: number | null;
|
|
20
20
|
startTime: string;
|
|
21
21
|
endTime: string;
|
|
22
22
|
color: string;
|
|
@@ -29,17 +29,17 @@ interface CalendarProps {
|
|
|
29
29
|
showEditDialog?: boolean;
|
|
30
30
|
}
|
|
31
31
|
interface CalendarEmits {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
'update:events': [events: CalendarEvent[]];
|
|
33
|
+
'event-added': [event: CalendarEvent];
|
|
34
|
+
'event-updated': [event: Partial<CalendarEvent>];
|
|
35
|
+
'event-deleted': [event: {
|
|
36
36
|
id: string;
|
|
37
37
|
title: string;
|
|
38
38
|
}];
|
|
39
|
-
|
|
39
|
+
'event-dropped': [event: Partial<CalendarEvent>];
|
|
40
40
|
}
|
|
41
41
|
interface CalendarExpose {
|
|
42
|
-
getApi: () =>
|
|
42
|
+
getApi: () => CalendarApi | undefined;
|
|
43
43
|
addEvent: (event: CalendarEvent) => void;
|
|
44
44
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
45
45
|
deleteEvent: (eventId: string) => void;
|
|
@@ -66,9 +66,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
66
66
|
}) => any) | undefined;
|
|
67
67
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
|
-
events: CalendarEvent[];
|
|
70
69
|
initialView: CalendarViewType;
|
|
71
70
|
editable: boolean;
|
|
71
|
+
events: CalendarEvent[];
|
|
72
72
|
showAddDialog: boolean;
|
|
73
73
|
showEditDialog: boolean;
|
|
74
74
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -105,23 +105,29 @@ type EmitFn = {
|
|
|
105
105
|
*
|
|
106
106
|
*/
|
|
107
107
|
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
108
|
-
calendarRef: Ref<
|
|
108
|
+
calendarRef: Ref<{
|
|
109
|
+
getApi: () => CalendarApi;
|
|
110
|
+
} | null, {
|
|
111
|
+
getApi: () => CalendarApi;
|
|
112
|
+
} | {
|
|
113
|
+
getApi: () => CalendarApi;
|
|
114
|
+
} | null>;
|
|
109
115
|
calendarOptions: Ref<CalendarOptions, CalendarOptions>;
|
|
110
116
|
showActionDialog: Ref<boolean, boolean>;
|
|
111
117
|
showEditModal: Ref<boolean, boolean>;
|
|
112
118
|
isEditing: Ref<boolean, boolean>;
|
|
113
|
-
selectedEvent:
|
|
119
|
+
selectedEvent: vue.ShallowRef<EventApi | null, EventApi | null>;
|
|
114
120
|
editForm: Ref<{
|
|
115
121
|
id: string;
|
|
116
122
|
title: string;
|
|
117
|
-
date: number;
|
|
123
|
+
date: number | null;
|
|
118
124
|
startTime: string;
|
|
119
125
|
endTime: string;
|
|
120
126
|
color: string;
|
|
121
127
|
}, CalendarEditForm | {
|
|
122
128
|
id: string;
|
|
123
129
|
title: string;
|
|
124
|
-
date: number;
|
|
130
|
+
date: number | null;
|
|
125
131
|
startTime: string;
|
|
126
132
|
endTime: string;
|
|
127
133
|
color: string;
|
|
@@ -131,16 +137,15 @@ declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
|
131
137
|
saveEvent: () => boolean;
|
|
132
138
|
deleteEvent: () => void;
|
|
133
139
|
expose: {
|
|
134
|
-
getApi: () =>
|
|
140
|
+
getApi: () => CalendarApi | undefined;
|
|
135
141
|
addEvent: (event: CalendarEvent) => void;
|
|
136
142
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
137
143
|
deleteEvent: (eventId: string) => void;
|
|
138
144
|
getEvents: () => {
|
|
139
|
-
|
|
145
|
+
start: string | Date;
|
|
146
|
+
end: string | Date | undefined;
|
|
140
147
|
id: string;
|
|
141
148
|
title: string;
|
|
142
|
-
start: Date | string;
|
|
143
|
-
end?: (Date | string) | undefined;
|
|
144
149
|
color?: string | undefined;
|
|
145
150
|
editable?: boolean | undefined;
|
|
146
151
|
}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
|
-
import { CalendarOptions } from "@fullcalendar/core";
|
|
3
|
+
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
4
4
|
|
|
5
5
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
6
6
|
interface CalendarEvent {
|
|
@@ -12,11 +12,11 @@ interface CalendarEvent {
|
|
|
12
12
|
editable?: boolean;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
|
-
type CalendarViewType =
|
|
15
|
+
type CalendarViewType = 'dayGridMonth' | 'dayGridWeek' | 'dayGridDay' | 'listWeek';
|
|
16
16
|
interface CalendarEditForm {
|
|
17
17
|
id: string;
|
|
18
18
|
title: string;
|
|
19
|
-
date: number;
|
|
19
|
+
date: number | null;
|
|
20
20
|
startTime: string;
|
|
21
21
|
endTime: string;
|
|
22
22
|
color: string;
|
|
@@ -29,17 +29,17 @@ interface CalendarProps {
|
|
|
29
29
|
showEditDialog?: boolean;
|
|
30
30
|
}
|
|
31
31
|
interface CalendarEmits {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
'update:events': [events: CalendarEvent[]];
|
|
33
|
+
'event-added': [event: CalendarEvent];
|
|
34
|
+
'event-updated': [event: Partial<CalendarEvent>];
|
|
35
|
+
'event-deleted': [event: {
|
|
36
36
|
id: string;
|
|
37
37
|
title: string;
|
|
38
38
|
}];
|
|
39
|
-
|
|
39
|
+
'event-dropped': [event: Partial<CalendarEvent>];
|
|
40
40
|
}
|
|
41
41
|
interface CalendarExpose {
|
|
42
|
-
getApi: () =>
|
|
42
|
+
getApi: () => CalendarApi | undefined;
|
|
43
43
|
addEvent: (event: CalendarEvent) => void;
|
|
44
44
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
45
45
|
deleteEvent: (eventId: string) => void;
|
|
@@ -66,9 +66,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
66
66
|
}) => any) | undefined;
|
|
67
67
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
|
-
events: CalendarEvent[];
|
|
70
69
|
initialView: CalendarViewType;
|
|
71
70
|
editable: boolean;
|
|
71
|
+
events: CalendarEvent[];
|
|
72
72
|
showAddDialog: boolean;
|
|
73
73
|
showEditDialog: boolean;
|
|
74
74
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -105,23 +105,29 @@ type EmitFn = {
|
|
|
105
105
|
*
|
|
106
106
|
*/
|
|
107
107
|
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
108
|
-
calendarRef: Ref<
|
|
108
|
+
calendarRef: Ref<{
|
|
109
|
+
getApi: () => CalendarApi;
|
|
110
|
+
} | null, {
|
|
111
|
+
getApi: () => CalendarApi;
|
|
112
|
+
} | {
|
|
113
|
+
getApi: () => CalendarApi;
|
|
114
|
+
} | null>;
|
|
109
115
|
calendarOptions: Ref<CalendarOptions, CalendarOptions>;
|
|
110
116
|
showActionDialog: Ref<boolean, boolean>;
|
|
111
117
|
showEditModal: Ref<boolean, boolean>;
|
|
112
118
|
isEditing: Ref<boolean, boolean>;
|
|
113
|
-
selectedEvent:
|
|
119
|
+
selectedEvent: vue.ShallowRef<EventApi | null, EventApi | null>;
|
|
114
120
|
editForm: Ref<{
|
|
115
121
|
id: string;
|
|
116
122
|
title: string;
|
|
117
|
-
date: number;
|
|
123
|
+
date: number | null;
|
|
118
124
|
startTime: string;
|
|
119
125
|
endTime: string;
|
|
120
126
|
color: string;
|
|
121
127
|
}, CalendarEditForm | {
|
|
122
128
|
id: string;
|
|
123
129
|
title: string;
|
|
124
|
-
date: number;
|
|
130
|
+
date: number | null;
|
|
125
131
|
startTime: string;
|
|
126
132
|
endTime: string;
|
|
127
133
|
color: string;
|
|
@@ -131,16 +137,15 @@ declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
|
131
137
|
saveEvent: () => boolean;
|
|
132
138
|
deleteEvent: () => void;
|
|
133
139
|
expose: {
|
|
134
|
-
getApi: () =>
|
|
140
|
+
getApi: () => CalendarApi | undefined;
|
|
135
141
|
addEvent: (event: CalendarEvent) => void;
|
|
136
142
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
137
143
|
deleteEvent: (eventId: string) => void;
|
|
138
144
|
getEvents: () => {
|
|
139
|
-
|
|
145
|
+
start: string | Date;
|
|
146
|
+
end: string | Date | undefined;
|
|
140
147
|
id: string;
|
|
141
148
|
title: string;
|
|
142
|
-
start: Date | string;
|
|
143
|
-
end?: (Date | string) | undefined;
|
|
144
149
|
color?: string | undefined;
|
|
145
150
|
editable?: boolean | undefined;
|
|
146
151
|
}[];
|
|
@@ -2,7 +2,7 @@ import * as vue from "vue";
|
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_ImageCropper/types.d.ts
|
|
5
|
-
type CropOutputFormat =
|
|
5
|
+
type CropOutputFormat = 'png' | 'jpeg' | 'webp';
|
|
6
6
|
interface AspectRatioPreset {
|
|
7
7
|
label: string;
|
|
8
8
|
value: number;
|
|
@@ -44,59 +44,74 @@ interface ImageCropperExpose {
|
|
|
44
44
|
interface ImageCropperEmits {
|
|
45
45
|
crop: [result: CropResult];
|
|
46
46
|
ready: [];
|
|
47
|
-
error: [error:
|
|
47
|
+
error: [error: Error];
|
|
48
48
|
confirm: [result: CropResult];
|
|
49
49
|
cancel: [];
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
error: (error: Event) => any;
|
|
55
54
|
cancel: () => any;
|
|
56
|
-
confirm: (result:
|
|
55
|
+
confirm: (result: CropResult) => any;
|
|
56
|
+
crop: (result: CropResult) => any;
|
|
57
57
|
ready: () => any;
|
|
58
|
-
|
|
58
|
+
error: (error: Error) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onError?: ((error: Event) => any) | undefined;
|
|
61
60
|
onCancel?: (() => any) | undefined;
|
|
62
|
-
onConfirm?: ((result:
|
|
61
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
62
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
63
63
|
onReady?: (() => any) | undefined;
|
|
64
|
-
|
|
64
|
+
onError?: ((error: Error) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
height: string | number;
|
|
67
|
-
aspectRatio: number;
|
|
68
66
|
disabled: boolean;
|
|
67
|
+
showPreview: boolean;
|
|
68
|
+
height: string | number;
|
|
69
69
|
modalTitle: string;
|
|
70
70
|
showToolbar: boolean;
|
|
71
71
|
src: string;
|
|
72
|
+
aspectRatio: number;
|
|
72
73
|
outputFormat: CropOutputFormat;
|
|
73
74
|
outputQuality: number;
|
|
74
75
|
maxOutputWidth: number;
|
|
75
76
|
maxOutputHeight: number;
|
|
76
|
-
showPreview: boolean;
|
|
77
77
|
circular: boolean;
|
|
78
78
|
modal: boolean;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/components/C_ImageCropper/composables/useCropperCore.d.ts
|
|
83
|
+
interface CropperInstance {
|
|
84
|
+
rotateLeft: () => void;
|
|
85
|
+
rotateRight: () => void;
|
|
86
|
+
changeScale: (step: number) => void;
|
|
87
|
+
refresh: () => void;
|
|
88
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
89
|
+
}
|
|
83
90
|
interface UseCropperCoreOptions {
|
|
84
91
|
format?: Ref<CropOutputFormat>;
|
|
85
92
|
quality?: Ref<number>;
|
|
86
93
|
maxWidth?: Ref<number>;
|
|
87
94
|
maxHeight?: Ref<number>;
|
|
88
95
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
96
|
+
/** Manage the vue-cropper instance and serialize a single crop snapshot. */
|
|
92
97
|
declare function useCropperCore(options?: UseCropperCoreOptions): {
|
|
93
|
-
cropperRef: Ref<
|
|
98
|
+
cropperRef: Ref<{
|
|
99
|
+
rotateLeft: () => void;
|
|
100
|
+
rotateRight: () => void;
|
|
101
|
+
changeScale: (step: number) => void;
|
|
102
|
+
refresh: () => void;
|
|
103
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
104
|
+
} | null, CropperInstance | {
|
|
105
|
+
rotateLeft: () => void;
|
|
106
|
+
rotateRight: () => void;
|
|
107
|
+
changeScale: (step: number) => void;
|
|
108
|
+
refresh: () => void;
|
|
109
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
110
|
+
} | null>;
|
|
94
111
|
rotate: (angle: number) => void;
|
|
95
112
|
rotateLeft: () => void;
|
|
96
113
|
rotateRight: () => void;
|
|
97
114
|
zoom: (scale: number) => void;
|
|
98
|
-
flipX: () => void;
|
|
99
|
-
flipY: () => void;
|
|
100
115
|
reset: () => void;
|
|
101
116
|
getCropResult: () => Promise<CropResult>;
|
|
102
117
|
};
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from "vue";
|
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_ImageCropper/types.d.ts
|
|
5
|
-
type CropOutputFormat =
|
|
5
|
+
type CropOutputFormat = 'png' | 'jpeg' | 'webp';
|
|
6
6
|
interface AspectRatioPreset {
|
|
7
7
|
label: string;
|
|
8
8
|
value: number;
|
|
@@ -44,59 +44,74 @@ interface ImageCropperExpose {
|
|
|
44
44
|
interface ImageCropperEmits {
|
|
45
45
|
crop: [result: CropResult];
|
|
46
46
|
ready: [];
|
|
47
|
-
error: [error:
|
|
47
|
+
error: [error: Error];
|
|
48
48
|
confirm: [result: CropResult];
|
|
49
49
|
cancel: [];
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
error: (error: Event) => any;
|
|
55
54
|
cancel: () => any;
|
|
56
|
-
confirm: (result:
|
|
55
|
+
confirm: (result: CropResult) => any;
|
|
56
|
+
crop: (result: CropResult) => any;
|
|
57
57
|
ready: () => any;
|
|
58
|
-
|
|
58
|
+
error: (error: Error) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onError?: ((error: Event) => any) | undefined;
|
|
61
60
|
onCancel?: (() => any) | undefined;
|
|
62
|
-
onConfirm?: ((result:
|
|
61
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
62
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
63
63
|
onReady?: (() => any) | undefined;
|
|
64
|
-
|
|
64
|
+
onError?: ((error: Error) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
height: string | number;
|
|
67
|
-
aspectRatio: number;
|
|
68
66
|
disabled: boolean;
|
|
67
|
+
showPreview: boolean;
|
|
68
|
+
height: string | number;
|
|
69
69
|
modalTitle: string;
|
|
70
70
|
showToolbar: boolean;
|
|
71
71
|
src: string;
|
|
72
|
+
aspectRatio: number;
|
|
72
73
|
outputFormat: CropOutputFormat;
|
|
73
74
|
outputQuality: number;
|
|
74
75
|
maxOutputWidth: number;
|
|
75
76
|
maxOutputHeight: number;
|
|
76
|
-
showPreview: boolean;
|
|
77
77
|
circular: boolean;
|
|
78
78
|
modal: boolean;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/components/C_ImageCropper/composables/useCropperCore.d.ts
|
|
83
|
+
interface CropperInstance {
|
|
84
|
+
rotateLeft: () => void;
|
|
85
|
+
rotateRight: () => void;
|
|
86
|
+
changeScale: (step: number) => void;
|
|
87
|
+
refresh: () => void;
|
|
88
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
89
|
+
}
|
|
83
90
|
interface UseCropperCoreOptions {
|
|
84
91
|
format?: Ref<CropOutputFormat>;
|
|
85
92
|
quality?: Ref<number>;
|
|
86
93
|
maxWidth?: Ref<number>;
|
|
87
94
|
maxHeight?: Ref<number>;
|
|
88
95
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
96
|
+
/** Manage the vue-cropper instance and serialize a single crop snapshot. */
|
|
92
97
|
declare function useCropperCore(options?: UseCropperCoreOptions): {
|
|
93
|
-
cropperRef: Ref<
|
|
98
|
+
cropperRef: Ref<{
|
|
99
|
+
rotateLeft: () => void;
|
|
100
|
+
rotateRight: () => void;
|
|
101
|
+
changeScale: (step: number) => void;
|
|
102
|
+
refresh: () => void;
|
|
103
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
104
|
+
} | null, CropperInstance | {
|
|
105
|
+
rotateLeft: () => void;
|
|
106
|
+
rotateRight: () => void;
|
|
107
|
+
changeScale: (step: number) => void;
|
|
108
|
+
refresh: () => void;
|
|
109
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
110
|
+
} | null>;
|
|
94
111
|
rotate: (angle: number) => void;
|
|
95
112
|
rotateLeft: () => void;
|
|
96
113
|
rotateRight: () => void;
|
|
97
114
|
zoom: (scale: number) => void;
|
|
98
|
-
flipX: () => void;
|
|
99
|
-
flipY: () => void;
|
|
100
115
|
reset: () => void;
|
|
101
116
|
getCropResult: () => Promise<CropResult>;
|
|
102
117
|
};
|
|
@@ -117,13 +117,11 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
117
117
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
119
|
sort: boolean;
|
|
120
|
-
direction: "vertical" | "horizontal";
|
|
121
120
|
modelValue: DraggableItem[];
|
|
122
121
|
disabled: boolean;
|
|
123
|
-
delay: number;
|
|
124
|
-
layout: LayoutMode;
|
|
125
122
|
group: string | GroupOptions;
|
|
126
123
|
animation: number;
|
|
124
|
+
delay: number;
|
|
127
125
|
handle: string;
|
|
128
126
|
showHandle: boolean;
|
|
129
127
|
ghostClass: string;
|
|
@@ -136,6 +134,8 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
136
134
|
emptyText: string;
|
|
137
135
|
swapThreshold: number;
|
|
138
136
|
invertSwap: boolean;
|
|
137
|
+
direction: "vertical" | "horizontal";
|
|
138
|
+
layout: LayoutMode;
|
|
139
139
|
gridColumns: number;
|
|
140
140
|
gridRows: number;
|
|
141
141
|
gap: string | number;
|
|
@@ -117,13 +117,11 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
117
117
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
119
|
sort: boolean;
|
|
120
|
-
direction: "vertical" | "horizontal";
|
|
121
120
|
modelValue: DraggableItem[];
|
|
122
121
|
disabled: boolean;
|
|
123
|
-
delay: number;
|
|
124
|
-
layout: LayoutMode;
|
|
125
122
|
group: string | GroupOptions;
|
|
126
123
|
animation: number;
|
|
124
|
+
delay: number;
|
|
127
125
|
handle: string;
|
|
128
126
|
showHandle: boolean;
|
|
129
127
|
ghostClass: string;
|
|
@@ -136,6 +134,8 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
136
134
|
emptyText: string;
|
|
137
135
|
swapThreshold: number;
|
|
138
136
|
invertSwap: boolean;
|
|
137
|
+
direction: "vertical" | "horizontal";
|
|
138
|
+
layout: LayoutMode;
|
|
139
139
|
gridColumns: number;
|
|
140
140
|
gridRows: number;
|
|
141
141
|
gap: string | number;
|
|
@@ -352,9 +352,14 @@ interface FormStepActionsSlotProps {
|
|
|
352
352
|
nextStep: () => Promise<void>;
|
|
353
353
|
previousStep: () => void;
|
|
354
354
|
goToStep: (stepIndex: number) => Promise<void>;
|
|
355
|
+
/** Validate and submit the complete form, including fields in other steps. */
|
|
356
|
+
submit: () => Promise<boolean>;
|
|
357
|
+
submitting: boolean;
|
|
355
358
|
}
|
|
356
359
|
/** C_Form 对外公开的具名插槽。 */
|
|
357
360
|
interface FormSlots<T extends object = FormRecord> {
|
|
361
|
+
/** Field-specific named slots are intentionally open-ended. */
|
|
362
|
+
[slotName: string]: ((props: any) => unknown) | undefined;
|
|
358
363
|
action?: (props: FormActionSlotProps<T>) => unknown;
|
|
359
364
|
'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
|
|
360
365
|
'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
|
|
@@ -352,9 +352,14 @@ interface FormStepActionsSlotProps {
|
|
|
352
352
|
nextStep: () => Promise<void>;
|
|
353
353
|
previousStep: () => void;
|
|
354
354
|
goToStep: (stepIndex: number) => Promise<void>;
|
|
355
|
+
/** Validate and submit the complete form, including fields in other steps. */
|
|
356
|
+
submit: () => Promise<boolean>;
|
|
357
|
+
submitting: boolean;
|
|
355
358
|
}
|
|
356
359
|
/** C_Form 对外公开的具名插槽。 */
|
|
357
360
|
interface FormSlots<T extends object = FormRecord> {
|
|
361
|
+
/** Field-specific named slots are intentionally open-ended. */
|
|
362
|
+
[slotName: string]: ((props: any) => unknown) | undefined;
|
|
358
363
|
action?: (props: FormActionSlotProps<T>) => unknown;
|
|
359
364
|
'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
|
|
360
365
|
'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
|
|
@@ -27,7 +27,7 @@ interface ERTable {
|
|
|
27
27
|
}
|
|
28
28
|
interface ERRelation {
|
|
29
29
|
id: string;
|
|
30
|
-
type:
|
|
30
|
+
type: 'foreign-key' | 'one-to-one' | 'one-to-many' | 'many-to-many';
|
|
31
31
|
sourceTable: string;
|
|
32
32
|
sourceField: string;
|
|
33
33
|
targetTable: string;
|
|
@@ -41,7 +41,7 @@ interface ERDiagramData {
|
|
|
41
41
|
}
|
|
42
42
|
interface BPMNNode {
|
|
43
43
|
id: string;
|
|
44
|
-
type:
|
|
44
|
+
type: 'start' | 'end' | 'task' | 'gateway' | 'event';
|
|
45
45
|
name: string;
|
|
46
46
|
position: Position;
|
|
47
47
|
properties: Record<string, any>;
|
|
@@ -60,13 +60,13 @@ interface BPMNDiagramData {
|
|
|
60
60
|
interface UMLAttribute {
|
|
61
61
|
name: string;
|
|
62
62
|
type: string;
|
|
63
|
-
visibility:
|
|
63
|
+
visibility: 'public' | 'private' | 'protected';
|
|
64
64
|
isStatic?: boolean;
|
|
65
65
|
}
|
|
66
66
|
interface UMLMethod {
|
|
67
67
|
name: string;
|
|
68
68
|
returnType: string;
|
|
69
|
-
visibility:
|
|
69
|
+
visibility: 'public' | 'private' | 'protected';
|
|
70
70
|
parameters?: string[];
|
|
71
71
|
isStatic?: boolean;
|
|
72
72
|
isAbstract?: boolean;
|
|
@@ -81,7 +81,7 @@ interface UMLClass {
|
|
|
81
81
|
}
|
|
82
82
|
interface UMLRelation {
|
|
83
83
|
id: string;
|
|
84
|
-
type:
|
|
84
|
+
type: 'inheritance' | 'implementation' | 'composition' | 'aggregation' | 'association' | 'dependency';
|
|
85
85
|
source: string;
|
|
86
86
|
target: string;
|
|
87
87
|
name?: string;
|
|
@@ -92,7 +92,7 @@ interface UMLDiagramData {
|
|
|
92
92
|
relations: UMLRelation[];
|
|
93
93
|
}
|
|
94
94
|
type DiagramData = ERDiagramData | BPMNDiagramData | UMLDiagramData;
|
|
95
|
-
type DiagramType =
|
|
95
|
+
type DiagramType = 'er' | 'bpmn' | 'uml';
|
|
96
96
|
interface DiagramConfig {
|
|
97
97
|
type: DiagramType;
|
|
98
98
|
data?: DiagramData;
|
|
@@ -100,16 +100,16 @@ interface DiagramConfig {
|
|
|
100
100
|
height?: string | number;
|
|
101
101
|
readonly?: boolean;
|
|
102
102
|
showToolbar?: boolean;
|
|
103
|
-
theme?:
|
|
103
|
+
theme?: 'light' | 'dark';
|
|
104
104
|
}
|
|
105
|
-
type ToolbarAction =
|
|
106
|
-
type ExportFormat =
|
|
105
|
+
type ToolbarAction = 'new' | 'open' | 'save' | 'save-as' | 'import' | 'export' | 'undo' | 'redo' | 'copy' | 'paste' | 'delete' | 'select-all' | 'clear' | 'zoom-in' | 'zoom-out' | 'zoom-fit' | 'center' | 'layout' | 'align';
|
|
106
|
+
type ExportFormat = 'png' | 'jpg' | 'svg' | 'pdf' | 'json';
|
|
107
107
|
interface MenuItem {
|
|
108
108
|
label: string;
|
|
109
109
|
key: string;
|
|
110
110
|
icon?: string;
|
|
111
111
|
shortcut?: string;
|
|
112
|
-
type?:
|
|
112
|
+
type?: 'divider';
|
|
113
113
|
}
|
|
114
114
|
interface ValidationResult {
|
|
115
115
|
valid: boolean;
|
|
@@ -124,8 +124,8 @@ interface GraphEvents {
|
|
|
124
124
|
selectionChange: (selectedIds: string[]) => void;
|
|
125
125
|
}
|
|
126
126
|
interface LayoutOptions {
|
|
127
|
-
type:
|
|
128
|
-
direction?:
|
|
127
|
+
type: 'auto' | 'hierarchical' | 'force' | 'grid' | 'circular';
|
|
128
|
+
direction?: 'TB' | 'BT' | 'LR' | 'RL';
|
|
129
129
|
spacing?: number;
|
|
130
130
|
nodeSpacing?: number;
|
|
131
131
|
layerSpacing?: number;
|
|
@@ -161,7 +161,7 @@ interface GraphExportOptions {
|
|
|
161
161
|
}
|
|
162
162
|
interface GridConfig {
|
|
163
163
|
visible: boolean;
|
|
164
|
-
type:
|
|
164
|
+
type: 'dot' | 'fixedDot' | 'mesh' | 'doubleMesh';
|
|
165
165
|
size: number;
|
|
166
166
|
color: string;
|
|
167
167
|
thickness?: number;
|
|
@@ -241,28 +241,28 @@ interface GraphConfig {
|
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region src/components/C_AntV/index.vue.d.ts
|
|
243
243
|
interface Props extends DiagramConfig {
|
|
244
|
-
type:
|
|
244
|
+
type: 'er' | 'bpmn' | 'uml';
|
|
245
245
|
data?: DiagramData;
|
|
246
246
|
width?: string | number;
|
|
247
247
|
height?: string | number;
|
|
248
248
|
readonly?: boolean;
|
|
249
249
|
showToolbar?: boolean;
|
|
250
|
-
theme?:
|
|
250
|
+
theme?: 'light' | 'dark';
|
|
251
251
|
}
|
|
252
252
|
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
253
253
|
getGraph: () => any;
|
|
254
254
|
getData: () => any;
|
|
255
255
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
256
|
-
ready: (graph:
|
|
256
|
+
ready: (graph: Graph) => any;
|
|
257
257
|
"data-change": (data: DiagramData) => any;
|
|
258
258
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
259
|
-
onReady?: ((graph:
|
|
259
|
+
onReady?: ((graph: Graph) => any) | undefined;
|
|
260
260
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
261
261
|
}>, {
|
|
262
|
-
width: string | number;
|
|
263
262
|
height: string | number;
|
|
264
|
-
|
|
263
|
+
width: string | number;
|
|
265
264
|
readonly: boolean;
|
|
265
|
+
theme: "light" | "dark";
|
|
266
266
|
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|