@ktnpm_devops/react-component 0.16.0 → 0.18.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 (440) hide show
  1. package/README.md +38 -2
  2. package/dist/composites/CustomRangePicker/CustomRangePicker.d.ts.map +1 -1
  3. package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
  4. package/dist/composites/FilterDropdown/FilterDropdown.d.ts.map +1 -1
  5. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
  6. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.d.ts.map +1 -1
  7. package/dist/constants.d.ts +9 -3
  8. package/dist/constants.d.ts.map +1 -1
  9. package/dist/geo/GeoMapCard/GeoMapCard.d.ts +1 -1
  10. package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -1
  11. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +28 -2
  12. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -1
  13. package/dist/geo/GeoMapCard/MapStatusBars.d.ts +11 -0
  14. package/dist/geo/GeoMapCard/MapStatusBars.d.ts.map +1 -0
  15. package/dist/geo/GeoMapCard/ViewportReporter.d.ts +15 -0
  16. package/dist/geo/GeoMapCard/ViewportReporter.d.ts.map +1 -0
  17. package/dist/geo/GeoMapCard/describePoints.d.ts +7 -0
  18. package/dist/geo/GeoMapCard/describePoints.d.ts.map +1 -0
  19. package/dist/geo/GeoMapCard/normalizeViewport.d.ts +13 -0
  20. package/dist/geo/GeoMapCard/normalizeViewport.d.ts.map +1 -0
  21. package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts +2 -0
  22. package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts.map +1 -0
  23. package/dist/geo/GeoMapCard/resolveTiles.d.ts +9 -0
  24. package/dist/geo/GeoMapCard/resolveTiles.d.ts.map +1 -0
  25. package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts +9 -0
  26. package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts.map +1 -0
  27. package/dist/hooks/usePanelPlacement.d.ts +24 -0
  28. package/dist/hooks/usePanelPlacement.d.ts.map +1 -0
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index10.cjs +1 -1
  32. package/dist/index10.js +1 -1
  33. package/dist/index100.cjs +17 -23
  34. package/dist/index100.cjs.map +1 -1
  35. package/dist/index100.js +18 -24
  36. package/dist/index100.js.map +1 -1
  37. package/dist/index101.cjs +14 -50
  38. package/dist/index101.cjs.map +1 -1
  39. package/dist/index101.js +14 -50
  40. package/dist/index101.js.map +1 -1
  41. package/dist/index102.cjs +26 -30
  42. package/dist/index102.cjs.map +1 -1
  43. package/dist/index102.js +26 -30
  44. package/dist/index102.js.map +1 -1
  45. package/dist/index103.cjs +36 -85
  46. package/dist/index103.cjs.map +1 -1
  47. package/dist/index103.js +36 -85
  48. package/dist/index103.js.map +1 -1
  49. package/dist/index104.cjs +24 -39
  50. package/dist/index104.cjs.map +1 -1
  51. package/dist/index104.js +23 -38
  52. package/dist/index104.js.map +1 -1
  53. package/dist/index105.cjs +39 -115
  54. package/dist/index105.cjs.map +1 -1
  55. package/dist/index105.js +39 -115
  56. package/dist/index105.js.map +1 -1
  57. package/dist/index106.cjs +9 -43
  58. package/dist/index106.cjs.map +1 -1
  59. package/dist/index106.js +8 -42
  60. package/dist/index106.js.map +1 -1
  61. package/dist/index107.cjs +10 -21
  62. package/dist/index107.cjs.map +1 -1
  63. package/dist/index107.js +9 -20
  64. package/dist/index107.js.map +1 -1
  65. package/dist/index108.cjs +20 -10
  66. package/dist/index108.cjs.map +1 -1
  67. package/dist/index108.js +19 -9
  68. package/dist/index108.js.map +1 -1
  69. package/dist/index109.cjs +13 -35
  70. package/dist/index109.cjs.map +1 -1
  71. package/dist/index109.js +13 -35
  72. package/dist/index109.js.map +1 -1
  73. package/dist/index11.cjs +1 -1
  74. package/dist/index11.js +1 -1
  75. package/dist/index110.cjs +7 -40
  76. package/dist/index110.cjs.map +1 -1
  77. package/dist/index110.js +7 -40
  78. package/dist/index110.js.map +1 -1
  79. package/dist/index111.cjs +69 -24
  80. package/dist/index111.cjs.map +1 -1
  81. package/dist/index111.js +68 -23
  82. package/dist/index111.js.map +1 -1
  83. package/dist/index112.cjs +55 -20
  84. package/dist/index112.cjs.map +1 -1
  85. package/dist/index112.js +54 -19
  86. package/dist/index112.js.map +1 -1
  87. package/dist/index113.cjs +22 -14
  88. package/dist/index113.cjs.map +1 -1
  89. package/dist/index113.js +21 -13
  90. package/dist/index113.js.map +1 -1
  91. package/dist/index114.cjs +2 -56
  92. package/dist/index114.cjs.map +1 -1
  93. package/dist/index114.js +3 -57
  94. package/dist/index114.js.map +1 -1
  95. package/dist/index115.cjs +48 -22
  96. package/dist/index115.cjs.map +1 -1
  97. package/dist/index115.js +47 -21
  98. package/dist/index115.js.map +1 -1
  99. package/dist/index116.cjs +18 -19
  100. package/dist/index116.cjs.map +1 -1
  101. package/dist/index116.js +17 -18
  102. package/dist/index116.js.map +1 -1
  103. package/dist/index117.cjs +31 -16
  104. package/dist/index117.cjs.map +1 -1
  105. package/dist/index117.js +31 -16
  106. package/dist/index117.js.map +1 -1
  107. package/dist/index118.cjs +22 -15
  108. package/dist/index118.cjs.map +1 -1
  109. package/dist/index118.js +21 -14
  110. package/dist/index118.js.map +1 -1
  111. package/dist/index119.cjs +69 -39
  112. package/dist/index119.cjs.map +1 -1
  113. package/dist/index119.js +68 -38
  114. package/dist/index119.js.map +1 -1
  115. package/dist/index12.cjs +1 -1
  116. package/dist/index12.js +1 -1
  117. package/dist/index120.cjs +7 -47
  118. package/dist/index120.cjs.map +1 -1
  119. package/dist/index120.js +7 -47
  120. package/dist/index120.js.map +1 -1
  121. package/dist/index121.cjs +40 -18
  122. package/dist/index121.cjs.map +1 -1
  123. package/dist/index121.js +39 -17
  124. package/dist/index121.js.map +1 -1
  125. package/dist/index122.cjs +37 -31
  126. package/dist/index122.cjs.map +1 -1
  127. package/dist/index122.js +37 -31
  128. package/dist/index122.js.map +1 -1
  129. package/dist/index123.cjs +2 -38
  130. package/dist/index123.cjs.map +1 -1
  131. package/dist/index123.js +3 -39
  132. package/dist/index123.js.map +1 -1
  133. package/dist/index124.cjs +58 -1164
  134. package/dist/index124.cjs.map +1 -1
  135. package/dist/index124.js +56 -1163
  136. package/dist/index124.js.map +1 -1
  137. package/dist/index125.cjs +57 -1575
  138. package/dist/index125.cjs.map +1 -1
  139. package/dist/index125.js +56 -1575
  140. package/dist/index125.js.map +1 -1
  141. package/dist/index126.cjs +42 -0
  142. package/dist/index126.cjs.map +1 -0
  143. package/dist/index126.js +42 -0
  144. package/dist/index126.js.map +1 -0
  145. package/dist/index127.cjs +95 -0
  146. package/dist/index127.cjs.map +1 -0
  147. package/dist/index127.js +95 -0
  148. package/dist/index127.js.map +1 -0
  149. package/dist/index128.cjs +42 -0
  150. package/dist/index128.cjs.map +1 -0
  151. package/dist/index128.js +42 -0
  152. package/dist/index128.js.map +1 -0
  153. package/dist/index129.cjs +17 -0
  154. package/dist/index129.cjs.map +1 -0
  155. package/dist/index129.js +17 -0
  156. package/dist/index129.js.map +1 -0
  157. package/dist/index13.cjs +1 -1
  158. package/dist/index13.js +1 -1
  159. package/dist/index130.cjs +1166 -0
  160. package/dist/index130.cjs.map +1 -0
  161. package/dist/index130.js +1167 -0
  162. package/dist/index130.js.map +1 -0
  163. package/dist/index131.cjs +1578 -0
  164. package/dist/index131.cjs.map +1 -0
  165. package/dist/index131.js +1579 -0
  166. package/dist/index131.js.map +1 -0
  167. package/dist/index132.cjs +37 -0
  168. package/dist/index132.cjs.map +1 -0
  169. package/dist/index132.js +37 -0
  170. package/dist/index132.js.map +1 -0
  171. package/dist/index14.cjs +1 -1
  172. package/dist/index14.js +1 -1
  173. package/dist/index15.cjs +1 -1
  174. package/dist/index15.js +1 -1
  175. package/dist/index16.cjs +2 -2
  176. package/dist/index16.js +2 -2
  177. package/dist/index17.cjs +1 -1
  178. package/dist/index17.js +1 -1
  179. package/dist/index18.cjs +1 -1
  180. package/dist/index18.js +1 -1
  181. package/dist/index19.cjs +1 -1
  182. package/dist/index19.js +1 -1
  183. package/dist/index20.cjs +1 -1
  184. package/dist/index20.js +1 -1
  185. package/dist/index21.cjs +1 -1
  186. package/dist/index21.js +1 -1
  187. package/dist/index22.cjs +2 -2
  188. package/dist/index22.js +2 -2
  189. package/dist/index23.cjs +2 -2
  190. package/dist/index23.js +2 -2
  191. package/dist/index24.cjs +2 -2
  192. package/dist/index24.js +2 -2
  193. package/dist/index25.cjs +49 -35
  194. package/dist/index25.cjs.map +1 -1
  195. package/dist/index25.js +49 -35
  196. package/dist/index25.js.map +1 -1
  197. package/dist/index26.cjs +1 -1
  198. package/dist/index26.js +1 -1
  199. package/dist/index27.cjs +83 -56
  200. package/dist/index27.cjs.map +1 -1
  201. package/dist/index27.js +83 -56
  202. package/dist/index27.js.map +1 -1
  203. package/dist/index28.cjs +1 -1
  204. package/dist/index28.js +1 -1
  205. package/dist/index29.cjs +51 -39
  206. package/dist/index29.cjs.map +1 -1
  207. package/dist/index29.js +51 -39
  208. package/dist/index29.js.map +1 -1
  209. package/dist/index30.cjs +37 -35
  210. package/dist/index30.cjs.map +1 -1
  211. package/dist/index30.js +35 -33
  212. package/dist/index30.js.map +1 -1
  213. package/dist/index31.cjs +4 -4
  214. package/dist/index31.js +4 -4
  215. package/dist/index32.cjs +3 -3
  216. package/dist/index32.js +3 -3
  217. package/dist/index33.cjs +1 -1
  218. package/dist/index33.js +1 -1
  219. package/dist/index34.cjs +2 -2
  220. package/dist/index34.js +2 -2
  221. package/dist/index35.cjs +2 -2
  222. package/dist/index35.js +2 -2
  223. package/dist/index36.cjs +2 -2
  224. package/dist/index36.js +2 -2
  225. package/dist/index37.cjs +1 -1
  226. package/dist/index37.js +1 -1
  227. package/dist/index38.cjs +138 -62
  228. package/dist/index38.cjs.map +1 -1
  229. package/dist/index38.js +138 -62
  230. package/dist/index38.js.map +1 -1
  231. package/dist/index39.cjs +1 -1
  232. package/dist/index39.js +1 -1
  233. package/dist/index40.cjs +2 -2
  234. package/dist/index40.js +2 -2
  235. package/dist/index41.cjs +2 -2
  236. package/dist/index41.js +2 -2
  237. package/dist/index42.cjs +2 -2
  238. package/dist/index42.js +2 -2
  239. package/dist/index43.cjs +1 -1
  240. package/dist/index43.js +1 -1
  241. package/dist/index44.cjs +2 -2
  242. package/dist/index44.js +2 -2
  243. package/dist/index45.cjs +4 -4
  244. package/dist/index45.js +4 -4
  245. package/dist/index46.cjs +1 -1
  246. package/dist/index46.js +1 -1
  247. package/dist/index47.cjs +1 -1
  248. package/dist/index47.js +1 -1
  249. package/dist/index48.cjs +1 -1
  250. package/dist/index48.js +1 -1
  251. package/dist/index49.cjs +2 -2
  252. package/dist/index49.js +2 -2
  253. package/dist/index50.cjs +86 -47
  254. package/dist/index50.cjs.map +1 -1
  255. package/dist/index50.js +86 -47
  256. package/dist/index50.js.map +1 -1
  257. package/dist/index51.cjs +1 -1
  258. package/dist/index51.js +1 -1
  259. package/dist/index52.cjs +3 -3
  260. package/dist/index52.js +3 -3
  261. package/dist/index53.cjs +1 -1
  262. package/dist/index53.js +1 -1
  263. package/dist/index54.cjs +1 -1
  264. package/dist/index54.js +1 -1
  265. package/dist/index55.cjs +3 -3
  266. package/dist/index55.js +3 -3
  267. package/dist/index56.cjs +1 -1
  268. package/dist/index56.js +1 -1
  269. package/dist/index57.cjs +1 -1
  270. package/dist/index57.js +1 -1
  271. package/dist/index58.cjs +2 -2
  272. package/dist/index58.js +2 -2
  273. package/dist/index60.cjs +19 -22
  274. package/dist/index60.cjs.map +1 -1
  275. package/dist/index60.js +19 -22
  276. package/dist/index60.js.map +1 -1
  277. package/dist/index61.cjs +15 -24
  278. package/dist/index61.cjs.map +1 -1
  279. package/dist/index61.js +15 -24
  280. package/dist/index61.js.map +1 -1
  281. package/dist/index62.cjs +145 -19
  282. package/dist/index62.cjs.map +1 -1
  283. package/dist/index62.js +143 -17
  284. package/dist/index62.js.map +1 -1
  285. package/dist/index63.cjs +28 -143
  286. package/dist/index63.cjs.map +1 -1
  287. package/dist/index63.js +26 -141
  288. package/dist/index63.js.map +1 -1
  289. package/dist/index64.cjs +10 -16
  290. package/dist/index64.cjs.map +1 -1
  291. package/dist/index64.js +11 -17
  292. package/dist/index64.js.map +1 -1
  293. package/dist/index65.cjs +2 -14
  294. package/dist/index65.cjs.map +1 -1
  295. package/dist/index65.js +3 -15
  296. package/dist/index65.js.map +1 -1
  297. package/dist/index66.cjs +10 -13
  298. package/dist/index66.cjs.map +1 -1
  299. package/dist/index66.js +11 -14
  300. package/dist/index66.js.map +1 -1
  301. package/dist/index67.cjs +20 -14
  302. package/dist/index67.cjs.map +1 -1
  303. package/dist/index67.js +20 -14
  304. package/dist/index67.js.map +1 -1
  305. package/dist/index68.cjs +5 -17
  306. package/dist/index68.cjs.map +1 -1
  307. package/dist/index68.js +6 -18
  308. package/dist/index68.js.map +1 -1
  309. package/dist/index69.cjs +13 -28
  310. package/dist/index69.cjs.map +1 -1
  311. package/dist/index69.js +13 -28
  312. package/dist/index69.js.map +1 -1
  313. package/dist/index70.cjs +16 -19
  314. package/dist/index70.cjs.map +1 -1
  315. package/dist/index70.js +16 -19
  316. package/dist/index70.js.map +1 -1
  317. package/dist/index71.cjs +17 -44
  318. package/dist/index71.cjs.map +1 -1
  319. package/dist/index71.js +18 -45
  320. package/dist/index71.js.map +1 -1
  321. package/dist/index72.cjs +20 -2
  322. package/dist/index72.cjs.map +1 -1
  323. package/dist/index72.js +21 -3
  324. package/dist/index72.js.map +1 -1
  325. package/dist/index73.cjs +10 -79
  326. package/dist/index73.cjs.map +1 -1
  327. package/dist/index73.js +10 -79
  328. package/dist/index73.js.map +1 -1
  329. package/dist/index74.cjs +2 -53
  330. package/dist/index74.cjs.map +1 -1
  331. package/dist/index74.js +3 -54
  332. package/dist/index74.js.map +1 -1
  333. package/dist/index75.cjs +19 -34
  334. package/dist/index75.cjs.map +1 -1
  335. package/dist/index75.js +20 -35
  336. package/dist/index75.js.map +1 -1
  337. package/dist/index76.cjs +45 -16
  338. package/dist/index76.cjs.map +1 -1
  339. package/dist/index76.js +45 -16
  340. package/dist/index76.js.map +1 -1
  341. package/dist/index77.cjs +29 -2
  342. package/dist/index77.cjs.map +1 -1
  343. package/dist/index77.js +30 -3
  344. package/dist/index77.js.map +1 -1
  345. package/dist/index78.cjs +17 -6
  346. package/dist/index78.cjs.map +1 -1
  347. package/dist/index78.js +16 -5
  348. package/dist/index78.js.map +1 -1
  349. package/dist/index79.cjs +1 -4
  350. package/dist/index79.cjs.map +1 -1
  351. package/dist/index79.js +1 -4
  352. package/dist/index79.js.map +1 -1
  353. package/dist/index80.cjs +3 -30
  354. package/dist/index80.cjs.map +1 -1
  355. package/dist/index80.js +3 -30
  356. package/dist/index80.js.map +1 -1
  357. package/dist/index81.cjs +64 -16
  358. package/dist/index81.cjs.map +1 -1
  359. package/dist/index81.js +65 -17
  360. package/dist/index81.js.map +1 -1
  361. package/dist/index82.cjs +46 -10
  362. package/dist/index82.cjs.map +1 -1
  363. package/dist/index82.js +46 -10
  364. package/dist/index82.js.map +1 -1
  365. package/dist/index83.cjs +13 -19
  366. package/dist/index83.cjs.map +1 -1
  367. package/dist/index83.js +14 -20
  368. package/dist/index83.js.map +1 -1
  369. package/dist/index84.cjs +30 -3
  370. package/dist/index84.cjs.map +1 -1
  371. package/dist/index84.js +30 -3
  372. package/dist/index84.js.map +1 -1
  373. package/dist/index85.cjs +36 -21
  374. package/dist/index85.cjs.map +1 -1
  375. package/dist/index85.js +36 -21
  376. package/dist/index85.js.map +1 -1
  377. package/dist/index86.cjs +34 -64
  378. package/dist/index86.cjs.map +1 -1
  379. package/dist/index86.js +34 -64
  380. package/dist/index86.js.map +1 -1
  381. package/dist/index87.cjs +11 -17
  382. package/dist/index87.cjs.map +1 -1
  383. package/dist/index87.js +12 -18
  384. package/dist/index87.js.map +1 -1
  385. package/dist/index88.cjs +17 -2
  386. package/dist/index88.cjs.map +1 -1
  387. package/dist/index88.js +18 -3
  388. package/dist/index88.js.map +1 -1
  389. package/dist/index89.cjs +17 -2
  390. package/dist/index89.cjs.map +1 -1
  391. package/dist/index89.js +18 -3
  392. package/dist/index89.js.map +1 -1
  393. package/dist/index90.cjs +8 -8
  394. package/dist/index90.js +8 -8
  395. package/dist/index91.cjs +116 -19
  396. package/dist/index91.cjs.map +1 -1
  397. package/dist/index91.js +115 -18
  398. package/dist/index91.js.map +1 -1
  399. package/dist/index92.cjs +36 -48
  400. package/dist/index92.cjs.map +1 -1
  401. package/dist/index92.js +36 -48
  402. package/dist/index92.js.map +1 -1
  403. package/dist/index93.cjs +40 -134
  404. package/dist/index93.cjs.map +1 -1
  405. package/dist/index93.js +39 -133
  406. package/dist/index93.js.map +1 -1
  407. package/dist/index94.cjs +15 -39
  408. package/dist/index94.cjs.map +1 -1
  409. package/dist/index94.js +16 -40
  410. package/dist/index94.js.map +1 -1
  411. package/dist/index95.cjs +81 -36
  412. package/dist/index95.cjs.map +1 -1
  413. package/dist/index95.js +81 -36
  414. package/dist/index95.js.map +1 -1
  415. package/dist/index96.cjs +4 -28
  416. package/dist/index96.cjs.map +1 -1
  417. package/dist/index96.js +5 -29
  418. package/dist/index96.js.map +1 -1
  419. package/dist/index97.cjs +130 -19
  420. package/dist/index97.cjs.map +1 -1
  421. package/dist/index97.js +130 -19
  422. package/dist/index97.js.map +1 -1
  423. package/dist/index98.cjs +45 -69
  424. package/dist/index98.cjs.map +1 -1
  425. package/dist/index98.js +44 -68
  426. package/dist/index98.js.map +1 -1
  427. package/dist/index99.cjs +24 -7
  428. package/dist/index99.cjs.map +1 -1
  429. package/dist/index99.js +23 -6
  430. package/dist/index99.js.map +1 -1
  431. package/dist/style.css +87 -4
  432. package/dist/types/geo.types.d.ts +14 -0
  433. package/dist/types/geo.types.d.ts.map +1 -1
  434. package/dist/types/index.d.ts +1 -1
  435. package/dist/types/index.d.ts.map +1 -1
  436. package/dist/utils/clippingRect.d.ts +15 -0
  437. package/dist/utils/clippingRect.d.ts.map +1 -0
  438. package/dist/utils/clippingRect.test.d.ts +2 -0
  439. package/dist/utils/clippingRect.test.d.ts.map +1 -0
  440. package/package.json +1 -1
