@ktnpm_devops/react-component 0.17.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 (409) hide show
  1. package/dist/composites/CustomRangePicker/CustomRangePicker.d.ts.map +1 -1
  2. package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
  3. package/dist/composites/FilterDropdown/FilterDropdown.d.ts.map +1 -1
  4. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
  5. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.d.ts.map +1 -1
  6. package/dist/constants.d.ts +2 -0
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/hooks/usePanelPlacement.d.ts +24 -0
  9. package/dist/hooks/usePanelPlacement.d.ts.map +1 -0
  10. package/dist/index10.cjs +1 -1
  11. package/dist/index10.js +1 -1
  12. package/dist/index100.cjs +33 -39
  13. package/dist/index100.cjs.map +1 -1
  14. package/dist/index100.js +32 -38
  15. package/dist/index100.js.map +1 -1
  16. package/dist/index101.cjs +22 -9
  17. package/dist/index101.cjs.map +1 -1
  18. package/dist/index101.js +21 -8
  19. package/dist/index101.js.map +1 -1
  20. package/dist/index102.cjs +34 -9
  21. package/dist/index102.cjs.map +1 -1
  22. package/dist/index102.js +35 -10
  23. package/dist/index102.js.map +1 -1
  24. package/dist/index103.cjs +43 -19
  25. package/dist/index103.cjs.map +1 -1
  26. package/dist/index103.js +43 -19
  27. package/dist/index103.js.map +1 -1
  28. package/dist/index104.cjs +24 -13
  29. package/dist/index104.cjs.map +1 -1
  30. package/dist/index104.js +24 -13
  31. package/dist/index104.js.map +1 -1
  32. package/dist/index105.cjs +38 -9
  33. package/dist/index105.cjs.map +1 -1
  34. package/dist/index105.js +38 -9
  35. package/dist/index105.js.map +1 -1
  36. package/dist/index106.cjs +9 -70
  37. package/dist/index106.cjs.map +1 -1
  38. package/dist/index106.js +8 -69
  39. package/dist/index106.js.map +1 -1
  40. package/dist/index107.cjs +10 -15
  41. package/dist/index107.cjs.map +1 -1
  42. package/dist/index107.js +9 -14
  43. package/dist/index107.js.map +1 -1
  44. package/dist/index108.cjs +18 -46
  45. package/dist/index108.cjs.map +1 -1
  46. package/dist/index108.js +18 -46
  47. package/dist/index108.js.map +1 -1
  48. package/dist/index109.cjs +13 -17
  49. package/dist/index109.cjs.map +1 -1
  50. package/dist/index109.js +13 -17
  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 +10 -36
  55. package/dist/index110.cjs.map +1 -1
  56. package/dist/index110.js +9 -35
  57. package/dist/index110.js.map +1 -1
  58. package/dist/index111.cjs +62 -47
  59. package/dist/index111.cjs.map +1 -1
  60. package/dist/index111.js +62 -47
  61. package/dist/index111.js.map +1 -1
  62. package/dist/index112.cjs +49 -34
  63. package/dist/index112.cjs.map +1 -1
  64. package/dist/index112.js +49 -34
  65. package/dist/index112.js.map +1 -1
  66. package/dist/index113.cjs +13 -7
  67. package/dist/index113.cjs.map +1 -1
  68. package/dist/index113.js +13 -7
  69. package/dist/index113.js.map +1 -1
  70. package/dist/index114.cjs +2 -17
  71. package/dist/index114.cjs.map +1 -1
  72. package/dist/index114.js +3 -18
  73. package/dist/index114.js.map +1 -1
  74. package/dist/index115.cjs +48 -40
  75. package/dist/index115.cjs.map +1 -1
  76. package/dist/index115.js +47 -39
  77. package/dist/index115.js.map +1 -1
  78. package/dist/index116.cjs +18 -70
  79. package/dist/index116.cjs.map +1 -1
  80. package/dist/index116.js +17 -69
  81. package/dist/index116.js.map +1 -1
  82. package/dist/index117.cjs +31 -52
  83. package/dist/index117.cjs.map +1 -1
  84. package/dist/index117.js +31 -52
  85. package/dist/index117.js.map +1 -1
  86. package/dist/index118.cjs +22 -15
  87. package/dist/index118.cjs.map +1 -1
  88. package/dist/index118.js +21 -14
  89. package/dist/index118.js.map +1 -1
  90. package/dist/index119.cjs +69 -21
  91. package/dist/index119.cjs.map +1 -1
  92. package/dist/index119.js +68 -20
  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 +6 -16
  97. package/dist/index120.cjs.map +1 -1
  98. package/dist/index120.js +6 -16
  99. package/dist/index120.js.map +1 -1
  100. package/dist/index121.cjs +35 -2
  101. package/dist/index121.cjs.map +1 -1
  102. package/dist/index121.js +36 -3
  103. package/dist/index121.js.map +1 -1
  104. package/dist/index122.cjs +38 -14
  105. package/dist/index122.cjs.map +1 -1
  106. package/dist/index122.js +38 -14
  107. package/dist/index122.js.map +1 -1
  108. package/dist/index123.cjs +1 -1
  109. package/dist/index123.js +1 -1
  110. package/dist/index124.cjs +52 -13
  111. package/dist/index124.cjs.map +1 -1
  112. package/dist/index124.js +53 -14
  113. package/dist/index124.js.map +1 -1
  114. package/dist/index125.cjs +27 -54
  115. package/dist/index125.cjs.map +1 -1
  116. package/dist/index125.js +28 -55
  117. package/dist/index125.js.map +1 -1
  118. package/dist/index126.cjs +39 -21
  119. package/dist/index126.cjs.map +1 -1
  120. package/dist/index126.js +38 -20
  121. package/dist/index126.js.map +1 -1
  122. package/dist/index127.cjs +92 -33
  123. package/dist/index127.cjs.map +1 -1
  124. package/dist/index127.js +91 -32
  125. package/dist/index127.js.map +1 -1
  126. package/dist/index128.cjs +40 -1164
  127. package/dist/index128.cjs.map +1 -1
  128. package/dist/index128.js +38 -1163
  129. package/dist/index128.js.map +1 -1
  130. package/dist/index129.cjs +13 -1574
  131. package/dist/index129.cjs.map +1 -1
  132. package/dist/index129.js +12 -1574
  133. package/dist/index129.js.map +1 -1
  134. package/dist/index13.cjs +1 -1
  135. package/dist/index13.js +1 -1
  136. package/dist/index130.cjs +1161 -32
  137. package/dist/index130.cjs.map +1 -1
  138. package/dist/index130.js +1162 -32
  139. package/dist/index130.js.map +1 -1
  140. package/dist/index131.cjs +1578 -0
  141. package/dist/index131.cjs.map +1 -0
  142. package/dist/index131.js +1579 -0
  143. package/dist/index131.js.map +1 -0
  144. package/dist/index132.cjs +37 -0
  145. package/dist/index132.cjs.map +1 -0
  146. package/dist/index132.js +37 -0
  147. package/dist/index132.js.map +1 -0
  148. package/dist/index14.cjs +1 -1
  149. package/dist/index14.js +1 -1
  150. package/dist/index15.cjs +1 -1
  151. package/dist/index15.js +1 -1
  152. package/dist/index16.cjs +2 -2
  153. package/dist/index16.js +2 -2
  154. package/dist/index17.cjs +1 -1
  155. package/dist/index17.js +1 -1
  156. package/dist/index18.cjs +1 -1
  157. package/dist/index18.js +1 -1
  158. package/dist/index19.cjs +1 -1
  159. package/dist/index19.js +1 -1
  160. package/dist/index20.cjs +1 -1
  161. package/dist/index20.js +1 -1
  162. package/dist/index21.cjs +1 -1
  163. package/dist/index21.js +1 -1
  164. package/dist/index22.cjs +2 -2
  165. package/dist/index22.js +2 -2
  166. package/dist/index23.cjs +2 -2
  167. package/dist/index23.js +2 -2
  168. package/dist/index24.cjs +2 -2
  169. package/dist/index24.js +2 -2
  170. package/dist/index25.cjs +49 -35
  171. package/dist/index25.cjs.map +1 -1
  172. package/dist/index25.js +49 -35
  173. package/dist/index25.js.map +1 -1
  174. package/dist/index26.cjs +1 -1
  175. package/dist/index26.js +1 -1
  176. package/dist/index27.cjs +83 -56
  177. package/dist/index27.cjs.map +1 -1
  178. package/dist/index27.js +83 -56
  179. package/dist/index27.js.map +1 -1
  180. package/dist/index28.cjs +1 -1
  181. package/dist/index28.js +1 -1
  182. package/dist/index29.cjs +51 -39
  183. package/dist/index29.cjs.map +1 -1
  184. package/dist/index29.js +51 -39
  185. package/dist/index29.js.map +1 -1
  186. package/dist/index30.cjs +11 -11
  187. package/dist/index30.js +11 -11
  188. package/dist/index31.cjs +4 -4
  189. package/dist/index31.js +4 -4
  190. package/dist/index32.cjs +3 -3
  191. package/dist/index32.js +3 -3
  192. package/dist/index33.cjs +1 -1
  193. package/dist/index33.js +1 -1
  194. package/dist/index34.cjs +2 -2
  195. package/dist/index34.js +2 -2
  196. package/dist/index35.cjs +2 -2
  197. package/dist/index35.js +2 -2
  198. package/dist/index36.cjs +2 -2
  199. package/dist/index36.js +2 -2
  200. package/dist/index37.cjs +1 -1
  201. package/dist/index37.js +1 -1
  202. package/dist/index38.cjs +138 -62
  203. package/dist/index38.cjs.map +1 -1
  204. package/dist/index38.js +138 -62
  205. package/dist/index38.js.map +1 -1
  206. package/dist/index39.cjs +1 -1
  207. package/dist/index39.js +1 -1
  208. package/dist/index40.cjs +2 -2
  209. package/dist/index40.js +2 -2
  210. package/dist/index41.cjs +2 -2
  211. package/dist/index41.js +2 -2
  212. package/dist/index42.cjs +2 -2
  213. package/dist/index42.js +2 -2
  214. package/dist/index43.cjs +1 -1
  215. package/dist/index43.js +1 -1
  216. package/dist/index44.cjs +2 -2
  217. package/dist/index44.js +2 -2
  218. package/dist/index45.cjs +4 -4
  219. package/dist/index45.js +4 -4
  220. package/dist/index46.cjs +1 -1
  221. package/dist/index46.js +1 -1
  222. package/dist/index47.cjs +1 -1
  223. package/dist/index47.js +1 -1
  224. package/dist/index48.cjs +1 -1
  225. package/dist/index48.js +1 -1
  226. package/dist/index49.cjs +2 -2
  227. package/dist/index49.js +2 -2
  228. package/dist/index50.cjs +86 -47
  229. package/dist/index50.cjs.map +1 -1
  230. package/dist/index50.js +86 -47
  231. package/dist/index50.js.map +1 -1
  232. package/dist/index51.cjs +1 -1
  233. package/dist/index51.js +1 -1
  234. package/dist/index52.cjs +3 -3
  235. package/dist/index52.js +3 -3
  236. package/dist/index53.cjs +1 -1
  237. package/dist/index53.js +1 -1
  238. package/dist/index54.cjs +1 -1
  239. package/dist/index54.js +1 -1
  240. package/dist/index55.cjs +3 -3
  241. package/dist/index55.js +3 -3
  242. package/dist/index56.cjs +1 -1
  243. package/dist/index56.js +1 -1
  244. package/dist/index57.cjs +1 -1
  245. package/dist/index57.js +1 -1
  246. package/dist/index58.cjs +2 -2
  247. package/dist/index58.js +2 -2
  248. package/dist/index60.cjs +16 -10
  249. package/dist/index60.cjs.map +1 -1
  250. package/dist/index60.js +17 -11
  251. package/dist/index60.js.map +1 -1
  252. package/dist/index61.cjs +15 -21
  253. package/dist/index61.cjs.map +1 -1
  254. package/dist/index61.js +15 -21
  255. package/dist/index61.js.map +1 -1
  256. package/dist/index62.cjs +145 -19
  257. package/dist/index62.cjs.map +1 -1
  258. package/dist/index62.js +143 -17
  259. package/dist/index62.js.map +1 -1
  260. package/dist/index63.cjs +23 -5
  261. package/dist/index63.cjs.map +1 -1
  262. package/dist/index63.js +24 -6
  263. package/dist/index63.js.map +1 -1
  264. package/dist/index64.cjs +19 -143
  265. package/dist/index64.cjs.map +1 -1
  266. package/dist/index64.js +17 -141
  267. package/dist/index64.js.map +1 -1
  268. package/dist/index65.cjs +2 -17
  269. package/dist/index65.cjs.map +1 -1
  270. package/dist/index65.js +2 -17
  271. package/dist/index65.js.map +1 -1
  272. package/dist/index66.cjs +10 -19
  273. package/dist/index66.cjs.map +1 -1
  274. package/dist/index66.js +10 -19
  275. package/dist/index66.js.map +1 -1
  276. package/dist/index67.cjs +20 -14
  277. package/dist/index67.cjs.map +1 -1
  278. package/dist/index67.js +20 -14
  279. package/dist/index67.js.map +1 -1
  280. package/dist/index68.cjs +5 -38
  281. package/dist/index68.cjs.map +1 -1
  282. package/dist/index68.js +6 -39
  283. package/dist/index68.js.map +1 -1
  284. package/dist/index69.cjs +13 -28
  285. package/dist/index69.cjs.map +1 -1
  286. package/dist/index69.js +13 -28
  287. package/dist/index69.js.map +1 -1
  288. package/dist/index70.cjs +16 -19
  289. package/dist/index70.cjs.map +1 -1
  290. package/dist/index70.js +17 -20
  291. package/dist/index70.js.map +1 -1
  292. package/dist/index71.cjs +19 -4
  293. package/dist/index71.cjs.map +1 -1
  294. package/dist/index71.js +19 -4
  295. package/dist/index71.js.map +1 -1
  296. package/dist/index72.cjs +25 -116
  297. package/dist/index72.cjs.map +1 -1
  298. package/dist/index72.js +24 -115
  299. package/dist/index72.js.map +1 -1
  300. package/dist/index73.cjs +10 -37
  301. package/dist/index73.cjs.map +1 -1
  302. package/dist/index73.js +10 -37
  303. package/dist/index73.js.map +1 -1
  304. package/dist/index74.cjs +2 -53
  305. package/dist/index74.cjs.map +1 -1
  306. package/dist/index74.js +3 -54
  307. package/dist/index74.js.map +1 -1
  308. package/dist/index75.cjs +24 -39
  309. package/dist/index75.cjs.map +1 -1
  310. package/dist/index75.js +23 -38
  311. package/dist/index75.js.map +1 -1
  312. package/dist/index76.cjs +45 -91
  313. package/dist/index76.cjs.map +1 -1
  314. package/dist/index76.js +45 -91
  315. package/dist/index76.js.map +1 -1
  316. package/dist/index77.cjs +28 -34
  317. package/dist/index77.cjs.map +1 -1
  318. package/dist/index77.js +28 -34
  319. package/dist/index77.js.map +1 -1
  320. package/dist/index78.cjs +15 -20
  321. package/dist/index78.cjs.map +1 -1
  322. package/dist/index78.js +15 -20
  323. package/dist/index78.js.map +1 -1
  324. package/dist/index79.cjs +6 -69
  325. package/dist/index79.cjs.map +1 -1
  326. package/dist/index79.js +5 -68
  327. package/dist/index79.js.map +1 -1
  328. package/dist/index80.cjs +6 -7
  329. package/dist/index80.cjs.map +1 -1
  330. package/dist/index80.js +5 -6
  331. package/dist/index80.js.map +1 -1
  332. package/dist/index81.cjs +64 -34
  333. package/dist/index81.cjs.map +1 -1
  334. package/dist/index81.js +64 -34
  335. package/dist/index81.js.map +1 -1
  336. package/dist/index82.cjs +52 -134
  337. package/dist/index82.cjs.map +1 -1
  338. package/dist/index82.js +51 -133
  339. package/dist/index82.js.map +1 -1
  340. package/dist/index83.cjs +13 -40
  341. package/dist/index83.cjs.map +1 -1
  342. package/dist/index83.js +14 -41
  343. package/dist/index83.js.map +1 -1
  344. package/dist/index84.cjs +30 -3
  345. package/dist/index84.cjs.map +1 -1
  346. package/dist/index84.js +30 -3
  347. package/dist/index84.js.map +1 -1
  348. package/dist/index85.cjs +36 -36
  349. package/dist/index85.js +36 -36
  350. package/dist/index86.cjs +34 -28
  351. package/dist/index86.cjs.map +1 -1
  352. package/dist/index86.js +34 -28
  353. package/dist/index86.js.map +1 -1
  354. package/dist/index87.cjs +14 -2
  355. package/dist/index87.cjs.map +1 -1
  356. package/dist/index87.js +14 -2
  357. package/dist/index87.js.map +1 -1
  358. package/dist/index88.cjs +16 -16
  359. package/dist/index88.js +16 -16
  360. package/dist/index89.cjs +16 -19
  361. package/dist/index89.cjs.map +1 -1
  362. package/dist/index89.js +17 -20
  363. package/dist/index89.js.map +1 -1
  364. package/dist/index90.cjs +10 -46
  365. package/dist/index90.cjs.map +1 -1
  366. package/dist/index90.js +11 -47
  367. package/dist/index90.js.map +1 -1
  368. package/dist/index91.cjs +116 -28
  369. package/dist/index91.cjs.map +1 -1
  370. package/dist/index91.js +115 -27
  371. package/dist/index91.js.map +1 -1
  372. package/dist/index92.cjs +37 -22
  373. package/dist/index92.cjs.map +1 -1
  374. package/dist/index92.js +37 -22
  375. package/dist/index92.js.map +1 -1
  376. package/dist/index93.cjs +35 -2
  377. package/dist/index93.cjs.map +1 -1
  378. package/dist/index93.js +36 -3
  379. package/dist/index93.js.map +1 -1
  380. package/dist/index94.cjs +16 -13
  381. package/dist/index94.cjs.map +1 -1
  382. package/dist/index94.js +17 -14
  383. package/dist/index94.js.map +1 -1
  384. package/dist/index95.cjs +80 -2
  385. package/dist/index95.cjs.map +1 -1
  386. package/dist/index95.js +81 -3
  387. package/dist/index95.js.map +1 -1
  388. package/dist/index96.cjs +4 -19
  389. package/dist/index96.cjs.map +1 -1
  390. package/dist/index96.js +5 -20
  391. package/dist/index96.js.map +1 -1
  392. package/dist/index97.cjs +130 -32
  393. package/dist/index97.cjs.map +1 -1
  394. package/dist/index97.js +130 -32
  395. package/dist/index97.js.map +1 -1
  396. package/dist/index98.cjs +45 -43
  397. package/dist/index98.cjs.map +1 -1
  398. package/dist/index98.js +44 -42
  399. package/dist/index98.js.map +1 -1
  400. package/dist/index99.cjs +24 -24
  401. package/dist/index99.cjs.map +1 -1
  402. package/dist/index99.js +23 -23
  403. package/dist/index99.js.map +1 -1
  404. package/dist/style.css +42 -4
  405. package/dist/utils/clippingRect.d.ts +15 -0
  406. package/dist/utils/clippingRect.d.ts.map +1 -0
  407. package/dist/utils/clippingRect.test.d.ts +2 -0
  408. package/dist/utils/clippingRect.test.d.ts.map +1 -0
  409. package/package.json +1 -1
