@ktnpm_devops/react-component 0.14.0 → 0.15.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 (434) hide show
  1. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.d.ts +7 -0
  2. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.d.ts.map +1 -0
  3. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts +38 -0
  4. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts.map +1 -0
  5. package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.d.ts +69 -0
  6. package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.d.ts.map +1 -0
  7. package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.test.d.ts +2 -0
  8. package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.test.d.ts.map +1 -0
  9. package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts +5 -0
  10. package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts.map +1 -0
  11. package/dist/charts/GroupedBarChartCard/index.d.ts +3 -0
  12. package/dist/charts/GroupedBarChartCard/index.d.ts.map +1 -0
  13. package/dist/charts/GroupedBarChartCard/pivotGroupedBars.d.ts +22 -0
  14. package/dist/charts/GroupedBarChartCard/pivotGroupedBars.d.ts.map +1 -0
  15. package/dist/charts/GroupedBarChartCard/pivotGroupedBars.test.d.ts +2 -0
  16. package/dist/charts/GroupedBarChartCard/pivotGroupedBars.test.d.ts.map +1 -0
  17. package/dist/constants.d.ts +28 -0
  18. package/dist/constants.d.ts.map +1 -1
  19. package/dist/index.cjs +29 -27
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.ts +3 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +29 -27
  24. package/dist/index.js.map +1 -1
  25. package/dist/index10.cjs +2 -2
  26. package/dist/index10.js +2 -2
  27. package/dist/index100.cjs +8 -50
  28. package/dist/index100.cjs.map +1 -1
  29. package/dist/index100.js +9 -51
  30. package/dist/index100.js.map +1 -1
  31. package/dist/index101.cjs +2 -17
  32. package/dist/index101.cjs.map +1 -1
  33. package/dist/index101.js +3 -18
  34. package/dist/index101.js.map +1 -1
  35. package/dist/index102.cjs +2 -50
  36. package/dist/index102.cjs.map +1 -1
  37. package/dist/index102.js +3 -51
  38. package/dist/index102.js.map +1 -1
  39. package/dist/index103.cjs +64 -13
  40. package/dist/index103.cjs.map +1 -1
  41. package/dist/index103.js +65 -14
  42. package/dist/index103.js.map +1 -1
  43. package/dist/index104.cjs +19 -4
  44. package/dist/index104.cjs.map +1 -1
  45. package/dist/index104.js +19 -4
  46. package/dist/index104.js.map +1 -1
  47. package/dist/index105.cjs +16 -10
  48. package/dist/index105.cjs.map +1 -1
  49. package/dist/index105.js +17 -11
  50. package/dist/index105.js.map +1 -1
  51. package/dist/index106.cjs +134 -34
  52. package/dist/index106.cjs.map +1 -1
  53. package/dist/index106.js +133 -33
  54. package/dist/index106.js.map +1 -1
  55. package/dist/index107.cjs +38 -50
  56. package/dist/index107.cjs.map +1 -1
  57. package/dist/index107.js +38 -50
  58. package/dist/index107.js.map +1 -1
  59. package/dist/index108.cjs +25 -28
  60. package/dist/index108.cjs.map +1 -1
  61. package/dist/index108.js +25 -28
  62. package/dist/index108.js.map +1 -1
  63. package/dist/index109.cjs +34 -19
  64. package/dist/index109.cjs.map +1 -1
  65. package/dist/index109.js +35 -20
  66. package/dist/index109.js.map +1 -1
  67. package/dist/index11.cjs +2 -2
  68. package/dist/index11.js +2 -2
  69. package/dist/index110.cjs +52 -16
  70. package/dist/index110.cjs.map +1 -1
  71. package/dist/index110.js +52 -16
  72. package/dist/index110.js.map +1 -1
  73. package/dist/index111.cjs +15 -6
  74. package/dist/index111.cjs.map +1 -1
  75. package/dist/index111.js +16 -7
  76. package/dist/index111.js.map +1 -1
  77. package/dist/index112.cjs +2 -17
  78. package/dist/index112.cjs.map +1 -1
  79. package/dist/index112.js +3 -18
  80. package/dist/index112.js.map +1 -1
  81. package/dist/index113.cjs +18 -33
  82. package/dist/index113.cjs.map +1 -1
  83. package/dist/index113.js +19 -34
  84. package/dist/index113.js.map +1 -1
  85. package/dist/index114.cjs +40 -116
  86. package/dist/index114.cjs.map +1 -1
  87. package/dist/index114.js +39 -115
  88. package/dist/index114.js.map +1 -1
  89. package/dist/index115.cjs +39 -42
  90. package/dist/index115.cjs.map +1 -1
  91. package/dist/index115.js +38 -41
  92. package/dist/index115.js.map +1 -1
  93. package/dist/index116.cjs +92 -30
  94. package/dist/index116.cjs.map +1 -1
  95. package/dist/index116.js +91 -29
  96. package/dist/index116.js.map +1 -1
  97. package/dist/index117.cjs +40 -1164
  98. package/dist/index117.cjs.map +1 -1
  99. package/dist/index117.js +38 -1163
  100. package/dist/index117.js.map +1 -1
  101. package/dist/index118.cjs +102 -1562
  102. package/dist/index118.cjs.map +1 -1
  103. package/dist/index118.js +101 -1562
  104. package/dist/index118.js.map +1 -1
  105. package/dist/index119.cjs +45 -0
  106. package/dist/index119.cjs.map +1 -0
  107. package/dist/index119.js +45 -0
  108. package/dist/index119.js.map +1 -0
  109. package/dist/index12.cjs +2 -2
  110. package/dist/index12.js +2 -2
  111. package/dist/index120.cjs +87 -0
  112. package/dist/index120.cjs.map +1 -0
  113. package/dist/index120.js +87 -0
  114. package/dist/index120.js.map +1 -0
  115. package/dist/index121.cjs +27 -0
  116. package/dist/index121.cjs.map +1 -0
  117. package/dist/index121.js +27 -0
  118. package/dist/index121.js.map +1 -0
  119. package/dist/index122.cjs +1166 -0
  120. package/dist/index122.cjs.map +1 -0
  121. package/dist/index122.js +1167 -0
  122. package/dist/index122.js.map +1 -0
  123. package/dist/index123.cjs +1578 -0
  124. package/dist/index123.cjs.map +1 -0
  125. package/dist/index123.js +1579 -0
  126. package/dist/index123.js.map +1 -0
  127. package/dist/index13.cjs +2 -2
  128. package/dist/index13.js +2 -2
  129. package/dist/index14.cjs +2 -2
  130. package/dist/index14.js +2 -2
  131. package/dist/index15.cjs +2 -2
  132. package/dist/index15.js +2 -2
  133. package/dist/index16.cjs +3 -3
  134. package/dist/index16.js +3 -3
  135. package/dist/index17.cjs +2 -2
  136. package/dist/index17.js +2 -2
  137. package/dist/index18.cjs +2 -2
  138. package/dist/index18.js +2 -2
  139. package/dist/index19.cjs +2 -2
  140. package/dist/index19.js +2 -2
  141. package/dist/index20.cjs +2 -2
  142. package/dist/index20.js +2 -2
  143. package/dist/index21.cjs +2 -2
  144. package/dist/index21.js +2 -2
  145. package/dist/index22.cjs +3 -3
  146. package/dist/index22.js +3 -3
  147. package/dist/index23.cjs +3 -3
  148. package/dist/index23.js +3 -3
  149. package/dist/index24.cjs +3 -3
  150. package/dist/index24.js +3 -3
  151. package/dist/index25.cjs +2 -2
  152. package/dist/index25.js +2 -2
  153. package/dist/index26.cjs +2 -2
  154. package/dist/index26.js +2 -2
  155. package/dist/index27.cjs +2 -2
  156. package/dist/index27.js +2 -2
  157. package/dist/index28.cjs +2 -2
  158. package/dist/index28.js +2 -2
  159. package/dist/index29.cjs +3 -3
  160. package/dist/index29.js +3 -3
  161. package/dist/index30.cjs +8 -8
  162. package/dist/index30.js +8 -8
  163. package/dist/index31.cjs +84 -76
  164. package/dist/index31.cjs.map +1 -1
  165. package/dist/index31.js +86 -78
  166. package/dist/index31.js.map +1 -1
  167. package/dist/index32.cjs +75 -6
  168. package/dist/index32.cjs.map +1 -1
  169. package/dist/index32.js +76 -7
  170. package/dist/index32.js.map +1 -1
  171. package/dist/index33.cjs +7 -130
  172. package/dist/index33.cjs.map +1 -1
  173. package/dist/index33.js +9 -132
  174. package/dist/index33.js.map +1 -1
  175. package/dist/index34.cjs +127 -52
  176. package/dist/index34.cjs.map +1 -1
  177. package/dist/index34.js +129 -54
  178. package/dist/index34.js.map +1 -1
  179. package/dist/index35.cjs +49 -13
  180. package/dist/index35.cjs.map +1 -1
  181. package/dist/index35.js +51 -15
  182. package/dist/index35.js.map +1 -1
  183. package/dist/index36.cjs +20 -38
  184. package/dist/index36.cjs.map +1 -1
  185. package/dist/index36.js +21 -39
  186. package/dist/index36.js.map +1 -1
  187. package/dist/index37.cjs +36 -224
  188. package/dist/index37.cjs.map +1 -1
  189. package/dist/index37.js +37 -225
  190. package/dist/index37.js.map +1 -1
  191. package/dist/index38.cjs +220 -28
  192. package/dist/index38.cjs.map +1 -1
  193. package/dist/index38.js +222 -30
  194. package/dist/index38.js.map +1 -1
  195. package/dist/index39.cjs +30 -106
  196. package/dist/index39.cjs.map +1 -1
  197. package/dist/index39.js +31 -107
  198. package/dist/index39.js.map +1 -1
  199. package/dist/index40.cjs +100 -58
  200. package/dist/index40.cjs.map +1 -1
  201. package/dist/index40.js +101 -59
  202. package/dist/index40.js.map +1 -1
  203. package/dist/index41.cjs +66 -76
  204. package/dist/index41.cjs.map +1 -1
  205. package/dist/index41.js +67 -77
  206. package/dist/index41.js.map +1 -1
  207. package/dist/index42.cjs +76 -57
  208. package/dist/index42.cjs.map +1 -1
  209. package/dist/index42.js +78 -59
  210. package/dist/index42.js.map +1 -1
  211. package/dist/index43.cjs +56 -150
  212. package/dist/index43.cjs.map +1 -1
  213. package/dist/index43.js +58 -152
  214. package/dist/index43.js.map +1 -1
  215. package/dist/index44.cjs +128 -73
  216. package/dist/index44.cjs.map +1 -1
  217. package/dist/index44.js +123 -68
  218. package/dist/index44.js.map +1 -1
  219. package/dist/index45.cjs +94 -68
  220. package/dist/index45.cjs.map +1 -1
  221. package/dist/index45.js +96 -70
  222. package/dist/index45.js.map +1 -1
  223. package/dist/index46.cjs +71 -7
  224. package/dist/index46.cjs.map +1 -1
  225. package/dist/index46.js +72 -8
  226. package/dist/index46.js.map +1 -1
  227. package/dist/index47.cjs +8 -17
  228. package/dist/index47.cjs.map +1 -1
  229. package/dist/index47.js +9 -18
  230. package/dist/index47.js.map +1 -1
  231. package/dist/index48.cjs +15 -75
  232. package/dist/index48.cjs.map +1 -1
  233. package/dist/index48.js +16 -76
  234. package/dist/index48.js.map +1 -1
  235. package/dist/index49.cjs +68 -134
  236. package/dist/index49.cjs.map +1 -1
  237. package/dist/index49.js +70 -136
  238. package/dist/index49.js.map +1 -1
  239. package/dist/index50.cjs +137 -58
  240. package/dist/index50.cjs.map +1 -1
  241. package/dist/index50.js +138 -59
  242. package/dist/index50.js.map +1 -1
  243. package/dist/index51.cjs +61 -102
  244. package/dist/index51.cjs.map +1 -1
  245. package/dist/index51.js +62 -103
  246. package/dist/index51.js.map +1 -1
  247. package/dist/index52.cjs +102 -44
  248. package/dist/index52.cjs.map +1 -1
  249. package/dist/index52.js +103 -45
  250. package/dist/index52.js.map +1 -1
  251. package/dist/index53.cjs +47 -6
  252. package/dist/index53.cjs.map +1 -1
  253. package/dist/index53.js +48 -7
  254. package/dist/index53.js.map +1 -1
  255. package/dist/index54.cjs +6 -147
  256. package/dist/index54.cjs.map +1 -1
  257. package/dist/index54.js +7 -148
  258. package/dist/index54.js.map +1 -1
  259. package/dist/index55.cjs +146 -7
  260. package/dist/index55.cjs.map +1 -1
  261. package/dist/index55.js +148 -9
  262. package/dist/index55.js.map +1 -1
  263. package/dist/index56.cjs +6 -15
  264. package/dist/index56.cjs.map +1 -1
  265. package/dist/index56.js +6 -15
  266. package/dist/index56.js.map +1 -1
  267. package/dist/index57.cjs +14 -63
  268. package/dist/index57.cjs.map +1 -1
  269. package/dist/index57.js +16 -65
  270. package/dist/index57.js.map +1 -1
  271. package/dist/index58.cjs +67 -15
  272. package/dist/index58.cjs.map +1 -1
  273. package/dist/index58.js +66 -14
  274. package/dist/index58.js.map +1 -1
  275. package/dist/index59.cjs +15 -18
  276. package/dist/index59.cjs.map +1 -1
  277. package/dist/index59.js +15 -18
  278. package/dist/index59.js.map +1 -1
  279. package/dist/index60.cjs +7 -16
  280. package/dist/index60.cjs.map +1 -1
  281. package/dist/index60.js +8 -17
  282. package/dist/index60.js.map +1 -1
  283. package/dist/index61.cjs +5 -23
  284. package/dist/index61.cjs.map +1 -1
  285. package/dist/index61.js +6 -24
  286. package/dist/index61.js.map +1 -1
  287. package/dist/index62.cjs +17 -27
  288. package/dist/index62.cjs.map +1 -1
  289. package/dist/index62.js +16 -26
  290. package/dist/index62.js.map +1 -1
  291. package/dist/index63.cjs +1 -1
  292. package/dist/index63.js +1 -1
  293. package/dist/index64.cjs +1 -1
  294. package/dist/index64.js +1 -1
  295. package/dist/index65.cjs +141 -22
  296. package/dist/index65.cjs.map +1 -1
  297. package/dist/index65.js +139 -20
  298. package/dist/index65.js.map +1 -1
  299. package/dist/index66.cjs +17 -2
  300. package/dist/index66.cjs.map +1 -1
  301. package/dist/index66.js +17 -2
  302. package/dist/index66.js.map +1 -1
  303. package/dist/index67.cjs +46 -10
  304. package/dist/index67.cjs.map +1 -1
  305. package/dist/index67.js +46 -10
  306. package/dist/index67.js.map +1 -1
  307. package/dist/index68.cjs +53 -2
  308. package/dist/index68.cjs.map +1 -1
  309. package/dist/index68.js +54 -3
  310. package/dist/index68.js.map +1 -1
  311. package/dist/index69.cjs +33 -17
  312. package/dist/index69.cjs.map +1 -1
  313. package/dist/index69.js +32 -16
  314. package/dist/index69.js.map +1 -1
  315. package/dist/index70.cjs +1 -1
  316. package/dist/index70.js +1 -1
  317. package/dist/index71.cjs +19 -116
  318. package/dist/index71.cjs.map +1 -1
  319. package/dist/index71.js +17 -114
  320. package/dist/index71.js.map +1 -1
  321. package/dist/index72.cjs +34 -28
  322. package/dist/index72.cjs.map +1 -1
  323. package/dist/index72.js +34 -28
  324. package/dist/index72.js.map +1 -1
  325. package/dist/index73.cjs +30 -18
  326. package/dist/index73.cjs.map +1 -1
  327. package/dist/index73.js +30 -18
  328. package/dist/index73.js.map +1 -1
  329. package/dist/index74.cjs +13 -19
  330. package/dist/index74.cjs.map +1 -1
  331. package/dist/index74.js +14 -20
  332. package/dist/index74.js.map +1 -1
  333. package/dist/index75.cjs +11 -5
  334. package/dist/index75.cjs.map +1 -1
  335. package/dist/index75.js +11 -5
  336. package/dist/index75.js.map +1 -1
  337. package/dist/index76.cjs +17 -2
  338. package/dist/index76.cjs.map +1 -1
  339. package/dist/index76.js +18 -3
  340. package/dist/index76.js.map +1 -1
  341. package/dist/index77.cjs +4 -64
  342. package/dist/index77.cjs.map +1 -1
  343. package/dist/index77.js +5 -65
  344. package/dist/index77.js.map +1 -1
  345. package/dist/index78.cjs +37 -19
  346. package/dist/index78.cjs.map +1 -1
  347. package/dist/index78.js +37 -19
  348. package/dist/index78.js.map +1 -1
  349. package/dist/index79.cjs +28 -13
  350. package/dist/index79.cjs.map +1 -1
  351. package/dist/index79.js +28 -13
  352. package/dist/index79.js.map +1 -1
  353. package/dist/index80.cjs +16 -19
  354. package/dist/index80.cjs.map +1 -1
  355. package/dist/index80.js +17 -20
  356. package/dist/index80.js.map +1 -1
  357. package/dist/index81.cjs +20 -33
  358. package/dist/index81.cjs.map +1 -1
  359. package/dist/index81.js +20 -33
  360. package/dist/index81.js.map +1 -1
  361. package/dist/index82.cjs +63 -37
  362. package/dist/index82.cjs.map +1 -1
  363. package/dist/index82.js +63 -37
  364. package/dist/index82.js.map +1 -1
  365. package/dist/index83.cjs +6 -23
  366. package/dist/index83.cjs.map +1 -1
  367. package/dist/index83.js +6 -23
  368. package/dist/index83.js.map +1 -1
  369. package/dist/index84.cjs +40 -20
  370. package/dist/index84.cjs.map +1 -1
  371. package/dist/index84.js +39 -19
  372. package/dist/index84.js.map +1 -1
  373. package/dist/index85.cjs +35 -13
  374. package/dist/index85.cjs.map +1 -1
  375. package/dist/index85.js +35 -13
  376. package/dist/index85.js.map +1 -1
  377. package/dist/index86.cjs +43 -60
  378. package/dist/index86.cjs.map +1 -1
  379. package/dist/index86.js +42 -59
  380. package/dist/index86.js.map +1 -1
  381. package/dist/index87.cjs +24 -51
  382. package/dist/index87.cjs.map +1 -1
  383. package/dist/index87.js +23 -50
  384. package/dist/index87.js.map +1 -1
  385. package/dist/index88.cjs +20 -40
  386. package/dist/index88.cjs.map +1 -1
  387. package/dist/index88.js +19 -39
  388. package/dist/index88.js.map +1 -1
  389. package/dist/index89.cjs +14 -85
  390. package/dist/index89.cjs.map +1 -1
  391. package/dist/index89.js +13 -84
  392. package/dist/index89.js.map +1 -1
  393. package/dist/index90.cjs +60 -39
  394. package/dist/index90.cjs.map +1 -1
  395. package/dist/index90.js +59 -38
  396. package/dist/index90.js.map +1 -1
  397. package/dist/index91.cjs +24 -92
  398. package/dist/index91.cjs.map +1 -1
  399. package/dist/index91.js +23 -91
  400. package/dist/index91.js.map +1 -1
  401. package/dist/index92.cjs +13 -34
  402. package/dist/index92.cjs.map +1 -1
  403. package/dist/index92.js +13 -34
  404. package/dist/index92.js.map +1 -1
  405. package/dist/index93.cjs +49 -13
  406. package/dist/index93.cjs.map +1 -1
  407. package/dist/index93.js +50 -14
  408. package/dist/index93.js.map +1 -1
  409. package/dist/index94.cjs +24 -36
  410. package/dist/index94.cjs.map +1 -1
  411. package/dist/index94.js +24 -36
  412. package/dist/index94.js.map +1 -1
  413. package/dist/index96.cjs +12 -36
  414. package/dist/index96.cjs.map +1 -1
  415. package/dist/index96.js +12 -36
  416. package/dist/index96.js.map +1 -1
  417. package/dist/index97.cjs +22 -16
  418. package/dist/index97.cjs.map +1 -1
  419. package/dist/index97.js +22 -16
  420. package/dist/index97.js.map +1 -1
  421. package/dist/index98.cjs +22 -134
  422. package/dist/index98.cjs.map +1 -1
  423. package/dist/index98.js +21 -133
  424. package/dist/index98.js.map +1 -1
  425. package/dist/index99.cjs +14 -38
  426. package/dist/index99.cjs.map +1 -1
  427. package/dist/index99.js +15 -39
  428. package/dist/index99.js.map +1 -1
  429. package/dist/style.css +111 -0
  430. package/dist/types/chart.types.d.ts +14 -0
  431. package/dist/types/chart.types.d.ts.map +1 -1
  432. package/dist/types/index.d.ts +2 -2
  433. package/dist/types/index.d.ts.map +1 -1
  434. package/package.json +1 -1