package/dist/index95.cjs CHANGED
@@ -1,42 +1,87 @@
1
1
  "use strict";
2
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";
3
+ const root = "krc-root-WYIsp";
4
+ const trigger = "krc-trigger-UedSS";
5
+ const active = "krc-active-cH8Tl";
6
+ const triggerContent = "krc-triggerContent-Kkhoi";
7
+ const chevron = "krc-chevron-NoNsI";
8
+ const label = "krc-label-RPlXR";
9
+ const valueGroup = "krc-valueGroup-xfNcx";
10
+ const value = "krc-value-aKdIW";
11
+ const badge = "krc-badge-yVq9o";
12
+ const clear = "krc-clear-11V9Q";
13
+ const panel = "krc-panel-xf2f8";
14
+ const header = "krc-header--VMR-";
15
+ const search = "krc-search-4gQgB";
16
+ const headerActions = "krc-headerActions-orxXD";
17
+ const chip = "krc-chip--n-9m";
18
+ const chipGhost = "krc-chipGhost-oayjh";
19
+ const list = "krc-list-NRoxf";
20
+ const status = "krc-status-j7xbM";
21
+ const statusError = "krc-statusError-u6rfB";
22
+ const option = "krc-option-ZAXum";
23
+ const optionLabel = "krc-optionLabel-MdDyI";
24
+ const optionCount = "krc-optionCount-JSQl9";
25
+ const create = "krc-create-hO8Cq";
26
+ const footer = "krc-footer-2yk6S";
27
+ const selection = "krc-selection-aYDH-";
28
+ const selectionDelta = "krc-selectionDelta-S1dV7";
29
+ const footerActions = "krc-footerActions-77iCX";
15
30
  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
