@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,79 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SmartVariable, SmartVariableDefinition, SmartVariableGroup, SmartVariableResolver, SmartVariableSource, SmartVariableType } from "../types/Variables";
|
|
2
|
+
/**
|
|
3
|
+
* Matches `{{ type::source::name }}`.
|
|
4
|
+
* Captures: 1 = type, 2 = source, 3 = name.
|
|
5
|
+
*
|
|
6
|
+
* `source` is an open identifier now — it used to be the literal alternation
|
|
7
|
+
* `global|system|service`, so a caller with its own groups produced tokens the
|
|
8
|
+
* kit silently refused to recognise.
|
|
9
|
+
*/
|
|
2
10
|
export declare const SMART_VAR_REGEX: RegExp;
|
|
3
|
-
export declare const parseSmartVariable: (token: string) => SmartVariable | null;
|
|
4
11
|
export declare const createSmartToken: (type: SmartVariableType, source: SmartVariableSource, name: string) => string;
|
|
12
|
+
export declare const parseSmartVariable: (token: string) => SmartVariable | null;
|
|
13
|
+
/** Every distinct token in a string, in order of first appearance. */
|
|
14
|
+
export declare const extractVariables: (text: string) => SmartVariable[];
|
|
15
|
+
export declare const hasSmartVariables: (text: string) => boolean;
|
|
16
|
+
export type SmartValuePart = {
|
|
17
|
+
kind: "text";
|
|
18
|
+
text: string;
|
|
19
|
+
index: number;
|
|
20
|
+
} | {
|
|
21
|
+
kind: "token";
|
|
22
|
+
variable: SmartVariable;
|
|
23
|
+
index: number;
|
|
24
|
+
};
|
|
5
25
|
/**
|
|
6
|
-
*
|
|
26
|
+
* Splits a value into literal text and tokens, once, for every renderer.
|
|
27
|
+
*
|
|
28
|
+
* `SmartInput`, `SmartValue`, `MarkdownEditor` and the Vue twins each carried
|
|
29
|
+
* their own copy of this `while (regex.exec(...))` loop plus its own badge
|
|
30
|
+
* palette, and they had already drifted — one required the token's type to
|
|
31
|
+
* match the definition's, another ignored it.
|
|
7
32
|
*/
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
export declare const splitSmartValue: (value: string) => SmartValuePart[];
|
|
34
|
+
/** Turns one group's definitions into insertable tokens. */
|
|
35
|
+
export declare const groupToVariables: (group: SmartVariableGroup) => SmartVariable[];
|
|
36
|
+
export declare const toSmartVariable: (source: SmartVariableSource, definition: SmartVariableDefinition) => SmartVariable;
|
|
37
|
+
/**
|
|
38
|
+
* Finds the definition a token refers to. Matches on the group id and key,
|
|
39
|
+
* falling back to a case-insensitive key match — token names are typed by
|
|
40
|
+
* hand and case slips are the common failure.
|
|
41
|
+
*/
|
|
42
|
+
export declare const findDefinition: (groups: SmartVariableGroup[], variable: SmartVariable) => {
|
|
43
|
+
group: SmartVariableGroup;
|
|
44
|
+
definition: SmartVariableDefinition;
|
|
45
|
+
} | null;
|
|
46
|
+
/**
|
|
47
|
+
* The resolver used when the caller supplies none: looks the token up in the
|
|
48
|
+
* groups and reports its `value`, then its `defaultValue`, then `missing`.
|
|
49
|
+
*
|
|
50
|
+
* Product rules — derived values, environment lookups, host names — belong in
|
|
51
|
+
* a caller-supplied resolver, not here. The kit used to hard-code one
|
|
52
|
+
* product's domain name and runtime-variable allow-list into this function.
|
|
53
|
+
*/
|
|
54
|
+
export declare const createDefaultResolver: (groups: SmartVariableGroup[]) => SmartVariableResolver;
|
|
55
|
+
/** Resolves every token in a value, for counters and validation. */
|
|
56
|
+
export declare const resolveSmartValue: (value: string, resolve: SmartVariableResolver) => {
|
|
57
|
+
text: string;
|
|
58
|
+
missing: SmartVariable[];
|
|
22
59
|
};
|
|
23
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Builds the three groups the components used to hard-code, from the old
|
|
62
|
+
* `globalParameters` / `serviceNames` props.
|
|
63
|
+
*
|
|
64
|
+
* @deprecated Pass `groups` directly. Kept so call sites written against the
|
|
65
|
+
* previous API keep working while they migrate.
|
|
66
|
+
*/
|
|
67
|
+
export declare const createLegacyGroups: (options: {
|
|
68
|
+
globalParameters?: Array<{
|
|
69
|
+
key: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
type?: string;
|
|
72
|
+
help?: string;
|
|
73
|
+
default?: unknown;
|
|
74
|
+
default_value?: string;
|
|
75
|
+
[extra: string]: unknown;
|
|
76
|
+
}>;
|
|
77
|
+
serviceNames?: string[];
|
|
78
|
+
systemVariables?: SmartVariable[];
|
|
79
|
+
}) => SmartVariableGroup[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { TableSettings } from "../types/TableSettings";
|
|
2
|
+
/**
|
|
3
|
+
* Built-in table settings persistence.
|
|
4
|
+
*
|
|
5
|
+
* The kit's Table exposes `storageKey`; when set, the table reads its
|
|
6
|
+
* settings once on mount and writes the full snapshot after every change.
|
|
7
|
+
* This module is framework-agnostic so the React and Vue kits share one
|
|
8
|
+
* envelope format and one validation pass.
|
|
9
|
+
*
|
|
10
|
+
* The default backend is a best-effort localStorage wrapper: it swallows
|
|
11
|
+
* quota errors, private-mode rejections and SSR (no `window`) so persistence
|
|
12
|
+
* can never crash a render. Any `Storage`-shaped object (sessionStorage, a
|
|
13
|
+
* test mock, an IndexedDB adapter) can be passed in its place.
|
|
14
|
+
*/
|
|
15
|
+
import { createSafeLocalStorage, type KitStorageAdapter } from "./safeStorage";
|
|
16
|
+
/**
|
|
17
|
+
* The storage backend and key builder now live in `safeStorage.ts`, shared
|
|
18
|
+
* with `SmartGridLayout`. Re-exported here under their original names so
|
|
19
|
+
* `Table` and its tests are untouched.
|
|
20
|
+
*/
|
|
21
|
+
export type TableStorageAdapter = KitStorageAdapter;
|
|
22
|
+
export { createSafeLocalStorage };
|
|
23
|
+
/** Default key prefix so table entries never collide with app keys. */
|
|
24
|
+
export declare const TABLE_STORAGE_DEFAULT_PREFIX = "ui-kit:table";
|
|
25
|
+
/** Envelope version. Bump when the settings shape changes incompatibly. */
|
|
26
|
+
export declare const TABLE_SETTINGS_STORAGE_VERSION = 1;
|
|
27
|
+
export interface TableStoredSettings {
|
|
28
|
+
v: number;
|
|
29
|
+
settings: TableSettings;
|
|
30
|
+
}
|
|
31
|
+
export declare const buildTableStorageKey: (prefix: string, storageKey: string) => string;
|
|
32
|
+
export declare const encodeStoredSettings: (settings: TableSettings) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Parse and validate a stored value. Returns `null` for anything that is not
|
|
35
|
+
* a current-version settings object — the component then falls back to its
|
|
36
|
+
* prop-provided defaults rather than rendering against garbage.
|
|
37
|
+
*/
|
|
38
|
+
export declare const decodeStoredSettings: (raw: string | null) => TableSettings | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { type VNode, type VNodeChild } from "vue";
|
|
1
2
|
import type { TableVariant } from "./Table.vue";
|
|
2
3
|
import type { PanelTone } from "./Panel.vue";
|
|
4
|
+
import type { TableDensity, SurfaceCorner } from "../theme";
|
|
3
5
|
export interface AccessMatrixPermission {
|
|
4
6
|
group: string;
|
|
5
7
|
resource: string;
|
|
@@ -12,12 +14,27 @@ export interface AccessMatrixProps {
|
|
|
12
14
|
limit?: number;
|
|
13
15
|
variant?: TableVariant;
|
|
14
16
|
tone?: PanelTone;
|
|
17
|
+
/** Forwards to Table: row-height density scale. */
|
|
18
|
+
density?: TableDensity;
|
|
19
|
+
/** Forwards to Table: draw the vertical grid lines between columns. */
|
|
20
|
+
bordered?: boolean;
|
|
21
|
+
/** Forwards to Table: the panel corner radius. */
|
|
22
|
+
corner?: SurfaceCorner;
|
|
15
23
|
striped?: boolean;
|
|
16
24
|
/** Forwards to Table: remove inner row borders/dividers. */
|
|
17
25
|
noBorders?: boolean;
|
|
18
26
|
/** Forwards to Table: make the table fill parent height and scroll internally. */
|
|
19
27
|
fullHeight?: boolean;
|
|
20
28
|
hoverable?: boolean;
|
|
29
|
+
/** Forwards to Table: show a loading skeleton shaped like the matrix. */
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
/** Forwards to Table: the message shown while `loading`. */
|
|
32
|
+
loadingMessage?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Forwards to Table: the node shown when there are no permissions. Defaults to
|
|
35
|
+
* `"No permissions to display"` when omitted.
|
|
36
|
+
*/
|
|
37
|
+
emptyState?: VNodeChild;
|
|
21
38
|
/**
|
|
22
39
|
* Background Tailwind class(es) applied to the sticky Resource column cells so they remain
|
|
23
40
|
* opaque over scrolled action columns. Defaults to `'bg-white dark:bg-neutral-900'`.
|
|
@@ -27,10 +44,15 @@ export interface AccessMatrixProps {
|
|
|
27
44
|
stickyBackground?: string;
|
|
28
45
|
}
|
|
29
46
|
declare const _default: import("vue").DefineComponent<AccessMatrixProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AccessMatrixProps> & Readonly<{}>, {
|
|
47
|
+
loading: boolean;
|
|
30
48
|
tone: PanelTone;
|
|
31
49
|
variant: TableVariant;
|
|
32
|
-
fullHeight: boolean;
|
|
33
50
|
hoverable: boolean;
|
|
51
|
+
fullHeight: boolean;
|
|
52
|
+
bordered: boolean;
|
|
53
|
+
emptyState: string | number | boolean | void | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}> | import("vue").VNodeArrayChildren | null;
|
|
34
56
|
striped: boolean;
|
|
35
57
|
noBorders: boolean;
|
|
36
58
|
limit: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { type PanelPadding } from "./Panel.vue";
|
|
1
2
|
import type { VNode } from "vue";
|
|
2
|
-
import type {
|
|
3
|
-
import type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import type { PanelProps } from "./Panel.vue";
|
|
4
|
+
import { type ControlSize } from "../theme/Theme";
|
|
5
|
+
/**
|
|
6
|
+
* The affordance that tells you a row can expand. The old component also
|
|
7
|
+
* offered a `caret`, which rendered the exact same `ArrowDown` glyph as
|
|
8
|
+
* `chevron` — two names, one icon — so it is gone.
|
|
9
|
+
*/
|
|
10
|
+
export type AccordionIndicator = "chevron" | "plus-minus" | "none";
|
|
11
|
+
export type AccordionIndicatorPlacement = "left" | "right";
|
|
8
12
|
export interface AccordionItem {
|
|
9
13
|
id: string;
|
|
10
14
|
title: string | VNode;
|
|
@@ -17,27 +21,30 @@ export interface AccordionItem {
|
|
|
17
21
|
disabled?: boolean;
|
|
18
22
|
loading?: boolean;
|
|
19
23
|
}
|
|
20
|
-
|
|
24
|
+
/**
|
|
25
|
+
* A stacked disclosure list on the shared container surface.
|
|
26
|
+
*
|
|
27
|
+
* It renders `Panel` (like `CollapsiblePanel`), so `variant`, `tone`, `corner`,
|
|
28
|
+
* `padding` and every glass prop come from the same scales as every other
|
|
29
|
+
* card. The Vue kit has no surface-text provider, so the tokens are read
|
|
30
|
+
* straight from the shared theme with this component's own `variant` — the
|
|
31
|
+
* same call `Panel` makes internally.
|
|
32
|
+
*/
|
|
33
|
+
export interface AccordionProps extends Omit<PanelProps, "title" | "subtitle" | "actions"> {
|
|
21
34
|
items: AccordionItem[];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
/** Density of each row's type, icon and indicator. @default "md" */
|
|
36
|
+
size?: ControlSize;
|
|
37
|
+
/** @default "chevron" */
|
|
25
38
|
indicator?: AccordionIndicator;
|
|
26
|
-
|
|
27
|
-
|
|
39
|
+
/** Where the indicator sits. @default "right" */
|
|
40
|
+
indicatorPlacement?: AccordionIndicatorPlacement;
|
|
41
|
+
/** Animate expand/collapse. @default true */
|
|
28
42
|
animated?: boolean;
|
|
29
|
-
|
|
30
|
-
iconClassName?: string;
|
|
43
|
+
ariaLabel?: string;
|
|
31
44
|
itemClassName?: string;
|
|
32
45
|
headerClassName?: string;
|
|
33
46
|
contentClassName?: string;
|
|
34
|
-
|
|
35
|
-
loading?: boolean;
|
|
36
|
-
loaderTitle?: string;
|
|
37
|
-
loaderMessage?: string;
|
|
38
|
-
loaderType?: LoaderProps["variant"];
|
|
39
|
-
loaderProgress?: number;
|
|
40
|
-
loaderColor?: LoaderProps["color"];
|
|
47
|
+
iconClassName?: string;
|
|
41
48
|
defaultOpenIds?: string[];
|
|
42
49
|
openIds?: string[];
|
|
43
50
|
multiple?: boolean;
|
|
@@ -49,15 +56,22 @@ declare const _default: import("vue").DefineComponent<AccordionProps, {}, {}, {}
|
|
|
49
56
|
onChange?: ((openIds: string[]) => any) | undefined;
|
|
50
57
|
onItemToggle?: ((id: string, isOpen: boolean) => any) | undefined;
|
|
51
58
|
}>, {
|
|
52
|
-
|
|
53
|
-
variant: AccordionVariant;
|
|
54
|
-
size: AccordionSize;
|
|
59
|
+
size: ControlSize;
|
|
55
60
|
loading: boolean;
|
|
61
|
+
tone: import("./Gantt").TrueColor;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
variant: import("./Panel.vue").PanelVariant;
|
|
64
|
+
corner: import("./Panel.vue").PanelCorner;
|
|
65
|
+
fullWidth: boolean;
|
|
56
66
|
animated: boolean;
|
|
57
|
-
|
|
67
|
+
padding: PanelPadding;
|
|
68
|
+
flexBody: boolean;
|
|
69
|
+
loaderType: import("./Panel.vue").PanelLoaderType;
|
|
70
|
+
hoverShadow: boolean;
|
|
71
|
+
hoverable: boolean;
|
|
72
|
+
scrollable: boolean;
|
|
73
|
+
specularHighlight: boolean;
|
|
58
74
|
indicator: AccordionIndicator;
|
|
59
|
-
|
|
60
|
-
divider: boolean;
|
|
61
|
-
transitionMs: number;
|
|
75
|
+
indicatorPlacement: AccordionIndicatorPlacement;
|
|
62
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
77
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type ButtonVariant } from "./Button.vue";
|
|
2
|
+
import { type SurfaceCorner, type SurfacePadding, type SurfaceVariant, type TrueColor } from "../theme";
|
|
3
|
+
/** One entry in the feed. */
|
|
4
|
+
export interface ActivityFeedItem {
|
|
5
|
+
id: string;
|
|
6
|
+
/** What happened, in one line. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Supporting copy. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** A monospaced reference — a PR number, a ticket id. */
|
|
11
|
+
code?: string;
|
|
12
|
+
/** Who did it. */
|
|
13
|
+
actor?: string;
|
|
14
|
+
/** Pre-formatted ("3m ago", "09:12") — feeds rarely want live clocks. */
|
|
15
|
+
timestamp: string;
|
|
16
|
+
/** Status dot tone. @default "neutral" */
|
|
17
|
+
tone?: TrueColor;
|
|
18
|
+
/** Group this entry belongs to. Filters match it (falling back to `tone`). */
|
|
19
|
+
category?: string;
|
|
20
|
+
/** Entries this one aggregates — rendered as a count badge. */
|
|
21
|
+
count?: number;
|
|
22
|
+
}
|
|
23
|
+
/** A feed filter; the value `"all"` always matches. */
|
|
24
|
+
export interface ActivityFeedFilter {
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
/** @default "Recent activity" */
|
|
30
|
+
title?: string;
|
|
31
|
+
items: ActivityFeedItem[];
|
|
32
|
+
/** Filter segment control; an "All" segment is prepended for you. */
|
|
33
|
+
filters?: ActivityFeedFilter[];
|
|
34
|
+
/** @default "all" */
|
|
35
|
+
defaultFilter?: string;
|
|
36
|
+
/** A pill beside the title (a source name, a state). */
|
|
37
|
+
tag?: string;
|
|
38
|
+
/** Trailing header link (to the full log). */
|
|
39
|
+
linkLabel?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The link's button variant. Follows the card's own `variant` by default —
|
|
42
|
+
* an outlined card offers an outlined button.
|
|
43
|
+
*/
|
|
44
|
+
ctaVariant?: ButtonVariant;
|
|
45
|
+
/**
|
|
46
|
+
* The Load-more button variant. Follows the card's own `variant` by default.
|
|
47
|
+
*/
|
|
48
|
+
loadMoreVariant?: ButtonVariant;
|
|
49
|
+
/**
|
|
50
|
+
* The filter's track variant — the same surface vocabulary the card wears.
|
|
51
|
+
* Follows the card's own `variant`, so the track reads as a slice of the card.
|
|
52
|
+
*/
|
|
53
|
+
filterVariant?: SurfaceVariant;
|
|
54
|
+
/** Tail button; emitted `loadMore` only reaches out when `hasMore`. */
|
|
55
|
+
hasMore?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Draws the feed's own shape in placeholder ink while the events are in
|
|
58
|
+
* flight — same row rhythm, nothing jumps when they land.
|
|
59
|
+
*/
|
|
60
|
+
loading?: boolean;
|
|
61
|
+
/** @default "Load more" */
|
|
62
|
+
loadMoreLabel?: string;
|
|
63
|
+
/** Shown in the header when the caller knows the true total. */
|
|
64
|
+
totalCount?: number;
|
|
65
|
+
/** Surface, as every card in the kit takes it. @default "outlined" */
|
|
66
|
+
variant?: SurfaceVariant;
|
|
67
|
+
/** @default "neutral" */
|
|
68
|
+
tone?: TrueColor;
|
|
69
|
+
/** @default "md" */
|
|
70
|
+
padding?: SurfacePadding;
|
|
71
|
+
corner?: SurfaceCorner;
|
|
72
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
73
|
+
link: () => any;
|
|
74
|
+
loadMore: () => any;
|
|
75
|
+
filterChange: (value: string) => any;
|
|
76
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
77
|
+
/** @default "Recent activity" */
|
|
78
|
+
title?: string;
|
|
79
|
+
items: ActivityFeedItem[];
|
|
80
|
+
/** Filter segment control; an "All" segment is prepended for you. */
|
|
81
|
+
filters?: ActivityFeedFilter[];
|
|
82
|
+
/** @default "all" */
|
|
83
|
+
defaultFilter?: string;
|
|
84
|
+
/** A pill beside the title (a source name, a state). */
|
|
85
|
+
tag?: string;
|
|
86
|
+
/** Trailing header link (to the full log). */
|
|
87
|
+
linkLabel?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The link's button variant. Follows the card's own `variant` by default —
|
|
90
|
+
* an outlined card offers an outlined button.
|
|
91
|
+
*/
|
|
92
|
+
ctaVariant?: ButtonVariant;
|
|
93
|
+
/**
|
|
94
|
+
* The Load-more button variant. Follows the card's own `variant` by default.
|
|
95
|
+
*/
|
|
96
|
+
loadMoreVariant?: ButtonVariant;
|
|
97
|
+
/**
|
|
98
|
+
* The filter's track variant — the same surface vocabulary the card wears.
|
|
99
|
+
* Follows the card's own `variant`, so the track reads as a slice of the card.
|
|
100
|
+
*/
|
|
101
|
+
filterVariant?: SurfaceVariant;
|
|
102
|
+
/** Tail button; emitted `loadMore` only reaches out when `hasMore`. */
|
|
103
|
+
hasMore?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Draws the feed's own shape in placeholder ink while the events are in
|
|
106
|
+
* flight — same row rhythm, nothing jumps when they land.
|
|
107
|
+
*/
|
|
108
|
+
loading?: boolean;
|
|
109
|
+
/** @default "Load more" */
|
|
110
|
+
loadMoreLabel?: string;
|
|
111
|
+
/** Shown in the header when the caller knows the true total. */
|
|
112
|
+
totalCount?: number;
|
|
113
|
+
/** Surface, as every card in the kit takes it. @default "outlined" */
|
|
114
|
+
variant?: SurfaceVariant;
|
|
115
|
+
/** @default "neutral" */
|
|
116
|
+
tone?: TrueColor;
|
|
117
|
+
/** @default "md" */
|
|
118
|
+
padding?: SurfacePadding;
|
|
119
|
+
corner?: SurfaceCorner;
|
|
120
|
+
}> & Readonly<{
|
|
121
|
+
onLink?: (() => any) | undefined;
|
|
122
|
+
onLoadMore?: (() => any) | undefined;
|
|
123
|
+
onFilterChange?: ((value: string) => any) | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
title: string;
|
|
126
|
+
loading: boolean;
|
|
127
|
+
tone: TrueColor;
|
|
128
|
+
filters: ActivityFeedFilter[];
|
|
129
|
+
variant: SurfaceVariant;
|
|
130
|
+
tag: string;
|
|
131
|
+
padding: SurfacePadding;
|
|
132
|
+
defaultFilter: string;
|
|
133
|
+
linkLabel: string;
|
|
134
|
+
ctaVariant: ButtonVariant;
|
|
135
|
+
loadMoreVariant: ButtonVariant;
|
|
136
|
+
filterVariant: SurfaceVariant;
|
|
137
|
+
hasMore: boolean;
|
|
138
|
+
loadMoreLabel: string;
|
|
139
|
+
totalCount: number;
|
|
140
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,58 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
-
import type { TrueColor } from "../theme/Theme";
|
|
3
|
-
|
|
2
|
+
import type { AlertIconAlign, AlertIntent, AlertVariant, ControlSize, SurfaceCorner, TrueColor } from "../theme/Theme";
|
|
3
|
+
import type { GlassOpacity, GlassVibrancy, SpecularMode } from "../theme/glass";
|
|
4
|
+
export type { AlertIconAlign, AlertIntent, AlertVariant };
|
|
5
|
+
export type AlertSize = ControlSize;
|
|
4
6
|
export interface AlertProps {
|
|
7
|
+
/**
|
|
8
|
+
* What the callout means. Picks the tone, the default icon and how assistive
|
|
9
|
+
* technology announces it. `color` overrides just the tone.
|
|
10
|
+
* @default "neutral"
|
|
11
|
+
*/
|
|
12
|
+
intent?: AlertIntent;
|
|
13
|
+
/** @deprecated Use `color`, or `intent` for a semantic callout. */
|
|
5
14
|
tone?: TrueColor;
|
|
15
|
+
/** Overrides the tone the `intent` would have chosen. */
|
|
6
16
|
color?: TrueColor;
|
|
17
|
+
/** @default "subtle" */
|
|
7
18
|
variant?: AlertVariant;
|
|
19
|
+
/** @default "md" */
|
|
20
|
+
size?: AlertSize;
|
|
21
|
+
/** Corner radius, on the shared container scale. */
|
|
22
|
+
corner?: SurfaceCorner;
|
|
8
23
|
title?: string;
|
|
24
|
+
/** Body copy. The default slot is used instead when this is omitted. */
|
|
9
25
|
description?: string;
|
|
26
|
+
/** A registry icon name, a node, or `false` to show none. */
|
|
10
27
|
icon?: string | VNode | false;
|
|
28
|
+
/**
|
|
29
|
+
* Icon size, on the shared control scale. Defaults to a step derived from
|
|
30
|
+
* `size`, which is right in most cases — set this when the callout needs a
|
|
31
|
+
* heavier glyph than its copy would suggest.
|
|
32
|
+
*/
|
|
33
|
+
iconSize?: ControlSize;
|
|
34
|
+
/**
|
|
35
|
+
* Where the icon sits against the content. @default "top"
|
|
36
|
+
*/
|
|
37
|
+
iconAlign?: AlertIconAlign;
|
|
11
38
|
actions?: string;
|
|
12
39
|
dismissible?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Controls visibility. Leave it unset and a dismissible alert hides itself —
|
|
42
|
+
* it used to render a dismiss button that did nothing unless the caller
|
|
43
|
+
* wired up the `dismiss` event *and* their own state.
|
|
44
|
+
*/
|
|
45
|
+
open?: boolean;
|
|
46
|
+
/** Label for the dismiss button. @default "Dismiss alert" */
|
|
47
|
+
dismissLabel?: string;
|
|
48
|
+
/** Overrides the politeness the `intent` would have chosen. */
|
|
49
|
+
live?: "assertive" | "polite" | "off";
|
|
50
|
+
/** Glass fill transparency, for the glass variants. */
|
|
51
|
+
glassOpacity?: GlassOpacity;
|
|
52
|
+
/** Backdrop vibrancy, for the glass variants. */
|
|
53
|
+
vibrancy?: GlassVibrancy;
|
|
54
|
+
/** Specular highlight, for the glass variants. */
|
|
55
|
+
specularMode?: SpecularMode;
|
|
13
56
|
}
|
|
14
57
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {
|
|
15
58
|
el: import("vue").Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
@@ -18,9 +61,23 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps
|
|
|
18
61
|
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
19
62
|
onDismiss?: (() => any) | undefined;
|
|
20
63
|
}>, {
|
|
64
|
+
icon: string | VNode | false;
|
|
65
|
+
size: AlertSize;
|
|
66
|
+
intent: AlertIntent;
|
|
21
67
|
variant: AlertVariant;
|
|
68
|
+
corner: SurfaceCorner;
|
|
69
|
+
iconAlign: AlertIconAlign;
|
|
22
70
|
dismissible: boolean;
|
|
71
|
+
open: boolean;
|
|
72
|
+
dismissLabel: string;
|
|
73
|
+
glassOpacity: GlassOpacity;
|
|
74
|
+
vibrancy: GlassVibrancy;
|
|
75
|
+
specularMode: SpecularMode;
|
|
23
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
77
|
+
title?: (props: {}) => any;
|
|
78
|
+
} & {
|
|
79
|
+
default?: (props: {}) => any;
|
|
80
|
+
} & {
|
|
24
81
|
actions?: (props: {}) => any;
|
|
25
82
|
}>;
|
|
26
83
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
import type { EmptyStateProps } from "./EmptyState.vue";
|
|
2
|
-
|
|
2
|
+
import type { ApiErrorKind } from "../theme/Theme";
|
|
3
|
+
export type { ApiErrorKind };
|
|
4
|
+
export interface ApiErrorStateProps extends Omit<EmptyStateProps, "onAction" | "disableBorder" | "transparentBackground"> {
|
|
5
|
+
/**
|
|
6
|
+
* What went wrong. Picks the tone, the glyph and the default copy — and
|
|
7
|
+
* whether a retry is offered at all, since a 403 does not clear by pressing
|
|
8
|
+
* a button. @default "unknown"
|
|
9
|
+
*/
|
|
10
|
+
kind?: ApiErrorKind;
|
|
11
|
+
/** Called when the retry button is pressed. Omit it and no button is drawn. */
|
|
3
12
|
onRetry?: () => void;
|
|
4
|
-
|
|
5
|
-
|
|
13
|
+
/** The retry is in flight: the button spins and refuses a second press. */
|
|
14
|
+
retrying?: boolean;
|
|
15
|
+
/** Label on that button. @default "Try Again" */
|
|
6
16
|
buttonText?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Render nothing when false — for `<ApiErrorState :is-error="!!error" />` at
|
|
19
|
+
* a call site that would otherwise need a `v-if`. @default true
|
|
20
|
+
*/
|
|
21
|
+
isError?: boolean;
|
|
7
22
|
}
|
|
8
23
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ApiErrorStateProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ApiErrorStateProps> & Readonly<{}>, {
|
|
9
|
-
|
|
24
|
+
dashed: boolean;
|
|
10
25
|
fullWidth: boolean;
|
|
11
|
-
subtitle: string;
|
|
12
26
|
showIcon: boolean;
|
|
13
|
-
|
|
14
|
-
transparentBackground: boolean;
|
|
15
|
-
fullHeight: boolean;
|
|
27
|
+
iconBackground: boolean;
|
|
16
28
|
actionLeadingIcon: string | import("vue").VNode;
|
|
29
|
+
actionDisabled: boolean;
|
|
30
|
+
fullHeight: boolean;
|
|
31
|
+
kind: ApiErrorKind;
|
|
32
|
+
retrying: boolean;
|
|
17
33
|
buttonText: string;
|
|
18
34
|
isError: boolean;
|
|
19
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
20
36
|
title?: (props: {}) => any;
|
|
37
|
+
} & {
|
|
38
|
+
subtitle?: (props: {}) => any;
|
|
39
|
+
} & {
|
|
40
|
+
actions?: (props: {}) => any;
|
|
21
41
|
}>;
|
|
22
42
|
export default _default;
|
|
23
43
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,59 @@
|
|
|
1
|
+
import type { ControlSize, TrueColor } from "../theme/Theme";
|
|
2
|
+
export type AppDividerOrientation = "vertical" | "horizontal";
|
|
3
|
+
export type AppDividerLabelPosition = "start" | "center" | "end";
|
|
4
|
+
export declare const APP_DIVIDER_VARIANTS: readonly ["solid", "dashed", "dotted", "gradient"];
|
|
5
|
+
export type AppDividerVariant = (typeof APP_DIVIDER_VARIANTS)[number];
|
|
1
6
|
export interface AppDividerProps {
|
|
2
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Which way the rule runs. Stays `vertical` by default — this component was
|
|
9
|
+
* written for header sections and every existing call site relies on it.
|
|
10
|
+
* @default "vertical"
|
|
11
|
+
*/
|
|
12
|
+
orientation?: AppDividerOrientation;
|
|
13
|
+
/** @default "solid" */
|
|
14
|
+
variant?: AppDividerVariant;
|
|
15
|
+
/**
|
|
16
|
+
* Accent colour. Omit it and the rule takes a neutral divider colour that
|
|
17
|
+
* works on both light and dark surfaces.
|
|
18
|
+
*/
|
|
19
|
+
tone?: TrueColor;
|
|
20
|
+
/** Line thickness on the shared control scale. @default "xs" */
|
|
21
|
+
size?: ControlSize;
|
|
22
|
+
/** Space either side of the rule. @default "sm" */
|
|
23
|
+
spacing?: "none" | ControlSize;
|
|
24
|
+
/**
|
|
25
|
+
* Length along the rule's own axis — height when vertical, width when
|
|
26
|
+
* horizontal. Defaults to `1.5rem` vertical, full width horizontal.
|
|
27
|
+
*/
|
|
28
|
+
length?: number | string;
|
|
29
|
+
/** Text set into the rule. The default slot overrides it. */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** @default "center" */
|
|
32
|
+
labelPosition?: AppDividerLabelPosition;
|
|
33
|
+
/**
|
|
34
|
+
* Hidden from assistive technology. Defaults to true for an unlabelled rule,
|
|
35
|
+
* which is decoration; a labelled one is announced as a separator.
|
|
36
|
+
*/
|
|
37
|
+
decorative?: boolean;
|
|
38
|
+
/** @deprecated Use `length`. */
|
|
3
39
|
height?: number | string;
|
|
4
|
-
/**
|
|
40
|
+
/** @deprecated Use `size`, or pass a number of pixels. */
|
|
5
41
|
width?: number;
|
|
6
|
-
/**
|
|
42
|
+
/** @deprecated Use `spacing`. */
|
|
7
43
|
margin?: number | string;
|
|
8
44
|
}
|
|
9
|
-
declare const _default: import("vue").DefineComponent<AppDividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AppDividerProps> & Readonly<{}>, {
|
|
45
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AppDividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AppDividerProps> & Readonly<{}>, {
|
|
46
|
+
size: ControlSize;
|
|
47
|
+
variant: AppDividerVariant;
|
|
48
|
+
orientation: AppDividerOrientation;
|
|
49
|
+
spacing: "none" | ControlSize;
|
|
50
|
+
labelPosition: AppDividerLabelPosition;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
52
|
+
default?: (props: {}) => any;
|
|
53
|
+
}>;
|
|
10
54
|
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|