@ktnpm_devops/react-component 0.15.0 → 0.16.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.
Files changed (377) hide show
  1. package/dist/constants.d.ts +2 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/data/HeatmapMatrix/HeatmapMatrix.d.ts.map +1 -1
  4. package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts +42 -0
  5. package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts.map +1 -1
  6. package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts +9 -0
  7. package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts.map +1 -0
  8. package/dist/data/HeatmapMatrix/getColumnRuns.d.ts +11 -0
  9. package/dist/data/HeatmapMatrix/getColumnRuns.d.ts.map +1 -0
  10. package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts +2 -0
  11. package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts.map +1 -0
  12. package/dist/data/HeatmapMatrix/index.d.ts +1 -1
  13. package/dist/data/HeatmapMatrix/index.d.ts.map +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index10.cjs +1 -1
  17. package/dist/index10.js +1 -1
  18. package/dist/index100.cjs +32 -8
  19. package/dist/index100.cjs.map +1 -1
  20. package/dist/index100.js +33 -9
  21. package/dist/index100.js.map +1 -1
  22. package/dist/index101.cjs +53 -2
  23. package/dist/index101.cjs.map +1 -1
  24. package/dist/index101.js +54 -3
  25. package/dist/index101.js.map +1 -1
  26. package/dist/index102.cjs +39 -6
  27. package/dist/index102.cjs.map +1 -1
  28. package/dist/index102.js +38 -5
  29. package/dist/index102.js.map +1 -1
  30. package/dist/index103.cjs +92 -69
  31. package/dist/index103.cjs.map +1 -1
  32. package/dist/index103.js +91 -68
  33. package/dist/index103.js.map +1 -1
  34. package/dist/index104.cjs +34 -19
  35. package/dist/index104.cjs.map +1 -1
  36. package/dist/index104.js +35 -20
  37. package/dist/index104.js.map +1 -1
  38. package/dist/index105.cjs +116 -22
  39. package/dist/index105.cjs.map +1 -1
  40. package/dist/index105.js +115 -21
  41. package/dist/index105.js.map +1 -1
  42. package/dist/index106.cjs +43 -134
  43. package/dist/index106.cjs.map +1 -1
  44. package/dist/index106.js +42 -133
  45. package/dist/index106.js.map +1 -1
  46. package/dist/index107.cjs +16 -40
  47. package/dist/index107.cjs.map +1 -1
  48. package/dist/index107.js +16 -40
  49. package/dist/index107.js.map +1 -1
  50. package/dist/index108.cjs +4 -25
  51. package/dist/index108.cjs.map +1 -1
  52. package/dist/index108.js +5 -26
  53. package/dist/index108.js.map +1 -1
  54. package/dist/index109.cjs +35 -39
  55. package/dist/index109.cjs.map +1 -1
  56. package/dist/index109.js +34 -38
  57. package/dist/index109.js.map +1 -1
  58. package/dist/index11.cjs +1 -1
  59. package/dist/index11.js +1 -1
  60. package/dist/index110.cjs +43 -57
  61. package/dist/index110.cjs.map +1 -1
  62. package/dist/index110.js +42 -56
  63. package/dist/index110.js.map +1 -1
  64. package/dist/index111.cjs +24 -24
  65. package/dist/index111.cjs.map +1 -1
  66. package/dist/index111.js +23 -23
  67. package/dist/index111.js.map +1 -1
  68. package/dist/index112.cjs +20 -7
  69. package/dist/index112.cjs.map +1 -1
  70. package/dist/index112.js +19 -6
  71. package/dist/index112.js.map +1 -1
  72. package/dist/index113.cjs +14 -25
  73. package/dist/index113.cjs.map +1 -1
  74. package/dist/index113.js +13 -24
  75. package/dist/index113.js.map +1 -1
  76. package/dist/index114.cjs +57 -36
  77. package/dist/index114.cjs.map +1 -1
  78. package/dist/index114.js +57 -36
  79. package/dist/index114.js.map +1 -1
  80. package/dist/index115.cjs +21 -39
  81. package/dist/index115.cjs.map +1 -1
  82. package/dist/index115.js +20 -38
  83. package/dist/index115.js.map +1 -1
  84. package/dist/index116.cjs +18 -92
  85. package/dist/index116.cjs.map +1 -1
  86. package/dist/index116.js +17 -91
  87. package/dist/index116.js.map +1 -1
  88. package/dist/index117.cjs +15 -33
  89. package/dist/index117.cjs.map +1 -1
  90. package/dist/index117.js +16 -34
  91. package/dist/index117.js.map +1 -1
  92. package/dist/index118.cjs +16 -116
  93. package/dist/index118.cjs.map +1 -1
  94. package/dist/index118.js +15 -115
  95. package/dist/index118.js.map +1 -1
  96. package/dist/index119.cjs +32 -35
  97. package/dist/index119.cjs.map +1 -1
  98. package/dist/index119.js +32 -35
  99. package/dist/index119.js.map +1 -1
  100. package/dist/index12.cjs +1 -1
  101. package/dist/index12.js +1 -1
  102. package/dist/index120.cjs +48 -85
  103. package/dist/index120.cjs.map +1 -1
  104. package/dist/index120.js +47 -84
  105. package/dist/index120.js.map +1 -1
  106. package/dist/index121.cjs +18 -25
  107. package/dist/index121.cjs.map +1 -1
  108. package/dist/index121.js +17 -24
  109. package/dist/index121.js.map +1 -1
  110. package/dist/index122.cjs +37 -1164
  111. package/dist/index122.cjs.map +1 -1
  112. package/dist/index122.js +35 -1163
  113. package/dist/index122.js.map +1 -1
  114. package/dist/index123.cjs +42 -1575
  115. package/dist/index123.cjs.map +1 -1
  116. package/dist/index123.js +41 -1575
  117. package/dist/index123.js.map +1 -1
  118. package/dist/index124.cjs +1166 -0
  119. package/dist/index124.cjs.map +1 -0
  120. package/dist/index124.js +1167 -0
  121. package/dist/index124.js.map +1 -0
  122. package/dist/index125.cjs +1578 -0
  123. package/dist/index125.cjs.map +1 -0
  124. package/dist/index125.js +1579 -0
  125. package/dist/index125.js.map +1 -0
  126. package/dist/index13.cjs +1 -1
  127. package/dist/index13.js +1 -1
  128. package/dist/index14.cjs +1 -1
  129. package/dist/index14.js +1 -1
  130. package/dist/index15.cjs +1 -1
  131. package/dist/index15.js +1 -1
  132. package/dist/index16.cjs +2 -2
  133. package/dist/index16.js +2 -2
  134. package/dist/index17.cjs +1 -1
  135. package/dist/index17.js +1 -1
  136. package/dist/index18.cjs +1 -1
  137. package/dist/index18.js +1 -1
  138. package/dist/index19.cjs +1 -1
  139. package/dist/index19.js +1 -1
  140. package/dist/index20.cjs +1 -1
  141. package/dist/index20.js +1 -1
  142. package/dist/index21.cjs +1 -1
  143. package/dist/index21.js +1 -1
  144. package/dist/index22.cjs +2 -2
  145. package/dist/index22.js +2 -2
  146. package/dist/index23.cjs +2 -2
  147. package/dist/index23.js +2 -2
  148. package/dist/index24.cjs +2 -2
  149. package/dist/index24.js +2 -2
  150. package/dist/index25.cjs +1 -1
  151. package/dist/index25.js +1 -1
  152. package/dist/index26.cjs +1 -1
  153. package/dist/index26.js +1 -1
  154. package/dist/index27.cjs +1 -1
  155. package/dist/index27.js +1 -1
  156. package/dist/index28.cjs +1 -1
  157. package/dist/index28.js +1 -1
  158. package/dist/index29.cjs +1 -1
  159. package/dist/index29.js +1 -1
  160. package/dist/index30.cjs +7 -7
  161. package/dist/index30.js +7 -7
  162. package/dist/index31.cjs +4 -4
  163. package/dist/index31.js +4 -4
  164. package/dist/index32.cjs +78 -53
  165. package/dist/index32.cjs.map +1 -1
  166. package/dist/index32.js +79 -54
  167. package/dist/index32.js.map +1 -1
  168. package/dist/index33.cjs +1 -1
  169. package/dist/index33.js +1 -1
  170. package/dist/index34.cjs +2 -2
  171. package/dist/index34.js +2 -2
  172. package/dist/index35.cjs +2 -2
  173. package/dist/index35.js +2 -2
  174. package/dist/index36.cjs +2 -2
  175. package/dist/index36.js +2 -2
  176. package/dist/index37.cjs +1 -1
  177. package/dist/index37.js +1 -1
  178. package/dist/index38.cjs +2 -2
  179. package/dist/index38.js +2 -2
  180. package/dist/index39.cjs +1 -1
  181. package/dist/index39.js +1 -1
  182. package/dist/index40.cjs +2 -2
  183. package/dist/index40.js +2 -2
  184. package/dist/index41.cjs +2 -2
  185. package/dist/index41.js +2 -2
  186. package/dist/index42.cjs +2 -2
  187. package/dist/index42.js +2 -2
  188. package/dist/index43.cjs +1 -1
  189. package/dist/index43.js +1 -1
  190. package/dist/index44.cjs +2 -2
  191. package/dist/index44.js +2 -2
  192. package/dist/index45.cjs +4 -4
  193. package/dist/index45.js +4 -4
  194. package/dist/index46.cjs +1 -1
  195. package/dist/index46.js +1 -1
  196. package/dist/index47.cjs +1 -1
  197. package/dist/index47.js +1 -1
  198. package/dist/index48.cjs +1 -1
  199. package/dist/index48.js +1 -1
  200. package/dist/index49.cjs +2 -2
  201. package/dist/index49.js +2 -2
  202. package/dist/index50.cjs +2 -2
  203. package/dist/index50.js +2 -2
  204. package/dist/index51.cjs +1 -1
  205. package/dist/index51.js +1 -1
  206. package/dist/index52.cjs +3 -3
  207. package/dist/index52.js +3 -3
  208. package/dist/index53.cjs +1 -1
  209. package/dist/index53.js +1 -1
  210. package/dist/index54.cjs +1 -1
  211. package/dist/index54.js +1 -1
  212. package/dist/index55.cjs +3 -3
  213. package/dist/index55.js +3 -3
  214. package/dist/index56.cjs +1 -1
  215. package/dist/index56.js +1 -1
  216. package/dist/index57.cjs +1 -1
  217. package/dist/index57.js +1 -1
  218. package/dist/index58.cjs +2 -2
  219. package/dist/index58.js +2 -2
  220. package/dist/index60.cjs +22 -10
  221. package/dist/index60.cjs.map +1 -1
  222. package/dist/index60.js +22 -10
  223. package/dist/index60.js.map +1 -1
  224. package/dist/index61.cjs +23 -5
  225. package/dist/index61.cjs.map +1 -1
  226. package/dist/index61.js +24 -6
  227. package/dist/index61.js.map +1 -1
  228. package/dist/index62.cjs +18 -17
  229. package/dist/index62.cjs.map +1 -1
  230. package/dist/index62.js +17 -16
  231. package/dist/index62.js.map +1 -1
  232. package/dist/index63.cjs +142 -6
  233. package/dist/index63.cjs.map +1 -1
  234. package/dist/index63.js +141 -5
  235. package/dist/index63.js.map +1 -1
  236. package/dist/index64.cjs +20 -2
  237. package/dist/index64.cjs.map +1 -1
  238. package/dist/index64.js +21 -3
  239. package/dist/index64.js.map +1 -1
  240. package/dist/index65.cjs +19 -141
  241. package/dist/index65.cjs.map +1 -1
  242. package/dist/index65.js +17 -139
  243. package/dist/index65.js.map +1 -1
  244. package/dist/index66.cjs +13 -16
  245. package/dist/index66.cjs.map +1 -1
  246. package/dist/index66.js +14 -17
  247. package/dist/index66.js.map +1 -1
  248. package/dist/index67.cjs +16 -46
  249. package/dist/index67.cjs.map +1 -1
  250. package/dist/index67.js +16 -46
  251. package/dist/index67.js.map +1 -1
  252. package/dist/index68.cjs +16 -52
  253. package/dist/index68.cjs.map +1 -1
  254. package/dist/index68.js +16 -52
  255. package/dist/index68.js.map +1 -1
  256. package/dist/index70.cjs +20 -2
  257. package/dist/index70.cjs.map +1 -1
  258. package/dist/index70.js +20 -2
  259. package/dist/index70.js.map +1 -1
  260. package/dist/index71.cjs +45 -12
  261. package/dist/index71.cjs.map +1 -1
  262. package/dist/index71.js +46 -13
  263. package/dist/index71.js.map +1 -1
  264. package/dist/index72.cjs +2 -35
  265. package/dist/index72.cjs.map +1 -1
  266. package/dist/index72.js +3 -36
  267. package/dist/index72.js.map +1 -1
  268. package/dist/index73.cjs +77 -26
  269. package/dist/index73.cjs.map +1 -1
  270. package/dist/index73.js +77 -26
  271. package/dist/index73.js.map +1 -1
  272. package/dist/index74.cjs +52 -13
  273. package/dist/index74.cjs.map +1 -1
  274. package/dist/index74.js +53 -14
  275. package/dist/index74.js.map +1 -1
  276. package/dist/index75.cjs +34 -10
  277. package/dist/index75.cjs.map +1 -1
  278. package/dist/index75.js +35 -11
  279. package/dist/index75.js.map +1 -1
  280. package/dist/index76.cjs +17 -21
  281. package/dist/index76.cjs.map +1 -1
  282. package/dist/index76.js +16 -20
  283. package/dist/index76.js.map +1 -1
  284. package/dist/index77.cjs +2 -5
  285. package/dist/index77.cjs.map +1 -1
  286. package/dist/index77.js +2 -5
  287. package/dist/index77.js.map +1 -1
  288. package/dist/index78.cjs +2 -38
  289. package/dist/index78.cjs.map +1 -1
  290. package/dist/index78.js +3 -39
  291. package/dist/index78.js.map +1 -1
  292. package/dist/index79.cjs +5 -29
  293. package/dist/index79.cjs.map +1 -1
  294. package/dist/index79.js +6 -30
  295. package/dist/index79.js.map +1 -1
  296. package/dist/index80.cjs +29 -17
  297. package/dist/index80.cjs.map +1 -1
  298. package/dist/index80.js +29 -17
  299. package/dist/index80.js.map +1 -1
  300. package/dist/index81.cjs +21 -22
  301. package/dist/index81.cjs.map +1 -1
  302. package/dist/index81.js +20 -21
  303. package/dist/index81.js.map +1 -1
  304. package/dist/index82.cjs +15 -69
  305. package/dist/index82.cjs.map +1 -1
  306. package/dist/index82.js +14 -68
  307. package/dist/index82.js.map +1 -1
  308. package/dist/index83.cjs +24 -7
  309. package/dist/index83.cjs.map +1 -1
  310. package/dist/index83.js +23 -6
  311. package/dist/index83.js.map +1 -1
  312. package/dist/index84.cjs +2 -35
  313. package/dist/index84.cjs.map +1 -1
  314. package/dist/index84.js +3 -36
  315. package/dist/index84.js.map +1 -1
  316. package/dist/index85.cjs +24 -35
  317. package/dist/index85.cjs.map +1 -1
  318. package/dist/index85.js +23 -34
  319. package/dist/index85.js.map +1 -1
  320. package/dist/index86.cjs +69 -43
  321. package/dist/index86.cjs.map +1 -1
  322. package/dist/index86.js +68 -42
  323. package/dist/index86.js.map +1 -1
  324. package/dist/index87.cjs +24 -24
  325. package/dist/index87.cjs.map +1 -1
  326. package/dist/index87.js +23 -23
  327. package/dist/index87.js.map +1 -1
  328. package/dist/index88.cjs +7 -20
  329. package/dist/index88.cjs.map +1 -1
  330. package/dist/index88.js +6 -19
  331. package/dist/index88.js.map +1 -1
  332. package/dist/index89.cjs +7 -14
  333. package/dist/index89.cjs.map +1 -1
  334. package/dist/index89.js +6 -13
  335. package/dist/index89.js.map +1 -1
  336. package/dist/index90.cjs +8 -53
  337. package/dist/index90.cjs.map +1 -1
  338. package/dist/index90.js +9 -54
  339. package/dist/index90.js.map +1 -1
  340. package/dist/index91.cjs +13 -19
  341. package/dist/index91.cjs.map +1 -1
  342. package/dist/index91.js +14 -20
  343. package/dist/index91.js.map +1 -1
  344. package/dist/index92.cjs +49 -13
  345. package/dist/index92.cjs.map +1 -1
  346. package/dist/index92.js +49 -13
  347. package/dist/index92.js.map +1 -1
  348. package/dist/index93.cjs +134 -55
  349. package/dist/index93.cjs.map +1 -1
  350. package/dist/index93.js +133 -54
  351. package/dist/index93.js.map +1 -1
  352. package/dist/index94.cjs +40 -22
  353. package/dist/index94.cjs.map +1 -1
  354. package/dist/index94.js +40 -22
  355. package/dist/index94.js.map +1 -1
  356. package/dist/index95.cjs +36 -15
  357. package/dist/index95.cjs.map +1 -1
  358. package/dist/index95.js +36 -15
  359. package/dist/index95.js.map +1 -1
  360. package/dist/index96.cjs +28 -13
  361. package/dist/index96.cjs.map +1 -1
  362. package/dist/index96.js +28 -13
  363. package/dist/index96.js.map +1 -1
  364. package/dist/index97.cjs +22 -27
  365. package/dist/index97.cjs.map +1 -1
  366. package/dist/index97.js +21 -26
  367. package/dist/index97.js.map +1 -1
  368. package/dist/index98.cjs +69 -21
  369. package/dist/index98.cjs.map +1 -1
  370. package/dist/index98.js +68 -20
  371. package/dist/index98.js.map +1 -1
  372. package/dist/index99.cjs +7 -21
  373. package/dist/index99.cjs.map +1 -1
  374. package/dist/index99.js +6 -20
  375. package/dist/index99.js.map +1 -1
  376. package/dist/style.css +19 -5
  377. package/package.json +1 -1
