@ktnpm_devops/react-component 0.18.0 → 0.19.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 (362) hide show
  1. package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts.map +1 -1
  2. package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts +5 -0
  3. package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts.map +1 -1
  4. package/dist/index10.cjs +1 -1
  5. package/dist/index10.js +1 -1
  6. package/dist/index100.cjs +22 -28
  7. package/dist/index100.cjs.map +1 -1
  8. package/dist/index100.js +22 -28
  9. package/dist/index100.js.map +1 -1
  10. package/dist/index101.cjs +48 -22
  11. package/dist/index101.cjs.map +1 -1
  12. package/dist/index101.js +47 -21
  13. package/dist/index101.js.map +1 -1
  14. package/dist/index102.cjs +16 -34
  15. package/dist/index102.cjs.map +1 -1
  16. package/dist/index102.js +16 -34
  17. package/dist/index102.js.map +1 -1
  18. package/dist/index103.cjs +36 -43
  19. package/dist/index103.cjs.map +1 -1
  20. package/dist/index103.js +35 -42
  21. package/dist/index103.js.map +1 -1
  22. package/dist/index104.cjs +6 -24
  23. package/dist/index104.cjs.map +1 -1
  24. package/dist/index104.js +5 -23
  25. package/dist/index104.js.map +1 -1
  26. package/dist/index105.cjs +21 -39
  27. package/dist/index105.cjs.map +1 -1
  28. package/dist/index105.js +20 -38
  29. package/dist/index105.js.map +1 -1
  30. package/dist/index106.cjs +22 -9
  31. package/dist/index106.cjs.map +1 -1
  32. package/dist/index106.js +21 -8
  33. package/dist/index106.js.map +1 -1
  34. package/dist/index107.cjs +6 -10
  35. package/dist/index107.cjs.map +1 -1
  36. package/dist/index107.js +5 -9
  37. package/dist/index107.js.map +1 -1
  38. package/dist/index108.cjs +19 -20
  39. package/dist/index108.cjs.map +1 -1
  40. package/dist/index108.js +18 -19
  41. package/dist/index108.js.map +1 -1
  42. package/dist/index109.cjs +19 -14
  43. package/dist/index109.cjs.map +1 -1
  44. package/dist/index109.js +18 -13
  45. package/dist/index109.js.map +1 -1
  46. package/dist/index11.cjs +1 -1
  47. package/dist/index11.js +1 -1
  48. package/dist/index110.cjs +33 -10
  49. package/dist/index110.cjs.map +1 -1
  50. package/dist/index110.js +32 -9
  51. package/dist/index110.js.map +1 -1
  52. package/dist/index111.cjs +2 -65
  53. package/dist/index111.cjs.map +1 -1
  54. package/dist/index111.js +3 -66
  55. package/dist/index111.js.map +1 -1
  56. package/dist/index112.cjs +49 -46
  57. package/dist/index112.cjs.map +1 -1
  58. package/dist/index112.js +49 -46
  59. package/dist/index112.js.map +1 -1
  60. package/dist/index113.cjs +22 -21
  61. package/dist/index113.cjs.map +1 -1
  62. package/dist/index113.js +21 -20
  63. package/dist/index113.js.map +1 -1
  64. package/dist/index114.cjs +69 -6
  65. package/dist/index114.cjs.map +1 -1
  66. package/dist/index114.js +68 -5
  67. package/dist/index114.js.map +1 -1
  68. package/dist/index115.cjs +7 -47
  69. package/dist/index115.cjs.map +1 -1
  70. package/dist/index115.js +7 -47
  71. package/dist/index115.js.map +1 -1
  72. package/dist/index116.cjs +40 -18
  73. package/dist/index116.cjs.map +1 -1
  74. package/dist/index116.js +39 -17
  75. package/dist/index116.js.map +1 -1
  76. package/dist/index117.cjs +35 -36
  77. package/dist/index117.cjs.map +1 -1
  78. package/dist/index117.js +34 -35
  79. package/dist/index117.js.map +1 -1
  80. package/dist/index118.cjs +42 -21
  81. package/dist/index118.cjs.map +1 -1
  82. package/dist/index118.js +42 -21
  83. package/dist/index118.js.map +1 -1
  84. package/dist/index119.cjs +22 -67
  85. package/dist/index119.cjs.map +1 -1
  86. package/dist/index119.js +23 -68
  87. package/dist/index119.js.map +1 -1
  88. package/dist/index12.cjs +1 -1
  89. package/dist/index12.js +1 -1
  90. package/dist/index120.cjs +38 -6
  91. package/dist/index120.cjs.map +1 -1
  92. package/dist/index120.js +38 -6
  93. package/dist/index120.js.map +1 -1
  94. package/dist/index121.cjs +9 -40
  95. package/dist/index121.cjs.map +1 -1
  96. package/dist/index121.js +8 -39
  97. package/dist/index121.js.map +1 -1
  98. package/dist/index122.cjs +10 -42
  99. package/dist/index122.cjs.map +1 -1
  100. package/dist/index122.js +9 -41
  101. package/dist/index122.js.map +1 -1
  102. package/dist/index123.cjs +20 -7
  103. package/dist/index123.cjs.map +1 -1
  104. package/dist/index123.js +19 -6
  105. package/dist/index123.js.map +1 -1
  106. package/dist/index124.cjs +14 -58
  107. package/dist/index124.cjs.map +1 -1
  108. package/dist/index124.js +13 -57
  109. package/dist/index124.js.map +1 -1
  110. package/dist/index125.cjs +10 -57
  111. package/dist/index125.cjs.map +1 -1
  112. package/dist/index125.js +9 -56
  113. package/dist/index125.js.map +1 -1
  114. package/dist/index126.cjs +69 -39
  115. package/dist/index126.cjs.map +1 -1
  116. package/dist/index126.js +68 -38
  117. package/dist/index126.js.map +1 -1
  118. package/dist/index127.cjs +24 -92
  119. package/dist/index127.cjs.map +1 -1
  120. package/dist/index127.js +23 -91
  121. package/dist/index127.js.map +1 -1
  122. package/dist/index128.cjs +22 -34
  123. package/dist/index128.cjs.map +1 -1
  124. package/dist/index128.js +22 -34
  125. package/dist/index128.js.map +1 -1
  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 +1 -1
  133. package/dist/index16.js +1 -1
  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 +1 -1
  145. package/dist/index22.js +1 -1
  146. package/dist/index23.cjs +1 -1
  147. package/dist/index23.js +1 -1
  148. package/dist/index24.cjs +1 -1
  149. package/dist/index24.js +1 -1
  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 +10 -10
  161. package/dist/index30.js +10 -10
  162. package/dist/index31.cjs +4 -4
  163. package/dist/index31.js +4 -4
  164. package/dist/index32.cjs +3 -3
  165. package/dist/index32.js +3 -3
  166. package/dist/index33.cjs +1 -1
  167. package/dist/index33.js +1 -1
  168. package/dist/index34.cjs +2 -1
  169. package/dist/index34.cjs.map +1 -1
  170. package/dist/index34.js +2 -1
  171. package/dist/index34.js.map +1 -1
  172. package/dist/index35.cjs +1 -1
  173. package/dist/index35.js +1 -1
  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 +1 -1
  179. package/dist/index38.js +1 -1
  180. package/dist/index39.cjs +1 -1
  181. package/dist/index39.js +1 -1
  182. package/dist/index40.cjs +1 -1
  183. package/dist/index40.js +1 -1
  184. package/dist/index41.cjs +1 -1
  185. package/dist/index41.js +1 -1
  186. package/dist/index43.cjs +1 -1
  187. package/dist/index43.js +1 -1
  188. package/dist/index44.cjs +1 -1
  189. package/dist/index44.js +1 -1
  190. package/dist/index45.cjs +3 -3
  191. package/dist/index45.js +3 -3
  192. package/dist/index46.cjs +1 -1
  193. package/dist/index46.js +1 -1
  194. package/dist/index47.cjs +1 -1
  195. package/dist/index47.js +1 -1
  196. package/dist/index48.cjs +1 -1
  197. package/dist/index48.js +1 -1
  198. package/dist/index49.cjs +1 -1
  199. package/dist/index49.js +1 -1
  200. package/dist/index50.cjs +1 -1
  201. package/dist/index50.js +1 -1
  202. package/dist/index51.cjs +1 -1
  203. package/dist/index51.js +1 -1
  204. package/dist/index52.cjs +2 -2
  205. package/dist/index52.js +2 -2
  206. package/dist/index53.cjs +1 -1
  207. package/dist/index53.js +1 -1
  208. package/dist/index54.cjs +1 -1
  209. package/dist/index54.js +1 -1
  210. package/dist/index55.cjs +2 -2
  211. package/dist/index55.js +2 -2
  212. package/dist/index56.cjs +1 -1
  213. package/dist/index56.js +1 -1
  214. package/dist/index57.cjs +1 -1
  215. package/dist/index57.js +1 -1
  216. package/dist/index58.cjs +1 -1
  217. package/dist/index58.js +1 -1
  218. package/dist/index60.cjs +64 -19
  219. package/dist/index60.cjs.map +1 -1
  220. package/dist/index60.js +64 -19
  221. package/dist/index60.js.map +1 -1
  222. package/dist/index61.cjs +12 -15
  223. package/dist/index61.cjs.map +1 -1
  224. package/dist/index61.js +12 -15
  225. package/dist/index61.js.map +1 -1
  226. package/dist/index63.cjs +34 -22
  227. package/dist/index63.cjs.map +1 -1
  228. package/dist/index63.js +34 -22
  229. package/dist/index63.js.map +1 -1
  230. package/dist/index64.cjs +16 -13
  231. package/dist/index64.cjs.map +1 -1
  232. package/dist/index64.js +16 -13
  233. package/dist/index64.js.map +1 -1
  234. package/dist/index65.cjs +11 -2
  235. package/dist/index65.cjs.map +1 -1
  236. package/dist/index65.js +11 -2
  237. package/dist/index65.js.map +1 -1
  238. package/dist/index66.cjs +14 -8
  239. package/dist/index66.cjs.map +1 -1
  240. package/dist/index66.js +15 -9
  241. package/dist/index66.js.map +1 -1
  242. package/dist/index67.cjs +19 -22
  243. package/dist/index67.cjs.map +1 -1
  244. package/dist/index67.js +20 -23
  245. package/dist/index67.js.map +1 -1
  246. package/dist/index68.cjs +36 -6
  247. package/dist/index68.cjs.map +1 -1
  248. package/dist/index68.js +36 -6
  249. package/dist/index68.js.map +1 -1
  250. package/dist/index69.cjs +36 -12
  251. package/dist/index69.cjs.map +1 -1
  252. package/dist/index69.js +36 -12
  253. package/dist/index69.js.map +1 -1
  254. package/dist/index70.cjs +49 -16
  255. package/dist/index70.cjs.map +1 -1
  256. package/dist/index70.js +50 -17
  257. package/dist/index70.js.map +1 -1
  258. package/dist/index71.cjs +17 -17
  259. package/dist/index71.js +18 -18
  260. package/dist/index72.cjs +2 -20
  261. package/dist/index72.cjs.map +1 -1
  262. package/dist/index72.js +3 -21
  263. package/dist/index72.js.map +1 -1
  264. package/dist/index73.cjs +5 -11
  265. package/dist/index73.cjs.map +1 -1
  266. package/dist/index73.js +6 -12
  267. package/dist/index73.js.map +1 -1
  268. package/dist/index74.cjs +17 -2
  269. package/dist/index74.cjs.map +1 -1
  270. package/dist/index74.js +17 -2
  271. package/dist/index74.js.map +1 -1
  272. package/dist/index75.cjs +10 -19
  273. package/dist/index75.cjs.map +1 -1
  274. package/dist/index75.js +11 -20
  275. package/dist/index75.js.map +1 -1
  276. package/dist/index77.cjs +42 -24
  277. package/dist/index77.cjs.map +1 -1
  278. package/dist/index77.js +43 -25
  279. package/dist/index77.js.map +1 -1
  280. package/dist/index78.cjs +6 -17
  281. package/dist/index78.cjs.map +1 -1
  282. package/dist/index78.js +5 -16
  283. package/dist/index78.js.map +1 -1
  284. package/dist/index79.cjs +17 -6
  285. package/dist/index79.cjs.map +1 -1
  286. package/dist/index79.js +16 -5
  287. package/dist/index79.js.map +1 -1
  288. package/dist/index80.cjs +1 -1
  289. package/dist/index80.js +1 -1
  290. package/dist/index81.cjs +19 -64
  291. package/dist/index81.cjs.map +1 -1
  292. package/dist/index81.js +20 -65
  293. package/dist/index81.js.map +1 -1
  294. package/dist/index82.cjs +34 -46
  295. package/dist/index82.cjs.map +1 -1
  296. package/dist/index82.js +34 -46
  297. package/dist/index82.js.map +1 -1
  298. package/dist/index84.cjs +54 -30
  299. package/dist/index84.cjs.map +1 -1
  300. package/dist/index84.js +54 -30
  301. package/dist/index84.js.map +1 -1
  302. package/dist/index85.cjs +134 -40
  303. package/dist/index85.cjs.map +1 -1
  304. package/dist/index85.js +133 -39
  305. package/dist/index85.js.map +1 -1
  306. package/dist/index86.cjs +38 -32
  307. package/dist/index86.cjs.map +1 -1
  308. package/dist/index86.js +38 -32
  309. package/dist/index86.js.map +1 -1
  310. package/dist/index87.cjs +79 -13
  311. package/dist/index87.cjs.map +1 -1
  312. package/dist/index87.js +80 -14
  313. package/dist/index87.js.map +1 -1
  314. package/dist/index88.cjs +15 -18
  315. package/dist/index88.cjs.map +1 -1
  316. package/dist/index88.js +15 -18
  317. package/dist/index88.js.map +1 -1
  318. package/dist/index89.cjs +26 -14
  319. package/dist/index89.cjs.map +1 -1
  320. package/dist/index89.js +26 -14
  321. package/dist/index89.js.map +1 -1
  322. package/dist/index90.cjs +17 -8
  323. package/dist/index90.cjs.map +1 -1
  324. package/dist/index90.js +18 -9
  325. package/dist/index90.js.map +1 -1
  326. package/dist/index91.cjs +19 -116
  327. package/dist/index91.cjs.map +1 -1
  328. package/dist/index91.js +18 -115
  329. package/dist/index91.js.map +1 -1
  330. package/dist/index92.cjs +16 -25
  331. package/dist/index92.cjs.map +1 -1
  332. package/dist/index92.js +17 -26
  333. package/dist/index92.js.map +1 -1
  334. package/dist/index93.cjs +16 -34
  335. package/dist/index93.cjs.map +1 -1
  336. package/dist/index93.js +16 -34
  337. package/dist/index93.js.map +1 -1
  338. package/dist/index94.cjs +116 -22
  339. package/dist/index94.cjs.map +1 -1
  340. package/dist/index94.js +115 -21
  341. package/dist/index94.js.map +1 -1
  342. package/dist/index95.cjs +35 -77
  343. package/dist/index95.cjs.map +1 -1
  344. package/dist/index95.js +35 -77
  345. package/dist/index95.js.map +1 -1
  346. package/dist/index96.cjs +39 -9
  347. package/dist/index96.cjs.map +1 -1
  348. package/dist/index96.js +38 -8
  349. package/dist/index96.js.map +1 -1
  350. package/dist/index97.cjs +86 -127
  351. package/dist/index97.cjs.map +1 -1
  352. package/dist/index97.js +87 -128
  353. package/dist/index97.js.map +1 -1
  354. package/dist/index98.cjs +19 -25
  355. package/dist/index98.cjs.map +1 -1
  356. package/dist/index98.js +20 -26
  357. package/dist/index98.js.map +1 -1
  358. package/dist/index99.cjs +4 -19
  359. package/dist/index99.cjs.map +1 -1
  360. package/dist/index99.js +5 -20
  361. package/dist/index99.js.map +1 -1
  362. package/package.json +1 -1
