@antcde/component-library 0.1.24 → 0.1.25-rc.10
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 +9 -1
- package/dist/index.js +20683 -20066
- package/dist/types/src/components/BaseAntInput.types.d.ts +111 -0
- package/dist/types/src/components/BaseAntInput.vue.d.ts +2 -74
- package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +17 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +27 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +5 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +18 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +8 -0
- package/dist/types/src/components/{BaseAppCard.vue.d.ts → BaseAppCard/index.vue.d.ts} +22 -7
- package/dist/types/src/components/BaseAppCardSkeleton.vue.d.ts +6 -0
- package/dist/types/src/components/BaseResizePanel.vue.d.ts +19 -18
- package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +8 -0
- package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +2 -0
- package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +1 -0
- package/dist/types/src/components/FilePreviewContent/_PreviewDetails.vue.d.ts +18 -0
- package/dist/types/src/components/FilePreviewContent/_PreviewMeta.vue.d.ts +13 -0
- package/dist/types/src/components/FilePreviewContent/_PreviewUsages.vue.d.ts +13 -0
- package/dist/types/src/components/FilePreviewContent/fileFormat.d.ts +7 -0
- package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +20 -14
- package/dist/types/src/components/FilePreviewContent/types.d.ts +27 -0
- package/dist/types/src/components/FilePreviewContent/usePreviewDetails.d.ts +49 -0
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +5 -1
- package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +18 -0
- package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +6 -0
- package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +28 -0
- package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +47 -0
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +20 -6
- package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +11 -1
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +11 -0
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +16 -0
- package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +5 -2
- package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -0
- package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +4 -1
- package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +6 -0
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
- package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +19 -0
- package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +6 -10
- package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +18 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +3 -1
- package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +19 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +6 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +1 -4
- package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +23 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +58 -4
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +4 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +53 -4
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +52 -4
- package/dist/types/src/components/TasksFlow/index.vue.d.ts +10 -0
- package/dist/types/src/components/UnifiedWindow/_WindowPresetMenu.vue.d.ts +11 -0
- package/dist/types/src/components/UnifiedWindow/_WindowTabs.vue.d.ts +16 -0
- package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +3 -9
- package/dist/types/src/components/UnifiedWindow/types.d.ts +11 -0
- package/dist/types/src/components/UnifiedWindow/useNativeFullscreen.d.ts +18 -0
- package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +8 -0
- package/dist/types/src/components/_BaseAntInputField.vue.d.ts +36 -0
- package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +33 -0
- package/dist/types/src/components/useResizePanel.d.ts +38 -0
- package/dist/types/src/index.d.ts +3 -3
- package/lib/PdfViewer/PdfViewer.vue +245 -0
- package/lib/PdfViewer/_PdfToolbar.vue +196 -0
- package/lib/PdfViewer/canvasBudget.ts +57 -0
- package/lib/PdfViewer/index.ts +5 -0
- package/lib/PdfViewer/labels.ts +52 -0
- package/lib/PdfViewer/usePdfDocument.ts +239 -0
- package/lib/PdfViewer/usePdfKeyboard.ts +38 -0
- package/lib/PdfViewer/usePdfRaster.ts +85 -0
- package/lib/PdfViewer/usePdfTransform.ts +238 -0
- package/lib/build/uno.ts +10 -1
- package/lib/test/mocks/createMockContext.ts +2 -0
- package/lib/test/setup.ts +8 -0
- package/package.json +39 -28
|
@@ -9,6 +9,7 @@ export type { TaskFlowEdge, TaskFlowNode, TaskFlowQuery } from './useTaskFlowTyp
|
|
|
9
9
|
export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, channelSubscriber?: FlowChannelSubscriber): {
|
|
10
10
|
fetchVersions: () => Promise<void>;
|
|
11
11
|
publishVersion: (changeSummary?: string) => Promise<import('@antcde/connect-ts').TaskTemplateVersion | null>;
|
|
12
|
+
checkDraftChanges: () => Promise<void>;
|
|
12
13
|
checkUpdates: () => Promise<void>;
|
|
13
14
|
fetchDiff: (targetVersionId?: string) => Promise<void>;
|
|
14
15
|
syncToVersion: (targetVersionId?: string) => Promise<import('@antcde/connect-ts').VersionSyncResult | null>;
|
|
@@ -48,11 +49,13 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
48
49
|
}[]>;
|
|
49
50
|
versionCheck: Ref<{
|
|
50
51
|
has_update: boolean;
|
|
52
|
+
has_changes?: boolean | undefined;
|
|
51
53
|
current_version: number;
|
|
52
54
|
latest_version: number;
|
|
53
55
|
template_id: string;
|
|
54
56
|
} | null, import('@antcde/connect-ts').VersionCheck | {
|
|
55
57
|
has_update: boolean;
|
|
58
|
+
has_changes?: boolean | undefined;
|
|
56
59
|
current_version: number;
|
|
57
60
|
latest_version: number;
|
|
58
61
|
template_id: string;
|
|
@@ -62,22 +65,30 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
62
65
|
source_id: string;
|
|
63
66
|
title: string;
|
|
64
67
|
change_type: "added" | "removed";
|
|
68
|
+
status?: string | undefined;
|
|
65
69
|
duration_days?: number | null | undefined;
|
|
70
|
+
duration_active_days?: number[] | null | undefined;
|
|
66
71
|
position_x?: number | undefined;
|
|
67
72
|
position_y?: number | undefined;
|
|
73
|
+
parent_ref?: string | null | undefined;
|
|
74
|
+
trigger_id?: string | null | undefined;
|
|
68
75
|
checks?: {
|
|
69
|
-
name: string;
|
|
76
|
+
name: string | null;
|
|
70
77
|
}[] | undefined;
|
|
71
78
|
}[];
|
|
72
79
|
removed: {
|
|
73
80
|
source_id: string;
|
|
74
81
|
title: string;
|
|
75
82
|
change_type: "added" | "removed";
|
|
83
|
+
status?: string | undefined;
|
|
76
84
|
duration_days?: number | null | undefined;
|
|
85
|
+
duration_active_days?: number[] | null | undefined;
|
|
77
86
|
position_x?: number | undefined;
|
|
78
87
|
position_y?: number | undefined;
|
|
88
|
+
parent_ref?: string | null | undefined;
|
|
89
|
+
trigger_id?: string | null | undefined;
|
|
79
90
|
checks?: {
|
|
80
|
-
name: string;
|
|
91
|
+
name: string | null;
|
|
81
92
|
}[] | undefined;
|
|
82
93
|
}[];
|
|
83
94
|
modified: {
|
|
@@ -94,13 +105,26 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
94
105
|
target_ref: string;
|
|
95
106
|
type: string;
|
|
96
107
|
lag_days: number;
|
|
108
|
+
lag_active_days?: number[] | undefined;
|
|
97
109
|
}[];
|
|
98
110
|
relations_removed: {
|
|
99
111
|
source_ref: string;
|
|
100
112
|
target_ref: string;
|
|
101
113
|
type: string;
|
|
102
114
|
lag_days: number;
|
|
115
|
+
lag_active_days?: number[] | undefined;
|
|
103
116
|
}[];
|
|
117
|
+
relations_modified?: {
|
|
118
|
+
source_ref: string;
|
|
119
|
+
target_ref: string;
|
|
120
|
+
type: string | null;
|
|
121
|
+
change_type: "modified";
|
|
122
|
+
changes: Record<string, {
|
|
123
|
+
old: any;
|
|
124
|
+
new: any;
|
|
125
|
+
}>;
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
has_changes?: boolean | undefined;
|
|
104
128
|
from_version: number;
|
|
105
129
|
to_version: number;
|
|
106
130
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -111,22 +135,30 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
111
135
|
source_id: string;
|
|
112
136
|
title: string;
|
|
113
137
|
change_type: "added" | "removed";
|
|
138
|
+
status?: string | undefined;
|
|
114
139
|
duration_days?: number | null | undefined;
|
|
140
|
+
duration_active_days?: number[] | null | undefined;
|
|
115
141
|
position_x?: number | undefined;
|
|
116
142
|
position_y?: number | undefined;
|
|
143
|
+
parent_ref?: string | null | undefined;
|
|
144
|
+
trigger_id?: string | null | undefined;
|
|
117
145
|
checks?: {
|
|
118
|
-
name: string;
|
|
146
|
+
name: string | null;
|
|
119
147
|
}[] | undefined;
|
|
120
148
|
}[];
|
|
121
149
|
removed: {
|
|
122
150
|
source_id: string;
|
|
123
151
|
title: string;
|
|
124
152
|
change_type: "added" | "removed";
|
|
153
|
+
status?: string | undefined;
|
|
125
154
|
duration_days?: number | null | undefined;
|
|
155
|
+
duration_active_days?: number[] | null | undefined;
|
|
126
156
|
position_x?: number | undefined;
|
|
127
157
|
position_y?: number | undefined;
|
|
158
|
+
parent_ref?: string | null | undefined;
|
|
159
|
+
trigger_id?: string | null | undefined;
|
|
128
160
|
checks?: {
|
|
129
|
-
name: string;
|
|
161
|
+
name: string | null;
|
|
130
162
|
}[] | undefined;
|
|
131
163
|
}[];
|
|
132
164
|
modified: {
|
|
@@ -143,13 +175,26 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
143
175
|
target_ref: string;
|
|
144
176
|
type: string;
|
|
145
177
|
lag_days: number;
|
|
178
|
+
lag_active_days?: number[] | undefined;
|
|
146
179
|
}[];
|
|
147
180
|
relations_removed: {
|
|
148
181
|
source_ref: string;
|
|
149
182
|
target_ref: string;
|
|
150
183
|
type: string;
|
|
151
184
|
lag_days: number;
|
|
185
|
+
lag_active_days?: number[] | undefined;
|
|
152
186
|
}[];
|
|
187
|
+
relations_modified?: {
|
|
188
|
+
source_ref: string;
|
|
189
|
+
target_ref: string;
|
|
190
|
+
type: string | null;
|
|
191
|
+
change_type: "modified";
|
|
192
|
+
changes: Record<string, {
|
|
193
|
+
old: any;
|
|
194
|
+
new: any;
|
|
195
|
+
}>;
|
|
196
|
+
}[] | undefined;
|
|
197
|
+
has_changes?: boolean | undefined;
|
|
153
198
|
from_version: number;
|
|
154
199
|
to_version: number;
|
|
155
200
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -159,16 +204,20 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
159
204
|
isPublishing: Ref<boolean, boolean>;
|
|
160
205
|
isSyncing: Ref<boolean, boolean>;
|
|
161
206
|
isDiffLoading: Ref<boolean, boolean>;
|
|
207
|
+
isVersionStateLoading: Ref<boolean, boolean>;
|
|
162
208
|
isCompareMode: Ref<boolean, boolean>;
|
|
163
209
|
isCompareOriginal: Ref<boolean, boolean>;
|
|
164
210
|
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
165
211
|
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
166
212
|
selectedFromVersionId: Ref<string | null, string | null>;
|
|
213
|
+
draftChangeCount: Ref<number, number>;
|
|
167
214
|
isTemplate: import('vue').ComputedRef<boolean>;
|
|
168
215
|
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
169
216
|
currentVersion: import('vue').ComputedRef<number>;
|
|
170
217
|
latestVersion: import('vue').ComputedRef<number>;
|
|
171
218
|
hasVersions: import('vue').ComputedRef<boolean>;
|
|
219
|
+
publishedVersion: import('vue').ComputedRef<number>;
|
|
220
|
+
hasUnpublishedChanges: import('vue').ComputedRef<boolean>;
|
|
172
221
|
availableVersions: import('vue').ComputedRef<{
|
|
173
222
|
id: string;
|
|
174
223
|
template_id: string;
|
|
@@ -208,6 +257,10 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
208
257
|
}[]>;
|
|
209
258
|
isNavigating: Ref<boolean, boolean>;
|
|
210
259
|
navigateToChild: (childId: string, _childTitle: string) => Promise<void>;
|
|
260
|
+
navigateToNode: (targetId: string, path: {
|
|
261
|
+
id: string;
|
|
262
|
+
title: string;
|
|
263
|
+
}[]) => Promise<void>;
|
|
211
264
|
navigateBack: (index?: number) => Promise<void>;
|
|
212
265
|
handleTaskEvent: (payload: {
|
|
213
266
|
id: string;
|
|
@@ -310,6 +363,7 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
|
|
|
310
363
|
highlightedNodeId: Ref<string | null, string | null>;
|
|
311
364
|
hoveredNodeId: Ref<string | null, string | null>;
|
|
312
365
|
layoutDirection: Ref<"TB" | "LR", "TB" | "LR">;
|
|
366
|
+
viewMode: Ref<"free" | "swimlane", "free" | "swimlane">;
|
|
313
367
|
editingConditionsEdgeId: Ref<string | null, string | null>;
|
|
314
368
|
openConditionsEditor: (edgeId: string) => void;
|
|
315
369
|
closeConditionsEditor: () => void;
|
|
@@ -5,6 +5,7 @@ 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>;
|
|
8
9
|
checkUpdates: () => Promise<void>;
|
|
9
10
|
fetchDiff: (targetVersionId?: string) => Promise<void>;
|
|
10
11
|
syncToVersion: (targetVersionId?: string) => Promise<import('@antcde/connect-ts').VersionSyncResult | null>;
|
|
@@ -44,11 +45,13 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
44
45
|
}[]>;
|
|
45
46
|
versionCheck: Ref<{
|
|
46
47
|
has_update: boolean;
|
|
48
|
+
has_changes?: boolean | undefined;
|
|
47
49
|
current_version: number;
|
|
48
50
|
latest_version: number;
|
|
49
51
|
template_id: string;
|
|
50
52
|
} | null, import('@antcde/connect-ts').VersionCheck | {
|
|
51
53
|
has_update: boolean;
|
|
54
|
+
has_changes?: boolean | undefined;
|
|
52
55
|
current_version: number;
|
|
53
56
|
latest_version: number;
|
|
54
57
|
template_id: string;
|
|
@@ -58,22 +61,30 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
58
61
|
source_id: string;
|
|
59
62
|
title: string;
|
|
60
63
|
change_type: "added" | "removed";
|
|
64
|
+
status?: string | undefined;
|
|
61
65
|
duration_days?: number | null | undefined;
|
|
66
|
+
duration_active_days?: number[] | null | undefined;
|
|
62
67
|
position_x?: number | undefined;
|
|
63
68
|
position_y?: number | undefined;
|
|
69
|
+
parent_ref?: string | null | undefined;
|
|
70
|
+
trigger_id?: string | null | undefined;
|
|
64
71
|
checks?: {
|
|
65
|
-
name: string;
|
|
72
|
+
name: string | null;
|
|
66
73
|
}[] | undefined;
|
|
67
74
|
}[];
|
|
68
75
|
removed: {
|
|
69
76
|
source_id: string;
|
|
70
77
|
title: string;
|
|
71
78
|
change_type: "added" | "removed";
|
|
79
|
+
status?: string | undefined;
|
|
72
80
|
duration_days?: number | null | undefined;
|
|
81
|
+
duration_active_days?: number[] | null | undefined;
|
|
73
82
|
position_x?: number | undefined;
|
|
74
83
|
position_y?: number | undefined;
|
|
84
|
+
parent_ref?: string | null | undefined;
|
|
85
|
+
trigger_id?: string | null | undefined;
|
|
75
86
|
checks?: {
|
|
76
|
-
name: string;
|
|
87
|
+
name: string | null;
|
|
77
88
|
}[] | undefined;
|
|
78
89
|
}[];
|
|
79
90
|
modified: {
|
|
@@ -90,13 +101,26 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
90
101
|
target_ref: string;
|
|
91
102
|
type: string;
|
|
92
103
|
lag_days: number;
|
|
104
|
+
lag_active_days?: number[] | undefined;
|
|
93
105
|
}[];
|
|
94
106
|
relations_removed: {
|
|
95
107
|
source_ref: string;
|
|
96
108
|
target_ref: string;
|
|
97
109
|
type: string;
|
|
98
110
|
lag_days: number;
|
|
111
|
+
lag_active_days?: number[] | undefined;
|
|
99
112
|
}[];
|
|
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;
|
|
100
124
|
from_version: number;
|
|
101
125
|
to_version: number;
|
|
102
126
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -107,22 +131,30 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
107
131
|
source_id: string;
|
|
108
132
|
title: string;
|
|
109
133
|
change_type: "added" | "removed";
|
|
134
|
+
status?: string | undefined;
|
|
110
135
|
duration_days?: number | null | undefined;
|
|
136
|
+
duration_active_days?: number[] | null | undefined;
|
|
111
137
|
position_x?: number | undefined;
|
|
112
138
|
position_y?: number | undefined;
|
|
139
|
+
parent_ref?: string | null | undefined;
|
|
140
|
+
trigger_id?: string | null | undefined;
|
|
113
141
|
checks?: {
|
|
114
|
-
name: string;
|
|
142
|
+
name: string | null;
|
|
115
143
|
}[] | undefined;
|
|
116
144
|
}[];
|
|
117
145
|
removed: {
|
|
118
146
|
source_id: string;
|
|
119
147
|
title: string;
|
|
120
148
|
change_type: "added" | "removed";
|
|
149
|
+
status?: string | undefined;
|
|
121
150
|
duration_days?: number | null | undefined;
|
|
151
|
+
duration_active_days?: number[] | null | undefined;
|
|
122
152
|
position_x?: number | undefined;
|
|
123
153
|
position_y?: number | undefined;
|
|
154
|
+
parent_ref?: string | null | undefined;
|
|
155
|
+
trigger_id?: string | null | undefined;
|
|
124
156
|
checks?: {
|
|
125
|
-
name: string;
|
|
157
|
+
name: string | null;
|
|
126
158
|
}[] | undefined;
|
|
127
159
|
}[];
|
|
128
160
|
modified: {
|
|
@@ -139,13 +171,26 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
139
171
|
target_ref: string;
|
|
140
172
|
type: string;
|
|
141
173
|
lag_days: number;
|
|
174
|
+
lag_active_days?: number[] | undefined;
|
|
142
175
|
}[];
|
|
143
176
|
relations_removed: {
|
|
144
177
|
source_ref: string;
|
|
145
178
|
target_ref: string;
|
|
146
179
|
type: string;
|
|
147
180
|
lag_days: number;
|
|
181
|
+
lag_active_days?: number[] | undefined;
|
|
148
182
|
}[];
|
|
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;
|
|
149
194
|
from_version: number;
|
|
150
195
|
to_version: number;
|
|
151
196
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -155,16 +200,20 @@ export declare function useTemplateVersioning(antConnect: AntConnect, flowParent
|
|
|
155
200
|
isPublishing: Ref<boolean, boolean>;
|
|
156
201
|
isSyncing: Ref<boolean, boolean>;
|
|
157
202
|
isDiffLoading: Ref<boolean, boolean>;
|
|
203
|
+
isVersionStateLoading: Ref<boolean, boolean>;
|
|
158
204
|
isCompareMode: Ref<boolean, boolean>;
|
|
159
205
|
isCompareOriginal: Ref<boolean, boolean>;
|
|
160
206
|
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
161
207
|
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
162
208
|
selectedFromVersionId: Ref<string | null, string | null>;
|
|
209
|
+
draftChangeCount: Ref<number, number>;
|
|
163
210
|
isTemplate: import('vue').ComputedRef<boolean>;
|
|
164
211
|
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
165
212
|
currentVersion: import('vue').ComputedRef<number>;
|
|
166
213
|
latestVersion: import('vue').ComputedRef<number>;
|
|
167
214
|
hasVersions: import('vue').ComputedRef<boolean>;
|
|
215
|
+
publishedVersion: import('vue').ComputedRef<number>;
|
|
216
|
+
hasUnpublishedChanges: import('vue').ComputedRef<boolean>;
|
|
168
217
|
availableVersions: import('vue').ComputedRef<{
|
|
169
218
|
id: string;
|
|
170
219
|
template_id: string;
|
|
@@ -32,11 +32,13 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
32
32
|
}[]>;
|
|
33
33
|
versionCheck: Ref<{
|
|
34
34
|
has_update: boolean;
|
|
35
|
+
has_changes?: boolean | undefined;
|
|
35
36
|
current_version: number;
|
|
36
37
|
latest_version: number;
|
|
37
38
|
template_id: string;
|
|
38
39
|
} | null, VersionCheck | {
|
|
39
40
|
has_update: boolean;
|
|
41
|
+
has_changes?: boolean | undefined;
|
|
40
42
|
current_version: number;
|
|
41
43
|
latest_version: number;
|
|
42
44
|
template_id: string;
|
|
@@ -46,22 +48,30 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
46
48
|
source_id: string;
|
|
47
49
|
title: string;
|
|
48
50
|
change_type: "added" | "removed";
|
|
51
|
+
status?: string | undefined;
|
|
49
52
|
duration_days?: number | null | undefined;
|
|
53
|
+
duration_active_days?: number[] | null | undefined;
|
|
50
54
|
position_x?: number | undefined;
|
|
51
55
|
position_y?: number | undefined;
|
|
56
|
+
parent_ref?: string | null | undefined;
|
|
57
|
+
trigger_id?: string | null | undefined;
|
|
52
58
|
checks?: {
|
|
53
|
-
name: string;
|
|
59
|
+
name: string | null;
|
|
54
60
|
}[] | undefined;
|
|
55
61
|
}[];
|
|
56
62
|
removed: {
|
|
57
63
|
source_id: string;
|
|
58
64
|
title: string;
|
|
59
65
|
change_type: "added" | "removed";
|
|
66
|
+
status?: string | undefined;
|
|
60
67
|
duration_days?: number | null | undefined;
|
|
68
|
+
duration_active_days?: number[] | null | undefined;
|
|
61
69
|
position_x?: number | undefined;
|
|
62
70
|
position_y?: number | undefined;
|
|
71
|
+
parent_ref?: string | null | undefined;
|
|
72
|
+
trigger_id?: string | null | undefined;
|
|
63
73
|
checks?: {
|
|
64
|
-
name: string;
|
|
74
|
+
name: string | null;
|
|
65
75
|
}[] | undefined;
|
|
66
76
|
}[];
|
|
67
77
|
modified: {
|
|
@@ -78,13 +88,26 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
78
88
|
target_ref: string;
|
|
79
89
|
type: string;
|
|
80
90
|
lag_days: number;
|
|
91
|
+
lag_active_days?: number[] | undefined;
|
|
81
92
|
}[];
|
|
82
93
|
relations_removed: {
|
|
83
94
|
source_ref: string;
|
|
84
95
|
target_ref: string;
|
|
85
96
|
type: string;
|
|
86
97
|
lag_days: number;
|
|
98
|
+
lag_active_days?: number[] | undefined;
|
|
87
99
|
}[];
|
|
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;
|
|
88
111
|
from_version: number;
|
|
89
112
|
to_version: number;
|
|
90
113
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -95,22 +118,30 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
95
118
|
source_id: string;
|
|
96
119
|
title: string;
|
|
97
120
|
change_type: "added" | "removed";
|
|
121
|
+
status?: string | undefined;
|
|
98
122
|
duration_days?: number | null | undefined;
|
|
123
|
+
duration_active_days?: number[] | null | undefined;
|
|
99
124
|
position_x?: number | undefined;
|
|
100
125
|
position_y?: number | undefined;
|
|
126
|
+
parent_ref?: string | null | undefined;
|
|
127
|
+
trigger_id?: string | null | undefined;
|
|
101
128
|
checks?: {
|
|
102
|
-
name: string;
|
|
129
|
+
name: string | null;
|
|
103
130
|
}[] | undefined;
|
|
104
131
|
}[];
|
|
105
132
|
removed: {
|
|
106
133
|
source_id: string;
|
|
107
134
|
title: string;
|
|
108
135
|
change_type: "added" | "removed";
|
|
136
|
+
status?: string | undefined;
|
|
109
137
|
duration_days?: number | null | undefined;
|
|
138
|
+
duration_active_days?: number[] | null | undefined;
|
|
110
139
|
position_x?: number | undefined;
|
|
111
140
|
position_y?: number | undefined;
|
|
141
|
+
parent_ref?: string | null | undefined;
|
|
142
|
+
trigger_id?: string | null | undefined;
|
|
112
143
|
checks?: {
|
|
113
|
-
name: string;
|
|
144
|
+
name: string | null;
|
|
114
145
|
}[] | undefined;
|
|
115
146
|
}[];
|
|
116
147
|
modified: {
|
|
@@ -127,13 +158,26 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
127
158
|
target_ref: string;
|
|
128
159
|
type: string;
|
|
129
160
|
lag_days: number;
|
|
161
|
+
lag_active_days?: number[] | undefined;
|
|
130
162
|
}[];
|
|
131
163
|
relations_removed: {
|
|
132
164
|
source_ref: string;
|
|
133
165
|
target_ref: string;
|
|
134
166
|
type: string;
|
|
135
167
|
lag_days: number;
|
|
168
|
+
lag_active_days?: number[] | undefined;
|
|
136
169
|
}[];
|
|
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;
|
|
137
181
|
from_version: number;
|
|
138
182
|
to_version: number;
|
|
139
183
|
task_mapping?: Record<string, string> | undefined;
|
|
@@ -143,16 +187,20 @@ export declare function useTemplateVersioningState(flowParent: Ref<Task | null>,
|
|
|
143
187
|
isPublishing: Ref<boolean, boolean>;
|
|
144
188
|
isSyncing: Ref<boolean, boolean>;
|
|
145
189
|
isDiffLoading: Ref<boolean, boolean>;
|
|
190
|
+
isVersionStateLoading: Ref<boolean, boolean>;
|
|
146
191
|
isCompareMode: Ref<boolean, boolean>;
|
|
147
192
|
isCompareOriginal: Ref<boolean, boolean>;
|
|
148
193
|
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
149
194
|
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
150
195
|
selectedFromVersionId: Ref<string | null, string | null>;
|
|
196
|
+
draftChangeCount: Ref<number, number>;
|
|
151
197
|
isTemplate: import('vue').ComputedRef<boolean>;
|
|
152
198
|
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
153
199
|
currentVersion: import('vue').ComputedRef<number>;
|
|
154
200
|
latestVersion: import('vue').ComputedRef<number>;
|
|
155
201
|
hasVersions: import('vue').ComputedRef<boolean>;
|
|
202
|
+
publishedVersion: import('vue').ComputedRef<number>;
|
|
203
|
+
hasUnpublishedChanges: import('vue').ComputedRef<boolean>;
|
|
156
204
|
availableVersions: import('vue').ComputedRef<{
|
|
157
205
|
id: string;
|
|
158
206
|
template_id: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { LifecycleAction } from './composables/useFlowLifecycle';
|
|
2
3
|
import { FlowChannelSubscriber } from './composables/useTaskFlow';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
flowId: string;
|
|
@@ -9,8 +10,11 @@ type __VLS_Props = {
|
|
|
9
10
|
isDark: boolean;
|
|
10
11
|
channelSubscriber?: FlowChannelSubscriber;
|
|
11
12
|
canManageTemplates?: boolean;
|
|
13
|
+
canPublishToLicense?: boolean;
|
|
12
14
|
isAdmin?: boolean;
|
|
13
15
|
fallbackProjectId?: string | null;
|
|
16
|
+
showSidebarToggle?: boolean;
|
|
17
|
+
isSidebarCollapsed?: boolean;
|
|
14
18
|
};
|
|
15
19
|
declare function reloadFlow(): void;
|
|
16
20
|
declare function updateFlowTask(task: Task): void;
|
|
@@ -28,12 +32,18 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
28
32
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
33
|
updated: () => any;
|
|
30
34
|
share: (task: Task) => any;
|
|
35
|
+
toggleSidebar: () => any;
|
|
31
36
|
parentTaskNotFound: () => any;
|
|
32
37
|
deletedFlowId: (id: string) => any;
|
|
38
|
+
lifecycleAction: (key: LifecycleAction) => any;
|
|
39
|
+
versionPublished: (version: number) => any;
|
|
33
40
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
41
|
onUpdated?: (() => any) | undefined;
|
|
35
42
|
onShare?: ((task: Task) => any) | undefined;
|
|
43
|
+
onToggleSidebar?: (() => any) | undefined;
|
|
36
44
|
onParentTaskNotFound?: (() => any) | undefined;
|
|
37
45
|
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
46
|
+
onLifecycleAction?: ((key: LifecycleAction) => any) | undefined;
|
|
47
|
+
onVersionPublished?: ((version: number) => any) | undefined;
|
|
38
48
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
39
49
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WindowSizePreset } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
currentPreset?: WindowSizePreset | null;
|
|
4
|
+
isDark: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
pick: (preset: WindowSizePreset) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onPick?: ((preset: WindowSizePreset) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WindowTab } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tabs: WindowTab[];
|
|
4
|
+
activeTab: number;
|
|
5
|
+
isDark: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
selectTab: (index: number) => any;
|
|
9
|
+
closeTab: (index: number) => any;
|
|
10
|
+
detachTab: (index: number) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSelectTab?: ((index: number) => any) | undefined;
|
|
13
|
+
onCloseTab?: ((index: number) => any) | undefined;
|
|
14
|
+
onDetachTab?: ((index: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface WindowTab {
|
|
3
|
-
id: string;
|
|
4
|
-
type: 'flow' | 'preview';
|
|
5
|
-
label: string;
|
|
6
|
-
icon: string;
|
|
7
|
-
}
|
|
1
|
+
import { WindowSizePreset, WindowTab } from './types';
|
|
8
2
|
type __VLS_Props = {
|
|
9
3
|
windowId: string;
|
|
10
4
|
tabs: WindowTab[];
|
|
@@ -39,8 +33,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
39
33
|
setGeometry: (nx: number, ny: number, nw: number, nh: number) => void;
|
|
40
34
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
35
|
close: () => any;
|
|
42
|
-
closeTab: (index: number) => any;
|
|
43
36
|
selectTab: (index: number) => any;
|
|
37
|
+
closeTab: (index: number) => any;
|
|
44
38
|
detachTab: (index: number) => any;
|
|
45
39
|
merge: (targetWindowId: string) => any;
|
|
46
40
|
minimize: () => any;
|
|
@@ -48,8 +42,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
48
42
|
userGeometryChange: () => any;
|
|
49
43
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
50
44
|
onClose?: (() => any) | undefined;
|
|
51
|
-
onCloseTab?: ((index: number) => any) | undefined;
|
|
52
45
|
onSelectTab?: ((index: number) => any) | undefined;
|
|
46
|
+
onCloseTab?: ((index: number) => any) | undefined;
|
|
53
47
|
onDetachTab?: ((index: number) => any) | undefined;
|
|
54
48
|
onMerge?: ((targetWindowId: string) => any) | undefined;
|
|
55
49
|
onMinimize?: (() => any) | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lives outside index.vue so the private sub-components can import it without a
|
|
3
|
+
* circular reference back through their own parent.
|
|
4
|
+
*/
|
|
5
|
+
export type WindowSizePreset = 'fit' | 'wide' | 'compact' | 'max' | 'fullscreen';
|
|
6
|
+
export interface WindowTab {
|
|
7
|
+
id: string;
|
|
8
|
+
type: 'flow' | 'preview';
|
|
9
|
+
label: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Drives the native Fullscreen API for one window element.
|
|
4
|
+
*
|
|
5
|
+
* Best-effort by design: iPadOS Safari exposes only the webkit-prefixed call and
|
|
6
|
+
* iPhone Safari exposes neither, so where it is unavailable this quietly does
|
|
7
|
+
* nothing and the caller's zero-inset geometry remains the result. A silent
|
|
8
|
+
* no-op degrades to the next best thing; a thrown error would degrade to a
|
|
9
|
+
* broken button.
|
|
10
|
+
*
|
|
11
|
+
* @param element the window root.
|
|
12
|
+
* @param onExit fired when the browser leaves fullscreen on its own — Escape,
|
|
13
|
+
* a gesture, or another element claiming the slot.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useNativeFullscreen(element: Ref<HTMLElement | null>, onExit: () => void): {
|
|
16
|
+
enter: () => void;
|
|
17
|
+
exit: () => void;
|
|
18
|
+
};
|
|
@@ -26,3 +26,11 @@ export declare function useWindowDrag(options: {
|
|
|
26
26
|
onResizeCancel: () => void;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* The window whose box contains this one's centre after a drag, if any — the
|
|
31
|
+
* drop target for merging two windows into one tabbed window.
|
|
32
|
+
*
|
|
33
|
+
* Looked up through the DOM rather than through geometry state because each
|
|
34
|
+
* window owns its own position; there is no shared layout model to consult.
|
|
35
|
+
*/
|
|
36
|
+
export declare function findMergeTarget(self: HTMLElement | null, selfId: string, otherIds: string[]): string | null;
|