@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
|
@@ -3,4 +3,5 @@ export * from '../angular/proxies.js';
|
|
|
3
3
|
export { BooleanValueAccessor } from '../angular/boolean-value-accessor.js';
|
|
4
4
|
export { RadioValueAccessor } from '../angular/radio-value-accessor.js';
|
|
5
5
|
export { SelectValueAccessor } from '../angular/select-value-accessor.js';
|
|
6
|
+
export { SelectMultiValueAccessor } from './select-multi-value-accessor.js';
|
|
6
7
|
export { TextValueAccessor } from '../angular/text-value-accessor.js';
|
|
@@ -3,4 +3,5 @@ export * from '../angular/proxies.js';
|
|
|
3
3
|
export { BooleanValueAccessor } from '../angular/boolean-value-accessor.js';
|
|
4
4
|
export { RadioValueAccessor } from '../angular/radio-value-accessor.js';
|
|
5
5
|
export { SelectValueAccessor } from '../angular/select-value-accessor.js';
|
|
6
|
+
export { SelectMultiValueAccessor } from './select-multi-value-accessor.js';
|
|
6
7
|
export { TextValueAccessor } from '../angular/text-value-accessor.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from '../angular/value-accessor';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectMultiValueAccessor extends ValueAccessor {
|
|
5
|
+
constructor(el: ElementRef<HTMLDsSelectMultiElement>);
|
|
6
|
+
writeValue(value: unknown): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultiValueAccessor, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectMultiValueAccessor, "ds-select-multi", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Directive, forwardRef } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { ValueAccessor } from '../angular/value-accessor.js';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class SelectMultiValueAccessor extends ValueAccessor {
|
|
6
|
+
constructor(el) {
|
|
7
|
+
super(el);
|
|
8
|
+
}
|
|
9
|
+
writeValue(value) {
|
|
10
|
+
const values = Array.isArray(value)
|
|
11
|
+
? value.filter((item) => typeof item === 'string')
|
|
12
|
+
: [];
|
|
13
|
+
this.el.nativeElement.values = values;
|
|
14
|
+
this.lastValue = values;
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SelectMultiValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: SelectMultiValueAccessor, isStandalone: true, selector: "ds-select-multi", host: { listeners: { "dsChange": "handleChangeEvent($event.target?.[\"values\"])" } }, providers: [
|
|
18
|
+
{
|
|
19
|
+
provide: NG_VALUE_ACCESSOR,
|
|
20
|
+
useExisting: forwardRef(() => SelectMultiValueAccessor),
|
|
21
|
+
multi: true,
|
|
22
|
+
},
|
|
23
|
+
], usesInheritance: true, ngImport: i0 }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SelectMultiValueAccessor, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
selector: 'ds-select-multi',
|
|
29
|
+
host: {
|
|
30
|
+
'(dsChange)': 'handleChangeEvent($event.target?.["values"])',
|
|
31
|
+
},
|
|
32
|
+
providers: [
|
|
33
|
+
{
|
|
34
|
+
provide: NG_VALUE_ACCESSOR,
|
|
35
|
+
useExisting: forwardRef(() => SelectMultiValueAccessor),
|
|
36
|
+
multi: true,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
side: MenuSide;
|
|
8
|
-
align: MenuAlign;
|
|
9
|
-
sideOffsetPx: number;
|
|
10
|
-
alignOffsetPx: number;
|
|
11
|
-
viewportPadPx: number;
|
|
12
|
-
viewportWidth: number;
|
|
13
|
-
viewportHeight: number;
|
|
14
|
-
}
|
|
15
|
-
/** Pure layout math for ds-menu — anchor rect + placement props → viewport-fixed x/y. */
|
|
16
|
-
export declare function computeMenuPosition(input: MenuPositionInput): {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
1
|
+
import { computeAnchoredPopupPosition, type AnchoredPopupAlign, type AnchoredPopupPositionInput, type AnchoredPopupSide } from '../../utils/anchored-popup';
|
|
2
|
+
export type MenuSide = AnchoredPopupSide;
|
|
3
|
+
export type MenuAlign = AnchoredPopupAlign;
|
|
4
|
+
export type MenuPositionInput = AnchoredPopupPositionInput;
|
|
5
|
+
/** Backward-compatible menu alias for the shared anchored-popup layout math. */
|
|
6
|
+
export declare const computeMenuPosition: typeof computeAnchoredPopupPosition;
|
|
@@ -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';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type AnchoredPopupSide = 'top' | 'right' | 'bottom' | 'left';
|
|
2
|
+
export type AnchoredPopupAlign = 'start' | 'center' | 'end';
|
|
3
|
+
export interface AnchoredPopupPositionInput {
|
|
4
|
+
anchorRect: Pick<DOMRectReadOnly, 'top' | 'left' | 'right' | 'bottom' | 'width' | 'height'>;
|
|
5
|
+
popupWidth: number;
|
|
6
|
+
popupHeight: number;
|
|
7
|
+
side: AnchoredPopupSide;
|
|
8
|
+
align: AnchoredPopupAlign;
|
|
9
|
+
sideOffsetPx: number;
|
|
10
|
+
alignOffsetPx: number;
|
|
11
|
+
viewportPadPx: number;
|
|
12
|
+
viewportWidth: number;
|
|
13
|
+
viewportHeight: number;
|
|
14
|
+
}
|
|
15
|
+
/** Pure viewport-fixed anchored-popup layout math shared by menus and selects. */
|
|
16
|
+
export declare function computeAnchoredPopupPosition(input: AnchoredPopupPositionInput): {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
@@ -29,7 +29,8 @@ export { DsPagination } from "./ds-pagination.js";
|
|
|
29
29
|
export { DsPanelNav } from "./ds-panel-nav.js";
|
|
30
30
|
export { DsPanelSubNav } from "./ds-panel-sub-nav.js";
|
|
31
31
|
export { DsPanelTools } from "./ds-panel-tools.js";
|
|
32
|
-
export {
|
|
32
|
+
export { DsRadio } from "./ds-radio.js";
|
|
33
|
+
export { DsSelectMulti } from "./ds-select-multi.js";
|
|
33
34
|
export { DsSelect } from "./ds-select.js";
|
|
34
35
|
export { DsShellGradientPicker } from "./ds-shell-gradient-picker.js";
|
|
35
36
|
export { DsShellGradientSwatch } from "./ds-shell-gradient-swatch.js";
|
package/dist/react/components.js
CHANGED
|
@@ -30,7 +30,8 @@ export { DsPagination } from "./ds-pagination.js";
|
|
|
30
30
|
export { DsPanelNav } from "./ds-panel-nav.js";
|
|
31
31
|
export { DsPanelSubNav } from "./ds-panel-sub-nav.js";
|
|
32
32
|
export { DsPanelTools } from "./ds-panel-tools.js";
|
|
33
|
-
export {
|
|
33
|
+
export { DsRadio } from "./ds-radio.js";
|
|
34
|
+
export { DsSelectMulti } from "./ds-select-multi.js";
|
|
34
35
|
export { DsSelect } from "./ds-select.js";
|
|
35
36
|
export { DsShellGradientPicker } from "./ds-shell-gradient-picker.js";
|
|
36
37
|
export { DsShellGradientSwatch } from "./ds-shell-gradient-swatch.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type DsRadioCustomEvent } from "@ds-mo/ui";
|
|
7
|
+
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
|
+
import { DsRadio as DsRadioElement } from "@ds-mo/ui/dist/components/ds-radio.js";
|
|
9
|
+
export type DsRadioEvents = {
|
|
10
|
+
onDsChange: EventName<DsRadioCustomEvent<string>>;
|
|
11
|
+
};
|
|
12
|
+
export declare const DsRadio: StencilReactComponent<DsRadioElement, DsRadioEvents, Components.DsRadio>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DsRadio as DsRadioElement, defineCustomElement as defineDsRadio } from "@ds-mo/ui/dist/components/ds-radio.js";
|
|
5
|
+
export const DsRadio = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'ds-radio',
|
|
7
|
+
elementClass: DsRadioElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: { onDsChange: 'dsChange' },
|
|
11
|
+
defineCustomElement: defineDsRadio
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type DsSelectMultiCustomEvent } from "@ds-mo/ui";
|
|
7
|
+
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
|
+
import { DsSelectMulti as DsSelectMultiElement } from "@ds-mo/ui/dist/components/ds-select-multi.js";
|
|
9
|
+
export type DsSelectMultiEvents = {
|
|
10
|
+
onDsChange: EventName<DsSelectMultiCustomEvent<string[]>>;
|
|
11
|
+
onDsClear: EventName<DsSelectMultiCustomEvent<void>>;
|
|
12
|
+
onDsOpenChange: EventName<DsSelectMultiCustomEvent<boolean>>;
|
|
13
|
+
};
|
|
14
|
+
export declare const DsSelectMulti: StencilReactComponent<DsSelectMultiElement, DsSelectMultiEvents, Components.DsSelectMulti>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DsSelectMulti as DsSelectMultiElement, defineCustomElement as defineDsSelectMulti } from "@ds-mo/ui/dist/components/ds-select-multi.js";
|
|
5
|
+
export const DsSelectMulti = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'ds-select-multi',
|
|
7
|
+
elementClass: DsSelectMultiElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: {
|
|
11
|
+
onDsChange: 'dsChange',
|
|
12
|
+
onDsClear: 'dsClear',
|
|
13
|
+
onDsOpenChange: 'dsOpenChange'
|
|
14
|
+
},
|
|
15
|
+
defineCustomElement: defineDsSelectMulti
|
|
16
|
+
});
|
|
@@ -8,5 +8,7 @@ import type { Components } from "@ds-mo/ui/dist/components";
|
|
|
8
8
|
import { DsSelect as DsSelectElement } from "@ds-mo/ui/dist/components/ds-select.js";
|
|
9
9
|
export type DsSelectEvents = {
|
|
10
10
|
onDsChange: EventName<DsSelectCustomEvent<string>>;
|
|
11
|
+
onDsClear: EventName<DsSelectCustomEvent<void>>;
|
|
12
|
+
onDsOpenChange: EventName<DsSelectCustomEvent<boolean>>;
|
|
11
13
|
};
|
|
12
14
|
export declare const DsSelect: StencilReactComponent<DsSelectElement, DsSelectEvents, Components.DsSelect>;
|
package/dist/react/ds-select.js
CHANGED
|
@@ -7,6 +7,10 @@ export const DsSelect = /*@__PURE__*/ createComponent({
|
|
|
7
7
|
elementClass: DsSelectElement,
|
|
8
8
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
9
|
react: React,
|
|
10
|
-
events: {
|
|
10
|
+
events: {
|
|
11
|
+
onDsChange: 'dsChange',
|
|
12
|
+
onDsClear: 'dsClear',
|
|
13
|
+
onDsOpenChange: 'dsOpenChange'
|
|
14
|
+
},
|
|
11
15
|
defineCustomElement: defineDsSelect
|
|
12
16
|
});
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
-
import { type DsSliderCustomEvent } from "@ds-mo/ui";
|
|
6
|
+
import { type DsSliderCustomEvent, type SliderValue } from "@ds-mo/ui";
|
|
7
7
|
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
8
|
import { DsSlider as DsSliderElement } from "@ds-mo/ui/dist/components/ds-slider.js";
|
|
9
9
|
export type DsSliderEvents = {
|
|
10
|
-
onDsChange: EventName<DsSliderCustomEvent<
|
|
10
|
+
onDsChange: EventName<DsSliderCustomEvent<SliderValue>>;
|
|
11
|
+
onDsCommit: EventName<DsSliderCustomEvent<SliderValue>>;
|
|
11
12
|
};
|
|
12
|
-
export declare const DsSlider: StencilReactComponent<DsSliderElement, DsSliderEvents, Components.DsSlider
|
|
13
|
+
export declare const DsSlider: StencilReactComponent<DsSliderElement, DsSliderEvents, Components.DsSlider>;
|
package/dist/react/ds-slider.js
CHANGED
|
@@ -7,6 +7,9 @@ export const DsSlider = /*@__PURE__*/ createComponent({
|
|
|
7
7
|
elementClass: DsSliderElement,
|
|
8
8
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
9
|
react: React,
|
|
10
|
-
events: {
|
|
10
|
+
events: {
|
|
11
|
+
onDsChange: 'dsChange',
|
|
12
|
+
onDsCommit: 'dsCommit'
|
|
13
|
+
},
|
|
11
14
|
defineCustomElement: defineDsSlider
|
|
12
15
|
});
|
|
@@ -12,6 +12,8 @@ export declare class Badge {
|
|
|
12
12
|
surface: BadgeSurface;
|
|
13
13
|
/** Direct ring background override for component-local surfaces. */
|
|
14
14
|
background: string | undefined;
|
|
15
|
+
/** Show the separation ring when the badge overlaps an icon or other content. */
|
|
16
|
+
hasRing: boolean;
|
|
15
17
|
/**
|
|
16
18
|
* Ring samples the shell gradient stack (base fill + wash) instead of a flat
|
|
17
19
|
* `box-shadow`. Auto-enabled under an AppShell with an active gradient preset;
|
|
@@ -27,6 +27,8 @@ export declare class ButtonFilled {
|
|
|
27
27
|
* bold → faint, strong → medium, medium → strong, faint → bold.
|
|
28
28
|
*/
|
|
29
29
|
contrast: ButtonFilledContrast;
|
|
30
|
+
/** Use the half-radius treatment instead of the default control radius. */
|
|
31
|
+
rounded: boolean;
|
|
30
32
|
/** Disables interaction. */
|
|
31
33
|
isInactive: boolean;
|
|
32
34
|
/** Shows an inline loader and prevents interaction without applying inactive opacity. */
|
|
@@ -4,6 +4,7 @@ export type ButtonUnfilledBackground = 'faint' | 'medium' | 'bold' | 'strong' |
|
|
|
4
4
|
export type ButtonUnfilledVariant = 'icon' | 'label' | 'icon-label';
|
|
5
5
|
export type ButtonUnfilledSize = 'md' | 'sm' | 'xs';
|
|
6
6
|
export type ButtonUnfilledWidth = ControlWidth;
|
|
7
|
+
export type ButtonUnfilledPopup = 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
7
8
|
export declare class ButtonUnfilled {
|
|
8
9
|
el: HTMLElement;
|
|
9
10
|
/**
|
|
@@ -29,6 +30,8 @@ export declare class ButtonUnfilled {
|
|
|
29
30
|
activeFill: boolean;
|
|
30
31
|
/** Show a 1px secondary inset border. Default on; shell chrome can pass `false`. */
|
|
31
32
|
hasBorder: boolean;
|
|
33
|
+
/** Use the half-radius treatment instead of the default control radius. */
|
|
34
|
+
rounded: boolean;
|
|
32
35
|
/** Show a notification dot at the top-right of the icon zone (icon variant only). */
|
|
33
36
|
dot: boolean;
|
|
34
37
|
/** Disables interaction. */
|
|
@@ -43,7 +46,7 @@ export declare class ButtonUnfilled {
|
|
|
43
46
|
ariaLabel: string | null;
|
|
44
47
|
controls: string | undefined;
|
|
45
48
|
expanded: boolean | undefined;
|
|
46
|
-
haspopup:
|
|
49
|
+
haspopup: ButtonUnfilledPopup | undefined;
|
|
47
50
|
pressed: boolean | undefined;
|
|
48
51
|
/**
|
|
49
52
|
* Native `tabindex` for roving keyboard groups in shell chrome.
|
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type CheckboxSize = 'md' | 'sm' | 'xs';
|
|
2
3
|
export declare class Checkbox {
|
|
3
4
|
internals: ElementInternals;
|
|
4
5
|
private labelId;
|
|
6
|
+
/** Visible label and accessible name. Omitted only in presentation mode. */
|
|
5
7
|
label: string;
|
|
8
|
+
/** Current checked state. */
|
|
6
9
|
checked: boolean;
|
|
10
|
+
/** Visual and placement density. */
|
|
11
|
+
size: CheckboxSize;
|
|
12
|
+
/** Native form field name. */
|
|
7
13
|
name: string | undefined;
|
|
14
|
+
/** Submitted value when checked. */
|
|
8
15
|
value: string;
|
|
16
|
+
/** Native disabled state. */
|
|
9
17
|
disabled: boolean;
|
|
18
|
+
/** Require the checkbox to be checked for form validity. */
|
|
10
19
|
required: boolean;
|
|
20
|
+
/** Validation message used when a required checkbox is unchecked. */
|
|
11
21
|
requiredMessage: string;
|
|
22
|
+
/** Mixed visual state. Activation clears it before toggling checked. */
|
|
12
23
|
indeterminate: boolean;
|
|
24
|
+
/** Design-system inactive state. */
|
|
13
25
|
isInactive: boolean;
|
|
26
|
+
/** Visual-only indicator for a composite control that owns selection semantics. */
|
|
27
|
+
presentation: boolean;
|
|
28
|
+
/** Emitted after user activation with the new checked state. */
|
|
14
29
|
dsChange: EventEmitter<boolean>;
|
|
15
30
|
private initialChecked;
|
|
31
|
+
private initialIndeterminate;
|
|
16
32
|
private formDisabled;
|
|
17
33
|
componentWillLoad(): void;
|
|
18
34
|
syncFormValue(): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {} from './Checkbox';
|
|
1
|
+
export type { CheckboxSize } from './Checkbox';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export type EmptyStateType = 'no-content' | 'no-results' | 'no-results-filter' | 'no-access';
|
|
2
1
|
export declare class EmptyState {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
|
|
2
|
+
/** Optional decorative prefix glyph for the complete icon + title + body variant. */
|
|
3
|
+
icon: string | undefined;
|
|
4
|
+
/** Optional visual title. Use with body; required when icon is provided. */
|
|
5
|
+
heading: string | undefined;
|
|
6
|
+
/** Explanatory empty-state copy. Every supported variant includes body text. */
|
|
7
|
+
body: string;
|
|
7
8
|
render(): any;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
export declare class Field {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
/** Persistent visible label for the single slotted control. */
|
|
2
4
|
label: string;
|
|
3
|
-
/** ID
|
|
5
|
+
/** Explicit ID for the slotted control; generated when omitted. */
|
|
4
6
|
fieldId: string | undefined;
|
|
5
|
-
|
|
7
|
+
/** Optional guidance associated with the slotted control. */
|
|
8
|
+
description: string | undefined;
|
|
9
|
+
/** Invalid visual and accessible state forwarded to supported ds controls. */
|
|
10
|
+
error: boolean;
|
|
11
|
+
/** Visible error associated with the slotted control while error is true. */
|
|
12
|
+
errorMessage: string | undefined;
|
|
13
|
+
private focused;
|
|
14
|
+
private filled;
|
|
15
|
+
private dirty;
|
|
16
|
+
private touched;
|
|
17
|
+
private controlDisabled;
|
|
18
|
+
private controlRequired;
|
|
19
|
+
private readonly generatedId;
|
|
20
|
+
private controlContainer?;
|
|
21
|
+
private control?;
|
|
22
|
+
private initialValue;
|
|
23
|
+
private authoredAria;
|
|
24
|
+
componentDidLoad(): void;
|
|
25
|
+
componentDidRender(): void;
|
|
26
|
+
onFieldContractChange(): void;
|
|
27
|
+
private get controlId();
|
|
28
|
+
private get labelId();
|
|
29
|
+
private get descriptionId();
|
|
30
|
+
private get errorId();
|
|
31
|
+
private get renderedDescription();
|
|
32
|
+
private get renderedError();
|
|
33
|
+
private readValue;
|
|
34
|
+
private updateControlAttribute;
|
|
35
|
+
private findControl;
|
|
36
|
+
private syncControl;
|
|
37
|
+
private handleLabelClick;
|
|
38
|
+
private handleFocusIn;
|
|
39
|
+
private handleFocusOut;
|
|
40
|
+
private handleValueChange;
|
|
6
41
|
render(): any;
|
|
7
42
|
}
|
|
8
43
|
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -7,7 +7,12 @@ export declare class Icon {
|
|
|
7
7
|
name: string;
|
|
8
8
|
/** Iconography size token. Maps to `--dimension-iconography-{size}`. Default `md` = 20 px. */
|
|
9
9
|
size: IconSize;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Semantic foreground color token, or a raw CSS var reference. `tertiary`
|
|
12
|
+
* and the still-fainter `quaternary` are restricted to icons inside genuinely
|
|
13
|
+
* inactive/disabled UI or to purely decorative icons; informative icons must
|
|
14
|
+
* retain sufficient contrast.
|
|
15
|
+
*/
|
|
11
16
|
color: IconColor;
|
|
12
17
|
/** Accessible label. Sets `role="img"` and `aria-label`. Omit for decorative icons. */
|
|
13
18
|
label: string | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type ControlWidth } from '../../utils';
|
|
2
3
|
export type InputType = 'text' | 'email' | 'tel' | 'url' | 'search' | 'password';
|
|
4
|
+
export type InputSize = 'md' | 'sm' | 'xs';
|
|
5
|
+
export type InputWidth = ControlWidth;
|
|
3
6
|
export declare class Input {
|
|
4
7
|
el: HTMLElement;
|
|
5
8
|
internals: ElementInternals;
|
|
@@ -7,12 +10,29 @@ export declare class Input {
|
|
|
7
10
|
private errorId;
|
|
8
11
|
value: string;
|
|
9
12
|
name: string | undefined;
|
|
13
|
+
form: string | undefined;
|
|
10
14
|
disabled: boolean;
|
|
15
|
+
/** Keeps the value focusable and submittable while preventing edits. */
|
|
16
|
+
readOnly: boolean;
|
|
11
17
|
required: boolean;
|
|
12
18
|
requiredMessage: string;
|
|
13
19
|
clearLabel: string;
|
|
14
20
|
placeholder: string | undefined;
|
|
15
21
|
type: InputType;
|
|
22
|
+
/** Native browser autofill hint. */
|
|
23
|
+
autoComplete: string | undefined;
|
|
24
|
+
/** Preferred virtual keyboard without changing the value semantics. */
|
|
25
|
+
inputMode: string;
|
|
26
|
+
/** Preferred virtual-keyboard action label. */
|
|
27
|
+
enterKeyHint: string;
|
|
28
|
+
/** Control density. */
|
|
29
|
+
size: InputSize;
|
|
30
|
+
/** Width fit — fill the parent (default) or hug the available content. */
|
|
31
|
+
width: InputWidth;
|
|
32
|
+
/** Show the standard inset border. */
|
|
33
|
+
hasBorder: boolean;
|
|
34
|
+
/** Optional leading icon name. */
|
|
35
|
+
icon: string | undefined;
|
|
16
36
|
isInactive: boolean;
|
|
17
37
|
autoFocus: boolean;
|
|
18
38
|
error: boolean;
|
|
@@ -26,13 +46,19 @@ export declare class Input {
|
|
|
26
46
|
dsClear: EventEmitter<void>;
|
|
27
47
|
private initialValue;
|
|
28
48
|
private formDisabled;
|
|
49
|
+
private hasSuffix;
|
|
50
|
+
private focused;
|
|
51
|
+
private touched;
|
|
29
52
|
componentWillLoad(): void;
|
|
53
|
+
componentDidRender(): void;
|
|
30
54
|
syncFormValue(): void;
|
|
31
55
|
formDisabledCallback(disabled: boolean): void;
|
|
32
56
|
formResetCallback(): void;
|
|
33
57
|
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
34
58
|
setFocus(): Promise<void>;
|
|
35
59
|
private handleInput;
|
|
60
|
+
private handleFocus;
|
|
61
|
+
private handleBlur;
|
|
36
62
|
private handleClear;
|
|
37
63
|
render(): any;
|
|
38
64
|
}
|
|
@@ -4,7 +4,12 @@ export type LoaderColor = IconColor;
|
|
|
4
4
|
export declare class Loader {
|
|
5
5
|
/** Iconography size token. Maps to `--dimension-iconography-{size}`. Default `md` = 20 px. */
|
|
6
6
|
size: LoaderSize;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Semantic foreground color token, or a raw CSS var reference. Same tokens
|
|
9
|
+
* as `ds-icon`. Do not use `tertiary` or `quaternary` for a standalone or
|
|
10
|
+
* informative Loader; inherit a readable color from the owning busy control
|
|
11
|
+
* or region.
|
|
12
|
+
*/
|
|
8
13
|
color: LoaderColor;
|
|
9
14
|
/**
|
|
10
15
|
* Accessible label for standalone usage. Wraps the spinner in a live region
|
|
@@ -52,8 +52,14 @@ export declare class Menu {
|
|
|
52
52
|
private get closeAnimationMs();
|
|
53
53
|
private finishClose;
|
|
54
54
|
private get resolvedAnchor();
|
|
55
|
+
private get anchorFocusTarget();
|
|
56
|
+
private focusAnchor;
|
|
57
|
+
private moveFocusAfterTab;
|
|
58
|
+
private compositeTabLeavesPopup;
|
|
55
59
|
private get activeSections();
|
|
56
60
|
private get flatItems();
|
|
61
|
+
/** Rich preference content is a non-modal dialog, not an ARIA action menu. */
|
|
62
|
+
private get hasCompositeSections();
|
|
57
63
|
private cancelPositionRetry;
|
|
58
64
|
/** Retry until anchor + popup exist — do not reveal at 0,0 on a failed first pass. */
|
|
59
65
|
private schedulePositionUpdate;
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
side: MenuSide;
|
|
8
|
-
align: MenuAlign;
|
|
9
|
-
sideOffsetPx: number;
|
|
10
|
-
alignOffsetPx: number;
|
|
11
|
-
viewportPadPx: number;
|
|
12
|
-
viewportWidth: number;
|
|
13
|
-
viewportHeight: number;
|
|
14
|
-
}
|
|
15
|
-
/** Pure layout math for ds-menu — anchor rect + placement props → viewport-fixed x/y. */
|
|
16
|
-
export declare function computeMenuPosition(input: MenuPositionInput): {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
1
|
+
import { computeAnchoredPopupPosition, type AnchoredPopupAlign, type AnchoredPopupPositionInput, type AnchoredPopupSide } from '../../utils/anchored-popup';
|
|
2
|
+
export type MenuSide = AnchoredPopupSide;
|
|
3
|
+
export type MenuAlign = AnchoredPopupAlign;
|
|
4
|
+
export type MenuPositionInput = AnchoredPopupPositionInput;
|
|
5
|
+
/** Backward-compatible menu alias for the shared anchored-popup layout math. */
|
|
6
|
+
export declare const computeMenuPosition: typeof computeAnchoredPopupPosition;
|
|
20
7
|
//# sourceMappingURL=menu-position.d.ts.map
|
|
@@ -16,6 +16,7 @@ export declare class Modal {
|
|
|
16
16
|
private escapeHandler;
|
|
17
17
|
private tabHandler;
|
|
18
18
|
private closeTimer;
|
|
19
|
+
private inertedElements;
|
|
19
20
|
componentDidLoad(): void;
|
|
20
21
|
disconnectedCallback(): void;
|
|
21
22
|
onOpenChange(isOpen: boolean): void;
|
|
@@ -25,6 +26,10 @@ export declare class Modal {
|
|
|
25
26
|
private teardownListeners;
|
|
26
27
|
private close;
|
|
27
28
|
private handleBackdropMouseDown;
|
|
29
|
+
private get isTopModal();
|
|
30
|
+
/** Inert every sibling branch outside the modal without assuming it is a body child. */
|
|
31
|
+
private activateModal;
|
|
32
|
+
private deactivateModal;
|
|
28
33
|
private get resolvedWidth();
|
|
29
34
|
private get closeAnimationMs();
|
|
30
35
|
private finishClose;
|
|
@@ -39,6 +39,8 @@ export declare class PanelNav {
|
|
|
39
39
|
settingsNavigationLabel: string;
|
|
40
40
|
expandNavigationLabel: string;
|
|
41
41
|
collapseNavigationLabel: string;
|
|
42
|
+
/** Localized name for the body when overflow makes it a keyboard-scrollable region. */
|
|
43
|
+
navigationItemsLabel: string;
|
|
42
44
|
/** Emitted when a nav item is clicked. Detail = the item's `id`. */
|
|
43
45
|
dsNavSelect: EventEmitter<string>;
|
|
44
46
|
/** Emitted when the collapse toggle is clicked. Detail = new collapsed state. */
|
|
@@ -57,9 +59,12 @@ export declare class PanelNav {
|
|
|
57
59
|
private rovingIndex;
|
|
58
60
|
private viewportNarrow;
|
|
59
61
|
private urlDerivedActiveId;
|
|
62
|
+
private bodyScrollable;
|
|
60
63
|
private transitionCompletionHandler?;
|
|
61
64
|
private transitionFallbackTimer;
|
|
62
65
|
private resizeObserver?;
|
|
66
|
+
private scrollRegionObserver?;
|
|
67
|
+
private bodyEl?;
|
|
63
68
|
private isDragging;
|
|
64
69
|
private dragStartX;
|
|
65
70
|
private didSnap;
|
|
@@ -82,12 +87,16 @@ export declare class PanelNav {
|
|
|
82
87
|
onNavStyleChange(newVal: NavChromeStyle): void;
|
|
83
88
|
componentWillLoad(): void;
|
|
84
89
|
componentDidLoad(): void;
|
|
90
|
+
componentDidRender(): void;
|
|
85
91
|
disconnectedCallback(): void;
|
|
86
92
|
private startCollapseAnimation;
|
|
87
93
|
private finishCollapseAnimation;
|
|
88
94
|
private clearCollapseAnimationCompletion;
|
|
89
95
|
private connectResizeObserver;
|
|
90
96
|
private disconnectResizeObserver;
|
|
97
|
+
private connectScrollRegionObserver;
|
|
98
|
+
private disconnectScrollRegionObserver;
|
|
99
|
+
private updateBodyScrollable;
|
|
91
100
|
/** Derive active ID from the current URL by matching item `href` values.
|
|
92
101
|
* Uses longest segment-boundary prefix match. */
|
|
93
102
|
private syncActiveFromUrl;
|
|
@@ -4,19 +4,35 @@ export interface RadioOption {
|
|
|
4
4
|
value: string;
|
|
5
5
|
isInactive?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type RadioSize = 'md' | 'sm' | 'xs';
|
|
8
|
+
export declare class Radio {
|
|
8
9
|
el: HTMLElement;
|
|
9
10
|
internals: ElementInternals;
|
|
11
|
+
/** Visible choices in this one-of-many set. */
|
|
10
12
|
options: RadioOption[];
|
|
13
|
+
/** Selected option value. */
|
|
11
14
|
value: string;
|
|
15
|
+
/** Visual and placement density for every option. */
|
|
16
|
+
size: RadioSize;
|
|
17
|
+
/** Native form field name. */
|
|
12
18
|
name: string | undefined;
|
|
19
|
+
/** Associates the radio set with a form by id when rendered outside that form. */
|
|
20
|
+
form: string | undefined;
|
|
21
|
+
/** Native disabled state for the complete set. */
|
|
13
22
|
disabled: boolean;
|
|
23
|
+
/** Require one option to be selected for form validity. */
|
|
14
24
|
required: boolean;
|
|
25
|
+
/** Validation message used when a required set has no selection. */
|
|
15
26
|
requiredMessage: string;
|
|
27
|
+
/** Layout direction for the option set. */
|
|
16
28
|
direction: 'vertical' | 'horizontal';
|
|
29
|
+
/** Design-system inactive state for the complete set. */
|
|
17
30
|
isInactive: boolean;
|
|
31
|
+
/** Accessible name when visible group labeling is unavailable. */
|
|
18
32
|
ariaLabel: string | null;
|
|
33
|
+
/** Id reference for a visible group label. */
|
|
19
34
|
ariaLabelledby: string | undefined;
|
|
35
|
+
/** Emitted after user selection with the selected option value. */
|
|
20
36
|
dsChange: EventEmitter<string>;
|
|
21
37
|
private initialValue;
|
|
22
38
|
private formDisabled;
|
|
@@ -30,4 +46,4 @@ export declare class RadioGroup {
|
|
|
30
46
|
private selectItem;
|
|
31
47
|
render(): any;
|
|
32
48
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
49
|
+
//# sourceMappingURL=Radio.d.ts.map
|