package/dist/index109.js CHANGED
@@ -1,16 +1,21 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import styles from "./index111.js";
3
- const PointListing = ({ markers, label, onSelectPoint }) => /* @__PURE__ */ jsx("ul", { className: styles.srOnly, "aria-label": label, children: markers.map(({ point, sourceIndex, description, selected }) => /* @__PURE__ */ jsx("li", { children: onSelectPoint ? /* @__PURE__ */ jsx(
4
- "button",
5
- {
6
- type: "button",
7
- "aria-pressed": selected,
8
- onClick: () => onSelectPoint({ point, index: sourceIndex }),
9
- children: description
10
- }
11
- ) : description }, point.id)) });
12
- PointListing.displayName = "PointListing";
1
+ const root = "krc-root-XLK9Q";
2
+ const selected = "krc-selected-1CnTu";
3
+ const sm = "krc-sm-MR9Wa";
4
+ const md = "krc-md-Q8uX7";
5
+ const lg = "krc-lg-bMnPn";
6
+ const styles = {
7
+ root,
8
+ selected,
9
+ sm,
10
+ md,
11
+ lg
12
+ };
13
13
  export {
14
- PointListing
14
+ styles as default,
15
+ lg,
16
+ md,
17
+ root,
18
+ selected,
19
+ sm
15
20
  };
