@eccenca/gui-elements 6.3.0 → 22.0.0-rc.6
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 +98 -880
- package/LICENSE +202 -0
- package/README.md +56 -1240
- package/blueprint/constants.ts +7 -0
- package/blueprint/toaster/index.tsx +1 -0
- package/dist/cmem/ActivityControl/ActivityControlTypes.d.ts +15 -0
- package/dist/cmem/ActivityControl/ActivityControlTypes.js +1 -0
- package/dist/cmem/ActivityControl/ActivityControlWidget.d.ts +32 -0
- package/dist/cmem/ActivityControl/ActivityControlWidget.js +92 -0
- package/dist/cmem/ActivityControl/ActivityControlWidget.jsx +45 -0
- package/dist/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +12 -0
- package/dist/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +59 -0
- package/dist/cmem/ActivityControl/ActivityExecutionErrorReportModal.jsx +76 -0
- package/dist/cmem/ActivityControl/SilkActivityControl.d.ts +62 -0
- package/dist/cmem/ActivityControl/SilkActivityControl.js +219 -0
- package/dist/cmem/ActivityControl/SilkActivityControl.jsx +217 -0
- package/dist/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +34 -0
- package/dist/cmem/ContentBlobToggler/ContentBlobToggler.js +56 -0
- package/dist/cmem/ContentBlobToggler/ContentBlobToggler.jsx +62 -0
- package/dist/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +42 -0
- package/dist/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +52 -0
- package/dist/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.jsx +17 -0
- package/dist/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.d.ts +15 -0
- package/dist/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +80 -0
- package/dist/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.jsx +77 -0
- package/dist/cmem/index.d.ts +10 -0
- package/dist/cmem/index.js +67 -0
- package/dist/cmem/markdown/Markdown.d.ts +16 -0
- package/dist/cmem/markdown/Markdown.js +75 -0
- package/dist/cmem/markdown/Markdown.jsx +87 -0
- package/dist/cmem/markdown/highlightSearchWords.js +84 -0
- package/dist/common/Intent/index.d.ts +7 -0
- package/dist/common/Intent/index.js +33 -0
- package/dist/common/utils/openInNewTab.d.ts +3 -0
- package/dist/common/utils/openInNewTab.js +22 -0
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.js +31 -0
- package/dist/components/Accordion/Accordion.jsx +21 -0
- package/dist/components/Accordion/AccordionItem.d.ts +15 -0
- package/dist/components/Accordion/AccordionItem.js +37 -0
- package/dist/components/Accordion/AccordionItem.jsx +27 -0
- package/dist/components/Application/ApplicationContainer.d.ts +6 -0
- package/dist/components/Application/ApplicationContainer.js +27 -0
- package/dist/components/Application/ApplicationContainer.jsx +20 -0
- package/dist/components/Application/ApplicationContent.d.ts +22 -0
- package/dist/components/Application/ApplicationContent.js +48 -0
- package/dist/components/Application/ApplicationContent.jsx +34 -0
- package/dist/components/Application/ApplicationHeader.d.ts +3 -0
- package/dist/components/Application/ApplicationHeader.js +29 -0
- package/dist/components/Application/ApplicationHeader.jsx +22 -0
- package/dist/components/Application/ApplicationSidebarNavigation.d.ts +12 -0
- package/dist/components/Application/ApplicationSidebarNavigation.js +36 -0
- package/dist/components/Application/ApplicationSidebarNavigation.jsx +22 -0
- package/dist/components/Application/ApplicationSidebarToggler.d.ts +3 -0
- package/dist/components/Application/ApplicationSidebarToggler.js +28 -0
- package/dist/components/Application/ApplicationSidebarToggler.jsx +19 -0
- package/dist/components/Application/ApplicationTitle.d.ts +40 -0
- package/dist/components/Application/ApplicationTitle.js +53 -0
- package/dist/components/Application/ApplicationTitle.jsx +39 -0
- package/dist/components/Application/ApplicationToolbar.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbar.js +30 -0
- package/dist/components/Application/ApplicationToolbar.jsx +22 -0
- package/dist/components/Application/ApplicationToolbarAction.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbarAction.js +30 -0
- package/dist/components/Application/ApplicationToolbarAction.jsx +22 -0
- package/dist/components/Application/ApplicationToolbarPanel.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbarPanel.js +30 -0
- package/dist/components/Application/ApplicationToolbarPanel.jsx +22 -0
- package/dist/components/Application/ApplicationToolbarSection.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbarSection.js +27 -0
- package/dist/components/Application/ApplicationToolbarSection.jsx +20 -0
- package/dist/components/AutocompleteField/AutoCompleteField.d.ts +110 -0
- package/dist/components/AutocompleteField/AutoCompleteField.js +309 -0
- package/dist/components/AutocompleteField/AutoCompleteField.jsx +295 -0
- package/dist/components/AutocompleteField/autoCompleteFieldUtils.js +42 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +5 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +45 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.jsx +30 -0
- package/dist/components/Breadcrumb/BreadcrumbList.d.ts +24 -0
- package/dist/components/Breadcrumb/BreadcrumbList.js +60 -0
- package/dist/components/Breadcrumb/BreadcrumbList.jsx +35 -0
- package/dist/components/Button/Button.d.ts +58 -0
- package/dist/components/Button/Button.js +84 -0
- package/dist/components/Button/Button.jsx +48 -0
- package/dist/components/Card/Card.d.ts +23 -0
- package/dist/components/Card/Card.js +44 -0
- package/dist/components/Card/Card.jsx +31 -0
- package/dist/components/Card/CardActions.d.ts +14 -0
- package/dist/components/Card/CardActions.js +33 -0
- package/dist/components/Card/CardActions.jsx +27 -0
- package/dist/components/Card/CardActionsAux.d.ts +9 -0
- package/dist/components/Card/CardActionsAux.js +32 -0
- package/dist/components/Card/CardActionsAux.jsx +26 -0
- package/dist/components/Card/CardContent.d.ts +9 -0
- package/dist/components/Card/CardContent.js +32 -0
- package/dist/components/Card/CardContent.jsx +25 -0
- package/dist/components/Card/CardHeader.d.ts +7 -0
- package/dist/components/Card/CardHeader.js +52 -0
- package/dist/components/Card/CardHeader.jsx +41 -0
- package/dist/components/Card/CardOptions.d.ts +11 -0
- package/dist/components/Card/CardOptions.js +35 -0
- package/dist/components/Card/CardOptions.jsx +28 -0
- package/dist/components/Card/CardTitle.d.ts +13 -0
- package/dist/components/Card/CardTitle.js +37 -0
- package/dist/components/Card/CardTitle.jsx +26 -0
- package/dist/components/Card/index.d.ts +8 -0
- package/dist/components/Card/index.js +63 -0
- package/dist/components/Card/index.jsx +8 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/Checkbox/Checkbox.jsx +22 -0
- package/dist/components/ContextOverlay/ContextMenu.d.ts +3 -0
- package/dist/components/ContextOverlay/ContextMenu.js +48 -0
- package/dist/components/ContextOverlay/ContextMenu.jsx +30 -0
- package/dist/components/ContextOverlay/ContextOverlay.d.ts +3 -0
- package/dist/components/ContextOverlay/ContextOverlay.js +37 -0
- package/dist/components/ContextOverlay/ContextOverlay.jsx +27 -0
- package/dist/components/Dialog/AlertDialog.d.ts +22 -0
- package/dist/components/Dialog/AlertDialog.js +56 -0
- package/dist/components/Dialog/AlertDialog.jsx +39 -0
- package/dist/components/Dialog/Modal.d.ts +25 -0
- package/dist/components/Dialog/Modal.js +67 -0
- package/dist/components/Dialog/Modal.jsx +49 -0
- package/dist/components/Dialog/SimpleDialog.d.ts +41 -0
- package/dist/components/Dialog/SimpleDialog.js +62 -0
- package/dist/components/Dialog/SimpleDialog.jsx +50 -0
- package/dist/components/Form/FieldItem.d.ts +16 -0
- package/dist/components/Form/FieldItem.js +82 -0
- package/dist/components/Form/FieldItem.jsx +48 -0
- package/dist/components/Form/FieldItemRow.d.ts +3 -0
- package/dist/components/Form/FieldItemRow.js +30 -0
- package/dist/components/Form/FieldItemRow.jsx +23 -0
- package/dist/components/Form/FieldSet.d.ts +3 -0
- package/dist/components/Form/FieldSet.js +73 -0
- package/dist/components/Form/FieldSet.jsx +49 -0
- package/dist/components/Grid/Grid.d.ts +3 -0
- package/dist/components/Grid/Grid.js +33 -0
- package/dist/components/Grid/Grid.jsx +25 -0
- package/dist/components/Grid/GridColumn.d.ts +3 -0
- package/dist/components/Grid/GridColumn.js +43 -0
- package/dist/components/Grid/GridColumn.jsx +29 -0
- package/dist/components/Grid/GridRow.d.ts +3 -0
- package/dist/components/Grid/GridRow.js +33 -0
- package/dist/components/Grid/GridRow.jsx +26 -0
- package/dist/components/Icon/Icon.d.ts +20 -0
- package/dist/components/Icon/Icon.js +91 -0
- package/dist/components/Icon/Icon.jsx +88 -0
- package/dist/components/Icon/IconButton.d.ts +17 -0
- package/dist/components/Icon/IconButton.js +49 -0
- package/dist/components/Icon/IconButton.jsx +21 -0
- package/dist/components/Icon/canonicalIconNames.d.ts +10 -0
- package/dist/components/Icon/canonicalIconNames.js +547 -0
- package/dist/components/Icon/canonicalIconNames.jsx +534 -0
- package/dist/components/Iframe/Iframe.d.ts +18 -0
- package/dist/components/Iframe/Iframe.js +92 -0
- package/dist/components/Iframe/Iframe.jsx +79 -0
- package/dist/components/Iframe/IframeModal.d.ts +12 -0
- package/dist/components/Iframe/IframeModal.js +66 -0
- package/dist/components/Iframe/IframeModal.jsx +49 -0
- package/dist/components/Label/Label.d.ts +3 -0
- package/dist/components/Label/Label.js +58 -0
- package/dist/components/Label/Label.jsx +32 -0
- package/dist/components/Link/Link.d.ts +3 -0
- package/dist/components/Link/Link.js +36 -0
- package/dist/components/Link/Link.jsx +22 -0
- package/dist/components/List/List.d.ts +17 -0
- package/dist/components/List/List.js +50 -0
- package/dist/components/List/List.jsx +44 -0
- package/dist/components/Menu/Menu.d.ts +3 -0
- package/dist/components/Menu/Menu.js +29 -0
- package/dist/components/Menu/Menu.jsx +19 -0
- package/dist/components/Menu/MenuDivider.d.ts +3 -0
- package/dist/components/Menu/MenuDivider.js +29 -0
- package/dist/components/Menu/MenuDivider.jsx +19 -0
- package/dist/components/Menu/MenuItem.d.ts +13 -0
- package/dist/components/Menu/MenuItem.js +45 -0
- package/dist/components/Menu/MenuItem.jsx +27 -0
- package/dist/components/Notification/Notification.d.ts +3 -0
- package/dist/components/Notification/Notification.js +79 -0
- package/dist/components/Notification/Notification.jsx +48 -0
- package/dist/components/Notification/Toast.d.ts +3 -0
- package/dist/components/Notification/Toast.js +31 -0
- package/dist/components/Notification/Toast.jsx +21 -0
- package/dist/components/NumericInput/NumericInput.d.ts +4 -0
- package/dist/components/NumericInput/NumericInput.js +14 -0
- package/dist/components/NumericInput/NumericInput.jsx +3 -0
- package/dist/components/OverviewItem/OverviewItem.d.ts +17 -0
- package/dist/components/OverviewItem/OverviewItem.js +45 -0
- package/dist/components/OverviewItem/OverviewItem.jsx +37 -0
- package/dist/components/OverviewItem/OverviewItemActions.d.ts +13 -0
- package/dist/components/OverviewItem/OverviewItemActions.js +32 -0
- package/dist/components/OverviewItem/OverviewItemActions.jsx +26 -0
- package/dist/components/OverviewItem/OverviewItemDepiction.d.ts +6 -0
- package/dist/components/OverviewItem/OverviewItemDepiction.js +28 -0
- package/dist/components/OverviewItem/OverviewItemDepiction.jsx +22 -0
- package/dist/components/OverviewItem/OverviewItemDescription.d.ts +3 -0
- package/dist/components/OverviewItem/OverviewItemDescription.js +27 -0
- package/dist/components/OverviewItem/OverviewItemDescription.jsx +20 -0
- package/dist/components/OverviewItem/OverviewItemLine.d.ts +19 -0
- package/dist/components/OverviewItem/OverviewItemLine.js +35 -0
- package/dist/components/OverviewItem/OverviewItemLine.jsx +29 -0
- package/dist/components/OverviewItem/OverviewItemList.d.ts +26 -0
- package/dist/components/OverviewItem/OverviewItemList.js +38 -0
- package/dist/components/OverviewItem/OverviewItemList.jsx +31 -0
- package/dist/components/OverviewItem/index.d.ts +7 -0
- package/dist/components/OverviewItem/index.js +55 -0
- package/dist/components/OverviewItem/index.jsx +7 -0
- package/dist/components/Pagination/Pagination.d.ts +17 -0
- package/dist/components/Pagination/Pagination.js +80 -0
- package/dist/components/Pagination/Pagination.jsx +81 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.js +12 -0
- package/dist/components/ProgressBar/ProgressBar.jsx +3 -0
- package/dist/components/PropertyValuePair/PropertyName.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyName.js +32 -0
- package/dist/components/PropertyValuePair/PropertyName.jsx +21 -0
- package/dist/components/PropertyValuePair/PropertyValue.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyValue.js +27 -0
- package/dist/components/PropertyValuePair/PropertyValue.jsx +20 -0
- package/dist/components/PropertyValuePair/PropertyValueList.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyValueList.js +27 -0
- package/dist/components/PropertyValuePair/PropertyValueList.jsx +20 -0
- package/dist/components/PropertyValuePair/PropertyValuePair.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyValuePair.js +29 -0
- package/dist/components/PropertyValuePair/PropertyValuePair.jsx +23 -0
- package/dist/components/PropertyValuePair/index.d.ts +5 -0
- package/dist/components/PropertyValuePair/index.js +39 -0
- package/dist/components/PropertyValuePair/index.jsx +5 -0
- package/dist/components/RadioButton/RadioButton.d.ts +3 -0
- package/dist/components/RadioButton/RadioButton.js +30 -0
- package/dist/components/RadioButton/RadioButton.jsx +22 -0
- package/dist/components/Separation/Divider.d.ts +3 -0
- package/dist/components/Separation/Divider.js +23 -0
- package/dist/components/Separation/Divider.jsx +7 -0
- package/dist/components/Separation/Spacing.d.ts +9 -0
- package/dist/components/Separation/Spacing.js +27 -0
- package/dist/components/Separation/Spacing.jsx +11 -0
- package/dist/components/SimpleTable/TableContainer.d.ts +3 -0
- package/dist/components/SimpleTable/TableContainer.js +37 -0
- package/dist/components/SimpleTable/TableContainer.jsx +27 -0
- package/dist/components/SimpleTable/index.d.ts +3 -0
- package/dist/components/SimpleTable/index.js +53 -0
- package/dist/components/SimpleTable/index.jsx +3 -0
- package/dist/components/Spinner/Spinner.d.ts +19 -0
- package/dist/components/Spinner/Spinner.js +98 -0
- package/dist/components/Spinner/Spinner.jsx +83 -0
- package/dist/components/Structure/Section.d.ts +3 -0
- package/dist/components/Structure/Section.js +27 -0
- package/dist/components/Structure/Section.jsx +20 -0
- package/dist/components/Structure/SectionHeader.d.ts +3 -0
- package/dist/components/Structure/SectionHeader.js +27 -0
- package/dist/components/Structure/SectionHeader.jsx +20 -0
- package/dist/components/Structure/TitleMainsection.d.ts +3 -0
- package/dist/components/Structure/TitleMainsection.js +35 -0
- package/dist/components/Structure/TitleMainsection.jsx +26 -0
- package/dist/components/Structure/TitlePage.d.ts +3 -0
- package/dist/components/Structure/TitlePage.js +35 -0
- package/dist/components/Structure/TitlePage.jsx +26 -0
- package/dist/components/Structure/TitleSubsection.d.ts +3 -0
- package/dist/components/Structure/TitleSubsection.js +32 -0
- package/dist/components/Structure/TitleSubsection.jsx +23 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.js +39 -0
- package/dist/components/Switch/Switch.jsx +22 -0
- package/dist/components/Tabs/Tabs.d.ts +24 -0
- package/dist/components/Tabs/Tabs.js +95 -0
- package/dist/components/Tabs/Tabs.jsx +49 -0
- package/dist/components/Tag/Tag.d.ts +27 -0
- package/dist/components/Tag/Tag.js +50 -0
- package/dist/components/Tag/Tag.jsx +46 -0
- package/dist/components/Tag/TagList.d.ts +3 -0
- package/dist/components/Tag/TagList.js +44 -0
- package/dist/components/Tag/TagList.jsx +38 -0
- package/dist/components/TextField/SearchField.d.ts +23 -0
- package/dist/components/TextField/SearchField.js +54 -0
- package/dist/components/TextField/SearchField.jsx +27 -0
- package/dist/components/TextField/TextArea.d.ts +22 -0
- package/dist/components/TextField/TextArea.js +60 -0
- package/dist/components/TextField/TextArea.jsx +36 -0
- package/dist/components/TextField/TextField.d.ts +34 -0
- package/dist/components/TextField/TextField.js +73 -0
- package/dist/components/TextField/TextField.jsx +40 -0
- package/dist/components/Toolbar/Toolbar.d.ts +18 -0
- package/dist/components/Toolbar/Toolbar.js +32 -0
- package/dist/components/Toolbar/Toolbar.jsx +26 -0
- package/dist/components/Toolbar/ToolbarSection.d.ts +22 -0
- package/dist/components/Toolbar/ToolbarSection.js +34 -0
- package/dist/components/Toolbar/ToolbarSection.jsx +28 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +40 -0
- package/dist/components/Tooltip/Tooltip.jsx +25 -0
- package/dist/components/Typography/Highlighter.d.ts +18 -0
- package/dist/components/Typography/Highlighter.js +89 -0
- package/dist/components/Typography/Highlighter.jsx +58 -0
- package/dist/components/Typography/HtmlContentBlock.d.ts +6 -0
- package/dist/components/Typography/HtmlContentBlock.js +38 -0
- package/dist/components/Typography/HtmlContentBlock.jsx +31 -0
- package/dist/components/Typography/OverflowText.d.ts +12 -0
- package/dist/components/Typography/OverflowText.js +34 -0
- package/dist/components/Typography/OverflowText.jsx +31 -0
- package/dist/components/Typography/WhiteSpaceContainer.d.ts +5 -0
- package/dist/components/Typography/WhiteSpaceContainer.js +38 -0
- package/dist/components/Typography/WhiteSpaceContainer.jsx +34 -0
- package/dist/components/Typography/classnames.d.ts +7 -0
- package/dist/components/Typography/classnames.js +24 -0
- package/dist/components/Workspace/WorkspaceContent.d.ts +3 -0
- package/dist/components/Workspace/WorkspaceContent.js +34 -0
- package/dist/components/Workspace/WorkspaceContent.jsx +25 -0
- package/dist/components/Workspace/WorkspaceHeader.d.ts +10 -0
- package/dist/components/Workspace/WorkspaceHeader.js +27 -0
- package/dist/components/Workspace/WorkspaceHeader.jsx +20 -0
- package/dist/components/Workspace/WorkspaceMain.d.ts +3 -0
- package/dist/components/Workspace/WorkspaceMain.js +30 -0
- package/dist/components/Workspace/WorkspaceMain.jsx +22 -0
- package/dist/components/Workspace/WorkspaceSide.d.ts +3 -0
- package/dist/components/Workspace/WorkspaceSide.js +34 -0
- package/dist/components/Workspace/WorkspaceSide.jsx +22 -0
- package/dist/components/interfaces.d.ts +3 -0
- package/dist/components/interfaces.js +1 -0
- package/dist/configuration/constants.d.ts +1 -0
- package/dist/configuration/constants.js +9 -0
- package/dist/extensions/react-flow/edges/EdgeDefault.d.ts +10 -0
- package/dist/extensions/react-flow/edges/EdgeDefault.js +62 -0
- package/dist/extensions/react-flow/edges/EdgeDefault.jsx +45 -0
- package/dist/extensions/react-flow/edges/EdgeStep.d.ts +9 -0
- package/dist/extensions/react-flow/edges/EdgeStep.js +27 -0
- package/dist/extensions/react-flow/edges/EdgeStep.jsx +6 -0
- package/dist/extensions/react-flow/edges/EdgeTools.d.ts +12 -0
- package/dist/extensions/react-flow/edges/EdgeTools.js +48 -0
- package/dist/extensions/react-flow/edges/EdgeTools.jsx +32 -0
- package/dist/extensions/react-flow/edges/edgeTypes.d.ts +15 -0
- package/dist/extensions/react-flow/edges/edgeTypes.js +32 -0
- package/dist/extensions/react-flow/edges/utils.d.ts +4 -0
- package/dist/extensions/react-flow/edges/utils.js +41 -0
- package/dist/extensions/react-flow/handles/HandleContent.d.ts +6 -0
- package/dist/extensions/react-flow/handles/HandleContent.js +40 -0
- package/dist/extensions/react-flow/handles/HandleContent.jsx +15 -0
- package/dist/extensions/react-flow/handles/HandleDefault.d.ts +9 -0
- package/dist/extensions/react-flow/handles/HandleDefault.js +33 -0
- package/dist/extensions/react-flow/handles/HandleDefault.jsx +23 -0
- package/dist/extensions/react-flow/index.d.ts +14 -0
- package/dist/extensions/react-flow/index.js +83 -0
- package/dist/extensions/react-flow/minimap/MiniMap.d.ts +8 -0
- package/dist/extensions/react-flow/minimap/MiniMap.js +111 -0
- package/dist/extensions/react-flow/minimap/MiniMap.jsx +83 -0
- package/dist/extensions/react-flow/minimap/utils.d.ts +2 -0
- package/dist/extensions/react-flow/minimap/utils.js +29 -0
- package/dist/extensions/react-flow/nodes/NodeContentExtension.js +56 -0
- package/dist/extensions/react-flow/nodes/NodeDefault.d.ts +133 -0
- package/dist/extensions/react-flow/nodes/NodeDefault.js +223 -0
- package/dist/extensions/react-flow/nodes/NodeDefault.jsx +175 -0
- package/dist/extensions/react-flow/nodes/NodeTools.d.ts +9 -0
- package/dist/extensions/react-flow/nodes/NodeTools.js +58 -0
- package/dist/extensions/react-flow/nodes/NodeTools.jsx +46 -0
- package/dist/extensions/react-flow/nodes/nodeTypes.d.ts +13 -0
- package/dist/extensions/react-flow/nodes/nodeTypes.js +22 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +876 -0
- package/dist/legacy-replacements/Button/AffirmativeButton.js +23 -0
- package/dist/legacy-replacements/Button/Button.js +91 -0
- package/dist/legacy-replacements/Button/DismissiveButton.js +23 -0
- package/dist/legacy-replacements/Button/DisruptiveButton.js +23 -0
- package/dist/legacy-replacements/Checkbox/Checkbox.js +66 -0
- package/dist/legacy-replacements/Radio/RadioButton.js +48 -0
- package/dist/legacy-replacements/TextField/TextField.js +96 -0
- package/package.json +151 -70
- package/src/_shame.scss +111 -0
- package/src/cmem/ActivityControl/ActivityControlTypes.ts +28 -0
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +165 -0
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +55 -0
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +303 -0
- package/src/cmem/ActivityControl/activitycontrol.scss +27 -0
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +95 -0
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +76 -0
- package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +69 -0
- package/src/cmem/DateTimeDisplay/tests/ElapsedDateTimeDisplay.test.tsx +29 -0
- package/src/cmem/_index.scss +2 -0
- package/src/cmem/index.ts +35 -0
- package/src/cmem/markdown/Markdown.tsx +89 -0
- package/src/cmem/markdown/highlightSearchWords.test.ts +36 -0
- package/src/cmem/markdown/highlightSearchWords.ts +67 -0
- package/src/cmem/markdown/markdown.scss +32 -0
- package/src/common/Intent/index.ts +23 -0
- package/src/common/utils/openInNewTab.ts +17 -0
- package/src/components/Accordion/Accordion.tsx +13 -0
- package/src/components/Accordion/AccordionItem.tsx +73 -0
- package/src/components/Accordion/accordion.scss +96 -0
- package/src/components/Application/ApplicationContainer.tsx +21 -0
- package/src/components/Application/ApplicationContent.tsx +57 -0
- package/src/components/Application/ApplicationHeader.tsx +14 -0
- package/src/components/Application/ApplicationSidebarNavigation.tsx +39 -0
- package/src/components/Application/ApplicationSidebarToggler.tsx +15 -0
- package/src/components/Application/ApplicationTitle.tsx +95 -0
- package/src/components/Application/ApplicationToolbar.tsx +17 -0
- package/src/components/Application/ApplicationToolbarAction.tsx +17 -0
- package/src/components/Application/ApplicationToolbarPanel.tsx +17 -0
- package/src/components/Application/ApplicationToolbarSection.tsx +15 -0
- package/src/components/Application/_config.scss +40 -0
- package/src/components/Application/_content.scss +27 -0
- package/src/components/Application/_header.scss +237 -0
- package/src/components/Application/_sidebar.scss +37 -0
- package/src/components/Application/_toolbar.scss +75 -0
- package/src/components/Application/application.scss +9 -0
- package/src/components/AutocompleteField/AutoCompleteField.tsx +399 -0
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +32 -0
- package/src/components/AutocompleteField/autocompletefield.scss +6 -0
- package/src/components/Breadcrumb/BreadcrumbItem.tsx +46 -0
- package/src/components/Breadcrumb/BreadcrumbList.tsx +81 -0
- package/src/components/Breadcrumb/breadcrumb.scss +47 -0
- package/src/components/Button/Button.stories.tsx +199 -0
- package/src/components/Button/Button.test.tsx +37 -0
- package/src/components/Button/Button.tsx +127 -0
- package/src/components/Button/button.scss +55 -0
- package/src/components/Card/Card.tsx +58 -0
- package/src/components/Card/CardActions.tsx +36 -0
- package/src/components/Card/CardActionsAux.tsx +29 -0
- package/src/components/Card/CardContent.tsx +26 -0
- package/src/components/Card/CardHeader.tsx +44 -0
- package/src/components/Card/CardOptions.tsx +32 -0
- package/src/components/Card/CardTitle.tsx +32 -0
- package/src/components/Card/card.scss +138 -0
- package/src/components/Card/index.tsx +17 -0
- package/src/components/Card/stories/Card.stories.tsx +82 -0
- package/src/components/Card/stories/CardActions.stories.tsx +41 -0
- package/src/components/Card/stories/CardContent.stories.tsx +28 -0
- package/src/components/Card/stories/CardHeader.stories.tsx +38 -0
- package/src/components/Card/stories/CardOptions.stories.tsx +27 -0
- package/src/components/Card/stories/CardTitle.stories.tsx +27 -0
- package/src/components/Checkbox/Checkbox.tsx +20 -0
- package/src/components/Checkbox/checkbox.scss +61 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +36 -0
- package/src/components/ContextOverlay/ContextOverlay.tsx +29 -0
- package/src/components/ContextOverlay/contextoverlay.scss +15 -0
- package/src/components/Dialog/AlertDialog.tsx +52 -0
- package/src/components/Dialog/Modal.tsx +86 -0
- package/src/components/Dialog/SimpleDialog.tsx +113 -0
- package/src/components/Dialog/dialog.scss +75 -0
- package/src/components/Dialog/stories/AlertDialog.stories.tsx +42 -0
- package/src/components/Dialog/stories/Modal.stories.tsx +88 -0
- package/src/components/Dialog/stories/SimpleDialog.stories.tsx +39 -0
- package/src/components/Form/FieldItem.tsx +95 -0
- package/src/components/Form/FieldItemRow.tsx +14 -0
- package/src/components/Form/FieldSet.tsx +71 -0
- package/src/components/Form/form.scss +159 -0
- package/src/components/Grid/Grid.tsx +29 -0
- package/src/components/Grid/GridColumn.tsx +33 -0
- package/src/components/Grid/GridRow.tsx +30 -0
- package/src/components/Grid/grid.scss +89 -0
- package/src/components/Icon/Icon.tsx +96 -0
- package/src/components/Icon/IconButton.tsx +59 -0
- package/src/components/Icon/canonicalIconNames.json +120 -0
- package/src/components/Icon/canonicalIconNames.tsx +661 -0
- package/src/components/Icon/icon.scss +40 -0
- package/src/components/Iframe/Iframe.tsx +89 -0
- package/src/components/Iframe/IframeModal.tsx +77 -0
- package/src/components/Iframe/iframe.scss +49 -0
- package/src/components/Label/Label.tsx +43 -0
- package/src/components/Label/label.scss +75 -0
- package/src/components/Link/Link.tsx +19 -0
- package/src/components/Link/link.scss +6 -0
- package/src/components/List/List.tsx +46 -0
- package/src/components/Menu/Menu.tsx +9 -0
- package/src/components/Menu/MenuDivider.tsx +9 -0
- package/src/components/Menu/MenuItem.tsx +46 -0
- package/src/components/Menu/menu.scss +79 -0
- package/src/components/Notification/Notification.tsx +69 -0
- package/src/components/Notification/Toast.tsx +17 -0
- package/src/components/Notification/notification.scss +83 -0
- package/src/components/NumericInput/NumericInput.tsx +4 -0
- package/src/components/OverviewItem/OverviewItem.tsx +61 -0
- package/src/components/OverviewItem/OverviewItemActions.tsx +35 -0
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +29 -0
- package/src/components/OverviewItem/OverviewItemDescription.tsx +16 -0
- package/src/components/OverviewItem/OverviewItemLine.tsx +43 -0
- package/src/components/OverviewItem/OverviewItemList.tsx +58 -0
- package/src/components/OverviewItem/index.tsx +15 -0
- package/src/components/OverviewItem/overviewitem.scss +193 -0
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +56 -0
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +31 -0
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +26 -0
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +32 -0
- package/src/components/OverviewItem/stories/OverviewItemLine.stories.tsx +25 -0
- package/src/components/OverviewItem/stories/OverviewItemList.stories.tsx +41 -0
- package/src/components/Pagination/Pagination.tsx +80 -0
- package/src/components/Pagination/pagination.scss +47 -0
- package/src/components/ProgressBar/ProgressBar.tsx +8 -0
- package/src/components/PropertyValuePair/PropertyName.tsx +13 -0
- package/src/components/PropertyValuePair/PropertyValue.tsx +12 -0
- package/src/components/PropertyValuePair/PropertyValueList.tsx +12 -0
- package/src/components/PropertyValuePair/PropertyValuePair.tsx +20 -0
- package/src/components/PropertyValuePair/index.tsx +6 -0
- package/src/components/PropertyValuePair/propertyvalue.scss +56 -0
- package/src/components/RadioButton/RadioButton.tsx +20 -0
- package/src/components/RadioButton/radiobutton.scss +29 -0
- package/src/components/Separation/Divider.tsx +8 -0
- package/src/components/Separation/Spacing.tsx +25 -0
- package/src/components/Separation/separation.scss +77 -0
- package/src/components/SimpleTable/TableContainer.tsx +20 -0
- package/src/components/SimpleTable/index.tsx +4 -0
- package/src/components/SimpleTable/simpletable.scss +121 -0
- package/src/components/Spinner/Spinner.tsx +113 -0
- package/src/components/Spinner/spinner.scss +85 -0
- package/src/components/Structure/Section.tsx +15 -0
- package/src/components/Structure/SectionHeader.tsx +15 -0
- package/src/components/Structure/TitleMainsection.tsx +29 -0
- package/src/components/Structure/TitlePage.tsx +29 -0
- package/src/components/Structure/TitleSubsection.tsx +16 -0
- package/src/components/Structure/_titles.scss +56 -0
- package/src/components/Switch/Switch.tsx +17 -0
- package/src/components/Switch/switch.scss +4 -0
- package/src/components/Tabs/Tabs.tsx +121 -0
- package/src/components/Tabs/tabs.scss +65 -0
- package/src/components/Tag/Tag.stories.tsx +41 -0
- package/src/components/Tag/Tag.tsx +84 -0
- package/src/components/Tag/TagList.tsx +51 -0
- package/src/components/Tag/tag.scss +132 -0
- package/src/components/TagInput/taginput.scss +1 -0
- package/src/components/TextField/SearchField.tsx +71 -0
- package/src/components/TextField/TextArea.tsx +66 -0
- package/src/components/TextField/TextField.tsx +96 -0
- package/src/components/TextField/stories/SearchField.stories.tsx +40 -0
- package/src/components/TextField/stories/TextArea.stories.tsx +39 -0
- package/src/components/TextField/stories/TextField.stories.tsx +99 -0
- package/src/components/TextField/textfield.scss +63 -0
- package/src/components/Toolbar/Toolbar.stories.tsx +41 -0
- package/src/components/Toolbar/Toolbar.tsx +42 -0
- package/src/components/Toolbar/ToolbarSection.tsx +48 -0
- package/src/components/Toolbar/toolbar.scss +52 -0
- package/src/components/Tooltip/Tooltip.tsx +53 -0
- package/src/components/Tooltip/tooltip.scss +37 -0
- package/src/components/Typography/Highlighter.tsx +70 -0
- package/src/components/Typography/HtmlContentBlock.tsx +30 -0
- package/src/components/Typography/OverflowText.tsx +46 -0
- package/src/components/Typography/WhiteSpaceContainer.tsx +41 -0
- package/src/components/Typography/_reset.scss +36 -0
- package/src/components/Typography/classnames.ts +10 -0
- package/src/components/Typography/typography.scss +282 -0
- package/src/components/Workspace/WorkspaceContent.tsx +22 -0
- package/src/components/Workspace/WorkspaceHeader.tsx +20 -0
- package/src/components/Workspace/WorkspaceMain.tsx +14 -0
- package/src/components/Workspace/WorkspaceSide.tsx +18 -0
- package/src/components/Workspace/_header.scss +9 -0
- package/src/components/Workspace/workspace.scss +1 -0
- package/src/components/interfaces.ts +3 -0
- package/src/configuration/_variables.scss +130 -0
- package/src/configuration/constants.ts +2 -0
- package/src/extensions/_index.scss +1 -0
- package/src/extensions/react-flow/_config.scss +16 -0
- package/src/extensions/react-flow/_react-flow.scss +5 -0
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +77 -0
- package/src/extensions/react-flow/edges/EdgeStep.tsx +19 -0
- package/src/extensions/react-flow/edges/EdgeTools.tsx +39 -0
- package/src/extensions/react-flow/edges/_edges.scss +181 -0
- package/src/extensions/react-flow/edges/edgeTypes.ts +24 -0
- package/src/extensions/react-flow/edges/utils.ts +32 -0
- package/src/extensions/react-flow/handles/HandleContent.tsx +39 -0
- package/src/extensions/react-flow/handles/HandleDefault.tsx +29 -0
- package/src/extensions/react-flow/handles/_handles.scss +208 -0
- package/src/extensions/react-flow/index.ts +15 -0
- package/src/extensions/react-flow/minimap/MiniMap.tsx +110 -0
- package/src/extensions/react-flow/minimap/_minimap.scss +79 -0
- package/src/extensions/react-flow/minimap/utils.ts +13 -0
- package/src/extensions/react-flow/nodes/NodeContent.stories.tsx +83 -0
- package/src/extensions/react-flow/nodes/NodeContentExtension.stories.tsx +36 -0
- package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +87 -0
- package/src/extensions/react-flow/nodes/NodeDefault.stories.tsx +138 -0
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +376 -0
- package/src/extensions/react-flow/nodes/NodeTools.tsx +48 -0
- package/src/extensions/react-flow/nodes/_nodes.scss +490 -0
- package/src/extensions/react-flow/nodes/nodeTypes.ts +14 -0
- package/src/includes/blueprintjs/_variables.scss +195 -0
- package/src/includes/carbon-components/_variables.scss +107 -0
- package/src/index.scss +190 -0
- package/src/index.ts +238 -0
- package/src/legacy-replacements/Button/AffirmativeButton.tsx +16 -0
- package/src/legacy-replacements/Button/Button.tsx +73 -0
- package/src/legacy-replacements/Button/DismissiveButton.tsx +16 -0
- package/src/legacy-replacements/Button/DisruptiveButton.tsx +16 -0
- package/src/legacy-replacements/Checkbox/Checkbox.tsx +54 -0
- package/src/legacy-replacements/Radio/RadioButton.tsx +38 -0
- package/src/legacy-replacements/TextField/TextField.tsx +90 -0
- package/src/test/setupTests.js +2 -0
- package/.cached-fonts +0 -1
- package/Ruleset.md +0 -93
- package/additionalLicenses.yml +0 -21
- package/buildConfig.js +0 -25
- package/dist/fonts/iconfont/MaterialIcons-Regular.woff +0 -0
- package/dist/fonts/iconfont/MaterialIcons-Regular.woff2 +0 -0
- package/dist/fonts/iconfont/codepoints +0 -932
- package/dist/fonts/roboto/Black/Roboto-Black.woff +0 -0
- package/dist/fonts/roboto/Black/Roboto-Black.woff2 +0 -0
- package/dist/fonts/roboto/BlackItalic/Roboto-BlackItalic.woff +0 -0
- package/dist/fonts/roboto/BlackItalic/Roboto-BlackItalic.woff2 +0 -0
- package/dist/fonts/roboto/Bold/Roboto-Bold.woff +0 -0
- package/dist/fonts/roboto/Bold/Roboto-Bold.woff2 +0 -0
- package/dist/fonts/roboto/BoldItalic/Roboto-BoldItalic.woff +0 -0
- package/dist/fonts/roboto/BoldItalic/Roboto-BoldItalic.woff2 +0 -0
- package/dist/fonts/roboto/Italic/Roboto-Italic.woff +0 -0
- package/dist/fonts/roboto/Italic/Roboto-Italic.woff2 +0 -0
- package/dist/fonts/roboto/Light/Roboto-Light.woff +0 -0
- package/dist/fonts/roboto/Light/Roboto-Light.woff2 +0 -0
- package/dist/fonts/roboto/LightItalic/Roboto-LightItalic.woff +0 -0
- package/dist/fonts/roboto/LightItalic/Roboto-LightItalic.woff2 +0 -0
- package/dist/fonts/roboto/Medium/Roboto-Medium.woff +0 -0
- package/dist/fonts/roboto/Medium/Roboto-Medium.woff2 +0 -0
- package/dist/fonts/roboto/MediumItalic/Roboto-MediumItalic.woff +0 -0
- package/dist/fonts/roboto/MediumItalic/Roboto-MediumItalic.woff2 +0 -0
- package/dist/fonts/roboto/Regular/Roboto-Regular.woff +0 -0
- package/dist/fonts/roboto/Regular/Roboto-Regular.woff2 +0 -0
- package/dist/fonts/roboto/Thin/Roboto-Thin.woff +0 -0
- package/dist/fonts/roboto/Thin/Roboto-Thin.woff2 +0 -0
- package/dist/fonts/roboto/ThinItalic/Roboto-ThinItalic.woff +0 -0
- package/dist/fonts/roboto/ThinItalic/Roboto-ThinItalic.woff2 +0 -0
- package/docs/README.md +0 -953
- package/docs/docTemplate.md +0 -140
- package/es5/component.js +0 -6686
- package/index.js +0 -136
- package/jest.config.js +0 -42
- package/src/_configuration.default.scss +0 -97
- package/src/_configuration.mdl.scss +0 -518
- package/src/elements/Alert/Alert.jsx +0 -141
- package/src/elements/Alert/Error.jsx +0 -22
- package/src/elements/Alert/Info.jsx +0 -21
- package/src/elements/Alert/Success.jsx +0 -20
- package/src/elements/Alert/Warning.jsx +0 -19
- package/src/elements/Alert/_alert.scss +0 -93
- package/src/elements/Alert/index.js +0 -13
- package/src/elements/AutoCompleteBox/AutoCompleteBox.jsx +0 -149
- package/src/elements/AutoCompleteBox/_autocomplete.scss +0 -33
- package/src/elements/Breadcrumbs/BreadcrumbItem.jsx +0 -34
- package/src/elements/Breadcrumbs/BreadcrumbList.jsx +0 -56
- package/src/elements/Breadcrumbs/_breadcrumbs.scss +0 -47
- package/src/elements/Breadcrumbs/index.js +0 -7
- package/src/elements/Button/AffirmativeButton.jsx +0 -73
- package/src/elements/Button/Button.jsx +0 -216
- package/src/elements/Button/DismissiveButton.jsx +0 -77
- package/src/elements/Button/DisruptiveButton.jsx +0 -74
- package/src/elements/Button/ProgressButton.jsx +0 -95
- package/src/elements/Button/_button.scss +0 -61
- package/src/elements/Button/index.js +0 -13
- package/src/elements/Card/Card.jsx +0 -61
- package/src/elements/Card/CardActions.jsx +0 -37
- package/src/elements/Card/CardTitle.jsx +0 -78
- package/src/elements/Card/FloatingActionList.jsx +0 -260
- package/src/elements/Card/_card.scss +0 -179
- package/src/elements/Card/index.js +0 -18
- package/src/elements/Checkbox/Checkbox.jsx +0 -113
- package/src/elements/Checkbox/_checkbox.scss +0 -14
- package/src/elements/Chip/Chip.jsx +0 -141
- package/src/elements/Chip/ChipVisual.jsx +0 -88
- package/src/elements/Chip/_chip.scss +0 -82
- package/src/elements/Chip/index.js +0 -7
- package/src/elements/ContextMenu/ContextMenu.jsx +0 -101
- package/src/elements/ContextMenu/_contextmenu.scss +0 -23
- package/src/elements/DateField/DateField.jsx +0 -178
- package/src/elements/DateField/DateTimefield.jsx +0 -20
- package/src/elements/DateField/_datefield.scss +0 -116
- package/src/elements/DateField/index.js +0 -7
- package/src/elements/Dialog/BaseDialog.jsx +0 -161
- package/src/elements/Dialog/ConfirmationDialog.jsx +0 -48
- package/src/elements/Dialog/_dialog.scss +0 -58
- package/src/elements/Dialog/index.js +0 -7
- package/src/elements/Footer/Footer.jsx +0 -171
- package/src/elements/Footer/_footer.scss +0 -17
- package/src/elements/Grid/_grid.scss +0 -18
- package/src/elements/Icon/Icon.jsx +0 -97
- package/src/elements/Icon/canonicalicons.json +0 -32
- package/src/elements/Icon/canonicaltooltips.json +0 -32
- package/src/elements/Icon/icontable.json +0 -934
- package/src/elements/Layout/_layout.scss +0 -82
- package/src/elements/NotAvailable/NotAvailable.jsx +0 -87
- package/src/elements/NotAvailable/_notavailable.scss +0 -18
- package/src/elements/Pagination/Pagination.jsx +0 -431
- package/src/elements/Pagination/_pagination.scss +0 -98
- package/src/elements/Progressbar/Progressbar.jsx +0 -34
- package/src/elements/Progressbar/_progressbar.scss +0 -22
- package/src/elements/Radio/RadioButton.jsx +0 -129
- package/src/elements/Radio/RadioGroup.jsx +0 -35
- package/src/elements/Radio/_radio.scss +0 -46
- package/src/elements/Radio/index.js +0 -7
- package/src/elements/SelectBox/SelectBox.jsx +0 -321
- package/src/elements/SelectBox/_selectbox.scss +0 -144
- package/src/elements/Spinner/Spinner.jsx +0 -44
- package/src/elements/Spinner/_spinner.scss +0 -20
- package/src/elements/Switch/Switch.jsx +0 -38
- package/src/elements/Table/Table.jsx +0 -100
- package/src/elements/Table/TableBody.jsx +0 -66
- package/src/elements/Table/TableCell.jsx +0 -94
- package/src/elements/Table/TableHead.jsx +0 -66
- package/src/elements/Table/TableRow.jsx +0 -78
- package/src/elements/Table/_datatable.scss +0 -78
- package/src/elements/Table/_table.scss +0 -143
- package/src/elements/Tabs/Tabs.jsx +0 -116
- package/src/elements/TextField/TextField.jsx +0 -172
- package/src/elements/TextField/_textfield.scss +0 -80
- package/src/elements/Tooltip/Tooltip.jsx +0 -3
- package/src/elements/Tooltip/_tooltip.scss +0 -21
- package/src/elements/Version/Version.jsx +0 -19
- package/src/hocs/ScrollingHOC.js +0 -122
- package/src/main.scss +0 -83
- package/src/scss/_adjustments.scss +0 -16
- package/src/scss/_helpers.scss +0 -29
- package/src/scss/_iconfont.scss +0 -35
- package/src/scss/_patches.scss +0 -19
- package/src/scss/_roboto.scss +0 -30
- package/src/scss/main.build-css.scss +0 -4
- package/src/utils/classnameSeperator.js +0 -10
- package/src/utils/extendedOnChangeBoolean.jsx +0 -14
- package/src/utils/uniqueId.jsx +0 -36
- package/style/test.scss +0 -30
package/src/_shame.scss
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Add stuff to test fast and dirty.
|
|
2
|
+
// This file should not contain any styles because we do not work dirty!
|
|
3
|
+
|
|
4
|
+
.#{$ns}-portal {
|
|
5
|
+
z-index: 8001; // higher than carbon ui shell header
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html {
|
|
9
|
+
// TODO: move to application or workspace element
|
|
10
|
+
background-color: $eccgui-color-workspace-background;
|
|
11
|
+
color: $eccgui-color-workspace-text;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.#{$prefix}--assistive-text,
|
|
15
|
+
.#{$prefix}--visually-hidden {
|
|
16
|
+
/*
|
|
17
|
+
TODO: move to better place, originally from ~carbon-components/scss/globals/scss/css--helpers
|
|
18
|
+
but we cannot use it directly because of other included rules there.
|
|
19
|
+
*/
|
|
20
|
+
position: absolute;
|
|
21
|
+
width: 1px;
|
|
22
|
+
height: 1px;
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin: -1px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
clip: rect(0, 0, 0, 0);
|
|
27
|
+
border: 0;
|
|
28
|
+
visibility: inherit;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.uppy-DragDrop-container {
|
|
33
|
+
// TODO: create own file upload elements
|
|
34
|
+
|
|
35
|
+
border-width: 1px;
|
|
36
|
+
//border-style: dotted;
|
|
37
|
+
border-radius: 3px;
|
|
38
|
+
|
|
39
|
+
color: inherit;
|
|
40
|
+
background-color: $data-table-zebra-color;
|
|
41
|
+
|
|
42
|
+
.uppy-DragDrop-inner {
|
|
43
|
+
line-height: inherit;
|
|
44
|
+
padding: 1rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.uppy-DragDrop-arrow {
|
|
48
|
+
height: 2rem;
|
|
49
|
+
width: 2rem;
|
|
50
|
+
margin-bottom: 0.5rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.uppy-DragDrop-label {
|
|
54
|
+
font-size: inherit;
|
|
55
|
+
margin-bottom: 0.5rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
TODO: create own auto complete input in new hui elements
|
|
61
|
+
*/
|
|
62
|
+
.app_di-autocomplete__options {
|
|
63
|
+
max-width: 90vw;
|
|
64
|
+
min-width: 40rem;
|
|
65
|
+
max-height: 60vh;
|
|
66
|
+
overflow: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
WORKAROUND: markdown footnotes rendered without (empty) local anchors
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
.#{$eccgui}-typography__contentblock {
|
|
74
|
+
a[href=""] {
|
|
75
|
+
font-size: $eccgui-size-typo-caption;
|
|
76
|
+
line-height: $eccgui-size-typo-caption-lineheight;
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
cursor: text;
|
|
79
|
+
color: currentColor;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
vertical-align: super;
|
|
82
|
+
|
|
83
|
+
&:before {
|
|
84
|
+
content: "[";
|
|
85
|
+
}
|
|
86
|
+
&:after {
|
|
87
|
+
content: "]";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
WORKAROUND: thinner scrollbars
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
* {
|
|
97
|
+
scrollbar-width: thin;
|
|
98
|
+
scrollbar-color: #bbb transparent;
|
|
99
|
+
|
|
100
|
+
&::-webkit-scrollbar {
|
|
101
|
+
width: 0.25rem;
|
|
102
|
+
height: 0.25rem;
|
|
103
|
+
background-color: #fefefe;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&::-webkit-scrollbar-thumb
|
|
107
|
+
{
|
|
108
|
+
border-radius: 0.125rem;
|
|
109
|
+
background-color: #bbb;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface IActivityStatus {
|
|
2
|
+
// Optional project ID
|
|
3
|
+
project?: string;
|
|
4
|
+
// Optional task ID
|
|
5
|
+
task?: string;
|
|
6
|
+
// The activity name
|
|
7
|
+
activity: string;
|
|
8
|
+
// If the activity is currently running
|
|
9
|
+
isRunning: boolean;
|
|
10
|
+
// If the activity has failed
|
|
11
|
+
failed: boolean;
|
|
12
|
+
// The name of the status class
|
|
13
|
+
statusName: "Waiting" | "Finished" | "Idle" | "Running" | "Canceling";
|
|
14
|
+
// A number between 0 and 100
|
|
15
|
+
progress: number;
|
|
16
|
+
// More information corresponding to the status
|
|
17
|
+
message: string;
|
|
18
|
+
// If the activity has been cancelled
|
|
19
|
+
cancelled: boolean;
|
|
20
|
+
// The concrete status ID
|
|
21
|
+
concreteStatus: "Cancelled" | "Failed" | "Successful" | "Not executed" | "Running" | "Waiting" | "Canceling";
|
|
22
|
+
// If there was an error, this contains the exception message
|
|
23
|
+
exceptionMessage?: string | null;
|
|
24
|
+
// The runtime in ms
|
|
25
|
+
runtime?: number;
|
|
26
|
+
// The start time as date time, e.g. "2021-09-07T09:34:53.153Z"
|
|
27
|
+
startTime?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
ContextMenu,
|
|
5
|
+
IconButton,
|
|
6
|
+
MenuItem,
|
|
7
|
+
OverflowText,
|
|
8
|
+
OverviewItem,
|
|
9
|
+
OverviewItemActions,
|
|
10
|
+
OverviewItemDepiction,
|
|
11
|
+
OverviewItemDescription,
|
|
12
|
+
OverviewItemLine,
|
|
13
|
+
ProgressBar,
|
|
14
|
+
Spinner,
|
|
15
|
+
Tooltip,
|
|
16
|
+
} from "../../index";
|
|
17
|
+
import {CLASSPREFIX as eccgui} from "../../configuration/constants";
|
|
18
|
+
import {TestableComponent} from "../../components/interfaces";
|
|
19
|
+
import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar";
|
|
20
|
+
import { SpinnerProps } from "../../components/Spinner/Spinner";
|
|
21
|
+
|
|
22
|
+
export interface IActivityControlProps extends TestableComponent {
|
|
23
|
+
// The label to be shown
|
|
24
|
+
label?: string | JSX.Element
|
|
25
|
+
// The progress bar parameters if it should be show by a progres bar
|
|
26
|
+
progressBar?: ProgressBarProps
|
|
27
|
+
// The spinner parameters if it should be show by a spinner
|
|
28
|
+
progressSpinner?: SpinnerProps
|
|
29
|
+
// Status message
|
|
30
|
+
statusMessage?: string
|
|
31
|
+
// The action buttons
|
|
32
|
+
activityActions?: IActivityAction[]
|
|
33
|
+
// Context menu items
|
|
34
|
+
activityContextMenu?: IActivityContextMenu
|
|
35
|
+
// show small version of the widget
|
|
36
|
+
small?: boolean;
|
|
37
|
+
// display widget inside rectange
|
|
38
|
+
border?: boolean;
|
|
39
|
+
// only use necessary width, not always the available 100% of parent element
|
|
40
|
+
canShrink?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface IActivityContextMenu extends TestableComponent {
|
|
44
|
+
// Tooltip for the context menu
|
|
45
|
+
tooltip?: string
|
|
46
|
+
// The entries of the context menu
|
|
47
|
+
menuItems: IActivityMenuAction[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface IActivityAction extends TestableComponent {
|
|
51
|
+
// The action that should be triggered
|
|
52
|
+
action: () => any
|
|
53
|
+
// The tooltip that should be shown over the action icon
|
|
54
|
+
tooltip?: string
|
|
55
|
+
// The icon of the action button
|
|
56
|
+
icon: string
|
|
57
|
+
// Action is currently disabled (but shown)
|
|
58
|
+
disabled?: boolean
|
|
59
|
+
// Warning state
|
|
60
|
+
hasStateWarning?: boolean
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface IActivityMenuAction extends IActivityAction, TestableComponent {
|
|
64
|
+
// Optional link
|
|
65
|
+
href?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Shows the status of activities and supports actions on these activities. */
|
|
69
|
+
export function ActivityControlWidget(props: IActivityControlProps) {
|
|
70
|
+
const {
|
|
71
|
+
"data-test-id": dataTestId,
|
|
72
|
+
progressBar,
|
|
73
|
+
progressSpinner,
|
|
74
|
+
activityActions,
|
|
75
|
+
activityContextMenu,
|
|
76
|
+
small,
|
|
77
|
+
border,
|
|
78
|
+
canShrink
|
|
79
|
+
} = props
|
|
80
|
+
|
|
81
|
+
const spinnerClassNames = (progressSpinner?.className ?? "") + ` ${eccgui}-spinner--permanent`
|
|
82
|
+
|
|
83
|
+
const widget = (
|
|
84
|
+
<OverviewItem data-test-id={dataTestId} hasSpacing={border} densityHigh={small}>
|
|
85
|
+
{progressBar && (
|
|
86
|
+
<ProgressBar
|
|
87
|
+
{...progressBar}
|
|
88
|
+
/>
|
|
89
|
+
)}
|
|
90
|
+
{progressSpinner && (
|
|
91
|
+
<OverviewItemDepiction keepColors>
|
|
92
|
+
<Spinner
|
|
93
|
+
position="inline"
|
|
94
|
+
size={small ? "tiny" : "small"}
|
|
95
|
+
stroke={small ? "bold" : "medium"}
|
|
96
|
+
{...progressSpinner}
|
|
97
|
+
className={spinnerClassNames}
|
|
98
|
+
/>
|
|
99
|
+
</OverviewItemDepiction>
|
|
100
|
+
)}
|
|
101
|
+
<OverviewItemDescription>
|
|
102
|
+
{props.label && <OverviewItemLine small={small}>
|
|
103
|
+
<OverflowText inline={true}>{props.label}</OverflowText>
|
|
104
|
+
</OverviewItemLine>}
|
|
105
|
+
{props.statusMessage && (
|
|
106
|
+
<OverviewItemLine small>
|
|
107
|
+
{
|
|
108
|
+
props.statusMessage.length > 50 ? (
|
|
109
|
+
<Tooltip content={props.statusMessage} size="large" tooltipProps={{placement: "top", boundary: "viewport"}}>
|
|
110
|
+
<OverflowText inline={true}>
|
|
111
|
+
{props.statusMessage}
|
|
112
|
+
</OverflowText>
|
|
113
|
+
</Tooltip>
|
|
114
|
+
) : (
|
|
115
|
+
<OverflowText inline={true}>
|
|
116
|
+
{props.statusMessage}
|
|
117
|
+
</OverflowText>
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
</OverviewItemLine>
|
|
121
|
+
)}
|
|
122
|
+
</OverviewItemDescription>
|
|
123
|
+
<OverviewItemActions>
|
|
124
|
+
{activityActions && activityActions.map((action) => {
|
|
125
|
+
return <IconButton
|
|
126
|
+
key={action.icon}
|
|
127
|
+
data-test-id={action["data-test-id"]}
|
|
128
|
+
name={action.icon}
|
|
129
|
+
text={action.tooltip}
|
|
130
|
+
onClick={action.action}
|
|
131
|
+
tooltipOpenDelay={200}
|
|
132
|
+
disabled={action.disabled}
|
|
133
|
+
hasStateWarning={action.hasStateWarning}
|
|
134
|
+
/>
|
|
135
|
+
})}
|
|
136
|
+
{activityContextMenu && activityContextMenu.menuItems.length > 0 && <ContextMenu
|
|
137
|
+
data-test-id={activityContextMenu["data-test-id"]}
|
|
138
|
+
togglerText={activityContextMenu.tooltip}
|
|
139
|
+
>
|
|
140
|
+
{activityContextMenu.menuItems.map((menuAction) => {
|
|
141
|
+
return <MenuItem
|
|
142
|
+
icon={menuAction.icon}
|
|
143
|
+
key={menuAction.icon}
|
|
144
|
+
onClick={menuAction.action}
|
|
145
|
+
text={menuAction.tooltip}
|
|
146
|
+
/>
|
|
147
|
+
})}
|
|
148
|
+
</ContextMenu>
|
|
149
|
+
}
|
|
150
|
+
</OverviewItemActions>
|
|
151
|
+
</OverviewItem>
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
const classname = `${eccgui}-addon-activitycontrol` + (canShrink ? ` ${eccgui}-addon-activitycontrol--shrink` : "");
|
|
155
|
+
|
|
156
|
+
return border ? (
|
|
157
|
+
<Card isOnlyLayout elevation={0} className={classname}>
|
|
158
|
+
{widget}
|
|
159
|
+
</Card>
|
|
160
|
+
) : (
|
|
161
|
+
<div className={classname}>
|
|
162
|
+
{widget}
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {Button, HtmlContentBlock, SimpleDialog} from "../../index";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
interface IProps {
|
|
5
|
+
// Title of the modal
|
|
6
|
+
title?: string
|
|
7
|
+
// Called when the close button is clicked
|
|
8
|
+
onDiscard: () => any
|
|
9
|
+
// The error report
|
|
10
|
+
report: JSX.Element
|
|
11
|
+
// Value of the download button
|
|
12
|
+
downloadButtonValue: string
|
|
13
|
+
// Value of the close button
|
|
14
|
+
closeButtonValue: string
|
|
15
|
+
// Function that fetches the Markdown error report
|
|
16
|
+
fetchErrorReport: () => Promise<string | undefined>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Shows the execution error report to the user and offers to download the report. */
|
|
20
|
+
export const ActivityExecutionErrorReportModal = ({title, onDiscard, report, downloadButtonValue, closeButtonValue, fetchErrorReport}: IProps) => {
|
|
21
|
+
const fileName = "Activity execution report from " + (new Date()).toISOString().replace(/T/, " ").replace(/:/g, "-").substr(0, 19) + ".md"
|
|
22
|
+
const handleDownload = async () => {
|
|
23
|
+
const markdown = await fetchErrorReport()
|
|
24
|
+
if(markdown) {
|
|
25
|
+
const element = document.createElement("a");
|
|
26
|
+
element.href = window.URL.createObjectURL(new Blob([markdown], { type: "text/markdown" }));
|
|
27
|
+
element.download = fileName
|
|
28
|
+
//the above code is equivalent to
|
|
29
|
+
document.body.appendChild(element);
|
|
30
|
+
//onClick property
|
|
31
|
+
element.click();
|
|
32
|
+
document.body.removeChild(element);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<SimpleDialog
|
|
38
|
+
title={title}
|
|
39
|
+
isOpen={true}
|
|
40
|
+
onClose={onDiscard}
|
|
41
|
+
actions={[
|
|
42
|
+
<Button data-test-id={"error-report-download-btn"} affirmative onClick={handleDownload} key="download">
|
|
43
|
+
{downloadButtonValue}
|
|
44
|
+
</Button>,
|
|
45
|
+
<Button data-test-id={"error-report-close-btn"} key="close" onClick={onDiscard}>
|
|
46
|
+
{closeButtonValue}
|
|
47
|
+
</Button>,
|
|
48
|
+
]}
|
|
49
|
+
>
|
|
50
|
+
<HtmlContentBlock>
|
|
51
|
+
{report}
|
|
52
|
+
</HtmlContentBlock>
|
|
53
|
+
</SimpleDialog>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import {TestableComponent} from "../../components/interfaces";
|
|
2
|
+
import {
|
|
3
|
+
ActivityControlWidget,
|
|
4
|
+
IActivityAction
|
|
5
|
+
} from "./ActivityControlWidget";
|
|
6
|
+
import React, {useEffect, useState} from "react";
|
|
7
|
+
import {IActivityStatus} from "./ActivityControlTypes";
|
|
8
|
+
import {Intent} from "@blueprintjs/core/src/common/intent";
|
|
9
|
+
import {ActivityExecutionErrorReportModal} from "./ActivityExecutionErrorReportModal";
|
|
10
|
+
import {Spacing} from "../../index";
|
|
11
|
+
import {
|
|
12
|
+
ElapsedDateTimeDisplay,
|
|
13
|
+
TimeUnits
|
|
14
|
+
} from "../DateTimeDisplay/ElapsedDateTimeDisplay";
|
|
15
|
+
|
|
16
|
+
const progressBreakpointIndetermination = 10;
|
|
17
|
+
const progressBreakpointAnimation = 99;
|
|
18
|
+
|
|
19
|
+
interface SilkActivityControlProps extends TestableComponent {
|
|
20
|
+
// The label of this activity
|
|
21
|
+
label: string;
|
|
22
|
+
// Initial state
|
|
23
|
+
initialStatus?: IActivityStatus;
|
|
24
|
+
// Register a function in order to receive callbacks
|
|
25
|
+
registerForUpdates: (callback: (status: IActivityStatus) => any) => any;
|
|
26
|
+
// Un-register this component from any updates
|
|
27
|
+
unregisterFromUpdates: () => any;
|
|
28
|
+
// If the start action should be available
|
|
29
|
+
showStartAction: boolean;
|
|
30
|
+
// If the stop action should be available. Else actions can only be started, but not stopped.
|
|
31
|
+
showStopAction: boolean;
|
|
32
|
+
// Allow display and download of activity execution failure reports
|
|
33
|
+
failureReportAction?: IErrorReportAction;
|
|
34
|
+
// Show reload action, e.g. to refresh caches from scratch
|
|
35
|
+
showReloadAction: boolean;
|
|
36
|
+
// If defined, shows the 'View value' action, e.g. to check cache values
|
|
37
|
+
viewValueAction?: {
|
|
38
|
+
// Tooltip to show on icon button
|
|
39
|
+
tooltip?: string;
|
|
40
|
+
// The action, either a URL that will be opened in a new tab or a callback function
|
|
41
|
+
action: string | (() => any);
|
|
42
|
+
};
|
|
43
|
+
// DI activity actions
|
|
44
|
+
executeActivityAction: (action: ActivityAction) => void;
|
|
45
|
+
// Get the translation for a specific key
|
|
46
|
+
translate: (key: ActivityControlTranslationKeys) => string;
|
|
47
|
+
// When defined the elapsed time since the last start is displayed next to the label
|
|
48
|
+
elapsedTimeOfLastStart?: {
|
|
49
|
+
// Prefix before the elapsed time
|
|
50
|
+
prefix?: string;
|
|
51
|
+
// Suffix after the elapsed time
|
|
52
|
+
suffix?: string;
|
|
53
|
+
// The translation of the time units
|
|
54
|
+
translate: (unit: TimeUnits) => string;
|
|
55
|
+
};
|
|
56
|
+
// configure how the widget is displayed
|
|
57
|
+
layoutConfig?: IActivityControlLayoutProps;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface IActivityControlLayoutProps {
|
|
61
|
+
// show small version of the widget
|
|
62
|
+
small?: boolean;
|
|
63
|
+
// display widget inside rectange
|
|
64
|
+
border?: boolean;
|
|
65
|
+
// only use necessary width, not always the available 100% of parent element
|
|
66
|
+
canShrink?: boolean;
|
|
67
|
+
// what type of progrss display should be uses, horizontal progress bar, circular spinner, or none of that
|
|
68
|
+
visualization?: "none" | "progressbar" | "spinner";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const defaultLayout: IActivityControlLayoutProps = { small: false, border: false, canShrink: false, visualization: "spinner"};
|
|
72
|
+
|
|
73
|
+
interface IErrorReportAction {
|
|
74
|
+
// The title of the error report modal
|
|
75
|
+
title?: string;
|
|
76
|
+
// The element that will be rendered in the modal, either as Markdown or object
|
|
77
|
+
renderReport: (report: string | IActivityExecutionReport) => JSX.Element;
|
|
78
|
+
// What version of the report should be handed to the renderReport function, if false IActivityExecutionReport, if true the Markdown string
|
|
79
|
+
renderMarkdown: boolean;
|
|
80
|
+
// The function to fetch the error report. It returns undefined if something went wrong.
|
|
81
|
+
fetchErrorReport: (markdown: boolean) => Promise<string | IActivityExecutionReport | undefined>;
|
|
82
|
+
// If besides showing the error report, there should also be an option to download it.
|
|
83
|
+
allowDownload?: boolean;
|
|
84
|
+
// The text of the download button in the modal
|
|
85
|
+
downloadButtonValue: string;
|
|
86
|
+
// The text of the close button in the modal
|
|
87
|
+
closeButtonValue: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface IActivityExecutionReport {
|
|
91
|
+
// Summary of the activity execution error
|
|
92
|
+
errorSummary: string;
|
|
93
|
+
// If the activity was running in a project context, the project ID
|
|
94
|
+
projectId?: string;
|
|
95
|
+
// If the activity was running in a task context, the task ID
|
|
96
|
+
taskId?: string;
|
|
97
|
+
// The activity ID
|
|
98
|
+
activityId: string;
|
|
99
|
+
// If the activity was running in a project context, the project label
|
|
100
|
+
projectLabel?: string;
|
|
101
|
+
// If the activity was running in a task context, the task label
|
|
102
|
+
taskLabel?: string;
|
|
103
|
+
// If the activity was running in a task context, the optional task description
|
|
104
|
+
taskDescription?: string;
|
|
105
|
+
// The error message of the error/exception that has occurred
|
|
106
|
+
errorMessage?: string;
|
|
107
|
+
// The stacktrace leading to the error
|
|
108
|
+
stackTrace?: IStacktrace;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface IStacktrace {
|
|
112
|
+
// The final error message of the stacktrace
|
|
113
|
+
errorMessage?: String;
|
|
114
|
+
// The individual elements of the stack trace
|
|
115
|
+
lines: string[];
|
|
116
|
+
// In case of nested stacktraces this may contain the cause of the failure
|
|
117
|
+
cause?: IStacktrace;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type ActivityControlTranslationKeys = "startActivity" | "stopActivity" | "reloadActivity" | "showErrorReport"
|
|
121
|
+
|
|
122
|
+
export type ActivityAction = "start" | "cancel" | "restart"
|
|
123
|
+
|
|
124
|
+
/** Silk activity control. */
|
|
125
|
+
export function SilkActivityControl({
|
|
126
|
+
label,
|
|
127
|
+
initialStatus,
|
|
128
|
+
registerForUpdates,
|
|
129
|
+
executeActivityAction,
|
|
130
|
+
showReloadAction,
|
|
131
|
+
showStartAction,
|
|
132
|
+
viewValueAction,
|
|
133
|
+
showStopAction,
|
|
134
|
+
failureReportAction,
|
|
135
|
+
unregisterFromUpdates,
|
|
136
|
+
translate,
|
|
137
|
+
elapsedTimeOfLastStart,
|
|
138
|
+
layoutConfig = defaultLayout,
|
|
139
|
+
...props
|
|
140
|
+
}: SilkActivityControlProps) {
|
|
141
|
+
const [activityStatus, setActivityStatus] = useState<IActivityStatus | undefined>(initialStatus)
|
|
142
|
+
const [errorReport, setErrorReport] = useState<string | IActivityExecutionReport | undefined>(undefined)
|
|
143
|
+
|
|
144
|
+
// Register update function
|
|
145
|
+
useEffect(() => {
|
|
146
|
+
const updateActivityStatus = (status: any) => {
|
|
147
|
+
setActivityStatus(status)
|
|
148
|
+
}
|
|
149
|
+
registerForUpdates(updateActivityStatus)
|
|
150
|
+
return unregisterFromUpdates
|
|
151
|
+
},
|
|
152
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
153
|
+
[]
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
// Create activity actions
|
|
157
|
+
const actions: IActivityAction[] = []
|
|
158
|
+
|
|
159
|
+
if(failureReportAction && activityStatus?.failed && activityStatus.concreteStatus !== "Cancelled") {
|
|
160
|
+
actions.push({
|
|
161
|
+
"data-test-id": "activity-show-error-report",
|
|
162
|
+
icon: "artefact-report",
|
|
163
|
+
action: () => showErrorReport(failureReportAction),
|
|
164
|
+
tooltip: translate("showErrorReport"),
|
|
165
|
+
hasStateWarning: true
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if(showStartAction) {
|
|
170
|
+
actions.push({
|
|
171
|
+
"data-test-id": "activity-start-activity",
|
|
172
|
+
icon: "item-start",
|
|
173
|
+
action: () => executeActivityAction("start"),
|
|
174
|
+
tooltip: translate("startActivity"),
|
|
175
|
+
disabled: activityStatus?.isRunning === true
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if(showReloadAction) {
|
|
180
|
+
actions.push({
|
|
181
|
+
"data-test-id": "activity-reload-activity",
|
|
182
|
+
icon: "item-reload",
|
|
183
|
+
action: () => executeActivityAction("restart"),
|
|
184
|
+
tooltip: translate("reloadActivity"),
|
|
185
|
+
disabled: activityStatus?.isRunning === true
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if(showStopAction) {
|
|
190
|
+
actions.push({
|
|
191
|
+
"data-test-id": "activity-stop-activity",
|
|
192
|
+
icon: "item-stop",
|
|
193
|
+
action: () => executeActivityAction("cancel"),
|
|
194
|
+
tooltip: translate("stopActivity"),
|
|
195
|
+
disabled: activityStatus?.isRunning === false
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if(viewValueAction && activityStatus?.concreteStatus !== "Not executed") {
|
|
200
|
+
const action: () => any = typeof viewValueAction.action === "string" ? () => {
|
|
201
|
+
window.open(viewValueAction.action as string, "_blank")
|
|
202
|
+
} : viewValueAction.action
|
|
203
|
+
actions.push({
|
|
204
|
+
"data-test-id": "activity-view-data",
|
|
205
|
+
icon: "artefact-rawdata",
|
|
206
|
+
action,
|
|
207
|
+
tooltip: viewValueAction.tooltip
|
|
208
|
+
})
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const showErrorReport = async (action: IErrorReportAction) => {
|
|
212
|
+
const errorReport = await action.fetchErrorReport(action.renderMarkdown)
|
|
213
|
+
setErrorReport(errorReport)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const closeErrorReport = () => {
|
|
217
|
+
setErrorReport(undefined)
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const activityControlLabel = activityStatus?.startTime && elapsedTimeOfLastStart ? <>
|
|
221
|
+
{label}
|
|
222
|
+
<Spacing vertical={true} size={"tiny"} />
|
|
223
|
+
<ElapsedDateTimeDisplay
|
|
224
|
+
dateTime={activityStatus.startTime}
|
|
225
|
+
prefix={elapsedTimeOfLastStart.prefix}
|
|
226
|
+
suffix={elapsedTimeOfLastStart.suffix}
|
|
227
|
+
translateUnits={elapsedTimeOfLastStart.translate}
|
|
228
|
+
/>
|
|
229
|
+
</> : label
|
|
230
|
+
|
|
231
|
+
const {visualization, ...otherLayoutConfig} = layoutConfig;
|
|
232
|
+
let visualizationProps = {}; // visualization==="none" or undefined
|
|
233
|
+
const runningProgress = activityStatus && activityStatus.isRunning;
|
|
234
|
+
const waitingProgress = activityStatus && activityStatus.concreteStatus === "Waiting";
|
|
235
|
+
const animateProgress = activityStatus && activityStatus.progress > 0 && activityStatus.progress < progressBreakpointAnimation;
|
|
236
|
+
const indeterminateProgress = activityStatus && activityStatus.progress < progressBreakpointIndetermination;
|
|
237
|
+
|
|
238
|
+
if (visualization === "progressbar") {
|
|
239
|
+
visualizationProps = {
|
|
240
|
+
progressBar: {
|
|
241
|
+
animate: waitingProgress || (runningProgress && animateProgress),
|
|
242
|
+
stripes: waitingProgress || (runningProgress && animateProgress),
|
|
243
|
+
value: (waitingProgress || (runningProgress && indeterminateProgress)) ? undefined : ((activityStatus && activityStatus.progress > 0) ? (activityStatus.progress / 100) : 0),
|
|
244
|
+
intent: activityStatus ? calcIntent(activityStatus) : "none",
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
if (visualization === "spinner") {
|
|
249
|
+
visualizationProps = {
|
|
250
|
+
progressSpinner: {
|
|
251
|
+
value: (waitingProgress || (runningProgress && indeterminateProgress)) ? undefined : ((activityStatus && activityStatus.progress > 0) ? (activityStatus.progress / 100) : 0),
|
|
252
|
+
intent: activityStatus ? calcIntent(activityStatus) : "none",
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
return <>
|
|
258
|
+
<ActivityControlWidget
|
|
259
|
+
key={"activity-control"}
|
|
260
|
+
data-test-id={props["data-test-id"]}
|
|
261
|
+
label={activityControlLabel}
|
|
262
|
+
activityActions={actions}
|
|
263
|
+
statusMessage={activityStatus?.message}
|
|
264
|
+
{...visualizationProps}
|
|
265
|
+
{...otherLayoutConfig}
|
|
266
|
+
/>
|
|
267
|
+
{errorReport && failureReportAction && <ActivityExecutionErrorReportModal
|
|
268
|
+
title={failureReportAction.title}
|
|
269
|
+
key={"error-report-modal"}
|
|
270
|
+
closeButtonValue={failureReportAction.closeButtonValue}
|
|
271
|
+
downloadButtonValue={failureReportAction.downloadButtonValue}
|
|
272
|
+
fetchErrorReport={async () => {
|
|
273
|
+
return await failureReportAction.fetchErrorReport(true) as (string | undefined)
|
|
274
|
+
}}
|
|
275
|
+
report={failureReportAction.renderReport(errorReport)}
|
|
276
|
+
onDiscard={closeErrorReport}
|
|
277
|
+
/>}
|
|
278
|
+
</>
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const calcIntent = (activityStatus: IActivityStatus): Intent => {
|
|
282
|
+
const concreteStatus = activityStatus.concreteStatus
|
|
283
|
+
let intent: Intent
|
|
284
|
+
switch(concreteStatus) {
|
|
285
|
+
case "Running":
|
|
286
|
+
case "Successful":
|
|
287
|
+
intent = "success"
|
|
288
|
+
break
|
|
289
|
+
case "Cancelled":
|
|
290
|
+
case "Canceling":
|
|
291
|
+
intent = "warning"
|
|
292
|
+
break
|
|
293
|
+
case "Failed":
|
|
294
|
+
intent = "danger"
|
|
295
|
+
break
|
|
296
|
+
case "Waiting":
|
|
297
|
+
intent = "none" // TODO: This is 100% yellow in the old activity control
|
|
298
|
+
break
|
|
299
|
+
default:
|
|
300
|
+
intent = "none"
|
|
301
|
+
}
|
|
302
|
+
return intent
|
|
303
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.#{$eccgui}-addon-activitycontrol {
|
|
2
|
+
.#{$eccgui}-overviewitem__item {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.#{$ns}-progress-bar {
|
|
7
|
+
display: block;
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: $tab-indicator-width;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.#{$eccgui}-addon-activitycontrol--shrink {
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
|
|
20
|
+
&:not(.#{$eccgui}-card) {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.#{$eccgui}-overviewitem__depiction + .#{$eccgui}-overviewitem__description {
|
|
25
|
+
margin-left: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|