@ktnpm_devops/react-component 0.20.0 → 0.22.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 (417) hide show
  1. package/LICENSE +14 -15
  2. package/README.md +2 -1
  3. package/dist/composites/CustomRangePicker/CustomRangePicker.d.ts.map +1 -1
  4. package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
  5. package/dist/composites/FilterDropdown/FilterDropdown.d.ts.map +1 -1
  6. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
  7. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.d.ts.map +1 -1
  8. package/dist/hooks/usePanelPlacement.d.ts +12 -20
  9. package/dist/hooks/usePanelPlacement.d.ts.map +1 -1
  10. package/dist/index10.cjs +1 -1
  11. package/dist/index10.js +1 -1
  12. package/dist/index100.cjs +2 -35
  13. package/dist/index100.cjs.map +1 -1
  14. package/dist/index100.js +3 -36
  15. package/dist/index100.js.map +1 -1
  16. package/dist/index101.cjs +13 -49
  17. package/dist/index101.cjs.map +1 -1
  18. package/dist/index101.js +13 -49
  19. package/dist/index101.js.map +1 -1
  20. package/dist/index102.cjs +33 -35
  21. package/dist/index102.cjs.map +1 -1
  22. package/dist/index102.js +32 -34
  23. package/dist/index102.js.map +1 -1
  24. package/dist/index103.cjs +33 -43
  25. package/dist/index103.cjs.map +1 -1
  26. package/dist/index103.js +32 -42
  27. package/dist/index103.js.map +1 -1
  28. package/dist/index104.cjs +132 -23
  29. package/dist/index104.cjs.map +1 -1
  30. package/dist/index104.js +132 -23
  31. package/dist/index104.js.map +1 -1
  32. package/dist/index105.cjs +45 -39
  33. package/dist/index105.cjs.map +1 -1
  34. package/dist/index105.js +44 -38
  35. package/dist/index105.js.map +1 -1
  36. package/dist/index106.cjs +7 -9
  37. package/dist/index106.cjs.map +1 -1
  38. package/dist/index106.js +6 -8
  39. package/dist/index106.js.map +1 -1
  40. package/dist/index107.cjs +21 -10
  41. package/dist/index107.cjs.map +1 -1
  42. package/dist/index107.js +20 -9
  43. package/dist/index107.js.map +1 -1
  44. package/dist/index108.cjs +58 -20
  45. package/dist/index108.cjs.map +1 -1
  46. package/dist/index108.js +57 -19
  47. package/dist/index108.js.map +1 -1
  48. package/dist/index109.cjs +114 -12
  49. package/dist/index109.cjs.map +1 -1
  50. package/dist/index109.js +114 -12
  51. package/dist/index109.js.map +1 -1
  52. package/dist/index11.cjs +1 -1
  53. package/dist/index11.js +1 -1
  54. package/dist/index110.cjs +42 -10
  55. package/dist/index110.cjs.map +1 -1
  56. package/dist/index110.js +41 -9
  57. package/dist/index110.js.map +1 -1
  58. package/dist/index111.cjs +14 -65
  59. package/dist/index111.cjs.map +1 -1
  60. package/dist/index111.js +14 -65
  61. package/dist/index111.js.map +1 -1
  62. package/dist/index112.cjs +49 -10
  63. package/dist/index112.cjs.map +1 -1
  64. package/dist/index112.js +50 -11
  65. package/dist/index112.js.map +1 -1
  66. package/dist/index113.cjs +35 -33
  67. package/dist/index113.cjs.map +1 -1
  68. package/dist/index113.js +34 -32
  69. package/dist/index113.js.map +1 -1
  70. package/dist/index114.cjs +43 -18
  71. package/dist/index114.cjs.map +1 -1
  72. package/dist/index114.js +42 -17
  73. package/dist/index114.js.map +1 -1
  74. package/dist/index115.cjs +24 -42
  75. package/dist/index115.cjs.map +1 -1
  76. package/dist/index115.js +23 -41
  77. package/dist/index115.js.map +1 -1
  78. package/dist/index116.cjs +39 -39
  79. package/dist/index116.cjs.map +1 -1
  80. package/dist/index116.js +38 -38
  81. package/dist/index116.js.map +1 -1
  82. package/dist/index117.cjs +9 -22
  83. package/dist/index117.cjs.map +1 -1
  84. package/dist/index117.js +8 -21
  85. package/dist/index117.js.map +1 -1
  86. package/dist/index118.cjs +10 -21
  87. package/dist/index118.cjs.map +1 -1
  88. package/dist/index118.js +9 -20
  89. package/dist/index118.js.map +1 -1
  90. package/dist/index119.cjs +20 -58
  91. package/dist/index119.cjs.map +1 -1
  92. package/dist/index119.js +19 -57
  93. package/dist/index119.js.map +1 -1
  94. package/dist/index12.cjs +1 -1
  95. package/dist/index12.js +1 -1
  96. package/dist/index120.cjs +14 -10
  97. package/dist/index120.cjs.map +1 -1
  98. package/dist/index120.js +13 -9
  99. package/dist/index120.js.map +1 -1
  100. package/dist/index121.cjs +10 -24
  101. package/dist/index121.cjs.map +1 -1
  102. package/dist/index121.js +9 -23
  103. package/dist/index121.js.map +1 -1
  104. package/dist/index122.cjs +64 -4
  105. package/dist/index122.cjs.map +1 -1
  106. package/dist/index122.js +65 -5
  107. package/dist/index122.js.map +1 -1
  108. package/dist/index123.cjs +64 -10
  109. package/dist/index123.cjs.map +1 -1
  110. package/dist/index123.js +65 -11
  111. package/dist/index123.js.map +1 -1
  112. package/dist/index124.cjs +17 -2
  113. package/dist/index124.cjs.map +1 -1
  114. package/dist/index124.js +17 -2
  115. package/dist/index124.js.map +1 -1
  116. package/dist/index125.cjs +22 -39
  117. package/dist/index125.cjs.map +1 -1
  118. package/dist/index125.js +21 -38
  119. package/dist/index125.js.map +1 -1
  120. package/dist/index126.cjs +69 -18
  121. package/dist/index126.cjs.map +1 -1
  122. package/dist/index126.js +68 -17
  123. package/dist/index126.js.map +1 -1
  124. package/dist/index127.cjs +7 -27
  125. package/dist/index127.cjs.map +1 -1
  126. package/dist/index127.js +6 -26
  127. package/dist/index127.js.map +1 -1
  128. package/dist/index128.cjs +28 -22
  129. package/dist/index128.cjs.map +1 -1
  130. package/dist/index128.js +29 -23
  131. package/dist/index128.js.map +1 -1
  132. package/dist/index129.cjs +19 -15
  133. package/dist/index129.cjs.map +1 -1
  134. package/dist/index129.js +18 -14
  135. package/dist/index129.js.map +1 -1
  136. package/dist/index13.cjs +1 -1
  137. package/dist/index13.js +1 -1
  138. package/dist/index130.cjs +22 -1164
  139. package/dist/index130.cjs.map +1 -1
  140. package/dist/index130.js +20 -1163
  141. package/dist/index130.js.map +1 -1
  142. package/dist/index131.cjs +46 -1573
  143. package/dist/index131.cjs.map +1 -1
  144. package/dist/index131.js +45 -1573
  145. package/dist/index131.js.map +1 -1
  146. package/dist/index132.cjs +71 -30
  147. package/dist/index132.cjs.map +1 -1
  148. package/dist/index132.js +71 -30
  149. package/dist/index132.js.map +1 -1
  150. package/dist/index133.cjs +37 -0
  151. package/dist/index133.cjs.map +1 -0
  152. package/dist/index133.js +37 -0
  153. package/dist/index133.js.map +1 -0
  154. package/dist/index14.cjs +1 -1
  155. package/dist/index14.js +1 -1
  156. package/dist/index15.cjs +1 -1
  157. package/dist/index15.js +1 -1
  158. package/dist/index16.cjs +2 -2
  159. package/dist/index16.js +2 -2
  160. package/dist/index17.cjs +1 -1
  161. package/dist/index17.js +1 -1
  162. package/dist/index18.cjs +1 -1
  163. package/dist/index18.js +1 -1
  164. package/dist/index19.cjs +1 -1
  165. package/dist/index19.js +1 -1
  166. package/dist/index20.cjs +1 -1
  167. package/dist/index20.js +1 -1
  168. package/dist/index21.cjs +1 -1
  169. package/dist/index21.js +1 -1
  170. package/dist/index22.cjs +2 -2
  171. package/dist/index22.js +2 -2
  172. package/dist/index23.cjs +2 -2
  173. package/dist/index23.js +2 -2
  174. package/dist/index24.cjs +2 -2
  175. package/dist/index24.js +2 -2
  176. package/dist/index25.cjs +4 -3
  177. package/dist/index25.cjs.map +1 -1
  178. package/dist/index25.js +4 -3
  179. package/dist/index25.js.map +1 -1
  180. package/dist/index26.cjs +1 -1
  181. package/dist/index26.js +1 -1
  182. package/dist/index27.cjs +4 -3
  183. package/dist/index27.cjs.map +1 -1
  184. package/dist/index27.js +4 -3
  185. package/dist/index27.js.map +1 -1
  186. package/dist/index28.cjs +1 -1
  187. package/dist/index28.js +1 -1
  188. package/dist/index29.cjs +5 -4
  189. package/dist/index29.cjs.map +1 -1
  190. package/dist/index29.js +5 -4
  191. package/dist/index29.js.map +1 -1
  192. package/dist/index30.cjs +11 -11
  193. package/dist/index30.js +11 -11
  194. package/dist/index31.cjs +4 -4
  195. package/dist/index31.js +4 -4
  196. package/dist/index32.cjs +3 -3
  197. package/dist/index32.js +3 -3
  198. package/dist/index33.cjs +1 -1
  199. package/dist/index33.js +1 -1
  200. package/dist/index34.cjs +2 -2
  201. package/dist/index34.js +2 -2
  202. package/dist/index35.cjs +2 -2
  203. package/dist/index35.js +2 -2
  204. package/dist/index36.cjs +2 -2
  205. package/dist/index36.js +2 -2
  206. package/dist/index37.cjs +1 -1
  207. package/dist/index37.js +1 -1
  208. package/dist/index38.cjs +5 -4
  209. package/dist/index38.cjs.map +1 -1
  210. package/dist/index38.js +5 -4
  211. package/dist/index38.js.map +1 -1
  212. package/dist/index39.cjs +1 -1
  213. package/dist/index39.js +1 -1
  214. package/dist/index40.cjs +2 -2
  215. package/dist/index40.js +2 -2
  216. package/dist/index41.cjs +2 -2
  217. package/dist/index41.js +2 -2
  218. package/dist/index42.cjs +2 -2
  219. package/dist/index42.js +2 -2
  220. package/dist/index43.cjs +1 -1
  221. package/dist/index43.js +1 -1
  222. package/dist/index44.cjs +2 -2
  223. package/dist/index44.js +2 -2
  224. package/dist/index45.cjs +4 -4
  225. package/dist/index45.js +4 -4
  226. package/dist/index46.cjs +1 -1
  227. package/dist/index46.js +1 -1
  228. package/dist/index47.cjs +1 -1
  229. package/dist/index47.js +1 -1
  230. package/dist/index48.cjs +1 -1
  231. package/dist/index48.js +1 -1
  232. package/dist/index49.cjs +2 -2
  233. package/dist/index49.js +2 -2
  234. package/dist/index50.cjs +5 -4
  235. package/dist/index50.cjs.map +1 -1
  236. package/dist/index50.js +5 -4
  237. package/dist/index50.js.map +1 -1
  238. package/dist/index51.cjs +1 -1
  239. package/dist/index51.js +1 -1
  240. package/dist/index52.cjs +3 -3
  241. package/dist/index52.js +3 -3
  242. package/dist/index53.cjs +1 -1
  243. package/dist/index53.js +1 -1
  244. package/dist/index54.cjs +1 -1
  245. package/dist/index54.js +1 -1
  246. package/dist/index55.cjs +3 -3
  247. package/dist/index55.js +3 -3
  248. package/dist/index56.cjs +1 -1
  249. package/dist/index56.js +1 -1
  250. package/dist/index57.cjs +1 -1
  251. package/dist/index57.js +1 -1
  252. package/dist/index58.cjs +2 -2
  253. package/dist/index58.js +2 -2
  254. package/dist/index60.cjs +21 -18
  255. package/dist/index60.cjs.map +1 -1
  256. package/dist/index60.js +22 -19
  257. package/dist/index60.js.map +1 -1
  258. package/dist/index61.cjs +17 -6
  259. package/dist/index61.cjs.map +1 -1
  260. package/dist/index61.js +16 -5
  261. package/dist/index61.js.map +1 -1
  262. package/dist/index62.cjs +6 -144
  263. package/dist/index62.cjs.map +1 -1
  264. package/dist/index62.js +5 -143
  265. package/dist/index62.js.map +1 -1
  266. package/dist/index63.cjs +5 -20
  267. package/dist/index63.cjs.map +1 -1
  268. package/dist/index63.js +6 -21
  269. package/dist/index63.js.map +1 -1
  270. package/dist/index64.cjs +145 -22
  271. package/dist/index64.cjs.map +1 -1
  272. package/dist/index64.js +143 -20
  273. package/dist/index64.js.map +1 -1
  274. package/dist/index65.cjs +36 -3
  275. package/dist/index65.cjs.map +1 -1
  276. package/dist/index65.js +36 -3
  277. package/dist/index65.js.map +1 -1
  278. package/dist/index66.cjs +22 -22
  279. package/dist/index66.js +22 -22
  280. package/dist/index67.cjs +13 -13
  281. package/dist/index67.js +13 -13
  282. package/dist/index68.cjs +20 -2
  283. package/dist/index68.cjs.map +1 -1
  284. package/dist/index68.js +21 -3
  285. package/dist/index68.js.map +1 -1
  286. package/dist/index69.cjs +10 -13
  287. package/dist/index69.cjs.map +1 -1
  288. package/dist/index69.js +11 -14
  289. package/dist/index69.js.map +1 -1
  290. package/dist/index70.cjs +19 -13
  291. package/dist/index70.cjs.map +1 -1
  292. package/dist/index70.js +19 -13
  293. package/dist/index70.js.map +1 -1
  294. package/dist/index71.cjs +16 -19
  295. package/dist/index71.cjs.map +1 -1
  296. package/dist/index71.js +16 -19
  297. package/dist/index71.js.map +1 -1
  298. package/dist/index72.cjs +2 -17
  299. package/dist/index72.cjs.map +1 -1
  300. package/dist/index72.js +2 -17
  301. package/dist/index72.js.map +1 -1
  302. package/dist/index73.cjs +19 -134
  303. package/dist/index73.cjs.map +1 -1
  304. package/dist/index73.js +18 -133
  305. package/dist/index73.js.map +1 -1
  306. package/dist/index74.cjs +19 -40
  307. package/dist/index74.cjs.map +1 -1
  308. package/dist/index74.js +20 -41
  309. package/dist/index74.js.map +1 -1
  310. package/dist/index75.cjs +73 -24
  311. package/dist/index75.cjs.map +1 -1
  312. package/dist/index75.js +72 -23
  313. package/dist/index75.js.map +1 -1
  314. package/dist/index76.cjs +28 -28
  315. package/dist/index76.js +28 -28
  316. package/dist/index77.cjs +6 -46
  317. package/dist/index77.cjs.map +1 -1
  318. package/dist/index77.js +5 -45
  319. package/dist/index77.js.map +1 -1
  320. package/dist/index78.cjs +44 -77
  321. package/dist/index78.cjs.map +1 -1
  322. package/dist/index78.js +45 -78
  323. package/dist/index78.js.map +1 -1
  324. package/dist/index79.cjs +77 -44
  325. package/dist/index79.cjs.map +1 -1
  326. package/dist/index79.js +78 -45
  327. package/dist/index79.js.map +1 -1
  328. package/dist/index80.cjs +19 -52
  329. package/dist/index80.cjs.map +1 -1
  330. package/dist/index80.js +19 -52
  331. package/dist/index80.js.map +1 -1
  332. package/dist/index81.cjs +50 -32
  333. package/dist/index81.cjs.map +1 -1
  334. package/dist/index81.js +50 -32
  335. package/dist/index81.js.map +1 -1
  336. package/dist/index82.cjs +1163 -47
  337. package/dist/index82.cjs.map +1 -1
  338. package/dist/index82.js +1163 -46
  339. package/dist/index82.js.map +1 -1
  340. package/dist/index83.cjs +1573 -15
  341. package/dist/index83.cjs.map +1 -1
  342. package/dist/index83.js +1573 -14
  343. package/dist/index83.js.map +1 -1
  344. package/dist/index84.cjs +10 -31
  345. package/dist/index84.cjs.map +1 -1
  346. package/dist/index84.js +11 -32
  347. package/dist/index84.js.map +1 -1
  348. package/dist/index85.cjs +48 -16
  349. package/dist/index85.cjs.map +1 -1
  350. package/dist/index85.js +47 -15
  351. package/dist/index85.js.map +1 -1
  352. package/dist/index86.cjs +18 -70
  353. package/dist/index86.cjs.map +1 -1
  354. package/dist/index86.js +17 -69
  355. package/dist/index86.js.map +1 -1
  356. package/dist/index87.cjs +36 -17
  357. package/dist/index87.cjs.map +1 -1
  358. package/dist/index87.js +35 -16
  359. package/dist/index87.js.map +1 -1
  360. package/dist/index88.cjs +11 -2
  361. package/dist/index88.cjs.map +1 -1
  362. package/dist/index88.js +12 -3
  363. package/dist/index88.js.map +1 -1
  364. package/dist/index89.cjs +22 -116
  365. package/dist/index89.cjs.map +1 -1
  366. package/dist/index89.js +21 -115
  367. package/dist/index89.js.map +1 -1
  368. package/dist/index90.cjs +4 -37
  369. package/dist/index90.cjs.map +1 -1
  370. package/dist/index90.js +5 -38
  371. package/dist/index90.js.map +1 -1
  372. package/dist/index91.cjs +2 -17
  373. package/dist/index91.cjs.map +1 -1
  374. package/dist/index91.js +3 -18
  375. package/dist/index91.js.map +1 -1
  376. package/dist/index92.cjs +39 -22
  377. package/dist/index92.cjs.map +1 -1
  378. package/dist/index92.js +38 -21
  379. package/dist/index92.js.map +1 -1
  380. package/dist/index93.cjs +21 -69
  381. package/dist/index93.cjs.map +1 -1
  382. package/dist/index93.js +20 -68
  383. package/dist/index93.js.map +1 -1
  384. package/dist/index94.cjs +38 -6
  385. package/dist/index94.cjs.map +1 -1
  386. package/dist/index94.js +38 -6
  387. package/dist/index94.js.map +1 -1
  388. package/dist/index95.cjs +92 -39
  389. package/dist/index95.cjs.map +1 -1
  390. package/dist/index95.js +91 -38
  391. package/dist/index95.js.map +1 -1
  392. package/dist/index96.cjs +33 -15
  393. package/dist/index96.cjs.map +1 -1
  394. package/dist/index96.js +34 -16
  395. package/dist/index96.js.map +1 -1
  396. package/dist/index97.cjs +35 -2
  397. package/dist/index97.cjs.map +1 -1
  398. package/dist/index97.js +36 -3
  399. package/dist/index97.js.map +1 -1
  400. package/dist/index98.cjs +24 -39
  401. package/dist/index98.cjs.map +1 -1
  402. package/dist/index98.js +23 -38
  403. package/dist/index98.js.map +1 -1
  404. package/dist/index99.cjs +42 -92
  405. package/dist/index99.cjs.map +1 -1
  406. package/dist/index99.js +41 -91
  407. package/dist/index99.js.map +1 -1
  408. package/dist/style.css +55 -0
  409. package/dist/utils/clippingRect.d.ts +11 -11
  410. package/dist/utils/clippingRect.d.ts.map +1 -1
  411. package/dist/utils/panelPlacement.d.ts +34 -0
  412. package/dist/utils/panelPlacement.d.ts.map +1 -0
  413. package/dist/utils/panelPlacement.test.d.ts +2 -0
  414. package/dist/utils/panelPlacement.test.d.ts.map +1 -0
  415. package/dist/utils/panelPlacement.types.d.ts +57 -0
  416. package/dist/utils/panelPlacement.types.d.ts.map +1 -0
  417. package/package.json +2 -2
