@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
|
@@ -81,19 +81,21 @@ export const Modal = ({
|
|
|
81
81
|
preventReactFlowEvents = true,
|
|
82
82
|
...otherProps
|
|
83
83
|
}: ModalProps) => {
|
|
84
|
-
const modalContext = React.useContext(ModalContext)
|
|
85
|
-
const uniqueModalId = React.useRef<string>(
|
|
84
|
+
const modalContext = React.useContext(ModalContext);
|
|
85
|
+
const uniqueModalId = React.useRef<string>(
|
|
86
|
+
modalId ?? Date.now().toString(36) + Math.random().toString(36).substring(2),
|
|
87
|
+
);
|
|
86
88
|
|
|
87
89
|
React.useEffect(() => {
|
|
88
90
|
return () => {
|
|
89
91
|
// Make sure to always remove flag when modal is removed
|
|
90
|
-
modalContext.setModalOpen(uniqueModalId.current, false)
|
|
91
|
-
}
|
|
92
|
-
}, [])
|
|
92
|
+
modalContext.setModalOpen(uniqueModalId.current, false);
|
|
93
|
+
};
|
|
94
|
+
}, []);
|
|
93
95
|
|
|
94
96
|
React.useEffect(() => {
|
|
95
|
-
modalContext.setModalOpen(uniqueModalId.current, otherProps.isOpen)
|
|
96
|
-
}, [otherProps.isOpen])
|
|
97
|
+
modalContext.setModalOpen(uniqueModalId.current, otherProps.isOpen);
|
|
98
|
+
}, [otherProps.isOpen]);
|
|
97
99
|
|
|
98
100
|
const backdropProps: React.HTMLProps<HTMLDivElement> | undefined =
|
|
99
101
|
!canOutsideClickClose && canEscapeKeyClose
|
|
@@ -21,12 +21,12 @@ export const useModalContext = (): ModalContextProps => {
|
|
|
21
21
|
// A stack of modal IDs. These should reflect a stacked opening of modals on top of each other.
|
|
22
22
|
const currentOpenModalStack = React.useRef<string[]>([]);
|
|
23
23
|
|
|
24
|
-
const setOpenModalStack = (
|
|
25
|
-
currentOpenModalStack.current = stackUpdateFunction([...currentOpenModalStack.current])
|
|
26
|
-
}
|
|
24
|
+
const setOpenModalStack = (stackUpdateFunction: (old: string[]) => string[]) => {
|
|
25
|
+
currentOpenModalStack.current = stackUpdateFunction([...currentOpenModalStack.current]);
|
|
26
|
+
};
|
|
27
27
|
|
|
28
28
|
const setModalOpen = React.useCallback((modalId: string, isOpen: boolean) => {
|
|
29
|
-
setOpenModalStack(old => {
|
|
29
|
+
setOpenModalStack((old) => {
|
|
30
30
|
if (isOpen) {
|
|
31
31
|
return [...old, modalId];
|
|
32
32
|
} else {
|
|
@@ -46,8 +46,8 @@ export const useModalContext = (): ModalContextProps => {
|
|
|
46
46
|
}, []);
|
|
47
47
|
|
|
48
48
|
const openModalStack = React.useCallback(() => {
|
|
49
|
-
return currentOpenModalStack.current.length ? [...currentOpenModalStack.current] : undefined
|
|
50
|
-
}, [])
|
|
49
|
+
return currentOpenModalStack.current.length ? [...currentOpenModalStack.current] : undefined;
|
|
50
|
+
}, []);
|
|
51
51
|
|
|
52
52
|
return {
|
|
53
53
|
openModalStack,
|
|
@@ -30,7 +30,7 @@ export interface SimpleDialogProps extends ModalProps, TestableComponent {
|
|
|
30
30
|
/**
|
|
31
31
|
* Can contain elements actionable/non-actionable elements display right-aligned to the dialog title.
|
|
32
32
|
*/
|
|
33
|
-
headerOptions?: null | JSX.Element | JSX.Element[];
|
|
33
|
+
headerOptions?: null | React.JSX.Element | React.JSX.Element[];
|
|
34
34
|
/**
|
|
35
35
|
* If enabled neither closing via `esc` key or clicking outside of the component will work, except explicitly specified.
|
|
36
36
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { OverlaysProvider } from "@blueprintjs/core";
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
-
import { fn } from "
|
|
4
|
+
import { fn } from "storybook/test";
|
|
5
5
|
|
|
6
6
|
import { AlertDialog } from "./../../../../index";
|
|
7
7
|
import simpleDialogStory, { Default as SimpleDialogExample } from "./SimpleDialog.stories";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { OverlaysProvider } from "@blueprintjs/core";
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
-
import { fn } from "
|
|
4
|
+
import { fn } from "storybook/test";
|
|
5
5
|
|
|
6
6
|
import { SimpleCard } from "../../Card/stories/Card.stories";
|
|
7
7
|
|
|
8
|
-
import { Card, Modal } from "
|
|
8
|
+
import { Card, Modal } from "./../../../components";
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
title: "Components/Dialog/Modal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { OverlaysProvider } from "@blueprintjs/core";
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
-
import { fn } from "
|
|
4
|
+
import { fn } from "storybook/test";
|
|
5
5
|
|
|
6
6
|
import { SimpleDialog } from "./../../../../index";
|
|
7
7
|
import { Default as CardActionsExample } from "./../../Card/stories/CardActions.stories";
|
|
@@ -43,7 +43,7 @@ export const FlexibleLayoutContainer = forwardRef<HTMLDivElement, FlexibleLayout
|
|
|
43
43
|
gapSize = "none",
|
|
44
44
|
...otherDivProps
|
|
45
45
|
}: FlexibleLayoutContainerProps,
|
|
46
|
-
ref
|
|
46
|
+
ref,
|
|
47
47
|
) => {
|
|
48
48
|
return (
|
|
49
49
|
<div
|
|
@@ -61,7 +61,7 @@ export const FlexibleLayoutContainer = forwardRef<HTMLDivElement, FlexibleLayout
|
|
|
61
61
|
{children}
|
|
62
62
|
</div>
|
|
63
63
|
);
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
export default FlexibleLayoutContainer;
|
|
@@ -34,7 +34,7 @@ export const FlexibleLayoutItem = forwardRef<HTMLDivElement, FlexibleLayoutItemP
|
|
|
34
34
|
style,
|
|
35
35
|
...otherDivProps
|
|
36
36
|
}: FlexibleLayoutItemProps,
|
|
37
|
-
ref
|
|
37
|
+
ref,
|
|
38
38
|
) => {
|
|
39
39
|
const sizing = {} as any;
|
|
40
40
|
if (typeof growFactor !== "undefined" && growFactor >= 0 && growFactor !== 1) {
|
|
@@ -53,7 +53,7 @@ export const FlexibleLayoutItem = forwardRef<HTMLDivElement, FlexibleLayoutItemP
|
|
|
53
53
|
{children}
|
|
54
54
|
</div>
|
|
55
55
|
);
|
|
56
|
-
}
|
|
56
|
+
},
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
export default FlexibleLayoutItem;
|
|
@@ -24,7 +24,7 @@ export interface FieldItemProps extends React.HTMLAttributes<HTMLDivElement>, Te
|
|
|
24
24
|
* Text for user help.
|
|
25
25
|
* Is displayed between label and input element.
|
|
26
26
|
*/
|
|
27
|
-
helperText?: string | JSX.Element;
|
|
27
|
+
helperText?: string | React.JSX.Element;
|
|
28
28
|
/**
|
|
29
29
|
* Feedback notification.
|
|
30
30
|
* Is displayed below the included input element.
|
|
@@ -16,17 +16,17 @@ export interface FieldSetProps extends Omit<React.FieldsetHTMLAttributes<HTMLFie
|
|
|
16
16
|
/**
|
|
17
17
|
* Optional helper text. If given then it is displayed after the title.
|
|
18
18
|
*/
|
|
19
|
-
helperText?: string | JSX.Element;
|
|
19
|
+
helperText?: string | React.JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
* Optional notification text.
|
|
22
22
|
* If given then it is displayed before the fieldset content and is colored reagarding the set intent state.
|
|
23
23
|
*/
|
|
24
|
-
messageText?: string | JSX.Element;
|
|
24
|
+
messageText?: string | React.JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Optional title, set the fieldset legend and if given it is display on top, colored reagarding the set intent state.
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
|
-
title?: string | JSX.Element;
|
|
29
|
+
title?: string | React.JSX.Element;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -3,7 +3,7 @@ import { LoremIpsum } from "react-lorem-ipsum";
|
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { helpersArgTypes } from "../../../../.storybook/helpers";
|
|
6
|
-
import { FieldItem, TextField } from "
|
|
6
|
+
import { FieldItem, TextField } from "../../../components";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
title: "Forms/FieldItem",
|
|
@@ -3,7 +3,7 @@ import { LoremIpsum } from "react-lorem-ipsum";
|
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { helpersArgTypes } from "../../../../.storybook/helpers";
|
|
6
|
-
import { FieldItem, FieldItemRow, FieldSet, TitleSubsection } from "
|
|
6
|
+
import { FieldItem, FieldItemRow, FieldSet, TitleSubsection } from "../../../components";
|
|
7
7
|
|
|
8
8
|
import { Default as SimpleFieldItemExample } from "./FieldItem.stories";
|
|
9
9
|
import { Default as SimpleFieldItemRowExample } from "./FieldItemRow.stories";
|
|
@@ -4,8 +4,10 @@ import { GridProps as CarbonGridProps } from "@carbon/react/es/components/Grid";
|
|
|
4
4
|
|
|
5
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
6
6
|
|
|
7
|
-
export interface GridProps
|
|
8
|
-
|
|
7
|
+
export interface GridProps extends Omit<
|
|
8
|
+
CarbonGridProps<"article" | "section" | "div">,
|
|
9
|
+
"fullWidth" | "columns" | "narrow" | "as"
|
|
10
|
+
> {
|
|
9
11
|
/**
|
|
10
12
|
* The available grid height can be distributed between multiple rows.
|
|
11
13
|
* To do so the `verticalStretched` property must be set for the `<GridRow />` element that need to be stretched.
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { LoremIpsum } from "react-lorem-ipsum";
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
|
-
import { Grid, GridColumn, GridRow, HtmlContentBlock } from "
|
|
5
|
+
import { Grid, GridColumn, GridRow, HtmlContentBlock } from "../../../components";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: "Components/Grid/Column",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
|
-
import { Grid, GridColumn, GridRow } from "
|
|
4
|
+
import { Grid, GridColumn, GridRow } from "../../../components";
|
|
5
5
|
|
|
6
6
|
import { Default as ColumnExample } from "./GridColumn.stories";
|
|
7
7
|
|
|
@@ -10,12 +10,12 @@ export interface HoverTogglerProps extends Omit<React.HTMLAttributes<HTMLDivElem
|
|
|
10
10
|
/**
|
|
11
11
|
* The content that is shown when not hovered.
|
|
12
12
|
*/
|
|
13
|
-
baseContent: JSX.Element;
|
|
13
|
+
baseContent: React.JSX.Element;
|
|
14
14
|
baseContentProps?: Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
|
|
15
15
|
/**
|
|
16
16
|
* The content that is shown when hovered.
|
|
17
17
|
*/
|
|
18
|
-
hoverContent: JSX.Element;
|
|
18
|
+
hoverContent: React.JSX.Element;
|
|
19
19
|
hoverContentProps?: Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
|
|
20
20
|
/**
|
|
21
21
|
* Display as inline element.
|
|
@@ -14,7 +14,7 @@ export interface IconProps extends Omit<BaseIconProps, "iconComponent"> {
|
|
|
14
14
|
/** Returns the first icon that exists or the fallback icon. */
|
|
15
15
|
const findExistingIcon = (
|
|
16
16
|
iconName: ValidIconName | string[],
|
|
17
|
-
fallbackItem: CarbonIconType = canonicalIcons["undefined"]
|
|
17
|
+
fallbackItem: CarbonIconType = canonicalIcons["undefined"],
|
|
18
18
|
): CarbonIconType => {
|
|
19
19
|
if (typeof iconName === "string") {
|
|
20
20
|
return canonicalIcons[iconName] ?? fallbackItem;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
4
4
|
import Button, { ButtonProps } from "../Button/Button";
|
|
5
|
-
import {TestableComponent} from "../interfaces";
|
|
5
|
+
import { TestableComponent } from "../interfaces";
|
|
6
6
|
|
|
7
7
|
import { ValidIconName } from "./canonicalIconNames";
|
|
8
8
|
import Icon, { IconProps } from "./Icon";
|
|
@@ -54,8 +54,8 @@ export const IconButton = ({
|
|
|
54
54
|
swapPlaceholderDelay: 10,
|
|
55
55
|
};
|
|
56
56
|
const iconProps = {
|
|
57
|
-
small: restProps.small,
|
|
58
|
-
large: restProps.large,
|
|
57
|
+
small: restProps.small || restProps["size"] === "small",
|
|
58
|
+
large: restProps.large || restProps["size"] === "large",
|
|
59
59
|
tooltipText: tooltipAsTitle ? undefined : text,
|
|
60
60
|
tooltipProps: tooltipProps
|
|
61
61
|
? {
|
|
@@ -40,6 +40,7 @@ const canonicalIcons = {
|
|
|
40
40
|
"artefact-task-sendemail": icons.Email,
|
|
41
41
|
"artefact-dataset-csv": icons.Csv,
|
|
42
42
|
"artefact-dataset-eccencadataplatform": icons.DataVis_1,
|
|
43
|
+
"artefact-dataset-inmemory": icons.DataVis_1,
|
|
43
44
|
"artefact-dataset-excel": icons.Xls,
|
|
44
45
|
"artefact-dataset-file": icons.DataVis_1,
|
|
45
46
|
"artefact-dataset": icons.Data_2,
|
|
@@ -32,15 +32,15 @@ svg.#{$eccgui}-icon {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.#{$ns}-button .#{$eccgui}-icon:first-child {
|
|
35
|
-
margin-left: -($
|
|
35
|
+
margin-left: -($button-icon-spacing);
|
|
36
36
|
}
|
|
37
37
|
.#{$ns}-button .#{$eccgui}-icon:last-child {
|
|
38
|
-
margin-right: -($
|
|
38
|
+
margin-right: -($button-icon-spacing);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.#{$ns}-button .#{$eccgui}-icon:first-child:last-child,
|
|
42
42
|
.#{$ns}-button .#{$ns}-spinner + .#{$eccgui}-icon:last-child {
|
|
43
|
-
margin: 0 (-($
|
|
43
|
+
margin: 0 (-($button-icon-spacing));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.#{$eccgui}-button--icon {
|
|
@@ -49,7 +49,7 @@ svg.#{$eccgui}-icon {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
& > .#{$ns}-button-text {
|
|
52
|
-
margin-left: -
|
|
52
|
+
margin-left: -($pt-grid-size) * 0.5;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
& > .#{$eccgui}-tooltip__wrapper + .#{$ns}-button-text {
|
|
@@ -84,7 +84,7 @@ export const IconsOverview = () => {
|
|
|
84
84
|
) {
|
|
85
85
|
section = iconName.substring(
|
|
86
86
|
0,
|
|
87
|
-
iconName.indexOf("-") > 0 ? iconName.indexOf("-") : iconName.length
|
|
87
|
+
iconName.indexOf("-") > 0 ? iconName.indexOf("-") : iconName.length,
|
|
88
88
|
);
|
|
89
89
|
separation = (
|
|
90
90
|
<FlexibleLayoutItem style={{ width: "100%", padding: "1rem 0 0.5rem 0" }}>
|
|
@@ -3,7 +3,7 @@ import { OverlaysProvider } from "@blueprintjs/core";
|
|
|
3
3
|
import { LogoReact } from "@carbon/icons-react";
|
|
4
4
|
import { Meta, StoryFn } from "@storybook/react";
|
|
5
5
|
|
|
6
|
-
import { IconButton, TestIcon } from "
|
|
6
|
+
import { IconButton, TestIcon } from "../../../components";
|
|
7
7
|
|
|
8
8
|
import buttonStory from "./../../Button/Button.stories";
|
|
9
9
|
import canonicalIcons from "./../canonicalIconNames";
|
|
@@ -3,8 +3,8 @@ import { OverlaysProvider } from "@blueprintjs/core";
|
|
|
3
3
|
import { LogoReact } from "@carbon/icons-react";
|
|
4
4
|
import { Meta, StoryFn } from "@storybook/react";
|
|
5
5
|
|
|
6
|
-
import { TestIcon } from "../../../../index";
|
|
7
6
|
import { Definitions } from "../../../common/Intent";
|
|
7
|
+
import { TestIcon } from "../TestIcon";
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: "Components/Icon/TestIcon",
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { CarbonIconProps, CarbonIconType } from "@carbon/react/icons";
|
|
3
3
|
|
|
4
|
-
export const transform = (
|
|
5
|
-
|
|
4
|
+
export const transform = (
|
|
5
|
+
IconSymbol: CarbonIconType,
|
|
6
|
+
rotate: number = 0,
|
|
7
|
+
flipH: boolean = false,
|
|
8
|
+
flipV: boolean = false,
|
|
9
|
+
): CarbonIconType => {
|
|
10
|
+
return React.forwardRef((props: CarbonIconProps, ref: React.LegacyRef<SVGSVGElement>) => {
|
|
6
11
|
return (
|
|
7
12
|
<IconSymbol
|
|
8
13
|
{...props}
|
|
9
14
|
ref={ref}
|
|
10
|
-
transform={
|
|
11
|
-
`scale(${flipH ? "-1" : "1"}, ${flipV ? "-1" : "1"}) rotate(${rotate})`
|
|
12
|
-
}
|
|
15
|
+
transform={`scale(${flipH ? "-1" : "1"}, ${flipV ? "-1" : "1"}) rotate(${rotate})`}
|
|
13
16
|
/>
|
|
14
17
|
);
|
|
15
|
-
})
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
+
});
|
|
19
|
+
};
|
|
@@ -42,7 +42,7 @@ export const Iframe = React.forwardRef<HTMLIFrameElement, IframeProps>(
|
|
|
42
42
|
htmlIframeProps = {},
|
|
43
43
|
...otherReactProps
|
|
44
44
|
}: IframeProps,
|
|
45
|
-
ref
|
|
45
|
+
ref,
|
|
46
46
|
) => {
|
|
47
47
|
const [isLoaded, setIsLoaded] = useState<boolean>(false);
|
|
48
48
|
const [contentHeight, setContentHeight] = useState<number | undefined>(undefined);
|
|
@@ -98,7 +98,7 @@ export const Iframe = React.forwardRef<HTMLIFrameElement, IframeProps>(
|
|
|
98
98
|
/>
|
|
99
99
|
</div>
|
|
100
100
|
);
|
|
101
|
-
}
|
|
101
|
+
},
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
export default Iframe;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
.#{eccgui}-iframe iframe {
|
|
2
2
|
width: 100%;
|
|
3
|
+
color-scheme: light dark;
|
|
4
|
+
|
|
5
|
+
.#{eccgui}-palette--light & {
|
|
6
|
+
color-scheme: light;
|
|
7
|
+
}
|
|
8
|
+
.#{eccgui}-palette--dark & {
|
|
9
|
+
color-scheme: dark;
|
|
10
|
+
}
|
|
3
11
|
}
|
|
4
12
|
|
|
5
13
|
// provide calc value to remove header + card title + white space from viewport height
|
|
@@ -9,15 +9,15 @@ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>
|
|
|
9
9
|
/**
|
|
10
10
|
* Label text.
|
|
11
11
|
*/
|
|
12
|
-
text?: string | JSX.Element;
|
|
12
|
+
text?: string | React.JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* Short info about label semantic, it is displayed in parentesis after the label text.
|
|
15
15
|
*/
|
|
16
|
-
info?: string | JSX.Element;
|
|
16
|
+
info?: string | React.JSX.Element;
|
|
17
17
|
/**
|
|
18
18
|
* Additional tooltip, attached to an info icon that is displayed after the info.
|
|
19
19
|
*/
|
|
20
|
-
tooltip?: string | JSX.Element;
|
|
20
|
+
tooltip?: string | React.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* Additonal tooltip properties, e.g. `hoverOpenDelay`.
|
|
23
23
|
*/
|
|
@@ -92,7 +92,7 @@ export const Label = ({
|
|
|
92
92
|
(disabled ? ` ${eccgui}-label--disabled` : ""),
|
|
93
93
|
...otherLabelProps,
|
|
94
94
|
},
|
|
95
|
-
labelContent
|
|
95
|
+
labelContent,
|
|
96
96
|
)
|
|
97
97
|
) : (
|
|
98
98
|
<></>
|
|
@@ -20,7 +20,7 @@ export interface ListProps<T> {
|
|
|
20
20
|
export function List<T>({ items, itemRenderer, itemId, limitOptions, moreLabel = "Show more..." }: ListProps<T>) {
|
|
21
21
|
// The number of items to show in the list, undefined means unlimited
|
|
22
22
|
const [nrOfItemsToShow, setNrOfItemsToShow] = React.useState<number | undefined>(
|
|
23
|
-
limitOptions?.initialMax ?? undefined
|
|
23
|
+
limitOptions?.initialMax ?? undefined,
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
useEffect(() => {
|
|
@@ -10,7 +10,8 @@ import Tooltip from "../Tooltip/Tooltip";
|
|
|
10
10
|
import { TestIconProps } from "./../Icon/TestIcon";
|
|
11
11
|
|
|
12
12
|
export interface MenuItemProps
|
|
13
|
-
extends
|
|
13
|
+
extends
|
|
14
|
+
Omit<BlueprintMenuItemProps, "icon" | "children">,
|
|
14
15
|
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "onFocus" | "target" | "children"> {
|
|
15
16
|
/*
|
|
16
17
|
* If set the icon is diplayed on the left side of the menu item.
|
|
@@ -23,7 +24,7 @@ export interface MenuItemProps
|
|
|
23
24
|
/**
|
|
24
25
|
* Tooltip, but only added to the label, not to the full menu item.
|
|
25
26
|
*/
|
|
26
|
-
tooltip?: string | JSX.Element;
|
|
27
|
+
tooltip?: string | React.JSX.Element;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -3,7 +3,7 @@ import { OverlaysProvider } from "@blueprintjs/core";
|
|
|
3
3
|
import { LogoReact } from "@carbon/icons-react";
|
|
4
4
|
import { Meta, StoryFn } from "@storybook/react";
|
|
5
5
|
|
|
6
|
-
import { Menu, MenuItem, TestIcon } from "
|
|
6
|
+
import { Menu, MenuItem, TestIcon } from "../../../components";
|
|
7
7
|
|
|
8
8
|
import canonicalIcons from "./../../Icon/canonicalIconNames";
|
|
9
9
|
|