@citizenplane/pimp 8.4.1 → 8.4.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.
package/dist/pimp.es.js CHANGED
@@ -206,33 +206,33 @@ const on = /* @__PURE__ */ new WeakMap(), xi = (t) => {
206
206
  document.body.removeEventListener("click", t.clickOutsideEvent);
207
207
  }
208
208
  };
209
- class Pe extends Error {
209
+ class ze extends Error {
210
210
  }
211
- class Si extends Pe {
211
+ class Si extends ze {
212
212
  constructor(e) {
213
213
  super(`Invalid DateTime: ${e.toMessage()}`);
214
214
  }
215
215
  }
216
- class Di extends Pe {
216
+ class Di extends ze {
217
217
  constructor(e) {
218
218
  super(`Invalid Interval: ${e.toMessage()}`);
219
219
  }
220
220
  }
221
- class ki extends Pe {
221
+ class ki extends ze {
222
222
  constructor(e) {
223
223
  super(`Invalid Duration: ${e.toMessage()}`);
224
224
  }
225
225
  }
226
- class Ze extends Pe {
226
+ class Ze extends ze {
227
227
  }
228
- class Fr extends Pe {
228
+ class Fr extends ze {
229
229
  constructor(e) {
230
230
  super(`Invalid unit ${e}`);
231
231
  }
232
232
  }
233
- class se extends Pe {
233
+ class se extends ze {
234
234
  }
235
- class Ie extends Pe {
235
+ class Ie extends ze {
236
236
  constructor() {
237
237
  super("Zone is an abstract class");
238
238
  }
@@ -1005,7 +1005,7 @@ function Ce(t, e) {
1005
1005
  const n = t.toLowerCase();
1006
1006
  return n === "default" ? e : n === "local" || n === "system" ? Nt.instance : n === "utc" || n === "gmt" ? ne.utcInstance : ne.parseSpecifier(n) || Oe.create(t);
1007
1007
  } else
1008
- return Le(t) ? ne.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new Ui(t);
1008
+ return Pe(t) ? ne.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new Ui(t);
1009
1009
  }
1010
1010
  let Yn = () => Date.now(), qn = "system", Gn = null, Jn = null, Kn = null, Qn = 60, Xn, er = null;
1011
1011
  class U {
@@ -1233,7 +1233,7 @@ function os(t) {
1233
1233
  function j(t) {
1234
1234
  return typeof t > "u";
1235
1235
  }
1236
- function Le(t) {
1236
+ function Pe(t) {
1237
1237
  return typeof t == "number";
1238
1238
  }
1239
1239
  function Ft(t) {
@@ -1992,7 +1992,7 @@ const lr = "Invalid Duration", Ms = {
1992
1992
  milliseconds: 30 * 24 * 60 * 60 * 1e3
1993
1993
  },
1994
1994
  ...Ms
1995
- }, ce = 146097 / 400, $e = 146097 / 4800, Ga = {
1995
+ }, ce = 146097 / 400, He = 146097 / 4800, Ga = {
1996
1996
  years: {
1997
1997
  quarters: 4,
1998
1998
  months: 12,
@@ -2013,15 +2013,15 @@ const lr = "Invalid Duration", Ms = {
2013
2013
  milliseconds: ce * 24 * 60 * 60 * 1e3 / 4
2014
2014
  },
2015
2015
  months: {
2016
- weeks: $e / 7,
2017
- days: $e,
2018
- hours: $e * 24,
2019
- minutes: $e * 24 * 60,
2020
- seconds: $e * 24 * 60 * 60,
2021
- milliseconds: $e * 24 * 60 * 60 * 1e3
2016
+ weeks: He / 7,
2017
+ days: He,
2018
+ hours: He * 24,
2019
+ minutes: He * 24 * 60,
2020
+ seconds: He * 24 * 60 * 60,
2021
+ milliseconds: He * 24 * 60 * 60 * 1e3
2022
2022
  },
2023
2023
  ...Ms
2024
- }, Re = [
2024
+ }, Le = [
2025
2025
  "years",
2026
2026
  "quarters",
2027
2027
  "months",
@@ -2031,7 +2031,7 @@ const lr = "Invalid Duration", Ms = {
2031
2031
  "minutes",
2032
2032
  "seconds",
2033
2033
  "milliseconds"
2034
- ], Ja = Re.slice(0).reverse();
2034
+ ], Ja = Le.slice(0).reverse();
2035
2035
  function Te(t, e, n = !1) {
2036
2036
  const s = {
2037
2037
  values: n ? e.values : { ...t.values, ...e.values || {} },
@@ -2049,7 +2049,7 @@ function Os(t, e) {
2049
2049
  }
2050
2050
  function cr(t, e) {
2051
2051
  const n = Os(t, e) < 0 ? -1 : 1;
2052
- Re.reduceRight((s, r) => {
2052
+ Le.reduceRight((s, r) => {
2053
2053
  if (j(e[r]))
2054
2054
  return s;
2055
2055
  if (s) {
@@ -2057,7 +2057,7 @@ function cr(t, e) {
2057
2057
  e[r] += l * n, e[s] -= l * a * n;
2058
2058
  }
2059
2059
  return r;
2060
- }, null), Re.reduce((s, r) => {
2060
+ }, null), Le.reduce((s, r) => {
2061
2061
  if (j(e[r]))
2062
2062
  return s;
2063
2063
  if (s) {
@@ -2137,7 +2137,7 @@ class V {
2137
2137
  * @return {Duration}
2138
2138
  */
2139
2139
  static fromDurationLike(e) {
2140
- if (Le(e))
2140
+ if (Pe(e))
2141
2141
  return V.fromMillis(e);
2142
2142
  if (V.isDuration(e))
2143
2143
  return e;
@@ -2296,7 +2296,7 @@ class V {
2296
2296
  toHuman(e = {}) {
2297
2297
  if (!this.isValid)
2298
2298
  return lr;
2299
- const n = Re.map((s) => {
2299
+ const n = Le.map((s) => {
2300
2300
  const r = this.values[s];
2301
2301
  return j(r) ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...e, unit: s.slice(0, -1) }).format(r);
2302
2302
  }).filter((s) => s);
@@ -2399,7 +2399,7 @@ class V {
2399
2399
  if (!this.isValid)
2400
2400
  return this;
2401
2401
  const n = V.fromDurationLike(e), s = {};
2402
- for (const r of Re)
2402
+ for (const r of Le)
2403
2403
  (Je(n.values, r) || Je(this.values, r)) && (s[r] = n.get(r) + this.get(r));
2404
2404
  return Te(this, { values: s }, !0);
2405
2405
  }
@@ -2518,17 +2518,17 @@ class V {
2518
2518
  e = e.map((a) => V.normalizeUnit(a));
2519
2519
  const n = {}, s = {}, r = this.toObject();
2520
2520
  let i;
2521
- for (const a of Re)
2521
+ for (const a of Le)
2522
2522
  if (e.indexOf(a) >= 0) {
2523
2523
  i = a;
2524
2524
  let l = 0;
2525
2525
  for (const c in s)
2526
2526
  l += this.matrix[c][a] * s[c], s[c] = 0;
2527
- Le(r[a]) && (l += r[a]);
2527
+ Pe(r[a]) && (l += r[a]);
2528
2528
  const o = Math.trunc(l);
2529
2529
  n[a] = o, s[a] = (l * 1e3 - o * 1e3) / 1e3;
2530
2530
  } else
2531
- Le(r[a]) && (s[a] = r[a]);
2531
+ Pe(r[a]) && (s[a] = r[a]);
2532
2532
  for (const a in s)
2533
2533
  s[a] !== 0 && (n[i] += a === i ? s[a] : s[a] / this.matrix[i][a]);
2534
2534
  return cr(this.matrix, n), Te(this, { values: n }, !0);
@@ -2660,13 +2660,13 @@ class V {
2660
2660
  function n(s, r) {
2661
2661
  return s === void 0 || s === 0 ? r === void 0 || r === 0 : s === r;
2662
2662
  }
2663
- for (const s of Re)
2663
+ for (const s of Le)
2664
2664
  if (!n(this.values[s], e.values[s]))
2665
2665
  return !1;
2666
2666
  return !0;
2667
2667
  }
2668
2668
  }
2669
- const He = "Invalid Interval";
2669
+ const Ue = "Invalid Interval";
2670
2670
  function Qa(t, e) {
2671
2671
  return !t || !t.isValid ? $.invalid("missing or invalid start") : !e || !e.isValid ? $.invalid("missing or invalid end") : e < t ? $.invalid(
2672
2672
  "end before start",
@@ -3028,7 +3028,7 @@ class $ {
3028
3028
  * @return {string}
3029
3029
  */
3030
3030
  toString() {
3031
- return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` : He;
3031
+ return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` : Ue;
3032
3032
  }
3033
3033
  /**
3034
3034
  * Returns a string representation of this Interval appropriate for the REPL.
@@ -3056,7 +3056,7 @@ class $ {
3056
3056
  * @return {string}
3057
3057
  */
3058
3058
  toLocaleString(e = Tt, n = {}) {
3059
- return this.isValid ? X.create(this.s.loc.clone(n), e).formatInterval(this) : He;
3059
+ return this.isValid ? X.create(this.s.loc.clone(n), e).formatInterval(this) : Ue;
3060
3060
  }
3061
3061
  /**
3062
3062
  * Returns an ISO 8601-compliant string representation of this Interval.
@@ -3065,7 +3065,7 @@ class $ {
3065
3065
  * @return {string}
3066
3066
  */
3067
3067
  toISO(e) {
3068
- return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : He;
3068
+ return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : Ue;
3069
3069
  }
3070
3070
  /**
3071
3071
  * Returns an ISO 8601-compliant string representation of date of this Interval.
@@ -3074,7 +3074,7 @@ class $ {
3074
3074
  * @return {string}
3075
3075
  */
3076
3076
  toISODate() {
3077
- return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : He;
3077
+ return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : Ue;
3078
3078
  }
3079
3079
  /**
3080
3080
  * Returns an ISO 8601-compliant string representation of time of this Interval.
@@ -3084,7 +3084,7 @@ class $ {
3084
3084
  * @return {string}
3085
3085
  */
3086
3086
  toISOTime(e) {
3087
- return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` : He;
3087
+ return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` : Ue;
3088
3088
  }
3089
3089
  /**
3090
3090
  * Returns a string representation of this Interval formatted according to the specified format
@@ -3098,7 +3098,7 @@ class $ {
3098
3098
  * @return {string}
3099
3099
  */
3100
3100
  toFormat(e, { separator: n = " – " } = {}) {
3101
- return this.isValid ? `${this.s.toFormat(e)}${n}${this.e.toFormat(e)}` : He;
3101
+ return this.isValid ? `${this.s.toFormat(e)}${n}${this.e.toFormat(e)}` : Ue;
3102
3102
  }
3103
3103
  /**
3104
3104
  * Return a Duration representing the time spanned by this interval.
@@ -4000,7 +4000,7 @@ class b {
4000
4000
  * @return {DateTime}
4001
4001
  */
4002
4002
  static fromMillis(e, n = {}) {
4003
- if (Le(e))
4003
+ if (Pe(e))
4004
4004
  return e < -pr || e > pr ? b.invalid("Timestamp out of range") : new b({
4005
4005
  ts: e,
4006
4006
  zone: Ce(n.zone, U.defaultZone),
@@ -4021,7 +4021,7 @@ class b {
4021
4021
  * @return {DateTime}
4022
4022
  */
4023
4023
  static fromSeconds(e, n = {}) {
4024
- if (Le(e))
4024
+ if (Pe(e))
4025
4025
  return new b({
4026
4026
  ts: e * 1e3,
4027
4027
  zone: Ce(n.zone, U.defaultZone),
@@ -5384,7 +5384,7 @@ class b {
5384
5384
  function at(t) {
5385
5385
  if (b.isDateTime(t))
5386
5386
  return t;
5387
- if (t && t.valueOf && Le(t.valueOf()))
5387
+ if (t && t.valueOf && Pe(t.valueOf()))
5388
5388
  return b.fromJSDate(t);
5389
5389
  if (t && typeof t == "object")
5390
5390
  return b.fromObject(t);
@@ -6617,7 +6617,7 @@ var zs = { exports: {} };
6617
6617
  ), w = y.IteratorPrototype, g = y.BUGGY_SAFARI_ITERATORS, m = h("iterator"), v = "keys", M = "values", E = "entries", _ = function() {
6618
6618
  return this;
6619
6619
  };
6620
- n.exports = function(C, P, G, R, ee, ze, re) {
6620
+ n.exports = function(C, P, G, R, ee, We, re) {
6621
6621
  a(G, P, R);
6622
6622
  var _e = function(fe) {
6623
6623
  if (fe === ee && ie)
@@ -6641,13 +6641,13 @@ var zs = { exports: {} };
6641
6641
  return function() {
6642
6642
  return new G(this);
6643
6643
  };
6644
- }, We = P + " Iterator", rt = !1, Q = C.prototype, le = Q[m] || Q["@@iterator"] || ee && Q[ee], ie = !g && le || _e(ee), st = P == "Array" && Q.entries || le, be, je, we;
6645
- if (st && (be = l(st.call(new C())), w !== Object.prototype && be.next && (!p && l(be) !== w && (o ? o(be, w) : typeof be[m] != "function" && u(be, m, _)), c(be, We, !0, !0), p && (f[We] = _))), ee == M && le && le.name !== M && (rt = !0, ie = function() {
6644
+ }, Be = P + " Iterator", rt = !1, Q = C.prototype, le = Q[m] || Q["@@iterator"] || ee && Q[ee], ie = !g && le || _e(ee), st = P == "Array" && Q.entries || le, be, je, we;
6645
+ if (st && (be = l(st.call(new C())), w !== Object.prototype && be.next && (!p && l(be) !== w && (o ? o(be, w) : typeof be[m] != "function" && u(be, m, _)), c(be, Be, !0, !0), p && (f[Be] = _))), ee == M && le && le.name !== M && (rt = !0, ie = function() {
6646
6646
  return le.call(this);
6647
6647
  }), (!p || re) && Q[m] !== ie && u(Q, m, ie), f[P] = ie, ee)
6648
6648
  if (je = {
6649
6649
  values: _e(M),
6650
- keys: ze ? ie : _e(v),
6650
+ keys: We ? ie : _e(v),
6651
6651
  entries: _e(E)
6652
6652
  }, re)
6653
6653
  for (we in je)
@@ -10416,19 +10416,19 @@ function B(t) {
10416
10416
  G && (R = Wt(P, function(ii) {
10417
10417
  return m < ii.end;
10418
10418
  })[0] || R);
10419
- for (var ee = De(m - R.start - R.delay, 0, R.duration) / R.duration, ze = isNaN(ee) ? 1 : R.easing(ee), re = R.to.strings, _e = R.round, We = [], rt = R.to.numbers.length, Q = void 0, le = 0; le < rt; le++) {
10419
+ for (var ee = De(m - R.start - R.delay, 0, R.duration) / R.duration, We = isNaN(ee) ? 1 : R.easing(ee), re = R.to.strings, _e = R.round, Be = [], rt = R.to.numbers.length, Q = void 0, le = 0; le < rt; le++) {
10420
10420
  var ie = void 0, st = R.to.numbers[le], be = R.from.numbers[le] || 0;
10421
- R.isPath ? ie = Fc(R.value, ze * st, R.isPathTargetInsideSVG) : ie = be + ze * (st - be), _e && (R.isColor && le > 2 || (ie = Math.round(ie * _e) / _e)), We.push(ie);
10421
+ R.isPath ? ie = Fc(R.value, We * st, R.isPathTargetInsideSVG) : ie = be + We * (st - be), _e && (R.isColor && le > 2 || (ie = Math.round(ie * _e) / _e)), Be.push(ie);
10422
10422
  }
10423
10423
  var je = re.length;
10424
10424
  if (!je)
10425
- Q = We[0];
10425
+ Q = Be[0];
10426
10426
  else {
10427
10427
  Q = re[0];
10428
10428
  for (var we = 0; we < je; we++) {
10429
10429
  re[we];
10430
- var fe = re[we + 1], Be = We[we];
10431
- isNaN(Be) || (fe ? Q += Be + fe : Q += Be + " ");
10430
+ var fe = re[we + 1], $e = Be[we];
10431
+ isNaN($e) || (fe ? Q += $e + fe : Q += $e + " ");
10432
10432
  }
10433
10433
  }
10434
10434
  Xs[_.type](C.target, _.property, Q, C.transforms), _.currentValue = Q, v++;
@@ -10508,8 +10508,8 @@ function Zc(t, e) {
10508
10508
  return i ? re < 0 ? re * -1 : -re : Math.abs(w - re);
10509
10509
  }));
10510
10510
  }
10511
- var ze = u ? (h - d) / w : d;
10512
- return f + ze * (Math.round(y[m] * 100) / 100) + p;
10511
+ var We = u ? (h - d) / w : d;
10512
+ return f + We * (Math.round(y[m] * 100) / 100) + p;
10513
10513
  };
10514
10514
  }
10515
10515
  function Yc(t) {
@@ -11522,7 +11522,7 @@ function sd(t, e, n, s, r, i) {
11522
11522
  ])
11523
11523
  ]);
11524
11524
  }
11525
- const id = /* @__PURE__ */ Y(Qu, [["render", sd]]), tn = 100, Ue = {
11525
+ const id = /* @__PURE__ */ Y(Qu, [["render", sd]]), tn = 100, Re = {
11526
11526
  GROUP_BY: "groupBy",
11527
11527
  FULL_WIDTH: "fullWidth",
11528
11528
  IS_SELECTED: "isSelected"
@@ -11618,7 +11618,7 @@ const id = /* @__PURE__ */ Y(Qu, [["render", sd]]), tn = 100, Ue = {
11618
11618
  return this.normalizedColumns.length;
11619
11619
  },
11620
11620
  hasGroupBy() {
11621
- return this.data.length ? this.data.some((t) => Ue.GROUP_BY in t) : !1;
11621
+ return this.data.length ? this.data.some((t) => Re.GROUP_BY in t) : !1;
11622
11622
  },
11623
11623
  columnsFromRows() {
11624
11624
  if (!this.data.length)
@@ -11637,7 +11637,7 @@ const id = /* @__PURE__ */ Y(Qu, [["render", sd]]), tn = 100, Ue = {
11637
11637
  },
11638
11638
  flattenedRows() {
11639
11639
  return this.data ? this.hasGroupBy ? this.data.reduce((t, e) => {
11640
- const n = { [Ue.FULL_WIDTH]: e.groupBy };
11640
+ const n = { [Re.FULL_WIDTH]: e.groupBy };
11641
11641
  return [...t, n, ...e.rows];
11642
11642
  }, []) : this.data : [];
11643
11643
  },
@@ -11769,10 +11769,10 @@ const id = /* @__PURE__ */ Y(Qu, [["render", sd]]), tn = 100, Ue = {
11769
11769
  textAlign: t.textAlign
11770
11770
  };
11771
11771
  },
11772
- getCellStyle(t) {
11773
- var e;
11774
- return {
11775
- textAlign: (e = this.normalizedColumns[t]) == null ? void 0 : e.textAlign
11772
+ getCellStyle(t, e) {
11773
+ var n;
11774
+ return t === Re.FULL_WIDTH ? null : {
11775
+ textAlign: (n = this.normalizedColumns[e]) == null ? void 0 : n.textAlign
11776
11776
  };
11777
11777
  },
11778
11778
  getRowClasses(t, e) {
@@ -11784,21 +11784,21 @@ const id = /* @__PURE__ */ Y(Qu, [["render", sd]]), tn = 100, Ue = {
11784
11784
  },
11785
11785
  getCellClasses(t) {
11786
11786
  return {
11787
- "cpTable__cell--isFullWidth": t === Ue.FULL_WIDTH
11787
+ "cpTable__cell--isFullWidth": t === Re.FULL_WIDTH
11788
11788
  };
11789
11789
  },
11790
11790
  getColspan(t) {
11791
11791
  const e = this.enableRowOptions ? this.numberOfColumns + 1 : this.numberOfColumns;
11792
- return t === Ue.FULL_WIDTH ? e : null;
11792
+ return t === Re.FULL_WIDTH ? e : null;
11793
11793
  },
11794
11794
  getTabindex(t) {
11795
11795
  return this.isFullWidthRow(t) ? -1 : 0;
11796
11796
  },
11797
11797
  isFullWidthRow(t) {
11798
- return Ue.FULL_WIDTH in t;
11798
+ return Re.FULL_WIDTH in t;
11799
11799
  },
11800
11800
  isRowSelected(t) {
11801
- return this.rawVisibleRows[t][Ue.IS_SELECTED];
11801
+ return this.rawVisibleRows[t][Re.IS_SELECTED];
11802
11802
  },
11803
11803
  areRowOptionsEnabled(t) {
11804
11804
  return this.enableRowOptions && !this.isFullWidthRow(t);
@@ -11857,7 +11857,7 @@ function Td(t, e, n, s, r, i) {
11857
11857
  (x(!0), S(J, null, te(c, (d, h, p) => (x(), S("td", {
11858
11858
  key: `${h}_${u}`,
11859
11859
  class: W(["cpTable__cell", i.getCellClasses(h)]),
11860
- style: Ae(i.getCellStyle(p)),
11860
+ style: Ae(i.getCellStyle(h, p)),
11861
11861
  colspan: i.getColspan(h)
11862
11862
  }, [
11863
11863
  H(t.$slots, h, { cell: d }, () => [