package/dist/index121.cjs CHANGED
@@ -1,27 +1,13 @@
1
1
  "use strict";
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";
10
- const styles = {
11
- root,
12
- disabled,
13
- active,
14
- collapsed,
15
- icon,
16
- label,
17
- badge
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const constants = require("./index64.cjs");
4
+ const resolveTiles = (tileLayer, basemap, theme, basemapKey) => {
5
+ if (tileLayer != null) return tileLayer;
6
+ const url = constants.BASEMAP_TILES[basemap === "auto" ? theme : basemap];
7
+ return {
8
+ url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,
9
+ attribution: constants.BASEMAP_TILES.attribution
10
+ };
18
11
  };
19
- exports.active = active;
20
- exports.badge = badge;
21
- exports.collapsed = collapsed;
22
- exports.default = styles;
23
- exports.disabled = disabled;
24
- exports.icon = icon;
25
- exports.label = label;
26
- exports.root = root;
12
+ exports.resolveTiles = resolveTiles;
27
13
  //# sourceMappingURL=index121.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index121.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index121.cjs","sources":["../src/geo/GeoMapCard/resolveTiles.ts"],"sourcesContent":["import { BASEMAP_TILES } from '../../constants';\nimport type { ThemeMode } from '../../hooks/useThemeMode';\nimport type { GeoBasemap, GeoTileLayer } from '../../types/geo.types';\n\n/**\n * The tile source to draw: a caller-supplied layer wins outright; otherwise the\n * CARTO basemap for the theme, carrying the API key when one is given.\n */\nexport const resolveTiles = (\n tileLayer: GeoTileLayer | undefined,\n basemap: GeoBasemap,\n theme: ThemeMode,\n basemapKey: string | undefined,\n): GeoTileLayer => {\n if (tileLayer != null) return tileLayer;\n\n const url = BASEMAP_TILES[basemap === 'auto' ? theme : basemap];\n\n return {\n url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,\n attribution: BASEMAP_TILES.attribution,\n };\n};\n"],"names":["BASEMAP_TILES"],"mappings":";;;AAQO,MAAM,eAAe,CAC1B,WACA,SACA,OACA,eACiB;AACjB,MAAI,aAAa,KAAM,QAAO;AAE9B,QAAM,MAAMA,UAAAA,cAAc,YAAY,SAAS,QAAQ,OAAO;AAE9D,SAAO;AAAA,IACL,KAAK,aAAa,GAAG,GAAG,QAAQ,mBAAmB,UAAU,CAAC,KAAK;AAAA,IACnE,aAAaA,UAAAA,cAAc;AAAA,EAAA;AAE/B;;"}
package/dist/index121.js CHANGED
@@ -1,27 +1,13 @@
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";
8
- const styles = {
9
- root,
10
- disabled,
11
- active,
12
- collapsed,
13
- icon,
14
- label,
15
- badge
1
+ import { BASEMAP_TILES } from "./index64.js";
2
+ const resolveTiles = (tileLayer, basemap, theme, basemapKey) => {
3
+ if (tileLayer != null) return tileLayer;
4
+ const url = BASEMAP_TILES[basemap === "auto" ? theme : basemap];
5
+ return {
6
+ url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,
7
+ attribution: BASEMAP_TILES.attribution
8
+ };
16
9
  };
17
10
  export {
18
- active,
19
- badge,
20
- collapsed,
21
- styles as default,
22
- disabled,
23
- icon,
24
- label,
25
- root
11
+ resolveTiles
26
12
  };
27
13
  //# sourceMappingURL=index121.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index121.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index121.js","sources":["../src/geo/GeoMapCard/resolveTiles.ts"],"sourcesContent":["import { BASEMAP_TILES } from '../../constants';\nimport type { ThemeMode } from '../../hooks/useThemeMode';\nimport type { GeoBasemap, GeoTileLayer } from '../../types/geo.types';\n\n/**\n * The tile source to draw: a caller-supplied layer wins outright; otherwise the\n * CARTO basemap for the theme, carrying the API key when one is given.\n */\nexport const resolveTiles = (\n tileLayer: GeoTileLayer | undefined,\n basemap: GeoBasemap,\n theme: ThemeMode,\n basemapKey: string | undefined,\n): GeoTileLayer => {\n if (tileLayer != null) return tileLayer;\n\n const url = BASEMAP_TILES[basemap === 'auto' ? theme : basemap];\n\n return {\n url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,\n attribution: BASEMAP_TILES.attribution,\n };\n};\n"],"names":[],"mappings":";AAQO,MAAM,eAAe,CAC1B,WACA,SACA,OACA,eACiB;AACjB,MAAI,aAAa,KAAM,QAAO;AAE9B,QAAM,MAAM,cAAc,YAAY,SAAS,QAAQ,OAAO;AAE9D,SAAO;AAAA,IACL,KAAK,aAAa,GAAG,GAAG,QAAQ,mBAAmB,UAAU,CAAC,KAAK;AAAA,IACnE,aAAa,cAAc;AAAA,EAAA;AAE/B;"}
package/dist/index122.cjs CHANGED
@@ -1,12 +1,72 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root--zhUO";
4
- const dot = "krc-dot-uJk1V";
3
+ const root = "krc-root-m-WU1";
4
+ const header = "krc-header-j8Yft";
5
+ const title = "krc-title-10Tak";
6
+ const headerActions = "krc-headerActions-rh6MO";
7
+ const toolbar = "krc-toolbar-6bfl-";
8
+ const warning = "krc-warning-dISP1";
9
+ const status = "krc-status-NTIdX";
10
+ const refreshing = "krc-refreshing-THBtz";
11
+ const refreshingDot = "krc-refreshingDot-flOST";
12
+ const mapContainer = "krc-mapContainer-MKTII";
13
+ const map = "krc-map-o-Ldd";
14
+ const loading = "krc-loading-LE2tH";
15
+ const empty = "krc-empty-JAoUd";
16
+ const error = "krc-error-FkrvS";
17
+ const retryButton = "krc-retryButton-BKn73";
18
+ const legend = "krc-legend-c-RjE";
19
+ const legendTitle = "krc-legendTitle-j4e4-";
20
+ const legendList = "krc-legendList-jRukT";
21
+ const legendItem = "krc-legendItem-X2jYA";
22
+ const legendSwatch = "krc-legendSwatch-OTMwM";
23
+ const compact = "krc-compact-Ha6w2";
24
+ const srOnly = "krc-srOnly-KDwnO";
5
25
  const styles = {
6
26
  root,
7
- dot
27
+ header,
28
+ title,
29
+ headerActions,
30
+ toolbar,
31
+ warning,
32
+ status,
33
+ refreshing,
34
+ refreshingDot,
35
+ mapContainer,
36
+ map,
37
+ loading,
38
+ empty,
39
+ error,
40
+ retryButton,
41
+ legend,
42
+ legendTitle,
43
+ legendList,
44
+ legendItem,
45
+ legendSwatch,
46
+ compact,
47
+ srOnly
8
48
  };
49
+ exports.compact = compact;
9
50
  exports.default = styles;
10
- exports.dot = dot;
51
+ exports.empty = empty;
52
+ exports.error = error;
53
+ exports.header = header;
54
+ exports.headerActions = headerActions;
55
+ exports.legend = legend;
56
+ exports.legendItem = legendItem;
57
+ exports.legendList = legendList;
58
+ exports.legendSwatch = legendSwatch;
59
+ exports.legendTitle = legendTitle;
60
+ exports.loading = loading;
61
+ exports.map = map;
62
+ exports.mapContainer = mapContainer;
63
+ exports.refreshing = refreshing;
64
+ exports.refreshingDot = refreshingDot;
65
+ exports.retryButton = retryButton;
11
66
  exports.root = root;
67
+ exports.srOnly = srOnly;
68
+ exports.status = status;
69
+ exports.title = title;
70
+ exports.toolbar = toolbar;
71
+ exports.warning = warning;
12
72
  //# sourceMappingURL=index122.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index122.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index122.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index122.js CHANGED
@@ -1,12 +1,72 @@
1
- const root = "krc-root--zhUO";
2
- const dot = "krc-dot-uJk1V";
1
+ const root = "krc-root-m-WU1";
2
+ const header = "krc-header-j8Yft";
3
+ const title = "krc-title-10Tak";
4
+ const headerActions = "krc-headerActions-rh6MO";
5
+ const toolbar = "krc-toolbar-6bfl-";
6
+ const warning = "krc-warning-dISP1";
7
+ const status = "krc-status-NTIdX";
8
+ const refreshing = "krc-refreshing-THBtz";
9
+ const refreshingDot = "krc-refreshingDot-flOST";
10
+ const mapContainer = "krc-mapContainer-MKTII";
11
+ const map = "krc-map-o-Ldd";
12
+ const loading = "krc-loading-LE2tH";
13
+ const empty = "krc-empty-JAoUd";
14
+ const error = "krc-error-FkrvS";
15
+ const retryButton = "krc-retryButton-BKn73";
16
+ const legend = "krc-legend-c-RjE";
17
+ const legendTitle = "krc-legendTitle-j4e4-";
18
+ const legendList = "krc-legendList-jRukT";
19
+ const legendItem = "krc-legendItem-X2jYA";
20
+ const legendSwatch = "krc-legendSwatch-OTMwM";
21
+ const compact = "krc-compact-Ha6w2";
22
+ const srOnly = "krc-srOnly-KDwnO";
3
23
  const styles = {
4
24
  root,
5
- dot
25
+ header,
26
+ title,
27
+ headerActions,
28
+ toolbar,
29
+ warning,
30
+ status,
31
+ refreshing,
32
+ refreshingDot,
33
+ mapContainer,
34
+ map,
35
+ loading,
36
+ empty,
37
+ error,
38
+ retryButton,
39
+ legend,
40
+ legendTitle,
41
+ legendList,
42
+ legendItem,
43
+ legendSwatch,
44
+ compact,
45
+ srOnly
6
46
  };
7
47
  export {
48
+ compact,
8
49
  styles as default,
9
- dot,
10
- root
50
+ empty,
51
+ error,
52
+ header,
53
+ headerActions,
54
+ legend,
55
+ legendItem,
56
+ legendList,
57
+ legendSwatch,
58
+ legendTitle,
59
+ loading,
60
+ map,
61
+ mapContainer,
62
+ refreshing,
63
+ refreshingDot,
64
+ retryButton,
65
+ root,
66
+ srOnly,
67
+ status,
68
+ title,
69
+ toolbar,
70
+ warning
11
71
  };
12
72
  //# sourceMappingURL=index122.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index122.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index122.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index123.cjs CHANGED
@@ -1,18 +1,72 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-la9-1";
4
- const logo = "krc-logo-b73UT";
5
- const card = "krc-card-1ev-q";
6
- const footer = "krc-footer-E0B15";
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";
7
25
  const styles = {
8
26
  root,
9
- logo,
10
- card,
11
- footer
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
12
48
  };
13
- exports.card = card;
49
+ exports.alignBaseline = alignBaseline;
50
+ exports.alignCenter = alignCenter;
51
+ exports.alignEnd = alignEnd;
52
+ exports.alignStart = alignStart;
53
+ exports.alignStretch = alignStretch;
14
54
  exports.default = styles;
15
- exports.footer = footer;
16
- exports.logo = logo;
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;
17
70
  exports.root = root;
71
+ exports.wrap = wrap;
18
72
  //# sourceMappingURL=index123.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index123.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index123.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index123.js CHANGED
@@ -1,18 +1,72 @@
1
- const root = "krc-root-la9-1";
2
- const logo = "krc-logo-b73UT";
3
- const card = "krc-card-1ev-q";
4
- const footer = "krc-footer-E0B15";
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";
5
23
  const styles = {
6
24
  root,
7
- logo,
8
- card,
9
- footer
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
10
46
  };
11
47
  export {
12
- card,
48
+ alignBaseline,
49
+ alignCenter,
50
+ alignEnd,
51
+ alignStart,
52
+ alignStretch,
13
53
  styles as default,
14
- footer,
15
- logo,
16
- root
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
17
71
  };
18
72
  //# sourceMappingURL=index123.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index123.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"index123.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index124.cjs CHANGED
@@ -1,9 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-0ZI82";
3
+ const root = "krc-root-wErEG";
4
+ const list = "krc-list-Np3Qt";
5
+ const page = "krc-page-znalz";
6
+ const arrow = "krc-arrow-ruhgF";
7
+ const isActive = "krc-isActive-azJrs";
8
+ const ellipsis = "krc-ellipsis-vMrZ6";
4
9
  const styles = {
5
- root
10
+ root,
11
+ list,
12
+ page,
13
+ arrow,
14
+ isActive,
15
+ ellipsis
6
16
  };
17
+ exports.arrow = arrow;
7
18
  exports.default = styles;
19
+ exports.ellipsis = ellipsis;
20
+ exports.isActive = isActive;
21
+ exports.list = list;
22
+ exports.page = page;
8
23
  exports.root = root;
9
24
  //# sourceMappingURL=index124.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index124.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index124.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index124.js CHANGED
@@ -1,9 +1,24 @@
1
- const root = "krc-root-0ZI82";
1
+ const root = "krc-root-wErEG";
2
+ const list = "krc-list-Np3Qt";
3
+ const page = "krc-page-znalz";
4
+ const arrow = "krc-arrow-ruhgF";
5
+ const isActive = "krc-isActive-azJrs";
6
+ const ellipsis = "krc-ellipsis-vMrZ6";
2
7
  const styles = {
3
- root
8
+ root,
9
+ list,
10
+ page,
11
+ arrow,
12
+ isActive,
13
+ ellipsis
4
14
  };
5
15
  export {
16
+ arrow,
6
17
  styles as default,
18
+ ellipsis,
19
+ isActive,
20
+ list,
21
+ page,
7
22
  root
8
23
  };
9
24
  //# sourceMappingURL=index124.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index124.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index124.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
package/dist/index125.cjs CHANGED
@@ -1,42 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const throbber = "krc-throbber-sSMfc";
4
- const spinner = "krc-spinner-vmNIY";
5
- const loadingSpin = "krc-loading-spin-cFeV6";
6
- const titleRow = "krc-titleRow--Go1f";
7
- const titleSpinner = "krc-titleSpinner-BPUs5";
8
- const steps = "krc-steps-zu1EV";
9
- const step = "krc-step-hzz-Q";
10
- const pending = "krc-pending-sxbM4";
11
- const iconSlot = "krc-iconSlot-74ZD2";
12
- const stepSpinner = "krc-stepSpinner-0d1jM";
13
- const checkIcon = "krc-checkIcon-FhWlj";
14
- const nonClosable = "krc-nonClosable-7NB7j";
15
- const styles = {
16
- throbber,
17
- spinner,
18
- loadingSpin,
19
- titleRow,
20
- titleSpinner,
21
- steps,
22
- step,
23
- pending,
24
- iconSlot,
25
- stepSpinner,
26
- checkIcon,
27
- nonClosable
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
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);
13
+ }
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 };
28
23
  };
