@cjlapao/ui-kit-vue 0.2.0 → 0.2.3
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 +37732 -13285
- package/dist/index.js +31192 -21036
- 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/icons.d.ts +15 -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/paint.d.ts +36 -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 +941 -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/ConnectionFlowCanvas.vue.d.ts +28 -0
- 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 +67 -14
- 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
|
@@ -1,23 +1,159 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { type LaidOutNode } from "../../connectionFlow";
|
|
2
|
+
import { CONNECTION_FLOW_EDGE_STYLES, CONNECTION_FLOW_PROGRESS_TYPES, CONNECTION_FLOW_ITEM_PROGRESS, CONNECTION_FLOW_RING_SIZES, CONNECTION_STATES, type ConnectionFlowEdgeStyle, type ConnectionFlowItemProgress, type ConnectionFlowLoader, type ConnectionFlowNode, type ConnectionFlowProgressType, type ConnectionFlowRingSize, type ConnectionState } from "../../connectionFlow";
|
|
3
|
+
import type { ControlSize, PlainSurfaceVariant, SurfaceCorner, TrueColor } from "../../theme/Theme";
|
|
4
|
+
import type { PillVariant } from "../Pill.vue";
|
|
5
|
+
export { CONNECTION_FLOW_EDGE_STYLES, CONNECTION_FLOW_ITEM_PROGRESS, CONNECTION_FLOW_PROGRESS_TYPES, CONNECTION_FLOW_RING_SIZES, CONNECTION_STATES, };
|
|
6
|
+
export interface ConnectionFlowProps {
|
|
7
|
+
/** The graph. */
|
|
8
|
+
nodes: ConnectionFlowNode[];
|
|
9
|
+
/** Surface treatment of the frame. @default "outlined" */
|
|
10
|
+
variant?: PlainSurfaceVariant;
|
|
11
|
+
/** @default "neutral" */
|
|
12
|
+
tone?: TrueColor;
|
|
13
|
+
/** Node box scale, on the shared control scale. @default "md" */
|
|
14
|
+
size?: ControlSize;
|
|
15
|
+
/** Node corner radius, on the shared container scale. */
|
|
16
|
+
corner?: SurfaceCorner;
|
|
17
|
+
/** Shape of the edges. @default "orthogonal" */
|
|
18
|
+
edgeStyle?: ConnectionFlowEdgeStyle;
|
|
19
|
+
/**
|
|
20
|
+
* Surface treatment for the node cards, on the same container scale `Panel`
|
|
21
|
+
* takes. A node's own `variant` overrides it. @default "subtle"
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Rows a card shows before the rest collapse behind a "show more" row.
|
|
25
|
+
* A node's own `maxItems` overrides it. @default 2
|
|
26
|
+
*/
|
|
27
|
+
maxVisibleItems?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Where an item draws its progress: a bar under its text, or a spinner in
|
|
30
|
+
* place of its glyph. A node's `itemProgress`, then an item's
|
|
31
|
+
* `progressType`, override it. @default "bar"
|
|
32
|
+
*/
|
|
33
|
+
itemProgress?: ConnectionFlowItemProgress;
|
|
34
|
+
/**
|
|
35
|
+
* Size of the ring drawn where an edge meets a node. `fit` collapses the
|
|
36
|
+
* ring onto its core dot. @default "md"
|
|
37
|
+
*/
|
|
38
|
+
ringSize?: ConnectionFlowRingSize;
|
|
39
|
+
/** Fallback state for edges that do not declare one. @default "flowing" */
|
|
40
|
+
flowState?: ConnectionState;
|
|
41
|
+
/** Derive edge state and bypasses from each node's tone. @default false */
|
|
42
|
+
autoState?: boolean;
|
|
43
|
+
/** @default true */
|
|
44
|
+
animated?: boolean;
|
|
45
|
+
/** Target px between travelling dots. @default 40 */
|
|
46
|
+
/**
|
|
47
|
+
* How fast a travelling dot moves, in px per second. One speed for the whole
|
|
48
|
+
* graph: a dot's flight time comes from its route's own length, so a short
|
|
49
|
+
* hop and a long bypass arc move at the same pace. @default 120
|
|
50
|
+
*/
|
|
51
|
+
dotSpeed?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Milliseconds between one dot leaving a source and the next. A source
|
|
54
|
+
* releases one dot at a time, taking its outgoing edges in turn, so a fan
|
|
55
|
+
* reads as one source feeding its targets rather than as a swarm.
|
|
56
|
+
* @default 700
|
|
57
|
+
*/
|
|
58
|
+
dotInterval?: number;
|
|
59
|
+
/** Which in-progress indicator nodes draw. Only one is ever shown. @default "bar" */
|
|
60
|
+
progressType?: ConnectionFlowProgressType;
|
|
61
|
+
/** Dim everything that is not on the path to the hovered node. @default true */
|
|
62
|
+
highlightPath?: boolean;
|
|
63
|
+
/** Show the zoom / fit toolbar. @default true */
|
|
64
|
+
showControls?: boolean;
|
|
65
|
+
/** Scale the graph to fit on mount and on resize. @default true */
|
|
66
|
+
fitOnLoad?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Scale the graph to fit on first paint instead of opening at 100%.
|
|
69
|
+
*
|
|
70
|
+
* The viewport scrolls, so a graph larger than its frame is reachable
|
|
71
|
+
* without shrinking it to illegibility — which is what fitting a tall flow
|
|
72
|
+
* into a short frame does. @default false
|
|
73
|
+
*/
|
|
74
|
+
/** Allow scroll-wheel and drag panning. @default true */
|
|
75
|
+
interactive?: boolean;
|
|
76
|
+
minZoom?: number;
|
|
77
|
+
maxZoom?: number;
|
|
78
|
+
/** Fixed height of the viewport. @default 320 */
|
|
79
|
+
height?: number | string;
|
|
80
|
+
/** Header title. Rendered by the flow, not by the wrapping Panel. */
|
|
81
|
+
title?: string;
|
|
82
|
+
subtitle?: string;
|
|
83
|
+
/** Small uppercase line above the title. */
|
|
84
|
+
eyebrow?: string;
|
|
85
|
+
/** Registry icon name for the chip beside the title. */
|
|
86
|
+
icon?: string;
|
|
87
|
+
/** Corner of that chip, on the shared container scale. */
|
|
88
|
+
iconCorner?: SurfaceCorner;
|
|
89
|
+
/** Pill at the right of the header. */
|
|
90
|
+
tag?: string;
|
|
91
|
+
tagTone?: TrueColor;
|
|
92
|
+
tagVariant?: PillVariant;
|
|
93
|
+
/** Draw the header at all. @default true */
|
|
94
|
+
showHeader?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The flow's completion, 0–1. Defaults to the mean of whatever the nodes
|
|
97
|
+
* report — which a pipeline usually knows better than the average of its
|
|
98
|
+
* cards does.
|
|
99
|
+
*/
|
|
100
|
+
progress?: number;
|
|
101
|
+
/**
|
|
102
|
+
* How `loading` is shown. `skeleton` is the default because it is the only
|
|
103
|
+
* one that holds the card's shape. @default "skeleton"
|
|
104
|
+
*/
|
|
105
|
+
loaderType?: ConnectionFlowLoader;
|
|
106
|
+
loading?: boolean;
|
|
107
|
+
/** Message shown when `nodes` is empty. */
|
|
108
|
+
emptyMessage?: string;
|
|
109
|
+
}
|
|
110
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ConnectionFlowProps, {
|
|
111
|
+
zoomIn: () => void;
|
|
112
|
+
zoomOut: () => void;
|
|
113
|
+
fit: () => void;
|
|
114
|
+
setZoom: (value: number, anchor?: {
|
|
115
|
+
x: number;
|
|
116
|
+
y: number;
|
|
117
|
+
}) => void;
|
|
118
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
119
|
+
nodeClick: (node: ConnectionFlowNode) => any;
|
|
120
|
+
nodeHover: (node: ConnectionFlowNode | null) => any;
|
|
121
|
+
zoomChange: (scale: number) => any;
|
|
122
|
+
}, string, import("vue").PublicProps, Readonly<ConnectionFlowProps> & Readonly<{
|
|
123
|
+
onNodeClick?: ((node: ConnectionFlowNode) => any) | undefined;
|
|
124
|
+
onNodeHover?: ((node: ConnectionFlowNode | null) => any) | undefined;
|
|
125
|
+
onZoomChange?: ((scale: number) => any) | undefined;
|
|
126
|
+
}>, {
|
|
127
|
+
interactive: boolean;
|
|
128
|
+
height: number | string;
|
|
129
|
+
size: ControlSize;
|
|
130
|
+
loading: boolean;
|
|
131
|
+
tone: TrueColor;
|
|
132
|
+
variant: PlainSurfaceVariant;
|
|
133
|
+
corner: SurfaceCorner;
|
|
3
134
|
animated: boolean;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
135
|
+
loaderType: ConnectionFlowLoader;
|
|
136
|
+
showHeader: boolean;
|
|
137
|
+
edgeStyle: ConnectionFlowEdgeStyle;
|
|
138
|
+
ringSize: ConnectionFlowRingSize;
|
|
139
|
+
maxVisibleItems: number;
|
|
140
|
+
itemProgress: ConnectionFlowItemProgress;
|
|
141
|
+
dotSpeed: number;
|
|
142
|
+
dotInterval: number;
|
|
143
|
+
iconCorner: SurfaceCorner;
|
|
144
|
+
tagVariant: PillVariant;
|
|
145
|
+
progressType: ConnectionFlowProgressType;
|
|
12
146
|
flowState: ConnectionState;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
147
|
+
autoState: boolean;
|
|
148
|
+
highlightPath: boolean;
|
|
149
|
+
showControls: boolean;
|
|
150
|
+
fitOnLoad: boolean;
|
|
151
|
+
minZoom: number;
|
|
152
|
+
maxZoom: number;
|
|
19
153
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
20
|
-
|
|
154
|
+
node?: (props: {
|
|
155
|
+
node: LaidOutNode;
|
|
156
|
+
}) => any;
|
|
21
157
|
}>;
|
|
22
158
|
export default _default;
|
|
23
159
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ConnectionFlowLayout, type LaidOutNode } from "../../connectionFlow";
|
|
2
|
+
import type { ColorScheme } from "../../connectionFlow";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
layout: ConnectionFlowLayout;
|
|
5
|
+
scheme: ColorScheme;
|
|
6
|
+
radius: number;
|
|
7
|
+
titleSize: number;
|
|
8
|
+
bodySize: number;
|
|
9
|
+
padding: number;
|
|
10
|
+
dotSpacing: number;
|
|
11
|
+
showProgress: boolean;
|
|
12
|
+
animated: boolean;
|
|
13
|
+
highlightNodes: Set<string>;
|
|
14
|
+
highlightEdges: Set<string>;
|
|
15
|
+
hoveredId: string | null;
|
|
16
|
+
selectedId: string | null;
|
|
17
|
+
scale: number;
|
|
18
|
+
offsetX: number;
|
|
19
|
+
offsetY: number;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
select: (node: LaidOutNode) => any;
|
|
23
|
+
hover: (node: LaidOutNode | null) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onSelect?: ((node: LaidOutNode) => any) | undefined;
|
|
26
|
+
onHover?: ((node: LaidOutNode | null) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ConnectionFlowProgressType } from "../../connectionFlow";
|
|
2
|
+
import { type SurfaceCorner, type SurfaceVariant, type TrueColor } from "../../theme/Theme";
|
|
3
|
+
import type { PillVariant } from "../Pill.vue";
|
|
4
|
+
/**
|
|
5
|
+
* The frame's header: eyebrow, icon, title, tag, and the flow's own progress
|
|
6
|
+
* directly beneath them.
|
|
7
|
+
*
|
|
8
|
+
* Built here rather than handed to `Panel` for two reasons: Panel's header
|
|
9
|
+
* carries no icon chip and no progress, and `variant="plain"` renders no Panel
|
|
10
|
+
* at all — so the header has to belong to the flow either way.
|
|
11
|
+
*/
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
variant: SurfaceVariant;
|
|
14
|
+
tone: TrueColor;
|
|
15
|
+
eyebrow?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
/** A registry icon name. */
|
|
19
|
+
icon?: string;
|
|
20
|
+
iconCorner: SurfaceCorner;
|
|
21
|
+
tag?: string;
|
|
22
|
+
tagTone?: TrueColor;
|
|
23
|
+
tagVariant: PillVariant;
|
|
24
|
+
/** 0–1, or undefined when nothing reports progress. */
|
|
25
|
+
progress?: number;
|
|
26
|
+
progressType: ConnectionFlowProgressType;
|
|
27
|
+
animated: boolean;
|
|
28
|
+
loading?: boolean;
|
|
29
|
+
};
|
|
30
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
31
|
+
loading: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ConnectionFlowLayoutOptions, LaidOutNode, NodeMetrics } from "../../connectionFlow";
|
|
2
|
+
/**
|
|
3
|
+
* The default contents of a node card.
|
|
4
|
+
*
|
|
5
|
+
* Rendered at its natural size and scaled by one transform on the wrapper, so
|
|
6
|
+
* type, padding, gaps and the progress bar all zoom together — and, more
|
|
7
|
+
* importantly, the height the DOM produces here is the same number
|
|
8
|
+
* `measureNode` computed, at any zoom. Scaling each property individually left
|
|
9
|
+
* the bar and the glyph at a fixed size while the box shrank.
|
|
10
|
+
*
|
|
11
|
+
* Every dimension comes from `metrics`. The previous version hardcoded
|
|
12
|
+
* `text-[13px]`, `text-[11px]` and a 10px inset, so `size` changed the box and
|
|
13
|
+
* nothing inside it.
|
|
14
|
+
*/
|
|
15
|
+
type __VLS_Props = {
|
|
16
|
+
node: LaidOutNode;
|
|
17
|
+
metrics: NodeMetrics;
|
|
18
|
+
/** Whether a node's own progress bar is drawn. */
|
|
19
|
+
showProgress: boolean;
|
|
20
|
+
/** The resolved layout options, for the item cap. */
|
|
21
|
+
options: ConnectionFlowLayoutOptions;
|
|
22
|
+
/** Whether the card's body scrolls, which changes how it fills the box. */
|
|
23
|
+
scrollable?: boolean;
|
|
24
|
+
/** Nodes whose item list is expanded. */
|
|
25
|
+
expanded: ReadonlySet<string>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
toggleExpanded: (id: string) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onToggleExpanded?: ((id: string) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NodeMetrics } from "../../connectionFlow";
|
|
2
|
+
import type { SurfaceVariant } from "../../theme/Theme";
|
|
3
|
+
/**
|
|
4
|
+
* Placeholder cards in a plain chain, at the real card size.
|
|
5
|
+
*
|
|
6
|
+
* Shaped from `NodeMetrics` rather than guessed, so the frame holds the height
|
|
7
|
+
* a real graph would need and nothing jumps when the data lands.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
variant: SurfaceVariant;
|
|
11
|
+
metrics: NodeMetrics;
|
|
12
|
+
/** Placeholder cards to draw. @default 4 */
|
|
13
|
+
count?: number;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
count: number;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ConnectionFlowLayout, ConnectionFlowLayoutOptions, LaidOutNode, NodeMetrics } from "../../connectionFlow";
|
|
2
|
+
import type { SurfaceVariant } from "../../theme/Theme";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
layout: ConnectionFlowLayout;
|
|
5
|
+
/** Px per second every dot travels at. */
|
|
6
|
+
dotSpeed: number;
|
|
7
|
+
/** Milliseconds between one dot leaving a source and the next. */
|
|
8
|
+
dotInterval: number;
|
|
9
|
+
/** Every number the card body is built from. */
|
|
10
|
+
metrics: NodeMetrics;
|
|
11
|
+
/** The resolved layout options, for the item cap. */
|
|
12
|
+
options: ConnectionFlowLayoutOptions;
|
|
13
|
+
/** Nodes whose item list is expanded. */
|
|
14
|
+
expanded: ReadonlySet<string>;
|
|
15
|
+
/**
|
|
16
|
+
* The surface the cards take. Resolved from the flow's own `variant` — a
|
|
17
|
+
* card sitting inside a panel is part of that panel, not a second surface
|
|
18
|
+
* language layered on top of it.
|
|
19
|
+
*/
|
|
20
|
+
variant: SurfaceVariant;
|
|
21
|
+
showProgress: boolean;
|
|
22
|
+
animated: boolean;
|
|
23
|
+
highlightNodes: Set<string>;
|
|
24
|
+
highlightEdges: Set<string>;
|
|
25
|
+
hoveredId: string | null;
|
|
26
|
+
selectedId: string | null;
|
|
27
|
+
scale: number;
|
|
28
|
+
offsetX: number;
|
|
29
|
+
offsetY: number;
|
|
30
|
+
};
|
|
31
|
+
declare var __VLS_1: {
|
|
32
|
+
node: LaidOutNode;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Slots = {} & {
|
|
35
|
+
node?: (props: typeof __VLS_1) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
select: (node: LaidOutNode) => any;
|
|
39
|
+
hover: (node: LaidOutNode | null) => any;
|
|
40
|
+
toggleExpanded: (id: string) => any;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
|
+
onSelect?: ((node: LaidOutNode) => any) | undefined;
|
|
43
|
+
onHover?: ((node: LaidOutNode | null) => any) | undefined;
|
|
44
|
+
onToggleExpanded?: ((id: string) => any) | undefined;
|
|
45
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export { default as ConnectionFlow } from "./ConnectionFlow.vue";
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export
|
|
2
|
+
export { default as ConnectionFlowSvg } from "./ConnectionFlowSvg.vue";
|
|
3
|
+
export { default as ConnectionFlowNodeBody } from "./ConnectionFlowNodeBody.vue";
|
|
4
|
+
export { default as ConnectionFlowHeader } from "./ConnectionFlowHeader.vue";
|
|
5
|
+
export { default as ConnectionFlowSkeleton } from "./ConnectionFlowSkeleton.vue";
|
|
6
|
+
export type { ConnectionFlowProps } from "./ConnectionFlow.vue";
|
|
7
|
+
/**
|
|
8
|
+
* The model, the layout engine and the painter are framework-agnostic and live
|
|
9
|
+
* in `common/connectionFlow`, so the React kit consumes exactly the same
|
|
10
|
+
* geometry rather than a second implementation of it.
|
|
11
|
+
*/
|
|
12
|
+
export { CONNECTION_FLOW_EDGE_STYLES, CONNECTION_FLOW_NODE_KINDS, CONNECTION_FLOW_PROGRESS_TYPES, CONNECTION_FLOW_ITEM_PROGRESS, CONNECTION_FLOW_LOADERS, CONNECTION_FLOW_RING_SIZES, CONNECTION_FLOW_STATUSES, CONNECTION_STATES, CONNECTOR_RING_RADIUS, STATUS_ICON, STATUS_TONE, DEFAULT_LAYOUT_OPTIONS, NODE_CORNER_RADIUS, NODE_METRICS, itemGlyph, itemHasBar, itemTone, itemsReserveGlyph, measureBranch, measureHeader, measureItem, measureItems, measureNode, visibleItems, buildColumns, connectorDotRadius, connectorVisual, fitToViewport, flowProgress, getHeaderSurface, getNodeSurface, headerGlyph, headerReservesGlyph, nodeProgress, getToneClasses, hitTestNode, layoutConnectionFlow, labelAnchor, layoutIsAnimated, nodeIcon, nodeIsActive, nodeIsSkipped, nodeTone, tracePathTo, type ConnectionFlowEdgeStyle, type ConnectionFlowLayout, type ConnectionFlowNode, type ConnectionFlowNodeKind, type ConnectionFlowProgressType, type ConnectionFlowStatus, type ConnectionFlowRingSize, type ConnectionFlowConnectorConfig, type ConnectionState, type ConnectorVisual, type LaidOutConnector, type NodeSurface, type LaidOutEdge, type LaidOutNode, type ConnectionFlowItemProgress, type ConnectionFlowLoader, type ConnectionFlowNodeItem, type ItemGlyph, type HeaderGlyph, type HeaderSurface, type NodeMetrics, } from "../../connectionFlow";
|
|
@@ -1,24 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IconName } from "../icons/registry";
|
|
2
2
|
import type { IconSize } from "../types/Icon";
|
|
3
|
+
import type { TrueColor } from "../theme/Theme";
|
|
3
4
|
export interface CustomIconProps {
|
|
4
|
-
/** Name of the icon to display */
|
|
5
|
+
/** Name of the icon to display. */
|
|
5
6
|
icon: IconName;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Accessible name. Omit it and the icon is treated as decoration and hidden
|
|
9
|
+
* from assistive technology — which is right for an icon sitting beside a
|
|
10
|
+
* label, and wrong for one standing on its own.
|
|
11
|
+
*/
|
|
7
12
|
alt?: string;
|
|
8
|
-
/**
|
|
13
|
+
/** Explicit size in pixels or any CSS length, overriding `size`. */
|
|
9
14
|
customSize?: number | string;
|
|
10
|
-
/** Size
|
|
15
|
+
/** Size on the shared control scale. @default "md" */
|
|
11
16
|
size?: IconSize;
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
/**
|
|
17
|
+
/** Theme colour. Ignored when `colored` is set. */
|
|
18
|
+
tone?: TrueColor;
|
|
19
|
+
/**
|
|
20
|
+
* Raw CSS colour, for a value outside the palette. Wins over `tone`.
|
|
21
|
+
* Ignored when `colored` is set.
|
|
22
|
+
*/
|
|
15
23
|
color?: string;
|
|
16
|
-
/**
|
|
24
|
+
/** Raw CSS colour on hover. Ignored when `colored` is set. */
|
|
17
25
|
hoverColor?: string;
|
|
26
|
+
/** Keep the icon's own colours instead of tinting it. */
|
|
27
|
+
colored?: boolean;
|
|
28
|
+
/** Spins the icon. Respects `prefers-reduced-motion`. */
|
|
29
|
+
spin?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Makes the icon activatable. It renders as a real `<button>` so it is
|
|
32
|
+
* reachable by keyboard.
|
|
33
|
+
*/
|
|
34
|
+
clickable?: boolean;
|
|
35
|
+
disabled?: boolean;
|
|
18
36
|
}
|
|
19
|
-
declare const _default: import("vue").DefineComponent<CustomIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
37
|
+
declare const _default: import("vue").DefineComponent<CustomIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
38
|
+
click: (payload: MouseEvent) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<CustomIconProps> & Readonly<{
|
|
40
|
+
onClick?: ((payload: MouseEvent) => any) | undefined;
|
|
41
|
+
}>, {
|
|
20
42
|
size: IconSize;
|
|
21
|
-
alt: string;
|
|
22
43
|
colored: boolean;
|
|
44
|
+
spin: boolean;
|
|
45
|
+
clickable: boolean;
|
|
46
|
+
disabled: boolean;
|
|
23
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
48
|
export default _default;
|
|
@@ -1,19 +1,51 @@
|
|
|
1
|
+
import type { PanelCorner, PanelPadding, PanelSpecularMode } from "./Panel.vue";
|
|
2
|
+
import type { GlassOpacity, GlassVibrancy } from "../theme/glass";
|
|
3
|
+
import type { PlainSurfaceVariant, TrueColor } from "../theme/Theme";
|
|
4
|
+
/** Every container surface, plus `plain` for a bare row inside a list. */
|
|
5
|
+
export type DetailItemCardVariant = PlainSurfaceVariant;
|
|
6
|
+
export type DetailItemCardBadgesAlignment = "right" | "bottom" | "bottom-end";
|
|
1
7
|
export interface DetailItemCardProps {
|
|
2
8
|
title: string;
|
|
3
9
|
subtitle?: string;
|
|
4
10
|
description?: string;
|
|
11
|
+
/** Icon shown before the title. */
|
|
12
|
+
icon?: string;
|
|
13
|
+
/** @default "right" */
|
|
14
|
+
badgesAlignment?: DetailItemCardBadgesAlignment;
|
|
5
15
|
defaultExpanded?: boolean;
|
|
6
|
-
|
|
16
|
+
/** Controlled expansion. Pair with the `toggle` event. */
|
|
17
|
+
expanded?: boolean;
|
|
18
|
+
/** Makes the whole row activatable, keyboard included. */
|
|
19
|
+
clickable?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** @default "plain" — this is normally a row inside a list. */
|
|
22
|
+
variant?: DetailItemCardVariant;
|
|
23
|
+
tone?: TrueColor;
|
|
24
|
+
corner?: PanelCorner;
|
|
25
|
+
padding?: PanelPadding;
|
|
26
|
+
glassOpacity?: GlassOpacity;
|
|
27
|
+
vibrancy?: GlassVibrancy;
|
|
28
|
+
specularMode?: PanelSpecularMode;
|
|
7
29
|
}
|
|
8
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DetailItemCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
30
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DetailItemCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
31
|
+
toggle: (expanded: boolean) => any;
|
|
32
|
+
select: () => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<DetailItemCardProps> & Readonly<{
|
|
34
|
+
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
35
|
+
onSelect?: (() => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
tone: TrueColor;
|
|
38
|
+
clickable: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
variant: DetailItemCardVariant;
|
|
41
|
+
corner: PanelCorner;
|
|
42
|
+
padding: PanelPadding;
|
|
9
43
|
defaultExpanded: boolean;
|
|
10
|
-
badgesAlignment:
|
|
44
|
+
badgesAlignment: DetailItemCardBadgesAlignment;
|
|
11
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
46
|
badges?: (props: {}) => any;
|
|
13
47
|
} & {
|
|
14
48
|
badges?: (props: {}) => any;
|
|
15
|
-
} & {
|
|
16
|
-
badges?: (props: {}) => any;
|
|
17
49
|
} & {
|
|
18
50
|
default?: (props: {}) => any;
|
|
19
51
|
}>;
|
|
@@ -24,10 +24,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DropdownBu
|
|
|
24
24
|
onPrimaryClick?: ((event: MouseEvent) => any) | undefined;
|
|
25
25
|
onOptionSelect?: ((option: DropdownButtonOption) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
color: import("..").TrueColor;
|
|
28
|
-
variant: import("./Button.vue").ButtonVariant;
|
|
29
|
-
split: boolean;
|
|
30
27
|
size: ButtonSize;
|
|
28
|
+
color: import("./Gantt").TrueColor;
|
|
29
|
+
split: boolean;
|
|
30
|
+
variant: import("./Button.vue").ButtonVariant;
|
|
31
31
|
fullWidth: boolean;
|
|
32
32
|
dropdownIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
33
|
[key: string]: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -26,8 +26,8 @@ declare const _default: import("vue").DefineComponent<DropdownMenuProps, {}, {},
|
|
|
26
26
|
onClose?: (() => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
width: number | "trigger";
|
|
29
|
-
align: "start" | "end";
|
|
30
29
|
side: "auto" | "top" | "bottom";
|
|
30
|
+
align: "start" | "end";
|
|
31
31
|
maxHeight: number;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,72 @@
|
|
|
1
|
-
import type
|
|
2
|
-
type
|
|
1
|
+
import { type ControlSize, type InputVariant, type SurfaceCorner, type SurfacePadding, type TrueColor } from "../theme/Theme";
|
|
2
|
+
import type { KeyValuePair } from "./KeyValueArrayField.vue";
|
|
3
|
+
import type { CapsuleBlueprintParameter } from "../../../common/types/CapsuleBlueprint";
|
|
4
|
+
/**
|
|
5
|
+
* Every container surface, plus `plain` for a field dropped into a form the
|
|
6
|
+
* app already frames. A form of these used to force one bordered card per
|
|
7
|
+
* parameter, with no way to turn it off.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DYNAMIC_FORM_FIELD_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
10
|
+
export type DynamicFormFieldVariant = (typeof DYNAMIC_FORM_FIELD_VARIANTS)[number];
|
|
11
|
+
/**
|
|
12
|
+
* Everything a blueprint parameter can hold.
|
|
13
|
+
*
|
|
14
|
+
* `string | boolean` before this, which is why `List` and `Map` could not be
|
|
15
|
+
* rendered at all — the two value types that fell through to an empty card.
|
|
16
|
+
*/
|
|
17
|
+
export type DynamicFormFieldValue = string | number | boolean | string[] | KeyValuePair[];
|
|
18
|
+
export interface DynamicFormFieldOption {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
3
23
|
export interface DynamicFormFieldProps {
|
|
4
24
|
parameter: CapsuleBlueprintParameter;
|
|
5
|
-
value
|
|
25
|
+
value?: DynamicFormFieldValue;
|
|
6
26
|
error?: string;
|
|
7
27
|
isVisible?: boolean;
|
|
28
|
+
/** Scale of the control, its label and its notes. @default "md" */
|
|
29
|
+
size?: ControlSize;
|
|
30
|
+
/** Surface of the card around the field. @default "outlined" */
|
|
31
|
+
variant?: DynamicFormFieldVariant;
|
|
32
|
+
tone?: TrueColor;
|
|
33
|
+
corner?: SurfaceCorner;
|
|
34
|
+
/** @default "md" */
|
|
35
|
+
padding?: SurfacePadding;
|
|
36
|
+
/** Entry style of the control itself. @default "flat" */
|
|
37
|
+
inputVariant?: InputVariant;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
readOnly?: boolean;
|
|
40
|
+
/** Heading of the expanding help block. @default "What is this?" */
|
|
41
|
+
helpTitle?: string;
|
|
42
|
+
/** Tone of that block. Defaults to the field's own tone. */
|
|
43
|
+
helpTone?: TrueColor;
|
|
44
|
+
/** Rows shown by a free-form `List` before it scrolls. @default 4 */
|
|
45
|
+
listRows?: number;
|
|
8
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Options come off a blueprint in three shapes, all typed `any`.
|
|
49
|
+
*
|
|
50
|
+
* `{ label }` is accepted alongside `{ value }` because that is what most
|
|
51
|
+
* callers write; the original mapping — label from `value`, value from `key` —
|
|
52
|
+
* is kept so existing blueprints keep resolving the same way.
|
|
53
|
+
*/
|
|
54
|
+
export declare const normalizeOptions: (options: CapsuleBlueprintParameter["options"]) => DynamicFormFieldOption[];
|
|
9
55
|
declare const _default: import("vue").DefineComponent<DynamicFormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (serviceName: string, key: string, value:
|
|
56
|
+
change: (serviceName: string, key: string, value: DynamicFormFieldValue, triggerDependencyEvaluation: boolean) => any;
|
|
11
57
|
}, string, import("vue").PublicProps, Readonly<DynamicFormFieldProps> & Readonly<{
|
|
12
|
-
onChange?: ((serviceName: string, key: string, value:
|
|
58
|
+
onChange?: ((serviceName: string, key: string, value: DynamicFormFieldValue, triggerDependencyEvaluation: boolean) => any) | undefined;
|
|
13
59
|
}>, {
|
|
60
|
+
size: ControlSize;
|
|
61
|
+
tone: TrueColor;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
variant: DynamicFormFieldVariant;
|
|
64
|
+
corner: SurfaceCorner;
|
|
65
|
+
padding: SurfacePadding;
|
|
66
|
+
readOnly: boolean;
|
|
14
67
|
isVisible: boolean;
|
|
68
|
+
inputVariant: InputVariant;
|
|
69
|
+
helpTitle: string;
|
|
70
|
+
listRows: number;
|
|
15
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
72
|
export default _default;
|
|
@@ -1,11 +1,36 @@
|
|
|
1
|
+
import type { ControlSize, TrueColor } from "../theme/Theme";
|
|
2
|
+
export type DynamicImgSize = ControlSize;
|
|
1
3
|
export interface DynamicImgProps {
|
|
2
|
-
|
|
4
|
+
/**
|
|
5
|
+
* A data URL (`data:image/svg+xml;base64,…`, PNG, JPEG, GIF, WebP, AVIF) or
|
|
6
|
+
* raw `<svg>` markup.
|
|
7
|
+
*/
|
|
8
|
+
src?: string;
|
|
9
|
+
/** @deprecated Use `src`. Accepts the same values. */
|
|
10
|
+
base64?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Accessible name. Omit it and the image is treated as decoration and hidden
|
|
13
|
+
* from assistive technology — the old `alt="Dynamic Image"` was neither a
|
|
14
|
+
* useful name nor a way to opt out.
|
|
15
|
+
*/
|
|
16
|
+
alt?: string;
|
|
17
|
+
/** Icon shown when there is nothing to render, or the SVG is rejected. */
|
|
18
|
+
fallbackIcon?: string;
|
|
19
|
+
/** @default "md" */
|
|
20
|
+
size?: DynamicImgSize;
|
|
21
|
+
/** Theme colour for a recoloured SVG. */
|
|
22
|
+
tone?: TrueColor;
|
|
23
|
+
/** Raw fill colour for an SVG. Defaults to `currentColor`. */
|
|
3
24
|
fill?: string;
|
|
25
|
+
/** Raw stroke colour for an SVG. Defaults to `currentColor`. */
|
|
4
26
|
stroke?: string;
|
|
27
|
+
/** Keep the SVG's own colours instead of recolouring it. */
|
|
28
|
+
colored?: boolean;
|
|
5
29
|
title?: string;
|
|
6
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
7
30
|
}
|
|
8
31
|
declare const _default: import("vue").DefineComponent<DynamicImgProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DynamicImgProps> & Readonly<{}>, {
|
|
9
|
-
size:
|
|
32
|
+
size: DynamicImgSize;
|
|
33
|
+
colored: boolean;
|
|
34
|
+
fallbackIcon: string;
|
|
10
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
36
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|