@antcde/component-library 0.1.24-rc.5 → 0.1.24
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 +1 -9
- package/dist/index.js +34219 -34069
- package/dist/types/src/components/BaseAntInput.vue.d.ts +0 -6
- package/dist/types/src/components/{BaseAppCard/index.vue.d.ts → BaseAppCard.vue.d.ts} +7 -22
- package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +0 -8
- package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +0 -2
- package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +0 -1
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +1 -5
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +6 -20
- package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +1 -11
- package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +2 -5
- package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +0 -2
- package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +1 -4
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
- package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +10 -6
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +1 -3
- package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +4 -1
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +4 -58
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +0 -4
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +4 -53
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +4 -52
- package/dist/types/src/components/TasksFlow/index.vue.d.ts +0 -10
- package/dist/types/src/index.d.ts +2 -2
- package/lib/build/uno.ts +1 -10
- package/lib/test/setup.ts +0 -8
- package/package.json +25 -29
- package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +0 -17
- package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +0 -27
- package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +0 -5
- package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +0 -18
- package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +0 -8
- package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +0 -18
- package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +0 -6
- package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +0 -28
- package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +0 -47
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +0 -11
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +0 -14
- package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +0 -16
- package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +0 -14
- package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +0 -10
- package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +0 -6
- package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +0 -19
- package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +0 -15
- package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +0 -10
- package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +0 -18
- package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +0 -19
- package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +0 -6
- package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +0 -23
- package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +0 -27
|
@@ -1,28 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,47 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,19 +0,0 @@
|
|
|
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,15 +0,0 @@
|
|
|
1
|
-
import { Edge, Node } from '@vue-flow/core';
|
|
2
|
-
import { useTaskFlow } from './useTaskFlow';
|
|
3
|
-
/**
|
|
4
|
-
* Assembles the render lists handed to <VueFlow>. Both view modes layer
|
|
5
|
-
* render-only overlays on top of the persisted graph — neither touches
|
|
6
|
-
* flowStore.flowNodes or saved positions:
|
|
7
|
-
* - Free view: decorative Start / End boundary markers.
|
|
8
|
-
* - Swimlane view: role lane bands with tiles repositioned into their band,
|
|
9
|
-
* plus lane-anchored Start / End markers.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useFlowDisplayElements(flowStore: ReturnType<typeof useTaskFlow>): {
|
|
12
|
-
isSwimlane: import('vue').ComputedRef<boolean>;
|
|
13
|
-
displayNodes: import('vue').ComputedRef<Node<any, any, string>[]>;
|
|
14
|
-
displayEdges: import('vue').ComputedRef<Edge[]>;
|
|
15
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Edge, Node } from '@vue-flow/core';
|
|
2
|
-
import { useTaskFlow } from './useTaskFlow';
|
|
3
|
-
export declare const START_ID = "__flow_start__";
|
|
4
|
-
export declare const END_ID = "__flow_end__";
|
|
5
|
-
export declare const ENDPOINT_W = 48;
|
|
6
|
-
export declare const ENDPOINT_H = 66;
|
|
7
|
-
export declare function useFlowEndpoints(flowStore: ReturnType<typeof useTaskFlow>): {
|
|
8
|
-
endpointNodes: import('vue').ComputedRef<Node<any, any, string>[]>;
|
|
9
|
-
endpointEdges: import('vue').ComputedRef<Edge[]>;
|
|
10
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type LifecycleStatus = 'draft' | 'published' | 'changes' | 'instance' | 'plain';
|
|
2
|
-
export type LifecyclePrimary = 'publish' | 'use' | 'review' | null;
|
|
3
|
-
export type LifecycleAction = 'publish' | 'use' | 'share' | 'make-public' | 'rename' | 'manage-propagation' | 'version-history' | 'view-instances' | 'duplicate' | 'delete' | 'review';
|
|
4
|
-
export declare function useFlowLifecycle(): {
|
|
5
|
-
isTemplate: import('vue').ComputedRef<boolean>;
|
|
6
|
-
isInstance: import('vue').ComputedRef<boolean>;
|
|
7
|
-
status: import('vue').ComputedRef<LifecycleStatus>;
|
|
8
|
-
canUse: import('vue').ComputedRef<boolean>;
|
|
9
|
-
isPrivate: import('vue').ComputedRef<boolean>;
|
|
10
|
-
isLicensePublic: import('vue').ComputedRef<boolean>;
|
|
11
|
-
isLoading: import('vue').ComputedRef<boolean>;
|
|
12
|
-
primary: import('vue').ComputedRef<LifecyclePrimary>;
|
|
13
|
-
publishedVersion: import('vue').ComputedRef<number>;
|
|
14
|
-
changeCount: import('vue').ComputedRef<number>;
|
|
15
|
-
latestVersion: import('vue').ComputedRef<number>;
|
|
16
|
-
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
17
|
-
isPublishing: import('vue').ComputedRef<boolean>;
|
|
18
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export interface StructureRow {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
depth: number;
|
|
6
|
-
hasChildren: boolean;
|
|
7
|
-
expanded: boolean;
|
|
8
|
-
fromTemplate: boolean;
|
|
9
|
-
isTrigger: boolean;
|
|
10
|
-
isRoot: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function useFlowStructureTree(open: Ref<boolean>): {
|
|
13
|
-
rows: import('vue').ComputedRef<StructureRow[]>;
|
|
14
|
-
currentId: import('vue').ComputedRef<string | null>;
|
|
15
|
-
isEmpty: import('vue').ComputedRef<boolean>;
|
|
16
|
-
isLoading: import('vue').ComputedRef<boolean>;
|
|
17
|
-
toggleExpand: (id: string) => void;
|
|
18
|
-
openNode: (row: StructureRow) => void;
|
|
19
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Edge, Node } from '@vue-flow/core';
|
|
2
|
-
import { useTaskFlow } from './useTaskFlow';
|
|
3
|
-
export declare const MULTI_LANE = "__lane_multi__";
|
|
4
|
-
export declare const UNASSIGNED_LANE = "__lane_unassigned__";
|
|
5
|
-
/**
|
|
6
|
-
* View-only swimlane layout. Reuses the layered auto-layout for the MAJOR axis
|
|
7
|
-
* (workflow progression) so tiles stay column-aligned across lanes, then forces
|
|
8
|
-
* each tile's MINOR axis into its role's band. Nothing here is persisted — the
|
|
9
|
-
* editor merges these positions into the render list only while in swimlane
|
|
10
|
-
* mode, leaving flowStore.flowNodes (and task.position_x/y) untouched.
|
|
11
|
-
*
|
|
12
|
-
* Lane assignment: 0 roles → Unassigned, 1 role → that role's lane, 2+ → Multi.
|
|
13
|
-
* Lanes follow layoutDirection (LR → horizontal bands, TB → vertical bands).
|
|
14
|
-
*/
|
|
15
|
-
export declare function useSwimlaneLayout(flowStore: ReturnType<typeof useTaskFlow>): {
|
|
16
|
-
laneNodes: import('vue').ComputedRef<Node<any, any, string>[]>;
|
|
17
|
-
nodePositions: import('vue').ComputedRef<Map<string, {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
}>>;
|
|
21
|
-
endpointNodes: import('vue').ComputedRef<Node<any, any, string>[]>;
|
|
22
|
-
endpointEdges: import('vue').ComputedRef<Edge[]>;
|
|
23
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
label: string;
|
|
3
|
-
required?: boolean;
|
|
4
|
-
/**
|
|
5
|
-
* Text for the required marker's tooltip and screen-reader label. Pass this to
|
|
6
|
-
* keep the component off the host's translation keys; when omitted it falls
|
|
7
|
-
* back to `common.requiredField`, and to English if the host lacks that key.
|
|
8
|
-
*/
|
|
9
|
-
requiredLabel?: string;
|
|
10
|
-
};
|
|
11
|
-
declare function __VLS_template(): {
|
|
12
|
-
attrs: Partial<{}>;
|
|
13
|
-
slots: {
|
|
14
|
-
append?(_: {}): 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
|
-
};
|