package/dist/index77.cjs CHANGED
@@ -1,72 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-HS837";
4
- const gapNone = "krc-gapNone-MmCvp";
5
- const gapXs = "krc-gapXs-Jketq";
6
- const gapSm = "krc-gapSm-BFLhK";
7
- const gapMd = "krc-gapMd--7IRg";
8
- const gapLg = "krc-gapLg-ehuIZ";
9
- const gapXl = "krc-gapXl-kNEyc";
10
- const alignStart = "krc-alignStart-q6fMC";
11
- const alignCenter = "krc-alignCenter-Py2Kt";
12
- const alignEnd = "krc-alignEnd-ialGn";
13
- const alignStretch = "krc-alignStretch-J-rq4";
14
- const alignBaseline = "krc-alignBaseline-Hg-4L";
15
- const justifyStart = "krc-justifyStart-tBqbD";
16
- const justifyCenter = "krc-justifyCenter-6QDaO";
17
- const justifyEnd = "krc-justifyEnd-2tbcB";
18
- const justifyBetween = "krc-justifyBetween-5W1AJ";
19
- const justifyAround = "krc-justifyAround-AMU1m";
20
- const justifyEvenly = "krc-justifyEvenly-Vj3C-";
21
- const wrap = "krc-wrap-Q4txZ";
22
- const nowrap = "krc-nowrap-BUcfT";
23
- const dirRow = "krc-dirRow-NBoPO";
24
- const dirColumn = "krc-dirColumn-gJ7qS";
3
+ const root = "krc-root--zhUO";
4
+ const dot = "krc-dot-uJk1V";
25
5
  const styles = {
26
6
  root,
27
- gapNone,
28
- gapXs,
29
- gapSm,
30
- gapMd,
31
- gapLg,
32
- gapXl,
33
- alignStart,
34
- alignCenter,
35
- alignEnd,
36
- alignStretch,
37
- alignBaseline,
38
- justifyStart,
39
- justifyCenter,
40
- justifyEnd,
41
- justifyBetween,
42
- justifyAround,
43
- justifyEvenly,
44
- wrap,
45
- nowrap,
46
- dirRow,
47
- dirColumn
7
+ dot
48
8
  };
