@eccenca/gui-elements 25.0.0 → 25.1.0-changeupgradedtoreact18cmem6639.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 +124 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +30 -26
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +11 -5
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +1 -3
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +13 -6
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +49 -11
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.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/ReactFlowV12.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +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/common/Intent/index.js +1 -1
- package/dist/cjs/common/Intent/index.js.map +1 -1
- package/dist/cjs/common/index.js +1 -0
- package/dist/cjs/common/index.js.map +1 -1
- package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/cjs/common/utils/colorHash.js +26 -12
- package/dist/cjs/common/utils/colorHash.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +5 -1
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationViewability.js +33 -0
- package/dist/cjs/components/Application/ApplicationViewability.js.map +1 -0
- package/dist/cjs/components/Application/index.js +1 -0
- package/dist/cjs/components/Application/index.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +2 -9
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +6 -2
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/ColorField/ColorField.js +114 -0
- package/dist/cjs/components/ColorField/ColorField.js.map +1 -0
- 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 +3 -2
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +48 -0
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -0
- 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 +10 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/transformIcon.js +14 -0
- package/dist/cjs/components/Icon/transformIcon.js.map +1 -0
- package/dist/cjs/components/MultiSelect/MultiSelect.js +63 -24
- 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/RadioButton/RadioButton.js +5 -2
- package/dist/cjs/components/RadioButton/RadioButton.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/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/TableExpandRow.js +2 -2
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
- package/dist/cjs/components/TextField/useTextValidation.js +17 -8
- package/dist/cjs/components/TextField/useTextValidation.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +11 -7
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Typography/InlineText.js +29 -0
- package/dist/cjs/components/Typography/InlineText.js.map +1 -0
- package/dist/cjs/components/Typography/index.js +1 -0
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/components/VisualTour/VisualTour.js +30 -36
- package/dist/cjs/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/cjs/components/index.js +3 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +59 -21
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +2 -2
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js +23 -0
- package/dist/cjs/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js.map +1 -0
- package/dist/cjs/extensions/codemirror/toolbars/markdown.toolbar.js +5 -2
- package/dist/cjs/extensions/codemirror/toolbars/markdown.toolbar.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +8 -3
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +6 -4
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +2 -2
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +5 -2
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +1 -1
- 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 +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +7 -5
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +5 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +6 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +19 -14
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +4 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +1 -3
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +9 -5
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +57 -9
- 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/ReactFlowV12.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +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/common/Intent/index.js +1 -1
- package/dist/esm/common/Intent/index.js.map +1 -1
- package/dist/esm/common/index.js +2 -1
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/esm/common/utils/colorHash.js +26 -13
- package/dist/esm/common/utils/colorHash.js.map +1 -1
- package/dist/esm/common/utils/reduceToText.js +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js +5 -1
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Application/ApplicationViewability.js +28 -0
- package/dist/esm/components/Application/ApplicationViewability.js.map +1 -0
- package/dist/esm/components/Application/index.js +1 -0
- package/dist/esm/components/Application/index.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +1 -1
- 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 +9 -16
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/esm/components/Button/Button.js +6 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/ColorField/ColorField.js +140 -0
- package/dist/esm/components/ColorField/ColorField.js.map +1 -0
- 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 +42 -0
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -0
- 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 +10 -1
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Icon/transformIcon.js +21 -0
- package/dist/esm/components/Icon/transformIcon.js.map +1 -0
- package/dist/esm/components/MultiSelect/MultiSelect.js +66 -27
- 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/RadioButton/RadioButton.js +6 -2
- package/dist/esm/components/RadioButton/RadioButton.js.map +1 -1
- package/dist/esm/components/Select/Select.js +3 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.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/TableExpandRow.js +1 -1
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
- package/dist/esm/components/TextField/useTextValidation.js +39 -8
- package/dist/esm/components/TextField/useTextValidation.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +11 -7
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/Typography/InlineText.js +33 -0
- package/dist/esm/components/Typography/InlineText.js.map +1 -0
- package/dist/esm/components/Typography/index.js +1 -0
- package/dist/esm/components/Typography/index.js.map +1 -1
- package/dist/esm/components/VisualTour/VisualTour.js +31 -37
- package/dist/esm/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/esm/components/index.js +3 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +62 -24
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +3 -3
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js +47 -0
- package/dist/esm/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js.map +1 -0
- package/dist/esm/extensions/codemirror/toolbars/markdown.toolbar.js +16 -2
- package/dist/esm/extensions/codemirror/toolbars/markdown.toolbar.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +4 -2
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js +3 -1
- 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/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 +1 -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 +4 -2
- 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.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +13 -4
- package/dist/types/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +1 -1
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +4 -4
- package/dist/types/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +5 -1
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +27 -11
- 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/index.d.ts +2 -1
- package/dist/types/common/utils/CssCustomProperties.d.ts +2 -2
- package/dist/types/common/utils/colorHash.d.ts +5 -4
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
- package/dist/types/components/Application/ApplicationViewability.d.ts +36 -0
- package/dist/types/components/Application/index.d.ts +1 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +2 -2
- 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 +30 -0
- 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 +8 -2
- package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +22 -0
- package/dist/types/components/Depiction/Depiction.d.ts +1 -1
- 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/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +9 -1
- package/dist/types/components/Icon/transformIcon.d.ts +2 -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 +17 -5
- 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/RadioButton/RadioButton.d.ts +8 -2
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/components/Structure/TitleSubsection.d.ts +3 -6
- package/dist/types/components/SuggestField/index.d.ts +2 -2
- package/dist/types/components/Table/TableContainer.d.ts +3 -3
- package/dist/types/components/Tabs/Tab.d.ts +4 -10
- package/dist/types/components/Tabs/TabTitle.d.ts +1 -1
- package/dist/types/components/TextField/TextArea.d.ts +1 -1
- package/dist/types/components/Typography/InlineText.d.ts +13 -0
- package/dist/types/components/Typography/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +12 -9
- package/dist/types/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.d.ts +1 -1
- package/dist/types/extensions/codemirror/tests/codemirrorTestHelper.d.ts +1 -1
- package/dist/types/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.d.ts +24 -0
- package/dist/types/extensions/codemirror/toolbars/markdown.toolbar.d.ts +2 -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/package.json +65 -61
- package/src/_shame.scss +1 -35
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +3 -8
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +74 -41
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +6 -4
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +5 -5
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +16 -6
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +72 -19
- package/src/cmem/ContentBlobToggler/stories/StringPreviewContentBlobToggler.stories.tsx +27 -0
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +98 -0
- package/src/cmem/markdown/Markdown.stories.tsx +2 -2
- package/src/cmem/markdown/Markdown.tsx +2 -1
- package/src/cmem/markdown/markdown.scss +1 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -0
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +1 -1
- package/src/cmem/react-flow/configuration/graph.ts +2 -3
- package/src/cmem/react-flow/configuration/linking.ts +2 -3
- package/src/cmem/react-flow/configuration/workflow.ts +2 -3
- package/src/common/Intent/index.ts +2 -1
- package/src/common/index.ts +2 -1
- package/src/common/scss/_accessibility-defaults.scss +101 -0
- package/src/common/utils/CssCustomProperties.ts +5 -3
- package/src/common/utils/colorHash.ts +38 -20
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/Stories/AccordionItem.stories.tsx +1 -1
- package/src/components/Application/ApplicationSidebarNavigation.tsx +5 -2
- package/src/components/Application/ApplicationTitle.tsx +7 -1
- package/src/components/Application/ApplicationViewability.tsx +61 -0
- package/src/components/Application/_colors.scss +15 -0
- package/src/components/Application/_content.scss +7 -0
- package/src/components/Application/_header.scss +45 -21
- package/src/components/Application/_sidebar.scss +6 -0
- package/src/components/Application/_toolbar.scss +3 -3
- package/src/components/Application/_viewability.scss +13 -0
- package/src/components/Application/application.scss +1 -0
- package/src/components/Application/index.ts +1 -0
- package/src/components/Application/stories/ApplicationViewability.stories.tsx +37 -0
- package/src/components/Application/stories/ColorPalettes.stories.tsx +4 -3
- package/src/components/Application/tests/ApplicationViewability.test.tsx +43 -0
- package/src/components/AutoSuggestion/AutoSuggestion.scss +3 -1
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +4 -4
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +1 -1
- package/src/components/AutoSuggestion/tests/ExtendedCodeEditor.test.tsx +1 -1
- package/src/components/AutocompleteField/AutoCompleteField.tsx +9 -18
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +1 -1
- package/src/components/Badge/Badge.stories.tsx +1 -1
- package/src/components/Badge/Badge.test.tsx +22 -0
- package/src/components/Breadcrumb/breadcrumb.scss +2 -2
- package/src/components/Button/Button.test.tsx +16 -2
- package/src/components/Button/Button.tsx +11 -6
- package/src/components/Button/button.scss +2 -0
- package/src/components/Card/CardHeader.tsx +1 -1
- package/src/components/Card/card.scss +6 -0
- package/src/components/Card/stories/Card.stories.tsx +1 -1
- package/src/components/Checkbox/Stories/Checkbox.stories.tsx +1 -1
- package/src/components/Checkbox/checkbox.scss +23 -3
- package/src/components/ColorField/ColorField.stories.tsx +72 -0
- package/src/components/ColorField/ColorField.test.tsx +101 -0
- package/src/components/ColorField/ColorField.tsx +200 -0
- package/src/components/ColorField/_colorfield.scss +67 -0
- package/src/components/ContentGroup/ContentGroup.stories.tsx +1 -1
- package/src/components/ContentGroup/ContentGroup.tsx +3 -3
- package/src/components/ContentGroup/_contentgroup.scss +9 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +10 -4
- package/src/components/ContextOverlay/ContextOverlay.tsx +23 -4
- package/src/components/DecoupledOverlay/DecoupledOverlay.stories.tsx +30 -0
- package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +100 -0
- package/src/components/DecoupledOverlay/_decoupledoverlay.scss +46 -0
- package/src/components/Depiction/Depiction.tsx +1 -1
- package/src/components/Depiction/depiction.scss +6 -0
- package/src/components/Dialog/SimpleDialog.tsx +1 -1
- package/src/components/Dialog/dialog.scss +10 -2
- package/src/components/Dialog/stories/Modal.stories.tsx +1 -1
- package/src/components/FlexibleLayout/flexiblelayout.scss +16 -0
- 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.scss +17 -0
- package/src/components/Grid/stories/Grid.stories.tsx +10 -7
- package/src/components/Grid/stories/GridColumn.stories.tsx +1 -1
- package/src/components/Grid/stories/GridRow.stories.tsx +14 -8
- package/src/components/HoverToggler/HoverToggler.tsx +2 -2
- package/src/components/Icon/IconButton.tsx +3 -3
- package/src/components/Icon/canonicalIconNames.tsx +11 -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 +17 -0
- package/src/components/Label/Label.tsx +3 -3
- package/src/components/Link/Link.stories.tsx +30 -0
- package/src/components/Link/link.scss +33 -8
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/Stories/MenuItem.stories.tsx +1 -1
- package/src/components/MultiSelect/MultiSelect.tsx +104 -32
- package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +40 -1
- package/src/components/MultiSuggestField/_multisuggestfield.scss +18 -0
- package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +89 -37
- package/src/components/NotAvailable/NotAvailable.stories.tsx +15 -0
- package/src/components/NotAvailable/NotAvailable.tsx +71 -0
- package/src/components/Notification/Notification.stories.tsx +2 -1
- package/src/components/Notification/Notification.tsx +3 -3
- package/src/components/Notification/notification.scss +6 -0
- package/src/components/OverviewItem/OverviewItemActions.tsx +1 -1
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +1 -1
- package/src/components/OverviewItem/overviewitem.scss +9 -0
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +29 -1
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +3 -3
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +2 -2
- package/src/components/OverviewItem/stories/OverviewItemLine.stories.tsx +1 -1
- 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/PropertyValuePair/propertyvalue.scss +23 -1
- package/src/components/RadioButton/RadioButton.tsx +15 -3
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
- package/src/components/RadioButton/radiobutton.scss +18 -1
- package/src/components/Select/Select.tsx +8 -6
- package/src/components/Separation/separation.scss +6 -0
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Structure/TitleSubsection.tsx +1 -1
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/Table/TableContainer.tsx +4 -4
- package/src/components/Table/TableExpandRow.tsx +1 -1
- package/src/components/Table/table.scss +22 -0
- package/src/components/Tabs/TabTitle.tsx +1 -1
- package/src/components/Tabs/stories/TabTitle.stories.tsx +7 -2
- package/src/components/Tabs/tabs.scss +2 -2
- package/src/components/Tag/stories/Tag.stories.tsx +1 -1
- package/src/components/Tag/stories/TagList.stories.tsx +3 -3
- package/src/components/Tag/tag.scss +19 -9
- package/src/components/TextField/TextArea.tsx +1 -1
- package/src/components/TextField/stories/TextArea.stories.tsx +1 -1
- package/src/components/TextField/stories/TextField.stories.tsx +24 -3
- package/src/components/TextField/tests/useTextValidation.test.tsx +83 -0
- package/src/components/TextField/textfield.scss +20 -0
- package/src/components/TextField/useTextValidation.ts +17 -8
- package/src/components/TextReducer/TextReducer.stories.tsx +4 -1
- package/src/components/TextReducer/TextReducer.test.tsx +3 -3
- package/src/components/Toolbar/toolbar.scss +1 -2
- package/src/components/Tooltip/Tooltip.test.tsx +40 -5
- package/src/components/Tooltip/Tooltip.tsx +15 -11
- package/src/components/Typography/InlineText.tsx +24 -0
- package/src/components/Typography/_reset.scss +2 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/Typography/stories/InlineText.stories.tsx +27 -0
- package/src/components/Typography/typography.scss +37 -3
- package/src/components/VisualTour/VisualTour.tsx +35 -55
- package/src/components/VisualTour/visualTour.scss +0 -34
- package/src/components/index.scss +2 -0
- package/src/components/index.ts +3 -0
- package/src/configuration/_customproperties.scss +32 -0
- package/src/configuration/stories/customproperties.stories.tsx +122 -0
- package/src/extensions/codemirror/CodeMirror.stories.tsx +9 -4
- package/src/extensions/codemirror/CodeMirror.tsx +93 -37
- package/src/extensions/codemirror/_codemirror.scss +18 -28
- package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +1 -2
- package/src/extensions/codemirror/tests/CodeEditor.test.tsx +138 -0
- package/src/extensions/codemirror/tests/EditorAppearanceConfigMenu.test.tsx +131 -0
- package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +3 -3
- package/src/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.tsx +59 -0
- package/src/extensions/codemirror/toolbars/markdown.toolbar.tsx +17 -3
- package/src/extensions/react-flow/_config.scss +3 -3
- package/src/extensions/react-flow/_react-flow_v12.scss +1 -1
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +15 -11
- package/src/extensions/react-flow/edges/EdgeNew.tsx +6 -6
- package/src/extensions/react-flow/edges/EdgeTools.tsx +5 -6
- package/src/extensions/react-flow/edges/_edges.scss +3 -2
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +2 -1
- package/src/extensions/react-flow/handles/HandleContent.tsx +4 -4
- package/src/extensions/react-flow/handles/HandleDefault.tsx +3 -3
- package/src/extensions/react-flow/handles/HandleTools.tsx +3 -3
- package/src/extensions/react-flow/handles/_handles.scss +3 -3
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +1 -1
- package/src/extensions/react-flow/minimap/MiniMap.tsx +2 -1
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeContent.tsx +20 -19
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +1 -2
- package/src/extensions/react-flow/nodes/NodeTools.tsx +8 -8
- package/src/extensions/react-flow/nodes/_nodes.scss +4 -3
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +1 -0
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +3 -1
- package/src/includes/carbon-components/_requisits.scss +3 -1
- package/src/index.scss +2 -0
- package/src/test/setupTests.js +1 -1
|
@@ -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
|
|
@@ -197,3 +197,12 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
|
|
|
197
197
|
display: flex;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
+
|
|
201
|
+
@media print {
|
|
202
|
+
.#{$eccgui}-overviewitem__actions {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
.#{$eccgui}-overviewitem__depiction {
|
|
206
|
+
print-color-adjust: exact;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -6,15 +6,20 @@ import {
|
|
|
6
6
|
Badge,
|
|
7
7
|
Card,
|
|
8
8
|
Depiction,
|
|
9
|
+
OverflowText,
|
|
9
10
|
OverviewItem,
|
|
10
11
|
OverviewItemActions,
|
|
11
12
|
OverviewItemDepiction,
|
|
12
13
|
OverviewItemDescription,
|
|
13
|
-
|
|
14
|
+
OverviewItemLine,
|
|
15
|
+
Tag,
|
|
16
|
+
TagList,
|
|
17
|
+
} from "./../../../components";
|
|
14
18
|
import { FullExample as OtherDepictionExample } from "./../../Depiction/stories/Depiction.stories";
|
|
15
19
|
import { Default as ActionsExample } from "./OverviewItemActions.stories";
|
|
16
20
|
import { AutoTransform as DepictionExample } from "./OverviewItemDepiction.stories";
|
|
17
21
|
import { Default as DescriptionExample } from "./OverviewItemDescription.stories";
|
|
22
|
+
import { Default as LineExample } from "./OverviewItemLine.stories";
|
|
18
23
|
|
|
19
24
|
export default {
|
|
20
25
|
title: "Components/OverviewItem",
|
|
@@ -76,3 +81,26 @@ ItemWithDepictionElement.args = {
|
|
|
76
81
|
hasSpacing: true,
|
|
77
82
|
hasCardWrapper: true,
|
|
78
83
|
};
|
|
84
|
+
|
|
85
|
+
export const ItemWithTags = Template.bind({});
|
|
86
|
+
ItemWithTags.args = {
|
|
87
|
+
children: [
|
|
88
|
+
<OverviewItemDepiction {...DepictionExample.args} key={"depiction"} />,
|
|
89
|
+
<OverviewItemDescription key={"description"}>
|
|
90
|
+
<OverviewItemLine {...LineExample.args} />
|
|
91
|
+
<OverviewItemLine small>
|
|
92
|
+
<OverflowText>
|
|
93
|
+
<TagList>
|
|
94
|
+
<Tag small>Test</Tag>
|
|
95
|
+
<Tag small>Tag</Tag>
|
|
96
|
+
<Tag small>List</Tag>
|
|
97
|
+
</TagList>
|
|
98
|
+
</OverflowText>
|
|
99
|
+
</OverviewItemLine>
|
|
100
|
+
</OverviewItemDescription>,
|
|
101
|
+
<OverviewItemActions children={ActionsExample.args.children[0]} key={"actions"} />,
|
|
102
|
+
],
|
|
103
|
+
densityHigh: false,
|
|
104
|
+
hasSpacing: true,
|
|
105
|
+
hasCardWrapper: true,
|
|
106
|
+
};
|
|
@@ -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",
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
subcomponents: { Button, IconButton, ContextMenu },
|
|
10
10
|
argTypes: {
|
|
11
11
|
children: {
|
|
12
|
-
control:
|
|
12
|
+
control: false,
|
|
13
13
|
description: "User-interactive elements.",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
@@ -20,7 +20,7 @@ const Template: StoryFn<typeof OverviewItemActions> = (args) => <OverviewItemAct
|
|
|
20
20
|
export const Default = Template.bind({});
|
|
21
21
|
Default.args = {
|
|
22
22
|
children: [
|
|
23
|
-
<IconButton name="item-remove"
|
|
23
|
+
<IconButton name="item-remove" text="Remove this item" disruptive />,
|
|
24
24
|
<Button affirmative>Other action</Button>,
|
|
25
25
|
],
|
|
26
26
|
};
|
|
@@ -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",
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
argTypes: {
|
|
14
14
|
children: {
|
|
15
|
-
control:
|
|
15
|
+
control: false,
|
|
16
16
|
description: "Elements for text content.",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
@@ -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
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.#{$eccgui}-propertyvalue__pair {
|
|
8
|
+
clear: both;
|
|
8
9
|
display: block;
|
|
9
10
|
width: 100%;
|
|
10
|
-
clear: both;
|
|
11
11
|
|
|
12
12
|
&.#{$eccgui}-propertyvalue__pair--hasdivider {
|
|
13
13
|
&:not(:last-child) {
|
|
@@ -94,3 +94,25 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
@media print {
|
|
99
|
+
.#{$eccgui}-propertyvalue__pair,
|
|
100
|
+
.#{$eccgui}-propertyvalue__property,
|
|
101
|
+
.#{$eccgui}-propertyvalue__value {
|
|
102
|
+
position: relative;
|
|
103
|
+
float: none !important;
|
|
104
|
+
display: block;
|
|
105
|
+
width: auto;
|
|
106
|
+
height: auto;
|
|
107
|
+
min-height: 0 !important;
|
|
108
|
+
padding: 0;
|
|
109
|
+
margin: 0 !important;
|
|
110
|
+
|
|
111
|
+
&:is(.#{$eccgui}-propertyvalue__property) {
|
|
112
|
+
margin-bottom: 0.25 * $eccgui-size-block-whitespace !important;
|
|
113
|
+
}
|
|
114
|
+
&:is(.#{$eccgui}-propertyvalue__pair) {
|
|
115
|
+
margin-bottom: 0.5 * $eccgui-size-block-whitespace !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Radio as BlueprintRadioButton, RadioProps as BlueprintRadioProps } from "@blueprintjs/core";
|
|
3
|
+
import classNames from "classnames";
|
|
3
4
|
|
|
4
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
+
export interface RadioButtonProps extends BlueprintRadioProps {
|
|
8
|
+
/**
|
|
9
|
+
* Hide the indicator.
|
|
10
|
+
* The element cannot be identified as radio input then but a click on the children can be easily processed via `onChange` event.
|
|
11
|
+
*/
|
|
12
|
+
hideIndicator?: boolean;
|
|
13
|
+
}
|
|
7
14
|
|
|
8
|
-
export const RadioButton = ({ children, className = "", ...restProps }: RadioButtonProps) => {
|
|
15
|
+
export const RadioButton = ({ children, className = "", hideIndicator = false, ...restProps }: RadioButtonProps) => {
|
|
9
16
|
return (
|
|
10
|
-
<BlueprintRadioButton
|
|
17
|
+
<BlueprintRadioButton
|
|
18
|
+
{...restProps}
|
|
19
|
+
className={classNames(`${eccgui}-radiobutton`, className, {
|
|
20
|
+
[`${eccgui}-radiobutton--hidden-indicator`]: hideIndicator,
|
|
21
|
+
})}
|
|
22
|
+
>
|
|
11
23
|
{children}
|
|
12
24
|
</BlueprintRadioButton>
|
|
13
25
|
);
|
|
@@ -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,6 +1,10 @@
|
|
|
1
1
|
// Checkbox need to be imported before, we won't double it here currently
|
|
2
2
|
|
|
3
3
|
.#{$ns}-control {
|
|
4
|
+
--#{$eccgui}-a11y-outline-color: #{$eccgui-color-accent};
|
|
5
|
+
--#{$eccgui}-a11y-outline-width: 2px;
|
|
6
|
+
--#{$eccgui}-a11y-outline-offset: 0;
|
|
7
|
+
|
|
4
8
|
&.#{$ns}-radio {
|
|
5
9
|
input ~ .#{$ns}-control-indicator,
|
|
6
10
|
input:checked ~ .#{$ns}-control-indicator {
|
|
@@ -8,7 +12,7 @@
|
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
input:focus ~ .#{$ns}-control-indicator {
|
|
11
|
-
|
|
15
|
+
@extend .#{$eccgui}-a11y-focus-by-keyboard-static;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
input:disabled ~ .#{$ns}-control-indicator,
|
|
@@ -29,3 +33,16 @@
|
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
}
|
|
36
|
+
|
|
37
|
+
.#{$eccgui}-radiobutton--hidden-indicator {
|
|
38
|
+
&:not(.#{$ns}-align-right) {
|
|
39
|
+
padding-inline-start: 0;
|
|
40
|
+
}
|
|
41
|
+
&:not(.#{$ns}-align-left) {
|
|
42
|
+
padding-inline-end: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
input ~ .#{$ns}-control-indicator {
|
|
46
|
+
visibility: hidden;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import {Classes as BlueprintClasses, InputGroupProps} from "@blueprintjs/core";
|
|
3
|
+
import {Select as BlueprintSelect, SelectProps as BlueprintSelectProps} from "@blueprintjs/select";
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import {
|
|
5
|
+
import {CLASSPREFIX as eccgui} from "../../configuration/constants";
|
|
6
|
+
import {TestableComponent} from "../interfaces";
|
|
7
|
+
import {Button, ButtonProps} from "../Button/Button";
|
|
8
|
+
import {ContextOverlayProps} from "../ContextOverlay";
|
|
9
|
+
import OverflowText from "../Typography/OverflowText";
|
|
10
|
+
import Icon from "../Icon/Icon";
|
|
9
11
|
|
|
10
12
|
export interface SelectProps<T>
|
|
11
13
|
extends TestableComponent,
|
|
@@ -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,
|
|
@@ -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) => {
|
|
@@ -50,7 +50,7 @@ export function Table({
|
|
|
50
50
|
children,
|
|
51
51
|
...otherCarbonTableProps
|
|
52
52
|
}: TableProps) {
|
|
53
|
-
let colLayout: boolean | JSX.Element = false;
|
|
53
|
+
let colLayout: boolean | React.JSX.Element = false;
|
|
54
54
|
if (!!columnWidths && columnWidths.length > 0) {
|
|
55
55
|
colLayout = (
|
|
56
56
|
<colgroup className={`${eccgui}-simpletable__layout`}>
|
|
@@ -19,14 +19,14 @@ export interface TableDataContainerProps
|
|
|
19
19
|
>,
|
|
20
20
|
"size" | "overflowMenuOnHover" | "stickyHeader" | "useStaticWidth"
|
|
21
21
|
>,
|
|
22
|
-
React.TableHTMLAttributes<HTMLTableElement>
|
|
23
|
-
children(signature: any): JSX.Element;
|
|
22
|
+
Omit<React.TableHTMLAttributes<HTMLTableElement>, "children"> {
|
|
23
|
+
children(signature: any): React.JSX.Element;
|
|
24
24
|
size?: TableProps["size"];
|
|
25
25
|
}
|
|
26
26
|
export interface TableSimpleContainerProps
|
|
27
27
|
extends Omit<CarbonTableContainerProps, "description" | "stickyHeader" | "title" | "useStaticWidth">,
|
|
28
28
|
React.HTMLAttributes<HTMLDivElement> {
|
|
29
|
-
children?: JSX.Element;
|
|
29
|
+
children?: React.JSX.Element;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export type TableContainerProps = TableDataContainerProps | TableSimpleContainerProps;
|
|
@@ -46,7 +46,7 @@ export function TableContainer({ className = "", ...otherProps }: TableContainer
|
|
|
46
46
|
/>
|
|
47
47
|
</CarbonDataTable.TableContainer>
|
|
48
48
|
) : (
|
|
49
|
-
<CarbonDataTable.TableContainer {...otherProps} className={`${eccgui}-simpletable__container ` + className} />
|
|
49
|
+
<CarbonDataTable.TableContainer {...{...otherProps, children: otherProps.children as React.ReactNode}} className={`${eccgui}-simpletable__container ` + className} />
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -6,7 +6,7 @@ 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>;
|
|
@@ -356,3 +356,25 @@ tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] {
|
|
|
356
356
|
min-height: $eccgui-size-tablecell-height-regular;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
+
|
|
360
|
+
@media print {
|
|
361
|
+
.#{$eccgui}-simpletable:has(.#{$eccgui}-simpletable__cell > .#{$eccgui}-typography__overflowtext) {
|
|
362
|
+
// allow 2 lines of text in `<OverflowText />` elements that are direct children of table cells
|
|
363
|
+
.#{$eccgui}-simpletable__cell {
|
|
364
|
+
& > .#{$eccgui}-typography__overflowtext,
|
|
365
|
+
& > .#{$eccgui}-typography__overflowtext--passdown {
|
|
366
|
+
display: inline;
|
|
367
|
+
overflow: visible;
|
|
368
|
+
text-overflow: unset;
|
|
369
|
+
white-space: unset;
|
|
370
|
+
}
|
|
371
|
+
& > .#{$eccgui}-typography__overflowtext {
|
|
372
|
+
display: -webkit-box;
|
|
373
|
+
overflow: hidden;
|
|
374
|
+
-webkit-line-clamp: 2;
|
|
375
|
+
line-clamp: 2;
|
|
376
|
+
-webkit-box-orient: vertical;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
|
-
import { Tabs, TabTitle as TabTitleOrg } from "./../../../";
|
|
4
|
+
import { Tabs, TabTitle as TabTitleOrg, TabTitleProps } from "./../../../";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: "Components/Tabs/TabTitle",
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
argTypes: {},
|
|
10
10
|
} as Meta<typeof TabTitleOrg>;
|
|
11
11
|
|
|
12
|
-
const TabTitle = (args) => {
|
|
12
|
+
const TabTitle = (args: React.JSX.IntrinsicAttributes & TabTitleProps) => {
|
|
13
13
|
return (
|
|
14
14
|
<Tabs
|
|
15
15
|
id="titledemo"
|
|
@@ -31,3 +31,8 @@ TabTitleElement.args = {
|
|
|
31
31
|
titlePrefix: "[",
|
|
32
32
|
titleSuffix: <span>]</span>,
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
export const TabTitleSymbolElement = TemplateFull.bind({});
|
|
36
|
+
TabTitleSymbolElement.args = {
|
|
37
|
+
text: "★",
|
|
38
|
+
};
|
|
@@ -39,15 +39,15 @@ $tab-indicator-width: 3px !default;
|
|
|
39
39
|
max-width: 15rem;
|
|
40
40
|
margin-bottom: $tab-indicator-width;
|
|
41
41
|
color: inherit;
|
|
42
|
-
border-radius: 0;
|
|
43
42
|
outline: none;
|
|
43
|
+
border-radius: 0;
|
|
44
44
|
|
|
45
45
|
.#{$ns}-button-text {
|
|
46
46
|
overflow-x: hidden;
|
|
47
47
|
text-overflow: ellipsis;
|
|
48
48
|
white-space: nowrap;
|
|
49
49
|
|
|
50
|
-
//min-width: 6em;
|
|
50
|
+
// min-width: 6em;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&::before,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
|
-
import { Tag, TagList } from "
|
|
4
|
+
import { Tag, TagList } from "./../../../components";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: "Components/Tag",
|
|
8
8
|
component: TagList,
|
|
9
9
|
argTypes: {
|
|
10
10
|
children: {
|
|
11
|
-
control:
|
|
11
|
+
control: false,
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
} as Meta<typeof TagList>;
|
|
@@ -18,5 +18,5 @@ const Template: StoryFn<typeof TagList> = (args) => <TagList {...args} />;
|
|
|
18
18
|
export const List = Template.bind({});
|
|
19
19
|
List.args = {
|
|
20
20
|
label: "Tag list",
|
|
21
|
-
children: [<Tag>Short</Tag>, <Tag>List</Tag>, <Tag>Of</Tag>, <Tag>Tags</Tag>],
|
|
21
|
+
children: [<Tag small>Short</Tag>, <Tag>List</Tag>, <Tag>Of</Tag>, <Tag large>Tags</Tag>],
|
|
22
22
|
};
|