@ds-mo/ui 2.11.2 → 2.13.0
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/README.md +13 -13
- package/dist/.build-stamp +1 -1
- package/dist/components/ds-app-shell.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- package/dist/components/ds-banner.js.map +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-nav.js.map +1 -1
- package/dist/components/ds-button-filled.js +1 -1
- package/dist/components/{ds-accordion.d.ts → ds-button-unfilled.d.ts} +4 -4
- package/dist/components/ds-button-unfilled.js +2 -0
- package/dist/components/{ds-card-data-viz.d.ts → ds-card-data-viz-donut.d.ts} +4 -4
- package/dist/components/ds-card-data-viz-donut.js +2 -0
- package/dist/components/ds-card-data-viz-donut.js.map +1 -0
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-card-setting.js.map +1 -1
- package/dist/components/{ds-fade.d.ts → ds-card.d.ts} +4 -4
- package/dist/components/ds-card.js +2 -0
- package/dist/components/ds-card.js.map +1 -0
- package/dist/components/ds-chart-bar.js +1 -1
- package/dist/components/ds-chart-bar.js.map +1 -1
- package/dist/components/ds-chart-donut.js +1 -1
- package/dist/components/ds-chart-donut.js.map +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-legend.js.map +1 -1
- package/dist/components/ds-chart-line.js +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-checkbox.js.map +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-chip.js.map +1 -1
- package/dist/components/ds-empty-state.js +1 -1
- package/dist/components/ds-empty-state.js.map +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-icon.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-input.js.map +1 -1
- package/dist/components/ds-loader.js +1 -1
- package/dist/components/ds-loader.js.map +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-pagination.js +1 -1
- package/dist/components/ds-pagination.js.map +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-nav.js.map +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-panel-tools.js.map +1 -1
- package/dist/components/ds-radio-group.js +1 -1
- package/dist/components/ds-radio-group.js.map +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-select.js.map +1 -1
- package/dist/components/ds-shell-gradient-picker.js +1 -1
- package/dist/components/ds-shell-gradient-swatch.js +1 -1
- package/dist/components/ds-skeleton.js +1 -1
- package/dist/components/ds-skeleton.js.map +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-slider.js.map +1 -1
- package/dist/components/ds-tab-group-nav.js +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-tab-group.js.map +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-tag.js.map +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-toggle.js +1 -1
- package/dist/components/ds-toggle.js.map +1 -1
- package/dist/components/ds-tooltip-data-viz.js +1 -1
- package/dist/components/ds-tooltip-data-viz.js.map +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/ds-tooltip.js.map +1 -1
- package/dist/components/p-1m8r0wFg.js +2 -0
- package/dist/components/p-1m8r0wFg.js.map +1 -0
- package/dist/components/p-3FLHei19.js +2 -0
- package/dist/components/p-3FLHei19.js.map +1 -0
- package/dist/components/p-B2_D4IDN.js +2 -0
- package/dist/components/p-B2_D4IDN.js.map +1 -0
- package/dist/components/p-B5NcWtpp.js +2 -0
- package/dist/components/p-B5NcWtpp.js.map +1 -0
- package/dist/components/{p-8Nt92j1-.js → p-B82KZX9D.js} +2 -2
- package/dist/components/p-BQq26pt9.js.map +1 -1
- package/dist/components/p-B_g8X0eh.js +2 -0
- package/dist/components/p-B_g8X0eh.js.map +1 -0
- package/dist/components/{p-DdFUTZ3y.js → p-Be3PHv34.js} +2 -2
- package/dist/components/p-CQmf2CeW.js +2 -0
- package/dist/components/p-CQmf2CeW.js.map +1 -0
- package/dist/components/{p-DOU4cbpc.js → p-CtwNUCnp.js} +2 -2
- package/dist/components/p-CuRjYmBk.js +2 -0
- package/dist/components/p-CuRjYmBk.js.map +1 -0
- package/dist/components/p-CwARVsZQ.js +2 -0
- package/dist/components/p-CwARVsZQ.js.map +1 -0
- package/dist/components/p-DohXlNCJ.js +2 -0
- package/dist/components/p-DohXlNCJ.js.map +1 -0
- package/dist/components/p-DuFm-ieS.js +2 -0
- package/dist/components/p-DuFm-ieS.js.map +1 -0
- package/dist/components/p-EK1hOP19.js.map +1 -1
- package/dist/lib/nav/index.js +3 -0
- package/dist/lib/nav/index.js.map +2 -2
- package/dist/lib/utils/control-width.d.ts +4 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/index.js +20 -1
- package/dist/lib/utils/index.js.map +3 -3
- package/dist/lib/utils/token-defaults.d.ts +7 -0
- package/dist/types/components/ButtonFilled/ButtonFilled.d.ts +21 -3
- package/dist/types/components/ButtonFilled/index.d.ts +1 -1
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +70 -0
- package/dist/types/components/ButtonUnfilled/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +20 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/CardDataVizDonut/CardDataVizDonut.d.ts +26 -0
- package/dist/types/components/CardDataVizDonut/index.d.ts +2 -0
- package/dist/types/components/CardSetting/CardSetting.d.ts +7 -2
- package/dist/types/components/ChartDonut/ChartDonut.d.ts +31 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +18 -14
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/Input/Input.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/PanelNav/PanelNav.d.ts +2 -0
- package/dist/types/components/PanelTools/panel-tools-types.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/Select/Select.d.ts +34 -2
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/ShellGradientSwatch/ShellGradientSwatch.d.ts +1 -1
- package/dist/types/components/Slider/Slider.d.ts +1 -1
- package/dist/types/components/TabGroup/TabGroup.d.ts +1 -1
- package/dist/types/components/TabGroup/tab-item-utils.d.ts +2 -1
- package/dist/types/components/TabGroupNav/TabGroupNav.d.ts +1 -1
- package/dist/types/components/Tag/Tag.d.ts +0 -2
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/dist/types/components/Toggle/Toggle.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +25 -6
- package/dist/types/components/TooltipDataViz/TooltipDataViz.d.ts +18 -0
- package/dist/types/components.d.ts +474 -576
- package/dist/types/utils/control-width.d.ts +5 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/token-defaults.d.ts +7 -0
- package/package.json +7 -4
- package/src/angular/index.ts +3 -9
- package/src/angular/proxies.ts +62 -215
- package/src/react/components.ts +3 -9
- package/src/react/ds-button-unfilled.ts +33 -0
- package/src/react/ds-card-data-viz-donut.ts +27 -0
- package/src/react/{ds-fade.ts → ds-card.ts} +7 -7
- package/src/react/ds-chip.ts +2 -10
- package/src/wc/components/BarNav/BarNav.tsx +3 -2
- package/src/wc/components/BarNav/bar-nav-tabs-menu-utils.ts +1 -1
- package/src/wc/components/ButtonFilled/ButtonFilled.tsx +97 -11
- package/src/wc/components/ButtonFilled/index.ts +7 -1
- package/src/wc/components/ButtonUnfilled/ButtonUnfilled.tsx +230 -0
- package/src/wc/components/ButtonUnfilled/index.ts +7 -0
- package/src/wc/components/Card/Card.tsx +79 -0
- package/src/wc/components/Card/index.ts +1 -0
- package/src/wc/components/{CardDataViz/CardDataViz.tsx → CardDataVizDonut/CardDataVizDonut.tsx} +47 -41
- package/src/wc/components/CardDataVizDonut/index.ts +1 -0
- package/src/wc/components/CardSetting/CardSetting.tsx +21 -36
- package/src/wc/components/ChartDonut/ChartDonut.tsx +159 -11
- package/src/wc/components/ChartLegend/ChartLegend.tsx +3 -0
- package/src/wc/components/Checkbox/Checkbox.tsx +5 -5
- package/src/wc/components/Chip/Chip.tsx +50 -67
- package/src/wc/components/Chip/index.ts +1 -1
- package/src/wc/components/Input/Input.tsx +4 -4
- package/src/wc/components/Menu/Menu.tsx +7 -4
- package/src/wc/components/Pagination/Pagination.tsx +6 -6
- package/src/wc/components/PanelNav/PanelNav.tsx +77 -48
- package/src/wc/components/PanelTools/PanelTools.tsx +19 -16
- package/src/wc/components/PanelTools/panel-tools-types.ts +1 -1
- package/src/wc/components/PanelTools/panel-tools-utils.ts +1 -1
- package/src/wc/components/RadioGroup/RadioGroup.tsx +7 -7
- package/src/wc/components/Select/Select.tsx +145 -64
- package/src/wc/components/Select/index.ts +1 -0
- package/src/wc/components/ShellGradientSwatch/ShellGradientSwatch.tsx +4 -3
- package/src/wc/components/Slider/Slider.tsx +7 -3
- package/src/wc/components/TabGroup/TabGroup.tsx +13 -7
- package/src/wc/components/TabGroup/tab-item-utils.ts +2 -1
- package/src/wc/components/TabGroupNav/TabGroupNav.tsx +14 -13
- package/src/wc/components/Tag/Tag.tsx +25 -24
- package/src/wc/components/Tag/index.ts +1 -1
- package/src/wc/components/Toggle/Toggle.tsx +6 -6
- package/src/wc/components/Tooltip/Tooltip.tsx +166 -64
- package/src/wc/components/TooltipDataViz/TooltipDataViz.tsx +57 -2
- package/src/wc/components.d.ts +474 -579
- package/src/wc/utils/control-density.css +42 -0
- package/src/wc/utils/control-inactive.css +20 -0
- package/src/wc/utils/control-width.css +28 -0
- package/src/wc/utils/control-width.ts +10 -0
- package/src/wc/utils/index.ts +2 -0
- package/src/wc/utils/interaction-fill.css +162 -0
- package/src/wc/utils/scroll-edge-fade.css +5 -0
- package/src/wc/utils/token-defaults.ts +10 -0
- package/dist/components/ds-accordion.js +0 -2
- package/dist/components/ds-accordion.js.map +0 -1
- package/dist/components/ds-breadcrumb.d.ts +0 -11
- package/dist/components/ds-breadcrumb.js +0 -2
- package/dist/components/ds-breadcrumb.js.map +0 -1
- package/dist/components/ds-button-unfilled-icon.d.ts +0 -11
- package/dist/components/ds-button-unfilled-icon.js +0 -2
- package/dist/components/ds-card-data-viz.js +0 -2
- package/dist/components/ds-card-data-viz.js.map +0 -1
- package/dist/components/ds-fade.js +0 -2
- package/dist/components/ds-fade.js.map +0 -1
- package/dist/components/ds-header.d.ts +0 -11
- package/dist/components/ds-header.js +0 -2
- package/dist/components/ds-header.js.map +0 -1
- package/dist/components/ds-scrollbar.d.ts +0 -11
- package/dist/components/ds-scrollbar.js +0 -2
- package/dist/components/ds-scrollbar.js.map +0 -1
- package/dist/components/ds-surface.d.ts +0 -11
- package/dist/components/ds-surface.js +0 -2
- package/dist/components/ds-surface.js.map +0 -1
- package/dist/components/ds-toast-provider.d.ts +0 -11
- package/dist/components/ds-toast-provider.js +0 -2
- package/dist/components/ds-toast-provider.js.map +0 -1
- package/dist/components/p-BMQbEIrQ.js +0 -2
- package/dist/components/p-BMQbEIrQ.js.map +0 -1
- package/dist/components/p-BSFgy5r6.js +0 -2
- package/dist/components/p-BSFgy5r6.js.map +0 -1
- package/dist/components/p-CBUIn8dk.js +0 -2
- package/dist/components/p-CBUIn8dk.js.map +0 -1
- package/dist/components/p-ChVwCVHy.js +0 -2
- package/dist/components/p-ChVwCVHy.js.map +0 -1
- package/dist/components/p-CpNIQXz6.js +0 -2
- package/dist/components/p-CpNIQXz6.js.map +0 -1
- package/dist/components/p-CvgHQfvT.js +0 -2
- package/dist/components/p-CvgHQfvT.js.map +0 -1
- package/dist/components/p-bDf6yBQd.js +0 -2
- package/dist/components/p-bDf6yBQd.js.map +0 -1
- package/dist/types/components/Accordion/Accordion.d.ts +0 -28
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +0 -16
- package/dist/types/components/ButtonUnfilledIcon/ButtonUnfilledIcon.d.ts +0 -45
- package/dist/types/components/ButtonUnfilledIcon/index.d.ts +0 -2
- package/dist/types/components/CardDataViz/CardDataViz.d.ts +0 -22
- package/dist/types/components/CardDataViz/index.d.ts +0 -2
- package/dist/types/components/Fade/Fade.d.ts +0 -22
- package/dist/types/components/Fade/index.d.ts +0 -2
- package/dist/types/components/Header/Header.d.ts +0 -7
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +0 -27
- package/dist/types/components/Surface/Surface.d.ts +0 -22
- package/dist/types/components/Toast/Toast.d.ts +0 -16
- package/dist/types/components/Toast/toast-service.d.ts +0 -24
- package/src/react/ds-accordion.ts +0 -27
- package/src/react/ds-breadcrumb.ts +0 -27
- package/src/react/ds-button-unfilled-icon.ts +0 -33
- package/src/react/ds-card-data-viz.ts +0 -26
- package/src/react/ds-header.ts +0 -26
- package/src/react/ds-scrollbar.ts +0 -26
- package/src/react/ds-surface.ts +0 -26
- package/src/react/ds-toast-provider.ts +0 -26
- package/src/wc/components/Accordion/Accordion.tsx +0 -144
- package/src/wc/components/Breadcrumb/Breadcrumb.tsx +0 -61
- package/src/wc/components/ButtonUnfilledIcon/ButtonUnfilledIcon.tsx +0 -129
- package/src/wc/components/ButtonUnfilledIcon/index.ts +0 -1
- package/src/wc/components/CardDataViz/index.ts +0 -1
- package/src/wc/components/Fade/Fade.tsx +0 -58
- package/src/wc/components/Fade/index.ts +0 -1
- package/src/wc/components/Header/Header.tsx +0 -33
- package/src/wc/components/Scrollbar/Scrollbar.tsx +0 -189
- package/src/wc/components/Surface/Surface.tsx +0 -81
- package/src/wc/components/Toast/Toast.tsx +0 -179
- package/src/wc/components/Toast/toast-service.ts +0 -67
- /package/dist/components/{ds-button-unfilled-icon.js.map → ds-button-unfilled.js.map} +0 -0
- /package/dist/components/{p-8Nt92j1-.js.map → p-B82KZX9D.js.map} +0 -0
- /package/dist/components/{p-DdFUTZ3y.js.map → p-Be3PHv34.js.map} +0 -0
- /package/dist/components/{p-DOU4cbpc.js.map → p-CtwNUCnp.js.map} +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type ControlWidth } from '../../utils/control-width';
|
|
3
|
+
export type ButtonUnfilledOnBackgroundContrast = 'default' | 'medium' | 'bold' | 'strong';
|
|
4
|
+
export type ButtonUnfilledBackground = 'always-dark' | 'navigation';
|
|
5
|
+
export type ButtonUnfilledVariant = 'icon' | 'label' | 'icon-label';
|
|
6
|
+
export type ButtonUnfilledSize = 'md' | 'sm' | 'xs';
|
|
7
|
+
export type ButtonUnfilledWidth = ControlWidth;
|
|
8
|
+
export declare class ButtonUnfilled {
|
|
9
|
+
el: HTMLElement;
|
|
10
|
+
/**
|
|
11
|
+
* Content layout. Default is label-only; pass `icon` for icon-only chrome
|
|
12
|
+
* (nav / tool rails) or `icon-label` for leading icon + text.
|
|
13
|
+
*/
|
|
14
|
+
variant: ButtonUnfilledVariant;
|
|
15
|
+
/** Control density (height, padding, icon, type). */
|
|
16
|
+
size: ButtonUnfilledSize;
|
|
17
|
+
/** Width fit — hug content (default) or fill the parent. */
|
|
18
|
+
width: ButtonUnfilledWidth;
|
|
19
|
+
/** Visible text for `label` / `icon-label` variants. */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Icon name passed to <ds-icon> for `icon` / `icon-label` variants. */
|
|
22
|
+
icon: string;
|
|
23
|
+
/** Active/selected visual state. Always promotes foreground to primary. */
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* When active, render the selected interaction fill.
|
|
27
|
+
* Default `true` for general UI. Shell chrome (nav / tool rails) should pass
|
|
28
|
+
* `false` so selection is foreground-only (primary color, no fill).
|
|
29
|
+
*/
|
|
30
|
+
activeFill: boolean;
|
|
31
|
+
/** Show a 1px secondary inset border. Default on; shell chrome can pass `false`. */
|
|
32
|
+
hasBorder: boolean;
|
|
33
|
+
/** Show a notification dot at the top-right of the icon zone (icon variant only). */
|
|
34
|
+
dot: boolean;
|
|
35
|
+
/** Disables interaction. */
|
|
36
|
+
isInactive: boolean;
|
|
37
|
+
/** Native button type. */
|
|
38
|
+
type: 'button' | 'submit' | 'reset';
|
|
39
|
+
/**
|
|
40
|
+
* Foreground and interaction tokens when the button sits on a contrasting parent
|
|
41
|
+
* background (default, medium, bold, or strong).
|
|
42
|
+
*/
|
|
43
|
+
backgroundContrast?: ButtonUnfilledOnBackgroundContrast;
|
|
44
|
+
/** Parent surface context for navigation and always-dark chrome. */
|
|
45
|
+
background: ButtonUnfilledBackground | undefined;
|
|
46
|
+
ariaLabel: string | undefined;
|
|
47
|
+
controls: string | undefined;
|
|
48
|
+
expanded: boolean | undefined;
|
|
49
|
+
haspopup: string | undefined;
|
|
50
|
+
pressed: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Native `tabindex` for roving keyboard groups in shell chrome.
|
|
53
|
+
* Omit for the default button tab stop (`0`).
|
|
54
|
+
*/
|
|
55
|
+
focusTabIndex?: number;
|
|
56
|
+
dsClick: EventEmitter<MouseEvent>;
|
|
57
|
+
dsChange: EventEmitter<boolean>;
|
|
58
|
+
private buttonEl;
|
|
59
|
+
setFocus(): Promise<void>;
|
|
60
|
+
private handleClick;
|
|
61
|
+
private effectiveContrast;
|
|
62
|
+
private get showIcon();
|
|
63
|
+
private get showLabel();
|
|
64
|
+
private get showDot();
|
|
65
|
+
/** Knock-out ring: selected fill → active wash; otherwise surface token. */
|
|
66
|
+
private get dotRing();
|
|
67
|
+
private get accessibleName();
|
|
68
|
+
render(): any;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=ButtonUnfilled.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type CardWidth = 'sm' | 'md' | 'lg';
|
|
2
|
+
/** Visual chrome recipe — default app surface, or settings edit wash. */
|
|
3
|
+
export type CardAppearance = 'default' | 'editing';
|
|
4
|
+
/**
|
|
5
|
+
* Shared card chrome — width + matching min-height tokens, header (title + actions),
|
|
6
|
+
* and a flex body that fills leftover space. Compose this from settings / data-viz cards.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Card {
|
|
9
|
+
/** Section heading shown in the card header. */
|
|
10
|
+
heading: string;
|
|
11
|
+
/**
|
|
12
|
+
* Card width token (`sm` / `md` / `lg`). Also sets host `min-height` to the
|
|
13
|
+
* matching `--dimension-card-height-*` so empty bodies still fill the card.
|
|
14
|
+
*/
|
|
15
|
+
cardWidth: CardWidth;
|
|
16
|
+
/** Chrome recipe — `editing` applies the settings edit wash. */
|
|
17
|
+
appearance: CardAppearance;
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { CardWidth } from '../Card/Card';
|
|
3
|
+
export type CardDataVizDonutWidth = CardWidth;
|
|
4
|
+
/**
|
|
5
|
+
* Donut data-viz card — shared `ds-card` chrome with a fill chart region and
|
|
6
|
+
* content-sized legend. Hover sync between chart and legend stays here.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CardDataVizDonut {
|
|
9
|
+
el: HTMLElement;
|
|
10
|
+
/** Widget heading shown in the card header. */
|
|
11
|
+
heading: string;
|
|
12
|
+
/** Card width token — also sets matching min-height. */
|
|
13
|
+
cardWidth: CardDataVizDonutWidth;
|
|
14
|
+
/** Emits when the header filter control is activated. */
|
|
15
|
+
dsFilterClick: EventEmitter<void>;
|
|
16
|
+
private hasChartSlot;
|
|
17
|
+
private hasLegendSlot;
|
|
18
|
+
componentWillRender(): void;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
private handleChartHover;
|
|
22
|
+
private handleLegendHover;
|
|
23
|
+
private handleFilterClick;
|
|
24
|
+
render(): any;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=CardDataVizDonut.d.ts.map
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
|
|
2
|
+
import type { CardWidth } from '../Card/Card';
|
|
3
|
+
export type CardSettingWidth = CardWidth;
|
|
3
4
|
export declare class CardSetting {
|
|
4
5
|
/** Section heading shown in the card header. */
|
|
5
6
|
heading: string;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Card width token (`sm` / `md` / `lg`). Also sets host `min-height` to the
|
|
9
|
+
* matching `--dimension-card-height-*` so the body fills available space
|
|
10
|
+
* even when the slot is empty.
|
|
11
|
+
*/
|
|
7
12
|
cardWidth: CardSettingWidth;
|
|
8
13
|
/** Controlled edit state — parent owns single-edit orchestration. */
|
|
9
14
|
editing: boolean;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { ChartDatum } from '../../utils/chart-types';
|
|
3
3
|
export declare class ChartDonut {
|
|
4
|
+
el: HTMLElement;
|
|
4
5
|
/** Slices to render. Set as a JS property (not an HTML attribute). */
|
|
5
6
|
data: ChartDatum[];
|
|
6
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Explicit diameter in px. When unset, the donut sizes to its container
|
|
9
|
+
* (ResizeObserver) clamped between `--dimension-size-base * 16` (128px) and
|
|
10
|
+
* `* 24` (192px), and stays centered in the leftover space. Prefer unset
|
|
11
|
+
* inside card layouts.
|
|
12
|
+
*/
|
|
13
|
+
size: number | undefined;
|
|
7
14
|
/** Ring thickness — number (px) or TokoMo length. Defaults to `--dimension-size-200` (16px). */
|
|
8
15
|
thickness: number | string;
|
|
9
16
|
/** Corner radius on each slice — number (px) or TokoMo length. Defaults to `--dimension-radius-025` (2px). */
|
|
@@ -18,17 +25,40 @@ export declare class ChartDonut {
|
|
|
18
25
|
* Externally controlled highlight, matched by `label` — e.g. drive this from a sibling
|
|
19
26
|
* `ds-chart-legend`'s `dsItemHover` event to keep chart and legend hover in sync.
|
|
20
27
|
* Falls back to this component's own pointer/focus hover when unset.
|
|
28
|
+
* External sync dims slices only — the data-viz tooltip is reserved for this
|
|
29
|
+
* component's own pointer/keyboard interaction.
|
|
21
30
|
*/
|
|
22
31
|
activeLabel: string | null;
|
|
23
32
|
private hoveredLabel;
|
|
33
|
+
/** Own-hover tooltip (cursor-following). Cleared on leave; not driven by `activeLabel`. */
|
|
34
|
+
private tooltip;
|
|
24
35
|
/** Center text, truncated with an ellipsis if it doesn't fit inside the inner circle. */
|
|
25
36
|
private displayedValueText;
|
|
26
37
|
private displayedCaptionText;
|
|
38
|
+
/** Measured fill diameter when `size` is unset. */
|
|
39
|
+
private measuredSize;
|
|
27
40
|
/** Fires with the hovered/focused slice's datum, or `null` on leave/blur. */
|
|
28
41
|
dsSliceHover: EventEmitter<ChartDatum | null>;
|
|
29
42
|
private valueTextEl?;
|
|
30
43
|
private captionTextEl?;
|
|
44
|
+
private wrapperEl?;
|
|
45
|
+
private resizeObserver;
|
|
46
|
+
private get isFillMode();
|
|
47
|
+
private get fillMinPx();
|
|
48
|
+
private get fillMaxPx();
|
|
49
|
+
/** Clamp available square side into the fill min/max band. */
|
|
50
|
+
private clampFillSize;
|
|
51
|
+
private get resolvedSize();
|
|
52
|
+
componentDidLoad(): void;
|
|
53
|
+
onSizePropChange(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
private syncResizeObserver;
|
|
56
|
+
private measureHost;
|
|
57
|
+
private applyAvailableSize;
|
|
58
|
+
private teardownResizeObserver;
|
|
31
59
|
private handleHover;
|
|
60
|
+
private handleSliceMove;
|
|
61
|
+
private updateTooltip;
|
|
32
62
|
componentDidRender(): void;
|
|
33
63
|
render(): any;
|
|
34
64
|
}
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Semantic chip state — replaces Tag’s intent × contrast matrix.
|
|
4
|
+
* - `default` — neutral faint
|
|
5
|
+
* - `active` — brand faint
|
|
6
|
+
* - `error` — negative faint
|
|
7
|
+
* - `caution` — caution faint
|
|
8
|
+
*/
|
|
9
|
+
export type ChipState = 'default' | 'active' | 'error' | 'caution';
|
|
5
10
|
export type ChipSize = 'md' | 'sm' | 'xs';
|
|
6
11
|
export type ChipBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'always-dark';
|
|
12
|
+
/**
|
|
13
|
+
* Removable chip — same density recipe as Tag, but colored by semantic `state`
|
|
14
|
+
* (not intent × contrast). Not a toggle/select control; the only intentional
|
|
15
|
+
* action is remove.
|
|
16
|
+
*/
|
|
7
17
|
export declare class Chip {
|
|
8
18
|
label: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
elevation: ChipElevation;
|
|
19
|
+
/** Semantic color state. @default 'default' */
|
|
20
|
+
state: ChipState;
|
|
12
21
|
size: ChipSize;
|
|
13
22
|
rounded: boolean;
|
|
23
|
+
/** When true (default), shows the trailing dismiss control. */
|
|
14
24
|
removable: boolean;
|
|
15
25
|
maxWidth: string | number | undefined;
|
|
16
|
-
|
|
26
|
+
isInactive: boolean;
|
|
27
|
+
/** Surface context for interaction-fill tokens when the chip sits on a non-default surface. */
|
|
17
28
|
background: ChipBackground | undefined;
|
|
18
|
-
pressed: boolean;
|
|
19
29
|
/** Fired when the remove button is clicked. */
|
|
20
30
|
dsRemove: EventEmitter<void>;
|
|
21
|
-
/** Fired when an interactive chip is clicked. */
|
|
22
|
-
dsClick: EventEmitter<void>;
|
|
23
|
-
/** Fired when the pressed state toggles. */
|
|
24
|
-
dsPressedChange: EventEmitter<boolean>;
|
|
25
|
-
private handleClick;
|
|
26
|
-
private handleKeyDown;
|
|
27
31
|
private handleRemove;
|
|
28
32
|
render(): any;
|
|
29
33
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { ChipState, ChipSize, ChipBackground } from './Chip';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -105,6 +105,8 @@ export declare class PanelNav {
|
|
|
105
105
|
private handleResizeHandleMouseEnter;
|
|
106
106
|
private handleResizeHandleMouseLeave;
|
|
107
107
|
private handleResizeHandleMouseDown;
|
|
108
|
+
private renderFooterAction;
|
|
109
|
+
private renderFooterUser;
|
|
108
110
|
private renderNavItem;
|
|
109
111
|
render(): any;
|
|
110
112
|
}
|
|
@@ -2,14 +2,14 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export interface RadioOption {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
-
|
|
5
|
+
isInactive?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare class RadioGroup {
|
|
8
8
|
el: HTMLElement;
|
|
9
9
|
options: RadioOption[];
|
|
10
10
|
value: string;
|
|
11
11
|
direction: 'vertical' | 'horizontal';
|
|
12
|
-
|
|
12
|
+
isInactive: boolean;
|
|
13
13
|
ariaLabel: string | undefined;
|
|
14
14
|
ariaLabelledby: string | undefined;
|
|
15
15
|
dsChange: EventEmitter<string>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type ControlWidth } from '../../utils/control-width';
|
|
2
3
|
export interface SelectOption {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
5
6
|
}
|
|
7
|
+
export type SelectSize = 'md' | 'sm' | 'xs';
|
|
8
|
+
export type SelectWidth = ControlWidth;
|
|
9
|
+
/**
|
|
10
|
+
* Dropdown select — unfilled-button chrome (label + trailing ChevronDown) in
|
|
11
|
+
* control-density sizes, with `ds-menu` for the option list.
|
|
12
|
+
*/
|
|
6
13
|
export declare class Select {
|
|
7
14
|
el: HTMLElement;
|
|
8
15
|
/**
|
|
@@ -14,8 +21,21 @@ export declare class Select {
|
|
|
14
21
|
value: string;
|
|
15
22
|
/** Placeholder shown when no value is selected. */
|
|
16
23
|
placeholder: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
24
|
+
/** Control density (height, padding, icon, type). */
|
|
25
|
+
size: SelectSize;
|
|
26
|
+
/** Width fit — fill the parent (default) or hug content. */
|
|
27
|
+
width: SelectWidth;
|
|
28
|
+
/** Disables interaction (25% opacity via ds-control-inactive). */
|
|
29
|
+
isInactive: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* When a value is selected, render the selected interaction fill (same recipe
|
|
32
|
+
* as unfilled-button `activeFill`). Default `true`. Pass `false` for
|
|
33
|
+
* foreground-only selection (primary label, no fill).
|
|
34
|
+
* Selected/open promotes the label to primary; chevron stays secondary.
|
|
35
|
+
*/
|
|
36
|
+
activeFill: boolean;
|
|
37
|
+
/** Show a 1px secondary inset border. Default on (matches unfilled button). */
|
|
38
|
+
hasBorder: boolean;
|
|
19
39
|
ariaLabel: string | undefined;
|
|
20
40
|
ariaLabelledby: string | undefined;
|
|
21
41
|
/** Emits the selected value string. */
|
|
@@ -23,11 +43,23 @@ export declare class Select {
|
|
|
23
43
|
private isOpen;
|
|
24
44
|
private triggerEl;
|
|
25
45
|
private menuEl;
|
|
46
|
+
/** True when the open was keyboard-driven — menu shows initial focus ring. */
|
|
47
|
+
private openWithFocusVisible;
|
|
26
48
|
componentDidLoad(): void;
|
|
49
|
+
disconnectedCallback(): void;
|
|
27
50
|
onIsOpenChange(open: boolean): void;
|
|
28
51
|
onOptionsChange(): void;
|
|
29
52
|
onValueChange(): void;
|
|
53
|
+
private handleMenuSelect;
|
|
54
|
+
private handleMenuClose;
|
|
30
55
|
private syncMenuItems;
|
|
56
|
+
/**
|
|
57
|
+
* Size/place the menu so option labels line up with the select label.
|
|
58
|
+
* Menu section padding insets items; we expand min-width by that chrome and
|
|
59
|
+
* shift left by the same amount (`alignOffset`). Menu can grow wider than
|
|
60
|
+
* the field (left-bottom / `align="start"`) when labels need more room.
|
|
61
|
+
*/
|
|
62
|
+
private syncMenuLayout;
|
|
31
63
|
private open;
|
|
32
64
|
private close;
|
|
33
65
|
private toggle;
|
|
@@ -5,7 +5,7 @@ export declare class ShellGradientSwatch {
|
|
|
5
5
|
preset: ShellGradientPreset;
|
|
6
6
|
/** Selected — brand stroke + halo over inner fill/border/interaction stack. */
|
|
7
7
|
selected: boolean;
|
|
8
|
-
|
|
8
|
+
isInactive: boolean;
|
|
9
9
|
ariaLabel: string | undefined;
|
|
10
10
|
dsSelect: EventEmitter<ShellGradientPreset>;
|
|
11
11
|
private handleClick;
|
|
@@ -6,7 +6,7 @@ export declare class Slider {
|
|
|
6
6
|
max: number;
|
|
7
7
|
step: number;
|
|
8
8
|
label: string;
|
|
9
|
-
|
|
9
|
+
isInactive: boolean;
|
|
10
10
|
valueText: string | undefined;
|
|
11
11
|
/** Associates with an external <label>. Defaults to an auto-generated ID. */
|
|
12
12
|
inputId: string | undefined;
|
|
@@ -16,7 +16,7 @@ export declare class TabGroup {
|
|
|
16
16
|
/** Keep focus on the selected tab when value changes externally (e.g. BarNav menu). */
|
|
17
17
|
onValueChange(next: string, prev: string | undefined): void;
|
|
18
18
|
/**
|
|
19
|
-
* Find the next non-
|
|
19
|
+
* Find the next non-inactive tab index relative to `from`, stepping by `step`.
|
|
20
20
|
* Returns `from` unchanged if no other enabled tab exists.
|
|
21
21
|
*/
|
|
22
22
|
private findEnabled;
|
|
@@ -4,7 +4,8 @@ export interface TabItemDivider {
|
|
|
4
4
|
export interface TabItemTab {
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
7
|
-
|
|
7
|
+
/** Disables the tab (same meaning as control `isInactive`). */
|
|
8
|
+
isInactive?: boolean;
|
|
8
9
|
/** id of the tabpanel this tab controls */
|
|
9
10
|
panelId?: string;
|
|
10
11
|
/** Show a notification dot (brand) on the tab — no count, matching panel-nav. */
|
|
@@ -32,7 +32,7 @@ export declare class TabGroupNav {
|
|
|
32
32
|
private getFocusedIndex;
|
|
33
33
|
private findEnabledLinear;
|
|
34
34
|
/**
|
|
35
|
-
* Find the next non-
|
|
35
|
+
* Find the next non-inactive tab index relative to `from`, stepping by `step`.
|
|
36
36
|
* Returns `from` unchanged if no other enabled tab exists.
|
|
37
37
|
*/
|
|
38
38
|
private findEnabled;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export type TagIntent = 'neutral' | 'brand' | 'ai' | 'negative' | 'warning' | 'caution' | 'positive';
|
|
2
2
|
export type TagContrast = 'strong' | 'bold' | 'medium' | 'faint';
|
|
3
|
-
export type TagElevation = 'none' | 'flat' | 'elevated';
|
|
4
3
|
export type TagSize = 'md' | 'sm' | 'xs';
|
|
5
4
|
export declare class Tag {
|
|
6
5
|
label: string;
|
|
7
6
|
intent: TagIntent;
|
|
8
7
|
contrast: TagContrast;
|
|
9
|
-
elevation: TagElevation;
|
|
10
8
|
size: TagSize;
|
|
11
9
|
rounded: boolean;
|
|
12
10
|
maxWidth: string | number | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TagIntent, TagContrast,
|
|
1
|
+
export type { TagIntent, TagContrast, TagSize } from './Tag';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,33 +1,47 @@
|
|
|
1
1
|
export type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
|
|
2
2
|
export type TooltipAlign = 'start' | 'center' | 'end';
|
|
3
|
+
export type TooltipSize = 'md' | 'sm' | 'xs';
|
|
4
|
+
/**
|
|
5
|
+
* Imperative body portal for the popup.
|
|
6
|
+
* Stencil must not own the portaled node — moving a VDOM child to `document.body`
|
|
7
|
+
* causes recreate → re-portal → @State loops that freeze the page.
|
|
8
|
+
*/
|
|
3
9
|
export declare class Tooltip {
|
|
4
10
|
el: HTMLElement;
|
|
5
11
|
label: string;
|
|
12
|
+
/** Control density (height, padding, type). */
|
|
13
|
+
size: TooltipSize;
|
|
6
14
|
side: TooltipSide;
|
|
7
15
|
align: TooltipAlign;
|
|
8
16
|
/** Gap between anchor and tooltip — number (px) or TokoMo length. */
|
|
9
17
|
sideOffset: number | string;
|
|
10
18
|
/** Cross-axis offset — number (px) or TokoMo length. */
|
|
11
19
|
alignOffset: number | string;
|
|
12
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Hover show delay before the tooltip appears.
|
|
22
|
+
* Default: `--effect-animation-delay-medium-3` (1000ms). Accepts a number (ms)
|
|
23
|
+
* or a TokoMo time token / `var(--effect-animation-delay-*)`. Applies to the
|
|
24
|
+
* initial hover/focus show only — after a recent dismiss, reopen is instant.
|
|
25
|
+
* Prefer the default; override only for denser chrome or rare/destructive actions.
|
|
26
|
+
*/
|
|
13
27
|
delay: number | string;
|
|
14
28
|
shortcutKey: string | undefined;
|
|
15
29
|
shortcutKeyPosition: 'start' | 'end';
|
|
16
|
-
private visible;
|
|
17
|
-
private closing;
|
|
18
|
-
private pos;
|
|
19
30
|
private tooltipId;
|
|
20
31
|
private delayTimer;
|
|
21
32
|
private closeTimer;
|
|
22
33
|
private anchor;
|
|
23
|
-
private
|
|
34
|
+
private popupEl;
|
|
35
|
+
private skipEnterAnimation;
|
|
36
|
+
private isOpen;
|
|
24
37
|
private mouseEnterHandler;
|
|
25
38
|
private mouseLeaveHandler;
|
|
39
|
+
/** focusin/focusout so nested focus targets (e.g. ds-button-* inner button) still open the tip. */
|
|
26
40
|
private focusHandler;
|
|
27
41
|
private blurHandler;
|
|
28
42
|
componentDidLoad(): void;
|
|
29
43
|
disconnectedCallback(): void;
|
|
30
|
-
|
|
44
|
+
onContentOrPositionChange(): void;
|
|
31
45
|
private get viewportPadPx();
|
|
32
46
|
private get sideOffsetPx();
|
|
33
47
|
private get alignOffsetPx();
|
|
@@ -39,8 +53,13 @@ export declare class Tooltip {
|
|
|
39
53
|
private bindAnchor;
|
|
40
54
|
private unbindAnchor;
|
|
41
55
|
private clearTimers;
|
|
56
|
+
private destroyPopup;
|
|
57
|
+
/** Drop the open tip immediately (warm handoff to another tooltip). */
|
|
58
|
+
private hideInstant;
|
|
42
59
|
private show;
|
|
43
60
|
private hide;
|
|
61
|
+
private mountPopup;
|
|
62
|
+
private renderPopupContent;
|
|
44
63
|
private calculatePosition;
|
|
45
64
|
render(): any;
|
|
46
65
|
}
|
|
@@ -10,6 +10,9 @@ export type TooltipDataVizAlign = 'top' | 'bottom';
|
|
|
10
10
|
* with `x`/`y` as pixel coordinates within that wrapper. Defaults to sitting below-right
|
|
11
11
|
* of the anchor (matching cursor-following tooltips), flipping to whichever side/edge
|
|
12
12
|
* keeps it on-screen.
|
|
13
|
+
*
|
|
14
|
+
* Mount (or remount) when a hover session starts so `delay` applies once per hover;
|
|
15
|
+
* keep the instance mounted while the cursor moves so tracking stays instant.
|
|
13
16
|
*/
|
|
14
17
|
export declare class TooltipDataViz {
|
|
15
18
|
el: HTMLElement;
|
|
@@ -18,10 +21,25 @@ export declare class TooltipDataViz {
|
|
|
18
21
|
/** Anchor point in px, relative to the nearest `position: relative` ancestor — e.g. the cursor. */
|
|
19
22
|
x: number;
|
|
20
23
|
y: number;
|
|
24
|
+
/**
|
|
25
|
+
* Show delay after mount before the callout appears.
|
|
26
|
+
* Default: `--effect-animation-delay-instant` (0ms). Accepts a number (ms)
|
|
27
|
+
* or a TokoMo time token / `var(--effect-animation-delay-*)`. Charts need
|
|
28
|
+
* immediate feedback while scrubbing; prefer the default. Mount once per
|
|
29
|
+
* hover session so any non-zero delay runs once, then track `x`/`y` instantly.
|
|
30
|
+
*/
|
|
31
|
+
delay: number | string;
|
|
21
32
|
private side;
|
|
22
33
|
private align;
|
|
34
|
+
private visible;
|
|
35
|
+
private delayTimer;
|
|
23
36
|
componentDidLoad(): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
24
38
|
onAnchorChange(): void;
|
|
39
|
+
onDelayChange(): void;
|
|
40
|
+
private get showDelayMs();
|
|
41
|
+
private clearDelayTimer;
|
|
42
|
+
private scheduleShow;
|
|
25
43
|
private calculatePlacement;
|
|
26
44
|
render(): any;
|
|
27
45
|
}
|