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,207 @@
|
|
|
1
|
+
import { n as rt } from "./mermaid-parser.core-uIDZYuBu.js";
|
|
2
|
+
import { n as d } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
3
|
+
import { m as B } from "./src-DtRLxcYO.js";
|
|
4
|
+
import { H as nt, K as it, U as ot, a as st, c as lt, f as ct, v as ut, w as dt, x as gt, y as ft } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
5
|
+
import { t as pt } from "./ordinal-BMN81JG2.js";
|
|
6
|
+
import { n as C } from "./path-Bja5PoYn.js";
|
|
7
|
+
import { m as G } from "./dist-C0Fwsvsq.js";
|
|
8
|
+
import { t as Z } from "./arc-DRPGof21.js";
|
|
9
|
+
import { t as ht } from "./array-By5736M5.js";
|
|
10
|
+
import { i as mt, p as vt } from "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
11
|
+
import { t as xt } from "./chunk-VAUOI2AC-izt0o4id.js";
|
|
12
|
+
import { t as yt } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
|
|
13
|
+
function St(t, r) {
|
|
14
|
+
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15
|
+
}
|
|
16
|
+
function wt(t) {
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
function At() {
|
|
20
|
+
var t = wt, r = St, v = null, l = C(0), c = C(G), $ = C(0);
|
|
21
|
+
function n(e) {
|
|
22
|
+
var o, g = (e = ht(e)).length, x, D, w = 0, f = new Array(g), i = new Array(g), A = +l.apply(this, arguments), k = Math.min(G, Math.max(-G, c.apply(this, arguments) - A)), T, M = Math.min(Math.abs(k) / g, $.apply(this, arguments)), p = M * (k < 0 ? -1 : 1), y;
|
|
23
|
+
for (o = 0; o < g; ++o) (y = i[f[o] = o] = +t(e[o], o, e)) > 0 && (w += y);
|
|
24
|
+
for (r != null ? f.sort(function(_, h) {
|
|
25
|
+
return r(i[_], i[h]);
|
|
26
|
+
}) : v != null && f.sort(function(_, h) {
|
|
27
|
+
return v(e[_], e[h]);
|
|
28
|
+
}), o = 0, D = w ? (k - g * p) / w : 0; o < g; ++o, A = T) x = f[o], y = i[x], T = A + (y > 0 ? y * D : 0) + p, i[x] = {
|
|
29
|
+
data: e[x],
|
|
30
|
+
index: o,
|
|
31
|
+
value: y,
|
|
32
|
+
startAngle: A,
|
|
33
|
+
endAngle: T,
|
|
34
|
+
padAngle: M
|
|
35
|
+
};
|
|
36
|
+
return i;
|
|
37
|
+
}
|
|
38
|
+
return n.value = function(e) {
|
|
39
|
+
return arguments.length ? (t = typeof e == "function" ? e : C(+e), n) : t;
|
|
40
|
+
}, n.sortValues = function(e) {
|
|
41
|
+
return arguments.length ? (r = e, v = null, n) : r;
|
|
42
|
+
}, n.sort = function(e) {
|
|
43
|
+
return arguments.length ? (v = e, r = null, n) : v;
|
|
44
|
+
}, n.startAngle = function(e) {
|
|
45
|
+
return arguments.length ? (l = typeof e == "function" ? e : C(+e), n) : l;
|
|
46
|
+
}, n.endAngle = function(e) {
|
|
47
|
+
return arguments.length ? (c = typeof e == "function" ? e : C(+e), n) : c;
|
|
48
|
+
}, n.padAngle = function(e) {
|
|
49
|
+
return arguments.length ? ($ = typeof e == "function" ? e : C(+e), n) : $;
|
|
50
|
+
}, n;
|
|
51
|
+
}
|
|
52
|
+
var q = ct.pie, U = {
|
|
53
|
+
sections: /* @__PURE__ */ new Map(),
|
|
54
|
+
showData: !1,
|
|
55
|
+
config: q
|
|
56
|
+
}, L = U.sections, I = U.showData, Ct = structuredClone(q), J = {
|
|
57
|
+
getConfig: /* @__PURE__ */ d(() => structuredClone(Ct), "getConfig"),
|
|
58
|
+
clear: /* @__PURE__ */ d(() => {
|
|
59
|
+
L = /* @__PURE__ */ new Map(), I = U.showData, st();
|
|
60
|
+
}, "clear"),
|
|
61
|
+
setDiagramTitle: it,
|
|
62
|
+
getDiagramTitle: dt,
|
|
63
|
+
setAccTitle: ot,
|
|
64
|
+
getAccTitle: ft,
|
|
65
|
+
setAccDescription: nt,
|
|
66
|
+
getAccDescription: ut,
|
|
67
|
+
addSection: /* @__PURE__ */ d(({ label: t, value: r }) => {
|
|
68
|
+
if (r < 0) throw new Error(`"${t}" has invalid value: ${r}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
|
|
69
|
+
L.has(t) || (L.set(t, r), B.debug(`added new section: ${t}, with value: ${r}`));
|
|
70
|
+
}, "addSection"),
|
|
71
|
+
getSections: /* @__PURE__ */ d(() => L, "getSections"),
|
|
72
|
+
setShowData: /* @__PURE__ */ d((t) => {
|
|
73
|
+
I = t;
|
|
74
|
+
}, "setShowData"),
|
|
75
|
+
getShowData: /* @__PURE__ */ d(() => I, "getShowData")
|
|
76
|
+
}, $t = /* @__PURE__ */ d((t, r) => {
|
|
77
|
+
yt(t, r), r.setShowData(t.showData), t.sections.map(r.addSection);
|
|
78
|
+
}, "populateDb"), Dt = { parse: /* @__PURE__ */ d(async (t) => {
|
|
79
|
+
const r = await rt("pie", t);
|
|
80
|
+
B.debug(r), $t(r, J);
|
|
81
|
+
}, "parse") }, Tt = /* @__PURE__ */ d((t) => `
|
|
82
|
+
.pieCircle{
|
|
83
|
+
stroke: ${t.pieStrokeColor};
|
|
84
|
+
stroke-width : ${t.pieStrokeWidth};
|
|
85
|
+
opacity : ${t.pieOpacity};
|
|
86
|
+
}
|
|
87
|
+
.pieCircle.highlighted{
|
|
88
|
+
scale: 1.05;
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
.pieCircle.highlightedOnHover:hover{
|
|
92
|
+
transition-duration: 250ms;
|
|
93
|
+
scale: 1.05;
|
|
94
|
+
opacity: 1;
|
|
95
|
+
}
|
|
96
|
+
.pieOuterCircle{
|
|
97
|
+
stroke: ${t.pieOuterStrokeColor};
|
|
98
|
+
stroke-width: ${t.pieOuterStrokeWidth};
|
|
99
|
+
fill: none;
|
|
100
|
+
}
|
|
101
|
+
.pieTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: ${t.pieTitleTextSize};
|
|
104
|
+
fill: ${t.pieTitleTextColor};
|
|
105
|
+
font-family: ${t.fontFamily};
|
|
106
|
+
}
|
|
107
|
+
.slice {
|
|
108
|
+
font-family: ${t.fontFamily};
|
|
109
|
+
fill: ${t.pieSectionTextColor};
|
|
110
|
+
font-size:${t.pieSectionTextSize};
|
|
111
|
+
// fill: white;
|
|
112
|
+
}
|
|
113
|
+
.legend text {
|
|
114
|
+
fill: ${t.pieLegendTextColor};
|
|
115
|
+
font-family: ${t.fontFamily};
|
|
116
|
+
font-size: ${t.pieLegendTextSize};
|
|
117
|
+
}
|
|
118
|
+
`, "getStyles"), bt = /* @__PURE__ */ d((t) => {
|
|
119
|
+
const r = [...t.values()].reduce((l, c) => l + c, 0), v = [...t.entries()].map(([l, c]) => ({
|
|
120
|
+
label: l,
|
|
121
|
+
value: c
|
|
122
|
+
})).filter((l) => l.value / r * 100 >= 1);
|
|
123
|
+
return At().value((l) => l.value).sort(null)(v);
|
|
124
|
+
}, "createPieArcs"), Rt = {
|
|
125
|
+
parser: Dt,
|
|
126
|
+
db: J,
|
|
127
|
+
renderer: { draw: /* @__PURE__ */ d((t, r, v, l) => {
|
|
128
|
+
B.debug(`rendering pie chart
|
|
129
|
+
` + t);
|
|
130
|
+
const c = l.db, $ = gt(), n = mt(c.getConfig(), $.pie), e = 40, o = 18, g = 4, x = 450, D = x, w = xt(r), f = w.append("g");
|
|
131
|
+
f.attr("transform", "translate(225,225)");
|
|
132
|
+
const { themeVariables: i } = $;
|
|
133
|
+
let [A] = vt(i.pieOuterStrokeWidth);
|
|
134
|
+
A ??= 2;
|
|
135
|
+
const k = n.legendPosition, T = n.textPosition, M = n.donutHole > 0 && n.donutHole <= 0.9 ? n.donutHole : 0, p = Math.min(D, x) / 2 - e, y = Z().innerRadius(M * p).outerRadius(p), _ = Z().innerRadius(p * T).outerRadius(p * T), h = f.append("g");
|
|
136
|
+
h.append("circle").attr("cx", 0).attr("cy", 0).attr("r", p + A / 2).attr("class", "pieOuterCircle");
|
|
137
|
+
const z = c.getSections(), Q = bt(z), Y = [
|
|
138
|
+
i.pie1,
|
|
139
|
+
i.pie2,
|
|
140
|
+
i.pie3,
|
|
141
|
+
i.pie4,
|
|
142
|
+
i.pie5,
|
|
143
|
+
i.pie6,
|
|
144
|
+
i.pie7,
|
|
145
|
+
i.pie8,
|
|
146
|
+
i.pie9,
|
|
147
|
+
i.pie10,
|
|
148
|
+
i.pie11,
|
|
149
|
+
i.pie12
|
|
150
|
+
];
|
|
151
|
+
let W = 0;
|
|
152
|
+
z.forEach((a) => {
|
|
153
|
+
W += a;
|
|
154
|
+
});
|
|
155
|
+
const V = Q.filter((a) => (a.data.value / W * 100).toFixed(0) !== "0"), F = pt(Y).domain([...z.keys()]);
|
|
156
|
+
h.selectAll("mySlices").data(V).enter().append("path").attr("d", y).attr("fill", (a) => F(a.data.label)).attr("class", (a) => {
|
|
157
|
+
let s = "pieCircle";
|
|
158
|
+
return n.highlightSlice === "hover" ? s += " highlightedOnHover" : n.highlightSlice === a.data.label && (s += " highlighted"), s;
|
|
159
|
+
}), h.selectAll("mySlices").data(V).enter().append("text").text((a) => (a.data.value / W * 100).toFixed(0) + "%").attr("transform", (a) => "translate(" + _.centroid(a) + ")").style("text-anchor", "middle").attr("class", "slice");
|
|
160
|
+
const tt = f.append("text").text(c.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), E = [...z.entries()].map(([a, s]) => ({
|
|
161
|
+
label: a,
|
|
162
|
+
value: s
|
|
163
|
+
})), S = f.selectAll(".legend").data(E).enter().append("g").attr("class", "legend");
|
|
164
|
+
S.append("rect").attr("width", o).attr("height", o).style("fill", (a) => F(a.label)).style("stroke", (a) => F(a.label)), S.append("text").attr("x", 22).attr("y", o - g).text((a) => c.getShowData() ? `${a.label} [${a.value}]` : a.label);
|
|
165
|
+
const b = Math.max(...S.selectAll("text").nodes().map((a) => a?.getBoundingClientRect().width ?? 0));
|
|
166
|
+
let H = x, N = 490;
|
|
167
|
+
const u = 22, O = E.length * u;
|
|
168
|
+
switch (k) {
|
|
169
|
+
case "center":
|
|
170
|
+
S.attr("transform", (a, s) => {
|
|
171
|
+
const m = u * E.length / 2, P = -b / 2 - 22, R = s * u - m;
|
|
172
|
+
return "translate(" + P + "," + R + ")";
|
|
173
|
+
});
|
|
174
|
+
break;
|
|
175
|
+
case "top":
|
|
176
|
+
H += O, S.attr("transform", (a, s) => {
|
|
177
|
+
const m = p;
|
|
178
|
+
return `translate(${-b / 2 - 22}, ${s * u - m})`;
|
|
179
|
+
}), h.attr("transform", () => `translate(0, ${O + u})`);
|
|
180
|
+
break;
|
|
181
|
+
case "bottom":
|
|
182
|
+
H += O, S.attr("transform", (a, s) => {
|
|
183
|
+
const m = -185 - u, P = -b / 2 - 22, R = s * u - m;
|
|
184
|
+
return "translate(" + P + "," + R + ")";
|
|
185
|
+
});
|
|
186
|
+
break;
|
|
187
|
+
case "left":
|
|
188
|
+
N += 22 + b, S.attr("transform", (a, s) => {
|
|
189
|
+
const m = u * E.length / 2;
|
|
190
|
+
return "translate(-207," + (s * u - m) + ")";
|
|
191
|
+
}), h.attr("transform", () => `translate(${b + o + g}, 0)`);
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
N += 22 + b, S.attr("transform", (a, s) => {
|
|
195
|
+
const m = u * E.length / 2;
|
|
196
|
+
return "translate(216," + (s * u - m) + ")";
|
|
197
|
+
});
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
const j = tt.node()?.getBoundingClientRect().width ?? 0, et = D / 2 - j / 2, at = D / 2 + j / 2, K = Math.min(0, et), X = Math.max(N, at) - K;
|
|
201
|
+
w.attr("viewBox", `${K} 0 ${X} ${H}`), lt(w, H, X, n.useMaxWidth);
|
|
202
|
+
}, "draw") },
|
|
203
|
+
styles: Tt
|
|
204
|
+
};
|
|
205
|
+
export {
|
|
206
|
+
Rt as diagram
|
|
207
|
+
};
|