@proximus/lavender-carousel 2.0.0-alpha.228 → 2.0.0-alpha.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +153 -144
- 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<=48rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48.0625rem) 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<=48rem){#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<=48rem){: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>=48.0625rem) 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;--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}", 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<=48rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48.0625rem) 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<=48rem){#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<=48rem){: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>=48.0625rem) 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() {
|
|
@@ -108,28 +108,28 @@ var v = [
|
|
|
108
108
|
case "justify-content--tablet":
|
|
109
109
|
case "justify-content--laptop":
|
|
110
110
|
case "justify-content--desktop":
|
|
111
|
-
this.updateFlexProperties(e, t, n,
|
|
111
|
+
this.updateFlexProperties(e, t, n, te);
|
|
112
112
|
break;
|
|
113
113
|
case "align-items":
|
|
114
114
|
case "align-items--mobile":
|
|
115
115
|
case "align-items--tablet":
|
|
116
116
|
case "align-items--laptop":
|
|
117
117
|
case "align-items--desktop":
|
|
118
|
-
this.updateFlexProperties(e, t, n,
|
|
118
|
+
this.updateFlexProperties(e, t, n, ee);
|
|
119
119
|
break;
|
|
120
120
|
case "wrap":
|
|
121
121
|
case "wrap--mobile":
|
|
122
122
|
case "wrap--tablet":
|
|
123
123
|
case "wrap--laptop":
|
|
124
124
|
case "wrap--desktop":
|
|
125
|
-
this.updateFlexProperties(e, t, n,
|
|
125
|
+
this.updateFlexProperties(e, t, n, ne);
|
|
126
126
|
break;
|
|
127
127
|
case "direction":
|
|
128
128
|
case "direction--mobile":
|
|
129
129
|
case "direction--tablet":
|
|
130
130
|
case "direction--laptop":
|
|
131
131
|
case "direction--desktop":
|
|
132
|
-
this.updateFlexProperties(e, t, n,
|
|
132
|
+
this.updateFlexProperties(e, t, n, x), this.updateVerticalStyles();
|
|
133
133
|
break;
|
|
134
134
|
case "overflow-y":
|
|
135
135
|
case "overflow-y--mobile":
|
|
@@ -197,274 +197,274 @@ var v = [
|
|
|
197
197
|
return this.getAttribute("direction") ?? "row";
|
|
198
198
|
}
|
|
199
199
|
set direction(e) {
|
|
200
|
-
|
|
200
|
+
m(this, "direction", e);
|
|
201
201
|
}
|
|
202
202
|
get directionMobile() {
|
|
203
203
|
return this.getAttribute("direction--mobile");
|
|
204
204
|
}
|
|
205
205
|
set directionMobile(e) {
|
|
206
|
-
|
|
206
|
+
m(this, "direction--mobile", e);
|
|
207
207
|
}
|
|
208
208
|
get directionTablet() {
|
|
209
209
|
return this.getAttribute("direction--tablet");
|
|
210
210
|
}
|
|
211
211
|
set directionTablet(e) {
|
|
212
|
-
|
|
212
|
+
m(this, "direction--tablet", e);
|
|
213
213
|
}
|
|
214
214
|
get directionLaptop() {
|
|
215
215
|
return this.getAttribute("direction--laptop");
|
|
216
216
|
}
|
|
217
217
|
set directionLaptop(e) {
|
|
218
|
-
|
|
218
|
+
m(this, "direction--laptop", e);
|
|
219
219
|
}
|
|
220
220
|
get directionDesktop() {
|
|
221
221
|
return this.getAttribute("direction--desktop");
|
|
222
222
|
}
|
|
223
223
|
set directionDesktop(e) {
|
|
224
|
-
|
|
224
|
+
m(this, "direction--desktop", e);
|
|
225
225
|
}
|
|
226
226
|
get gap() {
|
|
227
227
|
return this.getAttribute("gap") ?? "none";
|
|
228
228
|
}
|
|
229
229
|
set gap(e) {
|
|
230
|
-
|
|
230
|
+
m(this, "gap", e);
|
|
231
231
|
}
|
|
232
232
|
get gapMobile() {
|
|
233
233
|
return this.getAttribute("gap--mobile");
|
|
234
234
|
}
|
|
235
235
|
set gapMobile(e) {
|
|
236
|
-
|
|
236
|
+
m(this, "gap--mobile", e);
|
|
237
237
|
}
|
|
238
238
|
get gapTablet() {
|
|
239
239
|
return this.getAttribute("gap--tablet");
|
|
240
240
|
}
|
|
241
241
|
set gapTablet(e) {
|
|
242
|
-
|
|
242
|
+
m(this, "gap--tablet", e);
|
|
243
243
|
}
|
|
244
244
|
get gapLaptop() {
|
|
245
245
|
return this.getAttribute("gap--laptop");
|
|
246
246
|
}
|
|
247
247
|
set gapLaptop(e) {
|
|
248
|
-
|
|
248
|
+
m(this, "gap--laptop", e);
|
|
249
249
|
}
|
|
250
250
|
get gapDesktop() {
|
|
251
251
|
return this.getAttribute("gap--desktop");
|
|
252
252
|
}
|
|
253
253
|
set gapDesktop(e) {
|
|
254
|
-
|
|
254
|
+
m(this, "gap--desktop", e);
|
|
255
255
|
}
|
|
256
256
|
get justifyContent() {
|
|
257
257
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
258
258
|
}
|
|
259
259
|
set justifyContent(e) {
|
|
260
|
-
|
|
260
|
+
m(this, "justify-content", e);
|
|
261
261
|
}
|
|
262
262
|
get justifyContentMobile() {
|
|
263
263
|
return this.getAttribute("justify-content--mobile");
|
|
264
264
|
}
|
|
265
265
|
set justifyContentMobile(e) {
|
|
266
|
-
|
|
266
|
+
m(this, "justify-content--mobile", e);
|
|
267
267
|
}
|
|
268
268
|
get justifyContentTablet() {
|
|
269
269
|
return this.getAttribute("justify-content--tablet");
|
|
270
270
|
}
|
|
271
271
|
set justifyContentTablet(e) {
|
|
272
|
-
|
|
272
|
+
m(this, "justify-content--tablet", e);
|
|
273
273
|
}
|
|
274
274
|
get justifyContentLaptop() {
|
|
275
275
|
return this.getAttribute("justify-content--laptop");
|
|
276
276
|
}
|
|
277
277
|
set justifyContentLaptop(e) {
|
|
278
|
-
|
|
278
|
+
m(this, "justify-content--laptop", e);
|
|
279
279
|
}
|
|
280
280
|
get justifyContentDesktop() {
|
|
281
281
|
return this.getAttribute("justify-content--desktop");
|
|
282
282
|
}
|
|
283
283
|
set justifyContentDesktop(e) {
|
|
284
|
-
|
|
284
|
+
m(this, "justify-content--desktop", e);
|
|
285
285
|
}
|
|
286
286
|
get alignItems() {
|
|
287
287
|
return this.getAttribute("align-items") ?? "stretch";
|
|
288
288
|
}
|
|
289
289
|
set alignItems(e) {
|
|
290
|
-
|
|
290
|
+
m(this, "align-items", e);
|
|
291
291
|
}
|
|
292
292
|
get alignItemsMobile() {
|
|
293
293
|
return this.getAttribute("align-items--mobile");
|
|
294
294
|
}
|
|
295
295
|
set alignItemsMobile(e) {
|
|
296
|
-
|
|
296
|
+
m(this, "align-items--mobile", e);
|
|
297
297
|
}
|
|
298
298
|
get alignItemsTablet() {
|
|
299
299
|
return this.getAttribute("align-items--tablet");
|
|
300
300
|
}
|
|
301
301
|
set alignItemsTablet(e) {
|
|
302
|
-
|
|
302
|
+
m(this, "align-items--tablet", e);
|
|
303
303
|
}
|
|
304
304
|
get alignItemsLaptop() {
|
|
305
305
|
return this.getAttribute("align-items--laptop");
|
|
306
306
|
}
|
|
307
307
|
set alignItemsLaptop(e) {
|
|
308
|
-
|
|
308
|
+
m(this, "align-items--laptop", e);
|
|
309
309
|
}
|
|
310
310
|
get alignItemsDesktop() {
|
|
311
311
|
return this.getAttribute("align-items--desktop");
|
|
312
312
|
}
|
|
313
313
|
set alignItemsDesktop(e) {
|
|
314
|
-
|
|
314
|
+
m(this, "align-items--desktop", e);
|
|
315
315
|
}
|
|
316
316
|
get wrap() {
|
|
317
317
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
318
318
|
}
|
|
319
319
|
set wrap(e) {
|
|
320
|
-
|
|
320
|
+
m(this, "wrap", e);
|
|
321
321
|
}
|
|
322
322
|
get wrapMobile() {
|
|
323
323
|
return this.getAttribute("wrap--mobile");
|
|
324
324
|
}
|
|
325
325
|
set wrapMobile(e) {
|
|
326
|
-
|
|
326
|
+
m(this, "wrap--mobile", e);
|
|
327
327
|
}
|
|
328
328
|
get wrapTablet() {
|
|
329
329
|
return this.getAttribute("wrap--tablet");
|
|
330
330
|
}
|
|
331
331
|
set wrapTablet(e) {
|
|
332
|
-
|
|
332
|
+
m(this, "wrap--tablet", e);
|
|
333
333
|
}
|
|
334
334
|
get wrapLaptop() {
|
|
335
335
|
return this.getAttribute("wrap--laptop");
|
|
336
336
|
}
|
|
337
337
|
set wrapLaptop(e) {
|
|
338
|
-
|
|
338
|
+
m(this, "wrap--laptop", e);
|
|
339
339
|
}
|
|
340
340
|
get wrapDesktop() {
|
|
341
341
|
return this.getAttribute("wrap--desktop");
|
|
342
342
|
}
|
|
343
343
|
set wrapDesktop(e) {
|
|
344
|
-
|
|
344
|
+
m(this, "wrap--desktop", e);
|
|
345
345
|
}
|
|
346
346
|
get overflowX() {
|
|
347
347
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
348
348
|
}
|
|
349
349
|
set overflowX(e) {
|
|
350
|
-
|
|
350
|
+
m(this, "overflow-x", e);
|
|
351
351
|
}
|
|
352
352
|
get overflowXMobile() {
|
|
353
353
|
return this.getAttribute("overflow-x--mobile");
|
|
354
354
|
}
|
|
355
355
|
set overflowXMobile(e) {
|
|
356
|
-
|
|
356
|
+
m(this, "overflow-x--mobile", e);
|
|
357
357
|
}
|
|
358
358
|
get overflowXTablet() {
|
|
359
359
|
return this.getAttribute("overflow-x--tablet");
|
|
360
360
|
}
|
|
361
361
|
set overflowXTablet(e) {
|
|
362
|
-
|
|
362
|
+
m(this, "overflow-x--tablet", e);
|
|
363
363
|
}
|
|
364
364
|
get overflowXLaptop() {
|
|
365
365
|
return this.getAttribute("overflow-x--laptop");
|
|
366
366
|
}
|
|
367
367
|
set overflowXLaptop(e) {
|
|
368
|
-
|
|
368
|
+
m(this, "overflow-x--laptop", e);
|
|
369
369
|
}
|
|
370
370
|
get overflowXDesktop() {
|
|
371
371
|
return this.getAttribute("overflow-x--desktop");
|
|
372
372
|
}
|
|
373
373
|
set overflowXDesktop(e) {
|
|
374
|
-
|
|
374
|
+
m(this, "overflow-x--desktop", e);
|
|
375
375
|
}
|
|
376
376
|
get overflowY() {
|
|
377
377
|
return this.getAttribute("overflow-y") ?? "visible";
|
|
378
378
|
}
|
|
379
379
|
set overflowY(e) {
|
|
380
|
-
|
|
380
|
+
m(this, "overflow-y", e);
|
|
381
381
|
}
|
|
382
382
|
get overflowYMobile() {
|
|
383
383
|
return this.getAttribute("overflow-y--mobile");
|
|
384
384
|
}
|
|
385
385
|
set overflowYMobile(e) {
|
|
386
|
-
|
|
386
|
+
m(this, "overflow-y--mobile", e);
|
|
387
387
|
}
|
|
388
388
|
get overflowYTablet() {
|
|
389
389
|
return this.getAttribute("overflow-y--tablet");
|
|
390
390
|
}
|
|
391
391
|
set overflowYTablet(e) {
|
|
392
|
-
|
|
392
|
+
m(this, "overflow-y--tablet", e);
|
|
393
393
|
}
|
|
394
394
|
get overflowYLaptop() {
|
|
395
395
|
return this.getAttribute("overflow-y--laptop");
|
|
396
396
|
}
|
|
397
397
|
set overflowYLaptop(e) {
|
|
398
|
-
|
|
398
|
+
m(this, "overflow-y--laptop", e);
|
|
399
399
|
}
|
|
400
400
|
get overflowYDesktop() {
|
|
401
401
|
return this.getAttribute("overflow-y--desktop");
|
|
402
402
|
}
|
|
403
403
|
set overflowYDesktop(e) {
|
|
404
|
-
|
|
404
|
+
m(this, "overflow-y--desktop", e);
|
|
405
405
|
}
|
|
406
406
|
get maxHeight() {
|
|
407
407
|
return this.getAttribute("max-height") ?? "none";
|
|
408
408
|
}
|
|
409
409
|
set maxHeight(e) {
|
|
410
|
-
|
|
410
|
+
m(this, "max-height", e);
|
|
411
411
|
}
|
|
412
412
|
get maxHeightMobile() {
|
|
413
413
|
return this.getAttribute("max-height--mobile");
|
|
414
414
|
}
|
|
415
415
|
set maxHeightMobile(e) {
|
|
416
|
-
|
|
416
|
+
m(this, "max-height--mobile", e);
|
|
417
417
|
}
|
|
418
418
|
get maxHeightTablet() {
|
|
419
419
|
return this.getAttribute("max-height--tablet");
|
|
420
420
|
}
|
|
421
421
|
set maxHeightTablet(e) {
|
|
422
|
-
|
|
422
|
+
m(this, "max-height--tablet", e);
|
|
423
423
|
}
|
|
424
424
|
get maxHeightLaptop() {
|
|
425
425
|
return this.getAttribute("max-height--laptop");
|
|
426
426
|
}
|
|
427
427
|
set maxHeightLaptop(e) {
|
|
428
|
-
|
|
428
|
+
m(this, "max-height--laptop", e);
|
|
429
429
|
}
|
|
430
430
|
get maxHeightDesktop() {
|
|
431
431
|
return this.getAttribute("max-height--desktop");
|
|
432
432
|
}
|
|
433
433
|
set maxHeightDesktop(e) {
|
|
434
|
-
|
|
434
|
+
m(this, "max-height--desktop", e);
|
|
435
435
|
}
|
|
436
436
|
get $el() {
|
|
437
437
|
return this.shadowRoot.firstElementChild;
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
440
|
customElements.get("px-stack") || customElements.define("px-stack", C);
|
|
441
|
-
var w = (e) => e === "direction" || e.startsWith("direction--"),
|
|
441
|
+
var w = (e) => e === "direction" || e.startsWith("direction--"), re = class extends C {
|
|
442
442
|
get direction() {
|
|
443
443
|
return "column";
|
|
444
444
|
}
|
|
445
445
|
set direction(e) {
|
|
446
|
-
|
|
446
|
+
m(this, "direction", e);
|
|
447
447
|
}
|
|
448
448
|
attributeChangedCallback(e, t, n) {
|
|
449
449
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
453
|
-
var
|
|
452
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", re);
|
|
453
|
+
var ie = class extends C {
|
|
454
454
|
get direction() {
|
|
455
455
|
return "row";
|
|
456
456
|
}
|
|
457
457
|
set direction(e) {
|
|
458
|
-
|
|
458
|
+
m(this, "direction", e);
|
|
459
459
|
}
|
|
460
460
|
attributeChangedCallback(e, t, n) {
|
|
461
461
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
464
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ie);
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region ../Layout/src/Spacer.ts
|
|
467
|
-
var
|
|
467
|
+
var ae = class extends HTMLElement {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
470
470
|
}
|
|
@@ -510,12 +510,12 @@ var ne = class extends HTMLElement {
|
|
|
510
510
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
511
511
|
}
|
|
512
512
|
};
|
|
513
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
513
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ae);
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region ../Layout/src/Page.css?inline
|
|
516
|
-
var
|
|
517
|
-
T.replaceSync(
|
|
518
|
-
var
|
|
516
|
+
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();
|
|
517
|
+
T.replaceSync(oe);
|
|
518
|
+
var E = class extends n {
|
|
519
519
|
constructor() {
|
|
520
520
|
super(T), this.template = () => `
|
|
521
521
|
<px-container border-radius="none" padding="none">
|
|
@@ -610,7 +610,7 @@ var ie = class extends n {
|
|
|
610
610
|
</px-container>
|
|
611
611
|
</px-vstack>
|
|
612
612
|
</px-container>
|
|
613
|
-
`,
|
|
613
|
+
`, h(this.shadowRoot, this.template());
|
|
614
614
|
}
|
|
615
615
|
static get observedAttributes() {
|
|
616
616
|
return [
|
|
@@ -697,29 +697,38 @@ var ie = class extends n {
|
|
|
697
697
|
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;
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
700
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", E);
|
|
701
701
|
//#endregion
|
|
702
702
|
//#region ../ButtonIcon/src/buttonicon.css?inline
|
|
703
|
-
var
|
|
704
|
-
|
|
705
|
-
var
|
|
703
|
+
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();
|
|
704
|
+
O.replaceSync(D);
|
|
705
|
+
var k = [
|
|
706
706
|
"",
|
|
707
707
|
"default",
|
|
708
708
|
"small"
|
|
709
|
-
],
|
|
709
|
+
], A = [
|
|
710
710
|
"",
|
|
711
711
|
"default",
|
|
712
712
|
"secondary",
|
|
713
713
|
"naked"
|
|
714
|
-
],
|
|
714
|
+
], se = class e extends t {
|
|
715
715
|
static {
|
|
716
716
|
this.template = s("<button class=\"btn-icon\"><slot></slot></button>");
|
|
717
717
|
}
|
|
718
718
|
static {
|
|
719
719
|
this.nativeName = "button";
|
|
720
720
|
}
|
|
721
|
+
static {
|
|
722
|
+
this.nativeProperties = p;
|
|
723
|
+
}
|
|
724
|
+
static {
|
|
725
|
+
this.nativeMethods = f;
|
|
726
|
+
}
|
|
727
|
+
static {
|
|
728
|
+
this.nativeAttributes = d;
|
|
729
|
+
}
|
|
721
730
|
constructor() {
|
|
722
|
-
super(
|
|
731
|
+
super(O), h(this.shadowRoot, e.template);
|
|
723
732
|
}
|
|
724
733
|
static get observedAttributes() {
|
|
725
734
|
return [
|
|
@@ -755,7 +764,7 @@ var D = [
|
|
|
755
764
|
case "aria-expanded":
|
|
756
765
|
n && (this.$el.setAttribute("aria-expanded", n), this.removeAttribute("aria-expanded"));
|
|
757
766
|
break;
|
|
758
|
-
default: super.attributeChangedCallback(e, t, n);
|
|
767
|
+
default: r.includes(e) ? this._forwardNativeAttribute(e, n) : super.attributeChangedCallback(e, t, n);
|
|
759
768
|
}
|
|
760
769
|
}
|
|
761
770
|
_toggleClass(e, t) {
|
|
@@ -765,10 +774,10 @@ var D = [
|
|
|
765
774
|
this.$el.classList.toggle("btn-icon--state-loading");
|
|
766
775
|
}
|
|
767
776
|
updateSize(e, t) {
|
|
768
|
-
this.checkName(
|
|
777
|
+
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("\", \"")}".`);
|
|
769
778
|
}
|
|
770
779
|
updateVariant(e, t) {
|
|
771
|
-
this.checkName(
|
|
780
|
+
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("\", \"")}".`);
|
|
772
781
|
}
|
|
773
782
|
get inverted() {
|
|
774
783
|
return this.hasAttribute("inverted");
|
|
@@ -801,10 +810,10 @@ var D = [
|
|
|
801
810
|
this._updateAttribute("aria-expanded", e);
|
|
802
811
|
}
|
|
803
812
|
};
|
|
804
|
-
customElements.get("px-button-icon") || customElements.define("px-button-icon",
|
|
813
|
+
customElements.get("px-button-icon") || customElements.define("px-button-icon", se);
|
|
805
814
|
//#endregion
|
|
806
815
|
//#region ../Icon/common/src/IconSet.ts
|
|
807
|
-
var
|
|
816
|
+
var ce = class extends HTMLElement {
|
|
808
817
|
constructor() {
|
|
809
818
|
super();
|
|
810
819
|
}
|
|
@@ -838,8 +847,8 @@ var k = class extends HTMLElement {
|
|
|
838
847
|
e && e.remove();
|
|
839
848
|
}
|
|
840
849
|
};
|
|
841
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
842
|
-
var
|
|
850
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", ce);
|
|
851
|
+
var le = [
|
|
843
852
|
"Inherit",
|
|
844
853
|
"Brand",
|
|
845
854
|
"Accent",
|
|
@@ -853,9 +862,9 @@ var A = [
|
|
|
853
862
|
"StateHover",
|
|
854
863
|
"StateActive",
|
|
855
864
|
"StateDisabled"
|
|
856
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
857
|
-
|
|
858
|
-
var
|
|
865
|
+
].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();
|
|
866
|
+
j.replaceSync(ue);
|
|
867
|
+
var de = class e extends n {
|
|
859
868
|
static {
|
|
860
869
|
this.template = s("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
861
870
|
}
|
|
@@ -874,7 +883,7 @@ var se = class e extends n {
|
|
|
874
883
|
];
|
|
875
884
|
}
|
|
876
885
|
constructor(...t) {
|
|
877
|
-
super(...t,
|
|
886
|
+
super(...t, j), h(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
878
887
|
}
|
|
879
888
|
attributeChangedCallback(e, t, n) {
|
|
880
889
|
if (t !== n) switch (e) {
|
|
@@ -885,7 +894,7 @@ var se = class e extends n {
|
|
|
885
894
|
this.updateAttribute(e, t, n, l);
|
|
886
895
|
break;
|
|
887
896
|
case "color":
|
|
888
|
-
this.updateAttribute(e, t, n,
|
|
897
|
+
this.updateAttribute(e, t, n, le);
|
|
889
898
|
break;
|
|
890
899
|
case "disabled":
|
|
891
900
|
this.color = "state-disabled";
|
|
@@ -915,25 +924,25 @@ var se = class e extends n {
|
|
|
915
924
|
return this.getAttribute("name");
|
|
916
925
|
}
|
|
917
926
|
set name(e) {
|
|
918
|
-
|
|
927
|
+
m(this, "name", e);
|
|
919
928
|
}
|
|
920
929
|
get size() {
|
|
921
930
|
return this.getAttribute("size");
|
|
922
931
|
}
|
|
923
932
|
set size(e) {
|
|
924
|
-
|
|
933
|
+
m(this, "size", e);
|
|
925
934
|
}
|
|
926
935
|
get color() {
|
|
927
936
|
return this.getAttribute("color");
|
|
928
937
|
}
|
|
929
938
|
set color(e) {
|
|
930
|
-
|
|
939
|
+
m(this, "color", e);
|
|
931
940
|
}
|
|
932
941
|
get arialabel() {
|
|
933
942
|
return this.getAttribute("aria-label");
|
|
934
943
|
}
|
|
935
944
|
set arialabel(e) {
|
|
936
|
-
|
|
945
|
+
m(this, "aria-label", e);
|
|
937
946
|
}
|
|
938
947
|
get inverted() {
|
|
939
948
|
return this.hasAttribute("inverted");
|
|
@@ -945,7 +954,7 @@ var se = class e extends n {
|
|
|
945
954
|
return this.getAttribute("from");
|
|
946
955
|
}
|
|
947
956
|
set from(e) {
|
|
948
|
-
|
|
957
|
+
m(this, "from", e);
|
|
949
958
|
}
|
|
950
959
|
get disabled() {
|
|
951
960
|
return this.hasAttribute("disabled");
|
|
@@ -954,18 +963,18 @@ var se = class e extends n {
|
|
|
954
963
|
a(this, "disabled", e);
|
|
955
964
|
}
|
|
956
965
|
};
|
|
957
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
966
|
+
customElements.get("px-icon") || customElements.define("px-icon", de);
|
|
958
967
|
//#endregion
|
|
959
968
|
//#region src/appleseed.css?inline
|
|
960
|
-
var
|
|
961
|
-
|
|
962
|
-
var
|
|
969
|
+
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();
|
|
970
|
+
M.replaceSync(fe);
|
|
971
|
+
var N = class extends HTMLElement {
|
|
963
972
|
constructor() {
|
|
964
973
|
super(), this.template = (e, t) => `<div class="container">
|
|
965
974
|
${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"}">
|
|
966
975
|
<div></div>
|
|
967
976
|
</div>`).join("")}
|
|
968
|
-
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
977
|
+
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [M], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
|
|
969
978
|
}
|
|
970
979
|
static get observedAttributes() {
|
|
971
980
|
return ["amount", "active"];
|
|
@@ -991,85 +1000,85 @@ var P = class extends HTMLElement {
|
|
|
991
1000
|
return parseInt(this.getAttribute("active") ?? "0") || 0;
|
|
992
1001
|
}
|
|
993
1002
|
};
|
|
994
|
-
customElements.get("px-appleseed") || customElements.define("px-appleseed",
|
|
1003
|
+
customElements.get("px-appleseed") || customElements.define("px-appleseed", N);
|
|
995
1004
|
//#endregion
|
|
996
1005
|
//#region ../../../node_modules/lodash-es/isObject.js
|
|
997
|
-
function
|
|
1006
|
+
function P(e) {
|
|
998
1007
|
var t = typeof e;
|
|
999
1008
|
return e != null && (t == "object" || t == "function");
|
|
1000
1009
|
}
|
|
1001
1010
|
//#endregion
|
|
1002
1011
|
//#region ../../../node_modules/lodash-es/_freeGlobal.js
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1005
|
-
},
|
|
1006
|
-
function
|
|
1007
|
-
for (var t = e.length; t-- &&
|
|
1012
|
+
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() {
|
|
1013
|
+
return L.Date.now();
|
|
1014
|
+
}, z = /\s/;
|
|
1015
|
+
function B(e) {
|
|
1016
|
+
for (var t = e.length; t-- && z.test(e.charAt(t)););
|
|
1008
1017
|
return t;
|
|
1009
1018
|
}
|
|
1010
1019
|
//#endregion
|
|
1011
1020
|
//#region ../../../node_modules/lodash-es/_baseTrim.js
|
|
1012
|
-
var
|
|
1013
|
-
function
|
|
1014
|
-
return e && e.slice(0,
|
|
1021
|
+
var V = /^\s+/;
|
|
1022
|
+
function pe(e) {
|
|
1023
|
+
return e && e.slice(0, B(e) + 1).replace(V, "");
|
|
1015
1024
|
}
|
|
1016
1025
|
//#endregion
|
|
1017
1026
|
//#region ../../../node_modules/lodash-es/_Symbol.js
|
|
1018
|
-
var H =
|
|
1019
|
-
function
|
|
1020
|
-
var t =
|
|
1027
|
+
var H = L.Symbol, U = Object.prototype, me = U.hasOwnProperty, he = U.toString, W = H ? H.toStringTag : void 0;
|
|
1028
|
+
function ge(e) {
|
|
1029
|
+
var t = me.call(e, W), n = e[W];
|
|
1021
1030
|
try {
|
|
1022
1031
|
e[W] = void 0;
|
|
1023
1032
|
var r = !0;
|
|
1024
1033
|
} catch {}
|
|
1025
|
-
var i =
|
|
1034
|
+
var i = he.call(e);
|
|
1026
1035
|
return r && (t ? e[W] = n : delete e[W]), i;
|
|
1027
1036
|
}
|
|
1028
1037
|
//#endregion
|
|
1029
1038
|
//#region ../../../node_modules/lodash-es/_objectToString.js
|
|
1030
|
-
var
|
|
1031
|
-
function
|
|
1032
|
-
return
|
|
1039
|
+
var _e = Object.prototype.toString;
|
|
1040
|
+
function ve(e) {
|
|
1041
|
+
return _e.call(e);
|
|
1033
1042
|
}
|
|
1034
1043
|
//#endregion
|
|
1035
1044
|
//#region ../../../node_modules/lodash-es/_baseGetTag.js
|
|
1036
|
-
var
|
|
1037
|
-
function
|
|
1038
|
-
return e == null ? e === void 0 ?
|
|
1045
|
+
var ye = "[object Null]", be = "[object Undefined]", G = H ? H.toStringTag : void 0;
|
|
1046
|
+
function xe(e) {
|
|
1047
|
+
return e == null ? e === void 0 ? be : ye : G && G in Object(e) ? ge(e) : ve(e);
|
|
1039
1048
|
}
|
|
1040
1049
|
//#endregion
|
|
1041
1050
|
//#region ../../../node_modules/lodash-es/isObjectLike.js
|
|
1042
|
-
function
|
|
1051
|
+
function Se(e) {
|
|
1043
1052
|
return typeof e == "object" && !!e;
|
|
1044
1053
|
}
|
|
1045
1054
|
//#endregion
|
|
1046
1055
|
//#region ../../../node_modules/lodash-es/isSymbol.js
|
|
1047
|
-
var
|
|
1048
|
-
function
|
|
1049
|
-
return typeof e == "symbol" ||
|
|
1056
|
+
var Ce = "[object Symbol]";
|
|
1057
|
+
function we(e) {
|
|
1058
|
+
return typeof e == "symbol" || Se(e) && xe(e) == Ce;
|
|
1050
1059
|
}
|
|
1051
1060
|
//#endregion
|
|
1052
1061
|
//#region ../../../node_modules/lodash-es/toNumber.js
|
|
1053
|
-
var K = NaN,
|
|
1062
|
+
var K = NaN, Te = /^[-+]0x[0-9a-f]+$/i, Ee = /^0b[01]+$/i, De = /^0o[0-7]+$/i, Oe = parseInt;
|
|
1054
1063
|
function q(e) {
|
|
1055
1064
|
if (typeof e == "number") return e;
|
|
1056
|
-
if (
|
|
1057
|
-
if (
|
|
1065
|
+
if (we(e)) return K;
|
|
1066
|
+
if (P(e)) {
|
|
1058
1067
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1059
|
-
e =
|
|
1068
|
+
e = P(t) ? t + "" : t;
|
|
1060
1069
|
}
|
|
1061
1070
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
1062
|
-
e =
|
|
1063
|
-
var n =
|
|
1064
|
-
return n ||
|
|
1071
|
+
e = pe(e);
|
|
1072
|
+
var n = Ee.test(e);
|
|
1073
|
+
return n || De.test(e) ? Oe(e.slice(2), n ? 2 : 8) : Te.test(e) ? K : +e;
|
|
1065
1074
|
}
|
|
1066
1075
|
//#endregion
|
|
1067
1076
|
//#region ../../../node_modules/lodash-es/debounce.js
|
|
1068
|
-
var
|
|
1069
|
-
function
|
|
1077
|
+
var ke = "Expected a function", Ae = Math.max, je = Math.min;
|
|
1078
|
+
function Me(e, t, n) {
|
|
1070
1079
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
1071
|
-
if (typeof e != "function") throw TypeError(
|
|
1072
|
-
t = q(t) || 0,
|
|
1080
|
+
if (typeof e != "function") throw TypeError(ke);
|
|
1081
|
+
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);
|
|
1073
1082
|
function p(t) {
|
|
1074
1083
|
var n = r, a = i;
|
|
1075
1084
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -1079,14 +1088,14 @@ function Oe(e, t, n) {
|
|
|
1079
1088
|
}
|
|
1080
1089
|
function h(e) {
|
|
1081
1090
|
var n = e - c, r = e - l, i = t - n;
|
|
1082
|
-
return d ?
|
|
1091
|
+
return d ? je(i, a - r) : i;
|
|
1083
1092
|
}
|
|
1084
1093
|
function g(e) {
|
|
1085
1094
|
var n = e - c, r = e - l;
|
|
1086
1095
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
1087
1096
|
}
|
|
1088
1097
|
function _() {
|
|
1089
|
-
var e =
|
|
1098
|
+
var e = R();
|
|
1090
1099
|
if (g(e)) return v(e);
|
|
1091
1100
|
s = setTimeout(_, h(e));
|
|
1092
1101
|
}
|
|
@@ -1097,10 +1106,10 @@ function Oe(e, t, n) {
|
|
|
1097
1106
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
1098
1107
|
}
|
|
1099
1108
|
function b() {
|
|
1100
|
-
return s === void 0 ? o : v(
|
|
1109
|
+
return s === void 0 ? o : v(R());
|
|
1101
1110
|
}
|
|
1102
1111
|
function x() {
|
|
1103
|
-
var e =
|
|
1112
|
+
var e = R(), n = g(e);
|
|
1104
1113
|
if (r = arguments, i = this, c = e, n) {
|
|
1105
1114
|
if (s === void 0) return m(c);
|
|
1106
1115
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -1111,11 +1120,11 @@ function Oe(e, t, n) {
|
|
|
1111
1120
|
}
|
|
1112
1121
|
//#endregion
|
|
1113
1122
|
//#region ../../../node_modules/lodash-es/throttle.js
|
|
1114
|
-
var
|
|
1115
|
-
function
|
|
1123
|
+
var J = "Expected a function";
|
|
1124
|
+
function Ne(e, t, n) {
|
|
1116
1125
|
var r = !0, i = !0;
|
|
1117
|
-
if (typeof e != "function") throw TypeError(
|
|
1118
|
-
return
|
|
1126
|
+
if (typeof e != "function") throw TypeError(J);
|
|
1127
|
+
return P(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Me(e, t, {
|
|
1119
1128
|
leading: r,
|
|
1120
1129
|
maxWait: t,
|
|
1121
1130
|
trailing: i
|
|
@@ -1124,7 +1133,7 @@ function Ae(e, t, n) {
|
|
|
1124
1133
|
//#endregion
|
|
1125
1134
|
//#region src/Carousel.ts
|
|
1126
1135
|
var Y = new CSSStyleSheet();
|
|
1127
|
-
Y.replaceSync(
|
|
1136
|
+
Y.replaceSync(g);
|
|
1128
1137
|
var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
1129
1138
|
static {
|
|
1130
1139
|
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>");
|
|
@@ -1135,12 +1144,12 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1135
1144
|
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;
|
|
1136
1145
|
let i = r;
|
|
1137
1146
|
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();
|
|
1138
|
-
}, this.attachShadow({ mode: "open" }),
|
|
1147
|
+
}, this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Y];
|
|
1139
1148
|
}
|
|
1140
1149
|
connectedCallback() {
|
|
1141
1150
|
this.addEventListener(X, () => {
|
|
1142
1151
|
this.#e();
|
|
1143
|
-
}), this.#e(), this.$carousel.addEventListener("scroll",
|
|
1152
|
+
}), this.#e(), this.$carousel.addEventListener("scroll", Ne(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
|
|
1144
1153
|
this.$carousel.scrollLeft -= this.$carousel.clientWidth;
|
|
1145
1154
|
}), this.$next.addEventListener("click", () => {
|
|
1146
1155
|
this.$carousel.scrollLeft += this.$carousel.clientWidth;
|
|
@@ -1187,13 +1196,13 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1187
1196
|
};
|
|
1188
1197
|
customElements.get("px-carousel") || customElements.define("px-carousel", Z);
|
|
1189
1198
|
var Q = new CSSStyleSheet();
|
|
1190
|
-
Q.replaceSync(
|
|
1199
|
+
Q.replaceSync(_);
|
|
1191
1200
|
var $ = class e extends HTMLElement {
|
|
1192
1201
|
static {
|
|
1193
1202
|
this.template = s("<div class=\"carousel-item\"><slot></slot></div>");
|
|
1194
1203
|
}
|
|
1195
1204
|
constructor() {
|
|
1196
|
-
super(), this.attachShadow({ mode: "open" }),
|
|
1205
|
+
super(), this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Q];
|
|
1197
1206
|
}
|
|
1198
1207
|
connectedCallback() {
|
|
1199
1208
|
this.dispatchEvent(new CustomEvent(X, {
|
|
@@ -1204,4 +1213,4 @@ var $ = class e extends HTMLElement {
|
|
|
1204
1213
|
};
|
|
1205
1214
|
customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
|
|
1206
1215
|
//#endregion
|
|
1207
|
-
export {
|
|
1216
|
+
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": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.229",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|