49
- exports.alignBaseline = alignBaseline;
50
- exports.alignCenter = alignCenter;
51
- exports.alignEnd = alignEnd;
52
- exports.alignStart = alignStart;
53
- exports.alignStretch = alignStretch;
54
9
  exports.default = styles;
55
- exports.dirColumn = dirColumn;
56
- exports.dirRow = dirRow;
57
- exports.gapLg = gapLg;
58
- exports.gapMd = gapMd;
59
- exports.gapNone = gapNone;
60
- exports.gapSm = gapSm;
61
- exports.gapXl = gapXl;
62
- exports.gapXs = gapXs;
63
- exports.justifyAround = justifyAround;
64
- exports.justifyBetween = justifyBetween;
65
- exports.justifyCenter = justifyCenter;
66
- exports.justifyEnd = justifyEnd;
67
- exports.justifyEvenly = justifyEvenly;
68
- exports.justifyStart = justifyStart;
69
- exports.nowrap = nowrap;
10
+ exports.dot = dot;
70
11
  exports.root = root;
71
- exports.wrap = wrap;
72
12
  //# sourceMappingURL=index77.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index77.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index77.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
package/dist/index77.js CHANGED
@@ -1,72 +1,12 @@
1
- const root = "krc-root-HS837";
2
- const gapNone = "krc-gapNone-MmCvp";
3
- const gapXs = "krc-gapXs-Jketq";
4
- const gapSm = "krc-gapSm-BFLhK";
5
- const gapMd = "krc-gapMd--7IRg";
6
- const gapLg = "krc-gapLg-ehuIZ";
7
- const gapXl = "krc-gapXl-kNEyc";
8
- const alignStart = "krc-alignStart-q6fMC";
9
- const alignCenter = "krc-alignCenter-Py2Kt";
10
- const alignEnd = "krc-alignEnd-ialGn";
11
- const alignStretch = "krc-alignStretch-J-rq4";
12
- const alignBaseline = "krc-alignBaseline-Hg-4L";
13
- const justifyStart = "krc-justifyStart-tBqbD";
14
- const justifyCenter = "krc-justifyCenter-6QDaO";
15
- const justifyEnd = "krc-justifyEnd-2tbcB";
16
- const justifyBetween = "krc-justifyBetween-5W1AJ";
17
- const justifyAround = "krc-justifyAround-AMU1m";
18
- const justifyEvenly = "krc-justifyEvenly-Vj3C-";
19
- const wrap = "krc-wrap-Q4txZ";
20
- const nowrap = "krc-nowrap-BUcfT";
21
- const dirRow = "krc-dirRow-NBoPO";
22
- const dirColumn = "krc-dirColumn-gJ7qS";
1
+ const root = "krc-root--zhUO";
2
+ const dot = "krc-dot-uJk1V";
23
3
  const styles = {
24
4
  root,
25
- gapNone,
26
- gapXs,
27
- gapSm,
28
- gapMd,
29
- gapLg,
30
- gapXl,
31
- alignStart,
32
- alignCenter,
33
- alignEnd,
34
- alignStretch,
35
- alignBaseline,
36
- justifyStart,
37
- justifyCenter,
38
- justifyEnd,
39
- justifyBetween,
40
- justifyAround,
41
- justifyEvenly,
42
- wrap,
43
- nowrap,
44
- dirRow,
45
- dirColumn
5
+ dot
46
6
  };
