file-viewer3 1.0.8 → 1.0.26
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/LICENSE +160 -0
- package/README.en.md +390 -0
- package/README.md +306 -89
- package/dist/components/3MFLoader.js +527 -0
- package/dist/components/AMFLoader.js +188 -0
- package/dist/components/ArchiveViewer.js +526 -0
- package/dist/components/AudioViewer.js +66 -0
- package/dist/components/CadViewer.js +9040 -0
- package/dist/components/CodeViewer.js +151 -0
- package/dist/components/ColladaLoader.js +2282 -0
- package/dist/components/DrawingViewer.js +295 -0
- package/dist/components/EdaViewer.js +630 -0
- package/dist/components/EmailViewer.js +276 -0
- package/dist/components/EpubViewer.js +172 -0
- package/dist/components/FBXLoader.js +1574 -0
- package/dist/components/GLTFLoader.js +1383 -0
- package/dist/components/ImageViewer.js +1516 -1895
- package/dist/components/KMZLoader.js +45 -0
- package/dist/components/MarkdownViewer.js +1456 -1557
- package/dist/components/ModelViewer.js +797 -0
- package/dist/components/OBJLoader.js +287 -0
- package/dist/components/OfdViewer.js +133 -0
- package/dist/components/PCDLoader.js +141 -0
- package/dist/components/PLYLoader.js +305 -0
- package/dist/components/PdfView.js +27662 -21655
- package/dist/components/PptxRender.js +11170 -21118
- package/dist/components/STLLoader.js +83 -0
- package/dist/components/TDSLoader.js +228 -0
- package/dist/components/TypstViewer.js +1697 -0
- package/dist/components/USDLoader.js +2526 -0
- package/dist/components/UmdViewer.js +1873 -0
- package/dist/components/VRMLLoader.js +6422 -0
- package/dist/components/VTKLoader.js +337 -0
- package/dist/components/XYZLoader.js +30 -0
- package/dist/components/XlsxTable.js +7871 -69873
- package/dist/components/__vite-browser-external.js +7 -0
- package/dist/components/_plugin-vue_export-helper.js +8 -0
- package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
- package/dist/components/arc.js +79 -0
- package/dist/components/architecture-7EHR7CIX.js +3 -0
- package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
- package/dist/components/archive.js +24 -0
- package/dist/components/asyncToGenerator.js +29 -0
- package/dist/components/audio.js +19 -0
- package/dist/components/az-AZ-76LH7QW2.js +523 -0
- package/dist/components/bash.js +169 -0
- package/dist/components/bg-BG-XCXSNQG7.js +523 -0
- package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
- package/dist/components/bn-BD-2XOGV67Q.js +523 -0
- package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
- package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
- package/dist/components/cad.js +23 -0
- package/dist/components/cfb.js +1174 -0
- package/dist/components/channel.js +5 -0
- package/dist/components/chunk-2J33WTMH.js +26 -0
- package/dist/components/chunk-3OPIFGDE.js +4167 -0
- package/dist/components/chunk-4BX2VUAB.js +19 -0
- package/dist/components/chunk-55IACEB6.js +9 -0
- package/dist/components/chunk-5ZQYHXKU.js +669 -0
- package/dist/components/chunk-6U3AYISY.js +624 -0
- package/dist/components/chunk-727SXJPM.js +3356 -0
- package/dist/components/chunk-AGHRB4JF.js +324 -0
- package/dist/components/chunk-AQP2D5EJ.js +2055 -0
- package/dist/components/chunk-BSJP7CBP.js +83 -0
- package/dist/components/chunk-CSCIHK7Q.js +3500 -0
- package/dist/components/chunk-EIO257PC.js +1836 -0
- package/dist/components/chunk-FMBD7UC4.js +5 -0
- package/dist/components/chunk-K2UTITRG.js +17627 -0
- package/dist/components/chunk-KSCS5N6A.js +572 -0
- package/dist/components/chunk-L5ZTLDWV.js +40 -0
- package/dist/components/chunk-LZXEDZCA.js +60 -0
- package/dist/components/chunk-ND2GUHAM.js +61 -0
- package/dist/components/chunk-NNHCCRGN.js +20425 -0
- package/dist/components/chunk-NZK2D7GU.js +68 -0
- package/dist/components/chunk-O5CBEL6O.js +1894 -0
- package/dist/components/chunk-QZHKN3VN.js +12 -0
- package/dist/components/chunk-SRAX5OIU.js +22 -0
- package/dist/components/chunk-WU5MYG2G.js +14 -0
- package/dist/components/chunk-XPW4576I.js +1146 -0
- package/dist/components/chunk-Z3N5DIM6.js +59 -0
- package/dist/components/chunk-ZUYEQ4TG.js +22 -0
- package/dist/components/chunk.js +23 -0
- package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
- package/dist/components/compiler.js +2 -0
- package/dist/components/core.js +845 -0
- package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
- package/dist/components/cpp.js +225 -0
- package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
- package/dist/components/csharp.js +260 -0
- package/dist/components/css.js +140 -0
- package/dist/components/cytoscape.esm.js +18114 -0
- package/dist/components/da-DK-5WZEPLOC.js +523 -0
- package/dist/components/dagre-BM42HDAG.js +325 -0
- package/dist/components/dagre.js +1936 -0
- package/dist/components/de-DE-XR44H4JA.js +523 -0
- package/dist/components/defaultLocale.js +201 -0
- package/dist/components/defineProperty.js +50 -0
- package/dist/components/diagram-2AECGRRQ.js +229 -0
- package/dist/components/diagram-5GNKFQAL.js +108 -0
- package/dist/components/diagram-KO2AKTUF.js +443 -0
- package/dist/components/diagram-LMA3HP47.js +139 -0
- package/dist/components/diagram-OG6HWLK6.js +541 -0
- package/dist/components/diff.js +39 -0
- package/dist/components/directory-open-01563666.js +26 -0
- package/dist/components/directory-open-4ed118d0.js +83 -0
- package/dist/components/dist.js +50 -0
- package/dist/components/dist2.js +3291 -0
- package/dist/components/dist3.js +1593 -0
- package/dist/components/documentSearch.js +378 -0
- package/dist/components/docx-preview.js +3113 -0
- package/dist/components/drawing.js +19 -0
- package/dist/components/ebook.js +16 -0
- package/dist/components/eda.js +20 -0
- package/dist/components/el-GR-BZB4AONW.js +523 -0
- package/dist/components/email.js +21 -0
- package/dist/components/en-B4ZKOASM.js +3 -0
- package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
- package/dist/components/es-ES-U4NZUMDT.js +523 -0
- package/dist/components/eu-ES-A7QVB2H4.js +523 -0
- package/dist/components/eventmodeling-FCH6USID.js +3 -0
- package/dist/components/fa-IR-HGAKTJCU.js +523 -0
- package/dist/components/fflate.module.js +323 -0
- package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
- package/dist/components/file-open-002ab408.js +38 -0
- package/dist/components/file-open-7c801643.js +24 -0
- package/dist/components/file-save-3189631c.js +40 -0
- package/dist/components/file-save-745eba88.js +36 -0
- package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
- package/dist/components/fr-FR-RHASNOE6.js +523 -0
- package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
- package/dist/components/gitGraph-WXDBUCRP.js +3 -0
- package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
- package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
- package/dist/components/global-compiler.js +23 -0
- package/dist/components/global-renderer.js +23 -0
- package/dist/components/go.js +140 -0
- package/dist/components/graphlib.js +1267 -0
- package/dist/components/he-IL-6SHJWFNN.js +523 -0
- package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
- package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
- package/dist/components/id-ID-SAP4L64H.js +523 -0
- package/dist/components/image-GAAHSSAO.js +3 -0
- package/dist/components/image-blob-reduce.esm.js +1429 -0
- package/dist/components/image.js +17 -0
- package/dist/components/info-J43DQDTF.js +3 -0
- package/dist/components/infoDiagram-5YYISTIA.js +26 -0
- package/dist/components/ini.js +88 -0
- package/dist/components/init.js +15 -0
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
- package/dist/components/it-IT-JPQ66NNP.js +523 -0
- package/dist/components/ja-JP-DBVTYXUO.js +523 -0
- package/dist/components/java.js +169 -0
- package/dist/components/javascript.js +436 -0
- package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
- package/dist/components/json.js +36 -0
- package/dist/components/jszip.min.js +3033 -0
- package/dist/components/kaa-6HZHGXH3.js +523 -0
- package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
- package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
- package/dist/components/katex.js +21979 -0
- package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
- package/dist/components/km-KH-HSX4SM5Z.js +523 -0
- package/dist/components/ko-KR-MTYHY66A.js +523 -0
- package/dist/components/ku-TR-6OUDTVRD.js +523 -0
- package/dist/components/lib.js +4877 -0
- package/dist/components/libarchive.js +360 -0
- package/dist/components/linear.js +289 -0
- package/dist/components/lt-LT-XHIRWOB4.js +523 -0
- package/dist/components/lv-LV-5QDEKY6T.js +523 -0
- package/dist/components/markdown.js +181 -0
- package/dist/components/md.js +17 -0
- package/dist/components/mermaid-parser.core.js +328 -0
- package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
- package/dist/components/model.js +21 -0
- package/dist/components/mp4.js +12 -0
- package/dist/components/mr-IN-CRQNXWMA.js +523 -0
- package/dist/components/my-MM-5M5IBNSE.js +523 -0
- package/dist/components/nb-NO-T6EIAALU.js +523 -0
- package/dist/components/nestedRender.js +158 -0
- package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
- package/dist/components/nn-NO-6E72VCQL.js +523 -0
- package/dist/components/objectSpread2.js +29 -0
- package/dist/components/objectWithoutProperties.js +28 -0
- package/dist/components/oc-FR-POXYY2M6.js +523 -0
- package/dist/components/ofd.js +5261 -0
- package/dist/components/ofd2.js +16 -0
- package/dist/components/ordinal.js +65 -0
- package/dist/components/pa-IN-N4M65BXN.js +523 -0
- package/dist/components/packet-YPE3B663.js +3 -0
- package/dist/components/pdf.js +24 -0
- package/dist/components/percentages-BXMCSKIN.js +3 -0
- package/dist/components/php.js +294 -0
- package/dist/components/pica.js +1009 -0
- package/dist/components/pie-LRSECV5Y.js +3 -0
- package/dist/components/pie.js +47 -0
- package/dist/components/pieDiagram-4H26LBE5.js +130 -0
- package/dist/components/pl-PL-T2D74RX3.js +523 -0
- package/dist/components/postal-mime.js +3146 -0
- package/dist/components/pptx.js +15 -0
- package/dist/components/printLayout.js +42 -0
- package/dist/components/prod.js +21770 -0
- package/dist/components/pt-BR-5N22H2LF.js +523 -0
- package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
- package/dist/components/python.js +238 -0
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
- package/dist/components/radar-GUYGQ44K.js +3 -0
- package/dist/components/renderer.js +2 -0
- package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
- package/dist/components/ro-RO-JPDTUUEW.js +523 -0
- package/dist/components/rough.esm.js +1355 -0
- package/dist/components/roundRect.js +90 -0
- package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
- package/dist/components/rust.js +169 -0
- package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
- package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
- package/dist/components/shared.js +175 -0
- package/dist/components/shared2.js +4 -0
- package/dist/components/si-LK-N5RQ5JYF.js +523 -0
- package/dist/components/sk-SK-C5VTKIMK.js +523 -0
- package/dist/components/sl-SI-NN7IZMDC.js +523 -0
- package/dist/components/sourceLoading.js +134 -0
- package/dist/components/sql.js +118 -0
- package/dist/components/src.js +2664 -0
- package/dist/components/src2.js +10722 -0
- package/dist/components/stateDiagram-AJRCARHV.js +217 -0
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
- package/dist/components/subset-shared.chunk.js +3 -0
- package/dist/components/subset-worker.chunk.js +21 -0
- package/dist/components/sv-SE-XGPEYMSR.js +523 -0
- package/dist/components/ta-IN-2NMHFXQM.js +523 -0
- package/dist/components/text.js +20 -0
- package/dist/components/th-TH-HPSO5L25.js +523 -0
- package/dist/components/three.module.js +13134 -0
- package/dist/components/time.js +910 -0
- package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
- package/dist/components/tr-TR-DEFEU3FU.js +523 -0
- package/dist/components/treeView-BLDUP644.js +3 -0
- package/dist/components/treemap-LRROVOQU.js +3 -0
- package/dist/components/typescript.js +521 -0
- package/dist/components/typst.js +25 -0
- package/dist/components/uk-UA-QMV73CPH.js +523 -0
- package/dist/components/umd.js +16 -0
- package/dist/components/use.js +422 -0
- package/dist/components/util.js +49 -0
- package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
- package/dist/components/vi-VN-M7AON7JQ.js +523 -0
- package/dist/components/viewerZoom.js +92 -0
- package/dist/components/wardley-L42UT6IY.js +3 -0
- package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
- package/dist/components/wasm-pack-shim.js +1711 -0
- package/dist/components/wasm-pack-shim2.js +934 -0
- package/dist/components/wasm.js +97 -0
- package/dist/components/word.js +3055 -0
- package/dist/components/worker-ref.js +15 -20
- package/dist/components/xlsx.js +21 -0
- package/dist/components/xml.js +166 -0
- package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
- package/dist/components/yaml.js +144 -0
- package/dist/components/zh-CN-LNUGB5OW.js +523 -0
- package/dist/components/zh-HK-E62DVLB3.js +523 -0
- package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
- package/dist/file-viewer3.css +2 -0
- package/dist/index.mjs +3292 -5
- package/dist/src/App.vue.d.ts +3 -0
- package/dist/src/compare/CompareApp.vue.d.ts +3 -0
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
- package/dist/src/components/HelloWorld.vue.d.ts +3 -0
- package/dist/src/components/utils.d.ts +4 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +27 -0
- package/dist/src/package/common/printLayout.d.ts +16 -0
- package/dist/src/package/common/sourceLoading.d.ts +10 -0
- package/dist/src/package/common/type.d.ts +522 -8
- package/dist/src/package/common/worker-ref.d.ts +1 -1
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
- package/dist/src/package/components/FileViewer/index.d.ts +1 -1
- package/dist/src/package/components/FileViewer/util.d.ts +2 -1
- package/dist/src/package/index.d.ts +14 -4
- package/dist/src/package/use/documentLocation.d.ts +15 -0
- package/dist/src/package/use/documentSearch.d.ts +234 -0
- package/dist/src/package/use/index.d.ts +4 -0
- package/dist/src/package/use/loading.d.ts +33 -0
- package/dist/src/package/use/viewerZoom.d.ts +42 -0
- package/dist/src/package/use/worker.d.ts +2 -2
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/archive/cache.d.ts +10 -0
- package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
- package/dist/src/package/vendors/archive/index.d.ts +3 -0
- package/dist/src/package/vendors/archive/shared.d.ts +24 -0
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
- package/dist/src/package/vendors/audio/index.d.ts +7 -0
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/cad/index.d.ts +8 -0
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/drawing/index.d.ts +7 -0
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ebook/index.d.ts +7 -0
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/eda/index.d.ts +2 -0
- package/dist/src/package/vendors/eda/parser.d.ts +77 -0
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
- package/dist/src/package/vendors/email/index.d.ts +2 -0
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/image/index.d.ts +1 -1
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/md/index.d.ts +1 -1
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/model/index.d.ts +3 -0
- package/dist/src/package/vendors/model/shared.d.ts +1 -0
- package/dist/src/package/vendors/nestedRender.d.ts +10 -0
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ofd/index.d.ts +7 -0
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
- package/dist/src/package/vendors/pdf/index.d.ts +2 -1
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
- package/dist/src/package/vendors/pptx/index.d.ts +1 -1
- package/dist/src/package/vendors/renders.d.ts +1 -1
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
- package/dist/src/package/vendors/text/index.d.ts +6 -2
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/typst/index.d.ts +8 -0
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/umd/index.d.ts +7 -0
- package/dist/src/package/vendors/umd/parser.d.ts +30 -0
- package/dist/src/package/vendors/word/doc.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
- package/dist/src/package/vendors/word/index.d.ts +3 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
- package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
- package/dist/style.css +1 -57
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +24 -0
- package/dist/wasm/cad/libredwg-web.js +15 -0
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
- package/package.json +118 -42
- package/.vscode/extensions.json +0 -3
- package/dist/components/_commonjs-dynamic-modules.js +0 -6
- package/dist/components/_commonjsHelpers.js +0 -36
- package/dist/components/docx-preview.min.js +0 -5287
- package/dist/components/index.js +0 -1717
- package/dist/favicon.ico +0 -0
- package/dist/index.umd.js +0 -436
- package/dist/src/package/vendors/docx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
- package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
- package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
- package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
- package/dist/worker/pdf.worker.js +0 -66
- package/dist/worker/pptx.worker.js +0 -21
- package/dist/worker/sheet.worker.js +0 -38
- package/dist/worker/xlsx.worker.js +0 -65
- /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
- /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
|
@@ -0,0 +1,986 @@
|
|
|
1
|
+
import { n as e, t } from "./asyncToGenerator.js";
|
|
2
|
+
import { n, r } from "./chunk-AGHRB4JF.js";
|
|
3
|
+
import { J as i, et as a, f as o, rt as s, tt as c, x as l, z as u } from "./chunk-CSCIHK7Q.js";
|
|
4
|
+
import "./chunk-5ZQYHXKU.js";
|
|
5
|
+
import { t as d } from "./chunk-WU5MYG2G.js";
|
|
6
|
+
import { n as f, t as p } from "./chunk-XPW4576I.js";
|
|
7
|
+
import "./chunk-L5ZTLDWV.js";
|
|
8
|
+
import "./chunk-NZK2D7GU.js";
|
|
9
|
+
import "./chunk-O5CBEL6O.js";
|
|
10
|
+
import { a as m, c as h, i as g } from "./chunk-3OPIFGDE.js";
|
|
11
|
+
import { t as _ } from "./chunk-FMBD7UC4.js";
|
|
12
|
+
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UN3LZRKU.mjs
|
|
13
|
+
e();
|
|
14
|
+
var v = (function() {
|
|
15
|
+
var e = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
16
|
+
for (n = n || {}, r = e.length; r--; n[e[r]] = t);
|
|
17
|
+
return n;
|
|
18
|
+
}, "o"), t = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
|
|
19
|
+
6,
|
|
20
|
+
7,
|
|
21
|
+
8
|
|
22
|
+
], u = [1, 26], d = [1, 24], f = [1, 25], p = [
|
|
23
|
+
6,
|
|
24
|
+
7,
|
|
25
|
+
11
|
|
26
|
+
], m = [1, 31], h = [
|
|
27
|
+
6,
|
|
28
|
+
7,
|
|
29
|
+
11,
|
|
30
|
+
24
|
|
31
|
+
], g = [
|
|
32
|
+
1,
|
|
33
|
+
6,
|
|
34
|
+
13,
|
|
35
|
+
16,
|
|
36
|
+
17,
|
|
37
|
+
20,
|
|
38
|
+
23
|
|
39
|
+
], _ = [1, 35], v = [1, 36], y = [
|
|
40
|
+
1,
|
|
41
|
+
6,
|
|
42
|
+
7,
|
|
43
|
+
11,
|
|
44
|
+
13,
|
|
45
|
+
16,
|
|
46
|
+
17,
|
|
47
|
+
20,
|
|
48
|
+
23
|
|
49
|
+
], b = [1, 38], x = {
|
|
50
|
+
trace: /* @__PURE__ */ n(function() {}, "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__ */ n(function(e, t, n, r, i, a, o) {
|
|
129
|
+
var s = a.length - 1;
|
|
130
|
+
switch (i) {
|
|
131
|
+
case 6:
|
|
132
|
+
case 7: return r;
|
|
133
|
+
case 8:
|
|
134
|
+
r.getLogger().trace("Stop NL ");
|
|
135
|
+
break;
|
|
136
|
+
case 9:
|
|
137
|
+
r.getLogger().trace("Stop EOF ");
|
|
138
|
+
break;
|
|
139
|
+
case 11:
|
|
140
|
+
r.getLogger().trace("Stop NL2 ");
|
|
141
|
+
break;
|
|
142
|
+
case 12:
|
|
143
|
+
r.getLogger().trace("Stop EOF2 ");
|
|
144
|
+
break;
|
|
145
|
+
case 15:
|
|
146
|
+
r.getLogger().info("Node: ", a[s - 1].id), r.addNode(a[s - 2].length, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
|
|
147
|
+
break;
|
|
148
|
+
case 16:
|
|
149
|
+
r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
|
|
150
|
+
break;
|
|
151
|
+
case 17:
|
|
152
|
+
r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
|
|
153
|
+
break;
|
|
154
|
+
case 18:
|
|
155
|
+
case 23:
|
|
156
|
+
r.decorateNode({ class: a[s] });
|
|
157
|
+
break;
|
|
158
|
+
case 19:
|
|
159
|
+
r.getLogger().trace("SPACELIST");
|
|
160
|
+
break;
|
|
161
|
+
case 20:
|
|
162
|
+
r.getLogger().trace("Node: ", a[s - 1].id), r.addNode(0, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
|
|
163
|
+
break;
|
|
164
|
+
case 21:
|
|
165
|
+
r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
|
|
166
|
+
break;
|
|
167
|
+
case 22:
|
|
168
|
+
r.decorateNode({ icon: a[s] });
|
|
169
|
+
break;
|
|
170
|
+
case 27:
|
|
171
|
+
r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
|
|
172
|
+
id: a[s - 1],
|
|
173
|
+
descr: a[s - 1],
|
|
174
|
+
type: r.getType(a[s - 2], a[s])
|
|
175
|
+
};
|
|
176
|
+
break;
|
|
177
|
+
case 28:
|
|
178
|
+
this.$ = {
|
|
179
|
+
id: a[s],
|
|
180
|
+
descr: a[s],
|
|
181
|
+
type: 0
|
|
182
|
+
};
|
|
183
|
+
break;
|
|
184
|
+
case 29:
|
|
185
|
+
r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
|
|
186
|
+
id: a[s - 3],
|
|
187
|
+
descr: a[s - 1],
|
|
188
|
+
type: r.getType(a[s - 2], a[s])
|
|
189
|
+
};
|
|
190
|
+
break;
|
|
191
|
+
case 30:
|
|
192
|
+
this.$ = a[s - 1] + a[s];
|
|
193
|
+
break;
|
|
194
|
+
case 31:
|
|
195
|
+
this.$ = a[s];
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
}, "anonymous"),
|
|
199
|
+
table: [
|
|
200
|
+
{
|
|
201
|
+
3: 1,
|
|
202
|
+
4: 2,
|
|
203
|
+
5: 3,
|
|
204
|
+
6: [1, 5],
|
|
205
|
+
8: t
|
|
206
|
+
},
|
|
207
|
+
{ 1: [3] },
|
|
208
|
+
{ 1: [2, 1] },
|
|
209
|
+
{
|
|
210
|
+
4: 6,
|
|
211
|
+
6: [1, 7],
|
|
212
|
+
7: [1, 8],
|
|
213
|
+
8: t
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
6: r,
|
|
217
|
+
7: [1, 10],
|
|
218
|
+
9: 9,
|
|
219
|
+
12: 11,
|
|
220
|
+
13: i,
|
|
221
|
+
14: 14,
|
|
222
|
+
16: a,
|
|
223
|
+
17: o,
|
|
224
|
+
18: 17,
|
|
225
|
+
19: 18,
|
|
226
|
+
20: s,
|
|
227
|
+
23: c
|
|
228
|
+
},
|
|
229
|
+
e(l, [2, 3]),
|
|
230
|
+
{ 1: [2, 2] },
|
|
231
|
+
e(l, [2, 4]),
|
|
232
|
+
e(l, [2, 5]),
|
|
233
|
+
{
|
|
234
|
+
1: [2, 6],
|
|
235
|
+
6: r,
|
|
236
|
+
12: 21,
|
|
237
|
+
13: i,
|
|
238
|
+
14: 14,
|
|
239
|
+
16: a,
|
|
240
|
+
17: o,
|
|
241
|
+
18: 17,
|
|
242
|
+
19: 18,
|
|
243
|
+
20: s,
|
|
244
|
+
23: c
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
6: r,
|
|
248
|
+
9: 22,
|
|
249
|
+
12: 11,
|
|
250
|
+
13: i,
|
|
251
|
+
14: 14,
|
|
252
|
+
16: a,
|
|
253
|
+
17: o,
|
|
254
|
+
18: 17,
|
|
255
|
+
19: 18,
|
|
256
|
+
20: s,
|
|
257
|
+
23: c
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
6: u,
|
|
261
|
+
7: d,
|
|
262
|
+
10: 23,
|
|
263
|
+
11: f
|
|
264
|
+
},
|
|
265
|
+
e(p, [2, 24], {
|
|
266
|
+
18: 17,
|
|
267
|
+
19: 18,
|
|
268
|
+
14: 27,
|
|
269
|
+
16: [1, 28],
|
|
270
|
+
17: [1, 29],
|
|
271
|
+
20: s,
|
|
272
|
+
23: c
|
|
273
|
+
}),
|
|
274
|
+
e(p, [2, 19]),
|
|
275
|
+
e(p, [2, 21], {
|
|
276
|
+
15: 30,
|
|
277
|
+
24: m
|
|
278
|
+
}),
|
|
279
|
+
e(p, [2, 22]),
|
|
280
|
+
e(p, [2, 23]),
|
|
281
|
+
e(h, [2, 25]),
|
|
282
|
+
e(h, [2, 26]),
|
|
283
|
+
e(h, [2, 28], { 20: [1, 32] }),
|
|
284
|
+
{ 21: [1, 33] },
|
|
285
|
+
{
|
|
286
|
+
6: u,
|
|
287
|
+
7: d,
|
|
288
|
+
10: 34,
|
|
289
|
+
11: f
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
1: [2, 7],
|
|
293
|
+
6: r,
|
|
294
|
+
12: 21,
|
|
295
|
+
13: i,
|
|
296
|
+
14: 14,
|
|
297
|
+
16: a,
|
|
298
|
+
17: o,
|
|
299
|
+
18: 17,
|
|
300
|
+
19: 18,
|
|
301
|
+
20: s,
|
|
302
|
+
23: c
|
|
303
|
+
},
|
|
304
|
+
e(g, [2, 14], {
|
|
305
|
+
7: _,
|
|
306
|
+
11: v
|
|
307
|
+
}),
|
|
308
|
+
e(y, [2, 8]),
|
|
309
|
+
e(y, [2, 9]),
|
|
310
|
+
e(y, [2, 10]),
|
|
311
|
+
e(p, [2, 16], {
|
|
312
|
+
15: 37,
|
|
313
|
+
24: m
|
|
314
|
+
}),
|
|
315
|
+
e(p, [2, 17]),
|
|
316
|
+
e(p, [2, 18]),
|
|
317
|
+
e(p, [2, 20], { 24: b }),
|
|
318
|
+
e(h, [2, 31]),
|
|
319
|
+
{ 21: [1, 39] },
|
|
320
|
+
{ 22: [1, 40] },
|
|
321
|
+
e(g, [2, 13], {
|
|
322
|
+
7: _,
|
|
323
|
+
11: v
|
|
324
|
+
}),
|
|
325
|
+
e(y, [2, 11]),
|
|
326
|
+
e(y, [2, 12]),
|
|
327
|
+
e(p, [2, 15], { 24: b }),
|
|
328
|
+
e(h, [2, 30]),
|
|
329
|
+
{ 22: [1, 41] },
|
|
330
|
+
e(h, [2, 27]),
|
|
331
|
+
e(h, [2, 29])
|
|
332
|
+
],
|
|
333
|
+
defaultActions: {
|
|
334
|
+
2: [2, 1],
|
|
335
|
+
6: [2, 2]
|
|
336
|
+
},
|
|
337
|
+
parseError: /* @__PURE__ */ n(function(e, t) {
|
|
338
|
+
if (t.recoverable) this.trace(e);
|
|
339
|
+
else {
|
|
340
|
+
var n = Error(e);
|
|
341
|
+
throw n.hash = t, n;
|
|
342
|
+
}
|
|
343
|
+
}, "parseError"),
|
|
344
|
+
parse: /* @__PURE__ */ n(function(e) {
|
|
345
|
+
var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
346
|
+
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
347
|
+
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
348
|
+
var v = h.yylloc;
|
|
349
|
+
o.push(v);
|
|
350
|
+
var y = h.options && h.options.ranges;
|
|
351
|
+
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
352
|
+
function b(e) {
|
|
353
|
+
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
354
|
+
}
|
|
355
|
+
n(b, "popStack");
|
|
356
|
+
function x() {
|
|
357
|
+
var e = i.pop() || h.lex() || p;
|
|
358
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
|
|
359
|
+
}
|
|
360
|
+
n(x, "lex");
|
|
361
|
+
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
362
|
+
if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
363
|
+
var M = "";
|
|
364
|
+
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
365
|
+
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
366
|
+
text: h.match,
|
|
367
|
+
token: this.terminals_[S] || S,
|
|
368
|
+
line: h.yylineno,
|
|
369
|
+
loc: v,
|
|
370
|
+
expected: j
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
374
|
+
switch (T[0]) {
|
|
375
|
+
case 1:
|
|
376
|
+
r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
377
|
+
break;
|
|
378
|
+
case 2:
|
|
379
|
+
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
380
|
+
first_line: o[o.length - (k || 1)].first_line,
|
|
381
|
+
last_line: o[o.length - 1].last_line,
|
|
382
|
+
first_column: o[o.length - (k || 1)].first_column,
|
|
383
|
+
last_column: o[o.length - 1].last_column
|
|
384
|
+
}, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
385
|
+
c,
|
|
386
|
+
u,
|
|
387
|
+
l,
|
|
388
|
+
g.yy,
|
|
389
|
+
T[1],
|
|
390
|
+
a,
|
|
391
|
+
o
|
|
392
|
+
].concat(m)), E !== void 0) return E;
|
|
393
|
+
k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
|
|
394
|
+
break;
|
|
395
|
+
case 3: return !0;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return !0;
|
|
399
|
+
}, "parse")
|
|
400
|
+
};
|
|
401
|
+
x.lexer = /* @__PURE__ */ (function() {
|
|
402
|
+
return {
|
|
403
|
+
EOF: 1,
|
|
404
|
+
parseError: /* @__PURE__ */ n(function(e, t) {
|
|
405
|
+
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
406
|
+
else throw Error(e);
|
|
407
|
+
}, "parseError"),
|
|
408
|
+
setInput: /* @__PURE__ */ n(function(e, t) {
|
|
409
|
+
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
410
|
+
first_line: 1,
|
|
411
|
+
first_column: 0,
|
|
412
|
+
last_line: 1,
|
|
413
|
+
last_column: 0
|
|
414
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
415
|
+
}, "setInput"),
|
|
416
|
+
input: /* @__PURE__ */ n(function() {
|
|
417
|
+
var e = this._input[0];
|
|
418
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
|
|
419
|
+
}, "input"),
|
|
420
|
+
unput: /* @__PURE__ */ n(function(e) {
|
|
421
|
+
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
422
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
423
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
424
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
425
|
+
var i = this.yylloc.range;
|
|
426
|
+
return this.yylloc = {
|
|
427
|
+
first_line: this.yylloc.first_line,
|
|
428
|
+
last_line: this.yylineno + 1,
|
|
429
|
+
first_column: this.yylloc.first_column,
|
|
430
|
+
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
431
|
+
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
432
|
+
}, "unput"),
|
|
433
|
+
more: /* @__PURE__ */ n(function() {
|
|
434
|
+
return this._more = !0, this;
|
|
435
|
+
}, "more"),
|
|
436
|
+
reject: /* @__PURE__ */ n(function() {
|
|
437
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
438
|
+
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).\n" + this.showPosition(), {
|
|
439
|
+
text: "",
|
|
440
|
+
token: null,
|
|
441
|
+
line: this.yylineno
|
|
442
|
+
});
|
|
443
|
+
return this;
|
|
444
|
+
}, "reject"),
|
|
445
|
+
less: /* @__PURE__ */ n(function(e) {
|
|
446
|
+
this.unput(this.match.slice(e));
|
|
447
|
+
}, "less"),
|
|
448
|
+
pastInput: /* @__PURE__ */ n(function() {
|
|
449
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
450
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
451
|
+
}, "pastInput"),
|
|
452
|
+
upcomingInput: /* @__PURE__ */ n(function() {
|
|
453
|
+
var e = this.match;
|
|
454
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
455
|
+
}, "upcomingInput"),
|
|
456
|
+
showPosition: /* @__PURE__ */ n(function() {
|
|
457
|
+
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
458
|
+
return e + this.upcomingInput() + "\n" + t + "^";
|
|
459
|
+
}, "showPosition"),
|
|
460
|
+
test_match: /* @__PURE__ */ n(function(e, t) {
|
|
461
|
+
var n, r, i;
|
|
462
|
+
if (this.options.backtrack_lexer && (i = {
|
|
463
|
+
yylineno: this.yylineno,
|
|
464
|
+
yylloc: {
|
|
465
|
+
first_line: this.yylloc.first_line,
|
|
466
|
+
last_line: this.last_line,
|
|
467
|
+
first_column: this.yylloc.first_column,
|
|
468
|
+
last_column: this.yylloc.last_column
|
|
469
|
+
},
|
|
470
|
+
yytext: this.yytext,
|
|
471
|
+
match: this.match,
|
|
472
|
+
matches: this.matches,
|
|
473
|
+
matched: this.matched,
|
|
474
|
+
yyleng: this.yyleng,
|
|
475
|
+
offset: this.offset,
|
|
476
|
+
_more: this._more,
|
|
477
|
+
_input: this._input,
|
|
478
|
+
yy: this.yy,
|
|
479
|
+
conditionStack: this.conditionStack.slice(0),
|
|
480
|
+
done: this.done
|
|
481
|
+
}, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
482
|
+
first_line: this.yylloc.last_line,
|
|
483
|
+
last_line: this.yylineno + 1,
|
|
484
|
+
first_column: this.yylloc.last_column,
|
|
485
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
486
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
487
|
+
if (this._backtrack) {
|
|
488
|
+
for (var a in i) this[a] = i[a];
|
|
489
|
+
return !1;
|
|
490
|
+
}
|
|
491
|
+
return !1;
|
|
492
|
+
}, "test_match"),
|
|
493
|
+
next: /* @__PURE__ */ n(function() {
|
|
494
|
+
if (this.done) return this.EOF;
|
|
495
|
+
this._input || (this.done = !0);
|
|
496
|
+
var e, t, n, r;
|
|
497
|
+
this._more || (this.yytext = "", this.match = "");
|
|
498
|
+
for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
|
|
499
|
+
if (t = n, r = a, this.options.backtrack_lexer) {
|
|
500
|
+
if (e = this.test_match(n, i[a]), e !== !1) return e;
|
|
501
|
+
if (this._backtrack) {
|
|
502
|
+
t = !1;
|
|
503
|
+
continue;
|
|
504
|
+
} else return !1;
|
|
505
|
+
} else if (!this.options.flex) break;
|
|
506
|
+
}
|
|
507
|
+
return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
508
|
+
text: "",
|
|
509
|
+
token: null,
|
|
510
|
+
line: this.yylineno
|
|
511
|
+
});
|
|
512
|
+
}, "next"),
|
|
513
|
+
lex: /* @__PURE__ */ n(function() {
|
|
514
|
+
return this.next() || this.lex();
|
|
515
|
+
}, "lex"),
|
|
516
|
+
begin: /* @__PURE__ */ n(function(e) {
|
|
517
|
+
this.conditionStack.push(e);
|
|
518
|
+
}, "begin"),
|
|
519
|
+
popState: /* @__PURE__ */ n(function() {
|
|
520
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
521
|
+
}, "popState"),
|
|
522
|
+
_currentRules: /* @__PURE__ */ n(function() {
|
|
523
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
524
|
+
}, "_currentRules"),
|
|
525
|
+
topState: /* @__PURE__ */ n(function(e) {
|
|
526
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
527
|
+
}, "topState"),
|
|
528
|
+
pushState: /* @__PURE__ */ n(function(e) {
|
|
529
|
+
this.begin(e);
|
|
530
|
+
}, "pushState"),
|
|
531
|
+
stateStackSize: /* @__PURE__ */ n(function() {
|
|
532
|
+
return this.conditionStack.length;
|
|
533
|
+
}, "stateStackSize"),
|
|
534
|
+
options: { "case-insensitive": !0 },
|
|
535
|
+
performAction: /* @__PURE__ */ n(function(e, t, n, r) {
|
|
536
|
+
switch (n) {
|
|
537
|
+
case 0: return this.pushState("shapeData"), t.yytext = "", 24;
|
|
538
|
+
case 1: return this.pushState("shapeDataStr"), 24;
|
|
539
|
+
case 2: return this.popState(), 24;
|
|
540
|
+
case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
|
|
541
|
+
case 4: return 24;
|
|
542
|
+
case 5:
|
|
543
|
+
this.popState();
|
|
544
|
+
break;
|
|
545
|
+
case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
|
|
546
|
+
case 7: return 8;
|
|
547
|
+
case 8:
|
|
548
|
+
this.begin("CLASS");
|
|
549
|
+
break;
|
|
550
|
+
case 9: return this.popState(), 17;
|
|
551
|
+
case 10:
|
|
552
|
+
this.popState();
|
|
553
|
+
break;
|
|
554
|
+
case 11:
|
|
555
|
+
e.getLogger().trace("Begin icon"), this.begin("ICON");
|
|
556
|
+
break;
|
|
557
|
+
case 12: return e.getLogger().trace("SPACELINE"), 6;
|
|
558
|
+
case 13: return 7;
|
|
559
|
+
case 14: return 16;
|
|
560
|
+
case 15:
|
|
561
|
+
e.getLogger().trace("end icon"), this.popState();
|
|
562
|
+
break;
|
|
563
|
+
case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
|
|
564
|
+
case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
|
|
565
|
+
case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
|
|
566
|
+
case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
|
|
567
|
+
case 20: return this.begin("NODE"), 20;
|
|
568
|
+
case 21: return this.begin("NODE"), 20;
|
|
569
|
+
case 22: return this.begin("NODE"), 20;
|
|
570
|
+
case 23: return this.begin("NODE"), 20;
|
|
571
|
+
case 24: return 13;
|
|
572
|
+
case 25: return 23;
|
|
573
|
+
case 26: return 11;
|
|
574
|
+
case 27:
|
|
575
|
+
this.begin("NSTR2");
|
|
576
|
+
break;
|
|
577
|
+
case 28: return "NODE_DESCR";
|
|
578
|
+
case 29:
|
|
579
|
+
this.popState();
|
|
580
|
+
break;
|
|
581
|
+
case 30:
|
|
582
|
+
e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
583
|
+
break;
|
|
584
|
+
case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
|
|
585
|
+
case 32:
|
|
586
|
+
this.popState();
|
|
587
|
+
break;
|
|
588
|
+
case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
|
|
589
|
+
case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
|
|
590
|
+
case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
|
|
591
|
+
case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
|
|
592
|
+
case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
|
|
593
|
+
case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
|
|
594
|
+
case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
|
|
595
|
+
case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
|
|
596
|
+
case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
|
|
597
|
+
case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
|
|
598
|
+
}
|
|
599
|
+
}, "anonymous"),
|
|
600
|
+
rules: [
|
|
601
|
+
/^(?:@\{)/i,
|
|
602
|
+
/^(?:["])/i,
|
|
603
|
+
/^(?:["])/i,
|
|
604
|
+
/^(?:[^\"]+)/i,
|
|
605
|
+
/^(?:[^}^"]+)/i,
|
|
606
|
+
/^(?:\})/i,
|
|
607
|
+
/^(?:\s*%%.*)/i,
|
|
608
|
+
/^(?:kanban\b)/i,
|
|
609
|
+
/^(?::::)/i,
|
|
610
|
+
/^(?:.+)/i,
|
|
611
|
+
/^(?:\n)/i,
|
|
612
|
+
/^(?:::icon\()/i,
|
|
613
|
+
/^(?:[\s]+[\n])/i,
|
|
614
|
+
/^(?:[\n]+)/i,
|
|
615
|
+
/^(?:[^\)]+)/i,
|
|
616
|
+
/^(?:\))/i,
|
|
617
|
+
/^(?:-\))/i,
|
|
618
|
+
/^(?:\(-)/i,
|
|
619
|
+
/^(?:\)\))/i,
|
|
620
|
+
/^(?:\))/i,
|
|
621
|
+
/^(?:\(\()/i,
|
|
622
|
+
/^(?:\{\{)/i,
|
|
623
|
+
/^(?:\()/i,
|
|
624
|
+
/^(?:\[)/i,
|
|
625
|
+
/^(?:[\s]+)/i,
|
|
626
|
+
/^(?:[^\(\[\n\)\{\}@]+)/i,
|
|
627
|
+
/^(?:$)/i,
|
|
628
|
+
/^(?:["][`])/i,
|
|
629
|
+
/^(?:[^`"]+)/i,
|
|
630
|
+
/^(?:[`]["])/i,
|
|
631
|
+
/^(?:["])/i,
|
|
632
|
+
/^(?:[^"]+)/i,
|
|
633
|
+
/^(?:["])/i,
|
|
634
|
+
/^(?:[\)]\))/i,
|
|
635
|
+
/^(?:[\)])/i,
|
|
636
|
+
/^(?:[\]])/i,
|
|
637
|
+
/^(?:\}\})/i,
|
|
638
|
+
/^(?:\(-)/i,
|
|
639
|
+
/^(?:-\))/i,
|
|
640
|
+
/^(?:\(\()/i,
|
|
641
|
+
/^(?:\()/i,
|
|
642
|
+
/^(?:[^\)\]\(\}]+)/i,
|
|
643
|
+
/^(?:.+(?!\(\())/i
|
|
644
|
+
],
|
|
645
|
+
conditions: {
|
|
646
|
+
shapeDataEndBracket: {
|
|
647
|
+
rules: [],
|
|
648
|
+
inclusive: !1
|
|
649
|
+
},
|
|
650
|
+
shapeDataStr: {
|
|
651
|
+
rules: [2, 3],
|
|
652
|
+
inclusive: !1
|
|
653
|
+
},
|
|
654
|
+
shapeData: {
|
|
655
|
+
rules: [
|
|
656
|
+
1,
|
|
657
|
+
4,
|
|
658
|
+
5
|
|
659
|
+
],
|
|
660
|
+
inclusive: !1
|
|
661
|
+
},
|
|
662
|
+
CLASS: {
|
|
663
|
+
rules: [9, 10],
|
|
664
|
+
inclusive: !1
|
|
665
|
+
},
|
|
666
|
+
ICON: {
|
|
667
|
+
rules: [14, 15],
|
|
668
|
+
inclusive: !1
|
|
669
|
+
},
|
|
670
|
+
NSTR2: {
|
|
671
|
+
rules: [28, 29],
|
|
672
|
+
inclusive: !1
|
|
673
|
+
},
|
|
674
|
+
NSTR: {
|
|
675
|
+
rules: [31, 32],
|
|
676
|
+
inclusive: !1
|
|
677
|
+
},
|
|
678
|
+
NODE: {
|
|
679
|
+
rules: [
|
|
680
|
+
27,
|
|
681
|
+
30,
|
|
682
|
+
33,
|
|
683
|
+
34,
|
|
684
|
+
35,
|
|
685
|
+
36,
|
|
686
|
+
37,
|
|
687
|
+
38,
|
|
688
|
+
39,
|
|
689
|
+
40,
|
|
690
|
+
41,
|
|
691
|
+
42
|
|
692
|
+
],
|
|
693
|
+
inclusive: !1
|
|
694
|
+
},
|
|
695
|
+
INITIAL: {
|
|
696
|
+
rules: [
|
|
697
|
+
0,
|
|
698
|
+
6,
|
|
699
|
+
7,
|
|
700
|
+
8,
|
|
701
|
+
11,
|
|
702
|
+
12,
|
|
703
|
+
13,
|
|
704
|
+
16,
|
|
705
|
+
17,
|
|
706
|
+
18,
|
|
707
|
+
19,
|
|
708
|
+
20,
|
|
709
|
+
21,
|
|
710
|
+
22,
|
|
711
|
+
23,
|
|
712
|
+
24,
|
|
713
|
+
25,
|
|
714
|
+
26
|
|
715
|
+
],
|
|
716
|
+
inclusive: !0
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
})();
|
|
721
|
+
function S() {
|
|
722
|
+
this.yy = {};
|
|
723
|
+
}
|
|
724
|
+
return n(S, "Parser"), S.prototype = x, x.Parser = S, new S();
|
|
725
|
+
})();
|
|
726
|
+
v.parser = v;
|
|
727
|
+
var y = v, b = [], x = [], S = 0, C = {}, w = /* @__PURE__ */ n(() => {
|
|
728
|
+
b = [], x = [], S = 0, C = {};
|
|
729
|
+
}, "clear"), T = /* @__PURE__ */ n((e) => {
|
|
730
|
+
if (b.length === 0) return null;
|
|
731
|
+
let t = b[0].level, n = null;
|
|
732
|
+
for (let e = b.length - 1; e >= 0; e--) if (b[e].level === t && !n && (n = b[e]), b[e].level < t) throw Error("Items without section detected, found section (\"" + b[e].label + "\")");
|
|
733
|
+
return e === (n == null ? void 0 : n.level) ? null : n;
|
|
734
|
+
}, "getSection"), E = /* @__PURE__ */ n(function() {
|
|
735
|
+
return x;
|
|
736
|
+
}, "getSections"), D = /* @__PURE__ */ n(function() {
|
|
737
|
+
let e = [], t = [], n = E(), r = l();
|
|
738
|
+
for (let e of n) {
|
|
739
|
+
var i;
|
|
740
|
+
let n = {
|
|
741
|
+
id: e.id,
|
|
742
|
+
label: u((i = e.label) == null ? "" : i, r),
|
|
743
|
+
labelType: "markdown",
|
|
744
|
+
isGroup: !0,
|
|
745
|
+
ticket: e.ticket,
|
|
746
|
+
shape: "kanbanSection",
|
|
747
|
+
level: e.level,
|
|
748
|
+
look: r.look
|
|
749
|
+
};
|
|
750
|
+
t.push(n);
|
|
751
|
+
let o = b.filter((t) => t.parentId === e.id);
|
|
752
|
+
for (let n of o) {
|
|
753
|
+
var a;
|
|
754
|
+
let i = {
|
|
755
|
+
id: n.id,
|
|
756
|
+
parentId: e.id,
|
|
757
|
+
label: u((a = n.label) == null ? "" : a, r),
|
|
758
|
+
labelType: "markdown",
|
|
759
|
+
isGroup: !1,
|
|
760
|
+
ticket: n == null ? void 0 : n.ticket,
|
|
761
|
+
priority: n == null ? void 0 : n.priority,
|
|
762
|
+
assigned: n == null ? void 0 : n.assigned,
|
|
763
|
+
icon: n == null ? void 0 : n.icon,
|
|
764
|
+
shape: "kanbanItem",
|
|
765
|
+
level: n.level,
|
|
766
|
+
rx: 5,
|
|
767
|
+
ry: 5,
|
|
768
|
+
cssStyles: ["text-align: left"]
|
|
769
|
+
};
|
|
770
|
+
t.push(i);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
return {
|
|
774
|
+
nodes: t,
|
|
775
|
+
edges: e,
|
|
776
|
+
other: {},
|
|
777
|
+
config: l()
|
|
778
|
+
};
|
|
779
|
+
}, "getData"), O = /* @__PURE__ */ n((e, t, n, r, i) => {
|
|
780
|
+
var a, s, c, d;
|
|
781
|
+
let m = l(), h = (a = (s = m.mindmap) == null ? void 0 : s.padding) == null ? o.mindmap.padding : a;
|
|
782
|
+
switch (r) {
|
|
783
|
+
case k.ROUNDED_RECT:
|
|
784
|
+
case k.RECT:
|
|
785
|
+
case k.HEXAGON: h *= 2;
|
|
786
|
+
}
|
|
787
|
+
let g = {
|
|
788
|
+
id: u(t, m) || "kbn" + S++,
|
|
789
|
+
level: e,
|
|
790
|
+
label: u(n, m),
|
|
791
|
+
width: (c = (d = m.mindmap) == null ? void 0 : d.maxNodeWidth) == null ? o.mindmap.maxNodeWidth : c,
|
|
792
|
+
padding: h,
|
|
793
|
+
isGroup: !1
|
|
794
|
+
};
|
|
795
|
+
if (i !== void 0) {
|
|
796
|
+
let e;
|
|
797
|
+
e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}";
|
|
798
|
+
let t = f(e, { schema: p });
|
|
799
|
+
if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
|
|
800
|
+
t != null && t.shape && t.shape === "kanbanItem" && (g.shape = t == null ? void 0 : t.shape), t != null && t.label && (g.label = t == null ? void 0 : t.label), t != null && t.icon && (g.icon = t == null ? void 0 : t.icon.toString()), t != null && t.assigned && (g.assigned = t == null ? void 0 : t.assigned.toString()), t != null && t.ticket && (g.ticket = t == null ? void 0 : t.ticket.toString()), t != null && t.priority && (g.priority = t == null ? void 0 : t.priority);
|
|
801
|
+
}
|
|
802
|
+
let _ = T(e);
|
|
803
|
+
_ ? g.parentId = _.id || "kbn" + S++ : x.push(g), b.push(g);
|
|
804
|
+
}, "addNode"), k = {
|
|
805
|
+
DEFAULT: 0,
|
|
806
|
+
NO_BORDER: 0,
|
|
807
|
+
ROUNDED_RECT: 1,
|
|
808
|
+
RECT: 2,
|
|
809
|
+
CIRCLE: 3,
|
|
810
|
+
CLOUD: 4,
|
|
811
|
+
BANG: 5,
|
|
812
|
+
HEXAGON: 6
|
|
813
|
+
}, A = {
|
|
814
|
+
clear: w,
|
|
815
|
+
addNode: O,
|
|
816
|
+
getSections: E,
|
|
817
|
+
getData: D,
|
|
818
|
+
nodeType: k,
|
|
819
|
+
getType: /* @__PURE__ */ n((e, t) => {
|
|
820
|
+
switch (r.debug("In get type", e, t), e) {
|
|
821
|
+
case "[": return k.RECT;
|
|
822
|
+
case "(": return t === ")" ? k.ROUNDED_RECT : k.CLOUD;
|
|
823
|
+
case "((": return k.CIRCLE;
|
|
824
|
+
case ")": return k.CLOUD;
|
|
825
|
+
case "))": return k.BANG;
|
|
826
|
+
case "{{": return k.HEXAGON;
|
|
827
|
+
default: return k.DEFAULT;
|
|
828
|
+
}
|
|
829
|
+
}, "getType"),
|
|
830
|
+
setElementForId: /* @__PURE__ */ n((e, t) => {
|
|
831
|
+
C[e] = t;
|
|
832
|
+
}, "setElementForId"),
|
|
833
|
+
decorateNode: /* @__PURE__ */ n((e) => {
|
|
834
|
+
if (!e) return;
|
|
835
|
+
let t = l(), n = b[b.length - 1];
|
|
836
|
+
e.icon && (n.icon = u(e.icon, t)), e.class && (n.cssClasses = u(e.class, t));
|
|
837
|
+
}, "decorateNode"),
|
|
838
|
+
type2Str: /* @__PURE__ */ n((e) => {
|
|
839
|
+
switch (e) {
|
|
840
|
+
case k.DEFAULT: return "no-border";
|
|
841
|
+
case k.RECT: return "rect";
|
|
842
|
+
case k.ROUNDED_RECT: return "rounded-rect";
|
|
843
|
+
case k.CIRCLE: return "circle";
|
|
844
|
+
case k.CLOUD: return "cloud";
|
|
845
|
+
case k.BANG: return "bang";
|
|
846
|
+
case k.HEXAGON: return "hexgon";
|
|
847
|
+
default: return "no-border";
|
|
848
|
+
}
|
|
849
|
+
}, "type2Str"),
|
|
850
|
+
getLogger: /* @__PURE__ */ n(() => r, "getLogger"),
|
|
851
|
+
getElementById: /* @__PURE__ */ n((e) => C[e], "getElementById")
|
|
852
|
+
}, j = { draw: /* @__PURE__ */ n(function() {
|
|
853
|
+
var e = t(function* (e, t, n, a) {
|
|
854
|
+
var s, c, u, f;
|
|
855
|
+
r.debug("Rendering kanban diagram\n" + e);
|
|
856
|
+
let p = a.db.getData(), _ = l();
|
|
857
|
+
_.htmlLabels = !1;
|
|
858
|
+
let v = d(t);
|
|
859
|
+
for (let e of p.nodes) e.domId = `${t}-${e.id}`;
|
|
860
|
+
let y = v.append("g");
|
|
861
|
+
y.attr("class", "sections");
|
|
862
|
+
let b = v.append("g");
|
|
863
|
+
b.attr("class", "items");
|
|
864
|
+
let x = p.nodes.filter((e) => e.isGroup), S = 0, C = [], w = 25;
|
|
865
|
+
for (let e of x) {
|
|
866
|
+
var T, E;
|
|
867
|
+
let t = (_ == null || (T = _.kanban) == null ? void 0 : T.sectionWidth) || 200;
|
|
868
|
+
S += 1, e.x = t * S + (S - 1) * 10 / 2, e.width = t, e.y = 0, e.height = t * 3, e.rx = 5, e.ry = 5, e.cssClasses = e.cssClasses + " section-" + S;
|
|
869
|
+
let n = yield g(y, e);
|
|
870
|
+
w = Math.max(w, n == null || (E = n.labelBBox) == null ? void 0 : E.height), C.push(n);
|
|
871
|
+
}
|
|
872
|
+
let D = 0;
|
|
873
|
+
for (let e of x) {
|
|
874
|
+
var O;
|
|
875
|
+
let t = C[D];
|
|
876
|
+
D += 1;
|
|
877
|
+
let n = (_ == null || (O = _.kanban) == null ? void 0 : O.sectionWidth) || 200, r = -n * 3 / 2 + w, i = r, a = p.nodes.filter((t) => t.parentId === e.id);
|
|
878
|
+
for (let t of a) {
|
|
879
|
+
if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
|
|
880
|
+
t.x = e.x, t.width = n - 1.5 * 10;
|
|
881
|
+
let r = (yield m(b, t, { config: _ })).node().getBBox();
|
|
882
|
+
t.y = i + r.height / 2, yield h(t), i = t.y + r.height / 2 + 10 / 2;
|
|
883
|
+
}
|
|
884
|
+
let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (w - 25);
|
|
885
|
+
o.attr("height", s);
|
|
886
|
+
}
|
|
887
|
+
i(void 0, v, (s = (c = _.mindmap) == null ? void 0 : c.padding) == null ? o.kanban.padding : s, (u = (f = _.mindmap) == null ? void 0 : f.useMaxWidth) == null ? o.kanban.useMaxWidth : u);
|
|
888
|
+
});
|
|
889
|
+
return function(t, n, r, i) {
|
|
890
|
+
return e.apply(this, arguments);
|
|
891
|
+
};
|
|
892
|
+
}(), "draw") }, M = /* @__PURE__ */ n((e) => {
|
|
893
|
+
let t = "";
|
|
894
|
+
for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], s(e["lineColor" + t]) ? e["lineColor" + t] = c(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
|
|
895
|
+
let r = /* @__PURE__ */ n((t, n) => e.darkMode ? a(t, n) : c(t, n), "adjuster");
|
|
896
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
|
|
897
|
+
let i = "" + (17 - 3 * n);
|
|
898
|
+
t += `
|
|
899
|
+
.section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
|
|
900
|
+
fill: ${r(e["cScale" + n], 10)};
|
|
901
|
+
stroke: ${r(e["cScale" + n], 10)};
|
|
902
|
+
|
|
903
|
+
}
|
|
904
|
+
.section-${n - 1} text {
|
|
905
|
+
fill: ${e["cScaleLabel" + n]};
|
|
906
|
+
}
|
|
907
|
+
.node-icon-${n - 1} {
|
|
908
|
+
font-size: 40px;
|
|
909
|
+
color: ${e["cScaleLabel" + n]};
|
|
910
|
+
}
|
|
911
|
+
.section-edge-${n - 1}{
|
|
912
|
+
stroke: ${e["cScale" + n]};
|
|
913
|
+
}
|
|
914
|
+
.edge-depth-${n - 1}{
|
|
915
|
+
stroke-width: ${i};
|
|
916
|
+
}
|
|
917
|
+
.section-${n - 1} line {
|
|
918
|
+
stroke: ${e["cScaleInv" + n]} ;
|
|
919
|
+
stroke-width: 3;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.disabled, .disabled circle, .disabled text {
|
|
923
|
+
fill: lightgray;
|
|
924
|
+
}
|
|
925
|
+
.disabled text {
|
|
926
|
+
fill: #efefef;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.node rect,
|
|
930
|
+
.node circle,
|
|
931
|
+
.node ellipse,
|
|
932
|
+
.node polygon,
|
|
933
|
+
.node path {
|
|
934
|
+
fill: ${e.background};
|
|
935
|
+
stroke: ${e.nodeBorder};
|
|
936
|
+
stroke-width: 1px;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.kanban-ticket-link {
|
|
940
|
+
fill: ${e.background};
|
|
941
|
+
stroke: ${e.nodeBorder};
|
|
942
|
+
text-decoration: underline;
|
|
943
|
+
}
|
|
944
|
+
`;
|
|
945
|
+
}
|
|
946
|
+
return t;
|
|
947
|
+
}, "genSections"), N = {
|
|
948
|
+
db: A,
|
|
949
|
+
renderer: j,
|
|
950
|
+
parser: y,
|
|
951
|
+
styles: /* @__PURE__ */ n((e) => `
|
|
952
|
+
.edge {
|
|
953
|
+
stroke-width: 3;
|
|
954
|
+
}
|
|
955
|
+
${M(e)}
|
|
956
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
957
|
+
fill: ${e.git0};
|
|
958
|
+
}
|
|
959
|
+
.section-root text {
|
|
960
|
+
fill: ${e.gitBranchLabel0};
|
|
961
|
+
}
|
|
962
|
+
.icon-container {
|
|
963
|
+
height:100%;
|
|
964
|
+
display: flex;
|
|
965
|
+
justify-content: center;
|
|
966
|
+
align-items: center;
|
|
967
|
+
}
|
|
968
|
+
.edge {
|
|
969
|
+
fill: none;
|
|
970
|
+
}
|
|
971
|
+
.cluster-label, .label {
|
|
972
|
+
color: ${e.textColor};
|
|
973
|
+
fill: ${e.textColor};
|
|
974
|
+
}
|
|
975
|
+
.kanban-label {
|
|
976
|
+
dy: 1em;
|
|
977
|
+
alignment-baseline: middle;
|
|
978
|
+
text-anchor: middle;
|
|
979
|
+
dominant-baseline: middle;
|
|
980
|
+
text-align: center;
|
|
981
|
+
}
|
|
982
|
+
${_()}
|
|
983
|
+
`, "getStyles")
|
|
984
|
+
};
|
|
985
|
+
//#endregion
|
|
986
|
+
export { N as diagram };
|