@likec4/diagram 1.60.0 → 1.61.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/README.md +63 -11
- package/dist/LikeC4Diagram.d.mts +4 -6
- package/dist/LikeC4Diagram.mjs +13 -12
- package/dist/LikeC4Diagram.props.d.mts +5 -7
- package/dist/LikeC4MantineProvider.d.mts +1 -2
- package/dist/LikeC4MantineProvider.mjs +26 -11
- package/dist/LikeC4ModelProvider.d.mts +1 -3
- package/dist/LikeC4ModelProvider.mjs +1 -2
- package/dist/LikeC4ProjectsOverview.d.mts +1 -3
- package/dist/LikeC4ProjectsOverview.mjs +1 -2
- package/dist/LikeC4ProjectsProvider.d.mts +1 -2
- package/dist/LikeC4ProjectsProvider.mjs +2 -3
- package/dist/LikeC4Styles.d.mts +1 -2
- package/dist/LikeC4Styles.mjs +11 -6
- package/dist/LikeC4View.d.mts +3 -5
- package/dist/LikeC4View.mjs +12 -11
- package/dist/ReactLikeC4.d.mts +3 -5
- package/dist/ReactLikeC4.mjs +8 -7
- package/dist/StaticLikeC4Diagram.d.mts +1 -3
- package/dist/StaticLikeC4Diagram.mjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/base/Background.mjs +1 -2
- package/dist/base/Base.d.mts +1 -2
- package/dist/base/Base.mjs +1 -2
- package/dist/base/BaseXYFlow.mjs +12 -10
- package/dist/base/const.d.mts +1 -3
- package/dist/base/const.mjs +1 -2
- package/dist/base/keyboardZoom.mjs +1 -2
- package/dist/base/types.d.mts +2 -4
- package/dist/base/updateEdges.mjs +1 -2
- package/dist/base/updateNodes.mjs +1 -2
- package/dist/base-primitives/Markdown.d.mts +5 -5
- package/dist/base-primitives/Markdown.mjs +22 -11
- package/dist/base-primitives/NodeHandles.d.mts +1 -3
- package/dist/base-primitives/NodeHandles.mjs +1 -2
- package/dist/base-primitives/compound/CompoundActionButton.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundActionButton.mjs +3 -4
- package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundDetailsButton.mjs +3 -4
- package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundNodeContainer.mjs +1 -2
- package/dist/base-primitives/compound/CompoundTitle.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundTitle.mjs +1 -2
- package/dist/base-primitives/compound/actionbtns.css.mjs +1 -2
- package/dist/base-primitives/edge/EdgeActionButton.mjs +2 -3
- package/dist/base-primitives/edge/EdgeContainer.mjs +2 -3
- package/dist/base-primitives/edge/EdgeLabel.mjs +3 -3
- package/dist/base-primitives/edge/EdgeLabelContainer.mjs +2 -3
- package/dist/base-primitives/edge/EdgeMarkers.mjs +1 -2
- package/dist/base-primitives/edge/EdgePath.mjs +1 -2
- package/dist/base-primitives/element/ElementActionButtons.d.mts +1 -2
- package/dist/base-primitives/element/ElementActionButtons.mjs +2 -3
- package/dist/base-primitives/element/ElementData.d.mts +1 -2
- package/dist/base-primitives/element/ElementData.mjs +1 -2
- package/dist/base-primitives/element/ElementDetailsButton.d.mts +1 -2
- package/dist/base-primitives/element/ElementDetailsButton.mjs +2 -3
- package/dist/base-primitives/element/ElementNodeContainer.d.mts +1 -2
- package/dist/base-primitives/element/ElementNodeContainer.mjs +2 -3
- package/dist/base-primitives/element/ElementShape.d.mts +11 -6
- package/dist/base-primitives/element/ElementShape.mjs +10 -5
- package/dist/base-primitives/element/ElementTags.d.mts +6 -3
- package/dist/base-primitives/element/ElementTags.mjs +2 -4
- package/dist/base-primitives/index.d.mts +5 -5
- package/dist/base-primitives/memoEdge.d.mts +2 -6
- package/dist/base-primitives/memoEdge.mjs +1 -2
- package/dist/base-primitives/memoNode.d.mts +2 -6
- package/dist/components/EmptyBox.mjs +1 -2
- package/dist/components/ErrorFallback.d.mts +4 -3
- package/dist/components/ErrorFallback.mjs +61 -56
- package/dist/components/FloatingWindow.mjs +3 -4
- package/dist/components/GithubIcon.mjs +1 -2
- package/dist/components/Link.mjs +3 -4
- package/dist/components/Logo.d.mts +3 -5
- package/dist/components/Logo.mjs +28 -35
- package/dist/components/NavigationLink.mjs +1 -2
- package/dist/components/NavigationPanel.mjs +11 -11
- package/dist/components/PortalToContainer.d.mts +1 -3
- package/dist/components/PortalToContainer.mjs +1 -2
- package/dist/components/RootContainer.mjs +1 -2
- package/dist/components/SearchControl.css.mjs +1 -2
- package/dist/components/SearchControl.d.mts +1 -2
- package/dist/components/SearchControl.mjs +2 -3
- package/dist/components/ViewIcon.mjs +5 -6
- package/dist/components/ViewNotFound.mjs +1 -2
- package/dist/components/markdown/MarkdownWithRefs.mjs +268 -0
- package/dist/components/markdown/markdown-refs.mjs +145 -0
- package/dist/components/markdown/useMarkdownRefsInteractivity.mjs +126 -0
- package/dist/context/ComparingLayoutsContext.mjs +24 -0
- package/dist/context/CurrentViewModelProvider.mjs +1 -2
- package/dist/context/DiagramEventHandlers.mjs +3 -4
- package/dist/context/DiagramFeatures.d.mts +2 -3
- package/dist/context/DiagramFeatures.mjs +15 -9
- package/dist/context/EnsureMantine.mjs +1 -2
- package/dist/context/FramerMotionConfig.d.mts +1 -3
- package/dist/context/FramerMotionConfig.mjs +1 -2
- package/dist/context/IconRenderer.d.mts +1 -3
- package/dist/context/IconRenderer.mjs +14 -14
- package/dist/context/LikeC4ModelContext.d.mts +1 -2
- package/dist/context/LikeC4ModelContext.mjs +1 -2
- package/dist/context/LikeC4ProjectsContext.d.mts +1 -3
- package/dist/context/LikeC4ProjectsContext.mjs +1 -2
- package/dist/context/RootContainerContext.mjs +1 -2
- package/dist/context/TagStylesContext.d.mts +1 -2
- package/dist/context/TagStylesContext.mjs +7 -19
- package/dist/custom/builtins.d.mts +4 -1
- package/dist/custom/customNodes.d.mts +164 -7
- package/dist/custom/customNodes.mjs +387 -8
- package/dist/custom/index.d.mts +18 -30
- package/dist/custom/index.mjs +11 -19
- package/dist/custom/primitives.d.mts +3 -5
- package/dist/customization/CustomizationContext.d.mts +50 -0
- package/dist/customization/CustomizationContext.mjs +64 -0
- package/dist/customization/customizable.d.mts +32 -0
- package/dist/customization/customizable.mjs +75 -0
- package/dist/customization/customization-types.d.mts +40 -0
- package/dist/customization/customization-types.mjs +8 -0
- package/dist/customization/stableComponents.mjs +35 -0
- package/dist/editor/LikeC4EditorCallbacks.d.mts +1 -3
- package/dist/editor/LikeC4EditorCallbacks.mjs +1 -2
- package/dist/editor/LikeC4EditorProvider.d.mts +1 -3
- package/dist/editor/LikeC4EditorProvider.mjs +1 -2
- package/dist/editor/actor/actions.mjs +2 -3
- package/dist/editor/actor/hotkey.d.mts +1 -3
- package/dist/editor/actor/hotkey.mjs +1 -2
- package/dist/editor/actor/machine.d.mts +2 -4
- package/dist/editor/actor/machine.mjs +1 -2
- package/dist/editor/actor/setup.d.mts +1 -2
- package/dist/editor/actor/setup.mjs +1 -2
- package/dist/editor/actor/state.editor.mjs +2 -3
- package/dist/editor/actor/state.sync-queue.mjs +2 -3
- package/dist/editor/actor/types.d.mts +1 -3
- package/dist/editor/actor/types.mjs +1 -2
- package/dist/editor/applyChangesToManualLayout.mjs +1 -2
- package/dist/editor/index.d.mts +1 -1
- package/dist/editor/useEditorActorLogic.mjs +3 -4
- package/dist/hooks/safeContext.d.mts +16 -35
- package/dist/hooks/safeContext.mjs +1 -2
- package/dist/hooks/useCallbackRef.mjs +1 -2
- package/dist/hooks/useCurrentView.d.mts +1 -3
- package/dist/hooks/useCurrentView.mjs +1 -2
- package/dist/hooks/useCurrentViewModel.d.mts +0 -2
- package/dist/hooks/useCurrentViewModel.mjs +1 -2
- package/dist/hooks/useDiagram.d.mts +3 -12
- package/dist/hooks/useDiagram.mjs +11 -10
- package/dist/hooks/useDiagramCompareLayout.d.mts +2 -4
- package/dist/hooks/useDiagramCompareLayout.mjs +12 -21
- package/dist/hooks/useDiagramMarkdownRefActions.mjs +35 -0
- package/dist/hooks/useEdgeLabelFontLoader.mjs +29 -0
- package/dist/hooks/useEdgeTracks.mjs +2 -3
- package/dist/hooks/useEditorActor.mjs +1 -2
- package/dist/hooks/useId.mjs +1 -2
- package/dist/hooks/useLikeC4ElementsTree.mjs +1 -2
- package/dist/hooks/useLikeC4Model.d.mts +0 -2
- package/dist/hooks/useLikeC4Model.mjs +1 -2
- package/dist/hooks/useLikeC4Project.d.mts +2 -4
- package/dist/hooks/useLikeC4Project.mjs +1 -2
- package/dist/hooks/useLikeC4Styles.d.mts +1 -3
- package/dist/hooks/useLikeC4Styles.mjs +1 -2
- package/dist/hooks/useMantinePortalProps.mjs +1 -2
- package/dist/hooks/useSetState.mjs +1 -2
- package/dist/hooks/useUpdateEffect.d.mts +0 -2
- package/dist/hooks/useUpdateEffect.mjs +1 -2
- package/dist/hooks/useXYFlow.d.mts +1 -3
- package/dist/hooks/useXYFlow.mjs +1 -2
- package/dist/index.d.mts +20 -18
- package/dist/index.mjs +20 -18
- package/dist/likec4diagram/DiagramUI.mjs +14 -11
- package/dist/likec4diagram/DiagramXYFlow.mjs +34 -34
- package/dist/likec4diagram/convert-to-xyflow.mjs +7 -3
- package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +4 -3
- package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +18 -14
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +3 -4
- package/dist/likec4diagram/custom/edges/useControlPoints.mjs +2 -3
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +2 -3
- package/dist/likec4diagram/custom/index.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +1 -2
- package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +2 -3
- package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +3 -4
- package/dist/likec4diagram/custom/nodes/ElementActions.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +6 -1
- package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +6 -1
- package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +4 -3
- package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +3 -5
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +3 -1
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/index.d.mts +4 -4
- package/dist/likec4diagram/custom/nodes/nodes.d.mts +3 -4
- package/dist/likec4diagram/custom/nodes/nodes.mjs +19 -21
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +4 -6
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +1 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +29 -12
- package/dist/likec4diagram/relationship-popover/actor.mjs +1 -2
- package/dist/likec4diagram/relationship-popover/components.mjs +1 -2
- package/dist/likec4diagram/state/DiagramActorProvider.mjs +22 -34
- package/dist/likec4diagram/state/aligners.d.mts +1 -3
- package/dist/likec4diagram/state/aligners.mjs +1 -2
- package/dist/likec4diagram/state/assign.mjs +3 -4
- package/dist/likec4diagram/state/createViewChange.mjs +1 -2
- package/dist/likec4diagram/state/diagram-api.d.mts +33 -16
- package/dist/likec4diagram/state/diagram-api.mjs +55 -31
- package/dist/likec4diagram/state/hotkeyActor.d.mts +1 -3
- package/dist/likec4diagram/state/hotkeyActor.mjs +12 -6
- package/dist/likec4diagram/state/machine.actions.layout.mjs +2 -3
- package/dist/likec4diagram/state/machine.actions.mjs +81 -44
- package/dist/likec4diagram/state/machine.d.mts +107 -15
- package/dist/likec4diagram/state/machine.mjs +3 -4
- package/dist/likec4diagram/state/machine.setup.d.mts +14 -10
- package/dist/likec4diagram/state/machine.setup.mjs +55 -28
- package/dist/likec4diagram/state/machine.state.initializing.mjs +3 -4
- package/dist/likec4diagram/state/machine.state.navigating.mjs +3 -6
- package/dist/likec4diagram/state/machine.state.ready.comparing.mjs +63 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.mjs +10 -7
- package/dist/likec4diagram/state/machine.state.ready.idle.mjs +10 -7
- package/dist/likec4diagram/state/machine.state.ready.mjs +8 -8
- package/dist/likec4diagram/state/machine.state.ready.printing.mjs +3 -4
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +5 -6
- package/dist/likec4diagram/state/mediaPrintActor.d.mts +1 -3
- package/dist/likec4diagram/state/mediaPrintActor.mjs +1 -2
- package/dist/likec4diagram/state/persistence.mjs +12 -5
- package/dist/likec4diagram/state/types.d.mts +1 -3
- package/dist/likec4diagram/state/utils.mjs +2 -3
- package/dist/likec4diagram/types.d.mts +1 -3
- package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +5 -7
- package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +1 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.mjs +6 -7
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +2 -3
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +3 -4
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +4 -7
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +4 -5
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +4 -6
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +2 -3
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +7 -8
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +3 -9
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/motion.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +7 -8
- package/dist/likec4diagram/ui/sequence-outline/tree.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/types.mjs +1 -2
- package/dist/likec4diagram/useLayoutConstraints.mjs +5 -10
- package/dist/likec4diagram/useNodeDragHandlers.mjs +28 -0
- package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +9 -2
- package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +1 -2
- package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +3 -6
- package/dist/likec4diagram/xyflow-props.mjs +25 -0
- package/dist/likec4diagram/xyflow-sequence/const.mjs +1 -2
- package/dist/likec4diagram/xyflow-sequence/layouter.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/utils.mjs +1 -2
- package/dist/navigationpanel/ElementViewControls.mjs +6 -7
- package/dist/navigationpanel/NavigationPanel.mjs +38 -67
- package/dist/navigationpanel/NavigationPanelControls.mjs +35 -114
- package/dist/navigationpanel/NavigationPanelDropdown.mjs +37 -34
- package/dist/navigationpanel/_common.mjs +3 -4
- package/dist/navigationpanel/actor.actions.mjs +1 -2
- package/dist/navigationpanel/actor.d.mts +0 -2
- package/dist/navigationpanel/actor.mjs +2 -3
- package/dist/navigationpanel/actor.setup.d.mts +1 -3
- package/dist/navigationpanel/actor.setup.mjs +1 -2
- package/dist/navigationpanel/comparepanel/ComparePanel.mjs +160 -90
- package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +173 -142
- package/dist/{likec4diagram/ui → navigationpanel/comparepanel}/LayoutDriftFrame.mjs +6 -12
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +14 -19
- package/dist/navigationpanel/controls/LayoutWarning.mjs +3 -4
- package/dist/navigationpanel/controls/LogoButton.mjs +5 -23
- package/dist/navigationpanel/controls/NavigationBreadcrumbs.mjs +110 -0
- package/dist/navigationpanel/controls/NavigationButtons.mjs +3 -4
- package/dist/navigationpanel/controls/OpenSource.mjs +2 -3
- package/dist/navigationpanel/controls/SearchControl.mjs +2 -3
- package/dist/navigationpanel/controls/ToggleReadonly.mjs +36 -21
- package/dist/navigationpanel/controls/ViewDetailsButton.mjs +12 -15
- package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +46 -13
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +3 -4
- package/dist/navigationpanel/editorpanel/CenterCamera.mjs +2 -3
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +3 -4
- package/dist/navigationpanel/editorpanel/EditorPanel.mjs +4 -4
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +11 -13
- package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +2 -3
- package/dist/navigationpanel/editorpanel/_common.mjs +1 -2
- package/dist/navigationpanel/editorpanel/styles.mjs +1 -2
- package/dist/navigationpanel/hooks.mjs +1 -2
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +5 -6
- package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +7 -9
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +1 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +3 -4
- package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +44 -38
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +1 -2
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +1 -2
- package/dist/overlays/Overlays.mjs +4 -5
- package/dist/overlays/element-details/ElementDetails.mjs +2 -3
- package/dist/overlays/element-details/ElementDetailsCard.css.mjs +148 -102
- package/dist/overlays/element-details/ElementDetailsCard.mjs +503 -256
- package/dist/overlays/element-details/MetadataValue.mjs +115 -222
- package/dist/overlays/element-details/PropertiesSplit.mjs +162 -0
- package/dist/overlays/element-details/TabPanelDeployments.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelDeployments.mjs +5 -6
- package/dist/overlays/element-details/TabPanelRelationships.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelRelationships.mjs +6 -7
- package/dist/overlays/element-details/TabPanelStructure.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelStructure.mjs +3 -4
- package/dist/overlays/element-details/TabPanelViews.mjs +51 -0
- package/dist/overlays/element-details/actor.d.mts +6 -7
- package/dist/overlays/element-details/actor.mjs +31 -15
- package/dist/overlays/element-details/actorContext.mjs +1 -2
- package/dist/overlays/element-details/subject.d.mts +12 -0
- package/dist/overlays/element-details/subject.mjs +15 -0
- package/dist/overlays/hooks.mjs +1 -2
- package/dist/overlays/overlay/Overlay.d.mts +1 -3
- package/dist/overlays/overlay/Overlay.mjs +4 -5
- package/dist/overlays/overlaysActor.d.mts +12 -5
- package/dist/overlays/overlaysActor.mjs +24 -6
- package/dist/overlays/relationship-details/RelationshipDetails.mjs +16 -8
- package/dist/overlays/relationship-details/SelectEdge.css.mjs +1 -2
- package/dist/overlays/relationship-details/SelectEdge.mjs +3 -4
- package/dist/overlays/relationship-details/_types.d.mts +6 -4
- package/dist/overlays/relationship-details/actor.d.mts +0 -2
- package/dist/overlays/relationship-details/actor.mjs +2 -3
- package/dist/overlays/relationship-details/compute.mjs +1 -2
- package/dist/overlays/relationship-details/custom/ElementActions.mjs +6 -7
- package/dist/overlays/relationship-details/custom/edgeTypes.mjs +8 -13
- package/dist/overlays/relationship-details/custom/nodeTypes.mjs +8 -6
- package/dist/overlays/relationship-details/hooks.mjs +1 -2
- package/dist/overlays/relationship-details/layout-to-xyflow.mjs +3 -3
- package/dist/overlays/relationship-details/layout.d.mts +1 -3
- package/dist/overlays/relationship-details/layout.mjs +39 -13
- package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +12 -13
- package/dist/overlays/relationships-browser/SelectElement.css.mjs +1 -2
- package/dist/overlays/relationships-browser/SelectElement.mjs +4 -5
- package/dist/overlays/relationships-browser/_types.d.mts +6 -4
- package/dist/overlays/relationships-browser/actor.d.mts +0 -2
- package/dist/overlays/relationships-browser/actor.mjs +4 -5
- package/dist/overlays/relationships-browser/const.mjs +1 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.mjs +6 -7
- package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +1 -2
- package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +14 -17
- package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +12 -7
- package/dist/overlays/relationships-browser/hooks.mjs +1 -2
- package/dist/overlays/relationships-browser/layout.d.mts +1 -3
- package/dist/overlays/relationships-browser/layout.mjs +73 -24
- package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +2 -2
- package/dist/overlays/types.d.mts +5 -7
- package/dist/projects-overview/ProjectsOverview.d.mts +1 -3
- package/dist/projects-overview/ProjectsOverview.mjs +1 -2
- package/dist/projects-overview/ProjectsOverviewXY.d.mts +1 -3
- package/dist/projects-overview/ProjectsOverviewXY.mjs +3 -4
- package/dist/projects-overview/actor.mjs +1 -2
- package/dist/projects-overview/context.mjs +1 -2
- package/dist/projects-overview/custom/edgeTypes.mjs +2 -3
- package/dist/projects-overview/custom/nodeTypes.mjs +3 -4
- package/dist/projects-overview/hooks.mjs +1 -2
- package/dist/projects-overview/layouted-to-xyflow.mjs +1 -2
- package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +1 -2
- package/dist/projects-overview/persistence.mjs +1 -2
- package/dist/search/Search.d.mts +1 -3
- package/dist/search/Search.mjs +13 -12
- package/dist/search/SearchContext.d.mts +1 -3
- package/dist/search/SearchContext.mjs +1 -2
- package/dist/search/XStateSearchAdapter.mjs +1 -2
- package/dist/search/components/ElementsColumn.css.mjs +1 -2
- package/dist/search/components/ElementsColumn.mjs +31 -9
- package/dist/search/components/PickView.mjs +3 -4
- package/dist/search/components/SearchByTags.mjs +3 -4
- package/dist/search/components/SearchInput.mjs +3 -4
- package/dist/search/components/ViewsColum.mjs +20 -20
- package/dist/search/components/ViewsColumn.css.mjs +1 -2
- package/dist/search/components/_shared.css.mjs +1 -2
- package/dist/search/components/styles.css.mjs +1 -2
- package/dist/search/components/utils.mjs +32 -3
- package/dist/search/fuzzy.mjs +27 -0
- package/dist/search/hooks.mjs +1 -2
- package/dist/search/metadata-search.mjs +32 -0
- package/dist/search/searchActor.d.mts +1 -3
- package/dist/search/searchActor.mjs +1 -2
- package/dist/shadowroot/ShadowRoot.mjs +8 -7
- package/dist/styles-font2.mjs +1 -2
- package/dist/styles-min.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles2.mjs +2 -3
- package/dist/utils/defineActors.d.mts +1 -3
- package/dist/utils/defineActors.mjs +1 -2
- package/dist/utils/edge-corners.mjs +2 -3
- package/dist/utils/edge-endpoints.mjs +1 -2
- package/dist/utils/edge-label.mjs +1 -2
- package/dist/utils/edge-path-through-label.mjs +51 -0
- package/dist/utils/edge-path.mjs +1 -2
- package/dist/utils/edge-tracks.mjs +1 -2
- package/dist/utils/filterProjects.d.mts +10 -0
- package/dist/utils/filterProjects.mjs +36 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/measure-edge-label.mjs +129 -0
- package/dist/utils/readableText.mjs +1 -2
- package/dist/utils/roundDpr.mjs +1 -2
- package/dist/utils/search-event.mjs +17 -0
- package/dist/utils/view-bounds.d.mts +1 -3
- package/dist/utils/view-bounds.mjs +1 -2
- package/dist/utils/view-routing.mjs +1 -2
- package/dist/utils/xyflow.mjs +2 -3
- package/dist/webcomponent/defineWebcomponent.d.mts +12 -0
- package/dist/webcomponent/defineWebcomponent.mjs +93 -0
- package/package.json +29 -26
- package/panda.buildinfo.json +211 -208
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/base-primitives/memoNode.mjs +0 -23
- package/dist/context/DiagramEventHandlers.d.mts +0 -11
- package/dist/custom/hooks.d.mts +0 -17
- package/dist/hooks/useSetState.d.mts +0 -10
- package/dist/likec4diagram/custom/edges/edges.css.mjs +0 -50
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.mjs +0 -69
- package/dist/navigationpanel/comparepanel/ComparePanelControls.mjs +0 -56
- package/dist/navigationpanel/styles.css.mjs +0 -23
- package/src/styles-font.css +0 -114
- package/src/styles-min.css +0 -2
- package/src/styles-xyflow.css +0 -1
- package/src/styles.css +0 -3
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import IconCaretRightFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs";
|
|
3
|
+
import IconCheck from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs";
|
|
4
|
+
import IconExternalLink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs";
|
|
5
|
+
import IconFileSymlink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs";
|
|
6
|
+
import IconZoomScan from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs";
|
|
7
|
+
import { ElementTag } from "../../base-primitives/element/ElementTags.mjs";
|
|
8
|
+
import { Link } from "../../components/Link.mjs";
|
|
9
|
+
import { MarkdownWithRefs } from "../../components/markdown/MarkdownWithRefs.mjs";
|
|
10
|
+
import { DiagramFeatures, IfEnabled } from "../../context/DiagramFeatures.mjs";
|
|
6
11
|
import { IconRenderer } from "../../context/IconRenderer.mjs";
|
|
7
12
|
import { useCallbackRef as useCallbackRef$1 } from "../../hooks/useCallbackRef.mjs";
|
|
8
13
|
import { useUpdateEffect as useUpdateEffect$1 } from "../../hooks/useUpdateEffect.mjs";
|
|
9
|
-
import { stopPropagation } from "../../utils/xyflow.mjs";
|
|
10
|
-
import { DiagramFeatures, IfEnabled } from "../../context/DiagramFeatures.mjs";
|
|
11
|
-
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
12
14
|
import { useCurrentViewModel } from "../../hooks/useCurrentViewModel.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { backdropBlur, backdropOpacity, card, cardHeader, dialog, elementIcon,
|
|
17
|
-
import {
|
|
15
|
+
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
16
|
+
import { metadataSearchQuery } from "../../search/metadata-search.mjs";
|
|
17
|
+
import { stopPropagation } from "../../utils/xyflow.mjs";
|
|
18
|
+
import { CardFooter, CardFooterSection, ElementTitle, backdropBlur, backdropOpacity, card, cardHeader, dialog, elementIcon, factLabel, factValues, facts, propertiesMain, propertiesSidebar, resizeHandle, tabs, technologyBadge } from "./ElementDetailsCard.css.mjs";
|
|
19
|
+
import { MetadataList, MetadataProvider } from "./MetadataValue.mjs";
|
|
20
|
+
import { PropertiesSplit } from "./PropertiesSplit.mjs";
|
|
18
21
|
import { TabPanelDeployments } from "./TabPanelDeployments.mjs";
|
|
19
22
|
import { TabPanelRelationships } from "./TabPanelRelationships.mjs";
|
|
20
23
|
import { TabPanelStructure } from "./TabPanelStructure.mjs";
|
|
24
|
+
import { TabPanelViews } from "./TabPanelViews.mjs";
|
|
21
25
|
import { css, cx } from "@likec4/styles/css";
|
|
22
|
-
import { useCallback, useRef, useState } from "react";
|
|
26
|
+
import { Fragment, useCallback, useRef, useState } from "react";
|
|
23
27
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
24
28
|
import { useDebouncedCallback, useTimeoutEffect } from "@react-hookz/web";
|
|
25
|
-
import { clamp, entries,
|
|
26
|
-
import {
|
|
29
|
+
import { clamp, entries, only } from "remeda";
|
|
30
|
+
import { ancestorsFqn, isAncestor, nameFromFqn, nonNullable } from "@likec4/core";
|
|
31
|
+
import { ActionIcon, ActionIconGroup, Badge, Button, CloseButton, Collapse, Flex, RemoveScroll, ScrollArea, Tabs, TabsList, TabsPanel, TabsTab, Tooltip, UnstyledButton } from "@mantine/core";
|
|
27
32
|
import { m, useDragControls, useMotionValue } from "motion/react";
|
|
28
|
-
import { useSessionStorage, useViewportSize } from "@mantine/hooks";
|
|
29
|
-
import { HStack } from "@likec4/styles/jsx";
|
|
33
|
+
import { useClipboard, useDisclosure, useLocalStorage, useSessionStorage, useViewportSize } from "@mantine/hooks";
|
|
34
|
+
import { HStack, Txt, styled } from "@likec4/styles/jsx";
|
|
35
|
+
import { hstack } from "@likec4/styles/patterns";
|
|
30
36
|
|
|
31
|
-
|
|
32
|
-
const Divider$1 = Divider.withProps({
|
|
33
|
-
mb: 8,
|
|
34
|
-
labelPosition: "left",
|
|
35
|
-
variant: "dashed"
|
|
36
|
-
});
|
|
37
|
+
// src/overlays/element-details/ElementDetailsCard.tsx
|
|
37
38
|
const Tooltip$1 = Tooltip.withProps({
|
|
38
39
|
color: "dark",
|
|
39
40
|
fz: "xs",
|
|
@@ -44,20 +45,26 @@ const Tooltip$1 = Tooltip.withProps({
|
|
|
44
45
|
offset: 4,
|
|
45
46
|
withinPortal: false
|
|
46
47
|
});
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
const diffStatusColor = {
|
|
49
|
+
added: "green",
|
|
50
|
+
removed: "red",
|
|
51
|
+
modified: "orange",
|
|
52
|
+
orphan: "gray"
|
|
53
|
+
};
|
|
54
|
+
const SmallLabel = styled("div", { base: {
|
|
55
|
+
textStyle: "fieldLabel",
|
|
56
|
+
whiteSpace: "nowrap",
|
|
57
|
+
userSelect: "none"
|
|
58
|
+
} });
|
|
59
|
+
const MIN_PADDING = 16;
|
|
60
|
+
const DEFAULT_SIZE = {
|
|
61
|
+
width: 700,
|
|
62
|
+
height: 650
|
|
63
|
+
};
|
|
64
|
+
const MIN_SIZE = {
|
|
65
|
+
width: 320,
|
|
66
|
+
height: 300
|
|
67
|
+
};
|
|
61
68
|
const TABS = [
|
|
62
69
|
"Properties",
|
|
63
70
|
"Relationships",
|
|
@@ -65,27 +72,63 @@ const TABS = [
|
|
|
65
72
|
"Structure",
|
|
66
73
|
"Deployments"
|
|
67
74
|
];
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
const DEPLOYMENT_TABS = [
|
|
76
|
+
"Properties",
|
|
77
|
+
"Views",
|
|
78
|
+
"Structure"
|
|
79
|
+
];
|
|
80
|
+
const motionProps = {
|
|
81
|
+
initial: {
|
|
82
|
+
[backdropBlur]: "0px",
|
|
83
|
+
[backdropOpacity]: "2%"
|
|
84
|
+
},
|
|
85
|
+
animate: {
|
|
86
|
+
[backdropBlur]: "3px",
|
|
87
|
+
[backdropOpacity]: "60%"
|
|
88
|
+
},
|
|
89
|
+
exit: {
|
|
90
|
+
[backdropBlur]: "0px",
|
|
91
|
+
[backdropOpacity]: "0%",
|
|
92
|
+
transition: { duration: .15 }
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
function ElementDetailsCard({ viewId, fromNode, rectFromNode, subject, onClose }) {
|
|
70
96
|
const windowSize = useViewportSize();
|
|
71
97
|
const windowWidth = windowSize.width || window.innerWidth || 1200;
|
|
72
98
|
const windowHeight = windowSize.height || window.innerHeight || 800;
|
|
73
99
|
const [activeTab, setActiveTab] = useSessionStorage({
|
|
74
|
-
key:
|
|
75
|
-
defaultValue: "Properties"
|
|
100
|
+
key: subject.deployment ? "likec4:deployment-details:active-tab" : "likec4:element-details:active-tab",
|
|
101
|
+
defaultValue: "Properties",
|
|
102
|
+
getInitialValueInEffect: false
|
|
76
103
|
});
|
|
104
|
+
const [opened, setOpened] = useState(activeTab !== "Relationships");
|
|
77
105
|
const diagram = useDiagram();
|
|
78
106
|
const viewModel = useCurrentViewModel();
|
|
79
|
-
const nodeModel = fromNode ? viewModel.findNode(fromNode) : viewModel.findNodeWithElement(
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
107
|
+
const nodeModel = fromNode ? viewModel.findNode(fromNode) : subject.type === "deployment" ? [...viewModel.nodes()].find((n) => n.$node.deploymentRef === subject.deployment) ?? null : viewModel.findNodeWithElement(subject.element);
|
|
108
|
+
const logicalElement = subject.type === "element" ? viewModel.$model.findElement(subject.element) : null;
|
|
109
|
+
const deploymentElement = subject.type === "deployment" ? viewModel.$model.deployment.findElement(subject.deployment) : null;
|
|
110
|
+
const elementModel = nonNullable(logicalElement ?? deploymentElement, "Details subject not found");
|
|
111
|
+
const tabs$1 = subject.deployment ? DEPLOYMENT_TABS : TABS;
|
|
112
|
+
let defaultViewId = nodeModel?.$node.navigateTo ?? logicalElement?.defaultView?.id ?? null;
|
|
113
|
+
if (defaultViewId === viewId) defaultViewId = null;
|
|
84
114
|
const defaultLink = only(elementModel.links);
|
|
85
115
|
const controls = useDragControls();
|
|
86
116
|
const isCompound = (nodeModel?.$node.children?.length ?? 0) > 0;
|
|
87
|
-
const
|
|
88
|
-
|
|
117
|
+
const [savedSize, setSavedSize] = useLocalStorage({
|
|
118
|
+
key: "likec4:element-details:size",
|
|
119
|
+
defaultValue: DEFAULT_SIZE,
|
|
120
|
+
getInitialValueInEffect: false
|
|
121
|
+
});
|
|
122
|
+
const maxWidth = Math.max(MIN_SIZE.width, windowWidth - 32);
|
|
123
|
+
const maxHeight = Math.max(MIN_SIZE.height, windowHeight - 32);
|
|
124
|
+
const _width = Math.round(clamp(savedSize.width, {
|
|
125
|
+
min: MIN_SIZE.width,
|
|
126
|
+
max: maxWidth
|
|
127
|
+
}));
|
|
128
|
+
const _height = Math.round(clamp(savedSize.height, {
|
|
129
|
+
min: MIN_SIZE.height,
|
|
130
|
+
max: maxHeight
|
|
131
|
+
}));
|
|
89
132
|
const fromPosition = rectFromNode ? {
|
|
90
133
|
x: rectFromNode.x + (isCompound ? rectFromNode.width - _width / 2 : rectFromNode.width / 2),
|
|
91
134
|
y: rectFromNode.y + (isCompound ? 0 : rectFromNode.height / 2)
|
|
@@ -103,23 +146,89 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
103
146
|
max: windowHeight - _height - MIN_PADDING
|
|
104
147
|
}));
|
|
105
148
|
const originX = clamp((fromPosition.x - left) / _width, {
|
|
106
|
-
min: .
|
|
107
|
-
max: .
|
|
149
|
+
min: .01,
|
|
150
|
+
max: .99
|
|
108
151
|
});
|
|
109
152
|
const originY = clamp((fromPosition.y - top) / _height, {
|
|
110
|
-
min: .
|
|
111
|
-
max: .
|
|
153
|
+
min: .01,
|
|
154
|
+
max: .99
|
|
112
155
|
});
|
|
113
156
|
const width = useMotionValue(_width);
|
|
114
157
|
const height = useMotionValue(_height);
|
|
158
|
+
const x = useMotionValue(0);
|
|
159
|
+
const y = useMotionValue(0);
|
|
115
160
|
useUpdateEffect$1(() => {
|
|
116
161
|
width.set(_width);
|
|
117
162
|
height.set(_height);
|
|
118
163
|
}, [_width, _height]);
|
|
119
|
-
const
|
|
120
|
-
width.set(
|
|
121
|
-
|
|
122
|
-
|
|
164
|
+
const handleResize = useCallback((_, info) => {
|
|
165
|
+
width.set(clamp(width.get() + info.delta.x, {
|
|
166
|
+
min: MIN_SIZE.width,
|
|
167
|
+
max: maxWidth
|
|
168
|
+
}));
|
|
169
|
+
height.set(clamp(height.get() + info.delta.y, {
|
|
170
|
+
min: MIN_SIZE.height,
|
|
171
|
+
max: maxHeight
|
|
172
|
+
}));
|
|
173
|
+
}, [
|
|
174
|
+
width,
|
|
175
|
+
height,
|
|
176
|
+
maxWidth,
|
|
177
|
+
maxHeight
|
|
178
|
+
]);
|
|
179
|
+
const keepInViewport = useCallback(() => {
|
|
180
|
+
const rect = ref.current?.querySelector(":scope > [data-likec4-color]")?.getBoundingClientRect();
|
|
181
|
+
if (!rect) return;
|
|
182
|
+
const overflow = (start, end, size) => {
|
|
183
|
+
switch (true) {
|
|
184
|
+
case start < MIN_PADDING: return MIN_PADDING - start;
|
|
185
|
+
case end > size - MIN_PADDING: return Math.max(size - MIN_PADDING - end, MIN_PADDING - start);
|
|
186
|
+
default: return 0;
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const dx = overflow(rect.left, rect.right, windowWidth);
|
|
190
|
+
const dy = overflow(rect.top, rect.bottom, windowHeight);
|
|
191
|
+
if (dx !== 0) x.set(x.get() + dx);
|
|
192
|
+
if (dy !== 0) y.set(y.get() + dy);
|
|
193
|
+
}, [
|
|
194
|
+
x,
|
|
195
|
+
y,
|
|
196
|
+
windowWidth,
|
|
197
|
+
windowHeight
|
|
198
|
+
]);
|
|
199
|
+
const handleResizeEnd = useCallback(() => {
|
|
200
|
+
setSavedSize({
|
|
201
|
+
width: Math.round(width.get()),
|
|
202
|
+
height: Math.round(height.get())
|
|
203
|
+
});
|
|
204
|
+
keepInViewport();
|
|
205
|
+
}, [
|
|
206
|
+
width,
|
|
207
|
+
height,
|
|
208
|
+
setSavedSize,
|
|
209
|
+
keepInViewport
|
|
210
|
+
]);
|
|
211
|
+
const resetCard = useCallback(() => {
|
|
212
|
+
width.set(clamp(DEFAULT_SIZE.width, {
|
|
213
|
+
min: MIN_SIZE.width,
|
|
214
|
+
max: maxWidth
|
|
215
|
+
}));
|
|
216
|
+
height.set(clamp(DEFAULT_SIZE.height, {
|
|
217
|
+
min: MIN_SIZE.height,
|
|
218
|
+
max: maxHeight
|
|
219
|
+
}));
|
|
220
|
+
x.set(0);
|
|
221
|
+
y.set(0);
|
|
222
|
+
setSavedSize(DEFAULT_SIZE);
|
|
223
|
+
}, [
|
|
224
|
+
width,
|
|
225
|
+
height,
|
|
226
|
+
x,
|
|
227
|
+
y,
|
|
228
|
+
maxWidth,
|
|
229
|
+
maxHeight,
|
|
230
|
+
setSavedSize
|
|
231
|
+
]);
|
|
123
232
|
const ref = useRef(null);
|
|
124
233
|
const close = useDebouncedCallback(useCallbackRef$1(onClose), [], 50);
|
|
125
234
|
const triggerClose = useCallbackRef$1((event) => {
|
|
@@ -129,7 +238,7 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
129
238
|
const notation = nodeModel?.$node.notation ?? null;
|
|
130
239
|
const elementIcon$1 = IconRenderer({
|
|
131
240
|
element: {
|
|
132
|
-
id:
|
|
241
|
+
id: elementModel.id,
|
|
133
242
|
title: elementModel.title,
|
|
134
243
|
icon: nodeModel?.icon ?? elementModel.icon
|
|
135
244
|
},
|
|
@@ -144,24 +253,14 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
144
253
|
*/
|
|
145
254
|
useTimeoutEffect(() => {
|
|
146
255
|
setOpened(true);
|
|
147
|
-
}, 220);
|
|
256
|
+
}, !opened ? 220 : void 0);
|
|
257
|
+
const technologies = elementModel.technology ? elementModel.technology.split(",").map((t) => t.trim()).filter(Boolean) : [];
|
|
258
|
+
const hasFacts = technologies.length > 0 || elementModel.links.length > 0 || elementModel.hasMetadata() || !!deploymentElement?.isInstance();
|
|
148
259
|
return /* @__PURE__ */ jsx(m.dialog, {
|
|
149
260
|
ref,
|
|
150
261
|
className: cx(dialog, RemoveScroll.classNames.fullWidth),
|
|
151
262
|
layout: true,
|
|
152
|
-
|
|
153
|
-
[backdropBlur]: "0px",
|
|
154
|
-
[backdropOpacity]: "5%"
|
|
155
|
-
},
|
|
156
|
-
animate: {
|
|
157
|
-
[backdropBlur]: "3px",
|
|
158
|
-
[backdropOpacity]: "60%"
|
|
159
|
-
},
|
|
160
|
-
exit: {
|
|
161
|
-
[backdropBlur]: "0px",
|
|
162
|
-
[backdropOpacity]: "0%",
|
|
163
|
-
transition: { duration: .1 }
|
|
164
|
-
},
|
|
263
|
+
...motionProps,
|
|
165
264
|
onClick: (e) => {
|
|
166
265
|
e.stopPropagation();
|
|
167
266
|
if (e.target?.nodeName?.toUpperCase() === "DIALOG") ref.current?.close();
|
|
@@ -180,6 +279,7 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
180
279
|
dragElastic: 0,
|
|
181
280
|
dragMomentum: false,
|
|
182
281
|
dragListener: false,
|
|
282
|
+
onDragEnd: keepInViewport,
|
|
183
283
|
"data-likec4-color": nodeModel?.color ?? elementModel.color,
|
|
184
284
|
className: card,
|
|
185
285
|
initial: {
|
|
@@ -194,7 +294,9 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
194
294
|
},
|
|
195
295
|
animate: {
|
|
196
296
|
opacity: 1,
|
|
197
|
-
scale: 1
|
|
297
|
+
scale: 1,
|
|
298
|
+
originX,
|
|
299
|
+
originY
|
|
198
300
|
},
|
|
199
301
|
exit: {
|
|
200
302
|
opacity: 0,
|
|
@@ -204,17 +306,26 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
204
306
|
},
|
|
205
307
|
style: {
|
|
206
308
|
width,
|
|
207
|
-
height
|
|
309
|
+
height,
|
|
310
|
+
x,
|
|
311
|
+
y
|
|
208
312
|
},
|
|
209
313
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ jsx("div", {
|
|
211
315
|
className: cardHeader,
|
|
212
|
-
onPointerDown: (e) =>
|
|
213
|
-
|
|
316
|
+
onPointerDown: (e) => {
|
|
317
|
+
if (!e.target.closest("button, a, input, textarea")) e.preventDefault();
|
|
318
|
+
controls.start(e);
|
|
319
|
+
},
|
|
320
|
+
onDoubleClick: (e) => {
|
|
321
|
+
if (e.target.closest("button, a")) return;
|
|
322
|
+
window.getSelection()?.removeAllRanges();
|
|
323
|
+
resetCard();
|
|
324
|
+
},
|
|
325
|
+
children: /* @__PURE__ */ jsxs(HStack, {
|
|
214
326
|
alignItems: "start",
|
|
215
327
|
justify: "space-between",
|
|
216
328
|
gap: "sm",
|
|
217
|
-
mb: "sm",
|
|
218
329
|
flexWrap: "nowrap",
|
|
219
330
|
children: [/* @__PURE__ */ jsxs(HStack, {
|
|
220
331
|
alignItems: "start",
|
|
@@ -230,58 +341,32 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
230
341
|
minWidth: 0,
|
|
231
342
|
overflow: "hidden"
|
|
232
343
|
},
|
|
233
|
-
children: [
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ jsx(Tooltip$1, {
|
|
346
|
+
label: elementModel.title,
|
|
347
|
+
openDelay: 600,
|
|
348
|
+
position: "bottom-start",
|
|
349
|
+
children: /* @__PURE__ */ jsx(ElementTitle, { children: elementModel.title })
|
|
350
|
+
}),
|
|
351
|
+
notation && /* @__PURE__ */ jsx(Txt, {
|
|
352
|
+
dimmed: true,
|
|
353
|
+
size: "sm",
|
|
354
|
+
medium: true,
|
|
355
|
+
lineClamp: 1,
|
|
356
|
+
mt: "xxs",
|
|
357
|
+
children: notation
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ jsx("div", {
|
|
360
|
+
style: { marginTop: "0.25rem" },
|
|
361
|
+
children: /* @__PURE__ */ jsx(ElementFqn, { fqn: elementModel.id }, elementModel.id)
|
|
241
362
|
})
|
|
242
|
-
|
|
243
|
-
component: "div",
|
|
244
|
-
c: "dimmed",
|
|
245
|
-
fz: "sm",
|
|
246
|
-
fw: 500,
|
|
247
|
-
lh: 1.3,
|
|
248
|
-
lineClamp: 1,
|
|
249
|
-
children: notation
|
|
250
|
-
})]
|
|
363
|
+
]
|
|
251
364
|
})]
|
|
252
|
-
}), /* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
alignItems: "baseline",
|
|
258
|
-
gap: "sm",
|
|
259
|
-
flexWrap: "nowrap",
|
|
260
|
-
children: [
|
|
261
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(SmallLabel, { children: "kind" }), /* @__PURE__ */ jsx(Badge, {
|
|
262
|
-
radius: "sm",
|
|
263
|
-
size: "sm",
|
|
264
|
-
fw: 600,
|
|
265
|
-
color: "gray",
|
|
266
|
-
style: { cursor: "pointer" },
|
|
267
|
-
onClick: (e) => {
|
|
268
|
-
e.stopPropagation();
|
|
269
|
-
diagram.openSearch(`kind:${elementModel.kind}`);
|
|
270
|
-
},
|
|
271
|
-
children: elementModel.kind
|
|
272
|
-
})] }),
|
|
273
|
-
/* @__PURE__ */ jsxs("div", {
|
|
274
|
-
style: {
|
|
275
|
-
flex: 1,
|
|
276
|
-
minWidth: 0,
|
|
277
|
-
overflow: "hidden"
|
|
278
|
-
},
|
|
279
|
-
children: [/* @__PURE__ */ jsx(SmallLabel, { children: "tags" }), /* @__PURE__ */ jsx(ElementTags, {
|
|
280
|
-
tags: elementModel.tags,
|
|
281
|
-
onClick: (tag) => diagram.openSearch(`#${tag}`)
|
|
282
|
-
})]
|
|
283
|
-
}),
|
|
284
|
-
/* @__PURE__ */ jsxs(ActionIconGroup, {
|
|
365
|
+
}), /* @__PURE__ */ jsxs(HStack, {
|
|
366
|
+
gap: "xs",
|
|
367
|
+
flexWrap: "nowrap",
|
|
368
|
+
style: { flex: "none" },
|
|
369
|
+
children: [/* @__PURE__ */ jsxs(ActionIconGroup, {
|
|
285
370
|
style: { alignSelf: "flex-start" },
|
|
286
371
|
children: [
|
|
287
372
|
defaultLink && /* @__PURE__ */ jsx(ActionIcon, {
|
|
@@ -306,7 +391,7 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
306
391
|
radius: "sm",
|
|
307
392
|
onClick: (e) => {
|
|
308
393
|
e.stopPropagation();
|
|
309
|
-
diagram.openSource({ element:
|
|
394
|
+
diagram.openSource(subject.type === "deployment" ? { deployment: subject.deployment } : { element: subject.element });
|
|
310
395
|
},
|
|
311
396
|
children: /* @__PURE__ */ jsx(IconFileSymlink, {
|
|
312
397
|
stroke: 1.8,
|
|
@@ -315,7 +400,7 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
315
400
|
})
|
|
316
401
|
})
|
|
317
402
|
}),
|
|
318
|
-
|
|
403
|
+
defaultViewId && /* @__PURE__ */ jsx(Tooltip$1, {
|
|
319
404
|
label: "Open default view",
|
|
320
405
|
children: /* @__PURE__ */ jsx(ActionIcon, {
|
|
321
406
|
size: "lg",
|
|
@@ -323,61 +408,81 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
323
408
|
radius: "sm",
|
|
324
409
|
onClick: (e) => {
|
|
325
410
|
e.stopPropagation();
|
|
326
|
-
diagram.navigateTo(
|
|
411
|
+
diagram.navigateTo(defaultViewId, fromNode ?? void 0);
|
|
327
412
|
},
|
|
328
413
|
children: /* @__PURE__ */ jsx(IconZoomScan, { style: { width: "70%" } })
|
|
329
414
|
})
|
|
330
415
|
})
|
|
331
416
|
]
|
|
332
|
-
})
|
|
333
|
-
|
|
334
|
-
|
|
417
|
+
}), /* @__PURE__ */ jsx(CloseButton, {
|
|
418
|
+
size: "lg",
|
|
419
|
+
onClick: triggerClose
|
|
420
|
+
})]
|
|
421
|
+
})]
|
|
422
|
+
})
|
|
335
423
|
}),
|
|
336
424
|
/* @__PURE__ */ jsx(MetadataProvider, { children: /* @__PURE__ */ jsxs(Tabs, {
|
|
337
425
|
value: activeTab,
|
|
338
426
|
onChange: (v) => setActiveTab(v),
|
|
339
427
|
variant: "none",
|
|
340
|
-
classNames:
|
|
341
|
-
root: tabsRoot,
|
|
342
|
-
list: tabsList,
|
|
343
|
-
tab: tabsTab,
|
|
344
|
-
panel: tabsPanel
|
|
345
|
-
},
|
|
428
|
+
classNames: tabs(),
|
|
346
429
|
children: [
|
|
347
|
-
/* @__PURE__ */ jsx(TabsList, { children:
|
|
430
|
+
/* @__PURE__ */ jsx(TabsList, { children: tabs$1.map((tab) => /* @__PURE__ */ jsx(TabsTab, {
|
|
348
431
|
value: tab,
|
|
349
432
|
children: tab
|
|
350
433
|
}, tab)) }),
|
|
351
434
|
/* @__PURE__ */ jsx(TabsPanel, {
|
|
352
435
|
value: "Properties",
|
|
353
|
-
children: /* @__PURE__ */ jsx(
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
436
|
+
children: /* @__PURE__ */ jsx(PropertiesSplit, {
|
|
437
|
+
main: /* @__PURE__ */ jsx(ElementDescription, { element: elementModel }),
|
|
438
|
+
sidebar: hasFacts ? /* @__PURE__ */ jsx(ScrollArea, {
|
|
439
|
+
className: propertiesSidebar,
|
|
440
|
+
scrollbars: "y",
|
|
441
|
+
type: "auto",
|
|
442
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
443
|
+
className: facts,
|
|
444
|
+
children: [
|
|
445
|
+
technologies.length > 0 && /* @__PURE__ */ jsx(Fact, {
|
|
446
|
+
label: "technology",
|
|
447
|
+
children: technologies.map((technology) => /* @__PURE__ */ jsx(Badge, {
|
|
448
|
+
variant: "default",
|
|
449
|
+
radius: "sm",
|
|
450
|
+
size: "sm",
|
|
451
|
+
tt: "none",
|
|
452
|
+
className: technologyBadge,
|
|
453
|
+
children: technology
|
|
454
|
+
}, technology))
|
|
455
|
+
}),
|
|
456
|
+
elementModel.links.length > 0 && /* @__PURE__ */ jsx(Fact, {
|
|
457
|
+
label: "links",
|
|
458
|
+
children: elementModel.links.map((link, i) => /* @__PURE__ */ jsx(Link, { value: link }, `${link.url}-${i}`))
|
|
459
|
+
}),
|
|
460
|
+
deploymentElement?.isInstance() && /* @__PURE__ */ jsx(Fact, {
|
|
461
|
+
label: "logical element",
|
|
462
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
463
|
+
variant: "default",
|
|
464
|
+
size: "compact-xs",
|
|
465
|
+
fz: "xxs",
|
|
466
|
+
onClick: () => diagram.openNodeDetails({
|
|
467
|
+
type: "element",
|
|
468
|
+
element: deploymentElement.element.id
|
|
469
|
+
}),
|
|
470
|
+
children: deploymentElement.element.title
|
|
471
|
+
})
|
|
472
|
+
}),
|
|
473
|
+
elementModel.hasMetadata() && /* @__PURE__ */ jsx(Fact, {
|
|
474
|
+
label: "metadata",
|
|
475
|
+
children: /* @__PURE__ */ jsx(MetadataList, {
|
|
476
|
+
entries: entries(elementModel.metadata).sort(([a], [b]) => a.localeCompare(b)),
|
|
477
|
+
onSearch: (key, value) => diagram.openSearch(metadataSearchQuery(key, value))
|
|
478
|
+
})
|
|
479
|
+
})
|
|
480
|
+
]
|
|
481
|
+
})
|
|
482
|
+
}) : null
|
|
378
483
|
})
|
|
379
484
|
}),
|
|
380
|
-
/* @__PURE__ */ jsx(TabsPanel, {
|
|
485
|
+
logicalElement && /* @__PURE__ */ jsx(TabsPanel, {
|
|
381
486
|
value: "Relationships",
|
|
382
487
|
children: /* @__PURE__ */ jsx(DiagramFeatures, {
|
|
383
488
|
overrides: {
|
|
@@ -385,32 +490,16 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
385
490
|
enableNavigateTo: false
|
|
386
491
|
},
|
|
387
492
|
children: opened && activeTab === "Relationships" && /* @__PURE__ */ jsx(TabPanelRelationships, {
|
|
388
|
-
element:
|
|
493
|
+
element: logicalElement,
|
|
389
494
|
node: nodeModel ?? null
|
|
390
495
|
})
|
|
391
496
|
})
|
|
392
497
|
}),
|
|
393
498
|
/* @__PURE__ */ jsx(TabsPanel, {
|
|
394
499
|
value: "Views",
|
|
395
|
-
children: /* @__PURE__ */ jsx(
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
children: /* @__PURE__ */ jsxs(Stack, {
|
|
399
|
-
gap: "lg",
|
|
400
|
-
children: [viewsOf.length > 0 && /* @__PURE__ */ jsxs(Box, { children: [/* @__PURE__ */ jsx(Divider$1, { label: "views of the element (scoped)" }), /* @__PURE__ */ jsx(Stack, {
|
|
401
|
-
gap: "sm",
|
|
402
|
-
children: viewsOf.map((view) => /* @__PURE__ */ jsx(ViewButton, {
|
|
403
|
-
view,
|
|
404
|
-
onNavigateTo: (to) => diagram.navigateTo(to, fromNode ?? void 0)
|
|
405
|
-
}, view.id))
|
|
406
|
-
})] }), otherViews.length > 0 && /* @__PURE__ */ jsxs(Box, { children: [/* @__PURE__ */ jsx(Divider$1, { label: "views including this element" }), /* @__PURE__ */ jsx(Stack, {
|
|
407
|
-
gap: "sm",
|
|
408
|
-
children: otherViews.map((view) => /* @__PURE__ */ jsx(ViewButton, {
|
|
409
|
-
view,
|
|
410
|
-
onNavigateTo: (to) => diagram.navigateTo(to, fromNode ?? void 0)
|
|
411
|
-
}, view.id))
|
|
412
|
-
})] })]
|
|
413
|
-
})
|
|
500
|
+
children: /* @__PURE__ */ jsx(TabPanelViews, {
|
|
501
|
+
elementModel,
|
|
502
|
+
onNavigateTo: (viewId) => diagram.navigateTo(viewId, fromNode ?? void 0)
|
|
414
503
|
})
|
|
415
504
|
}),
|
|
416
505
|
/* @__PURE__ */ jsx(TabsPanel, {
|
|
@@ -421,22 +510,55 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
421
510
|
children: /* @__PURE__ */ jsx(TabPanelStructure, { element: elementModel })
|
|
422
511
|
})
|
|
423
512
|
}),
|
|
424
|
-
/* @__PURE__ */ jsx(TabsPanel, {
|
|
513
|
+
logicalElement && /* @__PURE__ */ jsx(TabsPanel, {
|
|
425
514
|
value: "Deployments",
|
|
426
515
|
children: /* @__PURE__ */ jsx(ScrollArea, {
|
|
427
516
|
scrollbars: "y",
|
|
428
517
|
type: "auto",
|
|
429
|
-
children: /* @__PURE__ */ jsx(TabPanelDeployments, { elementFqn:
|
|
518
|
+
children: /* @__PURE__ */ jsx(TabPanelDeployments, { elementFqn: logicalElement.id })
|
|
430
519
|
})
|
|
431
520
|
})
|
|
432
521
|
]
|
|
433
522
|
}) }),
|
|
523
|
+
/* @__PURE__ */ jsxs(CardFooter, { children: [
|
|
524
|
+
/* @__PURE__ */ jsxs(CardFooterSection, { children: [/* @__PURE__ */ jsx(SmallLabel, { children: "kind" }), /* @__PURE__ */ jsx(Txt, {
|
|
525
|
+
size: "sm",
|
|
526
|
+
layerStyle: "surface.sunken",
|
|
527
|
+
px: "2",
|
|
528
|
+
py: "0.5",
|
|
529
|
+
medium: true,
|
|
530
|
+
rounded: "sm",
|
|
531
|
+
cursor: "pointer",
|
|
532
|
+
onClick: (e) => {
|
|
533
|
+
e.stopPropagation();
|
|
534
|
+
diagram.openSearch(`kind:${elementModel.kind}`);
|
|
535
|
+
},
|
|
536
|
+
children: elementModel.kind
|
|
537
|
+
})] }),
|
|
538
|
+
nodeModel?.$node.diffStatus && /* @__PURE__ */ jsxs(CardFooterSection, { children: [/* @__PURE__ */ jsx(SmallLabel, { children: "diff" }), /* @__PURE__ */ jsx(Badge, {
|
|
539
|
+
radius: "sm",
|
|
540
|
+
size: "sm",
|
|
541
|
+
fw: 600,
|
|
542
|
+
variant: "light",
|
|
543
|
+
color: diffStatusColor[nodeModel.$node.diffStatus],
|
|
544
|
+
children: nodeModel.$node.diffStatus
|
|
545
|
+
})] }),
|
|
546
|
+
elementModel.tags.length > 0 && /* @__PURE__ */ jsxs(CardFooterSection, {
|
|
547
|
+
full: true,
|
|
548
|
+
children: [/* @__PURE__ */ jsx(SmallLabel, { children: "tags" }), /* @__PURE__ */ jsx(ElementTags, {
|
|
549
|
+
tags: elementModel.tags,
|
|
550
|
+
onClick: (tag) => diagram.openSearch(`#${tag}`)
|
|
551
|
+
})]
|
|
552
|
+
})
|
|
553
|
+
] }),
|
|
434
554
|
/* @__PURE__ */ jsx(m.div, {
|
|
435
555
|
className: resizeHandle,
|
|
436
556
|
drag: true,
|
|
437
557
|
dragElastic: 0,
|
|
438
558
|
dragMomentum: false,
|
|
439
|
-
onDrag:
|
|
559
|
+
onDrag: handleResize,
|
|
560
|
+
onDragEnd: handleResizeEnd,
|
|
561
|
+
onDoubleClick: resetCard,
|
|
440
562
|
dragConstraints: {
|
|
441
563
|
top: 0,
|
|
442
564
|
left: 0,
|
|
@@ -449,86 +571,211 @@ function ElementDetailsCard({ viewId, fromNode, rectFromNode, fqn, onClose }) {
|
|
|
449
571
|
})
|
|
450
572
|
});
|
|
451
573
|
}
|
|
452
|
-
|
|
453
|
-
return /* @__PURE__ */ jsx(
|
|
454
|
-
className:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
wrap: "nowrap",
|
|
460
|
-
children: [/* @__PURE__ */ jsx(ThemeIcon, {
|
|
461
|
-
size: "sm",
|
|
462
|
-
variant: "transparent",
|
|
463
|
-
children: view._type === "deployment" ? /* @__PURE__ */ jsx(IconStack2, { stroke: 1.8 }) : /* @__PURE__ */ jsx(IconZoomScan, { stroke: 1.8 })
|
|
464
|
-
}), /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text, {
|
|
465
|
-
component: "div",
|
|
466
|
-
className: viewButtonTitle,
|
|
467
|
-
lineClamp: 1,
|
|
468
|
-
children: view.title || "untitled"
|
|
469
|
-
}) })]
|
|
470
|
-
})
|
|
471
|
-
});
|
|
472
|
-
};
|
|
473
|
-
function ElementProperty({ title, emptyValue = `undefined`, children, style, ...props }) {
|
|
474
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(PropertyLabel, { children: title }), /* @__PURE__ */ jsx(Text, {
|
|
475
|
-
component: "div",
|
|
476
|
-
...isNullish(children) && { c: "dimmed" },
|
|
477
|
-
fz: "md",
|
|
478
|
-
style: {
|
|
479
|
-
whiteSpace: "preserve-breaks",
|
|
480
|
-
userSelect: "all",
|
|
481
|
-
...style
|
|
482
|
-
},
|
|
483
|
-
...props,
|
|
484
|
-
children: children || emptyValue
|
|
574
|
+
function Fact({ label, children }) {
|
|
575
|
+
return /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", {
|
|
576
|
+
className: factLabel,
|
|
577
|
+
children: label
|
|
578
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
579
|
+
className: factValues,
|
|
580
|
+
children
|
|
485
581
|
})] });
|
|
486
582
|
}
|
|
487
|
-
function ElementMetadata({ value: metadata }) {
|
|
488
|
-
const metadataEntries = entries(metadata).sort(([a], [b]) => a.localeCompare(b));
|
|
489
|
-
return /* @__PURE__ */ jsx(MetadataProvider, { children: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(PropertyLabel, {
|
|
490
|
-
style: {
|
|
491
|
-
justifySelf: "end",
|
|
492
|
-
textAlign: "right"
|
|
493
|
-
},
|
|
494
|
-
children: "metadata"
|
|
495
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
496
|
-
className: css({
|
|
497
|
-
display: "grid",
|
|
498
|
-
gridTemplateColumns: "min-content 1fr",
|
|
499
|
-
gridAutoRows: "[min-content]",
|
|
500
|
-
gap: `[12px 16px]`,
|
|
501
|
-
alignItems: "baseline",
|
|
502
|
-
justifyItems: "stretch"
|
|
503
|
-
}),
|
|
504
|
-
children: metadataEntries.map(([key, value]) => /* @__PURE__ */ jsx(MetadataValue, {
|
|
505
|
-
label: key,
|
|
506
|
-
value
|
|
507
|
-
}, key))
|
|
508
|
-
})] }) });
|
|
509
|
-
}
|
|
510
583
|
function ElementTags({ tags, onClick }) {
|
|
511
|
-
return /* @__PURE__ */
|
|
584
|
+
return /* @__PURE__ */ jsx(Flex, {
|
|
512
585
|
gap: 4,
|
|
513
586
|
flex: 1,
|
|
514
|
-
mt: 6,
|
|
515
587
|
wrap: "wrap",
|
|
516
|
-
|
|
588
|
+
align: "center",
|
|
589
|
+
children: tags.map((tag) => /* @__PURE__ */ jsx(ElementTag, {
|
|
517
590
|
tag,
|
|
518
591
|
cursor: "pointer",
|
|
519
592
|
onClick: (e) => {
|
|
520
593
|
e.stopPropagation();
|
|
521
594
|
onClick(tag);
|
|
522
595
|
}
|
|
523
|
-
}, tag))
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
596
|
+
}, tag))
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
const FqnPart = styled("div", { base: {
|
|
600
|
+
px: "1",
|
|
601
|
+
paddingTop: "0.5",
|
|
602
|
+
paddingBottom: "1.5",
|
|
603
|
+
fontSize: "xs",
|
|
604
|
+
lineHeight: "snug",
|
|
605
|
+
fontWeight: "medium",
|
|
606
|
+
color: "text.dimmed",
|
|
607
|
+
borderRadius: "sm",
|
|
608
|
+
cursor: "pointer",
|
|
609
|
+
"& + &": {
|
|
610
|
+
ml: "-1",
|
|
611
|
+
pl: "0"
|
|
612
|
+
},
|
|
613
|
+
"&[data-hovered=\"true\"]": {
|
|
614
|
+
color: "text.bright",
|
|
615
|
+
backgroundColor: "surface.sunken"
|
|
616
|
+
}
|
|
617
|
+
} });
|
|
618
|
+
const FqnSegment = styled("button", { base: {
|
|
619
|
+
px: "1",
|
|
620
|
+
paddingTop: "0.5",
|
|
621
|
+
paddingBottom: "1.5",
|
|
622
|
+
fontFamily: "[inherit]",
|
|
623
|
+
fontSize: "xs",
|
|
624
|
+
lineHeight: "snug",
|
|
625
|
+
fontWeight: "medium",
|
|
626
|
+
color: "text.dimmed",
|
|
627
|
+
background: "none",
|
|
628
|
+
border: "none",
|
|
629
|
+
borderRadius: "sm",
|
|
630
|
+
cursor: "pointer",
|
|
631
|
+
"& + &": {
|
|
632
|
+
ml: "-1",
|
|
633
|
+
pl: "0"
|
|
634
|
+
},
|
|
635
|
+
"&[data-hovered=\"true\"]": {
|
|
636
|
+
color: "text.bright",
|
|
637
|
+
backgroundColor: "surface.sunken"
|
|
638
|
+
}
|
|
639
|
+
} });
|
|
640
|
+
const fqnCopyStatus = css({
|
|
641
|
+
display: "inline-flex",
|
|
642
|
+
alignItems: "center",
|
|
643
|
+
alignSelf: "center",
|
|
644
|
+
gap: "1",
|
|
645
|
+
ml: "1",
|
|
646
|
+
fontSize: "xxs",
|
|
647
|
+
color: "text.dimmed",
|
|
648
|
+
opacity: "0",
|
|
649
|
+
transition: "fast",
|
|
650
|
+
pointerEvents: "none",
|
|
651
|
+
"&[data-copied=\"true\"]": {
|
|
652
|
+
opacity: "1",
|
|
653
|
+
color: "[var(--mantine-color-teal-text)]"
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
/**
|
|
657
|
+
* Segments of an FQN, each with the path from the root to it.
|
|
658
|
+
* `cloud.backend.api` → `cloud` (cloud), `backend` (cloud.backend), `api` (cloud.backend.api)
|
|
659
|
+
*/
|
|
660
|
+
function fqnPathSegments(fqn) {
|
|
661
|
+
return [...ancestorsFqn(fqn).toReversed(), fqn].map((path) => ({
|
|
662
|
+
name: nameFromFqn(path),
|
|
663
|
+
path
|
|
664
|
+
}));
|
|
665
|
+
}
|
|
666
|
+
function ElementFqn({ fqn }) {
|
|
667
|
+
const [hovered, setHovered] = useState(null);
|
|
668
|
+
const clipboard = useClipboard({ timeout: 1500 });
|
|
669
|
+
const isHighlighted = (path) => !!hovered && (path === hovered || isAncestor(path, hovered));
|
|
670
|
+
const segmentHandlers = (path) => ({
|
|
671
|
+
onMouseEnter: () => setHovered(path),
|
|
672
|
+
onMouseLeave: () => setHovered(null),
|
|
673
|
+
onClick: (e) => {
|
|
674
|
+
e.stopPropagation();
|
|
675
|
+
clipboard.copy(path);
|
|
676
|
+
},
|
|
677
|
+
onPointerDown: stopEventPropagation,
|
|
678
|
+
onDoubleClick: stopEventPropagation
|
|
679
|
+
});
|
|
680
|
+
const segments = fqnPathSegments(fqn);
|
|
681
|
+
return /* @__PURE__ */ jsxs(HStack, {
|
|
682
|
+
className: "group",
|
|
683
|
+
css: {
|
|
684
|
+
gap: "0",
|
|
685
|
+
alignItems: "baseline"
|
|
686
|
+
},
|
|
687
|
+
children: [
|
|
688
|
+
/* @__PURE__ */ jsx(SmallLabel, {
|
|
689
|
+
color: "text.non-essential",
|
|
690
|
+
children: "FQN"
|
|
691
|
+
}),
|
|
692
|
+
segments.map(({ name, path }, index) => /* @__PURE__ */ jsxs(Fragment, { children: [index > 0 && /* @__PURE__ */ jsx(FqnPart, {
|
|
693
|
+
"aria-hidden": true,
|
|
694
|
+
...segmentHandlers(segments[index - 1].path),
|
|
695
|
+
"data-hovered": isHighlighted(segments[index - 1].path),
|
|
696
|
+
children: "."
|
|
697
|
+
}), /* @__PURE__ */ jsx(FqnSegment, {
|
|
698
|
+
tabIndex: -1,
|
|
699
|
+
"data-hovered": isHighlighted(path),
|
|
700
|
+
onFocus: () => setHovered(path),
|
|
701
|
+
onBlur: () => setHovered(null),
|
|
702
|
+
...segmentHandlers(path),
|
|
703
|
+
children: name
|
|
704
|
+
})] }, path)),
|
|
705
|
+
/* @__PURE__ */ jsxs("span", {
|
|
706
|
+
className: fqnCopyStatus,
|
|
707
|
+
"data-copied": clipboard.copied,
|
|
708
|
+
children: [/* @__PURE__ */ jsx(IconCheck, {
|
|
709
|
+
size: 12,
|
|
710
|
+
stroke: 2.5
|
|
711
|
+
}), "Copied"]
|
|
712
|
+
})
|
|
713
|
+
]
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
function stopEventPropagation(e) {
|
|
717
|
+
e.stopPropagation();
|
|
718
|
+
}
|
|
719
|
+
function ElementDescription({ element }) {
|
|
720
|
+
return /* @__PURE__ */ jsxs(ScrollArea, {
|
|
721
|
+
className: propertiesMain,
|
|
722
|
+
scrollbars: "y",
|
|
723
|
+
type: "auto",
|
|
724
|
+
offsetScrollbars: true,
|
|
725
|
+
children: [element.hasSummary && /* @__PURE__ */ jsx(ElementSummary, { element }), /* @__PURE__ */ jsx(styled.div, {
|
|
726
|
+
css: {
|
|
727
|
+
paddingX: "1",
|
|
728
|
+
paddingTop: "2"
|
|
729
|
+
},
|
|
730
|
+
children: /* @__PURE__ */ jsx(MarkdownWithRefs, {
|
|
731
|
+
fontSize: "lg",
|
|
732
|
+
value: element.description,
|
|
733
|
+
emptyText: "No description"
|
|
734
|
+
})
|
|
529
735
|
})]
|
|
530
736
|
});
|
|
531
737
|
}
|
|
738
|
+
function ElementSummary({ element }) {
|
|
739
|
+
const [opened, { toggle }] = useDisclosure();
|
|
740
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(UnstyledButton, {
|
|
741
|
+
className: hstack({
|
|
742
|
+
gap: "1",
|
|
743
|
+
fontSize: "xs",
|
|
744
|
+
layerStyle: opened ? "likec4.panel.action.filled" : "likec4.panel.action",
|
|
745
|
+
paddingLeft: "1"
|
|
746
|
+
}),
|
|
747
|
+
"aria-expanded": opened,
|
|
748
|
+
onClick: toggle,
|
|
749
|
+
children: [/* @__PURE__ */ jsx(IconCaretRightFilled, {
|
|
750
|
+
size: 12,
|
|
751
|
+
style: {
|
|
752
|
+
width: 12,
|
|
753
|
+
opacity: .5,
|
|
754
|
+
transform: opened ? "rotate(90deg)" : "none"
|
|
755
|
+
}
|
|
756
|
+
}), /* @__PURE__ */ jsx("div", { children: "Summary" })]
|
|
757
|
+
}), /* @__PURE__ */ jsx(Collapse, {
|
|
758
|
+
expanded: opened,
|
|
759
|
+
keepMounted: false,
|
|
760
|
+
children: /* @__PURE__ */ jsx(styled.div, {
|
|
761
|
+
css: {
|
|
762
|
+
paddingY: "2",
|
|
763
|
+
paddingLeft: "4",
|
|
764
|
+
marginY: "2",
|
|
765
|
+
position: "relative",
|
|
766
|
+
_before: {
|
|
767
|
+
content: "\"\"",
|
|
768
|
+
position: "absolute",
|
|
769
|
+
left: "1",
|
|
770
|
+
top: "0",
|
|
771
|
+
width: "[2px]",
|
|
772
|
+
height: "100%",
|
|
773
|
+
backgroundColor: "border.focus"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
children: /* @__PURE__ */ jsx(MarkdownWithRefs, { value: element.summary })
|
|
777
|
+
})
|
|
778
|
+
})] });
|
|
779
|
+
}
|
|
532
780
|
|
|
533
|
-
|
|
534
|
-
export { ElementDetailsCard };
|
|
781
|
+
export { ElementDetailsCard, fqnPathSegments };
|