@proximus/lavender-fieldset 2.0.0-alpha.23 → 2.0.0-alpha.231

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,53 @@
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;
9
26
  setupErrorState(): void;
10
27
  get $slotLegend(): HTMLSlotElement;
28
+ get $slotHelper(): HTMLSlotElement;
11
29
  get $slotError(): HTMLSlotElement;
12
30
  get inverted(): boolean;
13
31
  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);
32
+ get role(): string | null;
33
+ set role(value: string | null);
34
+ get ariaRequired(): string | null;
35
+ set ariaRequired(value: string | null);
36
+ get ariaDisabled(): string | null;
37
+ set ariaDisabled(value: string | null);
38
+ get state(): string | null;
39
+ set state(value: string | null);
40
+ /** @attr {boolean} disabled - Whether the native control is disabled. */
41
+ disabled: boolean;
42
+ /** @attr {string} name - The native element name. */
43
+ name: string;
44
+ readonly form: HTMLFormElement | null;
45
+ readonly elements: HTMLCollection;
46
+ readonly type: string;
47
+ readonly validity: ValidityState;
48
+ readonly validationMessage: string;
49
+ readonly willValidate: boolean;
50
+ readonly checkValidity: HTMLFieldSetElement['checkValidity'];
51
+ readonly reportValidity: HTMLFieldSetElement['reportValidity'];
52
+ readonly setCustomValidity: HTMLFieldSetElement['setCustomValidity'];
22
53
  }
