@cal.macconnachie/web-components 2.6.2 → 2.6.4

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.d.ts CHANGED
@@ -295,9 +295,7 @@ export declare class BaseList extends BaseElement {
295
295
  private isPulling;
296
296
  private pullDistance;
297
297
  private startY;
298
- private startScrollTop;
299
298
  private pullThreshold;
300
- private pullActivationDistance;
301
299
  static styles: CSSResult;
302
300
  connectedCallback(): void;
303
301
  disconnectedCallback(): void;
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnProperty
65
65
  return t;
66
66
  } }, It = (r, e) => !ds(r, e), sr = { attribute: !0, type: String, converter: ht, reflect: !1, useDefault: !1, hasChanged: It };
67
67
  Symbol.metadata ??= Symbol("metadata"), ft.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
- let Ae = class extends HTMLElement {
68
+ let Ce = class extends HTMLElement {
69
69
  static addInitializer(e) {
70
70
  this._$Ei(), (this.l ??= []).push(e);
71
71
  }
@@ -246,7 +246,7 @@ let Ae = class extends HTMLElement {
246
246
  firstUpdated(e) {
247
247
  }
248
248
  };
249
- Ae.elementStyles = [], Ae.shadowRootOptions = { mode: "open" }, Ae[He("elementProperties")] = /* @__PURE__ */ new Map(), Ae[He("finalized")] = /* @__PURE__ */ new Map(), bs?.({ ReactiveElement: Ae }), (ft.reactiveElementVersions ??= []).push("2.1.1");
249
+ Ce.elementStyles = [], Ce.shadowRootOptions = { mode: "open" }, Ce[He("elementProperties")] = /* @__PURE__ */ new Map(), Ce[He("finalized")] = /* @__PURE__ */ new Map(), bs?.({ ReactiveElement: Ce }), (ft.reactiveElementVersions ??= []).push("2.1.1");
250
250
  const Lt = globalThis, pt = Lt.trustedTypes, ir = pt ? pt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Or = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + he, vs = `<${Pr}>`, xe = document, je = () => xe.createComment(""), Ve = (r) => r === null || typeof r != "object" && typeof r != "function", Bt = Array.isArray, ys = (r) => Bt(r) || typeof r?.[Symbol.iterator] == "function", St = `[
251
251
  \f\r]`, Ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, me = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
252
252
  \f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), f = ws(1), ne = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), cr = /* @__PURE__ */ new WeakMap(), ve = xe.createTreeWalker(xe, 129);
@@ -303,11 +303,11 @@ class Ye {
303
303
  return i.innerHTML = e, i;
304
304
  }
305
305
  }