31
+ root,
32
+ trigger,
33
+ active,
34
+ triggerContent,
35
+ chevron,
36
+ label,
37
+ valueGroup,
38
+ value,
39
+ badge,
40
+ clear,
41
+ panel,
42
+ header,
43
+ search,
44
+ headerActions,
45
+ chip,
46
+ chipGhost,
47
+ list,
48
+ status,
49
+ statusError,
50
+ option,
51
+ optionLabel,
52
+ optionCount,
53
+ create,
54
+ footer,
55
+ selection,
56
+ selectionDelta,
57
+ footerActions
28
58
  };
29
- exports.checkIcon = checkIcon;
59
+ exports.active = active;
60
+ exports.badge = badge;
61
+ exports.chevron = chevron;
62
+ exports.chip = chip;
63
+ exports.chipGhost = chipGhost;
64
+ exports.clear = clear;
65
+ exports.create = create;
30
66
  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;
67
+ exports.footer = footer;
68
+ exports.footerActions = footerActions;
69
+ exports.header = header;
70
+ exports.headerActions = headerActions;
71
+ exports.label = label;
72
+ exports.list = list;
73
+ exports.option = option;
74
+ exports.optionCount = optionCount;
75
+ exports.optionLabel = optionLabel;
76
+ exports.panel = panel;
77
+ exports.root = root;
78
+ exports.search = search;
79
+ exports.selection = selection;
80
+ exports.selectionDelta = selectionDelta;
81
+ exports.status = status;
82
+ exports.statusError = statusError;
83
+ exports.trigger = trigger;
84
+ exports.triggerContent = triggerContent;
85
+ exports.value = value;
86
+ exports.valueGroup = valueGroup;
42
87
  //# sourceMappingURL=index95.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index95.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index95.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index95.js CHANGED