47
7
  export {
48
- alignBaseline,
49
- alignCenter,
50
- alignEnd,
51
- alignStart,
52
- alignStretch,
53
8
  styles as default,
54
- dirColumn,
55
- dirRow,
56
- gapLg,
57
- gapMd,
58
- gapNone,
59
- gapSm,
60
- gapXl,
61
- gapXs,
62
- justifyAround,
63
- justifyBetween,
64
- justifyCenter,
65
- justifyEnd,
66
- justifyEvenly,
67
- justifyStart,
68
- nowrap,
69
- root,
70
- wrap
9
+ dot,
10
+ root
71
11
  };
72
12
  //# sourceMappingURL=index77.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index77.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index77.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/dist/index78.cjs CHANGED
@@ -1,27 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-1fbld";
4
- const rail = "krc-rail-S-V5h";
5
- const fill = "krc-fill-NAEy9";
6
- const tick = "krc-tick-j75qi";
7
- const disabled = "krc-disabled-DgBiL";
8
- const thumb = "krc-thumb-QVYVM";
9
- const valueTooltip = "krc-valueTooltip-Vuimh";
3
+ const root = "krc-root-0iK-T";
4
+ const header = "krc-header-vLmNI";
5
+ const title = "krc-title-J9FSG";
6
+ const headerActions = "krc-headerActions-8Sd6i";
7
+ const toolbar = "krc-toolbar-65kLR";
8
+ const toolbarLabel = "krc-toolbarLabel-kmRLQ";
9
+ const toolbarSelect = "krc-toolbarSelect-t7OKN";
10
+ const chartContainer = "krc-chartContainer-1-iIe";
11
+ const loading = "krc-loading-MRlom";
12
+ const error = "krc-error-esslq";
13
+ const retryButton = "krc-retryButton-js385";
14
+ const empty = "krc-empty-qYFPa";
15
+ const warning = "krc-warning-ll4Hc";
10
16
  const styles = {
11
17
  root,
12
- rail,
13
- fill,
14
- tick,
15
- disabled,
16
- thumb,
17
- valueTooltip
18
+ header,
19
+ title,
20
+ headerActions,
21
+ toolbar,
22
+ toolbarLabel,
23
+ toolbarSelect,
24
+ chartContainer,
25
+ loading,
26
+ error,
27
+ retryButton,
28
+ empty,
29
+ warning
18
30
  };
