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