@antcde/component-library 0.1.14-rc.703ea01 → 0.1.14-rc.77e4e54
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 +25514 -26548
- package/dist/types/src/components/AntTourZone/_TourInfoCard.vue.d.ts +18 -0
- package/dist/types/src/components/AntTourZone/_TourRing.vue.d.ts +15 -0
- package/dist/types/src/components/AntTourZone/index.vue.d.ts +49 -0
- package/dist/types/src/components/BaseAntDatePicker.vue.d.ts +2 -0
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +1 -63
- package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +26 -0
- package/dist/types/src/components/TasksFlow/components/_FlowTriggerMenu.vue.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +12 -0
- package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +1 -93
- package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +2 -4
- package/dist/types/src/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +86 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowAutoLayout.d.ts +12 -0
- 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/dist/types/src/components/TasksFlow/index.vue.d.ts +4 -4
- package/dist/types/src/index.d.ts +2 -1
- package/lib/build/vite.ts +14 -1
- package/package.json +20 -19
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
tip?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
+
large?: boolean;
|
|
8
|
+
anchorTop: number;
|
|
9
|
+
anchorLeft: number;
|
|
10
|
+
anchorWidth: number;
|
|
11
|
+
anchorHeight: number;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
close: () => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
/** Numeric border-radius string (e.g. "12" or "24px") */
|
|
7
|
+
radius: string;
|
|
8
|
+
/** z-index for this ring — caller sets per stacking layer */
|
|
9
|
+
z: number;
|
|
10
|
+
near: boolean;
|
|
11
|
+
hovered: boolean;
|
|
12
|
+
dimmed: boolean;
|
|
13
|
+
};
|
|
14
|
+
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>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Zone title shown in the info card */
|
|
3
|
+
title: string;
|
|
4
|
+
/** Zone description shown in the info card */
|
|
5
|
+
description: string;
|
|
6
|
+
/** Optional tip shown below description */
|
|
7
|
+
tip?: string;
|
|
8
|
+
/** Icon for the info card header */
|
|
9
|
+
icon?: string;
|
|
10
|
+
/** Where to anchor the info card relative to this zone */
|
|
11
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
12
|
+
/** Large zones anchor the card to viewport center-bottom */
|
|
13
|
+
large?: boolean;
|
|
14
|
+
/** Match wrapped element's border-radius so the ring follows its shape (numeric, e.g. "12") */
|
|
15
|
+
radius?: string;
|
|
16
|
+
/** Ring z-index — set per stacking layer of the wrapped element. */
|
|
17
|
+
z?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Set to false to suppress the ring/card for this zone even when tour mode is active.
|
|
20
|
+
* Defaults to true.
|
|
21
|
+
*/
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare function __VLS_template(): {
|
|
25
|
+
attrs: Partial<{}>;
|
|
26
|
+
slots: {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {
|
|
30
|
+
zoneRef: HTMLDivElement;
|
|
31
|
+
};
|
|
32
|
+
rootEl: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
placement: "top" | "bottom" | "left" | "right";
|
|
38
|
+
radius: string;
|
|
39
|
+
z: number;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
zoneRef: HTMLDivElement;
|
|
42
|
+
}, HTMLDivElement>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
required?: boolean;
|
|
5
5
|
placeholder: string;
|
|
6
6
|
rules?: string[];
|
|
7
|
+
locale?: string;
|
|
7
8
|
};
|
|
8
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
10
|
input: (...args: any[]) => void;
|
|
@@ -11,5 +12,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
11
12
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
12
13
|
}>, {
|
|
13
14
|
required: boolean;
|
|
15
|
+
locale: string;
|
|
14
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
17
|
export default _default;
|
|
@@ -18,69 +18,7 @@ declare function updateFlowTask(task: Task): void;
|
|
|
18
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
19
19
|
updateFlowTask: typeof updateFlowTask;
|
|
20
20
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
-
fullFlowRef:
|
|
22
|
-
flowId: string;
|
|
23
|
-
highlightId: string | null;
|
|
24
|
-
userId: string;
|
|
25
|
-
antConnect: AntConnect;
|
|
26
|
-
notepad: Notepad;
|
|
27
|
-
isDark: boolean;
|
|
28
|
-
channelSubscriber?: FlowChannelSubscriber;
|
|
29
|
-
canManageTemplates?: boolean;
|
|
30
|
-
isAdmin?: boolean;
|
|
31
|
-
fallbackProjectId?: string | null;
|
|
32
|
-
}> & Readonly<{
|
|
33
|
-
onUpdated?: (() => any) | undefined;
|
|
34
|
-
onParentTaskNotFound?: (() => any) | undefined;
|
|
35
|
-
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
36
|
-
onShare?: ((task: Task) => any) | undefined;
|
|
37
|
-
}>, {
|
|
38
|
-
reloadFlow: () => void;
|
|
39
|
-
updateFlowTask: (task: Task) => void;
|
|
40
|
-
refreshFromExternal: () => void;
|
|
41
|
-
handleTaskEvent: (payload: {
|
|
42
|
-
id: string;
|
|
43
|
-
action: string;
|
|
44
|
-
data?: any;
|
|
45
|
-
}) => void;
|
|
46
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
-
updated: () => any;
|
|
48
|
-
parentTaskNotFound: () => any;
|
|
49
|
-
deletedFlowId: (id: string) => any;
|
|
50
|
-
share: (task: Task) => any;
|
|
51
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
52
|
-
P: {};
|
|
53
|
-
B: {};
|
|
54
|
-
D: {};
|
|
55
|
-
C: {};
|
|
56
|
-
M: {};
|
|
57
|
-
Defaults: {};
|
|
58
|
-
}, Readonly<{
|
|
59
|
-
flowId: string;
|
|
60
|
-
highlightId: string | null;
|
|
61
|
-
userId: string;
|
|
62
|
-
antConnect: AntConnect;
|
|
63
|
-
notepad: Notepad;
|
|
64
|
-
isDark: boolean;
|
|
65
|
-
channelSubscriber?: FlowChannelSubscriber;
|
|
66
|
-
canManageTemplates?: boolean;
|
|
67
|
-
isAdmin?: boolean;
|
|
68
|
-
fallbackProjectId?: string | null;
|
|
69
|
-
}> & Readonly<{
|
|
70
|
-
onUpdated?: (() => any) | undefined;
|
|
71
|
-
onParentTaskNotFound?: (() => any) | undefined;
|
|
72
|
-
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
73
|
-
onShare?: ((task: Task) => any) | undefined;
|
|
74
|
-
}>, {
|
|
75
|
-
reloadFlow: () => void;
|
|
76
|
-
updateFlowTask: (task: Task) => void;
|
|
77
|
-
refreshFromExternal: () => void;
|
|
78
|
-
handleTaskEvent: (payload: {
|
|
79
|
-
id: string;
|
|
80
|
-
action: string;
|
|
81
|
-
data?: any;
|
|
82
|
-
}) => void;
|
|
83
|
-
}, {}, {}, {}, {}> | null;
|
|
21
|
+
fullFlowRef: unknown;
|
|
84
22
|
editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
85
23
|
isDark: boolean;
|
|
86
24
|
isAutoLayouting?: boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AntConnect, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { FlowEditorExposed } from '../composables/useFlowAutoLayout';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
isDark: boolean;
|
|
5
|
+
isNotepadOpen: boolean;
|
|
6
|
+
isAutoLayouting: boolean;
|
|
7
|
+
userId: string;
|
|
8
|
+
isAdmin?: boolean;
|
|
9
|
+
canManageTemplates?: boolean;
|
|
10
|
+
antConnect: AntConnect;
|
|
11
|
+
editorRef: FlowEditorExposed | null;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"toggle-notepad": () => any;
|
|
15
|
+
"auto-layout": () => any;
|
|
16
|
+
"open-insert-template": () => any;
|
|
17
|
+
"publish-version": () => any;
|
|
18
|
+
share: (task: Task) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onToggle-notepad"?: (() => any) | undefined;
|
|
21
|
+
"onAuto-layout"?: (() => any) | undefined;
|
|
22
|
+
"onOpen-insert-template"?: (() => any) | undefined;
|
|
23
|
+
"onPublish-version"?: (() => any) | undefined;
|
|
24
|
+
onShare?: ((task: Task) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AntConnect } from '@antcde/connect-ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isDark: boolean;
|
|
4
|
+
antConnect: AntConnect;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
+
menuOpen: import('vue').Ref<boolean, boolean>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (id: string) => any;
|
|
10
|
+
dragStart: (e: DragEvent, id: string, name: string) => any;
|
|
11
|
+
dragEnd: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
14
|
+
onDragStart?: ((e: DragEvent, id: string, name: string) => any) | undefined;
|
|
15
|
+
onDragEnd?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isDark: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare function openPublishDialog(): void;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
openPublishDialog: typeof openPublishDialog;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
updated: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onUpdated?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -29,97 +29,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
29
29
|
onFocus?: (() => any) | undefined;
|
|
30
30
|
onMove?: ((x: number, y: number) => any) | undefined;
|
|
31
31
|
onOpenInMain?: ((id: string) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
33
|
-
fullFlowRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
34
|
-
flowId: string;
|
|
35
|
-
highlightId: string | null;
|
|
36
|
-
userId: string;
|
|
37
|
-
antConnect: AntConnect;
|
|
38
|
-
notepad: Notepad;
|
|
39
|
-
isDark: boolean;
|
|
40
|
-
channelSubscriber?: FlowChannelSubscriber;
|
|
41
|
-
canManageTemplates?: boolean;
|
|
42
|
-
isAdmin?: boolean;
|
|
43
|
-
fallbackProjectId?: string | null;
|
|
44
|
-
}> & Readonly<{
|
|
45
|
-
onUpdated?: (() => any) | undefined;
|
|
46
|
-
onParentTaskNotFound?: (() => any) | undefined;
|
|
47
|
-
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
48
|
-
onShare?: ((task: Task) => any) | undefined;
|
|
49
|
-
}>, {
|
|
50
|
-
reloadFlow: () => void;
|
|
51
|
-
updateFlowTask: (task: Task) => void;
|
|
52
|
-
refreshFromExternal: () => void;
|
|
53
|
-
handleTaskEvent: (payload: {
|
|
54
|
-
id: string;
|
|
55
|
-
action: string;
|
|
56
|
-
data?: any;
|
|
57
|
-
}) => void;
|
|
58
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
|
-
updated: () => any;
|
|
60
|
-
parentTaskNotFound: () => any;
|
|
61
|
-
deletedFlowId: (id: string) => any;
|
|
62
|
-
share: (task: Task) => any;
|
|
63
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
64
|
-
P: {};
|
|
65
|
-
B: {};
|
|
66
|
-
D: {};
|
|
67
|
-
C: {};
|
|
68
|
-
M: {};
|
|
69
|
-
Defaults: {};
|
|
70
|
-
}, Readonly<{
|
|
71
|
-
flowId: string;
|
|
72
|
-
highlightId: string | null;
|
|
73
|
-
userId: string;
|
|
74
|
-
antConnect: AntConnect;
|
|
75
|
-
notepad: Notepad;
|
|
76
|
-
isDark: boolean;
|
|
77
|
-
channelSubscriber?: FlowChannelSubscriber;
|
|
78
|
-
canManageTemplates?: boolean;
|
|
79
|
-
isAdmin?: boolean;
|
|
80
|
-
fallbackProjectId?: string | null;
|
|
81
|
-
}> & Readonly<{
|
|
82
|
-
onUpdated?: (() => any) | undefined;
|
|
83
|
-
onParentTaskNotFound?: (() => any) | undefined;
|
|
84
|
-
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
85
|
-
onShare?: ((task: Task) => any) | undefined;
|
|
86
|
-
}>, {
|
|
87
|
-
reloadFlow: () => void;
|
|
88
|
-
updateFlowTask: (task: Task) => void;
|
|
89
|
-
refreshFromExternal: () => void;
|
|
90
|
-
handleTaskEvent: (payload: {
|
|
91
|
-
id: string;
|
|
92
|
-
action: string;
|
|
93
|
-
data?: any;
|
|
94
|
-
}) => void;
|
|
95
|
-
}, {}, {}, {}, {}> | null;
|
|
96
|
-
editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
97
|
-
isDark: boolean;
|
|
98
|
-
isAutoLayouting?: boolean;
|
|
99
|
-
isNavigating?: boolean;
|
|
100
|
-
isInSubflow?: boolean;
|
|
101
|
-
flowInstanceId?: string;
|
|
102
|
-
}> & Readonly<{}>, {
|
|
103
|
-
createTaskAtViewportCenter: () => Promise<void>;
|
|
104
|
-
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
105
|
-
fitViewAnimated: () => void;
|
|
106
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
107
|
-
P: {};
|
|
108
|
-
B: {};
|
|
109
|
-
D: {};
|
|
110
|
-
C: {};
|
|
111
|
-
M: {};
|
|
112
|
-
Defaults: {};
|
|
113
|
-
}, Readonly<{
|
|
114
|
-
isDark: boolean;
|
|
115
|
-
isAutoLayouting?: boolean;
|
|
116
|
-
isNavigating?: boolean;
|
|
117
|
-
isInSubflow?: boolean;
|
|
118
|
-
flowInstanceId?: string;
|
|
119
|
-
}> & Readonly<{}>, {
|
|
120
|
-
createTaskAtViewportCenter: () => Promise<void>;
|
|
121
|
-
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
122
|
-
fitViewAnimated: () => void;
|
|
123
|
-
}, {}, {}, {}, {}> | null;
|
|
124
|
-
}, HTMLDivElement>;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
125
33
|
export default _default;
|
|
@@ -5,11 +5,9 @@ type __VLS_Props = {
|
|
|
5
5
|
isInSubflow?: boolean;
|
|
6
6
|
flowInstanceId?: string;
|
|
7
7
|
};
|
|
8
|
-
declare function createTaskAtViewportCenter(): Promise<void>;
|
|
9
|
-
declare function createTriggerAtViewportCenter(triggerId: string): Promise<void>;
|
|
10
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
-
createTaskAtViewportCenter:
|
|
12
|
-
createTriggerAtViewportCenter:
|
|
9
|
+
createTaskAtViewportCenter: () => Promise<void>;
|
|
10
|
+
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
13
11
|
fitViewAnimated: () => void;
|
|
14
12
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
13
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
nodeId: string;
|
|
3
|
+
nodeTitle: string;
|
|
4
|
+
hasChildren: boolean;
|
|
5
|
+
isTemplateFlow: boolean;
|
|
6
|
+
isLocked: boolean;
|
|
7
|
+
checksCount: number;
|
|
8
|
+
attachmentsCount: number;
|
|
9
|
+
childrenCount: number;
|
|
10
|
+
durationDays: number | null;
|
|
11
|
+
durationActiveDays: number[];
|
|
12
|
+
};
|
|
13
|
+
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>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { NodeProps } from '@vue-flow/core';
|
|
2
|
+
import { useTaskFlow } from '../../composables/useTaskFlow';
|
|
3
|
+
type TaskNodeProps = NodeProps & {
|
|
4
|
+
connectingSourceId: string | null;
|
|
5
|
+
isDark: boolean;
|
|
6
|
+
};
|
|
7
|
+
type FlowStore = ReturnType<typeof useTaskFlow>;
|
|
8
|
+
interface NodeLabel {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
color: string | null;
|
|
12
|
+
icon: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function useTaskNodeState(props: TaskNodeProps, flowStore: FlowStore): {
|
|
15
|
+
contextMenu: import('vue').Ref<boolean, boolean>;
|
|
16
|
+
contextMenuPos: import('vue').Ref<{
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}, {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
} | {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}>;
|
|
26
|
+
onContextMenu: (e: MouseEvent) => void;
|
|
27
|
+
showTargetHandle: import('vue').ComputedRef<boolean>;
|
|
28
|
+
isTriggerTask: import('vue').ComputedRef<boolean>;
|
|
29
|
+
triggerNodeProps: import('vue').ComputedRef<{
|
|
30
|
+
id: string;
|
|
31
|
+
type: string;
|
|
32
|
+
selected: boolean;
|
|
33
|
+
connectable: import('@vue-flow/core').HandleConnectable;
|
|
34
|
+
position: import('@vue-flow/core').XYPosition;
|
|
35
|
+
dimensions: import('@vue-flow/core').Dimensions;
|
|
36
|
+
label?: string | import('vue').VNode | import('vue').Component | object;
|
|
37
|
+
isValidTargetPos?: import('@vue-flow/core').ValidConnectionFunc;
|
|
38
|
+
isValidSourcePos?: import('@vue-flow/core').ValidConnectionFunc;
|
|
39
|
+
parent?: string;
|
|
40
|
+
parentNodeId?: string;
|
|
41
|
+
dragging: boolean;
|
|
42
|
+
resizing: boolean;
|
|
43
|
+
zIndex: number;
|
|
44
|
+
targetPosition?: import('@vue-flow/core').Position;
|
|
45
|
+
sourcePosition?: import('@vue-flow/core').Position;
|
|
46
|
+
dragHandle?: string;
|
|
47
|
+
data: any;
|
|
48
|
+
events: import('@vue-flow/core').NodeEventsOn<object>;
|
|
49
|
+
isDark: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
isLocked: import('vue').ComputedRef<boolean>;
|
|
52
|
+
isTemplateFlow: import('vue').ComputedRef<boolean>;
|
|
53
|
+
hasChildren: import('vue').ComputedRef<boolean>;
|
|
54
|
+
statusColor: import('vue').ComputedRef<string>;
|
|
55
|
+
canChangeStatus: import('vue').ComputedRef<boolean>;
|
|
56
|
+
allowedStatuses: import('vue').ComputedRef<string[]>;
|
|
57
|
+
changeStatus: (newStatus: string) => Promise<void>;
|
|
58
|
+
statusLabel: import('vue').ComputedRef<string>;
|
|
59
|
+
highlighted: import('vue').ComputedRef<"" | "highlight">;
|
|
60
|
+
diffStatus: import('vue').ComputedRef<import('../../composables/useTemplateVersioningState').DiffStatus | null>;
|
|
61
|
+
isCompareActive: import('vue').ComputedRef<boolean>;
|
|
62
|
+
diffClass: import('vue').ComputedRef<string>;
|
|
63
|
+
nodeLabels: import('vue').ComputedRef<NodeLabel[]>;
|
|
64
|
+
labelRingColor: import('vue').ComputedRef<string | null>;
|
|
65
|
+
labelRingStyle: import('vue').ComputedRef<{
|
|
66
|
+
'--label-ring-color': string;
|
|
67
|
+
} | undefined>;
|
|
68
|
+
assignedUser: import('vue').ComputedRef<any>;
|
|
69
|
+
userInitials: import('vue').ComputedRef<string>;
|
|
70
|
+
descriptionPlain: import('vue').ComputedRef<string>;
|
|
71
|
+
isEditingTitle: import('vue').Ref<boolean, boolean>;
|
|
72
|
+
editTitle: import('vue').Ref<string, string>;
|
|
73
|
+
startTitleEdit: () => void;
|
|
74
|
+
saveTitleEdit: () => Promise<void>;
|
|
75
|
+
showUserPicker: import('vue').Ref<boolean, boolean>;
|
|
76
|
+
onNodeClick: (e: MouseEvent) => void;
|
|
77
|
+
onNodeDblClick: (e: MouseEvent) => void;
|
|
78
|
+
onUserAssigned: () => Promise<void>;
|
|
79
|
+
durationEditMenu: import('vue').Ref<boolean, boolean>;
|
|
80
|
+
onDurationSave: (days: number | null, activeDays: number[]) => Promise<void>;
|
|
81
|
+
isDefaultWorkdays: (days: number[]) => boolean;
|
|
82
|
+
formatDate: (dateStr: string) => string;
|
|
83
|
+
drillDown: (e: MouseEvent) => void;
|
|
84
|
+
showTaskInNotepad: () => void;
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { useTaskFlow } from './useTaskFlow';
|
|
3
|
+
export interface FlowEditorExposed {
|
|
4
|
+
createTaskAtViewportCenter: () => Promise<void>;
|
|
5
|
+
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
6
|
+
fitViewAnimated: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useFlowAutoLayout(editorRef: Ref<FlowEditorExposed | null>, flowStore: ReturnType<typeof useTaskFlow>): {
|
|
9
|
+
isAutoLayouting: Ref<boolean, boolean>;
|
|
10
|
+
autoLayout: () => Promise<void>;
|
|
11
|
+
cleanup: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AntConnect, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
4
|
+
export declare function useFlowCrud(antConnect: AntConnect, flowParent: Ref<Task | null>, flowNodes: Ref<TaskFlowNode[]>, flowEdges: Ref<TaskFlowEdge[]>, fetchFlowNodesAndEdges: () => Promise<void>, closeSubflowWindow: (nodeId: string) => void): {
|
|
5
|
+
createNode: (position?: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}) => Promise<string | null>;
|
|
9
|
+
createTriggerNode: (triggerId: string, position?: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}) => Promise<string | null>;
|
|
13
|
+
updateNode: (data: {
|
|
14
|
+
id: string;
|
|
15
|
+
position_x: number;
|
|
16
|
+
position_y: number;
|
|
17
|
+
}) => Promise<void>;
|
|
18
|
+
deleteNode: (nodeId: string) => Promise<void>;
|
|
19
|
+
updateTaskDuration: (taskId: string, durationDays: number | null, durationActiveDays: number[]) => Promise<void>;
|
|
20
|
+
updateFlowTask: (task: Task) => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { useVueFlow } from '@vue-flow/core';
|
|
2
|
+
import { useTaskFlow } from './useTaskFlow';
|
|
3
|
+
type FlowStore = ReturnType<typeof useTaskFlow>;
|
|
4
|
+
type VueFlowApi = ReturnType<typeof useVueFlow>;
|
|
5
|
+
interface FlowEditorProps {
|
|
6
|
+
isDark: boolean;
|
|
7
|
+
isAutoLayouting?: boolean;
|
|
8
|
+
isNavigating?: boolean;
|
|
9
|
+
isInSubflow?: boolean;
|
|
10
|
+
flowInstanceId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function useFlowEditor(props: FlowEditorProps, flowStore: FlowStore, vueFlowApi: VueFlowApi): {
|
|
13
|
+
isLoadingFlow: import('vue').ComputedRef<boolean>;
|
|
14
|
+
isLocked: import('vue').ComputedRef<boolean>;
|
|
15
|
+
isShiftHeld: import('vue').Ref<boolean, boolean>;
|
|
16
|
+
activeSnapGrid: import('vue').ComputedRef<[number, number]>;
|
|
17
|
+
isDragOver: import('vue').Ref<boolean, boolean>;
|
|
18
|
+
connectingSourceId: import('vue').Ref<string | null, string | null>;
|
|
19
|
+
conditionsEditorVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
|
20
|
+
getSelectedNodes: import('vue').ComputedRef<import('@vue-flow/core').GraphNode<any, any, string>[]>;
|
|
21
|
+
pendingDeleteIds: import('vue').Ref<string[], string[]>;
|
|
22
|
+
showDeleteConfirm: import('vue').Ref<boolean, boolean>;
|
|
23
|
+
batchMenu: import('vue').Ref<boolean, boolean>;
|
|
24
|
+
batchMenuPos: import('vue').Ref<{
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}, {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
} | {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
}>;
|
|
34
|
+
handleZoomIn: () => void;
|
|
35
|
+
handleZoomOut: () => void;
|
|
36
|
+
fitViewAnimated: () => void;
|
|
37
|
+
handleDragOver: (e: DragEvent) => void;
|
|
38
|
+
handleDragLeave: (e: DragEvent) => void;
|
|
39
|
+
handleDrop: (e: DragEvent) => void;
|
|
40
|
+
updateNodePosition: (event: any) => void;
|
|
41
|
+
createEdge: (event: any) => void;
|
|
42
|
+
onConnectStart: (event: any) => void;
|
|
43
|
+
onConnectStop: () => void;
|
|
44
|
+
onPaneContextMenu: (e: MouseEvent) => void;
|
|
45
|
+
batchSetStatus: (status: string) => Promise<void>;
|
|
46
|
+
batchDelete: () => Promise<void>;
|
|
47
|
+
confirmKeyboardDelete: () => Promise<void>;
|
|
48
|
+
onContainerEnter: () => void;
|
|
49
|
+
onContainerLeave: () => void;
|
|
50
|
+
getMinimapNodeColor: (node: any) => string;
|
|
51
|
+
createTaskAtViewportCenter: () => Promise<void>;
|
|
52
|
+
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AntConnect, TableQueryShort, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { useFlowCache } from './useFlowCache';
|
|
4
|
+
import { useFlowNotifications } from './useFlowNotifications';
|
|
5
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
6
|
+
interface FlowFetchOptions {
|
|
7
|
+
antConnect: AntConnect;
|
|
8
|
+
flowParent: Ref<Task | null>;
|
|
9
|
+
flowNodes: Ref<TaskFlowNode[]>;
|
|
10
|
+
flowEdges: Ref<TaskFlowEdge[]>;
|
|
11
|
+
flowCache: ReturnType<typeof useFlowCache>;
|
|
12
|
+
notifications: ReturnType<typeof useFlowNotifications>;
|
|
13
|
+
highlightedNodeId: Ref<string | null>;
|
|
14
|
+
showTask: (id: string) => Promise<boolean>;
|
|
15
|
+
projectQueries: Ref<TableQueryShort[]>;
|
|
16
|
+
}
|
|
17
|
+
export declare function useFlowFetch({ antConnect, flowParent, flowNodes, flowEdges, flowCache, notifications, highlightedNodeId, showTask, projectQueries }: FlowFetchOptions): {
|
|
18
|
+
deletedFlowId: Ref<string | null, string | null>;
|
|
19
|
+
isAutoRefreshEnabled: Ref<boolean, boolean>;
|
|
20
|
+
isAutoRefreshing: Ref<boolean, boolean>;
|
|
21
|
+
deleteFlowParentApi: import('@antcde/vue-utils').UseApiReturn<import('@antcde/connect-ts').MessageResponse | null, [taskId: string, method: string], true>;
|
|
22
|
+
getFlowNodesApi: import('@antcde/vue-utils').UseApiReturn<import('@antcde/connect-ts/services/TaskTemplate.types').GetTasksResponse<Task> | null, [licenseId: string, query?: string | undefined], true>;
|
|
23
|
+
fetchFlowNodesAndEdges: (isAutoRefresh?: boolean) => Promise<void>;
|
|
24
|
+
refreshFromExternal: () => Promise<void>;
|
|
25
|
+
fetchProjectQueries: () => Promise<void>;
|
|
26
|
+
fetchFlowParent: (taskId: string) => Promise<boolean>;
|
|
27
|
+
updateFlowParent: (title: string) => Promise<void>;
|
|
28
|
+
deleteFlowParent: () => Promise<void>;
|
|
29
|
+
toggleLockFlowParent: (is_locked: boolean) => Promise<void>;
|
|
30
|
+
enableAutoRefresh: () => void;
|
|
31
|
+
disableAutoRefresh: () => void;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface FlowNotification {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
oldStatus: string;
|
|
6
|
+
newStatus: string;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function useFlowNotifications(): {
|
|
10
|
+
recentlyChangedNodeIds: Ref<Set<string>, Set<string>>;
|
|
11
|
+
flowNotifications: Ref<FlowNotification[], FlowNotification[]>;
|
|
12
|
+
dismissNotification: (id: string) => void;
|
|
13
|
+
trackStatusChange: (nodeId: string, title: string, oldStatus: string, newStatus: string) => void;
|
|
14
|
+
trackNewNode: (nodeId: string) => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Task } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { useFlowCache } from './useFlowCache';
|
|
4
|
+
import { useFlowNotifications } from './useFlowNotifications';
|
|
5
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
6
|
+
export type FlowChannelSubscriber = (channel: string, events: string[], callback: (payload: Record<string, unknown>) => void) => () => void;
|
|
7
|
+
interface FlowRealtimeOptions {
|
|
8
|
+
flowParent: Ref<Task | null>;
|
|
9
|
+
flowNodes: Ref<TaskFlowNode[]>;
|
|
10
|
+
flowEdges: Ref<TaskFlowEdge[]>;
|
|
11
|
+
flowCache: ReturnType<typeof useFlowCache>;
|
|
12
|
+
notifications: ReturnType<typeof useFlowNotifications>;
|
|
13
|
+
channelSubscriber?: FlowChannelSubscriber;
|
|
14
|
+
refreshFromExternal: () => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare function useFlowRealtime({ flowParent, flowNodes, flowEdges, flowCache, notifications, channelSubscriber, refreshFromExternal, }: FlowRealtimeOptions): {
|
|
17
|
+
handleTaskEvent: (payload: {
|
|
18
|
+
id: string;
|
|
19
|
+
action: string;
|
|
20
|
+
data?: Record<string, unknown>;
|
|
21
|
+
}) => void;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface SubflowWindow {
|
|
3
|
+
id: string;
|
|
4
|
+
nodeId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
w: number;
|
|
9
|
+
h: number;
|
|
10
|
+
zIndex: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function useFlowSubflows(): {
|
|
13
|
+
subflowWindows: Ref<SubflowWindow[], SubflowWindow[]>;
|
|
14
|
+
isSubflowWindow: Ref<boolean, boolean>;
|
|
15
|
+
insertTemplateHandler: Ref<((targetNodeId: string | null) => void) | null, ((targetNodeId: string | null) => void) | null>;
|
|
16
|
+
openInsertTemplate: (targetNodeId: string | null) => void;
|
|
17
|
+
openSubflowPanel: (nodeId: string, title: string) => void;
|
|
18
|
+
closeSubflowWindow: (nodeId: string) => void;
|
|
19
|
+
bringWindowToFront: (nodeId: string) => void;
|
|
20
|
+
updateWindowPosition: (nodeId: string, x: number, y: number) => void;
|
|
21
|
+
updateWindowSize: (nodeId: string, w: number, h: number) => void;
|
|
22
|
+
};
|