@cal.macconnachie/web-components 2.5.2 → 2.5.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
@@ -319,6 +319,7 @@ export declare class BaseListItem extends BaseElement {
319
319
  private handleTouchStart;
320
320
  private handleTouchMove;
321
321
  private handleTouchEnd;
322
+ private renderActionIcon;
322
323
  private triggerSwipeAction;
323
324
  private handleDesktopActionToggle;
324
325
  private handleDocumentClick;
@@ -625,6 +626,7 @@ export declare interface SwipeAction {
625
626
  icon: string;
626
627
  callback: () => void;
627
628
  color?: string;
629
+ iconColor?: string;
628
630
  label?: string;
629
631
  }
630
632
 
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ const ls = (r) => new Dr(typeof r == "string" ? r : r + "", void 0, Mt), B = (r,
35
35
  for (const i of e.cssRules) t += i.cssText;
36
36
  return ls(t);
37
37
  })(r) : r;
38
- const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: gs, getPrototypeOf: fs } = Object, ut = globalThis, rr = ut.trustedTypes, ms = rr ? rr.emptyScript : "", bs = ut.reactiveElementPolyfillSupport, Ue = (r, e) => r, dt = { toAttribute(r, e) {
38
+ const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: fs, getPrototypeOf: gs } = Object, ut = globalThis, rr = ut.trustedTypes, ms = rr ? rr.emptyScript : "", bs = ut.reactiveElementPolyfillSupport, Ue = (r, e) => r, dt = { toAttribute(r, e) {
39
39
  switch (e) {
40
40
  case Boolean:
41
41
  r = r ? ms : null;
@@ -94,13 +94,13 @@ let Se = class extends HTMLElement {
94
94
  }
95
95
  static _$Ei() {
96
96
  if (this.hasOwnProperty(Ue("elementProperties"))) return;
97
- const e = fs(this);
97
+ const e = gs(this);
98
98
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
99
99
  }
100
100
  static finalize() {
101
101
  if (this.hasOwnProperty(Ue("finalized"))) return;
102
102
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ue("properties"))) {
103
- const t = this.properties, i = [...us(t), ...gs(t)];
103
+ const t = this.properties, i = [...us(t), ...fs(t)];
104
104
  for (const s of i) this.createProperty(s, t[s]);
105
105
  }
106
106
  const e = this[Symbol.metadata];
@@ -248,7 +248,7 @@ let Se = class extends HTMLElement {
248
248
  };
249
249
  Se.elementStyles = [], Se.shadowRootOptions = { mode: "open" }, Se[Ue("elementProperties")] = /* @__PURE__ */ new Map(), Se[Ue("finalized")] = /* @__PURE__ */ new Map(), bs?.({ ReactiveElement: Se }), (ut.reactiveElementVersions ??= []).push("2.1.1");
250
250
  const Lt = globalThis, ht = Lt.trustedTypes, ir = ht ? ht.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Or = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + he, vs = `<${Pr}>`, we = document, Fe = () => we.createComment(""), He = (r) => r === null || typeof r != "object" && typeof r != "function", Bt = Array.isArray, ys = (r) => Bt(r) || typeof r?.[Symbol.iterator] == "function", St = `[
251
- \f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, fe = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
251
+ \f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, ge = 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(), be = we.createTreeWalker(we, 129);
253
253
  function zr(r, e) {
254
254
  if (!Bt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -260,8 +260,8 @@ const xs = (r, e) => {
260
260
  for (let n = 0; n < t; n++) {
261
261
  const l = r[n];
262
262
  let h, c, p = -1, b = 0;
263
- for (; b < l.length && (a.lastIndex = b, c = a.exec(l), c !== null); ) b = a.lastIndex, a === Le ? c[1] === "!--" ? a = or : c[1] !== void 0 ? a = ar : c[2] !== void 0 ? (Rr.test(c[2]) && (s = RegExp("</" + c[2], "g")), a = fe) : c[3] !== void 0 && (a = fe) : a === fe ? c[0] === ">" ? (a = s ?? Le, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, h = c[1], a = c[3] === void 0 ? fe : c[3] === '"' ? lr : nr) : a === lr || a === nr ? a = fe : a === or || a === ar ? a = Le : (a = fe, s = void 0);
264
- const y = a === fe && r[n + 1].startsWith("/>") ? " " : "";
263
+ for (; b < l.length && (a.lastIndex = b, c = a.exec(l), c !== null); ) b = a.lastIndex, a === Le ? c[1] === "!--" ? a = or : c[1] !== void 0 ? a = ar : c[2] !== void 0 ? (Rr.test(c[2]) && (s = RegExp("</" + c[2], "g")), a = ge) : c[3] !== void 0 && (a = ge) : a === ge ? c[0] === ">" ? (a = s ?? Le, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, h = c[1], a = c[3] === void 0 ? ge : c[3] === '"' ? lr : nr) : a === lr || a === nr ? a = ge : a === or || a === ar ? a = Le : (a = ge, s = void 0);
264
+ const y = a === ge && r[n + 1].startsWith("/>") ? " " : "";
265
265
  o += a === Le ? l + vs : p >= 0 ? (i.push(h), l.slice(0, p) + Or + l.slice(p) + he + y) : l + he + (p === -2 ? n : y);
266
266
  }
267
267
  return [zr(r, o + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
@@ -280,7 +280,7 @@ class je {
280
280
  if (s.nodeType === 1) {
281
281
  if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Or)) {
282
282
  const b = c[a++], y = s.getAttribute(p).split(he), g = /([.?@])?(.*)/.exec(b);
283
- l.push({ type: 1, index: o, name: g[2], strings: y, ctor: g[1] === "." ? ks : g[1] === "?" ? Ss : g[1] === "@" ? _s : gt }), s.removeAttribute(p);
283
+ l.push({ type: 1, index: o, name: g[2], strings: y, ctor: g[1] === "." ? ks : g[1] === "?" ? Ss : g[1] === "@" ? _s : ft }), s.removeAttribute(p);
284
284
  } else p.startsWith(he) && (l.push({ type: 6, index: o }), s.removeAttribute(p));
285
285
  if (Rr.test(s.tagName)) {
286
286
  const p = s.textContent.split(he), b = p.length - 1;
@@ -396,7 +396,7 @@ class Ce {
396
396
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
397
397
  }
398
398
  }
399
- class gt {
399
+ class ft {
400
400
  get tagName() {
401
401
  return this.element.tagName;
402
402
  }
@@ -421,7 +421,7 @@ class gt {
421
421
  e === k ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
422
422
  }
423
423
  }
424
- class ks extends gt {
424
+ class ks extends ft {
425
425
  constructor() {
426
426
  super(...arguments), this.type = 3;
427
427
  }
@@ -429,7 +429,7 @@ class ks extends gt {
429
429
  this.element[this.name] = e === k ? void 0 : e;
430
430
  }
431
431
  }
432
- class Ss extends gt {
432
+ class Ss extends ft {
433
433
  constructor() {
434
434
  super(...arguments), this.type = 4;
435
435
  }
@@ -437,7 +437,7 @@ class Ss extends gt {
437
437
  this.element.toggleAttribute(this.name, !!e && e !== k);
438
438
  }
439
439
  }
440
- class _s extends gt {
440
+ class _s extends ft {
441
441
  constructor(e, t, i, s, o) {
442
442
  super(e, t, i, s, o), this.type = 5;
443
443
  }
@@ -5211,7 +5211,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
5211
5211
  <path class="cls-1" d="M28.72,29.53l-.06-10.01c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-2,.91-1.99,2.01l.06,9.81c-4.04.77-7.11,4.33-7.11,8.59s3.12,7.88,7.21,8.61l.15,23.93c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.15-24.12c3.64-1.07,6.28-4.44,6.28-8.39s-2.68-7.38-6.38-8.41ZM26.68,42.68c-.11,0-.22.02-.33.02-2.61,0-4.74-2.13-4.74-4.75s2.13-4.75,4.74-4.75h.04c.08,0,.15.01.23.02,2.51.13,4.48,2.21,4.48,4.73s-1.94,4.57-4.42,4.73Z"/>
5212
5212
  <path class="cls-1" d="M47.24,49.24l-.18-29.72c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-2,.91-1.99,2.01l.18,29.84c-3.74,1.01-6.45,4.4-6.45,8.44s2.76,7.5,6.55,8.46l.03,4.19c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.03-4.07c3.96-.83,6.95-4.35,6.95-8.56s-3.04-7.79-7.05-8.58ZM45.53,62.57s-.09,0-.13,0c-2.58-.08-4.6-2.16-4.6-4.74s2-4.63,4.54-4.74c.04,0,.16,0,.21,0,2.62,0,4.75,2.13,4.75,4.75s-2.12,4.74-4.76,4.75Z"/>
5213
5213
  <path class="cls-1" d="M72.4,35.93c0-4.18-2.95-7.68-6.87-8.54l-.05-7.87c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-1.99.91-1.99,2.01l.05,7.91c-3.8.95-6.63,4.41-6.63,8.48s2.87,7.57,6.73,8.5l.15,26.04c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.15-26c3.87-.9,6.77-4.37,6.77-8.52ZM63.63,40.68c-2.61-.01-4.73-2.14-4.73-4.75s2.09-4.71,4.67-4.74c.05,0,.11,0,.16,0,2.58.04,4.67,2.16,4.67,4.75s-2.13,4.75-4.77,4.75Z"/>
5214
- </svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
5214
+ </svg>`, fi = `<?xml version="1.0" encoding="UTF-8"?>
5215
5215
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
5216
5216
  <defs>
5217
5217
  <style>
@@ -5221,7 +5221,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
5221
5221
  </style>
5222
5222
  </defs>
5223
5223
  <path class="cls-1" d="M66.9,75.38h-10.67c-2.06,0-3.74-1.68-3.74-3.74v-13.62c0-1.6-1.3-2.91-2.91-2.91h-8.19c-1.6,0-2.91,1.31-2.91,2.91v13.62c0,2.06-1.68,3.74-3.74,3.74h-10.67c-1.92,0-3.48-1.56-3.48-3.48v-28.1h-5.25c-1.01,0-1.92-.6-2.3-1.54s-.17-2,.54-2.72l29.45-29.45c.66-.66,1.53-1.02,2.46-1.02h.02c.93,0,1.8.37,2.45,1.03l29.43,29.43c.72.72.93,1.78.54,2.72s-1.29,1.54-2.3,1.54h-5.25v28.1c0,1.92-1.56,3.48-3.48,3.48ZM56.49,71.38h9.89v-29.58c0-1.1.9-2,2-2h3.61l-26.51-26.51-26.51,26.51h3.61c1.1,0,2,.9,2,2v29.58h9.89v-13.36c0-3.81,3.1-6.91,6.91-6.91h8.19c3.81,0,6.91,3.1,6.91,6.91v13.36ZM74.57,42.37h0,0ZM45.12,12.93h0s0,0,0,0Z"/>
5224
- </svg>`, fi = `<?xml version="1.0" encoding="UTF-8"?>
5224
+ </svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
5225
5225
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
5226
5226
  <defs>
5227
5227
  <style>
@@ -5355,7 +5355,7 @@ class Tt extends Ft {
5355
5355
  }
5356
5356
  Tt.directiveName = "unsafeHTML", Tt.resultType = 1;
5357
5357
  const Ir = qt(Tt);
5358
- var Ai = Object.defineProperty, ft = (r, e, t, i) => {
5358
+ var Ai = Object.defineProperty, gt = (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
5361
  return s && Ai(e, t, s), s;
@@ -5371,8 +5371,8 @@ const Ci = /* @__PURE__ */ Object.assign({
5371
5371
  "../../public/icons/external-link.svg": hi,
5372
5372
  "../../public/icons/file-cabinet.svg": pi,
5373
5373
  "../../public/icons/filters.svg": ui,
5374
- "../../public/icons/house.svg": gi,
5375
- "../../public/icons/moon.svg": fi,
5374
+ "../../public/icons/house.svg": fi,
5375
+ "../../public/icons/moon.svg": gi,
5376
5376
  "../../public/icons/open-email.svg": mi,
5377
5377
  "../../public/icons/paperclip.svg": bi,
5378
5378
  "../../public/icons/reply.svg": vi,
@@ -5447,16 +5447,16 @@ class Te extends M {
5447
5447
  `;
5448
5448
  }
5449
5449
  }
5450
- ft([
5450
+ gt([
5451
5451
  u({ type: String })
5452
5452
  ], Te.prototype, "name");
5453
- ft([
5453
+ gt([
5454
5454
  u({ type: String })
5455
5455
  ], Te.prototype, "size");
5456
- ft([
5456
+ gt([
5457
5457
  u({ type: String })
5458
5458
  ], Te.prototype, "color");
5459
- ft([
5459
+ gt([
5460
5460
  w()
5461
5461
  ], Te.prototype, "svgContent");
5462
5462
  var Ti = Object.defineProperty, te = (r, e, t, i) => {
@@ -5869,6 +5869,7 @@ class G extends M {
5869
5869
  display: flex;
5870
5870
  align-items: stretch;
5871
5871
  z-index: 0;
5872
+ width: 100px;
5872
5873
  }
5873
5874
 
5874
5875
  .swipe-actions--left {
@@ -5889,13 +5890,12 @@ class G extends M {
5889
5890
  gap: var(--space-1);
5890
5891
  padding: 0 var(--space-6);
5891
5892
  border: none;
5892
- color: white;
5893
5893
  cursor: pointer;
5894
5894
  transition: all var(--transition-fast);
5895
5895
  font-family: var(--font-family-sans);
5896
5896
  font-size: var(--font-size-xs);
5897
5897
  font-weight: var(--font-weight-medium);
5898
- min-width: 80px;
5898
+ width: 100%;
5899
5899
  }
5900
5900
 
5901
5901
  .swipe-action-button:active {
@@ -5907,13 +5907,11 @@ class G extends M {
5907
5907
  position: absolute;
5908
5908
  top: 50%;
5909
5909
  transform: translateY(-50%);
5910
- color: var(--color-text-muted);
5911
5910
  width: 18px;
5912
5911
  height: 18px;
5913
5912
  border: none;
5914
5913
  border-radius: 50%;
5915
5914
  background: none;
5916
- background-color: none;
5917
5915
  cursor: pointer;
5918
5916
  display: flex;
5919
5917
  align-items: center;
@@ -5925,6 +5923,7 @@ class G extends M {
5925
5923
  font-size: 18px;
5926
5924
  line-height: 1;
5927
5925
  padding: 0;
5926
+ color: var(--color-text-muted);
5928
5927
  }
5929
5928
 
5930
5929
  .desktop-plus-icon--left {
@@ -6096,6 +6095,16 @@ class G extends M {
6096
6095
  this.swipeOffset = 0;
6097
6096
  });
6098
6097
  }
6098
+ renderActionIcon(e, t = "24px") {
6099
+ return e.icon.includes("<") ? f`<span
6100
+ style="display: inline-flex; width: ${t}; height: ${t}; color: inherit;"
6101
+ .innerHTML=${e.icon}
6102
+ ></span>` : f`<base-icon
6103
+ name=${e.icon}
6104
+ size=${t}
6105
+ color="currentColor"
6106
+ ></base-icon>`;
6107
+ }
6099
6108
  triggerSwipeAction(e) {
6100
6109
  e.callback(), this.dispatchEvent(
6101
6110
  new CustomEvent("swipe-action", {
@@ -6133,14 +6142,10 @@ class G extends M {
6133
6142
  <div class="swipe-actions swipe-actions--left">
6134
6143
  <button
6135
6144
  class="swipe-action-button"
6136
- style="background-color: ${this.leftSwipeAction.color || "var(--color-success)"}"
6145
+ style="background-color: ${this.leftSwipeAction.color || "var(--color-success)"}; color: ${this.leftSwipeAction.iconColor || "white"}"
6137
6146
  @click=${() => this.triggerSwipeAction(this.leftSwipeAction)}
6138
6147
  >
6139
- <base-icon
6140
- name=${this.leftSwipeAction.icon}
6141
- size="24px"
6142
- color="white"
6143
- ></base-icon>
6148
+ ${this.renderActionIcon(this.leftSwipeAction, "24px")}
6144
6149
  ${this.leftSwipeAction.label ? f`<span>${this.leftSwipeAction.label}</span>` : ""}
6145
6150
  </button>
6146
6151
  </div>
@@ -6150,14 +6155,10 @@ class G extends M {
6150
6155
  <div class="swipe-actions swipe-actions--right">
6151
6156
  <button
6152
6157
  class="swipe-action-button"
6153
- style="background-color: ${this.rightSwipeAction.color || "var(--color-error)"}"
6158
+ style="background-color: ${this.rightSwipeAction.color || "var(--color-error)"}; color: ${this.rightSwipeAction.iconColor || "white"}"
6154
6159
  @click=${() => this.triggerSwipeAction(this.rightSwipeAction)}
6155
6160
  >
6156
- <base-icon
6157
- name=${this.rightSwipeAction.icon}
6158
- size="24px"
6159
- color="white"
6160
- ></base-icon>
6161
+ ${this.renderActionIcon(this.rightSwipeAction, "24px")}
6161
6162
  ${this.rightSwipeAction.label ? f`<span>${this.rightSwipeAction.label}</span>` : ""}
6162
6163
  </button>
6163
6164
  </div>
@@ -9283,11 +9284,11 @@ function Dt() {
9283
9284
  }
9284
9285
  const po = (r, e, t, { allOwnKeys: i } = {}) => (Ge(e, (s, o) => {
9285
9286
  t && W(s) ? r[o] = Br(s, t) : r[o] = s;
9286
- }, { allOwnKeys: i }), r), uo = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), go = (r, e, t, i) => {
9287
+ }, { allOwnKeys: i }), r), uo = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), fo = (r, e, t, i) => {
9287
9288
  r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, Object.defineProperty(r, "super", {
9288
9289
  value: e.prototype
9289
9290
  }), t && Object.assign(r.prototype, t);
9290
- }, fo = (r, e, t, i) => {
9291
+ }, go = (r, e, t, i) => {
9291
9292
  let s, o, a;
9292
9293
  const n = {};
9293
9294
  if (e = e || {}, r == null) return e;
@@ -9418,8 +9419,8 @@ const To = (r) => {
9418
9419
  extend: po,
9419
9420
  trim: ho,
9420
9421
  stripBOM: uo,
9421
- inherits: go,
9422
- toFlatObject: fo,
9422
+ inherits: fo,
9423
+ toFlatObject: go,
9423
9424
  kindOf: vt,
9424
9425
  kindOfTest: se,
9425
9426
  endsWith: mo,
@@ -9506,7 +9507,7 @@ function Ot(r) {
9506
9507
  function Wr(r) {
9507
9508
  return d.endsWith(r, "[]") ? r.slice(0, -2) : r;
9508
9509
  }
9509
- function gr(r, e, t) {
9510
+ function fr(r, e, t) {
9510
9511
  return r ? r.concat(e).map(function(s, o) {
9511
9512
  return s = Wr(s), !t && o ? "[" + s + "]" : s;
9512
9513
  }).join(t ? "." : "") : e;
@@ -9549,12 +9550,12 @@ function wt(r, e, t) {
9549
9550
  return v = Wr(v), x.forEach(function(A, T) {
9550
9551
  !(d.isUndefined(A) || A === null) && e.append(
9551
9552
  // eslint-disable-next-line no-nested-ternary
9552
- a === !0 ? gr([v], T, o) : a === null ? v : v + "[]",
9553
+ a === !0 ? fr([v], T, o) : a === null ? v : v + "[]",
9553
9554
  h(A)
9554
9555
  );
9555
9556
  }), !1;
9556
9557
  }
9557
- return Ot(g) ? !0 : (e.append(gr(m, v, o), h(g)), !1);
9558
+ return Ot(g) ? !0 : (e.append(fr(m, v, o), h(g)), !1);
9558
9559
  }
9559
9560
  const p = [], b = Object.assign(Io, {
9560
9561
  defaultVisitor: c,
@@ -9580,7 +9581,7 @@ function wt(r, e, t) {
9580
9581
  throw new TypeError("data must be an object");
9581
9582
  return y(r), e;
9582
9583
  }
9583
- function fr(r) {
9584
+ function gr(r) {
9584
9585
  const e = {
9585
9586
  "!": "%21",
9586
9587
  "'": "%27",
@@ -9603,8 +9604,8 @@ Kr.append = function(e, t) {
9603
9604
  };
9604
9605
  Kr.toString = function(e) {
9605
9606
  const t = e ? function(i) {
9606
- return e.call(this, i, fr);
9607
- } : fr;
9607
+ return e.call(this, i, gr);
9608
+ } : gr;
9608
9609
  return this._pairs.map(function(s) {
9609
9610
  return t(s[0]) + "=" + t(s[1]);
9610
9611
  }, "").join("&");
@@ -10323,9 +10324,9 @@ const rs = (r) => {
10323
10324
  for (; i < t; )
10324
10325
  s = i + e, yield r.slice(i, s), i = s;
10325
10326
  }, ua = async function* (r, e) {
10326
- for await (const t of ga(r))
10327
+ for await (const t of fa(r))
10327
10328
  yield* pa(t, e);
10328
- }, ga = async function* (r) {
10329
+ }, fa = async function* (r) {
10329
10330
  if (r[Symbol.asyncIterator]) {
10330
10331
  yield* r;
10331
10332
  return;
@@ -10370,7 +10371,7 @@ const rs = (r) => {
10370
10371
  }, {
10371
10372
  highWaterMark: 2
10372
10373
  });
10373
- }, $r = 64 * 1024, { isFunction: ot } = d, fa = (({ Request: r, Response: e }) => ({
10374
+ }, $r = 64 * 1024, { isFunction: ot } = d, ga = (({ Request: r, Response: e }) => ({
10374
10375
  Request: r,
10375
10376
  Response: e
10376
10377
  }))(d.global), {
@@ -10385,7 +10386,7 @@ const rs = (r) => {
10385
10386
  }, ma = (r) => {
10386
10387
  r = d.merge.call({
10387
10388
  skipUndefined: !0
10388
- }, fa, r);
10389
+ }, ga, r);
10389
10390
  const { fetch: e, Request: t, Response: i } = r, s = e ? ot(e) : typeof fetch == "function", o = ot(t), a = ot(i);
10390
10391
  if (!s)
10391
10392
  return !1;
@@ -10445,7 +10446,7 @@ const rs = (r) => {
10445
10446
  } = rs(g), Kt = e || fetch;
10446
10447
  X = X ? (X + "").toLowerCase() : "text";
10447
10448
  let rt = ha([_, A && A.toAbortSignal()], T), Ie = null;
10448
- const ge = rt && rt.unsubscribe && (() => {
10449
+ const fe = rt && rt.unsubscribe && (() => {
10449
10450
  rt.unsubscribe();
10450
10451
  });
10451
10452
  let Jt;
@@ -10477,7 +10478,7 @@ const rs = (r) => {
10477
10478
  Ie = o && new t(v, Xt);
10478
10479
  let ce = await (o ? Kt(Ie, Wt) : Kt(v, Xt));
10479
10480
  const Qt = c && (X === "stream" || X === "response");
10480
- if (c && (N || Qt && ge)) {
10481
+ if (c && (N || Qt && fe)) {
10481
10482
  const de = {};
10482
10483
  ["status", "statusText", "headers"].forEach((Gt) => {
10483
10484
  de[Gt] = ce[Gt];
@@ -10488,14 +10489,14 @@ const rs = (r) => {
10488
10489
  ) || [];
10489
10490
  ce = new i(
10490
10491
  xr(ce.body, $r, kt, () => {
10491
- st && st(), ge && ge();
10492
+ st && st(), fe && fe();
10492
10493
  }),
10493
10494
  de
10494
10495
  );
10495
10496
  }
10496
10497
  X = X || "text";
10497
10498
  let ns = await p[d.findKey(p, X) || "text"](ce, g);
10498
- return !Qt && ge && ge(), await new Promise((de, ke) => {
10499
+ return !Qt && fe && fe(), await new Promise((de, ke) => {
10499
10500
  es(de, ke, {
10500
10501
  data: ns,
10501
10502
  headers: K.from(ce.headers),
@@ -10506,7 +10507,7 @@ const rs = (r) => {
10506
10507
  });
10507
10508
  });
10508
10509
  } catch (ie) {
10509
- throw ge && ge(), ie && ie.name === "TypeError" && /Load failed|fetch/i.test(ie.message) ? Object.assign(
10510
+ throw fe && fe(), ie && ie.name === "TypeError" && /Load failed|fetch/i.test(ie.message) ? Object.assign(
10510
10511
  new $("Network Error", $.ERR_NETWORK, g, Ie),
10511
10512
  {
10512
10513
  cause: ie.cause || ie
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cal.macconnachie/web-components",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "description": "Web components hosted on a CDN",
5
5
  "keywords": [
6
6
  "web-components",