@antcde/component-library 0.1.11 → 0.1.14-rc.00a441c
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 +41293 -32254
- package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +18 -1
- package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +4 -3
- package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +9 -2
- package/dist/types/src/components/BaseLimitedButton.vue.d.ts +45 -0
- package/dist/types/src/components/BulkLabelsMenu.vue.d.ts +33 -0
- 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/GlobalLabelBadge.vue.d.ts +11 -0
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
- package/dist/types/src/components/StackedLabels/_LabelsMenuCard.vue.d.ts +15 -0
- package/dist/types/src/components/StackedLabels/index.vue.d.ts +26 -0
- 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/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/_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/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} +16 -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 +147 -58
- package/dist/component-library.css +0 -1
- 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/lib/DocumentManager/DocumentDrop.vue +0 -74
- package/lib/DocumentManager/DocumentManager.vue +0 -590
- package/lib/DocumentManager/hooks/useDms.ts +0 -180
- package/lib/DocumentManager/index.ts +0 -3
- package/lib/DocumentManager/lang/translations/de.json +0 -36
- package/lib/DocumentManager/lang/translations/en.json +0 -38
- package/lib/DocumentManager/lang/translations/nl.json +0 -36
- package/lib/DocumentManager/utils.ts +0 -16
- /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}/BaseAppCardSkeleton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseResizePanel.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}/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
|
-
};
|
|
62
|
-
assigned_to?: {
|
|
63
|
-
id: string;
|
|
64
|
-
firstname: string;
|
|
65
|
-
lastname: string;
|
|
66
|
-
email: string;
|
|
67
|
-
};
|
|
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;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { useEventListener } from '@vueuse/core'
|
|
3
|
-
import { useI18n } from 'vue-i18n'
|
|
4
|
-
|
|
5
|
-
defineProps<{
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
const emit = defineEmits<EmitType>()
|
|
10
|
-
interface EmitType { (e: 'upload', files: File[]): void }
|
|
11
|
-
const events = ['dragenter', 'dragover', 'dragleave', 'drop']
|
|
12
|
-
const { t } = useI18n()
|
|
13
|
-
|
|
14
|
-
useEventListener(document, events, e => e.preventDefault())
|
|
15
|
-
|
|
16
|
-
function handleDrop(e: DragEvent): void {
|
|
17
|
-
const _self = e.currentTarget as HTMLElement
|
|
18
|
-
if (_self) {
|
|
19
|
-
_self.classList.remove('dragging')
|
|
20
|
-
}
|
|
21
|
-
if (e.dataTransfer && e.dataTransfer.files.length > 0) {
|
|
22
|
-
emit('upload', Array.from(e.dataTransfer.files))
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function handleInput({ target }: Event): void {
|
|
27
|
-
if (target instanceof HTMLInputElement && target.files && target.files.length) {
|
|
28
|
-
emit('upload', Array.from(target.files))
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function onDragEnter({ currentTarget }: DragEvent): void {
|
|
33
|
-
(currentTarget as HTMLElement).classList?.add('dragging')
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function onDragLeave({ currentTarget }: DragEvent): void {
|
|
37
|
-
(currentTarget as HTMLElement).classList?.remove('dragging')
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<label v-if="!disabled" class="justify-center align-center cursor-pointer document-drop" @dragenter.self="onDragEnter" @dragleave.self="onDragLeave" @drop.prevent="handleDrop">
|
|
43
|
-
<input type="file" multiple @input="handleInput">
|
|
44
|
-
<div class="text-align-center">
|
|
45
|
-
<v-icon icon="mdi-cloud-upload" size="x-large" />
|
|
46
|
-
<div>{{ t('dms.dragUploadFiles') }}</div>
|
|
47
|
-
</div>
|
|
48
|
-
</label>
|
|
49
|
-
<label v-else class="document-drop justify-center align-center loading">
|
|
50
|
-
<span>{{ t('dms.loadingFiles') }}</span>
|
|
51
|
-
</label>
|
|
52
|
-
</template>
|
|
53
|
-
|
|
54
|
-
<style scoped>
|
|
55
|
-
.document-drop {
|
|
56
|
-
transition: all .3s;
|
|
57
|
-
display: flex;
|
|
58
|
-
background: #eee;
|
|
59
|
-
border: 1px dashed #999;
|
|
60
|
-
padding: 16px;
|
|
61
|
-
width: 50%;
|
|
62
|
-
min-height: 200px;
|
|
63
|
-
margin: 0 auto;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
|
|
66
|
-
&.dragging {
|
|
67
|
-
background: #ccc;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
input {
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</style>
|