16
21
  //# sourceMappingURL=index109.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index109.js","sources":["../src/geo/GeoMapCard/PointListing.tsx"],"sourcesContent":["import type { PointListingProps } from './GeoMapCard.types';\nimport styles from './GeoMapCard.module.css';\n\n/**\n * Leaflet draws its `CircleMarker`s as SVG paths, which take no keyboard focus\n * and expose nothing to a screen reader. The same points are therefore also\n * published as a visually hidden list — part of the component's contract, not a\n * patch: it gives keyboard access, gives the reader the data, and gives the\n * tests a surface that does not depend on Leaflet rendering at all.\n */\nexport const PointListing = ({ markers, label, onSelectPoint }: PointListingProps) => (\n <ul className={styles.srOnly} aria-label={label}>\n {markers.map(({ point, sourceIndex, description, selected }) => (\n <li key={point.id}>\n {onSelectPoint ? (\n <button\n type=\"button\"\n aria-pressed={selected}\n onClick={() => onSelectPoint({ point, index: sourceIndex })}\n >\n {description}\n </button>\n ) : (\n description\n )}\n </li>\n ))}\n </ul>\n);\n\nPointListing.displayName = 'PointListing';\n"],"names":[],"mappings":";;AAUO,MAAM,eAAe,CAAC,EAAE,SAAS,OAAO,oBAC7C,oBAAC,MAAA,EAAG,WAAW,OAAO,QAAQ,cAAY,OACvC,UAAA,QAAQ,IAAI,CAAC,EAAE,OAAO,aAAa,aAAa,SAAA,MAC/C,oBAAC,MAAA,EACE,UAAA,gBACC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,gBAAc;AAAA,IACd,SAAS,MAAM,cAAc,EAAE,OAAO,OAAO,aAAa;AAAA,IAEzD,UAAA;AAAA,EAAA;AACH,IAEA,YAAA,GAVK,MAAM,EAYf,CACD,EAAA,CACH;AAGF,aAAa,cAAc;"}
