@proximus/lavender-carousel 1.4.5-beta.1 → 1.4.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +92 -95
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -3,7 +3,7 @@ var O = (s) => {
3
3
  };
4
4
  var N = (s, t, e) => t.has(s) || O("Cannot " + e);
5
5
  var d = (s, t, e) => (N(s, t, "read from private field"), e ? e.call(s) : t.get(s)), k = (s, t, e) => t.has(s) ? O("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), j = (s, t, e, i) => (N(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e);
6
- import { WithExtraAttributes as I, AttributeBreakpointHandlerDelegate as B, gapValues as G, checkName as ot, log as x, backgroundColorValues as rt, PxElement as at, transferAccessibilityAttributes as nt, iconSizeValuesKC as lt, cssTokenBreakpoints as ct } from "@proximus/lavender-common";
6
+ import { WithExtraAttributes as I, AttributeBreakpointHandlerDelegate as B, gapValues as G, checkName as ot, log as x, backgroundColorValues as at, PxElement as rt, accessibilityAttributes as nt, iconSizeValuesKC as lt, cssTokenBreakpoints as ct } from "@proximus/lavender-common";
7
7
  const dt = ":host{display:block}:host *{box-sizing:border-box}.carousel{overflow:hidden;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-spacing-default-desktop)}@media only screen and (max-width: 768px){.carousel{gap:var(--px-spacing-default-mobile)}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media only screen and (max-width: 768px){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", pt = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;align-items:center;justify-content:center;flex:1 0 var( --px-carousel-min-width-desktop, var(--px-carousel-min-width-all-desktop) );border-radius:var(--px-radius-main);background:#fff;overflow:hidden}@media screen and (max-width: 768px){: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 (min-width: 768px) and (max-width: 1024px){:host{flex:1 0 var( --px-carousel-min-width-tablet, var(--px-carousel-min-width-all-tablet) )!important}}", ht = ':host{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{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::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 only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::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 only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::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))}}', Z = new CSSStyleSheet();
8
8
  Z.replaceSync(ht);
9
9
  const ut = [
@@ -151,9 +151,9 @@ class R extends I {
151
151
  this.checkName(o, i) || x(
152
152
  `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
153
153
  );
154
- const n = t.indexOf("--") > -1, l = n ? t.split("--")[0] : t, a = [];
154
+ const n = t.indexOf("--") > -1, l = n ? t.split("--")[0] : t, r = [];
155
155
  if (!n)
156
- this.getAttribute(l + "--mobile") || a.push("mobile"), this.getAttribute(l + "--tablet") || a.push("tablet"), this.getAttribute(l + "--laptop") || a.push("laptop"), this.getAttribute(l + "--desktop") || a.push("desktop"), a.forEach((c) => {
156
+ this.getAttribute(l + "--mobile") || r.push("mobile"), this.getAttribute(l + "--tablet") || r.push("tablet"), this.getAttribute(l + "--laptop") || r.push("laptop"), this.getAttribute(l + "--desktop") || r.push("desktop"), r.forEach((c) => {
157
157
  this.updateStyle(l, c, e, o), this.updateStyle(l, c, i, o);
158
158
  });
159
159
  else {
@@ -605,7 +605,7 @@ class wt extends I {
605
605
  case "background-color":
606
606
  this.$bodyContainer.setAttribute(
607
607
  "background-color",
608
- rt.indexOf(i) > 0 ? i : "none"
608
+ at.indexOf(i) > 0 ? i : "none"
609
609
  );
610
610
  break;
611
611
  case "padding-vertical":
@@ -633,7 +633,7 @@ const $t = ["", "default", "small"], St = [
633
633
  "default",
634
634
  "secondary",
635
635
  "naked"
636
- ], A = class A extends at {
636
+ ], A = class A extends rt {
637
637
  constructor() {
638
638
  super(U), this.template = () => "<slot></slot>";
639
639
  const t = document.createElement(A.nativeName);
@@ -642,6 +642,7 @@ const $t = ["", "default", "small"], St = [
642
642
  static get observedAttributes() {
643
643
  return [
644
644
  ...super.observedAttributes,
645
+ ...nt,
645
646
  "inverted",
646
647
  "loading",
647
648
  "size",
@@ -657,7 +658,6 @@ const $t = ["", "default", "small"], St = [
657
658
  this.$el.focus();
658
659
  }), e || t.setAttribute("size", "s"), this.size === "small" && t.setAttribute("size", "xs"), i || t.setAttribute("color", "inherit");
659
660
  }
660
- nt(this, this.$el, !1);
661
661
  }
662
662
  attributeChangedCallback(t, e, i) {
663
663
  if (e !== i)
@@ -780,29 +780,29 @@ const zt = [
780
780
  (s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
781
781
  ), Lt = ":host{display:inline-flex;flex-direction:column;justify-content:center}svg{font-size:var(--px-size-icon-s);line-height:var(--px-font-line-height-xs);width:1em;height:1em;color:var(--px-color-icon-accent-default)}.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)}", K = new CSSStyleSheet();
782
782
  K.replaceSync(Lt);
783
- const Tt = [
784
- "name",
785
- "size",
786
- "color",
787
- "aria-label",
788
- "inverted",
789
- "from",
790
- "disabled"
791
- ];
792
783
  var u, p, $;
793
- class Et extends I {
784
+ class Tt extends I {
794
785
  constructor(...e) {
795
786
  var i;
796
787
  super(...e, K);
797
788
  k(this, u);
798
789
  k(this, p);
799
790
  k(this, $, () => `<svg aria-hidden="true">
800
- <use xlink:href=""></use>
791
+ <use></use>
801
792
  </svg>`);
802
793
  this.shadowRoot.innerHTML = d(this, $).call(this), j(this, p, (i = this.attachInternals) == null ? void 0 : i.call(this)), d(this, p) && (d(this, p).role = "img");
803
794
  }
804
795
  static get observedAttributes() {
805
- return [...super.observedAttributes, ...Tt];
796
+ return [
797
+ ...super.observedAttributes,
798
+ "name",
799
+ "size",
800
+ "color",
801
+ "aria-label",
802
+ "inverted",
803
+ "from",
804
+ "disabled"
805
+ ];
806
806
  }
807
807
  attributeChangedCallback(e, i, o) {
808
808
  if (i !== o)
@@ -827,10 +827,7 @@ class Et extends I {
827
827
  }
828
828
  }
829
829
  connectedCallback() {
830
- this.role = "img", this.name && this.$el.firstElementChild.setAttribute(
831
- "xlink:href",
832
- `#icon-${this.name}`
833
- );
830
+ this.role = "img";
834
831
  const e = document.querySelectorAll("px-icon-set");
835
832
  e || console.log("<px-icon-set> component not found");
836
833
  for (const i of e) {
@@ -839,7 +836,7 @@ class Et extends I {
839
836
  continue;
840
837
  }
841
838
  i.getAttribute("name") === this.from && i.getAttribute("type") !== "font" && (j(this, u, i.getAttribute("src")), this.$el.firstElementChild.setAttribute(
842
- "xlink:href",
839
+ "href",
843
840
  `${d(this, u)}#icon-${this.name}`
844
841
  ));
845
842
  }
@@ -852,7 +849,7 @@ class Et extends I {
852
849
  }
853
850
  updateName(e, i) {
854
851
  d(this, u) && this.$el.firstElementChild.setAttribute(
855
- "xlink:href",
852
+ "href",
856
853
  `${d(this, u)}#icon-${i}`
857
854
  );
858
855
  }
@@ -903,10 +900,10 @@ class Et extends I {
903
900
  }
904
901
  }
905
902
  u = new WeakMap(), p = new WeakMap(), $ = new WeakMap();
906
- customElements.get("px-icon") || customElements.define("px-icon", Et);
907
- const It = ":host{--px-appleseed-size-l: 14px;--px-appleseed-size-m: 10px;--px-appleseed-size-s: 6px;--px-appleseed-size-xs: 4px}.container{display:flex}.container:has(#seed-0.appleseed-6-plus[active]) :nth-child(4)>div,.container:has(#seed-1.appleseed-6-plus[active]) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-0.appleseed-6-plus[active]) :nth-child(5)>div,.container:has(#seed-1.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(2)>div,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(1)>div,.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]) :nth-child(1)>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]) :nth-child(1)>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);display:flex;justify-content:center;align-items:center}@media only screen and (max-width: 47.938em){.appleseed{width:var(--px-size-icon-s);height:var(--px-size-icon-s)}}.appleseed-6-plus>div,.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)}.appleseed-6-plus[active]>div,.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)}", J = new CSSStyleSheet();
908
- J.replaceSync(It);
909
- class Rt extends HTMLElement {
903
+ customElements.get("px-icon") || customElements.define("px-icon", Tt);
904
+ const Et = ":host{--px-appleseed-size-l: 14px;--px-appleseed-size-m: 10px;--px-appleseed-size-s: 6px;--px-appleseed-size-xs: 4px}.container{display:flex}.container:has(#seed-0.appleseed-6-plus[active]) :nth-child(4)>div,.container:has(#seed-1.appleseed-6-plus[active]) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-0.appleseed-6-plus[active]) :nth-child(5)>div,.container:has(#seed-1.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(2)>div,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(1)>div,.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]) :nth-child(1)>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]) :nth-child(1)>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);display:flex;justify-content:center;align-items:center}@media only screen and (max-width: 47.938em){.appleseed{width:var(--px-size-icon-s);height:var(--px-size-icon-s)}}.appleseed-6-plus>div,.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)}.appleseed-6-plus[active]>div,.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)}", J = new CSSStyleSheet();
905
+ J.replaceSync(Et);
906
+ class It extends HTMLElement {
910
907
  constructor() {
911
908
  super(), this.template = (t, e) => `<div class="container">
912
909
  ${Array.from(
@@ -948,54 +945,54 @@ class Rt extends HTMLElement {
948
945
  return parseInt(this.getAttribute("active")) || 0;
949
946
  }
950
947
  }
951
- customElements.get("px-appleseed") || customElements.define("px-appleseed", Rt);
948
+ customElements.get("px-appleseed") || customElements.define("px-appleseed", It);
952
949
  function y(s) {
953
950
  var t = typeof s;
954
951
  return s != null && (t == "object" || t == "function");
955
952
  }
956
- var Mt = typeof global == "object" && global && global.Object === Object && global, Ht = typeof self == "object" && self && self.Object === Object && self, Q = Mt || Ht || Function("return this")(), L = function() {
953
+ var Rt = typeof global == "object" && global && global.Object === Object && global, Mt = typeof self == "object" && self && self.Object === Object && self, Q = Rt || Mt || Function("return this")(), L = function() {
957
954
  return Q.Date.now();
958
- }, Pt = /\s/;
959
- function Dt(s) {
960
- for (var t = s.length; t-- && Pt.test(s.charAt(t)); )
955
+ }, Ht = /\s/;
956
+ function Pt(s) {
957
+ for (var t = s.length; t-- && Ht.test(s.charAt(t)); )
961
958
  ;
962
959
  return t;
963
960
  }
964
- var qt = /^\s+/;
965
- function Ot(s) {
966
- return s && s.slice(0, Dt(s) + 1).replace(qt, "");
961
+ var Dt = /^\s+/;
962
+ function qt(s) {
963
+ return s && s.slice(0, Pt(s) + 1).replace(Dt, "");
967
964
  }
968
- var w = Q.Symbol, Y = Object.prototype, Nt = Y.hasOwnProperty, Wt = Y.toString, f = w ? w.toStringTag : void 0;
969
- function Xt(s) {
970
- var t = Nt.call(s, f), e = s[f];
965
+ var w = Q.Symbol, Y = Object.prototype, Ot = Y.hasOwnProperty, Nt = Y.toString, f = w ? w.toStringTag : void 0;
966
+ function Wt(s) {
967
+ var t = Ot.call(s, f), e = s[f];
971
968
  try {
972
969
  s[f] = void 0;
973
970
  var i = !0;
974
971
  } catch {
975
972
  }
976
- var o = Wt.call(s);
973
+ var o = Nt.call(s);
977
974
  return i && (t ? s[f] = e : delete s[f]), o;
978
975
  }
979
- var Ft = Object.prototype, Bt = Ft.toString;
980
- function Gt(s) {
981
- return Bt.call(s);
976
+ var Xt = Object.prototype, Ft = Xt.toString;
977
+ function Bt(s) {
978
+ return Ft.call(s);
982
979
  }
983
- var Zt = "[object Null]", _t = "[object Undefined]", W = w ? w.toStringTag : void 0;
984
- function Ut(s) {
985
- return s == null ? s === void 0 ? _t : Zt : W && W in Object(s) ? Xt(s) : Gt(s);
980
+ var Gt = "[object Null]", Zt = "[object Undefined]", W = w ? w.toStringTag : void 0;
981
+ function _t(s) {
982
+ return s == null ? s === void 0 ? Zt : Gt : W && W in Object(s) ? Wt(s) : Bt(s);
986
983
  }
987
- function Kt(s) {
984
+ function Ut(s) {
988
985
  return s != null && typeof s == "object";
989
986
  }
990
- var Jt = "[object Symbol]";
991
- function Qt(s) {
992
- return typeof s == "symbol" || Kt(s) && Ut(s) == Jt;
987
+ var Kt = "[object Symbol]";
988
+ function Jt(s) {
989
+ return typeof s == "symbol" || Ut(s) && _t(s) == Kt;
993
990
  }
994
- var X = NaN, Yt = /^[-+]0x[0-9a-f]+$/i, Vt = /^0b[01]+$/i, te = /^0o[0-7]+$/i, ee = parseInt;
991
+ var X = NaN, Qt = /^[-+]0x[0-9a-f]+$/i, Yt = /^0b[01]+$/i, Vt = /^0o[0-7]+$/i, te = parseInt;
995
992
  function F(s) {
996
993
  if (typeof s == "number")
997
994
  return s;
998
- if (Qt(s))
995
+ if (Jt(s))
999
996
  return X;
1000
997
  if (y(s)) {
1001
998
  var t = typeof s.valueOf == "function" ? s.valueOf() : s;
@@ -1003,64 +1000,64 @@ function F(s) {
1003
1000
  }
1004
1001
  if (typeof s != "string")
1005
1002
  return s === 0 ? s : +s;
1006
- s = Ot(s);
1007
- var e = Vt.test(s);
1008
- return e || te.test(s) ? ee(s.slice(2), e ? 2 : 8) : Yt.test(s) ? X : +s;
1003
+ s = qt(s);
1004
+ var e = Yt.test(s);
1005
+ return e || Vt.test(s) ? te(s.slice(2), e ? 2 : 8) : Qt.test(s) ? X : +s;
1009
1006
  }
1010
- var ie = "Expected a function", se = Math.max, oe = Math.min;
1011
- function re(s, t, e) {
1012
- var i, o, n, l, a, c, b = 0, H = !1, g = !1, S = !0;
1007
+ var ee = "Expected a function", ie = Math.max, se = Math.min;
1008
+ function oe(s, t, e) {
1009
+ var i, o, n, l, r, c, b = 0, H = !1, g = !1, S = !0;
1013
1010
  if (typeof s != "function")
1014
- throw new TypeError(ie);
1015
- t = F(t) || 0, y(e) && (H = !!e.leading, g = "maxWait" in e, n = g ? se(F(e.maxWait) || 0, t) : n, S = "trailing" in e ? !!e.trailing : S);
1016
- function C(r) {
1011
+ throw new TypeError(ee);
1012
+ t = F(t) || 0, y(e) && (H = !!e.leading, g = "maxWait" in e, n = g ? ie(F(e.maxWait) || 0, t) : n, S = "trailing" in e ? !!e.trailing : S);
1013
+ function C(a) {
1017
1014
  var h = i, v = o;
1018
- return i = o = void 0, b = r, l = s.apply(v, h), l;
1015
+ return i = o = void 0, b = a, l = s.apply(v, h), l;
1019
1016
  }
1020
- function tt(r) {
1021
- return b = r, a = setTimeout(m, t), H ? C(r) : l;
1017
+ function tt(a) {
1018
+ return b = a, r = setTimeout(m, t), H ? C(a) : l;
1022
1019
  }
1023
- function et(r) {
1024
- var h = r - c, v = r - b, q = t - h;
1025
- return g ? oe(q, n - v) : q;
1020
+ function et(a) {
1021
+ var h = a - c, v = a - b, q = t - h;
1022
+ return g ? se(q, n - v) : q;
1026
1023
  }
1027
- function P(r) {
1028
- var h = r - c, v = r - b;
1024
+ function P(a) {
1025
+ var h = a - c, v = a - b;
1029
1026
  return c === void 0 || h >= t || h < 0 || g && v >= n;
1030
1027
  }
1031
1028
  function m() {
1032
- var r = L();
1033
- if (P(r))
1034
- return D(r);
1035
- a = setTimeout(m, et(r));
1029
+ var a = L();
1030
+ if (P(a))
1031
+ return D(a);
1032
+ r = setTimeout(m, et(a));
1036
1033
  }
1037
- function D(r) {
1038
- return a = void 0, S && i ? C(r) : (i = o = void 0, l);
1034
+ function D(a) {
1035
+ return r = void 0, S && i ? C(a) : (i = o = void 0, l);
1039
1036
  }
1040
1037
  function it() {
1041
- a !== void 0 && clearTimeout(a), b = 0, i = c = o = a = void 0;
1038
+ r !== void 0 && clearTimeout(r), b = 0, i = c = o = r = void 0;
1042
1039
  }
1043
1040
  function st() {
1044
- return a === void 0 ? l : D(L());
1041
+ return r === void 0 ? l : D(L());
1045
1042
  }
1046
1043
  function z() {
1047
- var r = L(), h = P(r);
1048
- if (i = arguments, o = this, c = r, h) {
1049
- if (a === void 0)
1044
+ var a = L(), h = P(a);
1045
+ if (i = arguments, o = this, c = a, h) {
1046
+ if (r === void 0)
1050
1047
  return tt(c);
1051
1048
  if (g)
1052
- return clearTimeout(a), a = setTimeout(m, t), C(c);
1049
+ return clearTimeout(r), r = setTimeout(m, t), C(c);
1053
1050
  }
1054
- return a === void 0 && (a = setTimeout(m, t)), l;
1051
+ return r === void 0 && (r = setTimeout(m, t)), l;
1055
1052
  }
1056
1053
  return z.cancel = it, z.flush = st, z;
1057
1054
  }
1058
1055
  var ae = "Expected a function";
1059
- function ne(s, t, e) {
1056
+ function re(s, t, e) {
1060
1057
  var i = !0, o = !0;
1061
1058
  if (typeof s != "function")
1062
1059
  throw new TypeError(ae);
1063
- return y(e) && (i = "leading" in e ? !!e.leading : i, o = "trailing" in e ? !!e.trailing : o), re(s, t, {
1060
+ return y(e) && (i = "leading" in e ? !!e.leading : i, o = "trailing" in e ? !!e.trailing : o), oe(s, t, {
1064
1061
  leading: i,
1065
1062
  maxWait: t,
1066
1063
  trailing: o
@@ -1068,8 +1065,8 @@ function ne(s, t, e) {
1068
1065
  }
1069
1066
  const M = new CSSStyleSheet();
1070
1067
  M.replaceSync(dt);
1071
- const le = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .carousel`, ce = "px-spacing", T = (s) => (t, e) => `calc(((100% - ${Math.max(parseInt(t), 2)} * ( var(--px-spacing-${s}-${e}))) / ${t}) - ( 64px / ${Math.max(parseInt(t), 2)}))`;
1072
- class de extends HTMLElement {
1068
+ const ne = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .carousel`, le = "px-spacing", T = (s) => (t, e) => `calc(((100% - ${Math.max(parseInt(t), 2)} * ( var(--px-spacing-${s}-${e}))) / ${t}) - ( 64px / ${Math.max(parseInt(t), 2)}))`;
1069
+ class ce extends HTMLElement {
1073
1070
  constructor() {
1074
1071
  super(), this.visibleItemsAttributeDelegate = new B(
1075
1072
  this,
@@ -1107,9 +1104,9 @@ class de extends HTMLElement {
1107
1104
  M,
1108
1105
  ct(
1109
1106
  "gap",
1110
- le,
1107
+ ne,
1111
1108
  G,
1112
- ce
1109
+ le
1113
1110
  )
1114
1111
  ];
1115
1112
  }
@@ -1138,7 +1135,7 @@ class de extends HTMLElement {
1138
1135
  this.getAttribute("gap") || "s"
1139
1136
  ), requestAnimationFrame(() => {
1140
1137
  this.handleAppleSeedDisplay();
1141
- }), this.$appleseed.setAttribute("amount", `${this.itemNumbers}`), this.$carousel.addEventListener("scroll", ne(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
1138
+ }), this.$appleseed.setAttribute("amount", `${this.itemNumbers}`), this.$carousel.addEventListener("scroll", re(this.onScroll, 500)), this.$previous.addEventListener("click", () => {
1142
1139
  this.$carousel.scrollLeft -= this.$carousel.clientWidth;
1143
1140
  }), this.$next.addEventListener("click", () => {
1144
1141
  this.$carousel.scrollLeft += this.$carousel.clientWidth;
@@ -1178,10 +1175,10 @@ class de extends HTMLElement {
1178
1175
  return this.querySelectorAll("px-carousel-item").length;
1179
1176
  }
1180
1177
  }
1181
- customElements.get("px-carousel") || customElements.define("px-carousel", de);
1178
+ customElements.get("px-carousel") || customElements.define("px-carousel", ce);
1182
1179
  const V = new CSSStyleSheet();
1183
1180
  V.replaceSync(pt);
1184
- class pe extends HTMLElement {
1181
+ class de extends HTMLElement {
1185
1182
  constructor() {
1186
1183
  super(), this.template = `
1187
1184
  <div class="carousel-item">
@@ -1189,9 +1186,9 @@ class pe extends HTMLElement {
1189
1186
  </div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [M, V];
1190
1187
  }
1191
1188
  }
1192
- customElements.get("px-carousel-item") || customElements.define("px-carousel-item", pe);
1189
+ customElements.get("px-carousel-item") || customElements.define("px-carousel-item", de);
1193
1190
  export {
1194
- Rt as AppleSeed,
1195
- de as Carousel,
1196
- pe as CarouselItem
1191
+ It as AppleSeed,
1192
+ ce as Carousel,
1193
+ de as CarouselItem
1197
1194
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-carousel",
3
- "version": "1.4.5-beta.1",
3
+ "version": "1.4.5-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",