package/dist/index21.cjs CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const clsx = require("./index59.cjs");
6
- const Col_module = require("./index64.cjs");
6
+ const Col_module = require("./index78.cjs");
7
7
  const GRID_COLUMNS = 12;
8
8
  function toFlexValue(value) {
9
9
  if (value === true) return 1;
package/dist/index21.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { clsx } from "./index59.js";
4
- import styles from "./index64.js";
4
+ import styles from "./index78.js";
5
5
  const GRID_COLUMNS = 12;
6
6
  function toFlexValue(value) {
7
7
  if (value === true) return 1;
package/dist/index22.cjs CHANGED
@@ -4,9 +4,9 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const reactDom = require("react-dom");
6
6
  const useEscapeKey = require("./index5.cjs");
7
- const constants = require("./index65.cjs");
7
+ const constants = require("./index63.cjs");
8
8
  const clsx = require("./index59.cjs");
9
- const ContextMenu_module = require("./index71.cjs");
9
+ const ContextMenu_module = require("./index91.cjs");
10
10
  const ContextMenu = ({ x, y, items, onClose }) => {
11
11
  const menuRef = react.useRef(null);
12
12
  const [focusedIndex, setFocusedIndex] = react.useState(-1);
package/dist/index22.js CHANGED
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState, useCallback, useEffect } from "react";
3
3
  import { createPortal } from "react-dom";
4
4
  import { useEscapeKey } from "./index5.js";
5
- import { CONTEXT_MENU_MARGIN } from "./index65.js";
5
+ import { CONTEXT_MENU_MARGIN } from "./index63.js";
6
6
  import { clsx } from "./index59.js";
7
- import styles from "./index71.js";
7
+ import styles from "./index91.js";
8
8
  const ContextMenu = ({ x, y, items, onClose }) => {
9
9
  const menuRef = useRef(null);
10
10
  const [focusedIndex, setFocusedIndex] = useState(-1);
package/dist/index23.cjs CHANGED
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const ReactECharts = require("echarts-for-react");
6
6
  const clsx = require("./index59.cjs");
7
- const constants = require("./index65.cjs");
8
- const CounterTimeseriesChart_module = require("./index79.cjs");
7
+ const constants = require("./index63.cjs");
8
+ const CounterTimeseriesChart_module = require("./index96.cjs");
9
9
  const DEFAULT_TIME_RANGE_OPTIONS = ["auto", "1h", "6h", "24h", "7d", "30d"];
10
10
  const buildMarkAreas = (annotations) => annotations.filter((a) => a.end).map((a) => [
11
11
  { name: a.label, xAxis: a.start, itemStyle: { color: a.color ?? "rgba(255,107,90,0.12)" } },
package/dist/index23.js CHANGED
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import ReactECharts from "echarts-for-react";
4
4
  import { clsx } from "./index59.js";
5
- import { CHART_COLORS } from "./index65.js";
6
- import styles from "./index79.js";
5
+ import { CHART_COLORS } from "./index63.js";
6
+ import styles from "./index96.js";
7
7
  const DEFAULT_TIME_RANGE_OPTIONS = ["auto", "1h", "6h", "24h", "7d", "30d"];
8
8
  const buildMarkAreas = (annotations) => annotations.filter((a) => a.end).map((a) => [
9
9
  { name: a.label, xAxis: a.start, itemStyle: { color: a.color ?? "rgba(255,107,90,0.12)" } },
package/dist/index24.cjs CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const clsx = require("./index59.cjs");
6
- const constants = require("./index65.cjs");
7
- const CountersAnalysisCard_module = require("./index110.cjs");
6
+ const constants = require("./index63.cjs");
7
+ const CountersAnalysisCard_module = require("./index101.cjs");
8
8
  const CounterTimeseriesChart = require("./index23.cjs");
9
9
  const COLUMN_HEADERS = [
10
10
  { key: "counter", label: "Counter" },
package/dist/index24.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useMemo } from "react";
3
3
  import { clsx } from "./index59.js";
4
- import { COUNTERS_PAGE_SIZE } from "./index65.js";
5
- import styles from "./index110.js";
4
+ import { COUNTERS_PAGE_SIZE } from "./index63.js";
5
+ import styles from "./index101.js";
6
6
  import { CounterTimeseriesChart } from "./index23.js";
7
7
  const COLUMN_HEADERS = [
8
8
  { key: "counter", label: "Counter" },
package/dist/index25.cjs CHANGED
@@ -6,7 +6,7 @@ const clsx = require("./index59.cjs");
6
6
  const useClickOutside = require("./index4.cjs");
7
7
  const useEscapeKey = require("./index5.cjs");
8
8
  const format = require("./index8.cjs");
9
- const CustomRangePicker_module = require("./index109.cjs");
9
+ const CustomRangePicker_module = require("./index75.cjs");
10
10
  const formatInputValue = (iso) => {
11
11
  if (!iso) return "";
12
12
  const date = new Date(iso);
package/dist/index25.js CHANGED
@@ -4,7 +4,7 @@ import { clsx } from "./index59.js";
4
4
  import { useClickOutside } from "./index4.js";
5
5
  import { useEscapeKey } from "./index5.js";
6
6
  import { formatLocalISOString } from "./index8.js";
7
- import styles from "./index109.js";
7
+ import styles from "./index75.js";
8
8
  const formatInputValue = (iso) => {
9
9
  if (!iso) return "";
10
10
  const date = new Date(iso);
package/dist/index26.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const clsx = require("./index59.cjs");
5
- const DashboardLayout_module = require("./index76.cjs");
5
+ const DashboardLayout_module = require("./index107.cjs");
6
6
  const DashboardLayout = ({
7
7
  sidebar,
8
8
  filterBar,
package/dist/index26.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { clsx } from "./index59.js";
3
- import styles from "./index76.js";
3
+ import styles from "./index107.js";
4
4
  const DashboardLayout = ({
5
5
  sidebar,
6
6
  filterBar,
package/dist/index27.cjs CHANGED
@@ -5,7 +5,7 @@ const react = require("react");
5
5
  const clsx = require("./index59.cjs");
6
6
  const useClickOutside = require("./index4.cjs");
7
7
  const useEscapeKey = require("./index5.cjs");
8
- const DatePickerDropdown_module = require("./index67.cjs");
8
+ const DatePickerDropdown_module = require("./index71.cjs");
9
9
  const MONTHS = [
10
10
  "January",
11
11
  "February",
package/dist/index27.js CHANGED
@@ -3,7 +3,7 @@ import { useState, useRef, useCallback, useEffect, useMemo } from "react";
3
3
  import { clsx } from "./index59.js";
4
4
  import { useClickOutside } from "./index4.js";
5
5
  import { useEscapeKey } from "./index5.js";
6
- import styles from "./index67.js";
6
+ import styles from "./index71.js";
7
7
  const MONTHS = [
8
8
  "January",
9
9
  "February",
package/dist/index28.cjs CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const clsx = require("./index59.cjs");
6
- const EmptyState_module = require("./index99.cjs");
6
+ const EmptyState_module = require("./index68.cjs");
7
7
  const EmptyState = react.forwardRef(
8
8
  ({ title, description, icon, action, variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
9
9
  "div",
package/dist/index28.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { clsx } from "./index59.js";
4
- import styles from "./index99.js";
4
+ import styles from "./index68.js";
5
5
  const EmptyState = forwardRef(
6
6
  ({ title, description, icon, action, variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsxs(
7
7
  "div",
package/dist/index29.cjs CHANGED
@@ -5,7 +5,7 @@ const react = require("react");
5
5
  const clsx = require("./index59.cjs");
6
6
  const useClickOutside = require("./index4.cjs");
7
7
  const useEscapeKey = require("./index5.cjs");
8
- const constants = require("./index65.cjs");
8
+ const constants = require("./index63.cjs");
9
9
  const FilterDropdown_module = require("./index69.cjs");
10
10
  const Chip = require("./index19.cjs");
11
11
  const FilterDropdown = ({
package/dist/index29.js CHANGED
@@ -3,7 +3,7 @@ import { useState, useRef, useEffect, useCallback, useMemo } from "react";
3
3
  import { clsx } from "./index59.js";
4
4
  import { useClickOutside } from "./index4.js";
5
5
  import { useEscapeKey } from "./index5.js";
6
- import { SVG_STROKE_WIDTH, SVG_VIEWBOX, ICON_SIZE } from "./index65.js";
6
+ import { SVG_STROKE_WIDTH, SVG_VIEWBOX, ICON_SIZE } from "./index63.js";
7
7
  import styles from "./index69.js";
8
8
  import { Chip } from "./index19.js";
9
9
  const FilterDropdown = ({
package/dist/index30.cjs CHANGED
@@ -5,13 +5,13 @@ const react = require("react");
5
5
  const reactLeaflet = require("react-leaflet");
6
6
  const clsx = require("./index59.cjs");
7
7
  const useThemeMode = require("./index7.cjs");
8
- const constants = require("./index65.cjs");
9
- const normalizePoints = require("./index85.cjs");
10
- const buildMarkerStyle = require("./index86.cjs");
11
- const MapViewport = require("./index87.cjs");
12
- const MapLegend = require("./index88.cjs");
13
- const PointListing = require("./index89.cjs");
14
- const GeoMapCard_module = require("./index90.cjs");
8
+ const constants = require("./index63.cjs");
9
+ const normalizePoints = require("./index109.cjs");
10
+ const buildMarkerStyle = require("./index110.cjs");
11
+ const MapViewport = require("./index111.cjs");
12
+ const MapLegend = require("./index112.cjs");
13
+ const PointListing = require("./index113.cjs");
14
+ const GeoMapCard_module = require("./index114.cjs");
15
15
  const EmptyState = require("./index28.cjs");
16
16
  const buildNotice = (info, maxPoints) => {
17
17
  const reasons = [];
package/dist/index30.js CHANGED
@@ -3,13 +3,13 @@ import { useRef, useMemo, useEffect } from "react";
3
3
  import { MapContainer, TileLayer, CircleMarker, Tooltip } from "react-leaflet";
4
4
  import { clsx } from "./index59.js";
5
5
  import { useThemeMode } from "./index7.js";
6
- import { GEO_MAP, BASEMAP_TILES } from "./index65.js";
7
- import { normalizePoints } from "./index85.js";
8
- import { buildCategoryColors, buildLegendItems, buildWeightScale, buildMarkerStyle } from "./index86.js";
9
- import { MapViewport } from "./index87.js";
10
- import { MapLegend } from "./index88.js";
11
- import { PointListing } from "./index89.js";
12
- import styles from "./index90.js";
6
+ import { GEO_MAP, BASEMAP_TILES } from "./index63.js";
7
+ import { normalizePoints } from "./index109.js";
8
+ import { buildCategoryColors, buildLegendItems, buildWeightScale, buildMarkerStyle } from "./index110.js";
9
+ import { MapViewport } from "./index111.js";
10
+ import { MapLegend } from "./index112.js";
11
+ import { PointListing } from "./index113.js";
12
+ import styles from "./index114.js";
13
13
  import { EmptyState } from "./index28.js";
14
14
  const buildNotice = (info, maxPoints) => {
15
15
  const reasons = [];
package/dist/index31.cjs CHANGED
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const ReactECharts = require("echarts-for-react");
6
6
  const clsx = require("./index59.cjs");
7
- const pivotGroupedBars = require("./index81.cjs");
8
- const buildGroupedBarOption = require("./index82.cjs");
9
- const defaultLabels = require("./index83.cjs");
10
- const GroupedBarChartCard_module = require("./index84.cjs");
7
+ const pivotGroupedBars = require("./index97.cjs");
8
+ const buildGroupedBarOption = require("./index98.cjs");
9
+ const defaultLabels = require("./index99.cjs");
10
+ const GroupedBarChartCard_module = require("./index100.cjs");
11
11
  const buildAriaLabel = (title, valueLabel) => valueLabel ? `${title}: grouped bar chart of ${valueLabel}` : `${title}: grouped bar chart`;
12
12
  const GroupedBarChartCard = ({
13
13
  title,
package/dist/index31.js CHANGED
@@ -2,10 +2,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo, useCallback } from "react";
3
3
  import ReactECharts from "echarts-for-react";
4
4
  import { clsx } from "./index59.js";
5
- import { pivotGroupedBars } from "./index81.js";
6
- import { buildGroupedBarOption } from "./index82.js";
7
- import { DEFAULT_LABELS } from "./index83.js";
8
- import styles from "./index84.js";
5
+ import { pivotGroupedBars } from "./index97.js";
6
+ import { buildGroupedBarOption } from "./index98.js";
7
+ import { DEFAULT_LABELS } from "./index99.js";
8
+ import styles from "./index100.js";
9
9
  const buildAriaLabel = (title, valueLabel) => valueLabel ? `${title}: grouped bar chart of ${valueLabel}` : `${title}: grouped bar chart`;
10
10
  const GroupedBarChartCard = ({
11
11
  title,
package/dist/index32.cjs CHANGED
@@ -3,18 +3,34 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const clsx = require("./index59.cjs");
6
- const HeatmapMatrix_module = require("./index108.cjs");
6
+ const HeatmapMatrixHeader = require("./index120.cjs");
7
+ const getColumnRuns = require("./index121.cjs");
8
+ const HeatmapMatrix_module = require("./index122.cjs");
7
9
  function activateOnKey(event, action) {
8
10
  if (event.key === "Enter" || event.key === " ") {
9
11
  event.preventDefault();
10
12
  action();
11
13
  }
12
14
  }
15
+ function ColumnGroups({ runs }) {
16
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17
+ /* @__PURE__ */ jsxRuntime.jsx("colgroup", {}),
18
+ runs.map((run, index) => /* @__PURE__ */ jsxRuntime.jsx(
19
+ "colgroup",
20
+ {
21
+ span: run.columns.length,
22
+ className: index > 0 ? HeatmapMatrix_module.default.groupStart : void 0
23
+ },
24
+ run.start
25
+ ))
26
+ ] });
27
+ }
13
28
  const HeatmapMatrix = react.forwardRef(
14
29
  ({
15
30
  columns,
16
31
  rows,
17
32
  cornerLabel,
33
+ columnGroups,
18
34
  getCell,
19
35
  onRowHeaderClick,
20
36
  onCellClick,
@@ -22,59 +38,68 @@ const HeatmapMatrix = react.forwardRef(
22
38
  className,
23
39
  style,
24
40
  ...props
25
- }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
26
- "div",
27
- {
28
- ref,
29
- className: clsx.clsx(HeatmapMatrix_module.default.wrap, className),
30
- style: { maxHeight, ...style },
31
- ...props,
32
- children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: HeatmapMatrix_module.default.root, children: [
33
- /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
34
- /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", className: HeatmapMatrix_module.default.corner, "aria-hidden": cornerLabel == null, children: cornerLabel }),
35
- columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", className: HeatmapMatrix_module.default.colh, title: col.title, children: col.label }, col.key))
36
- ] }) }),
37
- /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: rows.map((row) => {
38
- const rowInteractive = Boolean(onRowHeaderClick);
39
- return /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
40
- /* @__PURE__ */ jsxRuntime.jsx(
41
- "th",
42
- {
43
- scope: "row",
44
- className: clsx.clsx(HeatmapMatrix_module.default.rowh, rowInteractive && HeatmapMatrix_module.default.clickable),
45
- role: rowInteractive ? "button" : void 0,
46
- tabIndex: rowInteractive ? 0 : void 0,
47
- onClick: rowInteractive ? () => onRowHeaderClick == null ? void 0 : onRowHeaderClick(row.key) : void 0,
48
- onKeyDown: rowInteractive ? (event) => activateOnKey(event, () => onRowHeaderClick == null ? void 0 : onRowHeaderClick(row.key)) : void 0,
49
- children: row.label
50
- }
51
- ),
52
- columns.map((col) => {
53
- const cell = getCell(row.key, col.key);
54
- const cellInteractive = Boolean(onCellClick);
55
- return /* @__PURE__ */ jsxRuntime.jsx(
56
- "td",
41
+ }, ref) => {
42
+ const runs = getColumnRuns.hasColumnGroups(columns) ? getColumnRuns.getColumnRuns(columns) : void 0;
43
+ return /* @__PURE__ */ jsxRuntime.jsx(
44
+ "div",
45
+ {
46
+ ref,
47
+ className: clsx.clsx(HeatmapMatrix_module.default.wrap, className),
48
+ style: { maxHeight, ...style },
49
+ ...props,
50
+ children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: HeatmapMatrix_module.default.root, children: [
51
+ runs && /* @__PURE__ */ jsxRuntime.jsx(ColumnGroups, { runs }),
52
+ /* @__PURE__ */ jsxRuntime.jsx(
53
+ HeatmapMatrixHeader.HeatmapMatrixHeader,
54
+ {
55
+ columns,
56
+ runs,
57
+ columnGroups,
58
+ cornerLabel
59
+ }
60
+ ),
61
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: rows.map((row) => {
62
+ const rowInteractive = Boolean(onRowHeaderClick);
63
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
64
+ /* @__PURE__ */ jsxRuntime.jsx(
65
+ "th",
57
66
  {
58
- title: cell.title,
59
- className: clsx.clsx(
60
- HeatmapMatrix_module.default.cell,
61
- cell.state && HeatmapMatrix_module.default[cell.state],
62
- cellInteractive && HeatmapMatrix_module.default.clickable
63
- ),
64
- role: cellInteractive ? "button" : void 0,
65
- tabIndex: cellInteractive ? 0 : void 0,
66
- onClick: cellInteractive ? () => onCellClick == null ? void 0 : onCellClick(row.key, col.key) : void 0,
67
- onKeyDown: cellInteractive ? (event) => activateOnKey(event, () => onCellClick == null ? void 0 : onCellClick(row.key, col.key)) : void 0,
68
- children: cell.value
69
- },
70
- col.key
71
- );
72
- })
73
- ] }, row.key);
74
- }) })
75
- ] })
76
- }
77
- )
67
+ scope: "row",
68
+ className: clsx.clsx(HeatmapMatrix_module.default.rowh, rowInteractive && HeatmapMatrix_module.default.clickable),
69
+ role: rowInteractive ? "button" : void 0,
70
+ tabIndex: rowInteractive ? 0 : void 0,
71
+ onClick: rowInteractive ? () => onRowHeaderClick == null ? void 0 : onRowHeaderClick(row.key) : void 0,
72
+ onKeyDown: rowInteractive ? (event) => activateOnKey(event, () => onRowHeaderClick == null ? void 0 : onRowHeaderClick(row.key)) : void 0,
73
+ children: row.label
74
+ }
75
+ ),
76
+ columns.map((col) => {
77
+ const cell = getCell(row.key, col.key);
78
+ const cellInteractive = Boolean(onCellClick);
79
+ return /* @__PURE__ */ jsxRuntime.jsx(
80
+ "td",
81
+ {
82
+ title: cell.title,
83
+ className: clsx.clsx(
84
+ HeatmapMatrix_module.default.cell,
85
+ cell.state && HeatmapMatrix_module.default[cell.state],
86
+ cellInteractive && HeatmapMatrix_module.default.clickable
87
+ ),
88
+ role: cellInteractive ? "button" : void 0,
89
+ tabIndex: cellInteractive ? 0 : void 0,
90
+ onClick: cellInteractive ? () => onCellClick == null ? void 0 : onCellClick(row.key, col.key) : void 0,
91
+ onKeyDown: cellInteractive ? (event) => activateOnKey(event, () => onCellClick == null ? void 0 : onCellClick(row.key, col.key)) : void 0,
92
+ children: cell.value
93
+ },
94
+ col.key
95
+ );
96
+ })
97
+ ] }, row.key);
98
+ }) })
99
+ ] })
100
+ }
101
+ );
102
+ }
78
103
  );
79
104
  HeatmapMatrix.displayName = "HeatmapMatrix";
80
105
  exports.HeatmapMatrix = HeatmapMatrix;
@@ -1 +1 @@
1
- {"version":3,"file":"index32.cjs","sources":["../src/data/HeatmapMatrix/HeatmapMatrix.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport type { HeatmapMatrixProps } from './HeatmapMatrix.types';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction activateOnKey(event: React.KeyboardEvent, action: () => void) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n action();\n }\n}\n\nexport const HeatmapMatrix = forwardRef<HTMLDivElement, HeatmapMatrixProps>(\n (\n {\n columns,\n rows,\n cornerLabel,\n getCell,\n onRowHeaderClick,\n onCellClick,\n maxHeight,\n className,\n style,\n ...props\n },\n ref,\n ) => (\n <div\n ref={ref}\n className={clsx(styles.wrap, className)}\n style={{ maxHeight, ...style }}\n {...props}\n >\n <table className={styles.root}>\n <thead>\n <tr>\n <th scope=\"col\" className={styles.corner} aria-hidden={cornerLabel == null}>\n {cornerLabel}\n </th>\n {columns.map((col) => (\n <th key={col.key} scope=\"col\" className={styles.colh} title={col.title}>\n {col.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map((row) => {\n const rowInteractive = Boolean(onRowHeaderClick);\n return (\n <tr key={row.key}>\n <th\n scope=\"row\"\n className={clsx(styles.rowh, rowInteractive && styles.clickable)}\n role={rowInteractive ? 'button' : undefined}\n tabIndex={rowInteractive ? 0 : undefined}\n onClick={rowInteractive ? () => onRowHeaderClick?.(row.key) : undefined}\n onKeyDown={\n rowInteractive\n ? (event) => activateOnKey(event, () => onRowHeaderClick?.(row.key))\n : undefined\n }\n >\n {row.label}\n </th>\n {columns.map((col) => {\n const cell = getCell(row.key, col.key);\n const cellInteractive = Boolean(onCellClick);\n return (\n <td\n key={col.key}\n title={cell.title}\n className={clsx(\n styles.cell,\n cell.state && styles[cell.state],\n cellInteractive && styles.clickable,\n )}\n role={cellInteractive ? 'button' : undefined}\n tabIndex={cellInteractive ? 0 : undefined}\n onClick={cellInteractive ? () => onCellClick?.(row.key, col.key) : undefined}\n onKeyDown={\n cellInteractive\n ? (event) => activateOnKey(event, () => onCellClick?.(row.key, col.key))\n : undefined\n }\n >\n {cell.value}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n ),\n);\n\nHeatmapMatrix.displayName = 'HeatmapMatrix';\n"],"names":["forwardRef","jsx","clsx","styles","jsxs"],"mappings":";;;;;;AAKA,SAAS,cAAc,OAA4B,QAAoB;AACrE,MAAI,MAAM,QAAQ,WAAW,MAAM,QAAQ,KAAK;AAC9C,UAAM,eAAA;AACN,WAAA;AAAA,EACF;AACF;AAEO,MAAM,gBAAgBA,MAAAA;AAAAA,EAC3B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QAEAC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAWC,KAAAA,KAAKC,6BAAO,MAAM,SAAS;AAAA,MACtC,OAAO,EAAE,WAAW,GAAG,MAAA;AAAA,MACtB,GAAG;AAAA,MAEJ,UAAAC,2BAAAA,KAAC,SAAA,EAAM,WAAWD,qBAAAA,QAAO,MACvB,UAAA;AAAA,QAAAF,2BAAAA,IAAC,SAAA,EACC,0CAAC,MAAA,EACC,UAAA;AAAA,UAAAA,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,WAAWE,qBAAAA,QAAO,QAAQ,eAAa,eAAe,MACnE,UAAA,YAAA,CACH;AAAA,UACC,QAAQ,IAAI,CAAC,QACZF,2BAAAA,IAAC,MAAA,EAAiB,OAAM,OAAM,WAAWE,qBAAAA,QAAO,MAAM,OAAO,IAAI,OAC9D,cAAI,MAAA,GADE,IAAI,GAEb,CACD;AAAA,QAAA,EAAA,CACH,EAAA,CACF;AAAA,QACAF,2BAAAA,IAAC,SAAA,EACE,UAAA,KAAK,IAAI,CAAC,QAAQ;AACjB,gBAAM,iBAAiB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;AAGN;AAEA,cAAc,cAAc;;"}
1
+ {"version":3,"file":"index32.cjs","sources":["../src/data/HeatmapMatrix/HeatmapMatrix.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport type { HeatmapColumnGroupsProps, HeatmapMatrixProps } from './HeatmapMatrix.types';\nimport { HeatmapMatrixHeader } from './HeatmapMatrixHeader';\nimport { getColumnRuns, hasColumnGroups } from './getColumnRuns';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction activateOnKey(event: React.KeyboardEvent, action: () => void) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n action();\n }\n}\n\n/** One `<colgroup>` for the row headers, then one per run; the separator marks every run but the first. */\nfunction ColumnGroups({ runs }: HeatmapColumnGroupsProps) {\n return (\n <>\n <colgroup />\n {runs.map((run, index) => (\n <colgroup\n key={run.start}\n span={run.columns.length}\n className={index > 0 ? styles.groupStart : undefined}\n />\n ))}\n </>\n );\n}\n\nexport const HeatmapMatrix = forwardRef<HTMLDivElement, HeatmapMatrixProps>(\n (\n {\n columns,\n rows,\n cornerLabel,\n columnGroups,\n getCell,\n onRowHeaderClick,\n onCellClick,\n maxHeight,\n className,\n style,\n ...props\n },\n ref,\n ) => {\n const runs = hasColumnGroups(columns) ? getColumnRuns(columns) : undefined;\n return (\n <div\n ref={ref}\n className={clsx(styles.wrap, className)}\n style={{ maxHeight, ...style }}\n {...props}\n >\n <table className={styles.root}>\n {runs && <ColumnGroups runs={runs} />}\n <HeatmapMatrixHeader\n columns={columns}\n runs={runs}\n columnGroups={columnGroups}\n cornerLabel={cornerLabel}\n />\n <tbody>\n {rows.map((row) => {\n const rowInteractive = Boolean(onRowHeaderClick);\n return (\n <tr key={row.key}>\n <th\n scope=\"row\"\n className={clsx(styles.rowh, rowInteractive && styles.clickable)}\n role={rowInteractive ? 'button' : undefined}\n tabIndex={rowInteractive ? 0 : undefined}\n onClick={rowInteractive ? () => onRowHeaderClick?.(row.key) : undefined}\n onKeyDown={\n rowInteractive\n ? (event) => activateOnKey(event, () => onRowHeaderClick?.(row.key))\n : undefined\n }\n >\n {row.label}\n </th>\n {columns.map((col) => {\n const cell = getCell(row.key, col.key);\n const cellInteractive = Boolean(onCellClick);\n return (\n <td\n key={col.key}\n title={cell.title}\n className={clsx(\n styles.cell,\n cell.state && styles[cell.state],\n cellInteractive && styles.clickable,\n )}\n role={cellInteractive ? 'button' : undefined}\n tabIndex={cellInteractive ? 0 : undefined}\n onClick={\n cellInteractive ? () => onCellClick?.(row.key, col.key) : undefined\n }\n onKeyDown={\n cellInteractive\n ? (event) => activateOnKey(event, () => onCellClick?.(row.key, col.key))\n : undefined\n }\n >\n {cell.value}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n );\n },\n);\n\nHeatmapMatrix.displayName = 'HeatmapMatrix';\n"],"names":["jsxs","Fragment","jsx","styles","forwardRef","hasColumnGroups","getColumnRuns","clsx","HeatmapMatrixHeader"],"mappings":";;;;;;;;AAOA,SAAS,cAAc,OAA4B,QAAoB;AACrE,MAAI,MAAM,QAAQ,WAAW,MAAM,QAAQ,KAAK;AAC9C,UAAM,eAAA;AACN,WAAA;AAAA,EACF;AACF;AAGA,SAAS,aAAa,EAAE,QAAkC;AACxD,SACEA,2BAAAA,KAAAC,qBAAA,EACE,UAAA;AAAA,IAAAC,2BAAAA,IAAC,YAAA,EAAS;AAAA,IACT,KAAK,IAAI,CAAC,KAAK,UACdA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QAEC,MAAM,IAAI,QAAQ;AAAA,QAClB,WAAW,QAAQ,IAAIC,qBAAAA,QAAO,aAAa;AAAA,MAAA;AAAA,MAFtC,IAAI;AAAA,IAAA,CAIZ;AAAA,EAAA,GACH;AAEJ;AAEO,MAAM,gBAAgBC,MAAAA;AAAAA,EAC3B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;A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