@eccenca/gui-elements 25.1.0 → 25.2.0-featuredarkthemesupportcmem7503.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1003 -952
- package/README.md +27 -27
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +21 -23
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +28 -12
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +17 -7
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +29 -13
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +21 -6
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +17 -7
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/cjs/cmem/markdown/Markdown.js +2 -2
- package/dist/cjs/cmem/markdown/Markdown.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +17 -7
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +17 -7
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +17 -7
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -1
- package/dist/cjs/common/utils/colorCalculateDistance.js.map +1 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js +2 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/cjs/common/utils/colorHash.js +3 -7
- package/dist/cjs/common/utils/colorHash.js.map +1 -1
- package/dist/cjs/common/utils/reduceToText.js +17 -7
- package/dist/cjs/common/utils/reduceToText.js.map +1 -1
- package/dist/cjs/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationContainer.js +3 -2
- package/dist/cjs/components/Application/ApplicationContainer.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +27 -13
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +19 -16
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js +17 -7
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +5 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Card/CardContent.js +1 -1
- package/dist/cjs/components/Card/CardContent.js.map +1 -1
- package/dist/cjs/components/Chat/ChatArea.js.map +1 -1
- package/dist/cjs/components/ColorField/ColorField.js +1 -1
- package/dist/cjs/components/ColorField/ColorField.js.map +1 -1
- package/dist/cjs/components/ContentGroup/ContentGroup.js +19 -19
- package/dist/cjs/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -5
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +6 -5
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
- package/dist/cjs/components/Depiction/Depiction.js +18 -8
- package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Dialog/ModalContext.js +3 -3
- package/dist/cjs/components/Dialog/ModalContext.js.map +1 -1
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js +17 -7
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js.map +1 -1
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js +17 -7
- package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js.map +1 -1
- package/dist/cjs/components/Grid/Grid.js.map +1 -1
- package/dist/cjs/components/Icon/IconButton.js +2 -2
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +18 -7
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/transformIcon.js.map +1 -1
- package/dist/cjs/components/Iframe/Iframe.js +17 -7
- package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
- package/dist/cjs/components/InteractionGate/InteractionGate.js +17 -7
- package/dist/cjs/components/InteractionGate/InteractionGate.js.map +1 -1
- package/dist/cjs/components/List/List.js +17 -7
- package/dist/cjs/components/List/List.js.map +1 -1
- package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +55 -25
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/NotAvailable/NotAvailable.js +42 -0
- package/dist/cjs/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +17 -7
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +6 -4
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +17 -7
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/Switch/Switch.js +17 -7
- package/dist/cjs/components/Switch/Switch.js.map +1 -1
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/components/Table/TableContainer.js +1 -1
- package/dist/cjs/components/Table/TableContainer.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandRow.js +2 -2
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
- package/dist/cjs/components/Tabs/Tab.js.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.js +17 -7
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/Tag/Tag.js +1 -1
- package/dist/cjs/components/Tag/Tag.js.map +1 -1
- package/dist/cjs/components/TextField/TextArea.js.map +1 -1
- package/dist/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Tree/Tree.js +17 -7
- package/dist/cjs/components/Tree/Tree.js.map +1 -1
- package/dist/cjs/components/Typography/HtmlContentBlock.js +17 -7
- package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js +17 -7
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
- package/dist/cjs/components/VisualTour/VisualTour.js +7 -5
- package/dist/cjs/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +43 -19
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +25 -10
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +14 -8
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js +17 -7
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +19 -9
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +22 -9
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +20 -8
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js +2 -2
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +17 -7
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js +17 -7
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +11 -9
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +21 -8
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +23 -9
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +6 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/cjs/index.js +17 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +7 -9
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +6 -3
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +2 -2
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +8 -5
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +28 -3
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/markdown/Markdown.js +1 -1
- package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/esm/common/utils/colorCalculateDistance.js.map +1 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js +2 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/esm/common/utils/colorHash.js +3 -7
- package/dist/esm/common/utils/colorHash.js.map +1 -1
- package/dist/esm/common/utils/reduceToText.js +1 -1
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Application/ApplicationContainer.js +3 -2
- package/dist/esm/components/Application/ApplicationContainer.js.map +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +12 -8
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +11 -18
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/esm/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/esm/components/Button/Button.js +5 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Card/CardContent.js +1 -1
- package/dist/esm/components/Card/CardContent.js.map +1 -1
- package/dist/esm/components/Chat/ChatArea.js.map +1 -1
- package/dist/esm/components/ColorField/ColorField.js +1 -1
- package/dist/esm/components/ColorField/ColorField.js.map +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +3 -2
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js +3 -2
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
- package/dist/esm/components/Depiction/Depiction.js +1 -1
- package/dist/esm/components/Depiction/Depiction.js.map +1 -1
- package/dist/esm/components/Dialog/Modal.js.map +1 -1
- package/dist/esm/components/Dialog/ModalContext.js +2 -2
- package/dist/esm/components/Dialog/ModalContext.js.map +1 -1
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Icon/IconButton.js +2 -2
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +1 -0
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Icon/transformIcon.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +42 -22
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/NotAvailable/NotAvailable.js +46 -0
- package/dist/esm/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/esm/components/Notification/Notification.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/esm/components/Select/Select.js +4 -2
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/esm/components/Table/TableExpandRow.js +1 -1
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
- package/dist/esm/components/Tabs/Tab.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js +1 -1
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/TextField/TextArea.js.map +1 -1
- package/dist/esm/components/TextField/TextField.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/VisualTour/VisualTour.js +7 -5
- package/dist/esm/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +26 -12
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +3 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js +11 -5
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js +3 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js +8 -6
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js +2 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +6 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +5 -5
- package/dist/types/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +1 -1
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +4 -4
- package/dist/types/cmem/ConfidenceValue/ConfidenceValue.d.ts +2 -2
- package/dist/types/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +5 -1
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +3 -3
- package/dist/types/cmem/markdown/Markdown.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +2 -1
- package/dist/types/common/utils/colorCalculateDistance.d.ts +2 -2
- package/dist/types/common/utils/colorDecideContrastvalue.d.ts +2 -2
- package/dist/types/common/utils/colorHash.d.ts +3 -3
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/types/components/Application/ApplicationContainer.d.ts +6 -1
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +6 -3
- package/dist/types/components/AutoSuggestion/ExtendedCodeEditor.d.ts +1 -1
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +2 -12
- package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Card/CardHeader.d.ts +1 -1
- package/dist/types/components/ColorField/ColorField.d.ts +2 -5
- package/dist/types/components/ContentGroup/ContentGroup.d.ts +1 -1
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +9 -3
- package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +2 -2
- package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +3 -1
- package/dist/types/components/Depiction/Depiction.d.ts +3 -3
- package/dist/types/components/Dialog/SimpleDialog.d.ts +1 -1
- package/dist/types/components/Form/FieldItem.d.ts +1 -1
- package/dist/types/components/Form/FieldSet.d.ts +3 -3
- package/dist/types/components/HoverToggler/HoverToggler.d.ts +2 -2
- package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -0
- package/dist/types/components/Label/Label.d.ts +3 -3
- package/dist/types/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +15 -4
- package/dist/types/components/NotAvailable/NotAvailable.d.ts +32 -0
- package/dist/types/components/Notification/Notification.d.ts +2 -2
- package/dist/types/components/OverviewItem/OverviewItemActions.d.ts +1 -1
- package/dist/types/components/PropertyValuePair/PropertyValueList.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +2 -2
- package/dist/types/components/Structure/TitleSubsection.d.ts +2 -5
- package/dist/types/components/SuggestField/index.d.ts +2 -2
- package/dist/types/components/Table/TableContainer.d.ts +3 -3
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +180 -186
- package/dist/types/components/Tabs/TabTitle.d.ts +1 -1
- package/dist/types/components/Tag/Tag.d.ts +2 -2
- package/dist/types/components/TextField/TextArea.d.ts +6 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +3 -3
- package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +1 -1
- package/dist/types/extensions/react-flow/handles/HandleContent.d.ts +2 -2
- package/dist/types/extensions/react-flow/handles/HandleTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +3 -3
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/sharedTypes.d.ts +2 -2
- package/package.json +60 -63
- package/scripts/compile-sass.ts +2 -0
- package/scripts/sassConfig.js +1 -1
- package/scripts/sassDeprecationConfig.js +3 -0
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +4 -9
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +33 -35
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +5 -2
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +28 -32
- package/src/cmem/ActivityControl/tests/ActivityControlWidget.test.tsx +1 -1
- package/src/cmem/ConfidenceValue/ConfidenceValue.tsx +6 -5
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +17 -7
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +12 -4
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +10 -10
- package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +2 -2
- package/src/cmem/DateTimeDisplay/tests/ElapsedDateTimeDisplay.test.tsx +2 -2
- package/src/cmem/markdown/Markdown.stories.tsx +11 -0
- package/src/cmem/markdown/Markdown.tsx +2 -1
- package/src/cmem/markdown/highlightSearchWords.test.ts +1 -1
- package/src/cmem/markdown/markdownutils.test.ts +2 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +3 -3
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +2 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlowV9.tsx +2 -5
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +6 -3
- package/src/cmem/react-flow/configuration/graph.ts +3 -3
- package/src/cmem/react-flow/configuration/linking.ts +3 -3
- package/src/cmem/react-flow/configuration/workflow.ts +3 -3
- package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +14 -14
- package/src/common/scss/_color-functions.scss +151 -5
- package/src/common/utils/CssCustomProperties.ts +1 -1
- package/src/common/utils/characters.ts +2 -2
- package/src/common/utils/colorCalculateDistance.ts +2 -2
- package/src/common/utils/colorDecideContrastvalue.ts +4 -3
- package/src/common/utils/colorHash.ts +13 -17
- package/src/common/utils/getColorConfiguration.ts +2 -2
- package/src/common/utils/openInNewTab.ts +1 -1
- package/src/common/utils/reduceToText.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +3 -2
- package/src/components/Accordion/Stories/AccordionItem.stories.tsx +1 -1
- package/src/components/Application/ApplicationContainer.tsx +15 -2
- package/src/components/Application/ApplicationSidebarNavigation.tsx +6 -2
- package/src/components/Application/ApplicationTitle.tsx +9 -1
- package/src/components/Application/ApplicationToolbarAction.tsx +2 -1
- package/src/components/Application/_colors.scss +27 -3
- package/src/components/Application/_container.scss +5 -0
- package/src/components/Application/_header.scss +13 -10
- package/src/components/Application/_sidebar.scss +2 -0
- package/src/components/Application/application.scss +1 -0
- package/src/components/Application/stories/Application.stories.tsx +13 -1
- package/src/components/Application/stories/ColorPalettes.stories.tsx +23 -19
- package/src/components/Application/tests/ApplicationViewability.test.tsx +1 -7
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +30 -23
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +5 -3
- package/src/components/AutoSuggestion/ExtendedCodeEditor.tsx +2 -2
- package/src/components/AutoSuggestion/extensions/markText.ts +1 -1
- package/src/components/AutocompleteField/AutoCompleteField.tsx +16 -25
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +7 -3
- package/src/components/Badge/Badge.stories.tsx +1 -1
- package/src/components/Breadcrumb/BreadcrumbList.tsx +4 -3
- package/src/components/Button/Button.test.tsx +2 -2
- package/src/components/Button/Button.tsx +13 -11
- package/src/components/Button/button.scss +2 -3
- package/src/components/Card/CardContent.tsx +17 -20
- package/src/components/Card/CardHeader.tsx +1 -1
- package/src/components/Card/card.scss +8 -4
- package/src/components/Card/stories/Card.stories.tsx +1 -1
- package/src/components/Chat/ChatArea.tsx +1 -2
- package/src/components/Chat/_chat.scss +2 -2
- package/src/components/Checkbox/Stories/Checkbox.stories.tsx +1 -1
- package/src/components/Checkbox/checkbox.scss +9 -0
- package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +9 -3
- package/src/components/ColorField/ColorField.test.tsx +1 -1
- package/src/components/ColorField/ColorField.tsx +6 -6
- package/src/components/ContentGroup/ContentGroup.stories.tsx +1 -1
- package/src/components/ContentGroup/ContentGroup.tsx +6 -6
- package/src/components/ContextOverlay/ContextMenu.tsx +10 -4
- package/src/components/ContextOverlay/ContextOverlay.stories.tsx +1 -1
- package/src/components/ContextOverlay/ContextOverlay.tsx +16 -11
- package/src/components/ContextOverlay/tests/ContextOverlay.test.tsx +2 -2
- package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +11 -4
- package/src/components/Depiction/Depiction.tsx +6 -6
- package/src/components/Dialog/Modal.tsx +9 -7
- package/src/components/Dialog/ModalContext.tsx +6 -6
- package/src/components/Dialog/SimpleDialog.tsx +1 -1
- package/src/components/Dialog/stories/AlertDialog.stories.tsx +1 -1
- package/src/components/Dialog/stories/Modal.stories.tsx +2 -2
- package/src/components/Dialog/stories/SimpleDialog.stories.tsx +1 -1
- package/src/components/FlexibleLayout/FlexibleLayoutContainer.tsx +2 -2
- package/src/components/FlexibleLayout/FlexibleLayoutItem.tsx +2 -2
- package/src/components/Form/FieldItem.tsx +1 -1
- package/src/components/Form/FieldSet.tsx +3 -3
- package/src/components/Form/Stories/FieldItem.stories.tsx +1 -1
- package/src/components/Form/Stories/FieldSet.stories.tsx +1 -1
- package/src/components/Grid/Grid.tsx +4 -2
- package/src/components/Grid/stories/GridColumn.stories.tsx +1 -1
- package/src/components/Grid/stories/GridRow.stories.tsx +1 -1
- package/src/components/HoverToggler/HoverToggler.tsx +2 -2
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/IconButton.tsx +3 -3
- package/src/components/Icon/canonicalIconNames.tsx +1 -0
- package/src/components/Icon/icon.scss +4 -4
- package/src/components/Icon/stories/Icon.stories.tsx +1 -1
- package/src/components/Icon/stories/IconButton.stories.tsx +1 -1
- package/src/components/Icon/stories/TestIcon.stories.tsx +1 -1
- package/src/components/Icon/transformIcon.tsx +11 -9
- package/src/components/Iframe/Iframe.tsx +2 -2
- package/src/components/Iframe/iframe.scss +8 -0
- package/src/components/Label/Label.tsx +4 -4
- package/src/components/List/List.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +3 -2
- package/src/components/Menu/Stories/MenuItem.stories.tsx +1 -1
- package/src/components/Menu/menu.scss +1 -0
- package/src/components/MultiSelect/MultiSelect.tsx +62 -26
- package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +1 -1
- package/src/components/MultiSuggestField/index.ts +1 -1
- package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +24 -57
- package/src/components/NotAvailable/NotAvailable.stories.tsx +15 -0
- package/src/components/NotAvailable/NotAvailable.tsx +69 -0
- package/src/components/Notification/Notification.stories.tsx +2 -1
- package/src/components/Notification/Notification.tsx +5 -4
- package/src/components/OverviewItem/OverviewItemActions.tsx +1 -1
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemListPerformance.tsx +2 -2
- package/src/components/Pagination/Pagination.tsx +2 -2
- package/src/components/Pagination/Stories/Pagination.stories.tsx +32 -0
- package/src/components/Pagination/pagination.scss +54 -4
- package/src/components/PropertyValuePair/PropertyValueList.tsx +1 -1
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
- package/src/components/RadioButton/radiobutton.scss +9 -0
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Select/Select.tsx +7 -4
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Spinner/Spinner.tsx +2 -2
- package/src/components/Sticky/StickyTarget.tsx +1 -1
- package/src/components/Sticky/stories/StickyTarget.stories.tsx +2 -2
- package/src/components/Structure/TitleSubsection.tsx +2 -2
- package/src/components/SuggestField/SuggestField.stories.tsx +2 -2
- package/src/components/Table/Table.tsx +3 -2
- package/src/components/Table/TableContainer.tsx +11 -6
- package/src/components/Table/TableExpandHeader.tsx +2 -1
- package/src/components/Table/TableExpandRow.tsx +3 -2
- package/src/components/Table/index.tsx +7 -1
- package/src/components/Tabs/Tab.tsx +2 -2
- package/src/components/Tabs/TabTitle.tsx +1 -1
- package/src/components/Tag/Tag.tsx +9 -10
- package/src/components/Tag/stories/Tag.stories.tsx +1 -1
- package/src/components/Tag/stories/TagList.stories.tsx +1 -1
- package/src/components/TextField/TextArea.tsx +12 -7
- package/src/components/TextField/TextField.tsx +4 -3
- package/src/components/TextField/stories/TextArea.stories.tsx +1 -1
- package/src/components/TextField/stories/TextField.stories.tsx +1 -3
- package/src/components/TextField/useTextValidation.ts +4 -4
- package/src/components/TextReducer/TextReducer.stories.tsx +4 -1
- package/src/components/TextReducer/TextReducer.test.tsx +2 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.test.tsx +5 -5
- package/src/components/Tooltip/Tooltip.tsx +5 -5
- package/src/components/Typography/stories/OverflowText.stories.tsx +1 -1
- package/src/components/Typography/typography.scss +25 -3
- package/src/components/VisualTour/VisualTour.tsx +10 -10
- package/src/components/Workspace/workspace.scss +0 -5
- package/src/components/index.ts +1 -0
- package/src/configuration/_palettes.scss +66 -2
- package/src/configuration/_variables.scss +3 -1
- package/src/configuration/stories/customproperties.stories.tsx +45 -7
- package/src/extensions/codemirror/CodeMirror.tsx +131 -79
- package/src/extensions/codemirror/_codemirror.scss +59 -0
- package/src/extensions/codemirror/debouncedLinter.ts +2 -2
- package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +9 -5
- package/src/extensions/codemirror/tests/CodeEditor.test.tsx +4 -4
- package/src/extensions/codemirror/tests/EditorAppearanceConfigMenu.test.tsx +5 -5
- package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +12 -12
- package/src/extensions/codemirror/toolbars/commands/markdown.command.ts +6 -6
- package/src/extensions/react-flow/_react-flow_v12.scss +37 -18
- package/src/extensions/react-flow/edges/EdgeBezier.tsx +1 -2
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +4 -4
- package/src/extensions/react-flow/edges/EdgeDefaultV12.tsx +5 -5
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +10 -8
- package/src/extensions/react-flow/edges/EdgeNew.tsx +29 -31
- package/src/extensions/react-flow/edges/EdgeTools.tsx +2 -3
- package/src/extensions/react-flow/edges/_edges.scss +1 -0
- package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +1 -1
- package/src/extensions/react-flow/edges/stories/EdgeDefaultV12.stories.tsx +1 -1
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +2 -1
- package/src/extensions/react-flow/edges/utils.ts +5 -3
- package/src/extensions/react-flow/handles/HandleContent.tsx +3 -3
- package/src/extensions/react-flow/handles/HandleDefault.tsx +56 -46
- package/src/extensions/react-flow/handles/HandleTools.tsx +4 -5
- package/src/extensions/react-flow/handles/stories/HandleDefault.stories.tsx +2 -7
- package/src/extensions/react-flow/index.ts +1 -1
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +2 -2
- package/src/extensions/react-flow/minimap/MiniMap.tsx +17 -20
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +2 -3
- package/src/extensions/react-flow/nodes/NodeContent.tsx +65 -57
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +6 -3
- package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeTools.tsx +5 -5
- package/src/extensions/react-flow/nodes/_nodes.scss +2 -1
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +10 -5
- package/src/extensions/react-flow/nodes/sharedTypes.ts +2 -2
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +38 -24
- package/src/extensions/react-flow/nodes/stories/NodeContentV12.stories.tsx +1 -1
- package/src/extensions/react-flow/nodes/stories/NodeDefault.stories.tsx +1 -1
- package/src/includes/blueprintjs/_variables.scss +1 -0
- package/src/includes/carbon-components/_requisits.scss +10 -0
- package/src/includes/carbon-components/_variables.scss +2 -1
- package/src/index.scss +2 -2
- package/src/test/setupTests.js +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Link from "../../components/Link/Link";
|
|
4
|
+
import Spacing from "../../components/Separation/Spacing";
|
|
5
|
+
import InlineText from "../../components/Typography/InlineText";
|
|
4
6
|
|
|
5
7
|
export interface ContentBlobTogglerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
8
|
/**
|
|
@@ -31,6 +33,10 @@ export interface ContentBlobTogglerProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
31
33
|
Callback if toggler is necessary. Default: true
|
|
32
34
|
*/
|
|
33
35
|
enableToggler?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Force always inline rendering.
|
|
38
|
+
*/
|
|
39
|
+
forceInline?: boolean;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/** Shows a preview with the option to expand to a full view (and back). */
|
|
@@ -42,27 +48,29 @@ export function ContentBlobToggler({
|
|
|
42
48
|
fullviewContent,
|
|
43
49
|
startExtended = false,
|
|
44
50
|
enableToggler = true,
|
|
51
|
+
forceInline = false,
|
|
45
52
|
...otherProps
|
|
46
53
|
}: ContentBlobTogglerProps) {
|
|
47
54
|
const [isExtended, setViewState] = useState(startExtended);
|
|
48
|
-
const handlerToggleView = (event:
|
|
55
|
+
const handlerToggleView = (event: React.MouseEvent<HTMLAnchorElement>) => {
|
|
49
56
|
event.preventDefault();
|
|
50
57
|
event.stopPropagation();
|
|
51
58
|
setViewState(!isExtended);
|
|
52
59
|
};
|
|
53
60
|
|
|
54
|
-
|
|
61
|
+
const tooglerDisplay = (
|
|
55
62
|
<div className={className} {...otherProps}>
|
|
56
63
|
{!isExtended ? (
|
|
57
64
|
<>
|
|
58
65
|
{previewContent}
|
|
59
66
|
{enableToggler && (
|
|
60
67
|
<>
|
|
61
|
-
{" "}
|
|
68
|
+
{" "}
|
|
69
|
+
…{" "}
|
|
62
70
|
<Link
|
|
63
71
|
href="#more"
|
|
64
72
|
data-test-id={"content-blob-toggler-more-link"}
|
|
65
|
-
onClick={(e:
|
|
73
|
+
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
66
74
|
handlerToggleView(e);
|
|
67
75
|
}}
|
|
68
76
|
>
|
|
@@ -76,11 +84,11 @@ export function ContentBlobToggler({
|
|
|
76
84
|
{fullviewContent}
|
|
77
85
|
{enableToggler && (
|
|
78
86
|
<div>
|
|
79
|
-
<Spacing size="small" />
|
|
87
|
+
{forceInline ? <> </> : <Spacing size="small" />}
|
|
80
88
|
<Link
|
|
81
89
|
data-test-id={"content-blob-toggler-less-link"}
|
|
82
90
|
href="#less"
|
|
83
|
-
onClick={(e:
|
|
91
|
+
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
84
92
|
handlerToggleView(e);
|
|
85
93
|
}}
|
|
86
94
|
>
|
|
@@ -92,4 +100,6 @@ export function ContentBlobToggler({
|
|
|
92
100
|
)}
|
|
93
101
|
</div>
|
|
94
102
|
);
|
|
103
|
+
|
|
104
|
+
return forceInline ? <InlineText>{tooglerDisplay}</InlineText> : tooglerDisplay;
|
|
95
105
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { utils } from "../../common";
|
|
4
|
+
import InlineText from "../../components/Typography/InlineText";
|
|
5
|
+
import { Markdown } from "../markdown/Markdown";
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
import { ContentBlobToggler, ContentBlobTogglerProps } from "./ContentBlobToggler";
|
|
8
|
+
|
|
9
|
+
export interface StringPreviewContentBlobTogglerProps extends Omit<
|
|
10
|
+
ContentBlobTogglerProps,
|
|
11
|
+
"previewContent" | "enableToggler"
|
|
12
|
+
> {
|
|
7
13
|
/**
|
|
8
14
|
* The preview content will be cut to this length if it is too long.
|
|
9
15
|
*/
|
|
@@ -31,7 +37,7 @@ export interface StringPreviewContentBlobTogglerProps
|
|
|
31
37
|
* Allows to add non-string elements at the end of the content if the full description is shown, i.e. no toggler is necessary.
|
|
32
38
|
* This allows to add non-string elements to both the full-view content and the pure string content.
|
|
33
39
|
*/
|
|
34
|
-
noTogglerContentSuffix?: JSX.Element;
|
|
40
|
+
noTogglerContentSuffix?: React.JSX.Element;
|
|
35
41
|
/**
|
|
36
42
|
* If only the first non-empty line should be shown in the preview.
|
|
37
43
|
* This will in addition also be shortened according to `previewMaxLength`.
|
|
@@ -54,6 +60,7 @@ export function StringPreviewContentBlobToggler({
|
|
|
54
60
|
allowedHtmlElementsInPreview,
|
|
55
61
|
noTogglerContentSuffix,
|
|
56
62
|
firstNonEmptyLineOnly,
|
|
63
|
+
...otherContentBlobTogglerProps
|
|
57
64
|
}: StringPreviewContentBlobTogglerProps) {
|
|
58
65
|
// need to test `firstNonEmptyLineOnly` until property is removed
|
|
59
66
|
const useOnlyTest: StringPreviewContentBlobTogglerProps["useOnly"] = firstNonEmptyLineOnly
|
|
@@ -105,6 +112,7 @@ export function StringPreviewContentBlobToggler({
|
|
|
105
112
|
fullviewContent={fullviewContent}
|
|
106
113
|
startExtended={startExtended}
|
|
107
114
|
enableToggler={enableToggler}
|
|
115
|
+
{...otherContentBlobTogglerProps}
|
|
108
116
|
/>
|
|
109
117
|
);
|
|
110
118
|
}
|
|
@@ -21,12 +21,12 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
21
21
|
const { queryByText } = render(
|
|
22
22
|
<StringPreviewContentBlobToggler
|
|
23
23
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
24
|
-
|
|
24
|
+
/>,
|
|
25
25
|
);
|
|
26
26
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
27
27
|
textMustNotExist(
|
|
28
28
|
queryByText,
|
|
29
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
29
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
30
30
|
);
|
|
31
31
|
textMustExist(queryByText, "show more");
|
|
32
32
|
});
|
|
@@ -35,11 +35,11 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
35
35
|
<StringPreviewContentBlobToggler
|
|
36
36
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
37
37
|
startExtended
|
|
38
|
-
|
|
38
|
+
/>,
|
|
39
39
|
);
|
|
40
40
|
textMustExist(
|
|
41
41
|
queryByText,
|
|
42
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
42
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
43
43
|
);
|
|
44
44
|
textMustExist(queryByText, "show less");
|
|
45
45
|
});
|
|
@@ -48,7 +48,7 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
48
48
|
<StringPreviewContentBlobToggler
|
|
49
49
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
50
50
|
useOnly={"firstNonEmptyLine"}
|
|
51
|
-
|
|
51
|
+
/>,
|
|
52
52
|
);
|
|
53
53
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
54
54
|
textMustNotExist(queryByText, "In order to create");
|
|
@@ -58,7 +58,7 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
58
58
|
<StringPreviewContentBlobToggler
|
|
59
59
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
60
60
|
useOnly={"firstMarkdownSection"}
|
|
61
|
-
|
|
61
|
+
/>,
|
|
62
62
|
);
|
|
63
63
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
64
64
|
textMustExist(queryByText, "In order to create");
|
|
@@ -69,12 +69,12 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
69
69
|
<StringPreviewContentBlobToggler
|
|
70
70
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
71
71
|
previewMaxLength={144}
|
|
72
|
-
|
|
72
|
+
/>,
|
|
73
73
|
);
|
|
74
74
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
75
75
|
textMustExist(
|
|
76
76
|
queryByText,
|
|
77
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
77
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
78
78
|
);
|
|
79
79
|
textMustNotExist(queryByText, "https://github.com/"); // test if Markdown was rendered
|
|
80
80
|
textMustNotExist(queryByText, "show more");
|
|
@@ -85,12 +85,12 @@ describe("StringPreviewContentBlobToggler", () => {
|
|
|
85
85
|
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
86
86
|
previewMaxLength={144}
|
|
87
87
|
renderPreviewAsMarkdown={false}
|
|
88
|
-
|
|
88
|
+
/>,
|
|
89
89
|
);
|
|
90
90
|
textMustExist(queryByText, "A library for GUI elements.");
|
|
91
91
|
textMustExist(
|
|
92
92
|
queryByText,
|
|
93
|
-
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
93
|
+
"In order to create graphical user interfaces, please have look at the documentation at",
|
|
94
94
|
);
|
|
95
95
|
textMustExist(queryByText, "https://github.com/"); // test if Markdown was rendered
|
|
96
96
|
textMustExist(queryByText, "show more");
|
|
@@ -56,7 +56,7 @@ const elapsedTimeSegmented = (elapsedTimeInMs: number): number[] => {
|
|
|
56
56
|
const simplifiedElapsedTime = (
|
|
57
57
|
timeSegments: number[],
|
|
58
58
|
translateUnits: (unit: ElapsedDateTimeDisplayUnits) => string,
|
|
59
|
-
includeSeconds = false
|
|
59
|
+
includeSeconds = false,
|
|
60
60
|
) => {
|
|
61
61
|
const units: ElapsedDateTimeDisplayUnits[] = ["day", "hour", "minute"];
|
|
62
62
|
|
|
@@ -75,7 +75,7 @@ const simplifiedElapsedTime = (
|
|
|
75
75
|
return `< 1 ${translateUnits("minute")}`;
|
|
76
76
|
} else {
|
|
77
77
|
return `${timeSegments[idx]} ${translateUnits(
|
|
78
|
-
(units[idx] + (timeSegments[idx] > 1 ? "s" : "")) as ElapsedDateTimeDisplayUnits
|
|
78
|
+
(units[idx] + (timeSegments[idx] > 1 ? "s" : "")) as ElapsedDateTimeDisplayUnits,
|
|
79
79
|
)}`;
|
|
80
80
|
}
|
|
81
81
|
};
|
|
@@ -9,8 +9,8 @@ describe("Elapsed time component", () => {
|
|
|
9
9
|
expect(
|
|
10
10
|
elapsedDateTimeDisplayUtils.simplifiedElapsedTime(
|
|
11
11
|
elapsedDateTimeDisplayUtils.elapsedTimeSegmented(timeInSeconds * 1000),
|
|
12
|
-
translate
|
|
13
|
-
)
|
|
12
|
+
translate,
|
|
13
|
+
),
|
|
14
14
|
).toBe(expectedString);
|
|
15
15
|
it("should segment the time", () => {
|
|
16
16
|
checkMS(2123, "0:0:0:2");
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
|
+
import { Card, CardContent } from "../../components/Card/index";
|
|
5
|
+
|
|
4
6
|
import { Markdown } from "./../../../index";
|
|
5
7
|
|
|
6
8
|
export default {
|
|
7
9
|
title: "Cmem/Markdown",
|
|
8
10
|
component: Markdown,
|
|
9
11
|
argTypes: {},
|
|
12
|
+
decorators: [
|
|
13
|
+
(Story) => (
|
|
14
|
+
<Card>
|
|
15
|
+
<CardContent>
|
|
16
|
+
<Story />
|
|
17
|
+
</CardContent>
|
|
18
|
+
</Card>
|
|
19
|
+
),
|
|
20
|
+
],
|
|
10
21
|
} as Meta<typeof Markdown>;
|
|
11
22
|
|
|
12
23
|
const Template: StoryFn<typeof Markdown> = (args) => <Markdown {...args} />;
|
|
@@ -8,8 +8,9 @@ import { remarkDefinitionList } from "remark-definition-list";
|
|
|
8
8
|
import remarkGfm from "remark-gfm";
|
|
9
9
|
import { PluggableList } from "unified";
|
|
10
10
|
|
|
11
|
+
import { TestableComponent } from "../../components";
|
|
12
|
+
import { HtmlContentBlock, HtmlContentBlockProps } from "../../components/Typography";
|
|
11
13
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
12
|
-
import { HtmlContentBlock, HtmlContentBlockProps, TestableComponent } from "../../index";
|
|
13
14
|
|
|
14
15
|
export interface MarkdownProps extends TestableComponent {
|
|
15
16
|
children: string;
|
|
@@ -3,14 +3,14 @@ import utils from "./markdown.utils";
|
|
|
3
3
|
describe("Markdown utils", () => {
|
|
4
4
|
it("should extract named anchors from the Markdown", () => {
|
|
5
5
|
const namedAnchors = utils.extractNamedAnchors(
|
|
6
|
-
'# Header\n\nsome text\n\n## <a id="anchor1" ></a> point 1\n\n## <a id="anchor2"></a> point 2'
|
|
6
|
+
'# Header\n\nsome text\n\n## <a id="anchor1" ></a> point 1\n\n## <a id="anchor2"></a> point 2',
|
|
7
7
|
);
|
|
8
8
|
expect(namedAnchors).toStrictEqual(["anchor1", "anchor2"]);
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
it("should not extract named anchors from the Markdown that are not following the expected format", () => {
|
|
12
12
|
const namedAnchors = utils.extractNamedAnchors(
|
|
13
|
-
'# <a id="anchor" href="http://">link text</a> \n\n## <a name="test" id="anchor2"></a> point 2'
|
|
13
|
+
'# <a id="anchor" href="http://">link text</a> \n\n## <a name="test" id="anchor2"></a> point 2',
|
|
14
14
|
);
|
|
15
15
|
expect(namedAnchors).toStrictEqual([]);
|
|
16
16
|
});
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Position,
|
|
8
8
|
} from "react-flow-renderer";
|
|
9
9
|
import { Meta, StoryFn } from "@storybook/react";
|
|
10
|
-
import { fn } from "
|
|
10
|
+
import { fn } from "storybook/test";
|
|
11
11
|
import {
|
|
12
12
|
Background as BackgroundV12,
|
|
13
13
|
BackgroundVariant as BackgroundVariantV12,
|
|
@@ -444,7 +444,7 @@ const ReactFlowExampleV9: FC<ReactFlowExtendedProps> = (args) => {
|
|
|
444
444
|
}}
|
|
445
445
|
>
|
|
446
446
|
EdgeTools demo, add elements here.
|
|
447
|
-
</EdgeTools
|
|
447
|
+
</EdgeTools>,
|
|
448
448
|
);
|
|
449
449
|
}
|
|
450
450
|
}, []);
|
|
@@ -455,7 +455,7 @@ const ReactFlowExampleV9: FC<ReactFlowExtendedProps> = (args) => {
|
|
|
455
455
|
setReactflowInstance(rfi);
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
|
-
[reactflowInstance]
|
|
458
|
+
[reactflowInstance],
|
|
459
459
|
);
|
|
460
460
|
|
|
461
461
|
const { style, ...otherProps } = args;
|
|
@@ -93,7 +93,7 @@ const ReactFlowExtendedPlain = <T extends ReactFlowExtendedProps>(
|
|
|
93
93
|
zoomActivationKeyCode,
|
|
94
94
|
...originalProps
|
|
95
95
|
}: T,
|
|
96
|
-
outerRef: Ref<HTMLDivElement
|
|
96
|
+
outerRef: Ref<HTMLDivElement>,
|
|
97
97
|
) => {
|
|
98
98
|
const innerRef = React.useRef<HTMLDivElement>(null);
|
|
99
99
|
React.useImperativeHandle(outerRef, () => innerRef.current!, []);
|
|
@@ -205,7 +205,7 @@ const ReactFlowExtendedPlain = <T extends ReactFlowExtendedProps>(
|
|
|
205
205
|
|
|
206
206
|
/** Hack to make the Type Parameter work with the forward ref. */
|
|
207
207
|
export const ReactFlowExtended = React.forwardRef(ReactFlowExtendedPlain) as <T extends ReactFlowExtendedProps>(
|
|
208
|
-
p: T & { ref?: Ref<HTMLDivElement> }
|
|
208
|
+
p: T & { ref?: Ref<HTMLDivElement> },
|
|
209
209
|
) => ReactElement;
|
|
210
210
|
|
|
211
211
|
/**
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
default as ReactFlowV9,
|
|
4
|
-
ReactFlowProps as ReactFlowV9Props
|
|
5
|
-
} from "react-flow-renderer";
|
|
2
|
+
import { default as ReactFlowV9, ReactFlowProps as ReactFlowV9Props } from "react-flow-renderer";
|
|
6
3
|
|
|
7
4
|
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
|
|
8
5
|
|
|
@@ -25,5 +22,5 @@ export const ReactFlowV9Container = React.forwardRef<HTMLDivElement, ReactFlowV9
|
|
|
25
22
|
{children}
|
|
26
23
|
</ReactFlowV9>
|
|
27
24
|
);
|
|
28
|
-
}
|
|
25
|
+
},
|
|
29
26
|
);
|
|
@@ -40,7 +40,10 @@ export interface StickyNoteModalProps {
|
|
|
40
40
|
/**
|
|
41
41
|
* Forward other properties to the `SimpleModal` element that is used for this dialog.
|
|
42
42
|
*/
|
|
43
|
-
simpleDialogProps?: Omit<
|
|
43
|
+
simpleDialogProps?: Omit<
|
|
44
|
+
SimpleDialogProps,
|
|
45
|
+
"size" | "title" | "hasBorder" | "isOpen" | "onClose" | "actions" | "children"
|
|
46
|
+
>;
|
|
44
47
|
/**
|
|
45
48
|
* Code editor props
|
|
46
49
|
*/
|
|
@@ -52,7 +55,7 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
|
52
55
|
const refNote = React.useRef<string>(metaData?.note ?? "");
|
|
53
56
|
const [color, setSelectedColor] = React.useState<string>(metaData?.color ?? "");
|
|
54
57
|
const noteColors: [string, string][] = Object.entries(getColorConfiguration("stickynotes")).map(
|
|
55
|
-
([key, value]) => [key, value as string]
|
|
58
|
+
([key, value]) => [key, value as string],
|
|
56
59
|
);
|
|
57
60
|
const { disableHotKeys } = React.useContext(ReactFlowHotkeyContext);
|
|
58
61
|
|
|
@@ -149,5 +152,5 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
|
149
152
|
</FieldItem>
|
|
150
153
|
</SimpleDialog>
|
|
151
154
|
);
|
|
152
|
-
}
|
|
155
|
+
},
|
|
153
156
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { NodeProps } from "react-flow-renderer";
|
|
2
|
+
|
|
1
3
|
import { EdgeBezier } from "./../../../extensions/react-flow/edges/EdgeBezier";
|
|
2
4
|
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
|
|
3
5
|
import { GRAPH_NODE_TYPES } from "./typing";
|
|
4
|
-
//import {ComponentType} from "react";
|
|
5
|
-
//import {NodeProps} from "react-flow-renderer-lts";
|
|
6
6
|
|
|
7
7
|
const edgeTypes = {
|
|
8
8
|
default: EdgeBezier,
|
|
@@ -16,7 +16,7 @@ const edgeTypes = {
|
|
|
16
16
|
danger: EdgeBezier,
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const nodeTypes: Record<GRAPH_NODE_TYPES, React.
|
|
19
|
+
const nodeTypes: Record<GRAPH_NODE_TYPES, React.ComponentType<NodeProps>> = {
|
|
20
20
|
default: NodeDefault,
|
|
21
21
|
graph: NodeDefault,
|
|
22
22
|
class: NodeDefault,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { NodeProps } from "react-flow-renderer";
|
|
2
|
+
|
|
1
3
|
import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
|
|
2
4
|
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
|
|
3
5
|
import { StickyNoteNode } from "./../nodes/StickyNoteNode";
|
|
4
6
|
import { LINKING_NODE_TYPES } from "./typing";
|
|
5
|
-
//import {ComponentType} from "react";
|
|
6
|
-
//import {NodeProps} from "react-flow-renderer-lts";
|
|
7
7
|
|
|
8
8
|
const edgeTypes = {
|
|
9
9
|
default: EdgeStep,
|
|
@@ -14,7 +14,7 @@ const edgeTypes = {
|
|
|
14
14
|
danger: EdgeStep,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const nodeTypes: Record<LINKING_NODE_TYPES, React.
|
|
17
|
+
const nodeTypes: Record<LINKING_NODE_TYPES, React.ComponentType<NodeProps>> = {
|
|
18
18
|
default: NodeDefault,
|
|
19
19
|
sourcepath: NodeDefault,
|
|
20
20
|
targetpath: NodeDefault,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { NodeProps } from "react-flow-renderer";
|
|
2
|
+
|
|
1
3
|
import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
|
|
2
4
|
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
|
|
3
5
|
import { StickyNoteNode } from "./../nodes/StickyNoteNode";
|
|
4
6
|
import { WORKFLOW_NODE_TYPES } from "./typing";
|
|
5
|
-
//import {ComponentType} from "react";
|
|
6
|
-
//import {NodeProps} from "react-flow-renderer-lts";
|
|
7
7
|
|
|
8
8
|
const edgeTypes = {
|
|
9
9
|
default: EdgeStep,
|
|
@@ -12,7 +12,7 @@ const edgeTypes = {
|
|
|
12
12
|
danger: EdgeStep,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
const nodeTypes: Record<WORKFLOW_NODE_TYPES, React.
|
|
15
|
+
const nodeTypes: Record<WORKFLOW_NODE_TYPES, React.ComponentType<NodeProps>> = {
|
|
16
16
|
default: NodeDefault,
|
|
17
17
|
dataset: NodeDefault,
|
|
18
18
|
linking: NodeDefault,
|
|
@@ -115,7 +115,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
115
115
|
clearIntervalIfExists();
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
-
[clearIntervalIfExists]
|
|
118
|
+
[clearIntervalIfExists],
|
|
119
119
|
);
|
|
120
120
|
|
|
121
121
|
// Handle scrolling if any operation is active e.g. connecting or dragging a node
|
|
@@ -150,14 +150,14 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
150
150
|
boundingRect.left > event.clientX
|
|
151
151
|
? xStepSize
|
|
152
152
|
: boundingRect.right < event.clientX
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
? -xStepSize
|
|
154
|
+
: 0;
|
|
155
155
|
const scrollY: number =
|
|
156
156
|
boundingRect.top > event.clientY
|
|
157
157
|
? yStepSize
|
|
158
158
|
: boundingRect.bottom < event.clientY
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
? -yStepSize
|
|
160
|
+
: 0;
|
|
161
161
|
if (state.scrollY === (scrollY !== 0) && state.scrollX === (scrollX !== 0)) {
|
|
162
162
|
// Nothing has changed, do not change interval function
|
|
163
163
|
return;
|
|
@@ -194,7 +194,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
194
194
|
scrollState.current.reactFlowInstance = rfi;
|
|
195
195
|
originalOnLoad?.(rfi);
|
|
196
196
|
},
|
|
197
|
-
[originalOnLoad]
|
|
197
|
+
[originalOnLoad],
|
|
198
198
|
);
|
|
199
199
|
|
|
200
200
|
/** Wrap original callbacks to turn scrolling on and off. */
|
|
@@ -203,7 +203,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
203
203
|
setScrolling(true);
|
|
204
204
|
originalOnConnectStart?.(event, params);
|
|
205
205
|
},
|
|
206
|
-
[originalOnConnectStart, setScrolling]
|
|
206
|
+
[originalOnConnectStart, setScrolling],
|
|
207
207
|
);
|
|
208
208
|
|
|
209
209
|
const onConnectStop: OnConnectStopFunc = React.useCallback(
|
|
@@ -211,7 +211,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
211
211
|
setScrolling(false);
|
|
212
212
|
originalOnConnectStop?.(event);
|
|
213
213
|
},
|
|
214
|
-
[originalOnConnectStop, setScrolling]
|
|
214
|
+
[originalOnConnectStop, setScrolling],
|
|
215
215
|
);
|
|
216
216
|
|
|
217
217
|
const onNodeDragStart = React.useCallback(
|
|
@@ -219,7 +219,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
219
219
|
setScrolling(true);
|
|
220
220
|
originalOnNodeDragStart?.(event, node);
|
|
221
221
|
},
|
|
222
|
-
[originalOnNodeDragStart, setScrolling]
|
|
222
|
+
[originalOnNodeDragStart, setScrolling],
|
|
223
223
|
);
|
|
224
224
|
|
|
225
225
|
const onNodeDragStop = React.useCallback(
|
|
@@ -227,7 +227,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
227
227
|
setScrolling(false);
|
|
228
228
|
originalOnNodeDragStop?.(event, node);
|
|
229
229
|
},
|
|
230
|
-
[originalOnNodeDragStop, setScrolling]
|
|
230
|
+
[originalOnNodeDragStop, setScrolling],
|
|
231
231
|
);
|
|
232
232
|
|
|
233
233
|
const onSelectionDragStart = React.useCallback(
|
|
@@ -235,7 +235,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
235
235
|
setScrolling(true);
|
|
236
236
|
originalOnSelectionDragStart?.(event, nodes);
|
|
237
237
|
},
|
|
238
|
-
[originalOnSelectionDragStart, setScrolling]
|
|
238
|
+
[originalOnSelectionDragStart, setScrolling],
|
|
239
239
|
);
|
|
240
240
|
|
|
241
241
|
const onSelectionDragStop = React.useCallback(
|
|
@@ -243,7 +243,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
243
243
|
setScrolling(false);
|
|
244
244
|
originalOnSelectionDragStop?.(event, nodes);
|
|
245
245
|
},
|
|
246
|
-
[originalOnSelectionDragStop, setScrolling]
|
|
246
|
+
[originalOnSelectionDragStop, setScrolling],
|
|
247
247
|
);
|
|
248
248
|
|
|
249
249
|
const onEdgeUpdateStart = React.useCallback(
|
|
@@ -251,7 +251,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
251
251
|
setScrolling(true);
|
|
252
252
|
originalOnEdgeUpdateStart?.(event, edge);
|
|
253
253
|
},
|
|
254
|
-
[originalOnEdgeUpdateStart, setScrolling]
|
|
254
|
+
[originalOnEdgeUpdateStart, setScrolling],
|
|
255
255
|
);
|
|
256
256
|
|
|
257
257
|
const onEdgeUpdateEnd = React.useCallback(
|
|
@@ -259,7 +259,7 @@ export const useReactFlowScrollOnDragV9 = ({ reactFlowProps, scrollOnDrag }: IPr
|
|
|
259
259
|
setScrolling(false);
|
|
260
260
|
originalOnEdgeUpdateEnd?.(event, edge);
|
|
261
261
|
},
|
|
262
|
-
[originalOnEdgeUpdateEnd, setScrolling]
|
|
262
|
+
[originalOnEdgeUpdateEnd, setScrolling],
|
|
263
263
|
);
|
|
264
264
|
|
|
265
265
|
if (!reactFlowProps.id || !scrollOnDrag) {
|