@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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
8
8
|
import { openInNewTab } from "../../common/utils/openInNewTab";
|
|
9
9
|
|
|
10
|
-
//
|
|
10
|
+
// FIXME: enforce href and remove onClick later
|
|
11
11
|
export type IBreadcrumbItemProps = Omit<
|
|
12
12
|
IBlueprintBreadcrumbItemProps,
|
|
13
13
|
// we remove some properties that are currently not necessary, required usage should be discussed
|
|
@@ -19,14 +19,14 @@ export type IBreadcrumbItemProps = Omit<
|
|
|
19
19
|
|
|
20
20
|
function BreadcrumbItem({
|
|
21
21
|
className = "",
|
|
22
|
-
onClick,
|
|
23
|
-
href,
|
|
22
|
+
onClick,
|
|
23
|
+
href,
|
|
24
24
|
//itemDivider='',
|
|
25
25
|
...otherBlueprintBreadcrumbProps
|
|
26
26
|
}: IBreadcrumbItemProps) {
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
/*
|
|
29
|
-
|
|
29
|
+
FIXME: adding `data-divider` does not work this way because BlueprintJS
|
|
30
30
|
breadcrumb component does not support (and forward) it on HTML element
|
|
31
31
|
level. The idea is to add the divider as data-* property to use it via
|
|
32
32
|
CSS/Sass as content for the pseudo element, currently done static in CSS
|
|
@@ -18,7 +18,7 @@ type ReducedBreadcrumbsProps = Omit<
|
|
|
18
18
|
"popoverProps"
|
|
19
19
|
>;
|
|
20
20
|
|
|
21
|
-
//
|
|
21
|
+
// FIXME: enforce onItemClick later when href value can always be routed correctly
|
|
22
22
|
interface IBreadcrumbListProps extends ReducedBreadcrumbsProps {
|
|
23
23
|
/**
|
|
24
24
|
list of breadcrumb items to display
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import Icon from "../Icon/Icon";
|
|
10
10
|
import Tooltip, { TooltipProps } from "./../Tooltip/Tooltip";
|
|
11
11
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
12
|
+
import {ValidIconName} from "../Icon/canonicalIconNames";
|
|
12
13
|
|
|
13
14
|
export type AnchorOrButtonProps = Omit<BlueprintButtonProps, "elementRef" | "icon" | "rightIcon"> | Omit<BlueprintAnchorButtonProps, "elementRef" | "icon" | "rightIcon">;
|
|
14
15
|
|
|
@@ -56,8 +57,8 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
56
57
|
* If an URL is set then the button is included as HTML anchor element instead of a button form element.
|
|
57
58
|
*/
|
|
58
59
|
href?: string;
|
|
59
|
-
icon?:
|
|
60
|
-
rightIcon?:
|
|
60
|
+
icon?: ValidIconName | JSX.Element;
|
|
61
|
+
rightIcon?: ValidIconName | JSX.Element;
|
|
61
62
|
target?: string;
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -115,7 +116,7 @@ function Button({
|
|
|
115
116
|
</ButtonType>
|
|
116
117
|
);
|
|
117
118
|
|
|
118
|
-
return tooltip ? (
|
|
119
|
+
return (tooltip && !restProps.loading) ? (
|
|
119
120
|
<Tooltip content={tooltip} {...tooltipProperties}>
|
|
120
121
|
<span>{button}</span>
|
|
121
122
|
</Tooltip>
|
|
@@ -7,18 +7,23 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
|
7
7
|
|
|
8
8
|
export interface CardProps extends BlueprintCardProps {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* `<Card />` element is included in DOM as simple `div` element.
|
|
11
11
|
* By default it is a HTML `section`.
|
|
12
12
|
*/
|
|
13
13
|
isOnlyLayout?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Take the full height of container to display the card.
|
|
16
16
|
*/
|
|
17
17
|
fullHeight?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Background color is slightly altered to differ card display from other cards.
|
|
20
20
|
*/
|
|
21
21
|
elevated?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* When card (or its children) get focus the card is scrolled into the viewport.
|
|
24
|
+
* Property value defined which part of the card is always scrolled in, this may important when the card is larger than the viewport.
|
|
25
|
+
*/
|
|
26
|
+
scrollinOnFocus?: "start" | "center" | "end";
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
/**
|
|
@@ -32,26 +37,40 @@ function Card({
|
|
|
32
37
|
isOnlyLayout=false,
|
|
33
38
|
fullHeight=false,
|
|
34
39
|
elevated=false,
|
|
40
|
+
scrollinOnFocus,
|
|
35
41
|
interactive,
|
|
36
42
|
...otherProps
|
|
37
43
|
}: CardProps) {
|
|
44
|
+
const scrollIn = !!scrollinOnFocus ? {
|
|
45
|
+
tabIndex: 0,
|
|
46
|
+
onFocus: (e: any) => {
|
|
47
|
+
const el = e.target.closest(".diapp-iframewindow__content");
|
|
48
|
+
setTimeout(()=>{if (el) el.scrollIntoView({
|
|
49
|
+
behavior: "smooth",
|
|
50
|
+
block: scrollinOnFocus,
|
|
51
|
+
inline: scrollinOnFocus,
|
|
52
|
+
})}, 100);
|
|
53
|
+
}
|
|
54
|
+
} : {}
|
|
38
55
|
const cardElement = (
|
|
39
56
|
<BlueprintCard
|
|
40
57
|
className={
|
|
41
58
|
`${eccgui}-card ` +
|
|
42
59
|
(fullHeight ? ` ${eccgui}-card--fullheight ` : '') +
|
|
43
60
|
(elevated ? ` ${eccgui}-card--elevated ` : '') +
|
|
61
|
+
(!!scrollinOnFocus ? ` ${eccgui}-card--scrollonfocus ` : '') +
|
|
44
62
|
className
|
|
45
63
|
}
|
|
46
64
|
elevation={elevation}
|
|
47
65
|
interactive={!!otherProps.onClick ? true : interactive}
|
|
66
|
+
{...scrollIn}
|
|
48
67
|
{...otherProps}
|
|
49
68
|
>
|
|
50
69
|
{children}
|
|
51
70
|
</BlueprintCard>
|
|
52
71
|
);
|
|
53
72
|
|
|
54
|
-
//
|
|
73
|
+
// FIXME: improve Card element so it is itself a section html element
|
|
55
74
|
return isOnlyLayout === false ? <section>{cardElement}</section> : cardElement;
|
|
56
75
|
};
|
|
57
76
|
|
|
@@ -44,6 +44,10 @@ $eccgui-size-card-spacing: $eccgui-size-typo-base !default;
|
|
|
44
44
|
@extend .#{$eccgui}-grid__row--fullheight;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.#{$eccgui}-card--scrollonfocus {
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
.#{$eccgui}-card__header {
|
|
48
52
|
padding: $eccgui-size-card-spacing/2 $eccgui-size-card-spacing/2 $eccgui-size-card-spacing/2 $eccgui-size-card-spacing;
|
|
49
53
|
box-sizing: content-box;
|
|
@@ -35,6 +35,10 @@ $switch-checked-background-color-disabled: rgba($switch-checked-background-color
|
|
|
35
35
|
box-shadow: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
input:focus ~ .#{$ns}-control-indicator {
|
|
39
|
+
outline-offset: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
input:disabled ~ .#{$ns}-control-indicator,
|
|
39
43
|
input:disabled:checked ~ .#{$ns}-control-indicator,
|
|
40
44
|
{
|
|
@@ -3,6 +3,12 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
|
3
3
|
import ContextOverlay from "./ContextOverlay";
|
|
4
4
|
import Menu from "../Menu/Menu";
|
|
5
5
|
import IconButton from "../Icon/IconButton";
|
|
6
|
+
import {ValidIconName} from "../Icon/canonicalIconNames";
|
|
7
|
+
|
|
8
|
+
interface ContextMenuProps {
|
|
9
|
+
togglerElement?: ValidIconName | JSX.Element
|
|
10
|
+
[key: string]: any
|
|
11
|
+
}
|
|
6
12
|
|
|
7
13
|
function ContextMenu({
|
|
8
14
|
children,
|
|
@@ -14,13 +20,13 @@ function ContextMenu({
|
|
|
14
20
|
so by default we use the title attribute instead of Tooltip. */
|
|
15
21
|
tooltipAsTitle = true,
|
|
16
22
|
...restProps
|
|
17
|
-
}:
|
|
23
|
+
}: ContextMenuProps) {
|
|
18
24
|
return (
|
|
19
25
|
<ContextOverlay {...restProps} className={`${eccgui}-contextmenu ` + className}>
|
|
20
26
|
{typeof togglerElement === "string" ? (
|
|
21
27
|
<IconButton
|
|
22
28
|
tooltipAsTitle={tooltipAsTitle}
|
|
23
|
-
name={togglerElement}
|
|
29
|
+
name={[togglerElement]}
|
|
24
30
|
text={togglerText}
|
|
25
31
|
large={togglerLarge}
|
|
26
32
|
data-test-id={restProps["data-test-id"]}
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Classes as BlueprintClassNames,
|
|
9
|
+
OverlayProps, Overlay as BlueprintOverlay,
|
|
10
|
+
IOverlayState,
|
|
11
|
+
} from "@blueprintjs/core";
|
|
8
12
|
import {Card} from "./../Card";
|
|
9
13
|
import {CLASSPREFIX as eccgui} from "../../configuration/constants";
|
|
10
|
-
import { IOverlayState } from '@blueprintjs/core';
|
|
11
14
|
|
|
12
15
|
export interface ModalProps extends OverlayProps, IOverlayState {
|
|
13
16
|
children: React.ReactNode | React.ReactNode[];
|
|
@@ -23,6 +26,8 @@ export interface ModalProps extends OverlayProps, IOverlayState {
|
|
|
23
26
|
* Prevents that a backdrop area is displayed behind the modal elements.
|
|
24
27
|
*/
|
|
25
28
|
preventBackdrop?: boolean;
|
|
29
|
+
/** Optional props for the wrapper div element inside the modal overlay. */
|
|
30
|
+
wrapperDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
/**
|
|
@@ -38,6 +43,7 @@ function Modal({
|
|
|
38
43
|
canOutsideClickClose=false,
|
|
39
44
|
canEscapeKeyClose=false,
|
|
40
45
|
preventBackdrop=false,
|
|
46
|
+
wrapperDivProps,
|
|
41
47
|
...otherProps
|
|
42
48
|
}: ModalProps) {
|
|
43
49
|
|
|
@@ -65,6 +71,7 @@ function Modal({
|
|
|
65
71
|
hasBackdrop={!preventBackdrop}
|
|
66
72
|
>
|
|
67
73
|
<div
|
|
74
|
+
{...wrapperDivProps}
|
|
68
75
|
className={BlueprintClassNames.DIALOG_CONTAINER}
|
|
69
76
|
// this is a workaround because data attribute on SimpleDialog is not correctly routed to the overlay by blueprint js
|
|
70
77
|
data-test-id={(otherProps as any)["data-test-id"] ?? "simpleDialogWidget"}
|
|
@@ -47,6 +47,8 @@ export interface SimpleDialogProps extends ModalProps, TestableComponent {
|
|
|
47
47
|
* Define purpose of the dialog, e.g. if it is a warning.
|
|
48
48
|
*/
|
|
49
49
|
intent?: IntentTypes;
|
|
50
|
+
/** Optional props for the wrapper div element inside the modal. */
|
|
51
|
+
wrapperDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
/**
|
|
@@ -5,10 +5,10 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
|
5
5
|
import {TestableComponent} from "../interfaces";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
|
|
8
|
+
FIXME: Improve development convenience and prevent development errors
|
|
9
9
|
|
|
10
|
-
* disabled
|
|
11
|
-
currently this need to be dome
|
|
10
|
+
* disabled state could be automatically forwarded to inserted input element,
|
|
11
|
+
currently this need to be dome explicitly .
|
|
12
12
|
* input id could be forwarded to label and input element
|
|
13
13
|
* input id could be created when not given
|
|
14
14
|
*/
|
|
@@ -2,11 +2,9 @@ import React from "react";
|
|
|
2
2
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* allow grow factors for children
|
|
5
|
+
FIXME: allow grow factors for children
|
|
8
6
|
*/
|
|
9
|
-
|
|
7
|
+
/** Allows to layout field items horizontally. */
|
|
10
8
|
function FieldItemRow({ children, className, ...otherProps }: any) {
|
|
11
9
|
return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")}>{children}</div>;
|
|
12
10
|
}
|
|
@@ -5,7 +5,7 @@ import { IntentTypes } from "../../common/Intent";
|
|
|
5
5
|
import Tooltip, { TooltipProps } from "./../Tooltip/Tooltip";
|
|
6
6
|
import canonicalIcons, {IconSized, ValidIconName} from "./canonicalIconNames"
|
|
7
7
|
|
|
8
|
-
interface IconProps extends Omit<CarbonIconProps, "icon" | "description" | "name"> {
|
|
8
|
+
export interface IconProps extends Omit<CarbonIconProps, "icon" | "description" | "name"> {
|
|
9
9
|
// The CSS class name.
|
|
10
10
|
className?: string,
|
|
11
11
|
// Canonical icon name
|
|
@@ -38,16 +38,16 @@ const findExistingIcon = (iconName: ValidIconName | string[],
|
|
|
38
38
|
|
|
39
39
|
/** Returns the first icon name that exists or the fallback icon name. */
|
|
40
40
|
export const findExistingIconName = (iconNames: string[],
|
|
41
|
-
fallbackIconName:
|
|
41
|
+
fallbackIconName: ValidIconName = "Undefined"): ValidIconName => {
|
|
42
42
|
let foundIconName: string = fallbackIconName;
|
|
43
43
|
const iconNameStack = [...iconNames]
|
|
44
44
|
while (foundIconName === fallbackIconName && iconNameStack.length > 0) {
|
|
45
45
|
let iconNameToTest = iconNameStack.shift();
|
|
46
|
-
if (iconNameToTest && canonicalIcons[iconNameToTest] != null) {
|
|
46
|
+
if (iconNameToTest && (canonicalIcons as any)[iconNameToTest] != null) {
|
|
47
47
|
foundIconName = iconNameToTest
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
return foundIconName
|
|
50
|
+
return foundIconName as ValidIconName
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function Icon({
|
|
@@ -6,11 +6,11 @@ import {ValidIconName} from "./canonicalIconNames";
|
|
|
6
6
|
|
|
7
7
|
interface IconButtonProps extends ButtonProps {
|
|
8
8
|
// Canonical icon name
|
|
9
|
-
name: ValidIconName
|
|
9
|
+
name: ValidIconName | string[]
|
|
10
10
|
className?: string
|
|
11
11
|
// Tooltip text
|
|
12
12
|
text?: string,
|
|
13
|
-
// Time after tooltip text is
|
|
13
|
+
// Time after tooltip text is visible when icon is hovered/focuses
|
|
14
14
|
tooltipOpenDelay?: number,
|
|
15
15
|
// Display large icon version
|
|
16
16
|
large?: boolean,
|
|
@@ -18,7 +18,7 @@ interface IconButtonProps extends ButtonProps {
|
|
|
18
18
|
small?: boolean
|
|
19
19
|
// If the tooltip should be set as title attribute instead of the Tooltip component. If true, all other tooltip parameters are ignored.
|
|
20
20
|
tooltipAsTitle?: boolean
|
|
21
|
-
// If set, button will become an anchor button. FIXME: Setting this parameter should not change the type of the button. Split into several components.
|
|
21
|
+
// If set, button will become an anchor button. FIXME: CMEM-3742: Setting this parameter should not change the type of the button. Split into several components.
|
|
22
22
|
href?: string
|
|
23
23
|
// Additional description of the icon function to improve accessibility, if not defined then the text label is used as fallback
|
|
24
24
|
description?: string
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as icons from "@carbon/icons-react"
|
|
2
2
|
|
|
3
3
|
/** Valid icon names. */
|
|
4
|
-
export type ValidIconName =
|
|
5
|
-
| "application-dataintegration"
|
|
4
|
+
export type ValidIconName = "application-dataintegration"
|
|
6
5
|
| "application-homepage"
|
|
7
6
|
| "application-useraccount"
|
|
8
7
|
| "application-warning"
|
|
@@ -65,6 +64,11 @@ export type ValidIconName = string // allow also dynamic string parameter (in in
|
|
|
65
64
|
| "operation-logout"
|
|
66
65
|
| "operation-filter"
|
|
67
66
|
| "operation-filteredit"
|
|
67
|
+
| "operation-comparison"
|
|
68
|
+
| "operation-transform"
|
|
69
|
+
| "operation-aggregation"
|
|
70
|
+
| "data-sourcepath"
|
|
71
|
+
| "data-targetpath"
|
|
68
72
|
| "list-sort"
|
|
69
73
|
| "list-sortasc"
|
|
70
74
|
| "list-sortdesc"
|
|
@@ -106,6 +110,7 @@ export type ValidIconName = string // allow also dynamic string parameter (in in
|
|
|
106
110
|
| "linked-item"
|
|
107
111
|
| "operation-auto-graph-layout"
|
|
108
112
|
| "unlinked-item"
|
|
113
|
+
| "write-protected"
|
|
109
114
|
| "undefined"
|
|
110
115
|
| "Undefined";
|
|
111
116
|
|
|
@@ -433,6 +438,32 @@ const canonicalIconNames: Record<ValidIconName, IconSized> = {
|
|
|
433
438
|
normal: icons.FilterEdit20,
|
|
434
439
|
large: icons.FilterEdit32
|
|
435
440
|
},
|
|
441
|
+
"operation-transform": {
|
|
442
|
+
small: icons.Calculation16,
|
|
443
|
+
normal: icons.Calculation20,
|
|
444
|
+
large: icons.Calculation32
|
|
445
|
+
},
|
|
446
|
+
"operation-comparison": {
|
|
447
|
+
small: icons.Compare16,
|
|
448
|
+
normal: icons.Compare20,
|
|
449
|
+
large: icons.Compare32
|
|
450
|
+
},
|
|
451
|
+
"operation-aggregation": {
|
|
452
|
+
small: icons.DataCollection16,
|
|
453
|
+
normal: icons.DataCollection20,
|
|
454
|
+
large: icons.DataCollection32
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
"data-sourcepath": {
|
|
458
|
+
small: icons.Data_216,
|
|
459
|
+
normal: icons.Data_220,
|
|
460
|
+
large: icons.Data_232
|
|
461
|
+
},
|
|
462
|
+
"data-targetpath": {
|
|
463
|
+
small: icons.Data_116,
|
|
464
|
+
normal: icons.Data_120,
|
|
465
|
+
large: icons.Data_132
|
|
466
|
+
},
|
|
436
467
|
|
|
437
468
|
"list-sort": {
|
|
438
469
|
small: icons.ArrowsVertical16,
|
|
@@ -646,6 +677,12 @@ const canonicalIconNames: Record<ValidIconName, IconSized> = {
|
|
|
646
677
|
large: icons.ChartNetwork32
|
|
647
678
|
},
|
|
648
679
|
|
|
680
|
+
"write-protected": {
|
|
681
|
+
small: icons.DocumentProtected16,
|
|
682
|
+
normal: icons.DocumentProtected20,
|
|
683
|
+
large: icons.DocumentProtected32
|
|
684
|
+
},
|
|
685
|
+
|
|
649
686
|
"undefined": {
|
|
650
687
|
small: icons.Undefined16,
|
|
651
688
|
normal: icons.Undefined20,
|
|
@@ -11,7 +11,7 @@ interface IProps {
|
|
|
11
11
|
icon?: ValidIconName | string[]
|
|
12
12
|
// Props defined by the Blueprint component that should be forwarded
|
|
13
13
|
internalProps?: Partial<MenuItemProps> & React.AnchorHTMLAttributes<HTMLAnchorElement>
|
|
14
|
-
// FIXME: For backward compatibility, should be avoided in all code bases
|
|
14
|
+
// FIXME: CMEM-3742: For backward compatibility, should be avoided in all code bases
|
|
15
15
|
[key: string]: any
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
+
import { loremIpsum } from "react-lorem-ipsum";
|
|
4
|
+
|
|
5
|
+
import MultiSelectExample from "./MultiSelect";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: "Components/MultiSelect",
|
|
9
|
+
component: MultiSelectExample,
|
|
10
|
+
argTypes: {
|
|
11
|
+
placeholder: {
|
|
12
|
+
description: "Input placeholder text",
|
|
13
|
+
control: "text",
|
|
14
|
+
table: {
|
|
15
|
+
type: { summary: "string" },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
openOnKeyDown: {
|
|
19
|
+
description:
|
|
20
|
+
"If true, the component waits until a keydown event in the TagInput before opening its popover. If false, the popover opens immediately after a mouse click focuses the component's TagInput ",
|
|
21
|
+
control: "boolean",
|
|
22
|
+
defaultValue: false,
|
|
23
|
+
table: {
|
|
24
|
+
type: { summary: "boolean" },
|
|
25
|
+
defaultValue: { summary: false },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
items: {
|
|
29
|
+
description: "Array of items in the list",
|
|
30
|
+
control: "none",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
} as ComponentMeta<typeof MultiSelectExample>;
|
|
34
|
+
|
|
35
|
+
const Template: ComponentStory<typeof MultiSelectExample> = (args) => <MultiSelectExample {...args} />;
|
|
36
|
+
|
|
37
|
+
export const Default = Template.bind({});
|
|
38
|
+
|
|
39
|
+
const testLabels = loremIpsum({
|
|
40
|
+
p: 1,
|
|
41
|
+
avgSentencesPerParagraph: 5,
|
|
42
|
+
avgWordsPerSentence: 1,
|
|
43
|
+
startWithLoremIpsum: false,
|
|
44
|
+
random: false
|
|
45
|
+
}).toString().split(".");
|
|
46
|
+
|
|
47
|
+
const items = new Array(5).fill(undefined).map((_, id) => {
|
|
48
|
+
const testLabel = testLabels[id];
|
|
49
|
+
return { testLabel, testId: `${testLabel}-id` };
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
Default.args = {
|
|
53
|
+
items,
|
|
54
|
+
canCreateNewItem: true,
|
|
55
|
+
prePopulateWithItems: false,
|
|
56
|
+
itemId: item => item.testId,
|
|
57
|
+
itemLabel: item => item.testLabel,
|
|
58
|
+
openOnKeyDown: true,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const TemplateWithOpenDropdown: ComponentStory<typeof MultiSelectExample> = (args) => <MultiSelectExample {...args} />;
|
|
62
|
+
|
|
63
|
+
export const openDropdownWhenFocused = TemplateWithOpenDropdown.bind({});
|
|
64
|
+
|
|
65
|
+
openDropdownWhenFocused.args = {
|
|
66
|
+
items,
|
|
67
|
+
canCreateNewItem: true,
|
|
68
|
+
prePopulateWithItems: false,
|
|
69
|
+
itemId: item => item.testId,
|
|
70
|
+
itemLabel: item => item.testLabel,
|
|
71
|
+
};
|