@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
|
@@ -21,7 +21,7 @@ export interface TextAreaProps extends Omit<BlueprintTextAreaProps, "intent"> {
|
|
|
21
21
|
* Element to render on right side of text area. Should be not too large.
|
|
22
22
|
* This will update right padding on the text area.
|
|
23
23
|
*/
|
|
24
|
-
rightElement?: JSX.Element;
|
|
24
|
+
rightElement?: React.JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Add HTML properties to the wrapper element.
|
|
27
27
|
* The element wraps `TextArea` in case of a given `wrapperDivProps`, `leftIcon` or `rightElement` property.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TestableComponent } from "../interfaces";
|
|
3
|
+
export interface InlineTextProps extends React.HTMLAttributes<HTMLElement>, TestableComponent {
|
|
4
|
+
/**
|
|
5
|
+
* Additional CSS class name.
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Forces all children to be displayed as inline content.
|
|
11
|
+
*/
|
|
12
|
+
export declare const InlineText: ({ className, children, ...otherProps }: InlineTextProps) => React.JSX.Element;
|
|
13
|
+
export default InlineText;
|
|
@@ -7,8 +7,10 @@ export * from "./Card";
|
|
|
7
7
|
export * from "./Chat";
|
|
8
8
|
export * from "./Checkbox/Checkbox";
|
|
9
9
|
export * from "./CodeAutocompleteField";
|
|
10
|
+
export * from "./ColorField/ColorField";
|
|
10
11
|
export * from "./ContentGroup/ContentGroup";
|
|
11
12
|
export * from "./ContextOverlay";
|
|
13
|
+
export * from "./DecoupledOverlay/DecoupledOverlay";
|
|
12
14
|
export * from "./Depiction/Depiction";
|
|
13
15
|
export * from "./Dialog";
|
|
14
16
|
export * from "./FlexibleLayout";
|
|
@@ -23,6 +25,7 @@ export * from "./Link/Link";
|
|
|
23
25
|
export * from "./List/List";
|
|
24
26
|
export * from "./Menu";
|
|
25
27
|
export * from "./MultiSuggestField";
|
|
28
|
+
export * from "./NotAvailable/NotAvailable";
|
|
26
29
|
export * from "./Notification";
|
|
27
30
|
export * from "./OverviewItem";
|
|
28
31
|
export * from "./Pagination/Pagination";
|
|
@@ -4,7 +4,15 @@ import { EditorView, Rect } from "@codemirror/view";
|
|
|
4
4
|
import { IntentTypes } from "../../common/Intent";
|
|
5
5
|
import { TestableComponent } from "../../components/interfaces";
|
|
6
6
|
import { SupportedCodeEditorModes } from "./hooks/useCodemirrorModeExtension.hooks";
|
|
7
|
-
|
|
7
|
+
interface EditorAppearance {
|
|
8
|
+
/**
|
|
9
|
+
* If enabled the code editor won't show numbers before each line.
|
|
10
|
+
*/
|
|
11
|
+
preventLineNumbers?: boolean;
|
|
12
|
+
/** Long lines are wrapped and displayed on multiple lines */
|
|
13
|
+
wrapLines?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface CodeEditorProps extends EditorAppearance, Omit<React.HTMLAttributes<HTMLDivElement>, "translate" | "onChange" | "onKeyDown" | "onMouseDown" | "onScroll">, TestableComponent {
|
|
8
16
|
setEditorView?: (editor: EditorView | undefined) => void;
|
|
9
17
|
/**
|
|
10
18
|
* `name` attribute of connected textarea element.
|
|
@@ -55,18 +63,12 @@ export interface CodeEditorProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
55
63
|
* Default value used first when the editor is instanciated.
|
|
56
64
|
*/
|
|
57
65
|
defaultValue?: string;
|
|
58
|
-
/**
|
|
59
|
-
* If enabled the code editor won't show numbers before each line.
|
|
60
|
-
*/
|
|
61
|
-
preventLineNumbers?: boolean;
|
|
62
66
|
/** Set read-only mode. Default: false */
|
|
63
67
|
readOnly?: boolean;
|
|
64
68
|
/** Optional height of the component */
|
|
65
69
|
height?: number | string;
|
|
66
|
-
/** Long lines are wrapped and displayed on multiple lines */
|
|
67
|
-
wrapLines?: boolean;
|
|
68
70
|
/**
|
|
69
|
-
* Add properties to the `div` used as
|
|
71
|
+
* Add properties to the `div` used as wrapper element.
|
|
70
72
|
* @deprecated (v26) You can now use all properties directly on `CodeEditor`.
|
|
71
73
|
*/
|
|
72
74
|
outerDivAttributes?: Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "data-test-id" | "data-testid" | "translate" | "onChange" | "onKeyDown" | "onMouseDown" | "onScroll">;
|
|
@@ -137,6 +139,7 @@ export interface CodeEditorProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
137
139
|
* Includes a code editor, currently we use CodeMirror library as base.
|
|
138
140
|
*/
|
|
139
141
|
export declare const CodeEditor: {
|
|
140
|
-
({ className, onChange, onSelection, onMouseDown, onFocusChange, onKeyDown, onCursorChange, name, id, mode, preventLineNumbers, defaultValue, readOnly, shouldHaveMinimalSetup,
|
|
142
|
+
({ className, onChange, onSelection, onMouseDown, onFocusChange, onKeyDown, onCursorChange, name, id, mode, preventLineNumbers, wrapLines, defaultValue, readOnly, shouldHaveMinimalSetup, onScroll, setEditorView, supportCodeFolding, shouldHighlightActiveLine, outerDivAttributes, tabIntentSize, tabIntentStyle, placeholder, additionalExtensions, tabForceSpaceForModes, enableTab, height, useLinting, autoFocus, disabled, intent, useToolbar, translate, ...otherCodeEditorProps }: CodeEditorProps): React.JSX.Element;
|
|
141
143
|
supportedModes: ("html" | "markdown" | "python" | "sparql" | "turtle" | "xml" | "yaml" | "jinja2" | "json" | "ntriples" | "mathematica" | "sql" | "javascript")[];
|
|
142
144
|
};
|
|
145
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { html } from "@codemirror/lang-html";
|
|
1
2
|
import { javascript } from "@codemirror/lang-javascript";
|
|
2
3
|
import { json } from "@codemirror/lang-json";
|
|
3
4
|
import { markdown } from "@codemirror/lang-markdown";
|
|
4
5
|
import { sql } from "@codemirror/lang-sql";
|
|
5
6
|
import { xml } from "@codemirror/lang-xml";
|
|
6
7
|
import { yaml } from "@codemirror/lang-yaml";
|
|
7
|
-
import { html } from "@codemirror/lang-html";
|
|
8
8
|
import { StreamParser } from "@codemirror/language";
|
|
9
9
|
declare const supportedModes: {
|
|
10
10
|
readonly markdown: typeof markdown;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 'EditorView is not a constructor'
|
|
6
6
|
* This errors do not exist during compilation only during testing.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { Compartment, Extension } from "@codemirror/state";
|
|
9
9
|
/** placeholder extension, current error '_view.placeholder is not a function' */
|
|
10
10
|
export declare const adaptedPlaceholder: (text?: string) => Extension;
|
|
11
11
|
/** current error '_view.Editor is not a constructor' */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContextMenuProps } from "../../../components";
|
|
3
|
+
export interface EditorAppearanceConfigMenuProps {
|
|
4
|
+
/** Object containing a `true`/`false` value for each property */
|
|
5
|
+
config: {
|
|
6
|
+
[s: string]: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** Object containing `true` for each property that cannot be changed by user */
|
|
9
|
+
configLocked?: {
|
|
10
|
+
[s: string]: boolean | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** Handler that returns a translation for each config property key */
|
|
13
|
+
configPropertyTranslate?: (key: string) => string | false;
|
|
14
|
+
/** Handler to update config after user changes */
|
|
15
|
+
setConfig: React.Dispatch<React.SetStateAction<{
|
|
16
|
+
[s: string]: boolean;
|
|
17
|
+
}>>;
|
|
18
|
+
/** Additional properties used for the included `ContextMenu` */
|
|
19
|
+
contextMenuProps?: ContextMenuProps;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns a simple context menu that provides switches to control the editor appearance.
|
|
23
|
+
*/
|
|
24
|
+
export declare function EditorAppearanceConfigMenu({ config, configLocked, configPropertyTranslate, setConfig, contextMenuProps, }: EditorAppearanceConfigMenuProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EditorView } from "codemirror";
|
|
3
|
+
import { EditorAppearanceConfigMenu } from "./EditorAppearanceConfigMenu";
|
|
3
4
|
interface MarkdownToolbarProps {
|
|
4
5
|
view?: EditorView;
|
|
5
6
|
togglePreviewStatus: () => void;
|
|
@@ -7,6 +8,7 @@ interface MarkdownToolbarProps {
|
|
|
7
8
|
translate: (key: string) => string | false;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
readonly?: boolean;
|
|
11
|
+
configMenu?: React.ReactElement<typeof EditorAppearanceConfigMenu>;
|
|
10
12
|
}
|
|
11
13
|
export declare const MarkdownToolbar: React.FC<MarkdownToolbarProps>;
|
|
12
14
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IntentTypes } from "../../../common/Intent";
|
|
3
3
|
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
4
|
-
import { DepictionProps } from "../../../
|
|
4
|
+
import { DepictionProps } from "../../../components/Depiction/Depiction";
|
|
5
5
|
export interface EdgeLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
/**
|
|
7
7
|
* Depiction element displayed left from the label.
|
|
@@ -11,11 +11,11 @@ export interface EdgeLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
* Label of the edge.
|
|
12
12
|
* Cannot overflow the parent container.
|
|
13
13
|
*/
|
|
14
|
-
text: string | JSX.Element;
|
|
14
|
+
text: string | React.JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* One or multiple other elements displayed right from label.
|
|
17
17
|
*/
|
|
18
|
-
actions?: JSX.Element | JSX.Element[];
|
|
18
|
+
actions?: React.JSX.Element | React.JSX.Element[];
|
|
19
19
|
/**
|
|
20
20
|
* The element is increased in its size.
|
|
21
21
|
*/
|
|
@@ -6,7 +6,7 @@ interface PosOffset {
|
|
|
6
6
|
}
|
|
7
7
|
export interface EdgeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
8
8
|
posOffset: PosOffset;
|
|
9
|
-
children: string | JSX.Element | JSX.Element[];
|
|
9
|
+
children: string | React.JSX.Element | React.JSX.Element[];
|
|
10
10
|
}
|
|
11
11
|
export declare const EdgeTools: React.MemoExoticComponent<({ posOffset, children, ...otherProps }: EdgeToolsProps) => React.JSX.Element>;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TooltipProps } from "../../../
|
|
2
|
+
import { TooltipProps } from "../../../components/Tooltip/Tooltip";
|
|
3
3
|
export interface HandleContentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
|
|
4
4
|
/**
|
|
5
5
|
* Tooltip displayed as overlay on hover.
|
|
6
6
|
*/
|
|
7
|
-
extendedTooltip?: JSX.Element | string;
|
|
7
|
+
extendedTooltip?: React.JSX.Element | string;
|
|
8
8
|
/**
|
|
9
9
|
* Configure the tooltip and overwrite automatically set options.
|
|
10
10
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TestableComponent } from "../../../index";
|
|
3
2
|
import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
3
|
+
import { TestableComponent } from "../../../components";
|
|
4
4
|
export interface HandleToolsProps extends Omit<ContextOverlayProps, "children" | "content" | "popoverClassName">, TestableComponent {
|
|
5
|
-
children: string | JSX.Element | JSX.Element[];
|
|
5
|
+
children: string | React.JSX.Element | React.JSX.Element[];
|
|
6
6
|
}
|
|
7
7
|
export declare const HandleTools: ({ children, ...otherContextOverlayProps }: HandleToolsProps) => React.JSX.Element;
|
|
@@ -56,15 +56,15 @@ interface NodeContentData<CONTENT_PROPS = any> {
|
|
|
56
56
|
/**
|
|
57
57
|
* Any element that should be displayed as depiction before the node label.
|
|
58
58
|
*/
|
|
59
|
-
leftElement?: JSX.Element;
|
|
59
|
+
leftElement?: React.JSX.Element;
|
|
60
60
|
/**
|
|
61
61
|
* Label that is displayed in the node header.
|
|
62
62
|
*/
|
|
63
|
-
label: string | JSX.Element;
|
|
63
|
+
label: string | React.JSX.Element;
|
|
64
64
|
/**
|
|
65
65
|
* Element that is displayed as subline under the label in the header.
|
|
66
66
|
*/
|
|
67
|
-
labelSubline?: JSX.Element;
|
|
67
|
+
labelSubline?: React.JSX.Element;
|
|
68
68
|
/**
|
|
69
69
|
* Content element, displayed in the node body.
|
|
70
70
|
*/
|
|
@@ -6,8 +6,8 @@ export interface NodeToolsMenuFunctions {
|
|
|
6
6
|
closeMenu: () => void;
|
|
7
7
|
}
|
|
8
8
|
export interface NodeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
9
|
-
children: string | JSX.Element;
|
|
10
|
-
togglerElement?: ValidIconName | JSX.Element;
|
|
9
|
+
children: string | React.JSX.Element;
|
|
10
|
+
togglerElement?: ValidIconName | React.JSX.Element;
|
|
11
11
|
togglerText?: string;
|
|
12
12
|
menuButtonDataTestId?: string;
|
|
13
13
|
/** If defined this function will be called with the menu API object to be used externally. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eccenca/gui-elements",
|
|
3
3
|
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
|
|
4
|
-
"version": "25.0.0",
|
|
4
|
+
"version": "25.1.0-changeupgradedtoreact18cmem6639.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/eccenca/gui-elements",
|
|
7
7
|
"bugs": "https://github.com/eccenca/gui-elements/issues",
|
|
@@ -68,37 +68,37 @@
|
|
|
68
68
|
"autolint:all": "yarn autolint:scripts && yarn autolint:styles && yarn autolint:prettier"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@blueprintjs/colors": "^5.1.
|
|
72
|
-
"@blueprintjs/core": "^5.
|
|
73
|
-
"@blueprintjs/select": "^5.3.
|
|
74
|
-
"@carbon/icons": "^11.
|
|
75
|
-
"@carbon/react": "^1.
|
|
76
|
-
"@codemirror/lang-html": "^6.4.
|
|
77
|
-
"@codemirror/lang-javascript": "^6.2.
|
|
78
|
-
"@codemirror/lang-json": "^6.0.
|
|
79
|
-
"@codemirror/lang-markdown": "^6.
|
|
80
|
-
"@codemirror/lang-sql": "^6.
|
|
71
|
+
"@blueprintjs/colors": "^5.1.11",
|
|
72
|
+
"@blueprintjs/core": "^5.19.1",
|
|
73
|
+
"@blueprintjs/select": "^5.3.21",
|
|
74
|
+
"@carbon/icons": "^11.70.0",
|
|
75
|
+
"@carbon/react": "^1.96.0",
|
|
76
|
+
"@codemirror/lang-html": "^6.4.11",
|
|
77
|
+
"@codemirror/lang-javascript": "^6.2.4",
|
|
78
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
79
|
+
"@codemirror/lang-markdown": "^6.5.0",
|
|
80
|
+
"@codemirror/lang-sql": "^6.10.0",
|
|
81
81
|
"@codemirror/lang-xml": "^6.1.0",
|
|
82
82
|
"@codemirror/lang-yaml": "^6.1.2",
|
|
83
|
-
"@codemirror/legacy-modes": "^6.5.
|
|
83
|
+
"@codemirror/legacy-modes": "^6.5.2",
|
|
84
84
|
"@mavrin/remark-typograf": "^2.2.0",
|
|
85
|
-
"@xyflow/react": "^12.
|
|
85
|
+
"@xyflow/react": "^12.9.3",
|
|
86
86
|
"classnames": "^2.5.1",
|
|
87
|
-
"codemirror": "^6.0.
|
|
87
|
+
"codemirror": "^6.0.2",
|
|
88
88
|
"color": "^4.2.3",
|
|
89
89
|
"compute-scroll-into-view": "^3.1.1",
|
|
90
90
|
"he": "^1.2.0",
|
|
91
91
|
"jshint": "^2.13.6",
|
|
92
|
-
"lodash": "^4.
|
|
93
|
-
"n3": "^1.
|
|
92
|
+
"lodash": "^4.18.1",
|
|
93
|
+
"n3": "^1.26.0",
|
|
94
94
|
"re-resizable": "^6.10.3",
|
|
95
|
-
"react": "^
|
|
96
|
-
"react-dom": "^
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0",
|
|
97
97
|
"react-flow-renderer": "9.7.4",
|
|
98
98
|
"react-inlinesvg": "^3.0.3",
|
|
99
99
|
"react-is": "^16.13.1",
|
|
100
100
|
"react-markdown": "^10.1.0",
|
|
101
|
-
"react-syntax-highlighter": "^15.6.
|
|
101
|
+
"react-syntax-highlighter": "^15.6.6",
|
|
102
102
|
"rehype-external-links": "^3.0.0",
|
|
103
103
|
"rehype-raw": "^7.0.0",
|
|
104
104
|
"remark-definition-list": "^2.0.0",
|
|
@@ -107,68 +107,69 @@
|
|
|
107
107
|
"reset-css": "^5.0.2",
|
|
108
108
|
"unified": "^11.0.5",
|
|
109
109
|
"wicg-inert": "^3.1.3",
|
|
110
|
-
"xml-formatter": "^3.6.
|
|
110
|
+
"xml-formatter": "^3.6.7"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@babel/core": "^7.
|
|
114
|
-
"@babel/plugin-transform-class-properties": "^7.
|
|
115
|
-
"@babel/plugin-transform-private-methods": "^7.
|
|
116
|
-
"@babel/plugin-transform-private-property-in-object": "^7.
|
|
117
|
-
"@babel/preset-env": "^7.
|
|
118
|
-
"@babel/preset-flow": "^7.
|
|
119
|
-
"@babel/preset-react": "^7.
|
|
120
|
-
"@babel/preset-typescript": "^7.
|
|
121
|
-
"@eslint/compat": "^1.
|
|
113
|
+
"@babel/core": "^7.28.5",
|
|
114
|
+
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
115
|
+
"@babel/plugin-transform-private-methods": "^7.27.1",
|
|
116
|
+
"@babel/plugin-transform-private-property-in-object": "^7.27.1",
|
|
117
|
+
"@babel/preset-env": "^7.28.5",
|
|
118
|
+
"@babel/preset-flow": "^7.27.1",
|
|
119
|
+
"@babel/preset-react": "^7.28.5",
|
|
120
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
121
|
+
"@eslint/compat": "^1.4.1",
|
|
122
122
|
"@eslint/eslintrc": "^3.3.1",
|
|
123
|
-
"@eslint/js": "^9.
|
|
124
|
-
"@storybook/addon-actions": "^8.6.
|
|
125
|
-
"@storybook/addon-essentials": "^8.6.
|
|
126
|
-
"@storybook/addon-jest": "^8.6.
|
|
127
|
-
"@storybook/addon-links": "^8.6.
|
|
123
|
+
"@eslint/js": "^9.39.1",
|
|
124
|
+
"@storybook/addon-actions": "^8.6.14",
|
|
125
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
126
|
+
"@storybook/addon-jest": "^8.6.14",
|
|
127
|
+
"@storybook/addon-links": "^8.6.14",
|
|
128
128
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
129
|
-
"@storybook/cli": "^8.6.
|
|
129
|
+
"@storybook/cli": "^8.6.14",
|
|
130
130
|
"@storybook/preset-scss": "^1.0.3",
|
|
131
|
-
"@storybook/react": "^8.6.
|
|
132
|
-
"@storybook/react-webpack5": "^8.6.
|
|
133
|
-
"@storybook/test": "^8.6.
|
|
134
|
-
"@testing-library/jest-dom": "^6.
|
|
135
|
-
"@testing-library/react": "^
|
|
136
|
-
"@types/codemirror": "^5.60.15",
|
|
131
|
+
"@storybook/react": "^8.6.14",
|
|
132
|
+
"@storybook/react-webpack5": "^8.6.14",
|
|
133
|
+
"@storybook/test": "^8.6.14",
|
|
134
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
135
|
+
"@testing-library/react": "^14.3.1",
|
|
137
136
|
"@types/color": "^3.0.6",
|
|
138
137
|
"@types/he": "^1.2.3",
|
|
139
|
-
"@types/jest": "^
|
|
138
|
+
"@types/jest": "^30.0.0",
|
|
140
139
|
"@types/jshint": "^2.12.4",
|
|
141
|
-
"@types/lodash": "^4.17.
|
|
142
|
-
"@types/n3": "^1.
|
|
143
|
-
"@types/react-is": "^19.
|
|
140
|
+
"@types/lodash": "^4.17.21",
|
|
141
|
+
"@types/n3": "^1.26.1",
|
|
142
|
+
"@types/react-is": "^19.2.0",
|
|
144
143
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
145
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
146
|
-
"@typescript-eslint/parser": "^8.
|
|
147
|
-
"babel-jest": "^
|
|
148
|
-
"chromatic": "^
|
|
149
|
-
"eslint": "^9.
|
|
144
|
+
"@typescript-eslint/eslint-plugin": "^8.47.0",
|
|
145
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
146
|
+
"babel-jest": "^30.2.0",
|
|
147
|
+
"chromatic": "^13.3.4",
|
|
148
|
+
"eslint": "^9.39.1",
|
|
150
149
|
"eslint-plugin-react": "^7.37.5",
|
|
151
|
-
"eslint-plugin-react-hooks": "^
|
|
150
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
152
151
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
153
152
|
"husky": "4",
|
|
154
153
|
"identity-obj-proxy": "^3.0.0",
|
|
155
154
|
"jest": "^30.2.0",
|
|
156
155
|
"jest-environment-jsdom": "^30.2.0",
|
|
156
|
+
"jest-fixed-jsdom": "^0.0.11",
|
|
157
157
|
"jest-pnp-resolver": "^1.2.3",
|
|
158
|
-
"lint-staged": "^15.5.
|
|
158
|
+
"lint-staged": "^15.5.2",
|
|
159
159
|
"node-sass-package-importer": "^5.3.3",
|
|
160
160
|
"path": "^0.12.7",
|
|
161
161
|
"prettier": "^2.8.8",
|
|
162
162
|
"react-app-polyfill": "^3.0.0",
|
|
163
163
|
"react-lorem-ipsum": "^1.4.9",
|
|
164
164
|
"regenerator-runtime": "^0.13.9",
|
|
165
|
-
"rimraf": "^
|
|
165
|
+
"rimraf": "^6.1.3",
|
|
166
166
|
"sass": "1.62.1",
|
|
167
167
|
"sass-loader": "10.3.1",
|
|
168
|
-
"storybook": "^8.6.
|
|
169
|
-
"stylelint": "^
|
|
170
|
-
"stylelint-config-recess-order": "^
|
|
171
|
-
"stylelint-config-standard-scss": "^
|
|
168
|
+
"storybook": "^8.6.14",
|
|
169
|
+
"stylelint": "^17.6.0",
|
|
170
|
+
"stylelint-config-recess-order": "^7.7.0",
|
|
171
|
+
"stylelint-config-standard-scss": "^17.0.0",
|
|
172
|
+
"stylelint-order": "^8.1.1",
|
|
172
173
|
"ts-node": "^10.9.2",
|
|
173
174
|
"tsc-esm-fix": "^3.1.2",
|
|
174
175
|
"typescript": "5.5.3",
|
|
@@ -180,11 +181,14 @@
|
|
|
180
181
|
"react": ">=16"
|
|
181
182
|
},
|
|
182
183
|
"resolutions": {
|
|
183
|
-
"**/@types/react": "^
|
|
184
|
-
"node-sass-package-importer/**/postcss": "^8.
|
|
184
|
+
"**/@types/react": "^18.2.0",
|
|
185
|
+
"node-sass-package-importer/**/postcss": "^8.5.6",
|
|
185
186
|
"string-width": "^4.2.3",
|
|
186
187
|
"wrap-ansi": "^7.0.0",
|
|
187
|
-
"hast-util-from-parse5": "8.0.0"
|
|
188
|
+
"hast-util-from-parse5": "8.0.0",
|
|
189
|
+
"**/picomatch": "^2.3.2",
|
|
190
|
+
"**/minimatch": "^3.1.4",
|
|
191
|
+
"**/lodash": "^4.18.0"
|
|
188
192
|
},
|
|
189
193
|
"husky": {
|
|
190
194
|
"hooks": {
|
|
@@ -225,7 +229,7 @@
|
|
|
225
229
|
"testMatch": [
|
|
226
230
|
"<rootDir>/src/**/*(*.)@(spec|test).{js,jsx,ts,tsx}"
|
|
227
231
|
],
|
|
228
|
-
"testEnvironment": "jest-
|
|
232
|
+
"testEnvironment": "jest-fixed-jsdom",
|
|
229
233
|
"transform": {
|
|
230
234
|
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
|
|
231
235
|
},
|
package/src/_shame.scss
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
1
|
// Add stuff to test fast and dirty.
|
|
2
2
|
// This file should not contain any styles.
|
|
3
3
|
|
|
4
|
-
.#{$prefix}--assistive-text,
|
|
5
|
-
.#{$prefix}--visually-hidden {
|
|
6
|
-
/*
|
|
7
|
-
TODO: move to better place, originally from ~@carbon/styles/scss/css--helpers
|
|
8
|
-
but we cannot use it directly because of other included rules there.
|
|
9
|
-
*/
|
|
10
|
-
position: absolute;
|
|
11
|
-
width: 1px;
|
|
12
|
-
height: 1px;
|
|
13
|
-
padding: 0;
|
|
14
|
-
margin: -1px;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
clip: rect(0, 0, 0, 0);
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
visibility: inherit;
|
|
19
|
-
border: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
4
|
/*
|
|
23
5
|
WORKAROUND: thinner scrollbars
|
|
24
6
|
*/
|
|
25
7
|
|
|
26
8
|
* {
|
|
27
|
-
scrollbar-width: thin;
|
|
28
9
|
scrollbar-color: #bbb transparent;
|
|
10
|
+
scrollbar-width: thin;
|
|
29
11
|
|
|
30
12
|
&::-webkit-scrollbar {
|
|
31
13
|
width: 0.25rem;
|
|
@@ -38,19 +20,3 @@
|
|
|
38
20
|
border-radius: 0.125rem;
|
|
39
21
|
}
|
|
40
22
|
}
|
|
41
|
-
|
|
42
|
-
/*
|
|
43
|
-
CHANGE: default focus behaviour
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
:focus,
|
|
47
|
-
input:focus-visible,
|
|
48
|
-
textarea:focus-visible {
|
|
49
|
-
outline: none;
|
|
50
|
-
outline-offset: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:focus-visible {
|
|
54
|
-
outline: eccgui-color-rgba($eccgui-color-accent, $eccgui-opacity-muted) solid 2px;
|
|
55
|
-
outline-offset: 1px;
|
|
56
|
-
}
|
|
@@ -4,14 +4,9 @@ import { OverlaysProvider } from "@blueprintjs/core";
|
|
|
4
4
|
import { Meta, StoryFn } from "@storybook/react";
|
|
5
5
|
|
|
6
6
|
import { helpersArgTypes } from "../../../.storybook/helpers";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
IconButton,
|
|
11
|
-
SimpleDialog,
|
|
12
|
-
Tag,
|
|
13
|
-
TagList,
|
|
14
|
-
} from "../../../index";
|
|
7
|
+
import { IconButton, SimpleDialog, Tag, TagList } from "../../components";
|
|
8
|
+
|
|
9
|
+
import { ActivityControlWidget, ActivityControlWidgetAction } from "./ActivityControlWidget";
|
|
15
10
|
|
|
16
11
|
export default {
|
|
17
12
|
title: "Cmem/ActivityControlWidget",
|