@proximus/lavender-common 1.4.20-alpha.4 → 1.4.20-alpha.6

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,512 @@ 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);
327
551
  }
328
552
  get colSpan() {
329
553
  return this.getAttribute("col-span");
330
554
  }
331
555
  set colSpan(e) {
332
- V(this, "col-span", e);
556
+ s(this, "col-span", e);
333
557
  }
334
558
  get colSpanMobile() {
335
559
  return this.getAttribute("col-span--mobile");
336
560
  }
337
561
  set colSpanMobile(e) {
338
- V(this, "col-span--mobile", e);
562
+ s(this, "col-span--mobile", e);
339
563
  }
340
564
  get colSpanTablet() {
341
565
  return this.getAttribute("col-span--tablet");
342
566
  }
343
567
  set colSpanTablet(e) {
344
- V(this, "col-span--tablet", e);
568
+ s(this, "col-span--tablet", e);
345
569
  }
346
570
  get colSpanLaptop() {
347
571
  return this.getAttribute("col-span--laptop");
348
572
  }
349
573
  set colSpanLaptop(e) {
350
- V(this, "col-span--laptop", e);
574
+ s(this, "col-span--laptop", e);
351
575
  }
352
576
  get colSpanDesktop() {
353
577
  return this.getAttribute("col-span--desktop");
354
578
  }
355
579
  set colSpanDesktop(e) {
356
- V(this, "col-span--desktop", e);
580
+ s(this, "col-span--desktop", e);
357
581
  }
358
582
  get order() {
359
583
  return this.getAttribute("order");
360
584
  }
361
585
  set order(e) {
362
- V(this, "order", e);
586
+ s(this, "order", e);
363
587
  }
364
588
  get orderMobile() {
365
589
  return this.getAttribute("order--mobile");
366
590
  }
367
591
  set orderMobile(e) {
368
- V(this, "order--mobile", e);
592
+ s(this, "order--mobile", e);
369
593
  }
370
594
  get orderTablet() {
371
595
  return this.getAttribute("order--tablet");
372
596
  }
373
597
  set orderTablet(e) {
374
- V(this, "order--tablet", e);
598
+ s(this, "order--tablet", e);
375
599
  }
376
600
  get orderLaptop() {
377
601
  return this.getAttribute("order--laptop");
378
602
  }
379
603
  set orderLaptop(e) {
380
- V(this, "order--laptop", e);
604
+ s(this, "order--laptop", e);
381
605
  }
382
606
  get orderDesktop() {
383
607
  return this.getAttribute("order--desktop");
384
608
  }
385
609
  set orderDesktop(e) {
386
- V(this, "order--desktop", e);
610
+ s(this, "order--desktop", e);
611
+ }
612
+ }, k = class extends O {
613
+ static {
614
+ this.nativeAttributes = {};
387
615
  }
388
- }, d = class extends u {
389
616
  static {
390
- this.accessorExclusions = [];
617
+ this.nativeProperties = {};
618
+ }
619
+ static {
620
+ this.nativeMethods = [];
391
621
  }
392
622
  static get observedAttributes() {
393
- return [...super.observedAttributes, ...n(this.nativeName)];
623
+ return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
394
624
  }
395
625
  attributeChangedCallback(e, t, n) {
396
- super.attributeChangedCallback(e, t, n), n === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, n);
626
+ super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
397
627
  }
398
628
  get ctor() {
399
629
  return Object.getPrototypeOf(this).constructor;
400
630
  }
401
631
  constructor(...e) {
402
- super(...e), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = t(this.ctor.nativeName)), this.enhanceWithNativeProperties();
632
+ super(...e), this.enhanceWithNativeProperties();
633
+ }
634
+ getNativePropertyMetadata() {
635
+ let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
636
+ for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
637
+ let n = new Map(Object.entries(this.ctor.nativeProperties));
638
+ for (let t of e.keys()) n.set(t, "writable");
639
+ return {
640
+ reflectedProperties: e,
641
+ properties: n
642
+ };
643
+ }
644
+ setNativeProperty(e, t, n) {
645
+ let r = n.get(e);
646
+ if (r !== void 0) {
647
+ this.$el[e] = t;
648
+ let n = this.$el.getAttribute(r);
649
+ this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
650
+ } else this.$el[e] !== t && (this.$el[e] = t);
403
651
  }
