@proximus/lavender 1.0.0-alpha.12 → 1.0.0-alpha.14
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/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +590 -582
- package/dist/lavender.umd.js +1 -1
- package/package.json +4 -3
package/dist/lavender.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const commonStyles = "::slotted(*[grow]){flex-grow:var(--flex-grow-value)}::slotted(*[shrink]){flex-shrink:var(--flex-shrink-value)}::slotted(*[basis]){flex-basis:var(--flex-basis-value)}::slotted(*[align-self]){align-self:var(--flex-align-self-value)}::slotted(*[grow-mobile]){flex-grow:var(--flex-grow-mobile-value)}::slotted(*[shrink-mobile]){flex-shrink:var(--flex-shrink-mobile-value)}::slotted(*[basis-mobile]){flex-basis:var(--flex-basis-mobile-value)}::slotted(*[align-self-mobile]){align-self:var(--flex-align-self-mobile-value)}@media screen and (min-width: 768px){::slotted(*[grow-tablet]){flex-grow:var(--flex-grow-tablet-value)}::slotted(*[shrink-tablet]){flex-shrink:var(--flex-shrink-tablet-value)}::slotted(*[basis-tablet]){flex-basis:var(--flex-basis-tablet-value)}::slotted(*[align-self-tablet]){align-self:var(--flex-align-self-tablet-value)}}@media screen and (min-width: 1025px){::slotted(*[grow-laptop]){flex-grow:var(--flex-grow-laptop-value)}::slotted(*[shrink-laptop]){flex-shrink:var(--flex-shrink-laptop-value)}::slotted(*[basis-laptop]){flex-basis:var(--flex-basis-laptop-value)}::slotted(*[align-self-laptop]){align-self:var(--flex-align-self-laptop-value)}}@media screen and (min-width: 1441px){::slotted(*[grow-desktop]){flex-grow:var(--flex-grow-desktop-value)}::slotted(*[shrink-desktop]){flex-shrink:var(--flex-shrink-desktop-value)}::slotted(*[basis-desktop]){flex-basis:var(--flex-basis-desktop-value)}::slotted(*[align-self-desktop]){align-self:var(--flex-align-self-desktop-value)}}";
|
|
1
|
+
const commonStyles = "::slotted(*[grow]){flex-grow:var(--flex-grow-value)}::slotted(*[shrink]){flex-shrink:var(--flex-shrink-value)}::slotted(*[basis]){flex-basis:var(--flex-basis-value)}::slotted(*[align-self]){align-self:var(--flex-align-self-value)}::slotted(*[grow-mobile]){flex-grow:var(--flex-grow-mobile-value)}::slotted(*[shrink-mobile]){flex-shrink:var(--flex-shrink-mobile-value)}::slotted(*[basis-mobile]){flex-basis:var(--flex-basis-mobile-value)}::slotted(*[align-self-mobile]){align-self:var(--flex-align-self-mobile-value)}@media screen and (min-width: 768px){::slotted(*[grow-tablet]){flex-grow:var(--flex-grow-tablet-value)}::slotted(*[shrink-tablet]){flex-shrink:var(--flex-shrink-tablet-value)}::slotted(*[basis-tablet]){flex-basis:var(--flex-basis-tablet-value)}::slotted(*[align-self-tablet]){align-self:var(--flex-align-self-tablet-value)}}@media screen and (min-width: 1025px){::slotted(*[grow-laptop]){flex-grow:var(--flex-grow-laptop-value)}::slotted(*[shrink-laptop]){flex-shrink:var(--flex-shrink-laptop-value)}::slotted(*[basis-laptop]){flex-basis:var(--flex-basis-laptop-value)}::slotted(*[align-self-laptop]){align-self:var(--flex-align-self-laptop-value)}}@media screen and (min-width: 1441px){::slotted(*[grow-desktop]){flex-grow:var(--flex-grow-desktop-value)}::slotted(*[shrink-desktop]){flex-shrink:var(--flex-shrink-desktop-value)}::slotted(*[basis-desktop]){flex-basis:var(--flex-basis-desktop-value)}::slotted(*[align-self-desktop]){align-self:var(--flex-align-self-desktop-value)}}@media only screen and (min-width: 0px) and (max-width: 767px){::slotted(*[hidden-mobile]){display:none}}@media only screen and (min-width: 768px) and (max-width: 1024px){::slotted(*[hidden-tablet]){display:none}}@media only screen and (min-width: 1025px) and (max-width: 1440px){::slotted(*[hidden-laptop]){display:none}}@media only screen and (min-width: 1441px){::slotted(*[hidden-desktop]){display:none}}";
|
|
2
2
|
function getSupportedAttributeNames(htmlElementName) {
|
|
3
3
|
const $element = document.createElement(htmlElementName);
|
|
4
4
|
const inputPrototype = Object.getPrototypeOf($element);
|
|
@@ -6,14 +6,6 @@ function getSupportedAttributeNames(htmlElementName) {
|
|
|
6
6
|
}
|
|
7
7
|
const commonStyleSheet = new CSSStyleSheet();
|
|
8
8
|
commonStyleSheet.replaceSync(commonStyles);
|
|
9
|
-
function replayAttributes(element, observedAttributes, callback) {
|
|
10
|
-
observedAttributes.forEach((name) => {
|
|
11
|
-
const value = element.getAttribute(name);
|
|
12
|
-
if (value !== null) {
|
|
13
|
-
callback(name, value);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
9
|
class WithFlexAttributes extends HTMLElement {
|
|
18
10
|
static get observedAttributes() {
|
|
19
11
|
return [
|
|
@@ -31,7 +23,11 @@ class WithFlexAttributes extends HTMLElement {
|
|
|
31
23
|
"basis-tablet",
|
|
32
24
|
"basis-laptop",
|
|
33
25
|
"basis-desktop",
|
|
34
|
-
"align-self"
|
|
26
|
+
"align-self",
|
|
27
|
+
"hidden-mobile",
|
|
28
|
+
"hidden-tablet",
|
|
29
|
+
"hidden-laptop",
|
|
30
|
+
"hidden-desktop"
|
|
35
31
|
];
|
|
36
32
|
}
|
|
37
33
|
constructor(...adoptedStylesheets) {
|
|
@@ -172,13 +168,32 @@ class WithFlexAttributes extends HTMLElement {
|
|
|
172
168
|
get $el() {
|
|
173
169
|
return this;
|
|
174
170
|
}
|
|
171
|
+
get hiddenMobile() {
|
|
172
|
+
return this.getAttribute("hidden-mobile");
|
|
173
|
+
}
|
|
174
|
+
set hiddenMobile(value) {
|
|
175
|
+
this.setAttribute("hidden-mobile", value);
|
|
176
|
+
}
|
|
177
|
+
get hiddenTablet() {
|
|
178
|
+
return this.getAttribute("hidden-tablet");
|
|
179
|
+
}
|
|
180
|
+
set hiddenTablet(value) {
|
|
181
|
+
this.setAttribute("hidden-tablet", value);
|
|
182
|
+
}
|
|
183
|
+
get hiddenLaptop() {
|
|
184
|
+
return this.getAttribute("hidden-laptop");
|
|
185
|
+
}
|
|
186
|
+
set hiddenLaptop(value) {
|
|
187
|
+
this.setAttribute("hidden-laptop", value);
|
|
188
|
+
}
|
|
189
|
+
get hiddenDesktop() {
|
|
190
|
+
return this.getAttribute("hidden-desktop");
|
|
191
|
+
}
|
|
192
|
+
set hiddenDesktop(value) {
|
|
193
|
+
this.setAttribute("hidden-desktop", value);
|
|
194
|
+
}
|
|
175
195
|
}
|
|
176
196
|
class PxElement extends WithFlexAttributes {
|
|
177
|
-
constructor(semanticTokensStylesheet, ...adoptedStylesheets) {
|
|
178
|
-
super(semanticTokensStylesheet, ...adoptedStylesheets);
|
|
179
|
-
this.replayAttributes = false;
|
|
180
|
-
this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
|
|
181
|
-
}
|
|
182
197
|
static get observedAttributes() {
|
|
183
198
|
return [
|
|
184
199
|
...super.observedAttributes,
|
|
@@ -186,12 +201,6 @@ class PxElement extends WithFlexAttributes {
|
|
|
186
201
|
];
|
|
187
202
|
}
|
|
188
203
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
189
|
-
if (!this.shadowRoot) {
|
|
190
|
-
console.warn(
|
|
191
|
-
"shadowRoot not available yet, replaying attributes once connected"
|
|
192
|
-
);
|
|
193
|
-
this.replayAttributes = true;
|
|
194
|
-
}
|
|
195
204
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
196
205
|
if (newValue === null) {
|
|
197
206
|
this.$el.toggleAttribute(name);
|
|
@@ -199,18 +208,11 @@ class PxElement extends WithFlexAttributes {
|
|
|
199
208
|
this.$el.setAttribute(name, newValue);
|
|
200
209
|
}
|
|
201
210
|
}
|
|
211
|
+
constructor(...adoptedStylesheets) {
|
|
212
|
+
super(...adoptedStylesheets);
|
|
213
|
+
this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
|
|
214
|
+
}
|
|
202
215
|
connectedCallback() {
|
|
203
|
-
if (this.replayAttributes) {
|
|
204
|
-
replayAttributes(
|
|
205
|
-
this,
|
|
206
|
-
Object.getPrototypeOf(this).constructor.observedAttributes,
|
|
207
|
-
(name, value) => {
|
|
208
|
-
if (this.getAttribute(name) !== null) {
|
|
209
|
-
this.attributeChangedCallback(name, null, value);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
216
|
for (const name of getSupportedAttributeNames(this.nativeName)) {
|
|
215
217
|
if (name === "constructor") {
|
|
216
218
|
continue;
|
|
@@ -248,23 +250,21 @@ const fontsizeValues = [
|
|
|
248
250
|
"6xl",
|
|
249
251
|
"7xl"
|
|
250
252
|
];
|
|
251
|
-
const colorValues$
|
|
253
|
+
const colorValues$1 = [
|
|
252
254
|
"",
|
|
253
255
|
"default",
|
|
254
256
|
"inherit",
|
|
255
257
|
"primary",
|
|
256
|
-
"inverted-primary",
|
|
257
|
-
"inverted",
|
|
258
258
|
"body",
|
|
259
259
|
"details",
|
|
260
260
|
"hover",
|
|
261
261
|
"disabled",
|
|
262
262
|
"active",
|
|
263
263
|
"promo",
|
|
264
|
-
"
|
|
265
|
-
"
|
|
266
|
-
"
|
|
267
|
-
"
|
|
264
|
+
"success",
|
|
265
|
+
"warning",
|
|
266
|
+
"error",
|
|
267
|
+
"unlimited"
|
|
268
268
|
];
|
|
269
269
|
const fontweightValues = [
|
|
270
270
|
"",
|
|
@@ -275,7 +275,7 @@ const fontweightValues = [
|
|
|
275
275
|
"extrabold",
|
|
276
276
|
"light"
|
|
277
277
|
];
|
|
278
|
-
const iconSizeValues = [
|
|
278
|
+
const iconSizeValues$1 = [
|
|
279
279
|
"",
|
|
280
280
|
"default",
|
|
281
281
|
"2xs",
|
|
@@ -288,17 +288,7 @@ const iconSizeValues = [
|
|
|
288
288
|
];
|
|
289
289
|
const paddingValues = ["", "none", "2xs", "xs", "s", "m", "l", "xl"];
|
|
290
290
|
const borderValues = ["", "none", "s", "m", "l"];
|
|
291
|
-
const borderRadiusValues = [
|
|
292
|
-
"",
|
|
293
|
-
"none",
|
|
294
|
-
"xs",
|
|
295
|
-
"s",
|
|
296
|
-
"m",
|
|
297
|
-
"l",
|
|
298
|
-
"xl",
|
|
299
|
-
"2xl",
|
|
300
|
-
"pill"
|
|
301
|
-
];
|
|
291
|
+
const borderRadiusValues = ["", "none", "main", "pill"];
|
|
302
292
|
const bgColorValues = [
|
|
303
293
|
"",
|
|
304
294
|
"none",
|
|
@@ -316,6 +306,7 @@ const bgColorValues = [
|
|
|
316
306
|
"canvas-rich",
|
|
317
307
|
"action-primary",
|
|
318
308
|
"action-secondary",
|
|
309
|
+
"action-hover-bordered",
|
|
319
310
|
"action-hover",
|
|
320
311
|
"action-disabled",
|
|
321
312
|
"action-active",
|
|
@@ -395,12 +386,9 @@ function getViewportFormat() {
|
|
|
395
386
|
return "mobile";
|
|
396
387
|
}
|
|
397
388
|
}
|
|
398
|
-
const semanticStylesheet = ":host>*:first-child{--px-color-bg-action-primary-default: #5C2D91;--px-color-bg-action-primary-inverted: #ffffff;--px-color-bg-action-secondary-default: rgba(92, 45, 145, .16);--px-color-bg-action-secondary-inverted: rgba(255, 255, 255, .24);--px-color-bg-action-hover-inverted-default: rgba(255, 255, 255, .4);--px-color-bg-action-hover-inverted-inverted: rgba(0, 0, 0, .8);--px-color-bg-action-hover-default: rgba(0, 0, 0, .12);--px-color-bg-action-hover-inverted: rgba(255, 255, 255, .16);--px-color-bg-action-disabled-default: rgba(0, 0, 0, .04);--px-color-bg-action-disabled-inverted: rgba(255, 255, 255, .08);--px-color-bg-action-active-default: #8D79AD;--px-color-bg-action-active-inverted: rgba(255, 255, 255, .8);--px-color-border-main-default: rgba(0, 0, 0, .12);--px-color-border-main-inverted: rgba(255, 255, 255, .16);--px-color-border-contrasted-default: rgba(0, 0, 0, .56);--px-color-border-contrasted-inverted: rgba(255, 255, 255, .64);--px-color-border-action-hover-default: #5C2D91;--px-color-border-action-hover-inverted: #ffffff;--px-color-border-action-active-default: #8D79AD;--px-color-border-action-active-inverted: rgba(255, 255, 255, .8);--px-color-border-none-default: rgba(255, 255, 255, 0);--px-color-border-none-inverted: rgba(255, 255, 255, 0);--px-color-border-success-default: #008000;--px-color-border-success-inverted: #26BB26;--px-color-border-error-default: #B30000;--px-color-border-error-inverted: #F22613;--px-color-border-warning-default: #AC5915;--px-color-border-warning-inverted: #DB992F;--px-color-border-unlimited-default: #016BC1;--px-color-border-unlimited-inverted: #7295CF;--px-color-bg-container-none-default: rgba(255, 255, 255, 0);--px-color-bg-container-none-inverted: rgba(0, 0, 0, 0);--px-color-bg-container-weak-default: rgba(0, 0, 0, .08);--px-color-bg-container-weak-inverted: rgba(255, 255, 255, .12);--px-color-bg-container-moderate-default: rgba(0, 0, 0, .04);--px-color-bg-container-moderate-inverted: rgba(255, 255, 255, .08);--px-color-bg-container-strong-default: rgba(0, 0, 0, .08);--px-color-bg-container-strong-inverted: rgba(255, 255, 255, .12);--px-color-bg-container-rich-default: #252525;--px-color-bg-container-rich-inverted: #ffffff;--px-color-bg-container-main-default: #ffffff;--px-color-bg-container-main-inverted: #ffffff;--px-color-bg-gradient-purple-bottom-red: 180deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-bottom-magenta: 180deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-bottom-orange: 180deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-bottom-blue: 180deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-bottom-turquoise: 180deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-bottom-green: 180deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-purple-right-red: 90deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-right-magenta: 90deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-right-orange: 90deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-right-blue: 90deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-right-turquoise: 90deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-right-green: 90deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-purple-top-right-red: 25deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-top-right-magenta: 25deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-top-right-orange: 25deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-top-right-blue: 25deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-top-right-turquoise: 25deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-top-right-green: 25deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-purple-bottom-right-red: 155deg, #5C2D91 66%, #EE2E5D 100%;--px-color-bg-gradient-purple-bottom-right-magenta: 155deg, #5C2D91 66%, #FF418C 100%;--px-color-bg-gradient-purple-bottom-right-orange: 155deg, #5C2D91 66%, #F39200 100%;--px-color-bg-gradient-purple-bottom-right-blue: 155deg, #5C2D91 66%, #00BCEE 100%;--px-color-bg-gradient-purple-bottom-right-turquoise: 155deg, #5C2D91 66%, #66D2CC 100%;--px-color-bg-gradient-purple-bottom-right-green: 155deg, #5C2D91 66%, #81C747 100%;--px-color-bg-gradient-color-bottom-red: 180deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-bottom-magenta: 180deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-bottom-orange: 180deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-bottom-blue: 180deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-bottom-turquoise: 180deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-bottom-green: 180deg, #5C2D91 3%, #81C747 66%;--px-color-bg-gradient-color-right-red: 90deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-right-magenta: 90deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-right-orange: 90deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-right-blue: 90deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-right-turquoise: 90deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-right-green: 90deg, #5C2D91 3%, #81C747 66%;--px-color-bg-gradient-color-top-right-red: 25deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-top-right-magenta: 25deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-top-right-orange: 25deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-top-right-blue: 25deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-top-right-turquoise: 25deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-top-right-green: 25deg, #5C2D91 3%, #81C747 66%;--px-color-bg-gradient-color-bottom-right-red: 155deg, #5C2D91 3%, #EE2E5D 66%;--px-color-bg-gradient-color-bottom-right-magenta: 155deg, #5C2D91 3%, #FF418C 66%;--px-color-bg-gradient-color-bottom-right-orange: 155deg, #5C2D91 3%, #F39200 66%;--px-color-bg-gradient-color-bottom-right-blue: 155deg, #5C2D91 3%, #00BCEE 66%;--px-color-bg-gradient-color-bottom-right-turquoise: 155deg, #5C2D91 3%, #66D2CC 66%;--px-color-bg-gradient-color-bottom-right-green: 155deg, #5C2D91 3%, #81C747 66%;--px-color-bg-notification-default: #DE2A56;--px-color-bg-notification-inverted: #DE2A56;--px-color-bg-promo-default: #DE2A56;--px-color-bg-promo-inverted: #E43C65;--px-color-bg-success-default: #008000;--px-color-bg-success-inverted: #26BB26;--px-color-bg-error-default: #B30000;--px-color-bg-error-inverted: #F22613;--px-color-bg-warning-default: #AC5915;--px-color-bg-warning-inverted: #DB992F;--px-color-bg-unlimited-default: #016BC1;--px-color-bg-unlimited-inverted: #7295CF;--px-color-canvas-weak: #f9f9f9;--px-color-canvas-light: #e4e4e4;--px-color-canvas-soft: #c6c6c6;--px-color-canvas-moderate: #a1a1a1;--px-color-canvas-strong: #727272;--px-color-canvas-deep: #464646;--px-color-canvas-rich: #252525;--px-color-datavis-green: #008000;--px-color-datavis-orange: #F39200;--px-color-datavis-red: #B30000;--px-color-datavis-magenta: #FF418C;--px-color-datavis-blue: #016BC1;--px-color-datavis-turquoise: #66D2CC;--px-color-icon-primary-default: #5C2D91;--px-color-icon-primary-inverted: #ffffff;--px-color-icon-body-default: #252525;--px-color-icon-body-inverted: #ffffff;--px-color-icon-details-default: rgba(0, 0, 0, .56);--px-color-icon-details-inverted: rgba(255, 255, 255, .64);--px-color-icon-hover-default: #8D79AD;--px-color-icon-hover-inverted: rgba(255, 255, 255, .8);--px-color-icon-active-default: #8D79AD;--px-color-icon-active-inverted: rgba(255, 255, 255, .8);--px-color-icon-disabled-default: rgba(0, 0, 0, .12);--px-color-icon-disabled-inverted: rgba(255, 255, 255, .16);--px-color-icon-success-default: #008000;--px-color-icon-success-inverted: #26BB26;--px-color-icon-warning-default: #AC5915;--px-color-icon-warning-inverted: #DB992F;--px-color-icon-error-default: #B30000;--px-color-icon-error-inverted: #F22613;--px-color-icon-unlimited-default: #016BC1;--px-color-icon-unlimited-inverted: #7295CF;--px-color-icon-promo-default: #DE2A56;--px-color-icon-promo-inverted: #FF4371;--px-color-illu-purple-bare: #F4F2F6;--px-color-illu-purple-weak: #E8E5ED;--px-color-illu-purple-light: #CEC8DA;--px-color-illu-purple-soft: #B0A5C5;--px-color-illu-purple-moderate: #8D79AD;--px-color-illu-purple-strong: #472370;--px-color-illu-red-weak: #F9E5E7;--px-color-illu-red-soft: #ECA5AE;--px-color-illu-red-core: #DE2A56;--px-color-illu-magenta-weak: #FFE6ED;--px-color-illu-magenta-soft: #FFA9C2;--px-color-illu-magenta-core: #FF418C;--px-color-illu-orange-weak: #FDEDE4;--px-color-illu-orange-soft: #F8C5A1;--px-color-illu-orange-core: #F39200;--px-color-illu-blue-bare: #F2F9FD;--px-color-illu-blue-weak: #E4F3FC;--px-color-illu-blue-soft: #A1D9F5;--px-color-illu-blue-core: #00BCEE;--px-color-illu-turquoise-weak: #E9F7F6;--px-color-illu-turquoise-soft: #B4E5E2;--px-color-illu-turquoise-moderate: #92DCD7;--px-color-illu-turquoise-core: #66D2CC;--px-color-illu-green-weak: #EBF5E6;--px-color-illu-green-soft: #BEDFAA;--px-color-illu-green-core: #81C747;--px-color-illu-yellow-core: #FFCA00;--px-color-txt-primary-default: #5C2D91;--px-color-txt-primary-inverted: #ffffff;--px-color-txt-inverted-primary-default: #ffffff;--px-color-txt-inverted-primary-inverted: #5C2D91;--px-color-txt-inverted-default: #ffffff;--px-color-txt-inverted-inverted: #252525;--px-color-txt-body-default: #252525;--px-color-txt-body-inverted: #ffffff;--px-color-txt-details-default: rgba(0, 0, 0, .56);--px-color-txt-details-inverted: rgba(255, 255, 255, .64);--px-color-txt-hover-default: #8D79AD;--px-color-txt-hover-inverted: rgba(255, 255, 255, .8);--px-color-txt-disabled-default: rgba(0, 0, 0, .12);--px-color-txt-disabled-inverted: rgba(255, 255, 255, .16);--px-color-txt-active-default: #8D79AD;--px-color-txt-active-inverted: rgba(255, 255, 255, .8);--px-color-txt-promo-default: #DE2A56;--px-color-txt-promo-inverted: #FF4371;--px-color-txt-status-success-default: #008000;--px-color-txt-status-success-inverted: #26BB26;--px-color-txt-status-error-default: #B30000;--px-color-txt-status-error-inverted: #F22613;--px-color-txt-status-warning-default: #AC5915;--px-color-txt-status-warning-inverted: #DB992F;--px-color-txt-status-unlimited-default: #016BC1;--px-color-txt-status-unlimited-inverted: #7295CF;--px-breakpoints-mobile-min: 0px;--px-breakpoints-mobile-max: 767px;--px-breakpoints-tablet-min: 768px;--px-breakpoints-tablet-max: 1024px;--px-breakpoints-laptop-min: 1025px;--px-breakpoints-laptop-max: 1440px;--px-breakpoints-desktop-min: 1441px;--px-breakpoints-desktop-max: 99999px;--px-border-none: 0px;--px-border-s: 1px;--px-border-m: 2px;--px-border-l: 3px;--px-radius-none: 0px;--px-radius-xs: 3px;--px-radius-s: 4px;--px-radius-m: 8px;--px-radius-l: 12px;--px-radius-xl: 16px;--px-radius-2xl: 22px;--px-radius-pill: 9999px;--px-shadow-none: 0px 0px 0px 0px #00000080;--px-shadow-s: 0px 1px 2px 0px rgba(0, 0, 0, .12);--px-shadow-m: 0px 4px 6px -1px rgba(0, 0, 0, .08);--px-shadow-l: 0px 10px 15px -3px rgba(0, 0, 0, .08);--px-shadow-xl: 0px 20px 25px -5px rgba(0, 0, 0, .08);--px-spacing-between-icon-horizontal: 8px;--px-spacing-text-to-icon-compact-horizontal: 4px;--px-spacing-text-to-icon-horizontal: 24px;--px-spacing-component-compact-horizontal: 16px;--px-spacing-component-default-horizontal: 20px;--px-spacing-component-expanded-horizontal: 80px;--px-spacing-between-icon-horizontal-mobile: 8px;--px-spacing-text-to-icon-horizontal-mobile: 16px;--px-spacing-component-compact-horizontal-mobile: 8px;--px-spacing-component-default-horizontal-mobile: 16px;--px-spacing-component-expanded-horizontal-mobile: 32px;--px-padding-none: 0px;--px-padding-2xs: 4px;--px-padding-xs: 8px;--px-padding-s: 16px;--px-padding-m: 24px;--px-padding-l: 32px;--px-padding-xl: 40px;--px-padding-none-mobile: 0px;--px-padding-2xs-mobile: 4px;--px-padding-xs-mobile: 8px;--px-padding-s-mobile: 16px;--px-padding-mobile-mobile: 24px;--px-padding-l-mobile: 24px;--px-padding-xl-mobile: 24px;--px-size-action: 44px;--px-size-input-box: 44px;--px-size-default: 44px;--px-size-action-mobile: 40px;--px-size-input-box-mobile: 40px;--px-size-default-mobile: 40px;--px-spacing-between-options-vertical: 0px;--px-spacing-under-text-vertical: 8px;--px-spacing-display-to-subtitle-vertical: 16px;--px-spacing-under-display-vertical: 24px;--px-spacing-component-default-vertical: 24px;--px-spacing-component-expanded-vertical: 40px;--px-spacing-between-section-vertical: 80px;--px-spacing-between-options-vertical-mobile: 0px;--px-spacing-under-text-vertical-mobile: 8px;--px-spacing-display-to-subtitle-vertical-mobile: 8px;--px-spacing-under-display-vertical-mobile: 16px;--px-spacing-component-default-vertical-mobile: 16px;--px-spacing-component-expanded-vertical-mobile: 16px;--px-spacing-between-section-vertical-mobile: 32px;--px-icon-size-2xs-mobile: 12px;--px-icon-size-2xs-tablet: 12px;--px-icon-size-2xs-desktop: 12px;--px-icon-size-xs-mobile: 16px;--px-icon-size-xs-tablet: 16px;--px-icon-size-xs-desktop: 16px;--px-icon-size-s-mobile: 20px;--px-icon-size-s-tablet: 20px;--px-icon-size-s-desktop: 20px;--px-icon-size-m-mobile: 24px;--px-icon-size-m-tablet: 24px;--px-icon-size-m-desktop: 24px;--px-icon-size-l-mobile: 32px;--px-icon-size-l-tablet: 32px;--px-icon-size-l-desktop: 32px;--px-icon-size-xl-mobile: 40px;--px-icon-size-xl-tablet: 40px;--px-icon-size-xl-desktop: 40px;--px-icon-size-2xl-mobile: 48px;--px-icon-size-2xl-tablet: 48px;--px-icon-size-2xl-desktop: 48px;--px-line-height-xs-mobile: 15px;--px-line-height-xs-tablet: 15px;--px-line-height-xs-desktop: 18px;--px-line-height-s-mobile: 18px;--px-line-height-s-tablet: 18px;--px-line-height-s-desktop: 21px;--px-line-height-base-mobile: 21px;--px-line-height-base-tablet: 21px;--px-line-height-base-desktop: 24px;--px-line-height-m-mobile: 24px;--px-line-height-m-tablet: 24px;--px-line-height-m-desktop: 27px;--px-line-height-l-mobile: 27px;--px-line-height-l-tablet: 27px;--px-line-height-l-desktop: 30px;--px-line-height-xl-mobile: 30px;--px-line-height-xl-tablet: 30px;--px-line-height-xl-desktop: 36px;--px-line-height-2xl-mobile: 36px;--px-line-height-2xl-tablet: 36px;--px-line-height-2xl-desktop: 42px;--px-line-height-3xl-mobile: 42px;--px-line-height-3xl-tablet: 42px;--px-line-height-3xl-desktop: 48px;--px-line-height-4xl-mobile: 48px;--px-line-height-4xl-tablet: 48px;--px-line-height-4xl-desktop: 54px;--px-line-height-5xl-mobile: 54px;--px-line-height-5xl-tablet: 54px;--px-line-height-5xl-desktop: 60px;--px-line-height-6xl-mobile: 60px;--px-line-height-6xl-tablet: 60px;--px-line-height-6xl-desktop: 72px;--px-text-size-xs-mobile: 10px;--px-text-size-xs-tablet: 10px;--px-text-size-xs-desktop: 12px;--px-text-size-s-mobile: 12px;--px-text-size-s-tablet: 12px;--px-text-size-s-desktop: 14px;--px-text-size-base-mobile: 14px;--px-text-size-base-tablet: 14px;--px-text-size-base-desktop: 16px;--px-text-size-m-mobile: 16px;--px-text-size-m-tablet: 16px;--px-text-size-m-desktop: 18px;--px-text-size-l-mobile: 18px;--px-text-size-l-tablet: 18px;--px-text-size-l-desktop: 20px;--px-text-size-xl-mobile: 20px;--px-text-size-xl-tablet: 20px;--px-text-size-xl-desktop: 24px;--px-text-size-2xl-mobile: 24px;--px-text-size-2xl-tablet: 24px;--px-text-size-2xl-desktop: 28px;--px-text-size-3xl-mobile: 28px;--px-text-size-3xl-tablet: 28px;--px-text-size-3xl-desktop: 32px;--px-text-size-4xl-mobile: 32px;--px-text-size-4xl-tablet: 32px;--px-text-size-4xl-desktop: 36px;--px-text-size-5xl-mobile: 36px;--px-text-size-5xl-tablet: 36px;--px-text-size-5xl-desktop: 40px;--px-text-size-6xl-mobile: 40px;--px-text-size-6xl-tablet: 40px;--px-text-size-6xl-desktop: 48px;--px-text-size-7xl-mobile: 48px;--px-text-size-7xl-tablet: 48px;--px-text-size-7xl-desktop: 64px}";
|
|
399
|
-
const proximusSemanticStyleSheet = new CSSStyleSheet();
|
|
400
|
-
proximusSemanticStyleSheet.replaceSync(semanticStylesheet);
|
|
401
|
-
const styles$e = ".flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction-mobile-value);gap:var(--flex-gap-mobile-value);flex-wrap:var(--flex-wrap-mobile-value);justify-content:var(--flex-justify-content-mobile-value);align-items:var(--flex-align-items-mobile-value)}@media screen and (min-width: 768px){.flex-container{flex-direction:var(--flex-direction-tablet-value);gap:var(--flex-gap-tablet-value);flex-wrap:var(--flex-wrap-tablet-value);justify-content:var(--flex-justify-content-tablet-value);align-items:var(--flex-align-items-tablet-value)}}@media screen and (min-width: 1025px){.flex-container{flex-direction:var(--flex-direction-laptop-value);gap:var(--flex-gap-laptop-value);flex-wrap:var(--flex-wrap-laptop-value);justify-content:var(--flex-justify-content-laptop-value);align-items:var(--flex-align-items-laptop-value)}}@media screen and (min-width: 1441px){.flex-container{flex-direction:var(--flex-direction-desktop-value);gap:var(--flex-gap-desktop-value);flex-wrap:var(--flex-wrap-desktop-value);justify-content:var(--flex-justify-content-desktop-value);align-items:var(--flex-align-items-desktop-value)}}";
|
|
389
|
+
const styles$d = ".flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction-mobile-value);gap:var(--flex-gap-mobile-value);flex-wrap:var(--flex-wrap-mobile-value);justify-content:var(--flex-justify-content-mobile-value);align-items:var(--flex-align-items-mobile-value)}@media screen and (min-width: 768px){.flex-container{flex-direction:var(--flex-direction-tablet-value);gap:var(--flex-gap-tablet-value);flex-wrap:var(--flex-wrap-tablet-value);justify-content:var(--flex-justify-content-tablet-value);align-items:var(--flex-align-items-tablet-value)}}@media screen and (min-width: 1025px){.flex-container{flex-direction:var(--flex-direction-laptop-value);gap:var(--flex-gap-laptop-value);flex-wrap:var(--flex-wrap-laptop-value);justify-content:var(--flex-justify-content-laptop-value);align-items:var(--flex-align-items-laptop-value)}}@media screen and (min-width: 1441px){.flex-container{flex-direction:var(--flex-direction-desktop-value);gap:var(--flex-gap-desktop-value);flex-wrap:var(--flex-wrap-desktop-value);justify-content:var(--flex-justify-content-desktop-value);align-items:var(--flex-align-items-desktop-value)}}";
|
|
402
390
|
const styleSheet$d = new CSSStyleSheet();
|
|
403
|
-
styleSheet$d.replaceSync(styles$
|
|
391
|
+
styleSheet$d.replaceSync(styles$d);
|
|
404
392
|
const gapValues = [
|
|
405
393
|
// Vertical
|
|
406
394
|
"between-section-vertical",
|
|
@@ -431,17 +419,14 @@ const gapValues = [
|
|
|
431
419
|
"component-default-horizontal-mobile"
|
|
432
420
|
];
|
|
433
421
|
class Stack extends WithFlexAttributes {
|
|
434
|
-
constructor(
|
|
435
|
-
super(
|
|
422
|
+
constructor() {
|
|
423
|
+
super(styleSheet$d);
|
|
436
424
|
this.template = `<div class="flex-container">
|
|
437
425
|
<slot></slot>
|
|
438
426
|
</div>`;
|
|
439
427
|
this.shadowRoot.innerHTML = this.template;
|
|
440
428
|
}
|
|
441
429
|
connectedCallback() {
|
|
442
|
-
replayAttributes(this, Stack.observedAttributes, (name, value) => {
|
|
443
|
-
this.attributeChangedCallback(name, null, value);
|
|
444
|
-
});
|
|
445
430
|
if (!this.hasAttribute("direction")) {
|
|
446
431
|
this.direction = "row";
|
|
447
432
|
}
|
|
@@ -781,9 +766,12 @@ class Stack extends WithFlexAttributes {
|
|
|
781
766
|
return this.shadowRoot.querySelector(".flex-container");
|
|
782
767
|
}
|
|
783
768
|
}
|
|
769
|
+
if (!customElements.get("px-stack")) {
|
|
770
|
+
customElements.define("px-stack", Stack);
|
|
771
|
+
}
|
|
784
772
|
class VStack extends Stack {
|
|
785
|
-
constructor(
|
|
786
|
-
super(
|
|
773
|
+
constructor() {
|
|
774
|
+
super();
|
|
787
775
|
}
|
|
788
776
|
connectedCallback() {
|
|
789
777
|
super.connectedCallback();
|
|
@@ -794,9 +782,12 @@ class VStack extends Stack {
|
|
|
794
782
|
this.directionDesktop = "column";
|
|
795
783
|
}
|
|
796
784
|
}
|
|
785
|
+
if (!customElements.get("px-vstack")) {
|
|
786
|
+
customElements.define("px-vstack", VStack);
|
|
787
|
+
}
|
|
797
788
|
class HStack extends Stack {
|
|
798
|
-
constructor(
|
|
799
|
-
super(
|
|
789
|
+
constructor() {
|
|
790
|
+
super();
|
|
800
791
|
}
|
|
801
792
|
connectedCallback() {
|
|
802
793
|
super.connectedCallback();
|
|
@@ -807,33 +798,8 @@ class HStack extends Stack {
|
|
|
807
798
|
this.directionDesktop = "row";
|
|
808
799
|
}
|
|
809
800
|
}
|
|
810
|
-
class PxStack extends Stack {
|
|
811
|
-
constructor() {
|
|
812
|
-
super(proximusSemanticStyleSheet);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
if (!customElements.get("px-stack")) {
|
|
816
|
-
customElements.define("px-stack", PxStack);
|
|
817
|
-
}
|
|
818
|
-
if (!customElements.get("px-vstack")) {
|
|
819
|
-
customElements.define(
|
|
820
|
-
"px-vstack",
|
|
821
|
-
class PxVStack extends VStack {
|
|
822
|
-
constructor() {
|
|
823
|
-
super(proximusSemanticStyleSheet);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
);
|
|
827
|
-
}
|
|
828
801
|
if (!customElements.get("px-hstack")) {
|
|
829
|
-
customElements.define(
|
|
830
|
-
"px-hstack",
|
|
831
|
-
class PxHStack extends HStack {
|
|
832
|
-
constructor() {
|
|
833
|
-
super(proximusSemanticStyleSheet);
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
);
|
|
802
|
+
customElements.define("px-hstack", HStack);
|
|
837
803
|
}
|
|
838
804
|
class Spacer extends HTMLElement {
|
|
839
805
|
constructor() {
|
|
@@ -858,9 +824,9 @@ class Spacer extends HTMLElement {
|
|
|
858
824
|
}
|
|
859
825
|
}
|
|
860
826
|
customElements.define("px-spacer", Spacer);
|
|
861
|
-
const styles$
|
|
827
|
+
const styles$c = "slot[name=heading]{display:block;margin-top:1rem;margin-bottom:1rem}";
|
|
862
828
|
const styleSheet$c = new CSSStyleSheet();
|
|
863
|
-
styleSheet$c.replaceSync(styles$
|
|
829
|
+
styleSheet$c.replaceSync(styles$c);
|
|
864
830
|
let Section$1 = class Section extends WithFlexAttributes {
|
|
865
831
|
constructor() {
|
|
866
832
|
super(styleSheet$c);
|
|
@@ -894,12 +860,12 @@ let Section$1 = class Section extends WithFlexAttributes {
|
|
|
894
860
|
}
|
|
895
861
|
};
|
|
896
862
|
customElements.define("px-section-damien", Section$1);
|
|
897
|
-
const styles$
|
|
863
|
+
const styles$b = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}";
|
|
898
864
|
const styleSheet$b = new CSSStyleSheet();
|
|
899
|
-
styleSheet$b.replaceSync(styles$
|
|
865
|
+
styleSheet$b.replaceSync(styles$b);
|
|
900
866
|
class Page extends WithFlexAttributes {
|
|
901
867
|
constructor() {
|
|
902
|
-
super(
|
|
868
|
+
super(styleSheet$b);
|
|
903
869
|
this.template = (stickyContainer) => `
|
|
904
870
|
<px-container borderradius="none" padding="none">
|
|
905
871
|
<px-vstack>
|
|
@@ -971,7 +937,7 @@ class Page extends WithFlexAttributes {
|
|
|
971
937
|
id="contact-container"
|
|
972
938
|
borderradius="none"
|
|
973
939
|
id="main"
|
|
974
|
-
bgcolor="
|
|
940
|
+
bgcolor="weak"
|
|
975
941
|
padding="none"
|
|
976
942
|
paddingtop="xl"
|
|
977
943
|
paddingbottom="xl"
|
|
@@ -1071,13 +1037,16 @@ class Page extends WithFlexAttributes {
|
|
|
1071
1037
|
if (oldValue !== newValue) {
|
|
1072
1038
|
switch (name) {
|
|
1073
1039
|
case "background-image":
|
|
1074
|
-
this.$imageContainer.
|
|
1040
|
+
this.$imageContainer.setAttribute("bgimg-mobile", newValue);
|
|
1075
1041
|
break;
|
|
1076
1042
|
case "gap":
|
|
1077
|
-
this.$bodyVStackContainer.gap
|
|
1043
|
+
this.$bodyVStackContainer.setAttribute("gap", newValue);
|
|
1078
1044
|
break;
|
|
1079
1045
|
case "background-color":
|
|
1080
|
-
this.$bodyContainer.
|
|
1046
|
+
this.$bodyContainer.setAttribute(
|
|
1047
|
+
"bgcolor",
|
|
1048
|
+
bgColorValues.indexOf(newValue) > 0 ? newValue : "none"
|
|
1049
|
+
);
|
|
1081
1050
|
break;
|
|
1082
1051
|
case "padding-vertical":
|
|
1083
1052
|
this.handlePaddingVerticalChange(newValue);
|
|
@@ -1091,8 +1060,8 @@ class Page extends WithFlexAttributes {
|
|
|
1091
1060
|
}
|
|
1092
1061
|
}
|
|
1093
1062
|
handlePaddingVerticalChange(newValue) {
|
|
1094
|
-
this.$headerContainer.
|
|
1095
|
-
this.$footerContainer.
|
|
1063
|
+
this.$headerContainer.setAttribute("paddingtop", newValue);
|
|
1064
|
+
this.$footerContainer.setAttribute("paddingbottom", newValue);
|
|
1096
1065
|
}
|
|
1097
1066
|
handlePaddingHorizontalChange(newValue) {
|
|
1098
1067
|
this.$headerContainer.paddingLeft = newValue;
|
|
@@ -1110,59 +1079,75 @@ class Page extends WithFlexAttributes {
|
|
|
1110
1079
|
if (customElements.get("px-page") === void 0) {
|
|
1111
1080
|
customElements.define("px-page", Page);
|
|
1112
1081
|
}
|
|
1113
|
-
const styles$b = ':host{line-height:1;display:inline-block;vertical-align:middle}i{font-family:PxIcon;color:var(--px-color-icon-primary-default);line-height:1;font-style:unset;font-weight:400;-webkit-user-select:none;user-select:none;font-display:swap}.inherit{color:inherit}.primary{color:var(--px-color-icon-primary-default)}.body{color:var(--px-color-icon-body-default)}.details{color:var(--px-color-icon-details-default)}.hover:hover{color:var(--px-color-icon-hover-default)}.hover:active{color:var(--px-color-icon-active-default)}.disabled{color:var(--px-color-icon-disabled-default)}.success{color:var(--px-color-icon-success-default)}.warning{color:var(--px-color-icon-warning-default)}.error{color:var(--px-color-icon-error-default)}.unlimited{color:var(--px-color-icon-unlimited-default)}.promo{color:var(--px-color-icon-promo-default)}:host([inverted]) i,:host([inverted]) .primary{color:var(--px-color-icon-primary-inverted)}:host([inverted]) .body{color:var(--px-color-icon-body-inverted)}:host([inverted]) .details{color:var(--px-color-icon-details-inverted)}:host([inverted]) .hover:hover{color:var(--px-color-icon-hover-inverted)}:host([inverted]) .hover:active{color:var(--px-color-icon-active-inverted)}:host([inverted]) .disabled{color:var(--px-color-icon-disabled-inverted)}:host([inverted]) .success{color:var(--px-color-icon-success-inverted)}:host([inverted]) .warning{color:var(--px-color-icon-warning-inverted)}:host([inverted]) .error{color:var(--px-color-icon-error-inverted)}:host([inverted]) .unlimited{color:var(--px-color-icon-unlimited-inverted)}:host([inverted]) .promo{color:var(--px-color-icon-promo-inverted)}.size-2xs{font-size:var(--px-icon-size-2xs-mobile)}.size-xs{font-size:var(--px-icon-size-xs-mobile)}.size-s{font-size:var(--px-icon-size-s-mobile)}.size-m{font-size:var(--px-icon-size-m-mobile)}.size-l{font-size:var(--px-icon-size-l-mobile)}.size-xl{font-size:var(--px-icon-size-xl-mobile)}.size-2xl{font-size:var(--px-icon-size-2xl-mobile)}@media only screen and (min-width: 64rem){.size-2xs{font-size:var(--px-icon-size-2xs-tablet)}.size-xs{font-size:var(--px-icon-size-xs-tablet)}.size-s{font-size:var(--px-icon-size-s-tablet)}.size-m{font-size:var(--px-icon-size-m-tablet)}.size-l{font-size:var(--px-icon-size-l-tablet)}.size-xl{font-size:var(--px-icon-size-xl-tablet)}.size-2xl{font-size:var(--px-icon-size-2xl-tablet)}}@media only screen and (min-width: 90rem){.size-2xs{font-size:var(--px-icon-size-2xs-desktop)}.size-xs{font-size:var(--px-icon-size-xs-desktop)}.size-s{font-size:var(--px-icon-size-s-desktop)}.size-m{font-size:var(--px-icon-size-m-desktop)}.size-l{font-size:var(--px-icon-size-l-desktop)}.size-xl{font-size:var(--px-icon-size-xl-desktop)}.size-2xl{font-size:var(--px-icon-size-2xl-desktop)}}i.icon-large:before{vertical-align:-10%;font-size:1.3333333333em}.icon-Accessories:before{content:""}.icon-Account:before{content:""}.icon-Activeren:before{content:""}.icon-Addition:before{content:""}.icon-Administration:before{content:""}.icon-Advantage:before{content:""}.icon-Advantage-pig:before{content:""}.icon-AI:before{content:""}.icon-Airplane:before{content:""}.icon-Alarm:before{content:""}.icon-Answers:before{content:""}.icon-Antenna:before{content:""}.icon-Anywhere:before{content:""}.icon-Applications:before{content:""}.icon-Appointment:before{content:""}.icon-Arrow:before{content:""}.icon-Arrow-circle:before{content:""}.icon-Arrow-direction:before{content:""}.icon-Arrow-direction-horizontal:before{content:""}.icon-Arrow-down:before{content:""}.icon-Arrow-left:before{content:""}.icon-Arrow-navigation:before{content:""}.icon-Arrow-outline:before{content:""}.icon-Arrow-outline-direction:before{content:""}.icon-Arrowbutton:before{content:""}.icon-Arrowbutton-left:before{content:""}.icon-Articles:before{content:""}.icon-Baby:before{content:""}.icon-Back-camera:before{content:""}.icon-Battery:before{content:""}.icon-Belgique-ok:before{content:""}.icon-Best-seller:before{content:""}.icon-Best-seller-14:before{content:""}.icon-Best-seller-2:before{content:""}.icon-Bill:before{content:""}.icon-Bill-member:before{content:""}.icon-Birthday:before{content:""}.icon-Blacklisted:before{content:""}.icon-Blindness:before{content:""}.icon-Bluetooth:before{content:""}.icon-Broken-links:before{content:""}.icon-Bullet:before{content:""}.icon-Caddy:before{content:""}.icon-Calendar:before{content:""}.icon-Calendar-14:before{content:""}.icon-Calendar-7:before{content:""}.icon-Calls:before{content:""}.icon-Callsfromabroad:before{content:""}.icon-Callsfrombelgium:before{content:""}.icon-Calltransfert:before{content:""}.icon-Camera:before{content:""}.icon-Car:before{content:""}.icon-Card:before{content:""}.icon-Care:before{content:""}.icon-Circle:before{content:""}.icon-Circle-Remove:before{content:""}.icon-Close:before{content:""}.icon-Cloud:before{content:""}.icon-Cloud-ICT:before{content:""}.icon-Cloud-IoT:before{content:""}.icon-Cloud-Networks:before{content:""}.icon-Cloud-Security:before{content:""}.icon-Collaboration:before{content:""}.icon-Collapse:before{content:""}.icon-Community:before{content:""}.icon-Community2:before{content:""}.icon-Compare:before{content:""}.icon-Congratulations-box:before{content:""}.icon-Connected-house:before{content:""}.icon-Connection-error:before{content:""}.icon-Connection-manager:before{content:""}.icon-Connectivity:before{content:""}.icon-Contact:before{content:""}.icon-Contactlist:before{content:""}.icon-Contest:before{content:""}.icon-Continuity:before{content:""}.icon-Cookie:before{content:""}.icon-Copy:before{content:""}.icon-Crash:before{content:""}.icon-Customer-Zone:before{content:""}.icon-Dance:before{content:""}.icon-Data:before{content:""}.icon-Deafpeople:before{content:""}.icon-Delivery:before{content:""}.icon-Desktop:before{content:""}.icon-Devices:before{content:""}.icon-Dial:before{content:""}.icon-Digital-media:before{content:""}.icon-Directassist:before{content:""}.icon-Download:before{content:""}.icon-Drag:before{content:""}.icon-E-carte-Facebook:before{content:""}.icon-Easy:before{content:""}.icon-Edit:before{content:""}.icon-Energy:before{content:""}.icon-Entertainment:before{content:""}.icon-Error-box:before{content:""}.icon-Eservices:before{content:""}.icon-Exhibition-screens:before{content:""}.icon-Expand:before{content:""}.icon-Eyedeficiency:before{content:""}.icon-Facebook:before{content:""}.icon-Family:before{content:""}.icon-Favourite:before{content:""}.icon-Favourite-unselected:before{content:""}.icon-Feedback:before{content:""}.icon-Fiber:before{content:""}.icon-Filter:before{content:""}.icon-Fixed-connection:before{content:""}.icon-Fixed-ringing:before{content:""}.icon-Flexibility:before{content:""}.icon-Flexible-delivery:before{content:""}.icon-Football:before{content:""}.icon-Football-11:before{content:""}.icon-Football-11plus:before{content:""}.icon-Forum:before{content:""}.icon-Forward:before{content:""}.icon-Freedelivery:before{content:""}.icon-Freeservices:before{content:""}.icon-Frequently-questions:before{content:""}.icon-Front-camera:before{content:""}.icon-G-Tablet:before{content:""}.icon-Gallery:before{content:""}.icon-Games:before{content:""}.icon-Gift:before{content:""}.icon-Government:before{content:""}.icon-Guitar:before{content:""}.icon-Handicap:before{content:""}.icon-Help:before{content:""}.icon-Home:before{content:""}.icon-Home-added-value:before{content:""}.icon-Hub:before{content:""}.icon-ICT:before{content:""}.icon-Icon-Mood-happy:before{content:""}.icon-Icon-Mood-neutral:before{content:""}.icon-Icon-Mood-unhappy:before{content:""}.icon-Ict-networking:before{content:""}.icon-Idea:before{content:""}.icon-Incomingcalls:before{content:""}.icon-Infinity:before{content:""}.icon-Information:before{content:""}.icon-Information-box:before{content:""}.icon-Infrastructure:before{content:""}.icon-Innovation:before{content:""}.icon-Inscription:before{content:""}.icon-Instagram:before{content:""}.icon-International:before{content:""}.icon-Internet:before{content:""}.icon-Internetlaptop:before{content:""}.icon-Internetmobile:before{content:""}.icon-Internettablet:before{content:""}.icon-Invoice-insight-advanced:before{content:""}.icon-Layer243:before{content:""}.icon-Linkedin:before{content:""}.icon-Links:before{content:""}.icon-Local-data:before{content:""}.icon-Location:before{content:""}.icon-Login1:before{content:""}.icon-Login2:before{content:""}.icon-LoginOpen:before{content:""}.icon-Logout:before{content:""}.icon-Low-stock:before{content:""}.icon-Magnify:before{content:""}.icon-Manual:before{content:""}.icon-Markets:before{content:""}.icon-Meeting:before{content:""}.icon-Mentaldeficiency:before{content:""}.icon-Menu:before{content:""}.icon-Menuburger:before{content:""}.icon-Messaging:before{content:""}.icon-Messenger:before{content:""}.icon-Micro:before{content:""}.icon-MicroSIM-card:before{content:""}.icon-Microsoft-Office:before{content:""}.icon-Minus-fill:before{content:""}.icon-Minutes120:before{content:""}.icon-Minutes15:before{content:""}.icon-Minutes1600:before{content:""}.icon-Minutes240:before{content:""}.icon-Minutes30:before{content:""}.icon-Minutes400:before{content:""}.icon-Minutes60:before{content:""}.icon-Minutes800:before{content:""}.icon-Mobile:before{content:""}.icon-Mobile-Coverage:before{content:""}.icon-Mobility-insurance:before{content:""}.icon-Monitoring:before{content:""}.icon-Mood-joy:before{content:""}.icon-Mood-very-bad:before{content:""}.icon-Move-Sticker:before{content:""}.icon-Move-box:before{content:""}.icon-Moving:before{content:""}.icon-Music:before{content:""}.icon-Myentertainment:before{content:""}.icon-Network:before{content:""}.icon-Newsletter:before{content:""}.icon-Next:before{content:""}.icon-No-playing:before{content:""}.icon-No-stock:before{content:""}.icon-Norton-security:before{content:""}.icon-Not-Available:before{content:""}.icon-Number-1:before{content:""}.icon-Number-10:before{content:""}.icon-Number-2:before{content:""}.icon-Number-3:before{content:""}.icon-Number-4:before{content:""}.icon-Number-5:before{content:""}.icon-Number-6:before{content:""}.icon-Number-7:before{content:""}.icon-Number-8:before{content:""}.icon-Number-9:before{content:""}.icon-OS:before{content:""}.icon-On-app:before{content:""}.icon-On-web:before{content:""}.icon-OneClick:before{content:""}.icon-Online-exclu-en:before{content:""}.icon-Online-exclu-fr:before{content:""}.icon-Online-exclu-nl:before{content:""}.icon-Online-promo-en:before{content:""}.icon-Online-promo-fr:before{content:""}.icon-Online-promo-nl:before{content:""}.icon-Options:before{content:""}.icon-Outcomingcalls:before{content:""}.icon-Overview:before{content:""}.icon-Packs:before{content:""}.icon-Paperclip:before{content:""}.icon-Pedestrian:before{content:""}.icon-Photo:before{content:""}.icon-Picture:before{content:""}.icon-Pin:before{content:""}.icon-Place-map:before{content:""}.icon-Play:before{content:""}.icon-Plus:before{content:""}.icon-Plus-fill:before{content:""}.icon-Points:before{content:""}.icon-Positioning:before{content:""}.icon-Posts:before{content:""}.icon-Presencehome:before{content:""}.icon-Previous:before{content:""}.icon-Prime:before{content:""}.icon-Print:before{content:""}.icon-Processor:before{content:""}.icon-Products:before{content:""}.icon-Promo:before{content:""}.icon-Proximus-TV-app:before{content:""}.icon-Pxs:before{content:""}.icon-Quote:before{content:""}.icon-Raccording-flat:before{content:""}.icon-Ready-to-use:before{content:""}.icon-Recycling:before{content:""}.icon-Reducer:before{content:""}.icon-Refresh:before{content:""}.icon-Relaunch:before{content:""}.icon-Reload:before{content:""}.icon-Remote:before{content:""}.icon-Remove:before{content:""}.icon-Remove-filter:before{content:""}.icon-Restart:before{content:""}.icon-Roaming:before{content:""}.icon-Roaming-Belgium:before{content:""}.icon-Search:before{content:""}.icon-Secure-payment:before{content:""}.icon-Seealso:before{content:""}.icon-Server:before{content:""}.icon-Settings:before{content:""}.icon-Shopmag:before{content:""}.icon-Smarphone-configuration:before{content:""}.icon-Smart-ringing:before{content:""}.icon-Smartphone:before{content:""}.icon-Smartphone-1:before{content:""}.icon-Smartphone-2:before{content:""}.icon-Smartphone-3:before{content:""}.icon-Smartphone-4:before{content:""}.icon-Smartphone-5:before{content:""}.icon-Smartphone-6:before{content:""}.icon-Smartphone4G:before{content:""}.icon-Smiley:before{content:""}.icon-Sms:before{content:""}.icon-Sondage:before{content:""}.icon-Sort-0-9:before{content:""}.icon-Sort-9-0:before{content:""}.icon-Sort-a-z:before{content:""}.icon-Sort-z-a:before{content:""}.icon-Sound-off:before{content:""}.icon-Sound-on:before{content:""}.icon-Speed:before{content:""}.icon-Speedtest-download:before{content:""}.icon-Speedtest-upload:before{content:""}.icon-Status-nok:before{content:""}.icon-Status-ok:before{content:""}.icon-Status-ongoing:before{content:""}.icon-Status-warning:before{content:""}.icon-Stay-informed:before{content:""}.icon-Stayinformed:before{content:""}.icon-Stock:before{content:""}.icon-Stopwatch:before{content:""}.icon-Subscription:before{content:""}.icon-Surfgsm:before{content:""}.icon-Sustainability:before{content:""}.icon-Switchon-switchoff:before{content:""}.icon-TV-replay-36:before{content:""}.icon-TVReplay:before{content:""}.icon-Tablet:before{content:""}.icon-Tailor:before{content:""}.icon-Target-Blank:before{content:""}.icon-Tarifs:before{content:""}.icon-Technical-cast:before{content:""}.icon-Telephony:before{content:""}.icon-Television:before{content:""}.icon-Temp:before{content:""}.icon-Tips1:before{content:""}.icon-Tips2:before{content:""}.icon-Tools:before{content:""}.icon-Top:before{content:""}.icon-Touchscreens:before{content:""}.icon-Tractor:before{content:""}.icon-Train:before{content:""}.icon-Transfer:before{content:""}.icon-Transfer-people:before{content:""}.icon-Trash:before{content:""}.icon-Triangle:before{content:""}.icon-TV-10:before{content:""}.icon-TV-12:before{content:""}.icon-TV-14:before{content:""}.icon-TV-16:before{content:""}.icon-TV-18:before{content:""}.icon-Twitter:before{content:""}.icon-Under-construct:before{content:""}.icon-Upgrade-account:before{content:""}.icon-Upload:before{content:""}.icon-Usage:before{content:""}.icon-Usage2:before{content:""}.icon-Validation-box:before{content:""}.icon-Video:before{content:""}.icon-Video-zap:before{content:""}.icon-Videoscope:before{content:""}.icon-View360:before{content:""}.icon-Waiting:before{content:""}.icon-Warning-box:before{content:""}.icon-Watch:before{content:""}.icon-Watch2:before{content:""}.icon-WhatsApp:before{content:""}.icon-Wireless-hub:before{content:""}.icon-Youtube:before{content:""}.icon-circular-economy:before{content:""}.icon-eco:before{content:""}.icon-happy-weeks:before{content:""}.icon-icon-VOD:before{content:""}.icon-mms:before{content:""}.icon-new-en:before{content:""}.icon-new-fr:before{content:""}.icon-new-nl:before{content:""}.icon-prepaid:before{content:""}.icon-promo:before{content:""}.icon-repair-device:before{content:""}.icon-sales-en:before{content:""}.icon-sales-fr:before{content:""}.icon-sales-nl:before{content:""}.icon-simlocked:before{content:""}.icon-temporary-device:before{content:""}.icon-Test-branding-Account-1:before{content:""}.icon-Test-branding-Car-1:before{content:""}.icon-Test-branding-Sim-1:before{content:""}';
|
|
1114
|
-
const styleSheet$a = new CSSStyleSheet();
|
|
1115
|
-
styleSheet$a.replaceSync(styles$b);
|
|
1116
|
-
const colorValues$1 = ["", "default", "inherit", "primary", "body", "details", "hover", "active", "disabled", "promo", "success", "warning", "error", "unlimited"];
|
|
1117
|
-
const _Icon = class _Icon extends PxElement {
|
|
1082
|
+
class IconSet extends HTMLElement {
|
|
1118
1083
|
constructor() {
|
|
1119
|
-
super(
|
|
1120
|
-
this.template = () => `<i aria-hidden="true"></i>`;
|
|
1121
|
-
this.shadowRoot.innerHTML = this.template();
|
|
1084
|
+
super();
|
|
1122
1085
|
}
|
|
1123
1086
|
static get observedAttributes() {
|
|
1124
|
-
return [
|
|
1125
|
-
}
|
|
1126
|
-
get name() {
|
|
1127
|
-
return this.getAttribute("name");
|
|
1128
|
-
}
|
|
1129
|
-
set name(value) {
|
|
1130
|
-
this.setAttribute("name", value);
|
|
1131
|
-
}
|
|
1132
|
-
get size() {
|
|
1133
|
-
return this.getAttribute("size");
|
|
1134
|
-
}
|
|
1135
|
-
set size(value) {
|
|
1136
|
-
this.setAttribute("size", value);
|
|
1137
|
-
}
|
|
1138
|
-
get color() {
|
|
1139
|
-
return this.getAttribute("color");
|
|
1140
|
-
}
|
|
1141
|
-
set color(value) {
|
|
1142
|
-
this.setAttribute("color", value);
|
|
1087
|
+
return ["name", "src", "type", "format"];
|
|
1143
1088
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1089
|
+
connectedCallback() {
|
|
1090
|
+
const iconSets = document.querySelectorAll(
|
|
1091
|
+
`px-icon-set[name="${this.getAttribute("name")}"]`
|
|
1092
|
+
);
|
|
1093
|
+
if (iconSets.length > 1) {
|
|
1094
|
+
console.warn(
|
|
1095
|
+
"Only one <px-icon-set> component is allowed, self removing"
|
|
1096
|
+
);
|
|
1097
|
+
this.remove();
|
|
1098
|
+
}
|
|
1099
|
+
if (this.getAttribute("type") === "font") {
|
|
1100
|
+
const style = document.createElement("style");
|
|
1101
|
+
style.setAttribute("type", "text/css");
|
|
1102
|
+
style.setAttribute("data-name", this.getAttribute("name"));
|
|
1103
|
+
style.textContent = `
|
|
1104
|
+
@font-face {
|
|
1105
|
+
font-family: 'lavender';
|
|
1106
|
+
src:
|
|
1107
|
+
url('${this.getAttribute("src")}') format(${this.getAttribute("format")}),
|
|
1108
|
+
font-weight: normal;
|
|
1109
|
+
font-style: normal;
|
|
1110
|
+
font-display: block;
|
|
1111
|
+
}
|
|
1112
|
+
`;
|
|
1113
|
+
document.head.appendChild(style);
|
|
1114
|
+
}
|
|
1146
1115
|
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1116
|
+
disconnectedCallback() {
|
|
1117
|
+
const style = document.querySelector(
|
|
1118
|
+
`style[data-name="${this.getAttribute("name")}"]`
|
|
1119
|
+
);
|
|
1120
|
+
if (style) {
|
|
1121
|
+
style.remove();
|
|
1122
|
+
}
|
|
1149
1123
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1124
|
+
}
|
|
1125
|
+
if (!customElements.get("px-icon-set")) {
|
|
1126
|
+
customElements.define("px-icon-set", IconSet);
|
|
1127
|
+
}
|
|
1128
|
+
const iconSizeValues = ["2xs", "xs", "s", "m", "l", "xl", "2xl"];
|
|
1129
|
+
const observedAttributes = [
|
|
1130
|
+
"name",
|
|
1131
|
+
"size",
|
|
1132
|
+
"color",
|
|
1133
|
+
"aria-label",
|
|
1134
|
+
"inverted",
|
|
1135
|
+
"from"
|
|
1136
|
+
];
|
|
1137
|
+
class Icon extends WithFlexAttributes {
|
|
1138
|
+
static get observedAttributes() {
|
|
1139
|
+
return [...super.observedAttributes, ...observedAttributes];
|
|
1152
1140
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1141
|
+
constructor(...styleSheets) {
|
|
1142
|
+
var _a;
|
|
1143
|
+
super(...styleSheets);
|
|
1144
|
+
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
1155
1145
|
}
|
|
1156
1146
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
1157
1147
|
if (oldValue !== newValue) {
|
|
1158
1148
|
switch (attrName) {
|
|
1159
1149
|
case "name":
|
|
1160
|
-
|
|
1161
|
-
this.$el.classList.toggle(`icon-${oldValue}`);
|
|
1162
|
-
}
|
|
1163
|
-
if (newValue !== null && newValue !== "") {
|
|
1164
|
-
this.$el.classList.toggle(`icon-${newValue}`);
|
|
1165
|
-
}
|
|
1150
|
+
this.updateName(oldValue, newValue);
|
|
1166
1151
|
break;
|
|
1167
1152
|
case "size":
|
|
1168
1153
|
this.updateAttribute(attrName, oldValue, newValue, iconSizeValues);
|
|
@@ -1171,23 +1156,27 @@ const _Icon = class _Icon extends PxElement {
|
|
|
1171
1156
|
this.updateAttribute(attrName, oldValue, newValue, colorValues$1);
|
|
1172
1157
|
break;
|
|
1173
1158
|
case "aria-label":
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1176
|
-
|
|
1159
|
+
if (!this.internals) {
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
if (newValue) {
|
|
1163
|
+
this.internals.ariaHidden = "false";
|
|
1164
|
+
} else {
|
|
1165
|
+
this.internals.ariaHidden = "true";
|
|
1177
1166
|
}
|
|
1178
1167
|
break;
|
|
1179
1168
|
}
|
|
1180
1169
|
}
|
|
1181
1170
|
}
|
|
1182
1171
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
1183
|
-
if (oldValue !== null && oldValue !== ""
|
|
1172
|
+
if (oldValue !== null && oldValue !== "") {
|
|
1184
1173
|
if (attrName === "size") {
|
|
1185
1174
|
this.$el.classList.toggle(`${attrName}-${oldValue}`);
|
|
1186
1175
|
} else {
|
|
1187
1176
|
this.$el.classList.toggle(oldValue);
|
|
1188
1177
|
}
|
|
1189
1178
|
}
|
|
1190
|
-
if (newValue !== null && newValue !== ""
|
|
1179
|
+
if (newValue !== null && newValue !== "") {
|
|
1191
1180
|
if (attrName === "size") {
|
|
1192
1181
|
this.$el.classList.toggle(`${attrName}-${newValue}`);
|
|
1193
1182
|
} else {
|
|
@@ -1195,17 +1184,119 @@ const _Icon = class _Icon extends PxElement {
|
|
|
1195
1184
|
}
|
|
1196
1185
|
}
|
|
1197
1186
|
if (!this.checkName(attrValues, newValue)) {
|
|
1198
|
-
console.error(
|
|
1187
|
+
console.error(
|
|
1188
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
1189
|
+
);
|
|
1199
1190
|
}
|
|
1200
1191
|
}
|
|
1201
1192
|
checkName(values, value) {
|
|
1202
1193
|
return values.includes(value);
|
|
1203
1194
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
const containerCss = '.container{font-family:Proximus,Verdana,Helvetica,sans-serif;background-color:var(--px-color-bg-container-main-default);border-radius:var(--px-radius-m);padding:var(--px-padding-m);box-sizing:border-box}:host([inverted]) .container{background-color:var(--px-color-bg-container-main-inverted);color:var(--px-color-txt-body-inverted)}.padding-2xs{padding:var(--px-padding-2xs)}.padding-xs{padding:var(--px-padding-xs)}.padding-s{padding:var(--px-padding-s)}.padding-m{padding:var(--px-padding-m)}.padding-l{padding:var(--px-padding-l)}.padding-xl{padding:var(--px-padding-xl)}.padding-none{padding:var(--px-padding-none)}.paddingblock-2xs{padding-block:var(--px-padding-2xs)}.paddingblock-xs{padding-block:var(--px-padding-xs)}.paddingblock-s{padding-block:var(--px-padding-s)}.paddingblock-m{padding-block:var(--px-padding-m)}.paddingblock-l{padding-block:var(--px-padding-l)}.paddingblock-xl{padding-block:var(--px-padding-xl)}.paddingblock-none{padding-block:var(--px-padding-none)}.paddinginline-2xs{padding-inline:var(--px-padding-2xs)}.paddinginline-xs{padding-inline:var(--px-padding-xs)}.paddinginline-s{padding-inline:var(--px-padding-s)}.paddinginline-m{padding-inline:var(--px-padding-m)}.paddinginline-l{padding-inline:var(--px-padding-l)}.paddinginline-xl{padding-inline:var(--px-padding-xl)}.paddinginline-none{padding-inline:var(--px-padding-none)}.paddingtop-2xs{padding-top:var(--px-padding-2xs)}.paddingtop-xs{padding-top:var(--px-padding-xs)}.paddingtop-s{padding-top:var(--px-padding-s)}.paddingtop-m{padding-top:var(--px-padding-m)}.paddingtop-l{padding-top:var(--px-padding-l)}.paddingtop-xl{padding-top:var(--px-padding-xl)}.paddingtop-none{padding-top:var(--px-padding-none)}.paddingright-2xs{padding-right:var(--px-padding-2xs)}.paddingright-xs{padding-right:var(--px-padding-xs)}.paddingright-s{padding-right:var(--px-padding-s)}.paddingright-m{padding-right:var(--px-padding-m)}.paddingright-l{padding-right:var(--px-padding-l)}.paddingright-xl{padding-right:var(--px-padding-xl)}.paddingright-none{padding-right:var(--px-padding-none)}.paddingbottom-2xs{padding-bottom:var(--px-padding-2xs)}.paddingbottom-xs{padding-bottom:var(--px-padding-xs)}.paddingbottom-s{padding-bottom:var(--px-padding-s)}.paddingbottom-m{padding-bottom:var(--px-padding-m)}.paddingbottom-l{padding-bottom:var(--px-padding-l)}.paddingbottom-xl{padding-bottom:var(--px-padding-xl)}.paddingbottom-none{padding-bottom:var(--px-padding-none)}.paddingleft-2xs{padding-left:var(--px-padding-2xs)}.paddingleft-xs{padding-left:var(--px-padding-xs)}.paddingleft-s{padding-left:var(--px-padding-s)}.paddingleft-m{padding-left:var(--px-padding-m)}.paddingleft-l{padding-left:var(--px-padding-l)}.paddingleft-xl{padding-left:var(--px-padding-xl)}.paddingleft-none{padding-left:var(--px-padding-none)}.border-none{border:none}.border-s{border:var(--px-border-s) solid var(--px-color-border-main-default)}.border-m{border:var(--px-border-m) solid var(--px-color-border-main-default)}.border-l{border:var(--px-border-l) solid var(--px-color-border-main-default)}:host([inverted]) .border{border:var(--px-border-m) solid var(--px-color-border-main-inverted)}.borderradius-xs{border-radius:var(--px-radius-xs)}.borderradius-s{border-radius:var(--px-radius-s)}.borderradius-m{border-radius:var(--px-radius-m)}.borderradius-l{border-radius:var(--px-radius-l)}.borderradius-2xl{border-radius:var(--px-radius-2xl)}.borderradius-pill{border-radius:var(--px-radius-pill)}.noborderradius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.noborderradius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.noborderradius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.noborderradius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.noborderradius-all,.borderradius-none{border-radius:var(--px-radius-none)}.bgcolor-none{background-color:var(--px-color-bg-container-none-default)}.bgcolor-weak{background-color:var(--px-color-bg-container-weak-default)}.bgcolor-moderate{background-color:var(--px-color-bg-container-moderate-default)}.bgcolor-strong{background-color:var(--px-color-bg-container-strong-default)}.bgcolor-rich{background-color:var(--px-color-bg-container-rich-default)}.bgcolor-main{background-color:var(--px-color-bg-container-main-default)}.bgcolor-canvas-weak{background-color:var(--px-color-canvas-weak)}.bgcolor-canvas-light{background-color:var(--px-color-canvas-light)}.bgcolor-canvas-soft{background-color:var(--px-color-canvas-soft)}.bgcolor-canvas-moderate{background-color:var(--px-color-canvas-moderate)}.bgcolor-canvas-strong{background-color:var(--px-color-canvas-strong)}.bgcolor-canvas-deep{background-color:var(--px-color-canvas-deep)}.bgcolor-canvas-rich{background-color:var(--px-color-canvas-rich)}.bgcolor-action-primary{background-color:var(--px-color-bg-action-primary-default)}.bgcolor-action-secondary{background-color:var(--px-color-bg-action-secondary-default)}.bgcolor-action-hover{background-color:var(--px-color-bg-action-hover-default)}.bgcolor-action-disabled{background-color:var(--px-color-bg-action-disabled-default)}.bgcolor-action-active{background-color:var(--px-color-bg-action-active-default)}.bgcolor-notification{background-color:var(--px-color-bg-notification-default)}.bgcolor-promo{background-color:var(--px-color-bg-promo-default)}.bgcolor-success{background-color:var(--px-color-bg-success-default)}.bgcolor-error{background-color:var(--px-color-bg-error-default)}.bgcolor-warning{background-color:var(--px-color-bg-warning-default)}.bgcolor-unlimited{background-color:var(--px-color-bg-unlimited-default)}:host([inverted]) .bgcolor-none{background-color:var(--px-color-bg-container-none-inverted)}:host([inverted]) .bgcolor-weak{background-color:var(--px-color-bg-container-weak-inverted)}:host([inverted]) .bgcolor-moderate{background-color:var(--px-color-bg-container-moderate-inverted)}:host([inverted]) .bgcolor-strong{background-color:var(--px-color-bg-container-strong-inverted)}:host([inverted]) .bgcolor-rich{background-color:var(--px-color-bg-container-rich-inverted)}:host([inverted]) .bgcolor-main{background-color:var(--px-color-bg-container-main-inverted)}:host([inverted]) .bgcolor-action-primary{background-color:var(--px-color-bg-action-primary-inverted)}:host([inverted]) .bgcolor-action-secondary{background-color:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .bgcolor-action-hover{background-color:var(--px-color-bg-action-hover-inverted)}:host([inverted]) .bgcolor-action-disabled{background-color:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .bgcolor-action-active{background-color:var(--px-color-bg-action-active-inverted)}:host([inverted]) .bgcolor-notification{background-color:var(--px-color-bg-notification-inverted)}:host([inverted]) .bgcolor-promo{background-color:var(--px-color-bg-promo-inverted)}:host([inverted]) .bgcolor-success{background-color:var(--px-color-bg-success-inverted)}:host([inverted]) .bgcolor-error{background-color:var(--px-color-bg-error-inverted)}:host([inverted]) .bgcolor-warning{background-color:var(--px-color-bg-warning-inverted)}:host([inverted]) .bgcolor-unlimited{background-color:var(--px-color-bg-unlimited-inverted)}.bgimg{background-repeat:no-repeat}.bgimgsize-cover{background-size:cover;background-position:center center}.bgimgsize-contain{background-size:contain}.shadow-none{box-shadow:var(--px-shadow-none)}.shadow-s{box-shadow:var(--px-shadow-s)}.shadow-m{box-shadow:var(--px-shadow-m)}.shadow-l{box-shadow:var(--px-shadow-l)}.shadow-xl{box-shadow:var(--px-shadow-xl)}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:2}::slotted([slot="anchor-right"]){right:var(--px-padding-m)}::slotted([slot="anchor-left"]){left:var(--px-padding-m)}.padding-none ::slotted([slot="anchor-right"]){right:var(--px-padding-none)}.padding-none ::slotted([slot="anchor-left"]){left:var(--px-padding-none)}.padding-2xs ::slotted([slot="anchor-right"]){right:var(--px-padding-2xs)}.padding-2xs ::slotted([slot="anchor-left"]){left:var(--px-padding-2xs)}.padding-xs ::slotted([slot="anchor-right"]){right:var(--px-padding-xs)}.padding-xs ::slotted([slot="anchor-left"]){left:var(--px-padding-xs)}.padding-s ::slotted([slot="anchor-right"]){right:var(--px-padding-s)}.padding-s ::slotted([slot="anchor-left"]){left:var(--px-padding-s)}.padding-m ::slotted([slot="anchor-right"]){right:var(--px-padding-m)}.padding-m ::slotted([slot="anchor-left"]){left:var(--px-padding-m)}.padding-l ::slotted([slot="anchor-right"]){right:var(--px-padding-l)}.padding-l ::slotted([slot="anchor-left"]){left:var(--px-padding-l)}.padding-xl ::slotted([slot="anchor-right"]){right:var(--px-padding-xl)}.padding-xl ::slotted([slot="anchor-left"]){left:var(--px-padding-xl)}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:1}@media only screen and (max-width: 640px){.padding-l{padding:var(--px-padding-l-mobile)}.padding-xl{padding:var(--px-padding-xl-mobile)}.paddingtop-l{padding-top:var(--px-padding-l-mobile)}.paddingtop-xl{padding-top:var(--px-padding-xl-mobile)}.paddingright-l{padding-right:var(--px-padding-l-mobile)}.paddingright-xl{padding-right:var(--px-padding-xl-mobile)}.paddingbottom-l{padding-bottom:var(--px-padding-l-mobile)}.paddingbottom-xl{padding-bottom:var(--px-padding-xl-mobile)}.paddingleft-l{padding-left:var(--px-padding-l-mobile)}.paddingleft-xl{padding-left:var(--px-padding-xl-mobile)}}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-border-s) * -1);left:calc(var(--px-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-border-m) * -1);left:calc(var(--px-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-border-l) * -1);left:calc(var(--px-border-l) * -1)}';
|
|
1195
|
+
get name() {
|
|
1196
|
+
return this.getAttribute("name");
|
|
1197
|
+
}
|
|
1198
|
+
set name(value) {
|
|
1199
|
+
this.setAttribute("name", value);
|
|
1200
|
+
}
|
|
1201
|
+
get size() {
|
|
1202
|
+
return this.getAttribute("size");
|
|
1203
|
+
}
|
|
1204
|
+
set size(value) {
|
|
1205
|
+
this.setAttribute("size", value);
|
|
1206
|
+
}
|
|
1207
|
+
get color() {
|
|
1208
|
+
return this.getAttribute("color");
|
|
1209
|
+
}
|
|
1210
|
+
set color(value) {
|
|
1211
|
+
this.setAttribute("color", value);
|
|
1212
|
+
}
|
|
1213
|
+
get arialabel() {
|
|
1214
|
+
return this.getAttribute("aria-label");
|
|
1215
|
+
}
|
|
1216
|
+
set arialabel(value) {
|
|
1217
|
+
this.setAttribute("aria-label", value);
|
|
1218
|
+
}
|
|
1219
|
+
get inverted() {
|
|
1220
|
+
return this.getAttribute("inverted");
|
|
1221
|
+
}
|
|
1222
|
+
set inverted(value) {
|
|
1223
|
+
this.setAttribute("inverted", value);
|
|
1224
|
+
}
|
|
1225
|
+
get from() {
|
|
1226
|
+
return this.getAttribute("from");
|
|
1227
|
+
}
|
|
1228
|
+
set from(value) {
|
|
1229
|
+
this.setAttribute("from", value);
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
const styles$a = ":host{line-height:1;display:inline-block;vertical-align:middle}i{font-family:lavender;color:var(--px-color-icon-primary-default);font-size:var(--px-icon-size-m-mobile);line-height:1;font-style:unset;font-weight:400;-webkit-user-select:none;user-select:none;font-display:swap}svg{width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);color:var(--px-color-icon-primary-default)}.inherit{color:inherit}.primary{color:var(--px-color-icon-primary-default)}.body{color:var(--px-color-icon-body-default)}.details{color:var(--px-color-icon-details-default)}.hover:hover{color:var(--px-color-icon-hover-default)}.hover:active{color:var(--px-color-icon-active-default)}.disabled{color:var(--px-color-icon-disabled-default)}.success{color:var(--px-color-icon-success-default)}.warning{color:var(--px-color-icon-warning-default)}.error{color:var(--px-color-icon-error-default)}.unlimited{color:var(--px-color-icon-unlimited-default)}.promo{color:var(--px-color-icon-promo-default)}:host([inverted]) i{color:var(--px-color-icon-primary-inverted)}:host([inverted]) svg{color:var(--px-color-icon-primary-inverted)}:host([inverted]) .primary{color:var(--px-color-icon-primary-inverted)}:host([inverted]) .body{color:var(--px-color-icon-body-inverted)}:host([inverted]) .details{color:var(--px-color-icon-details-inverted)}:host([inverted]) .hover:hover{color:var(--px-color-icon-hover-inverted)}:host([inverted]) .hover:active{color:var(--px-color-icon-active-inverted)}:host([inverted]) .disabled{color:var(--px-color-icon-disabled-inverted)}:host([inverted]) .success{color:var(--px-color-icon-success-inverted)}:host([inverted]) .warning{color:var(--px-color-icon-warning-inverted)}:host([inverted]) .error{color:var(--px-color-icon-error-inverted)}:host([inverted]) .unlimited{color:var(--px-color-icon-unlimited-inverted)}:host([inverted]) .promo{color:var(--px-color-icon-promo-inverted)}.size-2xs{width:var(--px-icon-size-2xs-mobile);height:var(--px-icon-size-2xs-mobile);font-size:var(--px-icon-size-2xs-mobile)}.size-xs{width:var(--px-icon-size-xs-mobile);height:var(--px-icon-size-xs-mobile);font-size:var(--px-icon-size-xs-mobile)}.size-s{width:var(--px-icon-size-s-mobile);height:var(--px-icon-size-s-mobile);font-size:var(--px-icon-size-s-mobile)}.size-m{width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);font-size:var(--px-icon-size-m-mobile)}.size-l{width:var(--px-icon-size-l-mobile);height:var(--px-icon-size-l-mobile);font-size:var(--px-icon-size-l-mobile)}.size-xl{width:var(--px-icon-size-xl-mobile);height:var(--px-icon-size-xl-mobile);font-size:var(--px-icon-size-xl-mobile)}.size-2xl{width:var(--px-icon-size-2xl-mobile);height:var(--px-icon-size-2xl-mobile);font-size:var(--px-icon-size-2xl-mobile)}@media only screen and (min-width: 64rem){.size-2xs{width:var(--px-icon-size-2xs-tablet);height:var(--px-icon-size-2xs-tablet);font-size:var(--px-icon-size-2xs-tablet)}.size-xs{width:var(--px-icon-size-xs-tablet);height:var(--px-icon-size-xs-tablet);font-size:var(--px-icon-size-xs-tablet)}.size-s{width:var(--px-icon-size-s-tablet);height:var(--px-icon-size-s-tablet);font-size:var(--px-icon-size-s-tablet)}.size-m{width:var(--px-icon-size-m-tablet);height:var(--px-icon-size-m-tablet);font-size:var(--px-icon-size-m-tablet)}.size-l{width:var(--px-icon-size-l-tablet);height:var(--px-icon-size-l-tablet);font-size:var(--px-icon-size-l-tablet)}.size-xl{width:var(--px-icon-size-xl-tablet);height:var(--px-icon-size-xl-tablet);font-size:var(--px-icon-size-xl-tablet)}.size-2xl{width:var(--px-icon-size-2xl-tablet);height:var(--px-icon-size-2xl-tablet);font-size:var(--px-icon-size-2xl-tablet)}}@media only screen and (min-width: 90rem){.size-2xs{width:var(--px-icon-size-2xs-desktop);height:var(--px-icon-size-2xs-desktop);font-size:var(--px-icon-size-2xs-desktop)}.size-xs{width:var(--px-icon-size-xs-desktop);height:var(--px-icon-size-xs-desktop);font-size:var(--px-icon-size-xs-desktop)}.size-s{width:var(--px-icon-size-s-desktop);height:var(--px-icon-size-s-desktop);font-size:var(--px-icon-size-s-desktop)}.size-m{width:var(--px-icon-size-m-desktop);height:var(--px-icon-size-m-desktop);font-size:var(--px-icon-size-m-desktop)}.size-l{width:var(--px-icon-size-l-desktop);height:var(--px-icon-size-l-desktop);font-size:var(--px-icon-size-l-desktop)}.size-xl{width:var(--px-icon-size-xl-desktop);height:var(--px-icon-size-xl-desktop);font-size:var(--px-icon-size-xl-desktop)}.size-2xl{width:var(--px-icon-size-2xl-desktop);height:var(--px-icon-size-2xl-desktop);font-size:var(--px-icon-size-2xl-desktop)}}i.icon-large:before{vertical-align:-10%;font-size:1.3333333333em}";
|
|
1233
|
+
const styleSheet$a = new CSSStyleSheet();
|
|
1234
|
+
styleSheet$a.replaceSync(styles$a);
|
|
1235
|
+
class SVGIcon extends Icon {
|
|
1236
|
+
constructor() {
|
|
1237
|
+
super(styleSheet$a);
|
|
1238
|
+
this.template = () => `<svg>
|
|
1239
|
+
<use xlink:href="#icon-${this.name}"></use>
|
|
1240
|
+
</svg>`;
|
|
1241
|
+
this.shadowRoot.innerHTML = this.template();
|
|
1242
|
+
}
|
|
1243
|
+
connectedCallback() {
|
|
1244
|
+
const iconSet = document.querySelectorAll("px-icon-set");
|
|
1245
|
+
if (!iconSet) {
|
|
1246
|
+
console.log("<px-icon-set> component not found");
|
|
1247
|
+
}
|
|
1248
|
+
for (const icon of iconSet) {
|
|
1249
|
+
if (!icon.getAttribute("name") || !icon.getAttribute("src")) {
|
|
1250
|
+
console.error("Icon name or src not found");
|
|
1251
|
+
continue;
|
|
1252
|
+
}
|
|
1253
|
+
if (icon.getAttribute("name") === this.from && icon.getAttribute("type") !== "font") {
|
|
1254
|
+
this.src = icon.getAttribute("src");
|
|
1255
|
+
this.$el.firstElementChild.setAttribute(
|
|
1256
|
+
"xlink:href",
|
|
1257
|
+
`${this.src}#icon-${this.name}`
|
|
1258
|
+
);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
updateName(oldValue, newValue) {
|
|
1263
|
+
if (this.src) {
|
|
1264
|
+
this.$el.firstElementChild.setAttribute(
|
|
1265
|
+
"xlink:href",
|
|
1266
|
+
`${this.src}#icon-${newValue}`
|
|
1267
|
+
);
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
get $el() {
|
|
1271
|
+
return this.shadowRoot.querySelector("svg");
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
if (!customElements.get("px-icon")) {
|
|
1275
|
+
customElements.define("px-icon", SVGIcon);
|
|
1276
|
+
}
|
|
1277
|
+
const iconFontStyles = '.lavender-3g_tablet:before{content:""}.lavender-accessories:before{content:""}.lavender-account:before{content:""}.lavender-activate:before{content:""}.lavender-ai:before{content:""}.lavender-air_plane:before{content:""}.lavender-alarm:before{content:""}.lavender-answers:before{content:""}.lavender-antenna:before{content:""}.lavender-applications:before{content:""}.lavender-arrow_down:before{content:""}.lavender-arrow_left:before{content:""}.lavender-arrow_right:before{content:""}.lavender-arrow_up:before{content:""}.lavender-back_camera:before{content:""}.lavender-bbox_off:before{content:""}.lavender-batterie:before{content:""}.lavender-best_seller:before{content:""}.lavender-bell_circle:before{content:""}.lavender-best_seller_2:before{content:""}.lavender-best_seller_14:before{content:""}.lavender-bbox_on:before{content:""}.lavender-beta_02:before{content:""}.lavender-beta:before{content:""}.lavender-belgique_ok:before{content:""}.lavender-bicycle:before{content:""}.lavender-bill:before{content:""}.lavender-bill_member:before{content:""}.lavender-birthday_cake:before{content:""}.lavender-blindness:before{content:""}.lavender-bookmark:before{content:""}.lavender-broken_links:before{content:""}.lavender-burger_menu:before{content:""}.lavender-bus:before{content:""}.lavender-bug:before{content:""}.lavender-budget_manager:before{content:""}.lavender-cable:before{content:""}.lavender-caddy:before{content:""}.lavender-cadenas_cloud:before{content:""}.lavender-calendar:before{content:""}.lavender-call_from_abroad:before{content:""}.lavender-call_transfert:before{content:""}.lavender-calls:before{content:""}.lavender-camera:before{content:""}.lavender-calls_1:before{content:""}.lavender-calls_from_belgium:before{content:""}.lavender-car:before{content:""}.lavender-car_crash:before{content:""}.lavender-card:before{content:""}.lavender-care:before{content:""}.lavender-cash_back:before{content:""}.lavender-checkmark:before{content:""}.lavender-checkmark_branding:before{content:""}.lavender-chevron_down:before{content:""}.lavender-chevron_up:before{content:""}.lavender-circular_economy:before{content:""}.lavender-clock:before{content:""}.lavender-cloud:before{content:""}.lavender-cloud_ict:before{content:""}.lavender-cloud_iot_1:before{content:""}.lavender-cloud_iot_2:before{content:""}.lavender-chevron_right:before{content:""}.lavender-cloud_security:before{content:""}.lavender-cloud_network:before{content:""}.lavender-chevron_left:before{content:""}.lavender-collaboration:before{content:""}.lavender-congratulation_box:before{content:""}.lavender-connection_error:before{content:""}.lavender-community:before{content:""}.lavender-connected_devices:before{content:""}.lavender-contact:before{content:""}.lavender-crash:before{content:""}.lavender-copy_paste:before{content:""}.lavender-cookie:before{content:""}.lavender-contest:before{content:""}.lavender-cross:before{content:""}.lavender-cross_circle:before{content:""}.lavender-connectivity:before{content:""}.lavender-current_location:before{content:""}.lavender-connection_manager:before{content:""}.lavender-daily_comute:before{content:""}.lavender-daily_rooming:before{content:""}.lavender-data:before{content:""}.lavender-dance:before{content:""}.lavender-dashboard:before{content:""}.lavender-desktop:before{content:""}.lavender-delivery:before{content:""}.lavender-data_center:before{content:""}.lavender-easy:before{content:""}.lavender-download:before{content:""}.lavender-easy_1:before{content:""}.lavender-daily_rooming_02:before{content:""}.lavender-direct_assist:before{content:""}.lavender-edit:before{content:""}.lavender-electricity:before{content:""}.lavender-energy:before{content:""}.lavender-entertainmant_full:before{content:""}.lavender-entertainment:before{content:""}.lavender-exclamation_mark:before{content:""}.lavender-eco:before{content:""}.lavender-exclamation_filled:before{content:""}.lavender-exhibition_screen:before{content:""}.lavender-export:before{content:""}.lavender-eye:before{content:""}.lavender-eye_close:before{content:""}.lavender-family:before{content:""}.lavender-faq:before{content:""}.lavender-favorite:before{content:""}.lavender-favorite_unselected:before{content:""}.lavender-feedback:before{content:""}.lavender-filter:before{content:""}.lavender-fixed_connection:before{content:""}.lavender-fiber:before{content:""}.lavender-fire_wood:before{content:""}.lavender-flexibility04:before{content:""}.lavender-flexibility05:before{content:""}.lavender-flexibility03:before{content:""}.lavender-flexibility02:before{content:""}.lavender-flexible_delivery:before{content:""}.lavender-flexibility01:before{content:""}.lavender-fixed_phone:before{content:""}.lavender-football:before{content:""}.lavender-forum:before{content:""}.lavender-free_delivery:before{content:""}.lavender-free_service:before{content:""}.lavender-frequently_questions:before{content:""}.lavender-fuel:before{content:""}.lavender-front_camera:before{content:""}.lavender-galerry_02:before{content:""}.lavender-galerry:before{content:""}.lavender-games:before{content:""}.lavender-gaz:before{content:""}.lavender-gift:before{content:""}.lavender-government:before{content:""}.lavender-gps:before{content:""}.lavender-handicap:before{content:""}.lavender-handle:before{content:""}.lavender-heat_pump:before{content:""}.lavender-guitar:before{content:""}.lavender-home:before{content:""}.lavender-home_added_value:before{content:""}.lavender-hub:before{content:""}.lavender-home_wifi:before{content:""}.lavender-icon_advantage_pig:before{content:""}.lavender-ict:before{content:""}.lavender-ict_networking:before{content:""}.lavender-incoming_calls:before{content:""}.lavender-infinity:before{content:""}.lavender-information_box:before{content:""}.lavender-internet_mobile:before{content:""}.lavender-information:before{content:""}.lavender-internet_laptop:before{content:""}.lavender-internet_tablet:before{content:""}.lavender-invoice_insight_adv:before{content:""}.lavender-international:before{content:""}.lavender-layers:before{content:""}.lavender-internet:before{content:""}.lavender-licence_plate_managment:before{content:""}.lavender-inscription:before{content:""}.lavender-licence_plate_managment02:before{content:""}.lavender-innovation:before{content:""}.lavender-light_bulb:before{content:""}.lavender-links:before{content:""}.lavender-location:before{content:""}.lavender-login:before{content:""}.lavender-login_open:before{content:""}.lavender-logout:before{content:""}.lavender-magnify:before{content:""}.lavender-map:before{content:""}.lavender-markets:before{content:""}.lavender-metro:before{content:""}.lavender-microphone:before{content:""}.lavender-micro:before{content:""}.lavender-mental_deficiency:before{content:""}.lavender-minus_circle:before{content:""}.lavender-minus:before{content:""}.lavender-minutes_1600_01:before{content:""}.lavender-micro_sim_card:before{content:""}.lavender-messaging:before{content:""}.lavender-mobile:before{content:""}.lavender-minutes_1600_02:before{content:""}.lavender-mobile_coverage:before{content:""}.lavender-mobile_1:before{content:""}.lavender-mobile_touches:before{content:""}.lavender-mobility_insurance:before{content:""}.lavender-monitoring:before{content:""}.lavender-mood_happy:before{content:""}.lavender-mood_joy:before{content:""}.lavender-mood_neutral:before{content:""}.lavender-mood_unhappy:before{content:""}.lavender-move_sticker:before{content:""}.lavender-no_wifi:before{content:""}.lavender-no_playing:before{content:""}.lavender-number2:before{content:""}.lavender-number3:before{content:""}.lavender-number1:before{content:""}.lavender-norton_security_1:before{content:""}.lavender-mood_very_bad:before{content:""}.lavender-music:before{content:""}.lavender-norton_security:before{content:""}.lavender-natural_gas:before{content:""}.lavender-number4:before{content:""}.lavender-number5:before{content:""}.lavender-number6:before{content:""}.lavender-number7:before{content:""}.lavender-number8:before{content:""}.lavender-number9:before{content:""}.lavender-number10:before{content:""}.lavender-on_app:before{content:""}.lavender-on_off_switch:before{content:""}.lavender-on_web:before{content:""}.lavender-one_click:before{content:""}.lavender-outcoming_call:before{content:""}.lavender-options:before{content:""}.lavender-overview:before{content:""}.lavender-pack:before{content:""}.lavender-pack_off:before{content:""}.lavender-paperclip:before{content:""}.lavender-parking:before{content:""}.lavender-picture:before{content:""}.lavender-pin:before{content:""}.lavender-places:before{content:""}.lavender-play:before{content:""}.lavender-plus:before{content:""}.lavender-plus_circle:before{content:""}.lavender-positioning:before{content:""}.lavender-power:before{content:""}.lavender-presence_home:before{content:""}.lavender-prime:before{content:""}.lavender-print:before{content:""}.lavender-processor:before{content:""}.lavender-products:before{content:""}.lavender-qr_code:before{content:""}.lavender-qr:before{content:""}.lavender-reducer:before{content:""}.lavender-refresh:before{content:""}.lavender-reload:before{content:""}.lavender-relaunch:before{content:""}.lavender-recycling:before{content:""}.lavender-remote:before{content:""}.lavender-repair_device:before{content:""}.lavender-raccording_flat:before{content:""}.lavender-ready_to_use:before{content:""}.lavender-question_mark:before{content:""}.lavender-replay36:before{content:""}.lavender-requests_appointments_and_order:before{content:""}.lavender-reset:before{content:""}.lavender-roaming_belgium:before{content:""}.lavender-roadwork:before{content:""}.lavender-roaming:before{content:""}.lavender-settings:before{content:""}.lavender-serveur:before{content:""}.lavender-settings_full:before{content:""}.lavender-restaurant:before{content:""}.lavender-shopmag:before{content:""}.lavender-secure_paiement:before{content:""}.lavender-sim_card:before{content:""}.lavender-share:before{content:""}.lavender-search:before{content:""}.lavender-smartphone1:before{content:""}.lavender-smartphone2:before{content:""}.lavender-smartphone3:before{content:""}.lavender-smartphone4:before{content:""}.lavender-smartphone4g:before{content:""}.lavender-smartphone5:before{content:""}.lavender-smartphone6:before{content:""}.lavender-solar_panel:before{content:""}.lavender-solar_pump:before{content:""}.lavender-sondage:before{content:""}.lavender-sound_alert:before{content:""}.lavender-sound_on:before{content:""}.lavender-sound_off:before{content:""}.lavender-stop_watch:before{content:""}.lavender-speedtest_dl:before{content:""}.lavender-speed:before{content:""}.lavender-surf_gsm:before{content:""}.lavender-sustainability:before{content:""}.lavender-speedtest_ul:before{content:""}.lavender-switch:before{content:""}.lavender-succes:before{content:""}.lavender-subscription_1:before{content:""}.lavender-tablet:before{content:""}.lavender-tailor:before{content:""}.lavender-subscription:before{content:""}.lavender-target_blank:before{content:""}.lavender-threedots_horizontal02:before{content:""}.lavender-terms_and_conditions:before{content:""}.lavender-tractor:before{content:""}.lavender-toucscreens:before{content:""}.lavender-threedots_vertical02:before{content:""}.lavender-train:before{content:""}.lavender-traffic_jam:before{content:""}.lavender-tram:before{content:""}.lavender-trash:before{content:""}.lavender-tv:before{content:""}.lavender-under_construction:before{content:""}.lavender-upload:before{content:""}.lavender-usage:before{content:""}.lavender-view360_02:before{content:""}.lavender-view360:before{content:""}.lavender-view360_01:before{content:""}.lavender-videoscope:before{content:""}.lavender-wifi_warning:before{content:""}.lavender-wireless_hub:before{content:""}.lavender-wrench:before{content:""}.lavender-wifi_ok:before{content:""}.lavender-water:before{content:""}.lavender-walking:before{content:""}.lavender-watch:before{content:""}.lavender-voucher:before{content:""}';
|
|
1278
|
+
const iconFontStyleSheet = new CSSStyleSheet();
|
|
1279
|
+
const styleSheet$9 = new CSSStyleSheet();
|
|
1280
|
+
iconFontStyleSheet.replaceSync(iconFontStyles);
|
|
1281
|
+
styleSheet$9.replaceSync(styles$a);
|
|
1282
|
+
class FontIcon extends Icon {
|
|
1283
|
+
constructor() {
|
|
1284
|
+
super(iconFontStyleSheet, styleSheet$9);
|
|
1285
|
+
this.template = () => `<i></i>`;
|
|
1286
|
+
this.shadowRoot.innerHTML = this.template();
|
|
1287
|
+
}
|
|
1288
|
+
updateName(oldValue, newValue) {
|
|
1289
|
+
this.$el.classList.remove(`lavender-${oldValue}`);
|
|
1290
|
+
if (newValue) {
|
|
1291
|
+
this.$el.classList.add(`lavender-${newValue}`);
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
get $el() {
|
|
1295
|
+
return this.shadowRoot.querySelector("i");
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
customElements.define("px-icon-f", FontIcon);
|
|
1299
|
+
const containerCss = '.container{font-family:var(--px-font-family);background-color:var(--px-color-bg-container-rich-inverted);border-radius:var(--px-radius-main);padding:var(--px-padding-m);box-sizing:border-box}:host([inverted]) .container{background-color:var(--px-color-bg-container-rich-default);color:var(--px-color-txt-body-inverted)}.padding-2xs{padding:var(--px-padding-2xs)}.padding-xs{padding:var(--px-padding-xs)}.padding-s{padding:var(--px-padding-s)}.padding-m{padding:var(--px-padding-m)}.padding-l{padding:var(--px-padding-l)}.padding-xl{padding:var(--px-padding-xl)}.padding-none{padding:var(--px-padding-none)}.paddingblock-2xs{padding-block:var(--px-padding-2xs)}.paddingblock-xs{padding-block:var(--px-padding-xs)}.paddingblock-s{padding-block:var(--px-padding-s)}.paddingblock-m{padding-block:var(--px-padding-m)}.paddingblock-l{padding-block:var(--px-padding-l)}.paddingblock-xl{padding-block:var(--px-padding-xl)}.paddingblock-none{padding-block:var(--px-padding-none)}.paddinginline-2xs{padding-inline:var(--px-padding-2xs)}.paddinginline-xs{padding-inline:var(--px-padding-xs)}.paddinginline-s{padding-inline:var(--px-padding-s)}.paddinginline-m{padding-inline:var(--px-padding-m)}.paddinginline-l{padding-inline:var(--px-padding-l)}.paddinginline-xl{padding-inline:var(--px-padding-xl)}.paddinginline-none{padding-inline:var(--px-padding-none)}.paddingtop-2xs{padding-top:var(--px-padding-2xs)}.paddingtop-xs{padding-top:var(--px-padding-xs)}.paddingtop-s{padding-top:var(--px-padding-s)}.paddingtop-m{padding-top:var(--px-padding-m)}.paddingtop-l{padding-top:var(--px-padding-l)}.paddingtop-xl{padding-top:var(--px-padding-xl)}.paddingtop-none{padding-top:var(--px-padding-none)}.paddingright-2xs{padding-right:var(--px-padding-2xs)}.paddingright-xs{padding-right:var(--px-padding-xs)}.paddingright-s{padding-right:var(--px-padding-s)}.paddingright-m{padding-right:var(--px-padding-m)}.paddingright-l{padding-right:var(--px-padding-l)}.paddingright-xl{padding-right:var(--px-padding-xl)}.paddingright-none{padding-right:var(--px-padding-none)}.paddingbottom-2xs{padding-bottom:var(--px-padding-2xs)}.paddingbottom-xs{padding-bottom:var(--px-padding-xs)}.paddingbottom-s{padding-bottom:var(--px-padding-s)}.paddingbottom-m{padding-bottom:var(--px-padding-m)}.paddingbottom-l{padding-bottom:var(--px-padding-l)}.paddingbottom-xl{padding-bottom:var(--px-padding-xl)}.paddingbottom-none{padding-bottom:var(--px-padding-none)}.paddingleft-2xs{padding-left:var(--px-padding-2xs)}.paddingleft-xs{padding-left:var(--px-padding-xs)}.paddingleft-s{padding-left:var(--px-padding-s)}.paddingleft-m{padding-left:var(--px-padding-m)}.paddingleft-l{padding-left:var(--px-padding-l)}.paddingleft-xl{padding-left:var(--px-padding-xl)}.paddingleft-none{padding-left:var(--px-padding-none)}.border-none{border:none}.border-s{border:var(--px-border-s) solid var(--px-color-border-main-default)}.border-m{border:var(--px-border-m) solid var(--px-color-border-main-default)}.border-l{border:var(--px-border-l) solid var(--px-color-border-main-default)}:host([inverted]) .border{border:var(--px-border-m) solid var(--px-color-border-main-inverted)}.borderradius-main{border-radius:var(--px-radius-main)}.borderradius-pill{border-radius:var(--px-radius-pill)}.noborderradius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.noborderradius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.noborderradius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.noborderradius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.noborderradius-all,.borderradius-none{border-radius:var(--px-radius-none)}.bgcolor-none{background-color:var(--px-color-bg-container-none-default)}.bgcolor-weak{background-color:var(--px-color-bg-container-weak-default)}.bgcolor-moderate{background-color:var(--px-color-bg-container-moderate-default)}.bgcolor-strong{background-color:var(--px-color-bg-container-strong-default)}.bgcolor-rich{background-color:var(--px-color-bg-container-rich-default)}.bgcolor-main{background-color:var(--px-color-bg-container-weak-default)}.bgcolor-canvas-weak{background-color:var(--px-color-canvas-weak)}.bgcolor-canvas-light{background-color:var(--px-color-canvas-light)}.bgcolor-canvas-soft{background-color:var(--px-color-canvas-soft)}.bgcolor-canvas-moderate{background-color:var(--px-color-canvas-moderate)}.bgcolor-canvas-strong{background-color:var(--px-color-canvas-strong)}.bgcolor-canvas-deep{background-color:var(--px-color-canvas-deep)}.bgcolor-canvas-rich{background-color:var(--px-color-canvas-rich)}.bgcolor-action-primary{background-color:var(--px-color-bg-action-primary-default)}.bgcolor-action-secondary{background-color:var(--px-color-bg-action-secondary-default)}.bgcolor-action-hover-bordered{background-color:var(--px-color-bg-action-hover-bordered-default)}.bgcolor-action-hover{background-color:var(--px-color-bg-action-hover-default)}.bgcolor-action-disabled{background-color:var(--px-color-bg-action-disabled-default)}.bgcolor-action-active{background-color:var(--px-color-bg-action-active-default)}.bgcolor-notification{background-color:var(--px-color-bg-notification-default)}.bgcolor-promo{background-color:var(--px-color-bg-promo-default)}.bgcolor-success{background-color:var(--px-color-bg-success-default)}.bgcolor-error{background-color:var(--px-color-bg-error-default)}.bgcolor-warning{background-color:var(--px-color-bg-warning-default)}.bgcolor-unlimited{background-color:var(--px-color-bg-unlimited-default)}:host([inverted]) .bgcolor-none{background-color:var(--px-color-bg-container-none-inverted)}:host([inverted]) .bgcolor-weak{background-color:var(--px-color-bg-container-weak-inverted)}:host([inverted]) .bgcolor-moderate{background-color:var(--px-color-bg-container-moderate-inverted)}:host([inverted]) .bgcolor-strong{background-color:var(--px-color-bg-container-strong-inverted)}:host([inverted]) .bgcolor-rich{background-color:var(--px-color-bg-container-rich-inverted)}:host([inverted]) .bgcolor-main{background-color:var(--px-color-bg-container-weak-inverted)}:host([inverted]) .bgcolor-action-primary{background-color:var(--px-color-bg-action-primary-inverted)}:host([inverted]) .bgcolor-action-secondary{background-color:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .bgcolor-action-hover{background-color:var(--px-color-bg-action-hover-bordered-default)}:host([inverted]) .bgcolor-action-disabled{background-color:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .bgcolor-action-active{background-color:var(--px-color-bg-action-active-inverted)}:host([inverted]) .bgcolor-notification{background-color:var(--px-color-bg-notification-inverted)}:host([inverted]) .bgcolor-promo{background-color:var(--px-color-bg-promo-inverted)}:host([inverted]) .bgcolor-success{background-color:var(--px-color-bg-success-inverted)}:host([inverted]) .bgcolor-error{background-color:var(--px-color-bg-error-inverted)}:host([inverted]) .bgcolor-warning{background-color:var(--px-color-bg-warning-inverted)}:host([inverted]) .bgcolor-unlimited{background-color:var(--px-color-bg-unlimited-inverted)}.bgimg{background-repeat:no-repeat}.bgimgsize-cover{background-size:cover;background-position:center center}.bgimgsize-contain{background-size:contain}.shadow-none{box-shadow:var(--px-shadow-none)}.shadow-s{box-shadow:var(--px-shadow-s)}.shadow-m{box-shadow:var(--px-shadow-m)}.shadow-l{box-shadow:var(--px-shadow-l)}.shadow-xl{box-shadow:var(--px-shadow-xl)}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:2}::slotted([slot="anchor-right"]){right:var(--px-padding-m)}::slotted([slot="anchor-left"]){left:var(--px-padding-m)}.padding-none ::slotted([slot="anchor-right"]){right:var(--px-padding-none)}.padding-none ::slotted([slot="anchor-left"]){left:var(--px-padding-none)}.padding-2xs ::slotted([slot="anchor-right"]){right:var(--px-padding-2xs)}.padding-2xs ::slotted([slot="anchor-left"]){left:var(--px-padding-2xs)}.padding-xs ::slotted([slot="anchor-right"]){right:var(--px-padding-xs)}.padding-xs ::slotted([slot="anchor-left"]){left:var(--px-padding-xs)}.padding-s ::slotted([slot="anchor-right"]){right:var(--px-padding-s)}.padding-s ::slotted([slot="anchor-left"]){left:var(--px-padding-s)}.padding-m ::slotted([slot="anchor-right"]){right:var(--px-padding-m)}.padding-m ::slotted([slot="anchor-left"]){left:var(--px-padding-m)}.padding-l ::slotted([slot="anchor-right"]){right:var(--px-padding-l)}.padding-l ::slotted([slot="anchor-left"]){left:var(--px-padding-l)}.padding-xl ::slotted([slot="anchor-right"]){right:var(--px-padding-xl)}.padding-xl ::slotted([slot="anchor-left"]){left:var(--px-padding-xl)}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:1}@media only screen and (max-width: 640px){.padding-l{padding:var(--px-padding-l-mobile)}.padding-xl{padding:var(--px-padding-xl-mobile)}.paddingtop-l{padding-top:var(--px-padding-l-mobile)}.paddingtop-xl{padding-top:var(--px-padding-xl-mobile)}.paddingright-l{padding-right:var(--px-padding-l-mobile)}.paddingright-xl{padding-right:var(--px-padding-xl-mobile)}.paddingbottom-l{padding-bottom:var(--px-padding-l-mobile)}.paddingbottom-xl{padding-bottom:var(--px-padding-xl-mobile)}.paddingleft-l{padding-left:var(--px-padding-l-mobile)}.paddingleft-xl{padding-left:var(--px-padding-xl-mobile)}}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-border-s) * -1);left:calc(var(--px-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-border-m) * -1);left:calc(var(--px-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-border-l) * -1);left:calc(var(--px-border-l) * -1)}';
|
|
1209
1300
|
const containerStyles = new CSSStyleSheet();
|
|
1210
1301
|
containerStyles.replaceSync(containerCss);
|
|
1211
1302
|
const anchorValues = ["anchor-right", "anchor-left", "anchor-full"];
|
|
@@ -1213,7 +1304,7 @@ const noBorderRadiusValues = ["", "all", "top", "right", "bottom", "left"];
|
|
|
1213
1304
|
const bgImgSizeValues = ["", "cover", "contain", "default"];
|
|
1214
1305
|
const _Container = class _Container extends PxElement {
|
|
1215
1306
|
constructor() {
|
|
1216
|
-
super(
|
|
1307
|
+
super(containerStyles);
|
|
1217
1308
|
this.template = () => `<div class="container">
|
|
1218
1309
|
<slot name="anchor-left"></slot>
|
|
1219
1310
|
<slot name="anchor-right"></slot>
|
|
@@ -1372,7 +1463,7 @@ const _Container = class _Container extends PxElement {
|
|
|
1372
1463
|
this.setAttribute("inverted", value);
|
|
1373
1464
|
}
|
|
1374
1465
|
connectedCallback() {
|
|
1375
|
-
var _a, _b;
|
|
1466
|
+
var _a, _b, _c;
|
|
1376
1467
|
super.connectedCallback();
|
|
1377
1468
|
const anchorSlot = this.querySelector("[slot]");
|
|
1378
1469
|
if (anchorSlot) {
|
|
@@ -1387,6 +1478,9 @@ const _Container = class _Container extends PxElement {
|
|
|
1387
1478
|
this.$el.style.height = "100%";
|
|
1388
1479
|
}
|
|
1389
1480
|
}
|
|
1481
|
+
if (((_c = this.parentElement) == null ? void 0 : _c.localName) === "px-grid-item") {
|
|
1482
|
+
this.$el.style.height = "100%";
|
|
1483
|
+
}
|
|
1390
1484
|
if (this.hasAttribute("bgimg-mobile") || this.hasAttribute("bgimg-tablet") || this.hasAttribute("bgimg-laptop")) {
|
|
1391
1485
|
window.addEventListener("resize", this.onWindowResize);
|
|
1392
1486
|
}
|
|
@@ -1494,22 +1588,22 @@ const _Container = class _Container extends PxElement {
|
|
|
1494
1588
|
_Container.nativeName = "div";
|
|
1495
1589
|
let Container = _Container;
|
|
1496
1590
|
customElements.define("px-container", Container);
|
|
1497
|
-
const headingCss = "h1,.
|
|
1498
|
-
const typographyCss$1 = ":host>*:first-child{--font-weight-light: 300;--font-weight-regular: 400;--font-weight-bold: 700;--font-weight-extrabold: 900}.color-inherit{color:inherit}.color-primary{color:var(--px-color-txt-primary-default)}.color-
|
|
1591
|
+
const headingCss = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-txt-primary-default));font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m);font-weight:700}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-txt-primary-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-5xl-mobile);line-height:var(--px-line-height-s);font-weight:900}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-4xl-mobile);line-height:var(--px-line-height-s);font-weight:900}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-3xl-mobile);line-height:var(--px-line-height-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-2xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-m-mobile)}.style-subtitle{font-size:var(--px-text-size-xl-mobile);font-weight:300}.style-title-s{font-size:var(--px-text-size-base-mobile)}@media only screen and (min-width: 768px){h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-5xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-4xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-3xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-2xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-m-tablet)}.style-title-s{font-size:var(--px-text-size-base-tablet)}.style-subtitle{font-size:var(--px-text-size-xl-tablet)}}@media only screen and (min-width: 1025px){h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-3xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-2xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-m-desktop)}.style-title-s{font-size:var(--px-text-size-base-desktop)}.style-subtitle{font-size:var(--px-text-size-xl-desktop)}}";
|
|
1592
|
+
const typographyCss$1 = ":host>*:first-child{--font-weight-light: 300;--font-weight-regular: 400;--font-weight-bold: 700;--font-weight-extrabold: 900}.color-inherit{color:inherit}.color-primary{color:var(--px-color-txt-primary-default)}.color-body{color:var(--px-color-txt-body-default)}.color-details{color:var(--px-color-txt-details-default)}.color-hover{color:var(--px-color-txt-hover-default)}.color-disabled{color:var(--px-color-txt-disabled-default)}.color-active{color:var(--px-color-txt-active-default)}.color-promo{color:var(--px-color-txt-promo-default)}.color-success{color:var(--px-color-txt-success-default)}.color-error{color:var(--px-color-txt-error-default)}.color-warning{color:var(--px-color-txt-warning-default)}.color-unlimited{color:var(--px-color-txt-unlimited-default)}:host([inverted]) .color-inherit{color:inherit}:host([inverted]) .color-primary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .color-body{color:var(--px-color-txt-body-inverted)}:host([inverted]) .color-details{color:var(--px-color-txt-details-inverted)}:host([inverted]) .color-hover{color:var(--px-color-txt-hover-inverted)}:host([inverted]) .color-disabled{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .color-active{color:var(--px-color-txt-active-inverted)}:host([inverted]) .color-promo{color:var(--px-color-txt-promo-inverted)}:host([inverted]) .color-success{color:var(--px-color-txt-success-inverted)}:host([inverted]) .color-error{color:var(--px-color-txt-error-inverted)}:host([inverted]) .color-warning{color:var(--px-color-txt-warning-inverted)}:host([inverted]) .color-unlimited{color:var(--px-color-txt-unlimited-inverted)}.fontsize-inherit{font-size:inherit;line-height:inherit}.fontsize-xs{font-size:var(--px-text-size-xs-mobile)}.fontsize-s{font-size:var(--px-text-size-s-mobile)}.fontsize-base{font-size:var(--px-text-size-base-mobile)}.fontsize-m{font-size:var(--px-text-size-m-mobile)}.fontsize-l{font-size:var(--px-text-size-l-mobile)}.fontsize-xl{font-size:var(--px-text-size-xl-mobile)}.fontsize-2xl{font-size:var(--px-text-size-2xl-mobile)}.fontsize-3xl{font-size:var(--px-text-size-3xl-mobile);line-height:var(--px-line-height-s)}.fontsize-4xl{font-size:var(--px-text-size-4xl-mobile);line-height:var(--px-line-height-s)}.fontsize-5xl{font-size:var(--px-text-size-5xl-mobile);line-height:var(--px-line-height-s)}.fontsize-6xl{font-size:var(--px-text-size-6xl-mobile);line-height:var(--px-line-height-s)}.fontsize-7xl{font-size:var(--px-text-size-7xl-mobile);line-height:var(--px-line-height-s)}@media only screen and (min-width: 768px){.fontsize-xs{font-size:var(--px-text-size-xs-mobile)}.fontsize-s{font-size:var(--px-text-size-s-mobile)}.fontsize-base{font-size:var(--px-text-size-base-mobile)}.fontsize-m{font-size:var(--px-text-size-m-mobile)}.fontsize-l{font-size:var(--px-text-size-l-mobile)}.fontsize-xl{font-size:var(--px-text-size-xl-mobile)}.fontsize-2xl{font-size:var(--px-text-size-2xl-mobile)}.fontsize-3xl{font-size:var(--px-text-size-3xl-mobile)}.fontsize-4xl{font-size:var(--px-text-size-4xl-mobile)}.fontsize-5xl{font-size:var(--px-text-size-5xl-mobile)}.fontsize-6xl{font-size:var(--px-text-size-6xl-mobile)}.fontsize-7xl{font-size:var(--px-text-size-7xl-mobile)}}@media only screen and (min-width: 1025px){.fontsize-xs{font-size:var(--px-text-size-xs-tablet)}.fontsize-s{font-size:var(--px-text-size-s-tablet)}.fontsize-base{font-size:var(--px-text-size-base-tablet)}.fontsize-m{font-size:var(--px-text-size-m-tablet)}.fontsize-l{font-size:var(--px-text-size-l-tablet)}.fontsize-xl{font-size:var(--px-text-size-xl-tablet)}.fontsize-2xl{font-size:var(--px-text-size-2xl-tablet)}.fontsize-3xl{font-size:var(--px-text-size-3xl-tablet)}.fontsize-4xl{font-size:var(--px-text-size-4xl-tablet)}.fontsize-5xl{font-size:var(--px-text-size-5xl-tablet)}.fontsize-6xl{font-size:var(--px-text-size-6xl-tablet)}.fontsize-7xl{font-size:var(--px-text-size-7xl-tablet)}}@media only screen and (min-width: 1441px){.fontsize-xs{font-size:var(--px-text-size-xs-desktop)}.fontsize-s{font-size:var(--px-text-size-s-desktop)}.fontsize-base{font-size:var(--px-text-size-base-desktop)}.fontsize-m{font-size:var(--px-text-size-m-desktop)}.fontsize-l{font-size:var(--px-text-size-l-desktop)}.fontsize-xl{font-size:var(--px-text-size-xl-desktop)}.fontsize-2xl{font-size:var(--px-text-size-2xl-desktop)}.fontsize-3xl{font-size:var(--px-text-size-3xl-desktop)}.fontsize-4xl{font-size:var(--px-text-size-4xl-desktop)}.fontsize-5xl{font-size:var(--px-text-size-5xl-desktop)}.fontsize-6xl{font-size:var(--px-text-size-6xl-desktop)}.fontsize-7xl{font-size:var(--px-text-size-7xl-desktop)}}.fontweight-inherit{font-weight:inherit}.fontweight-normal{font-weight:var(--font-weight-regular)}.fontweight-bold{font-weight:var(--font-weight-bold)}.fontweight-extrabold{font-weight:var(--font-weight-extrabold)}.fontweight-light{font-weight:var(--font-weight-light)}";
|
|
1499
1593
|
const headingStyles$2 = new CSSStyleSheet();
|
|
1500
1594
|
headingStyles$2.replaceSync(headingCss);
|
|
1501
1595
|
const typographyStyles$4 = new CSSStyleSheet();
|
|
1502
1596
|
typographyStyles$4.replaceSync(typographyCss$1);
|
|
1503
|
-
const variantValues$
|
|
1597
|
+
const variantValues$6 = [
|
|
1504
1598
|
"",
|
|
1505
1599
|
"default",
|
|
1506
|
-
"
|
|
1507
|
-
"
|
|
1508
|
-
"
|
|
1509
|
-
"
|
|
1510
|
-
"
|
|
1511
|
-
"
|
|
1512
|
-
"
|
|
1600
|
+
"title-4xl",
|
|
1601
|
+
"title-3xl",
|
|
1602
|
+
"title-2xl",
|
|
1603
|
+
"title-xl",
|
|
1604
|
+
"title-l",
|
|
1605
|
+
"title-m",
|
|
1606
|
+
"title-s",
|
|
1513
1607
|
"subtitle"
|
|
1514
1608
|
];
|
|
1515
1609
|
class AbstractHeading extends PxElement {
|
|
@@ -1517,20 +1611,13 @@ class AbstractHeading extends PxElement {
|
|
|
1517
1611
|
return `<slot></slot>`;
|
|
1518
1612
|
}
|
|
1519
1613
|
constructor(tagName) {
|
|
1520
|
-
super(
|
|
1614
|
+
super(headingStyles$2, typographyStyles$4);
|
|
1521
1615
|
const $root = document.createElement(tagName);
|
|
1522
1616
|
$root.innerHTML = this.template();
|
|
1523
1617
|
this.shadowRoot.appendChild($root);
|
|
1524
1618
|
}
|
|
1525
1619
|
static get observedAttributes() {
|
|
1526
|
-
return [
|
|
1527
|
-
...super.observedAttributes,
|
|
1528
|
-
"variant",
|
|
1529
|
-
"color",
|
|
1530
|
-
"fontsize",
|
|
1531
|
-
"fontweight",
|
|
1532
|
-
"inverted"
|
|
1533
|
-
];
|
|
1620
|
+
return [...super.observedAttributes, "variant", "color", "inverted"];
|
|
1534
1621
|
}
|
|
1535
1622
|
get variant() {
|
|
1536
1623
|
return this.getAttribute("variant");
|
|
@@ -1544,18 +1631,6 @@ class AbstractHeading extends PxElement {
|
|
|
1544
1631
|
set color(value) {
|
|
1545
1632
|
this.setAttribute("color", value);
|
|
1546
1633
|
}
|
|
1547
|
-
get fontsize() {
|
|
1548
|
-
return this.getAttribute("fontsize");
|
|
1549
|
-
}
|
|
1550
|
-
set fontsize(value) {
|
|
1551
|
-
this.setAttribute("fontsize", value);
|
|
1552
|
-
}
|
|
1553
|
-
get fontweight() {
|
|
1554
|
-
return this.getAttribute("fontweight");
|
|
1555
|
-
}
|
|
1556
|
-
set fontweight(value) {
|
|
1557
|
-
this.setAttribute("fontweight", value);
|
|
1558
|
-
}
|
|
1559
1634
|
get inverted() {
|
|
1560
1635
|
return this.getAttribute("inverted");
|
|
1561
1636
|
}
|
|
@@ -1566,16 +1641,10 @@ class AbstractHeading extends PxElement {
|
|
|
1566
1641
|
if (oldValue !== newValue) {
|
|
1567
1642
|
switch (attrName) {
|
|
1568
1643
|
case "variant":
|
|
1569
|
-
this.updateAttribute(attrName, oldValue, newValue, variantValues$
|
|
1644
|
+
this.updateAttribute(attrName, oldValue, newValue, variantValues$6);
|
|
1570
1645
|
break;
|
|
1571
1646
|
case "color":
|
|
1572
|
-
this.
|
|
1573
|
-
break;
|
|
1574
|
-
case "fontsize":
|
|
1575
|
-
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
1576
|
-
break;
|
|
1577
|
-
case "fontweight":
|
|
1578
|
-
this.updateTypography(attrName, oldValue, newValue, fontweightValues);
|
|
1647
|
+
this.updateColor(oldValue, newValue, colorValues$1);
|
|
1579
1648
|
break;
|
|
1580
1649
|
default:
|
|
1581
1650
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
@@ -1585,30 +1654,38 @@ class AbstractHeading extends PxElement {
|
|
|
1585
1654
|
}
|
|
1586
1655
|
toggleClass(oldValue, newValue) {
|
|
1587
1656
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1588
|
-
this.$el.classList.toggle(oldValue);
|
|
1657
|
+
this.$el.classList.toggle(`style-${oldValue}`);
|
|
1589
1658
|
}
|
|
1590
1659
|
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1591
|
-
this.$el.classList.toggle(newValue);
|
|
1660
|
+
this.$el.classList.toggle(`style-${newValue}`);
|
|
1592
1661
|
}
|
|
1593
1662
|
}
|
|
1594
1663
|
checkName(values, value) {
|
|
1595
1664
|
return values.includes(value);
|
|
1596
1665
|
}
|
|
1597
1666
|
updateAttribute(attrName, oldValue, newValue, attrValue) {
|
|
1598
|
-
this.toggleClass(oldValue, newValue);
|
|
1599
1667
|
if (!this.checkName(attrValue, newValue)) {
|
|
1600
1668
|
console.error(`Bad "${attrName}" value for`, this.$el);
|
|
1669
|
+
} else {
|
|
1670
|
+
this.toggleClass(oldValue, newValue);
|
|
1601
1671
|
}
|
|
1602
1672
|
}
|
|
1603
|
-
|
|
1673
|
+
updateColor(oldValue, newValue, attrValue) {
|
|
1674
|
+
const invertedStatus = this.inverted === null ? "default" : "inverted";
|
|
1604
1675
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1605
|
-
this.$el.
|
|
1676
|
+
this.$el.style.setProperty(
|
|
1677
|
+
`--heading-color-${invertedStatus}`,
|
|
1678
|
+
`var(--px-color-txt-${oldValue}-${invertedStatus})`
|
|
1679
|
+
);
|
|
1606
1680
|
}
|
|
1607
1681
|
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1608
|
-
this.$el.
|
|
1682
|
+
this.$el.style.setProperty(
|
|
1683
|
+
`--heading-color-${invertedStatus}`,
|
|
1684
|
+
`var(--px-color-txt-${newValue}-${invertedStatus})`
|
|
1685
|
+
);
|
|
1609
1686
|
}
|
|
1610
1687
|
if (!this.checkName(attrValue, newValue)) {
|
|
1611
|
-
console.error(`Bad
|
|
1688
|
+
console.error(`Bad color value for`, this.$el);
|
|
1612
1689
|
}
|
|
1613
1690
|
}
|
|
1614
1691
|
}
|
|
@@ -1660,11 +1737,11 @@ const _H6 = class _H6 extends AbstractHeading {
|
|
|
1660
1737
|
_H6.nativeName = "h6";
|
|
1661
1738
|
let H6 = _H6;
|
|
1662
1739
|
customElements.define("px-h6", H6);
|
|
1663
|
-
const styles$
|
|
1664
|
-
const styleSheet$
|
|
1665
|
-
styleSheet$
|
|
1740
|
+
const styles$9 = ":host,:host *{box-sizing:border-box}:host .content-wrapper{margin-inline:1rem;max-width:1200px}@media only screen and (min-width: 1232px){:host .content-wrapper{margin-inline:auto}}";
|
|
1741
|
+
const styleSheet$8 = new CSSStyleSheet();
|
|
1742
|
+
styleSheet$8.replaceSync(styles$9);
|
|
1666
1743
|
class Section2 extends HTMLElement {
|
|
1667
|
-
constructor(
|
|
1744
|
+
constructor() {
|
|
1668
1745
|
super();
|
|
1669
1746
|
this.template = () => `
|
|
1670
1747
|
<px-container borderradius="none" padding="none" bgcolor="${this.bgColor}">
|
|
@@ -1680,12 +1757,9 @@ class Section2 extends HTMLElement {
|
|
|
1680
1757
|
`;
|
|
1681
1758
|
this.attachShadow({ mode: "open" });
|
|
1682
1759
|
this.shadowRoot.innerHTML = this.template();
|
|
1683
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
1760
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$8];
|
|
1684
1761
|
}
|
|
1685
1762
|
connectedCallback() {
|
|
1686
|
-
replayAttributes(this, Section2.observedAttributes, (name, value) => {
|
|
1687
|
-
this.attributeChangedCallback(name, null, value);
|
|
1688
|
-
});
|
|
1689
1763
|
const headingSlot = this.querySelector('[slot="heading"]');
|
|
1690
1764
|
if (!headingSlot) {
|
|
1691
1765
|
this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
|
|
@@ -1805,19 +1879,14 @@ class Section2 extends HTMLElement {
|
|
|
1805
1879
|
this.setAttribute("paddingbottom", value);
|
|
1806
1880
|
}
|
|
1807
1881
|
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
super(proximusSemanticStyleSheet);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
customElements.define("px-section", ProximusSection);
|
|
1814
|
-
const accordionCss = `details{font-family:Proximus,Verdana,Helvetica,sans-serif;display:flex;flex-direction:column;align-items:flex-start}details:not(.single){border-bottom:var(--px-border-m) solid var(--px-color-border-main-default)}details:not(.single) ::slotted([slot="title"]){flex-grow:1}details:not(.single) slot[name=content]{display:block;padding-block:var(--px-spacing-component-default-vertical)}summary{align-items:center;transition:all .2s ease-out 0s,backdrop-filter 0s,-webkit-backdrop-filter 0s}details:not(.single) summary{display:flex;padding:var(--px-padding-s);gap:var(--px-spacing-text-to-icon-horizontal);align-self:stretch}summary:after{content:"";width:24px;height:24px;flex-shrink:0;background-color:var(--px-color-bg-action-secondary-default);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cg id='CHEVRON DOWN'%3E%3Cpath id='Vector' fill-rule='evenodd' clip-rule='evenodd' d='M12.4714 6.19524C12.2111 5.93489 11.7889 5.93489 11.5286 6.19524L8 9.72384L4.4714 6.19524C4.21105 5.93489 3.78894 5.93489 3.52859 6.19524C3.26824 6.45559 3.26824 6.8777 3.52859 7.13805L7.52859 11.1381C7.78894 11.3984 8.21105 11.3984 8.4714 11.1381L12.4714 7.13805C12.7318 6.8777 12.7318 6.45559 12.4714 6.19524Z' fill='%235C2D91'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center center;border-radius:var(--px-radius-pill);border:var(--px-border-s) solid transparent;transition:all .2s ease-out 0s,backdrop-filter 0s,-webkit-backdrop-filter 0s}summary:hover{cursor:pointer}details:not(.single) summary:hover{background-color:var(--px-color-bg-container-moderate-default)}summary:hover:after{background-color:var(--px-color-bg-action-hover-inverted-default);border:var(--px-border-s) solid var(--px-color-border-action-hover-default);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}details.single summary{display:inline-flex;gap:var(--px-spacing-between-icon-horizontal-mobile);justify-content:center;color:var(--px-color-txt-primary-default);font-weight:700;border:var(--px-border-m) solid transparent;border-radius:var(--px-radius-pill)}details.single summary:hover{gap:0;padding:0 var(--px-padding-xs);border-color:var(--px-color-border-action-hover-default)}details.single summary:hover:after{border-color:transparent;margin-right:calc(var(--px-padding-xs) * -1)}details.single slot[name=content]{display:block;padding-top:var(--px-spacing-component-default-vertical)}details[open] summary slot[name=title]{color:var(--px-color-txt-primary-default);font-weight:700}details[open] summary:after{transform:rotate(180deg)}summary::-webkit-details-marker{display:none}:host([inverted]) details{color:var(--px-color-txt-body-inverted)}:host([inverted]) details:not(.single){border-bottom:var(--px-border-m) solid var(--px-color-border-main-inverted)}:host([inverted]) details[open] summary slot[name=title]{color:var(--px-color-txt-primary-inverted)}:host([inverted]) details.single summary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) details.single summary:hover{border-color:var(--px-color-border-action-hover-inverted)}:host([inverted]) details.single summary:hover:after{border-color:transparent}:host([inverted]) summary:after{background-color:var(--px-color-bg-action-secondary-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.4714 6.19524C12.2111 5.93489 11.789 5.93489 11.5286 6.19524L8.00002 9.72384L4.47142 6.19524C4.21107 5.93489 3.78897 5.93489 3.52862 6.19524C3.26827 6.45559 3.26827 6.8777 3.52862 7.13805L7.52862 11.1381C7.78897 11.3984 8.21108 11.3984 8.47142 11.1381L12.4714 7.13805C12.7318 6.8777 12.7318 6.45559 12.4714 6.19524Z' fill='white'/%3E%3C/svg%3E")}:host([inverted]) summary:hover{background-color:var(--px-color-bg-container-moderate-inverted)}:host([inverted]) summary:hover:after{background-color:var(--px-color-bg-action-hover-inverted-inverted);border:var(--px-border-s) solid var(--px-color-border-action-hover-inverted)}`;
|
|
1882
|
+
customElements.define("px-section", Section2);
|
|
1883
|
+
const accordionCss = `details{font-family:var(--px-font-family);display:flex;flex-direction:column;align-items:flex-start}details:not(.single){border-bottom:var(--px-border-m) solid var(--px-color-border-main-default)}details:not(.single) ::slotted([slot="title"]){flex-grow:1}details:not(.single) slot[name=content]{display:block;padding-block:var(--px-spacing-component-default-vertical)}summary{align-items:center;transition:all .2s ease-out 0s,backdrop-filter 0s,-webkit-backdrop-filter 0s}details:not(.single) summary{display:flex;padding:var(--px-padding-s);gap:var(--px-spacing-text-to-icon-horizontal);align-self:stretch}summary:after{content:"";width:24px;height:24px;flex-shrink:0;background-color:var(--px-color-bg-action-secondary-default);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cg id='CHEVRON DOWN'%3E%3Cpath id='Vector' fill-rule='evenodd' clip-rule='evenodd' d='M12.4714 6.19524C12.2111 5.93489 11.7889 5.93489 11.5286 6.19524L8 9.72384L4.4714 6.19524C4.21105 5.93489 3.78894 5.93489 3.52859 6.19524C3.26824 6.45559 3.26824 6.8777 3.52859 7.13805L7.52859 11.1381C7.78894 11.3984 8.21105 11.3984 8.4714 11.1381L12.4714 7.13805C12.7318 6.8777 12.7318 6.45559 12.4714 6.19524Z' fill='%235C2D91'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center center;border-radius:var(--px-radius-pill);border:var(--px-border-s) solid transparent;transition:all .2s ease-out 0s,backdrop-filter 0s,-webkit-backdrop-filter 0s}summary:hover{cursor:pointer}details:not(.single) summary:hover{background-color:var(--px-color-bg-container-weak-default)}summary:hover:after{background-color:var(--px-color-bg-action-hover-bordered-default);border:var(--px-border-s) solid var(--px-color-border-action-hover-default);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}details.single summary{display:inline-flex;gap:var(--px-spacing-between-icon-horizontal-mobile);justify-content:center;color:var(--px-color-txt-primary-default);font-weight:700;border:var(--px-border-m) solid transparent;border-radius:var(--px-radius-pill)}details.single summary:hover{gap:0;padding:0 var(--px-padding-xs);border-color:var(--px-color-border-action-hover-default)}details.single summary:hover:after{border-color:transparent;margin-right:calc(var(--px-padding-xs) * -1)}details.single slot[name=content]{display:block;padding-top:var(--px-spacing-component-default-vertical)}details[open] summary slot[name=title]{color:var(--px-color-txt-primary-default);font-weight:700}details[open] summary:after{transform:rotate(180deg)}summary::-webkit-details-marker{display:none}:host([inverted]) details{color:var(--px-color-txt-body-inverted)}:host([inverted]) details:not(.single){border-bottom:var(--px-border-m) solid var(--px-color-border-main-inverted)}:host([inverted]) details[open] summary slot[name=title]{color:var(--px-color-txt-primary-inverted)}:host([inverted]) details.single summary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) details.single summary:hover{border-color:var(--px-color-bg-container-weak-inverted)}:host([inverted]) details.single summary:hover:after{border-color:transparent}:host([inverted]) summary:after{background-color:var(--px-color-bg-action-secondary-inverted);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.4714 6.19524C12.2111 5.93489 11.789 5.93489 11.5286 6.19524L8.00002 9.72384L4.47142 6.19524C4.21107 5.93489 3.78897 5.93489 3.52862 6.19524C3.26827 6.45559 3.26827 6.8777 3.52862 7.13805L7.52862 11.1381C7.78897 11.3984 8.21108 11.3984 8.47142 11.1381L12.4714 7.13805C12.7318 6.8777 12.7318 6.45559 12.4714 6.19524Z' fill='white'/%3E%3C/svg%3E")}:host([inverted]) summary:hover{background-color:var(--px-color-bg-container-moderate-inverted)}:host([inverted]) summary:hover:after{background-color:var(--px-color-bg-action-bordered-inverted);border:var(--px-border-s) solid var(--px-color-border-action-hover-inverted)}`;
|
|
1815
1884
|
const accordionStyles = new CSSStyleSheet();
|
|
1816
1885
|
accordionStyles.replaceSync(accordionCss);
|
|
1817
|
-
const variantValues$
|
|
1886
|
+
const variantValues$5 = ["", "none", "single"];
|
|
1818
1887
|
const _Accordion = class _Accordion extends PxElement {
|
|
1819
1888
|
constructor() {
|
|
1820
|
-
super(
|
|
1889
|
+
super(accordionStyles);
|
|
1821
1890
|
this.template = () => `<details>
|
|
1822
1891
|
<summary role="button"><slot name="icon"></slot><slot name="title"></slot><slot name="info"></slot></summary>
|
|
1823
1892
|
<slot name="content"></slot>
|
|
@@ -1843,7 +1912,7 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1843
1912
|
if (oldValue !== newValue) {
|
|
1844
1913
|
switch (attrName) {
|
|
1845
1914
|
case "variant":
|
|
1846
|
-
this.updateAttribute(attrName, oldValue, newValue, variantValues$
|
|
1915
|
+
this.updateAttribute(attrName, oldValue, newValue, variantValues$5);
|
|
1847
1916
|
break;
|
|
1848
1917
|
default:
|
|
1849
1918
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
@@ -1859,7 +1928,9 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1859
1928
|
this.$el.classList.toggle(`${newValue}`);
|
|
1860
1929
|
}
|
|
1861
1930
|
if (!this.checkName(attrValues, newValue)) {
|
|
1862
|
-
console.error(
|
|
1931
|
+
console.error(
|
|
1932
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
1933
|
+
);
|
|
1863
1934
|
}
|
|
1864
1935
|
}
|
|
1865
1936
|
checkName(values, value) {
|
|
@@ -1869,169 +1940,21 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1869
1940
|
_Accordion.nativeName = "details";
|
|
1870
1941
|
let Accordion = _Accordion;
|
|
1871
1942
|
customElements.define("px-accordion", Accordion);
|
|
1872
|
-
const
|
|
1873
|
-
const
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
buttonStyles$1.replaceSync(buttonCss);
|
|
1879
|
-
linkStyles$2.replaceSync(linkCss);
|
|
1880
|
-
patchStyles.replaceSync(styles$9);
|
|
1881
|
-
const _Button = class _Button extends PxElement {
|
|
1882
|
-
constructor(semanticTokensStylesheet) {
|
|
1883
|
-
super(semanticTokensStylesheet, buttonStyles$1, linkStyles$2, patchStyles);
|
|
1884
|
-
this.template = () => `<slot name="before"></slot><slot></slot><slot name="after"></slot>`;
|
|
1885
|
-
const $root = document.createElement(this.nativeName);
|
|
1886
|
-
$root.classList.add("btn");
|
|
1887
|
-
$root.innerHTML = this.template();
|
|
1888
|
-
this.shadowRoot.appendChild($root);
|
|
1943
|
+
const imgCss = "img{display:inline-block;vertical-align:middle;max-width:100%;height:auto;border-style:none}@media only screen and (max-width: 40em){.mo,.m,.l{display:none}}@media only screen and (min-width: 40.0625em) and (max-width: 64em){.l{display:none}}@media only screen and (min-width: 40.0625em){.so{display:none}}@media only screen and (min-width: 64.0625em){.so,.mo{display:none}}";
|
|
1944
|
+
const styleSheet$7 = new CSSStyleSheet();
|
|
1945
|
+
styleSheet$7.replaceSync(imgCss);
|
|
1946
|
+
class AbstractImage extends PxElement {
|
|
1947
|
+
constructor() {
|
|
1948
|
+
super(styleSheet$7);
|
|
1889
1949
|
}
|
|
1890
1950
|
static get observedAttributes() {
|
|
1891
|
-
return [...super.observedAttributes, "
|
|
1892
|
-
}
|
|
1893
|
-
get variant() {
|
|
1894
|
-
return this.getAttribute("variant");
|
|
1895
|
-
}
|
|
1896
|
-
set variant(value) {
|
|
1897
|
-
this.setAttribute("variant", value);
|
|
1898
|
-
}
|
|
1899
|
-
get state() {
|
|
1900
|
-
return this.getAttribute("state");
|
|
1951
|
+
return [...super.observedAttributes, "showfor"];
|
|
1901
1952
|
}
|
|
1902
|
-
|
|
1903
|
-
this.
|
|
1953
|
+
get showfor() {
|
|
1954
|
+
return this.getAttribute("showfor");
|
|
1904
1955
|
}
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
}
|
|
1908
|
-
set extended(value) {
|
|
1909
|
-
this.setAttribute("extended", value);
|
|
1910
|
-
}
|
|
1911
|
-
get loading() {
|
|
1912
|
-
return this.getAttribute("loading");
|
|
1913
|
-
}
|
|
1914
|
-
set loading(value) {
|
|
1915
|
-
this.setAttribute("loading", value);
|
|
1916
|
-
}
|
|
1917
|
-
get shape() {
|
|
1918
|
-
return this.getAttribute("shape");
|
|
1919
|
-
}
|
|
1920
|
-
set shape(value) {
|
|
1921
|
-
this.setAttribute("shape", value);
|
|
1922
|
-
}
|
|
1923
|
-
get inverted() {
|
|
1924
|
-
return this.getAttribute("inverted");
|
|
1925
|
-
}
|
|
1926
|
-
set inverted(value) {
|
|
1927
|
-
this.setAttribute("inverted", value);
|
|
1928
|
-
}
|
|
1929
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
1930
|
-
if (oldValue !== newValue) {
|
|
1931
|
-
switch (attrName) {
|
|
1932
|
-
case "variant":
|
|
1933
|
-
this.updateVariant(oldValue, newValue);
|
|
1934
|
-
break;
|
|
1935
|
-
case "state":
|
|
1936
|
-
this.updateState(oldValue, newValue);
|
|
1937
|
-
break;
|
|
1938
|
-
case "extended":
|
|
1939
|
-
this.updateExtended();
|
|
1940
|
-
break;
|
|
1941
|
-
case "loading":
|
|
1942
|
-
this.updateLoading();
|
|
1943
|
-
break;
|
|
1944
|
-
case "shape":
|
|
1945
|
-
this.updateShape(oldValue, newValue);
|
|
1946
|
-
break;
|
|
1947
|
-
default:
|
|
1948
|
-
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
1949
|
-
break;
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
checkName(values, value) {
|
|
1954
|
-
if (values.includes(value)) {
|
|
1955
|
-
return true;
|
|
1956
|
-
}
|
|
1957
|
-
return false;
|
|
1958
|
-
}
|
|
1959
|
-
checkClass(value) {
|
|
1960
|
-
if (value.startsWith("patch-")) {
|
|
1961
|
-
const splittedValue = value.split(/-(.*)/s);
|
|
1962
|
-
for (const classVar of splittedValue) {
|
|
1963
|
-
if (classVar != "") {
|
|
1964
|
-
this.$el.classList.toggle(classVar);
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
} else {
|
|
1968
|
-
this.$el.classList.toggle(value);
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
_toggleClass(oldValue, newValue) {
|
|
1972
|
-
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1973
|
-
this.checkClass(oldValue);
|
|
1974
|
-
}
|
|
1975
|
-
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1976
|
-
this.checkClass(newValue);
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
updateVariant(oldValue, newValue) {
|
|
1980
|
-
const values = ["", "default", "secondary", "tertiary", "link", "patch", "patch-info", "patch-black-friday", "patch-eco"];
|
|
1981
|
-
if (newValue === "link") {
|
|
1982
|
-
this.$el.classList.remove("btn");
|
|
1983
|
-
} else {
|
|
1984
|
-
this.$el.classList.add("btn");
|
|
1985
|
-
}
|
|
1986
|
-
this._toggleClass(oldValue, newValue);
|
|
1987
|
-
if (!this.checkName(values, newValue)) {
|
|
1988
|
-
console.error(`Bad "variant" value for ${this.$el}`);
|
|
1989
|
-
}
|
|
1990
|
-
}
|
|
1991
|
-
updateState(oldValue, newValue) {
|
|
1992
|
-
const values = ["", "default", "success", "error"];
|
|
1993
|
-
this._toggleClass(oldValue, newValue);
|
|
1994
|
-
if (!this.checkName(values, newValue)) {
|
|
1995
|
-
console.error(`Bad "sate" value for ${this.$el}`);
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
updateExtended() {
|
|
1999
|
-
this.$el.classList.toggle("extended");
|
|
2000
|
-
}
|
|
2001
|
-
updateLoading() {
|
|
2002
|
-
this.$el.classList.toggle("loading");
|
|
2003
|
-
}
|
|
2004
|
-
updateShape(oldValue, newValue) {
|
|
2005
|
-
const values = ["", "default", "bottom-right", "bottom-left", "alternative"];
|
|
2006
|
-
this._toggleClass(oldValue, newValue);
|
|
2007
|
-
if (!this.checkName(values, newValue)) {
|
|
2008
|
-
console.error(`Bad "shape" value for ${this.$el}`);
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
};
|
|
2012
|
-
_Button.nativeName = "button";
|
|
2013
|
-
let Button = _Button;
|
|
2014
|
-
class ProximusButton extends Button {
|
|
2015
|
-
constructor() {
|
|
2016
|
-
super(proximusSemanticStyleSheet);
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
customElements.define("px-button", ProximusButton);
|
|
2020
|
-
const imgCss = "img{display:inline-block;vertical-align:middle;max-width:100%;height:auto;border-style:none}@media only screen and (max-width: 40em){.mo,.m,.l{display:none}}@media only screen and (min-width: 40.0625em) and (max-width: 64em){.l{display:none}}@media only screen and (min-width: 40.0625em){.so{display:none}}@media only screen and (min-width: 64.0625em){.so,.mo{display:none}}";
|
|
2021
|
-
const styleSheet$8 = new CSSStyleSheet();
|
|
2022
|
-
styleSheet$8.replaceSync(imgCss);
|
|
2023
|
-
class AbstractImage extends PxElement {
|
|
2024
|
-
constructor() {
|
|
2025
|
-
super(styleSheet$8);
|
|
2026
|
-
}
|
|
2027
|
-
static get observedAttributes() {
|
|
2028
|
-
return [...super.observedAttributes, "showfor"];
|
|
2029
|
-
}
|
|
2030
|
-
get showfor() {
|
|
2031
|
-
return this.getAttribute("showfor");
|
|
2032
|
-
}
|
|
2033
|
-
set showfor(value) {
|
|
2034
|
-
this.setAttribute("showfor", value);
|
|
1956
|
+
set showfor(value) {
|
|
1957
|
+
this.setAttribute("showfor", value);
|
|
2035
1958
|
}
|
|
2036
1959
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
2037
1960
|
if (oldValue !== newValue) {
|
|
@@ -2210,24 +2133,19 @@ const _Picture = class _Picture extends AbstractImage {
|
|
|
2210
2133
|
_Picture.nativeName = "picture";
|
|
2211
2134
|
let Picture = _Picture;
|
|
2212
2135
|
customElements.define("px-picture", Picture);
|
|
2213
|
-
const
|
|
2214
|
-
styleSheet$
|
|
2136
|
+
const styles$8 = ".patch{display:inline-flex;align-items:center;padding:0 var(--px-padding-s);height:1.625rem;border:var(--px-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:700;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m);text-align:center;background-color:var(--px-color-bg-promo-default);color:var(--px-color-txt-primary-inverted)}.patch,.patch *{box-sizing:border-box}@media only screen and (min-width: 768px){.patch{font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 1025px){.patch{font-size:var(--px-text-size-base-desktop)}}:host([inverted]) .patch{background-color:var(--px-color-bg-promo-inverted);color:var(--px-color-txt-primary-inverted)}.bottom-right{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}.bottom-left{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-illu-blue-core);color:var(--px-color-txt-body-default)}:host([inverted]) .info{background-color:var(--px-color-illu-blue-core);color:var(--px-color-txt-body-default)}.black-friday{background-color:var(--px-color-bg-container-rich-default);color:var(--px-color-txt-inverted-default)}:host([inverted]) .black-friday{background-color:var(--px-color-bg-container-rich-inverted);color:var(--px-color-txt-inverted-inverted)}.eco{background-color:var(--px-color-bg-success-default);color:var(--px-color-txt-inverted-default)}:host([inverted]) .eco{background-color:var(--px-color-bg-success-inverted);color:var(--px-color-txt-inverted-inverted)}.greyed{background-color:var(--px-color-bg-action-disabled-default);color:var(--px-color-icon-disabled-default)}:host([inverted]) .greyed{background-color:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-icon-disabled-inverted)}";
|
|
2137
|
+
const styleSheet$6 = new CSSStyleSheet();
|
|
2138
|
+
styleSheet$6.replaceSync(styles$8);
|
|
2139
|
+
const variantValues$4 = [
|
|
2140
|
+
"",
|
|
2141
|
+
"default",
|
|
2142
|
+
"info",
|
|
2143
|
+
"black-friday",
|
|
2144
|
+
"eco",
|
|
2145
|
+
"greyed"
|
|
2146
|
+
];
|
|
2147
|
+
const shapeValues$1 = ["", "default", "bottom-right", "bottom-left"];
|
|
2215
2148
|
class Patch extends HTMLElement {
|
|
2216
|
-
constructor(semanticTokensStylesheet) {
|
|
2217
|
-
super();
|
|
2218
|
-
this.variantValues = [
|
|
2219
|
-
"",
|
|
2220
|
-
"default",
|
|
2221
|
-
"info",
|
|
2222
|
-
"black-friday",
|
|
2223
|
-
"eco",
|
|
2224
|
-
"greyed"
|
|
2225
|
-
];
|
|
2226
|
-
this.shapeValues = ["", "default", "bottom-right", "bottom-left"];
|
|
2227
|
-
this.attachShadow({ mode: "open" });
|
|
2228
|
-
this.shadowRoot.innerHTML = this.template();
|
|
2229
|
-
this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$7];
|
|
2230
|
-
}
|
|
2231
2149
|
template() {
|
|
2232
2150
|
return `
|
|
2233
2151
|
<div class="patch">
|
|
@@ -2235,6 +2153,12 @@ class Patch extends HTMLElement {
|
|
|
2235
2153
|
</div>
|
|
2236
2154
|
`;
|
|
2237
2155
|
}
|
|
2156
|
+
constructor() {
|
|
2157
|
+
super();
|
|
2158
|
+
this.attachShadow({ mode: "open" });
|
|
2159
|
+
this.shadowRoot.innerHTML = this.template();
|
|
2160
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$6];
|
|
2161
|
+
}
|
|
2238
2162
|
static get observedAttributes() {
|
|
2239
2163
|
return ["variant", "shape", "inverted"];
|
|
2240
2164
|
}
|
|
@@ -2250,11 +2174,6 @@ class Patch extends HTMLElement {
|
|
|
2250
2174
|
}
|
|
2251
2175
|
}
|
|
2252
2176
|
}
|
|
2253
|
-
connectedCallback() {
|
|
2254
|
-
replayAttributes(this, Patch.observedAttributes, (name, value) => {
|
|
2255
|
-
this.attributeChangedCallback(name, null, value);
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
2177
|
_toggleClass(oldValue, newValue) {
|
|
2259
2178
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
2260
2179
|
this.$el.classList.toggle(oldValue);
|
|
@@ -2268,13 +2187,13 @@ class Patch extends HTMLElement {
|
|
|
2268
2187
|
}
|
|
2269
2188
|
updateVariant(oldValue, newValue) {
|
|
2270
2189
|
this._toggleClass(oldValue, newValue);
|
|
2271
|
-
if (!this.checkName(
|
|
2190
|
+
if (!this.checkName(variantValues$4, newValue)) {
|
|
2272
2191
|
console.error(`Bad "variant" value for patch`);
|
|
2273
2192
|
}
|
|
2274
2193
|
}
|
|
2275
2194
|
updateShape(oldValue, newValue) {
|
|
2276
2195
|
this._toggleClass(oldValue, newValue);
|
|
2277
|
-
if (!this.checkName(
|
|
2196
|
+
if (!this.checkName(shapeValues$1, newValue)) {
|
|
2278
2197
|
console.error(`Bad "shape" value for patch`);
|
|
2279
2198
|
}
|
|
2280
2199
|
}
|
|
@@ -2300,21 +2219,25 @@ class Patch extends HTMLElement {
|
|
|
2300
2219
|
this.setAttribute("inverted", value);
|
|
2301
2220
|
}
|
|
2302
2221
|
}
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
super(proximusSemanticStyleSheet);
|
|
2306
|
-
}
|
|
2222
|
+
if (!customElements.get("px-patch")) {
|
|
2223
|
+
customElements.define("px-patch", Patch);
|
|
2307
2224
|
}
|
|
2308
|
-
|
|
2309
|
-
const
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2225
|
+
const css$1 = '.price{--price-s: var(--px-text-size-l-mobile);--price-m: var(--px-text-size-xl-mobile);--price-l: var(--px-text-size-3xl-mobile);font-family:var(--px-font-family);white-space:nowrap;font-weight:700;color:var(--px-color-txt-primary-default);font-size:var(--price-s)}@media only screen and (min-width: 641px){.price{--price-s: var(--px-text-size-l-tablet);--price-m: var(--px-text-size-xl-tablet);--price-l: var(--px-text-size-3xl-tablet)}}@media only screen and (min-width: 1025px){.price{--price-s: var(--px-text-size-l-desktop);--price-m: var(--px-text-size-xl-desktop);--price-l: var(--px-text-size-3xl-desktop)}}.promo,.free{color:var(--px-color-txt-promo-default)}.neutral{color:var(--px-color-txt-body-default)}.exceeding{color:var(--px-color-txt-error-default)}.disabled{color:var(--px-color-txt-disabled-default)}::slotted([slot="oldprice"]){text-decoration:line-through;color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);font-weight:400}@media only screen and (min-width: 641px){{font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 1025px){{font-size:var(--px-text-size-base-desktop)}}::slotted([slot="newpromoprice"]){position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}:host([inverted]) .price{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .promo,:host([inverted]) .free{color:var(--px-color-txt-promo-inverted)}:host([inverted]) .neutral{color:var(--px-color-txt-body-inverted)}:host([inverted]) .exceeding{color:var(--px-color-txt-error-inverted)}:host([inverted]) .disabled{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) ::slotted(s){color:var(--px-color-txt-body-inverted)}.price:not(.promo):not(.free) ::slotted(s){display:none}::slotted(.euro){font-size:calc(var(--price-s) * .75)}::slotted(.decimals){font-size:calc(var(--price-s) * .5)}.m{font-size:var(--price-m)}:host([size="m"]) ::slotted(.decimals){font-size:calc(var(--price-m) * .5)}:host([size="m"]) ::slotted(.euro){font-size:calc(var(--price-m) * .75)}.l{font-size:var(--price-l)}:host([size="l"]) ::slotted(.decimals){font-size:calc(var(--price-l) * .5)}:host([size="l"]) ::slotted(.euro){font-size:calc(var(--price-l) * .75)}';
|
|
2226
|
+
const styles$7 = new CSSStyleSheet();
|
|
2227
|
+
styles$7.replaceSync(css$1);
|
|
2228
|
+
const variantValues$3 = [
|
|
2229
|
+
"default",
|
|
2230
|
+
"promo",
|
|
2231
|
+
"free",
|
|
2232
|
+
"neutral",
|
|
2233
|
+
"exceeding",
|
|
2234
|
+
"disabled"
|
|
2235
|
+
];
|
|
2313
2236
|
const sizeValues$1 = ["", "s", "m", "l"];
|
|
2314
2237
|
const _Price = class _Price extends PxElement {
|
|
2315
2238
|
constructor() {
|
|
2316
|
-
super(
|
|
2317
|
-
this.template = () => `<span class="price"><slot name="oldprice"></slot><slot></slot></span>`;
|
|
2239
|
+
super(styles$7);
|
|
2240
|
+
this.template = () => `<span class="price"><slot name="oldprice"></slot><slot name="newpromoprice"></slot><slot></slot></span>`;
|
|
2318
2241
|
this.shadowRoot.innerHTML = this.template();
|
|
2319
2242
|
}
|
|
2320
2243
|
static get observedAttributes() {
|
|
@@ -2345,7 +2268,7 @@ const _Price = class _Price extends PxElement {
|
|
|
2345
2268
|
if (oldValue !== newValue) {
|
|
2346
2269
|
switch (attrName) {
|
|
2347
2270
|
case "variant":
|
|
2348
|
-
this.updateAttribute(attrName, oldValue, newValue, variantValues$
|
|
2271
|
+
this.updateAttribute(attrName, oldValue, newValue, variantValues$3);
|
|
2349
2272
|
break;
|
|
2350
2273
|
case "size":
|
|
2351
2274
|
this.updateAttribute(attrName, oldValue, newValue, sizeValues$1);
|
|
@@ -2370,18 +2293,28 @@ const _Price = class _Price extends PxElement {
|
|
|
2370
2293
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
2371
2294
|
this.toggleClass(oldValue, newValue);
|
|
2372
2295
|
if (!this.checkName(attrValues, newValue)) {
|
|
2373
|
-
console.error(
|
|
2296
|
+
console.error(
|
|
2297
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
2298
|
+
);
|
|
2374
2299
|
}
|
|
2375
2300
|
}
|
|
2376
2301
|
buildPrice() {
|
|
2377
2302
|
let price = this.innerHTML.trim();
|
|
2378
|
-
const oldPrice = this.querySelector("
|
|
2303
|
+
const oldPrice = this.querySelector('[slot="oldprice"]');
|
|
2379
2304
|
let strikethroughPrice = "";
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2305
|
+
let newPriceSrText = "";
|
|
2306
|
+
let newPriceSrSpan;
|
|
2307
|
+
if (oldPrice && oldPrice.innerHTML !== "") {
|
|
2308
|
+
oldPrice.innerHTML = "€" + oldPrice.innerHTML;
|
|
2309
|
+
newPriceSrSpan = this.querySelector('[slot="newpromoprice"]');
|
|
2310
|
+
if (newPriceSrSpan) {
|
|
2311
|
+
newPriceSrText = newPriceSrSpan.outerHTML;
|
|
2312
|
+
price = newPriceSrSpan.nextSibling.textContent;
|
|
2313
|
+
} else {
|
|
2314
|
+
price = oldPrice.nextSibling.textContent;
|
|
2315
|
+
}
|
|
2383
2316
|
strikethroughPrice = oldPrice.outerHTML + " ";
|
|
2384
|
-
} else if (oldPrice && oldPrice.
|
|
2317
|
+
} else if (oldPrice && oldPrice.innerHTML === "") {
|
|
2385
2318
|
price = oldPrice.nextSibling.textContent;
|
|
2386
2319
|
}
|
|
2387
2320
|
const isNumeric = /^[\d|.|,]+/.test(price);
|
|
@@ -2394,21 +2327,21 @@ const _Price = class _Price extends PxElement {
|
|
|
2394
2327
|
const separator = price.charAt(price.length - 3);
|
|
2395
2328
|
if (separator === "." || separator === ",") {
|
|
2396
2329
|
const [nbrPart, decPart] = price.split(separator);
|
|
2397
|
-
this.innerHTML = `${strikethroughPrice}${euro}${nbrPart}<span class="decimals">${separator}${decPart}</span>`;
|
|
2330
|
+
this.innerHTML = `${strikethroughPrice}${newPriceSrText}${euro}${nbrPart}<span class="decimals">${separator}${decPart}</span>`;
|
|
2398
2331
|
} else {
|
|
2399
|
-
this.innerHTML = `${strikethroughPrice}${euro}${price}`;
|
|
2332
|
+
this.innerHTML = `${strikethroughPrice}${newPriceSrText}${euro}${price}`;
|
|
2400
2333
|
}
|
|
2401
2334
|
}
|
|
2402
2335
|
};
|
|
2403
2336
|
_Price.nativeName = "span";
|
|
2404
2337
|
let Price = _Price;
|
|
2405
2338
|
customElements.define("px-price", Price);
|
|
2406
|
-
const css = ":host{box-sizing:border-box}.ribbon{font-family:
|
|
2407
|
-
const styles$
|
|
2408
|
-
styles$
|
|
2339
|
+
const css = ":host{box-sizing:border-box}.ribbon{font-family:var(--px-font-family);font-weight:700;font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m);white-space:nowrap;text-align:left;color:var(--px-color-txt-body-inverted);background-color:var(--px-color-bg-container-rich-default);padding:var(--px-padding-xs) var(--px-padding-s);border-radius:var(--px-radius-main) var(--px-radius-main) 0 0}.ribbon,.ribbon *{box-sizing:border-box}@media only screen and (min-width: 768px){.ribbon{font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 1025px){.ribbon{font-size:var(--px-text-size-base-desktop)}}";
|
|
2340
|
+
const styles$6 = new CSSStyleSheet();
|
|
2341
|
+
styles$6.replaceSync(css);
|
|
2409
2342
|
const _Ribbon = class _Ribbon extends PxElement {
|
|
2410
2343
|
constructor() {
|
|
2411
|
-
super(
|
|
2344
|
+
super(styles$6);
|
|
2412
2345
|
this.template = () => `<div class="ribbon"><slot></slot></div>`;
|
|
2413
2346
|
this.shadowRoot.innerHTML = this.template();
|
|
2414
2347
|
}
|
|
@@ -2416,20 +2349,41 @@ const _Ribbon = class _Ribbon extends PxElement {
|
|
|
2416
2349
|
_Ribbon.nativeName = "div";
|
|
2417
2350
|
let Ribbon = _Ribbon;
|
|
2418
2351
|
customElements.define("px-ribbon", Ribbon);
|
|
2419
|
-
const styles$
|
|
2420
|
-
const styleSheet$
|
|
2421
|
-
styleSheet$
|
|
2422
|
-
const directionValues = ["", "default", "vertical"];
|
|
2352
|
+
const styles$5 = ".separator{--separator-size: var(--px-border-m);--px-separator-color: var(--px-color-border-main-default);--separator-direction-mobile-border-width: var(--separator-size) 0 0;--separator-direction-mobile-width: initial;--separator-direction-mobile-height: initial;clear:both;margin:0;border-style:solid;border-color:var(--px-separator-color);border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator_direction_horizontal{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator_direction_vertical{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}@media only screen and (min-width: 0px) and (max-width: 767px){.separator_direction_horizontal--mobile{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator_direction_vertical--mobile{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media only screen and (min-width: 768px) and (max-width: 1024px){.separator_direction_horizontal--tablet{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator_direction_vertical--tablet{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media only screen and (min-width: 1025px) and (max-width: 1440px){.separator_direction_horizontal--laptop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator_direction_vertical--laptop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media only screen and (min-width: 1441px){.separator_direction_horizontal--desktop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator_direction_vertical--desktop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}:host([inverted]) .separator{--px-separator-color: var(--px-color-border-main-inverted)}";
|
|
2353
|
+
const styleSheet$5 = new CSSStyleSheet();
|
|
2354
|
+
styleSheet$5.replaceSync(styles$5);
|
|
2355
|
+
const directionValues = ["", "default", "horizontal", "vertical"];
|
|
2423
2356
|
const sizeValues = ["", "none", "s", "m", "l"];
|
|
2424
|
-
const colorValues = [
|
|
2357
|
+
const colorValues = [
|
|
2358
|
+
"",
|
|
2359
|
+
"contrasted",
|
|
2360
|
+
"action-hover",
|
|
2361
|
+
"action-active",
|
|
2362
|
+
"none",
|
|
2363
|
+
"success",
|
|
2364
|
+
"error",
|
|
2365
|
+
"warning",
|
|
2366
|
+
"unlimited"
|
|
2367
|
+
];
|
|
2425
2368
|
const _Separator = class _Separator extends PxElement {
|
|
2426
2369
|
constructor() {
|
|
2427
|
-
super(
|
|
2370
|
+
super(styleSheet$5);
|
|
2428
2371
|
const $root = document.createElement(this.nativeName);
|
|
2372
|
+
$root.classList.add("separator");
|
|
2429
2373
|
this.shadowRoot.appendChild($root);
|
|
2430
2374
|
}
|
|
2431
2375
|
static get observedAttributes() {
|
|
2432
|
-
return [
|
|
2376
|
+
return [
|
|
2377
|
+
...super.observedAttributes,
|
|
2378
|
+
"direction",
|
|
2379
|
+
"direction-mobile",
|
|
2380
|
+
"direction-tablet",
|
|
2381
|
+
"direction-laptop",
|
|
2382
|
+
"direction-desktop",
|
|
2383
|
+
"size",
|
|
2384
|
+
"color",
|
|
2385
|
+
"inverted"
|
|
2386
|
+
];
|
|
2433
2387
|
}
|
|
2434
2388
|
get direction() {
|
|
2435
2389
|
return this.getAttribute("direction");
|
|
@@ -2437,6 +2391,30 @@ const _Separator = class _Separator extends PxElement {
|
|
|
2437
2391
|
set direction(value) {
|
|
2438
2392
|
this.setAttribute("direction", value);
|
|
2439
2393
|
}
|
|
2394
|
+
get directionMobile() {
|
|
2395
|
+
return this.getAttribute("direction-mobile");
|
|
2396
|
+
}
|
|
2397
|
+
set directionMobile(value) {
|
|
2398
|
+
this.setAttribute("direction-mobile", value);
|
|
2399
|
+
}
|
|
2400
|
+
get directionTablet() {
|
|
2401
|
+
return this.getAttribute("direction-tablet");
|
|
2402
|
+
}
|
|
2403
|
+
set directionTablet(value) {
|
|
2404
|
+
this.setAttribute("direction-tablet", value);
|
|
2405
|
+
}
|
|
2406
|
+
get directionLaptop() {
|
|
2407
|
+
return this.getAttribute("direction-laptop");
|
|
2408
|
+
}
|
|
2409
|
+
set directionLaptop(value) {
|
|
2410
|
+
this.setAttribute("direction-laptop", value);
|
|
2411
|
+
}
|
|
2412
|
+
get directionDesktop() {
|
|
2413
|
+
return this.getAttribute("direction-desktop");
|
|
2414
|
+
}
|
|
2415
|
+
set directionDesktop(value) {
|
|
2416
|
+
this.setAttribute("direction-desktop", value);
|
|
2417
|
+
}
|
|
2440
2418
|
get size() {
|
|
2441
2419
|
return this.getAttribute("size");
|
|
2442
2420
|
}
|
|
@@ -2459,13 +2437,17 @@ const _Separator = class _Separator extends PxElement {
|
|
|
2459
2437
|
if (oldValue !== newValue) {
|
|
2460
2438
|
switch (attrName) {
|
|
2461
2439
|
case "direction":
|
|
2462
|
-
|
|
2440
|
+
case "direction-mobile":
|
|
2441
|
+
case "direction-tablet":
|
|
2442
|
+
case "direction-laptop":
|
|
2443
|
+
case "direction-desktop":
|
|
2444
|
+
this.updateDirection(attrName, newValue);
|
|
2463
2445
|
break;
|
|
2464
2446
|
case "size":
|
|
2465
|
-
this.
|
|
2447
|
+
this.updateSize(newValue, sizeValues);
|
|
2466
2448
|
break;
|
|
2467
2449
|
case "color":
|
|
2468
|
-
this.
|
|
2450
|
+
this.updateColor(newValue, colorValues);
|
|
2469
2451
|
break;
|
|
2470
2452
|
default:
|
|
2471
2453
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
@@ -2473,39 +2455,68 @@ const _Separator = class _Separator extends PxElement {
|
|
|
2473
2455
|
}
|
|
2474
2456
|
}
|
|
2475
2457
|
}
|
|
2476
|
-
toggleClass(oldValue, newValue) {
|
|
2477
|
-
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
2478
|
-
this.$el.classList.toggle(oldValue);
|
|
2479
|
-
}
|
|
2480
|
-
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
2481
|
-
this.$el.classList.toggle(newValue);
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
2458
|
checkName(values, value) {
|
|
2485
2459
|
return values.includes(value);
|
|
2486
2460
|
}
|
|
2487
|
-
|
|
2488
|
-
this.toggleClass(oldValue, newValue);
|
|
2461
|
+
updateSize(newValue, attrValue) {
|
|
2489
2462
|
if (!this.checkName(attrValue, newValue)) {
|
|
2463
|
+
console.error(`Bad size value for`, this.$el);
|
|
2464
|
+
this.$el.style.setProperty("--separator-size", "var(--px-border-m)");
|
|
2465
|
+
} else {
|
|
2466
|
+
this.$el.style.setProperty(
|
|
2467
|
+
"--separator-size",
|
|
2468
|
+
`var(--px-border-${newValue})`
|
|
2469
|
+
);
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
updateColor(newValue, attrValue) {
|
|
2473
|
+
if (!this.checkName(attrValue, newValue)) {
|
|
2474
|
+
console.error(`Bad color value for`, this.$el);
|
|
2475
|
+
this.$el.style.setProperty(
|
|
2476
|
+
"--px-separator-color",
|
|
2477
|
+
`var(--px-color-border-main-${this.inverted === null ? "default" : "inverted"})`
|
|
2478
|
+
);
|
|
2479
|
+
} else {
|
|
2480
|
+
this.$el.style.setProperty(
|
|
2481
|
+
"--px-separator-color",
|
|
2482
|
+
`var(--px-color-border-${newValue}-${this.inverted === null ? "default" : "inverted"})`
|
|
2483
|
+
);
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
updateDirection(attrName, newValue) {
|
|
2487
|
+
if (!this.checkName(directionValues, newValue)) {
|
|
2490
2488
|
console.error(`Bad "${attrName}" value for`, this.$el);
|
|
2489
|
+
} else {
|
|
2490
|
+
if (attrName === "direction") {
|
|
2491
|
+
this.$el.classList.add(`separator_direction_${newValue}`);
|
|
2492
|
+
} else {
|
|
2493
|
+
const classList = this.$el.classList;
|
|
2494
|
+
const mediaquery = attrName.split("-")[1];
|
|
2495
|
+
for (let i = 0; i < classList.length; i++) {
|
|
2496
|
+
if (classList[i].includes(mediaquery)) {
|
|
2497
|
+
this.$el.classList.replace(
|
|
2498
|
+
classList[i],
|
|
2499
|
+
`separator_direction_${newValue}--${mediaquery}`
|
|
2500
|
+
);
|
|
2501
|
+
} else {
|
|
2502
|
+
this.$el.classList.add(
|
|
2503
|
+
`separator_direction_${newValue}--${mediaquery}`
|
|
2504
|
+
);
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2491
2508
|
}
|
|
2492
2509
|
}
|
|
2493
2510
|
};
|
|
2494
2511
|
_Separator.nativeName = "hr";
|
|
2495
2512
|
let Separator = _Separator;
|
|
2496
2513
|
customElements.define("px-separator", Separator);
|
|
2497
|
-
const styles$
|
|
2498
|
-
const styleSheet$
|
|
2499
|
-
styleSheet$
|
|
2514
|
+
const styles$4 = '.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-s-mobile);line-height:var(--px-line-height-m);font-weight:400;gap:var(--px-spacing-text-to-icon-compact-horizontal);background-color:var(--px-color-bg-action-secondary-default);color:var(--px-color-txt-primary-default);padding:var(--px-padding-2xs) var(--px-padding-xs);border:var(--px-border-s) solid transparent;border-radius:var(--px-radius-main);--slotted-icon-size: var(--px-icon-size-xs-mobile)}.tag,.tag *{box-sizing:border-box}.tag ::slotted([slot="before"]){font-size:var(--px-icon-size-xs-mobile)}.light{background-color:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-body-default)}.outline{background-color:transparent;color:var(--px-color-txt-primary-default);border-color:var(--px-color-border-action-hover-default)}.pill{border-radius:var(--px-radius-pill)}:host([inverted]) .tag{background-color:var(--px-color-bg-action-secondary-inverted);color:var(--px-color-txt-primary-inverted)}:host([inverted]) .light{background-color:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-body-inverted)}:host([inverted]) .outline{background-color:transparent;color:var(--px-color-txt-primary-inverted);border-color:var(--px-color-border-action-hover-inverted)}@media only screen and (min-width: 64rem){.tag{font-size:var(--px-text-size-s-tablet);--slotted-icon-size: var(--px-icon-size-xs-tablet)}.tag ::slotted([slot="before"]){font-size:var(--px-icon-size-xs-tablet)}}@media only screen and (min-width: 90rem){.tag{font-size:var(--px-text-size-s-desktop);--slotted-icon-size: var(--px-icon-size-xs-desktop)}.tag ::slotted([slot="before"]){font-size:var(--px-icon-size-xs-desktop)}}';
|
|
2515
|
+
const styleSheet$4 = new CSSStyleSheet();
|
|
2516
|
+
styleSheet$4.replaceSync(styles$4);
|
|
2517
|
+
const variantValues$2 = ["", "default", "light", "outline"];
|
|
2518
|
+
const shapeValues = ["", "default", "pill"];
|
|
2500
2519
|
class Tag extends HTMLElement {
|
|
2501
|
-
constructor(semanticTokensStylesheet) {
|
|
2502
|
-
super();
|
|
2503
|
-
this.variantValues = ["", "default", "light", "outline"];
|
|
2504
|
-
this.shapeValues = ["", "default", "pill"];
|
|
2505
|
-
this.attachShadow({ mode: "open" });
|
|
2506
|
-
this.shadowRoot.innerHTML = this.template();
|
|
2507
|
-
this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$5];
|
|
2508
|
-
}
|
|
2509
2520
|
template() {
|
|
2510
2521
|
return `
|
|
2511
2522
|
<div class="tag">
|
|
@@ -2514,6 +2525,12 @@ class Tag extends HTMLElement {
|
|
|
2514
2525
|
</div>
|
|
2515
2526
|
`;
|
|
2516
2527
|
}
|
|
2528
|
+
constructor() {
|
|
2529
|
+
super();
|
|
2530
|
+
this.attachShadow({ mode: "open" });
|
|
2531
|
+
this.shadowRoot.innerHTML = this.template();
|
|
2532
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$4];
|
|
2533
|
+
}
|
|
2517
2534
|
static get observedAttributes() {
|
|
2518
2535
|
return ["variant", "shape", "inverted"];
|
|
2519
2536
|
}
|
|
@@ -2563,28 +2580,25 @@ class Tag extends HTMLElement {
|
|
|
2563
2580
|
}
|
|
2564
2581
|
updateVariant(oldValue, newValue) {
|
|
2565
2582
|
this._toggleClass(oldValue, newValue);
|
|
2566
|
-
if (!this.checkName(
|
|
2583
|
+
if (!this.checkName(variantValues$2, newValue)) {
|
|
2567
2584
|
console.error(`Bad "variant" value for tag`);
|
|
2568
2585
|
}
|
|
2569
2586
|
}
|
|
2570
2587
|
updateShape(oldValue, newValue) {
|
|
2571
2588
|
this._toggleClass(oldValue, newValue);
|
|
2572
|
-
if (!this.checkName(
|
|
2589
|
+
if (!this.checkName(shapeValues, newValue)) {
|
|
2573
2590
|
console.error(`Bad "shape" value for tag`);
|
|
2574
2591
|
}
|
|
2575
2592
|
}
|
|
2576
2593
|
}
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
super(proximusSemanticStyleSheet);
|
|
2580
|
-
}
|
|
2594
|
+
if (!customElements.get("px-tag")) {
|
|
2595
|
+
customElements.define("px-tag", Tag);
|
|
2581
2596
|
}
|
|
2582
|
-
|
|
2583
|
-
const
|
|
2584
|
-
|
|
2585
|
-
styleSheet$4.replaceSync(styles$4);
|
|
2597
|
+
const styles$3 = '*{font-family:var(--px-font-family)}#container{display:flex;flex-direction:column;align-items:flex-start;gap:var(--px-spacing-component-default-vertical)}#panels{width:100%}div[role=tablist]{display:flex;align-items:center;scrollbar-width:none;overflow:scroll;width:80vw;box-sizing:border-box}div[role=tablist] ::slotted(px-tab){background-color:var(--px-color-bg-container-weak-default)}div[role=tablist] ::slotted(px-tab[inverted=""]){background-color:var(--px-color-bg-container-weak-inverted)}div[role=tablist] ::slotted(px-tab[selected=""]){background-color:var(--px-color-bg-action-active-default);padding-block:var(--px-padding-m);border-radius:var(--px-radius-main)!important}div[role=tablist] ::slotted(px-tab[selected=""][inverted=""]){background-color:var(--px-color-bg-action-active-inverted)}div[role=tablist] ::slotted(px-tab:first-child){border-radius:var(--px-radius-main) var(--px-radius-none) var(--px-radius-none) var(--px-radius-main)}div[role=tablist] ::slotted(px-tab:last-of-type){border-radius:var(--px-radius-none) var(--px-radius-main) var(--px-radius-main) var(--px-radius-none)}div[role=tablist]::-webkit-scrollbar{display:none}button[role=tab]{background:none;border:none;padding:0;margin:0;cursor:pointer;height:inherit;width:inherit;padding:var(--px-padding-s);font-size:var(--px-text-size-base-mobile);font-weight:700;text-wrap:nowrap;color:var(--px-color-txt-body-default);outline:none}button[role=tab][inverted=""]{color:var(--px-color-txt-body-inverted)}@media screen and (min-width: 768px){button[role=tab]{font-size:var(--px-text-size-base-tablet)}}@media screen and (min-width: 1025px){button[role=tab]{font-size:var(--px-text-size-base-laptop)}}@media screen and (min-width: 1441px){button[role=tab]{font-size:var(--px-text-size-base-desktop)}}button[aria-selected=""]{padding-block:0;cursor:auto;color:var(--px-color-txt-primary-inverted)}button[aria-selected=""][inverted=""]{color:var(--px-color-txt-primary-default)}';
|
|
2598
|
+
const styleSheet$3 = new CSSStyleSheet();
|
|
2599
|
+
styleSheet$3.replaceSync(styles$3);
|
|
2586
2600
|
class Tabs extends HTMLElement {
|
|
2587
|
-
constructor(
|
|
2601
|
+
constructor() {
|
|
2588
2602
|
super();
|
|
2589
2603
|
this._label = `tabs-${Math.random().toString(36).substring(2, 15)}`;
|
|
2590
2604
|
this.template = () => `
|
|
@@ -2602,7 +2616,7 @@ class Tabs extends HTMLElement {
|
|
|
2602
2616
|
this._label = this.getAttribute("label");
|
|
2603
2617
|
}
|
|
2604
2618
|
this.shadowRoot.innerHTML = this.template();
|
|
2605
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2619
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$3];
|
|
2606
2620
|
}
|
|
2607
2621
|
static get observedAttributes() {
|
|
2608
2622
|
return ["label", "inverted"];
|
|
@@ -2613,9 +2627,6 @@ class Tabs extends HTMLElement {
|
|
|
2613
2627
|
}
|
|
2614
2628
|
}
|
|
2615
2629
|
connectedCallback() {
|
|
2616
|
-
replayAttributes(this, Tabs.observedAttributes, (name, value) => {
|
|
2617
|
-
this.attributeChangedCallback(name, null, value);
|
|
2618
|
-
});
|
|
2619
2630
|
this.addEventListener("click", (event) => {
|
|
2620
2631
|
var _a;
|
|
2621
2632
|
if ((_a = event.target.localName) == null ? void 0 : _a.endsWith("-tab")) {
|
|
@@ -2683,7 +2694,7 @@ class Tabs extends HTMLElement {
|
|
|
2683
2694
|
}
|
|
2684
2695
|
}
|
|
2685
2696
|
class Tab extends HTMLElement {
|
|
2686
|
-
constructor(
|
|
2697
|
+
constructor() {
|
|
2687
2698
|
super();
|
|
2688
2699
|
this.template = () => `
|
|
2689
2700
|
<button role="tab" aria-selected="false" type="button" tabindex="-1">
|
|
@@ -2692,15 +2703,12 @@ class Tab extends HTMLElement {
|
|
|
2692
2703
|
`;
|
|
2693
2704
|
this.attachShadow({ mode: "open" });
|
|
2694
2705
|
this.shadowRoot.innerHTML = this.template();
|
|
2695
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2706
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$3];
|
|
2696
2707
|
}
|
|
2697
2708
|
static get observedAttributes() {
|
|
2698
2709
|
return ["selected", "for", "name"];
|
|
2699
2710
|
}
|
|
2700
2711
|
connectedCallback() {
|
|
2701
|
-
replayAttributes(this, Tab.observedAttributes, (name, value) => {
|
|
2702
|
-
this.attributeChangedCallback(name, null, value);
|
|
2703
|
-
});
|
|
2704
2712
|
if (!this.name) {
|
|
2705
2713
|
console.error("Tab needs a name attribute");
|
|
2706
2714
|
}
|
|
@@ -2758,7 +2766,7 @@ class Tab extends HTMLElement {
|
|
|
2758
2766
|
}
|
|
2759
2767
|
}
|
|
2760
2768
|
class TabPanel extends HTMLElement {
|
|
2761
|
-
constructor(
|
|
2769
|
+
constructor() {
|
|
2762
2770
|
super();
|
|
2763
2771
|
this.template = () => `
|
|
2764
2772
|
<div role="tabpanel" aria-labelledby="${this.name}" tabindex="0">
|
|
@@ -2767,7 +2775,7 @@ class TabPanel extends HTMLElement {
|
|
|
2767
2775
|
`;
|
|
2768
2776
|
this.attachShadow({ mode: "open" });
|
|
2769
2777
|
this.shadowRoot.innerHTML = this.template();
|
|
2770
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2778
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$3];
|
|
2771
2779
|
}
|
|
2772
2780
|
static get observedAttributes() {
|
|
2773
2781
|
return ["name"];
|
|
@@ -2821,7 +2829,7 @@ class TabPanel extends HTMLElement {
|
|
|
2821
2829
|
}
|
|
2822
2830
|
class PxTabs extends Tabs {
|
|
2823
2831
|
constructor() {
|
|
2824
|
-
super(
|
|
2832
|
+
super();
|
|
2825
2833
|
this.querySelectorAll("px-tab").forEach((tab) => {
|
|
2826
2834
|
tab.setAttribute("slot", "tabs");
|
|
2827
2835
|
});
|
|
@@ -2832,7 +2840,7 @@ if (!customElements.get("px-tabs")) {
|
|
|
2832
2840
|
}
|
|
2833
2841
|
class PxTab extends Tab {
|
|
2834
2842
|
constructor() {
|
|
2835
|
-
super(
|
|
2843
|
+
super();
|
|
2836
2844
|
}
|
|
2837
2845
|
}
|
|
2838
2846
|
if (!customElements.get("px-tab")) {
|
|
@@ -2840,15 +2848,15 @@ if (!customElements.get("px-tab")) {
|
|
|
2840
2848
|
}
|
|
2841
2849
|
class PxTabPanel extends TabPanel {
|
|
2842
2850
|
constructor() {
|
|
2843
|
-
super(
|
|
2851
|
+
super();
|
|
2844
2852
|
}
|
|
2845
2853
|
}
|
|
2846
2854
|
if (!customElements.get("px-tab-panel")) {
|
|
2847
2855
|
customElements.define("px-tab-panel", PxTabPanel);
|
|
2848
2856
|
}
|
|
2849
|
-
const styles$
|
|
2850
|
-
const styleSheet$
|
|
2851
|
-
styleSheet$
|
|
2857
|
+
const styles$2 = ".timeline{list-style:none;margin:0;padding:0}";
|
|
2858
|
+
const styleSheet$2 = new CSSStyleSheet();
|
|
2859
|
+
styleSheet$2.replaceSync(styles$2);
|
|
2852
2860
|
class Timeline extends HTMLElement {
|
|
2853
2861
|
template() {
|
|
2854
2862
|
return `
|
|
@@ -2857,19 +2865,16 @@ class Timeline extends HTMLElement {
|
|
|
2857
2865
|
</ol>
|
|
2858
2866
|
`;
|
|
2859
2867
|
}
|
|
2860
|
-
constructor(
|
|
2868
|
+
constructor() {
|
|
2861
2869
|
super();
|
|
2862
2870
|
this.attachShadow({ mode: "open" });
|
|
2863
2871
|
this.shadowRoot.innerHTML = this.template();
|
|
2864
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2872
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$2];
|
|
2865
2873
|
}
|
|
2866
2874
|
static get observedAttributes() {
|
|
2867
2875
|
return ["inverted"];
|
|
2868
2876
|
}
|
|
2869
2877
|
connectedCallback() {
|
|
2870
|
-
replayAttributes(this, Timeline.observedAttributes, (name, value) => {
|
|
2871
|
-
this.attributeChangedCallback(name, null, value);
|
|
2872
|
-
});
|
|
2873
2878
|
this.configureChildren();
|
|
2874
2879
|
}
|
|
2875
2880
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -2903,15 +2908,12 @@ class Timeline extends HTMLElement {
|
|
|
2903
2908
|
this.setAttribute("inverted", value);
|
|
2904
2909
|
}
|
|
2905
2910
|
}
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
super(proximusSemanticStyleSheet);
|
|
2909
|
-
}
|
|
2911
|
+
if (!customElements.get("px-timeline")) {
|
|
2912
|
+
customElements.define("px-timeline", Timeline);
|
|
2910
2913
|
}
|
|
2911
|
-
|
|
2912
|
-
const
|
|
2913
|
-
|
|
2914
|
-
styleSheet$2.replaceSync(styles$2);
|
|
2914
|
+
const styles$1 = '.timeline-item{display:flex;gap:var(--px-spacing-text-to-icon-horizontal);font-family:var(--px-font-family);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m)}.indicator-area{position:relative}.indicator-area:before{display:block;content:"";position:absolute;top:26px;left:12px;width:var(--px-border-m);height:calc(100% - 26px);background:var(--px-color-border-main-default)}.indicator-area .indicator{display:flex;align-items:center;justify-content:center;text-align:center;width:26px;height:26px;font-weight:700;font-size:var(--px-text-size-s-mobile);color:var(--px-color-icon-body-default);border-radius:var(--px-radius-pill);background:var(--px-color-bg-container-weak-default)}.content-area{margin-bottom:var(--px-spacing-component-default-vertical)}.content-area ::slotted([slot="title"]){font-weight:700;color:var(--px-color-txt-body-default)}.content-area ::slotted([slot="content"]){font-weight:400;color:var(--px-color-txt-details-default);margin-top:var(--px-spacing-under-text-vertical)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator-area .indicator{color:var(--px-color-icon-body-inverted);background:var(--px-color-bg-container-weak-inverted)}:host([inverted]) .content-area ::slotted([slot="title"]){color:var(--px-color-txt-body-inverted)}:host([inverted]) .content-area ::slotted([slot="content"]){color:var(--px-color-txt-details-inverted)}@media only screen and (min-width: 64rem){.timeline-item{font-size:var(--px-text-size-base-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-s-tablet)}}@media only screen and (min-width: 90rem){.timeline-item{font-size:var(--px-text-size-base-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-s-desktop)}}';
|
|
2915
|
+
const styleSheet$1 = new CSSStyleSheet();
|
|
2916
|
+
styleSheet$1.replaceSync(styles$1);
|
|
2915
2917
|
let item = "1";
|
|
2916
2918
|
class TimelineItem extends HTMLElement {
|
|
2917
2919
|
template() {
|
|
@@ -2927,23 +2929,15 @@ class TimelineItem extends HTMLElement {
|
|
|
2927
2929
|
</li>
|
|
2928
2930
|
`;
|
|
2929
2931
|
}
|
|
2930
|
-
constructor(
|
|
2932
|
+
constructor() {
|
|
2931
2933
|
super();
|
|
2932
2934
|
this.attachShadow({ mode: "open" });
|
|
2933
2935
|
this.shadowRoot.innerHTML = this.template();
|
|
2934
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2935
|
-
semanticTokensStylesheet,
|
|
2936
|
-
styleSheet$2
|
|
2937
|
-
];
|
|
2936
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$1];
|
|
2938
2937
|
}
|
|
2939
2938
|
static get observedAttributes() {
|
|
2940
2939
|
return ["inverted", "lastchild", "item"];
|
|
2941
2940
|
}
|
|
2942
|
-
connectedCallback() {
|
|
2943
|
-
replayAttributes(this, TimelineItem.observedAttributes, (name, value) => {
|
|
2944
|
-
this.attributeChangedCallback(name, null, value);
|
|
2945
|
-
});
|
|
2946
|
-
}
|
|
2947
2941
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
2948
2942
|
if (oldValue !== newValue) {
|
|
2949
2943
|
switch (attrName) {
|
|
@@ -2988,16 +2982,13 @@ class TimelineItem extends HTMLElement {
|
|
|
2988
2982
|
this.setAttribute("item", value);
|
|
2989
2983
|
}
|
|
2990
2984
|
}
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
super(proximusSemanticStyleSheet);
|
|
2994
|
-
}
|
|
2985
|
+
if (!customElements.get("px-timeline-item")) {
|
|
2986
|
+
customElements.define("px-timeline-item", TimelineItem);
|
|
2995
2987
|
}
|
|
2996
|
-
|
|
2997
|
-
const styles$1 = "px-container{width:1000px;display:block;border:0;border-radius:var(--px-radius-s)}@media screen and (max-width: 1025px){px-container{width:700px}}@media screen and (max-width: 640px){px-container{width:295px}}";
|
|
2988
|
+
const styles = "px-container{width:1000px;display:block;border:0;border-radius:var(--px-radius-main)}@media screen and (max-width: 1025px){px-container{width:700px}}@media screen and (max-width: 640px){px-container{width:295px}}";
|
|
2998
2989
|
const lightStyles$1 = ".lavender-blurred-modal-background{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000c;z-index:999;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}";
|
|
2999
|
-
const styleSheet
|
|
3000
|
-
styleSheet
|
|
2990
|
+
const styleSheet = new CSSStyleSheet();
|
|
2991
|
+
styleSheet.replaceSync(styles);
|
|
3001
2992
|
addGlobalStylesheet(lightStyles$1);
|
|
3002
2993
|
class Modal extends HTMLElement {
|
|
3003
2994
|
constructor() {
|
|
@@ -3018,11 +3009,13 @@ class Modal extends HTMLElement {
|
|
|
3018
3009
|
</px-container>`;
|
|
3019
3010
|
this.attachShadow({ mode: "open" });
|
|
3020
3011
|
this.shadowRoot.innerHTML = this.template;
|
|
3021
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
3012
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
3022
3013
|
}
|
|
3023
3014
|
connectedCallback() {
|
|
3024
3015
|
var _a;
|
|
3025
|
-
const targetButtonList = document.querySelectorAll(
|
|
3016
|
+
const targetButtonList = document.querySelectorAll(
|
|
3017
|
+
`px-button[popovertarget="${this.getAttribute("id")}"]`
|
|
3018
|
+
);
|
|
3026
3019
|
targetButtonList.forEach((targetButton) => {
|
|
3027
3020
|
targetButton.onclick = (event) => {
|
|
3028
3021
|
var _a2;
|
|
@@ -3047,7 +3040,9 @@ class Modal extends HTMLElement {
|
|
|
3047
3040
|
displayBlurredBackground() {
|
|
3048
3041
|
this.blurredBackground = document.createElement("div");
|
|
3049
3042
|
this.blurredBackground.id = "popover-background";
|
|
3050
|
-
this.blurredBackground.classList.toggle(
|
|
3043
|
+
this.blurredBackground.classList.toggle(
|
|
3044
|
+
"lavender-blurred-modal-background"
|
|
3045
|
+
);
|
|
3051
3046
|
this.blurredBackground.addEventListener("click", (event) => {
|
|
3052
3047
|
if (this.open && !this.contains(event.target)) {
|
|
3053
3048
|
this._hidePopover();
|
|
@@ -3068,14 +3063,14 @@ class Modal extends HTMLElement {
|
|
|
3068
3063
|
if (!customElements.get("px-modal")) {
|
|
3069
3064
|
customElements.define("px-modal", Modal);
|
|
3070
3065
|
}
|
|
3071
|
-
const spanCss = "span,::slotted(span){font-family:
|
|
3066
|
+
const spanCss = "span,::slotted(span){font-family:var(--px-font-family);color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m)}:host([inverted]) span,:host([inverted]) ::slotted(span){color:var(--px-color-txt-body-inverted)}span.link{text-decoration:underline}@media only screen and (min-width: 64rem){span,::slotted(span){font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 90rem){span,::slotted(span){font-size:var(--px-text-size-base-desktop)}}";
|
|
3072
3067
|
const spanStyles$1 = new CSSStyleSheet();
|
|
3073
3068
|
const typographyStyles$3 = new CSSStyleSheet();
|
|
3074
3069
|
spanStyles$1.replaceSync(spanCss);
|
|
3075
3070
|
typographyStyles$3.replaceSync(typographyCss$1);
|
|
3076
3071
|
const _Span = class _Span extends PxElement {
|
|
3077
3072
|
constructor() {
|
|
3078
|
-
super(
|
|
3073
|
+
super(spanStyles$1, typographyStyles$3);
|
|
3079
3074
|
this.template = () => `<span>
|
|
3080
3075
|
<slot name="before"></slot>
|
|
3081
3076
|
<slot></slot>
|
|
@@ -3084,7 +3079,13 @@ const _Span = class _Span extends PxElement {
|
|
|
3084
3079
|
this.shadowRoot.innerHTML = this.template();
|
|
3085
3080
|
}
|
|
3086
3081
|
static get observedAttributes() {
|
|
3087
|
-
return [
|
|
3082
|
+
return [
|
|
3083
|
+
...super.observedAttributes,
|
|
3084
|
+
"color",
|
|
3085
|
+
"fontsize",
|
|
3086
|
+
"fontweight",
|
|
3087
|
+
"inverted"
|
|
3088
|
+
];
|
|
3088
3089
|
}
|
|
3089
3090
|
get color() {
|
|
3090
3091
|
return this.getAttribute("color");
|
|
@@ -3118,7 +3119,7 @@ const _Span = class _Span extends PxElement {
|
|
|
3118
3119
|
if (oldValue !== newValue) {
|
|
3119
3120
|
switch (attrName) {
|
|
3120
3121
|
case "color":
|
|
3121
|
-
this.updateTypography(attrName, oldValue, newValue, colorValues$
|
|
3122
|
+
this.updateTypography(attrName, oldValue, newValue, colorValues$1);
|
|
3122
3123
|
break;
|
|
3123
3124
|
case "fontsize":
|
|
3124
3125
|
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
@@ -3150,16 +3151,25 @@ const _Span = class _Span extends PxElement {
|
|
|
3150
3151
|
_Span.nativeName = "span";
|
|
3151
3152
|
let Span = _Span;
|
|
3152
3153
|
customElements.define("px-span", Span);
|
|
3154
|
+
const linkCss = 'a,.link,::slotted(a){font-family:var(--px-font-family);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m);font-weight:500;color:var(--px-color-txt-body-default)}a:hover,a:focus,.link:hover,.link:focus{color:var(--px-color-txt-hover-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-txt-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-text-to-icon-compact-horizontal)}a ::slotted(*),.link ::slotted(*){display:inline-block}::slotted(a:hover),::slotted(a:focus){color:var(--px-color-txt-hover-default)}a.no-style{color:inherit;text-decoration:none}a.no-style:hover,a.no-style:focus{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-bg-container-weak-default);padding:var(--px-padding-xs)}a.skip-link:focus{left:auto;z-index:999}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-txt-body-inverted)}:host([inverted]) a:hover,:host([inverted]) a:focus,:host([inverted]) .link:hover,:host([inverted]) .link:focus{color:var(--px-color-txt-hover-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) ::slotted(a:hover),:host([inverted]) ::slotted(a:focus){color:var(--px-color-txt-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-bg-container-weak-inverted)}@media only screen and (min-width: 64rem){a,.link,::slotted(a){font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 90rem){a,.link,::slotted(a){font-size:var(--px-text-size-base-desktop)}}';
|
|
3155
|
+
const buttonCss = '.btn{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m);font-weight:700;gap:var(--px-spacing-between-icon-horizontal-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-border-m) solid transparent;--slotted-icon-size: var(--px-icon-size-xs-mobile)}.btn,.btn *{box-sizing:border-box}.btn:hover:not([disabled],[aria-disabled=true],.loading),.btn:focus:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-action-hover-default);outline:0}.btn:active{transform:scale(.95)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:var(--px-line-height-xs)}.btn:not(.secondary,.tertiary,.patch){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-primary-default);min-height:var(--px-size-action-mobile);padding:0 var(--px-padding-m);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch):hover:not([disabled],[aria-disabled=true],.loading),.btn:not(.secondary,.tertiary,.patch):focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch)[disabled],.btn:not(.secondary,.tertiary,.patch)[aria-disabled=true]{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-disabled-default)}.btn:not(.secondary,.tertiary,.patch).loading{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-primary-default);border-color:transparent}.btn:not(.secondary,.tertiary,.patch).extended{width:100%}.btn:not(.secondary,.tertiary,.patch).alternative{border-radius:var(--px-radius-button-small)}.btn.secondary{color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-secondary-default);min-height:var(--px-size-action-mobile);padding:0 var(--px-padding-m);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading),.btn.secondary:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-disabled-default)}.btn.secondary.loading{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-primary-default);border-color:transparent}.btn.secondary.extended{width:100%}.btn.secondary.alternative{border-radius:var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-txt-primary-default);border-radius:var(--px-radius-pill);padding:0}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);font-size:var(--px-icon-size-2xs-mobile);border-radius:var(--px-radius-pill);background:var(--px-color-bg-action-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading){gap:0;padding:0 .5rem}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(*),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted(*){background:transparent}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){margin:0 -8px}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="before"]),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="before"]){margin:0 0 0 -.5rem}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="after"]),.btn.tertiary:focus:not([disabled],[aria-disabled=true],.loading) ::slotted([slot="after"]){margin:0 -.5rem 0 0}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-txt-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-bg-action-disabled-default)}.btn.tertiary.loading{color:var(--px-color-txt-primary-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);border-radius:var(--px-radius-pill);background:var(--px-color-bg-action-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading),.btn.patch:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-bg-action-disabled-default);color:var(--px-color-txt-disabled-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-txt-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn:focus:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-action-hover-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch){color:var(--px-color-txt-primary-default);background:var(--px-color-bg-action-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch):hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn:not(.secondary,.tertiary,.patch):focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-hover-bordered-default-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch)[aria-disabled=true]{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch).loading{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-primary-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn.secondary:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-hover-bordered-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-primary-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-bg-action-secondary-inverted)}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-txt-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-txt-primary-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-bg-action-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading),:host([inverted]) .btn.patch:focus:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-txt-primary-inverted);background:var(--px-color-bg-action-hover-bordered-default-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-bg-action-disabled-inverted);color:var(--px-color-txt-disabled-inverted)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-txt-disabled-inverted)}@media only screen and (min-width: 640px){.btn{font-size:var(--px-text-size-base-tablet);--slotted-icon-size: var(--px-icon-size-xs-tablet)}.btn:not(.secondary,.tertiary,.patch){min-height:var(--px-size-action-desktop)}.btn.secondary{min-height:var(--px-size-action-desktop)}.btn.tertiary ::slotted(px-spinner){width:var(--px-icon-size-m-tablet);height:var(--px-icon-size-m-tablet)}}@media only screen and (min-width: 640px){.btn{font-size:var(--px-text-size-base-desktop);--slotted-icon-size: var(--px-icon-size-xs-desktop)}.btn.tertiary ::slotted(px-spinner){width:var(--px-icon-size-m-desktop);height:var(--px-icon-size-m-desktop)}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}';
|
|
3153
3156
|
const linkStyles$1 = new CSSStyleSheet();
|
|
3154
3157
|
const buttonStyles = new CSSStyleSheet();
|
|
3155
3158
|
const typographyStyles$2 = new CSSStyleSheet();
|
|
3156
3159
|
linkStyles$1.replaceSync(linkCss);
|
|
3157
3160
|
buttonStyles.replaceSync(buttonCss);
|
|
3158
3161
|
typographyStyles$2.replaceSync(typographyCss$1);
|
|
3162
|
+
const variantValues$1 = [
|
|
3163
|
+
"link",
|
|
3164
|
+
"no-style",
|
|
3165
|
+
"skip-link",
|
|
3166
|
+
"btn-default",
|
|
3167
|
+
"btn-secondary",
|
|
3168
|
+
"btn-tertiary"
|
|
3169
|
+
];
|
|
3159
3170
|
const _Link = class _Link extends PxElement {
|
|
3160
|
-
constructor(
|
|
3161
|
-
super(
|
|
3162
|
-
this.variantValues = ["link", "no-style", "skip-link", "btn-default", "btn-secondary", "btn-tertiary"];
|
|
3171
|
+
constructor() {
|
|
3172
|
+
super(linkStyles$1, buttonStyles, typographyStyles$2);
|
|
3163
3173
|
this.shapeValues = ["", "default", "alternative"];
|
|
3164
3174
|
this.template = () => `<slot name="before"></slot><slot></slot><slot name="after"></slot>`;
|
|
3165
3175
|
const $root = document.createElement(this.nativeName);
|
|
@@ -3167,7 +3177,17 @@ const _Link = class _Link extends PxElement {
|
|
|
3167
3177
|
this.shadowRoot.appendChild($root);
|
|
3168
3178
|
}
|
|
3169
3179
|
static get observedAttributes() {
|
|
3170
|
-
return [
|
|
3180
|
+
return [
|
|
3181
|
+
...super.observedAttributes,
|
|
3182
|
+
"disabled",
|
|
3183
|
+
"variant",
|
|
3184
|
+
"shape",
|
|
3185
|
+
"extended",
|
|
3186
|
+
"inverted",
|
|
3187
|
+
"fontsize",
|
|
3188
|
+
"color",
|
|
3189
|
+
"fontweight"
|
|
3190
|
+
];
|
|
3171
3191
|
}
|
|
3172
3192
|
get disabled() {
|
|
3173
3193
|
return this.getAttribute("disabled");
|
|
@@ -3239,7 +3259,7 @@ const _Link = class _Link extends PxElement {
|
|
|
3239
3259
|
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
3240
3260
|
break;
|
|
3241
3261
|
case "color":
|
|
3242
|
-
this.updateTypography(attrName, oldValue, newValue, colorValues$
|
|
3262
|
+
this.updateTypography(attrName, oldValue, newValue, colorValues$1);
|
|
3243
3263
|
break;
|
|
3244
3264
|
case "fontweight":
|
|
3245
3265
|
this.updateTypography(attrName, oldValue, newValue, fontweightValues);
|
|
@@ -3270,7 +3290,7 @@ const _Link = class _Link extends PxElement {
|
|
|
3270
3290
|
if (newValue !== null && newValue !== "" && newValue !== "link") {
|
|
3271
3291
|
this._toggleClassList(newValue);
|
|
3272
3292
|
}
|
|
3273
|
-
if (!this.checkName(
|
|
3293
|
+
if (!this.checkName(variantValues$1, newValue)) {
|
|
3274
3294
|
console.error(`Bad "variant" value for ${this.$el}`);
|
|
3275
3295
|
}
|
|
3276
3296
|
}
|
|
@@ -3299,29 +3319,44 @@ const _Link = class _Link extends PxElement {
|
|
|
3299
3319
|
};
|
|
3300
3320
|
_Link.nativeName = "a";
|
|
3301
3321
|
let Link = _Link;
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
super(proximusSemanticStyleSheet);
|
|
3305
|
-
}
|
|
3322
|
+
if (!customElements.get("px-a")) {
|
|
3323
|
+
customElements.define("px-a", Link);
|
|
3306
3324
|
}
|
|
3307
|
-
|
|
3308
|
-
const paragraphCss = "p,::slotted(p){font-family:Proximus,Verdana,Helvetica,sans-serif;color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-base-mobile);margin:0}.textalign-left{text-align:left}.textalign-center{text-align:center}.textalign-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-txt-body-inverted)}@media only screen and (min-width: 64rem){p,::slotted(p){font-size:var(--px-text-size-base-tablet);line-height:var(--px-line-height-base-tablet)}}@media only screen and (min-width: 90rem){p,::slotted(p){font-size:var(--px-text-size-base-desktop);line-height:var(--px-line-height-base-desktop)}}";
|
|
3325
|
+
const paragraphCss = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-color-txt-body-default);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m);margin:0}.textalign-left{text-align:left}.textalign-center{text-align:center}.textalign-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-txt-body-inverted)}@media only screen and (min-width: 64rem){p,::slotted(p){font-size:var(--px-text-size-base-tablet)}}@media only screen and (min-width: 90rem){p,::slotted(p){font-size:var(--px-text-size-base-desktop)}}";
|
|
3309
3326
|
const paragraphStyles$1 = new CSSStyleSheet();
|
|
3310
3327
|
const typographyStyles$1 = new CSSStyleSheet();
|
|
3311
3328
|
const headingStyles$1 = new CSSStyleSheet();
|
|
3312
3329
|
paragraphStyles$1.replaceSync(paragraphCss);
|
|
3313
3330
|
typographyStyles$1.replaceSync(typographyCss$1);
|
|
3314
3331
|
headingStyles$1.replaceSync(headingCss);
|
|
3315
|
-
const variantValues = [
|
|
3332
|
+
const variantValues = [
|
|
3333
|
+
"",
|
|
3334
|
+
"default",
|
|
3335
|
+
"h1",
|
|
3336
|
+
"h2",
|
|
3337
|
+
"h3",
|
|
3338
|
+
"h4",
|
|
3339
|
+
"h5",
|
|
3340
|
+
"h6",
|
|
3341
|
+
"subtitle"
|
|
3342
|
+
];
|
|
3316
3343
|
const textalignValues = ["", "default", "left", "center", "right"];
|
|
3317
3344
|
const _Paragraph = class _Paragraph extends PxElement {
|
|
3318
3345
|
constructor() {
|
|
3319
|
-
super(
|
|
3346
|
+
super(paragraphStyles$1, typographyStyles$1, headingStyles$1);
|
|
3320
3347
|
this.template = () => `<p><slot></slot></p>`;
|
|
3321
3348
|
this.shadowRoot.innerHTML = this.template();
|
|
3322
3349
|
}
|
|
3323
3350
|
static get observedAttributes() {
|
|
3324
|
-
return [
|
|
3351
|
+
return [
|
|
3352
|
+
...super.observedAttributes,
|
|
3353
|
+
"variant",
|
|
3354
|
+
"color",
|
|
3355
|
+
"fontsize",
|
|
3356
|
+
"fontweight",
|
|
3357
|
+
"textalign",
|
|
3358
|
+
"inverted"
|
|
3359
|
+
];
|
|
3325
3360
|
}
|
|
3326
3361
|
get variant() {
|
|
3327
3362
|
return this.getAttribute("variant");
|
|
@@ -3366,7 +3401,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
3366
3401
|
this.updateAttribute(attrName, oldValue, newValue, variantValues);
|
|
3367
3402
|
break;
|
|
3368
3403
|
case "color":
|
|
3369
|
-
this.updateTypography(attrName, oldValue, newValue, colorValues$
|
|
3404
|
+
this.updateTypography(attrName, oldValue, newValue, colorValues$1);
|
|
3370
3405
|
break;
|
|
3371
3406
|
case "fontsize":
|
|
3372
3407
|
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
@@ -3415,29 +3450,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
3415
3450
|
_Paragraph.nativeName = "p";
|
|
3416
3451
|
let Paragraph = _Paragraph;
|
|
3417
3452
|
customElements.define("px-p", Paragraph);
|
|
3418
|
-
const
|
|
3419
|
-
const styleSheet = new CSSStyleSheet();
|
|
3420
|
-
styleSheet.replaceSync(styles);
|
|
3421
|
-
class HeadingGroup extends HTMLElement {
|
|
3422
|
-
template() {
|
|
3423
|
-
return `
|
|
3424
|
-
<div>
|
|
3425
|
-
<slot></slot>
|
|
3426
|
-
</div>
|
|
3427
|
-
`;
|
|
3428
|
-
}
|
|
3429
|
-
constructor() {
|
|
3430
|
-
super();
|
|
3431
|
-
this.attachShadow({ mode: "open" });
|
|
3432
|
-
this.shadowRoot.innerHTML = this.template();
|
|
3433
|
-
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
3434
|
-
}
|
|
3435
|
-
get $el() {
|
|
3436
|
-
return this.shadowRoot.querySelector("div");
|
|
3437
|
-
}
|
|
3438
|
-
}
|
|
3439
|
-
customElements.define("px-heading-group", HeadingGroup);
|
|
3440
|
-
const typographyCss = ":host{font-family:Proximus,Verdana,Helvetica,sans-serif}::slotted(ul),::slotted(ol){margin:0 0 0 var(--px-spacing-component-default-horizontal);padding:0}::slotted(b),::slotted(strong){font-weight:700}:host([inverted]) slot{color:var(--px-color-txt-body-inverted)}";
|
|
3453
|
+
const typographyCss = "*{font-family:var(--px-font-family)}::slotted(ul),::slotted(ol){margin:0 0 0 var(--px-spacing-component-default-horizontal);padding:0}::slotted(b),::slotted(strong){font-weight:700}:host([inverted]) slot{color:var(--px-color-txt-body-inverted)}";
|
|
3441
3454
|
const lightStyles = ".li{padding-bottom:var(--px-padding-xs)}";
|
|
3442
3455
|
const typographyStyles = new CSSStyleSheet();
|
|
3443
3456
|
const headingStyles = new CSSStyleSheet();
|
|
@@ -3457,7 +3470,6 @@ class Typography extends HTMLElement {
|
|
|
3457
3470
|
this.attachShadow({ mode: "open" });
|
|
3458
3471
|
this.shadowRoot.innerHTML = this.template();
|
|
3459
3472
|
this.shadowRoot.adoptedStyleSheets = [
|
|
3460
|
-
proximusSemanticStyleSheet,
|
|
3461
3473
|
typographyStyles,
|
|
3462
3474
|
headingStyles,
|
|
3463
3475
|
linkStyles,
|
|
@@ -3484,6 +3496,7 @@ customElements.define("px-typography", Typography);
|
|
|
3484
3496
|
export {
|
|
3485
3497
|
Accordion,
|
|
3486
3498
|
Container,
|
|
3499
|
+
FontIcon,
|
|
3487
3500
|
H1,
|
|
3488
3501
|
H2,
|
|
3489
3502
|
H3,
|
|
@@ -3491,32 +3504,28 @@ export {
|
|
|
3491
3504
|
H5,
|
|
3492
3505
|
H6,
|
|
3493
3506
|
HStack,
|
|
3494
|
-
|
|
3495
|
-
Icon,
|
|
3507
|
+
IconSet,
|
|
3496
3508
|
Image,
|
|
3509
|
+
Link,
|
|
3497
3510
|
Modal,
|
|
3498
3511
|
Page,
|
|
3499
3512
|
Paragraph,
|
|
3513
|
+
Patch,
|
|
3500
3514
|
Picture,
|
|
3501
3515
|
Price,
|
|
3502
|
-
ProximusButton,
|
|
3503
|
-
ProximusLink,
|
|
3504
|
-
ProximusPatch,
|
|
3505
|
-
ProximusSection,
|
|
3506
|
-
ProximusTag,
|
|
3507
|
-
ProximusTimeline,
|
|
3508
|
-
ProximusTimelineItem,
|
|
3509
3516
|
PxElement,
|
|
3510
|
-
PxStack,
|
|
3511
3517
|
PxTab,
|
|
3512
3518
|
PxTabPanel,
|
|
3513
3519
|
PxTabs,
|
|
3514
3520
|
Ribbon,
|
|
3515
|
-
|
|
3521
|
+
SVGIcon,
|
|
3516
3522
|
Separator,
|
|
3517
3523
|
Spacer,
|
|
3518
3524
|
Span,
|
|
3519
3525
|
Stack,
|
|
3526
|
+
Tag,
|
|
3527
|
+
Timeline,
|
|
3528
|
+
TimelineItem,
|
|
3520
3529
|
Typography,
|
|
3521
3530
|
VStack,
|
|
3522
3531
|
WithFlexAttributes,
|
|
@@ -3524,17 +3533,16 @@ export {
|
|
|
3524
3533
|
bgColorValues,
|
|
3525
3534
|
borderRadiusValues,
|
|
3526
3535
|
borderValues,
|
|
3527
|
-
colorValues$
|
|
3536
|
+
colorValues$1 as colorValues,
|
|
3528
3537
|
fontsizeValues,
|
|
3529
3538
|
fontweightValues,
|
|
3530
|
-
gapValues,
|
|
3531
3539
|
getSupportedAttributeNames,
|
|
3532
3540
|
getViewportFormat,
|
|
3533
3541
|
gradientValues,
|
|
3534
|
-
iconSizeValues,
|
|
3542
|
+
iconSizeValues$1 as iconSizeValues,
|
|
3535
3543
|
isFalsy,
|
|
3536
3544
|
paddingValues,
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3545
|
+
shadowValues,
|
|
3546
|
+
sizeValues$1 as sizeValues,
|
|
3547
|
+
textalignValues
|
|
3540
3548
|
};
|