@proximus/lavender-common 1.4.20-alpha.1 → 1.4.20-alpha.10

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/index.es.js CHANGED
@@ -1,33 +1,23 @@
1
- //#region src/common.css?inline
2
- var e = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
3
- //#endregion
4
- //#region src/common.ts
5
- function t(e) {
6
- let t = document.createElement(e), n = Object.getPrototypeOf(t);
7
- return Object.getOwnPropertyNames(n);
8
- }
9
- function n(e) {
10
- let t = document.createElement(e), n = Object.getPrototypeOf(t);
11
- return Object.getOwnPropertyNames(n).map((e) => e.toLowerCase());
12
- }
13
- var r = new CSSStyleSheet();
14
- r.replaceSync(e);
15
- var i = {
1
+ //#region src/debug.ts
2
+ var e = {
16
3
  BASE_URL: "/",
17
4
  DEV: !0,
18
5
  MODE: "production",
19
6
  PROD: !1,
20
7
  SSR: !1,
21
8
  VITE_COMPONENT_DEBUG: "true"
22
- }, a = i?.VITE_COMPONENT_DEBUG === "true" || i?.DEV === !0;
23
- typeof window < "u" && (window.isComponentDebug = o);
24
- function o() {
25
- return a;
9
+ }, t = e?.VITE_COMPONENT_DEBUG === "true" || e?.DEV === !0;
10
+ typeof window < "u" && (window.isComponentDebug = n);
11
+ function n() {
12
+ return t;
26
13
  }
27
- function s(e) {
28
- o() && console.error(e);
14
+ function r(e) {
15
+ n() && console.error(e);
29
16
  }
30
- var c = class {
17
+ typeof window < "u" && (window.isComponentDebug = n);
18
+ //#endregion
19
+ //#region src/WrappedInteractiveStateController.ts
20
+ var i = class {
31
21
  #e;
32
22
  #t;
33
23
  #n;
@@ -57,19 +47,253 @@ var c = class {
57
47
  });
58
48
  }
59
49
  get #a() {
60
- return Array.from(this.#e.querySelectorAll("*")).filter(l);
50
+ return Array.from(this.#e.querySelectorAll("*")).filter(a);
61
51
  }
62
52
  };
63
- function l(e) {
53
+ function a(e) {
64
54
  return e.hasAttribute("interactive-state") ? !0 : customElements.get(e.localName)?.observedAttributes?.includes("interactive-state") ?? !1;
65
55
  }
66
- typeof window < "u" && (window.isComponentDebug = o);
67
- var u = class e extends HTMLElement {
56
+ //#endregion
57
+ //#region src/common.css?inline
58
+ var o = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
59
+ //#endregion
60
+ //#region src/attributeSetters.ts
61
+ function s(e, t, n) {
62
+ if (n == null || n === "") {
63
+ e.removeAttribute(t);
64
+ return;
65
+ }
66
+ e.setAttribute(t, n.toString());
67
+ }
68
+ function c(e, t, n) {
69
+ if (!n) {
70
+ e.removeAttribute(t);
71
+ return;
72
+ }
73
+ e.setAttribute(t, "");
74
+ }
75
+ //#endregion
76
+ //#region src/values.ts
77
+ var l = [
78
+ "",
79
+ "default",
80
+ "none",
81
+ "l"
82
+ ], u = [
83
+ "",
84
+ "default",
85
+ "auto",
86
+ "flex-start",
87
+ "start",
88
+ "flex-end",
89
+ "end",
90
+ "center",
91
+ "baseline",
92
+ "stretch"
93
+ ], d = [
94
+ "",
95
+ "default",
96
+ "start",
97
+ "end",
98
+ "center",
99
+ "stretch"
100
+ ], f = [
101
+ "",
102
+ "default",
103
+ "start",
104
+ "end",
105
+ "center",
106
+ "stretch"
107
+ ], p = [
108
+ "",
109
+ "1",
110
+ "2",
111
+ "3",
112
+ "4",
113
+ "5",
114
+ "6",
115
+ "7",
116
+ "8",
117
+ "9",
118
+ "10",
119
+ "11",
120
+ "12"
121
+ ], m = [
122
+ "",
123
+ "-1",
124
+ "0",
125
+ "1",
126
+ "2",
127
+ "3",
128
+ "4",
129
+ "5",
130
+ "6",
131
+ "7",
132
+ "8",
133
+ "9",
134
+ "10",
135
+ "11",
136
+ "12"
137
+ ], h = [
138
+ "",
139
+ "default",
140
+ "auto",
141
+ "start",
142
+ "end",
143
+ "center",
144
+ "stretch"
145
+ ], g = [
146
+ "",
147
+ "default",
148
+ "inherit",
149
+ "body-l",
150
+ "body-m",
151
+ "body-s",
152
+ "body-xs",
153
+ "heading-5xl",
154
+ "heading-4xl",
155
+ "heading-3xl",
156
+ "heading-2xl",
157
+ "heading-xl",
158
+ "heading-l",
159
+ "heading-m",
160
+ "heading-s"
161
+ ], _ = [
162
+ "",
163
+ "default",
164
+ "inherit",
165
+ "brand",
166
+ "neutral",
167
+ "dimmed",
168
+ "purpose-success",
169
+ "purpose-warning",
170
+ "purpose-error",
171
+ "purpose-unlimited",
172
+ "purpose-promo",
173
+ "state-hover",
174
+ "state-active",
175
+ "state-disabled"
176
+ ], v = [
177
+ "",
178
+ "default",
179
+ "inherit",
180
+ "body",
181
+ "title",
182
+ "title-large",
183
+ "subtitle"
184
+ ], y = [
185
+ "Xs",
186
+ "S",
187
+ "M",
188
+ "L",
189
+ "Xl"
190
+ ], b = [
191
+ "",
192
+ "default",
193
+ ...y.map((e) => e.toLowerCase())
194
+ ], ee = [
195
+ "",
196
+ "default",
197
+ "left",
198
+ "center",
199
+ "right"
200
+ ], te = [
201
+ "",
202
+ "none",
203
+ "3xs",
204
+ "2xs",
205
+ "xs",
206
+ "s",
207
+ "m",
208
+ "l",
209
+ "xl"
210
+ ], ne = [
211
+ "",
212
+ "none",
213
+ "s",
214
+ "m",
215
+ "l"
216
+ ], re = [
217
+ "",
218
+ "none",
219
+ "main",
220
+ "pill"
221
+ ], ie = [
222
+ "none",
223
+ "main",
224
+ "brand",
225
+ "state-hover",
226
+ "state-active",
227
+ "neutral",
228
+ "purpose-success",
229
+ "purpose-warning",
230
+ "purpose-error",
231
+ "purpose-unlimited"
232
+ ], ae = [
233
+ "",
234
+ "all",
235
+ "top",
236
+ "right",
237
+ "bottom",
238
+ "left",
239
+ "block",
240
+ "inline"
241
+ ], oe = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), se = [
242
+ "",
243
+ "cover",
244
+ "contain",
245
+ "default"
246
+ ], x = [
247
+ "",
248
+ "none",
249
+ "s",
250
+ "m",
251
+ "l",
252
+ "xl"
253
+ ], S = [
254
+ "",
255
+ "default",
256
+ "title-4xl",
257
+ "title-3xl",
258
+ "title-2xl",
259
+ "title-xl",
260
+ "title-l",
261
+ "title-m",
262
+ "title-s",
263
+ "subtitle"
264
+ ], C = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), w = [
265
+ "none",
266
+ "2xs",
267
+ "xs",
268
+ "s",
269
+ "default",
270
+ "l",
271
+ "heading-to-subtitle",
272
+ "heading-to-content",
273
+ "page-layout-between-sections"
274
+ ], T = [
275
+ "",
276
+ "all",
277
+ "top",
278
+ "right",
279
+ "bottom",
280
+ "left"
281
+ ], E = [
282
+ "",
283
+ "default",
284
+ "xs",
285
+ "s",
286
+ "m",
287
+ "l",
288
+ "xl"
289
+ ], D = new CSSStyleSheet();
290
+ D.replaceSync(o);
291
+ var O = class e extends HTMLElement {
68
292
  static get observedAttributes() {
69
293
  return /* @__PURE__ */ "grow.grow--mobile.grow--tablet.grow--laptop.grow--desktop.shrink.shrink--mobile.shrink--tablet.shrink--laptop.shrink--desktop.basis.basis--mobile.basis--tablet.basis--laptop.basis--desktop.align-self.align-self--mobile.align-self--tablet.align-self--laptop.align-self--desktop.justify-self.justify-self--mobile.justify-self--tablet.justify-self--laptop.justify-self--desktop.hidden.hidden--mobile.hidden--tablet.hidden--laptop.hidden--desktop.shown--sr.shown--sr--mobile.shown--sr--tablet.shown--sr--laptop.shown--sr--desktop.col-span.col-span--mobile.col-span--tablet.col-span--laptop.col-span--desktop.order.order--mobile.order--tablet.order--laptop.order--desktop.sticky-top.sticky-bottom.word-break-all.word-break-all--mobile.word-break-all--tablet.word-break-all--laptop.word-break-all--desktop".split(".");
70
294
  }
71
295
  constructor(...e) {
72
- super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [r, ...e];
296
+ super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [D, ...e];
73
297
  }
74
298
  attributeChangedCallback(t, n, r) {
75
299
  if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
@@ -95,36 +319,36 @@ var u = class e extends HTMLElement {
95
319
  case "align-self--tablet":
96
320
  case "align-self--laptop":
97
321
  case "align-self--desktop":
98
- this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? h : m);
322
+ this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? d : u);
99
323
  break;
100
324
  case "justify-self":
101
325
  case "justify-self--mobile":
102
326
  case "justify-self--tablet":
103
327
  case "justify-self--laptop":
104
328
  case "justify-self--desktop":
105
- this.updateProperties(t, n, r, g);
329
+ this.updateProperties(t, n, r, f);
106
330
  break;
107
331
  case "col-span":
108
332
  case "col-span--mobile":
109
333
  case "col-span--tablet":
110
334
  case "col-span--laptop":
111
335
  case "col-span--desktop":
112
- this.updateProperties(t, n, r, _);
336
+ this.updateProperties(t, n, r, p);
113
337
  break;
114
338
  case "order":
115
339
  case "order--mobile":
116
340
  case "order--tablet":
117
341
  case "order--laptop":
118
- case "order--desktop": this.updateProperties(t, n, r, v);
342
+ case "order--desktop": this.updateProperties(t, n, r, m);
119
343
  }
120
344
  }
121
- updateProperties(e, t, n, r) {
122
- r && (this.checkName(r, n) || s(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`));
123
- let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e;
124
- if (!i) this.style.setProperty(`--${a}-value`, t), this.style.setProperty(`--${a}-value`, n);
345
+ updateProperties(e, t, n, i) {
346
+ i && (this.checkName(i, n) || r(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`));
347
+ let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
348
+ if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
125
349
  else {
126
350
  let r = e.split("--")[1];
127
- this.style.setProperty(`--${a}--${r}-value`, t), this.style.setProperty(`--${a}--${r}-value`, n);
351
+ this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
128
352
  }
129
353
  }
130
354
  updateStyle(e, t, n) {
@@ -155,531 +379,584 @@ var u = class e extends HTMLElement {
155
379
  return this.getAttribute("grow");
156
380
  }
157
381
  set grow(e) {
158
- V(this, "grow", e);
382
+ s(this, "grow", e);
159
383
  }
160
384
  get growMobile() {
161
385
  return this.getAttribute("grow--mobile");
162
386
  }
163
387
  set growMobile(e) {
164
- V(this, "grow--mobile", e);
388
+ s(this, "grow--mobile", e);
165
389
  }
166
390
  get growTablet() {
167
391
  return this.getAttribute("grow--tablet");
168
392
  }
169
393
  set growTablet(e) {
170
- V(this, "grow--tablet", e);
394
+ s(this, "grow--tablet", e);
171
395
  }
172
396
  get growLaptop() {
173
397
  return this.getAttribute("grow--laptop");
174
398
  }
175
399
  set growLaptop(e) {
176
- V(this, "grow--laptop", e);
400
+ s(this, "grow--laptop", e);
177
401
  }
178
402
  get growDesktop() {
179
403
  return this.getAttribute("grow--desktop");
180
404
  }
181
405
  set growDesktop(e) {
182
- V(this, "grow--desktop", e);
406
+ s(this, "grow--desktop", e);
183
407
  }
184
408
  get shrink() {
185
409
  return this.getAttribute("shrink");
186
410
  }
187
411
  set shrink(e) {
188
- V(this, "shrink", e);
412
+ s(this, "shrink", e);
189
413
  }
190
414
  get shrinkMobile() {
191
415
  return this.getAttribute("shrink--mobile");
192
416
  }
193
417
  set shrinkMobile(e) {
194
- V(this, "shrink--mobile", e);
418
+ s(this, "shrink--mobile", e);
195
419
  }
196
420
  get shrinkTablet() {
197
421
  return this.getAttribute("shrink--tablet");
198
422
  }
199
423
  set shrinkTablet(e) {
200
- V(this, "shrink--tablet", e);
424
+ s(this, "shrink--tablet", e);
201
425
  }
202
426
  get shrinkLaptop() {
203
427
  return this.getAttribute("shrink--laptop");
204
428
  }
205
429
  set shrinkLaptop(e) {
206
- V(this, "shrink--laptop", e);
430
+ s(this, "shrink--laptop", e);
207
431
  }
208
432
  get shrinkDesktop() {
209
433
  return this.getAttribute("shrink--desktop");
210
434
  }
211
435
  set shrinkDesktop(e) {
212
- V(this, "shrink--desktop", e);
436
+ s(this, "shrink--desktop", e);
213
437
  }
214
438
  get basis() {
215
439
  return this.getAttribute("basis");
216
440
  }
217
441
  set basis(e) {
218
- V(this, "basis", e);
442
+ s(this, "basis", e);
219
443
  }
220
444
  get basisMobile() {
221
445
  return this.getAttribute("basis--mobile");
222
446
  }
223
447
  set basisMobile(e) {
224
- V(this, "basis--mobile", e);
448
+ s(this, "basis--mobile", e);
225
449
  }
226
450
  get basisTablet() {
227
451
  return this.getAttribute("basis--tablet");
228
452
  }
229
453
  set basisTablet(e) {
230
- V(this, "basis--tablet", e);
454
+ s(this, "basis--tablet", e);
231
455
  }
232
456
  get basisLaptop() {
233
457
  return this.getAttribute("basis--laptop");
234
458
  }
235
459
  set basisLaptop(e) {
236
- V(this, "basis--laptop", e);
460
+ s(this, "basis--laptop", e);
237
461
  }
238
462
  get basisDesktop() {
239
463
  return this.getAttribute("basis--desktop");
240
464
  }
241
465
  set basisDesktop(e) {
242
- V(this, "basis--desktop", e);
466
+ s(this, "basis--desktop", e);
243
467
  }
244
468
  get alignSelf() {
245
469
  return this.getAttribute("align-self");
246
470
  }
247
471
  set alignSelf(e) {
248
- V(this, "align-self", e);
472
+ s(this, "align-self", e);
249
473
  }
250
474
  get alignSelfMobile() {
251
475
  return this.getAttribute("align-self--mobile");
252
476
  }
253
477
  set alignSelfMobile(e) {
254
- V(this, "align-self--mobile", e);
478
+ s(this, "align-self--mobile", e);
255
479
  }
256
480
  get alignSelfTablet() {
257
481
  return this.getAttribute("align-self--tablet");
258
482
  }
259
483
  set alignSelfTablet(e) {
260
- V(this, "align-self--tablet", e);
484
+ s(this, "align-self--tablet", e);
261
485
  }
262
486
  get alignSelfLaptop() {
263
487
  return this.getAttribute("align-self--laptop");
264
488
  }
265
489
  set alignSelfLaptop(e) {
266
- V(this, "align-self--laptop", e);
490
+ s(this, "align-self--laptop", e);
267
491
  }
268
492
  get alignSelfDesktop() {
269
493
  return this.getAttribute("align-self--desktop");
270
494
  }
271
495
  set alignSelfDesktop(e) {
272
- V(this, "align-self--desktop", e);
496
+ s(this, "align-self--desktop", e);
273
497
  }
274
498
  get justifySelf() {
275
499
  return this.getAttribute("justify-self");
276
500
  }
277
501
  set justifySelf(e) {
278
- V(this, "justify-self", e);
502
+ s(this, "justify-self", e);
279
503
  }
280
504
  get justifySelfMobile() {
281
505
  return this.getAttribute("justify-self--mobile");
282
506
  }
283
507
  set justifySelfMobile(e) {
284
- V(this, "justify-self--mobile", e);
508
+ s(this, "justify-self--mobile", e);
285
509
  }
286
510
  get justifySelfTablet() {
287
511
  return this.getAttribute("justify-self--tablet");
288
512
  }
289
513
  set justifySelfTablet(e) {
290
- V(this, "justify-self--tablet", e);
514
+ s(this, "justify-self--tablet", e);
291
515
  }
292
516
  get justifySelfLaptop() {
293
517
  return this.getAttribute("justify-self--laptop");
294
518
  }
295
519
  set justifySelfLaptop(e) {
296
- V(this, "justify-self--laptop", e);
520
+ s(this, "justify-self--laptop", e);
297
521
  }
298
522
  get justifySelfDesktop() {
299
523
  return this.getAttribute("justify-self--desktop");
300
524
  }
301
525
  set justifySelfDesktop(e) {
302
- V(this, "justify-self--desktop", e);
526
+ s(this, "justify-self--desktop", e);
303
527
  }
304
528
  get hiddenMobile() {
305
529
  return this.hasAttribute("hidden--mobile");
306
530
  }
307
531
  set hiddenMobile(e) {
308
- H(this, "hidden--mobile", e);
532
+ c(this, "hidden--mobile", e);
309
533
  }
310
534
  get hiddenTablet() {
311
535
  return this.hasAttribute("hidden--tablet");
312
536
  }
313
537
  set hiddenTablet(e) {
314
- H(this, "hidden--tablet", e);
538
+ c(this, "hidden--tablet", e);
315
539
  }
316
540
  get hiddenLaptop() {
317
541
  return this.hasAttribute("hidden--laptop");
318
542
  }
319
543
  set hiddenLaptop(e) {
320
- H(this, "hidden--laptop", e);
544
+ c(this, "hidden--laptop", e);
321
545
  }
322
546
  get hiddenDesktop() {
323
547
  return this.hasAttribute("hidden--desktop");
324
548
  }
325
549
  set hiddenDesktop(e) {
326
- H(this, "hidden--desktop", e);
550
+ c(this, "hidden--desktop", e);
551
+ }
552
+ get shownSr() {
553
+ return this.hasAttribute("shown--sr");
554
+ }
555
+ set shownSr(e) {
556
+ c(this, "shown--sr", e);
557
+ }
558
+ get shownSrMobile() {
559
+ return this.hasAttribute("shown--sr--mobile");
560
+ }
561
+ set shownSrMobile(e) {
562
+ c(this, "shown--sr--mobile", e);
563
+ }
564
+ get shownSrTablet() {
565
+ return this.hasAttribute("shown--sr--tablet");
566
+ }
567
+ set shownSrTablet(e) {
568
+ c(this, "shown--sr--tablet", e);
569
+ }
570
+ get shownSrLaptop() {
571
+ return this.hasAttribute("shown--sr--laptop");
572
+ }
573
+ set shownSrLaptop(e) {
574
+ c(this, "shown--sr--laptop", e);
575
+ }
576
+ get shownSrDesktop() {
577
+ return this.hasAttribute("shown--sr--desktop");
578
+ }
579
+ set shownSrDesktop(e) {
580
+ c(this, "shown--sr--desktop", e);
327
581
  }
328
582
  get colSpan() {
329
583
  return this.getAttribute("col-span");
330
584
  }
331
585
  set colSpan(e) {
332
- V(this, "col-span", e);
586
+ s(this, "col-span", e);
333
587
  }
334
588
  get colSpanMobile() {
335
589
  return this.getAttribute("col-span--mobile");
336
590
  }
337
591
  set colSpanMobile(e) {
338
- V(this, "col-span--mobile", e);
592
+ s(this, "col-span--mobile", e);
339
593
  }
340
594
  get colSpanTablet() {
341
595
  return this.getAttribute("col-span--tablet");
342
596
  }
343
597
  set colSpanTablet(e) {
344
- V(this, "col-span--tablet", e);
598
+ s(this, "col-span--tablet", e);
345
599
  }
346
600
  get colSpanLaptop() {
347
601
  return this.getAttribute("col-span--laptop");
348
602
  }
349
603
  set colSpanLaptop(e) {
350
- V(this, "col-span--laptop", e);
604
+ s(this, "col-span--laptop", e);
351
605
  }
352
606
  get colSpanDesktop() {
353
607
  return this.getAttribute("col-span--desktop");
354
608
  }
355
609
  set colSpanDesktop(e) {
356
- V(this, "col-span--desktop", e);
610
+ s(this, "col-span--desktop", e);
357
611
  }
358
612
  get order() {
359
613
  return this.getAttribute("order");
360
614
  }
361
615
  set order(e) {
362
- V(this, "order", e);
616
+ s(this, "order", e);
363
617
  }
364
618
  get orderMobile() {
365
619
  return this.getAttribute("order--mobile");
366
620
  }
367
621
  set orderMobile(e) {
368
- V(this, "order--mobile", e);
622
+ s(this, "order--mobile", e);
369
623
  }
370
624
  get orderTablet() {
371
625
  return this.getAttribute("order--tablet");
372
626
  }
373
627
  set orderTablet(e) {
374
- V(this, "order--tablet", e);
628
+ s(this, "order--tablet", e);
375
629
  }
376
630
  get orderLaptop() {
377
631
  return this.getAttribute("order--laptop");
378
632
  }
379
633
  set orderLaptop(e) {
380
- V(this, "order--laptop", e);
634
+ s(this, "order--laptop", e);
381
635
  }
382
636
  get orderDesktop() {
383
637
  return this.getAttribute("order--desktop");
384
638
  }
385
639
  set orderDesktop(e) {
386
- V(this, "order--desktop", e);
640
+ s(this, "order--desktop", e);
641
+ }
642
+ get stickyTop() {
643
+ return this.hasAttribute("sticky-top");
644
+ }
645
+ set stickyTop(e) {
646
+ c(this, "sticky-top", e);
647
+ }
648
+ get stickyBottom() {
649
+ return this.hasAttribute("sticky-bottom");
650
+ }
651
+ set stickyBottom(e) {
652
+ c(this, "sticky-bottom", e);
653
+ }
654
+ get wordBreakAll() {
655
+ return this.hasAttribute("word-break-all");
656
+ }
657
+ set wordBreakAll(e) {
658
+ c(this, "word-break-all", e);
659
+ }
660
+ get wordBreakAllMobile() {
661
+ return this.hasAttribute("word-break-all--mobile");
662
+ }
663
+ set wordBreakAllMobile(e) {
664
+ c(this, "word-break-all--mobile", e);
665
+ }
666
+ get wordBreakAllTablet() {
667
+ return this.hasAttribute("word-break-all--tablet");
668
+ }
669
+ set wordBreakAllTablet(e) {
670
+ c(this, "word-break-all--tablet", e);
671
+ }
672
+ get wordBreakAllLaptop() {
673
+ return this.hasAttribute("word-break-all--laptop");
674
+ }
675
+ set wordBreakAllLaptop(e) {
676
+ c(this, "word-break-all--laptop", e);
677
+ }
678
+ get wordBreakAllDesktop() {
679
+ return this.hasAttribute("word-break-all--desktop");
680
+ }
681
+ set wordBreakAllDesktop(e) {
682
+ c(this, "word-break-all--desktop", e);
683
+ }
684
+ }, k = class extends O {
685
+ static {
686
+ this.nativeAttributes = {};
387
687
  }
388
- }, d = class extends u {
389
688
  static {
390
- this.accessorExclusions = [];
689
+ this.nativeProperties = {};
690
+ }
691
+ static {
692
+ this.nativeMethods = [];
391
693
  }
392
694
  static get observedAttributes() {
393
- return [...super.observedAttributes, ...n(this.nativeName)];
695
+ return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
394
696
  }
395
697
  attributeChangedCallback(e, t, n) {
396
- super.attributeChangedCallback(e, t, n), n === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, n);
698
+ super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
397
699
  }
398
700
  get ctor() {
399
701
  return Object.getPrototypeOf(this).constructor;
400
702
  }
401
703
  constructor(...e) {
402
- super(...e), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = t(this.ctor.nativeName)), this.enhanceWithNativeProperties();
704
+ super(...e), this.enhanceWithNativeProperties();
705
+ }
706
+ getNativePropertyMetadata() {
707
+ let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
708
+ for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
709
+ let n = new Map(Object.entries(this.ctor.nativeProperties));
710
+ for (let t of e.keys()) n.set(t, "writable");
711
+ return {
712
+ reflectedProperties: e,
713
+ properties: n
714
+ };
715
+ }
716
+ setNativeProperty(e, t, n) {
717
+ let r = n.get(e);
718
+ if (r !== void 0) {
719
+ this.$el[e] = t;
720
+ let n = this.$el.getAttribute(r);
721
+ this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
722
+ } else this.$el[e] !== t && (this.$el[e] = t);
403
723
  }
