@eccenca/gui-elements 25.2.0 → 26.0.0-rc.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 +1022 -959
- package/README.md +24 -28
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +21 -23
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +28 -12
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +17 -7
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +29 -13
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +22 -11
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +17 -7
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/cjs/cmem/markdown/Markdown.js +2 -2
- package/dist/cjs/cmem/markdown/Markdown.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +18 -12
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +18 -8
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +17 -7
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -1
- package/dist/cjs/common/utils/colorCalculateDistance.js.map +1 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js +2 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/cjs/common/utils/colorHash.js +3 -7
- package/dist/cjs/common/utils/colorHash.js.map +1 -1
- package/dist/cjs/common/utils/reduceToText.js +17 -7
- package/dist/cjs/common/utils/reduceToText.js.map +1 -1
- package/dist/cjs/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +18 -8
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +19 -16
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js +17 -7
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +5 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Card/CardContent.js +1 -1
- package/dist/cjs/components/Card/CardContent.js.map +1 -1
- package/dist/cjs/components/Chat/ChatArea.js.map +1 -1
- package/dist/cjs/components/ColorField/ColorField.js +1 -1
- package/dist/cjs/components/ColorField/ColorField.js.map +1 -1
- package/dist/cjs/components/ContentGroup/ContentGroup.js +19 -19
- package/dist/cjs/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -5
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +6 -5
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
- package/dist/cjs/components/Depiction/Depiction.js +18 -8
- package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Dialog/ModalContext.js +3 -3
- package/dist/cjs/components/Dialog/ModalContext.js.map +1 -1
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js +17 -7
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js.map +1 -1
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js +17 -7
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js.map +1 -1
- package/dist/cjs/components/Grid/Grid.js.map +1 -1
- package/dist/cjs/components/Icon/IconButton.js +2 -2
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +17 -7
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/transformIcon.js.map +1 -1
- package/dist/cjs/components/Iframe/Iframe.js +17 -7
- package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
- package/dist/cjs/components/InteractionGate/InteractionGate.js +17 -7
- package/dist/cjs/components/InteractionGate/InteractionGate.js.map +1 -1
- package/dist/cjs/components/List/List.js +17 -7
- package/dist/cjs/components/List/List.js.map +1 -1
- package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +55 -31
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/NotAvailable/NotAvailable.js +42 -0
- package/dist/cjs/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +17 -7
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +6 -4
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +17 -7
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/SuggestField/index.js +1 -3
- package/dist/cjs/components/SuggestField/index.js.map +1 -1
- package/dist/cjs/components/Switch/Switch.js +17 -7
- package/dist/cjs/components/Switch/Switch.js.map +1 -1
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/components/Table/TableContainer.js +1 -1
- package/dist/cjs/components/Table/TableContainer.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandRow.js +2 -2
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
- package/dist/cjs/components/Tabs/Tab.js.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.js +17 -7
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/Tag/Tag.js +1 -1
- package/dist/cjs/components/Tag/Tag.js.map +1 -1
- package/dist/cjs/components/TextField/TextArea.js.map +1 -1
- package/dist/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Tree/Tree.js +17 -7
- package/dist/cjs/components/Tree/Tree.js.map +1 -1
- package/dist/cjs/components/Typography/HtmlContentBlock.js +17 -7
- package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js +17 -7
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
- package/dist/cjs/components/VisualTour/VisualTour.js +7 -5
- 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 +30 -19
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +20 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js +18 -10
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +25 -10
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +14 -8
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +19 -9
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +22 -9
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +20 -8
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js +2 -2
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/index.js +0 -4
- package/dist/cjs/extensions/react-flow/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/markers/MarkerArrowClosedInverse.js +1 -1
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js +2 -2
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +22 -12
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js +19 -9
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +12 -10
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +21 -8
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +23 -9
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +6 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/cjs/index.js +17 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +7 -9
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +6 -3
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +2 -2
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +8 -5
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +29 -8
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/markdown/Markdown.js +1 -1
- package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +0 -4
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js +1 -1
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/esm/common/utils/colorCalculateDistance.js.map +1 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js +2 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/esm/common/utils/colorHash.js +3 -7
- package/dist/esm/common/utils/colorHash.js.map +1 -1
- package/dist/esm/common/utils/reduceToText.js +1 -1
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +3 -3
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +11 -18
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/esm/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/esm/components/Button/Button.js +5 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Card/CardContent.js +1 -1
- package/dist/esm/components/Card/CardContent.js.map +1 -1
- package/dist/esm/components/Chat/ChatArea.js.map +1 -1
- package/dist/esm/components/ColorField/ColorField.js +1 -1
- package/dist/esm/components/ColorField/ColorField.js.map +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +3 -2
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js +3 -2
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
- package/dist/esm/components/Depiction/Depiction.js +1 -1
- package/dist/esm/components/Depiction/Depiction.js.map +1 -1
- package/dist/esm/components/Dialog/Modal.js.map +1 -1
- package/dist/esm/components/Dialog/ModalContext.js +2 -2
- package/dist/esm/components/Dialog/ModalContext.js.map +1 -1
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Icon/IconButton.js +2 -2
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/transformIcon.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +42 -28
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/NotAvailable/NotAvailable.js +46 -0
- package/dist/esm/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/esm/components/Notification/Notification.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/esm/components/Select/Select.js +4 -2
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/SuggestField/index.js +0 -2
- package/dist/esm/components/SuggestField/index.js.map +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/esm/components/Table/TableExpandRow.js +1 -1
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
- package/dist/esm/components/Tabs/Tab.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js +1 -1
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/TextField/TextArea.js.map +1 -1
- package/dist/esm/components/TextField/TextField.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/VisualTour/VisualTour.js +7 -5
- 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 +13 -12
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeDefault.js +3 -0
- package/dist/esm/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeDefaultV12.js +1 -3
- package/dist/esm/extensions/react-flow/edges/EdgeDefaultV12.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +3 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js +11 -5
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js +3 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/index.js +0 -4
- package/dist/esm/extensions/react-flow/index.js.map +1 -1
- package/dist/esm/extensions/react-flow/markers/MarkerArrowClosedInverse.js +1 -1
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js +2 -2
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js +4 -4
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js +2 -2
- package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js +9 -7
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js +2 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +6 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +5 -5
- package/dist/types/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +1 -1
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +4 -4
- package/dist/types/cmem/ConfidenceValue/ConfidenceValue.d.ts +2 -2
- package/dist/types/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +5 -1
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +3 -10
- package/dist/types/cmem/markdown/Markdown.d.ts +2 -1
- package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +0 -6
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +2 -1
- package/dist/types/cmem/react-flow/extensions/scrollOnDragHook.d.ts +1 -1
- package/dist/types/common/utils/colorCalculateDistance.d.ts +2 -2
- package/dist/types/common/utils/colorDecideContrastvalue.d.ts +2 -2
- package/dist/types/common/utils/colorHash.d.ts +3 -3
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +2 -2
- package/dist/types/components/AutoSuggestion/ExtendedCodeEditor.d.ts +1 -1
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +2 -12
- package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Card/CardHeader.d.ts +1 -1
- package/dist/types/components/ColorField/ColorField.d.ts +2 -5
- package/dist/types/components/ContentGroup/ContentGroup.d.ts +1 -1
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +9 -3
- package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +2 -2
- package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +3 -1
- package/dist/types/components/Depiction/Depiction.d.ts +3 -3
- package/dist/types/components/Dialog/SimpleDialog.d.ts +1 -1
- package/dist/types/components/Form/FieldItem.d.ts +1 -1
- package/dist/types/components/Form/FieldSet.d.ts +3 -3
- package/dist/types/components/HoverToggler/HoverToggler.d.ts +2 -2
- package/dist/types/components/Label/Label.d.ts +3 -3
- package/dist/types/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +16 -9
- package/dist/types/components/NotAvailable/NotAvailable.d.ts +32 -0
- package/dist/types/components/Notification/Notification.d.ts +2 -2
- package/dist/types/components/OverviewItem/OverviewItemActions.d.ts +1 -1
- package/dist/types/components/PropertyValuePair/PropertyValueList.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +2 -2
- package/dist/types/components/Structure/TitleSubsection.d.ts +2 -5
- package/dist/types/components/SuggestField/index.d.ts +1 -4
- package/dist/types/components/Table/TableContainer.d.ts +3 -3
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +180 -186
- package/dist/types/components/Tabs/TabTitle.d.ts +1 -1
- package/dist/types/components/Tag/Tag.d.ts +2 -2
- package/dist/types/components/TextField/TextArea.d.ts +6 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +1 -6
- package/dist/types/extensions/react-flow/edges/EdgeBezier.d.ts +1 -1
- package/dist/types/extensions/react-flow/edges/EdgeDefault.d.ts +3 -3
- package/dist/types/extensions/react-flow/edges/EdgeDefaultV12.d.ts +3 -5
- package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +3 -3
- package/dist/types/extensions/react-flow/edges/EdgeStep.d.ts +2 -2
- package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +1 -1
- package/dist/types/extensions/react-flow/handles/HandleContent.d.ts +2 -2
- package/dist/types/extensions/react-flow/handles/HandleDefault.d.ts +2 -2
- package/dist/types/extensions/react-flow/handles/HandleTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/index.d.ts +1 -4
- package/dist/types/extensions/react-flow/markers/MarkerArrowClosedInverse.d.ts +1 -1
- package/dist/types/extensions/react-flow/minimap/MiniMap.d.ts +4 -6
- package/dist/types/extensions/react-flow/minimap/MiniMapV12.d.ts +5 -2
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +4 -9
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/sharedTypes.d.ts +2 -2
- package/package.json +60 -66
- package/scripts/compile-sass.ts +2 -0
- package/scripts/sassConfig.js +1 -1
- package/scripts/sassDeprecationConfig.js +3 -0
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +4 -9
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +33 -35
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +5 -2
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +28 -32
- package/src/cmem/ActivityControl/tests/ActivityControlWidget.test.tsx +1 -1
- package/src/cmem/ConfidenceValue/ConfidenceValue.tsx +6 -5
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +17 -7
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +13 -18
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +10 -10
- package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +2 -2
- package/src/cmem/DateTimeDisplay/tests/ElapsedDateTimeDisplay.test.tsx +2 -2
- package/src/cmem/markdown/Markdown.tsx +2 -1
- package/src/cmem/markdown/highlightSearchWords.test.ts +1 -1
- package/src/cmem/markdown/markdownutils.test.ts +2 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +3 -3
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +2 -7
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlowV9.tsx +2 -5
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +6 -3
- package/src/cmem/react-flow/configuration/graph.ts +3 -3
- package/src/cmem/react-flow/configuration/linking.ts +3 -3
- package/src/cmem/react-flow/configuration/workflow.ts +3 -3
- package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +15 -15
- package/src/common/scss/_color-functions.scss +9 -4
- package/src/common/utils/CssCustomProperties.ts +1 -1
- package/src/common/utils/characters.ts +2 -2
- package/src/common/utils/colorCalculateDistance.ts +2 -2
- package/src/common/utils/colorDecideContrastvalue.ts +4 -3
- package/src/common/utils/colorHash.ts +13 -17
- package/src/common/utils/getColorConfiguration.ts +2 -2
- package/src/common/utils/openInNewTab.ts +1 -1
- package/src/common/utils/reduceToText.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +3 -2
- package/src/components/Accordion/Stories/AccordionItem.stories.tsx +1 -1
- package/src/components/Application/ApplicationSidebarNavigation.tsx +6 -2
- package/src/components/Application/ApplicationTitle.tsx +9 -1
- package/src/components/Application/ApplicationToolbarAction.tsx +2 -1
- package/src/components/Application/_header.scss +13 -10
- package/src/components/Application/stories/ColorPalettes.stories.tsx +23 -19
- package/src/components/Application/tests/ApplicationViewability.test.tsx +1 -7
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +16 -16
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +5 -3
- package/src/components/AutoSuggestion/ExtendedCodeEditor.tsx +2 -2
- package/src/components/AutoSuggestion/extensions/markText.ts +1 -1
- package/src/components/AutocompleteField/AutoCompleteField.tsx +16 -25
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +7 -3
- package/src/components/Badge/Badge.stories.tsx +1 -1
- package/src/components/Breadcrumb/BreadcrumbList.tsx +4 -3
- package/src/components/Button/Button.test.tsx +2 -2
- package/src/components/Button/Button.tsx +13 -11
- package/src/components/Button/button.scss +2 -3
- package/src/components/Card/CardContent.tsx +17 -20
- package/src/components/Card/CardHeader.tsx +1 -1
- package/src/components/Card/card.scss +8 -4
- package/src/components/Card/stories/Card.stories.tsx +1 -1
- package/src/components/Chat/ChatArea.tsx +1 -2
- package/src/components/Chat/_chat.scss +2 -2
- package/src/components/Checkbox/Stories/Checkbox.stories.tsx +1 -1
- package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +2 -2
- package/src/components/ColorField/ColorField.test.tsx +1 -1
- package/src/components/ColorField/ColorField.tsx +6 -6
- package/src/components/ContentGroup/ContentGroup.stories.tsx +1 -1
- package/src/components/ContentGroup/ContentGroup.tsx +6 -6
- package/src/components/ContextOverlay/ContextMenu.tsx +10 -4
- package/src/components/ContextOverlay/ContextOverlay.stories.tsx +1 -1
- package/src/components/ContextOverlay/ContextOverlay.tsx +16 -11
- package/src/components/ContextOverlay/tests/ContextOverlay.test.tsx +2 -2
- package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +11 -4
- package/src/components/Depiction/Depiction.tsx +6 -6
- package/src/components/Dialog/Modal.tsx +9 -7
- package/src/components/Dialog/ModalContext.tsx +6 -6
- package/src/components/Dialog/SimpleDialog.tsx +1 -1
- package/src/components/Dialog/stories/AlertDialog.stories.tsx +1 -1
- package/src/components/Dialog/stories/Modal.stories.tsx +2 -2
- package/src/components/Dialog/stories/SimpleDialog.stories.tsx +1 -1
- package/src/components/FlexibleLayout/FlexibleLayoutContainer.tsx +2 -2
- package/src/components/FlexibleLayout/FlexibleLayoutItem.tsx +2 -2
- package/src/components/Form/FieldItem.tsx +1 -1
- package/src/components/Form/FieldSet.tsx +3 -3
- package/src/components/Form/Stories/FieldItem.stories.tsx +1 -1
- package/src/components/Form/Stories/FieldSet.stories.tsx +1 -1
- package/src/components/Grid/Grid.tsx +4 -2
- package/src/components/Grid/stories/GridColumn.stories.tsx +1 -1
- package/src/components/Grid/stories/GridRow.stories.tsx +1 -1
- package/src/components/HoverToggler/HoverToggler.tsx +2 -2
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/IconButton.tsx +3 -3
- package/src/components/Icon/icon.scss +4 -4
- package/src/components/Icon/stories/Icon.stories.tsx +1 -1
- package/src/components/Icon/stories/IconButton.stories.tsx +1 -1
- package/src/components/Icon/stories/TestIcon.stories.tsx +1 -1
- package/src/components/Icon/transformIcon.tsx +11 -9
- package/src/components/Iframe/Iframe.tsx +2 -2
- package/src/components/Label/Label.tsx +4 -4
- package/src/components/List/List.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +3 -2
- package/src/components/Menu/Stories/MenuItem.stories.tsx +1 -1
- package/src/components/Menu/menu.scss +1 -0
- package/src/components/MultiSelect/MultiSelect.tsx +62 -34
- package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +1 -1
- package/src/components/MultiSuggestField/index.ts +1 -1
- package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +24 -57
- package/src/components/NotAvailable/NotAvailable.stories.tsx +15 -0
- package/src/components/NotAvailable/NotAvailable.tsx +69 -0
- package/src/components/Notification/Notification.stories.tsx +2 -1
- package/src/components/Notification/Notification.tsx +5 -4
- package/src/components/OverviewItem/OverviewItemActions.tsx +1 -1
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemListPerformance.tsx +2 -2
- package/src/components/Pagination/Pagination.tsx +2 -2
- package/src/components/PropertyValuePair/PropertyValueList.tsx +1 -1
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Select/Select.tsx +7 -4
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Spinner/Spinner.tsx +2 -2
- package/src/components/Sticky/StickyTarget.tsx +1 -1
- package/src/components/Sticky/stories/StickyTarget.stories.tsx +2 -2
- package/src/components/Structure/TitleSubsection.tsx +2 -2
- package/src/components/SuggestField/SuggestField.stories.tsx +2 -2
- package/src/components/SuggestField/index.ts +0 -3
- package/src/components/Table/Table.tsx +3 -2
- package/src/components/Table/TableContainer.tsx +11 -6
- package/src/components/Table/TableExpandHeader.tsx +2 -1
- package/src/components/Table/TableExpandRow.tsx +3 -2
- package/src/components/Table/index.tsx +7 -1
- package/src/components/Tabs/Tab.tsx +2 -2
- package/src/components/Tabs/TabTitle.tsx +1 -1
- package/src/components/Tag/Tag.tsx +9 -10
- package/src/components/Tag/stories/Tag.stories.tsx +1 -1
- package/src/components/Tag/stories/TagList.stories.tsx +1 -1
- package/src/components/TextField/TextArea.tsx +12 -7
- package/src/components/TextField/TextField.tsx +4 -3
- package/src/components/TextField/stories/TextArea.stories.tsx +1 -1
- package/src/components/TextField/stories/TextField.stories.tsx +1 -3
- package/src/components/TextField/useTextValidation.ts +4 -4
- package/src/components/TextReducer/TextReducer.stories.tsx +4 -1
- package/src/components/TextReducer/TextReducer.test.tsx +2 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.test.tsx +5 -5
- package/src/components/Tooltip/Tooltip.tsx +5 -5
- package/src/components/Typography/stories/OverflowText.stories.tsx +1 -1
- package/src/components/Typography/typography.scss +4 -2
- package/src/components/VisualTour/VisualTour.tsx +10 -10
- package/src/components/index.ts +1 -0
- package/src/configuration/_variables.scss +15 -15
- package/src/extensions/codemirror/CodeMirror.tsx +119 -95
- package/src/extensions/codemirror/debouncedLinter.ts +2 -2
- package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +9 -5
- package/src/extensions/codemirror/tests/CodeEditor.test.tsx +4 -4
- package/src/extensions/codemirror/tests/EditorAppearanceConfigMenu.test.tsx +5 -5
- package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +12 -12
- package/src/extensions/codemirror/toolbars/commands/markdown.command.ts +6 -6
- package/src/extensions/react-flow/edges/EdgeBezier.tsx +2 -3
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +10 -7
- package/src/extensions/react-flow/edges/EdgeDefaultV12.tsx +8 -10
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +10 -8
- package/src/extensions/react-flow/edges/EdgeNew.tsx +29 -31
- package/src/extensions/react-flow/edges/EdgeStep.tsx +2 -2
- package/src/extensions/react-flow/edges/EdgeTools.tsx +2 -3
- package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +1 -1
- package/src/extensions/react-flow/edges/stories/EdgeDefaultV12.stories.tsx +1 -1
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +2 -1
- package/src/extensions/react-flow/edges/utils.ts +5 -3
- package/src/extensions/react-flow/handles/HandleContent.tsx +3 -3
- package/src/extensions/react-flow/handles/HandleDefault.tsx +58 -48
- package/src/extensions/react-flow/handles/HandleTools.tsx +4 -5
- package/src/extensions/react-flow/handles/stories/HandleDefault.stories.tsx +2 -7
- package/src/extensions/react-flow/index.ts +2 -5
- package/src/extensions/react-flow/markers/MarkerArrowClosedInverse.tsx +1 -1
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +6 -6
- package/src/extensions/react-flow/minimap/MiniMap.tsx +24 -24
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +7 -5
- package/src/extensions/react-flow/nodes/NodeContent.tsx +67 -65
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +6 -3
- package/src/extensions/react-flow/nodes/NodeTools.tsx +5 -5
- package/src/extensions/react-flow/nodes/_nodes.scss +2 -1
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +10 -5
- package/src/extensions/react-flow/nodes/sharedTypes.ts +2 -2
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +40 -26
- package/src/extensions/react-flow/nodes/stories/NodeContentV12.stories.tsx +3 -3
- package/src/extensions/react-flow/nodes/stories/NodeDefault.stories.tsx +3 -3
- package/src/includes/blueprintjs/_variables.scss +1 -0
- package/src/includes/carbon-components/_variables.scss +1 -1
- package/src/index.scss +2 -2
- package/src/test/setupTests.js +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefs.js +0 -17
- package/dist/cjs/extensions/react-flow/edges/EdgeDefs.js.map +0 -1
- package/dist/esm/extensions/react-flow/edges/EdgeDefs.js +0 -11
- package/dist/esm/extensions/react-flow/edges/EdgeDefs.js.map +0 -1
- package/dist/types/extensions/react-flow/edges/EdgeDefs.d.ts +0 -5
- package/src/extensions/react-flow/edges/EdgeDefs.tsx +0 -33
- package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +0 -53
|
@@ -2,7 +2,7 @@ import React, { memo, useEffect } from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
MiniMap as ReactFlowMiniMapV9,
|
|
4
4
|
MiniMapProps as ReactFlowMiniMapV9Props,
|
|
5
|
-
OnLoadParams
|
|
5
|
+
OnLoadParams,
|
|
6
6
|
} from "react-flow-renderer";
|
|
7
7
|
import { FlowTransform } from "react-flow-renderer/dist/types";
|
|
8
8
|
|
|
@@ -26,14 +26,19 @@ export interface MiniMapBasicProps {
|
|
|
26
26
|
>;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated (v27) will be removed when React Flow v9 can be removed
|
|
31
|
+
*/
|
|
32
|
+
interface MiniMapV9Props extends MiniMapBasicProps, ReactFlowMiniMapV9Props {
|
|
30
33
|
/**
|
|
31
34
|
* React-Flow instance
|
|
32
35
|
*/
|
|
33
36
|
flowInstance?: OnLoadParams;
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
export type MiniMapProps =
|
|
39
|
+
export type MiniMapProps =
|
|
40
|
+
| (ReacFlowVersionSupportProps & MiniMapV9Props)
|
|
41
|
+
| (ReacFlowVersionSupportProps & MiniMapV12Props);
|
|
37
42
|
|
|
38
43
|
interface configParams {
|
|
39
44
|
// Key has been pressed down over the mini-map and navigation mode has thus started
|
|
@@ -51,29 +56,24 @@ let minimapCalcConf: configParams = {
|
|
|
51
56
|
};
|
|
52
57
|
|
|
53
58
|
/** An improved mini-map for react-flow that supports navigation via the mini-map. */
|
|
54
|
-
export const MiniMap = memo(
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
case ReactFlowVersions.V12:
|
|
65
|
-
return <MiniMapV12 {...otherProps as MiniMapV12Props} />;
|
|
66
|
-
default:
|
|
67
|
-
return <></>; // cannot exit on its own
|
|
68
|
-
}
|
|
59
|
+
export const MiniMap = memo(({ flowVersion, ...otherProps }: MiniMapProps) => {
|
|
60
|
+
const flowVersionCheck = flowVersion || useReactFlowVersion();
|
|
61
|
+
|
|
62
|
+
switch (flowVersionCheck) {
|
|
63
|
+
case ReactFlowVersions.V9:
|
|
64
|
+
return <MiniMapV9 {...(otherProps as MiniMapV9Props)} />;
|
|
65
|
+
case ReactFlowVersions.V12:
|
|
66
|
+
return <MiniMapV12 {...(otherProps as MiniMapV12Props)} />;
|
|
67
|
+
default:
|
|
68
|
+
return <></>; // cannot exit on its own
|
|
69
69
|
}
|
|
70
|
-
);
|
|
70
|
+
});
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Mini-map support for
|
|
74
|
-
* @deprecated (
|
|
73
|
+
* Mini-map support for React Flow v9.
|
|
74
|
+
* @deprecated (v27) will be removed when React Flow v9 can be removed
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
const MiniMapV9 = memo(
|
|
77
77
|
({
|
|
78
78
|
flowInstance,
|
|
79
79
|
enableNavigation = false,
|
|
@@ -173,7 +173,7 @@ export const MiniMapV9 = memo(
|
|
|
173
173
|
/>
|
|
174
174
|
</div>
|
|
175
175
|
);
|
|
176
|
-
}
|
|
176
|
+
},
|
|
177
177
|
);
|
|
178
178
|
|
|
179
|
-
export default MiniMap;
|
|
179
|
+
export default MiniMap;
|
|
@@ -4,12 +4,14 @@ import { MiniMap as ReactFlowMiniMap, MiniMapProps as ReactFlowMiniMapProps } fr
|
|
|
4
4
|
import { MiniMapBasicProps } from "./MiniMap";
|
|
5
5
|
import { miniMapUtils } from "./utils";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated (v27) will be removed when React Flow v9 can be removed
|
|
9
|
+
*/
|
|
10
|
+
export interface MiniMapV12Props extends MiniMapBasicProps, Omit<ReactFlowMiniMapProps, "maskColor"> {}
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
|
-
* Mini-map support for
|
|
12
|
-
* @deprecated (
|
|
13
|
+
* Mini-map support for React Flow v12.
|
|
14
|
+
* @deprecated (v27) will be removed when React Flow v9 can be removed
|
|
13
15
|
*/
|
|
14
16
|
export const MiniMapV12 = memo(
|
|
15
17
|
({
|
|
@@ -35,5 +37,5 @@ export const MiniMapV12 = memo(
|
|
|
35
37
|
/>
|
|
36
38
|
</div>
|
|
37
39
|
);
|
|
38
|
-
}
|
|
40
|
+
},
|
|
39
41
|
);
|
|
@@ -2,25 +2,21 @@ import React from "react";
|
|
|
2
2
|
import { Position, useStoreState as getStoreStateFlowV9 } from "react-flow-renderer";
|
|
3
3
|
import { useStore as getStoreStateFlowV12 } from "@xyflow/react";
|
|
4
4
|
import Color from "color";
|
|
5
|
-
import { Resizable } from "re-resizable";
|
|
5
|
+
import { NumberSize, Resizable, ResizableProps, ResizeCallback } from "re-resizable";
|
|
6
6
|
|
|
7
7
|
import { intentClassName, IntentTypes } from "../../../common/Intent";
|
|
8
|
-
import { DepictionProps } from "../../../components";
|
|
8
|
+
import { Depiction, DepictionProps } from "../../../components";
|
|
9
9
|
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
10
|
+
import Icon from "../../../components/Icon/Icon";
|
|
11
|
+
import OverflowText from "../../../components/Typography/OverflowText";
|
|
10
12
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
11
|
-
import { Depiction, Icon, OverflowText } from "../../../index";
|
|
12
13
|
import { ReacFlowVersionSupportProps, ReactFlowVersions, useReactFlowVersion } from "../versionsupport";
|
|
13
14
|
|
|
14
|
-
import { HandleDefault, HandleDefaultProps } from "
|
|
15
|
+
import { HandleDefault, HandleDefaultProps } from "../handles/HandleDefault";
|
|
15
16
|
import { NodeContentExtensionProps } from "./NodeContentExtension";
|
|
16
17
|
import { NodeDefaultProps } from "./NodeDefault";
|
|
17
18
|
import { NodeHighlightColor } from "./sharedTypes";
|
|
18
19
|
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated (v26) use `HandleDefaultProps`
|
|
21
|
-
*/
|
|
22
|
-
export type NodeContentHandleProps = HandleDefaultProps;
|
|
23
|
-
|
|
24
20
|
export type NodeDimensions = {
|
|
25
21
|
width?: number;
|
|
26
22
|
height?: number;
|
|
@@ -62,15 +58,15 @@ interface NodeContentData<CONTENT_PROPS = any> {
|
|
|
62
58
|
/**
|
|
63
59
|
* Any element that should be displayed as depiction before the node label.
|
|
64
60
|
*/
|
|
65
|
-
leftElement?: JSX.Element;
|
|
61
|
+
leftElement?: React.JSX.Element;
|
|
66
62
|
/**
|
|
67
63
|
* Label that is displayed in the node header.
|
|
68
64
|
*/
|
|
69
|
-
label: string | JSX.Element;
|
|
65
|
+
label: string | React.JSX.Element;
|
|
70
66
|
/**
|
|
71
67
|
* Element that is displayed as subline under the label in the header.
|
|
72
68
|
*/
|
|
73
|
-
labelSubline?: JSX.Element;
|
|
69
|
+
labelSubline?: React.JSX.Element;
|
|
74
70
|
/**
|
|
75
71
|
* Content element, displayed in the node body.
|
|
76
72
|
*/
|
|
@@ -86,9 +82,7 @@ interface NodeContentData<CONTENT_PROPS = any> {
|
|
|
86
82
|
}
|
|
87
83
|
|
|
88
84
|
export interface NodeContentProps<CONTENT_PROPS = any>
|
|
89
|
-
extends NodeContentData,
|
|
90
|
-
ReacFlowVersionSupportProps,
|
|
91
|
-
Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
|
|
85
|
+
extends NodeContentData, ReacFlowVersionSupportProps, Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
|
|
92
86
|
/**
|
|
93
87
|
* Size of the node.
|
|
94
88
|
* If `minimalShape` is not set to `none`then the configured size definition is only used for the selected node state.
|
|
@@ -138,7 +132,7 @@ export interface NodeContentProps<CONTENT_PROPS = any>
|
|
|
138
132
|
*/
|
|
139
133
|
executionButtons?: (
|
|
140
134
|
adjustedContentProps: Partial<CONTENT_PROPS>,
|
|
141
|
-
setAdjustedContentProps: React.Dispatch<React.SetStateAction<Partial<CONTENT_PROPS
|
|
135
|
+
setAdjustedContentProps: React.Dispatch<React.SetStateAction<Partial<CONTENT_PROPS>>>,
|
|
142
136
|
) => React.ReactElement<React.HTMLAttributes<HTMLElement>>;
|
|
143
137
|
/**
|
|
144
138
|
* Can be used for permanent action button or context menu.
|
|
@@ -178,7 +172,6 @@ export interface NodeContentProps<CONTENT_PROPS = any>
|
|
|
178
172
|
|
|
179
173
|
/**
|
|
180
174
|
* Additional data stored in the node.
|
|
181
|
-
* @deprecated (v26) is not used anymore.
|
|
182
175
|
*/
|
|
183
176
|
businessData?: never;
|
|
184
177
|
|
|
@@ -230,7 +223,7 @@ type MemoHandlerProps = HandleDefaultProps & {
|
|
|
230
223
|
|
|
231
224
|
type HandleStack = { [key: string]: HandleDefaultProps[] };
|
|
232
225
|
|
|
233
|
-
const defaultHandles = (flowVersion: ReacFlowVersionSupportProps["flowVersion"]):
|
|
226
|
+
const defaultHandles = (flowVersion: ReacFlowVersionSupportProps["flowVersion"]): HandleDefaultProps[] => {
|
|
234
227
|
switch (flowVersion) {
|
|
235
228
|
case "v9":
|
|
236
229
|
case "v12":
|
|
@@ -255,7 +248,7 @@ const addHandles = (
|
|
|
255
248
|
posDirection: MemoHandlerProps["posdirection"],
|
|
256
249
|
isConnectable: MemoHandlerProps["isConnectable"],
|
|
257
250
|
nodeStyle: MemoHandlerProps["style"],
|
|
258
|
-
flowVersion: ReacFlowVersionSupportProps["flowVersion"] = ReactFlowVersions.V9
|
|
251
|
+
flowVersion: ReacFlowVersionSupportProps["flowVersion"] = ReactFlowVersions.V9,
|
|
259
252
|
) => {
|
|
260
253
|
return handles[position].map((handle: HandleDefaultProps, idx: number) => {
|
|
261
254
|
// FIXME: remove? orig v12 change: return handles[position].map((handle: any, idx: any) => {
|
|
@@ -295,10 +288,10 @@ const MemoHandler = React.memo(
|
|
|
295
288
|
prev.intent === next.intent &&
|
|
296
289
|
prev.category === next.category
|
|
297
290
|
);
|
|
298
|
-
}
|
|
291
|
+
},
|
|
299
292
|
);
|
|
300
293
|
|
|
301
|
-
const DEFAULT_RESIZE_DIRECTIONS: ResizeDirections = { bottom: true, right: true }
|
|
294
|
+
const DEFAULT_RESIZE_DIRECTIONS: ResizeDirections = { bottom: true, right: true };
|
|
302
295
|
/**
|
|
303
296
|
* The `NodeContent` element manages the main view of how a node is displaying which content.
|
|
304
297
|
* This element cannot be used directly, all properties must be routed through the `data` property of an `elements` property item inside the `ReactFlow` container.
|
|
@@ -386,7 +379,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
386
379
|
console.error(error);
|
|
387
380
|
}
|
|
388
381
|
const [adjustedContentProps, setAdjustedContentProps] = React.useState<Partial<CONTENT_PROPS>>({});
|
|
389
|
-
const nodeContentRef = React.useRef<any>();
|
|
382
|
+
const nodeContentRef = React.useRef<any>(undefined);
|
|
390
383
|
|
|
391
384
|
const handleStack: Record<string, HandleDefaultProps[]> = {
|
|
392
385
|
[Position.Top]: [],
|
|
@@ -476,18 +469,18 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
476
469
|
// remove introduction class
|
|
477
470
|
React.useEffect(() => {
|
|
478
471
|
if (nodeContentRef && introductionTime) {
|
|
479
|
-
const timeDelay = typeof introductionTime === "object" ? introductionTime.delay ?? 0 : 0;
|
|
472
|
+
const timeDelay = typeof introductionTime === "object" ? (introductionTime.delay ?? 0) : 0;
|
|
480
473
|
const timeRun = typeof introductionTime === "object" ? introductionTime.run : introductionTime;
|
|
481
474
|
setTimeout(() => {
|
|
482
475
|
nodeContentRef.current.className = nodeContentRef.current.className.replace(
|
|
483
476
|
`${eccgui}-graphviz__node--introduction`,
|
|
484
|
-
`${eccgui}-graphviz__node--introduction-runs
|
|
477
|
+
`${eccgui}-graphviz__node--introduction-runs`,
|
|
485
478
|
);
|
|
486
479
|
}, timeDelay);
|
|
487
480
|
setTimeout(() => {
|
|
488
481
|
nodeContentRef.current.className = nodeContentRef.current.className.replace(
|
|
489
482
|
`${eccgui}-graphviz__node--introduction-runs`,
|
|
490
|
-
`${eccgui}-graphviz__node--introduction-done
|
|
483
|
+
`${eccgui}-graphviz__node--introduction-done`,
|
|
491
484
|
);
|
|
492
485
|
setIntroductionDone(true);
|
|
493
486
|
}, timeDelay + timeRun);
|
|
@@ -540,7 +533,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
540
533
|
|
|
541
534
|
const { highlightClassNameSuffix, highlightCustomPropertySettings } = evaluateHighlightColors(
|
|
542
535
|
"--node-highlight",
|
|
543
|
-
highlightColor
|
|
536
|
+
highlightColor,
|
|
544
537
|
);
|
|
545
538
|
|
|
546
539
|
const resizableStyles =
|
|
@@ -548,8 +541,8 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
548
541
|
? {
|
|
549
542
|
width,
|
|
550
543
|
height,
|
|
551
|
-
maxWidth: resizeDirections.right ? resizeMaxDimensions?.width ?? undefined : undefined,
|
|
552
|
-
maxHeight: resizeDirections.bottom ? resizeMaxDimensions?.height ?? undefined : undefined,
|
|
544
|
+
maxWidth: resizeDirections.right ? (resizeMaxDimensions?.width ?? undefined) : undefined,
|
|
545
|
+
maxHeight: resizeDirections.bottom ? (resizeMaxDimensions?.height ?? undefined) : undefined,
|
|
553
546
|
}
|
|
554
547
|
: {};
|
|
555
548
|
|
|
@@ -680,7 +673,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
680
673
|
"left",
|
|
681
674
|
isConnectable,
|
|
682
675
|
style as MemoHandlerProps["style"],
|
|
683
|
-
flowVersionCheck
|
|
676
|
+
flowVersionCheck,
|
|
684
677
|
)}
|
|
685
678
|
{addHandles(
|
|
686
679
|
handleStack,
|
|
@@ -688,7 +681,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
688
681
|
"top",
|
|
689
682
|
isConnectable,
|
|
690
683
|
style as MemoHandlerProps["style"],
|
|
691
|
-
flowVersionCheck
|
|
684
|
+
flowVersionCheck,
|
|
692
685
|
)}
|
|
693
686
|
{addHandles(
|
|
694
687
|
handleStack,
|
|
@@ -696,7 +689,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
696
689
|
"left",
|
|
697
690
|
isConnectable,
|
|
698
691
|
style as MemoHandlerProps["style"],
|
|
699
|
-
flowVersionCheck
|
|
692
|
+
flowVersionCheck,
|
|
700
693
|
)}
|
|
701
694
|
{addHandles(
|
|
702
695
|
handleStack,
|
|
@@ -704,7 +697,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
704
697
|
"top",
|
|
705
698
|
isConnectable,
|
|
706
699
|
style as MemoHandlerProps["style"],
|
|
707
|
-
flowVersionCheck
|
|
700
|
+
flowVersionCheck,
|
|
708
701
|
)}
|
|
709
702
|
</>
|
|
710
703
|
)}
|
|
@@ -735,42 +728,51 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
735
728
|
return validatedHeight;
|
|
736
729
|
};
|
|
737
730
|
|
|
738
|
-
const onResize = React.useCallback(
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
731
|
+
const onResize: ResizableProps["onResize"] = React.useCallback(
|
|
732
|
+
(_0: any, _1: any, _2: any, d: NumberSize) => {
|
|
733
|
+
if (nodeContentRef.current) {
|
|
734
|
+
const nextWidth = resizeDirections.right
|
|
735
|
+
? (width ?? originalSize.current.width ?? 0) + d.width
|
|
736
|
+
: undefined;
|
|
737
|
+
const nextHeight = resizeDirections.bottom
|
|
738
|
+
? (height ?? originalSize.current.height ?? 0) + d.height
|
|
739
|
+
: undefined;
|
|
740
|
+
if (nextWidth || nextHeight) {
|
|
741
|
+
const currentClassNames = nodeContentRef.current.classList;
|
|
742
|
+
currentClassNames.add("was-resized");
|
|
743
|
+
}
|
|
744
|
+
if (nextWidth) {
|
|
745
|
+
nodeContentRef.current.style.width = `${nextWidth}px`;
|
|
746
|
+
}
|
|
747
|
+
if (nextHeight) {
|
|
748
|
+
nodeContentRef.current.style.height = `${nextHeight}px`;
|
|
749
|
+
}
|
|
752
750
|
}
|
|
753
|
-
|
|
754
|
-
|
|
751
|
+
},
|
|
752
|
+
[resizeDirections, originalSize, width, height],
|
|
753
|
+
);
|
|
754
|
+
|
|
755
|
+
const onResizeStop: ResizeCallback = React.useCallback(
|
|
756
|
+
(_0, _1, _2, d: NumberSize) => {
|
|
757
|
+
const nextWidth = validateWidth((width ?? originalSize.current.width ?? 0) + d.width);
|
|
758
|
+
const nextHeight = validateHeight((height ?? originalSize.current.height ?? 0) + d.height);
|
|
759
|
+
setWidth(nextWidth);
|
|
760
|
+
setHeight(nextHeight);
|
|
761
|
+
if (onNodeResize) {
|
|
762
|
+
onNodeResize({
|
|
763
|
+
height: nextHeight,
|
|
764
|
+
width: nextWidth,
|
|
765
|
+
});
|
|
755
766
|
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
const onResizeStop = React.useCallback((_0, _1, _2, d) => {
|
|
760
|
-
const nextWidth = validateWidth((width ?? originalSize.current.width ?? 0) + d.width);
|
|
761
|
-
const nextHeight = validateHeight((height ?? originalSize.current.height ?? 0) + d.height);
|
|
762
|
-
setWidth(nextWidth);
|
|
763
|
-
setHeight(nextHeight);
|
|
764
|
-
if (onNodeResize) {
|
|
765
|
-
onNodeResize({
|
|
766
|
-
height: nextHeight,
|
|
767
|
-
width: nextWidth,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
}, [onNodeResize, width, height, originalSize]);
|
|
767
|
+
},
|
|
768
|
+
[onNodeResize, width, height, originalSize],
|
|
769
|
+
);
|
|
771
770
|
|
|
772
771
|
const resizableSize = React.useMemo(() => ({ height: height ?? "auto", width: width ?? "auto" }), [height, width]);
|
|
773
|
-
const enableResize = React.useMemo(
|
|
772
|
+
const enableResize = React.useMemo(
|
|
773
|
+
() => (resizeDirections!.bottom && resizeDirections!.right ? { bottomRight: true } : resizeDirections),
|
|
774
|
+
[resizeDirections],
|
|
775
|
+
);
|
|
774
776
|
|
|
775
777
|
const resizableNode = () => {
|
|
776
778
|
return (
|
|
@@ -799,7 +801,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
799
801
|
|
|
800
802
|
const evaluateHighlightColors = (
|
|
801
803
|
baseCustomProperty: string,
|
|
802
|
-
highlightColor?: NodeHighlightColor | NodeHighlightColor[]
|
|
804
|
+
highlightColor?: NodeHighlightColor | NodeHighlightColor[],
|
|
803
805
|
) => {
|
|
804
806
|
let styleHighlightColors = {
|
|
805
807
|
[`${baseCustomProperty}-default-color`]: undefined,
|
|
@@ -2,7 +2,7 @@ import React, { memo } from "react";
|
|
|
2
2
|
import { NodeProps as ReactFlowNodeV9Props } from "react-flow-renderer";
|
|
3
3
|
import { NodeProps as ReactFlowNodeV12Props, Position } from "@xyflow/react";
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import Tooltip from "../../../components/Tooltip/Tooltip";
|
|
6
6
|
import { ReacFlowVersionSupportProps, useReactFlowVersion } from "../versionsupport";
|
|
7
7
|
|
|
8
8
|
import { NodeContent, NodeContentProps } from "./NodeContent";
|
|
@@ -16,9 +16,12 @@ interface NodeDefaultExtendedProps<CONTENT_PROPS = any> extends ReacFlowVersionS
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
type NodeDefaultV9Props<CONTENT_PROPS = any> = NodeDefaultExtendedProps<CONTENT_PROPS> & ReactFlowNodeV9Props;
|
|
19
|
-
type NodeDefaultV12Props<CONTENT_PROPS = any> = NodeDefaultExtendedProps<CONTENT_PROPS> &
|
|
19
|
+
type NodeDefaultV12Props<CONTENT_PROPS = any> = NodeDefaultExtendedProps<CONTENT_PROPS> &
|
|
20
|
+
Omit<ReactFlowNodeV12Props, "data">;
|
|
20
21
|
|
|
21
|
-
export type NodeDefaultProps<CONTENT_PROPS = any> =
|
|
22
|
+
export type NodeDefaultProps<CONTENT_PROPS = any> =
|
|
23
|
+
| NodeDefaultV9Props<CONTENT_PROPS>
|
|
24
|
+
| NodeDefaultV12Props<CONTENT_PROPS>;
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* The `NodeDefault` element manages the display of React-Flow nodes.
|
|
@@ -2,10 +2,10 @@ import React, { memo, useEffect, useState } from "react";
|
|
|
2
2
|
import { PopoverInteractionKind as BlueprintPopoverInteractionKind } from "@blueprintjs/core";
|
|
3
3
|
|
|
4
4
|
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
5
|
+
import IconButton from "../../../components/Icon/IconButton";
|
|
5
6
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
6
|
-
import { ContextOverlay, IconButton } from "../../../index";
|
|
7
7
|
|
|
8
|
-
import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
8
|
+
import ContextOverlay, { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
9
9
|
|
|
10
10
|
// Functions regarding the menu that can be called from the outside
|
|
11
11
|
export interface NodeToolsMenuFunctions {
|
|
@@ -14,8 +14,8 @@ export interface NodeToolsMenuFunctions {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface NodeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
17
|
-
children: string | JSX.Element;
|
|
18
|
-
togglerElement?: ValidIconName | JSX.Element;
|
|
17
|
+
children: string | React.JSX.Element;
|
|
18
|
+
togglerElement?: ValidIconName | React.JSX.Element;
|
|
19
19
|
togglerText?: string;
|
|
20
20
|
menuButtonDataTestId?: string;
|
|
21
21
|
/** If defined this function will be called with the menu API object to be used externally. */
|
|
@@ -63,5 +63,5 @@ export const NodeTools = memo(
|
|
|
63
63
|
)}
|
|
64
64
|
</ContextOverlay>
|
|
65
65
|
);
|
|
66
|
-
}
|
|
66
|
+
},
|
|
67
67
|
);
|
|
@@ -376,7 +376,8 @@
|
|
|
376
376
|
display: block;
|
|
377
377
|
content: " ";
|
|
378
378
|
border: 0.1px solid transparent; // workaround for Firefox, otherwise shadows are overlayed
|
|
379
|
-
box-shadow:
|
|
379
|
+
box-shadow:
|
|
380
|
+
0 0 0 2 * $reactflow-node-border-width var(--node-highlight-default-color),
|
|
380
381
|
0 0 0 3.5 * $reactflow-node-border-width
|
|
381
382
|
var(--node-highlight-alternate-color, var(--node-highlight-default-color));
|
|
382
383
|
opacity: $eccgui-opacity-disabled;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
-
import {Node as NodeV9, XYPosition as XYPositionV9} from "react-flow-renderer";
|
|
3
|
-
import {Node as NodeV12, XYPosition as XYPositionV12} from "@xyflow/react";
|
|
2
|
+
import { Node as NodeV9, XYPosition as XYPositionV9 } from "react-flow-renderer";
|
|
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
|
+
import { NodeDimensions } from "./NodeContent";
|
|
7
7
|
|
|
8
8
|
interface StickyNoteBase {
|
|
9
9
|
id: string;
|
|
@@ -30,9 +30,14 @@ const transformNodeToStickyNode = (node: NodeV9<any> | NodeV12<any>): StickyNote
|
|
|
30
30
|
return {
|
|
31
31
|
id: node.id,
|
|
32
32
|
content: node.data.businessData.stickyNote!,
|
|
33
|
-
position: {
|
|
33
|
+
position: {
|
|
34
|
+
x: node.position.x,
|
|
35
|
+
y: node.position.y,
|
|
36
|
+
width: node.data.nodeDimensions?.width,
|
|
37
|
+
height: node.data.nodeDimensions?.height,
|
|
38
|
+
},
|
|
34
39
|
color: node.data.style?.borderColor!,
|
|
35
|
-
}
|
|
40
|
+
};
|
|
36
41
|
};
|
|
37
42
|
|
|
38
43
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type NodeHighlightColor = "default" | "alternate" |
|
|
1
|
+
import { ColorLike } from "color";
|
|
2
|
+
export type NodeHighlightColor = "default" | "alternate" | ColorLike;
|
|
@@ -5,19 +5,18 @@ import { Meta, StoryFn } from "@storybook/react";
|
|
|
5
5
|
|
|
6
6
|
import { Definitions } from "../../../../common/Intent";
|
|
7
7
|
|
|
8
|
-
import canonicalIcons from "./../../../../components/Icon/canonicalIconNames";
|
|
9
8
|
import {
|
|
10
9
|
Badge,
|
|
11
10
|
ContextMenu,
|
|
12
11
|
HtmlContentBlock,
|
|
13
12
|
IconButton,
|
|
14
13
|
MenuItem,
|
|
15
|
-
NodeContent,
|
|
16
|
-
NodeContentExtension,
|
|
17
14
|
OverflowText,
|
|
18
15
|
Tag,
|
|
19
16
|
TagList,
|
|
20
|
-
} from "./../../../../
|
|
17
|
+
} from "./../../../../components";
|
|
18
|
+
import canonicalIcons from "./../../../../components/Icon/canonicalIconNames";
|
|
19
|
+
import { NodeContent, NodeContentExtension } from "./../../../../extensions";
|
|
21
20
|
import {
|
|
22
21
|
Default as ContentExtensionExample,
|
|
23
22
|
SlideOutOfNode as ContentExtensionExampleSlideOut,
|
|
@@ -64,8 +63,8 @@ export default {
|
|
|
64
63
|
{loremIpsum({ p: 1, avgSentencesPerParagraph: 1, avgWordsPerSentence: 5, random: false })
|
|
65
64
|
.toString()
|
|
66
65
|
.split(" ")
|
|
67
|
-
.map((term) => (
|
|
68
|
-
<Tag small>{term}</Tag>
|
|
66
|
+
.map((term, id) => (
|
|
67
|
+
<Tag small key={id}>{term}</Tag>
|
|
69
68
|
))}
|
|
70
69
|
</TagList>
|
|
71
70
|
),
|
|
@@ -103,11 +102,20 @@ export default {
|
|
|
103
102
|
},
|
|
104
103
|
intent: {
|
|
105
104
|
control: "select",
|
|
106
|
-
options: [
|
|
105
|
+
options: [undefined, ...Object.values(Definitions)],
|
|
107
106
|
},
|
|
108
107
|
highlightColor: {
|
|
109
108
|
control: "select",
|
|
110
|
-
options: [
|
|
109
|
+
options: [
|
|
110
|
+
"Not set",
|
|
111
|
+
"Default",
|
|
112
|
+
"Alternate",
|
|
113
|
+
"Default + alternate",
|
|
114
|
+
"Custom (red)",
|
|
115
|
+
"Default + Custom (red)",
|
|
116
|
+
"Custom (green) + alternate",
|
|
117
|
+
"Custom (purple) + custom (yellow)",
|
|
118
|
+
],
|
|
111
119
|
mapping: {
|
|
112
120
|
"Not set": undefined,
|
|
113
121
|
Default: "default",
|
|
@@ -142,39 +150,43 @@ const NodeContentExample = (args: any) => {
|
|
|
142
150
|
};
|
|
143
151
|
|
|
144
152
|
useEffect(() => {
|
|
145
|
-
const sizeReset = {}
|
|
153
|
+
const sizeReset = {};
|
|
146
154
|
if (args.resizeMaxDimensions && args.resizeDirections) {
|
|
147
155
|
sizeReset["onNodeResize"] = (dimensions) => {
|
|
148
156
|
// eslint-disable-next-line no-console
|
|
149
|
-
console.log("call onNodeResize method")
|
|
157
|
+
console.log("call onNodeResize method");
|
|
150
158
|
if (args.onNodeResize) {
|
|
151
159
|
args.onNodeResize(dimensions);
|
|
152
160
|
}
|
|
153
161
|
if (dimensions?.width || dimensions?.height) {
|
|
154
|
-
sizeReset["menuButtons"] =
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
sizeReset["menuButtons"] = (
|
|
163
|
+
<IconButton
|
|
164
|
+
name="item-reset"
|
|
165
|
+
onClick={() => {
|
|
166
|
+
// eslint-disable-next-line no-console
|
|
167
|
+
console.log("reset size");
|
|
168
|
+
setElements([
|
|
169
|
+
{
|
|
170
|
+
...defaultElement,
|
|
171
|
+
data: { ...defaultElement.data, ...sizeReset, ...{ nodeDimensions: {} } },
|
|
172
|
+
},
|
|
173
|
+
] as Elements);
|
|
174
|
+
}}
|
|
175
|
+
/>
|
|
176
|
+
);
|
|
165
177
|
}
|
|
166
178
|
setElements([
|
|
167
179
|
{
|
|
168
180
|
...defaultElement,
|
|
169
|
-
data: {...defaultElement.data, ...sizeReset, ...{ nodeDimensions: dimensions }},
|
|
181
|
+
data: { ...defaultElement.data, ...sizeReset, ...{ nodeDimensions: dimensions } },
|
|
170
182
|
},
|
|
171
183
|
] as Elements);
|
|
172
|
-
}
|
|
184
|
+
};
|
|
173
185
|
}
|
|
174
186
|
setElements([
|
|
175
187
|
{
|
|
176
188
|
...defaultElement,
|
|
177
|
-
data: {...defaultElement.data, ...sizeReset},
|
|
189
|
+
data: { ...defaultElement.data, ...sizeReset },
|
|
178
190
|
},
|
|
179
191
|
] as Elements);
|
|
180
192
|
}, [args]);
|
|
@@ -185,7 +197,7 @@ const NodeContentExample = (args: any) => {
|
|
|
185
197
|
setReactflowInstance(rfi);
|
|
186
198
|
}
|
|
187
199
|
},
|
|
188
|
-
[reactflowInstance]
|
|
200
|
+
[reactflowInstance],
|
|
189
201
|
);
|
|
190
202
|
|
|
191
203
|
return (
|
|
@@ -201,7 +213,9 @@ const NodeContentExample = (args: any) => {
|
|
|
201
213
|
);
|
|
202
214
|
};
|
|
203
215
|
|
|
204
|
-
const Template: StoryFn<typeof NodeContent> = (args) =>
|
|
216
|
+
const Template: StoryFn<typeof NodeContent> = (args) => (
|
|
217
|
+
<NodeContentExample {...args} /*some comment*/ key={++forcedUpdateKey} />
|
|
218
|
+
);
|
|
205
219
|
|
|
206
220
|
export const Default = Template.bind({});
|
|
207
221
|
Default.args = {
|
|
@@ -4,7 +4,7 @@ import { Meta, StoryFn } from "@storybook/react";
|
|
|
4
4
|
import { Node, ReactFlow, ReactFlowProvider, useNodesState } from "@xyflow/react";
|
|
5
5
|
|
|
6
6
|
import { Definitions } from "../../../../common/Intent";
|
|
7
|
-
import {
|
|
7
|
+
import { NodeDefault } from "../NodeDefault";
|
|
8
8
|
|
|
9
9
|
import canonicalIcons from "./../../../../components/Icon/canonicalIconNames";
|
|
10
10
|
import {
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
140
140
|
|
|
141
141
|
let forcedUpdateKey = 0; // @see https://github.com/storybookjs/storybook/issues/13375#issuecomment-1291011856
|
|
142
142
|
|
|
143
|
-
const nodeTypes = { default:
|
|
143
|
+
const nodeTypes = { default: NodeDefault };
|
|
144
144
|
|
|
145
145
|
const NodeContentExample = (args: any) => {
|
|
146
146
|
const [reactflowInstance, setReactflowInstance] = useState(null);
|
|
@@ -201,7 +201,7 @@ const NodeContentExample = (args: any) => {
|
|
|
201
201
|
setReactflowInstance(rfi);
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
[reactflowInstance]
|
|
204
|
+
[reactflowInstance],
|
|
205
205
|
);
|
|
206
206
|
|
|
207
207
|
return (
|