@loopstack/loopstack-studio 0.28.0 → 0.29.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/_virtual/rolldown_runtime.js +13 -15
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import { clear, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, sanitizeText, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox2 } from "./chunk-CSCIHK7Q.js";
|
|
3
|
+
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
|
+
import "../../../../d3/src/index.js";
|
|
5
|
+
import { calculateTextDimensions, cleanAndMerge, wrapLabel } from "./chunk-5ZQYHXKU.js";
|
|
6
|
+
import { isEmResetFrame } from "../../../../@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js";
|
|
7
|
+
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
8
|
+
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
9
|
+
var PositionFrameKind = "position frame", FramePositionedKind = "frame positioned", PositionRelationKind = "position relation", RelationPositionedKind = "relation positioned", setOptions = /* @__PURE__ */ __name(function(l) {
|
|
10
|
+
log.debug("options str", l);
|
|
11
|
+
}, "setOptions"), getOptions = /* @__PURE__ */ __name(function() {
|
|
12
|
+
return {};
|
|
13
|
+
}, "getOptions"), clear2 = /* @__PURE__ */ __name(function() {
|
|
14
|
+
reset(), clear();
|
|
15
|
+
}, "clear");
|
|
16
|
+
function reset() {
|
|
17
|
+
store = {};
|
|
18
|
+
}
|
|
19
|
+
__name(reset, "reset");
|
|
20
|
+
var DEFAULT_EVENTMODELING_CONFIG = defaultConfig_default.eventmodeling, getConfig3 = /* @__PURE__ */ __name(() => cleanAndMerge({
|
|
21
|
+
...DEFAULT_EVENTMODELING_CONFIG,
|
|
22
|
+
...getConfig().eventmodeling
|
|
23
|
+
}), "getConfig"), store = {};
|
|
24
|
+
function getState() {
|
|
25
|
+
let l = initial, { ast: z } = store, B = getDiagramProps();
|
|
26
|
+
if (!z) throw Error("No data for EventModel");
|
|
27
|
+
return z.frames.forEach((V, H) => {
|
|
28
|
+
let U = calculateTextProps(V, z.dataEntities, B);
|
|
29
|
+
l = dispatch(l, {
|
|
30
|
+
$kind: PositionFrameKind,
|
|
31
|
+
index: H,
|
|
32
|
+
frame: V,
|
|
33
|
+
textProps: U
|
|
34
|
+
});
|
|
35
|
+
let W;
|
|
36
|
+
hasSourceFrame(V) ? (log.debug("source frame", V.sourceFrames), W = z.frames.filter((l) => V.sourceFrames.some((R) => R.$refText === l.name)), W.forEach((R) => {
|
|
37
|
+
l = dispatch(l, {
|
|
38
|
+
$kind: PositionRelationKind,
|
|
39
|
+
index: H,
|
|
40
|
+
frame: V,
|
|
41
|
+
sourceFrame: R
|
|
42
|
+
});
|
|
43
|
+
})) : l = dispatch(l, {
|
|
44
|
+
$kind: PositionRelationKind,
|
|
45
|
+
index: H,
|
|
46
|
+
frame: V
|
|
47
|
+
});
|
|
48
|
+
}), l = {
|
|
49
|
+
...l,
|
|
50
|
+
sortedSwimlanesArray: sortedSwimlanesArray(l.swimlanes)
|
|
51
|
+
}, l;
|
|
52
|
+
}
|
|
53
|
+
__name(getState, "getState");
|
|
54
|
+
function setAst(l) {
|
|
55
|
+
store.ast = l;
|
|
56
|
+
}
|
|
57
|
+
__name(setAst, "setAst");
|
|
58
|
+
var diagramProps = {
|
|
59
|
+
swimlaneMinHeight: 70,
|
|
60
|
+
swimlanePadding: 15,
|
|
61
|
+
swimlaneGap: 10,
|
|
62
|
+
boxPadding: 10,
|
|
63
|
+
boxOverlap: 90,
|
|
64
|
+
boxDefaultY: 0,
|
|
65
|
+
boxMinWidth: 80,
|
|
66
|
+
boxMaxWidth: 450,
|
|
67
|
+
boxMinHeight: 80,
|
|
68
|
+
boxMaxHeight: 750,
|
|
69
|
+
contentStartX: 250,
|
|
70
|
+
textMaxWidth: 430,
|
|
71
|
+
boxTextFontWeight: "bold",
|
|
72
|
+
boxTextPadding: 10,
|
|
73
|
+
swimlaneTextFontWeight: "bold",
|
|
74
|
+
labelUiAutomation: "UI/Automation",
|
|
75
|
+
labelUiAutomationPrefix: "UI/A: ",
|
|
76
|
+
labelCommandReadModel: "Command/Read Model",
|
|
77
|
+
labelCommandReadModelPrefix: "C/RM: ",
|
|
78
|
+
labelEvents: "Events",
|
|
79
|
+
labelEventsPrefix: "Stream: "
|
|
80
|
+
};
|
|
81
|
+
function getDiagramProps() {
|
|
82
|
+
return diagramProps;
|
|
83
|
+
}
|
|
84
|
+
__name(getDiagramProps, "getDiagramProps");
|
|
85
|
+
var initial = {
|
|
86
|
+
boxes: [],
|
|
87
|
+
swimlanes: {},
|
|
88
|
+
relations: [],
|
|
89
|
+
maxR: 0,
|
|
90
|
+
sortedSwimlanesArray: []
|
|
91
|
+
};
|
|
92
|
+
function extractNamespace(l) {
|
|
93
|
+
let R = l.split(".");
|
|
94
|
+
if (R.length === 2) return R[0];
|
|
95
|
+
}
|
|
96
|
+
__name(extractNamespace, "extractNamespace");
|
|
97
|
+
function extractName(l) {
|
|
98
|
+
let R = l.split(".");
|
|
99
|
+
return R.length === 2 ? R[1] : l;
|
|
100
|
+
}
|
|
101
|
+
__name(extractName, "extractName");
|
|
102
|
+
function findSwimlaneByNamespace(l, R) {
|
|
103
|
+
if (!(!R || R.length === 0)) return Object.values(l).find((l) => l.namespace === R);
|
|
104
|
+
}
|
|
105
|
+
__name(findSwimlaneByNamespace, "findSwimlaneByNamespace");
|
|
106
|
+
function findNextAvailableIndex(l, R, z) {
|
|
107
|
+
return Math.max(R, ...Object.keys(l).filter((l) => {
|
|
108
|
+
let B = Number.parseInt(l);
|
|
109
|
+
return B > R && B < z;
|
|
110
|
+
}).map((l) => Number.parseInt(l))) + 1;
|
|
111
|
+
}
|
|
112
|
+
__name(findNextAvailableIndex, "findNextAvailableIndex");
|
|
113
|
+
function calculateSwimlaneProps(l, R) {
|
|
114
|
+
let z = extractNamespace(l.entityIdentifier), B = findSwimlaneByNamespace(R, z);
|
|
115
|
+
switch (l.modelEntityType) {
|
|
116
|
+
case "ui":
|
|
117
|
+
case "pcr":
|
|
118
|
+
case "processor": return B ? {
|
|
119
|
+
index: B.index,
|
|
120
|
+
label: B.namespace || diagramProps.labelUiAutomation
|
|
121
|
+
} : z ? {
|
|
122
|
+
index: findNextAvailableIndex(R, 0, 100),
|
|
123
|
+
label: diagramProps.labelUiAutomationPrefix + z
|
|
124
|
+
} : {
|
|
125
|
+
index: 0,
|
|
126
|
+
label: diagramProps.labelUiAutomation
|
|
127
|
+
};
|
|
128
|
+
case "rmo":
|
|
129
|
+
case "readmodel":
|
|
130
|
+
case "cmd":
|
|
131
|
+
case "command": return B ? {
|
|
132
|
+
index: B.index,
|
|
133
|
+
label: B.namespace || diagramProps.labelCommandReadModel
|
|
134
|
+
} : z ? {
|
|
135
|
+
index: findNextAvailableIndex(R, 100, 200),
|
|
136
|
+
label: diagramProps.labelCommandReadModelPrefix + z
|
|
137
|
+
} : {
|
|
138
|
+
index: 100,
|
|
139
|
+
label: diagramProps.labelCommandReadModel
|
|
140
|
+
};
|
|
141
|
+
case "evt":
|
|
142
|
+
case "event":
|
|
143
|
+
default: return B ? {
|
|
144
|
+
index: B.index,
|
|
145
|
+
label: B.namespace || diagramProps.labelEvents
|
|
146
|
+
} : z ? {
|
|
147
|
+
index: findNextAvailableIndex(R, 200, 300),
|
|
148
|
+
label: diagramProps.labelEventsPrefix + z
|
|
149
|
+
} : {
|
|
150
|
+
index: 200,
|
|
151
|
+
label: diagramProps.labelEvents
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
__name(calculateSwimlaneProps, "calculateSwimlaneProps");
|
|
156
|
+
function calculateEntityVisualProps(l) {
|
|
157
|
+
let { themeVariables: R } = getConfig();
|
|
158
|
+
switch (l.modelEntityType) {
|
|
159
|
+
case "ui": return {
|
|
160
|
+
fill: R.emUiFill ?? "white",
|
|
161
|
+
stroke: R.emUiStroke ?? "#dbdada"
|
|
162
|
+
};
|
|
163
|
+
case "pcr":
|
|
164
|
+
case "processor": return {
|
|
165
|
+
fill: R.emProcessorFill ?? "#edb3f6",
|
|
166
|
+
stroke: R.emProcessorStroke ?? "#b88cbf"
|
|
167
|
+
};
|
|
168
|
+
case "rmo":
|
|
169
|
+
case "readmodel": return {
|
|
170
|
+
fill: R.emReadModelFill ?? "#d3f1a2",
|
|
171
|
+
stroke: R.emReadModelStroke ?? "#a3b732"
|
|
172
|
+
};
|
|
173
|
+
case "cmd":
|
|
174
|
+
case "command": return {
|
|
175
|
+
fill: R.emCommandFill ?? "#bcd6fe",
|
|
176
|
+
stroke: R.emCommandStroke ?? "#679ac3"
|
|
177
|
+
};
|
|
178
|
+
case "evt":
|
|
179
|
+
case "event": return {
|
|
180
|
+
fill: R.emEventFill ?? "#ffb778",
|
|
181
|
+
stroke: R.emEventStroke ?? "#c19a0f"
|
|
182
|
+
};
|
|
183
|
+
default: return {
|
|
184
|
+
fill: "red",
|
|
185
|
+
stroke: "black"
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
__name(calculateEntityVisualProps, "calculateEntityVisualProps");
|
|
190
|
+
function calculateTextProps(l, z, B) {
|
|
191
|
+
let V = getConfig(), H = sanitizeText(extractName(l.entityIdentifier) ?? "", V), W, G = {
|
|
192
|
+
fontSize: 16,
|
|
193
|
+
fontWeight: 700,
|
|
194
|
+
fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
195
|
+
joinWith: "<br/>"
|
|
196
|
+
}, q = `<b>${wrapLabel(H, B.textMaxWidth, G)}</b>`;
|
|
197
|
+
if (l.dataInlineValue && (W = l.dataInlineValue, W = W.substring(W.indexOf("{") + 1), W = W.substring(0, W.lastIndexOf("}") - 1), W = sanitizeText(W, V), W = wrapLabel(W, B.textMaxWidth, G), W = W.replaceAll(" ", " ")), l.dataReference) {
|
|
198
|
+
let R = z.find((R) => R.name === l.dataReference?.$refText);
|
|
199
|
+
R && (W = R.dataBlockValue, W = W.substring(W.indexOf("{\n") + 2), W = W.substring(0, W.lastIndexOf("}") - 1), W = sanitizeText(W, V), W = wrapLabel(W, B.textMaxWidth, G), W = W.replaceAll(" ", " "), W += "<br/>");
|
|
200
|
+
}
|
|
201
|
+
let J = W !== void 0;
|
|
202
|
+
J && (q += `<br/><br/><code style="text-align: left; display: block;max-width:${B.textMaxWidth}px">${W}</code>`);
|
|
203
|
+
let Y = {
|
|
204
|
+
fontSize: G.fontSize,
|
|
205
|
+
fontWeight: G.fontWeight,
|
|
206
|
+
fontFamily: G.fontFamily
|
|
207
|
+
}, X = calculateTextDimensions(q, Y), Z = J ? X.width / 3 : X.width, $ = {
|
|
208
|
+
content: q,
|
|
209
|
+
width: Z,
|
|
210
|
+
height: X.height
|
|
211
|
+
};
|
|
212
|
+
return log.debug(`[${l.name}] ${l.entityIdentifier} text`, $), $;
|
|
213
|
+
}
|
|
214
|
+
__name(calculateTextProps, "calculateTextProps");
|
|
215
|
+
function decidePositionFrame(l, R) {
|
|
216
|
+
let z = R, B = calculateEntityVisualProps(z.frame), V = {
|
|
217
|
+
width: z.textProps.width + 2 * diagramProps.boxTextPadding,
|
|
218
|
+
height: z.textProps.height + 2 * diagramProps.boxTextPadding
|
|
219
|
+
};
|
|
220
|
+
return [{
|
|
221
|
+
$kind: FramePositionedKind,
|
|
222
|
+
frame: z.frame,
|
|
223
|
+
index: z.index,
|
|
224
|
+
visual: B,
|
|
225
|
+
dimension: V,
|
|
226
|
+
textProps: z.textProps
|
|
227
|
+
}];
|
|
228
|
+
}
|
|
229
|
+
__name(decidePositionFrame, "decidePositionFrame");
|
|
230
|
+
function calculateX(l, R, z) {
|
|
231
|
+
return R === void 0 ? diagramProps.contentStartX : R.index === l.index && l.r ? l.r + diagramProps.boxPadding : z === void 0 ? diagramProps.contentStartX : z.r - diagramProps.boxOverlap + diagramProps.boxPadding;
|
|
232
|
+
}
|
|
233
|
+
__name(calculateX, "calculateX");
|
|
234
|
+
function calculateMaxRight(l, R) {
|
|
235
|
+
let z = [...l.map((l) => l.r), R];
|
|
236
|
+
return Math.max(...z);
|
|
237
|
+
}
|
|
238
|
+
__name(calculateMaxRight, "calculateMaxRight");
|
|
239
|
+
function sortedSwimlanesArray(l) {
|
|
240
|
+
return Object.values(l).sort((l, R) => l.index - R.index);
|
|
241
|
+
}
|
|
242
|
+
__name(sortedSwimlanesArray, "sortedSwimlanesArray");
|
|
243
|
+
function evolveFramePositioned(l, R) {
|
|
244
|
+
let z = R, B = calculateSwimlaneProps(z.frame, l.swimlanes), V;
|
|
245
|
+
V = B.index in l.swimlanes ? l.swimlanes[B.index] : {
|
|
246
|
+
index: B.index,
|
|
247
|
+
label: B.label,
|
|
248
|
+
r: 0,
|
|
249
|
+
y: B.index * diagramProps.swimlaneMinHeight + diagramProps.swimlaneGap,
|
|
250
|
+
height: diagramProps.swimlaneMinHeight,
|
|
251
|
+
maxHeight: diagramProps.swimlaneMinHeight
|
|
252
|
+
};
|
|
253
|
+
let H = l.boxes.length > 0 ? l.boxes[l.boxes.length - 1] : void 0, U = l.previousSwimlaneNumber === void 0 ? void 0 : l.swimlanes[l.previousSwimlaneNumber], W = {
|
|
254
|
+
width: Math.max(diagramProps.boxMinWidth, Math.min(diagramProps.boxMaxWidth, z.dimension.width)) + 2 * diagramProps.boxPadding,
|
|
255
|
+
height: Math.max(diagramProps.boxMinHeight, Math.min(diagramProps.boxMaxHeight, z.dimension.height)) + 2 * diagramProps.boxPadding
|
|
256
|
+
}, G = calculateX(V, U, H), K = G + W.width + diagramProps.boxPadding, q = calculateMaxRight(Object.values(l.swimlanes), K);
|
|
257
|
+
V.r = G + W.width, V.maxHeight = Math.max(V.maxHeight, W.height), V.height = Math.max(diagramProps.swimlaneMinHeight, V.maxHeight) + 2 * diagramProps.swimlanePadding;
|
|
258
|
+
let J = {
|
|
259
|
+
x: G,
|
|
260
|
+
y: diagramProps.swimlanePadding + V.y,
|
|
261
|
+
r: K,
|
|
262
|
+
dimension: W,
|
|
263
|
+
leftSibling: !1,
|
|
264
|
+
swimlane: V,
|
|
265
|
+
visual: z.visual,
|
|
266
|
+
text: z.textProps.content,
|
|
267
|
+
frame: z.frame,
|
|
268
|
+
index: z.index
|
|
269
|
+
}, Y = {
|
|
270
|
+
...l,
|
|
271
|
+
boxes: [...l.boxes, J],
|
|
272
|
+
swimlanes: {
|
|
273
|
+
...l.swimlanes,
|
|
274
|
+
[`${V.index}`]: V
|
|
275
|
+
},
|
|
276
|
+
previousSwimlaneNumber: B.index,
|
|
277
|
+
previousFrame: z.frame,
|
|
278
|
+
maxR: q
|
|
279
|
+
}, X = sortedSwimlanesArray(Y.swimlanes);
|
|
280
|
+
X.length > 0 && (X[0].y = 0);
|
|
281
|
+
for (let l = 1; l < X.length; l++) {
|
|
282
|
+
let R = X[l], z = X[l - 1];
|
|
283
|
+
R.y = z.y + z.height + diagramProps.swimlaneGap;
|
|
284
|
+
}
|
|
285
|
+
return Y;
|
|
286
|
+
}
|
|
287
|
+
__name(evolveFramePositioned, "evolveFramePositioned");
|
|
288
|
+
function isFirstFrame(l, R) {
|
|
289
|
+
return l === 0 && R.sourceFrames.length === 0;
|
|
290
|
+
}
|
|
291
|
+
__name(isFirstFrame, "isFirstFrame");
|
|
292
|
+
function hasSourceFrame(l) {
|
|
293
|
+
return l.sourceFrames !== void 0 && l.sourceFrames !== null && l.sourceFrames.length > 0;
|
|
294
|
+
}
|
|
295
|
+
__name(hasSourceFrame, "hasSourceFrame");
|
|
296
|
+
function findBoxByFrame(l, R) {
|
|
297
|
+
if (R != null) return l.find((l) => l.frame.name === R.name);
|
|
298
|
+
}
|
|
299
|
+
__name(findBoxByFrame, "findBoxByFrame");
|
|
300
|
+
function findBoxByLineIndex(l, R, z) {
|
|
301
|
+
if (!(z < 0)) for (let B = z; B >= 0; B--) {
|
|
302
|
+
let z = l[B];
|
|
303
|
+
if (z.swimlane.index !== R) return z;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
__name(findBoxByLineIndex, "findBoxByLineIndex");
|
|
307
|
+
function decidePositionRelation(l, R) {
|
|
308
|
+
let z = R;
|
|
309
|
+
if (isEmResetFrame(z.frame) || isFirstFrame(z.index, z.frame)) return [];
|
|
310
|
+
let B = findBoxByFrame(l.boxes, z.frame);
|
|
311
|
+
if (B === void 0) throw Error(`Target box not found for frame ${z.frame.name}`);
|
|
312
|
+
let V;
|
|
313
|
+
return V = z.sourceFrame ? findBoxByFrame(l.boxes, z.sourceFrame) : findBoxByLineIndex(l.boxes, B.swimlane.index, z.index - 1), V === void 0 ? [] : [{
|
|
314
|
+
$kind: RelationPositionedKind,
|
|
315
|
+
frame: z.frame,
|
|
316
|
+
index: z.index,
|
|
317
|
+
sourceBox: V,
|
|
318
|
+
targetBox: B
|
|
319
|
+
}];
|
|
320
|
+
}
|
|
321
|
+
__name(decidePositionRelation, "decidePositionRelation");
|
|
322
|
+
function evolveRelationPositioned(l, R) {
|
|
323
|
+
let z = R, B = {
|
|
324
|
+
visual: {
|
|
325
|
+
fill: "none",
|
|
326
|
+
stroke: "#000"
|
|
327
|
+
},
|
|
328
|
+
source: {
|
|
329
|
+
x: z.sourceBox.x,
|
|
330
|
+
y: z.sourceBox.y
|
|
331
|
+
},
|
|
332
|
+
target: {
|
|
333
|
+
x: z.targetBox.x,
|
|
334
|
+
y: z.targetBox.y
|
|
335
|
+
},
|
|
336
|
+
sourceBox: z.sourceBox,
|
|
337
|
+
targetBox: z.targetBox
|
|
338
|
+
};
|
|
339
|
+
return {
|
|
340
|
+
...l,
|
|
341
|
+
relations: [...l.relations, B]
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
__name(evolveRelationPositioned, "evolveRelationPositioned");
|
|
345
|
+
var deciders = {
|
|
346
|
+
[PositionFrameKind]: decidePositionFrame,
|
|
347
|
+
[PositionRelationKind]: decidePositionRelation
|
|
348
|
+
}, evolvers = {
|
|
349
|
+
[FramePositionedKind]: evolveFramePositioned,
|
|
350
|
+
[RelationPositionedKind]: evolveRelationPositioned
|
|
351
|
+
};
|
|
352
|
+
function decide(l, z) {
|
|
353
|
+
let B = deciders[z.$kind];
|
|
354
|
+
if (B == null) return [];
|
|
355
|
+
let V = B(l, z);
|
|
356
|
+
return log.debug("decided events", V), V;
|
|
357
|
+
}
|
|
358
|
+
__name(decide, "decide");
|
|
359
|
+
function evolve(l, z) {
|
|
360
|
+
let B = z.reduce((l, R) => {
|
|
361
|
+
let z = evolvers[R.$kind];
|
|
362
|
+
return z == null ? l : z(l, R);
|
|
363
|
+
}, l);
|
|
364
|
+
return log.debug("evolve events", {
|
|
365
|
+
state: l,
|
|
366
|
+
newState: B,
|
|
367
|
+
events: z
|
|
368
|
+
}), B;
|
|
369
|
+
}
|
|
370
|
+
__name(evolve, "evolve");
|
|
371
|
+
function dispatch(l, R) {
|
|
372
|
+
return evolve(l, decide(l, R));
|
|
373
|
+
}
|
|
374
|
+
__name(dispatch, "dispatch");
|
|
375
|
+
var db = {
|
|
376
|
+
getConfig: getConfig3,
|
|
377
|
+
setOptions,
|
|
378
|
+
getOptions,
|
|
379
|
+
clear: clear2,
|
|
380
|
+
setAccTitle,
|
|
381
|
+
getAccTitle,
|
|
382
|
+
getAccDescription,
|
|
383
|
+
setAccDescription,
|
|
384
|
+
setDiagramTitle,
|
|
385
|
+
getDiagramTitle,
|
|
386
|
+
setAst,
|
|
387
|
+
getDiagramProps,
|
|
388
|
+
getState
|
|
389
|
+
}, parser = { parse: /* @__PURE__ */ __name(async (l) => {
|
|
390
|
+
let z = await parse("eventmodeling", l);
|
|
391
|
+
log.debug(z), db.setAst(z), populateCommonDb(z, db);
|
|
392
|
+
}, "parse") }, DEFAULT_EVENTMODELING_CONFIG2 = getConfig2()?.eventmodeling;
|
|
393
|
+
function renderD3Box(l, R) {
|
|
394
|
+
return (z) => {
|
|
395
|
+
let B = z.swimlane.y + R.swimlanePadding, V = l.append("g").attr("class", "em-box");
|
|
396
|
+
V.append("rect").attr("x", z.x).attr("y", B).attr("rx", "3").attr("width", z.dimension.width).attr("height", z.dimension.height).attr("stroke", z.visual.stroke).attr("fill", z.visual.fill), V.append("foreignObject").attr("x", z.x + R.boxPadding).attr("y", B + 10).attr("width", z.dimension.width - 2 * R.boxPadding).attr("height", z.dimension.height - 2 * R.boxPadding).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%").append("span").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").html(z.text);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
__name(renderD3Box, "renderD3Box");
|
|
400
|
+
function dirUpwards(l, R) {
|
|
401
|
+
return l > R;
|
|
402
|
+
}
|
|
403
|
+
__name(dirUpwards, "dirUpwards");
|
|
404
|
+
function renderD3Relation(l, z, B, V) {
|
|
405
|
+
return (H) => {
|
|
406
|
+
let U = H.sourceBox.swimlane.y + z.swimlanePadding, W = H.targetBox.swimlane.y + z.swimlanePadding, G = dirUpwards(U, W), K = H.sourceBox.x + H.sourceBox.dimension.width * 2 / 3, q = H.targetBox.x + H.targetBox.dimension.width / 3, J, Y;
|
|
407
|
+
log.debug(`rendering relation up=${G} for `, {
|
|
408
|
+
sourceBox: H.sourceBox,
|
|
409
|
+
targetBox: H.targetBox
|
|
410
|
+
}), G ? (J = U, Y = W + H.targetBox.dimension.height) : (J = U + H.sourceBox.dimension.height, Y = W);
|
|
411
|
+
let X = V.emRelationStroke ?? H.visual.stroke;
|
|
412
|
+
l.append("path").attr("class", "em-relation").attr("fill", H.visual.fill).attr("stroke", X).attr("stroke-width", "1").attr("marker-end", `url(#${B})`).attr("d", `M${K} ${J} L${q} ${Y}`);
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
__name(renderD3Relation, "renderD3Relation");
|
|
416
|
+
function renderD3Swimlane(l, R, z, B) {
|
|
417
|
+
return (V) => {
|
|
418
|
+
let H = l.append("g").attr("class", "em-swimlane"), U = B.emSwimlaneBackgroundOdd ?? "rgb(250,250,250)", W = B.emSwimlaneBackgroundStroke ?? "rgb(240,240,240)";
|
|
419
|
+
H.append("rect").attr("x", 0).attr("y", V.y).attr("rx", "3").attr("width", R + z.swimlanePadding).attr("height", V.height).attr("fill", U).attr("stroke", W), H.append("text").attr("font-weight", z.swimlaneTextFontWeight).attr("x", 30).attr("y", V.y + 30).text(V.label);
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
__name(renderD3Swimlane, "renderD3Swimlane");
|
|
423
|
+
var diagram = {
|
|
424
|
+
parser,
|
|
425
|
+
db,
|
|
426
|
+
renderer: { draw: /* @__PURE__ */ __name(function(l, z, B, V) {
|
|
427
|
+
if (log.debug("in eventmodeling renderer", l + "\n", "id:", z, B), !DEFAULT_EVENTMODELING_CONFIG2) throw Error("EventModeling config not found");
|
|
428
|
+
let H = V.db, { themeVariables: U, eventmodeling: G } = getConfig2(), K = select_default(`[id="${z}"]`), q = H.getDiagramProps(), J = H.getState(), Y = `em-arrowhead-${z}`, Q = U.emArrowhead ?? "#000000";
|
|
429
|
+
J.sortedSwimlanesArray.forEach(renderD3Swimlane(K, J.maxR, q, U)), J.boxes.forEach(renderD3Box(K, q)), J.relations.forEach(renderD3Relation(K, q, Y, U)), K.append("defs").append("marker").attr("id", Y).attr("markerWidth", "10").attr("markerHeight", "7").attr("refX", "10").attr("refY", "3.5").attr("orient", "auto").append("polygon").attr("points", "0 0, 10 3.5, 0 7").attr("fill", Q), setupGraphViewbox2(void 0, K, G?.padding ?? 30, G?.useMaxWidth);
|
|
430
|
+
}, "draw") },
|
|
431
|
+
styles: /* @__PURE__ */ __name((l) => "", "getStyles")
|
|
432
|
+
};
|
|
433
|
+
export { diagram };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
3
|
-
import { selectSvgElement } from "./chunk-
|
|
4
|
-
import { cleanAndMerge } from "./chunk-
|
|
2
|
+
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
3
|
+
import { selectSvgElement } from "./chunk-WU5MYG2G.js";
|
|
4
|
+
import { cleanAndMerge } from "./chunk-5ZQYHXKU.js";
|
|
5
5
|
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
6
6
|
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
7
7
|
var DEFAULT_PACKET_CONFIG = defaultConfig_default.packet, PacketDB = class {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, getThemeVariables3, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
2
|
+
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, getThemeVariables3, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
3
3
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import { format } from "../../../../d3-format/src/defaultLocale.js";
|
|
5
5
|
import hierarchy from "../../../../d3-hierarchy/src/hierarchy/index.js";
|
|
6
6
|
import treemap_default from "../../../../d3-hierarchy/src/treemap/index.js";
|
|
7
7
|
import ordinal from "../../../../d3-scale/src/ordinal.js";
|
|
8
8
|
import "../../../../d3/src/index.js";
|
|
9
|
-
import { selectSvgElement } from "./chunk-
|
|
10
|
-
import { cleanAndMerge } from "./chunk-
|
|
11
|
-
import { isLabelStyle, styles2String } from "./chunk-
|
|
9
|
+
import { selectSvgElement } from "./chunk-WU5MYG2G.js";
|
|
10
|
+
import { cleanAndMerge } from "./chunk-5ZQYHXKU.js";
|
|
11
|
+
import { isLabelStyle, styles2String } from "./chunk-NZK2D7GU.js";
|
|
12
12
|
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
13
13
|
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
14
|
-
import { setupViewPortForSVG } from "./chunk-
|
|
14
|
+
import { setupViewPortForSVG } from "./chunk-2J33WTMH.js";
|
|
15
15
|
var TreeMapDB = class {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = setAccTitle, this.getAccTitle = getAccTitle, this.setDiagramTitle = setDiagramTitle, this.getDiagramTitle = getDiagramTitle, this.getAccDescription = getAccDescription, this.setAccDescription = setAccDescription;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __export, __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
2
|
import rgba_default from "../../../../khroma/dist/methods/rgba.js";
|
|
3
3
|
import channel_default from "../../../../khroma/dist/methods/channel.js";
|
|
4
|
-
import { clear, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
4
|
+
import { clear, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
5
5
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
6
6
|
import "../../../../d3/src/index.js";
|
|
7
7
|
import "./chunk-BSJP7CBP.js";
|
|
8
|
-
import { getEdgeId, utils_default } from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import { getRegisteredLayoutAlgorithm, render } from "./chunk-
|
|
8
|
+
import { getEdgeId, utils_default } from "./chunk-5ZQYHXKU.js";
|
|
9
|
+
import "./chunk-L5ZTLDWV.js";
|
|
10
|
+
import "./chunk-NZK2D7GU.js";
|
|
11
|
+
import "./chunk-O5CBEL6O.js";
|
|
12
|
+
import "./chunk-3OPIFGDE.js";
|
|
13
|
+
import "./chunk-KSCS5N6A.js";
|
|
14
|
+
import { getRegisteredLayoutAlgorithm, render } from "./chunk-LZXEDZCA.js";
|
|
15
15
|
import { getDiagramElement } from "./chunk-55IACEB6.js";
|
|
16
|
-
import { setupViewPortForSVG } from "./chunk-
|
|
16
|
+
import { setupViewPortForSVG } from "./chunk-2J33WTMH.js";
|
|
17
17
|
var parser = (function() {
|
|
18
18
|
var e = /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
19
19
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -2,22 +2,22 @@ import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
|
2
2
|
import rgba_default from "../../../../khroma/dist/methods/rgba.js";
|
|
3
3
|
import channel_default from "../../../../khroma/dist/methods/channel.js";
|
|
4
4
|
import { purify } from "../../../../dompurify/dist/purify.es.js";
|
|
5
|
-
import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-
|
|
5
|
+
import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
6
6
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
7
7
|
import "../../../../d3/src/index.js";
|
|
8
8
|
import { JSON_SCHEMA, load } from "./chunk-XPW4576I.js";
|
|
9
9
|
import "./chunk-BSJP7CBP.js";
|
|
10
|
-
import { getEdgeId, utils_default } from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import { isValidShape } from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import { getRegisteredLayoutAlgorithm, render } from "./chunk-
|
|
10
|
+
import { getEdgeId, utils_default } from "./chunk-5ZQYHXKU.js";
|
|
11
|
+
import "./chunk-L5ZTLDWV.js";
|
|
12
|
+
import "./chunk-NZK2D7GU.js";
|
|
13
|
+
import "./chunk-O5CBEL6O.js";
|
|
14
|
+
import { isValidShape } from "./chunk-3OPIFGDE.js";
|
|
15
|
+
import "./chunk-KSCS5N6A.js";
|
|
16
|
+
import { getRegisteredLayoutAlgorithm, render } from "./chunk-LZXEDZCA.js";
|
|
17
17
|
import { getIconStyles } from "./chunk-FMBD7UC4.js";
|
|
18
|
-
import { createTooltip } from "./chunk-
|
|
18
|
+
import { createTooltip } from "./chunk-ND2GUHAM.js";
|
|
19
19
|
import { getDiagramElement } from "./chunk-55IACEB6.js";
|
|
20
|
-
import { setupViewPortForSVG } from "./chunk-
|
|
20
|
+
import { setupViewPortForSVG } from "./chunk-2J33WTMH.js";
|
|
21
21
|
var MERMAID_DOM_ID_PREFIX = "flowchart-", FlowDB = class {
|
|
22
22
|
constructor() {
|
|
23
23
|
this.vertexCounter = 0, this.config = getConfig2(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = setAccTitle, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getAccTitle = getAccTitle, this.getAccDescription = getAccDescription, this.getDiagramTitle = getDiagramTitle, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __toESM } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
2
|
import { require_dayjs_min } from "../../../../dayjs/dayjs.min.js";
|
|
3
3
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
4
|
-
import { clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
4
|
+
import { clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
5
5
|
import max from "../../../../d3-array/src/max.js";
|
|
6
6
|
import min from "../../../../d3-array/src/min.js";
|
|
7
7
|
import { axisBottom, axisTop } from "../../../../d3-axis/src/axis.js";
|
|
@@ -19,7 +19,7 @@ import { timeFormat } from "../../../../d3-time-format/src/defaultLocale.js";
|
|
|
19
19
|
import time from "../../../../d3-scale/src/time.js";
|
|
20
20
|
import "../../../../d3/src/index.js";
|
|
21
21
|
import { require_dist } from "../../../../@braintree/sanitize-url/dist/index.js";
|
|
22
|
-
import { utils_default } from "./chunk-
|
|
22
|
+
import { utils_default } from "./chunk-5ZQYHXKU.js";
|
|
23
23
|
import { require_isoWeek } from "../../../../dayjs/plugin/isoWeek.js";
|
|
24
24
|
import { require_customParseFormat } from "../../../../dayjs/plugin/customParseFormat.js";
|
|
25
25
|
import { require_advancedFormat } from "../../../../dayjs/plugin/advancedFormat.js";
|
|
@@ -931,8 +931,11 @@ var WEEKEND_START_DAY = {
|
|
|
931
931
|
let [_, v] = fixTaskDates(h, g, f, p, m);
|
|
932
932
|
e.endTime = _.toDate(), e.renderEndTime = v;
|
|
933
933
|
}, "checkTaskDates"), fixTaskDates = /* @__PURE__ */ __name(function(e, f, p, m, h) {
|
|
934
|
-
let g = !1, _ = null;
|
|
935
|
-
for (; e <= f;)
|
|
934
|
+
let g = !1, _ = null, v = f.add(1e4, "d");
|
|
935
|
+
for (; e <= f;) {
|
|
936
|
+
if (g || (_ = f.toDate()), g = isInvalidDate(e, p, m, h), g && (f = f.add(1, "d"), f > v)) throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");
|
|
937
|
+
e = e.add(1, "d");
|
|
938
|
+
}
|
|
936
939
|
return [f, _];
|
|
937
940
|
}, "fixTaskDates"), getStartDate = /* @__PURE__ */ __name(function(e, f, h) {
|
|
938
941
|
if (h = h.trim(), (/* @__PURE__ */ __name((e) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, common_default, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox2 } from "./chunk-
|
|
2
|
+
import { clear, common_default, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox2 } from "./chunk-CSCIHK7Q.js";
|
|
3
3
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import "../../../../d3/src/index.js";
|
|
5
|
-
import { cleanAndMerge, random, utils_default } from "./chunk-
|
|
5
|
+
import { cleanAndMerge, random, utils_default } from "./chunk-5ZQYHXKU.js";
|
|
6
6
|
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
7
7
|
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
8
8
|
import { ImperativeState } from "./chunk-QZHKN3VN.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { configureSvgSize } from "./chunk-
|
|
3
|
-
import { selectSvgElement } from "./chunk-
|
|
2
|
+
import { configureSvgSize } from "./chunk-CSCIHK7Q.js";
|
|
3
|
+
import { selectSvgElement } from "./chunk-WU5MYG2G.js";
|
|
4
4
|
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
5
5
|
var parser = { parse: /* @__PURE__ */ __name(async (e) => {
|
|
6
6
|
let i = await parse("info", e);
|
|
7
7
|
log.debug(i);
|
|
8
|
-
}, "parse") }, DEFAULT_INFO_DB = { version: "11.
|
|
8
|
+
}, "parse") }, DEFAULT_INFO_DB = { version: "11.15.0" }, diagram = {
|
|
9
9
|
parser,
|
|
10
10
|
db: { getVersion: /* @__PURE__ */ __name(() => DEFAULT_INFO_DB.version, "getVersion") },
|
|
11
11
|
renderer: { draw: /* @__PURE__ */ __name((e, a, o) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
3
|
-
import { selectSvgElement } from "./chunk-
|
|
4
|
-
import { parseFontSize } from "./chunk-
|
|
2
|
+
import { clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
3
|
+
import { selectSvgElement } from "./chunk-WU5MYG2G.js";
|
|
4
|
+
import { parseFontSize } from "./chunk-5ZQYHXKU.js";
|
|
5
5
|
import { at } from "../../../../roughjs/bundled/rough.esm.js";
|
|
6
6
|
var parser = (function() {
|
|
7
7
|
var n = /* @__PURE__ */ __name(function(e, n, r, i) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __name } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
2
|
+
import { clear, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
3
3
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import arc_default from "../../../../d3-shape/src/arc.js";
|
|
5
5
|
import "../../../../d3/src/index.js";
|
|
6
6
|
import { getIconStyles } from "./chunk-FMBD7UC4.js";
|
|
7
|
-
import { drawBackgroundRect, drawRect, drawText, getNoteRect } from "./chunk-
|
|
7
|
+
import { drawBackgroundRect, drawRect, drawText, getNoteRect } from "./chunk-ND2GUHAM.js";
|
|
8
8
|
var parser = (function() {
|
|
9
9
|
var S = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
10
10
|
for (C ||= {}, w = e.length; w--; C[e[w]] = S);
|
|
@@ -2,14 +2,14 @@ import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
|
2
2
|
import is_dark_default from "../../../../khroma/dist/methods/is_dark.js";
|
|
3
3
|
import lighten_default from "../../../../khroma/dist/methods/lighten.js";
|
|
4
4
|
import darken_default from "../../../../khroma/dist/methods/darken.js";
|
|
5
|
-
import { defaultConfig_default, getConfig2, sanitizeText, setupGraphViewbox } from "./chunk-
|
|
6
|
-
import { selectSvgElement } from "./chunk-
|
|
5
|
+
import { defaultConfig_default, getConfig2, sanitizeText, setupGraphViewbox } from "./chunk-CSCIHK7Q.js";
|
|
6
|
+
import { selectSvgElement } from "./chunk-WU5MYG2G.js";
|
|
7
7
|
import { JSON_SCHEMA, load } from "./chunk-XPW4576I.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import { insertCluster, insertNode, positionNode } from "./chunk-
|
|
8
|
+
import "./chunk-5ZQYHXKU.js";
|
|
9
|
+
import "./chunk-L5ZTLDWV.js";
|
|
10
|
+
import "./chunk-NZK2D7GU.js";
|
|
11
|
+
import "./chunk-O5CBEL6O.js";
|
|
12
|
+
import { insertCluster, insertNode, positionNode } from "./chunk-3OPIFGDE.js";
|
|
13
13
|
import { getIconStyles } from "./chunk-FMBD7UC4.js";
|
|
14
14
|
var parser = (function() {
|
|
15
15
|
var t = /* @__PURE__ */ __name(function(e, t, n, r) {
|