dap-design-system 0.53.16 → 0.53.17

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.
@@ -88,3 +88,4 @@ export interface TimePreset {
88
88
  value: string;
89
89
  }
90
90
  export type CloseSource = 'cancel-button' | 'close-button' | 'esc' | 'ok-button' | 'overlay';
91
+ export type AccordionVariant = 'default' | 'collapsed' | 'clean' | 'clean-collapsed';
@@ -1,7 +1,7 @@
1
1
  import { PropertyValueMap, TemplateResult } from 'lit';
2
+ import { AccordionVariant } from '../../common/types';
2
3
  import { HeadingLevel, LabelPlacement } from '../../dap-design-system';
3
4
  import { DdsElement } from '../../internal/dds-hu-element';
4
- export type AccordionVariant = 'default' | 'collapsed' | 'clean' | 'clean-collapsed';
5
5
  export interface AccordionEventDetail {
6
6
  open: boolean;
7
7
  item: AccordionBaseElement;
@@ -1,6 +1,6 @@
1
1
  import { PropertyValueMap } from 'lit';
2
+ import { AccordionVariant } from '../../dap-design-system';
2
3
  import { DdsElement } from '../../internal/dds-hu-element';
3
- import { AccordionVariant } from '../accordion/accordion-base-element';
4
4
  /**
5
5
  * `dap-ds-accordion-group` is a custom accordion group component.
6
6
  * @element dap-ds-accordion-group
@@ -9,6 +9,8 @@ import { DdsElement } from '../../internal/dds-hu-element';
9
9
  * @event {{ event: Event }} dds-click - Emitted when the link is clicked.
10
10
  *
11
11
  * @slot - The text of the link.
12
+ * @slot link - A router link element (e.g. Next.js Link) used for SPA navigation.
13
+ * Rendered outside the visible link so it is always accessible to programmatic clicks.
12
14
  *
13
15
  * @csspart base - The main link container.
14
16
  * @csspart text - The text of the link.
@@ -89,6 +91,9 @@ export default class DapDSLink extends DdsElement {
89
91
  /** The text for the target blank link, applicable when target is _blank. PRO TIP: Use parenthesis to wrap the text */
90
92
  targetBlankText: string;
91
93
  static readonly styles: import('lit').CSSResult;
94
+ private hasLink;
95
+ private _getLinkElement;
96
+ private _handleLinkSlotChange;
92
97
  private handleClick;
93
98
  focus(): void;
94
99
  render(): import('lit-html').TemplateResult;
@@ -192,6 +192,7 @@ export default class DapDSNavigationMenuItem extends DapDSNavigationMenuItem_bas
192
192
  /** Get all top-level focusable items inside the popup slot content (for mega menu arrow navigation). */
193
193
  private _getFocusablePopupItems;
194
194
  private _collectFocusableItems;
195
+ private _activateFocusableItem;
195
196
  private _focusPopupItem;
196
197
  showDropDown(byHover?: boolean): Promise<void>;
197
198
  hideDropDown(): Promise<void>;