dishui 0.0.65 → 0.0.66
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 +10 -11
- package/dist/chart.js +12 -46
- package/dist/code-editor.js +16 -43
- package/dist/components/Badge/index.js +10 -15
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Button/index.js +62 -89
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +76 -0
- package/dist/components/Card/index.js +178 -69
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Chart/Chart.js +25 -25
- package/dist/components/Chart/Chart.js.map +1 -1
- package/dist/components/Checkbox/index.js +57 -65
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/ChoicePicker/index.d.ts +44 -0
- package/dist/components/ChoicePicker/index.js +81 -0
- package/dist/components/ChoicePicker/index.js.map +1 -0
- package/dist/components/Column/index.d.ts +28 -0
- package/dist/components/Column/index.js +30 -0
- package/dist/components/Column/index.js.map +1 -0
- package/dist/components/DateTimeInput/index.d.ts +44 -0
- package/dist/components/DateTimeInput/index.js +48 -0
- package/dist/components/DateTimeInput/index.js.map +1 -0
- package/dist/components/Demo/index.js +107 -107
- package/dist/components/Demo/index.js.map +1 -1
- package/dist/components/Divider/index.d.ts +20 -0
- package/dist/components/Divider/index.js +30 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/EmptyState/index.js +24 -24
- package/dist/components/EmptyState/index.js.map +1 -1
- package/dist/components/FileUploader/DropZone.js +134 -136
- package/dist/components/FileUploader/DropZone.js.map +1 -1
- package/dist/components/FileUploader/FileItem.js +159 -163
- package/dist/components/FileUploader/FileItem.js.map +1 -1
- package/dist/components/FileUploader/FileUploader.js +126 -127
- package/dist/components/FileUploader/FileUploader.js.map +1 -1
- package/dist/components/FileUploader/UploadQueue.js +62 -62
- package/dist/components/FileUploader/UploadQueue.js.map +1 -1
- package/dist/components/FloatWindow/index.d.ts +28 -0
- package/dist/components/GridLayout/index.d.ts +42 -0
- package/dist/components/Icon/index.d.ts +24 -0
- package/dist/components/Icon/index.js +26 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Image/index.d.ts +33 -0
- package/dist/components/Image/index.js +44 -0
- package/dist/components/Image/index.js.map +1 -0
- package/dist/components/Input/index.js +196 -197
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Label/index.js +62 -74
- package/dist/components/Label/index.js.map +1 -1
- package/dist/components/Layout/index.js +134 -139
- package/dist/components/Layout/index.js.map +1 -1
- package/dist/components/List/index.js +45 -58
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Markdown/Markdown.js +106 -107
- package/dist/components/Markdown/Markdown.js.map +1 -1
- package/dist/components/Markdown/codeThemes.js +24 -33
- package/dist/components/Markdown/codeThemes.js.map +1 -1
- package/dist/components/Markdown/markdownComponents.js +203 -208
- package/dist/components/Markdown/markdownComponents.js.map +1 -1
- package/dist/components/Markdown/parseCodeBlockMeta.js +22 -22
- package/dist/components/Markdown/parseCodeBlockMeta.js.map +1 -1
- package/dist/components/Markdown/useMarkdownSource.js +46 -46
- package/dist/components/Markdown/useMarkdownSource.js.map +1 -1
- package/dist/components/Markdown/useMarkmapRenderer.js +35 -36
- package/dist/components/Markdown/useMarkmapRenderer.js.map +1 -1
- package/dist/components/Markdown/useMermaidRenderer.js +41 -42
- package/dist/components/Markdown/useMermaidRenderer.js.map +1 -1
- package/dist/components/Modal/index.js +82 -82
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/MultipleChoice/index.d.ts +44 -0
- package/dist/components/MultipleChoice/index.js +52 -0
- package/dist/components/MultipleChoice/index.js.map +1 -0
- package/dist/components/Notification/index.d.ts +17 -0
- package/dist/components/Page/index.js +40 -71
- package/dist/components/Page/index.js.map +1 -1
- package/dist/components/PageHeader/index.js +28 -28
- package/dist/components/PageHeader/index.js.map +1 -1
- package/dist/components/ProtectedRoute/index.js +8 -9
- package/dist/components/ProtectedRoute/index.js.map +1 -1
- package/dist/components/Row/index.d.ts +28 -0
- package/dist/components/Row/index.js +30 -0
- package/dist/components/Row/index.js.map +1 -0
- package/dist/components/Select/index.js +251 -254
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/SidebarToggleButton/index.js +56 -59
- package/dist/components/SidebarToggleButton/index.js.map +1 -1
- package/dist/components/Slider/index.d.ts +39 -0
- package/dist/components/Slider/index.js +52 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/StatCard/index.d.ts +29 -1
- package/dist/components/StatCard/index.js +189 -86
- package/dist/components/StatCard/index.js.map +1 -1
- package/dist/components/Switch/index.d.ts +34 -0
- package/dist/components/Switch/index.js +55 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Tab/index.d.ts +40 -0
- package/dist/components/Table/index.js +109 -121
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Tabs/index.js +28 -38
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Text/index.d.ts +43 -0
- package/dist/components/Text/index.js +55 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +23 -0
- package/dist/components/Tooltip/index.js +34 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/Tree/Tree.js +205 -205
- package/dist/components/Tree/Tree.js.map +1 -1
- package/dist/components/pro/ArticleContextMenu/index.js +86 -87
- package/dist/components/pro/ArticleContextMenu/index.js.map +1 -1
- package/dist/components/pro/ArticleControl/ArticleControl2.js +250 -250
- package/dist/components/pro/ArticleControl/ArticleControl2.js.map +1 -1
- package/dist/components/pro/ArticleControl/buildHeadingTree.js +31 -32
- package/dist/components/pro/ArticleControl/buildHeadingTree.js.map +1 -1
- package/dist/components/pro/ArticleControl/useArticleToc.js +100 -102
- package/dist/components/pro/ArticleControl/useArticleToc.js.map +1 -1
- package/dist/components/pro/Calendar/Calendar.d.ts +10 -0
- package/dist/components/pro/Calendar/hooks/useCalendarDrag.d.ts +47 -0
- package/dist/components/pro/Calendar/hooks/useCalendarState.d.ts +56 -0
- package/dist/components/pro/Calendar/index.d.ts +7 -0
- package/dist/components/pro/Calendar/types.d.ts +151 -0
- package/dist/components/pro/Calendar/utils.d.ts +94 -0
- package/dist/components/pro/Chat/Chat.d.ts +6 -0
- package/dist/components/pro/Chat/index.d.ts +2 -0
- package/dist/components/pro/Chat/types.d.ts +84 -0
- package/dist/components/pro/CodeEditor/editors/CodeEditor.js +287 -327
- package/dist/components/pro/CodeEditor/editors/CodeEditor.js.map +1 -1
- package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js +167 -224
- package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js.map +1 -1
- package/dist/components/pro/CodeEditor/editors/markdownExtensions.js +594 -613
- package/dist/components/pro/CodeEditor/editors/markdownExtensions.js.map +1 -1
- package/dist/components/pro/CodeEditor/extensions/contextMenu.js +54 -55
- package/dist/components/pro/CodeEditor/extensions/contextMenu.js.map +1 -1
- package/dist/components/pro/CodeEditor/extensions/index.js +152 -160
- package/dist/components/pro/CodeEditor/extensions/index.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/index.js +7 -15
- package/dist/components/pro/CodeEditor/langs/index.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/javascript.js +11 -48
- package/dist/components/pro/CodeEditor/langs/javascript.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/python.js +4 -40
- package/dist/components/pro/CodeEditor/langs/python.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/snippets.js +118 -147
- package/dist/components/pro/CodeEditor/langs/snippets.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/FootnotePanel.js +153 -153
- package/dist/components/pro/CodeEditor/panels/FootnotePanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/HistoryPanel.js +180 -190
- package/dist/components/pro/CodeEditor/panels/HistoryPanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/OutlinePanel.js +130 -137
- package/dist/components/pro/CodeEditor/panels/OutlinePanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/TableOfContentsPanel.js +228 -242
- package/dist/components/pro/CodeEditor/panels/TableOfContentsPanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/VariablePanel.js +208 -248
- package/dist/components/pro/CodeEditor/panels/VariablePanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/themes.js +513 -483
- package/dist/components/pro/CodeEditor/themes.js.map +1 -1
- package/dist/components/pro/CodeEditor/types.d.ts +1 -1
- package/dist/components/pro/CodeEditor/utils.js +171 -175
- package/dist/components/pro/CodeEditor/utils.js.map +1 -1
- package/dist/components/pro/DataTable/DataTable.js +305 -306
- package/dist/components/pro/DataTable/DataTable.js.map +1 -1
- package/dist/components/pro/DataTable/Filters.js +299 -314
- package/dist/components/pro/DataTable/Filters.js.map +1 -1
- package/dist/components/pro/DataTable/PivotPanel.js +203 -204
- package/dist/components/pro/DataTable/PivotPanel.js.map +1 -1
- package/dist/components/pro/DataTable/PivotView.js +142 -144
- package/dist/components/pro/DataTable/PivotView.js.map +1 -1
- package/dist/components/pro/DataTable/components/BulkActions.js +42 -42
- package/dist/components/pro/DataTable/components/BulkActions.js.map +1 -1
- package/dist/components/pro/DataTable/components/ColumnSelector.js +84 -84
- package/dist/components/pro/DataTable/components/ColumnSelector.js.map +1 -1
- package/dist/components/pro/DataTable/components/FilterBar.js +58 -58
- package/dist/components/pro/DataTable/components/FilterBar.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableBody.js +93 -94
- package/dist/components/pro/DataTable/components/TableBody.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableHeader.js +78 -78
- package/dist/components/pro/DataTable/components/TableHeader.js.map +1 -1
- package/dist/components/pro/DataTable/components/TablePagination.js +77 -77
- package/dist/components/pro/DataTable/components/TablePagination.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableToolbar.js +40 -40
- package/dist/components/pro/DataTable/components/TableToolbar.js.map +1 -1
- package/dist/components/pro/DataTable/extension.js +5 -5
- package/dist/components/pro/DataTable/extension.js.map +1 -1
- package/dist/components/pro/DataTable/pivotEngine.js +84 -92
- package/dist/components/pro/DataTable/pivotEngine.js.map +1 -1
- package/dist/components/pro/DataTable/pivotExtension.js +93 -93
- package/dist/components/pro/DataTable/pivotExtension.js.map +1 -1
- package/dist/components/pro/DataTable/rowDetailExtension.js +30 -30
- package/dist/components/pro/DataTable/rowDetailExtension.js.map +1 -1
- package/dist/components/pro/DataTable/tanstack-table.js +45 -62
- package/dist/components/pro/DataTable/tanstack-table.js.map +1 -1
- package/dist/components/pro/DataTable/treeDataUtils.js +37 -48
- package/dist/components/pro/DataTable/treeDataUtils.js.map +1 -1
- package/dist/components/pro/DataTable/useColumnDragReorder.js +68 -68
- package/dist/components/pro/DataTable/useColumnDragReorder.js.map +1 -1
- package/dist/components/pro/DataTable/utils.js +156 -168
- package/dist/components/pro/DataTable/utils.js.map +1 -1
- package/dist/components/pro/FileExplorer/Breadcrumb.js +180 -180
- package/dist/components/pro/FileExplorer/Breadcrumb.js.map +1 -1
- package/dist/components/pro/FileExplorer/CreateDialog.js +78 -78
- package/dist/components/pro/FileExplorer/CreateDialog.js.map +1 -1
- package/dist/components/pro/FileExplorer/FileExplorer.js +202 -205
- package/dist/components/pro/FileExplorer/FileExplorer.js.map +1 -1
- package/dist/components/pro/FileExplorer/FileIcon.js +189 -189
- package/dist/components/pro/FileExplorer/FileIcon.js.map +1 -1
- package/dist/components/pro/FileExplorer/GridView.js +100 -100
- package/dist/components/pro/FileExplorer/GridView.js.map +1 -1
- package/dist/components/pro/FileExplorer/ListView.js +209 -209
- package/dist/components/pro/FileExplorer/ListView.js.map +1 -1
- package/dist/components/pro/FileExplorer/Toolbar.js +199 -199
- package/dist/components/pro/FileExplorer/Toolbar.js.map +1 -1
- package/dist/components/pro/Flow/Flow.js +920 -948
- package/dist/components/pro/Flow/Flow.js.map +1 -1
- package/dist/components/pro/Flow/FlowCanvas.js +1626 -1662
- package/dist/components/pro/Flow/FlowCanvas.js.map +1 -1
- package/dist/components/pro/Flow/archify/build.js +85 -94
- package/dist/components/pro/Flow/archify/build.js.map +1 -1
- package/dist/components/pro/Flow/archify/convert.js +512 -519
- package/dist/components/pro/Flow/archify/convert.js.map +1 -1
- package/dist/components/pro/Flow/archify/palette.js +87 -104
- package/dist/components/pro/Flow/archify/palette.js.map +1 -1
- package/dist/components/pro/Flow/archify/presets.js +34 -37
- package/dist/components/pro/Flow/archify/presets.js.map +1 -1
- package/dist/components/pro/Flow/archify/spec.js +7 -7
- package/dist/components/pro/Flow/archify/spec.js.map +1 -1
- package/dist/components/pro/Flow/canvas/AlignmentGuides.js +25 -25
- package/dist/components/pro/Flow/canvas/AlignmentGuides.js.map +1 -1
- package/dist/components/pro/Flow/canvas/GridRenderer.js +54 -55
- package/dist/components/pro/Flow/canvas/GridRenderer.js.map +1 -1
- package/dist/components/pro/Flow/canvas/MiniMapRenderer.js +54 -58
- package/dist/components/pro/Flow/canvas/MiniMapRenderer.js.map +1 -1
- package/dist/components/pro/Flow/canvas/PixiApp.js +105 -102
- package/dist/components/pro/Flow/canvas/PixiApp.js.map +1 -1
- package/dist/components/pro/Flow/canvas/SelectionOverlay.js +38 -38
- package/dist/components/pro/Flow/canvas/SelectionOverlay.js.map +1 -1
- package/dist/components/pro/Flow/canvas/ViewportContainer.js +117 -117
- package/dist/components/pro/Flow/canvas/ViewportContainer.js.map +1 -1
- package/dist/components/pro/Flow/constants.js +266 -278
- package/dist/components/pro/Flow/constants.js.map +1 -1
- package/dist/components/pro/Flow/context/FlowAIContext.js +27 -28
- package/dist/components/pro/Flow/context/FlowAIContext.js.map +1 -1
- package/dist/components/pro/Flow/context/FlowContext.js +60 -61
- package/dist/components/pro/Flow/context/FlowContext.js.map +1 -1
- package/dist/components/pro/Flow/context/FlowUIContext.js +115 -117
- package/dist/components/pro/Flow/context/FlowUIContext.js.map +1 -1
- package/dist/components/pro/Flow/edges/EdgeRenderer.js +135 -138
- package/dist/components/pro/Flow/edges/EdgeRenderer.js.map +1 -1
- package/dist/components/pro/Flow/edges/edgeMarkers.js +11 -14
- package/dist/components/pro/Flow/edges/edgeMarkers.js.map +1 -1
- package/dist/components/pro/Flow/edges/edgePaths.js +351 -367
- package/dist/components/pro/Flow/edges/edgePaths.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useAlignmentGuides.js +49 -52
- package/dist/components/pro/Flow/hooks/useAlignmentGuides.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useClipboard.js +154 -154
- package/dist/components/pro/Flow/hooks/useClipboard.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useCompactMode.js +17 -17
- package/dist/components/pro/Flow/hooks/useCompactMode.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useDeleteSelection.js +40 -40
- package/dist/components/pro/Flow/hooks/useDeleteSelection.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useDraggablePanel.js +51 -51
- package/dist/components/pro/Flow/hooks/useDraggablePanel.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useEdgeMutations.js +157 -157
- package/dist/components/pro/Flow/hooks/useEdgeMutations.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useFlowImportExport.js +190 -201
- package/dist/components/pro/Flow/hooks/useFlowImportExport.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js +32 -38
- package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useLayoutActions.js +172 -180
- package/dist/components/pro/Flow/hooks/useLayoutActions.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useLineMutations.js +57 -57
- package/dist/components/pro/Flow/hooks/useLineMutations.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useMindMap.js +229 -238
- package/dist/components/pro/Flow/hooks/useMindMap.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useNodeMutations.js +102 -102
- package/dist/components/pro/Flow/hooks/useNodeMutations.js.map +1 -1
- package/dist/components/pro/Flow/hooks/usePdfExport.js +55 -56
- package/dist/components/pro/Flow/hooks/usePdfExport.js.map +1 -1
- package/dist/components/pro/Flow/hooks/usePixiApp.js +55 -57
- package/dist/components/pro/Flow/hooks/usePixiApp.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useResizablePanel.js +31 -31
- package/dist/components/pro/Flow/hooks/useResizablePanel.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useSelection.js +69 -69
- package/dist/components/pro/Flow/hooks/useSelection.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useUndoRedo.js +27 -27
- package/dist/components/pro/Flow/hooks/useUndoRedo.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useViewport.js +28 -28
- package/dist/components/pro/Flow/hooks/useViewport.js.map +1 -1
- package/dist/components/pro/Flow/lines/FreehandTool.js +63 -63
- package/dist/components/pro/Flow/lines/FreehandTool.js.map +1 -1
- package/dist/components/pro/Flow/lines/GeometricLineTool.js +80 -80
- package/dist/components/pro/Flow/lines/GeometricLineTool.js.map +1 -1
- package/dist/components/pro/Flow/lines/LineRenderer.js +88 -88
- package/dist/components/pro/Flow/lines/LineRenderer.js.map +1 -1
- package/dist/components/pro/Flow/lines/lineSmoothing.js +32 -34
- package/dist/components/pro/Flow/lines/lineSmoothing.js.map +1 -1
- package/dist/components/pro/Flow/nodes/DataNodeView.js +236 -242
- package/dist/components/pro/Flow/nodes/DataNodeView.js.map +1 -1
- package/dist/components/pro/Flow/nodes/MediaContent.js +236 -246
- package/dist/components/pro/Flow/nodes/MediaContent.js.map +1 -1
- package/dist/components/pro/Flow/nodes/MediaOverlay.js +63 -63
- package/dist/components/pro/Flow/nodes/MediaOverlay.js.map +1 -1
- package/dist/components/pro/Flow/nodes/Model3DView.js +111 -113
- package/dist/components/pro/Flow/nodes/Model3DView.js.map +1 -1
- package/dist/components/pro/Flow/nodes/NodeHandles.js +74 -80
- package/dist/components/pro/Flow/nodes/NodeHandles.js.map +1 -1
- package/dist/components/pro/Flow/nodes/NodeRenderer.js +303 -314
- package/dist/components/pro/Flow/nodes/NodeRenderer.js.map +1 -1
- package/dist/components/pro/Flow/nodes/NodeText.js +25 -29
- package/dist/components/pro/Flow/nodes/NodeText.js.map +1 -1
- package/dist/components/pro/Flow/nodes/aiClient.js +124 -137
- package/dist/components/pro/Flow/nodes/aiClient.js.map +1 -1
- package/dist/components/pro/Flow/nodes/animAnchors.js +42 -49
- package/dist/components/pro/Flow/nodes/animAnchors.js.map +1 -1
- package/dist/components/pro/Flow/nodes/dataUtils.js +246 -267
- package/dist/components/pro/Flow/nodes/dataUtils.js.map +1 -1
- package/dist/components/pro/Flow/nodes/nodeUtils.js +23 -28
- package/dist/components/pro/Flow/nodes/nodeUtils.js.map +1 -1
- package/dist/components/pro/Flow/nodes/shapes.js +556 -589
- package/dist/components/pro/Flow/nodes/shapes.js.map +1 -1
- package/dist/components/pro/Flow/nodes/svgIconTexture.js +37 -39
- package/dist/components/pro/Flow/nodes/svgIconTexture.js.map +1 -1
- package/dist/components/pro/Flow/nodes/svgIcons.js +684 -689
- package/dist/components/pro/Flow/nodes/svgIcons.js.map +1 -1
- package/dist/components/pro/Flow/panels/AIPanel.js +464 -491
- package/dist/components/pro/Flow/panels/AIPanel.js.map +1 -1
- package/dist/components/pro/Flow/panels/Breadcrumb.js +41 -41
- package/dist/components/pro/Flow/panels/Breadcrumb.js.map +1 -1
- package/dist/components/pro/Flow/panels/ContextMenu.js +37 -37
- package/dist/components/pro/Flow/panels/ContextMenu.js.map +1 -1
- package/dist/components/pro/Flow/panels/DataInspectorSection.js +428 -432
- package/dist/components/pro/Flow/panels/DataInspectorSection.js.map +1 -1
- package/dist/components/pro/Flow/panels/ExpandableTextarea.js +61 -62
- package/dist/components/pro/Flow/panels/ExpandableTextarea.js.map +1 -1
- package/dist/components/pro/Flow/panels/FlowPanelGroup.js +114 -114
- package/dist/components/pro/Flow/panels/FlowPanelGroup.js.map +1 -1
- package/dist/components/pro/Flow/panels/FlowToolbar.js +347 -391
- package/dist/components/pro/Flow/panels/FlowToolbar.js.map +1 -1
- package/dist/components/pro/Flow/panels/InspectorPanel.js +1792 -1798
- package/dist/components/pro/Flow/panels/InspectorPanel.js.map +1 -1
- package/dist/components/pro/Flow/panels/OutlinePanel.js +242 -248
- package/dist/components/pro/Flow/panels/OutlinePanel.js.map +1 -1
- package/dist/components/pro/Flow/panels/PresentationMode.js +137 -140
- package/dist/components/pro/Flow/panels/PresentationMode.js.map +1 -1
- package/dist/components/pro/Flow/panels/ProjectTitle.js +46 -46
- package/dist/components/pro/Flow/panels/ProjectTitle.js.map +1 -1
- package/dist/components/pro/Flow/panels/ShapePalette.js +557 -572
- package/dist/components/pro/Flow/panels/ShapePalette.js.map +1 -1
- package/dist/components/pro/Flow/panels/toolbarIcons.d.ts +0 -1
- package/dist/components/pro/Flow/panels/toolbarIcons.js +508 -557
- package/dist/components/pro/Flow/panels/toolbarIcons.js.map +1 -1
- package/dist/components/pro/Flow/types.js +26 -26
- package/dist/components/pro/Flow/types.js.map +1 -1
- package/dist/components/pro/Flow/utils/dashedLine.js +113 -117
- package/dist/components/pro/Flow/utils/dashedLine.js.map +1 -1
- package/dist/components/pro/Flow/utils/gradient.js +55 -55
- package/dist/components/pro/Flow/utils/gradient.js.map +1 -1
- package/dist/components/pro/Flow/utils/pdfExport.js +50 -89
- package/dist/components/pro/Flow/utils/pdfExport.js.map +1 -1
- package/dist/components/pro/Flow/utils/themeColor.js +185 -195
- package/dist/components/pro/Flow/utils/themeColor.js.map +1 -1
- package/dist/components/pro/Gantt/Gantt.d.ts +7 -0
- package/dist/components/pro/Gantt/hooks/useGanttDrag.d.ts +31 -0
- package/dist/components/pro/Gantt/hooks/useGanttState.d.ts +58 -0
- package/dist/components/pro/Gantt/index.d.ts +6 -0
- package/dist/components/pro/Gantt/types.d.ts +478 -0
- package/dist/components/pro/Gantt/utils.d.ts +124 -0
- package/dist/components/pro/Resizable/Resizable.d.ts +30 -0
- package/dist/components/pro/Resizable/index.d.ts +2 -0
- package/dist/components/pro/RichTextEditor/AIRewrite.js +323 -334
- package/dist/components/pro/RichTextEditor/AIRewrite.js.map +1 -1
- package/dist/components/pro/RichTextEditor/BlockHandle.js +314 -316
- package/dist/components/pro/RichTextEditor/BlockHandle.js.map +1 -1
- package/dist/components/pro/RichTextEditor/BubbleToolbar.js +97 -97
- package/dist/components/pro/RichTextEditor/BubbleToolbar.js.map +1 -1
- package/dist/components/pro/RichTextEditor/CommentDialog.js +88 -88
- package/dist/components/pro/RichTextEditor/CommentDialog.js.map +1 -1
- package/dist/components/pro/RichTextEditor/CommentPanel.js +240 -240
- package/dist/components/pro/RichTextEditor/CommentPanel.js.map +1 -1
- package/dist/components/pro/RichTextEditor/CommentPopover.js +234 -234
- package/dist/components/pro/RichTextEditor/CommentPopover.js.map +1 -1
- package/dist/components/pro/RichTextEditor/ContextMenu.js +251 -252
- package/dist/components/pro/RichTextEditor/ContextMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/RichTextEditor.js +267 -271
- package/dist/components/pro/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/components/pro/RichTextEditor/SlashMenu.js +214 -214
- package/dist/components/pro/RichTextEditor/SlashMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js +44 -75
- package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/FloatingDialogMenu.js +261 -261
- package/dist/components/pro/RichTextEditor/Toolbar/FloatingDialogMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/MarkdownTemplates.js +172 -526
- package/dist/components/pro/RichTextEditor/Toolbar/MarkdownTemplates.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js +112 -114
- package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/TableOpsMenu.js +194 -194
- package/dist/components/pro/RichTextEditor/Toolbar/TableOpsMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/Toolbar.js +970 -973
- package/dist/components/pro/RichTextEditor/Toolbar/Toolbar.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/ToolbarButton.js +11 -12
- package/dist/components/pro/RichTextEditor/Toolbar/ToolbarButton.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js +310 -344
- package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/CommentMark.js +38 -39
- package/dist/components/pro/RichTextEditor/extensions/CommentMark.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/FloatingDialog.js +620 -625
- package/dist/components/pro/RichTextEditor/extensions/FloatingDialog.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/FontSize.js +25 -25
- package/dist/components/pro/RichTextEditor/extensions/FontSize.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/MarkdownBlock.js +167 -176
- package/dist/components/pro/RichTextEditor/extensions/MarkdownBlock.js.map +1 -1
- package/dist/components/pro/RichTextEditor/types.js +75 -75
- package/dist/components/pro/RichTextEditor/types.js.map +1 -1
- package/dist/contexts/AppContext.d.ts +1 -1
- package/dist/contexts/AppContext.js +216 -221
- package/dist/contexts/AppContext.js.map +1 -1
- package/dist/data-table.js +15 -41
- package/dist/data-table.js.map +1 -1
- package/dist/dishui.css +1 -1
- package/dist/flow.js +27 -83
- package/dist/hooks/useClickOutside.js +18 -18
- package/dist/hooks/useClickOutside.js.map +1 -1
- package/dist/hooks/useContainerElement.js +9 -9
- package/dist/hooks/useContainerElement.js.map +1 -1
- package/dist/hooks/useControllableState.js +33 -35
- package/dist/hooks/useControllableState.js.map +1 -1
- package/dist/hooks/useCopyToClipboard.js +16 -16
- package/dist/hooks/useCopyToClipboard.js.map +1 -1
- package/dist/hooks/useDebounce.js +14 -14
- package/dist/hooks/useDebounce.js.map +1 -1
- package/dist/hooks/useDraggable.js +50 -50
- package/dist/hooks/useDraggable.js.map +1 -1
- package/dist/hooks/useTableColumns.js +39 -41
- package/dist/hooks/useTableColumns.js.map +1 -1
- package/dist/hooks/useTableData.js +67 -68
- package/dist/hooks/useTableData.js.map +1 -1
- package/dist/index-nostyled.d.ts +8 -0
- package/dist/index.d.ts +27 -1
- package/dist/index.js +105 -241
- package/dist/layouts/MainLayout.js +56 -56
- package/dist/layouts/MainLayout.js.map +1 -1
- package/dist/layouts/Navbar.js +214 -214
- package/dist/layouts/Navbar.js.map +1 -1
- package/dist/layouts/Sidebar.js +184 -186
- package/dist/layouts/Sidebar.js.map +1 -1
- package/dist/layouts/headbar/Headbar.js +25 -25
- package/dist/layouts/headbar/Headbar.js.map +1 -1
- package/dist/layouts/headbar/HeadbarLangSwitcher.js +39 -39
- package/dist/layouts/headbar/HeadbarLangSwitcher.js.map +1 -1
- package/dist/layouts/headbar/HeadbarSearch.js +120 -120
- package/dist/layouts/headbar/HeadbarSearch.js.map +1 -1
- package/dist/layouts/headbar/HeadbarThemeSwitcher.js +27 -27
- package/dist/layouts/headbar/HeadbarThemeSwitcher.js.map +1 -1
- package/dist/layouts/headbar/HeadbarTitle.js +26 -26
- package/dist/layouts/headbar/HeadbarTitle.js.map +1 -1
- package/dist/lite.js +9 -24
- package/dist/markdown.js +4 -9
- package/dist/pages/components/Calendar/index.d.ts +3 -0
- package/dist/pages/components/Calendar/index.en.d.ts +3 -0
- package/dist/pages/components/Calendar/index.zh.d.ts +3 -0
- package/dist/pages/components/Chat/index.d.ts +3 -0
- package/dist/pages/components/Chat/index.en.d.ts +3 -0
- package/dist/pages/components/Chat/index.zh.d.ts +3 -0
- package/dist/pages/components/FloatWindow/index.d.ts +3 -0
- package/dist/pages/components/FloatWindow/index.en.d.ts +3 -0
- package/dist/pages/components/FloatWindow/index.zh.d.ts +3 -0
- package/dist/pages/components/Gantt/index.d.ts +3 -0
- package/dist/pages/components/Gantt/index.en.d.ts +3 -0
- package/dist/pages/components/Gantt/index.zh.d.ts +3 -0
- package/dist/pages/components/GridLayout/index.d.ts +3 -0
- package/dist/pages/components/GridLayout/index.en.d.ts +3 -0
- package/dist/pages/components/GridLayout/index.zh.d.ts +3 -0
- package/dist/pages/components/Notification/index.d.ts +3 -0
- package/dist/pages/components/Notification/index.en.d.ts +3 -0
- package/dist/pages/components/Notification/index.zh.d.ts +3 -0
- package/dist/pages/components/Resizable/index.d.ts +3 -0
- package/dist/pages/components/Resizable/index.en.d.ts +3 -0
- package/dist/pages/components/Resizable/index.zh.d.ts +3 -0
- package/dist/pages/components/Tab/index.d.ts +3 -0
- package/dist/pages/components/Tab/index.en.d.ts +3 -0
- package/dist/pages/components/Tab/index.zh.d.ts +3 -0
- package/dist/styles/themeStyles.js +87 -86
- package/dist/styles/themeStyles.js.map +1 -1
- package/dist/utils/cn.d.ts +13 -0
- package/dist/utils/cn.js +16 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/i18n.js +690 -602
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/menu.js +94 -94
- package/dist/utils/menu.js.map +1 -1
- package/dist/utils/rehype-code-meta.js +14 -14
- package/dist/utils/rehype-code-meta.js.map +1 -1
- package/dist/utils/remark-code-meta.js +9 -9
- package/dist/utils/remark-code-meta.js.map +1 -1
- package/dist/utils/routerBuilder.js +59 -60
- package/dist/utils/routerBuilder.js.map +1 -1
- package/dist/utils/selection.js +28 -29
- package/dist/utils/selection.js.map +1 -1
- package/dist/utils/themes.js +275 -255
- package/dist/utils/themes.js.map +1 -1
- package/package.json +19 -6
|
@@ -1,534 +1,527 @@
|
|
|
1
|
-
import { ROOT_CANVAS_ID as
|
|
2
|
-
import { ARCHIFY_LANE_STROKE as
|
|
3
|
-
import { card as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ROOT_CANVAS_ID as e } from "../constants.js";
|
|
2
|
+
import { ARCHIFY_LANE_STROKE as t, ARCHIFY_TEXT_MUTED as n, componentStyle as r, messageEdgeStyle as i, stateStyle as a, variantEdgeStyle as o } from "./palette.js";
|
|
3
|
+
import { card as s, edge as c, frame as l, sideHandle as u, uid as d } from "./build.js";
|
|
4
|
+
//#region src/components/pro/Flow/archify/convert.ts
|
|
5
|
+
function f(e) {
|
|
6
|
+
return e.meta?.animation === "trace";
|
|
6
7
|
}
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
var p = {
|
|
9
|
+
origin: [40, 80],
|
|
10
|
+
cols: 4,
|
|
11
|
+
gapX: 30,
|
|
12
|
+
gapY: 40,
|
|
13
|
+
cellW: 130,
|
|
14
|
+
cellH: 64
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return $(h, x, [], n.meta.title);
|
|
16
|
+
function m(e) {
|
|
17
|
+
let i = f(e), a = {
|
|
18
|
+
...p,
|
|
19
|
+
...e.layout
|
|
20
|
+
}, m = [], h = [], g = /* @__PURE__ */ new Map();
|
|
21
|
+
for (let t of e.components) {
|
|
22
|
+
let e, n;
|
|
23
|
+
if (Array.isArray(t.pos)) [e, n] = t.pos;
|
|
24
|
+
else if (Number.isInteger(t.row) && Number.isInteger(t.col)) {
|
|
25
|
+
let r = a.cellW + a.gapX, i = a.cellH + a.gapY;
|
|
26
|
+
e = a.origin[0] + (t.col ?? 0) * r, n = a.origin[1] + (t.row ?? 0) * i;
|
|
27
|
+
} else e = a.origin[0], n = a.origin[1];
|
|
28
|
+
let i = t.size?.[0] ?? a.cellW, o = t.size?.[1] ?? a.cellH;
|
|
29
|
+
g.set(t.id, {
|
|
30
|
+
x: e,
|
|
31
|
+
y: n,
|
|
32
|
+
w: i,
|
|
33
|
+
h: o
|
|
34
|
+
});
|
|
35
|
+
let c = r(t.type);
|
|
36
|
+
m.push(s({
|
|
37
|
+
id: t.id,
|
|
38
|
+
x: e,
|
|
39
|
+
y: n,
|
|
40
|
+
width: i,
|
|
41
|
+
height: o,
|
|
42
|
+
label: t.label,
|
|
43
|
+
sublabel: t.sublabel,
|
|
44
|
+
tag: t.tag,
|
|
45
|
+
fill: c.fill,
|
|
46
|
+
stroke: c.stroke,
|
|
47
|
+
text: c.text,
|
|
48
|
+
sub: c.sub
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
for (let [r, i] of (e.boundaries ?? []).entries()) {
|
|
52
|
+
let e = i.wraps.map((e) => g.get(e)).filter(Boolean);
|
|
53
|
+
if (e.length === 0) continue;
|
|
54
|
+
let a = i.pad ?? 26, o = Math.min(...e.map((e) => e.x)) - a, s = Math.min(...e.map((e) => e.y)) - a - 14, c = Math.max(...e.map((e) => e.x + e.w)) + a, u = Math.max(...e.map((e) => e.y + e.h)) + a;
|
|
55
|
+
m.push(l({
|
|
56
|
+
id: `boundary_${r}_${d("b")}`,
|
|
57
|
+
x: o,
|
|
58
|
+
y: s,
|
|
59
|
+
width: c - o,
|
|
60
|
+
height: u - s,
|
|
61
|
+
label: i.label,
|
|
62
|
+
stroke: i.kind === "security-group" ? "#fb7185" : t,
|
|
63
|
+
borderStyle: "dashed",
|
|
64
|
+
labelColor: i.kind === "security-group" ? "#fb7185" : n,
|
|
65
|
+
zIndex: -10 + r
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
for (let t of e.connections ?? []) {
|
|
69
|
+
let e = o(t.variant);
|
|
70
|
+
h.push(c({
|
|
71
|
+
id: t.id,
|
|
72
|
+
source: t.from,
|
|
73
|
+
target: t.to,
|
|
74
|
+
sourceHandle: u(t.fromSide),
|
|
75
|
+
targetHandle: u(t.toSide),
|
|
76
|
+
label: t.label,
|
|
77
|
+
color: e.color,
|
|
78
|
+
width: t.width ?? e.width,
|
|
79
|
+
lineStyle: e.lineStyle,
|
|
80
|
+
animated: i,
|
|
81
|
+
waypoints: t.via?.map(([e, t]) => ({
|
|
82
|
+
x: e,
|
|
83
|
+
y: t
|
|
84
|
+
}))
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
return C(m, h, [], e.meta.title);
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
89
|
+
var h = {
|
|
90
|
+
laneX: 40,
|
|
91
|
+
laneY: 52,
|
|
92
|
+
laneW: 640,
|
|
93
|
+
laneH: 104,
|
|
94
|
+
laneGap: 20,
|
|
95
|
+
laneTitleH: 30,
|
|
96
|
+
colXs: [
|
|
97
|
+
88,
|
|
98
|
+
220,
|
|
99
|
+
300,
|
|
100
|
+
430,
|
|
101
|
+
500,
|
|
102
|
+
625
|
|
103
|
+
],
|
|
104
|
+
nodeW: 92,
|
|
105
|
+
nodeH: 52
|
|
106
106
|
};
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
107
|
+
function g(e) {
|
|
108
|
+
let i = f(e), a = [], d = [], p = new Map(e.lanes.map((e, t) => [e.id, t])), m = (e) => h.laneY + (p.get(e) ?? 0) * (h.laneH + h.laneGap);
|
|
109
|
+
for (let r of e.lanes) {
|
|
110
|
+
let e = m(r.id);
|
|
111
|
+
a.push(l({
|
|
112
|
+
id: `lane_${r.id}`,
|
|
113
|
+
x: h.laneX,
|
|
114
|
+
y: e,
|
|
115
|
+
width: h.laneW,
|
|
116
|
+
height: h.laneH,
|
|
117
|
+
label: r.label,
|
|
118
|
+
stroke: r.variant === "exception" ? "#fb7185" : t,
|
|
119
|
+
labelColor: r.variant === "exception" ? "#fb7185" : n,
|
|
120
|
+
zIndex: -20
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
for (let [t, r] of (e.phases ?? []).entries()) {
|
|
124
|
+
let e = h.colXs[r.fromCol] - h.nodeW / 2 - 12, i = h.colXs[r.toCol] + h.nodeW / 2 + 12;
|
|
125
|
+
a.push(l({
|
|
126
|
+
id: `phase_${r.id}`,
|
|
127
|
+
x: e,
|
|
128
|
+
y: h.laneY - 34,
|
|
129
|
+
width: i - e,
|
|
130
|
+
height: 26,
|
|
131
|
+
label: r.label,
|
|
132
|
+
stroke: o(r.variant).color,
|
|
133
|
+
labelColor: n,
|
|
134
|
+
borderStyle: "none",
|
|
135
|
+
zIndex: -15 + t
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
138
|
+
for (let [t, r] of (e.groups ?? []).entries()) {
|
|
139
|
+
let e = m(r.lane), i = h.colXs[r.fromCol] - h.nodeW / 2 - 8, s = h.colXs[r.toCol] + h.nodeW / 2 + 8;
|
|
140
|
+
a.push(l({
|
|
141
|
+
id: `wfgroup_${r.id}`,
|
|
142
|
+
x: i,
|
|
143
|
+
y: e + h.laneTitleH - 6,
|
|
144
|
+
width: s - i,
|
|
145
|
+
height: h.laneH - h.laneTitleH,
|
|
146
|
+
label: r.label,
|
|
147
|
+
stroke: o(r.variant).color,
|
|
148
|
+
labelColor: n,
|
|
149
|
+
borderStyle: "dashed",
|
|
150
|
+
zIndex: -12 + t
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
for (let t of e.nodes) {
|
|
154
|
+
let e = t.width ?? h.nodeW, n = t.height ?? (t.tag ? 68 : h.nodeH), i = h.colXs[t.col] ?? h.colXs[h.colXs.length - 1], o = h.laneH - h.laneTitleH, c = m(t.lane) + h.laneTitleH + (o - n) / 2 + (t.yOffset ?? 0), l = r(t.type);
|
|
155
|
+
a.push(s({
|
|
156
|
+
id: t.id,
|
|
157
|
+
x: i - e / 2,
|
|
158
|
+
y: c,
|
|
159
|
+
width: e,
|
|
160
|
+
height: n,
|
|
161
|
+
label: t.label,
|
|
162
|
+
sublabel: t.sublabel,
|
|
163
|
+
tag: t.tag,
|
|
164
|
+
fill: l.fill,
|
|
165
|
+
stroke: l.stroke,
|
|
166
|
+
text: l.text,
|
|
167
|
+
sub: l.sub,
|
|
168
|
+
fontSize: 12
|
|
169
|
+
}));
|
|
170
|
+
}
|
|
171
|
+
let g = /* @__PURE__ */ new Set(), _ = e.mainPath ?? [];
|
|
172
|
+
for (let e = 0; e < _.length - 1; e++) g.add(`${_[e]}->${_[e + 1]}`);
|
|
173
|
+
for (let t of e.edges) {
|
|
174
|
+
let e = g.has(`${t.from}->${t.to}`), n = o(t.variant ?? (e ? "emphasis" : "default"));
|
|
175
|
+
d.push(c({
|
|
176
|
+
id: t.id,
|
|
177
|
+
source: t.from,
|
|
178
|
+
target: t.to,
|
|
179
|
+
sourceHandle: u(t.fromSide),
|
|
180
|
+
targetHandle: u(t.toSide),
|
|
181
|
+
label: t.label,
|
|
182
|
+
color: t.role === "error" ? "#fb7185" : n.color,
|
|
183
|
+
width: t.width ?? n.width,
|
|
184
|
+
lineStyle: t.role === "error" ? "dashed" : n.lineStyle,
|
|
185
|
+
animated: i && e,
|
|
186
|
+
waypoints: t.via?.map(([e, t]) => ({
|
|
187
|
+
x: e,
|
|
188
|
+
y: t
|
|
189
|
+
}))
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
return C(a, d, [], e.meta.title);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
194
|
+
function _(e) {
|
|
195
|
+
let a = [], o = [], c = [], u = e.meta.viewBox ?? [920, 760], f = u[1] - 65, p = (e) => 62 + e * 108, m = /* @__PURE__ */ new Map();
|
|
196
|
+
e.participants.forEach((e, n) => {
|
|
197
|
+
let i = p(n);
|
|
198
|
+
m.set(e.id, i);
|
|
199
|
+
let o = r(e.type);
|
|
200
|
+
a.push(s({
|
|
201
|
+
id: e.id,
|
|
202
|
+
x: i - 43,
|
|
203
|
+
y: 72,
|
|
204
|
+
width: 86,
|
|
205
|
+
height: 54,
|
|
206
|
+
label: e.label,
|
|
207
|
+
sublabel: e.sublabel,
|
|
208
|
+
fill: o.fill,
|
|
209
|
+
stroke: o.stroke,
|
|
210
|
+
text: o.text,
|
|
211
|
+
sub: o.sub,
|
|
212
|
+
fontSize: 11,
|
|
213
|
+
zIndex: 5
|
|
214
|
+
})), c.push({
|
|
215
|
+
id: `lifeline_${e.id}`,
|
|
216
|
+
type: "straight",
|
|
217
|
+
points: [{
|
|
218
|
+
x: i,
|
|
219
|
+
y: 142
|
|
220
|
+
}, {
|
|
221
|
+
x: i,
|
|
222
|
+
y: f
|
|
223
|
+
}],
|
|
224
|
+
strokeColor: t,
|
|
225
|
+
strokeWidth: 1,
|
|
226
|
+
lineStyle: "dashed",
|
|
227
|
+
markerEnd: "none",
|
|
228
|
+
zIndex: -5
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
for (let [r, i] of (e.segments ?? []).entries()) a.push(l({
|
|
232
|
+
id: `segment_${r}`,
|
|
233
|
+
x: 48,
|
|
234
|
+
y: i.from,
|
|
235
|
+
width: u[0] - 96,
|
|
236
|
+
height: i.to - i.from,
|
|
237
|
+
label: i.label,
|
|
238
|
+
stroke: t,
|
|
239
|
+
labelColor: n,
|
|
240
|
+
borderStyle: "dashed",
|
|
241
|
+
zIndex: -10
|
|
242
|
+
}));
|
|
243
|
+
for (let [t, n] of (e.activations ?? []).entries()) {
|
|
244
|
+
let e = m.get(n.participant);
|
|
245
|
+
if (e === void 0) continue;
|
|
246
|
+
let i = r(n.type ?? "backend");
|
|
247
|
+
a.push({
|
|
248
|
+
id: `activation_${t}_${n.participant}`,
|
|
249
|
+
type: "shapeRect",
|
|
250
|
+
position: {
|
|
251
|
+
x: e - 5,
|
|
252
|
+
y: n.from
|
|
253
|
+
},
|
|
254
|
+
width: 10,
|
|
255
|
+
height: Math.max(6, n.to - n.from),
|
|
256
|
+
zIndex: 1,
|
|
257
|
+
data: {
|
|
258
|
+
label: "",
|
|
259
|
+
fill: i.fill,
|
|
260
|
+
stroke: i.stroke,
|
|
261
|
+
strokeWidth: 1,
|
|
262
|
+
color: i.text,
|
|
263
|
+
fontSize: 10,
|
|
264
|
+
borderStyle: "solid",
|
|
265
|
+
attributes: []
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
for (let t of e.messages) {
|
|
270
|
+
let e = m.get(t.from), n = m.get(t.to);
|
|
271
|
+
if (e === void 0 || n === void 0) continue;
|
|
272
|
+
let r = n > e ? 1 : -1, o = e + r * 7, s = n - r * 7, l = i(t.variant);
|
|
273
|
+
c.push({
|
|
274
|
+
id: t.id ?? d("msg"),
|
|
275
|
+
type: "arrow",
|
|
276
|
+
points: [{
|
|
277
|
+
x: o,
|
|
278
|
+
y: t.y
|
|
279
|
+
}, {
|
|
280
|
+
x: s,
|
|
281
|
+
y: t.y
|
|
282
|
+
}],
|
|
283
|
+
strokeColor: l.color,
|
|
284
|
+
strokeWidth: l.width,
|
|
285
|
+
lineStyle: l.lineStyle,
|
|
286
|
+
markerEnd: t.variant === "return" ? "arrow" : "arrowclosed",
|
|
287
|
+
zIndex: 3
|
|
288
|
+
}), a.push({
|
|
289
|
+
id: `mlabel_${t.id ?? d("m")}`,
|
|
290
|
+
type: "textLabel",
|
|
291
|
+
position: {
|
|
292
|
+
x: (o + s) / 2 - 70,
|
|
293
|
+
y: t.y - 22
|
|
294
|
+
},
|
|
295
|
+
width: 140,
|
|
296
|
+
height: 16,
|
|
297
|
+
zIndex: 4,
|
|
298
|
+
data: {
|
|
299
|
+
label: t.label,
|
|
300
|
+
fill: "transparent",
|
|
301
|
+
stroke: "transparent",
|
|
302
|
+
strokeWidth: 0,
|
|
303
|
+
color: l.color,
|
|
304
|
+
labelColor: l.color,
|
|
305
|
+
fontSize: 11,
|
|
306
|
+
attributes: []
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
return C(a, o, c, e.meta.title);
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
312
|
+
var v = {
|
|
313
|
+
stageY: 46,
|
|
314
|
+
stageH: 36,
|
|
315
|
+
stageBottomPad: 74,
|
|
316
|
+
leftX: 100,
|
|
317
|
+
colGap: 215,
|
|
318
|
+
stageW: 168,
|
|
319
|
+
nodeW: 112,
|
|
320
|
+
nodeH: 58,
|
|
321
|
+
rowYs: [
|
|
322
|
+
128,
|
|
323
|
+
242,
|
|
324
|
+
356,
|
|
325
|
+
470,
|
|
326
|
+
584
|
|
327
|
+
]
|
|
328
328
|
};
|
|
329
|
-
function
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
329
|
+
function y(e) {
|
|
330
|
+
let i = f(e), a = [], d = [], p = e.meta.viewBox ?? [940, 720], m = (e) => v.leftX + e * v.colGap;
|
|
331
|
+
for (let [r, i] of e.stages.entries()) a.push(l({
|
|
332
|
+
id: `stage_${r}`,
|
|
333
|
+
x: m(r) - v.stageW / 2,
|
|
334
|
+
y: v.stageY,
|
|
335
|
+
width: v.stageW,
|
|
336
|
+
height: p[1] - v.stageY - v.stageBottomPad,
|
|
337
|
+
label: i.label,
|
|
338
|
+
stroke: t,
|
|
339
|
+
labelColor: n,
|
|
340
|
+
borderStyle: "dashed",
|
|
341
|
+
zIndex: -10
|
|
342
|
+
}));
|
|
343
|
+
for (let t of e.nodes) {
|
|
344
|
+
let e = t.width ?? v.nodeW, n = t.height ?? v.nodeH, i = m(t.stage), o = (v.rowYs[t.row] ?? v.rowYs[v.rowYs.length - 1]) + (t.yOffset ?? 0), c = r(t.type);
|
|
345
|
+
a.push(s({
|
|
346
|
+
id: t.id,
|
|
347
|
+
x: i - e / 2,
|
|
348
|
+
y: o,
|
|
349
|
+
width: e,
|
|
350
|
+
height: n,
|
|
351
|
+
label: t.label,
|
|
352
|
+
sublabel: t.sublabel,
|
|
353
|
+
tag: t.tag,
|
|
354
|
+
fill: c.fill,
|
|
355
|
+
stroke: c.stroke,
|
|
356
|
+
text: c.text,
|
|
357
|
+
sub: c.sub,
|
|
358
|
+
fontSize: 12
|
|
359
|
+
}));
|
|
360
|
+
}
|
|
361
|
+
for (let t of e.flows) {
|
|
362
|
+
let e = o(t.variant);
|
|
363
|
+
d.push(c({
|
|
364
|
+
id: t.id,
|
|
365
|
+
source: t.from,
|
|
366
|
+
target: t.to,
|
|
367
|
+
sourceHandle: u(t.fromSide),
|
|
368
|
+
targetHandle: u(t.toSide),
|
|
369
|
+
label: t.label,
|
|
370
|
+
color: e.color,
|
|
371
|
+
width: t.width ?? e.width,
|
|
372
|
+
lineStyle: e.lineStyle,
|
|
373
|
+
animated: i && t.variant === "emphasis",
|
|
374
|
+
waypoints: t.via?.map(([e, t]) => ({
|
|
375
|
+
x: e,
|
|
376
|
+
y: t
|
|
377
|
+
}))
|
|
378
|
+
}));
|
|
379
|
+
}
|
|
380
|
+
return C(a, d, [], e.meta.title);
|
|
381
381
|
}
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
382
|
+
var b = {
|
|
383
|
+
phaseY: 126,
|
|
384
|
+
eventY: 278,
|
|
385
|
+
outcomeY: 450,
|
|
386
|
+
phaseW: 118,
|
|
387
|
+
phaseH: 62,
|
|
388
|
+
eventW: 126,
|
|
389
|
+
eventH: 58,
|
|
390
|
+
outcomeW: 118,
|
|
391
|
+
outcomeH: 58,
|
|
392
|
+
phaseXs: [
|
|
393
|
+
94,
|
|
394
|
+
248,
|
|
395
|
+
402,
|
|
396
|
+
556,
|
|
397
|
+
710
|
|
398
|
+
],
|
|
399
|
+
eventXs: [
|
|
400
|
+
402,
|
|
401
|
+
556,
|
|
402
|
+
710
|
|
403
|
+
],
|
|
404
|
+
outcomeXs: [
|
|
405
|
+
402,
|
|
406
|
+
556,
|
|
407
|
+
710
|
|
408
|
+
]
|
|
409
409
|
};
|
|
410
|
-
function
|
|
411
|
-
|
|
410
|
+
function x(e) {
|
|
411
|
+
return e === "main" ? "phase" : e === "terminal" ? "outcome" : "event";
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
413
|
+
function S(e) {
|
|
414
|
+
let r = f(e), i = [], d = [], p = e.meta.viewBox ?? [980, 660], m = new Map(e.lanes.map((e) => [e.id, e.label])), h = [
|
|
415
|
+
{
|
|
416
|
+
band: "phase",
|
|
417
|
+
y: b.phaseY - 26,
|
|
418
|
+
h: b.phaseH + 40,
|
|
419
|
+
label: m.get("main") ?? "Lifecycle phases"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
band: "event",
|
|
423
|
+
y: b.eventY - 26,
|
|
424
|
+
h: b.eventH + 40,
|
|
425
|
+
label: "Interruptions + Recovery"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
band: "outcome",
|
|
429
|
+
y: b.outcomeY - 26,
|
|
430
|
+
h: b.outcomeH + 40,
|
|
431
|
+
label: m.get("terminal") ?? "Terminal exits"
|
|
432
|
+
}
|
|
433
|
+
];
|
|
434
|
+
for (let [e, r] of h.entries()) i.push(l({
|
|
435
|
+
id: `band_${r.band}`,
|
|
436
|
+
x: 40,
|
|
437
|
+
y: r.y,
|
|
438
|
+
width: p[0] - 80,
|
|
439
|
+
height: r.h,
|
|
440
|
+
label: `0${e + 1} / ${r.label}`,
|
|
441
|
+
stroke: t,
|
|
442
|
+
labelColor: n,
|
|
443
|
+
borderStyle: "dashed",
|
|
444
|
+
zIndex: -10
|
|
445
|
+
}));
|
|
446
|
+
for (let t of e.states) {
|
|
447
|
+
let e = x(t.lane), n = e === "phase", r = e === "outcome", o = t.width ?? (n ? b.phaseW : r ? b.outcomeW : b.eventW), c = t.height ?? (n ? b.phaseH : r ? b.outcomeH : b.eventH), l = n ? b.phaseXs : r ? b.outcomeXs : b.eventXs, u = l[t.col] ?? l[l.length - 1], d = (n ? b.phaseY : r ? b.outcomeY : b.eventY) + (t.yOffset ?? 0), f = a(t.type);
|
|
448
|
+
i.push(s({
|
|
449
|
+
id: t.id,
|
|
450
|
+
x: u - o / 2,
|
|
451
|
+
y: d,
|
|
452
|
+
width: o,
|
|
453
|
+
height: c,
|
|
454
|
+
label: t.label,
|
|
455
|
+
sublabel: t.sublabel,
|
|
456
|
+
tag: t.tag ?? t.step,
|
|
457
|
+
fill: f.fill,
|
|
458
|
+
stroke: f.stroke,
|
|
459
|
+
text: f.text,
|
|
460
|
+
sub: f.sub,
|
|
461
|
+
fontSize: 12
|
|
462
|
+
}));
|
|
463
|
+
}
|
|
464
|
+
let g = e.states.filter((e) => e.lane === "main").sort((e, t) => e.col - t.col), _ = new Set(e.transitions.map((e) => `${e.from}->${e.to}`));
|
|
465
|
+
for (let e = 0; e < g.length - 1; e++) {
|
|
466
|
+
let t = g[e], n = g[e + 1];
|
|
467
|
+
_.has(`${t.id}->${n.id}`) || d.push(c({
|
|
468
|
+
id: `mainrail_${t.id}_${n.id}`,
|
|
469
|
+
source: t.id,
|
|
470
|
+
target: n.id,
|
|
471
|
+
sourceHandle: u("right"),
|
|
472
|
+
targetHandle: u("left"),
|
|
473
|
+
label: void 0,
|
|
474
|
+
color: o("emphasis").color,
|
|
475
|
+
width: 2.2,
|
|
476
|
+
lineStyle: "solid",
|
|
477
|
+
animated: r
|
|
478
|
+
}));
|
|
479
|
+
}
|
|
480
|
+
let v = /* @__PURE__ */ new Set();
|
|
481
|
+
for (let e = 0; e < g.length - 1; e++) v.add(`${g[e].id}->${g[e + 1].id}`);
|
|
482
|
+
for (let t of e.transitions) {
|
|
483
|
+
let e = o(t.variant), n = v.has(`${t.from}->${t.to}`);
|
|
484
|
+
d.push(c({
|
|
485
|
+
id: t.id,
|
|
486
|
+
source: t.from,
|
|
487
|
+
target: t.to,
|
|
488
|
+
sourceHandle: u(t.fromSide),
|
|
489
|
+
targetHandle: u(t.toSide),
|
|
490
|
+
label: t.label,
|
|
491
|
+
color: e.color,
|
|
492
|
+
width: t.width ?? e.width,
|
|
493
|
+
lineStyle: e.lineStyle,
|
|
494
|
+
animated: r && n,
|
|
495
|
+
waypoints: t.via?.map(([e, t]) => ({
|
|
496
|
+
x: e,
|
|
497
|
+
y: t
|
|
498
|
+
}))
|
|
499
|
+
}));
|
|
500
|
+
}
|
|
501
|
+
return C(i, d, [], e.meta.title);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
503
|
+
function C(t, n, r, i) {
|
|
504
|
+
return {
|
|
505
|
+
canvases: { [e]: {
|
|
506
|
+
nodes: t,
|
|
507
|
+
edges: n,
|
|
508
|
+
lines: r
|
|
509
|
+
} },
|
|
510
|
+
stack: [e],
|
|
511
|
+
title: i
|
|
512
|
+
};
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
return G(n);
|
|
524
|
-
case "lifecycle":
|
|
525
|
-
return F(n);
|
|
526
|
-
default:
|
|
527
|
-
return $([], [], []);
|
|
528
|
-
}
|
|
514
|
+
function w(e) {
|
|
515
|
+
switch (e.diagram_type) {
|
|
516
|
+
case "architecture": return m(e);
|
|
517
|
+
case "workflow": return g(e);
|
|
518
|
+
case "sequence": return _(e);
|
|
519
|
+
case "dataflow": return y(e);
|
|
520
|
+
case "lifecycle": return S(e);
|
|
521
|
+
default: return C([], [], []);
|
|
522
|
+
}
|
|
529
523
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
};
|
|
524
|
+
//#endregion
|
|
525
|
+
export { w as archifyToFlowDocument };
|
|
533
526
|
|
|
534
527
|
//# sourceMappingURL=convert.js.map
|