@eccenca/gui-elements 25.1.0-rc.4 → 25.2.0-featuredarkthemesupportcmem7503.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 +1005 -946
- package/README.md +27 -27
- 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 +21 -6
- 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 +17 -7
- 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 +17 -7
- 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/ApplicationContainer.js +3 -2
- package/dist/cjs/components/Application/ApplicationContainer.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 +27 -13
- 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 +25 -8
- 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 -25
- 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/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 +43 -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 +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js +17 -7
- 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/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +17 -7
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js +17 -7
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +11 -9
- 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 +28 -3
- 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/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.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/ApplicationContainer.js +3 -2
- package/dist/esm/components/Application/ApplicationContainer.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 +12 -8
- 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/canonicalIconNames.js +8 -1
- package/dist/esm/components/Icon/canonicalIconNames.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 -22
- 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/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 +26 -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/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/markers/ReactFlowMarkers.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 +8 -6
- 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 -3
- package/dist/types/cmem/markdown/Markdown.d.ts +2 -1
- 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/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/ApplicationContainer.d.ts +6 -1
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +6 -3
- 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/Icon/canonicalIconNames.d.ts +8 -1
- 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 +15 -4
- 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 +2 -2
- 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/react-flow/edges/EdgeLabel.d.ts +3 -3
- 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/HandleTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +3 -3
- 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 +67 -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 +12 -4
- 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.stories.tsx +11 -0
- package/src/cmem/markdown/Markdown.tsx +2 -1
- package/src/cmem/markdown/highlightSearchWords.test.ts +1 -1
- package/src/cmem/markdown/markdown.scss +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 -2
- 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 +14 -14
- package/src/common/scss/_color-functions.scss +151 -5
- 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/ApplicationContainer.tsx +15 -2
- 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/_colors.scss +27 -3
- package/src/components/Application/_container.scss +5 -0
- package/src/components/Application/_header.scss +13 -10
- package/src/components/Application/_sidebar.scss +2 -0
- package/src/components/Application/application.scss +1 -0
- package/src/components/Application/stories/Application.stories.tsx +13 -1
- 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 +30 -23
- 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/Breadcrumb/breadcrumb.scss +2 -2
- package/src/components/Button/Button.test.tsx +2 -2
- package/src/components/Button/Button.tsx +13 -11
- package/src/components/Button/button.scss +4 -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/Checkbox/checkbox.scss +9 -0
- package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +9 -3
- 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/Form/form.scss +2 -2
- 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/canonicalIconNames.tsx +10 -2
- 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/Iframe/iframe.scss +8 -0
- 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 -26
- 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/Pagination/Stories/Pagination.stories.tsx +32 -0
- package/src/components/Pagination/pagination.scss +55 -5
- package/src/components/PropertyValuePair/PropertyValueList.tsx +1 -1
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
- package/src/components/RadioButton/radiobutton.scss +9 -0
- 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/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/Tabs/tabs.scss +2 -2
- 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/Toolbar/toolbar.scss +1 -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/_reset.scss +1 -0
- package/src/components/Typography/stories/OverflowText.stories.tsx +1 -1
- package/src/components/Typography/typography.scss +25 -3
- package/src/components/VisualTour/VisualTour.tsx +10 -10
- package/src/components/Workspace/workspace.scss +0 -5
- package/src/components/index.ts +1 -0
- package/src/configuration/_palettes.scss +66 -2
- package/src/configuration/_variables.scss +3 -1
- package/src/configuration/stories/customproperties.stories.tsx +45 -7
- package/src/extensions/codemirror/CodeMirror.tsx +131 -79
- package/src/extensions/codemirror/_codemirror.scss +59 -0
- 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/_react-flow_v12.scss +38 -19
- package/src/extensions/react-flow/edges/EdgeBezier.tsx +1 -2
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +4 -4
- package/src/extensions/react-flow/edges/EdgeDefaultV12.tsx +5 -5
- 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/EdgeTools.tsx +2 -3
- package/src/extensions/react-flow/edges/_edges.scss +1 -0
- 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 +56 -46
- package/src/extensions/react-flow/handles/HandleTools.tsx +4 -5
- package/src/extensions/react-flow/handles/_handles.scss +3 -3
- package/src/extensions/react-flow/handles/stories/HandleDefault.stories.tsx +2 -7
- package/src/extensions/react-flow/index.ts +1 -1
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +2 -2
- package/src/extensions/react-flow/minimap/MiniMap.tsx +17 -20
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +2 -3
- package/src/extensions/react-flow/nodes/NodeContent.tsx +65 -57
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +6 -3
- package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +1 -1
- 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 +38 -24
- package/src/extensions/react-flow/nodes/stories/NodeContentV12.stories.tsx +1 -1
- package/src/extensions/react-flow/nodes/stories/NodeDefault.stories.tsx +1 -1
- package/src/includes/blueprintjs/_variables.scss +1 -0
- package/src/includes/carbon-components/_requisits.scss +13 -1
- package/src/includes/carbon-components/_variables.scss +2 -1
- package/src/index.scss +2 -2
- package/src/test/setupTests.js +1 -1
|
@@ -149,7 +149,7 @@ export default class MarkdownCommand {
|
|
|
149
149
|
changes,
|
|
150
150
|
range: EditorSelection.range(selectionStart, selectionStart + selectionLength),
|
|
151
151
|
};
|
|
152
|
-
})
|
|
152
|
+
}),
|
|
153
153
|
);
|
|
154
154
|
|
|
155
155
|
view.focus();
|
|
@@ -192,7 +192,7 @@ export default class MarkdownCommand {
|
|
|
192
192
|
},
|
|
193
193
|
range: EditorSelection.range(range.anchor + diffLength, range.head + diffLength),
|
|
194
194
|
};
|
|
195
|
-
})
|
|
195
|
+
}),
|
|
196
196
|
);
|
|
197
197
|
|
|
198
198
|
this.enforceCursorFocus(lastCursorPosition);
|
|
@@ -214,7 +214,7 @@ export default class MarkdownCommand {
|
|
|
214
214
|
changes: [{ from: range.from, to: range.to, insert: `${startDelimiter}${text}${endDelimiter}` }],
|
|
215
215
|
range: EditorSelection.range(range.from + start, range.to + stop),
|
|
216
216
|
};
|
|
217
|
-
})
|
|
217
|
+
}),
|
|
218
218
|
);
|
|
219
219
|
view.focus();
|
|
220
220
|
};
|
|
@@ -247,7 +247,7 @@ export default class MarkdownCommand {
|
|
|
247
247
|
],
|
|
248
248
|
range: EditorSelection.range(cursor, cursor),
|
|
249
249
|
};
|
|
250
|
-
})
|
|
250
|
+
}),
|
|
251
251
|
);
|
|
252
252
|
|
|
253
253
|
view.focus();
|
|
@@ -298,7 +298,7 @@ export default class MarkdownCommand {
|
|
|
298
298
|
changes,
|
|
299
299
|
range: EditorSelection.range(selectionStart, selectionStart + selectionLength),
|
|
300
300
|
};
|
|
301
|
-
})
|
|
301
|
+
}),
|
|
302
302
|
);
|
|
303
303
|
this.enforceCursorFocus(lastCursorPosition);
|
|
304
304
|
};
|
|
@@ -326,7 +326,7 @@ export default class MarkdownCommand {
|
|
|
326
326
|
case Commands.orderedList:
|
|
327
327
|
case Commands.todoList:
|
|
328
328
|
return this.createList(
|
|
329
|
-
MarkdownCommand.commands.lists.find((l) => l.title === command)?.moniker as ListType
|
|
329
|
+
MarkdownCommand.commands.lists.find((l) => l.title === command)?.moniker as ListType,
|
|
330
330
|
);
|
|
331
331
|
case Commands.image:
|
|
332
332
|
case Commands.link:
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
.react-flow {
|
|
9
|
-
direction: ltr;
|
|
10
9
|
z-index: 0;
|
|
10
|
+
direction: ltr;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.react-flow__pane {
|
|
@@ -43,26 +43,45 @@
|
|
|
43
43
|
.react-flow__controls {
|
|
44
44
|
display: flex;
|
|
45
45
|
flex-direction: column;
|
|
46
|
+
border: 1px solid rgba($pt-text-color, 0.2);
|
|
47
|
+
box-shadow: none !important;
|
|
48
|
+
|
|
49
|
+
.react-flow__controls-button {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
color: $pt-text-color;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
user-select: none;
|
|
55
|
+
background-color: $button-background-color;
|
|
56
|
+
border: none;
|
|
57
|
+
|
|
58
|
+
&:not(:last-child) {
|
|
59
|
+
border-bottom: 1px solid rgba($pt-text-color, 0.2);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:hover,
|
|
63
|
+
&:focus {
|
|
64
|
+
background-color: $button-background-color-hover;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:disabled {
|
|
68
|
+
color: $button-background-color-disabled;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.react-flow__controls-button svg {
|
|
74
|
+
width: 100%;
|
|
75
|
+
max-width: 12px;
|
|
76
|
+
max-height: 12px;
|
|
77
|
+
fill: currentcolor;
|
|
78
|
+
}
|
|
46
79
|
}
|
|
47
80
|
|
|
48
81
|
.react-flow__controls.horizontal {
|
|
49
82
|
flex-direction: row;
|
|
50
83
|
}
|
|
51
84
|
|
|
52
|
-
.react-flow__controls-button {
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
user-select: none;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.react-flow__controls-button svg {
|
|
60
|
-
width: 100%;
|
|
61
|
-
max-width: 12px;
|
|
62
|
-
max-height: 12px;
|
|
63
|
-
fill: currentcolor;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
85
|
.react-flow .react-flow__edges {
|
|
67
86
|
position: absolute;
|
|
68
87
|
}
|
|
@@ -152,6 +171,10 @@ svg.react-flow__connectionline {
|
|
|
152
171
|
cursor: move;
|
|
153
172
|
}
|
|
154
173
|
|
|
174
|
+
.react-flow__minimap {
|
|
175
|
+
background-color: #{eccgui-color-var("identity", "background", "100")} !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
155
178
|
.react-flow__minimap-svg {
|
|
156
179
|
display: block;
|
|
157
180
|
}
|
|
@@ -168,10 +191,6 @@ svg.react-flow__connectionline {
|
|
|
168
191
|
outline: none;
|
|
169
192
|
}
|
|
170
193
|
|
|
171
|
-
.react-flow__controls-button:disabled {
|
|
172
|
-
pointer-events: none;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
194
|
// -- adjustments
|
|
176
195
|
|
|
177
196
|
.react-flow__background {
|
|
@@ -14,8 +14,7 @@ interface EdgeBezierDataV12Props extends EdgeDefaultV12DataProps {
|
|
|
14
14
|
* @deprecated (v26) v9 support is removed after v25
|
|
15
15
|
*/
|
|
16
16
|
export interface EdgeBezierV12Props
|
|
17
|
-
extends Omit<EdgeDefaultV12Props, "data">,
|
|
18
|
-
EdgeProps<Edge<EdgeBezierDataV12Props>> {}
|
|
17
|
+
extends Omit<EdgeDefaultV12Props, "data">, EdgeProps<Edge<EdgeBezierDataV12Props>> {}
|
|
19
18
|
|
|
20
19
|
export type EdgeBezierProps = EdgeDefaultV9Props | EdgeBezierV12Props;
|
|
21
20
|
|
|
@@ -104,7 +104,7 @@ const EdgeDefaultV9 = memo(
|
|
|
104
104
|
const edgeStyle = edgeOriginalProperties.style ?? {};
|
|
105
105
|
const { highlightCustomPropertySettings } = nodeContentUtils.evaluateHighlightColors(
|
|
106
106
|
"--edge-highlight",
|
|
107
|
-
highlightColor
|
|
107
|
+
highlightColor,
|
|
108
108
|
);
|
|
109
109
|
|
|
110
110
|
return (
|
|
@@ -113,7 +113,7 @@ const EdgeDefaultV9 = memo(
|
|
|
113
113
|
className={createEdgeDefaultClassName(
|
|
114
114
|
{ intent },
|
|
115
115
|
`${edgeSvgProps?.className ?? ""}`,
|
|
116
|
-
ReactFlowVersions.V9
|
|
116
|
+
ReactFlowVersions.V9,
|
|
117
117
|
)}
|
|
118
118
|
style={{
|
|
119
119
|
...edgeSvgProps?.style,
|
|
@@ -147,7 +147,7 @@ const EdgeDefaultV9 = memo(
|
|
|
147
147
|
{edgeLabel}
|
|
148
148
|
</g>
|
|
149
149
|
);
|
|
150
|
-
}
|
|
150
|
+
},
|
|
151
151
|
);
|
|
152
152
|
|
|
153
153
|
/**
|
|
@@ -169,7 +169,7 @@ export const EdgeDefault = memo((props: EdgeDefaultProps) => {
|
|
|
169
169
|
const createEdgeDefaultClassName = (
|
|
170
170
|
{ strokeType, intent, highlightColor }: EdgeDefaultDataProps,
|
|
171
171
|
baseClass = "react-flow__edge-path",
|
|
172
|
-
flowVersion?: ReactFlowVersions
|
|
172
|
+
flowVersion?: ReactFlowVersions,
|
|
173
173
|
) => {
|
|
174
174
|
const { highlightClassNameSuffix } = nodeContentUtils.evaluateHighlightColors("--edge-highlight", highlightColor);
|
|
175
175
|
return (
|
|
@@ -25,7 +25,7 @@ export type EdgeDefaultV12Props = EdgeProps<Edge<EdgeDefaultV12DataProps>> & {
|
|
|
25
25
|
* Callback handler that returns SVG path and label position of the edge.
|
|
26
26
|
*/
|
|
27
27
|
getPath?: (
|
|
28
|
-
edgeParams: Omit<GetBezierPathParams, "curvature"> & Record<string, unknown
|
|
28
|
+
edgeParams: Omit<GetBezierPathParams, "curvature"> & Record<string, unknown>,
|
|
29
29
|
) => [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -75,7 +75,7 @@ export const EdgeDefaultV12 = memo(
|
|
|
75
75
|
const edgeStyle = edgeOriginalProperties.style ?? {};
|
|
76
76
|
const { highlightCustomPropertySettings } = nodeContentUtils.evaluateHighlightColors(
|
|
77
77
|
"--edge-highlight",
|
|
78
|
-
highlightColor
|
|
78
|
+
highlightColor,
|
|
79
79
|
);
|
|
80
80
|
|
|
81
81
|
const renderedLabel =
|
|
@@ -115,7 +115,7 @@ export const EdgeDefaultV12 = memo(
|
|
|
115
115
|
className={edgeDefaultUtils.createEdgeDefaultClassName(
|
|
116
116
|
{ intent },
|
|
117
117
|
`${edgeSvgProps?.className ?? ""}`,
|
|
118
|
-
ReactFlowVersions.V12
|
|
118
|
+
ReactFlowVersions.V12,
|
|
119
119
|
)}
|
|
120
120
|
tabIndex={0}
|
|
121
121
|
role="button"
|
|
@@ -128,7 +128,7 @@ export const EdgeDefaultV12 = memo(
|
|
|
128
128
|
d={edgePath}
|
|
129
129
|
className={edgeDefaultUtils.createEdgeDefaultClassName(
|
|
130
130
|
{ highlightColor },
|
|
131
|
-
"react-flow__edge-path-highlight"
|
|
131
|
+
"react-flow__edge-path-highlight",
|
|
132
132
|
)}
|
|
133
133
|
strokeWidth={pathGlowWidth}
|
|
134
134
|
style={{
|
|
@@ -151,5 +151,5 @@ export const EdgeDefaultV12 = memo(
|
|
|
151
151
|
{renderedLabel}
|
|
152
152
|
</g>
|
|
153
153
|
);
|
|
154
|
-
}
|
|
154
|
+
},
|
|
155
155
|
);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
|
|
3
3
|
import { intentClassName, IntentTypes } from "../../../common/Intent";
|
|
4
|
+
import { Depiction, DepictionProps } from "../../../components/Depiction/Depiction";
|
|
4
5
|
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
6
|
+
import Icon from "../../../components/Icon/Icon";
|
|
7
|
+
import OverflowText from "../../../components/Typography/OverflowText";
|
|
5
8
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
6
|
-
import { Depiction, DepictionProps, Icon, OverflowText } from "../../../index";
|
|
7
9
|
|
|
8
10
|
export interface EdgeLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
11
|
/**
|
|
@@ -14,11 +16,11 @@ export interface EdgeLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
14
16
|
* Label of the edge.
|
|
15
17
|
* Cannot overflow the parent container.
|
|
16
18
|
*/
|
|
17
|
-
text: string | JSX.Element;
|
|
19
|
+
text: string | React.JSX.Element;
|
|
18
20
|
/**
|
|
19
21
|
* One or multiple other elements displayed right from label.
|
|
20
22
|
*/
|
|
21
|
-
actions?: JSX.Element | JSX.Element[];
|
|
23
|
+
actions?: React.JSX.Element | React.JSX.Element[];
|
|
22
24
|
/**
|
|
23
25
|
* The element is increased in its size.
|
|
24
26
|
*/
|
|
@@ -82,14 +84,14 @@ export const EdgeLabel = memo(
|
|
|
82
84
|
</div>
|
|
83
85
|
)}
|
|
84
86
|
{(title || text) && (
|
|
85
|
-
<div className={`${eccgui}-graphviz__edge-label__text`} title={title??undefined}>
|
|
87
|
+
<div className={`${eccgui}-graphviz__edge-label__text`} title={title ?? undefined}>
|
|
86
88
|
{text && (typeof text === "string" ? <OverflowText>{text}</OverflowText> : text)}
|
|
87
89
|
</div>
|
|
88
90
|
)}
|
|
89
91
|
{!!actions && <div className={`${eccgui}-graphviz__edge-label__aux`}>{actions}</div>}
|
|
90
92
|
</div>
|
|
91
93
|
);
|
|
92
|
-
}
|
|
94
|
+
},
|
|
93
95
|
);
|
|
94
96
|
|
|
95
97
|
export interface EdgeLabelObjectProps extends React.SVGAttributes<SVGForeignObjectElement> {
|
|
@@ -111,10 +113,10 @@ export interface EdgeLabelObjectProps extends React.SVGAttributes<SVGForeignObje
|
|
|
111
113
|
export const EdgeLabelObject = memo(
|
|
112
114
|
({ children, edgeCenter, resizeTimeout = -1, ...otherForeignObjectProps }: EdgeLabelObjectProps) => {
|
|
113
115
|
const containerCallback = React.useCallback(
|
|
114
|
-
(containerRef) => {
|
|
116
|
+
(containerRef: SVGForeignObjectElement | null) => {
|
|
115
117
|
if (containerRef) labelSize(containerRef);
|
|
116
118
|
},
|
|
117
|
-
[edgeCenter]
|
|
119
|
+
[edgeCenter],
|
|
118
120
|
);
|
|
119
121
|
|
|
120
122
|
const labelSize = (container: SVGForeignObjectElement) => {
|
|
@@ -147,5 +149,5 @@ export const EdgeLabelObject = memo(
|
|
|
147
149
|
{children}
|
|
148
150
|
</foreignObject>
|
|
149
151
|
);
|
|
150
|
-
}
|
|
152
|
+
},
|
|
151
153
|
);
|
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
ConnectionLineComponentProps,
|
|
4
|
-
ConnectionLineType,
|
|
5
|
-
} from "@xyflow/react";
|
|
2
|
+
import { ConnectionLineComponentProps, ConnectionLineType } from "@xyflow/react";
|
|
6
3
|
|
|
7
4
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
8
5
|
|
|
9
|
-
import { EdgeBezier
|
|
6
|
+
import { EdgeBezier } from "./EdgeBezier";
|
|
7
|
+
import { EdgeDefaultV12Props } from "./EdgeDefaultV12";
|
|
8
|
+
import { EdgeStep } from "./EdgeStep";
|
|
9
|
+
import { EdgeStraight } from "./EdgeStraight";
|
|
10
10
|
|
|
11
11
|
export const EdgeNew = (edgeNewProps: ConnectionLineComponentProps) => {
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
connectionLineType,
|
|
15
|
-
fromX,
|
|
16
|
-
fromY,
|
|
17
|
-
toX,
|
|
18
|
-
toY,
|
|
19
|
-
connectionStatus,
|
|
20
|
-
fromPosition,
|
|
21
|
-
toPosition,
|
|
22
|
-
} = edgeNewProps;
|
|
12
|
+
const { connectionLineType, fromX, fromY, toX, toY, connectionStatus, fromPosition, toPosition } = edgeNewProps;
|
|
23
13
|
|
|
24
14
|
let EdgeType;
|
|
25
15
|
|
|
26
|
-
switch(connectionLineType) {
|
|
16
|
+
switch (connectionLineType) {
|
|
27
17
|
case ConnectionLineType.Step:
|
|
28
18
|
case ConnectionLineType.SmoothStep:
|
|
29
19
|
EdgeType = EdgeStep;
|
|
@@ -36,18 +26,26 @@ export const EdgeNew = (edgeNewProps: ConnectionLineComponentProps) => {
|
|
|
36
26
|
EdgeType = EdgeStraight;
|
|
37
27
|
}
|
|
38
28
|
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
return (
|
|
30
|
+
<EdgeType
|
|
31
|
+
{...({
|
|
32
|
+
sourceX: fromX,
|
|
33
|
+
sourceY: fromY,
|
|
34
|
+
targetX: toX,
|
|
35
|
+
targetY: toY,
|
|
36
|
+
sourcePosition: fromPosition,
|
|
37
|
+
targetPosition: toPosition,
|
|
38
|
+
data: {
|
|
39
|
+
strokeType: !connectionStatus ? "dashed" : undefined,
|
|
40
|
+
edgeSvgProps: { className: `${eccgui}-graphviz__edge--dragged` },
|
|
41
|
+
intent:
|
|
42
|
+
connectionStatus === "valid"
|
|
43
|
+
? "success"
|
|
44
|
+
: connectionStatus === "invalid"
|
|
45
|
+
? "warning"
|
|
46
|
+
: "accent",
|
|
47
|
+
},
|
|
48
|
+
} as EdgeDefaultV12Props)}
|
|
49
|
+
/>
|
|
50
|
+
);
|
|
52
51
|
};
|
|
53
|
-
|
|
@@ -2,9 +2,8 @@ import React, { memo } from "react";
|
|
|
2
2
|
import { PopoverInteractionKind as BlueprintPopoverInteractionKind } from "@blueprintjs/core";
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
5
|
-
import { ContextOverlay } from "../../../index";
|
|
6
5
|
|
|
7
|
-
import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
6
|
+
import { ContextOverlay, ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
8
7
|
|
|
9
8
|
interface PosOffset {
|
|
10
9
|
left: number;
|
|
@@ -13,7 +12,7 @@ interface PosOffset {
|
|
|
13
12
|
|
|
14
13
|
export interface EdgeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
15
14
|
posOffset: PosOffset;
|
|
16
|
-
children: string | JSX.Element | JSX.Element[];
|
|
15
|
+
children: string | React.JSX.Element | React.JSX.Element[];
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export const EdgeTools = memo(({ posOffset, children, ...otherProps }: EdgeToolsProps) => {
|
|
@@ -3,8 +3,9 @@ import { loremIpsum } from "react-lorem-ipsum";
|
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { helpersArgTypes } from "../../../../../.storybook/helpers";
|
|
6
|
+
import { EdgeLabel } from "../EdgeLabel";
|
|
6
7
|
|
|
7
|
-
import { Badge,
|
|
8
|
+
import { Badge, Icon, IconButton, OverflowText } from "./../../../../components";
|
|
8
9
|
import canonicalIcons from "./../../../../components/Icon/canonicalIconNames";
|
|
9
10
|
|
|
10
11
|
export default {
|
|
@@ -5,8 +5,10 @@ import { EdgeDefaultProps } from "./EdgeDefault";
|
|
|
5
5
|
import { EdgeStepProps } from "./EdgeStep";
|
|
6
6
|
import { getSmoothStepPath } from "./getSmoothStepPath";
|
|
7
7
|
|
|
8
|
-
interface EdgePositionCorrectionProps
|
|
9
|
-
|
|
8
|
+
interface EdgePositionCorrectionProps extends Omit<
|
|
9
|
+
EdgeDefaultProps,
|
|
10
|
+
"id" | "source" | "target" | "drawSvgPath" | "data"
|
|
11
|
+
> {
|
|
10
12
|
correctionLength?: number;
|
|
11
13
|
correctionRadius?: number;
|
|
12
14
|
}
|
|
@@ -159,7 +161,7 @@ export const getStraightPath = (params: Omit<GetBezierPathParams, "curvature">)
|
|
|
159
161
|
labelX: number,
|
|
160
162
|
labelY: number,
|
|
161
163
|
offsetX: number,
|
|
162
|
-
offsetY: number
|
|
164
|
+
offsetY: number,
|
|
163
165
|
];
|
|
164
166
|
};
|
|
165
167
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
|
|
3
|
+
import Tooltip, { TooltipProps } from "../../../components/Tooltip/Tooltip";
|
|
3
4
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
4
|
-
import { Tooltip, TooltipProps } from "../../../index";
|
|
5
5
|
|
|
6
6
|
export interface HandleContentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
|
|
7
7
|
/**
|
|
8
8
|
* Tooltip displayed as overlay on hover.
|
|
9
9
|
*/
|
|
10
|
-
extendedTooltip?: JSX.Element | string;
|
|
10
|
+
extendedTooltip?: React.JSX.Element | string;
|
|
11
11
|
/**
|
|
12
12
|
* Configure the tooltip and overwrite automatically set options.
|
|
13
13
|
*/
|
|
@@ -41,5 +41,5 @@ export const HandleContent = memo(
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
return handleContent;
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
45
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
import { Handle as HandleV9, HandleProps as ReactFlowHandleV9Props } from "react-flow-renderer";
|
|
3
3
|
import { Classes as BlueprintClasses } from "@blueprintjs/core";
|
|
4
|
-
import {Intent} from "@blueprintjs/core/src/common/intent";
|
|
4
|
+
import { Intent } from "@blueprintjs/core/src/common/intent";
|
|
5
5
|
import { Handle as HandleV12, HandleProps as ReactFlowHandleV12Props } from "@xyflow/react";
|
|
6
6
|
|
|
7
7
|
import { intentClassName, IntentTypes } from "../../../common/Intent";
|
|
8
|
+
import { TooltipProps } from "../../../components";
|
|
8
9
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
9
|
-
import { TooltipProps } from "../../../index";
|
|
10
10
|
import { ReacFlowVersionSupportProps, useReactFlowVersion } from "../versionsupport";
|
|
11
11
|
|
|
12
12
|
import { HandleContent, HandleContentProps } from "./HandleContent";
|
|
@@ -14,8 +14,7 @@ import { HandleContent, HandleContentProps } from "./HandleContent";
|
|
|
14
14
|
export type HandleCategory = "configuration" | "flexible" | "fixed" | "unknown" | "dependency";
|
|
15
15
|
|
|
16
16
|
interface HandleExtensionProps
|
|
17
|
-
extends ReacFlowVersionSupportProps,
|
|
18
|
-
Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "children"> {
|
|
17
|
+
extends ReacFlowVersionSupportProps, Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "children"> {
|
|
19
18
|
/**
|
|
20
19
|
* Defines the handle category, mainly used to adjust layout.
|
|
21
20
|
*/
|
|
@@ -88,52 +87,63 @@ export const HandleDefault = memo(
|
|
|
88
87
|
intent: intent as Intent,
|
|
89
88
|
className: `${eccgui}-graphviz__handle__tooltip-target`,
|
|
90
89
|
isOpen: extendedTooltipDisplayed,
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const handleContentProps = React.useMemo(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const handleContentProps = React.useMemo(
|
|
93
|
+
() => ({
|
|
94
|
+
...data,
|
|
95
|
+
tooltipProps: {
|
|
96
|
+
...handleContentTooltipProps,
|
|
97
|
+
...data?.tooltipProps,
|
|
98
|
+
} as TooltipProps,
|
|
99
|
+
}),
|
|
100
|
+
[intent, category, handleProps.isConnectable],
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const handleContent = React.useMemo(
|
|
104
|
+
() => <HandleContent {...handleContentProps}>{children}</HandleContent>,
|
|
105
|
+
[],
|
|
106
|
+
);
|
|
102
107
|
|
|
103
108
|
let switchTooltipTimerOn: ReturnType<typeof setTimeout>;
|
|
104
109
|
let switchToolsTimerOff: ReturnType<typeof setTimeout>;
|
|
105
110
|
|
|
106
|
-
const handleConfig =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
const handleConfig = React.useMemo(
|
|
112
|
+
() => ({
|
|
113
|
+
...handleProps,
|
|
114
|
+
...tooltipTitle,
|
|
115
|
+
className: intent
|
|
116
|
+
? `${intentClassName(intent)} `
|
|
117
|
+
: "" + ` ${eccgui}-graphviz__handle ${eccgui}-graphviz__handle--${flowVersionCheck}`,
|
|
118
|
+
onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
|
|
119
|
+
if (handleProps.onClick) {
|
|
120
|
+
handleProps.onClick(e);
|
|
121
|
+
}
|
|
122
|
+
if (toolsTarget.length > 0 && e.target === handleDefaultRef.current) {
|
|
123
|
+
setExtendedTooltipDisplayed(false);
|
|
124
|
+
(toolsTarget[0] as HTMLElement).click();
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"data-category": category,
|
|
128
|
+
onMouseEnter: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
|
|
129
|
+
if (switchToolsTimerOff) clearTimeout(switchToolsTimerOff);
|
|
130
|
+
if (e.target === handleDefaultRef.current) {
|
|
131
|
+
switchTooltipTimerOn = setTimeout(
|
|
132
|
+
() => setExtendedTooltipDisplayed(true),
|
|
133
|
+
data?.tooltipProps?.hoverOpenDelay ?? 500,
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
onMouseLeave: () => {
|
|
138
|
+
if (switchTooltipTimerOn) clearTimeout(switchTooltipTimerOn);
|
|
139
|
+
if (toolsTarget.length > 0 && toolsTarget[0].classList.contains(BlueprintClasses.POPOVER_OPEN)) {
|
|
140
|
+
switchToolsTimerOff = setTimeout(() => (toolsTarget[0] as HTMLElement).click(), 500);
|
|
141
|
+
}
|
|
115
142
|
setExtendedTooltipDisplayed(false);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
onMouseEnter: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
|
|
121
|
-
if (switchToolsTimerOff) clearTimeout(switchToolsTimerOff);
|
|
122
|
-
if (e.target === handleDefaultRef.current) {
|
|
123
|
-
switchTooltipTimerOn = setTimeout(
|
|
124
|
-
() => setExtendedTooltipDisplayed(true),
|
|
125
|
-
data?.tooltipProps?.hoverOpenDelay ?? 500
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
onMouseLeave: () => {
|
|
130
|
-
if (switchTooltipTimerOn) clearTimeout(switchTooltipTimerOn);
|
|
131
|
-
if (toolsTarget.length > 0 && toolsTarget[0].classList.contains(BlueprintClasses.POPOVER_OPEN)) {
|
|
132
|
-
switchToolsTimerOff = setTimeout(() => (toolsTarget[0] as HTMLElement).click(), 500);
|
|
133
|
-
}
|
|
134
|
-
setExtendedTooltipDisplayed(false);
|
|
135
|
-
},
|
|
136
|
-
}), [intent, category, tooltip, handleProps.isConnectable, handleProps.style]);
|
|
143
|
+
},
|
|
144
|
+
}),
|
|
145
|
+
[intent, category, tooltip, handleProps.isConnectable, handleProps.style],
|
|
146
|
+
);
|
|
137
147
|
|
|
138
148
|
switch (flowVersionCheck) {
|
|
139
149
|
case "v9":
|
|
@@ -152,5 +162,5 @@ export const HandleDefault = memo(
|
|
|
152
162
|
default:
|
|
153
163
|
return <></>;
|
|
154
164
|
}
|
|
155
|
-
}
|
|
165
|
+
},
|
|
156
166
|
);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PopoverInteractionKind as BlueprintPopoverInteractionKind } from "@blueprintjs/core";
|
|
3
3
|
|
|
4
|
+
import { TestableComponent } from "../../../components";
|
|
4
5
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
5
|
-
import { ContextOverlay, TestableComponent } from "../../../index";
|
|
6
6
|
|
|
7
|
-
import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
7
|
+
import { ContextOverlay, ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
8
8
|
|
|
9
9
|
export interface HandleToolsProps
|
|
10
|
-
extends Omit<ContextOverlayProps, "children" | "content" | "popoverClassName">,
|
|
11
|
-
|
|
12
|
-
children: string | JSX.Element | JSX.Element[];
|
|
10
|
+
extends Omit<ContextOverlayProps, "children" | "content" | "popoverClassName">, TestableComponent {
|
|
11
|
+
children: string | React.JSX.Element | React.JSX.Element[];
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export const HandleTools = ({ children, ...otherContextOverlayProps }: HandleToolsProps) => {
|
|
@@ -62,10 +62,10 @@ div.react-flow__handle {
|
|
|
62
62
|
inset: 0;
|
|
63
63
|
display: none;
|
|
64
64
|
cursor: pointer;
|
|
65
|
-
content: " ";
|
|
66
|
-
border-radius: 100%;
|
|
67
65
|
outline: dotted $eccgui-size-flow-handle-border currentcolor;
|
|
68
66
|
outline-offset: $eccgui-size-flow-handle * 0.75 + $eccgui-size-flow-handle-border * 0.5;
|
|
67
|
+
content: " ";
|
|
68
|
+
border-radius: 100%;
|
|
69
69
|
|
|
70
70
|
.react-flow__node:hover & {
|
|
71
71
|
display: block;
|
|
@@ -207,9 +207,9 @@ div.react-flow__handle-bottom {
|
|
|
207
207
|
.#{$eccgui}-graphviz__node--hidehandles {
|
|
208
208
|
& ~ .react-flow__handle:not(.connectable) {
|
|
209
209
|
z-index: -1;
|
|
210
|
+
visibility: hidden;
|
|
210
211
|
width: 1px;
|
|
211
212
|
height: 1px;
|
|
212
|
-
visibility: hidden;
|
|
213
213
|
border: none;
|
|
214
214
|
|
|
215
215
|
&.react-flow__handle-top {
|