@proximus/lavender-fieldset 2.0.0-alpha.24 → 2.0.0-alpha.242

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.
@@ -1,22 +1,54 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
+ /**
3
+ * @attr {string} form - The ID of the associated form; the form property is the native form reference.
4
+ */
2
5
  export declare class Fieldset extends PxElement<HTMLFieldSetElement> {
6
+ protected static readonly template: HTMLTemplateElement;
3
7
  static nativeName: string;
4
- private template;
8
+ static nativeProperties: {
9
+ form: "readonly";
10
+ elements: "readonly";
11
+ type: "readonly";
12
+ validity: "readonly";
13
+ validationMessage: "readonly";
14
+ willValidate: "readonly";
15
+ };
16
+ static nativeMethods: ("checkValidity" | "reportValidity" | "setCustomValidity")[];
17
+ static nativeAttributes: {
18
+ disabled: "disabled"[];
19
+ name: "name"[];
20
+ form: never[];
21
+ };
5
22
  constructor();
6
23
  static get observedAttributes(): string[];
7
24
  connectedCallback(): void;
8
25
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
26
+ protected _forwardPrefixedAccessibilityAttribute(name: string, value: string | null): void;
9
27
  setupErrorState(): void;
10
28
  get $slotLegend(): HTMLSlotElement;
29
+ get $slotHelper(): HTMLSlotElement;
11
30
  get $slotError(): HTMLSlotElement;
12
31
  get inverted(): boolean;
13
32
  set inverted(value: boolean);
14
- get role(): string;
15
- set role(value: string);
16
- get ariaRequired(): string;
17
- set ariaRequired(value: string);
18
- get ariaDisabled(): string;
19
- set ariaDisabled(value: string);
20
- get state(): string;
21
- set state(value: string);
33
+ get role(): string | null;
34
+ set role(value: string | null);
35
+ get ariaRequired(): string | null;
36
+ set ariaRequired(value: string | null);
37
+ get ariaDisabled(): string | null;
38
+ set ariaDisabled(value: string | null);
39
+ get state(): string | null;
40
+ set state(value: string | null);
41
+ /** @attr {boolean} disabled - Whether the native control is disabled. */
42
+ disabled: boolean;
43
+ /** @attr {string} name - The native element name. */
44
+ name: string;
45
+ readonly form: HTMLFormElement | null;
46
+ readonly elements: HTMLCollection;
47
+ readonly type: string;
48
+ readonly validity: ValidityState;
49
+ readonly validationMessage: string;
50
+ readonly willValidate: boolean;
51
+ readonly checkValidity: HTMLFieldSetElement['checkValidity'];
52
+ readonly reportValidity: HTMLFieldSetElement['reportValidity'];
53
+ readonly setCustomValidity: HTMLFieldSetElement['setCustomValidity'];
22
54
  }