31
+ exports.chartContainer = chartContainer;
19
32
  exports.default = styles;
20
- exports.disabled = disabled;
21
- exports.fill = fill;
22
- exports.rail = rail;
33
+ exports.empty = empty;
34
+ exports.error = error;
35
+ exports.header = header;
36
+ exports.headerActions = headerActions;
37
+ exports.loading = loading;
38
+ exports.retryButton = retryButton;
23
39
  exports.root = root;
24
- exports.thumb = thumb;
25
- exports.tick = tick;
26
- exports.valueTooltip = valueTooltip;
40
+ exports.title = title;
41
+ exports.toolbar = toolbar;
42
+ exports.toolbarLabel = toolbarLabel;
43
+ exports.toolbarSelect = toolbarSelect;
44
+ exports.warning = warning;
27
45
  //# sourceMappingURL=index78.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index78.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index78.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index78.js CHANGED
@@ -1,27 +1,45 @@
1
- const root = "krc-root-1fbld";
2
- const rail = "krc-rail-S-V5h";
3
- const fill = "krc-fill-NAEy9";
4
- const tick = "krc-tick-j75qi";
5
- const disabled = "krc-disabled-DgBiL";
6
- const thumb = "krc-thumb-QVYVM";
7
- const valueTooltip = "krc-valueTooltip-Vuimh";
1
+ const root = "krc-root-0iK-T";
2
+ const header = "krc-header-vLmNI";
3
+ const title = "krc-title-J9FSG";
4
+ const headerActions = "krc-headerActions-8Sd6i";
5
+ const toolbar = "krc-toolbar-65kLR";
6
+ const toolbarLabel = "krc-toolbarLabel-kmRLQ";
7
+ const toolbarSelect = "krc-toolbarSelect-t7OKN";
8
+ const chartContainer = "krc-chartContainer-1-iIe";
9
+ const loading = "krc-loading-MRlom";
10
+ const error = "krc-error-esslq";
11
+ const retryButton = "krc-retryButton-js385";
12
+ const empty = "krc-empty-qYFPa";
13
+ const warning = "krc-warning-ll4Hc";
8
14
  const styles = {
9
15
  root,
10
- rail,
11
- fill,
12
- tick,
13
- disabled,
14
- thumb,
15
- valueTooltip
16
+ header,
17
+ title,
18
+ headerActions,
19
+ toolbar,
20
+ toolbarLabel,
21
+ toolbarSelect,
22
+ chartContainer,
23
+ loading,
24
+ error,
25
+ retryButton,
26
+ empty,
27
+ warning
16
28
  };
