@antcde/component-library 0.1.14-rc.6346d95 → 0.1.14-rc.6a3e1ae
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 +29830 -32843
- 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/nodes/_NodeMeta.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowAutoLayout.d.ts +11 -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 +17 -16
|
@@ -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;
|
|
@@ -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,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface FlowEditorExposed {
|
|
3
|
+
createTaskAtViewportCenter: () => Promise<void>;
|
|
4
|
+
createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
|
|
5
|
+
fitViewAnimated: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useFlowAutoLayout(editorRef: Ref<FlowEditorExposed | null>): {
|
|
8
|
+
isAutoLayouting: Ref<boolean, boolean>;
|
|
9
|
+
autoLayout: () => Promise<void>;
|
|
10
|
+
cleanup: () => void;
|
|
11
|
+
};
|
|
@@ -18,7 +18,7 @@ declare function refreshFromExternal(): void;
|
|
|
18
18
|
declare function handleTaskEvent(payload: {
|
|
19
19
|
id: string;
|
|
20
20
|
action: string;
|
|
21
|
-
data?:
|
|
21
|
+
data?: Record<string, unknown>;
|
|
22
22
|
}): void;
|
|
23
23
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
24
24
|
reloadFlow: typeof reloadFlow;
|
|
@@ -27,13 +27,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
27
27
|
handleTaskEvent: typeof handleTaskEvent;
|
|
28
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
29
|
updated: () => any;
|
|
30
|
+
share: (task: Task) => any;
|
|
30
31
|
parentTaskNotFound: () => any;
|
|
31
32
|
deletedFlowId: (id: string) => any;
|
|
32
|
-
share: (task: Task) => any;
|
|
33
33
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
34
|
onUpdated?: (() => any) | undefined;
|
|
35
|
+
onShare?: ((task: Task) => any) | undefined;
|
|
35
36
|
onParentTaskNotFound?: (() => any) | undefined;
|
|
36
37
|
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
37
|
-
|
|
38
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
39
39
|
export default _default;
|
|
@@ -25,13 +25,14 @@ import { default as FlowWindowContent } from './components/FlowWindowContent/ind
|
|
|
25
25
|
import { default as UnifiedWindow } from './components/UnifiedWindow/index.vue';
|
|
26
26
|
import { default as TaskFlow } from './components/TasksFlow/index.vue';
|
|
27
27
|
import { default as VersionPublishDialog } from './components/VersionPublishDialog.vue';
|
|
28
|
+
import { default as AntTourZone } from './components/AntTourZone/index.vue';
|
|
28
29
|
export type { AppLike } from './components/BaseAppCard.vue';
|
|
29
30
|
export type { MentionItem } from './components/RichTextEditor/index.vue';
|
|
30
31
|
export type { StackedLabel } from './components/StackedLabels/index.vue';
|
|
31
32
|
export type { FlowChannelSubscriber } from './components/TasksFlow/composables/useTaskFlow';
|
|
32
33
|
export type { WindowSizePreset } from './components/UnifiedWindow/index.vue';
|
|
33
34
|
export * from '@antcde/vue-utils';
|
|
34
|
-
export { BaseAntButton, BaseAntCard, BaseAntCreateCard, BaseAntDatePicker, BaseAntInput, BaseAntLoading, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseConfirmDialog, BaseDeleteDialog, BaseDialog, BaseLimitedButton, BaseResizePanel, BulkLabelsMenu, DmsFilePicker, FilePreviewContent, FlowWindowContent, GlobalLabelBadge, LabelsMenuCard, PermissionCard, RichTextEditor, StackedLabels, TaskFlow, UnifiedWindow, VersionPublishDialog, };
|
|
35
|
+
export { AntTourZone, BaseAntButton, BaseAntCard, BaseAntCreateCard, BaseAntDatePicker, BaseAntInput, BaseAntLoading, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseConfirmDialog, BaseDeleteDialog, BaseDialog, BaseLimitedButton, BaseResizePanel, BulkLabelsMenu, DmsFilePicker, FilePreviewContent, FlowWindowContent, GlobalLabelBadge, LabelsMenuCard, PermissionCard, RichTextEditor, StackedLabels, TaskFlow, UnifiedWindow, VersionPublishDialog, };
|
|
35
36
|
declare const _default: {
|
|
36
37
|
install: (app: App) => void;
|
|
37
38
|
};
|
package/lib/build/vite.ts
CHANGED
|
@@ -43,6 +43,14 @@ export const CSS_LAYER_ORDER = '@layer uno-base, uno-theme, vuetify-core, vuetif
|
|
|
43
43
|
export function createAntViteConfig(appRoot: string | URL, overrides: UserConfig = {}): UserConfig {
|
|
44
44
|
const resolve = (relative: string) => fileURLToPath(new URL(relative, appRoot))
|
|
45
45
|
|
|
46
|
+
// Resolve @antcde/* workspace packages to source so dev-mode HMR picks up
|
|
47
|
+
// their changes without rebuilding their dist. Mirrors ant-os' own aliases.
|
|
48
|
+
const componentLibSrc = fileURLToPath(new URL('../../src', import.meta.url))
|
|
49
|
+
const componentLibBuild = fileURLToPath(new URL('../../lib/build', import.meta.url))
|
|
50
|
+
const componentLibTest = fileURLToPath(new URL('../../lib/test', import.meta.url))
|
|
51
|
+
const vueUtilsSrc = fileURLToPath(new URL('../../../ant-vue-utils/src', import.meta.url))
|
|
52
|
+
const connectTsSrc = fileURLToPath(new URL('../../../ant-connect-ts/src', import.meta.url))
|
|
53
|
+
|
|
46
54
|
const baseConfig = defineConfig({
|
|
47
55
|
base: '/__APP_URL__/',
|
|
48
56
|
optimizeDeps: { exclude: ['vuetify'] },
|
|
@@ -89,10 +97,15 @@ export function createAntViteConfig(appRoot: string | URL, overrides: UserConfig
|
|
|
89
97
|
}),
|
|
90
98
|
],
|
|
91
99
|
resolve: {
|
|
92
|
-
dedupe: ['vuetify'],
|
|
100
|
+
dedupe: ['vue', 'vuetify'],
|
|
93
101
|
extensions: ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
94
102
|
alias: {
|
|
95
103
|
'@': resolve('./src'),
|
|
104
|
+
'@antcde/component-library/build': componentLibBuild,
|
|
105
|
+
'@antcde/component-library/test': componentLibTest,
|
|
106
|
+
'@antcde/component-library': componentLibSrc,
|
|
107
|
+
'@antcde/vue-utils': vueUtilsSrc,
|
|
108
|
+
'@antcde/connect-ts': connectTsSrc,
|
|
96
109
|
},
|
|
97
110
|
},
|
|
98
111
|
build: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.14-rc.
|
|
4
|
+
"version": "0.1.14-rc.6a3e1ae",
|
|
5
5
|
"description": "Helper to use ant components in Vue 3",
|
|
6
6
|
"author": "CollaborAll",
|
|
7
7
|
"exports": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"types": "./dist/types/src/composables/*.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"./build/uno": {
|
|
17
|
-
"import": "./lib/build/uno.ts"
|
|
17
|
+
"import": "./lib/build/uno.ts",
|
|
18
|
+
"default": "./lib/build/uno.ts"
|
|
18
19
|
},
|
|
19
20
|
"./build/vite": {
|
|
20
21
|
"import": "./lib/build/vite.ts"
|
|
@@ -159,22 +160,22 @@
|
|
|
159
160
|
}
|
|
160
161
|
},
|
|
161
162
|
"dependencies": {
|
|
162
|
-
"@antcde/connect-ts": "0.4.18-rc.
|
|
163
|
-
"@antcde/vue-utils": "0.2.14-rc.
|
|
163
|
+
"@antcde/connect-ts": "0.4.18-rc.6a3e1ae",
|
|
164
|
+
"@antcde/vue-utils": "0.2.14-rc.6a3e1ae",
|
|
164
165
|
"@arcgis/core": "^4.34.8",
|
|
165
166
|
"@mdi/font": "^7.4.47",
|
|
166
|
-
"@tiptap/extension-link": "^3.26.
|
|
167
|
-
"@tiptap/extension-mention": "^3.26.
|
|
168
|
-
"@tiptap/extension-placeholder": "^3.26.
|
|
169
|
-
"@tiptap/starter-kit": "^3.26.
|
|
170
|
-
"@tiptap/suggestion": "^3.26.
|
|
171
|
-
"@tiptap/vue-3": "^3.26.
|
|
167
|
+
"@tiptap/extension-link": "^3.26.1",
|
|
168
|
+
"@tiptap/extension-mention": "^3.26.1",
|
|
169
|
+
"@tiptap/extension-placeholder": "^3.26.1",
|
|
170
|
+
"@tiptap/starter-kit": "^3.26.1",
|
|
171
|
+
"@tiptap/suggestion": "^3.26.1",
|
|
172
|
+
"@tiptap/vue-3": "^3.26.1",
|
|
172
173
|
"@vue-flow/background": "^1.3.2",
|
|
173
174
|
"@vue-flow/core": "^1.48.2",
|
|
174
175
|
"@vue-flow/minimap": "^1.5.4",
|
|
175
176
|
"@vueuse/core": "^14.3.0",
|
|
176
177
|
"qs": "^6.15.2",
|
|
177
|
-
"sanitize-html": "^2.17.
|
|
178
|
+
"sanitize-html": "^2.17.5",
|
|
178
179
|
"vue-i18n": "^11.4.5"
|
|
179
180
|
},
|
|
180
181
|
"devDependencies": {
|
|
@@ -184,21 +185,21 @@
|
|
|
184
185
|
"@intlify/unplugin-vue-i18n": "^11.2.3",
|
|
185
186
|
"@mdi/font": "^7.2.96",
|
|
186
187
|
"@tsconfig/node22": "^22.0.5",
|
|
187
|
-
"@types/node": "^25.9.
|
|
188
|
+
"@types/node": "^25.9.3",
|
|
188
189
|
"@types/qs": "^6.15.1",
|
|
189
190
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
190
191
|
"@vue/test-utils": "^2.4.11",
|
|
191
192
|
"@vue/tsconfig": "^0.9.1",
|
|
192
|
-
"happy-dom": "^20.10.
|
|
193
|
+
"happy-dom": "^20.10.4",
|
|
193
194
|
"pinia": "^3.0.4",
|
|
194
|
-
"sass": "^1.
|
|
195
|
+
"sass": "^1.101.0",
|
|
195
196
|
"typescript": "~6.0.3",
|
|
196
197
|
"unplugin-icons": "^23.0.1",
|
|
197
198
|
"vite": "^8.0.16",
|
|
198
199
|
"vite-plugin-css-injected-by-js": "^5.0.1",
|
|
199
200
|
"vite-plugin-dts": "^4.5.4",
|
|
200
201
|
"vite-plugin-vuetify": "^2.1.3",
|
|
201
|
-
"vitest": "^4.1.
|
|
202
|
-
"vue-tsc": "^3.3.
|
|
202
|
+
"vitest": "^4.1.9",
|
|
203
|
+
"vue-tsc": "^3.3.5"
|
|
203
204
|
}
|
|
204
205
|
}
|