@proximus/lavender-common 1.4.8-beta.2 → 1.4.8
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 +42 -45
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var w = (i) => {
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var a = (i, t, s) => (
|
|
4
|
+
var A = (i, t, s) => t.has(i) || w("Cannot " + s);
|
|
5
|
+
var a = (i, t, s) => (A(i, t, "read from private field"), s ? s.call(i) : t.get(i)), d = (i, t, s) => t.has(i) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), p = (i, t, s, e) => (A(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s);
|
|
6
6
|
const C = ":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]){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%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 767px){: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%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 768px) and (max-width: 1024px){: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%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){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: 1025px){: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}}@media screen and (min-width: 1441px){: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}}", L = {};
|
|
7
7
|
function N(i) {
|
|
8
8
|
const t = document.createElement(i), s = Object.getPrototypeOf(t);
|
|
@@ -14,15 +14,14 @@ function M(i) {
|
|
|
14
14
|
(e) => e.toLowerCase()
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const D = typeof import.meta < "u" && typeof L < "u" && !
|
|
20
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
21
|
-
function
|
|
17
|
+
const S = new CSSStyleSheet();
|
|
18
|
+
S.replaceSync(C);
|
|
19
|
+
const D = typeof import.meta < "u" && typeof L < "u" && !1;
|
|
20
|
+
typeof window < "u" && (window.isComponentDebug = $);
|
|
21
|
+
function $() {
|
|
22
22
|
return D;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
v() && console.error(i);
|
|
24
|
+
function V(i) {
|
|
26
25
|
}
|
|
27
26
|
var c, n, g, h, u, m, x;
|
|
28
27
|
class R {
|
|
@@ -82,10 +81,10 @@ class R {
|
|
|
82
81
|
}
|
|
83
82
|
c = new WeakMap(), n = new WeakMap(), g = new WeakMap(), h = new WeakMap(), u = new WeakMap(), m = new WeakSet(), x = function() {
|
|
84
83
|
return Array.from(a(this, c).querySelectorAll("*")).filter(
|
|
85
|
-
|
|
84
|
+
T
|
|
86
85
|
);
|
|
87
86
|
};
|
|
88
|
-
function
|
|
87
|
+
function T(i) {
|
|
89
88
|
var s;
|
|
90
89
|
if (i.hasAttribute("interactive-state"))
|
|
91
90
|
return !0;
|
|
@@ -94,8 +93,8 @@ function E(i) {
|
|
|
94
93
|
);
|
|
95
94
|
return ((s = t == null ? void 0 : t.observedAttributes) == null ? void 0 : s.includes("interactive-state")) ?? !1;
|
|
96
95
|
}
|
|
97
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
98
|
-
class
|
|
96
|
+
typeof window < "u" && (window.isComponentDebug = $);
|
|
97
|
+
class v extends HTMLElement {
|
|
99
98
|
static get observedAttributes() {
|
|
100
99
|
return [
|
|
101
100
|
"grow",
|
|
@@ -149,13 +148,13 @@ class y extends HTMLElement {
|
|
|
149
148
|
}
|
|
150
149
|
constructor(...t) {
|
|
151
150
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
152
|
-
|
|
151
|
+
S,
|
|
153
152
|
...t
|
|
154
153
|
];
|
|
155
154
|
}
|
|
156
155
|
attributeChangedCallback(t, s, e) {
|
|
157
156
|
var o;
|
|
158
|
-
if (
|
|
157
|
+
if (v.observedAttributes.indexOf(t) !== -1)
|
|
159
158
|
switch (t) {
|
|
160
159
|
case "grow":
|
|
161
160
|
case "grow--mobile":
|
|
@@ -183,7 +182,7 @@ class y extends HTMLElement {
|
|
|
183
182
|
t,
|
|
184
183
|
s,
|
|
185
184
|
e,
|
|
186
|
-
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ?
|
|
185
|
+
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? O : E
|
|
187
186
|
);
|
|
188
187
|
break;
|
|
189
188
|
case "justify-self":
|
|
@@ -195,7 +194,7 @@ class y extends HTMLElement {
|
|
|
195
194
|
t,
|
|
196
195
|
s,
|
|
197
196
|
e,
|
|
198
|
-
|
|
197
|
+
I
|
|
199
198
|
);
|
|
200
199
|
break;
|
|
201
200
|
case "col-span":
|
|
@@ -203,21 +202,19 @@ class y extends HTMLElement {
|
|
|
203
202
|
case "col-span--tablet":
|
|
204
203
|
case "col-span--laptop":
|
|
205
204
|
case "col-span--desktop":
|
|
206
|
-
this.updateProperties(t, s, e,
|
|
205
|
+
this.updateProperties(t, s, e, _);
|
|
207
206
|
break;
|
|
208
207
|
case "order":
|
|
209
208
|
case "order--mobile":
|
|
210
209
|
case "order--tablet":
|
|
211
210
|
case "order--laptop":
|
|
212
211
|
case "order--desktop":
|
|
213
|
-
this.updateProperties(t, s, e,
|
|
212
|
+
this.updateProperties(t, s, e, q);
|
|
214
213
|
break;
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
216
|
updateProperties(t, s, e, o) {
|
|
218
|
-
o && (this.checkName(o, e) ||
|
|
219
|
-
`${e} is not an allowed ${o} value for ${this.tagName.toLowerCase()}`
|
|
220
|
-
));
|
|
217
|
+
o && (this.checkName(o, e) || (`${e}${o}${this.tagName.toLowerCase()}`, void 0));
|
|
221
218
|
const l = t.indexOf("--") > -1, b = l ? t.split("--")[0] : t;
|
|
222
219
|
if (!l)
|
|
223
220
|
this.style.setProperty(
|
|
@@ -502,7 +499,7 @@ class y extends HTMLElement {
|
|
|
502
499
|
this.setAttribute("order--desktop", t);
|
|
503
500
|
}
|
|
504
501
|
}
|
|
505
|
-
const
|
|
502
|
+
const y = class y extends v {
|
|
506
503
|
// nativeName: string;
|
|
507
504
|
static get observedAttributes() {
|
|
508
505
|
return [
|
|
@@ -548,14 +545,14 @@ const w = class w extends y {
|
|
|
548
545
|
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
549
546
|
}
|
|
550
547
|
};
|
|
551
|
-
|
|
552
|
-
let k =
|
|
548
|
+
y.accessorExclusions = [];
|
|
549
|
+
let k = y;
|
|
553
550
|
class z extends k {
|
|
554
551
|
connectedCallback() {
|
|
555
552
|
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
556
553
|
}
|
|
557
554
|
}
|
|
558
|
-
const W = ["", "default", "none", "l"],
|
|
555
|
+
const W = ["", "default", "none", "l"], E = [
|
|
559
556
|
"",
|
|
560
557
|
"default",
|
|
561
558
|
"auto",
|
|
@@ -564,21 +561,21 @@ const W = ["", "default", "none", "l"], O = [
|
|
|
564
561
|
"center",
|
|
565
562
|
"baseline",
|
|
566
563
|
"stretch"
|
|
567
|
-
],
|
|
564
|
+
], O = [
|
|
568
565
|
"",
|
|
569
566
|
"default",
|
|
570
567
|
"start",
|
|
571
568
|
"end",
|
|
572
569
|
"center",
|
|
573
570
|
"stretch"
|
|
574
|
-
],
|
|
571
|
+
], I = [
|
|
575
572
|
"",
|
|
576
573
|
"default",
|
|
577
574
|
"start",
|
|
578
575
|
"end",
|
|
579
576
|
"center",
|
|
580
577
|
"stretch"
|
|
581
|
-
],
|
|
578
|
+
], _ = [
|
|
582
579
|
"",
|
|
583
580
|
"1",
|
|
584
581
|
"2",
|
|
@@ -592,7 +589,7 @@ const W = ["", "default", "none", "l"], O = [
|
|
|
592
589
|
"10",
|
|
593
590
|
"11",
|
|
594
591
|
"12"
|
|
595
|
-
],
|
|
592
|
+
], q = [
|
|
596
593
|
"",
|
|
597
594
|
"-1",
|
|
598
595
|
"0",
|
|
@@ -655,10 +652,10 @@ const W = ["", "default", "none", "l"], O = [
|
|
|
655
652
|
"title",
|
|
656
653
|
"title-large",
|
|
657
654
|
"subtitle"
|
|
658
|
-
],
|
|
655
|
+
], P = ["Xs", "S", "M", "L", "Xl"], J = [
|
|
659
656
|
"",
|
|
660
657
|
"default",
|
|
661
|
-
...
|
|
658
|
+
...P.map((i) => i.toLowerCase())
|
|
662
659
|
], K = ["", "default", "left", "center", "right"], Q = [
|
|
663
660
|
"",
|
|
664
661
|
"none",
|
|
@@ -817,7 +814,7 @@ function bt() {
|
|
|
817
814
|
function dt(i, t) {
|
|
818
815
|
return i.includes(t);
|
|
819
816
|
}
|
|
820
|
-
const
|
|
817
|
+
const G = [
|
|
821
818
|
"aria-label",
|
|
822
819
|
"aria-labelledby",
|
|
823
820
|
"aria-describedby",
|
|
@@ -854,7 +851,7 @@ const B = [
|
|
|
854
851
|
];
|
|
855
852
|
function ct(i, t, s = !1) {
|
|
856
853
|
var e;
|
|
857
|
-
if (
|
|
854
|
+
if (G.forEach((o) => {
|
|
858
855
|
i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
|
|
859
856
|
}), s && !i.getAttribute("aria-labelledby")) {
|
|
860
857
|
const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
@@ -991,9 +988,9 @@ export {
|
|
|
991
988
|
ft as AttributeBreakpointHandlerDelegate,
|
|
992
989
|
k as PxElement,
|
|
993
990
|
z as VerticallyExtendedElement,
|
|
994
|
-
|
|
991
|
+
v as WithExtraAttributes,
|
|
995
992
|
R as WrappedInteractiveStateController,
|
|
996
|
-
|
|
993
|
+
G as accessibilityAttributes,
|
|
997
994
|
ht as addGlobalStylesheet,
|
|
998
995
|
pt as assetContainerImgWidthValues,
|
|
999
996
|
st as backgroundColorValues,
|
|
@@ -1005,13 +1002,13 @@ export {
|
|
|
1005
1002
|
ot as boxShadowValues,
|
|
1006
1003
|
dt as checkName,
|
|
1007
1004
|
F as colorValues,
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1005
|
+
O as cssGridAlignSelfValues,
|
|
1006
|
+
_ as cssGridColSpanValues,
|
|
1007
|
+
I as cssGridJustifySelfValues,
|
|
1008
|
+
q as cssGridOrderValues,
|
|
1012
1009
|
H as cssGridPlaceSelfValues,
|
|
1013
1010
|
gt as cssTokenBreakpoints,
|
|
1014
|
-
|
|
1011
|
+
E as flexboxAlignSelfValues,
|
|
1015
1012
|
X as fontsizeValues,
|
|
1016
1013
|
U as fontweightValues,
|
|
1017
1014
|
lt as gapValues,
|
|
@@ -1021,11 +1018,11 @@ export {
|
|
|
1021
1018
|
at as gradientValues,
|
|
1022
1019
|
W as gridGapValues,
|
|
1023
1020
|
rt as headingValues,
|
|
1024
|
-
|
|
1021
|
+
P as iconSizeValues,
|
|
1025
1022
|
J as iconSizeValuesKC,
|
|
1026
|
-
|
|
1023
|
+
$ as isComponentDebug,
|
|
1027
1024
|
ut as isFalsy,
|
|
1028
|
-
|
|
1025
|
+
V as log,
|
|
1029
1026
|
nt as noBorderRadiusValues,
|
|
1030
1027
|
Q as paddingValues,
|
|
1031
1028
|
K as textalignValues,
|