@bicharts/chart-host 0.5.78 → 0.5.80

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.
@@ -1058,7 +1058,7 @@ function wn(n, o2) {
1058
1058
  return { iso: i2, unmatched: A2, matchedRows: y2, totalRows: n.length };
1059
1059
  }
1060
1060
 
1061
- // ../shape-core/dist/chunk-75LGS6NJ.mjs
1061
+ // ../shape-core/dist/chunk-QBGUZNRI.mjs
1062
1062
  var import_papaparse = __toESM(require_papaparse_min(), 1);
1063
1063
  /*! @bicharts/shape-core — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; US Census/TIGER (public domain). Full text: NOTICE in this package. */
1064
1064
  var pt = { "north-america": "AG AI AW BB BL BM BQ BS BZ CA CR CU CW DM DO GD GL GP GT HN HT JM KN KY LC MF MQ MS MX NI PA PM PR SV SX TC TT US VC VG VI", "south-america": "AR BO BR CL CO EC FK GF GY PE PY SR UY VE", europe: "AD AL AT AX BA BE BG BY CH CY CZ DE DK EE ES FI FO FR GB GG GI GR HR HU IE IM IS IT JE LI LT LU LV MC MD ME MK MT NL NO PL PT RO RS RU SE SI SJ SK SM UA VA", africa: "AO BF BI BJ BW CD CF CG CI CM CV DJ DZ EG EH ER ET GA GH GM GN GQ GW KE KM LR LS LY MA MG ML MR MU MW MZ NA NE NG RE RW SC SD SH SL SN SO SS ST SZ TD TG TN TZ UG YT ZA ZM ZW", asia: "AE AF AM AZ BD BH BN BT CC CN CX GE HK ID IL IN IO IQ IR JO JP KG KH KP KR KW KZ LA LB LK MM MN MO MV MY NP OM PH PK PS QA SA SG SY TH TJ TL TM TR TW UZ VN YE", oceania: "AS AU CK FJ FM GU KI MH MP NC NF NR NU NZ PF PG PN PW SB TK TO TV UM VU WF WS", antarctica: "AQ BV GS HM TF" };
@@ -1125,7 +1125,7 @@ function Tt(n) {
1125
1125
  }
1126
1126
  return t.discourageAggregationAcrossGroups === true ? { nature: e, additivity: "intensive_rate", basis: "host-flag", suppressed: false } : Bt(t.name) ? { nature: e, additivity: "intensive_rate", basis: "name", suppressed: false } : { nature: e, additivity: "additive", basis: "default", suppressed: false };
1127
1127
  }
1128
- function Rt(n) {
1128
+ function Nt(n) {
1129
1129
  let t = Tt(n), e = n ?? {};
1130
1130
  if (t.nature === "Categorical") return ["first", "distinctcount", "count"];
1131
1131
  if (t.nature === "Ordinal") return Kt(e) ? ["median", "average", "min", "max", "first", "distinctcount", "count"] : ["first", "distinctcount", "count"];
@@ -1139,7 +1139,7 @@ function Rt(n) {
1139
1139
  }
1140
1140
  }
1141
1141
  function _e(n) {
1142
- return Rt(n)[0];
1142
+ return Nt(n)[0];
1143
1143
  }
1144
1144
  function Ce(n, t) {
1145
1145
  if (t !== "sum" && t !== "count") return false;
@@ -2983,7 +2983,7 @@ export {
2983
2983
  clearGeoCache,
2984
2984
  L3,
2985
2985
  Tt,
2986
- Rt,
2986
+ Nt,
2987
2987
  _e,
2988
2988
  Ce,
2989
2989
  buildRenderPayload,
package/dist/index.mjs CHANGED
@@ -44,13 +44,13 @@ import {
44
44
  MAX_FRAME_GROW_FACTOR,
45
45
  MIN_CONTRAST,
46
46
  MIN_HIT_BAND_PX,
47
+ Nt,
47
48
  PAGE_MATCH_TOLERANCE,
48
49
  PHANTOM_FRACTION,
49
50
  PILL_MIN_ALPHA,
50
51
  PILL_MIN_COVERAGE,
51
52
  PILL_OPAQUE_ALPHA,
52
53
  ROW_IDX_ATTR,
53
- Rt,
54
54
  SCROLL_SLACK_PX,
55
55
  SEASONAL_MARKERS_DEFAULT,
56
56
  SELECTION_ACTIVE_CLASS,
@@ -110,7 +110,7 @@ import {
110
110
  svgInkReach,
111
111
  toRGBA,
112
112
  unpinScrolledAxis
113
- } from "./chunk-WI2R6E6U.mjs";
113
+ } from "./chunk-JWNHAXNO.mjs";
114
114
  import "./chunk-A2GMXZP7.mjs";
115
115
  import "./chunk-GHODWOAL.mjs";
116
116
 
@@ -866,7 +866,7 @@ function resolveAgg(col, requested, auto) {
866
866
  return d === "first" ? "count" : d;
867
867
  };
868
868
  if (auto) return fallback();
869
- return Rt(col).indexOf(requested) >= 0 ? requested : fallback();
869
+ return Nt(col).indexOf(requested) >= 0 ? requested : fallback();
870
870
  }
871
871
  function toNumber(v) {
872
872
  if (v == null || v === "") return null;
package/dist/react.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createChartHost,
5
5
  geoFromCache,
6
6
  loadGeo
7
- } from "./chunk-WI2R6E6U.mjs";
7
+ } from "./chunk-JWNHAXNO.mjs";
8
8
  import "./chunk-A2GMXZP7.mjs";
9
9
  import "./chunk-GHODWOAL.mjs";
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.5.78",
3
+ "version": "0.5.80",
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",