dap-design-system 0.57.7 → 0.57.9

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.
Files changed (33) hide show
  1. package/dist/components/banner/banner.component.d.ts +2 -0
  2. package/dist/components/calendar/calendar.component.d.ts +4 -0
  3. package/dist/components/callout/callout.component.d.ts +2 -0
  4. package/dist/components/chip/chip.component.d.ts +2 -0
  5. package/dist/components/combobox/comboboxBase.d.ts +4 -0
  6. package/dist/components/copybox-input/copybox-input.component.d.ts +2 -0
  7. package/dist/components/datatable/datatable.component.d.ts +2 -0
  8. package/dist/components/datepicker/datepicker.component.d.ts +4 -0
  9. package/dist/components/file-input/file-input-list-item.component.d.ts +2 -0
  10. package/dist/components/file-input/file-input.component.d.ts +4 -0
  11. package/dist/components/image-zoom/image-zoom.component.d.ts +4 -0
  12. package/dist/components/modal/modal-base-element.d.ts +6 -0
  13. package/dist/components/navigation-menu/navigation-menu-item.component.d.ts +2 -0
  14. package/dist/components/number-input/number-input.component.d.ts +4 -0
  15. package/dist/components/pager/pager.component.d.ts +2 -0
  16. package/dist/components/password-input/password-input.component.d.ts +2 -0
  17. package/dist/components/snackbar/snackbar-message.component.d.ts +2 -0
  18. package/dist/components/tab/tab-group.component.d.ts +10 -0
  19. package/dist/components/timepicker/time-grid.component.d.ts +8 -0
  20. package/dist/components/timepicker/timepicker.component.d.ts +4 -0
  21. package/dist/{components-CMBmObyM.js → components-DM_rlHV7.js} +3295 -3161
  22. package/dist/components-DM_rlHV7.js.map +1 -0
  23. package/dist/components.js +1 -1
  24. package/dist/dds.js +1 -1
  25. package/dist/manifest/types/vue/index.d.ts +382 -330
  26. package/dist/manifest/vscode.html-custom-data.json +454 -320
  27. package/dist/manifest/web-types.json +843 -525
  28. package/dist/react/index.d.ts +15 -15
  29. package/dist/react-types.ts +16 -16
  30. package/dist/react.js +270 -270
  31. package/dist/react.js.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/components-CMBmObyM.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;
@@ -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;
@@ -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;
@@ -83,6 +83,8 @@ import { InputBaseElement } from '../input/input-base-element';
83
83
  export default class DapDSCopyBoxInput extends InputBaseElement {
84
84
  constructor();
85
85
  copyButtonAriaLabel?: string;
86
+ /** `data-testid` for the copy button. */
87
+ copyButtonTestId: string;
86
88
  render(): import('lit-html').TemplateResult<1>;
87
89
  onCopy(): void;
88
90
  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
  */
@@ -154,6 +154,10 @@ export default class DapDSDatePicker extends GenericFormElement {
154
154
  clearButton?: string;
155
155
  /** The aria label of the clear button. */
156
156
  clearButtonAriaLabel?: string;
157
+ /** `data-testid` for the clear button. */
158
+ clearButtonTestId: string;
159
+ /** `data-testid` for the calendar indicator button that opens the calendar. */
160
+ calendarButtonTestId: string;
157
161
  /** The floating strategy of the datepicker. */
158
162
  floatingStrategy: FloatingStrategy;
159
163
  /** 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. */
@@ -90,6 +90,10 @@ export default class DapDSFileInput extends GenericFormElement {
90
90
  uploadButtonLabel: string;
91
91
  /** Label for the browse button */
92
92
  browseButtonLabel: string;
93
+ /** `data-testid` for the browse button. */
94
+ browseButtonTestId: string;
95
+ /** `data-testid` for the upload button. */
96
+ uploadButtonTestId: string;
93
97
  /** Whether to show a separate dropzone area */
94
98
  showDropzone: boolean;
95
99
  /** Text to display in the dropzone */
@@ -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;
@@ -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;
@@ -110,6 +110,10 @@ export default class DapDSNumberInput extends InputBaseElement {
110
110
  allowDecimal: string;
111
111
  hideControls: boolean;
112
112
  padStart?: number;
113
+ /** `data-testid` for the decrement stepper button. */
114
+ decrementButtonTestId: string;
115
+ /** `data-testid` for the increment stepper button. */
116
+ incrementButtonTestId: string;
113
117
  private formattedValue;
114
118
  private valueSetInternally;
115
119
  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
  */
@@ -85,6 +85,8 @@ import { InputBaseElement } from '../input/input-base-element';
85
85
  */
86
86
  export default class DapDSPasswordInput extends InputBaseElement {
87
87
  passwordVisibile: boolean;
88
+ /** `data-testid` for the show/hide toggle button. */
89
+ toggleButtonTestId: string;
88
90
  static readonly styles: import('lit').CSSResult;
89
91
  constructor();
90
92
  private _toggleVisibility;
@@ -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;
@@ -51,6 +51,16 @@ export default class DapDSTabGroup extends DdsElement {
51
51
  private _initialEmit;
52
52
  emitTabSelect(tabId: string): void;
53
53
  attributeChangedCallback(name: string, oldValue: string | null, value: string | null): void;
54
+ /**
55
+ * Collects the title nodes of a tab (every light DOM child that is not
56
+ * slotted into the tab content).
57
+ *
58
+ * The nodes are cloned: rendering the original nodes into the nav would move
59
+ * them out of the tab's light DOM, so any later slotchange would find the tab
60
+ * title empty and the nav labels would disappear.
61
+ * @ignore
62
+ */
63
+ private getTabTitleNodes;
54
64
  handleSlotChange(event: Event): void;
55
65
  handleClick(tabId: string | null): void;
56
66
  handleKeyDown(event: KeyboardEvent): void;
@@ -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;
@@ -142,6 +142,10 @@ export default class DapDSTimePicker extends GenericFormElement {
142
142
  clearButton?: string;
143
143
  /** The aria label of the clear button. */
144
144
  clearButtonAriaLabel?: string;
145
+ /** `data-testid` for the clear button. */
146
+ clearButtonTestId: string;
147
+ /** `data-testid` for the time indicator button that opens the grid. */
148
+ timeButtonTestId: string;
145
149
  /** The floating strategy of the timepicker. */
146
150
  floatingStrategy: FloatingStrategy;
147
151
  /** Whether to keep popup open when trigger leaves viewport. */