404
724
  enhanceWithNativeProperties() {
405
- for (let e of this.ctor.supportedPropertyNames) if (!(e === "constructor" || (this.ctor?.accessorExclusions ?? []).includes(e))) try {
406
- Object.defineProperty(this, e, {
407
- get() {
408
- return this.$el[e];
409
- },
410
- set(t) {
411
- this.$el[e] !== t && (this.$el[e] = t);
412
- }
725
+ let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
726
+ for (let [n, r] of t) {
727
+ let t = n;
728
+ Object.defineProperty(this, t, {
729
+ get: () => this.$el[t],
730
+ set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
413
731
  });
414
- } catch (t) {
415
- console.warn(`Could not create property ${e} for`, this.$el, t);
416
732
  }
733
+ for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
734
+ let n = this.$el, r = Reflect.get(n, e);
735
+ if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
736
+ return Reflect.apply(r, n, t);
737
+ } });
417
738
  }
418
739
  get $el() {
419
740
  return this.shadowRoot.querySelector(this.ctor.nativeName);
420
741
  }
742
+ _forwardNativeAttribute(e, t) {
743
+ this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
744
+ }
421
745
  _updateAttribute(e, t) {
422
- V(this, e, t);
746
+ s(this, e, t);
423
747
  }
424
748
  _updateBooleanAttribute(e, t) {
425
- H(this, e, t);
749
+ c(this, e, t);
426
750
  }
