@proximus/lavender-content-header 1.4.1 → 1.4.2
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/ContentHeader.d.ts +7 -3
- package/dist/index.es.js +508 -191
- package/package.json +1 -1
package/dist/ContentHeader.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import '@proximus/lavender-section';
|
|
2
2
|
import { type Section } from '@proximus/lavender-section';
|
|
3
|
-
import { H1 } from '@proximus/lavender-heading';
|
|
4
|
-
import
|
|
3
|
+
import type { H1 } from '@proximus/lavender-heading';
|
|
4
|
+
import '@proximus/lavender-heading';
|
|
5
|
+
import '@proximus/lavender-container';
|
|
6
|
+
import '@proximus/lavender-layout';
|
|
7
|
+
import type { Grid } from '@proximus/lavender-grid';
|
|
8
|
+
import '@proximus/lavender-grid';
|
|
5
9
|
import { PxElement } from '@proximus/lavender-common';
|
|
6
10
|
export declare class ContentHeader extends PxElement<HTMLDivElement> {
|
|
7
11
|
static nativeName: string;
|
|
@@ -10,7 +14,7 @@ export declare class ContentHeader extends PxElement<HTMLDivElement> {
|
|
|
10
14
|
static get observedAttributes(): string[];
|
|
11
15
|
connectedCallback(): void;
|
|
12
16
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
13
|
-
createGridding(): void;
|
|
17
|
+
createGridding(value?: string): void;
|
|
14
18
|
get $grid(): Grid;
|
|
15
19
|
get $section(): Section;
|
|
16
20
|
get $h1(): H1;
|
package/dist/index.es.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const O = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", H = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', 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-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', w = new CSSStyleSheet();
|
|
3
|
-
w.replaceSync(E);
|
|
4
|
-
|
|
1
|
+
import { cssTokenBreakpoints as s, paddingValues as d, VerticallyExtendedElement as z, boxShadowValues as R, backgroundSizeValues as x, noBorderRadiusValues as P, borderRadiusValues as D, borderSideValues as E, borderValues as H, gradientValues as A, backgroundColorValues as p, borderColorValues as O, checkName as $, WithExtraAttributes as j, AttributeBreakpointHandlerDelegate as q, gapValues as C, PxElement as w } from "@proximus/lavender-common";
|
|
2
|
+
import "@proximus/lavender-heading";
|
|
3
|
+
const G = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", X = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', F = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', S = new CSSStyleSheet();
|
|
4
|
+
S.replaceSync(F);
|
|
5
|
+
const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b = "px-padding", _ = [
|
|
6
|
+
s(
|
|
7
|
+
"padding",
|
|
8
|
+
l,
|
|
9
|
+
d,
|
|
10
|
+
b,
|
|
11
|
+
"--container-padding"
|
|
12
|
+
),
|
|
13
|
+
s(
|
|
14
|
+
"padding-inline",
|
|
15
|
+
l,
|
|
16
|
+
d,
|
|
17
|
+
b
|
|
18
|
+
),
|
|
19
|
+
s(
|
|
20
|
+
"padding-block",
|
|
21
|
+
l,
|
|
22
|
+
d,
|
|
23
|
+
b
|
|
24
|
+
),
|
|
25
|
+
s(
|
|
26
|
+
"padding-top",
|
|
27
|
+
l,
|
|
28
|
+
d,
|
|
29
|
+
b
|
|
30
|
+
),
|
|
31
|
+
s(
|
|
32
|
+
"padding-right",
|
|
33
|
+
l,
|
|
34
|
+
d,
|
|
35
|
+
b,
|
|
36
|
+
"--container-padding-right"
|
|
37
|
+
),
|
|
38
|
+
s(
|
|
39
|
+
"padding-bottom",
|
|
40
|
+
l,
|
|
41
|
+
d,
|
|
42
|
+
b
|
|
43
|
+
),
|
|
44
|
+
s(
|
|
45
|
+
"padding-left",
|
|
46
|
+
l,
|
|
47
|
+
d,
|
|
48
|
+
b,
|
|
49
|
+
"--container-padding-left"
|
|
50
|
+
)
|
|
51
|
+
], k = class k extends z {
|
|
5
52
|
constructor() {
|
|
6
|
-
super(
|
|
7
|
-
w,
|
|
8
|
-
d(
|
|
9
|
-
"padding",
|
|
10
|
-
l,
|
|
11
|
-
s,
|
|
12
|
-
b,
|
|
13
|
-
"--container-padding"
|
|
14
|
-
),
|
|
15
|
-
d(
|
|
16
|
-
"padding-inline",
|
|
17
|
-
l,
|
|
18
|
-
s,
|
|
19
|
-
b
|
|
20
|
-
),
|
|
21
|
-
d(
|
|
22
|
-
"padding-block",
|
|
23
|
-
l,
|
|
24
|
-
s,
|
|
25
|
-
b
|
|
26
|
-
),
|
|
27
|
-
d(
|
|
28
|
-
"padding-top",
|
|
29
|
-
l,
|
|
30
|
-
s,
|
|
31
|
-
b
|
|
32
|
-
),
|
|
33
|
-
d(
|
|
34
|
-
"padding-right",
|
|
35
|
-
l,
|
|
36
|
-
s,
|
|
37
|
-
b,
|
|
38
|
-
"--container-padding-right"
|
|
39
|
-
),
|
|
40
|
-
d(
|
|
41
|
-
"padding-bottom",
|
|
42
|
-
l,
|
|
43
|
-
s,
|
|
44
|
-
b
|
|
45
|
-
),
|
|
46
|
-
d(
|
|
47
|
-
"padding-left",
|
|
48
|
-
l,
|
|
49
|
-
s,
|
|
50
|
-
b,
|
|
51
|
-
"--container-padding-left"
|
|
52
|
-
)
|
|
53
|
-
), this.template = () => `<div class="container">
|
|
53
|
+
super(S, ..._), this.template = () => `<div class="container">
|
|
54
54
|
<slot></slot>
|
|
55
55
|
<slot name="anchor-left"></slot>
|
|
56
56
|
<slot name="anchor-right"></slot>
|
|
@@ -98,9 +98,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
98
98
|
subtree: !0,
|
|
99
99
|
characterData: !0
|
|
100
100
|
}), this._bgObserver = new IntersectionObserver((t) => {
|
|
101
|
-
t.forEach((
|
|
101
|
+
t.forEach((i) => {
|
|
102
102
|
var e;
|
|
103
|
-
|
|
103
|
+
i.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
|
|
104
104
|
});
|
|
105
105
|
}), this._bgObserver.observe(this.$el);
|
|
106
106
|
}
|
|
@@ -108,11 +108,11 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
108
108
|
var t;
|
|
109
109
|
(t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
|
|
110
110
|
}
|
|
111
|
-
attributeChangedCallback(t,
|
|
112
|
-
if (
|
|
111
|
+
attributeChangedCallback(t, i, e) {
|
|
112
|
+
if (i !== e)
|
|
113
113
|
switch (t) {
|
|
114
114
|
case "border":
|
|
115
|
-
this.updateAttribute(t,
|
|
115
|
+
this.updateAttribute(t, i, e, H);
|
|
116
116
|
break;
|
|
117
117
|
case "border-color":
|
|
118
118
|
this.updateBorderColor(t, e);
|
|
@@ -121,14 +121,14 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
121
121
|
case "border-side--mobile":
|
|
122
122
|
case "border-side--tablet":
|
|
123
123
|
case "border-side--laptop":
|
|
124
|
-
this.updateAttribute(t,
|
|
124
|
+
this.updateAttribute(t, i, e, E);
|
|
125
125
|
break;
|
|
126
126
|
case "border-radius":
|
|
127
127
|
this.updateAttribute(
|
|
128
128
|
t,
|
|
129
|
-
|
|
129
|
+
i,
|
|
130
130
|
e,
|
|
131
|
-
|
|
131
|
+
D
|
|
132
132
|
);
|
|
133
133
|
break;
|
|
134
134
|
case "no-border-radius":
|
|
@@ -137,9 +137,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
137
137
|
case "no-border-radius--laptop":
|
|
138
138
|
this.updateNoBorderRadius(
|
|
139
139
|
t,
|
|
140
|
-
|
|
140
|
+
i,
|
|
141
141
|
e,
|
|
142
|
-
|
|
142
|
+
P
|
|
143
143
|
);
|
|
144
144
|
break;
|
|
145
145
|
case "background-color":
|
|
@@ -157,7 +157,7 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
157
157
|
case "background-size":
|
|
158
158
|
this.updateAttribute(
|
|
159
159
|
t,
|
|
160
|
-
|
|
160
|
+
i,
|
|
161
161
|
e,
|
|
162
162
|
x
|
|
163
163
|
);
|
|
@@ -172,13 +172,13 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
172
172
|
e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
|
|
173
173
|
break;
|
|
174
174
|
case "box-shadow":
|
|
175
|
-
this.updateAttribute(t,
|
|
175
|
+
this.updateAttribute(t, i, e, R);
|
|
176
176
|
break;
|
|
177
177
|
case "anchor-offset":
|
|
178
|
-
this.updateAnchorOffset(
|
|
178
|
+
this.updateAnchorOffset(i, e, d);
|
|
179
179
|
break;
|
|
180
180
|
default:
|
|
181
|
-
super.attributeChangedCallback(t,
|
|
181
|
+
super.attributeChangedCallback(t, i, e);
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -188,101 +188,101 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
188
188
|
"background-image--mobile",
|
|
189
189
|
"background-image--tablet",
|
|
190
190
|
"background-image--laptop"
|
|
191
|
-
].forEach((
|
|
192
|
-
const e = this.getAttribute(
|
|
193
|
-
e && this.updateBackgroundImg(
|
|
191
|
+
].forEach((i) => {
|
|
192
|
+
const e = this.getAttribute(i);
|
|
193
|
+
e && this.updateBackgroundImg(i, e);
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
updateBackgroundImg(t,
|
|
197
|
-
this.$el.style.setProperty(`--${t}`, `url("${
|
|
196
|
+
updateBackgroundImg(t, i) {
|
|
197
|
+
this.$el.style.setProperty(`--${t}`, `url("${i}")`);
|
|
198
198
|
}
|
|
199
|
-
updateGradient(t,
|
|
200
|
-
if (this.checkName(A,
|
|
199
|
+
updateGradient(t, i) {
|
|
200
|
+
if (this.checkName(A, i)) {
|
|
201
201
|
const e = this.splitAttrNameFromBreakpoint(t);
|
|
202
202
|
t = e.attrName;
|
|
203
203
|
const o = e.breakpoint;
|
|
204
204
|
this.$el.style.setProperty(
|
|
205
205
|
`--${t}${o}`,
|
|
206
|
-
`linear-gradient(var(--px-color-background-gradient-${
|
|
206
|
+
`linear-gradient(var(--px-color-background-gradient-${i}))`
|
|
207
207
|
);
|
|
208
208
|
} else
|
|
209
|
-
console.error(`${
|
|
209
|
+
console.error(`${i} is not an allowed background-gradient value`);
|
|
210
210
|
}
|
|
211
|
-
updateBackgroundColor(t,
|
|
212
|
-
const e =
|
|
213
|
-
if (this.checkName(
|
|
214
|
-
const o = this.splitAttrNameFromBreakpoint(t),
|
|
211
|
+
updateBackgroundColor(t, i) {
|
|
212
|
+
const e = i.startsWith("surface-");
|
|
213
|
+
if (this.checkName(p, i)) {
|
|
214
|
+
const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
|
|
215
215
|
this.$el.style.setProperty(
|
|
216
|
-
`--${o.attrName}${
|
|
217
|
-
`var(--px-color-background-${
|
|
216
|
+
`--${o.attrName}${r}`,
|
|
217
|
+
`var(--px-color-background-${i}${e ? "" : "-default"})`
|
|
218
218
|
), this.$el.style.setProperty(
|
|
219
|
-
`--${o.attrName}-inverted${
|
|
220
|
-
`var(--px-color-background-${
|
|
219
|
+
`--${o.attrName}-inverted${r}`,
|
|
220
|
+
`var(--px-color-background-${i}${e ? "" : "-inverted"})`
|
|
221
221
|
);
|
|
222
222
|
} else
|
|
223
|
-
console.error(`${
|
|
223
|
+
console.error(`${i} is not an allowed ${t} value`);
|
|
224
224
|
}
|
|
225
|
-
updateBorderColor(t,
|
|
226
|
-
this.checkName(
|
|
225
|
+
updateBorderColor(t, i) {
|
|
226
|
+
this.checkName(O, i) ? (this.$el.style.setProperty(
|
|
227
227
|
`--${t}`,
|
|
228
|
-
`var(--px-color-border-${
|
|
228
|
+
`var(--px-color-border-${i}-default)`
|
|
229
229
|
), this.$el.style.setProperty(
|
|
230
230
|
`--${t}-inverted`,
|
|
231
|
-
`var(--px-color-border-${
|
|
232
|
-
)) : console.error(`${
|
|
231
|
+
`var(--px-color-border-${i}-inverted)`
|
|
232
|
+
)) : console.error(`${i} is not an allowed ${t} value`);
|
|
233
233
|
}
|
|
234
|
-
updateNoBorderRadius(t,
|
|
234
|
+
updateNoBorderRadius(t, i, e, o) {
|
|
235
235
|
if (!this.checkName(o, e))
|
|
236
236
|
console.error(`${e} is not an allowed ${t} value`);
|
|
237
237
|
else {
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
`${
|
|
238
|
+
const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
|
|
239
|
+
i !== null && i !== "" && this.$el.classList.toggle(
|
|
240
|
+
`${r.attrName}-${i}${a}`
|
|
241
241
|
), e !== null && e !== "" && this.$el.classList.toggle(
|
|
242
|
-
`${
|
|
242
|
+
`${r.attrName}-${e}${a}`
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
updateAttribute(t,
|
|
246
|
+
updateAttribute(t, i, e, o) {
|
|
247
247
|
if (!this.checkName(o, e))
|
|
248
248
|
console.error(`${e} is not an allowed ${t} value`);
|
|
249
249
|
else {
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
`${
|
|
250
|
+
const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
|
|
251
|
+
i !== null && i !== "" && this.$el.classList.toggle(
|
|
252
|
+
`${r.attrName}-${i}${a}`
|
|
253
253
|
), e !== null && e !== "" && this.$el.classList.toggle(
|
|
254
|
-
`${
|
|
254
|
+
`${r.attrName}-${e}${a}`
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
splitAttrNameFromBreakpoint(t) {
|
|
259
|
-
let
|
|
259
|
+
let i = "";
|
|
260
260
|
if (["--mobile", "--tablet", "--laptop"].some(
|
|
261
261
|
(e) => t.includes(e)
|
|
262
262
|
)) {
|
|
263
263
|
const e = t.split("--");
|
|
264
|
-
t = e[0],
|
|
264
|
+
t = e[0], i = `--${e[1]}`;
|
|
265
265
|
}
|
|
266
|
-
return { attrName: t, breakpoint:
|
|
266
|
+
return { attrName: t, breakpoint: i };
|
|
267
267
|
}
|
|
268
|
-
updateAnchorOffset(t,
|
|
269
|
-
if (
|
|
270
|
-
console.error(`${
|
|
268
|
+
updateAnchorOffset(t, i, e) {
|
|
269
|
+
if (!$(e, i)) {
|
|
270
|
+
console.error(`${i} is not a valid anchor-offset value`);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
const o = (
|
|
274
|
-
|
|
273
|
+
const o = (r) => {
|
|
274
|
+
r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
|
|
275
275
|
"--container-anchor-offset--mobile",
|
|
276
|
-
`var(--px-padding-${
|
|
276
|
+
`var(--px-padding-${r}-mobile)`
|
|
277
277
|
), this.$el.style.setProperty(
|
|
278
278
|
"--container-anchor-offset--tablet",
|
|
279
|
-
`var(--px-padding-${
|
|
279
|
+
`var(--px-padding-${r}-tablet)`
|
|
280
280
|
), this.$el.style.setProperty(
|
|
281
281
|
"--container-anchor-offset--laptop",
|
|
282
|
-
`var(--px-padding-${
|
|
282
|
+
`var(--px-padding-${r}-laptop)`
|
|
283
283
|
));
|
|
284
284
|
};
|
|
285
|
-
o(t), o(
|
|
285
|
+
o(t), o(i);
|
|
286
286
|
}
|
|
287
287
|
addAnchorClass() {
|
|
288
288
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
@@ -630,16 +630,16 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
630
630
|
k.nativeName = "div";
|
|
631
631
|
let u = k;
|
|
632
632
|
customElements.get("px-container") || customElements.define("px-container", u);
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
const
|
|
633
|
+
const Z = ':host{display:block}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host([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))}}', T = new CSSStyleSheet();
|
|
634
|
+
T.replaceSync(Z);
|
|
635
|
+
const W = [
|
|
636
636
|
"",
|
|
637
637
|
"default",
|
|
638
638
|
"row",
|
|
639
639
|
"row-reverse",
|
|
640
640
|
"column",
|
|
641
641
|
"column-reverse"
|
|
642
|
-
],
|
|
642
|
+
], Y = [
|
|
643
643
|
"",
|
|
644
644
|
"default",
|
|
645
645
|
"stretch",
|
|
@@ -647,7 +647,7 @@ const G = [
|
|
|
647
647
|
"flex-end",
|
|
648
648
|
"center",
|
|
649
649
|
"baseline"
|
|
650
|
-
],
|
|
650
|
+
], J = [
|
|
651
651
|
"",
|
|
652
652
|
"default",
|
|
653
653
|
"flex-start",
|
|
@@ -656,10 +656,10 @@ const G = [
|
|
|
656
656
|
"space-between",
|
|
657
657
|
"space-around",
|
|
658
658
|
"space-evenly"
|
|
659
|
-
],
|
|
660
|
-
class
|
|
659
|
+
], K = ["", "default", "nowrap", "wrap", "wrap-reverse"], Q = ["", "visible", "hidden", "scroll", "auto"];
|
|
660
|
+
class f extends j {
|
|
661
661
|
constructor() {
|
|
662
|
-
super(
|
|
662
|
+
super(T), this.overflowXAttributeDelegate = new q(
|
|
663
663
|
this,
|
|
664
664
|
"overflow-x",
|
|
665
665
|
(t) => t,
|
|
@@ -706,14 +706,14 @@ class m extends $ {
|
|
|
706
706
|
"overflow-x--desktop"
|
|
707
707
|
];
|
|
708
708
|
}
|
|
709
|
-
attributeChangedCallback(t,
|
|
709
|
+
attributeChangedCallback(t, i, e) {
|
|
710
710
|
switch (t) {
|
|
711
711
|
case "gap":
|
|
712
712
|
case "gap--mobile":
|
|
713
713
|
case "gap--tablet":
|
|
714
714
|
case "gap--laptop":
|
|
715
715
|
case "gap--desktop":
|
|
716
|
-
this.updateFlexProperties(t,
|
|
716
|
+
this.updateFlexProperties(t, i, e, C);
|
|
717
717
|
break;
|
|
718
718
|
case "justify-content":
|
|
719
719
|
case "justify-content--mobile":
|
|
@@ -722,9 +722,9 @@ class m extends $ {
|
|
|
722
722
|
case "justify-content--desktop":
|
|
723
723
|
this.updateFlexProperties(
|
|
724
724
|
t,
|
|
725
|
-
|
|
725
|
+
i,
|
|
726
726
|
e,
|
|
727
|
-
|
|
727
|
+
J
|
|
728
728
|
);
|
|
729
729
|
break;
|
|
730
730
|
case "align-items":
|
|
@@ -732,63 +732,63 @@ class m extends $ {
|
|
|
732
732
|
case "align-items--tablet":
|
|
733
733
|
case "align-items--laptop":
|
|
734
734
|
case "align-items--desktop":
|
|
735
|
-
this.updateFlexProperties(t,
|
|
735
|
+
this.updateFlexProperties(t, i, e, Y);
|
|
736
736
|
break;
|
|
737
737
|
case "wrap":
|
|
738
738
|
case "wrap--mobile":
|
|
739
739
|
case "wrap--tablet":
|
|
740
740
|
case "wrap--laptop":
|
|
741
741
|
case "wrap--desktop":
|
|
742
|
-
this.updateFlexProperties(t,
|
|
742
|
+
this.updateFlexProperties(t, i, e, K);
|
|
743
743
|
break;
|
|
744
744
|
case "direction":
|
|
745
745
|
case "direction--mobile":
|
|
746
746
|
case "direction--tablet":
|
|
747
747
|
case "direction--laptop":
|
|
748
748
|
case "direction--desktop":
|
|
749
|
-
this.updateFlexProperties(t,
|
|
749
|
+
this.updateFlexProperties(t, i, e, W);
|
|
750
750
|
break;
|
|
751
751
|
case "overflow-x":
|
|
752
752
|
case "overflow-x--mobile":
|
|
753
753
|
case "overflow-x--tablet":
|
|
754
754
|
case "overflow-x--laptop":
|
|
755
755
|
case "overflow-x--desktop":
|
|
756
|
-
this.updateOverflowX(t,
|
|
756
|
+
this.updateOverflowX(t, i, e, Q);
|
|
757
757
|
break;
|
|
758
758
|
default:
|
|
759
|
-
super.attributeChangedCallback(t,
|
|
759
|
+
super.attributeChangedCallback(t, i, e);
|
|
760
760
|
break;
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
updateOverflowX(t,
|
|
764
|
-
if (
|
|
763
|
+
updateOverflowX(t, i, e, o) {
|
|
764
|
+
if (!$(o, e)) {
|
|
765
765
|
console.error(`${e} is not an allowed ${t} value`);
|
|
766
766
|
return;
|
|
767
767
|
}
|
|
768
768
|
this.overflowXAttributeDelegate.attributeChangedCallback(
|
|
769
769
|
t,
|
|
770
|
-
|
|
770
|
+
i,
|
|
771
771
|
e
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
|
-
updateFlexProperties(t,
|
|
774
|
+
updateFlexProperties(t, i, e, o) {
|
|
775
775
|
this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
|
|
776
|
-
const
|
|
777
|
-
if (!
|
|
778
|
-
this.getAttribute(a + "--mobile") ||
|
|
779
|
-
this.updateStyle(a, g,
|
|
776
|
+
const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
|
|
777
|
+
if (!r)
|
|
778
|
+
this.getAttribute(a + "--mobile") || c.push("mobile"), this.getAttribute(a + "--tablet") || c.push("tablet"), this.getAttribute(a + "--laptop") || c.push("laptop"), this.getAttribute(a + "--desktop") || c.push("desktop"), c.forEach((g) => {
|
|
779
|
+
this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
|
|
780
780
|
});
|
|
781
781
|
else {
|
|
782
782
|
const g = t.split("--")[1];
|
|
783
|
-
this.updateStyle(a, g,
|
|
783
|
+
this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
updateStyle(t,
|
|
786
|
+
updateStyle(t, i, e, o) {
|
|
787
787
|
e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
|
|
788
|
-
`--flex-${t}--${
|
|
789
|
-
`var(--px-spacing-${e}-${
|
|
788
|
+
`--flex-${t}--${i}-value`,
|
|
789
|
+
`var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
|
|
790
790
|
) : this.$el.style.setProperty(
|
|
791
|
-
`--flex-${t}--${
|
|
791
|
+
`--flex-${t}--${i}-value`,
|
|
792
792
|
e
|
|
793
793
|
));
|
|
794
794
|
}
|
|
@@ -976,8 +976,8 @@ class m extends $ {
|
|
|
976
976
|
return this.shadowRoot.querySelector(".flex-container");
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
980
|
-
class
|
|
979
|
+
customElements.get("px-stack") || customElements.define("px-stack", f);
|
|
980
|
+
class U extends f {
|
|
981
981
|
constructor() {
|
|
982
982
|
super();
|
|
983
983
|
}
|
|
@@ -985,8 +985,8 @@ class Z extends m {
|
|
|
985
985
|
super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
989
|
-
class
|
|
988
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", U);
|
|
989
|
+
class N extends f {
|
|
990
990
|
constructor() {
|
|
991
991
|
super();
|
|
992
992
|
}
|
|
@@ -994,21 +994,21 @@ class W extends m {
|
|
|
994
994
|
super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
998
|
-
class
|
|
997
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", N);
|
|
998
|
+
class V extends HTMLElement {
|
|
999
999
|
constructor() {
|
|
1000
1000
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1001
1001
|
}
|
|
1002
1002
|
static get observedAttributes() {
|
|
1003
|
-
return ["grow"];
|
|
1003
|
+
return ["grow", "nogap"];
|
|
1004
1004
|
}
|
|
1005
|
-
attributeChangedCallback(t,
|
|
1005
|
+
attributeChangedCallback(t, i, e) {
|
|
1006
1006
|
t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
|
|
1007
1007
|
}
|
|
1008
1008
|
connectedCallback() {
|
|
1009
|
-
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
|
|
1009
|
+
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
|
|
1010
1010
|
this.handleSizeChange();
|
|
1011
|
-
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
|
|
1011
|
+
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
|
|
1012
1012
|
}
|
|
1013
1013
|
disconnectedCallback() {
|
|
1014
1014
|
var t;
|
|
@@ -1029,19 +1029,25 @@ class Y extends HTMLElement {
|
|
|
1029
1029
|
this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
|
|
1030
1030
|
}
|
|
1031
1031
|
handleSizeChange() {
|
|
1032
|
-
const t = this.getBoundingClientRect(),
|
|
1033
|
-
this.isZeroSized !==
|
|
1032
|
+
const t = this.getBoundingClientRect(), i = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
|
|
1033
|
+
this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
|
|
1034
1034
|
}
|
|
1035
1035
|
updateParticipation() {
|
|
1036
1036
|
this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
|
|
1037
1037
|
}
|
|
1038
|
+
get nogap() {
|
|
1039
|
+
return this.hasAttribute("nogap");
|
|
1040
|
+
}
|
|
1041
|
+
set nogap(t) {
|
|
1042
|
+
t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1043
|
+
}
|
|
1038
1044
|
}
|
|
1039
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1042
|
-
class
|
|
1045
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", V);
|
|
1046
|
+
const tt = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", L = new CSSStyleSheet();
|
|
1047
|
+
L.replaceSync(tt);
|
|
1048
|
+
class et extends j {
|
|
1043
1049
|
constructor() {
|
|
1044
|
-
super(
|
|
1050
|
+
super(L), this.template = (t) => `
|
|
1045
1051
|
<px-container border-radius="none" padding="none">
|
|
1046
1052
|
<px-vstack>
|
|
1047
1053
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1206,8 +1212,8 @@ class K extends $ {
|
|
|
1206
1212
|
connectedCallback() {
|
|
1207
1213
|
this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
|
|
1208
1214
|
}
|
|
1209
|
-
attributeChangedCallback(t,
|
|
1210
|
-
if (
|
|
1215
|
+
attributeChangedCallback(t, i, e) {
|
|
1216
|
+
if (i !== e)
|
|
1211
1217
|
switch (t) {
|
|
1212
1218
|
case "background-image":
|
|
1213
1219
|
this.$imageContainer.setAttribute("background-image", e);
|
|
@@ -1218,7 +1224,7 @@ class K extends $ {
|
|
|
1218
1224
|
case "background-color":
|
|
1219
1225
|
this.$bodyContainer.setAttribute(
|
|
1220
1226
|
"background-color",
|
|
1221
|
-
|
|
1227
|
+
p.indexOf(e) > 0 ? e : "none"
|
|
1222
1228
|
);
|
|
1223
1229
|
break;
|
|
1224
1230
|
case "padding-vertical":
|
|
@@ -1228,7 +1234,7 @@ class K extends $ {
|
|
|
1228
1234
|
this.handlePaddingHorizontalChange(e);
|
|
1229
1235
|
break;
|
|
1230
1236
|
default:
|
|
1231
|
-
super.attributeChangedCallback(t,
|
|
1237
|
+
super.attributeChangedCallback(t, i, e);
|
|
1232
1238
|
}
|
|
1233
1239
|
}
|
|
1234
1240
|
handlePaddingVerticalChange(t) {
|
|
@@ -1238,10 +1244,10 @@ class K extends $ {
|
|
|
1238
1244
|
this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
|
|
1239
1245
|
}
|
|
1240
1246
|
}
|
|
1241
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
1242
|
-
const
|
|
1243
|
-
|
|
1244
|
-
class
|
|
1247
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", et);
|
|
1248
|
+
const I = new CSSStyleSheet();
|
|
1249
|
+
I.replaceSync(X);
|
|
1250
|
+
class it extends HTMLElement {
|
|
1245
1251
|
constructor() {
|
|
1246
1252
|
super(), this.template = () => `
|
|
1247
1253
|
<px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
|
|
@@ -1257,7 +1263,7 @@ class Q extends HTMLElement {
|
|
|
1257
1263
|
<div class="content-wrapper">
|
|
1258
1264
|
<slot name="overlap"></slot>
|
|
1259
1265
|
</div>
|
|
1260
|
-
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [
|
|
1266
|
+
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [I];
|
|
1261
1267
|
}
|
|
1262
1268
|
connectedCallback() {
|
|
1263
1269
|
const t = this.querySelector('[slot="heading"]');
|
|
@@ -1295,11 +1301,11 @@ class Q extends HTMLElement {
|
|
|
1295
1301
|
get $container() {
|
|
1296
1302
|
return this.shadowRoot.querySelector("px-container");
|
|
1297
1303
|
}
|
|
1298
|
-
attributeChangedCallback(t,
|
|
1299
|
-
if (
|
|
1304
|
+
attributeChangedCallback(t, i, e) {
|
|
1305
|
+
if (i !== e)
|
|
1300
1306
|
switch (t) {
|
|
1301
1307
|
case "background-color":
|
|
1302
|
-
this.$container.backgroundColor =
|
|
1308
|
+
this.$container.backgroundColor = p.indexOf(e) > 0 ? e : "none";
|
|
1303
1309
|
break;
|
|
1304
1310
|
case "background-gradient":
|
|
1305
1311
|
this.$container.gradient = this.gradient;
|
|
@@ -1529,12 +1535,322 @@ class Q extends HTMLElement {
|
|
|
1529
1535
|
this.setAttribute("border-side--laptop", t);
|
|
1530
1536
|
}
|
|
1531
1537
|
}
|
|
1532
|
-
customElements.get("px-section") || customElements.define("px-section",
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1538
|
+
customElements.get("px-section") || customElements.define("px-section", it);
|
|
1539
|
+
const ot = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media only screen and (max-width: 767px){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media only screen and (min-width: 48em) and (max-width: 64em){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media only screen and (min-width: 64.0625em){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", M = new CSSStyleSheet();
|
|
1540
|
+
M.replaceSync(ot);
|
|
1541
|
+
const rt = [
|
|
1542
|
+
"1",
|
|
1543
|
+
"2",
|
|
1544
|
+
"3",
|
|
1545
|
+
"4",
|
|
1546
|
+
"5",
|
|
1547
|
+
"6",
|
|
1548
|
+
"7",
|
|
1549
|
+
"8",
|
|
1550
|
+
"9",
|
|
1551
|
+
"10",
|
|
1552
|
+
"11",
|
|
1553
|
+
"12"
|
|
1554
|
+
], at = [
|
|
1555
|
+
"",
|
|
1556
|
+
"start",
|
|
1557
|
+
"end",
|
|
1558
|
+
"center",
|
|
1559
|
+
"space-between",
|
|
1560
|
+
"space-around",
|
|
1561
|
+
"space-evenly",
|
|
1562
|
+
"stretch"
|
|
1563
|
+
], nt = ["", "start", "end", "center", "stretch"], st = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, dt = "px-spacing", lt = s(
|
|
1564
|
+
"gap",
|
|
1565
|
+
st,
|
|
1566
|
+
C,
|
|
1567
|
+
dt,
|
|
1568
|
+
"--grid-gap"
|
|
1569
|
+
), v = class v extends w {
|
|
1536
1570
|
constructor() {
|
|
1537
|
-
super(
|
|
1571
|
+
super(M, lt), this.template = () => `<div class="grid">
|
|
1572
|
+
<slot></slot>
|
|
1573
|
+
</div>`, this.shadowRoot.innerHTML = this.template();
|
|
1574
|
+
}
|
|
1575
|
+
static get observedAttributes() {
|
|
1576
|
+
return [
|
|
1577
|
+
...super.observedAttributes,
|
|
1578
|
+
"grid-cols",
|
|
1579
|
+
"grid-cols--mobile",
|
|
1580
|
+
"grid-cols--tablet",
|
|
1581
|
+
"grid-cols--laptop",
|
|
1582
|
+
"justify-content",
|
|
1583
|
+
"justify-items",
|
|
1584
|
+
"align-content",
|
|
1585
|
+
"align-items",
|
|
1586
|
+
"justify-content--mobile",
|
|
1587
|
+
"justify-items--mobile",
|
|
1588
|
+
"align-content--mobile",
|
|
1589
|
+
"align-items--mobile",
|
|
1590
|
+
"justify-content--tablet",
|
|
1591
|
+
"justify-items--tablet",
|
|
1592
|
+
"align-content--tablet",
|
|
1593
|
+
"align-items--tablet",
|
|
1594
|
+
"justify-content--laptop",
|
|
1595
|
+
"justify-items--laptop",
|
|
1596
|
+
"align-content--laptop",
|
|
1597
|
+
"align-items--laptop",
|
|
1598
|
+
"justify-content--desktop",
|
|
1599
|
+
"justify-items--desktop",
|
|
1600
|
+
"align-content--desktop",
|
|
1601
|
+
"align-items--desktop"
|
|
1602
|
+
];
|
|
1603
|
+
}
|
|
1604
|
+
connectedCallback() {
|
|
1605
|
+
this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
|
|
1606
|
+
}
|
|
1607
|
+
attributeChangedCallback(t, i, e) {
|
|
1608
|
+
if (i !== e)
|
|
1609
|
+
switch (t) {
|
|
1610
|
+
case "grid-cols":
|
|
1611
|
+
case "grid-cols--mobile":
|
|
1612
|
+
case "grid-cols--tablet":
|
|
1613
|
+
case "grid-cols--laptop":
|
|
1614
|
+
this.updateAttribute(t, i, e, rt);
|
|
1615
|
+
break;
|
|
1616
|
+
case "justify-content":
|
|
1617
|
+
case "align-content":
|
|
1618
|
+
case "justify-content--mobile":
|
|
1619
|
+
case "align-content--mobile":
|
|
1620
|
+
case "justify-content--tablet":
|
|
1621
|
+
case "align-content--tablet":
|
|
1622
|
+
case "justify-content--laptop":
|
|
1623
|
+
case "align-content--laptop":
|
|
1624
|
+
case "justify-content--desktop":
|
|
1625
|
+
case "align-content--desktop":
|
|
1626
|
+
this.updateAttribute(
|
|
1627
|
+
t,
|
|
1628
|
+
i,
|
|
1629
|
+
e,
|
|
1630
|
+
at
|
|
1631
|
+
);
|
|
1632
|
+
break;
|
|
1633
|
+
case "justify-items":
|
|
1634
|
+
case "align-items":
|
|
1635
|
+
case "justify-items--mobile":
|
|
1636
|
+
case "align-items--mobile":
|
|
1637
|
+
case "justify-items--tablet":
|
|
1638
|
+
case "align-items--tablet":
|
|
1639
|
+
case "justify-items--laptop":
|
|
1640
|
+
case "align-items--laptop":
|
|
1641
|
+
case "justify-items--desktop":
|
|
1642
|
+
case "align-items--desktop":
|
|
1643
|
+
this.updateAttribute(
|
|
1644
|
+
t,
|
|
1645
|
+
i,
|
|
1646
|
+
e,
|
|
1647
|
+
nt
|
|
1648
|
+
);
|
|
1649
|
+
break;
|
|
1650
|
+
default:
|
|
1651
|
+
super.attributeChangedCallback(t, i, e);
|
|
1652
|
+
break;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
updateGap(t, i, e) {
|
|
1656
|
+
if (!this.checkName(e, i)) {
|
|
1657
|
+
console.error(`${i} is not a valid gap value`);
|
|
1658
|
+
return;
|
|
1659
|
+
}
|
|
1660
|
+
const o = (r) => {
|
|
1661
|
+
r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
|
|
1662
|
+
"--grid-gap--mobile",
|
|
1663
|
+
`var(--px-spacing-${r}-mobile)`
|
|
1664
|
+
), this.$el.style.setProperty(
|
|
1665
|
+
"--grid-gap--tablet",
|
|
1666
|
+
`var(--px-spacing-${r}-tablet)`
|
|
1667
|
+
), this.$el.style.setProperty(
|
|
1668
|
+
"--grid-gap--laptop",
|
|
1669
|
+
`var(--px-spacing-${r}-laptop)`
|
|
1670
|
+
));
|
|
1671
|
+
};
|
|
1672
|
+
o(t), o(i);
|
|
1673
|
+
}
|
|
1674
|
+
updateAttribute(t, i, e, o) {
|
|
1675
|
+
this.checkName(o, e) ? t === "grid-cols" || t === "grid-cols--mobile" || t === "grid-cols--tablet" || t === "grid-cols--laptop" || t === "grid-cols--desktop" ? this.$el.style.setProperty(`--${t}`, e) : (i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(`${t}-${i}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`)) : console.error(`${e} is not an allowed ${t} value`);
|
|
1676
|
+
}
|
|
1677
|
+
get gap() {
|
|
1678
|
+
return this.getAttribute("gap");
|
|
1679
|
+
}
|
|
1680
|
+
set gap(t) {
|
|
1681
|
+
this.setAttribute("gap", t);
|
|
1682
|
+
}
|
|
1683
|
+
get gapMobile() {
|
|
1684
|
+
return this.getAttribute("gap--mobile");
|
|
1685
|
+
}
|
|
1686
|
+
set gapMobile(t) {
|
|
1687
|
+
this.setAttribute("gap--mobile", t);
|
|
1688
|
+
}
|
|
1689
|
+
get gapTablet() {
|
|
1690
|
+
return this.getAttribute("gap--tablet");
|
|
1691
|
+
}
|
|
1692
|
+
set gapTablet(t) {
|
|
1693
|
+
this.setAttribute("gap--tablet", t);
|
|
1694
|
+
}
|
|
1695
|
+
get gapLaptop() {
|
|
1696
|
+
return this.getAttribute("gap--laptop");
|
|
1697
|
+
}
|
|
1698
|
+
set gapLaptop(t) {
|
|
1699
|
+
this.setAttribute("gap--laptop", t);
|
|
1700
|
+
}
|
|
1701
|
+
get gridCols() {
|
|
1702
|
+
return this.getAttribute("grid-cols");
|
|
1703
|
+
}
|
|
1704
|
+
set gridCols(t) {
|
|
1705
|
+
this.setAttribute("grid-cols", t);
|
|
1706
|
+
}
|
|
1707
|
+
get gridColsMobile() {
|
|
1708
|
+
return this.getAttribute("grid-cols--mobile");
|
|
1709
|
+
}
|
|
1710
|
+
set gridColsMobile(t) {
|
|
1711
|
+
this.setAttribute("grid-cols--mobile", t);
|
|
1712
|
+
}
|
|
1713
|
+
get gridColsTablet() {
|
|
1714
|
+
return this.getAttribute("grid-cols--tablet");
|
|
1715
|
+
}
|
|
1716
|
+
set gridColsTablet(t) {
|
|
1717
|
+
this.setAttribute("grid-cols--tablet", t);
|
|
1718
|
+
}
|
|
1719
|
+
get gridColsLaptop() {
|
|
1720
|
+
return this.getAttribute("grid-cols--laptop");
|
|
1721
|
+
}
|
|
1722
|
+
set gridColsLaptop(t) {
|
|
1723
|
+
this.setAttribute("grid-cols--laptop", t);
|
|
1724
|
+
}
|
|
1725
|
+
get justifyContent() {
|
|
1726
|
+
return this.getAttribute("justify-content");
|
|
1727
|
+
}
|
|
1728
|
+
set justifyContent(t) {
|
|
1729
|
+
this.setAttribute("justify-content", t);
|
|
1730
|
+
}
|
|
1731
|
+
get justifyItems() {
|
|
1732
|
+
return this.getAttribute("justify-items");
|
|
1733
|
+
}
|
|
1734
|
+
set justifyItems(t) {
|
|
1735
|
+
this.setAttribute("justify-items", t);
|
|
1736
|
+
}
|
|
1737
|
+
get alignContent() {
|
|
1738
|
+
return this.getAttribute("align-content");
|
|
1739
|
+
}
|
|
1740
|
+
set alignContent(t) {
|
|
1741
|
+
this.setAttribute("align-content", t);
|
|
1742
|
+
}
|
|
1743
|
+
get alignItems() {
|
|
1744
|
+
return this.getAttribute("align-items");
|
|
1745
|
+
}
|
|
1746
|
+
set alignItems(t) {
|
|
1747
|
+
this.setAttribute("align-items", t);
|
|
1748
|
+
}
|
|
1749
|
+
get justifyContentMobile() {
|
|
1750
|
+
return this.getAttribute("justify-content--mobile");
|
|
1751
|
+
}
|
|
1752
|
+
set justifyContentMobile(t) {
|
|
1753
|
+
this.setAttribute("justify-content--mobile", t);
|
|
1754
|
+
}
|
|
1755
|
+
get justifyItemsMobile() {
|
|
1756
|
+
return this.getAttribute("justify-items--mobile");
|
|
1757
|
+
}
|
|
1758
|
+
set justifyItemsMobile(t) {
|
|
1759
|
+
this.setAttribute("justify-items--mobile", t);
|
|
1760
|
+
}
|
|
1761
|
+
get alignContentMobile() {
|
|
1762
|
+
return this.getAttribute("align-content--mobile");
|
|
1763
|
+
}
|
|
1764
|
+
set alignContentMobile(t) {
|
|
1765
|
+
this.setAttribute("align-content--mobile", t);
|
|
1766
|
+
}
|
|
1767
|
+
get alignItemsMobile() {
|
|
1768
|
+
return this.getAttribute("align-items--mobile");
|
|
1769
|
+
}
|
|
1770
|
+
set alignItemsMobile(t) {
|
|
1771
|
+
this.setAttribute("align-items--mobile", t);
|
|
1772
|
+
}
|
|
1773
|
+
get justifyContentTablet() {
|
|
1774
|
+
return this.getAttribute("justify-content--tablet");
|
|
1775
|
+
}
|
|
1776
|
+
set justifyContentTablet(t) {
|
|
1777
|
+
this.setAttribute("justify-content--tablet", t);
|
|
1778
|
+
}
|
|
1779
|
+
get justifyItemsTablet() {
|
|
1780
|
+
return this.getAttribute("justify-items--tablet");
|
|
1781
|
+
}
|
|
1782
|
+
set justifyItemsTablet(t) {
|
|
1783
|
+
this.setAttribute("justify-items--tablet", t);
|
|
1784
|
+
}
|
|
1785
|
+
get alignContentTablet() {
|
|
1786
|
+
return this.getAttribute("align-content--tablet");
|
|
1787
|
+
}
|
|
1788
|
+
set alignContentTablet(t) {
|
|
1789
|
+
this.setAttribute("align-content--tablet", t);
|
|
1790
|
+
}
|
|
1791
|
+
get alignItemsTablet() {
|
|
1792
|
+
return this.getAttribute("align-items--tablet");
|
|
1793
|
+
}
|
|
1794
|
+
set alignItemsTablet(t) {
|
|
1795
|
+
this.setAttribute("align-items--tablet", t);
|
|
1796
|
+
}
|
|
1797
|
+
get justifyContentLaptop() {
|
|
1798
|
+
return this.getAttribute("justify-content--laptop");
|
|
1799
|
+
}
|
|
1800
|
+
set justifyContentLaptop(t) {
|
|
1801
|
+
this.setAttribute("justify-content--laptop", t);
|
|
1802
|
+
}
|
|
1803
|
+
get justifyItemsLaptop() {
|
|
1804
|
+
return this.getAttribute("justify-items--laptop");
|
|
1805
|
+
}
|
|
1806
|
+
set justifyItemsLaptop(t) {
|
|
1807
|
+
this.setAttribute("justify-items--laptop", t);
|
|
1808
|
+
}
|
|
1809
|
+
get alignContentLaptop() {
|
|
1810
|
+
return this.getAttribute("align-content--laptop");
|
|
1811
|
+
}
|
|
1812
|
+
set alignContentLaptop(t) {
|
|
1813
|
+
this.setAttribute("align-content--laptop", t);
|
|
1814
|
+
}
|
|
1815
|
+
get alignItemsLaptop() {
|
|
1816
|
+
return this.getAttribute("align-items--laptop");
|
|
1817
|
+
}
|
|
1818
|
+
set alignItemsLaptop(t) {
|
|
1819
|
+
this.setAttribute("align-items--laptop", t);
|
|
1820
|
+
}
|
|
1821
|
+
get justifyContentDesktop() {
|
|
1822
|
+
return this.getAttribute("justify-content--desktop");
|
|
1823
|
+
}
|
|
1824
|
+
set justifyContentDesktop(t) {
|
|
1825
|
+
this.setAttribute("justify-content--desktop", t);
|
|
1826
|
+
}
|
|
1827
|
+
get justifyItemsDesktop() {
|
|
1828
|
+
return this.getAttribute("justify-items--desktop");
|
|
1829
|
+
}
|
|
1830
|
+
set justifyItemsDesktop(t) {
|
|
1831
|
+
this.setAttribute("justify-items--desktop", t);
|
|
1832
|
+
}
|
|
1833
|
+
get alignContentDesktop() {
|
|
1834
|
+
return this.getAttribute("align-content--desktop");
|
|
1835
|
+
}
|
|
1836
|
+
set alignContentDesktop(t) {
|
|
1837
|
+
this.setAttribute("align-content--desktop", t);
|
|
1838
|
+
}
|
|
1839
|
+
get alignItemsDesktop() {
|
|
1840
|
+
return this.getAttribute("align-items--desktop");
|
|
1841
|
+
}
|
|
1842
|
+
set alignItemsDesktop(t) {
|
|
1843
|
+
this.setAttribute("align-items--desktop", t);
|
|
1844
|
+
}
|
|
1845
|
+
};
|
|
1846
|
+
v.nativeName = "div";
|
|
1847
|
+
let h = v;
|
|
1848
|
+
customElements.get("px-grid") || customElements.define("px-grid", h);
|
|
1849
|
+
const B = new CSSStyleSheet();
|
|
1850
|
+
B.replaceSync(G);
|
|
1851
|
+
const y = class y extends w {
|
|
1852
|
+
constructor() {
|
|
1853
|
+
super(B), this.template = () => `<div class="content-header">
|
|
1538
1854
|
<div class="contrast-helper"></div>
|
|
1539
1855
|
<px-section padding-block="l">
|
|
1540
1856
|
<px-grid gap="none">
|
|
@@ -1576,14 +1892,13 @@ const f = class f extends v {
|
|
|
1576
1892
|
];
|
|
1577
1893
|
}
|
|
1578
1894
|
connectedCallback() {
|
|
1579
|
-
|
|
1580
|
-
(t = super.connectedCallback) == null || t.call(this), this.$subtitleSlot && this.$subtitleSlot.setAttribute("variant", "subtitle"), this.$patchDescriptionSlot && (this.$patchDescriptionSlot.localName === "px-p" && this.$patchDescriptionSlot.setAttribute("variant", "default"), (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") && (this.$patchDescriptionSlot.setAttribute("font-size", "body-l"), this.$patchDescriptionSlot.removeAttribute("font-weight"), this.$patchDescriptionSlot.removeAttribute("color")), this.$patchDescriptionSlot.localName === "px-price" && this.$patchDescriptionSlot.setAttribute("size", "m")), this.createGridding();
|
|
1895
|
+
this.$subtitleSlot && this.$subtitleSlot.setAttribute("variant", "subtitle"), this.$patchDescriptionSlot && (this.$patchDescriptionSlot.localName === "px-p" && this.$patchDescriptionSlot.setAttribute("variant", "default"), (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") && (this.$patchDescriptionSlot.setAttribute("font-size", "body-l"), this.$patchDescriptionSlot.removeAttribute("font-weight"), this.$patchDescriptionSlot.removeAttribute("color")), this.$patchDescriptionSlot.localName === "px-price" && this.$patchDescriptionSlot.setAttribute("size", "m")), this.createGridding();
|
|
1581
1896
|
}
|
|
1582
|
-
attributeChangedCallback(t,
|
|
1583
|
-
if (
|
|
1897
|
+
attributeChangedCallback(t, i, e) {
|
|
1898
|
+
if (i !== e)
|
|
1584
1899
|
switch (t) {
|
|
1585
1900
|
case "background-color":
|
|
1586
|
-
this.$section.backgroundColor =
|
|
1901
|
+
this.$section.backgroundColor = p.indexOf(e) > 0 ? e : "none";
|
|
1587
1902
|
break;
|
|
1588
1903
|
case "background-gradient":
|
|
1589
1904
|
this.$section.gradient = A.indexOf(e) > 0 ? e : "none";
|
|
@@ -1610,7 +1925,7 @@ const f = class f extends v {
|
|
|
1610
1925
|
case "has-gridding--mobile":
|
|
1611
1926
|
case "has-gridding--tablet":
|
|
1612
1927
|
case "has-gridding--laptop":
|
|
1613
|
-
this.createGridding();
|
|
1928
|
+
this.createGridding(e);
|
|
1614
1929
|
break;
|
|
1615
1930
|
case "inverted":
|
|
1616
1931
|
for (let o = 0; o < this.$children.length; o++)
|
|
@@ -1618,12 +1933,12 @@ const f = class f extends v {
|
|
|
1618
1933
|
this.$h1.toggleAttribute("inverted", e !== null), this.$el.toggleAttribute("inverted", e !== null);
|
|
1619
1934
|
break;
|
|
1620
1935
|
default:
|
|
1621
|
-
super.attributeChangedCallback(t,
|
|
1936
|
+
super.attributeChangedCallback(t, i, e);
|
|
1622
1937
|
break;
|
|
1623
1938
|
}
|
|
1624
1939
|
}
|
|
1625
|
-
createGridding() {
|
|
1626
|
-
const
|
|
1940
|
+
createGridding(t) {
|
|
1941
|
+
const i = [
|
|
1627
1942
|
{ prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
|
|
1628
1943
|
{
|
|
1629
1944
|
prop: "hasGriddingMobile",
|
|
@@ -1640,11 +1955,13 @@ const f = class f extends v {
|
|
|
1640
1955
|
gridProp: "gridColsLaptop",
|
|
1641
1956
|
attr: "col-span--laptop"
|
|
1642
1957
|
}
|
|
1643
|
-
],
|
|
1958
|
+
], e = this.shadowRoot.querySelector(
|
|
1644
1959
|
"px-grid > px-container"
|
|
1645
1960
|
);
|
|
1646
|
-
t.forEach(({ prop:
|
|
1647
|
-
this[
|
|
1961
|
+
t !== null ? i.forEach(({ prop: o, gridProp: r, attr: a }) => {
|
|
1962
|
+
this[o] && (this.$grid[r] = "3", e.setAttribute(a, "2"));
|
|
1963
|
+
}) : i.forEach(({ gridProp: o, attr: r }) => {
|
|
1964
|
+
this.$grid[o] = "1", e.removeAttribute(r);
|
|
1648
1965
|
});
|
|
1649
1966
|
}
|
|
1650
1967
|
get $grid() {
|
|
@@ -1765,9 +2082,9 @@ const f = class f extends v {
|
|
|
1765
2082
|
t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
|
|
1766
2083
|
}
|
|
1767
2084
|
};
|
|
1768
|
-
|
|
1769
|
-
let
|
|
1770
|
-
customElements.get("px-content-header") || customElements.define("px-content-header",
|
|
2085
|
+
y.nativeName = "div";
|
|
2086
|
+
let m = y;
|
|
2087
|
+
customElements.get("px-content-header") || customElements.define("px-content-header", m);
|
|
1771
2088
|
export {
|
|
1772
|
-
|
|
2089
|
+
m as ContentHeader
|
|
1773
2090
|
};
|