@proximus/lavender-common 1.4.18-alpha.9 → 1.4.18-beta.1
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 +10 -29
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/common.css?inline
|
|
2
2
|
var e = "@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
|
-
|
|
4
|
-
//#region src/common.ts
|
|
3
|
+
// src/common.ts
|
|
5
4
|
function t(e) {
|
|
6
5
|
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
7
6
|
return Object.getOwnPropertyNames(n);
|
|
@@ -48,13 +47,9 @@ var c = class {
|
|
|
48
47
|
}
|
|
49
48
|
setInteractiveState(e) {
|
|
50
49
|
let t = this.#a;
|
|
51
|
-
|
|
52
|
-
t.forEach((e) => e.removeAttribute("interactive-state"));
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
t.forEach((t) => {
|
|
50
|
+
this.#n() ? t.forEach((t) => {
|
|
56
51
|
e ? t.setAttribute("interactive-state", e) : t.removeAttribute("interactive-state");
|
|
57
|
-
});
|
|
52
|
+
}) : t.forEach((e) => e.removeAttribute("interactive-state"));
|
|
58
53
|
}
|
|
59
54
|
get #a() {
|
|
60
55
|
return Array.from(this.#e.querySelectorAll("*")).filter(l);
|
|
@@ -143,11 +138,8 @@ var u = class e extends HTMLElement {
|
|
|
143
138
|
let e = this.parentElement;
|
|
144
139
|
for (; e;) {
|
|
145
140
|
if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
|
|
146
|
-
if (window.getComputedStyle(e).display === "contents")
|
|
147
|
-
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
break;
|
|
141
|
+
if (window.getComputedStyle(e).display === "contents") e = e.parentElement;
|
|
142
|
+
else break;
|
|
151
143
|
}
|
|
152
144
|
return !1;
|
|
153
145
|
}
|
|
@@ -664,21 +656,12 @@ function B(e, t, n = !1) {
|
|
|
664
656
|
}
|
|
665
657
|
}
|
|
666
658
|
function V(e, t, n) {
|
|
667
|
-
|
|
668
|
-
e.removeAttribute(t);
|
|
669
|
-
return;
|
|
670
|
-
}
|
|
671
|
-
e.setAttribute(t, n.toString());
|
|
659
|
+
n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
|
|
672
660
|
}
|
|
673
661
|
function H(e, t, n) {
|
|
674
|
-
|
|
675
|
-
e.removeAttribute(t);
|
|
676
|
-
return;
|
|
677
|
-
}
|
|
678
|
-
e.setAttribute(t, "");
|
|
662
|
+
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
679
663
|
}
|
|
680
|
-
|
|
681
|
-
//#region src/breakpoints.ts
|
|
664
|
+
// src/breakpoints.ts
|
|
682
665
|
function U(e, t, n, r = "", i, a = e) {
|
|
683
666
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
684
667
|
${t(a, o)} {
|
|
@@ -817,8 +800,7 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
|
|
|
817
800
|
subtree: !0
|
|
818
801
|
}), () => r.disconnect();
|
|
819
802
|
}
|
|
820
|
-
|
|
821
|
-
//#region src/template.ts
|
|
803
|
+
// src/template.ts
|
|
822
804
|
var Z = /* @__PURE__ */ new Map(), ae = 500;
|
|
823
805
|
function Q(e) {
|
|
824
806
|
let t = document.createElement("template");
|
|
@@ -835,5 +817,4 @@ function se(e, t) {
|
|
|
835
817
|
let n = typeof t == "string" ? $(t) : t;
|
|
836
818
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
837
819
|
}
|
|
838
|
-
//#endregion
|
|
839
820
|
export { W as AttributeBreakpointHandlerDelegate, d as PxElement, f as VerticallyExtendedElement, u as WithExtraAttributes, c as WrappedInteractiveStateController, z as accessibilityAttributes, F as addGlobalStylesheet, P as assetContainerImgWidthValues, Y as assignCmsEditorSlot, X as assignCmsEditorSlots, D as backgroundColorValues, O as backgroundSizeValues, H as booleanPropertyToAttributeSetter, T as borderColorValues, w as borderRadiusValues, E as borderSideValues, C as borderValues, k as boxShadowValues, R as checkName, b as colorValues, oe as createTemplate, h as cssGridAlignSelfValues, _ as cssGridColSpanValues, g as cssGridJustifySelfValues, v as cssGridOrderValues, y as cssGridPlaceSelfValues, U as cssTokenBreakpoints, m as flexboxAlignSelfValues, ee as fontsizeValues, x as fontweightValues, M as gapValues, n as getSupportedAttributeNames, t as getSupportedPropertyNames, $ as getTemplate, L as getViewportFormat, j as gradientValues, p as gridGapValues, A as headingValues, S as iconSizeValues, te as iconSizeValuesKC, o as isComponentDebug, I as isFalsy, s as log, N as noBorderRadiusValues, ie as observeCmsEditorSlots, re as paddingValues, V as propertyToAttributeSetter, se as renderTemplate, ne as textalignValues, B as transferAccessibilityAttributes };
|