@sme.up/ketchup2 1.3.0 → 1.5.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 (315) hide show
  1. package/README.md +8 -3
  2. package/dist/_basePickBy-C8RsxlpP.cjs +1 -0
  3. package/dist/_basePickBy-Ca4nzDCq.js +151 -0
  4. package/dist/_baseUniq-4AMvkUHx.cjs +1 -0
  5. package/dist/_baseUniq-4DYbSb4g.js +614 -0
  6. package/dist/arc-0onjh8Q1.cjs +1 -0
  7. package/dist/arc-Bp2TTsxp.js +83 -0
  8. package/dist/architecture-O4VJ6CD3-BO-KWOMO.js +5 -0
  9. package/dist/architecture-O4VJ6CD3-BY3keMJR.cjs +1 -0
  10. package/dist/architectureDiagram-W76B3OCA-Bl619mqp.cjs +36 -0
  11. package/dist/architectureDiagram-W76B3OCA-D9RT0bQQ.js +4660 -0
  12. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  13. package/dist/assets/continents.d.ts +2 -2
  14. package/dist/assets/continents.d.ts.map +1 -1
  15. package/dist/assets/provinces.d.ts +6 -2
  16. package/dist/assets/provinces.d.ts.map +1 -1
  17. package/dist/assets/regions.d.ts +6 -2
  18. package/dist/assets/regions.d.ts.map +1 -1
  19. package/dist/assets/svg/arrow-down.svg +1 -0
  20. package/dist/assets/svg/arrow-up.svg +1 -0
  21. package/dist/assets/svg/clear.svg +1 -0
  22. package/dist/assets/svg/delete.svg +1 -0
  23. package/dist/assets/svg/document-outline.svg +1 -0
  24. package/dist/assets/svg/filter_list.svg +1 -0
  25. package/dist/assets/svg/folder-outline.svg +1 -0
  26. package/dist/assets/svg/info_outline.svg +1 -0
  27. package/dist/assets/svg/list.svg +1 -0
  28. package/dist/assets/svg/more_horizontal.svg +1 -0
  29. package/dist/assets/svg/plus.svg +1 -0
  30. package/dist/assets/testAsset.d.ts +16 -6
  31. package/dist/assets/testAsset.d.ts.map +1 -1
  32. package/dist/basic-components/autocomplete/autocomplete-types.d.ts +1 -0
  33. package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
  34. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  35. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  36. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  37. package/dist/basic-components/cell/cell-types.d.ts +24 -5
  38. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  39. package/dist/basic-components/cell/cell-utils.d.ts +0 -7
  40. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  41. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  42. package/dist/basic-components/cell/tests/utils.d.ts +1 -7
  43. package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
  44. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  45. package/dist/basic-components/combobox/combobox.d.ts.map +1 -1
  46. package/dist/basic-components/date-picker/date-picker-types.d.ts +4 -0
  47. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  48. package/dist/basic-components/date-picker/date-picker.d.ts.map +1 -1
  49. package/dist/basic-components/icon/icon-types.d.ts +4 -0
  50. package/dist/basic-components/icon/icon-types.d.ts.map +1 -1
  51. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  52. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  53. package/dist/basic-components/list/list-types.d.ts +4 -3
  54. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  55. package/dist/basic-components/list/list-utils.d.ts +2 -2
  56. package/dist/basic-components/list/list-utils.d.ts.map +1 -1
  57. package/dist/basic-components/list/list.d.ts.map +1 -1
  58. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete-types.d.ts +4 -0
  59. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  60. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  61. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  62. package/dist/basic-components/searchbar/search-bar.d.ts.map +1 -1
  63. package/dist/basic-components/text/text-types.d.ts +5 -0
  64. package/dist/basic-components/text/text-types.d.ts.map +1 -0
  65. package/dist/basic-components/text/text.d.ts +2 -2
  66. package/dist/basic-components/text/text.d.ts.map +1 -1
  67. package/dist/basic-components/textarea/textarea-types.d.ts +1 -0
  68. package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
  69. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  70. package/dist/basic-components/textfield/textfield-types.d.ts +9 -0
  71. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  72. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  73. package/dist/basic-components/tree/tree.assets.d.ts +3 -0
  74. package/dist/basic-components/tree/tree.assets.d.ts.map +1 -0
  75. package/dist/basic-components/tree/tree.d.ts +4 -0
  76. package/dist/basic-components/tree/tree.d.ts.map +1 -0
  77. package/dist/basic-components/tree/tree.types.d.ts +6 -0
  78. package/dist/basic-components/tree/tree.types.d.ts.map +1 -0
  79. package/dist/basic-components/typography/typography-types.d.ts +16 -1
  80. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  81. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  82. package/dist/blockDiagram-QIGZ2CNN-Cwz-49Hp.cjs +122 -0
  83. package/dist/blockDiagram-QIGZ2CNN-DusKAnCv.js +2261 -0
  84. package/dist/c4Diagram-FPNF74CW-BgZK1w_0.cjs +10 -0
  85. package/dist/c4Diagram-FPNF74CW-CLRSUR6U.js +1580 -0
  86. package/dist/channel-DeT7sbHs.cjs +1 -0
  87. package/dist/channel-Dj-sZC_y.js +5 -0
  88. package/dist/chunk-4BX2VUAB-B3l1Ono_.cjs +1 -0
  89. package/dist/chunk-4BX2VUAB-Bgwq4Diy.js +8 -0
  90. package/dist/chunk-55IACEB6-C1opfhtY.js +8 -0
  91. package/dist/chunk-55IACEB6-C6PQzR3x.cjs +1 -0
  92. package/dist/chunk-FMBD7UC4-C51OwFKG.cjs +15 -0
  93. package/dist/chunk-FMBD7UC4-W5VVHmrc.js +19 -0
  94. package/dist/chunk-K7UQS3LO-CpNcY51w.js +1375 -0
  95. package/dist/chunk-K7UQS3LO-jP-qBkZT.cjs +165 -0
  96. package/dist/chunk-QN33PNHL-B5ELiM3k.js +19 -0
  97. package/dist/chunk-QN33PNHL-BEvtonwy.cjs +1 -0
  98. package/dist/chunk-QZHKN3VN-BGGyel0T.cjs +1 -0
  99. package/dist/chunk-QZHKN3VN-JGjxSMku.js +15 -0
  100. package/dist/chunk-TVAH2DTR-BYlMByBM.js +1370 -0
  101. package/dist/chunk-TVAH2DTR-DnLs3B2h.cjs +220 -0
  102. package/dist/chunk-TZMSLE5B-BKH4WKcd.js +64 -0
  103. package/dist/chunk-TZMSLE5B-CTsbwbO3.cjs +1 -0
  104. package/dist/classDiagram-KNZD7YFC-CQIiCgRf.js +16 -0
  105. package/dist/classDiagram-KNZD7YFC-jStKK4eB.cjs +1 -0
  106. package/dist/classDiagram-v2-RKCZMP56-CQIiCgRf.js +16 -0
  107. package/dist/classDiagram-v2-RKCZMP56-jStKK4eB.cjs +1 -0
  108. package/dist/clone-BWQ0Hk5U.js +8 -0
  109. package/dist/clone-BbrGYdY4.cjs +1 -0
  110. package/dist/components/app-bar/app-bar.data.d.ts +2 -0
  111. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  112. package/dist/components/breadcrumbs/breadcrumbs-types.d.ts +13 -0
  113. package/dist/components/breadcrumbs/breadcrumbs-types.d.ts.map +1 -0
  114. package/dist/components/breadcrumbs/breadcrumbs.d.ts +4 -0
  115. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  116. package/dist/components/data-table/assets/data-table-group.d.ts +2 -1
  117. package/dist/components/data-table/assets/data-table-group.d.ts.map +1 -1
  118. package/dist/components/data-table/assets/data-table-shapes.d.ts +28 -7
  119. package/dist/components/data-table/assets/data-table-shapes.d.ts.map +1 -1
  120. package/dist/components/data-table/columns/columns-utils.d.ts +16 -0
  121. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -0
  122. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -0
  123. package/dist/components/data-table/data-table-types.d.ts +33 -3
  124. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  125. package/dist/components/data-table/data-table.d.ts.map +1 -1
  126. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +29 -0
  127. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -0
  128. package/dist/components/data-table/footer/footer-types.d.ts +6 -0
  129. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -0
  130. package/dist/components/data-table/footer/footer.d.ts.map +1 -0
  131. package/dist/{functional-components → components/data-table}/group-row/group-row-types.d.ts +1 -1
  132. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -0
  133. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -0
  134. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -0
  135. package/dist/components/data-table/{data-table-utils.d.ts → grouping/datatable-groups-utils.d.ts} +3 -3
  136. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -0
  137. package/dist/components/data-table/header/Header.d.ts +4 -0
  138. package/dist/components/data-table/header/Header.d.ts.map +1 -0
  139. package/dist/components/data-table/header/header-types.d.ts +33 -0
  140. package/dist/components/data-table/header/header-types.d.ts.map +1 -0
  141. package/dist/components/data-table/ordering/useColumnReorder.d.ts +13 -0
  142. package/dist/components/data-table/ordering/useColumnReorder.d.ts.map +1 -0
  143. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  144. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -0
  145. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -0
  146. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -0
  147. package/dist/components/drawer/drawer.d.ts.map +1 -1
  148. package/dist/components/drawer/drawer.data.d.ts +4 -0
  149. package/dist/components/drawer/drawer.data.d.ts.map +1 -1
  150. package/dist/components/echarts.tsx/echarts-graph-types.d.ts +8 -0
  151. package/dist/components/echarts.tsx/echarts-graph-types.d.ts.map +1 -0
  152. package/dist/components/echarts.tsx/echarts-graph.d.ts +4 -0
  153. package/dist/components/echarts.tsx/echarts-graph.d.ts.map +1 -0
  154. package/dist/components/field/field-types.d.ts +2 -0
  155. package/dist/components/field/field-types.d.ts.map +1 -1
  156. package/dist/components/field/field.d.ts.map +1 -1
  157. package/dist/components/input-panel/assets/data.d.ts +1 -0
  158. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  159. package/dist/components/input-panel/input-panel-types.d.ts +9 -0
  160. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  161. package/dist/components/input-panel/input-panel-utils.d.ts +18 -0
  162. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -0
  163. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  164. package/dist/components/mermaid/mermaid-types.d.ts +8 -0
  165. package/dist/components/mermaid/mermaid-types.d.ts.map +1 -0
  166. package/dist/components/mermaid/mermaid.d.ts +4 -0
  167. package/dist/components/mermaid/mermaid.d.ts.map +1 -0
  168. package/dist/components/tab-bar/tab-bar-types.d.ts +11 -0
  169. package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
  170. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  171. package/dist/components/toolbar/assets/data.d.ts +7 -0
  172. package/dist/components/toolbar/assets/data.d.ts.map +1 -0
  173. package/dist/components/toolbar/toolbar-node.d.ts +3 -0
  174. package/dist/components/toolbar/toolbar-node.d.ts.map +1 -0
  175. package/dist/components/toolbar/toolbar-types.d.ts +78 -0
  176. package/dist/components/toolbar/toolbar-types.d.ts.map +1 -0
  177. package/dist/components/toolbar/toolbar-utils/useKeyboardNavigation.d.ts +12 -0
  178. package/dist/components/toolbar/toolbar-utils/useKeyboardNavigation.d.ts.map +1 -0
  179. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts +8 -0
  180. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts.map +1 -0
  181. package/dist/components/toolbar/toolbar-utils/utils.d.ts +12 -0
  182. package/dist/components/toolbar/toolbar-utils/utils.d.ts.map +1 -0
  183. package/dist/components/toolbar/toolbar.d.ts +3 -0
  184. package/dist/components/toolbar/toolbar.d.ts.map +1 -0
  185. package/dist/cose-bilkent-S5V4N54A-B4JnIgaa.js +2608 -0
  186. package/dist/cose-bilkent-S5V4N54A-DfSYAN4b.cjs +1 -0
  187. package/dist/cytoscape.esm-CamnA8MN.js +18735 -0
  188. package/dist/cytoscape.esm-uM8noIeE.cjs +331 -0
  189. package/dist/dagre-5GWH7T2D-DJ2exxQr.js +444 -0
  190. package/dist/dagre-5GWH7T2D-prvPY7PG.cjs +4 -0
  191. package/dist/defaultLocale-D7EN2tov.js +171 -0
  192. package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
  193. package/dist/diagram-N5W7TBWH-By_2P30B.js +532 -0
  194. package/dist/diagram-N5W7TBWH-CeUaJPOp.cjs +24 -0
  195. package/dist/diagram-QEK2KX5R-BUvMLN6S.cjs +43 -0
  196. package/dist/diagram-QEK2KX5R-DbnHXk_4.js +217 -0
  197. package/dist/diagram-S2PKOQOG-BrYhLVIy.js +142 -0
  198. package/dist/diagram-S2PKOQOG-OK7fnVi7.cjs +24 -0
  199. package/dist/erDiagram-AWTI2OKA-RFzTot8M.js +841 -0
  200. package/dist/erDiagram-AWTI2OKA-g_jlgQzA.cjs +60 -0
  201. package/dist/flowDiagram-PVAE7QVJ-B3R11Aox.cjs +162 -0
  202. package/dist/flowDiagram-PVAE7QVJ-D9mXGgMa.js +1620 -0
  203. package/dist/functional-components/filter-group/filter-builder-types.d.ts +18 -0
  204. package/dist/functional-components/filter-group/filter-builder-types.d.ts.map +1 -0
  205. package/dist/functional-components/filter-group/filter-builder.d.ts +16 -0
  206. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -0
  207. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  208. package/dist/functional-components/helper-tooltip/helper-tooltip-types.d.ts +12 -0
  209. package/dist/functional-components/helper-tooltip/helper-tooltip-types.d.ts.map +1 -0
  210. package/dist/functional-components/helper-tooltip/helper-tooltip.d.ts +3 -0
  211. package/dist/functional-components/helper-tooltip/helper-tooltip.d.ts.map +1 -0
  212. package/dist/functional-components/label/label-types.d.ts +4 -0
  213. package/dist/functional-components/label/label-types.d.ts.map +1 -1
  214. package/dist/functional-components/label/label.d.ts.map +1 -1
  215. package/dist/functional-components/row/row-types.d.ts +44 -1
  216. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  217. package/dist/functional-components/row/row.d.ts.map +1 -1
  218. package/dist/ganttDiagram-OWAHRB6G-DBRiNI5D.js +2504 -0
  219. package/dist/ganttDiagram-OWAHRB6G-Pm7GR_TY.cjs +267 -0
  220. package/dist/gitGraph-ZV4HHKMB-D8V_C5KP.cjs +1 -0
  221. package/dist/gitGraph-ZV4HHKMB-eEo6BeMY.js +5 -0
  222. package/dist/gitGraphDiagram-NY62KEGX-CqQTEJ2T.js +699 -0
  223. package/dist/gitGraphDiagram-NY62KEGX-DboC2-zX.cjs +65 -0
  224. package/dist/graph-CDx2s7rR.cjs +1 -0
  225. package/dist/graph-CI25A6Kp.js +247 -0
  226. package/dist/hooks/useFloating.d.ts +2 -2
  227. package/dist/hooks/useFloating.d.ts.map +1 -1
  228. package/dist/index-Dj0ZpuHR.js +24067 -0
  229. package/dist/index-TKKiVw_8.cjs +301 -0
  230. package/dist/index.d.ts +34 -16
  231. package/dist/index.d.ts.map +1 -1
  232. package/dist/info-63CPKGFF-BNTMLGHi.cjs +1 -0
  233. package/dist/info-63CPKGFF-DFSUnGmm.js +5 -0
  234. package/dist/infoDiagram-STP46IZ2-XI14GI2O.js +24 -0
  235. package/dist/infoDiagram-STP46IZ2-cEMZnZwe.cjs +2 -0
  236. package/dist/init-CHZsXQcr.cjs +1 -0
  237. package/dist/init-DjUOC4st.js +16 -0
  238. package/dist/journeyDiagram-BIP6EPQ6-4r8HPM76.js +836 -0
  239. package/dist/journeyDiagram-BIP6EPQ6-DSATBOy7.cjs +139 -0
  240. package/dist/kanban-definition-6OIFK2YF-DArDhI5N.cjs +89 -0
  241. package/dist/kanban-definition-6OIFK2YF-IpG0t2dU.js +719 -0
  242. package/dist/katex-C2g-EhzP.cjs +261 -0
  243. package/dist/katex-CUSbq6rG.js +11692 -0
  244. package/dist/ketchup2.cjs.js +1 -50
  245. package/dist/ketchup2.css +1 -1
  246. package/dist/ketchup2.es.js +25 -6626
  247. package/dist/layout-BecFZ4zf.js +1324 -0
  248. package/dist/layout-tzBIhASb.cjs +1 -0
  249. package/dist/linear-R3HoIM28.cjs +1 -0
  250. package/dist/linear-xGWDkmQQ.js +259 -0
  251. package/dist/locale/en/translation.json.d.ts +24 -0
  252. package/dist/locale/it/translation.json.d.ts +24 -0
  253. package/dist/mermaid-parser.core-DR7pLDVq.cjs +128 -0
  254. package/dist/mermaid-parser.core-DgSQdd2P.js +12966 -0
  255. package/dist/mindmap-definition-Q6HEUPPD-CBd_3OoJ.js +755 -0
  256. package/dist/mindmap-definition-Q6HEUPPD-DziA_FlL.cjs +68 -0
  257. package/dist/ordinal-CagbB1m8.cjs +1 -0
  258. package/dist/ordinal-DfAQgscy.js +61 -0
  259. package/dist/packet-HUATNLJX-8m622N0T.js +5 -0
  260. package/dist/packet-HUATNLJX-D4q4_tdF.cjs +1 -0
  261. package/dist/pie-WTHONI2E-BkaU-1dT.js +5 -0
  262. package/dist/pie-WTHONI2E-Xdgx4zVT.cjs +1 -0
  263. package/dist/pieDiagram-ADFJNKIX-B27FR3VA.js +161 -0
  264. package/dist/pieDiagram-ADFJNKIX-C3_xZOy7.cjs +30 -0
  265. package/dist/quadrantDiagram-LMRXKWRM-DTb52YQ-.js +1022 -0
  266. package/dist/quadrantDiagram-LMRXKWRM-DjfwCssa.cjs +7 -0
  267. package/dist/radar-NJJJXTRR-CmDh362n.cjs +1 -0
  268. package/dist/radar-NJJJXTRR-DFMxAHYB.js +5 -0
  269. package/dist/requirementDiagram-4UW4RH46-CNnd2CY8.cjs +64 -0
  270. package/dist/requirementDiagram-4UW4RH46-Cpp55-Ws.js +850 -0
  271. package/dist/sankeyDiagram-GR3RE2ED-DGwCb9oE.cjs +10 -0
  272. package/dist/sankeyDiagram-GR3RE2ED-DKK_ac-i.js +810 -0
  273. package/dist/sequenceDiagram-C3RYC4MD-BREsTbdm.cjs +145 -0
  274. package/dist/sequenceDiagram-C3RYC4MD-CO9gcZLo.js +2511 -0
  275. package/dist/stateDiagram-KXAO66HF-CVAuruFr.js +263 -0
  276. package/dist/stateDiagram-KXAO66HF-M3UqQp73.cjs +1 -0
  277. package/dist/stateDiagram-v2-UMBNRL4Z-Ck-52CSr.js +16 -0
  278. package/dist/stateDiagram-v2-UMBNRL4Z-Dx3SusnW.cjs +1 -0
  279. package/dist/timeline-definition-XQNQX7LJ-Dc_TAvXx.js +797 -0
  280. package/dist/timeline-definition-XQNQX7LJ-DjsU7CwU.cjs +61 -0
  281. package/dist/treemap-75Q7IDZK-Bq3QS7Yd.cjs +1 -0
  282. package/dist/treemap-75Q7IDZK-CqGc4LKE.js +5 -0
  283. package/dist/types/data-structures.d.ts +30 -11
  284. package/dist/types/data-structures.d.ts.map +1 -1
  285. package/dist/types/generic.d.ts +2 -2
  286. package/dist/types/generic.d.ts.map +1 -1
  287. package/dist/types/translation.d.ts +17 -1
  288. package/dist/types/translation.d.ts.map +1 -1
  289. package/dist/utils/adapters.d.ts +46 -2
  290. package/dist/utils/adapters.d.ts.map +1 -1
  291. package/dist/utils/data-structures.d.ts +12 -7
  292. package/dist/utils/data-structures.d.ts.map +1 -1
  293. package/dist/utils/objects.d.ts +6 -0
  294. package/dist/utils/objects.d.ts.map +1 -1
  295. package/dist/utils/wrapper-types/date.d.ts.map +1 -1
  296. package/dist/utils/wrapper-types/number.d.ts.map +1 -1
  297. package/dist/xychartDiagram-6GGTOJPD-BQLiiNMc.cjs +7 -0
  298. package/dist/xychartDiagram-6GGTOJPD-CHaqT91Z.js +1340 -0
  299. package/package.json +40 -27
  300. package/dist/basic-components/decoded-textfield/decoded-texfield-types.d.ts +0 -6
  301. package/dist/basic-components/decoded-textfield/decoded-texfield-types.d.ts.map +0 -1
  302. package/dist/basic-components/decoded-textfield/decoded-textfield.d.ts +0 -3
  303. package/dist/basic-components/decoded-textfield/decoded-textfield.d.ts.map +0 -1
  304. package/dist/components/data-table/data-table-utils.d.ts.map +0 -1
  305. package/dist/components/data-table/hooks/useColumnWidths.d.ts.map +0 -1
  306. package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts.map +0 -1
  307. package/dist/functional-components/footer/footer-types.d.ts +0 -6
  308. package/dist/functional-components/footer/footer-types.d.ts.map +0 -1
  309. package/dist/functional-components/footer/footer.d.ts.map +0 -1
  310. package/dist/functional-components/group-row/group-row-types.d.ts.map +0 -1
  311. package/dist/functional-components/group-row/group-row.d.ts.map +0 -1
  312. /package/dist/components/data-table/{hooks → columns}/useColumnWidths.d.ts +0 -0
  313. /package/dist/{functional-components → components/data-table}/footer/footer.d.ts +0 -0
  314. /package/dist/{functional-components → components/data-table}/group-row/group-row.d.ts +0 -0
  315. /package/dist/components/data-table/{utils → grouping}/buildFlatGroupedRows.d.ts +0 -0
