@proximus/lavender-toaster 1.4.20-alpha.4 → 1.4.20-alpha.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/index.es.js +496 -459
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,184 @@
|
|
|
1
1
|
//#region ../Container/src/container.css?inline
|
|
2
|
-
var e = ":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-left-style:none;border-right-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-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-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-position:50%;background-size:cover}.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]){z-index:3;transform:translateY(-50%)}::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]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::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{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}: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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.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-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.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 screen and (width>=48rem) and (width<=64rem){.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-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}: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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.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-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}: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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", t = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}: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}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region ../common/src/common.ts
|
|
5
|
-
function n(e) {
|
|
6
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
7
|
-
return Object.getOwnPropertyNames(n);
|
|
8
|
-
}
|
|
9
|
-
function r(e) {
|
|
10
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
11
|
-
return Object.getOwnPropertyNames(n).map((e) => e.toLowerCase());
|
|
12
|
-
}
|
|
13
|
-
var i = new CSSStyleSheet();
|
|
14
|
-
i.replaceSync(t);
|
|
15
|
-
var a = {
|
|
2
|
+
var e = ":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-left-style:none;border-right-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-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-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-position:50%;background-size:cover}.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]){z-index:3;transform:translateY(-50%)}::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]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::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{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}: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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.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-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.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 screen and (width>=48rem) and (width<=64rem){.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-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}: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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.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-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}: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)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", t = {
|
|
16
3
|
BASE_URL: "/",
|
|
17
4
|
DEV: !0,
|
|
18
5
|
MODE: "production",
|
|
19
6
|
PROD: !1,
|
|
20
7
|
SSR: !1,
|
|
21
8
|
VITE_COMPONENT_DEBUG: "true"
|
|
22
|
-
},
|
|
23
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
24
|
-
function
|
|
25
|
-
return
|
|
9
|
+
}, n = t?.VITE_COMPONENT_DEBUG === "true" || t?.DEV === !0;
|
|
10
|
+
typeof window < "u" && (window.isComponentDebug = r);
|
|
11
|
+
function r() {
|
|
12
|
+
return n;
|
|
26
13
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
14
|
+
function i(e) {
|
|
15
|
+
r() && console.error(e);
|
|
16
|
+
}
|
|
17
|
+
typeof window < "u" && (window.isComponentDebug = r);
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../common/src/common.css?inline
|
|
20
|
+
var a = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}: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}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../common/src/attributeSetters.ts
|
|
23
|
+
function o(e, t, n) {
|
|
24
|
+
if (n == null || n === "") {
|
|
25
|
+
e.removeAttribute(t);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
e.setAttribute(t, n.toString());
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
function s(e, t, n) {
|
|
31
|
+
if (!n) {
|
|
32
|
+
e.removeAttribute(t);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
e.setAttribute(t, "");
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../common/src/values.ts
|
|
39
|
+
var c = [
|
|
40
|
+
"",
|
|
41
|
+
"default",
|
|
42
|
+
"auto",
|
|
43
|
+
"flex-start",
|
|
44
|
+
"start",
|
|
45
|
+
"flex-end",
|
|
46
|
+
"end",
|
|
47
|
+
"center",
|
|
48
|
+
"baseline",
|
|
49
|
+
"stretch"
|
|
50
|
+
], l = [
|
|
51
|
+
"",
|
|
52
|
+
"default",
|
|
53
|
+
"start",
|
|
54
|
+
"end",
|
|
55
|
+
"center",
|
|
56
|
+
"stretch"
|
|
57
|
+
], u = [
|
|
58
|
+
"",
|
|
59
|
+
"default",
|
|
60
|
+
"start",
|
|
61
|
+
"end",
|
|
62
|
+
"center",
|
|
63
|
+
"stretch"
|
|
64
|
+
], d = [
|
|
65
|
+
"",
|
|
66
|
+
"1",
|
|
67
|
+
"2",
|
|
68
|
+
"3",
|
|
69
|
+
"4",
|
|
70
|
+
"5",
|
|
71
|
+
"6",
|
|
72
|
+
"7",
|
|
73
|
+
"8",
|
|
74
|
+
"9",
|
|
75
|
+
"10",
|
|
76
|
+
"11",
|
|
77
|
+
"12"
|
|
78
|
+
], f = [
|
|
79
|
+
"",
|
|
80
|
+
"-1",
|
|
81
|
+
"0",
|
|
82
|
+
"1",
|
|
83
|
+
"2",
|
|
84
|
+
"3",
|
|
85
|
+
"4",
|
|
86
|
+
"5",
|
|
87
|
+
"6",
|
|
88
|
+
"7",
|
|
89
|
+
"8",
|
|
90
|
+
"9",
|
|
91
|
+
"10",
|
|
92
|
+
"11",
|
|
93
|
+
"12"
|
|
94
|
+
], p = [
|
|
95
|
+
"",
|
|
96
|
+
"default",
|
|
97
|
+
...[
|
|
98
|
+
"Xs",
|
|
99
|
+
"S",
|
|
100
|
+
"M",
|
|
101
|
+
"L",
|
|
102
|
+
"Xl"
|
|
103
|
+
].map((e) => e.toLowerCase())
|
|
104
|
+
], m = [
|
|
105
|
+
"",
|
|
106
|
+
"none",
|
|
107
|
+
"3xs",
|
|
108
|
+
"2xs",
|
|
109
|
+
"xs",
|
|
110
|
+
"s",
|
|
111
|
+
"m",
|
|
112
|
+
"l",
|
|
113
|
+
"xl"
|
|
114
|
+
], ee = [
|
|
115
|
+
"",
|
|
116
|
+
"none",
|
|
117
|
+
"s",
|
|
118
|
+
"m",
|
|
119
|
+
"l"
|
|
120
|
+
], te = [
|
|
121
|
+
"",
|
|
122
|
+
"none",
|
|
123
|
+
"main",
|
|
124
|
+
"pill"
|
|
125
|
+
], h = [
|
|
126
|
+
"none",
|
|
127
|
+
"main",
|
|
128
|
+
"brand",
|
|
129
|
+
"state-hover",
|
|
130
|
+
"state-active",
|
|
131
|
+
"neutral",
|
|
132
|
+
"purpose-success",
|
|
133
|
+
"purpose-warning",
|
|
134
|
+
"purpose-error",
|
|
135
|
+
"purpose-unlimited"
|
|
136
|
+
], g = [
|
|
137
|
+
"",
|
|
138
|
+
"all",
|
|
139
|
+
"top",
|
|
140
|
+
"right",
|
|
141
|
+
"bottom",
|
|
142
|
+
"left",
|
|
143
|
+
"block",
|
|
144
|
+
"inline"
|
|
145
|
+
], _ = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), v = [
|
|
146
|
+
"",
|
|
147
|
+
"cover",
|
|
148
|
+
"contain",
|
|
149
|
+
"default"
|
|
150
|
+
], ne = [
|
|
151
|
+
"",
|
|
152
|
+
"none",
|
|
153
|
+
"s",
|
|
154
|
+
"m",
|
|
155
|
+
"l",
|
|
156
|
+
"xl"
|
|
157
|
+
], y = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), b = [
|
|
158
|
+
"none",
|
|
159
|
+
"2xs",
|
|
160
|
+
"xs",
|
|
161
|
+
"s",
|
|
162
|
+
"default",
|
|
163
|
+
"l",
|
|
164
|
+
"heading-to-subtitle",
|
|
165
|
+
"heading-to-content",
|
|
166
|
+
"page-layout-between-sections"
|
|
167
|
+
], re = [
|
|
168
|
+
"",
|
|
169
|
+
"all",
|
|
170
|
+
"top",
|
|
171
|
+
"right",
|
|
172
|
+
"bottom",
|
|
173
|
+
"left"
|
|
174
|
+
], x = new CSSStyleSheet();
|
|
175
|
+
x.replaceSync(a);
|
|
176
|
+
var S = class e extends HTMLElement {
|
|
32
177
|
static get observedAttributes() {
|
|
33
178
|
return /* @__PURE__ */ "grow.grow--mobile.grow--tablet.grow--laptop.grow--desktop.shrink.shrink--mobile.shrink--tablet.shrink--laptop.shrink--desktop.basis.basis--mobile.basis--tablet.basis--laptop.basis--desktop.align-self.align-self--mobile.align-self--tablet.align-self--laptop.align-self--desktop.justify-self.justify-self--mobile.justify-self--tablet.justify-self--laptop.justify-self--desktop.hidden.hidden--mobile.hidden--tablet.hidden--laptop.hidden--desktop.shown--sr.shown--sr--mobile.shown--sr--tablet.shown--sr--laptop.shown--sr--desktop.col-span.col-span--mobile.col-span--tablet.col-span--laptop.col-span--desktop.order.order--mobile.order--tablet.order--laptop.order--desktop.sticky-top.sticky-bottom.word-break-all.word-break-all--mobile.word-break-all--tablet.word-break-all--laptop.word-break-all--desktop".split(".");
|
|
34
179
|
}
|
|
35
180
|
constructor(...e) {
|
|
36
|
-
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
181
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [x, ...e];
|
|
37
182
|
}
|
|
38
183
|
attributeChangedCallback(t, n, r) {
|
|
39
184
|
if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
|
|
@@ -59,36 +204,36 @@ var l = class e extends HTMLElement {
|
|
|
59
204
|
case "align-self--tablet":
|
|
60
205
|
case "align-self--laptop":
|
|
61
206
|
case "align-self--desktop":
|
|
62
|
-
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ?
|
|
207
|
+
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? l : c);
|
|
63
208
|
break;
|
|
64
209
|
case "justify-self":
|
|
65
210
|
case "justify-self--mobile":
|
|
66
211
|
case "justify-self--tablet":
|
|
67
212
|
case "justify-self--laptop":
|
|
68
213
|
case "justify-self--desktop":
|
|
69
|
-
this.updateProperties(t, n, r,
|
|
214
|
+
this.updateProperties(t, n, r, u);
|
|
70
215
|
break;
|
|
71
216
|
case "col-span":
|
|
72
217
|
case "col-span--mobile":
|
|
73
218
|
case "col-span--tablet":
|
|
74
219
|
case "col-span--laptop":
|
|
75
220
|
case "col-span--desktop":
|
|
76
|
-
this.updateProperties(t, n, r,
|
|
221
|
+
this.updateProperties(t, n, r, d);
|
|
77
222
|
break;
|
|
78
223
|
case "order":
|
|
79
224
|
case "order--mobile":
|
|
80
225
|
case "order--tablet":
|
|
81
226
|
case "order--laptop":
|
|
82
|
-
case "order--desktop": this.updateProperties(t, n, r,
|
|
227
|
+
case "order--desktop": this.updateProperties(t, n, r, f);
|
|
83
228
|
}
|
|
84
229
|
}
|
|
85
230
|
updateProperties(e, t, n, r) {
|
|
86
|
-
r && (this.checkName(r, n) ||
|
|
87
|
-
let
|
|
88
|
-
if (!
|
|
231
|
+
r && (this.checkName(r, n) || i(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`));
|
|
232
|
+
let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
|
|
233
|
+
if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
|
|
89
234
|
else {
|
|
90
235
|
let r = e.split("--")[1];
|
|
91
|
-
this.style.setProperty(`--${
|
|
236
|
+
this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
|
|
92
237
|
}
|
|
93
238
|
}
|
|
94
239
|
updateStyle(e, t, n) {
|
|
@@ -119,433 +264,325 @@ var l = class e extends HTMLElement {
|
|
|
119
264
|
return this.getAttribute("grow");
|
|
120
265
|
}
|
|
121
266
|
set grow(e) {
|
|
122
|
-
|
|
267
|
+
o(this, "grow", e);
|
|
123
268
|
}
|
|
124
269
|
get growMobile() {
|
|
125
270
|
return this.getAttribute("grow--mobile");
|
|
126
271
|
}
|
|
127
272
|
set growMobile(e) {
|
|
128
|
-
|
|
273
|
+
o(this, "grow--mobile", e);
|
|
129
274
|
}
|
|
130
275
|
get growTablet() {
|
|
131
276
|
return this.getAttribute("grow--tablet");
|
|
132
277
|
}
|
|
133
278
|
set growTablet(e) {
|
|
134
|
-
|
|
279
|
+
o(this, "grow--tablet", e);
|
|
135
280
|
}
|
|
136
281
|
get growLaptop() {
|
|
137
282
|
return this.getAttribute("grow--laptop");
|
|
138
283
|
}
|
|
139
284
|
set growLaptop(e) {
|
|
140
|
-
|
|
285
|
+
o(this, "grow--laptop", e);
|
|
141
286
|
}
|
|
142
287
|
get growDesktop() {
|
|
143
288
|
return this.getAttribute("grow--desktop");
|
|
144
289
|
}
|
|
145
290
|
set growDesktop(e) {
|
|
146
|
-
|
|
291
|
+
o(this, "grow--desktop", e);
|
|
147
292
|
}
|
|
148
293
|
get shrink() {
|
|
149
294
|
return this.getAttribute("shrink");
|
|
150
295
|
}
|
|
151
296
|
set shrink(e) {
|
|
152
|
-
|
|
297
|
+
o(this, "shrink", e);
|
|
153
298
|
}
|
|
154
299
|
get shrinkMobile() {
|
|
155
300
|
return this.getAttribute("shrink--mobile");
|
|
156
301
|
}
|
|
157
302
|
set shrinkMobile(e) {
|
|
158
|
-
|
|
303
|
+
o(this, "shrink--mobile", e);
|
|
159
304
|
}
|
|
160
305
|
get shrinkTablet() {
|
|
161
306
|
return this.getAttribute("shrink--tablet");
|
|
162
307
|
}
|
|
163
308
|
set shrinkTablet(e) {
|
|
164
|
-
|
|
309
|
+
o(this, "shrink--tablet", e);
|
|
165
310
|
}
|
|
166
311
|
get shrinkLaptop() {
|
|
167
312
|
return this.getAttribute("shrink--laptop");
|
|
168
313
|
}
|
|
169
314
|
set shrinkLaptop(e) {
|
|
170
|
-
|
|
315
|
+
o(this, "shrink--laptop", e);
|
|
171
316
|
}
|
|
172
317
|
get shrinkDesktop() {
|
|
173
318
|
return this.getAttribute("shrink--desktop");
|
|
174
319
|
}
|
|
175
320
|
set shrinkDesktop(e) {
|
|
176
|
-
|
|
321
|
+
o(this, "shrink--desktop", e);
|
|
177
322
|
}
|
|
178
323
|
get basis() {
|
|
179
324
|
return this.getAttribute("basis");
|
|
180
325
|
}
|
|
181
326
|
set basis(e) {
|
|
182
|
-
|
|
327
|
+
o(this, "basis", e);
|
|
183
328
|
}
|
|
184
329
|
get basisMobile() {
|
|
185
330
|
return this.getAttribute("basis--mobile");
|
|
186
331
|
}
|
|
187
332
|
set basisMobile(e) {
|
|
188
|
-
|
|
333
|
+
o(this, "basis--mobile", e);
|
|
189
334
|
}
|
|
190
335
|
get basisTablet() {
|
|
191
336
|
return this.getAttribute("basis--tablet");
|
|
192
337
|
}
|
|
193
338
|
set basisTablet(e) {
|
|
194
|
-
|
|
339
|
+
o(this, "basis--tablet", e);
|
|
195
340
|
}
|
|
196
341
|
get basisLaptop() {
|
|
197
342
|
return this.getAttribute("basis--laptop");
|
|
198
343
|
}
|
|
199
344
|
set basisLaptop(e) {
|
|
200
|
-
|
|
345
|
+
o(this, "basis--laptop", e);
|
|
201
346
|
}
|
|
202
347
|
get basisDesktop() {
|
|
203
348
|
return this.getAttribute("basis--desktop");
|
|
204
349
|
}
|
|
205
350
|
set basisDesktop(e) {
|
|
206
|
-
|
|
351
|
+
o(this, "basis--desktop", e);
|
|
207
352
|
}
|
|
208
353
|
get alignSelf() {
|
|
209
354
|
return this.getAttribute("align-self");
|
|
210
355
|
}
|
|
211
356
|
set alignSelf(e) {
|
|
212
|
-
|
|
357
|
+
o(this, "align-self", e);
|
|
213
358
|
}
|
|
214
359
|
get alignSelfMobile() {
|
|
215
360
|
return this.getAttribute("align-self--mobile");
|
|
216
361
|
}
|
|
217
362
|
set alignSelfMobile(e) {
|
|
218
|
-
|
|
363
|
+
o(this, "align-self--mobile", e);
|
|
219
364
|
}
|
|
220
365
|
get alignSelfTablet() {
|
|
221
366
|
return this.getAttribute("align-self--tablet");
|
|
222
367
|
}
|
|
223
368
|
set alignSelfTablet(e) {
|
|
224
|
-
|
|
369
|
+
o(this, "align-self--tablet", e);
|
|
225
370
|
}
|
|
226
371
|
get alignSelfLaptop() {
|
|
227
372
|
return this.getAttribute("align-self--laptop");
|
|
228
373
|
}
|
|
229
374
|
set alignSelfLaptop(e) {
|
|
230
|
-
|
|
375
|
+
o(this, "align-self--laptop", e);
|
|
231
376
|
}
|
|
232
377
|
get alignSelfDesktop() {
|
|
233
378
|
return this.getAttribute("align-self--desktop");
|
|
234
379
|
}
|
|
235
380
|
set alignSelfDesktop(e) {
|
|
236
|
-
|
|
381
|
+
o(this, "align-self--desktop", e);
|
|
237
382
|
}
|
|
238
383
|
get justifySelf() {
|
|
239
384
|
return this.getAttribute("justify-self");
|
|
240
385
|
}
|
|
241
386
|
set justifySelf(e) {
|
|
242
|
-
|
|
387
|
+
o(this, "justify-self", e);
|
|
243
388
|
}
|
|
244
389
|
get justifySelfMobile() {
|
|
245
390
|
return this.getAttribute("justify-self--mobile");
|
|
246
391
|
}
|
|
247
392
|
set justifySelfMobile(e) {
|
|
248
|
-
|
|
393
|
+
o(this, "justify-self--mobile", e);
|
|
249
394
|
}
|
|
250
395
|
get justifySelfTablet() {
|
|
251
396
|
return this.getAttribute("justify-self--tablet");
|
|
252
397
|
}
|
|
253
398
|
set justifySelfTablet(e) {
|
|
254
|
-
|
|
399
|
+
o(this, "justify-self--tablet", e);
|
|
255
400
|
}
|
|
256
401
|
get justifySelfLaptop() {
|
|
257
402
|
return this.getAttribute("justify-self--laptop");
|
|
258
403
|
}
|
|
259
404
|
set justifySelfLaptop(e) {
|
|
260
|
-
|
|
405
|
+
o(this, "justify-self--laptop", e);
|
|
261
406
|
}
|
|
262
407
|
get justifySelfDesktop() {
|
|
263
408
|
return this.getAttribute("justify-self--desktop");
|
|
264
409
|
}
|
|
265
410
|
set justifySelfDesktop(e) {
|
|
266
|
-
|
|
411
|
+
o(this, "justify-self--desktop", e);
|
|
267
412
|
}
|
|
268
413
|
get hiddenMobile() {
|
|
269
414
|
return this.hasAttribute("hidden--mobile");
|
|
270
415
|
}
|
|
271
416
|
set hiddenMobile(e) {
|
|
272
|
-
|
|
417
|
+
s(this, "hidden--mobile", e);
|
|
273
418
|
}
|
|
274
419
|
get hiddenTablet() {
|
|
275
420
|
return this.hasAttribute("hidden--tablet");
|
|
276
421
|
}
|
|
277
422
|
set hiddenTablet(e) {
|
|
278
|
-
|
|
423
|
+
s(this, "hidden--tablet", e);
|
|
279
424
|
}
|
|
280
425
|
get hiddenLaptop() {
|
|
281
426
|
return this.hasAttribute("hidden--laptop");
|
|
282
427
|
}
|
|
283
428
|
set hiddenLaptop(e) {
|
|
284
|
-
|
|
429
|
+
s(this, "hidden--laptop", e);
|
|
285
430
|
}
|
|
286
431
|
get hiddenDesktop() {
|
|
287
432
|
return this.hasAttribute("hidden--desktop");
|
|
288
433
|
}
|
|
289
434
|
set hiddenDesktop(e) {
|
|
290
|
-
|
|
435
|
+
s(this, "hidden--desktop", e);
|
|
291
436
|
}
|
|
292
437
|
get colSpan() {
|
|
293
438
|
return this.getAttribute("col-span");
|
|
294
439
|
}
|
|
295
440
|
set colSpan(e) {
|
|
296
|
-
|
|
441
|
+
o(this, "col-span", e);
|
|
297
442
|
}
|
|
298
443
|
get colSpanMobile() {
|
|
299
444
|
return this.getAttribute("col-span--mobile");
|
|
300
445
|
}
|
|
301
446
|
set colSpanMobile(e) {
|
|
302
|
-
|
|
447
|
+
o(this, "col-span--mobile", e);
|
|
303
448
|
}
|
|
304
449
|
get colSpanTablet() {
|
|
305
450
|
return this.getAttribute("col-span--tablet");
|
|
306
451
|
}
|
|
307
452
|
set colSpanTablet(e) {
|
|
308
|
-
|
|
453
|
+
o(this, "col-span--tablet", e);
|
|
309
454
|
}
|
|
310
455
|
get colSpanLaptop() {
|
|
311
456
|
return this.getAttribute("col-span--laptop");
|
|
312
457
|
}
|
|
313
458
|
set colSpanLaptop(e) {
|
|
314
|
-
|
|
459
|
+
o(this, "col-span--laptop", e);
|
|
315
460
|
}
|
|
316
461
|
get colSpanDesktop() {
|
|
317
462
|
return this.getAttribute("col-span--desktop");
|
|
318
463
|
}
|
|
319
464
|
set colSpanDesktop(e) {
|
|
320
|
-
|
|
465
|
+
o(this, "col-span--desktop", e);
|
|
321
466
|
}
|
|
322
467
|
get order() {
|
|
323
468
|
return this.getAttribute("order");
|
|
324
469
|
}
|
|
325
470
|
set order(e) {
|
|
326
|
-
|
|
471
|
+
o(this, "order", e);
|
|
327
472
|
}
|
|
328
473
|
get orderMobile() {
|
|
329
474
|
return this.getAttribute("order--mobile");
|
|
330
475
|
}
|
|
331
476
|
set orderMobile(e) {
|
|
332
|
-
|
|
477
|
+
o(this, "order--mobile", e);
|
|
333
478
|
}
|
|
334
479
|
get orderTablet() {
|
|
335
480
|
return this.getAttribute("order--tablet");
|
|
336
481
|
}
|
|
337
482
|
set orderTablet(e) {
|
|
338
|
-
|
|
483
|
+
o(this, "order--tablet", e);
|
|
339
484
|
}
|
|
340
485
|
get orderLaptop() {
|
|
341
486
|
return this.getAttribute("order--laptop");
|
|
342
487
|
}
|
|
343
488
|
set orderLaptop(e) {
|
|
344
|
-
|
|
489
|
+
o(this, "order--laptop", e);
|
|
345
490
|
}
|
|
346
491
|
get orderDesktop() {
|
|
347
492
|
return this.getAttribute("order--desktop");
|
|
348
493
|
}
|
|
349
494
|
set orderDesktop(e) {
|
|
350
|
-
|
|
495
|
+
o(this, "order--desktop", e);
|
|
351
496
|
}
|
|
352
497
|
};
|
|
353
|
-
(class extends
|
|
498
|
+
(class extends S {
|
|
499
|
+
static {
|
|
500
|
+
this.nativeAttributes = {};
|
|
501
|
+
}
|
|
502
|
+
static {
|
|
503
|
+
this.nativeProperties = {};
|
|
504
|
+
}
|
|
354
505
|
static {
|
|
355
|
-
this.
|
|
506
|
+
this.nativeMethods = [];
|
|
356
507
|
}
|
|
357
508
|
static get observedAttributes() {
|
|
358
|
-
return [...super.observedAttributes, ...
|
|
509
|
+
return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
|
|
359
510
|
}
|
|
360
511
|
attributeChangedCallback(e, t, n) {
|
|
361
|
-
super.attributeChangedCallback(e, t, n),
|
|
512
|
+
super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
|
|
362
513
|
}
|
|
363
514
|
get ctor() {
|
|
364
515
|
return Object.getPrototypeOf(this).constructor;
|
|
365
516
|
}
|
|
366
517
|
constructor(...e) {
|
|
367
|
-
super(...e), this.
|
|
518
|
+
super(...e), this.enhanceWithNativeProperties();
|
|
519
|
+
}
|
|
520
|
+
getNativePropertyMetadata() {
|
|
521
|
+
let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
|
|
522
|
+
for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
|
|
523
|
+
let n = new Map(Object.entries(this.ctor.nativeProperties));
|
|
524
|
+
for (let t of e.keys()) n.set(t, "writable");
|
|
525
|
+
return {
|
|
526
|
+
reflectedProperties: e,
|
|
527
|
+
properties: n
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
setNativeProperty(e, t, n) {
|
|
531
|
+
let r = n.get(e);
|
|
532
|
+
if (r !== void 0) {
|
|
533
|
+
this.$el[e] = t;
|
|
534
|
+
let n = this.$el.getAttribute(r);
|
|
535
|
+
this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
|
|
536
|
+
} else this.$el[e] !== t && (this.$el[e] = t);
|
|
368
537
|
}
|
|
369
538
|
enhanceWithNativeProperties() {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
set(t)
|
|
376
|
-
this.$el[e] !== t && (this.$el[e] = t);
|
|
377
|
-
}
|
|
539
|
+
let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
|
|
540
|
+
for (let [n, r] of t) {
|
|
541
|
+
let t = n;
|
|
542
|
+
Object.defineProperty(this, t, {
|
|
543
|
+
get: () => this.$el[t],
|
|
544
|
+
set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
|
|
378
545
|
});
|
|
379
|
-
} catch (t) {
|
|
380
|
-
console.warn(`Could not create property ${e} for`, this.$el, t);
|
|
381
546
|
}
|
|
547
|
+
for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
|
|
548
|
+
let n = this.$el, r = Reflect.get(n, e);
|
|
549
|
+
if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
|
|
550
|
+
return Reflect.apply(r, n, t);
|
|
551
|
+
} });
|
|
382
552
|
}
|
|
383
553
|
get $el() {
|
|
384
554
|
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
385
555
|
}
|
|
556
|
+
_forwardNativeAttribute(e, t) {
|
|
557
|
+
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
558
|
+
}
|
|
386
559
|
_updateAttribute(e, t) {
|
|
387
|
-
|
|
560
|
+
o(this, e, t);
|
|
388
561
|
}
|
|
389
562
|
_updateBooleanAttribute(e, t) {
|
|
390
|
-
|
|
563
|
+
s(this, e, t);
|
|
391
564
|
}
|
|
392
565
|
});
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
"auto",
|
|
397
|
-
"flex-start",
|
|
398
|
-
"start",
|
|
399
|
-
"flex-end",
|
|
400
|
-
"end",
|
|
401
|
-
"center",
|
|
402
|
-
"baseline",
|
|
403
|
-
"stretch"
|
|
404
|
-
], u = [
|
|
405
|
-
"",
|
|
406
|
-
"default",
|
|
407
|
-
"start",
|
|
408
|
-
"end",
|
|
409
|
-
"center",
|
|
410
|
-
"stretch"
|
|
411
|
-
], d = [
|
|
412
|
-
"",
|
|
413
|
-
"default",
|
|
414
|
-
"start",
|
|
415
|
-
"end",
|
|
416
|
-
"center",
|
|
417
|
-
"stretch"
|
|
418
|
-
], f = [
|
|
419
|
-
"",
|
|
420
|
-
"1",
|
|
421
|
-
"2",
|
|
422
|
-
"3",
|
|
423
|
-
"4",
|
|
424
|
-
"5",
|
|
425
|
-
"6",
|
|
426
|
-
"7",
|
|
427
|
-
"8",
|
|
428
|
-
"9",
|
|
429
|
-
"10",
|
|
430
|
-
"11",
|
|
431
|
-
"12"
|
|
432
|
-
], p = [
|
|
433
|
-
"",
|
|
434
|
-
"-1",
|
|
435
|
-
"0",
|
|
436
|
-
"1",
|
|
437
|
-
"2",
|
|
438
|
-
"3",
|
|
439
|
-
"4",
|
|
440
|
-
"5",
|
|
441
|
-
"6",
|
|
442
|
-
"7",
|
|
443
|
-
"8",
|
|
444
|
-
"9",
|
|
445
|
-
"10",
|
|
446
|
-
"11",
|
|
447
|
-
"12"
|
|
448
|
-
], m = [
|
|
449
|
-
"",
|
|
450
|
-
"default",
|
|
451
|
-
...[
|
|
452
|
-
"Xs",
|
|
453
|
-
"S",
|
|
454
|
-
"M",
|
|
455
|
-
"L",
|
|
456
|
-
"Xl"
|
|
457
|
-
].map((e) => e.toLowerCase())
|
|
458
|
-
], h = [
|
|
459
|
-
"",
|
|
460
|
-
"none",
|
|
461
|
-
"3xs",
|
|
462
|
-
"2xs",
|
|
463
|
-
"xs",
|
|
464
|
-
"s",
|
|
465
|
-
"m",
|
|
466
|
-
"l",
|
|
467
|
-
"xl"
|
|
468
|
-
], te = [
|
|
469
|
-
"",
|
|
470
|
-
"none",
|
|
471
|
-
"s",
|
|
472
|
-
"m",
|
|
473
|
-
"l"
|
|
474
|
-
], ne = [
|
|
475
|
-
"",
|
|
476
|
-
"none",
|
|
477
|
-
"main",
|
|
478
|
-
"pill"
|
|
479
|
-
], g = [
|
|
480
|
-
"none",
|
|
481
|
-
"main",
|
|
482
|
-
"brand",
|
|
483
|
-
"state-hover",
|
|
484
|
-
"state-active",
|
|
485
|
-
"neutral",
|
|
486
|
-
"purpose-success",
|
|
487
|
-
"purpose-warning",
|
|
488
|
-
"purpose-error",
|
|
489
|
-
"purpose-unlimited"
|
|
490
|
-
], _ = [
|
|
491
|
-
"",
|
|
492
|
-
"all",
|
|
493
|
-
"top",
|
|
494
|
-
"right",
|
|
495
|
-
"bottom",
|
|
496
|
-
"left",
|
|
497
|
-
"block",
|
|
498
|
-
"inline"
|
|
499
|
-
], v = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), re = [
|
|
500
|
-
"",
|
|
501
|
-
"cover",
|
|
502
|
-
"contain",
|
|
503
|
-
"default"
|
|
504
|
-
], ie = [
|
|
505
|
-
"",
|
|
506
|
-
"none",
|
|
507
|
-
"s",
|
|
508
|
-
"m",
|
|
509
|
-
"l",
|
|
510
|
-
"xl"
|
|
511
|
-
], y = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), b = [
|
|
512
|
-
"none",
|
|
513
|
-
"2xs",
|
|
514
|
-
"xs",
|
|
515
|
-
"s",
|
|
516
|
-
"default",
|
|
517
|
-
"l",
|
|
518
|
-
"heading-to-subtitle",
|
|
519
|
-
"heading-to-content",
|
|
520
|
-
"page-layout-between-sections"
|
|
521
|
-
], ae = [
|
|
522
|
-
"",
|
|
523
|
-
"all",
|
|
524
|
-
"top",
|
|
525
|
-
"right",
|
|
526
|
-
"bottom",
|
|
527
|
-
"left"
|
|
528
|
-
];
|
|
529
|
-
function x(e, t) {
|
|
566
|
+
//#endregion
|
|
567
|
+
//#region ../common/src/utilities.ts
|
|
568
|
+
function C(e, t) {
|
|
530
569
|
return t !== null && e.includes(t);
|
|
531
570
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
e.setAttribute(t, "");
|
|
545
|
-
}
|
|
571
|
+
//#endregion
|
|
572
|
+
//#region ../common/src/nativeProperties.ts
|
|
573
|
+
var w = {
|
|
574
|
+
validity: "readonly",
|
|
575
|
+
validationMessage: "readonly",
|
|
576
|
+
willValidate: "readonly"
|
|
577
|
+
}, T = [
|
|
578
|
+
"checkValidity",
|
|
579
|
+
"reportValidity",
|
|
580
|
+
"setCustomValidity"
|
|
581
|
+
];
|
|
582
|
+
({ ...w }), [...T], { ...w }, [...T], { ...w }, [...T], { ...w }, [...T], { ...w }, [...T];
|
|
546
583
|
//#endregion
|
|
547
584
|
//#region ../common/src/breakpoints.ts
|
|
548
|
-
function
|
|
585
|
+
function E(e, t, n, r = "", i, a = e) {
|
|
549
586
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
550
587
|
${t(a, o)} {
|
|
551
588
|
${e}: var(--${r}-${o}-desktop);
|
|
@@ -588,7 +625,7 @@ function w(e, t, n, r = "", i, a = e) {
|
|
|
588
625
|
}`, "");
|
|
589
626
|
return o.replaceSync(s), o;
|
|
590
627
|
}
|
|
591
|
-
var
|
|
628
|
+
var ie = class {
|
|
592
629
|
constructor(e, t, n, r) {
|
|
593
630
|
this.component = e, this.attributeName = t, this.cssVariable = r, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = n, Object.defineProperty(this.component, this.toCamelCase(this.attributeName), {
|
|
594
631
|
get: () => this.component.getAttribute(this.attributeName),
|
|
@@ -634,33 +671,33 @@ var T = class {
|
|
|
634
671
|
set attributeValue(e) {
|
|
635
672
|
this._attributeValue = e, this.setCSSProperties();
|
|
636
673
|
}
|
|
637
|
-
},
|
|
638
|
-
function
|
|
674
|
+
}, D = /* @__PURE__ */ new Map(), ae = 500;
|
|
675
|
+
function O(e) {
|
|
639
676
|
let t = document.createElement("template");
|
|
640
677
|
return t.innerHTML = e, t;
|
|
641
678
|
}
|
|
642
|
-
function
|
|
643
|
-
return
|
|
679
|
+
function k(e) {
|
|
680
|
+
return O(e);
|
|
644
681
|
}
|
|
645
|
-
function
|
|
646
|
-
let t =
|
|
647
|
-
return t || (t =
|
|
682
|
+
function oe(e) {
|
|
683
|
+
let t = D.get(e);
|
|
684
|
+
return t || (t = O(e), D.size < ae && D.set(e, t)), t;
|
|
648
685
|
}
|
|
649
|
-
function
|
|
650
|
-
let n = typeof t == "string" ?
|
|
686
|
+
function A(e, t) {
|
|
687
|
+
let n = typeof t == "string" ? oe(t) : t;
|
|
651
688
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
652
689
|
}
|
|
653
690
|
//#endregion
|
|
654
691
|
//#region ../Container/src/Container.ts
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
var
|
|
692
|
+
var j = new CSSStyleSheet();
|
|
693
|
+
j.replaceSync(e);
|
|
694
|
+
var M = [
|
|
658
695
|
"top-patch",
|
|
659
696
|
"top-neighbor-patch",
|
|
660
697
|
"top-ribbon",
|
|
661
698
|
"top-neighbor-ribbon",
|
|
662
699
|
"top-patch-and-neighbor-ribbon"
|
|
663
|
-
],
|
|
700
|
+
], N = [
|
|
664
701
|
"1",
|
|
665
702
|
"2",
|
|
666
703
|
"3",
|
|
@@ -673,24 +710,24 @@ var j = [
|
|
|
673
710
|
"10",
|
|
674
711
|
"11",
|
|
675
712
|
"12"
|
|
676
|
-
],
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
],
|
|
713
|
+
], P = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, F = "px-padding", I = [
|
|
714
|
+
E("padding", P, m, F, "--container-padding"),
|
|
715
|
+
E("padding-inline", P, m, F),
|
|
716
|
+
E("padding-block", P, m, F),
|
|
717
|
+
E("padding-top", P, m, F),
|
|
718
|
+
E("padding-right", P, m, F, "--container-padding-right"),
|
|
719
|
+
E("padding-bottom", P, m, F),
|
|
720
|
+
E("padding-left", P, m, F, "--container-padding-left"),
|
|
721
|
+
E("gap", P, b, "px-spacing", void 0, "subgrid-gap")
|
|
722
|
+
], L = class e extends S {
|
|
686
723
|
static {
|
|
687
|
-
this.template =
|
|
724
|
+
this.template = k("<div class=\"container\"><slot></slot><slot name=\"anchor-left\"></slot><slot name=\"anchor-right\"></slot><slot name=\"anchor-full\"></slot></div>");
|
|
688
725
|
}
|
|
689
726
|
static {
|
|
690
727
|
this.nativeName = "div";
|
|
691
728
|
}
|
|
692
729
|
constructor() {
|
|
693
|
-
super(
|
|
730
|
+
super(j, ...I), this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, A(this.shadowRoot, e.template);
|
|
694
731
|
}
|
|
695
732
|
static get observedAttributes() {
|
|
696
733
|
return [
|
|
@@ -746,7 +783,7 @@ var j = [
|
|
|
746
783
|
attributeChangedCallback(e, t, n) {
|
|
747
784
|
if (t !== n) switch (e) {
|
|
748
785
|
case "border":
|
|
749
|
-
this.updateAttribute(e, t, n,
|
|
786
|
+
this.updateAttribute(e, t, n, ee);
|
|
750
787
|
break;
|
|
751
788
|
case "border-color":
|
|
752
789
|
this.updateBorderColor(e, n);
|
|
@@ -755,16 +792,16 @@ var j = [
|
|
|
755
792
|
case "border-side--mobile":
|
|
756
793
|
case "border-side--tablet":
|
|
757
794
|
case "border-side--laptop":
|
|
758
|
-
this.updateAttribute(e, t, n,
|
|
795
|
+
this.updateAttribute(e, t, n, g);
|
|
759
796
|
break;
|
|
760
797
|
case "border-radius":
|
|
761
|
-
this.updateAttribute(e, t, n,
|
|
798
|
+
this.updateAttribute(e, t, n, te);
|
|
762
799
|
break;
|
|
763
800
|
case "no-border-radius":
|
|
764
801
|
case "no-border-radius--mobile":
|
|
765
802
|
case "no-border-radius--tablet":
|
|
766
803
|
case "no-border-radius--laptop":
|
|
767
|
-
this.updateNoBorderRadius(e, t, n,
|
|
804
|
+
this.updateNoBorderRadius(e, t, n, re);
|
|
768
805
|
break;
|
|
769
806
|
case "background-color":
|
|
770
807
|
case "background-color--mobile":
|
|
@@ -779,7 +816,7 @@ var j = [
|
|
|
779
816
|
this.updateGradient(e, n);
|
|
780
817
|
break;
|
|
781
818
|
case "background-size":
|
|
782
|
-
this.updateAttribute(e, t, n,
|
|
819
|
+
this.updateAttribute(e, t, n, v);
|
|
783
820
|
break;
|
|
784
821
|
case "background-image":
|
|
785
822
|
case "background-image--mobile":
|
|
@@ -791,16 +828,16 @@ var j = [
|
|
|
791
828
|
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
792
829
|
break;
|
|
793
830
|
case "box-shadow":
|
|
794
|
-
this.updateAttribute(e, t, n,
|
|
831
|
+
this.updateAttribute(e, t, n, ne);
|
|
795
832
|
break;
|
|
796
833
|
case "anchor-offset":
|
|
797
|
-
this.updateAnchorOffset(t, n,
|
|
834
|
+
this.updateAnchorOffset(t, n, m);
|
|
798
835
|
break;
|
|
799
836
|
case "anchor-spacing":
|
|
800
|
-
this.updateAnchorSpacing(t, n,
|
|
837
|
+
this.updateAnchorSpacing(t, n, M);
|
|
801
838
|
break;
|
|
802
839
|
case "subgrid-rows":
|
|
803
|
-
this.updateSubgridRows(e, t, n,
|
|
840
|
+
this.updateSubgridRows(e, t, n, N);
|
|
804
841
|
break;
|
|
805
842
|
default: super.attributeChangedCallback(e, t, n);
|
|
806
843
|
}
|
|
@@ -825,27 +862,27 @@ var j = [
|
|
|
825
862
|
e = n.attrName;
|
|
826
863
|
let r = n.breakpoint;
|
|
827
864
|
this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
|
|
828
|
-
} else
|
|
865
|
+
} else i(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${y.join("\", \"")}".`);
|
|
829
866
|
}
|
|
830
867
|
updateBackgroundColor(e, t) {
|
|
831
868
|
let n = t.startsWith("surface-");
|
|
832
|
-
if (this.checkName(
|
|
869
|
+
if (this.checkName(_, t)) {
|
|
833
870
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
834
871
|
this.$el.style.setProperty(`--${r.attrName}${i}`, `var(--px-color-background-${t}${n ? "" : "-default"})`), this.$el.style.setProperty(`--${r.attrName}-inverted${i}`, `var(--px-color-background-${t}${n ? "" : "-inverted"})`);
|
|
835
|
-
} else
|
|
872
|
+
} else i(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${_.join("\", \"")}".`);
|
|
836
873
|
}
|
|
837
874
|
updateBorderColor(e, t) {
|
|
838
|
-
this.checkName(
|
|
875
|
+
this.checkName(h, t) ? (this.$el.style.setProperty(`--${e}`, `var(--px-color-border-${t}-default)`), this.$el.style.setProperty(`--${e}-inverted`, `var(--px-color-border-${t}-inverted)`)) : i(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${h.join("\", \"")}".`);
|
|
839
876
|
}
|
|
840
877
|
updateNoBorderRadius(e, t, n, r) {
|
|
841
|
-
if (!this.checkName(r, n))
|
|
878
|
+
if (!this.checkName(r, n)) i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
842
879
|
else {
|
|
843
880
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
844
881
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
845
882
|
}
|
|
846
883
|
}
|
|
847
884
|
updateAttribute(e, t, n, r) {
|
|
848
|
-
if (!this.checkName(r, n))
|
|
885
|
+
if (!this.checkName(r, n)) i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
849
886
|
else {
|
|
850
887
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
851
888
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
@@ -867,8 +904,8 @@ var j = [
|
|
|
867
904
|
};
|
|
868
905
|
}
|
|
869
906
|
updateAnchorOffset(e, t, n) {
|
|
870
|
-
if (!
|
|
871
|
-
|
|
907
|
+
if (!C(n, t)) {
|
|
908
|
+
i(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
872
909
|
return;
|
|
873
910
|
}
|
|
874
911
|
let r = (e) => {
|
|
@@ -880,8 +917,8 @@ var j = [
|
|
|
880
917
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
881
918
|
}
|
|
882
919
|
updateAnchorSpacing(e, t, n) {
|
|
883
|
-
if (!
|
|
884
|
-
|
|
920
|
+
if (!C(n, t)) {
|
|
921
|
+
i(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
885
922
|
return;
|
|
886
923
|
}
|
|
887
924
|
let r = (e) => {
|
|
@@ -890,7 +927,7 @@ var j = [
|
|
|
890
927
|
r(e), r(t);
|
|
891
928
|
}
|
|
892
929
|
updateSubgridRows(e, t, n, r) {
|
|
893
|
-
|
|
930
|
+
C(r, n) ? this.style.setProperty(`--${e}`, n) : i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
894
931
|
}
|
|
895
932
|
get $el() {
|
|
896
933
|
return this?.shadowRoot?.querySelector(".container");
|
|
@@ -902,390 +939,390 @@ var j = [
|
|
|
902
939
|
return this.getAttribute("padding");
|
|
903
940
|
}
|
|
904
941
|
set padding(e) {
|
|
905
|
-
|
|
942
|
+
o(this, "padding", e);
|
|
906
943
|
}
|
|
907
944
|
get paddingBlock() {
|
|
908
945
|
return this.getAttribute("padding-block");
|
|
909
946
|
}
|
|
910
947
|
set paddingBlock(e) {
|
|
911
|
-
|
|
948
|
+
o(this, "padding-block", e);
|
|
912
949
|
}
|
|
913
950
|
get paddingInline() {
|
|
914
951
|
return this.getAttribute("padding-inline");
|
|
915
952
|
}
|
|
916
953
|
set paddingInline(e) {
|
|
917
|
-
|
|
954
|
+
o(this, "padding-inline", e);
|
|
918
955
|
}
|
|
919
956
|
get paddingTop() {
|
|
920
957
|
return this.getAttribute("padding-top");
|
|
921
958
|
}
|
|
922
959
|
set paddingTop(e) {
|
|
923
|
-
|
|
960
|
+
o(this, "padding-top", e);
|
|
924
961
|
}
|
|
925
962
|
get paddingRight() {
|
|
926
963
|
return this.getAttribute("padding-right");
|
|
927
964
|
}
|
|
928
965
|
set paddingRight(e) {
|
|
929
|
-
|
|
966
|
+
o(this, "padding-right", e);
|
|
930
967
|
}
|
|
931
968
|
get paddingBottom() {
|
|
932
969
|
return this.getAttribute("padding-bottom");
|
|
933
970
|
}
|
|
934
971
|
set paddingBottom(e) {
|
|
935
|
-
|
|
972
|
+
o(this, "padding-bottom", e);
|
|
936
973
|
}
|
|
937
974
|
get paddingLeft() {
|
|
938
975
|
return this.getAttribute("padding-left");
|
|
939
976
|
}
|
|
940
977
|
set paddingLeft(e) {
|
|
941
|
-
|
|
978
|
+
o(this, "padding-left", e);
|
|
942
979
|
}
|
|
943
980
|
get paddingMobile() {
|
|
944
981
|
return this.getAttribute("padding--mobile");
|
|
945
982
|
}
|
|
946
983
|
set paddingMobile(e) {
|
|
947
|
-
|
|
984
|
+
o(this, "padding--mobile", e);
|
|
948
985
|
}
|
|
949
986
|
get paddingBlockMobile() {
|
|
950
987
|
return this.getAttribute("padding-block--mobile");
|
|
951
988
|
}
|
|
952
989
|
set paddingBlockMobile(e) {
|
|
953
|
-
|
|
990
|
+
o(this, "padding-block--mobile", e);
|
|
954
991
|
}
|
|
955
992
|
get paddingInlineMobile() {
|
|
956
993
|
return this.getAttribute("padding-inline--mobile");
|
|
957
994
|
}
|
|
958
995
|
set paddingInlineMobile(e) {
|
|
959
|
-
|
|
996
|
+
o(this, "padding-inline--mobile", e);
|
|
960
997
|
}
|
|
961
998
|
get paddingTopMobile() {
|
|
962
999
|
return this.getAttribute("padding-top--mobile");
|
|
963
1000
|
}
|
|
964
1001
|
set paddingTopMobile(e) {
|
|
965
|
-
|
|
1002
|
+
o(this, "padding-top--mobile", e);
|
|
966
1003
|
}
|
|
967
1004
|
get paddingRightMobile() {
|
|
968
1005
|
return this.getAttribute("padding-right--mobile");
|
|
969
1006
|
}
|
|
970
1007
|
set paddingRightMobile(e) {
|
|
971
|
-
|
|
1008
|
+
o(this, "padding-right--mobile", e);
|
|
972
1009
|
}
|
|
973
1010
|
get paddingBottomMobile() {
|
|
974
1011
|
return this.getAttribute("padding-bottom--mobile");
|
|
975
1012
|
}
|
|
976
1013
|
set paddingBottomMobile(e) {
|
|
977
|
-
|
|
1014
|
+
o(this, "padding-bottom--mobile", e);
|
|
978
1015
|
}
|
|
979
1016
|
get paddingLeftMobile() {
|
|
980
1017
|
return this.getAttribute("padding-left--mobile");
|
|
981
1018
|
}
|
|
982
1019
|
set paddingLeftMobile(e) {
|
|
983
|
-
|
|
1020
|
+
o(this, "padding-left--mobile", e);
|
|
984
1021
|
}
|
|
985
1022
|
get paddingTablet() {
|
|
986
1023
|
return this.getAttribute("padding--tablet");
|
|
987
1024
|
}
|
|
988
1025
|
set paddingTablet(e) {
|
|
989
|
-
|
|
1026
|
+
o(this, "padding--tablet", e);
|
|
990
1027
|
}
|
|
991
1028
|
get paddingBlockTablet() {
|
|
992
1029
|
return this.getAttribute("padding-block--tablet");
|
|
993
1030
|
}
|
|
994
1031
|
set paddingBlockTablet(e) {
|
|
995
|
-
|
|
1032
|
+
o(this, "padding-block--tablet", e);
|
|
996
1033
|
}
|
|
997
1034
|
get paddingInlineTablet() {
|
|
998
1035
|
return this.getAttribute("padding-inline--tablet");
|
|
999
1036
|
}
|
|
1000
1037
|
set paddingInlineTablet(e) {
|
|
1001
|
-
|
|
1038
|
+
o(this, "padding-inline--tablet", e);
|
|
1002
1039
|
}
|
|
1003
1040
|
get paddingTopTablet() {
|
|
1004
1041
|
return this.getAttribute("padding-top--tablet");
|
|
1005
1042
|
}
|
|
1006
1043
|
set paddingTopTablet(e) {
|
|
1007
|
-
|
|
1044
|
+
o(this, "padding-top--tablet", e);
|
|
1008
1045
|
}
|
|
1009
1046
|
get paddingRightTablet() {
|
|
1010
1047
|
return this.getAttribute("padding-right--tablet");
|
|
1011
1048
|
}
|
|
1012
1049
|
set paddingRightTablet(e) {
|
|
1013
|
-
|
|
1050
|
+
o(this, "padding-right--tablet", e);
|
|
1014
1051
|
}
|
|
1015
1052
|
get paddingBottomTablet() {
|
|
1016
1053
|
return this.getAttribute("padding-bottom--tablet");
|
|
1017
1054
|
}
|
|
1018
1055
|
set paddingBottomTablet(e) {
|
|
1019
|
-
|
|
1056
|
+
o(this, "padding-bottom--tablet", e);
|
|
1020
1057
|
}
|
|
1021
1058
|
get paddingLeftTablet() {
|
|
1022
1059
|
return this.getAttribute("padding-left--tablet");
|
|
1023
1060
|
}
|
|
1024
1061
|
set paddingLeftTablet(e) {
|
|
1025
|
-
|
|
1062
|
+
o(this, "padding-left--tablet", e);
|
|
1026
1063
|
}
|
|
1027
1064
|
get paddingLaptop() {
|
|
1028
1065
|
return this.getAttribute("padding--laptop");
|
|
1029
1066
|
}
|
|
1030
1067
|
set paddingLaptop(e) {
|
|
1031
|
-
|
|
1068
|
+
o(this, "padding--laptop", e);
|
|
1032
1069
|
}
|
|
1033
1070
|
get paddingBlockLaptop() {
|
|
1034
1071
|
return this.getAttribute("padding-block--laptop");
|
|
1035
1072
|
}
|
|
1036
1073
|
set paddingBlockLaptop(e) {
|
|
1037
|
-
|
|
1074
|
+
o(this, "padding-block--laptop", e);
|
|
1038
1075
|
}
|
|
1039
1076
|
get paddingInlineLaptop() {
|
|
1040
1077
|
return this.getAttribute("padding-inline--laptop");
|
|
1041
1078
|
}
|
|
1042
1079
|
set paddingInlineLaptop(e) {
|
|
1043
|
-
|
|
1080
|
+
o(this, "padding-inline--laptop", e);
|
|
1044
1081
|
}
|
|
1045
1082
|
get paddingTopLaptop() {
|
|
1046
1083
|
return this.getAttribute("padding-top--laptop");
|
|
1047
1084
|
}
|
|
1048
1085
|
set paddingTopLaptop(e) {
|
|
1049
|
-
|
|
1086
|
+
o(this, "padding-top--laptop", e);
|
|
1050
1087
|
}
|
|
1051
1088
|
get paddingRightLaptop() {
|
|
1052
1089
|
return this.getAttribute("padding-right--laptop");
|
|
1053
1090
|
}
|
|
1054
1091
|
set paddingRightLaptop(e) {
|
|
1055
|
-
|
|
1092
|
+
o(this, "padding-right--laptop", e);
|
|
1056
1093
|
}
|
|
1057
1094
|
get paddingBottomLaptop() {
|
|
1058
1095
|
return this.getAttribute("padding-bottom--laptop");
|
|
1059
1096
|
}
|
|
1060
1097
|
set paddingBottomLaptop(e) {
|
|
1061
|
-
|
|
1098
|
+
o(this, "padding-bottom--laptop", e);
|
|
1062
1099
|
}
|
|
1063
1100
|
get paddingLeftLaptop() {
|
|
1064
1101
|
return this.getAttribute("padding-left--laptop");
|
|
1065
1102
|
}
|
|
1066
1103
|
set paddingLeftLaptop(e) {
|
|
1067
|
-
|
|
1104
|
+
o(this, "padding-left--laptop", e);
|
|
1068
1105
|
}
|
|
1069
1106
|
get border() {
|
|
1070
1107
|
return this.getAttribute("border");
|
|
1071
1108
|
}
|
|
1072
1109
|
set border(e) {
|
|
1073
|
-
|
|
1110
|
+
o(this, "border", e);
|
|
1074
1111
|
}
|
|
1075
1112
|
get borderColor() {
|
|
1076
1113
|
return this.getAttribute("border-color");
|
|
1077
1114
|
}
|
|
1078
1115
|
set borderColor(e) {
|
|
1079
|
-
|
|
1116
|
+
o(this, "border-color", e);
|
|
1080
1117
|
}
|
|
1081
1118
|
get borderSide() {
|
|
1082
1119
|
return this.getAttribute("border-side");
|
|
1083
1120
|
}
|
|
1084
1121
|
set borderSide(e) {
|
|
1085
|
-
|
|
1122
|
+
o(this, "border-side", e);
|
|
1086
1123
|
}
|
|
1087
1124
|
get borderSideMobile() {
|
|
1088
1125
|
return this.getAttribute("border-side--mobile");
|
|
1089
1126
|
}
|
|
1090
1127
|
set borderSideMobile(e) {
|
|
1091
|
-
|
|
1128
|
+
o(this, "border-side--mobile", e);
|
|
1092
1129
|
}
|
|
1093
1130
|
get borderSideTablet() {
|
|
1094
1131
|
return this.getAttribute("border-side--tablet");
|
|
1095
1132
|
}
|
|
1096
1133
|
set borderSideTablet(e) {
|
|
1097
|
-
|
|
1134
|
+
o(this, "border-side--tablet", e);
|
|
1098
1135
|
}
|
|
1099
1136
|
get borderSideLaptop() {
|
|
1100
1137
|
return this.getAttribute("border-side--laptop");
|
|
1101
1138
|
}
|
|
1102
1139
|
set borderSideLaptop(e) {
|
|
1103
|
-
|
|
1140
|
+
o(this, "border-side--laptop", e);
|
|
1104
1141
|
}
|
|
1105
1142
|
get borderRadius() {
|
|
1106
1143
|
return this.getAttribute("border-radius");
|
|
1107
1144
|
}
|
|
1108
1145
|
set borderRadius(e) {
|
|
1109
|
-
|
|
1146
|
+
o(this, "border-radius", e);
|
|
1110
1147
|
}
|
|
1111
1148
|
get noBorderRadius() {
|
|
1112
1149
|
return this.getAttribute("no-border-radius");
|
|
1113
1150
|
}
|
|
1114
1151
|
set noBorderRadius(e) {
|
|
1115
|
-
|
|
1152
|
+
o(this, "no-border-radius", e);
|
|
1116
1153
|
}
|
|
1117
1154
|
get noBorderRadiusMobile() {
|
|
1118
1155
|
return this.getAttribute("no-border-radius--mobile");
|
|
1119
1156
|
}
|
|
1120
1157
|
set noBorderRadiusMobile(e) {
|
|
1121
|
-
|
|
1158
|
+
o(this, "no-border-radius--mobile", e);
|
|
1122
1159
|
}
|
|
1123
1160
|
get noBorderRadiusTablet() {
|
|
1124
1161
|
return this.getAttribute("no-border-radius--tablet");
|
|
1125
1162
|
}
|
|
1126
1163
|
set noBorderRadiusTablet(e) {
|
|
1127
|
-
|
|
1164
|
+
o(this, "no-border-radius--tablet", e);
|
|
1128
1165
|
}
|
|
1129
1166
|
get noBorderRadiusLaptop() {
|
|
1130
1167
|
return this.getAttribute("no-border-radius--laptop");
|
|
1131
1168
|
}
|
|
1132
1169
|
set noBorderRadiusLaptop(e) {
|
|
1133
|
-
|
|
1170
|
+
o(this, "no-border-radius--laptop", e);
|
|
1134
1171
|
}
|
|
1135
1172
|
get backgroundColor() {
|
|
1136
1173
|
return this.getAttribute("background-color");
|
|
1137
1174
|
}
|
|
1138
1175
|
set backgroundColor(e) {
|
|
1139
|
-
|
|
1176
|
+
o(this, "background-color", e);
|
|
1140
1177
|
}
|
|
1141
1178
|
get backgroundColorMobile() {
|
|
1142
1179
|
return this.getAttribute("background-color--mobile");
|
|
1143
1180
|
}
|
|
1144
1181
|
set backgroundColorMobile(e) {
|
|
1145
|
-
|
|
1182
|
+
o(this, "background-color--mobile", e);
|
|
1146
1183
|
}
|
|
1147
1184
|
get backgroundColorTablet() {
|
|
1148
1185
|
return this.getAttribute("background-color--tablet");
|
|
1149
1186
|
}
|
|
1150
1187
|
set backgroundColorTablet(e) {
|
|
1151
|
-
|
|
1188
|
+
o(this, "background-color--tablet", e);
|
|
1152
1189
|
}
|
|
1153
1190
|
get backgroundColorLaptop() {
|
|
1154
1191
|
return this.getAttribute("background-color--laptop");
|
|
1155
1192
|
}
|
|
1156
1193
|
set backgroundColorLaptop(e) {
|
|
1157
|
-
|
|
1194
|
+
o(this, "background-color--laptop", e);
|
|
1158
1195
|
}
|
|
1159
1196
|
get gradient() {
|
|
1160
1197
|
return this.getAttribute("background-gradient");
|
|
1161
1198
|
}
|
|
1162
1199
|
set gradient(e) {
|
|
1163
|
-
|
|
1200
|
+
o(this, "background-gradient", e);
|
|
1164
1201
|
}
|
|
1165
1202
|
get gradientMobile() {
|
|
1166
1203
|
return this.getAttribute("background-gradient--mobile");
|
|
1167
1204
|
}
|
|
1168
1205
|
set gradientMobile(e) {
|
|
1169
|
-
|
|
1206
|
+
o(this, "background-gradient--mobile", e);
|
|
1170
1207
|
}
|
|
1171
1208
|
get gradientTablet() {
|
|
1172
1209
|
return this.getAttribute("background-gradient--tablet");
|
|
1173
1210
|
}
|
|
1174
1211
|
set gradientTablet(e) {
|
|
1175
|
-
|
|
1212
|
+
o(this, "background-gradient--tablet", e);
|
|
1176
1213
|
}
|
|
1177
1214
|
get gradientLaptop() {
|
|
1178
1215
|
return this.getAttribute("background-gradient--laptop");
|
|
1179
1216
|
}
|
|
1180
1217
|
set gradientLaptop(e) {
|
|
1181
|
-
|
|
1218
|
+
o(this, "background-gradient--laptop", e);
|
|
1182
1219
|
}
|
|
1183
1220
|
get backgroundImage() {
|
|
1184
1221
|
return this.getAttribute("background-image");
|
|
1185
1222
|
}
|
|
1186
1223
|
set backgroundImage(e) {
|
|
1187
|
-
|
|
1224
|
+
o(this, "background-image", e);
|
|
1188
1225
|
}
|
|
1189
1226
|
get backgroundImageMobile() {
|
|
1190
1227
|
return this.getAttribute("background-image--mobile");
|
|
1191
1228
|
}
|
|
1192
1229
|
set backgroundImageMobile(e) {
|
|
1193
|
-
|
|
1230
|
+
o(this, "background-image--mobile", e);
|
|
1194
1231
|
}
|
|
1195
1232
|
get backgroundImageTablet() {
|
|
1196
1233
|
return this.getAttribute("background-image--tablet");
|
|
1197
1234
|
}
|
|
1198
1235
|
set backgroundImageTablet(e) {
|
|
1199
|
-
|
|
1236
|
+
o(this, "background-image--tablet", e);
|
|
1200
1237
|
}
|
|
1201
1238
|
get backgroundImageLaptop() {
|
|
1202
1239
|
return this.getAttribute("background-image--laptop");
|
|
1203
1240
|
}
|
|
1204
1241
|
set backgroundImageLaptop(e) {
|
|
1205
|
-
|
|
1242
|
+
o(this, "background-image--laptop", e);
|
|
1206
1243
|
}
|
|
1207
1244
|
get backgroundSize() {
|
|
1208
1245
|
return this.getAttribute("background-size");
|
|
1209
1246
|
}
|
|
1210
1247
|
set backgroundSize(e) {
|
|
1211
|
-
|
|
1248
|
+
o(this, "background-size", e);
|
|
1212
1249
|
}
|
|
1213
1250
|
get backgroundPosition() {
|
|
1214
1251
|
return this.getAttribute("background-position");
|
|
1215
1252
|
}
|
|
1216
1253
|
set backgroundPosition(e) {
|
|
1217
|
-
|
|
1254
|
+
o(this, "background-position", e);
|
|
1218
1255
|
}
|
|
1219
1256
|
get boxShadow() {
|
|
1220
1257
|
return this.getAttribute("box-shadow");
|
|
1221
1258
|
}
|
|
1222
1259
|
set boxShadow(e) {
|
|
1223
|
-
|
|
1260
|
+
o(this, "box-shadow", e);
|
|
1224
1261
|
}
|
|
1225
1262
|
get anchorOffset() {
|
|
1226
1263
|
return this.getAttribute("anchor-offset");
|
|
1227
1264
|
}
|
|
1228
1265
|
set anchorOffset(e) {
|
|
1229
|
-
|
|
1266
|
+
o(this, "anchor-offset", e);
|
|
1230
1267
|
}
|
|
1231
1268
|
get anchorSpacing() {
|
|
1232
1269
|
return this.getAttribute("anchor-spacing");
|
|
1233
1270
|
}
|
|
1234
1271
|
set anchorSpacing(e) {
|
|
1235
|
-
|
|
1272
|
+
o(this, "anchor-spacing", e);
|
|
1236
1273
|
}
|
|
1237
1274
|
get inverted() {
|
|
1238
1275
|
return this.hasAttribute("inverted");
|
|
1239
1276
|
}
|
|
1240
1277
|
set inverted(e) {
|
|
1241
|
-
|
|
1278
|
+
s(this, "inverted", e);
|
|
1242
1279
|
}
|
|
1243
1280
|
get subgridRows() {
|
|
1244
1281
|
return this.getAttribute("subgrid-rows");
|
|
1245
1282
|
}
|
|
1246
1283
|
set subgridRows(e) {
|
|
1247
|
-
|
|
1284
|
+
o(this, "subgrid-rows", e);
|
|
1248
1285
|
}
|
|
1249
1286
|
get subgridGap() {
|
|
1250
1287
|
return this.getAttribute("subgrid-gap");
|
|
1251
1288
|
}
|
|
1252
1289
|
set subgridGap(e) {
|
|
1253
|
-
|
|
1290
|
+
o(this, "subgrid-gap", e);
|
|
1254
1291
|
}
|
|
1255
1292
|
get subgridGapMobile() {
|
|
1256
1293
|
return this.getAttribute("subgrid-gap--mobile");
|
|
1257
1294
|
}
|
|
1258
1295
|
set subgridGapMobile(e) {
|
|
1259
|
-
|
|
1296
|
+
o(this, "subgrid-gap--mobile", e);
|
|
1260
1297
|
}
|
|
1261
1298
|
get subgridGapTablet() {
|
|
1262
1299
|
return this.getAttribute("subgrid-gap--tablet");
|
|
1263
1300
|
}
|
|
1264
1301
|
set subgridGapTablet(e) {
|
|
1265
|
-
|
|
1302
|
+
o(this, "subgrid-gap--tablet", e);
|
|
1266
1303
|
}
|
|
1267
1304
|
get subgridGapLaptop() {
|
|
1268
1305
|
return this.getAttribute("subgrid-gap--laptop");
|
|
1269
1306
|
}
|
|
1270
1307
|
set subgridGapLaptop(e) {
|
|
1271
|
-
|
|
1308
|
+
o(this, "subgrid-gap--laptop", e);
|
|
1272
1309
|
}
|
|
1273
1310
|
};
|
|
1274
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1311
|
+
customElements.get("px-container") || customElements.define("px-container", L);
|
|
1275
1312
|
//#endregion
|
|
1276
1313
|
//#region ../Layout/src/Stack.css?inline
|
|
1277
|
-
var
|
|
1278
|
-
|
|
1279
|
-
var
|
|
1280
|
-
|
|
1281
|
-
var
|
|
1314
|
+
var R = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;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{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;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);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--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))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", z = new CSSStyleSheet();
|
|
1315
|
+
z.replaceSync(R);
|
|
1316
|
+
var B = document.createElement("template");
|
|
1317
|
+
B.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
1318
|
+
var V = [
|
|
1282
1319
|
"",
|
|
1283
1320
|
"default",
|
|
1284
1321
|
"row",
|
|
1285
1322
|
"row-reverse",
|
|
1286
1323
|
"column",
|
|
1287
1324
|
"column-reverse"
|
|
1288
|
-
],
|
|
1325
|
+
], H = [
|
|
1289
1326
|
"",
|
|
1290
1327
|
"default",
|
|
1291
1328
|
"stretch",
|
|
@@ -1295,7 +1332,7 @@ var B = [
|
|
|
1295
1332
|
"end",
|
|
1296
1333
|
"center",
|
|
1297
1334
|
"baseline"
|
|
1298
|
-
],
|
|
1335
|
+
], U = [
|
|
1299
1336
|
"",
|
|
1300
1337
|
"default",
|
|
1301
1338
|
"flex-start",
|
|
@@ -1306,21 +1343,21 @@ var B = [
|
|
|
1306
1343
|
"space-between",
|
|
1307
1344
|
"space-around",
|
|
1308
1345
|
"space-evenly"
|
|
1309
|
-
],
|
|
1346
|
+
], W = [
|
|
1310
1347
|
"",
|
|
1311
1348
|
"default",
|
|
1312
1349
|
"nowrap",
|
|
1313
1350
|
"wrap",
|
|
1314
1351
|
"wrap-reverse"
|
|
1315
|
-
],
|
|
1352
|
+
], G = [
|
|
1316
1353
|
"",
|
|
1317
1354
|
"visible",
|
|
1318
1355
|
"hidden",
|
|
1319
1356
|
"scroll",
|
|
1320
1357
|
"auto"
|
|
1321
|
-
],
|
|
1358
|
+
], K = class e extends S {
|
|
1322
1359
|
constructor() {
|
|
1323
|
-
super(
|
|
1360
|
+
super(z), this.overflowXAttributeDelegate = new ie(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(B.content, !0));
|
|
1324
1361
|
}
|
|
1325
1362
|
connectedCallback() {}
|
|
1326
1363
|
static get observedAttributes() {
|
|
@@ -1382,28 +1419,28 @@ var B = [
|
|
|
1382
1419
|
case "justify-content--tablet":
|
|
1383
1420
|
case "justify-content--laptop":
|
|
1384
1421
|
case "justify-content--desktop":
|
|
1385
|
-
this.updateFlexProperties(e, t, n,
|
|
1422
|
+
this.updateFlexProperties(e, t, n, U);
|
|
1386
1423
|
break;
|
|
1387
1424
|
case "align-items":
|
|
1388
1425
|
case "align-items--mobile":
|
|
1389
1426
|
case "align-items--tablet":
|
|
1390
1427
|
case "align-items--laptop":
|
|
1391
1428
|
case "align-items--desktop":
|
|
1392
|
-
this.updateFlexProperties(e, t, n,
|
|
1429
|
+
this.updateFlexProperties(e, t, n, H);
|
|
1393
1430
|
break;
|
|
1394
1431
|
case "wrap":
|
|
1395
1432
|
case "wrap--mobile":
|
|
1396
1433
|
case "wrap--tablet":
|
|
1397
1434
|
case "wrap--laptop":
|
|
1398
1435
|
case "wrap--desktop":
|
|
1399
|
-
this.updateFlexProperties(e, t, n,
|
|
1436
|
+
this.updateFlexProperties(e, t, n, W);
|
|
1400
1437
|
break;
|
|
1401
1438
|
case "direction":
|
|
1402
1439
|
case "direction--mobile":
|
|
1403
1440
|
case "direction--tablet":
|
|
1404
1441
|
case "direction--laptop":
|
|
1405
1442
|
case "direction--desktop":
|
|
1406
|
-
this.updateFlexProperties(e, t, n,
|
|
1443
|
+
this.updateFlexProperties(e, t, n, V), this.updateVerticalStyles();
|
|
1407
1444
|
break;
|
|
1408
1445
|
case "overflow-y":
|
|
1409
1446
|
case "overflow-y--mobile":
|
|
@@ -1415,20 +1452,20 @@ var B = [
|
|
|
1415
1452
|
case "max-height--tablet":
|
|
1416
1453
|
case "max-height--laptop":
|
|
1417
1454
|
case "max-height--desktop":
|
|
1418
|
-
n && !this.isValidVerticalValue(e, n) &&
|
|
1455
|
+
n && !this.isValidVerticalValue(e, n) && i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
1419
1456
|
break;
|
|
1420
1457
|
case "overflow-x":
|
|
1421
1458
|
case "overflow-x--mobile":
|
|
1422
1459
|
case "overflow-x--tablet":
|
|
1423
1460
|
case "overflow-x--laptop":
|
|
1424
1461
|
case "overflow-x--desktop":
|
|
1425
|
-
this.updateOverflowX(e, t, n,
|
|
1462
|
+
this.updateOverflowX(e, t, n, G);
|
|
1426
1463
|
break;
|
|
1427
1464
|
default: super.attributeChangedCallback(e, t, n);
|
|
1428
1465
|
}
|
|
1429
1466
|
}
|
|
1430
1467
|
isValidVerticalValue(e, t) {
|
|
1431
|
-
return e.startsWith("overflow-y") ?
|
|
1468
|
+
return e.startsWith("overflow-y") ? G.includes(t) : CSS.supports("max-height", t);
|
|
1432
1469
|
}
|
|
1433
1470
|
updateVerticalStyles() {
|
|
1434
1471
|
for (let t of e.breakpoints) {
|
|
@@ -1440,19 +1477,19 @@ var B = [
|
|
|
1440
1477
|
}
|
|
1441
1478
|
}
|
|
1442
1479
|
updateOverflowX(e, t, n, r) {
|
|
1443
|
-
if (!
|
|
1444
|
-
|
|
1480
|
+
if (!C(r, n)) {
|
|
1481
|
+
i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
1445
1482
|
return;
|
|
1446
1483
|
}
|
|
1447
1484
|
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
1448
1485
|
}
|
|
1449
|
-
updateFlexProperties(t, n, r,
|
|
1450
|
-
r !== null && !this.checkName(
|
|
1451
|
-
let
|
|
1452
|
-
if (
|
|
1486
|
+
updateFlexProperties(t, n, r, a) {
|
|
1487
|
+
r !== null && !this.checkName(a, r) && i(`"${r}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1488
|
+
let o = t.indexOf("--");
|
|
1489
|
+
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n, r, a);
|
|
1453
1490
|
else {
|
|
1454
|
-
let e = t.slice(0,
|
|
1455
|
-
this.updateStyle(e, n, r || this.getAttribute(e),
|
|
1491
|
+
let e = t.slice(0, o), n = t.slice(o + 2);
|
|
1492
|
+
this.updateStyle(e, n, r || this.getAttribute(e), a);
|
|
1456
1493
|
}
|
|
1457
1494
|
}
|
|
1458
1495
|
updateStyle(e, t, n, r) {
|
|
@@ -1478,274 +1515,274 @@ var B = [
|
|
|
1478
1515
|
return this.getAttribute("direction") ?? "row";
|
|
1479
1516
|
}
|
|
1480
1517
|
set direction(e) {
|
|
1481
|
-
|
|
1518
|
+
o(this, "direction", e);
|
|
1482
1519
|
}
|
|
1483
1520
|
get directionMobile() {
|
|
1484
1521
|
return this.getAttribute("direction--mobile");
|
|
1485
1522
|
}
|
|
1486
1523
|
set directionMobile(e) {
|
|
1487
|
-
|
|
1524
|
+
o(this, "direction--mobile", e);
|
|
1488
1525
|
}
|
|
1489
1526
|
get directionTablet() {
|
|
1490
1527
|
return this.getAttribute("direction--tablet");
|
|
1491
1528
|
}
|
|
1492
1529
|
set directionTablet(e) {
|
|
1493
|
-
|
|
1530
|
+
o(this, "direction--tablet", e);
|
|
1494
1531
|
}
|
|
1495
1532
|
get directionLaptop() {
|
|
1496
1533
|
return this.getAttribute("direction--laptop");
|
|
1497
1534
|
}
|
|
1498
1535
|
set directionLaptop(e) {
|
|
1499
|
-
|
|
1536
|
+
o(this, "direction--laptop", e);
|
|
1500
1537
|
}
|
|
1501
1538
|
get directionDesktop() {
|
|
1502
1539
|
return this.getAttribute("direction--desktop");
|
|
1503
1540
|
}
|
|
1504
1541
|
set directionDesktop(e) {
|
|
1505
|
-
|
|
1542
|
+
o(this, "direction--desktop", e);
|
|
1506
1543
|
}
|
|
1507
1544
|
get gap() {
|
|
1508
1545
|
return this.getAttribute("gap") ?? "none";
|
|
1509
1546
|
}
|
|
1510
1547
|
set gap(e) {
|
|
1511
|
-
|
|
1548
|
+
o(this, "gap", e);
|
|
1512
1549
|
}
|
|
1513
1550
|
get gapMobile() {
|
|
1514
1551
|
return this.getAttribute("gap--mobile");
|
|
1515
1552
|
}
|
|
1516
1553
|
set gapMobile(e) {
|
|
1517
|
-
|
|
1554
|
+
o(this, "gap--mobile", e);
|
|
1518
1555
|
}
|
|
1519
1556
|
get gapTablet() {
|
|
1520
1557
|
return this.getAttribute("gap--tablet");
|
|
1521
1558
|
}
|
|
1522
1559
|
set gapTablet(e) {
|
|
1523
|
-
|
|
1560
|
+
o(this, "gap--tablet", e);
|
|
1524
1561
|
}
|
|
1525
1562
|
get gapLaptop() {
|
|
1526
1563
|
return this.getAttribute("gap--laptop");
|
|
1527
1564
|
}
|
|
1528
1565
|
set gapLaptop(e) {
|
|
1529
|
-
|
|
1566
|
+
o(this, "gap--laptop", e);
|
|
1530
1567
|
}
|
|
1531
1568
|
get gapDesktop() {
|
|
1532
1569
|
return this.getAttribute("gap--desktop");
|
|
1533
1570
|
}
|
|
1534
1571
|
set gapDesktop(e) {
|
|
1535
|
-
|
|
1572
|
+
o(this, "gap--desktop", e);
|
|
1536
1573
|
}
|
|
1537
1574
|
get justifyContent() {
|
|
1538
1575
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
1539
1576
|
}
|
|
1540
1577
|
set justifyContent(e) {
|
|
1541
|
-
|
|
1578
|
+
o(this, "justify-content", e);
|
|
1542
1579
|
}
|
|
1543
1580
|
get justifyContentMobile() {
|
|
1544
1581
|
return this.getAttribute("justify-content--mobile");
|
|
1545
1582
|
}
|
|
1546
1583
|
set justifyContentMobile(e) {
|
|
1547
|
-
|
|
1584
|
+
o(this, "justify-content--mobile", e);
|
|
1548
1585
|
}
|
|
1549
1586
|
get justifyContentTablet() {
|
|
1550
1587
|
return this.getAttribute("justify-content--tablet");
|
|
1551
1588
|
}
|
|
1552
1589
|
set justifyContentTablet(e) {
|
|
1553
|
-
|
|
1590
|
+
o(this, "justify-content--tablet", e);
|
|
1554
1591
|
}
|
|
1555
1592
|
get justifyContentLaptop() {
|
|
1556
1593
|
return this.getAttribute("justify-content--laptop");
|
|
1557
1594
|
}
|
|
1558
1595
|
set justifyContentLaptop(e) {
|
|
1559
|
-
|
|
1596
|
+
o(this, "justify-content--laptop", e);
|
|
1560
1597
|
}
|
|
1561
1598
|
get justifyContentDesktop() {
|
|
1562
1599
|
return this.getAttribute("justify-content--desktop");
|
|
1563
1600
|
}
|
|
1564
1601
|
set justifyContentDesktop(e) {
|
|
1565
|
-
|
|
1602
|
+
o(this, "justify-content--desktop", e);
|
|
1566
1603
|
}
|
|
1567
1604
|
get alignItems() {
|
|
1568
1605
|
return this.getAttribute("align-items") ?? "stretch";
|
|
1569
1606
|
}
|
|
1570
1607
|
set alignItems(e) {
|
|
1571
|
-
|
|
1608
|
+
o(this, "align-items", e);
|
|
1572
1609
|
}
|
|
1573
1610
|
get alignItemsMobile() {
|
|
1574
1611
|
return this.getAttribute("align-items--mobile");
|
|
1575
1612
|
}
|
|
1576
1613
|
set alignItemsMobile(e) {
|
|
1577
|
-
|
|
1614
|
+
o(this, "align-items--mobile", e);
|
|
1578
1615
|
}
|
|
1579
1616
|
get alignItemsTablet() {
|
|
1580
1617
|
return this.getAttribute("align-items--tablet");
|
|
1581
1618
|
}
|
|
1582
1619
|
set alignItemsTablet(e) {
|
|
1583
|
-
|
|
1620
|
+
o(this, "align-items--tablet", e);
|
|
1584
1621
|
}
|
|
1585
1622
|
get alignItemsLaptop() {
|
|
1586
1623
|
return this.getAttribute("align-items--laptop");
|
|
1587
1624
|
}
|
|
1588
1625
|
set alignItemsLaptop(e) {
|
|
1589
|
-
|
|
1626
|
+
o(this, "align-items--laptop", e);
|
|
1590
1627
|
}
|
|
1591
1628
|
get alignItemsDesktop() {
|
|
1592
1629
|
return this.getAttribute("align-items--desktop");
|
|
1593
1630
|
}
|
|
1594
1631
|
set alignItemsDesktop(e) {
|
|
1595
|
-
|
|
1632
|
+
o(this, "align-items--desktop", e);
|
|
1596
1633
|
}
|
|
1597
1634
|
get wrap() {
|
|
1598
1635
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
1599
1636
|
}
|
|
1600
1637
|
set wrap(e) {
|
|
1601
|
-
|
|
1638
|
+
o(this, "wrap", e);
|
|
1602
1639
|
}
|
|
1603
1640
|
get wrapMobile() {
|
|
1604
1641
|
return this.getAttribute("wrap--mobile");
|
|
1605
1642
|
}
|
|
1606
1643
|
set wrapMobile(e) {
|
|
1607
|
-
|
|
1644
|
+
o(this, "wrap--mobile", e);
|
|
1608
1645
|
}
|
|
1609
1646
|
get wrapTablet() {
|
|
1610
1647
|
return this.getAttribute("wrap--tablet");
|
|
1611
1648
|
}
|
|
1612
1649
|
set wrapTablet(e) {
|
|
1613
|
-
|
|
1650
|
+
o(this, "wrap--tablet", e);
|
|
1614
1651
|
}
|
|
1615
1652
|
get wrapLaptop() {
|
|
1616
1653
|
return this.getAttribute("wrap--laptop");
|
|
1617
1654
|
}
|
|
1618
1655
|
set wrapLaptop(e) {
|
|
1619
|
-
|
|
1656
|
+
o(this, "wrap--laptop", e);
|
|
1620
1657
|
}
|
|
1621
1658
|
get wrapDesktop() {
|
|
1622
1659
|
return this.getAttribute("wrap--desktop");
|
|
1623
1660
|
}
|
|
1624
1661
|
set wrapDesktop(e) {
|
|
1625
|
-
|
|
1662
|
+
o(this, "wrap--desktop", e);
|
|
1626
1663
|
}
|
|
1627
1664
|
get overflowX() {
|
|
1628
1665
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
1629
1666
|
}
|
|
1630
1667
|
set overflowX(e) {
|
|
1631
|
-
|
|
1668
|
+
o(this, "overflow-x", e);
|
|
1632
1669
|
}
|
|
1633
1670
|
get overflowXMobile() {
|
|
1634
1671
|
return this.getAttribute("overflow-x--mobile");
|
|
1635
1672
|
}
|
|
1636
1673
|
set overflowXMobile(e) {
|
|
1637
|
-
|
|
1674
|
+
o(this, "overflow-x--mobile", e);
|
|
1638
1675
|
}
|
|
1639
1676
|
get overflowXTablet() {
|
|
1640
1677
|
return this.getAttribute("overflow-x--tablet");
|
|
1641
1678
|
}
|
|
1642
1679
|
set overflowXTablet(e) {
|
|
1643
|
-
|
|
1680
|
+
o(this, "overflow-x--tablet", e);
|
|
1644
1681
|
}
|
|
1645
1682
|
get overflowXLaptop() {
|
|
1646
1683
|
return this.getAttribute("overflow-x--laptop");
|
|
1647
1684
|
}
|
|
1648
1685
|
set overflowXLaptop(e) {
|
|
1649
|
-
|
|
1686
|
+
o(this, "overflow-x--laptop", e);
|
|
1650
1687
|
}
|
|
1651
1688
|
get overflowXDesktop() {
|
|
1652
1689
|
return this.getAttribute("overflow-x--desktop");
|
|
1653
1690
|
}
|
|
1654
1691
|
set overflowXDesktop(e) {
|
|
1655
|
-
|
|
1692
|
+
o(this, "overflow-x--desktop", e);
|
|
1656
1693
|
}
|
|
1657
1694
|
get overflowY() {
|
|
1658
1695
|
return this.getAttribute("overflow-y") ?? "visible";
|
|
1659
1696
|
}
|
|
1660
1697
|
set overflowY(e) {
|
|
1661
|
-
|
|
1698
|
+
o(this, "overflow-y", e);
|
|
1662
1699
|
}
|
|
1663
1700
|
get overflowYMobile() {
|
|
1664
1701
|
return this.getAttribute("overflow-y--mobile");
|
|
1665
1702
|
}
|
|
1666
1703
|
set overflowYMobile(e) {
|
|
1667
|
-
|
|
1704
|
+
o(this, "overflow-y--mobile", e);
|
|
1668
1705
|
}
|
|
1669
1706
|
get overflowYTablet() {
|
|
1670
1707
|
return this.getAttribute("overflow-y--tablet");
|
|
1671
1708
|
}
|
|
1672
1709
|
set overflowYTablet(e) {
|
|
1673
|
-
|
|
1710
|
+
o(this, "overflow-y--tablet", e);
|
|
1674
1711
|
}
|
|
1675
1712
|
get overflowYLaptop() {
|
|
1676
1713
|
return this.getAttribute("overflow-y--laptop");
|
|
1677
1714
|
}
|
|
1678
1715
|
set overflowYLaptop(e) {
|
|
1679
|
-
|
|
1716
|
+
o(this, "overflow-y--laptop", e);
|
|
1680
1717
|
}
|
|
1681
1718
|
get overflowYDesktop() {
|
|
1682
1719
|
return this.getAttribute("overflow-y--desktop");
|
|
1683
1720
|
}
|
|
1684
1721
|
set overflowYDesktop(e) {
|
|
1685
|
-
|
|
1722
|
+
o(this, "overflow-y--desktop", e);
|
|
1686
1723
|
}
|
|
1687
1724
|
get maxHeight() {
|
|
1688
1725
|
return this.getAttribute("max-height") ?? "none";
|
|
1689
1726
|
}
|
|
1690
1727
|
set maxHeight(e) {
|
|
1691
|
-
|
|
1728
|
+
o(this, "max-height", e);
|
|
1692
1729
|
}
|
|
1693
1730
|
get maxHeightMobile() {
|
|
1694
1731
|
return this.getAttribute("max-height--mobile");
|
|
1695
1732
|
}
|
|
1696
1733
|
set maxHeightMobile(e) {
|
|
1697
|
-
|
|
1734
|
+
o(this, "max-height--mobile", e);
|
|
1698
1735
|
}
|
|
1699
1736
|
get maxHeightTablet() {
|
|
1700
1737
|
return this.getAttribute("max-height--tablet");
|
|
1701
1738
|
}
|
|
1702
1739
|
set maxHeightTablet(e) {
|
|
1703
|
-
|
|
1740
|
+
o(this, "max-height--tablet", e);
|
|
1704
1741
|
}
|
|
1705
1742
|
get maxHeightLaptop() {
|
|
1706
1743
|
return this.getAttribute("max-height--laptop");
|
|
1707
1744
|
}
|
|
1708
1745
|
set maxHeightLaptop(e) {
|
|
1709
|
-
|
|
1746
|
+
o(this, "max-height--laptop", e);
|
|
1710
1747
|
}
|
|
1711
1748
|
get maxHeightDesktop() {
|
|
1712
1749
|
return this.getAttribute("max-height--desktop");
|
|
1713
1750
|
}
|
|
1714
1751
|
set maxHeightDesktop(e) {
|
|
1715
|
-
|
|
1752
|
+
o(this, "max-height--desktop", e);
|
|
1716
1753
|
}
|
|
1717
1754
|
get $el() {
|
|
1718
1755
|
return this.shadowRoot.firstElementChild;
|
|
1719
1756
|
}
|
|
1720
1757
|
};
|
|
1721
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1722
|
-
var
|
|
1758
|
+
customElements.get("px-stack") || customElements.define("px-stack", K);
|
|
1759
|
+
var q = (e) => e === "direction" || e.startsWith("direction--"), se = class extends K {
|
|
1723
1760
|
get direction() {
|
|
1724
1761
|
return "column";
|
|
1725
1762
|
}
|
|
1726
1763
|
set direction(e) {
|
|
1727
|
-
|
|
1764
|
+
o(this, "direction", e);
|
|
1728
1765
|
}
|
|
1729
1766
|
attributeChangedCallback(e, t, n) {
|
|
1730
|
-
|
|
1767
|
+
q(e) || super.attributeChangedCallback(e, t, n);
|
|
1731
1768
|
}
|
|
1732
1769
|
};
|
|
1733
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
1734
|
-
var
|
|
1770
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", se);
|
|
1771
|
+
var ce = class extends K {
|
|
1735
1772
|
get direction() {
|
|
1736
1773
|
return "row";
|
|
1737
1774
|
}
|
|
1738
1775
|
set direction(e) {
|
|
1739
|
-
|
|
1776
|
+
o(this, "direction", e);
|
|
1740
1777
|
}
|
|
1741
1778
|
attributeChangedCallback(e, t, n) {
|
|
1742
|
-
|
|
1779
|
+
q(e) || super.attributeChangedCallback(e, t, n);
|
|
1743
1780
|
}
|
|
1744
1781
|
};
|
|
1745
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
1782
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ce);
|
|
1746
1783
|
//#endregion
|
|
1747
1784
|
//#region ../Layout/src/Spacer.ts
|
|
1748
|
-
var
|
|
1785
|
+
var le = class extends HTMLElement {
|
|
1749
1786
|
constructor() {
|
|
1750
1787
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1751
1788
|
}
|
|
@@ -1791,14 +1828,14 @@ var ue = class extends HTMLElement {
|
|
|
1791
1828
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1792
1829
|
}
|
|
1793
1830
|
};
|
|
1794
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1831
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", le);
|
|
1795
1832
|
//#endregion
|
|
1796
1833
|
//#region ../Layout/src/Page.css?inline
|
|
1797
|
-
var
|
|
1798
|
-
|
|
1799
|
-
var
|
|
1834
|
+
var ue = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", J = new CSSStyleSheet();
|
|
1835
|
+
J.replaceSync(ue);
|
|
1836
|
+
var de = class extends S {
|
|
1800
1837
|
constructor() {
|
|
1801
|
-
super(
|
|
1838
|
+
super(J), this.template = () => `
|
|
1802
1839
|
<px-container border-radius="none" padding="none">
|
|
1803
1840
|
<px-vstack>
|
|
1804
1841
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1891,7 +1928,7 @@ var fe = class extends l {
|
|
|
1891
1928
|
</px-container>
|
|
1892
1929
|
</px-vstack>
|
|
1893
1930
|
</px-container>
|
|
1894
|
-
`,
|
|
1931
|
+
`, A(this.shadowRoot, this.template());
|
|
1895
1932
|
}
|
|
1896
1933
|
static get observedAttributes() {
|
|
1897
1934
|
return [
|
|
@@ -1960,7 +1997,7 @@ var fe = class extends l {
|
|
|
1960
1997
|
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
1961
1998
|
break;
|
|
1962
1999
|
case "background-color":
|
|
1963
|
-
this.$bodyContainer.setAttribute("background-color",
|
|
2000
|
+
this.$bodyContainer.setAttribute("background-color", _.indexOf(n) > 0 ? n : "none");
|
|
1964
2001
|
break;
|
|
1965
2002
|
case "padding-vertical":
|
|
1966
2003
|
this.handlePaddingVerticalChange(n);
|
|
@@ -1978,10 +2015,10 @@ var fe = class extends l {
|
|
|
1978
2015
|
this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
|
|
1979
2016
|
}
|
|
1980
2017
|
};
|
|
1981
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
2018
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", de);
|
|
1982
2019
|
//#endregion
|
|
1983
2020
|
//#region ../Icon/common/src/IconSet.ts
|
|
1984
|
-
var
|
|
2021
|
+
var fe = class extends HTMLElement {
|
|
1985
2022
|
constructor() {
|
|
1986
2023
|
super();
|
|
1987
2024
|
}
|
|
@@ -2015,8 +2052,8 @@ var pe = class extends HTMLElement {
|
|
|
2015
2052
|
e && e.remove();
|
|
2016
2053
|
}
|
|
2017
2054
|
};
|
|
2018
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
2019
|
-
var
|
|
2055
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", fe);
|
|
2056
|
+
var pe = [
|
|
2020
2057
|
"Inherit",
|
|
2021
2058
|
"Brand",
|
|
2022
2059
|
"Accent",
|
|
@@ -2030,11 +2067,11 @@ var me = [
|
|
|
2030
2067
|
"StateHover",
|
|
2031
2068
|
"StateActive",
|
|
2032
2069
|
"StateDisabled"
|
|
2033
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
2034
|
-
|
|
2035
|
-
var
|
|
2070
|
+
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)), me = ":host{flex-direction:column;justify-content:center;display:inline-flex}svg{font-size:var(--px-size-icon-s);width:1em;height:1em;color:var(--px-color-icon-accent-default);line-height:1}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", Y = new CSSStyleSheet();
|
|
2071
|
+
Y.replaceSync(me);
|
|
2072
|
+
var he = class e extends S {
|
|
2036
2073
|
static {
|
|
2037
|
-
this.template =
|
|
2074
|
+
this.template = k("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
2038
2075
|
}
|
|
2039
2076
|
#e = null;
|
|
2040
2077
|
#t;
|
|
@@ -2051,7 +2088,7 @@ var Y = class e extends l {
|
|
|
2051
2088
|
];
|
|
2052
2089
|
}
|
|
2053
2090
|
constructor(...t) {
|
|
2054
|
-
super(...t,
|
|
2091
|
+
super(...t, Y), A(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
2055
2092
|
}
|
|
2056
2093
|
attributeChangedCallback(e, t, n) {
|
|
2057
2094
|
if (t !== n) switch (e) {
|
|
@@ -2059,10 +2096,10 @@ var Y = class e extends l {
|
|
|
2059
2096
|
this.updateName(t, n);
|
|
2060
2097
|
break;
|
|
2061
2098
|
case "size":
|
|
2062
|
-
this.updateAttribute(e, t, n,
|
|
2099
|
+
this.updateAttribute(e, t, n, p);
|
|
2063
2100
|
break;
|
|
2064
2101
|
case "color":
|
|
2065
|
-
this.updateAttribute(e, t, n,
|
|
2102
|
+
this.updateAttribute(e, t, n, pe);
|
|
2066
2103
|
break;
|
|
2067
2104
|
case "disabled":
|
|
2068
2105
|
this.color = "state-disabled";
|
|
@@ -2086,7 +2123,7 @@ var Y = class e extends l {
|
|
|
2086
2123
|
!this.ariaLabel && this.#t && (this.#t.ariaHidden = "true", this.ariaHidden = "true"), this.parentElement?.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
|
|
2087
2124
|
}
|
|
2088
2125
|
updateAttribute(e, t, n, r) {
|
|
2089
|
-
t !== null && t !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${t}`) : this.$el.classList.toggle(t)), n !== null && n !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${n}`) : this.$el.classList.toggle(n)), this.checkName(r, n) ||
|
|
2126
|
+
t !== null && t !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${t}`) : this.$el.classList.toggle(t)), n !== null && n !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${n}`) : this.$el.classList.toggle(n)), this.checkName(r, n) || i(`${n} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`);
|
|
2090
2127
|
}
|
|
2091
2128
|
updateName(e, t) {
|
|
2092
2129
|
this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
|
|
@@ -2098,46 +2135,46 @@ var Y = class e extends l {
|
|
|
2098
2135
|
return this.getAttribute("name");
|
|
2099
2136
|
}
|
|
2100
2137
|
set name(e) {
|
|
2101
|
-
|
|
2138
|
+
o(this, "name", e);
|
|
2102
2139
|
}
|
|
2103
2140
|
get size() {
|
|
2104
2141
|
return this.getAttribute("size");
|
|
2105
2142
|
}
|
|
2106
2143
|
set size(e) {
|
|
2107
|
-
|
|
2144
|
+
o(this, "size", e);
|
|
2108
2145
|
}
|
|
2109
2146
|
get color() {
|
|
2110
2147
|
return this.getAttribute("color");
|
|
2111
2148
|
}
|
|
2112
2149
|
set color(e) {
|
|
2113
|
-
|
|
2150
|
+
o(this, "color", e);
|
|
2114
2151
|
}
|
|
2115
2152
|
get arialabel() {
|
|
2116
2153
|
return this.getAttribute("aria-label");
|
|
2117
2154
|
}
|
|
2118
2155
|
set arialabel(e) {
|
|
2119
|
-
|
|
2156
|
+
o(this, "aria-label", e);
|
|
2120
2157
|
}
|
|
2121
2158
|
get inverted() {
|
|
2122
2159
|
return this.hasAttribute("inverted");
|
|
2123
2160
|
}
|
|
2124
2161
|
set inverted(e) {
|
|
2125
|
-
|
|
2162
|
+
s(this, "inverted", e);
|
|
2126
2163
|
}
|
|
2127
2164
|
get from() {
|
|
2128
2165
|
return this.getAttribute("from");
|
|
2129
2166
|
}
|
|
2130
2167
|
set from(e) {
|
|
2131
|
-
|
|
2168
|
+
o(this, "from", e);
|
|
2132
2169
|
}
|
|
2133
2170
|
get disabled() {
|
|
2134
2171
|
return this.hasAttribute("disabled");
|
|
2135
2172
|
}
|
|
2136
2173
|
set disabled(e) {
|
|
2137
|
-
|
|
2174
|
+
s(this, "disabled", e);
|
|
2138
2175
|
}
|
|
2139
2176
|
};
|
|
2140
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
2177
|
+
customElements.get("px-icon") || customElements.define("px-icon", he);
|
|
2141
2178
|
//#endregion
|
|
2142
2179
|
//#region src/toaster.css?inline
|
|
2143
2180
|
var ge = ":host{display:block}:host *{box-sizing:border-box}dialog{box-shadow:none;margin:auto var(--px-spacing-s-mobile) var(--px-spacing-s-mobile) var(--px-spacing-s-mobile);box-sizing:border-box;max-width:30rem;width:calc(100% - var(--px-spacing-s-mobile) * 2);outline-color:var(--px-color-border-focus-outline-default);outline-width:var(--px-focus-outline-mobile);background:0 0;border:0;border-radius:0;padding:0;animation:.3s ease-out forwards modalIn}dialog:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline-style:solid}dialog[open]{justify-content:center;display:flex}::slotted([slot=label]){font-size:var(--px-text-size-label-l-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-inverted);margin-top:3px}.toaster-message{flex-grow:1}slot[name=footer]{align-items:center;gap:var(--px-spacing-xs-mobile);display:flex}@media screen and (width>=32rem){dialog{margin:auto auto var(--px-spacing-s-mobile) auto;width:480px}}@media screen and (width>=48rem){dialog{margin:auto auto var(--px-spacing-s-tablet) auto}::slotted([slot=label]){font-size:var(--px-text-size-label-l-tablet);margin-top:0}slot[name=footer]{gap:var(--px-spacing-s-tablet)}}@media screen and (width>=64.0625rem){dialog{margin:auto auto var(--px-spacing-s-laptop) auto}::slotted([slot=label]){font-size:var(--px-text-size-label-l-laptop)}slot[name=footer]{gap:var(--px-spacing-s-laptop)}}@media screen and (width>=90.0625rem){dialog{margin:auto auto var(--px-spacing-s-desktop) auto}::slotted([slot=label]){font-size:var(--px-text-size-label-l-desktop)}slot[name=footer]{gap:var(--px-spacing-s-desktop)}}:host([inverted]) dialog{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) ::slotted([slot=label]){color:var(--px-color-text-neutral-default)}", X = new CSSStyleSheet();
|
|
@@ -2150,7 +2187,7 @@ var Z = [
|
|
|
2150
2187
|
"warning"
|
|
2151
2188
|
], _e = "px.lavender.toaster.hide", Q = 0, $ = class e extends HTMLElement {
|
|
2152
2189
|
static {
|
|
2153
|
-
this.template =
|
|
2190
|
+
this.template = k("<dialog popover=\"manual\"><px-container padding=\"s\" background-color=\"surface-dark\"><px-vstack gap=\"s\" ><px-hstack gap=\"s\" align-items=\"flex-start\" class=\"toaster-content\"><slot name=\"visual\"></slot><div class=\"toaster-message\" role=\"status\" aria-atomic=\"true\"><slot name=\"label\"></slot></div><slot name=\"action\"></slot></px-hstack><slot name=\"footer\"></slot></px-vstack></px-container></dialog>");
|
|
2154
2191
|
}
|
|
2155
2192
|
constructor() {
|
|
2156
2193
|
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show(), this.autoHideTimeoutId = null, this.timeoutStartedAt = null, this.remainingDuration = null, this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.onPointerEnter = () => {
|
|
@@ -2164,7 +2201,7 @@ var Z = [
|
|
|
2164
2201
|
this.isFocused = !!t && t !== this.$dialog && (this.contains(t) || this.$dialog?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2165
2202
|
};
|
|
2166
2203
|
let t = this.attachShadow({ mode: "open" });
|
|
2167
|
-
t && (
|
|
2204
|
+
t && (A(t, e.template), t.adoptedStyleSheets = [X]);
|
|
2168
2205
|
}
|
|
2169
2206
|
connectedCallback() {
|
|
2170
2207
|
this.addEventListenersToHideButtons(), this.$dialog?.addEventListener("pointerenter", this.onPointerEnter), this.$dialog?.addEventListener("pointerleave", this.onPointerLeave), this.$dialog?.addEventListener("focusin", this.onFocusIn), this.$dialog?.addEventListener("focusout", this.onFocusOut), this.hasAttribute("open") && this.show();
|
|
@@ -2242,8 +2279,8 @@ var Z = [
|
|
|
2242
2279
|
this.popoverButtonsCleanups.forEach((e) => e()), this.popoverButtonsCleanups = [];
|
|
2243
2280
|
}
|
|
2244
2281
|
handleStatusChange(e, t) {
|
|
2245
|
-
if (!
|
|
2246
|
-
|
|
2282
|
+
if (!C(t, e)) {
|
|
2283
|
+
i(`"${e}" is not a valid background-color value for ${this.tagName.toLowerCase()}.
|
|
2247
2284
|
Allowed values are: "${t.join("\", \"")}".`);
|
|
2248
2285
|
return;
|
|
2249
2286
|
}
|
|
@@ -2273,13 +2310,13 @@ var Z = [
|
|
|
2273
2310
|
return this.getAttribute("status") || "";
|
|
2274
2311
|
}
|
|
2275
2312
|
set status(e) {
|
|
2276
|
-
|
|
2313
|
+
o(this, "status", e);
|
|
2277
2314
|
}
|
|
2278
2315
|
get open() {
|
|
2279
2316
|
return this.hasAttribute("open");
|
|
2280
2317
|
}
|
|
2281
2318
|
set open(e) {
|
|
2282
|
-
|
|
2319
|
+
s(this, "open", e);
|
|
2283
2320
|
}
|
|
2284
2321
|
get duration() {
|
|
2285
2322
|
if (!this.hasAttribute("duration")) return Q;
|
|
@@ -2287,13 +2324,13 @@ var Z = [
|
|
|
2287
2324
|
return Number.isNaN(e) ? Q : e;
|
|
2288
2325
|
}
|
|
2289
2326
|
set duration(e) {
|
|
2290
|
-
|
|
2327
|
+
o(this, "duration", e);
|
|
2291
2328
|
}
|
|
2292
2329
|
get inverted() {
|
|
2293
2330
|
return this.hasAttribute("inverted");
|
|
2294
2331
|
}
|
|
2295
2332
|
set inverted(e) {
|
|
2296
|
-
|
|
2333
|
+
s(this, "inverted", e);
|
|
2297
2334
|
}
|
|
2298
2335
|
};
|
|
2299
2336
|
customElements.get("px-toaster") || customElements.define("px-toaster", $);
|