@@ -0,0 +1,284 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/Fieldset.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "Fieldset",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "template",
17
+ "privacy": "protected",
18
+ "static": true,
19
+ "readonly": true
20
+ },
21
+ {
22
+ "kind": "field",
23
+ "name": "nativeName",
24
+ "type": {
25
+ "text": "string"
26
+ },
27
+ "static": true,
28
+ "default": "'fieldset'"
29
+ },
30
+ {
31
+ "kind": "field",
32
+ "name": "nativeProperties",
33
+ "static": true,
34
+ "default": "nativeFieldsetProperties"
35
+ },
36
+ {
37
+ "kind": "field",
38
+ "name": "nativeMethods",
39
+ "static": true,
40
+ "default": "nativeFieldsetMethods"
41
+ },
42
+ {
43
+ "kind": "field",
44
+ "name": "nativeAttributes",
45
+ "static": true,
46
+ "default": "{ disabled: ['disabled'], name: ['name'], form: [], } satisfies NativeAttributeMap<HTMLFieldSetElement>"
47
+ },
48
+ {
49
+ "kind": "method",
50
+ "name": "_forwardPrefixedAccessibilityAttribute",
51
+ "privacy": "protected",
52
+ "parameters": [
53
+ {
54
+ "name": "name",
55
+ "type": {
56
+ "text": "string"
57
+ }
58
+ },
59
+ {
60
+ "name": "value",
61
+ "type": {
62
+ "text": "string | null"
63
+ }
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "kind": "method",
69
+ "name": "setupErrorState"
70
+ },
71
+ {
72
+ "kind": "field",
73
+ "name": "$slotLegend",
74
+ "readonly": true
75
+ },
76
+ {
77
+ "kind": "field",
78
+ "name": "$slotHelper",
79
+ "readonly": true
80
+ },
81
+ {
82
+ "kind": "field",
83
+ "name": "$slotError",
84
+ "readonly": true
85
+ },
86
+ {
87
+ "kind": "field",
88
+ "name": "inverted"
89
+ },
90
+ {
91
+ "kind": "field",
92
+ "name": "role"
93
+ },
94
+ {
95
+ "kind": "field",
96
+ "name": "ariaRequired"
97
+ },
98
+ {
99
+ "kind": "field",
100
+ "name": "ariaDisabled"
101
+ },
102
+ {
103
+ "kind": "field",
104
+ "name": "state"
105
+ },
106
+ {
107
+ "kind": "field",
108
+ "name": "disabled",
109
+ "type": {
110
+ "text": "boolean"
111
+ },
112
+ "attribute": "disabled"
113
+ },
114
+ {
115
+ "kind": "field",
116
+ "name": "name",
117
+ "type": {
118
+ "text": "string"
119
+ },
120
+ "attribute": "name"
121
+ },
122
+ {
123
+ "kind": "field",
124
+ "name": "form",
125
+ "type": {
126
+ "text": "HTMLFormElement | null"
127
+ },
128
+ "readonly": true
129
+ },
130
+ {
131
+ "kind": "field",
132
+ "name": "elements",
133
+ "type": {
134
+ "text": "HTMLCollection"
135
+ },
136
+ "readonly": true
137
+ },
138
+ {
139
+ "kind": "field",
140
+ "name": "type",
141
+ "type": {
142
+ "text": "string"
143
+ },
144
+ "readonly": true
145
+ },
146
+ {
147
+ "kind": "field",
148
+ "name": "validity",
149
+ "type": {
150
+ "text": "ValidityState"
151
+ },
152
+ "readonly": true
153
+ },
154
+ {
155
+ "kind": "field",
156
+ "name": "validationMessage",
157
+ "type": {
158
+ "text": "string"
159
+ },
160
+ "readonly": true
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "willValidate",
165
+ "type": {
166
+ "text": "boolean"
167
+ },
168
+ "readonly": true
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "checkValidity",
173
+ "type": {
174
+ "text": "HTMLFieldSetElement['checkValidity']"
175
+ },
176
+ "readonly": true
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "reportValidity",
181
+ "type": {
182
+ "text": "HTMLFieldSetElement['reportValidity']"
183
+ },
184
+ "readonly": true
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "setCustomValidity",
189
+ "type": {
190
+ "text": "HTMLFieldSetElement['setCustomValidity']"
191
+ },
192
+ "readonly": true
193
+ }
194
+ ],
195
+ "attributes": [
196
+ {
197
+ "name": "inverted"
198
+ },
199
+ {
200
+ "name": "role"
201
+ },
202
+ {
203
+ "name": "aria-required"
204
+ },
205
+ {
206
+ "name": "aria-disabled"
207
+ },
208
+ {
209
+ "name": "state"
210
+ },
211
+ {
212
+ "name": "disabled",
213
+ "type": {
214
+ "text": "boolean"
215
+ },
216
+ "fieldName": "disabled",
217
+ "description": "Whether the native control is disabled."
218
+ },
219
+ {
220
+ "name": "name",
221
+ "type": {
222
+ "text": "string"
223
+ },
224
+ "fieldName": "name",
225
+ "description": "The native element name."
226
+ },
227
+ {
228
+ "type": {
229
+ "text": "string"
230
+ },
231
+ "description": "The ID of the associated form; the form property is the native form reference.",
232
+ "name": "form"
233
+ }
234
+ ],
235
+ "superclass": {
236
+ "name": "PxElement",
237
+ "package": "@proximus/lavender-common"
238
+ },
239
+ "tagName": "px-fieldset",
240
+ "customElement": true
241
+ }
242
+ ],
243
+ "exports": [
244
+ {
245
+ "kind": "js",
246
+ "name": "Fieldset",
247
+ "declaration": {
248
+ "name": "Fieldset",
249
+ "module": "src/Fieldset.ts"
250
+ }
251
+ },
252
+ {
253
+ "kind": "custom-element-definition",
254
+ "name": "px-fieldset",
255
+ "declaration": {
256
+ "name": "Fieldset",
257
+ "module": "src/Fieldset.ts"
258
+ }
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ "kind": "javascript-module",
264
+ "path": "src/fieldset.css",
265
+ "declarations": [],
266
+ "exports": []
267
+ },
268
+ {
269
+ "kind": "javascript-module",
270
+ "path": "src/index.ts",
271
+ "declarations": [],
272
+ "exports": [
273
+ {
274
+ "kind": "js",
275
+ "name": "*",
276
+ "declaration": {
277
+ "name": "*",
278
+ "module": "src/Fieldset"
279
+ }
280
+ }
281
+ ]
282
+ }
283
+ ]
284
+ }
package/dist/index.es.js CHANGED
@@ -1,106 +1,112 @@
1
- import { PxElement as a, transferAccessibilityAttributes as d, log as n } from "@proximus/lavender-common";
2
- const b = ':host{display:block}:host *{box-sizing:border-box}fieldset{display:flex;flex-direction:column;margin:0;padding:0;border:0;font-family:var(--px-font-family)}fieldset legend{padding:0}fieldset ::slotted([slot="legend"]:not([shown--sr])){display:block;margin-bottom:var(--px-spacing-xs-mobile)}fieldset ::slotted([slot="error-text"]){display:none;font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-purpose-error-default);margin-bottom:var(--px-spacing-xs-mobile)}:host([state="error"]) ::slotted([slot="error-text"]){display:block}@media only screen and (min-width: 48em){fieldset ::slotted([slot="legend"]:not([shown--sr])){margin-bottom:var(--px-spacing-xs-tablet)}fieldset ::slotted([slot="error-text"]){font-size:var(--px-text-size-body-m-tablet)}}@media only screen and (min-width: 64.0625em){fieldset ::slotted([slot="legend"]:not([shown--sr])){margin-bottom:var(--px-spacing-xs-laptop)}fieldset ::slotted([slot="error-text"]){font-size:var(--px-text-size-body-m-laptop)}}@media only screen and (min-width: 90.0625em){fieldset ::slotted([slot="legend"]:not([shown--sr])){margin-bottom:var(--px-spacing-xs-desktop)}fieldset ::slotted([slot="error-text"]){font-size:var(--px-text-size-body-m-desktop)}}:host([inverted]) fieldset ::slotted([slot="error-text"]){color:var(--px-color-text-purpose-error-inverted)}', o = new CSSStyleSheet();
3
- o.replaceSync(b);
4
- const i = class i extends a {
5
- constructor() {
6
- super(o), this.template = () => `<fieldset >
7
- <legend><slot name="legend"></slot></legend>
8
- <slot name="error-text"></slot>
9
- <slot></slot>
10
- </fieldset>`, this.shadowRoot.innerHTML = this.template();
11
- }
12
- static get observedAttributes() {
13
- return [
14
- ...super.observedAttributes,
15
- "inverted",
16
- "role",
17
- "aria-required",
18
- "aria-disabled",
19
- "state"
20
- ];
21
- }
22
- connectedCallback() {
23
- this.setupErrorState(), d(this, this.$el, !1);
24
- }
25
- attributeChangedCallback(t, r, e) {
26
- if (r !== e)
27
- switch (t) {
28
- case "disabled": {
29
- this.querySelectorAll(
30
- "px-radio-group, px-radio, px-checkbox, px-fileupload, px-input, px-textarea, px-select, px-switch"
31
- ).forEach((l) => {
32
- l.setAttribute(t, "true");
33
- });
34
- break;
35
- }
36
- case "role":
37
- case "aria-required":
38
- case "aria-disabled":
39
- e !== null && (this.$el.setAttribute(t, this.getAttribute(t)), this.removeAttribute(t));
40
- break;
41
- case "state":
42
- this.setupErrorState();
43
- break;
44
- default:
45
- super.attributeChangedCallback(t, r, e);
46
- break;
47
- }
48
- }
49
- setupErrorState() {
50
- var r;
51
- const t = ((r = this.$slotError) == null ? void 0 : r.assignedNodes().length) > 0;
52
- if (this.state === "error" && !t && n(
53
- '<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
54
- ), this.state === "error" && t) {
55
- const e = Math.random().toString(36).substr(2, 9);
56
- this.$el.setAttribute("id", e), this.$el.setAttribute("aria-describedby", `${e}-error-text`), this.$el.setAttribute("aria-invalid", "true"), this.$slotError.setAttribute("id", `${e}-error-text`);
57
- } else
58
- this.$el.removeAttribute("id"), this.$el.removeAttribute("aria-describedby"), this.$el.removeAttribute("aria-invalid"), this.$slotError.removeAttribute("id");
59
- }
60
- get $slotLegend() {
61
- return this.shadowRoot.querySelector(
62
- 'slot[name="legend"]'
63
- );
64
- }
65
- get $slotError() {
66
- return this.shadowRoot.querySelector(
67
- 'slot[name="error-text"]'
68
- );
69
- }
70
- get inverted() {
71
- return this.hasAttribute("inverted");
72
- }
73
- set inverted(t) {
74
- t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
75
- }
76
- get role() {
77
- return this.getAttribute("role");
78
- }
79
- set role(t) {
80
- t ? this.setAttribute("role", t) : this.removeAttribute("role");
81
- }
82
- get ariaRequired() {
83
- return this.getAttribute("aria-required");
84
- }
85
- set ariaRequired(t) {
86
- t ? this.setAttribute("aria-required", t) : this.removeAttribute("aria-required");
87
- }
88
- get ariaDisabled() {
89
- return this.getAttribute("aria-disabled");
90
- }
91
- set ariaDisabled(t) {
92
- t ? this.setAttribute("aria-disabled", t) : this.removeAttribute("aria-disabled");
93
- }
94
- get state() {
95
- return this.getAttribute("state");
96
- }
97
- set state(t) {
98
- t ? this.setAttribute("state", t) : this.removeAttribute("state");
99
- }
100
- };
101
- i.nativeName = "fieldset";
102
- let s = i;
103
- customElements.get("px-fieldset") || customElements.define("px-fieldset", s);
104
- export {
105
- s as Fieldset
1
+ import { PxElement as e, createTemplate as t, log as n, nativeFieldsetMethods as r, nativeFieldsetProperties as i, renderTemplate as a, transferAccessibilityAttributes as o } from "@proximus/lavender-common";
2
+ //#region src/fieldset.css?inline
3
+ var s = ":host{display:block}:host *{box-sizing:border-box}fieldset{font-family:var(--px-font-family);border:0;flex-direction:column;margin:0;padding:0;display:flex}fieldset legend{padding:0}fieldset ::slotted([slot=legend]:not([shown--sr])){margin-bottom:var(--px-spacing-2xs-mobile);display:block}fieldset ::slotted([slot=error-text]),fieldset ::slotted([slot=state-text]){display:none}slot[name=helper]{color:#0000008f;font-size:var(--px-text-size-label-s-mobile)}slot[name=error-text]{font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-purpose-error-default)}:host([state=error]) ::slotted([slot=error-text]),:host([state=error]) ::slotted([slot=state-text]){display:block}@media screen and (width>=48rem){fieldset ::slotted([slot=legend]:not([shown--sr])){margin-bottom:var(--px-spacing-2xs-tablet)}slot[name=helper]{font-size:var(--px-text-size-label-s-tablet)}slot[name=error-text]{font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){fieldset ::slotted([slot=legend]:not([shown--sr])){margin-bottom:var(--px-spacing-2xs-laptop)}slot[name=helper]{font-size:var(--px-text-size-label-s-laptop)}slot[name=error-text]{font-size:var(--px-text-size-body-m-laptop)}}@media screen and (width>=90.0625rem){fieldset ::slotted([slot=legend]:not([shown--sr])){margin-bottom:var(--px-spacing-2xs-desktop)}slot[name=helper]{font-size:var(--px-text-size-label-s-desktop)}slot[name=error-text]{font-size:var(--px-text-size-body-m-desktop)}}:host([inverted]) fieldset [name=error-text]{color:var(--px-color-text-purpose-error-inverted)}", c = new CSSStyleSheet();
4
+ c.replaceSync(s);
5
+ var l = class s extends e {
6
+ static {
7
+ this.template = t("<fieldset><legend><slot name=\"legend\"></slot></legend><px-vstack gap=\"2xs\"><slot name=\"helper\"></slot><slot name=\"error-text\"></slot><slot></slot></px-vstack></fieldset>");
8
+ }
9
+ static {
10
+ this.nativeName = "fieldset";
11
+ }
12
+ static {
13
+ this.nativeProperties = i;
14
+ }
15
+ static {
16
+ this.nativeMethods = r;
17
+ }
18
+ static {
19
+ this.nativeAttributes = {
20
+ disabled: ["disabled"],
21
+ name: ["name"],
22
+ form: []
23
+ };
24
+ }
25
+ constructor() {
26
+ super(c), a(this.shadowRoot, s.template);
27
+ }
28
+ static get observedAttributes() {
29
+ return [
30
+ ...super.observedAttributes,
31
+ "inverted",
32
+ "role",
33
+ "aria-required",
34
+ "aria-disabled",
35
+ "state"
36
+ ];
37
+ }
38
+ connectedCallback() {
39
+ this.setupErrorState(), o(this, this.$el, !1), this._syncPrefixedAccessibilityAttributes();
40
+ }
41
+ attributeChangedCallback(e, t, n) {
42
+ if (t !== n) switch (e) {
43
+ case "disabled":
44
+ super.attributeChangedCallback(e, t, n), this.querySelectorAll("px-radio-group, px-radio, px-checkbox, px-fileupload, px-input, px-textarea, px-select, px-switch").forEach((t) => {
45
+ n === null ? t.removeAttribute(e) : t.setAttribute(e, "true");
46
+ });
47
+ break;
48
+ case "role":
49
+ case "aria-required":
50
+ case "aria-disabled":
51
+ n !== null && (this.$el.setAttribute(e, n), this.removeAttribute(e));
52
+ break;
53
+ case "state":
54
+ this.setupErrorState();
55
+ break;
56
+ default: super.attributeChangedCallback(e, t, n);
57
+ }
58
+ }
59
+ _forwardPrefixedAccessibilityAttribute(e, t) {
60
+ e === "aria-describedby" && this.state === "error" && this.$slotError.id && (t = [this.$slotError.id, t].filter(Boolean).join(" ")), super._forwardPrefixedAccessibilityAttribute(e, t);
61
+ }
62
+ setupErrorState() {
63
+ let e = this.$slotError?.assignedNodes().length > 0;
64
+ if (this.state === "error" && !e && n("<px-fieldset> with state=\"error\" requires a slot=\"error-text\" containing the error description."), this.state === "error" && e) {
65
+ let e = Math.random().toString(36).substr(2, 9);
66
+ this.$el.setAttribute("id", e), this.$el.setAttribute("aria-describedby", `${e}-error-text`), this.$el.getAttribute("role") && this.$el.setAttribute("aria-invalid", "true"), this.$slotError.setAttribute("id", `${e}-error-text`);
67
+ } else this.$el.removeAttribute("id"), this.$el.removeAttribute("aria-describedby"), this.$el.removeAttribute("aria-invalid"), this.$slotError.removeAttribute("id");
68
+ this._syncPrefixedAccessibilityAttributes();
69
+ }
70
+ get $slotLegend() {
71
+ return this.shadowRoot.querySelector("slot[name=\"legend\"]");
72
+ }
73
+ get $slotHelper() {
74
+ return this.shadowRoot.querySelector("slot[name=\"helper\"]");
75
+ }
76
+ get $slotError() {
77
+ return this.shadowRoot.querySelector("slot[name=\"error-text\"]");
78
+ }
79
+ get inverted() {
80
+ return this.hasAttribute("inverted");
81
+ }
82
+ set inverted(e) {
83
+ this._updateBooleanAttribute("inverted", e);
84
+ }
85
+ get role() {
86
+ return this.getAttribute("role");
87
+ }
88
+ set role(e) {
89
+ this._updateAttribute("role", e);
90
+ }
91
+ get ariaRequired() {
92
+ return this.getAttribute("aria-required");
93
+ }
94
+ set ariaRequired(e) {
95
+ this._updateAttribute("aria-required", e);
96
+ }
97
+ get ariaDisabled() {
98
+ return this.getAttribute("aria-disabled");
99
+ }
100
+ set ariaDisabled(e) {
101
+ this._updateAttribute("aria-disabled", e);
102
+ }
103
+ get state() {
104
+ return this.getAttribute("state");
105
+ }
106
+ set state(e) {
107
+ this._updateAttribute("state", e);
108
+ }
106
109
  };
110
+ customElements.get("px-fieldset") || customElements.define("px-fieldset", l);
111
+ //#endregion
112
+ export { l as Fieldset };
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "tags": [
5
+ {
6
+ "name": "px-fieldset",
7
+ "description": "\n---\n",
8
+ "attributes": [
9
+ { "name": "inverted", "values": [] },
10
+ { "name": "role", "values": [] },
11
+ { "name": "aria-required", "values": [] },
12
+ { "name": "aria-disabled", "values": [] },
13
+ { "name": "state", "values": [] },
14
+ {
15
+ "name": "disabled",
16
+ "description": "Whether the native control is disabled.",
17
+ "values": []
18
+ },
19
+ {
20
+ "name": "name",
21
+ "description": "The native element name.",
22
+ "values": []
23
+ },
24
+ {
25
+ "name": "form",
26
+ "description": "The ID of the associated form; the form property is the native form reference.",
27
+ "values": []
28
+ }
29
+ ],
30
+ "references": []
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-fieldset",
4
+ "version": "2.0.0-alpha.242",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-fieldset",
11
+ "description": "\n\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ { "name": "inverted", "value": { "type": "string" } },
15
+ { "name": "role", "value": { "type": "string" } },
16
+ { "name": "aria-required", "value": { "type": "string" } },
17
+ { "name": "aria-disabled", "value": { "type": "string" } },
18
+ { "name": "state", "value": { "type": "string" } },
19
+ {
20
+ "name": "disabled",
21
+ "description": "Whether the native control is disabled.",
22
+ "value": { "type": "boolean" }
23
+ },
24
+ {
25
+ "name": "name",
26
+ "description": "The native element name.",
27
+ "value": { "type": "string" }
28
+ },
29
+ {
30
+ "name": "form",
31
+ "description": "The ID of the associated form; the form property is the native form reference.",
32
+ "value": { "type": "string" }
33
+ }
34
+ ],
35
+ "events": [],
36
+ "js": {
37
+ "properties": [
38
+ { "name": "$slotLegend" },
39
+ { "name": "$slotHelper" },
40
+ { "name": "$slotError" },
41
+ { "name": "inverted" },
42
+ { "name": "role" },
43
+ { "name": "ariaRequired" },
44
+ { "name": "ariaDisabled" },
45
+ { "name": "state" },
46
+ { "name": "disabled", "type": "boolean" },
47
+ { "name": "name", "type": "string" },
48
+ { "name": "form", "type": "HTMLFormElement | null" },
49
+ { "name": "elements", "type": "HTMLCollection" },
50
+ { "name": "type", "type": "string" },
51
+ { "name": "validity", "type": "ValidityState" },
52
+ { "name": "validationMessage", "type": "string" },
53
+ { "name": "willValidate", "type": "boolean" },
54
+ {
55
+ "name": "checkValidity",
56
+ "type": "HTMLFieldSetElement['checkValidity']"
57
+ },
58
+ {
59
+ "name": "reportValidity",
60
+ "type": "HTMLFieldSetElement['reportValidity']"
61
+ },
62
+ {
63
+ "name": "setCustomValidity",
64
+ "type": "HTMLFieldSetElement['setCustomValidity']"
65
+ }
66
+ ],
67
+ "events": []
68
+ }
69
+ }
70
+ ]
71
+ },
72
+ "css": {
73
+ "properties": [],
74
+ "pseudo-elements": []
75
+ }
76
+ }
77
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-fieldset",
3
- "version": "2.0.0-alpha.24",
3
+ "version": "2.0.0-alpha.242",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"