@antcde/component-library 0.1.14 → 0.1.15
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/README.md +2 -2
- package/dist/index.js +40068 -35097
- 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/{components → src/components}/BaseAntDatePicker.vue.d.ts +2 -0
- package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +8 -1
- package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +196 -0
- package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +22 -0
- package/dist/types/src/components/DmsFilePicker/index.vue.d.ts +28 -0
- package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +6 -0
- package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +31 -0
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +51 -0
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
- package/dist/types/{components → src/components}/StackedLabels/_LabelsMenuCard.vue.d.ts +1 -1
- package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
- package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
- package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
- 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/_InsertTemplateDialog.vue.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +33 -0
- package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
- package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
- package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +86 -0
- package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
- package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowAutoLayout.d.ts +12 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -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/useFlowKeyboard.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
- package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -1
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
- package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
- package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
- package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
- package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
- package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
- package/dist/types/{index.d.ts → src/index.d.ts} +12 -1
- package/lib/GisViewer/GisViewer.vue +3 -2
- package/lib/build/layer-order.css +33 -0
- package/lib/build/uno.ts +117 -0
- package/lib/build/vite.ts +104 -0
- package/lib/build/vuetify-overrides.css +14 -0
- package/lib/build/vuetify.ts +230 -0
- package/lib/test/TESTING.claude.md +227 -0
- package/lib/test/createMockAppContext.ts +212 -0
- package/lib/test/createMockConnect.ts +46 -0
- package/lib/test/createTestPinia.ts +31 -0
- package/lib/test/createTestRouter.ts +31 -0
- package/lib/test/index.ts +41 -0
- package/lib/test/mockVueRouter.ts +93 -0
- package/lib/test/mocks/createMockApi.ts +43 -0
- package/lib/test/mocks/createMockContext.ts +109 -0
- package/lib/test/mocks/createMockSignal.ts +30 -0
- package/lib/test/mocks/createMockUser.ts +87 -0
- package/lib/test/mocks/index.ts +11 -0
- package/lib/test/mountApp.ts +47 -0
- package/lib/test/mountWithContext.ts +94 -0
- package/lib/test/setup.ts +151 -0
- package/lib/test/testAppSetup.ts +110 -0
- package/lib/test/vitest.ts +69 -0
- package/package.json +135 -30
- package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
- package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
- package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
- /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseLimitedButton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BulkLabelsMenu.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/GlobalLabelBadge.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/StackedLabels/index.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/TasksFlow/components/_flowEdge.vue.d.ts +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { FlowChannelSubscriber } from '../composables/useTaskFlow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
flowId: string;
|
|
5
|
+
flowTitle: string;
|
|
6
|
+
antConnect: AntConnect;
|
|
7
|
+
notepad: Notepad;
|
|
8
|
+
isDark: boolean;
|
|
9
|
+
userId?: string;
|
|
10
|
+
channelSubscriber?: FlowChannelSubscriber;
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
w: number;
|
|
14
|
+
h: number;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
};
|
|
17
|
+
declare function updateFlowTask(task: Task): void;
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
19
|
+
updateFlowTask: typeof updateFlowTask;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: () => any;
|
|
22
|
+
resize: (w: number, h: number) => any;
|
|
23
|
+
focus: () => any;
|
|
24
|
+
move: (x: number, y: number) => any;
|
|
25
|
+
openInMain: (id: string) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
|
+
onResize?: ((w: number, h: number) => any) | undefined;
|
|
29
|
+
onFocus?: (() => any) | undefined;
|
|
30
|
+
onMove?: ((x: number, y: number) => any) | undefined;
|
|
31
|
+
onOpenInMain?: ((id: string) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isDark: boolean;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue: boolean;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: boolean) => any;
|
|
9
|
+
sync: () => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
onSync?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isDark: boolean;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue: boolean;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: boolean) => any;
|
|
9
|
+
published: () => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
onPublished?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isDark: boolean;
|
|
3
|
+
isAutoLayouting?: boolean;
|
|
4
|
+
isNavigating?: boolean;
|
|
5
|
+
isInSubflow?: boolean;
|
|
6
|
+
flowInstanceId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
createTaskAtViewportCenter: () => Promise<void>;
|
|
10
|
+
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
11
|
+
fitViewAnimated: () => void;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
durationDays: number | null;
|
|
3
|
+
durationActiveDays: number[];
|
|
4
|
+
};
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue: boolean;
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {
|
|
12
|
+
menuProps: any;
|
|
13
|
+
isDefaultWorkdays: (days: number[]) => boolean;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
22
|
+
save: (days: number | null, activeDays: number[]) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
onSave?: ((days: number | null, activeDays: number[]) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
nodeId: string;
|
|
3
|
+
nodeTitle: string;
|
|
4
|
+
hasChildren: boolean;
|
|
5
|
+
isLocked: boolean;
|
|
6
|
+
contextMenuPos: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
modelValue: boolean;
|
|
13
|
+
} & __VLS_Props;
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
|
+
delete: () => any;
|
|
17
|
+
openNotepad: () => any;
|
|
18
|
+
drillDown: () => any;
|
|
19
|
+
manageSubflow: () => any;
|
|
20
|
+
insertTemplate: () => any;
|
|
21
|
+
insertBefore: () => any;
|
|
22
|
+
insertAfter: () => any;
|
|
23
|
+
duplicateBranch: () => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
onDelete?: (() => any) | undefined;
|
|
27
|
+
onOpenNotepad?: (() => any) | undefined;
|
|
28
|
+
onDrillDown?: (() => any) | undefined;
|
|
29
|
+
onManageSubflow?: (() => any) | undefined;
|
|
30
|
+
onInsertTemplate?: (() => any) | undefined;
|
|
31
|
+
onInsertBefore?: (() => any) | undefined;
|
|
32
|
+
onInsertAfter?: (() => any) | undefined;
|
|
33
|
+
onDuplicateBranch?: (() => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
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,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
taskId: string;
|
|
3
|
+
isDark: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue: boolean;
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {
|
|
12
|
+
menuProps: any;
|
|
13
|
+
}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: boolean) => any;
|
|
21
|
+
assigned: (userId: string | null) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
onAssigned?: ((userId: string | null) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts
RENAMED
|
@@ -4,8 +4,8 @@ type __VLS_Props = NodeProps & {
|
|
|
4
4
|
isDark: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
updateNodeInternals: (
|
|
7
|
+
updateNodeInternals: () => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onUpdateNodeInternals?: ((
|
|
9
|
+
onUpdateNodeInternals?: (() => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeProps } from '@vue-flow/core';
|
|
2
|
+
type __VLS_Props = NodeProps & {
|
|
3
|
+
isDark: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
updateNodeInternals: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onUpdateNodeInternals?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
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,22 @@
|
|
|
1
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlow';
|
|
2
|
+
interface LayoutOptions {
|
|
3
|
+
nodeWidth?: number;
|
|
4
|
+
nodeHeight?: number;
|
|
5
|
+
horizontalGap?: number;
|
|
6
|
+
verticalGap?: number;
|
|
7
|
+
direction?: 'LR' | 'TB';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lightweight directed graph layout using a layered (Sugiyama-style) approach.
|
|
11
|
+
* Handles disconnected components by laying them out separately then stacking.
|
|
12
|
+
*
|
|
13
|
+
* Algorithm:
|
|
14
|
+
* 1. Find connected components
|
|
15
|
+
* 2. For each component: assign layers, order with barycenter, compute positions
|
|
16
|
+
* 3. Stack components vertically with spacing
|
|
17
|
+
*/
|
|
18
|
+
export declare function computeAutoLayout(nodes: TaskFlowNode[], edges: TaskFlowEdge[], options?: LayoutOptions): Map<string, {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
3
|
+
export declare function useCriticalPath(flowNodes: Ref<TaskFlowNode[]>, flowEdges: Ref<TaskFlowEdge[]>): {
|
|
4
|
+
isCriticalPathActive: Ref<boolean, boolean>;
|
|
5
|
+
toggleCriticalPath: () => void;
|
|
6
|
+
criticalNodeIds: import('vue').ComputedRef<Set<string>>;
|
|
7
|
+
criticalEdgeIds: import('vue').ComputedRef<Set<string>>;
|
|
8
|
+
};
|
|
@@ -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,17 @@
|
|
|
1
|
+
import { TableQueryShort, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
3
|
+
interface FlowCacheEntry {
|
|
4
|
+
parent: Task;
|
|
5
|
+
nodes: TaskFlowNode[];
|
|
6
|
+
edges: TaskFlowEdge[];
|
|
7
|
+
queries: TableQueryShort[];
|
|
8
|
+
timestamp: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function useFlowCache(): {
|
|
11
|
+
get: (taskId: string) => FlowCacheEntry | null;
|
|
12
|
+
set: (taskId: string, data: Omit<FlowCacheEntry, "timestamp">) => void;
|
|
13
|
+
invalidate: (taskId: string) => void;
|
|
14
|
+
updateNodesAndEdges: (taskId: string, nodes: TaskFlowNode[], edges: TaskFlowEdge[]) => void;
|
|
15
|
+
clear: () => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -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
|
+
interface FlowKeyboardOptions {
|
|
3
|
+
isLocked: Ref<boolean>;
|
|
4
|
+
createTask: () => void;
|
|
5
|
+
fitView: () => void;
|
|
6
|
+
autoLayout: () => void;
|
|
7
|
+
openSearch: () => void;
|
|
8
|
+
closeSearch: () => void;
|
|
9
|
+
isSearchOpen: Ref<boolean>;
|
|
10
|
+
deleteSelectedNodes: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function useFlowKeyboard(options: FlowKeyboardOptions): {
|
|
13
|
+
setFocused: (val: boolean) => void;
|
|
14
|
+
};
|
|
15
|
+
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,8 @@
|
|
|
1
|
+
import { AntConnect, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
4
|
+
export declare function useFlowOperations(antConnect: AntConnect, flowParent: Ref<Task | null>, flowNodes: Ref<TaskFlowNode[]>, flowEdges: Ref<TaskFlowEdge[]>, fetchFlowNodesAndEdges: () => Promise<void>): {
|
|
5
|
+
insertAfter: (nodeId: string) => Promise<string | undefined>;
|
|
6
|
+
insertBefore: (nodeId: string) => Promise<string | undefined>;
|
|
7
|
+
duplicateBranch: (nodeId: string) => Promise<void>;
|
|
8
|
+
};
|
|
@@ -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,14 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { TaskFlowNode } from './useTaskFlowTypes';
|
|
3
|
+
export declare function useFlowSearch(flowNodes: Ref<TaskFlowNode[]>): {
|
|
4
|
+
searchQuery: Ref<string, string>;
|
|
5
|
+
isSearchOpen: Ref<boolean, boolean>;
|
|
6
|
+
isSearchActive: import('vue').ComputedRef<boolean>;
|
|
7
|
+
matchedNodeIds: import('vue').ComputedRef<Set<string>>;
|
|
8
|
+
currentMatchId: import('vue').ComputedRef<string | null>;
|
|
9
|
+
matchIndex: Ref<number, number>;
|
|
10
|
+
matchCount: import('vue').ComputedRef<number>;
|
|
11
|
+
openSearch: () => void;
|
|
12
|
+
closeSearch: () => void;
|
|
13
|
+
navigateToMatch: (direction: "next" | "prev") => string | null;
|
|
14
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AntConnect, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export interface FlowUser {
|
|
4
|
+
id: string;
|
|
5
|
+
firstname: string;
|
|
6
|
+
lastname: string;
|
|
7
|
+
email: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function useFlowUsers(antConnect: AntConnect, flowParent: Ref<Task | null>): {
|
|
11
|
+
members: Ref<{
|
|
12
|
+
id: string;
|
|
13
|
+
firstname: string;
|
|
14
|
+
lastname: string;
|
|
15
|
+
email: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}[], FlowUser[] | {
|
|
18
|
+
id: string;
|
|
19
|
+
firstname: string;
|
|
20
|
+
lastname: string;
|
|
21
|
+
email: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}[]>;
|
|
24
|
+
isLoading: Ref<boolean, boolean>;
|
|
25
|
+
assignUser: (taskId: string, userId: string | null) => Promise<void>;
|
|
26
|
+
fetchMembers: () => Promise<void>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { TaskFlowNode } from './useTaskFlowTypes';
|
|
3
|
+
export declare function useFlowViewport(flowNodes: Ref<TaskFlowNode[]>, isMounted: Ref<boolean>, persistNode: (data: {
|
|
4
|
+
id: string;
|
|
5
|
+
position_x: number;
|
|
6
|
+
position_y: number;
|
|
7
|
+
}) => Promise<void>): {
|
|
8
|
+
isShiftHeld: Ref<boolean, boolean>;
|
|
9
|
+
getActiveSnapGrid: () => [number, number];
|
|
10
|
+
findFreePosition: (desired: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}) => {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
getViewportCenterFlowPosition: () => {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
centerAndPersistNode: (createdId: string, centerPos: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}) => void;
|
|
25
|
+
fitViewAnimated: () => void;
|
|
26
|
+
handleZoomIn: () => void;
|
|
27
|
+
handleZoomOut: () => void;
|
|
28
|
+
};
|