@ds-mo/ui 8.0.1 → 8.2.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 +1 -1
- package/dist/.build-stamp +1 -1
- package/dist/agent.json +1123 -65
- package/dist/angular/ds-badge.d.ts +1 -1
- package/dist/angular/ds-badge.js +3 -3
- package/dist/angular/ds-button-filled.d.ts +1 -1
- package/dist/angular/ds-button-filled.js +3 -3
- package/dist/angular/ds-button-unfilled.d.ts +1 -1
- package/dist/angular/ds-button-unfilled.js +3 -3
- package/dist/angular/ds-checkbox.d.ts +4 -1
- package/dist/angular/ds-checkbox.js +3 -3
- package/dist/angular/ds-empty-state.d.ts +1 -1
- package/dist/angular/ds-empty-state.js +3 -3
- package/dist/angular/ds-field.d.ts +1 -1
- package/dist/angular/ds-field.js +3 -3
- package/dist/angular/ds-input.d.ts +1 -1
- package/dist/angular/ds-input.js +3 -3
- package/dist/angular/ds-panel-nav.d.ts +1 -1
- package/dist/angular/ds-panel-nav.js +3 -3
- package/dist/angular/ds-radio.d.ts +18 -0
- package/dist/angular/{ds-radio-group.js → ds-radio.js} +12 -12
- package/dist/angular/ds-select-multi.d.ts +28 -0
- package/dist/angular/ds-select-multi.js +49 -0
- package/dist/angular/ds-select.d.ts +12 -2
- package/dist/angular/ds-select.js +11 -4
- package/dist/angular/ds-slider.d.ts +12 -3
- package/dist/angular/ds-slider.js +8 -4
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +2 -1
- package/dist/angular/proxies.d.ts +2 -1
- package/dist/angular/proxies.js +2 -1
- package/dist/angular/radio-value-accessor.d.ts +1 -1
- package/dist/angular/radio-value-accessor.js +2 -2
- package/dist/components/ds-app-shell.js +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-banner.js +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-button-unfilled.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js.map +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-card.js +1 -1
- 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-line.js +1 -1
- package/dist/components/ds-chart-line.js.map +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-divider.js +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-field.js.map +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-menu.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-modal.js.map +1 -1
- package/dist/components/ds-pagination.js +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-sub-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js.map +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/{ds-radio-group.d.ts → ds-radio.d.ts} +4 -4
- package/dist/components/ds-radio.js +2 -0
- package/dist/components/ds-radio.js.map +1 -0
- package/dist/components/ds-select-multi.d.ts +11 -0
- package/dist/components/ds-select-multi.js +2 -0
- package/dist/components/ds-select-multi.js.map +1 -0
- 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-slider.js +1 -1
- package/dist/components/ds-slider.js.map +1 -1
- package/dist/components/ds-switch.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-tag.js +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-tooltip-data-viz.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/p-BU_gxTiw.js +2 -0
- package/dist/components/p-BU_gxTiw.js.map +1 -0
- package/dist/components/{p-DavEAOUa.js → p-BjhTeU17.js} +2 -2
- package/dist/components/p-C91iXoXj.js +2 -0
- package/dist/components/p-C91iXoXj.js.map +1 -0
- package/dist/components/{p-3bRWSqaN.js → p-CDu_LfhF.js} +2 -2
- package/dist/components/{p-Mx6VFEQc.js → p-CSyIAX11.js} +2 -2
- package/dist/components/p-CSyIAX11.js.map +1 -0
- package/dist/components/p-C_cu-HIT.js +2 -0
- package/dist/components/p-C_cu-HIT.js.map +1 -0
- package/dist/components/{p-DoZU8RH0.js → p-Cj4vIqqx.js} +2 -2
- package/dist/components/{p-DoZU8RH0.js.map → p-Cj4vIqqx.js.map} +1 -1
- package/dist/components/{p-wxw8arTd.js → p-Cpr3K41-.js} +1 -1
- package/dist/components/{p-wxw8arTd.js.map → p-Cpr3K41-.js.map} +1 -1
- package/dist/components/{p-Dt0XnMxc.js → p-CqsgiNwB.js} +2 -2
- package/dist/components/p-CqsgiNwB.js.map +1 -0
- package/dist/components/p-DHJZDpNk.js +2 -0
- package/dist/components/p-DHJZDpNk.js.map +1 -0
- package/dist/components/{p-clDpFcdU.js → p-DKVDYHxb.js} +2 -2
- package/dist/components/p-DRqbwDzo.js +2 -0
- package/dist/components/p-DRqbwDzo.js.map +1 -0
- package/dist/components/{p-CPD_mML6.js → p-KeMecQN9.js} +2 -2
- package/dist/components/p-NwPqPArp.js +2 -0
- package/dist/components/p-NwPqPArp.js.map +1 -0
- package/dist/components/p-PP5602IN.js +2 -0
- package/dist/components/p-PP5602IN.js.map +1 -0
- package/dist/components/p-VKIsOVza.js +2 -0
- package/dist/components/p-VKIsOVza.js.map +1 -0
- package/dist/components/p-kGSowBA8.js +2 -0
- package/dist/components/{p-DsiueSMI.js.map → p-kGSowBA8.js.map} +1 -1
- package/dist/docs/components.json +3778 -816
- package/dist/framework/angular.d.ts +1 -0
- package/dist/framework/angular.js +1 -0
- package/dist/framework/select-multi-value-accessor.d.ts +9 -0
- package/dist/framework/select-multi-value-accessor.js +40 -0
- package/dist/lib/components/Menu/menu-position.d.ts +6 -19
- package/dist/lib/components/Text/text-types.d.ts +1 -1
- package/dist/lib/utils/anchored-popup.d.ts +19 -0
- package/dist/react/components.d.ts +2 -1
- package/dist/react/components.js +2 -1
- package/dist/react/ds-radio.d.ts +12 -0
- package/dist/react/ds-radio.js +12 -0
- package/dist/react/ds-select-multi.d.ts +14 -0
- package/dist/react/ds-select-multi.js +16 -0
- package/dist/react/ds-select.d.ts +2 -0
- package/dist/react/ds-select.js +5 -1
- package/dist/react/ds-slider.d.ts +4 -3
- package/dist/react/ds-slider.js +4 -1
- package/dist/types/components/Badge/Badge.d.ts +2 -0
- package/dist/types/components/ButtonFilled/ButtonFilled.d.ts +2 -0
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +4 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +16 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/EmptyState/EmptyState.d.ts +6 -5
- package/dist/types/components/Field/Field.d.ts +37 -2
- package/dist/types/components/Icon/Icon.d.ts +6 -1
- package/dist/types/components/Input/Input.d.ts +26 -0
- package/dist/types/components/Loader/Loader.d.ts +6 -1
- package/dist/types/components/Menu/Menu.d.ts +6 -0
- package/dist/types/components/Menu/menu-position.d.ts +6 -19
- package/dist/types/components/Modal/Modal.d.ts +5 -0
- package/dist/types/components/PanelNav/PanelNav.d.ts +9 -0
- package/dist/types/components/{RadioGroup/RadioGroup.d.ts → Radio/Radio.d.ts} +18 -2
- package/dist/types/components/Radio/index.d.ts +2 -0
- package/dist/types/components/Select/Select.d.ts +94 -48
- package/dist/types/components/Select/index.d.ts +1 -1
- package/dist/types/components/SelectMulti/SelectMulti.d.ts +131 -0
- package/dist/types/components/SelectMulti/index.d.ts +2 -0
- package/dist/types/components/Slider/Slider.d.ts +101 -7
- package/dist/types/components/Switch/Switch.d.ts +4 -0
- package/dist/types/components/TabGroup/TabGroup.d.ts +1 -0
- package/dist/types/components/Text/Text.d.ts +7 -0
- package/dist/types/components/Text/text-types.d.ts +1 -1
- package/dist/types/components.d.ts +1130 -117
- package/dist/types/utils/anchored-popup.d.ts +20 -0
- package/dist/types/utils/choice-list-parts.d.ts +33 -0
- package/dist/types/utils/choice-list.d.ts +26 -0
- package/package.json +10 -5
- package/dist/angular/ds-radio-group.d.ts +0 -15
- package/dist/components/ds-radio-group.js +0 -2
- package/dist/components/ds-radio-group.js.map +0 -1
- package/dist/components/p-B8ERbwc9.js +0 -2
- package/dist/components/p-B8ERbwc9.js.map +0 -1
- package/dist/components/p-Ca1H1HPf.js +0 -2
- package/dist/components/p-Ca1H1HPf.js.map +0 -1
- package/dist/components/p-CpX87AQy.js +0 -2
- package/dist/components/p-CpX87AQy.js.map +0 -1
- package/dist/components/p-CyMmsNCF.js +0 -2
- package/dist/components/p-CyMmsNCF.js.map +0 -1
- package/dist/components/p-DsiueSMI.js +0 -2
- package/dist/components/p-Dt0XnMxc.js.map +0 -1
- package/dist/components/p-Mx6VFEQc.js.map +0 -1
- package/dist/react/ds-radio-group.d.ts +0 -12
- package/dist/react/ds-radio-group.js +0 -12
- package/dist/types/components/RadioGroup/index.d.ts +0 -2
- /package/dist/components/{p-DavEAOUa.js.map → p-BjhTeU17.js.map} +0 -0
- /package/dist/components/{p-3bRWSqaN.js.map → p-CDu_LfhF.js.map} +0 -0
- /package/dist/components/{p-clDpFcdU.js.map → p-DKVDYHxb.js.map} +0 -0
- /package/dist/components/{p-CPD_mML6.js.map → p-KeMecQN9.js.map} +0 -0
|
@@ -1,83 +1,129 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { type ControlWidth } from '../../utils';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { type ChoiceBackground, type ChoiceOption, type ChoiceSection } from '../../utils/choice-list';
|
|
4
|
+
export type SelectOption = ChoiceOption;
|
|
5
|
+
export type SelectSection = ChoiceSection;
|
|
6
|
+
export type SelectBackground = ChoiceBackground;
|
|
7
7
|
export type SelectSize = 'md' | 'sm' | 'xs';
|
|
8
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
|
-
*/
|
|
13
9
|
export declare class Select {
|
|
14
10
|
el: HTMLElement;
|
|
15
11
|
internals: ElementInternals;
|
|
16
|
-
/**
|
|
17
|
-
* Array of options. Set via JS property.
|
|
18
|
-
* @example el.options = [{ label: 'Apple', value: 'apple' }];
|
|
19
|
-
*/
|
|
12
|
+
/** Flat choices. Assign arrays through the JavaScript property. */
|
|
20
13
|
options: SelectOption[];
|
|
21
|
-
/**
|
|
14
|
+
/** Grouped choices; takes precedence over options. Assign through JavaScript. */
|
|
15
|
+
sections: SelectSection[];
|
|
16
|
+
/** Selected string value. Unknown values render the placeholder and are not submitted. */
|
|
22
17
|
value: string;
|
|
18
|
+
/** Controlled popup visibility. */
|
|
19
|
+
open: boolean;
|
|
20
|
+
/** Native form field name. */
|
|
23
21
|
name: string | undefined;
|
|
22
|
+
/** Native disabled state. */
|
|
24
23
|
disabled: boolean;
|
|
24
|
+
/** Require one valid selected value. */
|
|
25
25
|
required: boolean;
|
|
26
|
+
/** Validation message used when required is missing. */
|
|
26
27
|
requiredMessage: string;
|
|
27
|
-
/**
|
|
28
|
+
/** Trigger text shown when no valid value is selected. */
|
|
28
29
|
placeholder: string;
|
|
29
|
-
/** Control density
|
|
30
|
+
/** Control density. */
|
|
30
31
|
size: SelectSize;
|
|
31
|
-
/** Width fit —
|
|
32
|
+
/** Width fit — hug content (default) or fill the parent. */
|
|
32
33
|
width: SelectWidth;
|
|
33
|
-
/**
|
|
34
|
+
/** Shared inactive treatment; removes interaction and form submission. */
|
|
34
35
|
isInactive: boolean;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* foreground-only selection (primary label, no fill).
|
|
39
|
-
* A selected value promotes the label to primary; chevron stays secondary.
|
|
40
|
-
*/
|
|
36
|
+
/** Replace the prefix with a loader and disable option interaction. */
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
/** Show the selected interaction fill when a valid value exists. */
|
|
41
39
|
activeFill: boolean;
|
|
42
|
-
/** Show
|
|
40
|
+
/** Show the surface-aware inset border. */
|
|
43
41
|
hasBorder: boolean;
|
|
42
|
+
/** Optional trigger prefix icon name. */
|
|
43
|
+
icon: string | undefined;
|
|
44
|
+
/** Show the clear footer action when a value exists. */
|
|
45
|
+
allowClear: boolean;
|
|
46
|
+
/** Localized clear action label. */
|
|
47
|
+
clearLabel: string;
|
|
48
|
+
/** Show immediate local filtering over option labels, subtext, and section headings. */
|
|
49
|
+
searchable: boolean;
|
|
50
|
+
/** Localized search-field placeholder and accessible name. */
|
|
51
|
+
searchPlaceholder: string;
|
|
52
|
+
/** Localized empty-filter result text. */
|
|
53
|
+
noResultsText: string;
|
|
54
|
+
/** Accessible loading status label. */
|
|
55
|
+
loadingLabel: string;
|
|
56
|
+
/** Actual parent surface context; omit on primary and secondary surfaces. */
|
|
57
|
+
background: SelectBackground | undefined;
|
|
58
|
+
/** Show invalid visual state. */
|
|
59
|
+
error: boolean;
|
|
60
|
+
/** Error text rendered below the trigger when error is true. */
|
|
61
|
+
errorMessage: string | undefined;
|
|
62
|
+
/** ID applied to the internal combobox trigger for external labels. */
|
|
63
|
+
inputId: string | undefined;
|
|
64
|
+
/** Direct accessible name when no external label is available. */
|
|
44
65
|
ariaLabel: string | null;
|
|
66
|
+
/** IDs of elements that label the combobox. */
|
|
45
67
|
ariaLabelledby: string | undefined;
|
|
46
|
-
/**
|
|
68
|
+
/** Additional IDs that describe the combobox. */
|
|
69
|
+
ariaDescribedby: string | undefined;
|
|
70
|
+
/** Emitted after user selection or clearing with the next scalar value. */
|
|
47
71
|
dsChange: EventEmitter<string>;
|
|
48
|
-
|
|
72
|
+
/** Emitted after the footer clear action. */
|
|
73
|
+
dsClear: EventEmitter<void>;
|
|
74
|
+
/** Emitted whenever popup visibility changes. */
|
|
75
|
+
dsOpenChange: EventEmitter<boolean>;
|
|
76
|
+
private activeIndex;
|
|
77
|
+
private searchTerm;
|
|
78
|
+
private formDisabled;
|
|
79
|
+
private position;
|
|
80
|
+
private positionReady;
|
|
81
|
+
private focusRingVisible;
|
|
82
|
+
private readonly generatedId;
|
|
83
|
+
private readonly listboxId;
|
|
84
|
+
private readonly errorId;
|
|
49
85
|
private triggerEl;
|
|
50
|
-
private
|
|
51
|
-
|
|
52
|
-
private openWithFocusVisible;
|
|
86
|
+
private popupEl;
|
|
87
|
+
private searchEl;
|
|
53
88
|
private initialValue;
|
|
54
|
-
private
|
|
89
|
+
private typeahead;
|
|
90
|
+
private typeaheadTimer;
|
|
91
|
+
private outsideHandler;
|
|
92
|
+
private repositionHandler;
|
|
55
93
|
componentWillLoad(): void;
|
|
56
94
|
componentDidLoad(): void;
|
|
57
95
|
disconnectedCallback(): void;
|
|
58
|
-
onIsOpenChange(open: boolean): void;
|
|
59
|
-
onOptionsChange(): void;
|
|
60
|
-
onValueChange(): void;
|
|
61
96
|
syncFormValue(): void;
|
|
97
|
+
onLoadingChange(): void;
|
|
98
|
+
onOpenChange(open: boolean): void;
|
|
99
|
+
onSearchTermChange(): void;
|
|
100
|
+
onActiveIndexChange(): void;
|
|
62
101
|
formDisabledCallback(disabled: boolean): void;
|
|
63
102
|
formResetCallback(): void;
|
|
64
103
|
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
65
|
-
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* the field (left-bottom / `align="start"`) when labels need more room.
|
|
73
|
-
*/
|
|
74
|
-
private syncMenuLayout;
|
|
75
|
-
private open;
|
|
76
|
-
private close;
|
|
77
|
-
private toggle;
|
|
78
|
-
handleKeyDown(e: KeyboardEvent): void;
|
|
79
|
-
private get selectedLabel();
|
|
104
|
+
setFocus(): Promise<void>;
|
|
105
|
+
private get isDisabled();
|
|
106
|
+
private get allSections();
|
|
107
|
+
private get allOptions();
|
|
108
|
+
private get visibleSections();
|
|
109
|
+
private get visibleOptions();
|
|
110
|
+
private get selectedOption();
|
|
80
111
|
private get hasSelection();
|
|
112
|
+
private get activeOptionId();
|
|
113
|
+
private scrollActiveOptionIntoView;
|
|
114
|
+
private bindPopupListeners;
|
|
115
|
+
private unbindPopupListeners;
|
|
116
|
+
private updatePosition;
|
|
117
|
+
private openPopup;
|
|
118
|
+
private closePopup;
|
|
119
|
+
private selectOption;
|
|
120
|
+
private clearSelection;
|
|
121
|
+
private moveActive;
|
|
122
|
+
private setActiveEdge;
|
|
123
|
+
private handleTypeahead;
|
|
124
|
+
private handleListKeyDown;
|
|
125
|
+
private handleTriggerKeyDown;
|
|
126
|
+
private renderOption;
|
|
81
127
|
render(): any;
|
|
82
128
|
}
|
|
83
129
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { SelectOption, SelectSize, SelectWidth } from './Select';
|
|
1
|
+
export type { SelectBackground, SelectOption, SelectSection, SelectSize, SelectWidth, } from './Select';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type ControlWidth } from '../../utils';
|
|
3
|
+
import type { SelectBackground, SelectOption, SelectSection, SelectSize } from '../Select/Select';
|
|
4
|
+
export type SelectMultiOption = Omit<SelectOption, 'icon'>;
|
|
5
|
+
export type SelectMultiSection = Omit<SelectSection, 'options'> & {
|
|
6
|
+
options: SelectMultiOption[];
|
|
7
|
+
};
|
|
8
|
+
export type SelectMultiBackground = SelectBackground;
|
|
9
|
+
export type SelectMultiSize = SelectSize;
|
|
10
|
+
export type SelectMultiWidth = ControlWidth;
|
|
11
|
+
export declare class SelectMulti {
|
|
12
|
+
el: HTMLElement;
|
|
13
|
+
internals: ElementInternals;
|
|
14
|
+
/** Flat choices. Assign arrays through the JavaScript property. */
|
|
15
|
+
options: SelectMultiOption[];
|
|
16
|
+
/** Grouped choices; takes precedence over options. Assign through JavaScript. */
|
|
17
|
+
sections: SelectMultiSection[];
|
|
18
|
+
/** Selected values. Assign arrays through the JavaScript property. */
|
|
19
|
+
values: string[];
|
|
20
|
+
/** Controlled popup visibility. */
|
|
21
|
+
open: boolean;
|
|
22
|
+
/** Native form field name used for each repeated selected-value entry. */
|
|
23
|
+
name: string | undefined;
|
|
24
|
+
/** Native disabled state. */
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
/** Require at least one valid selected value. */
|
|
27
|
+
required: boolean;
|
|
28
|
+
/** Validation message used when required is missing. */
|
|
29
|
+
requiredMessage: string;
|
|
30
|
+
/** Persistent trigger label; selected option labels never replace it. */
|
|
31
|
+
placeholder: string;
|
|
32
|
+
/** Control density. */
|
|
33
|
+
size: SelectMultiSize;
|
|
34
|
+
/** Width fit — hug content (default) or fill the parent. */
|
|
35
|
+
width: SelectMultiWidth;
|
|
36
|
+
/** Shared inactive treatment; removes interaction and form submission. */
|
|
37
|
+
isInactive: boolean;
|
|
38
|
+
/** Replace the prefix with a loader and disable option interaction. */
|
|
39
|
+
isLoading: boolean;
|
|
40
|
+
/** Show the selected interaction fill when at least one value exists. */
|
|
41
|
+
activeFill: boolean;
|
|
42
|
+
/** Show the surface-aware inset border. */
|
|
43
|
+
hasBorder: boolean;
|
|
44
|
+
/** Optional trigger prefix icon name. */
|
|
45
|
+
icon: string | undefined;
|
|
46
|
+
/** Show the clear-all footer action when values exist. */
|
|
47
|
+
allowClear: boolean;
|
|
48
|
+
/** Localized clear-all action label. */
|
|
49
|
+
clearLabel: string;
|
|
50
|
+
/** Localized noun displayed after the selected count. */
|
|
51
|
+
selectedLabel: string;
|
|
52
|
+
/** Show immediate local filtering over option labels, subtext, and section headings. */
|
|
53
|
+
searchable: boolean;
|
|
54
|
+
/** Localized search-field placeholder and accessible name. */
|
|
55
|
+
searchPlaceholder: string;
|
|
56
|
+
/** Localized empty-filter result text. */
|
|
57
|
+
noResultsText: string;
|
|
58
|
+
/** Accessible loading status label. */
|
|
59
|
+
loadingLabel: string;
|
|
60
|
+
/** Actual parent surface context; omit on primary and secondary surfaces. */
|
|
61
|
+
background: SelectMultiBackground | undefined;
|
|
62
|
+
/** Show invalid visual state. */
|
|
63
|
+
error: boolean;
|
|
64
|
+
/** Error text rendered below the trigger when error is true. */
|
|
65
|
+
errorMessage: string | undefined;
|
|
66
|
+
/** ID applied to the internal combobox trigger for external labels. */
|
|
67
|
+
inputId: string | undefined;
|
|
68
|
+
/** Direct accessible name when no external label is available. */
|
|
69
|
+
ariaLabel: string | null;
|
|
70
|
+
/** IDs of elements that label the combobox. */
|
|
71
|
+
ariaLabelledby: string | undefined;
|
|
72
|
+
/** Additional IDs that describe the combobox. */
|
|
73
|
+
ariaDescribedby: string | undefined;
|
|
74
|
+
/** Emitted after user toggles or clearing with a new values array. */
|
|
75
|
+
dsChange: EventEmitter<string[]>;
|
|
76
|
+
/** Emitted after the footer clear-all action. */
|
|
77
|
+
dsClear: EventEmitter<void>;
|
|
78
|
+
/** Emitted whenever popup visibility changes. */
|
|
79
|
+
dsOpenChange: EventEmitter<boolean>;
|
|
80
|
+
private activeIndex;
|
|
81
|
+
private searchTerm;
|
|
82
|
+
private formDisabled;
|
|
83
|
+
private position;
|
|
84
|
+
private positionReady;
|
|
85
|
+
private focusRingVisible;
|
|
86
|
+
private readonly generatedId;
|
|
87
|
+
private readonly listboxId;
|
|
88
|
+
private readonly errorId;
|
|
89
|
+
private triggerEl;
|
|
90
|
+
private popupEl;
|
|
91
|
+
private searchEl;
|
|
92
|
+
private initialValues;
|
|
93
|
+
private typeahead;
|
|
94
|
+
private typeaheadTimer;
|
|
95
|
+
private outsideHandler;
|
|
96
|
+
private repositionHandler;
|
|
97
|
+
componentWillLoad(): void;
|
|
98
|
+
componentDidLoad(): void;
|
|
99
|
+
disconnectedCallback(): void;
|
|
100
|
+
syncFormValue(): void;
|
|
101
|
+
onLoadingChange(): void;
|
|
102
|
+
onOpenChange(open: boolean): void;
|
|
103
|
+
onSearchTermChange(): void;
|
|
104
|
+
onActiveIndexChange(): void;
|
|
105
|
+
formDisabledCallback(disabled: boolean): void;
|
|
106
|
+
formResetCallback(): void;
|
|
107
|
+
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
108
|
+
setFocus(): Promise<void>;
|
|
109
|
+
private get isDisabled();
|
|
110
|
+
private get allSections();
|
|
111
|
+
private get allOptions();
|
|
112
|
+
private get visibleSections();
|
|
113
|
+
private get visibleOptions();
|
|
114
|
+
private get resolvedValues();
|
|
115
|
+
private get hasSelection();
|
|
116
|
+
private get activeOptionId();
|
|
117
|
+
private scrollActiveOptionIntoView;
|
|
118
|
+
private bindPopupListeners;
|
|
119
|
+
private unbindPopupListeners;
|
|
120
|
+
private updatePosition;
|
|
121
|
+
private openPopup;
|
|
122
|
+
private closePopup;
|
|
123
|
+
private toggleOption;
|
|
124
|
+
private clearSelection;
|
|
125
|
+
private handleTypeahead;
|
|
126
|
+
private handleListKeyDown;
|
|
127
|
+
private handleTriggerKeyDown;
|
|
128
|
+
private renderOption;
|
|
129
|
+
render(): any;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=SelectMulti.d.ts.map
|
|
@@ -1,18 +1,112 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type SliderValue = number | number[];
|
|
3
|
+
export type SliderSize = 'md' | 'sm' | 'xs';
|
|
4
|
+
export type SliderOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
export type SliderThumbAlignment = 'edge' | 'center';
|
|
2
6
|
export declare class Slider {
|
|
3
|
-
|
|
4
|
-
|
|
7
|
+
el: HTMLElement;
|
|
8
|
+
internals: ElementInternals;
|
|
9
|
+
/** Current value. Assign a two-number array through the JavaScript property for a range slider. */
|
|
10
|
+
value: SliderValue;
|
|
5
11
|
min: number;
|
|
6
12
|
max: number;
|
|
7
13
|
step: number;
|
|
8
|
-
|
|
14
|
+
/** Minimum number of steps kept between two range thumbs. */
|
|
15
|
+
minStepsBetweenValues: number;
|
|
16
|
+
/** Visible field label. Supply aria-label when the label is intentionally hidden. */
|
|
17
|
+
label: string | undefined;
|
|
18
|
+
/** Show the formatted current value beside the visible label. */
|
|
19
|
+
showValue: boolean;
|
|
20
|
+
size: SliderSize;
|
|
21
|
+
orientation: SliderOrientation;
|
|
22
|
+
/** Keep the complete thumb inside the rail bounds, or center it on the endpoints. */
|
|
23
|
+
thumbAlignment: SliderThumbAlignment;
|
|
24
|
+
name: string | undefined;
|
|
25
|
+
form: string | undefined;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
/** Keep the value focusable and submittable while preventing changes. */
|
|
28
|
+
readOnly: boolean;
|
|
9
29
|
isInactive: boolean;
|
|
30
|
+
/** Direct accessible name for a single-thumb slider without a visible label. */
|
|
31
|
+
ariaLabel: string | null;
|
|
32
|
+
/** Id references for a visible single-thumb slider label. */
|
|
33
|
+
ariaLabelledby: string | undefined;
|
|
34
|
+
/** Id references for supporting guidance or error text. */
|
|
35
|
+
ariaDescribedby: string | undefined;
|
|
36
|
+
/** Accessible label for the lower thumb in a range slider. */
|
|
37
|
+
startLabel: string;
|
|
38
|
+
/** Accessible label for the upper thumb in a range slider. */
|
|
39
|
+
endLabel: string;
|
|
40
|
+
/** Human-readable value text for a single slider or both range thumbs. */
|
|
10
41
|
valueText: string | undefined;
|
|
11
|
-
/**
|
|
42
|
+
/** Per-thumb human-readable value text for a range slider. Assign through the JavaScript property. */
|
|
43
|
+
valueTexts: string[];
|
|
44
|
+
/** Locale used by Intl.NumberFormat for the visible value. */
|
|
45
|
+
locale: string | undefined;
|
|
46
|
+
/** Intl.NumberFormat options. Assign objects through the JavaScript property. */
|
|
47
|
+
formatOptions: Intl.NumberFormatOptions | undefined;
|
|
48
|
+
valuePrefix: string;
|
|
49
|
+
valueSuffix: string;
|
|
50
|
+
rangeSeparator: string;
|
|
51
|
+
/** Id applied to the first native range input. */
|
|
12
52
|
inputId: string | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
53
|
+
/** Emitted continuously while the value changes. */
|
|
54
|
+
dsChange: EventEmitter<SliderValue>;
|
|
55
|
+
/** Emitted when a pointer or keyboard value change is committed. */
|
|
56
|
+
dsCommit: EventEmitter<SliderValue>;
|
|
57
|
+
private formDisabled;
|
|
58
|
+
private dragging;
|
|
59
|
+
private focused;
|
|
60
|
+
private touched;
|
|
61
|
+
private activeThumbIndex;
|
|
62
|
+
private externalLabelledby;
|
|
63
|
+
private readonly generatedId;
|
|
64
|
+
private readonly labelId;
|
|
65
|
+
private initialValue;
|
|
66
|
+
private lastCommittedValue;
|
|
67
|
+
private pointerId;
|
|
68
|
+
private pointerStartValue;
|
|
69
|
+
private controlEl;
|
|
70
|
+
componentWillLoad(): void;
|
|
71
|
+
componentDidLoad(): void;
|
|
72
|
+
syncFormValue(): void;
|
|
73
|
+
formDisabledCallback(disabled: boolean): void;
|
|
74
|
+
formResetCallback(): void;
|
|
75
|
+
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
76
|
+
setFocus(index?: number): Promise<void>;
|
|
77
|
+
private get isDisabled();
|
|
78
|
+
private get isRange();
|
|
79
|
+
private get safeStep();
|
|
80
|
+
private get safeMin();
|
|
81
|
+
private get safeMax();
|
|
82
|
+
private get minimumGap();
|
|
83
|
+
private get resolvedValues();
|
|
84
|
+
private get publicValue();
|
|
85
|
+
private cloneValue;
|
|
86
|
+
private valuesEqual;
|
|
87
|
+
private decimalPlaces;
|
|
88
|
+
private snap;
|
|
89
|
+
private percent;
|
|
90
|
+
private allowedMin;
|
|
91
|
+
private allowedMax;
|
|
92
|
+
private setValueAt;
|
|
93
|
+
private commitIfChanged;
|
|
94
|
+
private syncNativeLabels;
|
|
95
|
+
private formattedValue;
|
|
96
|
+
private ariaValueText;
|
|
97
|
+
private handleNativeInput;
|
|
98
|
+
private handleNativeChange;
|
|
99
|
+
private handleKeyDown;
|
|
100
|
+
private handleFocus;
|
|
101
|
+
private handleBlur;
|
|
102
|
+
private handleHostClick;
|
|
103
|
+
private pointerPercent;
|
|
104
|
+
private valueFromPointer;
|
|
105
|
+
private closestThumbIndex;
|
|
106
|
+
private handlePointerDown;
|
|
107
|
+
private handlePointerMove;
|
|
108
|
+
private endPointerInteraction;
|
|
109
|
+
private renderThumb;
|
|
16
110
|
render(): any;
|
|
17
111
|
}
|
|
18
112
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -26,6 +26,8 @@ export declare class Switch {
|
|
|
26
26
|
dsChange: EventEmitter<boolean>;
|
|
27
27
|
private initialChecked;
|
|
28
28
|
private formDisabled;
|
|
29
|
+
private focused;
|
|
30
|
+
private touched;
|
|
29
31
|
componentWillLoad(): void;
|
|
30
32
|
componentDidLoad(): void;
|
|
31
33
|
syncFormValue(): void;
|
|
@@ -35,6 +37,8 @@ export declare class Switch {
|
|
|
35
37
|
private syncNativeLabels;
|
|
36
38
|
private handleClick;
|
|
37
39
|
private handleKeyDown;
|
|
40
|
+
private handleFocus;
|
|
41
|
+
private handleBlur;
|
|
38
42
|
render(): any;
|
|
39
43
|
}
|
|
40
44
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -10,6 +10,7 @@ export declare class TabGroup {
|
|
|
10
10
|
ariaLabelledby: string | undefined;
|
|
11
11
|
dsChange: EventEmitter<string>;
|
|
12
12
|
private get selectableTabs();
|
|
13
|
+
private get focusableTabId();
|
|
13
14
|
private selectTab;
|
|
14
15
|
private focusTab;
|
|
15
16
|
/** Keep focus on the selected tab when value changes externally (e.g. BarNav menu). */
|
|
@@ -8,7 +8,14 @@ export declare class Text {
|
|
|
8
8
|
* `true`: display bold, title/caption semibold, body medium.
|
|
9
9
|
*/
|
|
10
10
|
emphasis: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Semantic foreground color token or CSS variable. `tertiary` and the
|
|
13
|
+
* still-fainter `quaternary` are restricted to genuinely inactive/disabled
|
|
14
|
+
* UI content or purely decorative content; prefer the owning control's
|
|
15
|
+
* inactive state whenever one exists.
|
|
16
|
+
*/
|
|
11
17
|
color: TextColor;
|
|
18
|
+
/** Link underline or dotted hidden-interaction affordance; does not add semantics. */
|
|
12
19
|
decoration: TextDecoration | undefined;
|
|
13
20
|
italic: boolean;
|
|
14
21
|
/** Animate the visible glyphs with the shared loading shimmer treatment. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type TextVariant = 'text-display-medium' | 'text-display-small' | 'text-title-large' | 'text-title-medium' | 'text-title-small' | 'text-body-large' | 'text-body-medium' | 'text-body-small' | 'text-caption';
|
|
2
|
-
export type TextColorToken = 'primary' | 'secondary' | 'tertiary' | 'brand' | 'negative' | 'positive' | 'warning' | 'caution' | 'ai' | 'on-strong' | 'on-bold' | 'inherit';
|
|
2
|
+
export type TextColorToken = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'brand' | 'negative' | 'positive' | 'warning' | 'caution' | 'ai' | 'on-strong' | 'on-bold' | 'inherit';
|
|
3
3
|
export type TextColor = TextColorToken | `var(--${string})`;
|
|
4
4
|
export type TextDecoration = 'none' | 'underline' | 'dotted-underline';
|
|
5
5
|
export type TextAlign = 'left' | 'center' | 'right';
|