@eccenca/gui-elements 25.0.0 → 25.1.0-rc.1
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/CHANGELOG.md +65 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +17 -13
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +1 -3
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +1 -0
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +34 -11
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlowV12.js.map +1 -1
- package/dist/cjs/common/Intent/index.js +1 -1
- package/dist/cjs/common/Intent/index.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationViewability.js +33 -0
- package/dist/cjs/components/Application/ApplicationViewability.js.map +1 -0
- package/dist/cjs/components/Application/index.js +1 -0
- package/dist/cjs/components/Application/index.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -6
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +47 -0
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -0
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +3 -0
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/transformIcon.js +14 -0
- package/dist/cjs/components/Icon/transformIcon.js.map +1 -0
- package/dist/cjs/components/MultiSelect/MultiSelect.js +2 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/Typography/InlineText.js +29 -0
- package/dist/cjs/components/Typography/InlineText.js.map +1 -0
- package/dist/cjs/components/Typography/index.js +1 -0
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/components/VisualTour/VisualTour.js +24 -32
- package/dist/cjs/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +18 -6
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +2 -2
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +19 -14
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +1 -3
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +1 -0
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +32 -9
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlowV12.js.map +1 -1
- package/dist/esm/common/Intent/index.js +1 -1
- package/dist/esm/common/Intent/index.js.map +1 -1
- package/dist/esm/components/Application/ApplicationViewability.js +28 -0
- package/dist/esm/components/Application/ApplicationViewability.js.map +1 -0
- package/dist/esm/components/Application/index.js +1 -0
- package/dist/esm/components/Application/index.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +3 -3
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js +41 -0
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -0
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +3 -0
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Icon/transformIcon.js +21 -0
- package/dist/esm/components/Icon/transformIcon.js.map +1 -0
- package/dist/esm/components/MultiSelect/MultiSelect.js +3 -2
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/Typography/InlineText.js +33 -0
- package/dist/esm/components/Typography/InlineText.js.map +1 -0
- package/dist/esm/components/Typography/index.js +1 -0
- package/dist/esm/components/Typography/index.js.map +1 -1
- package/dist/esm/components/VisualTour/VisualTour.js +25 -33
- package/dist/esm/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +19 -7
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +3 -3
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +9 -0
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +26 -10
- package/dist/types/components/Application/ApplicationViewability.d.ts +36 -0
- package/dist/types/components/Application/index.d.ts +1 -0
- package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +7 -1
- package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +20 -0
- package/dist/types/components/Icon/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +2 -0
- package/dist/types/components/Icon/transformIcon.d.ts +2 -0
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/types/components/Structure/TitleSubsection.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +2 -2
- package/dist/types/components/Typography/InlineText.d.ts +13 -0
- package/dist/types/components/Typography/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.d.ts +1 -1
- package/dist/types/extensions/codemirror/tests/codemirrorTestHelper.d.ts +1 -1
- package/package.json +50 -51
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +68 -35
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +1 -1
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +1 -1
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +66 -18
- package/src/cmem/ContentBlobToggler/stories/StringPreviewContentBlobToggler.stories.tsx +27 -0
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +98 -0
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -0
- package/src/common/Intent/index.ts +2 -1
- package/src/components/Application/ApplicationViewability.tsx +61 -0
- package/src/components/Application/_colors.scss +15 -0
- package/src/components/Application/_content.scss +7 -0
- package/src/components/Application/_header.scss +12 -3
- package/src/components/Application/_viewability.scss +13 -0
- package/src/components/Application/application.scss +1 -0
- package/src/components/Application/index.ts +1 -0
- package/src/components/Application/stories/ApplicationViewability.stories.tsx +37 -0
- package/src/components/Application/tests/ApplicationViewability.test.tsx +43 -0
- package/src/components/AutoSuggestion/tests/ExtendedCodeEditor.test.tsx +1 -1
- package/src/components/Card/card.scss +6 -0
- package/src/components/Checkbox/checkbox.scss +14 -2
- package/src/components/ContentGroup/_contentgroup.scss +9 -0
- package/src/components/ContextOverlay/ContextOverlay.tsx +20 -1
- package/src/components/DecoupledOverlay/DecoupledOverlay.stories.tsx +30 -0
- package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +97 -0
- package/src/components/DecoupledOverlay/_decoupledoverlay.scss +46 -0
- package/src/components/Depiction/depiction.scss +6 -0
- package/src/components/FlexibleLayout/flexiblelayout.scss +16 -0
- package/src/components/Grid/grid.scss +17 -0
- package/src/components/Grid/stories/Grid.stories.tsx +10 -7
- package/src/components/Grid/stories/GridRow.stories.tsx +13 -7
- package/src/components/Icon/IconButton.tsx +1 -1
- package/src/components/Icon/canonicalIconNames.tsx +3 -0
- package/src/components/Icon/transformIcon.tsx +17 -0
- package/src/components/Link/Link.stories.tsx +30 -0
- package/src/components/Link/link.scss +28 -2
- package/src/components/MultiSelect/MultiSelect.tsx +12 -3
- package/src/components/Notification/notification.scss +6 -0
- package/src/components/OverviewItem/overviewitem.scss +9 -0
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +28 -0
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +2 -2
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemLine.stories.tsx +1 -1
- package/src/components/PropertyValuePair/propertyvalue.scss +23 -1
- package/src/components/Separation/separation.scss +6 -0
- package/src/components/Table/table.scss +22 -0
- package/src/components/Tabs/stories/TabTitle.stories.tsx +7 -2
- package/src/components/Tag/stories/TagList.stories.tsx +2 -2
- package/src/components/Tag/tag.scss +19 -9
- package/src/components/TextReducer/TextReducer.test.tsx +3 -3
- package/src/components/Typography/InlineText.tsx +24 -0
- package/src/components/Typography/_reset.scss +1 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/Typography/stories/InlineText.stories.tsx +27 -0
- package/src/components/Typography/typography.scss +28 -2
- package/src/components/VisualTour/VisualTour.tsx +30 -50
- package/src/components/VisualTour/visualTour.scss +0 -34
- package/src/components/index.scss +1 -0
- package/src/components/index.ts +1 -0
- package/src/configuration/_customproperties.scss +32 -0
- package/src/configuration/stories/customproperties.stories.tsx +118 -0
- package/src/extensions/codemirror/CodeMirror.tsx +20 -9
- package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +1 -2
- package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +3 -3
- package/src/extensions/react-flow/_config.scss +3 -3
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +5 -3
- package/src/extensions/react-flow/edges/EdgeNew.tsx +2 -1
- package/src/extensions/react-flow/edges/_edges.scss +3 -2
- package/src/extensions/react-flow/handles/HandleDefault.tsx +2 -2
- package/src/extensions/react-flow/minimap/MiniMap.tsx +2 -1
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +1 -1
- package/src/extensions/react-flow/nodes/_nodes.scss +4 -3
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +1 -0
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +2 -2
- package/src/index.scss +1 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
//adapted v6 modes imports
|
|
2
|
+
import {html} from "@codemirror/lang-html"
|
|
2
3
|
import { javascript } from "@codemirror/lang-javascript";
|
|
3
4
|
import { json } from "@codemirror/lang-json";
|
|
4
5
|
import { markdown } from "@codemirror/lang-markdown";
|
|
5
6
|
import { sql } from "@codemirror/lang-sql";
|
|
6
7
|
import { xml } from "@codemirror/lang-xml";
|
|
7
8
|
import { yaml } from "@codemirror/lang-yaml";
|
|
8
|
-
import {html} from "@codemirror/lang-html"
|
|
9
|
-
|
|
10
9
|
import { defaultHighlightStyle, LanguageSupport, StreamLanguage, StreamParser } from "@codemirror/language";
|
|
11
10
|
//legacy mode imports
|
|
12
11
|
import { jinja2 } from "@codemirror/legacy-modes/mode/jinja2";
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//Todo this should become redundant with later patches that avoid this error
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
import { syntaxHighlighting, foldGutter, codeFolding } from "@codemirror/language";
|
|
12
|
-
import {Extension, Compartment, StateEffect, EditorState} from "@codemirror/state";
|
|
10
|
+
import { codeFolding,foldGutter, syntaxHighlighting } from "@codemirror/language";
|
|
13
11
|
import { lintGutter } from "@codemirror/lint";
|
|
12
|
+
import {Compartment, EditorState,Extension, StateEffect} from "@codemirror/state";
|
|
13
|
+
import { EditorView, highlightActiveLine,highlightSpecialChars, lineNumbers, placeholder } from "@codemirror/view";
|
|
14
14
|
|
|
15
15
|
/** placeholder extension, current error '_view.placeholder is not a function' */
|
|
16
16
|
export const adaptedPlaceholder = (text?: string) =>
|
|
@@ -8,9 +8,9 @@ $reactflow-node-font-size: $eccgui-size-typo-caption !default;
|
|
|
8
8
|
$reactflow-node-border-width: 2 * $button-border-width !default;
|
|
9
9
|
$reactflow-node-border-radius: $button-border-radius !default;
|
|
10
10
|
$reactflow-edge-rendering: geometricprecision !default;
|
|
11
|
-
$reactflow-edge-stroke-width-default:
|
|
12
|
-
$reactflow-edge-stroke-width-hover:
|
|
13
|
-
$reactflow-edge-stroke-width-selected:
|
|
11
|
+
$reactflow-edge-stroke-width-default: 1px !default;
|
|
12
|
+
$reactflow-edge-stroke-width-hover: 1px !default;
|
|
13
|
+
$reactflow-edge-stroke-width-selected: 1px !default;
|
|
14
14
|
$reactflow-edge-stroke-opacity-default: $eccgui-opacity-muted !default;
|
|
15
15
|
$reactflow-edge-stroke-opacity-hover: $eccgui-opacity-narrow !default;
|
|
16
16
|
$reactflow-edge-stroke-opacity-selected: $eccgui-opacity-regular !default;
|
|
@@ -81,9 +81,11 @@ export const EdgeLabel = memo(
|
|
|
81
81
|
})}
|
|
82
82
|
</div>
|
|
83
83
|
)}
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
|
|
84
|
+
{(title || text) && (
|
|
85
|
+
<div className={`${eccgui}-graphviz__edge-label__text`} title={title??undefined}>
|
|
86
|
+
{text && (typeof text === "string" ? <OverflowText>{text}</OverflowText> : text)}
|
|
87
|
+
</div>
|
|
88
|
+
)}
|
|
87
89
|
{!!actions && <div className={`${eccgui}-graphviz__edge-label__aux`}>{actions}</div>}
|
|
88
90
|
</div>
|
|
89
91
|
);
|
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
ConnectionLineComponentProps,
|
|
4
4
|
ConnectionLineType,
|
|
5
5
|
} from "@xyflow/react";
|
|
6
|
-
import { EdgeStraight, EdgeStep, EdgeBezier, EdgeDefaultV12Props } from "./../index";
|
|
7
6
|
|
|
8
7
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
9
8
|
|
|
9
|
+
import { EdgeBezier, EdgeDefaultV12Props,EdgeStep, EdgeStraight } from "./../index";
|
|
10
|
+
|
|
10
11
|
export const EdgeNew = (edgeNewProps: ConnectionLineComponentProps) => {
|
|
11
12
|
|
|
12
13
|
const {
|
|
@@ -258,6 +258,7 @@ path.react-flow__edge-path-highlight {
|
|
|
258
258
|
min-height: $reactflow-node-basesize;
|
|
259
259
|
max-height: $reactflow-node-basesize * 13;
|
|
260
260
|
padding: $eccgui-size-block-whitespace * 0.5;
|
|
261
|
+
overflow-y: auto;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
// Arrows
|
|
@@ -288,6 +289,7 @@ path.react-flow__edge-path-highlight {
|
|
|
288
289
|
width: auto;
|
|
289
290
|
max-width: 20rem;
|
|
290
291
|
height: 0.5 * $reactflow-node-largesize;
|
|
292
|
+
padding: 0 $eccgui-size-block-whitespace * 0.25;
|
|
291
293
|
font-size: $reactflow-node-font-size;
|
|
292
294
|
color: var(--#{$eccgui}-reactflow-edge-label-color, currentColor);
|
|
293
295
|
background-color: var(--#{$eccgui}-reactflow-edge-label-color-background, #{$card-background-color});
|
|
@@ -330,7 +332,6 @@ path.react-flow__edge-path-highlight {
|
|
|
330
332
|
display: inline-flex;
|
|
331
333
|
flex-grow: 0;
|
|
332
334
|
flex-shrink: 0;
|
|
333
|
-
margin-left: 2px;
|
|
334
335
|
.#{$eccgui}-depiction__image {
|
|
335
336
|
height: calc(#{0.5 * $reactflow-node-largesize} - 4px);
|
|
336
337
|
|
|
@@ -342,7 +343,7 @@ path.react-flow__edge-path-highlight {
|
|
|
342
343
|
.#{$eccgui}-graphviz__edge-label__text {
|
|
343
344
|
flex-grow: 1;
|
|
344
345
|
flex-shrink: 1;
|
|
345
|
-
margin: 0 $eccgui-size-block-whitespace * 0.25;
|
|
346
|
+
margin: 0 0 0 $eccgui-size-block-whitespace * 0.25;
|
|
346
347
|
overflow: hidden;
|
|
347
348
|
text-overflow: ellipsis;
|
|
348
349
|
text-align: center;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
import { Handle as HandleV9, HandleProps as ReactFlowHandleV9Props } from "react-flow-renderer";
|
|
3
|
-
import { Handle as HandleV12, HandleProps as ReactFlowHandleV12Props } from "@xyflow/react";
|
|
4
3
|
import { Classes as BlueprintClasses } from "@blueprintjs/core";
|
|
4
|
+
import {Intent} from "@blueprintjs/core/src/common/intent";
|
|
5
|
+
import { Handle as HandleV12, HandleProps as ReactFlowHandleV12Props } from "@xyflow/react";
|
|
5
6
|
|
|
6
7
|
import { intentClassName, IntentTypes } from "../../../common/Intent";
|
|
7
8
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
@@ -9,7 +10,6 @@ import { TooltipProps } from "../../../index";
|
|
|
9
10
|
import { ReacFlowVersionSupportProps, useReactFlowVersion } from "../versionsupport";
|
|
10
11
|
|
|
11
12
|
import { HandleContent, HandleContentProps } from "./HandleContent";
|
|
12
|
-
import {Intent} from "@blueprintjs/core/src/common/intent";
|
|
13
13
|
|
|
14
14
|
export type HandleCategory = "configuration" | "flexible" | "fixed" | "unknown" | "dependency";
|
|
15
15
|
|
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
} from "react-flow-renderer";
|
|
7
7
|
import { FlowTransform } from "react-flow-renderer/dist/types";
|
|
8
8
|
|
|
9
|
-
import { miniMapUtils } from "./utils";
|
|
10
9
|
import { ReacFlowVersionSupportProps, ReactFlowVersions, useReactFlowVersion } from "../versionsupport";
|
|
10
|
+
|
|
11
11
|
import { MiniMapV12, MiniMapV12Props } from "./MiniMapV12";
|
|
12
|
+
import { miniMapUtils } from "./utils";
|
|
12
13
|
|
|
13
14
|
export interface MiniMapBasicProps {
|
|
14
15
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
import { MiniMap as ReactFlowMiniMap, MiniMapProps as ReactFlowMiniMapProps } from "@xyflow/react";
|
|
3
3
|
|
|
4
|
-
import { miniMapUtils } from "./utils";
|
|
5
4
|
import { MiniMapBasicProps } from "./MiniMap";
|
|
5
|
+
import { miniMapUtils } from "./utils";
|
|
6
6
|
|
|
7
7
|
export interface MiniMapV12Props extends MiniMapBasicProps, Omit<ReactFlowMiniMapProps, "maskColor"> {
|
|
8
8
|
}
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
border-radius: $reactflow-node-border-radius;
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
56
|
-
box-shadow: 0 0 0 6 * $reactflow-node-border-width
|
|
56
|
+
box-shadow: 0 0 0 6 * $reactflow-node-border-width
|
|
57
|
+
eccgui-color-rgba($reactflow-edge-stroke-color-selected, 0.05);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
&.was-resized.is-resizable-vertical {
|
|
@@ -147,8 +148,10 @@
|
|
|
147
148
|
|
|
148
149
|
.#{$eccgui}-graphviz__node__header-depiction,
|
|
149
150
|
.#{$eccgui}-graphviz__node__header-menu {
|
|
151
|
+
display: flex;
|
|
150
152
|
flex-grow: 0;
|
|
151
153
|
flex-shrink: 0;
|
|
154
|
+
align-items: center;
|
|
152
155
|
max-height: calc(#{$reactflow-node-basesize} - #{2 * $reactflow-node-border-width});
|
|
153
156
|
margin: 0 $eccgui-size-block-whitespace * 0.25;
|
|
154
157
|
|
|
@@ -158,8 +161,6 @@
|
|
|
158
161
|
}
|
|
159
162
|
|
|
160
163
|
.#{$eccgui}-graphviz__node__header-depiction {
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: center;
|
|
163
164
|
justify-content: center;
|
|
164
165
|
|
|
165
166
|
/* TODO: does not work correctly with tooltips around
|
|
@@ -2,6 +2,7 @@ import { CSSProperties } from "react";
|
|
|
2
2
|
import {Node as NodeV9, XYPosition as XYPositionV9} from "react-flow-renderer";
|
|
3
3
|
import {Node as NodeV12, XYPosition as XYPositionV12} from "@xyflow/react";
|
|
4
4
|
import Color from "color";
|
|
5
|
+
|
|
5
6
|
import {NodeDimensions} from "./NodeContent";
|
|
6
7
|
|
|
7
8
|
interface StickyNoteBase {
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
HtmlContentBlock,
|
|
13
13
|
IconButton,
|
|
14
14
|
MenuItem,
|
|
15
|
+
NodeContent,
|
|
16
|
+
NodeContentExtension,
|
|
15
17
|
OverflowText,
|
|
16
18
|
Tag,
|
|
17
19
|
TagList,
|
|
18
|
-
NodeContent,
|
|
19
|
-
NodeContentExtension,
|
|
20
20
|
} from "./../../../../index";
|
|
21
21
|
import {
|
|
22
22
|
Default as ContentExtensionExample,
|
package/src/index.scss
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// == load default configuration ===============================================
|
|
10
10
|
|
|
11
11
|
@import "./configuration/variables";
|
|
12
|
+
@import "./configuration/customproperties"; // mirror config as custom properties
|
|
12
13
|
|
|
13
14
|
// == Necessary imports from libraries =========================================
|
|
14
15
|
|