@@ -0,0 +1,755 @@
1
+ import { g as ae } from "./chunk-55IACEB6-C1opfhtY.js";
2
+ import { s as oe } from "./chunk-QN33PNHL-B5ELiM3k.js";
3
+ import { _ as c, l as O, o as ce, r as le, F as U, c as H, i as F, af as he, ag as ge, W as de, X as ue, Y as pe } from "./index-Dj0ZpuHR.js";
4
+ var W = function() {
5
+ var r = /* @__PURE__ */ c(function(L, s, t, a) {
6
+ for (t = t || {}, a = L.length; a--; t[L[a]] = s) ;
7
+ return t;
8
+ }, "o"), e = [1, 4], i = [1, 13], l = [1, 12], u = [1, 15], h = [1, 16], f = [1, 20], y = [1, 19], p = [6, 7, 8], k = [1, 26], z = [1, 24], X = [1, 25], _ = [6, 7, 11], Y = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], I = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
9
+ trace: /* @__PURE__ */ c(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
14
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
15
+ performAction: /* @__PURE__ */ c(function(s, t, a, o, d, n, R) {
16
+ var g = n.length - 1;
17
+ switch (d) {
18
+ case 6:
19
+ case 7:
20
+ return o;
21
+ case 8:
22
+ o.getLogger().trace("Stop NL ");
23
+ break;
24
+ case 9:
25
+ o.getLogger().trace("Stop EOF ");
26
+ break;
27
+ case 11:
28
+ o.getLogger().trace("Stop NL2 ");
29
+ break;
30
+ case 12:
31
+ o.getLogger().trace("Stop EOF2 ");
32
+ break;
33
+ case 15:
34
+ o.getLogger().info("Node: ", n[g].id), o.addNode(n[g - 1].length, n[g].id, n[g].descr, n[g].type);
35
+ break;
36
+ case 16:
37
+ o.getLogger().trace("Icon: ", n[g]), o.decorateNode({ icon: n[g] });
38
+ break;
39
+ case 17:
40
+ case 21:
41
+ o.decorateNode({ class: n[g] });
42
+ break;
43
+ case 18:
44
+ o.getLogger().trace("SPACELIST");
45
+ break;
46
+ case 19:
47
+ o.getLogger().trace("Node: ", n[g].id), o.addNode(0, n[g].id, n[g].descr, n[g].type);
48
+ break;
49
+ case 20:
50
+ o.decorateNode({ icon: n[g] });
51
+ break;
52
+ case 25:
53
+ o.getLogger().trace("node found ..", n[g - 2]), this.$ = { id: n[g - 1], descr: n[g - 1], type: o.getType(n[g - 2], n[g]) };
54
+ break;
55
+ case 26:
56
+ this.$ = { id: n[g], descr: n[g], type: o.nodeType.DEFAULT };
57
+ break;
58
+ case 27:
59
+ o.getLogger().trace("node found ..", n[g - 3]), this.$ = { id: n[g - 3], descr: n[g - 1], type: o.getType(n[g - 2], n[g]) };
60
+ break;
61
+ }
62
+ }, "anonymous"),
63
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, r(p, [2, 3]), { 1: [2, 2] }, r(p, [2, 4]), r(p, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: l, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, { 6: i, 9: 22, 12: 11, 13: l, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, { 6: k, 7: z, 10: 23, 11: X }, r(_, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: y }), r(_, [2, 18]), r(_, [2, 19]), r(_, [2, 20]), r(_, [2, 21]), r(_, [2, 23]), r(_, [2, 24]), r(_, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: k, 7: z, 10: 32, 11: X }, { 1: [2, 7], 6: i, 12: 21, 13: l, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, r(Y, [2, 14], { 7: q, 11: J }), r(I, [2, 8]), r(I, [2, 9]), r(I, [2, 10]), r(_, [2, 15]), r(_, [2, 16]), r(_, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, r(Y, [2, 13], { 7: q, 11: J }), r(I, [2, 11]), r(I, [2, 12]), { 21: [1, 37] }, r(_, [2, 25]), r(_, [2, 27])],
64
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
65
+ parseError: /* @__PURE__ */ c(function(s, t) {
66
+ if (t.recoverable)
67
+ this.trace(s);
68
+ else {
69
+ var a = new Error(s);
70
+ throw a.hash = t, a;
71
+ }
72
+ }, "parseError"),
73
+ parse: /* @__PURE__ */ c(function(s) {
74
+ var t = this, a = [0], o = [], d = [null], n = [], R = this.table, g = "", w = 0, K = 0, ie = 2, Q = 1, se = n.slice.call(arguments, 1), m = Object.create(this.lexer), x = { yy: {} };
75
+ for (var V in this.yy)
76
+ Object.prototype.hasOwnProperty.call(this.yy, V) && (x.yy[V] = this.yy[V]);
77
+ m.setInput(s, x.yy), x.yy.lexer = m, x.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
78
+ var G = m.yylloc;
79
+ n.push(G);
80
+ var ne = m.options && m.options.ranges;
81
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
82
+ function re(b) {
83
+ a.length = a.length - 2 * b, d.length = d.length - b, n.length = n.length - b;
84
+ }
85
+ c(re, "popStack");
86
+ function Z() {
87
+ var b;
88
+ return b = o.pop() || m.lex() || Q, typeof b != "number" && (b instanceof Array && (o = b, b = o.pop()), b = t.symbols_[b] || b), b;
89
+ }
90
+ c(Z, "lex");
91
+ for (var E, v, S, j, T = {}, P, N, ee, M; ; ) {
92
+ if (v = a[a.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((E === null || typeof E > "u") && (E = Z()), S = R[v] && R[v][E]), typeof S > "u" || !S.length || !S[0]) {
93
+ var $ = "";
94
+ M = [];
95
+ for (P in R[v])
96
+ this.terminals_[P] && P > ie && M.push("'" + this.terminals_[P] + "'");
97
+ m.showPosition ? $ = "Parse error on line " + (w + 1) + `:
98
+ ` + m.showPosition() + `
99
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "Parse error on line " + (w + 1) + ": Unexpected " + (E == Q ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError($, {
100
+ text: m.match,
101
+ token: this.terminals_[E] || E,
102
+ line: m.yylineno,
103
+ loc: G,
104
+ expected: M
105
+ });
106
+ }
107
+ if (S[0] instanceof Array && S.length > 1)
108
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + E);
109
+ switch (S[0]) {
110
+ case 1:
111
+ a.push(E), d.push(m.yytext), n.push(m.yylloc), a.push(S[1]), E = null, K = m.yyleng, g = m.yytext, w = m.yylineno, G = m.yylloc;
112
+ break;
113
+ case 2:
114
+ if (N = this.productions_[S[1]][1], T.$ = d[d.length - N], T._$ = {
115
+ first_line: n[n.length - (N || 1)].first_line,
116
+ last_line: n[n.length - 1].last_line,
117
+ first_column: n[n.length - (N || 1)].first_column,
118
+ last_column: n[n.length - 1].last_column
119
+ }, ne && (T._$.range = [
120
+ n[n.length - (N || 1)].range[0],
121
+ n[n.length - 1].range[1]
122
+ ]), j = this.performAction.apply(T, [
123
+ g,
124
+ K,
125
+ w,
126
+ x.yy,
127
+ S[1],
128
+ d,
129
+ n
130
+ ].concat(se)), typeof j < "u")
131
+ return j;
132
+ N && (a = a.slice(0, -1 * N * 2), d = d.slice(0, -1 * N), n = n.slice(0, -1 * N)), a.push(this.productions_[S[1]][0]), d.push(T.$), n.push(T._$), ee = R[a[a.length - 2]][a[a.length - 1]], a.push(ee);
133
+ break;
134
+ case 3:
135
+ return !0;
136
+ }
137
+ }
138
+ return !0;
139
+ }, "parse")
140
+ }, te = /* @__PURE__ */ function() {
141
+ var L = {
142
+ EOF: 1,
143
+ parseError: /* @__PURE__ */ c(function(t, a) {
144
+ if (this.yy.parser)
145
+ this.yy.parser.parseError(t, a);
146
+ else
147
+ throw new Error(t);
148
+ }, "parseError"),
149
+ // resets the lexer, sets new input
150
+ setInput: /* @__PURE__ */ c(function(s, t) {
151
+ return this.yy = t || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
152
+ first_line: 1,
153
+ first_column: 0,
154
+ last_line: 1,
155
+ last_column: 0
156
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
157
+ }, "setInput"),
158
+ // consumes and returns one char from the input
159
+ input: /* @__PURE__ */ c(function() {
160
+ var s = this._input[0];
161
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
162
+ var t = s.match(/(?:\r\n?|\n).*/g);
163
+ return t ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
164
+ }, "input"),
165
+ // unshifts one char (or a string) into the input
166
+ unput: /* @__PURE__ */ c(function(s) {
167
+ var t = s.length, a = s.split(/(?:\r\n?|\n)/g);
168
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
169
+ var o = this.match.split(/(?:\r\n?|\n)/g);
170
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
171
+ var d = this.yylloc.range;
172
+ return this.yylloc = {
173
+ first_line: this.yylloc.first_line,
174
+ last_line: this.yylineno + 1,
175
+ first_column: this.yylloc.first_column,
176
+ last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - t
177
+ }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
178
+ }, "unput"),
179
+ // When called from action, caches matched text and appends it on next action
180
+ more: /* @__PURE__ */ c(function() {
181
+ return this._more = !0, this;
182
+ }, "more"),
183
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
184
+ reject: /* @__PURE__ */ c(function() {
185
+ if (this.options.backtrack_lexer)
186
+ this._backtrack = !0;
187
+ else
188
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
189
+ ` + this.showPosition(), {
190
+ text: "",
191
+ token: null,
192
+ line: this.yylineno
193
+ });
194
+ return this;
195
+ }, "reject"),
196
+ // retain first n characters of the match
197
+ less: /* @__PURE__ */ c(function(s) {
198
+ this.unput(this.match.slice(s));
199
+ }, "less"),
200
+ // displays already matched input, i.e. for error messages
201
+ pastInput: /* @__PURE__ */ c(function() {
202
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
203
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
204
+ }, "pastInput"),
205
+ // displays upcoming input, i.e. for error messages
206
+ upcomingInput: /* @__PURE__ */ c(function() {
207
+ var s = this.match;
208
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
209
+ }, "upcomingInput"),
210
+ // displays the character position where the lexing error occurred, i.e. for error messages
211
+ showPosition: /* @__PURE__ */ c(function() {
212
+ var s = this.pastInput(), t = new Array(s.length + 1).join("-");
213
+ return s + this.upcomingInput() + `
214
+ ` + t + "^";
215
+ }, "showPosition"),
216
+ // test the lexed token: return FALSE when not a match, otherwise return token
217
+ test_match: /* @__PURE__ */ c(function(s, t) {
218
+ var a, o, d;
219
+ if (this.options.backtrack_lexer && (d = {
220
+ yylineno: this.yylineno,
221
+ yylloc: {
222
+ first_line: this.yylloc.first_line,
223
+ last_line: this.last_line,
224
+ first_column: this.yylloc.first_column,
225
+ last_column: this.yylloc.last_column
226
+ },
227
+ yytext: this.yytext,
228
+ match: this.match,
229
+ matches: this.matches,
230
+ matched: this.matched,
231
+ yyleng: this.yyleng,
232
+ offset: this.offset,
233
+ _more: this._more,
234
+ _input: this._input,
235
+ yy: this.yy,
236
+ conditionStack: this.conditionStack.slice(0),
237
+ done: this.done
238
+ }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
239
+ first_line: this.yylloc.last_line,
240
+ last_line: this.yylineno + 1,
241
+ first_column: this.yylloc.last_column,
242
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
243
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
244
+ return a;
245
+ if (this._backtrack) {
246
+ for (var n in d)
247
+ this[n] = d[n];
248
+ return !1;
249
+ }
250
+ return !1;
251
+ }, "test_match"),
252
+ // return next match in input
253
+ next: /* @__PURE__ */ c(function() {
254
+ if (this.done)
255
+ return this.EOF;
256
+ this._input || (this.done = !0);
257
+ var s, t, a, o;
258
+ this._more || (this.yytext = "", this.match = "");
259
+ for (var d = this._currentRules(), n = 0; n < d.length; n++)
260
+ if (a = this._input.match(this.rules[d[n]]), a && (!t || a[0].length > t[0].length)) {
261
+ if (t = a, o = n, this.options.backtrack_lexer) {
262
+ if (s = this.test_match(a, d[n]), s !== !1)
263
+ return s;
264
+ if (this._backtrack) {
265
+ t = !1;
266
+ continue;
267
+ } else
268
+ return !1;
269
+ } else if (!this.options.flex)
270
+ break;
271
+ }
272
+ return t ? (s = this.test_match(t, d[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
273
+ ` + this.showPosition(), {
274
+ text: "",
275
+ token: null,
276
+ line: this.yylineno
277
+ });
278
+ }, "next"),
279
+ // return next match that has a token
280
+ lex: /* @__PURE__ */ c(function() {
281
+ var t = this.next();
282
+ return t || this.lex();
283
+ }, "lex"),
284
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
285
+ begin: /* @__PURE__ */ c(function(t) {
286
+ this.conditionStack.push(t);
287
+ }, "begin"),
288
+ // pop the previously active lexer condition state off the condition stack
289
+ popState: /* @__PURE__ */ c(function() {
290
+ var t = this.conditionStack.length - 1;
291
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
292
+ }, "popState"),
293
+ // produce the lexer rule set which is active for the currently active lexer condition state
294
+ _currentRules: /* @__PURE__ */ c(function() {
295
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
296
+ }, "_currentRules"),
297
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
298
+ topState: /* @__PURE__ */ c(function(t) {
299
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
300
+ }, "topState"),
301
+ // alias for begin(condition)
302
+ pushState: /* @__PURE__ */ c(function(t) {
303
+ this.begin(t);
304
+ }, "pushState"),
305
+ // return the number of states currently on the stack
306
+ stateStackSize: /* @__PURE__ */ c(function() {
307
+ return this.conditionStack.length;
308
+ }, "stateStackSize"),
309
+ options: { "case-insensitive": !0 },
310
+ performAction: /* @__PURE__ */ c(function(t, a, o, d) {
311
+ switch (o) {
312
+ case 0:
313
+ return t.getLogger().trace("Found comment", a.yytext), 6;
314
+ case 1:
315
+ return 8;
316
+ case 2:
317
+ this.begin("CLASS");
318
+ break;
319
+ case 3:
320
+ return this.popState(), 16;
321
+ case 4:
322
+ this.popState();
323
+ break;
324
+ case 5:
325
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
326
+ break;
327
+ case 6:
328
+ return t.getLogger().trace("SPACELINE"), 6;
329
+ case 7:
330
+ return 7;
331
+ case 8:
332
+ return 15;
333
+ case 9:
334
+ t.getLogger().trace("end icon"), this.popState();
335
+ break;
336
+ case 10:
337
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
338
+ case 11:
339
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 19;
340
+ case 12:
341
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
342
+ case 13:
343
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
344
+ case 14:
345
+ return this.begin("NODE"), 19;
346
+ case 15:
347
+ return this.begin("NODE"), 19;
348
+ case 16:
349
+ return this.begin("NODE"), 19;
350
+ case 17:
351
+ return this.begin("NODE"), 19;
352
+ case 18:
353
+ return 13;
354
+ case 19:
355
+ return 22;
356
+ case 20:
357
+ return 11;
358
+ case 21:
359
+ this.begin("NSTR2");
360
+ break;
361
+ case 22:
362
+ return "NODE_DESCR";
363
+ case 23:
364
+ this.popState();
365
+ break;
366
+ case 24:
367
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
368
+ break;
369
+ case 25:
370
+ return t.getLogger().trace("description:", a.yytext), "NODE_DESCR";
371
+ case 26:
372
+ this.popState();
373
+ break;
374
+ case 27:
375
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
376
+ case 28:
377
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
378
+ case 29:
379
+ return this.popState(), t.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
380
+ case 30:
381
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
382
+ case 31:
383
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
384
+ case 32:
385
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
386
+ case 33:
387
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
388
+ case 34:
389
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
390
+ case 35:
391
+ return t.getLogger().trace("Long description:", a.yytext), 20;
392
+ case 36:
393
+ return t.getLogger().trace("Long description:", a.yytext), 20;
394
+ }
395
+ }, "anonymous"),
396
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
397
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
398
+ };
399
+ return L;
400
+ }();
401
+ B.lexer = te;
402
+ function A() {
403
+ this.yy = {};
404
+ }
405
+ return c(A, "Parser"), A.prototype = B, B.Parser = A, new A();
406
+ }();
407
+ W.parser = W;
408
+ var fe = W, D = {
409
+ DEFAULT: 0,
410
+ NO_BORDER: 0,
411
+ ROUNDED_RECT: 1,
412
+ RECT: 2,
413
+ CIRCLE: 3,
414
+ CLOUD: 4,
415
+ BANG: 5,
416
+ HEXAGON: 6
417
+ }, C, ye = (C = class {
418
+ constructor() {
419
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = D, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
420
+ }
421
+ clear() {
422
+ this.nodes = [], this.count = 0, this.elements = {};
423
+ }
424
+ getParent(e) {
425
+ for (let i = this.nodes.length - 1; i >= 0; i--)
426
+ if (this.nodes[i].level < e)
427
+ return this.nodes[i];
428
+ return null;
429
+ }
430
+ getMindmap() {
431
+ return this.nodes.length > 0 ? this.nodes[0] : null;
432
+ }
433
+ addNode(e, i, l, u) {
434
+ O.info("addNode", e, i, l, u);
435
+ const h = H();
436
+ let f = h.mindmap?.padding ?? U.mindmap.padding;
437
+ switch (u) {
438
+ case this.nodeType.ROUNDED_RECT:
439
+ case this.nodeType.RECT:
440
+ case this.nodeType.HEXAGON:
441
+ f *= 2;
442
+ break;
443
+ }
444
+ const y = {
445
+ id: this.count++,
446
+ nodeId: F(i, h),
447
+ level: e,
448
+ descr: F(l, h),
449
+ type: u,
450
+ children: [],
451
+ width: h.mindmap?.maxNodeWidth ?? U.mindmap.maxNodeWidth,
452
+ padding: f
453
+ }, p = this.getParent(e);
454
+ if (p)
455
+ p.children.push(y), this.nodes.push(y);
456
+ else if (this.nodes.length === 0)
457
+ this.nodes.push(y);
458
+ else
459
+ throw new Error(
460
+ `There can be only one root. No parent could be found for ("${y.descr}")`
461
+ );
462
+ }
463
+ getType(e, i) {
464
+ switch (O.debug("In get type", e, i), e) {
465
+ case "[":
466
+ return this.nodeType.RECT;
467
+ case "(":
468
+ return i === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
469
+ case "((":
470
+ return this.nodeType.CIRCLE;
471
+ case ")":
472
+ return this.nodeType.CLOUD;
473
+ case "))":
474
+ return this.nodeType.BANG;
475
+ case "{{":
476
+ return this.nodeType.HEXAGON;
477
+ default:
478
+ return this.nodeType.DEFAULT;
479
+ }
480
+ }
481
+ setElementForId(e, i) {
482
+ this.elements[e] = i;
483
+ }
484
+ getElementById(e) {
485
+ return this.elements[e];
486
+ }
487
+ decorateNode(e) {
488
+ if (!e)
489
+ return;
490
+ const i = H(), l = this.nodes[this.nodes.length - 1];
491
+ e.icon && (l.icon = F(e.icon, i)), e.class && (l.class = F(e.class, i));
492
+ }
493
+ type2Str(e) {
494
+ switch (e) {
495
+ case this.nodeType.DEFAULT:
496
+ return "no-border";
497
+ case this.nodeType.RECT:
498
+ return "rect";
499
+ case this.nodeType.ROUNDED_RECT:
500
+ return "rounded-rect";
501
+ case this.nodeType.CIRCLE:
502
+ return "circle";
503
+ case this.nodeType.CLOUD:
504
+ return "cloud";
505
+ case this.nodeType.BANG:
506
+ return "bang";
507
+ case this.nodeType.HEXAGON:
508
+ return "hexgon";
509
+ // cspell: disable-line
510
+ default:
511
+ return "no-border";
512
+ }
513
+ }
514
+ /**
515
+ * Assign section numbers to nodes based on their position relative to root
516
+ * @param node - The mindmap node to process
517
+ * @param sectionNumber - The section number to assign (undefined for root)
518
+ */
519
+ assignSections(e, i) {
520
+ if (e.level === 0 ? e.section = void 0 : e.section = i, e.children)
521
+ for (const [l, u] of e.children.entries()) {
522
+ const h = e.level === 0 ? l : i;
523
+ this.assignSections(u, h);
524
+ }
525
+ }
526
+ /**
527
+ * Convert mindmap tree structure to flat array of nodes
528
+ * @param node - The mindmap node to process
529
+ * @param processedNodes - Array to collect processed nodes
530
+ */
531
+ flattenNodes(e, i) {
532
+ const l = ["mindmap-node"];
533
+ e.level === 0 ? l.push("section-root", "section--1") : e.section !== void 0 && l.push(`section-${e.section}`), e.class && l.push(e.class);
534
+ const u = l.join(" "), h = /* @__PURE__ */ c((y) => {
535
+ switch (y) {
536
+ case D.CIRCLE:
537
+ return "mindmapCircle";
538
+ case D.RECT:
539
+ return "rect";
540
+ case D.ROUNDED_RECT:
541
+ return "rounded";
542
+ case D.CLOUD:
543
+ return "cloud";
544
+ case D.BANG:
545
+ return "bang";
546
+ case D.HEXAGON:
547
+ return "hexagon";
548
+ case D.DEFAULT:
549
+ return "defaultMindmapNode";
550
+ case D.NO_BORDER:
551
+ default:
552
+ return "rect";
553
+ }
554
+ }, "getShapeFromType"), f = {
555
+ id: e.id.toString(),
556
+ domId: "node_" + e.id.toString(),
557
+ label: e.descr,
558
+ isGroup: !1,
559
+ shape: h(e.type),
560
+ width: e.width,
561
+ height: e.height ?? 0,
562
+ padding: e.padding,
563
+ cssClasses: u,
564
+ cssStyles: [],
565
+ look: "default",
566
+ icon: e.icon,
567
+ x: e.x,
568
+ y: e.y,
569
+ // Mindmap-specific properties
570
+ level: e.level,
571
+ nodeId: e.nodeId,
572
+ type: e.type,
573
+ section: e.section
574
+ };
575
+ if (i.push(f), e.children)
576
+ for (const y of e.children)
577
+ this.flattenNodes(y, i);
578
+ }
579
+ /**
580
+ * Generate edges from parent-child relationships in mindmap tree
581
+ * @param node - The mindmap node to process
582
+ * @param edges - Array to collect edges
583
+ */
584
+ generateEdges(e, i) {
585
+ if (e.children)
586
+ for (const l of e.children) {
587
+ let u = "edge";
588
+ l.section !== void 0 && (u += ` section-edge-${l.section}`);
589
+ const h = e.level + 1;
590
+ u += ` edge-depth-${h}`;
591
+ const f = {
592
+ id: `edge_${e.id}_${l.id}`,
593
+ start: e.id.toString(),
594
+ end: l.id.toString(),
595
+ type: "normal",
596
+ curve: "basis",
597
+ thickness: "normal",
598
+ look: "default",
599
+ classes: u,
600
+ // Store mindmap-specific data
601
+ depth: e.level,
602
+ section: l.section
603
+ };
604
+ i.push(f), this.generateEdges(l, i);
605
+ }
606
+ }
607
+ /**
608
+ * Get structured data for layout algorithms
609
+ * Following the pattern established by ER diagrams
610
+ * @returns Structured data containing nodes, edges, and config
611
+ */
612
+ getData() {
613
+ const e = this.getMindmap(), i = H(), u = he().layout !== void 0, h = i;
614
+ if (u || (h.layout = "cose-bilkent"), !e)
615
+ return {
616
+ nodes: [],
617
+ edges: [],
618
+ config: h
619
+ };
620
+ O.debug("getData: mindmapRoot", e, i), this.assignSections(e);
621
+ const f = [], y = [];
622
+ this.flattenNodes(e, f), this.generateEdges(e, y), O.debug(
623
+ `getData: processed ${f.length} nodes and ${y.length} edges`
624
+ );
625
+ const p = /* @__PURE__ */ new Map();
626
+ for (const k of f)
627
+ p.set(k.id, {
628
+ shape: k.shape,
629
+ width: k.width,
630
+ height: k.height,
631
+ padding: k.padding
632
+ });
633
+ return {
634
+ nodes: f,
635
+ edges: y,
636
+ config: h,
637
+ // Store the root node for mindmap-specific layout algorithms
638
+ rootNode: e,
639
+ // Properties required by dagre layout algorithm
640
+ markers: ["point"],
641
+ // Mindmaps don't use markers
642
+ direction: "TB",
643
+ // Top-to-bottom direction for mindmaps
644
+ nodeSpacing: 50,
645
+ // Default spacing between nodes
646
+ rankSpacing: 50,
647
+ // Default spacing between ranks
648
+ // Add shapes for ELK compatibility
649
+ shapes: Object.fromEntries(p),
650
+ // Additional properties that layout algorithms might expect
651
+ type: "mindmap",
652
+ diagramId: "mindmap-" + ge()
653
+ };
654
+ }
655
+ // Expose logger to grammar
656
+ getLogger() {
657
+ return O;
658
+ }
659
+ }, c(C, "MindmapDB"), C), me = /* @__PURE__ */ c(async (r, e, i, l) => {
660
+ O.debug(`Rendering mindmap diagram
661
+ ` + r);
662
+ const u = l.db, h = u.getData(), f = ae(e, h.config.securityLevel);
663
+ h.type = l.type, h.layoutAlgorithm = ce(h.config.layout, {
664
+ fallback: "cose-bilkent"
665
+ }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((p) => {
666
+ p.shape === "rounded" ? (p.radius = 15, p.taper = 15, p.stroke = "none", p.width = 0, p.padding = 15) : p.shape === "circle" ? p.padding = 10 : p.shape === "rect" && (p.width = 0, p.padding = 10);
667
+ }), await le(h, f), oe(
668
+ f,
669
+ h.config.mindmap?.padding ?? U.mindmap.padding,
670
+ "mindmapDiagram",
671
+ h.config.mindmap?.useMaxWidth ?? U.mindmap.useMaxWidth
672
+ ));
673
+ }, "draw"), Ee = {
674
+ draw: me
675
+ }, _e = /* @__PURE__ */ c((r) => {
676
+ let e = "";
677
+ for (let i = 0; i < r.THEME_COLOR_LIMIT; i++)
678
+ r["lineColor" + i] = r["lineColor" + i] || r["cScaleInv" + i], de(r["lineColor" + i]) ? r["lineColor" + i] = ue(r["lineColor" + i], 20) : r["lineColor" + i] = pe(r["lineColor" + i], 20);
679
+ for (let i = 0; i < r.THEME_COLOR_LIMIT; i++) {
680
+ const l = "" + (17 - 3 * i);
681
+ e += `
682
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
683
+ fill: ${r["cScale" + i]};
684
+ }
685
+ .section-${i - 1} text {
686
+ fill: ${r["cScaleLabel" + i]};
687
+ }
688
+ .node-icon-${i - 1} {
689
+ font-size: 40px;
690
+ color: ${r["cScaleLabel" + i]};
691
+ }
692
+ .section-edge-${i - 1}{
693
+ stroke: ${r["cScale" + i]};
694
+ }
695
+ .edge-depth-${i - 1}{
696
+ stroke-width: ${l};
697
+ }
698
+ .section-${i - 1} line {
699
+ stroke: ${r["cScaleInv" + i]} ;
700
+ stroke-width: 3;
701
+ }
702
+
703
+ .disabled, .disabled circle, .disabled text {
704
+ fill: lightgray;
705
+ }
706
+ .disabled text {
707
+ fill: #efefef;
708
+ }
709
+ `;
710
+ }
711
+ return e;
712
+ }, "genSections"), be = /* @__PURE__ */ c((r) => `
713
+ .edge {
714
+ stroke-width: 3;
715
+ }
716
+ ${_e(r)}
717
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
718
+ fill: ${r.git0};
719
+ }
720
+ .section-root text {
721
+ fill: ${r.gitBranchLabel0};
722
+ }
723
+ .section-root span {
724
+ color: ${r.gitBranchLabel0};
725
+ }
726
+ .section-2 span {
727
+ color: ${r.gitBranchLabel0};
728
+ }
729
+ .icon-container {
730
+ height:100%;
731
+ display: flex;
732
+ justify-content: center;
733
+ align-items: center;
734
+ }
735
+ .edge {
736
+ fill: none;
737
+ }
738
+ .mindmap-node-label {
739
+ dy: 1em;
740
+ alignment-baseline: middle;
741
+ text-anchor: middle;
742
+ dominant-baseline: middle;
743
+ text-align: center;
744
+ }
745
+ `, "getStyles"), Se = be, Le = {
746
+ get db() {
747
+ return new ye();
748
+ },
749
+ renderer: Ee,
750
+ parser: fe,
751
+ styles: Se
752
+ };
753
+ export {
754
+ Le as diagram
755
+ };