@cjlapao/ui-kit-vue 0.2.0 → 0.2.5
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.cjs +18 -25
- package/dist/index.css +37767 -13278
- package/dist/index.js +31203 -21039
- package/dist/types/common/chat/markdown.d.ts +8 -0
- package/dist/types/common/chat/storage.d.ts +48 -0
- package/dist/types/common/chat/stream.d.ts +43 -0
- package/dist/types/common/chat/types.d.ts +143 -0
- package/dist/types/common/connectionFlow/header.d.ts +56 -0
- package/dist/types/common/connectionFlow/index.d.ts +6 -0
- package/dist/types/common/connectionFlow/layout.d.ts +73 -0
- package/dist/types/common/connectionFlow/measure.d.ts +94 -0
- package/dist/types/common/connectionFlow/router.d.ts +131 -0
- package/dist/types/common/connectionFlow/tones.d.ts +79 -0
- package/dist/types/common/connectionFlow/types.d.ts +394 -0
- package/dist/types/common/gantt/drag.d.ts +221 -0
- package/dist/types/common/gantt/index.d.ts +11 -0
- package/dist/types/common/gantt/layout.d.ts +133 -0
- package/dist/types/common/gantt/sample.d.ts +15 -0
- package/dist/types/common/gantt/time.d.ts +77 -0
- package/dist/types/common/gantt/tokens.d.ts +73 -0
- package/dist/types/common/gantt/types.d.ts +216 -0
- package/dist/types/common/i18n/builtIn/de.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/en.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/es.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/fr.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/index.d.ts +15 -0
- package/dist/types/common/i18n/builtIn/pt.d.ts +2 -0
- package/dist/types/common/i18n/catalog.d.ts +32 -0
- package/dist/types/common/i18n/createI18n.d.ts +2 -0
- package/dist/types/common/i18n/dates.d.ts +12 -0
- package/dist/types/common/i18n/detect.d.ts +29 -0
- package/dist/types/common/i18n/icu.d.ts +36 -0
- package/dist/types/common/i18n/index.d.ts +10 -0
- package/dist/types/common/i18n/provider.d.ts +7 -0
- package/dist/types/common/i18n/storage.d.ts +8 -0
- package/dist/types/common/i18n/types.d.ts +64 -0
- package/dist/types/common/i18n/warn.d.ts +5 -0
- package/dist/types/common/theme/Theme.d.ts +956 -3
- package/dist/types/common/theme/glass.d.ts +90 -11
- package/dist/types/common/theme/randomThemeColor.d.ts +4 -4
- package/dist/types/common/tooltip/placement.d.ts +103 -0
- package/dist/types/common/tooltip/tokens.d.ts +40 -0
- package/dist/types/common/types/TableSettings.d.ts +15 -0
- package/dist/types/common/types/Variables.d.ts +71 -1
- package/dist/types/common/utils/dates.d.ts +113 -0
- package/dist/types/common/utils/gravatar.d.ts +0 -10
- package/dist/types/common/utils/safeStorage.d.ts +28 -0
- package/dist/types/common/utils/sanitizeSvg.d.ts +44 -0
- package/dist/types/common/utils/smartVariables.d.ts +74 -18
- package/dist/types/common/utils/tableStorage.d.ts +38 -0
- package/dist/types/vue/src/chat/index.d.ts +4 -0
- package/dist/types/vue/src/components/AccessMatrix.test.d.ts +1 -0
- package/dist/types/vue/src/components/AccessMatrix.vue.d.ts +23 -1
- package/dist/types/vue/src/components/Accordion.test.d.ts +1 -0
- package/dist/types/vue/src/components/Accordion.vue.d.ts +42 -28
- package/dist/types/vue/src/components/ActivityFeed.test.d.ts +1 -0
- package/dist/types/vue/src/components/ActivityFeed.vue.d.ts +141 -0
- package/dist/types/vue/src/components/Alert.test.d.ts +1 -0
- package/dist/types/vue/src/components/Alert.vue.d.ts +59 -2
- package/dist/types/vue/src/components/ApiErrorState.test.d.ts +1 -0
- package/dist/types/vue/src/components/ApiErrorState.vue.d.ts +28 -8
- package/dist/types/vue/src/components/AppDivider.vue.d.ts +53 -4
- package/dist/types/vue/src/components/Badge.vue.d.ts +45 -13
- package/dist/types/vue/src/components/BadgeIcon.vue.d.ts +1 -1
- package/dist/types/vue/src/components/BreakdownCard.test.d.ts +1 -0
- package/dist/types/vue/src/components/BreakdownCard.vue.d.ts +81 -0
- package/dist/types/vue/src/components/Button.vue.d.ts +22 -11
- package/dist/types/vue/src/components/Chat.test.d.ts +1 -0
- package/dist/types/vue/src/components/Chat.vue.d.ts +80 -0
- package/dist/types/vue/src/components/Checkbox.test.d.ts +1 -0
- package/dist/types/vue/src/components/Checkbox.vue.d.ts +44 -29
- package/dist/types/vue/src/components/CollapsiblePanel.vue.d.ts +5 -5
- package/dist/types/vue/src/components/ColorSwatches.test.d.ts +1 -0
- package/dist/types/vue/src/components/ColorSwatches.vue.d.ts +42 -0
- package/dist/types/vue/src/components/Combobox.test.d.ts +1 -0
- package/dist/types/vue/src/components/Combobox.vue.d.ts +61 -12
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlow.vue.d.ts +153 -17
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowHeader.vue.d.ts +33 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowNodeBody.vue.d.ts +32 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSkeleton.vue.d.ts +18 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSvg.vue.d.ts +52 -0
- package/dist/types/vue/src/components/ConnectionFlow/connectionFlow.test.d.ts +1 -0
- package/dist/types/vue/src/components/ConnectionFlow/index.d.ts +11 -4
- package/dist/types/vue/src/components/CustomIcon.vue.d.ts +35 -11
- package/dist/types/vue/src/components/DetailItemCard.vue.d.ts +37 -5
- package/dist/types/vue/src/components/DropdownButton.vue.d.ts +3 -3
- package/dist/types/vue/src/components/DropdownMenu.test.d.ts +1 -0
- package/dist/types/vue/src/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/types/vue/src/components/DynamicFormField.test.d.ts +1 -0
- package/dist/types/vue/src/components/DynamicFormField.vue.d.ts +61 -5
- package/dist/types/vue/src/components/DynamicImg.vue.d.ts +28 -3
- package/dist/types/vue/src/components/EmptyState.test.d.ts +1 -0
- package/dist/types/vue/src/components/EmptyState.vue.d.ts +104 -24
- package/dist/types/vue/src/components/FormField.vue.d.ts +2 -1
- package/dist/types/vue/src/components/Gantt/Gantt.test.d.ts +1 -0
- package/dist/types/vue/src/components/Gantt/Gantt.vue.d.ts +160 -0
- package/dist/types/vue/src/components/Gantt/GanttBodyRow.vue.d.ts +78 -0
- package/dist/types/vue/src/components/Gantt/GanttCell.vue.d.ts +28 -0
- package/dist/types/vue/src/components/Gantt/GanttLinkLayer.vue.d.ts +22 -0
- package/dist/types/vue/src/components/Gantt/GanttScale.vue.d.ts +7 -0
- package/dist/types/vue/src/components/Gantt/GanttTaskBar.vue.d.ts +53 -0
- package/dist/types/vue/src/components/Gantt/GanttToolbar.vue.d.ts +22 -0
- package/dist/types/vue/src/components/Gantt/index.d.ts +18 -0
- package/dist/types/vue/src/components/Gantt/labels.d.ts +3 -0
- package/dist/types/vue/src/components/Gantt/types.d.ts +11 -0
- package/dist/types/vue/src/components/Gantt/useGanttDrag.d.ts +105 -0
- package/dist/types/vue/src/components/GlassBackground.vue.d.ts +4 -3
- package/dist/types/vue/src/components/GlassPanel.vue.d.ts +2 -2
- package/dist/types/vue/src/components/HeaderGroup.vue.d.ts +19 -1
- package/dist/types/vue/src/components/HelpButton.test.d.ts +1 -0
- package/dist/types/vue/src/components/HelpButton.vue.d.ts +15 -6
- package/dist/types/vue/src/components/Hero.test.d.ts +1 -0
- package/dist/types/vue/src/components/Hero.vue.d.ts +52 -31
- package/dist/types/vue/src/components/IconButton.vue.d.ts +12 -6
- package/dist/types/vue/src/components/InfiniteScrollPanel.vue.d.ts +61 -14
- package/dist/types/vue/src/components/InfoRow.test.d.ts +1 -0
- package/dist/types/vue/src/components/InfoRow.vue.d.ts +67 -37
- package/dist/types/vue/src/components/InlinePanel.vue.d.ts +12 -18
- package/dist/types/vue/src/components/Input.test.d.ts +1 -0
- package/dist/types/vue/src/components/Input.vue.d.ts +42 -13
- package/dist/types/vue/src/components/InputGroup.test.d.ts +1 -0
- package/dist/types/vue/src/components/InputGroup.vue.d.ts +20 -5
- package/dist/types/vue/src/components/Loader.test.d.ts +1 -0
- package/dist/types/vue/src/components/Loader.vue.d.ts +30 -11
- package/dist/types/vue/src/components/MarkdownEditor.vue.d.ts +1 -1
- package/dist/types/vue/src/components/MetricBar.test.d.ts +1 -0
- package/dist/types/vue/src/components/MetricBar.vue.d.ts +16 -5
- package/dist/types/vue/src/components/Modal.vue.d.ts +18 -19
- package/dist/types/vue/src/components/MultiProgressBar.vue.d.ts +15 -2
- package/dist/types/vue/src/components/MultiSelectPills.test.d.ts +1 -0
- package/dist/types/vue/src/components/MultiSelectPills.vue.d.ts +47 -43
- package/dist/types/vue/src/components/MultiToggle.test.d.ts +1 -0
- package/dist/types/vue/src/components/MultiToggle.vue.d.ts +33 -6
- package/dist/types/vue/src/components/NotificationModal.test.d.ts +1 -0
- package/dist/types/vue/src/components/NotificationModal.vue.d.ts +19 -2
- package/dist/types/vue/src/components/PageHeader.test.d.ts +1 -0
- package/dist/types/vue/src/components/PageHeader.vue.d.ts +18 -0
- package/dist/types/vue/src/components/PagedPanel.test.d.ts +1 -0
- package/dist/types/vue/src/components/PagedPanel.vue.d.ts +39 -11
- package/dist/types/vue/src/components/Panel.vue.d.ts +18 -9
- package/dist/types/vue/src/components/PasswordInput.test.d.ts +1 -0
- package/dist/types/vue/src/components/PasswordInput.vue.d.ts +20 -3
- package/dist/types/vue/src/components/Picker.test.d.ts +1 -0
- package/dist/types/vue/src/components/Picker.vue.d.ts +3 -3
- package/dist/types/vue/src/components/Pill.vue.d.ts +63 -5
- package/dist/types/vue/src/components/Progress.test.d.ts +1 -0
- package/dist/types/vue/src/components/Progress.vue.d.ts +60 -11
- package/dist/types/vue/src/components/ProgressSpinner.test.d.ts +1 -0
- package/dist/types/vue/src/components/ProgressSpinner.vue.d.ts +46 -0
- package/dist/types/vue/src/components/ScrollArea.test.d.ts +1 -0
- package/dist/types/vue/src/components/ScrollArea.vue.d.ts +52 -0
- package/dist/types/vue/src/components/SearchBar.vue.d.ts +2 -3
- package/dist/types/vue/src/components/Section.vue.d.ts +1 -1
- package/dist/types/vue/src/components/SectionCard.vue.d.ts +2 -2
- package/dist/types/vue/src/components/Select.test.d.ts +1 -0
- package/dist/types/vue/src/components/Select.vue.d.ts +41 -16
- package/dist/types/vue/src/components/SidePanel.vue.d.ts +1 -1
- package/dist/types/vue/src/components/SmartInput.vue.d.ts +49 -18
- package/dist/types/vue/src/components/SmartValue.vue.d.ts +20 -13
- package/dist/types/vue/src/components/SmartVariableBadge.vue.d.ts +17 -0
- package/dist/types/vue/src/components/Spinner.test.d.ts +1 -0
- package/dist/types/vue/src/components/Spinner.vue.d.ts +12 -5
- package/dist/types/vue/src/components/SplitView.vue.d.ts +6 -6
- package/dist/types/vue/src/components/StartupStageStepper.vue.d.ts +1 -1
- package/dist/types/vue/src/components/StatChartTile.vue.d.ts +5 -0
- package/dist/types/vue/src/components/StatCountTile.vue.d.ts +5 -1
- package/dist/types/vue/src/components/StatGraphTile.vue.d.ts +1 -1
- package/dist/types/vue/src/components/StatTile.test.d.ts +1 -0
- package/dist/types/vue/src/components/StatTile.vue.d.ts +5 -1
- package/dist/types/vue/src/components/StatusSpinner.test.d.ts +1 -0
- package/dist/types/vue/src/components/StatusSpinner.vue.d.ts +10 -5
- package/dist/types/vue/src/components/Stepper.test.d.ts +1 -0
- package/dist/types/vue/src/components/Stepper.vue.d.ts +62 -25
- package/dist/types/vue/src/components/Table.test.d.ts +1 -0
- package/dist/types/vue/src/components/Table.vue.d.ts +68 -15
- package/dist/types/vue/src/components/Tabs.vue.d.ts +20 -3
- package/dist/types/vue/src/components/TagPicker.vue.d.ts +3 -3
- package/dist/types/vue/src/components/Textarea.vue.d.ts +8 -5
- package/dist/types/vue/src/components/TimelinePanel/TimelinePanel.vue.d.ts +4 -4
- package/dist/types/vue/src/components/Toggle.vue.d.ts +4 -4
- package/dist/types/vue/src/components/Toolbar.test.d.ts +1 -0
- package/dist/types/vue/src/components/Toolbar.vue.d.ts +62 -0
- package/dist/types/vue/src/components/Tooltip.test.d.ts +1 -0
- package/dist/types/vue/src/components/Tooltip.vue.d.ts +20 -3
- package/dist/types/vue/src/components/TooltipWrapper.vue.d.ts +24 -3
- package/dist/types/vue/src/components/TreeView/TreeFlowSvg.vue.d.ts +5 -5
- package/dist/types/vue/src/components/TreeView/TreeItemRow.vue.d.ts +2 -2
- package/dist/types/vue/src/components/TreeView/TreeView.vue.d.ts +4 -4
- package/dist/types/vue/src/components/UserAvatar.test.d.ts +1 -0
- package/dist/types/vue/src/components/UserAvatar.vue.d.ts +56 -6
- package/dist/types/vue/src/components/VariablePicker.vue.d.ts +23 -6
- package/dist/types/vue/src/components/__dbg.test.d.ts +1 -0
- package/dist/types/vue/src/components/index.d.ts +50 -31
- package/dist/types/vue/src/components/internal/InfoRowContent.vue.d.ts +52 -0
- package/dist/types/vue/src/components/internal/PagedPanelContent.vue.d.ts +47 -0
- package/dist/types/vue/src/connectionFlow/index.d.ts +1 -0
- package/dist/types/vue/src/contexts/IconContext.d.ts +8 -3
- package/dist/types/vue/src/i18n/I18nContext.d.ts +14 -0
- package/dist/types/vue/src/i18n/I18nProvider.test.d.ts +2 -0
- package/dist/types/vue/src/i18n/I18nProvider.vue.d.ts +35 -0
- package/dist/types/vue/src/i18n/index.d.ts +8 -0
- package/dist/types/vue/src/i18n/kit-components-spot.test.d.ts +1 -0
- package/dist/types/vue/src/i18n/useI18n.d.ts +44 -0
- package/dist/types/vue/src/index.d.ts +2 -2
- package/dist/types/vue/src/test-setup.d.ts +5 -0
- package/dist/types/vue/src/types/Icon.d.ts +11 -2
- package/dist/types/vue/src/types/TableSettings.d.ts +1 -0
- package/dist/types/vue/src/types/index.d.ts +1 -0
- package/dist/types/vue/src/utils/index.d.ts +1 -0
- package/dist/types/vue/src/utils/sanitizeSvg.d.ts +1 -0
- package/dist/types/vue/src/utils/tableStorage.d.ts +1 -0
- package/dist/ui-kit-vue.css +1 -1
- package/package.json +8 -3
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowColumn.vue.d.ts +0 -45
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowConnector.vue.d.ts +0 -103
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowParallelGroup.vue.d.ts +0 -17
- package/dist/types/vue/src/components/ConnectionFlow/types.d.ts +0 -220
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TreeTone } from "../TreeView/types";
|
|
2
|
-
import type { ConnectionFlowItem } from "./types";
|
|
3
|
-
import type { ColumnGeometry } from "./ConnectionFlowColumn.vue";
|
|
4
|
-
export interface ConnectionFlowParallelGroupProps {
|
|
5
|
-
items: ConnectionFlowItem[];
|
|
6
|
-
globalTone?: TreeTone;
|
|
7
|
-
itemWidth?: number | string;
|
|
8
|
-
hoverable?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import("vue").DefineComponent<ConnectionFlowParallelGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
-
geometryChange: (geo: ColumnGeometry) => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<ConnectionFlowParallelGroupProps> & Readonly<{
|
|
13
|
-
onGeometryChange?: ((geo: ColumnGeometry) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
hoverable: boolean;
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import type { VNodeChild } from "vue";
|
|
2
|
-
import type { TreeTone } from "../TreeView/types";
|
|
3
|
-
export type ConnectionState = "flowing" | "stopped" | "disabled";
|
|
4
|
-
export interface ConnectionFlowConnectorConfig {
|
|
5
|
-
/** Active flow state for this connector */
|
|
6
|
-
state?: ConnectionState;
|
|
7
|
-
/** Optional React element to render in the middle (e.g. an icon) */
|
|
8
|
-
icon?: VNodeChild;
|
|
9
|
-
/** Width of the connector band in px (default: 56) */
|
|
10
|
-
width?: number;
|
|
11
|
-
/** Whether to animate the flowing dots (default: true) */
|
|
12
|
-
animated?: boolean;
|
|
13
|
-
/** target px per dot cycle (default: 60) */
|
|
14
|
-
dotSpacing?: number;
|
|
15
|
-
/** Connector ring border width (default: 'xs') */
|
|
16
|
-
borderSize?: "fit" | "xs" | "sm" | "md" | "lg";
|
|
17
|
-
/** Whether to draw half-rings (default: true) */
|
|
18
|
-
halfRing?: boolean;
|
|
19
|
-
/** Show the horizontal line between rings (default: true) */
|
|
20
|
-
showLine?: boolean;
|
|
21
|
-
/** Override — force the source-side ring tone instead of inheriting from source item */
|
|
22
|
-
sourceTone?: TreeTone;
|
|
23
|
-
/** Override — force the target-side ring tone instead of inheriting from this item */
|
|
24
|
-
targetTone?: TreeTone;
|
|
25
|
-
/** Source ring background fill color (CSS string, e.g. '#22c55e' or 'rgba(...)') */
|
|
26
|
-
sourceFill?: string;
|
|
27
|
-
/** Source ring stroke/border color */
|
|
28
|
-
sourceBorder?: string;
|
|
29
|
-
/** Source ring center dot color */
|
|
30
|
-
sourceDot?: string;
|
|
31
|
-
/** Target ring background fill color */
|
|
32
|
-
targetFill?: string;
|
|
33
|
-
/** Target ring stroke/border color */
|
|
34
|
-
targetBorder?: string;
|
|
35
|
-
/** Target ring center dot color */
|
|
36
|
-
targetDot?: string;
|
|
37
|
-
/** Animated dot color (overrides what is derived from targetTone) */
|
|
38
|
-
dotColor?: string;
|
|
39
|
-
/**
|
|
40
|
-
* When true, flowing dots are shown even when this connector's state is `'stopped'`
|
|
41
|
-
* (i.e. already-traversed / completed edges also animate).
|
|
42
|
-
* Default: false
|
|
43
|
-
*/
|
|
44
|
-
animateCompleted?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface ConnectionFlowItem {
|
|
47
|
-
id: string;
|
|
48
|
-
icon?: VNodeChild;
|
|
49
|
-
iconClassName?: string;
|
|
50
|
-
title?: VNodeChild;
|
|
51
|
-
titleClassName?: string;
|
|
52
|
-
/** When true, the card title wraps on word boundaries up to 10 lines instead of truncating. Default: false */
|
|
53
|
-
titleWrap?: boolean;
|
|
54
|
-
/** When true, the card title stays on one line and scrolls horizontally. Default: false */
|
|
55
|
-
titleScroll?: boolean;
|
|
56
|
-
subtitle?: VNodeChild;
|
|
57
|
-
subtitleClassName?: string;
|
|
58
|
-
description?: VNodeChild;
|
|
59
|
-
descriptionClassName?: string;
|
|
60
|
-
/** Optional badge/status slot rendered below description, without tone-derived text styling. */
|
|
61
|
-
badge?: VNodeChild;
|
|
62
|
-
tone?: TreeTone;
|
|
63
|
-
body?: VNodeChild;
|
|
64
|
-
defaultExpanded?: boolean;
|
|
65
|
-
actions?: VNodeChild;
|
|
66
|
-
hoverActions?: VNodeChild;
|
|
67
|
-
/**
|
|
68
|
-
* Connector config for the edge leading INTO this item.
|
|
69
|
-
* If not provided, inherits from the ConnectionFlow's default state.
|
|
70
|
-
* Ignored for the first item (it has no predecessor).
|
|
71
|
-
*/
|
|
72
|
-
connector?: ConnectionFlowConnectorConfig;
|
|
73
|
-
/**
|
|
74
|
-
* Children render vertically below this item's card using TreeView-style
|
|
75
|
-
* SVG connectors. The connector between this item and the next sibling
|
|
76
|
-
* spans the full column height (parent + children).
|
|
77
|
-
*/
|
|
78
|
-
children?: ConnectionFlowItem[];
|
|
79
|
-
/**
|
|
80
|
-
* When true, this item has NO right-side connector to the next sibling
|
|
81
|
-
* (it terminates the horizontal flow after itself).
|
|
82
|
-
* Default: false
|
|
83
|
-
*/
|
|
84
|
-
terminal?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Active state — drives the vertical sub-tree dot animation color.
|
|
87
|
-
* Default: false
|
|
88
|
-
*/
|
|
89
|
-
active?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* When true, this item is part of a parallel group. Consecutive items with
|
|
92
|
-
* parallel=true are rendered as a single vertical column instead of separate
|
|
93
|
-
* horizontal nodes. Fan-out (1→N) and fan-in (N→1) connectors are added automatically.
|
|
94
|
-
* Default: false
|
|
95
|
-
*/
|
|
96
|
-
parallel?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* When true, the card shows a subtle hover lift effect (shadow + translate-y).
|
|
99
|
-
* Default: false
|
|
100
|
-
*/
|
|
101
|
-
hoverable?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* When true, overlays a pulsing background animation on the card (uses the item's tone).
|
|
104
|
-
* Typically combined with `active: true` to indicate in-progress steps.
|
|
105
|
-
* Default: false
|
|
106
|
-
*/
|
|
107
|
-
activePulse?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* When true, this step was skipped — the execution flow bypassed it.
|
|
110
|
-
* A visual bypass arc is drawn from the last non-skipped predecessor to the
|
|
111
|
-
* first non-skipped successor, arching over all consecutive skipped items.
|
|
112
|
-
* Default: false
|
|
113
|
-
*/
|
|
114
|
-
skipped?: boolean;
|
|
115
|
-
}
|
|
116
|
-
export interface ConnectionFlowProps {
|
|
117
|
-
/** The nodes to render horizontally */
|
|
118
|
-
items: ConnectionFlowItem[];
|
|
119
|
-
/**
|
|
120
|
-
* Fallback state applied to any connector that doesn't have its own `state`.
|
|
121
|
-
* Default: 'flowing'
|
|
122
|
-
*/
|
|
123
|
-
flowState?: ConnectionState;
|
|
124
|
-
/**
|
|
125
|
-
* Fallback icon shown in the middle of connectors (overridden per-item).
|
|
126
|
-
*/
|
|
127
|
-
flowIcon?: VNodeChild;
|
|
128
|
-
/**
|
|
129
|
-
* Fallback connector width in px.
|
|
130
|
-
* Default: 56
|
|
131
|
-
*/
|
|
132
|
-
connectorWidth?: number;
|
|
133
|
-
/**
|
|
134
|
-
* Whether flowing-dot animation is enabled globally.
|
|
135
|
-
* Default: true
|
|
136
|
-
*/
|
|
137
|
-
animated?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Target px between dots globally.
|
|
140
|
-
* Default: 60
|
|
141
|
-
*/
|
|
142
|
-
dotSpacing?: number;
|
|
143
|
-
/**
|
|
144
|
-
* Ring border size globally.
|
|
145
|
-
* Default: 'xs'
|
|
146
|
-
*/
|
|
147
|
-
connectorBorderSize?: "fit" | "xs" | "sm" | "md" | "lg";
|
|
148
|
-
/**
|
|
149
|
-
* Draw half-rings (matching TreeView half-connector style).
|
|
150
|
-
* Default: true
|
|
151
|
-
*/
|
|
152
|
-
connectorHalf?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Show the horizontal line between connectors.
|
|
155
|
-
* Default: true
|
|
156
|
-
*/
|
|
157
|
-
showLine?: boolean;
|
|
158
|
-
/** Indent size for children sub-trees. Default: 'xs' */
|
|
159
|
-
childIndent?: "xs" | "sm" | "md" | "lg";
|
|
160
|
-
/** Row gap in px between children. Default: 8 */
|
|
161
|
-
childRowGap?: number;
|
|
162
|
-
/**
|
|
163
|
-
* If true, allows the flow to scroll horizontally/vertically if the container is smaller than the flow.
|
|
164
|
-
* Default: false
|
|
165
|
-
*/
|
|
166
|
-
allowScroll?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Set a fixed width for all items in the flow (e.g. 250, '300px').
|
|
169
|
-
* Primarily useful when `allowScroll` is enabled.
|
|
170
|
-
*/
|
|
171
|
-
itemWidth?: number | string;
|
|
172
|
-
/**
|
|
173
|
-
* When true, automatically scales the entire flow down to fit the container width.
|
|
174
|
-
* Once the scale would go below `minScale`, the flow is clamped and allowed to scroll.
|
|
175
|
-
* Default: false
|
|
176
|
-
*/
|
|
177
|
-
autoScale?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Minimum CSS scale factor applied when `autoScale` is true.
|
|
180
|
-
* Below this value the flow falls back to horizontal scroll instead of shrinking further.
|
|
181
|
-
* Default: 0.55
|
|
182
|
-
*/
|
|
183
|
-
minScale?: number;
|
|
184
|
-
/** Extra content to render to the right of the entire flow (e.g. an expand toggle) */
|
|
185
|
-
rightAction?: VNodeChild;
|
|
186
|
-
/**
|
|
187
|
-
* When true, connectors stretch to fill all remaining width instead of using a fixed
|
|
188
|
-
* pixel size. Card columns collapse to their natural content width. The connector icon
|
|
189
|
-
* is always positioned at the exact midpoint of the expanded connector.
|
|
190
|
-
* Default: false
|
|
191
|
-
*/
|
|
192
|
-
fullWidthConnectors?: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* When true, all cards in the flow show a hover lift effect.
|
|
195
|
-
* Default: false
|
|
196
|
-
*/
|
|
197
|
-
hoverable?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* When true, flowing dots are rendered on `'stopped'` (completed / already-traversed)
|
|
200
|
-
* connectors in addition to `'flowing'` ones. Bypass arcs over skipped steps always
|
|
201
|
-
* animate when `animated` is true, regardless of this flag.
|
|
202
|
-
* Default: false
|
|
203
|
-
*/
|
|
204
|
-
animateCompleted?: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* When true, the engine automatically manages connector states and skipped detection
|
|
207
|
-
* based purely on each item's `tone`:
|
|
208
|
-
*
|
|
209
|
-
* - **Connector state** (when no explicit `connector.state` is set):
|
|
210
|
-
* - Non-neutral source tone → `'stopped'` (solid toned line — step was traversed)
|
|
211
|
-
* - Neutral source tone → `'disabled'` (dashed gray — step not yet reached)
|
|
212
|
-
*
|
|
213
|
-
* - **Skipped detection**: a neutral-tone item that has at least one non-neutral
|
|
214
|
-
* successor is automatically treated as skipped — a bypass arc is drawn over it.
|
|
215
|
-
*
|
|
216
|
-
* Explicit per-item `connector.state` or `item.skipped` values always take precedence.
|
|
217
|
-
* Default: false
|
|
218
|
-
*/
|
|
219
|
-
autoConnectorState?: boolean;
|
|
220
|
-
}
|