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