@sme.up/ketchup2 2.10.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.
- package/dist/{abnfDiagram-VCTEODGH-jIDWUpNo.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
- package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
- package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-C1xA1c3c.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
- package/dist/assets/svg/magnify-minus.svg +1 -0
- package/dist/assets/svg/magnify-plus.svg +1 -0
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +8 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +13 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-types.d.ts +4 -0
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/basic-components/slider/slider.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +7 -2
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-C0hlmHW8.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-DwTMAxzR.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-f53BROgh.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-DPhiW07t.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-CLjRECiG.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-Cnp61Cie.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-D9v_2L4Z.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1078 -984
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
- package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
- package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
- package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
- package/dist/{chunk-SHT3W25Y-aBBFlrSX.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-667SFjNY.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-qg1q5TTI.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-z0rQy52m.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-BJ9OHC7T.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-DzrOz9kL.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar-available-height.d.ts +14 -0
- package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
- package/dist/components/calendar/calendar-types.d.ts +20 -8
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +94 -37
- package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-event-text.d.ts +14 -3
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-month-grid.d.ts +4 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-time-grid.d.ts +4 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
- package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
- package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +191 -38
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +6 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer-types.d.ts +22 -8
- package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts +29 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +11 -5
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
- package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
- package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/header/header-types.d.ts +32 -21
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
- package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +14 -7
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
- package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +24 -5
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -1
- package/dist/components/echarts-graph/echarts-graph.d.ts +10 -7
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +7 -1
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/json-form/document-adapter.test.d.ts +2 -0
- package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
- package/dist/components/json-form/model/document-adapter.d.ts +54 -0
- package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
- package/dist/components/json-form/model/json-pointer.d.ts +20 -0
- package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
- package/dist/components/json-form/model/native-json-types.d.ts +5 -0
- package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
- package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
- package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
- package/dist/components/json-form/rule-controller.test.d.ts +2 -0
- package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
- package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
- package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
- package/dist/components/pdf/pdf-types.d.ts +17 -2
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +30 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/context/test-utils.d.ts.map +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
- package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3SByb22K.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
- package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
- package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
- package/dist/{diagram-VX7I27RA-DX39g4aO.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-IhyDbKSO.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CdX3XaQX.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-CPDZJAkA.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
- package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
- package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-D0cmYo-k.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
- package/dist/echarts-C7ehbnCk.js +15485 -0
- package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
- package/dist/{erDiagram-RLTQ6QDP-C-nlwQZa.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
- package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
- package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
- package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/functional-components/row/row-types.d.ts +27 -1
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-qQkBgEV6.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D8cZBZXB.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useVirtualListScroll.d.ts +7 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
- package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
- package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
- package/dist/{ishikawaDiagram-5VMMS53U-B0RvuZyG.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-Dh8_Vc4e.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-C99A4PsR.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
- package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +25049 -70453
- package/dist/{line-CkNoVxEr.js → line-ltPB6XbC.js} +1 -1
- package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
- package/dist/locale/en/translation.json.d.ts +36 -5
- package/dist/locale/it/translation.json.d.ts +36 -5
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-D0ULN6M8.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-BThnA3Uk.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-CJ4LPitY.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-nEwzg95_.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
- package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
- package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-D_9gvx5m.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-BU3gTMjQ.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-BmNN-6y3.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-QYJxbuz_.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
- package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
- package/dist/{chunk-IMKFNOWR-yyUcHorm.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-DkMzBkx7.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-AvgVPsM_.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
- package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
- package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
- package/dist/types/data-structures.d.ts +11 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +7 -2
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +35 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/object-styles.d.ts +12 -0
- package/dist/utils/object-styles.d.ts.map +1 -0
- package/dist/utils/object-styles.test.d.ts +2 -0
- package/dist/utils/object-styles.test.d.ts.map +1 -0
- package/dist/utils/totals/totals-registry.d.ts +17 -0
- package/dist/utils/totals/totals-registry.d.ts.map +1 -0
- package/dist/utils/totals/totals-utils.d.ts +70 -7
- package/dist/utils/totals/totals-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/list.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DBz_EnfL.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-D4U_E7xl.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-aHqeFP13.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +5 -3
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-BD0NTdCR.js +0 -5
- package/dist/chunk-2E4U76K2-CMCSmJ5_.js +0 -348
- package/dist/chunk-4HAMMTFA-DBtV-sHy.js +0 -4188
- package/dist/chunk-CLGD4ZFX-DdntjE3C.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-Dd1FmxFn.js +0 -245
- package/dist/chunk-POPQ4Y6H-YFNrkrJW.js +0 -26
- package/dist/chunk-TLUHSLCS-Drk6ApJR.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +0 -30
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +0 -14
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +0 -1
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +0 -11
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ--Qf92cTs.js +0 -425
- package/dist/diagram-Z3DM3KII-DECfAI1l.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-LRjksS-j.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-DXO97_PJ.js +0 -20
- package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
- package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
- package/dist/stateDiagram-D77RDMKH-0Jasv70t.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +0 -31
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup2",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Sme.UP web components library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Smeup LAB <info@smeup.com> (https://www.smeup.com/)",
|
|
@@ -52,12 +52,13 @@
|
|
|
52
52
|
"test:visual:list": "ts-node test/visual/list-visual-stories.ts"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@sme.up/design-token-dictionary": "2.
|
|
55
|
+
"@sme.up/design-token-dictionary": "2.11.0",
|
|
56
|
+
"ajv": "8.20.0",
|
|
56
57
|
"d3-hierarchy": "^3.1.2",
|
|
57
58
|
"dompurify": "^3.4.14",
|
|
58
59
|
"bpmn-js": "^18.25.1",
|
|
59
60
|
"echarts": "^6.1.0",
|
|
60
|
-
"mermaid": "^
|
|
61
|
+
"mermaid": "^12.2.0",
|
|
61
62
|
"pdfjs-dist": "^6.2.108",
|
|
62
63
|
"react-svg": "^19.1.4"
|
|
63
64
|
},
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
"@testing-library/react": "^16.3.2",
|
|
73
74
|
"@types/css-modules": "^1.0.5",
|
|
74
75
|
"@types/d3-hierarchy": "^3.1.7",
|
|
76
|
+
"@types/json-schema": "7.0.15",
|
|
75
77
|
"@types/react": "^19.2.18",
|
|
76
78
|
"@types/react-dom": "^19.2.4",
|
|
77
79
|
"@vitejs/plugin-react": "^6.1.0",
|
package/dist/channel-BD0NTdCR.js
DELETED
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./src-DQoflmwT.js";
|
|
2
|
-
import { b as t, x as n } from "./chunk-DU6HZSFF-D9v_2L4Z.js";
|
|
3
|
-
import { n as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
-
import { g as i } from "./chunk-75Z2AOVW-CLjRECiG.js";
|
|
5
|
-
import { a } from "./chunk-4HAMMTFA-DBtV-sHy.js";
|
|
6
|
-
import { i as o, n as s, r as c, t as l } from "./chunk-GVQU2GXP-BJ9OHC7T.js";
|
|
7
|
-
import { n as u, t as d } from "./chunk-L3NEJ4N5-Dd1FmxFn.js";
|
|
8
|
-
import { a as f, i as p, l as m, n as h, r as g, s as _, t as v } from "./chunk-OSK3NFVY-qg1q5TTI.js";
|
|
9
|
-
import { t as y } from "./graphlib-XW-Jr8pF.js";
|
|
10
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-2E4U76K2.mjs
|
|
11
|
-
function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
12
|
-
let n = e.insert("g").attr("class", "root");
|
|
13
|
-
return {
|
|
14
|
-
clusters: n.insert("g").attr("class", "clusters"),
|
|
15
|
-
edgePaths: n.insert("g").attr("class", t),
|
|
16
|
-
edgeLabels: n.insert("g").attr("class", "edgeLabels"),
|
|
17
|
-
nodes: n.insert("g").attr("class", "nodes"),
|
|
18
|
-
rootGroups: n
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
r(b, "createLayoutElementGroups");
|
|
22
|
-
async function x(e, t) {
|
|
23
|
-
if (t.label) {
|
|
24
|
-
let { shapeSvg: n, bbox: r } = await a(e, t);
|
|
25
|
-
t.labelBBox = {
|
|
26
|
-
width: r.width,
|
|
27
|
-
height: r.height
|
|
28
|
-
}, n.remove();
|
|
29
|
-
} else t.labelBBox = {
|
|
30
|
-
width: 0,
|
|
31
|
-
height: 0
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
r(x, "measureGroupLabel");
|
|
35
|
-
async function S(e, t, n) {
|
|
36
|
-
let r = await c(e, t, n), i = r.node()?.getBBox() ?? {
|
|
37
|
-
width: 0,
|
|
38
|
-
height: 0
|
|
39
|
-
};
|
|
40
|
-
return t.width = i.width, t.height = i.height, r;
|
|
41
|
-
}
|
|
42
|
-
r(S, "insertMeasuredNode");
|
|
43
|
-
async function C(e, t) {
|
|
44
|
-
let r = new y({
|
|
45
|
-
multigraph: !0,
|
|
46
|
-
compound: !0
|
|
47
|
-
}), i = [...t.edges], a = n(), o = b(e), { edgeLabels: s, nodes: c } = o, l = /* @__PURE__ */ new Map(), u = e.node() != null;
|
|
48
|
-
await Promise.all(t.nodes.map(async (e) => {
|
|
49
|
-
if (e.isGroup) u && await x(c, e), r.setNode(e.id, { ...e });
|
|
50
|
-
else {
|
|
51
|
-
if (u) {
|
|
52
|
-
let t = await S(c, e, {
|
|
53
|
-
config: a,
|
|
54
|
-
dir: e.dir
|
|
55
|
-
});
|
|
56
|
-
l.set(e.id, t);
|
|
57
|
-
}
|
|
58
|
-
r.setNode(e.id, { ...e });
|
|
59
|
-
}
|
|
60
|
-
}));
|
|
61
|
-
for (let e of i) u && g(e) && await f(s, e), r.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
62
|
-
if (globalThis.mermaidCaptureSizes) {
|
|
63
|
-
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-CHXIsPO_.js");
|
|
64
|
-
n(e, t);
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
graph: r,
|
|
68
|
-
groups: o,
|
|
69
|
-
nodeElements: l
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
r(C, "createGraphWithElements");
|
|
73
|
-
var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ r(() => {
|
|
74
|
-
T.clear(), E.clear(), w.clear();
|
|
75
|
-
}, "clear"), O = /* @__PURE__ */ r((t, n) => {
|
|
76
|
-
let r = T.get(n) || [];
|
|
77
|
-
return e.trace("In isDescendant", n, " ", t, " = ", r.includes(t)), r.includes(t);
|
|
78
|
-
}, "isDescendant"), k = /* @__PURE__ */ r((t, n) => {
|
|
79
|
-
let r = T.get(n) || [];
|
|
80
|
-
return e.info("Descendants of ", n, " is ", r), e.info("Edge is ", t), t.v === n || t.w === n ? !1 : r ? r.includes(t.v) || O(t.v, n) || O(t.w, n) || r.includes(t.w) : (e.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
81
|
-
}, "edgeInCluster"), A = /* @__PURE__ */ r((t, n, r, i) => {
|
|
82
|
-
e.debug("Copying children of ", t, "root", i, "data", n.node(t), i);
|
|
83
|
-
let a = n.children(t) || [];
|
|
84
|
-
t !== i && a.push(t), e.debug("Copying (nodes) clusterId", t, "nodes", a), a.forEach((a) => {
|
|
85
|
-
if (n.children(a).length > 0) A(a, n, r, i);
|
|
86
|
-
else {
|
|
87
|
-
let o = n.node(a);
|
|
88
|
-
e.info("cp ", a, " to ", i, " with parent ", t), r.setNode(a, o), i !== n.parent(a) && (e.debug("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), t !== i && a !== t ? (e.debug("Setting parent", a, t), r.setParent(a, t)) : (e.info("In copy ", t, "root", i, "data", n.node(t), i), e.debug("Not Setting parent for node=", a, "cluster!==rootId", t !== i, "node!==clusterId", a !== t));
|
|
89
|
-
let s = n.edges(a);
|
|
90
|
-
e.debug("Copying Edges", s), s.forEach((a) => {
|
|
91
|
-
e.info("Edge", a);
|
|
92
|
-
let o = n.edge(a.v, a.w, a.name);
|
|
93
|
-
e.info("Edge data", o, i);
|
|
94
|
-
try {
|
|
95
|
-
k(a, i) ? (e.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), e.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : e.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", t);
|
|
96
|
-
} catch (t) {
|
|
97
|
-
e.error(t);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
e.debug("Removing node", a), n.removeNode(a);
|
|
102
|
-
});
|
|
103
|
-
}, "copy"), j = /* @__PURE__ */ r((e, t) => {
|
|
104
|
-
let n = t.children(e), r = [...n];
|
|
105
|
-
for (let i of n) E.set(i, e), r = [...r, ...j(i, t)];
|
|
106
|
-
return r;
|
|
107
|
-
}, "extractDescendants"), M = /* @__PURE__ */ r((e, t, n) => {
|
|
108
|
-
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
109
|
-
v: e.v === t ? n : e.v,
|
|
110
|
-
w: e.w === t ? t : e.w
|
|
111
|
-
})), o = i.map((e) => ({
|
|
112
|
-
v: e.v,
|
|
113
|
-
w: e.w
|
|
114
|
-
}));
|
|
115
|
-
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
116
|
-
}, "findCommonEdges"), N = /* @__PURE__ */ r((t, n, r) => {
|
|
117
|
-
let i = n.children(t);
|
|
118
|
-
if (e.trace("Searching children of id ", t, i), i.length < 1) return t;
|
|
119
|
-
let a;
|
|
120
|
-
for (let e of i) {
|
|
121
|
-
let t = N(e, n, r), i = M(n, r, t);
|
|
122
|
-
if (t) {
|
|
123
|
-
if (i.length > 0) a = t;
|
|
124
|
-
else return t;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return a;
|
|
128
|
-
}, "findNonClusterChild"), P = /* @__PURE__ */ r((e) => !w.has(e) || !w.get(e).externalConnections ? e : w.has(e) ? w.get(e).id : e, "getAnchorId"), F = /* @__PURE__ */ r((t, n) => {
|
|
129
|
-
if (!t || n > 10) {
|
|
130
|
-
e.debug("Opting out, no graph ");
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
e.debug("Opting in, graph "), t.nodes().forEach(function(n) {
|
|
134
|
-
t.children(n).length > 0 && (e.debug("Cluster identified", n, " Replacement id in edges: ", N(n, t, n)), T.set(n, j(n, t)), w.set(n, {
|
|
135
|
-
id: N(n, t, n),
|
|
136
|
-
clusterData: t.node(n)
|
|
137
|
-
}));
|
|
138
|
-
}), t.nodes().forEach(function(n) {
|
|
139
|
-
let r = t.children(n), i = t.edges();
|
|
140
|
-
r.length > 0 ? (e.debug("Cluster identified", n, T), i.forEach((t) => {
|
|
141
|
-
O(t.v, n) ^ O(t.w, n) && (e.debug("Edge: ", t, " leaves cluster ", n), e.debug("Descendants of XXX ", n, ": ", T.get(n)), w.get(n).externalConnections = !0);
|
|
142
|
-
})) : e.debug("Not a cluster ", n, T);
|
|
143
|
-
});
|
|
144
|
-
for (let e of w.keys()) {
|
|
145
|
-
let n = w.get(e).id, r = t.parent(n);
|
|
146
|
-
r !== e && w.has(r) && !w.get(r).externalConnections && (w.get(e).id = r);
|
|
147
|
-
let i = t.edges().some((t) => t.v === e);
|
|
148
|
-
if (n && w.get(e)?.externalConnections && i && z(t, n, e)) {
|
|
149
|
-
let r = B(t, e, t.parent(n));
|
|
150
|
-
r && (w.get(e).id = r);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
t.edges().forEach(function(n) {
|
|
154
|
-
let r = t.edge(n);
|
|
155
|
-
e.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), e.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(t.edge(n)));
|
|
156
|
-
let i = n.v, a = n.w;
|
|
157
|
-
if (e.debug("Fix XXX", w, "ids:", n.v, n.w, "Translating: ", w.get(n.v), " --- ", w.get(n.w)), w.get(n.v) || w.get(n.w)) {
|
|
158
|
-
if (e.debug("Fixing and trying - removing XXX", n.v, n.w, n.name), i = P(n.v), a = P(n.w), t.removeEdge(n.v, n.w, n.name), i !== n.v) {
|
|
159
|
-
let e = t.parent(i);
|
|
160
|
-
w.get(e).externalConnections = !0, r.fromCluster = n.v;
|
|
161
|
-
}
|
|
162
|
-
if (a !== n.w) {
|
|
163
|
-
let e = t.parent(a);
|
|
164
|
-
w.get(e).externalConnections = !0, r.toCluster = n.w;
|
|
165
|
-
}
|
|
166
|
-
e.debug("Fix Replacing with XXX", i, a, n.name), t.setEdge(i, a, r, n.name);
|
|
167
|
-
}
|
|
168
|
-
}), I(t, 0), e.trace(w);
|
|
169
|
-
}, "adjustClustersAndEdges"), I = /* @__PURE__ */ r((t, n) => {
|
|
170
|
-
if (n > 10) {
|
|
171
|
-
e.error("Bailing out");
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
let r = t.nodes(), i = !1;
|
|
175
|
-
for (let e of r) {
|
|
176
|
-
let n = t.children(e);
|
|
177
|
-
i ||= n.length > 0;
|
|
178
|
-
}
|
|
179
|
-
if (!i) {
|
|
180
|
-
e.debug("Done, no node has children", t.nodes());
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
e.debug("Nodes = ", r, n);
|
|
184
|
-
for (let i of r) if (e.debug("Extracting node", i, w, w.has(i) && !w.get(i).externalConnections, !t.parent(i), t.node(i), t.children("D"), " Depth ", n), !w.has(i)) e.debug("Not a cluster", i, n);
|
|
185
|
-
else if (!w.get(i).externalConnections && t.children(i) && t.children(i).length > 0) {
|
|
186
|
-
e.debug("Cluster without external connections, without a parent and with children", i, n);
|
|
187
|
-
let r = t.graph().rankdir === "TB" ? "LR" : "TB";
|
|
188
|
-
w.get(i)?.clusterData?.dir && (r = w.get(i).clusterData.dir, e.debug("Fixing dir", w.get(i).clusterData.dir, r));
|
|
189
|
-
let a = new y({
|
|
190
|
-
multigraph: !0,
|
|
191
|
-
compound: !0
|
|
192
|
-
}).setGraph({
|
|
193
|
-
rankdir: r,
|
|
194
|
-
nodesep: 50,
|
|
195
|
-
ranksep: 50,
|
|
196
|
-
marginx: 8,
|
|
197
|
-
marginy: 8
|
|
198
|
-
}).setDefaultEdgeLabel(function() {
|
|
199
|
-
return {};
|
|
200
|
-
});
|
|
201
|
-
A(i, t, a, i), t.setNode(i, {
|
|
202
|
-
clusterNode: !0,
|
|
203
|
-
id: i,
|
|
204
|
-
clusterData: w.get(i).clusterData,
|
|
205
|
-
label: w.get(i).label,
|
|
206
|
-
graph: a
|
|
207
|
-
});
|
|
208
|
-
} else e.debug("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !w.get(i).externalConnections, " no parent: ", !t.parent(i), " children ", t.children(i) && t.children(i).length > 0, t.children("D"), n), e.debug(w);
|
|
209
|
-
r = t.nodes(), e.debug("New list of nodes", r);
|
|
210
|
-
for (let i of r) {
|
|
211
|
-
let r = t.node(i);
|
|
212
|
-
e.debug(" Now next level", i, r), r?.clusterNode && I(r.graph, n + 1);
|
|
213
|
-
}
|
|
214
|
-
}, "extractor"), L = /* @__PURE__ */ r((e, t) => {
|
|
215
|
-
if (t.length === 0) return [];
|
|
216
|
-
let n = Object.assign([], t);
|
|
217
|
-
return t.forEach((t) => {
|
|
218
|
-
let r = L(e, e.children(t));
|
|
219
|
-
n = [...n, ...r];
|
|
220
|
-
}), n;
|
|
221
|
-
}, "sorter"), R = /* @__PURE__ */ r((e) => L(e, e.children()), "sortNodesByHierarchy"), z = /* @__PURE__ */ r((e, t, n) => {
|
|
222
|
-
let r = e.parent(t);
|
|
223
|
-
for (; r && r !== n;) {
|
|
224
|
-
let t = w.get(r);
|
|
225
|
-
if (t && !t.externalConnections) return !0;
|
|
226
|
-
r = e.parent(r);
|
|
227
|
-
}
|
|
228
|
-
return !1;
|
|
229
|
-
}, "isNodeInExtractableCluster"), B = /* @__PURE__ */ r((e, t, n) => {
|
|
230
|
-
let r = e.children(t) ?? [];
|
|
231
|
-
for (let i of r) {
|
|
232
|
-
if (i === n || O(i, n)) continue;
|
|
233
|
-
let r = N(i, e, t);
|
|
234
|
-
if (r && !z(e, r, t)) return r;
|
|
235
|
-
}
|
|
236
|
-
return null;
|
|
237
|
-
}, "findSafeAnchorNode");
|
|
238
|
-
function V({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout: i, afterPaint: a, paintOptions: o }) {
|
|
239
|
-
let s = t ?? U;
|
|
240
|
-
return /* @__PURE__ */ r(async function(t, r, c, l) {
|
|
241
|
-
let u = r.select("g");
|
|
242
|
-
(c?.insertMarkers ?? _)(u, t.markers, t.type, t.diagramId), H();
|
|
243
|
-
let d = {
|
|
244
|
-
element: u,
|
|
245
|
-
helpers: c,
|
|
246
|
-
options: l
|
|
247
|
-
};
|
|
248
|
-
d.preparedLayout = await e?.(t, d);
|
|
249
|
-
let f = await s(t, d), p = await n(t, d), m = {
|
|
250
|
-
...d,
|
|
251
|
-
measure: f
|
|
252
|
-
};
|
|
253
|
-
i ? await i(t, m, p) : await W(t, m, o), await a?.(t, m, p);
|
|
254
|
-
}, "render");
|
|
255
|
-
}
|
|
256
|
-
r(V, "createCommonLayoutRenderer");
|
|
257
|
-
function H() {
|
|
258
|
-
l(), v(), d(), D();
|
|
259
|
-
}
|
|
260
|
-
r(H, "clearLayoutRenderState");
|
|
261
|
-
async function U(e, { element: t }) {
|
|
262
|
-
return await C(t, e);
|
|
263
|
-
}
|
|
264
|
-
r(U, "defaultMeasureLayout");
|
|
265
|
-
async function W(e, t, n = {}) {
|
|
266
|
-
let { measure: r } = t, { groups: i } = r;
|
|
267
|
-
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await G(i, r, t, n);
|
|
268
|
-
let a = q(e.nodes);
|
|
269
|
-
for (let r of e.edges) J(r, n) || await Y(i, r, a, e, n, t);
|
|
270
|
-
}
|
|
271
|
-
r(W, "paintLayoutData");
|
|
272
|
-
async function G(e, t, n, r) {
|
|
273
|
-
t.clusterNode ? o(t) : K(t, n, r) ? await u(e.clusters, t) : o(t);
|
|
274
|
-
}
|
|
275
|
-
r(G, "paintLayoutNode");
|
|
276
|
-
function K(e, t, n) {
|
|
277
|
-
return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
|
|
278
|
-
}
|
|
279
|
-
r(K, "shouldPaintAsCluster");
|
|
280
|
-
function q(e) {
|
|
281
|
-
let t = /* @__PURE__ */ new Map();
|
|
282
|
-
for (let n of e) n?.id && t.set(n.id, n);
|
|
283
|
-
return t;
|
|
284
|
-
}
|
|
285
|
-
r(q, "buildNodeLookup");
|
|
286
|
-
function J(e, t) {
|
|
287
|
-
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
288
|
-
}
|
|
289
|
-
r(J, "shouldSkipPaintEdge");
|
|
290
|
-
async function Y(e, t, n, r, i, a) {
|
|
291
|
-
let o = p(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, X(t.start, t, n, a, i), X(t.end, t, n, a, i), r.diagramId, Z(t, i));
|
|
292
|
-
g(t) && (h.has(t.id) || await f(e.edgeLabels, t), Q(t, o));
|
|
293
|
-
}
|
|
294
|
-
r(Y, "paintLayoutEdge");
|
|
295
|
-
function X(e, t, n, r, i) {
|
|
296
|
-
return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
|
|
297
|
-
}
|
|
298
|
-
r(X, "getRenderedNode");
|
|
299
|
-
function Z(e, t) {
|
|
300
|
-
return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
|
|
301
|
-
}
|
|
302
|
-
r(Z, "shouldSkipIntersect");
|
|
303
|
-
function Q(n, r) {
|
|
304
|
-
let a = r?.updatedPath ?? r?.originalPath, o = t(), { subGraphTitleTotalMargin: c } = s({ flowchart: o.flowchart ?? {} });
|
|
305
|
-
if (n.label) {
|
|
306
|
-
let t = h.get(n.id), o = n.x, s = n.y;
|
|
307
|
-
if (a) {
|
|
308
|
-
let t = i.calcLabelPosition(a);
|
|
309
|
-
e.debug("Moving label " + n.label + " from (", o, ",", s, ") to (", t.x, ",", t.y, ") abc88"), r?.updatedPath && (o = t.x, s = t.y);
|
|
310
|
-
}
|
|
311
|
-
t.attr("transform", `translate(${o}, ${s + c / 2})`);
|
|
312
|
-
}
|
|
313
|
-
if (n?.startLabelLeft) {
|
|
314
|
-
let e = m.get(n.id).startLeft, t = n?.x, r = n?.y;
|
|
315
|
-
if (a) {
|
|
316
|
-
let e = i.calcTerminalLabelPosition(n.arrowTypeStart ? 10 : 0, "start_left", a);
|
|
317
|
-
t = e.x, r = e.y;
|
|
318
|
-
}
|
|
319
|
-
e.attr("transform", `translate(${t}, ${r})`);
|
|
320
|
-
}
|
|
321
|
-
if (n.startLabelRight) {
|
|
322
|
-
let e = m.get(n.id).startRight, t = n.x, r = n.y;
|
|
323
|
-
if (a) {
|
|
324
|
-
let e = i.calcTerminalLabelPosition(n.arrowTypeStart ? 10 : 0, "start_right", a);
|
|
325
|
-
t = e.x, r = e.y;
|
|
326
|
-
}
|
|
327
|
-
e.attr("transform", `translate(${t}, ${r})`);
|
|
328
|
-
}
|
|
329
|
-
if (n.endLabelLeft) {
|
|
330
|
-
let e = m.get(n.id).endLeft, t = n.x, r = n.y;
|
|
331
|
-
if (a) {
|
|
332
|
-
let e = i.calcTerminalLabelPosition(n.arrowTypeEnd ? 10 : 0, "end_left", a);
|
|
333
|
-
t = e.x, r = e.y;
|
|
334
|
-
}
|
|
335
|
-
e.attr("transform", `translate(${t}, ${r})`);
|
|
336
|
-
}
|
|
337
|
-
if (n.endLabelRight) {
|
|
338
|
-
let e = m.get(n.id).endRight, t = n.x, r = n.y;
|
|
339
|
-
if (a) {
|
|
340
|
-
let e = i.calcTerminalLabelPosition(n.arrowTypeEnd ? 10 : 0, "end_right", a);
|
|
341
|
-
t = e.x, r = e.y;
|
|
342
|
-
}
|
|
343
|
-
e.attr("transform", `translate(${t}, ${r})`);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
r(Q, "positionRenderedEdgeLabel");
|
|
347
|
-
//#endregion
|
|
348
|
-
export { N as a, b as i, w as n, S as o, V as r, R as s, F as t };
|