@bicharts/chart-host 0.6.108 → 0.6.110
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/adapters.mjs +3 -3
- package/dist/card.mjs +2 -2
- package/dist/{chunk-ABGDJ3NJ.mjs → chunk-3JCWTEEH.mjs} +11 -1
- package/dist/{chunk-MO2GR56D.mjs → chunk-5VQ3IQF7.mjs} +426 -20
- package/dist/{chunk-OSREEGBN.mjs → chunk-7XT5OJ6M.mjs} +1 -1
- package/dist/{chunk-UKXGOQMS.mjs → chunk-AEO5SFEQ.mjs} +1 -1
- package/dist/{chunk-JU2PQ22J.mjs → chunk-FT75ONSB.mjs} +17 -1
- package/dist/{chunk-ESBH2L6E.mjs → chunk-IL5M7K6Z.mjs} +2 -2
- package/dist/{chunk-LGWTV5PB.mjs → chunk-KGVNZR23.mjs} +1 -1
- package/dist/{chunk-PHUUFCJY.mjs → chunk-KY4FI2HA.mjs} +3 -1
- package/dist/{chunk-SYUJ4TPX.mjs → chunk-NJWR3DFK.mjs} +133 -132
- package/dist/{chunk-FCLPMC6Q.mjs → chunk-PELRAFYZ.mjs} +1 -1
- package/dist/{chunk-MU4BWWO6.mjs → chunk-Q43WOKSV.mjs} +1 -1
- package/dist/{chunk-5WTQN5DL.mjs → chunk-S564YXNE.mjs} +1 -1
- package/dist/geo-world.mjs +1 -1
- package/dist/geo.mjs +1 -1
- package/dist/{geoWorld110m.generated-TD2TA7S7.mjs → geoWorld110m-3PRV3V4G.mjs} +1 -1
- package/dist/index.mjs +32 -12
- package/dist/legend-fit.mjs +3 -3
- package/dist/page.mjs +6 -4
- package/dist/provinces.mjs +2 -2
- package/dist/react.mjs +38 -12
- package/dist/testing.mjs +1 -1
- package/dist/types/annotations.d.ts +3 -1
- package/dist/types/contract.d.ts +19 -1
- package/dist/types/defaults.d.ts +2 -1
- package/dist/types/filterScope.d.ts +8 -0
- package/dist/types/focusKeep.d.ts +12 -0
- package/dist/types/geo-world.d.ts +1 -1
- package/dist/types/geoWorld110m.d.ts +1 -0
- package/dist/types/host.d.ts +10 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/keyboardMarks.d.ts +44 -0
- package/dist/types/page.d.ts +1 -1
- package/dist/types/react.d.ts +10 -1
- package/dist/zoom-memory.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
2
2
|
import {
|
|
3
3
|
LASSO_KNOB_KEY
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IL5M7K6Z.mjs";
|
|
5
5
|
|
|
6
6
|
// src/filterScope.ts
|
|
7
7
|
function viewToken(view) {
|
|
@@ -283,6 +283,21 @@ function createFilterScope() {
|
|
|
283
283
|
};
|
|
284
284
|
return scope;
|
|
285
285
|
}
|
|
286
|
+
function filterScopeOf(filters) {
|
|
287
|
+
const list = Array.isArray(filters) ? filters : filters ? [filters] : [];
|
|
288
|
+
const active = list.filter((f) => f && f.active);
|
|
289
|
+
const values = [];
|
|
290
|
+
for (const f of active) {
|
|
291
|
+
for (const k of f.keys) {
|
|
292
|
+
const t = f.textOf(k).trim();
|
|
293
|
+
if (t && !values.includes(t)) values.push(t);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
if (!values.length) return void 0;
|
|
297
|
+
const fields = [];
|
|
298
|
+
for (const f of active) if (f.label && !fields.includes(f.label)) fields.push(f.label);
|
|
299
|
+
return { field: fields.join(", "), values };
|
|
300
|
+
}
|
|
286
301
|
var LINKED_HOVER_CLASS = "bic-linked-hover";
|
|
287
302
|
var hoverStyled = false;
|
|
288
303
|
function ensureHoverStyle(doc) {
|
|
@@ -585,6 +600,7 @@ export {
|
|
|
585
600
|
viewFromToken,
|
|
586
601
|
createFilter,
|
|
587
602
|
createFilterScope,
|
|
603
|
+
filterScopeOf,
|
|
588
604
|
LINKED_HOVER_CLASS,
|
|
589
605
|
payloadRowReader,
|
|
590
606
|
bindFilter,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
gestureWasDrag,
|
|
5
5
|
isInsideControl,
|
|
6
6
|
rowIdxsFromMark
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KGVNZR23.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AXIS_FILTER_CLASS,
|
|
10
10
|
CONTROL_CLASS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
MARK_CLASS,
|
|
13
13
|
ROW_IDX_ATTR,
|
|
14
14
|
SNAPSHOT_SVG_ATTR
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KY4FI2HA.mjs";
|
|
16
16
|
|
|
17
17
|
// src/lasso.ts
|
|
18
18
|
var LASSO_ROW_CAP = 5e3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
2
2
|
|
|
3
3
|
// src/contract.ts
|
|
4
|
-
var HOST_CONTRACT_VERSION = "1.
|
|
4
|
+
var HOST_CONTRACT_VERSION = "1.23.0";
|
|
5
5
|
var GEO_POINT_PRECISIONS = ["latlon", "city", "zip3", "state", "country"];
|
|
6
6
|
var MARK_CLASS = "d3-mark";
|
|
7
7
|
var LEGEND_MARK_CLASS = "d3-legend-mark";
|
|
@@ -34,6 +34,7 @@ function withoutViewOnlyKeys(bag) {
|
|
|
34
34
|
var HOST_CONTAINER_CLASS = "bic-chart-host";
|
|
35
35
|
var SELECTION_ACTIVE_CLASS = "lch-has-selection";
|
|
36
36
|
var MARK_SELECTED_CLASS = "lch-mark-selected";
|
|
37
|
+
var MARKS_INERT_CLASS = "lch-marks-inert";
|
|
37
38
|
var ACTIVE_TICK_CLASS = "lch-tick-active";
|
|
38
39
|
var DIM_OPACITY_VAR = "--lch-dim-opacity";
|
|
39
40
|
var DIM_OPACITY_DEFAULT = 0.25;
|
|
@@ -101,6 +102,7 @@ export {
|
|
|
101
102
|
HOST_CONTAINER_CLASS,
|
|
102
103
|
SELECTION_ACTIVE_CLASS,
|
|
103
104
|
MARK_SELECTED_CLASS,
|
|
105
|
+
MARKS_INERT_CLASS,
|
|
104
106
|
ACTIVE_TICK_CLASS,
|
|
105
107
|
DIM_OPACITY_VAR,
|
|
106
108
|
DIM_OPACITY_DEFAULT,
|