29
- exports.checkIcon = checkIcon;
30
- exports.default = styles;
31
- exports.iconSlot = iconSlot;
32
- exports.loadingSpin = loadingSpin;
33
- exports.nonClosable = nonClosable;
34
- exports.pending = pending;
35
- exports.spinner = spinner;
36
- exports.step = step;
37
- exports.stepSpinner = stepSpinner;
38
- exports.steps = steps;
39
- exports.throbber = throbber;
40
- exports.titleRow = titleRow;
41
- exports.titleSpinner = titleSpinner;
24
+ exports.pivotGroupedBars = pivotGroupedBars;
42
25
  //# sourceMappingURL=index125.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index125.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index125.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;;"}
package/dist/index125.js CHANGED
@@ -1,42 +1,25 @@
1
- const throbber = "krc-throbber-sSMfc";
2
- const spinner = "krc-spinner-vmNIY";
3
- const loadingSpin = "krc-loading-spin-cFeV6";
4
- const titleRow = "krc-titleRow--Go1f";
5
- const titleSpinner = "krc-titleSpinner-BPUs5";
6
- const steps = "krc-steps-zu1EV";
7
- const step = "krc-step-hzz-Q";
8
- const pending = "krc-pending-sxbM4";
9
- const iconSlot = "krc-iconSlot-74ZD2";
10
- const stepSpinner = "krc-stepSpinner-0d1jM";
11
- const checkIcon = "krc-checkIcon-FhWlj";
12
- const nonClosable = "krc-nonClosable-7NB7j";
13
- const styles = {
14
- throbber,
15
- spinner,
16
- loadingSpin,
17
- titleRow,
18
- titleSpinner,
19
- steps,
20
- step,
21
- pending,
22
- iconSlot,
23
- stepSpinner,
24
- checkIcon,
25
- nonClosable
1
+ const merge = (a, b) => a == null ? b : b == null ? a : a + b;
2
+ const pivotGroupedBars = (data) => {
3
+ const categories = /* @__PURE__ */ new Set();
4
+ const cells = /* @__PURE__ */ new Map();
5
+ for (const { category, series: series2, value } of data) {
6
+ categories.add(category);
7
+ let row = cells.get(series2);
8
+ if (!row) {
9
+ row = /* @__PURE__ */ new Map();
10
+ cells.set(series2, row);
11
+ }
12
+ row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);
13
+ }
14
+ const categoryList = [...categories];
15
+ const series = [...cells.entries()].map(([name, row]) => ({
16
+ name,
17
+ values: categoryList.map((category) => row.get(category) ?? null)
18
+ }));
19
+ const hasValues = series.some((s) => s.values.some((v) => v != null));
20
+ return { categories: categoryList, series, hasValues };
26
21
  };
27
22
  export {
28
- checkIcon,
29
- styles as default,
30
- iconSlot,
31
- loadingSpin,
32
- nonClosable,
33
- pending,
34
- spinner,
35
- step,
36
- stepSpinner,
37
- steps,
38
- throbber,
39
- titleRow,
40
- titleSpinner
23
+ pivotGroupedBars
41
24
  };
42
25
  //# sourceMappingURL=index125.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index125.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index125.js","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;"}