@proximus/lavender-timeline 1.4.20-alpha.4 → 1.4.20-alpha.5
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 +205 -167
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,114 @@
|
|
|
1
1
|
//#region src/timeline.css?inline
|
|
2
|
-
var e = ".timeline{margin:0;padding:0;list-style:none}", 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 = ".timeline{margin:0;padding:0;list-style:none}", 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;
|
|
13
|
+
}
|
|
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());
|
|
26
29
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
30
|
+
function s(e, t, n) {
|
|
31
|
+
if (!n) {
|
|
32
|
+
e.removeAttribute(t);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
e.setAttribute(t, "");
|
|
29
36
|
}
|
|
30
|
-
|
|
31
|
-
|
|
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,317 @@ 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);
|
|
291
366
|
}
|
|
292
367
|
get colSpan() {
|
|
293
368
|
return this.getAttribute("col-span");
|
|
294
369
|
}
|
|
295
370
|
set colSpan(e) {
|
|
296
|
-
|
|
371
|
+
o(this, "col-span", e);
|
|
297
372
|
}
|
|
298
373
|
get colSpanMobile() {
|
|
299
374
|
return this.getAttribute("col-span--mobile");
|
|
300
375
|
}
|
|
301
376
|
set colSpanMobile(e) {
|
|
302
|
-
|
|
377
|
+
o(this, "col-span--mobile", e);
|
|
303
378
|
}
|
|
304
379
|
get colSpanTablet() {
|
|
305
380
|
return this.getAttribute("col-span--tablet");
|
|
306
381
|
}
|
|
307
382
|
set colSpanTablet(e) {
|
|
308
|
-
|
|
383
|
+
o(this, "col-span--tablet", e);
|
|
309
384
|
}
|
|
310
385
|
get colSpanLaptop() {
|
|
311
386
|
return this.getAttribute("col-span--laptop");
|
|
312
387
|
}
|
|
313
388
|
set colSpanLaptop(e) {
|
|
314
|
-
|
|
389
|
+
o(this, "col-span--laptop", e);
|
|
315
390
|
}
|
|
316
391
|
get colSpanDesktop() {
|
|
317
392
|
return this.getAttribute("col-span--desktop");
|
|
318
393
|
}
|
|
319
394
|
set colSpanDesktop(e) {
|
|
320
|
-
|
|
395
|
+
o(this, "col-span--desktop", e);
|
|
321
396
|
}
|
|
322
397
|
get order() {
|
|
323
398
|
return this.getAttribute("order");
|
|
324
399
|
}
|
|
325
400
|
set order(e) {
|
|
326
|
-
|
|
401
|
+
o(this, "order", e);
|
|
327
402
|
}
|
|
328
403
|
get orderMobile() {
|
|
329
404
|
return this.getAttribute("order--mobile");
|
|
330
405
|
}
|
|
331
406
|
set orderMobile(e) {
|
|
332
|
-
|
|
407
|
+
o(this, "order--mobile", e);
|
|
333
408
|
}
|
|
334
409
|
get orderTablet() {
|
|
335
410
|
return this.getAttribute("order--tablet");
|
|
336
411
|
}
|
|
337
412
|
set orderTablet(e) {
|
|
338
|
-
|
|
413
|
+
o(this, "order--tablet", e);
|
|
339
414
|
}
|
|
340
415
|
get orderLaptop() {
|
|
341
416
|
return this.getAttribute("order--laptop");
|
|
342
417
|
}
|
|
343
418
|
set orderLaptop(e) {
|
|
344
|
-
|
|
419
|
+
o(this, "order--laptop", e);
|
|
345
420
|
}
|
|
346
421
|
get orderDesktop() {
|
|
347
422
|
return this.getAttribute("order--desktop");
|
|
348
423
|
}
|
|
349
424
|
set orderDesktop(e) {
|
|
350
|
-
|
|
425
|
+
o(this, "order--desktop", e);
|
|
351
426
|
}
|
|
352
427
|
};
|
|
353
|
-
(class extends
|
|
428
|
+
(class extends m {
|
|
429
|
+
static {
|
|
430
|
+
this.nativeAttributes = {};
|
|
431
|
+
}
|
|
432
|
+
static {
|
|
433
|
+
this.nativeProperties = {};
|
|
434
|
+
}
|
|
354
435
|
static {
|
|
355
|
-
this.
|
|
436
|
+
this.nativeMethods = [];
|
|
356
437
|
}
|
|
357
438
|
static get observedAttributes() {
|
|
358
|
-
return [...super.observedAttributes, ...
|
|
439
|
+
return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
|
|
359
440
|
}
|
|
360
441
|
attributeChangedCallback(e, t, n) {
|
|
361
|
-
super.attributeChangedCallback(e, t, n),
|
|
442
|
+
super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
|
|
362
443
|
}
|
|
363
444
|
get ctor() {
|
|
364
445
|
return Object.getPrototypeOf(this).constructor;
|
|
365
446
|
}
|
|
366
447
|
constructor(...e) {
|
|
367
|
-
super(...e), this.
|
|
448
|
+
super(...e), this.enhanceWithNativeProperties();
|
|
449
|
+
}
|
|
450
|
+
getNativePropertyMetadata() {
|
|
451
|
+
let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
|
|
452
|
+
for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
|
|
453
|
+
let n = new Map(Object.entries(this.ctor.nativeProperties));
|
|
454
|
+
for (let t of e.keys()) n.set(t, "writable");
|
|
455
|
+
return {
|
|
456
|
+
reflectedProperties: e,
|
|
457
|
+
properties: n
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
setNativeProperty(e, t, n) {
|
|
461
|
+
let r = n.get(e);
|
|
462
|
+
if (r !== void 0) {
|
|
463
|
+
this.$el[e] = t;
|
|
464
|
+
let n = this.$el.getAttribute(r);
|
|
465
|
+
this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
|
|
466
|
+
} else this.$el[e] !== t && (this.$el[e] = t);
|
|
368
467
|
}
|
|
369
468
|
enhanceWithNativeProperties() {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
set(t)
|
|
376
|
-
this.$el[e] !== t && (this.$el[e] = t);
|
|
377
|
-
}
|
|
469
|
+
let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
|
|
470
|
+
for (let [n, r] of t) {
|
|
471
|
+
let t = n;
|
|
472
|
+
Object.defineProperty(this, t, {
|
|
473
|
+
get: () => this.$el[t],
|
|
474
|
+
set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
|
|
378
475
|
});
|
|
379
|
-
} catch (t) {
|
|
380
|
-
console.warn(`Could not create property ${e} for`, this.$el, t);
|
|
381
476
|
}
|
|
477
|
+
for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
|
|
478
|
+
let n = this.$el, r = Reflect.get(n, e);
|
|
479
|
+
if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
|
|
480
|
+
return Reflect.apply(r, n, t);
|
|
481
|
+
} });
|
|
382
482
|
}
|
|
383
483
|
get $el() {
|
|
384
484
|
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
385
485
|
}
|
|
486
|
+
_forwardNativeAttribute(e, t) {
|
|
487
|
+
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
488
|
+
}
|
|
386
489
|
_updateAttribute(e, t) {
|
|
387
|
-
|
|
490
|
+
o(this, e, t);
|
|
388
491
|
}
|
|
389
492
|
_updateBooleanAttribute(e, t) {
|
|
390
|
-
|
|
493
|
+
s(this, e, t);
|
|
391
494
|
}
|
|
392
495
|
});
|
|
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"
|
|
496
|
+
//#endregion
|
|
497
|
+
//#region ../common/src/nativeProperties.ts
|
|
498
|
+
var h = {
|
|
499
|
+
validity: "readonly",
|
|
500
|
+
validationMessage: "readonly",
|
|
501
|
+
willValidate: "readonly"
|
|
502
|
+
}, g = [
|
|
503
|
+
"checkValidity",
|
|
504
|
+
"reportValidity",
|
|
505
|
+
"setCustomValidity"
|
|
448
506
|
];
|
|
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
|
-
}
|
|
507
|
+
({ ...h }), [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g];
|
|
470
508
|
//#endregion
|
|
471
509
|
//#region ../common/src/template.ts
|
|
472
510
|
var _ = /* @__PURE__ */ new Map(), v = 500;
|
|
@@ -528,19 +566,19 @@ var T = "px-timeline-item-connected", E = "1", D = class e extends HTMLElement {
|
|
|
528
566
|
return this.hasAttribute("inverted");
|
|
529
567
|
}
|
|
530
568
|
set inverted(e) {
|
|
531
|
-
|
|
569
|
+
s(this, "inverted", e);
|
|
532
570
|
}
|
|
533
571
|
get lastchild() {
|
|
534
572
|
return this.hasAttribute("lastchild");
|
|
535
573
|
}
|
|
536
574
|
set lastchild(e) {
|
|
537
|
-
|
|
575
|
+
s(this, "lastchild", e);
|
|
538
576
|
}
|
|
539
577
|
get item() {
|
|
540
578
|
return this.getAttribute("item");
|
|
541
579
|
}
|
|
542
580
|
set item(e) {
|
|
543
|
-
|
|
581
|
+
o(this, "item", e);
|
|
544
582
|
}
|
|
545
583
|
};
|
|
546
584
|
customElements.get("px-timeline-item") || customElements.define("px-timeline-item", D);
|
|
@@ -587,7 +625,7 @@ var k = class e extends HTMLElement {
|
|
|
587
625
|
return this.hasAttribute("inverted");
|
|
588
626
|
}
|
|
589
627
|
set inverted(e) {
|
|
590
|
-
|
|
628
|
+
s(this, "inverted", e);
|
|
591
629
|
}
|
|
592
630
|
};
|
|
593
631
|
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.20-alpha.
|
|
4
|
+
"version": "1.4.20-alpha.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|