427
- }, f = class extends d {
751
+ }, A = class extends k {
428
752
  connectedCallback() {
429
753
  this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
430
754
  }
431
- }, p = [
432
- "",
433
- "default",
434
- "none",
435
- "l"
436
- ], m = [
437
- "",
438
- "default",
439
- "auto",
440
- "flex-start",
441
- "start",
442
- "flex-end",
443
- "end",
444
- "center",
445
- "baseline",
446
- "stretch"
447
- ], h = [
448
- "",
449
- "default",
450
- "start",
451
- "end",
452
- "center",
453
- "stretch"
454
- ], g = [
455
- "",
456
- "default",
457
- "start",
458
- "end",
459
- "center",
460
- "stretch"
461
- ], _ = [
462
- "",
463
- "1",
464
- "2",
465
- "3",
466
- "4",
467
- "5",
468
- "6",
469
- "7",
470
- "8",
471
- "9",
472
- "10",
473
- "11",
474
- "12"
475
- ], v = [
476
- "",
477
- "-1",
478
- "0",
479
- "1",
480
- "2",
481
- "3",
482
- "4",
483
- "5",
484
- "6",
485
- "7",
486
- "8",
487
- "9",
488
- "10",
489
- "11",
490
- "12"
491
- ], y = [
492
- "",
493
- "default",
494
- "auto",
495
- "start",
496
- "end",
497
- "center",
498
- "stretch"
499
- ], ee = [
500
- "",
501
- "default",
502
- "inherit",
503
- "body-l",
504
- "body-m",
505
- "body-s",
506
- "body-xs",
507
- "heading-5xl",
508
- "heading-4xl",
509
- "heading-3xl",
510
- "heading-2xl",
511
- "heading-xl",
512
- "heading-l",
513
- "heading-m",
514
- "heading-s"
515
- ], b = [
516
- "",
517
- "default",
518
- "inherit",
519
- "brand",
520
- "neutral",
521
- "dimmed",
522
- "purpose-success",
523
- "purpose-warning",
524
- "purpose-error",
525
- "purpose-unlimited",
526
- "purpose-promo",
527
- "state-hover",
528
- "state-active",
529
- "state-disabled"
530
- ], x = [
531
- "",
532
- "default",
533
- "inherit",
534
- "body",
535
- "title",
536
- "title-large",
537
- "subtitle"
538
- ], S = [
539
- "Xs",
540
- "S",
541
- "M",
542
- "L",
543
- "Xl"
544
- ], te = [
545
- "",
546
- "default",
547
- ...S.map((e) => e.toLowerCase())
548
- ], ne = [
549
- "",
550
- "default",
551
- "left",
552
- "center",
553
- "right"
554
- ], re = [
555
- "",
556
- "none",
557
- "3xs",
558
- "2xs",
559
- "xs",
560
- "s",
561
- "m",
562
- "l",
563
- "xl"
564
- ], C = [
565
- "",
566
- "none",
567
- "s",
568
- "m",
569
- "l"
570
- ], w = [
571
- "",
572
- "none",
573
- "main",
574
- "pill"
575
- ], T = [
576
- "none",
577
- "main",
578
- "brand",
579
- "state-hover",
580
- "state-active",
581
- "neutral",
582
- "purpose-success",
583
- "purpose-warning",
584
- "purpose-error",
585
- "purpose-unlimited"
586
- ], E = [
587
- "",
588
- "all",
589
- "top",
590
- "right",
591
- "bottom",
592
- "left",
593
- "block",
594
- "inline"
595
- ], D = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), O = [
596
- "",
597
- "cover",
598
- "contain",
599
- "default"
600
- ], k = [
601
- "",
602
- "none",
603
- "s",
604
- "m",
605
- "l",
606
- "xl"
607
- ], A = [
608
- "",
609
- "default",
610
- "title-4xl",
611
- "title-3xl",
612
- "title-2xl",
613
- "title-xl",
614
- "title-l",
615
- "title-m",
616
- "title-s",
617
- "subtitle"
618
- ], j = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), M = [
619
- "none",
620
- "2xs",
621
- "xs",
622
- "s",
623
- "default",
624
- "l",
625
- "heading-to-subtitle",
626
- "heading-to-content",
627
- "page-layout-between-sections"
628
- ], N = [
629
- "",
630
- "all",
631
- "top",
632
- "right",
633
- "bottom",
634
- "left"
635
- ], P = [
636
- "",
637
- "default",
638
- "xs",
639
- "s",
640
- "m",
641
- "l",
642
- "xl"
643
- ];
644
- function F(e) {
755
+ };
756
+ //#endregion
757
+ //#region src/utilities.ts
758
+ function j(e, ...t) {
759
+ let n = { ...e };
760
+ for (let e of t) delete n[e];
761
+ return n;
762
+ }
763
+ function M(e) {
645
764
  let t = document.createElement("style");
646
765
  t.innerHTML = e, document.head.appendChild(t);
647
766
  }
