@proximus/lavender 1.0.0-alpha.13 → 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 +600 -543
- 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);
|
|
@@ -23,7 +23,11 @@ class WithFlexAttributes extends HTMLElement {
|
|
|
23
23
|
"basis-tablet",
|
|
24
24
|
"basis-laptop",
|
|
25
25
|
"basis-desktop",
|
|
26
|
-
"align-self"
|
|
26
|
+
"align-self",
|
|
27
|
+
"hidden-mobile",
|
|
28
|
+
"hidden-tablet",
|
|
29
|
+
"hidden-laptop",
|
|
30
|
+
"hidden-desktop"
|
|
27
31
|
];
|
|
28
32
|
}
|
|
29
33
|
constructor(...adoptedStylesheets) {
|
|
@@ -164,6 +168,30 @@ class WithFlexAttributes extends HTMLElement {
|
|
|
164
168
|
get $el() {
|
|
165
169
|
return this;
|
|
166
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
|
+
}
|
|
167
195
|
}
|
|
168
196
|
class PxElement extends WithFlexAttributes {
|
|
169
197
|
static get observedAttributes() {
|
|
@@ -180,8 +208,8 @@ class PxElement extends WithFlexAttributes {
|
|
|
180
208
|
this.$el.setAttribute(name, newValue);
|
|
181
209
|
}
|
|
182
210
|
}
|
|
183
|
-
constructor(
|
|
184
|
-
super(
|
|
211
|
+
constructor(...adoptedStylesheets) {
|
|
212
|
+
super(...adoptedStylesheets);
|
|
185
213
|
this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
|
|
186
214
|
}
|
|
187
215
|
connectedCallback() {
|
|
@@ -222,23 +250,21 @@ const fontsizeValues = [
|
|
|
222
250
|
"6xl",
|
|
223
251
|
"7xl"
|
|
224
252
|
];
|
|
225
|
-
const colorValues$
|
|
253
|
+
const colorValues$1 = [
|
|
226
254
|
"",
|
|
227
255
|
"default",
|
|
228
256
|
"inherit",
|
|
229
257
|
"primary",
|
|
230
|
-
"inverted-primary",
|
|
231
|
-
"inverted",
|
|
232
258
|
"body",
|
|
233
259
|
"details",
|
|
234
260
|
"hover",
|
|
235
261
|
"disabled",
|
|
236
262
|
"active",
|
|
237
263
|
"promo",
|
|
238
|
-
"
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"
|
|
264
|
+
"success",
|
|
265
|
+
"warning",
|
|
266
|
+
"error",
|
|
267
|
+
"unlimited"
|
|
242
268
|
];
|
|
243
269
|
const fontweightValues = [
|
|
244
270
|
"",
|
|
@@ -249,7 +275,7 @@ const fontweightValues = [
|
|
|
249
275
|
"extrabold",
|
|
250
276
|
"light"
|
|
251
277
|
];
|
|
252
|
-
const iconSizeValues = [
|
|
278
|
+
const iconSizeValues$1 = [
|
|
253
279
|
"",
|
|
254
280
|
"default",
|
|
255
281
|
"2xs",
|
|
@@ -262,17 +288,7 @@ const iconSizeValues = [
|
|
|
262
288
|
];
|
|
263
289
|
const paddingValues = ["", "none", "2xs", "xs", "s", "m", "l", "xl"];
|
|
264
290
|
const borderValues = ["", "none", "s", "m", "l"];
|
|
265
|
-
const borderRadiusValues = [
|
|
266
|
-
"",
|
|
267
|
-
"none",
|
|
268
|
-
"xs",
|
|
269
|
-
"s",
|
|
270
|
-
"m",
|
|
271
|
-
"l",
|
|
272
|
-
"xl",
|
|
273
|
-
"2xl",
|
|
274
|
-
"pill"
|
|
275
|
-
];
|
|
291
|
+
const borderRadiusValues = ["", "none", "main", "pill"];
|
|
276
292
|
const bgColorValues = [
|
|
277
293
|
"",
|
|
278
294
|
"none",
|
|
@@ -290,6 +306,7 @@ const bgColorValues = [
|
|
|
290
306
|
"canvas-rich",
|
|
291
307
|
"action-primary",
|
|
292
308
|
"action-secondary",
|
|
309
|
+
"action-hover-bordered",
|
|
293
310
|
"action-hover",
|
|
294
311
|
"action-disabled",
|
|
295
312
|
"action-active",
|
|
@@ -369,12 +386,9 @@ function getViewportFormat() {
|
|
|
369
386
|
return "mobile";
|
|
370
387
|
}
|
|
371
388
|
}
|
|
372
|
-
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}";
|
|
373
|
-
const proximusSemanticStyleSheet = new CSSStyleSheet();
|
|
374
|
-
proximusSemanticStyleSheet.replaceSync(semanticStylesheet);
|
|
375
|
-
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)}}";
|
|
376
390
|
const styleSheet$d = new CSSStyleSheet();
|
|
377
|
-
styleSheet$d.replaceSync(styles$
|
|
391
|
+
styleSheet$d.replaceSync(styles$d);
|
|
378
392
|
const gapValues = [
|
|
379
393
|
// Vertical
|
|
380
394
|
"between-section-vertical",
|
|
@@ -405,8 +419,8 @@ const gapValues = [
|
|
|
405
419
|
"component-default-horizontal-mobile"
|
|
406
420
|
];
|
|
407
421
|
class Stack extends WithFlexAttributes {
|
|
408
|
-
constructor(
|
|
409
|
-
super(
|
|
422
|
+
constructor() {
|
|
423
|
+
super(styleSheet$d);
|
|
410
424
|
this.template = `<div class="flex-container">
|
|
411
425
|
<slot></slot>
|
|
412
426
|
</div>`;
|
|
@@ -752,9 +766,12 @@ class Stack extends WithFlexAttributes {
|
|
|
752
766
|
return this.shadowRoot.querySelector(".flex-container");
|
|
753
767
|
}
|
|
754
768
|
}
|
|
769
|
+
if (!customElements.get("px-stack")) {
|
|
770
|
+
customElements.define("px-stack", Stack);
|
|
771
|
+
}
|
|
755
772
|
class VStack extends Stack {
|
|
756
|
-
constructor(
|
|
757
|
-
super(
|
|
773
|
+
constructor() {
|
|
774
|
+
super();
|
|
758
775
|
}
|
|
759
776
|
connectedCallback() {
|
|
760
777
|
super.connectedCallback();
|
|
@@ -765,9 +782,12 @@ class VStack extends Stack {
|
|
|
765
782
|
this.directionDesktop = "column";
|
|
766
783
|
}
|
|
767
784
|
}
|
|
785
|
+
if (!customElements.get("px-vstack")) {
|
|
786
|
+
customElements.define("px-vstack", VStack);
|
|
787
|
+
}
|
|
768
788
|
class HStack extends Stack {
|
|
769
|
-
constructor(
|
|
770
|
-
super(
|
|
789
|
+
constructor() {
|
|
790
|
+
super();
|
|
771
791
|
}
|
|
772
792
|
connectedCallback() {
|
|
773
793
|
super.connectedCallback();
|
|
@@ -778,33 +798,8 @@ class HStack extends Stack {
|
|
|
778
798
|
this.directionDesktop = "row";
|
|
779
799
|
}
|
|
780
800
|
}
|
|
781
|
-
class PxStack extends Stack {
|
|
782
|
-
constructor() {
|
|
783
|
-
super(proximusSemanticStyleSheet);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
if (!customElements.get("px-stack")) {
|
|
787
|
-
customElements.define("px-stack", PxStack);
|
|
788
|
-
}
|
|
789
|
-
if (!customElements.get("px-vstack")) {
|
|
790
|
-
customElements.define(
|
|
791
|
-
"px-vstack",
|
|
792
|
-
class PxVStack extends VStack {
|
|
793
|
-
constructor() {
|
|
794
|
-
super(proximusSemanticStyleSheet);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
);
|
|
798
|
-
}
|
|
799
801
|
if (!customElements.get("px-hstack")) {
|
|
800
|
-
customElements.define(
|
|
801
|
-
"px-hstack",
|
|
802
|
-
class PxHStack extends HStack {
|
|
803
|
-
constructor() {
|
|
804
|
-
super(proximusSemanticStyleSheet);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
);
|
|
802
|
+
customElements.define("px-hstack", HStack);
|
|
808
803
|
}
|
|
809
804
|
class Spacer extends HTMLElement {
|
|
810
805
|
constructor() {
|
|
@@ -829,9 +824,9 @@ class Spacer extends HTMLElement {
|
|
|
829
824
|
}
|
|
830
825
|
}
|
|
831
826
|
customElements.define("px-spacer", Spacer);
|
|
832
|
-
const styles$
|
|
827
|
+
const styles$c = "slot[name=heading]{display:block;margin-top:1rem;margin-bottom:1rem}";
|
|
833
828
|
const styleSheet$c = new CSSStyleSheet();
|
|
834
|
-
styleSheet$c.replaceSync(styles$
|
|
829
|
+
styleSheet$c.replaceSync(styles$c);
|
|
835
830
|
let Section$1 = class Section extends WithFlexAttributes {
|
|
836
831
|
constructor() {
|
|
837
832
|
super(styleSheet$c);
|
|
@@ -865,12 +860,12 @@ let Section$1 = class Section extends WithFlexAttributes {
|
|
|
865
860
|
}
|
|
866
861
|
};
|
|
867
862
|
customElements.define("px-section-damien", Section$1);
|
|
868
|
-
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}";
|
|
869
864
|
const styleSheet$b = new CSSStyleSheet();
|
|
870
|
-
styleSheet$b.replaceSync(styles$
|
|
865
|
+
styleSheet$b.replaceSync(styles$b);
|
|
871
866
|
class Page extends WithFlexAttributes {
|
|
872
867
|
constructor() {
|
|
873
|
-
super(
|
|
868
|
+
super(styleSheet$b);
|
|
874
869
|
this.template = (stickyContainer) => `
|
|
875
870
|
<px-container borderradius="none" padding="none">
|
|
876
871
|
<px-vstack>
|
|
@@ -942,7 +937,7 @@ class Page extends WithFlexAttributes {
|
|
|
942
937
|
id="contact-container"
|
|
943
938
|
borderradius="none"
|
|
944
939
|
id="main"
|
|
945
|
-
bgcolor="
|
|
940
|
+
bgcolor="weak"
|
|
946
941
|
padding="none"
|
|
947
942
|
paddingtop="xl"
|
|
948
943
|
paddingbottom="xl"
|
|
@@ -1084,59 +1079,75 @@ class Page extends WithFlexAttributes {
|
|
|
1084
1079
|
if (customElements.get("px-page") === void 0) {
|
|
1085
1080
|
customElements.define("px-page", Page);
|
|
1086
1081
|
}
|
|
1087
|
-
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:""}';
|
|
1088
|
-
const styleSheet$a = new CSSStyleSheet();
|
|
1089
|
-
styleSheet$a.replaceSync(styles$b);
|
|
1090
|
-
const colorValues$1 = ["", "default", "inherit", "primary", "body", "details", "hover", "active", "disabled", "promo", "success", "warning", "error", "unlimited"];
|
|
1091
|
-
const _Icon = class _Icon extends PxElement {
|
|
1082
|
+
class IconSet extends HTMLElement {
|
|
1092
1083
|
constructor() {
|
|
1093
|
-
super(
|
|
1094
|
-
this.template = () => `<i aria-hidden="true"></i>`;
|
|
1095
|
-
this.shadowRoot.innerHTML = this.template();
|
|
1084
|
+
super();
|
|
1096
1085
|
}
|
|
1097
1086
|
static get observedAttributes() {
|
|
1098
|
-
return [
|
|
1099
|
-
}
|
|
1100
|
-
get name() {
|
|
1101
|
-
return this.getAttribute("name");
|
|
1102
|
-
}
|
|
1103
|
-
set name(value) {
|
|
1104
|
-
this.setAttribute("name", value);
|
|
1105
|
-
}
|
|
1106
|
-
get size() {
|
|
1107
|
-
return this.getAttribute("size");
|
|
1108
|
-
}
|
|
1109
|
-
set size(value) {
|
|
1110
|
-
this.setAttribute("size", value);
|
|
1111
|
-
}
|
|
1112
|
-
get color() {
|
|
1113
|
-
return this.getAttribute("color");
|
|
1114
|
-
}
|
|
1115
|
-
set color(value) {
|
|
1116
|
-
this.setAttribute("color", value);
|
|
1087
|
+
return ["name", "src", "type", "format"];
|
|
1117
1088
|
}
|
|
1118
|
-
|
|
1119
|
-
|
|
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
|
+
}
|
|
1120
1115
|
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1116
|
+
disconnectedCallback() {
|
|
1117
|
+
const style = document.querySelector(
|
|
1118
|
+
`style[data-name="${this.getAttribute("name")}"]`
|
|
1119
|
+
);
|
|
1120
|
+
if (style) {
|
|
1121
|
+
style.remove();
|
|
1122
|
+
}
|
|
1123
1123
|
}
|
|
1124
|
-
|
|
1125
|
-
|
|
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];
|
|
1126
1140
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1141
|
+
constructor(...styleSheets) {
|
|
1142
|
+
var _a;
|
|
1143
|
+
super(...styleSheets);
|
|
1144
|
+
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
1129
1145
|
}
|
|
1130
1146
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
1131
1147
|
if (oldValue !== newValue) {
|
|
1132
1148
|
switch (attrName) {
|
|
1133
1149
|
case "name":
|
|
1134
|
-
|
|
1135
|
-
this.$el.classList.toggle(`icon-${oldValue}`);
|
|
1136
|
-
}
|
|
1137
|
-
if (newValue !== null && newValue !== "") {
|
|
1138
|
-
this.$el.classList.toggle(`icon-${newValue}`);
|
|
1139
|
-
}
|
|
1150
|
+
this.updateName(oldValue, newValue);
|
|
1140
1151
|
break;
|
|
1141
1152
|
case "size":
|
|
1142
1153
|
this.updateAttribute(attrName, oldValue, newValue, iconSizeValues);
|
|
@@ -1145,23 +1156,27 @@ const _Icon = class _Icon extends PxElement {
|
|
|
1145
1156
|
this.updateAttribute(attrName, oldValue, newValue, colorValues$1);
|
|
1146
1157
|
break;
|
|
1147
1158
|
case "aria-label":
|
|
1148
|
-
if (
|
|
1149
|
-
|
|
1150
|
-
|
|
1159
|
+
if (!this.internals) {
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
if (newValue) {
|
|
1163
|
+
this.internals.ariaHidden = "false";
|
|
1164
|
+
} else {
|
|
1165
|
+
this.internals.ariaHidden = "true";
|
|
1151
1166
|
}
|
|
1152
1167
|
break;
|
|
1153
1168
|
}
|
|
1154
1169
|
}
|
|
1155
1170
|
}
|
|
1156
1171
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
1157
|
-
if (oldValue !== null && oldValue !== ""
|
|
1172
|
+
if (oldValue !== null && oldValue !== "") {
|
|
1158
1173
|
if (attrName === "size") {
|
|
1159
1174
|
this.$el.classList.toggle(`${attrName}-${oldValue}`);
|
|
1160
1175
|
} else {
|
|
1161
1176
|
this.$el.classList.toggle(oldValue);
|
|
1162
1177
|
}
|
|
1163
1178
|
}
|
|
1164
|
-
if (newValue !== null && newValue !== ""
|
|
1179
|
+
if (newValue !== null && newValue !== "") {
|
|
1165
1180
|
if (attrName === "size") {
|
|
1166
1181
|
this.$el.classList.toggle(`${attrName}-${newValue}`);
|
|
1167
1182
|
} else {
|
|
@@ -1169,17 +1184,119 @@ const _Icon = class _Icon extends PxElement {
|
|
|
1169
1184
|
}
|
|
1170
1185
|
}
|
|
1171
1186
|
if (!this.checkName(attrValues, newValue)) {
|
|
1172
|
-
console.error(
|
|
1187
|
+
console.error(
|
|
1188
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
1189
|
+
);
|
|
1173
1190
|
}
|
|
1174
1191
|
}
|
|
1175
1192
|
checkName(values, value) {
|
|
1176
1193
|
return values.includes(value);
|
|
1177
1194
|
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
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)}';
|
|
1183
1300
|
const containerStyles = new CSSStyleSheet();
|
|
1184
1301
|
containerStyles.replaceSync(containerCss);
|
|
1185
1302
|
const anchorValues = ["anchor-right", "anchor-left", "anchor-full"];
|
|
@@ -1187,7 +1304,7 @@ const noBorderRadiusValues = ["", "all", "top", "right", "bottom", "left"];
|
|
|
1187
1304
|
const bgImgSizeValues = ["", "cover", "contain", "default"];
|
|
1188
1305
|
const _Container = class _Container extends PxElement {
|
|
1189
1306
|
constructor() {
|
|
1190
|
-
super(
|
|
1307
|
+
super(containerStyles);
|
|
1191
1308
|
this.template = () => `<div class="container">
|
|
1192
1309
|
<slot name="anchor-left"></slot>
|
|
1193
1310
|
<slot name="anchor-right"></slot>
|
|
@@ -1346,7 +1463,7 @@ const _Container = class _Container extends PxElement {
|
|
|
1346
1463
|
this.setAttribute("inverted", value);
|
|
1347
1464
|
}
|
|
1348
1465
|
connectedCallback() {
|
|
1349
|
-
var _a, _b;
|
|
1466
|
+
var _a, _b, _c;
|
|
1350
1467
|
super.connectedCallback();
|
|
1351
1468
|
const anchorSlot = this.querySelector("[slot]");
|
|
1352
1469
|
if (anchorSlot) {
|
|
@@ -1361,6 +1478,9 @@ const _Container = class _Container extends PxElement {
|
|
|
1361
1478
|
this.$el.style.height = "100%";
|
|
1362
1479
|
}
|
|
1363
1480
|
}
|
|
1481
|
+
if (((_c = this.parentElement) == null ? void 0 : _c.localName) === "px-grid-item") {
|
|
1482
|
+
this.$el.style.height = "100%";
|
|
1483
|
+
}
|
|
1364
1484
|
if (this.hasAttribute("bgimg-mobile") || this.hasAttribute("bgimg-tablet") || this.hasAttribute("bgimg-laptop")) {
|
|
1365
1485
|
window.addEventListener("resize", this.onWindowResize);
|
|
1366
1486
|
}
|
|
@@ -1468,22 +1588,22 @@ const _Container = class _Container extends PxElement {
|
|
|
1468
1588
|
_Container.nativeName = "div";
|
|
1469
1589
|
let Container = _Container;
|
|
1470
1590
|
customElements.define("px-container", Container);
|
|
1471
|
-
const headingCss = "h1,.
|
|
1472
|
-
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)}";
|
|
1473
1593
|
const headingStyles$2 = new CSSStyleSheet();
|
|
1474
1594
|
headingStyles$2.replaceSync(headingCss);
|
|
1475
1595
|
const typographyStyles$4 = new CSSStyleSheet();
|
|
1476
1596
|
typographyStyles$4.replaceSync(typographyCss$1);
|
|
1477
|
-
const variantValues$
|
|
1597
|
+
const variantValues$6 = [
|
|
1478
1598
|
"",
|
|
1479
1599
|
"default",
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
1482
|
-
"
|
|
1483
|
-
"
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1600
|
+
"title-4xl",
|
|
1601
|
+
"title-3xl",
|
|
1602
|
+
"title-2xl",
|
|
1603
|
+
"title-xl",
|
|
1604
|
+
"title-l",
|
|
1605
|
+
"title-m",
|
|
1606
|
+
"title-s",
|
|
1487
1607
|
"subtitle"
|
|
1488
1608
|
];
|
|
1489
1609
|
class AbstractHeading extends PxElement {
|
|
@@ -1491,20 +1611,13 @@ class AbstractHeading extends PxElement {
|
|
|
1491
1611
|
return `<slot></slot>`;
|
|
1492
1612
|
}
|
|
1493
1613
|
constructor(tagName) {
|
|
1494
|
-
super(
|
|
1614
|
+
super(headingStyles$2, typographyStyles$4);
|
|
1495
1615
|
const $root = document.createElement(tagName);
|
|
1496
1616
|
$root.innerHTML = this.template();
|
|
1497
1617
|
this.shadowRoot.appendChild($root);
|
|
1498
1618
|
}
|
|
1499
1619
|
static get observedAttributes() {
|
|
1500
|
-
return [
|
|
1501
|
-
...super.observedAttributes,
|
|
1502
|
-
"variant",
|
|
1503
|
-
"color",
|
|
1504
|
-
"fontsize",
|
|
1505
|
-
"fontweight",
|
|
1506
|
-
"inverted"
|
|
1507
|
-
];
|
|
1620
|
+
return [...super.observedAttributes, "variant", "color", "inverted"];
|
|
1508
1621
|
}
|
|
1509
1622
|
get variant() {
|
|
1510
1623
|
return this.getAttribute("variant");
|
|
@@ -1518,18 +1631,6 @@ class AbstractHeading extends PxElement {
|
|
|
1518
1631
|
set color(value) {
|
|
1519
1632
|
this.setAttribute("color", value);
|
|
1520
1633
|
}
|
|
1521
|
-
get fontsize() {
|
|
1522
|
-
return this.getAttribute("fontsize");
|
|
1523
|
-
}
|
|
1524
|
-
set fontsize(value) {
|
|
1525
|
-
this.setAttribute("fontsize", value);
|
|
1526
|
-
}
|
|
1527
|
-
get fontweight() {
|
|
1528
|
-
return this.getAttribute("fontweight");
|
|
1529
|
-
}
|
|
1530
|
-
set fontweight(value) {
|
|
1531
|
-
this.setAttribute("fontweight", value);
|
|
1532
|
-
}
|
|
1533
1634
|
get inverted() {
|
|
1534
1635
|
return this.getAttribute("inverted");
|
|
1535
1636
|
}
|
|
@@ -1540,16 +1641,10 @@ class AbstractHeading extends PxElement {
|
|
|
1540
1641
|
if (oldValue !== newValue) {
|
|
1541
1642
|
switch (attrName) {
|
|
1542
1643
|
case "variant":
|
|
1543
|
-
this.updateAttribute(attrName, oldValue, newValue, variantValues$
|
|
1644
|
+
this.updateAttribute(attrName, oldValue, newValue, variantValues$6);
|
|
1544
1645
|
break;
|
|
1545
1646
|
case "color":
|
|
1546
|
-
this.
|
|
1547
|
-
break;
|
|
1548
|
-
case "fontsize":
|
|
1549
|
-
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
1550
|
-
break;
|
|
1551
|
-
case "fontweight":
|
|
1552
|
-
this.updateTypography(attrName, oldValue, newValue, fontweightValues);
|
|
1647
|
+
this.updateColor(oldValue, newValue, colorValues$1);
|
|
1553
1648
|
break;
|
|
1554
1649
|
default:
|
|
1555
1650
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
@@ -1559,30 +1654,38 @@ class AbstractHeading extends PxElement {
|
|
|
1559
1654
|
}
|
|
1560
1655
|
toggleClass(oldValue, newValue) {
|
|
1561
1656
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1562
|
-
this.$el.classList.toggle(oldValue);
|
|
1657
|
+
this.$el.classList.toggle(`style-${oldValue}`);
|
|
1563
1658
|
}
|
|
1564
1659
|
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1565
|
-
this.$el.classList.toggle(newValue);
|
|
1660
|
+
this.$el.classList.toggle(`style-${newValue}`);
|
|
1566
1661
|
}
|
|
1567
1662
|
}
|
|
1568
1663
|
checkName(values, value) {
|
|
1569
1664
|
return values.includes(value);
|
|
1570
1665
|
}
|
|
1571
1666
|
updateAttribute(attrName, oldValue, newValue, attrValue) {
|
|
1572
|
-
this.toggleClass(oldValue, newValue);
|
|
1573
1667
|
if (!this.checkName(attrValue, newValue)) {
|
|
1574
1668
|
console.error(`Bad "${attrName}" value for`, this.$el);
|
|
1669
|
+
} else {
|
|
1670
|
+
this.toggleClass(oldValue, newValue);
|
|
1575
1671
|
}
|
|
1576
1672
|
}
|
|
1577
|
-
|
|
1673
|
+
updateColor(oldValue, newValue, attrValue) {
|
|
1674
|
+
const invertedStatus = this.inverted === null ? "default" : "inverted";
|
|
1578
1675
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1579
|
-
this.$el.
|
|
1676
|
+
this.$el.style.setProperty(
|
|
1677
|
+
`--heading-color-${invertedStatus}`,
|
|
1678
|
+
`var(--px-color-txt-${oldValue}-${invertedStatus})`
|
|
1679
|
+
);
|
|
1580
1680
|
}
|
|
1581
1681
|
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1582
|
-
this.$el.
|
|
1682
|
+
this.$el.style.setProperty(
|
|
1683
|
+
`--heading-color-${invertedStatus}`,
|
|
1684
|
+
`var(--px-color-txt-${newValue}-${invertedStatus})`
|
|
1685
|
+
);
|
|
1583
1686
|
}
|
|
1584
1687
|
if (!this.checkName(attrValue, newValue)) {
|
|
1585
|
-
console.error(`Bad
|
|
1688
|
+
console.error(`Bad color value for`, this.$el);
|
|
1586
1689
|
}
|
|
1587
1690
|
}
|
|
1588
1691
|
}
|
|
@@ -1634,11 +1737,11 @@ const _H6 = class _H6 extends AbstractHeading {
|
|
|
1634
1737
|
_H6.nativeName = "h6";
|
|
1635
1738
|
let H6 = _H6;
|
|
1636
1739
|
customElements.define("px-h6", H6);
|
|
1637
|
-
const styles$
|
|
1638
|
-
const styleSheet$
|
|
1639
|
-
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);
|
|
1640
1743
|
class Section2 extends HTMLElement {
|
|
1641
|
-
constructor(
|
|
1744
|
+
constructor() {
|
|
1642
1745
|
super();
|
|
1643
1746
|
this.template = () => `
|
|
1644
1747
|
<px-container borderradius="none" padding="none" bgcolor="${this.bgColor}">
|
|
@@ -1654,7 +1757,7 @@ class Section2 extends HTMLElement {
|
|
|
1654
1757
|
`;
|
|
1655
1758
|
this.attachShadow({ mode: "open" });
|
|
1656
1759
|
this.shadowRoot.innerHTML = this.template();
|
|
1657
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
1760
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$8];
|
|
1658
1761
|
}
|
|
1659
1762
|
connectedCallback() {
|
|
1660
1763
|
const headingSlot = this.querySelector('[slot="heading"]');
|
|
@@ -1776,19 +1879,14 @@ class Section2 extends HTMLElement {
|
|
|
1776
1879
|
this.setAttribute("paddingbottom", value);
|
|
1777
1880
|
}
|
|
1778
1881
|
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
super(proximusSemanticStyleSheet);
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
customElements.define("px-section", ProximusSection);
|
|
1785
|
-
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)}`;
|
|
1786
1884
|
const accordionStyles = new CSSStyleSheet();
|
|
1787
1885
|
accordionStyles.replaceSync(accordionCss);
|
|
1788
|
-
const variantValues$
|
|
1886
|
+
const variantValues$5 = ["", "none", "single"];
|
|
1789
1887
|
const _Accordion = class _Accordion extends PxElement {
|
|
1790
1888
|
constructor() {
|
|
1791
|
-
super(
|
|
1889
|
+
super(accordionStyles);
|
|
1792
1890
|
this.template = () => `<details>
|
|
1793
1891
|
<summary role="button"><slot name="icon"></slot><slot name="title"></slot><slot name="info"></slot></summary>
|
|
1794
1892
|
<slot name="content"></slot>
|
|
@@ -1814,7 +1912,7 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1814
1912
|
if (oldValue !== newValue) {
|
|
1815
1913
|
switch (attrName) {
|
|
1816
1914
|
case "variant":
|
|
1817
|
-
this.updateAttribute(attrName, oldValue, newValue, variantValues$
|
|
1915
|
+
this.updateAttribute(attrName, oldValue, newValue, variantValues$5);
|
|
1818
1916
|
break;
|
|
1819
1917
|
default:
|
|
1820
1918
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
@@ -1830,7 +1928,9 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1830
1928
|
this.$el.classList.toggle(`${newValue}`);
|
|
1831
1929
|
}
|
|
1832
1930
|
if (!this.checkName(attrValues, newValue)) {
|
|
1833
|
-
console.error(
|
|
1931
|
+
console.error(
|
|
1932
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
1933
|
+
);
|
|
1834
1934
|
}
|
|
1835
1935
|
}
|
|
1836
1936
|
checkName(values, value) {
|
|
@@ -1840,192 +1940,44 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1840
1940
|
_Accordion.nativeName = "details";
|
|
1841
1941
|
let Accordion = _Accordion;
|
|
1842
1942
|
customElements.define("px-accordion", Accordion);
|
|
1843
|
-
const
|
|
1844
|
-
const
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
buttonStyles$1.replaceSync(buttonCss);
|
|
1850
|
-
linkStyles$2.replaceSync(linkCss);
|
|
1851
|
-
patchStyles.replaceSync(styles$9);
|
|
1852
|
-
const _Button = class _Button extends PxElement {
|
|
1853
|
-
constructor(semanticTokensStylesheet) {
|
|
1854
|
-
super(semanticTokensStylesheet, buttonStyles$1, linkStyles$2, patchStyles);
|
|
1855
|
-
this.template = () => `<slot name="before"></slot><slot></slot><slot name="after"></slot>`;
|
|
1856
|
-
const $root = document.createElement(this.nativeName);
|
|
1857
|
-
$root.classList.add("btn");
|
|
1858
|
-
$root.innerHTML = this.template();
|
|
1859
|
-
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);
|
|
1860
1949
|
}
|
|
1861
1950
|
static get observedAttributes() {
|
|
1862
|
-
return [...super.observedAttributes, "
|
|
1951
|
+
return [...super.observedAttributes, "showfor"];
|
|
1863
1952
|
}
|
|
1864
|
-
get
|
|
1865
|
-
return this.getAttribute("
|
|
1953
|
+
get showfor() {
|
|
1954
|
+
return this.getAttribute("showfor");
|
|
1866
1955
|
}
|
|
1867
|
-
set
|
|
1868
|
-
this.setAttribute("
|
|
1956
|
+
set showfor(value) {
|
|
1957
|
+
this.setAttribute("showfor", value);
|
|
1869
1958
|
}
|
|
1870
|
-
|
|
1871
|
-
|
|
1959
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
1960
|
+
if (oldValue !== newValue) {
|
|
1961
|
+
switch (attrName) {
|
|
1962
|
+
case "showfor":
|
|
1963
|
+
this.updateShowFor(oldValue, newValue);
|
|
1964
|
+
break;
|
|
1965
|
+
default:
|
|
1966
|
+
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
1967
|
+
break;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1872
1970
|
}
|
|
1873
|
-
|
|
1874
|
-
|
|
1971
|
+
toggleClass(oldValue, newValue) {
|
|
1972
|
+
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1973
|
+
this.$el.classList.toggle(oldValue);
|
|
1974
|
+
}
|
|
1975
|
+
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1976
|
+
this.$el.classList.toggle(newValue);
|
|
1977
|
+
}
|
|
1875
1978
|
}
|
|
1876
|
-
|
|
1877
|
-
return
|
|
1878
|
-
}
|
|
1879
|
-
set extended(value) {
|
|
1880
|
-
this.setAttribute("extended", value);
|
|
1881
|
-
}
|
|
1882
|
-
get loading() {
|
|
1883
|
-
return this.getAttribute("loading");
|
|
1884
|
-
}
|
|
1885
|
-
set loading(value) {
|
|
1886
|
-
this.setAttribute("loading", value);
|
|
1887
|
-
}
|
|
1888
|
-
get shape() {
|
|
1889
|
-
return this.getAttribute("shape");
|
|
1890
|
-
}
|
|
1891
|
-
set shape(value) {
|
|
1892
|
-
this.setAttribute("shape", value);
|
|
1893
|
-
}
|
|
1894
|
-
get inverted() {
|
|
1895
|
-
return this.getAttribute("inverted");
|
|
1896
|
-
}
|
|
1897
|
-
set inverted(value) {
|
|
1898
|
-
this.setAttribute("inverted", value);
|
|
1899
|
-
}
|
|
1900
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
1901
|
-
if (oldValue !== newValue) {
|
|
1902
|
-
switch (attrName) {
|
|
1903
|
-
case "variant":
|
|
1904
|
-
this.updateVariant(oldValue, newValue);
|
|
1905
|
-
break;
|
|
1906
|
-
case "state":
|
|
1907
|
-
this.updateState(oldValue, newValue);
|
|
1908
|
-
break;
|
|
1909
|
-
case "extended":
|
|
1910
|
-
this.updateExtended();
|
|
1911
|
-
break;
|
|
1912
|
-
case "loading":
|
|
1913
|
-
this.updateLoading();
|
|
1914
|
-
break;
|
|
1915
|
-
case "shape":
|
|
1916
|
-
this.updateShape(oldValue, newValue);
|
|
1917
|
-
break;
|
|
1918
|
-
default:
|
|
1919
|
-
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
1920
|
-
break;
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
checkName(values, value) {
|
|
1925
|
-
if (values.includes(value)) {
|
|
1926
|
-
return true;
|
|
1927
|
-
}
|
|
1928
|
-
return false;
|
|
1929
|
-
}
|
|
1930
|
-
checkClass(value) {
|
|
1931
|
-
if (value.startsWith("patch-")) {
|
|
1932
|
-
const splittedValue = value.split(/-(.*)/s);
|
|
1933
|
-
for (const classVar of splittedValue) {
|
|
1934
|
-
if (classVar != "") {
|
|
1935
|
-
this.$el.classList.toggle(classVar);
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
} else {
|
|
1939
|
-
this.$el.classList.toggle(value);
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
_toggleClass(oldValue, newValue) {
|
|
1943
|
-
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1944
|
-
this.checkClass(oldValue);
|
|
1945
|
-
}
|
|
1946
|
-
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1947
|
-
this.checkClass(newValue);
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
updateVariant(oldValue, newValue) {
|
|
1951
|
-
const values = ["", "default", "secondary", "tertiary", "link", "patch", "patch-info", "patch-black-friday", "patch-eco"];
|
|
1952
|
-
if (newValue === "link") {
|
|
1953
|
-
this.$el.classList.remove("btn");
|
|
1954
|
-
} else {
|
|
1955
|
-
this.$el.classList.add("btn");
|
|
1956
|
-
}
|
|
1957
|
-
this._toggleClass(oldValue, newValue);
|
|
1958
|
-
if (!this.checkName(values, newValue)) {
|
|
1959
|
-
console.error(`Bad "variant" value for ${this.$el}`);
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
updateState(oldValue, newValue) {
|
|
1963
|
-
const values = ["", "default", "success", "error"];
|
|
1964
|
-
this._toggleClass(oldValue, newValue);
|
|
1965
|
-
if (!this.checkName(values, newValue)) {
|
|
1966
|
-
console.error(`Bad "sate" value for ${this.$el}`);
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
updateExtended() {
|
|
1970
|
-
this.$el.classList.toggle("extended");
|
|
1971
|
-
}
|
|
1972
|
-
updateLoading() {
|
|
1973
|
-
this.$el.classList.toggle("loading");
|
|
1974
|
-
}
|
|
1975
|
-
updateShape(oldValue, newValue) {
|
|
1976
|
-
const values = ["", "default", "bottom-right", "bottom-left", "alternative"];
|
|
1977
|
-
this._toggleClass(oldValue, newValue);
|
|
1978
|
-
if (!this.checkName(values, newValue)) {
|
|
1979
|
-
console.error(`Bad "shape" value for ${this.$el}`);
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
_Button.nativeName = "button";
|
|
1984
|
-
let Button = _Button;
|
|
1985
|
-
class ProximusButton extends Button {
|
|
1986
|
-
constructor() {
|
|
1987
|
-
super(proximusSemanticStyleSheet);
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
customElements.define("px-button", ProximusButton);
|
|
1991
|
-
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}}";
|
|
1992
|
-
const styleSheet$8 = new CSSStyleSheet();
|
|
1993
|
-
styleSheet$8.replaceSync(imgCss);
|
|
1994
|
-
class AbstractImage extends PxElement {
|
|
1995
|
-
constructor() {
|
|
1996
|
-
super(styleSheet$8);
|
|
1997
|
-
}
|
|
1998
|
-
static get observedAttributes() {
|
|
1999
|
-
return [...super.observedAttributes, "showfor"];
|
|
2000
|
-
}
|
|
2001
|
-
get showfor() {
|
|
2002
|
-
return this.getAttribute("showfor");
|
|
2003
|
-
}
|
|
2004
|
-
set showfor(value) {
|
|
2005
|
-
this.setAttribute("showfor", value);
|
|
2006
|
-
}
|
|
2007
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
2008
|
-
if (oldValue !== newValue) {
|
|
2009
|
-
switch (attrName) {
|
|
2010
|
-
case "showfor":
|
|
2011
|
-
this.updateShowFor(oldValue, newValue);
|
|
2012
|
-
break;
|
|
2013
|
-
default:
|
|
2014
|
-
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
2015
|
-
break;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
toggleClass(oldValue, newValue) {
|
|
2020
|
-
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
2021
|
-
this.$el.classList.toggle(oldValue);
|
|
2022
|
-
}
|
|
2023
|
-
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
2024
|
-
this.$el.classList.toggle(newValue);
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
checkName(value) {
|
|
2028
|
-
return ["", "s", "so", "mo", "m", "l"].includes(value);
|
|
1979
|
+
checkName(value) {
|
|
1980
|
+
return ["", "s", "so", "mo", "m", "l"].includes(value);
|
|
2029
1981
|
}
|
|
2030
1982
|
updateShowFor(oldValue, newValue) {
|
|
2031
1983
|
if (this.checkName(newValue)) {
|
|
@@ -2181,24 +2133,19 @@ const _Picture = class _Picture extends AbstractImage {
|
|
|
2181
2133
|
_Picture.nativeName = "picture";
|
|
2182
2134
|
let Picture = _Picture;
|
|
2183
2135
|
customElements.define("px-picture", Picture);
|
|
2184
|
-
const
|
|
2185
|
-
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"];
|
|
2186
2148
|
class Patch extends HTMLElement {
|
|
2187
|
-
constructor(semanticTokensStylesheet) {
|
|
2188
|
-
super();
|
|
2189
|
-
this.variantValues = [
|
|
2190
|
-
"",
|
|
2191
|
-
"default",
|
|
2192
|
-
"info",
|
|
2193
|
-
"black-friday",
|
|
2194
|
-
"eco",
|
|
2195
|
-
"greyed"
|
|
2196
|
-
];
|
|
2197
|
-
this.shapeValues = ["", "default", "bottom-right", "bottom-left"];
|
|
2198
|
-
this.attachShadow({ mode: "open" });
|
|
2199
|
-
this.shadowRoot.innerHTML = this.template();
|
|
2200
|
-
this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$7];
|
|
2201
|
-
}
|
|
2202
2149
|
template() {
|
|
2203
2150
|
return `
|
|
2204
2151
|
<div class="patch">
|
|
@@ -2206,6 +2153,12 @@ class Patch extends HTMLElement {
|
|
|
2206
2153
|
</div>
|
|
2207
2154
|
`;
|
|
2208
2155
|
}
|
|
2156
|
+
constructor() {
|
|
2157
|
+
super();
|
|
2158
|
+
this.attachShadow({ mode: "open" });
|
|
2159
|
+
this.shadowRoot.innerHTML = this.template();
|
|
2160
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$6];
|
|
2161
|
+
}
|
|
2209
2162
|
static get observedAttributes() {
|
|
2210
2163
|
return ["variant", "shape", "inverted"];
|
|
2211
2164
|
}
|
|
@@ -2234,13 +2187,13 @@ class Patch extends HTMLElement {
|
|
|
2234
2187
|
}
|
|
2235
2188
|
updateVariant(oldValue, newValue) {
|
|
2236
2189
|
this._toggleClass(oldValue, newValue);
|
|
2237
|
-
if (!this.checkName(
|
|
2190
|
+
if (!this.checkName(variantValues$4, newValue)) {
|
|
2238
2191
|
console.error(`Bad "variant" value for patch`);
|
|
2239
2192
|
}
|
|
2240
2193
|
}
|
|
2241
2194
|
updateShape(oldValue, newValue) {
|
|
2242
2195
|
this._toggleClass(oldValue, newValue);
|
|
2243
|
-
if (!this.checkName(
|
|
2196
|
+
if (!this.checkName(shapeValues$1, newValue)) {
|
|
2244
2197
|
console.error(`Bad "shape" value for patch`);
|
|
2245
2198
|
}
|
|
2246
2199
|
}
|
|
@@ -2266,21 +2219,25 @@ class Patch extends HTMLElement {
|
|
|
2266
2219
|
this.setAttribute("inverted", value);
|
|
2267
2220
|
}
|
|
2268
2221
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
super(proximusSemanticStyleSheet);
|
|
2272
|
-
}
|
|
2222
|
+
if (!customElements.get("px-patch")) {
|
|
2223
|
+
customElements.define("px-patch", Patch);
|
|
2273
2224
|
}
|
|
2274
|
-
|
|
2275
|
-
const
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
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
|
+
];
|
|
2279
2236
|
const sizeValues$1 = ["", "s", "m", "l"];
|
|
2280
2237
|
const _Price = class _Price extends PxElement {
|
|
2281
2238
|
constructor() {
|
|
2282
|
-
super(
|
|
2283
|
-
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>`;
|
|
2284
2241
|
this.shadowRoot.innerHTML = this.template();
|
|
2285
2242
|
}
|
|
2286
2243
|
static get observedAttributes() {
|
|
@@ -2311,7 +2268,7 @@ const _Price = class _Price extends PxElement {
|
|
|
2311
2268
|
if (oldValue !== newValue) {
|
|
2312
2269
|
switch (attrName) {
|
|
2313
2270
|
case "variant":
|
|
2314
|
-
this.updateAttribute(attrName, oldValue, newValue, variantValues$
|
|
2271
|
+
this.updateAttribute(attrName, oldValue, newValue, variantValues$3);
|
|
2315
2272
|
break;
|
|
2316
2273
|
case "size":
|
|
2317
2274
|
this.updateAttribute(attrName, oldValue, newValue, sizeValues$1);
|
|
@@ -2336,18 +2293,28 @@ const _Price = class _Price extends PxElement {
|
|
|
2336
2293
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
2337
2294
|
this.toggleClass(oldValue, newValue);
|
|
2338
2295
|
if (!this.checkName(attrValues, newValue)) {
|
|
2339
|
-
console.error(
|
|
2296
|
+
console.error(
|
|
2297
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
2298
|
+
);
|
|
2340
2299
|
}
|
|
2341
2300
|
}
|
|
2342
2301
|
buildPrice() {
|
|
2343
2302
|
let price = this.innerHTML.trim();
|
|
2344
|
-
const oldPrice = this.querySelector("
|
|
2303
|
+
const oldPrice = this.querySelector('[slot="oldprice"]');
|
|
2345
2304
|
let strikethroughPrice = "";
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
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
|
+
}
|
|
2349
2316
|
strikethroughPrice = oldPrice.outerHTML + " ";
|
|
2350
|
-
} else if (oldPrice && oldPrice.
|
|
2317
|
+
} else if (oldPrice && oldPrice.innerHTML === "") {
|
|
2351
2318
|
price = oldPrice.nextSibling.textContent;
|
|
2352
2319
|
}
|
|
2353
2320
|
const isNumeric = /^[\d|.|,]+/.test(price);
|
|
@@ -2360,21 +2327,21 @@ const _Price = class _Price extends PxElement {
|
|
|
2360
2327
|
const separator = price.charAt(price.length - 3);
|
|
2361
2328
|
if (separator === "." || separator === ",") {
|
|
2362
2329
|
const [nbrPart, decPart] = price.split(separator);
|
|
2363
|
-
this.innerHTML = `${strikethroughPrice}${euro}${nbrPart}<span class="decimals">${separator}${decPart}</span>`;
|
|
2330
|
+
this.innerHTML = `${strikethroughPrice}${newPriceSrText}${euro}${nbrPart}<span class="decimals">${separator}${decPart}</span>`;
|
|
2364
2331
|
} else {
|
|
2365
|
-
this.innerHTML = `${strikethroughPrice}${euro}${price}`;
|
|
2332
|
+
this.innerHTML = `${strikethroughPrice}${newPriceSrText}${euro}${price}`;
|
|
2366
2333
|
}
|
|
2367
2334
|
}
|
|
2368
2335
|
};
|
|
2369
2336
|
_Price.nativeName = "span";
|
|
2370
2337
|
let Price = _Price;
|
|
2371
2338
|
customElements.define("px-price", Price);
|
|
2372
|
-
const css = ":host{box-sizing:border-box}.ribbon{font-family:
|
|
2373
|
-
const styles$
|
|
2374
|
-
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);
|
|
2375
2342
|
const _Ribbon = class _Ribbon extends PxElement {
|
|
2376
2343
|
constructor() {
|
|
2377
|
-
super(
|
|
2344
|
+
super(styles$6);
|
|
2378
2345
|
this.template = () => `<div class="ribbon"><slot></slot></div>`;
|
|
2379
2346
|
this.shadowRoot.innerHTML = this.template();
|
|
2380
2347
|
}
|
|
@@ -2382,20 +2349,41 @@ const _Ribbon = class _Ribbon extends PxElement {
|
|
|
2382
2349
|
_Ribbon.nativeName = "div";
|
|
2383
2350
|
let Ribbon = _Ribbon;
|
|
2384
2351
|
customElements.define("px-ribbon", Ribbon);
|
|
2385
|
-
const styles$
|
|
2386
|
-
const styleSheet$
|
|
2387
|
-
styleSheet$
|
|
2388
|
-
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"];
|
|
2389
2356
|
const sizeValues = ["", "none", "s", "m", "l"];
|
|
2390
|
-
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
|
+
];
|
|
2391
2368
|
const _Separator = class _Separator extends PxElement {
|
|
2392
2369
|
constructor() {
|
|
2393
|
-
super(
|
|
2370
|
+
super(styleSheet$5);
|
|
2394
2371
|
const $root = document.createElement(this.nativeName);
|
|
2372
|
+
$root.classList.add("separator");
|
|
2395
2373
|
this.shadowRoot.appendChild($root);
|
|
2396
2374
|
}
|
|
2397
2375
|
static get observedAttributes() {
|
|
2398
|
-
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
|
+
];
|
|
2399
2387
|
}
|
|
2400
2388
|
get direction() {
|
|
2401
2389
|
return this.getAttribute("direction");
|
|
@@ -2403,6 +2391,30 @@ const _Separator = class _Separator extends PxElement {
|
|
|
2403
2391
|
set direction(value) {
|
|
2404
2392
|
this.setAttribute("direction", value);
|
|
2405
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
|
+
}
|
|
2406
2418
|
get size() {
|
|
2407
2419
|
return this.getAttribute("size");
|
|
2408
2420
|
}
|
|
@@ -2425,13 +2437,17 @@ const _Separator = class _Separator extends PxElement {
|
|
|
2425
2437
|
if (oldValue !== newValue) {
|
|
2426
2438
|
switch (attrName) {
|
|
2427
2439
|
case "direction":
|
|
2428
|
-
|
|
2440
|
+
case "direction-mobile":
|
|
2441
|
+
case "direction-tablet":
|
|
2442
|
+
case "direction-laptop":
|
|
2443
|
+
case "direction-desktop":
|
|
2444
|
+
this.updateDirection(attrName, newValue);
|
|
2429
2445
|
break;
|
|
2430
2446
|
case "size":
|
|
2431
|
-
this.
|
|
2447
|
+
this.updateSize(newValue, sizeValues);
|
|
2432
2448
|
break;
|
|
2433
2449
|
case "color":
|
|
2434
|
-
this.
|
|
2450
|
+
this.updateColor(newValue, colorValues);
|
|
2435
2451
|
break;
|
|
2436
2452
|
default:
|
|
2437
2453
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
@@ -2439,39 +2455,68 @@ const _Separator = class _Separator extends PxElement {
|
|
|
2439
2455
|
}
|
|
2440
2456
|
}
|
|
2441
2457
|
}
|
|
2442
|
-
toggleClass(oldValue, newValue) {
|
|
2443
|
-
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
2444
|
-
this.$el.classList.toggle(oldValue);
|
|
2445
|
-
}
|
|
2446
|
-
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
2447
|
-
this.$el.classList.toggle(newValue);
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
2458
|
checkName(values, value) {
|
|
2451
2459
|
return values.includes(value);
|
|
2452
2460
|
}
|
|
2453
|
-
|
|
2454
|
-
this.
|
|
2461
|
+
updateSize(newValue, attrValue) {
|
|
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) {
|
|
2455
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)) {
|
|
2456
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
|
+
}
|
|
2457
2508
|
}
|
|
2458
2509
|
}
|
|
2459
2510
|
};
|
|
2460
2511
|
_Separator.nativeName = "hr";
|
|
2461
2512
|
let Separator = _Separator;
|
|
2462
2513
|
customElements.define("px-separator", Separator);
|
|
2463
|
-
const styles$
|
|
2464
|
-
const styleSheet$
|
|
2465
|
-
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"];
|
|
2466
2519
|
class Tag extends HTMLElement {
|
|
2467
|
-
constructor(semanticTokensStylesheet) {
|
|
2468
|
-
super();
|
|
2469
|
-
this.variantValues = ["", "default", "light", "outline"];
|
|
2470
|
-
this.shapeValues = ["", "default", "pill"];
|
|
2471
|
-
this.attachShadow({ mode: "open" });
|
|
2472
|
-
this.shadowRoot.innerHTML = this.template();
|
|
2473
|
-
this.shadowRoot.adoptedStyleSheets = [semanticTokensStylesheet, styleSheet$5];
|
|
2474
|
-
}
|
|
2475
2520
|
template() {
|
|
2476
2521
|
return `
|
|
2477
2522
|
<div class="tag">
|
|
@@ -2480,6 +2525,12 @@ class Tag extends HTMLElement {
|
|
|
2480
2525
|
</div>
|
|
2481
2526
|
`;
|
|
2482
2527
|
}
|
|
2528
|
+
constructor() {
|
|
2529
|
+
super();
|
|
2530
|
+
this.attachShadow({ mode: "open" });
|
|
2531
|
+
this.shadowRoot.innerHTML = this.template();
|
|
2532
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$4];
|
|
2533
|
+
}
|
|
2483
2534
|
static get observedAttributes() {
|
|
2484
2535
|
return ["variant", "shape", "inverted"];
|
|
2485
2536
|
}
|
|
@@ -2529,28 +2580,25 @@ class Tag extends HTMLElement {
|
|
|
2529
2580
|
}
|
|
2530
2581
|
updateVariant(oldValue, newValue) {
|
|
2531
2582
|
this._toggleClass(oldValue, newValue);
|
|
2532
|
-
if (!this.checkName(
|
|
2583
|
+
if (!this.checkName(variantValues$2, newValue)) {
|
|
2533
2584
|
console.error(`Bad "variant" value for tag`);
|
|
2534
2585
|
}
|
|
2535
2586
|
}
|
|
2536
2587
|
updateShape(oldValue, newValue) {
|
|
2537
2588
|
this._toggleClass(oldValue, newValue);
|
|
2538
|
-
if (!this.checkName(
|
|
2589
|
+
if (!this.checkName(shapeValues, newValue)) {
|
|
2539
2590
|
console.error(`Bad "shape" value for tag`);
|
|
2540
2591
|
}
|
|
2541
2592
|
}
|
|
2542
2593
|
}
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
super(proximusSemanticStyleSheet);
|
|
2546
|
-
}
|
|
2594
|
+
if (!customElements.get("px-tag")) {
|
|
2595
|
+
customElements.define("px-tag", Tag);
|
|
2547
2596
|
}
|
|
2548
|
-
|
|
2549
|
-
const
|
|
2550
|
-
|
|
2551
|
-
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);
|
|
2552
2600
|
class Tabs extends HTMLElement {
|
|
2553
|
-
constructor(
|
|
2601
|
+
constructor() {
|
|
2554
2602
|
super();
|
|
2555
2603
|
this._label = `tabs-${Math.random().toString(36).substring(2, 15)}`;
|
|
2556
2604
|
this.template = () => `
|
|
@@ -2568,7 +2616,7 @@ class Tabs extends HTMLElement {
|
|
|
2568
2616
|
this._label = this.getAttribute("label");
|
|
2569
2617
|
}
|
|
2570
2618
|
this.shadowRoot.innerHTML = this.template();
|
|
2571
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2619
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$3];
|
|
2572
2620
|
}
|
|
2573
2621
|
static get observedAttributes() {
|
|
2574
2622
|
return ["label", "inverted"];
|
|
@@ -2646,7 +2694,7 @@ class Tabs extends HTMLElement {
|
|
|
2646
2694
|
}
|
|
2647
2695
|
}
|
|
2648
2696
|
class Tab extends HTMLElement {
|
|
2649
|
-
constructor(
|
|
2697
|
+
constructor() {
|
|
2650
2698
|
super();
|
|
2651
2699
|
this.template = () => `
|
|
2652
2700
|
<button role="tab" aria-selected="false" type="button" tabindex="-1">
|
|
@@ -2655,7 +2703,7 @@ class Tab extends HTMLElement {
|
|
|
2655
2703
|
`;
|
|
2656
2704
|
this.attachShadow({ mode: "open" });
|
|
2657
2705
|
this.shadowRoot.innerHTML = this.template();
|
|
2658
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2706
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$3];
|
|
2659
2707
|
}
|
|
2660
2708
|
static get observedAttributes() {
|
|
2661
2709
|
return ["selected", "for", "name"];
|
|
@@ -2718,7 +2766,7 @@ class Tab extends HTMLElement {
|
|
|
2718
2766
|
}
|
|
2719
2767
|
}
|
|
2720
2768
|
class TabPanel extends HTMLElement {
|
|
2721
|
-
constructor(
|
|
2769
|
+
constructor() {
|
|
2722
2770
|
super();
|
|
2723
2771
|
this.template = () => `
|
|
2724
2772
|
<div role="tabpanel" aria-labelledby="${this.name}" tabindex="0">
|
|
@@ -2727,7 +2775,7 @@ class TabPanel extends HTMLElement {
|
|
|
2727
2775
|
`;
|
|
2728
2776
|
this.attachShadow({ mode: "open" });
|
|
2729
2777
|
this.shadowRoot.innerHTML = this.template();
|
|
2730
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2778
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$3];
|
|
2731
2779
|
}
|
|
2732
2780
|
static get observedAttributes() {
|
|
2733
2781
|
return ["name"];
|
|
@@ -2781,7 +2829,7 @@ class TabPanel extends HTMLElement {
|
|
|
2781
2829
|
}
|
|
2782
2830
|
class PxTabs extends Tabs {
|
|
2783
2831
|
constructor() {
|
|
2784
|
-
super(
|
|
2832
|
+
super();
|
|
2785
2833
|
this.querySelectorAll("px-tab").forEach((tab) => {
|
|
2786
2834
|
tab.setAttribute("slot", "tabs");
|
|
2787
2835
|
});
|
|
@@ -2792,7 +2840,7 @@ if (!customElements.get("px-tabs")) {
|
|
|
2792
2840
|
}
|
|
2793
2841
|
class PxTab extends Tab {
|
|
2794
2842
|
constructor() {
|
|
2795
|
-
super(
|
|
2843
|
+
super();
|
|
2796
2844
|
}
|
|
2797
2845
|
}
|
|
2798
2846
|
if (!customElements.get("px-tab")) {
|
|
@@ -2800,15 +2848,15 @@ if (!customElements.get("px-tab")) {
|
|
|
2800
2848
|
}
|
|
2801
2849
|
class PxTabPanel extends TabPanel {
|
|
2802
2850
|
constructor() {
|
|
2803
|
-
super(
|
|
2851
|
+
super();
|
|
2804
2852
|
}
|
|
2805
2853
|
}
|
|
2806
2854
|
if (!customElements.get("px-tab-panel")) {
|
|
2807
2855
|
customElements.define("px-tab-panel", PxTabPanel);
|
|
2808
2856
|
}
|
|
2809
|
-
const styles$
|
|
2810
|
-
const styleSheet$
|
|
2811
|
-
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);
|
|
2812
2860
|
class Timeline extends HTMLElement {
|
|
2813
2861
|
template() {
|
|
2814
2862
|
return `
|
|
@@ -2817,11 +2865,11 @@ class Timeline extends HTMLElement {
|
|
|
2817
2865
|
</ol>
|
|
2818
2866
|
`;
|
|
2819
2867
|
}
|
|
2820
|
-
constructor(
|
|
2868
|
+
constructor() {
|
|
2821
2869
|
super();
|
|
2822
2870
|
this.attachShadow({ mode: "open" });
|
|
2823
2871
|
this.shadowRoot.innerHTML = this.template();
|
|
2824
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2872
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$2];
|
|
2825
2873
|
}
|
|
2826
2874
|
static get observedAttributes() {
|
|
2827
2875
|
return ["inverted"];
|
|
@@ -2860,15 +2908,12 @@ class Timeline extends HTMLElement {
|
|
|
2860
2908
|
this.setAttribute("inverted", value);
|
|
2861
2909
|
}
|
|
2862
2910
|
}
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
super(proximusSemanticStyleSheet);
|
|
2866
|
-
}
|
|
2911
|
+
if (!customElements.get("px-timeline")) {
|
|
2912
|
+
customElements.define("px-timeline", Timeline);
|
|
2867
2913
|
}
|
|
2868
|
-
|
|
2869
|
-
const
|
|
2870
|
-
|
|
2871
|
-
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);
|
|
2872
2917
|
let item = "1";
|
|
2873
2918
|
class TimelineItem extends HTMLElement {
|
|
2874
2919
|
template() {
|
|
@@ -2884,14 +2929,11 @@ class TimelineItem extends HTMLElement {
|
|
|
2884
2929
|
</li>
|
|
2885
2930
|
`;
|
|
2886
2931
|
}
|
|
2887
|
-
constructor(
|
|
2932
|
+
constructor() {
|
|
2888
2933
|
super();
|
|
2889
2934
|
this.attachShadow({ mode: "open" });
|
|
2890
2935
|
this.shadowRoot.innerHTML = this.template();
|
|
2891
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
2892
|
-
semanticTokensStylesheet,
|
|
2893
|
-
styleSheet$2
|
|
2894
|
-
];
|
|
2936
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$1];
|
|
2895
2937
|
}
|
|
2896
2938
|
static get observedAttributes() {
|
|
2897
2939
|
return ["inverted", "lastchild", "item"];
|
|
@@ -2940,16 +2982,13 @@ class TimelineItem extends HTMLElement {
|
|
|
2940
2982
|
this.setAttribute("item", value);
|
|
2941
2983
|
}
|
|
2942
2984
|
}
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
super(proximusSemanticStyleSheet);
|
|
2946
|
-
}
|
|
2985
|
+
if (!customElements.get("px-timeline-item")) {
|
|
2986
|
+
customElements.define("px-timeline-item", TimelineItem);
|
|
2947
2987
|
}
|
|
2948
|
-
|
|
2949
|
-
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}}";
|
|
2950
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)}";
|
|
2951
|
-
const styleSheet
|
|
2952
|
-
styleSheet
|
|
2990
|
+
const styleSheet = new CSSStyleSheet();
|
|
2991
|
+
styleSheet.replaceSync(styles);
|
|
2953
2992
|
addGlobalStylesheet(lightStyles$1);
|
|
2954
2993
|
class Modal extends HTMLElement {
|
|
2955
2994
|
constructor() {
|
|
@@ -2970,11 +3009,13 @@ class Modal extends HTMLElement {
|
|
|
2970
3009
|
</px-container>`;
|
|
2971
3010
|
this.attachShadow({ mode: "open" });
|
|
2972
3011
|
this.shadowRoot.innerHTML = this.template;
|
|
2973
|
-
this.shadowRoot.adoptedStyleSheets = [
|
|
3012
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
2974
3013
|
}
|
|
2975
3014
|
connectedCallback() {
|
|
2976
3015
|
var _a;
|
|
2977
|
-
const targetButtonList = document.querySelectorAll(
|
|
3016
|
+
const targetButtonList = document.querySelectorAll(
|
|
3017
|
+
`px-button[popovertarget="${this.getAttribute("id")}"]`
|
|
3018
|
+
);
|
|
2978
3019
|
targetButtonList.forEach((targetButton) => {
|
|
2979
3020
|
targetButton.onclick = (event) => {
|
|
2980
3021
|
var _a2;
|
|
@@ -2999,7 +3040,9 @@ class Modal extends HTMLElement {
|
|
|
2999
3040
|
displayBlurredBackground() {
|
|
3000
3041
|
this.blurredBackground = document.createElement("div");
|
|
3001
3042
|
this.blurredBackground.id = "popover-background";
|
|
3002
|
-
this.blurredBackground.classList.toggle(
|
|
3043
|
+
this.blurredBackground.classList.toggle(
|
|
3044
|
+
"lavender-blurred-modal-background"
|
|
3045
|
+
);
|
|
3003
3046
|
this.blurredBackground.addEventListener("click", (event) => {
|
|
3004
3047
|
if (this.open && !this.contains(event.target)) {
|
|
3005
3048
|
this._hidePopover();
|
|
@@ -3020,14 +3063,14 @@ class Modal extends HTMLElement {
|
|
|
3020
3063
|
if (!customElements.get("px-modal")) {
|
|
3021
3064
|
customElements.define("px-modal", Modal);
|
|
3022
3065
|
}
|
|
3023
|
-
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)}}";
|
|
3024
3067
|
const spanStyles$1 = new CSSStyleSheet();
|
|
3025
3068
|
const typographyStyles$3 = new CSSStyleSheet();
|
|
3026
3069
|
spanStyles$1.replaceSync(spanCss);
|
|
3027
3070
|
typographyStyles$3.replaceSync(typographyCss$1);
|
|
3028
3071
|
const _Span = class _Span extends PxElement {
|
|
3029
3072
|
constructor() {
|
|
3030
|
-
super(
|
|
3073
|
+
super(spanStyles$1, typographyStyles$3);
|
|
3031
3074
|
this.template = () => `<span>
|
|
3032
3075
|
<slot name="before"></slot>
|
|
3033
3076
|
<slot></slot>
|
|
@@ -3036,7 +3079,13 @@ const _Span = class _Span extends PxElement {
|
|
|
3036
3079
|
this.shadowRoot.innerHTML = this.template();
|
|
3037
3080
|
}
|
|
3038
3081
|
static get observedAttributes() {
|
|
3039
|
-
return [
|
|
3082
|
+
return [
|
|
3083
|
+
...super.observedAttributes,
|
|
3084
|
+
"color",
|
|
3085
|
+
"fontsize",
|
|
3086
|
+
"fontweight",
|
|
3087
|
+
"inverted"
|
|
3088
|
+
];
|
|
3040
3089
|
}
|
|
3041
3090
|
get color() {
|
|
3042
3091
|
return this.getAttribute("color");
|
|
@@ -3070,7 +3119,7 @@ const _Span = class _Span extends PxElement {
|
|
|
3070
3119
|
if (oldValue !== newValue) {
|
|
3071
3120
|
switch (attrName) {
|
|
3072
3121
|
case "color":
|
|
3073
|
-
this.updateTypography(attrName, oldValue, newValue, colorValues$
|
|
3122
|
+
this.updateTypography(attrName, oldValue, newValue, colorValues$1);
|
|
3074
3123
|
break;
|
|
3075
3124
|
case "fontsize":
|
|
3076
3125
|
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
@@ -3102,16 +3151,25 @@ const _Span = class _Span extends PxElement {
|
|
|
3102
3151
|
_Span.nativeName = "span";
|
|
3103
3152
|
let Span = _Span;
|
|
3104
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)}}';
|
|
3105
3156
|
const linkStyles$1 = new CSSStyleSheet();
|
|
3106
3157
|
const buttonStyles = new CSSStyleSheet();
|
|
3107
3158
|
const typographyStyles$2 = new CSSStyleSheet();
|
|
3108
3159
|
linkStyles$1.replaceSync(linkCss);
|
|
3109
3160
|
buttonStyles.replaceSync(buttonCss);
|
|
3110
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
|
+
];
|
|
3111
3170
|
const _Link = class _Link extends PxElement {
|
|
3112
|
-
constructor(
|
|
3113
|
-
super(
|
|
3114
|
-
this.variantValues = ["link", "no-style", "skip-link", "btn-default", "btn-secondary", "btn-tertiary"];
|
|
3171
|
+
constructor() {
|
|
3172
|
+
super(linkStyles$1, buttonStyles, typographyStyles$2);
|
|
3115
3173
|
this.shapeValues = ["", "default", "alternative"];
|
|
3116
3174
|
this.template = () => `<slot name="before"></slot><slot></slot><slot name="after"></slot>`;
|
|
3117
3175
|
const $root = document.createElement(this.nativeName);
|
|
@@ -3119,7 +3177,17 @@ const _Link = class _Link extends PxElement {
|
|
|
3119
3177
|
this.shadowRoot.appendChild($root);
|
|
3120
3178
|
}
|
|
3121
3179
|
static get observedAttributes() {
|
|
3122
|
-
return [
|
|
3180
|
+
return [
|
|
3181
|
+
...super.observedAttributes,
|
|
3182
|
+
"disabled",
|
|
3183
|
+
"variant",
|
|
3184
|
+
"shape",
|
|
3185
|
+
"extended",
|
|
3186
|
+
"inverted",
|
|
3187
|
+
"fontsize",
|
|
3188
|
+
"color",
|
|
3189
|
+
"fontweight"
|
|
3190
|
+
];
|
|
3123
3191
|
}
|
|
3124
3192
|
get disabled() {
|
|
3125
3193
|
return this.getAttribute("disabled");
|
|
@@ -3191,7 +3259,7 @@ const _Link = class _Link extends PxElement {
|
|
|
3191
3259
|
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
3192
3260
|
break;
|
|
3193
3261
|
case "color":
|
|
3194
|
-
this.updateTypography(attrName, oldValue, newValue, colorValues$
|
|
3262
|
+
this.updateTypography(attrName, oldValue, newValue, colorValues$1);
|
|
3195
3263
|
break;
|
|
3196
3264
|
case "fontweight":
|
|
3197
3265
|
this.updateTypography(attrName, oldValue, newValue, fontweightValues);
|
|
@@ -3222,7 +3290,7 @@ const _Link = class _Link extends PxElement {
|
|
|
3222
3290
|
if (newValue !== null && newValue !== "" && newValue !== "link") {
|
|
3223
3291
|
this._toggleClassList(newValue);
|
|
3224
3292
|
}
|
|
3225
|
-
if (!this.checkName(
|
|
3293
|
+
if (!this.checkName(variantValues$1, newValue)) {
|
|
3226
3294
|
console.error(`Bad "variant" value for ${this.$el}`);
|
|
3227
3295
|
}
|
|
3228
3296
|
}
|
|
@@ -3251,29 +3319,44 @@ const _Link = class _Link extends PxElement {
|
|
|
3251
3319
|
};
|
|
3252
3320
|
_Link.nativeName = "a";
|
|
3253
3321
|
let Link = _Link;
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
super(proximusSemanticStyleSheet);
|
|
3257
|
-
}
|
|
3322
|
+
if (!customElements.get("px-a")) {
|
|
3323
|
+
customElements.define("px-a", Link);
|
|
3258
3324
|
}
|
|
3259
|
-
|
|
3260
|
-
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)}}";
|
|
3261
3326
|
const paragraphStyles$1 = new CSSStyleSheet();
|
|
3262
3327
|
const typographyStyles$1 = new CSSStyleSheet();
|
|
3263
3328
|
const headingStyles$1 = new CSSStyleSheet();
|
|
3264
3329
|
paragraphStyles$1.replaceSync(paragraphCss);
|
|
3265
3330
|
typographyStyles$1.replaceSync(typographyCss$1);
|
|
3266
3331
|
headingStyles$1.replaceSync(headingCss);
|
|
3267
|
-
const variantValues = [
|
|
3332
|
+
const variantValues = [
|
|
3333
|
+
"",
|
|
3334
|
+
"default",
|
|
3335
|
+
"h1",
|
|
3336
|
+
"h2",
|
|
3337
|
+
"h3",
|
|
3338
|
+
"h4",
|
|
3339
|
+
"h5",
|
|
3340
|
+
"h6",
|
|
3341
|
+
"subtitle"
|
|
3342
|
+
];
|
|
3268
3343
|
const textalignValues = ["", "default", "left", "center", "right"];
|
|
3269
3344
|
const _Paragraph = class _Paragraph extends PxElement {
|
|
3270
3345
|
constructor() {
|
|
3271
|
-
super(
|
|
3346
|
+
super(paragraphStyles$1, typographyStyles$1, headingStyles$1);
|
|
3272
3347
|
this.template = () => `<p><slot></slot></p>`;
|
|
3273
3348
|
this.shadowRoot.innerHTML = this.template();
|
|
3274
3349
|
}
|
|
3275
3350
|
static get observedAttributes() {
|
|
3276
|
-
return [
|
|
3351
|
+
return [
|
|
3352
|
+
...super.observedAttributes,
|
|
3353
|
+
"variant",
|
|
3354
|
+
"color",
|
|
3355
|
+
"fontsize",
|
|
3356
|
+
"fontweight",
|
|
3357
|
+
"textalign",
|
|
3358
|
+
"inverted"
|
|
3359
|
+
];
|
|
3277
3360
|
}
|
|
3278
3361
|
get variant() {
|
|
3279
3362
|
return this.getAttribute("variant");
|
|
@@ -3318,7 +3401,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
3318
3401
|
this.updateAttribute(attrName, oldValue, newValue, variantValues);
|
|
3319
3402
|
break;
|
|
3320
3403
|
case "color":
|
|
3321
|
-
this.updateTypography(attrName, oldValue, newValue, colorValues$
|
|
3404
|
+
this.updateTypography(attrName, oldValue, newValue, colorValues$1);
|
|
3322
3405
|
break;
|
|
3323
3406
|
case "fontsize":
|
|
3324
3407
|
this.updateTypography(attrName, oldValue, newValue, fontsizeValues);
|
|
@@ -3367,29 +3450,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
3367
3450
|
_Paragraph.nativeName = "p";
|
|
3368
3451
|
let Paragraph = _Paragraph;
|
|
3369
3452
|
customElements.define("px-p", Paragraph);
|
|
3370
|
-
const
|
|
3371
|
-
const styleSheet = new CSSStyleSheet();
|
|
3372
|
-
styleSheet.replaceSync(styles);
|
|
3373
|
-
class HeadingGroup extends HTMLElement {
|
|
3374
|
-
template() {
|
|
3375
|
-
return `
|
|
3376
|
-
<div>
|
|
3377
|
-
<slot></slot>
|
|
3378
|
-
</div>
|
|
3379
|
-
`;
|
|
3380
|
-
}
|
|
3381
|
-
constructor() {
|
|
3382
|
-
super();
|
|
3383
|
-
this.attachShadow({ mode: "open" });
|
|
3384
|
-
this.shadowRoot.innerHTML = this.template();
|
|
3385
|
-
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
3386
|
-
}
|
|
3387
|
-
get $el() {
|
|
3388
|
-
return this.shadowRoot.querySelector("div");
|
|
3389
|
-
}
|
|
3390
|
-
}
|
|
3391
|
-
customElements.define("px-heading-group", HeadingGroup);
|
|
3392
|
-
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)}";
|
|
3393
3454
|
const lightStyles = ".li{padding-bottom:var(--px-padding-xs)}";
|
|
3394
3455
|
const typographyStyles = new CSSStyleSheet();
|
|
3395
3456
|
const headingStyles = new CSSStyleSheet();
|
|
@@ -3409,7 +3470,6 @@ class Typography extends HTMLElement {
|
|
|
3409
3470
|
this.attachShadow({ mode: "open" });
|
|
3410
3471
|
this.shadowRoot.innerHTML = this.template();
|
|
3411
3472
|
this.shadowRoot.adoptedStyleSheets = [
|
|
3412
|
-
proximusSemanticStyleSheet,
|
|
3413
3473
|
typographyStyles,
|
|
3414
3474
|
headingStyles,
|
|
3415
3475
|
linkStyles,
|
|
@@ -3436,6 +3496,7 @@ customElements.define("px-typography", Typography);
|
|
|
3436
3496
|
export {
|
|
3437
3497
|
Accordion,
|
|
3438
3498
|
Container,
|
|
3499
|
+
FontIcon,
|
|
3439
3500
|
H1,
|
|
3440
3501
|
H2,
|
|
3441
3502
|
H3,
|
|
@@ -3443,32 +3504,28 @@ export {
|
|
|
3443
3504
|
H5,
|
|
3444
3505
|
H6,
|
|
3445
3506
|
HStack,
|
|
3446
|
-
|
|
3447
|
-
Icon,
|
|
3507
|
+
IconSet,
|
|
3448
3508
|
Image,
|
|
3509
|
+
Link,
|
|
3449
3510
|
Modal,
|
|
3450
3511
|
Page,
|
|
3451
3512
|
Paragraph,
|
|
3513
|
+
Patch,
|
|
3452
3514
|
Picture,
|
|
3453
3515
|
Price,
|
|
3454
|
-
ProximusButton,
|
|
3455
|
-
ProximusLink,
|
|
3456
|
-
ProximusPatch,
|
|
3457
|
-
ProximusSection,
|
|
3458
|
-
ProximusTag,
|
|
3459
|
-
ProximusTimeline,
|
|
3460
|
-
ProximusTimelineItem,
|
|
3461
3516
|
PxElement,
|
|
3462
|
-
PxStack,
|
|
3463
3517
|
PxTab,
|
|
3464
3518
|
PxTabPanel,
|
|
3465
3519
|
PxTabs,
|
|
3466
3520
|
Ribbon,
|
|
3467
|
-
|
|
3521
|
+
SVGIcon,
|
|
3468
3522
|
Separator,
|
|
3469
3523
|
Spacer,
|
|
3470
3524
|
Span,
|
|
3471
3525
|
Stack,
|
|
3526
|
+
Tag,
|
|
3527
|
+
Timeline,
|
|
3528
|
+
TimelineItem,
|
|
3472
3529
|
Typography,
|
|
3473
3530
|
VStack,
|
|
3474
3531
|
WithFlexAttributes,
|
|
@@ -3476,16 +3533,16 @@ export {
|
|
|
3476
3533
|
bgColorValues,
|
|
3477
3534
|
borderRadiusValues,
|
|
3478
3535
|
borderValues,
|
|
3479
|
-
colorValues$
|
|
3536
|
+
colorValues$1 as colorValues,
|
|
3480
3537
|
fontsizeValues,
|
|
3481
3538
|
fontweightValues,
|
|
3482
|
-
gapValues,
|
|
3483
3539
|
getSupportedAttributeNames,
|
|
3484
3540
|
getViewportFormat,
|
|
3485
3541
|
gradientValues,
|
|
3486
|
-
iconSizeValues,
|
|
3542
|
+
iconSizeValues$1 as iconSizeValues,
|
|
3487
3543
|
isFalsy,
|
|
3488
3544
|
paddingValues,
|
|
3489
|
-
|
|
3490
|
-
|
|
3545
|
+
shadowValues,
|
|
3546
|
+
sizeValues$1 as sizeValues,
|
|
3547
|
+
textalignValues
|
|
3491
3548
|
};
|