@eccenca/gui-elements 24.4.1-featurepreparefinalnextcmem6943.2 → 25.0.0-featureimproveprintstylescmem6985.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 +74 -19
- package/dist/cjs/cmem/markdown/Markdown.js +1 -2
- package/dist/cjs/cmem/markdown/Markdown.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/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/extensions/react-flow/nodes/NodeContent.js +2 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.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/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/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/extensions/react-flow/nodes/NodeContent.js +2 -2
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- 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/canonicalIconNames.d.ts +23 -0
- package/dist/types/components/Spinner/Spinner.d.ts +11 -4
- package/dist/types/components/Tabs/Tab.d.ts +2 -2
- package/dist/types/components/TextReducer/TextReducer.d.ts +13 -1
- package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +1 -1
- package/package.json +5 -3
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +1 -1
- package/src/cmem/markdown/Markdown.tsx +1 -2
- 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/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/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/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/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/tag.scss +95 -68
- 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/VisualTour/stories/VisualTour.stories.tsx +1 -1
- package/src/configuration/_palettes.scss +2 -1
- 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/_edges.scss +15 -7
- package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +5 -5
- package/src/extensions/react-flow/nodes/NodeContent.tsx +2 -2
|
@@ -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
|
/**
|
|
@@ -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}
|
|
@@ -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]);
|