@proximus/heading-group 2.0.0-alpha.228 → 2.0.0-alpha.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +193 -155
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,106 @@
|
|
|
1
1
|
//#region src/headinggroup.css?inline
|
|
2
|
-
var e = "div{--px-heading-margin-title:0 0 15px 0}", t =
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region ../common/src/common.ts
|
|
5
|
-
function n(e) {
|
|
6
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
7
|
-
return Object.getOwnPropertyNames(n);
|
|
8
|
-
}
|
|
9
|
-
function r(e) {
|
|
10
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
11
|
-
return Object.getOwnPropertyNames(n).map((e) => e.toLowerCase());
|
|
12
|
-
}
|
|
13
|
-
var i = new CSSStyleSheet();
|
|
14
|
-
i.replaceSync(t);
|
|
15
|
-
var a = {
|
|
2
|
+
var e = "div{--px-heading-margin-title:0 0 15px 0}", t = {
|
|
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
|
-
},
|
|
23
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
24
|
-
function
|
|
25
|
-
return
|
|
9
|
+
}, n = t?.VITE_COMPONENT_DEBUG === "true" || t?.DEV === !0;
|
|
10
|
+
typeof window < "u" && (window.isComponentDebug = r);
|
|
11
|
+
function r() {
|
|
12
|
+
return n;
|
|
26
13
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
14
|
+
function i(e) {
|
|
15
|
+
r() && console.error(e);
|
|
16
|
+
}
|
|
17
|
+
typeof window < "u" && (window.isComponentDebug = r);
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../common/src/common.css?inline
|
|
20
|
+
var a = "@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}}";
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../common/src/attributeSetters.ts
|
|
23
|
+
function o(e, t, n) {
|
|
24
|
+
n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
|
|
25
|
+
}
|
|
26
|
+
function s(e, t, n) {
|
|
27
|
+
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../common/src/values.ts
|
|
31
|
+
var c = [
|
|
32
|
+
"",
|
|
33
|
+
"default",
|
|
34
|
+
"auto",
|
|
35
|
+
"flex-start",
|
|
36
|
+
"start",
|
|
37
|
+
"flex-end",
|
|
38
|
+
"end",
|
|
39
|
+
"center",
|
|
40
|
+
"baseline",
|
|
41
|
+
"stretch"
|
|
42
|
+
], l = [
|
|
43
|
+
"",
|
|
44
|
+
"default",
|
|
45
|
+
"start",
|
|
46
|
+
"end",
|
|
47
|
+
"center",
|
|
48
|
+
"stretch"
|
|
49
|
+
], u = [
|
|
50
|
+
"",
|
|
51
|
+
"default",
|
|
52
|
+
"start",
|
|
53
|
+
"end",
|
|
54
|
+
"center",
|
|
55
|
+
"stretch"
|
|
56
|
+
], d = [
|
|
57
|
+
"",
|
|
58
|
+
"1",
|
|
59
|
+
"2",
|
|
60
|
+
"3",
|
|
61
|
+
"4",
|
|
62
|
+
"5",
|
|
63
|
+
"6",
|
|
64
|
+
"7",
|
|
65
|
+
"8",
|
|
66
|
+
"9",
|
|
67
|
+
"10",
|
|
68
|
+
"11",
|
|
69
|
+
"12"
|
|
70
|
+
], f = [
|
|
71
|
+
"",
|
|
72
|
+
"-1",
|
|
73
|
+
"0",
|
|
74
|
+
"1",
|
|
75
|
+
"2",
|
|
76
|
+
"3",
|
|
77
|
+
"4",
|
|
78
|
+
"5",
|
|
79
|
+
"6",
|
|
80
|
+
"7",
|
|
81
|
+
"8",
|
|
82
|
+
"9",
|
|
83
|
+
"10",
|
|
84
|
+
"11",
|
|
85
|
+
"12"
|
|
86
|
+
];
|
|
87
|
+
[...[
|
|
88
|
+
"Xs",
|
|
89
|
+
"S",
|
|
90
|
+
"M",
|
|
91
|
+
"L",
|
|
92
|
+
"Xl"
|
|
93
|
+
].map((e) => e.toLowerCase())];
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region ../common/src/WithExtraAttributes.ts
|
|
96
|
+
var p = new CSSStyleSheet();
|
|
97
|
+
p.replaceSync(a);
|
|
98
|
+
var m = class e extends HTMLElement {
|
|
32
99
|
static get observedAttributes() {
|
|
33
100
|
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(".");
|
|
34
101
|
}
|
|
35
102
|
constructor(...e) {
|
|
36
|
-
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
103
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [p, ...e];
|
|
37
104
|
}
|
|
38
105
|
attributeChangedCallback(t, n, r) {
|
|
39
106
|
if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
|
|
@@ -59,36 +126,36 @@ var l = class e extends HTMLElement {
|
|
|
59
126
|
case "align-self--tablet":
|
|
60
127
|
case "align-self--laptop":
|
|
61
128
|
case "align-self--desktop":
|
|
62
|
-
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ?
|
|
129
|
+
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? l : c);
|
|
63
130
|
break;
|
|
64
131
|
case "justify-self":
|
|
65
132
|
case "justify-self--mobile":
|
|
66
133
|
case "justify-self--tablet":
|
|
67
134
|
case "justify-self--laptop":
|
|
68
135
|
case "justify-self--desktop":
|
|
69
|
-
this.updateProperties(t, n, r,
|
|
136
|
+
this.updateProperties(t, n, r, u);
|
|
70
137
|
break;
|
|
71
138
|
case "col-span":
|
|
72
139
|
case "col-span--mobile":
|
|
73
140
|
case "col-span--tablet":
|
|
74
141
|
case "col-span--laptop":
|
|
75
142
|
case "col-span--desktop":
|
|
76
|
-
this.updateProperties(t, n, r,
|
|
143
|
+
this.updateProperties(t, n, r, d);
|
|
77
144
|
break;
|
|
78
145
|
case "order":
|
|
79
146
|
case "order--mobile":
|
|
80
147
|
case "order--tablet":
|
|
81
148
|
case "order--laptop":
|
|
82
|
-
case "order--desktop": this.updateProperties(t, n, r,
|
|
149
|
+
case "order--desktop": this.updateProperties(t, n, r, f);
|
|
83
150
|
}
|
|
84
151
|
}
|
|
85
152
|
updateProperties(e, t, n, r) {
|
|
86
|
-
r && (this.checkName(r, n) ||
|
|
87
|
-
let
|
|
88
|
-
if (!
|
|
153
|
+
r && (this.checkName(r, n) || i(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`));
|
|
154
|
+
let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
|
|
155
|
+
if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
|
|
89
156
|
else {
|
|
90
157
|
let r = e.split("--")[1];
|
|
91
|
-
this.style.setProperty(`--${
|
|
158
|
+
this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
|
|
92
159
|
}
|
|
93
160
|
}
|
|
94
161
|
updateStyle(e, t, n) {
|
|
@@ -116,346 +183,317 @@ var l = class e extends HTMLElement {
|
|
|
116
183
|
return this.getAttribute("grow");
|
|
117
184
|
}
|
|
118
185
|
set grow(e) {
|
|
119
|
-
|
|
186
|
+
o(this, "grow", e);
|
|
120
187
|
}
|
|
121
188
|
get growMobile() {
|
|
122
189
|
return this.getAttribute("grow--mobile");
|
|
123
190
|
}
|
|
124
191
|
set growMobile(e) {
|
|
125
|
-
|
|
192
|
+
o(this, "grow--mobile", e);
|
|
126
193
|
}
|
|
127
194
|
get growTablet() {
|
|
128
195
|
return this.getAttribute("grow--tablet");
|
|
129
196
|
}
|
|
130
197
|
set growTablet(e) {
|
|
131
|
-
|
|
198
|
+
o(this, "grow--tablet", e);
|
|
132
199
|
}
|
|
133
200
|
get growLaptop() {
|
|
134
201
|
return this.getAttribute("grow--laptop");
|
|
135
202
|
}
|
|
136
203
|
set growLaptop(e) {
|
|
137
|
-
|
|
204
|
+
o(this, "grow--laptop", e);
|
|
138
205
|
}
|
|
139
206
|
get growDesktop() {
|
|
140
207
|
return this.getAttribute("grow--desktop");
|
|
141
208
|
}
|
|
142
209
|
set growDesktop(e) {
|
|
143
|
-
|
|
210
|
+
o(this, "grow--desktop", e);
|
|
144
211
|
}
|
|
145
212
|
get shrink() {
|
|
146
213
|
return this.getAttribute("shrink");
|
|
147
214
|
}
|
|
148
215
|
set shrink(e) {
|
|
149
|
-
|
|
216
|
+
o(this, "shrink", e);
|
|
150
217
|
}
|
|
151
218
|
get shrinkMobile() {
|
|
152
219
|
return this.getAttribute("shrink--mobile");
|
|
153
220
|
}
|
|
154
221
|
set shrinkMobile(e) {
|
|
155
|
-
|
|
222
|
+
o(this, "shrink--mobile", e);
|
|
156
223
|
}
|
|
157
224
|
get shrinkTablet() {
|
|
158
225
|
return this.getAttribute("shrink--tablet");
|
|
159
226
|
}
|
|
160
227
|
set shrinkTablet(e) {
|
|
161
|
-
|
|
228
|
+
o(this, "shrink--tablet", e);
|
|
162
229
|
}
|
|
163
230
|
get shrinkLaptop() {
|
|
164
231
|
return this.getAttribute("shrink--laptop");
|
|
165
232
|
}
|
|
166
233
|
set shrinkLaptop(e) {
|
|
167
|
-
|
|
234
|
+
o(this, "shrink--laptop", e);
|
|
168
235
|
}
|
|
169
236
|
get shrinkDesktop() {
|
|
170
237
|
return this.getAttribute("shrink--desktop");
|
|
171
238
|
}
|
|
172
239
|
set shrinkDesktop(e) {
|
|
173
|
-
|
|
240
|
+
o(this, "shrink--desktop", e);
|
|
174
241
|
}
|
|
175
242
|
get basis() {
|
|
176
243
|
return this.getAttribute("basis");
|
|
177
244
|
}
|
|
178
245
|
set basis(e) {
|
|
179
|
-
|
|
246
|
+
o(this, "basis", e);
|
|
180
247
|
}
|
|
181
248
|
get basisMobile() {
|
|
182
249
|
return this.getAttribute("basis--mobile");
|
|
183
250
|
}
|
|
184
251
|
set basisMobile(e) {
|
|
185
|
-
|
|
252
|
+
o(this, "basis--mobile", e);
|
|
186
253
|
}
|
|
187
254
|
get basisTablet() {
|
|
188
255
|
return this.getAttribute("basis--tablet");
|
|
189
256
|
}
|
|
190
257
|
set basisTablet(e) {
|
|
191
|
-
|
|
258
|
+
o(this, "basis--tablet", e);
|
|
192
259
|
}
|
|
193
260
|
get basisLaptop() {
|
|
194
261
|
return this.getAttribute("basis--laptop");
|
|
195
262
|
}
|
|
196
263
|
set basisLaptop(e) {
|
|
197
|
-
|
|
264
|
+
o(this, "basis--laptop", e);
|
|
198
265
|
}
|
|
199
266
|
get basisDesktop() {
|
|
200
267
|
return this.getAttribute("basis--desktop");
|
|
201
268
|
}
|
|
202
269
|
set basisDesktop(e) {
|
|
203
|
-
|
|
270
|
+
o(this, "basis--desktop", e);
|
|
204
271
|
}
|
|
205
272
|
get alignSelf() {
|
|
206
273
|
return this.getAttribute("align-self");
|
|
207
274
|
}
|
|
208
275
|
set alignSelf(e) {
|
|
209
|
-
|
|
276
|
+
o(this, "align-self", e);
|
|
210
277
|
}
|
|
211
278
|
get alignSelfMobile() {
|
|
212
279
|
return this.getAttribute("align-self--mobile");
|
|
213
280
|
}
|
|
214
281
|
set alignSelfMobile(e) {
|
|
215
|
-
|
|
282
|
+
o(this, "align-self--mobile", e);
|
|
216
283
|
}
|
|
217
284
|
get alignSelfTablet() {
|
|
218
285
|
return this.getAttribute("align-self--tablet");
|
|
219
286
|
}
|
|
220
287
|
set alignSelfTablet(e) {
|
|
221
|
-
|
|
288
|
+
o(this, "align-self--tablet", e);
|
|
222
289
|
}
|
|
223
290
|
get alignSelfLaptop() {
|
|
224
291
|
return this.getAttribute("align-self--laptop");
|
|
225
292
|
}
|
|
226
293
|
set alignSelfLaptop(e) {
|
|
227
|
-
|
|
294
|
+
o(this, "align-self--laptop", e);
|
|
228
295
|
}
|
|
229
296
|
get alignSelfDesktop() {
|
|
230
297
|
return this.getAttribute("align-self--desktop");
|
|
231
298
|
}
|
|
232
299
|
set alignSelfDesktop(e) {
|
|
233
|
-
|
|
300
|
+
o(this, "align-self--desktop", e);
|
|
234
301
|
}
|
|
235
302
|
get justifySelf() {
|
|
236
303
|
return this.getAttribute("justify-self");
|
|
237
304
|
}
|
|
238
305
|
set justifySelf(e) {
|
|
239
|
-
|
|
306
|
+
o(this, "justify-self", e);
|
|
240
307
|
}
|
|
241
308
|
get justifySelfMobile() {
|
|
242
309
|
return this.getAttribute("justify-self--mobile");
|
|
243
310
|
}
|
|
244
311
|
set justifySelfMobile(e) {
|
|
245
|
-
|
|
312
|
+
o(this, "justify-self--mobile", e);
|
|
246
313
|
}
|
|
247
314
|
get justifySelfTablet() {
|
|
248
315
|
return this.getAttribute("justify-self--tablet");
|
|
249
316
|
}
|
|
250
317
|
set justifySelfTablet(e) {
|
|
251
|
-
|
|
318
|
+
o(this, "justify-self--tablet", e);
|
|
252
319
|
}
|
|
253
320
|
get justifySelfLaptop() {
|
|
254
321
|
return this.getAttribute("justify-self--laptop");
|
|
255
322
|
}
|
|
256
323
|
set justifySelfLaptop(e) {
|
|
257
|
-
|
|
324
|
+
o(this, "justify-self--laptop", e);
|
|
258
325
|
}
|
|
259
326
|
get justifySelfDesktop() {
|
|
260
327
|
return this.getAttribute("justify-self--desktop");
|
|
261
328
|
}
|
|
262
329
|
set justifySelfDesktop(e) {
|
|
263
|
-
|
|
330
|
+
o(this, "justify-self--desktop", e);
|
|
264
331
|
}
|
|
265
332
|
get hiddenMobile() {
|
|
266
333
|
return this.hasAttribute("hidden--mobile");
|
|
267
334
|
}
|
|
268
335
|
set hiddenMobile(e) {
|
|
269
|
-
|
|
336
|
+
s(this, "hidden--mobile", e);
|
|
270
337
|
}
|
|
271
338
|
get hiddenTablet() {
|
|
272
339
|
return this.hasAttribute("hidden--tablet");
|
|
273
340
|
}
|
|
274
341
|
set hiddenTablet(e) {
|
|
275
|
-
|
|
342
|
+
s(this, "hidden--tablet", e);
|
|
276
343
|
}
|
|
277
344
|
get hiddenLaptop() {
|
|
278
345
|
return this.hasAttribute("hidden--laptop");
|
|
279
346
|
}
|
|
280
347
|
set hiddenLaptop(e) {
|
|
281
|
-
|
|
348
|
+
s(this, "hidden--laptop", e);
|
|
282
349
|
}
|
|
283
350
|
get hiddenDesktop() {
|
|
284
351
|
return this.hasAttribute("hidden--desktop");
|
|
285
352
|
}
|
|
286
353
|
set hiddenDesktop(e) {
|
|
287
|
-
|
|
354
|
+
s(this, "hidden--desktop", e);
|
|
288
355
|
}
|
|
289
356
|
get colSpan() {
|
|
290
357
|
return this.getAttribute("col-span");
|
|
291
358
|
}
|
|
292
359
|
set colSpan(e) {
|
|
293
|
-
|
|
360
|
+
o(this, "col-span", e);
|
|
294
361
|
}
|
|
295
362
|
get colSpanMobile() {
|
|
296
363
|
return this.getAttribute("col-span--mobile");
|
|
297
364
|
}
|
|
298
365
|
set colSpanMobile(e) {
|
|
299
|
-
|
|
366
|
+
o(this, "col-span--mobile", e);
|
|
300
367
|
}
|
|
301
368
|
get colSpanTablet() {
|
|
302
369
|
return this.getAttribute("col-span--tablet");
|
|
303
370
|
}
|
|
304
371
|
set colSpanTablet(e) {
|
|
305
|
-
|
|
372
|
+
o(this, "col-span--tablet", e);
|
|
306
373
|
}
|
|
307
374
|
get colSpanLaptop() {
|
|
308
375
|
return this.getAttribute("col-span--laptop");
|
|
309
376
|
}
|
|
310
377
|
set colSpanLaptop(e) {
|
|
311
|
-
|
|
378
|
+
o(this, "col-span--laptop", e);
|
|
312
379
|
}
|
|
313
380
|
get colSpanDesktop() {
|
|
314
381
|
return this.getAttribute("col-span--desktop");
|
|
315
382
|
}
|
|
316
383
|
set colSpanDesktop(e) {
|
|
317
|
-
|
|
384
|
+
o(this, "col-span--desktop", e);
|
|
318
385
|
}
|
|
319
386
|
get order() {
|
|
320
387
|
return this.getAttribute("order");
|
|
321
388
|
}
|
|
322
389
|
set order(e) {
|
|
323
|
-
|
|
390
|
+
o(this, "order", e);
|
|
324
391
|
}
|
|
325
392
|
get orderMobile() {
|
|
326
393
|
return this.getAttribute("order--mobile");
|
|
327
394
|
}
|
|
328
395
|
set orderMobile(e) {
|
|
329
|
-
|
|
396
|
+
o(this, "order--mobile", e);
|
|
330
397
|
}
|
|
331
398
|
get orderTablet() {
|
|
332
399
|
return this.getAttribute("order--tablet");
|
|
333
400
|
}
|
|
334
401
|
set orderTablet(e) {
|
|
335
|
-
|
|
402
|
+
o(this, "order--tablet", e);
|
|
336
403
|
}
|
|
337
404
|
get orderLaptop() {
|
|
338
405
|
return this.getAttribute("order--laptop");
|
|
339
406
|
}
|
|
340
407
|
set orderLaptop(e) {
|
|
341
|
-
|
|
408
|
+
o(this, "order--laptop", e);
|
|
342
409
|
}
|
|
343
410
|
get orderDesktop() {
|
|
344
411
|
return this.getAttribute("order--desktop");
|
|
345
412
|
}
|
|
346
413
|
set orderDesktop(e) {
|
|
347
|
-
|
|
414
|
+
o(this, "order--desktop", e);
|
|
348
415
|
}
|
|
349
416
|
};
|
|
350
|
-
(class extends
|
|
417
|
+
(class extends m {
|
|
418
|
+
static {
|
|
419
|
+
this.nativeAttributes = {};
|
|
420
|
+
}
|
|
421
|
+
static {
|
|
422
|
+
this.nativeProperties = {};
|
|
423
|
+
}
|
|
351
424
|
static {
|
|
352
|
-
this.
|
|
425
|
+
this.nativeMethods = [];
|
|
353
426
|
}
|
|
354
427
|
static get observedAttributes() {
|
|
355
|
-
return [...super.observedAttributes, ...
|
|
428
|
+
return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
|
|
356
429
|
}
|
|
357
430
|
attributeChangedCallback(e, t, n) {
|
|
358
|
-
super.attributeChangedCallback(e, t, n),
|
|
431
|
+
super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
|
|
359
432
|
}
|
|
360
433
|
get ctor() {
|
|
361
434
|
return Object.getPrototypeOf(this).constructor;
|
|
362
435
|
}
|
|
363
436
|
constructor(...e) {
|
|
364
|
-
super(...e), this.
|
|
437
|
+
super(...e), this.enhanceWithNativeProperties();
|
|
438
|
+
}
|
|
439
|
+
getNativePropertyMetadata() {
|
|
440
|
+
let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
|
|
441
|
+
for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
|
|
442
|
+
let n = new Map(Object.entries(this.ctor.nativeProperties));
|
|
443
|
+
for (let t of e.keys()) n.set(t, "writable");
|
|
444
|
+
return {
|
|
445
|
+
reflectedProperties: e,
|
|
446
|
+
properties: n
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
setNativeProperty(e, t, n) {
|
|
450
|
+
let r = n.get(e);
|
|
451
|
+
if (r !== void 0) {
|
|
452
|
+
this.$el[e] = t;
|
|
453
|
+
let n = this.$el.getAttribute(r);
|
|
454
|
+
this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
|
|
455
|
+
} else this.$el[e] !== t && (this.$el[e] = t);
|
|
365
456
|
}
|
|
366
457
|
enhanceWithNativeProperties() {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
set(t)
|
|
373
|
-
this.$el[e] !== t && (this.$el[e] = t);
|
|
374
|
-
}
|
|
458
|
+
let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
|
|
459
|
+
for (let [n, r] of t) {
|
|
460
|
+
let t = n;
|
|
461
|
+
Object.defineProperty(this, t, {
|
|
462
|
+
get: () => this.$el[t],
|
|
463
|
+
set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
|
|
375
464
|
});
|
|
376
|
-
} catch (t) {
|
|
377
|
-
console.warn(`Could not create property ${e} for`, this.$el, t);
|
|
378
465
|
}
|
|
466
|
+
for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
|
|
467
|
+
let n = this.$el, r = Reflect.get(n, e);
|
|
468
|
+
if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
|
|
469
|
+
return Reflect.apply(r, n, t);
|
|
470
|
+
} });
|
|
379
471
|
}
|
|
380
472
|
get $el() {
|
|
381
473
|
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
382
474
|
}
|
|
475
|
+
_forwardNativeAttribute(e, t) {
|
|
476
|
+
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
477
|
+
}
|
|
383
478
|
_updateAttribute(e, t) {
|
|
384
|
-
|
|
479
|
+
o(this, e, t);
|
|
385
480
|
}
|
|
386
481
|
_updateBooleanAttribute(e, t) {
|
|
387
|
-
|
|
482
|
+
s(this, e, t);
|
|
388
483
|
}
|
|
389
484
|
});
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
|
|
397
|
-
"
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"stretch"
|
|
401
|
-
], d = [
|
|
402
|
-
"",
|
|
403
|
-
"default",
|
|
404
|
-
"start",
|
|
405
|
-
"end",
|
|
406
|
-
"center",
|
|
407
|
-
"stretch"
|
|
408
|
-
], f = [
|
|
409
|
-
"",
|
|
410
|
-
"default",
|
|
411
|
-
"start",
|
|
412
|
-
"end",
|
|
413
|
-
"center",
|
|
414
|
-
"stretch"
|
|
415
|
-
], p = [
|
|
416
|
-
"",
|
|
417
|
-
"1",
|
|
418
|
-
"2",
|
|
419
|
-
"3",
|
|
420
|
-
"4",
|
|
421
|
-
"5",
|
|
422
|
-
"6",
|
|
423
|
-
"7",
|
|
424
|
-
"8",
|
|
425
|
-
"9",
|
|
426
|
-
"10",
|
|
427
|
-
"11",
|
|
428
|
-
"12"
|
|
429
|
-
], m = [
|
|
430
|
-
"",
|
|
431
|
-
"-1",
|
|
432
|
-
"0",
|
|
433
|
-
"1",
|
|
434
|
-
"2",
|
|
435
|
-
"3",
|
|
436
|
-
"4",
|
|
437
|
-
"5",
|
|
438
|
-
"6",
|
|
439
|
-
"7",
|
|
440
|
-
"8",
|
|
441
|
-
"9",
|
|
442
|
-
"10",
|
|
443
|
-
"11",
|
|
444
|
-
"12"
|
|
485
|
+
//#endregion
|
|
486
|
+
//#region ../common/src/nativeProperties.ts
|
|
487
|
+
var h = {
|
|
488
|
+
validity: "readonly",
|
|
489
|
+
validationMessage: "readonly",
|
|
490
|
+
willValidate: "readonly"
|
|
491
|
+
}, g = [
|
|
492
|
+
"checkValidity",
|
|
493
|
+
"reportValidity",
|
|
494
|
+
"setCustomValidity"
|
|
445
495
|
];
|
|
446
|
-
[...[
|
|
447
|
-
"Xs",
|
|
448
|
-
"S",
|
|
449
|
-
"M",
|
|
450
|
-
"L",
|
|
451
|
-
"Xl"
|
|
452
|
-
].map((e) => e.toLowerCase())];
|
|
453
|
-
function h(e, t, n) {
|
|
454
|
-
n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
|
|
455
|
-
}
|
|
456
|
-
function g(e, t, n) {
|
|
457
|
-
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
458
|
-
}
|
|
496
|
+
({ ...h }), [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g];
|
|
459
497
|
//#endregion
|
|
460
498
|
//#region ../common/src/template.ts
|
|
461
499
|
var _ = /* @__PURE__ */ new Map(), v = 500;
|