@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
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface HtmlContentBlockProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
small?: boolean;
|
|
5
|
+
/** currently not supported */
|
|
6
|
+
large?: boolean;
|
|
7
|
+
/** currently not supported */
|
|
8
|
+
muted?: boolean;
|
|
9
|
+
/** currently not supported */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
linebreakForced?: boolean;
|
|
12
|
+
linebreakPrevented?: boolean;
|
|
13
|
+
noScrollbarsOnChildren?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function HtmlContentBlock({ className, children, small, large, muted, disabled, linebreakForced, linebreakPrevented, noScrollbarsOnChildren, ...otherProps }: HtmlContentBlockProps): JSX.Element;
|
|
6
16
|
export default HtmlContentBlock;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const NOOVERFLOW: string;
|
|
2
2
|
export declare const FORCELINEBREAK: string;
|
|
3
3
|
export declare const PREVENTLINEBREAK: string;
|
|
4
|
+
export declare const NOSCROLLBARSONCHILDREN: string;
|
|
4
5
|
export declare const LARGE: string;
|
|
5
6
|
export declare const SMALL: string;
|
|
6
7
|
export declare const MUTED: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { Position } from "react-flow-renderer";
|
|
7
|
+
export interface GetSmoothStepPathParams {
|
|
8
|
+
sourceX: number;
|
|
9
|
+
sourceY: number;
|
|
10
|
+
sourcePosition?: Position;
|
|
11
|
+
targetX: number;
|
|
12
|
+
targetY: number;
|
|
13
|
+
targetPosition?: Position;
|
|
14
|
+
borderRadius?: number;
|
|
15
|
+
centerX?: number;
|
|
16
|
+
centerY?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function getSmoothStepPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, borderRadius, centerX, centerY, }: GetSmoothStepPathParams): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EdgeDefaultProps } from "./EdgeDefault";
|
|
2
2
|
import { EdgeStepProps } from "./EdgeStep";
|
|
3
|
-
export declare const drawEdgeStraight: ({ sourceX, sourceY, targetX, targetY, }: EdgeDefaultProps) => string;
|
|
3
|
+
export declare const drawEdgeStraight: ({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, }: EdgeDefaultProps) => string;
|
|
4
4
|
export declare const drawEdgeStep: ({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, data, }: EdgeStepProps) => string;
|
|
@@ -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";
|
|
@@ -8,6 +10,8 @@ export { edgeTypes } from "./edges/edgeTypes";
|
|
|
8
10
|
export { MiniMap } from "./minimap/MiniMap";
|
|
9
11
|
export { minimapNodeClassName, minimapNodeColor } from "./minimap/utils";
|
|
10
12
|
export type { NodeProps } from "./nodes/NodeDefault";
|
|
13
|
+
export type { NodeContentProps } from "./nodes/NodeContent";
|
|
14
|
+
export type { NodeContentExtensionProps } from "./nodes/NodeContentExtension";
|
|
11
15
|
export type { NodeToolsProps } from "./nodes/NodeTools";
|
|
12
16
|
export type { EdgeDefaultProps } from "./edges/EdgeDefault";
|
|
13
17
|
export type { EdgeStepProps } from "./edges/EdgeStep";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Position } from "react-flow-renderer";
|
|
3
|
+
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
4
|
+
import { HandleProps } from "./../handles/HandleDefault";
|
|
5
|
+
import { NodeProps } from "./NodeDefault";
|
|
6
|
+
import { NodeContentExtensionProps } from "./NodeContentExtension";
|
|
7
|
+
export declare type HighlightingState = "success" | "warning" | "danger" | "match" | "altmatch";
|
|
8
|
+
export interface IHandleProps extends HandleProps {
|
|
9
|
+
category?: "configuration";
|
|
10
|
+
}
|
|
11
|
+
interface NodeContentData<CONTENT_PROPS = any> {
|
|
12
|
+
/**
|
|
13
|
+
* Name of icon that should be displayed before the node label.
|
|
14
|
+
* Must be a name from our list of canonical icon names.
|
|
15
|
+
*/
|
|
16
|
+
iconName?: ValidIconName;
|
|
17
|
+
/**
|
|
18
|
+
* Valid and accessible URL or `data-uri` for an image that should be displayed before the node label.
|
|
19
|
+
*/
|
|
20
|
+
depiction?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label that is displayed in the node header.
|
|
23
|
+
*/
|
|
24
|
+
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* Content element, displayed in the node body.
|
|
27
|
+
*/
|
|
28
|
+
content?: React.ReactNode | ((adjustedContentProps: Partial<CONTENT_PROPS>) => React.ReactNode);
|
|
29
|
+
/**
|
|
30
|
+
* Content extension, displayed at the bottom side of a node.
|
|
31
|
+
*/
|
|
32
|
+
contentExtension?: React.ReactElement<NodeContentExtensionProps>;
|
|
33
|
+
}
|
|
34
|
+
export interface NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends NodeContentData, React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
/**
|
|
36
|
+
* Size of the node.
|
|
37
|
+
* If `minimalShape` is not set to `none`then the configured size definition is only used for the selected node state.
|
|
38
|
+
*/
|
|
39
|
+
size?: "tiny" | "small" | "medium" | "large";
|
|
40
|
+
/**
|
|
41
|
+
* Defines if the node is initially displayed within a very small shape.
|
|
42
|
+
* If not set to `none` then the node is only displayed in normal size when it is selected.
|
|
43
|
+
*/
|
|
44
|
+
minimalShape?: "none" | "circular" | "rectangular";
|
|
45
|
+
/**
|
|
46
|
+
* Set the type of used highlights to mark the node.
|
|
47
|
+
*/
|
|
48
|
+
highlightedState?: HighlightingState | HighlightingState[];
|
|
49
|
+
/**
|
|
50
|
+
* Text used for tooltip used on icon and depiction.
|
|
51
|
+
*/
|
|
52
|
+
typeLabel?: string;
|
|
53
|
+
/**
|
|
54
|
+
* If `executionButtons` content is included or not.
|
|
55
|
+
* It is displayed in the node header between label and menu.
|
|
56
|
+
*/
|
|
57
|
+
showExecutionButtons?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Set of defined buttons and icons that can be displayed.
|
|
60
|
+
*/
|
|
61
|
+
executionButtons?: (adjustedContentProps: Partial<NODE_CONTENT_PROPS>, setAdjustedContentProps: React.Dispatch<React.SetStateAction<Partial<NODE_CONTENT_PROPS>>>) => React.ReactElement<NODE_CONTENT_PROPS>;
|
|
62
|
+
/**
|
|
63
|
+
* Can be used for permanent action button or context menu.
|
|
64
|
+
* It is displayed at the node header right to the label.
|
|
65
|
+
*/
|
|
66
|
+
menuButtons?: React.ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* Array of property definition objects for `Handle` components that need to be created for the node.
|
|
69
|
+
* @see https://reactflow.dev/docs/api/handle/
|
|
70
|
+
*/
|
|
71
|
+
handles?: IHandleProps[];
|
|
72
|
+
/**
|
|
73
|
+
* Set the minimal number of handles on left or right side of the node to activate the recalculation of the minimal height of the node.
|
|
74
|
+
*/
|
|
75
|
+
adaptHeightForHandleMinCount?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Height per handle in px (without the unit) used for minimal height calculation of the node.
|
|
78
|
+
*/
|
|
79
|
+
adaptSizeIncrement?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Callback function to provide content for the tooltip on a node with a defined `minimalShape`.
|
|
82
|
+
* If you do not want a tooltip in this state you need to provide a callback that returns an empty value.
|
|
83
|
+
*/
|
|
84
|
+
getMinimalTooltipData?: (node: NodeProps<NODE_DATA>) => NodeContentData;
|
|
85
|
+
/**
|
|
86
|
+
* Set if a handle is displayed even if it does not allow a connection to an edge.
|
|
87
|
+
*/
|
|
88
|
+
showUnconnectableHandles?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The node is displayed with some animated shadow for highlighting purposes.
|
|
91
|
+
*/
|
|
92
|
+
animated?: boolean;
|
|
93
|
+
/** Additional data stored in the node. */
|
|
94
|
+
businessData?: NODE_DATA;
|
|
95
|
+
/**
|
|
96
|
+
* This property is only forwarded from the `NodeDefault` element.
|
|
97
|
+
* If set then it will be always overwritten internally.
|
|
98
|
+
*/
|
|
99
|
+
targetPosition?: typeof Position[keyof typeof Position];
|
|
100
|
+
/**
|
|
101
|
+
* This property is only forwarded from the `NodeDefault` element.
|
|
102
|
+
* If set then it will be always overwritten internally.
|
|
103
|
+
*/
|
|
104
|
+
sourcePosition?: typeof Position[keyof typeof Position];
|
|
105
|
+
/**
|
|
106
|
+
* This property is only forwarded from the `NodeDefault` element.
|
|
107
|
+
* If set then it will be always overwritten internally.
|
|
108
|
+
*/
|
|
109
|
+
isConnectable?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* This property is only forwarded from the `NodeDefault` element.
|
|
112
|
+
* If set then it will be always overwritten internally.
|
|
113
|
+
*/
|
|
114
|
+
selected?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Allow react flow wheel events, e.g. for zooming using the mouse wheel over a node.
|
|
117
|
+
* If this is allowed scrolling inside a node is not possible.
|
|
118
|
+
*/
|
|
119
|
+
letPassWheelEvents?: boolean;
|
|
120
|
+
}
|
|
121
|
+
export declare const gethighlightedStateClasses: (state: any, baseClassName: any) => any;
|
|
122
|
+
/**
|
|
123
|
+
* The `NodeContent` element manages the main view of how a node is displaying which content.
|
|
124
|
+
* This element cannot be used directly, all properties must be routed through the `data` property of an `elements` property item inside the `ReactFlow` container.
|
|
125
|
+
*/
|
|
126
|
+
export declare function NodeContent<CONTENT_PROPS = any>({ iconName, depiction, typeLabel, label, showExecutionButtons, executionButtons, menuButtons, content, contentExtension, size, minimalShape, highlightedState, handles, adaptHeightForHandleMinCount, adaptSizeIncrement, getMinimalTooltipData, style, showUnconnectableHandles, animated, targetPosition, sourcePosition, isConnectable, selected, letPassWheelEvents, businessData, ...otherProps }: NodeContentProps<any>): JSX.Element;
|
|
127
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NodeContentExtensionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* When enabled the element is displayed in a way that it does not count into the node size calculation.
|
|
5
|
+
*/
|
|
6
|
+
slideOutOfNode?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Element is displayed in expanded state.
|
|
9
|
+
* If it has no `onToggle` handler property set then it is always expanded.
|
|
10
|
+
*/
|
|
11
|
+
isExpanded?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Click handler to manage the expanded state from outside the the element.
|
|
14
|
+
* This state is not managed automatically by the element itself.
|
|
15
|
+
*/
|
|
16
|
+
onToggle?: (event: React.MouseEvent<HTMLElement>, isExpanded: boolean) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Single element or aray of `IconButton` and `Button` elements.
|
|
19
|
+
* They will be displayed beside the closing button under the element content body.
|
|
20
|
+
*/
|
|
21
|
+
actionButtons?: React.ReactNode | React.ReactNode[];
|
|
22
|
+
/**
|
|
23
|
+
* Tooltip text for expand button.
|
|
24
|
+
*/
|
|
25
|
+
tooltipExpand?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tooltip text for expand button.
|
|
28
|
+
*/
|
|
29
|
+
tooltipReduce?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Displays an content area that can be attached to `NodeContent` elements.
|
|
33
|
+
*/
|
|
34
|
+
export declare const NodeContentExtension: ({ children, slideOutOfNode, isExpanded, onToggle, actionButtons, tooltipExpand, tooltipReduce, ...otherProps }: NodeContentExtensionProps) => JSX.Element;
|
|
@@ -1,133 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { NodeProps as ReactFlowNodeProps
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
declare type HighlightingState = "success" | "warning" | "danger" | "match" | "altmatch";
|
|
6
|
-
export interface IHandleProps extends HandleProps {
|
|
7
|
-
category?: "configuration";
|
|
8
|
-
}
|
|
9
|
-
interface NodeContentData {
|
|
10
|
-
/**
|
|
11
|
-
* Name of icon that should be displayed before the node label.
|
|
12
|
-
* Must be a name from our list of canonical icon names.
|
|
13
|
-
*/
|
|
14
|
-
iconName?: ValidIconName;
|
|
15
|
-
/**
|
|
16
|
-
* Valid and accessible URL or `data-uri` for an image that should be displayed before the node label.
|
|
17
|
-
*/
|
|
18
|
-
depiction?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Label that is displayed in the node header.
|
|
21
|
-
*/
|
|
22
|
-
label: string;
|
|
23
|
-
/**
|
|
24
|
-
* Content element, displayed in the node body.
|
|
25
|
-
*/
|
|
26
|
-
content?: React.ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Content extension, displayed at the bottom side of a node.
|
|
29
|
-
*/
|
|
30
|
-
contentExtension?: React.ReactNode;
|
|
31
|
-
}
|
|
32
|
-
export interface NodeContentProps<T> extends NodeContentData, React.HTMLAttributes<HTMLDivElement> {
|
|
33
|
-
/**
|
|
34
|
-
* Size of the node.
|
|
35
|
-
* If `minimalShape` is not set to `none`then the configured size definition is only used for the selected node state.
|
|
36
|
-
*/
|
|
37
|
-
size?: "tiny" | "small" | "medium" | "large";
|
|
38
|
-
/**
|
|
39
|
-
* Defines if the node is initially displayed within a very small shape.
|
|
40
|
-
* If not set to `none` then the node is only displayed in normal size when it is selected.
|
|
41
|
-
*/
|
|
42
|
-
minimalShape?: "none" | "circular" | "rectangular";
|
|
43
|
-
/**
|
|
44
|
-
* Set the type of used highlights to mark the node.
|
|
45
|
-
*/
|
|
46
|
-
highlightedState?: HighlightingState | HighlightingState[];
|
|
47
|
-
/**
|
|
48
|
-
* Text used for tooltip used on icon and depiction.
|
|
49
|
-
*/
|
|
50
|
-
typeLabel?: string;
|
|
51
|
-
/**
|
|
52
|
-
* If `executionButtons` content is included or not.
|
|
53
|
-
* It is displayed in the node header between label and menu.
|
|
54
|
-
*/
|
|
55
|
-
showExecutionButtons?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Set of defined buttons and icons that can be displayed.
|
|
58
|
-
*/
|
|
59
|
-
executionButtons?: () => React.ReactNode;
|
|
60
|
-
/**
|
|
61
|
-
* Can be used for permanent action button or context menu.
|
|
62
|
-
* It is displayed at the node header right to the label.
|
|
63
|
-
*/
|
|
64
|
-
menuButtons?: React.ReactNode;
|
|
65
|
-
/**
|
|
66
|
-
* Array of property definition objects for `Handle` components that need to be created for the node.
|
|
67
|
-
* @see https://reactflow.dev/docs/api/handle/
|
|
68
|
-
*/
|
|
69
|
-
handles?: IHandleProps[];
|
|
70
|
-
/**
|
|
71
|
-
* Set the minimal number of handles on left or right side of the node to activate the recalculation of the minimal height of the node.
|
|
72
|
-
*/
|
|
73
|
-
adaptHeightForHandleMinCount?: number;
|
|
74
|
-
/**
|
|
75
|
-
* Height per handle in px (without the unit) used for minimal height calculation of the node.
|
|
76
|
-
*/
|
|
77
|
-
adaptSizeIncrement?: number;
|
|
78
|
-
/**
|
|
79
|
-
* Callback function to provide content for the tooltip on a node with a defined `minimalShape`.
|
|
80
|
-
* If you do not want a tooltip in this state you need to provide a callback that returns an empty value.
|
|
81
|
-
*/
|
|
82
|
-
getMinimalTooltipData?: (node: NodeProps<T>) => NodeContentData;
|
|
83
|
-
/**
|
|
84
|
-
* Set if a handle is displayed even if it does not allow a connection to an edge.
|
|
85
|
-
*/
|
|
86
|
-
showUnconnectableHandles?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* The node is displayed with some animated shadow for highlighting purposes.
|
|
89
|
-
*/
|
|
90
|
-
animated?: boolean;
|
|
91
|
-
/** Additional data stored in the node. */
|
|
92
|
-
businessData?: T;
|
|
93
|
-
/**
|
|
94
|
-
* This property is only forwarded from the `NodeDefault` element.
|
|
95
|
-
* If set then it will be always overwritten internally.
|
|
96
|
-
*/
|
|
97
|
-
targetPosition?: typeof Position[keyof typeof Position];
|
|
98
|
-
/**
|
|
99
|
-
* This property is only forwarded from the `NodeDefault` element.
|
|
100
|
-
* If set then it will be always overwritten internally.
|
|
101
|
-
*/
|
|
102
|
-
sourcePosition?: typeof Position[keyof typeof Position];
|
|
103
|
-
/**
|
|
104
|
-
* This property is only forwarded from the `NodeDefault` element.
|
|
105
|
-
* If set then it will be always overwritten internally.
|
|
106
|
-
*/
|
|
107
|
-
isConnectable?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* This property is only forwarded from the `NodeDefault` element.
|
|
110
|
-
* If set then it will be always overwritten internally.
|
|
111
|
-
*/
|
|
112
|
-
selected?: boolean;
|
|
113
|
-
}
|
|
114
|
-
export interface NodeProps<T> extends ReactFlowNodeProps {
|
|
2
|
+
import { NodeProps as ReactFlowNodeProps } from "react-flow-renderer";
|
|
3
|
+
import { NodeContentProps } from "./NodeContent";
|
|
4
|
+
export interface NodeProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends ReactFlowNodeProps {
|
|
115
5
|
/**
|
|
116
6
|
* Contains all properties for our implementation of the React-Flow node.
|
|
117
7
|
* For details pls see the `NodeContent` element documentation.
|
|
118
8
|
*/
|
|
119
|
-
data: NodeContentProps<
|
|
9
|
+
data: NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS>;
|
|
120
10
|
}
|
|
121
|
-
export declare const gethighlightedStateClasses: (state: any, baseClassName: any) => any;
|
|
122
11
|
/**
|
|
123
12
|
* The `NodeDefault` element manages the display of React-Flow nodes.
|
|
124
13
|
* This element cannot be used directly, it must be connected via a `nodeTypes` definition and all properties need to be routed through the `elements` property items inside the `ReactFlow` container.
|
|
125
14
|
* @see https://reactflow.dev/docs/api/nodes/
|
|
126
15
|
*/
|
|
127
16
|
export declare const NodeDefault: React.MemoExoticComponent<(node: NodeProps<any>) => JSX.Element>;
|
|
128
|
-
/**
|
|
129
|
-
* The `NodeContent` element manages the main view of how a node is displaying which content.
|
|
130
|
-
* This element cannot be used directly, all properties must be routed through the `data` property of an `elements` property item inside the `ReactFlow` container.
|
|
131
|
-
*/
|
|
132
|
-
export declare const NodeContent: ({ iconName, depiction, typeLabel, label, showExecutionButtons, executionButtons, menuButtons, content, contentExtension, size, minimalShape, highlightedState, handles, adaptHeightForHandleMinCount, adaptSizeIncrement, getMinimalTooltipData, style, showUnconnectableHandles, animated, targetPosition, sourcePosition, isConnectable, selected, businessData, ...otherProps }: NodeContentProps<any>) => JSX.Element;
|
|
133
|
-
export {};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IPopoverProps as IBlueprintPopoverProps } from "@blueprintjs/core";
|
|
3
|
+
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
3
4
|
export interface NodeToolsProps extends IBlueprintPopoverProps {
|
|
4
5
|
children: string | JSX.Element;
|
|
5
|
-
togglerElement?:
|
|
6
|
+
togglerElement?: ValidIconName | JSX.Element;
|
|
6
7
|
togglerText?: string;
|
|
7
8
|
menuButtonDataTestId?: string;
|
|
9
|
+
/** If defined this function will be called with the menu API object to be used externally. */
|
|
10
|
+
menuFunctionsCallback?: (menuFunctions: NodeToolsMenuFunctions) => any;
|
|
8
11
|
}
|
|
9
|
-
export
|
|
12
|
+
export interface NodeToolsMenuFunctions {
|
|
13
|
+
/** Closes the menu if its open. */
|
|
14
|
+
closeMenu: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const NodeTools: React.MemoExoticComponent<({ children, togglerElement, togglerText, menuButtonDataTestId, menuFunctionsCallback, ...otherOverlayProps }: NodeToolsProps) => JSX.Element>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const nodeTypes: {
|
|
3
|
-
default: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
4
|
-
graphNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
5
|
-
classNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
6
|
-
instanceNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
7
|
-
propertyNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
8
|
-
datasetNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
9
|
-
linkingNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
10
|
-
transformNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
11
|
-
taskNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
12
|
-
workflowNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
|
|
3
|
+
default: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
4
|
+
graphNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
5
|
+
classNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
6
|
+
instanceNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
7
|
+
propertyNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
8
|
+
datasetNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
9
|
+
linkingNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
10
|
+
transformNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
11
|
+
taskNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
12
|
+
workflowNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
|
|
13
13
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import ApplicationToolbar from "./components/Application/ApplicationToolbar";
|
|
|
9
9
|
import ApplicationToolbarSection from "./components/Application/ApplicationToolbarSection";
|
|
10
10
|
import ApplicationToolbarAction from "./components/Application/ApplicationToolbarAction";
|
|
11
11
|
import ApplicationToolbarPanel from "./components/Application/ApplicationToolbarPanel";
|
|
12
|
+
import AutoSuggestion from "./components/AutoSuggestion/AutoSuggestion";
|
|
13
|
+
import { AutoSuggestionList } from "./components/AutoSuggestion/AutoSuggestionList";
|
|
14
|
+
import SingleLineCodeEditor from "./components/AutoSuggestion/SingleLineCodeEditor";
|
|
12
15
|
import HtmlContentBlock from "./components/Typography/HtmlContentBlock";
|
|
13
16
|
import OverflowText from "./components/Typography/OverflowText";
|
|
14
17
|
import WhiteSpaceContainer from "./components/Typography/WhiteSpaceContainer";
|
|
@@ -27,6 +30,8 @@ import Button from "./components/Button/Button";
|
|
|
27
30
|
import Checkbox from "./components/Checkbox/Checkbox";
|
|
28
31
|
import RadioButton from "./components/RadioButton/RadioButton";
|
|
29
32
|
import Tabs from "./components/Tabs/Tabs";
|
|
33
|
+
import Tab from "./components/Tabs/Tab";
|
|
34
|
+
import TabTitle from "./components/Tabs/TabTitle";
|
|
30
35
|
import TextField from "./components/TextField/TextField";
|
|
31
36
|
import TextArea from "./components/TextField/TextArea";
|
|
32
37
|
import SearchField from "./components/TextField/SearchField";
|
|
@@ -47,6 +52,7 @@ import TagList from "./components/Tag/TagList";
|
|
|
47
52
|
import Notification from "./components/Notification/Notification";
|
|
48
53
|
import Toast from "./components/Notification/Toast";
|
|
49
54
|
import { Select } from "@blueprintjs/select";
|
|
55
|
+
import MultiSelect from "./components/MultiSelect/MultiSelect";
|
|
50
56
|
import { Iframe } from "./components/Iframe/Iframe";
|
|
51
57
|
import { IframeModal } from "./components/Iframe/IframeModal";
|
|
52
58
|
import { OverviewItem, OverviewItemActions, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemList } from "./components/OverviewItem";
|
|
@@ -75,6 +81,7 @@ import { PropertyName, PropertyValue, PropertyValuePair, PropertyValueList } fro
|
|
|
75
81
|
import * as TypographyClassNames from "./components/Typography/classnames";
|
|
76
82
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar";
|
|
77
83
|
import List from "./components/List/List";
|
|
84
|
+
import * as LegacyReplacements from "./legacy-replacements";
|
|
78
85
|
declare const HelperClasses: {
|
|
79
86
|
Typography: typeof TypographyClassNames;
|
|
80
87
|
Intent: {
|
|
@@ -84,9 +91,7 @@ declare const HelperClasses: {
|
|
|
84
91
|
declare const Utilities: {
|
|
85
92
|
openInNewTab: (event: import("react").MouseEvent<HTMLElement, MouseEvent>, handler?: ((e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void) | undefined, url?: string | undefined) => void;
|
|
86
93
|
};
|
|
87
|
-
export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, TextField, TextArea, SearchField, Switch, //
|
|
88
|
-
|
|
89
|
-
FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, // TODO: include as own element
|
|
90
|
-
AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities };
|
|
94
|
+
export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, // FIXME: CMEM-3742: include as own element
|
|
95
|
+
MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
|
|
91
96
|
export * from "./cmem";
|
|
92
97
|
export * from "./extensions/react-flow";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const iconMappings: {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
export declare function ButtonReplacement({ children, className, fabSize, iconName, tooltip, progress, disabled, affirmative, dismissive, disruptive, raised, colored, ...otherProps }: any): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabsProps as BlueprintTabsProps } from "@blueprintjs/core";
|
|
3
|
+
interface TabsProps extends Omit<BlueprintTabsProps, "vertical" | "onChange" | "large" | "id" | "renderActiveTabPanelOnly"> {
|
|
4
|
+
activeTab: string;
|
|
5
|
+
tabs: DeprecatedTabProps[];
|
|
6
|
+
onTabClick?: ({ props }: any) => void;
|
|
7
|
+
prefixTabNames: string;
|
|
8
|
+
allowScrollbars?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* If controlled usage is enable then a `onTabClick` handler is ncessary to control tab panel content and `activeTab` updates.
|
|
11
|
+
*/
|
|
12
|
+
controlled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface DeprecatedTabProps {
|
|
15
|
+
tabId: string;
|
|
16
|
+
tabTitle: React.ReactNode;
|
|
17
|
+
tabContent?: JSX.Element;
|
|
18
|
+
dontShrink?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function TabsReplacement({ activeTab, tabs, onTabClick, controlled, prefixTabNames, className, allowScrollbars, ...restProps }: TabsProps): JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { ButtonReplacement as Button } from "./Button/Button";
|
|
2
|
+
export { AffirmativeButtonReplacement as AffirmativeButton } from "./Button/AffirmativeButton";
|
|
3
|
+
export { DismissiveButtonReplacement as DismissiveButton } from "./Button/DismissiveButton";
|
|
4
|
+
export { DisruptiveButtonReplacement as DisruptiveButton } from "./Button/DisruptiveButton";
|
|
5
|
+
export { ButtonReplacement as ProgressButton } from "./Button/Button";
|
|
6
|
+
export { CheckboxReplacement as Checkbox } from "./Checkbox/Checkbox";
|
|
7
|
+
export { RadioButtonReplacement as Radio } from "./Radio/RadioButton";
|
|
8
|
+
export { TabsReplacement as Tabs } from "./Tabs/Tabs";
|
|
9
|
+
export { TextFieldReplacement as TextField } from "./TextField/TextField";
|
|
10
|
+
export type { DeprecatedTabProps } from "./Tabs/Tabs";
|