306
- function Ce(r, e, t = r, i) {
306
+ function Ae(r, e, t = r, i) {
307
307
  if (e === ne) return e;
308
308
  let s = i !== void 0 ? t._$Co?.[i] : t._$Cl;
309
309
  const o = Ve(e) ? void 0 : e._$litDirective$;
310
- return s?.constructor !== o && (s?._$AO?.(!1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = s : t._$Cl = s), s !== void 0 && (e = Ce(r, s._$AS(r, e.values), s, i)), e;
310
+ return s?.constructor !== o && (s?._$AO?.(!1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = s : t._$Cl = s), s !== void 0 && (e = Ae(r, s._$AS(r, e.values), s, i)), e;
311
311
  }
312
312
  let $s = class {
313
313
  constructor(e, t) {
@@ -326,7 +326,7 @@ let $s = class {
326
326
  for (; l !== void 0; ) {
327
327
  if (a === l.index) {
328
328
  let h;
329
- l.type === 2 ? h = new Te(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new As(o, this, e)), this._$AV.push(h), l = i[++n];
329
+ l.type === 2 ? h = new Te(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new Cs(o, this, e)), this._$AV.push(h), l = i[++n];
330
330
  }
331
331
  a !== l?.index && (o = ve.nextNode(), a++);
332
332
  }
@@ -356,7 +356,7 @@ class Te {
356
356
  return this._$AB;
357
357
  }
358
358
  _$AI(e, t = this) {
359
- e = Ce(this, e, t), Ve(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== ne && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ys(e) ? this.k(e) : this._(e);
359
+ e = Ae(this, e, t), Ve(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== ne && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ys(e) ? this.k(e) : this._(e);
360
360
  }
361
361
  O(e) {
362
362
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -409,11 +409,11 @@ class gt {
409
409
  _$AI(e, t = this, i, s) {
410
410
  const o = this.strings;
411
411
  let a = !1;
412
- if (o === void 0) e = Ce(this, e, t, 0), a = !Ve(e) || e !== this._$AH && e !== ne, a && (this._$AH = e);
412
+ if (o === void 0) e = Ae(this, e, t, 0), a = !Ve(e) || e !== this._$AH && e !== ne, a && (this._$AH = e);
413
413
  else {
414
414
  const n = e;
415
415
  let l, h;
416
- for (e = o[0], l = 0; l < o.length - 1; l++) h = Ce(this, n[i + l], t, l), h === ne && (h = this._$AH[l]), a ||= !Ve(h) || h !== this._$AH[l], h === k ? e = k : e !== k && (e += (h ?? "") + o[l + 1]), this._$AH[l] = h;
416
+ for (e = o[0], l = 0; l < o.length - 1; l++) h = Ae(this, n[i + l], t, l), h === ne && (h = this._$AH[l]), a ||= !Ve(h) || h !== this._$AH[l], h === k ? e = k : e !== k && (e += (h ?? "") + o[l + 1]), this._$AH[l] = h;
417
417
  }
418
418
  a && !s && this.j(e);
419
419
  }
@@ -442,7 +442,7 @@ class _s extends gt {
442
442
  super(e, t, i, s, o), this.type = 5;
443
443
  }
444
444
  _$AI(e, t = this) {
445
- if ((e = Ce(this, e, t, 0) ?? k) === ne) return;
445
+ if ((e = Ae(this, e, t, 0) ?? k) === ne) return;
446
446
  const i = this._$AH, s = e === k && i !== k || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, o = e !== k && (i === k || s);
447
447
  s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
448
448
  }
@@ -450,7 +450,7 @@ class _s extends gt {
450
450
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
451
451
  }
452
452
  }
453
- class As {
453
+ class Cs {
454
454
  constructor(e, t, i) {
455
455
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
456
456
  }
@@ -458,10 +458,10 @@ class As {
458
458
  return this._$AM._$AU;
459
459
  }
460
460
  _$AI(e) {
461
- Ce(this, e);
461
+ Ae(this, e);
462
462
  }
463
463
  }
464
- const Cs = { I: Te }, Es = Lt.litHtmlPolyfillSupport;
464
+ const As = { I: Te }, Es = Lt.litHtmlPolyfillSupport;
465
465
  Es?.(Ye, Te), (Lt.litHtmlVersions ??= []).push("3.3.1");
466
466
  const Ts = (r, e, t) => {
467
467
  const i = t?.renderBefore ?? e;
@@ -473,7 +473,7 @@ const Ts = (r, e, t) => {
473
473
  return s._$AI(r), s;
474
474
  };
475
475
  const Nt = globalThis;
476
- let Fe = class extends Ae {
476
+ let Fe = class extends Ce {
477
477
  constructor() {
478
478
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
479
479
  }
@@ -555,7 +555,7 @@ class Ht {
555
555
  return this.render(...t);
556
556
  }
557
557
  }
558
- const { I: zs } = Cs, dr = () => document.createComment(""), Ue = (r, e, t) => {
558
+ const { I: zs } = As, dr = () => document.createComment(""), Ue = (r, e, t) => {
559
559
  const i = r._$AA.parentNode, s = e === void 0 ? r._$AB : e._$AA;
560
560
  if (t === void 0) {
561
561
  const o = i.insertBefore(dr(), s), a = i.insertBefore(dr(), s);
@@ -856,10 +856,10 @@ const R = ({
856
856
  clientId: i,
857
857
  redirectUri: qs(s)
858
858
  }, a = (x) => {
859
- const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", A = new Uint8Array(x);
860
- return crypto.getRandomValues(A), Array.from(A).map((T) => _[T % _.length]).join("");
859
+ const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", C = new Uint8Array(x);
860
+ return crypto.getRandomValues(C), Array.from(C).map((T) => _[T % _.length]).join("");
861
861
  }, n = async (x) => {
862
- const A = new TextEncoder().encode(x), T = await crypto.subtle.digest("SHA-256", A);
862
+ const C = new TextEncoder().encode(x), T = await crypto.subtle.digest("SHA-256", C);
863
863
  return btoa(String.fromCharCode(...new Uint8Array(T))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
864
864
  }, l = async () => {
865
865
  const x = a(128), _ = await n(x);
@@ -868,7 +868,7 @@ const R = ({
868
868
  const x = a(32);
869
869
  return sessionStorage.setItem("oauth_state", x), x;
870
870
  }, c = async () => {
871
- const { codeChallenge: x } = await l(), _ = h(), A = new URLSearchParams({
871
+ const { codeChallenge: x } = await l(), _ = h(), C = new URLSearchParams({
872
872
  response_type: "code",
873
873
  client_id: o.clientId,
874
874
  redirect_uri: o.redirectUri,
@@ -879,12 +879,12 @@ const R = ({
879
879
  code_challenge: x,
880
880
  prompt: "select_account"
881
881
  });
882
- return `${o.domain}/oauth2/authorize?${A.toString()}`;
882
+ return `${o.domain}/oauth2/authorize?${C.toString()}`;
883
883
  }, p = async () => {
884
884
  const x = await c();
885
885
  window.location.href = x;
886
886
  }, b = async () => {
887
- const { codeChallenge: x } = await l(), _ = h(), A = new URLSearchParams({
887
+ const { codeChallenge: x } = await l(), _ = h(), C = new URLSearchParams({
888
888
  response_type: "code",
889
889
  client_id: o.clientId,
890
890
  redirect_uri: o.redirectUri,
@@ -894,7 +894,7 @@ const R = ({
894
894
  code_challenge_method: "S256",
895
895
  code_challenge: x
896
896
  });
897
- return `${o.domain}/oauth2/authorize?${A.toString()}`;
897
+ return `${o.domain}/oauth2/authorize?${C.toString()}`;
898
898
  }, w = async () => {
899
899
  const x = await b();
900
900
  window.location.href = x;
@@ -914,7 +914,7 @@ const R = ({
914
914
  const _ = v();
915
915
  if (!_)
916
916
  throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
917
- const A = new URLSearchParams({
917
+ const C = new URLSearchParams({
918
918
  grant_type: "authorization_code",
919
919
  client_id: o.clientId,
920
920
  code: x,
@@ -925,7 +925,7 @@ const R = ({
925
925
  headers: {
926
926
  "Content-Type": "application/x-www-form-urlencoded"
927
927
  },
928
- body: A.toString()
928
+ body: C.toString()
929
929
  });
930
930
  if (!T.ok) {
931
931
  const N = await T.text();
@@ -952,9 +952,9 @@ const js = [
952
952
  "expires_in"
953
953
  ], Vs = () => R({
954
954
  name: "auth-form",
955
- element: C
955
+ element: A
956
956
  });
957
- class C extends M {
957
+ class A extends M {
958
958
  constructor() {
959
959
  super(...arguments), this.initialMode = "signin", this.logoUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.disableSignup = !1, this.mockMode = !1, this.mode = "signin", this.resetStep = "none", this.signupStep = "form", this.isLoading = !1, this.isLoggedIn = !1, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.notice = "", this.error = "", this.errors = {}, this.userEmail = null, this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.hasHandledOAuthCallback = !1, this.handleAuthRefreshFailed = () => {
960
960
  this.isLoggedIn = !1, this.userEmail = null;
@@ -2072,88 +2072,88 @@ class C extends M {
2072
2072
  }
2073
2073
  E([
2074
2074
  u({ type: String, attribute: "initial-mode" })
2075
- ], C.prototype, "initialMode");
2075
+ ], A.prototype, "initialMode");
2076
2076
  E([
2077
2077
  u({ type: String, attribute: "logo-url" })
2078
- ], C.prototype, "logoUrl");
2078
+ ], A.prototype, "logoUrl");
2079
2079
  E([
2080
2080
  u({ type: String, attribute: "oauth-domain" })
2081
- ], C.prototype, "oauthDomain");
2081
+ ], A.prototype, "oauthDomain");
2082
2082
  E([
2083
2083
  u({ type: String, attribute: "oauth-region" })
2084
- ], C.prototype, "oauthRegion");
2084
+ ], A.prototype, "oauthRegion");
2085
2085
  E([
2086
2086
  u({ type: String, attribute: "oauth-user-pool-id" })
2087
- ], C.prototype, "oauthUserPoolId");
2087
+ ], A.prototype, "oauthUserPoolId");
2088
2088
  E([
2089
2089
  u({ type: String, attribute: "oauth-client-id" })
2090
- ], C.prototype, "oauthClientId");
2090
+ ], A.prototype, "oauthClientId");
2091
2091
  E([
2092
2092
  u({ type: String, attribute: "oauth-redirect-uri" })
2093
- ], C.prototype, "oauthRedirectUri");
2093
+ ], A.prototype, "oauthRedirectUri");
2094
2094
  E([
2095
2095
  u({ type: String, attribute: "oauth-spa-domain" })
2096
- ], C.prototype, "oauthSpaDomain");
2096
+ ], A.prototype, "oauthSpaDomain");
2097
2097
  E([
2098
2098
  u({ type: Boolean, attribute: "disable-signup" })
2099
- ], C.prototype, "disableSignup");
2099
+ ], A.prototype, "disableSignup");
2100
2100
  E([
2101
2101
  u({ type: Boolean, attribute: "mock-mode" })
2102
- ], C.prototype, "mockMode");
2102
+ ], A.prototype, "mockMode");
2103
2103
  E([
2104
2104
  y()
2105
- ], C.prototype, "mode");
2105
+ ], A.prototype, "mode");
2106
2106
  E([
2107
2107
  y()
2108
- ], C.prototype, "resetStep");
2108
+ ], A.prototype, "resetStep");
2109
2109
  E([
2110
2110
  y()
2111
- ], C.prototype, "signupStep");
2111
+ ], A.prototype, "signupStep");
2112
2112
  E([
2113
2113
  y()
2114
- ], C.prototype, "isLoading");
2114
+ ], A.prototype, "isLoading");
2115
2115
  E([
2116
2116
  y()
2117
- ], C.prototype, "isLoggedIn");
2117
+ ], A.prototype, "isLoggedIn");
2118
2118
  E([
2119
2119
  y()
2120
- ], C.prototype, "email");
2120
+ ], A.prototype, "email");
2121
2121
  E([
2122
2122
  y()
2123
- ], C.prototype, "password");
2123
+ ], A.prototype, "password");
2124
2124
  E([
2125
2125
  y()
2126
- ], C.prototype, "givenName");
2126
+ ], A.prototype, "givenName");
2127
2127
  E([
2128
2128
  y()
2129
- ], C.prototype, "familyName");
2129
+ ], A.prototype, "familyName");
2130
2130
  E([
2131
2131
  y()
2132
- ], C.prototype, "newPassword");
2132
+ ], A.prototype, "newPassword");
2133
2133
  E([
2134
2134
  y()
2135
- ], C.prototype, "confirmPassword");
2135
+ ], A.prototype, "confirmPassword");
2136
2136
  E([
2137
2137
  y()
2138
- ], C.prototype, "notice");
2138
+ ], A.prototype, "notice");
2139
2139
  E([
2140
2140
  y()
2141
- ], C.prototype, "error");
2141
+ ], A.prototype, "error");
2142
2142
  E([
2143
2143
  y()
2144
- ], C.prototype, "errors");
2144
+ ], A.prototype, "errors");
2145
2145
  E([
2146
2146
  y()
2147
- ], C.prototype, "userEmail");
2147
+ ], A.prototype, "userEmail");
2148
2148
  E([
2149
2149
  y()
2150
- ], C.prototype, "otpDigits");
2150
+ ], A.prototype, "otpDigits");
2151
2151
  E([
2152
2152
  y()
2153
- ], C.prototype, "signupOtpDigits");
2153
+ ], A.prototype, "signupOtpDigits");
2154
2154
  E([
2155
2155
  V("#email-input")
2156
- ], C.prototype, "emailInput");
2156
+ ], A.prototype, "emailInput");
2157
2157
  const S = qt(class extends Ht {
2158
2158
  constructor(r) {
2159
2159
  if (super(r), r.type !== Ut.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -4666,10 +4666,10 @@ class j extends M {
4666
4666
  if (i > c && Math.abs(e) > 30)
4667
4667
  e > 0 ? b ? i > p && g && e > 50 || l < w * 0.8 ? h = -1 : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.min(s.length - 1, this.currentDetentIndex + 1);
4668
4668
  else {
4669
- let _ = 0, A = Math.abs(l - s[0]);
4669
+ let _ = 0, C = Math.abs(l - s[0]);
4670
4670
  for (let T = 1; T < s.length; T++) {
4671
4671
  const N = Math.abs(l - s[T]);
4672
- N < A && (A = N, _ = T);
4672
+ N < C && (C = N, _ = T);
4673
4673
  }
4674
4674
  h = _, b && (g && l < w * 0.7 || l < w - 5) && (h = -1);
4675
4675
  }
@@ -5355,12 +5355,12 @@ class Tt extends Ht {
5355
5355
  }
5356
5356
  Tt.directiveName = "unsafeHTML", Tt.resultType = 1;
5357
5357
  const Ir = qt(Tt);
5358
- var Ai = Object.defineProperty, mt = (r, e, t, i) => {
5358
+ var Ci = Object.defineProperty, mt = (r, e, t, i) => {
5359
5359
  for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
5360
5360
  (a = r[o]) && (s = a(e, t, s) || s);
5361
- return s && Ai(e, t, s), s;
5361
+ return s && Ci(e, t, s), s;
5362
5362
  };
5363
- const Ci = /* @__PURE__ */ Object.assign({
5363
+ const Ai = /* @__PURE__ */ Object.assign({
5364
5364
  "../../public/icons/arrow.svg": ii,
5365
5365
  "../../public/icons/calendar-day.svg": oi,
5366
5366
  "../../public/icons/calendar-month.svg": ai,
@@ -5427,7 +5427,7 @@ class Oe extends M {
5427
5427
  }
5428
5428
  try {
5429
5429
  const e = `../../public/icons/${this.name}.svg`;
5430
- let t = Ci[e];
5430
+ let t = Ai[e];
5431
5431
  if (!t)
5432
5432
  throw new Error(`Icon "${this.name}" not found`);
5433
5433
  t = t.replace(/<\?xml[^?]*\?>/g, ""), t = t.replace(/<style[\s\S]*?<\/style>/gi, ""), t = t.replace(/\s+style="[^"]*"/gi, ""), t = t.replace(/<defs>\s*<\/defs>/gi, ""), t = t.replace(/\s+fill="[^"]*"/gi, ""), t = t.trim(), this.svgContent = t;
@@ -5735,21 +5735,21 @@ const Pi = () => R({
5735
5735
  });
5736
5736
  class ue extends M {
5737
5737
  constructor() {
5738
- super(...arguments), this.size = "md", this.variant = "default", this.interactive = !1, this.role = "list", this.isPulling = !1, this.pullDistance = 0, this.startY = 0, this.startScrollTop = 0, this.pullThreshold = 80, this.pullActivationDistance = 20, this.handleTouchStart = (e) => {
5739
- this.scrollTop === 0 && (this.startY = e.touches[0].clientY, this.startScrollTop = this.scrollTop);
5738
+ super(...arguments), this.size = "md", this.variant = "default", this.interactive = !1, this.role = "list", this.isPulling = !1, this.pullDistance = 0, this.startY = 0, this.pullThreshold = 80, this.handleTouchStart = (e) => {
5739
+ this.scrollTop === 0 && (this.startY = e.touches[0].clientY);
5740
5740
  }, this.handleTouchMove = (e) => {
5741
5741
  if (this.startY === 0) return;
5742
5742
  const i = e.touches[0].clientY - this.startY;
5743
- i > this.pullActivationDistance && this.scrollTop === 0 && this.startScrollTop === 0 ? (e.preventDefault(), this.isPulling = !0, this.pullDistance = Math.min(i * 0.5, this.pullThreshold * 1.5)) : (i <= 0 || this.scrollTop > 0) && (this.startY = 0, this.startScrollTop = 0, this.isPulling = !1, this.pullDistance = 0);
5743
+ i > 5 && this.scrollTop === 0 ? (e.preventDefault(), this.isPulling = !0, this.pullDistance = Math.min(i * 0.5, this.pullThreshold * 1.5)) : i <= 0 && (this.startY = 0, this.isPulling = !1, this.pullDistance = 0);
5744
5744
  }, this.handleTouchEnd = () => {
5745
5745
  if (!this.isPulling) {
5746
- this.startY = 0, this.startScrollTop = 0;
5746
+ this.startY = 0;
5747
5747
  return;
5748
5748
  }
5749
5749
  this.pullDistance >= this.pullThreshold && this.dispatchEvent(new CustomEvent("list-pulled", {
5750
5750
  bubbles: !0,
5751
5751
  composed: !0
5752
- })), this.isPulling = !1, this.pullDistance = 0, this.startY = 0, this.startScrollTop = 0;
5752
+ })), this.isPulling = !1, this.pullDistance = 0, this.startY = 0;
5753
5753
  };
5754
5754
  }
5755
5755
  static {
@@ -5770,8 +5770,6 @@ class ue extends M {
5770
5770
  .base-list-wrapper {
5771
5771
  position: relative;
5772
5772
  width: 100%;
5773
- overflow: hidden;
5774
- height: 100%;
5775
5773
  }
5776
5774
 
5777
5775
  .pull-indicator {
@@ -7313,11 +7311,18 @@ class Pe extends M {
7313
7311
  }
7314
7312
 
7315
7313
  :host([active]) {
7316
- display: block;
7314
+ display: flex;
7315
+ flex-direction: column;
7316
+ flex: 1;
7317
+ min-height: 0;
7317
7318
  }
7318
7319
 
7319
7320
  .base-tab {
7320
7321
  width: 100%;
7322
+ display: flex;
7323
+ flex-direction: column;
7324
+ flex: 1;
7325
+ min-height: 0;
7321
7326
  }
7322
7327
  `;
7323
7328
  }
@@ -7670,17 +7675,20 @@ class ae extends M {
7670
7675
  .tabs-content {
7671
7676
  flex: 1;
7672
7677
  min-width: 0;
7678
+ min-height: 0;
7673
7679
  animation: fadeIn 0.2s ease-in;
7674
- overflow-y: auto;
7675
- overflow-x: hidden;
7680
+ overflow: hidden;
7681
+ display: flex;
7682
+ flex-direction: column;
7676
7683
  }
7677
7684
 
7678
7685
  .base-tabs--vertical .tabs-content {
7679
7686
  flex: 1;
7680
7687
  min-width: 0;
7681
7688
  min-height: 0;
7682
- overflow-y: auto;
7683
- overflow-x: hidden;
7689
+ overflow: hidden;
7690
+ display: flex;
7691
+ flex-direction: column;
7684
7692
  }
7685
7693
 
7686
7694
  @keyframes fadeIn {
@@ -9462,8 +9470,8 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (et(e, (s, o) => {
9462
9470
  });
9463
9471
  };
9464
9472
  return Ie(r) ? i(r) : i(String(r).split(e)), t;
9465
- }, Ao = () => {
9466
- }, Co = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
9473
+ }, Co = () => {
9474
+ }, Ao = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
9467
9475
  function Eo(r) {
9468
9476
  return !!(r && W(r.append) && r[Nr] === "FormData" && r[bt]);
9469
9477
  }
@@ -9540,8 +9548,8 @@ const To = (r) => {
9540
9548
  freezeMethods: So,
9541
9549
  toObjectSet: _o,
9542
9550
  toCamelCase: $o,
9543
- noop: Ao,
9544
- toFiniteNumber: Co,
9551
+ noop: Co,
9552
+ toFiniteNumber: Ao,
9545
9553
  findKey: Hr,
9546
9554
  global: ye,
9547
9555
  isContextDefined: Fr,
@@ -9652,11 +9660,11 @@ function wt(r, e, t) {
9652
9660
  if (d.endsWith(v, "{}"))
9653
9661
  v = i ? v : v.slice(0, -2), g = JSON.stringify(g);
9654
9662
  else if (d.isArray(g) && Mo(g) || (d.isFileList(g) || d.endsWith(v, "[]")) && (x = d.toArray(g)))
9655
- return v = Wr(v), x.forEach(function(A, T) {
9656
- !(d.isUndefined(A) || A === null) && e.append(
9663
+ return v = Wr(v), x.forEach(function(C, T) {
9664
+ !(d.isUndefined(C) || C === null) && e.append(
9657
9665
  // eslint-disable-next-line no-nested-ternary
9658
9666
  a === !0 ? fr([v], T, o) : a === null ? v : v + "[]",
9659
- h(A)
9667
+ h(C)
9660
9668
  );
9661
9669
  }), !1;
9662
9670
  }
@@ -9965,7 +9973,7 @@ function Qo(r) {
9965
9973
  return e;
9966
9974
  }
9967
9975
  const Go = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
9968
- function At(r, e, t, i, s) {
9976
+ function Ct(r, e, t, i, s) {
9969
9977
  if (d.isFunction(i))
9970
9978
  return i.call(this, e, t);
9971
9979
  if (s && (e = t), !!d.isString(e)) {
@@ -10039,7 +10047,7 @@ class K {
10039
10047
  has(e, t) {
10040
10048
  if (e = qe(e), e) {
10041
10049
  const i = d.findKey(this, e);
10042
- return !!(i && this[i] !== void 0 && (!t || At(this, this[i], i, t)));
10050
+ return !!(i && this[i] !== void 0 && (!t || Ct(this, this[i], i, t)));
10043
10051
  }
10044
10052
  return !1;
10045
10053
  }
@@ -10049,7 +10057,7 @@ class K {
10049
10057
  function o(a) {
10050
10058
  if (a = qe(a), a) {
10051
10059
  const n = d.findKey(i, a);
10052
- n && (!t || At(i, i[n], n, t)) && (delete i[n], s = !0);
10060
+ n && (!t || Ct(i, i[n], n, t)) && (delete i[n], s = !0);
10053
10061
  }
10054
10062
  }
10055
10063
  return d.isArray(e) ? e.forEach(o) : o(e), s;
@@ -10059,7 +10067,7 @@ class K {
10059
10067
  let i = t.length, s = !1;
10060
10068
  for (; i--; ) {
10061
10069
  const o = t[i];
10062
- (!e || At(this, this[o], o, e, !0)) && (delete this[o], s = !0);
10070
+ (!e || Ct(this, this[o], o, e, !0)) && (delete this[o], s = !0);
10063
10071
  }
10064
10072
  return s;
10065
10073
  }
@@ -10126,7 +10134,7 @@ d.reduceDescriptors(K.prototype, ({ value: r }, e) => {
10126
10134
  };
10127
10135
  });
10128
10136
  d.freezeMethods(K);
10129
- function Ct(r, e) {
10137
+ function At(r, e) {
10130
10138
  const t = this || tt, i = e || t, s = K.from(i.headers);
10131
10139
  let o = i.data;
10132
10140
  return d.forEach(r, function(n) {
@@ -10352,13 +10360,13 @@ const rs = (r) => {
10352
10360
  function x() {
10353
10361
  if (!m)
10354
10362
  return;
10355
- const A = K.from(
10363
+ const C = K.from(
10356
10364
  "getAllResponseHeaders" in m && m.getAllResponseHeaders()
10357
10365
  ), N = {
10358
10366
  data: !n || n === "text" || n === "json" ? m.responseText : m.response,
10359
10367
  status: m.status,
10360
10368
  statusText: m.statusText,
10361
- headers: A,
10369
+ headers: C,
10362
10370
  config: r,
10363
10371
  request: m
10364
10372
  };
@@ -10386,8 +10394,8 @@ const rs = (r) => {
10386
10394
  )), m = null;
10387
10395
  }, o === void 0 && a.setContentType(null), "setRequestHeader" in m && d.forEach(a.toJSON(), function(T, N) {
10388
10396
  m.setRequestHeader(N, T);
10389
- }), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, g] = ut(h, !0), m.addEventListener("progress", b)), l && m.upload && ([p, w] = ut(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (c = (A) => {
10390
- m && (i(!A || A.type ? new Le(null, r, m) : A), m.abort(), m = null);
10397
+ }), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, g] = ut(h, !0), m.addEventListener("progress", b)), l && m.upload && ([p, w] = ut(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (c = (C) => {
10398
+ m && (i(!C || C.type ? new Le(null, r, m) : C), m.abort(), m = null);
10391
10399
  }, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
10392
10400
  const _ = ra(s.url);
10393
10401
  if (_ && H.protocols.indexOf(_) === -1) {
@@ -10540,7 +10548,7 @@ const rs = (r) => {
10540
10548
  method: m,
10541
10549
  data: x,
10542
10550
  signal: _,
10543
- cancelToken: A,
10551
+ cancelToken: C,
10544
10552
  timeout: T,
10545
10553
  onDownloadProgress: N,
10546
10554
  onUploadProgress: fe,
@@ -10550,7 +10558,7 @@ const rs = (r) => {
10550
10558
  fetchOptions: Wt
10551
10559
  } = rs(g), Kt = e || fetch;
10552
10560
  Q = Q ? (Q + "").toLowerCase() : "text";
10553
- let st = ha([_, A && A.toAbortSignal()], T), Be = null;
10561
+ let st = ha([_, C && C.toAbortSignal()], T), Be = null;
10554
10562
  const ge = st && st.unsubscribe && (() => {
10555
10563
  st.unsubscribe();
10556
10564
  });
@@ -10649,7 +10657,7 @@ d.forEach(Yt, (r, e) => {
10649
10657
  Object.defineProperty(r, "adapterName", { value: e });
10650
10658
  }
10651
10659
  });
10652
- const Ar = (r) => `- ${r}`, va = (r) => d.isFunction(r) || r === null || r === !1;
10660
+ const Cr = (r) => `- ${r}`, va = (r) => d.isFunction(r) || r === null || r === !1;
10653
10661
  function ya(r, e) {
10654
10662
  r = d.isArray(r) ? r : [r];
10655
10663
  const { length: t } = r;
@@ -10669,8 +10677,8 @@ function ya(r, e) {
10669
10677
  ([l, h]) => `adapter ${l} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
10670
10678
  );
10671
10679
  let n = t ? a.length > 1 ? `since :
10672
- ` + a.map(Ar).join(`
10673
- `) : " " + Ar(a[0]) : "as no adapter specified";
10680
+ ` + a.map(Cr).join(`
10681
+ `) : " " + Cr(a[0]) : "as no adapter specified";
10674
10682
  throw new $(
10675
10683
  "There is no suitable adapter to dispatch the request " + n,
10676
10684
  "ERR_NOT_SUPPORT"
@@ -10694,18 +10702,18 @@ function Et(r) {
10694
10702
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
10695
10703
  throw new Le(null, r);
10696
10704
  }
10697
- function Cr(r) {
10698
- return Et(r), r.headers = K.from(r.headers), r.data = Ct.call(
10705
+ function Ar(r) {
10706
+ return Et(r), r.headers = K.from(r.headers), r.data = At.call(
10699
10707
  r,
10700
10708
  r.transformRequest
10701
10709
  ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), is.getAdapter(r.adapter || tt.adapter, r)(r).then(function(i) {
10702
- return Et(r), i.data = Ct.call(
10710
+ return Et(r), i.data = At.call(
10703
10711
  r,
10704
10712
  r.transformResponse,
10705
10713
  i
10706
10714
  ), i.headers = K.from(i.headers), i;
10707
10715
  }, function(i) {
10708
- return Gr(i) || (Et(r), i && i.response && (i.response.data = Ct.call(
10716
+ return Gr(i) || (Et(r), i && i.response && (i.response.data = At.call(
10709
10717
  r,
10710
10718
  r.transformResponse,
10711
10719
  i.response
@@ -10825,7 +10833,7 @@ class we {
10825
10833
  });
10826
10834
  let c, p = 0, b;
10827
10835
  if (!l) {
10828
- const g = [Cr.bind(this), void 0];
10836
+ const g = [Ar.bind(this), void 0];
10829
10837
  for (g.unshift(...n), g.push(...h), b = g.length, c = Promise.resolve(t); p < b; )
10830
10838
  c = c.then(g[p++], g[p++]);
10831
10839
  return c;
@@ -10842,7 +10850,7 @@ class we {
10842
10850
  }
10843
10851
  }
10844
10852
  try {
10845
- c = Cr.call(this, w);
10853
+ c = Ar.call(this, w);
10846
10854
  } catch (g) {
10847
10855
  return Promise.reject(g);
10848
10856
  }
@@ -11067,7 +11075,7 @@ class Tr extends Error {
11067
11075
  super(e), this.name = "AuthRefreshError";
11068
11076
  }
11069
11077
  }
11070
- const Ca = ({ baseUrl: r, useToasts: e = !0 }) => {
11078
+ const Aa = ({ baseUrl: r, useToasts: e = !0 }) => {
11071
11079
  const t = z.create({
11072
11080
  baseURL: r,
11073
11081
  headers: {
@@ -11173,7 +11181,7 @@ function Ea() {
11173
11181
  Vs(), Zs(), Ks(), Xs(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(), Hi(), Gs(), Lr(), Vi(), Zi();
11174
11182
  }
11175
11183
  export {
11176
- C as AuthForm,
11184
+ A as AuthForm,
11177
11185
  Tr as AuthRefreshError,
11178
11186
  pe as BaseButton,
11179
11187
  De as BaseCard,
@@ -11192,7 +11200,7 @@ export {
11192
11200
  Re as BaseToast,
11193
11201
  ze as QuantitySelect,
11194
11202
  Me as ThemeToggle,
11195
- Ca as createApiClient,
11203
+ Aa as createApiClient,
11196
11204
  Ea as registerAll,
11197
11205
  Vs as registerAuthForm,
11198
11206
  Zs as registerBaseButton,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cal.macconnachie/web-components",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "Web components hosted on a CDN",
5
5
  "keywords": [
6
6
  "web-components",