@antcde/component-library 0.1.14-rc.703ea01 → 0.1.14-rc.8f1db38
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/index.js +9620 -9459
- package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +2 -4
- package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +81 -95
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +6 -6
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +1 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +26 -26
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
- package/package.json +3 -3
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Task, TaskTemplateVersion, VersionCheck, VersionDiff } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
4
|
+
export type DiffStatus = 'added' | 'removed' | 'modified';
|
|
5
|
+
export declare function useTemplateVersioningState(flowParent: Ref<Task | null>, flowEdges: Ref<TaskFlowEdge[]>): {
|
|
6
|
+
versions: Ref<{
|
|
7
|
+
id: string;
|
|
8
|
+
template_id: string;
|
|
9
|
+
version: number;
|
|
10
|
+
change_summary: string | null;
|
|
11
|
+
created_by: string | {
|
|
12
|
+
id: string;
|
|
13
|
+
firstname: string;
|
|
14
|
+
lastname: string;
|
|
15
|
+
email: string;
|
|
16
|
+
};
|
|
17
|
+
created_at: string;
|
|
18
|
+
snapshot?: any;
|
|
19
|
+
}[], TaskTemplateVersion[] | {
|
|
20
|
+
id: string;
|
|
21
|
+
template_id: string;
|
|
22
|
+
version: number;
|
|
23
|
+
change_summary: string | null;
|
|
24
|
+
created_by: string | {
|
|
25
|
+
id: string;
|
|
26
|
+
firstname: string;
|
|
27
|
+
lastname: string;
|
|
28
|
+
email: string;
|
|
29
|
+
};
|
|
30
|
+
created_at: string;
|
|
31
|
+
snapshot?: any;
|
|
32
|
+
}[]>;
|
|
33
|
+
versionCheck: Ref<{
|
|
34
|
+
has_update: boolean;
|
|
35
|
+
current_version: number;
|
|
36
|
+
latest_version: number;
|
|
37
|
+
template_id: string;
|
|
38
|
+
} | null, VersionCheck | {
|
|
39
|
+
has_update: boolean;
|
|
40
|
+
current_version: number;
|
|
41
|
+
latest_version: number;
|
|
42
|
+
template_id: string;
|
|
43
|
+
} | null>;
|
|
44
|
+
versionDiff: Ref<{
|
|
45
|
+
added: {
|
|
46
|
+
source_id: string;
|
|
47
|
+
title: string;
|
|
48
|
+
change_type: "added" | "removed";
|
|
49
|
+
duration_days?: number | null | undefined;
|
|
50
|
+
position_x?: number | undefined;
|
|
51
|
+
position_y?: number | undefined;
|
|
52
|
+
checks?: {
|
|
53
|
+
name: string;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
removed: {
|
|
57
|
+
source_id: string;
|
|
58
|
+
title: string;
|
|
59
|
+
change_type: "added" | "removed";
|
|
60
|
+
duration_days?: number | null | undefined;
|
|
61
|
+
position_x?: number | undefined;
|
|
62
|
+
position_y?: number | undefined;
|
|
63
|
+
checks?: {
|
|
64
|
+
name: string;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
}[];
|
|
67
|
+
modified: {
|
|
68
|
+
source_id: string;
|
|
69
|
+
title: string;
|
|
70
|
+
change_type: "modified";
|
|
71
|
+
changes: Record<string, {
|
|
72
|
+
old: any;
|
|
73
|
+
new: any;
|
|
74
|
+
}>;
|
|
75
|
+
}[];
|
|
76
|
+
relations_added: {
|
|
77
|
+
source_ref: string;
|
|
78
|
+
target_ref: string;
|
|
79
|
+
type: string;
|
|
80
|
+
lag_days: number;
|
|
81
|
+
}[];
|
|
82
|
+
relations_removed: {
|
|
83
|
+
source_ref: string;
|
|
84
|
+
target_ref: string;
|
|
85
|
+
type: string;
|
|
86
|
+
lag_days: number;
|
|
87
|
+
}[];
|
|
88
|
+
from_version: number;
|
|
89
|
+
to_version: number;
|
|
90
|
+
task_mapping?: Record<string, string> | undefined;
|
|
91
|
+
target_version_id?: string | undefined;
|
|
92
|
+
from_version_id?: string | undefined;
|
|
93
|
+
} | null, VersionDiff | {
|
|
94
|
+
added: {
|
|
95
|
+
source_id: string;
|
|
96
|
+
title: string;
|
|
97
|
+
change_type: "added" | "removed";
|
|
98
|
+
duration_days?: number | null | undefined;
|
|
99
|
+
position_x?: number | undefined;
|
|
100
|
+
position_y?: number | undefined;
|
|
101
|
+
checks?: {
|
|
102
|
+
name: string;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
removed: {
|
|
106
|
+
source_id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
change_type: "added" | "removed";
|
|
109
|
+
duration_days?: number | null | undefined;
|
|
110
|
+
position_x?: number | undefined;
|
|
111
|
+
position_y?: number | undefined;
|
|
112
|
+
checks?: {
|
|
113
|
+
name: string;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
}[];
|
|
116
|
+
modified: {
|
|
117
|
+
source_id: string;
|
|
118
|
+
title: string;
|
|
119
|
+
change_type: "modified";
|
|
120
|
+
changes: Record<string, {
|
|
121
|
+
old: any;
|
|
122
|
+
new: any;
|
|
123
|
+
}>;
|
|
124
|
+
}[];
|
|
125
|
+
relations_added: {
|
|
126
|
+
source_ref: string;
|
|
127
|
+
target_ref: string;
|
|
128
|
+
type: string;
|
|
129
|
+
lag_days: number;
|
|
130
|
+
}[];
|
|
131
|
+
relations_removed: {
|
|
132
|
+
source_ref: string;
|
|
133
|
+
target_ref: string;
|
|
134
|
+
type: string;
|
|
135
|
+
lag_days: number;
|
|
136
|
+
}[];
|
|
137
|
+
from_version: number;
|
|
138
|
+
to_version: number;
|
|
139
|
+
task_mapping?: Record<string, string> | undefined;
|
|
140
|
+
target_version_id?: string | undefined;
|
|
141
|
+
from_version_id?: string | undefined;
|
|
142
|
+
} | null>;
|
|
143
|
+
isPublishing: Ref<boolean, boolean>;
|
|
144
|
+
isSyncing: Ref<boolean, boolean>;
|
|
145
|
+
isDiffLoading: Ref<boolean, boolean>;
|
|
146
|
+
isCompareMode: Ref<boolean, boolean>;
|
|
147
|
+
isCompareOriginal: Ref<boolean, boolean>;
|
|
148
|
+
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
149
|
+
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
150
|
+
selectedFromVersionId: Ref<string | null, string | null>;
|
|
151
|
+
isTemplate: import('vue').ComputedRef<boolean>;
|
|
152
|
+
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
153
|
+
currentVersion: import('vue').ComputedRef<number>;
|
|
154
|
+
latestVersion: import('vue').ComputedRef<number>;
|
|
155
|
+
hasVersions: import('vue').ComputedRef<boolean>;
|
|
156
|
+
availableVersions: import('vue').ComputedRef<{
|
|
157
|
+
id: string;
|
|
158
|
+
template_id: string;
|
|
159
|
+
version: number;
|
|
160
|
+
change_summary: string | null;
|
|
161
|
+
created_by: string | {
|
|
162
|
+
id: string;
|
|
163
|
+
firstname: string;
|
|
164
|
+
lastname: string;
|
|
165
|
+
email: string;
|
|
166
|
+
};
|
|
167
|
+
created_at: string;
|
|
168
|
+
snapshot?: any;
|
|
169
|
+
}[]>;
|
|
170
|
+
diffNodeMap: import('vue').ComputedRef<Map<string, DiffStatus>>;
|
|
171
|
+
diffEdgeMap: import('vue').ComputedRef<Map<string, DiffStatus>>;
|
|
172
|
+
ghostNodes: import('vue').ComputedRef<TaskFlowNode[]>;
|
|
173
|
+
ghostEdges: import('vue').ComputedRef<TaskFlowEdge[]>;
|
|
174
|
+
canApplyCompare: import('vue').ComputedRef<boolean>;
|
|
175
|
+
totalChanges: import('vue').ComputedRef<number>;
|
|
176
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.14-rc.
|
|
4
|
+
"version": "0.1.14-rc.8f1db38",
|
|
5
5
|
"description": "Helper to use ant components in Vue 3",
|
|
6
6
|
"author": "CollaborAll",
|
|
7
7
|
"exports": {
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
"dependencies": {
|
|
162
|
-
"@antcde/connect-ts": "0.4.18-rc.
|
|
163
|
-
"@antcde/vue-utils": "0.2.14-rc.
|
|
162
|
+
"@antcde/connect-ts": "0.4.18-rc.8f1db38",
|
|
163
|
+
"@antcde/vue-utils": "0.2.14-rc.8f1db38",
|
|
164
164
|
"@arcgis/core": "^4.34.8",
|
|
165
165
|
"@mdi/font": "^7.4.47",
|
|
166
166
|
"@tiptap/extension-link": "^3.23.6",
|