@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,13 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { useDiagramCompareLayout } from "../../hooks/useDiagramCompareLayout.mjs";
|
|
3
2
|
import { css, cx } from "@likec4/styles/css";
|
|
4
|
-
import { memo } from "react";
|
|
5
3
|
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import { UnstyledButton } from "@mantine/core";
|
|
7
5
|
import { Box as Box$1 } from "@likec4/styles/jsx";
|
|
8
6
|
import { hstack } from "@likec4/styles/patterns";
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
// src/navigationpanel/comparepanel/LayoutDriftFrame.tsx
|
|
11
9
|
const borderColors = {
|
|
12
10
|
manual: css({ borderColor: "likec4.compare.manual" }),
|
|
13
11
|
auto: css({ borderColor: "likec4.compare.latest" })
|
|
@@ -16,8 +14,7 @@ const bgColors = {
|
|
|
16
14
|
manual: css({ backgroundColor: "likec4.compare.manual" }),
|
|
17
15
|
auto: css({ backgroundColor: "likec4.compare.latest" })
|
|
18
16
|
};
|
|
19
|
-
const LayoutDriftFrame =
|
|
20
|
-
const [{ layout, state }, { toggleCompare }] = useDiagramCompareLayout();
|
|
17
|
+
const LayoutDriftFrame = ({ layout, onClose }) => {
|
|
21
18
|
return /* @__PURE__ */ jsx(Box$1, {
|
|
22
19
|
className: cx(hstack({
|
|
23
20
|
position: "absolute",
|
|
@@ -31,20 +28,17 @@ const LayoutDriftFrame = memo(() => {
|
|
|
31
28
|
alignItems: "flex-start",
|
|
32
29
|
justifyContent: "center"
|
|
33
30
|
}), borderColors[layout]),
|
|
34
|
-
style: {
|
|
35
|
-
zIndex: "9999",
|
|
36
|
-
display: state == "inactive" ? "none" : void 0
|
|
37
|
-
},
|
|
31
|
+
style: { zIndex: "9999" },
|
|
38
32
|
children: /* @__PURE__ */ jsx(Btn, {
|
|
39
33
|
className: bgColors[layout],
|
|
40
34
|
onClick: (e) => {
|
|
41
35
|
e.stopPropagation();
|
|
42
|
-
|
|
36
|
+
onClose();
|
|
43
37
|
},
|
|
44
38
|
children: "Close compare"
|
|
45
39
|
})
|
|
46
40
|
});
|
|
47
|
-
}
|
|
41
|
+
};
|
|
48
42
|
const Btn = UnstyledButton.withProps({ classNames: { root: css({
|
|
49
43
|
fontSize: "xs",
|
|
50
44
|
fontWeight: "medium",
|
|
@@ -56,8 +50,8 @@ const Btn = UnstyledButton.withProps({ classNames: { root: css({
|
|
|
56
50
|
px: "4",
|
|
57
51
|
color: "mantine.gray[9]",
|
|
58
52
|
pointerEvents: "all",
|
|
53
|
+
transition: "[transform 100ms ease-out]",
|
|
59
54
|
_active: { transform: "translateY(-3px)" }
|
|
60
55
|
}) } });
|
|
61
56
|
|
|
62
|
-
//#endregion
|
|
63
57
|
export { LayoutDriftFrame };
|
|
@@ -3,9 +3,8 @@ import { css } from "@likec4/styles/css";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { invariant } from "@likec4/core";
|
|
5
5
|
import { SegmentedControl } from "@mantine/core";
|
|
6
|
-
import * as m from "motion/react-m";
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
// src/navigationpanel/comparepanel/LayoutTypeSwitcher.tsx
|
|
9
8
|
const data = [{
|
|
10
9
|
value: "manual",
|
|
11
10
|
label: "Saved manual"
|
|
@@ -14,24 +13,20 @@ const data = [{
|
|
|
14
13
|
label: "Latest auto"
|
|
15
14
|
}];
|
|
16
15
|
function LayoutTypeSwitcher({ value, onChange }) {
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onChange
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}) },
|
|
31
|
-
data
|
|
32
|
-
})
|
|
16
|
+
return /* @__PURE__ */ jsx(SegmentedControl, {
|
|
17
|
+
size: "xs",
|
|
18
|
+
color: value === "manual" ? "orange" : "green",
|
|
19
|
+
value,
|
|
20
|
+
onChange: (layout) => {
|
|
21
|
+
invariant(layout === "manual" || layout === "auto", "Invalid layout type");
|
|
22
|
+
onChange(layout);
|
|
23
|
+
},
|
|
24
|
+
classNames: { label: css({
|
|
25
|
+
fontSize: "xxs",
|
|
26
|
+
fontWeight: "medium"
|
|
27
|
+
}) },
|
|
28
|
+
data
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
|
|
36
|
-
//#endregion
|
|
37
32
|
export { LayoutTypeSwitcher };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconAlertTriangle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import { useMantinePortalProps } from "../../hooks/useMantinePortalProps.mjs";
|
|
2
|
+
import IconAlertTriangle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs";
|
|
4
3
|
import { useDiagramCompareLayout } from "../../hooks/useDiagramCompareLayout.mjs";
|
|
4
|
+
import { useMantinePortalProps } from "../../hooks/useMantinePortalProps.mjs";
|
|
5
5
|
import { cx } from "@likec4/styles/css";
|
|
6
6
|
import { Fragment, memo } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -11,7 +11,7 @@ import { hstack } from "@likec4/styles/patterns";
|
|
|
11
11
|
import * as m$1 from "motion/react-m";
|
|
12
12
|
import { navigationPanelActionIcon } from "@likec4/styles/recipes";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/navigationpanel/controls/LayoutWarning.tsx
|
|
15
15
|
const LayoutWarning = memo(() => {
|
|
16
16
|
const [ctx, { toggleCompare }] = useDiagramCompareLayout();
|
|
17
17
|
const portalProps = useMantinePortalProps();
|
|
@@ -87,5 +87,4 @@ const LayoutWarning = memo(() => {
|
|
|
87
87
|
});
|
|
88
88
|
LayoutWarning.displayName = "ManualLayoutWarning";
|
|
89
89
|
|
|
90
|
-
//#endregion
|
|
91
90
|
export { LayoutWarning };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { NavigationPanel } from "../../components/NavigationPanel.mjs";
|
|
2
3
|
import { useDiagramEventHandlers } from "../../context/DiagramEventHandlers.mjs";
|
|
3
4
|
import { useNavigationActor } from "../hooks.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { css, cx } from "@likec4/styles/css";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { UnstyledButton } from "@mantine/core";
|
|
8
|
-
import { hstack } from "@likec4/styles/patterns";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
6
|
import * as m from "motion/react-m";
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
// src/navigationpanel/controls/LogoButton.tsx
|
|
12
9
|
const LogoButton = () => {
|
|
13
10
|
const actor = useNavigationActor();
|
|
14
11
|
const { onLogoClick } = useDiagramEventHandlers();
|
|
15
12
|
return /* @__PURE__ */ jsx(m.div, {
|
|
16
13
|
layout: "position",
|
|
17
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ jsx(NavigationPanel.Logo, {
|
|
18
15
|
onMouseEnter: () => {
|
|
19
16
|
actor.send({ type: "breadcrumbs.mouseEnter.root" });
|
|
20
17
|
},
|
|
@@ -27,24 +24,9 @@ const LogoButton = () => {
|
|
|
27
24
|
onLogoClick();
|
|
28
25
|
}, 100);
|
|
29
26
|
actor.send({ type: "breadcrumbs.click.root" });
|
|
30
|
-
}
|
|
31
|
-
className: cx("mantine-active", hstack({
|
|
32
|
-
padding: "0.5",
|
|
33
|
-
width: {
|
|
34
|
-
base: "[20px]",
|
|
35
|
-
"@/md": "[64px]"
|
|
36
|
-
}
|
|
37
|
-
})),
|
|
38
|
-
children: [/* @__PURE__ */ jsx(Logo, { className: css({ display: {
|
|
39
|
-
base: "none",
|
|
40
|
-
"@/md": "block"
|
|
41
|
-
} }) }), /* @__PURE__ */ jsx(LogoIcon, { className: css({ display: {
|
|
42
|
-
base: "block",
|
|
43
|
-
"@/md": "none"
|
|
44
|
-
} }) })]
|
|
27
|
+
}
|
|
45
28
|
})
|
|
46
29
|
});
|
|
47
30
|
};
|
|
48
31
|
|
|
49
|
-
//#endregion
|
|
50
32
|
export { LogoButton };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
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";
|
|
3
|
+
import { NavigationPanel } from "../../components/NavigationPanel.mjs";
|
|
4
|
+
import { useNavigationActorRef } from "../hooks.mjs";
|
|
5
|
+
import { css } from "@likec4/styles/css";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { AnimatePresence, LayoutGroup } from "motion/react";
|
|
8
|
+
import { hstack } from "@likec4/styles/patterns";
|
|
9
|
+
import * as m$1 from "motion/react-m";
|
|
10
|
+
|
|
11
|
+
// src/navigationpanel/controls/NavigationBreadcrumbs.tsx
|
|
12
|
+
const breadcrumbAnimation = {
|
|
13
|
+
initial: {
|
|
14
|
+
opacity: 0,
|
|
15
|
+
translateX: -5,
|
|
16
|
+
translateY: 0
|
|
17
|
+
},
|
|
18
|
+
animate: {
|
|
19
|
+
opacity: 1,
|
|
20
|
+
translateX: 0,
|
|
21
|
+
translateY: 0,
|
|
22
|
+
transition: { duration: .17 }
|
|
23
|
+
},
|
|
24
|
+
exit: {
|
|
25
|
+
opacity: 0,
|
|
26
|
+
translateX: -5,
|
|
27
|
+
translateY: 0,
|
|
28
|
+
transition: { duration: .09 }
|
|
29
|
+
},
|
|
30
|
+
whileTap: { translateY: 1 }
|
|
31
|
+
};
|
|
32
|
+
function NavigationBreadcrumbs({ viewTitle, viewModel }) {
|
|
33
|
+
const actor = useNavigationActorRef();
|
|
34
|
+
const folder = viewModel?.folder;
|
|
35
|
+
const folderBreadcrumbs = (!folder || folder.isRoot ? [] : folder.breadcrumbs.map((s) => ({
|
|
36
|
+
folderPath: s.path,
|
|
37
|
+
title: s.title
|
|
38
|
+
}))).reduceRight((prev, { folderPath, title }, index, all) => [/* @__PURE__ */ jsxs(NavigationPanel.Breadcrumb, {
|
|
39
|
+
layoutId: `folder-${index}`,
|
|
40
|
+
layoutAnchor: false,
|
|
41
|
+
layout: "position",
|
|
42
|
+
"data-dimmed": "true",
|
|
43
|
+
css: {
|
|
44
|
+
userSelect: "none",
|
|
45
|
+
maxWidth: "[150px]",
|
|
46
|
+
display: {
|
|
47
|
+
base: "none",
|
|
48
|
+
"@/md": "block"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
...breadcrumbAnimation,
|
|
52
|
+
title,
|
|
53
|
+
onMouseEnter: () => actor.send({
|
|
54
|
+
type: "breadcrumbs.mouseEnter.folder",
|
|
55
|
+
folderPath
|
|
56
|
+
}),
|
|
57
|
+
onMouseLeave: () => actor.send({
|
|
58
|
+
type: "breadcrumbs.mouseLeave.folder",
|
|
59
|
+
folderPath
|
|
60
|
+
}),
|
|
61
|
+
onClick: (e) => {
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
actor.send({
|
|
64
|
+
type: "breadcrumbs.click.folder",
|
|
65
|
+
folderPath
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
children: [title, /* @__PURE__ */ jsx(IconChevronRight, {
|
|
69
|
+
className: css({ color: "text.non-essential" }),
|
|
70
|
+
style: {
|
|
71
|
+
verticalAlign: "text-bottom",
|
|
72
|
+
height: "16px"
|
|
73
|
+
},
|
|
74
|
+
size: 16
|
|
75
|
+
})]
|
|
76
|
+
}, folderPath), ...prev], []);
|
|
77
|
+
return /* @__PURE__ */ jsx(m$1.div, {
|
|
78
|
+
layout: "size",
|
|
79
|
+
className: hstack({
|
|
80
|
+
position: "relative",
|
|
81
|
+
gap: "1",
|
|
82
|
+
flexShrink: 1,
|
|
83
|
+
flexGrow: 1,
|
|
84
|
+
flexWrap: "nowrap",
|
|
85
|
+
overflow: "hidden"
|
|
86
|
+
}),
|
|
87
|
+
children: /* @__PURE__ */ jsx(LayoutGroup, {
|
|
88
|
+
id: "navigation-panel-breadcrumbs",
|
|
89
|
+
children: /* @__PURE__ */ jsxs(AnimatePresence, {
|
|
90
|
+
mode: "popLayout",
|
|
91
|
+
anchorX: "left",
|
|
92
|
+
children: [folderBreadcrumbs, /* @__PURE__ */ jsx(NavigationPanel.Breadcrumb, {
|
|
93
|
+
layout: "position",
|
|
94
|
+
...breadcrumbAnimation,
|
|
95
|
+
css: { userSelect: "none" },
|
|
96
|
+
title: viewTitle,
|
|
97
|
+
onMouseEnter: () => actor.send({ type: "breadcrumbs.mouseEnter.viewtitle" }),
|
|
98
|
+
onMouseLeave: () => actor.send({ type: "breadcrumbs.mouseLeave.viewtitle" }),
|
|
99
|
+
onClick: (e) => {
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
actor.send({ type: "breadcrumbs.click.viewtitle" });
|
|
102
|
+
},
|
|
103
|
+
children: viewTitle
|
|
104
|
+
}, "view-title")]
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { NavigationBreadcrumbs };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconArrowLeft from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconArrowRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconArrowLeft from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs";
|
|
3
|
+
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";
|
|
4
4
|
import { selectDiagramContext, useDiagram, useDiagramSelector } from "../../hooks/safeContext.mjs";
|
|
5
5
|
import { PanelActionIcon } from "../_common.mjs";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { hstack } from "@likec4/styles/patterns";
|
|
8
8
|
import * as m from "motion/react-m";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/navigationpanel/controls/NavigationButtons.tsx
|
|
11
11
|
const selectNavigationState = selectDiagramContext((s) => ({
|
|
12
12
|
hasStepBack: s.navigationHistory.currentIndex > 0,
|
|
13
13
|
hasStepForward: s.navigationHistory.currentIndex < s.navigationHistory.history.length - 1
|
|
@@ -36,5 +36,4 @@ function NavigationButtons() {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { NavigationButtons };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconFileSymlink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
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";
|
|
3
3
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
4
4
|
import { PanelActionIcon, Tooltip } from "../_common.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/navigationpanel/controls/OpenSource.tsx
|
|
8
8
|
const OpenSource = () => {
|
|
9
9
|
const diagram = useDiagram();
|
|
10
10
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -24,5 +24,4 @@ const OpenSource = () => {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
//#endregion
|
|
28
27
|
export { OpenSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconSearch from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconSearch from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs";
|
|
3
3
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
4
4
|
import { cx } from "@likec4/styles/css";
|
|
5
5
|
import { useRef } from "react";
|
|
@@ -10,7 +10,7 @@ import { m } from "motion/react";
|
|
|
10
10
|
import { Box as Box$1 } from "@likec4/styles/jsx";
|
|
11
11
|
import { hstack } from "@likec4/styles/patterns";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/navigationpanel/controls/SearchControl.tsx
|
|
14
14
|
function SearchControl() {
|
|
15
15
|
const diagram = useDiagram();
|
|
16
16
|
const isMac = isMacOs();
|
|
@@ -66,5 +66,4 @@ function SearchControl() {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
//#endregion
|
|
70
69
|
export { SearchControl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import IconLock from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs";
|
|
3
|
+
import IconLockOpen2 from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs";
|
|
4
4
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
5
5
|
import { css, cx } from "@likec4/styles/css";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,7 +8,38 @@ import { UnstyledButton } from "@mantine/core";
|
|
|
8
8
|
import { m } from "motion/react";
|
|
9
9
|
import { hstack } from "@likec4/styles/patterns";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/navigationpanel/controls/ToggleReadonly.tsx
|
|
12
|
+
const motionProps = {
|
|
13
|
+
initial: {
|
|
14
|
+
opacity: 0,
|
|
15
|
+
scale: .9,
|
|
16
|
+
translateX: -10
|
|
17
|
+
},
|
|
18
|
+
animate: {
|
|
19
|
+
opacity: [
|
|
20
|
+
.8,
|
|
21
|
+
.9,
|
|
22
|
+
1
|
|
23
|
+
],
|
|
24
|
+
scale: 1,
|
|
25
|
+
translateX: 0
|
|
26
|
+
},
|
|
27
|
+
whileTap: { translateY: 1 },
|
|
28
|
+
exit: {
|
|
29
|
+
opacity: 0,
|
|
30
|
+
scale: .9,
|
|
31
|
+
translateX: -10,
|
|
32
|
+
transition: {
|
|
33
|
+
duration: .2,
|
|
34
|
+
ease: [
|
|
35
|
+
.23,
|
|
36
|
+
1,
|
|
37
|
+
.32,
|
|
38
|
+
1
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
12
43
|
function ToggleReadonly({ disabled, isReadOnly }) {
|
|
13
44
|
const diagram = useDiagram();
|
|
14
45
|
return /* @__PURE__ */ jsxs(UnstyledButton, {
|
|
@@ -20,22 +51,7 @@ function ToggleReadonly({ disabled, isReadOnly }) {
|
|
|
20
51
|
e.stopPropagation();
|
|
21
52
|
!disabled && diagram.toggleFeature("ReadOnly");
|
|
22
53
|
},
|
|
23
|
-
|
|
24
|
-
opacity: 0,
|
|
25
|
-
scale: .9,
|
|
26
|
-
translateX: -10
|
|
27
|
-
},
|
|
28
|
-
animate: {
|
|
29
|
-
opacity: 1,
|
|
30
|
-
scale: disabled ? .95 : 1,
|
|
31
|
-
translateX: 0
|
|
32
|
-
},
|
|
33
|
-
exit: {
|
|
34
|
-
opacity: 0,
|
|
35
|
-
scale: .9,
|
|
36
|
-
translateX: -10
|
|
37
|
-
},
|
|
38
|
-
whileTap: { translateY: 1 },
|
|
54
|
+
...motionProps,
|
|
39
55
|
className: cx("group", hstack({
|
|
40
56
|
gap: "0.5",
|
|
41
57
|
paddingInline: "xxs",
|
|
@@ -55,7 +71,7 @@ function ToggleReadonly({ disabled, isReadOnly }) {
|
|
|
55
71
|
style: { display: !isReadOnly ? "none" : void 0 }
|
|
56
72
|
}),
|
|
57
73
|
isReadOnly && /* @__PURE__ */ jsx(m.div, {
|
|
58
|
-
layout:
|
|
74
|
+
layout: "position",
|
|
59
75
|
className: css({
|
|
60
76
|
fontSize: "xxs",
|
|
61
77
|
fontWeight: "bold",
|
|
@@ -68,5 +84,4 @@ function ToggleReadonly({ disabled, isReadOnly }) {
|
|
|
68
84
|
});
|
|
69
85
|
}
|
|
70
86
|
|
|
71
|
-
//#endregion
|
|
72
87
|
export { ToggleReadonly };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconId from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconLink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
4
|
-
import { useRootContainer } from "../../context/RootContainerContext.mjs";
|
|
5
|
-
import { selectDiagramContext, useDiagramSelector } from "../../hooks/safeContext.mjs";
|
|
2
|
+
import IconId from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs";
|
|
3
|
+
import IconLink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs";
|
|
6
4
|
import { FloatingWindow as FloatingWindow$1 } from "../../components/FloatingWindow.mjs";
|
|
5
|
+
import { useRootContainer } from "../../context/RootContainerContext.mjs";
|
|
6
|
+
import { useIsComparingLayouts } from "../../context/ComparingLayoutsContext.mjs";
|
|
7
7
|
import { ViewDetailsWindow } from "../windows/ViewDetailsWindow.mjs";
|
|
8
8
|
import { cx } from "@likec4/styles/css";
|
|
9
9
|
import { useRef } from "react";
|
|
@@ -15,17 +15,11 @@ import { Box as Box$1, HStack } from "@likec4/styles/jsx";
|
|
|
15
15
|
import { hstack } from "@likec4/styles/patterns";
|
|
16
16
|
import * as m from "motion/react-m";
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return {
|
|
21
|
-
id: view.id,
|
|
22
|
-
links: view.links?.length ?? 0
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
function ViewDetailsButton({ onOpen }) {
|
|
18
|
+
// src/navigationpanel/controls/ViewDetailsButton.tsx
|
|
19
|
+
function ViewDetailsButton({ linksCount, onOpen }) {
|
|
26
20
|
const { ref: rootRef } = useRootContainer();
|
|
27
21
|
const [opened, handlers] = useDisclosure(false);
|
|
28
|
-
const
|
|
22
|
+
const isComparing = useIsComparingLayouts();
|
|
29
23
|
const initialsRef = useRef({
|
|
30
24
|
dimensions: {
|
|
31
25
|
initialWidth: 200,
|
|
@@ -60,12 +54,16 @@ function ViewDetailsButton({ onOpen }) {
|
|
|
60
54
|
}
|
|
61
55
|
};
|
|
62
56
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ViewDetailsCardTrigger, {
|
|
63
|
-
linksCount
|
|
57
|
+
linksCount,
|
|
64
58
|
onClick: toggle,
|
|
65
59
|
opened
|
|
66
60
|
}), opened && /* @__PURE__ */ jsx(FloatingWindow$1, {
|
|
67
61
|
windowId: "view-details",
|
|
68
62
|
...initialsRef.current,
|
|
63
|
+
style: isComparing ? {
|
|
64
|
+
opacity: .35,
|
|
65
|
+
pointerEvents: "none"
|
|
66
|
+
} : void 0,
|
|
69
67
|
onClose: handlers.close,
|
|
70
68
|
children: /* @__PURE__ */ jsx(ViewDetailsWindow, {})
|
|
71
69
|
})] });
|
|
@@ -120,5 +118,4 @@ const ViewDetailsCardTrigger = ({ linksCount, onClick, opened }) => /* @__PURE__
|
|
|
120
118
|
})]
|
|
121
119
|
});
|
|
122
120
|
|
|
123
|
-
//#endregion
|
|
124
121
|
export { ViewDetailsButton };
|
|
@@ -1,13 +1,15 @@
|
|
|
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.
|
|
2
|
+
import IconChevronDown from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs";
|
|
3
|
+
import IconSearch from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs";
|
|
3
4
|
import { useLikeC4ProjectId, useLikeC4ProjectsContext } from "../../hooks/useLikeC4Project.mjs";
|
|
5
|
+
import { filterProjects, projectSearchHighlights } from "../../utils/filterProjects.mjs";
|
|
4
6
|
import { css } from "@likec4/styles/css";
|
|
5
|
-
import { memo } from "react";
|
|
7
|
+
import { memo, useState } from "react";
|
|
6
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { Button, Menu, MenuDropdown, MenuItem, MenuTarget, ScrollArea } from "@mantine/core";
|
|
9
|
+
import { Button, Highlight, Menu, MenuDropdown, MenuItem, MenuSearch, MenuTarget, ScrollArea } from "@mantine/core";
|
|
8
10
|
import { Box as Box$1, HStack } from "@likec4/styles/jsx";
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
// src/navigationpanel/dropdown/ProjectsMenu.tsx
|
|
11
13
|
const ProjectsMenu = memo((_) => {
|
|
12
14
|
const { projects, onProjectChange } = useLikeC4ProjectsContext();
|
|
13
15
|
if (projects.length <= 1) return null;
|
|
@@ -18,6 +20,9 @@ const ProjectsMenu = memo((_) => {
|
|
|
18
20
|
});
|
|
19
21
|
function WithProjectsMenu({ projects, onProjectChange }) {
|
|
20
22
|
const projectId = useLikeC4ProjectId();
|
|
23
|
+
const [search, setSearch] = useState("");
|
|
24
|
+
const found = filterProjects(projects, search);
|
|
25
|
+
const highlight = projectSearchHighlights(search);
|
|
21
26
|
return /* @__PURE__ */ jsxs(HStack, {
|
|
22
27
|
gap: "1",
|
|
23
28
|
alignItems: "baseline",
|
|
@@ -33,10 +38,10 @@ function WithProjectsMenu({ projects, onProjectChange }) {
|
|
|
33
38
|
withinPortal: false,
|
|
34
39
|
shadow: "md",
|
|
35
40
|
position: "bottom-start",
|
|
41
|
+
width: 300,
|
|
36
42
|
classNames: { itemLabel: css({
|
|
37
43
|
fontSize: "xs",
|
|
38
|
-
truncate: true
|
|
39
|
-
maxWidth: "[250px]"
|
|
44
|
+
truncate: true
|
|
40
45
|
}) },
|
|
41
46
|
offset: { mainAxis: 3 },
|
|
42
47
|
children: [/* @__PURE__ */ jsx(MenuTarget, { children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -64,9 +69,33 @@ function WithProjectsMenu({ projects, onProjectChange }) {
|
|
|
64
69
|
stroke: 1.5
|
|
65
70
|
}),
|
|
66
71
|
children: projectId
|
|
67
|
-
}) }), /* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
}) }), /* @__PURE__ */ jsxs(MenuDropdown, { children: [/* @__PURE__ */ jsx(MenuSearch, {
|
|
73
|
+
size: "xs",
|
|
74
|
+
mb: 4,
|
|
75
|
+
placeholder: `Search ${projects.length} projects (* wildcard)`,
|
|
76
|
+
leftSection: /* @__PURE__ */ jsx(IconSearch, { size: 12 }),
|
|
77
|
+
value: search,
|
|
78
|
+
onChange: (e) => setSearch(e.currentTarget.value)
|
|
79
|
+
}), /* @__PURE__ */ jsxs(ScrollArea.Autosize, {
|
|
80
|
+
mah: "min(60vh, 420px)",
|
|
81
|
+
type: "auto",
|
|
82
|
+
children: [found.length === 0 && /* @__PURE__ */ jsx(Box$1, {
|
|
83
|
+
css: {
|
|
84
|
+
fontSize: "xs",
|
|
85
|
+
color: "text.dimmed",
|
|
86
|
+
px: "2",
|
|
87
|
+
py: "1"
|
|
88
|
+
},
|
|
89
|
+
children: "No matching project"
|
|
90
|
+
}), found.map(({ id, title }) => /* @__PURE__ */ jsx(MenuItem, {
|
|
91
|
+
fw: projectId === id ? 600 : void 0,
|
|
92
|
+
rightSection: title && title !== id && /* @__PURE__ */ jsx(Highlight, {
|
|
93
|
+
component: "span",
|
|
94
|
+
highlight,
|
|
95
|
+
fz: "10px",
|
|
96
|
+
c: "dimmed",
|
|
97
|
+
children: id
|
|
98
|
+
}),
|
|
70
99
|
onClick: (e) => {
|
|
71
100
|
if (projectId === id) {
|
|
72
101
|
e.stopPropagation();
|
|
@@ -74,12 +103,16 @@ function WithProjectsMenu({ projects, onProjectChange }) {
|
|
|
74
103
|
}
|
|
75
104
|
onProjectChange(id);
|
|
76
105
|
},
|
|
77
|
-
children:
|
|
78
|
-
|
|
79
|
-
|
|
106
|
+
children: /* @__PURE__ */ jsx(Highlight, {
|
|
107
|
+
component: "span",
|
|
108
|
+
highlight,
|
|
109
|
+
inherit: true,
|
|
110
|
+
children: title ?? id
|
|
111
|
+
})
|
|
112
|
+
}, id))]
|
|
113
|
+
})] })]
|
|
80
114
|
})]
|
|
81
115
|
});
|
|
82
116
|
}
|
|
83
117
|
|
|
84
|
-
//#endregion
|
|
85
118
|
export { ProjectsMenu };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconSparkles from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconSparkles from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs";
|
|
3
3
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
4
|
-
import { PanelActionIcon } from "../_common.mjs";
|
|
5
4
|
import { useEditorActorStateHasTag } from "../../hooks/useEditorActor.mjs";
|
|
5
|
+
import { PanelActionIcon } from "../_common.mjs";
|
|
6
6
|
import { Tooltip } from "./_common.mjs";
|
|
7
7
|
import { memo } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/navigationpanel/editorpanel/ApplySemanticLayout.tsx
|
|
11
11
|
const ApplySemanticLayout = memo(({ visible = true }) => {
|
|
12
12
|
const diagram = useDiagram();
|
|
13
13
|
const isBusy = useEditorActorStateHasTag("ai-semantic-layout");
|
|
@@ -35,5 +35,4 @@ const ApplySemanticLayout = memo(({ visible = true }) => {
|
|
|
35
35
|
});
|
|
36
36
|
ApplySemanticLayout.displayName = "ApplySemanticLayout";
|
|
37
37
|
|
|
38
|
-
//#endregion
|
|
39
38
|
export { ApplySemanticLayout };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconFocusCentered from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconFocusCentered from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs";
|
|
3
3
|
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
4
4
|
import { PanelActionIcon } from "../_common.mjs";
|
|
5
5
|
import { Tooltip } from "./_common.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/navigationpanel/editorpanel/CenterCamera.tsx
|
|
9
9
|
const CenterCamera = () => {
|
|
10
10
|
const diagram = useDiagram();
|
|
11
11
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -17,5 +17,4 @@ const CenterCamera = () => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { CenterCamera };
|