@cal.macconnachie/web-components 1.1.13 → 1.1.14

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.js +181 -181
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -247,8 +247,8 @@ let Ee = class extends HTMLElement {
247
247
  }
248
248
  };
249
249
  Ee.elementStyles = [], Ee.shadowRootOptions = { mode: "open" }, Ee[Ue("elementProperties")] = /* @__PURE__ */ new Map(), Ee[Ue("finalized")] = /* @__PURE__ */ new Map(), no?.({ ReactiveElement: Ee }), (st.reactiveElementVersions ??= []).push("2.1.1");
250
- const Ct = globalThis, ot = Ct.trustedTypes, Jt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $r = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, kr = "?" + de, lo = `<${kr}>`, $e = document, He = () => $e.createComment(""), Be = (e) => e === null || typeof e != "object" && typeof e != "function", Dt = Array.isArray, co = (e) => Dt(e) || typeof e?.[Symbol.iterator] == "function", bt = `[
251
- \f\r]`, Ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ge = RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
250
+ const Ct = globalThis, ot = Ct.trustedTypes, Jt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $r = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, kr = "?" + de, lo = `<${kr}>`, $e = document, He = () => $e.createComment(""), Be = (e) => e === null || typeof e != "object" && typeof e != "function", Dt = Array.isArray, co = (e) => Dt(e) || typeof e?.[Symbol.iterator] == "function", mt = `[
251
+ \f\r]`, Ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ge = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
252
252
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, Sr = /^(?:script|style|textarea|title)$/i, ho = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), u = ho(1), ne = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), er = /* @__PURE__ */ new WeakMap(), ye = $e.createTreeWalker($e, 129);
253
253
  function Er(e, t) {
254
254
  if (!Dt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -280,7 +280,7 @@ class je {
280
280
  if (i.nodeType === 1) {
281
281
  if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith($r)) {
282
282
  const g = c[a++], w = i.getAttribute(h).split(de), f = /([.?@])?(.*)/.exec(g);
283
- d.push({ type: 1, index: s, name: f[2], strings: w, ctor: f[1] === "." ? fo : f[1] === "?" ? bo : f[1] === "@" ? mo : at }), i.removeAttribute(h);
283
+ d.push({ type: 1, index: s, name: f[2], strings: w, ctor: f[1] === "." ? fo : f[1] === "?" ? mo : f[1] === "@" ? bo : at }), i.removeAttribute(h);
284
284
  } else h.startsWith(de) && (d.push({ type: 6, index: s }), i.removeAttribute(h));
285
285
  if (Sr.test(i.tagName)) {
286
286
  const h = i.textContent.split(de), g = h.length - 1;
@@ -429,7 +429,7 @@ class fo extends at {
429
429
  this.element[this.name] = t === S ? void 0 : t;
430
430
  }
431
431
  }
432
- class bo extends at {
432
+ class mo extends at {
433
433
  constructor() {
434
434
  super(...arguments), this.type = 4;
435
435
  }
@@ -437,7 +437,7 @@ class bo extends at {
437
437
  this.element.toggleAttribute(this.name, !!t && t !== S);
438
438
  }
439
439
  }
440
- class mo extends at {
440
+ class bo extends at {
441
441
  constructor(t, r, o, i, s) {
442
442
  super(t, r, o, i, s), this.type = 5;
443
443
  }
@@ -525,14 +525,14 @@ const $o = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged
525
525
  }
526
526
  throw Error("Unsupported decorator location: " + o);
527
527
  };
528
- function b(e) {
528
+ function m(e) {
529
529
  return (t, r) => typeof r == "object" ? ko(e, t, r) : ((o, i, s) => {
530
530
  const a = i.hasOwnProperty(s);
531
531
  return i.constructor.createProperty(s, o), a ? Object.getOwnPropertyDescriptor(i, s) : void 0;
532
532
  })(e, t, r);
533
533
  }
534
534
  function y(e) {
535
- return b({ ...e, state: !0, attribute: !1 });
535
+ return m({ ...e, state: !0, attribute: !1 });
536
536
  }
537
537
  const So = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
538
538
  function B(e, t) {
@@ -580,7 +580,7 @@ const { I: Eo } = vo, tr = () => document.createComment(""), Ne = (e, t, r) => {
580
580
  }
581
581
  }
582
582
  return r;
583
- }, ve = (e, t, r = e) => (e._$AI(t, r), e), Ao = {}, _o = (e, t = Ao) => e._$AH = t, Co = (e) => e._$AH, mt = (e) => {
583
+ }, ve = (e, t, r = e) => (e._$AI(t, r), e), Ao = {}, _o = (e, t = Ao) => e._$AH = t, Co = (e) => e._$AH, bt = (e) => {
584
584
  e._$AR(), e._$AA.remove();
585
585
  };
586
586
  const rr = (e, t, r) => {
@@ -614,21 +614,21 @@ const rr = (e, t, r) => {
614
614
  else if (n[h] === a[f]) d[f] = ve(i[h], s[f]), Ne(e, d[f + 1], i[h]), h++, f--;
615
615
  else if (n[g] === a[w]) d[w] = ve(i[g], s[w]), Ne(e, i[h], i[g]), g--, w++;
616
616
  else if (p === void 0 && (p = rr(a, w, f), c = rr(n, h, g)), p.has(n[h])) if (p.has(n[g])) {
617
- const v = c.get(a[w]), m = v !== void 0 ? i[v] : null;
618
- if (m === null) {
617
+ const v = c.get(a[w]), b = v !== void 0 ? i[v] : null;
618
+ if (b === null) {
619
619
  const x = Ne(e, i[h]);
620
620
  ve(x, s[w]), d[w] = x;
621
- } else d[w] = ve(m, s[w]), Ne(e, i[h], m), i[v] = null;
621
+ } else d[w] = ve(b, s[w]), Ne(e, i[h], b), i[v] = null;
622
622
  w++;
623
- } else mt(i[g]), g--;
624
- else mt(i[h]), h++;
623
+ } else bt(i[g]), g--;
624
+ else bt(i[h]), h++;
625
625
  for (; w <= f; ) {
626
626
  const v = Ne(e, d[f + 1]);
627
627
  ve(v, s[w]), d[w++] = v;
628
628
  }
629
629
  for (; h <= g; ) {
630
630
  const v = i[h++];
631
- v !== null && mt(v);
631
+ v !== null && bt(v);
632
632
  }
633
633
  return this.ut = a, _o(e, d), ne;
634
634
  }
@@ -665,10 +665,10 @@ class q extends qe {
665
665
  }
666
666
  }
667
667
  Ar([
668
- b({ type: String, attribute: "data-theme", reflect: !0 })
668
+ m({ type: String, attribute: "data-theme", reflect: !0 })
669
669
  ], q.prototype, "theme");
670
670
  Ar([
671
- b({ type: String, attribute: "storage-key" })
671
+ m({ type: String, attribute: "storage-key" })
672
672
  ], q.prototype, "storageKey");
673
673
  const Po = ({
674
674
  baseUrl: e
@@ -706,13 +706,13 @@ const Po = ({
706
706
  })
707
707
  });
708
708
  if (!v.ok) {
709
- const m = await v.json();
710
- throw new Error(m.message || m.error || "Login failed");
709
+ const b = await v.json();
710
+ throw new Error(b.message || b.error || "Login failed");
711
711
  }
712
712
  return v.json();
713
713
  },
714
714
  logout: async () => {
715
- const c = await fetch(`${e}${t.logout}`, {
715
+ const c = await fetch(`${e}${t.logout}?return_url=${encodeURIComponent(window.location.href)}`, {
716
716
  method: "POST",
717
717
  headers: {
718
718
  "Content-Type": "application/json"
@@ -778,7 +778,7 @@ const Po = ({
778
778
  given_name: f,
779
779
  code: v
780
780
  }) => {
781
- const m = await fetch(`${e}${t.register}`, {
781
+ const b = await fetch(`${e}${t.register}`, {
782
782
  method: "POST",
783
783
  headers: {
784
784
  "Content-Type": "application/json"
@@ -793,11 +793,11 @@ const Po = ({
793
793
  code: v
794
794
  })
795
795
  });
796
- if (!m.ok) {
797
- const x = await m.json();
796
+ if (!b.ok) {
797
+ const x = await b.json();
798
798
  throw new Error(x.message || x.error || "Registration failed");
799
799
  }
800
- return m.json();
800
+ return b.json();
801
801
  },
802
802
  requestResetPassword: async ({ email: c }) => {
803
803
  const h = await fetch(`${e}${t.requestResetPassword}`, {
@@ -2295,34 +2295,34 @@ let E = class extends q {
2295
2295
  };
2296
2296
  E.styles = _r();
2297
2297
  _([
2298
- b({ type: String, attribute: "initial-mode" })
2298
+ m({ type: String, attribute: "initial-mode" })
2299
2299
  ], E.prototype, "initialMode", 2);
2300
2300
  _([
2301
- b({ type: String, attribute: "logo-url" })
2301
+ m({ type: String, attribute: "logo-url" })
2302
2302
  ], E.prototype, "logoUrl", 2);
2303
2303
  _([
2304
- b({ type: String, attribute: "oauth-domain" })
2304
+ m({ type: String, attribute: "oauth-domain" })
2305
2305
  ], E.prototype, "oauthDomain", 2);
2306
2306
  _([
2307
- b({ type: String, attribute: "oauth-region" })
2307
+ m({ type: String, attribute: "oauth-region" })
2308
2308
  ], E.prototype, "oauthRegion", 2);
2309
2309
  _([
2310
- b({ type: String, attribute: "oauth-user-pool-id" })
2310
+ m({ type: String, attribute: "oauth-user-pool-id" })
2311
2311
  ], E.prototype, "oauthUserPoolId", 2);
2312
2312
  _([
2313
- b({ type: String, attribute: "oauth-client-id" })
2313
+ m({ type: String, attribute: "oauth-client-id" })
2314
2314
  ], E.prototype, "oauthClientId", 2);
2315
2315
  _([
2316
- b({ type: String, attribute: "oauth-redirect-uri" })
2316
+ m({ type: String, attribute: "oauth-redirect-uri" })
2317
2317
  ], E.prototype, "oauthRedirectUri", 2);
2318
2318
  _([
2319
- b({ type: String, attribute: "oauth-spa-domain" })
2319
+ m({ type: String, attribute: "oauth-spa-domain" })
2320
2320
  ], E.prototype, "oauthSpaDomain", 2);
2321
2321
  _([
2322
- b({ type: Boolean, attribute: "disable-signup" })
2322
+ m({ type: Boolean, attribute: "disable-signup" })
2323
2323
  ], E.prototype, "disableSignup", 2);
2324
2324
  _([
2325
- b({ type: Boolean, attribute: "mock-mode" })
2325
+ m({ type: Boolean, attribute: "mock-mode" })
2326
2326
  ], E.prototype, "mockMode", 2);
2327
2327
  _([
2328
2328
  y()
@@ -2879,25 +2879,25 @@ se.styles = J`
2879
2879
  }
2880
2880
  `;
2881
2881
  fe([
2882
- b({ type: String, attribute: "size" })
2882
+ m({ type: String, attribute: "size" })
2883
2883
  ], se.prototype, "size", 2);
2884
2884
  fe([
2885
- b({ type: String, attribute: "variant" })
2885
+ m({ type: String, attribute: "variant" })
2886
2886
  ], se.prototype, "variant", 2);
2887
2887
  fe([
2888
- b({ type: String, attribute: "hover" })
2888
+ m({ type: String, attribute: "hover" })
2889
2889
  ], se.prototype, "hover", 2);
2890
2890
  fe([
2891
- b({ type: Boolean, reflect: !0 })
2891
+ m({ type: Boolean, reflect: !0 })
2892
2892
  ], se.prototype, "disabled", 2);
2893
2893
  fe([
2894
- b({ type: Boolean, reflect: !0, attribute: "full-width" })
2894
+ m({ type: Boolean, reflect: !0, attribute: "full-width" })
2895
2895
  ], se.prototype, "fullWidth", 2);
2896
2896
  fe([
2897
- b({ type: Boolean, reflect: !0, attribute: "loading" })
2897
+ m({ type: Boolean, reflect: !0, attribute: "loading" })
2898
2898
  ], se.prototype, "loading", 2);
2899
2899
  fe([
2900
- b({ type: String, attribute: "type" })
2900
+ m({ type: String, attribute: "type" })
2901
2901
  ], se.prototype, "type", 2);
2902
2902
  se = fe([
2903
2903
  K("base-button")
@@ -3153,16 +3153,16 @@ he.styles = J`
3153
3153
  }
3154
3154
  `;
3155
3155
  Pe([
3156
- b({ type: String, attribute: "variant" })
3156
+ m({ type: String, attribute: "variant" })
3157
3157
  ], he.prototype, "variant", 2);
3158
3158
  Pe([
3159
- b({ type: String, attribute: "padding" })
3159
+ m({ type: String, attribute: "padding" })
3160
3160
  ], he.prototype, "padding", 2);
3161
3161
  Pe([
3162
- b({ type: Boolean, reflect: !0, attribute: "hoverable" })
3162
+ m({ type: Boolean, reflect: !0, attribute: "hoverable" })
3163
3163
  ], he.prototype, "hoverable", 2);
3164
3164
  Pe([
3165
- b({ type: Boolean, reflect: !0, attribute: "expandable" })
3165
+ m({ type: Boolean, reflect: !0, attribute: "expandable" })
3166
3166
  ], he.prototype, "expandable", 2);
3167
3167
  Pe([
3168
3168
  y()
@@ -3945,34 +3945,34 @@ T.styles = J`
3945
3945
  }
3946
3946
  `;
3947
3947
  M([
3948
- b({ type: String })
3948
+ m({ type: String })
3949
3949
  ], T.prototype, "value", 2);
3950
3950
  M([
3951
- b({ type: String })
3951
+ m({ type: String })
3952
3952
  ], T.prototype, "label", 2);
3953
3953
  M([
3954
- b({ type: String })
3954
+ m({ type: String })
3955
3955
  ], T.prototype, "placeholder", 2);
3956
3956
  M([
3957
- b({ type: Boolean, reflect: !0 })
3957
+ m({ type: Boolean, reflect: !0 })
3958
3958
  ], T.prototype, "required", 2);
3959
3959
  M([
3960
- b({ type: Boolean, reflect: !0 })
3960
+ m({ type: Boolean, reflect: !0 })
3961
3961
  ], T.prototype, "disabled", 2);
3962
3962
  M([
3963
- b({ type: String })
3963
+ m({ type: String })
3964
3964
  ], T.prototype, "error", 2);
3965
3965
  M([
3966
- b({ type: String })
3966
+ m({ type: String })
3967
3967
  ], T.prototype, "hint", 2);
3968
3968
  M([
3969
- b({ type: String })
3969
+ m({ type: String })
3970
3970
  ], T.prototype, "size", 2);
3971
3971
  M([
3972
- b({ type: String })
3972
+ m({ type: String })
3973
3973
  ], T.prototype, "minDate", 2);
3974
3974
  M([
3975
- b({ type: String })
3975
+ m({ type: String })
3976
3976
  ], T.prototype, "maxDate", 2);
3977
3977
  M([
3978
3978
  y()
@@ -4999,37 +4999,37 @@ C.styles = J`
4999
4999
  }
5000
5000
  `;
5001
5001
  P([
5002
- b({ type: String })
5002
+ m({ type: String })
5003
5003
  ], C.prototype, "value", 2);
5004
5004
  P([
5005
- b({ type: String })
5005
+ m({ type: String })
5006
5006
  ], C.prototype, "label", 2);
5007
5007
  P([
5008
- b({ type: String })
5008
+ m({ type: String })
5009
5009
  ], C.prototype, "placeholder", 2);
5010
5010
  P([
5011
- b({ type: Boolean, reflect: !0 })
5011
+ m({ type: Boolean, reflect: !0 })
5012
5012
  ], C.prototype, "required", 2);
5013
5013
  P([
5014
- b({ type: Boolean, reflect: !0 })
5014
+ m({ type: Boolean, reflect: !0 })
5015
5015
  ], C.prototype, "disabled", 2);
5016
5016
  P([
5017
- b({ type: String })
5017
+ m({ type: String })
5018
5018
  ], C.prototype, "error", 2);
5019
5019
  P([
5020
- b({ type: String })
5020
+ m({ type: String })
5021
5021
  ], C.prototype, "hint", 2);
5022
5022
  P([
5023
- b({ type: String })
5023
+ m({ type: String })
5024
5024
  ], C.prototype, "size", 2);
5025
5025
  P([
5026
- b({ type: String })
5026
+ m({ type: String })
5027
5027
  ], C.prototype, "minDate", 2);
5028
5028
  P([
5029
- b({ type: String })
5029
+ m({ type: String })
5030
5030
  ], C.prototype, "maxDate", 2);
5031
5031
  P([
5032
- b({ type: String })
5032
+ m({ type: String })
5033
5033
  ], C.prototype, "format", 2);
5034
5034
  P([
5035
5035
  y()
@@ -5217,10 +5217,10 @@ let V = class extends q {
5217
5217
  };
5218
5218
  V.styles = _r();
5219
5219
  Z([
5220
- b({ type: Boolean, reflect: !0 })
5220
+ m({ type: Boolean, reflect: !0 })
5221
5221
  ], V.prototype, "open", 2);
5222
5222
  Z([
5223
- b({ type: String, attribute: "size" })
5223
+ m({ type: String, attribute: "size" })
5224
5224
  ], V.prototype, "size", 2);
5225
5225
  Z([
5226
5226
  y()
@@ -5479,34 +5479,34 @@ W.styles = J`
5479
5479
  }
5480
5480
  `;
5481
5481
  ee([
5482
- b({ type: String })
5482
+ m({ type: String })
5483
5483
  ], W.prototype, "value", 2);
5484
5484
  ee([
5485
- b({ type: String })
5485
+ m({ type: String })
5486
5486
  ], W.prototype, "label", 2);
5487
5487
  ee([
5488
- b({ type: String })
5488
+ m({ type: String })
5489
5489
  ], W.prototype, "placeholder", 2);
5490
5490
  ee([
5491
- b({ type: String })
5491
+ m({ type: String })
5492
5492
  ], W.prototype, "type", 2);
5493
5493
  ee([
5494
- b({ type: Boolean, reflect: !0 })
5494
+ m({ type: Boolean, reflect: !0 })
5495
5495
  ], W.prototype, "required", 2);
5496
5496
  ee([
5497
- b({ type: Boolean, reflect: !0 })
5497
+ m({ type: Boolean, reflect: !0 })
5498
5498
  ], W.prototype, "disabled", 2);
5499
5499
  ee([
5500
- b({ type: String })
5500
+ m({ type: String })
5501
5501
  ], W.prototype, "error", 2);
5502
5502
  ee([
5503
- b({ type: String })
5503
+ m({ type: String })
5504
5504
  ], W.prototype, "hint", 2);
5505
5505
  ee([
5506
- b({ type: String })
5506
+ m({ type: String })
5507
5507
  ], W.prototype, "autocomplete", 2);
5508
5508
  ee([
5509
- b({ type: String })
5509
+ m({ type: String })
5510
5510
  ], W.prototype, "size", 2);
5511
5511
  ee([
5512
5512
  B("input")
@@ -5912,34 +5912,34 @@ R.styles = J`
5912
5912
  }
5913
5913
  `;
5914
5914
  N([
5915
- b({ type: String })
5915
+ m({ type: String })
5916
5916
  ], R.prototype, "value", 2);
5917
5917
  N([
5918
- b({ type: String })
5918
+ m({ type: String })
5919
5919
  ], R.prototype, "label", 2);
5920
5920
  N([
5921
- b({ type: String })
5921
+ m({ type: String })
5922
5922
  ], R.prototype, "placeholder", 2);
5923
5923
  N([
5924
- b({ type: Boolean, reflect: !0 })
5924
+ m({ type: Boolean, reflect: !0 })
5925
5925
  ], R.prototype, "required", 2);
5926
5926
  N([
5927
- b({ type: Boolean, reflect: !0 })
5927
+ m({ type: Boolean, reflect: !0 })
5928
5928
  ], R.prototype, "disabled", 2);
5929
5929
  N([
5930
- b({ type: Boolean, reflect: !0 })
5930
+ m({ type: Boolean, reflect: !0 })
5931
5931
  ], R.prototype, "searchable", 2);
5932
5932
  N([
5933
- b({ type: String })
5933
+ m({ type: String })
5934
5934
  ], R.prototype, "error", 2);
5935
5935
  N([
5936
- b({ type: String })
5936
+ m({ type: String })
5937
5937
  ], R.prototype, "hint", 2);
5938
5938
  N([
5939
- b({ type: String })
5939
+ m({ type: String })
5940
5940
  ], R.prototype, "size", 2);
5941
5941
  N([
5942
- b({ type: Array })
5942
+ m({ type: Array })
5943
5943
  ], R.prototype, "options", 2);
5944
5944
  N([
5945
5945
  y()
@@ -6028,19 +6028,19 @@ pe.styles = J`
6028
6028
  }
6029
6029
  `;
6030
6030
  Oe([
6031
- b({ type: String, reflect: !0 })
6031
+ m({ type: String, reflect: !0 })
6032
6032
  ], pe.prototype, "id", 2);
6033
6033
  Oe([
6034
- b({ type: String })
6034
+ m({ type: String })
6035
6035
  ], pe.prototype, "label", 2);
6036
6036
  Oe([
6037
- b({ type: Number })
6037
+ m({ type: Number })
6038
6038
  ], pe.prototype, "badge", 2);
6039
6039
  Oe([
6040
- b({ type: String })
6040
+ m({ type: String })
6041
6041
  ], pe.prototype, "icon", 2);
6042
6042
  Oe([
6043
- b({ type: Boolean, reflect: !0 })
6043
+ m({ type: Boolean, reflect: !0 })
6044
6044
  ], pe.prototype, "active", 2);
6045
6045
  pe = Oe([
6046
6046
  K("base-tab")
@@ -6705,19 +6705,19 @@ X.styles = J`
6705
6705
  }
6706
6706
  `;
6707
6707
  ae([
6708
- b({ type: String, attribute: "active-tab" })
6708
+ m({ type: String, attribute: "active-tab" })
6709
6709
  ], X.prototype, "activeTab", 2);
6710
6710
  ae([
6711
- b({ type: String, attribute: "aria-label" })
6711
+ m({ type: String, attribute: "aria-label" })
6712
6712
  ], X.prototype, "ariaLabel", 2);
6713
6713
  ae([
6714
- b({ type: Boolean, attribute: "sync-with-hash" })
6714
+ m({ type: Boolean, attribute: "sync-with-hash" })
6715
6715
  ], X.prototype, "syncWithHash", 2);
6716
6716
  ae([
6717
- b({ type: String })
6717
+ m({ type: String })
6718
6718
  ], X.prototype, "variant", 2);
6719
6719
  ae([
6720
- b({ type: Boolean, attribute: "force-expanded" })
6720
+ m({ type: Boolean, attribute: "force-expanded" })
6721
6721
  ], X.prototype, "forceExpanded", 2);
6722
6722
  ae([
6723
6723
  y()
@@ -6995,37 +6995,37 @@ H.styles = J`
6995
6995
  }
6996
6996
  `;
6997
6997
  G([
6998
- b({ type: String })
6998
+ m({ type: String })
6999
6999
  ], H.prototype, "value", 2);
7000
7000
  G([
7001
- b({ type: String })
7001
+ m({ type: String })
7002
7002
  ], H.prototype, "label", 2);
7003
7003
  G([
7004
- b({ type: String })
7004
+ m({ type: String })
7005
7005
  ], H.prototype, "placeholder", 2);
7006
7006
  G([
7007
- b({ type: Boolean, reflect: !0 })
7007
+ m({ type: Boolean, reflect: !0 })
7008
7008
  ], H.prototype, "required", 2);
7009
7009
  G([
7010
- b({ type: Boolean, reflect: !0 })
7010
+ m({ type: Boolean, reflect: !0 })
7011
7011
  ], H.prototype, "disabled", 2);
7012
7012
  G([
7013
- b({ type: String })
7013
+ m({ type: String })
7014
7014
  ], H.prototype, "error", 2);
7015
7015
  G([
7016
- b({ type: String })
7016
+ m({ type: String })
7017
7017
  ], H.prototype, "hint", 2);
7018
7018
  G([
7019
- b({ type: String })
7019
+ m({ type: String })
7020
7020
  ], H.prototype, "size", 2);
7021
7021
  G([
7022
- b({ type: Number })
7022
+ m({ type: Number })
7023
7023
  ], H.prototype, "rows", 2);
7024
7024
  G([
7025
- b({ type: Number })
7025
+ m({ type: Number })
7026
7026
  ], H.prototype, "maxlength", 2);
7027
7027
  G([
7028
- b({ type: String })
7028
+ m({ type: String })
7029
7029
  ], H.prototype, "resize", 2);
7030
7030
  G([
7031
7031
  B("textarea")
@@ -7499,31 +7499,31 @@ I.styles = J`
7499
7499
  }
7500
7500
  `;
7501
7501
  L([
7502
- b({ type: String })
7502
+ m({ type: String })
7503
7503
  ], I.prototype, "value", 2);
7504
7504
  L([
7505
- b({ type: String })
7505
+ m({ type: String })
7506
7506
  ], I.prototype, "label", 2);
7507
7507
  L([
7508
- b({ type: String })
7508
+ m({ type: String })
7509
7509
  ], I.prototype, "placeholder", 2);
7510
7510
  L([
7511
- b({ type: Boolean, reflect: !0 })
7511
+ m({ type: Boolean, reflect: !0 })
7512
7512
  ], I.prototype, "required", 2);
7513
7513
  L([
7514
- b({ type: Boolean, reflect: !0 })
7514
+ m({ type: Boolean, reflect: !0 })
7515
7515
  ], I.prototype, "disabled", 2);
7516
7516
  L([
7517
- b({ type: String })
7517
+ m({ type: String })
7518
7518
  ], I.prototype, "error", 2);
7519
7519
  L([
7520
- b({ type: String })
7520
+ m({ type: String })
7521
7521
  ], I.prototype, "hint", 2);
7522
7522
  L([
7523
- b({ type: String })
7523
+ m({ type: String })
7524
7524
  ], I.prototype, "size", 2);
7525
7525
  L([
7526
- b({ type: String })
7526
+ m({ type: String })
7527
7527
  ], I.prototype, "format", 2);
7528
7528
  L([
7529
7529
  y()
@@ -7779,19 +7779,19 @@ ue.styles = J`
7779
7779
  }
7780
7780
  `;
7781
7781
  Te([
7782
- b({ type: Number })
7782
+ m({ type: Number })
7783
7783
  ], ue.prototype, "value", 2);
7784
7784
  Te([
7785
- b({ type: Number })
7785
+ m({ type: Number })
7786
7786
  ], ue.prototype, "min", 2);
7787
7787
  Te([
7788
- b({ type: Number })
7788
+ m({ type: Number })
7789
7789
  ], ue.prototype, "max", 2);
7790
7790
  Te([
7791
- b({ type: String })
7791
+ m({ type: String })
7792
7792
  ], ue.prototype, "size", 2);
7793
7793
  Te([
7794
- b({ type: Boolean, attribute: "allow-input" })
7794
+ m({ type: Boolean, attribute: "allow-input" })
7795
7795
  ], ue.prototype, "allowInput", 2);
7796
7796
  ue = Te([
7797
7797
  K("quantity-select")
@@ -8016,10 +8016,10 @@ _e.styles = J`
8016
8016
  }
8017
8017
  `;
8018
8018
  nt([
8019
- b({ type: String, attribute: "size" })
8019
+ m({ type: String, attribute: "size" })
8020
8020
  ], _e.prototype, "size", 2);
8021
8021
  nt([
8022
- b({ type: String, attribute: "variant" })
8022
+ m({ type: String, attribute: "variant" })
8023
8023
  ], _e.prototype, "variant", 2);
8024
8024
  nt([
8025
8025
  y()
@@ -8057,7 +8057,7 @@ const pi = dt("string"), F = dt("function"), Or = dt("number"), Ye = (e) => e !=
8057
8057
  } catch {
8058
8058
  return !1;
8059
8059
  }
8060
- }, bi = re("Date"), mi = re("File"), gi = re("Blob"), vi = re("FileList"), yi = (e) => Ye(e) && F(e.pipe), wi = (e) => {
8060
+ }, mi = re("Date"), bi = re("File"), gi = re("Blob"), vi = re("FileList"), yi = (e) => Ye(e) && F(e.pipe), wi = (e) => {
8061
8061
  let t;
8062
8062
  return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
8063
8063
  t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
@@ -8222,8 +8222,8 @@ const Fi = (e) => {
8222
8222
  isResponse: Si,
8223
8223
  isHeaders: Ei,
8224
8224
  isUndefined: Ce,
8225
- isDate: bi,
8226
- isFile: mi,
8225
+ isDate: mi,
8226
+ isFile: bi,
8227
8227
  isBlob: gi,
8228
8228
  isRegExp: Li,
8229
8229
  isFunction: F,
@@ -8342,8 +8342,8 @@ function ht(e, t, r) {
8342
8342
  metaTokens: !0,
8343
8343
  dots: !1,
8344
8344
  indexes: !1
8345
- }, !1, function(v, m) {
8346
- return !l.isUndefined(m[v]);
8345
+ }, !1, function(v, b) {
8346
+ return !l.isUndefined(b[v]);
8347
8347
  });
8348
8348
  const o = r.metaTokens, i = r.visitor || c, s = r.dots, a = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
8349
8349
  if (!l.isFunction(i))
@@ -8358,9 +8358,9 @@ function ht(e, t, r) {
8358
8358
  throw new k("Blob is not supported. Use a Buffer instead.");
8359
8359
  return l.isArrayBuffer(f) || l.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
8360
8360
  }
8361
- function c(f, v, m) {
8361
+ function c(f, v, b) {
8362
8362
  let x = f;
8363
- if (f && !m && typeof f == "object") {
8363
+ if (f && !b && typeof f == "object") {
8364
8364
  if (l.endsWith(v, "{}"))
8365
8365
  v = o ? v : v.slice(0, -2), f = JSON.stringify(f);
8366
8366
  else if (l.isArray(f) && Gi(f) || (l.isFileList(f) || l.endsWith(v, "[]")) && (x = l.toArray(f)))
@@ -8372,7 +8372,7 @@ function ht(e, t, r) {
8372
8372
  );
8373
8373
  }), !1;
8374
8374
  }
8375
- return $t(f) ? !0 : (t.append(sr(m, v, s), p(f)), !1);
8375
+ return $t(f) ? !0 : (t.append(sr(b, v, s), p(f)), !1);
8376
8376
  }
8377
8377
  const h = [], g = Object.assign(Qi, {
8378
8378
  defaultVisitor: c,
@@ -8687,10 +8687,10 @@ function gt(e, t, r, o, i) {
8687
8687
  return o.test(t);
8688
8688
  }
8689
8689
  }
8690
- function bs(e) {
8690
+ function ms(e) {
8691
8691
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, o) => r.toUpperCase() + o);
8692
8692
  }
8693
- function ms(e, t) {
8693
+ function bs(e, t) {
8694
8694
  const r = l.toCamelCase(" " + t);
8695
8695
  ["get", "set", "has"].forEach((o) => {
8696
8696
  Object.defineProperty(e, o + r, {
@@ -8783,7 +8783,7 @@ class Y {
8783
8783
  r[a] = et(i), delete r[s];
8784
8784
  return;
8785
8785
  }
8786
- const n = t ? bs(s) : String(s).trim();
8786
+ const n = t ? ms(s) : String(s).trim();
8787
8787
  n !== s && delete r[s], r[n] = et(i), o[n] = !0;
8788
8788
  }), this;
8789
8789
  }
@@ -8822,7 +8822,7 @@ class Y {
8822
8822
  }).accessors, i = this.prototype;
8823
8823
  function s(a) {
8824
8824
  const n = Le(a);
8825
- o[n] || (ms(i, a), o[n] = !0);
8825
+ o[n] || (bs(i, a), o[n] = !0);
8826
8826
  }
8827
8827
  return l.isArray(t) ? t.forEach(s) : s(t), this;
8828
8828
  }
@@ -9059,54 +9059,54 @@ const Vr = (e) => {
9059
9059
  function v() {
9060
9060
  w && w(), f && f(), i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c);
9061
9061
  }
9062
- let m = new XMLHttpRequest();
9063
- m.open(i.method.toUpperCase(), i.url, !0), m.timeout = i.timeout;
9062
+ let b = new XMLHttpRequest();
9063
+ b.open(i.method.toUpperCase(), i.url, !0), b.timeout = i.timeout;
9064
9064
  function x() {
9065
- if (!m)
9065
+ if (!b)
9066
9066
  return;
9067
9067
  const A = Y.from(
9068
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
9068
+ "getAllResponseHeaders" in b && b.getAllResponseHeaders()
9069
9069
  ), j = {
9070
- data: !n || n === "text" || n === "json" ? m.responseText : m.response,
9071
- status: m.status,
9072
- statusText: m.statusText,
9070
+ data: !n || n === "text" || n === "json" ? b.responseText : b.response,
9071
+ status: b.status,
9072
+ statusText: b.statusText,
9073
9073
  headers: A,
9074
9074
  config: e,
9075
- request: m
9075
+ request: b
9076
9076
  };
9077
9077
  Fr(function(Q) {
9078
9078
  r(Q), v();
9079
9079
  }, function(Q) {
9080
9080
  o(Q), v();
9081
- }, j), m = null;
9082
- }
9083
- "onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
9084
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(x);
9085
- }, m.onabort = function() {
9086
- m && (o(new k("Request aborted", k.ECONNABORTED, e, m)), m = null);
9087
- }, m.onerror = function(O) {
9088
- const j = O && O.message ? O.message : "Network Error", be = new k(j, k.ERR_NETWORK, e, m);
9089
- be.event = O || null, o(be), m = null;
9090
- }, m.ontimeout = function() {
9081
+ }, j), b = null;
9082
+ }
9083
+ "onloadend" in b ? b.onloadend = x : b.onreadystatechange = function() {
9084
+ !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(x);
9085
+ }, b.onabort = function() {
9086
+ b && (o(new k("Request aborted", k.ECONNABORTED, e, b)), b = null);
9087
+ }, b.onerror = function(O) {
9088
+ const j = O && O.message ? O.message : "Network Error", me = new k(j, k.ERR_NETWORK, e, b);
9089
+ me.event = O || null, o(me), b = null;
9090
+ }, b.ontimeout = function() {
9091
9091
  let O = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
9092
9092
  const j = i.transitional || Hr;
9093
9093
  i.timeoutErrorMessage && (O = i.timeoutErrorMessage), o(new k(
9094
9094
  O,
9095
9095
  j.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
9096
9096
  e,
9097
- m
9098
- )), m = null;
9099
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in m && l.forEach(a.toJSON(), function(O, j) {
9100
- m.setRequestHeader(j, O);
9101
- }), l.isUndefined(i.withCredentials) || (m.withCredentials = !!i.withCredentials), n && n !== "json" && (m.responseType = i.responseType), p && ([g, f] = it(p, !0), m.addEventListener("progress", g)), d && m.upload && ([h, w] = it(d), m.upload.addEventListener("progress", h), m.upload.addEventListener("loadend", w)), (i.cancelToken || i.signal) && (c = (A) => {
9102
- m && (o(!A || A.type ? new ze(null, e, m) : A), m.abort(), m = null);
9097
+ b
9098
+ )), b = null;
9099
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in b && l.forEach(a.toJSON(), function(O, j) {
9100
+ b.setRequestHeader(j, O);
9101
+ }), l.isUndefined(i.withCredentials) || (b.withCredentials = !!i.withCredentials), n && n !== "json" && (b.responseType = i.responseType), p && ([g, f] = it(p, !0), b.addEventListener("progress", g)), d && b.upload && ([h, w] = it(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", w)), (i.cancelToken || i.signal) && (c = (A) => {
9102
+ b && (o(!A || A.type ? new ze(null, e, b) : A), b.abort(), b = null);
9103
9103
  }, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
9104
9104
  const D = gs(i.url);
9105
9105
  if (D && U.protocols.indexOf(D) === -1) {
9106
9106
  o(new k("Unsupported protocol " + D + ":", k.ERR_BAD_REQUEST, e));
9107
9107
  return;
9108
9108
  }
9109
- m.send(s || null);
9109
+ b.send(s || null);
9110
9110
  });
9111
9111
  }, As = (e, t) => {
9112
9112
  const { length: r } = e = e ? e.filter(Boolean) : [];
@@ -9193,8 +9193,8 @@ const Vr = (e) => {
9193
9193
  Response: t
9194
9194
  }))(l.global), {
9195
9195
  ReadableStream: fr,
9196
- TextEncoder: br
9197
- } = l.global, mr = (e, ...t) => {
9196
+ TextEncoder: mr
9197
+ } = l.global, br = (e, ...t) => {
9198
9198
  try {
9199
9199
  return !!e(...t);
9200
9200
  } catch {
@@ -9207,7 +9207,7 @@ const Vr = (e) => {
9207
9207
  const { fetch: t, Request: r, Response: o } = e, i = t ? Qe(t) : typeof fetch == "function", s = Qe(r), a = Qe(o);
9208
9208
  if (!i)
9209
9209
  return !1;
9210
- const n = i && Qe(fr), d = i && (typeof br == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new br()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), p = s && n && mr(() => {
9210
+ const n = i && Qe(fr), d = i && (typeof mr == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new mr()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), p = s && n && br(() => {
9211
9211
  let f = !1;
9212
9212
  const v = new r(U.origin, {
9213
9213
  body: new fr(),
@@ -9217,15 +9217,15 @@ const Vr = (e) => {
9217
9217
  }
9218
9218
  }).headers.has("Content-Type");
9219
9219
  return f && !v;
9220
- }), c = a && n && mr(() => l.isReadableStream(new o("").body)), h = {
9220
+ }), c = a && n && br(() => l.isReadableStream(new o("").body)), h = {
9221
9221
  stream: c && ((f) => f.body)
9222
9222
  };
9223
9223
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
9224
- !h[f] && (h[f] = (v, m) => {
9224
+ !h[f] && (h[f] = (v, b) => {
9225
9225
  let x = v && v[f];
9226
9226
  if (x)
9227
9227
  return x.call(v);
9228
- throw new k(`Response type '${f}' is not supported`, k.ERR_NOT_SUPPORT, m);
9228
+ throw new k(`Response type '${f}' is not supported`, k.ERR_NOT_SUPPORT, b);
9229
9229
  });
9230
9230
  });
9231
9231
  const g = async (f) => {
@@ -9243,19 +9243,19 @@ const Vr = (e) => {
9243
9243
  if (l.isURLSearchParams(f) && (f = f + ""), l.isString(f))
9244
9244
  return (await d(f)).byteLength;
9245
9245
  }, w = async (f, v) => {
9246
- const m = l.toFiniteNumber(f.getContentLength());
9247
- return m ?? g(v);
9246
+ const b = l.toFiniteNumber(f.getContentLength());
9247
+ return b ?? g(v);
9248
9248
  };
9249
9249
  return async (f) => {
9250
9250
  let {
9251
9251
  url: v,
9252
- method: m,
9252
+ method: b,
9253
9253
  data: x,
9254
9254
  signal: D,
9255
9255
  cancelToken: A,
9256
9256
  timeout: O,
9257
9257
  onDownloadProgress: j,
9258
- onUploadProgress: be,
9258
+ onUploadProgress: me,
9259
9259
  responseType: Q,
9260
9260
  headers: ut,
9261
9261
  withCredentials: Ke = "same-origin",
@@ -9263,12 +9263,12 @@ const Vr = (e) => {
9263
9263
  } = Vr(f), qt = t || fetch;
9264
9264
  Q = Q ? (Q + "").toLowerCase() : "text";
9265
9265
  let Je = As([D, A && A.toAbortSignal()], O), Me = null;
9266
- const me = Je && Je.unsubscribe && (() => {
9266
+ const be = Je && Je.unsubscribe && (() => {
9267
9267
  Je.unsubscribe();
9268
9268
  });
9269
9269
  let Ht;
9270
9270
  try {
9271
- if (be && p && m !== "get" && m !== "head" && (Ht = await w(ut, x)) !== 0) {
9271
+ if (me && p && b !== "get" && b !== "head" && (Ht = await w(ut, x)) !== 0) {
9272
9272
  let ce = new r(v, {
9273
9273
  method: "POST",
9274
9274
  body: x,
@@ -9277,7 +9277,7 @@ const Vr = (e) => {
9277
9277
  if (l.isFormData(x) && (Se = ce.headers.get("content-type")) && ut.setContentType(Se), ce.body) {
9278
9278
  const [ft, Ge] = cr(
9279
9279
  Ht,
9280
- it(dr(be))
9280
+ it(dr(me))
9281
9281
  );
9282
9282
  x = pr(ce.body, ur, ft, Ge);
9283
9283
  }
@@ -9286,7 +9286,7 @@ const Vr = (e) => {
9286
9286
  const oe = s && "credentials" in r.prototype, Bt = {
9287
9287
  ...Ut,
9288
9288
  signal: Je,
9289
- method: m.toUpperCase(),
9289
+ method: b.toUpperCase(),
9290
9290
  headers: ut.normalize().toJSON(),
9291
9291
  body: x,
9292
9292
  duplex: "half",
@@ -9295,7 +9295,7 @@ const Vr = (e) => {
9295
9295
  Me = s && new r(v, Bt);
9296
9296
  let le = await (s ? qt(Me, Ut) : qt(v, Bt));
9297
9297
  const jt = c && (Q === "stream" || Q === "response");
9298
- if (c && (j || jt && me)) {
9298
+ if (c && (j || jt && be)) {
9299
9299
  const ce = {};
9300
9300
  ["status", "statusText", "headers"].forEach((Ft) => {
9301
9301
  ce[Ft] = le[Ft];
@@ -9306,14 +9306,14 @@ const Vr = (e) => {
9306
9306
  ) || [];
9307
9307
  le = new o(
9308
9308
  pr(le.body, ur, ft, () => {
9309
- Ge && Ge(), me && me();
9309
+ Ge && Ge(), be && be();
9310
9310
  }),
9311
9311
  ce
9312
9312
  );
9313
9313
  }
9314
9314
  Q = Q || "text";
9315
9315
  let Qr = await h[l.findKey(h, Q) || "text"](le, f);
9316
- return !jt && me && me(), await new Promise((ce, Se) => {
9316
+ return !jt && be && be(), await new Promise((ce, Se) => {
9317
9317
  Fr(ce, Se, {
9318
9318
  data: Qr,
9319
9319
  headers: Y.from(le.headers),
@@ -9324,7 +9324,7 @@ const Vr = (e) => {
9324
9324
  });
9325
9325
  });
9326
9326
  } catch (oe) {
9327
- throw me && me(), oe && oe.name === "TypeError" && /Load failed|fetch/i.test(oe.message) ? Object.assign(
9327
+ throw be && be(), oe && oe.name === "TypeError" && /Load failed|fetch/i.test(oe.message) ? Object.assign(
9328
9328
  new k("Network Error", k.ERR_NETWORK, f, Me),
9329
9329
  {
9330
9330
  cause: oe.cause || oe
@@ -9548,8 +9548,8 @@ class xe {
9548
9548
  const f = n[h++], v = n[h++];
9549
9549
  try {
9550
9550
  w = f(w);
9551
- } catch (m) {
9552
- v.call(this, m);
9551
+ } catch (b) {
9552
+ v.call(this, b);
9553
9553
  break;
9554
9554
  }
9555
9555
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cal.macconnachie/web-components",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Web components hosted on a CDN",
5
5
  "keywords": [
6
6
  "web-components",