@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
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as v } from "./mermaid-parser.core-
|
|
1
|
+
import { C as e, H as t, U as n, X as r, _ as i, a, b as o, f as s, q as c, s as l, v as u, y as d } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
|
|
2
|
+
import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
|
+
import { m as p, p as m } from "./src-CY9Rz0Sf.js";
|
|
4
|
+
import { _ as h, h as g, i as _ } from "./chunk-7S6XSTFO-CN6S2H1-.js";
|
|
5
|
+
import { n as v } from "./mermaid-parser.core-zUi7tSl-.js";
|
|
6
6
|
import { t as y } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
7
7
|
import { t as b } from "./chunk-2Q5K7J3B-kzxEEeTu.js";
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PDYL7XHY.mjs
|
|
9
9
|
var x = {
|
|
10
10
|
NORMAL: 0,
|
|
11
11
|
REVERSE: 1,
|
|
12
12
|
HIGHLIGHT: 2,
|
|
13
13
|
MERGE: 3,
|
|
14
14
|
CHERRY_PICK: 4
|
|
15
|
-
}, ee =
|
|
15
|
+
}, ee = s.gitGraph, S = /* @__PURE__ */ f(() => _({
|
|
16
16
|
...ee,
|
|
17
|
-
...
|
|
17
|
+
...d().gitGraph
|
|
18
18
|
}), "getConfig"), C = new b(() => {
|
|
19
19
|
let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
20
20
|
return {
|
|
@@ -33,9 +33,9 @@ var x = {
|
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
function w() {
|
|
36
|
-
return
|
|
36
|
+
return g({ length: 7 });
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
f(w, "getID");
|
|
39
39
|
function T(e, t) {
|
|
40
40
|
let n = /* @__PURE__ */ Object.create(null);
|
|
41
41
|
return e.reduce((e, r) => {
|
|
@@ -43,161 +43,161 @@ function T(e, t) {
|
|
|
43
43
|
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
44
44
|
}, []);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
var te = /* @__PURE__ */
|
|
46
|
+
f(T, "uniqBy");
|
|
47
|
+
var te = /* @__PURE__ */ f(function(e) {
|
|
48
48
|
C.records.direction = e;
|
|
49
|
-
}, "setDirection"), ne = /* @__PURE__ */
|
|
50
|
-
|
|
49
|
+
}, "setDirection"), ne = /* @__PURE__ */ f(function(e) {
|
|
50
|
+
p.debug("options str", e), e = e?.trim(), e ||= "{}";
|
|
51
51
|
try {
|
|
52
|
-
C.records.options = JSON.parse(
|
|
53
|
-
} catch (
|
|
54
|
-
|
|
52
|
+
C.records.options = JSON.parse(e);
|
|
53
|
+
} catch (e) {
|
|
54
|
+
p.error("error while parsing gitGraph options", e.message);
|
|
55
55
|
}
|
|
56
|
-
}, "setOptions"), re = /* @__PURE__ */
|
|
56
|
+
}, "setOptions"), re = /* @__PURE__ */ f(function() {
|
|
57
57
|
return C.records.options;
|
|
58
|
-
}, "getOptions"), ie = /* @__PURE__ */
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
|
|
63
|
-
let
|
|
64
|
-
id:
|
|
65
|
-
message:
|
|
58
|
+
}, "getOptions"), ie = /* @__PURE__ */ f(function(e) {
|
|
59
|
+
let t = e.msg, n = e.id, r = e.type, i = e.tags;
|
|
60
|
+
p.info("commit", t, n, r, i), p.debug("Entering commit:", t, n, r, i);
|
|
61
|
+
let a = S();
|
|
62
|
+
n = l.sanitizeText(n, a), t = l.sanitizeText(t, a), i = i?.map((e) => l.sanitizeText(e, a));
|
|
63
|
+
let o = {
|
|
64
|
+
id: n || C.records.seq + "-" + w(),
|
|
65
|
+
message: t,
|
|
66
66
|
seq: C.records.seq++,
|
|
67
|
-
type:
|
|
68
|
-
tags:
|
|
67
|
+
type: r ?? x.NORMAL,
|
|
68
|
+
tags: i ?? [],
|
|
69
69
|
parents: C.records.head == null ? [] : [C.records.head.id],
|
|
70
70
|
branch: C.records.currBranch
|
|
71
71
|
};
|
|
72
|
-
C.records.head =
|
|
73
|
-
}, "commit"), ae = /* @__PURE__ */
|
|
74
|
-
let
|
|
75
|
-
if (
|
|
76
|
-
C.records.branches.set(
|
|
77
|
-
name:
|
|
78
|
-
order:
|
|
79
|
-
}), E(
|
|
80
|
-
}, "branch"), oe = /* @__PURE__ */
|
|
81
|
-
let
|
|
82
|
-
|
|
83
|
-
let
|
|
84
|
-
if (
|
|
85
|
-
if (C.records.currBranch ===
|
|
72
|
+
C.records.head = o, p.info("main branch", a.mainBranchName), C.records.commits.has(o.id) && p.warn(`Commit ID ${o.id} already exists`), C.records.commits.set(o.id, o), C.records.branches.set(C.records.currBranch, o.id), p.debug("in pushCommit " + o.id);
|
|
73
|
+
}, "commit"), ae = /* @__PURE__ */ f(function(e) {
|
|
74
|
+
let t = e.name, n = e.order;
|
|
75
|
+
if (t = l.sanitizeText(t, S()), C.records.branches.has(t)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);
|
|
76
|
+
C.records.branches.set(t, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(t, {
|
|
77
|
+
name: t,
|
|
78
|
+
order: n
|
|
79
|
+
}), E(t), p.debug("in createBranch");
|
|
80
|
+
}, "branch"), oe = /* @__PURE__ */ f((e) => {
|
|
81
|
+
let t = e.branch, n = e.id, r = e.type, i = e.tags, a = S();
|
|
82
|
+
t = l.sanitizeText(t, a), n &&= l.sanitizeText(n, a);
|
|
83
|
+
let o = C.records.branches.get(C.records.currBranch), s = C.records.branches.get(t), c = o ? C.records.commits.get(o) : void 0, u = s ? C.records.commits.get(s) : void 0;
|
|
84
|
+
if (c && u && c.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
|
|
85
|
+
if (C.records.currBranch === t) {
|
|
86
86
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
87
87
|
throw e.hash = {
|
|
88
|
-
text: `merge ${
|
|
89
|
-
token: `merge ${
|
|
88
|
+
text: `merge ${t}`,
|
|
89
|
+
token: `merge ${t}`,
|
|
90
90
|
expected: ["branch abc"]
|
|
91
91
|
}, e;
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
93
|
+
if (c === void 0 || !c) {
|
|
94
94
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
|
|
95
95
|
throw e.hash = {
|
|
96
|
-
text: `merge ${
|
|
97
|
-
token: `merge ${
|
|
96
|
+
text: `merge ${t}`,
|
|
97
|
+
token: `merge ${t}`,
|
|
98
98
|
expected: ["commit"]
|
|
99
99
|
}, e;
|
|
100
100
|
}
|
|
101
|
-
if (!C.records.branches.has(
|
|
102
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" +
|
|
101
|
+
if (!C.records.branches.has(t)) {
|
|
102
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
|
|
103
103
|
throw e.hash = {
|
|
104
|
-
text: `merge ${
|
|
105
|
-
token: `merge ${
|
|
106
|
-
expected: [`branch ${
|
|
104
|
+
text: `merge ${t}`,
|
|
105
|
+
token: `merge ${t}`,
|
|
106
|
+
expected: [`branch ${t}`]
|
|
107
107
|
}, e;
|
|
108
108
|
}
|
|
109
|
-
if (
|
|
110
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" +
|
|
109
|
+
if (u === void 0 || !u) {
|
|
110
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
|
|
111
111
|
throw e.hash = {
|
|
112
|
-
text: `merge ${
|
|
113
|
-
token: `merge ${
|
|
112
|
+
text: `merge ${t}`,
|
|
113
|
+
token: `merge ${t}`,
|
|
114
114
|
expected: ["\"commit\""]
|
|
115
115
|
}, e;
|
|
116
116
|
}
|
|
117
|
-
if (
|
|
117
|
+
if (c === u) {
|
|
118
118
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
119
119
|
throw e.hash = {
|
|
120
|
-
text: `merge ${
|
|
121
|
-
token: `merge ${
|
|
120
|
+
text: `merge ${t}`,
|
|
121
|
+
token: `merge ${t}`,
|
|
122
122
|
expected: ["branch abc"]
|
|
123
123
|
}, e;
|
|
124
124
|
}
|
|
125
|
-
if (
|
|
126
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" +
|
|
125
|
+
if (n && C.records.commits.has(n)) {
|
|
126
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
|
|
127
127
|
throw e.hash = {
|
|
128
|
-
text: `merge ${
|
|
129
|
-
token: `merge ${
|
|
130
|
-
expected: [`merge ${
|
|
128
|
+
text: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
|
|
129
|
+
token: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
|
|
130
|
+
expected: [`merge ${t} ${n}_UNIQUE ${r} ${i?.join(" ")}`]
|
|
131
131
|
}, e;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
id:
|
|
135
|
-
message: `merged branch ${
|
|
133
|
+
let d = s || "", f = {
|
|
134
|
+
id: n || `${C.records.seq}-${w()}`,
|
|
135
|
+
message: `merged branch ${t} into ${C.records.currBranch}`,
|
|
136
136
|
seq: C.records.seq++,
|
|
137
|
-
parents: C.records.head == null ? [] : [C.records.head.id,
|
|
137
|
+
parents: C.records.head == null ? [] : [C.records.head.id, d],
|
|
138
138
|
branch: C.records.currBranch,
|
|
139
139
|
type: x.MERGE,
|
|
140
|
-
customType:
|
|
141
|
-
customId: !!
|
|
142
|
-
tags:
|
|
140
|
+
customType: r,
|
|
141
|
+
customId: !!n,
|
|
142
|
+
tags: i ?? []
|
|
143
143
|
};
|
|
144
|
-
C.records.head =
|
|
145
|
-
}, "merge"), se = /* @__PURE__ */
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
-
let
|
|
149
|
-
if (
|
|
144
|
+
C.records.head = f, C.records.commits.set(f.id, f), C.records.branches.set(C.records.currBranch, f.id), p.debug(C.records.branches), p.debug("in mergeBranch");
|
|
145
|
+
}, "merge"), se = /* @__PURE__ */ f(function(e) {
|
|
146
|
+
let t = e.id, n = e.targetId, r = e.tags, i = e.parent;
|
|
147
|
+
p.debug("Entering cherryPick:", t, n, r);
|
|
148
|
+
let a = S();
|
|
149
|
+
if (t = l.sanitizeText(t, a), n = l.sanitizeText(n, a), r = r?.map((e) => l.sanitizeText(e, a)), i = l.sanitizeText(i, a), !t || !C.records.commits.has(t)) {
|
|
150
150
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
151
151
|
throw e.hash = {
|
|
152
|
-
text: `cherryPick ${
|
|
153
|
-
token: `cherryPick ${
|
|
152
|
+
text: `cherryPick ${t} ${n}`,
|
|
153
|
+
token: `cherryPick ${t} ${n}`,
|
|
154
154
|
expected: ["cherry-pick abc"]
|
|
155
155
|
}, e;
|
|
156
156
|
}
|
|
157
|
-
let
|
|
158
|
-
if (
|
|
159
|
-
if (
|
|
160
|
-
let
|
|
161
|
-
if (
|
|
162
|
-
if (!
|
|
163
|
-
if (
|
|
157
|
+
let o = C.records.commits.get(t);
|
|
158
|
+
if (o === void 0 || !o) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
159
|
+
if (i && !(Array.isArray(o.parents) && o.parents.includes(i))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
160
|
+
let s = o.branch;
|
|
161
|
+
if (o.type === x.MERGE && !i) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
|
|
162
|
+
if (!n || !C.records.commits.has(n)) {
|
|
163
|
+
if (s === C.records.currBranch) {
|
|
164
164
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
165
165
|
throw e.hash = {
|
|
166
|
-
text: `cherryPick ${
|
|
167
|
-
token: `cherryPick ${
|
|
166
|
+
text: `cherryPick ${t} ${n}`,
|
|
167
|
+
token: `cherryPick ${t} ${n}`,
|
|
168
168
|
expected: ["cherry-pick abc"]
|
|
169
169
|
}, e;
|
|
170
170
|
}
|
|
171
|
-
let
|
|
172
|
-
if (
|
|
171
|
+
let e = C.records.branches.get(C.records.currBranch);
|
|
172
|
+
if (e === void 0 || !e) {
|
|
173
173
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
|
|
174
174
|
throw e.hash = {
|
|
175
|
-
text: `cherryPick ${
|
|
176
|
-
token: `cherryPick ${
|
|
175
|
+
text: `cherryPick ${t} ${n}`,
|
|
176
|
+
token: `cherryPick ${t} ${n}`,
|
|
177
177
|
expected: ["cherry-pick abc"]
|
|
178
178
|
}, e;
|
|
179
179
|
}
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
180
|
+
let a = C.records.commits.get(e);
|
|
181
|
+
if (a === void 0 || !a) {
|
|
182
182
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
|
|
183
183
|
throw e.hash = {
|
|
184
|
-
text: `cherryPick ${
|
|
185
|
-
token: `cherryPick ${
|
|
184
|
+
text: `cherryPick ${t} ${n}`,
|
|
185
|
+
token: `cherryPick ${t} ${n}`,
|
|
186
186
|
expected: ["cherry-pick abc"]
|
|
187
187
|
}, e;
|
|
188
188
|
}
|
|
189
|
-
let
|
|
189
|
+
let c = {
|
|
190
190
|
id: C.records.seq + "-" + w(),
|
|
191
|
-
message: `cherry-picked ${
|
|
191
|
+
message: `cherry-picked ${o?.message} into ${C.records.currBranch}`,
|
|
192
192
|
seq: C.records.seq++,
|
|
193
|
-
parents: C.records.head == null ? [] : [C.records.head.id,
|
|
193
|
+
parents: C.records.head == null ? [] : [C.records.head.id, o.id],
|
|
194
194
|
branch: C.records.currBranch,
|
|
195
195
|
type: x.CHERRY_PICK,
|
|
196
|
-
tags:
|
|
196
|
+
tags: r ? r.filter(Boolean) : [`cherry-pick:${o.id}${o.type === x.MERGE ? `|parent:${i}` : ""}`]
|
|
197
197
|
};
|
|
198
|
-
C.records.head =
|
|
198
|
+
C.records.head = c, C.records.commits.set(c.id, c), C.records.branches.set(C.records.currBranch, c.id), p.debug(C.records.branches), p.debug("in cherryPick");
|
|
199
199
|
}
|
|
200
|
-
}, "cherryPick"), E = /* @__PURE__ */
|
|
200
|
+
}, "cherryPick"), E = /* @__PURE__ */ f(function(e) {
|
|
201
201
|
if (e = l.sanitizeText(e, S()), C.records.branches.has(e)) {
|
|
202
202
|
C.records.currBranch = e;
|
|
203
203
|
let t = C.records.branches.get(C.records.currBranch);
|
|
@@ -215,49 +215,49 @@ function D(e, t, n) {
|
|
|
215
215
|
let r = e.indexOf(t);
|
|
216
216
|
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
function O(
|
|
220
|
-
let
|
|
221
|
-
|
|
222
|
-
|
|
218
|
+
f(D, "upsert");
|
|
219
|
+
function O(e) {
|
|
220
|
+
let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
|
|
221
|
+
e.forEach(function(e) {
|
|
222
|
+
n += e === t ? " *" : " |";
|
|
223
223
|
});
|
|
224
|
-
let
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
let r = [
|
|
225
|
+
n,
|
|
226
|
+
t.id,
|
|
227
|
+
t.seq
|
|
228
228
|
];
|
|
229
|
-
for (let e in C.records.branches) C.records.branches.get(e) ===
|
|
230
|
-
if (
|
|
231
|
-
let
|
|
232
|
-
D(t, n
|
|
233
|
-
} else if (
|
|
234
|
-
else if (
|
|
235
|
-
let
|
|
236
|
-
D(t, n
|
|
229
|
+
for (let e in C.records.branches) C.records.branches.get(e) === t.id && r.push(e);
|
|
230
|
+
if (p.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
|
|
231
|
+
let n = C.records.commits.get(t.parents[0]);
|
|
232
|
+
D(e, t, n), t.parents[1] && e.push(C.records.commits.get(t.parents[1]));
|
|
233
|
+
} else if (t.parents.length == 0) return;
|
|
234
|
+
else if (t.parents[0]) {
|
|
235
|
+
let n = C.records.commits.get(t.parents[0]);
|
|
236
|
+
D(e, t, n);
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
e = T(e, (e) => e.id), O(e);
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
var ce = /* @__PURE__ */
|
|
242
|
-
|
|
243
|
-
let
|
|
244
|
-
O([
|
|
245
|
-
}, "prettyPrint"), le = /* @__PURE__ */
|
|
246
|
-
C.reset(),
|
|
247
|
-
}, "clear"), ue = /* @__PURE__ */
|
|
240
|
+
f(O, "prettyPrintCommitHistory");
|
|
241
|
+
var ce = /* @__PURE__ */ f(function() {
|
|
242
|
+
p.debug(C.records.commits);
|
|
243
|
+
let e = k()[0];
|
|
244
|
+
O([e]);
|
|
245
|
+
}, "prettyPrint"), le = /* @__PURE__ */ f(function() {
|
|
246
|
+
C.reset(), a();
|
|
247
|
+
}, "clear"), ue = /* @__PURE__ */ f(function() {
|
|
248
248
|
return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
249
249
|
...e,
|
|
250
250
|
order: parseFloat(`0.${t}`)
|
|
251
251
|
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
252
|
-
}, "getBranchesAsObjArray"), de = /* @__PURE__ */
|
|
252
|
+
}, "getBranchesAsObjArray"), de = /* @__PURE__ */ f(function() {
|
|
253
253
|
return C.records.branches;
|
|
254
|
-
}, "getBranches"), fe = /* @__PURE__ */
|
|
254
|
+
}, "getBranches"), fe = /* @__PURE__ */ f(function() {
|
|
255
255
|
return C.records.commits;
|
|
256
|
-
}, "getCommits"), k = /* @__PURE__ */
|
|
257
|
-
let
|
|
258
|
-
return
|
|
259
|
-
|
|
260
|
-
}),
|
|
256
|
+
}, "getCommits"), k = /* @__PURE__ */ f(function() {
|
|
257
|
+
let e = [...C.records.commits.values()];
|
|
258
|
+
return e.forEach(function(e) {
|
|
259
|
+
p.debug(e.id);
|
|
260
|
+
}), e.sort((e, t) => e.seq - t.seq), e;
|
|
261
261
|
}, "getCommitsArray"), A = {
|
|
262
262
|
commitType: x,
|
|
263
263
|
getConfig: S,
|
|
@@ -275,54 +275,54 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
275
275
|
getBranches: de,
|
|
276
276
|
getCommits: fe,
|
|
277
277
|
getCommitsArray: k,
|
|
278
|
-
getCurrentBranch: /* @__PURE__ */
|
|
278
|
+
getCurrentBranch: /* @__PURE__ */ f(function() {
|
|
279
279
|
return C.records.currBranch;
|
|
280
280
|
}, "getCurrentBranch"),
|
|
281
|
-
getDirection: /* @__PURE__ */
|
|
281
|
+
getDirection: /* @__PURE__ */ f(function() {
|
|
282
282
|
return C.records.direction;
|
|
283
283
|
}, "getDirection"),
|
|
284
|
-
getHead: /* @__PURE__ */
|
|
284
|
+
getHead: /* @__PURE__ */ f(function() {
|
|
285
285
|
return C.records.head;
|
|
286
286
|
}, "getHead"),
|
|
287
|
-
setAccTitle:
|
|
288
|
-
getAccTitle:
|
|
289
|
-
getAccDescription:
|
|
290
|
-
setAccDescription:
|
|
291
|
-
setDiagramTitle:
|
|
292
|
-
getDiagramTitle:
|
|
293
|
-
}, pe = /* @__PURE__ */
|
|
287
|
+
setAccTitle: n,
|
|
288
|
+
getAccTitle: u,
|
|
289
|
+
getAccDescription: i,
|
|
290
|
+
setAccDescription: t,
|
|
291
|
+
setDiagramTitle: c,
|
|
292
|
+
getDiagramTitle: e
|
|
293
|
+
}, pe = /* @__PURE__ */ f((e, t) => {
|
|
294
294
|
y(e, t), e.dir && t.setDirection(e.dir);
|
|
295
295
|
for (let n of e.statements) me(n, t);
|
|
296
|
-
}, "populate"), me = /* @__PURE__ */
|
|
297
|
-
let
|
|
298
|
-
Commit: /* @__PURE__ */
|
|
299
|
-
Branch: /* @__PURE__ */
|
|
300
|
-
Merge: /* @__PURE__ */
|
|
301
|
-
Checkout: /* @__PURE__ */
|
|
302
|
-
CherryPicking: /* @__PURE__ */
|
|
303
|
-
}[
|
|
304
|
-
|
|
305
|
-
}, "parseStatement"), he = /* @__PURE__ */
|
|
296
|
+
}, "populate"), me = /* @__PURE__ */ f((e, t) => {
|
|
297
|
+
let n = {
|
|
298
|
+
Commit: /* @__PURE__ */ f((e) => t.commit(he(e)), "Commit"),
|
|
299
|
+
Branch: /* @__PURE__ */ f((e) => t.branch(ge(e)), "Branch"),
|
|
300
|
+
Merge: /* @__PURE__ */ f((e) => t.merge(_e(e)), "Merge"),
|
|
301
|
+
Checkout: /* @__PURE__ */ f((e) => t.checkout(ve(e)), "Checkout"),
|
|
302
|
+
CherryPicking: /* @__PURE__ */ f((e) => t.cherryPick(ye(e)), "CherryPicking")
|
|
303
|
+
}[e.$type];
|
|
304
|
+
n ? n(e) : p.error(`Unknown statement type: ${e.$type}`);
|
|
305
|
+
}, "parseStatement"), he = /* @__PURE__ */ f((e) => ({
|
|
306
306
|
id: e.id,
|
|
307
307
|
msg: e.message ?? "",
|
|
308
308
|
type: e.type === void 0 ? x.NORMAL : x[e.type],
|
|
309
309
|
tags: e.tags ?? void 0
|
|
310
|
-
}), "parseCommit"), ge = /* @__PURE__ */
|
|
310
|
+
}), "parseCommit"), ge = /* @__PURE__ */ f((e) => ({
|
|
311
311
|
name: e.name,
|
|
312
312
|
order: e.order ?? 0
|
|
313
|
-
}), "parseBranch"), _e = /* @__PURE__ */
|
|
313
|
+
}), "parseBranch"), _e = /* @__PURE__ */ f((e) => ({
|
|
314
314
|
branch: e.branch,
|
|
315
315
|
id: e.id ?? "",
|
|
316
316
|
type: e.type === void 0 ? void 0 : x[e.type],
|
|
317
317
|
tags: e.tags ?? void 0
|
|
318
|
-
}), "parseMerge"), ve = /* @__PURE__ */
|
|
318
|
+
}), "parseMerge"), ve = /* @__PURE__ */ f((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ f((e) => ({
|
|
319
319
|
id: e.id,
|
|
320
320
|
targetId: "",
|
|
321
321
|
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
322
322
|
parent: e.parent
|
|
323
|
-
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */
|
|
324
|
-
let
|
|
325
|
-
|
|
323
|
+
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */ f(async (e) => {
|
|
324
|
+
let t = await v("gitGraph", e);
|
|
325
|
+
p.debug(t), pe(t, A);
|
|
326
326
|
}, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
|
|
327
327
|
"redux",
|
|
328
328
|
"redux-dark",
|
|
@@ -333,38 +333,38 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
333
333
|
"redux-dark",
|
|
334
334
|
"redux-dark-color",
|
|
335
335
|
"neo-dark"
|
|
336
|
-
]), z = /* @__PURE__ */
|
|
336
|
+
]), z = /* @__PURE__ */ f((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR", q = /* @__PURE__ */ f(() => {
|
|
337
337
|
B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
|
|
338
|
-
}, "clear"),
|
|
338
|
+
}, "clear"), J = /* @__PURE__ */ f((e) => {
|
|
339
339
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
340
340
|
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
341
341
|
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
342
342
|
n.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), n.setAttribute("dy", "1em"), n.setAttribute("x", "0"), n.setAttribute("class", "row"), n.textContent = e.trim(), t.appendChild(n);
|
|
343
343
|
}), t;
|
|
344
|
-
}, "drawText"),
|
|
344
|
+
}, "drawText"), Y = /* @__PURE__ */ f((e) => {
|
|
345
345
|
let t, n, r;
|
|
346
|
-
return K === "BT" ? (n = /* @__PURE__ */
|
|
346
|
+
return K === "BT" ? (n = /* @__PURE__ */ f((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ f((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
|
|
347
347
|
let i = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
|
|
348
348
|
i !== void 0 && n(i, r) && (t = e, r = i);
|
|
349
349
|
}), t;
|
|
350
|
-
}, "findClosestParent"),
|
|
350
|
+
}, "findClosestParent"), Se = /* @__PURE__ */ f((e) => {
|
|
351
351
|
let t = "", n = Infinity;
|
|
352
352
|
return e.forEach((e) => {
|
|
353
353
|
let r = V.get(e).y;
|
|
354
354
|
r <= n && (t = e, n = r);
|
|
355
355
|
}), t || void 0;
|
|
356
|
-
}, "findClosestParentBT"),
|
|
356
|
+
}, "findClosestParentBT"), Ce = /* @__PURE__ */ f((e, t, n) => {
|
|
357
357
|
let r = n, i = n, a = [];
|
|
358
358
|
e.forEach((e) => {
|
|
359
359
|
let n = t.get(e);
|
|
360
360
|
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
361
|
-
n.parents.length ? (r =
|
|
361
|
+
n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
|
|
362
362
|
}), r = i, a.forEach((e) => {
|
|
363
|
-
|
|
363
|
+
De(e, r, n);
|
|
364
364
|
}), e.forEach((e) => {
|
|
365
365
|
let n = t.get(e);
|
|
366
366
|
if (n?.parents.length) {
|
|
367
|
-
let e =
|
|
367
|
+
let e = Se(n.parents);
|
|
368
368
|
r = V.get(e).y - M, r <= i && (i = r);
|
|
369
369
|
let t = B.get(n.branch).pos, a = r - j;
|
|
370
370
|
V.set(n.id, {
|
|
@@ -373,13 +373,13 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
-
}, "setParallelBTPos"),
|
|
377
|
-
let t =
|
|
376
|
+
}, "setParallelBTPos"), we = /* @__PURE__ */ f((e) => {
|
|
377
|
+
let t = Y(e.parents.filter((e) => e !== null));
|
|
378
378
|
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
379
379
|
let n = V.get(t)?.y;
|
|
380
380
|
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
381
381
|
return n;
|
|
382
|
-
}, "findClosestParentPos"),
|
|
382
|
+
}, "findClosestParentPos"), Te = /* @__PURE__ */ f((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ f((e, t) => {
|
|
383
383
|
let n = B.get(e.branch);
|
|
384
384
|
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
385
385
|
let r = n.pos, i = t + j;
|
|
@@ -390,7 +390,7 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
390
390
|
x: r,
|
|
391
391
|
y: i
|
|
392
392
|
};
|
|
393
|
-
}, "setCommitPosition"),
|
|
393
|
+
}, "setCommitPosition"), De = /* @__PURE__ */ f((e, t, n) => {
|
|
394
394
|
let r = B.get(e.branch);
|
|
395
395
|
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
396
396
|
let i = t + n, a = r.pos;
|
|
@@ -398,22 +398,22 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
398
398
|
x: a,
|
|
399
399
|
y: i
|
|
400
400
|
});
|
|
401
|
-
}, "setRootPosition"),
|
|
402
|
-
let { theme:
|
|
403
|
-
if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (
|
|
404
|
-
else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r",
|
|
401
|
+
}, "setRootPosition"), Oe = /* @__PURE__ */ f((e, t, n, r, i, a) => {
|
|
402
|
+
let { theme: s } = o(), c = I.has(s ?? ""), l = R.has(s ?? ""), u = xe.has(s ?? "");
|
|
403
|
+
if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (c ? 3 : 0)).attr("y", n.y - 10 + (c ? 3 : 0)).attr("width", c ? 14 : 20).attr("height", c ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, l)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (c ? 2 : 0)).attr("y", n.y - 6 + (c ? 2 : 0)).attr("width", c ? 8 : 12).attr("height", c ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, l)} ${r}-inner`);
|
|
404
|
+
else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", c ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", c ? 2.5 : 2.75).attr("fill", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", c ? 2.5 : 2.75).attr("fill", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
405
405
|
else {
|
|
406
406
|
let o = e.append("circle");
|
|
407
|
-
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r",
|
|
407
|
+
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", c ? 7 : 10), o.attr("class", `commit ${t.id} commit${z(i, F, l)}`), a === x.MERGE) {
|
|
408
408
|
let a = e.append("circle");
|
|
409
|
-
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r",
|
|
409
|
+
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", c ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${z(i, F, l)}`);
|
|
410
410
|
}
|
|
411
411
|
if (a === x.REVERSE) {
|
|
412
|
-
let a = e.append("path"), o =
|
|
413
|
-
a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F,
|
|
412
|
+
let a = e.append("path"), o = c ? 4 : 5;
|
|
413
|
+
a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F, l)}`);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
}, "drawCommitBullet"),
|
|
416
|
+
}, "drawCommitBullet"), ke = /* @__PURE__ */ f((e, t, n, r, i) => {
|
|
417
417
|
if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
|
|
418
418
|
let a = e.append("g"), o = a.insert("rect").attr("class", "commit-label-bkg"), s = a.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), c = s.node()?.getBBox();
|
|
419
419
|
if (c && (o.attr("x", n.posWithOffset - c.width / 2 - P).attr("y", n.y + 13.5).attr("width", c.width + 2 * P).attr("height", c.height + 2 * P), K === "TB" || K === "BT" ? (o.attr("x", n.x - (c.width + 4 * N + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * N)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) {
|
|
@@ -424,7 +424,7 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
}, "drawCommitLabel"),
|
|
427
|
+
}, "drawCommitLabel"), Ae = /* @__PURE__ */ f((e, t, n, r) => {
|
|
428
428
|
if (t.tags.length > 0) {
|
|
429
429
|
let i = 0, a = 0, o = 0, s = [];
|
|
430
430
|
for (let r of t.tags.reverse()) {
|
|
@@ -457,7 +457,7 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
}, "drawCommitTags"),
|
|
460
|
+
}, "drawCommitTags"), je = /* @__PURE__ */ f((e) => {
|
|
461
461
|
switch (e.customType ?? e.type) {
|
|
462
462
|
case x.NORMAL: return "commit-normal";
|
|
463
463
|
case x.REVERSE: return "commit-reverse";
|
|
@@ -466,13 +466,13 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
466
466
|
case x.CHERRY_PICK: return "commit-cherry-pick";
|
|
467
467
|
default: return "commit-normal";
|
|
468
468
|
}
|
|
469
|
-
}, "getCommitClassType"),
|
|
469
|
+
}, "getCommitClassType"), Me = /* @__PURE__ */ f((e, t, n, r) => {
|
|
470
470
|
let i = {
|
|
471
471
|
x: 0,
|
|
472
472
|
y: 0
|
|
473
473
|
};
|
|
474
474
|
if (e.parents.length > 0) {
|
|
475
|
-
let n =
|
|
475
|
+
let n = Y(e.parents);
|
|
476
476
|
if (n) {
|
|
477
477
|
let a = r.get(n) ?? i;
|
|
478
478
|
return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
|
|
@@ -481,28 +481,28 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
481
481
|
else if (t === "BT") return (r.get(e.id) ?? i).y - M;
|
|
482
482
|
else return 0;
|
|
483
483
|
return 0;
|
|
484
|
-
}, "calculatePosition"),
|
|
484
|
+
}, "calculatePosition"), Ne = /* @__PURE__ */ f((e, t, n) => {
|
|
485
485
|
let r = K === "BT" && n ? t : t + j, i = B.get(e.branch)?.pos, a = K === "TB" || K === "BT" ? B.get(e.branch)?.pos : r;
|
|
486
486
|
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
487
|
-
let
|
|
487
|
+
let s = I.has(o().theme ?? "");
|
|
488
488
|
return {
|
|
489
489
|
x: a,
|
|
490
|
-
y: K === "TB" || K === "BT" ? r : i + (
|
|
490
|
+
y: K === "TB" || K === "BT" ? r : i + (s ? L / 2 + 1 : -2),
|
|
491
491
|
posWithOffset: r
|
|
492
492
|
};
|
|
493
|
-
}, "getCommitPosition"),
|
|
494
|
-
let i = e.append("g").attr("class", "commit-bullets"), a = e.append("g").attr("class", "commit-labels"), o = K === "TB" || K === "BT" ? H : 0, s = [...t.keys()], c = r.parallelCommits ?? !1, l = /* @__PURE__ */
|
|
493
|
+
}, "getCommitPosition"), X = /* @__PURE__ */ f((e, t, n, r) => {
|
|
494
|
+
let i = e.append("g").attr("class", "commit-bullets"), a = e.append("g").attr("class", "commit-labels"), o = K === "TB" || K === "BT" ? H : 0, s = [...t.keys()], c = r.parallelCommits ?? !1, l = /* @__PURE__ */ f((e, n) => {
|
|
495
495
|
let r = t.get(e)?.seq, i = t.get(n)?.seq;
|
|
496
496
|
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
497
497
|
}, "sortKeys"), u = s.sort(l);
|
|
498
|
-
K === "BT" && (c &&
|
|
498
|
+
K === "BT" && (c && Ce(u, t, o), u = u.reverse()), u.forEach((e) => {
|
|
499
499
|
let s = t.get(e);
|
|
500
500
|
if (!s) throw Error(`Commit not found for key ${e}`);
|
|
501
|
-
c && (o =
|
|
502
|
-
let l =
|
|
501
|
+
c && (o = Me(s, K, o, V));
|
|
502
|
+
let l = Ne(s, o, c);
|
|
503
503
|
if (n) {
|
|
504
|
-
let e =
|
|
505
|
-
|
|
504
|
+
let e = je(s), t = s.customType ?? s.type, n = B.get(s.branch)?.index ?? 0;
|
|
505
|
+
Oe(i, s, l, e, n, t), ke(a, s, l, o, r), Ae(a, s, l, o);
|
|
506
506
|
}
|
|
507
507
|
K === "TB" || K === "BT" ? V.set(s.id, {
|
|
508
508
|
x: l.x,
|
|
@@ -512,80 +512,80 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
512
512
|
y: l.y
|
|
513
513
|
}), o = K === "BT" && c ? o + M : o + M + j, o > G && (G = o);
|
|
514
514
|
});
|
|
515
|
-
}, "drawCommits"),
|
|
516
|
-
let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */
|
|
515
|
+
}, "drawCommits"), Pe = /* @__PURE__ */ f((e, t, n, r, i) => {
|
|
516
|
+
let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */ f((e) => e.branch === a, "isOnBranchToGetCurve"), s = /* @__PURE__ */ f((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
|
|
517
517
|
return [...i.values()].some((e) => s(e) && o(e));
|
|
518
|
-
}, "shouldRerouteArrow"),
|
|
518
|
+
}, "shouldRerouteArrow"), Z = /* @__PURE__ */ f((e, t, n = 0) => {
|
|
519
519
|
let r = e + Math.abs(e - t) / 2;
|
|
520
|
-
return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) :
|
|
521
|
-
}, "findLane"),
|
|
522
|
-
let { theme: i } =
|
|
523
|
-
if (
|
|
524
|
-
let
|
|
520
|
+
return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : Z(e, t - Math.abs(e - t) / 5, n + 1);
|
|
521
|
+
}, "findLane"), Fe = /* @__PURE__ */ f((e, t, n, r) => {
|
|
522
|
+
let { theme: i } = o(), a = R.has(i ?? ""), s = V.get(t.id), c = V.get(n.id);
|
|
523
|
+
if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
524
|
+
let l = Pe(t, n, s, c, r), u = "", d = "", f = 0, p = 0, m = B.get(n.branch)?.index;
|
|
525
525
|
n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
|
|
526
526
|
let h;
|
|
527
|
-
if (
|
|
528
|
-
|
|
529
|
-
let e =
|
|
530
|
-
K === "TB" ?
|
|
531
|
-
} else
|
|
527
|
+
if (l) {
|
|
528
|
+
u = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, p = 10;
|
|
529
|
+
let e = s.y < c.y ? Z(s.y, c.y) : Z(c.y, s.y), n = s.x < c.x ? Z(s.x, c.x) : Z(c.x, s.x);
|
|
530
|
+
K === "TB" ? s.x < c.x ? h = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${d} ${n} ${s.y + p} L ${n} ${c.y - f} ${u} ${n + p} ${c.y} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${u} ${n} ${s.y + p} L ${n} ${c.y - f} ${d} ${n - p} ${c.y} L ${c.x} ${c.y}`) : K === "BT" ? s.x < c.x ? h = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${u} ${n} ${s.y - p} L ${n} ${c.y + f} ${d} ${n + p} ${c.y} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${d} ${n} ${s.y - p} L ${n} ${c.y + f} ${u} ${n - p} ${c.y} L ${c.x} ${c.y}`) : s.y < c.y ? h = `M ${s.x} ${s.y} L ${s.x} ${e - f} ${u} ${s.x + p} ${e} L ${c.x - f} ${e} ${d} ${c.x} ${e + p} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${s.x} ${e + f} ${d} ${s.x + p} ${e} L ${c.x - f} ${e} ${u} ${c.x} ${e - p} L ${c.x} ${c.y}`);
|
|
531
|
+
} else u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, K === "TB" ? (s.x < c.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${d} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${u} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x === c.x && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : K === "BT" ? (s.x < c.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${u} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${d} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x === c.x && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
|
|
532
532
|
if (h === void 0) throw Error("Line definition not found");
|
|
533
533
|
e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
|
|
534
|
-
}, "drawArrow"),
|
|
534
|
+
}, "drawArrow"), Ie = /* @__PURE__ */ f((e, t) => {
|
|
535
535
|
let n = e.append("g").attr("class", "commit-arrows");
|
|
536
536
|
[...t.keys()].forEach((e) => {
|
|
537
537
|
let r = t.get(e);
|
|
538
538
|
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
539
|
-
|
|
539
|
+
Fe(n, t.get(e), r, t);
|
|
540
540
|
});
|
|
541
541
|
});
|
|
542
|
-
}, "drawArrows"),
|
|
543
|
-
let { look: i, theme: a, themeVariables:
|
|
542
|
+
}, "drawArrows"), Le = /* @__PURE__ */ f((e, t, n, r) => {
|
|
543
|
+
let { look: i, theme: a, themeVariables: s } = o(), { dropShadow: c, THEME_COLOR_LIMIT: l } = s, u = I.has(a ?? ""), d = R.has(a ?? ""), f = e.append("g");
|
|
544
544
|
t.forEach((e, t) => {
|
|
545
|
-
let a = z(t,
|
|
545
|
+
let a = z(t, u ? l : F, d), o = B.get(e.name)?.pos;
|
|
546
546
|
if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
547
|
-
let
|
|
548
|
-
p.attr("x1", 0), p.attr("y1",
|
|
549
|
-
let m = e.name, h =
|
|
547
|
+
let s = K === "TB" || K === "BT" ? o : u ? o + L / 2 + 1 : o - 2, p = f.append("line");
|
|
548
|
+
p.attr("x1", 0), p.attr("y1", s), p.attr("x2", G), p.attr("y2", s), p.attr("class", "branch branch" + a), K === "TB" ? (p.attr("y1", H), p.attr("x1", o), p.attr("y2", G), p.attr("x2", o)) : K === "BT" && (p.attr("y1", G), p.attr("x1", o), p.attr("y2", H), p.attr("x2", o)), W.push(s);
|
|
549
|
+
let m = e.name, h = J(m), g = f.insert("rect"), _ = f.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
|
|
550
550
|
_.node().appendChild(h);
|
|
551
|
-
let v = h.getBBox(), y =
|
|
552
|
-
i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${
|
|
551
|
+
let v = h.getBBox(), y = u ? 0 : 4, b = u ? 16 : 0, x = u ? L : 0;
|
|
552
|
+
i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${u ? `url(#${r}-drop-shadow)` : c}` : "").attr("rx", y).attr("ry", y).attr("x", -v.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -v.height / 2 + 10).attr("width", v.width + 18 + b).attr("height", v.height + 4 + x), _.attr("transform", "translate(" + (-v.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + b / 2) + ", " + (s - v.height / 2 - 2) + ")"), K === "TB" ? (g.attr("x", o - v.width / 2 - 10).attr("y", 0), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", 0)"), u && (g.attr("transform", `translate(${-b / 2 - 3}, ${-x - 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (-x * 2 + 7) + ")"))) : K === "BT" ? (g.attr("x", o - v.width / 2 - 10).attr("y", G), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + G + ")"), u && (g.attr("transform", `translate(${-b / 2 - 3}, ${x + 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (G + x * 2 + 4) + ")"))) : g.attr("transform", "translate(-19, " + (s - 12 - x / 2) + ")");
|
|
553
553
|
});
|
|
554
|
-
}, "drawBranches"),
|
|
554
|
+
}, "drawBranches"), Re = /* @__PURE__ */ f(function(e, t, n, r, i) {
|
|
555
555
|
return B.set(e, {
|
|
556
556
|
pos: t,
|
|
557
557
|
index: n
|
|
558
558
|
}), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
|
|
559
|
-
}, "setBranchPosition"),
|
|
560
|
-
|
|
561
|
-
let
|
|
562
|
-
if (!
|
|
563
|
-
|
|
559
|
+
}, "setBranchPosition"), ze = { draw: /* @__PURE__ */ f(function(e, t, n, i) {
|
|
560
|
+
q(), p.debug("in gitgraph renderer", e + "\n", "id:", t, n);
|
|
561
|
+
let a = i.db;
|
|
562
|
+
if (!a.getConfig) {
|
|
563
|
+
p.error("getConfig method is not available on db");
|
|
564
564
|
return;
|
|
565
565
|
}
|
|
566
|
-
let
|
|
567
|
-
U =
|
|
568
|
-
let
|
|
569
|
-
K =
|
|
570
|
-
let
|
|
566
|
+
let s = a.getConfig(), c = s.rotateCommitLabel ?? !1;
|
|
567
|
+
U = a.getCommits();
|
|
568
|
+
let l = a.getBranchesAsObjArray();
|
|
569
|
+
K = a.getDirection();
|
|
570
|
+
let u = m(`[id="${t}"]`), { look: d, theme: f, themeVariables: g } = o(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
|
|
571
571
|
if (_) {
|
|
572
|
-
let e =
|
|
572
|
+
let e = u.append("defs").append("linearGradient").attr("id", t + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
573
573
|
e.append("stop").attr("offset", "0%").attr("stop-color", v).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", y).attr("stop-opacity", 1);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
d === "neo" && I.has(f ?? "") && u.append("defs").append("filter").attr("id", t + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", b);
|
|
576
576
|
let x = 0;
|
|
577
|
-
|
|
578
|
-
let n =
|
|
577
|
+
l.forEach((e, t) => {
|
|
578
|
+
let n = J(e.name), r = u.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
579
579
|
a.node()?.appendChild(n);
|
|
580
580
|
let o = n.getBBox();
|
|
581
|
-
x =
|
|
582
|
-
}),
|
|
583
|
-
}, "draw") },
|
|
581
|
+
x = Re(e.name, x, t, o, c), a.remove(), i.remove(), r.remove();
|
|
582
|
+
}), X(u, U, !1, s), s.showBranches && Le(u, l, s, t), Ie(u, U), X(u, U, !0, s), h.insertTitle(u, "gitTitleText", s.titleTopMargin ?? 0, a.getDiagramTitle()), r(void 0, u, s.diagramPadding, s.useMaxWidth);
|
|
583
|
+
}, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
|
|
584
584
|
"redux",
|
|
585
585
|
"redux-dark",
|
|
586
586
|
"redux-color",
|
|
587
587
|
"redux-dark-color"
|
|
588
|
-
]),
|
|
588
|
+
]), Be = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
|
|
589
589
|
"dark",
|
|
590
590
|
"redux-dark",
|
|
591
591
|
"redux-dark-color",
|
|
@@ -597,14 +597,14 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
597
597
|
"redux-dark-color",
|
|
598
598
|
"neo",
|
|
599
599
|
"neo-dark"
|
|
600
|
-
]), We = /* @__PURE__ */
|
|
600
|
+
]), We = /* @__PURE__ */ f((e) => {
|
|
601
601
|
let { svgId: t } = e, n = "";
|
|
602
602
|
if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
|
|
603
603
|
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
604
604
|
`;
|
|
605
605
|
return n;
|
|
606
|
-
}, "genGitGraphGradient"), Ge = /* @__PURE__ */
|
|
607
|
-
let { theme: t, themeVariables: n } =
|
|
606
|
+
}, "genGitGraphGradient"), Ge = /* @__PURE__ */ f((e) => {
|
|
607
|
+
let { theme: t, themeVariables: n } = d(), { borderColorArray: r } = n, i = $.has(t);
|
|
608
608
|
if (Ve.has(t)) {
|
|
609
609
|
let t = "";
|
|
610
610
|
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
|
|
@@ -616,7 +616,7 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
616
616
|
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
617
617
|
${We(e)}`;
|
|
618
618
|
else {
|
|
619
|
-
let r = n %
|
|
619
|
+
let r = n % Q;
|
|
620
620
|
t += `
|
|
621
621
|
.branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
|
|
622
622
|
.commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
|
|
@@ -626,7 +626,7 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
626
626
|
}
|
|
627
627
|
return t;
|
|
628
628
|
}
|
|
629
|
-
if (
|
|
629
|
+
if (Be.has(t)) {
|
|
630
630
|
let n = "";
|
|
631
631
|
for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
|
|
632
632
|
.branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
@@ -661,8 +661,8 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
661
661
|
`;
|
|
662
662
|
return t;
|
|
663
663
|
}
|
|
664
|
-
}, "genColor"), Ke = /* @__PURE__ */
|
|
665
|
-
let n = t %
|
|
664
|
+
}, "genColor"), Ke = /* @__PURE__ */ f((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
|
|
665
|
+
let n = t % Q;
|
|
666
666
|
return `
|
|
667
667
|
.branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
|
|
668
668
|
.commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
|
|
@@ -673,9 +673,9 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
673
673
|
}).join("\n")}`, "normalTheme"), qe = {
|
|
674
674
|
parser: be,
|
|
675
675
|
db: A,
|
|
676
|
-
renderer:
|
|
677
|
-
styles: /* @__PURE__ */
|
|
678
|
-
let { theme: t } =
|
|
676
|
+
renderer: ze,
|
|
677
|
+
styles: /* @__PURE__ */ f((e) => {
|
|
678
|
+
let { theme: t } = d(), n = Ue.has(t);
|
|
679
679
|
return `
|
|
680
680
|
.commit-id,
|
|
681
681
|
.commit-msg,
|
|
@@ -717,7 +717,7 @@ var ce = /* @__PURE__ */ m(function() {
|
|
|
717
717
|
|
|
718
718
|
.arrow {
|
|
719
719
|
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
720
|
-
stroke-width: ${
|
|
720
|
+
stroke-width: ${$.has(t) ? e.strokeWidth : 8};
|
|
721
721
|
stroke-linecap: round;
|
|
722
722
|
fill: none
|
|
723
723
|
}
|