@objectstack/console 9.11.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AdapterProvider-CJjaoZJR.js +1 -0
- package/dist/assets/{AiPendingActionsPage-DBH0IlpT.js → AiPendingActionsPage-B4OLmiXS.js} +1 -1
- package/dist/assets/{ApiConsolePage-BV14INY2.js → ApiConsolePage-D9A9ewr3.js} +1 -1
- package/dist/assets/{AppDocsIndex-C22gKPwi.js → AppDocsIndex-ChEbT5sV.js} +1 -1
- package/dist/assets/{AppManagementPage-DTh0NujK.js → AppManagementPage-DwyKF7UE.js} +1 -1
- package/dist/assets/ApprovalsInboxPage-Ca5Bb0JN.js +1 -0
- package/dist/assets/{AuditLogPage-B_Zg_tx5.js → AuditLogPage-BtNmxWyG.js} +1 -1
- package/dist/assets/{ComponentNavView-BhShg1Hw.js → ComponentNavView-naLkSvjF.js} +1 -1
- package/dist/assets/ConsoleFloatingChatbot-1MfhDZaK.js +1 -0
- package/dist/assets/DashboardView-Ccnc4ERO.js +1 -0
- package/dist/assets/DashboardWidgetInspector-DQvlAqdm.js +1 -0
- package/dist/assets/{DeveloperHubPage--9rLh7im.js → DeveloperHubPage-COHQrdbV.js} +1 -1
- package/dist/assets/{ExpressionProvider-B9tL1RMW.js → ExpressionProvider-C2XzKImE.js} +1 -1
- package/dist/assets/FlowRunsPage-DIO45X3A.js +1 -0
- package/dist/assets/{IntegrationsPage-CMt7Atqp.js → IntegrationsPage-Bu6X6rLQ.js} +2 -2
- package/dist/assets/InterfaceListPage-Cfv6Lkis.js +1 -0
- package/dist/assets/{ManagedByBadge-BF_1ck8d.js → ManagedByBadge-DDil8sjK.js} +1 -1
- package/dist/assets/MarketplaceAccessDenied-C3bv4Vmg.js +1 -0
- package/dist/assets/{MarketplaceInstalledPage-DBh3sDdm.js → MarketplaceInstalledPage-C-saIRJu.js} +1 -1
- package/dist/assets/MarketplacePackagePage-CcpJSBrF.js +4 -0
- package/dist/assets/MarketplacePage-B0zIXkwO.js +1 -0
- package/dist/assets/MetadataInspector-D9KL7Kgi.js +1 -0
- package/dist/assets/{MetadataProvider-xgIDLxXw.js → MetadataProvider-BO_KcC86.js} +1 -1
- package/dist/assets/{MonacoImpl-BsJjT9SV.js → MonacoImpl-VsaaS7Wx.js} +1 -1
- package/dist/assets/{PageView-pabqNsbK.js → PageView-gzbH9RTq.js} +1 -1
- package/dist/assets/ProfilePage-BXz0C-TJ.js +1 -0
- package/dist/assets/PublicFormsPage-D5-EASU8.js +1 -0
- package/dist/assets/RecordDetailView-ANMXqsUj.js +9 -0
- package/dist/assets/{RecordFormPage-Dh_BBkOw.js → RecordFormPage-BYeWa90w.js} +1 -1
- package/dist/assets/ReportDefaultInspector-B6X1lhzs.js +7 -0
- package/dist/assets/ReportView-uPqsauzE.js +2 -0
- package/dist/assets/{SearchResultsPage-BPgmZAb1.js → SearchResultsPage-DraOSIqg.js} +1 -1
- package/dist/assets/{SettingsHub-B47RbJU1.js → SettingsHub-CzOLpvoR.js} +1 -1
- package/dist/assets/{SettingsView-B75wJU1L.js → SettingsView-BJnPeWpq.js} +1 -1
- package/dist/assets/SystemHubPage-CeKubn-w.js +1 -0
- package/dist/assets/architecture-7EHR7CIX-X1S5OWmc.js +1 -0
- package/dist/assets/{architectureDiagram-3BPJPVTR-SscyJlk0.js → architectureDiagram-3BPJPVTR-MvRuEgzs.js} +1 -1
- package/dist/assets/{assistantBus-3d9MxsCF.js → assistantBus-BMrg1uLy.js} +1 -1
- package/dist/assets/blockDiagram-GPEHLZMM-Bv7ki00F.js +132 -0
- package/dist/assets/{c4Diagram-AAUBKEIU-VLeNt7tD.js → c4Diagram-AAUBKEIU-BRUAUvfZ.js} +1 -1
- package/dist/assets/channel-BqPJ7J2_.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-DyXQVMuc.js → chunk-2J33WTMH-DTuZqhEo.js} +1 -1
- package/dist/assets/{chunk-3OPIFGDE-3g0dk_di.js → chunk-3OPIFGDE-C_qRhnNp.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-BpAZJ7ZC.js → chunk-4BX2VUAB-Curilu76.js} +1 -1
- package/dist/assets/chunk-55IACEB6-ClqERWh2.js +1 -0
- package/dist/assets/chunk-5ZQYHXKU-NIbfS0Mi.js +2 -0
- package/dist/assets/{chunk-727SXJPM-DwSFE_v-.js → chunk-727SXJPM-C9Y2Btvf.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-DWgSztUW.js → chunk-AQP2D5EJ-CtIyrl6v.js} +1 -1
- package/dist/assets/{chunk-BSJP7CBP-okvguKD4.js → chunk-BSJP7CBP-DjJyEH0K.js} +1 -1
- package/dist/assets/chunk-CSCIHK7Q-DbAqhmGo.js +124 -0
- package/dist/assets/{chunk-FMBD7UC4-CZzqt4RW.js → chunk-FMBD7UC4-DZ7XVMi3.js} +1 -1
- package/dist/assets/{chunk-KSCS5N6A-IxEh4Ag5.js → chunk-KSCS5N6A-DHHPqSRu.js} +2 -2
- package/dist/assets/{chunk-L5ZTLDWV-DW1lPBoG.js → chunk-L5ZTLDWV-Cm-9mVS5.js} +1 -1
- package/dist/assets/{chunk-LZXEDZCA-C_-aaYcd.js → chunk-LZXEDZCA-DNmRzWTq.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-C1toj0H3.js → chunk-ND2GUHAM-D-GBTiNx.js} +1 -1
- package/dist/assets/{chunk-NZK2D7GU-H2MwBqQV.js → chunk-NZK2D7GU-CtXqakqk.js} +1 -1
- package/dist/assets/{chunk-O5CBEL6O-BzyWPZhZ.js → chunk-O5CBEL6O-B7H8dfmV.js} +3 -3
- package/dist/assets/chunk-QZHKN3VN-WFr5OVn5.js +1 -0
- package/dist/assets/chunk-WU5MYG2G-DKJgGIni.js +1 -0
- package/dist/assets/{chunk-XPW4576I-DPNxFY7Q.js → chunk-XPW4576I-BnrxXe1_.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-WH7-26qH.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-WH7-26qH.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-HKJWDQRL.js → cose-bilkent-S5V4N54A-DhuYtQPb.js} +1 -1
- package/dist/assets/{dagre-BM42HDAG-CU8nx02l.js → dagre-BM42HDAG-Dnyz2UIF.js} +1 -1
- package/dist/assets/{data-adapter-Hh2YXzlW.js → data-adapter-QvY0S7Jg.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-CormMz8j.js → diagram-2AECGRRQ-sHfykK_1.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-Dh1SagBx.js → diagram-5GNKFQAL-CQPF5SyR.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-DcG6Z05V.js → diagram-KO2AKTUF-DG_jPd_S.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-DrVLZ6ZE.js → diagram-LMA3HP47-eeIrBazE.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-C4_MMUc2.js → diagram-OG6HWLK6-aTF20BV0.js} +1 -1
- package/dist/assets/{dist-DYcwLEm6.js → dist-D80kLFC3.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-BZH_OrBL.js → erDiagram-TEJ5UH35-CZG8EC14.js} +1 -1
- package/dist/assets/eventmodeling-FCH6USID-y9LH0zSr.js +1 -0
- package/dist/assets/{flowDiagram-I6XJVG4X-CnjHQUK0.js → flowDiagram-I6XJVG4X-Dy6yH4qt.js} +1 -1
- package/dist/assets/framework-CsYa1Kaj.js +34 -0
- package/dist/assets/{ganttDiagram-6RSMTGT7-rVbHlqzo.js → ganttDiagram-6RSMTGT7-BbnAVyeg.js} +2 -2
- package/dist/assets/{gitGraph-WXDBUCRP-9vsQCBlr.js → gitGraph-WXDBUCRP-CWBdNpUZ.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-CH2LgClA.js → gitGraphDiagram-PVQCEYII-DQzVZDx1.js} +1 -1
- package/dist/assets/{highlighted-body-OFNGDK62-0aDolIZW.js → highlighted-body-OFNGDK62-DH1qH6jn.js} +1 -1
- package/dist/assets/index-Bx77jcFN.js +4 -0
- package/dist/assets/index-CYLGNLiD.css +2 -0
- package/dist/assets/{info-J43DQDTF-CfWeH1Bg.js → info-J43DQDTF-BT1tFy_c.js} +1 -1
- package/dist/assets/{infoDiagram-5YYISTIA-CRC7ojj-.js → infoDiagram-5YYISTIA-CL6j94aA.js} +1 -1
- package/dist/assets/infrastructure-BsIvKvpW.js +3 -0
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-8v73fBR1.js → ishikawaDiagram-YF4QCWOH-B2te-ZRn.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-DbRK-WaU.js → journeyDiagram-JHISSGLW-lZExleN9.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-BggLxHvZ.js → kanban-definition-UN3LZRKU-C9AtY5D5.js} +1 -1
- package/dist/assets/{marketplaceApi-CucX7DD9.js → marketplaceApi-DL8PegzV.js} +1 -1
- package/dist/assets/mermaid-GHXKKRXX-DlOIGBXr.js +1 -0
- package/dist/assets/{mermaid-parser.core-iuxcj-n_.js → mermaid-parser.core-Fbhy6q19.js} +1 -1
- package/dist/assets/mermaid.core-X9A0zXAG.js +8 -0
- package/dist/assets/metadata-admin--twLAcNF.js +21 -0
- package/dist/assets/{mindmap-definition-RKZ34NQL-kqhi9XCR.js → mindmap-definition-RKZ34NQL-BLNposyO.js} +1 -1
- package/dist/assets/{packet-YPE3B663-C0xexAqH.js → packet-YPE3B663-2eu0wHWY.js} +1 -1
- package/dist/assets/{pie-LRSECV5Y-DbQVOiyX.js → pie-LRSECV5Y-BA_jHDuN.js} +1 -1
- package/dist/assets/{pieDiagram-4H26LBE5-9fHcPmFE.js → pieDiagram-4H26LBE5-B_jWIggY.js} +3 -3
- package/dist/assets/plugin-calendar-HZM7PnuZ.js +1 -0
- package/dist/assets/plugin-charts-CHVu5fbZ.js +7 -0
- package/dist/assets/{plugin-chatbot-76fXVh9-.js → plugin-chatbot-B25XBELF.js} +53 -53
- package/dist/assets/plugin-dashboard-C8TbFk_D.js +6 -0
- package/dist/assets/plugin-form-sm04IEZv.js +1 -0
- package/dist/assets/plugin-gantt-BAbv_iPP.js +93 -0
- package/dist/assets/plugin-grid-pjPmzTDb.js +6 -0
- package/dist/assets/plugin-kanban-CFOumo0N.js +1 -0
- package/dist/assets/{plugin-map-C3ZvB3-I.js → plugin-map-DD4Y0TfP.js} +1 -1
- package/dist/assets/{plugin-markdown-C0Wtx408.js → plugin-markdown-Fz2pgiZT.js} +1 -1
- package/dist/assets/plugin-report-DidhEKAB.js +59 -0
- package/dist/assets/{plugin-timeline-BStIRl3O.js → plugin-timeline-BEk5SlxQ.js} +1 -1
- package/dist/assets/plugin-tree-uFJca_YQ.js +1 -0
- package/dist/assets/plugin-view-CDxJidrj.js +1 -0
- package/dist/assets/plugins-views-BpKTWXXa.js +4 -0
- package/dist/assets/{quadrantDiagram-W4KKPZXB-CaMxia_k.js → quadrantDiagram-W4KKPZXB-DuQbsXa3.js} +1 -1
- package/dist/assets/{radar-GUYGQ44K-DapGfmwo.js → radar-GUYGQ44K-BdSwem6Q.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-CXwY4Gdd.js → requirementDiagram-4Y6WPE33-BS1D5lNA.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-KEb3hSPZ.js → sankeyDiagram-5OEKKPKP-DGvgs5mF.js} +2 -2
- package/dist/assets/{sequenceDiagram-3UESZ5HK-BfbOOh3M.js → sequenceDiagram-3UESZ5HK-CoXT3Sa8.js} +1 -1
- package/dist/assets/{skeletons-Y2db5nbR.js → skeletons-DZWz9Ill.js} +1 -1
- package/dist/assets/{src-CVz7aDdY.js → src-B_91OByQ.js} +1 -1
- package/dist/assets/{src-BLxLm3Xq.js → src-CpvBTq6C.js} +1 -1
- package/dist/assets/src-ZyouQodC.js +2 -0
- package/dist/assets/{stateDiagram-AJRCARHV-BLJI6xj_.js → stateDiagram-AJRCARHV-CGBlOS6N.js} +1 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-B7qRtpsa.js +1 -0
- package/dist/assets/{timeline-definition-PNZ67QCA-aiklZXLq.js → timeline-definition-PNZ67QCA-C3SxX0_p.js} +1 -1
- package/dist/assets/{treeView-BLDUP644-Byr_7ESV.js → treeView-BLDUP644-LYooC8jV.js} +1 -1
- package/dist/assets/{treemap-LRROVOQU-B6DiJnlo.js → treemap-LRROVOQU-DRMY684K.js} +1 -1
- package/dist/assets/{types-C6YwlE8G.js → types-IRCvjK2K.js} +1 -1
- package/dist/assets/ui-components-DXl7VfQF.js +42 -0
- package/dist/assets/{ui-layout-CL-1JYQ8.js → ui-layout-BwKCXo1Z.js} +1 -1
- package/dist/assets/{useActionModal-Dz0k3wwf.js → useActionModal-CYfSmVlP.js} +1 -1
- package/dist/assets/useOpenRecordList-CwVRoKH4.js +1 -0
- package/dist/assets/{usePackageL10n-shLsxEAx.js → usePackageL10n-DIEe85Ot.js} +1 -1
- package/dist/assets/useReconcileOnError-BXVpquqp.js +1 -0
- package/dist/assets/vendor-charts-BMpO4zwC.js +39 -0
- package/dist/assets/{vendor-dndkit-DMFEUxSy.js → vendor-dndkit-CJ-mJJuO.js} +1 -1
- package/dist/assets/{vendor-i18n-Bz5UncqE.js → vendor-i18n-DA5MKfC_.js} +1 -1
- package/dist/assets/{vendor-icons-core-C_yMA5lO.js → vendor-icons-core-y1IwBwLD.js} +1 -1
- package/dist/assets/{vendor-markdown-CyAGIM8D.js → vendor-markdown-BhPWU2N7.js} +1 -1
- package/dist/assets/vendor-objectstack-C1teU2a6.js +96 -0
- package/dist/assets/vendor-radix-90T7eS-d.js +46 -0
- package/dist/assets/vendor-react-ClIa1CJA.js +11 -0
- package/dist/assets/vendor-sentry-DUcsR3Vf.js +501 -0
- package/dist/assets/{vendor-ui-utils-rQOI1gAo.js → vendor-ui-utils-C92Fl7BT.js} +1 -1
- package/dist/assets/{vennDiagram-CIIHVFJN-DsKC4yvC.js → vennDiagram-CIIHVFJN-BWIbAw03.js} +1 -1
- package/dist/assets/{wardley-L42UT6IY-f1iiSYpj.js → wardley-L42UT6IY-zPLhQ1bd.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-DbrUmWlY.js → wardleyDiagram-YWT4CUSO-Ck_J2TTN.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-B4biX1Sz.js → xychartDiagram-2RQKCTM6-CDqp4wV0.js} +2 -2
- package/dist/index.html +6 -6
- package/package.json +1 -1
- package/dist/assets/AdapterProvider-DQfb2hDB.js +0 -1
- package/dist/assets/ApprovalsInboxPage-C0mBPkCR.js +0 -1
- package/dist/assets/ConsoleFloatingChatbot-Ct9u34kL.js +0 -1
- package/dist/assets/DashboardView-D3oJL44H.js +0 -1
- package/dist/assets/DashboardWidgetInspector-BhjBPVJV.js +0 -1
- package/dist/assets/FlowRunsPage-CDYR2nha.js +0 -1
- package/dist/assets/InterfaceListPage-CIYeUsaL.js +0 -1
- package/dist/assets/MarketplaceAccessDenied-DvMKTKZG.js +0 -1
- package/dist/assets/MarketplacePackagePage-DuZ5A7L3.js +0 -4
- package/dist/assets/MarketplacePage-8XMnemHc.js +0 -1
- package/dist/assets/MetadataInspector-BcJZckHC.js +0 -1
- package/dist/assets/ProfilePage-CPP3LKyF.js +0 -1
- package/dist/assets/PublicFormsPage-CJz8WQst.js +0 -1
- package/dist/assets/RecordDetailView-Dg0FtCgX.js +0 -9
- package/dist/assets/ReportDefaultInspector-bXn7Ud0K.js +0 -1
- package/dist/assets/ReportView-CYKdWMWV.js +0 -2
- package/dist/assets/RuntimeDraftBar-CpfEHMPU.js +0 -1
- package/dist/assets/SystemHubPage-DFwicwZT.js +0 -1
- package/dist/assets/architecture-7EHR7CIX-BdMnUPE0.js +0 -1
- package/dist/assets/blockDiagram-GPEHLZMM-D6-9deBJ.js +0 -132
- package/dist/assets/channel-ByUUDCyR.js +0 -1
- package/dist/assets/chunk-55IACEB6-BhOjfCrn.js +0 -1
- package/dist/assets/chunk-5ZQYHXKU-DG12s6lW.js +0 -2
- package/dist/assets/chunk-CSCIHK7Q-DfSAlgJl.js +0 -124
- package/dist/assets/chunk-QZHKN3VN-ujroCBCz.js +0 -1
- package/dist/assets/chunk-WU5MYG2G-DwQt8tuZ.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-B7mTyEXp.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-B7mTyEXp.js +0 -1
- package/dist/assets/eventmodeling-FCH6USID-CFiyy8DS.js +0 -1
- package/dist/assets/framework-DCMHw4uc.js +0 -34
- package/dist/assets/index-DIwBADyw.css +0 -2
- package/dist/assets/index-OUEQY-pz.js +0 -4
- package/dist/assets/infrastructure-CJNwTVno.js +0 -3
- package/dist/assets/mergeServerFields-DLHgCyyI.js +0 -7
- package/dist/assets/mermaid-GHXKKRXX-BkPYaQdJ.js +0 -1
- package/dist/assets/mermaid.core-C41Aiku8.js +0 -8
- package/dist/assets/metadata-admin-CLro8Vr2.js +0 -19
- package/dist/assets/plugin-calendar-BnAXrMpl.js +0 -1
- package/dist/assets/plugin-charts-CqgNZ5dQ.js +0 -7
- package/dist/assets/plugin-dashboard-lpyBUnU3.js +0 -5
- package/dist/assets/plugin-form-DjP7n76r.js +0 -1
- package/dist/assets/plugin-gantt-BRce7Qx4.js +0 -39
- package/dist/assets/plugin-grid-3MIxvbIs.js +0 -6
- package/dist/assets/plugin-kanban-BY5U45PP.js +0 -1
- package/dist/assets/plugin-report-CjGy4oCX.js +0 -59
- package/dist/assets/plugin-view-C15Djdpb.js +0 -1
- package/dist/assets/plugins-views-DvIN271Q.js +0 -4
- package/dist/assets/src-ChUzpvnF.js +0 -2
- package/dist/assets/stateDiagram-v2-BHNVJYJU-DPQJ1_JB.js +0 -1
- package/dist/assets/ui-components-D1FYlKrM.js +0 -42
- package/dist/assets/useReconcileOnError-Cxzq30_3.js +0 -1
- package/dist/assets/vendor-charts-fo4ZbB_t.js +0 -39
- package/dist/assets/vendor-objectstack-BNd856rx.js +0 -96
- package/dist/assets/vendor-radix-CSVEhP0L.js +0 -56
- package/dist/assets/vendor-react-DR370ovB.js +0 -11
- package/dist/assets/vendor-sentry-BIOhD5Kg.js +0 -501
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Tt as e,kt as t,u as n}from"./vendor-charts-fo4ZbB_t.js";import{n as r,r as i}from"./src-CVz7aDdY.js";import{O as a,c as o,s,x as c}from"./chunk-CSCIHK7Q-DfSAlgJl.js";import{g as l}from"./chunk-5ZQYHXKU-DG12s6lW.js";import"./chunk-O5CBEL6O-BzyWPZhZ.js";import"./chunk-BSJP7CBP-okvguKD4.js";import"./chunk-L5ZTLDWV-DW1lPBoG.js";import{t as u}from"./graphlib-B8gBHxth.js";import{t as d}from"./dagre-Bx709z4p.js";import"./chunk-55IACEB6-BhOjfCrn.js";import"./chunk-2J33WTMH-DyXQVMuc.js";import"./chunk-NZK2D7GU-H2MwBqQV.js";import"./chunk-3OPIFGDE-3g0dk_di.js";import"./chunk-KSCS5N6A-IxEh4Ag5.js";import"./chunk-LZXEDZCA-C_-aaYcd.js";import{i as f,n as p,t as m}from"./chunk-AQP2D5EJ-DWgSztUW.js";var h=r(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,c().state.sizeUnit).attr(`cx`,c().state.padding+c().state.sizeUnit).attr(`cy`,c().state.padding+c().state.sizeUnit),`drawStartState`),g=r(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,c().state.textHeight).attr(`class`,`divider`).attr(`x2`,c().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=r((e,t)=>{let n=e.append(`text`).attr(`x`,2*c().state.padding).attr(`y`,c().state.textHeight+2*c().state.padding).attr(`font-size`,c().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,c().state.padding).attr(`y`,c().state.padding).attr(`width`,r.width+2*c().state.padding).attr(`height`,r.height+2*c().state.padding).attr(`rx`,c().state.radius),n},`drawSimpleState`),v=r((e,t)=>{let n=r(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*c().state.padding).text(t);n||r.attr(`dy`,c().state.textHeight)},`addTspan`),i=e.append(`text`).attr(`x`,2*c().state.padding).attr(`y`,c().state.textHeight+1.3*c().state.padding).attr(`font-size`,c().state.fontSize).attr(`class`,`state-title`).text(t.descriptions[0]).node().getBBox(),a=i.height,o=e.append(`text`).attr(`x`,c().state.padding).attr(`y`,a+c().state.padding*.4+c().state.dividerMargin+c().state.textHeight).attr(`class`,`state-description`),s=!0,l=!0;t.descriptions.forEach(function(e){s||(n(o,e,l),l=!1),s=!1});let u=e.append(`line`).attr(`x1`,c().state.padding).attr(`y1`,c().state.padding+a+c().state.dividerMargin/2).attr(`y2`,c().state.padding+a+c().state.dividerMargin/2).attr(`class`,`descr-divider`),d=o.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*c().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,c().state.padding).attr(`y`,c().state.padding).attr(`width`,f+2*c().state.padding).attr(`height`,d.height+a+2*c().state.padding).attr(`rx`,c().state.radius),e},`drawDescrState`),y=r((e,t,n)=>{let r=c().state.padding,i=2*c().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,c().state.titleShift).attr(`font-size`,c().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,o);d===o&&(d+=i);let f,p=e.node().getBBox();t.doc,f=s-r,u>o&&(f=(o-d)/2+r),Math.abs(s-p.x)<r&&u>o&&(f=s-(u-o)/2);let m=1-c().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+c().state.textHeight+c().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=o&&l.attr(`x`,s+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,c().state.titleShift-c().state.textHeight-c().state.padding).attr(`width`,d).attr(`height`,c().state.textHeight*3).attr(`rx`,c().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,c().state.titleShift-c().state.textHeight-c().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*c().state.textHeight).attr(`rx`,c().state.radius),e},`addTitleAndBox`),b=r(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,c().state.sizeUnit+c().state.miniPadding).attr(`cx`,c().state.padding+c().state.sizeUnit+c().state.miniPadding).attr(`cy`,c().state.padding+c().state.sizeUnit+c().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,c().state.sizeUnit).attr(`cx`,c().state.padding+c().state.sizeUnit+2).attr(`cy`,c().state.padding+c().state.sizeUnit+2)),`drawEndState`),x=r((e,t)=>{let n=c().state.forkWidth,r=c().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,c().state.padding).attr(`y`,c().state.padding)},`drawForkJoinState`),S=r((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`<br/>`);o=o.replace(/\n/g,`<br/>`);let l=o.split(s.lineBreakRegex),u=1.25*c().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+c().state.noteMargin),e.attr(`y`,n+i+1.25*c().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),C=r((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,c().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*c().state.noteMargin),n.attr(`width`,r+c().state.noteMargin*2),n},`drawNote`),w=r(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type==="default"&&t.descriptions.length===0&&_(i,t),t.type==="default"&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*c().state.padding,r.height=a.height+2*c().state.padding,r},`drawState`),T=0,E=r(function(n,o,u){let d=r(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);o.points=o.points.filter(e=>!Number.isNaN(e.y));let f=o.points,p=t().x(function(e){return e.x}).y(function(e){return e.y}).curve(e),h=n.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(c().state.arrowMarkerAbsolute&&(g=a(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=n.append(`g`).attr(`class`,`stateLabel`),{x:t,y:r}=l.calcLabelPosition(o.points),a=s.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=a.length;n++){let o=e.append(`text`).attr(`text-anchor`,`middle`).text(a[n]).attr(`x`,t).attr(`y`,r+d),s=o.node().getBBox();p=Math.max(p,s.width),m=Math.min(m,s.x),i.info(s.x,t,r+d),d===0&&(d=o.node().getBBox().height,i.info(`Title height`,d,r)),f.push(o)}let h=d*a.length;if(a.length>1){let e=(a.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,r+n*d-e)),h=d*a.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,t-p/2-c().state.padding/2).attr(`y`,r-h/2-c().state.padding/2-3.5).attr(`width`,p+c().state.padding).attr(`height`,h+c().state.padding),i.info(g)}T++},`drawEdge`),D,O={},k=r(function(){},`setConf`),A=r(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=r(function(e,t,r,a){D=c().state;let s=c().securityLevel,l;s===`sandbox`&&(l=n(`#i`+t));let u=n(s===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=s===`sandbox`?l.nodes()[0].contentDocument:document;i.debug(`Rendering diagram `+e);let f=u.select(`[id='${t}']`);A(f),N(a.db.getRootDoc(),f.append(`g`).attr(`id`,t+`-root`),void 0,!1,u,d,a);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;o(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=r(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=r((e,t,n,r,a,o,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}n?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let i=m[e];n&&(i.parentId=n);let s;if(i.doc){let e=t.append(`g`).attr(`id`,i.id).attr(`class`,`stateGroup`);s=N(i.doc,e,i.id,!r,a,o,c);{e=y(e,i,r);let t=e.node().getBBox();s.width=t.width,s.height=t.height+D.padding/2,O[i.id]={y:D.compositTitleSize}}}else s=w(t,i,l);if(i.note){let e=w(t,{descriptions:[],id:i.id+`-note`,note:i.note,type:`note`},l);i.note.position===`left of`?(l.setNode(s.id+`-note`,e),l.setNode(s.id,s)):(l.setNode(s.id,s),l.setNode(s.id+`-note`,e)),l.setParent(s.id,s.id+`-group`),l.setParent(s.id+`-note`,s.id+`-group`)}else l.setNode(s.id,s)}i.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,i.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*s.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),i.debug(`Graph after layout`,l.nodes());let v=t.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(i.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),a.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),a.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),o.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):i.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(i.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(t,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:n||`root`,label:n||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,i.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:r(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
|
|
1
|
+
import{dn as e,sn as t,u as n}from"./vendor-charts-BMpO4zwC.js";import{n as r,r as i}from"./src-B_91OByQ.js";import{O as a,c as o,s,x as c}from"./chunk-CSCIHK7Q-DbAqhmGo.js";import{g as l}from"./chunk-5ZQYHXKU-NIbfS0Mi.js";import"./chunk-O5CBEL6O-B7H8dfmV.js";import"./chunk-BSJP7CBP-DjJyEH0K.js";import"./chunk-L5ZTLDWV-Cm-9mVS5.js";import{t as u}from"./graphlib-B8gBHxth.js";import{t as d}from"./dagre-Bx709z4p.js";import"./chunk-55IACEB6-ClqERWh2.js";import"./chunk-2J33WTMH-DTuZqhEo.js";import"./chunk-NZK2D7GU-CtXqakqk.js";import"./chunk-3OPIFGDE-C_qRhnNp.js";import"./chunk-KSCS5N6A-DHHPqSRu.js";import"./chunk-LZXEDZCA-DNmRzWTq.js";import{i as f,n as p,t as m}from"./chunk-AQP2D5EJ-CtIyrl6v.js";var h=r(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,c().state.sizeUnit).attr(`cx`,c().state.padding+c().state.sizeUnit).attr(`cy`,c().state.padding+c().state.sizeUnit),`drawStartState`),g=r(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,c().state.textHeight).attr(`class`,`divider`).attr(`x2`,c().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=r((e,t)=>{let n=e.append(`text`).attr(`x`,2*c().state.padding).attr(`y`,c().state.textHeight+2*c().state.padding).attr(`font-size`,c().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,c().state.padding).attr(`y`,c().state.padding).attr(`width`,r.width+2*c().state.padding).attr(`height`,r.height+2*c().state.padding).attr(`rx`,c().state.radius),n},`drawSimpleState`),v=r((e,t)=>{let n=r(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*c().state.padding).text(t);n||r.attr(`dy`,c().state.textHeight)},`addTspan`),i=e.append(`text`).attr(`x`,2*c().state.padding).attr(`y`,c().state.textHeight+1.3*c().state.padding).attr(`font-size`,c().state.fontSize).attr(`class`,`state-title`).text(t.descriptions[0]).node().getBBox(),a=i.height,o=e.append(`text`).attr(`x`,c().state.padding).attr(`y`,a+c().state.padding*.4+c().state.dividerMargin+c().state.textHeight).attr(`class`,`state-description`),s=!0,l=!0;t.descriptions.forEach(function(e){s||(n(o,e,l),l=!1),s=!1});let u=e.append(`line`).attr(`x1`,c().state.padding).attr(`y1`,c().state.padding+a+c().state.dividerMargin/2).attr(`y2`,c().state.padding+a+c().state.dividerMargin/2).attr(`class`,`descr-divider`),d=o.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*c().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,c().state.padding).attr(`y`,c().state.padding).attr(`width`,f+2*c().state.padding).attr(`height`,d.height+a+2*c().state.padding).attr(`rx`,c().state.radius),e},`drawDescrState`),y=r((e,t,n)=>{let r=c().state.padding,i=2*c().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,c().state.titleShift).attr(`font-size`,c().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,o);d===o&&(d+=i);let f,p=e.node().getBBox();t.doc,f=s-r,u>o&&(f=(o-d)/2+r),Math.abs(s-p.x)<r&&u>o&&(f=s-(u-o)/2);let m=1-c().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+c().state.textHeight+c().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=o&&l.attr(`x`,s+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,c().state.titleShift-c().state.textHeight-c().state.padding).attr(`width`,d).attr(`height`,c().state.textHeight*3).attr(`rx`,c().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,c().state.titleShift-c().state.textHeight-c().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*c().state.textHeight).attr(`rx`,c().state.radius),e},`addTitleAndBox`),b=r(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,c().state.sizeUnit+c().state.miniPadding).attr(`cx`,c().state.padding+c().state.sizeUnit+c().state.miniPadding).attr(`cy`,c().state.padding+c().state.sizeUnit+c().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,c().state.sizeUnit).attr(`cx`,c().state.padding+c().state.sizeUnit+2).attr(`cy`,c().state.padding+c().state.sizeUnit+2)),`drawEndState`),x=r((e,t)=>{let n=c().state.forkWidth,r=c().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,c().state.padding).attr(`y`,c().state.padding)},`drawForkJoinState`),S=r((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`<br/>`);o=o.replace(/\n/g,`<br/>`);let l=o.split(s.lineBreakRegex),u=1.25*c().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+c().state.noteMargin),e.attr(`y`,n+i+1.25*c().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),C=r((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,c().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*c().state.noteMargin),n.attr(`width`,r+c().state.noteMargin*2),n},`drawNote`),w=r(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type==="default"&&t.descriptions.length===0&&_(i,t),t.type==="default"&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*c().state.padding,r.height=a.height+2*c().state.padding,r},`drawState`),T=0,E=r(function(n,o,u){let d=r(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);o.points=o.points.filter(e=>!Number.isNaN(e.y));let f=o.points,p=e().x(function(e){return e.x}).y(function(e){return e.y}).curve(t),h=n.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(c().state.arrowMarkerAbsolute&&(g=a(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=n.append(`g`).attr(`class`,`stateLabel`),{x:t,y:r}=l.calcLabelPosition(o.points),a=s.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=a.length;n++){let o=e.append(`text`).attr(`text-anchor`,`middle`).text(a[n]).attr(`x`,t).attr(`y`,r+d),s=o.node().getBBox();p=Math.max(p,s.width),m=Math.min(m,s.x),i.info(s.x,t,r+d),d===0&&(d=o.node().getBBox().height,i.info(`Title height`,d,r)),f.push(o)}let h=d*a.length;if(a.length>1){let e=(a.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,r+n*d-e)),h=d*a.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,t-p/2-c().state.padding/2).attr(`y`,r-h/2-c().state.padding/2-3.5).attr(`width`,p+c().state.padding).attr(`height`,h+c().state.padding),i.info(g)}T++},`drawEdge`),D,O={},k=r(function(){},`setConf`),A=r(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=r(function(e,t,r,a){D=c().state;let s=c().securityLevel,l;s===`sandbox`&&(l=n(`#i`+t));let u=n(s===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=s===`sandbox`?l.nodes()[0].contentDocument:document;i.debug(`Rendering diagram `+e);let f=u.select(`[id='${t}']`);A(f),N(a.db.getRootDoc(),f.append(`g`).attr(`id`,t+`-root`),void 0,!1,u,d,a);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;o(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=r(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=r((e,t,n,r,a,o,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}n?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let i=m[e];n&&(i.parentId=n);let s;if(i.doc){let e=t.append(`g`).attr(`id`,i.id).attr(`class`,`stateGroup`);s=N(i.doc,e,i.id,!r,a,o,c);{e=y(e,i,r);let t=e.node().getBBox();s.width=t.width,s.height=t.height+D.padding/2,O[i.id]={y:D.compositTitleSize}}}else s=w(t,i,l);if(i.note){let e=w(t,{descriptions:[],id:i.id+`-note`,note:i.note,type:`note`},l);i.note.position===`left of`?(l.setNode(s.id+`-note`,e),l.setNode(s.id,s)):(l.setNode(s.id,s),l.setNode(s.id+`-note`,e)),l.setParent(s.id,s.id+`-group`),l.setParent(s.id+`-note`,s.id+`-group`)}else l.setNode(s.id,s)}i.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,i.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*s.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),i.debug(`Graph after layout`,l.nodes());let v=t.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(i.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),a.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),a.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),o.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):i.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(i.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(t,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:n||`root`,label:n||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,i.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:r(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./src-B_91OByQ.js";import"./chunk-CSCIHK7Q-DbAqhmGo.js";import"./chunk-5ZQYHXKU-NIbfS0Mi.js";import"./chunk-O5CBEL6O-B7H8dfmV.js";import"./chunk-BSJP7CBP-DjJyEH0K.js";import"./chunk-L5ZTLDWV-Cm-9mVS5.js";import"./chunk-55IACEB6-ClqERWh2.js";import"./chunk-2J33WTMH-DTuZqhEo.js";import"./chunk-NZK2D7GU-CtXqakqk.js";import"./chunk-3OPIFGDE-C_qRhnNp.js";import"./chunk-KSCS5N6A-DHHPqSRu.js";import"./chunk-LZXEDZCA-DNmRzWTq.js";import{i as t,n,r,t as i}from"./chunk-AQP2D5EJ-CtIyrl6v.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{pn as e,u as t}from"./vendor-charts-BMpO4zwC.js";import{n,r,t as i}from"./src-B_91OByQ.js";import{J as a,a as o,b as s,et as c,o as l,rt as u,tt as d,x as f}from"./chunk-CSCIHK7Q-DbAqhmGo.js";import{t as p}from"./chunk-WU5MYG2G-DKJgGIni.js";import{p as m}from"./chunk-5ZQYHXKU-NIbfS0Mi.js";var h=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){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:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+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,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1: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--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;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);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n(function(e,t){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:n(function(){var e=this._input[0];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},`input`),unput:n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);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);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,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},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:n(function(){return this._more=!0,this},`more`),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-NNHCCRGN-Ud6GGuM7.js";import{s as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-NNHCCRGN-Ud6GGuM7.js";import{s as e}from"./mermaid-parser.core-Fbhy6q19.js";export{e as createTreeViewServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-NNHCCRGN-Ud6GGuM7.js";import{a as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-NNHCCRGN-Ud6GGuM7.js";import{a as e}from"./mermaid-parser.core-Fbhy6q19.js";export{e as createTreemapServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-CMxvf4Kt.js";import{_ as t}from"./vendor-react-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-CMxvf4Kt.js";import{_ as t}from"./vendor-react-ClIa1CJA.js";import{$ as n,Jo as r}from"./ui-components-DXl7VfQF.js";var i=e(t(),1);function a(e){return e.includes(`-`)?e.toLowerCase():e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1-$2`).toLowerCase()}var o=new Map;function s(e){if(!e)return r;let t=o.get(e);if(t)return t;let s=a(e),c=e=>i.createElement(n,{name:s,fallback:r,...e});return c.displayName=`LucideIcon(${e})`,o.set(e,c),c}var c=`${``.replace(/\/$/,``)}/api/settings`;async function l(e){if(!e.ok){let t=await e.json().catch(()=>({error:{message:e.statusText}})),n=Error(t?.error?.message??e.statusText);throw n.status=e.status,n.payload=t,n}return e.json()}var u=()=>({"Content-Type":`application/json`,Accept:`application/json`});async function d(){return l(await fetch(c,{credentials:`include`,headers:u()}))}async function f(e){return l(await fetch(`${c}/${encodeURIComponent(e)}`,{credentials:`include`,headers:u()}))}async function p(e,t){return l(await fetch(`${c}/${encodeURIComponent(e)}`,{method:`PUT`,credentials:`include`,headers:u(),body:JSON.stringify(t)}))}async function m(e,t,n){let r=await fetch(`${c}/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:`POST`,credentials:`include`,headers:u(),body:JSON.stringify(n??{})}),i=await r.json().catch(()=>({ok:!1,message:r.statusText}));return typeof i?.ok==`boolean`?i:{ok:r.ok,message:i?.error?.message??r.statusText}}function h(e){return typeof e==`string`?e:e?.defaultValue||e?.key||``}export{p as a,m as i,f as n,s as o,d as r,h as t};
|