package/dist/index62.cjs CHANGED
@@ -1,21 +1,147 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-oc0XP";
4
- const success = "krc-success-JzpGX";
5
- const warning = "krc-warning-lTskX";
6
- const danger = "krc-danger-zFPHk";
7
- const info = "krc-info-k9uTn";
8
- const styles = {
9
- root,
10
- success,
11
- warning,
12
- danger,
13
- info
14
- };
15
- exports.danger = danger;
16
- exports.default = styles;
17
- exports.info = info;
18
- exports.root = root;
19
- exports.success = success;
20
- exports.warning = warning;
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ICON_SIZE = {
4
+ SM: 14,
5
+ MD: 16,
6
+ LG: 18
7
+ };
8
+ const SVG_VIEWBOX = "0 0 24 24";
9
+ const SVG_STROKE_WIDTH = 2;
10
+ const KEYBOARD_STEP = 2;
11
+ const VIEWPORT_MARGIN = 32;
12
+ const CONTEXT_MENU_MARGIN = 10;
13
+ const PANEL_EDGE_MARGIN = 8;
14
+ const CHART_MODAL = {
15
+ MIN_WIDTH: 960,
16
+ MIN_HEIGHT: 480,
17
+ MAX_WIDTH: 2400,
18
+ MAX_HEIGHT: 1300,
19
+ DEFAULT_WIDTH: 1500,
20
+ DEFAULT_HEIGHT: 820,
21
+ FALLBACK_WIDTH: 1400,
22
+ FALLBACK_HEIGHT: 800
23
+ };
24
+ const MAX_SANKEY_NODES = 150;
25
+ const MAX_SERIES = 20;
26
+ const MAX_CATEGORIES = 20;
27
+ const MAX_SUBCATEGORIES = 10;
28
+ const CHART_COLORS = [
29
+ "#FF6B5A",
30
+ "#5B8DEF",
31
+ "#4ECDC4",
32
+ "#F7B731",
33
+ "#A55EEA",
34
+ "#26DE81",
35
+ "#FC5C65",
36
+ "#45AAF2",
37
+ "#FD9644",
38
+ "#2BCBBA",
39
+ "#D1D8E0",
40
+ "#778CA3",
41
+ "#EB3B5A",
42
+ "#3867D6",
43
+ "#20BF6B",
44
+ "#F7B731",
45
+ "#8854D0",
46
+ "#0FB9B1",
47
+ "#FA8231",
48
+ "#4B6584"
49
+ ];
50
+ const MIN_COLUMN_WIDTH = 40;
51
+ const SIDEBAR = {
52
+ WIDTH: 240,
53
+ COLLAPSED_WIDTH: 80
54
+ };
55
+ const COUNTERS_PAGE_SIZE = 100;
56
+ const TOAST_DURATION_MS = 3200;
57
+ const PAGINATION = {
58
+ /** Page numbers shown on each side of the current page. */
59
+ SIBLING_COUNT: 1,
60
+ /** Page numbers pinned at the first/last boundaries. */
61
+ BOUNDARY_COUNT: 1
62
+ };
63
+ const SCATTER = {
64
+ /** Marks drawn before deterministic sampling kicks in. */
65
+ MAX_POINTS: 2e3,
66
+ MIN_SYMBOL_SIZE: 6,
67
+ MAX_SYMBOL_SIZE: 28,
68
+ /** Symbol size used when no point carries a weight. */
69
+ BASE_SYMBOL_SIZE: 10
70
+ };
71
+ const GROUPED_BAR = {
72
+ /**
73
+ * Grid margins. `containLabel` reserves room for the tick labels only, so the
74
+ * value-axis name and the legend need their own margin or they get clipped.
75
+ */
76
+ GRID_MARGIN: {
77
+ BASE: 8,
78
+ TOP: 16,
79
+ RIGHT: 16,
80
+ /** Extra left margin for a vertical value-axis name. */
81
+ VALUE_NAME_Y: 34,
82
+ /** Extra bottom margin for a horizontal value-axis name (`invertAxis`). */
83
+ VALUE_NAME_X: 23,
84
+ LEGEND: 30
85
+ },
86
+ /** Distance from the value axis line to its name. */
87
+ AXIS_NAME_GAP: { X: 28, Y: 38 },
88
+ /** Raises a real `0` to a visible bar, so it is not mistaken for a gap. */
89
+ MIN_BAR_HEIGHT: 2,
90
+ /** Diameter of the colour dot before each tooltip line. */
91
+ TOOLTIP_MARKER_SIZE: 10,
92
+ /** Space between the tooltip colour dot and the series name. */
93
+ TOOLTIP_MARKER_GAP: 4
94
+ };
95
+ const RANGE_SLIDER = {
96
+ DEFAULT_STEP: 1
97
+ };
98
+ const GEO_MAP = {
99
+ /** Markers drawn before deterministic sampling kicks in. */
100
+ MAX_POINTS: 2e3,
101
+ MIN_MARKER_RADIUS: 4,
102
+ MAX_MARKER_RADIUS: 18,
103
+ /** Radius used when no point carries a weight. */
104
+ BASE_MARKER_RADIUS: 8,
105
+ /** Extra radius on a selected marker, so colour is never the only cue. */
106
+ SELECTED_RADIUS_BOOST: 3,
107
+ MARKER_STROKE_WIDTH: 1,
108
+ SELECTED_STROKE_WIDTH: 3,
109
+ MARKER_FILL_OPACITY: 0.7,
110
+ /** Fallback view when there is nothing to fit to (roughly central Spain). */
111
+ DEFAULT_CENTER: [40.4168, -3.7038],
112
+ DEFAULT_ZOOM: 13,
113
+ /** `fitBounds` on a single point collapses to max zoom; this caps it. */
114
+ SINGLE_POINT_ZOOM: 14,
115
+ FIT_BOUNDS_PADDING: [24, 24]
116
+ };
117
+ const BASEMAP_TILES = {
118
+ light: "https://basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}{r}.png",
119
+ dark: "https://basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}{r}.png",
120
+ attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>'
121
+ };
122
+ const HEATMAP_GROUPED_HEADER_ROWS = 2;
123
+ exports.BASEMAP_TILES = BASEMAP_TILES;
124
+ exports.CHART_COLORS = CHART_COLORS;
125
+ exports.CHART_MODAL = CHART_MODAL;
126
+ exports.CONTEXT_MENU_MARGIN = CONTEXT_MENU_MARGIN;
127
+ exports.COUNTERS_PAGE_SIZE = COUNTERS_PAGE_SIZE;
128
+ exports.GEO_MAP = GEO_MAP;
129
+ exports.GROUPED_BAR = GROUPED_BAR;
130
+ exports.HEATMAP_GROUPED_HEADER_ROWS = HEATMAP_GROUPED_HEADER_ROWS;
131
+ exports.ICON_SIZE = ICON_SIZE;
132
+ exports.KEYBOARD_STEP = KEYBOARD_STEP;
133
+ exports.MAX_CATEGORIES = MAX_CATEGORIES;
134
+ exports.MAX_SANKEY_NODES = MAX_SANKEY_NODES;
135
+ exports.MAX_SERIES = MAX_SERIES;
136
+ exports.MAX_SUBCATEGORIES = MAX_SUBCATEGORIES;
137
+ exports.MIN_COLUMN_WIDTH = MIN_COLUMN_WIDTH;
138
+ exports.PAGINATION = PAGINATION;
139
+ exports.PANEL_EDGE_MARGIN = PANEL_EDGE_MARGIN;
140
+ exports.RANGE_SLIDER = RANGE_SLIDER;
141
+ exports.SCATTER = SCATTER;
142
+ exports.SIDEBAR = SIDEBAR;
143
+ exports.SVG_STROKE_WIDTH = SVG_STROKE_WIDTH;
144
+ exports.SVG_VIEWBOX = SVG_VIEWBOX;
145
+ exports.TOAST_DURATION_MS = TOAST_DURATION_MS;
146
+ exports.VIEWPORT_MARGIN = VIEWPORT_MARGIN;
21
147
  //# sourceMappingURL=index62.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index62.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index62.cjs","sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the component library.\n * Centralises magic numbers used across components.\n */\n\n/** SVG icon rendered sizes (px — used as HTML/SVG attributes, not CSS). */\nexport const ICON_SIZE = {\n SM: 14,\n MD: 16,\n LG: 18,\n} as const;\n\n/** Standard SVG viewBox for 24×24 icon grid. */\nexport const SVG_VIEWBOX = '0 0 24 24';\n\n/** Standard SVG stroke width. */\nexport const SVG_STROKE_WIDTH = 2;\n\n/** Keyboard accessibility step (percentage points per arrow press). */\nexport const KEYBOARD_STEP = 2;\n\n/** Viewport safety margin (px — used in JS calculations with DOM APIs). */\nexport const VIEWPORT_MARGIN = 32;\n\n/** ContextMenu viewport margin (px). */\nexport const CONTEXT_MENU_MARGIN = 10;\n\n/** Gap kept between a dropdown panel and the edge of the box that clips it (px — used in JS calculations with DOM APIs). */\nexport const PANEL_EDGE_MARGIN = 8;\n\n/** ChartExpandModal dimension constraints (px — used with window.innerWidth). */\nexport const CHART_MODAL = {\n MIN_WIDTH: 960,\n MIN_HEIGHT: 480,\n MAX_WIDTH: 2400,\n MAX_HEIGHT: 1300,\n DEFAULT_WIDTH: 1500,\n DEFAULT_HEIGHT: 820,\n FALLBACK_WIDTH: 1400,\n FALLBACK_HEIGHT: 800,\n} as const;\n\n/** Maximum Sankey nodes before truncation warning. */\nexport const MAX_SANKEY_NODES = 150;\n\n/** Maximum stacked series before \"Other\" aggregation. */\nexport const MAX_SERIES = 20;\n\n/** Maximum categories in stacked bar chart. */\nexport const MAX_CATEGORIES = 20;\n\n/** Maximum subcategories per category. */\nexport const MAX_SUBCATEGORIES = 10;\n\n/** Time range preset durations in milliseconds. */\nexport const TIME_PRESET_MS = {\n '1h': 3_600_000,\n '6h': 21_600_000,\n '24h': 86_400_000,\n '7d': 604_800_000,\n '30d': 2_592_000_000,\n} as const;\n\n/** Default chart color palette. */\nexport const CHART_COLORS = [\n '#FF6B5A',\n '#5B8DEF',\n '#4ECDC4',\n '#F7B731',\n '#A55EEA',\n '#26DE81',\n '#FC5C65',\n '#45AAF2',\n '#FD9644',\n '#2BCBBA',\n '#D1D8E0',\n '#778CA3',\n '#EB3B5A',\n '#3867D6',\n '#20BF6B',\n '#F7B731',\n '#8854D0',\n '#0FB9B1',\n '#FA8231',\n '#4B6584',\n] as const;\n\n/** Minimum column width for resizable tables (px — used in JS calculations). */\nexport const MIN_COLUMN_WIDTH = 40;\n\n/** Sidebar dimension constants (px — used as inline styles). */\nexport const SIDEBAR = {\n WIDTH: 240,\n COLLAPSED_WIDTH: 80,\n} as const;\n\n/** Counters analysis pagination. */\nexport const COUNTERS_PAGE_SIZE = 100;\n\n/** Default time a toast stays visible before auto-dismiss (ms). */\nexport const TOAST_DURATION_MS = 3200;\n\n/** Pagination page-range defaults. */\nexport const PAGINATION = {\n /** Page numbers shown on each side of the current page. */\n SIBLING_COUNT: 1,\n /** Page numbers pinned at the first/last boundaries. */\n BOUNDARY_COUNT: 1,\n} as const;\n\n/** ScatterChartCard mark cap and symbol radii (px — echarts canvas attributes, not CSS). */\nexport const SCATTER = {\n /** Marks drawn before deterministic sampling kicks in. */\n MAX_POINTS: 2000,\n MIN_SYMBOL_SIZE: 6,\n MAX_SYMBOL_SIZE: 28,\n /** Symbol size used when no point carries a weight. */\n BASE_SYMBOL_SIZE: 10,\n} as const;\n\n/** GroupedBarChartCard layout (px — echarts canvas attributes, not CSS). */\nexport const GROUPED_BAR = {\n /**\n * Grid margins. `containLabel` reserves room for the tick labels only, so the\n * value-axis name and the legend need their own margin or they get clipped.\n */\n GRID_MARGIN: {\n BASE: 8,\n TOP: 16,\n RIGHT: 16,\n /** Extra left margin for a vertical value-axis name. */\n VALUE_NAME_Y: 34,\n /** Extra bottom margin for a horizontal value-axis name (`invertAxis`). */\n VALUE_NAME_X: 23,\n LEGEND: 30,\n },\n /** Distance from the value axis line to its name. */\n AXIS_NAME_GAP: { X: 28, Y: 38 },\n /** Raises a real `0` to a visible bar, so it is not mistaken for a gap. */\n MIN_BAR_HEIGHT: 2,\n /** Diameter of the colour dot before each tooltip line. */\n TOOLTIP_MARKER_SIZE: 10,\n /** Space between the tooltip colour dot and the series name. */\n TOOLTIP_MARKER_GAP: 4,\n} as const;\n\n/** RangeSlider defaults. */\nexport const RANGE_SLIDER = {\n DEFAULT_STEP: 1,\n} as const;\n\n/** GeoMapCard marker caps and dimensions (px — Leaflet SVG attributes, not CSS). */\nexport const GEO_MAP = {\n /** Markers drawn before deterministic sampling kicks in. */\n MAX_POINTS: 2000,\n MIN_MARKER_RADIUS: 4,\n MAX_MARKER_RADIUS: 18,\n /** Radius used when no point carries a weight. */\n BASE_MARKER_RADIUS: 8,\n /** Extra radius on a selected marker, so colour is never the only cue. */\n SELECTED_RADIUS_BOOST: 3,\n MARKER_STROKE_WIDTH: 1,\n SELECTED_STROKE_WIDTH: 3,\n MARKER_FILL_OPACITY: 0.7,\n /** Fallback view when there is nothing to fit to (roughly central Spain). */\n DEFAULT_CENTER: [40.4168, -3.7038],\n DEFAULT_ZOOM: 13,\n /** `fitBounds` on a single point collapses to max zoom; this caps it. */\n SINGLE_POINT_ZOOM: 14,\n FIT_BOUNDS_PADDING: [24, 24],\n} as const;\n\n/**\n * CARTO basemaps: deliberately muted so the markers carry the reading. CARTO\n * requires an API key (`?key=`, see `GeoMapCard.basemapKey`); without one it still\n * answers 200, with \"API KEY REQUIRED\" painted into every tile.\n */\nexport const BASEMAP_TILES = {\n light: 'https://basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}{r}.png',\n dark: 'https://basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}{r}.png',\n attribution:\n '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors ' +\n '&copy; <a href=\"https://carto.com/attributions\">CARTO</a>',\n} as const;\n\n/** HeatmapMatrix header rows when column groups are in use (group row + column row). */\nexport const HEATMAP_GROUPED_HEADER_ROWS = 2;\n"],"names":[],"mappings":";;AAMO,MAAM,YAAY;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,MAAM,cAAc;AAGpB,MAAM,mBAAmB;AAGzB,MAAM,gBAAgB;AAGtB,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB;AAG5B,MAAM,oBAAoB;AAG1B,MAAM,cAAc;AAAA,EACzB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;AAGO,MAAM,mBAAmB;AAGzB,MAAM,aAAa;AAGnB,MAAM,iBAAiB;AAGvB,MAAM,oBAAoB;AAY1B,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,mBAAmB;AAGzB,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AACnB;AAGO,MAAM,qBAAqB;AAG3B,MAAM,oBAAoB;AAG1B,MAAM,aAAa;AAAA;AAAA,EAExB,eAAe;AAAA;AAAA,EAEf,gBAAgB;AAClB;AAGO,MAAM,UAAU;AAAA;AAAA,EAErB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,iBAAiB;AAAA;AAAA,EAEjB,kBAAkB;AACpB;AAGO,MAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EAKzB,aAAa;AAAA,IACX,MAAM;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA;AAAA,IAEP,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA,IACd,QAAQ;AAAA,EAAA;AAAA;AAAA,EAGV,eAAe,EAAE,GAAG,IAAI,GAAG,GAAA;AAAA;AAAA,EAE3B,gBAAgB;AAAA;AAAA,EAEhB,qBAAqB;AAAA;AAAA,EAErB,oBAAoB;AACtB;AAGO,MAAM,eAAe;AAAA,EAC1B,cAAc;AAChB;AAGO,MAAM,UAAU;AAAA;AAAA,EAErB,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,mBAAmB;AAAA;AAAA,EAEnB,oBAAoB;AAAA;AAAA,EAEpB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA;AAAA,EAErB,gBAAgB,CAAC,SAAS,OAAO;AAAA,EACjC,cAAc;AAAA;AAAA,EAEd,mBAAmB;AAAA,EACnB,oBAAoB,CAAC,IAAI,EAAE;AAC7B;AAOO,MAAM,gBAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aACE;AAEJ;AAGO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index62.js CHANGED
