@bicharts/chart-host 0.6.28 → 0.6.29

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.
@@ -201,13 +201,13 @@ var require_papaparse_min = __commonJS({
201
201
  e = true, s2.abort(), p4.meta.aborted = true, q3(m2.complete) && m2.complete(p4), n2 = "";
202
202
  }, this.guessLineEndings = function(e2, t2) {
203
203
  e2 = e2.substring(0, 1048576);
204
- var t2 = new RegExp(U3(t2) + "([^]*?)" + U3(t2), "gm"), i4 = (e2 = e2.replace(t2, "")).split("\r"), t2 = e2.split("\n"), e2 = 1 < t2.length && t2[0].length < i4[0].length;
204
+ var t2 = new RegExp(U4(t2) + "([^]*?)" + U4(t2), "gm"), i4 = (e2 = e2.replace(t2, "")).split("\r"), t2 = e2.split("\n"), e2 = 1 < t2.length && t2[0].length < i4[0].length;
205
205
  if (1 === i4.length || e2) return "\n";
206
206
  for (var r4 = 0, n4 = 0; n4 < i4.length; n4++) "\n" === i4[n4][0] && r4++;
207
207
  return r4 >= i4.length / 2 ? "\r\n" : "\r";
208
208
  };
209
209
  }
210
- function U3(e) {
210
+ function U4(e) {
211
211
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
212
212
  }
213
213
  function E4(C2) {
@@ -232,7 +232,7 @@ var require_papaparse_min = __commonJS({
232
232
  }
233
233
  return w3();
234
234
  }
235
- for (var p4 = i2.indexOf(S, z4), g4 = i2.indexOf(O3, z4), _3 = new RegExp(U3(j3) + U3(F4), "g"), m2 = i2.indexOf(F4, z4); ; ) if (i2[z4] === F4) for (m2 = z4, z4++; ; ) {
235
+ for (var p4 = i2.indexOf(S, z4), g4 = i2.indexOf(O3, z4), _3 = new RegExp(U4(j3) + U4(F4), "g"), m2 = i2.indexOf(F4, z4); ; ) if (i2[z4] === F4) for (m2 = z4, z4++; ; ) {
236
236
  if (-1 === (m2 = i2.indexOf(F4, m2 + 1))) return r2 || u4.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: h4.length, index: z4 }), E5();
237
237
  if (m2 === n2 - 1) return E5(i2.substring(z4, m2).replace(_3, F4));
238
238
  if (F4 === j3 && i2[m2 + 1] === j3) m2++;
@@ -358,7 +358,7 @@ var require_papaparse_min = __commonJS({
358
358
  }
359
359
  void 0 !== t.escapeChar && (o2 = t.escapeChar + a5), t.escapeFormulae instanceof RegExp ? h4 = t.escapeFormulae : "boolean" == typeof t.escapeFormulae && t.escapeFormulae && (h4 = /^[=+\-@\t\r].*$/);
360
360
  }
361
- })(), new RegExp(U3(a5), "g"));
361
+ })(), new RegExp(U4(a5), "g"));
362
362
  "string" == typeof e && (e = JSON.parse(e));
363
363
  if (Array.isArray(e)) {
364
364
  if (!e.length || Array.isArray(e[0])) return n2(null, e, i2);
@@ -1621,7 +1621,7 @@ function k3(e) {
1621
1621
  for (let o of n) Y(o) && t++;
1622
1622
  return Math.round(t / n.length * 1e3) / 10;
1623
1623
  }
1624
- function H3(e) {
1624
+ function U3(e) {
1625
1625
  let n = /* @__PURE__ */ new Set();
1626
1626
  for (let t of e) {
1627
1627
  if (t == null) continue;
@@ -1631,14 +1631,14 @@ function H3(e) {
1631
1631
  return Array.from(n);
1632
1632
  }
1633
1633
  function $2(e) {
1634
- let n = H3(e);
1634
+ let n = U3(e);
1635
1635
  if (n.length === 0) return 0;
1636
1636
  let t = 0;
1637
1637
  for (let o of n) Z(o).length > 0 && t++;
1638
1638
  return Math.round(t / n.length * 1e3) / 10;
1639
1639
  }
1640
1640
  function Z3(e, n) {
1641
- return y4(n, rt) ? true : H3(e).some((t) => /^\d{5}(-\d{4})?$/.test(t.replace(/\.0+$/, "")));
1641
+ return y4(n, rt) ? true : U3(e).some((t) => /^\d{5}(-\d{4})?$/.test(t.replace(/\.0+$/, "")));
1642
1642
  }
1643
1643
  function ot(e, n) {
1644
1644
  let t = F3(e);
@@ -1654,7 +1654,7 @@ function z3(e, n) {
1654
1654
  }
1655
1655
  function it2(e, n) {
1656
1656
  let t = 0;
1657
- for (let o of H3(e)) n(o) && t++;
1657
+ for (let o of U3(e)) n(o) && t++;
1658
1658
  return t;
1659
1659
  }
1660
1660
  function st(e, n, t, o, u2) {
@@ -1718,7 +1718,7 @@ function st(e, n, t, o, u2) {
1718
1718
  }
1719
1719
  r && (i.city = r.name, a4.push(`city=${r.name} (${r.pct}% known cities)`));
1720
1720
  }
1721
- let U3 = i.country ? f4(i.country) : [], E4 = !!i.country && v3(U3), ce = E4 ? new Set(U3.map((r) => E(r == null ? null : String(r))).filter(Boolean)).size : 0, j3 = E4 && ce >= 2, O3 = !!(i.lat && i.lon) && n.some((r) => {
1721
+ let H3 = i.country ? f4(i.country) : [], E4 = !!i.country && v3(H3), ce = E4 ? new Set(H3.map((r) => E(r == null ? null : String(r))).filter(Boolean)).size : 0, j3 = E4 && ce >= 2, O3 = !!(i.lat && i.lon) && n.some((r) => {
1722
1722
  let l = +String(r[i.lat] ?? "").trim(), d2 = +String(r[i.lon] ?? "").trim();
1723
1723
  return isFinite(l) && isFinite(d2) && l >= -90 && l <= 90 && d2 >= -180 && d2 <= 180 && String(r[i.lat] ?? "").trim() !== "" && String(r[i.lon] ?? "").trim() !== "";
1724
1724
  });
package/dist/index.mjs CHANGED
@@ -140,7 +140,7 @@ import {
140
140
  unpinScrolledAxis,
141
141
  valuePlacementFlag,
142
142
  withoutViewOnlyKeys
143
- } from "./chunk-VKFEN6MS.mjs";
143
+ } from "./chunk-NOJ2COB2.mjs";
144
144
  import "./chunk-A2GMXZP7.mjs";
145
145
  import "./chunk-GHODWOAL.mjs";
146
146
 
package/dist/react.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  loadGeo,
8
8
  syncMemberSelection,
9
9
  toSourceRows
10
- } from "./chunk-VKFEN6MS.mjs";
10
+ } from "./chunk-NOJ2COB2.mjs";
11
11
  import "./chunk-A2GMXZP7.mjs";
12
12
  import "./chunk-GHODWOAL.mjs";
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.6.28",
3
+ "version": "0.6.29",
4
4
  "description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",