@@ -1,42 +1,87 @@
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";
1
+ const root = "krc-root-WYIsp";
2
+ const trigger = "krc-trigger-UedSS";
3
+ const active = "krc-active-cH8Tl";
4
+ const triggerContent = "krc-triggerContent-Kkhoi";
5
+ const chevron = "krc-chevron-NoNsI";
6
+ const label = "krc-label-RPlXR";
7
+ const valueGroup = "krc-valueGroup-xfNcx";
8
+ const value = "krc-value-aKdIW";
9
+ const badge = "krc-badge-yVq9o";
10
+ const clear = "krc-clear-11V9Q";
11
+ const panel = "krc-panel-xf2f8";
12
+ const header = "krc-header--VMR-";
13
+ const search = "krc-search-4gQgB";
14
+ const headerActions = "krc-headerActions-orxXD";
15
+ const chip = "krc-chip--n-9m";
16
+ const chipGhost = "krc-chipGhost-oayjh";
17
+ const list = "krc-list-NRoxf";
18
+ const status = "krc-status-j7xbM";
19
+ const statusError = "krc-statusError-u6rfB";
20
+ const option = "krc-option-ZAXum";
21
+ const optionLabel = "krc-optionLabel-MdDyI";
22
+ const optionCount = "krc-optionCount-JSQl9";
23
+ const create = "krc-create-hO8Cq";
24
+ const footer = "krc-footer-2yk6S";
25
+ const selection = "krc-selection-aYDH-";
26
+ const selectionDelta = "krc-selectionDelta-S1dV7";
27
+ const footerActions = "krc-footerActions-77iCX";
13
28
  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
