@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
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Button from "../../components/Button/Button";
|
|
4
|
+
import SimpleDialog from "../../components/Dialog/SimpleDialog";
|
|
5
|
+
import IconButton from "../../components/Icon/IconButton";
|
|
6
|
+
import HtmlContentBlock from "../../components/Typography/HtmlContentBlock";
|
|
4
7
|
|
|
5
8
|
interface ActivityExecutionErrorReportModalProps {
|
|
6
9
|
// Title of the modal
|
|
@@ -8,7 +11,7 @@ interface ActivityExecutionErrorReportModalProps {
|
|
|
8
11
|
// Called when the close button is clicked
|
|
9
12
|
onDiscard: () => any;
|
|
10
13
|
// The error report
|
|
11
|
-
report: JSX.Element;
|
|
14
|
+
report: React.JSX.Element;
|
|
12
15
|
// Value of the download button
|
|
13
16
|
downloadButtonValue: string;
|
|
14
17
|
// Value of the close button
|
|
@@ -15,11 +15,11 @@ const progressBreakpointAnimation = 99;
|
|
|
15
15
|
|
|
16
16
|
export interface SilkActivityControlProps extends TestableComponent {
|
|
17
17
|
// The label of this activity
|
|
18
|
-
label: string | JSX.Element;
|
|
18
|
+
label: string | React.JSX.Element;
|
|
19
19
|
/**
|
|
20
20
|
* To add tags in addition to the widget status description
|
|
21
21
|
*/
|
|
22
|
-
tags?: JSX.Element;
|
|
22
|
+
tags?: React.JSX.Element;
|
|
23
23
|
// Initial state
|
|
24
24
|
initialStatus?: SilkActivityStatusProps;
|
|
25
25
|
// Register a function in order to receive callbacks
|
|
@@ -80,7 +80,7 @@ export interface SilkActivityControlLayoutProps {
|
|
|
80
80
|
// what type of progrss display should be uses, horizontal progress bar, circular spinner, or none of that
|
|
81
81
|
visualization?: "none" | "progressbar" | "spinner";
|
|
82
82
|
// wrapper around label
|
|
83
|
-
labelWrapper?: JSX.Element;
|
|
83
|
+
labelWrapper?: React.JSX.Element;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
const defaultLayout: SilkActivityControlLayoutProps = {
|
|
@@ -94,7 +94,7 @@ interface IErrorReportAction {
|
|
|
94
94
|
// The title of the error report modal
|
|
95
95
|
title?: string;
|
|
96
96
|
// The element that will be rendered in the modal, either as Markdown or object
|
|
97
|
-
renderReport: (report: string | SilkActivityExecutionReportProps) => JSX.Element;
|
|
97
|
+
renderReport: (report: string | SilkActivityExecutionReportProps) => React.JSX.Element;
|
|
98
98
|
// What version of the report should be handed to the renderReport function, if false SilkActivityExecutionReportProps, if true the Markdown string
|
|
99
99
|
renderMarkdown: boolean;
|
|
100
100
|
// The function to fetch the error report. It returns undefined if something went wrong.
|
|
@@ -177,28 +177,24 @@ export function useSilkActivityControl({
|
|
|
177
177
|
const [errorReport, setErrorReport] = useState<string | SilkActivityExecutionReportProps | undefined>(undefined);
|
|
178
178
|
|
|
179
179
|
// Register update function
|
|
180
|
-
useEffect(
|
|
181
|
-
() => {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
[]
|
|
201
|
-
);
|
|
180
|
+
useEffect(() => {
|
|
181
|
+
const updateActivityStatus = (status: SilkActivityStatusProps | undefined) => {
|
|
182
|
+
if (status?.concreteStatus !== "Waiting") {
|
|
183
|
+
setShowStartPrioritized(false);
|
|
184
|
+
} else if (executePrioritized) {
|
|
185
|
+
// Show start prioritized button only-if the activity is still in Waiting status after 2s
|
|
186
|
+
setTimeout(() => {
|
|
187
|
+
if (currentStatus.current?.concreteStatus === "Waiting") {
|
|
188
|
+
setShowStartPrioritized(true);
|
|
189
|
+
}
|
|
190
|
+
}, 2000);
|
|
191
|
+
}
|
|
192
|
+
currentStatus.current = status;
|
|
193
|
+
setActivityStatus(status);
|
|
194
|
+
};
|
|
195
|
+
registerForUpdates(updateActivityStatus);
|
|
196
|
+
return unregisterFromUpdates;
|
|
197
|
+
}, []);
|
|
202
198
|
|
|
203
199
|
// Create activity actions
|
|
204
200
|
const actions: ActivityControlWidgetProps["activityActions"] = [];
|
|
@@ -300,8 +296,8 @@ export function useSilkActivityControl({
|
|
|
300
296
|
(activityStatus.statusName === "Running"
|
|
301
297
|
? activityStatus?.startTime
|
|
302
298
|
: activityStatus.statusName === "Waiting"
|
|
303
|
-
|
|
304
|
-
|
|
299
|
+
? activityStatus.queueTime
|
|
300
|
+
: activityStatus?.startTime)!
|
|
305
301
|
}
|
|
306
302
|
translateUnits={translateUnits}
|
|
307
303
|
/>
|
|
@@ -325,8 +321,8 @@ export function useSilkActivityControl({
|
|
|
325
321
|
waitingProgress || (runningProgress && indeterminateProgress)
|
|
326
322
|
? undefined
|
|
327
323
|
: activityStatus && activityStatus.progress > 0
|
|
328
|
-
|
|
329
|
-
|
|
324
|
+
? activityStatus.progress / 100
|
|
325
|
+
: 0,
|
|
330
326
|
intent,
|
|
331
327
|
},
|
|
332
328
|
};
|
|
@@ -338,8 +334,8 @@ export function useSilkActivityControl({
|
|
|
338
334
|
waitingProgress || (runningProgress && indeterminateProgress)
|
|
339
335
|
? undefined
|
|
340
336
|
: activityStatus && activityStatus.progress > 0
|
|
341
|
-
|
|
342
|
-
|
|
337
|
+
? activityStatus.progress / 100
|
|
338
|
+
: 0,
|
|
343
339
|
intent,
|
|
344
340
|
},
|
|
345
341
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import Color from "color";
|
|
2
|
+
import Color, { ColorLike } from "color";
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
5
|
|
|
@@ -27,7 +27,7 @@ export interface ConfidenceValueProps extends Omit<React.HTMLAttributes<HTMLSpan
|
|
|
27
27
|
* Color of the confidence bar.
|
|
28
28
|
* By default it is colorized red for values below the `centerValue`, otherwise green.
|
|
29
29
|
*/
|
|
30
|
-
barColor?:
|
|
30
|
+
barColor?: ColorLike;
|
|
31
31
|
/**
|
|
32
32
|
* The value is displayed by a bar.
|
|
33
33
|
* This confidence bar can be start from the left or right side, or from the center of the element.
|
|
@@ -71,14 +71,15 @@ export function ConfidenceValue({
|
|
|
71
71
|
value === centerValue
|
|
72
72
|
? 0
|
|
73
73
|
: value < centerValue
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
? value / (minValue - centerValue)
|
|
75
|
+
: value / (maxValue - centerValue);
|
|
76
76
|
|
|
77
77
|
let color = Color("#000000");
|
|
78
78
|
if (barColor) {
|
|
79
79
|
try {
|
|
80
80
|
color = Color(barColor);
|
|
81
|
-
} catch
|
|
81
|
+
} catch {
|
|
82
|
+
// eslint-disable-next-line no-console
|
|
82
83
|
console.warn("Received invalid color for confidence bar: " + barColor);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Link from "../../components/Link/Link";
|
|
4
|
+
import Spacing from "../../components/Separation/Spacing";
|
|
5
|
+
import InlineText from "../../components/Typography/InlineText";
|
|
4
6
|
|
|
5
7
|
export interface ContentBlobTogglerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
8
|
/**
|
|
@@ -31,6 +33,10 @@ export interface ContentBlobTogglerProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
31
33
|
Callback if toggler is necessary. Default: true
|
|
32
34
|
*/
|
|
33
35
|
enableToggler?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Force always inline rendering.
|
|
38
|
+
*/
|
|
39
|
+
forceInline?: boolean;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/** Shows a preview with the option to expand to a full view (and back). */
|
|
@@ -42,27 +48,29 @@ export function ContentBlobToggler({
|
|
|
42
48
|
fullviewContent,
|
|
43
49
|
startExtended = false,
|
|
44
50
|
enableToggler = true,
|
|
51
|
+
forceInline = false,
|
|
45
52
|
...otherProps
|
|
46
53
|
}: ContentBlobTogglerProps) {
|
|
47
54
|
const [isExtended, setViewState] = useState(startExtended);
|
|
48
|
-
const handlerToggleView = (event:
|
|
55
|
+
const handlerToggleView = (event: React.MouseEvent<HTMLAnchorElement>) => {
|
|
49
56
|
event.preventDefault();
|
|
50
57
|
event.stopPropagation();
|
|
51
58
|
setViewState(!isExtended);
|
|
52
59
|
};
|
|
53
60
|
|
|
54
|
-
|
|
61
|
+
const tooglerDisplay = (
|
|
55
62
|
<div className={className} {...otherProps}>
|
|
56
63
|
{!isExtended ? (
|
|
57
64
|
<>
|
|
58
65
|
{previewContent}
|
|
59
66
|
{enableToggler && (
|
|
60
67
|
<>
|
|
61
|
-
{" "}
|
|
68
|
+
{" "}
|
|
69
|
+
…{" "}
|
|
62
70
|
<Link
|
|
63
71
|
href="#more"
|
|
64
72
|
data-test-id={"content-blob-toggler-more-link"}
|
|
65
|
-
onClick={(e:
|
|
73
|
+
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
66
74
|
handlerToggleView(e);
|
|
67
75
|
}}
|
|
68
76
|
>
|
|
@@ -76,11 +84,11 @@ export function ContentBlobToggler({
|
|
|
76
84
|
{fullviewContent}
|
|
77
85
|
{enableToggler && (
|
|
78
86
|
<div>
|
|
79
|
-
<Spacing size="small" />
|
|
87
|
+
{forceInline ? <> </> : <Spacing size="small" />}
|
|
80
88
|
<Link
|
|
81
89
|
data-test-id={"content-blob-toggler-less-link"}
|
|
82
90
|
href="#less"
|
|
83
|
-
onClick={(e:
|
|
91
|
+
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
84
92
|
handlerToggleView(e);
|
|
85
93
|
}}
|
|
86
94
|
>
|
|
@@ -92,4 +100,6 @@ export function ContentBlobToggler({
|
|
|
92
100
|
)}
|
|
93
101
|
</div>
|
|
94
102
|
);
|
|
103
|
+
|
|
104
|
+
return forceInline ? <InlineText>{tooglerDisplay}</InlineText> : tooglerDisplay;
|
|
95
105
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { utils } from "../../common";
|
|
4
|
+
import InlineText from "../../components/Typography/InlineText";
|
|
5
|
+
import { Markdown } from "../markdown/Markdown";
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
import { ContentBlobToggler, ContentBlobTogglerProps } from "./ContentBlobToggler";
|
|
8
|
+
|
|
9
|
+
export interface StringPreviewContentBlobTogglerProps extends Omit<
|
|
10
|
+
ContentBlobTogglerProps,
|
|
11
|
+
"previewContent" | "enableToggler"
|
|
12
|
+
> {
|
|
7
13
|
/**
|
|
8
14
|
* The preview content will be cut to this length if it is too long.
|
|
9
15
|
*/
|
|
@@ -16,7 +22,6 @@ export interface StringPreviewContentBlobTogglerProps
|
|
|
16
22
|
/**
|
|
17
23
|
* Use only parts of `content` in the preview.
|
|
18
24
|
* `firstMarkdownSection` uses the content until the first double line return.
|
|
19
|
-
* Currently overwritten by `firstNonEmptyLineOnly`.
|
|
20
25
|
*/
|
|
21
26
|
useOnly?: "firstNonEmptyLine" | "firstMarkdownSection";
|
|
22
27
|
/**
|
|
@@ -31,13 +36,7 @@ export interface StringPreviewContentBlobTogglerProps
|
|
|
31
36
|
* Allows to add non-string elements at the end of the content if the full description is shown, i.e. no toggler is necessary.
|
|
32
37
|
* This allows to add non-string elements to both the full-view content and the pure string content.
|
|
33
38
|
*/
|
|
34
|
-
noTogglerContentSuffix?: JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
* If only the first non-empty line should be shown in the preview.
|
|
37
|
-
* This will in addition also be shortened according to `previewMaxLength`.
|
|
38
|
-
* @deprecated (v26) use `useOnly="firstNonEmptyLine"` instead
|
|
39
|
-
*/
|
|
40
|
-
firstNonEmptyLineOnly?: boolean;
|
|
39
|
+
noTogglerContentSuffix?: React.JSX.Element;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
/** Version of the content toggler for text centric content. */
|
|
@@ -53,15 +52,10 @@ export function StringPreviewContentBlobToggler({
|
|
|
53
52
|
renderPreviewAsMarkdown = false,
|
|
54
53
|
allowedHtmlElementsInPreview,
|
|
55
54
|
noTogglerContentSuffix,
|
|
56
|
-
|
|
55
|
+
...otherContentBlobTogglerProps
|
|
57
56
|
}: StringPreviewContentBlobTogglerProps) {
|
|
58
|
-
// need to test `firstNonEmptyLineOnly` until property is removed
|
|
59
|
-
const useOnlyTest: StringPreviewContentBlobTogglerProps["useOnly"] = firstNonEmptyLineOnly
|
|
60
|
-
? "firstNonEmptyLine"
|
|
61
|
-
: useOnly;
|
|
62
|
-
|
|
63
57
|
let previewString = content;
|
|
64
|
-
switch (
|
|
58
|
+
switch (useOnly) {
|
|
65
59
|
case "firstNonEmptyLine":
|
|
66
60
|
previewString = useOnlyPart(content, regexFirstNonEmptyLine);
|
|
67
61
|
break;
|
|
@@ -105,6 +99,7 @@ export function StringPreviewContentBlobToggler({
|
|
|
105
99
|
fullviewContent={fullviewContent}
|
|
106
100
|
startExtended={startExtended}
|
|
107
101
|
enableToggler={enableToggler}
|
|
102
|
+
{...otherContentBlobTogglerProps}
|
|
108
103
|
/>
|
|
109
104
|
);
|
|
110
105
|
}
|
|
@@ -21,12 +21,12 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
21
21
|
const { queryByText } = render(
|
|
22
22
|
<StringPreviewContentBlobToggler
|
|
23
23
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
24
|
-
|
|
24
|
+
/>,
|
|
25
25
|
);
|
|
26
26
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
27
27
|
textMustNotExist(
|
|
28
28
|
queryByText,
|
|
29
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
29
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
30
30
|
);
|
|
31
31
|
textMustExist(queryByText, "show more");
|
|
32
32
|
});
|
|
@@ -35,11 +35,11 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
35
35
|
<StringPreviewContentBlobToggler
|
|
36
36
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
37
37
|
startExtended
|
|
38
|
-
|
|
38
|
+
/>,
|
|
39
39
|
);
|
|
40
40
|
textMustExist(
|
|
41
41
|
queryByText,
|
|
42
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
42
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
43
43
|
);
|
|
44
44
|
textMustExist(queryByText, "show less");
|
|
45
45
|
});
|
|
@@ -48,7 +48,7 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
48
48
|
<StringPreviewContentBlobToggler
|
|
49
49
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
50
50
|
useOnly={"firstNonEmptyLine"}
|
|
51
|
-
|
|
51
|
+
/>,
|
|
52
52
|
);
|
|
53
53
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
54
54
|
textMustNotExist(queryByText, "In order to create");
|
|
@@ -58,7 +58,7 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
58
58
|
<StringPreviewContentBlobToggler
|
|
59
59
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
60
60
|
useOnly={"firstMarkdownSection"}
|
|
61
|
-
|
|
61
|
+
/>,
|
|
62
62
|
);
|
|
63
63
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
64
64
|
textMustExist(queryByText, "In order to create");
|
|
@@ -69,12 +69,12 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
69
69
|
<StringPreviewContentBlobToggler
|
|
70
70
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
71
71
|
previewMaxLength={144}
|
|
72
|
-
|
|
72
|
+
/>,
|
|
73
73
|
);
|
|
74
74
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
75
75
|
textMustExist(
|
|
76
76
|
queryByText,
|
|
77
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
77
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
78
78
|
);
|
|
79
79
|
textMustNotExist(queryByText, "https://github.com/"); // test if Markdown was rendered
|
|
80
80
|
textMustNotExist(queryByText, "show more");
|
|
@@ -85,12 +85,12 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
85
85
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
86
86
|
previewMaxLength={144}
|
|
87
87
|
renderPreviewAsMarkdown={false}
|
|
88
|
-
|
|
88
|
+
/>,
|
|
89
89
|
);
|
|
90
90
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
91
91
|
textMustExist(
|
|
92
92
|
queryByText,
|
|
93
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
93
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
94
94
|
);
|
|
95
95
|
textMustExist(queryByText, "https://github.com/"); // test if Markdown was rendered
|
|
96
96
|
textMustExist(queryByText, "show more");
|
|
@@ -56,7 +56,7 @@ const elapsedTimeSegmented = (elapsedTimeInMs: number): number[] => {
|
|
|
56
56
|
const simplifiedElapsedTime = (
|
|
57
57
|
timeSegments: number[],
|
|
58
58
|
translateUnits: (unit: ElapsedDateTimeDisplayUnits) => string,
|
|
59
|
-
includeSeconds = false
|
|
59
|
+
includeSeconds = false,
|
|
60
60
|
) => {
|
|
61
61
|
const units: ElapsedDateTimeDisplayUnits[] = ["day", "hour", "minute"];
|
|
62
62
|
|
|
@@ -75,7 +75,7 @@ const simplifiedElapsedTime = (
|
|
|
75
75
|
return `< 1 ${translateUnits("minute")}`;
|
|
76
76
|
} else {
|
|
77
77
|
return `${timeSegments[idx]} ${translateUnits(
|
|
78
|
-
(units[idx] + (timeSegments[idx] > 1 ? "s" : "")) as ElapsedDateTimeDisplayUnits
|
|
78
|
+
(units[idx] + (timeSegments[idx] > 1 ? "s" : "")) as ElapsedDateTimeDisplayUnits,
|
|
79
79
|
)}`;
|
|
80
80
|
}
|
|
81
81
|
};
|
|
@@ -9,8 +9,8 @@ describe("Elapsed time component", () => {
|
|
|
9
9
|
expect(
|
|
10
10
|
elapsedDateTimeDisplayUtils.simplifiedElapsedTime(
|
|
11
11
|
elapsedDateTimeDisplayUtils.elapsedTimeSegmented(timeInSeconds * 1000),
|
|
12
|
-
translate
|
|
13
|
-
)
|
|
12
|
+
translate,
|
|
13
|
+
),
|
|
14
14
|
).toBe(expectedString);
|
|
15
15
|
it("should segment the time", () => {
|
|
16
16
|
checkMS(2123, "0:0:0:2");
|
|
@@ -8,8 +8,9 @@ import { remarkDefinitionList } from "remark-definition-list";
|
|
|
8
8
|
import remarkGfm from "remark-gfm";
|
|
9
9
|
import { PluggableList } from "unified";
|
|
10
10
|
|
|
11
|
+
import { TestableComponent } from "../../components";
|
|
12
|
+
import { HtmlContentBlock, HtmlContentBlockProps } from "../../components/Typography";
|
|
11
13
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
12
|
-
import { HtmlContentBlock, HtmlContentBlockProps, TestableComponent } from "../../index";
|
|
13
14
|
|
|
14
15
|
export interface MarkdownProps extends TestableComponent {
|
|
15
16
|
children: string;
|
|
@@ -3,14 +3,14 @@ import utils from "./markdown.utils";
|
|
|
3
3
|
describe("Markdown utils", () => {
|
|
4
4
|
it("should extract named anchors from the Markdown", () => {
|
|
5
5
|
const namedAnchors = utils.extractNamedAnchors(
|
|
6
|
-
'# Header\n\nsome text\n\n## <a id="anchor1" ></a> point 1\n\n## <a id="anchor2"></a> point 2'
|
|
6
|
+
'# Header\n\nsome text\n\n## <a id="anchor1" ></a> point 1\n\n## <a id="anchor2"></a> point 2',
|
|
7
7
|
);
|
|
8
8
|
expect(namedAnchors).toStrictEqual(["anchor1", "anchor2"]);
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
it("should not extract named anchors from the Markdown that are not following the expected format", () => {
|
|
12
12
|
const namedAnchors = utils.extractNamedAnchors(
|
|
13
|
-
'# <a id="anchor" href="http://">link text</a> \n\n## <a name="test" id="anchor2"></a> point 2'
|
|
13
|
+
'# <a id="anchor" href="http://">link text</a> \n\n## <a name="test" id="anchor2"></a> point 2',
|
|
14
14
|
);
|
|
15
15
|
expect(namedAnchors).toStrictEqual([]);
|
|
16
16
|
});
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Position,
|
|
8
8
|
} from "react-flow-renderer";
|
|
9
9
|
import { Meta, StoryFn } from "@storybook/react";
|
|
10
|
-
import { fn } from "
|
|
10
|
+
import { fn } from "storybook/test";
|
|
11
11
|
import {
|
|
12
12
|
Background as BackgroundV12,
|
|
13
13
|
BackgroundVariant as BackgroundVariantV12,
|
|
@@ -444,7 +444,7 @@ const ReactFlowExampleV9: FC<ReactFlowExtendedProps> = (args) => {
|
|
|
444
444
|
}}
|
|
445
445
|
>
|
|
446
446
|
EdgeTools demo, add elements here.
|
|
447
|
-
</EdgeTools
|
|
447
|
+
</EdgeTools>,
|
|
448
448
|
);
|
|
449
449
|
}
|
|
450
450
|
}, []);
|
|
@@ -455,7 +455,7 @@ const ReactFlowExampleV9: FC<ReactFlowExtendedProps> = (args) => {
|
|
|
455
455
|
setReactflowInstance(rfi);
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
|
-
[reactflowInstance]
|
|
458
|
+
[reactflowInstance],
|
|
459
459
|
);
|
|
460
460
|
|
|
461
461
|
const { style, ...otherProps } = args;
|
|
@@ -93,7 +93,7 @@ const ReactFlowExtendedPlain = <T extends ReactFlowExtendedProps>(
|
|
|
93
93
|
zoomActivationKeyCode,
|
|
94
94
|
...originalProps
|
|
95
95
|
}: T,
|
|
96
|
-
outerRef: Ref<HTMLDivElement
|
|
96
|
+
outerRef: Ref<HTMLDivElement>,
|
|
97
97
|
) => {
|
|
98
98
|
const innerRef = React.useRef<HTMLDivElement>(null);
|
|
99
99
|
React.useImperativeHandle(outerRef, () => innerRef.current!, []);
|
|
@@ -205,13 +205,8 @@ const ReactFlowExtendedPlain = <T extends ReactFlowExtendedProps>(
|
|
|
205
205
|
|
|
206
206
|
/** Hack to make the Type Parameter work with the forward ref. */
|
|
207
207
|
export const ReactFlowExtended = React.forwardRef(ReactFlowExtendedPlain) as <T extends ReactFlowExtendedProps>(
|
|
208
|
-
p: T & { ref?: Ref<HTMLDivElement> }
|
|
208
|
+
p: T & { ref?: Ref<HTMLDivElement> },
|
|
209
209
|
) => ReactElement;
|
|
210
210
|
|
|
211
|
-
/**
|
|
212
|
-
* @deprecated (v26) use `ReactFlowExtended`
|
|
213
|
-
*/
|
|
214
|
-
export const ReactFlow = ReactFlowExtended;
|
|
215
|
-
|
|
216
211
|
/** Classes that when set for an element, prevent that they trigger react-flow dragging, wheel and panning actions. */
|
|
217
212
|
export const preventReactFlowActionsClasses = "nodrag nopan nowheel";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
default as ReactFlowV9,
|
|
4
|
-
ReactFlowProps as ReactFlowV9Props
|
|
5
|
-
} from "react-flow-renderer";
|
|
2
|
+
import { default as ReactFlowV9, ReactFlowProps as ReactFlowV9Props } from "react-flow-renderer";
|
|
6
3
|
|
|
7
4
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
8
5
|
|
|
@@ -25,5 +22,5 @@ export const ReactFlowV9Container = React.forwardRef<HTMLDivElement, ReactFlowV9
|
|
|
25
22
|
{children}
|
|
26
23
|
</ReactFlowV9>
|
|
27
24
|
);
|
|
28
|
-
}
|
|
25
|
+
},
|
|
29
26
|
);
|
|
@@ -40,7 +40,10 @@ export interface StickyNoteModalProps {
|
|
|
40
40
|
/**
|
|
41
41
|
* Forward other properties to the `SimpleModal` element that is used for this dialog.
|
|
42
42
|
*/
|
|
43
|
-
simpleDialogProps?: Omit<
|
|
43
|
+
simpleDialogProps?: Omit<
|
|
44
|
+
SimpleDialogProps,
|
|
45
|
+
"size" | "title" | "hasBorder" | "isOpen" | "onClose" | "actions" | "children"
|
|
46
|
+
>;
|
|
44
47
|
/**
|
|
45
48
|
* Code editor props
|
|
46
49
|
*/
|
|
@@ -52,7 +55,7 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
|
52
55
|
const refNote = React.useRef<string>(metaData?.note ?? "");
|
|
53
56
|
const [color, setSelectedColor] = React.useState<string>(metaData?.color ?? "");
|
|
54
57
|
const noteColors: [string, string][] = Object.entries(getColorConfiguration("stickynotes")).map(
|
|
55
|
-
([key, value]) => [key, value as string]
|
|
58
|
+
([key, value]) => [key, value as string],
|
|
56
59
|
);
|
|
57
60
|
const { disableHotKeys } = React.useContext(ReactFlowHotkeyContext);
|
|
58
61
|
|
|
@@ -149,5 +152,5 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
|
149
152
|
</FieldItem>
|
|
150
153
|
</SimpleDialog>
|
|
151
154
|
);
|
|
152
|
-
}
|
|
155
|
+
},
|
|
153
156
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { NodeProps } from "react-flow-renderer";
|
|
2
|
+
|
|
1
3
|
import { EdgeBezier } from "./../../../extensions/react-flow/edges/EdgeBezier";
|
|
2
4
|
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
|
|
3
5
|
import { GRAPH_NODE_TYPES } from "./typing";
|
|
4
|
-
//import {ComponentType} from "react";
|
|
5
|
-
//import {NodeProps} from "react-flow-renderer-lts";
|
|
6
6
|
|
|
7
7
|
const edgeTypes = {
|
|
8
8
|
default: EdgeBezier,
|
|
@@ -16,7 +16,7 @@ const edgeTypes = {
|
|
|
16
16
|
danger: EdgeBezier,
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const nodeTypes: Record<GRAPH_NODE_TYPES, React.
|
|
19
|
+
const nodeTypes: Record<GRAPH_NODE_TYPES, React.ComponentType<NodeProps>> = {
|
|
20
20
|
default: NodeDefault,
|
|
21
21
|
graph: NodeDefault,
|
|
22
22
|
class: NodeDefault,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { NodeProps } from "react-flow-renderer";
|
|
2
|
+
|
|
1
3
|
import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
|
|
2
4
|
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
|
|
3
5
|
import { StickyNoteNode } from "./../nodes/StickyNoteNode";
|
|
4
6
|
import { LINKING_NODE_TYPES } from "./typing";
|
|
5
|
-
//import {ComponentType} from "react";
|
|
6
|
-
//import {NodeProps} from "react-flow-renderer-lts";
|
|
7
7
|
|
|
8
8
|
const edgeTypes = {
|
|
9
9
|
default: EdgeStep,
|
|
@@ -14,7 +14,7 @@ const edgeTypes = {
|
|
|
14
14
|
danger: EdgeStep,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const nodeTypes: Record<LINKING_NODE_TYPES, React.
|
|
17
|
+
const nodeTypes: Record<LINKING_NODE_TYPES, React.ComponentType<NodeProps>> = {
|
|
18
18
|
default: NodeDefault,
|
|
19
19
|
sourcepath: NodeDefault,
|
|
20
20
|
targetpath: NodeDefault,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { NodeProps } from "react-flow-renderer";
|
|
2
|
+
|
|
1
3
|
import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
|
|
2
4
|
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
|
|
3
5
|
import { StickyNoteNode } from "./../nodes/StickyNoteNode";
|
|
4
6
|
import { WORKFLOW_NODE_TYPES } from "./typing";
|
|
5
|
-
//import {ComponentType} from "react";
|
|
6
|
-
//import {NodeProps} from "react-flow-renderer-lts";
|
|
7
7
|
|
|
8
8
|
const edgeTypes = {
|
|
9
9
|
default: EdgeStep,
|
|
@@ -12,7 +12,7 @@ const edgeTypes = {
|
|
|
12
12
|
danger: EdgeStep,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
const nodeTypes: Record<WORKFLOW_NODE_TYPES, React.
|
|
15
|
+
const nodeTypes: Record<WORKFLOW_NODE_TYPES, React.ComponentType<NodeProps>> = {
|
|
16
16
|
default: NodeDefault,
|
|
17
17
|
dataset: NodeDefault,
|
|
18
18
|
linking: NodeDefault,
|