@antcde/component-library 0.1.14-rc.6cfaa28 → 0.1.14-rc.703ea01
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 +41110 -35105
- 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 +113 -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/_InsertTemplateDialog.vue.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +125 -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/{components → src/components}/TasksFlow/components/_flowEditor.vue.d.ts +6 -7
- 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/_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/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/useFlowCache.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -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 +335 -0
- package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -1
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +75 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -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} +11 -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 +225 -0
- package/lib/test/createMockAppContext.ts +211 -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 +127 -30
- 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}/BaseAntDatePicker.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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { AntConnect, Event, Notepad, TableQueryShort, Task } from '@antcde/connect-ts';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad): {
|
|
4
|
-
showTask: (taskId: string) => PromiseLike<boolean>;
|
|
5
|
-
setHighlightedNode: (taskId: string) => Promise<unknown>;
|
|
6
|
-
flowParent: Ref<Task | null, Task | null>;
|
|
7
|
-
flowNodes: Ref<TaskFlowNode[], TaskFlowNode[]>;
|
|
8
|
-
flowEdges: Ref<TaskFlowEdge[], TaskFlowEdge[]>;
|
|
9
|
-
highlightedNodeId: Ref<string | null, string | null>;
|
|
10
|
-
projectQueries: Ref<TableQueryShort[], TableQueryShort[]>;
|
|
11
|
-
isAutoRefreshEnabled: Ref<boolean, boolean>;
|
|
12
|
-
fetchFlowParent: (taskId: string) => Promise<boolean>;
|
|
13
|
-
updateFlowParent: (title: string) => Promise<void>;
|
|
14
|
-
deleteFlowParent: () => Promise<void>;
|
|
15
|
-
toggleLockFlowParent: (is_locked: boolean) => Promise<void>;
|
|
16
|
-
fetchFlowNodesAndEdges: () => Promise<void>;
|
|
17
|
-
createNode: (position?: {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
}) => Promise<string | null>;
|
|
21
|
-
updateNode: (data: {
|
|
22
|
-
id: string;
|
|
23
|
-
position_x: number;
|
|
24
|
-
position_y: number;
|
|
25
|
-
}) => Promise<void>;
|
|
26
|
-
deleteNode: (nodeId: string) => Promise<void>;
|
|
27
|
-
createEdge: (source: string, target: string, type: "BLOCKED_BY" | "NON_BLOCKING") => Promise<void>;
|
|
28
|
-
deleteEdge: (edgeId: string) => Promise<void>;
|
|
29
|
-
createTriggerNode: (triggerId: string, position?: {
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
}) => Promise<string | null>;
|
|
33
|
-
addRelationQuery: (edgeId: string, queryId: string) => Promise<void>;
|
|
34
|
-
deleteRelationQuery: (edgeId: string, queryId: string) => Promise<void>;
|
|
35
|
-
setEdgeRelationType: (edgeId: string, newType: "BLOCKED_BY" | "NON_BLOCKING") => Promise<void>;
|
|
36
|
-
addTaskRelationQueryApi: import('@antcde/vue-utils').UseApiReturn<import('@antcde/connect-ts').TableQuery | null, [taskId: string, relationId: string, queryId: string], true>;
|
|
37
|
-
deleteTaskRelationQueryApi: import('@antcde/vue-utils').UseApiReturn<{
|
|
38
|
-
id: string;
|
|
39
|
-
} | null, [taskId: string, relationId: string, queryId: string], true>;
|
|
40
|
-
deleteFlowParentApi: import('@antcde/vue-utils').UseApiReturn<import('@antcde/connect-ts').MessageResponse | null, [taskId: string, method: string], true>;
|
|
41
|
-
getFlowNodesApi: import('@antcde/vue-utils').UseApiReturn<import('@antcde/connect-ts/services/TaskService').GetTasksResponse<Task> | null, [licenseId: string, query?: string | undefined], true>;
|
|
42
|
-
deletedFlowId: Ref<string | null, string | null>;
|
|
43
|
-
updateFlowTask: (task: Task) => void;
|
|
44
|
-
enableAutoRefresh: () => void;
|
|
45
|
-
disableAutoRefresh: () => void;
|
|
46
|
-
};
|
|
47
|
-
export interface TaskFlowNode {
|
|
48
|
-
id: string;
|
|
49
|
-
type: string;
|
|
50
|
-
data: {
|
|
51
|
-
status: string;
|
|
52
|
-
title: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
progress: number;
|
|
55
|
-
script?: string;
|
|
56
|
-
isLocked: boolean;
|
|
57
|
-
app?: {
|
|
58
|
-
title: string;
|
|
59
|
-
color: string;
|
|
60
|
-
icon: string;
|
|
61
|
-
} | null;
|
|
62
|
-
assigned_to: string | {
|
|
63
|
-
id: string;
|
|
64
|
-
firstname: string;
|
|
65
|
-
lastname: string;
|
|
66
|
-
email: string;
|
|
67
|
-
} | null;
|
|
68
|
-
trigger?: {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
is_active: boolean;
|
|
72
|
-
close_task_after_execution: boolean;
|
|
73
|
-
event: Pick<Event, 'id' | 'name' | 'code' | 'description'>;
|
|
74
|
-
};
|
|
75
|
-
trigger_id?: string;
|
|
76
|
-
isTriggerTask?: boolean;
|
|
77
|
-
};
|
|
78
|
-
draggable: boolean;
|
|
79
|
-
position: {
|
|
80
|
-
x: number;
|
|
81
|
-
y: number;
|
|
82
|
-
};
|
|
83
|
-
isLoading: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface TaskFlowEdge {
|
|
86
|
-
id: string;
|
|
87
|
-
source: string;
|
|
88
|
-
target: string;
|
|
89
|
-
type: string;
|
|
90
|
-
sourceHandle: string;
|
|
91
|
-
data: {
|
|
92
|
-
relationType: 'BLOCKED_BY' | 'NON_BLOCKING';
|
|
93
|
-
queries: TaskFlowQuery[];
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
export interface TaskFlowQuery {
|
|
97
|
-
id: string;
|
|
98
|
-
name: string;
|
|
99
|
-
}
|
|
100
|
-
type TaskFlowStore = ReturnType<typeof useTaskFlow>;
|
|
101
|
-
export declare function provideTaskFlow(instance: TaskFlowStore): TaskFlowStore;
|
|
102
|
-
export declare function injectTaskFlow(): TaskFlowStore;
|
|
103
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
flowId: string;
|
|
4
|
-
highlightId: string | null;
|
|
5
|
-
userId: string;
|
|
6
|
-
antConnect: AntConnect;
|
|
7
|
-
notepad: Notepad;
|
|
8
|
-
isDark: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare function reloadFlow(): void;
|
|
11
|
-
declare function updateFlowTask(task: Task): void;
|
|
12
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
13
|
-
reloadFlow: typeof reloadFlow;
|
|
14
|
-
updateFlowTask: typeof updateFlowTask;
|
|
15
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
updated: (...args: any[]) => void;
|
|
17
|
-
parentTaskNotFound: (...args: any[]) => void;
|
|
18
|
-
deletedFlowId: (...args: any[]) => void;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
-
onUpdated?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
onParentTaskNotFound?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
onDeletedFlowId?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
-
editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
25
|
-
isDark: boolean;
|
|
26
|
-
}> & Readonly<{
|
|
27
|
-
onEditTask?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}>, {
|
|
29
|
-
createTaskAtViewportCenter: () => Promise<void>;
|
|
30
|
-
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
31
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
-
editTask: (...args: any[]) => void;
|
|
33
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
34
|
-
containerEl: HTMLDivElement;
|
|
35
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
36
|
-
P: {};
|
|
37
|
-
B: {};
|
|
38
|
-
D: {};
|
|
39
|
-
C: {};
|
|
40
|
-
M: {};
|
|
41
|
-
Defaults: {};
|
|
42
|
-
}, Readonly<{
|
|
43
|
-
isDark: boolean;
|
|
44
|
-
}> & Readonly<{
|
|
45
|
-
onEditTask?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
}>, {
|
|
47
|
-
createTaskAtViewportCenter: () => Promise<void>;
|
|
48
|
-
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
49
|
-
}, {}, {}, {}, {}> | null;
|
|
50
|
-
}, any>;
|
|
51
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{components → src/components}/TasksFlow/components/_dropzoneBackground.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|