29
+ root,
30
+ trigger,
31
+ active,
32
+ triggerContent,
33
+ chevron,
34
+ label,
35
+ valueGroup,
36
+ value,
37
+ badge,
38
+ clear,
39
+ panel,
40
+ header,
41
+ search,
42
+ headerActions,
43
+ chip,
44
+ chipGhost,
45
+ list,
46
+ status,
47
+ statusError,
48
+ option,
49
+ optionLabel,
50
+ optionCount,
51
+ create,
52
+ footer,
53
+ selection,
54
+ selectionDelta,
55
+ footerActions
26
56
  };
27
57
  export {
28
- checkIcon,
58
+ active,
59
+ badge,
60
+ chevron,
61
+ chip,
62
+ chipGhost,
63
+ clear,
64
+ create,
29
65
  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
66
+ footer,
67
+ footerActions,
68
+ header,
69
+ headerActions,
70
+ label,
71
+ list,
72
+ option,
73
+ optionCount,
74
+ optionLabel,
75
+ panel,
76
+ root,
77
+ search,
78
+ selection,
79
+ selectionDelta,
80
+ status,
81
+ statusError,
82
+ trigger,
83
+ triggerContent,
84
+ value,
85
+ valueGroup
41
86
  };
42
87
  //# sourceMappingURL=index95.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index95.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index95.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index96.cjs CHANGED
