@spteck/react-controls-v2 2.3.9 → 2.4.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/LocalizationProvider-BbfcY9z3.cjs +2 -0
- package/dist/{LocalizationProvider-te5iu_6z.js → LocalizationProvider-CvSHuk0e.js} +46 -46
- package/dist/{ar-Blifx2MN.js → ar-BPzd6WER.js} +1 -1
- package/dist/ar-CBSdRr5Q.cjs +2 -0
- package/dist/az-DoZjCfF0.cjs +2 -0
- package/dist/{az-CMhDjtnj.js → az-MWX-WDgc.js} +1 -1
- package/dist/{bg-C96WirSv.js → bg-CvRGS4sF.js} +1 -1
- package/dist/bg-DI8UD_HF.cjs +2 -0
- package/dist/bs-DQhZlEEo.cjs +2 -0
- package/dist/{bs-_St1wBE_.js → bs-aXQgChJT.js} +1 -1
- package/dist/{ca-QlLcV4wf.js → ca-BCXCXzgh.js} +1 -1
- package/dist/ca-DSC32tOX.cjs +2 -0
- package/dist/components/DataGridV2/useDataGridV2Styles.d.ts +1 -1
- package/dist/components/dropDownField/IOption.d.ts +2 -0
- package/dist/cs-B0C33FJt.cjs +2 -0
- package/dist/{cs-MrS2bH7F.js → cs-VHWnqXwJ.js} +1 -1
- package/dist/cy-BNabORao.cjs +2 -0
- package/dist/{cy-BX97Tgwk.js → cy-qF-aNCW-.js} +1 -1
- package/dist/da-BmgXTEXm.cjs +2 -0
- package/dist/{da-BnewPPrh.js → da-rR5TnSBw.js} +1 -1
- package/dist/de-B4w38-0d.cjs +2 -0
- package/dist/{de-BSZuzGTL.js → de-DbeDjRNp.js} +1 -1
- package/dist/el-Cgk6VsxL.cjs +2 -0
- package/dist/{el-DrOk3N7-.js → el-DDeD6FiX.js} +1 -1
- package/dist/es-3ugMIZuA.cjs +2 -0
- package/dist/{es-CGqzubZ2.js → es-dvKffn6Q.js} +1 -1
- package/dist/et-CIIzxbat.cjs +2 -0
- package/dist/{et-DGqkocuq.js → et-DgZFBtK7.js} +1 -1
- package/dist/eu-BUNUOJ7E.cjs +2 -0
- package/dist/{eu-DEo7fdTW.js → eu-C6r1_PRy.js} +1 -1
- package/dist/{fi-DxErwnd5.js → fi-CzOKgmjK.js} +1 -1
- package/dist/fi-q6BFPHtt.cjs +2 -0
- package/dist/fr-BEnCZ733.cjs +2 -0
- package/dist/{fr-zrtSZX0o.js → fr-D0cDkdbn.js} +1 -1
- package/dist/{ga-CbHxGc9_.js → ga-0A7ndSzw.js} +1 -1
- package/dist/ga-BXyKTnJr.cjs +2 -0
- package/dist/{gl--w0P3RY4.js → gl-BNwj4XAu.js} +1 -1
- package/dist/gl-DR1C-hSi.cjs +2 -0
- package/dist/{he-DY19lzWp.js → he-BPiZ6D5h.js} +1 -1
- package/dist/he-OD1Ex2Fw.cjs +2 -0
- package/dist/{hi-CFSsoO_8.js → hi-CSgtp9Yg.js} +1 -1
- package/dist/hi-Dt9FvBmh.cjs +2 -0
- package/dist/{hr-DIRJ1Z8e.js → hr-CDSSj52Q.js} +1 -1
- package/dist/hr-DMzwNhar.cjs +2 -0
- package/dist/hu-Bc-rChfV.cjs +2 -0
- package/dist/{hu-DqYPRWZh.js → hu-TDJYiDOB.js} +1 -1
- package/dist/{id-Dgj7SUCi.js → id-B3IF5pnh.js} +1 -1
- package/dist/id-CwndN9HH.cjs +2 -0
- package/dist/index.cjs +105 -130
- package/dist/index.js +5983 -18453
- package/dist/{it-QdChHqVN.js → it-BLET318M.js} +1 -1
- package/dist/it-DaYS5Vil.cjs +2 -0
- package/dist/ja-BYA2LXHy.cjs +2 -0
- package/dist/{ja-BNS0BbY-.js → ja-NxwXLaKV.js} +1 -1
- package/dist/{kk-Dhkax68h.js → kk-CceJcjtl.js} +1 -1
- package/dist/kk-Ctrvuqlz.cjs +2 -0
- package/dist/{ko-heRMHZWp.js → ko-cS_OE967.js} +1 -1
- package/dist/ko-evIcpTG8.cjs +2 -0
- package/dist/lt-CYTLGgh6.cjs +2 -0
- package/dist/{lt-Decqbo8S.js → lt-CZ-kk_5b.js} +1 -1
- package/dist/{lv-wZASv0Lw.js → lv-BTvPpEjc.js} +1 -1
- package/dist/lv-COjitD3w.cjs +2 -0
- package/dist/mk-B-LF5gVL.cjs +2 -0
- package/dist/{mk-BTsLGTJT.js → mk-CSSyI3El.js} +1 -1
- package/dist/ms-CzEvkib0.cjs +2 -0
- package/dist/{ms-C0cVNwky.js → ms-Dz5JnKJ1.js} +1 -1
- package/dist/nb-B1KWSX94.cjs +2 -0
- package/dist/{nb-DGX4q4tS.js → nb-DkgTg1et.js} +1 -1
- package/dist/{nl-CnXZa8tZ.js → nl-CQ5eoxw2.js} +1 -1
- package/dist/nl-knWqo2aX.cjs +2 -0
- package/dist/{pl-DbIdTNpg.js → pl-BQJfOizT.js} +1 -1
- package/dist/pl-Ce6dq53t.cjs +2 -0
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +1 -1
- package/dist/pt-BVqTnGkF.cjs +2 -0
- package/dist/{pt-CcKYweQk.js → pt-b0p7DoD0.js} +1 -1
- package/dist/ro-DqJMfhmX.cjs +2 -0
- package/dist/{ro-C-8tiqgA.js → ro-sbBtUVJV.js} +1 -1
- package/dist/ru-Dm2NAQyK.cjs +2 -0
- package/dist/{ru-Dhnz96q2.js → ru-ofzbka6D.js} +1 -1
- package/dist/sk-BNe6CHG-.cjs +2 -0
- package/dist/{sk-BU-Z5EsC.js → sk-BtpdNCPC.js} +1 -1
- package/dist/{sl-CcfjJFxo.js → sl-B4GsKLu6.js} +1 -1
- package/dist/sl-BKmEUGyu.cjs +2 -0
- package/dist/{sr-S53unrLA.js → sr-C76YVpkQ.js} +1 -1
- package/dist/sr-Dwya5lwF.cjs +2 -0
- package/dist/sv-BGL2G9Vm.cjs +2 -0
- package/dist/{sv-BiJrVfZr.js → sv-PesX57cX.js} +1 -1
- package/dist/{th-vQ7LQ7nD.js → th-CbCNOBnR.js} +1 -1
- package/dist/th-DEv6shFI.cjs +2 -0
- package/dist/{tr-C5RrNGLz.js → tr-B0TPxXKS.js} +1 -1
- package/dist/tr-BB-QonGE.cjs +2 -0
- package/dist/uk-B-3fLKpR.cjs +2 -0
- package/dist/{uk-WGCFH0fY.js → uk-_9cNoBNe.js} +1 -1
- package/dist/{vi-Waa7HkXq.js → vi-B8SfqLW6.js} +1 -1
- package/dist/vi-Dx6pJ0ir.cjs +2 -0
- package/dist/zh-DD0ml2HG.cjs +2 -0
- package/dist/{zh-BmUS7Wn_.js → zh-DqHnbp6B.js} +1 -1
- package/package.json +3 -2
- package/dist/LocalizationProvider-B6NxHbu2.cjs +0 -2
- package/dist/_arrayEach-BuSFKyFt.js +0 -54
- package/dist/_arrayEach-ChR-TejB.cjs +0 -2
- package/dist/_getTag-BRuLtYrv.js +0 -28
- package/dist/_getTag-D6VVyrEu.cjs +0 -2
- package/dist/ar-ip3bGOX3.cjs +0 -2
- package/dist/arc-4yb49ncY.js +0 -82
- package/dist/arc-djsA8IT0.cjs +0 -2
- package/dist/architecture-PBZL5I3N-CvTfVLFi.js +0 -3
- package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +0 -1
- package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +0 -37
- package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +0 -4047
- package/dist/array-BNB_vRFv.cjs +0 -2
- package/dist/array-DP0duYiO.js +0 -8
- package/dist/az-CyVLdUDz.cjs +0 -2
- package/dist/bg-Bexoz3hL.cjs +0 -2
- package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +0 -3165
- package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +0 -133
- package/dist/bs-MMcvhwLv.cjs +0 -2
- package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +0 -2966
- package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +0 -11
- package/dist/ca-BspMSeHN.cjs +0 -2
- package/dist/channel-2Bqnb1FY.js +0 -7
- package/dist/channel-5_aP1EVB.cjs +0 -2
- package/dist/chunk-4BX2VUAB-B5Va_oZz.js +0 -10
- package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +0 -2
- package/dist/chunk-55IACEB6-4ind_ByS.cjs +0 -2
- package/dist/chunk-55IACEB6-Pcyz_aR_.js +0 -10
- package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +0 -2
- package/dist/chunk-7E7YKBS2-VHdgsed6.js +0 -25
- package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +0 -81
- package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +0 -2598
- package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +0 -2
- package/dist/chunk-C72U2L5F-MjJQTOMh.js +0 -25
- package/dist/chunk-D-IZpNpi.cjs +0 -1
- package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +0 -2
- package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +0 -25
- package/dist/chunk-FMBD7UC4-BvqqU04Z.cjs +0 -16
- package/dist/chunk-FMBD7UC4-xjRtkFXe.js +0 -7
- package/dist/chunk-GEFDOKGD-BNgT40Ex.js +0 -1302
- package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +0 -3
- package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +0 -2
- package/dist/chunk-GLR3WWYH-kyo6BUtq.js +0 -43
- package/dist/chunk-HHEYEP7N-DO1AYIZw.js +0 -11
- package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +0 -2
- package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +0 -2
- package/dist/chunk-JSJVCQXG-DowfYWcD.js +0 -62
- package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +0 -2
- package/dist/chunk-KX2RTZJC-D-bUTSNy.js +0 -27
- package/dist/chunk-KYZI473N-DEPuSXaW.js +0 -3436
- package/dist/chunk-KYZI473N-DzBMFOER.cjs +0 -54
- package/dist/chunk-L3YUKLVL-BDGCTzmy.js +0 -25
- package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +0 -2
- package/dist/chunk-MX3YWQON-CAsnAj2e.js +0 -82
- package/dist/chunk-MX3YWQON-DulrBJdn.cjs +0 -2
- package/dist/chunk-NBPlniwU.js +0 -23
- package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +0 -221
- package/dist/chunk-NQ4KR5QH-DFem-ORD.js +0 -2004
- package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +0 -8
- package/dist/chunk-O4XLMI2P-DA4TPzPG.js +0 -513
- package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +0 -2
- package/dist/chunk-OZEHJAEY-D7SX2SbR.js +0 -66
- package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +0 -2
- package/dist/chunk-PQ6SQG4A-ObFGkauo.js +0 -69
- package/dist/chunk-PU5JKC2W-BM5NPS-q.js +0 -1887
- package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +0 -71
- package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +0 -2
- package/dist/chunk-QZHKN3VN-x258g6EH.js +0 -17
- package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +0 -2
- package/dist/chunk-R5LLSJPH-Gt27ml2m.js +0 -37
- package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +0 -190
- package/dist/chunk-WL4C6EOR-DuM6QmqM.js +0 -3196
- package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +0 -2
- package/dist/chunk-XIRO2GV7-DXlO8X82.js +0 -32
- package/dist/chunk-XPW4576I-Bpsr4SZJ.js +0 -1148
- package/dist/chunk-XPW4576I-C68T-WIW.cjs +0 -33
- package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +0 -95
- package/dist/chunk-XZSTWKYB-jD9M1izK.js +0 -16132
- package/dist/chunk-YBOYWFTD-B6CeuteH.js +0 -34
- package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +0 -2
- package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +0 -2
- package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +0 -31
- package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +0 -2
- package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +0 -31
- package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +0 -2252
- package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +0 -2
- package/dist/cs-FZSeHYld.cjs +0 -2
- package/dist/cy-CzQmM2lQ.cjs +0 -2
- package/dist/cytoscape.esm-CcJAI0wG.cjs +0 -322
- package/dist/cytoscape.esm-D9EjU25_.js +0 -18102
- package/dist/da-CexFt-Oj.cjs +0 -2
- package/dist/dagre-CpEPaL3r.cjs +0 -2
- package/dist/dagre-Dd8wCGc6.js +0 -1305
- package/dist/dagre-KLK3FWXG-BpxkjvB3.js +0 -294
- package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +0 -5
- package/dist/de-B68HwuYu.cjs +0 -2
- package/dist/defaultLocale-CYOzCjwh.js +0 -203
- package/dist/defaultLocale-DSgylVA1.cjs +0 -2
- package/dist/diagram-E7M64L7V-dXqTi77U.cjs +0 -25
- package/dist/diagram-E7M64L7V-oX07GVAD.js +0 -529
- package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +0 -44
- package/dist/diagram-IFDJBPK2-lCNF06_S.js +0 -215
- package/dist/diagram-P4PSJMXO-TfwVJh4S.js +0 -135
- package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +0 -25
- package/dist/dist-CV9Ez7cn.js +0 -52
- package/dist/dist-DVthN7lF.cjs +0 -2
- package/dist/el-DQc4jSMd.cjs +0 -2
- package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +0 -71
- package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +0 -1668
- package/dist/es-DI8Y4Bv1.cjs +0 -2
- package/dist/et-DfaryKvp.cjs +0 -2
- package/dist/eu-BVOSXciF.cjs +0 -2
- package/dist/fi-C5L-OzaI.cjs +0 -2
- package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +0 -163
- package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +0 -4163
- package/dist/fr-yFvjqx8B.cjs +0 -2
- package/dist/ga-6mVQhlWi.cjs +0 -2
- package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +0 -293
- package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +0 -3074
- package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +0 -3
- package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +0 -1
- package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +0 -627
- package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +0 -66
- package/dist/gl-BJzJe1sq.cjs +0 -2
- package/dist/graphlib-CPo7oIsu.js +0 -223
- package/dist/graphlib-CmUS4Qin.cjs +0 -2
- package/dist/he-B3Bw3qr0.cjs +0 -2
- package/dist/hi-kofL-mD8.cjs +0 -2
- package/dist/hr-CDxqA9Jm.cjs +0 -2
- package/dist/hu-Defen_75.cjs +0 -2
- package/dist/id-DcwMRgmX.cjs +0 -2
- package/dist/identity-6JlhFhuM.cjs +0 -2
- package/dist/identity-C1jKsMoW.js +0 -395
- package/dist/info-3K5VOQVL-DfN_3mKd.js +0 -3
- package/dist/info-3K5VOQVL-d6J9FY0_.cjs +0 -1
- package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +0 -3
- package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +0 -21
- package/dist/init-BAFZAp9S.cjs +0 -2
- package/dist/init-m0TwgR4W.js +0 -17
- package/dist/isEmpty-BTp1uKIj.cjs +0 -2
- package/dist/isEmpty-uXVYZZYe.js +0 -17
- package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +0 -719
- package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +0 -71
- package/dist/it-D5nM6KCi.cjs +0 -2
- package/dist/ja-BtuHirv7.cjs +0 -2
- package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +0 -140
- package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +0 -885
- package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +0 -90
- package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +0 -973
- package/dist/katex-B-Nju2J8.js +0 -22002
- package/dist/katex-WY67Rp7A.cjs +0 -266
- package/dist/kk-BSl8IqgQ.cjs +0 -2
- package/dist/ko-eplb1GD0.cjs +0 -2
- package/dist/line-CbEBKCYr.js +0 -36
- package/dist/line-DqSdvtRR.cjs +0 -2
- package/dist/linear-DvLDpS6A.cjs +0 -2
- package/dist/linear-Eb79THx6.js +0 -291
- package/dist/lt-DsYAWFbF.cjs +0 -2
- package/dist/lv-DHmTjCb8.cjs +0 -2
- package/dist/maplibre-gl-qSrG75fp.js +0 -33003
- package/dist/maplibre-gl-tm_pVdmb.cjs +0 -757
- package/dist/math-DR9t6ixc.cjs +0 -2
- package/dist/math-DyURnvXC.js +0 -12
- package/dist/mermaid-parser.core-BdTB9qx-.js +0 -61
- package/dist/mermaid-parser.core-BlzF5RRD.cjs +0 -4
- package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +0 -966
- package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +0 -69
- package/dist/mk-CCV_308U.cjs +0 -2
- package/dist/ms-CH83xVYN.cjs +0 -2
- package/dist/nb-DZ-DlwcL.cjs +0 -2
- package/dist/nl-Xdf-A19i.cjs +0 -2
- package/dist/ordinal-BAWGEQkf.js +0 -67
- package/dist/ordinal-CL2X4e2C.cjs +0 -2
- package/dist/packet-RMMSAZCW-Bek1stRX.cjs +0 -1
- package/dist/packet-RMMSAZCW-DUN6t9lN.js +0 -3
- package/dist/path-Bt6guLtL.cjs +0 -2
- package/dist/path-DSzKK8fH.js +0 -87
- package/dist/pie-UPGHQEXC-DjqNO54R.js +0 -3
- package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +0 -1
- package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +0 -31
- package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +0 -167
- package/dist/pl-BStql1S-.cjs +0 -2
- package/dist/pt-Dk4jELuZ.cjs +0 -2
- package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +0 -8
- package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +0 -1976
- package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +0 -1
- package/dist/radar-KQ55EAFF-C6zhEkCz.js +0 -3
- package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +0 -2203
- package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +0 -74
- package/dist/ro-BvhMyTKh.cjs +0 -2
- package/dist/rough.esm-BjJ_weyP.cjs +0 -2
- package/dist/rough.esm-DBHP55VQ.js +0 -1354
- package/dist/ru-BQosng8l.cjs +0 -2
- package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +0 -922
- package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +0 -11
- package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +0 -146
- package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +0 -4111
- package/dist/sk-BhA7UeAk.cjs +0 -2
- package/dist/sl-6Mczv4jG.cjs +0 -2
- package/dist/sr-CxObZdu0.cjs +0 -2
- package/dist/src-DFxq-N5I.cjs +0 -2
- package/dist/src-Dm6r9c7l.js +0 -2148
- package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +0 -219
- package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +0 -2
- package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +0 -29
- package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +0 -2
- package/dist/sv-BfiunVuX.cjs +0 -2
- package/dist/th-BqLGltZi.cjs +0 -2
- package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +0 -832
- package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +0 -62
- package/dist/tr-Brwl4o_Z.cjs +0 -2
- package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +0 -1
- package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +0 -3
- package/dist/uk-CV49TRvS.cjs +0 -2
- package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +0 -1860
- package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +0 -35
- package/dist/vi-JzM7bjn_.cjs +0 -2
- package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +0 -8
- package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +0 -2043
- package/dist/zh-DEm0SGzZ.cjs +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-IZpNpi.cjs`),require(`./chunk-XZSTWKYB-DJv9rEVU.cjs`);const e=require(`./chunk-7E7YKBS2-Sw9_w4gt.cjs`);exports.createGitGraphServices=e.n;
|
|
@@ -1,627 +0,0 @@
|
|
|
1
|
-
import { g as e, h as t, p as n } from "./src-Dm6r9c7l.js";
|
|
2
|
-
import { B as r, C as i, V as a, W as o, _ as s, a as c, d as l, q as u, s as d, v as f, y as p } from "./chunk-7R4GIKGN-CaQJ0QBF.js";
|
|
3
|
-
import { h as ee, p as te, r as m } from "./chunk-GEFDOKGD-BNgT40Ex.js";
|
|
4
|
-
import { t as h } from "./chunk-4BX2VUAB-B5Va_oZz.js";
|
|
5
|
-
import { t as g } from "./mermaid-parser.core-BdTB9qx-.js";
|
|
6
|
-
import { t as ne } from "./chunk-QZHKN3VN-x258g6EH.js";
|
|
7
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-K3NZZRJ6.mjs
|
|
8
|
-
var _ = {
|
|
9
|
-
NORMAL: 0,
|
|
10
|
-
REVERSE: 1,
|
|
11
|
-
HIGHLIGHT: 2,
|
|
12
|
-
MERGE: 3,
|
|
13
|
-
CHERRY_PICK: 4
|
|
14
|
-
}, re = l.gitGraph, v = /* @__PURE__ */ t(() => m({
|
|
15
|
-
...re,
|
|
16
|
-
...p().gitGraph
|
|
17
|
-
}), "getConfig"), y = new ne(() => {
|
|
18
|
-
let e = v(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
19
|
-
return {
|
|
20
|
-
mainBranchName: t,
|
|
21
|
-
commits: /* @__PURE__ */ new Map(),
|
|
22
|
-
head: null,
|
|
23
|
-
branchConfig: /* @__PURE__ */ new Map([[t, {
|
|
24
|
-
name: t,
|
|
25
|
-
order: n
|
|
26
|
-
}]]),
|
|
27
|
-
branches: /* @__PURE__ */ new Map([[t, null]]),
|
|
28
|
-
currBranch: t,
|
|
29
|
-
direction: "LR",
|
|
30
|
-
seq: 0,
|
|
31
|
-
options: {}
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
function b() {
|
|
35
|
-
return te({ length: 7 });
|
|
36
|
-
}
|
|
37
|
-
t(b, "getID");
|
|
38
|
-
function x(e, t) {
|
|
39
|
-
let n = /* @__PURE__ */ Object.create(null);
|
|
40
|
-
return e.reduce((e, r) => {
|
|
41
|
-
let i = t(r);
|
|
42
|
-
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
43
|
-
}, []);
|
|
44
|
-
}
|
|
45
|
-
t(x, "uniqBy");
|
|
46
|
-
var S = /* @__PURE__ */ t(function(e) {
|
|
47
|
-
y.records.direction = e;
|
|
48
|
-
}, "setDirection"), C = /* @__PURE__ */ t(function(t) {
|
|
49
|
-
e.debug("options str", t), t = t?.trim(), t ||= "{}";
|
|
50
|
-
try {
|
|
51
|
-
y.records.options = JSON.parse(t);
|
|
52
|
-
} catch (t) {
|
|
53
|
-
e.error("error while parsing gitGraph options", t.message);
|
|
54
|
-
}
|
|
55
|
-
}, "setOptions"), ie = /* @__PURE__ */ t(function() {
|
|
56
|
-
return y.records.options;
|
|
57
|
-
}, "getOptions"), ae = /* @__PURE__ */ t(function(t) {
|
|
58
|
-
let n = t.msg, r = t.id, i = t.type, a = t.tags;
|
|
59
|
-
e.info("commit", n, r, i, a), e.debug("Entering commit:", n, r, i, a);
|
|
60
|
-
let o = v();
|
|
61
|
-
r = d.sanitizeText(r, o), n = d.sanitizeText(n, o), a = a?.map((e) => d.sanitizeText(e, o));
|
|
62
|
-
let s = {
|
|
63
|
-
id: r || y.records.seq + "-" + b(),
|
|
64
|
-
message: n,
|
|
65
|
-
seq: y.records.seq++,
|
|
66
|
-
type: i ?? _.NORMAL,
|
|
67
|
-
tags: a ?? [],
|
|
68
|
-
parents: y.records.head == null ? [] : [y.records.head.id],
|
|
69
|
-
branch: y.records.currBranch
|
|
70
|
-
};
|
|
71
|
-
y.records.head = s, e.info("main branch", o.mainBranchName), y.records.commits.has(s.id) && e.warn(`Commit ID ${s.id} already exists`), y.records.commits.set(s.id, s), y.records.branches.set(y.records.currBranch, s.id), e.debug("in pushCommit " + s.id);
|
|
72
|
-
}, "commit"), oe = /* @__PURE__ */ t(function(t) {
|
|
73
|
-
let n = t.name, r = t.order;
|
|
74
|
-
if (n = d.sanitizeText(n, v()), y.records.branches.has(n)) 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 ${n}")`);
|
|
75
|
-
y.records.branches.set(n, y.records.head == null ? null : y.records.head.id), y.records.branchConfig.set(n, {
|
|
76
|
-
name: n,
|
|
77
|
-
order: r
|
|
78
|
-
}), w(n), e.debug("in createBranch");
|
|
79
|
-
}, "branch"), se = /* @__PURE__ */ t((t) => {
|
|
80
|
-
let n = t.branch, r = t.id, i = t.type, a = t.tags, o = v();
|
|
81
|
-
n = d.sanitizeText(n, o), r &&= d.sanitizeText(r, o);
|
|
82
|
-
let s = y.records.branches.get(y.records.currBranch), c = y.records.branches.get(n), l = s ? y.records.commits.get(s) : void 0, u = c ? y.records.commits.get(c) : void 0;
|
|
83
|
-
if (l && u && l.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
|
|
84
|
-
if (y.records.currBranch === n) {
|
|
85
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
86
|
-
throw e.hash = {
|
|
87
|
-
text: `merge ${n}`,
|
|
88
|
-
token: `merge ${n}`,
|
|
89
|
-
expected: ["branch abc"]
|
|
90
|
-
}, e;
|
|
91
|
-
}
|
|
92
|
-
if (l === void 0 || !l) {
|
|
93
|
-
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${y.records.currBranch})has no commits`);
|
|
94
|
-
throw e.hash = {
|
|
95
|
-
text: `merge ${n}`,
|
|
96
|
-
token: `merge ${n}`,
|
|
97
|
-
expected: ["commit"]
|
|
98
|
-
}, e;
|
|
99
|
-
}
|
|
100
|
-
if (!y.records.branches.has(n)) {
|
|
101
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
|
|
102
|
-
throw e.hash = {
|
|
103
|
-
text: `merge ${n}`,
|
|
104
|
-
token: `merge ${n}`,
|
|
105
|
-
expected: [`branch ${n}`]
|
|
106
|
-
}, e;
|
|
107
|
-
}
|
|
108
|
-
if (u === void 0 || !u) {
|
|
109
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
|
|
110
|
-
throw e.hash = {
|
|
111
|
-
text: `merge ${n}`,
|
|
112
|
-
token: `merge ${n}`,
|
|
113
|
-
expected: ["\"commit\""]
|
|
114
|
-
}, e;
|
|
115
|
-
}
|
|
116
|
-
if (l === u) {
|
|
117
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
118
|
-
throw e.hash = {
|
|
119
|
-
text: `merge ${n}`,
|
|
120
|
-
token: `merge ${n}`,
|
|
121
|
-
expected: ["branch abc"]
|
|
122
|
-
}, e;
|
|
123
|
-
}
|
|
124
|
-
if (r && y.records.commits.has(r)) {
|
|
125
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
|
|
126
|
-
throw e.hash = {
|
|
127
|
-
text: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
|
|
128
|
-
token: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
|
|
129
|
-
expected: [`merge ${n} ${r}_UNIQUE ${i} ${a?.join(" ")}`]
|
|
130
|
-
}, e;
|
|
131
|
-
}
|
|
132
|
-
let f = c || "", p = {
|
|
133
|
-
id: r || `${y.records.seq}-${b()}`,
|
|
134
|
-
message: `merged branch ${n} into ${y.records.currBranch}`,
|
|
135
|
-
seq: y.records.seq++,
|
|
136
|
-
parents: y.records.head == null ? [] : [y.records.head.id, f],
|
|
137
|
-
branch: y.records.currBranch,
|
|
138
|
-
type: _.MERGE,
|
|
139
|
-
customType: i,
|
|
140
|
-
customId: !!r,
|
|
141
|
-
tags: a ?? []
|
|
142
|
-
};
|
|
143
|
-
y.records.head = p, y.records.commits.set(p.id, p), y.records.branches.set(y.records.currBranch, p.id), e.debug(y.records.branches), e.debug("in mergeBranch");
|
|
144
|
-
}, "merge"), ce = /* @__PURE__ */ t(function(t) {
|
|
145
|
-
let n = t.id, r = t.targetId, i = t.tags, a = t.parent;
|
|
146
|
-
e.debug("Entering cherryPick:", n, r, i);
|
|
147
|
-
let o = v();
|
|
148
|
-
if (n = d.sanitizeText(n, o), r = d.sanitizeText(r, o), i = i?.map((e) => d.sanitizeText(e, o)), a = d.sanitizeText(a, o), !n || !y.records.commits.has(n)) {
|
|
149
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
150
|
-
throw e.hash = {
|
|
151
|
-
text: `cherryPick ${n} ${r}`,
|
|
152
|
-
token: `cherryPick ${n} ${r}`,
|
|
153
|
-
expected: ["cherry-pick abc"]
|
|
154
|
-
}, e;
|
|
155
|
-
}
|
|
156
|
-
let s = y.records.commits.get(n);
|
|
157
|
-
if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
158
|
-
if (a && !(Array.isArray(s.parents) && s.parents.includes(a))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
159
|
-
let c = s.branch;
|
|
160
|
-
if (s.type === _.MERGE && !a) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
|
|
161
|
-
if (!r || !y.records.commits.has(r)) {
|
|
162
|
-
if (c === y.records.currBranch) {
|
|
163
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
164
|
-
throw e.hash = {
|
|
165
|
-
text: `cherryPick ${n} ${r}`,
|
|
166
|
-
token: `cherryPick ${n} ${r}`,
|
|
167
|
-
expected: ["cherry-pick abc"]
|
|
168
|
-
}, e;
|
|
169
|
-
}
|
|
170
|
-
let t = y.records.branches.get(y.records.currBranch);
|
|
171
|
-
if (t === void 0 || !t) {
|
|
172
|
-
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${y.records.currBranch})has no commits`);
|
|
173
|
-
throw e.hash = {
|
|
174
|
-
text: `cherryPick ${n} ${r}`,
|
|
175
|
-
token: `cherryPick ${n} ${r}`,
|
|
176
|
-
expected: ["cherry-pick abc"]
|
|
177
|
-
}, e;
|
|
178
|
-
}
|
|
179
|
-
let o = y.records.commits.get(t);
|
|
180
|
-
if (o === void 0 || !o) {
|
|
181
|
-
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${y.records.currBranch})has no commits`);
|
|
182
|
-
throw e.hash = {
|
|
183
|
-
text: `cherryPick ${n} ${r}`,
|
|
184
|
-
token: `cherryPick ${n} ${r}`,
|
|
185
|
-
expected: ["cherry-pick abc"]
|
|
186
|
-
}, e;
|
|
187
|
-
}
|
|
188
|
-
let l = {
|
|
189
|
-
id: y.records.seq + "-" + b(),
|
|
190
|
-
message: `cherry-picked ${s?.message} into ${y.records.currBranch}`,
|
|
191
|
-
seq: y.records.seq++,
|
|
192
|
-
parents: y.records.head == null ? [] : [y.records.head.id, s.id],
|
|
193
|
-
branch: y.records.currBranch,
|
|
194
|
-
type: _.CHERRY_PICK,
|
|
195
|
-
tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === _.MERGE ? `|parent:${a}` : ""}`]
|
|
196
|
-
};
|
|
197
|
-
y.records.head = l, y.records.commits.set(l.id, l), y.records.branches.set(y.records.currBranch, l.id), e.debug(y.records.branches), e.debug("in cherryPick");
|
|
198
|
-
}
|
|
199
|
-
}, "cherryPick"), w = /* @__PURE__ */ t(function(e) {
|
|
200
|
-
if (e = d.sanitizeText(e, v()), y.records.branches.has(e)) {
|
|
201
|
-
y.records.currBranch = e;
|
|
202
|
-
let t = y.records.branches.get(y.records.currBranch);
|
|
203
|
-
t === void 0 || !t ? y.records.head = null : y.records.head = y.records.commits.get(t) ?? null;
|
|
204
|
-
} else {
|
|
205
|
-
let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
|
|
206
|
-
throw t.hash = {
|
|
207
|
-
text: `checkout ${e}`,
|
|
208
|
-
token: `checkout ${e}`,
|
|
209
|
-
expected: [`branch ${e}`]
|
|
210
|
-
}, t;
|
|
211
|
-
}
|
|
212
|
-
}, "checkout");
|
|
213
|
-
function T(e, t, n) {
|
|
214
|
-
let r = e.indexOf(t);
|
|
215
|
-
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
216
|
-
}
|
|
217
|
-
t(T, "upsert");
|
|
218
|
-
function E(t) {
|
|
219
|
-
let n = t.reduce((e, t) => e.seq > t.seq ? e : t, t[0]), r = "";
|
|
220
|
-
t.forEach(function(e) {
|
|
221
|
-
e === n ? r += " *" : r += " |";
|
|
222
|
-
});
|
|
223
|
-
let i = [
|
|
224
|
-
r,
|
|
225
|
-
n.id,
|
|
226
|
-
n.seq
|
|
227
|
-
];
|
|
228
|
-
for (let e in y.records.branches) y.records.branches.get(e) === n.id && i.push(e);
|
|
229
|
-
if (e.debug(i.join(" ")), n.parents && n.parents.length == 2 && n.parents[0] && n.parents[1]) {
|
|
230
|
-
let e = y.records.commits.get(n.parents[0]);
|
|
231
|
-
T(t, n, e), n.parents[1] && t.push(y.records.commits.get(n.parents[1]));
|
|
232
|
-
} else if (n.parents.length == 0) return;
|
|
233
|
-
else if (n.parents[0]) {
|
|
234
|
-
let e = y.records.commits.get(n.parents[0]);
|
|
235
|
-
T(t, n, e);
|
|
236
|
-
}
|
|
237
|
-
t = x(t, (e) => e.id), E(t);
|
|
238
|
-
}
|
|
239
|
-
t(E, "prettyPrintCommitHistory");
|
|
240
|
-
var le = /* @__PURE__ */ t(function() {
|
|
241
|
-
e.debug(y.records.commits);
|
|
242
|
-
let t = D()[0];
|
|
243
|
-
E([t]);
|
|
244
|
-
}, "prettyPrint"), ue = /* @__PURE__ */ t(function() {
|
|
245
|
-
y.reset(), c();
|
|
246
|
-
}, "clear"), de = /* @__PURE__ */ t(function() {
|
|
247
|
-
return [...y.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
248
|
-
...e,
|
|
249
|
-
order: parseFloat(`0.${t}`)
|
|
250
|
-
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
251
|
-
}, "getBranchesAsObjArray"), fe = /* @__PURE__ */ t(function() {
|
|
252
|
-
return y.records.branches;
|
|
253
|
-
}, "getBranches"), pe = /* @__PURE__ */ t(function() {
|
|
254
|
-
return y.records.commits;
|
|
255
|
-
}, "getCommits"), D = /* @__PURE__ */ t(function() {
|
|
256
|
-
let t = [...y.records.commits.values()];
|
|
257
|
-
return t.forEach(function(t) {
|
|
258
|
-
e.debug(t.id);
|
|
259
|
-
}), t.sort((e, t) => e.seq - t.seq), t;
|
|
260
|
-
}, "getCommitsArray"), O = {
|
|
261
|
-
commitType: _,
|
|
262
|
-
getConfig: v,
|
|
263
|
-
setDirection: S,
|
|
264
|
-
setOptions: C,
|
|
265
|
-
getOptions: ie,
|
|
266
|
-
commit: ae,
|
|
267
|
-
branch: oe,
|
|
268
|
-
merge: se,
|
|
269
|
-
cherryPick: ce,
|
|
270
|
-
checkout: w,
|
|
271
|
-
prettyPrint: le,
|
|
272
|
-
clear: ue,
|
|
273
|
-
getBranchesAsObjArray: de,
|
|
274
|
-
getBranches: fe,
|
|
275
|
-
getCommits: pe,
|
|
276
|
-
getCommitsArray: D,
|
|
277
|
-
getCurrentBranch: /* @__PURE__ */ t(function() {
|
|
278
|
-
return y.records.currBranch;
|
|
279
|
-
}, "getCurrentBranch"),
|
|
280
|
-
getDirection: /* @__PURE__ */ t(function() {
|
|
281
|
-
return y.records.direction;
|
|
282
|
-
}, "getDirection"),
|
|
283
|
-
getHead: /* @__PURE__ */ t(function() {
|
|
284
|
-
return y.records.head;
|
|
285
|
-
}, "getHead"),
|
|
286
|
-
setAccTitle: a,
|
|
287
|
-
getAccTitle: f,
|
|
288
|
-
getAccDescription: s,
|
|
289
|
-
setAccDescription: r,
|
|
290
|
-
setDiagramTitle: o,
|
|
291
|
-
getDiagramTitle: i
|
|
292
|
-
}, k = /* @__PURE__ */ t((e, t) => {
|
|
293
|
-
h(e, t), e.dir && t.setDirection(e.dir);
|
|
294
|
-
for (let n of e.statements) A(n, t);
|
|
295
|
-
}, "populate"), A = /* @__PURE__ */ t((n, r) => {
|
|
296
|
-
let i = {
|
|
297
|
-
Commit: /* @__PURE__ */ t((e) => r.commit(j(e)), "Commit"),
|
|
298
|
-
Branch: /* @__PURE__ */ t((e) => r.branch(M(e)), "Branch"),
|
|
299
|
-
Merge: /* @__PURE__ */ t((e) => r.merge(N(e)), "Merge"),
|
|
300
|
-
Checkout: /* @__PURE__ */ t((e) => r.checkout(P(e)), "Checkout"),
|
|
301
|
-
CherryPicking: /* @__PURE__ */ t((e) => r.cherryPick(F(e)), "CherryPicking")
|
|
302
|
-
}[n.$type];
|
|
303
|
-
i ? i(n) : e.error(`Unknown statement type: ${n.$type}`);
|
|
304
|
-
}, "parseStatement"), j = /* @__PURE__ */ t((e) => ({
|
|
305
|
-
id: e.id,
|
|
306
|
-
msg: e.message ?? "",
|
|
307
|
-
type: e.type === void 0 ? _.NORMAL : _[e.type],
|
|
308
|
-
tags: e.tags ?? void 0
|
|
309
|
-
}), "parseCommit"), M = /* @__PURE__ */ t((e) => ({
|
|
310
|
-
name: e.name,
|
|
311
|
-
order: e.order ?? 0
|
|
312
|
-
}), "parseBranch"), N = /* @__PURE__ */ t((e) => ({
|
|
313
|
-
branch: e.branch,
|
|
314
|
-
id: e.id ?? "",
|
|
315
|
-
type: e.type === void 0 ? void 0 : _[e.type],
|
|
316
|
-
tags: e.tags ?? void 0
|
|
317
|
-
}), "parseMerge"), P = /* @__PURE__ */ t((e) => e.branch, "parseCheckout"), F = /* @__PURE__ */ t((e) => ({
|
|
318
|
-
id: e.id,
|
|
319
|
-
targetId: "",
|
|
320
|
-
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
321
|
-
parent: e.parent
|
|
322
|
-
}), "parseCherryPicking"), I = { parse: /* @__PURE__ */ t(async (t) => {
|
|
323
|
-
let n = await g("gitGraph", t);
|
|
324
|
-
e.debug(n), k(n, O);
|
|
325
|
-
}, "parse") }, L = 10, R = 40, z = 4, B = 2, V = 8, H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", me = /* @__PURE__ */ t(() => {
|
|
326
|
-
H.clear(), U.clear(), G.clear(), q = 0, K = [], J = "LR";
|
|
327
|
-
}, "clear"), Y = /* @__PURE__ */ t((e) => {
|
|
328
|
-
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
329
|
-
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
330
|
-
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
331
|
-
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);
|
|
332
|
-
}), t;
|
|
333
|
-
}, "drawText"), X = /* @__PURE__ */ t((e) => {
|
|
334
|
-
let n, r, i;
|
|
335
|
-
return J === "BT" ? (r = /* @__PURE__ */ t((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ t((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
|
|
336
|
-
let t = J === "TB" || J == "BT" ? U.get(e)?.y : U.get(e)?.x;
|
|
337
|
-
t !== void 0 && r(t, i) && (n = e, i = t);
|
|
338
|
-
}), n;
|
|
339
|
-
}, "findClosestParent"), he = /* @__PURE__ */ t((e) => {
|
|
340
|
-
let t = "", n = Infinity;
|
|
341
|
-
return e.forEach((e) => {
|
|
342
|
-
let r = U.get(e).y;
|
|
343
|
-
r <= n && (t = e, n = r);
|
|
344
|
-
}), t || void 0;
|
|
345
|
-
}, "findClosestParentBT"), ge = /* @__PURE__ */ t((e, t, n) => {
|
|
346
|
-
let r = n, i = n, a = [];
|
|
347
|
-
e.forEach((e) => {
|
|
348
|
-
let n = t.get(e);
|
|
349
|
-
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
350
|
-
n.parents.length ? (r = ve(n), i = Math.max(r, i)) : a.push(n), ye(n, r);
|
|
351
|
-
}), r = i, a.forEach((e) => {
|
|
352
|
-
be(e, r, n);
|
|
353
|
-
}), e.forEach((e) => {
|
|
354
|
-
let n = t.get(e);
|
|
355
|
-
if (n?.parents.length) {
|
|
356
|
-
let e = he(n.parents);
|
|
357
|
-
r = U.get(e).y - R, r <= i && (i = r);
|
|
358
|
-
let t = H.get(n.branch).pos, a = r - L;
|
|
359
|
-
U.set(n.id, {
|
|
360
|
-
x: t,
|
|
361
|
-
y: a
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
}, "setParallelBTPos"), _e = /* @__PURE__ */ t((e) => {
|
|
366
|
-
let t = X(e.parents.filter((e) => e !== null));
|
|
367
|
-
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
368
|
-
let n = U.get(t)?.y;
|
|
369
|
-
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
370
|
-
return n;
|
|
371
|
-
}, "findClosestParentPos"), ve = /* @__PURE__ */ t((e) => _e(e) + R, "calculateCommitPosition"), ye = /* @__PURE__ */ t((e, t) => {
|
|
372
|
-
let n = H.get(e.branch);
|
|
373
|
-
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
374
|
-
let r = n.pos, i = t + L;
|
|
375
|
-
return U.set(e.id, {
|
|
376
|
-
x: r,
|
|
377
|
-
y: i
|
|
378
|
-
}), {
|
|
379
|
-
x: r,
|
|
380
|
-
y: i
|
|
381
|
-
};
|
|
382
|
-
}, "setCommitPosition"), be = /* @__PURE__ */ t((e, t, n) => {
|
|
383
|
-
let r = H.get(e.branch);
|
|
384
|
-
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
385
|
-
let i = t + n, a = r.pos;
|
|
386
|
-
U.set(e.id, {
|
|
387
|
-
x: a,
|
|
388
|
-
y: i
|
|
389
|
-
});
|
|
390
|
-
}, "setRootPosition"), xe = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
391
|
-
if (a === _.HIGHLIGHT) e.append("rect").attr("x", n.x - 10).attr("y", n.y - 10).attr("width", 20).attr("height", 20).attr("class", `commit ${t.id} commit-highlight${i % V} ${r}-outer`), e.append("rect").attr("x", n.x - 6).attr("y", n.y - 6).attr("width", 12).attr("height", 12).attr("class", `commit ${t.id} commit${i % V} ${r}-inner`);
|
|
392
|
-
else if (a === _.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", 2.75).attr("fill", "#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", "#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", "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
393
|
-
else {
|
|
394
|
-
let o = e.append("circle");
|
|
395
|
-
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", t.type === _.MERGE ? 9 : 10), o.attr("class", `commit ${t.id} commit${i % V}`), a === _.MERGE) {
|
|
396
|
-
let a = e.append("circle");
|
|
397
|
-
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", 6), a.attr("class", `commit ${r} ${t.id} commit${i % V}`);
|
|
398
|
-
}
|
|
399
|
-
a === _.REVERSE && e.append("path").attr("d", `M ${n.x - 5},${n.y - 5}L${n.x + 5},${n.y + 5}M${n.x - 5},${n.y + 5}L${n.x + 5},${n.y - 5}`).attr("class", `commit ${r} ${t.id} commit${i % V}`);
|
|
400
|
-
}
|
|
401
|
-
}, "drawCommitBullet"), Se = /* @__PURE__ */ t((e, t, n, r, i) => {
|
|
402
|
-
if (t.type !== _.CHERRY_PICK && (t.customId && t.type === _.MERGE || t.type !== _.MERGE) && i.showCommitLabel) {
|
|
403
|
-
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();
|
|
404
|
-
if (c && (o.attr("x", n.posWithOffset - c.width / 2 - B).attr("y", n.y + 13.5).attr("width", c.width + 2 * B).attr("height", c.height + 2 * B), J === "TB" || J === "BT" ? (o.attr("x", n.x - (c.width + 4 * z + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * z)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) if (J === "TB" || J === "BT") s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
|
|
405
|
-
else {
|
|
406
|
-
let e = -7.5 - (c.width + 10) / 25 * 9.5, t = 10 + c.width / 25 * 8.5;
|
|
407
|
-
a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}, "drawCommitLabel"), Z = /* @__PURE__ */ t((e, t, n, r) => {
|
|
411
|
-
if (t.tags.length > 0) {
|
|
412
|
-
let i = 0, a = 0, o = 0, s = [];
|
|
413
|
-
for (let r of t.tags.reverse()) {
|
|
414
|
-
let t = e.insert("polygon"), c = e.append("circle"), l = e.append("text").attr("y", n.y - 16 - i).attr("class", "tag-label").text(r), u = l.node()?.getBBox();
|
|
415
|
-
if (!u) throw Error("Tag bbox not found");
|
|
416
|
-
a = Math.max(a, u.width), o = Math.max(o, u.height), l.attr("x", n.posWithOffset - u.width / 2), s.push({
|
|
417
|
-
tag: l,
|
|
418
|
-
hole: c,
|
|
419
|
-
rect: t,
|
|
420
|
-
yOffset: i
|
|
421
|
-
}), i += 20;
|
|
422
|
-
}
|
|
423
|
-
for (let { tag: e, hole: t, rect: i, yOffset: c } of s) {
|
|
424
|
-
let s = o / 2, l = n.y - 19.2 - c;
|
|
425
|
-
if (i.attr("class", "tag-label-bkg").attr("points", `
|
|
426
|
-
${r - a / 2 - z / 2},${l + B}
|
|
427
|
-
${r - a / 2 - z / 2},${l - B}
|
|
428
|
-
${n.posWithOffset - a / 2 - z},${l - s - B}
|
|
429
|
-
${n.posWithOffset + a / 2 + z},${l - s - B}
|
|
430
|
-
${n.posWithOffset + a / 2 + z},${l + s + B}
|
|
431
|
-
${n.posWithOffset - a / 2 - z},${l + s + B}`), t.attr("cy", l).attr("cx", r - a / 2 + z / 2).attr("r", 1.5).attr("class", "tag-hole"), J === "TB" || J === "BT") {
|
|
432
|
-
let o = r + c;
|
|
433
|
-
i.attr("class", "tag-label-bkg").attr("points", `
|
|
434
|
-
${n.x},${o + 2}
|
|
435
|
-
${n.x},${o - 2}
|
|
436
|
-
${n.x + L},${o - s - 2}
|
|
437
|
-
${n.x + L + a + 4},${o - s - 2}
|
|
438
|
-
${n.x + L + a + 4},${o + s + 2}
|
|
439
|
-
${n.x + L},${o + s + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + z / 2).attr("cy", o).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", o + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}, "drawCommitTags"), Ce = /* @__PURE__ */ t((e) => {
|
|
444
|
-
switch (e.customType ?? e.type) {
|
|
445
|
-
case _.NORMAL: return "commit-normal";
|
|
446
|
-
case _.REVERSE: return "commit-reverse";
|
|
447
|
-
case _.HIGHLIGHT: return "commit-highlight";
|
|
448
|
-
case _.MERGE: return "commit-merge";
|
|
449
|
-
case _.CHERRY_PICK: return "commit-cherry-pick";
|
|
450
|
-
default: return "commit-normal";
|
|
451
|
-
}
|
|
452
|
-
}, "getCommitClassType"), we = /* @__PURE__ */ t((e, t, n, r) => {
|
|
453
|
-
let i = {
|
|
454
|
-
x: 0,
|
|
455
|
-
y: 0
|
|
456
|
-
};
|
|
457
|
-
if (e.parents.length > 0) {
|
|
458
|
-
let n = X(e.parents);
|
|
459
|
-
if (n) {
|
|
460
|
-
let a = r.get(n) ?? i;
|
|
461
|
-
return t === "TB" ? a.y + R : t === "BT" ? (r.get(e.id) ?? i).y - R : a.x + R;
|
|
462
|
-
}
|
|
463
|
-
} else if (t === "TB") return W;
|
|
464
|
-
else if (t === "BT") return (r.get(e.id) ?? i).y - R;
|
|
465
|
-
else return 0;
|
|
466
|
-
return 0;
|
|
467
|
-
}, "calculatePosition"), Te = /* @__PURE__ */ t((e, t, n) => {
|
|
468
|
-
let r = J === "BT" && n ? t : t + L, i = J === "TB" || J === "BT" ? r : H.get(e.branch)?.pos, a = J === "TB" || J === "BT" ? H.get(e.branch)?.pos : r;
|
|
469
|
-
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
470
|
-
return {
|
|
471
|
-
x: a,
|
|
472
|
-
y: i,
|
|
473
|
-
posWithOffset: r
|
|
474
|
-
};
|
|
475
|
-
}, "getCommitPosition"), Q = /* @__PURE__ */ t((e, n, r, i) => {
|
|
476
|
-
let a = e.append("g").attr("class", "commit-bullets"), o = e.append("g").attr("class", "commit-labels"), s = J === "TB" || J === "BT" ? W : 0, c = [...n.keys()], l = i.parallelCommits ?? !1, u = /* @__PURE__ */ t((e, t) => {
|
|
477
|
-
let r = n.get(e)?.seq, i = n.get(t)?.seq;
|
|
478
|
-
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
479
|
-
}, "sortKeys"), d = c.sort(u);
|
|
480
|
-
J === "BT" && (l && ge(d, n, s), d = d.reverse()), d.forEach((e) => {
|
|
481
|
-
let t = n.get(e);
|
|
482
|
-
if (!t) throw Error(`Commit not found for key ${e}`);
|
|
483
|
-
l && (s = we(t, J, s, U));
|
|
484
|
-
let c = Te(t, s, l);
|
|
485
|
-
if (r) {
|
|
486
|
-
let e = Ce(t), n = t.customType ?? t.type;
|
|
487
|
-
xe(a, t, c, e, H.get(t.branch)?.index ?? 0, n), Se(o, t, c, s, i), Z(o, t, c, s);
|
|
488
|
-
}
|
|
489
|
-
J === "TB" || J === "BT" ? U.set(t.id, {
|
|
490
|
-
x: c.x,
|
|
491
|
-
y: c.posWithOffset
|
|
492
|
-
}) : U.set(t.id, {
|
|
493
|
-
x: c.posWithOffset,
|
|
494
|
-
y: c.y
|
|
495
|
-
}), s = J === "BT" && l ? s + R : s + R + L, s > q && (q = s);
|
|
496
|
-
});
|
|
497
|
-
}, "drawCommits"), Ee = /* @__PURE__ */ t((e, n, r, i, a) => {
|
|
498
|
-
let o = (J === "TB" || J === "BT" ? r.x < i.x : r.y < i.y) ? n.branch : e.branch, s = /* @__PURE__ */ t((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ t((t) => t.seq > e.seq && t.seq < n.seq, "isBetweenCommits");
|
|
499
|
-
return [...a.values()].some((e) => c(e) && s(e));
|
|
500
|
-
}, "shouldRerouteArrow"), $ = /* @__PURE__ */ t((e, t, n = 0) => {
|
|
501
|
-
let r = e + Math.abs(e - t) / 2;
|
|
502
|
-
return n > 5 ? r : K.every((e) => Math.abs(e - r) >= 10) ? (K.push(r), r) : $(e, t - Math.abs(e - t) / 5, n + 1);
|
|
503
|
-
}, "findLane"), De = /* @__PURE__ */ t((e, t, n, r) => {
|
|
504
|
-
let i = U.get(t.id), a = U.get(n.id);
|
|
505
|
-
if (i === void 0 || a === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
506
|
-
let o = Ee(t, n, i, a, r), s = "", c = "", l = 0, u = 0, d = H.get(n.branch)?.index;
|
|
507
|
-
n.type === _.MERGE && t.id !== n.parents[0] && (d = H.get(t.branch)?.index);
|
|
508
|
-
let f;
|
|
509
|
-
if (o) {
|
|
510
|
-
s = "A 10 10, 0, 0, 0,", c = "A 10 10, 0, 0, 1,", l = 10, u = 10;
|
|
511
|
-
let e = i.y < a.y ? $(i.y, a.y) : $(a.y, i.y), n = i.x < a.x ? $(i.x, a.x) : $(a.x, i.x);
|
|
512
|
-
J === "TB" ? i.x < a.x ? f = `M ${i.x} ${i.y} L ${n - l} ${i.y} ${c} ${n} ${i.y + u} L ${n} ${a.y - l} ${s} ${n + u} ${a.y} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${n + l} ${i.y} ${s} ${n} ${i.y + u} L ${n} ${a.y - l} ${c} ${n - u} ${a.y} L ${a.x} ${a.y}`) : J === "BT" ? i.x < a.x ? f = `M ${i.x} ${i.y} L ${n - l} ${i.y} ${s} ${n} ${i.y - u} L ${n} ${a.y + l} ${c} ${n + u} ${a.y} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${n + l} ${i.y} ${c} ${n} ${i.y - u} L ${n} ${a.y + l} ${s} ${n - u} ${a.y} L ${a.x} ${a.y}`) : i.y < a.y ? f = `M ${i.x} ${i.y} L ${i.x} ${e - l} ${s} ${i.x + u} ${e} L ${a.x - l} ${e} ${c} ${a.x} ${e + u} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${i.x} ${e + l} ${c} ${i.x + u} ${e} L ${a.x - l} ${e} ${s} ${a.x} ${e - u} L ${a.x} ${a.y}`);
|
|
513
|
-
} else s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, J === "TB" ? (i.x < a.x && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${s} ${i.x + u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${c} ${a.x} ${i.y + u} L ${a.x} ${a.y}`), i.x > a.x && (s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${c} ${i.x - u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x + l} ${i.y} ${s} ${a.x} ${i.y + u} L ${a.x} ${a.y}`), i.x === a.x && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`)) : J === "BT" ? (i.x < a.x && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${c} ${i.x + u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}`), i.x > a.x && (s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${s} ${i.x - u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x + l} ${i.y} ${c} ${a.x} ${i.y - u} L ${a.x} ${a.y}`), i.x === a.x && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`)) : (i.y < a.y && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${c} ${a.x} ${i.y + u} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${s} ${i.x + u} ${a.y} L ${a.x} ${a.y}`), i.y > a.y && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${c} ${i.x + u} ${a.y} L ${a.x} ${a.y}`), i.y === a.y && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`));
|
|
514
|
-
if (f === void 0) throw Error("Line definition not found");
|
|
515
|
-
e.append("path").attr("d", f).attr("class", "arrow arrow" + d % V);
|
|
516
|
-
}, "drawArrow"), Oe = /* @__PURE__ */ t((e, t) => {
|
|
517
|
-
let n = e.append("g").attr("class", "commit-arrows");
|
|
518
|
-
[...t.keys()].forEach((e) => {
|
|
519
|
-
let r = t.get(e);
|
|
520
|
-
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
521
|
-
De(n, t.get(e), r, t);
|
|
522
|
-
});
|
|
523
|
-
});
|
|
524
|
-
}, "drawArrows"), ke = /* @__PURE__ */ t((e, t, n) => {
|
|
525
|
-
let r = e.append("g");
|
|
526
|
-
t.forEach((e, t) => {
|
|
527
|
-
let i = t % V, a = H.get(e.name)?.pos;
|
|
528
|
-
if (a === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
529
|
-
let o = r.append("line");
|
|
530
|
-
o.attr("x1", 0), o.attr("y1", a), o.attr("x2", q), o.attr("y2", a), o.attr("class", "branch branch" + i), J === "TB" ? (o.attr("y1", W), o.attr("x1", a), o.attr("y2", q), o.attr("x2", a)) : J === "BT" && (o.attr("y1", q), o.attr("x1", a), o.attr("y2", W), o.attr("x2", a)), K.push(a);
|
|
531
|
-
let s = e.name, c = Y(s), l = r.insert("rect"), u = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + i);
|
|
532
|
-
u.node().appendChild(c);
|
|
533
|
-
let d = c.getBBox();
|
|
534
|
-
l.attr("class", "branchLabelBkg label" + i).attr("rx", 4).attr("ry", 4).attr("x", -d.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -d.height / 2 + 8).attr("width", d.width + 18).attr("height", d.height + 4), u.attr("transform", "translate(" + (-d.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (a - d.height / 2 - 1) + ")"), J === "TB" ? (l.attr("x", a - d.width / 2 - 10).attr("y", 0), u.attr("transform", "translate(" + (a - d.width / 2 - 5) + ", 0)")) : J === "BT" ? (l.attr("x", a - d.width / 2 - 10).attr("y", q), u.attr("transform", "translate(" + (a - d.width / 2 - 5) + ", " + q + ")")) : l.attr("transform", "translate(-19, " + (a - d.height / 2) + ")");
|
|
535
|
-
});
|
|
536
|
-
}, "drawBranches"), Ae = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
537
|
-
return H.set(e, {
|
|
538
|
-
pos: t,
|
|
539
|
-
index: n
|
|
540
|
-
}), t += 50 + (i ? 40 : 0) + (J === "TB" || J === "BT" ? r.width / 2 : 0), t;
|
|
541
|
-
}, "setBranchPosition"), je = {
|
|
542
|
-
parser: I,
|
|
543
|
-
db: O,
|
|
544
|
-
renderer: { draw: /* @__PURE__ */ t(function(t, r, i, a) {
|
|
545
|
-
me(), e.debug("in gitgraph renderer", t + "\n", "id:", r, i);
|
|
546
|
-
let o = a.db;
|
|
547
|
-
if (!o.getConfig) {
|
|
548
|
-
e.error("getConfig method is not available on db");
|
|
549
|
-
return;
|
|
550
|
-
}
|
|
551
|
-
let s = o.getConfig(), c = s.rotateCommitLabel ?? !1;
|
|
552
|
-
G = o.getCommits();
|
|
553
|
-
let l = o.getBranchesAsObjArray();
|
|
554
|
-
J = o.getDirection();
|
|
555
|
-
let d = n(`[id="${r}"]`), f = 0;
|
|
556
|
-
l.forEach((e, t) => {
|
|
557
|
-
let n = Y(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
558
|
-
a.node()?.appendChild(n);
|
|
559
|
-
let o = n.getBBox();
|
|
560
|
-
f = Ae(e.name, f, t, o, c), a.remove(), i.remove(), r.remove();
|
|
561
|
-
}), Q(d, G, !1, s), s.showBranches && ke(d, l, s), Oe(d, G), Q(d, G, !0, s), ee.insertTitle(d, "gitTitleText", s.titleTopMargin ?? 0, o.getDiagramTitle()), u(void 0, d, s.diagramPadding, s.useMaxWidth);
|
|
562
|
-
}, "draw") },
|
|
563
|
-
styles: /* @__PURE__ */ t((e) => `
|
|
564
|
-
.commit-id,
|
|
565
|
-
.commit-msg,
|
|
566
|
-
.branch-label {
|
|
567
|
-
fill: lightgrey;
|
|
568
|
-
color: lightgrey;
|
|
569
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
570
|
-
font-family: var(--mermaid-font-family);
|
|
571
|
-
}
|
|
572
|
-
${[
|
|
573
|
-
0,
|
|
574
|
-
1,
|
|
575
|
-
2,
|
|
576
|
-
3,
|
|
577
|
-
4,
|
|
578
|
-
5,
|
|
579
|
-
6,
|
|
580
|
-
7
|
|
581
|
-
].map((t) => `
|
|
582
|
-
.branch-label${t} { fill: ${e["gitBranchLabel" + t]}; }
|
|
583
|
-
.commit${t} { stroke: ${e["git" + t]}; fill: ${e["git" + t]}; }
|
|
584
|
-
.commit-highlight${t} { stroke: ${e["gitInv" + t]}; fill: ${e["gitInv" + t]}; }
|
|
585
|
-
.label${t} { fill: ${e["git" + t]}; }
|
|
586
|
-
.arrow${t} { stroke: ${e["git" + t]}; }
|
|
587
|
-
`).join("\n")}
|
|
588
|
-
|
|
589
|
-
.branch {
|
|
590
|
-
stroke-width: 1;
|
|
591
|
-
stroke: ${e.lineColor};
|
|
592
|
-
stroke-dasharray: 2;
|
|
593
|
-
}
|
|
594
|
-
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
|
|
595
|
-
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
|
|
596
|
-
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
597
|
-
.tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
|
|
598
|
-
.tag-hole { fill: ${e.textColor}; }
|
|
599
|
-
|
|
600
|
-
.commit-merge {
|
|
601
|
-
stroke: ${e.primaryColor};
|
|
602
|
-
fill: ${e.primaryColor};
|
|
603
|
-
}
|
|
604
|
-
.commit-reverse {
|
|
605
|
-
stroke: ${e.primaryColor};
|
|
606
|
-
fill: ${e.primaryColor};
|
|
607
|
-
stroke-width: 3;
|
|
608
|
-
}
|
|
609
|
-
.commit-highlight-outer {
|
|
610
|
-
}
|
|
611
|
-
.commit-highlight-inner {
|
|
612
|
-
stroke: ${e.primaryColor};
|
|
613
|
-
fill: ${e.primaryColor};
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
617
|
-
.gitTitleText {
|
|
618
|
-
text-anchor: middle;
|
|
619
|
-
font-size: 18px;
|
|
620
|
-
fill: ${e.textColor};
|
|
621
|
-
}
|
|
622
|
-
`, "getStyles")
|
|
623
|
-
};
|
|
624
|
-
//#endregion
|
|
625
|
-
export { je as diagram };
|
|
626
|
-
|
|
627
|
-
//# sourceMappingURL=gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js.map
|