17
29
  export {
30
+ chartContainer,
18
31
  styles as default,
19
- disabled,
20
- fill,
21
- rail,
32
+ empty,
33
+ error,
34
+ header,
35
+ headerActions,
36
+ loading,
37
+ retryButton,
22
38
  root,
23
- thumb,
24
- tick,
25
- valueTooltip
39
+ title,
40
+ toolbar,
41
+ toolbarLabel,
42
+ toolbarSelect,
43
+ warning
26
44
  };
27
45
  //# sourceMappingURL=index78.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index79.cjs CHANGED
@@ -1,21 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-oc0XP";
4
- const success = "krc-success-JzpGX";
5
- const warning = "krc-warning-lTskX";
6
- const danger = "krc-danger-zFPHk";
7
- const info = "krc-info-k9uTn";
3
+ const root = "krc-root-rUudF";
4
+ const header = "krc-header-zjbPA";
5
+ const title = "krc-title-ScYja";
6
+ const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
7
+ const timeRangeButton = "krc-timeRangeButton-9XCxb";
8
+ const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
9
+ const chartContainer = "krc-chartContainer-6rb4Z";
10
+ const loading = "krc-loading-EWhol";
11
+ const error = "krc-error-erDaP";
12
+ const empty = "krc-empty---cYi";
8
13
  const styles = {
9
14
  root,
10
- success,
11
- warning,
12
- danger,
13
- info
15
+ header,
16
+ title,
17
+ timeRangeGroup,
18
+ timeRangeButton,
19
+ timeRangeButtonActive,
20
+ chartContainer,
21
+ loading,
22
+ error,
23
+ empty
14
24
  };
15
- exports.danger = danger;
25
+ exports.chartContainer = chartContainer;
16
26
  exports.default = styles;
17
- exports.info = info;
27
+ exports.empty = empty;
28
+ exports.error = error;
29
+ exports.header = header;
30
+ exports.loading = loading;
18
31
  exports.root = root;
19
- exports.success = success;
20
- exports.warning = warning;
32
+ exports.timeRangeButton = timeRangeButton;
33
+ exports.timeRangeButtonActive = timeRangeButtonActive;
34
+ exports.timeRangeGroup = timeRangeGroup;
35
+ exports.title = title;
21
36
  //# sourceMappingURL=index79.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index79.js CHANGED
@@ -1,21 +1,36 @@
1
- const root = "krc-root-oc0XP";
2
- const success = "krc-success-JzpGX";
3
- const warning = "krc-warning-lTskX";
4
- const danger = "krc-danger-zFPHk";
5
- const info = "krc-info-k9uTn";
1
+ const root = "krc-root-rUudF";
2
+ const header = "krc-header-zjbPA";
3
+ const title = "krc-title-ScYja";
4
+ const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
5
+ const timeRangeButton = "krc-timeRangeButton-9XCxb";
6
+ const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
7
+ const chartContainer = "krc-chartContainer-6rb4Z";
8
+ const loading = "krc-loading-EWhol";
9
+ const error = "krc-error-erDaP";
10
+ const empty = "krc-empty---cYi";
6
11
  const styles = {
7
12
  root,
8
- success,
9
- warning,
10
- danger,
11
- info
13
+ header,
14
+ title,
15
+ timeRangeGroup,
16
+ timeRangeButton,
17
+ timeRangeButtonActive,
18
+ chartContainer,
19
+ loading,
20
+ error,
21
+ empty
12
22
  };
13
23
  export {
14
- danger,
24
+ chartContainer,
15
25
  styles as default,
16
- info,
26
+ empty,
27
+ error,
28
+ header,
29
+ loading,
17
30
  root,
18
- success,
19
- warning
31
+ timeRangeButton,
32
+ timeRangeButtonActive,
33
+ timeRangeGroup,
34
+ title
20
35
  };
21
36
  //# sourceMappingURL=index79.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index79.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index79.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index80.cjs CHANGED