1
+ {"version":3,"file":"index109.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
package/dist/index11.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 AuthLayout_module = require("./index90.cjs");
5
+ const AuthLayout_module = require("./index65.cjs");
6
6
  const AuthLayout = ({
7
7
  children,
8
8
  logo,
package/dist/index11.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 "./index90.js";
3
+ import styles from "./index65.js";
4
4
  const AuthLayout = ({
5
5
  children,
6
6
  logo,
package/dist/index110.cjs CHANGED
@@ -1,13 +1,36 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const constants = require("./index62.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
- };
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const overlay = "krc-overlay-WWw5c";
4
+ const modal = "krc-modal-ZLlQ4";
5
+ const resizable = "krc-resizable-G8TND";
6
+ const header = "krc-header-RFEXB";
7
+ const title = "krc-title-FhVKX";
8
+ const headerActions = "krc-headerActions-Qj5SG";
9
+ const close = "krc-close-EQ-3d";
10
+ const body = "krc-body-ZLPhV";
11
+ const loading = "krc-loading-lxD8d";
12
+ const resizeHandle = "krc-resizeHandle-Q0J-B";
13
+ const styles = {
14
+ overlay,
15
+ modal,
16
+ resizable,
17
+ header,
18
+ title,
19
+ headerActions,
20
+ close,
21
+ body,
22
+ loading,
23
+ resizeHandle
11
24
  };
12
- exports.resolveTiles = resolveTiles;
25
+ exports.body = body;
26
+ exports.close = close;
27
+ exports.default = styles;
28
+ exports.header = header;
29
+ exports.headerActions = headerActions;
30
+ exports.loading = loading;
31
+ exports.modal = modal;
32
+ exports.overlay = overlay;
33
+ exports.resizable = resizable;
34
+ exports.resizeHandle = resizeHandle;
35
+ exports.title = title;
13
36
  //# sourceMappingURL=index110.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index110.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;;"}
1
+ {"version":3,"file":"index110.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index110.js CHANGED
@@ -1,13 +1,36 @@
1
- import { BASEMAP_TILES } from "./index62.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
- };
1
+ const overlay = "krc-overlay-WWw5c";
2
+ const modal = "krc-modal-ZLlQ4";
3
+ const resizable = "krc-resizable-G8TND";
4
+ const header = "krc-header-RFEXB";
5
+ const title = "krc-title-FhVKX";
6
+ const headerActions = "krc-headerActions-Qj5SG";
7
+ const close = "krc-close-EQ-3d";
8
+ const body = "krc-body-ZLPhV";
9
+ const loading = "krc-loading-lxD8d";
10
+ const resizeHandle = "krc-resizeHandle-Q0J-B";
11
+ const styles = {
12
+ overlay,
13
+ modal,
14
+ resizable,
15
+ header,
16
+ title,
17
+ headerActions,
18
+ close,
19
+ body,
20
+ loading,
21
+ resizeHandle
9
22
  };
10
23
  export {
11
- resolveTiles
24
+ body,
25
+ close,
26
+ styles as default,
27
+ header,
28
+ headerActions,
29
+ loading,
30
+ modal,
31
+ overlay,
32
+ resizable,
33
+ resizeHandle,
34
+ title
12
35
  };
13
36
  //# sourceMappingURL=index110.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index110.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;"}
1
+ {"version":3,"file":"index110.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index111.cjs CHANGED
@@ -1,72 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
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";
3
+ const root = "krc-root-bWynN";
25
4
  const styles = {
26
- root,
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
5
+ root
48
6
  };
49
- exports.compact = compact;
50
7
  exports.default = styles;
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;
66
8
  exports.root = root;
67
- exports.srOnly = srOnly;
68
- exports.status = status;
69
- exports.title = title;
70
- exports.toolbar = toolbar;
71
- exports.warning = warning;
72
9
  //# sourceMappingURL=index111.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index111.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index111.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
package/dist/index111.js CHANGED
@@ -1,72 +1,9 @@
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";
1
+ const root = "krc-root-bWynN";
23
2
  const styles = {
24
- root,
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
3
+ root
46
4
  };
47
5
  export {
48
- compact,
49
6
  styles as default,
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
7
+ root
71
8
  };
72
9
  //# sourceMappingURL=index111.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index111.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index111.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index112.cjs CHANGED
@@ -1,57 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-W2sel";
4
- const tableContainer = "krc-tableContainer-Ed3uk";
5
- const table = "krc-table-7p0H-";
6
- const th = "krc-th-fNmfv";
7
- const sortable = "krc-sortable-Ve0MQ";
8
- const thContent = "krc-thContent-BRDIL";
9
- const sortIndicator = "krc-sortIndicator-PtGYj";
10
- const resizeHandle = "krc-resizeHandle--St-g";
11
- const td = "krc-td-ZVsrU";
12
- const row = "krc-row-JivMH";
13
- const rowClickable = "krc-rowClickable-lTgQW";
14
- const rowSelected = "krc-rowSelected-Sv0qs";
15
- const skeletonRow = "krc-skeletonRow-uD1y7";
16
- const skeleton = "krc-skeleton-eeYso";
17
- const empty = "krc-empty-xKpKS";
18
- const loadMore = "krc-loadMore-njxDN";
19
- const loadMoreButton = "krc-loadMoreButton-C3Q-f";
3
+ const root = "krc-root-GYECa";
4
+ const header = "krc-header-7V-0i";
5
+ const title = "krc-title-SiRcV";
6
+ const headerActions = "krc-headerActions-HY6nM";
7
+ const splitContainer = "krc-splitContainer-ovkIf";
8
+ const tablePanel = "krc-tablePanel-gbWQx";
9
+ const chartPanel = "krc-chartPanel-eBJ9W";
10
+ const table = "krc-table-40WZx";
11
+ const tableRow = "krc-tableRow-yQlEa";
12
+ const tableRowSelected = "krc-tableRowSelected-vIEfO";
13
+ const pagination = "krc-pagination-nyCxO";
14
+ const paginationButton = "krc-paginationButton-k-cQB";
15
+ const paginationInfo = "krc-paginationInfo-ouuPw";
16
+ const placeholder = "krc-placeholder-YDeIw";
17
+ const loading = "krc-loading-UoiCd";
18
+ const error = "krc-error-Subfi";
19
+ const retryButton = "krc-retryButton-k8HPu";
20
+ const empty = "krc-empty-OoPZo";
20
21
  const styles = {
21
22
  root,
22
- tableContainer,
23
+ header,
24
+ title,
25
+ headerActions,
26
+ splitContainer,
27
+ tablePanel,
28
+ chartPanel,
23
29
  table,
24
- th,
25
- sortable,
26
- thContent,
27
- sortIndicator,
28
- resizeHandle,
29
- td,
30
- row,
31
- rowClickable,
32
- rowSelected,
33
- skeletonRow,
34
- skeleton,
35
- empty,
36
- loadMore,
37
- loadMoreButton
30
+ tableRow,
31
+ tableRowSelected,
32
+ pagination,
33
+ paginationButton,
34
+ paginationInfo,
35
+ placeholder,
36
+ loading,
37
+ error,
38
+ retryButton,
39
+ empty
38
40
  };
41
+ exports.chartPanel = chartPanel;
39
42
  exports.default = styles;
40
43
  exports.empty = empty;
41
- exports.loadMore = loadMore;
42
- exports.loadMoreButton = loadMoreButton;
43
- exports.resizeHandle = resizeHandle;
44
+ exports.error = error;
45
+ exports.header = header;
46
+ exports.headerActions = headerActions;
47
+ exports.loading = loading;
48
+ exports.pagination = pagination;
49
+ exports.paginationButton = paginationButton;
50
+ exports.paginationInfo = paginationInfo;
51
+ exports.placeholder = placeholder;
52
+ exports.retryButton = retryButton;
44
53
  exports.root = root;
45
- exports.row = row;
46
- exports.rowClickable = rowClickable;
47
- exports.rowSelected = rowSelected;
48
- exports.skeleton = skeleton;
49
- exports.skeletonRow = skeletonRow;
50
- exports.sortIndicator = sortIndicator;
51
- exports.sortable = sortable;
54
+ exports.splitContainer = splitContainer;
52
55
  exports.table = table;
53
- exports.tableContainer = tableContainer;
54
- exports.td = td;
55
- exports.th = th;
56
- exports.thContent = thContent;
56
+ exports.tablePanel = tablePanel;
57
+ exports.tableRow = tableRow;
58
+ exports.tableRowSelected = tableRowSelected;
59
+ exports.title = title;
57
60
  //# sourceMappingURL=index112.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index112.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index112.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index112.js CHANGED
@@ -1,57 +1,60 @@
1
- const root = "krc-root-W2sel";
2
- const tableContainer = "krc-tableContainer-Ed3uk";
3
- const table = "krc-table-7p0H-";
4
- const th = "krc-th-fNmfv";
5
- const sortable = "krc-sortable-Ve0MQ";
6
- const thContent = "krc-thContent-BRDIL";
7
- const sortIndicator = "krc-sortIndicator-PtGYj";
8
- const resizeHandle = "krc-resizeHandle--St-g";
9
- const td = "krc-td-ZVsrU";
10
- const row = "krc-row-JivMH";
11
- const rowClickable = "krc-rowClickable-lTgQW";
12
- const rowSelected = "krc-rowSelected-Sv0qs";
13
- const skeletonRow = "krc-skeletonRow-uD1y7";
14
- const skeleton = "krc-skeleton-eeYso";
15
- const empty = "krc-empty-xKpKS";
16
- const loadMore = "krc-loadMore-njxDN";
17
- const loadMoreButton = "krc-loadMoreButton-C3Q-f";
1
+ const root = "krc-root-GYECa";
2
+ const header = "krc-header-7V-0i";
3
+ const title = "krc-title-SiRcV";
4
+ const headerActions = "krc-headerActions-HY6nM";
5
+ const splitContainer = "krc-splitContainer-ovkIf";
6
+ const tablePanel = "krc-tablePanel-gbWQx";
7
+ const chartPanel = "krc-chartPanel-eBJ9W";
8
+ const table = "krc-table-40WZx";
9
+ const tableRow = "krc-tableRow-yQlEa";
10
+ const tableRowSelected = "krc-tableRowSelected-vIEfO";
11
+ const pagination = "krc-pagination-nyCxO";
12
+ const paginationButton = "krc-paginationButton-k-cQB";
13
+ const paginationInfo = "krc-paginationInfo-ouuPw";
14
+ const placeholder = "krc-placeholder-YDeIw";
15
+ const loading = "krc-loading-UoiCd";
16
+ const error = "krc-error-Subfi";
17
+ const retryButton = "krc-retryButton-k8HPu";
18
+ const empty = "krc-empty-OoPZo";
18
19
  const styles = {
19
20
  root,
20
- tableContainer,
21
+ header,
22
+ title,
23
+ headerActions,
24
+ splitContainer,
25
+ tablePanel,
26
+ chartPanel,
21
27
  table,
22
- th,
23
- sortable,
24
- thContent,
25
- sortIndicator,
26
- resizeHandle,
27
- td,
28
- row,
29
- rowClickable,
30
- rowSelected,
31
- skeletonRow,
32
- skeleton,
33
- empty,
34
- loadMore,
35
- loadMoreButton
28
+ tableRow,
29
+ tableRowSelected,
30
+ pagination,
31
+ paginationButton,
32
+ paginationInfo,
33
+ placeholder,
34
+ loading,
35
+ error,
36
+ retryButton,
37
+ empty
36
38
  };
37
39
  export {
40
+ chartPanel,
38
41
  styles as default,
39
42
  empty,
40
- loadMore,
41
- loadMoreButton,
42
- resizeHandle,
43
+ error,
44
+ header,
45
+ headerActions,
46
+ loading,
47
+ pagination,
48
+ paginationButton,
49
+ paginationInfo,
50
+ placeholder,
51
+ retryButton,
43
52
  root,
44
- row,
45
- rowClickable,
46
- rowSelected,
47
- skeleton,
48
- skeletonRow,
49
- sortIndicator,
50
- sortable,
53
+ splitContainer,
51
54
  table,
52
- tableContainer,
53
- td,
54
- th,
55
- thContent
55
+ tablePanel,
56
+ tableRow,
57
+ tableRowSelected,
58
+ title
56
59
  };
57
60
  //# sourceMappingURL=index112.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index112.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index112.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index113.cjs CHANGED
@@ -1,24 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-tsCGC";
4
- const input = "krc-input--stjU";
5
- const label = "krc-label-KD6pE";
6
- const disabled = "krc-disabled-ugpPh";
7
- const sm = "krc-sm-8drDq";
8
- const md = "krc-md-IG7oy";
9
- const styles = {
10
- root,
11
- input,
12
- label,
13
- disabled,
14
- sm,
15
- md
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 };
16
23
  };
17
- exports.default = styles;
18
- exports.disabled = disabled;
19
- exports.input = input;
20
- exports.label = label;
21
- exports.md = md;
22
- exports.root = root;
23
- exports.sm = sm;
24
+ exports.pivotGroupedBars = pivotGroupedBars;
24
25
  //# sourceMappingURL=index113.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index113.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index113.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/index113.js CHANGED
@@ -1,24 +1,25 @@
1
- const root = "krc-root-tsCGC";
2
- const input = "krc-input--stjU";
3
- const label = "krc-label-KD6pE";
4
- const disabled = "krc-disabled-ugpPh";
5
- const sm = "krc-sm-8drDq";
6
- const md = "krc-md-IG7oy";
7
- const styles = {
8
- root,
9
- input,
10
- label,
11
- disabled,
12
- sm,
13
- md
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 };
14
21
  };
15
22
  export {
16
- styles as default,
17
- disabled,
18
- input,
19
- label,
20
- md,
21
- root,
22
- sm
23
+ pivotGroupedBars
23
24
  };
24
25
  //# sourceMappingURL=index113.js.map