@proximus/lavender-carousel 1.4.20-alpha.4 → 1.4.20-alpha.6
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<=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;--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<=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() {
|
|
@@ -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":
|
|
@@ -204,274 +204,274 @@ var v = [
|
|
|
204
204
|
return this.getAttribute("direction") ?? "row";
|
|
205
205
|
}
|
|
206
206
|
set direction(e) {
|
|
207
|
-
|
|
207
|
+
m(this, "direction", e);
|
|
208
208
|
}
|
|
209
209
|
get directionMobile() {
|
|
210
210
|
return this.getAttribute("direction--mobile");
|
|
211
211
|
}
|
|
212
212
|
set directionMobile(e) {
|
|
213
|
-
|
|
213
|
+
m(this, "direction--mobile", e);
|
|
214
214
|
}
|
|
215
215
|
get directionTablet() {
|
|
216
216
|
return this.getAttribute("direction--tablet");
|
|
217
217
|
}
|
|
218
218
|
set directionTablet(e) {
|
|
219
|
-
|
|
219
|
+
m(this, "direction--tablet", e);
|
|
220
220
|
}
|
|
221
221
|
get directionLaptop() {
|
|
222
222
|
return this.getAttribute("direction--laptop");
|
|
223
223
|
}
|
|
224
224
|
set directionLaptop(e) {
|
|
225
|
-
|
|
225
|
+
m(this, "direction--laptop", e);
|
|
226
226
|
}
|
|
227
227
|
get directionDesktop() {
|
|
228
228
|
return this.getAttribute("direction--desktop");
|
|
229
229
|
}
|
|
230
230
|
set directionDesktop(e) {
|
|
231
|
-
|
|
231
|
+
m(this, "direction--desktop", e);
|
|
232
232
|
}
|
|
233
233
|
get gap() {
|
|
234
234
|
return this.getAttribute("gap") ?? "none";
|
|
235
235
|
}
|
|
236
236
|
set gap(e) {
|
|
237
|
-
|
|
237
|
+
m(this, "gap", e);
|
|
238
238
|
}
|
|
239
239
|
get gapMobile() {
|
|
240
240
|
return this.getAttribute("gap--mobile");
|
|
241
241
|
}
|
|
242
242
|
set gapMobile(e) {
|
|
243
|
-
|
|
243
|
+
m(this, "gap--mobile", e);
|
|
244
244
|
}
|
|
245
245
|
get gapTablet() {
|
|
246
246
|
return this.getAttribute("gap--tablet");
|
|
247
247
|
}
|
|
248
248
|
set gapTablet(e) {
|
|
249
|
-
|
|
249
|
+
m(this, "gap--tablet", e);
|
|
250
250
|
}
|
|
251
251
|
get gapLaptop() {
|
|
252
252
|
return this.getAttribute("gap--laptop");
|
|
253
253
|
}
|
|
254
254
|
set gapLaptop(e) {
|
|
255
|
-
|
|
255
|
+
m(this, "gap--laptop", e);
|
|
256
256
|
}
|
|
257
257
|
get gapDesktop() {
|
|
258
258
|
return this.getAttribute("gap--desktop");
|
|
259
259
|
}
|
|
260
260
|
set gapDesktop(e) {
|
|
261
|
-
|
|
261
|
+
m(this, "gap--desktop", e);
|
|
262
262
|
}
|
|
263
263
|
get justifyContent() {
|
|
264
264
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
265
265
|
}
|
|
266
266
|
set justifyContent(e) {
|
|
267
|
-
|
|
267
|
+
m(this, "justify-content", e);
|
|
268
268
|
}
|
|
269
269
|
get justifyContentMobile() {
|
|
270
270
|
return this.getAttribute("justify-content--mobile");
|
|
271
271
|
}
|
|
272
272
|
set justifyContentMobile(e) {
|
|
273
|
-
|
|
273
|
+
m(this, "justify-content--mobile", e);
|
|
274
274
|
}
|
|
275
275
|
get justifyContentTablet() {
|
|
276
276
|
return this.getAttribute("justify-content--tablet");
|
|
277
277
|
}
|
|
278
278
|
set justifyContentTablet(e) {
|
|
279
|
-
|
|
279
|
+
m(this, "justify-content--tablet", e);
|
|
280
280
|
}
|
|
281
281
|
get justifyContentLaptop() {
|
|
282
282
|
return this.getAttribute("justify-content--laptop");
|
|
283
283
|
}
|
|
284
284
|
set justifyContentLaptop(e) {
|
|
285
|
-
|
|
285
|
+
m(this, "justify-content--laptop", e);
|
|
286
286
|
}
|
|
287
287
|
get justifyContentDesktop() {
|
|
288
288
|
return this.getAttribute("justify-content--desktop");
|
|
289
289
|
}
|
|
290
290
|
set justifyContentDesktop(e) {
|
|
291
|
-
|
|
291
|
+
m(this, "justify-content--desktop", e);
|
|
292
292
|
}
|
|
293
293
|
get alignItems() {
|
|
294
294
|
return this.getAttribute("align-items") ?? "stretch";
|
|
295
295
|
}
|
|
296
296
|
set alignItems(e) {
|
|
297
|
-
|
|
297
|
+
m(this, "align-items", e);
|
|
298
298
|
}
|
|
299
299
|
get alignItemsMobile() {
|
|
300
300
|
return this.getAttribute("align-items--mobile");
|
|
301
301
|
}
|
|
302
302
|
set alignItemsMobile(e) {
|
|
303
|
-
|
|
303
|
+
m(this, "align-items--mobile", e);
|
|
304
304
|
}
|
|
305
305
|
get alignItemsTablet() {
|
|
306
306
|
return this.getAttribute("align-items--tablet");
|
|
307
307
|
}
|
|
308
308
|
set alignItemsTablet(e) {
|
|
309
|
-
|
|
309
|
+
m(this, "align-items--tablet", e);
|
|
310
310
|
}
|
|
311
311
|
get alignItemsLaptop() {
|
|
312
312
|
return this.getAttribute("align-items--laptop");
|
|
313
313
|
}
|
|
314
314
|
set alignItemsLaptop(e) {
|
|
315
|
-
|
|
315
|
+
m(this, "align-items--laptop", e);
|
|
316
316
|
}
|
|
317
317
|
get alignItemsDesktop() {
|
|
318
318
|
return this.getAttribute("align-items--desktop");
|
|
319
319
|
}
|
|
320
320
|
set alignItemsDesktop(e) {
|
|
321
|
-
|
|
321
|
+
m(this, "align-items--desktop", e);
|
|
322
322
|
}
|
|
323
323
|
get wrap() {
|
|
324
324
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
325
325
|
}
|
|
326
326
|
set wrap(e) {
|
|
327
|
-
|
|
327
|
+
m(this, "wrap", e);
|
|
328
328
|
}
|
|
329
329
|
get wrapMobile() {
|
|
330
330
|
return this.getAttribute("wrap--mobile");
|
|
331
331
|
}
|
|
332
332
|
set wrapMobile(e) {
|
|
333
|
-
|
|
333
|
+
m(this, "wrap--mobile", e);
|
|
334
334
|
}
|
|
335
335
|
get wrapTablet() {
|
|
336
336
|
return this.getAttribute("wrap--tablet");
|
|
337
337
|
}
|
|
338
338
|
set wrapTablet(e) {
|
|
339
|
-
|
|
339
|
+
m(this, "wrap--tablet", e);
|
|
340
340
|
}
|
|
341
341
|
get wrapLaptop() {
|
|
342
342
|
return this.getAttribute("wrap--laptop");
|
|
343
343
|
}
|
|
344
344
|
set wrapLaptop(e) {
|
|
345
|
-
|
|
345
|
+
m(this, "wrap--laptop", e);
|
|
346
346
|
}
|
|
347
347
|
get wrapDesktop() {
|
|
348
348
|
return this.getAttribute("wrap--desktop");
|
|
349
349
|
}
|
|
350
350
|
set wrapDesktop(e) {
|
|
351
|
-
|
|
351
|
+
m(this, "wrap--desktop", e);
|
|
352
352
|
}
|
|
353
353
|
get overflowX() {
|
|
354
354
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
355
355
|
}
|
|
356
356
|
set overflowX(e) {
|
|
357
|
-
|
|
357
|
+
m(this, "overflow-x", e);
|
|
358
358
|
}
|
|
359
359
|
get overflowXMobile() {
|
|
360
360
|
return this.getAttribute("overflow-x--mobile");
|
|
361
361
|
}
|
|
362
362
|
set overflowXMobile(e) {
|
|
363
|
-
|
|
363
|
+
m(this, "overflow-x--mobile", e);
|
|
364
364
|
}
|
|
365
365
|
get overflowXTablet() {
|
|
366
366
|
return this.getAttribute("overflow-x--tablet");
|
|
367
367
|
}
|
|
368
368
|
set overflowXTablet(e) {
|
|
369
|
-
|
|
369
|
+
m(this, "overflow-x--tablet", e);
|
|
370
370
|
}
|
|
371
371
|
get overflowXLaptop() {
|
|
372
372
|
return this.getAttribute("overflow-x--laptop");
|
|
373
373
|
}
|
|
374
374
|
set overflowXLaptop(e) {
|
|
375
|
-
|
|
375
|
+
m(this, "overflow-x--laptop", e);
|
|
376
376
|
}
|
|
377
377
|
get overflowXDesktop() {
|
|
378
378
|
return this.getAttribute("overflow-x--desktop");
|
|
379
379
|
}
|
|
380
380
|
set overflowXDesktop(e) {
|
|
381
|
-
|
|
381
|
+
m(this, "overflow-x--desktop", e);
|
|
382
382
|
}
|
|
383
383
|
get overflowY() {
|
|
384
384
|
return this.getAttribute("overflow-y") ?? "visible";
|
|
385
385
|
}
|
|
386
386
|
set overflowY(e) {
|
|
387
|
-
|
|
387
|
+
m(this, "overflow-y", e);
|
|
388
388
|
}
|
|
389
389
|
get overflowYMobile() {
|
|
390
390
|
return this.getAttribute("overflow-y--mobile");
|
|
391
391
|
}
|
|
392
392
|
set overflowYMobile(e) {
|
|
393
|
-
|
|
393
|
+
m(this, "overflow-y--mobile", e);
|
|
394
394
|
}
|
|
395
395
|
get overflowYTablet() {
|
|
396
396
|
return this.getAttribute("overflow-y--tablet");
|
|
397
397
|
}
|
|
398
398
|
set overflowYTablet(e) {
|
|
399
|
-
|
|
399
|
+
m(this, "overflow-y--tablet", e);
|
|
400
400
|
}
|
|
401
401
|
get overflowYLaptop() {
|
|
402
402
|
return this.getAttribute("overflow-y--laptop");
|
|
403
403
|
}
|
|
404
404
|
set overflowYLaptop(e) {
|
|
405
|
-
|
|
405
|
+
m(this, "overflow-y--laptop", e);
|
|
406
406
|
}
|
|
407
407
|
get overflowYDesktop() {
|
|
408
408
|
return this.getAttribute("overflow-y--desktop");
|
|
409
409
|
}
|
|
410
410
|
set overflowYDesktop(e) {
|
|
411
|
-
|
|
411
|
+
m(this, "overflow-y--desktop", e);
|
|
412
412
|
}
|
|
413
413
|
get maxHeight() {
|
|
414
414
|
return this.getAttribute("max-height") ?? "none";
|
|
415
415
|
}
|
|
416
416
|
set maxHeight(e) {
|
|
417
|
-
|
|
417
|
+
m(this, "max-height", e);
|
|
418
418
|
}
|
|
419
419
|
get maxHeightMobile() {
|
|
420
420
|
return this.getAttribute("max-height--mobile");
|
|
421
421
|
}
|
|
422
422
|
set maxHeightMobile(e) {
|
|
423
|
-
|
|
423
|
+
m(this, "max-height--mobile", e);
|
|
424
424
|
}
|
|
425
425
|
get maxHeightTablet() {
|
|
426
426
|
return this.getAttribute("max-height--tablet");
|
|
427
427
|
}
|
|
428
428
|
set maxHeightTablet(e) {
|
|
429
|
-
|
|
429
|
+
m(this, "max-height--tablet", e);
|
|
430
430
|
}
|
|
431
431
|
get maxHeightLaptop() {
|
|
432
432
|
return this.getAttribute("max-height--laptop");
|
|
433
433
|
}
|
|
434
434
|
set maxHeightLaptop(e) {
|
|
435
|
-
|
|
435
|
+
m(this, "max-height--laptop", e);
|
|
436
436
|
}
|
|
437
437
|
get maxHeightDesktop() {
|
|
438
438
|
return this.getAttribute("max-height--desktop");
|
|
439
439
|
}
|
|
440
440
|
set maxHeightDesktop(e) {
|
|
441
|
-
|
|
441
|
+
m(this, "max-height--desktop", e);
|
|
442
442
|
}
|
|
443
443
|
get $el() {
|
|
444
444
|
return this.shadowRoot.firstElementChild;
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
customElements.get("px-stack") || customElements.define("px-stack", C);
|
|
448
|
-
var w = (e) => e === "direction" || e.startsWith("direction--"),
|
|
448
|
+
var w = (e) => e === "direction" || e.startsWith("direction--"), re = class extends C {
|
|
449
449
|
get direction() {
|
|
450
450
|
return "column";
|
|
451
451
|
}
|
|
452
452
|
set direction(e) {
|
|
453
|
-
|
|
453
|
+
m(this, "direction", e);
|
|
454
454
|
}
|
|
455
455
|
attributeChangedCallback(e, t, n) {
|
|
456
456
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
460
|
-
var
|
|
459
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", re);
|
|
460
|
+
var ie = class extends C {
|
|
461
461
|
get direction() {
|
|
462
462
|
return "row";
|
|
463
463
|
}
|
|
464
464
|
set direction(e) {
|
|
465
|
-
|
|
465
|
+
m(this, "direction", e);
|
|
466
466
|
}
|
|
467
467
|
attributeChangedCallback(e, t, n) {
|
|
468
468
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
471
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ie);
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region ../Layout/src/Spacer.ts
|
|
474
|
-
var
|
|
474
|
+
var ae = class extends HTMLElement {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
477
477
|
}
|
|
@@ -517,12 +517,12 @@ var ne = class extends HTMLElement {
|
|
|
517
517
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
520
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ae);
|
|
521
521
|
//#endregion
|
|
522
522
|
//#region ../Layout/src/Page.css?inline
|
|
523
|
-
var
|
|
524
|
-
T.replaceSync(
|
|
525
|
-
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 {
|
|
526
526
|
constructor() {
|
|
527
527
|
super(T), this.template = () => `
|
|
528
528
|
<px-container border-radius="none" padding="none">
|
|
@@ -617,7 +617,7 @@ var ie = class extends n {
|
|
|
617
617
|
</px-container>
|
|
618
618
|
</px-vstack>
|
|
619
619
|
</px-container>
|
|
620
|
-
`,
|
|
620
|
+
`, h(this.shadowRoot, this.template());
|
|
621
621
|
}
|
|
622
622
|
static get observedAttributes() {
|
|
623
623
|
return [
|
|
@@ -704,29 +704,38 @@ var ie = class extends n {
|
|
|
704
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;
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
707
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", E);
|
|
708
708
|
//#endregion
|
|
709
709
|
//#region ../ButtonIcon/src/buttonicon.css?inline
|
|
710
|
-
var
|
|
711
|
-
|
|
712
|
-
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 = [
|
|
713
713
|
"",
|
|
714
714
|
"default",
|
|
715
715
|
"small"
|
|
716
|
-
],
|
|
716
|
+
], A = [
|
|
717
717
|
"",
|
|
718
718
|
"default",
|
|
719
719
|
"secondary",
|
|
720
720
|
"naked"
|
|
721
|
-
],
|
|
721
|
+
], se = class e extends t {
|
|
722
722
|
static {
|
|
723
723
|
this.template = s("<button class=\"btn-icon\"><slot></slot></button>");
|
|
724
724
|
}
|
|
725
725
|
static {
|
|
726
726
|
this.nativeName = "button";
|
|
727
727
|
}
|
|
728
|
+
static {
|
|
729
|
+
this.nativeProperties = p;
|
|
730
|
+
}
|
|
731
|
+
static {
|
|
732
|
+
this.nativeMethods = f;
|
|
733
|
+
}
|
|
734
|
+
static {
|
|
735
|
+
this.nativeAttributes = d;
|
|
736
|
+
}
|
|
728
737
|
constructor() {
|
|
729
|
-
super(
|
|
738
|
+
super(O), h(this.shadowRoot, e.template);
|
|
730
739
|
}
|
|
731
740
|
static get observedAttributes() {
|
|
732
741
|
return [
|
|
@@ -762,7 +771,7 @@ var D = [
|
|
|
762
771
|
case "aria-expanded":
|
|
763
772
|
n && (this.$el.setAttribute("aria-expanded", n), this.removeAttribute("aria-expanded"));
|
|
764
773
|
break;
|
|
765
|
-
default: super.attributeChangedCallback(e, t, n);
|
|
774
|
+
default: r.includes(e) ? this._forwardNativeAttribute(e, n) : super.attributeChangedCallback(e, t, n);
|
|
766
775
|
}
|
|
767
776
|
}
|
|
768
777
|
_toggleClass(e, t) {
|
|
@@ -772,10 +781,10 @@ var D = [
|
|
|
772
781
|
this.$el.classList.toggle("btn-icon--state-loading");
|
|
773
782
|
}
|
|
774
783
|
updateSize(e, t) {
|
|
775
|
-
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("\", \"")}".`);
|
|
776
785
|
}
|
|
777
786
|
updateVariant(e, t) {
|
|
778
|
-
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("\", \"")}".`);
|
|
779
788
|
}
|
|
780
789
|
get inverted() {
|
|
781
790
|
return this.hasAttribute("inverted");
|
|
@@ -808,10 +817,10 @@ var D = [
|
|
|
808
817
|
this._updateAttribute("aria-expanded", e);
|
|
809
818
|
}
|
|
810
819
|
};
|
|
811
|
-
customElements.get("px-button-icon") || customElements.define("px-button-icon",
|
|
820
|
+
customElements.get("px-button-icon") || customElements.define("px-button-icon", se);
|
|
812
821
|
//#endregion
|
|
813
822
|
//#region ../Icon/common/src/IconSet.ts
|
|
814
|
-
var
|
|
823
|
+
var ce = class extends HTMLElement {
|
|
815
824
|
constructor() {
|
|
816
825
|
super();
|
|
817
826
|
}
|
|
@@ -845,8 +854,8 @@ var k = class extends HTMLElement {
|
|
|
845
854
|
e && e.remove();
|
|
846
855
|
}
|
|
847
856
|
};
|
|
848
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
849
|
-
var
|
|
857
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", ce);
|
|
858
|
+
var le = [
|
|
850
859
|
"Inherit",
|
|
851
860
|
"Brand",
|
|
852
861
|
"Accent",
|
|
@@ -860,9 +869,9 @@ var A = [
|
|
|
860
869
|
"StateHover",
|
|
861
870
|
"StateActive",
|
|
862
871
|
"StateDisabled"
|
|
863
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
864
|
-
|
|
865
|
-
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 {
|
|
866
875
|
static {
|
|
867
876
|
this.template = s("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
868
877
|
}
|
|
@@ -881,7 +890,7 @@ var se = class e extends n {
|
|
|
881
890
|
];
|
|
882
891
|
}
|
|
883
892
|
constructor(...t) {
|
|
884
|
-
super(...t,
|
|
893
|
+
super(...t, j), h(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
885
894
|
}
|
|
886
895
|
attributeChangedCallback(e, t, n) {
|
|
887
896
|
if (t !== n) switch (e) {
|
|
@@ -892,7 +901,7 @@ var se = class e extends n {
|
|
|
892
901
|
this.updateAttribute(e, t, n, l);
|
|
893
902
|
break;
|
|
894
903
|
case "color":
|
|
895
|
-
this.updateAttribute(e, t, n,
|
|
904
|
+
this.updateAttribute(e, t, n, le);
|
|
896
905
|
break;
|
|
897
906
|
case "disabled":
|
|
898
907
|
this.color = "state-disabled";
|
|
@@ -928,25 +937,25 @@ var se = class e extends n {
|
|
|
928
937
|
return this.getAttribute("name");
|
|
929
938
|
}
|
|
930
939
|
set name(e) {
|
|
931
|
-
|
|
940
|
+
m(this, "name", e);
|
|
932
941
|
}
|
|
933
942
|
get size() {
|
|
934
943
|
return this.getAttribute("size");
|
|
935
944
|
}
|
|
936
945
|
set size(e) {
|
|
937
|
-
|
|
946
|
+
m(this, "size", e);
|
|
938
947
|
}
|
|
939
948
|
get color() {
|
|
940
949
|
return this.getAttribute("color");
|
|
941
950
|
}
|
|
942
951
|
set color(e) {
|
|
943
|
-
|
|
952
|
+
m(this, "color", e);
|
|
944
953
|
}
|
|
945
954
|
get arialabel() {
|
|
946
955
|
return this.getAttribute("aria-label");
|
|
947
956
|
}
|
|
948
957
|
set arialabel(e) {
|
|
949
|
-
|
|
958
|
+
m(this, "aria-label", e);
|
|
950
959
|
}
|
|
951
960
|
get inverted() {
|
|
952
961
|
return this.hasAttribute("inverted");
|
|
@@ -958,7 +967,7 @@ var se = class e extends n {
|
|
|
958
967
|
return this.getAttribute("from");
|
|
959
968
|
}
|
|
960
969
|
set from(e) {
|
|
961
|
-
|
|
970
|
+
m(this, "from", e);
|
|
962
971
|
}
|
|
963
972
|
get disabled() {
|
|
964
973
|
return this.hasAttribute("disabled");
|
|
@@ -967,18 +976,18 @@ var se = class e extends n {
|
|
|
967
976
|
a(this, "disabled", e);
|
|
968
977
|
}
|
|
969
978
|
};
|
|
970
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
979
|
+
customElements.get("px-icon") || customElements.define("px-icon", de);
|
|
971
980
|
//#endregion
|
|
972
981
|
//#region src/appleseed.css?inline
|
|
973
|
-
var
|
|
974
|
-
|
|
975
|
-
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 {
|
|
976
985
|
constructor() {
|
|
977
986
|
super(), this.template = (e, t) => `<div class="container">
|
|
978
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"}">
|
|
979
988
|
<div></div>
|
|
980
989
|
</div>`).join("")}
|
|
981
|
-
</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);
|
|
982
991
|
}
|
|
983
992
|
static get observedAttributes() {
|
|
984
993
|
return ["amount", "active"];
|
|
@@ -1004,85 +1013,85 @@ var P = class extends HTMLElement {
|
|
|
1004
1013
|
return parseInt(this.getAttribute("active") ?? "0") || 0;
|
|
1005
1014
|
}
|
|
1006
1015
|
};
|
|
1007
|
-
customElements.get("px-appleseed") || customElements.define("px-appleseed",
|
|
1016
|
+
customElements.get("px-appleseed") || customElements.define("px-appleseed", N);
|
|
1008
1017
|
//#endregion
|
|
1009
1018
|
//#region ../../../node_modules/lodash-es/isObject.js
|
|
1010
|
-
function
|
|
1019
|
+
function P(e) {
|
|
1011
1020
|
var t = typeof e;
|
|
1012
1021
|
return e != null && (t == "object" || t == "function");
|
|
1013
1022
|
}
|
|
1014
1023
|
//#endregion
|
|
1015
1024
|
//#region ../../../node_modules/lodash-es/_freeGlobal.js
|
|
1016
|
-
var
|
|
1017
|
-
return
|
|
1018
|
-
},
|
|
1019
|
-
function
|
|
1020
|
-
for (var t = e.length; t-- &&
|
|
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() {
|
|
1026
|
+
return L.Date.now();
|
|
1027
|
+
}, z = /\s/;
|
|
1028
|
+
function B(e) {
|
|
1029
|
+
for (var t = e.length; t-- && z.test(e.charAt(t)););
|
|
1021
1030
|
return t;
|
|
1022
1031
|
}
|
|
1023
1032
|
//#endregion
|
|
1024
1033
|
//#region ../../../node_modules/lodash-es/_baseTrim.js
|
|
1025
|
-
var
|
|
1026
|
-
function
|
|
1027
|
-
return e && e.slice(0,
|
|
1034
|
+
var V = /^\s+/;
|
|
1035
|
+
function pe(e) {
|
|
1036
|
+
return e && e.slice(0, B(e) + 1).replace(V, "");
|
|
1028
1037
|
}
|
|
1029
1038
|
//#endregion
|
|
1030
1039
|
//#region ../../../node_modules/lodash-es/_Symbol.js
|
|
1031
|
-
var H =
|
|
1032
|
-
function
|
|
1033
|
-
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];
|
|
1034
1043
|
try {
|
|
1035
1044
|
e[W] = void 0;
|
|
1036
1045
|
var r = !0;
|
|
1037
1046
|
} catch {}
|
|
1038
|
-
var i =
|
|
1047
|
+
var i = he.call(e);
|
|
1039
1048
|
return r && (t ? e[W] = n : delete e[W]), i;
|
|
1040
1049
|
}
|
|
1041
1050
|
//#endregion
|
|
1042
1051
|
//#region ../../../node_modules/lodash-es/_objectToString.js
|
|
1043
|
-
var
|
|
1044
|
-
function
|
|
1045
|
-
return
|
|
1052
|
+
var _e = Object.prototype.toString;
|
|
1053
|
+
function ve(e) {
|
|
1054
|
+
return _e.call(e);
|
|
1046
1055
|
}
|
|
1047
1056
|
//#endregion
|
|
1048
1057
|
//#region ../../../node_modules/lodash-es/_baseGetTag.js
|
|
1049
|
-
var
|
|
1050
|
-
function
|
|
1051
|
-
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);
|
|
1052
1061
|
}
|
|
1053
1062
|
//#endregion
|
|
1054
1063
|
//#region ../../../node_modules/lodash-es/isObjectLike.js
|
|
1055
|
-
function
|
|
1064
|
+
function Se(e) {
|
|
1056
1065
|
return typeof e == "object" && !!e;
|
|
1057
1066
|
}
|
|
1058
1067
|
//#endregion
|
|
1059
1068
|
//#region ../../../node_modules/lodash-es/isSymbol.js
|
|
1060
|
-
var
|
|
1061
|
-
function
|
|
1062
|
-
return typeof e == "symbol" ||
|
|
1069
|
+
var Ce = "[object Symbol]";
|
|
1070
|
+
function we(e) {
|
|
1071
|
+
return typeof e == "symbol" || Se(e) && xe(e) == Ce;
|
|
1063
1072
|
}
|
|
1064
1073
|
//#endregion
|
|
1065
1074
|
//#region ../../../node_modules/lodash-es/toNumber.js
|
|
1066
|
-
var K = NaN,
|
|
1075
|
+
var K = NaN, Te = /^[-+]0x[0-9a-f]+$/i, Ee = /^0b[01]+$/i, De = /^0o[0-7]+$/i, Oe = parseInt;
|
|
1067
1076
|
function q(e) {
|
|
1068
1077
|
if (typeof e == "number") return e;
|
|
1069
|
-
if (
|
|
1070
|
-
if (
|
|
1078
|
+
if (we(e)) return K;
|
|
1079
|
+
if (P(e)) {
|
|
1071
1080
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1072
|
-
e =
|
|
1081
|
+
e = P(t) ? t + "" : t;
|
|
1073
1082
|
}
|
|
1074
1083
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
1075
|
-
e =
|
|
1076
|
-
var n =
|
|
1077
|
-
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;
|
|
1078
1087
|
}
|
|
1079
1088
|
//#endregion
|
|
1080
1089
|
//#region ../../../node_modules/lodash-es/debounce.js
|
|
1081
|
-
var
|
|
1082
|
-
function
|
|
1090
|
+
var ke = "Expected a function", Ae = Math.max, je = Math.min;
|
|
1091
|
+
function Me(e, t, n) {
|
|
1083
1092
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
1084
|
-
if (typeof e != "function") throw TypeError(
|
|
1085
|
-
t = q(t) || 0,
|
|
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);
|
|
1086
1095
|
function p(t) {
|
|
1087
1096
|
var n = r, a = i;
|
|
1088
1097
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -1092,14 +1101,14 @@ function Oe(e, t, n) {
|
|
|
1092
1101
|
}
|
|
1093
1102
|
function h(e) {
|
|
1094
1103
|
var n = e - c, r = e - l, i = t - n;
|
|
1095
|
-
return d ?
|
|
1104
|
+
return d ? je(i, a - r) : i;
|
|
1096
1105
|
}
|
|
1097
1106
|
function g(e) {
|
|
1098
1107
|
var n = e - c, r = e - l;
|
|
1099
1108
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
1100
1109
|
}
|
|
1101
1110
|
function _() {
|
|
1102
|
-
var e =
|
|
1111
|
+
var e = R();
|
|
1103
1112
|
if (g(e)) return v(e);
|
|
1104
1113
|
s = setTimeout(_, h(e));
|
|
1105
1114
|
}
|
|
@@ -1110,10 +1119,10 @@ function Oe(e, t, n) {
|
|
|
1110
1119
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
1111
1120
|
}
|
|
1112
1121
|
function b() {
|
|
1113
|
-
return s === void 0 ? o : v(
|
|
1122
|
+
return s === void 0 ? o : v(R());
|
|
1114
1123
|
}
|
|
1115
1124
|
function x() {
|
|
1116
|
-
var e =
|
|
1125
|
+
var e = R(), n = g(e);
|
|
1117
1126
|
if (r = arguments, i = this, c = e, n) {
|
|
1118
1127
|
if (s === void 0) return m(c);
|
|
1119
1128
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -1124,11 +1133,11 @@ function Oe(e, t, n) {
|
|
|
1124
1133
|
}
|
|
1125
1134
|
//#endregion
|
|
1126
1135
|
//#region ../../../node_modules/lodash-es/throttle.js
|
|
1127
|
-
var
|
|
1128
|
-
function
|
|
1136
|
+
var J = "Expected a function";
|
|
1137
|
+
function Ne(e, t, n) {
|
|
1129
1138
|
var r = !0, i = !0;
|
|
1130
|
-
if (typeof e != "function") throw TypeError(
|
|
1131
|
-
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, {
|
|
1132
1141
|
leading: r,
|
|
1133
1142
|
maxWait: t,
|
|
1134
1143
|
trailing: i
|
|
@@ -1137,7 +1146,7 @@ function Ae(e, t, n) {
|
|
|
1137
1146
|
//#endregion
|
|
1138
1147
|
//#region src/Carousel.ts
|
|
1139
1148
|
var Y = new CSSStyleSheet();
|
|
1140
|
-
Y.replaceSync(
|
|
1149
|
+
Y.replaceSync(g);
|
|
1141
1150
|
var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
1142
1151
|
static {
|
|
1143
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>");
|
|
@@ -1148,12 +1157,12 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1148
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;
|
|
1149
1158
|
let i = r;
|
|
1150
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();
|
|
1151
|
-
}, this.attachShadow({ mode: "open" }),
|
|
1160
|
+
}, this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Y];
|
|
1152
1161
|
}
|
|
1153
1162
|
connectedCallback() {
|
|
1154
1163
|
this.addEventListener(X, () => {
|
|
1155
1164
|
this.#e();
|
|
1156
|
-
}), this.#e(), this.$carousel.addEventListener("scroll",
|
|
1165
|
+
}), this.#e(), this.$carousel.addEventListener("scroll", Ne(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
|
|
1157
1166
|
this.$carousel.scrollLeft -= this.$carousel.clientWidth;
|
|
1158
1167
|
}), this.$next.addEventListener("click", () => {
|
|
1159
1168
|
this.$carousel.scrollLeft += this.$carousel.clientWidth;
|
|
@@ -1200,13 +1209,13 @@ var X = "px-carousel-item-connected", Z = class e extends HTMLElement {
|
|
|
1200
1209
|
};
|
|
1201
1210
|
customElements.get("px-carousel") || customElements.define("px-carousel", Z);
|
|
1202
1211
|
var Q = new CSSStyleSheet();
|
|
1203
|
-
Q.replaceSync(
|
|
1212
|
+
Q.replaceSync(_);
|
|
1204
1213
|
var $ = class e extends HTMLElement {
|
|
1205
1214
|
static {
|
|
1206
1215
|
this.template = s("<div class=\"carousel-item\"><slot></slot></div>");
|
|
1207
1216
|
}
|
|
1208
1217
|
constructor() {
|
|
1209
|
-
super(), this.attachShadow({ mode: "open" }),
|
|
1218
|
+
super(), this.attachShadow({ mode: "open" }), h(this.shadowRoot, e.template), this.shadowRoot.adoptedStyleSheets = [Q];
|
|
1210
1219
|
}
|
|
1211
1220
|
connectedCallback() {
|
|
1212
1221
|
this.dispatchEvent(new CustomEvent(X, {
|
|
@@ -1217,4 +1226,4 @@ var $ = class e extends HTMLElement {
|
|
|
1217
1226
|
};
|
|
1218
1227
|
customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
|
|
1219
1228
|
//#endregion
|
|
1220
|
-
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.6",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|