@proximus/lavender-toaster 2.0.0-alpha.227 → 2.0.0-alpha.229
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 +565 -434
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,176 @@
|
|
|
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);
|
|
29
16
|
}
|
|
30
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
31
|
-
|
|
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
|
+
n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
|
|
25
|
+
}
|
|
26
|
+
function s(e, t, n) {
|
|
27
|
+
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../common/src/values.ts
|
|
31
|
+
var c = [
|
|
32
|
+
"",
|
|
33
|
+
"default",
|
|
34
|
+
"auto",
|
|
35
|
+
"flex-start",
|
|
36
|
+
"start",
|
|
37
|
+
"flex-end",
|
|
38
|
+
"end",
|
|
39
|
+
"center",
|
|
40
|
+
"baseline",
|
|
41
|
+
"stretch"
|
|
42
|
+
], l = [
|
|
43
|
+
"",
|
|
44
|
+
"default",
|
|
45
|
+
"start",
|
|
46
|
+
"end",
|
|
47
|
+
"center",
|
|
48
|
+
"stretch"
|
|
49
|
+
], u = [
|
|
50
|
+
"",
|
|
51
|
+
"default",
|
|
52
|
+
"start",
|
|
53
|
+
"end",
|
|
54
|
+
"center",
|
|
55
|
+
"stretch"
|
|
56
|
+
], d = [
|
|
57
|
+
"",
|
|
58
|
+
"1",
|
|
59
|
+
"2",
|
|
60
|
+
"3",
|
|
61
|
+
"4",
|
|
62
|
+
"5",
|
|
63
|
+
"6",
|
|
64
|
+
"7",
|
|
65
|
+
"8",
|
|
66
|
+
"9",
|
|
67
|
+
"10",
|
|
68
|
+
"11",
|
|
69
|
+
"12"
|
|
70
|
+
], f = [
|
|
71
|
+
"",
|
|
72
|
+
"-1",
|
|
73
|
+
"0",
|
|
74
|
+
"1",
|
|
75
|
+
"2",
|
|
76
|
+
"3",
|
|
77
|
+
"4",
|
|
78
|
+
"5",
|
|
79
|
+
"6",
|
|
80
|
+
"7",
|
|
81
|
+
"8",
|
|
82
|
+
"9",
|
|
83
|
+
"10",
|
|
84
|
+
"11",
|
|
85
|
+
"12"
|
|
86
|
+
], p = [
|
|
87
|
+
"",
|
|
88
|
+
"default",
|
|
89
|
+
...[
|
|
90
|
+
"Xs",
|
|
91
|
+
"S",
|
|
92
|
+
"M",
|
|
93
|
+
"L",
|
|
94
|
+
"Xl"
|
|
95
|
+
].map((e) => e.toLowerCase())
|
|
96
|
+
], m = [
|
|
97
|
+
"",
|
|
98
|
+
"none",
|
|
99
|
+
"3xs",
|
|
100
|
+
"2xs",
|
|
101
|
+
"xs",
|
|
102
|
+
"s",
|
|
103
|
+
"m",
|
|
104
|
+
"l",
|
|
105
|
+
"xl"
|
|
106
|
+
], ee = [
|
|
107
|
+
"",
|
|
108
|
+
"none",
|
|
109
|
+
"s",
|
|
110
|
+
"m",
|
|
111
|
+
"l"
|
|
112
|
+
], te = [
|
|
113
|
+
"",
|
|
114
|
+
"none",
|
|
115
|
+
"main",
|
|
116
|
+
"pill"
|
|
117
|
+
], h = [
|
|
118
|
+
"none",
|
|
119
|
+
"main",
|
|
120
|
+
"brand",
|
|
121
|
+
"state-hover",
|
|
122
|
+
"state-active",
|
|
123
|
+
"neutral",
|
|
124
|
+
"purpose-success",
|
|
125
|
+
"purpose-warning",
|
|
126
|
+
"purpose-error",
|
|
127
|
+
"purpose-unlimited"
|
|
128
|
+
], g = [
|
|
129
|
+
"",
|
|
130
|
+
"all",
|
|
131
|
+
"top",
|
|
132
|
+
"right",
|
|
133
|
+
"bottom",
|
|
134
|
+
"left",
|
|
135
|
+
"block",
|
|
136
|
+
"inline"
|
|
137
|
+
], _ = /* @__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 = [
|
|
138
|
+
"",
|
|
139
|
+
"cover",
|
|
140
|
+
"contain",
|
|
141
|
+
"default"
|
|
142
|
+
], ne = [
|
|
143
|
+
"",
|
|
144
|
+
"none",
|
|
145
|
+
"s",
|
|
146
|
+
"m",
|
|
147
|
+
"l",
|
|
148
|
+
"xl"
|
|
149
|
+
], 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 = [
|
|
150
|
+
"none",
|
|
151
|
+
"2xs",
|
|
152
|
+
"xs",
|
|
153
|
+
"s",
|
|
154
|
+
"default",
|
|
155
|
+
"l",
|
|
156
|
+
"heading-to-subtitle",
|
|
157
|
+
"heading-to-content",
|
|
158
|
+
"page-layout-between-sections"
|
|
159
|
+
], re = [
|
|
160
|
+
"",
|
|
161
|
+
"all",
|
|
162
|
+
"top",
|
|
163
|
+
"right",
|
|
164
|
+
"bottom",
|
|
165
|
+
"left"
|
|
166
|
+
], x = new CSSStyleSheet();
|
|
167
|
+
x.replaceSync(a);
|
|
168
|
+
var S = class e extends HTMLElement {
|
|
32
169
|
static get observedAttributes() {
|
|
33
170
|
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
171
|
}
|
|
35
172
|
constructor(...e) {
|
|
36
|
-
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
173
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [x, ...e];
|
|
37
174
|
}
|
|
38
175
|
attributeChangedCallback(t, n, r) {
|
|
39
176
|
if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
|
|
@@ -59,7 +196,7 @@ var l = class e extends HTMLElement {
|
|
|
59
196
|
case "align-self--tablet":
|
|
60
197
|
case "align-self--laptop":
|
|
61
198
|
case "align-self--desktop":
|
|
62
|
-
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ?
|
|
199
|
+
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? l : c);
|
|
63
200
|
break;
|
|
64
201
|
case "justify-self":
|
|
65
202
|
case "justify-self--mobile":
|
|
@@ -83,12 +220,12 @@ var l = class e extends HTMLElement {
|
|
|
83
220
|
}
|
|
84
221
|
}
|
|
85
222
|
updateProperties(e, t, n, r) {
|
|
86
|
-
r && (this.checkName(r, n) ||
|
|
87
|
-
let
|
|
88
|
-
if (!
|
|
223
|
+
r && (this.checkName(r, n) || i(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`));
|
|
224
|
+
let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
|
|
225
|
+
if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
|
|
89
226
|
else {
|
|
90
227
|
let r = e.split("--")[1];
|
|
91
|
-
this.style.setProperty(`--${
|
|
228
|
+
this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
|
|
92
229
|
}
|
|
93
230
|
}
|
|
94
231
|
updateStyle(e, t, n) {
|
|
@@ -116,425 +253,325 @@ var l = class e extends HTMLElement {
|
|
|
116
253
|
return this.getAttribute("grow");
|
|
117
254
|
}
|
|
118
255
|
set grow(e) {
|
|
119
|
-
|
|
256
|
+
o(this, "grow", e);
|
|
120
257
|
}
|
|
121
258
|
get growMobile() {
|
|
122
259
|
return this.getAttribute("grow--mobile");
|
|
123
260
|
}
|
|
124
261
|
set growMobile(e) {
|
|
125
|
-
|
|
262
|
+
o(this, "grow--mobile", e);
|
|
126
263
|
}
|
|
127
264
|
get growTablet() {
|
|
128
265
|
return this.getAttribute("grow--tablet");
|
|
129
266
|
}
|
|
130
267
|
set growTablet(e) {
|
|
131
|
-
|
|
268
|
+
o(this, "grow--tablet", e);
|
|
132
269
|
}
|
|
133
270
|
get growLaptop() {
|
|
134
271
|
return this.getAttribute("grow--laptop");
|
|
135
272
|
}
|
|
136
273
|
set growLaptop(e) {
|
|
137
|
-
|
|
274
|
+
o(this, "grow--laptop", e);
|
|
138
275
|
}
|
|
139
276
|
get growDesktop() {
|
|
140
277
|
return this.getAttribute("grow--desktop");
|
|
141
278
|
}
|
|
142
279
|
set growDesktop(e) {
|
|
143
|
-
|
|
280
|
+
o(this, "grow--desktop", e);
|
|
144
281
|
}
|
|
145
282
|
get shrink() {
|
|
146
283
|
return this.getAttribute("shrink");
|
|
147
284
|
}
|
|
148
285
|
set shrink(e) {
|
|
149
|
-
|
|
286
|
+
o(this, "shrink", e);
|
|
150
287
|
}
|
|
151
288
|
get shrinkMobile() {
|
|
152
289
|
return this.getAttribute("shrink--mobile");
|
|
153
290
|
}
|
|
154
291
|
set shrinkMobile(e) {
|
|
155
|
-
|
|
292
|
+
o(this, "shrink--mobile", e);
|
|
156
293
|
}
|
|
157
294
|
get shrinkTablet() {
|
|
158
295
|
return this.getAttribute("shrink--tablet");
|
|
159
296
|
}
|
|
160
297
|
set shrinkTablet(e) {
|
|
161
|
-
|
|
298
|
+
o(this, "shrink--tablet", e);
|
|
162
299
|
}
|
|
163
300
|
get shrinkLaptop() {
|
|
164
301
|
return this.getAttribute("shrink--laptop");
|
|
165
302
|
}
|
|
166
303
|
set shrinkLaptop(e) {
|
|
167
|
-
|
|
304
|
+
o(this, "shrink--laptop", e);
|
|
168
305
|
}
|
|
169
306
|
get shrinkDesktop() {
|
|
170
307
|
return this.getAttribute("shrink--desktop");
|
|
171
308
|
}
|
|
172
309
|
set shrinkDesktop(e) {
|
|
173
|
-
|
|
310
|
+
o(this, "shrink--desktop", e);
|
|
174
311
|
}
|
|
175
312
|
get basis() {
|
|
176
313
|
return this.getAttribute("basis");
|
|
177
314
|
}
|
|
178
315
|
set basis(e) {
|
|
179
|
-
|
|
316
|
+
o(this, "basis", e);
|
|
180
317
|
}
|
|
181
318
|
get basisMobile() {
|
|
182
319
|
return this.getAttribute("basis--mobile");
|
|
183
320
|
}
|
|
184
321
|
set basisMobile(e) {
|
|
185
|
-
|
|
322
|
+
o(this, "basis--mobile", e);
|
|
186
323
|
}
|
|
187
324
|
get basisTablet() {
|
|
188
325
|
return this.getAttribute("basis--tablet");
|
|
189
326
|
}
|
|
190
327
|
set basisTablet(e) {
|
|
191
|
-
|
|
328
|
+
o(this, "basis--tablet", e);
|
|
192
329
|
}
|
|
193
330
|
get basisLaptop() {
|
|
194
331
|
return this.getAttribute("basis--laptop");
|
|
195
332
|
}
|
|
196
333
|
set basisLaptop(e) {
|
|
197
|
-
|
|
334
|
+
o(this, "basis--laptop", e);
|
|
198
335
|
}
|
|
199
336
|
get basisDesktop() {
|
|
200
337
|
return this.getAttribute("basis--desktop");
|
|
201
338
|
}
|
|
202
339
|
set basisDesktop(e) {
|
|
203
|
-
|
|
340
|
+
o(this, "basis--desktop", e);
|
|
204
341
|
}
|
|
205
342
|
get alignSelf() {
|
|
206
343
|
return this.getAttribute("align-self");
|
|
207
344
|
}
|
|
208
345
|
set alignSelf(e) {
|
|
209
|
-
|
|
346
|
+
o(this, "align-self", e);
|
|
210
347
|
}
|
|
211
348
|
get alignSelfMobile() {
|
|
212
349
|
return this.getAttribute("align-self--mobile");
|
|
213
350
|
}
|
|
214
351
|
set alignSelfMobile(e) {
|
|
215
|
-
|
|
352
|
+
o(this, "align-self--mobile", e);
|
|
216
353
|
}
|
|
217
354
|
get alignSelfTablet() {
|
|
218
355
|
return this.getAttribute("align-self--tablet");
|
|
219
356
|
}
|
|
220
357
|
set alignSelfTablet(e) {
|
|
221
|
-
|
|
358
|
+
o(this, "align-self--tablet", e);
|
|
222
359
|
}
|
|
223
360
|
get alignSelfLaptop() {
|
|
224
361
|
return this.getAttribute("align-self--laptop");
|
|
225
362
|
}
|
|
226
363
|
set alignSelfLaptop(e) {
|
|
227
|
-
|
|
364
|
+
o(this, "align-self--laptop", e);
|
|
228
365
|
}
|
|
229
366
|
get alignSelfDesktop() {
|
|
230
367
|
return this.getAttribute("align-self--desktop");
|
|
231
368
|
}
|
|
232
369
|
set alignSelfDesktop(e) {
|
|
233
|
-
|
|
370
|
+
o(this, "align-self--desktop", e);
|
|
234
371
|
}
|
|
235
372
|
get justifySelf() {
|
|
236
373
|
return this.getAttribute("justify-self");
|
|
237
374
|
}
|
|
238
375
|
set justifySelf(e) {
|
|
239
|
-
|
|
376
|
+
o(this, "justify-self", e);
|
|
240
377
|
}
|
|
241
378
|
get justifySelfMobile() {
|
|
242
379
|
return this.getAttribute("justify-self--mobile");
|
|
243
380
|
}
|
|
244
381
|
set justifySelfMobile(e) {
|
|
245
|
-
|
|
382
|
+
o(this, "justify-self--mobile", e);
|
|
246
383
|
}
|
|
247
384
|
get justifySelfTablet() {
|
|
248
385
|
return this.getAttribute("justify-self--tablet");
|
|
249
386
|
}
|
|
250
387
|
set justifySelfTablet(e) {
|
|
251
|
-
|
|
388
|
+
o(this, "justify-self--tablet", e);
|
|
252
389
|
}
|
|
253
390
|
get justifySelfLaptop() {
|
|
254
391
|
return this.getAttribute("justify-self--laptop");
|
|
255
392
|
}
|
|
256
393
|
set justifySelfLaptop(e) {
|
|
257
|
-
|
|
394
|
+
o(this, "justify-self--laptop", e);
|
|
258
395
|
}
|
|
259
396
|
get justifySelfDesktop() {
|
|
260
397
|
return this.getAttribute("justify-self--desktop");
|
|
261
398
|
}
|
|
262
399
|
set justifySelfDesktop(e) {
|
|
263
|
-
|
|
400
|
+
o(this, "justify-self--desktop", e);
|
|
264
401
|
}
|
|
265
402
|
get hiddenMobile() {
|
|
266
403
|
return this.hasAttribute("hidden--mobile");
|
|
267
404
|
}
|
|
268
405
|
set hiddenMobile(e) {
|
|
269
|
-
|
|
406
|
+
s(this, "hidden--mobile", e);
|
|
270
407
|
}
|
|
271
408
|
get hiddenTablet() {
|
|
272
409
|
return this.hasAttribute("hidden--tablet");
|
|
273
410
|
}
|
|
274
411
|
set hiddenTablet(e) {
|
|
275
|
-
|
|
412
|
+
s(this, "hidden--tablet", e);
|
|
276
413
|
}
|
|
277
414
|
get hiddenLaptop() {
|
|
278
415
|
return this.hasAttribute("hidden--laptop");
|
|
279
416
|
}
|
|
280
417
|
set hiddenLaptop(e) {
|
|
281
|
-
|
|
418
|
+
s(this, "hidden--laptop", e);
|
|
282
419
|
}
|
|
283
420
|
get hiddenDesktop() {
|
|
284
421
|
return this.hasAttribute("hidden--desktop");
|
|
285
422
|
}
|
|
286
423
|
set hiddenDesktop(e) {
|
|
287
|
-
|
|
424
|
+
s(this, "hidden--desktop", e);
|
|
288
425
|
}
|
|
289
426
|
get colSpan() {
|
|
290
427
|
return this.getAttribute("col-span");
|
|
291
428
|
}
|
|
292
429
|
set colSpan(e) {
|
|
293
|
-
|
|
430
|
+
o(this, "col-span", e);
|
|
294
431
|
}
|
|
295
432
|
get colSpanMobile() {
|
|
296
433
|
return this.getAttribute("col-span--mobile");
|
|
297
434
|
}
|
|
298
435
|
set colSpanMobile(e) {
|
|
299
|
-
|
|
436
|
+
o(this, "col-span--mobile", e);
|
|
300
437
|
}
|
|
301
438
|
get colSpanTablet() {
|
|
302
439
|
return this.getAttribute("col-span--tablet");
|
|
303
440
|
}
|
|
304
441
|
set colSpanTablet(e) {
|
|
305
|
-
|
|
442
|
+
o(this, "col-span--tablet", e);
|
|
306
443
|
}
|
|
307
444
|
get colSpanLaptop() {
|
|
308
445
|
return this.getAttribute("col-span--laptop");
|
|
309
446
|
}
|
|
310
447
|
set colSpanLaptop(e) {
|
|
311
|
-
|
|
448
|
+
o(this, "col-span--laptop", e);
|
|
312
449
|
}
|
|
313
450
|
get colSpanDesktop() {
|
|
314
451
|
return this.getAttribute("col-span--desktop");
|
|
315
452
|
}
|
|
316
453
|
set colSpanDesktop(e) {
|
|
317
|
-
|
|
454
|
+
o(this, "col-span--desktop", e);
|
|
318
455
|
}
|
|
319
456
|
get order() {
|
|
320
457
|
return this.getAttribute("order");
|
|
321
458
|
}
|
|
322
459
|
set order(e) {
|
|
323
|
-
|
|
460
|
+
o(this, "order", e);
|
|
324
461
|
}
|
|
325
462
|
get orderMobile() {
|
|
326
463
|
return this.getAttribute("order--mobile");
|
|
327
464
|
}
|
|
328
465
|
set orderMobile(e) {
|
|
329
|
-
|
|
466
|
+
o(this, "order--mobile", e);
|
|
330
467
|
}
|
|
331
468
|
get orderTablet() {
|
|
332
469
|
return this.getAttribute("order--tablet");
|
|
333
470
|
}
|
|
334
471
|
set orderTablet(e) {
|
|
335
|
-
|
|
472
|
+
o(this, "order--tablet", e);
|
|
336
473
|
}
|
|
337
474
|
get orderLaptop() {
|
|
338
475
|
return this.getAttribute("order--laptop");
|
|
339
476
|
}
|
|
340
477
|
set orderLaptop(e) {
|
|
341
|
-
|
|
478
|
+
o(this, "order--laptop", e);
|
|
342
479
|
}
|
|
343
480
|
get orderDesktop() {
|
|
344
481
|
return this.getAttribute("order--desktop");
|
|
345
482
|
}
|
|
346
483
|
set orderDesktop(e) {
|
|
347
|
-
|
|
484
|
+
o(this, "order--desktop", e);
|
|
348
485
|
}
|
|
349
486
|
};
|
|
350
|
-
(class extends
|
|
487
|
+
(class extends S {
|
|
488
|
+
static {
|
|
489
|
+
this.nativeAttributes = {};
|
|
490
|
+
}
|
|
491
|
+
static {
|
|
492
|
+
this.nativeProperties = {};
|
|
493
|
+
}
|
|
351
494
|
static {
|
|
352
|
-
this.
|
|
495
|
+
this.nativeMethods = [];
|
|
353
496
|
}
|
|
354
497
|
static get observedAttributes() {
|
|
355
|
-
return [...super.observedAttributes, ...
|
|
498
|
+
return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
|
|
356
499
|
}
|
|
357
500
|
attributeChangedCallback(e, t, n) {
|
|
358
|
-
super.attributeChangedCallback(e, t, n),
|
|
501
|
+
super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
|
|
359
502
|
}
|
|
360
503
|
get ctor() {
|
|
361
504
|
return Object.getPrototypeOf(this).constructor;
|
|
362
505
|
}
|
|
363
506
|
constructor(...e) {
|
|
364
|
-
super(...e), this.
|
|
507
|
+
super(...e), this.enhanceWithNativeProperties();
|
|
508
|
+
}
|
|
509
|
+
getNativePropertyMetadata() {
|
|
510
|
+
let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
|
|
511
|
+
for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
|
|
512
|
+
let n = new Map(Object.entries(this.ctor.nativeProperties));
|
|
513
|
+
for (let t of e.keys()) n.set(t, "writable");
|
|
514
|
+
return {
|
|
515
|
+
reflectedProperties: e,
|
|
516
|
+
properties: n
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
setNativeProperty(e, t, n) {
|
|
520
|
+
let r = n.get(e);
|
|
521
|
+
if (r !== void 0) {
|
|
522
|
+
this.$el[e] = t;
|
|
523
|
+
let n = this.$el.getAttribute(r);
|
|
524
|
+
this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
|
|
525
|
+
} else this.$el[e] !== t && (this.$el[e] = t);
|
|
365
526
|
}
|
|
366
527
|
enhanceWithNativeProperties() {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
set(t)
|
|
373
|
-
this.$el[e] !== t && (this.$el[e] = t);
|
|
374
|
-
}
|
|
528
|
+
let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
|
|
529
|
+
for (let [n, r] of t) {
|
|
530
|
+
let t = n;
|
|
531
|
+
Object.defineProperty(this, t, {
|
|
532
|
+
get: () => this.$el[t],
|
|
533
|
+
set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
|
|
375
534
|
});
|
|
376
|
-
} catch (t) {
|
|
377
|
-
console.warn(`Could not create property ${e} for`, this.$el, t);
|
|
378
535
|
}
|
|
536
|
+
for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
|
|
537
|
+
let n = this.$el, r = Reflect.get(n, e);
|
|
538
|
+
if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
|
|
539
|
+
return Reflect.apply(r, n, t);
|
|
540
|
+
} });
|
|
379
541
|
}
|
|
380
542
|
get $el() {
|
|
381
543
|
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
382
544
|
}
|
|
545
|
+
_forwardNativeAttribute(e, t) {
|
|
546
|
+
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
547
|
+
}
|
|
383
548
|
_updateAttribute(e, t) {
|
|
384
|
-
|
|
549
|
+
o(this, e, t);
|
|
385
550
|
}
|
|
386
551
|
_updateBooleanAttribute(e, t) {
|
|
387
|
-
|
|
552
|
+
s(this, e, t);
|
|
388
553
|
}
|
|
389
554
|
});
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"auto",
|
|
394
|
-
"flex-start",
|
|
395
|
-
"start",
|
|
396
|
-
"flex-end",
|
|
397
|
-
"end",
|
|
398
|
-
"center",
|
|
399
|
-
"baseline",
|
|
400
|
-
"stretch"
|
|
401
|
-
], te = [
|
|
402
|
-
"",
|
|
403
|
-
"default",
|
|
404
|
-
"start",
|
|
405
|
-
"end",
|
|
406
|
-
"center",
|
|
407
|
-
"stretch"
|
|
408
|
-
], u = [
|
|
409
|
-
"",
|
|
410
|
-
"default",
|
|
411
|
-
"start",
|
|
412
|
-
"end",
|
|
413
|
-
"center",
|
|
414
|
-
"stretch"
|
|
415
|
-
], d = [
|
|
416
|
-
"",
|
|
417
|
-
"1",
|
|
418
|
-
"2",
|
|
419
|
-
"3",
|
|
420
|
-
"4",
|
|
421
|
-
"5",
|
|
422
|
-
"6",
|
|
423
|
-
"7",
|
|
424
|
-
"8",
|
|
425
|
-
"9",
|
|
426
|
-
"10",
|
|
427
|
-
"11",
|
|
428
|
-
"12"
|
|
429
|
-
], f = [
|
|
430
|
-
"",
|
|
431
|
-
"-1",
|
|
432
|
-
"0",
|
|
433
|
-
"1",
|
|
434
|
-
"2",
|
|
435
|
-
"3",
|
|
436
|
-
"4",
|
|
437
|
-
"5",
|
|
438
|
-
"6",
|
|
439
|
-
"7",
|
|
440
|
-
"8",
|
|
441
|
-
"9",
|
|
442
|
-
"10",
|
|
443
|
-
"11",
|
|
444
|
-
"12"
|
|
445
|
-
], p = [
|
|
446
|
-
"",
|
|
447
|
-
"default",
|
|
448
|
-
...[
|
|
449
|
-
"Xs",
|
|
450
|
-
"S",
|
|
451
|
-
"M",
|
|
452
|
-
"L",
|
|
453
|
-
"Xl"
|
|
454
|
-
].map((e) => e.toLowerCase())
|
|
455
|
-
], m = [
|
|
456
|
-
"",
|
|
457
|
-
"none",
|
|
458
|
-
"3xs",
|
|
459
|
-
"2xs",
|
|
460
|
-
"xs",
|
|
461
|
-
"s",
|
|
462
|
-
"m",
|
|
463
|
-
"l",
|
|
464
|
-
"xl"
|
|
465
|
-
], ne = [
|
|
466
|
-
"",
|
|
467
|
-
"none",
|
|
468
|
-
"s",
|
|
469
|
-
"m",
|
|
470
|
-
"l"
|
|
471
|
-
], h = [
|
|
472
|
-
"",
|
|
473
|
-
"none",
|
|
474
|
-
"main",
|
|
475
|
-
"pill"
|
|
476
|
-
], g = [
|
|
477
|
-
"none",
|
|
478
|
-
"main",
|
|
479
|
-
"brand",
|
|
480
|
-
"state-hover",
|
|
481
|
-
"state-active",
|
|
482
|
-
"neutral",
|
|
483
|
-
"purpose-success",
|
|
484
|
-
"purpose-warning",
|
|
485
|
-
"purpose-error",
|
|
486
|
-
"purpose-unlimited"
|
|
487
|
-
], _ = [
|
|
488
|
-
"",
|
|
489
|
-
"all",
|
|
490
|
-
"top",
|
|
491
|
-
"right",
|
|
492
|
-
"bottom",
|
|
493
|
-
"left",
|
|
494
|
-
"block",
|
|
495
|
-
"inline"
|
|
496
|
-
], 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 = [
|
|
497
|
-
"",
|
|
498
|
-
"cover",
|
|
499
|
-
"contain",
|
|
500
|
-
"default"
|
|
501
|
-
], ie = [
|
|
502
|
-
"",
|
|
503
|
-
"none",
|
|
504
|
-
"s",
|
|
505
|
-
"m",
|
|
506
|
-
"l",
|
|
507
|
-
"xl"
|
|
508
|
-
], 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 = [
|
|
509
|
-
"none",
|
|
510
|
-
"2xs",
|
|
511
|
-
"xs",
|
|
512
|
-
"s",
|
|
513
|
-
"default",
|
|
514
|
-
"l",
|
|
515
|
-
"heading-to-subtitle",
|
|
516
|
-
"heading-to-content",
|
|
517
|
-
"page-layout-between-sections"
|
|
518
|
-
], ae = [
|
|
519
|
-
"",
|
|
520
|
-
"all",
|
|
521
|
-
"top",
|
|
522
|
-
"right",
|
|
523
|
-
"bottom",
|
|
524
|
-
"left"
|
|
525
|
-
];
|
|
526
|
-
function x(e, t) {
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region ../common/src/utilities.ts
|
|
557
|
+
function C(e, t) {
|
|
527
558
|
return t !== null && e.includes(t);
|
|
528
559
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region ../common/src/nativeProperties.ts
|
|
562
|
+
var w = {
|
|
563
|
+
validity: "readonly",
|
|
564
|
+
validationMessage: "readonly",
|
|
565
|
+
willValidate: "readonly"
|
|
566
|
+
}, T = [
|
|
567
|
+
"checkValidity",
|
|
568
|
+
"reportValidity",
|
|
569
|
+
"setCustomValidity"
|
|
570
|
+
];
|
|
571
|
+
({ ...w }), [...T], { ...w }, [...T], { ...w }, [...T], { ...w }, [...T], { ...w }, [...T];
|
|
535
572
|
//#endregion
|
|
536
573
|
//#region ../common/src/breakpoints.ts
|
|
537
|
-
function
|
|
574
|
+
function E(e, t, n, r = "", i, a = e) {
|
|
538
575
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
539
576
|
${t(a, o)} {
|
|
540
577
|
${e}: var(--${r}-${o}-desktop);
|
|
@@ -577,7 +614,7 @@ function w(e, t, n, r = "", i, a = e) {
|
|
|
577
614
|
}`, "");
|
|
578
615
|
return o.replaceSync(s), o;
|
|
579
616
|
}
|
|
580
|
-
var
|
|
617
|
+
var ie = class {
|
|
581
618
|
constructor(e, t, n, r) {
|
|
582
619
|
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), {
|
|
583
620
|
get: () => this.component.getAttribute(this.attributeName),
|
|
@@ -623,33 +660,33 @@ var T = class {
|
|
|
623
660
|
set attributeValue(e) {
|
|
624
661
|
this._attributeValue = e, this.setCSSProperties();
|
|
625
662
|
}
|
|
626
|
-
},
|
|
627
|
-
function
|
|
663
|
+
}, D = /* @__PURE__ */ new Map(), ae = 500;
|
|
664
|
+
function O(e) {
|
|
628
665
|
let t = document.createElement("template");
|
|
629
666
|
return t.innerHTML = e, t;
|
|
630
667
|
}
|
|
631
|
-
function
|
|
632
|
-
return
|
|
668
|
+
function k(e) {
|
|
669
|
+
return O(e);
|
|
633
670
|
}
|
|
634
|
-
function
|
|
635
|
-
let t =
|
|
636
|
-
return t || (t =
|
|
671
|
+
function oe(e) {
|
|
672
|
+
let t = D.get(e);
|
|
673
|
+
return t || (t = O(e), D.size < ae && D.set(e, t)), t;
|
|
637
674
|
}
|
|
638
|
-
function
|
|
639
|
-
let n = typeof t == "string" ?
|
|
675
|
+
function A(e, t) {
|
|
676
|
+
let n = typeof t == "string" ? oe(t) : t;
|
|
640
677
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
641
678
|
}
|
|
642
679
|
//#endregion
|
|
643
680
|
//#region ../Container/src/Container.ts
|
|
644
|
-
var
|
|
645
|
-
|
|
646
|
-
var
|
|
681
|
+
var j = new CSSStyleSheet();
|
|
682
|
+
j.replaceSync(e);
|
|
683
|
+
var M = [
|
|
647
684
|
"top-patch",
|
|
648
685
|
"top-neighbor-patch",
|
|
649
686
|
"top-ribbon",
|
|
650
687
|
"top-neighbor-ribbon",
|
|
651
688
|
"top-patch-and-neighbor-ribbon"
|
|
652
|
-
],
|
|
689
|
+
], N = [
|
|
653
690
|
"1",
|
|
654
691
|
"2",
|
|
655
692
|
"3",
|
|
@@ -662,24 +699,24 @@ var j = [
|
|
|
662
699
|
"10",
|
|
663
700
|
"11",
|
|
664
701
|
"12"
|
|
665
|
-
],
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
],
|
|
702
|
+
], P = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, F = "px-padding", I = [
|
|
703
|
+
E("padding", P, m, F, "--container-padding"),
|
|
704
|
+
E("padding-inline", P, m, F),
|
|
705
|
+
E("padding-block", P, m, F),
|
|
706
|
+
E("padding-top", P, m, F),
|
|
707
|
+
E("padding-right", P, m, F, "--container-padding-right"),
|
|
708
|
+
E("padding-bottom", P, m, F),
|
|
709
|
+
E("padding-left", P, m, F, "--container-padding-left"),
|
|
710
|
+
E("gap", P, b, "px-spacing", void 0, "subgrid-gap")
|
|
711
|
+
], L = class e extends S {
|
|
675
712
|
static {
|
|
676
|
-
this.template =
|
|
713
|
+
this.template = k("<div class=\"container\"><slot></slot><slot name=\"anchor-left\"></slot><slot name=\"anchor-right\"></slot><slot name=\"anchor-full\"></slot></div>");
|
|
677
714
|
}
|
|
678
715
|
static {
|
|
679
716
|
this.nativeName = "div";
|
|
680
717
|
}
|
|
681
718
|
constructor() {
|
|
682
|
-
super(
|
|
719
|
+
super(j, ...I), this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, A(this.shadowRoot, e.template);
|
|
683
720
|
}
|
|
684
721
|
static get observedAttributes() {
|
|
685
722
|
return [
|
|
@@ -735,7 +772,7 @@ var j = [
|
|
|
735
772
|
attributeChangedCallback(e, t, n) {
|
|
736
773
|
if (t !== n) switch (e) {
|
|
737
774
|
case "border":
|
|
738
|
-
this.updateAttribute(e, t, n,
|
|
775
|
+
this.updateAttribute(e, t, n, ee);
|
|
739
776
|
break;
|
|
740
777
|
case "border-color":
|
|
741
778
|
this.updateBorderColor(e, n);
|
|
@@ -744,16 +781,16 @@ var j = [
|
|
|
744
781
|
case "border-side--mobile":
|
|
745
782
|
case "border-side--tablet":
|
|
746
783
|
case "border-side--laptop":
|
|
747
|
-
this.updateAttribute(e, t, n,
|
|
784
|
+
this.updateAttribute(e, t, n, g);
|
|
748
785
|
break;
|
|
749
786
|
case "border-radius":
|
|
750
|
-
this.updateAttribute(e, t, n,
|
|
787
|
+
this.updateAttribute(e, t, n, te);
|
|
751
788
|
break;
|
|
752
789
|
case "no-border-radius":
|
|
753
790
|
case "no-border-radius--mobile":
|
|
754
791
|
case "no-border-radius--tablet":
|
|
755
792
|
case "no-border-radius--laptop":
|
|
756
|
-
this.updateNoBorderRadius(e, t, n,
|
|
793
|
+
this.updateNoBorderRadius(e, t, n, re);
|
|
757
794
|
break;
|
|
758
795
|
case "background-color":
|
|
759
796
|
case "background-color--mobile":
|
|
@@ -768,7 +805,7 @@ var j = [
|
|
|
768
805
|
this.updateGradient(e, n);
|
|
769
806
|
break;
|
|
770
807
|
case "background-size":
|
|
771
|
-
this.updateAttribute(e, t, n,
|
|
808
|
+
this.updateAttribute(e, t, n, v);
|
|
772
809
|
break;
|
|
773
810
|
case "background-image":
|
|
774
811
|
case "background-image--mobile":
|
|
@@ -780,16 +817,16 @@ var j = [
|
|
|
780
817
|
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
781
818
|
break;
|
|
782
819
|
case "box-shadow":
|
|
783
|
-
this.updateAttribute(e, t, n,
|
|
820
|
+
this.updateAttribute(e, t, n, ne);
|
|
784
821
|
break;
|
|
785
822
|
case "anchor-offset":
|
|
786
823
|
this.updateAnchorOffset(t, n, m);
|
|
787
824
|
break;
|
|
788
825
|
case "anchor-spacing":
|
|
789
|
-
this.updateAnchorSpacing(t, n,
|
|
826
|
+
this.updateAnchorSpacing(t, n, M);
|
|
790
827
|
break;
|
|
791
828
|
case "subgrid-rows":
|
|
792
|
-
this.updateSubgridRows(e, t, n,
|
|
829
|
+
this.updateSubgridRows(e, t, n, N);
|
|
793
830
|
break;
|
|
794
831
|
default: super.attributeChangedCallback(e, t, n);
|
|
795
832
|
}
|
|
@@ -814,27 +851,27 @@ var j = [
|
|
|
814
851
|
e = n.attrName;
|
|
815
852
|
let r = n.breakpoint;
|
|
816
853
|
this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
|
|
817
|
-
} else
|
|
854
|
+
} else i(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${y.join("\", \"")}".`);
|
|
818
855
|
}
|
|
819
856
|
updateBackgroundColor(e, t) {
|
|
820
857
|
let n = t.startsWith("surface-");
|
|
821
|
-
if (this.checkName(
|
|
858
|
+
if (this.checkName(_, t)) {
|
|
822
859
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
823
860
|
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"})`);
|
|
824
|
-
} else
|
|
861
|
+
} else i(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${_.join("\", \"")}".`);
|
|
825
862
|
}
|
|
826
863
|
updateBorderColor(e, t) {
|
|
827
|
-
this.checkName(
|
|
864
|
+
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("\", \"")}".`);
|
|
828
865
|
}
|
|
829
866
|
updateNoBorderRadius(e, t, n, r) {
|
|
830
|
-
if (!this.checkName(r, n))
|
|
867
|
+
if (!this.checkName(r, n)) i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
831
868
|
else {
|
|
832
869
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
833
870
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
834
871
|
}
|
|
835
872
|
}
|
|
836
873
|
updateAttribute(e, t, n, r) {
|
|
837
|
-
if (!this.checkName(r, n))
|
|
874
|
+
if (!this.checkName(r, n)) i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
838
875
|
else {
|
|
839
876
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
840
877
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
@@ -856,8 +893,8 @@ var j = [
|
|
|
856
893
|
};
|
|
857
894
|
}
|
|
858
895
|
updateAnchorOffset(e, t, n) {
|
|
859
|
-
if (!
|
|
860
|
-
|
|
896
|
+
if (!C(n, t)) {
|
|
897
|
+
i(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
861
898
|
return;
|
|
862
899
|
}
|
|
863
900
|
let r = (e) => {
|
|
@@ -869,8 +906,8 @@ var j = [
|
|
|
869
906
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
870
907
|
}
|
|
871
908
|
updateAnchorSpacing(e, t, n) {
|
|
872
|
-
if (!
|
|
873
|
-
|
|
909
|
+
if (!C(n, t)) {
|
|
910
|
+
i(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
874
911
|
return;
|
|
875
912
|
}
|
|
876
913
|
let r = (e) => {
|
|
@@ -879,7 +916,7 @@ var j = [
|
|
|
879
916
|
r(e), r(t);
|
|
880
917
|
}
|
|
881
918
|
updateSubgridRows(e, t, n, r) {
|
|
882
|
-
|
|
919
|
+
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("\", \"")}".`);
|
|
883
920
|
}
|
|
884
921
|
get $el() {
|
|
885
922
|
return this?.shadowRoot?.querySelector(".container");
|
|
@@ -891,390 +928,390 @@ var j = [
|
|
|
891
928
|
return this.getAttribute("padding");
|
|
892
929
|
}
|
|
893
930
|
set padding(e) {
|
|
894
|
-
|
|
931
|
+
o(this, "padding", e);
|
|
895
932
|
}
|
|
896
933
|
get paddingBlock() {
|
|
897
934
|
return this.getAttribute("padding-block");
|
|
898
935
|
}
|
|
899
936
|
set paddingBlock(e) {
|
|
900
|
-
|
|
937
|
+
o(this, "padding-block", e);
|
|
901
938
|
}
|
|
902
939
|
get paddingInline() {
|
|
903
940
|
return this.getAttribute("padding-inline");
|
|
904
941
|
}
|
|
905
942
|
set paddingInline(e) {
|
|
906
|
-
|
|
943
|
+
o(this, "padding-inline", e);
|
|
907
944
|
}
|
|
908
945
|
get paddingTop() {
|
|
909
946
|
return this.getAttribute("padding-top");
|
|
910
947
|
}
|
|
911
948
|
set paddingTop(e) {
|
|
912
|
-
|
|
949
|
+
o(this, "padding-top", e);
|
|
913
950
|
}
|
|
914
951
|
get paddingRight() {
|
|
915
952
|
return this.getAttribute("padding-right");
|
|
916
953
|
}
|
|
917
954
|
set paddingRight(e) {
|
|
918
|
-
|
|
955
|
+
o(this, "padding-right", e);
|
|
919
956
|
}
|
|
920
957
|
get paddingBottom() {
|
|
921
958
|
return this.getAttribute("padding-bottom");
|
|
922
959
|
}
|
|
923
960
|
set paddingBottom(e) {
|
|
924
|
-
|
|
961
|
+
o(this, "padding-bottom", e);
|
|
925
962
|
}
|
|
926
963
|
get paddingLeft() {
|
|
927
964
|
return this.getAttribute("padding-left");
|
|
928
965
|
}
|
|
929
966
|
set paddingLeft(e) {
|
|
930
|
-
|
|
967
|
+
o(this, "padding-left", e);
|
|
931
968
|
}
|
|
932
969
|
get paddingMobile() {
|
|
933
970
|
return this.getAttribute("padding--mobile");
|
|
934
971
|
}
|
|
935
972
|
set paddingMobile(e) {
|
|
936
|
-
|
|
973
|
+
o(this, "padding--mobile", e);
|
|
937
974
|
}
|
|
938
975
|
get paddingBlockMobile() {
|
|
939
976
|
return this.getAttribute("padding-block--mobile");
|
|
940
977
|
}
|
|
941
978
|
set paddingBlockMobile(e) {
|
|
942
|
-
|
|
979
|
+
o(this, "padding-block--mobile", e);
|
|
943
980
|
}
|
|
944
981
|
get paddingInlineMobile() {
|
|
945
982
|
return this.getAttribute("padding-inline--mobile");
|
|
946
983
|
}
|
|
947
984
|
set paddingInlineMobile(e) {
|
|
948
|
-
|
|
985
|
+
o(this, "padding-inline--mobile", e);
|
|
949
986
|
}
|
|
950
987
|
get paddingTopMobile() {
|
|
951
988
|
return this.getAttribute("padding-top--mobile");
|
|
952
989
|
}
|
|
953
990
|
set paddingTopMobile(e) {
|
|
954
|
-
|
|
991
|
+
o(this, "padding-top--mobile", e);
|
|
955
992
|
}
|
|
956
993
|
get paddingRightMobile() {
|
|
957
994
|
return this.getAttribute("padding-right--mobile");
|
|
958
995
|
}
|
|
959
996
|
set paddingRightMobile(e) {
|
|
960
|
-
|
|
997
|
+
o(this, "padding-right--mobile", e);
|
|
961
998
|
}
|
|
962
999
|
get paddingBottomMobile() {
|
|
963
1000
|
return this.getAttribute("padding-bottom--mobile");
|
|
964
1001
|
}
|
|
965
1002
|
set paddingBottomMobile(e) {
|
|
966
|
-
|
|
1003
|
+
o(this, "padding-bottom--mobile", e);
|
|
967
1004
|
}
|
|
968
1005
|
get paddingLeftMobile() {
|
|
969
1006
|
return this.getAttribute("padding-left--mobile");
|
|
970
1007
|
}
|
|
971
1008
|
set paddingLeftMobile(e) {
|
|
972
|
-
|
|
1009
|
+
o(this, "padding-left--mobile", e);
|
|
973
1010
|
}
|
|
974
1011
|
get paddingTablet() {
|
|
975
1012
|
return this.getAttribute("padding--tablet");
|
|
976
1013
|
}
|
|
977
1014
|
set paddingTablet(e) {
|
|
978
|
-
|
|
1015
|
+
o(this, "padding--tablet", e);
|
|
979
1016
|
}
|
|
980
1017
|
get paddingBlockTablet() {
|
|
981
1018
|
return this.getAttribute("padding-block--tablet");
|
|
982
1019
|
}
|
|
983
1020
|
set paddingBlockTablet(e) {
|
|
984
|
-
|
|
1021
|
+
o(this, "padding-block--tablet", e);
|
|
985
1022
|
}
|
|
986
1023
|
get paddingInlineTablet() {
|
|
987
1024
|
return this.getAttribute("padding-inline--tablet");
|
|
988
1025
|
}
|
|
989
1026
|
set paddingInlineTablet(e) {
|
|
990
|
-
|
|
1027
|
+
o(this, "padding-inline--tablet", e);
|
|
991
1028
|
}
|
|
992
1029
|
get paddingTopTablet() {
|
|
993
1030
|
return this.getAttribute("padding-top--tablet");
|
|
994
1031
|
}
|
|
995
1032
|
set paddingTopTablet(e) {
|
|
996
|
-
|
|
1033
|
+
o(this, "padding-top--tablet", e);
|
|
997
1034
|
}
|
|
998
1035
|
get paddingRightTablet() {
|
|
999
1036
|
return this.getAttribute("padding-right--tablet");
|
|
1000
1037
|
}
|
|
1001
1038
|
set paddingRightTablet(e) {
|
|
1002
|
-
|
|
1039
|
+
o(this, "padding-right--tablet", e);
|
|
1003
1040
|
}
|
|
1004
1041
|
get paddingBottomTablet() {
|
|
1005
1042
|
return this.getAttribute("padding-bottom--tablet");
|
|
1006
1043
|
}
|
|
1007
1044
|
set paddingBottomTablet(e) {
|
|
1008
|
-
|
|
1045
|
+
o(this, "padding-bottom--tablet", e);
|
|
1009
1046
|
}
|
|
1010
1047
|
get paddingLeftTablet() {
|
|
1011
1048
|
return this.getAttribute("padding-left--tablet");
|
|
1012
1049
|
}
|
|
1013
1050
|
set paddingLeftTablet(e) {
|
|
1014
|
-
|
|
1051
|
+
o(this, "padding-left--tablet", e);
|
|
1015
1052
|
}
|
|
1016
1053
|
get paddingLaptop() {
|
|
1017
1054
|
return this.getAttribute("padding--laptop");
|
|
1018
1055
|
}
|
|
1019
1056
|
set paddingLaptop(e) {
|
|
1020
|
-
|
|
1057
|
+
o(this, "padding--laptop", e);
|
|
1021
1058
|
}
|
|
1022
1059
|
get paddingBlockLaptop() {
|
|
1023
1060
|
return this.getAttribute("padding-block--laptop");
|
|
1024
1061
|
}
|
|
1025
1062
|
set paddingBlockLaptop(e) {
|
|
1026
|
-
|
|
1063
|
+
o(this, "padding-block--laptop", e);
|
|
1027
1064
|
}
|
|
1028
1065
|
get paddingInlineLaptop() {
|
|
1029
1066
|
return this.getAttribute("padding-inline--laptop");
|
|
1030
1067
|
}
|
|
1031
1068
|
set paddingInlineLaptop(e) {
|
|
1032
|
-
|
|
1069
|
+
o(this, "padding-inline--laptop", e);
|
|
1033
1070
|
}
|
|
1034
1071
|
get paddingTopLaptop() {
|
|
1035
1072
|
return this.getAttribute("padding-top--laptop");
|
|
1036
1073
|
}
|
|
1037
1074
|
set paddingTopLaptop(e) {
|
|
1038
|
-
|
|
1075
|
+
o(this, "padding-top--laptop", e);
|
|
1039
1076
|
}
|
|
1040
1077
|
get paddingRightLaptop() {
|
|
1041
1078
|
return this.getAttribute("padding-right--laptop");
|
|
1042
1079
|
}
|
|
1043
1080
|
set paddingRightLaptop(e) {
|
|
1044
|
-
|
|
1081
|
+
o(this, "padding-right--laptop", e);
|
|
1045
1082
|
}
|
|
1046
1083
|
get paddingBottomLaptop() {
|
|
1047
1084
|
return this.getAttribute("padding-bottom--laptop");
|
|
1048
1085
|
}
|
|
1049
1086
|
set paddingBottomLaptop(e) {
|
|
1050
|
-
|
|
1087
|
+
o(this, "padding-bottom--laptop", e);
|
|
1051
1088
|
}
|
|
1052
1089
|
get paddingLeftLaptop() {
|
|
1053
1090
|
return this.getAttribute("padding-left--laptop");
|
|
1054
1091
|
}
|
|
1055
1092
|
set paddingLeftLaptop(e) {
|
|
1056
|
-
|
|
1093
|
+
o(this, "padding-left--laptop", e);
|
|
1057
1094
|
}
|
|
1058
1095
|
get border() {
|
|
1059
1096
|
return this.getAttribute("border");
|
|
1060
1097
|
}
|
|
1061
1098
|
set border(e) {
|
|
1062
|
-
|
|
1099
|
+
o(this, "border", e);
|
|
1063
1100
|
}
|
|
1064
1101
|
get borderColor() {
|
|
1065
1102
|
return this.getAttribute("border-color");
|
|
1066
1103
|
}
|
|
1067
1104
|
set borderColor(e) {
|
|
1068
|
-
|
|
1105
|
+
o(this, "border-color", e);
|
|
1069
1106
|
}
|
|
1070
1107
|
get borderSide() {
|
|
1071
1108
|
return this.getAttribute("border-side");
|
|
1072
1109
|
}
|
|
1073
1110
|
set borderSide(e) {
|
|
1074
|
-
|
|
1111
|
+
o(this, "border-side", e);
|
|
1075
1112
|
}
|
|
1076
1113
|
get borderSideMobile() {
|
|
1077
1114
|
return this.getAttribute("border-side--mobile");
|
|
1078
1115
|
}
|
|
1079
1116
|
set borderSideMobile(e) {
|
|
1080
|
-
|
|
1117
|
+
o(this, "border-side--mobile", e);
|
|
1081
1118
|
}
|
|
1082
1119
|
get borderSideTablet() {
|
|
1083
1120
|
return this.getAttribute("border-side--tablet");
|
|
1084
1121
|
}
|
|
1085
1122
|
set borderSideTablet(e) {
|
|
1086
|
-
|
|
1123
|
+
o(this, "border-side--tablet", e);
|
|
1087
1124
|
}
|
|
1088
1125
|
get borderSideLaptop() {
|
|
1089
1126
|
return this.getAttribute("border-side--laptop");
|
|
1090
1127
|
}
|
|
1091
1128
|
set borderSideLaptop(e) {
|
|
1092
|
-
|
|
1129
|
+
o(this, "border-side--laptop", e);
|
|
1093
1130
|
}
|
|
1094
1131
|
get borderRadius() {
|
|
1095
1132
|
return this.getAttribute("border-radius");
|
|
1096
1133
|
}
|
|
1097
1134
|
set borderRadius(e) {
|
|
1098
|
-
|
|
1135
|
+
o(this, "border-radius", e);
|
|
1099
1136
|
}
|
|
1100
1137
|
get noBorderRadius() {
|
|
1101
1138
|
return this.getAttribute("no-border-radius");
|
|
1102
1139
|
}
|
|
1103
1140
|
set noBorderRadius(e) {
|
|
1104
|
-
|
|
1141
|
+
o(this, "no-border-radius", e);
|
|
1105
1142
|
}
|
|
1106
1143
|
get noBorderRadiusMobile() {
|
|
1107
1144
|
return this.getAttribute("no-border-radius--mobile");
|
|
1108
1145
|
}
|
|
1109
1146
|
set noBorderRadiusMobile(e) {
|
|
1110
|
-
|
|
1147
|
+
o(this, "no-border-radius--mobile", e);
|
|
1111
1148
|
}
|
|
1112
1149
|
get noBorderRadiusTablet() {
|
|
1113
1150
|
return this.getAttribute("no-border-radius--tablet");
|
|
1114
1151
|
}
|
|
1115
1152
|
set noBorderRadiusTablet(e) {
|
|
1116
|
-
|
|
1153
|
+
o(this, "no-border-radius--tablet", e);
|
|
1117
1154
|
}
|
|
1118
1155
|
get noBorderRadiusLaptop() {
|
|
1119
1156
|
return this.getAttribute("no-border-radius--laptop");
|
|
1120
1157
|
}
|
|
1121
1158
|
set noBorderRadiusLaptop(e) {
|
|
1122
|
-
|
|
1159
|
+
o(this, "no-border-radius--laptop", e);
|
|
1123
1160
|
}
|
|
1124
1161
|
get backgroundColor() {
|
|
1125
1162
|
return this.getAttribute("background-color");
|
|
1126
1163
|
}
|
|
1127
1164
|
set backgroundColor(e) {
|
|
1128
|
-
|
|
1165
|
+
o(this, "background-color", e);
|
|
1129
1166
|
}
|
|
1130
1167
|
get backgroundColorMobile() {
|
|
1131
1168
|
return this.getAttribute("background-color--mobile");
|
|
1132
1169
|
}
|
|
1133
1170
|
set backgroundColorMobile(e) {
|
|
1134
|
-
|
|
1171
|
+
o(this, "background-color--mobile", e);
|
|
1135
1172
|
}
|
|
1136
1173
|
get backgroundColorTablet() {
|
|
1137
1174
|
return this.getAttribute("background-color--tablet");
|
|
1138
1175
|
}
|
|
1139
1176
|
set backgroundColorTablet(e) {
|
|
1140
|
-
|
|
1177
|
+
o(this, "background-color--tablet", e);
|
|
1141
1178
|
}
|
|
1142
1179
|
get backgroundColorLaptop() {
|
|
1143
1180
|
return this.getAttribute("background-color--laptop");
|
|
1144
1181
|
}
|
|
1145
1182
|
set backgroundColorLaptop(e) {
|
|
1146
|
-
|
|
1183
|
+
o(this, "background-color--laptop", e);
|
|
1147
1184
|
}
|
|
1148
1185
|
get gradient() {
|
|
1149
1186
|
return this.getAttribute("background-gradient");
|
|
1150
1187
|
}
|
|
1151
1188
|
set gradient(e) {
|
|
1152
|
-
|
|
1189
|
+
o(this, "background-gradient", e);
|
|
1153
1190
|
}
|
|
1154
1191
|
get gradientMobile() {
|
|
1155
1192
|
return this.getAttribute("background-gradient--mobile");
|
|
1156
1193
|
}
|
|
1157
1194
|
set gradientMobile(e) {
|
|
1158
|
-
|
|
1195
|
+
o(this, "background-gradient--mobile", e);
|
|
1159
1196
|
}
|
|
1160
1197
|
get gradientTablet() {
|
|
1161
1198
|
return this.getAttribute("background-gradient--tablet");
|
|
1162
1199
|
}
|
|
1163
1200
|
set gradientTablet(e) {
|
|
1164
|
-
|
|
1201
|
+
o(this, "background-gradient--tablet", e);
|
|
1165
1202
|
}
|
|
1166
1203
|
get gradientLaptop() {
|
|
1167
1204
|
return this.getAttribute("background-gradient--laptop");
|
|
1168
1205
|
}
|
|
1169
1206
|
set gradientLaptop(e) {
|
|
1170
|
-
|
|
1207
|
+
o(this, "background-gradient--laptop", e);
|
|
1171
1208
|
}
|
|
1172
1209
|
get backgroundImage() {
|
|
1173
1210
|
return this.getAttribute("background-image");
|
|
1174
1211
|
}
|
|
1175
1212
|
set backgroundImage(e) {
|
|
1176
|
-
|
|
1213
|
+
o(this, "background-image", e);
|
|
1177
1214
|
}
|
|
1178
1215
|
get backgroundImageMobile() {
|
|
1179
1216
|
return this.getAttribute("background-image--mobile");
|
|
1180
1217
|
}
|
|
1181
1218
|
set backgroundImageMobile(e) {
|
|
1182
|
-
|
|
1219
|
+
o(this, "background-image--mobile", e);
|
|
1183
1220
|
}
|
|
1184
1221
|
get backgroundImageTablet() {
|
|
1185
1222
|
return this.getAttribute("background-image--tablet");
|
|
1186
1223
|
}
|
|
1187
1224
|
set backgroundImageTablet(e) {
|
|
1188
|
-
|
|
1225
|
+
o(this, "background-image--tablet", e);
|
|
1189
1226
|
}
|
|
1190
1227
|
get backgroundImageLaptop() {
|
|
1191
1228
|
return this.getAttribute("background-image--laptop");
|
|
1192
1229
|
}
|
|
1193
1230
|
set backgroundImageLaptop(e) {
|
|
1194
|
-
|
|
1231
|
+
o(this, "background-image--laptop", e);
|
|
1195
1232
|
}
|
|
1196
1233
|
get backgroundSize() {
|
|
1197
1234
|
return this.getAttribute("background-size");
|
|
1198
1235
|
}
|
|
1199
1236
|
set backgroundSize(e) {
|
|
1200
|
-
|
|
1237
|
+
o(this, "background-size", e);
|
|
1201
1238
|
}
|
|
1202
1239
|
get backgroundPosition() {
|
|
1203
1240
|
return this.getAttribute("background-position");
|
|
1204
1241
|
}
|
|
1205
1242
|
set backgroundPosition(e) {
|
|
1206
|
-
|
|
1243
|
+
o(this, "background-position", e);
|
|
1207
1244
|
}
|
|
1208
1245
|
get boxShadow() {
|
|
1209
1246
|
return this.getAttribute("box-shadow");
|
|
1210
1247
|
}
|
|
1211
1248
|
set boxShadow(e) {
|
|
1212
|
-
|
|
1249
|
+
o(this, "box-shadow", e);
|
|
1213
1250
|
}
|
|
1214
1251
|
get anchorOffset() {
|
|
1215
1252
|
return this.getAttribute("anchor-offset");
|
|
1216
1253
|
}
|
|
1217
1254
|
set anchorOffset(e) {
|
|
1218
|
-
|
|
1255
|
+
o(this, "anchor-offset", e);
|
|
1219
1256
|
}
|
|
1220
1257
|
get anchorSpacing() {
|
|
1221
1258
|
return this.getAttribute("anchor-spacing");
|
|
1222
1259
|
}
|
|
1223
1260
|
set anchorSpacing(e) {
|
|
1224
|
-
|
|
1261
|
+
o(this, "anchor-spacing", e);
|
|
1225
1262
|
}
|
|
1226
1263
|
get inverted() {
|
|
1227
1264
|
return this.hasAttribute("inverted");
|
|
1228
1265
|
}
|
|
1229
1266
|
set inverted(e) {
|
|
1230
|
-
|
|
1267
|
+
s(this, "inverted", e);
|
|
1231
1268
|
}
|
|
1232
1269
|
get subgridRows() {
|
|
1233
1270
|
return this.getAttribute("subgrid-rows");
|
|
1234
1271
|
}
|
|
1235
1272
|
set subgridRows(e) {
|
|
1236
|
-
|
|
1273
|
+
o(this, "subgrid-rows", e);
|
|
1237
1274
|
}
|
|
1238
1275
|
get subgridGap() {
|
|
1239
1276
|
return this.getAttribute("subgrid-gap");
|
|
1240
1277
|
}
|
|
1241
1278
|
set subgridGap(e) {
|
|
1242
|
-
|
|
1279
|
+
o(this, "subgrid-gap", e);
|
|
1243
1280
|
}
|
|
1244
1281
|
get subgridGapMobile() {
|
|
1245
1282
|
return this.getAttribute("subgrid-gap--mobile");
|
|
1246
1283
|
}
|
|
1247
1284
|
set subgridGapMobile(e) {
|
|
1248
|
-
|
|
1285
|
+
o(this, "subgrid-gap--mobile", e);
|
|
1249
1286
|
}
|
|
1250
1287
|
get subgridGapTablet() {
|
|
1251
1288
|
return this.getAttribute("subgrid-gap--tablet");
|
|
1252
1289
|
}
|
|
1253
1290
|
set subgridGapTablet(e) {
|
|
1254
|
-
|
|
1291
|
+
o(this, "subgrid-gap--tablet", e);
|
|
1255
1292
|
}
|
|
1256
1293
|
get subgridGapLaptop() {
|
|
1257
1294
|
return this.getAttribute("subgrid-gap--laptop");
|
|
1258
1295
|
}
|
|
1259
1296
|
set subgridGapLaptop(e) {
|
|
1260
|
-
|
|
1297
|
+
o(this, "subgrid-gap--laptop", e);
|
|
1261
1298
|
}
|
|
1262
1299
|
};
|
|
1263
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1300
|
+
customElements.get("px-container") || customElements.define("px-container", L);
|
|
1264
1301
|
//#endregion
|
|
1265
1302
|
//#region ../Layout/src/Stack.css?inline
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1268
|
-
var
|
|
1269
|
-
|
|
1270
|
-
var
|
|
1303
|
+
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();
|
|
1304
|
+
z.replaceSync(R);
|
|
1305
|
+
var B = document.createElement("template");
|
|
1306
|
+
B.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
1307
|
+
var V = [
|
|
1271
1308
|
"",
|
|
1272
1309
|
"default",
|
|
1273
1310
|
"row",
|
|
1274
1311
|
"row-reverse",
|
|
1275
1312
|
"column",
|
|
1276
1313
|
"column-reverse"
|
|
1277
|
-
],
|
|
1314
|
+
], H = [
|
|
1278
1315
|
"",
|
|
1279
1316
|
"default",
|
|
1280
1317
|
"stretch",
|
|
@@ -1284,7 +1321,7 @@ var B = [
|
|
|
1284
1321
|
"end",
|
|
1285
1322
|
"center",
|
|
1286
1323
|
"baseline"
|
|
1287
|
-
],
|
|
1324
|
+
], U = [
|
|
1288
1325
|
"",
|
|
1289
1326
|
"default",
|
|
1290
1327
|
"flex-start",
|
|
@@ -1295,21 +1332,21 @@ var B = [
|
|
|
1295
1332
|
"space-between",
|
|
1296
1333
|
"space-around",
|
|
1297
1334
|
"space-evenly"
|
|
1298
|
-
],
|
|
1335
|
+
], W = [
|
|
1299
1336
|
"",
|
|
1300
1337
|
"default",
|
|
1301
1338
|
"nowrap",
|
|
1302
1339
|
"wrap",
|
|
1303
1340
|
"wrap-reverse"
|
|
1304
|
-
],
|
|
1341
|
+
], G = [
|
|
1305
1342
|
"",
|
|
1306
1343
|
"visible",
|
|
1307
1344
|
"hidden",
|
|
1308
1345
|
"scroll",
|
|
1309
1346
|
"auto"
|
|
1310
|
-
],
|
|
1347
|
+
], K = class e extends S {
|
|
1311
1348
|
constructor() {
|
|
1312
|
-
super(
|
|
1349
|
+
super(z), this.overflowXAttributeDelegate = new ie(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(B.content, !0));
|
|
1313
1350
|
}
|
|
1314
1351
|
connectedCallback() {}
|
|
1315
1352
|
static get observedAttributes() {
|
|
@@ -1344,7 +1381,17 @@ var B = [
|
|
|
1344
1381
|
"overflow-x--mobile",
|
|
1345
1382
|
"overflow-x--tablet",
|
|
1346
1383
|
"overflow-x--laptop",
|
|
1347
|
-
"overflow-x--desktop"
|
|
1384
|
+
"overflow-x--desktop",
|
|
1385
|
+
"overflow-y",
|
|
1386
|
+
"overflow-y--mobile",
|
|
1387
|
+
"overflow-y--tablet",
|
|
1388
|
+
"overflow-y--laptop",
|
|
1389
|
+
"overflow-y--desktop",
|
|
1390
|
+
"max-height",
|
|
1391
|
+
"max-height--mobile",
|
|
1392
|
+
"max-height--tablet",
|
|
1393
|
+
"max-height--laptop",
|
|
1394
|
+
"max-height--desktop"
|
|
1348
1395
|
];
|
|
1349
1396
|
}
|
|
1350
1397
|
attributeChangedCallback(e, t, n) {
|
|
@@ -1361,49 +1408,73 @@ var B = [
|
|
|
1361
1408
|
case "justify-content--tablet":
|
|
1362
1409
|
case "justify-content--laptop":
|
|
1363
1410
|
case "justify-content--desktop":
|
|
1364
|
-
this.updateFlexProperties(e, t, n,
|
|
1411
|
+
this.updateFlexProperties(e, t, n, U);
|
|
1365
1412
|
break;
|
|
1366
1413
|
case "align-items":
|
|
1367
1414
|
case "align-items--mobile":
|
|
1368
1415
|
case "align-items--tablet":
|
|
1369
1416
|
case "align-items--laptop":
|
|
1370
1417
|
case "align-items--desktop":
|
|
1371
|
-
this.updateFlexProperties(e, t, n,
|
|
1418
|
+
this.updateFlexProperties(e, t, n, H);
|
|
1372
1419
|
break;
|
|
1373
1420
|
case "wrap":
|
|
1374
1421
|
case "wrap--mobile":
|
|
1375
1422
|
case "wrap--tablet":
|
|
1376
1423
|
case "wrap--laptop":
|
|
1377
1424
|
case "wrap--desktop":
|
|
1378
|
-
this.updateFlexProperties(e, t, n,
|
|
1425
|
+
this.updateFlexProperties(e, t, n, W);
|
|
1379
1426
|
break;
|
|
1380
1427
|
case "direction":
|
|
1381
1428
|
case "direction--mobile":
|
|
1382
1429
|
case "direction--tablet":
|
|
1383
1430
|
case "direction--laptop":
|
|
1384
1431
|
case "direction--desktop":
|
|
1385
|
-
this.updateFlexProperties(e, t, n,
|
|
1432
|
+
this.updateFlexProperties(e, t, n, V), this.updateVerticalStyles();
|
|
1433
|
+
break;
|
|
1434
|
+
case "overflow-y":
|
|
1435
|
+
case "overflow-y--mobile":
|
|
1436
|
+
case "overflow-y--tablet":
|
|
1437
|
+
case "overflow-y--laptop":
|
|
1438
|
+
case "overflow-y--desktop":
|
|
1439
|
+
case "max-height":
|
|
1440
|
+
case "max-height--mobile":
|
|
1441
|
+
case "max-height--tablet":
|
|
1442
|
+
case "max-height--laptop":
|
|
1443
|
+
case "max-height--desktop":
|
|
1444
|
+
n && !this.isValidVerticalValue(e, n) && i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
1386
1445
|
break;
|
|
1387
1446
|
case "overflow-x":
|
|
1388
1447
|
case "overflow-x--mobile":
|
|
1389
1448
|
case "overflow-x--tablet":
|
|
1390
1449
|
case "overflow-x--laptop":
|
|
1391
1450
|
case "overflow-x--desktop":
|
|
1392
|
-
this.updateOverflowX(e, t, n,
|
|
1451
|
+
this.updateOverflowX(e, t, n, G);
|
|
1393
1452
|
break;
|
|
1394
1453
|
default: super.attributeChangedCallback(e, t, n);
|
|
1395
1454
|
}
|
|
1396
1455
|
}
|
|
1456
|
+
isValidVerticalValue(e, t) {
|
|
1457
|
+
return e.startsWith("overflow-y") ? G.includes(t) : CSS.supports("max-height", t);
|
|
1458
|
+
}
|
|
1459
|
+
updateVerticalStyles() {
|
|
1460
|
+
for (let t of e.breakpoints) {
|
|
1461
|
+
let e = this.localName === "px-stack" && this.getAttribute(`direction--${t}`) || this.direction, n = e === "column" || e === "column-reverse";
|
|
1462
|
+
for (let e of ["overflow-y", "max-height"]) {
|
|
1463
|
+
let r = this.getAttribute(`${e}--${t}`) || this.getAttribute(e);
|
|
1464
|
+
this.updateStyle(e, t, n && r && this.isValidVerticalValue(e, r) ? r : null);
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1397
1468
|
updateOverflowX(e, t, n, r) {
|
|
1398
|
-
|
|
1469
|
+
C(r, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : i(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
1399
1470
|
}
|
|
1400
|
-
updateFlexProperties(t, n, r,
|
|
1401
|
-
r !== null && !this.checkName(
|
|
1402
|
-
let
|
|
1403
|
-
if (
|
|
1471
|
+
updateFlexProperties(t, n, r, a) {
|
|
1472
|
+
r !== null && !this.checkName(a, r) && i(`"${r}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1473
|
+
let o = t.indexOf("--");
|
|
1474
|
+
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n, r, a);
|
|
1404
1475
|
else {
|
|
1405
|
-
let e = t.slice(0,
|
|
1406
|
-
this.updateStyle(e, n, r || this.getAttribute(e),
|
|
1476
|
+
let e = t.slice(0, o), n = t.slice(o + 2);
|
|
1477
|
+
this.updateStyle(e, n, r || this.getAttribute(e), a);
|
|
1407
1478
|
}
|
|
1408
1479
|
}
|
|
1409
1480
|
updateStyle(e, t, n, r) {
|
|
@@ -1426,214 +1497,274 @@ var B = [
|
|
|
1426
1497
|
return this.getAttribute("direction") ?? "row";
|
|
1427
1498
|
}
|
|
1428
1499
|
set direction(e) {
|
|
1429
|
-
|
|
1500
|
+
o(this, "direction", e);
|
|
1430
1501
|
}
|
|
1431
1502
|
get directionMobile() {
|
|
1432
1503
|
return this.getAttribute("direction--mobile");
|
|
1433
1504
|
}
|
|
1434
1505
|
set directionMobile(e) {
|
|
1435
|
-
|
|
1506
|
+
o(this, "direction--mobile", e);
|
|
1436
1507
|
}
|
|
1437
1508
|
get directionTablet() {
|
|
1438
1509
|
return this.getAttribute("direction--tablet");
|
|
1439
1510
|
}
|
|
1440
1511
|
set directionTablet(e) {
|
|
1441
|
-
|
|
1512
|
+
o(this, "direction--tablet", e);
|
|
1442
1513
|
}
|
|
1443
1514
|
get directionLaptop() {
|
|
1444
1515
|
return this.getAttribute("direction--laptop");
|
|
1445
1516
|
}
|
|
1446
1517
|
set directionLaptop(e) {
|
|
1447
|
-
|
|
1518
|
+
o(this, "direction--laptop", e);
|
|
1448
1519
|
}
|
|
1449
1520
|
get directionDesktop() {
|
|
1450
1521
|
return this.getAttribute("direction--desktop");
|
|
1451
1522
|
}
|
|
1452
1523
|
set directionDesktop(e) {
|
|
1453
|
-
|
|
1524
|
+
o(this, "direction--desktop", e);
|
|
1454
1525
|
}
|
|
1455
1526
|
get gap() {
|
|
1456
1527
|
return this.getAttribute("gap") ?? "none";
|
|
1457
1528
|
}
|
|
1458
1529
|
set gap(e) {
|
|
1459
|
-
|
|
1530
|
+
o(this, "gap", e);
|
|
1460
1531
|
}
|
|
1461
1532
|
get gapMobile() {
|
|
1462
1533
|
return this.getAttribute("gap--mobile");
|
|
1463
1534
|
}
|
|
1464
1535
|
set gapMobile(e) {
|
|
1465
|
-
|
|
1536
|
+
o(this, "gap--mobile", e);
|
|
1466
1537
|
}
|
|
1467
1538
|
get gapTablet() {
|
|
1468
1539
|
return this.getAttribute("gap--tablet");
|
|
1469
1540
|
}
|
|
1470
1541
|
set gapTablet(e) {
|
|
1471
|
-
|
|
1542
|
+
o(this, "gap--tablet", e);
|
|
1472
1543
|
}
|
|
1473
1544
|
get gapLaptop() {
|
|
1474
1545
|
return this.getAttribute("gap--laptop");
|
|
1475
1546
|
}
|
|
1476
1547
|
set gapLaptop(e) {
|
|
1477
|
-
|
|
1548
|
+
o(this, "gap--laptop", e);
|
|
1478
1549
|
}
|
|
1479
1550
|
get gapDesktop() {
|
|
1480
1551
|
return this.getAttribute("gap--desktop");
|
|
1481
1552
|
}
|
|
1482
1553
|
set gapDesktop(e) {
|
|
1483
|
-
|
|
1554
|
+
o(this, "gap--desktop", e);
|
|
1484
1555
|
}
|
|
1485
1556
|
get justifyContent() {
|
|
1486
1557
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
1487
1558
|
}
|
|
1488
1559
|
set justifyContent(e) {
|
|
1489
|
-
|
|
1560
|
+
o(this, "justify-content", e);
|
|
1490
1561
|
}
|
|
1491
1562
|
get justifyContentMobile() {
|
|
1492
1563
|
return this.getAttribute("justify-content--mobile");
|
|
1493
1564
|
}
|
|
1494
1565
|
set justifyContentMobile(e) {
|
|
1495
|
-
|
|
1566
|
+
o(this, "justify-content--mobile", e);
|
|
1496
1567
|
}
|
|
1497
1568
|
get justifyContentTablet() {
|
|
1498
1569
|
return this.getAttribute("justify-content--tablet");
|
|
1499
1570
|
}
|
|
1500
1571
|
set justifyContentTablet(e) {
|
|
1501
|
-
|
|
1572
|
+
o(this, "justify-content--tablet", e);
|
|
1502
1573
|
}
|
|
1503
1574
|
get justifyContentLaptop() {
|
|
1504
1575
|
return this.getAttribute("justify-content--laptop");
|
|
1505
1576
|
}
|
|
1506
1577
|
set justifyContentLaptop(e) {
|
|
1507
|
-
|
|
1578
|
+
o(this, "justify-content--laptop", e);
|
|
1508
1579
|
}
|
|
1509
1580
|
get justifyContentDesktop() {
|
|
1510
1581
|
return this.getAttribute("justify-content--desktop");
|
|
1511
1582
|
}
|
|
1512
1583
|
set justifyContentDesktop(e) {
|
|
1513
|
-
|
|
1584
|
+
o(this, "justify-content--desktop", e);
|
|
1514
1585
|
}
|
|
1515
1586
|
get alignItems() {
|
|
1516
1587
|
return this.getAttribute("align-items") ?? "stretch";
|
|
1517
1588
|
}
|
|
1518
1589
|
set alignItems(e) {
|
|
1519
|
-
|
|
1590
|
+
o(this, "align-items", e);
|
|
1520
1591
|
}
|
|
1521
1592
|
get alignItemsMobile() {
|
|
1522
1593
|
return this.getAttribute("align-items--mobile");
|
|
1523
1594
|
}
|
|
1524
1595
|
set alignItemsMobile(e) {
|
|
1525
|
-
|
|
1596
|
+
o(this, "align-items--mobile", e);
|
|
1526
1597
|
}
|
|
1527
1598
|
get alignItemsTablet() {
|
|
1528
1599
|
return this.getAttribute("align-items--tablet");
|
|
1529
1600
|
}
|
|
1530
1601
|
set alignItemsTablet(e) {
|
|
1531
|
-
|
|
1602
|
+
o(this, "align-items--tablet", e);
|
|
1532
1603
|
}
|
|
1533
1604
|
get alignItemsLaptop() {
|
|
1534
1605
|
return this.getAttribute("align-items--laptop");
|
|
1535
1606
|
}
|
|
1536
1607
|
set alignItemsLaptop(e) {
|
|
1537
|
-
|
|
1608
|
+
o(this, "align-items--laptop", e);
|
|
1538
1609
|
}
|
|
1539
1610
|
get alignItemsDesktop() {
|
|
1540
1611
|
return this.getAttribute("align-items--desktop");
|
|
1541
1612
|
}
|
|
1542
1613
|
set alignItemsDesktop(e) {
|
|
1543
|
-
|
|
1614
|
+
o(this, "align-items--desktop", e);
|
|
1544
1615
|
}
|
|
1545
1616
|
get wrap() {
|
|
1546
1617
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
1547
1618
|
}
|
|
1548
1619
|
set wrap(e) {
|
|
1549
|
-
|
|
1620
|
+
o(this, "wrap", e);
|
|
1550
1621
|
}
|
|
1551
1622
|
get wrapMobile() {
|
|
1552
1623
|
return this.getAttribute("wrap--mobile");
|
|
1553
1624
|
}
|
|
1554
1625
|
set wrapMobile(e) {
|
|
1555
|
-
|
|
1626
|
+
o(this, "wrap--mobile", e);
|
|
1556
1627
|
}
|
|
1557
1628
|
get wrapTablet() {
|
|
1558
1629
|
return this.getAttribute("wrap--tablet");
|
|
1559
1630
|
}
|
|
1560
1631
|
set wrapTablet(e) {
|
|
1561
|
-
|
|
1632
|
+
o(this, "wrap--tablet", e);
|
|
1562
1633
|
}
|
|
1563
1634
|
get wrapLaptop() {
|
|
1564
1635
|
return this.getAttribute("wrap--laptop");
|
|
1565
1636
|
}
|
|
1566
1637
|
set wrapLaptop(e) {
|
|
1567
|
-
|
|
1638
|
+
o(this, "wrap--laptop", e);
|
|
1568
1639
|
}
|
|
1569
1640
|
get wrapDesktop() {
|
|
1570
1641
|
return this.getAttribute("wrap--desktop");
|
|
1571
1642
|
}
|
|
1572
1643
|
set wrapDesktop(e) {
|
|
1573
|
-
|
|
1644
|
+
o(this, "wrap--desktop", e);
|
|
1574
1645
|
}
|
|
1575
1646
|
get overflowX() {
|
|
1576
1647
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
1577
1648
|
}
|
|
1578
1649
|
set overflowX(e) {
|
|
1579
|
-
|
|
1650
|
+
o(this, "overflow-x", e);
|
|
1580
1651
|
}
|
|
1581
1652
|
get overflowXMobile() {
|
|
1582
1653
|
return this.getAttribute("overflow-x--mobile");
|
|
1583
1654
|
}
|
|
1584
1655
|
set overflowXMobile(e) {
|
|
1585
|
-
|
|
1656
|
+
o(this, "overflow-x--mobile", e);
|
|
1586
1657
|
}
|
|
1587
1658
|
get overflowXTablet() {
|
|
1588
1659
|
return this.getAttribute("overflow-x--tablet");
|
|
1589
1660
|
}
|
|
1590
1661
|
set overflowXTablet(e) {
|
|
1591
|
-
|
|
1662
|
+
o(this, "overflow-x--tablet", e);
|
|
1592
1663
|
}
|
|
1593
1664
|
get overflowXLaptop() {
|
|
1594
1665
|
return this.getAttribute("overflow-x--laptop");
|
|
1595
1666
|
}
|
|
1596
1667
|
set overflowXLaptop(e) {
|
|
1597
|
-
|
|
1668
|
+
o(this, "overflow-x--laptop", e);
|
|
1598
1669
|
}
|
|
1599
1670
|
get overflowXDesktop() {
|
|
1600
1671
|
return this.getAttribute("overflow-x--desktop");
|
|
1601
1672
|
}
|
|
1602
1673
|
set overflowXDesktop(e) {
|
|
1603
|
-
|
|
1674
|
+
o(this, "overflow-x--desktop", e);
|
|
1675
|
+
}
|
|
1676
|
+
get overflowY() {
|
|
1677
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
1678
|
+
}
|
|
1679
|
+
set overflowY(e) {
|
|
1680
|
+
o(this, "overflow-y", e);
|
|
1681
|
+
}
|
|
1682
|
+
get overflowYMobile() {
|
|
1683
|
+
return this.getAttribute("overflow-y--mobile");
|
|
1684
|
+
}
|
|
1685
|
+
set overflowYMobile(e) {
|
|
1686
|
+
o(this, "overflow-y--mobile", e);
|
|
1687
|
+
}
|
|
1688
|
+
get overflowYTablet() {
|
|
1689
|
+
return this.getAttribute("overflow-y--tablet");
|
|
1690
|
+
}
|
|
1691
|
+
set overflowYTablet(e) {
|
|
1692
|
+
o(this, "overflow-y--tablet", e);
|
|
1693
|
+
}
|
|
1694
|
+
get overflowYLaptop() {
|
|
1695
|
+
return this.getAttribute("overflow-y--laptop");
|
|
1696
|
+
}
|
|
1697
|
+
set overflowYLaptop(e) {
|
|
1698
|
+
o(this, "overflow-y--laptop", e);
|
|
1699
|
+
}
|
|
1700
|
+
get overflowYDesktop() {
|
|
1701
|
+
return this.getAttribute("overflow-y--desktop");
|
|
1702
|
+
}
|
|
1703
|
+
set overflowYDesktop(e) {
|
|
1704
|
+
o(this, "overflow-y--desktop", e);
|
|
1705
|
+
}
|
|
1706
|
+
get maxHeight() {
|
|
1707
|
+
return this.getAttribute("max-height") ?? "none";
|
|
1708
|
+
}
|
|
1709
|
+
set maxHeight(e) {
|
|
1710
|
+
o(this, "max-height", e);
|
|
1711
|
+
}
|
|
1712
|
+
get maxHeightMobile() {
|
|
1713
|
+
return this.getAttribute("max-height--mobile");
|
|
1714
|
+
}
|
|
1715
|
+
set maxHeightMobile(e) {
|
|
1716
|
+
o(this, "max-height--mobile", e);
|
|
1717
|
+
}
|
|
1718
|
+
get maxHeightTablet() {
|
|
1719
|
+
return this.getAttribute("max-height--tablet");
|
|
1720
|
+
}
|
|
1721
|
+
set maxHeightTablet(e) {
|
|
1722
|
+
o(this, "max-height--tablet", e);
|
|
1723
|
+
}
|
|
1724
|
+
get maxHeightLaptop() {
|
|
1725
|
+
return this.getAttribute("max-height--laptop");
|
|
1726
|
+
}
|
|
1727
|
+
set maxHeightLaptop(e) {
|
|
1728
|
+
o(this, "max-height--laptop", e);
|
|
1729
|
+
}
|
|
1730
|
+
get maxHeightDesktop() {
|
|
1731
|
+
return this.getAttribute("max-height--desktop");
|
|
1732
|
+
}
|
|
1733
|
+
set maxHeightDesktop(e) {
|
|
1734
|
+
o(this, "max-height--desktop", e);
|
|
1604
1735
|
}
|
|
1605
1736
|
get $el() {
|
|
1606
1737
|
return this.shadowRoot.firstElementChild;
|
|
1607
1738
|
}
|
|
1608
1739
|
};
|
|
1609
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1610
|
-
var
|
|
1740
|
+
customElements.get("px-stack") || customElements.define("px-stack", K);
|
|
1741
|
+
var q = (e) => e === "direction" || e.startsWith("direction--"), se = class extends K {
|
|
1611
1742
|
get direction() {
|
|
1612
1743
|
return "column";
|
|
1613
1744
|
}
|
|
1614
1745
|
set direction(e) {
|
|
1615
|
-
|
|
1746
|
+
o(this, "direction", e);
|
|
1616
1747
|
}
|
|
1617
1748
|
attributeChangedCallback(e, t, n) {
|
|
1618
|
-
|
|
1749
|
+
q(e) || super.attributeChangedCallback(e, t, n);
|
|
1619
1750
|
}
|
|
1620
1751
|
};
|
|
1621
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
1622
|
-
var
|
|
1752
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", se);
|
|
1753
|
+
var ce = class extends K {
|
|
1623
1754
|
get direction() {
|
|
1624
1755
|
return "row";
|
|
1625
1756
|
}
|
|
1626
1757
|
set direction(e) {
|
|
1627
|
-
|
|
1758
|
+
o(this, "direction", e);
|
|
1628
1759
|
}
|
|
1629
1760
|
attributeChangedCallback(e, t, n) {
|
|
1630
|
-
|
|
1761
|
+
q(e) || super.attributeChangedCallback(e, t, n);
|
|
1631
1762
|
}
|
|
1632
1763
|
};
|
|
1633
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
1764
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ce);
|
|
1634
1765
|
//#endregion
|
|
1635
1766
|
//#region ../Layout/src/Spacer.ts
|
|
1636
|
-
var
|
|
1767
|
+
var le = class extends HTMLElement {
|
|
1637
1768
|
constructor() {
|
|
1638
1769
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1639
1770
|
}
|
|
@@ -1679,14 +1810,14 @@ var ue = class extends HTMLElement {
|
|
|
1679
1810
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1680
1811
|
}
|
|
1681
1812
|
};
|
|
1682
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1813
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", le);
|
|
1683
1814
|
//#endregion
|
|
1684
1815
|
//#region ../Layout/src/Page.css?inline
|
|
1685
|
-
var
|
|
1686
|
-
|
|
1687
|
-
var
|
|
1816
|
+
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();
|
|
1817
|
+
J.replaceSync(ue);
|
|
1818
|
+
var de = class extends S {
|
|
1688
1819
|
constructor() {
|
|
1689
|
-
super(
|
|
1820
|
+
super(J), this.template = () => `
|
|
1690
1821
|
<px-container border-radius="none" padding="none">
|
|
1691
1822
|
<px-vstack>
|
|
1692
1823
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1779,7 +1910,7 @@ var fe = class extends l {
|
|
|
1779
1910
|
</px-container>
|
|
1780
1911
|
</px-vstack>
|
|
1781
1912
|
</px-container>
|
|
1782
|
-
`,
|
|
1913
|
+
`, A(this.shadowRoot, this.template());
|
|
1783
1914
|
}
|
|
1784
1915
|
static get observedAttributes() {
|
|
1785
1916
|
return [
|
|
@@ -1848,7 +1979,7 @@ var fe = class extends l {
|
|
|
1848
1979
|
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
1849
1980
|
break;
|
|
1850
1981
|
case "background-color":
|
|
1851
|
-
this.$bodyContainer.setAttribute("background-color",
|
|
1982
|
+
this.$bodyContainer.setAttribute("background-color", _.indexOf(n) > 0 ? n : "none");
|
|
1852
1983
|
break;
|
|
1853
1984
|
case "padding-vertical":
|
|
1854
1985
|
this.handlePaddingVerticalChange(n);
|
|
@@ -1866,10 +1997,10 @@ var fe = class extends l {
|
|
|
1866
1997
|
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;
|
|
1867
1998
|
}
|
|
1868
1999
|
};
|
|
1869
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
2000
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", de);
|
|
1870
2001
|
//#endregion
|
|
1871
2002
|
//#region ../Icon/common/src/IconSet.ts
|
|
1872
|
-
var
|
|
2003
|
+
var fe = class extends HTMLElement {
|
|
1873
2004
|
constructor() {
|
|
1874
2005
|
super();
|
|
1875
2006
|
}
|
|
@@ -1903,8 +2034,8 @@ var pe = class extends HTMLElement {
|
|
|
1903
2034
|
e && e.remove();
|
|
1904
2035
|
}
|
|
1905
2036
|
};
|
|
1906
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
1907
|
-
var
|
|
2037
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", fe);
|
|
2038
|
+
var pe = [
|
|
1908
2039
|
"Inherit",
|
|
1909
2040
|
"Brand",
|
|
1910
2041
|
"Accent",
|
|
@@ -1918,11 +2049,11 @@ var me = [
|
|
|
1918
2049
|
"StateHover",
|
|
1919
2050
|
"StateActive",
|
|
1920
2051
|
"StateDisabled"
|
|
1921
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
1922
|
-
|
|
1923
|
-
var
|
|
2052
|
+
].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();
|
|
2053
|
+
Y.replaceSync(me);
|
|
2054
|
+
var he = class e extends S {
|
|
1924
2055
|
static {
|
|
1925
|
-
this.template =
|
|
2056
|
+
this.template = k("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
1926
2057
|
}
|
|
1927
2058
|
#e = null;
|
|
1928
2059
|
#t;
|
|
@@ -1939,7 +2070,7 @@ var Y = class e extends l {
|
|
|
1939
2070
|
];
|
|
1940
2071
|
}
|
|
1941
2072
|
constructor(...t) {
|
|
1942
|
-
super(...t,
|
|
2073
|
+
super(...t, Y), A(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
1943
2074
|
}
|
|
1944
2075
|
attributeChangedCallback(e, t, n) {
|
|
1945
2076
|
if (t !== n) switch (e) {
|
|
@@ -1950,7 +2081,7 @@ var Y = class e extends l {
|
|
|
1950
2081
|
this.updateAttribute(e, t, n, p);
|
|
1951
2082
|
break;
|
|
1952
2083
|
case "color":
|
|
1953
|
-
this.updateAttribute(e, t, n,
|
|
2084
|
+
this.updateAttribute(e, t, n, pe);
|
|
1954
2085
|
break;
|
|
1955
2086
|
case "disabled":
|
|
1956
2087
|
this.color = "state-disabled";
|
|
@@ -1968,7 +2099,7 @@ var Y = class e extends l {
|
|
|
1968
2099
|
!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"));
|
|
1969
2100
|
}
|
|
1970
2101
|
updateAttribute(e, t, n, r) {
|
|
1971
|
-
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) ||
|
|
2102
|
+
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()}`);
|
|
1972
2103
|
}
|
|
1973
2104
|
updateName(e, t) {
|
|
1974
2105
|
this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
|
|
@@ -1980,46 +2111,46 @@ var Y = class e extends l {
|
|
|
1980
2111
|
return this.getAttribute("name");
|
|
1981
2112
|
}
|
|
1982
2113
|
set name(e) {
|
|
1983
|
-
|
|
2114
|
+
o(this, "name", e);
|
|
1984
2115
|
}
|
|
1985
2116
|
get size() {
|
|
1986
2117
|
return this.getAttribute("size");
|
|
1987
2118
|
}
|
|
1988
2119
|
set size(e) {
|
|
1989
|
-
|
|
2120
|
+
o(this, "size", e);
|
|
1990
2121
|
}
|
|
1991
2122
|
get color() {
|
|
1992
2123
|
return this.getAttribute("color");
|
|
1993
2124
|
}
|
|
1994
2125
|
set color(e) {
|
|
1995
|
-
|
|
2126
|
+
o(this, "color", e);
|
|
1996
2127
|
}
|
|
1997
2128
|
get arialabel() {
|
|
1998
2129
|
return this.getAttribute("aria-label");
|
|
1999
2130
|
}
|
|
2000
2131
|
set arialabel(e) {
|
|
2001
|
-
|
|
2132
|
+
o(this, "aria-label", e);
|
|
2002
2133
|
}
|
|
2003
2134
|
get inverted() {
|
|
2004
2135
|
return this.hasAttribute("inverted");
|
|
2005
2136
|
}
|
|
2006
2137
|
set inverted(e) {
|
|
2007
|
-
|
|
2138
|
+
s(this, "inverted", e);
|
|
2008
2139
|
}
|
|
2009
2140
|
get from() {
|
|
2010
2141
|
return this.getAttribute("from");
|
|
2011
2142
|
}
|
|
2012
2143
|
set from(e) {
|
|
2013
|
-
|
|
2144
|
+
o(this, "from", e);
|
|
2014
2145
|
}
|
|
2015
2146
|
get disabled() {
|
|
2016
2147
|
return this.hasAttribute("disabled");
|
|
2017
2148
|
}
|
|
2018
2149
|
set disabled(e) {
|
|
2019
|
-
|
|
2150
|
+
s(this, "disabled", e);
|
|
2020
2151
|
}
|
|
2021
2152
|
};
|
|
2022
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
2153
|
+
customElements.get("px-icon") || customElements.define("px-icon", he);
|
|
2023
2154
|
//#endregion
|
|
2024
2155
|
//#region src/toaster.css?inline
|
|
2025
2156
|
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();
|
|
@@ -2032,7 +2163,7 @@ var Z = [
|
|
|
2032
2163
|
"warning"
|
|
2033
2164
|
], _e = "px.lavender.toaster.hide", Q = 0, $ = class e extends HTMLElement {
|
|
2034
2165
|
static {
|
|
2035
|
-
this.template =
|
|
2166
|
+
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>");
|
|
2036
2167
|
}
|
|
2037
2168
|
constructor() {
|
|
2038
2169
|
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 = () => {
|
|
@@ -2046,7 +2177,7 @@ var Z = [
|
|
|
2046
2177
|
this.isFocused = !!t && t !== this.$dialog && (this.contains(t) || this.$dialog?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2047
2178
|
};
|
|
2048
2179
|
let t = this.attachShadow({ mode: "open" });
|
|
2049
|
-
t && (
|
|
2180
|
+
t && (A(t, e.template), t.adoptedStyleSheets = [X]);
|
|
2050
2181
|
}
|
|
2051
2182
|
connectedCallback() {
|
|
2052
2183
|
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();
|
|
@@ -2124,8 +2255,8 @@ var Z = [
|
|
|
2124
2255
|
this.popoverButtonsCleanups.forEach((e) => e()), this.popoverButtonsCleanups = [];
|
|
2125
2256
|
}
|
|
2126
2257
|
handleStatusChange(e, t) {
|
|
2127
|
-
if (!
|
|
2128
|
-
|
|
2258
|
+
if (!C(t, e)) {
|
|
2259
|
+
i(`"${e}" is not a valid background-color value for ${this.tagName.toLowerCase()}.
|
|
2129
2260
|
Allowed values are: "${t.join("\", \"")}".`);
|
|
2130
2261
|
return;
|
|
2131
2262
|
}
|
|
@@ -2155,13 +2286,13 @@ var Z = [
|
|
|
2155
2286
|
return this.getAttribute("status") || "";
|
|
2156
2287
|
}
|
|
2157
2288
|
set status(e) {
|
|
2158
|
-
|
|
2289
|
+
o(this, "status", e);
|
|
2159
2290
|
}
|
|
2160
2291
|
get open() {
|
|
2161
2292
|
return this.hasAttribute("open");
|
|
2162
2293
|
}
|
|
2163
2294
|
set open(e) {
|
|
2164
|
-
|
|
2295
|
+
s(this, "open", e);
|
|
2165
2296
|
}
|
|
2166
2297
|
get duration() {
|
|
2167
2298
|
if (!this.hasAttribute("duration")) return Q;
|
|
@@ -2169,13 +2300,13 @@ var Z = [
|
|
|
2169
2300
|
return Number.isNaN(e) ? Q : e;
|
|
2170
2301
|
}
|
|
2171
2302
|
set duration(e) {
|
|
2172
|
-
|
|
2303
|
+
o(this, "duration", e);
|
|
2173
2304
|
}
|
|
2174
2305
|
get inverted() {
|
|
2175
2306
|
return this.hasAttribute("inverted");
|
|
2176
2307
|
}
|
|
2177
2308
|
set inverted(e) {
|
|
2178
|
-
|
|
2309
|
+
s(this, "inverted", e);
|
|
2179
2310
|
}
|
|
2180
2311
|
};
|
|
2181
2312
|
customElements.get("px-toaster") || customElements.define("px-toaster", $);
|