648
- function I(e) {
767
+ function N(e) {
649
768
  return typeof e == "string" && (e === "false" || e === "0" || e === "null") || typeof e == "boolean" && !e;
650
769
  }
651
- function L() {
770
+ function P() {
652
771
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
653
772
  }
654
- function R(e, t) {
773
+ function F(e, t) {
655
774
  return t !== null && e.includes(t);
656
775
  }
657
- var z = /* @__PURE__ */ "aria-label.aria-labelledby.aria-describedby.aria-controls.aria-expanded.aria-haspopup.aria-pressed.aria-selected.aria-required.aria-disabled.aria-live.aria-atomic.aria-relevant.aria-orientation.aria-valuenow.aria-valuetext.aria-valuemin.aria-valuemax.aria-details.aria-modal.aria-autocomplete.aria-activedescendant.aria-colcount.aria-colindex.aria-colspan.aria-rowcount.aria-rowindex.aria-rowspan.aria-keyshortcuts.aria-placeholder.aria-invalid.aria-busy.aria-owns".split(".");
658
- function B(e, t, n = !1) {
659
- if (z.forEach((n) => {
776
+ //#endregion
777
+ //#region src/accessibility.ts
778
+ var I = /* @__PURE__ */ "aria-label.aria-labelledby.aria-describedby.aria-controls.aria-expanded.aria-haspopup.aria-pressed.aria-selected.aria-required.aria-disabled.aria-live.aria-atomic.aria-relevant.aria-orientation.aria-valuenow.aria-valuetext.aria-valuemin.aria-valuemax.aria-details.aria-modal.aria-autocomplete.aria-activedescendant.aria-colcount.aria-colindex.aria-colspan.aria-rowcount.aria-rowindex.aria-rowspan.aria-keyshortcuts.aria-placeholder.aria-invalid.aria-busy.aria-owns".split(".");
779
+ function L(e, t, n = !1) {
780
+ if (I.forEach((n) => {
660
781
  e.getAttribute(n) && (t.setAttribute(n, e.getAttribute(n)), e.removeAttribute(n));
661
782
  }), n && !e.getAttribute("aria-labelledby")) {
662
783
  let n = `px-${t.localName?.toLowerCase() ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
663
784
  t.setAttribute("id", n), e.setAttribute("aria-labelledby", n);
664
785
  }
665
786
  }
666
- function V(e, t, n) {
667
- if (n == null || n === "") {
668
- e.removeAttribute(t);
669
- return;
670
- }
671
- e.setAttribute(t, n.toString());
672
- }
673
- function H(e, t, n) {
674
- if (!n) {
675
- e.removeAttribute(t);
676
- return;
677
- }
678
- e.setAttribute(t, "");
679
- }
787
+ //#endregion
788
+ //#region src/nativeAttributes.ts
789
+ var R = {
790
+ disabled: ["disabled"],
791
+ name: ["name"],
792
+ value: ["value"],
793
+ type: ["type"],
794
+ formaction: ["formAction"],
795
+ formenctype: ["formEnctype"],
796
+ formmethod: ["formMethod"],
797
+ formnovalidate: ["formNoValidate"],
798
+ formtarget: ["formTarget"],
799
+ form: [],
800
+ autofocus: ["autofocus"],
801
+ title: ["title"],
802
+ popovertarget: [],
803
+ popovertargetaction: ["popoverTargetAction"],
804
+ command: ["command"],
805
+ commandfor: []
806
+ }, z = {
807
+ href: [
808
+ "href",
809
+ "protocol",
810
+ "username",
811
+ "password",
812
+ "host",
813
+ "hostname",
814
+ "port",
815
+ "pathname",
816
+ "search",
817
+ "hash"
818
+ ],
819
+ target: ["target"],
820
+ rel: ["rel", "relList"],
821
+ download: ["download"],
822
+ hreflang: ["hreflang"],
823
+ type: ["type"],
824
+ ping: ["ping"],
825
+ referrerpolicy: ["referrerPolicy"],
826
+ title: ["title"],
827
+ charset: ["charset"],
828
+ coords: ["coords"],
829
+ name: ["name"],
830
+ rev: ["rev"]
831
+ }, B = {
832
+ accept: ["accept"],
833
+ alt: ["alt"],
834
+ autocomplete: ["autocomplete"],
835
+ autofocus: ["autofocus"],
836
+ capture: ["capture"],
837
+ checked: ["defaultChecked"],
838
+ dirname: ["dirName"],
839
+ disabled: ["disabled"],
840
+ form: [],
841
+ formaction: ["formAction"],
842
+ formenctype: ["formEnctype"],
843
+ formmethod: ["formMethod"],
844
+ formnovalidate: ["formNoValidate"],
845
+ formtarget: ["formTarget"],
846
+ height: ["height"],
847
+ inputmode: ["inputMode"],
848
+ enterkeyhint: ["enterKeyHint"],
849
+ list: [],
850
+ max: ["max"],
851
+ maxlength: ["maxLength"],
852
+ min: ["min"],
853
+ minlength: ["minLength"],
854
+ multiple: ["multiple"],
855
+ name: ["name"],
856
+ pattern: ["pattern"],
857
+ placeholder: ["placeholder"],
858
+ popovertarget: [],
859
+ popovertargetaction: ["popoverTargetAction"],
860
+ readonly: ["readOnly"],
861
+ required: ["required"],
862
+ size: ["size"],
863
+ src: ["src"],
864
+ step: ["step"],
865
+ title: ["title"],
866
+ type: ["type"],
867
+ usemap: ["useMap"],
868
+ value: ["defaultValue", "value"],
869
+ webkitdirectory: ["webkitdirectory"],
870
+ width: ["width"]
871
+ }, V = {
872
+ validity: "readonly",
873
+ validationMessage: "readonly",
874
+ willValidate: "readonly"
875
+ }, H = [
876
+ "checkValidity",
877
+ "reportValidity",
878
+ "setCustomValidity"
879
+ ], U = {
880
+ ...V,
881
+ form: "readonly",
882
+ labels: "readonly",
883
+ popoverTargetElement: "writable",
884
+ commandForElement: "writable"
885
+ }, W = [...H], ce = {
886
+ text: "writable",
887
+ shape: "writable",
888
+ origin: "readonly"
889
+ }, G = ["toString"], le = {
890
+ ...V,
891
+ checked: "writable",
892
+ indeterminate: "writable",
893
+ files: "writable",
894
+ selectionStart: "writable",
895
+ selectionEnd: "writable",
896
+ selectionDirection: "writable",
897
+ valueAsDate: "writable",
898
+ valueAsNumber: "writable",
899
+ form: "readonly",
900
+ list: "readonly",
901
+ labels: "readonly",
902
+ webkitEntries: "readonly",
903
+ popoverTargetElement: "writable"
904
+ }, ue = [
905
+ ...H,
906
+ "select",
907
+ "setRangeText",
908
+ "setSelectionRange",
909
+ "showPicker",
910
+ "stepDown",
911
+ "stepUp"
912
+ ], de = {
913
+ ...V,
914
+ value: "writable",
915
+ defaultValue: "writable",
916
+ selectionStart: "writable",
917
+ selectionEnd: "writable",
918
+ selectionDirection: "writable",
919
+ textLength: "readonly",
920
+ type: "readonly",
921
+ form: "readonly",
922
+ labels: "readonly"
923
+ }, fe = [
924
+ ...H,
925
+ "select",
926
+ "setRangeText",
927
+ "setSelectionRange"
928
+ ], pe = {
929
+ ...V,
930
+ value: "writable",
931
+ selectedIndex: "writable",
932
+ length: "writable",
933
+ options: "readonly",
934
+ selectedOptions: "readonly",
935
+ type: "readonly",
936
+ form: "readonly",
937
+ labels: "readonly"
938
+ }, me = [
939
+ ...H,
940
+ "add",
941
+ "item",
942
+ "namedItem",
943
+ "showPicker"
944
+ ], he = {
945
+ currentSrc: "readonly",
946
+ naturalWidth: "readonly",
947
+ naturalHeight: "readonly",
948
+ complete: "readonly",
949
+ x: "readonly",
950
+ y: "readonly"
951
+ }, ge = ["decode"], _e = {
952
+ ...V,
953
+ form: "readonly",
954
+ elements: "readonly",
955
+ type: "readonly"
956
+ }, ve = [...H];
680
957
  //#endregion
681
958
  //#region src/breakpoints.ts
682
- function U(e, t, n, r = "", i, a = e) {
959
+ function ye(e, t, n, r = "", i, a = e) {
683
960
  let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
684
961
  ${t(a, o)} {
685
962
  ${e}: var(--${r}-${o}-desktop);
@@ -722,7 +999,7 @@ function U(e, t, n, r = "", i, a = e) {
722
999
  }`, "");
723
1000
  return o.replaceSync(s), o;
724
1001
  }
725
- var W = class {
1002
+ var be = class {
726
1003
  constructor(e, t, n, r) {
727
1004
  this.component = e, this.attributeName = t, this.cssVariable = r, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = n, Object.defineProperty(this.component, this.toCamelCase(this.attributeName), {
728
1005
  get: () => this.component.getAttribute(this.attributeName),
@@ -768,31 +1045,31 @@ var W = class {
768
1045
  set attributeValue(e) {
769
1046
  this._attributeValue = e, this.setCSSProperties();
770
1047
  }
771
- }, G = ".mgnlEditor", K = { "PX-HEADER": "editor" };
772
- function q(e) {
1048
+ }, K = ".mgnlEditor", q = { "PX-HEADER": "editor" };
1049
+ function xe(e) {
773
1050
  return !!e.shadowRoot?.querySelector("slot:not([name])");
774
1051
  }
775
- function J(e, t) {
1052
+ function Se(e, t) {
776
1053
  return t[e.tagName] ?? null;
777
1054
  }
778
- function Y(e, { selector: t = G, slotByHost: n = K } = {}) {
1055
+ function J(e, { selector: t = K, slotByHost: n = q } = {}) {
779
1056
  if (!e.matches(t) || e.hasAttribute("slot")) return null;
780
1057
  let r = e.parentElement;
781
- if (!r?.shadowRoot || q(r)) return null;
782
- let i = J(r, n);
1058
+ if (!r?.shadowRoot || xe(r)) return null;
1059
+ let i = Se(r, n);
783
1060
  return i ? (e.setAttribute("slot", i), i) : null;
784
1061
  }
785
- function X({ selector: e = G, slotByHost: t = K, root: n = document.documentElement } = {}) {
1062
+ function Y({ selector: e = K, slotByHost: t = q, root: n = document.documentElement } = {}) {
786
1063
  let r = 0;
787
1064
  return n.querySelectorAll(e).forEach((n) => {
788
- Y(n, {
1065
+ J(n, {
789
1066
  selector: e,
790
1067
  slotByHost: t
791
1068
  }) && (r += 1);
792
1069
  }), r;
793
1070
  }
794
- function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentElement } = {}) {
795
- X({
1071
+ function Ce({ selector: e = K, slotByHost: t = q, root: n = document.documentElement } = {}) {
1072
+ Y({
796
1073
  selector: e,
797
1074
  slotByHost: t,
798
1075
  root: n
@@ -800,11 +1077,11 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
800
1077
  let r = new MutationObserver((n) => {
801
1078
  n.forEach((n) => {
802
1079
  n.addedNodes.forEach((n) => {
803
- n instanceof Element && (Y(n, {
1080
+ n instanceof Element && (J(n, {
804
1081
  selector: e,
805
1082
  slotByHost: t
806
1083
  }), n.querySelectorAll(e).forEach((n) => {
807
- Y(n, {
1084
+ J(n, {
808
1085
  selector: e,
809
1086
  slotByHost: t
810
1087
  });
@@ -819,21 +1096,21 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
819
1096
  }
820
1097
  //#endregion
821
1098
  //#region src/template.ts
822
- var Z = /* @__PURE__ */ new Map(), ae = 500;
823
- function Q(e) {
1099
+ var X = /* @__PURE__ */ new Map(), we = 500;
1100
+ function Z(e) {
824
1101
  let t = document.createElement("template");
825
1102
  return t.innerHTML = e, t;
826
1103
  }
827
- function oe(e) {
828
- return Q(e);
1104
+ function Q(e) {
1105
+ return Z(e);
829
1106
  }
830
1107
  function $(e) {
831
- let t = Z.get(e);
832
- return t || (t = Q(e), Z.size < ae && Z.set(e, t)), t;
1108
+ let t = X.get(e);
1109
+ return t || (t = Z(e), X.size < we && X.set(e, t)), t;
833
1110
  }
834
- function se(e, t) {
1111
+ function Te(e, t) {
835
1112
  let n = typeof t == "string" ? $(t) : t;
836
1113
  e.replaceChildren(document.importNode(n.content, !0));
837
1114
  }
838
1115
  //#endregion
839
- export { W as AttributeBreakpointHandlerDelegate, d as PxElement, f as VerticallyExtendedElement, u as WithExtraAttributes, c as WrappedInteractiveStateController, z as accessibilityAttributes, F as addGlobalStylesheet, P as assetContainerImgWidthValues, Y as assignCmsEditorSlot, X as assignCmsEditorSlots, D as backgroundColorValues, O as backgroundSizeValues, H as booleanPropertyToAttributeSetter, T as borderColorValues, w as borderRadiusValues, E as borderSideValues, C as borderValues, k as boxShadowValues, R as checkName, b as colorValues, oe as createTemplate, h as cssGridAlignSelfValues, _ as cssGridColSpanValues, g as cssGridJustifySelfValues, v as cssGridOrderValues, y as cssGridPlaceSelfValues, U as cssTokenBreakpoints, m as flexboxAlignSelfValues, ee as fontsizeValues, x as fontweightValues, M as gapValues, n as getSupportedAttributeNames, t as getSupportedPropertyNames, $ as getTemplate, L as getViewportFormat, j as gradientValues, p as gridGapValues, A as headingValues, S as iconSizeValues, te as iconSizeValuesKC, o as isComponentDebug, I as isFalsy, s as log, N as noBorderRadiusValues, ie as observeCmsEditorSlots, re as paddingValues, V as propertyToAttributeSetter, se as renderTemplate, ne as textalignValues, B as transferAccessibilityAttributes };
1116
+ export { be as AttributeBreakpointHandlerDelegate, k as PxElement, A as VerticallyExtendedElement, O as WithExtraAttributes, i as WrappedInteractiveStateController, I as accessibilityAttributes, M as addGlobalStylesheet, E as assetContainerImgWidthValues, J as assignCmsEditorSlot, Y as assignCmsEditorSlots, oe as backgroundColorValues, se as backgroundSizeValues, c as booleanPropertyToAttributeSetter, ie as borderColorValues, re as borderRadiusValues, ae as borderSideValues, ne as borderValues, x as boxShadowValues, F as checkName, _ as colorValues, Q as createTemplate, d as cssGridAlignSelfValues, p as cssGridColSpanValues, f as cssGridJustifySelfValues, m as cssGridOrderValues, h as cssGridPlaceSelfValues, ye as cssTokenBreakpoints, u as flexboxAlignSelfValues, g as fontsizeValues, v as fontweightValues, w as gapValues, $ as getTemplate, P as getViewportFormat, C as gradientValues, l as gridGapValues, S as headingValues, y as iconSizeValues, b as iconSizeValuesKC, n as isComponentDebug, N as isFalsy, r as log, z as nativeAnchorAttributes, G as nativeAnchorMethods, ce as nativeAnchorProperties, R as nativeButtonAttributes, W as nativeButtonMethods, U as nativeButtonProperties, ve as nativeFieldsetMethods, _e as nativeFieldsetProperties, ge as nativeImageMethods, he as nativeImageProperties, B as nativeInputAttributes, ue as nativeInputMethods, le as nativeInputProperties, me as nativeSelectMethods, pe as nativeSelectProperties, fe as nativeTextAreaMethods, de as nativeTextAreaProperties, T as noBorderRadiusValues, Ce as observeCmsEditorSlots, j as omitKeys, te as paddingValues, s as propertyToAttributeSetter, Te as renderTemplate, ee as textalignValues, L as transferAccessibilityAttributes };