@eccenca/gui-elements 25.1.0-rc.4 → 25.2.0-featureupgradeblueprintjsv6cmem7139.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1005 -946
- package/README.md +27 -27
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +21 -23
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +28 -12
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +17 -7
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +29 -13
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +21 -6
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +17 -7
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/cjs/cmem/markdown/Markdown.js +2 -2
- package/dist/cjs/cmem/markdown/Markdown.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +17 -7
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +17 -7
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +17 -7
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -1
- package/dist/cjs/common/utils/colorCalculateDistance.js.map +1 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js +2 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/cjs/common/utils/colorHash.js +3 -7
- package/dist/cjs/common/utils/colorHash.js.map +1 -1
- package/dist/cjs/common/utils/reduceToText.js +17 -7
- package/dist/cjs/common/utils/reduceToText.js.map +1 -1
- package/dist/cjs/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +27 -13
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +19 -16
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js +17 -7
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +5 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Card/CardContent.js +1 -1
- package/dist/cjs/components/Card/CardContent.js.map +1 -1
- package/dist/cjs/components/Chat/ChatArea.js.map +1 -1
- package/dist/cjs/components/ColorField/ColorField.js +1 -1
- package/dist/cjs/components/ColorField/ColorField.js.map +1 -1
- package/dist/cjs/components/ContentGroup/ContentGroup.js +19 -19
- package/dist/cjs/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -5
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +6 -5
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
- package/dist/cjs/components/Depiction/Depiction.js +18 -8
- package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Dialog/ModalContext.js +3 -3
- package/dist/cjs/components/Dialog/ModalContext.js.map +1 -1
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js +17 -7
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js.map +1 -1
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js +17 -7
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js.map +1 -1
- package/dist/cjs/components/Grid/Grid.js.map +1 -1
- package/dist/cjs/components/Icon/IconButton.js +2 -2
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +25 -8
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/transformIcon.js.map +1 -1
- package/dist/cjs/components/Iframe/Iframe.js +17 -7
- package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
- package/dist/cjs/components/InteractionGate/InteractionGate.js +17 -7
- package/dist/cjs/components/InteractionGate/InteractionGate.js.map +1 -1
- package/dist/cjs/components/List/List.js +17 -7
- package/dist/cjs/components/List/List.js.map +1 -1
- package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +55 -25
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/NotAvailable/NotAvailable.js +42 -0
- package/dist/cjs/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +17 -7
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +6 -4
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +17 -7
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/Switch/Switch.js +17 -7
- package/dist/cjs/components/Switch/Switch.js.map +1 -1
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/components/Table/TableContainer.js +1 -1
- package/dist/cjs/components/Table/TableContainer.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandRow.js +2 -2
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
- package/dist/cjs/components/Tabs/Tab.js.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.js +17 -7
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/Tag/Tag.js +1 -1
- package/dist/cjs/components/Tag/Tag.js.map +1 -1
- package/dist/cjs/components/TextField/TextArea.js.map +1 -1
- package/dist/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Tree/Tree.js +17 -7
- package/dist/cjs/components/Tree/Tree.js.map +1 -1
- package/dist/cjs/components/Typography/HtmlContentBlock.js +17 -7
- package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js +17 -7
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
- package/dist/cjs/components/VisualTour/VisualTour.js +7 -5
- package/dist/cjs/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +43 -19
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +25 -10
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +14 -8
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +19 -9
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +22 -9
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +20 -8
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js +2 -2
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +17 -7
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js +17 -7
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +11 -9
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +21 -8
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +23 -9
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +6 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/cjs/index.js +17 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +7 -9
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +6 -3
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +2 -2
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +8 -5
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +28 -3
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/markdown/Markdown.js +1 -1
- package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/esm/common/utils/colorCalculateDistance.js.map +1 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js +2 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/esm/common/utils/colorHash.js +3 -7
- package/dist/esm/common/utils/colorHash.js.map +1 -1
- package/dist/esm/common/utils/reduceToText.js +1 -1
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +12 -8
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +11 -18
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/esm/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/esm/components/Button/Button.js +5 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Card/CardContent.js +1 -1
- package/dist/esm/components/Card/CardContent.js.map +1 -1
- package/dist/esm/components/Chat/ChatArea.js.map +1 -1
- package/dist/esm/components/ColorField/ColorField.js +1 -1
- package/dist/esm/components/ColorField/ColorField.js.map +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +3 -2
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js +3 -2
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
- package/dist/esm/components/Depiction/Depiction.js +1 -1
- package/dist/esm/components/Depiction/Depiction.js.map +1 -1
- package/dist/esm/components/Dialog/Modal.js.map +1 -1
- package/dist/esm/components/Dialog/ModalContext.js +2 -2
- package/dist/esm/components/Dialog/ModalContext.js.map +1 -1
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Icon/IconButton.js +2 -2
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +8 -1
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Icon/transformIcon.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +42 -22
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/NotAvailable/NotAvailable.js +46 -0
- package/dist/esm/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/esm/components/Notification/Notification.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/esm/components/Select/Select.js +4 -2
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/esm/components/Table/TableExpandRow.js +1 -1
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
- package/dist/esm/components/Tabs/Tab.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js +1 -1
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/TextField/TextArea.js.map +1 -1
- package/dist/esm/components/TextField/TextField.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/VisualTour/VisualTour.js +7 -5
- package/dist/esm/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +26 -12
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +3 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js +11 -5
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js +3 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js +8 -6
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js +2 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +6 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +5 -5
- package/dist/types/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +1 -1
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +4 -4
- package/dist/types/cmem/ConfidenceValue/ConfidenceValue.d.ts +2 -2
- package/dist/types/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +5 -1
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +3 -3
- package/dist/types/cmem/markdown/Markdown.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +2 -1
- package/dist/types/common/utils/colorCalculateDistance.d.ts +2 -2
- package/dist/types/common/utils/colorDecideContrastvalue.d.ts +2 -2
- package/dist/types/common/utils/colorHash.d.ts +3 -3
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +6 -3
- package/dist/types/components/AutoSuggestion/ExtendedCodeEditor.d.ts +1 -1
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +2 -12
- package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Card/CardHeader.d.ts +1 -1
- package/dist/types/components/ColorField/ColorField.d.ts +2 -5
- package/dist/types/components/ContentGroup/ContentGroup.d.ts +1 -1
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +9 -3
- package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +2 -2
- package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +3 -1
- package/dist/types/components/Depiction/Depiction.d.ts +3 -3
- package/dist/types/components/Dialog/SimpleDialog.d.ts +1 -1
- package/dist/types/components/Form/FieldItem.d.ts +1 -1
- package/dist/types/components/Form/FieldSet.d.ts +3 -3
- package/dist/types/components/HoverToggler/HoverToggler.d.ts +2 -2
- package/dist/types/components/Icon/canonicalIconNames.d.ts +8 -1
- package/dist/types/components/Label/Label.d.ts +3 -3
- package/dist/types/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +15 -4
- package/dist/types/components/NotAvailable/NotAvailable.d.ts +32 -0
- package/dist/types/components/Notification/Notification.d.ts +2 -2
- package/dist/types/components/OverviewItem/OverviewItemActions.d.ts +1 -1
- package/dist/types/components/PropertyValuePair/PropertyValueList.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +2 -2
- package/dist/types/components/Structure/TitleSubsection.d.ts +2 -5
- package/dist/types/components/SuggestField/index.d.ts +2 -2
- package/dist/types/components/Table/TableContainer.d.ts +3 -3
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +180 -186
- package/dist/types/components/Tabs/TabTitle.d.ts +1 -1
- package/dist/types/components/Tag/Tag.d.ts +2 -2
- package/dist/types/components/TextField/TextArea.d.ts +6 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +3 -3
- package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +1 -1
- package/dist/types/extensions/react-flow/handles/HandleContent.d.ts +2 -2
- package/dist/types/extensions/react-flow/handles/HandleTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +3 -3
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/sharedTypes.d.ts +2 -2
- package/package.json +67 -66
- package/scripts/compile-sass.ts +2 -0
- package/scripts/sassConfig.js +1 -1
- package/scripts/sassDeprecationConfig.js +3 -0
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +4 -9
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +33 -35
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +5 -2
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +28 -32
- package/src/cmem/ActivityControl/tests/ActivityControlWidget.test.tsx +1 -1
- package/src/cmem/ConfidenceValue/ConfidenceValue.tsx +6 -5
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +17 -7
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +12 -4
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +10 -10
- package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +2 -2
- package/src/cmem/DateTimeDisplay/tests/ElapsedDateTimeDisplay.test.tsx +2 -2
- package/src/cmem/markdown/Markdown.tsx +2 -1
- package/src/cmem/markdown/highlightSearchWords.test.ts +1 -1
- package/src/cmem/markdown/markdown.scss +1 -1
- package/src/cmem/markdown/markdownutils.test.ts +2 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +3 -3
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +2 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlowV9.tsx +2 -5
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +6 -3
- package/src/cmem/react-flow/configuration/graph.ts +3 -3
- package/src/cmem/react-flow/configuration/linking.ts +3 -3
- package/src/cmem/react-flow/configuration/workflow.ts +3 -3
- package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +14 -14
- package/src/common/scss/_color-functions.scss +9 -4
- package/src/common/utils/CssCustomProperties.ts +1 -1
- package/src/common/utils/characters.ts +2 -2
- package/src/common/utils/colorCalculateDistance.ts +2 -2
- package/src/common/utils/colorDecideContrastvalue.ts +4 -3
- package/src/common/utils/colorHash.ts +13 -17
- package/src/common/utils/getColorConfiguration.ts +2 -2
- package/src/common/utils/openInNewTab.ts +1 -1
- package/src/common/utils/reduceToText.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +3 -2
- package/src/components/Accordion/Stories/AccordionItem.stories.tsx +1 -1
- package/src/components/Application/ApplicationSidebarNavigation.tsx +6 -2
- package/src/components/Application/ApplicationTitle.tsx +9 -1
- package/src/components/Application/ApplicationToolbarAction.tsx +2 -1
- package/src/components/Application/_header.scss +13 -10
- package/src/components/Application/stories/ColorPalettes.stories.tsx +23 -19
- package/src/components/Application/tests/ApplicationViewability.test.tsx +1 -7
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +30 -23
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +5 -3
- package/src/components/AutoSuggestion/ExtendedCodeEditor.tsx +2 -2
- package/src/components/AutoSuggestion/extensions/markText.ts +1 -1
- package/src/components/AutocompleteField/AutoCompleteField.tsx +16 -25
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +7 -3
- package/src/components/Badge/Badge.stories.tsx +1 -1
- package/src/components/Breadcrumb/BreadcrumbList.tsx +4 -3
- package/src/components/Breadcrumb/breadcrumb.scss +2 -2
- package/src/components/Button/Button.test.tsx +2 -2
- package/src/components/Button/Button.tsx +13 -11
- package/src/components/Button/button.scss +4 -3
- package/src/components/Card/CardContent.tsx +17 -20
- package/src/components/Card/CardHeader.tsx +1 -1
- package/src/components/Card/card.scss +8 -4
- package/src/components/Card/stories/Card.stories.tsx +1 -1
- package/src/components/Chat/ChatArea.tsx +1 -2
- package/src/components/Chat/_chat.scss +2 -2
- package/src/components/Checkbox/Stories/Checkbox.stories.tsx +1 -1
- package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +9 -3
- package/src/components/ColorField/ColorField.test.tsx +1 -1
- package/src/components/ColorField/ColorField.tsx +6 -6
- package/src/components/ContentGroup/ContentGroup.stories.tsx +1 -1
- package/src/components/ContentGroup/ContentGroup.tsx +6 -6
- package/src/components/ContextOverlay/ContextMenu.tsx +10 -4
- package/src/components/ContextOverlay/ContextOverlay.stories.tsx +1 -1
- package/src/components/ContextOverlay/ContextOverlay.tsx +16 -11
- package/src/components/ContextOverlay/tests/ContextOverlay.test.tsx +2 -2
- package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +11 -4
- package/src/components/Depiction/Depiction.tsx +6 -6
- package/src/components/Dialog/Modal.tsx +9 -7
- package/src/components/Dialog/ModalContext.tsx +6 -6
- package/src/components/Dialog/SimpleDialog.tsx +1 -1
- package/src/components/Dialog/stories/AlertDialog.stories.tsx +1 -1
- package/src/components/Dialog/stories/Modal.stories.tsx +2 -2
- package/src/components/Dialog/stories/SimpleDialog.stories.tsx +1 -1
- package/src/components/FlexibleLayout/FlexibleLayoutContainer.tsx +2 -2
- package/src/components/FlexibleLayout/FlexibleLayoutItem.tsx +2 -2
- package/src/components/Form/FieldItem.tsx +1 -1
- package/src/components/Form/FieldSet.tsx +3 -3
- package/src/components/Form/Stories/FieldItem.stories.tsx +1 -1
- package/src/components/Form/Stories/FieldSet.stories.tsx +1 -1
- package/src/components/Form/form.scss +2 -2
- package/src/components/Grid/Grid.tsx +4 -2
- package/src/components/Grid/stories/GridColumn.stories.tsx +1 -1
- package/src/components/Grid/stories/GridRow.stories.tsx +1 -1
- package/src/components/HoverToggler/HoverToggler.tsx +2 -2
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/IconButton.tsx +3 -3
- package/src/components/Icon/canonicalIconNames.tsx +10 -2
- package/src/components/Icon/icon.scss +4 -4
- package/src/components/Icon/stories/Icon.stories.tsx +1 -1
- package/src/components/Icon/stories/IconButton.stories.tsx +1 -1
- package/src/components/Icon/stories/TestIcon.stories.tsx +1 -1
- package/src/components/Icon/transformIcon.tsx +11 -9
- package/src/components/Iframe/Iframe.tsx +2 -2
- package/src/components/Label/Label.tsx +4 -4
- package/src/components/List/List.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +3 -2
- package/src/components/Menu/Stories/MenuItem.stories.tsx +1 -1
- package/src/components/Menu/menu.scss +1 -0
- package/src/components/MultiSelect/MultiSelect.tsx +62 -26
- package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +1 -1
- package/src/components/MultiSuggestField/index.ts +1 -1
- package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +24 -57
- package/src/components/NotAvailable/NotAvailable.stories.tsx +15 -0
- package/src/components/NotAvailable/NotAvailable.tsx +69 -0
- package/src/components/Notification/Notification.stories.tsx +2 -1
- package/src/components/Notification/Notification.tsx +5 -4
- package/src/components/OverviewItem/OverviewItemActions.tsx +1 -1
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemListPerformance.tsx +2 -2
- package/src/components/Pagination/Pagination.tsx +2 -2
- package/src/components/Pagination/Stories/Pagination.stories.tsx +32 -0
- package/src/components/Pagination/pagination.scss +55 -5
- package/src/components/PropertyValuePair/PropertyValueList.tsx +1 -1
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Select/Select.tsx +7 -4
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Spinner/Spinner.tsx +2 -2
- package/src/components/Sticky/StickyTarget.tsx +1 -1
- package/src/components/Sticky/stories/StickyTarget.stories.tsx +2 -2
- package/src/components/Structure/TitleSubsection.tsx +2 -2
- package/src/components/SuggestField/SuggestField.stories.tsx +2 -2
- package/src/components/Table/Table.tsx +3 -2
- package/src/components/Table/TableContainer.tsx +11 -6
- package/src/components/Table/TableExpandHeader.tsx +2 -1
- package/src/components/Table/TableExpandRow.tsx +3 -2
- package/src/components/Table/index.tsx +7 -1
- package/src/components/Tabs/Tab.tsx +2 -2
- package/src/components/Tabs/TabTitle.tsx +1 -1
- package/src/components/Tabs/tabs.scss +2 -2
- package/src/components/Tag/Tag.tsx +9 -10
- package/src/components/Tag/stories/Tag.stories.tsx +1 -1
- package/src/components/Tag/stories/TagList.stories.tsx +1 -1
- package/src/components/TextField/TextArea.tsx +12 -7
- package/src/components/TextField/TextField.tsx +4 -3
- package/src/components/TextField/stories/TextArea.stories.tsx +1 -1
- package/src/components/TextField/stories/TextField.stories.tsx +1 -3
- package/src/components/TextField/useTextValidation.ts +4 -4
- package/src/components/TextReducer/TextReducer.stories.tsx +4 -1
- package/src/components/TextReducer/TextReducer.test.tsx +2 -2
- package/src/components/Toolbar/toolbar.scss +1 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.test.tsx +5 -5
- package/src/components/Tooltip/Tooltip.tsx +5 -5
- package/src/components/Typography/_reset.scss +1 -0
- package/src/components/Typography/stories/OverflowText.stories.tsx +1 -1
- package/src/components/Typography/typography.scss +4 -2
- package/src/components/VisualTour/VisualTour.tsx +10 -10
- package/src/components/index.ts +1 -0
- package/src/configuration/_variables.scss +3 -1
- package/src/extensions/codemirror/CodeMirror.tsx +131 -79
- 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 +1 -1
- 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/stories/EdgeDefault.stories.tsx +1 -1
- package/src/extensions/react-flow/edges/stories/EdgeDefaultV12.stories.tsx +1 -1
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +2 -1
- package/src/extensions/react-flow/edges/utils.ts +5 -3
- package/src/extensions/react-flow/handles/HandleContent.tsx +3 -3
- package/src/extensions/react-flow/handles/HandleDefault.tsx +56 -46
- package/src/extensions/react-flow/handles/HandleTools.tsx +4 -5
- package/src/extensions/react-flow/handles/_handles.scss +3 -3
- package/src/extensions/react-flow/handles/stories/HandleDefault.stories.tsx +2 -7
- package/src/extensions/react-flow/index.ts +1 -1
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +2 -2
- package/src/extensions/react-flow/minimap/MiniMap.tsx +17 -20
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +2 -3
- package/src/extensions/react-flow/nodes/NodeContent.tsx +65 -57
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +6 -3
- package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeTools.tsx +5 -5
- package/src/extensions/react-flow/nodes/_nodes.scss +2 -1
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +10 -5
- package/src/extensions/react-flow/nodes/sharedTypes.ts +2 -2
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +38 -24
- package/src/extensions/react-flow/nodes/stories/NodeContentV12.stories.tsx +1 -1
- package/src/extensions/react-flow/nodes/stories/NodeDefault.stories.tsx +1 -1
- package/src/includes/blueprintjs/_variables.scss +1 -0
- package/src/includes/carbon-components/_requisits.scss +3 -1
- package/src/includes/carbon-components/_variables.scss +1 -1
- package/src/index.scss +2 -2
- package/src/test/setupTests.js +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { CLASSPREFIX as eccgui, Tag, TagProps, Tooltip, TooltipProps } from "../../index";
|
|
4
|
+
import { TestableComponent } from "../interfaces";
|
|
5
|
+
export interface NotAvailableProps
|
|
6
|
+
extends TestableComponent, Pick<TagProps, "icon" | "className">, Pick<TooltipProps, "intent"> {
|
|
7
|
+
/**
|
|
8
|
+
* Text displayed by the element.
|
|
9
|
+
*/
|
|
10
|
+
label?: TagProps["children"];
|
|
11
|
+
/**
|
|
12
|
+
* Add a tooltip to the element.
|
|
13
|
+
* You need to set an empty string `""` to remove it.
|
|
14
|
+
*/
|
|
15
|
+
tooltip?: TooltipProps["content"];
|
|
16
|
+
/**
|
|
17
|
+
* Specify the display of the used `Tag` component.
|
|
18
|
+
*/
|
|
19
|
+
tagProps?: Omit<TagProps, "icon" | "intent" | "children">;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the display of the used `Tooltip` component.
|
|
22
|
+
*/
|
|
23
|
+
tooltipProps?: Omit<TooltipProps, "content" | "intent" | "children">;
|
|
24
|
+
/**
|
|
25
|
+
* Do not use the `Tag` component for the display.
|
|
26
|
+
* The `intent` state can be displayed only on the tooltip then.
|
|
27
|
+
*/
|
|
28
|
+
noTag?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Simple placeholder element that can be used to display info about missing data.
|
|
33
|
+
*/
|
|
34
|
+
export const NotAvailable = ({
|
|
35
|
+
label = "n/a",
|
|
36
|
+
tooltip = "not available",
|
|
37
|
+
icon,
|
|
38
|
+
intent,
|
|
39
|
+
tagProps,
|
|
40
|
+
tooltipProps,
|
|
41
|
+
className,
|
|
42
|
+
noTag = false,
|
|
43
|
+
...otherProps
|
|
44
|
+
}: NotAvailableProps) => {
|
|
45
|
+
const defaultTagProps: TagProps = {
|
|
46
|
+
icon,
|
|
47
|
+
intent,
|
|
48
|
+
emphasis: "weaker",
|
|
49
|
+
className: `${eccgui}-notavailable` + className ? ` ${className}` : "",
|
|
50
|
+
};
|
|
51
|
+
const naElement =
|
|
52
|
+
noTag === false ? (
|
|
53
|
+
<Tag {...defaultTagProps} {...tagProps} {...otherProps}>
|
|
54
|
+
{label ?? "n/a"}
|
|
55
|
+
</Tag>
|
|
56
|
+
) : (
|
|
57
|
+
<>{label ?? "n/a"}</>
|
|
58
|
+
);
|
|
59
|
+
const defaultTooltipProps: TooltipProps = {
|
|
60
|
+
children: naElement,
|
|
61
|
+
content: tooltip,
|
|
62
|
+
intent,
|
|
63
|
+
addIndicator: noTag,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return tooltip ? <Tooltip {...defaultTooltipProps} {...tooltipProps} /> : naElement;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default NotAvailable;
|
|
@@ -3,7 +3,8 @@ import { LoremIpsum, loremIpsum } from "react-lorem-ipsum";
|
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { helpersArgTypes } from "../../../.storybook/helpers";
|
|
6
|
-
import {
|
|
6
|
+
import { Markdown } from "../../cmem";
|
|
7
|
+
import { Button, HtmlContentBlock, Notification, Spacing } from "../../components";
|
|
7
8
|
|
|
8
9
|
export default {
|
|
9
10
|
title: "Components/Notification",
|
|
@@ -14,17 +14,18 @@ import Icon, { IconProps } from "./../Icon/Icon";
|
|
|
14
14
|
import { TestIconProps } from "./../Icon/TestIcon";
|
|
15
15
|
|
|
16
16
|
export interface NotificationProps
|
|
17
|
-
extends
|
|
17
|
+
extends
|
|
18
|
+
TestableComponent,
|
|
18
19
|
Omit<BlueprintToastProps, "message" | "action" | "icon" | "intent">,
|
|
19
20
|
React.HTMLAttributes<HTMLDivElement> {
|
|
20
21
|
/**
|
|
21
22
|
* Extra user action elements
|
|
22
23
|
*/
|
|
23
|
-
actions?: JSX.Element | JSX.Element[];
|
|
24
|
+
actions?: React.JSX.Element | React.JSX.Element[];
|
|
24
25
|
/**
|
|
25
26
|
* Notification message that can be used as alternative to children elements.
|
|
26
27
|
*/
|
|
27
|
-
message?: JSX.Element | string;
|
|
28
|
+
message?: React.JSX.Element | string;
|
|
28
29
|
/**
|
|
29
30
|
* Intent state of the notification.
|
|
30
31
|
*/
|
|
@@ -97,7 +98,7 @@ export const Notification = ({
|
|
|
97
98
|
timeout={timeout ? timeout : 0}
|
|
98
99
|
icon={
|
|
99
100
|
notificationIcon
|
|
100
|
-
? React.cloneElement(notificationIcon as JSX.Element, {
|
|
101
|
+
? React.cloneElement(notificationIcon as React.JSX.Element, {
|
|
101
102
|
className: (notificationIcon.props.className ?? "") + ` ${BlueprintClassNames.ICON}`,
|
|
102
103
|
})
|
|
103
104
|
: undefined
|
|
@@ -35,7 +35,7 @@ export const OverviewItemDepiction = ({
|
|
|
35
35
|
"type" in children &&
|
|
36
36
|
(children.type === Icon || children.type === TestIcon)
|
|
37
37
|
) {
|
|
38
|
-
return <Depiction image={children as JSX.Element} {...defaultDepictionDisplay} />;
|
|
38
|
+
return <Depiction image={children as React.JSX.Element} {...defaultDepictionDisplay} />;
|
|
39
39
|
}
|
|
40
40
|
return (
|
|
41
41
|
<div
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
OverviewItemLine,
|
|
15
15
|
Tag,
|
|
16
16
|
TagList,
|
|
17
|
-
} from "
|
|
17
|
+
} from "./../../../components";
|
|
18
18
|
import { FullExample as OtherDepictionExample } from "./../../Depiction/stories/Depiction.stories";
|
|
19
19
|
import { Default as ActionsExample } from "./OverviewItemActions.stories";
|
|
20
20
|
import { AutoTransform as DepictionExample } from "./OverviewItemDepiction.stories";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
|
-
import { Button, ContextMenu, IconButton, OverviewItemActions } from "
|
|
4
|
+
import { Button, ContextMenu, IconButton, OverviewItemActions } from "./../../../components";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: "Components/OverviewItem/OverviewItemActions",
|
|
@@ -3,7 +3,7 @@ import { Meta, StoryFn } from "@storybook/react";
|
|
|
3
3
|
|
|
4
4
|
import png16to9 from "../../Depiction/stories/test-16to9.png";
|
|
5
5
|
|
|
6
|
-
import { Depiction, Icon, OverviewItem, OverviewItemDepiction } from "
|
|
6
|
+
import { Depiction, Icon, OverviewItem, OverviewItemDepiction } from "./../../../components";
|
|
7
7
|
import { FullExample as DepictionExample } from "./../../Depiction/stories/Depiction.stories";
|
|
8
8
|
|
|
9
9
|
export default {
|
|
@@ -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 { OverviewItemDescription, OverviewItemLine } from "
|
|
5
|
+
import { OverviewItemDescription, OverviewItemLine } from "./../../../components";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: "Components/OverviewItem/OverviewItemDescription",
|
|
@@ -86,7 +86,7 @@ export const OverviewItemListPerformance = ({
|
|
|
86
86
|
// eslint-disable-next-line no-console
|
|
87
87
|
console.log(
|
|
88
88
|
"OverviewItemListPerformance Rendering time (s)",
|
|
89
|
-
(renderEnd.getTime() - renderStart.getTime()) / 1000
|
|
89
|
+
(renderEnd.getTime() - renderStart.getTime()) / 1000,
|
|
90
90
|
);
|
|
91
91
|
|
|
92
92
|
if (containerRef.current) {
|
|
@@ -96,7 +96,7 @@ export const OverviewItemListPerformance = ({
|
|
|
96
96
|
// eslint-disable-next-line no-console
|
|
97
97
|
console.log(
|
|
98
98
|
`Change ${++changeCount} after time (s)`,
|
|
99
|
-
(renderChange.getTime() - renderEnd.getTime()) / 1000
|
|
99
|
+
(renderChange.getTime() - renderEnd.getTime()) / 1000,
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
if (observerRef.current) {
|
|
@@ -103,7 +103,7 @@ export const usePagination = ({
|
|
|
103
103
|
({ page, pageSize }: { page: any; pageSize: any }) => {
|
|
104
104
|
setPagination({ ..._pagination.current, current: page, limit: pageSize });
|
|
105
105
|
},
|
|
106
|
-
[setPagination]
|
|
106
|
+
[setPagination],
|
|
107
107
|
);
|
|
108
108
|
// When the total number of pageable items changes, this function must be called
|
|
109
109
|
const onTotalChange = React.useCallback(
|
|
@@ -112,7 +112,7 @@ export const usePagination = ({
|
|
|
112
112
|
setPagination({ ..._pagination.current, total: total, current: 1 });
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
[setPagination]
|
|
115
|
+
[setPagination],
|
|
116
116
|
);
|
|
117
117
|
const paginationElement = (
|
|
118
118
|
<Pagination
|
|
@@ -10,6 +10,14 @@ export default {
|
|
|
10
10
|
|
|
11
11
|
const PaginationExample = (args) => <Pagination {...args} />;
|
|
12
12
|
|
|
13
|
+
const ContainerQueriesExample = (args) => (
|
|
14
|
+
<>
|
|
15
|
+
<Pagination {...args} style={{ maxWidth: "100%" }} />
|
|
16
|
+
<Pagination {...args} style={{ maxWidth: "32rem" }} />
|
|
17
|
+
<Pagination {...args} style={{ maxWidth: "26rem" }} />
|
|
18
|
+
</>
|
|
19
|
+
);
|
|
20
|
+
|
|
13
21
|
export const Default: StoryFn<typeof Pagination> = PaginationExample.bind({});
|
|
14
22
|
Default.args = {
|
|
15
23
|
pageSizes: [10, 20, 50, 100],
|
|
@@ -28,3 +36,27 @@ ExtendedPagesizeSelection.args = {
|
|
|
28
36
|
{ text: "Large page with 100 items", value: "100" },
|
|
29
37
|
],
|
|
30
38
|
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* This story demonstrates a minimal pagination and is a check that elements are always hidden.
|
|
42
|
+
*/
|
|
43
|
+
export const MinimalPagination: StoryFn<typeof Pagination> = PaginationExample.bind({});
|
|
44
|
+
MinimalPagination.args = {
|
|
45
|
+
...Default.args,
|
|
46
|
+
hidePageSizeConfiguration: true,
|
|
47
|
+
hidePageSelect: true,
|
|
48
|
+
hideInfoText: true,
|
|
49
|
+
hideNavigationArrows: false,
|
|
50
|
+
hideBorders: false,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Demonstrates the breakpoints of the container queries.
|
|
55
|
+
* If the container gets too small, some elements are removed automatically.
|
|
56
|
+
* First, page selector disappears, then the page size selector.
|
|
57
|
+
* Info text and navigation arrow are never hidden automatically.
|
|
58
|
+
*/
|
|
59
|
+
export const ContainerQueries: StoryFn<typeof Pagination> = ContainerQueriesExample.bind({});
|
|
60
|
+
ContainerQueries.args = {
|
|
61
|
+
...Default.args,
|
|
62
|
+
};
|
|
@@ -7,6 +7,8 @@ $eccgui-size-typo-pagination: $eccgui-size-typo-caption !default;
|
|
|
7
7
|
$eccgui-size-pagination-height-medium: $pt-button-height !default;
|
|
8
8
|
$eccgui-size-pagination-height-small: $pt-button-height-small !default;
|
|
9
9
|
$eccgui-size-pagination-height-large: $pt-button-height-large !default;
|
|
10
|
+
$eccgui-size-pagination-breakpoint-wide: 32rem !default;
|
|
11
|
+
$eccgui-size-pagination-breakpoint-small: 26rem !default;
|
|
10
12
|
|
|
11
13
|
.#{$prefix}--pagination {
|
|
12
14
|
min-block-size: $eccgui-size-pagination-height-medium;
|
|
@@ -15,8 +17,8 @@ $eccgui-size-pagination-height-large: $pt-button-height-large !default;
|
|
|
15
17
|
|
|
16
18
|
.#{$prefix}--form-item,
|
|
17
19
|
.#{$prefix}--select-input {
|
|
18
|
-
font-size: 100%;
|
|
19
20
|
text-overflow: clip;
|
|
21
|
+
font-size: 100%;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -38,7 +40,7 @@ span.#{$prefix}--pagination__text {
|
|
|
38
40
|
padding-left: 0;
|
|
39
41
|
|
|
40
42
|
& > *:not(:last-child) {
|
|
41
|
-
display: none;
|
|
43
|
+
display: none !important;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -56,7 +58,7 @@ span.#{$prefix}--pagination__text {
|
|
|
56
58
|
|
|
57
59
|
.#{$eccgui}-pagination--hideinfotext {
|
|
58
60
|
.#{$prefix}--pagination__left > .#{$prefix}--pagination__text:last-child {
|
|
59
|
-
display: none;
|
|
61
|
+
display: none !important;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
& .#{$prefix}--select__item-count .#{$prefix}--select-input {
|
|
@@ -66,13 +68,13 @@ span.#{$prefix}--pagination__text {
|
|
|
66
68
|
|
|
67
69
|
.#{$eccgui}-pagination--hidepageselect {
|
|
68
70
|
.#{$prefix}--pagination__right > *:not(.#{$prefix}--pagination__control-buttons) {
|
|
69
|
-
display: none;
|
|
71
|
+
display: none !important;
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.#{$eccgui}-pagination--hidenavigation {
|
|
74
76
|
.#{$prefix}--pagination__right > .#{$prefix}--pagination__control-buttons {
|
|
75
|
-
display: none;
|
|
77
|
+
display: none !important;
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -137,3 +139,51 @@ span.#{$prefix}--pagination__text {
|
|
|
137
139
|
line-height: $eccgui-size-pagination-height-large;
|
|
138
140
|
}
|
|
139
141
|
}
|
|
142
|
+
|
|
143
|
+
// fix breakpoints for container queries
|
|
144
|
+
// Carbon does not provide the option to configure that breakpoint
|
|
145
|
+
@container pagination (min-width: #{$eccgui-size-pagination-breakpoint-small}) {
|
|
146
|
+
.#{$prefix}--pagination.#{$eccgui}-pagination {
|
|
147
|
+
.#{$prefix}--pagination__control-buttons {
|
|
148
|
+
display: flex;
|
|
149
|
+
}
|
|
150
|
+
.#{$prefix}--pagination__left > * {
|
|
151
|
+
display: inherit;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@container pagination (min-width: #{$eccgui-size-pagination-breakpoint-wide}) {
|
|
157
|
+
.#{$prefix}--pagination.#{$eccgui}-pagination {
|
|
158
|
+
.#{$prefix}--pagination__right > * {
|
|
159
|
+
display: inherit;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@container pagination (max-width: #{$eccgui-size-pagination-breakpoint-small}) {
|
|
165
|
+
.#{$prefix}--pagination.#{$eccgui}-pagination {
|
|
166
|
+
.#{$prefix}--pagination__left > * {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
.#{$prefix}--pagination__items-count {
|
|
170
|
+
margin-left: 0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@container pagination (max-width: #{$eccgui-size-pagination-breakpoint-wide}) {
|
|
176
|
+
.#{$prefix}--pagination.#{$eccgui}-pagination {
|
|
177
|
+
.#{$prefix}--pagination__right > * {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.#{$prefix}--pagination__items-count {
|
|
182
|
+
display: initial;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.#{$prefix}--pagination__control-buttons {
|
|
186
|
+
display: flex;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -7,7 +7,7 @@ import { PropertyValuePair } from "./PropertyValuePair";
|
|
|
7
7
|
export interface PropertyValueListProps extends React.HTMLAttributes<HTMLDListElement> {
|
|
8
8
|
/**
|
|
9
9
|
* Only use one single column and put property label and value below each other.
|
|
10
|
-
* This property is
|
|
10
|
+
* This property is forward to direct `PropertyValuePair` children.
|
|
11
11
|
*/
|
|
12
12
|
singleColumn?: boolean;
|
|
13
13
|
}
|
|
@@ -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 { HtmlContentBlock, RadioButton } from "
|
|
5
|
+
import { HtmlContentBlock, RadioButton } from "../../../components";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: "Forms/RadioButton",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { loremIpsum } from "react-lorem-ipsum";
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
-
import { fn } from "
|
|
4
|
+
import { fn } from "storybook/test";
|
|
5
5
|
|
|
6
6
|
import { helpersArgTypes } from "../../../.storybook/helpers";
|
|
7
7
|
import { Button, Depiction, MenuItem, Select } from "../../index";
|
|
@@ -3,12 +3,15 @@ import { Classes as BlueprintClasses, InputGroupProps } from "@blueprintjs/core"
|
|
|
3
3
|
import { Select as BlueprintSelect, SelectProps as BlueprintSelectProps } from "@blueprintjs/select";
|
|
4
4
|
|
|
5
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
6
|
+
import { Button, ButtonProps } from "../Button/Button";
|
|
7
|
+
import { ContextOverlayProps } from "../ContextOverlay";
|
|
8
|
+
import Icon from "../Icon/Icon";
|
|
6
9
|
import { TestableComponent } from "../interfaces";
|
|
7
|
-
|
|
8
|
-
import { Button, ButtonProps, ContextOverlayProps, Icon, OverflowText } from "./../../index";
|
|
10
|
+
import OverflowText from "../Typography/OverflowText";
|
|
9
11
|
|
|
10
12
|
export interface SelectProps<T>
|
|
11
|
-
extends
|
|
13
|
+
extends
|
|
14
|
+
TestableComponent,
|
|
12
15
|
Omit<BlueprintSelectProps<T>, "popoverTargetProps" | "popoverContentProps" | "popoverProps" | "popoverRef">,
|
|
13
16
|
Pick<ButtonProps, "icon" | "rightIcon"> {
|
|
14
17
|
/**
|
|
@@ -117,7 +120,7 @@ export function Select<T>({
|
|
|
117
120
|
{typeof rightIcon === "string" ? (
|
|
118
121
|
<Icon name={rightIcon} />
|
|
119
122
|
) : (
|
|
120
|
-
rightIcon ?? <Icon name={"toggler-caretdown"} />
|
|
123
|
+
(rightIcon ?? <Icon name={"toggler-caretdown"} />)
|
|
121
124
|
)}
|
|
122
125
|
</>
|
|
123
126
|
}
|
|
@@ -6,7 +6,7 @@ export interface SkeletonProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* Element that need to displayed using the skeleton styles.
|
|
8
8
|
*/
|
|
9
|
-
children: JSX.Element | JSX.Element[];
|
|
9
|
+
children: React.JSX.Element | React.JSX.Element[];
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ export interface SkeletonProps {
|
|
|
15
15
|
*/
|
|
16
16
|
export function Skeleton({ children }: SkeletonProps) {
|
|
17
17
|
const alteredChildren = React.Children.map(children, (child) => {
|
|
18
|
-
const originalChild = child
|
|
18
|
+
const originalChild = child;
|
|
19
19
|
if (originalChild.props) {
|
|
20
20
|
return React.cloneElement(originalChild, {
|
|
21
21
|
className: originalChild.props.className ? originalChild.props.className + " " + SKELETON : SKELETON,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Spinner as BlueprintSpinner,
|
|
6
6
|
SpinnerProps as BlueprintSpinnerProps,
|
|
7
7
|
} from "@blueprintjs/core";
|
|
8
|
-
import Color from "color";
|
|
8
|
+
import Color, { ColorLike } from "color";
|
|
9
9
|
|
|
10
10
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ export interface SpinnerProps extends Omit<BlueprintSpinnerProps, "size" | "inte
|
|
|
21
21
|
* Must be a valid css color definition.
|
|
22
22
|
* `intent` property will always overwrite this setting.
|
|
23
23
|
*/
|
|
24
|
-
color?:
|
|
24
|
+
color?: ColorLike | "inherit";
|
|
25
25
|
/**
|
|
26
26
|
* Intent state of the spinner.
|
|
27
27
|
* When used the spinner is colored.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LoremIpsum } from "react-lorem-ipsum";
|
|
3
|
-
import { Meta,
|
|
3
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { HtmlContentBlock, StickyTarget } from "../../../../index";
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
argTypes: {},
|
|
11
11
|
} as Meta<typeof StickyTarget>;
|
|
12
12
|
|
|
13
|
-
const Template:
|
|
13
|
+
const Template: StoryFn<typeof StickyTarget> = (args) => (
|
|
14
14
|
<div style={{ height: "10rem", overflow: "auto", position: "relative" }}>
|
|
15
15
|
<HtmlContentBlock>
|
|
16
16
|
{args.getConnectedElement && args.to !== "bottom" && (
|
|
@@ -6,7 +6,7 @@ export interface TitleSubsectionProps extends React.HTMLAttributes<HTMLElement>
|
|
|
6
6
|
/**
|
|
7
7
|
* HTML tag to use for element. As default element `h3` is used for a string as children, otherwise `div`.
|
|
8
8
|
*/
|
|
9
|
-
useHtmlElement?: keyof JSX.IntrinsicElements;
|
|
9
|
+
useHtmlElement?: keyof React.JSX.IntrinsicElements;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TitleSubsection = ({ children, className = "", useHtmlElement, ...restProps }: TitleSubsectionProps) => {
|
|
@@ -20,7 +20,7 @@ export const TitleSubsection = ({ children, className = "", useHtmlElement, ...r
|
|
|
20
20
|
...restProps,
|
|
21
21
|
className: `${eccgui}-structure__title-subsection ` + className,
|
|
22
22
|
},
|
|
23
|
-
children
|
|
23
|
+
children,
|
|
24
24
|
);
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -22,7 +22,7 @@ const defaultArgs: SuggestFieldProps<string, string> = {
|
|
|
22
22
|
onSearch: (query: string) => {
|
|
23
23
|
const multiWord = highlighterUtils.extractSearchWords(query, true);
|
|
24
24
|
return ["search item A", "search element B", "search object C"].filter((word) =>
|
|
25
|
-
highlighterUtils.matchesAllWords(word.toLowerCase(), multiWord)
|
|
25
|
+
highlighterUtils.matchesAllWords(word.toLowerCase(), multiWord),
|
|
26
26
|
);
|
|
27
27
|
},
|
|
28
28
|
onChange: (elem) => {
|
|
@@ -76,7 +76,7 @@ const allowCustomValues: SuggestFieldProps<string, string> = {
|
|
|
76
76
|
createNewItem: {
|
|
77
77
|
itemRenderer: suggestFieldUtils.createNewItemRendererFactory(
|
|
78
78
|
(query: string) => `Create new item: ${query}`,
|
|
79
|
-
"item-add-artefact"
|
|
79
|
+
"item-add-artefact",
|
|
80
80
|
),
|
|
81
81
|
itemFromQuery: (item) => item,
|
|
82
82
|
},
|
|
@@ -9,7 +9,8 @@ type TableRowHeightSize = "small" | "medium" | "large";
|
|
|
9
9
|
// workaround to get type/interface
|
|
10
10
|
type CarbonTableProps = React.ComponentProps<typeof CarbonTable>;
|
|
11
11
|
export interface TableProps
|
|
12
|
-
extends
|
|
12
|
+
extends
|
|
13
|
+
Omit<CarbonTableProps, "size" | "overflowMenuOnHover" | "stickyHeader" | "useStaticWidth">,
|
|
13
14
|
React.TableHTMLAttributes<HTMLTableElement> {
|
|
14
15
|
/**
|
|
15
16
|
* Sets basically the height of a row inside the table.
|
|
@@ -50,7 +51,7 @@ export function Table({
|
|
|
50
51
|
children,
|
|
51
52
|
...otherCarbonTableProps
|
|
52
53
|
}: TableProps) {
|
|
53
|
-
let colLayout: boolean | JSX.Element = false;
|
|
54
|
+
let colLayout: boolean | React.JSX.Element = false;
|
|
54
55
|
if (!!columnWidths && columnWidths.length > 0) {
|
|
55
56
|
colLayout = (
|
|
56
57
|
<colgroup className={`${eccgui}-simpletable__layout`}>
|
|
@@ -12,21 +12,23 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
|
12
12
|
import { TableProps, tableRowHeightSizes } from "./Table";
|
|
13
13
|
|
|
14
14
|
export interface TableDataContainerProps
|
|
15
|
-
extends
|
|
15
|
+
extends
|
|
16
|
+
Omit<
|
|
16
17
|
CarbonDataTableProps<
|
|
17
18
|
Array<Omit<CarbonDataTableRow<Array<CarbonDataTableHeader>>, "cells">>,
|
|
18
19
|
Array<CarbonDataTableHeader>
|
|
19
20
|
>,
|
|
20
21
|
"size" | "overflowMenuOnHover" | "stickyHeader" | "useStaticWidth"
|
|
21
22
|
>,
|
|
22
|
-
React.TableHTMLAttributes<HTMLTableElement> {
|
|
23
|
-
children(signature: any): JSX.Element;
|
|
23
|
+
Omit<React.TableHTMLAttributes<HTMLTableElement>, "children"> {
|
|
24
|
+
children(signature: any): React.JSX.Element;
|
|
24
25
|
size?: TableProps["size"];
|
|
25
26
|
}
|
|
26
27
|
export interface TableSimpleContainerProps
|
|
27
|
-
extends
|
|
28
|
+
extends
|
|
29
|
+
Omit<CarbonTableContainerProps, "description" | "stickyHeader" | "title" | "useStaticWidth">,
|
|
28
30
|
React.HTMLAttributes<HTMLDivElement> {
|
|
29
|
-
children?: JSX.Element;
|
|
31
|
+
children?: React.JSX.Element;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export type TableContainerProps = TableDataContainerProps | TableSimpleContainerProps;
|
|
@@ -46,7 +48,10 @@ export function TableContainer({ className = "", ...otherProps }: TableContainer
|
|
|
46
48
|
/>
|
|
47
49
|
</CarbonDataTable.TableContainer>
|
|
48
50
|
) : (
|
|
49
|
-
<CarbonDataTable.TableContainer
|
|
51
|
+
<CarbonDataTable.TableContainer
|
|
52
|
+
{...{ ...otherProps, children: otherProps.children as React.ReactNode }}
|
|
53
|
+
className={`${eccgui}-simpletable__container ` + className}
|
|
54
|
+
/>
|
|
50
55
|
);
|
|
51
56
|
}
|
|
52
57
|
|
|
@@ -9,7 +9,8 @@ import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
|
9
9
|
import IconButton from "./../Icon/IconButton";
|
|
10
10
|
|
|
11
11
|
export interface TableExpandHeaderProps
|
|
12
|
-
extends
|
|
12
|
+
extends
|
|
13
|
+
Omit<
|
|
13
14
|
CarbonTableExpandHeaderProps,
|
|
14
15
|
"children" | "ariaLabel" | "enableExpando" | "expandIconDescription" | "aria-label"
|
|
15
16
|
>,
|
|
@@ -6,12 +6,13 @@ import { usePrefix as carbonPrefix } from "@carbon/react";
|
|
|
6
6
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
7
7
|
|
|
8
8
|
import IconButton from "./../Icon/IconButton";
|
|
9
|
-
import
|
|
9
|
+
import TableCell from "./TableCell";
|
|
10
10
|
|
|
11
11
|
// workaround to get type/interface
|
|
12
12
|
type CarbonTableExpandRowProps = React.ComponentProps<typeof CarbonTableExpandRow>;
|
|
13
13
|
export interface TableExpandRowProps
|
|
14
|
-
extends
|
|
14
|
+
extends
|
|
15
|
+
Omit<CarbonTableExpandRowProps, "children" | "ref" | "ariaLabel" | "expandIconDescription" | "aria-label">,
|
|
15
16
|
React.HTMLAttributes<HTMLTableRowElement> {
|
|
16
17
|
/**
|
|
17
18
|
* This text is displayed as tooltip for the button that toggles the expanded/collapsed state.
|
|
@@ -7,4 +7,10 @@ export * from "./TableCell";
|
|
|
7
7
|
|
|
8
8
|
// TODO, we may wrap to add own classes (currently not necessary)
|
|
9
9
|
export { TableHead, TableBody, TableExpandedRow, TableHeader } from "@carbon/react";
|
|
10
|
-
export type {
|
|
10
|
+
export type {
|
|
11
|
+
TableHeadProps,
|
|
12
|
+
TableBodyProps,
|
|
13
|
+
TableExpandedRowProps,
|
|
14
|
+
TableHeaderProps,
|
|
15
|
+
DataTableRenderProps,
|
|
16
|
+
} from "@carbon/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Tab as BlueprintTab, TabProps as BlueprintTabProps } from "@blueprintjs/core";
|
|
3
|
-
import Color from "color";
|
|
3
|
+
import Color, { ColorLike } from "color";
|
|
4
4
|
|
|
5
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
6
6
|
import { TestableComponent } from "../interfaces";
|
|
@@ -20,7 +20,7 @@ export interface TabProps extends TestableComponent, Omit<BlueprintTabProps, "ti
|
|
|
20
20
|
*
|
|
21
21
|
* The front color is set automatically, so the tag label is always readable.
|
|
22
22
|
*/
|
|
23
|
-
backgroundColor?:
|
|
23
|
+
backgroundColor?: ColorLike;
|
|
24
24
|
/**
|
|
25
25
|
* In case of not enough space do not shrink this tab in its size.
|
|
26
26
|
*/
|