@proximus/lavender-carousel 1.4.20-alpha.3 → 1.4.20-alpha.5
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 +233 -130
- 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{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", 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,17 @@ 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"
|
|
85
95
|
];
|
|
86
96
|
}
|
|
87
97
|
attributeChangedCallback(e, t, n) {
|
|
@@ -98,28 +108,40 @@ var v = [
|
|
|
98
108
|
case "justify-content--tablet":
|
|
99
109
|
case "justify-content--laptop":
|
|
100
110
|
case "justify-content--desktop":
|
|
101
|
-
this.updateFlexProperties(e, t, n,
|
|
111
|
+
this.updateFlexProperties(e, t, n, te);
|
|
102
112
|
break;
|
|
103
113
|
case "align-items":
|
|
104
114
|
case "align-items--mobile":
|
|
105
115
|
case "align-items--tablet":
|
|
106
116
|
case "align-items--laptop":
|
|
107
117
|
case "align-items--desktop":
|
|
108
|
-
this.updateFlexProperties(e, t, n,
|
|
118
|
+
this.updateFlexProperties(e, t, n, ee);
|
|
109
119
|
break;
|
|
110
120
|
case "wrap":
|
|
111
121
|
case "wrap--mobile":
|
|
112
122
|
case "wrap--tablet":
|
|
113
123
|
case "wrap--laptop":
|
|
114
124
|
case "wrap--desktop":
|
|
115
|
-
this.updateFlexProperties(e, t, n,
|
|
125
|
+
this.updateFlexProperties(e, t, n, ne);
|
|
116
126
|
break;
|
|
117
127
|
case "direction":
|
|
118
128
|
case "direction--mobile":
|
|
119
129
|
case "direction--tablet":
|
|
120
130
|
case "direction--laptop":
|
|
121
131
|
case "direction--desktop":
|
|
122
|
-
this.updateFlexProperties(e, t, n,
|
|
132
|
+
this.updateFlexProperties(e, t, n, x), this.updateVerticalStyles();
|
|
133
|
+
break;
|
|
134
|
+
case "overflow-y":
|
|
135
|
+
case "overflow-y--mobile":
|
|
136
|
+
case "overflow-y--tablet":
|
|
137
|
+
case "overflow-y--laptop":
|
|
138
|
+
case "overflow-y--desktop":
|
|
139
|
+
case "max-height":
|
|
140
|
+
case "max-height--mobile":
|
|
141
|
+
case "max-height--tablet":
|
|
142
|
+
case "max-height--laptop":
|
|
143
|
+
case "max-height--desktop":
|
|
144
|
+
n && !this.isValidVerticalValue(e, n) && u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
123
145
|
break;
|
|
124
146
|
case "overflow-x":
|
|
125
147
|
case "overflow-x--mobile":
|
|
@@ -131,6 +153,18 @@ var v = [
|
|
|
131
153
|
default: super.attributeChangedCallback(e, t, n);
|
|
132
154
|
}
|
|
133
155
|
}
|
|
156
|
+
isValidVerticalValue(e, t) {
|
|
157
|
+
return e.startsWith("overflow-y") ? S.includes(t) : CSS.supports("max-height", t);
|
|
158
|
+
}
|
|
159
|
+
updateVerticalStyles() {
|
|
160
|
+
for (let e of t.breakpoints) {
|
|
161
|
+
let t = this.localName === "px-stack" && this.getAttribute(`direction--${e}`) || this.direction, n = t === "column" || t === "column-reverse";
|
|
162
|
+
for (let t of ["overflow-y", "max-height"]) {
|
|
163
|
+
let r = this.getAttribute(`${t}--${e}`) || this.getAttribute(t);
|
|
164
|
+
this.updateStyle(t, e, n && r && this.isValidVerticalValue(t, r) ? r : null);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
134
168
|
updateOverflowX(e, t, n, r) {
|
|
135
169
|
if (!o(r, n)) {
|
|
136
170
|
u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
@@ -170,214 +204,274 @@ var v = [
|
|
|
170
204
|
return this.getAttribute("direction") ?? "row";
|
|
171
205
|
}
|
|
172
206
|
set direction(e) {
|
|
173
|
-
|
|
207
|
+
m(this, "direction", e);
|
|
174
208
|
}
|
|
175
209
|
get directionMobile() {
|
|
176
210
|
return this.getAttribute("direction--mobile");
|
|
177
211
|
}
|
|
178
212
|
set directionMobile(e) {
|
|
179
|
-
|
|
213
|
+
m(this, "direction--mobile", e);
|
|
180
214
|
}
|
|
181
215
|
get directionTablet() {
|
|
182
216
|
return this.getAttribute("direction--tablet");
|
|
183
217
|
}
|
|
184
218
|
set directionTablet(e) {
|
|
185
|
-
|
|
219
|
+
m(this, "direction--tablet", e);
|
|
186
220
|
}
|
|
187
221
|
get directionLaptop() {
|
|
188
222
|
return this.getAttribute("direction--laptop");
|
|
189
223
|
}
|
|
190
224
|
set directionLaptop(e) {
|
|
191
|
-
|
|
225
|
+
m(this, "direction--laptop", e);
|
|
192
226
|
}
|
|
193
227
|
get directionDesktop() {
|
|
194
228
|
return this.getAttribute("direction--desktop");
|
|
195
229
|
}
|
|
196
230
|
set directionDesktop(e) {
|
|
197
|
-
|
|
231
|
+
m(this, "direction--desktop", e);
|
|
198
232
|
}
|
|
199
233
|
get gap() {
|
|
200
234
|
return this.getAttribute("gap") ?? "none";
|
|
201
235
|
}
|
|
202
236
|
set gap(e) {
|
|
203
|
-
|
|
237
|
+
m(this, "gap", e);
|
|
204
238
|
}
|
|
205
239
|
get gapMobile() {
|
|
206
240
|
return this.getAttribute("gap--mobile");
|
|
207
241
|
}
|
|
208
242
|
set gapMobile(e) {
|
|
209
|
-
|
|
243
|
+
m(this, "gap--mobile", e);
|
|
210
244
|
}
|
|
211
245
|
get gapTablet() {
|
|
212
246
|
return this.getAttribute("gap--tablet");
|
|
213
247
|
}
|
|
214
248
|
set gapTablet(e) {
|
|
215
|
-
|
|
249
|
+
m(this, "gap--tablet", e);
|
|
216
250
|
}
|
|
217
251
|
get gapLaptop() {
|
|
218
252
|
return this.getAttribute("gap--laptop");
|
|
219
253
|
}
|
|
220
254
|
set gapLaptop(e) {
|
|
221
|
-
|
|
255
|
+
m(this, "gap--laptop", e);
|
|
222
256
|
}
|
|
223
257
|
get gapDesktop() {
|
|
224
258
|
return this.getAttribute("gap--desktop");
|
|
225
259
|
}
|
|
226
260
|
set gapDesktop(e) {
|
|
227
|
-
|
|
261
|
+
m(this, "gap--desktop", e);
|
|
228
262
|
}
|
|
229
263
|
get justifyContent() {
|
|
230
264
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
231
265
|
}
|
|
232
266
|
set justifyContent(e) {
|
|
233
|
-
|
|
267
|
+
m(this, "justify-content", e);
|
|
234
268
|
}
|
|
235
269
|
get justifyContentMobile() {
|
|
236
270
|
return this.getAttribute("justify-content--mobile");
|
|
237
271
|
}
|
|
238
272
|
set justifyContentMobile(e) {
|
|
239
|
-
|
|
273
|
+
m(this, "justify-content--mobile", e);
|
|
240
274
|
}
|
|
241
275
|
get justifyContentTablet() {
|
|
242
276
|
return this.getAttribute("justify-content--tablet");
|
|
243
277
|
}
|
|
244
278
|
set justifyContentTablet(e) {
|
|
245
|
-
|
|
279
|
+
m(this, "justify-content--tablet", e);
|
|
246
280
|
}
|
|
247
281
|
get justifyContentLaptop() {
|
|
248
282
|
return this.getAttribute("justify-content--laptop");
|
|
249
283
|
}
|
|
250
284
|
set justifyContentLaptop(e) {
|
|
251
|
-
|
|
285
|
+
m(this, "justify-content--laptop", e);
|
|
252
286
|
}
|
|
253
287
|
get justifyContentDesktop() {
|
|
254
288
|
return this.getAttribute("justify-content--desktop");
|
|
255
289
|
}
|
|
256
290
|
set justifyContentDesktop(e) {
|
|
257
|
-
|
|
291
|
+
m(this, "justify-content--desktop", e);
|
|
258
292
|
}
|
|
259
293
|
get alignItems() {
|
|
260
294
|
return this.getAttribute("align-items") ?? "stretch";
|
|
261
295
|
}
|
|
262
296
|
set alignItems(e) {
|
|
263
|
-
|
|
297
|
+
m(this, "align-items", e);
|
|
264
298
|
}
|
|
265
299
|
get alignItemsMobile() {
|
|
266
300
|
return this.getAttribute("align-items--mobile");
|
|
267
301
|
}
|
|
268
302
|
set alignItemsMobile(e) {
|
|
269
|
-
|
|
303
|
+
m(this, "align-items--mobile", e);
|
|
270
304
|
}
|
|
271
305
|
get alignItemsTablet() {
|
|
272
306
|
return this.getAttribute("align-items--tablet");
|
|
273
307
|
}
|
|
274
308
|
set alignItemsTablet(e) {
|
|
275
|
-
|
|
309
|
+
m(this, "align-items--tablet", e);
|
|
276
310
|
}
|
|
277
311
|
get alignItemsLaptop() {
|
|
278
312
|
return this.getAttribute("align-items--laptop");
|
|
279
313
|
}
|
|
280
314
|
set alignItemsLaptop(e) {
|
|
281
|
-
|
|
315
|
+
m(this, "align-items--laptop", e);
|
|
282
316
|
}
|
|
283
317
|
get alignItemsDesktop() {
|
|
284
318
|
return this.getAttribute("align-items--desktop");
|
|
285
319
|
}
|
|
286
320
|
set alignItemsDesktop(e) {
|
|
287
|
-
|
|
321
|
+
m(this, "align-items--desktop", e);
|
|
288
322
|
}
|
|
289
323
|
get wrap() {
|
|
290
324
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
291
325
|
}
|
|
292
326
|
set wrap(e) {
|
|
293
|
-
|
|
327
|
+
m(this, "wrap", e);
|
|
294
328
|
}
|
|
295
329
|
get wrapMobile() {
|
|
296
330
|
return this.getAttribute("wrap--mobile");
|
|
297
331
|
}
|
|
298
332
|
set wrapMobile(e) {
|
|
299
|
-
|
|
333
|
+
m(this, "wrap--mobile", e);
|
|
300
334
|
}
|
|
301
335
|
get wrapTablet() {
|
|
302
336
|
return this.getAttribute("wrap--tablet");
|
|
303
337
|
}
|
|
304
338
|
set wrapTablet(e) {
|
|
305
|
-
|
|
339
|
+
m(this, "wrap--tablet", e);
|
|
306
340
|
}
|
|
307
341
|
get wrapLaptop() {
|
|
308
342
|
return this.getAttribute("wrap--laptop");
|
|
309
343
|
}
|
|
310
344
|
set wrapLaptop(e) {
|
|
311
|
-
|
|
345
|
+
m(this, "wrap--laptop", e);
|
|
312
346
|
}
|
|
313
347
|
get wrapDesktop() {
|
|
314
348
|
return this.getAttribute("wrap--desktop");
|
|
315
349
|
}
|
|
316
350
|
set wrapDesktop(e) {
|
|
317
|
-
|
|
351
|
+
m(this, "wrap--desktop", e);
|
|
318
352
|
}
|
|
319
353
|
get overflowX() {
|
|
320
354
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
321
355
|
}
|
|
322
356
|
set overflowX(e) {
|
|
323
|
-
|
|
357
|
+
m(this, "overflow-x", e);
|
|
324
358
|
}
|
|
325
359
|
get overflowXMobile() {
|
|
326
360
|
return this.getAttribute("overflow-x--mobile");
|
|
327
361
|
}
|
|
328
362
|
set overflowXMobile(e) {
|
|
329
|
-
|
|
363
|
+
m(this, "overflow-x--mobile", e);
|
|
330
364
|
}
|
|
331
365
|
get overflowXTablet() {
|
|
332
366
|
return this.getAttribute("overflow-x--tablet");
|
|
333
367
|
}
|
|
334
368
|
set overflowXTablet(e) {
|
|
335
|
-
|
|
369
|
+
m(this, "overflow-x--tablet", e);
|
|
336
370
|
}
|
|
337
371
|
get overflowXLaptop() {
|
|
338
372
|
return this.getAttribute("overflow-x--laptop");
|
|
339
373
|
}
|
|
340
374
|
set overflowXLaptop(e) {
|
|
341
|
-
|
|
375
|
+
m(this, "overflow-x--laptop", e);
|
|
342
376
|
}
|
|
343
377
|
get overflowXDesktop() {
|
|
344
378
|
return this.getAttribute("overflow-x--desktop");
|
|
345
379
|
}
|
|
346
380
|
set overflowXDesktop(e) {
|
|
347
|
-
|
|
381
|
+
m(this, "overflow-x--desktop", e);
|
|
382
|
+
}
|
|
383
|
+
get overflowY() {
|
|
384
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
385
|
+
}
|
|
386
|
+
set overflowY(e) {
|
|
387
|
+
m(this, "overflow-y", e);
|
|
388
|
+
}
|
|
389
|
+
get overflowYMobile() {
|
|
390
|
+
return this.getAttribute("overflow-y--mobile");
|
|
391
|
+
}
|
|
392
|
+
set overflowYMobile(e) {
|
|
393
|
+
m(this, "overflow-y--mobile", e);
|
|
394
|
+
}
|
|
395
|
+
get overflowYTablet() {
|
|
396
|
+
return this.getAttribute("overflow-y--tablet");
|
|
397
|
+
}
|
|
398
|
+
set overflowYTablet(e) {
|
|
399
|
+
m(this, "overflow-y--tablet", e);
|
|
400
|
+
}
|
|
401
|
+
get overflowYLaptop() {
|
|
402
|
+
return this.getAttribute("overflow-y--laptop");
|
|
403
|
+
}
|
|
404
|
+
set overflowYLaptop(e) {
|
|
405
|
+
m(this, "overflow-y--laptop", e);
|
|
406
|
+
}
|
|
407
|
+
get overflowYDesktop() {
|
|
408
|
+
return this.getAttribute("overflow-y--desktop");
|
|
409
|
+
}
|
|
410
|
+
set overflowYDesktop(e) {
|
|
411
|
+
m(this, "overflow-y--desktop", e);
|
|
412
|
+
}
|
|
413
|
+
get maxHeight() {
|
|
414
|
+
return this.getAttribute("max-height") ?? "none";
|
|
415
|
+
}
|
|
416
|
+
set maxHeight(e) {
|
|
417
|
+
m(this, "max-height", e);
|
|
418
|
+
}
|
|
419
|
+
get maxHeightMobile() {
|
|
420
|
+
return this.getAttribute("max-height--mobile");
|
|
421
|
+
}
|
|
422
|
+
set maxHeightMobile(e) {
|
|
423
|
+
m(this, "max-height--mobile", e);
|
|
424
|
+
}
|
|
425
|
+
get maxHeightTablet() {
|
|
426
|
+
return this.getAttribute("max-height--tablet");
|
|
427
|
+
}
|
|
428
|
+
set maxHeightTablet(e) {
|
|
429
|
+
m(this, "max-height--tablet", e);
|
|
430
|
+
}
|
|
431
|
+
get maxHeightLaptop() {
|
|
432
|
+
return this.getAttribute("max-height--laptop");
|
|
433
|
+
}
|
|
434
|
+
set maxHeightLaptop(e) {
|
|
435
|
+
m(this, "max-height--laptop", e);
|
|
436
|
+
}
|
|
437
|
+
get maxHeightDesktop() {
|
|
438
|
+
return this.getAttribute("max-height--desktop");
|
|
439
|
+
}
|
|
440
|
+
set maxHeightDesktop(e) {
|
|
441
|
+
m(this, "max-height--desktop", e);
|
|
348
442
|
}
|
|
349
443
|
get $el() {
|
|
350
444
|
return this.shadowRoot.firstElementChild;
|
|
351
445
|
}
|
|
352
446
|
};
|
|
353
447
|
customElements.get("px-stack") || customElements.define("px-stack", C);
|
|
354
|
-
var w = (e) => e === "direction" || e.startsWith("direction--"),
|
|
448
|
+
var w = (e) => e === "direction" || e.startsWith("direction--"), re = class extends C {
|
|
355
449
|
get direction() {
|
|
356
450
|
return "column";
|
|
357
451
|
}
|
|
358
452
|
set direction(e) {
|
|
359
|
-
|
|
453
|
+
m(this, "direction", e);
|
|
360
454
|
}
|
|
361
455
|
attributeChangedCallback(e, t, n) {
|
|
362
456
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
363
457
|
}
|
|
364
458
|
};
|
|
365
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
366
|
-
var
|
|
459
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", re);
|
|
460
|
+
var ie = class extends C {
|
|
367
461
|
get direction() {
|
|
368
462
|
return "row";
|
|
369
463
|
}
|
|
370
464
|
set direction(e) {
|
|
371
|
-
|
|
465
|
+
m(this, "direction", e);
|
|
372
466
|
}
|
|
373
467
|
attributeChangedCallback(e, t, n) {
|
|
374
468
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
375
469
|
}
|
|
376
470
|
};
|
|
377
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
471
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ie);
|
|
378
472
|
//#endregion
|
|
379
473
|
//#region ../Layout/src/Spacer.ts
|
|
380
|
-
var
|
|
474
|
+
var ae = class extends HTMLElement {
|
|
381
475
|
constructor() {
|
|
382
476
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
383
477
|
}
|
|
@@ -423,14 +517,14 @@ var te = class extends HTMLElement {
|
|
|
423
517
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
424
518
|
}
|
|
425
519
|
};
|
|
426
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
520
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ae);
|
|
427
521
|
//#endregion
|
|
428
522
|
//#region ../Layout/src/Page.css?inline
|
|
429
|
-
var
|
|
430
|
-
|
|
431
|
-
var
|
|
523
|
+
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();
|
|
524
|
+
T.replaceSync(oe);
|
|
525
|
+
var E = class extends n {
|
|
432
526
|
constructor() {
|
|
433
|
-
super(
|
|
527
|
+
super(T), this.template = () => `
|
|
434
528
|
<px-container border-radius="none" padding="none">
|
|
435
529
|
<px-vstack>
|
|
436
530
|
<px-container id="header-container" border-radius="none">
|
|
@@ -523,7 +617,7 @@ var re = class extends n {
|
|
|
523
617
|
</px-container>
|
|
524
618
|
</px-vstack>
|
|
525
619
|
</px-container>
|
|
526
|
-
`,
|
|
620
|
+
`, h(this.shadowRoot, this.template());
|
|
527
621
|
}
|
|
528
622
|
static get observedAttributes() {
|
|
529
623
|
return [
|
|
@@ -610,29 +704,38 @@ var re = class extends n {
|
|
|
610
704
|
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
705
|
}
|
|
612
706
|
};
|
|
613
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
707
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", E);
|
|
614
708
|
//#endregion
|
|
615
709
|
//#region ../ButtonIcon/src/buttonicon.css?inline
|
|
616
|
-
var
|
|
617
|
-
|
|
618
|
-
var
|
|
710
|
+
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();
|
|
711
|
+
O.replaceSync(D);
|
|
712
|
+
var k = [
|
|
619
713
|
"",
|
|
620
714
|
"default",
|
|
621
715
|
"small"
|
|
622
|
-
],
|
|
716
|
+
], A = [
|
|
623
717
|
"",
|
|
624
718
|
"default",
|
|
625
719
|
"secondary",
|
|
626
720
|
"naked"
|
|
627
|
-
],
|
|
721
|
+
], se = class e extends t {
|
|
628
722
|
static {
|
|
629
723
|
this.template = s("<button class=\"btn-icon\"><slot></slot></button>");
|
|
630
724
|
}
|
|
631
725
|
static {
|
|
632
726
|
this.nativeName = "button";
|
|
633
727
|
}
|
|
728
|
+
static {
|
|
729
|
+
this.nativeProperties = p;
|
|
730
|
+
}
|
|
731
|
+
static {
|
|
732
|
+
this.nativeMethods = f;
|
|
733
|
+
}
|
|
734
|
+
static {
|
|
735
|
+
this.nativeAttributes = d;
|
|
736
|
+
}
|
|
634
737
|
constructor() {
|
|
635
|
-
super(
|
|
738
|
+
super(O), h(this.shadowRoot, e.template);
|
|
636
739
|
}
|
|
637
740
|
static get observedAttributes() {
|
|
638
741
|
return [
|
|
@@ -668,7 +771,7 @@ var O = [
|
|
|
668
771
|
case "aria-expanded":
|
|
669
772
|
n && (this.$el.setAttribute("aria-expanded", n), this.removeAttribute("aria-expanded"));
|
|
670
773
|
break;
|
|
671
|
-
default: super.attributeChangedCallback(e, t, n);
|
|
774
|
+
default: r.includes(e) ? this._forwardNativeAttribute(e, n) : super.attributeChangedCallback(e, t, n);
|
|
672
775
|
}
|
|
673
776
|
}
|
|
674
777
|
_toggleClass(e, t) {
|
|
@@ -678,10 +781,10 @@ var O = [
|
|
|
678
781
|
this.$el.classList.toggle("btn-icon--state-loading");
|
|
679
782
|
}
|
|
680
783
|
updateSize(e, t) {
|
|
681
|
-
this.checkName(
|
|
784
|
+
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
785
|
}
|
|
683
786
|
updateVariant(e, t) {
|
|
684
|
-
this.checkName(
|
|
787
|
+
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
788
|
}
|
|
686
789
|
get inverted() {
|
|
687
790
|
return this.hasAttribute("inverted");
|
|
@@ -714,10 +817,10 @@ var O = [
|
|
|
714
817
|
this._updateAttribute("aria-expanded", e);
|
|
715
818
|
}
|
|
716
819
|
};
|
|
717
|
-
customElements.get("px-button-icon") || customElements.define("px-button-icon",
|
|
820
|
+
customElements.get("px-button-icon") || customElements.define("px-button-icon", se);
|
|
718
821
|
//#endregion
|
|
719
822
|
//#region ../Icon/common/src/IconSet.ts
|
|
720
|
-
var
|
|
823
|
+
var ce = class extends HTMLElement {
|
|
721
824
|
constructor() {
|
|
722
825
|
super();
|
|
723
826
|
}
|
|
@@ -751,8 +854,8 @@ var j = class extends HTMLElement {
|
|
|
751
854
|
e && e.remove();
|
|
752
855
|
}
|
|
753
856
|
};
|
|
754
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
755
|
-
var
|
|
857
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", ce);
|
|
858
|
+
var le = [
|
|
756
859
|
"Inherit",
|
|
757
860
|
"Brand",
|
|
758
861
|
"Accent",
|
|
@@ -766,9 +869,9 @@ var M = [
|
|
|
766
869
|
"StateHover",
|
|
767
870
|
"StateActive",
|
|
768
871
|
"StateDisabled"
|
|
769
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
770
|
-
|
|
771
|
-
var
|
|
872
|
+
].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();
|
|
873
|
+
j.replaceSync(ue);
|
|
874
|
+
var de = class e extends n {
|
|
772
875
|
static {
|
|
773
876
|
this.template = s("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
774
877
|
}
|
|
@@ -787,7 +890,7 @@ var oe = class e extends n {
|
|
|
787
890
|
];
|
|
788
891
|
}
|
|
789
892
|
constructor(...t) {
|
|
790
|
-
super(...t,
|
|
893
|
+
super(...t, j), h(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
791
894
|
}
|
|
792
895
|
attributeChangedCallback(e, t, n) {
|
|
793
896
|
if (t !== n) switch (e) {
|
|
@@ -798,7 +901,7 @@ var oe = class e extends n {
|
|
|
798
901
|
this.updateAttribute(e, t, n, l);
|
|
799
902
|
break;
|
|
800
903
|
case "color":
|
|
801
|
-
this.updateAttribute(e, t, n,
|
|
904
|
+
this.updateAttribute(e, t, n, le);
|
|
802
905
|
break;
|
|
803
906
|
case "disabled":
|
|
804
907
|
this.color = "state-disabled";
|
|
@@ -834,25 +937,25 @@ var oe = class e extends n {
|
|
|
834
937
|
return this.getAttribute("name");
|
|
835
938
|
}
|
|
836
939
|
set name(e) {
|
|
837
|
-
|
|
940
|
+
m(this, "name", e);
|
|
838
941
|
}
|
|
839
942
|
get size() {
|
|
840
943
|
return this.getAttribute("size");
|
|
841
944
|
}
|
|
842
945
|
set size(e) {
|
|
843
|
-
|
|
946
|
+
m(this, "size", e);
|
|
844
947
|
}
|
|
845
948
|
get color() {
|
|
846
949
|
return this.getAttribute("color");
|
|
847
950
|
}
|
|
848
951
|
set color(e) {
|
|
849
|
-
|
|
952
|
+
m(this, "color", e);
|
|
850
953
|
}
|
|
851
954
|
get arialabel() {
|
|
852
955
|
return this.getAttribute("aria-label");
|
|
853
956
|
}
|
|
854
957
|
set arialabel(e) {
|
|
855
|
-
|
|
958
|
+
m(this, "aria-label", e);
|
|
856
959
|
}
|
|
857
960
|
get inverted() {
|
|
858
961
|
return this.hasAttribute("inverted");
|
|
@@ -864,7 +967,7 @@ var oe = class e extends n {
|
|
|
864
967
|
return this.getAttribute("from");
|
|
865
968
|
}
|
|
866
969
|
set from(e) {
|
|
867
|
-
|
|
970
|
+
m(this, "from", e);
|
|
868
971
|
}
|
|
869
972
|
get disabled() {
|
|
870
973
|
return this.hasAttribute("disabled");
|
|
@@ -873,18 +976,18 @@ var oe = class e extends n {
|
|
|
873
976
|
a(this, "disabled", e);
|
|
874
977
|
}
|
|
875
978
|
};
|
|
876
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
979
|
+
customElements.get("px-icon") || customElements.define("px-icon", de);
|
|
877
980
|
//#endregion
|
|
878
981
|
//#region src/appleseed.css?inline
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
var
|
|
982
|
+
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();
|
|
983
|
+
M.replaceSync(fe);
|
|
984
|
+
var N = class extends HTMLElement {
|
|
882
985
|
constructor() {
|
|
883
986
|
super(), this.template = (e, t) => `<div class="container">
|
|
884
987
|
${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
988
|
<div></div>
|
|
886
989
|
</div>`).join("")}
|
|
887
|
-
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
990
|
+
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [M], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
|
|
888
991
|
}
|
|
889
992
|
static get observedAttributes() {
|
|
890
993
|
return ["amount", "active"];
|
|
@@ -910,16 +1013,16 @@ var F = class extends HTMLElement {
|
|
|
910
1013
|
return parseInt(this.getAttribute("active") ?? "0") || 0;
|
|
911
1014
|
}
|
|
912
1015
|
};
|
|
913
|
-
customElements.get("px-appleseed") || customElements.define("px-appleseed",
|
|
1016
|
+
customElements.get("px-appleseed") || customElements.define("px-appleseed", N);
|
|
914
1017
|
//#endregion
|
|
915
1018
|
//#region ../../../node_modules/lodash-es/isObject.js
|
|
916
|
-
function
|
|
1019
|
+
function P(e) {
|
|
917
1020
|
var t = typeof e;
|
|
918
1021
|
return e != null && (t == "object" || t == "function");
|
|
919
1022
|
}
|
|
920
1023
|
//#endregion
|
|
921
1024
|
//#region ../../../node_modules/lodash-es/_freeGlobal.js
|
|
922
|
-
var
|
|
1025
|
+
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
1026
|
return L.Date.now();
|
|
924
1027
|
}, z = /\s/;
|
|
925
1028
|
function B(e) {
|
|
@@ -929,66 +1032,66 @@ function B(e) {
|
|
|
929
1032
|
//#endregion
|
|
930
1033
|
//#region ../../../node_modules/lodash-es/_baseTrim.js
|
|
931
1034
|
var V = /^\s+/;
|
|
932
|
-
function
|
|
1035
|
+
function pe(e) {
|
|
933
1036
|
return e && e.slice(0, B(e) + 1).replace(V, "");
|
|
934
1037
|
}
|
|
935
1038
|
//#endregion
|
|
936
1039
|
//#region ../../../node_modules/lodash-es/_Symbol.js
|
|
937
|
-
var
|
|
938
|
-
function
|
|
939
|
-
var t =
|
|
1040
|
+
var H = L.Symbol, U = Object.prototype, me = U.hasOwnProperty, he = U.toString, W = H ? H.toStringTag : void 0;
|
|
1041
|
+
function ge(e) {
|
|
1042
|
+
var t = me.call(e, W), n = e[W];
|
|
940
1043
|
try {
|
|
941
|
-
e[
|
|
1044
|
+
e[W] = void 0;
|
|
942
1045
|
var r = !0;
|
|
943
1046
|
} catch {}
|
|
944
|
-
var i =
|
|
945
|
-
return r && (t ? e[
|
|
1047
|
+
var i = he.call(e);
|
|
1048
|
+
return r && (t ? e[W] = n : delete e[W]), i;
|
|
946
1049
|
}
|
|
947
1050
|
//#endregion
|
|
948
1051
|
//#region ../../../node_modules/lodash-es/_objectToString.js
|
|
949
|
-
var
|
|
950
|
-
function
|
|
951
|
-
return
|
|
1052
|
+
var _e = Object.prototype.toString;
|
|
1053
|
+
function ve(e) {
|
|
1054
|
+
return _e.call(e);
|
|
952
1055
|
}
|
|
953
1056
|
//#endregion
|
|
954
1057
|
//#region ../../../node_modules/lodash-es/_baseGetTag.js
|
|
955
|
-
var
|
|
956
|
-
function
|
|
957
|
-
return e == null ? e === void 0 ?
|
|
1058
|
+
var ye = "[object Null]", be = "[object Undefined]", G = H ? H.toStringTag : void 0;
|
|
1059
|
+
function xe(e) {
|
|
1060
|
+
return e == null ? e === void 0 ? be : ye : G && G in Object(e) ? ge(e) : ve(e);
|
|
958
1061
|
}
|
|
959
1062
|
//#endregion
|
|
960
1063
|
//#region ../../../node_modules/lodash-es/isObjectLike.js
|
|
961
|
-
function
|
|
1064
|
+
function Se(e) {
|
|
962
1065
|
return typeof e == "object" && !!e;
|
|
963
1066
|
}
|
|
964
1067
|
//#endregion
|
|
965
1068
|
//#region ../../../node_modules/lodash-es/isSymbol.js
|
|
966
|
-
var
|
|
967
|
-
function
|
|
968
|
-
return typeof e == "symbol" ||
|
|
1069
|
+
var Ce = "[object Symbol]";
|
|
1070
|
+
function we(e) {
|
|
1071
|
+
return typeof e == "symbol" || Se(e) && xe(e) == Ce;
|
|
969
1072
|
}
|
|
970
1073
|
//#endregion
|
|
971
1074
|
//#region ../../../node_modules/lodash-es/toNumber.js
|
|
972
|
-
var
|
|
973
|
-
function
|
|
1075
|
+
var K = NaN, Te = /^[-+]0x[0-9a-f]+$/i, Ee = /^0b[01]+$/i, De = /^0o[0-7]+$/i, Oe = parseInt;
|
|
1076
|
+
function q(e) {
|
|
974
1077
|
if (typeof e == "number") return e;
|
|
975
|
-
if (
|
|
976
|
-
if (
|
|
1078
|
+
if (we(e)) return K;
|
|
1079
|
+
if (P(e)) {
|
|
977
1080
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
978
|
-
e =
|
|
1081
|
+
e = P(t) ? t + "" : t;
|
|
979
1082
|
}
|
|
980
1083
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
981
|
-
e =
|
|
982
|
-
var n =
|
|
983
|
-
return n ||
|
|
1084
|
+
e = pe(e);
|
|
1085
|
+
var n = Ee.test(e);
|
|
1086
|
+
return n || De.test(e) ? Oe(e.slice(2), n ? 2 : 8) : Te.test(e) ? K : +e;
|
|
984
1087
|
}
|
|
985
1088
|
//#endregion
|
|
986
1089
|
//#region ../../../node_modules/lodash-es/debounce.js
|
|
987
|
-
var
|
|
988
|
-
function
|
|
1090
|
+
var ke = "Expected a function", Ae = Math.max, je = Math.min;
|
|
1091
|
+
function Me(e, t, n) {
|
|
989
1092
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
990
|
-
if (typeof e != "function") throw TypeError(
|
|
991
|
-
t =
|
|
1093
|
+
if (typeof e != "function") throw TypeError(ke);
|
|
1094
|
+
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
1095
|
function p(t) {
|
|
993
1096
|
var n = r, a = i;
|
|
994
1097
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -998,7 +1101,7 @@ function Oe(e, t, n) {
|
|
|
998
1101
|
}
|
|
999
1102
|
function h(e) {
|
|
1000
1103
|
var n = e - c, r = e - l, i = t - n;
|
|
1001
|
-
return d ?
|
|
1104
|
+
return d ? je(i, a - r) : i;
|
|
1002
1105
|
}
|
|
1003
1106
|
function g(e) {
|
|
1004
1107
|
var n = e - c, r = e - l;
|
|
@@ -1030,11 +1133,11 @@ function Oe(e, t, n) {
|
|
|
1030
1133
|
}
|
|
1031
1134
|
//#endregion
|
|
1032
1135
|
//#region ../../../node_modules/lodash-es/throttle.js
|
|
1033
|
-
var
|
|
1034
|
-
function
|
|
1136
|
+
var J = "Expected a function";
|
|
1137
|
+
function Ne(e, t, n) {
|
|
1035
1138
|
var r = !0, i = !0;
|
|
1036
|
-
if (typeof e != "function") throw TypeError(
|
|
1037
|
-
return
|
|
1139
|
+
if (typeof e != "function") throw TypeError(J);
|
|
1140
|
+
return P(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Me(e, t, {
|
|
1038
1141
|
leading: r,
|
|
1039
1142
|
maxWait: t,
|
|
1040
1143
|
trailing: i
|
|
@@ -1043,7 +1146,7 @@ function Ae(e, t, n) {
|
|
|
1043
1146
|
//#endregion
|
|
1044
1147
|
//#region src/Carousel.ts
|
|
1045
1148
|
var Y = new CSSStyleSheet();
|
|
1046
|
-
Y.replaceSync(
|
|
1149
|
+
Y.replaceSync(g);
|
|
1047
1150
|
var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
1048
1151
|
static {
|
|
1049
1152
|
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 +1157,12 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1054
1157
|
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
1158
|
let i = r;
|
|
1056
1159
|
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" }),
|
|
1160
|
+
}, this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Y];
|
|
1058
1161
|
}
|
|
1059
1162
|
connectedCallback() {
|
|
1060
1163
|
this.addEventListener(X, () => {
|
|
1061
1164
|
this.#e();
|
|
1062
|
-
}), this.#e(), this.$carousel.addEventListener("scroll",
|
|
1165
|
+
}), this.#e(), this.$carousel.addEventListener("scroll", Ne(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
|
|
1063
1166
|
this.$carousel.scrollLeft -= this.$carousel.clientWidth;
|
|
1064
1167
|
}), this.$next.addEventListener("click", () => {
|
|
1065
1168
|
this.$carousel.scrollLeft += this.$carousel.clientWidth;
|
|
@@ -1106,13 +1209,13 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1106
1209
|
};
|
|
1107
1210
|
customElements.get("px-carousel") || customElements.define("px-carousel", Z);
|
|
1108
1211
|
var Q = new CSSStyleSheet();
|
|
1109
|
-
Q.replaceSync(
|
|
1212
|
+
Q.replaceSync(_);
|
|
1110
1213
|
var $ = class e extends HTMLElement {
|
|
1111
1214
|
static {
|
|
1112
1215
|
this.template = s("<div class=\"carousel-item\"><slot></slot></div>");
|
|
1113
1216
|
}
|
|
1114
1217
|
constructor() {
|
|
1115
|
-
super(), this.attachShadow({ mode: "open" }),
|
|
1218
|
+
super(), this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Q];
|
|
1116
1219
|
}
|
|
1117
1220
|
connectedCallback() {
|
|
1118
1221
|
this.dispatchEvent(new CustomEvent(X, {
|
|
@@ -1123,4 +1226,4 @@ var $ = class e extends HTMLElement {
|
|
|
1123
1226
|
};
|
|
1124
1227
|
customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
|
|
1125
1228
|
//#endregion
|
|
1126
|
-
export {
|
|
1229
|
+
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.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|