404
652
  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
- }
653
+ let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
654
+ for (let [n, r] of t) {
655
+ let t = n;
656
+ Object.defineProperty(this, t, {
657
+ get: () => this.$el[t],
658
+ set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
413
659
  });
414
- } catch (t) {
415
- console.warn(`Could not create property ${e} for`, this.$el, t);
416
660
  }
661
+ for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
662
+ let n = this.$el, r = Reflect.get(n, e);
663
+ if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
664
+ return Reflect.apply(r, n, t);
665
+ } });
417
666
  }
418
667
  get $el() {
419
668
  return this.shadowRoot.querySelector(this.ctor.nativeName);
420
669
  }
670
+ _forwardNativeAttribute(e, t) {
671
+ this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
672
+ }
421
673
  _updateAttribute(e, t) {
422
- V(this, e, t);
674
+ s(this, e, t);
423
675
  }
424
676
  _updateBooleanAttribute(e, t) {
425
- H(this, e, t);
677
+ c(this, e, t);
426
678
  }
427
- }, f = class extends d {
679
+ }, A = class extends k {
428
680
  connectedCallback() {
429
681
  this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
430
682
  }
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) {
683
+ };
684
+ //#endregion
685
+ //#region src/utilities.ts
686
+ function j(e, ...t) {
687
+ let n = { ...e };
688
+ for (let e of t) delete n[e];
689
+ return n;
690
+ }
691
+ function M(e) {
645
692
  let t = document.createElement("style");
646
693
  t.innerHTML = e, document.head.appendChild(t);
647
694
  }