@@ -1,27 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-cQSdQ";
4
- const disabled = "krc-disabled-mXUpZ";
5
- const active = "krc-active-c6Qv6";
6
- const collapsed = "krc-collapsed-zZjr3";
7
- const icon = "krc-icon-dmCQi";
8
- const label = "krc-label-ohVFC";
9
- const badge = "krc-badge-D8UnW";
3
+ const root = "krc-root-jkFwM";
4
+ const sidebar = "krc-sidebar-g7vxQ";
5
+ const sidebarCollapsed = "krc-sidebarCollapsed-Xiswa";
6
+ const main = "krc-main-B4HyG";
7
+ const content = "krc-content-72sFf";
8
+ const title = "krc-title-pe-1P";
10
9
  const styles = {
11
10
  root,
12
- disabled,
13
- active,
14
- collapsed,
15
- icon,
16
- label,
17
- badge
11
+ sidebar,
12
+ sidebarCollapsed,
13
+ main,
14
+ content,
15
+ title
18
16
  };
19
- exports.active = active;
20
- exports.badge = badge;
21
- exports.collapsed = collapsed;
17
+ exports.content = content;
22
18
  exports.default = styles;
23
- exports.disabled = disabled;
24
- exports.icon = icon;
25
- exports.label = label;
19
+ exports.main = main;
26
20
  exports.root = root;
21
+ exports.sidebar = sidebar;
22
+ exports.sidebarCollapsed = sidebarCollapsed;
23
+ exports.title = title;
27
24
  //# sourceMappingURL=index80.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index80.js CHANGED
@@ -1,27 +1,24 @@
1
- const root = "krc-root-cQSdQ";
2
- const disabled = "krc-disabled-mXUpZ";
3
- const active = "krc-active-c6Qv6";
4
- const collapsed = "krc-collapsed-zZjr3";
5
- const icon = "krc-icon-dmCQi";
6
- const label = "krc-label-ohVFC";
7
- const badge = "krc-badge-D8UnW";
1
+ const root = "krc-root-jkFwM";
2
+ const sidebar = "krc-sidebar-g7vxQ";
3
+ const sidebarCollapsed = "krc-sidebarCollapsed-Xiswa";
4
+ const main = "krc-main-B4HyG";
5
+ const content = "krc-content-72sFf";
6
+ const title = "krc-title-pe-1P";
8
7
  const styles = {
9
8
  root,
10
- disabled,
11
- active,
12
- collapsed,
13
- icon,
14
- label,
15
- badge
9
+ sidebar,
10
+ sidebarCollapsed,
11
+ main,
12
+ content,
13
+ title
16
14
  };
17
15
  export {
18
- active,
19
- badge,
20
- collapsed,
16
+ content,
21
17
  styles as default,
22
- disabled,
23
- icon,
24
- label,
25
- root
18
+ main,
19
+ root,
20
+ sidebar,
21
+ sidebarCollapsed,
22
+ title
26
23
  };
27
24
  //# sourceMappingURL=index80.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index80.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index80.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
package/dist/index81.cjs CHANGED
@@ -1,38 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const MAX_LATITUDE = 90;
4
- const MAX_LONGITUDE = 180;
5
- const hasUsableCoordinates = (point) => Number.isFinite(point.latitude) && Number.isFinite(point.longitude) && Math.abs(point.latitude) <= MAX_LATITUDE && Math.abs(point.longitude) <= MAX_LONGITUDE;
6
- const sample = (points, cap) => {
7
- if (cap <= 1) return points.slice(0, Math.max(cap, 0));
8
- const step = (points.length - 1) / (cap - 1);
9
- return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
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
+ const merge = (a, b) => a == null ? b : b == null ? a : a + b;
4
+ const pivotGroupedBars = (data) => {
5
+ const categories = /* @__PURE__ */ new Set();
6
+ const cells = /* @__PURE__ */ new Map();
7
+ for (const { category, series: series2, value } of data) {
8
+ categories.add(category);
9
+ let row = cells.get(series2);
10
+ if (!row) {
11
+ row = /* @__PURE__ */ new Map();
12
+ cells.set(series2, row);
34
13
  }
35
- };
14
+ row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);
15
+ }
16
+ const categoryList = [...categories];
17
+ const series = [...cells.entries()].map(([name, row]) => ({
18
+ name,
19
+ values: categoryList.map((category) => row.get(category) ?? null)
20
+ }));
21
+ const hasValues = series.some((s) => s.values.some((v) => v != null));
22
+ return { categories: categoryList, series, hasValues };
36
23
  };
