@proximus/lavender-timeline 1.4.19-beta.4 → 1.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,102 +1,38 @@
1
1
  // src/timeline.css?inline
2
- var e = ".timeline{margin:0;padding:0;list-style:none}", t = {
2
+ var e = ".timeline{margin:0;padding:0;list-style:none}", t = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
3
+ // ../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 = {
3
15
  BASE_URL: "/",
4
16
  DEV: !0,
5
17
  MODE: "production",
6
18
  PROD: !1,
7
19
  SSR: !1,
8
- VITE_COMPONENT_DEBUG: "true"
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());
20
+ VITE_COMPONENT_DEBUG: "false"
21
+ }, o = a?.VITE_COMPONENT_DEBUG === "true" || a?.DEV === !0;
22
+ typeof window < "u" && (window.isComponentDebug = s);
23
+ function s() {
24
+ return o;
23
25
  }
24
- function s(e, t, n) {
25
- n ? e.setAttribute(t, "") : e.removeAttribute(t);
26
+ function c(e) {
27
+ s() && console.error(e);
26
28
  }
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 {
29
+ typeof window < "u" && (window.isComponentDebug = s);
30
+ var l = class e extends HTMLElement {
95
31
  static get observedAttributes() {
96
32
  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(".");
97
33
  }
98
34
  constructor(...e) {
99
- super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [p, ...e];
35
+ super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [i, ...e];
100
36
  }
101
37
  attributeChangedCallback(t, n, r) {
102
38
  if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
@@ -122,36 +58,36 @@ var m = class e extends HTMLElement {
122
58
  case "align-self--tablet":
123
59
  case "align-self--laptop":
124
60
  case "align-self--desktop":
125
- this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? l : c);
61
+ this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? d : u);
126
62
  break;
127
63
  case "justify-self":
128
64
  case "justify-self--mobile":
129
65
  case "justify-self--tablet":
130
66
  case "justify-self--laptop":
131
67
  case "justify-self--desktop":
132
- this.updateProperties(t, n, r, u);
68
+ this.updateProperties(t, n, r, f);
133
69
  break;
134
70
  case "col-span":
135
71
  case "col-span--mobile":
136
72
  case "col-span--tablet":
137
73
  case "col-span--laptop":
138
74
  case "col-span--desktop":
139
- this.updateProperties(t, n, r, d);
75
+ this.updateProperties(t, n, r, p);
140
76
  break;
141
77
  case "order":
142
78
  case "order--mobile":
143
79
  case "order--tablet":
144
80
  case "order--laptop":
145
- case "order--desktop": this.updateProperties(t, n, r, f);
81
+ case "order--desktop": this.updateProperties(t, n, r, m);
146
82
  }
147
83
  }
148
84
  updateProperties(e, t, n, r) {
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);
85
+ r && (this.checkName(r, n) || c(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`));
86
+ let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e;
87
+ if (!i) this.style.setProperty(`--${a}-value`, t), this.style.setProperty(`--${a}-value`, n);
152
88
  else {
153
89
  let r = e.split("--")[1];
154
- this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
90
+ this.style.setProperty(`--${a}--${r}-value`, t), this.style.setProperty(`--${a}--${r}-value`, n);
155
91
  }
156
92
  }
157
93
  updateStyle(e, t, n) {
@@ -179,388 +115,346 @@ var m = class e extends HTMLElement {
179
115
  return this.getAttribute("grow");
180
116
  }
181
117
  set grow(e) {
182
- o(this, "grow", e);
118
+ h(this, "grow", e);
183
119
  }
184
120
  get growMobile() {
185
121
  return this.getAttribute("grow--mobile");
186
122
  }
187
123
  set growMobile(e) {
188
- o(this, "grow--mobile", e);
124
+ h(this, "grow--mobile", e);
189
125
  }
190
126
  get growTablet() {
191
127
  return this.getAttribute("grow--tablet");
192
128
  }
193
129
  set growTablet(e) {
194
- o(this, "grow--tablet", e);
130
+ h(this, "grow--tablet", e);
195
131
  }
196
132
  get growLaptop() {
197
133
  return this.getAttribute("grow--laptop");
198
134
  }
199
135
  set growLaptop(e) {
200
- o(this, "grow--laptop", e);
136
+ h(this, "grow--laptop", e);
201
137
  }
202
138
  get growDesktop() {
203
139
  return this.getAttribute("grow--desktop");
204
140
  }
205
141
  set growDesktop(e) {
206
- o(this, "grow--desktop", e);
142
+ h(this, "grow--desktop", e);
207
143
  }
208
144
  get shrink() {
209
145
  return this.getAttribute("shrink");
210
146
  }
211
147
  set shrink(e) {
212
- o(this, "shrink", e);
148
+ h(this, "shrink", e);
213
149
  }
214
150
  get shrinkMobile() {
215
151
  return this.getAttribute("shrink--mobile");
216
152
  }
217
153
  set shrinkMobile(e) {
218
- o(this, "shrink--mobile", e);
154
+ h(this, "shrink--mobile", e);
219
155
  }
220
156
  get shrinkTablet() {
221
157
  return this.getAttribute("shrink--tablet");
222
158
  }
223
159
  set shrinkTablet(e) {
224
- o(this, "shrink--tablet", e);
160
+ h(this, "shrink--tablet", e);
225
161
  }
226
162
  get shrinkLaptop() {
227
163
  return this.getAttribute("shrink--laptop");
228
164
  }
229
165
  set shrinkLaptop(e) {
230
- o(this, "shrink--laptop", e);
166
+ h(this, "shrink--laptop", e);
231
167
  }
232
168
  get shrinkDesktop() {
233
169
  return this.getAttribute("shrink--desktop");
234
170
  }
235
171
  set shrinkDesktop(e) {
236
- o(this, "shrink--desktop", e);
172
+ h(this, "shrink--desktop", e);
237
173
  }
238
174
  get basis() {
239
175
  return this.getAttribute("basis");
240
176
  }
241
177
  set basis(e) {
242
- o(this, "basis", e);
178
+ h(this, "basis", e);
243
179
  }
244
180
  get basisMobile() {
245
181
  return this.getAttribute("basis--mobile");
246
182
  }
247
183
  set basisMobile(e) {
248
- o(this, "basis--mobile", e);
184
+ h(this, "basis--mobile", e);
249
185
  }
250
186
  get basisTablet() {
251
187
  return this.getAttribute("basis--tablet");
252
188
  }
253
189
  set basisTablet(e) {
254
- o(this, "basis--tablet", e);
190
+ h(this, "basis--tablet", e);
255
191
  }
256
192
  get basisLaptop() {
257
193
  return this.getAttribute("basis--laptop");
258
194
  }
259
195
  set basisLaptop(e) {
260
- o(this, "basis--laptop", e);
196
+ h(this, "basis--laptop", e);
261
197
  }
262
198
  get basisDesktop() {
263
199
  return this.getAttribute("basis--desktop");
264
200
  }
265
201
  set basisDesktop(e) {
266
- o(this, "basis--desktop", e);
202
+ h(this, "basis--desktop", e);
267
203
  }
268
204
  get alignSelf() {
269
205
  return this.getAttribute("align-self");
270
206
  }
271
207
  set alignSelf(e) {
272
- o(this, "align-self", e);
208
+ h(this, "align-self", e);
273
209
  }
274
210
  get alignSelfMobile() {
275
211
  return this.getAttribute("align-self--mobile");
276
212
  }
277
213
  set alignSelfMobile(e) {
278
- o(this, "align-self--mobile", e);
214
+ h(this, "align-self--mobile", e);
279
215
  }
280
216
  get alignSelfTablet() {
281
217
  return this.getAttribute("align-self--tablet");
282
218
  }
283
219
  set alignSelfTablet(e) {
284
- o(this, "align-self--tablet", e);
220
+ h(this, "align-self--tablet", e);
285
221
  }
286
222
  get alignSelfLaptop() {
287
223
  return this.getAttribute("align-self--laptop");
288
224
  }
289
225
  set alignSelfLaptop(e) {
290
- o(this, "align-self--laptop", e);
226
+ h(this, "align-self--laptop", e);
291
227
  }
292
228
  get alignSelfDesktop() {
293
229
  return this.getAttribute("align-self--desktop");
294
230
  }
295
231
  set alignSelfDesktop(e) {
296
- o(this, "align-self--desktop", e);
232
+ h(this, "align-self--desktop", e);
297
233
  }
298
234
  get justifySelf() {
299
235
  return this.getAttribute("justify-self");
300
236
  }
301
237
  set justifySelf(e) {
302
- o(this, "justify-self", e);
238
+ h(this, "justify-self", e);
303
239
  }
304
240
  get justifySelfMobile() {
305
241
  return this.getAttribute("justify-self--mobile");
306
242
  }
307
243
  set justifySelfMobile(e) {
308
- o(this, "justify-self--mobile", e);
244
+ h(this, "justify-self--mobile", e);
309
245
  }
310
246
  get justifySelfTablet() {
311
247
  return this.getAttribute("justify-self--tablet");
312
248
  }
313
249
  set justifySelfTablet(e) {
314
- o(this, "justify-self--tablet", e);
250
+ h(this, "justify-self--tablet", e);
315
251
  }
316
252
  get justifySelfLaptop() {
317
253
  return this.getAttribute("justify-self--laptop");
318
254
  }
319
255
  set justifySelfLaptop(e) {
320
- o(this, "justify-self--laptop", e);
256
+ h(this, "justify-self--laptop", e);
321
257
  }
322
258
  get justifySelfDesktop() {
323
259
  return this.getAttribute("justify-self--desktop");
324
260
  }
325
261
  set justifySelfDesktop(e) {
326
- o(this, "justify-self--desktop", e);
262
+ h(this, "justify-self--desktop", e);
327
263
  }
328
264
  get hiddenMobile() {
329
265
  return this.hasAttribute("hidden--mobile");
330
266
  }
331
267
  set hiddenMobile(e) {
332
- s(this, "hidden--mobile", e);
268
+ g(this, "hidden--mobile", e);
333
269
  }
334
270
  get hiddenTablet() {
335
271
  return this.hasAttribute("hidden--tablet");
336
272
  }
337
273
  set hiddenTablet(e) {
338
- s(this, "hidden--tablet", e);
274
+ g(this, "hidden--tablet", e);
339
275
  }
340
276
  get hiddenLaptop() {
341
277
  return this.hasAttribute("hidden--laptop");
342
278
  }
343
279
  set hiddenLaptop(e) {
344
- s(this, "hidden--laptop", e);
280
+ g(this, "hidden--laptop", e);
345
281
  }
346
282
  get hiddenDesktop() {
347
283
  return this.hasAttribute("hidden--desktop");
348
284
  }
349
285
  set hiddenDesktop(e) {
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);
286
+ g(this, "hidden--desktop", e);
381
287
  }
382
288
  get colSpan() {
383
289
  return this.getAttribute("col-span");
384
290
  }
385
291
  set colSpan(e) {
386
- o(this, "col-span", e);
292
+ h(this, "col-span", e);
387
293
  }
388
294
  get colSpanMobile() {
389
295
  return this.getAttribute("col-span--mobile");
390
296
  }
391
297
  set colSpanMobile(e) {
392
- o(this, "col-span--mobile", e);
298
+ h(this, "col-span--mobile", e);
393
299
  }
394
300
  get colSpanTablet() {
395
301
  return this.getAttribute("col-span--tablet");
396
302
  }
397
303
  set colSpanTablet(e) {
398
- o(this, "col-span--tablet", e);
304
+ h(this, "col-span--tablet", e);
399
305
  }
400
306
  get colSpanLaptop() {
401
307
  return this.getAttribute("col-span--laptop");
402
308
  }
403
309
  set colSpanLaptop(e) {
404
- o(this, "col-span--laptop", e);
310
+ h(this, "col-span--laptop", e);
405
311
  }
406
312
  get colSpanDesktop() {
407
313
  return this.getAttribute("col-span--desktop");
408
314
  }
409
315
  set colSpanDesktop(e) {
410
- o(this, "col-span--desktop", e);
316
+ h(this, "col-span--desktop", e);
411
317
  }
412
318
  get order() {
413
319
  return this.getAttribute("order");
414
320
  }
415
321
  set order(e) {
416
- o(this, "order", e);
322
+ h(this, "order", e);
417
323
  }
418
324
  get orderMobile() {
419
325
  return this.getAttribute("order--mobile");
420
326
  }
421
327
  set orderMobile(e) {
422
- o(this, "order--mobile", e);
328
+ h(this, "order--mobile", e);
423
329
  }
424
330
  get orderTablet() {
425
331
  return this.getAttribute("order--tablet");
426
332
  }
427
333
  set orderTablet(e) {
428
- o(this, "order--tablet", e);
334
+ h(this, "order--tablet", e);
429
335
  }
430
336
  get orderLaptop() {
431
337
  return this.getAttribute("order--laptop");
432
338
  }
433
339
  set orderLaptop(e) {
434
- o(this, "order--laptop", e);
340
+ h(this, "order--laptop", e);
435
341
  }
436
342
  get orderDesktop() {
437
343
  return this.getAttribute("order--desktop");
438
344
  }
439
345
  set orderDesktop(e) {
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);
346
+ h(this, "order--desktop", e);
483
347
  }
484
348
  };
485
- (class extends m {
486
- static {
487
- this.nativeAttributes = {};
488
- }
489
- static {
490
- this.nativeProperties = {};
491
- }
349
+ (class extends l {
492
350
  static {
493
- this.nativeMethods = [];
351
+ this.accessorExclusions = [];
494
352
  }
495
353
  static get observedAttributes() {
496
- return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
354
+ return [...super.observedAttributes, ...r(this.nativeName)];
497
355
  }
498
356
  attributeChangedCallback(e, t, n) {
499
- super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
357
+ super.attributeChangedCallback(e, t, n), n === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, n);
500
358
  }
501
359
  get ctor() {
502
360
  return Object.getPrototypeOf(this).constructor;
503
361
  }
504
362
  constructor(...e) {
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);
363
+ super(...e), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = n(this.ctor.nativeName)), this.enhanceWithNativeProperties();
524
364
  }
525
365
  enhanceWithNativeProperties() {
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
366
+ for (let e of this.ctor.supportedPropertyNames) if (!(e === "constructor" || (this.ctor?.accessorExclusions ?? []).includes(e))) try {
367
+ Object.defineProperty(this, e, {
368
+ get() {
369
+ return this.$el[e];
370
+ },
371
+ set(t) {
372
+ this.$el[e] !== t && (this.$el[e] = t);
373
+ }
532
374
  });
375
+ } catch (t) {
376
+ console.warn(`Could not create property ${e} for`, this.$el, t);
533
377
  }
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
- } });
539
378
  }
540
379
  get $el() {
541
380
  return this.shadowRoot.querySelector(this.ctor.nativeName);
542
381
  }
543
- _forwardNativeAttribute(e, t) {
544
- this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
545
- }
546
382
  _updateAttribute(e, t) {
547
- o(this, e, t);
383
+ h(this, e, t);
548
384
  }
549
385
  _updateBooleanAttribute(e, t) {
550
- s(this, e, t);
386
+ g(this, e, t);
551
387
  }
552
388
  });
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"
389
+ var u = [
390
+ "",
391
+ "default",
392
+ "auto",
393
+ "flex-start",
394
+ "start",
395
+ "flex-end",
396
+ "end",
397
+ "center",
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"
562
444
  ];
563
- ({ ...h }), [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g];
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
+ }
564
458
  // ../common/src/template.ts
565
459
  var _ = /* @__PURE__ */ new Map(), v = 500;
566
460
  function y(e) {
@@ -620,19 +514,19 @@ var T = "px-timeline-item-connected", E = "1", D = class e extends HTMLElement {
620
514
  return this.hasAttribute("inverted");
621
515
  }
622
516
  set inverted(e) {
623
- s(this, "inverted", e);
517
+ g(this, "inverted", e);
624
518
  }
625
519
  get lastchild() {
626
520
  return this.hasAttribute("lastchild");
627
521
  }
628
522
  set lastchild(e) {
629
- s(this, "lastchild", e);
523
+ g(this, "lastchild", e);
630
524
  }
631
525
  get item() {
632
526
  return this.getAttribute("item");
633
527
  }
634
528
  set item(e) {
635
- o(this, "item", e);
529
+ h(this, "item", e);
636
530
  }
637
531
  };
638
532
  customElements.get("px-timeline-item") || customElements.define("px-timeline-item", D);
@@ -678,7 +572,7 @@ var k = class e extends HTMLElement {
678
572
  return this.hasAttribute("inverted");
679
573
  }
680
574
  set inverted(e) {
681
- s(this, "inverted", e);
575
+ g(this, "inverted", e);
682
576
  }
683
577
  };
684
578
  customElements.get("px-timeline") || customElements.define("px-timeline", k);
@@ -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",
4
+ "version": "1.4.19",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-timeline",
3
- "version": "1.4.19-beta.4",
3
+ "version": "1.4.19",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",