@eccenca/gui-elements 25.1.0 → 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 +1003 -952
- 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 +18 -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 -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 +1 -0
- 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 +1 -0
- 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 +60 -63
- 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/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/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/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/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 +1 -0
- 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 +54 -4
- 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/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 +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 +37 -18
- 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/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 +10 -0
- package/src/includes/carbon-components/_variables.scss +2 -1
- package/src/index.scss +2 -2
- package/src/test/setupTests.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eccenca/gui-elements",
|
|
3
3
|
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.2.0-featuredarkthemesupportcmem7503.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/eccenca/gui-elements",
|
|
7
7
|
"bugs": "https://github.com/eccenca/gui-elements/issues",
|
|
@@ -68,37 +68,37 @@
|
|
|
68
68
|
"autolint:all": "yarn autolint:scripts && yarn autolint:styles && yarn autolint:prettier"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@blueprintjs/colors": "^5.1.
|
|
72
|
-
"@blueprintjs/core": "
|
|
73
|
-
"@blueprintjs/select": "
|
|
74
|
-
"@carbon/icons": "^11.
|
|
75
|
-
"@carbon/react": "^1.
|
|
71
|
+
"@blueprintjs/colors": "^5.1.16",
|
|
72
|
+
"@blueprintjs/core": "6.8.1",
|
|
73
|
+
"@blueprintjs/select": "6.1.1",
|
|
74
|
+
"@carbon/icons": "^11.80.0",
|
|
75
|
+
"@carbon/react": "^1.107.1",
|
|
76
76
|
"@codemirror/lang-html": "^6.4.11",
|
|
77
|
-
"@codemirror/lang-javascript": "^6.2.
|
|
77
|
+
"@codemirror/lang-javascript": "^6.2.5",
|
|
78
78
|
"@codemirror/lang-json": "^6.0.2",
|
|
79
79
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
80
80
|
"@codemirror/lang-sql": "^6.10.0",
|
|
81
81
|
"@codemirror/lang-xml": "^6.1.0",
|
|
82
|
-
"@codemirror/lang-yaml": "^6.1.
|
|
82
|
+
"@codemirror/lang-yaml": "^6.1.3",
|
|
83
83
|
"@codemirror/legacy-modes": "^6.5.2",
|
|
84
84
|
"@mavrin/remark-typograf": "^2.2.0",
|
|
85
85
|
"@xyflow/react": "^12.9.3",
|
|
86
86
|
"classnames": "^2.5.1",
|
|
87
87
|
"codemirror": "^6.0.2",
|
|
88
|
-
"color": "^
|
|
88
|
+
"color": "^5.0.3",
|
|
89
89
|
"compute-scroll-into-view": "^3.1.1",
|
|
90
90
|
"he": "^1.2.0",
|
|
91
91
|
"jshint": "^2.13.6",
|
|
92
92
|
"lodash": "^4.18.1",
|
|
93
93
|
"n3": "^1.26.0",
|
|
94
94
|
"re-resizable": "^6.10.3",
|
|
95
|
-
"react": "^
|
|
96
|
-
"react-dom": "^
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.3.1",
|
|
97
97
|
"react-flow-renderer": "9.7.4",
|
|
98
|
-
"react-inlinesvg": "^
|
|
99
|
-
"react-is": "^
|
|
98
|
+
"react-inlinesvg": "^4.4.1",
|
|
99
|
+
"react-is": "^18.3.1",
|
|
100
100
|
"react-markdown": "^10.1.0",
|
|
101
|
-
"react-syntax-highlighter": "^
|
|
101
|
+
"react-syntax-highlighter": "^16.1.1",
|
|
102
102
|
"rehype-external-links": "^3.0.0",
|
|
103
103
|
"rehype-raw": "^7.0.0",
|
|
104
104
|
"remark-definition-list": "^2.0.0",
|
|
@@ -106,88 +106,85 @@
|
|
|
106
106
|
"remark-parse": "^11.0.0",
|
|
107
107
|
"reset-css": "^5.0.2",
|
|
108
108
|
"unified": "^11.0.5",
|
|
109
|
-
"wicg-inert": "^3.1.3"
|
|
110
|
-
"xml-formatter": "^3.6.7"
|
|
109
|
+
"wicg-inert": "^3.1.3"
|
|
111
110
|
},
|
|
112
111
|
"devDependencies": {
|
|
113
|
-
"@babel/core": "^7.
|
|
114
|
-
"@babel/plugin-transform-class-properties": "^7.
|
|
115
|
-
"@babel/plugin-transform-private-methods": "^7.
|
|
116
|
-
"@babel/plugin-transform-private-property-in-object": "^7.
|
|
117
|
-
"@babel/preset-env": "^7.
|
|
112
|
+
"@babel/core": "^7.29.0",
|
|
113
|
+
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
114
|
+
"@babel/plugin-transform-private-methods": "^7.28.6",
|
|
115
|
+
"@babel/plugin-transform-private-property-in-object": "^7.28.6",
|
|
116
|
+
"@babel/preset-env": "^7.29.5",
|
|
118
117
|
"@babel/preset-flow": "^7.27.1",
|
|
119
118
|
"@babel/preset-react": "^7.28.5",
|
|
120
119
|
"@babel/preset-typescript": "^7.28.5",
|
|
121
|
-
"@eslint/compat": "^1.
|
|
122
|
-
"@eslint/eslintrc": "^3.3.
|
|
123
|
-
"@eslint/js": "^
|
|
124
|
-
"@storybook/addon-
|
|
125
|
-
"@storybook/addon-
|
|
126
|
-
"@storybook/addon-
|
|
127
|
-
"@storybook/addon-
|
|
128
|
-
"@storybook/
|
|
129
|
-
"@storybook/cli": "^8.6.14",
|
|
120
|
+
"@eslint/compat": "^2.1.0",
|
|
121
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
122
|
+
"@eslint/js": "^10.0.1",
|
|
123
|
+
"@storybook/addon-a11y": "^10.4.0",
|
|
124
|
+
"@storybook/addon-docs": "^10.4.0",
|
|
125
|
+
"@storybook/addon-links": "^10.4.0",
|
|
126
|
+
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
127
|
+
"@storybook/cli": "^10.4.0",
|
|
130
128
|
"@storybook/preset-scss": "^1.0.3",
|
|
131
|
-
"@storybook/react": "^
|
|
132
|
-
"@storybook/react-webpack5": "^
|
|
133
|
-
"@
|
|
129
|
+
"@storybook/react": "^10.4.0",
|
|
130
|
+
"@storybook/react-webpack5": "^10.4.0",
|
|
131
|
+
"@testing-library/dom": "^10.4.1",
|
|
134
132
|
"@testing-library/jest-dom": "^6.9.1",
|
|
135
|
-
"@testing-library/react": "^
|
|
136
|
-
"@types/color": "^3.0.6",
|
|
133
|
+
"@testing-library/react": "^16.3.2",
|
|
137
134
|
"@types/he": "^1.2.3",
|
|
138
135
|
"@types/jest": "^30.0.0",
|
|
139
136
|
"@types/jshint": "^2.12.4",
|
|
140
|
-
"@types/lodash": "^4.17.
|
|
137
|
+
"@types/lodash": "^4.17.24",
|
|
141
138
|
"@types/n3": "^1.26.1",
|
|
139
|
+
"@types/react-dom": "^18.3.7",
|
|
142
140
|
"@types/react-is": "^19.2.0",
|
|
143
141
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
144
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
145
|
-
"@typescript-eslint/parser": "^8.
|
|
146
|
-
"babel-jest": "^30.
|
|
147
|
-
"chromatic": "^
|
|
148
|
-
"eslint": "^
|
|
142
|
+
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
143
|
+
"@typescript-eslint/parser": "^8.59.3",
|
|
144
|
+
"babel-jest": "^30.4.1",
|
|
145
|
+
"chromatic": "^16.10.1",
|
|
146
|
+
"eslint": "^10.3.0",
|
|
149
147
|
"eslint-plugin-react": "^7.37.5",
|
|
150
|
-
"eslint-plugin-react-hooks": "^7.
|
|
151
|
-
"eslint-plugin-simple-import-sort": "^
|
|
152
|
-
"husky": "4",
|
|
148
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
149
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
150
|
+
"husky": "^4.3.8",
|
|
153
151
|
"identity-obj-proxy": "^3.0.0",
|
|
154
|
-
"jest": "^30.2
|
|
155
|
-
"jest-environment-jsdom": "^30.
|
|
152
|
+
"jest": "^30.4.2",
|
|
153
|
+
"jest-environment-jsdom": "^30.4.1",
|
|
154
|
+
"jest-fixed-jsdom": "^0.0.11",
|
|
156
155
|
"jest-pnp-resolver": "^1.2.3",
|
|
157
156
|
"lint-staged": "^15.5.2",
|
|
158
157
|
"node-sass-package-importer": "^5.3.3",
|
|
159
158
|
"path": "^0.12.7",
|
|
160
|
-
"prettier": "^
|
|
159
|
+
"prettier": "^3.8.3",
|
|
161
160
|
"react-app-polyfill": "^3.0.0",
|
|
162
161
|
"react-lorem-ipsum": "^1.4.9",
|
|
163
|
-
"regenerator-runtime": "^0.
|
|
162
|
+
"regenerator-runtime": "^0.14.1",
|
|
164
163
|
"rimraf": "^6.1.3",
|
|
165
|
-
"sass": "1.
|
|
166
|
-
"sass-loader": "
|
|
167
|
-
"storybook": "^
|
|
168
|
-
"stylelint": "^17.
|
|
164
|
+
"sass": "^1.99.0",
|
|
165
|
+
"sass-loader": "^16.0.8",
|
|
166
|
+
"storybook": "^10.4.0",
|
|
167
|
+
"stylelint": "^17.11.0",
|
|
169
168
|
"stylelint-config-recess-order": "^7.7.0",
|
|
170
169
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
171
170
|
"stylelint-order": "^8.1.1",
|
|
172
171
|
"ts-node": "^10.9.2",
|
|
173
172
|
"tsc-esm-fix": "^3.1.2",
|
|
174
|
-
"typescript": "5.
|
|
173
|
+
"typescript": "^5.9.3",
|
|
175
174
|
"url-loader": "^4.1.1",
|
|
176
|
-
"yargs": "^
|
|
175
|
+
"yargs": "^18.0.0"
|
|
177
176
|
},
|
|
178
177
|
"peerDependencies": {
|
|
179
|
-
"@blueprintjs/core": ">=
|
|
180
|
-
"react": ">=
|
|
178
|
+
"@blueprintjs/core": ">=6",
|
|
179
|
+
"react": ">=18"
|
|
181
180
|
},
|
|
182
181
|
"resolutions": {
|
|
183
|
-
"**/@
|
|
184
|
-
"node-sass-package-importer/**/postcss": "^8.5.
|
|
185
|
-
"string-width": "^4.2.3",
|
|
186
|
-
"wrap-ansi": "^7.0.0",
|
|
182
|
+
"**/@blueprintjs/core": "6.8.1",
|
|
183
|
+
"node-sass-package-importer/**/postcss": "^8.5.10",
|
|
187
184
|
"hast-util-from-parse5": "8.0.0",
|
|
188
|
-
"**/
|
|
185
|
+
"**/lodash": "^4.18.1",
|
|
189
186
|
"**/minimatch": "^3.1.4",
|
|
190
|
-
"**/
|
|
187
|
+
"**/serialize-javascript": "^7.0.5"
|
|
191
188
|
},
|
|
192
189
|
"husky": {
|
|
193
190
|
"hooks": {
|
|
@@ -228,7 +225,7 @@
|
|
|
228
225
|
"testMatch": [
|
|
229
226
|
"<rootDir>/src/**/*(*.)@(spec|test).{js,jsx,ts,tsx}"
|
|
230
227
|
],
|
|
231
|
-
"testEnvironment": "jest-
|
|
228
|
+
"testEnvironment": "jest-fixed-jsdom",
|
|
232
229
|
"transform": {
|
|
233
230
|
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
|
|
234
231
|
},
|
package/scripts/compile-sass.ts
CHANGED
|
@@ -3,12 +3,14 @@ import * as sass from "sass";
|
|
|
3
3
|
import yargs from "yargs";
|
|
4
4
|
|
|
5
5
|
import sassRenderSyncConfig from "./sassConfig";
|
|
6
|
+
import { silenceDeprecations } from "./sassDeprecationConfig"
|
|
6
7
|
|
|
7
8
|
const args = yargs(process.argv.slice(2)).argv as any;
|
|
8
9
|
|
|
9
10
|
const styles = sass.renderSync({
|
|
10
11
|
importer: tildeImporter(),
|
|
11
12
|
...sassRenderSyncConfig,
|
|
13
|
+
silenceDeprecations: silenceDeprecations as sass.DeprecationOrId[],
|
|
12
14
|
file: "src/index.scss",
|
|
13
15
|
includePaths: ["node_modules"], // Carbon does not use tilde import syntax
|
|
14
16
|
});
|
package/scripts/sassConfig.js
CHANGED
|
@@ -4,14 +4,9 @@ import { OverlaysProvider } from "@blueprintjs/core";
|
|
|
4
4
|
import { Meta, StoryFn } from "@storybook/react";
|
|
5
5
|
|
|
6
6
|
import { helpersArgTypes } from "../../../.storybook/helpers";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
IconButton,
|
|
11
|
-
SimpleDialog,
|
|
12
|
-
Tag,
|
|
13
|
-
TagList,
|
|
14
|
-
} from "../../../index";
|
|
7
|
+
import { IconButton, SimpleDialog, Tag, TagList } from "../../components";
|
|
8
|
+
|
|
9
|
+
import { ActivityControlWidget, ActivityControlWidgetAction } from "./ActivityControlWidget";
|
|
15
10
|
|
|
16
11
|
export default {
|
|
17
12
|
title: "Cmem/ActivityControlWidget",
|
|
@@ -102,7 +97,7 @@ export const WidgetWithAdditionalActions: StoryFn<typeof ActivityControlWidget>
|
|
|
102
97
|
<IconButton name="application-explore" onClick={() => setIsOpen(true)} />,
|
|
103
98
|
],
|
|
104
99
|
}),
|
|
105
|
-
[]
|
|
100
|
+
[],
|
|
106
101
|
);
|
|
107
102
|
|
|
108
103
|
return (
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import {ValidIconName} from "../../components/Icon/canonicalIconNames";
|
|
4
|
-
import {IconProps} from "../../components/Icon/Icon";
|
|
5
|
-
import {TestIconProps} from "../../components/Icon/TestIcon";
|
|
6
|
-
import {TestableComponent} from "../../components/interfaces";
|
|
7
|
-
import {ProgressBarProps} from "../../components/ProgressBar/ProgressBar";
|
|
8
|
-
import {SpinnerProps} from "../../components/Spinner/Spinner";
|
|
9
|
-
import {CLASSPREFIX as eccgui} from "../../configuration/constants";
|
|
10
3
|
import {
|
|
11
4
|
Card,
|
|
12
5
|
ContextMenu,
|
|
@@ -24,22 +17,29 @@ import {
|
|
|
24
17
|
ProgressBar,
|
|
25
18
|
Spinner,
|
|
26
19
|
Tooltip,
|
|
27
|
-
} from "../../
|
|
20
|
+
} from "../../components";
|
|
21
|
+
import { ValidIconName } from "../../components/Icon/canonicalIconNames";
|
|
22
|
+
import { IconProps } from "../../components/Icon/Icon";
|
|
23
|
+
import { TestIconProps } from "../../components/Icon/TestIcon";
|
|
24
|
+
import { TestableComponent } from "../../components/interfaces";
|
|
25
|
+
import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar";
|
|
26
|
+
import { SpinnerProps } from "../../components/Spinner/Spinner";
|
|
27
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
28
28
|
|
|
29
29
|
export interface ActivityControlWidgetProps extends TestableComponent {
|
|
30
30
|
/**
|
|
31
31
|
* The label to be shown
|
|
32
32
|
*/
|
|
33
|
-
label?: string | JSX.Element;
|
|
33
|
+
label?: string | React.JSX.Element;
|
|
34
34
|
/**
|
|
35
35
|
* Element that wraps around the label.
|
|
36
36
|
* Default: `<OverflowText inline={true} />`
|
|
37
37
|
*/
|
|
38
|
-
labelWrapper?: JSX.Element;
|
|
38
|
+
labelWrapper?: React.JSX.Element;
|
|
39
39
|
/**
|
|
40
40
|
* To add tags in addition to the widget status description
|
|
41
41
|
*/
|
|
42
|
-
tags?: JSX.Element;
|
|
42
|
+
tags?: React.JSX.Element;
|
|
43
43
|
/**
|
|
44
44
|
* The progress bar parameters if it should be show by a progres bar
|
|
45
45
|
*/
|
|
@@ -83,7 +83,7 @@ export interface ActivityControlWidgetProps extends TestableComponent {
|
|
|
83
83
|
/**
|
|
84
84
|
* execution timer messages for waiting and running times.
|
|
85
85
|
*/
|
|
86
|
-
timerExecutionMsg?: JSX.Element | null;
|
|
86
|
+
timerExecutionMsg?: React.JSX.Element | null;
|
|
87
87
|
/**
|
|
88
88
|
* additional actions that can serve as a complex component, positioned between the default actions and the context menu
|
|
89
89
|
*/
|
|
@@ -109,15 +109,15 @@ export interface ActivityControlWidgetAction extends TestableComponent {
|
|
|
109
109
|
// Warning state
|
|
110
110
|
hasStateWarning?: boolean;
|
|
111
111
|
// Active state
|
|
112
|
-
active?: boolean
|
|
112
|
+
active?: boolean;
|
|
113
113
|
/** A notification that is shown in an overlay pointing at the activity action button. */
|
|
114
114
|
notification?: {
|
|
115
|
-
message: string
|
|
116
|
-
onClose: () => void
|
|
117
|
-
intent?: NotificationProps["intent"]
|
|
115
|
+
message: string;
|
|
116
|
+
onClose: () => void;
|
|
117
|
+
intent?: NotificationProps["intent"];
|
|
118
118
|
// Timeout in ms before notification is closed. Default: none
|
|
119
|
-
timeout?: number
|
|
120
|
-
}
|
|
119
|
+
timeout?: number;
|
|
120
|
+
};
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
interface IActivityMenuAction extends ActivityControlWidgetAction {
|
|
@@ -159,7 +159,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
159
159
|
keepColors
|
|
160
160
|
>
|
|
161
161
|
{progressSpinnerFinishedIcon ? (
|
|
162
|
-
React.cloneElement(progressSpinnerFinishedIcon as JSX.Element, { small, large: !small })
|
|
162
|
+
React.cloneElement(progressSpinnerFinishedIcon as React.JSX.Element, { small, large: !small })
|
|
163
163
|
) : (
|
|
164
164
|
<Spinner
|
|
165
165
|
position="inline"
|
|
@@ -222,11 +222,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
222
222
|
data-test-id={dataTestIdLegacy ? `${dataTestIdLegacy}-actions` : undefined}
|
|
223
223
|
>
|
|
224
224
|
{activityActions &&
|
|
225
|
-
activityActions.map((action, idx) => <ActivityActionButton
|
|
226
|
-
key={idx}
|
|
227
|
-
action={action}
|
|
228
|
-
/>
|
|
229
|
-
)}
|
|
225
|
+
activityActions.map((action, idx) => <ActivityActionButton key={idx} action={action} />)}
|
|
230
226
|
{additionalActions}
|
|
231
227
|
{activityContextMenu && activityContextMenu.menuItems.length > 0 && (
|
|
232
228
|
<ContextMenu
|
|
@@ -261,10 +257,10 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
261
257
|
}
|
|
262
258
|
|
|
263
259
|
interface ActivityActionButtonProps {
|
|
264
|
-
action: ActivityControlWidgetAction
|
|
260
|
+
action: ActivityControlWidgetAction;
|
|
265
261
|
}
|
|
266
262
|
|
|
267
|
-
const ActivityActionButton = ({action}: ActivityActionButtonProps) => {
|
|
263
|
+
const ActivityActionButton = ({ action }: ActivityActionButtonProps) => {
|
|
268
264
|
const actionButtonRef = React.useRef(null);
|
|
269
265
|
const ActionButton = () => (
|
|
270
266
|
<IconButton
|
|
@@ -277,16 +273,16 @@ const ActivityActionButton = ({action}: ActivityActionButtonProps) => {
|
|
|
277
273
|
intent={action.hasStateWarning ? "warning" : undefined}
|
|
278
274
|
tooltipProps={{
|
|
279
275
|
hoverOpenDelay: 200,
|
|
280
|
-
placement: "bottom"
|
|
276
|
+
placement: "bottom",
|
|
281
277
|
}}
|
|
282
278
|
active={action.active}
|
|
283
279
|
/>
|
|
284
|
-
)
|
|
285
|
-
return action.notification ?
|
|
280
|
+
);
|
|
281
|
+
return action.notification ? (
|
|
286
282
|
<>
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
283
|
+
<span ref={actionButtonRef}>
|
|
284
|
+
<ActionButton />
|
|
285
|
+
</span>
|
|
290
286
|
{actionButtonRef.current && (
|
|
291
287
|
<DecoupledOverlay targetSelectorOrElement={actionButtonRef.current} paddingSize={"small"}>
|
|
292
288
|
<Notification
|
|
@@ -297,6 +293,8 @@ const ActivityActionButton = ({action}: ActivityActionButtonProps) => {
|
|
|
297
293
|
/>
|
|
298
294
|
</DecoupledOverlay>
|
|
299
295
|
)}
|
|
300
|
-
</>
|
|
301
|
-
|
|
302
|
-
|
|
296
|
+
</>
|
|
297
|
+
) : (
|
|
298
|
+
<ActionButton />
|
|
299
|
+
);
|
|
300
|
+
};
|
|
@@ -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
|
}
|