@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
@@ -0,0 +1,197 @@
1
+ import { DataCell, DataColumn, DataRow, DataTable } from '../../../types/data-structures';
2
+ import { EchartsGraphFunction, EchartsGraphType, ChaOptions, ResolvedChaOptions } from '../echarts-graph-types';
3
+ /**
4
+ * Split a list of values separated by `|`, trimming and dropping the empty ones.
5
+ */
6
+ export declare function splitList(value: string | undefined | null): string[];
7
+ /** A range of values: both the ends are included. */
8
+ export type ValueRange = {
9
+ min: number;
10
+ max: number;
11
+ /** Name of the range, `min - max` as it was written. */
12
+ label: string;
13
+ };
14
+ /**
15
+ * Parse the `Ranges` option: `min;max` pairs separated by `|`
16
+ * (e.g. `20;39|40;54|55;99`). The pairs that are not valid are ignored; the
17
+ * ends are put in order when they are swapped.
18
+ */
19
+ export declare function parseRanges(value: string | undefined | null): ValueRange[];
20
+ /**
21
+ * Parse a numeric option (a suffix `px` is ignored).
22
+ * @returns the number, or undefined if the value is missing or not numeric.
23
+ */
24
+ export declare function parseNumber(value: string | undefined | null): number | undefined;
25
+ /**
26
+ * Convert a dimension option to a CSS value: a bare number is a number of
27
+ * pixels, any other CSS length (`px`, `%`, ...) is left unchanged.
28
+ * @returns the CSS value, or undefined if the value is missing or invalid.
29
+ */
30
+ export declare function parseDimension(value: string | undefined | null): string | undefined;
31
+ /**
32
+ * Normalize a type name (case-insensitive, legacy aliases such as `VBAR`,
33
+ * `CAL`, `GEO`, `CANDLESTICK` are accepted).
34
+ * @returns the canonical type, or undefined if the value is not recognized.
35
+ */
36
+ export declare function normalizeType(value: string | undefined | null): EchartsGraphType | undefined;
37
+ /** Whether the type is drawn on a cartesian grid. */
38
+ export declare function isCartesianType(type: EchartsGraphType): boolean;
39
+ /**
40
+ * Family of a chart type: how the data is read and drawn.
41
+ * `unsupported` types are not drawn yet.
42
+ */
43
+ export type ChartFamily = "cartesian" | "gaussian" | "pie" | "funnel" | "radar" | "bubble" | "candle" | "calendar" | "sankey" | "map";
44
+ export declare function getChartFamily(type: EchartsGraphType | undefined): ChartFamily;
45
+ /**
46
+ * Family of a chart from all its types: a Gaussian curve (alone or with other
47
+ * types) is a Gaussian chart, otherwise the first type decides.
48
+ */
49
+ export declare function getFamilyOfTypes(types: EchartsGraphType[]): ChartFamily;
50
+ /** Types of a resolved options object, one for each series. */
51
+ export declare function getResolvedTypes(options: ResolvedChaOptions): EchartsGraphType[];
52
+ /**
53
+ * Default axis column, when `Axe` is missing or not found.
54
+ *
55
+ * Adapted from the legacy `getDefaultAxis` (webup.js):
56
+ * 1. the column with `fill = "AXIS"`;
57
+ * 2. the first non numeric, visible column that is not a series;
58
+ * 3. the first non numeric column that is not a series;
59
+ * 4. the first visible column that is not a series;
60
+ * 5. the first column that is not a series.
61
+ */
62
+ export declare function getDefaultAxis(data: DataTable, seriesNames: string[]): string;
63
+ /**
64
+ * Default series, when `Series` is missing or none of its columns is found.
65
+ *
66
+ * Adapted from the legacy `getDefaultSeries` (webup.js):
67
+ * 1. the columns with `fill = "SERIES"`;
68
+ * 2. the first numeric, visible column that is not the axis;
69
+ * 3. the first numeric column that is not the axis;
70
+ * 4. the first visible column that is not the axis;
71
+ * 5. the first column that is not the axis.
72
+ */
73
+ export declare function getDefaultSeries(data: DataTable, axis: string): string[];
74
+ /**
75
+ * Resolve the options defaults from the data when explicit options are
76
+ * missing or not valid.
77
+ *
78
+ * Adapts the legacy `chartOptionsToChartProps` (webup.js) to ketchup2, keeping
79
+ * the names and the types of {@link ChaOptions}:
80
+ * - Axe: if not provided or not found in columns, auto-detect the axis column.
81
+ * - Series: columns not found are dropped; if none is left, auto-detect.
82
+ * - Typ: values not recognized are dropped (never throws); default `Bar`. A
83
+ * single cartesian type is repeated for every series; series are limited to
84
+ * the number of types.
85
+ * - Leg/LegPos: legend hidden unless `Leg` is `Yes`; default position `right`.
86
+ * - Stack: `STACKED` only if a bar type is present.
87
+ * - DateAxis/TimeAxis: cleared if the column is not found; if missing and the
88
+ * axis column is a date (or time), it is used as such.
89
+ * - YAxes: series not found are replaced by the first series.
90
+ * - AxisYMin/AxisYMax/LabelAngle/TitleSize: numeric values only.
91
+ * - ForceWidth/ForceHeight: numbers become pixels; default `100%`.
92
+ *
93
+ * @returns the resolved options.
94
+ */
95
+ export declare function resolveEchartsGraphDefaults(options: ChaOptions, data: DataTable): ResolvedChaOptions;
96
+ /** Check if a function is among the (resolved) `Functions` of the chart. */
97
+ export declare function hasFunction(options: ResolvedChaOptions, fn: EchartsGraphFunction): boolean;
98
+ /** A series ready to be drawn. */
99
+ export type ChartSeriesData = {
100
+ /** Name shown in legend and tooltip (unique). */
101
+ name: string;
102
+ column: DataColumn;
103
+ /** Index of the column in `data.columns`. */
104
+ columnIndex: number;
105
+ type: EchartsGraphType;
106
+ /** One value for each row; `null` when the cell is empty or not numeric. */
107
+ values: (number | null)[];
108
+ };
109
+ /** Data of a chart, extracted from the `DataTable`. */
110
+ export type ChartTable = {
111
+ /** Name of the axis column, empty if there is none. */
112
+ axis: string;
113
+ /** All the columns of the data. */
114
+ columns: DataColumn[];
115
+ /** Category of every row (value of the axis column). */
116
+ categories: string[];
117
+ rows: DataRow[];
118
+ series: ChartSeriesData[];
119
+ };
120
+ /**
121
+ * Text of a cell: its description (`decode`) when there is one, otherwise its
122
+ * value. Empty when the cell is missing.
123
+ */
124
+ export declare function getCellText(cell: DataCell | undefined): string;
125
+ /**
126
+ * Split the values of the `XTicks` and `YTicks` options, separated by `;`,
127
+ * trimming and dropping the empty ones.
128
+ * @param numeric the values are numbers: the ones that are not are dropped
129
+ * @returns the values, or undefined when there is none.
130
+ */
131
+ export declare function splitTicks(value: string | undefined | null, numeric: boolean): (string | number)[] | undefined;
132
+ /** Parse a number greater than 0 (as the `XTickInterval` option). */
133
+ export declare function parsePositive(value: string | undefined | null): number | undefined;
134
+ /**
135
+ * Values at a regular distance (`step`) covering the values of an axis: from
136
+ * the lowest one (or the multiple of the step before it, with `align`) up to
137
+ * the highest.
138
+ * @returns the values, or undefined when there are none or too many.
139
+ */
140
+ export declare function stepTicks(values: number[], step: number, align: boolean): number[] | undefined;
141
+ /**
142
+ * Convert a cell value to a number.
143
+ * @returns the number, or null if the cell is empty or not numeric.
144
+ */
145
+ export declare function toNumber(value: string | undefined | null): number | null;
146
+ /**
147
+ * Convert the value of a cell to a number. When the column or the cell has a
148
+ * number object (NR), the value is always read as a number: a blank (or not
149
+ * numeric) value becomes 0.
150
+ * @returns the number, or null if the cell is empty or not numeric and its
151
+ * object is not a number.
152
+ */
153
+ export declare function cellToNumber(cell: DataCell | undefined, column?: DataColumn): number | null;
154
+ /**
155
+ * Extract categories and series from the data, following the resolved options.
156
+ */
157
+ export declare function buildChartTable(options: ResolvedChaOptions, data: DataTable): ChartTable;
158
+ /** A category of Pie and Funnel charts: the rows with the same axis value. */
159
+ export type CategoryTotal = {
160
+ name: string;
161
+ /** Sum of the values of all the series, for all the rows of the category. */
162
+ value: number;
163
+ /** Indexes of the rows of the category, in `data.rows`. */
164
+ rowIndexes: number[];
165
+ };
166
+ /**
167
+ * Group the rows by category (value of the axis), summing the values of the
168
+ * series. Categories keep the order of the data. Without `grouped` (option
169
+ * `GroupData` = `No`) every row is a category of its own.
170
+ */
171
+ export declare function groupByCategory(table: ChartTable, grouped?: boolean): CategoryTotal[];
172
+ /** A point of a Bubble chart. */
173
+ export type BubblePoint = {
174
+ x: number;
175
+ y: number;
176
+ /** Raw size, undefined when the data has no size column. */
177
+ size?: number;
178
+ /** Label of the bubble (value of the axis). */
179
+ label: string;
180
+ rowIndex: number;
181
+ };
182
+ /** The points of a Bubble chart with the same group (one series, one color). */
183
+ export type BubbleGroup = {
184
+ name: string;
185
+ points: BubblePoint[];
186
+ };
187
+ /**
188
+ * Read a Bubble chart from the series, in order:
189
+ * - 2 series: X, Y;
190
+ * - 3 series: X, Y, group;
191
+ * - 4 or more: X, Y, size, group (the others are ignored).
192
+ *
193
+ * The axis column is the label of the bubble. Rows without a numeric X or Y
194
+ * are skipped.
195
+ */
196
+ export declare function buildBubbleGroups(table: ChartTable): BubbleGroup[];
197
+ //# sourceMappingURL=echarts-graph-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,OAAO,EACP,SAAS,EACV,MAAM,gCAAgC,CAAA;AAUvC,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,UAAU,EACf,KAA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AM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,EAAE,CAkClE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=echarts-graph-utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-utils.test.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/data/echarts-graph-utils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ import { default as React, RefObject } from 'react';
2
+ import { EChartsCoreOption } from 'echarts/core';
3
+ import { ChartClickParams, ChartSize } from './builders/echarts-graph-builders';
4
+ export type EchartsGraphCanvasProps = {
5
+ /** Root element: its size is the one of the chart. */
6
+ readonly rootRef: RefObject<HTMLDivElement | null>;
7
+ /** Size of the root, to draw the chart at. */
8
+ readonly size: ChartSize;
9
+ /** The ECharts option to draw, as it is. */
10
+ readonly option?: EChartsCoreOption;
11
+ /** Show the element of the chart (the title can be drawn with no data). */
12
+ readonly hasCanvas: boolean;
13
+ /** The chart can be created. @default true */
14
+ readonly isReady?: boolean;
15
+ /** Message of the empty state, shown when there is nothing to draw. */
16
+ readonly emptyMessage?: string;
17
+ /** Map to register in ECharts before the option that uses it. */
18
+ readonly map?: {
19
+ name: string;
20
+ geo: unknown;
21
+ };
22
+ /** Click on an element of the chart. */
23
+ readonly onChartClick?: (params: ChartClickParams) => void;
24
+ readonly rootStyle?: React.CSSProperties;
25
+ readonly ariaLabel: string;
26
+ };
27
+ /**
28
+ * Draws an ECharts option: it owns the life of the chart (create, update,
29
+ * resize, dispose) and the container, and knows nothing of where the option
30
+ * comes from. The logic that builds it is in the `DataTable` and `DataTree`
31
+ * components that use it.
32
+ */
33
+ export declare const EchartsGraphCanvas: React.FC<EchartsGraphCanvasProps>;
34
+ //# sourceMappingURL=echarts-graph-canvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-canvas.d.ts","sourceRoot":"","sources":["../../../src/components/echarts-graph/echarts-graph-canvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAyBrD,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACV,MAAM,mCAAmC,CAAA;AAyB1C,MAAM,MAAM,uBAAuB,GAAG;IACpC,sDAAsD;IACtD,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAClD,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IACnC,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,uEAAuE;IACvE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,GAAG,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,OAAO,CAAA;KAAE,CAAA;IAC7C,wCAAwC;IACxC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAgFhE,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { EchartsGraphTableProps } from './echarts-graph-types';
3
+ /**
4
+ * Chart drawn from a `DataTable`: data-driven, with the options of the backend
5
+ * `CHA` contract ({@link ChaOptions}, legacy AS400 names). When `Axe`, `Series`
6
+ * or `Typ` are not provided (or not valid) it decides the defaults from the data
7
+ * (see `resolveEchartsGraphDefaults`).
8
+ *
9
+ * It builds the ECharts option from the options and the table, and the canvas
10
+ * draws it. Colors come from the design tokens and follow the theme.
11
+ */
12
+ export declare const EchartsGraphFromTable: React.FC<EchartsGraphTableProps>;
13
+ //# sourceMappingURL=echarts-graph-from-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-from-table.d.ts","sourceRoot":"","sources":["../../../src/components/echarts-graph/echarts-graph-from-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAMrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAoBnE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgHlE,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { EchartsGraphTreeProps } from './echarts-graph-types';
3
+ /**
4
+ * Chart drawn from a `DataTree`: the ECharts option is the JSON in the `value`
5
+ * of a node and it is drawn as it is, with no other logic or props (the
6
+ * options of the data-driven chart belong to {@link EchartsGraphFromTable}).
7
+ *
8
+ * The chart types of ECharts that the data-driven charts do not use are
9
+ * loaded on demand.
10
+ */
11
+ export declare const EchartsGraphFromTree: React.FC<EchartsGraphTreeProps>;
12
+ //# sourceMappingURL=echarts-graph-from-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-from-tree.d.ts","sourceRoot":"","sources":["../../../src/components/echarts-graph/echarts-graph-from-tree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAMnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsChE,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { RefObject } from 'react';
2
+ import { ChartSize } from './builders/echarts-graph-builders';
3
+ import { EchartsGraphTheme } from './theme/echarts-graph-theme';
4
+ /**
5
+ * Size of the element, kept up to date when the container or the window
6
+ * change size.
7
+ */
8
+ export declare function useElementSize(ref: RefObject<HTMLElement | null>): ChartSize;
9
+ /**
10
+ * The theme of the chart, read from the design tokens as the element sees them,
11
+ * and read again when the theme changes. Undefined until the tokens are read:
12
+ * the chart is not drawn with the fallback colors first (they would flash, or
13
+ * stay if the tokens are late).
14
+ */
15
+ export declare function useEchartsGraphTheme(ref: RefObject<HTMLElement | null>): EchartsGraphTheme | undefined;
16
+ //# sourceMappingURL=echarts-graph-hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-hooks.d.ts","sourceRoot":"","sources":["../../../src/components/echarts-graph/echarts-graph-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,6BAA6B,CAAA;AAEpC;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,SAAS,CA0C5E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GACjC,iBAAiB,GAAG,SAAS,CAwC/B"}
@@ -0,0 +1,229 @@
1
+ import { DataColumn, DataRow, DataTable, DataTree } from '../../types/data-structures';
2
+ import { BooleanValue, LegacyPosition } from '../../types/legacy';
3
+ /** Legend position. Values are matched case-insensitively. */
4
+ export type ChartLegendPlacement = "bottom" | "left" | "hidden" | "right" | "top";
5
+ /** Names of the maps supported by the `Map` chart. */
6
+ export type ChartMapType = "africa" | "america" | "asia" | "europe" | "italy" | "oceania" | "world";
7
+ /** Stacking of the series: `STACKED` stacks bar series, `DUMMY` does nothing. */
8
+ export type ChartStackedType = "DUMMY" | "STACKED";
9
+ /** Title position. Values are matched case-insensitively. */
10
+ export type ChartTitlePosType = "bottom" | "left" | "right" | "top";
11
+ /** Chart types handled by the component (canonical names). */
12
+ export declare enum EchartsGraphType {
13
+ AREA = "Area",
14
+ BAR = "Bar",
15
+ BUBBLE = "Bubble",
16
+ CALENDAR = "Calendar",
17
+ CANDLE = "Candle",
18
+ FUNNEL = "Funnel",
19
+ GAUSSIAN = "Gaussian",
20
+ HBAR = "HBar",
21
+ LINE = "Line",
22
+ MAP = "Map",
23
+ PIE = "Pie",
24
+ RADAR = "Radar",
25
+ SANKEY = "Sankey",
26
+ SCATTER = "Scatter"
27
+ }
28
+ /** Functions applied to the data of the chart (option `Functions`). */
29
+ export declare enum EchartsGraphFunction {
30
+ /** Interpolation: adds the trend line (linear regression) of the series. */
31
+ INT = "Int"
32
+ }
33
+ /**
34
+ * Options of the {@link EchartsGraph} component.
35
+ *
36
+ * Mirrors the backend `CHA` options contract with CapitalizedCamelCase
37
+ * (AS400 legacy convention). Props naming a column refer to the `name` of a
38
+ * column in the input `DataTable`; when omitted or not found, the component
39
+ * tries to auto-detect the correct column from the data (see
40
+ * `resolveEchartsGraphDefaults`).
41
+ */
42
+ export type ChaOptions = {
43
+ /** Shape of the component (`CHA`), ignored by the rendering. */
44
+ shape?: string;
45
+ /** `2D` or `3D`. 3D is not available with ECharts: always rendered as 2D. */
46
+ Asp?: "2D" | "3D";
47
+ /** Column used as category axis. Auto-detected if omitted or not found. */
48
+ Axe?: string;
49
+ /**
50
+ * Functions applied to the chart, separated by `|`. For now only `Int`
51
+ * (case-insensitive): the cartesian charts also draw the trend line of every
52
+ * series. Unknown values are ignored.
53
+ */
54
+ Functions?: string;
55
+ /**
56
+ * Maximum value shown on the X axis, regardless of the data. Only for a
57
+ * continuous X axis: numeric, or time (a date like the ones of the data, or
58
+ * an instant in milliseconds), or the axis of the values of the horizontal
59
+ * bars. Ignored by the axis of categories.
60
+ */
61
+ AxisXMax?: string;
62
+ /**
63
+ * Scale the Y axis to the range of the data, instead of always including 0:
64
+ * useful when the values are close to each other. Not applied with bars or
65
+ * areas (their height must stay proportional to the value), and ignored for
66
+ * the limits given by `AxisYMin`/`AxisYMax`. `No` always includes 0.
67
+ * @default "Yes"
68
+ */
69
+ AxisYAuto?: BooleanValue;
70
+ /** Maximum value shown on the Y axis, regardless of the data. */
71
+ AxisYMax?: string;
72
+ /** Minimum value shown on the Y axis, regardless of the data. */
73
+ AxisYMin?: string;
74
+ /** Series colors, already resolved to hex and separated by `|`. */
75
+ Colors?: string;
76
+ /** Column interpreted as Date axis. */
77
+ DateAxis?: string;
78
+ /** Forced height: a number (pixels), or a CSS value with `px` or `%`. */
79
+ ForceHeight?: string;
80
+ /** Forced width: a number (pixels), or a CSS value with `px` or `%`. */
81
+ ForceWidth?: string;
82
+ /** Name of the map to show with the `Map` chart. */
83
+ GeoMap?: ChartMapType | string;
84
+ /** Rotation, in degrees, of the labels of the X axis. */
85
+ LabelAngle?: string;
86
+ /**
87
+ * Group the rows with the same value of the axis (their values are summed):
88
+ * `No` shows all the rows. Only for the charts of categories (Pie, Funnel).
89
+ * @default "Yes"
90
+ */
91
+ GroupData?: BooleanValue;
92
+ /** Show the legend. @default "No" */
93
+ Leg?: BooleanValue;
94
+ /** Legend position, used when `Leg` is `Yes`. @default "right" */
95
+ LegPos?: ChartLegendPlacement | LegacyPosition | string;
96
+ /** Explicitly show the X values of the data on the X axis. */
97
+ MarkXValue?: BooleanValue;
98
+ /** Explicitly show the Y values of the data on the Y axis. */
99
+ MarkYValue?: BooleanValue;
100
+ /**
101
+ * Columns to represent, separated by `|`. Auto-detected if omitted: columns
102
+ * with `fill = "SERIES"`, otherwise the first numeric column.
103
+ */
104
+ Series?: string;
105
+ /** Show the values on the series. @default "No" */
106
+ ShowMarks?: BooleanValue;
107
+ /** `STACKED` stacks the series of bar charts. @default "DUMMY" */
108
+ Stack?: ChartStackedType | string;
109
+ /**
110
+ * Gaussian chart: ranges (`min;max`, ends included, separated by `|`) the
111
+ * values of the series are grouped in, e.g. `20;39|40;54|55;99`. The curve
112
+ * is calculated on the number of rows of each range, which are also the
113
+ * names listed in the tooltip: the axis is not needed.
114
+ */
115
+ Ranges?: string;
116
+ /**
117
+ * Values of the indicators (ticks and labels) of the X axis, separated by
118
+ * `;`: category names, numbers or dates, depending on the axis. Instead of
119
+ * the automatic ones; the values outside the axis are ignored.
120
+ */
121
+ XTicks?: string;
122
+ /**
123
+ * Distance between the indicators (labels) of the X axis, when it is
124
+ * continuous (time or numeric). With a time axis (`DateAxis`/`TimeAxis`) it is
125
+ * in milliseconds. Ignored when `XTicks` is given.
126
+ */
127
+ XTickInterval?: string;
128
+ /**
129
+ * Values of the indicators (ticks and labels) of the Y axis, separated by
130
+ * `;`. With several Y axes, only the first one has them. The values outside
131
+ * the axis are ignored.
132
+ */
133
+ YTicks?: string;
134
+ /** Column interpreted as Time axis. */
135
+ TimeAxis?: string;
136
+ /** Title of the chart. */
137
+ Title?: string;
138
+ /** Color of the title (hex). */
139
+ TitleColor?: string;
140
+ /** Size of the title, a number of pixels (suffix `px` allowed). @default 16 */
141
+ TitleSize?: string;
142
+ /** Title position. @default "left" */
143
+ TitlePos?: ChartTitlePosType | LegacyPosition | string;
144
+ /** Chart types separated by `|`, one for each series. @default "Bar" */
145
+ Typ?: string;
146
+ /** Series to associate with their own Y axis, separated by `|`. */
147
+ YAxes?: string;
148
+ };
149
+ /**
150
+ * Options after the resolution of the defaults: same names and types of
151
+ * {@link ChaOptions}, with the values completed and normalized.
152
+ */
153
+ export type ResolvedChaOptions = ChaOptions & {
154
+ Axe: string;
155
+ Series: string;
156
+ Typ: string;
157
+ Leg: BooleanValue;
158
+ LegPos: string;
159
+ Stack: string;
160
+ ShowMarks: BooleanValue;
161
+ AxisYAuto: BooleanValue;
162
+ MarkXValue: BooleanValue;
163
+ MarkYValue: BooleanValue;
164
+ GroupData: BooleanValue;
165
+ ForceWidth: string;
166
+ ForceHeight: string;
167
+ DateAxis: string;
168
+ TimeAxis: string;
169
+ YAxes: string;
170
+ Functions: string;
171
+ };
172
+ /** Payload of the click callback. */
173
+ export type EchartsGraphClickPayload = {
174
+ /** Original row of the `DataTable`. */
175
+ row?: DataRow;
176
+ /** Column of the clicked series; the axis column for Pie, Funnel and Map. */
177
+ column?: DataColumn;
178
+ /** Index of the row in `data.rows`. */
179
+ rowIndex?: number;
180
+ /** Index of the column in `data.columns`. */
181
+ columnIndex?: number;
182
+ /** Category (or x value) of the clicked element. */
183
+ x?: number | string;
184
+ /** Value of the clicked element. */
185
+ y?: number | string | null;
186
+ /** Date (ISO `YYYY-MM-DD`) of the clicked day, for the Calendar chart. */
187
+ date?: string;
188
+ };
189
+ /**
190
+ * Props of the chart drawn from a `DataTable`: the data-driven one, driven by
191
+ * the options of the backend `CHA` contract ({@link ChaOptions}, with the
192
+ * legacy AS400 names).
193
+ */
194
+ export type EchartsGraphTableProps = ChaOptions & {
195
+ /** The data table to represent. */
196
+ data: DataTable;
197
+ /** GeoJSON (object or string) already loaded, used by the `Map` chart. */
198
+ map?: Record<string, unknown> | string;
199
+ /** Callback fired when an element of a series is clicked. */
200
+ onClick?: (payload: EchartsGraphClickPayload) => void;
201
+ };
202
+ /**
203
+ * Props of the chart drawn from a `DataTree`: the ECharts option is the JSON in
204
+ * the `value` of a node (it needs `series`) and the first valid one is drawn as
205
+ * it is. There are no other props: the options of {@link ChaOptions}, `map` and
206
+ * `onClick` belong to the chart of a `DataTable`.
207
+ *
208
+ * **Security:** the option is not sanitized. JSON cannot carry functions, but
209
+ * ECharts renders a `tooltip.formatter` string as HTML: use only options that
210
+ * come from trusted data.
211
+ */
212
+ export type EchartsGraphTreeProps = {
213
+ /** The tree that holds the ECharts option. */
214
+ data: DataTree;
215
+ };
216
+ /**
217
+ * Props for the {@link EchartsGraph} component: the structure of `data` decides
218
+ * how it works, and each structure has its own props.
219
+ */
220
+ export type EchartsGraphProps = EchartsGraphTableProps | EchartsGraphTreeProps;
221
+ /**
222
+ * Internal id constants used for `smp-id` test queries.
223
+ */
224
+ export declare enum EchartsGraphCellId {
225
+ ROOT = "echarts-graph",
226
+ CANVAS = "echarts-graph-canvas",
227
+ EMPTY = "echarts-graph-empty"
228
+ }
229
+ //# sourceMappingURL=echarts-graph-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-types.d.ts","sourceRoot":"","sources":["../../../src/components/echarts-graph/echarts-graph-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,QAAQ,EACT,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEtE,8DAA8D;AAC9D,MAAM,MAAM,oBAAoB,GAC9B,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;AAEhD,sDAAsD;AACtD,MAAM,MAAM,YAAY,GACtB,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE1E,iFAAiF;AACjF,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,CAAA;AAElD,6DAA6D;AAC7D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAA;AAEnE,8DAA8D;AAC9D,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAA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,wBAAwB;CAC9B"}
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { EchartsGraphProps } from './echarts-graph-types';
3
+ /**
4
+ * EchartsGraph — charts drawn with Apache ECharts, from a `DataTable` or from a
5
+ * `DataTree`: the structure of the data decides how the component works, and
6
+ * each structure has its own props.
7
+ *
8
+ * - `DataTable`: data-driven chart, with the options of the backend `CHA`
9
+ * contract ({@link EchartsGraphTableProps}), see `EchartsGraphFromTable`.
10
+ * - `DataTree`: the ECharts option is the JSON in the `value` of a node and it
11
+ * is drawn as it is ({@link EchartsGraphTreeProps}), see
12
+ * `EchartsGraphFromTree`. Not sanitized: use only trusted data.
13
+ *
14
+ * Both use the same `EchartsGraphCanvas` to draw the option, which follows the
15
+ * size of its container.
16
+ */
17
+ export declare const EchartsGraph: React.FC<EchartsGraphProps>;
18
+ //# sourceMappingURL=echarts-graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph.d.ts","sourceRoot":"","sources":["../../../src/components/echarts-graph/echarts-graph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,uBAAuB,CAAA;AAM9B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAMpD,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { ChaOptions } from '../echarts-graph-types';
2
+ /**
3
+ * Normalize a color that comes from the backend (options or data) to hex
4
+ * (`#rrggbb`, or `#rrggbbaa` with a transparency).
5
+ *
6
+ * Accepted: hex (3, 4, 6 or 8 digits, with `#`), `rgb()`/`rgba()`, `hsl()`/
7
+ * `hsla()`, the Smeup notation `R255G0B0`, `transparent` (replaced by the
8
+ * background) and the CSS color names (resolved by the browser).
9
+ *
10
+ * @param value The color to normalize.
11
+ * @param background Color used for `transparent`.
12
+ * @returns The hex color, or undefined if the value is not a color.
13
+ */
14
+ export declare function normalizeColor(value: string | null | undefined, background?: string): string | undefined;
15
+ /**
16
+ * Normalize the colors of the options (`Colors`, separated by `|`, and
17
+ * `TitleColor`). The colors that are not valid are dropped.
18
+ */
19
+ export declare function normalizeColorOptions<T extends ChaOptions>(options: T, background?: string): T;
20
+ //# sourceMappingURL=echarts-graph-color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-color.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/theme/echarts-graph-color.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AA+DxD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAepB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,UAAU,EACxD,OAAO,EAAE,CAAC,EACV,UAAU,CAAC,EAAE,MAAM,GAClB,CAAC,CAYH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=echarts-graph-color.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echarts-graph-color.test.d.ts","sourceRoot":"","sources":["../../../../src/components/echarts-graph/theme/echarts-graph-color.test.ts"],"names":[],"mappings":""}