@@ -1,21 +1,147 @@
1
- const root = "krc-root-oc0XP";
2
- const success = "krc-success-JzpGX";
3
- const warning = "krc-warning-lTskX";
4
- const danger = "krc-danger-zFPHk";
5
- const info = "krc-info-k9uTn";
6
- const styles = {
7
- root,
8
- success,
9
- warning,
10
- danger,
11
- info
1
+ const ICON_SIZE = {
2
+ SM: 14,
3
+ MD: 16,
4
+ LG: 18
12
5
  };
6
+ const SVG_VIEWBOX = "0 0 24 24";
7
+ const SVG_STROKE_WIDTH = 2;
8
+ const KEYBOARD_STEP = 2;
9
+ const VIEWPORT_MARGIN = 32;
10
+ const CONTEXT_MENU_MARGIN = 10;
11
+ const PANEL_EDGE_MARGIN = 8;
12
+ const CHART_MODAL = {
13
+ MIN_WIDTH: 960,
14
+ MIN_HEIGHT: 480,
15
+ MAX_WIDTH: 2400,
16
+ MAX_HEIGHT: 1300,
17
+ DEFAULT_WIDTH: 1500,
18
+ DEFAULT_HEIGHT: 820,
19
+ FALLBACK_WIDTH: 1400,
20
+ FALLBACK_HEIGHT: 800
21
+ };
22
+ const MAX_SANKEY_NODES = 150;
23
+ const MAX_SERIES = 20;
24
+ const MAX_CATEGORIES = 20;
25
+ const MAX_SUBCATEGORIES = 10;
26
+ const CHART_COLORS = [
27
+ "#FF6B5A",
28
+ "#5B8DEF",
29
+ "#4ECDC4",
30
+ "#F7B731",
31
+ "#A55EEA",
32
+ "#26DE81",
33
+ "#FC5C65",
34
+ "#45AAF2",
35
+ "#FD9644",
36
+ "#2BCBBA",
37
+ "#D1D8E0",
38
+ "#778CA3",
39
+ "#EB3B5A",
40
+ "#3867D6",
41
+ "#20BF6B",
42
+ "#F7B731",
43
+ "#8854D0",
44
+ "#0FB9B1",
45
+ "#FA8231",
46
+ "#4B6584"
47
+ ];
48
+ const MIN_COLUMN_WIDTH = 40;
49
+ const SIDEBAR = {
50
+ WIDTH: 240,
51
+ COLLAPSED_WIDTH: 80
52
+ };
53
+ const COUNTERS_PAGE_SIZE = 100;
54
+ const TOAST_DURATION_MS = 3200;
55
+ const PAGINATION = {
56
+ /** Page numbers shown on each side of the current page. */
57
+ SIBLING_COUNT: 1,
58
+ /** Page numbers pinned at the first/last boundaries. */
59
+ BOUNDARY_COUNT: 1
60
+ };
61
+ const SCATTER = {
62
+ /** Marks drawn before deterministic sampling kicks in. */
63
+ MAX_POINTS: 2e3,
64
+ MIN_SYMBOL_SIZE: 6,
65
+ MAX_SYMBOL_SIZE: 28,
66
+ /** Symbol size used when no point carries a weight. */
67
+ BASE_SYMBOL_SIZE: 10
68
+ };
69
+ const GROUPED_BAR = {
70
+ /**
71
+ * Grid margins. `containLabel` reserves room for the tick labels only, so the
72
+ * value-axis name and the legend need their own margin or they get clipped.
73
+ */
74
+ GRID_MARGIN: {
75
+ BASE: 8,
76
+ TOP: 16,
77
+ RIGHT: 16,
78
+ /** Extra left margin for a vertical value-axis name. */
79
+ VALUE_NAME_Y: 34,
80
+ /** Extra bottom margin for a horizontal value-axis name (`invertAxis`). */
81
+ VALUE_NAME_X: 23,
82
+ LEGEND: 30
83
+ },
84
+ /** Distance from the value axis line to its name. */
85
+ AXIS_NAME_GAP: { X: 28, Y: 38 },
86
+ /** Raises a real `0` to a visible bar, so it is not mistaken for a gap. */
87
+ MIN_BAR_HEIGHT: 2,
88
+ /** Diameter of the colour dot before each tooltip line. */
89
+ TOOLTIP_MARKER_SIZE: 10,
90
+ /** Space between the tooltip colour dot and the series name. */
91
+ TOOLTIP_MARKER_GAP: 4
92
+ };
93
+ const RANGE_SLIDER = {
94
+ DEFAULT_STEP: 1
95
+ };
96
+ const GEO_MAP = {
97
+ /** Markers drawn before deterministic sampling kicks in. */
98
+ MAX_POINTS: 2e3,
99
+ MIN_MARKER_RADIUS: 4,
100
+ MAX_MARKER_RADIUS: 18,
101
+ /** Radius used when no point carries a weight. */
102
+ BASE_MARKER_RADIUS: 8,
103
+ /** Extra radius on a selected marker, so colour is never the only cue. */
104
+ SELECTED_RADIUS_BOOST: 3,
105
+ MARKER_STROKE_WIDTH: 1,
106
+ SELECTED_STROKE_WIDTH: 3,
107
+ MARKER_FILL_OPACITY: 0.7,
108
+ /** Fallback view when there is nothing to fit to (roughly central Spain). */
109
+ DEFAULT_CENTER: [40.4168, -3.7038],
110
+ DEFAULT_ZOOM: 13,
111
+ /** `fitBounds` on a single point collapses to max zoom; this caps it. */
112
+ SINGLE_POINT_ZOOM: 14,
113
+ FIT_BOUNDS_PADDING: [24, 24]
114
+ };
115
+ const BASEMAP_TILES = {
116
+ light: "https://basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}{r}.png",
117
+ dark: "https://basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}{r}.png",
118
+ attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>'
119
+ };
120
+ const HEATMAP_GROUPED_HEADER_ROWS = 2;
13
121
  export {
14
- danger,
15
- styles as default,
16
- info,
17
- root,
18
- success,
19
- warning
122
+ BASEMAP_TILES,
123
+ CHART_COLORS,
124
+ CHART_MODAL,
125
+ CONTEXT_MENU_MARGIN,
126
+ COUNTERS_PAGE_SIZE,
127
+ GEO_MAP,
128
+ GROUPED_BAR,
129
+ HEATMAP_GROUPED_HEADER_ROWS,
130
+ ICON_SIZE,
131
+ KEYBOARD_STEP,
132
+ MAX_CATEGORIES,
133
+ MAX_SANKEY_NODES,
134
+ MAX_SERIES,
135
+ MAX_SUBCATEGORIES,
136
+ MIN_COLUMN_WIDTH,
137
+ PAGINATION,
138
+ PANEL_EDGE_MARGIN,
139
+ RANGE_SLIDER,
140
+ SCATTER,
141
+ SIDEBAR,
142
+ SVG_STROKE_WIDTH,
143
+ SVG_VIEWBOX,
144
+ TOAST_DURATION_MS,
145
+ VIEWPORT_MARGIN
20
146
  };
21
147
  //# sourceMappingURL=index62.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index62.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index62.js","sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the component library.\n * Centralises magic numbers used across components.\n */\n\n/** SVG icon rendered sizes (px — used as HTML/SVG attributes, not CSS). */\nexport const ICON_SIZE = {\n SM: 14,\n MD: 16,\n LG: 18,\n} as const;\n\n/** Standard SVG viewBox for 24×24 icon grid. */\nexport const SVG_VIEWBOX = '0 0 24 24';\n\n/** Standard SVG stroke width. */\nexport const SVG_STROKE_WIDTH = 2;\n\n/** Keyboard accessibility step (percentage points per arrow press). */\nexport const KEYBOARD_STEP = 2;\n\n/** Viewport safety margin (px — used in JS calculations with DOM APIs). */\nexport const VIEWPORT_MARGIN = 32;\n\n/** ContextMenu viewport margin (px). */\nexport const CONTEXT_MENU_MARGIN = 10;\n\n/** Gap kept between a dropdown panel and the edge of the box that clips it (px — used in JS calculations with DOM APIs). */\nexport const PANEL_EDGE_MARGIN = 8;\n\n/** ChartExpandModal dimension constraints (px — used with window.innerWidth). */\nexport const CHART_MODAL = {\n MIN_WIDTH: 960,\n MIN_HEIGHT: 480,\n MAX_WIDTH: 2400,\n MAX_HEIGHT: 1300,\n DEFAULT_WIDTH: 1500,\n DEFAULT_HEIGHT: 820,\n FALLBACK_WIDTH: 1400,\n FALLBACK_HEIGHT: 800,\n} as const;\n\n/** Maximum Sankey nodes before truncation warning. */\nexport const MAX_SANKEY_NODES = 150;\n\n/** Maximum stacked series before \"Other\" aggregation. */\nexport const MAX_SERIES = 20;\n\n/** Maximum categories in stacked bar chart. */\nexport const MAX_CATEGORIES = 20;\n\n/** Maximum subcategories per category. */\nexport const MAX_SUBCATEGORIES = 10;\n\n/** Time range preset durations in milliseconds. */\nexport const TIME_PRESET_MS = {\n '1h': 3_600_000,\n '6h': 21_600_000,\n '24h': 86_400_000,\n '7d': 604_800_000,\n '30d': 2_592_000_000,\n} as const;\n\n/** Default chart color palette. */\nexport const CHART_COLORS = [\n '#FF6B5A',\n '#5B8DEF',\n '#4ECDC4',\n '#F7B731',\n '#A55EEA',\n '#26DE81',\n '#FC5C65',\n '#45AAF2',\n '#FD9644',\n '#2BCBBA',\n '#D1D8E0',\n '#778CA3',\n '#EB3B5A',\n '#3867D6',\n '#20BF6B',\n '#F7B731',\n '#8854D0',\n '#0FB9B1',\n '#FA8231',\n '#4B6584',\n] as const;\n\n/** Minimum column width for resizable tables (px — used in JS calculations). */\nexport const MIN_COLUMN_WIDTH = 40;\n\n/** Sidebar dimension constants (px — used as inline styles). */\nexport const SIDEBAR = {\n WIDTH: 240,\n COLLAPSED_WIDTH: 80,\n} as const;\n\n/** Counters analysis pagination. */\nexport const COUNTERS_PAGE_SIZE = 100;\n\n/** Default time a toast stays visible before auto-dismiss (ms). */\nexport const TOAST_DURATION_MS = 3200;\n\n/** Pagination page-range defaults. */\nexport const PAGINATION = {\n /** Page numbers shown on each side of the current page. */\n SIBLING_COUNT: 1,\n /** Page numbers pinned at the first/last boundaries. */\n BOUNDARY_COUNT: 1,\n} as const;\n\n/** ScatterChartCard mark cap and symbol radii (px — echarts canvas attributes, not CSS). */\nexport const SCATTER = {\n /** Marks drawn before deterministic sampling kicks in. */\n MAX_POINTS: 2000,\n MIN_SYMBOL_SIZE: 6,\n MAX_SYMBOL_SIZE: 28,\n /** Symbol size used when no point carries a weight. */\n BASE_SYMBOL_SIZE: 10,\n} as const;\n\n/** GroupedBarChartCard layout (px — echarts canvas attributes, not CSS). */\nexport const GROUPED_BAR = {\n /**\n * Grid margins. `containLabel` reserves room for the tick labels only, so the\n * value-axis name and the legend need their own margin or they get clipped.\n */\n GRID_MARGIN: {\n BASE: 8,\n TOP: 16,\n RIGHT: 16,\n /** Extra left margin for a vertical value-axis name. */\n VALUE_NAME_Y: 34,\n /** Extra bottom margin for a horizontal value-axis name (`invertAxis`). */\n VALUE_NAME_X: 23,\n LEGEND: 30,\n },\n /** Distance from the value axis line to its name. */\n AXIS_NAME_GAP: { X: 28, Y: 38 },\n /** Raises a real `0` to a visible bar, so it is not mistaken for a gap. */\n MIN_BAR_HEIGHT: 2,\n /** Diameter of the colour dot before each tooltip line. */\n TOOLTIP_MARKER_SIZE: 10,\n /** Space between the tooltip colour dot and the series name. */\n TOOLTIP_MARKER_GAP: 4,\n} as const;\n\n/** RangeSlider defaults. */\nexport const RANGE_SLIDER = {\n DEFAULT_STEP: 1,\n} as const;\n\n/** GeoMapCard marker caps and dimensions (px — Leaflet SVG attributes, not CSS). */\nexport const GEO_MAP = {\n /** Markers drawn before deterministic sampling kicks in. */\n MAX_POINTS: 2000,\n MIN_MARKER_RADIUS: 4,\n MAX_MARKER_RADIUS: 18,\n /** Radius used when no point carries a weight. */\n BASE_MARKER_RADIUS: 8,\n /** Extra radius on a selected marker, so colour is never the only cue. */\n SELECTED_RADIUS_BOOST: 3,\n MARKER_STROKE_WIDTH: 1,\n SELECTED_STROKE_WIDTH: 3,\n MARKER_FILL_OPACITY: 0.7,\n /** Fallback view when there is nothing to fit to (roughly central Spain). */\n DEFAULT_CENTER: [40.4168, -3.7038],\n DEFAULT_ZOOM: 13,\n /** `fitBounds` on a single point collapses to max zoom; this caps it. */\n SINGLE_POINT_ZOOM: 14,\n FIT_BOUNDS_PADDING: [24, 24],\n} as const;\n\n/**\n * CARTO basemaps: deliberately muted so the markers carry the reading. CARTO\n * requires an API key (`?key=`, see `GeoMapCard.basemapKey`); without one it still\n * answers 200, with \"API KEY REQUIRED\" painted into every tile.\n */\nexport const BASEMAP_TILES = {\n light: 'https://basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}{r}.png',\n dark: 'https://basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}{r}.png',\n attribution:\n '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors ' +\n '&copy; <a href=\"https://carto.com/attributions\">CARTO</a>',\n} as const;\n\n/** HeatmapMatrix header rows when column groups are in use (group row + column row). */\nexport const HEATMAP_GROUPED_HEADER_ROWS = 2;\n"],"names":[],"mappings":"AAMO,MAAM,YAAY;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,MAAM,cAAc;AAGpB,MAAM,mBAAmB;AAGzB,MAAM,gBAAgB;AAGtB,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB;AAG5B,MAAM,oBAAoB;AAG1B,MAAM,cAAc;AAAA,EACzB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;AAGO,MAAM,mBAAmB;AAGzB,MAAM,aAAa;AAGnB,MAAM,iBAAiB;AAGvB,MAAM,oBAAoB;AAY1B,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,mBAAmB;AAGzB,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AACnB;AAGO,MAAM,qBAAqB;AAG3B,MAAM,oBAAoB;AAG1B,MAAM,aAAa;AAAA;AAAA,EAExB,eAAe;AAAA;AAAA,EAEf,gBAAgB;AAClB;AAGO,MAAM,UAAU;AAAA;AAAA,EAErB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,iBAAiB;AAAA;AAAA,EAEjB,kBAAkB;AACpB;AAGO,MAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EAKzB,aAAa;AAAA,IACX,MAAM;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA;AAAA,IAEP,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA,IACd,QAAQ;AAAA,EAAA;AAAA;AAAA,EAGV,eAAe,EAAE,GAAG,IAAI,GAAG,GAAA;AAAA;AAAA,EAE3B,gBAAgB;AAAA;AAAA,EAEhB,qBAAqB;AAAA;AAAA,EAErB,oBAAoB;AACtB;AAGO,MAAM,eAAe;AAAA,EAC1B,cAAc;AAChB;AAGO,MAAM,UAAU;AAAA;AAAA,EAErB,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,mBAAmB;AAAA;AAAA,EAEnB,oBAAoB;AAAA;AAAA,EAEpB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA;AAAA,EAErB,gBAAgB,CAAC,SAAS,OAAO;AAAA,EACjC,cAAc;AAAA;AAAA,EAEd,mBAAmB;AAAA,EACnB,oBAAoB,CAAC,IAAI,EAAE;AAC7B;AAOO,MAAM,gBAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aACE;AAEJ;AAGO,MAAM,8BAA8B;"}
package/dist/index63.cjs CHANGED
@@ -1,12 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const container = "krc-container-cpDoQ";
4
- const root = "krc-root-20TMP";
3
+ const root = "krc-root-ZwPiG";
4
+ const label = "krc-label-WG17f";
5
+ const value = "krc-value-S9SSu";
6
+ const red = "krc-red-stqO-";
7
+ const amber = "krc-amber-lZgsd";
8
+ const sub = "krc-sub-0xfrv";
9
+ const isClick = "krc-isClick-CnKvM";
10
+ const isActive = "krc-isActive-YLCNL";
5
11
  const styles = {
6
- container,
7
- root
12
+ root,
13
+ label,
14
+ value,
15
+ red,
16
+ amber,
17
+ sub,
18
+ isClick,
19
+ isActive
8
20
  };
9
- exports.container = container;
21
+ exports.amber = amber;
10
22
  exports.default = styles;
23
+ exports.isActive = isActive;
24
+ exports.isClick = isClick;
25
+ exports.label = label;
26
+ exports.red = red;
11
27
  exports.root = root;
28
+ exports.sub = sub;
29
+ exports.value = value;
12
30
  //# sourceMappingURL=index63.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index63.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index63.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index63.js CHANGED
@@ -1,12 +1,30 @@
1
- const container = "krc-container-cpDoQ";
2
- const root = "krc-root-20TMP";
1
+ const root = "krc-root-ZwPiG";
2
+ const label = "krc-label-WG17f";
3
+ const value = "krc-value-S9SSu";
4
+ const red = "krc-red-stqO-";
5
+ const amber = "krc-amber-lZgsd";
6
+ const sub = "krc-sub-0xfrv";
7
+ const isClick = "krc-isClick-CnKvM";
8
+ const isActive = "krc-isActive-YLCNL";
3
9
  const styles = {
4
- container,
5
- root
10
+ root,
11
+ label,
12
+ value,
13
+ red,
14
+ amber,
15
+ sub,
16
+ isClick,
17
+ isActive
6
18
  };
7
19
  export {
8
- container,
20
+ amber,
9
21
  styles as default,
10
- root
22
+ isActive,
23
+ isClick,
24
+ label,
25
+ red,
26
+ root,
27
+ sub,
28
+ value
11
29
  };
12
30
  //# sourceMappingURL=index63.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index63.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index63.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
package/dist/index64.cjs CHANGED
@@ -1,145 +1,21 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const ICON_SIZE = {
4
- SM: 14,
5
- MD: 16,
6
- LG: 18
7
- };
8
- const SVG_VIEWBOX = "0 0 24 24";
9
- const SVG_STROKE_WIDTH = 2;
10
- const KEYBOARD_STEP = 2;
11
- const VIEWPORT_MARGIN = 32;
12
- const CONTEXT_MENU_MARGIN = 10;
13
- const CHART_MODAL = {
14
- MIN_WIDTH: 960,
15
- MIN_HEIGHT: 480,
16
- MAX_WIDTH: 2400,
17
- MAX_HEIGHT: 1300,
18
- DEFAULT_WIDTH: 1500,
19
- DEFAULT_HEIGHT: 820,
20
- FALLBACK_WIDTH: 1400,
21
- FALLBACK_HEIGHT: 800
22
- };
23
- const MAX_SANKEY_NODES = 150;
24
- const MAX_SERIES = 20;
25
- const MAX_CATEGORIES = 20;
26
- const MAX_SUBCATEGORIES = 10;
27
- const CHART_COLORS = [
28
- "#FF6B5A",
29
- "#5B8DEF",
30
- "#4ECDC4",
31
- "#F7B731",
32
- "#A55EEA",
33
- "#26DE81",
34
- "#FC5C65",
35
- "#45AAF2",
36
- "#FD9644",
37
- "#2BCBBA",
38
- "#D1D8E0",
39
- "#778CA3",
40
- "#EB3B5A",
41
- "#3867D6",
42
- "#20BF6B",
43
- "#F7B731",
44
- "#8854D0",
45
- "#0FB9B1",
46
- "#FA8231",
47
- "#4B6584"
48
- ];
49
- const MIN_COLUMN_WIDTH = 40;
50
- const SIDEBAR = {
51
- WIDTH: 240,
52
- COLLAPSED_WIDTH: 80
53
- };
54
- const COUNTERS_PAGE_SIZE = 100;
55
- const TOAST_DURATION_MS = 3200;
56
- const PAGINATION = {
57
- /** Page numbers shown on each side of the current page. */
58
- SIBLING_COUNT: 1,
59
- /** Page numbers pinned at the first/last boundaries. */
60
- BOUNDARY_COUNT: 1
61
- };
62
- const SCATTER = {
63
- /** Marks drawn before deterministic sampling kicks in. */
64
- MAX_POINTS: 2e3,
65
- MIN_SYMBOL_SIZE: 6,
66
- MAX_SYMBOL_SIZE: 28,
67
- /** Symbol size used when no point carries a weight. */
68
- BASE_SYMBOL_SIZE: 10
69
- };
70
- const GROUPED_BAR = {
71
- /**
72
- * Grid margins. `containLabel` reserves room for the tick labels only, so the
73
- * value-axis name and the legend need their own margin or they get clipped.
74
- */
75
- GRID_MARGIN: {
76
- BASE: 8,
77
- TOP: 16,
78
- RIGHT: 16,
79
- /** Extra left margin for a vertical value-axis name. */
80
- VALUE_NAME_Y: 34,
81
- /** Extra bottom margin for a horizontal value-axis name (`invertAxis`). */
82
- VALUE_NAME_X: 23,
83
- LEGEND: 30
84
- },
85
- /** Distance from the value axis line to its name. */
86
- AXIS_NAME_GAP: { X: 28, Y: 38 },
87
- /** Raises a real `0` to a visible bar, so it is not mistaken for a gap. */
88
- MIN_BAR_HEIGHT: 2,
89
- /** Diameter of the colour dot before each tooltip line. */
90
- TOOLTIP_MARKER_SIZE: 10,
91
- /** Space between the tooltip colour dot and the series name. */
92
- TOOLTIP_MARKER_GAP: 4
93
- };
94
- const RANGE_SLIDER = {
95
- DEFAULT_STEP: 1
96
- };
97
- const GEO_MAP = {
98
- /** Markers drawn before deterministic sampling kicks in. */
99
- MAX_POINTS: 2e3,
100
- MIN_MARKER_RADIUS: 4,
101
- MAX_MARKER_RADIUS: 18,
102
- /** Radius used when no point carries a weight. */
103
- BASE_MARKER_RADIUS: 8,
104
- /** Extra radius on a selected marker, so colour is never the only cue. */
105
- SELECTED_RADIUS_BOOST: 3,
106
- MARKER_STROKE_WIDTH: 1,
107
- SELECTED_STROKE_WIDTH: 3,
108
- MARKER_FILL_OPACITY: 0.7,
109
- /** Fallback view when there is nothing to fit to (roughly central Spain). */
110
- DEFAULT_CENTER: [40.4168, -3.7038],
111
- DEFAULT_ZOOM: 13,
112
- /** `fitBounds` on a single point collapses to max zoom; this caps it. */
113
- SINGLE_POINT_ZOOM: 14,
114
- FIT_BOUNDS_PADDING: [24, 24]
115
- };
116
- const BASEMAP_TILES = {
117
- light: "https://basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}{r}.png",
118
- dark: "https://basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}{r}.png",
119
- attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>'
120
- };
121
- const HEATMAP_GROUPED_HEADER_ROWS = 2;
122
- exports.BASEMAP_TILES = BASEMAP_TILES;
123
- exports.CHART_COLORS = CHART_COLORS;
124
- exports.CHART_MODAL = CHART_MODAL;
125
- exports.CONTEXT_MENU_MARGIN = CONTEXT_MENU_MARGIN;
126
- exports.COUNTERS_PAGE_SIZE = COUNTERS_PAGE_SIZE;
127
- exports.GEO_MAP = GEO_MAP;
128
- exports.GROUPED_BAR = GROUPED_BAR;
129
- exports.HEATMAP_GROUPED_HEADER_ROWS = HEATMAP_GROUPED_HEADER_ROWS;
130
- exports.ICON_SIZE = ICON_SIZE;
131
- exports.KEYBOARD_STEP = KEYBOARD_STEP;
132
- exports.MAX_CATEGORIES = MAX_CATEGORIES;
133
- exports.MAX_SANKEY_NODES = MAX_SANKEY_NODES;
134
- exports.MAX_SERIES = MAX_SERIES;
135
- exports.MAX_SUBCATEGORIES = MAX_SUBCATEGORIES;
136
- exports.MIN_COLUMN_WIDTH = MIN_COLUMN_WIDTH;
137
- exports.PAGINATION = PAGINATION;
138
- exports.RANGE_SLIDER = RANGE_SLIDER;
139
- exports.SCATTER = SCATTER;
140
- exports.SIDEBAR = SIDEBAR;
141
- exports.SVG_STROKE_WIDTH = SVG_STROKE_WIDTH;
142
- exports.SVG_VIEWBOX = SVG_VIEWBOX;
143
- exports.TOAST_DURATION_MS = TOAST_DURATION_MS;
144
- exports.VIEWPORT_MARGIN = VIEWPORT_MARGIN;
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const root = "krc-root-XLK9Q";
4
+ const selected = "krc-selected-1CnTu";
5
+ const sm = "krc-sm-MR9Wa";
6
+ const md = "krc-md-Q8uX7";
7
+ const lg = "krc-lg-bMnPn";
8
+ const styles = {
9
+ root,
10
+ selected,
11
+ sm,
12
+ md,
13
+ lg
14
+ };
15
+ exports.default = styles;
16
+ exports.lg = lg;
17
+ exports.md = md;
18
+ exports.root = root;
19
+ exports.selected = selected;
20
+ exports.sm = sm;
145
21
  //# sourceMappingURL=index64.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index64.cjs","sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the component library.\n * Centralises magic numbers used across components.\n */\n\n/** SVG icon rendered sizes (px — used as HTML/SVG attributes, not CSS). */\nexport const ICON_SIZE = {\n SM: 14,\n MD: 16,\n LG: 18,\n} as const;\n\n/** Standard SVG viewBox for 24×24 icon grid. */\nexport const SVG_VIEWBOX = '0 0 24 24';\n\n/** Standard SVG stroke width. */\nexport const SVG_STROKE_WIDTH = 2;\n\n/** Keyboard accessibility step (percentage points per arrow press). */\nexport const KEYBOARD_STEP = 2;\n\n/** Viewport safety margin (px — used in JS calculations with DOM APIs). */\nexport const VIEWPORT_MARGIN = 32;\n\n/** ContextMenu viewport margin (px). */\nexport const CONTEXT_MENU_MARGIN = 10;\n\n/** ChartExpandModal dimension constraints (px — used with window.innerWidth). */\nexport const CHART_MODAL = {\n MIN_WIDTH: 960,\n MIN_HEIGHT: 480,\n MAX_WIDTH: 2400,\n MAX_HEIGHT: 1300,\n DEFAULT_WIDTH: 1500,\n DEFAULT_HEIGHT: 820,\n FALLBACK_WIDTH: 1400,\n FALLBACK_HEIGHT: 800,\n} as const;\n\n/** Maximum Sankey nodes before truncation warning. */\nexport const MAX_SANKEY_NODES = 150;\n\n/** Maximum stacked series before \"Other\" aggregation. */\nexport const MAX_SERIES = 20;\n\n/** Maximum categories in stacked bar chart. */\nexport const MAX_CATEGORIES = 20;\n\n/** Maximum subcategories per category. */\nexport const MAX_SUBCATEGORIES = 10;\n\n/** Time range preset durations in milliseconds. */\nexport const TIME_PRESET_MS = {\n '1h': 3_600_000,\n '6h': 21_600_000,\n '24h': 86_400_000,\n '7d': 604_800_000,\n '30d': 2_592_000_000,\n} as const;\n\n/** Default chart color palette. */\nexport const CHART_COLORS = [\n '#FF6B5A',\n '#5B8DEF',\n '#4ECDC4',\n '#F7B731',\n '#A55EEA',\n '#26DE81',\n '#FC5C65',\n '#45AAF2',\n '#FD9644',\n '#2BCBBA',\n '#D1D8E0',\n '#778CA3',\n '#EB3B5A',\n '#3867D6',\n '#20BF6B',\n '#F7B731',\n '#8854D0',\n '#0FB9B1',\n '#FA8231',\n '#4B6584',\n] as const;\n\n/** Minimum column width for resizable tables (px — used in JS calculations). */\nexport const MIN_COLUMN_WIDTH = 40;\n\n/** Sidebar dimension constants (px — used as inline styles). */\nexport const SIDEBAR = {\n WIDTH: 240,\n COLLAPSED_WIDTH: 80,\n} as const;\n\n/** Counters analysis pagination. */\nexport const COUNTERS_PAGE_SIZE = 100;\n\n/** Default time a toast stays visible before auto-dismiss (ms). */\nexport const TOAST_DURATION_MS = 3200;\n\n/** Pagination page-range defaults. */\nexport const PAGINATION = {\n /** Page numbers shown on each side of the current page. */\n SIBLING_COUNT: 1,\n /** Page numbers pinned at the first/last boundaries. */\n BOUNDARY_COUNT: 1,\n} as const;\n\n/** ScatterChartCard mark cap and symbol radii (px — echarts canvas attributes, not CSS). */\nexport const SCATTER = {\n /** Marks drawn before deterministic sampling kicks in. */\n MAX_POINTS: 2000,\n MIN_SYMBOL_SIZE: 6,\n MAX_SYMBOL_SIZE: 28,\n /** Symbol size used when no point carries a weight. */\n BASE_SYMBOL_SIZE: 10,\n} as const;\n\n/** GroupedBarChartCard layout (px — echarts canvas attributes, not CSS). */\nexport const GROUPED_BAR = {\n /**\n * Grid margins. `containLabel` reserves room for the tick labels only, so the\n * value-axis name and the legend need their own margin or they get clipped.\n */\n GRID_MARGIN: {\n BASE: 8,\n TOP: 16,\n RIGHT: 16,\n /** Extra left margin for a vertical value-axis name. */\n VALUE_NAME_Y: 34,\n /** Extra bottom margin for a horizontal value-axis name (`invertAxis`). */\n VALUE_NAME_X: 23,\n LEGEND: 30,\n },\n /** Distance from the value axis line to its name. */\n AXIS_NAME_GAP: { X: 28, Y: 38 },\n /** Raises a real `0` to a visible bar, so it is not mistaken for a gap. */\n MIN_BAR_HEIGHT: 2,\n /** Diameter of the colour dot before each tooltip line. */\n TOOLTIP_MARKER_SIZE: 10,\n /** Space between the tooltip colour dot and the series name. */\n TOOLTIP_MARKER_GAP: 4,\n} as const;\n\n/** RangeSlider defaults. */\nexport const RANGE_SLIDER = {\n DEFAULT_STEP: 1,\n} as const;\n\n/** GeoMapCard marker caps and dimensions (px — Leaflet SVG attributes, not CSS). */\nexport const GEO_MAP = {\n /** Markers drawn before deterministic sampling kicks in. */\n MAX_POINTS: 2000,\n MIN_MARKER_RADIUS: 4,\n MAX_MARKER_RADIUS: 18,\n /** Radius used when no point carries a weight. */\n BASE_MARKER_RADIUS: 8,\n /** Extra radius on a selected marker, so colour is never the only cue. */\n SELECTED_RADIUS_BOOST: 3,\n MARKER_STROKE_WIDTH: 1,\n SELECTED_STROKE_WIDTH: 3,\n MARKER_FILL_OPACITY: 0.7,\n /** Fallback view when there is nothing to fit to (roughly central Spain). */\n DEFAULT_CENTER: [40.4168, -3.7038],\n DEFAULT_ZOOM: 13,\n /** `fitBounds` on a single point collapses to max zoom; this caps it. */\n SINGLE_POINT_ZOOM: 14,\n FIT_BOUNDS_PADDING: [24, 24],\n} as const;\n\n/**\n * CARTO basemaps: deliberately muted so the markers carry the reading. CARTO\n * requires an API key (`?key=`, see `GeoMapCard.basemapKey`); without one it still\n * answers 200, with \"API KEY REQUIRED\" painted into every tile.\n */\nexport const BASEMAP_TILES = {\n light: 'https://basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}{r}.png',\n dark: 'https://basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}{r}.png',\n attribution:\n '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors ' +\n '&copy; <a href=\"https://carto.com/attributions\">CARTO</a>',\n} as const;\n\n/** HeatmapMatrix header rows when column groups are in use (group row + column row). */\nexport const HEATMAP_GROUPED_HEADER_ROWS = 2;\n"],"names":[],"mappings":";;AAMO,MAAM,YAAY;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,MAAM,cAAc;AAGpB,MAAM,mBAAmB;AAGzB,MAAM,gBAAgB;AAGtB,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB;AAG5B,MAAM,cAAc;AAAA,EACzB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;AAGO,MAAM,mBAAmB;AAGzB,MAAM,aAAa;AAGnB,MAAM,iBAAiB;AAGvB,MAAM,oBAAoB;AAY1B,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,mBAAmB;AAGzB,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AACnB;AAGO,MAAM,qBAAqB;AAG3B,MAAM,oBAAoB;AAG1B,MAAM,aAAa;AAAA;AAAA,EAExB,eAAe;AAAA;AAAA,EAEf,gBAAgB;AAClB;AAGO,MAAM,UAAU;AAAA;AAAA,EAErB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,iBAAiB;AAAA;AAAA,EAEjB,kBAAkB;AACpB;AAGO,MAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EAKzB,aAAa;AAAA,IACX,MAAM;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA;AAAA,IAEP,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA,IACd,QAAQ;AAAA,EAAA;AAAA;AAAA,EAGV,eAAe,EAAE,GAAG,IAAI,GAAG,GAAA;AAAA;AAAA,EAE3B,gBAAgB;AAAA;AAAA,EAEhB,qBAAqB;AAAA;AAAA,EAErB,oBAAoB;AACtB;AAGO,MAAM,eAAe;AAAA,EAC1B,cAAc;AAChB;AAGO,MAAM,UAAU;AAAA;AAAA,EAErB,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,mBAAmB;AAAA;AAAA,EAEnB,oBAAoB;AAAA;AAAA,EAEpB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA;AAAA,EAErB,gBAAgB,CAAC,SAAS,OAAO;AAAA,EACjC,cAAc;AAAA;AAAA,EAEd,mBAAmB;AAAA,EACnB,oBAAoB,CAAC,IAAI,EAAE;AAC7B;AAOO,MAAM,gBAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aACE;AAEJ;AAGO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index64.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}