@sme.up/ketchup2 2.7.0 → 2.8.1
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-DwAVRNNu.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
- package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -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-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- 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/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
- package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
- package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
- package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
- package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
- package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
- package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
- package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- 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/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
- package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
- package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
- package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
- package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -0
- 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/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
- package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
- package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
- package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34744 -32755
- package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
- package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
- package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
- package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
- package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
- package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
- package/package.json +41 -38
- package/dist/arc-w3BipdfE.cjs +0 -1
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-B2BBwKNb.cjs +0 -1
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/graphlib-CkkG5MuS.cjs +0 -1
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
- package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/ketchup2.cjs.js +0 -485
- package/dist/line-CzwncDY3.cjs +0 -1
- package/dist/linear-1lpO_WlJ.cjs +0 -1
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
- package/dist/ordinal-CUPR-p0T.cjs +0 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/rough.esm-r0QOSzHM.cjs +0 -1
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/v4-Dyp-SQ1c.cjs +0 -1
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { m as e, p as t } from "./src-DQoflmwT.js";
|
|
2
|
+
import { H as n, K as r, U as i, Y as a, a as o, b as s, f as c, v as l, w as u, x as d, y as f, z as p } from "./chunk-DU6HZSFF-waeanndy.js";
|
|
3
|
+
import { n as m } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { _ as h, i as g, t as ee } from "./chunk-75Z2AOVW-Drsj7a97.js";
|
|
5
|
+
import { T as te } from "./chunk-FOHPRMQF-LRqOLsSw.js";
|
|
6
|
+
import { n as ne } from "./mermaid-parser.core-BwVmI_Rq.js";
|
|
7
|
+
import { t as re } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-VSXAHHWV.mjs
|
|
9
|
+
var _ = "position frame", v = "frame positioned", y = "position relation", b = "relation positioned", ie = /* @__PURE__ */ m(function(t) {
|
|
9
10
|
e.debug("options str", t);
|
|
10
|
-
}, "setOptions"), ae = /* @__PURE__ */
|
|
11
|
+
}, "setOptions"), ae = /* @__PURE__ */ m(function() {
|
|
11
12
|
return {};
|
|
12
|
-
}, "getOptions"), oe = /* @__PURE__ */
|
|
13
|
-
x(),
|
|
13
|
+
}, "getOptions"), oe = /* @__PURE__ */ m(function() {
|
|
14
|
+
x(), o();
|
|
14
15
|
}, "clear");
|
|
15
16
|
function x() {
|
|
16
17
|
S = {};
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
var se =
|
|
19
|
+
m(x, "reset");
|
|
20
|
+
var se = c.eventmodeling, ce = /* @__PURE__ */ m(() => g({
|
|
20
21
|
...se,
|
|
21
|
-
...
|
|
22
|
+
...s().eventmodeling
|
|
22
23
|
}), "getConfig"), S = {};
|
|
23
24
|
function C() {
|
|
24
25
|
let t = le, { ast: n } = S, r = E();
|
|
@@ -49,11 +50,11 @@ function C() {
|
|
|
49
50
|
sortedSwimlanesArray: L(t.swimlanes)
|
|
50
51
|
}, t;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
+
m(C, "getState");
|
|
53
54
|
function w(e) {
|
|
54
55
|
S.ast = e;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
m(w, "setAst");
|
|
57
58
|
var T = {
|
|
58
59
|
swimlaneMinHeight: 70,
|
|
59
60
|
swimlanePadding: 15,
|
|
@@ -80,7 +81,7 @@ var T = {
|
|
|
80
81
|
function E() {
|
|
81
82
|
return T;
|
|
82
83
|
}
|
|
83
|
-
|
|
84
|
+
m(E, "getDiagramProps");
|
|
84
85
|
var le = {
|
|
85
86
|
boxes: [],
|
|
86
87
|
swimlanes: {},
|
|
@@ -92,23 +93,23 @@ function D(e) {
|
|
|
92
93
|
let t = e.split(".");
|
|
93
94
|
if (t.length === 2) return t[0];
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
+
m(D, "extractNamespace");
|
|
96
97
|
function O(e) {
|
|
97
98
|
let t = e.split(".");
|
|
98
99
|
return t.length === 2 ? t[1] : e;
|
|
99
100
|
}
|
|
100
|
-
|
|
101
|
+
m(O, "extractName");
|
|
101
102
|
function k(e, t) {
|
|
102
103
|
if (!(!t || t.length === 0)) return Object.values(e).find((e) => e.namespace === t);
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
+
m(k, "findSwimlaneByNamespace");
|
|
105
106
|
function A(e, t, n) {
|
|
106
107
|
return Math.max(t, ...Object.keys(e).filter((e) => {
|
|
107
108
|
let r = Number.parseInt(e);
|
|
108
109
|
return r > t && r < n;
|
|
109
110
|
}).map((e) => Number.parseInt(e))) + 1;
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
+
m(A, "findNextAvailableIndex");
|
|
112
113
|
function j(e, t) {
|
|
113
114
|
let n = D(e.entityIdentifier), r = k(t, n);
|
|
114
115
|
switch (e.modelEntityType) {
|
|
@@ -149,9 +150,9 @@ function j(e, t) {
|
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
+
m(j, "calculateSwimlaneProps");
|
|
153
154
|
function M(e) {
|
|
154
|
-
let { themeVariables: t } =
|
|
155
|
+
let { themeVariables: t } = s();
|
|
155
156
|
switch (e.modelEntityType) {
|
|
156
157
|
case "ui": return {
|
|
157
158
|
fill: t.emUiFill ?? "white",
|
|
@@ -183,32 +184,32 @@ function M(e) {
|
|
|
183
184
|
};
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
|
-
|
|
187
|
+
m(M, "calculateEntityVisualProps");
|
|
187
188
|
function N(t, n, r) {
|
|
188
|
-
let i =
|
|
189
|
+
let i = s(), a = p(O(t.entityIdentifier) ?? "", i), o, c = {
|
|
189
190
|
fontSize: 16,
|
|
190
191
|
fontWeight: 700,
|
|
191
192
|
fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
192
193
|
joinWith: "<br/>"
|
|
193
|
-
}, l = `<b>${h(a, r.textMaxWidth,
|
|
194
|
-
if (t.dataInlineValue && (o = t.dataInlineValue, o = o.substring(o.indexOf("{") + 1), o = o.substring(0, o.lastIndexOf("}") - 1), o =
|
|
194
|
+
}, l = `<b>${h(a, r.textMaxWidth, c)}</b>`;
|
|
195
|
+
if (t.dataInlineValue && (o = t.dataInlineValue, o = o.substring(o.indexOf("{") + 1), o = o.substring(0, o.lastIndexOf("}") - 1), o = p(o, i), o = h(o, r.textMaxWidth, c), o = o.replaceAll(" ", " ")), t.dataReference) {
|
|
195
196
|
let e = n.find((e) => e.name === t.dataReference?.$refText);
|
|
196
|
-
e && (o = e.dataBlockValue, o = o.substring(o.indexOf("{\n") + 2), o = o.substring(0, o.lastIndexOf("}") - 1), o =
|
|
197
|
+
e && (o = e.dataBlockValue, o = o.substring(o.indexOf("{\n") + 2), o = o.substring(0, o.lastIndexOf("}") - 1), o = p(o, i), o = h(o, r.textMaxWidth, c), o = o.replaceAll(" ", " "), o += "<br/>");
|
|
197
198
|
}
|
|
198
199
|
let u = o !== void 0;
|
|
199
200
|
u && (l += `<br/><br/><code style="text-align: left; display: block;max-width:${r.textMaxWidth}px">${o}</code>`);
|
|
200
201
|
let d = {
|
|
201
|
-
fontSize:
|
|
202
|
-
fontWeight:
|
|
203
|
-
fontFamily:
|
|
204
|
-
}, f = ee(l, d),
|
|
202
|
+
fontSize: c.fontSize,
|
|
203
|
+
fontWeight: c.fontWeight,
|
|
204
|
+
fontFamily: c.fontFamily
|
|
205
|
+
}, f = ee(l, d), m = u ? f.width / 3 : f.width, g = {
|
|
205
206
|
content: l,
|
|
206
|
-
width:
|
|
207
|
+
width: m,
|
|
207
208
|
height: f.height
|
|
208
209
|
};
|
|
209
210
|
return e.debug(`[${t.name}] ${t.entityIdentifier} text`, g), g;
|
|
210
211
|
}
|
|
211
|
-
|
|
212
|
+
m(N, "calculateTextProps");
|
|
212
213
|
function P(e, t) {
|
|
213
214
|
let n = t, r = M(n.frame), i = {
|
|
214
215
|
width: n.textProps.width + 2 * T.boxTextPadding,
|
|
@@ -223,20 +224,20 @@ function P(e, t) {
|
|
|
223
224
|
textProps: n.textProps
|
|
224
225
|
}];
|
|
225
226
|
}
|
|
226
|
-
|
|
227
|
+
m(P, "decidePositionFrame");
|
|
227
228
|
function F(e, t, n) {
|
|
228
229
|
return t === void 0 ? T.contentStartX : t.index === e.index && e.r ? e.r + T.boxPadding : n === void 0 ? T.contentStartX : n.r - T.boxOverlap + T.boxPadding;
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
+
m(F, "calculateX");
|
|
231
232
|
function I(e, t) {
|
|
232
233
|
let n = [...e.map((e) => e.r), t];
|
|
233
234
|
return Math.max(...n);
|
|
234
235
|
}
|
|
235
|
-
|
|
236
|
+
m(I, "calculateMaxRight");
|
|
236
237
|
function L(e) {
|
|
237
238
|
return Object.values(e).sort((e, t) => e.index - t.index);
|
|
238
239
|
}
|
|
239
|
-
|
|
240
|
+
m(L, "sortedSwimlanesArray");
|
|
240
241
|
function R(e, t) {
|
|
241
242
|
let n = t, r = j(n.frame, e.swimlanes), i;
|
|
242
243
|
i = r.index in e.swimlanes ? e.swimlanes[r.index] : {
|
|
@@ -281,26 +282,26 @@ function R(e, t) {
|
|
|
281
282
|
}
|
|
282
283
|
return f;
|
|
283
284
|
}
|
|
284
|
-
|
|
285
|
+
m(R, "evolveFramePositioned");
|
|
285
286
|
function z(e, t) {
|
|
286
287
|
return e === 0 && t.sourceFrames.length === 0;
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
+
m(z, "isFirstFrame");
|
|
289
290
|
function B(e) {
|
|
290
291
|
return e.sourceFrames !== void 0 && e.sourceFrames !== null && e.sourceFrames.length > 0;
|
|
291
292
|
}
|
|
292
|
-
|
|
293
|
+
m(B, "hasSourceFrame");
|
|
293
294
|
function V(e, t) {
|
|
294
295
|
if (t != null) return e.find((e) => e.frame.name === t.name);
|
|
295
296
|
}
|
|
296
|
-
|
|
297
|
+
m(V, "findBoxByFrame");
|
|
297
298
|
function H(e, t, n) {
|
|
298
299
|
if (!(n < 0)) for (let r = n; r >= 0; r--) {
|
|
299
300
|
let n = e[r];
|
|
300
301
|
if (n.swimlane.index !== t) return n;
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
|
-
|
|
304
|
+
m(H, "findBoxByLineIndex");
|
|
304
305
|
function U(e, t) {
|
|
305
306
|
let n = t;
|
|
306
307
|
if (te(n.frame) || z(n.index, n.frame)) return [];
|
|
@@ -315,7 +316,7 @@ function U(e, t) {
|
|
|
315
316
|
targetBox: r
|
|
316
317
|
}];
|
|
317
318
|
}
|
|
318
|
-
|
|
319
|
+
m(U, "decidePositionRelation");
|
|
319
320
|
function W(e, t) {
|
|
320
321
|
let n = t, r = {
|
|
321
322
|
visual: {
|
|
@@ -338,7 +339,7 @@ function W(e, t) {
|
|
|
338
339
|
relations: [...e.relations, r]
|
|
339
340
|
};
|
|
340
341
|
}
|
|
341
|
-
|
|
342
|
+
m(W, "evolveRelationPositioned");
|
|
342
343
|
var ue = {
|
|
343
344
|
[_]: P,
|
|
344
345
|
[y]: U
|
|
@@ -352,7 +353,7 @@ function G(t, n) {
|
|
|
352
353
|
let i = r(t, n);
|
|
353
354
|
return e.debug("decided events", i), i;
|
|
354
355
|
}
|
|
355
|
-
|
|
356
|
+
m(G, "decide");
|
|
356
357
|
function K(t, n) {
|
|
357
358
|
let r = n.reduce((e, t) => {
|
|
358
359
|
let n = de[t.$kind];
|
|
@@ -364,40 +365,40 @@ function K(t, n) {
|
|
|
364
365
|
events: n
|
|
365
366
|
}), r;
|
|
366
367
|
}
|
|
367
|
-
|
|
368
|
+
m(K, "evolve");
|
|
368
369
|
function q(e, t) {
|
|
369
370
|
return K(e, G(e, t));
|
|
370
371
|
}
|
|
371
|
-
|
|
372
|
+
m(q, "dispatch");
|
|
372
373
|
var J = {
|
|
373
374
|
getConfig: ce,
|
|
374
375
|
setOptions: ie,
|
|
375
376
|
getOptions: ae,
|
|
376
377
|
clear: oe,
|
|
377
|
-
setAccTitle:
|
|
378
|
-
getAccTitle:
|
|
379
|
-
getAccDescription:
|
|
380
|
-
setAccDescription:
|
|
381
|
-
setDiagramTitle:
|
|
382
|
-
getDiagramTitle:
|
|
378
|
+
setAccTitle: i,
|
|
379
|
+
getAccTitle: f,
|
|
380
|
+
getAccDescription: l,
|
|
381
|
+
setAccDescription: n,
|
|
382
|
+
setDiagramTitle: r,
|
|
383
|
+
getDiagramTitle: u,
|
|
383
384
|
setAst: w,
|
|
384
385
|
getDiagramProps: E,
|
|
385
386
|
getState: C
|
|
386
|
-
}, fe = { parse: /* @__PURE__ */
|
|
387
|
+
}, fe = { parse: /* @__PURE__ */ m(async (t) => {
|
|
387
388
|
let n = await ne("eventmodeling", t);
|
|
388
389
|
e.debug(n), J.setAst(n), re(n, J);
|
|
389
|
-
}, "parse") }, Y =
|
|
390
|
+
}, "parse") }, Y = d()?.eventmodeling;
|
|
390
391
|
function X(e, t) {
|
|
391
392
|
return (n) => {
|
|
392
393
|
let r = n.swimlane.y + t.swimlanePadding, i = e.append("g").attr("class", "em-box");
|
|
393
394
|
i.append("rect").attr("x", n.x).attr("y", r).attr("rx", "3").attr("width", n.dimension.width).attr("height", n.dimension.height).attr("stroke", n.visual.stroke).attr("fill", n.visual.fill), i.append("foreignObject").attr("x", n.x + t.boxPadding).attr("y", r + 10).attr("width", n.dimension.width - 2 * t.boxPadding).attr("height", n.dimension.height - 2 * t.boxPadding).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%").append("span").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").html(n.text);
|
|
394
395
|
};
|
|
395
396
|
}
|
|
396
|
-
|
|
397
|
+
m(X, "renderD3Box");
|
|
397
398
|
function Z(e, t) {
|
|
398
399
|
return e > t;
|
|
399
400
|
}
|
|
400
|
-
|
|
401
|
+
m(Z, "dirUpwards");
|
|
401
402
|
function Q(t, n, r, i) {
|
|
402
403
|
return (a) => {
|
|
403
404
|
let o = a.sourceBox.swimlane.y + n.swimlanePadding, s = a.targetBox.swimlane.y + n.swimlanePadding, c = Z(o, s), l = a.sourceBox.x + a.sourceBox.dimension.width * 2 / 3, u = a.targetBox.x + a.targetBox.dimension.width / 3, d, f;
|
|
@@ -409,23 +410,23 @@ function Q(t, n, r, i) {
|
|
|
409
410
|
t.append("path").attr("class", "em-relation").attr("fill", a.visual.fill).attr("stroke", p).attr("stroke-width", "1").attr("marker-end", `url(#${r})`).attr("d", `M${l} ${d} L${u} ${f}`);
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
|
|
413
|
+
m(Q, "renderD3Relation");
|
|
413
414
|
function $(e, t, n, r) {
|
|
414
415
|
return (i) => {
|
|
415
416
|
let a = e.append("g").attr("class", "em-swimlane"), o = r.emSwimlaneBackgroundOdd ?? "rgb(250,250,250)", s = r.emSwimlaneBackgroundStroke ?? "rgb(240,240,240)";
|
|
416
417
|
a.append("rect").attr("x", 0).attr("y", i.y).attr("rx", "3").attr("width", t + n.swimlanePadding).attr("height", i.height).attr("fill", o).attr("stroke", s), a.append("text").attr("font-weight", n.swimlaneTextFontWeight).attr("x", 30).attr("y", i.y + 30).text(i.label);
|
|
417
418
|
};
|
|
418
419
|
}
|
|
419
|
-
|
|
420
|
+
m($, "renderD3Swimlane");
|
|
420
421
|
var pe = {
|
|
421
422
|
parser: fe,
|
|
422
423
|
db: J,
|
|
423
|
-
renderer: { draw: /* @__PURE__ */
|
|
424
|
-
if (e.debug("in eventmodeling renderer",
|
|
425
|
-
let s =
|
|
426
|
-
p.sortedSwimlanesArray.forEach($(u, p.maxR,
|
|
424
|
+
renderer: { draw: /* @__PURE__ */ m(function(n, r, i, o) {
|
|
425
|
+
if (e.debug("in eventmodeling renderer", n + "\n", "id:", r, i), !Y) throw Error("EventModeling config not found");
|
|
426
|
+
let s = o.db, { themeVariables: c, eventmodeling: l } = d(), u = t(`[id="${r}"]`), f = s.getDiagramProps(), p = s.getState(), m = `em-arrowhead-${r}`, h = c.emArrowhead ?? "#000000";
|
|
427
|
+
p.sortedSwimlanesArray.forEach($(u, p.maxR, f, c)), p.boxes.forEach(X(u, f)), p.relations.forEach(Q(u, f, m, c)), u.append("defs").append("marker").attr("id", m).attr("markerWidth", "10").attr("markerHeight", "7").attr("refX", "10").attr("refY", "3.5").attr("orient", "auto").append("polygon").attr("points", "0 0, 10 3.5, 0 7").attr("fill", h), a(void 0, u, l?.padding ?? 30, l?.useMaxWidth);
|
|
427
428
|
}, "draw") },
|
|
428
|
-
styles: /* @__PURE__ */
|
|
429
|
+
styles: /* @__PURE__ */ m((e) => "", "getStyles")
|
|
429
430
|
};
|
|
430
431
|
//#endregion
|
|
431
432
|
export { pe as diagram };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
1
|
+
import { m as e, p as t } from "./src-DQoflmwT.js";
|
|
2
|
+
import { D as n, H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f } from "./chunk-DU6HZSFF-waeanndy.js";
|
|
3
|
+
import { n as p } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { t as m } from "./ordinal-BubEveRk.js";
|
|
5
|
+
import { t as h } from "./defaultLocale-N-0uLSyg.js";
|
|
6
|
+
import { i as g } from "./chunk-75Z2AOVW-Drsj7a97.js";
|
|
7
|
+
import { t as _ } from "./chunk-CLGD4ZFX-CLGio9rD.js";
|
|
8
|
+
import { i as v, n as y } from "./chunk-P2QGCYS3-BUeNZ170.js";
|
|
9
|
+
import { n as b } from "./mermaid-parser.core-BwVmI_Rq.js";
|
|
10
|
+
import { t as x } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
11
|
+
import { t as S } from "./chunk-POPQ4Y6H-CU9oz17Z.js";
|
|
11
12
|
//#region node_modules/d3-hierarchy/src/hierarchy/count.js
|
|
12
13
|
function C(e) {
|
|
13
14
|
var t = 0, n = e.children, r = n && n.length;
|
|
@@ -252,19 +253,19 @@ function ae() {
|
|
|
252
253
|
}, u;
|
|
253
254
|
}
|
|
254
255
|
//#endregion
|
|
255
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-
|
|
256
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-VX7I27RA.mjs
|
|
256
257
|
var Y = class {
|
|
257
258
|
constructor() {
|
|
258
|
-
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle =
|
|
259
|
+
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = a, this.getAccTitle = f, this.setDiagramTitle = i, this.getDiagramTitle = d, this.getAccDescription = u, this.setAccDescription = r;
|
|
259
260
|
}
|
|
260
261
|
static {
|
|
261
|
-
|
|
262
|
+
p(this, "TreeMapDB");
|
|
262
263
|
}
|
|
263
264
|
getNodes() {
|
|
264
265
|
return this.nodes;
|
|
265
266
|
}
|
|
266
267
|
getConfig() {
|
|
267
|
-
let e =
|
|
268
|
+
let e = l, t = s();
|
|
268
269
|
return g({
|
|
269
270
|
...e.treemap,
|
|
270
271
|
...t.treemap ?? {}
|
|
@@ -296,7 +297,7 @@ var Y = class {
|
|
|
296
297
|
return this.classes.get(e)?.styles ?? [];
|
|
297
298
|
}
|
|
298
299
|
clear() {
|
|
299
|
-
|
|
300
|
+
o(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
300
301
|
}
|
|
301
302
|
};
|
|
302
303
|
function X(e) {
|
|
@@ -319,15 +320,15 @@ function X(e) {
|
|
|
319
320
|
});
|
|
320
321
|
}), t;
|
|
321
322
|
}
|
|
322
|
-
|
|
323
|
-
var oe = /* @__PURE__ */
|
|
324
|
-
x(e,
|
|
325
|
-
let
|
|
326
|
-
for (let
|
|
327
|
-
for (let
|
|
328
|
-
let e =
|
|
323
|
+
p(X, "buildHierarchy");
|
|
324
|
+
var oe = /* @__PURE__ */ p((e, t) => {
|
|
325
|
+
x(e, t);
|
|
326
|
+
let n = [];
|
|
327
|
+
for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
|
|
328
|
+
for (let r of e.TreemapRows ?? []) {
|
|
329
|
+
let e = r.item;
|
|
329
330
|
if (!e) continue;
|
|
330
|
-
let i =
|
|
331
|
+
let i = r.indent ? parseInt(r.indent) : 0, a = se(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
|
|
331
332
|
level: i,
|
|
332
333
|
name: a,
|
|
333
334
|
type: e.$type,
|
|
@@ -335,15 +336,15 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
335
336
|
classSelector: e.classSelector,
|
|
336
337
|
cssCompiledStyles: s
|
|
337
338
|
};
|
|
338
|
-
|
|
339
|
+
n.push(c);
|
|
339
340
|
}
|
|
340
|
-
let
|
|
341
|
-
for (let r of e)
|
|
341
|
+
let r = X(n), i = /* @__PURE__ */ p((e, n) => {
|
|
342
|
+
for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && i(r.children, n + 1);
|
|
342
343
|
}, "addNodesRecursively");
|
|
343
|
-
|
|
344
|
-
}, "populate"), se = /* @__PURE__ */
|
|
344
|
+
i(r, 0);
|
|
345
|
+
}, "populate"), se = /* @__PURE__ */ p((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
|
|
345
346
|
parser: { yy: void 0 },
|
|
346
|
-
parse: /* @__PURE__ */
|
|
347
|
+
parse: /* @__PURE__ */ p(async (t) => {
|
|
347
348
|
try {
|
|
348
349
|
let n = await b("treemap", t);
|
|
349
350
|
e.debug("Treemap AST:", n);
|
|
@@ -355,21 +356,21 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
355
356
|
}
|
|
356
357
|
}, "parse")
|
|
357
358
|
}, ce = 10, Q = 10, $ = 25, le = {
|
|
358
|
-
draw: /* @__PURE__ */
|
|
359
|
-
let
|
|
360
|
-
if (!
|
|
361
|
-
let y =
|
|
362
|
-
b.attr("viewBox", `0 0 ${w} ${T}`),
|
|
359
|
+
draw: /* @__PURE__ */ p((n, r, i, a) => {
|
|
360
|
+
let o = a.db, l = o.getConfig(), u = l.padding ?? ce, d = o.getDiagramTitle(), f = o.getRoot(), { themeVariables: g } = s();
|
|
361
|
+
if (!f) return;
|
|
362
|
+
let y = d ? 30 : 0, b = _(r), x = l.nodeWidth ? l.nodeWidth * Q : 960, C = l.nodeHeight ? l.nodeHeight * Q : 500, w = x, T = C + y;
|
|
363
|
+
b.attr("viewBox", `0 0 ${w} ${T}`), c(b, T, w, l.useMaxWidth);
|
|
363
364
|
let E;
|
|
364
365
|
try {
|
|
365
|
-
let e =
|
|
366
|
-
if (e === "$0,0") E = /* @__PURE__ */
|
|
366
|
+
let e = l.valueFormat || ",";
|
|
367
|
+
if (e === "$0,0") E = /* @__PURE__ */ p((e) => "$" + h(",")(e), "valueFormat");
|
|
367
368
|
else if (e.startsWith("$") && e.includes(",")) {
|
|
368
|
-
let
|
|
369
|
-
E = /* @__PURE__ */
|
|
369
|
+
let t = /\.\d+/.exec(e), n = t ? t[0] : "";
|
|
370
|
+
E = /* @__PURE__ */ p((e) => "$" + h("," + n)(e), "valueFormat");
|
|
370
371
|
} else if (e.startsWith("$")) {
|
|
371
|
-
let
|
|
372
|
-
E = /* @__PURE__ */
|
|
372
|
+
let t = e.substring(1);
|
|
373
|
+
E = /* @__PURE__ */ p((e) => "$" + h(t || "")(e), "valueFormat");
|
|
373
374
|
} else E = h(e);
|
|
374
375
|
} catch (t) {
|
|
375
376
|
e.error("Error creating format function:", t), E = h(",");
|
|
@@ -416,64 +417,66 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
416
417
|
g.cScaleLabel10,
|
|
417
418
|
g.cScaleLabel11
|
|
418
419
|
]);
|
|
419
|
-
|
|
420
|
-
let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = R(
|
|
421
|
-
P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${
|
|
420
|
+
d && b.append("text").attr("x", w / 2).attr("y", y / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
|
|
421
|
+
let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = R(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ae().size([x, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(u).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
422
|
+
P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${r}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
|
|
422
423
|
if (e.depth === 0) return "display: none;";
|
|
423
424
|
let t = v({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
424
425
|
return t.nodeStyles + ";" + t.borderStyles.join(";");
|
|
425
|
-
}), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
|
|
426
|
+
}), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, t) => `url(#clip-section-${r}-${t})`).attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
|
|
426
427
|
if (e.depth === 0) return;
|
|
427
|
-
let
|
|
428
|
-
|
|
428
|
+
let n = t(this), r = e.data.name;
|
|
429
|
+
n.text(r);
|
|
429
430
|
let i = e.x1 - e.x0, a;
|
|
430
|
-
a =
|
|
431
|
-
let o = Math.max(15, a), s =
|
|
431
|
+
a = l.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
|
|
432
|
+
let o = Math.max(15, a), s = n.node();
|
|
432
433
|
if (s.getComputedTextLength() > o) {
|
|
433
434
|
let e = r;
|
|
434
435
|
for (; e.length > 0;) {
|
|
435
436
|
if (e = r.substring(0, e.length - 1), e.length === 0) {
|
|
436
|
-
|
|
437
|
+
n.text("..."), s.getComputedTextLength() > o && n.text("");
|
|
437
438
|
break;
|
|
438
439
|
}
|
|
439
|
-
if (
|
|
440
|
+
if (n.text(e + "..."), s.getComputedTextLength() <= o) break;
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
|
-
}),
|
|
443
|
-
let F = M.leaves(), I = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
444
|
-
|
|
445
|
-
let
|
|
446
|
-
if (o <
|
|
447
|
-
|
|
443
|
+
}), l.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
|
|
444
|
+
let F = M.leaves(), I = F.length > 20, L = I ? 16 : 38, z = I ? 14 : 28, B = I ? 4 : 8, V = I ? 4 : 6, H = I ? 2 : 4, U = I ? 8 : 10, W = I ? 1 : 2, G = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
445
|
+
G.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => v({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), G.append("clipPath").attr("id", (e, t) => `clip-${r}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), G.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => `text-anchor: middle; dominant-baseline: middle; font-size: ${L}px;fill:` + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${r}-${t})`).text((e) => e.data.name).each(function(e) {
|
|
446
|
+
let n = t(this), r = e.x1 - e.x0, i = e.y1 - e.y0, a = n.node(), o = r - 2 * H, s = i - 2 * H;
|
|
447
|
+
if (o < U || s < U) {
|
|
448
|
+
n.style("display", "none");
|
|
448
449
|
return;
|
|
449
450
|
}
|
|
450
|
-
let c = parseInt(
|
|
451
|
-
for (; a.getComputedTextLength() > o && c >
|
|
452
|
-
let u = Math.max(
|
|
453
|
-
for (; d > s && c >
|
|
454
|
-
|
|
455
|
-
}),
|
|
451
|
+
let c = parseInt(n.style("font-size"), 10), l = .6;
|
|
452
|
+
for (; a.getComputedTextLength() > o && c > B;) c--, n.style("font-size", `${c}px`);
|
|
453
|
+
let u = Math.max(V, Math.min(z, Math.round(c * l))), d = c + W + u;
|
|
454
|
+
for (; d > s && c > B && (c--, u = Math.max(V, Math.min(z, Math.round(c * l))), !(u < V && c === B));) n.style("font-size", `${c}px`), d = c + W + u;
|
|
455
|
+
n.style("font-size", `${c}px`), I ? (c < B || s < B) && n.style("display", "none") : (a.getComputedTextLength() > o || c < B || s < c) && n.style("display", "none");
|
|
456
|
+
}), l.showValues !== !1 && G.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
|
|
456
457
|
return (e.y1 - e.y0) / 2;
|
|
457
|
-
}).attr("style", (e) =>
|
|
458
|
-
let
|
|
458
|
+
}).attr("style", (e) => `text-anchor: middle; dominant-baseline: hanging; font-size: ${z}px;fill:` + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${r}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
|
|
459
|
+
let n = t(this), r = this.parentNode;
|
|
459
460
|
if (!r) {
|
|
460
|
-
|
|
461
|
+
n.style("display", "none");
|
|
461
462
|
return;
|
|
462
463
|
}
|
|
463
|
-
let i =
|
|
464
|
+
let i = t(r).select(".treemapLabel");
|
|
464
465
|
if (i.empty() || i.style("display") === "none") {
|
|
465
|
-
|
|
466
|
+
n.style("display", "none");
|
|
466
467
|
return;
|
|
467
468
|
}
|
|
468
|
-
let a = parseFloat(i.style("font-size")), o = Math.max(
|
|
469
|
-
|
|
470
|
-
let s = (e.y1 - e.y0) / 2 + a / 2 +
|
|
471
|
-
|
|
472
|
-
let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c -
|
|
473
|
-
|
|
474
|
-
})
|
|
469
|
+
let a = parseFloat(i.style("font-size")), o = Math.max(V, Math.min(z, Math.round(a * .6)));
|
|
470
|
+
n.style("font-size", `${o}px`);
|
|
471
|
+
let s = (e.y1 - e.y0) / 2 + a / 2 + W;
|
|
472
|
+
n.attr("y", s);
|
|
473
|
+
let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 2 * H;
|
|
474
|
+
n.node().getComputedTextLength() > u || s + o > l || o < V ? n.style("display", "none") : n.style("display", null);
|
|
475
|
+
});
|
|
476
|
+
let K = l.diagramPadding ?? 8;
|
|
477
|
+
S(b, K, "flowchart", l?.useMaxWidth || !1);
|
|
475
478
|
}, "draw"),
|
|
476
|
-
getClasses: /* @__PURE__ */
|
|
479
|
+
getClasses: /* @__PURE__ */ p(function(e, t) {
|
|
477
480
|
return t.db.getClasses();
|
|
478
481
|
}, "getClasses")
|
|
479
482
|
}, ue = {
|
|
@@ -492,30 +495,30 @@ var oe = /* @__PURE__ */ t((e, n) => {
|
|
|
492
495
|
return new Y();
|
|
493
496
|
},
|
|
494
497
|
renderer: le,
|
|
495
|
-
styles: /* @__PURE__ */
|
|
496
|
-
let t =
|
|
498
|
+
styles: /* @__PURE__ */ p(({ treemap: e } = {}) => {
|
|
499
|
+
let t = n(), r = s(), i = g(t, r.themeVariables), a = g(ue, e), o = a.titleColor ?? i.titleColor, c = a.labelColor ?? i.textColor, l = a.valueColor ?? i.textColor;
|
|
497
500
|
return `
|
|
498
501
|
.treemapNode.section {
|
|
499
|
-
stroke: ${
|
|
500
|
-
stroke-width: ${
|
|
501
|
-
fill: ${
|
|
502
|
+
stroke: ${a.sectionStrokeColor};
|
|
503
|
+
stroke-width: ${a.sectionStrokeWidth};
|
|
504
|
+
fill: ${a.sectionFillColor};
|
|
502
505
|
}
|
|
503
506
|
.treemapNode.leaf {
|
|
504
|
-
stroke: ${
|
|
505
|
-
stroke-width: ${
|
|
506
|
-
fill: ${
|
|
507
|
+
stroke: ${a.leafStrokeColor};
|
|
508
|
+
stroke-width: ${a.leafStrokeWidth};
|
|
509
|
+
fill: ${a.leafFillColor};
|
|
507
510
|
}
|
|
508
511
|
.treemapLabel {
|
|
509
|
-
fill: ${
|
|
510
|
-
font-size: ${
|
|
512
|
+
fill: ${c};
|
|
513
|
+
font-size: ${a.labelFontSize};
|
|
511
514
|
}
|
|
512
515
|
.treemapValue {
|
|
513
|
-
fill: ${
|
|
514
|
-
font-size: ${
|
|
516
|
+
fill: ${l};
|
|
517
|
+
font-size: ${a.valueFontSize};
|
|
515
518
|
}
|
|
516
519
|
.treemapTitle {
|
|
517
|
-
fill: ${
|
|
518
|
-
font-size: ${
|
|
520
|
+
fill: ${o};
|
|
521
|
+
font-size: ${a.titleFontSize};
|
|
519
522
|
}
|
|
520
523
|
`;
|
|
521
524
|
}, "getStyles")
|