@sme.up/ketchup2 2.9.0 → 2.11.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 (384) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
  2. package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
  3. package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
  5. package/dist/assets/svg/magnify-minus.svg +1 -0
  6. package/dist/assets/svg/magnify-plus.svg +1 -0
  7. package/dist/basic-components/button/button-types.d.ts +2 -2
  8. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  9. package/dist/basic-components/cell/cell-types.d.ts +15 -6
  10. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  11. package/dist/basic-components/cell/cell-utils.d.ts +10 -4
  12. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  14. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +13 -0
  16. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  17. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  18. package/dist/basic-components/date-picker/date-picker-types.d.ts +6 -2
  19. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  20. package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
  21. package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
  22. package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
  23. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  24. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  27. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  28. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  29. package/dist/basic-components/text/text-types.d.ts +3 -1
  30. package/dist/basic-components/text/text-types.d.ts.map +1 -1
  31. package/dist/basic-components/text/text.d.ts.map +1 -1
  32. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  33. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  34. package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
  35. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  36. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  37. package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
  38. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  39. package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
  40. package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
  41. package/dist/channel-CcHUzwZl.js +5 -0
  42. package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
  43. package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
  44. package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
  45. package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
  46. package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
  47. package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
  48. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  49. package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
  50. package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
  51. package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
  52. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  53. package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
  54. package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
  55. package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
  56. package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
  57. package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
  58. package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
  59. package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
  60. package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
  61. package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
  62. package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
  63. package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
  64. package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
  65. package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
  66. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  67. package/dist/components/box-list/box-list.d.ts.map +1 -1
  68. package/dist/components/calendar/calendar-available-height.d.ts +14 -0
  69. package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
  70. package/dist/components/calendar/calendar-types.d.ts +49 -4
  71. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  72. package/dist/components/calendar/calendar-utils.d.ts +160 -16
  73. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  74. package/dist/components/calendar/calendar.d.ts.map +1 -1
  75. package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
  76. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
  77. package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
  78. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  79. package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
  80. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
  81. package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
  82. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  83. package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
  84. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
  85. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
  86. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
  87. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
  88. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
  89. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
  90. package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
  91. package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
  92. package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
  93. package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
  94. package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
  95. package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
  96. package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
  97. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
  98. package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
  99. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table-types.d.ts +206 -38
  101. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  102. package/dist/components/data-table/data-table.d.ts.map +1 -1
  103. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
  104. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  105. package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
  106. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
  107. package/dist/components/data-table/footer/footer-types.d.ts +23 -6
  108. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  109. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  110. package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
  111. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  112. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  113. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
  114. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  115. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
  116. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
  117. package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
  118. package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
  119. package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
  120. package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
  121. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  122. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
  123. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
  124. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
  125. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
  126. package/dist/components/data-table/header/header-types.d.ts +37 -21
  127. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  128. package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
  129. package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
  130. package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
  131. package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
  132. package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
  133. package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
  134. package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
  135. package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
  136. package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
  137. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
  138. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  139. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  140. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
  141. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  142. package/dist/components/data-table/state/datatable-state.d.ts +15 -8
  143. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  144. package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
  145. package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
  146. package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
  147. package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
  148. package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
  149. package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
  150. package/dist/components/drawer/drawer.d.ts.map +1 -1
  151. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
  152. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
  153. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
  154. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
  155. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
  156. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
  157. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
  158. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
  159. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
  160. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
  161. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
  162. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
  163. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
  164. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
  165. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
  166. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
  167. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
  168. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
  169. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
  170. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
  171. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
  172. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
  173. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
  174. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
  175. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
  176. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
  177. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
  178. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
  179. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
  180. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
  181. package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
  182. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
  183. package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
  184. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
  185. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
  186. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
  187. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
  188. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
  189. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
  190. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
  191. package/dist/components/input-panel/assets/data.d.ts +1 -0
  192. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  193. package/dist/components/input-panel/input-panel-types.d.ts +7 -1
  194. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  195. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  196. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  197. package/dist/components/json-form/document-adapter.test.d.ts +2 -0
  198. package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
  199. package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
  200. package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
  201. package/dist/components/json-form/model/document-adapter.d.ts +54 -0
  202. package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
  203. package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
  204. package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
  205. package/dist/components/json-form/model/json-pointer.d.ts +20 -0
  206. package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
  207. package/dist/components/json-form/model/native-json-types.d.ts +5 -0
  208. package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
  209. package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
  210. package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
  211. package/dist/components/json-form/rule-controller.test.d.ts +2 -0
  212. package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
  213. package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
  214. package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
  215. package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
  216. package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
  217. package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
  218. package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
  219. package/dist/components/pdf/pdf-types.d.ts +17 -2
  220. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  221. package/dist/components/pdf/pdf-utils.d.ts +30 -1
  222. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  223. package/dist/components/pdf/pdf.d.ts.map +1 -1
  224. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  225. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  226. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
  227. package/dist/context/interaction-context.d.ts +16 -0
  228. package/dist/context/interaction-context.d.ts.map +1 -0
  229. package/dist/context/test-utils.d.ts.map +1 -1
  230. package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
  231. package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
  232. package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
  233. package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
  234. package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
  235. package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
  236. package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
  237. package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
  238. package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
  239. package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
  240. package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
  241. package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
  242. package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
  243. package/dist/echarts-C7ehbnCk.js +15485 -0
  244. package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
  245. package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
  246. package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
  247. package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
  248. package/dist/functional-components/badge/badge-assets.d.ts +1 -0
  249. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  250. package/dist/functional-components/badge/badge-utils.d.ts +5 -0
  251. package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
  252. package/dist/functional-components/badge/badge.d.ts.map +1 -1
  253. package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
  254. package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
  255. package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
  256. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  257. package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
  258. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
  259. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  260. package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
  261. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
  262. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  263. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  264. package/dist/functional-components/row/row-types.d.ts +50 -1
  265. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  266. package/dist/functional-components/row/row.d.ts.map +1 -1
  267. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
  268. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
  269. package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
  270. package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
  271. package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
  272. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
  273. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
  274. package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
  275. package/dist/hooks/useFloating.d.ts.map +1 -1
  276. package/dist/hooks/useVirtualListScroll.d.ts +14 -2
  277. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  278. package/dist/index.d.ts +5 -3
  279. package/dist/index.d.ts.map +1 -1
  280. package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
  281. package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
  282. package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
  283. package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
  284. package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
  285. package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
  286. package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
  287. package/dist/ketchup2.css +1 -1
  288. package/dist/ketchup2.es.js +25778 -68770
  289. package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
  290. package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
  291. package/dist/locale/en/translation.json.d.ts +40 -4
  292. package/dist/locale/it/translation.json.d.ts +40 -4
  293. package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
  294. package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
  295. package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
  296. package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
  297. package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
  298. package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
  299. package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
  300. package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
  301. package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
  302. package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
  303. package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
  304. package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
  305. package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
  306. package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
  307. package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
  308. package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
  309. package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
  310. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
  311. package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
  312. package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
  313. package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
  314. package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
  315. package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
  316. package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
  317. package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
  318. package/dist/types/data-structures.d.ts +16 -1
  319. package/dist/types/data-structures.d.ts.map +1 -1
  320. package/dist/types/global.d.ts +7 -2
  321. package/dist/types/global.d.ts.map +1 -1
  322. package/dist/types/translation.d.ts +40 -5
  323. package/dist/types/translation.d.ts.map +1 -1
  324. package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
  325. package/dist/utils/floating-layer.d.ts +11 -0
  326. package/dist/utils/floating-layer.d.ts.map +1 -0
  327. package/dist/utils/legacy.d.ts +7 -0
  328. package/dist/utils/legacy.d.ts.map +1 -1
  329. package/dist/utils/object-styles.d.ts +12 -0
  330. package/dist/utils/object-styles.d.ts.map +1 -0
  331. package/dist/utils/object-styles.test.d.ts +2 -0
  332. package/dist/utils/object-styles.test.d.ts.map +1 -0
  333. package/dist/utils/objects.d.ts +20 -1
  334. package/dist/utils/objects.d.ts.map +1 -1
  335. package/dist/utils/totals/totals-registry.d.ts +17 -0
  336. package/dist/utils/totals/totals-registry.d.ts.map +1 -0
  337. package/dist/utils/totals/totals-utils.d.ts +70 -7
  338. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  339. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  340. package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
  341. package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
  342. package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
  343. package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
  344. package/package.json +7 -5
  345. package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
  346. package/dist/channel-CuEby436.js +0 -5
  347. package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
  348. package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
  349. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
  350. package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
  351. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
  352. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
  353. package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
  354. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
  355. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
  356. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
  357. package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
  358. package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
  359. package/dist/components/echarts/echarts-graph.d.ts +0 -4
  360. package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
  361. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
  362. package/dist/dagre-D5csT9sx.js +0 -1934
  363. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
  364. package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
  365. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
  366. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
  367. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
  368. package/dist/hooks/useClickOutside.d.ts.map +0 -1
  369. package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
  370. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
  371. package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
  372. package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
  373. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
  374. package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
  375. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
  376. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
  377. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
  378. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
  379. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
  380. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
  381. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
  382. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
  383. package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
  384. /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
