@ktnpm_devops/react-component 0.16.0 → 0.17.0
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/README.md +38 -2
- package/dist/constants.d.ts +7 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +28 -2
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/MapStatusBars.d.ts +11 -0
- package/dist/geo/GeoMapCard/MapStatusBars.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/ViewportReporter.d.ts +15 -0
- package/dist/geo/GeoMapCard/ViewportReporter.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/describePoints.d.ts +7 -0
- package/dist/geo/GeoMapCard/describePoints.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizeViewport.d.ts +13 -0
- package/dist/geo/GeoMapCard/normalizeViewport.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/resolveTiles.d.ts +9 -0
- package/dist/geo/GeoMapCard/resolveTiles.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts +9 -0
- package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +39 -39
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +38 -38
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +9 -58
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +8 -57
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +9 -38
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +10 -39
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +19 -92
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +19 -92
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +14 -40
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +13 -39
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +8 -113
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +8 -113
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +51 -24
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +52 -25
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +9 -15
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +10 -16
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +48 -10
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +47 -9
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +16 -34
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +16 -34
- package/dist/index109.js.map +1 -1
- package/dist/index110.cjs +36 -43
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +35 -42
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +54 -24
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +53 -23
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +40 -20
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +39 -19
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +16 -14
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +15 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +15 -54
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +16 -55
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +36 -18
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +36 -18
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +64 -13
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +65 -14
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +52 -16
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +52 -16
- package/dist/index117.js.map +1 -1
- package/dist/index119.cjs +16 -34
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +16 -34
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +16 -46
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +16 -46
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +7 -18
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +6 -17
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +15 -33
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +15 -33
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +2 -38
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +3 -39
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +19 -1164
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +17 -1163
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +84 -1575
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +83 -1575
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +24 -0
- package/dist/index126.cjs.map +1 -0
- package/dist/index126.js +24 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.cjs +36 -0
- package/dist/index127.cjs.map +1 -0
- package/dist/index127.js +36 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.cjs +1166 -0
- package/dist/index128.cjs.map +1 -0
- package/dist/index128.js +1167 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.cjs +1578 -0
- package/dist/index129.cjs.map +1 -0
- package/dist/index129.js +1579 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +37 -0
- package/dist/index130.cjs.map +1 -0
- package/dist/index130.js +37 -0
- package/dist/index130.js.map +1 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +2 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +2 -2
- package/dist/index29.js +2 -2
- package/dist/index30.cjs +37 -35
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +35 -33
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +4 -4
- package/dist/index31.js +4 -4
- package/dist/index32.cjs +3 -3
- package/dist/index32.js +3 -3
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.js +2 -2
- package/dist/index35.cjs +2 -2
- package/dist/index35.js +2 -2
- package/dist/index36.cjs +2 -2
- package/dist/index36.js +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +2 -2
- package/dist/index38.js +2 -2
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.cjs +2 -2
- package/dist/index41.js +2 -2
- package/dist/index42.cjs +2 -2
- package/dist/index42.js +2 -2
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +2 -2
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +4 -4
- package/dist/index45.js +4 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +1 -1
- package/dist/index49.cjs +2 -2
- package/dist/index49.js +2 -2
- package/dist/index50.cjs +2 -2
- package/dist/index50.js +2 -2
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +3 -3
- package/dist/index52.js +3 -3
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +3 -3
- package/dist/index55.js +3 -3
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +2 -2
- package/dist/index58.js +2 -2
- package/dist/index60.cjs +13 -22
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +13 -22
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +18 -21
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +19 -22
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +13 -13
- package/dist/index62.js +13 -13
- package/dist/index63.cjs +10 -143
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +8 -141
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +143 -25
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +141 -23
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +16 -13
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +17 -14
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +19 -13
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +20 -14
- package/dist/index66.js.map +1 -1
- package/dist/index68.cjs +35 -14
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +36 -15
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +28 -28
- package/dist/index69.js +28 -28
- package/dist/index70.cjs +19 -19
- package/dist/index70.js +20 -20
- package/dist/index71.cjs +4 -46
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +5 -47
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +116 -7
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +115 -6
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +35 -77
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +35 -77
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +52 -52
- package/dist/index74.js +52 -52
- package/dist/index75.cjs +39 -39
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +38 -38
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +89 -14
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +89 -14
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +35 -2
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +36 -3
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +22 -6
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +21 -5
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +70 -10
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +68 -8
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +7 -33
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +6 -32
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +34 -16
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +35 -17
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +134 -16
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +133 -15
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +36 -15
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +37 -16
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -1
- package/dist/index85.cjs +32 -17
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +33 -18
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +28 -64
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +28 -64
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +2 -20
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +3 -21
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +17 -2
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +18 -3
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +20 -2
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +20 -2
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +46 -10
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +47 -11
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +22 -13
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +23 -14
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +22 -49
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +22 -49
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +7 -134
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +6 -133
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +13 -40
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +14 -41
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +3 -36
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +3 -36
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +15 -24
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +15 -24
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +33 -20
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +33 -20
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +37 -63
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +37 -63
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +23 -6
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +23 -6
- package/dist/index99.js.map +1 -1
- package/dist/style.css +45 -0
- package/dist/types/geo.types.d.ts +14 -0
- package/dist/types/geo.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index107.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index107.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index107.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index108.cjs
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const constants = require("./index64.cjs");
|
|
5
|
+
const HeatmapMatrix_module = require("./index110.cjs");
|
|
6
|
+
function ColumnHeader({ column, rowSpan }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", rowSpan, className: HeatmapMatrix_module.default.colh, title: column.title, children: column.label });
|
|
8
|
+
}
|
|
9
|
+
function HeatmapMatrixHeader({
|
|
10
|
+
columns,
|
|
11
|
+
runs,
|
|
12
|
+
columnGroups,
|
|
13
|
+
cornerLabel
|
|
14
|
+
}) {
|
|
15
|
+
const rowSpan = runs ? constants.HEATMAP_GROUPED_HEADER_ROWS : void 0;
|
|
16
|
+
const corner = /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", rowSpan, className: HeatmapMatrix_module.default.corner, "aria-hidden": cornerLabel == null, children: cornerLabel });
|
|
17
|
+
if (!runs) {
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
19
|
+
corner,
|
|
20
|
+
columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column }, column.key))
|
|
21
|
+
] }) });
|
|
22
|
+
}
|
|
23
|
+
const groupsByKey = new Map(columnGroups == null ? void 0 : columnGroups.map((group) => [group.key, group]));
|
|
24
|
+
const groupedColumns = runs.filter((run) => run.group !== void 0).flatMap((run) => run.columns);
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("thead", { children: [
|
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
27
|
+
corner,
|
|
28
|
+
runs.map((run) => {
|
|
29
|
+
if (run.group === void 0) {
|
|
30
|
+
return run.columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column, rowSpan }, column.key));
|
|
31
|
+
}
|
|
32
|
+
const entry = groupsByKey.get(run.group);
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
+
"th",
|
|
35
|
+
{
|
|
36
|
+
scope: "colgroup",
|
|
37
|
+
colSpan: run.columns.length,
|
|
38
|
+
className: HeatmapMatrix_module.default.group,
|
|
39
|
+
title: entry == null ? void 0 : entry.title,
|
|
40
|
+
children: (entry == null ? void 0 : entry.label) ?? run.group
|
|
41
|
+
},
|
|
42
|
+
`group-${run.start}`
|
|
43
|
+
);
|
|
44
|
+
})
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ jsxRuntime.jsx("tr", { children: groupedColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column }, column.key)) })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
exports.HeatmapMatrixHeader = HeatmapMatrixHeader;
|
|
12
50
|
//# sourceMappingURL=index108.cjs.map
|
package/dist/index108.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index108.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index108.cjs","sources":["../src/data/HeatmapMatrix/HeatmapMatrixHeader.tsx"],"sourcesContent":["import { HEATMAP_GROUPED_HEADER_ROWS } from '../../constants';\nimport type { HeatmapColumnHeaderProps, HeatmapMatrixHeaderProps } from './HeatmapMatrix.types';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction ColumnHeader({ column, rowSpan }: HeatmapColumnHeaderProps) {\n return (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.colh} title={column.title}>\n {column.label}\n </th>\n );\n}\n\n/**\n * Flat (one row) when `runs` is undefined, so the DOM stays as it was before column groups.\n * Grouped: the corner and ungrouped columns span both rows; each grouped run gets one\n * `scope=\"colgroup\"` header above its columns.\n */\nexport function HeatmapMatrixHeader({\n columns,\n runs,\n columnGroups,\n cornerLabel,\n}: HeatmapMatrixHeaderProps) {\n const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : undefined;\n const corner = (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.corner} aria-hidden={cornerLabel == null}>\n {cornerLabel}\n </th>\n );\n\n if (!runs) {\n return (\n <thead>\n <tr>\n {corner}\n {columns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n }\n\n const groupsByKey = new Map(columnGroups?.map((group) => [group.key, group]));\n const groupedColumns = runs\n .filter((run) => run.group !== undefined)\n .flatMap((run) => run.columns);\n\n return (\n <thead>\n <tr>\n {corner}\n {runs.map((run) => {\n if (run.group === undefined) {\n return run.columns.map((column) => (\n <ColumnHeader key={column.key} column={column} rowSpan={rowSpan} />\n ));\n }\n const entry = groupsByKey.get(run.group);\n return (\n <th\n key={`group-${run.start}`}\n scope=\"colgroup\"\n colSpan={run.columns.length}\n className={styles.group}\n title={entry?.title}\n >\n {entry?.label ?? run.group}\n </th>\n );\n })}\n </tr>\n <tr>\n {groupedColumns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n}\n"],"names":["jsx","styles","HEATMAP_GROUPED_HEADER_ROWS","jsxs"],"mappings":";;;;;AAIA,SAAS,aAAa,EAAE,QAAQ,WAAqC;AACnE,SACEA,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAWC,qBAAAA,QAAO,MAAM,OAAO,OAAO,OACrE,UAAA,OAAO,OACV;AAEJ;AAOO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,QAAM,UAAU,OAAOC,UAAAA,8BAA8B;AACrD,QAAM,SACJF,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAWC,qBAAAA,QAAO,QAAQ,eAAa,eAAe,MACrF,UAAA,aACH;AAGF,MAAI,CAAC,MAAM;AACT,WACED,2BAAAA,IAAC,SAAA,EACC,UAAAG,2BAAAA,KAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,QAAQ,IAAI,CAAC,0CACX,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD;AAAA,IAAA,EAAA,CACH,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,cAAc,IAAI,IAAI,6CAAc,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,EAAE;AAC5E,QAAM,iBAAiB,KACpB,OAAO,CAAC,QAAQ,IAAI,UAAU,MAAS,EACvC,QAAQ,CAAC,QAAQ,IAAI,OAAO;AAE/B,yCACG,SAAA,EACC,UAAA;AAAA,IAAAA,gCAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,KAAK,IAAI,CAAC,QAAQ;AACjB,YAAI,IAAI,UAAU,QAAW;AAC3B,iBAAO,IAAI,QAAQ,IAAI,CAAC,WACtBH,2BAAAA,IAAC,cAAA,EAA8B,QAAgB,QAAA,GAA5B,OAAO,GAAuC,CAClE;AAAA,QACH;AACA,cAAM,QAAQ,YAAY,IAAI,IAAI,KAAK;AACvC,eACEA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YAEC,OAAM;AAAA,YACN,SAAS,IAAI,QAAQ;AAAA,YACrB,WAAWC,qBAAAA,QAAO;AAAA,YAClB,OAAO,+BAAO;AAAA,YAEb,WAAA,+BAAO,UAAS,IAAI;AAAA,UAAA;AAAA,UANhB,SAAS,IAAI,KAAK;AAAA,QAAA;AAAA,MAS7B,CAAC;AAAA,IAAA,GACH;AAAA,IACAD,2BAAAA,IAAC,MAAA,EACE,UAAA,eAAe,IAAI,CAAC,WACnBA,2BAAAA,IAAC,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;;"}
|
package/dist/index108.js
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { HEATMAP_GROUPED_HEADER_ROWS } from "./index64.js";
|
|
3
|
+
import styles from "./index110.js";
|
|
4
|
+
function ColumnHeader({ column, rowSpan }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("th", { scope: "col", rowSpan, className: styles.colh, title: column.title, children: column.label });
|
|
6
|
+
}
|
|
7
|
+
function HeatmapMatrixHeader({
|
|
8
|
+
columns,
|
|
9
|
+
runs,
|
|
10
|
+
columnGroups,
|
|
11
|
+
cornerLabel
|
|
12
|
+
}) {
|
|
13
|
+
const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : void 0;
|
|
14
|
+
const corner = /* @__PURE__ */ jsx("th", { scope: "col", rowSpan, className: styles.corner, "aria-hidden": cornerLabel == null, children: cornerLabel });
|
|
15
|
+
if (!runs) {
|
|
16
|
+
return /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
17
|
+
corner,
|
|
18
|
+
columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column }, column.key))
|
|
19
|
+
] }) });
|
|
20
|
+
}
|
|
21
|
+
const groupsByKey = new Map(columnGroups == null ? void 0 : columnGroups.map((group) => [group.key, group]));
|
|
22
|
+
const groupedColumns = runs.filter((run) => run.group !== void 0).flatMap((run) => run.columns);
|
|
23
|
+
return /* @__PURE__ */ jsxs("thead", { children: [
|
|
24
|
+
/* @__PURE__ */ jsxs("tr", { children: [
|
|
25
|
+
corner,
|
|
26
|
+
runs.map((run) => {
|
|
27
|
+
if (run.group === void 0) {
|
|
28
|
+
return run.columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column, rowSpan }, column.key));
|
|
29
|
+
}
|
|
30
|
+
const entry = groupsByKey.get(run.group);
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
"th",
|
|
33
|
+
{
|
|
34
|
+
scope: "colgroup",
|
|
35
|
+
colSpan: run.columns.length,
|
|
36
|
+
className: styles.group,
|
|
37
|
+
title: entry == null ? void 0 : entry.title,
|
|
38
|
+
children: (entry == null ? void 0 : entry.label) ?? run.group
|
|
39
|
+
},
|
|
40
|
+
`group-${run.start}`
|
|
41
|
+
);
|
|
42
|
+
})
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ jsx("tr", { children: groupedColumns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column }, column.key)) })
|
|
45
|
+
] });
|
|
46
|
+
}
|
|
7
47
|
export {
|
|
8
|
-
|
|
9
|
-
dot,
|
|
10
|
-
root
|
|
48
|
+
HeatmapMatrixHeader
|
|
11
49
|
};
|
|
12
50
|
//# sourceMappingURL=index108.js.map
|
package/dist/index108.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index108.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index108.js","sources":["../src/data/HeatmapMatrix/HeatmapMatrixHeader.tsx"],"sourcesContent":["import { HEATMAP_GROUPED_HEADER_ROWS } from '../../constants';\nimport type { HeatmapColumnHeaderProps, HeatmapMatrixHeaderProps } from './HeatmapMatrix.types';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction ColumnHeader({ column, rowSpan }: HeatmapColumnHeaderProps) {\n return (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.colh} title={column.title}>\n {column.label}\n </th>\n );\n}\n\n/**\n * Flat (one row) when `runs` is undefined, so the DOM stays as it was before column groups.\n * Grouped: the corner and ungrouped columns span both rows; each grouped run gets one\n * `scope=\"colgroup\"` header above its columns.\n */\nexport function HeatmapMatrixHeader({\n columns,\n runs,\n columnGroups,\n cornerLabel,\n}: HeatmapMatrixHeaderProps) {\n const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : undefined;\n const corner = (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.corner} aria-hidden={cornerLabel == null}>\n {cornerLabel}\n </th>\n );\n\n if (!runs) {\n return (\n <thead>\n <tr>\n {corner}\n {columns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n }\n\n const groupsByKey = new Map(columnGroups?.map((group) => [group.key, group]));\n const groupedColumns = runs\n .filter((run) => run.group !== undefined)\n .flatMap((run) => run.columns);\n\n return (\n <thead>\n <tr>\n {corner}\n {runs.map((run) => {\n if (run.group === undefined) {\n return run.columns.map((column) => (\n <ColumnHeader key={column.key} column={column} rowSpan={rowSpan} />\n ));\n }\n const entry = groupsByKey.get(run.group);\n return (\n <th\n key={`group-${run.start}`}\n scope=\"colgroup\"\n colSpan={run.columns.length}\n className={styles.group}\n title={entry?.title}\n >\n {entry?.label ?? run.group}\n </th>\n );\n })}\n </tr>\n <tr>\n {groupedColumns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n}\n"],"names":[],"mappings":";;;AAIA,SAAS,aAAa,EAAE,QAAQ,WAAqC;AACnE,SACE,oBAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAW,OAAO,MAAM,OAAO,OAAO,OACrE,UAAA,OAAO,OACV;AAEJ;AAOO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,QAAM,UAAU,OAAO,8BAA8B;AACrD,QAAM,SACJ,oBAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAW,OAAO,QAAQ,eAAa,eAAe,MACrF,UAAA,aACH;AAGF,MAAI,CAAC,MAAM;AACT,WACE,oBAAC,SAAA,EACC,UAAA,qBAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,QAAQ,IAAI,CAAC,+BACX,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD;AAAA,IAAA,EAAA,CACH,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,cAAc,IAAI,IAAI,6CAAc,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,EAAE;AAC5E,QAAM,iBAAiB,KACpB,OAAO,CAAC,QAAQ,IAAI,UAAU,MAAS,EACvC,QAAQ,CAAC,QAAQ,IAAI,OAAO;AAE/B,8BACG,SAAA,EACC,UAAA;AAAA,IAAA,qBAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,KAAK,IAAI,CAAC,QAAQ;AACjB,YAAI,IAAI,UAAU,QAAW;AAC3B,iBAAO,IAAI,QAAQ,IAAI,CAAC,WACtB,oBAAC,cAAA,EAA8B,QAAgB,QAAA,GAA5B,OAAO,GAAuC,CAClE;AAAA,QACH;AACA,cAAM,QAAQ,YAAY,IAAI,IAAI,KAAK;AACvC,eACE;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,OAAM;AAAA,YACN,SAAS,IAAI,QAAQ;AAAA,YACrB,WAAW,OAAO;AAAA,YAClB,OAAO,+BAAO;AAAA,YAEb,WAAA,+BAAO,UAAS,IAAI;AAAA,UAAA;AAAA,UANhB,SAAS,IAAI,KAAK;AAAA,QAAA;AAAA,MAS7B,CAAC;AAAA,IAAA,GACH;AAAA,IACA,oBAAC,MAAA,EACE,UAAA,eAAe,IAAI,CAAC,WACnB,oBAAC,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index109.cjs
CHANGED
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
const boundsOf = (points) => {
|
|
12
|
-
if (points.length === 0) return null;
|
|
13
|
-
const latitudes = points.map((p) => p.point.latitude);
|
|
14
|
-
const longitudes = points.map((p) => p.point.longitude);
|
|
15
|
-
return [
|
|
16
|
-
[Math.min(...latitudes), Math.min(...longitudes)],
|
|
17
|
-
[Math.max(...latitudes), Math.max(...longitudes)]
|
|
18
|
-
];
|
|
19
|
-
};
|
|
20
|
-
const normalizePoints = (points, maxPoints) => {
|
|
21
|
-
const usable = [];
|
|
22
|
-
points.forEach((point, sourceIndex) => {
|
|
23
|
-
if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });
|
|
24
|
-
});
|
|
25
|
-
const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;
|
|
26
|
-
return {
|
|
27
|
-
drawn,
|
|
28
|
-
bounds: boundsOf(drawn),
|
|
29
|
-
info: {
|
|
30
|
-
total: points.length,
|
|
31
|
-
drawn: drawn.length,
|
|
32
|
-
skipped: points.length - usable.length,
|
|
33
|
-
dropped: usable.length - drawn.length
|
|
3
|
+
function getColumnRuns(columns) {
|
|
4
|
+
const runs = [];
|
|
5
|
+
columns.forEach((column, index) => {
|
|
6
|
+
const current = runs[runs.length - 1];
|
|
7
|
+
if (current && current.group === column.group) {
|
|
8
|
+
current.columns.push(column);
|
|
9
|
+
} else {
|
|
10
|
+
runs.push({ group: column.group, start: index, columns: [column] });
|
|
34
11
|
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
12
|
+
});
|
|
13
|
+
return runs;
|
|
14
|
+
}
|
|
15
|
+
function hasColumnGroups(columns) {
|
|
16
|
+
return columns.some((column) => column.group !== void 0);
|
|
17
|
+
}
|
|
18
|
+
exports.getColumnRuns = getColumnRuns;
|
|
19
|
+
exports.hasColumnGroups = hasColumnGroups;
|
|
38
20
|
//# sourceMappingURL=index109.cjs.map
|
package/dist/index109.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index109.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index109.cjs","sources":["../src/data/HeatmapMatrix/getColumnRuns.ts"],"sourcesContent":["import type { ColumnRun, HeatmapColumn } from './HeatmapMatrix.types';\n\n/**\n * Splits `columns` into runs of consecutive columns sharing the same `group`. Never sorts: a group\n * that appears in two non-contiguous places yields two runs, and ungrouped columns form their own\n * runs (`group` undefined).\n */\nexport function getColumnRuns(columns: HeatmapColumn[]): ColumnRun[] {\n const runs: ColumnRun[] = [];\n columns.forEach((column, index) => {\n const current = runs[runs.length - 1];\n if (current && current.group === column.group) {\n current.columns.push(column);\n } else {\n runs.push({ group: column.group, start: index, columns: [column] });\n }\n });\n return runs;\n}\n\n/** True when at least one column declares a `group`, i.e. the two-row header is needed. */\nexport function hasColumnGroups(columns: HeatmapColumn[]): boolean {\n return columns.some((column) => column.group !== undefined);\n}\n"],"names":[],"mappings":";;AAOO,SAAS,cAAc,SAAuC;AACnE,QAAM,OAAoB,CAAA;AAC1B,UAAQ,QAAQ,CAAC,QAAQ,UAAU;AACjC,UAAM,UAAU,KAAK,KAAK,SAAS,CAAC;AACpC,QAAI,WAAW,QAAQ,UAAU,OAAO,OAAO;AAC7C,cAAQ,QAAQ,KAAK,MAAM;AAAA,IAC7B,OAAO;AACL,WAAK,KAAK,EAAE,OAAO,OAAO,OAAO,OAAO,OAAO,SAAS,CAAC,MAAM,EAAA,CAAG;AAAA,IACpE;AAAA,EACF,CAAC;AACD,SAAO;AACT;AAGO,SAAS,gBAAgB,SAAmC;AACjE,SAAO,QAAQ,KAAK,CAAC,WAAW,OAAO,UAAU,MAAS;AAC5D;;;"}
|
package/dist/index109.js
CHANGED
|
@@ -1,38 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
const boundsOf = (points) => {
|
|
10
|
-
if (points.length === 0) return null;
|
|
11
|
-
const latitudes = points.map((p) => p.point.latitude);
|
|
12
|
-
const longitudes = points.map((p) => p.point.longitude);
|
|
13
|
-
return [
|
|
14
|
-
[Math.min(...latitudes), Math.min(...longitudes)],
|
|
15
|
-
[Math.max(...latitudes), Math.max(...longitudes)]
|
|
16
|
-
];
|
|
17
|
-
};
|
|
18
|
-
const normalizePoints = (points, maxPoints) => {
|
|
19
|
-
const usable = [];
|
|
20
|
-
points.forEach((point, sourceIndex) => {
|
|
21
|
-
if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });
|
|
22
|
-
});
|
|
23
|
-
const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;
|
|
24
|
-
return {
|
|
25
|
-
drawn,
|
|
26
|
-
bounds: boundsOf(drawn),
|
|
27
|
-
info: {
|
|
28
|
-
total: points.length,
|
|
29
|
-
drawn: drawn.length,
|
|
30
|
-
skipped: points.length - usable.length,
|
|
31
|
-
dropped: usable.length - drawn.length
|
|
1
|
+
function getColumnRuns(columns) {
|
|
2
|
+
const runs = [];
|
|
3
|
+
columns.forEach((column, index) => {
|
|
4
|
+
const current = runs[runs.length - 1];
|
|
5
|
+
if (current && current.group === column.group) {
|
|
6
|
+
current.columns.push(column);
|
|
7
|
+
} else {
|
|
8
|
+
runs.push({ group: column.group, start: index, columns: [column] });
|
|
32
9
|
}
|
|
33
|
-
};
|
|
34
|
-
|
|
10
|
+
});
|
|
11
|
+
return runs;
|
|
12
|
+
}
|
|
13
|
+
function hasColumnGroups(columns) {
|
|
14
|
+
return columns.some((column) => column.group !== void 0);
|
|
15
|
+
}
|
|
35
16
|
export {
|
|
36
|
-
|
|
17
|
+
getColumnRuns,
|
|
18
|
+
hasColumnGroups
|
|
37
19
|
};
|
|
38
20
|
//# sourceMappingURL=index109.js.map
|
package/dist/index109.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index109.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index109.js","sources":["../src/data/HeatmapMatrix/getColumnRuns.ts"],"sourcesContent":["import type { ColumnRun, HeatmapColumn } from './HeatmapMatrix.types';\n\n/**\n * Splits `columns` into runs of consecutive columns sharing the same `group`. Never sorts: a group\n * that appears in two non-contiguous places yields two runs, and ungrouped columns form their own\n * runs (`group` undefined).\n */\nexport function getColumnRuns(columns: HeatmapColumn[]): ColumnRun[] {\n const runs: ColumnRun[] = [];\n columns.forEach((column, index) => {\n const current = runs[runs.length - 1];\n if (current && current.group === column.group) {\n current.columns.push(column);\n } else {\n runs.push({ group: column.group, start: index, columns: [column] });\n }\n });\n return runs;\n}\n\n/** True when at least one column declares a `group`, i.e. the two-row header is needed. */\nexport function hasColumnGroups(columns: HeatmapColumn[]): boolean {\n return columns.some((column) => column.group !== undefined);\n}\n"],"names":[],"mappings":"AAOO,SAAS,cAAc,SAAuC;AACnE,QAAM,OAAoB,CAAA;AAC1B,UAAQ,QAAQ,CAAC,QAAQ,UAAU;AACjC,UAAM,UAAU,KAAK,KAAK,SAAS,CAAC;AACpC,QAAI,WAAW,QAAQ,UAAU,OAAO,OAAO;AAC7C,cAAQ,QAAQ,KAAK,MAAM;AAAA,IAC7B,OAAO;AACL,WAAK,KAAK,EAAE,OAAO,OAAO,OAAO,OAAO,OAAO,SAAS,CAAC,MAAM,EAAA,CAAG;AAAA,IACpE;AAAA,EACF,CAAC;AACD,SAAO;AACT;AAGO,SAAS,gBAAgB,SAAmC;AACjE,SAAO,QAAQ,KAAK,CAAC,WAAW,OAAO,UAAU,MAAS;AAC5D;"}
|
package/dist/index110.cjs
CHANGED
|
@@ -1,46 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const wrap = "krc-wrap-JRsc1";
|
|
4
|
+
const root = "krc-root-k9ocd";
|
|
5
|
+
const colh = "krc-colh-Fi0Kr";
|
|
6
|
+
const group = "krc-group-rVQPU";
|
|
7
|
+
const groupStart = "krc-groupStart-bu8S4";
|
|
8
|
+
const rowh = "krc-rowh-bTG4G";
|
|
9
|
+
const corner = "krc-corner-MNGJd";
|
|
10
|
+
const cell = "krc-cell-i0lDG";
|
|
11
|
+
const bad = "krc-bad-Hb1F3";
|
|
12
|
+
const ok = "krc-ok-hx6Lc";
|
|
13
|
+
const clickable = "krc-clickable-Q8fZg";
|
|
14
|
+
const styles = {
|
|
15
|
+
wrap,
|
|
16
|
+
root,
|
|
17
|
+
colh,
|
|
18
|
+
group,
|
|
19
|
+
groupStart,
|
|
20
|
+
rowh,
|
|
21
|
+
corner,
|
|
22
|
+
cell,
|
|
23
|
+
bad,
|
|
24
|
+
ok,
|
|
25
|
+
clickable
|
|
8
26
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
const radiusFor = (weight, scale) => {
|
|
23
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return constants.GEO_MAP.BASE_MARKER_RADIUS;
|
|
24
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
25
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
26
|
-
const minArea = constants.GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
27
|
-
const maxArea = constants.GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
28
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
29
|
-
};
|
|
30
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
31
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
32
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
33
|
-
return {
|
|
34
|
-
radius: selected ? radius + constants.GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
35
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
36
|
-
weight: selected ? constants.GEO_MAP.SELECTED_STROKE_WIDTH : constants.GEO_MAP.MARKER_STROKE_WIDTH,
|
|
37
|
-
fillColor,
|
|
38
|
-
fillOpacity: selected ? 1 : constants.GEO_MAP.MARKER_FILL_OPACITY
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
42
|
-
exports.buildCategoryColors = buildCategoryColors;
|
|
43
|
-
exports.buildLegendItems = buildLegendItems;
|
|
44
|
-
exports.buildMarkerStyle = buildMarkerStyle;
|
|
45
|
-
exports.buildWeightScale = buildWeightScale;
|
|
27
|
+
exports.bad = bad;
|
|
28
|
+
exports.cell = cell;
|
|
29
|
+
exports.clickable = clickable;
|
|
30
|
+
exports.colh = colh;
|
|
31
|
+
exports.corner = corner;
|
|
32
|
+
exports.default = styles;
|
|
33
|
+
exports.group = group;
|
|
34
|
+
exports.groupStart = groupStart;
|
|
35
|
+
exports.ok = ok;
|
|
36
|
+
exports.root = root;
|
|
37
|
+
exports.rowh = rowh;
|
|
38
|
+
exports.wrap = wrap;
|
|
46
39
|
//# sourceMappingURL=index110.cjs.map
|
package/dist/index110.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index110.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index110.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index110.js
CHANGED
|
@@ -1,46 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const wrap = "krc-wrap-JRsc1";
|
|
2
|
+
const root = "krc-root-k9ocd";
|
|
3
|
+
const colh = "krc-colh-Fi0Kr";
|
|
4
|
+
const group = "krc-group-rVQPU";
|
|
5
|
+
const groupStart = "krc-groupStart-bu8S4";
|
|
6
|
+
const rowh = "krc-rowh-bTG4G";
|
|
7
|
+
const corner = "krc-corner-MNGJd";
|
|
8
|
+
const cell = "krc-cell-i0lDG";
|
|
9
|
+
const bad = "krc-bad-Hb1F3";
|
|
10
|
+
const ok = "krc-ok-hx6Lc";
|
|
11
|
+
const clickable = "krc-clickable-Q8fZg";
|
|
12
|
+
const styles = {
|
|
13
|
+
wrap,
|
|
14
|
+
root,
|
|
15
|
+
colh,
|
|
16
|
+
group,
|
|
17
|
+
groupStart,
|
|
18
|
+
rowh,
|
|
19
|
+
corner,
|
|
20
|
+
cell,
|
|
21
|
+
bad,
|
|
22
|
+
ok,
|
|
23
|
+
clickable
|
|
6
24
|
};
|
|
7
|
-
const UNCATEGORISED_COLOR = orbitTokens.brand.orange;
|
|
8
|
-
const buildCategoryColors = (points) => {
|
|
9
|
-
const categories = [...new Set(points.map((p) => p.category).filter((c) => c != null))];
|
|
10
|
-
categories.sort((a, b) => a.localeCompare(b));
|
|
11
|
-
return new Map(categories.map((category, i) => [category, CHART_COLORS[i % CHART_COLORS.length]]));
|
|
12
|
-
};
|
|
13
|
-
const buildWeightScale = (points) => {
|
|
14
|
-
const weights = points.map((p) => p.weight).filter((w) => w != null && Number.isFinite(w));
|
|
15
|
-
if (weights.length === 0) return null;
|
|
16
|
-
const min = Math.min(...weights);
|
|
17
|
-
const max = Math.max(...weights);
|
|
18
|
-
return min === max ? null : { min, max };
|
|
19
|
-
};
|
|
20
|
-
const radiusFor = (weight, scale) => {
|
|
21
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return GEO_MAP.BASE_MARKER_RADIUS;
|
|
22
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
23
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
24
|
-
const minArea = GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
25
|
-
const maxArea = GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
26
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
27
|
-
};
|
|
28
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
29
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
30
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
31
|
-
return {
|
|
32
|
-
radius: selected ? radius + GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
33
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
34
|
-
weight: selected ? GEO_MAP.SELECTED_STROKE_WIDTH : GEO_MAP.MARKER_STROKE_WIDTH,
|
|
35
|
-
fillColor,
|
|
36
|
-
fillOpacity: selected ? 1 : GEO_MAP.MARKER_FILL_OPACITY
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
40
25
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
bad,
|
|
27
|
+
cell,
|
|
28
|
+
clickable,
|
|
29
|
+
colh,
|
|
30
|
+
corner,
|
|
31
|
+
styles as default,
|
|
32
|
+
group,
|
|
33
|
+
groupStart,
|
|
34
|
+
ok,
|
|
35
|
+
root,
|
|
36
|
+
rowh,
|
|
37
|
+
wrap
|
|
45
38
|
};
|
|
46
39
|
//# sourceMappingURL=index110.js.map
|
package/dist/index110.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index110.js","sources":[
|
|
1
|
+
{"version":3,"file":"index110.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index111.cjs
CHANGED
|
@@ -1,27 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-W2sel";
|
|
4
|
+
const tableContainer = "krc-tableContainer-Ed3uk";
|
|
5
|
+
const table = "krc-table-7p0H-";
|
|
6
|
+
const th = "krc-th-fNmfv";
|
|
7
|
+
const sortable = "krc-sortable-Ve0MQ";
|
|
8
|
+
const thContent = "krc-thContent-BRDIL";
|
|
9
|
+
const sortIndicator = "krc-sortIndicator-PtGYj";
|
|
10
|
+
const resizeHandle = "krc-resizeHandle--St-g";
|
|
11
|
+
const td = "krc-td-ZVsrU";
|
|
12
|
+
const row = "krc-row-JivMH";
|
|
13
|
+
const rowClickable = "krc-rowClickable-lTgQW";
|
|
14
|
+
const rowSelected = "krc-rowSelected-Sv0qs";
|
|
15
|
+
const skeletonRow = "krc-skeletonRow-uD1y7";
|
|
16
|
+
const skeleton = "krc-skeleton-eeYso";
|
|
17
|
+
const empty = "krc-empty-xKpKS";
|
|
18
|
+
const loadMore = "krc-loadMore-njxDN";
|
|
19
|
+
const loadMoreButton = "krc-loadMoreButton-C3Q-f";
|
|
20
|
+
const styles = {
|
|
21
|
+
root,
|
|
22
|
+
tableContainer,
|
|
23
|
+
table,
|
|
24
|
+
th,
|
|
25
|
+
sortable,
|
|
26
|
+
thContent,
|
|
27
|
+
sortIndicator,
|
|
28
|
+
resizeHandle,
|
|
29
|
+
td,
|
|
30
|
+
row,
|
|
31
|
+
rowClickable,
|
|
32
|
+
rowSelected,
|
|
33
|
+
skeletonRow,
|
|
34
|
+
skeleton,
|
|
35
|
+
empty,
|
|
36
|
+
loadMore,
|
|
37
|
+
loadMoreButton
|
|
24
38
|
};
|
|
25
|
-
|
|
26
|
-
exports.
|
|
39
|
+
exports.default = styles;
|
|
40
|
+
exports.empty = empty;
|
|
41
|
+
exports.loadMore = loadMore;
|
|
42
|
+
exports.loadMoreButton = loadMoreButton;
|
|
43
|
+
exports.resizeHandle = resizeHandle;
|
|
44
|
+
exports.root = root;
|
|
45
|
+
exports.row = row;
|
|
46
|
+
exports.rowClickable = rowClickable;
|
|
47
|
+
exports.rowSelected = rowSelected;
|
|
48
|
+
exports.skeleton = skeleton;
|
|
49
|
+
exports.skeletonRow = skeletonRow;
|
|
50
|
+
exports.sortIndicator = sortIndicator;
|
|
51
|
+
exports.sortable = sortable;
|
|
52
|
+
exports.table = table;
|
|
53
|
+
exports.tableContainer = tableContainer;
|
|
54
|
+
exports.td = td;
|
|
55
|
+
exports.th = th;
|
|
56
|
+
exports.thContent = thContent;
|
|
27
57
|
//# sourceMappingURL=index111.cjs.map
|
package/dist/index111.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index111.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index111.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|