@@ -1,36 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
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";
3
+ const root = "krc-root--zhUO";
4
+ const dot = "krc-dot-uJk1V";
13
5
  const styles = {
14
6
  root,
15
- header,
16
- title,
17
- timeRangeGroup,
18
- timeRangeButton,
19
- timeRangeButtonActive,
20
- chartContainer,
21
- loading,
22
- error,
23
- empty
7
+ dot
24
8
  };
25
- exports.chartContainer = chartContainer;
26
9
  exports.default = styles;
27
- exports.empty = empty;
28
- exports.error = error;
29
- exports.header = header;
30
- exports.loading = loading;
10
+ exports.dot = dot;
31
11
  exports.root = root;
32
- exports.timeRangeButton = timeRangeButton;
33
- exports.timeRangeButtonActive = timeRangeButtonActive;
34
- exports.timeRangeGroup = timeRangeGroup;
35
- exports.title = title;
36
12
  //# sourceMappingURL=index96.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
package/dist/index96.js CHANGED
@@ -1,36 +1,12 @@
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";
1
+ const root = "krc-root--zhUO";
2
+ const dot = "krc-dot-uJk1V";
11
3
  const styles = {
12
4
  root,
13
- header,
14
- title,
15
- timeRangeGroup,
16
- timeRangeButton,
17
- timeRangeButtonActive,
18
- chartContainer,
19
- loading,
20
- error,
21
- empty
5
+ dot
22
6
  };
23
7
  export {
24
- chartContainer,
25
8
  styles as default,
26
- empty,
27
- error,
28
- header,
29
- loading,
30
- root,
31
- timeRangeButton,
32
- timeRangeButtonActive,
33
- timeRangeGroup,
34
- title
9
+ dot,
10
+ root
35
11
  };
36
12
  //# sourceMappingURL=index96.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index96.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index96.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/dist/index97.cjs CHANGED
@@ -1,25 +1,136 @@
1
1
  "use strict";
2
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);
3
+ const constants = require("./index62.cjs");
4
+ function aggregateData(data, maxCats, maxSubs, showOthers) {
5
+ const categoryMap = /* @__PURE__ */ new Map();
6
+ for (const point of data) {
7
+ const cat = point.category ?? "Unknown";
8
+ const sub = point.subCategory ?? "Default";
9
+ if (!categoryMap.has(cat)) {
10
+ categoryMap.set(cat, /* @__PURE__ */ new Map());
13
11
  }
14
- row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);
12
+ const subMap = categoryMap.get(cat);
13
+ subMap.set(sub, (subMap.get(sub) ?? 0) + point.value);
15
14
  }
