@proximus/lavender 1.4.6-beta.2 → 1.4.6
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 +323 -550
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -6,9 +6,9 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
6
6
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
7
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
8
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
9
|
-
var _src, _internals, _template,
|
|
9
|
+
var _src, _internals, _template, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn, _Dropdown_instances, resetManualPopoverDisplay_fn, _onTriggerClick, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _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, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _Tabs_instances, handleInverted_fn, handleHideControls_fn;
|
|
10
10
|
const styles$K = ':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 only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.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 only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.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 only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.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
|
-
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-
|
|
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-value)}:host([order]),::slotted([order]){order:var(--order-value)}: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: 767px){: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: 768px) and (max-width: 1024px){: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: 1025px){: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}}@media screen and (min-width: 1025px){: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: 1441px){: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
12
|
const __vite_import_meta_env__ = {};
|
|
13
13
|
function getSupportedPropertyNames(htmlElementName) {
|
|
14
14
|
const $element = document.createElement(htmlElementName);
|
|
@@ -24,7 +24,7 @@ function getSupportedAttributeNames(htmlElementName) {
|
|
|
24
24
|
}
|
|
25
25
|
const commonStyleSheet$c = new CSSStyleSheet();
|
|
26
26
|
commonStyleSheet$c.replaceSync(commonStyles);
|
|
27
|
-
const PX_COMPONENT_DEBUG = typeof import.meta !== "undefined" && typeof __vite_import_meta_env__ !== "undefined" &&
|
|
27
|
+
const PX_COMPONENT_DEBUG = typeof import.meta !== "undefined" && typeof __vite_import_meta_env__ !== "undefined" && false;
|
|
28
28
|
if (typeof window !== "undefined") {
|
|
29
29
|
window.isComponentDebug = isComponentDebug;
|
|
30
30
|
}
|
|
@@ -32,9 +32,6 @@ function isComponentDebug() {
|
|
|
32
32
|
return PX_COMPONENT_DEBUG;
|
|
33
33
|
}
|
|
34
34
|
function log(message) {
|
|
35
|
-
if (isComponentDebug()) {
|
|
36
|
-
console.error(message);
|
|
37
|
-
}
|
|
38
35
|
}
|
|
39
36
|
if (typeof window !== "undefined") {
|
|
40
37
|
window.isComponentDebug = isComponentDebug;
|
|
@@ -881,43 +878,43 @@ function transferAccessibilityAttributes(sourceElement, targetElement, applyLabe
|
|
|
881
878
|
sourceElement.setAttribute("aria-labelledby", id);
|
|
882
879
|
}
|
|
883
880
|
}
|
|
884
|
-
function cssTokenBreakpoints(attributeName, selector, attributeValues, cssPropertyPrefix = "", generatedCssPropertyName
|
|
881
|
+
function cssTokenBreakpoints(attributeName, selector, attributeValues, cssPropertyPrefix = "", generatedCssPropertyName) {
|
|
885
882
|
const stylesheet2 = new CSSStyleSheet();
|
|
886
883
|
const styles2 = attributeValues.reduce(
|
|
887
884
|
(prev, attributeValue) => prev + `
|
|
888
|
-
${selector(
|
|
885
|
+
${selector(attributeName, attributeValue)} {
|
|
889
886
|
${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop);
|
|
890
887
|
${generatedCssPropertyName ? `${generatedCssPropertyName}:var(--${cssPropertyPrefix}-${attributeValue}-desktop)` : ""}
|
|
891
888
|
}
|
|
892
889
|
/* Mobile only - max 767px */
|
|
893
890
|
@media only screen and (max-width: 47.938em) {
|
|
894
|
-
${selector(
|
|
891
|
+
${selector(attributeName, attributeValue)} {
|
|
895
892
|
${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile);
|
|
896
893
|
${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile)` : ""}
|
|
897
894
|
}
|
|
898
895
|
}
|
|
899
|
-
${selector(
|
|
896
|
+
${selector(attributeName, attributeValue, "mobile")} {
|
|
900
897
|
/* Mobile only - max 767px */
|
|
901
898
|
@media only screen and (max-width: 47.938em) {
|
|
902
899
|
${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile) !important;
|
|
903
900
|
${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile)` : ""}
|
|
904
901
|
}
|
|
905
902
|
}
|
|
906
|
-
${selector(
|
|
903
|
+
${selector(attributeName, attributeValue, "tablet")} {
|
|
907
904
|
/* Tablet - min 768px max 1024px */
|
|
908
905
|
@media only screen and (min-width: 48em) and (max-width: 64em) {
|
|
909
906
|
${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop) !important;
|
|
910
907
|
${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop)` : ""}
|
|
911
908
|
}
|
|
912
909
|
}
|
|
913
|
-
${selector(
|
|
910
|
+
${selector(attributeName, attributeValue, "laptop")} {
|
|
914
911
|
/* Laptop - 1025px*/
|
|
915
912
|
@media only screen and (min-width: 64.0625em) {
|
|
916
913
|
${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop) !important;
|
|
917
914
|
${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop)` : ""}
|
|
918
915
|
}
|
|
919
916
|
}
|
|
920
|
-
${selector(
|
|
917
|
+
${selector(attributeName, attributeValue, "desktop")} {
|
|
921
918
|
/* Desktop - 1025px*/
|
|
922
919
|
@media only screen and (min-width: 64.0625em) {
|
|
923
920
|
${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop) !important;
|
|
@@ -2270,7 +2267,7 @@ let Span = _Span;
|
|
|
2270
2267
|
if (!customElements.get("px-span")) {
|
|
2271
2268
|
customElements.define("px-span", Span);
|
|
2272
2269
|
}
|
|
2273
|
-
const containerCss = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}}@media only screen and (min-width: 1025px) and (max-width: 1440px){:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 1441px){:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}}';
|
|
2270
|
+
const containerCss = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}';
|
|
2274
2271
|
const containerStyles = new CSSStyleSheet();
|
|
2275
2272
|
containerStyles.replaceSync(containerCss);
|
|
2276
2273
|
const anchorSpacingValues = [
|
|
@@ -2279,20 +2276,6 @@ const anchorSpacingValues = [
|
|
|
2279
2276
|
"has-ribbon",
|
|
2280
2277
|
"neighbor-has-ribbon"
|
|
2281
2278
|
];
|
|
2282
|
-
const subgridRowsValues = [
|
|
2283
|
-
"1",
|
|
2284
|
-
"2",
|
|
2285
|
-
"3",
|
|
2286
|
-
"4",
|
|
2287
|
-
"5",
|
|
2288
|
-
"6",
|
|
2289
|
-
"7",
|
|
2290
|
-
"8",
|
|
2291
|
-
"9",
|
|
2292
|
-
"10",
|
|
2293
|
-
"11",
|
|
2294
|
-
"12"
|
|
2295
|
-
];
|
|
2296
2279
|
const attributeBreakpointCSSSelector$3 = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .container`;
|
|
2297
2280
|
const paddingPrefix$1 = "px-padding";
|
|
2298
2281
|
const containerBreakpoints = [
|
|
@@ -2340,17 +2323,9 @@ const containerBreakpoints = [
|
|
|
2340
2323
|
paddingValues,
|
|
2341
2324
|
paddingPrefix$1,
|
|
2342
2325
|
"--container-padding-left"
|
|
2343
|
-
),
|
|
2344
|
-
cssTokenBreakpoints(
|
|
2345
|
-
"gap",
|
|
2346
|
-
attributeBreakpointCSSSelector$3,
|
|
2347
|
-
gapValues,
|
|
2348
|
-
"px-spacing",
|
|
2349
|
-
void 0,
|
|
2350
|
-
"subgrid-gap"
|
|
2351
2326
|
)
|
|
2352
2327
|
];
|
|
2353
|
-
const _Container = class _Container extends
|
|
2328
|
+
const _Container = class _Container extends VerticallyExtendedElement {
|
|
2354
2329
|
constructor() {
|
|
2355
2330
|
super(containerStyles, ...containerBreakpoints);
|
|
2356
2331
|
this.template = () => `<div class="container">
|
|
@@ -2361,7 +2336,6 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2361
2336
|
</div>`;
|
|
2362
2337
|
this._bgObserver = null;
|
|
2363
2338
|
this._isInViewport = false;
|
|
2364
|
-
this.contentObserver = null;
|
|
2365
2339
|
this.shadowRoot.innerHTML = this.template();
|
|
2366
2340
|
}
|
|
2367
2341
|
static get observedAttributes() {
|
|
@@ -2395,11 +2369,11 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2395
2369
|
"box-shadow",
|
|
2396
2370
|
"anchor-offset",
|
|
2397
2371
|
"anchor-spacing",
|
|
2398
|
-
"inverted"
|
|
2399
|
-
"subgrid-rows"
|
|
2372
|
+
"inverted"
|
|
2400
2373
|
];
|
|
2401
2374
|
}
|
|
2402
2375
|
connectedCallback() {
|
|
2376
|
+
super.connectedCallback();
|
|
2403
2377
|
if (!this.padding) {
|
|
2404
2378
|
this.padding = "m";
|
|
2405
2379
|
}
|
|
@@ -2435,9 +2409,9 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2435
2409
|
this._bgObserver.observe(this.$el);
|
|
2436
2410
|
}
|
|
2437
2411
|
disconnectedCallback() {
|
|
2438
|
-
var _a
|
|
2412
|
+
var _a;
|
|
2439
2413
|
(_a = this._bgObserver) == null ? void 0 : _a.disconnect();
|
|
2440
|
-
|
|
2414
|
+
this.contentObserver.disconnect();
|
|
2441
2415
|
}
|
|
2442
2416
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
2443
2417
|
if (oldValue !== newValue) {
|
|
@@ -2515,14 +2489,6 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2515
2489
|
case "anchor-spacing":
|
|
2516
2490
|
this.updateAnchorSpacing(oldValue, newValue, anchorSpacingValues);
|
|
2517
2491
|
break;
|
|
2518
|
-
case "subgrid-rows":
|
|
2519
|
-
this.updateSubgridRows(
|
|
2520
|
-
attrName,
|
|
2521
|
-
oldValue,
|
|
2522
|
-
newValue,
|
|
2523
|
-
subgridRowsValues
|
|
2524
|
-
);
|
|
2525
|
-
break;
|
|
2526
2492
|
default:
|
|
2527
2493
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
2528
2494
|
break;
|
|
@@ -2704,19 +2670,6 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2704
2670
|
updateAnchorSpacingStyle(oldValue);
|
|
2705
2671
|
updateAnchorSpacingStyle(newValue);
|
|
2706
2672
|
}
|
|
2707
|
-
updateSubgridRows(attrName, oldValue, newValue, attrValues) {
|
|
2708
|
-
if (!checkName(attrValues, newValue)) {
|
|
2709
|
-
log(
|
|
2710
|
-
`${newValue} is not an allowed ${attrName} value for ${this.tagName.toLowerCase()}`
|
|
2711
|
-
);
|
|
2712
|
-
} else {
|
|
2713
|
-
this.style.setProperty(`--${attrName}`, newValue);
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
get $el() {
|
|
2717
|
-
var _a;
|
|
2718
|
-
return (_a = this == null ? void 0 : this.shadowRoot) == null ? void 0 : _a.querySelector(".container");
|
|
2719
|
-
}
|
|
2720
2673
|
get $slotAnchor() {
|
|
2721
2674
|
return this.querySelector('[slot^="anchor"]');
|
|
2722
2675
|
}
|
|
@@ -3057,44 +3010,10 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
3057
3010
|
this.setAttribute("anchor-spacing", value);
|
|
3058
3011
|
}
|
|
3059
3012
|
get inverted() {
|
|
3060
|
-
return this.
|
|
3013
|
+
return this.getAttribute("inverted");
|
|
3061
3014
|
}
|
|
3062
3015
|
set inverted(value) {
|
|
3063
|
-
|
|
3064
|
-
this.setAttribute("inverted", "");
|
|
3065
|
-
} else {
|
|
3066
|
-
this.removeAttribute("inverted");
|
|
3067
|
-
}
|
|
3068
|
-
}
|
|
3069
|
-
get subgridRows() {
|
|
3070
|
-
return this.getAttribute("subgrid-rows");
|
|
3071
|
-
}
|
|
3072
|
-
set subgridRows(value) {
|
|
3073
|
-
this.setAttribute("subgrid-rows", value);
|
|
3074
|
-
}
|
|
3075
|
-
get subgridGap() {
|
|
3076
|
-
return this.getAttribute("subgrid-gap");
|
|
3077
|
-
}
|
|
3078
|
-
set subgridGap(value) {
|
|
3079
|
-
this.setAttribute("subgrid-gap", value);
|
|
3080
|
-
}
|
|
3081
|
-
get subgridGapMobile() {
|
|
3082
|
-
return this.getAttribute("subgrid-gap--mobile");
|
|
3083
|
-
}
|
|
3084
|
-
set subgridGapMobile(value) {
|
|
3085
|
-
this.setAttribute("subgrid-gap--mobile", value);
|
|
3086
|
-
}
|
|
3087
|
-
get subgridGapTablet() {
|
|
3088
|
-
return this.getAttribute("subgrid-gap--tablet");
|
|
3089
|
-
}
|
|
3090
|
-
set subgridGapTablet(value) {
|
|
3091
|
-
this.setAttribute("subgrid-gap--tablet", value);
|
|
3092
|
-
}
|
|
3093
|
-
get subgridGapLaptop() {
|
|
3094
|
-
return this.getAttribute("subgrid-gap--laptop");
|
|
3095
|
-
}
|
|
3096
|
-
set subgridGapLaptop(value) {
|
|
3097
|
-
this.setAttribute("subgrid-gap--laptop", value);
|
|
3016
|
+
this.setAttribute("inverted", value);
|
|
3098
3017
|
}
|
|
3099
3018
|
};
|
|
3100
3019
|
_Container.nativeName = "div";
|
|
@@ -3126,7 +3045,6 @@ const _ActionLink = class _ActionLink extends PxElement {
|
|
|
3126
3045
|
}
|
|
3127
3046
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
3128
3047
|
if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
|
|
3129
|
-
log(`Action link needs a value from the attribute ${name}`);
|
|
3130
3048
|
throw new Error(`Action link needs a value from the attribute ${name}`);
|
|
3131
3049
|
}
|
|
3132
3050
|
if (name === "icon-name") {
|
|
@@ -3297,7 +3215,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
|
|
|
3297
3215
|
updateSorting(oldValue, newValue, attrValue) {
|
|
3298
3216
|
var _a, _b;
|
|
3299
3217
|
if (!checkName(attrValue, newValue)) {
|
|
3300
|
-
log(`${newValue} is not an allowed sorting value.`);
|
|
3301
3218
|
return;
|
|
3302
3219
|
}
|
|
3303
3220
|
if (oldValue !== null && oldValue !== "") {
|
|
@@ -3761,7 +3678,6 @@ bannerStyles.replaceSync(bannerCss);
|
|
|
3761
3678
|
const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
3762
3679
|
constructor() {
|
|
3763
3680
|
super(bannerStyles);
|
|
3764
|
-
__privateAdd(this, _Banner_instances);
|
|
3765
3681
|
this.template = () => `<div class="banner">
|
|
3766
3682
|
<div class="contrast-helper"></div>
|
|
3767
3683
|
<px-container class="banner-container" padding--mobile="m" border-radius="main" >
|
|
@@ -3808,7 +3724,6 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3808
3724
|
connectedCallback() {
|
|
3809
3725
|
var _a;
|
|
3810
3726
|
(_a = super.connectedCallback) == null ? void 0 : _a.call(this);
|
|
3811
|
-
__privateMethod(this, _Banner_instances, applyReducedPadding_fn).call(this);
|
|
3812
3727
|
this.createGridTemplateAreas();
|
|
3813
3728
|
this.createGridding();
|
|
3814
3729
|
this.observer = new MutationObserver(() => {
|
|
@@ -3849,9 +3764,6 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3849
3764
|
break;
|
|
3850
3765
|
case "reduced":
|
|
3851
3766
|
this.$el.toggleAttribute("reduced", newValue !== null);
|
|
3852
|
-
if (this.isConnected) {
|
|
3853
|
-
__privateMethod(this, _Banner_instances, applyReducedPadding_fn).call(this);
|
|
3854
|
-
}
|
|
3855
3767
|
this.createGridTemplateAreas();
|
|
3856
3768
|
break;
|
|
3857
3769
|
case "has-gridding":
|
|
@@ -4082,48 +3994,42 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4082
3994
|
}
|
|
4083
3995
|
}
|
|
4084
3996
|
};
|
|
4085
|
-
_Banner_instances = new WeakSet();
|
|
4086
|
-
applyReducedPadding_fn = function() {
|
|
4087
|
-
this.$container.setAttribute("padding", this.reduced ? "m" : "l");
|
|
4088
|
-
};
|
|
4089
3997
|
_Banner.nativeName = "div";
|
|
4090
3998
|
let Banner = _Banner;
|
|
4091
3999
|
if (!customElements.get("px-banner")) {
|
|
4092
4000
|
customElements.define("px-banner", Banner);
|
|
4093
4001
|
}
|
|
4094
4002
|
const breadcrumbCss = `:host{display:block}:host *{box-sizing:border-box}.breadcrumb{font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);margin:calc(var(--px-spacing-s-mobile) * -1) 0 0 0;padding:0}.breadcrumb div[role=list]{display:flex;flex-wrap:wrap;align-items:center}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){display:flex;align-items:center;margin-right:var(--px-spacing-xs-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{display:inline-block;content:"";width:16px;height:16px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-neutral-default);margin-left:var(--px-spacing-xs-mobile)}@media only screen and (min-width: 48em){.breadcrumb{margin:calc(var(--px-spacing-s-tablet) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.breadcrumb{margin:calc(var(--px-spacing-s-laptop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.breadcrumb{margin:calc(var(--px-spacing-s-desktop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-desktop)}}:host([inverted]) .breadcrumb{color:var(--px-color-text-neutral-inverted)}:host([inverted]) .breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{color:var(--px-color-icon-neutral-inverted)}`;
|
|
4095
|
-
const
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4003
|
+
const breadcrumbStyles = new CSSStyleSheet();
|
|
4004
|
+
breadcrumbStyles.replaceSync(breadcrumbCss);
|
|
4005
|
+
class Breadcrumb extends WithExtraAttributes {
|
|
4006
|
+
template() {
|
|
4007
|
+
return `
|
|
4008
|
+
<nav class="breadcrumb">
|
|
4009
|
+
<div role="list">
|
|
4010
|
+
<slot></slot>
|
|
4011
|
+
</div>
|
|
4012
|
+
</nav>
|
|
4013
|
+
`;
|
|
4106
4014
|
}
|
|
4107
|
-
|
|
4108
|
-
|
|
4015
|
+
constructor() {
|
|
4016
|
+
super(breadcrumbStyles);
|
|
4017
|
+
this.shadowRoot.innerHTML = this.template();
|
|
4109
4018
|
}
|
|
4110
4019
|
connectedCallback() {
|
|
4111
|
-
if (this
|
|
4112
|
-
this
|
|
4113
|
-
}
|
|
4114
|
-
if (!this.$link) {
|
|
4115
|
-
this.$el.setAttribute("aria-current", "page");
|
|
4020
|
+
if (!this.ariaLabel) {
|
|
4021
|
+
this.ariaLabel = "Breadcrumb";
|
|
4116
4022
|
}
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
composed: true
|
|
4121
|
-
})
|
|
4122
|
-
);
|
|
4023
|
+
}
|
|
4024
|
+
static get observedAttributes() {
|
|
4025
|
+
return [...super.observedAttributes, "inverted", "aria-label"];
|
|
4123
4026
|
}
|
|
4124
4027
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
4125
4028
|
if (oldValue !== newValue) {
|
|
4126
4029
|
switch (attrName) {
|
|
4030
|
+
case "aria-label":
|
|
4031
|
+
this.$el.setAttribute("aria-label", this.ariaLabel);
|
|
4032
|
+
break;
|
|
4127
4033
|
case "inverted":
|
|
4128
4034
|
for (let i = 0; i < this.$children.length; i++) {
|
|
4129
4035
|
if (!this.$children[i].hasAttribute("inverted")) {
|
|
@@ -4137,14 +4043,11 @@ const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
|
|
|
4137
4043
|
}
|
|
4138
4044
|
}
|
|
4139
4045
|
}
|
|
4140
|
-
get $
|
|
4141
|
-
return this.querySelector("
|
|
4142
|
-
}
|
|
4143
|
-
get $icon() {
|
|
4144
|
-
return this.querySelector("px-icon");
|
|
4046
|
+
get $el() {
|
|
4047
|
+
return this.shadowRoot.querySelector(".breadcrumb");
|
|
4145
4048
|
}
|
|
4146
4049
|
get $children() {
|
|
4147
|
-
return this.querySelectorAll("px-breadcrumb
|
|
4050
|
+
return this.querySelectorAll("px-breadcrumb > *");
|
|
4148
4051
|
}
|
|
4149
4052
|
get inverted() {
|
|
4150
4053
|
return this.hasAttribute("inverted");
|
|
@@ -4156,50 +4059,50 @@ const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
|
|
|
4156
4059
|
this.removeAttribute("inverted");
|
|
4157
4060
|
}
|
|
4158
4061
|
}
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4062
|
+
get ariaLabel() {
|
|
4063
|
+
return this.getAttribute("aria-label");
|
|
4064
|
+
}
|
|
4065
|
+
set ariaLabel(value) {
|
|
4066
|
+
if (value) {
|
|
4067
|
+
this.setAttribute("aria-label", value);
|
|
4068
|
+
} else {
|
|
4069
|
+
this.removeAttribute("aria-label");
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4164
4072
|
}
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4073
|
+
if (!customElements.get("px-breadcrumb")) {
|
|
4074
|
+
customElements.define("px-breadcrumb", Breadcrumb);
|
|
4075
|
+
}
|
|
4076
|
+
const breadcrumbItemCss = ":host{display:block}:host *{box-sizing:border-box}.breadcrumb-item{display:flex}:host:has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item{color:var(--px-color-icon-accent-default)}:host:has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item:hover{color:var(--px-color-text-state-hover-default)}:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{line-height:var(--px-font-line-height-s);font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-tablet)}}@media only screen and (min-width: 64.0625em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-laptop)}}@media only screen and (min-width: 90.0625em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-desktop)}}:host([inverted]):has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item{color:var(--px-color-icon-accent-inverted)}:host([inverted]):has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item:hover{color:var(--px-color-text-state-hover-inverted)}";
|
|
4077
|
+
const breadcrumbItemStyles = new CSSStyleSheet();
|
|
4078
|
+
breadcrumbItemStyles.replaceSync(breadcrumbItemCss);
|
|
4079
|
+
const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
|
|
4168
4080
|
constructor() {
|
|
4169
|
-
super(
|
|
4170
|
-
|
|
4171
|
-
this.shadowRoot
|
|
4081
|
+
super(breadcrumbItemStyles);
|
|
4082
|
+
this.template = () => `<div class="breadcrumb-item" role="listitem"><slot></slot></div>`;
|
|
4083
|
+
if (this.shadowRoot) {
|
|
4084
|
+
this.shadowRoot.innerHTML = this.template();
|
|
4085
|
+
}
|
|
4172
4086
|
}
|
|
4173
|
-
|
|
4174
|
-
return
|
|
4175
|
-
<nav class="breadcrumb">
|
|
4176
|
-
<div role="list">
|
|
4177
|
-
<slot></slot>
|
|
4178
|
-
</div>
|
|
4179
|
-
</nav>
|
|
4180
|
-
`;
|
|
4087
|
+
static get observedAttributes() {
|
|
4088
|
+
return [...super.observedAttributes, "inverted"];
|
|
4181
4089
|
}
|
|
4182
4090
|
connectedCallback() {
|
|
4183
|
-
if (
|
|
4184
|
-
this.
|
|
4091
|
+
if (this.$icon) {
|
|
4092
|
+
this.$icon.setAttribute("size", "s");
|
|
4093
|
+
}
|
|
4094
|
+
if (!this.$link) {
|
|
4095
|
+
this.$el.setAttribute("aria-current", "page");
|
|
4185
4096
|
}
|
|
4186
|
-
this.addEventListener(BREADCRUMB_ITEM_CONNECTED_EVENT, () => {
|
|
4187
|
-
__privateMethod(this, _Breadcrumb_instances, applyInverted_fn).call(this);
|
|
4188
|
-
});
|
|
4189
|
-
__privateMethod(this, _Breadcrumb_instances, applyInverted_fn).call(this);
|
|
4190
|
-
}
|
|
4191
|
-
static get observedAttributes() {
|
|
4192
|
-
return [...super.observedAttributes, "inverted", "aria-label"];
|
|
4193
4097
|
}
|
|
4194
4098
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
4195
4099
|
if (oldValue !== newValue) {
|
|
4196
4100
|
switch (attrName) {
|
|
4197
|
-
case "aria-label":
|
|
4198
|
-
this.$el.setAttribute("aria-label", this.ariaLabel);
|
|
4199
|
-
break;
|
|
4200
4101
|
case "inverted":
|
|
4201
|
-
|
|
4202
|
-
|
|
4102
|
+
for (let i = 0; i < this.$children.length; i++) {
|
|
4103
|
+
if (!this.$children[i].hasAttribute("inverted")) {
|
|
4104
|
+
this.$children[i].toggleAttribute("inverted");
|
|
4105
|
+
}
|
|
4203
4106
|
}
|
|
4204
4107
|
break;
|
|
4205
4108
|
default:
|
|
@@ -4208,11 +4111,14 @@ class Breadcrumb extends WithExtraAttributes {
|
|
|
4208
4111
|
}
|
|
4209
4112
|
}
|
|
4210
4113
|
}
|
|
4211
|
-
get $
|
|
4212
|
-
return this.
|
|
4114
|
+
get $link() {
|
|
4115
|
+
return this.querySelector("px-a");
|
|
4116
|
+
}
|
|
4117
|
+
get $icon() {
|
|
4118
|
+
return this.querySelector("px-icon");
|
|
4213
4119
|
}
|
|
4214
4120
|
get $children() {
|
|
4215
|
-
return this.querySelectorAll("px-breadcrumb > *");
|
|
4121
|
+
return this.querySelectorAll("px-breadcrumb-item > *");
|
|
4216
4122
|
}
|
|
4217
4123
|
get inverted() {
|
|
4218
4124
|
return this.hasAttribute("inverted");
|
|
@@ -4224,26 +4130,11 @@ class Breadcrumb extends WithExtraAttributes {
|
|
|
4224
4130
|
this.removeAttribute("inverted");
|
|
4225
4131
|
}
|
|
4226
4132
|
}
|
|
4227
|
-
get ariaLabel() {
|
|
4228
|
-
return this.getAttribute("aria-label");
|
|
4229
|
-
}
|
|
4230
|
-
set ariaLabel(value) {
|
|
4231
|
-
if (value) {
|
|
4232
|
-
this.setAttribute("aria-label", value);
|
|
4233
|
-
} else {
|
|
4234
|
-
this.removeAttribute("aria-label");
|
|
4235
|
-
}
|
|
4236
|
-
}
|
|
4237
|
-
}
|
|
4238
|
-
_Breadcrumb_instances = new WeakSet();
|
|
4239
|
-
applyInverted_fn = function() {
|
|
4240
|
-
const on = this.hasAttribute("inverted");
|
|
4241
|
-
for (let i = 0; i < this.$children.length; i++) {
|
|
4242
|
-
this.$children[i].toggleAttribute("inverted", on);
|
|
4243
|
-
}
|
|
4244
4133
|
};
|
|
4245
|
-
|
|
4246
|
-
|
|
4134
|
+
_BreadcrumbItem.nativeName = "div";
|
|
4135
|
+
let BreadcrumbItem = _BreadcrumbItem;
|
|
4136
|
+
if (!customElements.get("px-breadcrumb-item")) {
|
|
4137
|
+
customElements.define("px-breadcrumb-item", BreadcrumbItem);
|
|
4247
4138
|
}
|
|
4248
4139
|
const buttonCss = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px;width:inherit;height:inherit}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown{display:flex;justify-content:space-between;gap:var(--px-spacing-s-mobile);width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default);touch-action:manipulation}.btn.header-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}.btn.header-dropdown[aria-expanded=true]:after{transform:rotate(180deg)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}@media only screen and (max-width: 47.938em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em) and (max-width: 64em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em){.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{justify-content:flex-start;align-items:center;gap:var(--px-spacing-xs-tablet);width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-tablet);border:none;padding:0;border-radius:0;background:none}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 64.0625em){.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{gap:var(--px-spacing-xs-laptop);font-size:var(--px-text-size-label-m-laptop);padding:0}}@media only screen and (min-width: 90.0625em){.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{gap:var(--px-spacing-xs-desktop);font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`;
|
|
4249
4140
|
const linkCss = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style{text-decoration:none}a.no-style:hover,a.no-style:focus-visible{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media only screen and (min-width: 768px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 1025px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}';
|
|
@@ -5328,14 +5219,12 @@ function throttle(func, wait, options) {
|
|
|
5328
5219
|
}
|
|
5329
5220
|
const styleSheet$w = new CSSStyleSheet();
|
|
5330
5221
|
styleSheet$w.replaceSync(styles$D);
|
|
5331
|
-
const CAROUSEL_ITEM_CONNECTED_EVENT = "px-carousel-item-connected";
|
|
5332
5222
|
const attributeBreakpointCSSSelector = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .carousel`;
|
|
5333
5223
|
const prefix = "px-spacing";
|
|
5334
5224
|
const visibleItemCalcFunction = (spacingToken) => (numberOfItems, device) => `calc(((100% - ${Math.max(parseInt(numberOfItems), 2)} * ( var(--px-spacing-${spacingToken}-${device}))) / ${numberOfItems}) - ( 64px / ${Math.max(parseInt(numberOfItems), 2)}))`;
|
|
5335
5225
|
class Carousel extends HTMLElement {
|
|
5336
5226
|
constructor() {
|
|
5337
5227
|
super();
|
|
5338
|
-
__privateAdd(this, _Carousel_instances);
|
|
5339
5228
|
this.visibleItemsAttributeDelegate = new AttributeBreakpointHandlerDelegate(
|
|
5340
5229
|
this,
|
|
5341
5230
|
"visible-items",
|
|
@@ -5429,10 +5318,10 @@ class Carousel extends HTMLElement {
|
|
|
5429
5318
|
this.visibleItemsAttributeDelegate.attributeValue = visibleItemCalcFunction(
|
|
5430
5319
|
this.getAttribute("gap") || "s"
|
|
5431
5320
|
);
|
|
5432
|
-
|
|
5433
|
-
|
|
5321
|
+
requestAnimationFrame(() => {
|
|
5322
|
+
this.handleAppleSeedDisplay();
|
|
5434
5323
|
});
|
|
5435
|
-
|
|
5324
|
+
this.$appleseed.setAttribute("amount", `${this.itemNumbers}`);
|
|
5436
5325
|
this.$carousel.addEventListener("scroll", throttle(this.onScroll, 500));
|
|
5437
5326
|
this.$previous.addEventListener("click", () => {
|
|
5438
5327
|
this.$carousel.scrollLeft -= this.$carousel.clientWidth;
|
|
@@ -5491,13 +5380,6 @@ class Carousel extends HTMLElement {
|
|
|
5491
5380
|
return this.querySelectorAll("px-carousel-item").length;
|
|
5492
5381
|
}
|
|
5493
5382
|
}
|
|
5494
|
-
_Carousel_instances = new WeakSet();
|
|
5495
|
-
syncItems_fn = function() {
|
|
5496
|
-
this.$appleseed.setAttribute("amount", `${this.itemNumbers}`);
|
|
5497
|
-
requestAnimationFrame(() => {
|
|
5498
|
-
this.handleAppleSeedDisplay();
|
|
5499
|
-
});
|
|
5500
|
-
};
|
|
5501
5383
|
if (!customElements.get("px-carousel")) {
|
|
5502
5384
|
customElements.define("px-carousel", Carousel);
|
|
5503
5385
|
}
|
|
@@ -5514,14 +5396,6 @@ class CarouselItem extends HTMLElement {
|
|
|
5514
5396
|
this.shadowRoot.innerHTML = this.template;
|
|
5515
5397
|
this.shadowRoot.adoptedStyleSheets = [styleSheet$w, itemStyleSheet];
|
|
5516
5398
|
}
|
|
5517
|
-
connectedCallback() {
|
|
5518
|
-
this.dispatchEvent(
|
|
5519
|
-
new CustomEvent(CAROUSEL_ITEM_CONNECTED_EVENT, {
|
|
5520
|
-
bubbles: true,
|
|
5521
|
-
composed: true
|
|
5522
|
-
})
|
|
5523
|
-
);
|
|
5524
|
-
}
|
|
5525
5399
|
}
|
|
5526
5400
|
if (!customElements.get("px-carousel-item")) {
|
|
5527
5401
|
customElements.define("px-carousel-item", CarouselItem);
|
|
@@ -5545,7 +5419,6 @@ function configureCellBackgroundColor(el) {
|
|
|
5545
5419
|
}
|
|
5546
5420
|
function updateVariant(element, oldValue, newValue) {
|
|
5547
5421
|
if (!checkName(cellVariantValues, newValue)) {
|
|
5548
|
-
log(`${newValue} is not an allowed variant value.`);
|
|
5549
5422
|
return;
|
|
5550
5423
|
}
|
|
5551
5424
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -7802,11 +7675,7 @@ class Radiogroup extends WithExtraAttributes {
|
|
|
7802
7675
|
setupErrorState() {
|
|
7803
7676
|
var _a;
|
|
7804
7677
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
7805
|
-
if (this.state === "error" && !hasErrorText)
|
|
7806
|
-
log(
|
|
7807
|
-
'<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
|
|
7808
|
-
);
|
|
7809
|
-
}
|
|
7678
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
7810
7679
|
if (this.state === "error" && hasErrorText) {
|
|
7811
7680
|
this.$el.setAttribute("state", "error");
|
|
7812
7681
|
this.$radioList.forEach((child) => {
|
|
@@ -7912,7 +7781,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
7912
7781
|
}
|
|
7913
7782
|
connectedCallback() {
|
|
7914
7783
|
var _a;
|
|
7915
|
-
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.
|
|
7784
|
+
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
|
|
7916
7785
|
this.role = "radio";
|
|
7917
7786
|
if (this.internals) {
|
|
7918
7787
|
this.internals.role = "radio";
|
|
@@ -8421,6 +8290,8 @@ const _ColorOptionLink = class _ColorOptionLink extends PxElement {
|
|
|
8421
8290
|
this.shadowRoot.appendChild($root);
|
|
8422
8291
|
}
|
|
8423
8292
|
connectedCallback() {
|
|
8293
|
+
if (this.deviceColor)
|
|
8294
|
+
this.$colorOption.setAttribute("device-color", this.deviceColor);
|
|
8424
8295
|
this.addEventListener("click", (e) => {
|
|
8425
8296
|
e.preventDefault();
|
|
8426
8297
|
this.clickColorOptionLink();
|
|
@@ -9607,15 +9478,20 @@ class Drawer extends HTMLElement {
|
|
|
9607
9478
|
connectedCallback() {
|
|
9608
9479
|
var _a;
|
|
9609
9480
|
this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
9610
|
-
if (this.$opener) {
|
|
9611
|
-
this.addOpenListener();
|
|
9612
|
-
}
|
|
9613
|
-
if (this.$closer) {
|
|
9614
|
-
this.addCloseListener();
|
|
9615
|
-
}
|
|
9616
9481
|
if (!this.hasAttribute("showfrom")) {
|
|
9617
9482
|
this.setAttribute("showfrom", "bottom");
|
|
9618
9483
|
}
|
|
9484
|
+
if (this.hasAttribute("closedby")) {
|
|
9485
|
+
const $closer = document.querySelector(
|
|
9486
|
+
`#${this.getAttribute("closedby")}`
|
|
9487
|
+
);
|
|
9488
|
+
$closer == null ? void 0 : $closer.addEventListener("click", () => {
|
|
9489
|
+
this.hide();
|
|
9490
|
+
});
|
|
9491
|
+
}
|
|
9492
|
+
if (this.hasAttribute("openedby")) {
|
|
9493
|
+
this.addOpenListener();
|
|
9494
|
+
}
|
|
9619
9495
|
this.$closeButton.addEventListener("click", () => {
|
|
9620
9496
|
this.hide();
|
|
9621
9497
|
});
|
|
@@ -9626,56 +9502,36 @@ class Drawer extends HTMLElement {
|
|
|
9626
9502
|
);
|
|
9627
9503
|
}
|
|
9628
9504
|
static get observedAttributes() {
|
|
9629
|
-
return ["open", "aria-label-close-button", "openedby"
|
|
9505
|
+
return ["open", "aria-label-close-button", "openedby"];
|
|
9630
9506
|
}
|
|
9631
|
-
attributeChangedCallback(
|
|
9507
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
9632
9508
|
var _a, _b, _c;
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
break;
|
|
9652
|
-
case "openedby":
|
|
9653
|
-
if (newValue !== oldValue) {
|
|
9654
|
-
if (oldValue) {
|
|
9655
|
-
const oldOpener = document.querySelector(`#${oldValue}`);
|
|
9656
|
-
oldOpener == null ? void 0 : oldOpener.removeEventListener("click", () => this.show());
|
|
9657
|
-
}
|
|
9658
|
-
this.addOpenListener();
|
|
9659
|
-
}
|
|
9660
|
-
break;
|
|
9661
|
-
case "closedby":
|
|
9662
|
-
this.addCloseListener();
|
|
9663
|
-
break;
|
|
9509
|
+
if (name === "open") {
|
|
9510
|
+
if (newValue !== null) {
|
|
9511
|
+
this.show();
|
|
9512
|
+
} else {
|
|
9513
|
+
this.hide();
|
|
9514
|
+
}
|
|
9515
|
+
} else if (name === "aria-label-close-button") {
|
|
9516
|
+
if (!newValue) {
|
|
9517
|
+
(_a = this.$closeButton) == null ? void 0 : _a.removeAttribute("aria-label");
|
|
9518
|
+
} else {
|
|
9519
|
+
(_c = (_b = this.$closeButton) == null ? void 0 : _b.setAttribute) == null ? void 0 : _c.call(
|
|
9520
|
+
_b,
|
|
9521
|
+
"aria-label",
|
|
9522
|
+
newValue || "Close drawer"
|
|
9523
|
+
);
|
|
9524
|
+
}
|
|
9525
|
+
} else if (name === "openedby") {
|
|
9526
|
+
this.addOpenListener();
|
|
9664
9527
|
}
|
|
9665
9528
|
}
|
|
9666
9529
|
disconnectedCallback() {
|
|
9667
|
-
var _a
|
|
9530
|
+
var _a;
|
|
9668
9531
|
(_a = this.$slotFooter) == null ? void 0 : _a.removeEventListener(
|
|
9669
9532
|
"slotchange",
|
|
9670
9533
|
this.toggleFooterVisibility
|
|
9671
9534
|
);
|
|
9672
|
-
(_b = this.observer) == null ? void 0 : _b.disconnect();
|
|
9673
|
-
if (this.$opener) {
|
|
9674
|
-
this.$opener.removeEventListener("click", () => this.show());
|
|
9675
|
-
}
|
|
9676
|
-
if (this.$closer) {
|
|
9677
|
-
this.$closer.removeEventListener("click", () => this.hide());
|
|
9678
|
-
}
|
|
9679
9535
|
}
|
|
9680
9536
|
show() {
|
|
9681
9537
|
var _a, _b;
|
|
@@ -9701,41 +9557,15 @@ class Drawer extends HTMLElement {
|
|
|
9701
9557
|
}
|
|
9702
9558
|
}
|
|
9703
9559
|
addOpenListener() {
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
}
|
|
9709
|
-
} else {
|
|
9710
|
-
this.observer = new MutationObserver(() => {
|
|
9711
|
-
if (this.$opener) {
|
|
9712
|
-
this.observer.disconnect();
|
|
9713
|
-
this.observer = null;
|
|
9714
|
-
this.addOpenListener();
|
|
9715
|
-
}
|
|
9716
|
-
});
|
|
9717
|
-
this.observer.observe(document.body, {
|
|
9718
|
-
childList: true,
|
|
9719
|
-
subtree: true
|
|
9720
|
-
});
|
|
9721
|
-
}
|
|
9722
|
-
}
|
|
9723
|
-
addCloseListener() {
|
|
9724
|
-
var _a;
|
|
9725
|
-
if (this.$closer) {
|
|
9726
|
-
(_a = this.$closer) == null ? void 0 : _a.addEventListener("click", () => {
|
|
9727
|
-
this.hide();
|
|
9728
|
-
});
|
|
9560
|
+
var _a, _b, _c;
|
|
9561
|
+
if (((_a = this.$opener) == null ? void 0 : _a.getAttribute("data-has-opener")) !== "true") {
|
|
9562
|
+
(_b = this.$opener) == null ? void 0 : _b.setAttribute("data-has-opener", "true");
|
|
9563
|
+
(_c = this.$opener) == null ? void 0 : _c.addEventListener("click", () => this.show());
|
|
9729
9564
|
}
|
|
9730
9565
|
}
|
|
9731
9566
|
get $opener() {
|
|
9732
9567
|
return document.querySelector(
|
|
9733
|
-
|
|
9734
|
-
);
|
|
9735
|
-
}
|
|
9736
|
-
get $closer() {
|
|
9737
|
-
return document.querySelector(
|
|
9738
|
-
`#${this.getAttribute("closedby")}`
|
|
9568
|
+
`px-button#${this.getAttribute("openedby")}`
|
|
9739
9569
|
);
|
|
9740
9570
|
}
|
|
9741
9571
|
get $closeButton() {
|
|
@@ -9765,10 +9595,10 @@ class Drawer extends HTMLElement {
|
|
|
9765
9595
|
this.removeAttribute("open");
|
|
9766
9596
|
}
|
|
9767
9597
|
}
|
|
9768
|
-
get
|
|
9598
|
+
get ariaLabelCloseButton() {
|
|
9769
9599
|
return this.getAttribute("aria-label-close-button");
|
|
9770
9600
|
}
|
|
9771
|
-
set
|
|
9601
|
+
set ariaLabelCloseButton(value) {
|
|
9772
9602
|
this.setAttribute("aria-label-close-button", value);
|
|
9773
9603
|
}
|
|
9774
9604
|
get openedby() {
|
|
@@ -9777,12 +9607,6 @@ class Drawer extends HTMLElement {
|
|
|
9777
9607
|
set openedby(value) {
|
|
9778
9608
|
this.setAttribute("openedby", value);
|
|
9779
9609
|
}
|
|
9780
|
-
get closedby() {
|
|
9781
|
-
return this.getAttribute("closedby");
|
|
9782
|
-
}
|
|
9783
|
-
set closedby(value) {
|
|
9784
|
-
this.setAttribute("closedby", value);
|
|
9785
|
-
}
|
|
9786
9610
|
}
|
|
9787
9611
|
if (!customElements.get("px-drawer")) {
|
|
9788
9612
|
customElements.define("px-drawer", Drawer);
|
|
@@ -9983,9 +9807,6 @@ class Dropdown extends WithExtraAttributes {
|
|
|
9983
9807
|
if (anchorAlignmentValues.includes(value)) {
|
|
9984
9808
|
this.setAttribute("anchoralignment", value);
|
|
9985
9809
|
} else {
|
|
9986
|
-
log(
|
|
9987
|
-
`Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
|
|
9988
|
-
);
|
|
9989
9810
|
this.setAttribute("anchoralignment", defaultAnchorAlignment);
|
|
9990
9811
|
}
|
|
9991
9812
|
}
|
|
@@ -10089,11 +9910,7 @@ const _Fieldset = class _Fieldset extends PxElement {
|
|
|
10089
9910
|
setupErrorState() {
|
|
10090
9911
|
var _a;
|
|
10091
9912
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
10092
|
-
if (this.state === "error" && !hasErrorText)
|
|
10093
|
-
log(
|
|
10094
|
-
'<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
|
|
10095
|
-
);
|
|
10096
|
-
}
|
|
9913
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
10097
9914
|
if (this.state === "error" && hasErrorText) {
|
|
10098
9915
|
const id = Math.random().toString(36).substr(2, 9);
|
|
10099
9916
|
this.$el.setAttribute("id", id);
|
|
@@ -12117,70 +11934,8 @@ if (!customElements.get("px-fileupload")) {
|
|
|
12117
11934
|
customElements.define("px-fileupload", Upload);
|
|
12118
11935
|
}
|
|
12119
11936
|
const styles$o = ".list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}";
|
|
12120
|
-
const styles$n = '.list-item{display:flex;gap:var(--px-spacing-xs-mobile);align-items:flex-start;font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.list-item[inverted]{color:var(--px-color-text-neutral-inverted)}:host([variant="ul"]) .list-item,:host([variant="ol"]) .list-item{display:list-item;margin-left:var(--px-spacing-default-mobile)}:host([variant="ul"]) .list-item{list-style-type:disc}:host([variant="ol"]) .list-item{counter-set:list-item var(--item-index, 0);list-style-type:decimal}@media only screen and (min-width: 48em){.list-item{gap:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.list-item{gap:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.list-item{gap:var(--px-spacing-xs-desktop)}}';
|
|
12121
11937
|
const styleSheet$l = new CSSStyleSheet();
|
|
12122
|
-
styleSheet$l.replaceSync(styles$
|
|
12123
|
-
const LIST_ITEM_CONNECTED_EVENT = "px-list-item-connected";
|
|
12124
|
-
const _ListItem = class _ListItem extends PxElement {
|
|
12125
|
-
template() {
|
|
12126
|
-
return `
|
|
12127
|
-
<div class="list-item" role="listitem">
|
|
12128
|
-
<slot name="icon"></slot>
|
|
12129
|
-
<slot name="label"></slot>
|
|
12130
|
-
</div>
|
|
12131
|
-
`;
|
|
12132
|
-
}
|
|
12133
|
-
constructor() {
|
|
12134
|
-
super(styleSheet$l);
|
|
12135
|
-
this.shadowRoot.innerHTML = this.template();
|
|
12136
|
-
}
|
|
12137
|
-
connectedCallback() {
|
|
12138
|
-
this.dispatchEvent(
|
|
12139
|
-
new CustomEvent(LIST_ITEM_CONNECTED_EVENT, {
|
|
12140
|
-
bubbles: true,
|
|
12141
|
-
composed: true
|
|
12142
|
-
})
|
|
12143
|
-
);
|
|
12144
|
-
}
|
|
12145
|
-
static get observedAttributes() {
|
|
12146
|
-
return ["inverted"];
|
|
12147
|
-
}
|
|
12148
|
-
// TODO: factorize code
|
|
12149
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
12150
|
-
if (oldValue !== newValue) {
|
|
12151
|
-
switch (attrName) {
|
|
12152
|
-
case "inverted":
|
|
12153
|
-
for (let i = 0; i < this.$children.length; i++) {
|
|
12154
|
-
if (!this.$children[i].hasAttribute("inverted")) {
|
|
12155
|
-
this.$children[i].toggleAttribute("inverted");
|
|
12156
|
-
}
|
|
12157
|
-
}
|
|
12158
|
-
this.$el.toggleAttribute("inverted", newValue !== null);
|
|
12159
|
-
break;
|
|
12160
|
-
}
|
|
12161
|
-
}
|
|
12162
|
-
}
|
|
12163
|
-
get $children() {
|
|
12164
|
-
return this.querySelectorAll("px-list-item > *");
|
|
12165
|
-
}
|
|
12166
|
-
get inverted() {
|
|
12167
|
-
return this.hasAttribute("inverted");
|
|
12168
|
-
}
|
|
12169
|
-
set inverted(value) {
|
|
12170
|
-
if (value) {
|
|
12171
|
-
this.setAttribute("inverted", "");
|
|
12172
|
-
} else {
|
|
12173
|
-
this.removeAttribute("inverted");
|
|
12174
|
-
}
|
|
12175
|
-
}
|
|
12176
|
-
};
|
|
12177
|
-
_ListItem.nativeName = "div";
|
|
12178
|
-
let ListItem = _ListItem;
|
|
12179
|
-
if (!customElements.get("px-list-item")) {
|
|
12180
|
-
customElements.define("px-list-item", ListItem);
|
|
12181
|
-
}
|
|
12182
|
-
const styleSheet$k = new CSSStyleSheet();
|
|
12183
|
-
styleSheet$k.replaceSync(styles$o);
|
|
11938
|
+
styleSheet$l.replaceSync(styles$o);
|
|
12184
11939
|
const listVariantValues = ["", "ul", "ol"];
|
|
12185
11940
|
const AttributeBreakpointCSSSelector = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .list`;
|
|
12186
11941
|
const gapPrefix = "px-spacing";
|
|
@@ -12192,11 +11947,6 @@ const listCssTokenBreakpoints = cssTokenBreakpoints(
|
|
|
12192
11947
|
"--list-gap"
|
|
12193
11948
|
);
|
|
12194
11949
|
const _List = class _List extends PxElement {
|
|
12195
|
-
constructor() {
|
|
12196
|
-
super(styleSheet$k, listCssTokenBreakpoints);
|
|
12197
|
-
__privateAdd(this, _List_instances);
|
|
12198
|
-
this.shadowRoot.innerHTML = this.template();
|
|
12199
|
-
}
|
|
12200
11950
|
template() {
|
|
12201
11951
|
return `
|
|
12202
11952
|
<div class="list" role="list">
|
|
@@ -12204,6 +11954,10 @@ const _List = class _List extends PxElement {
|
|
|
12204
11954
|
</div>
|
|
12205
11955
|
`;
|
|
12206
11956
|
}
|
|
11957
|
+
constructor() {
|
|
11958
|
+
super(styleSheet$l, listCssTokenBreakpoints);
|
|
11959
|
+
this.shadowRoot.innerHTML = this.template();
|
|
11960
|
+
}
|
|
12207
11961
|
static get observedAttributes() {
|
|
12208
11962
|
return ["inverted", "variant"];
|
|
12209
11963
|
}
|
|
@@ -12211,18 +11965,17 @@ const _List = class _List extends PxElement {
|
|
|
12211
11965
|
if (!this.gap) {
|
|
12212
11966
|
this.gap = "xs";
|
|
12213
11967
|
}
|
|
12214
|
-
this.addEventListener(LIST_ITEM_CONNECTED_EVENT, () => {
|
|
12215
|
-
__privateMethod(this, _List_instances, syncChildren_fn).call(this);
|
|
12216
|
-
});
|
|
12217
|
-
__privateMethod(this, _List_instances, syncChildren_fn).call(this);
|
|
12218
11968
|
}
|
|
12219
11969
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
12220
11970
|
if (oldValue !== newValue) {
|
|
12221
11971
|
switch (attrName) {
|
|
12222
11972
|
case "inverted":
|
|
12223
|
-
|
|
12224
|
-
|
|
11973
|
+
for (let i = 0; i < this.$children.length; i++) {
|
|
11974
|
+
if (!this.$children[i].hasAttribute("inverted")) {
|
|
11975
|
+
this.$children[i].toggleAttribute("inverted");
|
|
11976
|
+
}
|
|
12225
11977
|
}
|
|
11978
|
+
this.$el.toggleAttribute("inverted", newValue !== null);
|
|
12226
11979
|
break;
|
|
12227
11980
|
case "variant":
|
|
12228
11981
|
if (!this.checkName(listVariantValues, newValue)) {
|
|
@@ -12230,8 +11983,19 @@ const _List = class _List extends PxElement {
|
|
|
12230
11983
|
`${newValue} is not an allowed variant value for ${this.tagName.toLowerCase()}`
|
|
12231
11984
|
);
|
|
12232
11985
|
}
|
|
12233
|
-
|
|
12234
|
-
|
|
11986
|
+
for (let i = 0; i < this.$children.length; i++) {
|
|
11987
|
+
const child = this.$children[i];
|
|
11988
|
+
if (newValue !== null) {
|
|
11989
|
+
child.setAttribute("variant", newValue);
|
|
11990
|
+
if (newValue === "ol") {
|
|
11991
|
+
child.style.setProperty("--item-index", String(i + 1));
|
|
11992
|
+
} else {
|
|
11993
|
+
child.style.removeProperty("--item-index");
|
|
11994
|
+
}
|
|
11995
|
+
} else {
|
|
11996
|
+
child.removeAttribute("variant");
|
|
11997
|
+
child.style.removeProperty("--item-index");
|
|
11998
|
+
}
|
|
12235
11999
|
}
|
|
12236
12000
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
12237
12001
|
break;
|
|
@@ -12315,39 +12079,63 @@ const _List = class _List extends PxElement {
|
|
|
12315
12079
|
}
|
|
12316
12080
|
}
|
|
12317
12081
|
};
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
}
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12082
|
+
_List.nativeName = "div";
|
|
12083
|
+
let List = _List;
|
|
12084
|
+
if (!customElements.get("px-list")) {
|
|
12085
|
+
customElements.define("px-list", List);
|
|
12086
|
+
}
|
|
12087
|
+
const styles$n = '.list-item{display:flex;gap:var(--px-spacing-xs-mobile);align-items:flex-start;font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.list-item[inverted]{color:var(--px-color-text-neutral-inverted)}:host([variant="ul"]) .list-item,:host([variant="ol"]) .list-item{display:list-item;margin-left:var(--px-spacing-default-mobile)}:host([variant="ul"]) .list-item{list-style-type:disc}:host([variant="ol"]) .list-item{counter-set:list-item var(--item-index, 0);list-style-type:decimal}@media only screen and (min-width: 48em){.list-item{gap:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.list-item{gap:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.list-item{gap:var(--px-spacing-xs-desktop)}}';
|
|
12088
|
+
const styleSheet$k = new CSSStyleSheet();
|
|
12089
|
+
styleSheet$k.replaceSync(styles$n);
|
|
12090
|
+
const _ListItem = class _ListItem extends PxElement {
|
|
12091
|
+
template() {
|
|
12092
|
+
return `
|
|
12093
|
+
<div class="list-item" role="listitem">
|
|
12094
|
+
<slot name="icon"></slot>
|
|
12095
|
+
<slot name="label"></slot>
|
|
12096
|
+
</div>
|
|
12097
|
+
`;
|
|
12328
12098
|
}
|
|
12329
|
-
(
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12099
|
+
constructor() {
|
|
12100
|
+
super(styleSheet$k);
|
|
12101
|
+
this.shadowRoot.innerHTML = this.template();
|
|
12102
|
+
}
|
|
12103
|
+
static get observedAttributes() {
|
|
12104
|
+
return ["inverted"];
|
|
12105
|
+
}
|
|
12106
|
+
// TODO: factorize code
|
|
12107
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
12108
|
+
if (oldValue !== newValue) {
|
|
12109
|
+
switch (attrName) {
|
|
12110
|
+
case "inverted":
|
|
12111
|
+
for (let i = 0; i < this.$children.length; i++) {
|
|
12112
|
+
if (!this.$children[i].hasAttribute("inverted")) {
|
|
12113
|
+
this.$children[i].toggleAttribute("inverted");
|
|
12114
|
+
}
|
|
12115
|
+
}
|
|
12116
|
+
this.$el.toggleAttribute("inverted", newValue !== null);
|
|
12117
|
+
break;
|
|
12340
12118
|
}
|
|
12119
|
+
}
|
|
12120
|
+
}
|
|
12121
|
+
get $children() {
|
|
12122
|
+
return this.querySelectorAll("px-list-item > *");
|
|
12123
|
+
}
|
|
12124
|
+
get inverted() {
|
|
12125
|
+
return this.hasAttribute("inverted");
|
|
12126
|
+
}
|
|
12127
|
+
set inverted(value) {
|
|
12128
|
+
if (value) {
|
|
12129
|
+
this.setAttribute("inverted", "");
|
|
12341
12130
|
} else {
|
|
12342
|
-
|
|
12343
|
-
child.style.removeProperty("--item-index");
|
|
12131
|
+
this.removeAttribute("inverted");
|
|
12344
12132
|
}
|
|
12345
12133
|
}
|
|
12346
12134
|
};
|
|
12347
|
-
|
|
12348
|
-
let
|
|
12349
|
-
if (!customElements.get("px-list")) {
|
|
12350
|
-
customElements.define("px-list",
|
|
12135
|
+
_ListItem.nativeName = "div";
|
|
12136
|
+
let ListItem = _ListItem;
|
|
12137
|
+
if (!customElements.get("px-list-item")) {
|
|
12138
|
+
customElements.define("px-list-item", ListItem);
|
|
12351
12139
|
}
|
|
12352
12140
|
class MDDCloser extends HTMLElement {
|
|
12353
12141
|
constructor() {
|
|
@@ -12806,7 +12594,6 @@ class Modal extends HTMLElement {
|
|
|
12806
12594
|
this.onOpenClick = () => this.show();
|
|
12807
12595
|
this.onCloseClick = () => this.close();
|
|
12808
12596
|
this.commandButtonCleanups = [];
|
|
12809
|
-
this.opener = null;
|
|
12810
12597
|
this.openerElement = null;
|
|
12811
12598
|
this.closerElement = null;
|
|
12812
12599
|
this.template = `<dialog>
|
|
@@ -12857,11 +12644,14 @@ class Modal extends HTMLElement {
|
|
|
12857
12644
|
if (this.hasAttribute("open")) {
|
|
12858
12645
|
this.show();
|
|
12859
12646
|
}
|
|
12647
|
+
if (this.hasAttribute("closedby")) {
|
|
12648
|
+
this.addCloseListener(this.getAttribute("closedby"));
|
|
12649
|
+
}
|
|
12860
12650
|
if (this.hasAttribute("openedby")) {
|
|
12861
12651
|
this.addOpenListener();
|
|
12862
12652
|
}
|
|
12863
|
-
if (this.hasAttribute("
|
|
12864
|
-
this.
|
|
12653
|
+
if (this.hasAttribute("media-src")) {
|
|
12654
|
+
this.updateMediaSrc(this.getAttribute("media-src"));
|
|
12865
12655
|
}
|
|
12866
12656
|
this.toggleDescriptionVisibility();
|
|
12867
12657
|
(_a = this.$slotDescription) == null ? void 0 : _a.addEventListener(
|
|
@@ -12880,9 +12670,7 @@ class Modal extends HTMLElement {
|
|
|
12880
12670
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
12881
12671
|
switch (attrName) {
|
|
12882
12672
|
case "open":
|
|
12883
|
-
|
|
12884
|
-
this.handleOpenChange();
|
|
12885
|
-
}
|
|
12673
|
+
this.handleOpenChange();
|
|
12886
12674
|
break;
|
|
12887
12675
|
case "status":
|
|
12888
12676
|
this.handleStatusChange(oldValue, newValue);
|
|
@@ -12891,14 +12679,10 @@ class Modal extends HTMLElement {
|
|
|
12891
12679
|
this.updateMediaSrc(newValue);
|
|
12892
12680
|
break;
|
|
12893
12681
|
case "openedby":
|
|
12894
|
-
|
|
12895
|
-
this.addOpenListener();
|
|
12896
|
-
}
|
|
12682
|
+
this.addOpenListener();
|
|
12897
12683
|
break;
|
|
12898
12684
|
case "closedby":
|
|
12899
|
-
|
|
12900
|
-
this.addCloseListener(newValue);
|
|
12901
|
-
}
|
|
12685
|
+
this.addCloseListener(newValue);
|
|
12902
12686
|
break;
|
|
12903
12687
|
case "id":
|
|
12904
12688
|
this.addEventListenersToCommandButtons();
|
|
@@ -13014,29 +12798,12 @@ class Modal extends HTMLElement {
|
|
|
13014
12798
|
addOpenListener() {
|
|
13015
12799
|
var _a;
|
|
13016
12800
|
this.removeOpenListener();
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
this.openerElement.addEventListener("click", this.onOpenClick);
|
|
13020
|
-
} else {
|
|
13021
|
-
(_a = this.opener) == null ? void 0 : _a.disconnect();
|
|
13022
|
-
this.opener = new MutationObserver(() => {
|
|
13023
|
-
if (this.$opener) {
|
|
13024
|
-
this.opener.disconnect();
|
|
13025
|
-
this.opener = null;
|
|
13026
|
-
this.addOpenListener();
|
|
13027
|
-
}
|
|
13028
|
-
});
|
|
13029
|
-
this.opener.observe(document.body, {
|
|
13030
|
-
childList: true,
|
|
13031
|
-
subtree: true
|
|
13032
|
-
});
|
|
13033
|
-
}
|
|
12801
|
+
this.openerElement = this.$opener;
|
|
12802
|
+
(_a = this.openerElement) == null ? void 0 : _a.addEventListener("click", this.onOpenClick);
|
|
13034
12803
|
}
|
|
13035
12804
|
removeOpenListener() {
|
|
13036
|
-
var _a
|
|
13037
|
-
(_a = this.
|
|
13038
|
-
this.opener = null;
|
|
13039
|
-
(_b = this.openerElement) == null ? void 0 : _b.removeEventListener("click", this.onOpenClick);
|
|
12805
|
+
var _a;
|
|
12806
|
+
(_a = this.openerElement) == null ? void 0 : _a.removeEventListener("click", this.onOpenClick);
|
|
13040
12807
|
this.openerElement = null;
|
|
13041
12808
|
}
|
|
13042
12809
|
addCloseListener(value) {
|
|
@@ -13451,9 +13218,7 @@ const _Price = class _Price extends PxElement {
|
|
|
13451
13218
|
});
|
|
13452
13219
|
this.observer.observe(this, {
|
|
13453
13220
|
childList: true,
|
|
13454
|
-
subtree: true
|
|
13455
|
-
// By observing characterData, we ensure that any changes to the text content of the price element will trigger a rebuild of the price display, allowing it to update correctly in response to dynamic data changes.
|
|
13456
|
-
characterData: true
|
|
13221
|
+
subtree: true
|
|
13457
13222
|
});
|
|
13458
13223
|
}
|
|
13459
13224
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -13680,10 +13445,14 @@ class SelectableBoxCheckbox extends WithExtraAttributes {
|
|
|
13680
13445
|
}
|
|
13681
13446
|
connectedCallback() {
|
|
13682
13447
|
this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
13448
|
+
if (this.name) this.$checkbox.setAttribute("name", this.name);
|
|
13449
|
+
if (this.value) this.$checkbox.setAttribute("value", this.value);
|
|
13683
13450
|
this.role = "checkbox";
|
|
13684
13451
|
if (this.internals) {
|
|
13685
13452
|
this.internals.role = "checkbox";
|
|
13453
|
+
this.internals.ariaChecked = `${this.checked}`;
|
|
13686
13454
|
}
|
|
13455
|
+
this.ariaChecked = `${this.checked}`;
|
|
13687
13456
|
this.tabIndex = 0;
|
|
13688
13457
|
this.toggleFooterVisibility();
|
|
13689
13458
|
this.$slotFooter.addEventListener(
|
|
@@ -13694,6 +13463,9 @@ class SelectableBoxCheckbox extends WithExtraAttributes {
|
|
|
13694
13463
|
this.addEventListener("mouseout", this.removeHoverAttribute);
|
|
13695
13464
|
this.addEventListener("keypress", this.setKeypressEvent);
|
|
13696
13465
|
this.addEventListener("click", this.setClickEvent);
|
|
13466
|
+
if (this.hasAttribute("checked")) {
|
|
13467
|
+
this.checked = true;
|
|
13468
|
+
}
|
|
13697
13469
|
}
|
|
13698
13470
|
static get observedAttributes() {
|
|
13699
13471
|
return [
|
|
@@ -13950,11 +13722,15 @@ class SelectableBoxRadio extends WithExtraAttributes {
|
|
|
13950
13722
|
connectedCallback() {
|
|
13951
13723
|
var _a;
|
|
13952
13724
|
this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
13725
|
+
if (this.name) this.$radio.setAttribute("name", this.name);
|
|
13726
|
+
if (this.value) this.$radio.setAttribute("value", this.value);
|
|
13953
13727
|
this.role = "radio";
|
|
13954
13728
|
if (this.internals) {
|
|
13955
13729
|
this.internals.role = "radio";
|
|
13730
|
+
this.internals.ariaChecked = `${this.checked}`;
|
|
13956
13731
|
}
|
|
13957
|
-
this.
|
|
13732
|
+
this.ariaChecked = `${this.checked}`;
|
|
13733
|
+
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
|
|
13958
13734
|
this.toggleFooterVisibility();
|
|
13959
13735
|
this.$slotFooter.addEventListener(
|
|
13960
13736
|
"slotchange",
|
|
@@ -13964,6 +13740,9 @@ class SelectableBoxRadio extends WithExtraAttributes {
|
|
|
13964
13740
|
this.addEventListener("mouseout", this.removeHoverAttribute);
|
|
13965
13741
|
this.addEventListener("keypress", this.setKeypressEvent);
|
|
13966
13742
|
this.addEventListener("click", this.setClickEvent);
|
|
13743
|
+
if (this.hasAttribute("checked")) {
|
|
13744
|
+
this.checked = true;
|
|
13745
|
+
}
|
|
13967
13746
|
}
|
|
13968
13747
|
static get observedAttributes() {
|
|
13969
13748
|
return [
|
|
@@ -15222,6 +15001,8 @@ class Tabs extends HTMLElement {
|
|
|
15222
15001
|
var _a;
|
|
15223
15002
|
super();
|
|
15224
15003
|
__privateAdd(this, _Tabs_instances);
|
|
15004
|
+
this._label = `tabs-${Math.random().toString(36).substring(2, 15)}`;
|
|
15005
|
+
this.tabsConnected = 0;
|
|
15225
15006
|
this.template = () => `
|
|
15226
15007
|
<div id="container">
|
|
15227
15008
|
<div id="tab-container">
|
|
@@ -15241,7 +15022,7 @@ class Tabs extends HTMLElement {
|
|
|
15241
15022
|
</div>
|
|
15242
15023
|
`;
|
|
15243
15024
|
this.handleNextPreviousDisplay = () => {
|
|
15244
|
-
if (this.$prefixButton && this.$suffixButton) {
|
|
15025
|
+
if (this.allTabsConnected() && this.$prefixButton && this.$suffixButton) {
|
|
15245
15026
|
this.$prefixButton.style.display = this.shouldDisplayScrollLeftButton() ? "" : "none";
|
|
15246
15027
|
this.$suffixButton.style.display = this.shouldDisplayScrollRightButton() ? "" : "none";
|
|
15247
15028
|
}
|
|
@@ -15253,6 +15034,7 @@ class Tabs extends HTMLElement {
|
|
|
15253
15034
|
}
|
|
15254
15035
|
static get observedAttributes() {
|
|
15255
15036
|
return [
|
|
15037
|
+
"label",
|
|
15256
15038
|
"inverted",
|
|
15257
15039
|
"aria-label-next",
|
|
15258
15040
|
"aria-label-previous",
|
|
@@ -15261,6 +15043,9 @@ class Tabs extends HTMLElement {
|
|
|
15261
15043
|
}
|
|
15262
15044
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
15263
15045
|
switch (name) {
|
|
15046
|
+
case "label":
|
|
15047
|
+
this.label = newValue;
|
|
15048
|
+
break;
|
|
15264
15049
|
case "aria-label-next":
|
|
15265
15050
|
if (!this.hasAttribute("hide-controls")) {
|
|
15266
15051
|
this.$suffixButton.setAttribute("aria-label", newValue || "Next tab");
|
|
@@ -15284,6 +15069,10 @@ class Tabs extends HTMLElement {
|
|
|
15284
15069
|
}
|
|
15285
15070
|
connectedCallback() {
|
|
15286
15071
|
var _a, _b;
|
|
15072
|
+
this.shadowRoot.querySelector("#tablist").setAttribute("aria-labelledby", this._label);
|
|
15073
|
+
if (this.getAttribute("label")) {
|
|
15074
|
+
this.label = this.getAttribute("label");
|
|
15075
|
+
}
|
|
15287
15076
|
this.role = "tablist";
|
|
15288
15077
|
if (this.internals) {
|
|
15289
15078
|
this.internals.role = "tablist";
|
|
@@ -15309,13 +15098,15 @@ class Tabs extends HTMLElement {
|
|
|
15309
15098
|
}
|
|
15310
15099
|
);
|
|
15311
15100
|
this.addEventListener(TAB_CONNECTED_EVENT, () => {
|
|
15101
|
+
this.tabsConnected++;
|
|
15312
15102
|
this.handleNextPreviousDisplay();
|
|
15313
|
-
if (this.inverted) {
|
|
15103
|
+
if (this.allTabsConnected() && this.inverted) {
|
|
15314
15104
|
__privateMethod(this, _Tabs_instances, handleInverted_fn).call(this, this.getAttribute("inverted"));
|
|
15315
15105
|
}
|
|
15316
15106
|
});
|
|
15317
|
-
this.
|
|
15318
|
-
|
|
15107
|
+
if (this.allTabsConnected()) {
|
|
15108
|
+
__privateMethod(this, _Tabs_instances, handleInverted_fn).call(this, this.getAttribute("inverted"));
|
|
15109
|
+
}
|
|
15319
15110
|
this.addEventListener("keydown", (event) => {
|
|
15320
15111
|
var _a2, _b2;
|
|
15321
15112
|
if ((event.key === "ArrowRight" || event.key === "ArrowLeft") && ((_b2 = (_a2 = document.activeElement) == null ? void 0 : _a2.localName) == null ? void 0 : _b2.endsWith("-tab"))) {
|
|
@@ -15356,8 +15147,11 @@ class Tabs extends HTMLElement {
|
|
|
15356
15147
|
}
|
|
15357
15148
|
this.$activePanel.selected = true;
|
|
15358
15149
|
}
|
|
15150
|
+
allTabsConnected() {
|
|
15151
|
+
return this.tabsConnected === this.querySelectorAll('[slot="tabs"]').length || [...this.$tabs].every((tab) => tab.isConnected);
|
|
15152
|
+
}
|
|
15359
15153
|
shouldDisplayScrollRightButton() {
|
|
15360
|
-
return this.$tabList.scrollWidth > this.$tabList.clientWidth && this.$tabList.scrollWidth - this.$tabList.scrollLeft !== this.$tabList.clientWidth;
|
|
15154
|
+
return this.allTabsConnected() && this.$tabList.scrollWidth > this.$tabList.clientWidth && this.$tabList.scrollWidth - this.$tabList.scrollLeft !== this.$tabList.clientWidth;
|
|
15361
15155
|
}
|
|
15362
15156
|
shouldDisplayScrollLeftButton() {
|
|
15363
15157
|
return this.$tabList.scrollLeft > 0;
|
|
@@ -15400,6 +15194,12 @@ class Tabs extends HTMLElement {
|
|
|
15400
15194
|
get $suffixButton() {
|
|
15401
15195
|
return this.shadowRoot.querySelector("#next");
|
|
15402
15196
|
}
|
|
15197
|
+
get label() {
|
|
15198
|
+
return this.$tabList.getAttribute("aria-labelledby");
|
|
15199
|
+
}
|
|
15200
|
+
set label(value) {
|
|
15201
|
+
this.$tabList.setAttribute("aria-labelledby", value);
|
|
15202
|
+
}
|
|
15403
15203
|
get inverted() {
|
|
15404
15204
|
return this.hasAttribute("inverted");
|
|
15405
15205
|
}
|
|
@@ -16277,7 +16077,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
16277
16077
|
this.internals.ariaChecked = `${this.checked}`;
|
|
16278
16078
|
}
|
|
16279
16079
|
this.ariaChecked = `${this.checked}`;
|
|
16280
|
-
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.
|
|
16080
|
+
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
|
|
16281
16081
|
if (this.$slotPrefix) {
|
|
16282
16082
|
const prefixImg = this.querySelector('px-img[slot="prefix"]');
|
|
16283
16083
|
if (prefixImg) {
|
|
@@ -16952,10 +16752,67 @@ if (!customElements.get("px-tile-switch")) {
|
|
|
16952
16752
|
customElements.define("px-tile-switch", TileSwitch);
|
|
16953
16753
|
}
|
|
16954
16754
|
const styles$1 = ".timeline{list-style:none;margin:0;padding:0}";
|
|
16955
|
-
const styles = '.timeline-item{display:flex;gap:var(--px-spacing-default-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l)}.indicator-area{position:relative}.indicator-area:before{display:block;content:"";position:absolute;top:26px;left:12px;width:var(--px-size-border-m);height:calc(100% - 26px);background:var(--px-color-border-main-default)}.indicator-area .indicator{display:flex;align-items:center;justify-content:center;text-align:center;width:26px;height:26px;font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);color:var(--px-color-text-neutral-default);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-default-default)}.content-area{display:flex;flex-direction:column;margin-bottom:var(--px-padding-m-mobile);gap:var(--px-spacing-xs-mobile)}.content-area ::slotted([slot="title"]){font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-l-mobile);color:var(--px-color-text-neutral-default)}.content-area ::slotted([slot="content"]){font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-dimmed-default)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator{color:var(--px-color-text-neutral-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .content-area ::slotted([slot="title"]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .content-area ::slotted([slot="content"]){color:var(--px-color-text-dimmed-inverted)}@media only screen and (min-width: 768px){.timeline-item{gap:var(--px-spacing-default-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-tablet)}.content-area{margin-bottom:var(--px-padding-m-tablet);gap:var(--px-spacing-xs-tablet)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-tablet)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-tablet)}}@media only screen and (min-width: 1025px){.timeline-item{gap:var(--px-spacing-default-laptop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-laptop)}.content-area{margin-bottom:var(--px-padding-m-laptop)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-laptop)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-laptop)}}@media only screen and (min-width: 90.0625em){.timeline-item{gap:var(--px-spacing-default-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-desktop)}.content-area{margin-bottom:var(--px-padding-m-desktop)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-desktop)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-desktop)}}';
|
|
16956
16755
|
const styleSheet$1 = new CSSStyleSheet();
|
|
16957
|
-
styleSheet$1.replaceSync(styles);
|
|
16958
|
-
|
|
16756
|
+
styleSheet$1.replaceSync(styles$1);
|
|
16757
|
+
class Timeline extends HTMLElement {
|
|
16758
|
+
template() {
|
|
16759
|
+
return `
|
|
16760
|
+
<ol class="timeline" role="list">
|
|
16761
|
+
<slot></slot>
|
|
16762
|
+
</ol>
|
|
16763
|
+
`;
|
|
16764
|
+
}
|
|
16765
|
+
constructor() {
|
|
16766
|
+
super();
|
|
16767
|
+
this.attachShadow({ mode: "open" });
|
|
16768
|
+
this.shadowRoot.innerHTML = this.template();
|
|
16769
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet$1];
|
|
16770
|
+
}
|
|
16771
|
+
static get observedAttributes() {
|
|
16772
|
+
return ["inverted"];
|
|
16773
|
+
}
|
|
16774
|
+
connectedCallback() {
|
|
16775
|
+
this.configureChildren();
|
|
16776
|
+
}
|
|
16777
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
16778
|
+
if (oldValue !== newValue) {
|
|
16779
|
+
switch (attrName) {
|
|
16780
|
+
case "inverted":
|
|
16781
|
+
for (let i = 0; i < this.$children.length; i++) {
|
|
16782
|
+
this.$children[i].toggleAttribute("inverted");
|
|
16783
|
+
}
|
|
16784
|
+
break;
|
|
16785
|
+
}
|
|
16786
|
+
}
|
|
16787
|
+
}
|
|
16788
|
+
configureChildren() {
|
|
16789
|
+
const lastChild = this.$children[this.$children.length - 1];
|
|
16790
|
+
if (lastChild && !lastChild.hasAttribute("lastchild")) {
|
|
16791
|
+
lastChild.setAttribute("lastchild", "");
|
|
16792
|
+
}
|
|
16793
|
+
for (let i = 0; i < this.$children.length; i++) {
|
|
16794
|
+
this.$children[i].setAttribute("item", `${i + 1}`);
|
|
16795
|
+
}
|
|
16796
|
+
}
|
|
16797
|
+
get $el() {
|
|
16798
|
+
return this.shadowRoot.querySelector(".timeline");
|
|
16799
|
+
}
|
|
16800
|
+
get $children() {
|
|
16801
|
+
return this.querySelectorAll("px-timeline-item");
|
|
16802
|
+
}
|
|
16803
|
+
get inverted() {
|
|
16804
|
+
return this.getAttribute("inverted");
|
|
16805
|
+
}
|
|
16806
|
+
set inverted(value) {
|
|
16807
|
+
this.setAttribute("inverted", value);
|
|
16808
|
+
}
|
|
16809
|
+
}
|
|
16810
|
+
if (!customElements.get("px-timeline")) {
|
|
16811
|
+
customElements.define("px-timeline", Timeline);
|
|
16812
|
+
}
|
|
16813
|
+
const styles = '.timeline-item{display:flex;gap:var(--px-spacing-default-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l)}.indicator-area{position:relative}.indicator-area:before{display:block;content:"";position:absolute;top:26px;left:12px;width:var(--px-size-border-m);height:calc(100% - 26px);background:var(--px-color-border-main-default)}.indicator-area .indicator{display:flex;align-items:center;justify-content:center;text-align:center;width:26px;height:26px;font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);color:var(--px-color-text-neutral-default);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-default-default)}.content-area{display:flex;flex-direction:column;margin-bottom:var(--px-padding-m-mobile);gap:var(--px-spacing-xs-mobile)}.content-area ::slotted([slot="title"]){font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-l-mobile);color:var(--px-color-text-neutral-default)}.content-area ::slotted([slot="content"]){font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-dimmed-default)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator{color:var(--px-color-text-neutral-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .content-area ::slotted([slot="title"]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .content-area ::slotted([slot="content"]){color:var(--px-color-text-dimmed-inverted)}@media only screen and (min-width: 768px){.timeline-item{gap:var(--px-spacing-default-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-tablet)}.content-area{margin-bottom:var(--px-padding-m-tablet);gap:var(--px-spacing-xs-tablet)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-tablet)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-tablet)}}@media only screen and (min-width: 1025px){.timeline-item{gap:var(--px-spacing-default-laptop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-laptop)}.content-area{margin-bottom:var(--px-padding-m-laptop)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-laptop)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-laptop)}}@media only screen and (min-width: 90.0625em){.timeline-item{gap:var(--px-spacing-default-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-desktop)}.content-area{margin-bottom:var(--px-padding-m-desktop)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-desktop)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-desktop)}}';
|
|
16814
|
+
const styleSheet = new CSSStyleSheet();
|
|
16815
|
+
styleSheet.replaceSync(styles);
|
|
16959
16816
|
let item = "1";
|
|
16960
16817
|
class TimelineItem extends HTMLElement {
|
|
16961
16818
|
template() {
|
|
@@ -16975,15 +16832,7 @@ class TimelineItem extends HTMLElement {
|
|
|
16975
16832
|
super();
|
|
16976
16833
|
this.attachShadow({ mode: "open" });
|
|
16977
16834
|
this.shadowRoot.innerHTML = this.template();
|
|
16978
|
-
this.shadowRoot.adoptedStyleSheets = [styleSheet
|
|
16979
|
-
}
|
|
16980
|
-
connectedCallback() {
|
|
16981
|
-
this.dispatchEvent(
|
|
16982
|
-
new CustomEvent(TIMELINE_ITEM_CONNECTED_EVENT, {
|
|
16983
|
-
bubbles: true,
|
|
16984
|
-
composed: true
|
|
16985
|
-
})
|
|
16986
|
-
);
|
|
16835
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
16987
16836
|
}
|
|
16988
16837
|
static get observedAttributes() {
|
|
16989
16838
|
return ["inverted", "lastchild", "item"];
|
|
@@ -17035,77 +16884,6 @@ class TimelineItem extends HTMLElement {
|
|
|
17035
16884
|
if (!customElements.get("px-timeline-item")) {
|
|
17036
16885
|
customElements.define("px-timeline-item", TimelineItem);
|
|
17037
16886
|
}
|
|
17038
|
-
const styleSheet = new CSSStyleSheet();
|
|
17039
|
-
styleSheet.replaceSync(styles$1);
|
|
17040
|
-
class Timeline extends HTMLElement {
|
|
17041
|
-
constructor() {
|
|
17042
|
-
super();
|
|
17043
|
-
__privateAdd(this, _Timeline_instances);
|
|
17044
|
-
this.attachShadow({ mode: "open" });
|
|
17045
|
-
this.shadowRoot.innerHTML = this.template();
|
|
17046
|
-
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
17047
|
-
}
|
|
17048
|
-
template() {
|
|
17049
|
-
return `
|
|
17050
|
-
<ol class="timeline" role="list">
|
|
17051
|
-
<slot></slot>
|
|
17052
|
-
</ol>
|
|
17053
|
-
`;
|
|
17054
|
-
}
|
|
17055
|
-
static get observedAttributes() {
|
|
17056
|
-
return ["inverted"];
|
|
17057
|
-
}
|
|
17058
|
-
connectedCallback() {
|
|
17059
|
-
this.addEventListener(TIMELINE_ITEM_CONNECTED_EVENT, () => {
|
|
17060
|
-
this.configureChildren();
|
|
17061
|
-
__privateMethod(this, _Timeline_instances, applyInverted_fn3).call(this);
|
|
17062
|
-
});
|
|
17063
|
-
this.configureChildren();
|
|
17064
|
-
__privateMethod(this, _Timeline_instances, applyInverted_fn3).call(this);
|
|
17065
|
-
}
|
|
17066
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
17067
|
-
if (oldValue !== newValue) {
|
|
17068
|
-
switch (attrName) {
|
|
17069
|
-
case "inverted":
|
|
17070
|
-
if (this.isConnected) {
|
|
17071
|
-
__privateMethod(this, _Timeline_instances, applyInverted_fn3).call(this);
|
|
17072
|
-
}
|
|
17073
|
-
break;
|
|
17074
|
-
}
|
|
17075
|
-
}
|
|
17076
|
-
}
|
|
17077
|
-
configureChildren() {
|
|
17078
|
-
const lastChild = this.$children[this.$children.length - 1];
|
|
17079
|
-
if (lastChild && !lastChild.hasAttribute("lastchild")) {
|
|
17080
|
-
lastChild.setAttribute("lastchild", "");
|
|
17081
|
-
}
|
|
17082
|
-
for (let i = 0; i < this.$children.length; i++) {
|
|
17083
|
-
this.$children[i].setAttribute("item", `${i + 1}`);
|
|
17084
|
-
}
|
|
17085
|
-
}
|
|
17086
|
-
get $el() {
|
|
17087
|
-
return this.shadowRoot.querySelector(".timeline");
|
|
17088
|
-
}
|
|
17089
|
-
get $children() {
|
|
17090
|
-
return this.querySelectorAll("px-timeline-item");
|
|
17091
|
-
}
|
|
17092
|
-
get inverted() {
|
|
17093
|
-
return this.getAttribute("inverted");
|
|
17094
|
-
}
|
|
17095
|
-
set inverted(value) {
|
|
17096
|
-
this.setAttribute("inverted", value);
|
|
17097
|
-
}
|
|
17098
|
-
}
|
|
17099
|
-
_Timeline_instances = new WeakSet();
|
|
17100
|
-
applyInverted_fn3 = function() {
|
|
17101
|
-
const on = this.hasAttribute("inverted");
|
|
17102
|
-
for (let i = 0; i < this.$children.length; i++) {
|
|
17103
|
-
this.$children[i].toggleAttribute("inverted", on);
|
|
17104
|
-
}
|
|
17105
|
-
};
|
|
17106
|
-
if (!customElements.get("px-timeline")) {
|
|
17107
|
-
customElements.define("px-timeline", Timeline);
|
|
17108
|
-
}
|
|
17109
16887
|
const typographyCss = ":host{font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}::slotted(ul),::slotted(ol){padding:0;margin:0 0 var(--px-spacing-xs-mobile) var(--px-spacing-default-mobile)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-mobile)}::slotted(b),::slotted(strong){font-weight:var(--px-font-weight-title)}::slotted(address){font-style:normal;font-weight:var(--px-font-weight-body)}::slotted(img){max-width:100%;height:auto}@media only screen and (min-width: 48em){::slotted(ul),::slotted(ol){margin:0 0 var(--px-spacing-xs-tablet) var(--px-spacing-default-tablet)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){::slotted(ul),::slotted(ol){margin:0 0 var(--px-spacing-xs-laptop) var(--px-spacing-default-laptop)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){::slotted(ul),::slotted(ol){margin:0 0 var(--px-spacing-xs-desktop) var(--px-spacing-default-desktop)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-desktop)}}:host([inverted]){color:var(--px-color-text-neutral-inverted)}";
|
|
17110
16888
|
const lightStyles = ".li{margin-bottom:var(--px-padding-xs-mobile)}@media only screen and (min-width: 48em){.li{margin-bottom:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 64.0625em){.li{margin-bottom:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){.li{margin-bottom:var(--px-padding-xs-desktop)}}";
|
|
17111
16889
|
const typographyStyles = new CSSStyleSheet();
|
|
@@ -17159,13 +16937,11 @@ export {
|
|
|
17159
16937
|
AgGridTableThContent,
|
|
17160
16938
|
AppleSeed,
|
|
17161
16939
|
AttributeBreakpointHandlerDelegate,
|
|
17162
|
-
BREADCRUMB_ITEM_CONNECTED_EVENT,
|
|
17163
16940
|
Banner,
|
|
17164
16941
|
Breadcrumb,
|
|
17165
16942
|
BreadcrumbItem,
|
|
17166
16943
|
Button,
|
|
17167
16944
|
ButtonIcon,
|
|
17168
|
-
CAROUSEL_ITEM_CONNECTED_EVENT,
|
|
17169
16945
|
Card,
|
|
17170
16946
|
Carousel,
|
|
17171
16947
|
CarouselItem,
|
|
@@ -17202,7 +16978,6 @@ export {
|
|
|
17202
16978
|
Image,
|
|
17203
16979
|
Input,
|
|
17204
16980
|
InputState,
|
|
17205
|
-
LIST_ITEM_CONNECTED_EVENT,
|
|
17206
16981
|
Link,
|
|
17207
16982
|
List,
|
|
17208
16983
|
ListItem,
|
|
@@ -17238,7 +17013,6 @@ export {
|
|
|
17238
17013
|
Status,
|
|
17239
17014
|
StatusCard,
|
|
17240
17015
|
Switch,
|
|
17241
|
-
TIMELINE_ITEM_CONNECTED_EVENT,
|
|
17242
17016
|
Table,
|
|
17243
17017
|
Tag,
|
|
17244
17018
|
Tbody,
|
|
@@ -17342,7 +17116,6 @@ export {
|
|
|
17342
17116
|
statusStateValues,
|
|
17343
17117
|
statusValues,
|
|
17344
17118
|
styleSheet$A as styleSheet,
|
|
17345
|
-
subgridRowsValues,
|
|
17346
17119
|
suffixButtonIconVariantValues,
|
|
17347
17120
|
textalignValues,
|
|
17348
17121
|
tileBackgroundColorValues,
|