648
- function I(e) {
695
+ function N(e) {
649
696
  return typeof e == "string" && (e === "false" || e === "0" || e === "null") || typeof e == "boolean" && !e;
650
697
  }
651
- function L() {
698
+ function P() {
652
699
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
653
700
  }
654
- function R(e, t) {
701
+ function F(e, t) {
655
702
  return t !== null && e.includes(t);
656
703
  }
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) => {
704
+ //#endregion
705
+ //#region src/accessibility.ts
706
+ 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(".");
707
+ function L(e, t, n = !1) {
708
+ if (I.forEach((n) => {
660
709
  e.getAttribute(n) && (t.setAttribute(n, e.getAttribute(n)), e.removeAttribute(n));
661
710
  }), n && !e.getAttribute("aria-labelledby")) {
662
711
  let n = `px-${t.localName?.toLowerCase() ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
663
712
  t.setAttribute("id", n), e.setAttribute("aria-labelledby", n);
664
713
  }
665
714
  }
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
- }
715
+ //#endregion
716
+ //#region src/nativeAttributes.ts
717
+ var R = {
718
+ disabled: ["disabled"],
719
+ name: ["name"],
720
+ value: ["value"],
721
+ type: ["type"],
722
+ formaction: ["formAction"],
723
+ formenctype: ["formEnctype"],
724
+ formmethod: ["formMethod"],
725
+ formnovalidate: ["formNoValidate"],
726
+ formtarget: ["formTarget"],
727
+ form: [],
728
+ autofocus: ["autofocus"],
729
+ title: ["title"],
730
+ popovertarget: [],
731
+ popovertargetaction: ["popoverTargetAction"],
732
+ command: ["command"],
733
+ commandfor: []
734
+ }, z = {
735
+ href: [
736
+ "href",
737
+ "protocol",
738
+ "username",
739
+ "password",
740
+ "host",
741
+ "hostname",
742
+ "port",
743
+ "pathname",
744
+ "search",
745
+ "hash"
746
+ ],
747
+ target: ["target"],
748
+ rel: ["rel", "relList"],
749
+ download: ["download"],
750
+ hreflang: ["hreflang"],
751
+ type: ["type"],
752
+ ping: ["ping"],
753
+ referrerpolicy: ["referrerPolicy"],
754
+ title: ["title"],
755
+ charset: ["charset"],
756
+ coords: ["coords"],
757
+ name: ["name"],
758
+ rev: ["rev"]
759
+ }, B = {
760
+ accept: ["accept"],
761
+ alt: ["alt"],
762
+ autocomplete: ["autocomplete"],
763
+ autofocus: ["autofocus"],
764
+ capture: ["capture"],
765
+ checked: ["defaultChecked"],
766
+ dirname: ["dirName"],
767
+ disabled: ["disabled"],
768
+ form: [],
769
+ formaction: ["formAction"],
770
+ formenctype: ["formEnctype"],
771
+ formmethod: ["formMethod"],
772
+ formnovalidate: ["formNoValidate"],
773
+ formtarget: ["formTarget"],
774
+ height: ["height"],
775
+ inputmode: ["inputMode"],
776
+ enterkeyhint: ["enterKeyHint"],
777
+ list: [],
778
+ max: ["max"],
779
+ maxlength: ["maxLength"],
780
+ min: ["min"],
781
+ minlength: ["minLength"],
782
+ multiple: ["multiple"],
783
+ name: ["name"],
784
+ pattern: ["pattern"],
785
+ placeholder: ["placeholder"],
786
+ popovertarget: [],
787
+ popovertargetaction: ["popoverTargetAction"],
788
+ readonly: ["readOnly"],
789
+ required: ["required"],
790
+ size: ["size"],
791
+ src: ["src"],
792
+ step: ["step"],
793
+ title: ["title"],
794
+ type: ["type"],
795
+ usemap: ["useMap"],
796
+ value: ["defaultValue", "value"],
797
+ webkitdirectory: ["webkitdirectory"],
798
+ width: ["width"]
799
+ }, V = {
800
+ validity: "readonly",
801
+ validationMessage: "readonly",
802
+ willValidate: "readonly"
803
+ }, H = [
804
+ "checkValidity",
805
+ "reportValidity",
806
+ "setCustomValidity"
807
+ ], U = {
808
+ ...V,
809
+ form: "readonly",
810
+ labels: "readonly",
811
+ popoverTargetElement: "writable",
812
+ commandForElement: "writable"
813
+ }, W = [...H], ce = {
814
+ text: "writable",
815
+ shape: "writable",
816
+ origin: "readonly"
817
+ }, G = ["toString"], le = {
818
+ ...V,
819
+ checked: "writable",
820
+ indeterminate: "writable",
821
+ files: "writable",
822
+ selectionStart: "writable",
823
+ selectionEnd: "writable",
824
+ selectionDirection: "writable",
825
+ valueAsDate: "writable",
826
+ valueAsNumber: "writable",
827
+ form: "readonly",
828
+ list: "readonly",
829
+ labels: "readonly",
830
+ webkitEntries: "readonly",
831
+ popoverTargetElement: "writable"
832
+ }, ue = [
833
+ ...H,
834
+ "select",
835
+ "setRangeText",
836
+ "setSelectionRange",
837
+ "showPicker",
838
+ "stepDown",
839
+ "stepUp"
840
+ ], de = {
841
+ ...V,
842
+ value: "writable",
843
+ defaultValue: "writable",
844
+ selectionStart: "writable",
845
+ selectionEnd: "writable",
846
+ selectionDirection: "writable",
847
+ textLength: "readonly",
848
+ type: "readonly",
849
+ form: "readonly",
850
+ labels: "readonly"
851
+ }, fe = [
852
+ ...H,
853
+ "select",
854
+ "setRangeText",
855
+ "setSelectionRange"
856
+ ], pe = {
857
+ ...V,
858
+ value: "writable",
859
+ selectedIndex: "writable",
860
+ length: "writable",
861
+ options: "readonly",
862
+ selectedOptions: "readonly",
863
+ type: "readonly",
864
+ form: "readonly",
865
+ labels: "readonly"
866
+ }, me = [
867
+ ...H,
868
+ "add",
869
+ "item",
870
+ "namedItem",
871
+ "showPicker"
872
+ ], he = {
873
+ currentSrc: "readonly",
874
+ naturalWidth: "readonly",
875
+ naturalHeight: "readonly",
876
+ complete: "readonly",
877
+ x: "readonly",
878
+ y: "readonly"
879
+ }, ge = ["decode"], _e = {
880
+ ...V,
881
+ form: "readonly",
882
+ elements: "readonly",
883
+ type: "readonly"
884
+ }, ve = [...H];
680
885
  //#endregion
681
886
  //#region src/breakpoints.ts
682
- function U(e, t, n, r = "", i, a = e) {
887
+ function ye(e, t, n, r = "", i, a = e) {
683
888
  let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
684
889
  ${t(a, o)} {
685
890
  ${e}: var(--${r}-${o}-desktop);
@@ -722,7 +927,7 @@ function U(e, t, n, r = "", i, a = e) {
722
927
  }`, "");
723
928
  return o.replaceSync(s), o;
724
929
  }
725
- var W = class {
930
+ var be = class {
726
931
  constructor(e, t, n, r) {
727
932
  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
933
  get: () => this.component.getAttribute(this.attributeName),
@@ -768,31 +973,31 @@ var W = class {
768
973
  set attributeValue(e) {
769
974
  this._attributeValue = e, this.setCSSProperties();
770
975
  }
771
- }, G = ".mgnlEditor", K = { "PX-HEADER": "editor" };
772
- function q(e) {
976
+ }, K = ".mgnlEditor", q = { "PX-HEADER": "editor" };
977
+ function xe(e) {
773
978
  return !!e.shadowRoot?.querySelector("slot:not([name])");
774
979
  }
775
- function J(e, t) {
980
+ function Se(e, t) {
776
981
  return t[e.tagName] ?? null;
777
982
  }
778
- function Y(e, { selector: t = G, slotByHost: n = K } = {}) {
983
+ function J(e, { selector: t = K, slotByHost: n = q } = {}) {
779
984
  if (!e.matches(t) || e.hasAttribute("slot")) return null;
780
985
  let r = e.parentElement;
781
- if (!r?.shadowRoot || q(r)) return null;
782
- let i = J(r, n);
986
+ if (!r?.shadowRoot || xe(r)) return null;
987
+ let i = Se(r, n);
783
988
  return i ? (e.setAttribute("slot", i), i) : null;
784
989
  }
785
- function X({ selector: e = G, slotByHost: t = K, root: n = document.documentElement } = {}) {
990
+ function Y({ selector: e = K, slotByHost: t = q, root: n = document.documentElement } = {}) {
786
991
  let r = 0;
787
992
  return n.querySelectorAll(e).forEach((n) => {
788
- Y(n, {
993
+ J(n, {
789
994
  selector: e,
790
995
  slotByHost: t
791
996
  }) && (r += 1);
792
997
  }), r;
793
998
  }
794
- function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentElement } = {}) {
795
- X({
999
+ function Ce({ selector: e = K, slotByHost: t = q, root: n = document.documentElement } = {}) {
1000
+ Y({
796
1001
  selector: e,
797
1002
  slotByHost: t,
798
1003
  root: n
@@ -800,11 +1005,11 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
800
1005
  let r = new MutationObserver((n) => {
801
1006
  n.forEach((n) => {
802
1007
  n.addedNodes.forEach((n) => {
803
- n instanceof Element && (Y(n, {
1008
+ n instanceof Element && (J(n, {
804
1009
  selector: e,
805
1010
  slotByHost: t
806
1011
  }), n.querySelectorAll(e).forEach((n) => {
807
- Y(n, {
1012
+ J(n, {
808
1013
  selector: e,
809
1014
  slotByHost: t
810
1015
  });
@@ -819,21 +1024,21 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
819
1024
  }
820
1025
  //#endregion
821
1026
  //#region src/template.ts
822
- var Z = /* @__PURE__ */ new Map(), ae = 500;
823
- function Q(e) {
1027
+ var X = /* @__PURE__ */ new Map(), we = 500;
1028
+ function Z(e) {
824
1029
  let t = document.createElement("template");
825
1030
  return t.innerHTML = e, t;
826
1031
  }
827
- function oe(e) {
828
- return Q(e);
1032
+ function Q(e) {
1033
+ return Z(e);
829
1034
  }
830
1035
  function $(e) {
831
- let t = Z.get(e);
832
- return t || (t = Q(e), Z.size < ae && Z.set(e, t)), t;
1036
+ let t = X.get(e);
1037
+ return t || (t = Z(e), X.size < we && X.set(e, t)), t;
833
1038
  }
834
- function se(e, t) {
1039
+ function Te(e, t) {
835
1040
  let n = typeof t == "string" ? $(t) : t;
836
1041
  e.replaceChildren(document.importNode(n.content, !0));
837
1042
  }
838
1043
  //#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 };
1044
+ 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 };