@antcde/component-library 0.1.24-rc.5 → 0.1.24
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/dist/build/uno.js +1 -9
- package/dist/index.js +34219 -34069
- package/dist/types/src/components/BaseAntInput.vue.d.ts +0 -6
- package/dist/types/src/components/{BaseAppCard/index.vue.d.ts → BaseAppCard.vue.d.ts} +7 -22
- package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +0 -8
- package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +0 -2
- package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +0 -1
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +1 -5
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +6 -20
- package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +1 -11
- package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +2 -5
- package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +0 -2
- package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +1 -4
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
- package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +10 -6
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +1 -3
- package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +4 -1
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +4 -58
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +0 -4
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +4 -53
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +4 -52
- package/dist/types/src/components/TasksFlow/index.vue.d.ts +0 -10
- package/dist/types/src/index.d.ts +2 -2
- package/lib/build/uno.ts +1 -10
- package/lib/test/setup.ts +0 -8
- package/package.json +25 -29
- package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +0 -17
- package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +0 -27
- package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +0 -5
- package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +0 -18
- package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +0 -8
- package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +0 -18
- package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +0 -6
- package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +0 -28
- package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +0 -47
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +0 -11
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +0 -14
- package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +0 -16
- package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +0 -14
- package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +0 -10
- package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +0 -6
- package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +0 -19
- package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +0 -15
- package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +0 -10
- package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +0 -18
- package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +0 -19
- package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +0 -6
- package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +0 -23
- package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +0 -27
|
@@ -5,7 +5,6 @@ export type { DiffStatus } from './useTemplateVersioningState';
|
|
|
5
5
|
export declare function useTemplateVersioning(antConnect: AntConnect, flowParent: Ref<Task | null>, flowEdges: Ref<TaskFlowEdge[]>): {
|
|
6
6
|
fetchVersions: () => Promise<void>;
|
|
7
7
|
publishVersion: (changeSummary?: string) => Promise<import('@antcde/connect-ts').TaskTemplateVersion | null>;
|
|
8
|
-
checkDraftChanges: () => Promise<void>;
|
|
9
8
|
checkUpdates: () => Promise<void>;
|
|
10
9
|
fetchDiff: (targetVersionId?: string) => Promise<void>;
|
|
11
10
|
syncToVersion: (targetVersionId?: string) => Promise<import('@antcde/connect-ts').VersionSyncResult | null>;
|
|
@@ -45,13 +44,11 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
45
44
|
}[]>;
|
|
46
45
|
versionCheck: Ref<{
|
|
47
46
|
has_update: boolean;
|
|
48
|
-
has_changes?: boolean | undefined;
|
|
49
47
|
current_version: number;
|
|
50
48
|
latest_version: number;
|
|
51
49
|
template_id: string;
|
|
52
50
|
} | null, import('@antcde/connect-ts').VersionCheck | {
|
|
53
51
|
has_update: boolean;
|
|
54
|
-
has_changes?: boolean | undefined;
|
|
55
52
|
current_version: number;
|
|
56
53
|
latest_version: number;
|
|
57
54
|
template_id: string;
|
|
@@ -61,30 +58,22 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
61
58
|
source_id: string;
|
|
62
59
|
title: string;
|
|
63
60
|
change_type: "added" | "removed";
|
|
64
|
-
status?: string | undefined;
|
|
65
61
|
duration_days?: number | null | undefined;
|
|
66
|
-
duration_active_days?: number[] | null | undefined;
|
|
67
62
|
position_x?: number | undefined;
|
|
68
63
|
position_y?: number | undefined;
|
|
69
|
-
parent_ref?: string | null | undefined;
|
|
70
|
-
trigger_id?: string | null | undefined;
|
|
71
64
|
checks?: {
|
|
72
|
-
name: string
|
|
65
|
+
name: string;
|
|
73
66
|
}[] | undefined;
|
|
74
67
|
}[];
|
|
75
68
|
removed: {
|
|
76
69
|
source_id: string;
|
|
77
70
|
title: string;
|
|
78
71
|
change_type: "added" | "removed";
|
|
79
|
-
status?: string | undefined;
|
|
80
72
|
duration_days?: number | null | undefined;
|
|
81
|
-
duration_active_days?: number[] | null | undefined;
|
|
82
73
|
position_x?: number | undefined;
|
|
83
74
|
position_y?: number | undefined;
|
|
84
|
-
parent_ref?: string | null | undefined;
|
|
85
|
-
trigger_id?: string | null | undefined;
|
|
86
75
|
checks?: {
|
|
87
|
-
name: string
|
|
76
|
+
name: string;
|
|
88
77
|
}[] | undefined;
|
|
89
78
|
}[];
|
|
90
79
|
modified: {
|
|
@@ -101,26 +90,13 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
101
90
|
target_ref: string;
|
|
102
91
|
type: string;
|
|
103
92
|
lag_days: number;
|
|
104
|
-
lag_active_days?: number[] | undefined;
|
|
105
93
|
}[];
|
|
106
94
|
relations_removed: {
|
|
107
95
|
source_ref: string;
|
|
108
96
|
target_ref: string;
|
|
109
97
|
type: string;
|
|
110
98
|
lag_days: number;
|
|
111
|
-
lag_active_days?: number[] | undefined;
|
|
112
99
|
}[];
|
|
113
|
-
relations_modified?: {
|
|
114
|
-
source_ref: string;
|
|
115
|
-
target_ref: string;
|
|
116
|
-
type: string | null;
|
|
117
|
-
change_type: "modified";
|
|
118
|
-
changes: Record<string, {
|
|
119
|
-
old: any;
|
|
120
|
-
new: any;
|
|
121
|
-
}>;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
has_changes?: boolean | undefined;
|
|
124
100
|
from_version: number;
|
|
125
101
|
to_version: number;
|
|
126
102
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -131,30 +107,22 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
131
107
|
source_id: string;
|
|
132
108
|
title: string;
|
|
133
109
|
change_type: "added" | "removed";
|
|
134
|
-
status?: string | undefined;
|
|
135
110
|
duration_days?: number | null | undefined;
|
|
136
|
-
duration_active_days?: number[] | null | undefined;
|
|
137
111
|
position_x?: number | undefined;
|
|
138
112
|
position_y?: number | undefined;
|
|
139
|
-
parent_ref?: string | null | undefined;
|
|
140
|
-
trigger_id?: string | null | undefined;
|
|
141
113
|
checks?: {
|
|
142
|
-
name: string
|
|
114
|
+
name: string;
|
|
143
115
|
}[] | undefined;
|
|
144
116
|
}[];
|
|
145
117
|
removed: {
|
|
146
118
|
source_id: string;
|
|
147
119
|
title: string;
|
|
148
120
|
change_type: "added" | "removed";
|
|
149
|
-
status?: string | undefined;
|
|
150
121
|
duration_days?: number | null | undefined;
|
|
151
|
-
duration_active_days?: number[] | null | undefined;
|
|
152
122
|
position_x?: number | undefined;
|
|
153
123
|
position_y?: number | undefined;
|
|
154
|
-
parent_ref?: string | null | undefined;
|
|
155
|
-
trigger_id?: string | null | undefined;
|
|
156
124
|
checks?: {
|
|
157
|
-
name: string
|
|
125
|
+
name: string;
|
|
158
126
|
}[] | undefined;
|
|
159
127
|
}[];
|
|
160
128
|
modified: {
|
|
@@ -171,26 +139,13 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
171
139
|
target_ref: string;
|
|
172
140
|
type: string;
|
|
173
141
|
lag_days: number;
|
|
174
|
-
lag_active_days?: number[] | undefined;
|
|
175
142
|
}[];
|
|
176
143
|
relations_removed: {
|
|
177
144
|
source_ref: string;
|
|
178
145
|
target_ref: string;
|
|
179
146
|
type: string;
|
|
180
147
|
lag_days: number;
|
|
181
|
-
lag_active_days?: number[] | undefined;
|
|
182
148
|
}[];
|
|
183
|
-
relations_modified?: {
|
|
184
|
-
source_ref: string;
|
|
185
|
-
target_ref: string;
|
|
186
|
-
type: string | null;
|
|
187
|
-
change_type: "modified";
|
|
188
|
-
changes: Record<string, {
|
|
189
|
-
old: any;
|
|
190
|
-
new: any;
|
|
191
|
-
}>;
|
|
192
|
-
}[] | undefined;
|
|
193
|
-
has_changes?: boolean | undefined;
|
|
194
149
|
from_version: number;
|
|
195
150
|
to_version: number;
|
|
196
151
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -200,20 +155,16 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
200
155
|
isPublishing: Ref<boolean, boolean>;
|
|
201
156
|
isSyncing: Ref<boolean, boolean>;
|
|
202
157
|
isDiffLoading: Ref<boolean, boolean>;
|
|
203
|
-
isVersionStateLoading: Ref<boolean, boolean>;
|
|
204
158
|
isCompareMode: Ref<boolean, boolean>;
|
|
205
159
|
isCompareOriginal: Ref<boolean, boolean>;
|
|
206
160
|
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
207
161
|
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
208
162
|
selectedFromVersionId: Ref<string | null, string | null>;
|
|
209
|
-
draftChangeCount: Ref<number, number>;
|
|
210
163
|
isTemplate: import('vue').ComputedRef<boolean>;
|
|
211
164
|
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
212
165
|
currentVersion: import('vue').ComputedRef<number>;
|
|
213
166
|
latestVersion: import('vue').ComputedRef<number>;
|
|
214
167
|
hasVersions: import('vue').ComputedRef<boolean>;
|
|
215
|
-
publishedVersion: import('vue').ComputedRef<number>;
|
|
216
|
-
hasUnpublishedChanges: import('vue').ComputedRef<boolean>;
|
|
217
168
|
availableVersions: import('vue').ComputedRef<{
|
|
218
169
|
id: string;
|
|
219
170
|
template_id: string;
|
|
@@ -32,13 +32,11 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
32
32
|
}[]>;
|
|
33
33
|
versionCheck: Ref<{
|
|
34
34
|
has_update: boolean;
|
|
35
|
-
has_changes?: boolean | undefined;
|
|
36
35
|
current_version: number;
|
|
37
36
|
latest_version: number;
|
|
38
37
|
template_id: string;
|
|
39
38
|
} | null, VersionCheck | {
|
|
40
39
|
has_update: boolean;
|
|
41
|
-
has_changes?: boolean | undefined;
|
|
42
40
|
current_version: number;
|
|
43
41
|
latest_version: number;
|
|
44
42
|
template_id: string;
|
|
@@ -48,30 +46,22 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
48
46
|
source_id: string;
|
|
49
47
|
title: string;
|
|
50
48
|
change_type: "added" | "removed";
|
|
51
|
-
status?: string | undefined;
|
|
52
49
|
duration_days?: number | null | undefined;
|
|
53
|
-
duration_active_days?: number[] | null | undefined;
|
|
54
50
|
position_x?: number | undefined;
|
|
55
51
|
position_y?: number | undefined;
|
|
56
|
-
parent_ref?: string | null | undefined;
|
|
57
|
-
trigger_id?: string | null | undefined;
|
|
58
52
|
checks?: {
|
|
59
|
-
name: string
|
|
53
|
+
name: string;
|
|
60
54
|
}[] | undefined;
|
|
61
55
|
}[];
|
|
62
56
|
removed: {
|
|
63
57
|
source_id: string;
|
|
64
58
|
title: string;
|
|
65
59
|
change_type: "added" | "removed";
|
|
66
|
-
status?: string | undefined;
|
|
67
60
|
duration_days?: number | null | undefined;
|
|
68
|
-
duration_active_days?: number[] | null | undefined;
|
|
69
61
|
position_x?: number | undefined;
|
|
70
62
|
position_y?: number | undefined;
|
|
71
|
-
parent_ref?: string | null | undefined;
|
|
72
|
-
trigger_id?: string | null | undefined;
|
|
73
63
|
checks?: {
|
|
74
|
-
name: string
|
|
64
|
+
name: string;
|
|
75
65
|
}[] | undefined;
|
|
76
66
|
}[];
|
|
77
67
|
modified: {
|
|
@@ -88,26 +78,13 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
88
78
|
target_ref: string;
|
|
89
79
|
type: string;
|
|
90
80
|
lag_days: number;
|
|
91
|
-
lag_active_days?: number[] | undefined;
|
|
92
81
|
}[];
|
|
93
82
|
relations_removed: {
|
|
94
83
|
source_ref: string;
|
|
95
84
|
target_ref: string;
|
|
96
85
|
type: string;
|
|
97
86
|
lag_days: number;
|
|
98
|
-
lag_active_days?: number[] | undefined;
|
|
99
87
|
}[];
|
|
100
|
-
relations_modified?: {
|
|
101
|
-
source_ref: string;
|
|
102
|
-
target_ref: string;
|
|
103
|
-
type: string | null;
|
|
104
|
-
change_type: "modified";
|
|
105
|
-
changes: Record<string, {
|
|
106
|
-
old: any;
|
|
107
|
-
new: any;
|
|
108
|
-
}>;
|
|
109
|
-
}[] | undefined;
|
|
110
|
-
has_changes?: boolean | undefined;
|
|
111
88
|
from_version: number;
|
|
112
89
|
to_version: number;
|
|
113
90
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -118,30 +95,22 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
118
95
|
source_id: string;
|
|
119
96
|
title: string;
|
|
120
97
|
change_type: "added" | "removed";
|
|
121
|
-
status?: string | undefined;
|
|
122
98
|
duration_days?: number | null | undefined;
|
|
123
|
-
duration_active_days?: number[] | null | undefined;
|
|
124
99
|
position_x?: number | undefined;
|
|
125
100
|
position_y?: number | undefined;
|
|
126
|
-
parent_ref?: string | null | undefined;
|
|
127
|
-
trigger_id?: string | null | undefined;
|
|
128
101
|
checks?: {
|
|
129
|
-
name: string
|
|
102
|
+
name: string;
|
|
130
103
|
}[] | undefined;
|
|
131
104
|
}[];
|
|
132
105
|
removed: {
|
|
133
106
|
source_id: string;
|
|
134
107
|
title: string;
|
|
135
108
|
change_type: "added" | "removed";
|
|
136
|
-
status?: string | undefined;
|
|
137
109
|
duration_days?: number | null | undefined;
|
|
138
|
-
duration_active_days?: number[] | null | undefined;
|
|
139
110
|
position_x?: number | undefined;
|
|
140
111
|
position_y?: number | undefined;
|
|
141
|
-
parent_ref?: string | null | undefined;
|
|
142
|
-
trigger_id?: string | null | undefined;
|
|
143
112
|
checks?: {
|
|
144
|
-
name: string
|
|
113
|
+
name: string;
|
|
145
114
|
}[] | undefined;
|
|
146
115
|
}[];
|
|
147
116
|
modified: {
|
|
@@ -158,26 +127,13 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
158
127
|
target_ref: string;
|
|
159
128
|
type: string;
|
|
160
129
|
lag_days: number;
|
|
161
|
-
lag_active_days?: number[] | undefined;
|
|
162
130
|
}[];
|
|
163
131
|
relations_removed: {
|
|
164
132
|
source_ref: string;
|
|
165
133
|
target_ref: string;
|
|
166
134
|
type: string;
|
|
167
135
|
lag_days: number;
|
|
168
|
-
lag_active_days?: number[] | undefined;
|
|
169
136
|
}[];
|
|
170
|
-
relations_modified?: {
|
|
171
|
-
source_ref: string;
|
|
172
|
-
target_ref: string;
|
|
173
|
-
type: string | null;
|
|
174
|
-
change_type: "modified";
|
|
175
|
-
changes: Record<string, {
|
|
176
|
-
old: any;
|
|
177
|
-
new: any;
|
|
178
|
-
}>;
|
|
179
|
-
}[] | undefined;
|
|
180
|
-
has_changes?: boolean | undefined;
|
|
181
137
|
from_version: number;
|
|
182
138
|
to_version: number;
|
|
183
139
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -187,20 +143,16 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
187
143
|
isPublishing: Ref<boolean, boolean>;
|
|
188
144
|
isSyncing: Ref<boolean, boolean>;
|
|
189
145
|
isDiffLoading: Ref<boolean, boolean>;
|
|
190
|
-
isVersionStateLoading: Ref<boolean, boolean>;
|
|
191
146
|
isCompareMode: Ref<boolean, boolean>;
|
|
192
147
|
isCompareOriginal: Ref<boolean, boolean>;
|
|
193
148
|
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
194
149
|
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
195
150
|
selectedFromVersionId: Ref<string | null, string | null>;
|
|
196
|
-
draftChangeCount: Ref<number, number>;
|
|
197
151
|
isTemplate: import('vue').ComputedRef<boolean>;
|
|
198
152
|
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
199
153
|
currentVersion: import('vue').ComputedRef<number>;
|
|
200
154
|
latestVersion: import('vue').ComputedRef<number>;
|
|
201
155
|
hasVersions: import('vue').ComputedRef<boolean>;
|
|
202
|
-
publishedVersion: import('vue').ComputedRef<number>;
|
|
203
|
-
hasUnpublishedChanges: import('vue').ComputedRef<boolean>;
|
|
204
156
|
availableVersions: import('vue').ComputedRef<{
|
|
205
157
|
id: string;
|
|
206
158
|
template_id: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
|
|
2
|
-
import { LifecycleAction } from './composables/useFlowLifecycle';
|
|
3
2
|
import { FlowChannelSubscriber } from './composables/useTaskFlow';
|
|
4
3
|
type __VLS_Props = {
|
|
5
4
|
flowId: string;
|
|
@@ -10,11 +9,8 @@ type __VLS_Props = {
|
|
|
10
9
|
isDark: boolean;
|
|
11
10
|
channelSubscriber?: FlowChannelSubscriber;
|
|
12
11
|
canManageTemplates?: boolean;
|
|
13
|
-
canPublishToLicense?: boolean;
|
|
14
12
|
isAdmin?: boolean;
|
|
15
13
|
fallbackProjectId?: string | null;
|
|
16
|
-
showSidebarToggle?: boolean;
|
|
17
|
-
isSidebarCollapsed?: boolean;
|
|
18
14
|
};
|
|
19
15
|
declare function reloadFlow(): void;
|
|
20
16
|
declare function updateFlowTask(task: Task): void;
|
|
@@ -32,18 +28,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
32
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
29
|
updated: () => any;
|
|
34
30
|
share: (task: Task) => any;
|
|
35
|
-
toggleSidebar: () => any;
|
|
36
31
|
parentTaskNotFound: () => any;
|
|
37
32
|
deletedFlowId: (id: string) => any;
|
|
38
|
-
lifecycleAction: (key: LifecycleAction) => any;
|
|
39
|
-
versionPublished: (version: number) => any;
|
|
40
33
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
41
34
|
onUpdated?: (() => any) | undefined;
|
|
42
35
|
onShare?: ((task: Task) => any) | undefined;
|
|
43
|
-
onToggleSidebar?: (() => any) | undefined;
|
|
44
36
|
onParentTaskNotFound?: (() => any) | undefined;
|
|
45
37
|
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
46
|
-
onLifecycleAction?: ((key: LifecycleAction) => any) | undefined;
|
|
47
|
-
onVersionPublished?: ((version: number) => any) | undefined;
|
|
48
38
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
49
39
|
export default _default;
|
|
@@ -5,7 +5,7 @@ import { default as BaseAntCreateCard } from './components/BaseAntCreateCard.vue
|
|
|
5
5
|
import { default as BaseAntDatePicker } from './components/BaseAntDatePicker.vue';
|
|
6
6
|
import { default as BaseAntInput } from './components/BaseAntInput.vue';
|
|
7
7
|
import { default as BaseAntLoading } from './components/BaseAntLoading.vue';
|
|
8
|
-
import { default as BaseAppCard } from './components/BaseAppCard
|
|
8
|
+
import { default as BaseAppCard } from './components/BaseAppCard.vue';
|
|
9
9
|
import { default as BaseAppCardSkeleton } from './components/BaseAppCardSkeleton.vue';
|
|
10
10
|
import { default as BaseClickableIcon } from './components/BaseClickableIcon.vue';
|
|
11
11
|
import { default as BaseConfirmDialog } from './components/BaseConfirmDialog.vue';
|
|
@@ -26,7 +26,7 @@ import { default as UnifiedWindow } from './components/UnifiedWindow/index.vue';
|
|
|
26
26
|
import { default as TaskFlow } from './components/TasksFlow/index.vue';
|
|
27
27
|
import { default as VersionPublishDialog } from './components/VersionPublishDialog.vue';
|
|
28
28
|
import { default as AntTourZone } from './components/AntTourZone/index.vue';
|
|
29
|
-
export type { AppLike } from './components/BaseAppCard
|
|
29
|
+
export type { AppLike } from './components/BaseAppCard.vue';
|
|
30
30
|
export type { MentionItem } from './components/RichTextEditor/index.vue';
|
|
31
31
|
export type { StackedLabel } from './components/StackedLabels/index.vue';
|
|
32
32
|
export type { FlowChannelSubscriber } from './components/TasksFlow/composables/useTaskFlow';
|
package/lib/build/uno.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { UserConfig } from 'unocss'
|
|
2
2
|
import presetRemToPx from '@unocss/preset-rem-to-px'
|
|
3
|
-
import presetTypography from '@unocss/preset-typography'
|
|
4
3
|
import presetWind4 from '@unocss/preset-wind4'
|
|
5
4
|
import { defineConfig, transformerDirectives, transformerVariantGroup } from 'unocss'
|
|
6
5
|
|
|
7
6
|
const antColors = {
|
|
8
7
|
primary: '#125CFF',
|
|
9
8
|
secondary: '#64748B',
|
|
10
|
-
error: '#B00020',
|
|
11
9
|
info: '#2196F3',
|
|
12
10
|
success: '#4CAF50',
|
|
13
11
|
warning: '#FB8C00',
|
|
@@ -37,14 +35,9 @@ const antDesignTokens: NonNullable<UserConfig['rules']> = [
|
|
|
37
35
|
['text-body', { color: 'rgba(var(--v-theme-on-surface), 0.7)' }],
|
|
38
36
|
['text-muted', { color: 'rgba(var(--v-theme-on-surface), 0.5)' }],
|
|
39
37
|
['text-disabled', { color: 'rgba(var(--v-theme-on-surface), 0.38)' }],
|
|
40
|
-
['text-warning-emphasis', { color: 'var(--ant-warning-text-emphasis)' }],
|
|
41
38
|
['border-ant', { 'border-color': 'rgba(var(--v-border-color), var(--v-border-opacity))' }],
|
|
42
39
|
]
|
|
43
40
|
|
|
44
|
-
const antPreflights: NonNullable<UserConfig['preflights']> = [
|
|
45
|
-
{ getCSS: () => ':root { --ant-warning-text-emphasis: #9b5b00; }' },
|
|
46
|
-
]
|
|
47
|
-
|
|
48
41
|
/**
|
|
49
42
|
* Normalizes shortcuts from either array or object form to array form.
|
|
50
43
|
*
|
|
@@ -97,7 +90,7 @@ export function createAntUnoConfig(overrides: Partial<UserConfig> = {}): UserCon
|
|
|
97
90
|
outputToCssLayers: {
|
|
98
91
|
cssLayerName: (layer: string) => layer === 'properties' ? null : `uno-${layer}`,
|
|
99
92
|
},
|
|
100
|
-
preflights:
|
|
93
|
+
preflights: preflights ?? [],
|
|
101
94
|
rules: [
|
|
102
95
|
...antDesignTokens,
|
|
103
96
|
...overrideRules,
|
|
@@ -111,8 +104,6 @@ export function createAntUnoConfig(overrides: Partial<UserConfig> = {}): UserCon
|
|
|
111
104
|
presets: presets ?? [
|
|
112
105
|
presetRemToPx,
|
|
113
106
|
presetWind4({ dark: { dark: '.v-theme--dark' } }),
|
|
114
|
-
// Provides `prose` for markdown rendered via v-html (READMEs, release notes).
|
|
115
|
-
presetTypography(),
|
|
116
107
|
],
|
|
117
108
|
shortcuts: [
|
|
118
109
|
...normalizeShortcuts(shortcuts),
|
package/lib/test/setup.ts
CHANGED
|
@@ -133,14 +133,6 @@ vi.mock('@antcde/vue-utils', async (importOriginal) => {
|
|
|
133
133
|
return { state, isLoading, error, execute, isReady: ref(true), executeDelayed: vi.fn() }
|
|
134
134
|
},
|
|
135
135
|
|
|
136
|
-
// Explicitly stubbed (like `useApi`) so a component that calls it at setup —
|
|
137
|
-
// e.g. the triggers TestDialog — mounts under the harness regardless of the
|
|
138
|
-
// resolved @antcde/vue-utils build. The stub just runs the dispatch callback
|
|
139
|
-
// once (no host round-trip); tests that assert the OAuth popup drive it directly.
|
|
140
|
-
useTriggerDispatch: () => ({
|
|
141
|
-
dispatch: vi.fn(async (run: () => Promise<unknown>) => run()),
|
|
142
|
-
}),
|
|
143
|
-
|
|
144
136
|
useCommsClient: () => {
|
|
145
137
|
const mocks = globalThis.__antTestMockComms
|
|
146
138
|
if (!mocks)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.24
|
|
4
|
+
"version": "0.1.24",
|
|
5
5
|
"description": "Helper to use ant components in Vue 3",
|
|
6
6
|
"author": "CollaborAll",
|
|
7
7
|
"exports": {
|
|
@@ -107,14 +107,13 @@
|
|
|
107
107
|
"@iconify/vue": ">=5.0.0",
|
|
108
108
|
"@intlify/unplugin-vue-i18n": ">=11.0.0",
|
|
109
109
|
"@pinia/testing": ">=1.0.0",
|
|
110
|
-
"@unocss/preset-rem-to-px": "
|
|
111
|
-
"@unocss/preset-
|
|
112
|
-
"@unocss/preset-wind4": "^66.7.0",
|
|
110
|
+
"@unocss/preset-rem-to-px": "*",
|
|
111
|
+
"@unocss/preset-wind4": "*",
|
|
113
112
|
"@vitejs/plugin-vue": ">=6.0.0",
|
|
114
113
|
"@vue/test-utils": ">=2.4.0",
|
|
115
114
|
"happy-dom": ">=20.0.0",
|
|
116
115
|
"pinia": ">=3.0.0",
|
|
117
|
-
"unocss": "
|
|
116
|
+
"unocss": "*",
|
|
118
117
|
"unplugin-auto-import": "*",
|
|
119
118
|
"unplugin-icons": "*",
|
|
120
119
|
"unplugin-vue-components": "*",
|
|
@@ -135,9 +134,6 @@
|
|
|
135
134
|
"@unocss/preset-rem-to-px": {
|
|
136
135
|
"optional": true
|
|
137
136
|
},
|
|
138
|
-
"@unocss/preset-typography": {
|
|
139
|
-
"optional": true
|
|
140
|
-
},
|
|
141
137
|
"@unocss/preset-wind4": {
|
|
142
138
|
"optional": true
|
|
143
139
|
},
|
|
@@ -184,45 +180,45 @@
|
|
|
184
180
|
"dependencies": {
|
|
185
181
|
"@arcgis/core": "^4.34.8",
|
|
186
182
|
"@mdi/font": "^7.4.47",
|
|
187
|
-
"@tiptap/extension-link": "^3.
|
|
188
|
-
"@tiptap/extension-mention": "^3.
|
|
189
|
-
"@tiptap/extension-placeholder": "^3.
|
|
190
|
-
"@tiptap/starter-kit": "^3.
|
|
191
|
-
"@tiptap/suggestion": "^3.
|
|
192
|
-
"@tiptap/vue-3": "^3.
|
|
183
|
+
"@tiptap/extension-link": "^3.26.1",
|
|
184
|
+
"@tiptap/extension-mention": "^3.26.1",
|
|
185
|
+
"@tiptap/extension-placeholder": "^3.26.1",
|
|
186
|
+
"@tiptap/starter-kit": "^3.26.1",
|
|
187
|
+
"@tiptap/suggestion": "^3.26.1",
|
|
188
|
+
"@tiptap/vue-3": "^3.26.1",
|
|
193
189
|
"@vue-flow/background": "^1.3.2",
|
|
194
190
|
"@vue-flow/core": "^1.48.2",
|
|
195
191
|
"@vue-flow/minimap": "^1.5.4",
|
|
196
192
|
"@vueuse/core": "^14.3.0",
|
|
197
|
-
"qs": "^6.15.
|
|
198
|
-
"sanitize-html": "^2.17.
|
|
199
|
-
"vue-i18n": "^11.4.
|
|
193
|
+
"qs": "^6.15.2",
|
|
194
|
+
"sanitize-html": "^2.17.5",
|
|
195
|
+
"vue-i18n": "^11.4.5"
|
|
200
196
|
},
|
|
201
197
|
"devDependencies": {
|
|
202
|
-
"@antcde/connect-ts": "0.4.26
|
|
203
|
-
"@antcde/vue-utils": "0.2.21
|
|
198
|
+
"@antcde/connect-ts": "0.4.26",
|
|
199
|
+
"@antcde/vue-utils": "0.2.21",
|
|
204
200
|
"@arcgis/core": "^4.30.9",
|
|
205
201
|
"@iconify-json/mdi": "^1.2.3",
|
|
206
202
|
"@iconify/vue": "^5.0.1",
|
|
207
|
-
"@intlify/unplugin-vue-i18n": "^11.2.
|
|
203
|
+
"@intlify/unplugin-vue-i18n": "^11.2.3",
|
|
208
204
|
"@mdi/font": "^7.2.96",
|
|
209
205
|
"@tsconfig/node22": "^22.0.5",
|
|
210
|
-
"@types/node": "^25.9.
|
|
206
|
+
"@types/node": "^25.9.3",
|
|
211
207
|
"@types/qs": "^6.15.1",
|
|
212
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
208
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
213
209
|
"@vue/test-utils": "^2.4.11",
|
|
214
210
|
"@vue/tsconfig": "^0.9.1",
|
|
215
|
-
"happy-dom": "^20.
|
|
211
|
+
"happy-dom": "^20.10.4",
|
|
216
212
|
"pinia": "^3.0.4",
|
|
217
|
-
"sass": "^1.101.
|
|
213
|
+
"sass": "^1.101.0",
|
|
218
214
|
"typescript": "~6.0.3",
|
|
219
215
|
"unplugin-icons": "^23.0.1",
|
|
220
|
-
"vite": "^8.
|
|
221
|
-
"vite-plugin-css-injected-by-js": "^5.0.
|
|
216
|
+
"vite": "^8.0.16",
|
|
217
|
+
"vite-plugin-css-injected-by-js": "^5.0.1",
|
|
222
218
|
"vite-plugin-dts": "^4.5.4",
|
|
223
219
|
"vite-plugin-vuetify": "^2.1.3",
|
|
224
|
-
"vitest": "^4.1.
|
|
225
|
-
"vue": "^3.5.
|
|
226
|
-
"vue-tsc": "^3.3.
|
|
220
|
+
"vitest": "^4.1.9",
|
|
221
|
+
"vue": "^3.5.38",
|
|
222
|
+
"vue-tsc": "^3.3.5"
|
|
227
223
|
}
|
|
228
224
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type SplitPane = 'L' | 'R' | 'T' | 'B';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
splitPane?: SplitPane | null;
|
|
5
|
-
/** App is connected to the selected task. */
|
|
6
|
-
highlighted?: boolean;
|
|
7
|
-
highlightLabel?: string;
|
|
8
|
-
/** App belongs to a project scope (vs license-wide). */
|
|
9
|
-
projectApp?: boolean;
|
|
10
|
-
scopeLabel?: string;
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
isFavorite?: boolean;
|
|
13
|
-
updateAvailable?: boolean;
|
|
14
|
-
nextVersion?: string;
|
|
15
|
-
};
|
|
16
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
icon?: string | null;
|
|
3
|
-
color?: string | null;
|
|
4
|
-
image?: string | null;
|
|
5
|
-
iconSize: number;
|
|
6
|
-
showLoadingIndicator?: boolean;
|
|
7
|
-
isLoading?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare function __VLS_template(): {
|
|
10
|
-
attrs: Partial<{}>;
|
|
11
|
-
slots: {
|
|
12
|
-
'bottom-right'?(_: {
|
|
13
|
-
foregroundColor: string;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: HTMLDivElement;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
app: {
|
|
3
|
-
title: string;
|
|
4
|
-
icon?: string | null;
|
|
5
|
-
color?: string | null;
|
|
6
|
-
image?: string | null;
|
|
7
|
-
};
|
|
8
|
-
iconSize: number;
|
|
9
|
-
cardClasses?: Record<string, boolean>;
|
|
10
|
-
showLoadingIndicator?: boolean;
|
|
11
|
-
titleless?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
clicked: () => any;
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
-
onClicked?: (() => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type UpdateState = 'idle' | 'updating' | 'done' | 'failed' | 'cleared';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
state?: UpdateState;
|
|
4
|
-
updateAvailable?: boolean;
|
|
5
|
-
nextVersion?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MentionItem } from './_useMentionPicker';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
items: MentionItem[];
|
|
4
|
-
selected: number;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
rect: {
|
|
7
|
-
left: number;
|
|
8
|
-
top: number;
|
|
9
|
-
} | null;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
pick: (item: MentionItem) => any;
|
|
13
|
-
hover: (index: number) => any;
|
|
14
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onPick?: ((item: MentionItem) => any) | undefined;
|
|
16
|
-
onHover?: ((index: number) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/vue-3';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
editor: Editor;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
-
export default _default;
|