dap-design-system 0.43.2 → 0.43.3
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.d.ts +28 -6
- package/dist/components.js +2527 -2483
- package/dist/components.js.map +1 -1
- package/dist/dds.d.ts +28 -6
- package/dist/manifest/types/vue/index.d.ts +289 -289
- package/dist/manifest/vscode.html-custom-data.json +204 -204
- package/dist/manifest/web-types.json +305 -305
- package/dist/react-types.ts +16 -16
- package/dist/react.d.ts +28 -6
- package/dist/react.js +119 -119
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -18,9 +18,16 @@ import { TemplateResult as TemplateResult_2 } from 'lit-html';
|
|
|
18
18
|
|
|
19
19
|
export declare class AccordionBaseElement extends DdsElement {
|
|
20
20
|
static readonly styles: CSSResult;
|
|
21
|
+
private static nextId;
|
|
21
22
|
private readonly accordionId;
|
|
22
23
|
private readonly buttonId;
|
|
23
24
|
private readonly contentId;
|
|
25
|
+
private _headingLevel;
|
|
26
|
+
private _variant;
|
|
27
|
+
/** Query for the accordion button element */
|
|
28
|
+
protected button?: HTMLButtonElement;
|
|
29
|
+
/** Query for the accordion content element */
|
|
30
|
+
protected content?: HTMLDivElement;
|
|
24
31
|
/** The size of the accordion
|
|
25
32
|
* @type { 'sm' | 'lg' }
|
|
26
33
|
*/
|
|
@@ -28,7 +35,8 @@ export declare class AccordionBaseElement extends DdsElement {
|
|
|
28
35
|
/** The heading level of the accordion
|
|
29
36
|
* @type { 1 | 2 | 3 | 4 | 5 | 6 }
|
|
30
37
|
*/
|
|
31
|
-
headingLevel: HeadingLevel;
|
|
38
|
+
get headingLevel(): HeadingLevel;
|
|
39
|
+
set headingLevel(value: HeadingLevel);
|
|
32
40
|
/** Whether the accordion is opened */
|
|
33
41
|
opened: boolean;
|
|
34
42
|
/** Whether the accordion is disabled */
|
|
@@ -46,24 +54,38 @@ export declare class AccordionBaseElement extends DdsElement {
|
|
|
46
54
|
/** The variant of the accordion
|
|
47
55
|
* @type { 'default' | 'collapsed' | 'clean' | 'clean-collapsed' }
|
|
48
56
|
*/
|
|
49
|
-
variant: AccordionVariant;
|
|
57
|
+
get variant(): AccordionVariant;
|
|
58
|
+
set variant(value: AccordionVariant);
|
|
50
59
|
/** Whether this is the last item in an accordion group */
|
|
51
60
|
lastItem: boolean;
|
|
52
61
|
/** ID of element that describes the accordion */
|
|
53
62
|
ariaDescribedBy?: string;
|
|
54
63
|
constructor();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Renders the heading content. Override in subclasses to customize heading rendering.
|
|
66
|
+
* @returns Template result for heading content
|
|
67
|
+
*/
|
|
68
|
+
protected headingRender(): TemplateResult;
|
|
69
|
+
/**
|
|
70
|
+
* Renders additional content. Override in subclasses to add custom content.
|
|
71
|
+
* @returns Template result for additional content
|
|
72
|
+
*/
|
|
73
|
+
protected contentRender(): TemplateResult;
|
|
58
74
|
validateProperties(): void;
|
|
59
75
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
60
76
|
private onChange;
|
|
61
77
|
private toggle;
|
|
62
78
|
private handleKeyDown;
|
|
63
79
|
private handleClick;
|
|
80
|
+
private get accordionClasses();
|
|
81
|
+
private renderIconOrSpinner;
|
|
64
82
|
private renderButtons;
|
|
65
83
|
private renderContent;
|
|
66
84
|
private renderHeading;
|
|
85
|
+
/**
|
|
86
|
+
* Renders the complete accordion component. Override in subclasses to customize the entire accordion structure.
|
|
87
|
+
* @returns Template result for the complete accordion
|
|
88
|
+
*/
|
|
67
89
|
renderAccordion(): TemplateResult;
|
|
68
90
|
}
|
|
69
91
|
|
|
@@ -1104,7 +1126,7 @@ export declare class DapDSButton extends GenericFormElement {
|
|
|
1104
1126
|
/**
|
|
1105
1127
|
* @ignore
|
|
1106
1128
|
*/
|
|
1107
|
-
get focusElement():
|
|
1129
|
+
get focusElement(): HTMLButtonElement | HTMLLinkElement;
|
|
1108
1130
|
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
1109
1131
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
1110
1132
|
disconnectedCallback(): void;
|