37
- exports.normalizePoints = normalizePoints;
24
+ exports.pivotGroupedBars = pivotGroupedBars;
38
25
  //# sourceMappingURL=index81.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index81.cjs","sources":["../src/geo/GeoMapCard/normalizePoints.ts"],"sourcesContent":["import type { GeoPoint, GeoRenderInfo } from '../../types/geo.types';\n\n/** A point that survived validation, paired with where it came from. */\nexport interface DrawnPoint {\n point: GeoPoint;\n /** Index in the original `points` array, not in the normalised one. */\n sourceIndex: number;\n}\n\n/** South-west and north-east corners, in Leaflet's `[lat, lng]` order. */\nexport type GeoBounds = [[number, number], [number, number]];\n\nexport interface NormalizeResult {\n drawn: DrawnPoint[];\n bounds: GeoBounds | null;\n info: GeoRenderInfo;\n}\n\nconst MAX_LATITUDE = 90;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Garbage coordinates are the norm in network inventories, not the exception:\n * nulls, empty strings coerced to NaN and swapped lat/lng all show up.\n */\nconst hasUsableCoordinates = (point: GeoPoint): boolean =>\n Number.isFinite(point.latitude) &&\n Number.isFinite(point.longitude) &&\n Math.abs(point.latitude) <= MAX_LATITUDE &&\n Math.abs(point.longitude) <= MAX_LONGITUDE;\n\n/**\n * Evenly spread `cap` markers across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same map.\n */\nconst sample = (points: DrawnPoint[], cap: number): DrawnPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const step = (points.length - 1) / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\nconst boundsOf = (points: DrawnPoint[]): GeoBounds | null => {\n if (points.length === 0) return null;\n\n const latitudes = points.map((p) => p.point.latitude);\n const longitudes = points.map((p) => p.point.longitude);\n\n return [\n [Math.min(...latitudes), Math.min(...longitudes)],\n [Math.max(...latitudes), Math.max(...longitudes)],\n ];\n};\n\n/**\n * Drop the unplottable points, cap the marker count, then report what happened.\n *\n * Coincident points are *not* folded the way the scatter chart folds them: on a\n * map two cells at the same site are two cells, and zooming already separates\n * them.\n *\n * The reported counts satisfy `total === drawn + skipped + dropped`.\n */\nexport const normalizePoints = (points: GeoPoint[], maxPoints: number): NormalizeResult => {\n const usable: DrawnPoint[] = [];\n\n points.forEach((point, sourceIndex) => {\n if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });\n });\n\n const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;\n\n return {\n drawn,\n bounds: boundsOf(drawn),\n info: {\n total: points.length,\n drawn: drawn.length,\n skipped: points.length - usable.length,\n dropped: usable.length - drawn.length,\n },\n };\n};\n"],"names":[],"mappings":";;AAkBA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AAMtB,MAAM,uBAAuB,CAAC,UAC5B,OAAO,SAAS,MAAM,QAAQ,KAC9B,OAAO,SAAS,MAAM,SAAS,KAC/B,KAAK,IAAI,MAAM,QAAQ,KAAK,gBAC5B,KAAK,IAAI,MAAM,SAAS,KAAK;AAM/B,MAAM,SAAS,CAAC,QAAsB,QAA8B;AAClE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,QAAQ,OAAO,SAAS,MAAM,MAAM;AAE1C,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAEA,MAAM,WAAW,CAAC,WAA2C;AAC3D,MAAI,OAAO,WAAW,EAAG,QAAO;AAEhC,QAAM,YAAY,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,QAAQ;AACpD,QAAM,aAAa,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,SAAS;AAEtD,SAAO;AAAA,IACL,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,IAChD,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,EAAA;AAEpD;AAWO,MAAM,kBAAkB,CAAC,QAAoB,cAAuC;AACzF,QAAM,SAAuB,CAAA;AAE7B,SAAO,QAAQ,CAAC,OAAO,gBAAgB;AACrC,QAAI,qBAAqB,KAAK,EAAG,QAAO,KAAK,EAAE,OAAO,aAAa;AAAA,EACrE,CAAC;AAED,QAAM,QAAQ,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEtE,SAAO;AAAA,IACL;AAAA,IACA,QAAQ,SAAS,KAAK;AAAA,IACtB,MAAM;AAAA,MACJ,OAAO,OAAO;AAAA,MACd,OAAO,MAAM;AAAA,MACb,SAAS,OAAO,SAAS,OAAO;AAAA,MAChC,SAAS,OAAO,SAAS,MAAM;AAAA,IAAA;AAAA,EACjC;AAEJ;;"}
1
+ {"version":3,"file":"index81.cjs","sources":["../src/charts/GroupedBarChartCard/pivotGroupedBars.ts"],"sourcesContent":["import type { GroupedBarPoint } from '../../types/chart.types';\n\n/** One series with its values aligned to `categories`; `null` is a gap. */\nexport interface PivotedSeries {\n name: string;\n values: (number | null)[];\n}\n\n/** Category × series matrix of a grouped bar chart. */\nexport interface GroupedBarPivot {\n /** First-seen order. */\n categories: string[];\n /** First-seen order. */\n series: PivotedSeries[];\n /** Whether any value is non-null — false means there is nothing to draw. */\n hasValues: boolean;\n}\n\n/** `null` adds nothing: only nulls stay a gap. */\nconst merge = (a: number | null, b: number | null) => (a == null ? b : b == null ? a : a + b);\n\n/**\n * Pivot points into a category × series matrix, keeping first-appearance order,\n * summing repeated pairs and filling missing pairs with `null` — never `0`.\n */\nexport const pivotGroupedBars = (data: GroupedBarPoint[]): GroupedBarPivot => {\n const categories = new Set<string>();\n const cells = new Map<string, Map<string, number | null>>();\n\n for (const { category, series, value } of data) {\n categories.add(category);\n let row = cells.get(series);\n if (!row) {\n row = new Map();\n cells.set(series, row);\n }\n row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);\n }\n\n const categoryList = [...categories];\n const series = [...cells.entries()].map(([name, row]) => ({\n name,\n values: categoryList.map((category) => row.get(category) ?? null),\n }));\n const hasValues = series.some((s) => s.values.some((v) => v != null));\n\n return { categories: categoryList, series, hasValues };\n};\n"],"names":["series"],"mappings":";;AAmBA,MAAM,QAAQ,CAAC,GAAkB,MAAsB,KAAK,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI;AAMpF,MAAM,mBAAmB,CAAC,SAA6C;AAC5E,QAAM,iCAAiB,IAAA;AACvB,QAAM,4BAAY,IAAA;AAElB,aAAW,EAAE,UAAU,QAAAA,SAAQ,MAAA,KAAW,MAAM;AAC9C,eAAW,IAAI,QAAQ;AACvB,QAAI,MAAM,MAAM,IAAIA,OAAM;AAC1B,QAAI,CAAC,KAAK;AACR,gCAAU,IAAA;AACV,YAAM,IAAIA,SAAQ,GAAG;AAAA,IACvB;AACA,QAAI,IAAI,UAAU,IAAI,IAAI,QAAQ,IAAI,MAAM,IAAI,IAAI,QAAQ,KAAK,MAAM,KAAK,IAAI,KAAK;AAAA,EACvF;AAEA,QAAM,eAAe,CAAC,GAAG,UAAU;AACnC,QAAM,SAAS,CAAC,GAAG,MAAM,QAAA,CAAS,EAAE,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO;AAAA,IACxD;AAAA,IACA,QAAQ,aAAa,IAAI,CAAC,aAAa,IAAI,IAAI,QAAQ,KAAK,IAAI;AAAA,EAAA,EAChE;AACF,QAAM,YAAY,OAAO,KAAK,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC;AAEpE,SAAO,EAAE,YAAY,cAAc,QAAQ,UAAA;AAC7C;;"}