@proximus/lavender-carousel 1.4.20-alpha.1 → 1.4.20-alpha.10
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 +320 -135
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, accessibilityAttributes as r, backgroundColorValues as i, booleanPropertyToAttributeSetter as a, checkName as o, createTemplate as s, gapValues as c, iconSizeValuesKC as l, log as u,
|
|
1
|
+
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, accessibilityAttributes as r, backgroundColorValues as i, booleanPropertyToAttributeSetter as a, checkName as o, createTemplate as s, gapValues as c, iconSizeValuesKC as l, log as u, nativeButtonAttributes as d, nativeButtonMethods as f, nativeButtonProperties as p, propertyToAttributeSetter as m, renderTemplate as h } from "@proximus/lavender-common";
|
|
2
2
|
//#region src/carousel.css?inline
|
|
3
|
-
var p = ":host{display:block}:host *{box-sizing:border-box}:host{--px-carousel-visible-items:1;--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([visible-items=\"1\"]){--px-carousel-visible-items:1}:host([visible-items=\"2\"]){--px-carousel-visible-items:2}:host([visible-items=\"3\"]){--px-carousel-visible-items:3}:host([visible-items=\"4\"]){--px-carousel-visible-items:4}:host([visible-items=\"5\"]){--px-carousel-visible-items:5}:host([visible-items=\"6\"]){--px-carousel-visible-items:6}:host([visible-items=\"7\"]){--px-carousel-visible-items:7}:host([visible-items=\"8\"]){--px-carousel-visible-items:8}:host([visible-items=\"9\"]){--px-carousel-visible-items:9}:host([visible-items--mobile=\"1\"]){--px-carousel-visible-items--mobile:1}:host([visible-items--mobile=\"2\"]){--px-carousel-visible-items--mobile:2}:host([visible-items--mobile=\"3\"]){--px-carousel-visible-items--mobile:3}:host([visible-items--mobile=\"4\"]){--px-carousel-visible-items--mobile:4}:host([visible-items--mobile=\"5\"]){--px-carousel-visible-items--mobile:5}:host([visible-items--mobile=\"6\"]){--px-carousel-visible-items--mobile:6}:host([visible-items--mobile=\"7\"]){--px-carousel-visible-items--mobile:7}:host([visible-items--mobile=\"8\"]){--px-carousel-visible-items--mobile:8}:host([visible-items--mobile=\"9\"]){--px-carousel-visible-items--mobile:9}:host([visible-items--tablet=\"1\"]){--px-carousel-visible-items--tablet:1}:host([visible-items--tablet=\"2\"]){--px-carousel-visible-items--tablet:2}:host([visible-items--tablet=\"3\"]){--px-carousel-visible-items--tablet:3}:host([visible-items--tablet=\"4\"]){--px-carousel-visible-items--tablet:4}:host([visible-items--tablet=\"5\"]){--px-carousel-visible-items--tablet:5}:host([visible-items--tablet=\"6\"]){--px-carousel-visible-items--tablet:6}:host([visible-items--tablet=\"7\"]){--px-carousel-visible-items--tablet:7}:host([visible-items--tablet=\"8\"]){--px-carousel-visible-items--tablet:8}:host([visible-items--tablet=\"9\"]){--px-carousel-visible-items--tablet:9}:host([visible-items--laptop=\"1\"]){--px-carousel-visible-items--laptop:1}:host([visible-items--laptop=\"2\"]){--px-carousel-visible-items--laptop:2}:host([visible-items--laptop=\"3\"]){--px-carousel-visible-items--laptop:3}:host([visible-items--laptop=\"4\"]){--px-carousel-visible-items--laptop:4}:host([visible-items--laptop=\"5\"]){--px-carousel-visible-items--laptop:5}:host([visible-items--laptop=\"6\"]){--px-carousel-visible-items--laptop:6}:host([visible-items--laptop=\"7\"]){--px-carousel-visible-items--laptop:7}:host([visible-items--laptop=\"8\"]){--px-carousel-visible-items--laptop:8}:host([visible-items--laptop=\"9\"]){--px-carousel-visible-items--laptop:9}:host([visible-items--desktop=\"1\"]){--px-carousel-visible-items--desktop:1}:host([visible-items--desktop=\"2\"]){--px-carousel-visible-items--desktop:2}:host([visible-items--desktop=\"3\"]){--px-carousel-visible-items--desktop:3}:host([visible-items--desktop=\"4\"]){--px-carousel-visible-items--desktop:4}:host([visible-items--desktop=\"5\"]){--px-carousel-visible-items--desktop:5}:host([visible-items--desktop=\"6\"]){--px-carousel-visible-items--desktop:6}:host([visible-items--desktop=\"7\"]){--px-carousel-visible-items--desktop:7}:host([visible-items--desktop=\"8\"]){--px-carousel-visible-items--desktop:8}:host([visible-items--desktop=\"9\"]){--px-carousel-visible-items--desktop:9}:host([gap=default]){--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([gap=s]){--px-carousel-gap-default:var(--px-spacing-s-desktop)}:host([gap=xs]){--px-carousel-gap-default:var(--px-spacing-xs-desktop)}:host([gap=\"2xs\"]){--px-carousel-gap-default:var(--px-spacing-2xs-desktop)}:host([gap=l]){--px-carousel-gap-default:var(--px-spacing-l-desktop)}:host([gap=none]){--px-carousel-gap-default:0}:host([gap--mobile=default]){--px-carousel-gap-default--mobile:var(--px-spacing-default-mobile)}:host([gap--mobile=s]){--px-carousel-gap-default--mobile:var(--px-spacing-s-mobile)}:host([gap--mobile=xs]){--px-carousel-gap-default--mobile:var(--px-spacing-xs-mobile)}:host([gap--mobile=\"2xs\"]){--px-carousel-gap-default--mobile:var(--px-spacing-2xs-mobile)}:host([gap--mobile=l]){--px-carousel-gap-default--mobile:var(--px-spacing-l-mobile)}:host([gap--mobile=none]){--px-carousel-gap-default--mobile:0}:host([gap--tablet=default]){--px-carousel-gap-default--tablet:var(--px-spacing-default-tablet)}:host([gap--tablet=s]){--px-carousel-gap-default--tablet:var(--px-spacing-s-tablet)}:host([gap--tablet=xs]){--px-carousel-gap-default--tablet:var(--px-spacing-xs-tablet)}:host([gap--tablet=\"2xs\"]){--px-carousel-gap-default--tablet:var(--px-spacing-2xs-tablet)}:host([gap--tablet=l]){--px-carousel-gap-default--tablet:var(--px-spacing-l-tablet)}:host([gap--tablet=none]){--px-carousel-gap-default--tablet:0}:host([gap--laptop=default]){--px-carousel-gap-default--laptop:var(--px-spacing-default-laptop)}:host([gap--laptop=s]){--px-carousel-gap-default--laptop:var(--px-spacing-s-laptop)}:host([gap--laptop=xs]){--px-carousel-gap-default--laptop:var(--px-spacing-xs-laptop)}:host([gap--laptop=\"2xs\"]){--px-carousel-gap-default--laptop:var(--px-spacing-2xs-laptop)}:host([gap--laptop=l]){--px-carousel-gap-default--laptop:var(--px-spacing-l-laptop)}:host([gap--laptop=none]){--px-carousel-gap-default--laptop:0}:host([gap--desktop=default]){--px-carousel-gap-default--desktop:var(--px-spacing-default-desktop)}:host([gap--desktop=s]){--px-carousel-gap-default--desktop:var(--px-spacing-s-desktop)}:host([gap--desktop=xs]){--px-carousel-gap-default--desktop:var(--px-spacing-xs-desktop)}:host([gap--desktop=\"2xs\"]){--px-carousel-gap-default--desktop:var(--px-spacing-2xs-desktop)}:host([gap--desktop=l]){--px-carousel-gap-default--desktop:var(--px-spacing-l-desktop)}:host([gap--desktop=none]){--px-carousel-gap-default--desktop:0}.carousel{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default));display:flex;overflow:auto hidden}@media screen and (width<=47.938rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48rem) and (width<=64rem){.carousel{gap:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default))}}@media screen and (width>=64.0625rem) and (width<=90rem){.carousel{gap:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default))}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media screen and (width<=47.938rem){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", m = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;border-radius:var(--px-radius-main);--visible-items:var(--px-carousel-visible-items--desktop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)));min-width:calc((100% - max(var(--visible-items), 2) * var(--spacing)) / var(--visible-items) - 64px / max(var(--visible-items), 2));background:#fff;justify-content:center;align-items:center;overflow:hidden}@media screen and (width<=47.938rem){:host{--visible-items:var(--px-carousel-visible-items--mobile,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default,var(--px-spacing-s-mobile)))}}@media screen and (width>=48rem) and (width<=64rem){:host{--visible-items:var(--px-carousel-visible-items--tablet,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width>=64.0625rem) and (width<=90rem){:host{--visible-items:var(--px-carousel-visible-items--laptop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width<=48rem){:host{scroll-snap-align:center;flex:1 0 var(--px-carousel-min-width-mobile,var(--px-carousel-min-width-all-mobile))!important}}@media screen and (width>=48rem) and (width<=64rem){:host{flex:1 0 var(--px-carousel-min-width-tablet,var(--px-carousel-min-width-all-tablet))!important}}", h = ":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;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);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)}: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)}: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-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}", g = new CSSStyleSheet();
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
3
|
+
var g = ":host{display:block}:host *{box-sizing:border-box}:host{--px-carousel-visible-items:1;--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([visible-items=\"1\"]){--px-carousel-visible-items:1}:host([visible-items=\"2\"]){--px-carousel-visible-items:2}:host([visible-items=\"3\"]){--px-carousel-visible-items:3}:host([visible-items=\"4\"]){--px-carousel-visible-items:4}:host([visible-items=\"5\"]){--px-carousel-visible-items:5}:host([visible-items=\"6\"]){--px-carousel-visible-items:6}:host([visible-items=\"7\"]){--px-carousel-visible-items:7}:host([visible-items=\"8\"]){--px-carousel-visible-items:8}:host([visible-items=\"9\"]){--px-carousel-visible-items:9}:host([visible-items--mobile=\"1\"]){--px-carousel-visible-items--mobile:1}:host([visible-items--mobile=\"2\"]){--px-carousel-visible-items--mobile:2}:host([visible-items--mobile=\"3\"]){--px-carousel-visible-items--mobile:3}:host([visible-items--mobile=\"4\"]){--px-carousel-visible-items--mobile:4}:host([visible-items--mobile=\"5\"]){--px-carousel-visible-items--mobile:5}:host([visible-items--mobile=\"6\"]){--px-carousel-visible-items--mobile:6}:host([visible-items--mobile=\"7\"]){--px-carousel-visible-items--mobile:7}:host([visible-items--mobile=\"8\"]){--px-carousel-visible-items--mobile:8}:host([visible-items--mobile=\"9\"]){--px-carousel-visible-items--mobile:9}:host([visible-items--tablet=\"1\"]){--px-carousel-visible-items--tablet:1}:host([visible-items--tablet=\"2\"]){--px-carousel-visible-items--tablet:2}:host([visible-items--tablet=\"3\"]){--px-carousel-visible-items--tablet:3}:host([visible-items--tablet=\"4\"]){--px-carousel-visible-items--tablet:4}:host([visible-items--tablet=\"5\"]){--px-carousel-visible-items--tablet:5}:host([visible-items--tablet=\"6\"]){--px-carousel-visible-items--tablet:6}:host([visible-items--tablet=\"7\"]){--px-carousel-visible-items--tablet:7}:host([visible-items--tablet=\"8\"]){--px-carousel-visible-items--tablet:8}:host([visible-items--tablet=\"9\"]){--px-carousel-visible-items--tablet:9}:host([visible-items--laptop=\"1\"]){--px-carousel-visible-items--laptop:1}:host([visible-items--laptop=\"2\"]){--px-carousel-visible-items--laptop:2}:host([visible-items--laptop=\"3\"]){--px-carousel-visible-items--laptop:3}:host([visible-items--laptop=\"4\"]){--px-carousel-visible-items--laptop:4}:host([visible-items--laptop=\"5\"]){--px-carousel-visible-items--laptop:5}:host([visible-items--laptop=\"6\"]){--px-carousel-visible-items--laptop:6}:host([visible-items--laptop=\"7\"]){--px-carousel-visible-items--laptop:7}:host([visible-items--laptop=\"8\"]){--px-carousel-visible-items--laptop:8}:host([visible-items--laptop=\"9\"]){--px-carousel-visible-items--laptop:9}:host([visible-items--desktop=\"1\"]){--px-carousel-visible-items--desktop:1}:host([visible-items--desktop=\"2\"]){--px-carousel-visible-items--desktop:2}:host([visible-items--desktop=\"3\"]){--px-carousel-visible-items--desktop:3}:host([visible-items--desktop=\"4\"]){--px-carousel-visible-items--desktop:4}:host([visible-items--desktop=\"5\"]){--px-carousel-visible-items--desktop:5}:host([visible-items--desktop=\"6\"]){--px-carousel-visible-items--desktop:6}:host([visible-items--desktop=\"7\"]){--px-carousel-visible-items--desktop:7}:host([visible-items--desktop=\"8\"]){--px-carousel-visible-items--desktop:8}:host([visible-items--desktop=\"9\"]){--px-carousel-visible-items--desktop:9}:host([gap=default]){--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([gap=s]){--px-carousel-gap-default:var(--px-spacing-s-desktop)}:host([gap=xs]){--px-carousel-gap-default:var(--px-spacing-xs-desktop)}:host([gap=\"2xs\"]){--px-carousel-gap-default:var(--px-spacing-2xs-desktop)}:host([gap=l]){--px-carousel-gap-default:var(--px-spacing-l-desktop)}:host([gap=none]){--px-carousel-gap-default:0}:host([gap--mobile=default]){--px-carousel-gap-default--mobile:var(--px-spacing-default-mobile)}:host([gap--mobile=s]){--px-carousel-gap-default--mobile:var(--px-spacing-s-mobile)}:host([gap--mobile=xs]){--px-carousel-gap-default--mobile:var(--px-spacing-xs-mobile)}:host([gap--mobile=\"2xs\"]){--px-carousel-gap-default--mobile:var(--px-spacing-2xs-mobile)}:host([gap--mobile=l]){--px-carousel-gap-default--mobile:var(--px-spacing-l-mobile)}:host([gap--mobile=none]){--px-carousel-gap-default--mobile:0}:host([gap--tablet=default]){--px-carousel-gap-default--tablet:var(--px-spacing-default-tablet)}:host([gap--tablet=s]){--px-carousel-gap-default--tablet:var(--px-spacing-s-tablet)}:host([gap--tablet=xs]){--px-carousel-gap-default--tablet:var(--px-spacing-xs-tablet)}:host([gap--tablet=\"2xs\"]){--px-carousel-gap-default--tablet:var(--px-spacing-2xs-tablet)}:host([gap--tablet=l]){--px-carousel-gap-default--tablet:var(--px-spacing-l-tablet)}:host([gap--tablet=none]){--px-carousel-gap-default--tablet:0}:host([gap--laptop=default]){--px-carousel-gap-default--laptop:var(--px-spacing-default-laptop)}:host([gap--laptop=s]){--px-carousel-gap-default--laptop:var(--px-spacing-s-laptop)}:host([gap--laptop=xs]){--px-carousel-gap-default--laptop:var(--px-spacing-xs-laptop)}:host([gap--laptop=\"2xs\"]){--px-carousel-gap-default--laptop:var(--px-spacing-2xs-laptop)}:host([gap--laptop=l]){--px-carousel-gap-default--laptop:var(--px-spacing-l-laptop)}:host([gap--laptop=none]){--px-carousel-gap-default--laptop:0}:host([gap--desktop=default]){--px-carousel-gap-default--desktop:var(--px-spacing-default-desktop)}:host([gap--desktop=s]){--px-carousel-gap-default--desktop:var(--px-spacing-s-desktop)}:host([gap--desktop=xs]){--px-carousel-gap-default--desktop:var(--px-spacing-xs-desktop)}:host([gap--desktop=\"2xs\"]){--px-carousel-gap-default--desktop:var(--px-spacing-2xs-desktop)}:host([gap--desktop=l]){--px-carousel-gap-default--desktop:var(--px-spacing-l-desktop)}:host([gap--desktop=none]){--px-carousel-gap-default--desktop:0}.carousel{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default));display:flex;overflow:auto hidden}@media screen and (width<=47.938rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48rem) and (width<=64rem){.carousel{gap:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default))}}@media screen and (width>=64.0625rem) and (width<=90rem){.carousel{gap:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default))}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media screen and (width<=47.938rem){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", _ = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;border-radius:var(--px-radius-main);--visible-items:var(--px-carousel-visible-items--desktop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)));min-width:calc((100% - max(var(--visible-items), 2) * var(--spacing)) / var(--visible-items) - 64px / max(var(--visible-items), 2));background:#fff;justify-content:center;align-items:center;overflow:hidden}@media screen and (width<=47.938rem){:host{--visible-items:var(--px-carousel-visible-items--mobile,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default,var(--px-spacing-s-mobile)))}}@media screen and (width>=48rem) and (width<=64rem){:host{--visible-items:var(--px-carousel-visible-items--tablet,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width>=64.0625rem) and (width<=90rem){:host{--visible-items:var(--px-carousel-visible-items--laptop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width<=48rem){:host{scroll-snap-align:center;flex:1 0 var(--px-carousel-min-width-mobile,var(--px-carousel-min-width-all-mobile))!important}}@media screen and (width>=48rem) and (width<=64rem){:host{flex:1 0 var(--px-carousel-min-width-tablet,var(--px-carousel-min-width-all-tablet))!important}}", v = ":host{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--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){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.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){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.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){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.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}", y = new CSSStyleSheet();
|
|
4
|
+
y.replaceSync(v);
|
|
5
|
+
var b = document.createElement("template");
|
|
6
|
+
b.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
7
|
+
var x = [
|
|
8
8
|
"",
|
|
9
9
|
"default",
|
|
10
10
|
"row",
|
|
11
11
|
"row-reverse",
|
|
12
12
|
"column",
|
|
13
13
|
"column-reverse"
|
|
14
|
-
],
|
|
14
|
+
], ee = [
|
|
15
15
|
"",
|
|
16
16
|
"default",
|
|
17
17
|
"stretch",
|
|
@@ -21,7 +21,7 @@ var v = [
|
|
|
21
21
|
"end",
|
|
22
22
|
"center",
|
|
23
23
|
"baseline"
|
|
24
|
-
],
|
|
24
|
+
], te = [
|
|
25
25
|
"",
|
|
26
26
|
"default",
|
|
27
27
|
"flex-start",
|
|
@@ -32,7 +32,7 @@ var v = [
|
|
|
32
32
|
"space-between",
|
|
33
33
|
"space-around",
|
|
34
34
|
"space-evenly"
|
|
35
|
-
],
|
|
35
|
+
], ne = [
|
|
36
36
|
"",
|
|
37
37
|
"default",
|
|
38
38
|
"nowrap",
|
|
@@ -46,7 +46,7 @@ var v = [
|
|
|
46
46
|
"auto"
|
|
47
47
|
], C = class t extends n {
|
|
48
48
|
constructor() {
|
|
49
|
-
super(
|
|
49
|
+
super(y), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(b.content, !0));
|
|
50
50
|
}
|
|
51
51
|
connectedCallback() {}
|
|
52
52
|
static get observedAttributes() {
|
|
@@ -81,7 +81,27 @@ var v = [
|
|
|
81
81
|
"overflow-x--mobile",
|
|
82
82
|
"overflow-x--tablet",
|
|
83
83
|
"overflow-x--laptop",
|
|
84
|
-
"overflow-x--desktop"
|
|
84
|
+
"overflow-x--desktop",
|
|
85
|
+
"overflow-y",
|
|
86
|
+
"overflow-y--mobile",
|
|
87
|
+
"overflow-y--tablet",
|
|
88
|
+
"overflow-y--laptop",
|
|
89
|
+
"overflow-y--desktop",
|
|
90
|
+
"max-height",
|
|
91
|
+
"max-height--mobile",
|
|
92
|
+
"max-height--tablet",
|
|
93
|
+
"max-height--laptop",
|
|
94
|
+
"max-height--desktop",
|
|
95
|
+
"min-width",
|
|
96
|
+
"min-width--mobile",
|
|
97
|
+
"min-width--tablet",
|
|
98
|
+
"min-width--laptop",
|
|
99
|
+
"min-width--desktop",
|
|
100
|
+
"max-width",
|
|
101
|
+
"max-width--mobile",
|
|
102
|
+
"max-width--tablet",
|
|
103
|
+
"max-width--laptop",
|
|
104
|
+
"max-width--desktop"
|
|
85
105
|
];
|
|
86
106
|
}
|
|
87
107
|
attributeChangedCallback(e, t, n) {
|
|
@@ -98,28 +118,52 @@ var v = [
|
|
|
98
118
|
case "justify-content--tablet":
|
|
99
119
|
case "justify-content--laptop":
|
|
100
120
|
case "justify-content--desktop":
|
|
101
|
-
this.updateFlexProperties(e, t, n,
|
|
121
|
+
this.updateFlexProperties(e, t, n, te);
|
|
102
122
|
break;
|
|
103
123
|
case "align-items":
|
|
104
124
|
case "align-items--mobile":
|
|
105
125
|
case "align-items--tablet":
|
|
106
126
|
case "align-items--laptop":
|
|
107
127
|
case "align-items--desktop":
|
|
108
|
-
this.updateFlexProperties(e, t, n,
|
|
128
|
+
this.updateFlexProperties(e, t, n, ee);
|
|
109
129
|
break;
|
|
110
130
|
case "wrap":
|
|
111
131
|
case "wrap--mobile":
|
|
112
132
|
case "wrap--tablet":
|
|
113
133
|
case "wrap--laptop":
|
|
114
134
|
case "wrap--desktop":
|
|
115
|
-
this.updateFlexProperties(e, t, n,
|
|
135
|
+
this.updateFlexProperties(e, t, n, ne);
|
|
116
136
|
break;
|
|
117
137
|
case "direction":
|
|
118
138
|
case "direction--mobile":
|
|
119
139
|
case "direction--tablet":
|
|
120
140
|
case "direction--laptop":
|
|
121
141
|
case "direction--desktop":
|
|
122
|
-
this.updateFlexProperties(e, t, n,
|
|
142
|
+
this.updateFlexProperties(e, t, n, x), this.updateVerticalStyles();
|
|
143
|
+
break;
|
|
144
|
+
case "min-width":
|
|
145
|
+
case "min-width--mobile":
|
|
146
|
+
case "min-width--tablet":
|
|
147
|
+
case "min-width--laptop":
|
|
148
|
+
case "min-width--desktop":
|
|
149
|
+
case "max-width":
|
|
150
|
+
case "max-width--mobile":
|
|
151
|
+
case "max-width--tablet":
|
|
152
|
+
case "max-width--laptop":
|
|
153
|
+
case "max-width--desktop":
|
|
154
|
+
n && !CSS.supports(e.split("--")[0], n) && u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
|
|
155
|
+
break;
|
|
156
|
+
case "overflow-y":
|
|
157
|
+
case "overflow-y--mobile":
|
|
158
|
+
case "overflow-y--tablet":
|
|
159
|
+
case "overflow-y--laptop":
|
|
160
|
+
case "overflow-y--desktop":
|
|
161
|
+
case "max-height":
|
|
162
|
+
case "max-height--mobile":
|
|
163
|
+
case "max-height--tablet":
|
|
164
|
+
case "max-height--laptop":
|
|
165
|
+
case "max-height--desktop":
|
|
166
|
+
n && !this.isValidVerticalValue(e, n) && u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
123
167
|
break;
|
|
124
168
|
case "overflow-x":
|
|
125
169
|
case "overflow-x--mobile":
|
|
@@ -131,6 +175,18 @@ var v = [
|
|
|
131
175
|
default: super.attributeChangedCallback(e, t, n);
|
|
132
176
|
}
|
|
133
177
|
}
|
|
178
|
+
isValidVerticalValue(e, t) {
|
|
179
|
+
return e.startsWith("overflow-y") ? S.includes(t) : CSS.supports("max-height", t);
|
|
180
|
+
}
|
|
181
|
+
updateVerticalStyles() {
|
|
182
|
+
for (let e of t.breakpoints) {
|
|
183
|
+
let t = this.localName === "px-stack" && this.getAttribute(`direction--${e}`) || this.direction, n = t === "column" || t === "column-reverse";
|
|
184
|
+
for (let t of ["overflow-y", "max-height"]) {
|
|
185
|
+
let r = this.getAttribute(`${t}--${e}`) || this.getAttribute(t);
|
|
186
|
+
this.updateStyle(t, e, n && r && this.isValidVerticalValue(t, r) ? r : null);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
134
190
|
updateOverflowX(e, t, n, r) {
|
|
135
191
|
if (!o(r, n)) {
|
|
136
192
|
u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
@@ -139,7 +195,7 @@ var v = [
|
|
|
139
195
|
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
140
196
|
}
|
|
141
197
|
updateFlexProperties(e, n, r, i) {
|
|
142
|
-
r !== null && !this.checkName(i, r) && u(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
198
|
+
i && r !== null && !this.checkName(i, r) && u(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
143
199
|
let a = e.indexOf("--");
|
|
144
200
|
if (a === -1) for (let n of t.breakpoints) this.getAttribute(`${e}--${n}`) || this.updateStyle(e, n, r, i);
|
|
145
201
|
else {
|
|
@@ -148,15 +204,15 @@ var v = [
|
|
|
148
204
|
}
|
|
149
205
|
}
|
|
150
206
|
updateStyle(e, t, n, r) {
|
|
151
|
-
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
152
|
-
if (!n) {
|
|
153
|
-
|
|
207
|
+
let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
|
|
208
|
+
if (o && n && !CSS.supports(e, n) && (n = null), !n) {
|
|
209
|
+
s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
154
210
|
return;
|
|
155
211
|
}
|
|
156
212
|
if (a && r && r.includes(n)) {
|
|
157
213
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
158
214
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
159
|
-
} else
|
|
215
|
+
} else s.style.setProperty(i, n);
|
|
160
216
|
}
|
|
161
217
|
static {
|
|
162
218
|
this.breakpoints = [
|
|
@@ -170,214 +226,334 @@ var v = [
|
|
|
170
226
|
return this.getAttribute("direction") ?? "row";
|
|
171
227
|
}
|
|
172
228
|
set direction(e) {
|
|
173
|
-
|
|
229
|
+
m(this, "direction", e);
|
|
174
230
|
}
|
|
175
231
|
get directionMobile() {
|
|
176
232
|
return this.getAttribute("direction--mobile");
|
|
177
233
|
}
|
|
178
234
|
set directionMobile(e) {
|
|
179
|
-
|
|
235
|
+
m(this, "direction--mobile", e);
|
|
180
236
|
}
|
|
181
237
|
get directionTablet() {
|
|
182
238
|
return this.getAttribute("direction--tablet");
|
|
183
239
|
}
|
|
184
240
|
set directionTablet(e) {
|
|
185
|
-
|
|
241
|
+
m(this, "direction--tablet", e);
|
|
186
242
|
}
|
|
187
243
|
get directionLaptop() {
|
|
188
244
|
return this.getAttribute("direction--laptop");
|
|
189
245
|
}
|
|
190
246
|
set directionLaptop(e) {
|
|
191
|
-
|
|
247
|
+
m(this, "direction--laptop", e);
|
|
192
248
|
}
|
|
193
249
|
get directionDesktop() {
|
|
194
250
|
return this.getAttribute("direction--desktop");
|
|
195
251
|
}
|
|
196
252
|
set directionDesktop(e) {
|
|
197
|
-
|
|
253
|
+
m(this, "direction--desktop", e);
|
|
198
254
|
}
|
|
199
255
|
get gap() {
|
|
200
256
|
return this.getAttribute("gap") ?? "none";
|
|
201
257
|
}
|
|
202
258
|
set gap(e) {
|
|
203
|
-
|
|
259
|
+
m(this, "gap", e);
|
|
204
260
|
}
|
|
205
261
|
get gapMobile() {
|
|
206
262
|
return this.getAttribute("gap--mobile");
|
|
207
263
|
}
|
|
208
264
|
set gapMobile(e) {
|
|
209
|
-
|
|
265
|
+
m(this, "gap--mobile", e);
|
|
210
266
|
}
|
|
211
267
|
get gapTablet() {
|
|
212
268
|
return this.getAttribute("gap--tablet");
|
|
213
269
|
}
|
|
214
270
|
set gapTablet(e) {
|
|
215
|
-
|
|
271
|
+
m(this, "gap--tablet", e);
|
|
216
272
|
}
|
|
217
273
|
get gapLaptop() {
|
|
218
274
|
return this.getAttribute("gap--laptop");
|
|
219
275
|
}
|
|
220
276
|
set gapLaptop(e) {
|
|
221
|
-
|
|
277
|
+
m(this, "gap--laptop", e);
|
|
222
278
|
}
|
|
223
279
|
get gapDesktop() {
|
|
224
280
|
return this.getAttribute("gap--desktop");
|
|
225
281
|
}
|
|
226
282
|
set gapDesktop(e) {
|
|
227
|
-
|
|
283
|
+
m(this, "gap--desktop", e);
|
|
228
284
|
}
|
|
229
285
|
get justifyContent() {
|
|
230
286
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
231
287
|
}
|
|
232
288
|
set justifyContent(e) {
|
|
233
|
-
|
|
289
|
+
m(this, "justify-content", e);
|
|
234
290
|
}
|
|
235
291
|
get justifyContentMobile() {
|
|
236
292
|
return this.getAttribute("justify-content--mobile");
|
|
237
293
|
}
|
|
238
294
|
set justifyContentMobile(e) {
|
|
239
|
-
|
|
295
|
+
m(this, "justify-content--mobile", e);
|
|
240
296
|
}
|
|
241
297
|
get justifyContentTablet() {
|
|
242
298
|
return this.getAttribute("justify-content--tablet");
|
|
243
299
|
}
|
|
244
300
|
set justifyContentTablet(e) {
|
|
245
|
-
|
|
301
|
+
m(this, "justify-content--tablet", e);
|
|
246
302
|
}
|
|
247
303
|
get justifyContentLaptop() {
|
|
248
304
|
return this.getAttribute("justify-content--laptop");
|
|
249
305
|
}
|
|
250
306
|
set justifyContentLaptop(e) {
|
|
251
|
-
|
|
307
|
+
m(this, "justify-content--laptop", e);
|
|
252
308
|
}
|
|
253
309
|
get justifyContentDesktop() {
|
|
254
310
|
return this.getAttribute("justify-content--desktop");
|
|
255
311
|
}
|
|
256
312
|
set justifyContentDesktop(e) {
|
|
257
|
-
|
|
313
|
+
m(this, "justify-content--desktop", e);
|
|
258
314
|
}
|
|
259
315
|
get alignItems() {
|
|
260
316
|
return this.getAttribute("align-items") ?? "stretch";
|
|
261
317
|
}
|
|
262
318
|
set alignItems(e) {
|
|
263
|
-
|
|
319
|
+
m(this, "align-items", e);
|
|
264
320
|
}
|
|
265
321
|
get alignItemsMobile() {
|
|
266
322
|
return this.getAttribute("align-items--mobile");
|
|
267
323
|
}
|
|
268
324
|
set alignItemsMobile(e) {
|
|
269
|
-
|
|
325
|
+
m(this, "align-items--mobile", e);
|
|
270
326
|
}
|
|
271
327
|
get alignItemsTablet() {
|
|
272
328
|
return this.getAttribute("align-items--tablet");
|
|
273
329
|
}
|
|
274
330
|
set alignItemsTablet(e) {
|
|
275
|
-
|
|
331
|
+
m(this, "align-items--tablet", e);
|
|
276
332
|
}
|
|
277
333
|
get alignItemsLaptop() {
|
|
278
334
|
return this.getAttribute("align-items--laptop");
|
|
279
335
|
}
|
|
280
336
|
set alignItemsLaptop(e) {
|
|
281
|
-
|
|
337
|
+
m(this, "align-items--laptop", e);
|
|
282
338
|
}
|
|
283
339
|
get alignItemsDesktop() {
|
|
284
340
|
return this.getAttribute("align-items--desktop");
|
|
285
341
|
}
|
|
286
342
|
set alignItemsDesktop(e) {
|
|
287
|
-
|
|
343
|
+
m(this, "align-items--desktop", e);
|
|
288
344
|
}
|
|
289
345
|
get wrap() {
|
|
290
346
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
291
347
|
}
|
|
292
348
|
set wrap(e) {
|
|
293
|
-
|
|
349
|
+
m(this, "wrap", e);
|
|
294
350
|
}
|
|
295
351
|
get wrapMobile() {
|
|
296
352
|
return this.getAttribute("wrap--mobile");
|
|
297
353
|
}
|
|
298
354
|
set wrapMobile(e) {
|
|
299
|
-
|
|
355
|
+
m(this, "wrap--mobile", e);
|
|
300
356
|
}
|
|
301
357
|
get wrapTablet() {
|
|
302
358
|
return this.getAttribute("wrap--tablet");
|
|
303
359
|
}
|
|
304
360
|
set wrapTablet(e) {
|
|
305
|
-
|
|
361
|
+
m(this, "wrap--tablet", e);
|
|
306
362
|
}
|
|
307
363
|
get wrapLaptop() {
|
|
308
364
|
return this.getAttribute("wrap--laptop");
|
|
309
365
|
}
|
|
310
366
|
set wrapLaptop(e) {
|
|
311
|
-
|
|
367
|
+
m(this, "wrap--laptop", e);
|
|
312
368
|
}
|
|
313
369
|
get wrapDesktop() {
|
|
314
370
|
return this.getAttribute("wrap--desktop");
|
|
315
371
|
}
|
|
316
372
|
set wrapDesktop(e) {
|
|
317
|
-
|
|
373
|
+
m(this, "wrap--desktop", e);
|
|
318
374
|
}
|
|
319
375
|
get overflowX() {
|
|
320
376
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
321
377
|
}
|
|
322
378
|
set overflowX(e) {
|
|
323
|
-
|
|
379
|
+
m(this, "overflow-x", e);
|
|
324
380
|
}
|
|
325
381
|
get overflowXMobile() {
|
|
326
382
|
return this.getAttribute("overflow-x--mobile");
|
|
327
383
|
}
|
|
328
384
|
set overflowXMobile(e) {
|
|
329
|
-
|
|
385
|
+
m(this, "overflow-x--mobile", e);
|
|
330
386
|
}
|
|
331
387
|
get overflowXTablet() {
|
|
332
388
|
return this.getAttribute("overflow-x--tablet");
|
|
333
389
|
}
|
|
334
390
|
set overflowXTablet(e) {
|
|
335
|
-
|
|
391
|
+
m(this, "overflow-x--tablet", e);
|
|
336
392
|
}
|
|
337
393
|
get overflowXLaptop() {
|
|
338
394
|
return this.getAttribute("overflow-x--laptop");
|
|
339
395
|
}
|
|
340
396
|
set overflowXLaptop(e) {
|
|
341
|
-
|
|
397
|
+
m(this, "overflow-x--laptop", e);
|
|
342
398
|
}
|
|
343
399
|
get overflowXDesktop() {
|
|
344
400
|
return this.getAttribute("overflow-x--desktop");
|
|
345
401
|
}
|
|
346
402
|
set overflowXDesktop(e) {
|
|
347
|
-
|
|
403
|
+
m(this, "overflow-x--desktop", e);
|
|
404
|
+
}
|
|
405
|
+
get overflowY() {
|
|
406
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
407
|
+
}
|
|
408
|
+
set overflowY(e) {
|
|
409
|
+
m(this, "overflow-y", e);
|
|
410
|
+
}
|
|
411
|
+
get overflowYMobile() {
|
|
412
|
+
return this.getAttribute("overflow-y--mobile");
|
|
413
|
+
}
|
|
414
|
+
set overflowYMobile(e) {
|
|
415
|
+
m(this, "overflow-y--mobile", e);
|
|
416
|
+
}
|
|
417
|
+
get overflowYTablet() {
|
|
418
|
+
return this.getAttribute("overflow-y--tablet");
|
|
419
|
+
}
|
|
420
|
+
set overflowYTablet(e) {
|
|
421
|
+
m(this, "overflow-y--tablet", e);
|
|
422
|
+
}
|
|
423
|
+
get overflowYLaptop() {
|
|
424
|
+
return this.getAttribute("overflow-y--laptop");
|
|
425
|
+
}
|
|
426
|
+
set overflowYLaptop(e) {
|
|
427
|
+
m(this, "overflow-y--laptop", e);
|
|
428
|
+
}
|
|
429
|
+
get overflowYDesktop() {
|
|
430
|
+
return this.getAttribute("overflow-y--desktop");
|
|
431
|
+
}
|
|
432
|
+
set overflowYDesktop(e) {
|
|
433
|
+
m(this, "overflow-y--desktop", e);
|
|
434
|
+
}
|
|
435
|
+
get maxHeight() {
|
|
436
|
+
return this.getAttribute("max-height") ?? "none";
|
|
437
|
+
}
|
|
438
|
+
set maxHeight(e) {
|
|
439
|
+
m(this, "max-height", e);
|
|
440
|
+
}
|
|
441
|
+
get maxHeightMobile() {
|
|
442
|
+
return this.getAttribute("max-height--mobile");
|
|
443
|
+
}
|
|
444
|
+
set maxHeightMobile(e) {
|
|
445
|
+
m(this, "max-height--mobile", e);
|
|
446
|
+
}
|
|
447
|
+
get maxHeightTablet() {
|
|
448
|
+
return this.getAttribute("max-height--tablet");
|
|
449
|
+
}
|
|
450
|
+
set maxHeightTablet(e) {
|
|
451
|
+
m(this, "max-height--tablet", e);
|
|
452
|
+
}
|
|
453
|
+
get maxHeightLaptop() {
|
|
454
|
+
return this.getAttribute("max-height--laptop");
|
|
455
|
+
}
|
|
456
|
+
set maxHeightLaptop(e) {
|
|
457
|
+
m(this, "max-height--laptop", e);
|
|
458
|
+
}
|
|
459
|
+
get maxHeightDesktop() {
|
|
460
|
+
return this.getAttribute("max-height--desktop");
|
|
461
|
+
}
|
|
462
|
+
set maxHeightDesktop(e) {
|
|
463
|
+
m(this, "max-height--desktop", e);
|
|
464
|
+
}
|
|
465
|
+
get minWidth() {
|
|
466
|
+
return this.getAttribute("min-width") ?? "auto";
|
|
467
|
+
}
|
|
468
|
+
set minWidth(e) {
|
|
469
|
+
m(this, "min-width", e);
|
|
470
|
+
}
|
|
471
|
+
get minWidthMobile() {
|
|
472
|
+
return this.getAttribute("min-width--mobile");
|
|
473
|
+
}
|
|
474
|
+
set minWidthMobile(e) {
|
|
475
|
+
m(this, "min-width--mobile", e);
|
|
476
|
+
}
|
|
477
|
+
get minWidthTablet() {
|
|
478
|
+
return this.getAttribute("min-width--tablet");
|
|
479
|
+
}
|
|
480
|
+
set minWidthTablet(e) {
|
|
481
|
+
m(this, "min-width--tablet", e);
|
|
482
|
+
}
|
|
483
|
+
get minWidthLaptop() {
|
|
484
|
+
return this.getAttribute("min-width--laptop");
|
|
485
|
+
}
|
|
486
|
+
set minWidthLaptop(e) {
|
|
487
|
+
m(this, "min-width--laptop", e);
|
|
488
|
+
}
|
|
489
|
+
get minWidthDesktop() {
|
|
490
|
+
return this.getAttribute("min-width--desktop");
|
|
491
|
+
}
|
|
492
|
+
set minWidthDesktop(e) {
|
|
493
|
+
m(this, "min-width--desktop", e);
|
|
494
|
+
}
|
|
495
|
+
get maxWidth() {
|
|
496
|
+
return this.getAttribute("max-width") ?? "none";
|
|
497
|
+
}
|
|
498
|
+
set maxWidth(e) {
|
|
499
|
+
m(this, "max-width", e);
|
|
500
|
+
}
|
|
501
|
+
get maxWidthMobile() {
|
|
502
|
+
return this.getAttribute("max-width--mobile");
|
|
503
|
+
}
|
|
504
|
+
set maxWidthMobile(e) {
|
|
505
|
+
m(this, "max-width--mobile", e);
|
|
506
|
+
}
|
|
507
|
+
get maxWidthTablet() {
|
|
508
|
+
return this.getAttribute("max-width--tablet");
|
|
509
|
+
}
|
|
510
|
+
set maxWidthTablet(e) {
|
|
511
|
+
m(this, "max-width--tablet", e);
|
|
512
|
+
}
|
|
513
|
+
get maxWidthLaptop() {
|
|
514
|
+
return this.getAttribute("max-width--laptop");
|
|
515
|
+
}
|
|
516
|
+
set maxWidthLaptop(e) {
|
|
517
|
+
m(this, "max-width--laptop", e);
|
|
518
|
+
}
|
|
519
|
+
get maxWidthDesktop() {
|
|
520
|
+
return this.getAttribute("max-width--desktop");
|
|
521
|
+
}
|
|
522
|
+
set maxWidthDesktop(e) {
|
|
523
|
+
m(this, "max-width--desktop", e);
|
|
348
524
|
}
|
|
349
525
|
get $el() {
|
|
350
526
|
return this.shadowRoot.firstElementChild;
|
|
351
527
|
}
|
|
352
528
|
};
|
|
353
529
|
customElements.get("px-stack") || customElements.define("px-stack", C);
|
|
354
|
-
var w = (e) => e === "direction" || e.startsWith("direction--"),
|
|
530
|
+
var w = (e) => e === "direction" || e.startsWith("direction--"), re = class extends C {
|
|
355
531
|
get direction() {
|
|
356
532
|
return "column";
|
|
357
533
|
}
|
|
358
534
|
set direction(e) {
|
|
359
|
-
|
|
535
|
+
m(this, "direction", e);
|
|
360
536
|
}
|
|
361
537
|
attributeChangedCallback(e, t, n) {
|
|
362
538
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
363
539
|
}
|
|
364
540
|
};
|
|
365
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
366
|
-
var
|
|
541
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", re);
|
|
542
|
+
var ie = class extends C {
|
|
367
543
|
get direction() {
|
|
368
544
|
return "row";
|
|
369
545
|
}
|
|
370
546
|
set direction(e) {
|
|
371
|
-
|
|
547
|
+
m(this, "direction", e);
|
|
372
548
|
}
|
|
373
549
|
attributeChangedCallback(e, t, n) {
|
|
374
550
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
375
551
|
}
|
|
376
552
|
};
|
|
377
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
553
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ie);
|
|
378
554
|
//#endregion
|
|
379
555
|
//#region ../Layout/src/Spacer.ts
|
|
380
|
-
var
|
|
556
|
+
var ae = class extends HTMLElement {
|
|
381
557
|
constructor() {
|
|
382
558
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
383
559
|
}
|
|
@@ -423,14 +599,14 @@ var te = class extends HTMLElement {
|
|
|
423
599
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
424
600
|
}
|
|
425
601
|
};
|
|
426
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
602
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ae);
|
|
427
603
|
//#endregion
|
|
428
604
|
//#region ../Layout/src/Page.css?inline
|
|
429
|
-
var
|
|
430
|
-
|
|
431
|
-
var
|
|
605
|
+
var oe = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", T = new CSSStyleSheet();
|
|
606
|
+
T.replaceSync(oe);
|
|
607
|
+
var E = class extends n {
|
|
432
608
|
constructor() {
|
|
433
|
-
super(
|
|
609
|
+
super(T), this.template = () => `
|
|
434
610
|
<px-container border-radius="none" padding="none">
|
|
435
611
|
<px-vstack>
|
|
436
612
|
<px-container id="header-container" border-radius="none">
|
|
@@ -523,7 +699,7 @@ var re = class extends n {
|
|
|
523
699
|
</px-container>
|
|
524
700
|
</px-vstack>
|
|
525
701
|
</px-container>
|
|
526
|
-
`,
|
|
702
|
+
`, h(this.shadowRoot, this.template());
|
|
527
703
|
}
|
|
528
704
|
static get observedAttributes() {
|
|
529
705
|
return [
|
|
@@ -610,29 +786,38 @@ var re = class extends n {
|
|
|
610
786
|
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;
|
|
611
787
|
}
|
|
612
788
|
};
|
|
613
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
789
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", E);
|
|
614
790
|
//#endregion
|
|
615
791
|
//#region ../ButtonIcon/src/buttonicon.css?inline
|
|
616
|
-
var
|
|
617
|
-
|
|
618
|
-
var
|
|
792
|
+
var D = ":host{display:inline-block}.btn-icon,.btn-icon *{box-sizing:border-box}.btn-icon{font-size:var(--px-font-size-base);width:var(--px-size-l);height:var(--px-size-l);vertical-align:middle;cursor:pointer;--btn-transition:all .2s ease-in-out 0s;transition:var(--btn-transition);background:var(--px-color-background-container-primary-default);color:var(--px-color-icon-brand-inverted);border-radius:var(--px-radius-pill);padding:var(--px-padding-xs-mobile);border:var(--px-size-border-m) solid transparent;justify-content:center;align-items:center;display:inline-flex}.btn-icon ::slotted(px-icon){line-height:0}.btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-default);color:var(--px-color-icon-brand-default);border-color:var(--px-color-border-state-hover-default)}.btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-icon-state-active-default);border-color:var(--px-color-border-state-active-default)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn-icon[disabled],.btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-state-disabled-default);cursor:default;pointer-events:none}.btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-brand-default);cursor:inherit}.btn-icon--size-small{padding:var(--px-padding-2xs-mobile);width:var(--px-size-m);height:var(--px-size-m)}.btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-default);color:var(--px-color-icon-brand-default)}.btn-icon--variant-naked{color:var(--px-color-icon-brand-default);background-color:#0000;width:auto;height:auto}:host([inverted]) .btn-icon{background:var(--px-color-background-container-primary-inverted);color:var(--px-color-icon-brand-default)}:host([inverted]) .btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-inverted);color:var(--px-color-icon-brand-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-default);color:var(--px-color-icon-state-active-inverted);border-color:var(--px-color-border-state-active-inverted)}:host([inverted]) .btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn-icon[disabled],:host([inverted]) .btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-state-disabled-inverted)}:host([inverted]) .btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-brand-inverted);border-color:#0000}:host([inverted]) .btn-icon.btn-icon--variant-naked{color:var(--px-color-icon-brand-inverted);background-color:#0000}:host([inverted]) .btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-inverted);color:var(--px-color-icon-brand-inverted)}@media screen and (width>=48rem){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}@media screen and (width>=64.0625rem){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}", O = new CSSStyleSheet();
|
|
793
|
+
O.replaceSync(D);
|
|
794
|
+
var k = [
|
|
619
795
|
"",
|
|
620
796
|
"default",
|
|
621
797
|
"small"
|
|
622
|
-
],
|
|
798
|
+
], A = [
|
|
623
799
|
"",
|
|
624
800
|
"default",
|
|
625
801
|
"secondary",
|
|
626
802
|
"naked"
|
|
627
|
-
],
|
|
803
|
+
], se = class e extends t {
|
|
628
804
|
static {
|
|
629
805
|
this.template = s("<button class=\"btn-icon\"><slot></slot></button>");
|
|
630
806
|
}
|
|
631
807
|
static {
|
|
632
808
|
this.nativeName = "button";
|
|
633
809
|
}
|
|
810
|
+
static {
|
|
811
|
+
this.nativeProperties = p;
|
|
812
|
+
}
|
|
813
|
+
static {
|
|
814
|
+
this.nativeMethods = f;
|
|
815
|
+
}
|
|
816
|
+
static {
|
|
817
|
+
this.nativeAttributes = d;
|
|
818
|
+
}
|
|
634
819
|
constructor() {
|
|
635
|
-
super(
|
|
820
|
+
super(O), h(this.shadowRoot, e.template);
|
|
636
821
|
}
|
|
637
822
|
static get observedAttributes() {
|
|
638
823
|
return [
|
|
@@ -668,7 +853,7 @@ var O = [
|
|
|
668
853
|
case "aria-expanded":
|
|
669
854
|
n && (this.$el.setAttribute("aria-expanded", n), this.removeAttribute("aria-expanded"));
|
|
670
855
|
break;
|
|
671
|
-
default: super.attributeChangedCallback(e, t, n);
|
|
856
|
+
default: r.includes(e) ? this._forwardNativeAttribute(e, n) : super.attributeChangedCallback(e, t, n);
|
|
672
857
|
}
|
|
673
858
|
}
|
|
674
859
|
_toggleClass(e, t) {
|
|
@@ -678,10 +863,10 @@ var O = [
|
|
|
678
863
|
this.$el.classList.toggle("btn-icon--state-loading");
|
|
679
864
|
}
|
|
680
865
|
updateSize(e, t) {
|
|
681
|
-
this.checkName(
|
|
866
|
+
this.checkName(k, t) ? (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--size-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--size-${t}`)) : u(`"${t}" is not a valid size value for ${this.tagName.toLowerCase()}. Allowed values are: "${k.join("\", \"")}".`);
|
|
682
867
|
}
|
|
683
868
|
updateVariant(e, t) {
|
|
684
|
-
this.checkName(
|
|
869
|
+
this.checkName(A, t) ? (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--variant-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--variant-${t}`)) : u(`"${t}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${A.join("\", \"")}".`);
|
|
685
870
|
}
|
|
686
871
|
get inverted() {
|
|
687
872
|
return this.hasAttribute("inverted");
|
|
@@ -714,10 +899,10 @@ var O = [
|
|
|
714
899
|
this._updateAttribute("aria-expanded", e);
|
|
715
900
|
}
|
|
716
901
|
};
|
|
717
|
-
customElements.get("px-button-icon") || customElements.define("px-button-icon",
|
|
902
|
+
customElements.get("px-button-icon") || customElements.define("px-button-icon", se);
|
|
718
903
|
//#endregion
|
|
719
904
|
//#region ../Icon/common/src/IconSet.ts
|
|
720
|
-
var
|
|
905
|
+
var ce = class extends HTMLElement {
|
|
721
906
|
constructor() {
|
|
722
907
|
super();
|
|
723
908
|
}
|
|
@@ -751,8 +936,8 @@ var j = class extends HTMLElement {
|
|
|
751
936
|
e && e.remove();
|
|
752
937
|
}
|
|
753
938
|
};
|
|
754
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
755
|
-
var
|
|
939
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", ce);
|
|
940
|
+
var le = [
|
|
756
941
|
"Inherit",
|
|
757
942
|
"Brand",
|
|
758
943
|
"Accent",
|
|
@@ -766,9 +951,9 @@ var M = [
|
|
|
766
951
|
"StateHover",
|
|
767
952
|
"StateActive",
|
|
768
953
|
"StateDisabled"
|
|
769
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
770
|
-
|
|
771
|
-
var
|
|
954
|
+
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)), ue = ":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)}", j = new CSSStyleSheet();
|
|
955
|
+
j.replaceSync(ue);
|
|
956
|
+
var de = class e extends n {
|
|
772
957
|
static {
|
|
773
958
|
this.template = s("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
774
959
|
}
|
|
@@ -787,7 +972,7 @@ var oe = class e extends n {
|
|
|
787
972
|
];
|
|
788
973
|
}
|
|
789
974
|
constructor(...t) {
|
|
790
|
-
super(...t,
|
|
975
|
+
super(...t, j), h(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
791
976
|
}
|
|
792
977
|
attributeChangedCallback(e, t, n) {
|
|
793
978
|
if (t !== n) switch (e) {
|
|
@@ -798,7 +983,7 @@ var oe = class e extends n {
|
|
|
798
983
|
this.updateAttribute(e, t, n, l);
|
|
799
984
|
break;
|
|
800
985
|
case "color":
|
|
801
|
-
this.updateAttribute(e, t, n,
|
|
986
|
+
this.updateAttribute(e, t, n, le);
|
|
802
987
|
break;
|
|
803
988
|
case "disabled":
|
|
804
989
|
this.color = "state-disabled";
|
|
@@ -834,25 +1019,25 @@ var oe = class e extends n {
|
|
|
834
1019
|
return this.getAttribute("name");
|
|
835
1020
|
}
|
|
836
1021
|
set name(e) {
|
|
837
|
-
|
|
1022
|
+
m(this, "name", e);
|
|
838
1023
|
}
|
|
839
1024
|
get size() {
|
|
840
1025
|
return this.getAttribute("size");
|
|
841
1026
|
}
|
|
842
1027
|
set size(e) {
|
|
843
|
-
|
|
1028
|
+
m(this, "size", e);
|
|
844
1029
|
}
|
|
845
1030
|
get color() {
|
|
846
1031
|
return this.getAttribute("color");
|
|
847
1032
|
}
|
|
848
1033
|
set color(e) {
|
|
849
|
-
|
|
1034
|
+
m(this, "color", e);
|
|
850
1035
|
}
|
|
851
1036
|
get arialabel() {
|
|
852
1037
|
return this.getAttribute("aria-label");
|
|
853
1038
|
}
|
|
854
1039
|
set arialabel(e) {
|
|
855
|
-
|
|
1040
|
+
m(this, "aria-label", e);
|
|
856
1041
|
}
|
|
857
1042
|
get inverted() {
|
|
858
1043
|
return this.hasAttribute("inverted");
|
|
@@ -864,7 +1049,7 @@ var oe = class e extends n {
|
|
|
864
1049
|
return this.getAttribute("from");
|
|
865
1050
|
}
|
|
866
1051
|
set from(e) {
|
|
867
|
-
|
|
1052
|
+
m(this, "from", e);
|
|
868
1053
|
}
|
|
869
1054
|
get disabled() {
|
|
870
1055
|
return this.hasAttribute("disabled");
|
|
@@ -873,18 +1058,18 @@ var oe = class e extends n {
|
|
|
873
1058
|
a(this, "disabled", e);
|
|
874
1059
|
}
|
|
875
1060
|
};
|
|
876
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
1061
|
+
customElements.get("px-icon") || customElements.define("px-icon", de);
|
|
877
1062
|
//#endregion
|
|
878
1063
|
//#region src/appleseed.css?inline
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
var
|
|
1064
|
+
var fe = ":host{--px-appleseed-size-l:14px;--px-appleseed-size-m:10px;--px-appleseed-size-s:6px;--px-appleseed-size-xs:4px}.container{display:flex}:is(.container:has(#seed-0.appleseed-6-plus[active]),.container:has(#seed-1.appleseed-6-plus[active])) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}:is(.container:has(#seed-0.appleseed-6-plus[active]),.container:has(#seed-1.appleseed-6-plus[active])) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}:is(.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(2),.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(4))>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}:is(.container:has(#seed-2.appleseed-6-plus[active]) :first-child,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(5))>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :first-child>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :first-child>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.appleseed{width:var(--px-size-icon-m);height:var(--px-size-icon-m);justify-content:center;align-items:center;display:flex}@media screen and (width<=47.938rem){.appleseed{width:var(--px-size-icon-s);height:var(--px-size-icon-s)}}:is(.appleseed-6-plus,.appleseed-6-minus)>div{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-brand-default);border-radius:var(--px-radius-main);height:var(--px-appleseed-size-m);width:var(--px-appleseed-size-m)}:is(.appleseed-6-plus,.appleseed-6-minus)[active]>div{width:var(--px-appleseed-size-l);height:var(--px-appleseed-size-l);background-color:var(--px-color-icon-brand-default)}", M = new CSSStyleSheet();
|
|
1065
|
+
M.replaceSync(fe);
|
|
1066
|
+
var N = class extends HTMLElement {
|
|
882
1067
|
constructor() {
|
|
883
1068
|
super(), this.template = (e, t) => `<div class="container">
|
|
884
1069
|
${Array.from({ length: Math.min(e, 5) }, (n, r) => `<div id="seed-${r}" ${t === r ? "active" : ""} class="appleseed ${e > 5 ? "appleseed-6-plus" : "appleseed-6-minus"}">
|
|
885
1070
|
<div></div>
|
|
886
1071
|
</div>`).join("")}
|
|
887
|
-
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
1072
|
+
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [M], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
|
|
888
1073
|
}
|
|
889
1074
|
static get observedAttributes() {
|
|
890
1075
|
return ["amount", "active"];
|
|
@@ -910,16 +1095,16 @@ var F = class extends HTMLElement {
|
|
|
910
1095
|
return parseInt(this.getAttribute("active") ?? "0") || 0;
|
|
911
1096
|
}
|
|
912
1097
|
};
|
|
913
|
-
customElements.get("px-appleseed") || customElements.define("px-appleseed",
|
|
1098
|
+
customElements.get("px-appleseed") || customElements.define("px-appleseed", N);
|
|
914
1099
|
//#endregion
|
|
915
1100
|
//#region ../../../node_modules/lodash-es/isObject.js
|
|
916
|
-
function
|
|
1101
|
+
function P(e) {
|
|
917
1102
|
var t = typeof e;
|
|
918
1103
|
return e != null && (t == "object" || t == "function");
|
|
919
1104
|
}
|
|
920
1105
|
//#endregion
|
|
921
1106
|
//#region ../../../node_modules/lodash-es/_freeGlobal.js
|
|
922
|
-
var
|
|
1107
|
+
var F = typeof global == "object" && global && global.Object === Object && global, I = typeof self == "object" && self && self.Object === Object && self, L = F || I || Function("return this")(), R = function() {
|
|
923
1108
|
return L.Date.now();
|
|
924
1109
|
}, z = /\s/;
|
|
925
1110
|
function B(e) {
|
|
@@ -929,66 +1114,66 @@ function B(e) {
|
|
|
929
1114
|
//#endregion
|
|
930
1115
|
//#region ../../../node_modules/lodash-es/_baseTrim.js
|
|
931
1116
|
var V = /^\s+/;
|
|
932
|
-
function
|
|
1117
|
+
function pe(e) {
|
|
933
1118
|
return e && e.slice(0, B(e) + 1).replace(V, "");
|
|
934
1119
|
}
|
|
935
1120
|
//#endregion
|
|
936
1121
|
//#region ../../../node_modules/lodash-es/_Symbol.js
|
|
937
|
-
var
|
|
938
|
-
function
|
|
939
|
-
var t =
|
|
1122
|
+
var H = L.Symbol, U = Object.prototype, me = U.hasOwnProperty, he = U.toString, W = H ? H.toStringTag : void 0;
|
|
1123
|
+
function ge(e) {
|
|
1124
|
+
var t = me.call(e, W), n = e[W];
|
|
940
1125
|
try {
|
|
941
|
-
e[
|
|
1126
|
+
e[W] = void 0;
|
|
942
1127
|
var r = !0;
|
|
943
1128
|
} catch {}
|
|
944
|
-
var i =
|
|
945
|
-
return r && (t ? e[
|
|
1129
|
+
var i = he.call(e);
|
|
1130
|
+
return r && (t ? e[W] = n : delete e[W]), i;
|
|
946
1131
|
}
|
|
947
1132
|
//#endregion
|
|
948
1133
|
//#region ../../../node_modules/lodash-es/_objectToString.js
|
|
949
|
-
var
|
|
950
|
-
function
|
|
951
|
-
return
|
|
1134
|
+
var _e = Object.prototype.toString;
|
|
1135
|
+
function ve(e) {
|
|
1136
|
+
return _e.call(e);
|
|
952
1137
|
}
|
|
953
1138
|
//#endregion
|
|
954
1139
|
//#region ../../../node_modules/lodash-es/_baseGetTag.js
|
|
955
|
-
var
|
|
956
|
-
function
|
|
957
|
-
return e == null ? e === void 0 ?
|
|
1140
|
+
var ye = "[object Null]", be = "[object Undefined]", G = H ? H.toStringTag : void 0;
|
|
1141
|
+
function xe(e) {
|
|
1142
|
+
return e == null ? e === void 0 ? be : ye : G && G in Object(e) ? ge(e) : ve(e);
|
|
958
1143
|
}
|
|
959
1144
|
//#endregion
|
|
960
1145
|
//#region ../../../node_modules/lodash-es/isObjectLike.js
|
|
961
|
-
function
|
|
1146
|
+
function Se(e) {
|
|
962
1147
|
return typeof e == "object" && !!e;
|
|
963
1148
|
}
|
|
964
1149
|
//#endregion
|
|
965
1150
|
//#region ../../../node_modules/lodash-es/isSymbol.js
|
|
966
|
-
var
|
|
967
|
-
function
|
|
968
|
-
return typeof e == "symbol" ||
|
|
1151
|
+
var Ce = "[object Symbol]";
|
|
1152
|
+
function we(e) {
|
|
1153
|
+
return typeof e == "symbol" || Se(e) && xe(e) == Ce;
|
|
969
1154
|
}
|
|
970
1155
|
//#endregion
|
|
971
1156
|
//#region ../../../node_modules/lodash-es/toNumber.js
|
|
972
|
-
var
|
|
973
|
-
function
|
|
1157
|
+
var K = NaN, Te = /^[-+]0x[0-9a-f]+$/i, Ee = /^0b[01]+$/i, De = /^0o[0-7]+$/i, Oe = parseInt;
|
|
1158
|
+
function q(e) {
|
|
974
1159
|
if (typeof e == "number") return e;
|
|
975
|
-
if (
|
|
976
|
-
if (
|
|
1160
|
+
if (we(e)) return K;
|
|
1161
|
+
if (P(e)) {
|
|
977
1162
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
978
|
-
e =
|
|
1163
|
+
e = P(t) ? t + "" : t;
|
|
979
1164
|
}
|
|
980
1165
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
981
|
-
e =
|
|
982
|
-
var n =
|
|
983
|
-
return n ||
|
|
1166
|
+
e = pe(e);
|
|
1167
|
+
var n = Ee.test(e);
|
|
1168
|
+
return n || De.test(e) ? Oe(e.slice(2), n ? 2 : 8) : Te.test(e) ? K : +e;
|
|
984
1169
|
}
|
|
985
1170
|
//#endregion
|
|
986
1171
|
//#region ../../../node_modules/lodash-es/debounce.js
|
|
987
|
-
var
|
|
988
|
-
function
|
|
1172
|
+
var ke = "Expected a function", Ae = Math.max, je = Math.min;
|
|
1173
|
+
function Me(e, t, n) {
|
|
989
1174
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
990
|
-
if (typeof e != "function") throw TypeError(
|
|
991
|
-
t =
|
|
1175
|
+
if (typeof e != "function") throw TypeError(ke);
|
|
1176
|
+
t = q(t) || 0, P(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? Ae(q(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
|
|
992
1177
|
function p(t) {
|
|
993
1178
|
var n = r, a = i;
|
|
994
1179
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -998,7 +1183,7 @@ function Oe(e, t, n) {
|
|
|
998
1183
|
}
|
|
999
1184
|
function h(e) {
|
|
1000
1185
|
var n = e - c, r = e - l, i = t - n;
|
|
1001
|
-
return d ?
|
|
1186
|
+
return d ? je(i, a - r) : i;
|
|
1002
1187
|
}
|
|
1003
1188
|
function g(e) {
|
|
1004
1189
|
var n = e - c, r = e - l;
|
|
@@ -1030,11 +1215,11 @@ function Oe(e, t, n) {
|
|
|
1030
1215
|
}
|
|
1031
1216
|
//#endregion
|
|
1032
1217
|
//#region ../../../node_modules/lodash-es/throttle.js
|
|
1033
|
-
var
|
|
1034
|
-
function
|
|
1218
|
+
var J = "Expected a function";
|
|
1219
|
+
function Ne(e, t, n) {
|
|
1035
1220
|
var r = !0, i = !0;
|
|
1036
|
-
if (typeof e != "function") throw TypeError(
|
|
1037
|
-
return
|
|
1221
|
+
if (typeof e != "function") throw TypeError(J);
|
|
1222
|
+
return P(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Me(e, t, {
|
|
1038
1223
|
leading: r,
|
|
1039
1224
|
maxWait: t,
|
|
1040
1225
|
trailing: i
|
|
@@ -1043,7 +1228,7 @@ function Ae(e, t, n) {
|
|
|
1043
1228
|
//#endregion
|
|
1044
1229
|
//#region src/Carousel.ts
|
|
1045
1230
|
var Y = new CSSStyleSheet();
|
|
1046
|
-
Y.replaceSync(
|
|
1231
|
+
Y.replaceSync(g);
|
|
1047
1232
|
var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
1048
1233
|
static {
|
|
1049
1234
|
this.template = s("<px-vstack gap=\"default\"><div class=\"carousel\"><slot></slot></div><px-hstack\n id=\"appleseed-container\"\n justify-content=\"space-between\"\n justify-content--mobile=\"center\"\n ><px-appleseed active=\"0\"></px-appleseed><px-hstack id=\"button-icons\" gap=\"default\"><px-button-icon disabled id=\"previous\" aria-hidden=\"true\"><px-icon name=\"chevron_left\" from=\"lavender\"></px-icon></px-button-icon><px-button-icon id=\"next\" aria-hidden=\"true\"><px-icon name=\"chevron_right\" from=\"lavender\"></px-icon></px-button-icon></px-hstack></px-hstack></px-vstack>");
|
|
@@ -1054,12 +1239,12 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1054
1239
|
r = window.innerWidth < 768 ? Math.round(e / (t - n) * (this.itemNumbers - 1)) : Math.ceil(e + n) + 10 >= t ? this.itemNumbers - 1 : Math.floor(e / this.$firstItem.offsetWidth + 1) - 1;
|
|
1055
1240
|
let i = r;
|
|
1056
1241
|
this.itemNumbers > 5 && (r > 2 && r < this.itemNumbers - 2 ? i = 2 : r === this.itemNumbers - 2 ? i = 3 : r === this.itemNumbers - 1 && (i = 4)), this.$appleseed.setAttribute("active", `${i}`), this.handleNextPrevious();
|
|
1057
|
-
}, this.attachShadow({ mode: "open" }),
|
|
1242
|
+
}, this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Y];
|
|
1058
1243
|
}
|
|
1059
1244
|
connectedCallback() {
|
|
1060
1245
|
this.addEventListener(X, () => {
|
|
1061
1246
|
this.#e();
|
|
1062
|
-
}), this.#e(), this.$carousel.addEventListener("scroll",
|
|
1247
|
+
}), this.#e(), this.$carousel.addEventListener("scroll", Ne(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
|
|
1063
1248
|
this.$carousel.scrollLeft -= this.$carousel.clientWidth;
|
|
1064
1249
|
}), this.$next.addEventListener("click", () => {
|
|
1065
1250
|
this.$carousel.scrollLeft += this.$carousel.clientWidth;
|
|
@@ -1106,13 +1291,13 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1106
1291
|
};
|
|
1107
1292
|
customElements.get("px-carousel") || customElements.define("px-carousel", Z);
|
|
1108
1293
|
var Q = new CSSStyleSheet();
|
|
1109
|
-
Q.replaceSync(
|
|
1294
|
+
Q.replaceSync(_);
|
|
1110
1295
|
var $ = class e extends HTMLElement {
|
|
1111
1296
|
static {
|
|
1112
1297
|
this.template = s("<div class=\"carousel-item\"><slot></slot></div>");
|
|
1113
1298
|
}
|
|
1114
1299
|
constructor() {
|
|
1115
|
-
super(), this.attachShadow({ mode: "open" }),
|
|
1300
|
+
super(), this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Q];
|
|
1116
1301
|
}
|
|
1117
1302
|
connectedCallback() {
|
|
1118
1303
|
this.dispatchEvent(new CustomEvent(X, {
|
|
@@ -1123,4 +1308,4 @@ var $ = class e extends HTMLElement {
|
|
|
1123
1308
|
};
|
|
1124
1309
|
customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
|
|
1125
1310
|
//#endregion
|
|
1126
|
-
export {
|
|
1311
|
+
export { N as AppleSeed, X as CAROUSEL_ITEM_CONNECTED_EVENT, Z as Carousel, $ as CarouselItem };
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-carousel",
|
|
4
|
-
"version": "1.4.20-alpha.
|
|
4
|
+
"version": "1.4.20-alpha.10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|