@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
|
@@ -258,6 +258,7 @@ path.react-flow__edge-path-highlight {
|
|
|
258
258
|
min-height: $reactflow-node-basesize;
|
|
259
259
|
max-height: $reactflow-node-basesize * 13;
|
|
260
260
|
padding: $eccgui-size-block-whitespace * 0.5;
|
|
261
|
+
overflow-y: auto;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
// Arrows
|
|
@@ -288,6 +289,7 @@ path.react-flow__edge-path-highlight {
|
|
|
288
289
|
width: auto;
|
|
289
290
|
max-width: 20rem;
|
|
290
291
|
height: 0.5 * $reactflow-node-largesize;
|
|
292
|
+
padding: 0 $eccgui-size-block-whitespace * 0.25;
|
|
291
293
|
font-size: $reactflow-node-font-size;
|
|
292
294
|
color: var(--#{$eccgui}-reactflow-edge-label-color, currentColor);
|
|
293
295
|
background-color: var(--#{$eccgui}-reactflow-edge-label-color-background, #{$card-background-color});
|
|
@@ -330,7 +332,6 @@ path.react-flow__edge-path-highlight {
|
|
|
330
332
|
display: inline-flex;
|
|
331
333
|
flex-grow: 0;
|
|
332
334
|
flex-shrink: 0;
|
|
333
|
-
margin-left: 2px;
|
|
334
335
|
.#{$eccgui}-depiction__image {
|
|
335
336
|
height: calc(#{0.5 * $reactflow-node-largesize} - 4px);
|
|
336
337
|
|
|
@@ -342,7 +343,7 @@ path.react-flow__edge-path-highlight {
|
|
|
342
343
|
.#{$eccgui}-graphviz__edge-label__text {
|
|
343
344
|
flex-grow: 1;
|
|
344
345
|
flex-shrink: 1;
|
|
345
|
-
margin: 0 $eccgui-size-block-whitespace * 0.25;
|
|
346
|
+
margin: 0 0 0 $eccgui-size-block-whitespace * 0.25;
|
|
346
347
|
overflow: hidden;
|
|
347
348
|
text-overflow: ellipsis;
|
|
348
349
|
text-align: center;
|
|
@@ -3,8 +3,9 @@ import { loremIpsum } from "react-lorem-ipsum";
|
|
|
3
3
|
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { helpersArgTypes } from "../../../../../.storybook/helpers";
|
|
6
|
+
import { EdgeLabel } from "../EdgeLabel";
|
|
6
7
|
|
|
7
|
-
import { Badge,
|
|
8
|
+
import { Badge, Icon, IconButton, OverflowText } from "./../../../../components";
|
|
8
9
|
import canonicalIcons from "./../../../../components/Icon/canonicalIconNames";
|
|
9
10
|
|
|
10
11
|
export default {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, {memo} from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import {CLASSPREFIX as eccgui} from "../../../configuration/constants";
|
|
4
|
+
import Tooltip, {TooltipProps} from "../../../components/Tooltip/Tooltip";
|
|
5
5
|
|
|
6
6
|
export interface HandleContentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
|
|
7
7
|
/**
|
|
8
8
|
* Tooltip displayed as overlay on hover.
|
|
9
9
|
*/
|
|
10
|
-
extendedTooltip?: JSX.Element | string;
|
|
10
|
+
extendedTooltip?: React.JSX.Element | string;
|
|
11
11
|
/**
|
|
12
12
|
* Configure the tooltip and overwrite automatically set options.
|
|
13
13
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
import { Handle as HandleV9, HandleProps as ReactFlowHandleV9Props } from "react-flow-renderer";
|
|
3
|
-
import { Handle as HandleV12, HandleProps as ReactFlowHandleV12Props } from "@xyflow/react";
|
|
4
3
|
import { Classes as BlueprintClasses } from "@blueprintjs/core";
|
|
4
|
+
import {Intent} from "@blueprintjs/core/src/common/intent";
|
|
5
|
+
import { Handle as HandleV12, HandleProps as ReactFlowHandleV12Props } from "@xyflow/react";
|
|
5
6
|
|
|
6
7
|
import { intentClassName, IntentTypes } from "../../../common/Intent";
|
|
7
8
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
8
|
-
import { TooltipProps } from "../../../index";
|
|
9
9
|
import { ReacFlowVersionSupportProps, useReactFlowVersion } from "../versionsupport";
|
|
10
10
|
|
|
11
11
|
import { HandleContent, HandleContentProps } from "./HandleContent";
|
|
12
|
-
import {
|
|
12
|
+
import {TooltipProps} from "../../../components";
|
|
13
13
|
|
|
14
14
|
export type HandleCategory = "configuration" | "flexible" | "fixed" | "unknown" | "dependency";
|
|
15
15
|
|
|
@@ -2,14 +2,14 @@ import React from "react";
|
|
|
2
2
|
import { PopoverInteractionKind as BlueprintPopoverInteractionKind } from "@blueprintjs/core";
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
5
|
-
import { ContextOverlay, TestableComponent } from "../../../index";
|
|
6
5
|
|
|
7
|
-
import { ContextOverlayProps
|
|
6
|
+
import {ContextOverlay, ContextOverlayProps} from "./../../../components/ContextOverlay/ContextOverlay";
|
|
7
|
+
import {TestableComponent} from "../../../components";
|
|
8
8
|
|
|
9
9
|
export interface HandleToolsProps
|
|
10
10
|
extends Omit<ContextOverlayProps, "children" | "content" | "popoverClassName">,
|
|
11
11
|
TestableComponent {
|
|
12
|
-
children: string | JSX.Element | JSX.Element[];
|
|
12
|
+
children: string | React.JSX.Element | React.JSX.Element[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const HandleTools = ({ children, ...otherContextOverlayProps }: HandleToolsProps) => {
|
|
@@ -62,10 +62,10 @@ div.react-flow__handle {
|
|
|
62
62
|
inset: 0;
|
|
63
63
|
display: none;
|
|
64
64
|
cursor: pointer;
|
|
65
|
-
content: " ";
|
|
66
|
-
border-radius: 100%;
|
|
67
65
|
outline: dotted $eccgui-size-flow-handle-border currentcolor;
|
|
68
66
|
outline-offset: $eccgui-size-flow-handle * 0.75 + $eccgui-size-flow-handle-border * 0.5;
|
|
67
|
+
content: " ";
|
|
68
|
+
border-radius: 100%;
|
|
69
69
|
|
|
70
70
|
.react-flow__node:hover & {
|
|
71
71
|
display: block;
|
|
@@ -207,9 +207,9 @@ div.react-flow__handle-bottom {
|
|
|
207
207
|
.#{$eccgui}-graphviz__node--hidehandles {
|
|
208
208
|
& ~ .react-flow__handle:not(.connectable) {
|
|
209
209
|
z-index: -1;
|
|
210
|
+
visibility: hidden;
|
|
210
211
|
width: 1px;
|
|
211
212
|
height: 1px;
|
|
212
|
-
visibility: hidden;
|
|
213
213
|
border: none;
|
|
214
214
|
|
|
215
215
|
&.react-flow__handle-top {
|
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
} from "react-flow-renderer";
|
|
7
7
|
import { FlowTransform } from "react-flow-renderer/dist/types";
|
|
8
8
|
|
|
9
|
-
import { miniMapUtils } from "./utils";
|
|
10
9
|
import { ReacFlowVersionSupportProps, ReactFlowVersions, useReactFlowVersion } from "../versionsupport";
|
|
10
|
+
|
|
11
11
|
import { MiniMapV12, MiniMapV12Props } from "./MiniMapV12";
|
|
12
|
+
import { miniMapUtils } from "./utils";
|
|
12
13
|
|
|
13
14
|
export interface MiniMapBasicProps {
|
|
14
15
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
import { MiniMap as ReactFlowMiniMap, MiniMapProps as ReactFlowMiniMapProps } from "@xyflow/react";
|
|
3
3
|
|
|
4
|
-
import { miniMapUtils } from "./utils";
|
|
5
4
|
import { MiniMapBasicProps } from "./MiniMap";
|
|
5
|
+
import { miniMapUtils } from "./utils";
|
|
6
6
|
|
|
7
7
|
export interface MiniMapV12Props extends MiniMapBasicProps, Omit<ReactFlowMiniMapProps, "maskColor"> {
|
|
8
8
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import {Position, useStoreState as getStoreStateFlowV9} from "react-flow-renderer";
|
|
3
|
+
import {useStore as getStoreStateFlowV12} from "@xyflow/react";
|
|
4
4
|
import Color from "color";
|
|
5
|
-
import { Resizable } from "re-resizable";
|
|
5
|
+
import {NumberSize, Resizable, ResizableProps, ResizeCallback} from "re-resizable";
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import { DepictionProps
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { ReacFlowVersionSupportProps, ReactFlowVersions, useReactFlowVersion } from "../versionsupport";
|
|
7
|
+
import {intentClassName, IntentTypes} from "../../../common/Intent";
|
|
8
|
+
import {Depiction, DepictionProps} from "../../../components";
|
|
9
|
+
import {ValidIconName} from "../../../components/Icon/canonicalIconNames";
|
|
10
|
+
import {CLASSPREFIX as eccgui} from "../../../configuration/constants";
|
|
11
|
+
import {ReacFlowVersionSupportProps, ReactFlowVersions, useReactFlowVersion} from "../versionsupport";
|
|
13
12
|
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
13
|
+
import {HandleDefault, HandleDefaultProps} from "./../handles/HandleDefault";
|
|
14
|
+
import {NodeContentExtensionProps} from "./NodeContentExtension";
|
|
15
|
+
import {NodeDefaultProps} from "./NodeDefault";
|
|
16
|
+
import {NodeHighlightColor} from "./sharedTypes";
|
|
17
|
+
import Icon from "../../../components/Icon/Icon";
|
|
18
|
+
import OverflowText from "../../../components/Typography/OverflowText";
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* @deprecated (v26) use `HandleDefaultProps`
|
|
@@ -62,15 +63,15 @@ interface NodeContentData<CONTENT_PROPS = any> {
|
|
|
62
63
|
/**
|
|
63
64
|
* Any element that should be displayed as depiction before the node label.
|
|
64
65
|
*/
|
|
65
|
-
leftElement?: JSX.Element;
|
|
66
|
+
leftElement?: React.JSX.Element;
|
|
66
67
|
/**
|
|
67
68
|
* Label that is displayed in the node header.
|
|
68
69
|
*/
|
|
69
|
-
label: string | JSX.Element;
|
|
70
|
+
label: string | React.JSX.Element;
|
|
70
71
|
/**
|
|
71
72
|
* Element that is displayed as subline under the label in the header.
|
|
72
73
|
*/
|
|
73
|
-
labelSubline?: JSX.Element;
|
|
74
|
+
labelSubline?: React.JSX.Element;
|
|
74
75
|
/**
|
|
75
76
|
* Content element, displayed in the node body.
|
|
76
77
|
*/
|
|
@@ -386,7 +387,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
386
387
|
console.error(error);
|
|
387
388
|
}
|
|
388
389
|
const [adjustedContentProps, setAdjustedContentProps] = React.useState<Partial<CONTENT_PROPS>>({});
|
|
389
|
-
const nodeContentRef = React.useRef<any>();
|
|
390
|
+
const nodeContentRef = React.useRef<any>(undefined);
|
|
390
391
|
|
|
391
392
|
const handleStack: Record<string, HandleDefaultProps[]> = {
|
|
392
393
|
[Position.Top]: [],
|
|
@@ -735,7 +736,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
735
736
|
return validatedHeight;
|
|
736
737
|
};
|
|
737
738
|
|
|
738
|
-
const onResize = React.useCallback((_0, _1, _2, d) => {
|
|
739
|
+
const onResize: ResizableProps["onResize"] = React.useCallback((_0: any, _1: any, _2: any, d: NumberSize) => {
|
|
739
740
|
if (nodeContentRef.current) {
|
|
740
741
|
const nextWidth = resizeDirections.right
|
|
741
742
|
? (width ?? originalSize.current.width ?? 0) + d.width
|
|
@@ -756,7 +757,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
|
|
|
756
757
|
}
|
|
757
758
|
}, [resizeDirections, originalSize, width, height])
|
|
758
759
|
|
|
759
|
-
const onResizeStop = React.useCallback((_0, _1, _2, d) => {
|
|
760
|
+
const onResizeStop: ResizeCallback = React.useCallback((_0, _1, _2, d: NumberSize) => {
|
|
760
761
|
const nextWidth = validateWidth((width ?? originalSize.current.width ?? 0) + d.width);
|
|
761
762
|
const nextHeight = validateHeight((height ?? originalSize.current.height ?? 0) + d.height);
|
|
762
763
|
setWidth(nextWidth);
|
|
@@ -2,10 +2,10 @@ import React, { memo } from "react";
|
|
|
2
2
|
import { NodeProps as ReactFlowNodeV9Props } from "react-flow-renderer";
|
|
3
3
|
import { NodeProps as ReactFlowNodeV12Props, Position } from "@xyflow/react";
|
|
4
4
|
|
|
5
|
-
import { Tooltip } from "../../../index";
|
|
6
5
|
import { ReacFlowVersionSupportProps, useReactFlowVersion } from "../versionsupport";
|
|
7
6
|
|
|
8
7
|
import { NodeContent, NodeContentProps } from "./NodeContent";
|
|
8
|
+
import Tooltip from "../../../components/Tooltip/Tooltip";
|
|
9
9
|
|
|
10
10
|
interface NodeDefaultExtendedProps<CONTENT_PROPS = any> extends ReacFlowVersionSupportProps {
|
|
11
11
|
/**
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
2
|
import { NodeProps as ReactFlowNodeProps, Position } from "react-flow-renderer";
|
|
3
3
|
|
|
4
|
-
import { Tooltip } from "../../../index";
|
|
5
|
-
|
|
6
4
|
import { NodeContent, NodeContentProps } from "./NodeContent";
|
|
5
|
+
import Tooltip from "../../../components/Tooltip/Tooltip";
|
|
7
6
|
|
|
8
7
|
export interface NodeDefaultProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends ReactFlowNodeProps {
|
|
9
8
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, {memo, useEffect, useState} from "react";
|
|
2
|
+
import {PopoverInteractionKind as BlueprintPopoverInteractionKind} from "@blueprintjs/core";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ContextOverlay, IconButton } from "../../../index";
|
|
4
|
+
import {ValidIconName} from "../../../components/Icon/canonicalIconNames";
|
|
5
|
+
import {CLASSPREFIX as eccgui} from "../../../configuration/constants";
|
|
7
6
|
|
|
8
|
-
import {
|
|
7
|
+
import ContextOverlay, {ContextOverlayProps} from "./../../../components/ContextOverlay/ContextOverlay";
|
|
8
|
+
import IconButton from "../../../components/Icon/IconButton";
|
|
9
9
|
|
|
10
10
|
// Functions regarding the menu that can be called from the outside
|
|
11
11
|
export interface NodeToolsMenuFunctions {
|
|
@@ -14,8 +14,8 @@ export interface NodeToolsMenuFunctions {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface NodeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
17
|
-
children: string | JSX.Element;
|
|
18
|
-
togglerElement?: ValidIconName | JSX.Element;
|
|
17
|
+
children: string | React.JSX.Element;
|
|
18
|
+
togglerElement?: ValidIconName | React.JSX.Element;
|
|
19
19
|
togglerText?: string;
|
|
20
20
|
menuButtonDataTestId?: string;
|
|
21
21
|
/** If defined this function will be called with the menu API object to be used externally. */
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
border-radius: $reactflow-node-border-radius;
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
56
|
-
box-shadow: 0 0 0 6 * $reactflow-node-border-width
|
|
56
|
+
box-shadow: 0 0 0 6 * $reactflow-node-border-width
|
|
57
|
+
eccgui-color-rgba($reactflow-edge-stroke-color-selected, 0.05);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
&.was-resized.is-resizable-vertical {
|
|
@@ -147,8 +148,10 @@
|
|
|
147
148
|
|
|
148
149
|
.#{$eccgui}-graphviz__node__header-depiction,
|
|
149
150
|
.#{$eccgui}-graphviz__node__header-menu {
|
|
151
|
+
display: flex;
|
|
150
152
|
flex-grow: 0;
|
|
151
153
|
flex-shrink: 0;
|
|
154
|
+
align-items: center;
|
|
152
155
|
max-height: calc(#{$reactflow-node-basesize} - #{2 * $reactflow-node-border-width});
|
|
153
156
|
margin: 0 $eccgui-size-block-whitespace * 0.25;
|
|
154
157
|
|
|
@@ -158,8 +161,6 @@
|
|
|
158
161
|
}
|
|
159
162
|
|
|
160
163
|
.#{$eccgui}-graphviz__node__header-depiction {
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: center;
|
|
163
164
|
justify-content: center;
|
|
164
165
|
|
|
165
166
|
/* TODO: does not work correctly with tooltips around
|
|
@@ -2,6 +2,7 @@ import { CSSProperties } from "react";
|
|
|
2
2
|
import {Node as NodeV9, XYPosition as XYPositionV9} from "react-flow-renderer";
|
|
3
3
|
import {Node as NodeV12, XYPosition as XYPositionV12} from "@xyflow/react";
|
|
4
4
|
import Color from "color";
|
|
5
|
+
|
|
5
6
|
import {NodeDimensions} from "./NodeContent";
|
|
6
7
|
|
|
7
8
|
interface StickyNoteBase {
|
|
@@ -15,9 +15,11 @@ import {
|
|
|
15
15
|
OverflowText,
|
|
16
16
|
Tag,
|
|
17
17
|
TagList,
|
|
18
|
+
} from "./../../../../components";
|
|
19
|
+
import {
|
|
18
20
|
NodeContent,
|
|
19
21
|
NodeContentExtension,
|
|
20
|
-
} from "./../../../../
|
|
22
|
+
} from "./../../../../extensions";
|
|
21
23
|
import {
|
|
22
24
|
Default as ContentExtensionExample,
|
|
23
25
|
SlideOutOfNode as ContentExtensionExampleSlideOut,
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
$use-flexbox-grid: $use-flexbox-grid
|
|
9
9
|
);
|
|
10
10
|
@use "~@carbon/react/scss/utilities/_visually-hidden";
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
// we replicate the function here because the distinct import is not possible via @carbon/react
|
|
12
13
|
// @import "~@carbon/styles/scss/components/ui-shell/functions";
|
|
13
14
|
@function mini-units($count) {
|
|
14
15
|
@return 0.5rem * $count;
|
|
15
16
|
}
|
|
17
|
+
|
|
16
18
|
@import "~@carbon/react/scss/feature-flags";
|
|
17
19
|
@import "~@carbon/react/scss/colors";
|
|
18
20
|
@import "~@carbon/react/scss/theme";
|
package/src/index.scss
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// == load default configuration ===============================================
|
|
10
10
|
|
|
11
11
|
@import "./configuration/variables";
|
|
12
|
+
@import "./configuration/customproperties"; // mirror config as custom properties
|
|
12
13
|
|
|
13
14
|
// == Necessary imports from libraries =========================================
|
|
14
15
|
|
|
@@ -60,6 +61,7 @@ $prefix-carbon: $prefix;
|
|
|
60
61
|
|
|
61
62
|
// == Load basic components styles =============================================
|
|
62
63
|
|
|
64
|
+
@import "./common/scss/accessibility-defaults";
|
|
63
65
|
@import "./components";
|
|
64
66
|
|
|
65
67
|
// set more readable variable for prefix
|