@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,232 +1,125 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconChevronDown from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs";
|
|
3
|
-
import IconChevronRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs";
|
|
4
2
|
import { css } from "@likec4/styles/css";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Box, Flex, Stack, Text, Tooltip, UnstyledButton } from "@mantine/core";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Badge, UnstyledButton } from "@mantine/core";
|
|
8
5
|
|
|
9
|
-
|
|
6
|
+
// src/overlays/element-details/MetadataValue.tsx
|
|
10
7
|
function MetadataProvider({ children }) {
|
|
11
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
8
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
12
9
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
setPortalTarget(textElement.closest("dialog"));
|
|
21
|
-
const observer = new ResizeObserver(() => {
|
|
22
|
-
setIsTruncated(textElement.scrollWidth > textElement.clientWidth);
|
|
23
|
-
});
|
|
24
|
-
observer.observe(textElement);
|
|
25
|
-
return () => observer.disconnect();
|
|
26
|
-
}, [value]);
|
|
27
|
-
return /* @__PURE__ */ jsx(Tooltip, {
|
|
28
|
-
label: isTruncated && !isExpanded ? value : null,
|
|
29
|
-
multiline: true,
|
|
30
|
-
w: 300,
|
|
31
|
-
portalProps: portalTarget ? { target: portalTarget } : {},
|
|
32
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
33
|
-
ref: textRef,
|
|
34
|
-
component: "div",
|
|
35
|
-
className: css({
|
|
36
|
-
fontSize: "sm",
|
|
37
|
-
padding: "xs",
|
|
38
|
-
userSelect: "all",
|
|
39
|
-
color: "text",
|
|
40
|
-
lineHeight: "md",
|
|
41
|
-
whiteSpace: isExpanded ? "pre-wrap" : "nowrap",
|
|
42
|
-
overflow: isExpanded ? "visible" : "hidden",
|
|
43
|
-
textOverflow: isExpanded ? "unset" : "ellipsis",
|
|
44
|
-
wordBreak: isExpanded ? "break-word" : "normal",
|
|
45
|
-
minWidth: "0",
|
|
46
|
-
width: "100%"
|
|
47
|
-
}),
|
|
48
|
-
children: value
|
|
49
|
-
})
|
|
50
|
-
});
|
|
10
|
+
/**
|
|
11
|
+
* Splits a metadata value into separate values:
|
|
12
|
+
* arrays as is, multiline strings by line.
|
|
13
|
+
*/
|
|
14
|
+
function metadataValues(value) {
|
|
15
|
+
if (typeof value !== "string") return [...value];
|
|
16
|
+
return value.includes("\n") ? value.split("\n").map((s) => s.trim()).filter(Boolean) : [value];
|
|
51
17
|
}
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
18
|
+
const list = css({
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
gap: "2.5",
|
|
22
|
+
width: "100%"
|
|
23
|
+
});
|
|
24
|
+
const row = css({
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexWrap: "wrap",
|
|
27
|
+
alignItems: "baseline",
|
|
28
|
+
columnGap: "2",
|
|
29
|
+
rowGap: "1"
|
|
30
|
+
});
|
|
31
|
+
const keyButton = css({
|
|
32
|
+
maxWidth: "[160px]",
|
|
33
|
+
borderRadius: "sm",
|
|
34
|
+
fontSize: "xs",
|
|
35
|
+
fontWeight: "medium",
|
|
36
|
+
color: "text/55",
|
|
37
|
+
whiteSpace: "nowrap",
|
|
38
|
+
overflow: "hidden",
|
|
39
|
+
textOverflow: "ellipsis",
|
|
40
|
+
transition: "fast",
|
|
41
|
+
_hover: {
|
|
42
|
+
color: "text.link",
|
|
43
|
+
backgroundColor: "surface.hover"
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const values = css({
|
|
47
|
+
display: "flex",
|
|
48
|
+
flexWrap: "wrap",
|
|
49
|
+
gap: "1",
|
|
50
|
+
minWidth: "0"
|
|
51
|
+
});
|
|
52
|
+
const chip = css({
|
|
53
|
+
minHeight: "[24px]",
|
|
54
|
+
maxWidth: "100%",
|
|
55
|
+
backgroundColor: {
|
|
56
|
+
base: "transparent",
|
|
57
|
+
_hover: {
|
|
58
|
+
base: "mantine.gray[1]",
|
|
59
|
+
_dark: "mantine.dark[5]"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const chipLabel = css({
|
|
64
|
+
overflow: "hidden",
|
|
65
|
+
textOverflow: "ellipsis"
|
|
66
|
+
});
|
|
67
|
+
const chipButton = css({
|
|
68
|
+
fontSize: "[inherit]",
|
|
69
|
+
fontWeight: "[inherit]",
|
|
70
|
+
lineHeight: "[inherit]",
|
|
71
|
+
maxWidth: "100%",
|
|
72
|
+
overflow: "hidden",
|
|
73
|
+
textOverflow: "ellipsis",
|
|
74
|
+
whiteSpace: "nowrap",
|
|
75
|
+
color: "[var(--badge-color)]",
|
|
76
|
+
opacity: {
|
|
77
|
+
base: "0.9",
|
|
78
|
+
_hover: "1"
|
|
79
|
+
},
|
|
80
|
+
transition: "fast"
|
|
81
|
+
});
|
|
82
|
+
/**
|
|
83
|
+
* Metadata as compact rows: key followed by its values.
|
|
84
|
+
* Keys and values are clickable, to find other elements with the same metadata.
|
|
85
|
+
*/
|
|
86
|
+
function MetadataList({ entries, onSearch }) {
|
|
87
|
+
return /* @__PURE__ */ jsx("div", {
|
|
88
|
+
className: list,
|
|
89
|
+
children: entries.map(([key, value]) => /* @__PURE__ */ jsxs("div", {
|
|
90
|
+
className: row,
|
|
91
|
+
children: [/* @__PURE__ */ jsx(UnstyledButton, {
|
|
92
|
+
className: keyButton,
|
|
93
|
+
title: `Find elements with "${key}"`,
|
|
94
|
+
onClick: (e) => {
|
|
95
|
+
e.stopPropagation();
|
|
96
|
+
onSearch(key);
|
|
97
|
+
},
|
|
98
|
+
children: key
|
|
99
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
100
|
+
className: values,
|
|
101
|
+
children: metadataValues(value).map((v, i) => /* @__PURE__ */ jsx(Badge, {
|
|
102
|
+
variant: "default",
|
|
103
|
+
radius: "sm",
|
|
104
|
+
size: "sm",
|
|
105
|
+
tt: "none",
|
|
106
|
+
classNames: {
|
|
107
|
+
root: chip,
|
|
108
|
+
label: chipLabel
|
|
109
|
+
},
|
|
110
|
+
children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
111
|
+
className: chipButton,
|
|
112
|
+
title: `Find elements with ${key}: ${v}`,
|
|
113
|
+
onClick: (e) => {
|
|
114
|
+
e.stopPropagation();
|
|
115
|
+
onSearch(key, v);
|
|
116
|
+
},
|
|
117
|
+
children: v
|
|
118
|
+
})
|
|
119
|
+
}, i))
|
|
129
120
|
})]
|
|
130
|
-
},
|
|
121
|
+
}, key))
|
|
131
122
|
});
|
|
132
123
|
}
|
|
133
|
-
function MetadataValue({ label, value }) {
|
|
134
|
-
const elements = Array.isArray(value) ? value : typeof value === "string" && value.includes("\n") ? value.split("\n").map((s) => s.trim()).filter(Boolean) : [value];
|
|
135
|
-
const hasMultipleElements = elements.length > 1;
|
|
136
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
137
|
-
const handleToggle = () => {
|
|
138
|
-
setIsExpanded(!isExpanded);
|
|
139
|
-
};
|
|
140
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [hasMultipleElements ? /* @__PURE__ */ jsx(UnstyledButton, {
|
|
141
|
-
onClick: handleToggle,
|
|
142
|
-
className: css({
|
|
143
|
-
fontSize: "xs",
|
|
144
|
-
color: "text.dimmed",
|
|
145
|
-
justifySelf: "end",
|
|
146
|
-
textAlign: "right",
|
|
147
|
-
userSelect: "none",
|
|
148
|
-
display: "flex",
|
|
149
|
-
alignItems: "center",
|
|
150
|
-
justifyContent: "flex-end",
|
|
151
|
-
gap: "xs",
|
|
152
|
-
padding: "[4px 8px]",
|
|
153
|
-
borderRadius: "sm",
|
|
154
|
-
whiteSpace: "nowrap",
|
|
155
|
-
transitionProperty: "common",
|
|
156
|
-
transition: "medium",
|
|
157
|
-
_hover: {
|
|
158
|
-
backgroundColor: "mantine.gray[1]",
|
|
159
|
-
color: "primary.body",
|
|
160
|
-
_dark: {
|
|
161
|
-
backgroundColor: "mantine.dark[7]",
|
|
162
|
-
color: "primary.body.hover"
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}),
|
|
166
|
-
children: /* @__PURE__ */ jsxs(Flex, {
|
|
167
|
-
align: "center",
|
|
168
|
-
gap: "xs",
|
|
169
|
-
children: [
|
|
170
|
-
/* @__PURE__ */ jsxs(Text, {
|
|
171
|
-
component: "span",
|
|
172
|
-
size: "xs",
|
|
173
|
-
fw: 700,
|
|
174
|
-
children: [label, ":"]
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ jsx(Text, {
|
|
177
|
-
component: "span",
|
|
178
|
-
className: css({
|
|
179
|
-
fontSize: "xs",
|
|
180
|
-
fontWeight: "medium",
|
|
181
|
-
color: "mantine.gray[6]",
|
|
182
|
-
backgroundColor: "mantine.gray[1]",
|
|
183
|
-
padding: "[1px 4px]",
|
|
184
|
-
borderRadius: "xs",
|
|
185
|
-
_dark: {
|
|
186
|
-
color: "mantine.dark[2]",
|
|
187
|
-
backgroundColor: "mantine.dark[6]"
|
|
188
|
-
}
|
|
189
|
-
}),
|
|
190
|
-
children: elements.length
|
|
191
|
-
}),
|
|
192
|
-
isExpanded ? /* @__PURE__ */ jsx(IconChevronDown, { size: 12 }) : /* @__PURE__ */ jsx(IconChevronRight, { size: 12 })
|
|
193
|
-
]
|
|
194
|
-
})
|
|
195
|
-
}) : /* @__PURE__ */ jsxs(Text, {
|
|
196
|
-
component: "div",
|
|
197
|
-
className: css({
|
|
198
|
-
fontSize: "xs",
|
|
199
|
-
color: "text.dimmed",
|
|
200
|
-
justifySelf: "end",
|
|
201
|
-
textAlign: "right",
|
|
202
|
-
userSelect: "none",
|
|
203
|
-
whiteSpace: "nowrap",
|
|
204
|
-
padding: "[4px 8px]",
|
|
205
|
-
fontWeight: "[700]"
|
|
206
|
-
}),
|
|
207
|
-
children: [label, ":"]
|
|
208
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
209
|
-
className: css({
|
|
210
|
-
justifySelf: "stretch",
|
|
211
|
-
alignSelf: "start",
|
|
212
|
-
minWidth: "0"
|
|
213
|
-
}),
|
|
214
|
-
children: hasMultipleElements ? /* @__PURE__ */ jsx(MultiValueDisplay, {
|
|
215
|
-
values: elements,
|
|
216
|
-
isExpanded
|
|
217
|
-
}) : /* @__PURE__ */ jsx(Box, {
|
|
218
|
-
className: css({
|
|
219
|
-
minHeight: "[32px]",
|
|
220
|
-
display: "flex",
|
|
221
|
-
alignItems: "center"
|
|
222
|
-
}),
|
|
223
|
-
children: /* @__PURE__ */ jsx(TruncatedValue, {
|
|
224
|
-
value: elements[0] || "",
|
|
225
|
-
isExpanded
|
|
226
|
-
})
|
|
227
|
-
})
|
|
228
|
-
})] });
|
|
229
|
-
}
|
|
230
124
|
|
|
231
|
-
|
|
232
|
-
export { MetadataProvider, MetadataValue };
|
|
125
|
+
export { MetadataList, MetadataProvider, metadataValues };
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import IconChevronLeft from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs";
|
|
3
|
+
import IconChevronRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs";
|
|
4
|
+
import { css } from "@likec4/styles/css";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Tooltip, UnstyledButton } from "@mantine/core";
|
|
8
|
+
import { Txt } from "@likec4/styles/jsx";
|
|
9
|
+
import { Group as Group$1, Panel, Separator, useDefaultLayout, usePanelRef } from "react-resizable-panels";
|
|
10
|
+
|
|
11
|
+
// src/overlays/element-details/PropertiesSplit.tsx
|
|
12
|
+
const group = css({
|
|
13
|
+
height: "100%",
|
|
14
|
+
minHeight: "0"
|
|
15
|
+
});
|
|
16
|
+
const pane = css({
|
|
17
|
+
height: "100%",
|
|
18
|
+
minWidth: "0"
|
|
19
|
+
});
|
|
20
|
+
const separator = css({
|
|
21
|
+
position: "relative",
|
|
22
|
+
width: "[16px]",
|
|
23
|
+
outline: "none",
|
|
24
|
+
_before: {
|
|
25
|
+
content: "\"\"",
|
|
26
|
+
position: "absolute",
|
|
27
|
+
top: "0",
|
|
28
|
+
bottom: "0",
|
|
29
|
+
left: "[7.5px]",
|
|
30
|
+
width: "[1px]",
|
|
31
|
+
backgroundColor: "transparent",
|
|
32
|
+
transition: "fast"
|
|
33
|
+
},
|
|
34
|
+
"&:is([data-separator=\"hover\"], :focus-visible)": { _before: { backgroundColor: "border.default" } },
|
|
35
|
+
"&[data-separator=\"active\"]": { _before: {
|
|
36
|
+
left: "[7px]",
|
|
37
|
+
width: "[2px]",
|
|
38
|
+
backgroundColor: "primary.border"
|
|
39
|
+
} }
|
|
40
|
+
});
|
|
41
|
+
const toggle = css({
|
|
42
|
+
position: "absolute",
|
|
43
|
+
top: "1",
|
|
44
|
+
display: "flex",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
justifyContent: "center",
|
|
47
|
+
borderRadius: "sm",
|
|
48
|
+
color: "text.dimmed",
|
|
49
|
+
cursor: "pointer",
|
|
50
|
+
transition: "fast",
|
|
51
|
+
height: "icon.xl",
|
|
52
|
+
":where([data-separator=\"active\"]) &": {
|
|
53
|
+
transitionDelay: "fast",
|
|
54
|
+
visibility: "hidden"
|
|
55
|
+
},
|
|
56
|
+
_expanded: {
|
|
57
|
+
left: "[50%]",
|
|
58
|
+
width: "icon.xl",
|
|
59
|
+
transform: "translateX(-50%)"
|
|
60
|
+
},
|
|
61
|
+
"&:is([aria-expanded=\"false\"])": {
|
|
62
|
+
right: "0",
|
|
63
|
+
gap: "1",
|
|
64
|
+
px: "1"
|
|
65
|
+
},
|
|
66
|
+
_hover: {
|
|
67
|
+
color: "text",
|
|
68
|
+
backgroundColor: "surface.hover"
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const layoutStorage = typeof localStorage !== "undefined" ? localStorage : {
|
|
72
|
+
getItem: () => null,
|
|
73
|
+
setItem: () => {}
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Two panes: main content and a resizable, collapsible sidebar on the right.
|
|
77
|
+
* The layout (including collapsed state) is remembered across sessions.
|
|
78
|
+
*/
|
|
79
|
+
function PropertiesSplit({ main, sidebar }) {
|
|
80
|
+
if (sidebar === null) return /* @__PURE__ */ jsx("div", {
|
|
81
|
+
className: pane,
|
|
82
|
+
children: main
|
|
83
|
+
});
|
|
84
|
+
return /* @__PURE__ */ jsx(Split, {
|
|
85
|
+
main,
|
|
86
|
+
sidebar
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function Split({ main, sidebar }) {
|
|
90
|
+
const layout = useDefaultLayout({
|
|
91
|
+
id: "likec4-element-details-properties",
|
|
92
|
+
storage: layoutStorage
|
|
93
|
+
});
|
|
94
|
+
const sidebarRef = usePanelRef();
|
|
95
|
+
const [collapsed, setCollapsed] = useState(false);
|
|
96
|
+
const toggleSidebar = () => {
|
|
97
|
+
const panel = sidebarRef.current;
|
|
98
|
+
if (!panel) return;
|
|
99
|
+
if (panel.isCollapsed()) {
|
|
100
|
+
panel.expand();
|
|
101
|
+
setCollapsed(false);
|
|
102
|
+
} else {
|
|
103
|
+
panel.collapse();
|
|
104
|
+
setCollapsed(true);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const label = collapsed ? "Show Properties" : "Hide Properties";
|
|
108
|
+
return /* @__PURE__ */ jsxs(Group$1, {
|
|
109
|
+
className: group,
|
|
110
|
+
orientation: "horizontal",
|
|
111
|
+
defaultLayout: layout.defaultLayout,
|
|
112
|
+
onLayoutChanged: layout.onLayoutChanged,
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ jsx(Panel, {
|
|
115
|
+
id: "main",
|
|
116
|
+
className: pane,
|
|
117
|
+
minSize: 280,
|
|
118
|
+
children: main
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsx(Separator, {
|
|
121
|
+
className: separator,
|
|
122
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
123
|
+
label,
|
|
124
|
+
position: "left",
|
|
125
|
+
disabled: collapsed,
|
|
126
|
+
withinPortal: false,
|
|
127
|
+
children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
128
|
+
className: toggle,
|
|
129
|
+
"aria-label": label,
|
|
130
|
+
"aria-expanded": !collapsed,
|
|
131
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
132
|
+
onClick: toggleSidebar,
|
|
133
|
+
children: collapsed ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(IconChevronLeft, {
|
|
134
|
+
size: 14,
|
|
135
|
+
stroke: 2
|
|
136
|
+
}), /* @__PURE__ */ jsx(Txt, {
|
|
137
|
+
size: "xs",
|
|
138
|
+
cursor: "inherit",
|
|
139
|
+
children: "Properties"
|
|
140
|
+
})] }) : /* @__PURE__ */ jsx(IconChevronRight, {
|
|
141
|
+
size: 14,
|
|
142
|
+
stroke: 2
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
})
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ jsx(Panel, {
|
|
148
|
+
id: "sidebar",
|
|
149
|
+
className: pane,
|
|
150
|
+
panelRef: sidebarRef,
|
|
151
|
+
defaultSize: 260,
|
|
152
|
+
minSize: 120,
|
|
153
|
+
collapsible: true,
|
|
154
|
+
collapsedSize: 0,
|
|
155
|
+
onResize: (size) => setCollapsed(size.inPixels === 0),
|
|
156
|
+
children: sidebar
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export { PropertiesSplit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css, cx } from "@likec4/styles/css";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/overlays/element-details/TabPanelDeployments.css.ts
|
|
4
4
|
const treeNode = css({ [`&[data-level='1']`]: { marginBottom: "sm" } });
|
|
5
5
|
const treeNodeLabel = css({
|
|
6
6
|
cursor: "default",
|
|
@@ -33,5 +33,4 @@ const instanceLabel = cx(label, css({
|
|
|
33
33
|
}
|
|
34
34
|
}));
|
|
35
35
|
|
|
36
|
-
//#endregion
|
|
37
36
|
export { instanceLabel, nodeLabel, treeNode, treeNodeLabel };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconTarget from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
4
|
-
import IconZoomScan from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
5
|
-
import { stopPropagation } from "../../utils/xyflow.mjs";
|
|
2
|
+
import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs";
|
|
3
|
+
import IconTarget from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs";
|
|
4
|
+
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";
|
|
6
5
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
7
6
|
import { useLikeC4Model } from "../../hooks/useLikeC4Model.mjs";
|
|
7
|
+
import { stopPropagation } from "../../utils/xyflow.mjs";
|
|
8
8
|
import { instanceLabel, nodeLabel, treeNode, treeNodeLabel } from "./TabPanelDeployments.css.mjs";
|
|
9
9
|
import { memo, useEffect, useMemo } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { Alert, Box, Button, Group, Menu, Text, ThemeIcon, Tree, rem, useTree } from "@mantine/core";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/overlays/element-details/TabPanelDeployments.tsx
|
|
14
14
|
const DeploymentNodeRenderer = ({ node }) => /* @__PURE__ */ jsxs(Group, {
|
|
15
15
|
className: nodeLabel,
|
|
16
16
|
gap: 6,
|
|
@@ -188,5 +188,4 @@ const TabPanelDeployments = memo(({ elementFqn }) => {
|
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
190
|
|
|
191
|
-
//#endregion
|
|
192
191
|
export { TabPanelDeployments };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "@likec4/styles/css";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/overlays/element-details/TabPanelRelationships.css.ts
|
|
4
4
|
const fqn = css({
|
|
5
5
|
display: "inline-block",
|
|
6
6
|
fontSize: "sm",
|
|
@@ -65,5 +65,4 @@ const edgeNum = css({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
//#endregion
|
|
69
68
|
export { fqn, relationshipStat, xyflow };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconArrowRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconExternalLink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
4
|
-
import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconArrowRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs";
|
|
3
|
+
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";
|
|
4
|
+
import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs";
|
|
5
5
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
6
|
-
import { fqn, relationshipStat, xyflow } from "./TabPanelRelationships.css.mjs";
|
|
7
|
-
import { useElementDetailsActorRef } from "./actorContext.mjs";
|
|
8
6
|
import { RelationshipsBrowser } from "../relationships-browser/RelationshipsBrowser.mjs";
|
|
7
|
+
import { useElementDetailsActorRef } from "./actorContext.mjs";
|
|
8
|
+
import { fqn, relationshipStat, xyflow } from "./TabPanelRelationships.css.mjs";
|
|
9
9
|
import { useCallback } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { unique } from "remeda";
|
|
@@ -13,7 +13,7 @@ import { nameFromFqn } from "@likec4/core";
|
|
|
13
13
|
import { ActionIcon, Box, Group, Paper, Stack, Text, ThemeIcon, Tooltip } from "@mantine/core";
|
|
14
14
|
import { useSelector } from "@xstate/react";
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/overlays/element-details/TabPanelRelationships.tsx
|
|
17
17
|
const Tooltip$1 = Tooltip.withProps({
|
|
18
18
|
color: "dark",
|
|
19
19
|
fz: "xs",
|
|
@@ -159,5 +159,4 @@ function RelationshipsStat({ title, total, included }) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
//#endregion
|
|
163
162
|
export { TabPanelRelationships };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "@likec4/styles/css";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/overlays/element-details/TabPanelStructure.css.ts
|
|
4
4
|
const treeNodeLabel = css({
|
|
5
5
|
marginTop: "sm",
|
|
6
6
|
marginBottom: "sm"
|
|
@@ -26,5 +26,4 @@ const elementLabel = css({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { elementLabel, treeNodeLabel };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs";
|
|
3
3
|
import { elementLabel, treeNodeLabel } from "./TabPanelStructure.css.mjs";
|
|
4
4
|
import { useEffect, useMemo } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Alert, Anchor, Box, Pill, Text, Tree, useTree } from "@mantine/core";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/overlays/element-details/TabPanelStructure.tsx
|
|
9
9
|
const ElementLabel = ({ element }) => /* @__PURE__ */ jsx(Box, {
|
|
10
10
|
className: elementLabel,
|
|
11
11
|
children: /* @__PURE__ */ jsx(Text, {
|
|
@@ -34,7 +34,7 @@ function TabPanelStructure({ element }) {
|
|
|
34
34
|
value: element.id,
|
|
35
35
|
element,
|
|
36
36
|
type: "current",
|
|
37
|
-
children: [...element.children()].map((child) => ({
|
|
37
|
+
children: ("children" in element ? [...element.children()] : []).map((child) => ({
|
|
38
38
|
label: /* @__PURE__ */ jsx(ElementLabel, {
|
|
39
39
|
type: "descedant",
|
|
40
40
|
element: child
|
|
@@ -92,5 +92,4 @@ function TabPanelStructure({ element }) {
|
|
|
92
92
|
})] });
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
//#endregion
|
|
96
95
|
export { ElementLabel, TabPanelStructure };
|