@proximus/lavender 1.4.11-alpha.9 → 1.4.11
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 +185 -85
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
9
9
|
var _host, _interactiveElement, _canSetInteractiveState, _isConnected, _showInteractiveState, _WrappedInteractiveStateController_instances, interactiveStateTargets_get, _src, _internals, _template, _Banner_instances, applyReducedPadding_fn, _Breadcrumb_instances, applyInverted_fn, _wrappedInteractiveStateController, _ButtonWrapper_instances, canSetWrappedInteractiveState_fn, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn, _Carousel_instances, syncItems_fn, _currentCheckedRadioIndex, _Dropdown_instances, resetManualPopoverDisplay_fn, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _wrappedInteractiveStateController2, _LinkWrapper_instances, canSetWrappedInteractiveState_fn2, _onResize, _Header_instances, setMDDDialogOffset_fn, togglePanel_fn, showMobileMenu_fn, hideMobileMenu_fn, hidePanel_fn, $mobileMenu_get, $navigationItems_get, $headerWrapper_get, $megaDropdowns_get, _template2, _HeaderMobileMenu_instances, createMobileMenuPanelDropDowns_fn, _Select_instances, updateOptions_fn, _List_instances, syncChildren_fn, applyInverted_fn2, applyVariant_fn, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _CardContainer_instances, updateImageSrc_fn, applyAspectRatio_fn, syncBackgroundColor_fn, syncBorder_fn, syncDefaultBackgroundColor_fn, syncDefaultBorder_fn, syncInteractiveState_fn, hasInteractiveState_fn, syncInvertedOnChildren_fn, setOrRemove_fn, _Tabs_instances, handleInverted_fn, handleHideControls_fn, _Timeline_instances, applyInverted_fn3, _controlId, _onKeyDown, _Autocomplete_instances, options_get, _onInput, updateFormValue_fn, _AutocompleteHeader_instances, syncSlot_fn, _AutocompleteOption_instances, syncSlot_fn2;
|
|
10
10
|
const styles$Q = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.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);overflow-x:var(--overflow-x-all)}@media screen and (max-width: 47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 48rem){.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)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (min-width: 48rem) and (max-width: 64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 64.0625rem){.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)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media screen and (min-width: 90.0625rem){.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);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}';
|
|
11
11
|
const commonStyles = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 48rem) and (max-width: 64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 64.0625rem){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}";
|
|
12
|
-
const __vite_import_meta_env__ = { "DEV": true, "VITE_COMPONENT_DEBUG": "
|
|
12
|
+
const __vite_import_meta_env__ = { "DEV": true, "VITE_COMPONENT_DEBUG": "false" };
|
|
13
13
|
function getSupportedPropertyNames(htmlElementName) {
|
|
14
14
|
const $element = document.createElement(htmlElementName);
|
|
15
15
|
const inputPrototype = Object.getPrototypeOf($element);
|
|
@@ -2385,7 +2385,7 @@ if (!customElements.get("px-span")) {
|
|
|
2385
2385
|
customElements.define("px-span", Span);
|
|
2386
2386
|
}
|
|
2387
2387
|
const actionButtonCss = "button{border-radius:var(--px-radius-pill);background-color:var(--px-color-background-container-secondary-default);border:var(--px-size-border-m) solid transparent;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)}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)
|
|
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);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)}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,7 +2399,7 @@ 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>
|
|
@@ -3315,7 +3315,7 @@ 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
3321
|
<px-span color="brand" hidden--mobile><slot></slot></px-span>
|
|
@@ -3976,6 +3976,7 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3976
3976
|
<slot name="title"></slot>
|
|
3977
3977
|
<slot name="description"></slot>
|
|
3978
3978
|
<slot name="content"></slot>
|
|
3979
|
+
|
|
3979
3980
|
</div>
|
|
3980
3981
|
</px-container>
|
|
3981
3982
|
</px-grid>
|
|
@@ -4111,20 +4112,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4111
4112
|
}
|
|
4112
4113
|
createGridding(value) {
|
|
4113
4114
|
const breakpoints = [
|
|
4114
|
-
{ prop: "hasGridding",
|
|
4115
|
+
{ prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
|
|
4115
4116
|
{
|
|
4116
4117
|
prop: "hasGriddingMobile",
|
|
4117
|
-
|
|
4118
|
+
gridProp: "gridColsMobile",
|
|
4118
4119
|
attr: "col-span--mobile"
|
|
4119
4120
|
},
|
|
4120
4121
|
{
|
|
4121
4122
|
prop: "hasGriddingTablet",
|
|
4122
|
-
|
|
4123
|
+
gridProp: "gridColsTablet",
|
|
4123
4124
|
attr: "col-span--tablet"
|
|
4124
4125
|
},
|
|
4125
4126
|
{
|
|
4126
4127
|
prop: "hasGriddingLaptop",
|
|
4127
|
-
|
|
4128
|
+
gridProp: "gridColsLaptop",
|
|
4128
4129
|
attr: "col-span--laptop"
|
|
4129
4130
|
}
|
|
4130
4131
|
];
|
|
@@ -4132,16 +4133,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4132
4133
|
"px-grid > px-container"
|
|
4133
4134
|
);
|
|
4134
4135
|
if (value !== null) {
|
|
4135
|
-
breakpoints.forEach(({ prop,
|
|
4136
|
+
breakpoints.forEach(({ prop, gridProp, attr }) => {
|
|
4136
4137
|
if (this[prop]) {
|
|
4137
|
-
this.$grid
|
|
4138
|
-
spanElement
|
|
4138
|
+
this.$grid[gridProp] = "3";
|
|
4139
|
+
spanElement.setAttribute(attr, "2");
|
|
4139
4140
|
}
|
|
4140
4141
|
});
|
|
4141
4142
|
} else {
|
|
4142
|
-
breakpoints.forEach(({
|
|
4143
|
-
this.$grid
|
|
4144
|
-
spanElement
|
|
4143
|
+
breakpoints.forEach(({ gridProp, attr }) => {
|
|
4144
|
+
this.$grid[gridProp] = "1";
|
|
4145
|
+
spanElement.removeAttribute(attr);
|
|
4145
4146
|
});
|
|
4146
4147
|
}
|
|
4147
4148
|
}
|
|
@@ -7220,7 +7221,7 @@ class CellSwitch extends WithExtraAttributes {
|
|
|
7220
7221
|
return `
|
|
7221
7222
|
<div class="cell-switch">
|
|
7222
7223
|
<px-cell hoverable>
|
|
7223
|
-
<px-switch slot="action-indicator"
|
|
7224
|
+
<px-switch slot="action-indicator" aria-hidden="true" tabindex="-1"></px-switch>
|
|
7224
7225
|
<slot name="visual" slot="visual"></slot>
|
|
7225
7226
|
<slot name="label" slot="label"></slot>
|
|
7226
7227
|
<slot name="description" slot="description"></slot>
|
|
@@ -8789,7 +8790,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
8789
8790
|
return `
|
|
8790
8791
|
<div class="cell-radio">
|
|
8791
8792
|
<px-cell hoverable>
|
|
8792
|
-
<px-radio slot="prefix"
|
|
8793
|
+
<px-radio slot="prefix" aria-hidden="true" tabindex="-1"></px-radio>
|
|
8793
8794
|
<slot name="visual" slot="visual"></slot>
|
|
8794
8795
|
<slot name="label" slot="label"></slot>
|
|
8795
8796
|
<slot name="description" slot="description"></slot>
|
|
@@ -9392,7 +9393,7 @@ let ColorOptionLink = _ColorOptionLink;
|
|
|
9392
9393
|
if (!customElements.get("px-color-option-link")) {
|
|
9393
9394
|
customElements.define("px-color-option-link", ColorOptionLink);
|
|
9394
9395
|
}
|
|
9395
|
-
const contentHeaderCss =
|
|
9396
|
+
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
9397
|
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
9398
|
const styleSheet$t = new CSSStyleSheet();
|
|
9398
9399
|
styleSheet$t.replaceSync(styles$A);
|
|
@@ -10015,6 +10016,10 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10015
10016
|
<px-h1><slot></slot></px-h1>
|
|
10016
10017
|
<slot name="subtitle"></slot>
|
|
10017
10018
|
</px-vstack>
|
|
10019
|
+
<px-stack gap="s" direction="row" direction--mobile="column">
|
|
10020
|
+
<slot name="patch" shrink></slot>
|
|
10021
|
+
<slot name="patch-description"></slot>
|
|
10022
|
+
</px-stack>
|
|
10018
10023
|
</div>
|
|
10019
10024
|
</px-container>
|
|
10020
10025
|
</px-grid>
|
|
@@ -10040,38 +10045,22 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10040
10045
|
"has-gridding--mobile",
|
|
10041
10046
|
"has-gridding--tablet",
|
|
10042
10047
|
"has-gridding--laptop",
|
|
10048
|
+
"has-gridding--desktop",
|
|
10043
10049
|
"inverted"
|
|
10044
10050
|
];
|
|
10045
10051
|
}
|
|
10046
10052
|
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
|
-
}
|
|
10053
|
+
var _a, _b;
|
|
10054
|
+
this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this);
|
|
10055
|
+
this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this);
|
|
10056
|
+
this.styleSubtitleSlot();
|
|
10057
|
+
this.stylepatchDescriptionSlotted();
|
|
10074
10058
|
this.createGridding();
|
|
10059
|
+
(_a = this.$subtitleSlot) == null ? void 0 : _a.addEventListener("slotchange", this.styleSubtitleSlot);
|
|
10060
|
+
(_b = this.$patchDescriptionSlot) == null ? void 0 : _b.addEventListener(
|
|
10061
|
+
"slotchange",
|
|
10062
|
+
this.stylepatchDescriptionSlotted
|
|
10063
|
+
);
|
|
10075
10064
|
}
|
|
10076
10065
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
10077
10066
|
if (oldValue !== newValue) {
|
|
@@ -10104,6 +10093,7 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10104
10093
|
case "has-gridding--mobile":
|
|
10105
10094
|
case "has-gridding--tablet":
|
|
10106
10095
|
case "has-gridding--laptop":
|
|
10096
|
+
case "has-gridding--desktop":
|
|
10107
10097
|
this.createGridding(newValue);
|
|
10108
10098
|
break;
|
|
10109
10099
|
case "inverted":
|
|
@@ -10121,6 +10111,37 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10121
10111
|
}
|
|
10122
10112
|
}
|
|
10123
10113
|
}
|
|
10114
|
+
disconnectedCallback() {
|
|
10115
|
+
var _a, _b;
|
|
10116
|
+
(_a = this.$subtitleSlot) == null ? void 0 : _a.removeEventListener(
|
|
10117
|
+
"slotchange",
|
|
10118
|
+
this.styleSubtitleSlot
|
|
10119
|
+
);
|
|
10120
|
+
(_b = this.$patchDescriptionSlot) == null ? void 0 : _b.removeEventListener(
|
|
10121
|
+
"slotchange",
|
|
10122
|
+
this.stylepatchDescriptionSlotted
|
|
10123
|
+
);
|
|
10124
|
+
}
|
|
10125
|
+
stylepatchDescriptionSlotted() {
|
|
10126
|
+
if (this.$patchDescriptionSlotted) {
|
|
10127
|
+
if (this.$patchDescriptionSlotted.localName === "px-p") {
|
|
10128
|
+
this.$patchDescriptionSlotted.setAttribute("variant", "default");
|
|
10129
|
+
}
|
|
10130
|
+
if (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") {
|
|
10131
|
+
this.$patchDescriptionSlotted.setAttribute("font-size", "body-l");
|
|
10132
|
+
this.$patchDescriptionSlotted.removeAttribute("font-weight");
|
|
10133
|
+
this.$patchDescriptionSlotted.removeAttribute("color");
|
|
10134
|
+
}
|
|
10135
|
+
if (this.$patchDescriptionSlotted.localName === "px-price") {
|
|
10136
|
+
this.$patchDescriptionSlotted.setAttribute("size", "m");
|
|
10137
|
+
}
|
|
10138
|
+
}
|
|
10139
|
+
}
|
|
10140
|
+
styleSubtitleSlot() {
|
|
10141
|
+
if (this.$subtitleSlotted) {
|
|
10142
|
+
this.$subtitleSlotted.setAttribute("variant", "subtitle");
|
|
10143
|
+
}
|
|
10144
|
+
}
|
|
10124
10145
|
createGridding(value) {
|
|
10125
10146
|
const breakpoints = [
|
|
10126
10147
|
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
@@ -10138,6 +10159,11 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10138
10159
|
prop: "hasGriddingLaptop",
|
|
10139
10160
|
gridAttr: "grid-cols--laptop",
|
|
10140
10161
|
attr: "col-span--laptop"
|
|
10162
|
+
},
|
|
10163
|
+
{
|
|
10164
|
+
prop: "hasGriddingDesktop",
|
|
10165
|
+
gridAttr: "grid-cols--desktop",
|
|
10166
|
+
attr: "col-span--desktop"
|
|
10141
10167
|
}
|
|
10142
10168
|
];
|
|
10143
10169
|
const spanElement = this.shadowRoot.querySelector(
|
|
@@ -10167,9 +10193,21 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10167
10193
|
return this.shadowRoot.querySelector("px-h1");
|
|
10168
10194
|
}
|
|
10169
10195
|
get $subtitleSlot() {
|
|
10196
|
+
var _a;
|
|
10197
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
10198
|
+
'slot[name="subtitle"]'
|
|
10199
|
+
);
|
|
10200
|
+
}
|
|
10201
|
+
get $subtitleSlotted() {
|
|
10170
10202
|
return this.querySelector('[slot="subtitle"]');
|
|
10171
10203
|
}
|
|
10172
10204
|
get $patchDescriptionSlot() {
|
|
10205
|
+
var _a;
|
|
10206
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
10207
|
+
'slot[name="patch-description"]'
|
|
10208
|
+
);
|
|
10209
|
+
}
|
|
10210
|
+
get $patchDescriptionSlotted() {
|
|
10173
10211
|
return this.querySelector('[slot="patch-description"]');
|
|
10174
10212
|
}
|
|
10175
10213
|
get $overlapSlot() {
|
|
@@ -10286,6 +10324,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10286
10324
|
this.removeAttribute("has-gridding--laptop");
|
|
10287
10325
|
}
|
|
10288
10326
|
}
|
|
10327
|
+
get hasGriddingDesktop() {
|
|
10328
|
+
return this.hasAttribute("has-gridding--desktop");
|
|
10329
|
+
}
|
|
10330
|
+
set hasGriddingDesktop(value) {
|
|
10331
|
+
if (value) {
|
|
10332
|
+
this.setAttribute("has-gridding--desktop", "");
|
|
10333
|
+
} else {
|
|
10334
|
+
this.removeAttribute("has-gridding--desktop");
|
|
10335
|
+
}
|
|
10336
|
+
}
|
|
10289
10337
|
get inverted() {
|
|
10290
10338
|
return this.hasAttribute("inverted");
|
|
10291
10339
|
}
|
|
@@ -10521,6 +10569,7 @@ const HIDE_EVENT = "px.lavender.drawer.hide";
|
|
|
10521
10569
|
class Drawer extends HTMLElement {
|
|
10522
10570
|
constructor() {
|
|
10523
10571
|
super();
|
|
10572
|
+
this.previousFocusedElement = null;
|
|
10524
10573
|
this.template = `<dialog popover role="dialog" aria-modal="true" >
|
|
10525
10574
|
<div id="container">
|
|
10526
10575
|
<px-vstack gap="heading-to-subtitle" id="header">
|
|
@@ -10645,14 +10694,18 @@ class Drawer extends HTMLElement {
|
|
|
10645
10694
|
}
|
|
10646
10695
|
}
|
|
10647
10696
|
show() {
|
|
10648
|
-
var _a, _b;
|
|
10649
|
-
|
|
10697
|
+
var _a, _b, _c;
|
|
10698
|
+
const active = document.activeElement;
|
|
10699
|
+
this.previousFocusedElement = ((_a = active == null ? void 0 : active.shadowRoot) == null ? void 0 : _a.activeElement) ?? active;
|
|
10700
|
+
(_c = (_b = this.$dialog).showPopover) == null ? void 0 : _c.call(_b);
|
|
10650
10701
|
document.body.style.overflow = "hidden";
|
|
10651
10702
|
}
|
|
10652
10703
|
hide() {
|
|
10653
|
-
var _a, _b;
|
|
10704
|
+
var _a, _b, _c;
|
|
10654
10705
|
(_b = (_a = this.$dialog).hidePopover) == null ? void 0 : _b.call(_a);
|
|
10655
10706
|
document.body.style.overflow = "";
|
|
10707
|
+
(_c = this.previousFocusedElement) == null ? void 0 : _c.focus();
|
|
10708
|
+
this.previousFocusedElement = null;
|
|
10656
10709
|
this.dispatchEvent(
|
|
10657
10710
|
new Event(HIDE_EVENT, {
|
|
10658
10711
|
bubbles: true,
|
|
@@ -10804,7 +10857,7 @@ class Drawer extends HTMLElement {
|
|
|
10804
10857
|
if (!customElements.get("px-drawer")) {
|
|
10805
10858
|
customElements.define("px-drawer", Drawer);
|
|
10806
10859
|
}
|
|
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}}';
|
|
10860
|
+
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
10861
|
const anchorAlignmentValues = [
|
|
10809
10862
|
"top-left",
|
|
10810
10863
|
"top-right",
|
|
@@ -10936,7 +10989,8 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10936
10989
|
"id",
|
|
10937
10990
|
"anchoralignment",
|
|
10938
10991
|
"use-polyfill",
|
|
10939
|
-
"manual-toggle"
|
|
10992
|
+
"manual-toggle",
|
|
10993
|
+
"popover-height"
|
|
10940
10994
|
];
|
|
10941
10995
|
}
|
|
10942
10996
|
connectedCallback() {
|
|
@@ -10978,12 +11032,25 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10978
11032
|
(_a = this.$trigger) == null ? void 0 : _a.removeAttribute("aria-expanded");
|
|
10979
11033
|
}
|
|
10980
11034
|
break;
|
|
11035
|
+
case "popover-height":
|
|
11036
|
+
this.updatePopoverHeight(newValue);
|
|
11037
|
+
break;
|
|
10981
11038
|
default:
|
|
10982
11039
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
10983
11040
|
break;
|
|
10984
11041
|
}
|
|
10985
11042
|
}
|
|
10986
11043
|
}
|
|
11044
|
+
updatePopoverHeight(newValue) {
|
|
11045
|
+
if (newValue) {
|
|
11046
|
+
this.$popoverElement.style.setProperty(
|
|
11047
|
+
"--px-popover-max-height",
|
|
11048
|
+
newValue
|
|
11049
|
+
);
|
|
11050
|
+
} else {
|
|
11051
|
+
this.$popoverElement.style.removeProperty("--px-popover-max-height");
|
|
11052
|
+
}
|
|
11053
|
+
}
|
|
10987
11054
|
initPopover() {
|
|
10988
11055
|
if (this.$trigger) {
|
|
10989
11056
|
this.$trigger.setAttribute("popovertarget", this.popoverId);
|
|
@@ -11046,6 +11113,16 @@ class Dropdown extends WithExtraAttributes {
|
|
|
11046
11113
|
this.removeAttribute("manual-toggle");
|
|
11047
11114
|
}
|
|
11048
11115
|
}
|
|
11116
|
+
get popoverHeight() {
|
|
11117
|
+
return this.getAttribute("popover-height");
|
|
11118
|
+
}
|
|
11119
|
+
set popoverHeight(value) {
|
|
11120
|
+
if (value) {
|
|
11121
|
+
this.setAttribute("popover-height", value);
|
|
11122
|
+
} else {
|
|
11123
|
+
this.removeAttribute("popover-height");
|
|
11124
|
+
}
|
|
11125
|
+
}
|
|
11049
11126
|
}
|
|
11050
11127
|
_Dropdown_instances = new WeakSet();
|
|
11051
11128
|
resetManualPopoverDisplay_fn = function() {
|
|
@@ -11994,7 +12071,7 @@ class MDDLink extends HTMLElement {
|
|
|
11994
12071
|
if (!customElements.get("px-mdd-a")) {
|
|
11995
12072
|
customElements.define("px-mdd-a", MDDLink);
|
|
11996
12073
|
}
|
|
11997
|
-
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}#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;margin-
|
|
12074
|
+
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}#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;margin-top:var(--px-padding-s-tablet);margin-bottom:var(--px-spacing-s-tablet)}#primary-navigation{display:block}#panel-container{top:auto}}@media screen and (min-width: 64.0625rem){#dropdown-zone--desktop{margin-top:var(--px-padding-s-laptop);margin-bottom:var(--px-spacing-s-laptop)}}@media screen and (min-width: 90.0625rem){#dropdown-zone--desktop{margin-top:var(--px-padding-s-desktop);margin-bottom:var(--px-spacing-s-desktop)}}";
|
|
11998
12075
|
const stylesheet$6 = new CSSStyleSheet();
|
|
11999
12076
|
stylesheet$6.replaceSync(styles$u);
|
|
12000
12077
|
const menuAriaLabel = "Menu";
|
|
@@ -13434,7 +13511,7 @@ class MDDCloser extends HTMLElement {
|
|
|
13434
13511
|
if (!customElements.get("px-mdd-closer")) {
|
|
13435
13512
|
customElements.define("px-mdd-closer", MDDCloser);
|
|
13436
13513
|
}
|
|
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:
|
|
13514
|
+
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
13515
|
const stylesheet$3 = new CSSStyleSheet();
|
|
13439
13516
|
stylesheet$3.replaceSync(styles$q);
|
|
13440
13517
|
class MegaDropDown extends HTMLElement {
|
|
@@ -13452,7 +13529,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13452
13529
|
background-color="none"
|
|
13453
13530
|
>
|
|
13454
13531
|
<px-vstack>
|
|
13455
|
-
<px-hstack id="mobile-header" gap="
|
|
13532
|
+
<px-hstack id="mobile-header" gap="default" align-items="center">
|
|
13456
13533
|
<!-- Back button is only visible if the name is __lavender_mobile_menu -->
|
|
13457
13534
|
<px-button id="back-button" variant="tertiary">
|
|
13458
13535
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
@@ -13467,9 +13544,8 @@ class MegaDropDown extends HTMLElement {
|
|
|
13467
13544
|
</px-button-icon>
|
|
13468
13545
|
</px-hstack>
|
|
13469
13546
|
<px-p
|
|
13470
|
-
|
|
13547
|
+
variant="title-2xl"
|
|
13471
13548
|
color="neutral"
|
|
13472
|
-
font-weight="title"
|
|
13473
13549
|
>
|
|
13474
13550
|
<slot name="title"></slot>
|
|
13475
13551
|
</px-p>
|
|
@@ -13483,6 +13559,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13483
13559
|
direction--mobile="column"
|
|
13484
13560
|
direction="row"
|
|
13485
13561
|
gap="l"
|
|
13562
|
+
gap--mobile="page-layout-between-sections"
|
|
13486
13563
|
id="sections-container"
|
|
13487
13564
|
>
|
|
13488
13565
|
<slot></slot>
|
|
@@ -13553,7 +13630,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13553
13630
|
}
|
|
13554
13631
|
});
|
|
13555
13632
|
if (this.getAttribute("name") === "__lavender_mobile_menu") {
|
|
13556
|
-
__privateGet(this, _MegaDropDown_instances, $backButton_get).style.
|
|
13633
|
+
__privateGet(this, _MegaDropDown_instances, $backButton_get).style.display = "none";
|
|
13557
13634
|
}
|
|
13558
13635
|
if (this.getAttribute("name") !== "__lavender_mobile_menu") {
|
|
13559
13636
|
__privateGet(this, _MegaDropDown_instances, $title_get).innerText = ((_b = (_a = this.closest("px-header")) == null ? void 0 : _a.querySelector(
|
|
@@ -13692,7 +13769,7 @@ $closeButtons_get = function() {
|
|
|
13692
13769
|
if (!customElements.get("px-mdd")) {
|
|
13693
13770
|
customElements.define("px-mdd", MegaDropDown);
|
|
13694
13771
|
}
|
|
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
|
|
13772
|
+
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
13773
|
const stylesheet$2 = new CSSStyleSheet();
|
|
13697
13774
|
stylesheet$2.replaceSync(styles$p);
|
|
13698
13775
|
class MddSection extends HTMLElement {
|
|
@@ -13707,7 +13784,7 @@ class MddSection extends HTMLElement {
|
|
|
13707
13784
|
<slot></slot>
|
|
13708
13785
|
</px-vstack>
|
|
13709
13786
|
</nav>
|
|
13710
|
-
<px-vstack gap="default" gap--mobile="
|
|
13787
|
+
<px-vstack gap="default" gap--mobile="s">
|
|
13711
13788
|
<slot name="footer"></slot>
|
|
13712
13789
|
</px-vstack>
|
|
13713
13790
|
</px-vstack>`;
|
|
@@ -13764,7 +13841,7 @@ class MddSection extends HTMLElement {
|
|
|
13764
13841
|
if (!customElements.get("px-mdd-section")) {
|
|
13765
13842
|
customElements.define("px-mdd-section", MddSection);
|
|
13766
13843
|
}
|
|
13767
|
-
const styles$o = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit
|
|
13844
|
+
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
13845
|
const stylesheet$1 = new CSSStyleSheet();
|
|
13769
13846
|
stylesheet$1.replaceSync(styles$o);
|
|
13770
13847
|
class MddSectionItem extends HTMLElement {
|
|
@@ -13772,13 +13849,13 @@ class MddSectionItem extends HTMLElement {
|
|
|
13772
13849
|
var _a;
|
|
13773
13850
|
super();
|
|
13774
13851
|
this.template = `
|
|
13775
|
-
<px-hstack align-items="center">
|
|
13852
|
+
<px-hstack align-items="center" gap="default">
|
|
13776
13853
|
<span class="mdd-section-item-action-container">
|
|
13777
13854
|
<slot></slot>
|
|
13778
13855
|
<slot name="after"></slot>
|
|
13779
13856
|
</span>
|
|
13780
13857
|
<px-spacer></px-spacer>
|
|
13781
|
-
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
13858
|
+
<px-icon name="chevron_right" from="lavender" size="m"></px-icon>
|
|
13782
13859
|
</px-hstack>`;
|
|
13783
13860
|
this.attachShadow({ mode: "open" });
|
|
13784
13861
|
this.shadowRoot.adoptedStyleSheets = [stylesheet$1];
|
|
@@ -13861,7 +13938,7 @@ class MddSectionItem extends HTMLElement {
|
|
|
13861
13938
|
if (!customElements.get("px-mdd-section-item")) {
|
|
13862
13939
|
customElements.define("px-mdd-section-item", MddSectionItem);
|
|
13863
13940
|
}
|
|
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}}';
|
|
13941
|
+
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
13942
|
const styleSheet$m = new CSSStyleSheet();
|
|
13866
13943
|
styleSheet$m.replaceSync(styles$n);
|
|
13867
13944
|
const CLOSE_EVENT$1 = "px.lavender.modal.close";
|
|
@@ -16011,13 +16088,13 @@ class Tabs extends HTMLElement {
|
|
|
16011
16088
|
this.template = () => `
|
|
16012
16089
|
<div id="container">
|
|
16013
16090
|
<div id="tab-container">
|
|
16014
|
-
<px-button-icon id="previous" aria-hidden="true">
|
|
16091
|
+
<px-button-icon id="previous" aria-hidden="true" hidden--mobile hidden--tablet>
|
|
16015
16092
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
16016
16093
|
</px-button-icon>
|
|
16017
16094
|
<div id="tablist">
|
|
16018
16095
|
<slot name="tabs"></slot>
|
|
16019
16096
|
</div>
|
|
16020
|
-
<px-button-icon id="next"
|
|
16097
|
+
<px-button-icon id="next" aria-hidden="true" hidden--mobile hidden--tablet>
|
|
16021
16098
|
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
16022
16099
|
</px-button-icon>
|
|
16023
16100
|
</div>
|
|
@@ -16765,7 +16842,7 @@ class TileCheckbox extends WithExtraAttributes {
|
|
|
16765
16842
|
<div class="tile-checkbox">
|
|
16766
16843
|
<px-tile hoverable>
|
|
16767
16844
|
<slot name="prefix" slot="prefix"></slot>
|
|
16768
|
-
<px-checkbox slot="suffix"
|
|
16845
|
+
<px-checkbox slot="suffix" aria-hidden="true" tabindex="-1"></px-checkbox>
|
|
16769
16846
|
<slot name="label" slot="label"></slot>
|
|
16770
16847
|
<slot name="description" slot="description"></slot>
|
|
16771
16848
|
</px-tile>
|
|
@@ -17045,7 +17122,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
17045
17122
|
<div class="tile-radio">
|
|
17046
17123
|
<px-tile hoverable>
|
|
17047
17124
|
<slot name="prefix" slot="prefix"></slot>
|
|
17048
|
-
<px-radio slot="suffix"
|
|
17125
|
+
<px-radio slot="suffix" aria-hidden="true" tabindex="-1"></px-radio>
|
|
17049
17126
|
<slot name="label" slot="label"></slot>
|
|
17050
17127
|
<slot name="description" slot="description"></slot>
|
|
17051
17128
|
</px-tile>
|
|
@@ -17487,7 +17564,7 @@ class TileSwitch extends WithExtraAttributes {
|
|
|
17487
17564
|
<div class="tile-switch">
|
|
17488
17565
|
<px-tile hoverable>
|
|
17489
17566
|
<slot name="prefix" slot="prefix"></slot>
|
|
17490
|
-
<px-switch slot="suffix"
|
|
17567
|
+
<px-switch slot="suffix" aria-hidden="true" tabindex="-1"></px-switch>
|
|
17491
17568
|
<slot name="label" slot="label"></slot>
|
|
17492
17569
|
<slot name="description" slot="description"></slot>
|
|
17493
17570
|
</px-tile>
|
|
@@ -17940,7 +18017,7 @@ class Typography extends HTMLElement {
|
|
|
17940
18017
|
if (!customElements.get("px-typography")) {
|
|
17941
18018
|
customElements.define("px-typography", Typography);
|
|
17942
18019
|
}
|
|
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:
|
|
18020
|
+
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
18021
|
const styleSheet$2 = new CSSStyleSheet();
|
|
17945
18022
|
styleSheet$2.replaceSync(styles$1);
|
|
17946
18023
|
const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
@@ -18011,27 +18088,34 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18011
18088
|
"extended--mobile",
|
|
18012
18089
|
"extended--tablet",
|
|
18013
18090
|
"extended--laptop",
|
|
18014
|
-
"extended--desktop"
|
|
18091
|
+
"extended--desktop",
|
|
18092
|
+
"popover-height"
|
|
18015
18093
|
];
|
|
18016
18094
|
}
|
|
18017
18095
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18096
|
+
if (oldValue !== newValue) {
|
|
18097
|
+
switch (name) {
|
|
18098
|
+
case "size":
|
|
18099
|
+
case "state":
|
|
18100
|
+
case "extended":
|
|
18101
|
+
case "extended--mobile":
|
|
18102
|
+
case "extended--tablet":
|
|
18103
|
+
case "extended--laptop":
|
|
18104
|
+
case "extended--desktop":
|
|
18105
|
+
if (newValue !== null) {
|
|
18106
|
+
this.$input.setAttribute(name, newValue);
|
|
18107
|
+
} else {
|
|
18108
|
+
this.$input.removeAttribute(name);
|
|
18109
|
+
}
|
|
18110
|
+
break;
|
|
18111
|
+
case "popover-height":
|
|
18112
|
+
this.setDefaultPopoverHeight();
|
|
18113
|
+
this.$dropDown.popoverHeight = this.popoverHeight;
|
|
18114
|
+
break;
|
|
18115
|
+
default:
|
|
18116
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
18117
|
+
break;
|
|
18118
|
+
}
|
|
18035
18119
|
}
|
|
18036
18120
|
}
|
|
18037
18121
|
connectedCallback() {
|
|
@@ -18050,11 +18134,17 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18050
18134
|
if (labelId) {
|
|
18051
18135
|
this.$dropDownContent.setAttribute("aria-labelledby", labelId);
|
|
18052
18136
|
}
|
|
18137
|
+
this.setDefaultPopoverHeight();
|
|
18053
18138
|
}
|
|
18054
18139
|
disconnectedCallback() {
|
|
18055
18140
|
this.$input.removeEventListener("input", __privateGet(this, _onInput));
|
|
18056
18141
|
this.removeEventListener("keydown", __privateGet(this, _onKeyDown));
|
|
18057
18142
|
}
|
|
18143
|
+
setDefaultPopoverHeight() {
|
|
18144
|
+
if (!this.popoverHeight) {
|
|
18145
|
+
this.popoverHeight = "16.5rem";
|
|
18146
|
+
}
|
|
18147
|
+
}
|
|
18058
18148
|
get value() {
|
|
18059
18149
|
return this.$input.value;
|
|
18060
18150
|
}
|
|
@@ -18088,6 +18178,16 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18088
18178
|
get $label() {
|
|
18089
18179
|
return this.querySelector('[slot="label"]');
|
|
18090
18180
|
}
|
|
18181
|
+
get popoverHeight() {
|
|
18182
|
+
return this.getAttribute("popover-height");
|
|
18183
|
+
}
|
|
18184
|
+
set popoverHeight(value) {
|
|
18185
|
+
if (value) {
|
|
18186
|
+
this.setAttribute("popover-height", value);
|
|
18187
|
+
} else {
|
|
18188
|
+
this.removeAttribute("popover-height");
|
|
18189
|
+
}
|
|
18190
|
+
}
|
|
18091
18191
|
};
|
|
18092
18192
|
_controlId = new WeakMap();
|
|
18093
18193
|
_onKeyDown = new WeakMap();
|