dap-design-system 0.50.2 → 0.52.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/dist/components/button/button.variants.d.ts +1 -1
- package/dist/components/chip/chip.component.d.ts +14 -0
- package/dist/components/code-puncher/code-puncher-slot.component.d.ts +33 -0
- package/dist/components/code-puncher/code-puncher.component.d.ts +75 -0
- package/dist/components/code-puncher/code-puncher.context.d.ts +24 -0
- package/dist/components/code-puncher/code-puncher.d.ts +12 -0
- package/dist/components/datatable/datatable.component.d.ts +13 -0
- package/dist/components/icons/editor/editor-separator/editor-separator.component.d.ts +30 -0
- package/dist/components/icons/editor/editor-separator/editor-separator.d.ts +8 -0
- package/dist/components/link/link.variants.d.ts +1 -1
- package/dist/components/modal/modal-base-element.d.ts +1 -0
- package/dist/components/option-group/option-group.component.d.ts +24 -0
- package/dist/components/option-group/option-group.d.ts +8 -0
- package/dist/components/scroll-progress/scroll-progress.component.d.ts +57 -0
- package/dist/components/select/select.component.d.ts +11 -1
- package/dist/{components-C0YPUxrS.js → components-Dm4sHfpO.js} +6010 -5241
- package/dist/components-Dm4sHfpO.js.map +1 -0
- package/dist/components.d.ts +4 -0
- package/dist/components.js +80 -76
- package/dist/dap-design-system.d.ts +5 -0
- package/dist/dds.js +238 -182
- package/dist/dds.js.map +1 -1
- package/dist/events/dds-complete.d.ts +8 -0
- package/dist/events/events.d.ts +1 -0
- package/dist/{icon-bypnV5kI.js → icon-DCIVxXwu.js} +3 -3
- package/dist/{icon-bypnV5kI.js.map → icon-DCIVxXwu.js.map} +1 -1
- package/dist/icons.js +3 -2
- package/dist/icons.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +622 -450
- package/dist/manifest/vscode.html-custom-data.json +563 -413
- package/dist/manifest/web-types.json +1356 -998
- package/dist/react/dap-ds-code-puncher/index.d.ts +54 -0
- package/dist/react/dap-ds-code-puncher-slot/index.d.ts +12 -0
- package/dist/react/dap-ds-icon-separator/index.d.ts +18 -0
- package/dist/react/dap-ds-option-group/index.d.ts +18 -0
- package/dist/react/dap-ds-scroll-progress/index.d.ts +23 -0
- package/dist/react/index.d.ts +23 -18
- package/dist/react-types.ts +25 -20
- package/dist/react.js +736 -694
- package/dist/react.js.map +1 -1
- package/package.json +13 -13
- package/dist/components-C0YPUxrS.js.map +0 -1
|
@@ -2,4 +2,4 @@ export declare const buttonVariants: (props?: ({
|
|
|
2
2
|
intent?: "clean" | "subtle" | "primary" | "outline" | "primary-inverted" | "outline-inverted" | "subtle-inverted" | "clean-inverted" | "subtle-neutral" | "subtle-quiet" | "subtle-quiet-inverted" | "subtle-menu" | "subtle-menu-item" | null | undefined;
|
|
3
3
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
4
4
|
shape?: "button" | "circle" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -51,7 +51,21 @@ export default class DapDSChip extends DdsElement {
|
|
|
51
51
|
value?: string;
|
|
52
52
|
/** The aria label for the delete button */
|
|
53
53
|
deleteAriaLabel?: string;
|
|
54
|
+
private _slotNodes;
|
|
55
|
+
private _slotTextContent;
|
|
54
56
|
static readonly styles: import('lit').CSSResult;
|
|
57
|
+
/**
|
|
58
|
+
* Gets the text content from the slot nodes
|
|
59
|
+
*/
|
|
60
|
+
private extractSlotTextContent;
|
|
61
|
+
/**
|
|
62
|
+
* Handles slot content changes
|
|
63
|
+
*/
|
|
64
|
+
private handleSlotChange;
|
|
65
|
+
/**
|
|
66
|
+
* Gets the aria-label for the chip when removable
|
|
67
|
+
*/
|
|
68
|
+
private getRemovableAriaLabel;
|
|
55
69
|
updated(changedProperties: Map<string, unknown>): void;
|
|
56
70
|
private handleClick;
|
|
57
71
|
private handleRemove;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-code-puncher-slot`
|
|
5
|
+
* @summary Individual digit input slot for code puncher.
|
|
6
|
+
* @element dap-ds-code-puncher-slot
|
|
7
|
+
* @title - Code puncher slot
|
|
8
|
+
*
|
|
9
|
+
* @csspart base - The slot container.
|
|
10
|
+
* @csspart input - The input element.
|
|
11
|
+
*/
|
|
12
|
+
export default class DapDSCodePuncherSlot extends DdsElement {
|
|
13
|
+
static readonly styles: import('lit').CSSResult;
|
|
14
|
+
private _consumer;
|
|
15
|
+
private _ctx;
|
|
16
|
+
private _input;
|
|
17
|
+
private _index;
|
|
18
|
+
private _isActive;
|
|
19
|
+
private _registered;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
protected willUpdate(_changedProperties: Map<string, unknown>): void;
|
|
23
|
+
get disabled(): boolean;
|
|
24
|
+
get readonly(): boolean;
|
|
25
|
+
get size(): 'xs' | 'sm' | 'lg';
|
|
26
|
+
focus(): void;
|
|
27
|
+
private _onInput;
|
|
28
|
+
private _onKeydown;
|
|
29
|
+
private _handlePaste;
|
|
30
|
+
private _onFocus;
|
|
31
|
+
private _onBlur;
|
|
32
|
+
render(): typeof nothing | import('lit-html').TemplateResult<1>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { PropertyValueMap } from 'lit';
|
|
2
|
+
import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-code-puncher`
|
|
5
|
+
* @summary A composable PIN/OTP input component for entering verification codes.
|
|
6
|
+
* @element dap-ds-code-puncher
|
|
7
|
+
* @title - Code Puncher
|
|
8
|
+
* @group code-puncher
|
|
9
|
+
*
|
|
10
|
+
* @property {string} value - The complete code value.
|
|
11
|
+
* @property {boolean} mask - Mask input like password. Default is false.
|
|
12
|
+
* @property {string} pattern - Regex pattern for allowed characters. Default is '[0-9]'.
|
|
13
|
+
* @property {string} placeholder - Placeholder character for empty slots.
|
|
14
|
+
* @property {'xs' | 'sm' | 'lg'} size - The size of the slots. Default is 'sm'.
|
|
15
|
+
* @property {string} label - The label of the component.
|
|
16
|
+
* @property {string} description - The description of the component.
|
|
17
|
+
* @property {string} tooltip - The tooltip of the component.
|
|
18
|
+
* @property {string} feedback - The feedback message.
|
|
19
|
+
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type.
|
|
20
|
+
* @property {'success' | 'error'} status - The status of the component.
|
|
21
|
+
* @property {boolean} disabled - Disable all slots. Default is false.
|
|
22
|
+
* @property {boolean} readonly - Read-only state. Default is false.
|
|
23
|
+
* @property {boolean} required - Required for form validation. Default is false.
|
|
24
|
+
* @property {string} name - Form element name.
|
|
25
|
+
* @property {string} autocomplete - Autocomplete hint. Default is 'one-time-code'.
|
|
26
|
+
*
|
|
27
|
+
* @event {{ value: string, index: number }} dds-input - Fires on each digit input.
|
|
28
|
+
* @event {{ value: string }} dds-change - Fires when value changes.
|
|
29
|
+
* @event {{ value: string }} dds-complete - Fires when all slots are filled.
|
|
30
|
+
* @event dds-focus - Fires when component gains focus.
|
|
31
|
+
* @event dds-blur - Fires when component loses focus.
|
|
32
|
+
*
|
|
33
|
+
* @slot default - Slot for code-puncher-group, code-puncher-slot, and code-puncher-separator elements.
|
|
34
|
+
*
|
|
35
|
+
* @csspart base - The main container.
|
|
36
|
+
* @csspart slots - The slots container.
|
|
37
|
+
* @csspart label - The label element.
|
|
38
|
+
* @csspart description - The description element.
|
|
39
|
+
* @csspart feedback - The feedback element.
|
|
40
|
+
*/
|
|
41
|
+
export default class DapDSCodePuncher extends GenericFormElement {
|
|
42
|
+
mask: boolean;
|
|
43
|
+
pattern: string;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
autocomplete: string;
|
|
46
|
+
private _slots;
|
|
47
|
+
private _activeIndex;
|
|
48
|
+
private _chars;
|
|
49
|
+
private _hasFocus;
|
|
50
|
+
static readonly styles: import('lit').CSSResult;
|
|
51
|
+
private _patternRegex;
|
|
52
|
+
private _provider;
|
|
53
|
+
private _getContextValue;
|
|
54
|
+
connectedCallback(): void;
|
|
55
|
+
private _updateContext;
|
|
56
|
+
get value(): string;
|
|
57
|
+
set value(v: string);
|
|
58
|
+
protected willUpdate(changedProperties: PropertyValueMap<any>): void;
|
|
59
|
+
private _registerSlot;
|
|
60
|
+
private _unregisterSlot;
|
|
61
|
+
private _getCharAt;
|
|
62
|
+
private _setCharAt;
|
|
63
|
+
private _focusSlot;
|
|
64
|
+
private _handleKeydown;
|
|
65
|
+
private _handlePaste;
|
|
66
|
+
private _handleFocusIn;
|
|
67
|
+
private _handleFocusOut;
|
|
68
|
+
setActiveIndex(index: number): void;
|
|
69
|
+
get focusElement(): HTMLElement;
|
|
70
|
+
focus(): void;
|
|
71
|
+
setValidity(): void;
|
|
72
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
73
|
+
private _renderFeedback;
|
|
74
|
+
private _handleSlotChange;
|
|
75
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CommonFormElementSize } from '../../common/types';
|
|
2
|
+
import { default as DapDSCodePuncherSlot } from './code-puncher-slot.component';
|
|
3
|
+
export interface CodePuncherContext {
|
|
4
|
+
registerSlot: (slot: DapDSCodePuncherSlot) => number;
|
|
5
|
+
unregisterSlot: (slot: DapDSCodePuncherSlot) => void;
|
|
6
|
+
getCharAt: (index: number) => string;
|
|
7
|
+
setCharAt: (index: number, char: string) => void;
|
|
8
|
+
focusSlot: (index: number) => void;
|
|
9
|
+
handleKeydown: (index: number, event: KeyboardEvent) => void;
|
|
10
|
+
handlePaste: (event: ClipboardEvent) => void;
|
|
11
|
+
activeIndex: number;
|
|
12
|
+
mask: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
size: CommonFormElementSize;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
pattern: RegExp;
|
|
18
|
+
status?: 'success' | 'error';
|
|
19
|
+
autocomplete: string;
|
|
20
|
+
slotCount: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const codePuncherContext: {
|
|
23
|
+
__context__: CodePuncherContext;
|
|
24
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as DapDSCodePuncher } from './code-puncher.component.js';
|
|
2
|
+
import { default as DapDSCodePuncherSlot } from './code-puncher-slot.component.js';
|
|
3
|
+
export * from './code-puncher.component.js';
|
|
4
|
+
export * from './code-puncher.context.js';
|
|
5
|
+
export * from './code-puncher-slot.component.js';
|
|
6
|
+
export { DapDSCodePuncher, DapDSCodePuncherSlot };
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'dap-ds-code-puncher': DapDSCodePuncher;
|
|
10
|
+
'dap-ds-code-puncher-slot': DapDSCodePuncherSlot;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -165,6 +165,14 @@ export default class DapDSDataTable<T> extends DdsElement {
|
|
|
165
165
|
pagination: PaginationState;
|
|
166
166
|
/** @ignore */
|
|
167
167
|
private _pagination;
|
|
168
|
+
/** Column sizing state of the table */
|
|
169
|
+
columnSizing?: Record<string, number>;
|
|
170
|
+
/** @ignore */
|
|
171
|
+
private _columnSizing;
|
|
172
|
+
/** ID of element labeling the table */
|
|
173
|
+
ariaLabel: string | null;
|
|
174
|
+
/** @ignore */
|
|
175
|
+
private resizeObserver?;
|
|
168
176
|
/** @ignore */
|
|
169
177
|
private get isTableEmpty();
|
|
170
178
|
/** @ignore */
|
|
@@ -175,6 +183,10 @@ export default class DapDSDataTable<T> extends DdsElement {
|
|
|
175
183
|
debug: boolean;
|
|
176
184
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
177
185
|
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
186
|
+
/**
|
|
187
|
+
* Cleanup resize observer
|
|
188
|
+
*/
|
|
189
|
+
disconnectedCallback(): void;
|
|
178
190
|
private readonly columnsMemo;
|
|
179
191
|
private renderHeaderCell;
|
|
180
192
|
private renderHeaderCellContent;
|
|
@@ -190,6 +202,7 @@ export default class DapDSDataTable<T> extends DdsElement {
|
|
|
190
202
|
private renderCell;
|
|
191
203
|
private handleRowClick;
|
|
192
204
|
private handleRowKeydown;
|
|
205
|
+
private readonly renderColgroup;
|
|
193
206
|
private readonly renderHeader;
|
|
194
207
|
private readonly renderSkeletonRows;
|
|
195
208
|
private readonly renderBody;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropertyValueMap } from 'lit';
|
|
2
|
+
import { DdsElement } from '../../../../internal/dds-hu-element';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-icon-separator`
|
|
5
|
+
* @summary An icon
|
|
6
|
+
* @element dap-ds-icon-separator
|
|
7
|
+
* @title - EditorSeparator
|
|
8
|
+
* @group icon
|
|
9
|
+
* @icontype editor
|
|
10
|
+
*
|
|
11
|
+
* @attribute {number} size - (optional) The width and height in pixels
|
|
12
|
+
* @attribute {boolean} selected - (optional) Sets the icon color via the `fill` attribute
|
|
13
|
+
* @attribute {string} accessibilityTitle - (optional) When using the icon standalone, make it meaningful for accessibility
|
|
14
|
+
* @attribute {boolean} focusable - (optional) If `true` the icon can receive focus
|
|
15
|
+
*
|
|
16
|
+
* @csspart base - The main icon container.
|
|
17
|
+
*/
|
|
18
|
+
export default class EditorSeparator extends DdsElement {
|
|
19
|
+
/** (optional) The width and height in pixels */
|
|
20
|
+
size?: number | undefined;
|
|
21
|
+
/** (optional) Sets the icon color via the `fill` attribute */
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
/** (optional) When using the icon standalone, make it meaningful for accessibility */
|
|
24
|
+
accessibilityTitle?: string;
|
|
25
|
+
/** (optional) If `true` the icon can receive focus */
|
|
26
|
+
focusable?: boolean;
|
|
27
|
+
static readonly styles: import('lit').CSSResult;
|
|
28
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
29
|
+
render(): import('lit-html').TemplateResult;
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as EditorSeparator } from './editor-separator.component.js';
|
|
2
|
+
export * from './editor-separator.component.js';
|
|
3
|
+
export default EditorSeparator;
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'dap-ds-icon-separator': EditorSeparator;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -3,4 +3,4 @@ export declare const linkVariants: (props?: ({
|
|
|
3
3
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
4
4
|
weight?: "bold" | "normal" | null | undefined;
|
|
5
5
|
decoration?: "none" | "underline" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -56,6 +56,7 @@ export default class ModalBaseElement extends DdsElement {
|
|
|
56
56
|
private getFocusableElements;
|
|
57
57
|
private getActiveElement;
|
|
58
58
|
private getElementFromElement;
|
|
59
|
+
private isElementContainedIn;
|
|
59
60
|
private handleFocusTrap;
|
|
60
61
|
renderModal(): import('lit-html').TemplateResult<1>;
|
|
61
62
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
/**
|
|
3
|
+
* `dap-ds-option-group`
|
|
4
|
+
* @summary An option group is a container for grouping related option items.
|
|
5
|
+
* Used with dap-ds-select to create grouped options that render as native optgroup elements.
|
|
6
|
+
* @element dap-ds-option-group
|
|
7
|
+
* @title - Option group
|
|
8
|
+
*
|
|
9
|
+
* @property {string} label - The label of the option group (displayed in native optgroup).
|
|
10
|
+
* @property {boolean} disabled - Whether all options in the group are disabled.
|
|
11
|
+
*
|
|
12
|
+
* @slot - The option items in this group.
|
|
13
|
+
*
|
|
14
|
+
* @csspart base - The main option group container.
|
|
15
|
+
* @csspart label - The label of the option group.
|
|
16
|
+
*/
|
|
17
|
+
export default class DapDSOptionGroup extends DdsElement {
|
|
18
|
+
/** The label of the option group */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Whether all options in the group are disabled */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
static readonly styles: import('lit').CSSResult;
|
|
23
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
export type ScrollProgressVariant = 'neutral' | 'brand' | 'negative' | 'positive' | 'inverted';
|
|
3
|
+
export type ScrollProgressSize = 'xs' | 'sm' | 'md';
|
|
4
|
+
/**
|
|
5
|
+
* `dap-ds-scroll-progress`
|
|
6
|
+
* @summary A progress bar that displays scroll position, supporting both page-level and container-level scroll tracking.
|
|
7
|
+
* @element dap-ds-scroll-progress
|
|
8
|
+
* @title - Scroll Progress
|
|
9
|
+
*
|
|
10
|
+
* @csspart base - The main scroll progress container.
|
|
11
|
+
* @csspart track - The progress track (background).
|
|
12
|
+
* @csspart fill - The progress fill bar.
|
|
13
|
+
*
|
|
14
|
+
* @cssprop --dds-scroll-progress-z-index - Z-index for fixed positioning (default: 1000)
|
|
15
|
+
* @cssprop --dds-scroll-progress-transition - Transition for progress updates (default: width 0.1s ease-out)
|
|
16
|
+
* @cssprop --dds-scroll-progress-track-color - Background color of the progress track (default: var(--dds-neutral-200))
|
|
17
|
+
* @cssprop --dds-scroll-progress-fill-color-neutral - Fill color for neutral variant
|
|
18
|
+
* @cssprop --dds-scroll-progress-fill-color-brand - Fill color for brand variant
|
|
19
|
+
* @cssprop --dds-scroll-progress-fill-color-negative - Fill color for negative variant
|
|
20
|
+
* @cssprop --dds-scroll-progress-fill-color-positive - Fill color for positive variant
|
|
21
|
+
* @cssprop --dds-scroll-progress-fill-color-inverted - Fill color for inverted variant
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export default class DapDSScrollProgress extends DdsElement {
|
|
25
|
+
/**
|
|
26
|
+
* CSS selector for scroll container. If not set, tracks global page scroll.
|
|
27
|
+
* When set, the component uses sticky positioning within the container.
|
|
28
|
+
*/
|
|
29
|
+
target?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The color variant of the progress indicator.
|
|
32
|
+
* @type {"neutral" | "brand" | "negative" | "positive" | "inverted"}
|
|
33
|
+
*/
|
|
34
|
+
variant: ScrollProgressVariant;
|
|
35
|
+
/**
|
|
36
|
+
* The size of the progress bar.
|
|
37
|
+
* @type {"xs" | "sm" | "md"}
|
|
38
|
+
*/
|
|
39
|
+
size: ScrollProgressSize;
|
|
40
|
+
/**
|
|
41
|
+
* Current progress value (0-100).
|
|
42
|
+
*/
|
|
43
|
+
private progress;
|
|
44
|
+
private targetElement;
|
|
45
|
+
private rafId;
|
|
46
|
+
private boundHandleScroll;
|
|
47
|
+
static readonly styles: import('lit').CSSResult;
|
|
48
|
+
constructor();
|
|
49
|
+
connectedCallback(): void;
|
|
50
|
+
disconnectedCallback(): void;
|
|
51
|
+
protected updated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
52
|
+
private setupScrollListener;
|
|
53
|
+
private cleanupScrollListener;
|
|
54
|
+
private handleScroll;
|
|
55
|
+
private calculateProgress;
|
|
56
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
57
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FloatingStrategy, PopupPlacement } from '../../common/types';
|
|
2
2
|
import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
3
|
+
import { default as DapDSOptionItem } from '../option-item/option-item.component';
|
|
3
4
|
import { default as DapDSOptionList } from '../option-list/option-list.component';
|
|
4
5
|
/**
|
|
5
6
|
* `dap-ds-select`
|
|
@@ -100,6 +101,8 @@ export default class DapDSSelect extends GenericFormElement {
|
|
|
100
101
|
sync?: boolean;
|
|
101
102
|
/** Whether the select is in mobile mode. */
|
|
102
103
|
isMobile?: boolean;
|
|
104
|
+
/** Whether to render a native HTML select element for mobile-friendly option selection. */
|
|
105
|
+
native?: boolean;
|
|
103
106
|
/** The loading state of the select. */
|
|
104
107
|
loading?: boolean;
|
|
105
108
|
/** The max heigth of the select dropdown. */
|
|
@@ -110,6 +113,8 @@ export default class DapDSSelect extends GenericFormElement {
|
|
|
110
113
|
* @type {'absolute' | 'fixed'}
|
|
111
114
|
*/
|
|
112
115
|
floatingStrategy: FloatingStrategy;
|
|
116
|
+
/** The aria label of the select (used when there's no label element) */
|
|
117
|
+
ariaLabel: string | null;
|
|
113
118
|
/**
|
|
114
119
|
* @ignore
|
|
115
120
|
*/
|
|
@@ -136,7 +141,7 @@ export default class DapDSSelect extends GenericFormElement {
|
|
|
136
141
|
* Get the active descendant element for aria-activedescendant
|
|
137
142
|
* Returns the currently focused option when dropdown is open, otherwise null
|
|
138
143
|
*/
|
|
139
|
-
getActiveDescendant():
|
|
144
|
+
getActiveDescendant(): DapDSOptionItem | null | undefined;
|
|
140
145
|
/**
|
|
141
146
|
* Get the aria-describedby value, combining description and feedback IDs
|
|
142
147
|
*/
|
|
@@ -151,6 +156,11 @@ export default class DapDSSelect extends GenericFormElement {
|
|
|
151
156
|
handleInvalid(event: Event): void;
|
|
152
157
|
private readonly handleSelectedChange;
|
|
153
158
|
private readonly handleOptionDeselect;
|
|
159
|
+
private readonly handleNativeChange;
|
|
160
|
+
private renderNativeOption;
|
|
161
|
+
private renderNativeOptgroup;
|
|
162
|
+
private renderNativeOptions;
|
|
163
|
+
private renderNativeSelect;
|
|
154
164
|
renderTriggerElement(): import('lit-html').TemplateResult;
|
|
155
165
|
renderOptionList(): import('lit-html').TemplateResult;
|
|
156
166
|
render(): import('lit-html').TemplateResult;
|