@bicharts/chart-host 0.6.75 → 0.6.76

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.
@@ -1938,7 +1938,7 @@ function re2(e) {
1938
1938
  function de(e, t) {
1939
1939
  return y(t, fn) ? true : oe2(e).some((n) => /^\d{5}(-\d{4})?$/.test(n.replace(/\.0+$/, "")));
1940
1940
  }
1941
- function jn(e, t) {
1941
+ function Yn3(e, t) {
1942
1942
  let n = F3(e);
1943
1943
  if (n.length === 0) return 0;
1944
1944
  let o4 = 0;
@@ -1950,12 +1950,12 @@ function ee3(e, t) {
1950
1950
  for (let o4 of F3(e)) t(o4) && n++;
1951
1951
  return n;
1952
1952
  }
1953
- function Yn3(e, t) {
1953
+ function Qn2(e, t) {
1954
1954
  let n = 0;
1955
1955
  for (let o4 of oe2(e)) t(o4) && n++;
1956
1956
  return n;
1957
1957
  }
1958
- function Qn2(e, t, n, o4, l2) {
1958
+ function Xn2(e, t, n, o4, l2) {
1959
1959
  let u4 = [], a3 = [], i = {}, h4 = {}, C2 = new Set(e), y2 = (s2) => t.map((d2) => d2[s2]);
1960
1960
  for (let s2 of ["city", "country"]) {
1961
1961
  let d2 = n?.[s2];
@@ -1992,7 +1992,7 @@ function Qn2(e, t, n, o4, l2) {
1992
1992
  if (!i.zip) for (let s2 of b4) {
1993
1993
  if (p4.has(s2)) continue;
1994
1994
  let d2 = y2(s2), S2 = re2(d2);
1995
- if (!(S2 < 95) && de(d2, s2) && !(Yn3(d2, (O4) => r3(O4).length > 0) < Z3)) {
1995
+ if (!(S2 < 95) && de(d2, s2) && !(Qn2(d2, (O4) => r3(O4).length > 0) < Z3)) {
1996
1996
  i.zip = s2, p4.add(s2), u4.push(`zip=${s2} (${S2}% ZIP codes)`);
1997
1997
  break;
1998
1998
  }
@@ -2011,7 +2011,7 @@ function Qn2(e, t, n, o4, l2) {
2011
2011
  let s2 = null;
2012
2012
  for (let d2 of b4) {
2013
2013
  if (p4.has(d2)) continue;
2014
- let S2 = y2(d2), O4 = jn(S2, o4);
2014
+ let S2 = y2(d2), O4 = Yn3(S2, o4);
2015
2015
  O4 < D3 || ee3(S2, (K3) => j3(K3, o4)) < Z3 || (!s2 || O4 > s2.pct) && (s2 = { name: d2, pct: O4 });
2016
2016
  }
2017
2017
  s2 && (i.city = s2.name, u4.push(`city=${s2.name} (${s2.pct}% known cities)`));
@@ -2024,11 +2024,11 @@ function Qn2(e, t, n, o4, l2) {
2024
2024
  }
2025
2025
  var r = (e, ...t) => ({ part: e, langs: Object.freeze(t) });
2026
2026
  var ie2 = Object.freeze({ jaar: r("year", "nl"), kwartaal: r("quarter", "nl"), maand: r("month", "nl"), dag: r("day", "nl", "sv", "da", "nb"), jahr: r("year", "de"), quartal: r("quarter", "de"), monat: r("month", "de"), tag: r("day", "de"), ann\u00E9e: r("year", "fr"), mois: r("month", "fr"), jour: r("day", "fr"), trimestre: r("quarter", "fr", "es", "pt", "it"), a\u00F1o: r("year", "es"), mes: r("month", "es"), d\u00EDa: r("day", "es"), ano: r("year", "pt"), m\u00EAs: r("month", "pt"), dia: r("day", "pt"), anno: r("year", "it"), mese: r("month", "it"), giorno: r("day", "it"), \u0433\u043E\u0434: r("year", "ru"), \u043C\u0435\u0441\u044F\u0446: r("month", "ru"), \u0440\u0456\u043A: r("year", "uk"), \u043C\u0456\u0441\u044F\u0446\u044C: r("month", "uk"), \u043A\u0432\u0430\u0440\u0442\u0430\u043B: r("quarter", "ru", "uk"), \u0434\u0435\u043D\u044C: r("day", "ru", "uk"), rok: r("year", "pl", "cs", "sk"), kwarta\u0142: r("quarter", "pl"), miesi\u0105c: r("month", "pl"), dzie\u0144: r("day", "pl"), \u010Dtvrtlet\u00ED: r("quarter", "cs"), m\u011Bs\u00EDc: r("month", "cs"), den: r("day", "cs"), \u0161tvr\u0165rok: r("quarter", "sk"), mesiac: r("month", "sk"), de\u0148: r("day", "sk"), \u00E5r: r("year", "sv", "da", "nb"), kvartal: r("quarter", "sv", "da", "nb"), m\u00E5nad: r("month", "sv"), m\u00E5ned: r("month", "da", "nb"), vuosi: r("year", "fi"), vuosinelj\u00E4nnes: r("quarter", "fi"), kuukausi: r("month", "fi"), p\u00E4iv\u00E4: r("day", "fi"), \u00E9v: r("year", "hu"), negyed\u00E9v: r("quarter", "hu"), h\u00F3nap: r("month", "hu"), nap: r("day", "hu"), y\u0131l: r("year", "tr"), \u00E7eyrek: r("quarter", "tr"), ay: r("month", "tr"), g\u00FCn: r("day", "tr"), \u03AD\u03C4\u03BF\u03C2: r("year", "el"), \u03C4\u03C1\u03AF\u03BC\u03B7\u03BD\u03BF: r("quarter", "el"), \u03BC\u03AE\u03BD\u03B1\u03C2: r("month", "el"), \u03B7\u03BC\u03AD\u03C1\u03B1: r("day", "el"), an: r("year", "ro"), trimestru: r("quarter", "ro"), lun\u0103: r("month", "ro"), zi: r("day", "ro"), godina: r("year", "hr"), tromjese\u010Dje: r("quarter", "hr"), mjesec: r("month", "hr"), dan: r("day", "hr"), \u5E74: r("year", "ja", "zh"), \u56DB\u534A\u671F: r("quarter", "ja"), \u5B63\u5EA6: r("quarter", "zh"), \u6708: r("month", "ja", "zh"), \u65E5: r("day", "ja", "zh"), \uC5F0\uB3C4: r("year", "ko"), \uBD84\uAE30: r("quarter", "ko"), \uC6D4: r("month", "ko"), \uC77C: r("day", "ko"), tahun: r("year", "id"), kuartal: r("quarter", "id"), triwulan: r("quarter", "id"), bulan: r("month", "id"), hari: r("day", "id"), n\u0103m: r("year", "vi"), qu\u00FD: r("quarter", "vi"), th\u00E1ng: r("month", "vi"), ng\u00E0y: r("day", "vi"), \u0E1B\u0E35: r("year", "th"), \u0E44\u0E15\u0E23\u0E21\u0E32\u0E2A: r("quarter", "th"), \u0E40\u0E14\u0E37\u0E2D\u0E19: r("month", "th"), \u0E27\u0E31\u0E19: r("day", "th"), \u0627\u0644\u0633\u0646\u0629: r("year", "ar"), \u0633\u0646\u0629: r("year", "ar"), \u0627\u0644\u0639\u0627\u0645: r("year", "ar"), \u0639\u0627\u0645: r("year", "ar"), \u0627\u0644\u0631\u0628\u0639: r("quarter", "ar"), \u0631\u0628\u0639: r("quarter", "ar"), "\u0631\u0628\u0639 \u0627\u0644\u0633\u0646\u0629": r("quarter", "ar"), \u0627\u0644\u0634\u0647\u0631: r("month", "ar"), \u0634\u0647\u0631: r("month", "ar"), \u0627\u0644\u064A\u0648\u0645: r("day", "ar"), \u064A\u0648\u0645: r("day", "ar"), \u05E9\u05E0\u05D4: r("year", "he"), \u05E8\u05D1\u05E2\u05D5\u05DF: r("quarter", "he"), \u05D7\u05D5\u05D3\u05E9: r("month", "he"), \u05D9\u05D5\u05DD: r("day", "he"), \u0935\u0930\u094D\u0937: r("year", "hi"), \u0938\u093E\u0932: r("year", "hi"), \u0924\u093F\u092E\u093E\u0939\u0940: r("quarter", "hi"), \u092E\u0939\u0940\u0928\u093E: r("month", "hi"), \u092E\u093E\u0939: r("month", "hi"), \u0926\u093F\u0928: r("day", "hi"), \u0633\u0627\u0644: r("year", "fa"), \u0645\u0627\u0647: r("month", "fa"), \u0631\u0648\u0632: r("day", "fa") });
2027
- var Xn2 = Object.freeze(Array.from(new Set(Object.values(ie2).flatMap((e) => e.langs))));
2027
+ var Jn = Object.freeze(Array.from(new Set(Object.values(ie2).flatMap((e) => e.langs))));
2028
2028
  var fe = Object.freeze(["fa", "ar", "he", "th"]);
2029
- var vr = Object.freeze({ integer: "number", decimal: "number", double: "number", datetime: "date", date: "date", boolean: "boolean", string: "text" });
2030
- var Dr = Object.freeze({ RENDER_START: "render-start", RENDER_OK: "render-ok", RENDER_ERROR: "render-error", VIEW: "view", VIEW_VERDICT: "view-verdict", REDRAW: "redraw", INTERACT: "interact" });
2031
- var kr = Object.freeze(["open", "generate", "version", "rebind", "data", "sample", "fix", "resize", "other"]);
2029
+ var Pr = Object.freeze({ integer: "number", decimal: "number", double: "number", datetime: "date", date: "date", boolean: "boolean", string: "text" });
2030
+ var kr = Object.freeze({ RENDER_START: "render-start", RENDER_OK: "render-ok", RENDER_ERROR: "render-error", VIEW: "view", VIEW_VERDICT: "view-verdict", REDRAW: "redraw", INTERACT: "interact" });
2031
+ var Gr = Object.freeze(["open", "generate", "version", "rebind", "data", "sample", "fix", "resize", "other"]);
2032
2032
  var Ae = 2 ** 31 - 1;
2033
2033
 
2034
2034
  // src/payload.ts
@@ -2044,7 +2044,7 @@ function resolvePointChannel(cols, rowObjs, point) {
2044
2044
  let labelCol;
2045
2045
  if (bind) {
2046
2046
  const dims = cols.filter((c2) => !c2.isMeasure).map((c2) => c2.name);
2047
- const res = Qn2(dims, rowObjs, bind, point?.mapKind, cols.map((c2) => c2.name));
2047
+ const res = Xn2(dims, rowObjs, bind, point?.mapKind, cols.map((c2) => c2.name));
2048
2048
  bind = res.bind;
2049
2049
  rolesBackfilled = res.backfilled;
2050
2050
  rolesRefused = res.refused;
package/dist/index.mjs CHANGED
@@ -130,7 +130,7 @@ import {
130
130
  toSourceRows,
131
131
  unpinScrolledAxis,
132
132
  valuePlacementFlag
133
- } from "./chunk-OEN7WGNS.mjs";
133
+ } from "./chunk-ZEXMBZHP.mjs";
134
134
  import "./chunk-A2GMXZP7.mjs";
135
135
  import {
136
136
  ACTIVE_TICK_CLASS,
package/dist/react.mjs CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  loadGeo,
23
23
  syncMemberSelection,
24
24
  toSourceRows
25
- } from "./chunk-OEN7WGNS.mjs";
25
+ } from "./chunk-ZEXMBZHP.mjs";
26
26
  import "./chunk-A2GMXZP7.mjs";
27
27
  import "./chunk-7JWL6LYE.mjs";
28
28
  import "./chunk-GHODWOAL.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.6.75",
3
+ "version": "0.6.76",
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",