@@ -1,7 +1,13 @@
1
- import { InternalDataTable, SortObject } from '../data-table-types';
2
- export declare function useSortableDataTable(data: InternalDataTable, decimalSeparator: string, initialSort?: SortObject): {
3
- sortedRows: import('../data-table-types').internalRows[];
4
- sort: SortObject | undefined;
1
+ import { SortObject } from '../data-table-types';
2
+ /**
3
+ * Owns the sort criteria of the data table.
4
+ *
5
+ * The rows are sorted by the table itself, together with the filtering and the
6
+ * grouping: sorting here as well would sort every row twice on each render.
7
+ */
8
+ export declare function useSortableDataTable(initialSort?: SortObject[]): {
9
+ sort: SortObject[];
10
+ setSort: import('react').Dispatch<import('react').SetStateAction<SortObject[]>>;
5
11
  handleSort: (column: string) => void;
6
12
  };
7
13
  //# sourceMappingURL=useSortableTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSortableTable.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/sorting/useSortableTable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEnE,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,iBAAiB,EACvB,gBAAgB,EAAE,MAAM,EACxB,WAAW,CAAC,EAAE,UAAU;;;yBAaI,MAAM;EAgBnC"}
1
+ {"version":3,"file":"useSortableTable.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/sorting/useSortableTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,GAAE,UAAU,EAAO;;;yBAGrC,MAAM;EAiBnC"}
@@ -1,23 +1,30 @@
1
- import { DataTableState } from '../data-table-types';
1
+ import { DftTotalConfig } from '../../../utils/totals/totals-utils';
2
+ import { DataTableState, SortObject } from '../data-table-types';
2
3
  import { GroupDefinition } from '../grouping/grouping-types';
3
4
  /**
4
5
  * Defines the set of fragments needed to build the state.
5
6
  */
6
7
  export interface DataTableStateFragments {
7
8
  groups: GroupDefinition[];
8
- expandedGroups: Set<string>;
9
- DftSort?: string;
9
+ expandedGroups: Set<string> | undefined;
10
+ /** Row sort criteria, group criteria excluded. */
11
+ sort: SortObject[];
12
+ totals: DftTotalConfig[];
10
13
  }
11
14
  /**
12
15
  * Uses the dependencies to build a state object.
16
+ * `sort` must be the effective sort (group criteria first, then the row ones),
17
+ * so the state carries the grouping order as well.
13
18
  * @param fragments
14
19
  * @returns
15
20
  */
16
- export declare const createState: (fragments: DataTableStateFragments) => DataTableState;
21
+ export declare const buildState: (fragments: DataTableStateFragments) => DataTableState;
17
22
  /**
18
- * Destructures state into its fragments.
19
- * @param state
20
- * @returns
23
+ * Parses state into its fragments.
24
+ *
25
+ * A grouped column sorts its grouping, not the rows: its criterion is moved
26
+ * into the group definition, so `buildState` can persist the effective sort
27
+ * (`DftSort`) without duplicating the group criteria among the row sorts.
21
28
  */
22
- export declare const destructureState: (state: DataTableState) => DataTableStateFragments;
29
+ export declare const parseState: (state: DataTableState) => DataTableStateFragments;
23
30
  //# sourceMappingURL=datatable-state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datatable-state.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/state/datatable-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,uBAAuB,mBAQ7D,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,cAAc,KAAG,uBAMxD,CAAA"}
1
+ {"version":3,"file":"datatable-state.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/state/datatable-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EAEf,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAKhE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IACvC,kDAAkD;IAClD,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,MAAM,EAAE,cAAc,EAAE,CAAA;CACzB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GACrB,WAAW,uBAAuB,KACjC,cAKD,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,cAAc,KAAG,uBAclD,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { DataTableComponent } from '../data-table';
3
+ /**
4
+ * Controls shared by every Data Table stories file.
5
+ */
6
+ export declare const dataTableArgTypes: Meta<typeof DataTableComponent>["argTypes"];
7
+ //# sourceMappingURL=data-table-story-meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-story-meta.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/stories/data-table-story-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,IAAI,CAClC,OAAO,kBAAkB,CAC1B,CAAC,UAAU,CAkBX,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { DataTableImperativeHandle, InternalRows, SortObject } from './data-table-types';
2
+ import { GroupDefinition } from './grouping/grouping-types';
3
+ import { DftTotalConfig } from '../../utils/totals/totals-utils';
4
+ interface UseDataTableImperativeHandleParams {
5
+ /** Exposed API, owned by the consumer (webup toolbar, external callers). */
6
+ imperativeHandle?: React.RefObject<DataTableImperativeHandle>;
7
+ rows: InternalRows[];
8
+ groups: GroupDefinition[];
9
+ /** Currently expanded group ids, used as base for the by-depth operations. */
10
+ expandedGroups: Set<string>;
11
+ setGroups: (groups: GroupDefinition[]) => void;
12
+ setExpandedGroups: (ids: Set<string> | undefined) => void;
13
+ setTotals: (sorts: DftTotalConfig[]) => void;
14
+ setSort: (sorts: SortObject[]) => void;
15
+ }
16
+ /**
17
+ * Exposure layer: maps the matrix expand/collapse features onto the
18
+ * `DataTableImperativeHandle` API. Keyboard shortcuts and toolbar callbacks
19
+ * both end up here.
20
+ */
21
+ export declare const useDataTableImperativeHandle: ({ imperativeHandle, rows, groups, expandedGroups, setGroups, setExpandedGroups, setTotals, setSort, }: UseDataTableImperativeHandleParams) => DataTableImperativeHandle;
22
+ export {};
23
+ //# sourceMappingURL=useDataTableImperativeHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDataTableImperativeHandle.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/useDataTableImperativeHandle.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAEzB,YAAY,EACZ,UAAU,EACX,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAM3D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,UAAU,kCAAkC;IAC1C,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAA;IAC7D,IAAI,EAAE,YAAY,EAAE,CAAA;IACpB,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,8EAA8E;IAC9E,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAA;IAC9C,iBAAiB,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,KAAK,IAAI,CAAA;IACzD,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,CAAA;IAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;CACvC;AAED;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GAAI,uGAS1C,kCAAkC,8BAwCpC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { DataTableImperativeHandle } from './data-table-types';
2
+ interface UseDataTableShortcutsParams {
3
+ /** The table container: shortcuts are handled when the key comes from inside it. */
4
+ containerRef: React.RefObject<HTMLElement | null>;
5
+ /** The exposed matrix API: the shortcuts resolve to these methods. */
6
+ api: DataTableImperativeHandle;
7
+ }
8
+ /**
9
+ * Component owned function keys:
10
+ * - F9 / F10: expand or collapse every group
11
+ * - Ctrl+F9 / Ctrl+F10: expand or collapse one nesting level
12
+ *
13
+ * The event is stopped so an outer shortcut dispatcher (webup) does not run
14
+ * the same action twice; when the focus is outside the table, the outer
15
+ * dispatcher still reaches the exposed API.
16
+ */
17
+ export declare const useDataTableShortcuts: ({ containerRef, api, }: UseDataTableShortcutsParams) => void;
18
+ export {};
19
+ //# sourceMappingURL=useDataTableShortcuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDataTableShortcuts.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/useDataTableShortcuts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAE9D,UAAU,2BAA2B;IACnC,oFAAoF;IACpF,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACjD,sEAAsE;IACtE,GAAG,EAAE,yBAAyB,CAAA;CAC/B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAI,wBAGnC,2BAA2B,SAwB7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAe,MAAM,gBAAgB,CAAA;AAOzD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwKxC,CAAA"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAe,MAAM,gBAAgB,CAAA;AAOzD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6KxC,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { ChartBuild, ChartBuildArgs } from '../data/echarts-graph-frame';
2
+ /**
3
+ * Gaussian chart: the normal distribution of the values of the series of type
4
+ * Gaussian, alone or together with the other series (bars, lines, points).
5
+ * Mixed with a single other series, its rows are ordered "like a mountain".
6
+ */
7
+ export declare function buildGaussianChart(args: ChartBuildArgs): ChartBuild;
8
+ /**
9
+ * Candlestick chart from the series open, close, low and high. Rising
10
+ * candles (close over open) use the success color, falling ones the danger
11
+ * color.
12
+ */
13
+ export declare function buildCandleChart(args: ChartBuildArgs): ChartBuild;
14
+ /**
15
+ * Calendar chart: a heatmap of the days of the year (one calendar for every
16
+ * year of the data). The value of a day is the sum of its rows.
17
+ */
18
+ export declare function buildCalendarChart(args: ChartBuildArgs): ChartBuild;
19
+ /** Sankey chart: flows from the axis column to the target column. */
20
+ export declare function buildSankeyChart(args: ChartBuildArgs): ChartBuild;
21
+ /**
22
+ * Map chart: the regions of the map, colored by the value of the series (a
23
+ * scale of colors) or by the hex color found in the data.
24
+ */
25
+ export declare function buildMapChart(args: ChartBuildArgs): ChartBuild;
26
+ //# sourceMappingURL=echarts-graph-builders-advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-builders-advanced.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/builders/echarts-graph-builders-advanced.ts"],"names":[],"mappings":"AACA,OAAO,EAUL,KAAK,UAAU,EACf,KAAK,cAAc,EAEpB,MAAM,6BAA6B,CAAA;AA8BpC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAuMnE;AAID;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CA0FjE;AAmBD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAuHnE;AAID,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CA0EjE;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAgH9D"}
@@ -0,0 +1,17 @@
1
+ import { EChartsOption } from 'echarts';
2
+ import { ChartBuild, ChartBuildArgs } from '../data/echarts-graph-frame';
3
+ export { buildCategoryLabel, escapeHtml, isCompact, type ChartBuild, type ChartBuildArgs, type ChartClickParams, type ChartSize, } from '../data/echarts-graph-frame';
4
+ /**
5
+ * Build the ECharts option of a chart, and the way to read a click on it.
6
+ * The first type of the options chooses the kind of chart.
7
+ *
8
+ * Pure function: it neither reads the DOM nor calls ECharts.
9
+ * It expects data that can be drawn: check `getEmptyReason` before calling.
10
+ */
11
+ /**
12
+ * Option of a chart that can't be drawn (no data): only the title, so that the
13
+ * chart is still recognizable. The title has the same style as in the chart.
14
+ */
15
+ export declare function buildTitleOption(input: ChartBuildArgs): EChartsOption;
16
+ export declare function buildChart(input: ChartBuildArgs): ChartBuild;
17
+ //# sourceMappingURL=echarts-graph-builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-builders.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/builders/echarts-graph-builders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAId,MAAM,SAAS,CAAA;AAQhB,OAAO,EAaL,KAAK,UAAU,EACf,KAAK,cAAc,EAEpB,MAAM,6BAA6B,CAAA;AAyBpC,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,SAAS,GACf,MAAM,6BAA6B,CAAA;AAo5BpC;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,aAAa,CASrE;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CA4B5D"}
@@ -0,0 +1,151 @@
1
+ import { ResolvedChaOptions } from '../echarts-graph-types';
2
+ import { ChartSeriesData, ChartTable, ValueRange } from './echarts-graph-utils';
3
+ /** The four series of a Candle chart. */
4
+ export type CandleSeries = {
5
+ open: ChartSeriesData;
6
+ close: ChartSeriesData;
7
+ low: ChartSeriesData;
8
+ high: ChartSeriesData;
9
+ };
10
+ /**
11
+ * Find open, close, low and high among the series: by the name or the title
12
+ * of the column (case-insensitive), otherwise by position in this order.
13
+ * @returns the series, or undefined if there are less than four.
14
+ */
15
+ export declare function getCandleSeries(table: ChartTable): CandleSeries | undefined;
16
+ /** A day of a Calendar chart. */
17
+ export type CalendarDay = {
18
+ /** ISO date, `YYYY-MM-DD`. */
19
+ date: string;
20
+ /** Sum of the values of the rows of the day. */
21
+ value: number;
22
+ /** Indexes of the rows of the day, in `data.rows`. */
23
+ rowIndexes: number[];
24
+ };
25
+ /** Data of a Calendar chart. */
26
+ export type CalendarData = {
27
+ /** Days with a value, in chronological order. */
28
+ days: CalendarDay[];
29
+ /** Years to draw, in ascending order. */
30
+ years: number[];
31
+ /** The series that gives the value of the days. */
32
+ series: ChartSeriesData;
33
+ min: number;
34
+ max: number;
35
+ };
36
+ /**
37
+ * Read a Calendar chart: the date of every row and the value of the day.
38
+ *
39
+ * The date column is, in order: `DateAxis`, `Axe`, a column named Date or
40
+ * Data, the first column of type date. The value is the series named Value or
41
+ * Valore, otherwise the first series with values. Rows of the same day are
42
+ * summed.
43
+ * @returns the data, or undefined if there are no dates or no values.
44
+ */
45
+ export declare function buildCalendarData(table: ChartTable, options: Pick<ResolvedChaOptions, "DateAxis" | "Axe">): CalendarData | undefined;
46
+ /** A flow of a Sankey chart. */
47
+ export type SankeyLink = {
48
+ source: string;
49
+ target: string;
50
+ value: number;
51
+ /** First row of the flow, in `data.rows`. */
52
+ rowIndex: number;
53
+ };
54
+ /** Data of a Sankey chart. */
55
+ export type SankeyData = {
56
+ nodes: string[];
57
+ links: SankeyLink[];
58
+ /** First row where each node appears. */
59
+ nodeRows: Map<string, number>;
60
+ /** The series that holds the weight of the flows. */
61
+ weight: ChartSeriesData;
62
+ };
63
+ /**
64
+ * Read a Sankey chart: the axis column is the source, then the first
65
+ * non numeric series is the target and the first numeric one the weight (if
66
+ * the series are of other kinds, the first and the second are used).
67
+ *
68
+ * Flows with the same source and target are summed; flows without a name or
69
+ * a positive weight are skipped, and so are the ones that would close a
70
+ * cycle (a Sankey diagram can't have cycles).
71
+ * @returns the data, or undefined if there is no flow.
72
+ */
73
+ export declare function buildSankeyData(table: ChartTable): SankeyData | undefined;
74
+ /** A region of a map. */
75
+ export type GeoRegion = {
76
+ name: string;
77
+ /** ISO 3166-1 alpha-2 code, when the map has it. */
78
+ iso?: string;
79
+ };
80
+ /** A GeoJSON, as an object. */
81
+ export type GeoJson = Record<string, unknown>;
82
+ /**
83
+ * Read a map received as an object or as a JSON string.
84
+ * @returns the GeoJSON, or undefined if it is missing or not valid.
85
+ */
86
+ export declare function parseGeoJson(map: GeoJson | string | undefined | null): GeoJson | undefined;
87
+ /** Regions of a GeoJSON: `properties.name` and `properties.iso_a2`. */
88
+ export declare function getGeoRegions(geo: GeoJson): GeoRegion[];
89
+ /** Proportions of a map. */
90
+ export type GeoAspect = {
91
+ /** Scale of latitude vs longitude (cos of the central latitude). */
92
+ aspectScale: number;
93
+ /** Real width / height of the map, `aspectScale` included. */
94
+ ratio: number;
95
+ };
96
+ /**
97
+ * Real proportions of a GeoJSON (coordinates as longitude / latitude), needed
98
+ * to draw the map without stretching it.
99
+ */
100
+ export declare function getGeoAspect(geo: GeoJson): GeoAspect | undefined;
101
+ /** What a Map chart shows for a region. */
102
+ export type MapEntry = {
103
+ /** Name of the region in the map. */
104
+ name: string;
105
+ /** Sum of the numeric values. */
106
+ value?: number;
107
+ /** Color of the region, when a cell contains a hex color. */
108
+ color?: string;
109
+ /** First row of the region, in `data.rows`. */
110
+ rowIndex: number;
111
+ };
112
+ /** Data of a Map chart. */
113
+ export type MapData = {
114
+ entries: MapEntry[];
115
+ hasValues: boolean;
116
+ min: number;
117
+ max: number;
118
+ };
119
+ /**
120
+ * Read a Map chart: the axis column holds the name (or the ISO code) of the
121
+ * region, the series hold either a number (the value of the region) or a hex
122
+ * color (its color).
123
+ */
124
+ export declare function buildMapData(table: ChartTable, regions: GeoRegion[], background?: string): MapData;
125
+ /** What the curve of a Gaussian series is made of. */
126
+ export type GaussianInput = {
127
+ /** The values the normal distribution is calculated on. */
128
+ values: number[];
129
+ /** The same values, each one with the name it is listed with. */
130
+ items: {
131
+ name: string;
132
+ value: number;
133
+ }[];
134
+ };
135
+ /**
136
+ * The values of a Gaussian series. With the `Ranges` option, the number of
137
+ * rows whose value is in each range. As in `kup-echart`, when the column is not
138
+ * numeric (for example a location) the values are the number of rows for each
139
+ * distinct value of the column (the articles of each location); otherwise they
140
+ * are the values of the rows, with the name of their row.
141
+ */
142
+ export declare function getGaussianInput(table: ChartTable, series: ChartSeriesData, ranges?: ValueRange[]): GaussianInput;
143
+ /** Why the chart can't be drawn. */
144
+ export type EmptyReason = "noData" | "mapMissing" | "invalidOption";
145
+ /**
146
+ * Why the chart can't be drawn, if so.
147
+ * - `mapMissing`: a Map chart without a valid map.
148
+ * - `noData`: no rows, no series, or no value to draw.
149
+ */
150
+ export declare function getEmptyReason(options: ResolvedChaOptions, table: ChartTable, map?: GeoJson): EmptyReason | undefined;
151
+ //# sourceMappingURL=echarts-graph-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-data.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-data.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,kBAAkB,E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2BAA2B;AAC3B,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,SAAS,EAAE,EACpB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CA0CT;AAID,sDAAsD;AACtD,MAAM,MAAM,aAAa,GAAG;IAC1B,2DAA2D;IAC3D,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,iEAAiE;IACjE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACzC,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,eAAe,EACvB,MAAM,GAAE,UAAU,EAAO,GACxB,aAAa,CA2Bf;AAID,oCAAoC;AACpC,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,GAAG,eAAe,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,UAAU,EACjB,GAAG,CAAC,EAAE,OAAO,GACZ,WAAW,GAAG,SAAS,CAsCzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=echarts-graph-data.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-data.test.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-data.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,164 @@
1
+ import { EChartsOption, TitleComponentOption } from 'echarts';
2
+ import { DataColumn, DataRow } from '../../../types/data-structures';
3
+ import { GeoAspect, GeoRegion } from './echarts-graph-data';
4
+ import { EchartsGraphTheme } from '../theme/echarts-graph-theme';
5
+ import { EchartsGraphClickPayload, ResolvedChaOptions } from '../echarts-graph-types';
6
+ import { ChartTable } from './echarts-graph-utils';
7
+ /** Size, in pixels, of the container of the chart. */
8
+ export type ChartSize = {
9
+ width: number;
10
+ height: number;
11
+ };
12
+ /** Below this width the legend moves to the bottom and the fonts shrink. */
13
+ export declare const COMPACT_WIDTH = 400;
14
+ /** Below this height the fonts shrink and the values on the series are hidden. */
15
+ export declare const COMPACT_HEIGHT = 200;
16
+ /** Below this width the values on the series are hidden. */
17
+ export declare const MIN_WIDTH_FOR_MARKS = 300;
18
+ /**
19
+ * The labels of the axes stay inside the grid (`grid.containLabel` is
20
+ * deprecated in ECharts 6: this is the equivalent).
21
+ */
22
+ export declare const GRID_CONTAIN_LABEL: {
23
+ readonly outerBoundsMode: "same";
24
+ readonly outerBoundsContain: "axisLabel";
25
+ };
26
+ export declare const MAX_LABEL_LENGTH = 14;
27
+ /** Parameters of a click on an element of the chart (subset of ECharts'). */
28
+ /** `dataType` tells the edges from the nodes of a Sankey chart. */
29
+ export type ChartClickParams = {
30
+ seriesIndex?: number;
31
+ dataIndex?: number;
32
+ dataType?: string;
33
+ /** Name of the series: the title of its column. */
34
+ seriesName?: string;
35
+ };
36
+ /** The ECharts option, and how to read a click on it. */
37
+ export type ChartBuild = {
38
+ option: EChartsOption;
39
+ /** Convert the click of ECharts to the payload of the callback. */
40
+ resolveClick: (params: ChartClickParams) => EchartsGraphClickPayload | undefined;
41
+ };
42
+ /** Arguments of the builders. */
43
+ export type ChartBuildArgs = {
44
+ table: ChartTable;
45
+ options: ResolvedChaOptions;
46
+ theme: EchartsGraphTheme;
47
+ size: ChartSize;
48
+ locale?: string;
49
+ animate?: boolean;
50
+ /** The map registered in ECharts, for the Map chart. */
51
+ map?: {
52
+ name: string;
53
+ regions: GeoRegion[];
54
+ aspect?: GeoAspect;
55
+ };
56
+ };
57
+ /** Escape a text to put it safely inside the HTML of a tooltip. */
58
+ export declare function escapeHtml(text: string): string;
59
+ /** Whether the chart is compact (small container). */
60
+ export declare const isCompact: (size: ChartSize) => boolean;
61
+ /** Shorten a label to the given number of characters. */
62
+ export declare const truncate: (text: string, max: number) => string;
63
+ /**
64
+ * Style of the labels of the category axis, adapted to the available space:
65
+ * horizontal if they fit, then rotated, then truncated.
66
+ *
67
+ * With an explicit angle the labels are rotated by that angle (truncated when
68
+ * too long).
69
+ */
70
+ export declare function buildCategoryLabel(categories: string[], size: ChartSize, angle?: number, pxPerChar?: number): {
71
+ interval?: number | "auto";
72
+ rotate: number;
73
+ width?: number;
74
+ overflow?: "truncate";
75
+ };
76
+ export type TooltipParam = {
77
+ seriesName?: string;
78
+ seriesIndex?: number;
79
+ name?: string;
80
+ value?: unknown;
81
+ marker?: string;
82
+ percent?: number;
83
+ axisValueLabel?: string;
84
+ axisValue?: number | string;
85
+ dataType?: string;
86
+ data?: unknown;
87
+ };
88
+ /**
89
+ * Layout shared by all the charts: title, legend, colors, text, number
90
+ * format and the margins left free for title and legend.
91
+ */
92
+ export declare function buildFrame(args: ChartBuildArgs, legendNames: string[]): {
93
+ compact: boolean;
94
+ fontSize: number;
95
+ format: (value: unknown) => string;
96
+ formatPercent: (value: unknown) => string;
97
+ text: {
98
+ color: string;
99
+ fontFamily: string;
100
+ fontSize: number;
101
+ };
102
+ colors: string[];
103
+ title: TitleComponentOption;
104
+ legend: import('echarts').ScrollableLegendComponentOption;
105
+ legendVisible: boolean;
106
+ margins: {
107
+ top: number;
108
+ bottom: number;
109
+ left: number;
110
+ right: number;
111
+ };
112
+ tooltip: {
113
+ confine: boolean;
114
+ backgroundColor: string;
115
+ borderColor: string;
116
+ textStyle: {
117
+ color: string;
118
+ fontFamily: string;
119
+ fontSize: number;
120
+ };
121
+ };
122
+ plot: {
123
+ width: number;
124
+ height: number;
125
+ centerX: number;
126
+ centerY: number;
127
+ radius: number;
128
+ };
129
+ };
130
+ export type Frame = ReturnType<typeof buildFrame>;
131
+ /** Options common to all the charts. */
132
+ export declare function baseOption(args: ChartBuildArgs, frame: Frame): EChartsOption;
133
+ /**
134
+ * The column a click on a category refers to: the axis column, whose value is
135
+ * the clicked category (`x`). Without an axis, the column of the first series.
136
+ */
137
+ export declare function getCategoryColumn(table: ChartTable): {
138
+ column?: DataColumn;
139
+ columnIndex?: number;
140
+ };
141
+ /**
142
+ * Add to the payload of a click the column found by title: as in `kup-echart`,
143
+ * the first column whose title is the name of the clicked series (for Pie,
144
+ * Funnel and Map, the title of the axis column). When there is no such column
145
+ * (the series names of duplicated titles have a suffix) the payload is kept.
146
+ */
147
+ export declare function applyColumnByTitle(table: ChartTable, params: ChartClickParams, payload: EchartsGraphClickPayload): EchartsGraphClickPayload;
148
+ /**
149
+ * Name of the series of a chart of categories (Pie and Funnel): as in
150
+ * `kup-echart`, the title of the axis column, so that the click finds it.
151
+ */
152
+ export declare function getCategoryTitle(table: ChartTable): string;
153
+ /**
154
+ * Copy of the row with the grouped value in the cell of the first series, as
155
+ * `kup-echart` does: the original row only has its own value.
156
+ */
157
+ export declare function withGroupedValue(table: ChartTable, rowIndex: number, value: number | undefined): DataRow | undefined;
158
+ /** Click on a chart of aggregated categories (Pie and Funnel). */
159
+ export declare function resolveCategoryClick(table: ChartTable, categories: {
160
+ name: string;
161
+ value: number;
162
+ rowIndexes: number[];
163
+ }[]): (params: ChartClickParams) => EchartsGraphClickPayload | undefined;
164
+ //# sourceMappingURL=echarts-graph-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-frame.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-frame.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAEzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;A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AO,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgG/C;AAED,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAEjD,wCAAwC;AACxC,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAG,aAAa,CAU5E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG;IACpD,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CASA;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,wBAAwB,GAChC,wBAAwB,CAO1B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAG1D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,GAAG,SAAS,CAarB;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,IAE3D,QAAQ,gBAAgB,KAAG,wBAAwB,GAAG,SAAS,CAcxE"}
@@ -0,0 +1,26 @@
1
+ /** Default number of points of a normal distribution curve. */
2
+ export declare const NORMAL_DISTRIBUTION_POINTS = 201;
3
+ /**
4
+ * Normal (Gaussian) distribution of the values: the curve of the density,
5
+ * from a little before the lowest value to a little after the highest.
6
+ *
7
+ * @returns `[x, density]` points. A single value, or equal values, give a
8
+ * narrow curve around it; no values give no curve.
9
+ */
10
+ export declare function normalDistribution(values: number[], precision?: number): [number, number][];
11
+ /**
12
+ * Order the rows "like a mountain": the greatest value in the middle, the
13
+ * others alternating on its left and right. Empty values go to the edges.
14
+ *
15
+ * @returns the indexes of the values, in the new order.
16
+ */
17
+ export declare function mountainOrder(values: (number | null)[]): number[];
18
+ /**
19
+ * Trend line of the values: the least squares line over the position of the
20
+ * values (0, 1, 2, ...), with the empty values left out of the calculation.
21
+ *
22
+ * @returns the value of the line at every position, or undefined when there
23
+ * are less than two values to calculate it on.
24
+ */
25
+ export declare function linearTrend(values: (number | null)[]): number[] | undefined;
26
+ //# sourceMappingURL=echarts-graph-math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-math.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-math.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAE7C;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,SAA6B,GACrC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CA4BpB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,CAyBjE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,CAa3E"}
@@ -0,0 +1,42 @@
1
+ import { DataColumn, DataRow } from '../../../types/data-structures';
2
+ /**
3
+ * Parse a date value: ISO (`YYYY-MM-DD`, with an optional time), `YYYYMMDD`,
4
+ * or anything `Date` understands.
5
+ * @returns the date (local time, midnight when there is no time), or null.
6
+ */
7
+ export declare function parseDateValue(value: string | undefined | null): Date | null;
8
+ /**
9
+ * Parse a time value: `HH:mm`, `HH:mm:ss`, `HHmm` or `HHmmss`.
10
+ * @returns the seconds from midnight, or null.
11
+ */
12
+ export declare function parseTimeValue(value: string | undefined | null): number | null;
13
+ /** Time axis of a cartesian chart: the instant of every row. */
14
+ export type TimeAxisData = {
15
+ /** Instant (ms) of every row, `null` when the row has no valid date/time. */
16
+ timestamps: (number | null)[];
17
+ /** Indexes of the rows with a valid instant, in chronological order. */
18
+ order: number[];
19
+ hasDate: boolean;
20
+ hasTime: boolean;
21
+ /** The time column handles seconds (object `I1` with parameter `2`). */
22
+ hasSeconds: boolean;
23
+ };
24
+ /**
25
+ * Read the instant of every row from the columns of `DateAxis` and `TimeAxis`.
26
+ * With both columns the instant is the date at the time; with only the time
27
+ * column the day is the same for all the rows.
28
+ * The time column decides whether the times have seconds, as `kup-objects`
29
+ * `isTimeWithSeconds`.
30
+ * @returns the time axis, or undefined if no row has a valid instant.
31
+ */
32
+ export declare function buildTimeAxisData(options: {
33
+ DateAxis?: string;
34
+ TimeAxis?: string;
35
+ }, rows: DataRow[], columns?: DataColumn[]): TimeAxisData | undefined;
36
+ /**
37
+ * Format an instant for the axis and the tooltip, in the given locale.
38
+ * The year is always shown.
39
+ * With `withSeconds` the time has the seconds too.
40
+ */
41
+ export declare function formatTimestamp(timestamp: number, locale: string | undefined, hasDate: boolean, hasTime: boolean, withSeconds?: boolean): string;
42
+ //# sourceMappingURL=echarts-graph-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-time.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-time.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAIzE;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CA0B5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAC/B,MAAM,GAAG,IAAI,CAkBf;AAED,gEAAgE;AAChE,MAAM,MAAM,YAAY,GAAG;IACzB,6EAA6E;IAC7E,UAAU,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;IAC7B,wEAAwE;IACxE,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,wEAAwE;IACxE,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EACjD,IAAI,EAAE,OAAO,EAAE,EACf,OAAO,GAAE,UAAU,EAAO,GACzB,YAAY,GAAG,SAAS,CA8C1B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,WAAW,UAAQ,GAClB,MAAM,CAeR"}
@@ -0,0 +1,12 @@
1
+ import { EChartsCoreOption } from 'echarts/core';
2
+ import { DataTree } from '../../../types/data-structures';
3
+ /**
4
+ * The ECharts option of a `DataTree`: the first valid one found, looking at the
5
+ * first child of the tree and then at its descendants.
6
+ *
7
+ * **Security:** the option is not sanitized. JSON cannot carry functions, but
8
+ * ECharts renders a `tooltip.formatter` string as HTML: use only options that
9
+ * come from trusted data.
10
+ */
11
+ export declare function extractEchartsOption(tree: DataTree): EChartsCoreOption | null;
12
+ //# sourceMappingURL=echarts-graph-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-tree.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AA8BxE;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,GAAG,iBAAiB,GAAG,IAAI,CAG7E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=echarts-graph-tree.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-tree.test.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-tree.test.ts"],"names":[],"mappings":""}