ranui 0.2.0-alpha.7 → 0.2.1-alpha.3
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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/arrow-down-Bi5kqUrX.js +12 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +4 -4
- package/dist/builder.js +39 -30
- package/dist/builtin-BkM0LLof.js +416 -0
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
- package/dist/colorpicker.js +1 -1
- package/dist/components/colorpicker/index.d.ts +3 -3
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/builtin.d.ts +9 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +8 -0
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/components/route/index.d.ts +10 -4
- package/dist/components/router/index.d.ts +3 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
- package/dist/icon.js +4 -3
- package/dist/icons.js +5 -0
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +257 -23
- package/dist/index.d.ts +11 -1
- package/dist/index.iife.js +3842 -74
- package/dist/index.js +86 -78
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/route-pR5P4ann.js +116 -0
- package/dist/route.js +1 -1
- package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/unit/icon.builtin.test.d.ts +1 -0
- package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
- package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
- package/dist/test/unit/utils.router.match.test.d.ts +1 -0
- package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +153 -16
- package/dist/utils/builder/factory.d.ts +1 -1
- package/dist/utils/builder/index.d.ts +3 -3
- package/dist/utils/builder/signal.d.ts +93 -64
- package/dist/utils/router/index.d.ts +13 -3
- package/dist/utils/router.js +95 -54
- package/dist/utils/theme.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +383 -0
- package/docs/COMPONENTS.md +21 -3
- package/package.json +31 -3
- package/dist/button-Be_uHDZG.js +0 -117
- package/dist/factory-BdsO0dEW.js +0 -165
- package/dist/route-MQZpn2BP.js +0 -88
- package/dist/signal-CSSZxlK5.js +0 -57
|
@@ -0,0 +1,1050 @@
|
|
|
1
|
+
import { n as r } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { m as $ } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { J as ye, et as le, f as K, rt as me, tt as he, x as H, z as G } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
5
|
+
import { t as be } from "./chunk-VAUOI2AC-izt0o4id.js";
|
|
6
|
+
import "./chunk-HOUHSVGY-DRQcQeMT.js";
|
|
7
|
+
import "./chunk-Q4XR5HBZ-3BHjjc9u.js";
|
|
8
|
+
import { t as ke } from "./chunk-5VM5RSS4-Cni2Ogq2.js";
|
|
9
|
+
import "./chunk-OGEWGWER-BV51ll2w.js";
|
|
10
|
+
import "./chunk-C7G6YPKG-CA-DNpvI.js";
|
|
11
|
+
import { a as Ee, c as _e, i as Se } from "./chunk-ZGVPDNZ5-6uMbTJXy.js";
|
|
12
|
+
import { n as Ne, t as xe } from "./chunk-ZIRB5QZD-C7OH2FI2.js";
|
|
13
|
+
var ee = (function() {
|
|
14
|
+
var e = /* @__PURE__ */ r(function(i, t, o, c) {
|
|
15
|
+
for (o = o || {}, c = i.length; c--; o[i[c]] = t) ;
|
|
16
|
+
return o;
|
|
17
|
+
}, "o"), g = [1, 4], p = [1, 13], s = [1, 12], d = [1, 15], b = [1, 16], _ = [1, 20], h = [1, 19], L = [
|
|
18
|
+
6,
|
|
19
|
+
7,
|
|
20
|
+
8
|
|
21
|
+
], O = [1, 26], u = [1, 24], T = [1, 25], S = [
|
|
22
|
+
6,
|
|
23
|
+
7,
|
|
24
|
+
11
|
|
25
|
+
], R = [1, 31], v = [
|
|
26
|
+
6,
|
|
27
|
+
7,
|
|
28
|
+
11,
|
|
29
|
+
24
|
|
30
|
+
], f = [
|
|
31
|
+
1,
|
|
32
|
+
6,
|
|
33
|
+
13,
|
|
34
|
+
16,
|
|
35
|
+
17,
|
|
36
|
+
20,
|
|
37
|
+
23
|
|
38
|
+
], C = [1, 35], w = [1, 36], A = [
|
|
39
|
+
1,
|
|
40
|
+
6,
|
|
41
|
+
7,
|
|
42
|
+
11,
|
|
43
|
+
13,
|
|
44
|
+
16,
|
|
45
|
+
17,
|
|
46
|
+
20,
|
|
47
|
+
23
|
|
48
|
+
], B = [1, 38], M = {
|
|
49
|
+
trace: /* @__PURE__ */ r(function() {
|
|
50
|
+
}, "trace"),
|
|
51
|
+
yy: {},
|
|
52
|
+
symbols_: {
|
|
53
|
+
error: 2,
|
|
54
|
+
start: 3,
|
|
55
|
+
mindMap: 4,
|
|
56
|
+
spaceLines: 5,
|
|
57
|
+
SPACELINE: 6,
|
|
58
|
+
NL: 7,
|
|
59
|
+
KANBAN: 8,
|
|
60
|
+
document: 9,
|
|
61
|
+
stop: 10,
|
|
62
|
+
EOF: 11,
|
|
63
|
+
statement: 12,
|
|
64
|
+
SPACELIST: 13,
|
|
65
|
+
node: 14,
|
|
66
|
+
shapeData: 15,
|
|
67
|
+
ICON: 16,
|
|
68
|
+
CLASS: 17,
|
|
69
|
+
nodeWithId: 18,
|
|
70
|
+
nodeWithoutId: 19,
|
|
71
|
+
NODE_DSTART: 20,
|
|
72
|
+
NODE_DESCR: 21,
|
|
73
|
+
NODE_DEND: 22,
|
|
74
|
+
NODE_ID: 23,
|
|
75
|
+
SHAPE_DATA: 24,
|
|
76
|
+
$accept: 0,
|
|
77
|
+
$end: 1
|
|
78
|
+
},
|
|
79
|
+
terminals_: {
|
|
80
|
+
2: "error",
|
|
81
|
+
6: "SPACELINE",
|
|
82
|
+
7: "NL",
|
|
83
|
+
8: "KANBAN",
|
|
84
|
+
11: "EOF",
|
|
85
|
+
13: "SPACELIST",
|
|
86
|
+
16: "ICON",
|
|
87
|
+
17: "CLASS",
|
|
88
|
+
20: "NODE_DSTART",
|
|
89
|
+
21: "NODE_DESCR",
|
|
90
|
+
22: "NODE_DEND",
|
|
91
|
+
23: "NODE_ID",
|
|
92
|
+
24: "SHAPE_DATA"
|
|
93
|
+
},
|
|
94
|
+
productions_: [
|
|
95
|
+
0,
|
|
96
|
+
[3, 1],
|
|
97
|
+
[3, 2],
|
|
98
|
+
[5, 1],
|
|
99
|
+
[5, 2],
|
|
100
|
+
[5, 2],
|
|
101
|
+
[4, 2],
|
|
102
|
+
[4, 3],
|
|
103
|
+
[10, 1],
|
|
104
|
+
[10, 1],
|
|
105
|
+
[10, 1],
|
|
106
|
+
[10, 2],
|
|
107
|
+
[10, 2],
|
|
108
|
+
[9, 3],
|
|
109
|
+
[9, 2],
|
|
110
|
+
[12, 3],
|
|
111
|
+
[12, 2],
|
|
112
|
+
[12, 2],
|
|
113
|
+
[12, 2],
|
|
114
|
+
[12, 1],
|
|
115
|
+
[12, 2],
|
|
116
|
+
[12, 1],
|
|
117
|
+
[12, 1],
|
|
118
|
+
[12, 1],
|
|
119
|
+
[12, 1],
|
|
120
|
+
[14, 1],
|
|
121
|
+
[14, 1],
|
|
122
|
+
[19, 3],
|
|
123
|
+
[18, 1],
|
|
124
|
+
[18, 4],
|
|
125
|
+
[15, 2],
|
|
126
|
+
[15, 1]
|
|
127
|
+
],
|
|
128
|
+
performAction: /* @__PURE__ */ r(function(t, o, c, l, y, n, U) {
|
|
129
|
+
var a = n.length - 1;
|
|
130
|
+
switch (y) {
|
|
131
|
+
case 6:
|
|
132
|
+
case 7:
|
|
133
|
+
return l;
|
|
134
|
+
case 8:
|
|
135
|
+
l.getLogger().trace("Stop NL ");
|
|
136
|
+
break;
|
|
137
|
+
case 9:
|
|
138
|
+
l.getLogger().trace("Stop EOF ");
|
|
139
|
+
break;
|
|
140
|
+
case 11:
|
|
141
|
+
l.getLogger().trace("Stop NL2 ");
|
|
142
|
+
break;
|
|
143
|
+
case 12:
|
|
144
|
+
l.getLogger().trace("Stop EOF2 ");
|
|
145
|
+
break;
|
|
146
|
+
case 15:
|
|
147
|
+
l.getLogger().info("Node: ", n[a - 1].id), l.addNode(n[a - 2].length, n[a - 1].id, n[a - 1].descr, n[a - 1].type, n[a]);
|
|
148
|
+
break;
|
|
149
|
+
case 16:
|
|
150
|
+
l.getLogger().info("Node: ", n[a].id), l.addNode(n[a - 1].length, n[a].id, n[a].descr, n[a].type);
|
|
151
|
+
break;
|
|
152
|
+
case 17:
|
|
153
|
+
l.getLogger().trace("Icon: ", n[a]), l.decorateNode({ icon: n[a] });
|
|
154
|
+
break;
|
|
155
|
+
case 18:
|
|
156
|
+
case 23:
|
|
157
|
+
l.decorateNode({ class: n[a] });
|
|
158
|
+
break;
|
|
159
|
+
case 19:
|
|
160
|
+
l.getLogger().trace("SPACELIST");
|
|
161
|
+
break;
|
|
162
|
+
case 20:
|
|
163
|
+
l.getLogger().trace("Node: ", n[a - 1].id), l.addNode(0, n[a - 1].id, n[a - 1].descr, n[a - 1].type, n[a]);
|
|
164
|
+
break;
|
|
165
|
+
case 21:
|
|
166
|
+
l.getLogger().trace("Node: ", n[a].id), l.addNode(0, n[a].id, n[a].descr, n[a].type);
|
|
167
|
+
break;
|
|
168
|
+
case 22:
|
|
169
|
+
l.decorateNode({ icon: n[a] });
|
|
170
|
+
break;
|
|
171
|
+
case 27:
|
|
172
|
+
l.getLogger().trace("node found ..", n[a - 2]), this.$ = {
|
|
173
|
+
id: n[a - 1],
|
|
174
|
+
descr: n[a - 1],
|
|
175
|
+
type: l.getType(n[a - 2], n[a])
|
|
176
|
+
};
|
|
177
|
+
break;
|
|
178
|
+
case 28:
|
|
179
|
+
this.$ = {
|
|
180
|
+
id: n[a],
|
|
181
|
+
descr: n[a],
|
|
182
|
+
type: 0
|
|
183
|
+
};
|
|
184
|
+
break;
|
|
185
|
+
case 29:
|
|
186
|
+
l.getLogger().trace("node found ..", n[a - 3]), this.$ = {
|
|
187
|
+
id: n[a - 3],
|
|
188
|
+
descr: n[a - 1],
|
|
189
|
+
type: l.getType(n[a - 2], n[a])
|
|
190
|
+
};
|
|
191
|
+
break;
|
|
192
|
+
case 30:
|
|
193
|
+
this.$ = n[a - 1] + n[a];
|
|
194
|
+
break;
|
|
195
|
+
case 31:
|
|
196
|
+
this.$ = n[a];
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}, "anonymous"),
|
|
200
|
+
table: [
|
|
201
|
+
{
|
|
202
|
+
3: 1,
|
|
203
|
+
4: 2,
|
|
204
|
+
5: 3,
|
|
205
|
+
6: [1, 5],
|
|
206
|
+
8: g
|
|
207
|
+
},
|
|
208
|
+
{ 1: [3] },
|
|
209
|
+
{ 1: [2, 1] },
|
|
210
|
+
{
|
|
211
|
+
4: 6,
|
|
212
|
+
6: [1, 7],
|
|
213
|
+
7: [1, 8],
|
|
214
|
+
8: g
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
6: p,
|
|
218
|
+
7: [1, 10],
|
|
219
|
+
9: 9,
|
|
220
|
+
12: 11,
|
|
221
|
+
13: s,
|
|
222
|
+
14: 14,
|
|
223
|
+
16: d,
|
|
224
|
+
17: b,
|
|
225
|
+
18: 17,
|
|
226
|
+
19: 18,
|
|
227
|
+
20: _,
|
|
228
|
+
23: h
|
|
229
|
+
},
|
|
230
|
+
e(L, [2, 3]),
|
|
231
|
+
{ 1: [2, 2] },
|
|
232
|
+
e(L, [2, 4]),
|
|
233
|
+
e(L, [2, 5]),
|
|
234
|
+
{
|
|
235
|
+
1: [2, 6],
|
|
236
|
+
6: p,
|
|
237
|
+
12: 21,
|
|
238
|
+
13: s,
|
|
239
|
+
14: 14,
|
|
240
|
+
16: d,
|
|
241
|
+
17: b,
|
|
242
|
+
18: 17,
|
|
243
|
+
19: 18,
|
|
244
|
+
20: _,
|
|
245
|
+
23: h
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
6: p,
|
|
249
|
+
9: 22,
|
|
250
|
+
12: 11,
|
|
251
|
+
13: s,
|
|
252
|
+
14: 14,
|
|
253
|
+
16: d,
|
|
254
|
+
17: b,
|
|
255
|
+
18: 17,
|
|
256
|
+
19: 18,
|
|
257
|
+
20: _,
|
|
258
|
+
23: h
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
6: O,
|
|
262
|
+
7: u,
|
|
263
|
+
10: 23,
|
|
264
|
+
11: T
|
|
265
|
+
},
|
|
266
|
+
e(S, [2, 24], {
|
|
267
|
+
18: 17,
|
|
268
|
+
19: 18,
|
|
269
|
+
14: 27,
|
|
270
|
+
16: [1, 28],
|
|
271
|
+
17: [1, 29],
|
|
272
|
+
20: _,
|
|
273
|
+
23: h
|
|
274
|
+
}),
|
|
275
|
+
e(S, [2, 19]),
|
|
276
|
+
e(S, [2, 21], {
|
|
277
|
+
15: 30,
|
|
278
|
+
24: R
|
|
279
|
+
}),
|
|
280
|
+
e(S, [2, 22]),
|
|
281
|
+
e(S, [2, 23]),
|
|
282
|
+
e(v, [2, 25]),
|
|
283
|
+
e(v, [2, 26]),
|
|
284
|
+
e(v, [2, 28], { 20: [1, 32] }),
|
|
285
|
+
{ 21: [1, 33] },
|
|
286
|
+
{
|
|
287
|
+
6: O,
|
|
288
|
+
7: u,
|
|
289
|
+
10: 34,
|
|
290
|
+
11: T
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
1: [2, 7],
|
|
294
|
+
6: p,
|
|
295
|
+
12: 21,
|
|
296
|
+
13: s,
|
|
297
|
+
14: 14,
|
|
298
|
+
16: d,
|
|
299
|
+
17: b,
|
|
300
|
+
18: 17,
|
|
301
|
+
19: 18,
|
|
302
|
+
20: _,
|
|
303
|
+
23: h
|
|
304
|
+
},
|
|
305
|
+
e(f, [2, 14], {
|
|
306
|
+
7: C,
|
|
307
|
+
11: w
|
|
308
|
+
}),
|
|
309
|
+
e(A, [2, 8]),
|
|
310
|
+
e(A, [2, 9]),
|
|
311
|
+
e(A, [2, 10]),
|
|
312
|
+
e(S, [2, 16], {
|
|
313
|
+
15: 37,
|
|
314
|
+
24: R
|
|
315
|
+
}),
|
|
316
|
+
e(S, [2, 17]),
|
|
317
|
+
e(S, [2, 18]),
|
|
318
|
+
e(S, [2, 20], { 24: B }),
|
|
319
|
+
e(v, [2, 31]),
|
|
320
|
+
{ 21: [1, 39] },
|
|
321
|
+
{ 22: [1, 40] },
|
|
322
|
+
e(f, [2, 13], {
|
|
323
|
+
7: C,
|
|
324
|
+
11: w
|
|
325
|
+
}),
|
|
326
|
+
e(A, [2, 11]),
|
|
327
|
+
e(A, [2, 12]),
|
|
328
|
+
e(S, [2, 15], { 24: B }),
|
|
329
|
+
e(v, [2, 30]),
|
|
330
|
+
{ 22: [1, 41] },
|
|
331
|
+
e(v, [2, 27]),
|
|
332
|
+
e(v, [2, 29])
|
|
333
|
+
],
|
|
334
|
+
defaultActions: {
|
|
335
|
+
2: [2, 1],
|
|
336
|
+
6: [2, 2]
|
|
337
|
+
},
|
|
338
|
+
parseError: /* @__PURE__ */ r(function(t, o) {
|
|
339
|
+
if (o.recoverable) this.trace(t);
|
|
340
|
+
else {
|
|
341
|
+
var c = new Error(t);
|
|
342
|
+
throw c.hash = o, c;
|
|
343
|
+
}
|
|
344
|
+
}, "parseError"),
|
|
345
|
+
parse: /* @__PURE__ */ r(function(t) {
|
|
346
|
+
var o = this, c = [0], l = [], y = [null], n = [], U = this.table, a = "", W = 0, se = 0, re = 0, ge = 2, ae = 1, de = n.slice.call(arguments, 1), k = Object.create(this.lexer), P = { yy: {} };
|
|
347
|
+
for (var Y in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Y) && (P.yy[Y] = this.yy[Y]);
|
|
348
|
+
k.setInput(t, P.yy), P.yy.lexer = k, P.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
|
|
349
|
+
var J = k.yylloc;
|
|
350
|
+
n.push(J);
|
|
351
|
+
var pe = k.options && k.options.ranges;
|
|
352
|
+
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
353
|
+
function fe(x) {
|
|
354
|
+
c.length = c.length - 2 * x, y.length = y.length - x, n.length = n.length - x;
|
|
355
|
+
}
|
|
356
|
+
r(fe, "popStack");
|
|
357
|
+
function oe() {
|
|
358
|
+
var x = l.pop() || k.lex() || ae;
|
|
359
|
+
return typeof x != "number" && (x instanceof Array && (l = x, x = l.pop()), x = o.symbols_[x] || x), x;
|
|
360
|
+
}
|
|
361
|
+
r(oe, "lex");
|
|
362
|
+
for (var E, q, V, N, Q, F = {}, z, I, ce, X; ; ) {
|
|
363
|
+
if (V = c[c.length - 1], this.defaultActions[V] ? N = this.defaultActions[V] : ((E === null || typeof E > "u") && (E = oe()), N = U[V] && U[V][E]), typeof N > "u" || !N.length || !N[0]) {
|
|
364
|
+
var Z = "";
|
|
365
|
+
X = [];
|
|
366
|
+
for (z in U[V]) this.terminals_[z] && z > ge && X.push("'" + this.terminals_[z] + "'");
|
|
367
|
+
k.showPosition ? Z = "Parse error on line " + (W + 1) + `:
|
|
368
|
+
` + k.showPosition() + `
|
|
369
|
+
Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (E == ae ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Z, {
|
|
370
|
+
text: k.match,
|
|
371
|
+
token: this.terminals_[E] || E,
|
|
372
|
+
line: k.yylineno,
|
|
373
|
+
loc: J,
|
|
374
|
+
expected: X
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
if (N[0] instanceof Array && N.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + E);
|
|
378
|
+
switch (N[0]) {
|
|
379
|
+
case 1:
|
|
380
|
+
c.push(E), y.push(k.yytext), n.push(k.yylloc), c.push(N[1]), E = null, q ? (E = q, q = null) : (se = k.yyleng, a = k.yytext, W = k.yylineno, J = k.yylloc, re > 0 && re--);
|
|
381
|
+
break;
|
|
382
|
+
case 2:
|
|
383
|
+
if (I = this.productions_[N[1]][1], F.$ = y[y.length - I], F._$ = {
|
|
384
|
+
first_line: n[n.length - (I || 1)].first_line,
|
|
385
|
+
last_line: n[n.length - 1].last_line,
|
|
386
|
+
first_column: n[n.length - (I || 1)].first_column,
|
|
387
|
+
last_column: n[n.length - 1].last_column
|
|
388
|
+
}, pe && (F._$.range = [n[n.length - (I || 1)].range[0], n[n.length - 1].range[1]]), Q = this.performAction.apply(F, [
|
|
389
|
+
a,
|
|
390
|
+
se,
|
|
391
|
+
W,
|
|
392
|
+
P.yy,
|
|
393
|
+
N[1],
|
|
394
|
+
y,
|
|
395
|
+
n
|
|
396
|
+
].concat(de)), typeof Q < "u") return Q;
|
|
397
|
+
I && (c = c.slice(0, -1 * I * 2), y = y.slice(0, -1 * I), n = n.slice(0, -1 * I)), c.push(this.productions_[N[1]][0]), y.push(F.$), n.push(F._$), ce = U[c[c.length - 2]][c[c.length - 1]], c.push(ce);
|
|
398
|
+
break;
|
|
399
|
+
case 3:
|
|
400
|
+
return !0;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return !0;
|
|
404
|
+
}, "parse")
|
|
405
|
+
};
|
|
406
|
+
M.lexer = /* @__PURE__ */ (function() {
|
|
407
|
+
return {
|
|
408
|
+
EOF: 1,
|
|
409
|
+
parseError: /* @__PURE__ */ r(function(t, o) {
|
|
410
|
+
if (this.yy.parser) this.yy.parser.parseError(t, o);
|
|
411
|
+
else throw new Error(t);
|
|
412
|
+
}, "parseError"),
|
|
413
|
+
setInput: /* @__PURE__ */ r(function(i, t) {
|
|
414
|
+
return this.yy = t || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
415
|
+
first_line: 1,
|
|
416
|
+
first_column: 0,
|
|
417
|
+
last_line: 1,
|
|
418
|
+
last_column: 0
|
|
419
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
420
|
+
}, "setInput"),
|
|
421
|
+
input: /* @__PURE__ */ r(function() {
|
|
422
|
+
var i = this._input[0];
|
|
423
|
+
return this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i, i.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
424
|
+
}, "input"),
|
|
425
|
+
unput: /* @__PURE__ */ r(function(i) {
|
|
426
|
+
var t = i.length, o = i.split(/(?:\r\n?|\n)/g);
|
|
427
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
428
|
+
var c = this.match.split(/(?:\r\n?|\n)/g);
|
|
429
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
430
|
+
var l = this.yylloc.range;
|
|
431
|
+
return this.yylloc = {
|
|
432
|
+
first_line: this.yylloc.first_line,
|
|
433
|
+
last_line: this.yylineno + 1,
|
|
434
|
+
first_column: this.yylloc.first_column,
|
|
435
|
+
last_column: o ? (o.length === c.length ? this.yylloc.first_column : 0) + c[c.length - o.length].length - o[0].length : this.yylloc.first_column - t
|
|
436
|
+
}, this.options.ranges && (this.yylloc.range = [l[0], l[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
437
|
+
}, "unput"),
|
|
438
|
+
more: /* @__PURE__ */ r(function() {
|
|
439
|
+
return this._more = !0, this;
|
|
440
|
+
}, "more"),
|
|
441
|
+
reject: /* @__PURE__ */ r(function() {
|
|
442
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
443
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
444
|
+
` + this.showPosition(), {
|
|
445
|
+
text: "",
|
|
446
|
+
token: null,
|
|
447
|
+
line: this.yylineno
|
|
448
|
+
});
|
|
449
|
+
return this;
|
|
450
|
+
}, "reject"),
|
|
451
|
+
less: /* @__PURE__ */ r(function(i) {
|
|
452
|
+
this.unput(this.match.slice(i));
|
|
453
|
+
}, "less"),
|
|
454
|
+
pastInput: /* @__PURE__ */ r(function() {
|
|
455
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
456
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
457
|
+
}, "pastInput"),
|
|
458
|
+
upcomingInput: /* @__PURE__ */ r(function() {
|
|
459
|
+
var i = this.match;
|
|
460
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
461
|
+
}, "upcomingInput"),
|
|
462
|
+
showPosition: /* @__PURE__ */ r(function() {
|
|
463
|
+
var i = this.pastInput(), t = new Array(i.length + 1).join("-");
|
|
464
|
+
return i + this.upcomingInput() + `
|
|
465
|
+
` + t + "^";
|
|
466
|
+
}, "showPosition"),
|
|
467
|
+
test_match: /* @__PURE__ */ r(function(i, t) {
|
|
468
|
+
var o, c, l;
|
|
469
|
+
if (this.options.backtrack_lexer && (l = {
|
|
470
|
+
yylineno: this.yylineno,
|
|
471
|
+
yylloc: {
|
|
472
|
+
first_line: this.yylloc.first_line,
|
|
473
|
+
last_line: this.last_line,
|
|
474
|
+
first_column: this.yylloc.first_column,
|
|
475
|
+
last_column: this.yylloc.last_column
|
|
476
|
+
},
|
|
477
|
+
yytext: this.yytext,
|
|
478
|
+
match: this.match,
|
|
479
|
+
matches: this.matches,
|
|
480
|
+
matched: this.matched,
|
|
481
|
+
yyleng: this.yyleng,
|
|
482
|
+
offset: this.offset,
|
|
483
|
+
_more: this._more,
|
|
484
|
+
_input: this._input,
|
|
485
|
+
yy: this.yy,
|
|
486
|
+
conditionStack: this.conditionStack.slice(0),
|
|
487
|
+
done: this.done
|
|
488
|
+
}, this.options.ranges && (l.yylloc.range = this.yylloc.range.slice(0))), c = i[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
|
|
489
|
+
first_line: this.yylloc.last_line,
|
|
490
|
+
last_line: this.yylineno + 1,
|
|
491
|
+
first_column: this.yylloc.last_column,
|
|
492
|
+
last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
493
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], o = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o) return o;
|
|
494
|
+
if (this._backtrack) {
|
|
495
|
+
for (var y in l) this[y] = l[y];
|
|
496
|
+
return !1;
|
|
497
|
+
}
|
|
498
|
+
return !1;
|
|
499
|
+
}, "test_match"),
|
|
500
|
+
next: /* @__PURE__ */ r(function() {
|
|
501
|
+
if (this.done) return this.EOF;
|
|
502
|
+
this._input || (this.done = !0);
|
|
503
|
+
var i, t, o, c;
|
|
504
|
+
this._more || (this.yytext = "", this.match = "");
|
|
505
|
+
for (var l = this._currentRules(), y = 0; y < l.length; y++)
|
|
506
|
+
if (o = this._input.match(this.rules[l[y]]), o && (!t || o[0].length > t[0].length)) {
|
|
507
|
+
if (t = o, c = y, this.options.backtrack_lexer) {
|
|
508
|
+
if (i = this.test_match(o, l[y]), i !== !1) return i;
|
|
509
|
+
if (this._backtrack) {
|
|
510
|
+
t = !1;
|
|
511
|
+
continue;
|
|
512
|
+
} else return !1;
|
|
513
|
+
} else if (!this.options.flex) break;
|
|
514
|
+
}
|
|
515
|
+
return t ? (i = this.test_match(t, l[c]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
516
|
+
` + this.showPosition(), {
|
|
517
|
+
text: "",
|
|
518
|
+
token: null,
|
|
519
|
+
line: this.yylineno
|
|
520
|
+
});
|
|
521
|
+
}, "next"),
|
|
522
|
+
lex: /* @__PURE__ */ r(function() {
|
|
523
|
+
var t = this.next();
|
|
524
|
+
return t || this.lex();
|
|
525
|
+
}, "lex"),
|
|
526
|
+
begin: /* @__PURE__ */ r(function(t) {
|
|
527
|
+
this.conditionStack.push(t);
|
|
528
|
+
}, "begin"),
|
|
529
|
+
popState: /* @__PURE__ */ r(function() {
|
|
530
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
531
|
+
}, "popState"),
|
|
532
|
+
_currentRules: /* @__PURE__ */ r(function() {
|
|
533
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
534
|
+
}, "_currentRules"),
|
|
535
|
+
topState: /* @__PURE__ */ r(function(t) {
|
|
536
|
+
return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
|
|
537
|
+
}, "topState"),
|
|
538
|
+
pushState: /* @__PURE__ */ r(function(t) {
|
|
539
|
+
this.begin(t);
|
|
540
|
+
}, "pushState"),
|
|
541
|
+
stateStackSize: /* @__PURE__ */ r(function() {
|
|
542
|
+
return this.conditionStack.length;
|
|
543
|
+
}, "stateStackSize"),
|
|
544
|
+
options: { "case-insensitive": !0 },
|
|
545
|
+
performAction: /* @__PURE__ */ r(function(t, o, c, l) {
|
|
546
|
+
switch (c) {
|
|
547
|
+
case 0:
|
|
548
|
+
return this.pushState("shapeData"), o.yytext = "", 24;
|
|
549
|
+
case 1:
|
|
550
|
+
return this.pushState("shapeDataStr"), 24;
|
|
551
|
+
case 2:
|
|
552
|
+
return this.popState(), 24;
|
|
553
|
+
case 3:
|
|
554
|
+
return o.yytext = o.yytext.replace(/\n\s*/g, "<br/>"), 24;
|
|
555
|
+
case 4:
|
|
556
|
+
return 24;
|
|
557
|
+
case 5:
|
|
558
|
+
this.popState();
|
|
559
|
+
break;
|
|
560
|
+
case 6:
|
|
561
|
+
return t.getLogger().trace("Found comment", o.yytext), 6;
|
|
562
|
+
case 7:
|
|
563
|
+
return 8;
|
|
564
|
+
case 8:
|
|
565
|
+
this.begin("CLASS");
|
|
566
|
+
break;
|
|
567
|
+
case 9:
|
|
568
|
+
return this.popState(), 17;
|
|
569
|
+
case 10:
|
|
570
|
+
this.popState();
|
|
571
|
+
break;
|
|
572
|
+
case 11:
|
|
573
|
+
t.getLogger().trace("Begin icon"), this.begin("ICON");
|
|
574
|
+
break;
|
|
575
|
+
case 12:
|
|
576
|
+
return t.getLogger().trace("SPACELINE"), 6;
|
|
577
|
+
case 13:
|
|
578
|
+
return 7;
|
|
579
|
+
case 14:
|
|
580
|
+
return 16;
|
|
581
|
+
case 15:
|
|
582
|
+
t.getLogger().trace("end icon"), this.popState();
|
|
583
|
+
break;
|
|
584
|
+
case 16:
|
|
585
|
+
return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
|
|
586
|
+
case 17:
|
|
587
|
+
return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
|
|
588
|
+
case 18:
|
|
589
|
+
return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
|
|
590
|
+
case 19:
|
|
591
|
+
return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
|
|
592
|
+
case 20:
|
|
593
|
+
return this.begin("NODE"), 20;
|
|
594
|
+
case 21:
|
|
595
|
+
return this.begin("NODE"), 20;
|
|
596
|
+
case 22:
|
|
597
|
+
return this.begin("NODE"), 20;
|
|
598
|
+
case 23:
|
|
599
|
+
return this.begin("NODE"), 20;
|
|
600
|
+
case 24:
|
|
601
|
+
return 13;
|
|
602
|
+
case 25:
|
|
603
|
+
return 23;
|
|
604
|
+
case 26:
|
|
605
|
+
return 11;
|
|
606
|
+
case 27:
|
|
607
|
+
this.begin("NSTR2");
|
|
608
|
+
break;
|
|
609
|
+
case 28:
|
|
610
|
+
return "NODE_DESCR";
|
|
611
|
+
case 29:
|
|
612
|
+
this.popState();
|
|
613
|
+
break;
|
|
614
|
+
case 30:
|
|
615
|
+
t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
616
|
+
break;
|
|
617
|
+
case 31:
|
|
618
|
+
return t.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
619
|
+
case 32:
|
|
620
|
+
this.popState();
|
|
621
|
+
break;
|
|
622
|
+
case 33:
|
|
623
|
+
return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
|
|
624
|
+
case 34:
|
|
625
|
+
return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
|
|
626
|
+
case 35:
|
|
627
|
+
return this.popState(), t.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
628
|
+
case 36:
|
|
629
|
+
return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
|
|
630
|
+
case 37:
|
|
631
|
+
return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
|
|
632
|
+
case 38:
|
|
633
|
+
return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
|
|
634
|
+
case 39:
|
|
635
|
+
return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
|
|
636
|
+
case 40:
|
|
637
|
+
return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
|
|
638
|
+
case 41:
|
|
639
|
+
return t.getLogger().trace("Long description:", o.yytext), 21;
|
|
640
|
+
case 42:
|
|
641
|
+
return t.getLogger().trace("Long description:", o.yytext), 21;
|
|
642
|
+
}
|
|
643
|
+
}, "anonymous"),
|
|
644
|
+
rules: [
|
|
645
|
+
/^(?:@\{)/i,
|
|
646
|
+
/^(?:["])/i,
|
|
647
|
+
/^(?:["])/i,
|
|
648
|
+
/^(?:[^\"]+)/i,
|
|
649
|
+
/^(?:[^}^"]+)/i,
|
|
650
|
+
/^(?:\})/i,
|
|
651
|
+
/^(?:\s*%%.*)/i,
|
|
652
|
+
/^(?:kanban\b)/i,
|
|
653
|
+
/^(?::::)/i,
|
|
654
|
+
/^(?:.+)/i,
|
|
655
|
+
/^(?:\n)/i,
|
|
656
|
+
/^(?:::icon\()/i,
|
|
657
|
+
/^(?:[\s]+[\n])/i,
|
|
658
|
+
/^(?:[\n]+)/i,
|
|
659
|
+
/^(?:[^\)]+)/i,
|
|
660
|
+
/^(?:\))/i,
|
|
661
|
+
/^(?:-\))/i,
|
|
662
|
+
/^(?:\(-)/i,
|
|
663
|
+
/^(?:\)\))/i,
|
|
664
|
+
/^(?:\))/i,
|
|
665
|
+
/^(?:\(\()/i,
|
|
666
|
+
/^(?:\{\{)/i,
|
|
667
|
+
/^(?:\()/i,
|
|
668
|
+
/^(?:\[)/i,
|
|
669
|
+
/^(?:[\s]+)/i,
|
|
670
|
+
/^(?:[^\(\[\n\)\{\}@]+)/i,
|
|
671
|
+
/^(?:$)/i,
|
|
672
|
+
/^(?:["][`])/i,
|
|
673
|
+
/^(?:[^`"]+)/i,
|
|
674
|
+
/^(?:[`]["])/i,
|
|
675
|
+
/^(?:["])/i,
|
|
676
|
+
/^(?:[^"]+)/i,
|
|
677
|
+
/^(?:["])/i,
|
|
678
|
+
/^(?:[\)]\))/i,
|
|
679
|
+
/^(?:[\)])/i,
|
|
680
|
+
/^(?:[\]])/i,
|
|
681
|
+
/^(?:\}\})/i,
|
|
682
|
+
/^(?:\(-)/i,
|
|
683
|
+
/^(?:-\))/i,
|
|
684
|
+
/^(?:\(\()/i,
|
|
685
|
+
/^(?:\()/i,
|
|
686
|
+
/^(?:[^\)\]\(\}]+)/i,
|
|
687
|
+
/^(?:.+(?!\(\())/i
|
|
688
|
+
],
|
|
689
|
+
conditions: {
|
|
690
|
+
shapeDataEndBracket: {
|
|
691
|
+
rules: [],
|
|
692
|
+
inclusive: !1
|
|
693
|
+
},
|
|
694
|
+
shapeDataStr: {
|
|
695
|
+
rules: [2, 3],
|
|
696
|
+
inclusive: !1
|
|
697
|
+
},
|
|
698
|
+
shapeData: {
|
|
699
|
+
rules: [
|
|
700
|
+
1,
|
|
701
|
+
4,
|
|
702
|
+
5
|
|
703
|
+
],
|
|
704
|
+
inclusive: !1
|
|
705
|
+
},
|
|
706
|
+
CLASS: {
|
|
707
|
+
rules: [9, 10],
|
|
708
|
+
inclusive: !1
|
|
709
|
+
},
|
|
710
|
+
ICON: {
|
|
711
|
+
rules: [14, 15],
|
|
712
|
+
inclusive: !1
|
|
713
|
+
},
|
|
714
|
+
NSTR2: {
|
|
715
|
+
rules: [28, 29],
|
|
716
|
+
inclusive: !1
|
|
717
|
+
},
|
|
718
|
+
NSTR: {
|
|
719
|
+
rules: [31, 32],
|
|
720
|
+
inclusive: !1
|
|
721
|
+
},
|
|
722
|
+
NODE: {
|
|
723
|
+
rules: [
|
|
724
|
+
27,
|
|
725
|
+
30,
|
|
726
|
+
33,
|
|
727
|
+
34,
|
|
728
|
+
35,
|
|
729
|
+
36,
|
|
730
|
+
37,
|
|
731
|
+
38,
|
|
732
|
+
39,
|
|
733
|
+
40,
|
|
734
|
+
41,
|
|
735
|
+
42
|
|
736
|
+
],
|
|
737
|
+
inclusive: !1
|
|
738
|
+
},
|
|
739
|
+
INITIAL: {
|
|
740
|
+
rules: [
|
|
741
|
+
0,
|
|
742
|
+
6,
|
|
743
|
+
7,
|
|
744
|
+
8,
|
|
745
|
+
11,
|
|
746
|
+
12,
|
|
747
|
+
13,
|
|
748
|
+
16,
|
|
749
|
+
17,
|
|
750
|
+
18,
|
|
751
|
+
19,
|
|
752
|
+
20,
|
|
753
|
+
21,
|
|
754
|
+
22,
|
|
755
|
+
23,
|
|
756
|
+
24,
|
|
757
|
+
25,
|
|
758
|
+
26
|
|
759
|
+
],
|
|
760
|
+
inclusive: !0
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
})();
|
|
765
|
+
function j() {
|
|
766
|
+
this.yy = {};
|
|
767
|
+
}
|
|
768
|
+
return r(j, "Parser"), j.prototype = M, M.Parser = j, new j();
|
|
769
|
+
})();
|
|
770
|
+
ee.parser = ee;
|
|
771
|
+
var De = ee, D = [], ie = [], te = 0, ne = {}, Le = /* @__PURE__ */ r(() => {
|
|
772
|
+
D = [], ie = [], te = 0, ne = {};
|
|
773
|
+
}, "clear"), ve = /* @__PURE__ */ r((e) => {
|
|
774
|
+
if (D.length === 0) return null;
|
|
775
|
+
const g = D[0].level;
|
|
776
|
+
let p = null;
|
|
777
|
+
for (let s = D.length - 1; s >= 0; s--)
|
|
778
|
+
if (D[s].level === g && !p && (p = D[s]), D[s].level < g) throw new Error('Items without section detected, found section ("' + D[s].label + '")');
|
|
779
|
+
return e === p?.level ? null : p;
|
|
780
|
+
}, "getSection"), ue = /* @__PURE__ */ r(function() {
|
|
781
|
+
return ie;
|
|
782
|
+
}, "getSections"), Oe = /* @__PURE__ */ r(function() {
|
|
783
|
+
const e = [], g = [], p = ue(), s = H();
|
|
784
|
+
for (const d of p) {
|
|
785
|
+
const b = {
|
|
786
|
+
id: d.id,
|
|
787
|
+
label: G(d.label ?? "", s),
|
|
788
|
+
labelType: "markdown",
|
|
789
|
+
isGroup: !0,
|
|
790
|
+
ticket: d.ticket,
|
|
791
|
+
shape: "kanbanSection",
|
|
792
|
+
level: d.level,
|
|
793
|
+
look: s.look
|
|
794
|
+
};
|
|
795
|
+
g.push(b);
|
|
796
|
+
const _ = D.filter((h) => h.parentId === d.id);
|
|
797
|
+
for (const h of _) {
|
|
798
|
+
const L = {
|
|
799
|
+
id: h.id,
|
|
800
|
+
parentId: d.id,
|
|
801
|
+
label: G(h.label ?? "", s),
|
|
802
|
+
labelType: "markdown",
|
|
803
|
+
isGroup: !1,
|
|
804
|
+
ticket: h?.ticket,
|
|
805
|
+
priority: h?.priority,
|
|
806
|
+
assigned: h?.assigned,
|
|
807
|
+
icon: h?.icon,
|
|
808
|
+
shape: "kanbanItem",
|
|
809
|
+
level: h.level,
|
|
810
|
+
rx: 5,
|
|
811
|
+
ry: 5,
|
|
812
|
+
cssStyles: ["text-align: left"]
|
|
813
|
+
};
|
|
814
|
+
g.push(L);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
return {
|
|
818
|
+
nodes: g,
|
|
819
|
+
edges: e,
|
|
820
|
+
other: {},
|
|
821
|
+
config: H()
|
|
822
|
+
};
|
|
823
|
+
}, "getData"), Ie = /* @__PURE__ */ r((e, g, p, s, d) => {
|
|
824
|
+
const b = H();
|
|
825
|
+
let _ = b.mindmap?.padding ?? K.mindmap.padding;
|
|
826
|
+
switch (s) {
|
|
827
|
+
case m.ROUNDED_RECT:
|
|
828
|
+
case m.RECT:
|
|
829
|
+
case m.HEXAGON:
|
|
830
|
+
_ *= 2;
|
|
831
|
+
}
|
|
832
|
+
const h = {
|
|
833
|
+
id: G(g, b) || "kbn" + te++,
|
|
834
|
+
level: e,
|
|
835
|
+
label: G(p, b),
|
|
836
|
+
width: b.mindmap?.maxNodeWidth ?? K.mindmap.maxNodeWidth,
|
|
837
|
+
padding: _,
|
|
838
|
+
isGroup: !1
|
|
839
|
+
};
|
|
840
|
+
if (d !== void 0) {
|
|
841
|
+
let O;
|
|
842
|
+
d.includes(`
|
|
843
|
+
`) ? O = d + `
|
|
844
|
+
` : O = `{
|
|
845
|
+
` + d + `
|
|
846
|
+
}`;
|
|
847
|
+
const u = Ne(O, { schema: xe });
|
|
848
|
+
if (u.shape && (u.shape !== u.shape.toLowerCase() || u.shape.includes("_"))) throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);
|
|
849
|
+
u?.shape && u.shape === "kanbanItem" && (h.shape = u?.shape), u?.label && (h.label = u?.label), u?.icon && (h.icon = u?.icon.toString()), u?.assigned && (h.assigned = u?.assigned.toString()), u?.ticket && (h.ticket = u?.ticket.toString()), u?.priority && (h.priority = u?.priority);
|
|
850
|
+
}
|
|
851
|
+
const L = ve(e);
|
|
852
|
+
L ? h.parentId = L.id || "kbn" + te++ : ie.push(h), D.push(h);
|
|
853
|
+
}, "addNode"), m = {
|
|
854
|
+
DEFAULT: 0,
|
|
855
|
+
NO_BORDER: 0,
|
|
856
|
+
ROUNDED_RECT: 1,
|
|
857
|
+
RECT: 2,
|
|
858
|
+
CIRCLE: 3,
|
|
859
|
+
CLOUD: 4,
|
|
860
|
+
BANG: 5,
|
|
861
|
+
HEXAGON: 6
|
|
862
|
+
}, Ce = {
|
|
863
|
+
clear: Le,
|
|
864
|
+
addNode: Ie,
|
|
865
|
+
getSections: ue,
|
|
866
|
+
getData: Oe,
|
|
867
|
+
nodeType: m,
|
|
868
|
+
getType: /* @__PURE__ */ r((e, g) => {
|
|
869
|
+
switch ($.debug("In get type", e, g), e) {
|
|
870
|
+
case "[":
|
|
871
|
+
return m.RECT;
|
|
872
|
+
case "(":
|
|
873
|
+
return g === ")" ? m.ROUNDED_RECT : m.CLOUD;
|
|
874
|
+
case "((":
|
|
875
|
+
return m.CIRCLE;
|
|
876
|
+
case ")":
|
|
877
|
+
return m.CLOUD;
|
|
878
|
+
case "))":
|
|
879
|
+
return m.BANG;
|
|
880
|
+
case "{{":
|
|
881
|
+
return m.HEXAGON;
|
|
882
|
+
default:
|
|
883
|
+
return m.DEFAULT;
|
|
884
|
+
}
|
|
885
|
+
}, "getType"),
|
|
886
|
+
setElementForId: /* @__PURE__ */ r((e, g) => {
|
|
887
|
+
ne[e] = g;
|
|
888
|
+
}, "setElementForId"),
|
|
889
|
+
decorateNode: /* @__PURE__ */ r((e) => {
|
|
890
|
+
if (!e) return;
|
|
891
|
+
const g = H(), p = D[D.length - 1];
|
|
892
|
+
e.icon && (p.icon = G(e.icon, g)), e.class && (p.cssClasses = G(e.class, g));
|
|
893
|
+
}, "decorateNode"),
|
|
894
|
+
type2Str: /* @__PURE__ */ r((e) => {
|
|
895
|
+
switch (e) {
|
|
896
|
+
case m.DEFAULT:
|
|
897
|
+
return "no-border";
|
|
898
|
+
case m.RECT:
|
|
899
|
+
return "rect";
|
|
900
|
+
case m.ROUNDED_RECT:
|
|
901
|
+
return "rounded-rect";
|
|
902
|
+
case m.CIRCLE:
|
|
903
|
+
return "circle";
|
|
904
|
+
case m.CLOUD:
|
|
905
|
+
return "cloud";
|
|
906
|
+
case m.BANG:
|
|
907
|
+
return "bang";
|
|
908
|
+
case m.HEXAGON:
|
|
909
|
+
return "hexgon";
|
|
910
|
+
default:
|
|
911
|
+
return "no-border";
|
|
912
|
+
}
|
|
913
|
+
}, "type2Str"),
|
|
914
|
+
getLogger: /* @__PURE__ */ r(() => $, "getLogger"),
|
|
915
|
+
getElementById: /* @__PURE__ */ r((e) => ne[e], "getElementById")
|
|
916
|
+
}, we = { draw: /* @__PURE__ */ r(async (e, g, p, s) => {
|
|
917
|
+
$.debug(`Rendering kanban diagram
|
|
918
|
+
` + e);
|
|
919
|
+
const d = s.db.getData(), b = H();
|
|
920
|
+
b.htmlLabels = !1;
|
|
921
|
+
const _ = be(g);
|
|
922
|
+
for (const f of d.nodes) f.domId = `${g}-${f.id}`;
|
|
923
|
+
const h = _.append("g");
|
|
924
|
+
h.attr("class", "sections");
|
|
925
|
+
const L = _.append("g");
|
|
926
|
+
L.attr("class", "items");
|
|
927
|
+
const O = d.nodes.filter((f) => f.isGroup);
|
|
928
|
+
let u = 0;
|
|
929
|
+
const T = 10, S = [];
|
|
930
|
+
let R = 25;
|
|
931
|
+
for (const f of O) {
|
|
932
|
+
const C = b?.kanban?.sectionWidth || 200;
|
|
933
|
+
u = u + 1, f.x = C * u + (u - 1) * T / 2, f.width = C, f.y = 0, f.height = C * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + u;
|
|
934
|
+
const w = await Se(h, f);
|
|
935
|
+
R = Math.max(R, w?.labelBBox?.height), S.push(w);
|
|
936
|
+
}
|
|
937
|
+
let v = 0;
|
|
938
|
+
for (const f of O) {
|
|
939
|
+
const C = S[v];
|
|
940
|
+
v = v + 1;
|
|
941
|
+
const w = b?.kanban?.sectionWidth || 200, A = -w * 3 / 2 + R;
|
|
942
|
+
let B = A;
|
|
943
|
+
const M = d.nodes.filter((t) => t.parentId === f.id);
|
|
944
|
+
for (const t of M) {
|
|
945
|
+
if (t.isGroup) throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
946
|
+
t.x = f.x, t.width = w - 1.5 * T;
|
|
947
|
+
const o = (await Ee(L, t, { config: b })).node().getBBox();
|
|
948
|
+
t.y = B + o.height / 2, await _e(t), B = t.y + o.height / 2 + T / 2;
|
|
949
|
+
}
|
|
950
|
+
const j = C.cluster.select("rect"), i = Math.max(B - A + 3 * T, 50) + (R - 25);
|
|
951
|
+
j.attr("height", i);
|
|
952
|
+
}
|
|
953
|
+
ye(void 0, _, b.mindmap?.padding ?? K.kanban.padding, b.mindmap?.useMaxWidth ?? K.kanban.useMaxWidth);
|
|
954
|
+
}, "draw") }, Ae = /* @__PURE__ */ r((e) => {
|
|
955
|
+
let g = "";
|
|
956
|
+
for (let s = 0; s < e.THEME_COLOR_LIMIT; s++)
|
|
957
|
+
e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], me(e["lineColor" + s]) ? e["lineColor" + s] = he(e["lineColor" + s], 20) : e["lineColor" + s] = le(e["lineColor" + s], 20);
|
|
958
|
+
const p = /* @__PURE__ */ r((s, d) => e.darkMode ? le(s, d) : he(s, d), "adjuster");
|
|
959
|
+
for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) {
|
|
960
|
+
const d = "" + (17 - 3 * s);
|
|
961
|
+
g += `
|
|
962
|
+
.section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
|
|
963
|
+
fill: ${p(e["cScale" + s], 10)};
|
|
964
|
+
stroke: ${p(e["cScale" + s], 10)};
|
|
965
|
+
|
|
966
|
+
}
|
|
967
|
+
.section-${s - 1} text {
|
|
968
|
+
fill: ${e["cScaleLabel" + s]};
|
|
969
|
+
}
|
|
970
|
+
.node-icon-${s - 1} {
|
|
971
|
+
font-size: 40px;
|
|
972
|
+
color: ${e["cScaleLabel" + s]};
|
|
973
|
+
}
|
|
974
|
+
.section-edge-${s - 1}{
|
|
975
|
+
stroke: ${e["cScale" + s]};
|
|
976
|
+
}
|
|
977
|
+
.edge-depth-${s - 1}{
|
|
978
|
+
stroke-width: ${d};
|
|
979
|
+
}
|
|
980
|
+
.section-${s - 1} line {
|
|
981
|
+
stroke: ${e["cScaleInv" + s]} ;
|
|
982
|
+
stroke-width: 3;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.disabled, .disabled circle, .disabled text {
|
|
986
|
+
fill: lightgray;
|
|
987
|
+
}
|
|
988
|
+
.disabled text {
|
|
989
|
+
fill: #efefef;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.node rect,
|
|
993
|
+
.node circle,
|
|
994
|
+
.node ellipse,
|
|
995
|
+
.node polygon,
|
|
996
|
+
.node path {
|
|
997
|
+
fill: ${e.background};
|
|
998
|
+
stroke: ${e.nodeBorder};
|
|
999
|
+
stroke-width: 1px;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.kanban-ticket-link {
|
|
1003
|
+
fill: ${e.background};
|
|
1004
|
+
stroke: ${e.nodeBorder};
|
|
1005
|
+
text-decoration: underline;
|
|
1006
|
+
}
|
|
1007
|
+
`;
|
|
1008
|
+
}
|
|
1009
|
+
return g;
|
|
1010
|
+
}, "genSections"), ze = {
|
|
1011
|
+
db: Ce,
|
|
1012
|
+
renderer: we,
|
|
1013
|
+
parser: De,
|
|
1014
|
+
styles: /* @__PURE__ */ r((e) => `
|
|
1015
|
+
.edge {
|
|
1016
|
+
stroke-width: 3;
|
|
1017
|
+
}
|
|
1018
|
+
${Ae(e)}
|
|
1019
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
1020
|
+
fill: ${e.git0};
|
|
1021
|
+
}
|
|
1022
|
+
.section-root text {
|
|
1023
|
+
fill: ${e.gitBranchLabel0};
|
|
1024
|
+
}
|
|
1025
|
+
.icon-container {
|
|
1026
|
+
height:100%;
|
|
1027
|
+
display: flex;
|
|
1028
|
+
justify-content: center;
|
|
1029
|
+
align-items: center;
|
|
1030
|
+
}
|
|
1031
|
+
.edge {
|
|
1032
|
+
fill: none;
|
|
1033
|
+
}
|
|
1034
|
+
.cluster-label, .label {
|
|
1035
|
+
color: ${e.textColor};
|
|
1036
|
+
fill: ${e.textColor};
|
|
1037
|
+
}
|
|
1038
|
+
.kanban-label {
|
|
1039
|
+
dy: 1em;
|
|
1040
|
+
alignment-baseline: middle;
|
|
1041
|
+
text-anchor: middle;
|
|
1042
|
+
dominant-baseline: middle;
|
|
1043
|
+
text-align: center;
|
|
1044
|
+
}
|
|
1045
|
+
${ke()}
|
|
1046
|
+
`, "getStyles")
|
|
1047
|
+
};
|
|
1048
|
+
export {
|
|
1049
|
+
ze as diagram
|
|
1050
|
+
};
|