@antcde/component-library 0.1.24 → 0.1.25-rc.10

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.
Files changed (77) hide show
  1. package/dist/build/uno.js +9 -1
  2. package/dist/index.js +20683 -20066
  3. package/dist/types/src/components/BaseAntInput.types.d.ts +111 -0
  4. package/dist/types/src/components/BaseAntInput.vue.d.ts +2 -74
  5. package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +17 -0
  6. package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +27 -0
  7. package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +5 -0
  8. package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +18 -0
  9. package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +8 -0
  10. package/dist/types/src/components/{BaseAppCard.vue.d.ts → BaseAppCard/index.vue.d.ts} +22 -7
  11. package/dist/types/src/components/BaseAppCardSkeleton.vue.d.ts +6 -0
  12. package/dist/types/src/components/BaseResizePanel.vue.d.ts +19 -18
  13. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +8 -0
  14. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +2 -0
  15. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +1 -0
  16. package/dist/types/src/components/FilePreviewContent/_PreviewDetails.vue.d.ts +18 -0
  17. package/dist/types/src/components/FilePreviewContent/_PreviewMeta.vue.d.ts +13 -0
  18. package/dist/types/src/components/FilePreviewContent/_PreviewUsages.vue.d.ts +13 -0
  19. package/dist/types/src/components/FilePreviewContent/fileFormat.d.ts +7 -0
  20. package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +20 -14
  21. package/dist/types/src/components/FilePreviewContent/types.d.ts +27 -0
  22. package/dist/types/src/components/FilePreviewContent/usePreviewDetails.d.ts +49 -0
  23. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +5 -1
  24. package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +18 -0
  25. package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +6 -0
  26. package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +28 -0
  27. package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +47 -0
  28. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +20 -6
  29. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +11 -1
  30. package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +11 -0
  31. package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +14 -0
  32. package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +16 -0
  33. package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +14 -0
  34. package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +5 -2
  35. package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -0
  36. package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +4 -1
  37. package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +10 -0
  38. package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +6 -0
  39. package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
  40. package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +19 -0
  41. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +6 -10
  42. package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +15 -0
  43. package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +10 -0
  44. package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +18 -0
  45. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +3 -1
  46. package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +19 -0
  47. package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +6 -0
  48. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +1 -4
  49. package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +23 -0
  50. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +58 -4
  51. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +4 -0
  52. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +53 -4
  53. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +52 -4
  54. package/dist/types/src/components/TasksFlow/index.vue.d.ts +10 -0
  55. package/dist/types/src/components/UnifiedWindow/_WindowPresetMenu.vue.d.ts +11 -0
  56. package/dist/types/src/components/UnifiedWindow/_WindowTabs.vue.d.ts +16 -0
  57. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +3 -9
  58. package/dist/types/src/components/UnifiedWindow/types.d.ts +11 -0
  59. package/dist/types/src/components/UnifiedWindow/useNativeFullscreen.d.ts +18 -0
  60. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +8 -0
  61. package/dist/types/src/components/_BaseAntInputField.vue.d.ts +36 -0
  62. package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +33 -0
  63. package/dist/types/src/components/useResizePanel.d.ts +38 -0
  64. package/dist/types/src/index.d.ts +3 -3
  65. package/lib/PdfViewer/PdfViewer.vue +245 -0
  66. package/lib/PdfViewer/_PdfToolbar.vue +196 -0
  67. package/lib/PdfViewer/canvasBudget.ts +57 -0
  68. package/lib/PdfViewer/index.ts +5 -0
  69. package/lib/PdfViewer/labels.ts +52 -0
  70. package/lib/PdfViewer/usePdfDocument.ts +239 -0
  71. package/lib/PdfViewer/usePdfKeyboard.ts +38 -0
  72. package/lib/PdfViewer/usePdfRaster.ts +85 -0
  73. package/lib/PdfViewer/usePdfTransform.ts +238 -0
  74. package/lib/build/uno.ts +10 -1
  75. package/lib/test/mocks/createMockContext.ts +2 -0
  76. package/lib/test/setup.ts +8 -0
  77. package/package.json +39 -28
@@ -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
+ pick: (item: MentionItem) => any;
13
+ hover: (index: number) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onPick?: ((item: MentionItem) => any) | undefined;
16
+ onHover?: ((index: number) => 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
- export interface MentionItem {
2
- id: string;
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: typeof 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, {}, HTMLDivElement>;
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, {}, any>;
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<string>;
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 { TaskFlowEdge, TaskFlowNode } from './useTaskFlow';
2
- interface LayoutOptions {
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: TaskFlowNode[], edges: TaskFlowEdge[], options?: LayoutOptions): Map<string, {
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 {};
@@ -0,0 +1,15 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,18 @@
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
+ };
@@ -12,8 +12,10 @@ interface FlowRealtimeOptions {
12
12
  notifications: ReturnType<typeof useFlowNotifications>;
13
13
  channelSubscriber?: FlowChannelSubscriber;
14
14
  refreshFromExternal: () => Promise<void>;
15
+ onParentUpdated?: () => void;
16
+ onParentDeleted?: () => void;
15
17
  }
16
- export declare function useFlowRealtime({ flowParent, flowNodes, flowEdges, flowCache, notifications, channelSubscriber, refreshFromExternal, }: FlowRealtimeOptions): {
18
+ export declare function useFlowRealtime({ flowParent, flowNodes, flowEdges, flowCache, notifications, channelSubscriber, refreshFromExternal, onParentUpdated, onParentDeleted, }: FlowRealtimeOptions): {
17
19
  handleTaskEvent: (payload: {
18
20
  id: string;
19
21
  action: string;
@@ -0,0 +1,19 @@
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
+ };
@@ -0,0 +1,6 @@
1
+ export declare function useFlowToolbarDrag(): {
2
+ onDragStartTask: (e: DragEvent) => void;
3
+ onDragEndTask: () => void;
4
+ onDragStartTrigger: (e: DragEvent, id: string, name: string) => void;
5
+ onDragEndTrigger: () => void;
6
+ };
@@ -14,10 +14,7 @@ export declare function useFlowViewport(flowNodes: Ref<TaskFlowNode[]>, isMounte
14
14
  x: number;
15
15
  y: number;
16
16
  };
17
- getViewportCenterFlowPosition: () => {
18
- x: number;
19
- y: number;
20
- };
17
+ getViewportCenterFlowPosition: () => import('@vue-flow/core').XYPosition;
21
18
  centerAndPersistNode: (createdId: string, centerPos: {
22
19
  x: number;
23
20
  y: number;
@@ -0,0 +1,23 @@
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
+ };