16
- const categoryList = [...categories];
17
- const series = [...cells.entries()].map(([name, row]) => ({
18
- name,
19
- values: categoryList.map((category) => row.get(category) ?? null)
15
+ const sortedCategories = [...categoryMap.entries()].map(([cat, subMap]) => {
16
+ let total = 0;
17
+ for (const v of subMap.values()) total += v;
18
+ return { cat, subMap, total };
19
+ }).sort((a, b) => b.total - a.total);
20
+ const topCategories = sortedCategories.slice(0, maxCats);
21
+ const overflowCategories = sortedCategories.slice(maxCats);
22
+ if (showOthers && overflowCategories.length > 0) {
23
+ const othersMap = /* @__PURE__ */ new Map();
24
+ for (const { subMap } of overflowCategories) {
25
+ for (const [sub, val] of subMap) {
26
+ othersMap.set(sub, (othersMap.get(sub) ?? 0) + val);
27
+ }
28
+ }
29
+ let othersTotal = 0;
30
+ for (const v of othersMap.values()) othersTotal += v;
31
+ topCategories.push({ cat: "Others", subMap: othersMap, total: othersTotal });
32
+ }
33
+ const allSubCategories = /* @__PURE__ */ new Set();
34
+ for (const { subMap } of topCategories) {
35
+ for (const sub of subMap.keys()) {
36
+ allSubCategories.add(sub);
37
+ }
38
+ }
39
+ const sortedSubs = [...allSubCategories];
40
+ const limitedSubs = sortedSubs.slice(0, maxSubs);
41
+ const hasOverflowSubs = sortedSubs.length > maxSubs;
42
+ const categories = topCategories.map((entry) => entry.cat);
43
+ const series = limitedSubs.map((sub) => ({
44
+ name: sub,
45
+ values: topCategories.map((entry) => entry.subMap.get(sub) ?? 0)
20
46
  }));
21
- const hasValues = series.some((s) => s.values.some((v) => v != null));
22
- return { categories: categoryList, series, hasValues };
23
- };
24
- exports.pivotGroupedBars = pivotGroupedBars;
47
+ if (hasOverflowSubs && showOthers) {
48
+ const overflowSubs = sortedSubs.slice(maxSubs);
49
+ series.push({
50
+ name: "Other subcategories",
51
+ values: topCategories.map((entry) => {
52
+ let sum = 0;
53
+ for (const sub of overflowSubs) {
54
+ sum += entry.subMap.get(sub) ?? 0;
55
+ }
56
+ return sum;
57
+ })
58
+ });
59
+ }
60
+ return { categories, series };
61
+ }
62
+ function buildBarOption(categories, series, invertAxis, hideLegend, enableScroll) {
63
+ const categoryAxis = { type: "category", data: categories };
64
+ const valueAxis = { type: "value" };
65
+ const dataZoom = enableScroll ? [{ type: "slider", show: true, ...invertAxis ? { yAxisIndex: 0 } : { xAxisIndex: 0 } }] : [];
66
+ return {
67
+ tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
68
+ legend: { show: !hideLegend, bottom: 0, type: "scroll" },
69
+ grid: { left: "3%", right: "4%", top: "3%", bottom: hideLegend ? "3%" : "12%", containLabel: true },
70
+ xAxis: invertAxis ? valueAxis : categoryAxis,
71
+ yAxis: invertAxis ? categoryAxis : valueAxis,
72
+ dataZoom,
73
+ series: series.map((s, i) => ({
74
+ name: s.name,
75
+ type: "bar",
76
+ stack: "total",
77
+ emphasis: { focus: "series" },
78
+ data: s.values,
79
+ itemStyle: { color: constants.CHART_COLORS[i % constants.CHART_COLORS.length] }
80
+ }))
81
+ };
82
+ }
83
+ function buildPieOption(categories, series, hideLegend) {
84
+ const pieData = categories.map((cat, catIdx) => {
85
+ let total = 0;
86
+ for (const s of series) {
87
+ total += s.values[catIdx] ?? 0;
88
+ }
89
+ return { name: cat, value: total };
90
+ });
91
+ return {
92
+ tooltip: { trigger: "item" },
93
+ legend: { show: !hideLegend, bottom: 0, type: "scroll" },
94
+ series: [
95
+ {
96
+ type: "pie",
97
+ radius: ["30%", "65%"],
98
+ center: ["50%", "45%"],
99
+ data: pieData.map((d, i) => ({
100
+ ...d,
101
+ itemStyle: { color: constants.CHART_COLORS[i % constants.CHART_COLORS.length] }
102
+ })),
103
+ emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0,0,0,0.3)" } },
104
+ label: { show: true, formatter: "{b}: {d}%" }
105
+ }
106
+ ]
107
+ };
108
+ }
109
+ function buildSunburstOption(categories, series) {
110
+ const sunburstData = categories.map((cat, catIdx) => {
111
+ const children = series.map((s, sIdx) => ({
112
+ name: s.name,
113
+ value: s.values[catIdx] ?? 0,
114
+ itemStyle: { color: constants.CHART_COLORS[(catIdx * series.length + sIdx) % constants.CHART_COLORS.length] }
115
+ })).filter((child) => child.value > 0);
116
+ return { name: cat, children };
117
+ });
118
+ return {
119
+ tooltip: { trigger: "item" },
120
+ series: [
121
+ {
122
+ type: "sunburst",
123
+ data: sunburstData,
124
+ radius: ["15%", "80%"],
125
+ label: { rotate: "radial", fontSize: 10 },
126
+ itemStyle: { borderRadius: 4, borderWidth: 1 },
127
+ emphasis: { focus: "ancestor" }
128
+ }
129
+ ]
130
+ };
131
+ }
132
+ exports.aggregateData = aggregateData;
133
+ exports.buildBarOption = buildBarOption;
134
+ exports.buildPieOption = buildPieOption;
135
+ exports.buildSunburstOption = buildSunburstOption;
25
136
  //# sourceMappingURL=index97.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index97.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;;"}
