@proximus/lavender-accordion 2.0.0-alpha.227 → 2.0.0-alpha.229
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/Accordion.d.ts +9 -1
- package/dist/custom-elements.json +38 -0
- package/dist/index.es.js +9 -0
- package/dist/vscode.html-custom-data.json +11 -1
- package/dist/web-types.json +15 -3
- package/package.json +1 -1
package/dist/Accordion.d.ts
CHANGED
|
@@ -2,9 +2,13 @@ import '@proximus/lavender-layout';
|
|
|
2
2
|
import { PxElement } from '@proximus/lavender-common';
|
|
3
3
|
export declare const accordionVariantValues: readonly ["", "none", "single", "contained"];
|
|
4
4
|
export declare const accordionBackgroundColorValues: string[];
|
|
5
|
-
export declare class Accordion extends PxElement<
|
|
5
|
+
export declare class Accordion extends PxElement<HTMLDetailsElement> {
|
|
6
6
|
protected static readonly template: HTMLTemplateElement;
|
|
7
7
|
static nativeName: string;
|
|
8
|
+
static nativeAttributes: {
|
|
9
|
+
open: "open"[];
|
|
10
|
+
name: "name"[];
|
|
11
|
+
};
|
|
8
12
|
private isSafari;
|
|
9
13
|
constructor();
|
|
10
14
|
static get observedAttributes(): string[];
|
|
@@ -23,4 +27,8 @@ export declare class Accordion extends PxElement<HTMLDivElement> {
|
|
|
23
27
|
set inverted(value: boolean);
|
|
24
28
|
get noContentPadding(): boolean;
|
|
25
29
|
set noContentPadding(value: boolean);
|
|
30
|
+
/** @attr {boolean} open - Whether the native details element is open. */
|
|
31
|
+
open: boolean;
|
|
32
|
+
/** @attr {string} name - The native element name. */
|
|
33
|
+
name: string;
|
|
26
34
|
}
|
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
"static": true,
|
|
44
44
|
"default": "'details'"
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"kind": "field",
|
|
48
|
+
"name": "nativeAttributes",
|
|
49
|
+
"static": true,
|
|
50
|
+
"default": "{ open: ['open'], name: ['name'], } satisfies NativeAttributeMap<HTMLDetailsElement>"
|
|
51
|
+
},
|
|
46
52
|
{
|
|
47
53
|
"kind": "field",
|
|
48
54
|
"name": "isSafari",
|
|
@@ -131,6 +137,22 @@
|
|
|
131
137
|
{
|
|
132
138
|
"kind": "field",
|
|
133
139
|
"name": "noContentPadding"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"kind": "field",
|
|
143
|
+
"name": "open",
|
|
144
|
+
"type": {
|
|
145
|
+
"text": "boolean"
|
|
146
|
+
},
|
|
147
|
+
"attribute": "open"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"kind": "field",
|
|
151
|
+
"name": "name",
|
|
152
|
+
"type": {
|
|
153
|
+
"text": "string"
|
|
154
|
+
},
|
|
155
|
+
"attribute": "name"
|
|
134
156
|
}
|
|
135
157
|
],
|
|
136
158
|
"attributes": [
|
|
@@ -145,6 +167,22 @@
|
|
|
145
167
|
},
|
|
146
168
|
{
|
|
147
169
|
"name": "no-content-padding"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "open",
|
|
173
|
+
"type": {
|
|
174
|
+
"text": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"fieldName": "open",
|
|
177
|
+
"description": "Whether the native details element is open."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "name",
|
|
181
|
+
"type": {
|
|
182
|
+
"text": "string"
|
|
183
|
+
},
|
|
184
|
+
"fieldName": "name",
|
|
185
|
+
"description": "The native element name."
|
|
148
186
|
}
|
|
149
187
|
],
|
|
150
188
|
"superclass": {
|
package/dist/index.es.js
CHANGED
|
@@ -19,6 +19,12 @@ var o = [
|
|
|
19
19
|
static {
|
|
20
20
|
this.nativeName = "details";
|
|
21
21
|
}
|
|
22
|
+
static {
|
|
23
|
+
this.nativeAttributes = {
|
|
24
|
+
open: ["open"],
|
|
25
|
+
name: ["name"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
22
28
|
constructor() {
|
|
23
29
|
super(a), this.isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), r(this.shadowRoot, i.template);
|
|
24
30
|
}
|
|
@@ -38,6 +44,9 @@ var o = [
|
|
|
38
44
|
}
|
|
39
45
|
attributeChangedCallback(e, t, n) {
|
|
40
46
|
if (t !== n) switch (e) {
|
|
47
|
+
case "no-content-padding":
|
|
48
|
+
this._forwardNativeAttribute(e, n);
|
|
49
|
+
break;
|
|
41
50
|
case "variant":
|
|
42
51
|
this.updateAttribute(e, t, n, o);
|
|
43
52
|
break;
|
|
@@ -9,7 +9,17 @@
|
|
|
9
9
|
{ "name": "variant", "values": [] },
|
|
10
10
|
{ "name": "background-color", "values": [] },
|
|
11
11
|
{ "name": "inverted", "values": [] },
|
|
12
|
-
{ "name": "no-content-padding", "values": [] }
|
|
12
|
+
{ "name": "no-content-padding", "values": [] },
|
|
13
|
+
{
|
|
14
|
+
"name": "open",
|
|
15
|
+
"description": "Whether the native details element is open.",
|
|
16
|
+
"values": []
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "name",
|
|
20
|
+
"description": "The native element name.",
|
|
21
|
+
"values": []
|
|
22
|
+
}
|
|
13
23
|
],
|
|
14
24
|
"references": []
|
|
15
25
|
}
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-accordion",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.229",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -14,7 +14,17 @@
|
|
|
14
14
|
{ "name": "variant", "value": { "type": "string" } },
|
|
15
15
|
{ "name": "background-color", "value": { "type": "string" } },
|
|
16
16
|
{ "name": "inverted", "value": { "type": "string" } },
|
|
17
|
-
{ "name": "no-content-padding", "value": { "type": "string" } }
|
|
17
|
+
{ "name": "no-content-padding", "value": { "type": "string" } },
|
|
18
|
+
{
|
|
19
|
+
"name": "open",
|
|
20
|
+
"description": "Whether the native details element is open.",
|
|
21
|
+
"value": { "type": "boolean" }
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "name",
|
|
25
|
+
"description": "The native element name.",
|
|
26
|
+
"value": { "type": "string" }
|
|
27
|
+
}
|
|
18
28
|
],
|
|
19
29
|
"events": [],
|
|
20
30
|
"js": {
|
|
@@ -24,7 +34,9 @@
|
|
|
24
34
|
{ "name": "variant" },
|
|
25
35
|
{ "name": "backgroundColor" },
|
|
26
36
|
{ "name": "inverted" },
|
|
27
|
-
{ "name": "noContentPadding" }
|
|
37
|
+
{ "name": "noContentPadding" },
|
|
38
|
+
{ "name": "open", "type": "boolean" },
|
|
39
|
+
{ "name": "name", "type": "string" }
|
|
28
40
|
],
|
|
29
41
|
"events": []
|
|
30
42
|
}
|