@proximus/lavender 1.4.11-alpha.9 → 1.4.12-alpha.2
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 +178 -76
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -2384,8 +2384,8 @@ let Span = _Span;
|
|
|
2384
2384
|
if (!customElements.get("px-span")) {
|
|
2385
2385
|
customElements.define("px-span", Span);
|
|
2386
2386
|
}
|
|
2387
|
-
const actionButtonCss = "button{border-radius:var(--px-radius-pill);background-color:var(--px-color-background-container-secondary-default);
|
|
2388
|
-
const styles$N = ":host{display:block}:host *{box-sizing:border-box}:host(:not([promoted])){display:none}a,button{display:block;padding:var(--px-padding-xs-mobile);cursor:pointer;border-radius:var(--px-radius-main);text-decoration:none;color:var(--px-color-text-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}a px-span,button px-span{font-size:var(--px-text-size-label-s-mobile)}a:hover,button:hover{background-color:var(--px-color-background-container-secondary-default)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (min-width: 48rem){a,button{padding:var(--px-padding-xs-tablet)
|
|
2387
|
+
const actionButtonCss = "button{border-radius:var(--px-radius-pill);background-color:var(--px-color-background-container-secondary-default);width:var(--px-size-l);height:var(--px-size-l)}button:hover{background-color:transparent;border-color:var(--px-color-border-state-hover-default)}@media only screen and (min-width: 48rem){button{border-radius:var(--px-radius-main);width:inherit;height:inherit}}";
|
|
2388
|
+
const styles$N = ":host{display:block}:host *{box-sizing:border-box}:host(:not([promoted])){display:none}a,button{display:block;padding:var(--px-padding-xs-mobile);cursor:pointer;border-radius:var(--px-radius-main);text-decoration:none;color:var(--px-color-text-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}a px-span,button px-span{font-size:var(--px-text-size-label-s-mobile);line-height:var(--px-line-height-ratio-s)}a:hover,button:hover{background-color:var(--px-color-background-container-secondary-default)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (min-width: 48rem){a,button{padding:var(--px-padding-xs-tablet);min-width:65px}a px-span,button px-span{font-size:var(--px-text-size-label-s-tablet)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}:host(:not([promoted])){display:block}}@media only screen and (min-width: 64.0625rem){a,button{padding:var(--px-padding-xs-laptop);border:var(--px-size-border-m) solid transparent}a px-span,button px-span{font-size:var(--px-text-size-label-s-laptop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625rem){a,button{padding:var(--px-padding-xs-desktop)}a px-span,button px-span{font-size:var(--px-text-size-label-s-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}";
|
|
2389
2389
|
const actionButtonStyles = new CSSStyleSheet();
|
|
2390
2390
|
const actionLinkStyles = new CSSStyleSheet();
|
|
2391
2391
|
actionButtonStyles.replaceSync(actionButtonCss);
|
|
@@ -2399,11 +2399,11 @@ const _ActionButton = class _ActionButton extends PxElement {
|
|
|
2399
2399
|
<px-icon
|
|
2400
2400
|
name="${this.getAttribute("icon-name")}"
|
|
2401
2401
|
from="${this.getAttribute("icon-from")}"
|
|
2402
|
-
size="
|
|
2402
|
+
size="m"
|
|
2403
2403
|
hidden--mobile
|
|
2404
2404
|
>
|
|
2405
2405
|
</px-icon>
|
|
2406
|
-
<px-span color="brand"><slot></slot></px-span>
|
|
2406
|
+
<px-span color="brand" font-size="inherit"><slot></slot></px-span>
|
|
2407
2407
|
</px-vstack>
|
|
2408
2408
|
</button>
|
|
2409
2409
|
`;
|
|
@@ -3315,10 +3315,10 @@ const _ActionLink = class _ActionLink extends PxElement {
|
|
|
3315
3315
|
<px-icon
|
|
3316
3316
|
name="${this.getAttribute("icon-name")}"
|
|
3317
3317
|
from="${this.getAttribute("icon-from")}"
|
|
3318
|
-
size="
|
|
3318
|
+
size="m"
|
|
3319
3319
|
>
|
|
3320
3320
|
</px-icon>
|
|
3321
|
-
<px-span color="brand" hidden--mobile><slot></slot></px-span>
|
|
3321
|
+
<px-span color="brand" font-size="inherit" hidden--mobile><slot></slot></px-span>
|
|
3322
3322
|
</px-vstack>
|
|
3323
3323
|
</a>`;
|
|
3324
3324
|
this.shadowRoot.innerHTML = this.template();
|
|
@@ -9392,7 +9392,7 @@ let ColorOptionLink = _ColorOptionLink;
|
|
|
9392
9392
|
if (!customElements.get("px-color-option-link")) {
|
|
9393
9393
|
customElements.define("px-color-option-link", ColorOptionLink);
|
|
9394
9394
|
}
|
|
9395
|
-
const contentHeaderCss =
|
|
9395
|
+
const contentHeaderCss = ':host{--min-height--mobile: 15.625rem;--min-height--tablet: 17.5rem;--min-height--laptop: 17.5rem;--min-height--desktop: 17.5rem}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;z-index:2;position:relative;box-sizing:border-box}.content-header-content ::slotted([slot="patch"]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (min-width: 48rem){.content-header-content ::slotted([slot="patch"]){flex-shrink:0}.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (min-width: 64.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (min-width: 90.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}';
|
|
9396
9396
|
const styles$A = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (min-width: 77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media screen and (min-width: 48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-tablet) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-tablet)}}@media screen and (min-width: 64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-laptop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-laptop)}}';
|
|
9397
9397
|
const styleSheet$t = new CSSStyleSheet();
|
|
9398
9398
|
styleSheet$t.replaceSync(styles$A);
|
|
@@ -10015,6 +10015,10 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10015
10015
|
<px-h1><slot></slot></px-h1>
|
|
10016
10016
|
<slot name="subtitle"></slot>
|
|
10017
10017
|
</px-vstack>
|
|
10018
|
+
<px-stack gap="s" direction="row" direction--mobile="column">
|
|
10019
|
+
<slot name="patch" shrink></slot>
|
|
10020
|
+
<slot name="patch-description"></slot>
|
|
10021
|
+
</px-stack>
|
|
10018
10022
|
</div>
|
|
10019
10023
|
</px-container>
|
|
10020
10024
|
</px-grid>
|
|
@@ -10040,38 +10044,22 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10040
10044
|
"has-gridding--mobile",
|
|
10041
10045
|
"has-gridding--tablet",
|
|
10042
10046
|
"has-gridding--laptop",
|
|
10047
|
+
"has-gridding--desktop",
|
|
10043
10048
|
"inverted"
|
|
10044
10049
|
];
|
|
10045
10050
|
}
|
|
10046
10051
|
connectedCallback() {
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
`<px-stack gap="s" direction="row" direction--mobile="column">
|
|
10053
|
-
<slot name="patch" shrink></slot>
|
|
10054
|
-
<slot name="patch-description"></slot>
|
|
10055
|
-
</px-stack>`
|
|
10056
|
-
);
|
|
10057
|
-
}
|
|
10058
|
-
if (this.$subtitleSlot) {
|
|
10059
|
-
this.$subtitleSlot.setAttribute("variant", "subtitle");
|
|
10060
|
-
}
|
|
10061
|
-
if (this.$patchDescriptionSlot) {
|
|
10062
|
-
if (this.$patchDescriptionSlot.localName === "px-p") {
|
|
10063
|
-
this.$patchDescriptionSlot.setAttribute("variant", "default");
|
|
10064
|
-
}
|
|
10065
|
-
if (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") {
|
|
10066
|
-
this.$patchDescriptionSlot.setAttribute("font-size", "body-l");
|
|
10067
|
-
this.$patchDescriptionSlot.removeAttribute("font-weight");
|
|
10068
|
-
this.$patchDescriptionSlot.removeAttribute("color");
|
|
10069
|
-
}
|
|
10070
|
-
if (this.$patchDescriptionSlot.localName === "px-price") {
|
|
10071
|
-
this.$patchDescriptionSlot.setAttribute("size", "m");
|
|
10072
|
-
}
|
|
10073
|
-
}
|
|
10052
|
+
var _a, _b;
|
|
10053
|
+
this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this);
|
|
10054
|
+
this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this);
|
|
10055
|
+
this.styleSubtitleSlot();
|
|
10056
|
+
this.stylepatchDescriptionSlotted();
|
|
10074
10057
|
this.createGridding();
|
|
10058
|
+
(_a = this.$subtitleSlot) == null ? void 0 : _a.addEventListener("slotchange", this.styleSubtitleSlot);
|
|
10059
|
+
(_b = this.$patchDescriptionSlot) == null ? void 0 : _b.addEventListener(
|
|
10060
|
+
"slotchange",
|
|
10061
|
+
this.stylepatchDescriptionSlotted
|
|
10062
|
+
);
|
|
10075
10063
|
}
|
|
10076
10064
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
10077
10065
|
if (oldValue !== newValue) {
|
|
@@ -10104,6 +10092,7 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10104
10092
|
case "has-gridding--mobile":
|
|
10105
10093
|
case "has-gridding--tablet":
|
|
10106
10094
|
case "has-gridding--laptop":
|
|
10095
|
+
case "has-gridding--desktop":
|
|
10107
10096
|
this.createGridding(newValue);
|
|
10108
10097
|
break;
|
|
10109
10098
|
case "inverted":
|
|
@@ -10121,6 +10110,37 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10121
10110
|
}
|
|
10122
10111
|
}
|
|
10123
10112
|
}
|
|
10113
|
+
disconnectedCallback() {
|
|
10114
|
+
var _a, _b;
|
|
10115
|
+
(_a = this.$subtitleSlot) == null ? void 0 : _a.removeEventListener(
|
|
10116
|
+
"slotchange",
|
|
10117
|
+
this.styleSubtitleSlot
|
|
10118
|
+
);
|
|
10119
|
+
(_b = this.$patchDescriptionSlot) == null ? void 0 : _b.removeEventListener(
|
|
10120
|
+
"slotchange",
|
|
10121
|
+
this.stylepatchDescriptionSlotted
|
|
10122
|
+
);
|
|
10123
|
+
}
|
|
10124
|
+
stylepatchDescriptionSlotted() {
|
|
10125
|
+
if (this.$patchDescriptionSlotted) {
|
|
10126
|
+
if (this.$patchDescriptionSlotted.localName === "px-p") {
|
|
10127
|
+
this.$patchDescriptionSlotted.setAttribute("variant", "default");
|
|
10128
|
+
}
|
|
10129
|
+
if (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") {
|
|
10130
|
+
this.$patchDescriptionSlotted.setAttribute("font-size", "body-l");
|
|
10131
|
+
this.$patchDescriptionSlotted.removeAttribute("font-weight");
|
|
10132
|
+
this.$patchDescriptionSlotted.removeAttribute("color");
|
|
10133
|
+
}
|
|
10134
|
+
if (this.$patchDescriptionSlotted.localName === "px-price") {
|
|
10135
|
+
this.$patchDescriptionSlotted.setAttribute("size", "m");
|
|
10136
|
+
}
|
|
10137
|
+
}
|
|
10138
|
+
}
|
|
10139
|
+
styleSubtitleSlot() {
|
|
10140
|
+
if (this.$subtitleSlotted) {
|
|
10141
|
+
this.$subtitleSlotted.setAttribute("variant", "subtitle");
|
|
10142
|
+
}
|
|
10143
|
+
}
|
|
10124
10144
|
createGridding(value) {
|
|
10125
10145
|
const breakpoints = [
|
|
10126
10146
|
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
@@ -10138,6 +10158,11 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10138
10158
|
prop: "hasGriddingLaptop",
|
|
10139
10159
|
gridAttr: "grid-cols--laptop",
|
|
10140
10160
|
attr: "col-span--laptop"
|
|
10161
|
+
},
|
|
10162
|
+
{
|
|
10163
|
+
prop: "hasGriddingDesktop",
|
|
10164
|
+
gridAttr: "grid-cols--desktop",
|
|
10165
|
+
attr: "col-span--desktop"
|
|
10141
10166
|
}
|
|
10142
10167
|
];
|
|
10143
10168
|
const spanElement = this.shadowRoot.querySelector(
|
|
@@ -10167,9 +10192,21 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10167
10192
|
return this.shadowRoot.querySelector("px-h1");
|
|
10168
10193
|
}
|
|
10169
10194
|
get $subtitleSlot() {
|
|
10195
|
+
var _a;
|
|
10196
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
10197
|
+
'slot[name="subtitle"]'
|
|
10198
|
+
);
|
|
10199
|
+
}
|
|
10200
|
+
get $subtitleSlotted() {
|
|
10170
10201
|
return this.querySelector('[slot="subtitle"]');
|
|
10171
10202
|
}
|
|
10172
10203
|
get $patchDescriptionSlot() {
|
|
10204
|
+
var _a;
|
|
10205
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
10206
|
+
'slot[name="patch-description"]'
|
|
10207
|
+
);
|
|
10208
|
+
}
|
|
10209
|
+
get $patchDescriptionSlotted() {
|
|
10173
10210
|
return this.querySelector('[slot="patch-description"]');
|
|
10174
10211
|
}
|
|
10175
10212
|
get $overlapSlot() {
|
|
@@ -10286,6 +10323,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10286
10323
|
this.removeAttribute("has-gridding--laptop");
|
|
10287
10324
|
}
|
|
10288
10325
|
}
|
|
10326
|
+
get hasGriddingDesktop() {
|
|
10327
|
+
return this.hasAttribute("has-gridding--desktop");
|
|
10328
|
+
}
|
|
10329
|
+
set hasGriddingDesktop(value) {
|
|
10330
|
+
if (value) {
|
|
10331
|
+
this.setAttribute("has-gridding--desktop", "");
|
|
10332
|
+
} else {
|
|
10333
|
+
this.removeAttribute("has-gridding--desktop");
|
|
10334
|
+
}
|
|
10335
|
+
}
|
|
10289
10336
|
get inverted() {
|
|
10290
10337
|
return this.hasAttribute("inverted");
|
|
10291
10338
|
}
|
|
@@ -10521,6 +10568,7 @@ const HIDE_EVENT = "px.lavender.drawer.hide";
|
|
|
10521
10568
|
class Drawer extends HTMLElement {
|
|
10522
10569
|
constructor() {
|
|
10523
10570
|
super();
|
|
10571
|
+
this.previousFocusedElement = null;
|
|
10524
10572
|
this.template = `<dialog popover role="dialog" aria-modal="true" >
|
|
10525
10573
|
<div id="container">
|
|
10526
10574
|
<px-vstack gap="heading-to-subtitle" id="header">
|
|
@@ -10645,14 +10693,18 @@ class Drawer extends HTMLElement {
|
|
|
10645
10693
|
}
|
|
10646
10694
|
}
|
|
10647
10695
|
show() {
|
|
10648
|
-
var _a, _b;
|
|
10649
|
-
|
|
10696
|
+
var _a, _b, _c;
|
|
10697
|
+
const active = document.activeElement;
|
|
10698
|
+
this.previousFocusedElement = ((_a = active == null ? void 0 : active.shadowRoot) == null ? void 0 : _a.activeElement) ?? active;
|
|
10699
|
+
(_c = (_b = this.$dialog).showPopover) == null ? void 0 : _c.call(_b);
|
|
10650
10700
|
document.body.style.overflow = "hidden";
|
|
10651
10701
|
}
|
|
10652
10702
|
hide() {
|
|
10653
|
-
var _a, _b;
|
|
10703
|
+
var _a, _b, _c;
|
|
10654
10704
|
(_b = (_a = this.$dialog).hidePopover) == null ? void 0 : _b.call(_a);
|
|
10655
10705
|
document.body.style.overflow = "";
|
|
10706
|
+
(_c = this.previousFocusedElement) == null ? void 0 : _c.focus();
|
|
10707
|
+
this.previousFocusedElement = null;
|
|
10656
10708
|
this.dispatchEvent(
|
|
10657
10709
|
new Event(HIDE_EVENT, {
|
|
10658
10710
|
bubbles: true,
|
|
@@ -10804,7 +10856,7 @@ class Drawer extends HTMLElement {
|
|
|
10804
10856
|
if (!customElements.get("px-drawer")) {
|
|
10805
10857
|
customElements.define("px-drawer", Drawer);
|
|
10806
10858
|
}
|
|
10807
|
-
const styles$x = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}';
|
|
10859
|
+
const styles$x = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto;max-height:var(--px-popover-max-height)}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}';
|
|
10808
10860
|
const anchorAlignmentValues = [
|
|
10809
10861
|
"top-left",
|
|
10810
10862
|
"top-right",
|
|
@@ -10936,7 +10988,8 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10936
10988
|
"id",
|
|
10937
10989
|
"anchoralignment",
|
|
10938
10990
|
"use-polyfill",
|
|
10939
|
-
"manual-toggle"
|
|
10991
|
+
"manual-toggle",
|
|
10992
|
+
"popover-height"
|
|
10940
10993
|
];
|
|
10941
10994
|
}
|
|
10942
10995
|
connectedCallback() {
|
|
@@ -10978,12 +11031,25 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10978
11031
|
(_a = this.$trigger) == null ? void 0 : _a.removeAttribute("aria-expanded");
|
|
10979
11032
|
}
|
|
10980
11033
|
break;
|
|
11034
|
+
case "popover-height":
|
|
11035
|
+
this.updatePopoverHeight(newValue);
|
|
11036
|
+
break;
|
|
10981
11037
|
default:
|
|
10982
11038
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
10983
11039
|
break;
|
|
10984
11040
|
}
|
|
10985
11041
|
}
|
|
10986
11042
|
}
|
|
11043
|
+
updatePopoverHeight(newValue) {
|
|
11044
|
+
if (newValue) {
|
|
11045
|
+
this.$popoverElement.style.setProperty(
|
|
11046
|
+
"--px-popover-max-height",
|
|
11047
|
+
newValue
|
|
11048
|
+
);
|
|
11049
|
+
} else {
|
|
11050
|
+
this.$popoverElement.style.removeProperty("--px-popover-max-height");
|
|
11051
|
+
}
|
|
11052
|
+
}
|
|
10987
11053
|
initPopover() {
|
|
10988
11054
|
if (this.$trigger) {
|
|
10989
11055
|
this.$trigger.setAttribute("popovertarget", this.popoverId);
|
|
@@ -11046,6 +11112,16 @@ class Dropdown extends WithExtraAttributes {
|
|
|
11046
11112
|
this.removeAttribute("manual-toggle");
|
|
11047
11113
|
}
|
|
11048
11114
|
}
|
|
11115
|
+
get popoverHeight() {
|
|
11116
|
+
return this.getAttribute("popover-height");
|
|
11117
|
+
}
|
|
11118
|
+
set popoverHeight(value) {
|
|
11119
|
+
if (value) {
|
|
11120
|
+
this.setAttribute("popover-height", value);
|
|
11121
|
+
} else {
|
|
11122
|
+
this.removeAttribute("popover-height");
|
|
11123
|
+
}
|
|
11124
|
+
}
|
|
11049
11125
|
}
|
|
11050
11126
|
_Dropdown_instances = new WeakSet();
|
|
11051
11127
|
resetManualPopoverDisplay_fn = function() {
|
|
@@ -11878,7 +11954,7 @@ let FooterSitemapItem = _FooterSitemapItem;
|
|
|
11878
11954
|
if (!customElements.get("px-footer-sitemap-item")) {
|
|
11879
11955
|
customElements.define("px-footer-sitemap-item", FooterSitemapItem);
|
|
11880
11956
|
}
|
|
11881
|
-
const styles$v = ":host{display:block}:host *{box-sizing:border-box}button,a{display:
|
|
11957
|
+
const styles$v = ":host{display:block;height:100%}:host *{box-sizing:border-box}button,a{display:flex;flex-direction:column;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-font-line-height-l);color:var(--px-color-text-neutral-default);text-align:center;cursor:pointer;padding:var(--px-padding-m-mobile) 0;height:100%}button:after,a:after{content:attr(data-label);display:block;height:0;width:auto;visibility:hidden;overflow:hidden;-webkit-user-select:none;user-select:none;pointer-events:none;font-weight:var(--px-font-weight-title)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}:host([current]) button,button:hover,:host([current]) a,a:hover{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default)}button{margin:0;border:0;border-bottom:2px solid rgba(0,0,0,0);outline:0;background:inherit}button[aria-expanded=true]{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default);border-bottom-color:var(--px-color-background-container-primary-default)}a{text-decoration:none}@media screen and (min-width: 48rem){button,a{font-size:var(--px-text-size-label-m-tablet);padding:var(--px-padding-m-tablet) 0}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (min-width: 64.0625rem){button,a{font-size:var(--px-text-size-label-m-laptop);padding:var(--px-padding-m-laptop) 0}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (min-width: 90.0625rem){button,a{font-size:var(--px-text-size-label-m-desktop);padding:var(--px-padding-m-desktop) 0}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}";
|
|
11882
11958
|
const stylesheet$7 = new CSSStyleSheet();
|
|
11883
11959
|
stylesheet$7.replaceSync(styles$v);
|
|
11884
11960
|
class HeaderItem extends WithExtraAttributes {
|
|
@@ -11994,7 +12070,7 @@ class MDDLink extends HTMLElement {
|
|
|
11994
12070
|
if (!customElements.get("px-mdd-a")) {
|
|
11995
12071
|
customElements.define("px-mdd-a", MDDLink);
|
|
11996
12072
|
}
|
|
11997
|
-
const styles$u =
|
|
12073
|
+
const styles$u = '#navigation-container{border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}#dropdown-zone--desktop{display:none}#primary-navigation{display:none;margin:0;padding:0}#primary-navigation div,#primary-navigation px-hstack{height:100%}#panel-container{position:absolute;top:0;left:0;right:0;z-index:999}#backdrop-filter{display:none;position:absolute;z-index:998;left:0;width:100vw;height:100%;background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}@media screen and (min-width: 48rem){#dropdown-zone--desktop{display:flex;justify-content:space-between;align-items:center}#dropdown-zone--desktop ::slotted([slot="target-group"]),#dropdown-zone--desktop ::slotted([slot="user-language"]){margin-bottom:var(--px-spacing-s-tablet)}#primary-navigation{display:block}#panel-container{top:auto}::slotted([slot="header-actions"]){margin-bottom:var(--px-padding-s-tablet)}}@media screen and (min-width: 64.0625rem){#dropdown-zone--desktop ::slotted([slot="target-group"]),#dropdown-zone--desktop ::slotted([slot="user-language"]){margin-bottom:var(--px-spacing-s-laptop)}::slotted([slot="header-actions"]){margin-bottom:var(--px-padding-s-laptop)}}@media screen and (min-width: 90.0625rem){#dropdown-zone--desktop ::slotted([slot="target-group"]),#dropdown-zone--desktop ::slotted([slot="user-language"]){margin-bottom:var(--px-spacing-s-desktop)}::slotted([slot="header-actions"]){margin-bottom:var(--px-padding-s-desktop)}}';
|
|
11998
12074
|
const stylesheet$6 = new CSSStyleSheet();
|
|
11999
12075
|
stylesheet$6.replaceSync(styles$u);
|
|
12000
12076
|
const menuAriaLabel = "Menu";
|
|
@@ -12008,12 +12084,15 @@ class Header extends WithExtraAttributes {
|
|
|
12008
12084
|
<div>
|
|
12009
12085
|
<header>
|
|
12010
12086
|
<slot name="skip"></slot>
|
|
12011
|
-
<px-section id="navigation-container" padding-
|
|
12087
|
+
<px-section id="navigation-container" padding-bottom="none" padding-bottom--mobile="s" padding-top="s" background-color="none">
|
|
12012
12088
|
<div id="dropdown-zone--desktop">
|
|
12013
12089
|
<slot name="target-group"></slot>
|
|
12014
12090
|
<slot name="user-language"></slot>
|
|
12015
12091
|
</div>
|
|
12016
|
-
<px-hstack gap="default" wrap="wrap"
|
|
12092
|
+
<px-hstack gap="default" wrap="wrap" id="navigation-wrapper">
|
|
12093
|
+
<px-hstack align-items="center">
|
|
12094
|
+
<slot name="header-logo"></slot>
|
|
12095
|
+
</px-hstack>
|
|
12017
12096
|
<slot name="header-logo"></slot>
|
|
12018
12097
|
<nav id="primary-navigation" aria-label="${this.primaryNavigationAriaLabel}">
|
|
12019
12098
|
<div role="list">
|
|
@@ -12028,7 +12107,7 @@ class Header extends WithExtraAttributes {
|
|
|
12028
12107
|
<px-button-icon id="burger-menu" variant="naked" aria-label="${this.burgerMenuAriaLabel ?? "Open menu"}"
|
|
12029
12108
|
aria-expanded="false" hidden--tablet hidden--laptop
|
|
12030
12109
|
hidden--desktop>
|
|
12031
|
-
<px-icon name="burger_menu" from="lavender"></px-icon>
|
|
12110
|
+
<px-icon name="burger_menu" from="lavender" size="m"></px-icon>
|
|
12032
12111
|
</px-button-icon>
|
|
12033
12112
|
</px-hstack>
|
|
12034
12113
|
</px-hstack>
|
|
@@ -13434,7 +13513,7 @@ class MDDCloser extends HTMLElement {
|
|
|
13434
13513
|
if (!customElements.get("px-mdd-closer")) {
|
|
13435
13514
|
customElements.define("px-mdd-closer", MDDCloser);
|
|
13436
13515
|
}
|
|
13437
|
-
const styles$q = ":host{--mdd-dialog-offset-top: 0}dialog{border:none;width:100%;margin-inline:0;margin-top:var(--mdd-dialog-offset-top);max-width:100%;max-height:100%;background-color:var(--px-color-background-surface-default)}@keyframes slide-left-fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}dialog::backdrop{background-color:#0000}@media screen and (max-height: 17.813rem){dialog #footer{position:static}dialog::backdrop{background-color:#0006}}@media screen and (max-width: 47.9375rem){dialog{height:100dvh;margin:0;padding:0;animation:slide-left-fade-in .3s ease-in-out}px-container{height:100dvh}px-container>px-vstack>px-button-icon{position:initial;display:none;right:0}px-container>px-vstack>px-mdd-closer{display:none}dialog::backdrop{background-color:var(--px-color-background-surface-default)}}px-container{position:relative}px-container>px-vstack>px-button-icon{position:absolute;top:32px;right:16px}#sections-container{overflow:auto}@media screen and (min-width: 48rem){#sections-container{padding-bottom:0}}#mobile-header{display:none}@media screen and (max-width: 47.9375rem){#mobile-header{display:block;padding-bottom:
|
|
13516
|
+
const styles$q = ":host{--mdd-dialog-offset-top: 0}dialog{border:none;width:100%;margin-inline:0;margin-top:var(--mdd-dialog-offset-top);max-width:100%;max-height:100%;background-color:var(--px-color-background-surface-default)}@keyframes slide-left-fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}dialog::backdrop{background-color:#0000}@media screen and (max-height: 17.813rem){dialog #footer{position:static}dialog::backdrop{background-color:#0006}}@media screen and (max-width: 47.9375rem){dialog{height:100dvh;margin:0;padding:0;animation:slide-left-fade-in .3s ease-in-out}px-container{height:100dvh}px-container>px-vstack>px-button-icon{position:initial;display:none;right:0}px-container>px-vstack>px-mdd-closer{display:none}dialog::backdrop{background-color:var(--px-color-background-surface-default)}}px-container{position:relative}px-container>px-vstack>px-button-icon{position:absolute;top:32px;right:16px}#sections-container{overflow:auto}@media screen and (min-width: 48rem){#sections-container{padding-bottom:0}}#mobile-header{display:none}@media screen and (max-width: 47.9375rem){#mobile-header{display:block;padding-bottom:var(--px-spacing-page-layout-between-sections-mobile)}}px-p{display:none}@media screen and (max-width: 47.9375rem){px-p{display:block;padding-bottom:var(--px-spacing-page-layout-between-sections-mobile)}}#footer{display:none}@media screen and (max-width: 47.9375rem){#footer{display:block;position:absolute;bottom:0;left:0;right:0;padding:var(--px-padding-m-mobile) var(--px-padding-s-mobile);background-color:var(--px-color-background-container-light-default);border-top:var(--px-size-border-m) solid var(--px-color-border-main-default)}}";
|
|
13438
13517
|
const stylesheet$3 = new CSSStyleSheet();
|
|
13439
13518
|
stylesheet$3.replaceSync(styles$q);
|
|
13440
13519
|
class MegaDropDown extends HTMLElement {
|
|
@@ -13452,7 +13531,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13452
13531
|
background-color="none"
|
|
13453
13532
|
>
|
|
13454
13533
|
<px-vstack>
|
|
13455
|
-
<px-hstack id="mobile-header" gap="
|
|
13534
|
+
<px-hstack id="mobile-header" gap="default" align-items="center">
|
|
13456
13535
|
<!-- Back button is only visible if the name is __lavender_mobile_menu -->
|
|
13457
13536
|
<px-button id="back-button" variant="tertiary">
|
|
13458
13537
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
@@ -13467,9 +13546,8 @@ class MegaDropDown extends HTMLElement {
|
|
|
13467
13546
|
</px-button-icon>
|
|
13468
13547
|
</px-hstack>
|
|
13469
13548
|
<px-p
|
|
13470
|
-
|
|
13549
|
+
variant="title-2xl"
|
|
13471
13550
|
color="neutral"
|
|
13472
|
-
font-weight="title"
|
|
13473
13551
|
>
|
|
13474
13552
|
<slot name="title"></slot>
|
|
13475
13553
|
</px-p>
|
|
@@ -13483,6 +13561,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13483
13561
|
direction--mobile="column"
|
|
13484
13562
|
direction="row"
|
|
13485
13563
|
gap="l"
|
|
13564
|
+
gap--mobile="page-layout-between-sections"
|
|
13486
13565
|
id="sections-container"
|
|
13487
13566
|
>
|
|
13488
13567
|
<slot></slot>
|
|
@@ -13553,7 +13632,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13553
13632
|
}
|
|
13554
13633
|
});
|
|
13555
13634
|
if (this.getAttribute("name") === "__lavender_mobile_menu") {
|
|
13556
|
-
__privateGet(this, _MegaDropDown_instances, $backButton_get).style.
|
|
13635
|
+
__privateGet(this, _MegaDropDown_instances, $backButton_get).style.display = "none";
|
|
13557
13636
|
}
|
|
13558
13637
|
if (this.getAttribute("name") !== "__lavender_mobile_menu") {
|
|
13559
13638
|
__privateGet(this, _MegaDropDown_instances, $title_get).innerText = ((_b = (_a = this.closest("px-header")) == null ? void 0 : _a.querySelector(
|
|
@@ -13692,7 +13771,7 @@ $closeButtons_get = function() {
|
|
|
13692
13771
|
if (!customElements.get("px-mdd")) {
|
|
13693
13772
|
customElements.define("px-mdd", MegaDropDown);
|
|
13694
13773
|
}
|
|
13695
|
-
const styles$p = ':host{flex-basis:25%}@media screen and (max-width: 47.9375rem){:host{width:100%;flex-basis:100%}#section-wrapper{background-color
|
|
13774
|
+
const styles$p = ':host{flex-basis:25%}@media screen and (max-width: 47.9375rem){:host{width:100%;flex-basis:100%}#section-wrapper{background-color:var(--px-color-background-surface-light);border-radius:var(--px-radius-main);padding-inline:var(--px-padding-m-mobile)}::slotted(px-mdd-section-item){border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}::slotted(px-mdd-section-item:last-of-type){border-bottom:none}::slotted([slot="footer"]){background-color:var(--px-color-background-surface-light);border-radius:var(--px-radius-main);padding-inline:var(--px-padding-m-mobile);line-height:4rem}:host([title-hidden]){padding-bottom:var(--mdd-section-container-padding-bottom, 0)}}';
|
|
13696
13775
|
const stylesheet$2 = new CSSStyleSheet();
|
|
13697
13776
|
stylesheet$2.replaceSync(styles$p);
|
|
13698
13777
|
class MddSection extends HTMLElement {
|
|
@@ -13707,7 +13786,7 @@ class MddSection extends HTMLElement {
|
|
|
13707
13786
|
<slot></slot>
|
|
13708
13787
|
</px-vstack>
|
|
13709
13788
|
</nav>
|
|
13710
|
-
<px-vstack gap="default" gap--mobile="
|
|
13789
|
+
<px-vstack gap="default" gap--mobile="s">
|
|
13711
13790
|
<slot name="footer"></slot>
|
|
13712
13791
|
</px-vstack>
|
|
13713
13792
|
</px-vstack>`;
|
|
@@ -13764,7 +13843,7 @@ class MddSection extends HTMLElement {
|
|
|
13764
13843
|
if (!customElements.get("px-mdd-section")) {
|
|
13765
13844
|
customElements.define("px-mdd-section", MddSection);
|
|
13766
13845
|
}
|
|
13767
|
-
const styles$o = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit
|
|
13846
|
+
const styles$o = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a:hover{text-decoration:underline;color:var(--px-color-text-state-hover-default)}button{background:none;border:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;width:100%;text-align:left;font-weight:var(--px-font-weight-title)}a,button{display:block;font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media screen and (max-width: 47.9375rem){a,button{padding:var(--px-spacing-s-mobile) 0}}@media screen and (min-width: 48rem){a{display:inline-block}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a,button{font-size:var(--px-text-size-label-m-tablet)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (min-width: 64.0625rem){a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a,button{font-size:var(--px-text-size-label-m-laptop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (min-width: 90.0625rem){a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a,button{font-size:var(--px-text-size-label-m-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}';
|
|
13768
13847
|
const stylesheet$1 = new CSSStyleSheet();
|
|
13769
13848
|
stylesheet$1.replaceSync(styles$o);
|
|
13770
13849
|
class MddSectionItem extends HTMLElement {
|
|
@@ -13772,13 +13851,13 @@ class MddSectionItem extends HTMLElement {
|
|
|
13772
13851
|
var _a;
|
|
13773
13852
|
super();
|
|
13774
13853
|
this.template = `
|
|
13775
|
-
<px-hstack align-items="center">
|
|
13854
|
+
<px-hstack align-items="center" gap="default">
|
|
13776
13855
|
<span class="mdd-section-item-action-container">
|
|
13777
13856
|
<slot></slot>
|
|
13778
13857
|
<slot name="after"></slot>
|
|
13779
13858
|
</span>
|
|
13780
13859
|
<px-spacer></px-spacer>
|
|
13781
|
-
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
13860
|
+
<px-icon name="chevron_right" from="lavender" size="m"></px-icon>
|
|
13782
13861
|
</px-hstack>`;
|
|
13783
13862
|
this.attachShadow({ mode: "open" });
|
|
13784
13863
|
this.shadowRoot.adoptedStyleSheets = [stylesheet$1];
|
|
@@ -13861,7 +13940,7 @@ class MddSectionItem extends HTMLElement {
|
|
|
13861
13940
|
if (!customElements.get("px-mdd-section-item")) {
|
|
13862
13941
|
customElements.define("px-mdd-section-item", MddSectionItem);
|
|
13863
13942
|
}
|
|
13864
|
-
const styles$n = '*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:inherit;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-mobile)))}#content-container{padding:var(--px-padding-m-mobile);flex-grow:1}#media-container{display:none}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5rem;overflow:auto}@media screen and (min-width: 48rem){#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-tablet)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25rem}}@media screen and (min-width: 64.0625rem){#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-laptop)))}::slotted(px-button-icon[slot="close-button"]){top:var(--px-padding-m-laptop);right:var(--px-padding-m-laptop)}:host([media-src]) #container.has-close-button #icon-container{max-width:100%}:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25rem;flex-shrink:0}}@media screen and (min-width: 69.875rem){#container{width:1080px}}@media screen and (min-width: 90.0625rem){:host(:not([media-src])) #container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-desktop)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}';
|
|
13943
|
+
const styles$n = '*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:inherit;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-mobile)))}#content-container{display:flex;padding:var(--px-padding-m-mobile);flex-grow:1}#content-container px-vstack{max-height:100%;flex-grow:1}#media-container{display:none}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards;max-width:calc(100% - (var(--px-spacing-s-mobile) * 2));max-height:calc(100% - (var(--px-spacing-s-mobile) * 2))}dialog[open]{display:flex}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5rem;overflow:auto}@media screen and (min-width: 48rem){dialog{max-width:calc(100% - (var(--px-spacing-s-tablet) * 2));max-height:calc(100% - (var(--px-spacing-s-tablet) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-tablet)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25rem}}@media screen and (min-width: 64.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-laptop) * 2));max-height:calc(100% - (var(--px-spacing-s-laptop) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-laptop)))}::slotted(px-button-icon[slot="close-button"]){top:var(--px-padding-m-laptop);right:var(--px-padding-m-laptop)}:host([media-src]) #container.has-close-button #icon-container{max-width:100%}:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25rem;flex-shrink:0}}@media screen and (min-width: 69.875rem){#container{width:1080px}}@media screen and (min-width: 90.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-desktop) * 2));max-height:calc(100% - (var(--px-spacing-s-desktop) * 2))}:host(:not([media-src])) #container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-desktop)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}';
|
|
13865
13944
|
const styleSheet$m = new CSSStyleSheet();
|
|
13866
13945
|
styleSheet$m.replaceSync(styles$n);
|
|
13867
13946
|
const CLOSE_EVENT$1 = "px.lavender.modal.close";
|
|
@@ -16011,13 +16090,13 @@ class Tabs extends HTMLElement {
|
|
|
16011
16090
|
this.template = () => `
|
|
16012
16091
|
<div id="container">
|
|
16013
16092
|
<div id="tab-container">
|
|
16014
|
-
<px-button-icon id="previous" aria-hidden="true">
|
|
16093
|
+
<px-button-icon id="previous" aria-hidden="true" hidden--mobile hidden--tablet>
|
|
16015
16094
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
16016
16095
|
</px-button-icon>
|
|
16017
16096
|
<div id="tablist">
|
|
16018
16097
|
<slot name="tabs"></slot>
|
|
16019
16098
|
</div>
|
|
16020
|
-
<px-button-icon id="next"
|
|
16099
|
+
<px-button-icon id="next" aria-hidden="true" hidden--mobile hidden--tablet>
|
|
16021
16100
|
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
16022
16101
|
</px-button-icon>
|
|
16023
16102
|
</div>
|
|
@@ -17940,7 +18019,7 @@ class Typography extends HTMLElement {
|
|
|
17940
18019
|
if (!customElements.get("px-typography")) {
|
|
17941
18020
|
customElements.define("px-typography", Typography);
|
|
17942
18021
|
}
|
|
17943
|
-
const styles$1 = ":host .dropdown-content{background-color:var(--px-color-background-surface-default);border-radius:var(--px-radius-main);box-shadow:0 4px 6px -1px #25252514;overflow:
|
|
18022
|
+
const styles$1 = ":host .dropdown-content{background-color:var(--px-color-background-surface-default);border-radius:var(--px-radius-main);box-shadow:0 4px 6px -1px #25252514;padding:0;margin-top:calc(var(--px-focus-offset-mobile) + var(--px-focus-outline-mobile));overflow:auto}@media screen and (min-width: 48rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-tablet) + var(--px-focus-outline-tablet))}}@media screen and (min-width: 64.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-laptop) + var(--px-focus-outline-laptop))}}@media screen and (min-width: 90.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-desktop) + var(--px-focus-outline-desktop))}}:host([inverted]) .dropdown-content{background-color:var(--px-color-background-surface-dark)}";
|
|
17944
18023
|
const styleSheet$2 = new CSSStyleSheet();
|
|
17945
18024
|
styleSheet$2.replaceSync(styles$1);
|
|
17946
18025
|
const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
@@ -18011,27 +18090,34 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18011
18090
|
"extended--mobile",
|
|
18012
18091
|
"extended--tablet",
|
|
18013
18092
|
"extended--laptop",
|
|
18014
|
-
"extended--desktop"
|
|
18093
|
+
"extended--desktop",
|
|
18094
|
+
"popover-height"
|
|
18015
18095
|
];
|
|
18016
18096
|
}
|
|
18017
18097
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18098
|
+
if (oldValue !== newValue) {
|
|
18099
|
+
switch (name) {
|
|
18100
|
+
case "size":
|
|
18101
|
+
case "state":
|
|
18102
|
+
case "extended":
|
|
18103
|
+
case "extended--mobile":
|
|
18104
|
+
case "extended--tablet":
|
|
18105
|
+
case "extended--laptop":
|
|
18106
|
+
case "extended--desktop":
|
|
18107
|
+
if (newValue !== null) {
|
|
18108
|
+
this.$input.setAttribute(name, newValue);
|
|
18109
|
+
} else {
|
|
18110
|
+
this.$input.removeAttribute(name);
|
|
18111
|
+
}
|
|
18112
|
+
break;
|
|
18113
|
+
case "popover-height":
|
|
18114
|
+
this.setDefaultPopoverHeight();
|
|
18115
|
+
this.$dropDown.popoverHeight = this.popoverHeight;
|
|
18116
|
+
break;
|
|
18117
|
+
default:
|
|
18118
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
18119
|
+
break;
|
|
18120
|
+
}
|
|
18035
18121
|
}
|
|
18036
18122
|
}
|
|
18037
18123
|
connectedCallback() {
|
|
@@ -18050,11 +18136,17 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18050
18136
|
if (labelId) {
|
|
18051
18137
|
this.$dropDownContent.setAttribute("aria-labelledby", labelId);
|
|
18052
18138
|
}
|
|
18139
|
+
this.setDefaultPopoverHeight();
|
|
18053
18140
|
}
|
|
18054
18141
|
disconnectedCallback() {
|
|
18055
18142
|
this.$input.removeEventListener("input", __privateGet(this, _onInput));
|
|
18056
18143
|
this.removeEventListener("keydown", __privateGet(this, _onKeyDown));
|
|
18057
18144
|
}
|
|
18145
|
+
setDefaultPopoverHeight() {
|
|
18146
|
+
if (!this.popoverHeight) {
|
|
18147
|
+
this.popoverHeight = "16.5rem";
|
|
18148
|
+
}
|
|
18149
|
+
}
|
|
18058
18150
|
get value() {
|
|
18059
18151
|
return this.$input.value;
|
|
18060
18152
|
}
|
|
@@ -18088,6 +18180,16 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18088
18180
|
get $label() {
|
|
18089
18181
|
return this.querySelector('[slot="label"]');
|
|
18090
18182
|
}
|
|
18183
|
+
get popoverHeight() {
|
|
18184
|
+
return this.getAttribute("popover-height");
|
|
18185
|
+
}
|
|
18186
|
+
set popoverHeight(value) {
|
|
18187
|
+
if (value) {
|
|
18188
|
+
this.setAttribute("popover-height", value);
|
|
18189
|
+
} else {
|
|
18190
|
+
this.removeAttribute("popover-height");
|
|
18191
|
+
}
|
|
18192
|
+
}
|
|
18091
18193
|
};
|
|
18092
18194
|
_controlId = new WeakMap();
|
|
18093
18195
|
_onKeyDown = new WeakMap();
|