@proximus/lavender 1.4.11-alpha.8 → 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 +190 -87
- 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);
|
|
@@ -2163,6 +2163,7 @@ class Icon extends WithExtraAttributes {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
2165
|
connectedCallback() {
|
|
2166
|
+
var _a;
|
|
2166
2167
|
this.role = "img";
|
|
2167
2168
|
const iconSet = document.querySelectorAll("px-icon-set");
|
|
2168
2169
|
if (!iconSet) {
|
|
@@ -2185,8 +2186,10 @@ class Icon extends WithExtraAttributes {
|
|
|
2185
2186
|
__privateGet(this, _internals).ariaHidden = "true";
|
|
2186
2187
|
this.ariaHidden = "true";
|
|
2187
2188
|
}
|
|
2188
|
-
if (this.parentElement.localName === "px-a" && this.slot !== "before" && this.slot !== "after") {
|
|
2189
|
-
this.
|
|
2189
|
+
if (((_a = this.parentElement) == null ? void 0 : _a.localName) === "px-a" && this.slot !== "before" && this.slot !== "after") {
|
|
2190
|
+
if (!this.color) {
|
|
2191
|
+
this.setAttribute("color", "inherit");
|
|
2192
|
+
}
|
|
2190
2193
|
}
|
|
2191
2194
|
}
|
|
2192
2195
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
@@ -2382,7 +2385,7 @@ if (!customElements.get("px-span")) {
|
|
|
2382
2385
|
customElements.define("px-span", Span);
|
|
2383
2386
|
}
|
|
2384
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}}";
|
|
2385
|
-
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)}}";
|
|
2386
2389
|
const actionButtonStyles = new CSSStyleSheet();
|
|
2387
2390
|
const actionLinkStyles = new CSSStyleSheet();
|
|
2388
2391
|
actionButtonStyles.replaceSync(actionButtonCss);
|
|
@@ -2396,7 +2399,7 @@ const _ActionButton = class _ActionButton extends PxElement {
|
|
|
2396
2399
|
<px-icon
|
|
2397
2400
|
name="${this.getAttribute("icon-name")}"
|
|
2398
2401
|
from="${this.getAttribute("icon-from")}"
|
|
2399
|
-
size="
|
|
2402
|
+
size="m"
|
|
2400
2403
|
hidden--mobile
|
|
2401
2404
|
>
|
|
2402
2405
|
</px-icon>
|
|
@@ -3312,7 +3315,7 @@ const _ActionLink = class _ActionLink extends PxElement {
|
|
|
3312
3315
|
<px-icon
|
|
3313
3316
|
name="${this.getAttribute("icon-name")}"
|
|
3314
3317
|
from="${this.getAttribute("icon-from")}"
|
|
3315
|
-
size="
|
|
3318
|
+
size="m"
|
|
3316
3319
|
>
|
|
3317
3320
|
</px-icon>
|
|
3318
3321
|
<px-span color="brand" hidden--mobile><slot></slot></px-span>
|
|
@@ -3973,6 +3976,7 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3973
3976
|
<slot name="title"></slot>
|
|
3974
3977
|
<slot name="description"></slot>
|
|
3975
3978
|
<slot name="content"></slot>
|
|
3979
|
+
|
|
3976
3980
|
</div>
|
|
3977
3981
|
</px-container>
|
|
3978
3982
|
</px-grid>
|
|
@@ -4108,20 +4112,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4108
4112
|
}
|
|
4109
4113
|
createGridding(value) {
|
|
4110
4114
|
const breakpoints = [
|
|
4111
|
-
{ prop: "hasGridding",
|
|
4115
|
+
{ prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
|
|
4112
4116
|
{
|
|
4113
4117
|
prop: "hasGriddingMobile",
|
|
4114
|
-
|
|
4118
|
+
gridProp: "gridColsMobile",
|
|
4115
4119
|
attr: "col-span--mobile"
|
|
4116
4120
|
},
|
|
4117
4121
|
{
|
|
4118
4122
|
prop: "hasGriddingTablet",
|
|
4119
|
-
|
|
4123
|
+
gridProp: "gridColsTablet",
|
|
4120
4124
|
attr: "col-span--tablet"
|
|
4121
4125
|
},
|
|
4122
4126
|
{
|
|
4123
4127
|
prop: "hasGriddingLaptop",
|
|
4124
|
-
|
|
4128
|
+
gridProp: "gridColsLaptop",
|
|
4125
4129
|
attr: "col-span--laptop"
|
|
4126
4130
|
}
|
|
4127
4131
|
];
|
|
@@ -4129,16 +4133,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4129
4133
|
"px-grid > px-container"
|
|
4130
4134
|
);
|
|
4131
4135
|
if (value !== null) {
|
|
4132
|
-
breakpoints.forEach(({ prop,
|
|
4136
|
+
breakpoints.forEach(({ prop, gridProp, attr }) => {
|
|
4133
4137
|
if (this[prop]) {
|
|
4134
|
-
this.$grid
|
|
4135
|
-
spanElement
|
|
4138
|
+
this.$grid[gridProp] = "3";
|
|
4139
|
+
spanElement.setAttribute(attr, "2");
|
|
4136
4140
|
}
|
|
4137
4141
|
});
|
|
4138
4142
|
} else {
|
|
4139
|
-
breakpoints.forEach(({
|
|
4140
|
-
this.$grid
|
|
4141
|
-
spanElement
|
|
4143
|
+
breakpoints.forEach(({ gridProp, attr }) => {
|
|
4144
|
+
this.$grid[gridProp] = "1";
|
|
4145
|
+
spanElement.removeAttribute(attr);
|
|
4142
4146
|
});
|
|
4143
4147
|
}
|
|
4144
4148
|
}
|
|
@@ -7217,7 +7221,7 @@ class CellSwitch extends WithExtraAttributes {
|
|
|
7217
7221
|
return `
|
|
7218
7222
|
<div class="cell-switch">
|
|
7219
7223
|
<px-cell hoverable>
|
|
7220
|
-
<px-switch slot="action-indicator"
|
|
7224
|
+
<px-switch slot="action-indicator" aria-hidden="true" tabindex="-1"></px-switch>
|
|
7221
7225
|
<slot name="visual" slot="visual"></slot>
|
|
7222
7226
|
<slot name="label" slot="label"></slot>
|
|
7223
7227
|
<slot name="description" slot="description"></slot>
|
|
@@ -8786,7 +8790,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
8786
8790
|
return `
|
|
8787
8791
|
<div class="cell-radio">
|
|
8788
8792
|
<px-cell hoverable>
|
|
8789
|
-
<px-radio slot="prefix"
|
|
8793
|
+
<px-radio slot="prefix" aria-hidden="true" tabindex="-1"></px-radio>
|
|
8790
8794
|
<slot name="visual" slot="visual"></slot>
|
|
8791
8795
|
<slot name="label" slot="label"></slot>
|
|
8792
8796
|
<slot name="description" slot="description"></slot>
|
|
@@ -9389,7 +9393,7 @@ let ColorOptionLink = _ColorOptionLink;
|
|
|
9389
9393
|
if (!customElements.get("px-color-option-link")) {
|
|
9390
9394
|
customElements.define("px-color-option-link", ColorOptionLink);
|
|
9391
9395
|
}
|
|
9392
|
-
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))}}';
|
|
9393
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)}}';
|
|
9394
9398
|
const styleSheet$t = new CSSStyleSheet();
|
|
9395
9399
|
styleSheet$t.replaceSync(styles$A);
|
|
@@ -10012,6 +10016,10 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10012
10016
|
<px-h1><slot></slot></px-h1>
|
|
10013
10017
|
<slot name="subtitle"></slot>
|
|
10014
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>
|
|
10015
10023
|
</div>
|
|
10016
10024
|
</px-container>
|
|
10017
10025
|
</px-grid>
|
|
@@ -10037,38 +10045,22 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10037
10045
|
"has-gridding--mobile",
|
|
10038
10046
|
"has-gridding--tablet",
|
|
10039
10047
|
"has-gridding--laptop",
|
|
10048
|
+
"has-gridding--desktop",
|
|
10040
10049
|
"inverted"
|
|
10041
10050
|
];
|
|
10042
10051
|
}
|
|
10043
10052
|
connectedCallback() {
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
`<px-stack gap="s" direction="row" direction--mobile="column">
|
|
10050
|
-
<slot name="patch" shrink></slot>
|
|
10051
|
-
<slot name="patch-description"></slot>
|
|
10052
|
-
</px-stack>`
|
|
10053
|
-
);
|
|
10054
|
-
}
|
|
10055
|
-
if (this.$subtitleSlot) {
|
|
10056
|
-
this.$subtitleSlot.setAttribute("variant", "subtitle");
|
|
10057
|
-
}
|
|
10058
|
-
if (this.$patchDescriptionSlot) {
|
|
10059
|
-
if (this.$patchDescriptionSlot.localName === "px-p") {
|
|
10060
|
-
this.$patchDescriptionSlot.setAttribute("variant", "default");
|
|
10061
|
-
}
|
|
10062
|
-
if (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") {
|
|
10063
|
-
this.$patchDescriptionSlot.setAttribute("font-size", "body-l");
|
|
10064
|
-
this.$patchDescriptionSlot.removeAttribute("font-weight");
|
|
10065
|
-
this.$patchDescriptionSlot.removeAttribute("color");
|
|
10066
|
-
}
|
|
10067
|
-
if (this.$patchDescriptionSlot.localName === "px-price") {
|
|
10068
|
-
this.$patchDescriptionSlot.setAttribute("size", "m");
|
|
10069
|
-
}
|
|
10070
|
-
}
|
|
10053
|
+
var _a, _b;
|
|
10054
|
+
this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this);
|
|
10055
|
+
this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this);
|
|
10056
|
+
this.styleSubtitleSlot();
|
|
10057
|
+
this.stylepatchDescriptionSlotted();
|
|
10071
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
|
+
);
|
|
10072
10064
|
}
|
|
10073
10065
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
10074
10066
|
if (oldValue !== newValue) {
|
|
@@ -10101,6 +10093,7 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10101
10093
|
case "has-gridding--mobile":
|
|
10102
10094
|
case "has-gridding--tablet":
|
|
10103
10095
|
case "has-gridding--laptop":
|
|
10096
|
+
case "has-gridding--desktop":
|
|
10104
10097
|
this.createGridding(newValue);
|
|
10105
10098
|
break;
|
|
10106
10099
|
case "inverted":
|
|
@@ -10118,6 +10111,37 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10118
10111
|
}
|
|
10119
10112
|
}
|
|
10120
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
|
+
}
|
|
10121
10145
|
createGridding(value) {
|
|
10122
10146
|
const breakpoints = [
|
|
10123
10147
|
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
@@ -10135,6 +10159,11 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10135
10159
|
prop: "hasGriddingLaptop",
|
|
10136
10160
|
gridAttr: "grid-cols--laptop",
|
|
10137
10161
|
attr: "col-span--laptop"
|
|
10162
|
+
},
|
|
10163
|
+
{
|
|
10164
|
+
prop: "hasGriddingDesktop",
|
|
10165
|
+
gridAttr: "grid-cols--desktop",
|
|
10166
|
+
attr: "col-span--desktop"
|
|
10138
10167
|
}
|
|
10139
10168
|
];
|
|
10140
10169
|
const spanElement = this.shadowRoot.querySelector(
|
|
@@ -10164,9 +10193,21 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10164
10193
|
return this.shadowRoot.querySelector("px-h1");
|
|
10165
10194
|
}
|
|
10166
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() {
|
|
10167
10202
|
return this.querySelector('[slot="subtitle"]');
|
|
10168
10203
|
}
|
|
10169
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() {
|
|
10170
10211
|
return this.querySelector('[slot="patch-description"]');
|
|
10171
10212
|
}
|
|
10172
10213
|
get $overlapSlot() {
|
|
@@ -10283,6 +10324,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
10283
10324
|
this.removeAttribute("has-gridding--laptop");
|
|
10284
10325
|
}
|
|
10285
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
|
+
}
|
|
10286
10337
|
get inverted() {
|
|
10287
10338
|
return this.hasAttribute("inverted");
|
|
10288
10339
|
}
|
|
@@ -10518,6 +10569,7 @@ const HIDE_EVENT = "px.lavender.drawer.hide";
|
|
|
10518
10569
|
class Drawer extends HTMLElement {
|
|
10519
10570
|
constructor() {
|
|
10520
10571
|
super();
|
|
10572
|
+
this.previousFocusedElement = null;
|
|
10521
10573
|
this.template = `<dialog popover role="dialog" aria-modal="true" >
|
|
10522
10574
|
<div id="container">
|
|
10523
10575
|
<px-vstack gap="heading-to-subtitle" id="header">
|
|
@@ -10642,14 +10694,18 @@ class Drawer extends HTMLElement {
|
|
|
10642
10694
|
}
|
|
10643
10695
|
}
|
|
10644
10696
|
show() {
|
|
10645
|
-
var _a, _b;
|
|
10646
|
-
|
|
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);
|
|
10647
10701
|
document.body.style.overflow = "hidden";
|
|
10648
10702
|
}
|
|
10649
10703
|
hide() {
|
|
10650
|
-
var _a, _b;
|
|
10704
|
+
var _a, _b, _c;
|
|
10651
10705
|
(_b = (_a = this.$dialog).hidePopover) == null ? void 0 : _b.call(_a);
|
|
10652
10706
|
document.body.style.overflow = "";
|
|
10707
|
+
(_c = this.previousFocusedElement) == null ? void 0 : _c.focus();
|
|
10708
|
+
this.previousFocusedElement = null;
|
|
10653
10709
|
this.dispatchEvent(
|
|
10654
10710
|
new Event(HIDE_EVENT, {
|
|
10655
10711
|
bubbles: true,
|
|
@@ -10801,7 +10857,7 @@ class Drawer extends HTMLElement {
|
|
|
10801
10857
|
if (!customElements.get("px-drawer")) {
|
|
10802
10858
|
customElements.define("px-drawer", Drawer);
|
|
10803
10859
|
}
|
|
10804
|
-
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}}';
|
|
10805
10861
|
const anchorAlignmentValues = [
|
|
10806
10862
|
"top-left",
|
|
10807
10863
|
"top-right",
|
|
@@ -10933,7 +10989,8 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10933
10989
|
"id",
|
|
10934
10990
|
"anchoralignment",
|
|
10935
10991
|
"use-polyfill",
|
|
10936
|
-
"manual-toggle"
|
|
10992
|
+
"manual-toggle",
|
|
10993
|
+
"popover-height"
|
|
10937
10994
|
];
|
|
10938
10995
|
}
|
|
10939
10996
|
connectedCallback() {
|
|
@@ -10975,12 +11032,25 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10975
11032
|
(_a = this.$trigger) == null ? void 0 : _a.removeAttribute("aria-expanded");
|
|
10976
11033
|
}
|
|
10977
11034
|
break;
|
|
11035
|
+
case "popover-height":
|
|
11036
|
+
this.updatePopoverHeight(newValue);
|
|
11037
|
+
break;
|
|
10978
11038
|
default:
|
|
10979
11039
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
10980
11040
|
break;
|
|
10981
11041
|
}
|
|
10982
11042
|
}
|
|
10983
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
|
+
}
|
|
10984
11054
|
initPopover() {
|
|
10985
11055
|
if (this.$trigger) {
|
|
10986
11056
|
this.$trigger.setAttribute("popovertarget", this.popoverId);
|
|
@@ -11043,6 +11113,16 @@ class Dropdown extends WithExtraAttributes {
|
|
|
11043
11113
|
this.removeAttribute("manual-toggle");
|
|
11044
11114
|
}
|
|
11045
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
|
+
}
|
|
11046
11126
|
}
|
|
11047
11127
|
_Dropdown_instances = new WeakSet();
|
|
11048
11128
|
resetManualPopoverDisplay_fn = function() {
|
|
@@ -11991,7 +12071,7 @@ class MDDLink extends HTMLElement {
|
|
|
11991
12071
|
if (!customElements.get("px-mdd-a")) {
|
|
11992
12072
|
customElements.define("px-mdd-a", MDDLink);
|
|
11993
12073
|
}
|
|
11994
|
-
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)}}";
|
|
11995
12075
|
const stylesheet$6 = new CSSStyleSheet();
|
|
11996
12076
|
stylesheet$6.replaceSync(styles$u);
|
|
11997
12077
|
const menuAriaLabel = "Menu";
|
|
@@ -13431,7 +13511,7 @@ class MDDCloser extends HTMLElement {
|
|
|
13431
13511
|
if (!customElements.get("px-mdd-closer")) {
|
|
13432
13512
|
customElements.define("px-mdd-closer", MDDCloser);
|
|
13433
13513
|
}
|
|
13434
|
-
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)}}";
|
|
13435
13515
|
const stylesheet$3 = new CSSStyleSheet();
|
|
13436
13516
|
stylesheet$3.replaceSync(styles$q);
|
|
13437
13517
|
class MegaDropDown extends HTMLElement {
|
|
@@ -13449,7 +13529,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13449
13529
|
background-color="none"
|
|
13450
13530
|
>
|
|
13451
13531
|
<px-vstack>
|
|
13452
|
-
<px-hstack id="mobile-header" gap="
|
|
13532
|
+
<px-hstack id="mobile-header" gap="default" align-items="center">
|
|
13453
13533
|
<!-- Back button is only visible if the name is __lavender_mobile_menu -->
|
|
13454
13534
|
<px-button id="back-button" variant="tertiary">
|
|
13455
13535
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
@@ -13464,9 +13544,8 @@ class MegaDropDown extends HTMLElement {
|
|
|
13464
13544
|
</px-button-icon>
|
|
13465
13545
|
</px-hstack>
|
|
13466
13546
|
<px-p
|
|
13467
|
-
|
|
13547
|
+
variant="title-2xl"
|
|
13468
13548
|
color="neutral"
|
|
13469
|
-
font-weight="title"
|
|
13470
13549
|
>
|
|
13471
13550
|
<slot name="title"></slot>
|
|
13472
13551
|
</px-p>
|
|
@@ -13480,6 +13559,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13480
13559
|
direction--mobile="column"
|
|
13481
13560
|
direction="row"
|
|
13482
13561
|
gap="l"
|
|
13562
|
+
gap--mobile="page-layout-between-sections"
|
|
13483
13563
|
id="sections-container"
|
|
13484
13564
|
>
|
|
13485
13565
|
<slot></slot>
|
|
@@ -13550,7 +13630,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
13550
13630
|
}
|
|
13551
13631
|
});
|
|
13552
13632
|
if (this.getAttribute("name") === "__lavender_mobile_menu") {
|
|
13553
|
-
__privateGet(this, _MegaDropDown_instances, $backButton_get).style.
|
|
13633
|
+
__privateGet(this, _MegaDropDown_instances, $backButton_get).style.display = "none";
|
|
13554
13634
|
}
|
|
13555
13635
|
if (this.getAttribute("name") !== "__lavender_mobile_menu") {
|
|
13556
13636
|
__privateGet(this, _MegaDropDown_instances, $title_get).innerText = ((_b = (_a = this.closest("px-header")) == null ? void 0 : _a.querySelector(
|
|
@@ -13689,7 +13769,7 @@ $closeButtons_get = function() {
|
|
|
13689
13769
|
if (!customElements.get("px-mdd")) {
|
|
13690
13770
|
customElements.define("px-mdd", MegaDropDown);
|
|
13691
13771
|
}
|
|
13692
|
-
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)}}';
|
|
13693
13773
|
const stylesheet$2 = new CSSStyleSheet();
|
|
13694
13774
|
stylesheet$2.replaceSync(styles$p);
|
|
13695
13775
|
class MddSection extends HTMLElement {
|
|
@@ -13704,7 +13784,7 @@ class MddSection extends HTMLElement {
|
|
|
13704
13784
|
<slot></slot>
|
|
13705
13785
|
</px-vstack>
|
|
13706
13786
|
</nav>
|
|
13707
|
-
<px-vstack gap="default" gap--mobile="
|
|
13787
|
+
<px-vstack gap="default" gap--mobile="s">
|
|
13708
13788
|
<slot name="footer"></slot>
|
|
13709
13789
|
</px-vstack>
|
|
13710
13790
|
</px-vstack>`;
|
|
@@ -13761,7 +13841,7 @@ class MddSection extends HTMLElement {
|
|
|
13761
13841
|
if (!customElements.get("px-mdd-section")) {
|
|
13762
13842
|
customElements.define("px-mdd-section", MddSection);
|
|
13763
13843
|
}
|
|
13764
|
-
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)}}';
|
|
13765
13845
|
const stylesheet$1 = new CSSStyleSheet();
|
|
13766
13846
|
stylesheet$1.replaceSync(styles$o);
|
|
13767
13847
|
class MddSectionItem extends HTMLElement {
|
|
@@ -13769,13 +13849,13 @@ class MddSectionItem extends HTMLElement {
|
|
|
13769
13849
|
var _a;
|
|
13770
13850
|
super();
|
|
13771
13851
|
this.template = `
|
|
13772
|
-
<px-hstack align-items="center">
|
|
13852
|
+
<px-hstack align-items="center" gap="default">
|
|
13773
13853
|
<span class="mdd-section-item-action-container">
|
|
13774
13854
|
<slot></slot>
|
|
13775
13855
|
<slot name="after"></slot>
|
|
13776
13856
|
</span>
|
|
13777
13857
|
<px-spacer></px-spacer>
|
|
13778
|
-
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
13858
|
+
<px-icon name="chevron_right" from="lavender" size="m"></px-icon>
|
|
13779
13859
|
</px-hstack>`;
|
|
13780
13860
|
this.attachShadow({ mode: "open" });
|
|
13781
13861
|
this.shadowRoot.adoptedStyleSheets = [stylesheet$1];
|
|
@@ -13858,7 +13938,7 @@ class MddSectionItem extends HTMLElement {
|
|
|
13858
13938
|
if (!customElements.get("px-mdd-section-item")) {
|
|
13859
13939
|
customElements.define("px-mdd-section-item", MddSectionItem);
|
|
13860
13940
|
}
|
|
13861
|
-
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}}';
|
|
13862
13942
|
const styleSheet$m = new CSSStyleSheet();
|
|
13863
13943
|
styleSheet$m.replaceSync(styles$n);
|
|
13864
13944
|
const CLOSE_EVENT$1 = "px.lavender.modal.close";
|
|
@@ -16008,13 +16088,13 @@ class Tabs extends HTMLElement {
|
|
|
16008
16088
|
this.template = () => `
|
|
16009
16089
|
<div id="container">
|
|
16010
16090
|
<div id="tab-container">
|
|
16011
|
-
<px-button-icon id="previous" aria-hidden="true">
|
|
16091
|
+
<px-button-icon id="previous" aria-hidden="true" hidden--mobile hidden--tablet>
|
|
16012
16092
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
16013
16093
|
</px-button-icon>
|
|
16014
16094
|
<div id="tablist">
|
|
16015
16095
|
<slot name="tabs"></slot>
|
|
16016
16096
|
</div>
|
|
16017
|
-
<px-button-icon id="next"
|
|
16097
|
+
<px-button-icon id="next" aria-hidden="true" hidden--mobile hidden--tablet>
|
|
16018
16098
|
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
16019
16099
|
</px-button-icon>
|
|
16020
16100
|
</div>
|
|
@@ -16762,7 +16842,7 @@ class TileCheckbox extends WithExtraAttributes {
|
|
|
16762
16842
|
<div class="tile-checkbox">
|
|
16763
16843
|
<px-tile hoverable>
|
|
16764
16844
|
<slot name="prefix" slot="prefix"></slot>
|
|
16765
|
-
<px-checkbox slot="suffix"
|
|
16845
|
+
<px-checkbox slot="suffix" aria-hidden="true" tabindex="-1"></px-checkbox>
|
|
16766
16846
|
<slot name="label" slot="label"></slot>
|
|
16767
16847
|
<slot name="description" slot="description"></slot>
|
|
16768
16848
|
</px-tile>
|
|
@@ -17042,7 +17122,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
17042
17122
|
<div class="tile-radio">
|
|
17043
17123
|
<px-tile hoverable>
|
|
17044
17124
|
<slot name="prefix" slot="prefix"></slot>
|
|
17045
|
-
<px-radio slot="suffix"
|
|
17125
|
+
<px-radio slot="suffix" aria-hidden="true" tabindex="-1"></px-radio>
|
|
17046
17126
|
<slot name="label" slot="label"></slot>
|
|
17047
17127
|
<slot name="description" slot="description"></slot>
|
|
17048
17128
|
</px-tile>
|
|
@@ -17484,7 +17564,7 @@ class TileSwitch extends WithExtraAttributes {
|
|
|
17484
17564
|
<div class="tile-switch">
|
|
17485
17565
|
<px-tile hoverable>
|
|
17486
17566
|
<slot name="prefix" slot="prefix"></slot>
|
|
17487
|
-
<px-switch slot="suffix"
|
|
17567
|
+
<px-switch slot="suffix" aria-hidden="true" tabindex="-1"></px-switch>
|
|
17488
17568
|
<slot name="label" slot="label"></slot>
|
|
17489
17569
|
<slot name="description" slot="description"></slot>
|
|
17490
17570
|
</px-tile>
|
|
@@ -17937,7 +18017,7 @@ class Typography extends HTMLElement {
|
|
|
17937
18017
|
if (!customElements.get("px-typography")) {
|
|
17938
18018
|
customElements.define("px-typography", Typography);
|
|
17939
18019
|
}
|
|
17940
|
-
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)}";
|
|
17941
18021
|
const styleSheet$2 = new CSSStyleSheet();
|
|
17942
18022
|
styleSheet$2.replaceSync(styles$1);
|
|
17943
18023
|
const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
@@ -18008,27 +18088,34 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18008
18088
|
"extended--mobile",
|
|
18009
18089
|
"extended--tablet",
|
|
18010
18090
|
"extended--laptop",
|
|
18011
|
-
"extended--desktop"
|
|
18091
|
+
"extended--desktop",
|
|
18092
|
+
"popover-height"
|
|
18012
18093
|
];
|
|
18013
18094
|
}
|
|
18014
18095
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
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
|
+
}
|
|
18032
18119
|
}
|
|
18033
18120
|
}
|
|
18034
18121
|
connectedCallback() {
|
|
@@ -18047,11 +18134,17 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18047
18134
|
if (labelId) {
|
|
18048
18135
|
this.$dropDownContent.setAttribute("aria-labelledby", labelId);
|
|
18049
18136
|
}
|
|
18137
|
+
this.setDefaultPopoverHeight();
|
|
18050
18138
|
}
|
|
18051
18139
|
disconnectedCallback() {
|
|
18052
18140
|
this.$input.removeEventListener("input", __privateGet(this, _onInput));
|
|
18053
18141
|
this.removeEventListener("keydown", __privateGet(this, _onKeyDown));
|
|
18054
18142
|
}
|
|
18143
|
+
setDefaultPopoverHeight() {
|
|
18144
|
+
if (!this.popoverHeight) {
|
|
18145
|
+
this.popoverHeight = "16.5rem";
|
|
18146
|
+
}
|
|
18147
|
+
}
|
|
18055
18148
|
get value() {
|
|
18056
18149
|
return this.$input.value;
|
|
18057
18150
|
}
|
|
@@ -18085,6 +18178,16 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
|
18085
18178
|
get $label() {
|
|
18086
18179
|
return this.querySelector('[slot="label"]');
|
|
18087
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
|
+
}
|
|
18088
18191
|
};
|
|
18089
18192
|
_controlId = new WeakMap();
|
|
18090
18193
|
_onKeyDown = new WeakMap();
|