@eccenca/gui-elements 22.0.0-rc.7 → 22.1.0-rc.1
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 +36 -4
- package/README.md +21 -7
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +23 -15
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +23 -6
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +59 -31
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/index.js +11 -0
- package/dist/cjs/cmem/ActivityControl/index.js.map +1 -0
- package/dist/cjs/cmem/ContentBlobToggler/index.js +8 -0
- package/dist/cjs/cmem/ContentBlobToggler/index.js.map +1 -0
- package/dist/cjs/cmem/index.js +14 -13
- package/dist/cjs/cmem/index.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +57 -0
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -0
- package/dist/cjs/cmem/react-flow/configuration/_colors-graph.module.scss +35 -0
- package/dist/cjs/cmem/react-flow/configuration/_colors-linking.module.scss +29 -0
- package/dist/cjs/cmem/react-flow/configuration/_colors-workflow.module.scss +22 -0
- package/dist/cjs/cmem/react-flow/configuration/graph.js +31 -0
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -0
- package/dist/cjs/cmem/react-flow/configuration/linking.js +29 -0
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -0
- package/dist/cjs/cmem/react-flow/configuration/unspecified.js +15 -0
- package/dist/cjs/cmem/react-flow/configuration/unspecified.js.map +1 -0
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +27 -0
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -0
- package/dist/cjs/common/utils/stringUtils.js +7 -0
- package/dist/cjs/common/utils/stringUtils.js.map +1 -0
- package/dist/cjs/components/Application/ApplicationContent.js +1 -7
- package/dist/cjs/components/Application/ApplicationContent.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +1 -7
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +284 -0
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -0
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js +81 -0
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -0
- package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js +46 -0
- package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -0
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +12 -15
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/cjs/components/Button/Button.js +1 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Card/Card.js +18 -3
- package/dist/cjs/components/Card/Card.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/Dialog/Modal.js +2 -2
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Dialog/SimpleDialog.js.map +1 -1
- package/dist/cjs/components/Form/FieldItemRow.js +2 -3
- package/dist/cjs/components/Form/FieldItemRow.js.map +1 -1
- package/dist/cjs/components/Icon/Icon.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +30 -0
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +212 -0
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/cjs/components/Notification/Notification.js +8 -2
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemList.js +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +1 -1
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/Tabs/Tab.js +94 -0
- package/dist/cjs/components/Tabs/Tab.js.map +1 -0
- package/dist/cjs/components/Tabs/TabTitle.js +20 -0
- package/dist/cjs/components/Tabs/TabTitle.js.map +1 -0
- package/dist/cjs/components/Tabs/Tabs.js +26 -19
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/Tag/Tag.js +7 -1
- package/dist/cjs/components/Tag/Tag.js.map +1 -1
- package/dist/cjs/components/Typography/HtmlContentBlock.js +6 -6
- package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
- package/dist/cjs/components/Typography/classnames.js +2 -1
- package/dist/cjs/components/Typography/classnames.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/getSmoothStepPath.js +98 -0
- package/dist/cjs/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -0
- package/dist/cjs/extensions/react-flow/edges/utils.js +97 -4
- package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/index.js +5 -1
- package/dist/cjs/extensions/react-flow/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/utils.js +2 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +141 -0
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -0
- package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js +41 -0
- package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -0
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +3 -130
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +11 -9
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/index.js +17 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/legacy-replacements/Button/AffirmativeButton.js +25 -0
- package/dist/cjs/legacy-replacements/Button/AffirmativeButton.js.map +1 -0
- package/dist/cjs/legacy-replacements/Button/Button.js +61 -0
- package/dist/cjs/legacy-replacements/Button/Button.js.map +1 -0
- package/dist/cjs/legacy-replacements/Button/DismissiveButton.js +25 -0
- package/dist/cjs/legacy-replacements/Button/DismissiveButton.js.map +1 -0
- package/dist/cjs/legacy-replacements/Button/DisruptiveButton.js +25 -0
- package/dist/cjs/legacy-replacements/Button/DisruptiveButton.js.map +1 -0
- package/dist/cjs/legacy-replacements/Checkbox/Checkbox.js +55 -0
- package/dist/cjs/legacy-replacements/Checkbox/Checkbox.js.map +1 -0
- package/dist/cjs/legacy-replacements/Radio/RadioButton.js +48 -0
- package/dist/cjs/legacy-replacements/Radio/RadioButton.js.map +1 -0
- package/dist/cjs/legacy-replacements/Tabs/Tabs.js +36 -0
- package/dist/cjs/legacy-replacements/Tabs/Tabs.js.map +1 -0
- package/dist/cjs/legacy-replacements/TextField/TextField.js +75 -0
- package/dist/cjs/legacy-replacements/TextField/TextField.js.map +1 -0
- package/dist/cjs/legacy-replacements/index.js +22 -0
- package/dist/cjs/legacy-replacements/index.js.map +1 -0
- package/dist/es5/cmem/ActivityControl/ActivityControlWidget.js +23 -15
- package/dist/es5/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/es5/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +21 -4
- package/dist/es5/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/es5/cmem/ActivityControl/SilkActivityControl.js +57 -31
- package/dist/es5/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/es5/cmem/ActivityControl/index.js +4 -0
- package/dist/es5/cmem/ActivityControl/index.js.map +1 -0
- package/dist/es5/cmem/ContentBlobToggler/index.js +3 -0
- package/dist/es5/cmem/ContentBlobToggler/index.js.map +1 -0
- package/dist/es5/cmem/index.js +6 -8
- package/dist/es5/cmem/index.js.map +1 -1
- package/dist/es5/cmem/react-flow/ReactFlow/ReactFlow.js +43 -0
- package/dist/es5/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -0
- package/dist/es5/cmem/react-flow/configuration/_colors-graph.module.scss +35 -0
- package/dist/es5/cmem/react-flow/configuration/_colors-linking.module.scss +29 -0
- package/dist/es5/cmem/react-flow/configuration/_colors-workflow.module.scss +22 -0
- package/dist/es5/cmem/react-flow/configuration/graph.js +23 -0
- package/dist/es5/cmem/react-flow/configuration/graph.js.map +1 -0
- package/dist/es5/cmem/react-flow/configuration/linking.js +21 -0
- package/dist/es5/cmem/react-flow/configuration/linking.js.map +1 -0
- package/dist/es5/cmem/react-flow/configuration/unspecified.js +12 -0
- package/dist/es5/cmem/react-flow/configuration/unspecified.js.map +1 -0
- package/dist/es5/cmem/react-flow/configuration/workflow.js +19 -0
- package/dist/es5/cmem/react-flow/configuration/workflow.js.map +1 -0
- package/dist/es5/common/utils/stringUtils.js +3 -0
- package/dist/es5/common/utils/stringUtils.js.map +1 -0
- package/dist/es5/components/Application/ApplicationContent.js +1 -7
- package/dist/es5/components/Application/ApplicationContent.js.map +1 -1
- package/dist/es5/components/Application/ApplicationTitle.js +1 -7
- package/dist/es5/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/es5/components/AutoSuggestion/AutoSuggestion.js +346 -0
- package/dist/es5/components/AutoSuggestion/AutoSuggestion.js.map +1 -0
- package/dist/es5/components/AutoSuggestion/AutoSuggestionList.js +93 -0
- package/dist/es5/components/AutoSuggestion/AutoSuggestionList.js.map +1 -0
- package/dist/es5/components/AutoSuggestion/SingleLineCodeEditor.js +42 -0
- package/dist/es5/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -0
- package/dist/es5/components/AutocompleteField/AutoCompleteField.js +12 -15
- package/dist/es5/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/es5/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/es5/components/Button/Button.js +1 -1
- package/dist/es5/components/Button/Button.js.map +1 -1
- package/dist/es5/components/Card/Card.js +18 -3
- package/dist/es5/components/Card/Card.js.map +1 -1
- package/dist/es5/components/ContextOverlay/ContextMenu.js +1 -1
- package/dist/es5/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/es5/components/Dialog/Modal.js +2 -2
- package/dist/es5/components/Dialog/Modal.js.map +1 -1
- package/dist/es5/components/Dialog/SimpleDialog.js.map +1 -1
- package/dist/es5/components/Form/FieldItemRow.js +2 -3
- package/dist/es5/components/Form/FieldItemRow.js.map +1 -1
- package/dist/es5/components/Icon/Icon.js.map +1 -1
- package/dist/es5/components/Icon/canonicalIconNames.js +30 -0
- package/dist/es5/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/es5/components/MultiSelect/MultiSelect.js +290 -0
- package/dist/es5/components/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/es5/components/Notification/Notification.js +10 -3
- package/dist/es5/components/Notification/Notification.js.map +1 -1
- package/dist/es5/components/OverviewItem/OverviewItemList.js +1 -1
- package/dist/es5/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/es5/components/Spinner/Spinner.js +2 -2
- package/dist/es5/components/Spinner/Spinner.js.map +1 -1
- package/dist/es5/components/Tabs/Tab.js +97 -0
- package/dist/es5/components/Tabs/Tab.js.map +1 -0
- package/dist/es5/components/Tabs/TabTitle.js +16 -0
- package/dist/es5/components/Tabs/TabTitle.js.map +1 -0
- package/dist/es5/components/Tabs/Tabs.js +8 -21
- package/dist/es5/components/Tabs/Tabs.js.map +1 -1
- package/dist/es5/components/Tag/Tag.js +7 -1
- package/dist/es5/components/Tag/Tag.js.map +1 -1
- package/dist/es5/components/Typography/HtmlContentBlock.js +17 -8
- package/dist/es5/components/Typography/HtmlContentBlock.js.map +1 -1
- package/dist/es5/components/Typography/classnames.js +1 -0
- package/dist/es5/components/Typography/classnames.js.map +1 -1
- package/dist/es5/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/es5/extensions/react-flow/edges/getSmoothStepPath.js +119 -0
- package/dist/es5/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -0
- package/dist/es5/extensions/react-flow/edges/utils.js +100 -5
- package/dist/es5/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/es5/extensions/react-flow/index.js +2 -0
- package/dist/es5/extensions/react-flow/index.js.map +1 -1
- package/dist/es5/extensions/react-flow/minimap/utils.js +1 -1
- package/dist/es5/extensions/react-flow/nodes/NodeContent.js +162 -0
- package/dist/es5/extensions/react-flow/nodes/NodeContent.js.map +1 -0
- package/dist/es5/extensions/react-flow/nodes/NodeContentExtension.js +45 -0
- package/dist/es5/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -0
- package/dist/es5/extensions/react-flow/nodes/NodeDefault.js +2 -129
- package/dist/es5/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/es5/extensions/react-flow/nodes/NodeTools.js +12 -10
- package/dist/es5/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/es5/index.js +9 -4
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/legacy-replacements/Button/AffirmativeButton.js +29 -0
- package/dist/es5/legacy-replacements/Button/AffirmativeButton.js.map +1 -0
- package/dist/es5/legacy-replacements/Button/Button.js +65 -0
- package/dist/es5/legacy-replacements/Button/Button.js.map +1 -0
- package/dist/es5/legacy-replacements/Button/DismissiveButton.js +29 -0
- package/dist/es5/legacy-replacements/Button/DismissiveButton.js.map +1 -0
- package/dist/es5/legacy-replacements/Button/DisruptiveButton.js +29 -0
- package/dist/es5/legacy-replacements/Button/DisruptiveButton.js.map +1 -0
- package/dist/es5/legacy-replacements/Checkbox/Checkbox.js +59 -0
- package/dist/es5/legacy-replacements/Checkbox/Checkbox.js.map +1 -0
- package/dist/es5/legacy-replacements/Radio/RadioButton.js +52 -0
- package/dist/es5/legacy-replacements/Radio/RadioButton.js.map +1 -0
- package/dist/es5/legacy-replacements/Tabs/Tabs.js +40 -0
- package/dist/es5/legacy-replacements/Tabs/Tabs.js.map +1 -0
- package/dist/es5/legacy-replacements/TextField/TextField.js +81 -0
- package/dist/es5/legacy-replacements/TextField/TextField.js.map +1 -0
- package/dist/es5/legacy-replacements/index.js +10 -0
- package/dist/es5/legacy-replacements/index.js.map +1 -0
- package/dist/types/cmem/ActivityControl/ActivityControlTypes.d.ts +2 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +48 -2
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +18 -3
- package/dist/types/cmem/ActivityControl/index.d.ts +3 -0
- package/dist/types/cmem/ContentBlobToggler/index.d.ts +2 -0
- package/dist/types/cmem/index.d.ts +8 -8
- package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +14 -0
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +21 -0
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +19 -0
- package/dist/types/cmem/react-flow/configuration/unspecified.d.ts +9 -0
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +17 -0
- package/dist/types/common/utils/stringUtils.d.ts +2 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +67 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestionList.d.ts +13 -0
- package/dist/types/components/AutoSuggestion/SingleLineCodeEditor.d.ts +25 -0
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +8 -7
- package/dist/types/components/Button/Button.d.ts +3 -2
- package/dist/types/components/Card/Card.d.ts +9 -4
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +6 -1
- package/dist/types/components/Dialog/Modal.d.ts +4 -3
- package/dist/types/components/Dialog/SimpleDialog.d.ts +2 -0
- package/dist/types/components/Form/FieldItemRow.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +2 -2
- package/dist/types/components/Icon/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +86 -0
- package/dist/types/components/Notification/Notification.d.ts +55 -2
- package/dist/types/components/OverviewItem/OverviewItemList.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +549 -0
- package/dist/types/components/Tabs/TabTitle.d.ts +38 -0
- package/dist/types/components/Tabs/Tabs.d.ts +14 -20
- package/dist/types/components/Tag/Tag.d.ts +1 -1
- package/dist/types/components/Typography/HtmlContentBlock.d.ts +15 -5
- package/dist/types/components/Typography/classnames.d.ts +1 -0
- package/dist/types/extensions/react-flow/edges/getSmoothStepPath.d.ts +18 -0
- package/dist/types/extensions/react-flow/edges/utils.d.ts +1 -1
- package/dist/types/extensions/react-flow/index.d.ts +4 -0
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +127 -0
- package/dist/types/extensions/react-flow/nodes/NodeContentExtension.d.ts +34 -0
- package/dist/types/extensions/react-flow/nodes/NodeDefault.d.ts +4 -121
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +9 -2
- package/dist/types/extensions/react-flow/nodes/nodeTypes.d.ts +10 -10
- package/dist/types/index.d.ts +9 -4
- package/dist/types/legacy-replacements/Button/AffirmativeButton.d.ts +2 -0
- package/dist/types/legacy-replacements/Button/Button.d.ts +5 -0
- package/dist/types/legacy-replacements/Button/DismissiveButton.d.ts +2 -0
- package/dist/types/legacy-replacements/Button/DisruptiveButton.d.ts +2 -0
- package/dist/types/legacy-replacements/Checkbox/Checkbox.d.ts +2 -0
- package/dist/types/legacy-replacements/Radio/RadioButton.d.ts +2 -0
- package/dist/types/legacy-replacements/Tabs/Tabs.d.ts +22 -0
- package/dist/types/legacy-replacements/TextField/TextField.d.ts +2 -0
- package/dist/types/legacy-replacements/index.d.ts +10 -0
- package/package.json +48 -20
- package/src/cmem/ActivityControl/ActivityControlTypes.ts +3 -1
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +98 -0
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +144 -89
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +11 -3
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +182 -120
- package/src/cmem/ActivityControl/index.ts +3 -0
- package/src/cmem/ContentBlobToggler/index.ts +2 -0
- package/src/cmem/_index.scss +6 -0
- package/src/cmem/index.ts +10 -23
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +222 -0
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +40 -0
- package/src/cmem/react-flow/_edges.scss +23 -0
- package/src/cmem/react-flow/_handles.scss +34 -0
- package/src/cmem/react-flow/_index.scss +5 -0
- package/src/cmem/react-flow/_minimap.scss +33 -0
- package/src/cmem/react-flow/_nodes.scss +66 -0
- package/src/cmem/react-flow/configuration/_colors-graph.module.scss +35 -0
- package/src/cmem/react-flow/configuration/_colors-linking.module.scss +29 -0
- package/src/cmem/react-flow/configuration/_colors-workflow.module.scss +22 -0
- package/src/cmem/react-flow/configuration/_colors.scss +3 -0
- package/src/cmem/react-flow/configuration/graph.ts +29 -0
- package/src/cmem/react-flow/configuration/linking.ts +28 -0
- package/src/cmem/react-flow/configuration/unspecified.ts +13 -0
- package/src/cmem/react-flow/configuration/workflow.ts +25 -0
- package/src/common/utils/stringUtils.ts +2 -0
- package/src/components/Application/ApplicationContent.tsx +0 -5
- package/src/components/Application/ApplicationTitle.tsx +0 -5
- package/src/components/AutoSuggestion/AutoSuggestion.scss +100 -0
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +446 -0
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +170 -0
- package/src/components/AutoSuggestion/SingleLineCodeEditor.tsx +97 -0
- package/src/components/AutoSuggestion/tests/AutoSuggestion.test.tsx +37 -0
- package/src/components/AutoSuggestion/tests/AutoSuggestionList.test.tsx +124 -0
- package/src/components/AutoSuggestion/tests/SingleLineCodeEditor.test.tsx +55 -0
- package/src/components/AutocompleteField/AutoCompleteField.tsx +24 -23
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +2 -1
- package/src/components/Breadcrumb/BreadcrumbItem.tsx +5 -5
- package/src/components/Breadcrumb/BreadcrumbList.tsx +1 -1
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Button/Button.tsx +4 -3
- package/src/components/Card/Card.tsx +23 -4
- package/src/components/Card/card.scss +4 -0
- package/src/components/Checkbox/checkbox.scss +4 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +8 -2
- package/src/components/Dialog/Modal.tsx +9 -2
- package/src/components/Dialog/SimpleDialog.tsx +2 -0
- package/src/components/Form/FieldItem.tsx +3 -3
- package/src/components/Form/FieldItemRow.tsx +2 -4
- package/src/components/Icon/Icon.tsx +4 -4
- package/src/components/Icon/IconButton.tsx +3 -3
- package/src/components/Icon/canonicalIconNames.tsx +39 -2
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/MultiSelect/MultiSelect.stories.tsx +71 -0
- package/src/components/MultiSelect/MultiSelect.tsx +373 -0
- package/src/components/Notification/Notification.stories.tsx +82 -0
- package/src/components/Notification/Notification.tsx +62 -4
- package/src/components/Notification/notification.scss +2 -1
- package/src/components/OverviewItem/OverviewItemList.tsx +2 -2
- package/src/components/RadioButton/radiobutton.scss +4 -0
- package/src/components/Spinner/Spinner.tsx +1 -1
- package/src/components/Switch/switch.scss +1 -0
- package/src/components/Tabs/Tab.tsx +111 -0
- package/src/components/Tabs/TabTitle.tsx +71 -0
- package/src/components/Tabs/Tabs.tsx +22 -90
- package/src/components/Tabs/stories/Tab.stories.tsx +65 -0
- package/src/components/Tabs/stories/TabTitle.stories.tsx +35 -0
- package/src/components/Tabs/stories/Tabs.stories.tsx +98 -0
- package/src/components/Tabs/tabs.scss +11 -4
- package/src/components/Tag/Tag.tsx +10 -3
- package/src/components/Tag/tag.scss +2 -2
- package/src/components/TextField/TextField.tsx +1 -1
- package/src/components/Toolbar/toolbar.scss +1 -1
- package/src/components/Typography/HtmlContentBlock.tsx +27 -4
- package/src/components/Typography/classnames.ts +1 -0
- package/src/components/Typography/typography.scss +8 -0
- package/src/configuration/_variables.scss +3 -3
- package/src/extensions/react-flow/_config.scss +2 -2
- package/src/extensions/react-flow/_react-flow.scss +4 -0
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +0 -1
- package/src/extensions/react-flow/edges/_edges.scss +3 -28
- package/src/extensions/react-flow/edges/getSmoothStepPath.ts +118 -0
- package/src/extensions/react-flow/edges/utils.ts +131 -4
- package/src/extensions/react-flow/handles/_handles.scss +4 -58
- package/src/extensions/react-flow/index.ts +4 -0
- package/src/extensions/react-flow/minimap/_minimap.scss +0 -45
- package/src/extensions/react-flow/minimap/utils.ts +1 -1
- package/src/extensions/react-flow/nodes/NodeContent.tsx +336 -0
- package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +17 -10
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +4 -326
- package/src/extensions/react-flow/nodes/NodeTools.tsx +27 -10
- package/src/extensions/react-flow/nodes/_nodes.scss +61 -196
- package/src/extensions/react-flow/nodes/{NodeContent.stories.tsx → stories/NodeContent.stories.tsx} +14 -5
- package/src/extensions/react-flow/nodes/stories/NodeContentExtension.stories.tsx +59 -0
- package/src/extensions/react-flow/nodes/{NodeDefault.stories.tsx → stories/NodeDefault.stories.tsx} +5 -3
- package/src/index.scss +1 -0
- package/src/index.ts +19 -4
- package/src/legacy-replacements/Tabs/Tabs.stories.tsx +46 -0
- package/src/legacy-replacements/Tabs/Tabs.tsx +84 -0
- package/src/legacy-replacements/index.ts +11 -0
- package/src/test/setupTests.js +19 -0
- package/src/components/Icon/canonicalIconNames.json +0 -120
- package/src/extensions/react-flow/nodes/NodeContentExtension.stories.tsx +0 -36
|
@@ -261,6 +261,14 @@ table {
|
|
|
261
261
|
white-space: nowrap;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
+
.#{$eccgui}-typography--noscrollbarsonchildren * {
|
|
265
|
+
overflow: visible;
|
|
266
|
+
|
|
267
|
+
pre {
|
|
268
|
+
width: fit-content;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
264
272
|
// white spaces
|
|
265
273
|
@each $whitespacePlace in ("margin", "padding") {
|
|
266
274
|
@each $whitespaceDirection in ("top", "right", "bottom", "left") {
|
|
@@ -20,13 +20,13 @@ $eccgui-color-primary-contrast: rgb(255, 255, 255) !default;
|
|
|
20
20
|
$eccgui-color-accent: rgb(10, 103, 163) !default;
|
|
21
21
|
$eccgui-color-accent-contrast: rgb(255, 255, 255) !default;
|
|
22
22
|
|
|
23
|
-
$eccgui-color-success-text:
|
|
23
|
+
$eccgui-color-success-text: #1b5e20 !default;
|
|
24
24
|
$eccgui-color-success-background: rgb(232, 245, 233) !default;
|
|
25
25
|
$eccgui-color-info-text: rgb(21, 101, 192) !default;
|
|
26
26
|
$eccgui-color-info-background: rgb(227, 242, 253) !default;
|
|
27
|
-
$eccgui-color-warning-text:
|
|
27
|
+
$eccgui-color-warning-text: #e65100 !default;
|
|
28
28
|
$eccgui-color-warning-background: rgb(255, 243, 224) !default;
|
|
29
|
-
$eccgui-color-danger-text:
|
|
29
|
+
$eccgui-color-danger-text: #b71c1c !default;
|
|
30
30
|
$eccgui-color-danger-background: rgb(255, 235, 238) !default;
|
|
31
31
|
|
|
32
32
|
$eccgui-color-applicationheader-text: #222 !default;
|
|
@@ -3,13 +3,13 @@ $reactflow-node-border-color: $eccgui-color-workspace-text !default;
|
|
|
3
3
|
$reactflow-node-background-color: $button-background-color !default;
|
|
4
4
|
$reactflow-node-color: $eccgui-color-workspace-text !default;
|
|
5
5
|
$reactflow-node-font-size: $eccgui-size-typo-caption !default;
|
|
6
|
-
$reactflow-node-border-width: $button-border-width !default;
|
|
6
|
+
$reactflow-node-border-width: 2 * $button-border-width !default;
|
|
7
7
|
$reactflow-node-border-radius: $button-border-radius !default;
|
|
8
8
|
$reactflow-edge-stroke-color: rgba($eccgui-color-workspace-text, .61) !default;
|
|
9
9
|
$reactflow-edge-stroke-color-hover: $eccgui-color-workspace-text !default;
|
|
10
10
|
$reactflow-edge-stroke-color-selected: $eccgui-color-accent !default;
|
|
11
11
|
$reactflow-transition-time: 0.25s !default;
|
|
12
|
-
$reactflow-transition-function: !default;
|
|
12
|
+
$reactflow-transition-function: "" !default;
|
|
13
13
|
|
|
14
14
|
$reactflow-edge-stroke-opacity: alpha($reactflow-edge-stroke-color) !default;
|
|
15
15
|
$reactflow-edge-stroke-opacity-hover: alpha($reactflow-edge-stroke-color) !default;
|
|
@@ -104,42 +104,17 @@ path.react-flow__edge-path-glow {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.react-flow__edge-
|
|
108
|
-
stroke: #00acc1;
|
|
109
|
-
color: #00acc1;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.react-flow__edge-importEdge {
|
|
113
|
-
stroke: #8e24aa;
|
|
114
|
-
color: #8e24aa;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.react-flow__edge-subclassEdge {
|
|
118
|
-
stroke: darken($button-background-color, 60%);
|
|
119
|
-
color: darken($button-background-color, 60%);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.react-flow__edge-subpropertyEdge {
|
|
123
|
-
stroke: darken(complement($button-background-color), 40%);
|
|
124
|
-
color: darken(complement($button-background-color), 40%);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.react-flow__edge-rdftypeEdge {
|
|
128
|
-
stroke: darken($button-background-color, 50%);
|
|
129
|
-
color: darken($button-background-color, 50%);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.react-flow__edge-successStep {
|
|
107
|
+
.react-flow__edge-success {
|
|
133
108
|
stroke: $eccgui-color-success-text;
|
|
134
109
|
color: $eccgui-color-success-text;
|
|
135
110
|
}
|
|
136
111
|
|
|
137
|
-
.react-flow__edge-
|
|
112
|
+
.react-flow__edge-warning {
|
|
138
113
|
stroke: $eccgui-color-warning-text;
|
|
139
114
|
color: $eccgui-color-warning-text;
|
|
140
115
|
}
|
|
141
116
|
|
|
142
|
-
.react-flow__edge-
|
|
117
|
+
.react-flow__edge-danger {
|
|
143
118
|
stroke: $eccgui-color-danger-text;
|
|
144
119
|
color: $eccgui-color-danger-text;
|
|
145
120
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copied from `react-flow` because we need to change there routing.
|
|
3
|
+
* We use the 10.2.0cversion minus commit 87d518f8b5540a91a3f9c163a2315c2de47abc31
|
|
4
|
+
* @see https://github.com/wbkd/react-flow/commit/87d518f8b5540a91a3f9c163a2315c2de47abc31
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { getEdgeCenter as getCenter, Position } from "react-flow-renderer";
|
|
8
|
+
|
|
9
|
+
// These are some helper methods for drawing the round corners
|
|
10
|
+
// The name indicates the direction of the path. "bottomLeftCorner" goes
|
|
11
|
+
// from bottom to the left and "leftBottomCorner" goes from left to the bottom.
|
|
12
|
+
// We have to consider the direction of the paths because of the animated lines.
|
|
13
|
+
const bottomLeftCorner = (x: number, y: number, size: number): string =>
|
|
14
|
+
`L ${x},${y - size}Q ${x},${y} ${x + size},${y}`;
|
|
15
|
+
const leftBottomCorner = (x: number, y: number, size: number): string =>
|
|
16
|
+
`L ${x + size},${y}Q ${x},${y} ${x},${y - size}`;
|
|
17
|
+
const bottomRightCorner = (x: number, y: number, size: number): string =>
|
|
18
|
+
`L ${x},${y - size}Q ${x},${y} ${x - size},${y}`;
|
|
19
|
+
const rightBottomCorner = (x: number, y: number, size: number): string =>
|
|
20
|
+
`L ${x - size},${y}Q ${x},${y} ${x},${y - size}`;
|
|
21
|
+
const leftTopCorner = (x: number, y: number, size: number): string => `L ${x + size},${y}Q ${x},${y} ${x},${y + size}`;
|
|
22
|
+
const topLeftCorner = (x: number, y: number, size: number): string => `L ${x},${y + size}Q ${x},${y} ${x + size},${y}`;
|
|
23
|
+
const topRightCorner = (x: number, y: number, size: number): string => `L ${x},${y + size}Q ${x},${y} ${x - size},${y}`;
|
|
24
|
+
const rightTopCorner = (x: number, y: number, size: number): string => `L ${x - size},${y}Q ${x},${y} ${x},${y + size}`;
|
|
25
|
+
|
|
26
|
+
export interface GetSmoothStepPathParams {
|
|
27
|
+
sourceX: number;
|
|
28
|
+
sourceY: number;
|
|
29
|
+
sourcePosition?: Position;
|
|
30
|
+
targetX: number;
|
|
31
|
+
targetY: number;
|
|
32
|
+
targetPosition?: Position;
|
|
33
|
+
borderRadius?: number;
|
|
34
|
+
centerX?: number;
|
|
35
|
+
centerY?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function getSmoothStepPath({
|
|
39
|
+
sourceX,
|
|
40
|
+
sourceY,
|
|
41
|
+
sourcePosition = Position.Bottom,
|
|
42
|
+
targetX,
|
|
43
|
+
targetY,
|
|
44
|
+
targetPosition = Position.Top,
|
|
45
|
+
borderRadius = 5,
|
|
46
|
+
centerX,
|
|
47
|
+
centerY,
|
|
48
|
+
}: GetSmoothStepPathParams): string {
|
|
49
|
+
const [_centerX, _centerY, offsetX, offsetY] = getCenter({ sourceX, sourceY, targetX, targetY });
|
|
50
|
+
const cornerWidth = Math.min(borderRadius, Math.abs(targetX - sourceX));
|
|
51
|
+
const cornerHeight = Math.min(borderRadius, Math.abs(targetY - sourceY));
|
|
52
|
+
const cornerSize = Math.min(cornerWidth, cornerHeight, offsetX, offsetY);
|
|
53
|
+
const cX = typeof centerX !== 'undefined' ? centerX : _centerX;
|
|
54
|
+
const cY = typeof centerY !== 'undefined' ? centerY : _centerY;
|
|
55
|
+
|
|
56
|
+
let firstCornerPath = "";
|
|
57
|
+
let secondCornerPath = "";
|
|
58
|
+
|
|
59
|
+
if (sourceX <= targetX) {
|
|
60
|
+
if (sourceY <= targetY) {
|
|
61
|
+
firstCornerPath = bottomLeftCorner(sourceX, cY, cornerSize);
|
|
62
|
+
secondCornerPath = rightTopCorner(targetX, cY, cornerSize);
|
|
63
|
+
if (sourcePosition === Position.Right) {
|
|
64
|
+
if (targetPosition === Position.Left) {
|
|
65
|
+
firstCornerPath = rightTopCorner(cX, sourceY, cornerSize);
|
|
66
|
+
secondCornerPath = bottomLeftCorner(cX, targetY, cornerSize);
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
if (targetPosition === Position.Left) {
|
|
70
|
+
// no change
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
} else {
|
|
74
|
+
firstCornerPath = topLeftCorner(sourceX, cY, cornerSize);
|
|
75
|
+
secondCornerPath = rightBottomCorner(targetX, cY, cornerSize);
|
|
76
|
+
if (sourcePosition === Position.Right) {
|
|
77
|
+
if (targetPosition === Position.Left) {
|
|
78
|
+
firstCornerPath = rightBottomCorner(cX, sourceY, cornerSize);
|
|
79
|
+
secondCornerPath = topLeftCorner(cX, targetY, cornerSize);
|
|
80
|
+
}
|
|
81
|
+
} else {
|
|
82
|
+
if (targetPosition === Position.Left) {
|
|
83
|
+
// no change
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
if (sourceY <= targetY) {
|
|
89
|
+
firstCornerPath = bottomRightCorner(sourceX, cY, cornerSize);
|
|
90
|
+
secondCornerPath = leftTopCorner(targetX, cY, cornerSize);
|
|
91
|
+
if (sourcePosition === Position.Left) {
|
|
92
|
+
if (targetPosition === Position.Right) {
|
|
93
|
+
firstCornerPath = leftTopCorner(cX, sourceY, cornerSize);
|
|
94
|
+
secondCornerPath = bottomRightCorner(cX, targetY, cornerSize);
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
if (targetPosition === Position.Right) {
|
|
98
|
+
// no change
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
} else {
|
|
102
|
+
firstCornerPath = topRightCorner(sourceX, cY, cornerSize);
|
|
103
|
+
secondCornerPath = leftBottomCorner(targetX, cY, cornerSize);
|
|
104
|
+
if (sourcePosition === Position.Left) {
|
|
105
|
+
if (targetPosition === Position.Right) {
|
|
106
|
+
firstCornerPath = leftBottomCorner(cX, sourceY, cornerSize);
|
|
107
|
+
secondCornerPath = topRightCorner(cX, targetY, cornerSize);
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
if (targetPosition === Position.Right) {
|
|
111
|
+
// no change
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return `M ${sourceX},${sourceY}${firstCornerPath}${secondCornerPath}L ${targetX},${targetY}`;
|
|
118
|
+
}
|
|
@@ -1,14 +1,123 @@
|
|
|
1
1
|
import { EdgeDefaultProps } from "./EdgeDefault";
|
|
2
2
|
import { EdgeStepProps } from "./EdgeStep";
|
|
3
|
-
import {
|
|
3
|
+
import { Position } from "react-flow-renderer";
|
|
4
|
+
import { getSmoothStepPath } from "./getSmoothStepPath";
|
|
5
|
+
|
|
6
|
+
interface EdgePositionCorrectionProps extends Omit<EdgeDefaultProps, "id" | "source" | "target" | "drawSvgPath" | "data"> {
|
|
7
|
+
correctionLength?: number;
|
|
8
|
+
correctionRadius?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const posCorrectionEdge = ({
|
|
12
|
+
sourceX,
|
|
13
|
+
sourceY,
|
|
14
|
+
sourcePosition,
|
|
15
|
+
targetX,
|
|
16
|
+
targetY,
|
|
17
|
+
targetPosition,
|
|
18
|
+
correctionLength = 7,
|
|
19
|
+
correctionRadius = 7
|
|
20
|
+
}: EdgePositionCorrectionProps) => {
|
|
21
|
+
let newSourceX = sourceX;
|
|
22
|
+
let newSourceY = sourceY;
|
|
23
|
+
let newTargetX = targetX;
|
|
24
|
+
let newTargetY = targetY;
|
|
25
|
+
let startCommandCorrection = `M ${sourceX},${sourceY} `;
|
|
26
|
+
let endCommandCorrection = ``;
|
|
27
|
+
|
|
28
|
+
if (sourcePosition === Position.Left && sourceX < targetX) {
|
|
29
|
+
newSourceX = newSourceX - 2 * correctionLength;
|
|
30
|
+
if (sourceY < targetY) {
|
|
31
|
+
newSourceY = sourceY + correctionRadius;
|
|
32
|
+
startCommandCorrection = startCommandCorrection + ` L ${newSourceX + correctionRadius},${sourceY} A ${correctionRadius} ${correctionRadius} ${90} ${0} ${0} `;
|
|
33
|
+
} else {
|
|
34
|
+
newSourceY = sourceY - correctionRadius;
|
|
35
|
+
startCommandCorrection = startCommandCorrection + ` L ${newSourceX + correctionRadius},${sourceY} A ${correctionRadius} ${correctionRadius} ${90} ${0} ${1} `;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (sourcePosition === Position.Right && sourceX > targetX) {
|
|
40
|
+
newSourceX = targetPosition === Position.Right ? newSourceX + correctionLength + correctionRadius : newSourceX + correctionLength;
|
|
41
|
+
if (sourceY < targetY) {
|
|
42
|
+
newSourceY = sourceY + correctionRadius;
|
|
43
|
+
startCommandCorrection = startCommandCorrection + ` L ${newSourceX - correctionRadius},${sourceY} A ${correctionRadius} ${correctionRadius} ${90} ${0} ${1} `;
|
|
44
|
+
} else {
|
|
45
|
+
newSourceY = sourceY - correctionRadius;
|
|
46
|
+
startCommandCorrection = startCommandCorrection + ` L ${newSourceX - correctionRadius},${sourceY} A ${correctionRadius} ${correctionRadius} ${90} ${0} ${0} `;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (targetPosition === Position.Left && sourceX > targetX) {
|
|
51
|
+
newTargetX = newTargetX - 3 * correctionLength;
|
|
52
|
+
if (sourceY < targetY) {
|
|
53
|
+
newTargetY = targetY - correctionRadius;
|
|
54
|
+
endCommandCorrection = ` A ${correctionRadius} ${correctionRadius} ${90} ${0} ${0} ${newTargetX + correctionRadius},${targetY} L ${targetX},${targetY}`;
|
|
55
|
+
} else {
|
|
56
|
+
newTargetY = targetY + correctionRadius;
|
|
57
|
+
endCommandCorrection = ` A ${correctionRadius} ${correctionRadius} ${90} ${0} ${1} ${newTargetX + correctionRadius},${targetY} L ${targetX},${targetY}`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (targetPosition === Position.Right && sourceX < targetX) {
|
|
62
|
+
newTargetX = newTargetX + 3 * correctionLength;
|
|
63
|
+
if (sourceY < targetY) {
|
|
64
|
+
newTargetY = targetY - correctionRadius;
|
|
65
|
+
endCommandCorrection = ` A ${correctionRadius} ${correctionRadius} ${90} ${0} ${1} ${newTargetX - correctionRadius},${targetY} L ${targetX},${targetY}`;
|
|
66
|
+
} else {
|
|
67
|
+
newTargetY = targetY + correctionRadius;
|
|
68
|
+
endCommandCorrection = ` A ${correctionRadius} ${correctionRadius} ${90} ${0} ${0} ${newTargetX - correctionRadius},${targetY} L ${targetX},${targetY}`;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
newSourceX,
|
|
74
|
+
newSourceY,
|
|
75
|
+
newTargetX,
|
|
76
|
+
newTargetY,
|
|
77
|
+
startCommandCorrection,
|
|
78
|
+
endCommandCorrection,
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface PathCommandCorrectionProps {
|
|
83
|
+
pathCommand: string;
|
|
84
|
+
startCorrection: string;
|
|
85
|
+
endCorrection: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const pathCommandCorrection = ({
|
|
89
|
+
pathCommand,
|
|
90
|
+
startCorrection,
|
|
91
|
+
endCorrection,
|
|
92
|
+
}: PathCommandCorrectionProps) => {
|
|
93
|
+
return startCorrection + pathCommand.substring(1) + endCorrection;
|
|
94
|
+
}
|
|
4
95
|
|
|
5
96
|
export const drawEdgeStraight = ({
|
|
6
97
|
sourceX,
|
|
7
98
|
sourceY,
|
|
99
|
+
sourcePosition,
|
|
8
100
|
targetX,
|
|
9
101
|
targetY,
|
|
102
|
+
targetPosition,
|
|
10
103
|
}: EdgeDefaultProps) => {
|
|
11
|
-
|
|
104
|
+
const corrections = posCorrectionEdge({
|
|
105
|
+
sourceX,
|
|
106
|
+
sourceY,
|
|
107
|
+
sourcePosition,
|
|
108
|
+
targetX,
|
|
109
|
+
targetY,
|
|
110
|
+
targetPosition,
|
|
111
|
+
correctionRadius: 0
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
const pathCommand = `M ${corrections.newSourceX},${corrections.newSourceY}L ${corrections.newTargetX},${corrections.newTargetY}`;
|
|
115
|
+
|
|
116
|
+
return pathCommandCorrection({
|
|
117
|
+
pathCommand,
|
|
118
|
+
startCorrection: corrections.startCommandCorrection,
|
|
119
|
+
endCorrection: corrections.endCommandCorrection,
|
|
120
|
+
});
|
|
12
121
|
}
|
|
13
122
|
|
|
14
123
|
export const drawEdgeStep = ({
|
|
@@ -20,13 +129,31 @@ export const drawEdgeStep = ({
|
|
|
20
129
|
targetPosition,
|
|
21
130
|
data = {},
|
|
22
131
|
}: EdgeStepProps) => {
|
|
23
|
-
|
|
132
|
+
|
|
133
|
+
const corrections = posCorrectionEdge({
|
|
24
134
|
sourceX,
|
|
25
135
|
sourceY,
|
|
26
136
|
sourcePosition,
|
|
27
137
|
targetX,
|
|
28
138
|
targetY,
|
|
29
139
|
targetPosition,
|
|
30
|
-
|
|
140
|
+
correctionLength: data.stepCornerRadius || 7,
|
|
141
|
+
correctionRadius: data.stepCornerRadius || 7,
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const pathCommand = getSmoothStepPath({
|
|
145
|
+
sourceX: corrections.newSourceX,
|
|
146
|
+
sourceY: corrections.newSourceY,
|
|
147
|
+
sourcePosition,
|
|
148
|
+
targetX: corrections.newTargetX,
|
|
149
|
+
targetY: corrections.newTargetY,
|
|
150
|
+
targetPosition,
|
|
151
|
+
borderRadius: data.stepCornerRadius || 7
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
return pathCommandCorrection({
|
|
155
|
+
pathCommand,
|
|
156
|
+
startCorrection: corrections.startCommandCorrection,
|
|
157
|
+
endCorrection: corrections.endCommandCorrection,
|
|
31
158
|
});
|
|
32
159
|
}
|
|
@@ -22,14 +22,14 @@ div.react-flow__handle {
|
|
|
22
22
|
right: $eccgui-size-block-whitespace/-2;
|
|
23
23
|
opacity: 0.61;
|
|
24
24
|
display: none;
|
|
25
|
-
background-color:
|
|
25
|
+
background-color: currentColor;
|
|
26
26
|
border: solid 1px currentColor;
|
|
27
27
|
border-radius: 100%;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&:hover {
|
|
31
31
|
&:before {
|
|
32
|
-
|
|
32
|
+
box-shadow: 0 0 $eccgui-size-block-whitespace/2 $eccgui-size-block-whitespace/4 currentColor;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -47,14 +47,14 @@ div.react-flow__handle {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
&.react-flow__handle-connecting:hover {
|
|
50
|
+
&.react-flow__handle-connecting:hover, &.invalid-handle {
|
|
51
51
|
color: $eccgui-color-danger-text;
|
|
52
52
|
&:before {
|
|
53
53
|
display: block;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
&.react-flow__handle-valid:hover {
|
|
57
|
+
&.react-flow__handle-valid:hover, &.valid-handle {
|
|
58
58
|
color: $eccgui-color-success-text;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -152,57 +152,3 @@ div.react-flow__handle-bottom {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
.react-flow__node-graphNode {
|
|
157
|
-
.react-flow__handle {
|
|
158
|
-
color: #8e24aa;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.react-flow__node-classNode {
|
|
163
|
-
.react-flow__handle {
|
|
164
|
-
color: darken($button-background-color, 60%);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.react-flow__node-instanceNode {
|
|
169
|
-
.react-flow__handle {
|
|
170
|
-
color: darken($button-background-color, 50%);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.react-flow__node-propertyNode {
|
|
175
|
-
.react-flow__handle {
|
|
176
|
-
color: darken(complement($button-background-color), 40%);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.react-flow__node-datasetNode {
|
|
181
|
-
.react-flow__handle {
|
|
182
|
-
color: #039be5;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.react-flow__node-linkingNode {
|
|
187
|
-
.react-flow__handle {
|
|
188
|
-
color: #00acc1;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.react-flow__node-transformNode {
|
|
193
|
-
.react-flow__handle {
|
|
194
|
-
color: #00897b;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.react-flow__node-taskNode {
|
|
199
|
-
.react-flow__handle {
|
|
200
|
-
color: #546e7a;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.react-flow__node-workflowNode {
|
|
205
|
-
.react-flow__handle {
|
|
206
|
-
color: #4527a0;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { NodeDefault } from "./nodes/NodeDefault";
|
|
2
|
+
export { NodeContent } from "./nodes/NodeContent";
|
|
3
|
+
export { NodeContentExtension } from "./nodes/NodeContentExtension";
|
|
2
4
|
export { NodeTools } from "./nodes/NodeTools";
|
|
3
5
|
export { nodeTypes } from "./nodes/nodeTypes";
|
|
4
6
|
export { EdgeDefault } from "./edges/EdgeDefault";
|
|
@@ -9,6 +11,8 @@ export { MiniMap } from "./minimap/MiniMap";
|
|
|
9
11
|
export { minimapNodeClassName, minimapNodeColor } from "./minimap/utils";
|
|
10
12
|
|
|
11
13
|
export type { NodeProps } from "./nodes/NodeDefault";
|
|
14
|
+
export type { NodeContentProps } from "./nodes/NodeContent";
|
|
15
|
+
export type { NodeContentExtensionProps } from "./nodes/NodeContentExtension";
|
|
12
16
|
export type { NodeToolsProps } from "./nodes/NodeTools";
|
|
13
17
|
export type { EdgeDefaultProps } from "./edges/EdgeDefault";
|
|
14
18
|
export type { EdgeStepProps } from "./edges/EdgeStep";
|
|
@@ -3,51 +3,6 @@
|
|
|
3
3
|
fill: $reactflow-node-background-color;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.#{$eccgui}-graphviz__minimap__node--graphNode {
|
|
7
|
-
fill: #8e24aa;
|
|
8
|
-
stroke: #8e24aa;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.#{$eccgui}-graphviz__minimap__node--classNode {
|
|
12
|
-
fill: darken($button-background-color, 60%);
|
|
13
|
-
stroke: darken($button-background-color, 60%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.#{$eccgui}-graphviz__minimap__node--instanceNode {
|
|
17
|
-
fill: darken($button-background-color, 50%);
|
|
18
|
-
stroke: darken($button-background-color, 50%);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.#{$eccgui}-graphviz__minimap__node--propertyNode {
|
|
22
|
-
fill: darken(complement($button-background-color), 40%);
|
|
23
|
-
stroke: darken(complement($button-background-color), 40%);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.#{$eccgui}-graphviz__minimap__node--datasetNode {
|
|
27
|
-
fill: #039be5;
|
|
28
|
-
stroke: #039be5;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.#{$eccgui}-graphviz__minimap__node--linkingNode {
|
|
32
|
-
fill: #00acc1;
|
|
33
|
-
stroke: #00acc1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.#{$eccgui}-graphviz__minimap__node--transformNode {
|
|
37
|
-
fill: #00897b;
|
|
38
|
-
stroke: #00897b;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.#{$eccgui}-graphviz__minimap__node--taskNode {
|
|
42
|
-
fill: #546e7a;
|
|
43
|
-
stroke: #546e7a;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.#{$eccgui}-graphviz__minimap__node--workflowNode {
|
|
47
|
-
fill: #4527a0;
|
|
48
|
-
stroke: #4527a0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
6
|
.#{$eccgui}-graphviz__minimap__node--highlight-match {
|
|
52
7
|
stroke: $eccgui-color-accent;
|
|
53
8
|
stroke-width: 5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLASSPREFIX as eccgui } from "./../../../configuration/constants";
|
|
2
|
-
import { gethighlightedStateClasses } from "./../nodes/
|
|
2
|
+
import { gethighlightedStateClasses } from "./../nodes/NodeContent";
|
|
3
3
|
|
|
4
4
|
export const minimapNodeClassName = (node: any) => {
|
|
5
5
|
const typeClass = `${eccgui}-graphviz__minimap__node--` + node.type;
|