@antcde/component-library 0.1.23 → 0.1.24-rc.1
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/build/uno.js +9 -1
- package/dist/index.js +29373 -29276
- package/dist/types/src/components/BaseAntInput.vue.d.ts +6 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +17 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +27 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +27 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +18 -0
- package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +8 -0
- package/dist/types/src/components/{BaseAppCard.vue.d.ts → BaseAppCard/index.vue.d.ts} +27 -5
- package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +8 -0
- package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +2 -0
- package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +1 -0
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +5 -1
- package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +18 -0
- package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +6 -0
- package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +28 -0
- package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +47 -0
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +20 -6
- package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +11 -1
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +11 -0
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +16 -0
- package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +5 -2
- package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -0
- package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +4 -1
- package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +6 -0
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
- package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +19 -0
- package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +6 -10
- package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +18 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +3 -1
- package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +19 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +6 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +1 -4
- package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +23 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +58 -4
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +4 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +53 -4
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +52 -4
- package/dist/types/src/components/TasksFlow/index.vue.d.ts +10 -0
- package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +27 -0
- package/dist/types/src/index.d.ts +2 -2
- package/lib/build/uno.ts +10 -1
- package/lib/test/setup.ts +8 -0
- package/package.json +29 -25
|
@@ -40,6 +40,12 @@ declare enum InputTypes {
|
|
|
40
40
|
interface Props {
|
|
41
41
|
topMargin?: string;
|
|
42
42
|
required?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Text for the required marker's tooltip and screen-reader label. Pass this to
|
|
45
|
+
* keep the component off the host's translation keys; when omitted it falls
|
|
46
|
+
* back to `common.requiredField`, and to English if the host lacks that key.
|
|
47
|
+
*/
|
|
48
|
+
requiredLabel?: string;
|
|
43
49
|
readonly?: boolean;
|
|
44
50
|
label?: string;
|
|
45
51
|
type?: keyof typeof InputTypes;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type SplitPane = 'L' | 'R' | 'T' | 'B';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
splitPane?: SplitPane | null;
|
|
5
|
+
/** App is connected to the selected task. */
|
|
6
|
+
highlighted?: boolean;
|
|
7
|
+
highlightLabel?: string;
|
|
8
|
+
/** App belongs to a project scope (vs license-wide). */
|
|
9
|
+
projectApp?: boolean;
|
|
10
|
+
scopeLabel?: string;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
isFavorite?: boolean;
|
|
13
|
+
updateAvailable?: boolean;
|
|
14
|
+
nextVersion?: string;
|
|
15
|
+
};
|
|
16
|
+
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>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string | null;
|
|
3
|
+
color?: string | null;
|
|
4
|
+
image?: string | null;
|
|
5
|
+
iconSize: number;
|
|
6
|
+
showLoadingIndicator?: boolean;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
'bottom-right'?(_: {
|
|
13
|
+
foregroundColor: string;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: 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>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UpdateState } from './_BaseAppCardUpdate.vue';
|
|
2
|
+
type SplitPane = 'L' | 'R' | 'T' | 'B';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
title: string;
|
|
5
|
+
/** Context (drives the leading glyph, priority: split → task → project). */
|
|
6
|
+
splitPane?: SplitPane | null;
|
|
7
|
+
linked?: boolean;
|
|
8
|
+
projectApp?: boolean;
|
|
9
|
+
/** Suppress the leading context glyph (e.g. the notepad already groups apps by scope). */
|
|
10
|
+
hideContext?: boolean;
|
|
11
|
+
/** Favourite affordance. */
|
|
12
|
+
showFavorite?: boolean;
|
|
13
|
+
isFavorite?: boolean;
|
|
14
|
+
favoriteVisibility?: 'always' | 'hover' | 'never';
|
|
15
|
+
touchMode?: boolean;
|
|
16
|
+
/** Update affordance (status lives on the tile badge; this is the action). */
|
|
17
|
+
updateAvailable?: boolean;
|
|
18
|
+
updateState?: UpdateState;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
toggleFavorite: () => any;
|
|
22
|
+
update: () => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
onToggleFavorite?: (() => any) | undefined;
|
|
25
|
+
onUpdate?: (() => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
app: {
|
|
3
|
+
title: string;
|
|
4
|
+
icon?: string | null;
|
|
5
|
+
color?: string | null;
|
|
6
|
+
image?: string | null;
|
|
7
|
+
};
|
|
8
|
+
iconSize: number;
|
|
9
|
+
cardClasses?: Record<string, boolean>;
|
|
10
|
+
showLoadingIndicator?: boolean;
|
|
11
|
+
titleless?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
clicked: () => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onClicked?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type UpdateState = 'idle' | 'updating' | 'done' | 'failed' | 'cleared';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
state?: UpdateState;
|
|
4
|
+
updateAvailable?: boolean;
|
|
5
|
+
nextVersion?: string;
|
|
6
|
+
};
|
|
7
|
+
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, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { UpdateState } from './_BaseAppCardUpdate.vue';
|
|
1
2
|
export interface AppLike {
|
|
2
3
|
title: string;
|
|
3
|
-
icon
|
|
4
|
+
icon?: string | null;
|
|
4
5
|
id: string;
|
|
5
|
-
color?: string;
|
|
6
|
+
color?: string | null;
|
|
6
7
|
isFavorite?: boolean;
|
|
7
|
-
image?: string;
|
|
8
|
+
image?: string | null;
|
|
8
9
|
update_available?: boolean;
|
|
9
|
-
|
|
10
|
+
can_open?: boolean;
|
|
10
11
|
}
|
|
12
|
+
type SplitPane = 'L' | 'R' | 'T' | 'B';
|
|
11
13
|
type __VLS_Props = {
|
|
12
14
|
app: AppLike;
|
|
13
15
|
smallerVariant?: boolean;
|
|
@@ -19,6 +21,24 @@ type __VLS_Props = {
|
|
|
19
21
|
favoriteVisibility?: 'always' | 'hover' | 'never';
|
|
20
22
|
shadow?: boolean;
|
|
21
23
|
size?: 's' | 'xs' | 'toolbar';
|
|
24
|
+
updateState?: UpdateState;
|
|
25
|
+
splitPane?: SplitPane | null;
|
|
26
|
+
menuOpen?: boolean;
|
|
27
|
+
nextVersion?: string;
|
|
28
|
+
touchMode?: boolean;
|
|
29
|
+
fluid?: boolean;
|
|
30
|
+
/** Ring the icon when this app is connected to the selected task. */
|
|
31
|
+
highlighted?: boolean;
|
|
32
|
+
/** Tooltip text shown while highlighted (e.g. "Connected to task X"). */
|
|
33
|
+
highlightLabel?: string;
|
|
34
|
+
/** App belongs to a project scope — shows the project context badge + hint. */
|
|
35
|
+
projectApp?: boolean;
|
|
36
|
+
/** Scope description for the hint (e.g. "Project app · North Tower"). */
|
|
37
|
+
scopeLabel?: string;
|
|
38
|
+
/** Host-derived update affordance; falls back to the app's own flags. */
|
|
39
|
+
updateAvailable?: boolean;
|
|
40
|
+
/** Drop the leading context glyph in the title (host already groups by scope). */
|
|
41
|
+
hideContextGlyph?: boolean;
|
|
22
42
|
};
|
|
23
43
|
declare function __VLS_template(): {
|
|
24
44
|
attrs: Partial<{}>;
|
|
@@ -31,9 +51,11 @@ declare function __VLS_template(): {
|
|
|
31
51
|
rootEl: any;
|
|
32
52
|
};
|
|
33
53
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
|
+
update: (app: AppLike) => any;
|
|
35
56
|
clicked: (app: AppLike) => any;
|
|
36
57
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
58
|
+
onUpdate?: ((app: AppLike) => any) | undefined;
|
|
37
59
|
onClicked?: ((app: AppLike) => any) | undefined;
|
|
38
60
|
}>, {
|
|
39
61
|
showLoadingIndicator: boolean;
|
|
@@ -10,6 +10,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
|
|
|
10
10
|
extension: string | null;
|
|
11
11
|
size: number | null;
|
|
12
12
|
is_folder: boolean;
|
|
13
|
+
source_type: string;
|
|
14
|
+
source_url: string | null;
|
|
13
15
|
is_system?: boolean | undefined;
|
|
14
16
|
visibility?: string | null | undefined;
|
|
15
17
|
display_name?: string | null | undefined;
|
|
@@ -55,6 +57,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
|
|
|
55
57
|
extension: string | null;
|
|
56
58
|
size: number | null;
|
|
57
59
|
is_folder: boolean;
|
|
60
|
+
source_type: string;
|
|
61
|
+
source_url: string | null;
|
|
58
62
|
is_system?: boolean | undefined;
|
|
59
63
|
visibility?: string | null | undefined;
|
|
60
64
|
display_name?: string | null | undefined;
|
|
@@ -101,6 +105,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
|
|
|
101
105
|
extension: string | null;
|
|
102
106
|
size: number | null;
|
|
103
107
|
is_folder: boolean;
|
|
108
|
+
source_type: string;
|
|
109
|
+
source_url: string | null;
|
|
104
110
|
is_system?: boolean | undefined;
|
|
105
111
|
visibility?: string | null | undefined;
|
|
106
112
|
display_name?: string | null | undefined;
|
|
@@ -146,6 +152,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
|
|
|
146
152
|
extension: string | null;
|
|
147
153
|
size: number | null;
|
|
148
154
|
is_folder: boolean;
|
|
155
|
+
source_type: string;
|
|
156
|
+
source_url: string | null;
|
|
149
157
|
is_system?: boolean | undefined;
|
|
150
158
|
visibility?: string | null | undefined;
|
|
151
159
|
display_name?: string | null | undefined;
|
|
@@ -15,8 +15,10 @@ export declare function usePickerUpload(antConnect: AntConnect, options: UsePick
|
|
|
15
15
|
isUploading: Ref<boolean, boolean>;
|
|
16
16
|
uploadProgress: Ref<number, number>;
|
|
17
17
|
isDragOver: Ref<boolean, boolean>;
|
|
18
|
+
isAddingLink: Ref<boolean, boolean>;
|
|
18
19
|
onFileInput: (event: Event, modeOverride?: UploadMode) => void;
|
|
19
20
|
onDrop: (event: DragEvent) => void;
|
|
20
21
|
handleFileUpload: (file: File) => Promise<void>;
|
|
22
|
+
addExternalLink: (name: string, url: string) => Promise<DmsFile | null>;
|
|
21
23
|
};
|
|
22
24
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DmsFile } from '@antcde/connect-ts';
|
|
2
2
|
export declare function isSystemItem(file: DmsFile): boolean;
|
|
3
|
+
export declare function isExternalLinkItem(file: DmsFile): boolean;
|
|
3
4
|
export declare function getItemIcon(file: DmsFile): string;
|
|
4
5
|
export declare function getItemColor(file: DmsFile): string | undefined;
|
|
5
6
|
export declare function getItemName(file: DmsFile): string;
|
|
@@ -17,7 +17,11 @@ type __VLS_Props = {
|
|
|
17
17
|
declare function updateFlowTask(task: Task): void;
|
|
18
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
19
19
|
updateFlowTask: typeof updateFlowTask;
|
|
20
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
versionPublished: (version: number) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onVersionPublished?: ((version: number) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
25
|
fullFlowRef: unknown;
|
|
22
26
|
editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
23
27
|
isDark: boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MentionItem } from './_useMentionPicker';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: MentionItem[];
|
|
4
|
+
selected: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
rect: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
} | null;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
hover: (index: number) => any;
|
|
13
|
+
pick: (item: MentionItem) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onHover?: ((index: number) => any) | undefined;
|
|
16
|
+
onPick?: ((item: MentionItem) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
interface InlineEditOptions {
|
|
4
|
+
editor: Ref<Editor | undefined>;
|
|
5
|
+
wrapperRef: Ref<HTMLElement | null>;
|
|
6
|
+
content: Ref<string>;
|
|
7
|
+
/** Composer mode is always editable, so the read/edit swap doesn't apply. */
|
|
8
|
+
isComposer: () => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* When true, clicking outside keeps the editor open — the host owns the
|
|
11
|
+
* commit point and closes it via `exitEditMode` / `cancelEdit`.
|
|
12
|
+
*/
|
|
13
|
+
explicitCommit: () => boolean;
|
|
14
|
+
disabled: () => boolean;
|
|
15
|
+
onEnter: () => void;
|
|
16
|
+
onExit: () => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The read/edit swap for inline mode: click to edit, and either click-outside
|
|
20
|
+
* or the host commits. Kept out of index.vue so the component stays readable.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useInlineEdit(options: InlineEditOptions): {
|
|
23
|
+
isEditing: Ref<boolean, boolean>;
|
|
24
|
+
enterEditMode: () => void;
|
|
25
|
+
exitEditMode: () => void;
|
|
26
|
+
cancelEdit: () => void;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface MentionItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface MentionState {
|
|
7
|
+
open: boolean;
|
|
8
|
+
items: MentionItem[];
|
|
9
|
+
selected: number;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
rect: {
|
|
12
|
+
left: number;
|
|
13
|
+
top: number;
|
|
14
|
+
} | null;
|
|
15
|
+
command: ((item: MentionItem) => void) | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function useMentionPicker(wrapperRef: Ref<HTMLElement | null>, mentionItems: ((q: string) => Promise<MentionItem[]>) | undefined): {
|
|
18
|
+
state: Ref<{
|
|
19
|
+
open: boolean;
|
|
20
|
+
items: {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
selected: number;
|
|
25
|
+
loading: boolean;
|
|
26
|
+
rect: {
|
|
27
|
+
left: number;
|
|
28
|
+
top: number;
|
|
29
|
+
} | null;
|
|
30
|
+
command: ((item: MentionItem) => void) | null;
|
|
31
|
+
}, MentionState | {
|
|
32
|
+
open: boolean;
|
|
33
|
+
items: {
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
selected: number;
|
|
38
|
+
loading: boolean;
|
|
39
|
+
rect: {
|
|
40
|
+
left: number;
|
|
41
|
+
top: number;
|
|
42
|
+
} | null;
|
|
43
|
+
command: ((item: MentionItem) => void) | null;
|
|
44
|
+
}>;
|
|
45
|
+
buildExtension: () => import('@tiptap/core').Node<import('@tiptap/extension-mention').MentionOptions<any, import('@tiptap/extension-mention').MentionNodeAttrs>, any> | null;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
1
|
+
import { MentionItem } from './_useMentionPicker';
|
|
2
|
+
export type { MentionItem };
|
|
5
3
|
type __VLS_Props = {
|
|
6
4
|
isDark?: boolean;
|
|
7
5
|
placeholder?: string;
|
|
@@ -19,20 +17,36 @@ type __VLS_Props = {
|
|
|
19
17
|
* (message use case).
|
|
20
18
|
*/
|
|
21
19
|
mode?: 'inline' | 'composer';
|
|
20
|
+
/**
|
|
21
|
+
* Visual chrome. 'subtle' (default) is the soft tinted look for inline
|
|
22
|
+
* descriptions and chat composers. 'form' matches ANT form-field chrome
|
|
23
|
+
* (solid surface, ant border, rounded-lg, primary focus ring) so the
|
|
24
|
+
* editor sits next to other Inputs without looking like a different
|
|
25
|
+
* control.
|
|
26
|
+
*/
|
|
27
|
+
variant?: 'subtle' | 'form';
|
|
22
28
|
/**
|
|
23
29
|
* Source of mention suggestions. When set, typing `@` opens an inline
|
|
24
30
|
* picker that calls this function with the current query and renders
|
|
25
31
|
* the returned items. When unset, mentions are disabled.
|
|
26
32
|
*/
|
|
27
33
|
mentionItems?: (query: string) => Promise<MentionItem[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Inline mode only. By default clicking outside leaves edit mode and emits
|
|
36
|
+
* `blur`, which hosts treat as "commit". Set this when the host owns the
|
|
37
|
+
* commit point (a Save button): clicking away keeps the editor open and
|
|
38
|
+
* editable, and the host closes it via the exposed `exitEdit` / `cancelEdit`.
|
|
39
|
+
*/
|
|
40
|
+
explicitCommit?: boolean;
|
|
28
41
|
};
|
|
29
|
-
declare function clear(): void;
|
|
30
42
|
type __VLS_PublicProps = {
|
|
31
43
|
modelValue?: string;
|
|
32
44
|
} & __VLS_Props;
|
|
33
45
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
34
46
|
focus: () => boolean | undefined;
|
|
35
|
-
clear:
|
|
47
|
+
clear: () => void;
|
|
48
|
+
exitEdit: () => void;
|
|
49
|
+
cancelEdit: () => void;
|
|
36
50
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
51
|
submit: () => any;
|
|
38
52
|
"update:modelValue": (value: string) => any;
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
+
import { LifecycleAction } from '../composables/useFlowLifecycle';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
isDark: boolean;
|
|
3
4
|
isLocked: boolean;
|
|
4
5
|
isTemplate: boolean;
|
|
6
|
+
isInstance?: boolean;
|
|
7
|
+
canManage?: boolean;
|
|
8
|
+
canShareLicense?: boolean;
|
|
5
9
|
stack: {
|
|
6
10
|
id: string;
|
|
7
11
|
title: string;
|
|
8
12
|
}[];
|
|
9
13
|
currentTitle: string | undefined;
|
|
10
14
|
nodeCount: number;
|
|
15
|
+
showSidebarToggle?: boolean;
|
|
16
|
+
isSidebarCollapsed?: boolean;
|
|
11
17
|
};
|
|
12
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"toggle-sidebar": () => any;
|
|
20
|
+
lifecycle: (key: LifecycleAction) => any;
|
|
13
21
|
navigateBack: (index: number) => any;
|
|
14
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
"onToggle-sidebar"?: (() => any) | undefined;
|
|
24
|
+
onLifecycle?: ((key: LifecycleAction) => any) | undefined;
|
|
15
25
|
onNavigateBack?: ((index: number) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
27
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: boolean) => any;
|
|
6
|
+
confirm: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
onConfirm?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
edgeId: string;
|
|
3
|
+
lagDays: number;
|
|
4
|
+
lagActiveDays: number[];
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LifecycleAction } from '../composables/useFlowLifecycle';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isDark: boolean;
|
|
4
|
+
canManage: boolean;
|
|
5
|
+
canShareLicense: boolean;
|
|
6
|
+
showSidebarToggle?: boolean;
|
|
7
|
+
isSidebarCollapsed?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
action: (key: LifecycleAction) => any;
|
|
11
|
+
"toggle-sidebar": () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onAction?: ((key: LifecycleAction) => any) | undefined;
|
|
14
|
+
"onToggle-sidebar"?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
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
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
panelRef: HTMLDivElement;
|
|
13
|
+
}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
isDark: boolean;
|
|
5
5
|
isNotepadOpen: boolean;
|
|
6
6
|
isAutoLayouting: boolean;
|
|
7
|
+
isStructureOpen?: boolean;
|
|
7
8
|
userId: string;
|
|
8
9
|
isAdmin?: boolean;
|
|
9
10
|
canManageTemplates?: boolean;
|
|
@@ -11,16 +12,18 @@ type __VLS_Props = {
|
|
|
11
12
|
editorRef: FlowEditorExposed | null;
|
|
12
13
|
};
|
|
13
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
share: (task: Task) => any;
|
|
14
16
|
"toggle-notepad": () => any;
|
|
17
|
+
"toggle-structure": () => any;
|
|
15
18
|
"auto-layout": () => any;
|
|
16
19
|
"open-insert-template": () => any;
|
|
17
20
|
"publish-version": () => any;
|
|
18
|
-
share: (task: Task) => any;
|
|
19
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onShare?: ((task: Task) => any) | undefined;
|
|
20
23
|
"onToggle-notepad"?: (() => any) | undefined;
|
|
24
|
+
"onToggle-structure"?: (() => any) | undefined;
|
|
21
25
|
"onAuto-layout"?: (() => any) | undefined;
|
|
22
26
|
"onOpen-insert-template"?: (() => any) | undefined;
|
|
23
27
|
"onPublish-version"?: (() => any) | undefined;
|
|
24
|
-
onShare?: ((task: Task) => any) | undefined;
|
|
25
28
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
29
|
export default _default;
|
|
@@ -6,7 +6,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6
6
|
openPublishDialog: typeof openPublishDialog;
|
|
7
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
updated: () => any;
|
|
9
|
+
published: (version: number) => any;
|
|
9
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
11
|
onUpdated?: (() => any) | undefined;
|
|
12
|
+
onPublished?: ((version: number) => any) | undefined;
|
|
11
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
14
|
export default _default;
|
|
@@ -2,5 +2,8 @@ import { EdgeProps } from '@vue-flow/core';
|
|
|
2
2
|
type __VLS_Props = EdgeProps & {
|
|
3
3
|
isDark: boolean;
|
|
4
4
|
};
|
|
5
|
-
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, {
|
|
5
|
+
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, {
|
|
6
|
+
interactionPathRef: SVGPathElement;
|
|
7
|
+
labelContainerRef: HTMLDivElement;
|
|
8
|
+
}, any>;
|
|
6
9
|
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,6 @@
|
|
|
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, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -61,17 +61,17 @@ export declare function useTaskNodeState(props: TaskNodeProps, flowStore: FlowSt
|
|
|
61
61
|
isCompareActive: import('vue').ComputedRef<boolean>;
|
|
62
62
|
diffClass: import('vue').ComputedRef<string>;
|
|
63
63
|
nodeLabels: import('vue').ComputedRef<NodeLabel[]>;
|
|
64
|
+
nodeRoles: import('vue').ComputedRef<{
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}[]>;
|
|
64
68
|
labelRingColor: import('vue').ComputedRef<string | null>;
|
|
65
69
|
labelRingStyle: import('vue').ComputedRef<{
|
|
66
70
|
'--label-ring-color': string;
|
|
67
71
|
} | undefined>;
|
|
68
72
|
assignedUser: import('vue').ComputedRef<any>;
|
|
69
|
-
userInitials: import('vue').ComputedRef<
|
|
73
|
+
userInitials: import('vue').ComputedRef<any>;
|
|
70
74
|
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
75
|
showUserPicker: import('vue').Ref<boolean, boolean>;
|
|
76
76
|
onNodeClick: (e: MouseEvent) => void;
|
|
77
77
|
onNodeDblClick: (e: MouseEvent) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface LayoutOptions {
|
|
2
|
+
nodeWidth?: number;
|
|
3
|
+
nodeHeight?: number;
|
|
4
|
+
horizontalGap?: number;
|
|
5
|
+
verticalGap?: number;
|
|
6
|
+
direction?: 'LR' | 'TB';
|
|
7
|
+
}
|
|
8
|
+
export interface LayoutNode {
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LayoutEdge {
|
|
12
|
+
source: string;
|
|
13
|
+
target: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function findComponents(nodes: LayoutNode[], neighbors: Map<string, Set<string>>): LayoutNode[][];
|
|
16
|
+
export declare function layoutComponent(nodes: LayoutNode[], successors: Map<string, string[]>, predecessors: Map<string, string[]>, opts: Required<LayoutOptions>): Map<string, {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
nodeWidth?: number;
|
|
4
|
-
nodeHeight?: number;
|
|
5
|
-
horizontalGap?: number;
|
|
6
|
-
verticalGap?: number;
|
|
7
|
-
direction?: 'LR' | 'TB';
|
|
8
|
-
}
|
|
1
|
+
import { LayoutEdge, LayoutNode, LayoutOptions } from './_layoutEngine';
|
|
2
|
+
export declare const LAYOUT_DEFAULTS: Required<LayoutOptions>;
|
|
9
3
|
/**
|
|
10
4
|
* Lightweight directed graph layout using a layered (Sugiyama-style) approach.
|
|
11
5
|
* Handles disconnected components by laying them out separately then stacking.
|
|
@@ -14,9 +8,11 @@ interface LayoutOptions {
|
|
|
14
8
|
* 1. Find connected components
|
|
15
9
|
* 2. For each component: assign layers, order with barycenter, compute positions
|
|
16
10
|
* 3. Stack components vertically with spacing
|
|
11
|
+
*
|
|
12
|
+
* Reads only ids and edge endpoints, so callers may pass real flow nodes/edges
|
|
13
|
+
* or lightweight virtual ones (see useFlowAutoLayout's Start/End injection).
|
|
17
14
|
*/
|
|
18
|
-
export declare function computeAutoLayout(nodes:
|
|
15
|
+
export declare function computeAutoLayout(nodes: LayoutNode[], edges: LayoutEdge[], options?: LayoutOptions): Map<string, {
|
|
19
16
|
x: number;
|
|
20
17
|
y: number;
|
|
21
18
|
}>;
|
|
22
|
-
export {};
|