1
+ {"version":3,"file":"index97.cjs","sources":["../src/charts/StackedBarChartCard/buildChartOptions.ts"],"sourcesContent":["import type { ChartSeriesPoint } from '../../types/chart.types';\nimport { CHART_COLORS } from '../../constants';\n\n/** Aggregated series data for chart rendering. */\nexport interface AggregatedChartData {\n categories: string[];\n series: { name: string; values: number[] }[];\n}\n\n/** Aggregate data points by category and subCategory, applying limits. */\nexport function aggregateData(\n data: ChartSeriesPoint[],\n maxCats: number,\n maxSubs: number,\n showOthers: boolean,\n): AggregatedChartData {\n const categoryMap = new Map<string, Map<string, number>>();\n\n for (const point of data) {\n const cat = point.category ?? 'Unknown';\n const sub = point.subCategory ?? 'Default';\n if (!categoryMap.has(cat)) {\n categoryMap.set(cat, new Map());\n }\n const subMap = categoryMap.get(cat)!;\n subMap.set(sub, (subMap.get(sub) ?? 0) + point.value);\n }\n\n const sortedCategories = [...categoryMap.entries()]\n .map(([cat, subMap]) => {\n let total = 0;\n for (const v of subMap.values()) total += v;\n return { cat, subMap, total };\n })\n .sort((a, b) => b.total - a.total);\n\n const topCategories = sortedCategories.slice(0, maxCats);\n const overflowCategories = sortedCategories.slice(maxCats);\n\n if (showOthers && overflowCategories.length > 0) {\n const othersMap = new Map<string, number>();\n for (const { subMap } of overflowCategories) {\n for (const [sub, val] of subMap) {\n othersMap.set(sub, (othersMap.get(sub) ?? 0) + val);\n }\n }\n let othersTotal = 0;\n for (const v of othersMap.values()) othersTotal += v;\n topCategories.push({ cat: 'Others', subMap: othersMap, total: othersTotal });\n }\n\n const allSubCategories = new Set<string>();\n for (const { subMap } of topCategories) {\n for (const sub of subMap.keys()) {\n allSubCategories.add(sub);\n }\n }\n\n const sortedSubs = [...allSubCategories];\n const limitedSubs = sortedSubs.slice(0, maxSubs);\n const hasOverflowSubs = sortedSubs.length > maxSubs;\n\n const categories = topCategories.map((entry) => entry.cat);\n\n const series = limitedSubs.map((sub) => ({\n name: sub,\n values: topCategories.map((entry) => entry.subMap.get(sub) ?? 0),\n }));\n\n if (hasOverflowSubs && showOthers) {\n const overflowSubs = sortedSubs.slice(maxSubs);\n series.push({\n name: 'Other subcategories',\n values: topCategories.map((entry) => {\n let sum = 0;\n for (const sub of overflowSubs) {\n sum += entry.subMap.get(sub) ?? 0;\n }\n return sum;\n }),\n });\n }\n\n return { categories, series };\n}\n\n/** Build ECharts option for stacked bar chart. */\nexport function buildBarOption(\n categories: string[],\n series: { name: string; values: number[] }[],\n invertAxis: boolean,\n hideLegend: boolean,\n enableScroll: boolean,\n) {\n const categoryAxis = { type: 'category' as const, data: categories };\n const valueAxis = { type: 'value' as const };\n\n const dataZoom = enableScroll\n ? [{ type: 'slider' as const, show: true, ...(invertAxis ? { yAxisIndex: 0 } : { xAxisIndex: 0 }) }]\n : [];\n\n return {\n tooltip: { trigger: 'axis' as const, axisPointer: { type: 'shadow' as const } },\n legend: { show: !hideLegend, bottom: 0, type: 'scroll' as const },\n grid: { left: '3%', right: '4%', top: '3%', bottom: hideLegend ? '3%' : '12%', containLabel: true },\n xAxis: invertAxis ? valueAxis : categoryAxis,\n yAxis: invertAxis ? categoryAxis : valueAxis,\n dataZoom,\n series: series.map((s, i) => ({\n name: s.name,\n type: 'bar' as const,\n stack: 'total',\n emphasis: { focus: 'series' as const },\n data: s.values,\n itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length] },\n })),\n };\n}\n\n/** Build ECharts option for pie chart. */\nexport function buildPieOption(\n categories: string[],\n series: { name: string; values: number[] }[],\n hideLegend: boolean,\n) {\n const pieData = categories.map((cat, catIdx) => {\n let total = 0;\n for (const s of series) {\n total += s.values[catIdx] ?? 0;\n }\n return { name: cat, value: total };\n });\n\n return {\n tooltip: { trigger: 'item' as const },\n legend: { show: !hideLegend, bottom: 0, type: 'scroll' as const },\n series: [\n {\n type: 'pie' as const,\n radius: ['30%', '65%'],\n center: ['50%', '45%'],\n data: pieData.map((d, i) => ({\n ...d,\n itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length] },\n })),\n emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0,0,0,0.3)' } },\n label: { show: true, formatter: '{b}: {d}%' },\n },\n ],\n };\n}\n\n/** Build ECharts option for sunburst chart. */\nexport function buildSunburstOption(\n categories: string[],\n series: { name: string; values: number[] }[],\n) {\n const sunburstData = categories.map((cat, catIdx) => {\n const children = series\n .map((s, sIdx) => ({\n name: s.name,\n value: s.values[catIdx] ?? 0,\n itemStyle: { color: CHART_COLORS[(catIdx * series.length + sIdx) % CHART_COLORS.length] },\n }))\n .filter((child) => child.value > 0);\n\n return { name: cat, children };\n });\n\n return {\n tooltip: { trigger: 'item' as const },\n series: [\n {\n type: 'sunburst' as const,\n data: sunburstData,\n radius: ['15%', '80%'],\n label: { rotate: 'radial' as const, fontSize: 10 },\n itemStyle: { borderRadius: 4, borderWidth: 1 },\n emphasis: { focus: 'ancestor' as const },\n },\n ],\n };\n}\n"],"names":["CHART_COLORS"],"mappings":";;;AAUO,SAAS,cACd,MACA,SACA,SACA,YACqB;AACrB,QAAM,kCAAkB,IAAA;AAExB,aAAW,SAAS,MAAM;AACxB,UAAM,MAAM,MAAM,YAAY;AAC9B,UAAM,MAAM,MAAM,eAAe;AACjC,QAAI,CAAC,YAAY,IAAI,GAAG,GAAG;AACzB,kBAAY,IAAI,KAAK,oBAAI,IAAA,CAAK;AAAA,IAChC;AACA,UAAM,SAAS,YAAY,IAAI,GAAG;AAClC,WAAO,IAAI,MAAM,OAAO,IAAI,GAAG,KAAK,KAAK,MAAM,KAAK;AAAA,EACtD;AAEA,QAAM,mBAAmB,CAAC,GAAG,YAAY,QAAA,CAAS,EAC/C,IAAI,CAAC,CAAC,KAAK,MAAM,MAAM;AACtB,QAAI,QAAQ;AACZ,eAAW,KAAK,OAAO,OAAA,EAAU,UAAS;AAC1C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