@proximus/lavender-common 0.1.0-alpha.54 → 0.1.0-alpha.55
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.js +394 -101
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
const t = document.createElement(
|
|
4
|
-
return Object.getOwnPropertyNames(
|
|
1
|
+
const u = "::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--mobile-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--mobile-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--mobile-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--mobile-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--mobile-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--mobile-value)}::slotted(*[hidden]),::slotted(*[hidden--mobile]){display:none}::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (min-width: 768px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--tablet-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--tablet-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--tablet-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--tablet-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--tablet-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--tablet-value)}::slotted(*[hidden]),::slotted(*[hidden--tablet]){display:none}}@media screen and (min-width: 1025px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--laptop-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--laptop-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--laptop-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--laptop-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--laptop-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--laptop-value)}::slotted(*[hidden]),::slotted(*[hidden--laptop]){display:none}}@media screen and (min-width: 1441px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--desktop-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--desktop-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--desktop-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--desktop-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--desktop-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--desktop-value)}::slotted(*[hidden]),::slotted(*[hidden--desktop]){display:none}}";
|
|
2
|
+
function d(o) {
|
|
3
|
+
const t = document.createElement(o), e = Object.getPrototypeOf(t);
|
|
4
|
+
return Object.getOwnPropertyNames(e);
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
class
|
|
6
|
+
const b = new CSSStyleSheet();
|
|
7
|
+
b.replaceSync(u);
|
|
8
|
+
class i extends HTMLElement {
|
|
9
9
|
static get observedAttributes() {
|
|
10
10
|
return [
|
|
11
11
|
"grow",
|
|
12
|
+
"grow--mobile",
|
|
12
13
|
"grow--tablet",
|
|
13
14
|
"grow--laptop",
|
|
14
15
|
"grow--desktop",
|
|
@@ -23,62 +24,161 @@ class o extends HTMLElement {
|
|
|
23
24
|
"basis--laptop",
|
|
24
25
|
"basis--desktop",
|
|
25
26
|
"align-self",
|
|
27
|
+
"align-self--mobile",
|
|
28
|
+
"align-self--tablet",
|
|
29
|
+
"align-self--laptop",
|
|
30
|
+
"align-self--desktop",
|
|
31
|
+
"justify-self",
|
|
32
|
+
"justify-self--mobile",
|
|
33
|
+
"justify-self--tablet",
|
|
34
|
+
"justify-self--laptop",
|
|
35
|
+
"justify-self--desktop",
|
|
36
|
+
"hidden",
|
|
26
37
|
"hidden--mobile",
|
|
27
38
|
"hidden--tablet",
|
|
28
39
|
"hidden--laptop",
|
|
29
40
|
"hidden--desktop",
|
|
30
|
-
"shown--sr"
|
|
41
|
+
"shown--sr",
|
|
42
|
+
"col-span",
|
|
43
|
+
"col-span--mobile",
|
|
44
|
+
"col-span--tablet",
|
|
45
|
+
"col-span--laptop",
|
|
46
|
+
"col-span--desktop",
|
|
47
|
+
"order",
|
|
48
|
+
"order--mobile",
|
|
49
|
+
"order--tablet",
|
|
50
|
+
"order--laptop",
|
|
51
|
+
"order--desktop"
|
|
31
52
|
];
|
|
32
53
|
}
|
|
33
54
|
constructor(...t) {
|
|
34
55
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
35
|
-
|
|
56
|
+
b,
|
|
36
57
|
...t
|
|
37
58
|
];
|
|
38
59
|
}
|
|
39
|
-
attributeChangedCallback(t,
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
attributeChangedCallback(t, e, s) {
|
|
61
|
+
if (i.observedAttributes.indexOf(t) !== -1)
|
|
62
|
+
switch (t) {
|
|
63
|
+
case "grow":
|
|
64
|
+
case "grow--mobile":
|
|
65
|
+
case "grow--tablet":
|
|
66
|
+
case "grow--laptop":
|
|
67
|
+
case "grow--desktop":
|
|
68
|
+
case "shrink":
|
|
69
|
+
case "shrink--mobile":
|
|
70
|
+
case "shrink--tablet":
|
|
71
|
+
case "shrink--laptop":
|
|
72
|
+
case "shrink--desktop":
|
|
73
|
+
case "basis":
|
|
74
|
+
case "basis--mobile":
|
|
75
|
+
case "basis--tablet":
|
|
76
|
+
case "basis--laptop":
|
|
77
|
+
case "basis--desktop":
|
|
78
|
+
this.updateProperties(t, e, s, null);
|
|
79
|
+
break;
|
|
80
|
+
case "align-self":
|
|
81
|
+
case "align-self--mobile":
|
|
82
|
+
case "align-self--tablet":
|
|
83
|
+
case "align-self--laptop":
|
|
84
|
+
case "align-self--desktop":
|
|
85
|
+
this.updateProperties(
|
|
86
|
+
t,
|
|
87
|
+
e,
|
|
88
|
+
s,
|
|
89
|
+
this.isGrid ? h : g
|
|
90
|
+
);
|
|
91
|
+
break;
|
|
92
|
+
case "justify-self":
|
|
93
|
+
case "justify-self--mobile":
|
|
94
|
+
case "justify-self--tablet":
|
|
95
|
+
case "justify-self--laptop":
|
|
96
|
+
case "justify-self--desktop":
|
|
97
|
+
this.updateProperties(
|
|
98
|
+
t,
|
|
99
|
+
e,
|
|
100
|
+
s,
|
|
101
|
+
c
|
|
102
|
+
);
|
|
103
|
+
break;
|
|
104
|
+
case "col-span":
|
|
105
|
+
case "col-span--mobile":
|
|
106
|
+
case "col-span--tablet":
|
|
107
|
+
case "col-span--laptop":
|
|
108
|
+
case "col-span--desktop":
|
|
109
|
+
this.updateProperties(t, e, s, f);
|
|
110
|
+
break;
|
|
111
|
+
case "order":
|
|
112
|
+
case "order--mobile":
|
|
113
|
+
case "order--tablet":
|
|
114
|
+
case "order--laptop":
|
|
115
|
+
case "order--desktop":
|
|
116
|
+
this.updateProperties(t, e, s, k);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
updateProperties(t, e, s, n) {
|
|
121
|
+
if (n && !this.checkName(n, s)) {
|
|
122
|
+
console.error(`Bad ${t} value for`, this.$el);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const p = t.indexOf("--") > -1, l = p ? t.split("--")[0] : t, r = [];
|
|
126
|
+
if (!p)
|
|
127
|
+
this.getAttribute(l + "--mobile") || r.push("mobile"), this.getAttribute(l + "--tablet") || r.push("tablet"), this.getAttribute(l + "--laptop") || r.push("laptop"), this.getAttribute(l + "--desktop") || r.push("desktop"), r.forEach((a) => {
|
|
128
|
+
i.prototype.updateStyle.call(
|
|
129
|
+
this,
|
|
130
|
+
l,
|
|
131
|
+
a,
|
|
132
|
+
e
|
|
133
|
+
), i.prototype.updateStyle.call(
|
|
134
|
+
this,
|
|
135
|
+
l,
|
|
136
|
+
a,
|
|
137
|
+
s
|
|
138
|
+
);
|
|
139
|
+
});
|
|
140
|
+
else {
|
|
141
|
+
const a = t.split("--")[1];
|
|
142
|
+
i.prototype.updateStyle.call(
|
|
143
|
+
this,
|
|
144
|
+
l,
|
|
145
|
+
a,
|
|
146
|
+
e
|
|
147
|
+
), i.prototype.updateStyle.call(
|
|
148
|
+
this,
|
|
149
|
+
l,
|
|
150
|
+
a,
|
|
151
|
+
s
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
updateStyle(t, e, s) {
|
|
156
|
+
s !== null && s !== "" && s !== "default" && this.style.setProperty(
|
|
157
|
+
`--${t}--${e}-value`,
|
|
158
|
+
s
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
checkName(t, e) {
|
|
162
|
+
return t.includes(e);
|
|
64
163
|
}
|
|
65
|
-
get
|
|
66
|
-
return this
|
|
164
|
+
get $el() {
|
|
165
|
+
return this;
|
|
67
166
|
}
|
|
68
|
-
|
|
69
|
-
|
|
167
|
+
get $parentElementName() {
|
|
168
|
+
var t;
|
|
169
|
+
return (t = this.parentElement) == null ? void 0 : t.tagName.toLowerCase();
|
|
70
170
|
}
|
|
71
|
-
get
|
|
72
|
-
return this
|
|
171
|
+
get isGrid() {
|
|
172
|
+
return this.$parentElementName === "px-grid";
|
|
73
173
|
}
|
|
74
|
-
|
|
75
|
-
this
|
|
174
|
+
get isStack() {
|
|
175
|
+
return this.$parentElementName === "px-stack";
|
|
76
176
|
}
|
|
77
|
-
get
|
|
78
|
-
return this.getAttribute("
|
|
177
|
+
get grow() {
|
|
178
|
+
return this.getAttribute("grow");
|
|
79
179
|
}
|
|
80
|
-
set
|
|
81
|
-
this.setAttribute("
|
|
180
|
+
set grow(t) {
|
|
181
|
+
this.setAttribute("grow", t);
|
|
82
182
|
}
|
|
83
183
|
get growMobile() {
|
|
84
184
|
return this.getAttribute("grow--mobile");
|
|
@@ -104,6 +204,12 @@ class o extends HTMLElement {
|
|
|
104
204
|
set growDesktop(t) {
|
|
105
205
|
this.setAttribute("grow--desktop", t);
|
|
106
206
|
}
|
|
207
|
+
get shrink() {
|
|
208
|
+
return this.getAttribute("shrink");
|
|
209
|
+
}
|
|
210
|
+
set shrink(t) {
|
|
211
|
+
this.setAttribute("shrink", t);
|
|
212
|
+
}
|
|
107
213
|
get shrinkMobile() {
|
|
108
214
|
return this.getAttribute("shrink--mobile");
|
|
109
215
|
}
|
|
@@ -128,6 +234,12 @@ class o extends HTMLElement {
|
|
|
128
234
|
set shrinkDesktop(t) {
|
|
129
235
|
this.setAttribute("shrink--desktop", t);
|
|
130
236
|
}
|
|
237
|
+
get basis() {
|
|
238
|
+
return this.getAttribute("basis");
|
|
239
|
+
}
|
|
240
|
+
set basis(t) {
|
|
241
|
+
this.setAttribute("basis", t);
|
|
242
|
+
}
|
|
131
243
|
get basisMobile() {
|
|
132
244
|
return this.getAttribute("basis--mobile");
|
|
133
245
|
}
|
|
@@ -158,8 +270,59 @@ class o extends HTMLElement {
|
|
|
158
270
|
set alignSelf(t) {
|
|
159
271
|
this.setAttribute("align-self", t);
|
|
160
272
|
}
|
|
161
|
-
get
|
|
162
|
-
return this;
|
|
273
|
+
get alignSelfMobile() {
|
|
274
|
+
return this.getAttribute("align-self--mobile");
|
|
275
|
+
}
|
|
276
|
+
set alignSelfMobile(t) {
|
|
277
|
+
this.setAttribute("align-self--mobile", t);
|
|
278
|
+
}
|
|
279
|
+
get alignSelfTablet() {
|
|
280
|
+
return this.getAttribute("align-self--tablet");
|
|
281
|
+
}
|
|
282
|
+
set alignSelfTablet(t) {
|
|
283
|
+
this.setAttribute("align-self--tablet", t);
|
|
284
|
+
}
|
|
285
|
+
get alignSelfLaptop() {
|
|
286
|
+
return this.getAttribute("align-self--laptop");
|
|
287
|
+
}
|
|
288
|
+
set alignSelfLaptop(t) {
|
|
289
|
+
this.setAttribute("align-self--laptop", t);
|
|
290
|
+
}
|
|
291
|
+
get alignSelfDesktop() {
|
|
292
|
+
return this.getAttribute("align-self--desktop");
|
|
293
|
+
}
|
|
294
|
+
set alignSelfDesktop(t) {
|
|
295
|
+
this.setAttribute("align-self--desktop", t);
|
|
296
|
+
}
|
|
297
|
+
get justifySelf() {
|
|
298
|
+
return this.getAttribute("justify-self");
|
|
299
|
+
}
|
|
300
|
+
set justifySelf(t) {
|
|
301
|
+
this.setAttribute("justify-self", t);
|
|
302
|
+
}
|
|
303
|
+
get justifySelfMobile() {
|
|
304
|
+
return this.getAttribute("justify-self--mobile");
|
|
305
|
+
}
|
|
306
|
+
set justifySelfMobile(t) {
|
|
307
|
+
this.setAttribute("justify-self--mobile", t);
|
|
308
|
+
}
|
|
309
|
+
get justifySelfTablet() {
|
|
310
|
+
return this.getAttribute("justify-self--tablet");
|
|
311
|
+
}
|
|
312
|
+
set justifySelfTablet(t) {
|
|
313
|
+
this.setAttribute("justify-self--tablet", t);
|
|
314
|
+
}
|
|
315
|
+
get justifySelfLaptop() {
|
|
316
|
+
return this.getAttribute("justify-self--laptop");
|
|
317
|
+
}
|
|
318
|
+
set justifySelfLaptop(t) {
|
|
319
|
+
this.setAttribute("justify-self--laptop", t);
|
|
320
|
+
}
|
|
321
|
+
get justifySelfDesktop() {
|
|
322
|
+
return this.getAttribute("justify-self--desktop");
|
|
323
|
+
}
|
|
324
|
+
set justifySelfDesktop(t) {
|
|
325
|
+
this.setAttribute("justify-self--desktop", t);
|
|
163
326
|
}
|
|
164
327
|
get hiddenMobile() {
|
|
165
328
|
return this.getAttribute("hidden--mobile");
|
|
@@ -185,42 +348,166 @@ class o extends HTMLElement {
|
|
|
185
348
|
set hiddenDesktop(t) {
|
|
186
349
|
this.setAttribute("hidden--desktop", t);
|
|
187
350
|
}
|
|
351
|
+
get colSpan() {
|
|
352
|
+
return this.getAttribute("col-span");
|
|
353
|
+
}
|
|
354
|
+
set colSpan(t) {
|
|
355
|
+
this.setAttribute("col-span", t);
|
|
356
|
+
}
|
|
357
|
+
get colSpanMobile() {
|
|
358
|
+
return this.getAttribute("col-span--mobile");
|
|
359
|
+
}
|
|
360
|
+
set colSpanMobile(t) {
|
|
361
|
+
this.setAttribute("col-span--mobile", t);
|
|
362
|
+
}
|
|
363
|
+
get colSpanTablet() {
|
|
364
|
+
return this.getAttribute("col-span--tablet");
|
|
365
|
+
}
|
|
366
|
+
set colSpanTablet(t) {
|
|
367
|
+
this.setAttribute("col-span--tablet", t);
|
|
368
|
+
}
|
|
369
|
+
get colSpanLaptop() {
|
|
370
|
+
return this.getAttribute("col-span--laptop");
|
|
371
|
+
}
|
|
372
|
+
set colSpanLaptop(t) {
|
|
373
|
+
this.setAttribute("col-span--laptop", t);
|
|
374
|
+
}
|
|
375
|
+
get colSpanDesktop() {
|
|
376
|
+
return this.getAttribute("col-span--desktop");
|
|
377
|
+
}
|
|
378
|
+
set colSpanDesktop(t) {
|
|
379
|
+
this.setAttribute("col-span--desktop", t);
|
|
380
|
+
}
|
|
381
|
+
get order() {
|
|
382
|
+
return this.getAttribute("order");
|
|
383
|
+
}
|
|
384
|
+
set order(t) {
|
|
385
|
+
this.setAttribute("order", t);
|
|
386
|
+
}
|
|
387
|
+
get orderMobile() {
|
|
388
|
+
return this.getAttribute("order--mobile");
|
|
389
|
+
}
|
|
390
|
+
set orderMobile(t) {
|
|
391
|
+
this.setAttribute("order--mobile", t);
|
|
392
|
+
}
|
|
393
|
+
get orderTablet() {
|
|
394
|
+
return this.getAttribute("order--tablet");
|
|
395
|
+
}
|
|
396
|
+
set orderTablet(t) {
|
|
397
|
+
this.setAttribute("order--tablet", t);
|
|
398
|
+
}
|
|
399
|
+
get orderLaptop() {
|
|
400
|
+
return this.getAttribute("order--laptop");
|
|
401
|
+
}
|
|
402
|
+
set orderLaptop(t) {
|
|
403
|
+
this.setAttribute("order--laptop", t);
|
|
404
|
+
}
|
|
405
|
+
get orderDesktop() {
|
|
406
|
+
return this.getAttribute("order--desktop");
|
|
407
|
+
}
|
|
408
|
+
set orderDesktop(t) {
|
|
409
|
+
this.setAttribute("order--desktop", t);
|
|
410
|
+
}
|
|
188
411
|
}
|
|
189
|
-
class
|
|
412
|
+
class m extends i {
|
|
190
413
|
static get observedAttributes() {
|
|
191
414
|
return [
|
|
192
415
|
...super.observedAttributes,
|
|
193
|
-
...
|
|
416
|
+
...d(this.nativeName)
|
|
194
417
|
];
|
|
195
418
|
}
|
|
196
|
-
attributeChangedCallback(t,
|
|
197
|
-
super.attributeChangedCallback(t,
|
|
419
|
+
attributeChangedCallback(t, e, s) {
|
|
420
|
+
super.attributeChangedCallback(t, e, s), s === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, s);
|
|
198
421
|
}
|
|
199
422
|
constructor(...t) {
|
|
200
423
|
super(...t), this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
|
|
201
424
|
}
|
|
202
425
|
connectedCallback() {
|
|
203
|
-
|
|
204
|
-
|
|
426
|
+
var t;
|
|
427
|
+
for (const e of d(this.nativeName))
|
|
428
|
+
e !== "constructor" && Object.defineProperty(this, e, {
|
|
205
429
|
get() {
|
|
206
|
-
return this.$el[
|
|
430
|
+
return this.$el[e];
|
|
207
431
|
},
|
|
208
432
|
set(s) {
|
|
209
|
-
this.$el[
|
|
433
|
+
this.$el[e] !== s && (this.$el[e] = s);
|
|
210
434
|
}
|
|
211
435
|
});
|
|
436
|
+
if (this.isGrid || this.isStack) {
|
|
437
|
+
const e = (t = this.parentElement) == null ? void 0 : t.getAttribute("direction");
|
|
438
|
+
this.$el.style.display = "block", (this.isGrid || this.isStack && e === "row") && (this.$el.style.height = "100%");
|
|
439
|
+
}
|
|
212
440
|
}
|
|
213
441
|
get $el() {
|
|
214
442
|
return this.shadowRoot.querySelector(this.nativeName);
|
|
215
443
|
}
|
|
216
444
|
}
|
|
217
|
-
const
|
|
445
|
+
const y = [
|
|
218
446
|
"",
|
|
219
447
|
"default",
|
|
220
448
|
"inside-section-none",
|
|
221
449
|
"inside-section-default",
|
|
222
450
|
"inside-section-l"
|
|
223
|
-
],
|
|
451
|
+
], g = [
|
|
452
|
+
"",
|
|
453
|
+
"default",
|
|
454
|
+
"auto",
|
|
455
|
+
"flex-start",
|
|
456
|
+
"flex-end",
|
|
457
|
+
"center",
|
|
458
|
+
"baseline",
|
|
459
|
+
"stretch"
|
|
460
|
+
], h = [
|
|
461
|
+
"",
|
|
462
|
+
"default",
|
|
463
|
+
"start",
|
|
464
|
+
"end",
|
|
465
|
+
"center",
|
|
466
|
+
"stretch"
|
|
467
|
+
], c = [
|
|
468
|
+
"",
|
|
469
|
+
"default",
|
|
470
|
+
"start",
|
|
471
|
+
"end",
|
|
472
|
+
"center",
|
|
473
|
+
"stretch"
|
|
474
|
+
], f = [
|
|
475
|
+
"",
|
|
476
|
+
"1",
|
|
477
|
+
"2",
|
|
478
|
+
"3",
|
|
479
|
+
"4",
|
|
480
|
+
"5",
|
|
481
|
+
"6",
|
|
482
|
+
"7",
|
|
483
|
+
"8",
|
|
484
|
+
"9",
|
|
485
|
+
"10",
|
|
486
|
+
"11",
|
|
487
|
+
"12"
|
|
488
|
+
], k = [
|
|
489
|
+
"",
|
|
490
|
+
"1",
|
|
491
|
+
"2",
|
|
492
|
+
"3",
|
|
493
|
+
"4",
|
|
494
|
+
"5",
|
|
495
|
+
"6",
|
|
496
|
+
"7",
|
|
497
|
+
"8",
|
|
498
|
+
"9",
|
|
499
|
+
"10",
|
|
500
|
+
"11",
|
|
501
|
+
"12"
|
|
502
|
+
], A = [
|
|
503
|
+
"",
|
|
504
|
+
"default",
|
|
505
|
+
"auto",
|
|
506
|
+
"start",
|
|
507
|
+
"end",
|
|
508
|
+
"center",
|
|
509
|
+
"stretch"
|
|
510
|
+
], w = [
|
|
224
511
|
"",
|
|
225
512
|
"default",
|
|
226
513
|
"inherit",
|
|
@@ -236,7 +523,7 @@ const p = [
|
|
|
236
523
|
"heading-l",
|
|
237
524
|
"heading-m",
|
|
238
525
|
"heading-s"
|
|
239
|
-
],
|
|
526
|
+
], v = [
|
|
240
527
|
"",
|
|
241
528
|
"default",
|
|
242
529
|
"inherit",
|
|
@@ -254,7 +541,7 @@ const p = [
|
|
|
254
541
|
"purpose-error",
|
|
255
542
|
"purpose-unlimited",
|
|
256
543
|
"purpose-promo"
|
|
257
|
-
],
|
|
544
|
+
], j = [
|
|
258
545
|
"",
|
|
259
546
|
"default",
|
|
260
547
|
"inherit",
|
|
@@ -262,7 +549,7 @@ const p = [
|
|
|
262
549
|
"bold",
|
|
263
550
|
"extrabold",
|
|
264
551
|
"light"
|
|
265
|
-
],
|
|
552
|
+
], S = [
|
|
266
553
|
"",
|
|
267
554
|
"default",
|
|
268
555
|
"2xs",
|
|
@@ -272,7 +559,7 @@ const p = [
|
|
|
272
559
|
"l",
|
|
273
560
|
"xl",
|
|
274
561
|
"2xl"
|
|
275
|
-
],
|
|
562
|
+
], x = ["", "default", "left", "center", "right"], M = ["", "none", "2xs", "xs", "s", "m", "l"], L = ["", "none", "s", "m", "l"], T = ["", "none", "main", "pill"], D = [
|
|
276
563
|
"none",
|
|
277
564
|
"container-main",
|
|
278
565
|
"container-brand",
|
|
@@ -283,7 +570,7 @@ const p = [
|
|
|
283
570
|
"purpose-warning",
|
|
284
571
|
"purpose-error",
|
|
285
572
|
"purpose-unlimited"
|
|
286
|
-
],
|
|
573
|
+
], $ = [
|
|
287
574
|
"",
|
|
288
575
|
"all",
|
|
289
576
|
"top",
|
|
@@ -292,7 +579,7 @@ const p = [
|
|
|
292
579
|
"left",
|
|
293
580
|
"block",
|
|
294
581
|
"inline"
|
|
295
|
-
],
|
|
582
|
+
], C = [
|
|
296
583
|
"",
|
|
297
584
|
"none",
|
|
298
585
|
"container-neutral-bare",
|
|
@@ -318,7 +605,7 @@ const p = [
|
|
|
318
605
|
"purpose-info",
|
|
319
606
|
"purpose-eco",
|
|
320
607
|
"purpose-notification"
|
|
321
|
-
],
|
|
608
|
+
], N = ["", "none", "s", "m", "l", "xl"], P = [
|
|
322
609
|
"",
|
|
323
610
|
"default",
|
|
324
611
|
"title-4xl",
|
|
@@ -329,7 +616,7 @@ const p = [
|
|
|
329
616
|
"title-m",
|
|
330
617
|
"title-s",
|
|
331
618
|
"subtitle"
|
|
332
|
-
],
|
|
619
|
+
], G = [
|
|
333
620
|
"",
|
|
334
621
|
"purple-top-red",
|
|
335
622
|
"purple-top-magenta",
|
|
@@ -379,58 +666,64 @@ const p = [
|
|
|
379
666
|
"color-bottom-right-blue",
|
|
380
667
|
"color-bottom-right-turquoise",
|
|
381
668
|
"color-bottom-right-green"
|
|
382
|
-
],
|
|
669
|
+
], V = [
|
|
383
670
|
"",
|
|
384
671
|
"all",
|
|
385
672
|
"top",
|
|
386
673
|
"right",
|
|
387
674
|
"bottom",
|
|
388
675
|
"left"
|
|
389
|
-
],
|
|
676
|
+
], O = [
|
|
390
677
|
"",
|
|
391
678
|
"default",
|
|
392
679
|
"xs",
|
|
393
680
|
"s",
|
|
394
681
|
"l",
|
|
395
682
|
"2xl"
|
|
396
|
-
],
|
|
397
|
-
function
|
|
683
|
+
], q = ["", "default", "s", "m", "l"];
|
|
684
|
+
function E(o) {
|
|
398
685
|
const t = document.createElement("style");
|
|
399
|
-
t.innerHTML =
|
|
686
|
+
t.innerHTML = o, document.head.appendChild(t);
|
|
400
687
|
}
|
|
401
|
-
function
|
|
402
|
-
return typeof
|
|
688
|
+
function R(o) {
|
|
689
|
+
return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
|
|
403
690
|
}
|
|
404
|
-
function
|
|
691
|
+
function z() {
|
|
405
692
|
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
406
693
|
}
|
|
407
|
-
function
|
|
408
|
-
return
|
|
694
|
+
function B(o, t) {
|
|
695
|
+
return o.includes(t);
|
|
409
696
|
}
|
|
410
697
|
export {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
698
|
+
m as PxElement,
|
|
699
|
+
i as WithExtraAttributes,
|
|
700
|
+
E as addGlobalStylesheet,
|
|
701
|
+
O as assetContainerIconSizeValues,
|
|
702
|
+
q as assetContainerImgWidthValues,
|
|
703
|
+
C as backgroundColorValues,
|
|
704
|
+
D as borderColorValues,
|
|
705
|
+
T as borderRadiusValues,
|
|
706
|
+
$ as borderSideValues,
|
|
707
|
+
L as borderValues,
|
|
708
|
+
N as boxShadowValues,
|
|
709
|
+
B as checkName,
|
|
710
|
+
v as colorValues,
|
|
711
|
+
h as cssGridAlignSelfValues,
|
|
712
|
+
f as cssGridColSpanValues,
|
|
713
|
+
c as cssGridJustifySelfValues,
|
|
714
|
+
k as cssGridOrderValues,
|
|
715
|
+
A as cssGridPlaceSelfValues,
|
|
716
|
+
g as flexboxAlignSelfValues,
|
|
717
|
+
w as fontsizeValues,
|
|
718
|
+
j as fontweightValues,
|
|
719
|
+
d as getSupportedAttributeNames,
|
|
720
|
+
z as getViewportFormat,
|
|
721
|
+
G as gradientValues,
|
|
722
|
+
y as gridGapValues,
|
|
723
|
+
P as headingValues,
|
|
724
|
+
S as iconSizeValues,
|
|
725
|
+
R as isFalsy,
|
|
726
|
+
V as noBorderRadiusValues,
|
|
727
|
+
M as paddingValues,
|
|
728
|
+
x as textalignValues
|
|
436
729
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-common",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.55",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "b8dcbe6979ae4c984cf44a4ce6d86b087446e711",
|
|
28
28
|
"lerna": {
|
|
29
29
|
"command": {
|
|
30
30
|
"publish": {
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"package.json",
|
|
34
34
|
"dist/*.js",
|
|
35
35
|
"dist/*.cjs",
|
|
36
|
-
"dist/css/**/*.css"
|
|
36
|
+
"dist/css/**/*.css",
|
|
37
|
+
"dist/js/**/*.js"
|
|
37
38
|
]
|
|
38
39
|
}
|
|
39
40
|
}
|