@eccenca/gui-elements 24.4.1-featurepreparefinalnextcmem6943.2 → 25.0.0-bugfixcenterednodecontentmenuitemscmem7184.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/CHANGELOG.md +93 -19
- 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/markdown/Markdown.js +1 -2
- package/dist/cjs/cmem/markdown/Markdown.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/common/index.js +4 -0
- package/dist/cjs/common/index.js.map +1 -1
- package/dist/cjs/common/utils/reduceToText.js +94 -0
- package/dist/cjs/common/utils/reduceToText.js.map +1 -0
- 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/AutocompleteField/AutoCompleteField.js +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +1 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +2 -2
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +65 -18
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/Dialog/Modal.js +15 -3
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Dialog/ModalContext.js +51 -0
- package/dist/cjs/components/Dialog/ModalContext.js.map +1 -0
- package/dist/cjs/components/Dialog/index.js +1 -0
- package/dist/cjs/components/Dialog/index.js.map +1 -1
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +25 -2
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +2 -1
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/TextReducer/TextReducer.js +17 -63
- package/dist/cjs/components/TextReducer/TextReducer.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/extensions/codemirror/CodeMirror.js +2 -2
- 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/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/NodeContent.js +2 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.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/markdown/Markdown.js +1 -2
- package/dist/esm/cmem/markdown/Markdown.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/common/index.js +4 -0
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/common/utils/reduceToText.js +75 -0
- package/dist/esm/common/utils/reduceToText.js.map +1 -0
- 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/AutocompleteField/AutoCompleteField.js +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextMenu.js +2 -2
- package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +69 -22
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/Dialog/Modal.js +15 -3
- package/dist/esm/components/Dialog/Modal.js.map +1 -1
- package/dist/esm/components/Dialog/ModalContext.js +69 -0
- package/dist/esm/components/Dialog/ModalContext.js.map +1 -0
- package/dist/esm/components/Dialog/index.js +1 -0
- package/dist/esm/components/Dialog/index.js.map +1 -1
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +25 -2
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js +2 -1
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/TextReducer/TextReducer.js +17 -41
- package/dist/esm/components/TextReducer/TextReducer.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/extensions/codemirror/CodeMirror.js +3 -3
- 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/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/NodeContent.js +2 -2
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +26 -10
- package/dist/types/cmem/react-flow/StickyNoteModal/StickyNoteModal.d.ts +1 -1
- package/dist/types/common/index.d.ts +3 -0
- package/dist/types/common/utils/reduceToText.d.ts +10 -0
- package/dist/types/components/Application/ApplicationViewability.d.ts +36 -0
- package/dist/types/components/Application/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +14 -7
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +1 -1
- package/dist/types/components/Dialog/Modal.d.ts +9 -1
- package/dist/types/components/Dialog/ModalContext.d.ts +13 -0
- package/dist/types/components/Dialog/index.d.ts +1 -0
- package/dist/types/components/Icon/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +23 -0
- package/dist/types/components/Spinner/Spinner.d.ts +11 -4
- package/dist/types/components/Structure/TitleSubsection.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +4 -4
- package/dist/types/components/TextReducer/TextReducer.d.ts +13 -1
- package/dist/types/components/Typography/InlineText.d.ts +13 -0
- package/dist/types/components/Typography/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/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +1 -1
- package/package.json +54 -53
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +1 -1
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +1 -1
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +65 -17
- package/src/cmem/ContentBlobToggler/stories/StringPreviewContentBlobToggler.stories.tsx +27 -0
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +98 -0
- package/src/cmem/markdown/Markdown.tsx +1 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -0
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +1 -1
- package/src/cmem/react-flow/_minimap.scss +10 -0
- package/src/cmem/react-flow/configuration/_colors-graph.scss +12 -12
- package/src/cmem/react-flow/configuration/_colors-linking.scss +8 -8
- package/src/cmem/react-flow/configuration/_colors-workflow.scss +11 -11
- package/src/common/Intent/index.ts +2 -1
- package/src/common/index.ts +6 -0
- package/src/common/scss/_color-functions.scss +5 -0
- package/src/common/utils/reduceToText.tsx +82 -0
- package/src/components/Application/ApplicationViewability.tsx +61 -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/AutocompleteField/AutoCompleteField.tsx +1 -0
- package/src/components/Button/Button.stories.tsx +7 -1
- package/src/components/Button/Button.tsx +16 -9
- package/src/components/Button/button.scss +86 -24
- package/src/components/Card/card.scss +6 -0
- package/src/components/Chat/stories/ChatField.stories.tsx +6 -1
- package/src/components/Checkbox/checkbox.scss +14 -2
- package/src/components/ContentGroup/_contentgroup.scss +9 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +4 -1
- package/src/components/ContextOverlay/ContextOverlay.tsx +77 -18
- package/src/components/ContextOverlay/tests/ContextMenu.test.tsx +43 -0
- package/src/components/ContextOverlay/tests/ContextOverlay.test.tsx +71 -0
- package/src/components/Depiction/depiction.scss +6 -0
- package/src/components/Dialog/Modal.tsx +28 -3
- package/src/components/Dialog/ModalContext.tsx +56 -0
- package/src/components/Dialog/index.ts +1 -0
- package/src/components/Dialog/stories/Modal.stories.tsx +10 -7
- package/src/components/Dialog/stories/ModalContext.stories.tsx +153 -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 +25 -2
- package/src/components/Icon/icon.scss +6 -0
- package/src/components/Icon/stories/Icon.stories.tsx +65 -5
- package/src/components/Icon/stories/IconButton.stories.tsx +2 -1
- package/src/components/Notification/Notification.stories.tsx +20 -6
- package/src/components/Notification/notification.scss +14 -3
- 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/ProgressBar/Stories/ProgressBar.stories.tsx +7 -1
- package/src/components/PropertyValuePair/propertyvalue.scss +23 -1
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Separation/separation.scss +6 -0
- package/src/components/Spinner/Spinner.tsx +13 -3
- package/src/components/Spinner/Stories/spinner.stories.tsx +1 -1
- package/src/components/Spinner/spinner.scss +5 -1
- package/src/components/Table/table.scss +22 -0
- package/src/components/Tag/stories/TagList.stories.tsx +2 -2
- package/src/components/Tag/tag.scss +105 -74
- package/src/components/TextField/textfield.scss +23 -15
- package/src/components/TextReducer/TextReducer.stories.tsx +2 -1
- package/src/components/TextReducer/TextReducer.test.tsx +44 -0
- package/src/components/TextReducer/TextReducer.tsx +17 -44
- package/src/components/Typography/InlineText.tsx +24 -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 +23 -2
- package/src/components/VisualTour/stories/VisualTour.stories.tsx +1 -1
- package/src/configuration/_palettes.scss +2 -1
- package/src/extensions/codemirror/CodeMirror.tsx +4 -4
- 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 +8 -3
- package/src/extensions/react-flow/_react-flow_v12.scss +10 -14
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +1 -1
- package/src/extensions/react-flow/edges/EdgeNew.tsx +2 -1
- package/src/extensions/react-flow/edges/_edges.scss +15 -7
- package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +5 -5
- 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/NodeContent.tsx +2 -2
- 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
|
@@ -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) =>
|
|
@@ -7,9 +7,14 @@ $reactflow-node-color: $eccgui-color-workspace-text !default;
|
|
|
7
7
|
$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
|
-
$reactflow-edge-
|
|
11
|
-
$reactflow-edge-stroke-
|
|
12
|
-
$reactflow-edge-stroke-
|
|
10
|
+
$reactflow-edge-rendering: geometricprecision !default;
|
|
11
|
+
$reactflow-edge-stroke-width-default: 2px !default;
|
|
12
|
+
$reactflow-edge-stroke-width-hover: 2px !default;
|
|
13
|
+
$reactflow-edge-stroke-width-selected: 2px !default;
|
|
14
|
+
$reactflow-edge-stroke-opacity-default: $eccgui-opacity-muted !default;
|
|
15
|
+
$reactflow-edge-stroke-opacity-hover: $eccgui-opacity-narrow !default;
|
|
16
|
+
$reactflow-edge-stroke-opacity-selected: $eccgui-opacity-regular !default;
|
|
17
|
+
$reactflow-edge-stroke-opacity-interaction-ratio: $eccgui-opacity-ghostly !default;
|
|
13
18
|
$reactflow-edge-stroke-color-default: #{eccgui-color-var("identity", "text", "700")} !default;
|
|
14
19
|
$reactflow-edge-stroke-color-hover: $reactflow-edge-stroke-color-default !default;
|
|
15
20
|
$reactflow-edge-stroke-color-selected: $eccgui-color-accent !default;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
position: absolute;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.react-flow .react-flow__edges svg {
|
|
70
|
+
.react-flow .react-flow__edges svg:not(.#{$eccgui}-icon) {
|
|
71
71
|
position: absolute;
|
|
72
72
|
overflow: visible;
|
|
73
73
|
pointer-events: none;
|
|
@@ -179,31 +179,27 @@ svg.react-flow__connectionline {
|
|
|
179
179
|
pointer-events: none;
|
|
180
180
|
background-color: $reactflow-background-color;
|
|
181
181
|
border: solid 1px $eccgui-color-separation-divider;
|
|
182
|
-
|
|
183
|
-
pattern path {
|
|
184
|
-
opacity: $eccgui-opacity-ghostly;
|
|
185
|
-
stroke: #{eccgui-color-var("identity", "text", "300")};
|
|
186
|
-
}
|
|
187
182
|
}
|
|
188
183
|
|
|
189
184
|
.react-flow__background-pattern,
|
|
190
|
-
.react-flow__background pattern
|
|
191
|
-
opacity: $eccgui-opacity-
|
|
192
|
-
stroke:
|
|
185
|
+
.react-flow__background pattern *:first-child:not(.react-flow__background-pattern) {
|
|
186
|
+
opacity: $eccgui-opacity-muted;
|
|
187
|
+
stroke: $eccgui-color-separation-divider;
|
|
193
188
|
}
|
|
194
189
|
|
|
195
190
|
.react-flow__background-pattern.dots,
|
|
196
|
-
.react-flow__background pattern circle:first-child {
|
|
197
|
-
|
|
198
|
-
fill: #{eccgui-color-var("identity", "text", "700")};
|
|
191
|
+
.react-flow__background pattern circle:first-child:not(.react-flow__background-pattern) {
|
|
192
|
+
fill: #{eccgui-color-var("identity", "text", "500")};
|
|
199
193
|
}
|
|
200
194
|
|
|
201
195
|
.react-flow__background-pattern.cross {
|
|
202
|
-
|
|
196
|
+
opacity: $eccgui-opacity-disabled;
|
|
197
|
+
stroke: #{eccgui-color-var("identity", "text", "500")};
|
|
198
|
+
stroke-width: 0.3;
|
|
203
199
|
}
|
|
204
200
|
|
|
205
201
|
.react-flow__background-pattern.lines {
|
|
206
|
-
stroke:
|
|
202
|
+
stroke-width: 0.4;
|
|
207
203
|
}
|
|
208
204
|
|
|
209
205
|
.react-flow__attribution {
|
|
@@ -28,7 +28,7 @@ export interface EdgeLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
28
28
|
*/
|
|
29
29
|
fullWidth?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
* Label is
|
|
31
|
+
* Label is displayed without a box that comes with borders and background color.
|
|
32
32
|
*/
|
|
33
33
|
loose?: boolean;
|
|
34
34
|
/**
|
|
@@ -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 {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
path[class*="react-flow__edge"],
|
|
11
11
|
rect[class*="react-flow__edge"] {
|
|
12
12
|
stroke-opacity: $reactflow-edge-stroke-opacity-default;
|
|
13
|
-
shape-rendering:
|
|
13
|
+
shape-rendering: $reactflow-edge-rendering;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
text[class*="react-flow__edge"] {
|
|
@@ -60,11 +60,15 @@
|
|
|
60
60
|
path.react-flow__edge-path {
|
|
61
61
|
stroke: currentcolor;
|
|
62
62
|
stroke-opacity: $reactflow-edge-stroke-opacity-default;
|
|
63
|
-
stroke-width:
|
|
63
|
+
stroke-width: $reactflow-edge-stroke-width-default;
|
|
64
|
+
|
|
65
|
+
.react-flow__edge:hover & {
|
|
66
|
+
stroke-width: $reactflow-edge-stroke-width-hover;
|
|
67
|
+
}
|
|
64
68
|
|
|
65
69
|
.react-flow__edge.selected & {
|
|
66
70
|
stroke: currentcolor;
|
|
67
|
-
stroke-width:
|
|
71
|
+
stroke-width: $reactflow-edge-stroke-width-selected;
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
|
|
@@ -78,11 +82,11 @@ path.react-flow__edge-interaction {
|
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
.react-flow__edge:hover & {
|
|
81
|
-
stroke-opacity: $reactflow-edge-stroke-opacity-hover *
|
|
85
|
+
stroke-opacity: $reactflow-edge-stroke-opacity-hover * $reactflow-edge-stroke-opacity-interaction-ratio;
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
.react-flow__edge.selected & {
|
|
85
|
-
stroke-opacity: $reactflow-edge-stroke-opacity-selected *
|
|
89
|
+
stroke-opacity: $reactflow-edge-stroke-opacity-selected * $reactflow-edge-stroke-opacity-interaction-ratio;
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
|
|
@@ -96,11 +100,11 @@ path.react-flow__edge-path-glow {
|
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
.react-flow__edge:hover & {
|
|
99
|
-
stroke-opacity: $reactflow-edge-stroke-opacity-hover *
|
|
103
|
+
stroke-opacity: $reactflow-edge-stroke-opacity-hover * $reactflow-edge-stroke-opacity-interaction-ratio;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
.react-flow__edge.selected & {
|
|
103
|
-
stroke-opacity: $reactflow-edge-stroke-opacity-selected *
|
|
107
|
+
stroke-opacity: $reactflow-edge-stroke-opacity-selected * $reactflow-edge-stroke-opacity-interaction-ratio;
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
.react-flow__edge.animated & {
|
|
@@ -271,6 +275,10 @@ path.react-flow__edge-path-highlight {
|
|
|
271
275
|
|
|
272
276
|
// Custom label
|
|
273
277
|
|
|
278
|
+
.#{$eccgui}-graphviz__edge-labelobject {
|
|
279
|
+
overflow: visible;
|
|
280
|
+
}
|
|
281
|
+
|
|
274
282
|
.#{$eccgui}-graphviz__edge-label {
|
|
275
283
|
--#{$eccgui}-reactflow-edge-label-color: currentcolor;
|
|
276
284
|
--#{$eccgui}-reactflow-edge-label-color-background: #{$card-background-color};
|
|
@@ -2,13 +2,13 @@ import React, { useCallback, useEffect, useState } from "react";
|
|
|
2
2
|
import { ArrowHeadType, Elements, getMarkerEnd, ReactFlowProvider } from "react-flow-renderer";
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
|
-
import { EdgeLabel, EdgeLabelObject,
|
|
6
|
-
import { EdgeDefault, EdgeDefaultDataProps as EdgeData } from "./../EdgeDefault";
|
|
5
|
+
import { EdgeDefaultProps, EdgeLabel, EdgeLabelObject, ReactFlowExtended } from "./../../../../../index";
|
|
7
6
|
import { edgeTypes } from "./../../../../cmem/react-flow/configuration/workflow";
|
|
7
|
+
import { EdgeDefault, EdgeDefaultDataProps as EdgeData } from "./../EdgeDefault";
|
|
8
8
|
|
|
9
9
|
const EdgeDefaultDataProps = (data: EdgeData) => {
|
|
10
10
|
// this is only a mock to get it as sub element in the table
|
|
11
|
-
return
|
|
11
|
+
return <>{data.intent}</>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export default {
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
},
|
|
24
24
|
} as Meta<typeof EdgeDefault>;
|
|
25
25
|
|
|
26
|
-
const EdgeDefaultExample = (args:
|
|
26
|
+
const EdgeDefaultExample = (args: EdgeDefaultProps) => {
|
|
27
27
|
const [reactflowInstance, setReactflowInstance] = useState(null);
|
|
28
28
|
const [elements, setElements] = useState([] as Elements);
|
|
29
29
|
|
|
@@ -66,7 +66,7 @@ const EdgeDefaultExample = (args: any) => {
|
|
|
66
66
|
|
|
67
67
|
return (
|
|
68
68
|
<ReactFlowProvider>
|
|
69
|
-
<
|
|
69
|
+
<ReactFlowExtended
|
|
70
70
|
elements={elements}
|
|
71
71
|
style={{ height: "400px" }}
|
|
72
72
|
onLoad={onLoad}
|
|
@@ -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
|
}
|
|
@@ -754,7 +754,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
754
754
|
nodeContentRef.current.style.height = `${nextHeight}px`;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
}, [resizeDirections, originalSize])
|
|
757
|
+
}, [resizeDirections, originalSize, width, height])
|
|
758
758
|
|
|
759
759
|
const onResizeStop = React.useCallback((_0, _1, _2, d) => {
|
|
760
760
|
const nextWidth = validateWidth((width ?? originalSize.current.width ?? 0) + d.width);
|
|
@@ -767,7 +767,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
767
767
|
width: nextWidth,
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
}, [onNodeResize])
|
|
770
|
+
}, [onNodeResize, width, height, originalSize]);
|
|
771
771
|
|
|
772
772
|
const resizableSize = React.useMemo(() => ({ height: height ?? "auto", width: width ?? "auto" }), [height, width]);
|
|
773
773
|
const enableResize = React.useMemo(() => resizeDirections!.bottom && resizeDirections!.right ? { bottomRight: true } : resizeDirections, [resizeDirections]);
|
|
@@ -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,
|