dap-design-system 0.57.8 → 0.57.10
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/banner/banner.component.d.ts +2 -0
- package/dist/components/calendar/calendar.component.d.ts +4 -0
- package/dist/components/callout/callout.component.d.ts +2 -0
- package/dist/components/checkbox/checkbox.component.d.ts +1 -0
- package/dist/components/chip/chip.component.d.ts +2 -0
- package/dist/components/code-puncher/code-puncher.component.d.ts +1 -0
- package/dist/components/combobox/comboboxBase.d.ts +4 -0
- package/dist/components/copybox-input/copybox-input.component.d.ts +3 -0
- package/dist/components/datatable/datatable.component.d.ts +2 -0
- package/dist/components/datepicker/datepicker.component.d.ts +5 -0
- package/dist/components/file-input/file-input-list-item.component.d.ts +2 -0
- package/dist/components/file-input/file-input.component.d.ts +6 -0
- package/dist/components/form/form-label/form-label.component.d.ts +1 -0
- package/dist/components/form/input-group/input-group.component.d.ts +1 -0
- package/dist/components/form/radio-group/radio-group.component.d.ts +1 -0
- package/dist/components/image-zoom/image-zoom.component.d.ts +4 -0
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/label/label.component.d.ts +1 -0
- package/dist/components/modal/modal-base-element.d.ts +6 -0
- package/dist/components/navigation-menu/navigation-menu-item.component.d.ts +2 -0
- package/dist/components/number-input/number-input.component.d.ts +5 -0
- package/dist/components/pager/pager.component.d.ts +2 -0
- package/dist/components/password-input/password-input.component.d.ts +3 -0
- package/dist/components/radio-button/radio-button.component.d.ts +1 -0
- package/dist/components/select/select.component.d.ts +1 -0
- package/dist/components/snackbar/snackbar-message.component.d.ts +2 -0
- package/dist/components/switch/switch.component.d.ts +1 -0
- package/dist/components/textarea/textarea.component.d.ts +1 -0
- package/dist/components/timepicker/time-grid.component.d.ts +8 -0
- package/dist/components/timepicker/timepicker.component.d.ts +5 -0
- package/dist/{components-B66BAgiP.js → components-Dgr06usf.js} +6872 -6723
- package/dist/components-Dgr06usf.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/components.native.css +21 -21
- package/dist/components.native.css.map +1 -1
- package/dist/dds.js +1 -1
- package/dist/internal/mixin/labelableMixin.d.ts +1 -0
- package/dist/manifest/types/vue/index.d.ts +298 -210
- package/dist/manifest/vscode.html-custom-data.json +385 -251
- package/dist/manifest/web-types.json +844 -436
- package/dist/react/dap-ds-checkbox/index.d.ts +1 -0
- package/dist/react/dap-ds-code-puncher/index.d.ts +1 -0
- package/dist/react/dap-ds-copybox-input/index.d.ts +1 -0
- package/dist/react/dap-ds-datepicker/index.d.ts +1 -0
- package/dist/react/dap-ds-file-input/index.d.ts +2 -0
- package/dist/react/dap-ds-form-label/index.d.ts +1 -0
- package/dist/react/dap-ds-input/index.d.ts +1 -0
- package/dist/react/dap-ds-input-group/index.d.ts +1 -0
- package/dist/react/dap-ds-label/index.d.ts +1 -0
- package/dist/react/dap-ds-number-input/index.d.ts +1 -0
- package/dist/react/dap-ds-password-input/index.d.ts +1 -0
- package/dist/react/dap-ds-radio-button/index.d.ts +1 -0
- package/dist/react/dap-ds-radio-group/index.d.ts +1 -0
- package/dist/react/dap-ds-select/index.d.ts +1 -0
- package/dist/react/dap-ds-switch/index.d.ts +1 -0
- package/dist/react/dap-ds-textarea/index.d.ts +1 -0
- package/dist/react/dap-ds-timepicker/index.d.ts +1 -0
- package/dist/react/index.d.ts +9 -9
- package/dist/react-types.ts +9 -9
- package/dist/react.js +115 -115
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-B66BAgiP.js.map +0 -1
|
@@ -69,6 +69,8 @@ export default class DapDSBanner extends DdsElement {
|
|
|
69
69
|
opened: string;
|
|
70
70
|
/** The aria-label for the close button */
|
|
71
71
|
closeButtonLabel: string;
|
|
72
|
+
/** `data-testid` for the close button. */
|
|
73
|
+
closeButtonTestId: string;
|
|
72
74
|
/** The icon of the banner, this is a name of a built icon icon */
|
|
73
75
|
icon: string;
|
|
74
76
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -91,6 +91,10 @@ export default class DapDSCalendar extends DdsElement {
|
|
|
91
91
|
* @default dayjs.locale()
|
|
92
92
|
*/
|
|
93
93
|
locale: string;
|
|
94
|
+
/** `data-testid` for the previous-month button. */
|
|
95
|
+
prevButtonTestId: string;
|
|
96
|
+
/** `data-testid` for the next-month button. */
|
|
97
|
+
nextButtonTestId: string;
|
|
94
98
|
private _currentCell;
|
|
95
99
|
private _yearOptionsLoaded;
|
|
96
100
|
private instanceLocalData;
|
|
@@ -93,6 +93,8 @@ export default class DapDSCallout extends DdsElement {
|
|
|
93
93
|
title: string;
|
|
94
94
|
/** The label of the close button */
|
|
95
95
|
closeButtonLabel: string;
|
|
96
|
+
/** `data-testid` for the default close button. */
|
|
97
|
+
closeButtonTestId: string;
|
|
96
98
|
/** If the callout is opened */
|
|
97
99
|
opened: string;
|
|
98
100
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -28,6 +28,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
28
28
|
* @property {boolean} invalid - The invalid state of the checkbox.
|
|
29
29
|
* @property {boolean} optional - The optional state of the checkbox.
|
|
30
30
|
* @property {string} optionalLabel - The optional label of the checkbox.
|
|
31
|
+
* @property {string} requiredLabel - The required indicator of the checkbox. (default: '*')
|
|
31
32
|
*
|
|
32
33
|
* @csspart base - The main checkbox container.
|
|
33
34
|
* @csspart label - The label of the checkbox.
|
|
@@ -58,6 +58,8 @@ export default class DapDSChip extends ChipBaseWithSized {
|
|
|
58
58
|
value?: string;
|
|
59
59
|
/** The aria label for the delete button */
|
|
60
60
|
deleteAriaLabel?: string;
|
|
61
|
+
/** `data-testid` for the remove button. */
|
|
62
|
+
removeButtonTestId: string;
|
|
61
63
|
private _slotNodes;
|
|
62
64
|
private _slotTextContent;
|
|
63
65
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -21,6 +21,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
21
21
|
* @property {boolean} disabled - Disable all slots. Default is false.
|
|
22
22
|
* @property {boolean} readonly - Read-only state. Default is false.
|
|
23
23
|
* @property {boolean} required - Required for form validation. Default is false.
|
|
24
|
+
* @property {string} requiredLabel - Indicator of required text. (default: '*')
|
|
24
25
|
* @property {string} name - Form element name.
|
|
25
26
|
* @property {string} autocomplete - Autocomplete hint. Default is 'one-time-code'.
|
|
26
27
|
*
|
|
@@ -25,6 +25,10 @@ export default class ComboboxBaseElement extends GenericFormElement {
|
|
|
25
25
|
subtle: boolean;
|
|
26
26
|
multiselect: boolean;
|
|
27
27
|
maxSelections?: number;
|
|
28
|
+
/** `data-testid` for the clear button. */
|
|
29
|
+
clearButtonTestId: string;
|
|
30
|
+
/** `data-testid` for the search button. */
|
|
31
|
+
searchButtonTestId: string;
|
|
28
32
|
selectedItem: any;
|
|
29
33
|
selectedItems: any[];
|
|
30
34
|
currentItem: any;
|
|
@@ -23,6 +23,7 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
23
23
|
* @property {boolean} loading - The loading state of the input. Default is false.
|
|
24
24
|
* @property {boolean} optional - The optional state of the input.
|
|
25
25
|
* @property {string} optionalLabel - The optional label of the input.
|
|
26
|
+
* @property {string} requiredLabel - The required indicator of the input. (default: '*')
|
|
26
27
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
27
28
|
* @property {string} copyButtonAriaLabel - The aria label of the copy button.
|
|
28
29
|
*
|
|
@@ -83,6 +84,8 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
83
84
|
export default class DapDSCopyBoxInput extends InputBaseElement {
|
|
84
85
|
constructor();
|
|
85
86
|
copyButtonAriaLabel?: string;
|
|
87
|
+
/** `data-testid` for the copy button. */
|
|
88
|
+
copyButtonTestId: string;
|
|
86
89
|
render(): import('lit-html').TemplateResult<1>;
|
|
87
90
|
onCopy(): void;
|
|
88
91
|
private copyToClipboard;
|
|
@@ -143,6 +143,8 @@ export default class DapDSDataTable<T> extends DdsElement {
|
|
|
143
143
|
nextButtonLabel: string;
|
|
144
144
|
/** The label of the last button */
|
|
145
145
|
lastButtonLabel: string;
|
|
146
|
+
/** `data-testid` for the column sort-toggle button. Suffixed with the column id. */
|
|
147
|
+
sortButtonTestId: string;
|
|
146
148
|
/** The function to determine the pager text
|
|
147
149
|
* @type {(pageIndex: number, pageSize: number, totalRows: number) => string}
|
|
148
150
|
*/
|
|
@@ -22,6 +22,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
22
22
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the datepicker.
|
|
23
23
|
* @property {boolean} optional - The optional state of the datepicker.
|
|
24
24
|
* @property {string} optionalLabel - The optional label of the datepicker.
|
|
25
|
+
* @property {string} requiredLabel - The required indicator of the datepicker. (default: '*')
|
|
25
26
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
26
27
|
* @property {string} autocomplete - The autocomplete of the datepicker.
|
|
27
28
|
* @property {boolean} autofocus - The autofocus of the datepicker.
|
|
@@ -154,6 +155,10 @@ export default class DapDSDatePicker extends GenericFormElement {
|
|
|
154
155
|
clearButton?: string;
|
|
155
156
|
/** The aria label of the clear button. */
|
|
156
157
|
clearButtonAriaLabel?: string;
|
|
158
|
+
/** `data-testid` for the clear button. */
|
|
159
|
+
clearButtonTestId: string;
|
|
160
|
+
/** `data-testid` for the calendar indicator button that opens the calendar. */
|
|
161
|
+
calendarButtonTestId: string;
|
|
157
162
|
/** The floating strategy of the datepicker. */
|
|
158
163
|
floatingStrategy: FloatingStrategy;
|
|
159
164
|
/** Whether to keep popup open when trigger leaves viewport. */
|
|
@@ -64,6 +64,8 @@ export default class DapDSFileInputListItem extends DapDSFileInputListItem_base
|
|
|
64
64
|
loading?: boolean | undefined;
|
|
65
65
|
/** Show delete button. */
|
|
66
66
|
showDeleteButton: string;
|
|
67
|
+
/** `data-testid` for the remove-file button. */
|
|
68
|
+
removeButtonTestId: string;
|
|
67
69
|
/** Show file size. */
|
|
68
70
|
showFileSize?: string | undefined;
|
|
69
71
|
/** Show file link. */
|
|
@@ -19,7 +19,9 @@ import { default as DapDSFileInputList } from './file-input-list.component';
|
|
|
19
19
|
* @property {string} feedback - The feedback for the file input.
|
|
20
20
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The type of feedback for the file input.
|
|
21
21
|
* @property {boolean} required - Whether the file input is required.
|
|
22
|
+
* @property {string} requiredLabel - The required indicator of the file input. (default: '*')
|
|
22
23
|
* @property {boolean} optional - Whether the file input is optional.
|
|
24
|
+
* @property {string} optionalLabel - The optional label of the file input.
|
|
23
25
|
* @property {boolean} subtle - Font weight of the feedback label. Default is `false` which is bold.
|
|
24
26
|
* @property {string} uploadButtonLabel - The label for the upload button.
|
|
25
27
|
* @property {string} browseButtonLabel - The label for the browse button.
|
|
@@ -90,6 +92,10 @@ export default class DapDSFileInput extends GenericFormElement {
|
|
|
90
92
|
uploadButtonLabel: string;
|
|
91
93
|
/** Label for the browse button */
|
|
92
94
|
browseButtonLabel: string;
|
|
95
|
+
/** `data-testid` for the browse button. */
|
|
96
|
+
browseButtonTestId: string;
|
|
97
|
+
/** `data-testid` for the upload button. */
|
|
98
|
+
uploadButtonTestId: string;
|
|
93
99
|
/** Whether to show a separate dropzone area */
|
|
94
100
|
showDropzone: boolean;
|
|
95
101
|
/** Text to display in the dropzone */
|
|
@@ -17,6 +17,7 @@ declare const DapDSFormLabel_base: {
|
|
|
17
17
|
* @property {boolean} subtle - Text weight of the label.
|
|
18
18
|
* @property {boolean} optional - If the label is optional.
|
|
19
19
|
* @property {boolean} required - If the label is required.
|
|
20
|
+
* @property {string} requiredLabel - Indicator of required text. (default: '*')
|
|
20
21
|
* @property {string} label - The label text.
|
|
21
22
|
*
|
|
22
23
|
* @csspart base - The main form label container.
|
|
@@ -14,6 +14,7 @@ import { GenericFormElement } from '../../../internal/mixin/genericFormElement';
|
|
|
14
14
|
* @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the input group.
|
|
15
15
|
* @property {string} tooltipAriaLabel - The aria label of the tooltip.
|
|
16
16
|
* @property {string} optionalLabel - The label of the input group when it is optional.
|
|
17
|
+
* @property {string} requiredLabel - The indicator of the input group when it is required. (default: '*')
|
|
17
18
|
* @property {boolean} disabled - Whether the input group is disabled.
|
|
18
19
|
* @property {'xs' | 'sm' | 'lg'} size - The size of the input group. Default is `sm`.
|
|
19
20
|
* @property {boolean} required - Whether the input group is required.
|
|
@@ -23,6 +23,7 @@ import { GenericFormElement } from '../../../internal/mixin/genericFormElement';
|
|
|
23
23
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the radio group. Can be `negative`, `positive`, or `warning`.
|
|
24
24
|
* @property {boolean} optional - The optional state of the radio group.
|
|
25
25
|
* @property {string} optionalLabel - Text of optional label.
|
|
26
|
+
* @property {string} requiredLabel - Text of required indicator. (default: '*')
|
|
26
27
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
27
28
|
* @property {'xs' | 'sm' | 'lg'} size - The size of the radio group. Default is `sm`.
|
|
28
29
|
* @property {boolean} subtle - Font weight of the feedback label. Default is `false` which is bold.
|
|
@@ -61,6 +61,10 @@ export default class DapDSImageZoom extends DdsElement {
|
|
|
61
61
|
/** Hides the expand and unzoom buttons. Useful when the host UI provides its own controls. */
|
|
62
62
|
hideButtons: boolean;
|
|
63
63
|
zoomButtonVariant: ButtonVariant;
|
|
64
|
+
/** `data-testid` for the expand/zoom button. */
|
|
65
|
+
expandButtonTestId: string;
|
|
66
|
+
/** `data-testid` for the unzoom/close button. */
|
|
67
|
+
unzoomButtonTestId: string;
|
|
64
68
|
private _dialogState;
|
|
65
69
|
private _slottedImgSrc;
|
|
66
70
|
private _slottedImgAlt;
|
|
@@ -8,6 +8,7 @@ import { InputBaseElement } from './input-base-element';
|
|
|
8
8
|
* @property {string} label - The label of the input.
|
|
9
9
|
* @property {string} description - The description of the input.
|
|
10
10
|
* @property {string} optionalLabel - Text of optional label.
|
|
11
|
+
* @property {string} requiredLabel - Text of required indicator. (default: '*')
|
|
11
12
|
* @property {boolean} subtle - Text weight of label. If true the label is subtle. Default value is false.
|
|
12
13
|
* @property {string} value - The value of the input.
|
|
13
14
|
* @property {string} placeholder - The placeholder of the input.
|
|
@@ -16,6 +16,7 @@ declare const DapDSLabel_base: {
|
|
|
16
16
|
* @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the label.
|
|
17
17
|
* @property {boolean} optional - If the label is optional. Default value is `false`.
|
|
18
18
|
* @property {string} optionalLabel - Label of optional text
|
|
19
|
+
* @property {string} requiredLabel - Indicator of required text (default: '*')
|
|
19
20
|
* @property {boolean} subtle - Text weight of label. If true the label is subtle. Default value is `false`.
|
|
20
21
|
* @property {boolean} disabled - The disabled state of the label. Default is `false`.
|
|
21
22
|
* @property {boolean} required - The required state of the label. Default is `false`.
|
|
@@ -38,6 +38,12 @@ export default class ModalBaseElement extends ModalBaseWithSized {
|
|
|
38
38
|
closeButtonSize: string;
|
|
39
39
|
/** Override sizeMap for the close icon button; when empty uses the modal's sizeMap. */
|
|
40
40
|
closeButtonSizeMap: string;
|
|
41
|
+
/** `data-testid` for the default OK button. */
|
|
42
|
+
okButtonTestId: string;
|
|
43
|
+
/** `data-testid` for the default Cancel button. */
|
|
44
|
+
cancelButtonTestId: string;
|
|
45
|
+
/** `data-testid` for the default close icon button. */
|
|
46
|
+
closeButtonTestId: string;
|
|
41
47
|
footer: string;
|
|
42
48
|
header: string;
|
|
43
49
|
wideFooter: boolean;
|
|
@@ -133,6 +133,8 @@ export default class DapDSNavigationMenuItem extends DapDSNavigationMenuItem_bas
|
|
|
133
133
|
orientation: 'horizontal' | 'vertical';
|
|
134
134
|
/** Controls tab key behavior (propagated from parent navigation menu). */
|
|
135
135
|
tabMode: TabNavigationMode;
|
|
136
|
+
/** `data-testid` for the default menu trigger button. */
|
|
137
|
+
triggerButtonTestId: string;
|
|
136
138
|
hasContent: boolean;
|
|
137
139
|
private hasLink;
|
|
138
140
|
private hasTitleSlot;
|
|
@@ -32,6 +32,7 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
32
32
|
* @property {boolean} loading - The loading state of the input. Default is false.
|
|
33
33
|
* @property {boolean} optional - The optional state of the input.
|
|
34
34
|
* @property {string} optionalLabel - The optional label of the input.
|
|
35
|
+
* @property {string} requiredLabel - The required indicator of the input. (default: '*')
|
|
35
36
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
36
37
|
* @property {boolean} disableEnter - Disables the enter key from being used to submit the form.
|
|
37
38
|
* @property {boolean} hideControls - Hides the increment and decrement buttons.
|
|
@@ -110,6 +111,10 @@ export default class DapDSNumberInput extends InputBaseElement {
|
|
|
110
111
|
allowDecimal: string;
|
|
111
112
|
hideControls: boolean;
|
|
112
113
|
padStart?: number;
|
|
114
|
+
/** `data-testid` for the decrement stepper button. */
|
|
115
|
+
decrementButtonTestId: string;
|
|
116
|
+
/** `data-testid` for the increment stepper button. */
|
|
117
|
+
incrementButtonTestId: string;
|
|
113
118
|
private formattedValue;
|
|
114
119
|
private valueSetInternally;
|
|
115
120
|
get _thousandSeparator(): string;
|
|
@@ -72,6 +72,8 @@ export default class DapDSPager extends DdsElement {
|
|
|
72
72
|
nextButtonLabel: string;
|
|
73
73
|
/** The last button label. */
|
|
74
74
|
lastButtonLabel: string;
|
|
75
|
+
/** `data-testid` for the pagination buttons. Suffixed with the button's part (first/previous/next/last). */
|
|
76
|
+
pageButtonTestId: string;
|
|
75
77
|
/** The function to determine the pager text. If not provided, uses default reactive translation.
|
|
76
78
|
* @type {Function}
|
|
77
79
|
*/
|
|
@@ -23,6 +23,7 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
23
23
|
* @property {boolean} loading - The loading state of the password input. Default is false.
|
|
24
24
|
* @property {boolean} optional - The optional state of the password input.
|
|
25
25
|
* @property {string} optionalLabel - The optional label of the password input.
|
|
26
|
+
* @property {string} requiredLabel - The required indicator of the password input. (default: '*')
|
|
26
27
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
27
28
|
*
|
|
28
29
|
* @event {{ value: string }} dds-change - Fired when the input value changes.
|
|
@@ -85,6 +86,8 @@ import { InputBaseElement } from '../input/input-base-element';
|
|
|
85
86
|
*/
|
|
86
87
|
export default class DapDSPasswordInput extends InputBaseElement {
|
|
87
88
|
passwordVisibile: boolean;
|
|
89
|
+
/** `data-testid` for the show/hide toggle button. */
|
|
90
|
+
toggleButtonTestId: string;
|
|
88
91
|
static readonly styles: import('lit').CSSResult;
|
|
89
92
|
constructor();
|
|
90
93
|
private _toggleVisibility;
|
|
@@ -28,6 +28,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
28
28
|
* @property {boolean} invalid - The invalid state of the radio button.
|
|
29
29
|
* @property {boolean} optional - The optional state of the radio button.
|
|
30
30
|
* @property {string} optionalLabel - The optional label of the radio button.
|
|
31
|
+
* @property {string} requiredLabel - The required indicator of the radio button. (default: '*')
|
|
31
32
|
* @property {boolean} preventDefault - Whether the radio button should prevent the default action.
|
|
32
33
|
* @property {boolean} focusable - Whether the radio button is focusable.
|
|
33
34
|
* @property {'normal' | 'background'} type - The type of the radio button.
|
|
@@ -29,6 +29,7 @@ import { default as DapDSOptionList } from '../option-list/option-list.component
|
|
|
29
29
|
* @property {string} status - The status of the select. Can be `success` or `error`.
|
|
30
30
|
* @property {boolean} optional - The optional state of the select.
|
|
31
31
|
* @property {string} optionalLabel - The optional label of the select.
|
|
32
|
+
* @property {string} requiredLabel - The required indicator of the select. (default: '*')
|
|
32
33
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
33
34
|
*
|
|
34
35
|
* @csspart base - The main select container.
|
|
@@ -57,6 +57,8 @@ export default class DapDSSnackbarMessage extends DdsElement {
|
|
|
57
57
|
customStyle?: Record<string, string>;
|
|
58
58
|
/** The position of the snackbar container for directional animations. */
|
|
59
59
|
position: SnackbarPosition;
|
|
60
|
+
/** `data-testid` for the snackbar close button. */
|
|
61
|
+
closeButtonTestId: string;
|
|
60
62
|
private isClosing;
|
|
61
63
|
static readonly styles: import('lit').CSSResult;
|
|
62
64
|
private getActions;
|
|
@@ -21,6 +21,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
21
21
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the switch.
|
|
22
22
|
* @property {boolean} optional - The optional state of the switch.
|
|
23
23
|
* @property {string} optionalLabel - The optional label of the switch.
|
|
24
|
+
* @property {string} requiredLabel - The required indicator of the switch. (default: '*')
|
|
24
25
|
*
|
|
25
26
|
* @cssProperty --dds-switch-width - Width of the switch control (default: var(--dds-spacing-1000)
|
|
26
27
|
* @cssProperty --dds-switch-height - Height of the switch control (default: var(--dds-spacing-600))
|
|
@@ -20,6 +20,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
20
20
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the textarea. Can be `negative`, `positive`, or `warning`.
|
|
21
21
|
* @property {boolean} optional - The optional state of the textarea.
|
|
22
22
|
* @property {string} optionalLabel - The optional label of the textarea.
|
|
23
|
+
* @property {string} requiredLabel - The required indicator of the textarea. (default: '*')
|
|
23
24
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
24
25
|
* @property {boolean} autofocus - The autofocus state of the textarea.
|
|
25
26
|
*
|
|
@@ -50,6 +50,14 @@ export default class DapDSTimeGrid extends DdsElement {
|
|
|
50
50
|
disabledTime?: (hour: number, minute: number, second?: number) => boolean;
|
|
51
51
|
hideDisabledTimes: boolean;
|
|
52
52
|
presets?: TimePreset[];
|
|
53
|
+
/** `data-testid` base for the preset buttons (preset value appended). */
|
|
54
|
+
presetButtonTestId: string;
|
|
55
|
+
/** `data-testid` base for the hour select buttons (hour value appended). */
|
|
56
|
+
hourButtonTestId: string;
|
|
57
|
+
/** `data-testid` base for the minute select buttons (minute value appended). */
|
|
58
|
+
minuteButtonTestId: string;
|
|
59
|
+
/** `data-testid` base for the second select buttons (second value appended). */
|
|
60
|
+
secondButtonTestId: string;
|
|
53
61
|
static readonly styles: import('lit').CSSResult;
|
|
54
62
|
private getHours;
|
|
55
63
|
private getMinutes;
|
|
@@ -22,6 +22,7 @@ import { GenericFormElement } from '../../internal/mixin/genericFormElement';
|
|
|
22
22
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the timepicker.
|
|
23
23
|
* @property {boolean} optional - The optional state of the timepicker.
|
|
24
24
|
* @property {string} optionalLabel - The optional label of the timepicker.
|
|
25
|
+
* @property {string} requiredLabel - The required indicator of the timepicker. (default: '*')
|
|
25
26
|
* @property {boolean} subtle - The weight of the label. Default is `false`
|
|
26
27
|
* @property {string} autocomplete - The autocomplete of the timepicker.
|
|
27
28
|
* @property {string} placeholder - The placeholder of the timepicker.
|
|
@@ -142,6 +143,10 @@ export default class DapDSTimePicker extends GenericFormElement {
|
|
|
142
143
|
clearButton?: string;
|
|
143
144
|
/** The aria label of the clear button. */
|
|
144
145
|
clearButtonAriaLabel?: string;
|
|
146
|
+
/** `data-testid` for the clear button. */
|
|
147
|
+
clearButtonTestId: string;
|
|
148
|
+
/** `data-testid` for the time indicator button that opens the grid. */
|
|
149
|
+
timeButtonTestId: string;
|
|
145
150
|
/** The floating strategy of the timepicker. */
|
|
146
151
|
floatingStrategy: FloatingStrategy;
|
|
147
152
|
/** Whether to keep popup open when trigger leaves viewport. */
|