@@ -0,0 +1,265 @@
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": "setupErrorState"
51
+ },
52
+ {
53
+ "kind": "field",
54
+ "name": "$slotLegend",
55
+ "readonly": true
56
+ },
57
+ {
58
+ "kind": "field",
59
+ "name": "$slotHelper",
60
+ "readonly": true
61
+ },
62
+ {
63
+ "kind": "field",
64
+ "name": "$slotError",
65
+ "readonly": true
66
+ },
67
+ {
68
+ "kind": "field",
69
+ "name": "inverted"
70
+ },
71
+ {
72
+ "kind": "field",
73
+ "name": "role"
74
+ },
75
+ {
76
+ "kind": "field",
77
+ "name": "ariaRequired"
78
+ },
79
+ {
80
+ "kind": "field",
81
+ "name": "ariaDisabled"
82
+ },
83
+ {
84
+ "kind": "field",
85
+ "name": "state"
86
+ },
87
+ {
88
+ "kind": "field",
89
+ "name": "disabled",
90
+ "type": {
91
+ "text": "boolean"
92
+ },
93
+ "attribute": "disabled"
94
+ },
95
+ {
96
+ "kind": "field",
97
+ "name": "name",
98
+ "type": {
99
+ "text": "string"
100
+ },
101
+ "attribute": "name"
102
+ },
103
+ {
104
+ "kind": "field",
105
+ "name": "form",
106
+ "type": {
107
+ "text": "HTMLFormElement | null"
108
+ },
109
+ "readonly": true
110
+ },
111
+ {
112
+ "kind": "field",
113
+ "name": "elements",
114
+ "type": {
115
+ "text": "HTMLCollection"
116
+ },
117
+ "readonly": true
118
+ },
119
+ {
120
+ "kind": "field",
121
+ "name": "type",
122
+ "type": {
123
+ "text": "string"
124
+ },
125
+ "readonly": true
126
+ },
127
+ {
128
+ "kind": "field",
129
+ "name": "validity",
130
+ "type": {
131
+ "text": "ValidityState"
132
+ },
133
+ "readonly": true
134
+ },
135
+ {
136
+ "kind": "field",
137
+ "name": "validationMessage",
138
+ "type": {
139
+ "text": "string"
140
+ },
141
+ "readonly": true
142
+ },
143
+ {
144
+ "kind": "field",
145
+ "name": "willValidate",
146
+ "type": {
147
+ "text": "boolean"
148
+ },
149
+ "readonly": true
150
+ },
151
+ {
152
+ "kind": "field",
153
+ "name": "checkValidity",
154
+ "type": {
155
+ "text": "HTMLFieldSetElement['checkValidity']"
156
+ },
157
+ "readonly": true
158
+ },
159
+ {
160
+ "kind": "field",
161
+ "name": "reportValidity",
162
+ "type": {
163
+ "text": "HTMLFieldSetElement['reportValidity']"
164
+ },
165
+ "readonly": true
166
+ },
167
+ {
168
+ "kind": "field",
169
+ "name": "setCustomValidity",
170
+ "type": {
171
+ "text": "HTMLFieldSetElement['setCustomValidity']"
172
+ },
173
+ "readonly": true
174
+ }
175
+ ],
176
+ "attributes": [
177
+ {
178
+ "name": "inverted"
179
+ },
180
+ {
181
+ "name": "role"
182
+ },
183
+ {
184
+ "name": "aria-required"
185
+ },
186
+ {
187
+ "name": "aria-disabled"
188
+ },
189
+ {
190
+ "name": "state"
191
+ },
192
+ {
193
+ "name": "disabled",
194
+ "type": {
195
+ "text": "boolean"
196
+ },
197
+ "fieldName": "disabled",
198
+ "description": "Whether the native control is disabled."
199
+ },
200
+ {
201
+ "name": "name",
202
+ "type": {
203
+ "text": "string"
204
+ },
205
+ "fieldName": "name",
206
+ "description": "The native element name."
207
+ },
208
+ {
209
+ "type": {
210
+ "text": "string"
211
+ },
212
+ "description": "The ID of the associated form; the form property is the native form reference.",
213
+ "name": "form"
214
+ }
215
+ ],
216
+ "superclass": {
217
+ "name": "PxElement",
218
+ "package": "@proximus/lavender-common"
219
+ },
220
+ "tagName": "px-fieldset",
221
+ "customElement": true
222
+ }
223
+ ],
224
+ "exports": [
225
+ {
226
+ "kind": "js",
227
+ "name": "Fieldset",
228
+ "declaration": {
229
+ "name": "Fieldset",
230
+ "module": "src/Fieldset.ts"
231
+ }
232
+ },
233
+ {
234
+ "kind": "custom-element-definition",
235
+ "name": "px-fieldset",
236
+ "declaration": {
237
+ "name": "Fieldset",
238
+ "module": "src/Fieldset.ts"
239
+ }
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "kind": "javascript-module",
245
+ "path": "src/fieldset.css",
246
+ "declarations": [],
247
+ "exports": []
248
+ },
249
+ {
250
+ "kind": "javascript-module",
251
+ "path": "src/index.ts",
252
+ "declarations": [],
253
+ "exports": [
254
+ {
255
+ "kind": "js",
256
+ "name": "*",
257
+ "declaration": {
258
+ "name": "*",
259
+ "module": "src/Fieldset"
260
+ }
261
+ }
262
+ ]
263
+ }
264
+ ]
265
+ }
package/dist/index.es.js CHANGED
@@ -1,106 +1,108 @@
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);
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
+ setupErrorState() {
60
+ let e = this.$slotError?.assignedNodes().length > 0;
61
+ if (this.state === "error" && !e && n("<px-fieldset> with state=\"error\" requires a slot=\"error-text\" containing the error description."), this.state === "error" && e) {
62
+ let e = Math.random().toString(36).substr(2, 9);
63
+ 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`);
64
+ } else this.$el.removeAttribute("id"), this.$el.removeAttribute("aria-describedby"), this.$el.removeAttribute("aria-invalid"), this.$slotError.removeAttribute("id");
65
+ }
66
+ get $slotLegend() {
67
+ return this.shadowRoot.querySelector("slot[name=\"legend\"]");
68
+ }
69
+ get $slotHelper() {
70
+ return this.shadowRoot.querySelector("slot[name=\"helper\"]");
71
+ }
72
+ get $slotError() {
73
+ return this.shadowRoot.querySelector("slot[name=\"error-text\"]");
74
+ }
75
+ get inverted() {
76
+ return this.hasAttribute("inverted");
77
+ }
78
+ set inverted(e) {
79
+ this._updateBooleanAttribute("inverted", e);
80
+ }
81
+ get role() {
82
+ return this.getAttribute("role");
83
+ }
84
+ set role(e) {
85
+ this._updateAttribute("role", e);
86
+ }
87
+ get ariaRequired() {
88
+ return this.getAttribute("aria-required");
89
+ }
90
+ set ariaRequired(e) {
91
+ this._updateAttribute("aria-required", e);
92
+ }
93
+ get ariaDisabled() {
94
+ return this.getAttribute("aria-disabled");
95
+ }
96
+ set ariaDisabled(e) {
97
+ this._updateAttribute("aria-disabled", e);
98
+ }
99
+ get state() {
100
+ return this.getAttribute("state");
101
+ }
102
+ set state(e) {
103
+ this._updateAttribute("state", e);
104
+ }
106
105
  };
106
+ customElements.get("px-fieldset") || customElements.define("px-fieldset", l);
107
+ //#endregion
108
+ 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.231",
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.23",
3
+ "version": "2.0.0-alpha.231",
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"