@eccenca/gui-elements 22.1.0-rc.0 → 23.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -4
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +13 -9
- 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 +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/graph.js +1 -6
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/linking.js +1 -6
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +1 -6
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
- 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 +2 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js +3 -3
- package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +6 -4
- 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/Dialog/Modal.js +1 -1
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Form/FieldItemRow.js +3 -4
- package/dist/cjs/components/Form/FieldItemRow.js.map +1 -1
- package/dist/cjs/components/Form/FieldSet.js +2 -2
- package/dist/cjs/components/Form/FieldSet.js.map +1 -1
- package/dist/cjs/components/Iframe/Iframe.js +1 -1
- package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +34 -41
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- 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 +2 -2
- package/dist/cjs/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +2 -1
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/Tabs/Tab.js +1 -2
- package/dist/cjs/components/Tabs/Tab.js.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.js +1 -4
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/Tag/TagList.js +2 -2
- package/dist/cjs/components/Tag/TagList.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/codemirror/CodeMirror.js +59 -0
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -0
- package/dist/cjs/extensions/index.js +15 -0
- package/dist/cjs/extensions/index.js.map +1 -0
- 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 +21 -20
- package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +6 -4
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js +3 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlTypes.js +0 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlTypes.js.map +0 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlWidget.js +15 -11
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +21 -4
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/SilkActivityControl.js +5 -5
- package/dist/{es5 → esm}/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/index.js +4 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/index.js.map +0 -0
- package/dist/{es5 → esm}/cmem/ContentBlobToggler/ContentBlobToggler.js +1 -1
- package/dist/{es5 → esm}/cmem/ContentBlobToggler/ContentBlobToggler.js.map +0 -0
- package/dist/{es5 → esm}/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +1 -1
- package/dist/{es5 → esm}/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/index.js +3 -0
- package/dist/{es5 → esm}/cmem/ContentBlobToggler/index.js.map +0 -0
- package/dist/{es5 → esm}/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +0 -0
- package/dist/{es5 → esm}/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +0 -0
- package/dist/{es5 → esm}/cmem/index.js +6 -6
- package/dist/{es5 → esm}/cmem/index.js.map +0 -0
- package/dist/{es5 → esm}/cmem/markdown/Markdown.js +2 -2
- package/dist/{es5 → esm}/cmem/markdown/Markdown.js.map +0 -0
- package/dist/{es5 → esm}/cmem/react-flow/ReactFlow/ReactFlow.js +4 -4
- package/dist/{es5 → esm}/cmem/react-flow/ReactFlow/ReactFlow.js.map +0 -0
- package/dist/{es5 → esm}/cmem/react-flow/configuration/graph.js +3 -4
- package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -0
- package/dist/{es5 → esm}/cmem/react-flow/configuration/linking.js +3 -4
- package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -0
- package/dist/{es5 → esm}/cmem/react-flow/configuration/unspecified.js +3 -3
- package/dist/{es5 → esm}/cmem/react-flow/configuration/unspecified.js.map +0 -0
- package/dist/{es5 → esm}/cmem/react-flow/configuration/workflow.js +3 -4
- package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -0
- package/dist/{es5 → esm}/common/Intent/index.js +1 -1
- package/dist/{es5 → esm}/common/Intent/index.js.map +0 -0
- package/dist/{es5 → esm}/common/utils/openInNewTab.js +0 -0
- package/dist/{es5 → esm}/common/utils/openInNewTab.js.map +0 -0
- package/dist/esm/common/utils/stringUtils.js +3 -0
- package/dist/esm/common/utils/stringUtils.js.map +1 -0
- package/dist/{es5 → esm}/components/Accordion/Accordion.js +1 -1
- package/dist/{es5 → esm}/components/Accordion/Accordion.js.map +0 -0
- package/dist/{es5 → esm}/components/Accordion/AccordionItem.js +1 -1
- package/dist/{es5 → esm}/components/Accordion/AccordionItem.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationContainer.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationContainer.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationContent.js +2 -8
- package/dist/esm/components/Application/ApplicationContent.js.map +1 -0
- package/dist/{es5 → esm}/components/Application/ApplicationHeader.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationHeader.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationSidebarNavigation.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationSidebarNavigation.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationSidebarToggler.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationSidebarToggler.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationTitle.js +2 -8
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -0
- package/dist/{es5 → esm}/components/Application/ApplicationToolbar.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationToolbar.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationToolbarAction.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationToolbarAction.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationToolbarPanel.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationToolbarPanel.js.map +0 -0
- package/dist/{es5 → esm}/components/Application/ApplicationToolbarSection.js +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationToolbarSection.js.map +0 -0
- package/dist/{es5 → esm}/components/AutoSuggestion/AutoSuggestion.js +5 -4
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -0
- package/dist/{es5 → esm}/components/AutoSuggestion/AutoSuggestionList.js +1 -1
- package/dist/{es5 → esm}/components/AutoSuggestion/AutoSuggestionList.js.map +0 -0
- package/dist/{es5 → esm}/components/AutoSuggestion/SingleLineCodeEditor.js +3 -3
- package/dist/{es5 → esm}/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -1
- package/dist/{es5 → esm}/components/AutocompleteField/AutoCompleteField.js +8 -6
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -0
- package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbItem.js +3 -3
- package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbItem.js.map +0 -0
- package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbList.js +2 -2
- package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbList.js.map +0 -0
- package/dist/{es5 → esm}/components/Button/Button.js +4 -4
- package/dist/{es5 → esm}/components/Button/Button.js.map +1 -1
- package/dist/{es5 → esm}/components/Card/Card.js +19 -4
- package/dist/esm/components/Card/Card.js.map +1 -0
- package/dist/{es5 → esm}/components/Card/CardActions.js +1 -1
- package/dist/{es5 → esm}/components/Card/CardActions.js.map +0 -0
- package/dist/{es5 → esm}/components/Card/CardActionsAux.js +1 -1
- package/dist/{es5 → esm}/components/Card/CardActionsAux.js.map +0 -0
- package/dist/{es5 → esm}/components/Card/CardContent.js +1 -1
- package/dist/{es5 → esm}/components/Card/CardContent.js.map +0 -0
- package/dist/{es5 → esm}/components/Card/CardHeader.js +5 -5
- package/dist/{es5 → esm}/components/Card/CardHeader.js.map +0 -0
- package/dist/{es5 → esm}/components/Card/CardOptions.js +2 -2
- package/dist/{es5 → esm}/components/Card/CardOptions.js.map +0 -0
- package/dist/{es5 → esm}/components/Card/CardTitle.js +2 -2
- package/dist/{es5 → esm}/components/Card/CardTitle.js.map +0 -0
- package/dist/esm/components/Card/index.js +9 -0
- package/dist/{es5 → esm}/components/Card/index.js.map +0 -0
- package/dist/{es5 → esm}/components/Checkbox/Checkbox.js +1 -1
- package/dist/{es5 → esm}/components/Checkbox/Checkbox.js.map +0 -0
- package/dist/{es5 → esm}/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/{es5 → esm}/components/ContextOverlay/ContextMenu.js.map +0 -0
- package/dist/{es5 → esm}/components/ContextOverlay/ContextOverlay.js +1 -1
- package/dist/{es5 → esm}/components/ContextOverlay/ContextOverlay.js.map +0 -0
- package/dist/{es5 → esm}/components/Dialog/AlertDialog.js +2 -2
- package/dist/{es5 → esm}/components/Dialog/AlertDialog.js.map +0 -0
- package/dist/{es5 → esm}/components/Dialog/Modal.js +3 -3
- package/dist/{es5 → esm}/components/Dialog/Modal.js.map +1 -1
- package/dist/{es5 → esm}/components/Dialog/SimpleDialog.js +4 -4
- package/dist/{es5 → esm}/components/Dialog/SimpleDialog.js.map +0 -0
- package/dist/{es5 → esm}/components/Form/FieldItem.js +3 -3
- package/dist/{es5 → esm}/components/Form/FieldItem.js.map +0 -0
- package/dist/esm/components/Form/FieldItemRow.js +34 -0
- package/dist/esm/components/Form/FieldItemRow.js.map +1 -0
- package/dist/{es5 → esm}/components/Form/FieldSet.js +15 -4
- package/dist/esm/components/Form/FieldSet.js.map +1 -0
- package/dist/{es5 → esm}/components/Grid/Grid.js +1 -1
- package/dist/{es5 → esm}/components/Grid/Grid.js.map +0 -0
- package/dist/{es5 → esm}/components/Grid/GridColumn.js +1 -1
- package/dist/{es5 → esm}/components/Grid/GridColumn.js.map +0 -0
- package/dist/{es5 → esm}/components/Grid/GridRow.js +1 -1
- package/dist/{es5 → esm}/components/Grid/GridRow.js.map +0 -0
- package/dist/{es5 → esm}/components/Icon/Icon.js +3 -3
- package/dist/{es5 → esm}/components/Icon/Icon.js.map +0 -0
- package/dist/{es5 → esm}/components/Icon/IconButton.js +3 -3
- package/dist/{es5 → esm}/components/Icon/IconButton.js.map +0 -0
- package/dist/{es5 → esm}/components/Icon/canonicalIconNames.js +0 -0
- package/dist/{es5 → esm}/components/Icon/canonicalIconNames.js.map +0 -0
- package/dist/{es5 → esm}/components/Iframe/Iframe.js +3 -3
- package/dist/{es5 → esm}/components/Iframe/Iframe.js.map +1 -1
- package/dist/{es5 → esm}/components/Iframe/IframeModal.js +4 -4
- package/dist/{es5 → esm}/components/Iframe/IframeModal.js.map +0 -0
- package/dist/{es5 → esm}/components/Label/Label.js +3 -3
- package/dist/{es5 → esm}/components/Label/Label.js.map +0 -0
- package/dist/{es5 → esm}/components/Link/Link.js +2 -2
- package/dist/{es5 → esm}/components/Link/Link.js.map +0 -0
- package/dist/{es5 → esm}/components/List/List.js +1 -1
- package/dist/{es5 → esm}/components/List/List.js.map +0 -0
- package/dist/{es5 → esm}/components/Menu/Menu.js +1 -1
- package/dist/{es5 → esm}/components/Menu/Menu.js.map +0 -0
- package/dist/{es5 → esm}/components/Menu/MenuDivider.js +1 -1
- package/dist/{es5 → esm}/components/Menu/MenuDivider.js.map +0 -0
- package/dist/{es5 → esm}/components/Menu/MenuItem.js +3 -3
- package/dist/{es5 → esm}/components/Menu/MenuItem.js.map +0 -0
- package/dist/{es5 → esm}/components/MultiSelect/MultiSelect.js +44 -55
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/{es5 → esm}/components/Notification/Notification.js +13 -6
- package/dist/esm/components/Notification/Notification.js.map +1 -0
- package/dist/{es5 → esm}/components/Notification/Toast.js +2 -2
- package/dist/{es5 → esm}/components/Notification/Toast.js.map +0 -0
- package/dist/{es5 → esm}/components/NumericInput/NumericInput.js +0 -0
- package/dist/{es5 → esm}/components/NumericInput/NumericInput.js.map +0 -0
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItem.js +1 -1
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItem.js.map +0 -0
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemActions.js +1 -1
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemActions.js.map +0 -0
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDepiction.js +1 -1
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDepiction.js.map +0 -0
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDescription.js +1 -1
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDescription.js.map +0 -0
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemLine.js +1 -1
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemLine.js.map +0 -0
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemList.js +3 -3
- package/dist/{es5 → esm}/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/esm/components/OverviewItem/index.js +8 -0
- package/dist/{es5 → esm}/components/OverviewItem/index.js.map +0 -0
- package/dist/{es5 → esm}/components/Pagination/Pagination.js +1 -1
- package/dist/{es5 → esm}/components/Pagination/Pagination.js.map +0 -0
- package/dist/{es5 → esm}/components/ProgressBar/ProgressBar.js +0 -0
- package/dist/{es5 → esm}/components/ProgressBar/ProgressBar.js.map +0 -0
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyName.js +2 -2
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyName.js.map +0 -0
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValue.js +1 -1
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValue.js.map +0 -0
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValueList.js +1 -1
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValueList.js.map +0 -0
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValuePair.js +1 -1
- package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValuePair.js.map +0 -0
- package/dist/esm/components/PropertyValuePair/index.js +6 -0
- package/dist/{es5 → esm}/components/PropertyValuePair/index.js.map +0 -0
- package/dist/{es5 → esm}/components/RadioButton/RadioButton.js +1 -1
- package/dist/{es5 → esm}/components/RadioButton/RadioButton.js.map +0 -0
- package/dist/{es5 → esm}/components/Separation/Divider.js +1 -1
- package/dist/{es5 → esm}/components/Separation/Divider.js.map +0 -0
- package/dist/{es5 → esm}/components/Separation/Spacing.js +1 -1
- package/dist/{es5 → esm}/components/Separation/Spacing.js.map +0 -0
- package/dist/{es5 → esm}/components/SimpleTable/TableContainer.js +1 -1
- package/dist/{es5 → esm}/components/SimpleTable/TableContainer.js.map +0 -0
- package/dist/{es5 → esm}/components/SimpleTable/index.js +1 -1
- package/dist/{es5 → esm}/components/SimpleTable/index.js.map +0 -0
- package/dist/{es5 → esm}/components/Spinner/Spinner.js +4 -3
- package/dist/esm/components/Spinner/Spinner.js.map +1 -0
- package/dist/{es5 → esm}/components/Structure/Section.js +1 -1
- package/dist/{es5 → esm}/components/Structure/Section.js.map +0 -0
- package/dist/{es5 → esm}/components/Structure/SectionHeader.js +1 -1
- package/dist/{es5 → esm}/components/Structure/SectionHeader.js.map +0 -0
- package/dist/{es5 → esm}/components/Structure/TitleMainsection.js +1 -1
- package/dist/{es5 → esm}/components/Structure/TitleMainsection.js.map +0 -0
- package/dist/{es5 → esm}/components/Structure/TitlePage.js +1 -1
- package/dist/{es5 → esm}/components/Structure/TitlePage.js.map +0 -0
- package/dist/{es5 → esm}/components/Structure/TitleSubsection.js +1 -1
- package/dist/{es5 → esm}/components/Structure/TitleSubsection.js.map +0 -0
- package/dist/{es5 → esm}/components/Switch/Switch.js +1 -1
- package/dist/{es5 → esm}/components/Switch/Switch.js.map +0 -0
- package/dist/{es5 → esm}/components/Tabs/Tab.js +3 -4
- package/dist/{es5 → esm}/components/Tabs/Tab.js.map +1 -1
- package/dist/{es5 → esm}/components/Tabs/TabTitle.js +2 -2
- package/dist/{es5 → esm}/components/Tabs/TabTitle.js.map +0 -0
- package/dist/{es5 → esm}/components/Tabs/Tabs.js +3 -6
- package/dist/esm/components/Tabs/Tabs.js.map +1 -0
- package/dist/{es5 → esm}/components/Tag/Tag.js +1 -1
- package/dist/{es5 → esm}/components/Tag/Tag.js.map +0 -0
- package/dist/{es5 → esm}/components/Tag/TagList.js +14 -3
- package/dist/esm/components/Tag/TagList.js.map +1 -0
- package/dist/{es5 → esm}/components/TextField/SearchField.js +4 -4
- package/dist/{es5 → esm}/components/TextField/SearchField.js.map +0 -0
- package/dist/{es5 → esm}/components/TextField/TextArea.js +1 -1
- package/dist/{es5 → esm}/components/TextField/TextArea.js.map +0 -0
- package/dist/{es5 → esm}/components/TextField/TextField.js +2 -2
- package/dist/{es5 → esm}/components/TextField/TextField.js.map +0 -0
- package/dist/{es5 → esm}/components/Toolbar/Toolbar.js +1 -1
- package/dist/{es5 → esm}/components/Toolbar/Toolbar.js.map +0 -0
- package/dist/{es5 → esm}/components/Toolbar/ToolbarSection.js +1 -1
- package/dist/{es5 → esm}/components/Toolbar/ToolbarSection.js.map +0 -0
- package/dist/{es5 → esm}/components/Tooltip/Tooltip.js +1 -1
- package/dist/{es5 → esm}/components/Tooltip/Tooltip.js.map +0 -0
- package/dist/{es5 → esm}/components/Typography/Highlighter.js +0 -0
- package/dist/{es5 → esm}/components/Typography/Highlighter.js.map +0 -0
- package/dist/esm/components/Typography/HtmlContentBlock.js +39 -0
- package/dist/esm/components/Typography/HtmlContentBlock.js.map +1 -0
- package/dist/{es5 → esm}/components/Typography/OverflowText.js +1 -1
- package/dist/{es5 → esm}/components/Typography/OverflowText.js.map +0 -0
- package/dist/{es5 → esm}/components/Typography/WhiteSpaceContainer.js +1 -1
- package/dist/{es5 → esm}/components/Typography/WhiteSpaceContainer.js.map +0 -0
- package/dist/{es5 → esm}/components/Typography/classnames.js +2 -1
- package/dist/{es5 → esm}/components/Typography/classnames.js.map +1 -1
- package/dist/{es5 → esm}/components/Workspace/WorkspaceContent.js +3 -3
- package/dist/{es5 → esm}/components/Workspace/WorkspaceContent.js.map +0 -0
- package/dist/{es5 → esm}/components/Workspace/WorkspaceHeader.js +1 -1
- package/dist/{es5 → esm}/components/Workspace/WorkspaceHeader.js.map +0 -0
- package/dist/{es5 → esm}/components/Workspace/WorkspaceMain.js +2 -2
- package/dist/{es5 → esm}/components/Workspace/WorkspaceMain.js.map +0 -0
- package/dist/{es5 → esm}/components/Workspace/WorkspaceSide.js +2 -2
- package/dist/{es5 → esm}/components/Workspace/WorkspaceSide.js.map +0 -0
- package/dist/{es5 → esm}/components/interfaces.js +0 -0
- package/dist/{es5 → esm}/components/interfaces.js.map +0 -0
- package/dist/{es5 → esm}/configuration/constants.js +0 -0
- package/dist/{es5 → esm}/configuration/constants.js.map +0 -0
- package/dist/esm/extensions/codemirror/CodeMirror.js +34 -0
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -0
- package/dist/esm/extensions/index.js +3 -0
- package/dist/esm/extensions/index.js.map +1 -0
- package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeDefault.js +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeStep.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeStep.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeTools.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeTools.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/edges/edgeTypes.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/edges/edgeTypes.js.map +0 -0
- package/dist/esm/extensions/react-flow/edges/getSmoothStepPath.js +119 -0
- package/dist/esm/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -0
- package/dist/{es5 → esm}/extensions/react-flow/edges/utils.js +21 -20
- package/dist/esm/extensions/react-flow/edges/utils.js.map +1 -0
- package/dist/{es5 → esm}/extensions/react-flow/handles/HandleContent.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/handles/HandleContent.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/handles/HandleDefault.js +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/handles/HandleDefault.js.map +0 -0
- package/dist/esm/extensions/react-flow/index.js +12 -0
- package/dist/{es5 → esm}/extensions/react-flow/index.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/minimap/utils.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/minimap/utils.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContent.js +10 -8
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -0
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContentExtension.js +5 -4
- package/dist/esm/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -0
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeDefault.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeDefault.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeTools.js +14 -12
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -0
- package/dist/{es5 → esm}/extensions/react-flow/nodes/nodeTypes.js +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/nodes/nodeTypes.js.map +0 -0
- package/dist/esm/index.js +97 -0
- package/dist/{es5 → esm}/index.js.map +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Button/AffirmativeButton.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Button/AffirmativeButton.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/Button/Button.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Button/Button.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/Button/DismissiveButton.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Button/DismissiveButton.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/Button/DisruptiveButton.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Button/DisruptiveButton.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/Checkbox/Checkbox.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Checkbox/Checkbox.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/Radio/RadioButton.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Radio/RadioButton.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/Tabs/Tabs.js +1 -1
- package/dist/{es5 → esm}/legacy-replacements/Tabs/Tabs.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/TextField/TextField.js +4 -4
- package/dist/{es5 → esm}/legacy-replacements/TextField/TextField.js.map +0 -0
- package/dist/{es5 → esm}/legacy-replacements/index.js +9 -9
- package/dist/{es5 → esm}/legacy-replacements/index.js.map +0 -0
- package/dist/{es5 → esm}/package.json +0 -0
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +9 -0
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +2 -0
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +1 -2
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +1 -2
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +1 -2
- package/dist/types/common/utils/stringUtils.d.ts +2 -0
- package/dist/types/components/AutoSuggestion/SingleLineCodeEditor.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +9 -4
- package/dist/types/components/Form/FieldItemRow.d.ts +1 -0
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +17 -10
- 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/Typography/HtmlContentBlock.d.ts +15 -5
- package/dist/types/components/Typography/classnames.d.ts +1 -0
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +35 -0
- package/dist/types/extensions/index.d.ts +2 -0
- package/dist/types/extensions/react-flow/edges/getSmoothStepPath.d.ts +18 -0
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +8 -2
- package/dist/types/extensions/react-flow/nodes/NodeContentExtension.d.ts +5 -1
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +7 -1
- package/dist/types/index.d.ts +2 -4
- package/package.json +29 -19
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +6 -6
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +27 -14
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +11 -3
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +5 -1
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +1 -1
- package/src/cmem/react-flow/_nodes.scss +12 -6
- package/src/cmem/react-flow/configuration/_colors-graph.scss +35 -0
- package/src/cmem/react-flow/configuration/_colors-linking.scss +29 -0
- package/src/cmem/react-flow/configuration/_colors-workflow.scss +22 -0
- package/src/cmem/react-flow/configuration/_colors.scss +3 -3
- package/src/cmem/react-flow/configuration/graph.ts +0 -2
- package/src/cmem/react-flow/configuration/linking.ts +0 -2
- package/src/cmem/react-flow/configuration/workflow.ts +0 -2
- package/src/common/utils/CssCustomProperties.ts +123 -0
- package/src/common/utils/getColorConfiguration.ts +21 -0
- package/src/common/utils/stringUtils.ts +2 -0
- package/src/components/Accordion/accordion.scss +8 -2
- package/src/components/Application/ApplicationContent.tsx +0 -5
- package/src/components/Application/ApplicationTitle.tsx +0 -5
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +2 -1
- package/src/components/AutoSuggestion/SingleLineCodeEditor.tsx +3 -3
- package/src/components/AutocompleteField/AutoCompleteField.tsx +6 -4
- 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 +1 -1
- 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/Dialog/Modal.tsx +1 -1
- package/src/components/Form/FieldItem.tsx +3 -3
- package/src/components/Form/FieldItemRow.tsx +3 -5
- package/src/components/Form/FieldSet.tsx +1 -0
- package/src/components/Icon/IconButton.tsx +2 -2
- package/src/components/Iframe/Iframe.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/MultiSelect/MultiSelect.stories.tsx +15 -7
- package/src/components/MultiSelect/MultiSelect.tsx +65 -62
- 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 +3 -3
- package/src/components/RadioButton/radiobutton.scss +4 -0
- package/src/components/Spinner/Spinner.tsx +2 -1
- package/src/components/Switch/switch.scss +1 -0
- package/src/components/Tabs/Tab.tsx +1 -2
- package/src/components/Tabs/Tabs.tsx +1 -5
- package/src/components/Tabs/stories/Tabs.stories.tsx +3 -3
- package/src/components/Tag/TagList.tsx +1 -0
- package/src/components/Tag/tag.scss +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/extensions/_index.scss +5 -0
- package/src/extensions/codemirror/CodeMirror.stories.tsx +26 -0
- package/src/extensions/codemirror/CodeMirror.tsx +82 -0
- package/src/extensions/codemirror/_codemirror.scss +31 -0
- package/src/extensions/index.ts +2 -0
- 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/getSmoothStepPath.ts +118 -0
- package/src/extensions/react-flow/edges/utils.ts +21 -29
- package/src/extensions/react-flow/minimap/MiniMap.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeContent.tsx +13 -7
- package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +6 -0
- package/src/extensions/react-flow/nodes/NodeTools.tsx +25 -9
- package/src/extensions/react-flow/nodes/_nodes.scss +31 -12
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +10 -1
- package/src/extensions/react-flow/nodes/stories/NodeContentExtension.stories.tsx +23 -0
- package/src/index.scss +1 -4
- package/src/index.ts +4 -4
- package/dist/cjs/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
- package/dist/cjs/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
- package/dist/cjs/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
- package/dist/es5/cmem/ActivityControl/ActivityControlWidget.js.map +0 -1
- package/dist/es5/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +0 -1
- package/dist/es5/cmem/ActivityControl/index.js +0 -4
- package/dist/es5/cmem/ContentBlobToggler/index.js +0 -3
- package/dist/es5/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
- package/dist/es5/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
- package/dist/es5/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
- package/dist/es5/cmem/react-flow/configuration/graph.js.map +0 -1
- package/dist/es5/cmem/react-flow/configuration/linking.js.map +0 -1
- package/dist/es5/cmem/react-flow/configuration/workflow.js.map +0 -1
- package/dist/es5/components/Application/ApplicationContent.js.map +0 -1
- package/dist/es5/components/Application/ApplicationTitle.js.map +0 -1
- package/dist/es5/components/AutoSuggestion/AutoSuggestion.js.map +0 -1
- package/dist/es5/components/AutocompleteField/AutoCompleteField.js.map +0 -1
- package/dist/es5/components/Card/Card.js.map +0 -1
- package/dist/es5/components/Card/index.js +0 -9
- package/dist/es5/components/Form/FieldItemRow.js +0 -24
- package/dist/es5/components/Form/FieldItemRow.js.map +0 -1
- package/dist/es5/components/Form/FieldSet.js.map +0 -1
- package/dist/es5/components/MultiSelect/MultiSelect.js.map +0 -1
- package/dist/es5/components/Notification/Notification.js.map +0 -1
- package/dist/es5/components/OverviewItem/index.js +0 -8
- package/dist/es5/components/PropertyValuePair/index.js +0 -6
- package/dist/es5/components/Spinner/Spinner.js.map +0 -1
- package/dist/es5/components/Tabs/Tabs.js.map +0 -1
- package/dist/es5/components/Tag/TagList.js.map +0 -1
- package/dist/es5/components/Typography/HtmlContentBlock.js +0 -30
- package/dist/es5/components/Typography/HtmlContentBlock.js.map +0 -1
- package/dist/es5/extensions/react-flow/edges/utils.js.map +0 -1
- package/dist/es5/extensions/react-flow/index.js +0 -12
- package/dist/es5/extensions/react-flow/nodes/NodeContent.js.map +0 -1
- package/dist/es5/extensions/react-flow/nodes/NodeContentExtension.js.map +0 -1
- package/dist/es5/extensions/react-flow/nodes/NodeTools.js.map +0 -1
- package/dist/es5/index.js +0 -99
- package/src/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
- package/src/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
- package/src/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Based on CSS Tricks tutorial.
|
|
3
|
+
* @see https://css-tricks.com/how-to-get-all-custom-properties-on-a-page-in-javascript/
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
interface getLocalCssStyleRulesProps {
|
|
7
|
+
cssRuleType?: "CSSStyleRule";
|
|
8
|
+
selectorText?: string;
|
|
9
|
+
}
|
|
10
|
+
interface getLocalCssStyleRulePropertiesProps extends getLocalCssStyleRulesProps {
|
|
11
|
+
propertyType?: "all" | "normal" | "custom";
|
|
12
|
+
}
|
|
13
|
+
interface getCustomPropertiesProps extends getLocalCssStyleRulesProps {
|
|
14
|
+
removeDashPrefix?: boolean;
|
|
15
|
+
returnObject?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default class CssCustomProperties {
|
|
19
|
+
|
|
20
|
+
getterDefaultProps = {} as getCustomPropertiesProps;
|
|
21
|
+
customprops = {};
|
|
22
|
+
|
|
23
|
+
constructor(props: getCustomPropertiesProps = {}) {
|
|
24
|
+
this.getterDefaultProps = props;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Methods
|
|
28
|
+
|
|
29
|
+
customProperties = (props: getCustomPropertiesProps = {}) => {
|
|
30
|
+
// FIXME:
|
|
31
|
+
// in case of performance issues results should get saved at least into intern variables
|
|
32
|
+
// other cache strategies could be also tested
|
|
33
|
+
if (Object.keys(this.customprops).length > 1) {
|
|
34
|
+
return this.customprops;
|
|
35
|
+
}
|
|
36
|
+
const customprops = CssCustomProperties.listCustomProperties({
|
|
37
|
+
...this.getterDefaultProps,
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
this.customprops = customprops;
|
|
41
|
+
return customprops;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static listLocalStylesheets = () => {
|
|
45
|
+
if (document && document.styleSheets) {
|
|
46
|
+
return Array.from(document.styleSheets)
|
|
47
|
+
.filter((stylesheet) => {
|
|
48
|
+
// is inline stylesheet or from same domain
|
|
49
|
+
if (!stylesheet.href) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
return stylesheet.href.indexOf(window.location.origin) === 0;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static listLocalCssRules = () => {
|
|
60
|
+
return CssCustomProperties.listLocalStylesheets()
|
|
61
|
+
.map((stylesheet) => {
|
|
62
|
+
return Array.from(stylesheet.cssRules);
|
|
63
|
+
})
|
|
64
|
+
.flat();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static listLocalCssStyleRules = (filter: getLocalCssStyleRulesProps = {}) => {
|
|
68
|
+
const {cssRuleType = "CSSStyleRule", selectorText} = filter;
|
|
69
|
+
return CssCustomProperties.listLocalCssRules()
|
|
70
|
+
.filter((cssrule) => {
|
|
71
|
+
if (cssrule.constructor.name !== cssRuleType) { return false; }
|
|
72
|
+
if (!!selectorText && cssrule.selectorText !== selectorText) { return false; }
|
|
73
|
+
return true;
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static listLocalCssStyleRuleProperties = (filter: getLocalCssStyleRulePropertiesProps = {}) => {
|
|
78
|
+
const { propertyType = "all", ...otherFilters } = filter;
|
|
79
|
+
return CssCustomProperties.listLocalCssStyleRules(otherFilters)
|
|
80
|
+
.map((cssrule) => {
|
|
81
|
+
return [...cssrule.style]
|
|
82
|
+
.map((propertyname) => {
|
|
83
|
+
return [
|
|
84
|
+
propertyname.trim(),
|
|
85
|
+
cssrule.style.getPropertyValue(propertyname).trim()
|
|
86
|
+
];
|
|
87
|
+
});
|
|
88
|
+
})
|
|
89
|
+
.flat()
|
|
90
|
+
.filter((declaration) => {
|
|
91
|
+
switch(propertyType) {
|
|
92
|
+
case "normal":
|
|
93
|
+
return declaration[0].indexOf("--") !== 0;
|
|
94
|
+
case "custom":
|
|
95
|
+
return declaration[0].indexOf("--") === 0;
|
|
96
|
+
}
|
|
97
|
+
return true; // case "all"
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static listCustomProperties = (props: getCustomPropertiesProps = {}) => {
|
|
102
|
+
const {
|
|
103
|
+
removeDashPrefix = true,
|
|
104
|
+
returnObject = true,
|
|
105
|
+
...filterProps
|
|
106
|
+
} = props;
|
|
107
|
+
|
|
108
|
+
const customProperties = CssCustomProperties.listLocalCssStyleRuleProperties({
|
|
109
|
+
...filterProps,
|
|
110
|
+
propertyType: "custom",
|
|
111
|
+
}).map((declaration) => {
|
|
112
|
+
if (removeDashPrefix) {
|
|
113
|
+
return [
|
|
114
|
+
declaration[0].substr(2),
|
|
115
|
+
declaration[1]
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
return declaration;
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
return returnObject ? Object.fromEntries(customProperties) : customProperties;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import CssCustomProperties from "./CssCustomProperties";
|
|
2
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
|
+
|
|
4
|
+
// Configurations can be found in `src/cmem/react-flow/configuration/_colors-*.scss`
|
|
5
|
+
type colorconfigs = "react-flow-graph" | "react-flow-linking" | "react-flow-workflow";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Read and returns color values provided by CSS custom properties.
|
|
9
|
+
* They are defined for special CSS classes.
|
|
10
|
+
* Currently color configurations for the react flow editors are supported.
|
|
11
|
+
**/
|
|
12
|
+
const getColorConfiguration = (configId: colorconfigs) => {
|
|
13
|
+
return new CssCustomProperties({
|
|
14
|
+
selectorText: `.${eccgui}-configuration--colors__${configId}`,
|
|
15
|
+
cssRuleType: "CSSStyleRule",
|
|
16
|
+
removeDashPrefix: true,
|
|
17
|
+
returnObject: true,
|
|
18
|
+
}).customProperties();
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default getColorConfiguration;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
// changes
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
.#{$prefix}--accordion__heading {
|
|
8
7
|
min-height: mini-units(5);
|
|
9
8
|
align-items: center;
|
|
@@ -33,9 +32,16 @@
|
|
|
33
32
|
.#{$prefix}--accordion__content {
|
|
34
33
|
padding: $eccgui-size-block-whitespace / 2;
|
|
35
34
|
margin: 0 calc(1rem + #{$eccgui-size-block-whitespace / 2}) 0 $eccgui-size-block-whitespace / 2;
|
|
35
|
+
display: block;
|
|
36
|
+
opacity: 0;
|
|
37
|
+
position: fixed;
|
|
38
|
+
left: -5000em;
|
|
36
39
|
|
|
37
40
|
.#{$prefix}--accordion__item--active & {
|
|
38
41
|
padding: $eccgui-size-block-whitespace / 2 $eccgui-size-block-whitespace / 2 $eccgui-size-block-whitespace $eccgui-size-block-whitespace / 2;
|
|
42
|
+
opacity: 1;
|
|
43
|
+
position: static;
|
|
44
|
+
left: auto;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.#{$prefix}--accordion--start & {
|
|
@@ -47,7 +53,7 @@
|
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
*, *::before, *::after {
|
|
50
|
-
box-sizing:
|
|
56
|
+
box-sizing: inherit;
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
59
|
|
|
@@ -30,11 +30,6 @@ function ApplicationContent({
|
|
|
30
30
|
isApplicationSidebarExpanded = false,
|
|
31
31
|
isApplicationSidebarRail = false,
|
|
32
32
|
htmlMainProps,
|
|
33
|
-
/*
|
|
34
|
-
TODO: type definitions do not include data attributes because of their infinite number of possible names, so we
|
|
35
|
-
need to solve this by filtering out all other props, or create a stack of allowed data attributes or using
|
|
36
|
-
a combined process of dynamic keys and template mappings in typescript
|
|
37
|
-
*/
|
|
38
33
|
...otherPropsShouldOnlyBeUsedForDataAttributes
|
|
39
34
|
}: IApplicationContentProps) {
|
|
40
35
|
|
|
@@ -54,11 +54,6 @@ function ApplicationTitle({
|
|
|
54
54
|
isAlignedWithSidebar=false,
|
|
55
55
|
isApplicationSidebarExpanded,
|
|
56
56
|
htmlAProps,
|
|
57
|
-
/*
|
|
58
|
-
TODO: type definitions do not include data attributes because of their infinite number of possible names, so we
|
|
59
|
-
need to solve this by filtering out all other props, or create a stack of allowed data attributes or using
|
|
60
|
-
a combined process of dynamic keys and template mappings in typescript
|
|
61
|
-
*/
|
|
62
57
|
...otherPropsShouldOnlyBeUsedForDataAttributes
|
|
63
58
|
}: IApplicationTitleProps) {
|
|
64
59
|
|
|
@@ -182,6 +182,7 @@ const AutoSuggestion = ({
|
|
|
182
182
|
return () => marker.clear()
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
+
return;
|
|
185
186
|
}, [highlightedElement, selectedTextRanges, editorInstance])
|
|
186
187
|
|
|
187
188
|
//handle linting
|
|
@@ -189,7 +190,6 @@ const AutoSuggestion = ({
|
|
|
189
190
|
const parseError = validationResponse?.parseError;
|
|
190
191
|
if (parseError && editorInstance) {
|
|
191
192
|
const { message, start, end } = parseError;
|
|
192
|
-
// TODO: Display error message
|
|
193
193
|
editorInstance.getDoc().getEditor()
|
|
194
194
|
const marker = editorInstance.markText(
|
|
195
195
|
{ line: 0, ch: start },
|
|
@@ -267,6 +267,7 @@ const AutoSuggestion = ({
|
|
|
267
267
|
handleEditorInputChange(value, cursorPosition)
|
|
268
268
|
return handleEditorInputChange.cancel
|
|
269
269
|
}
|
|
270
|
+
return;
|
|
270
271
|
}, [cursorPosition, value, isFocused, handleEditorInputChange]);
|
|
271
272
|
|
|
272
273
|
// Trigger input validation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "codemirror/addon/display/placeholder"
|
|
1
|
+
import "codemirror/addon/display/placeholder.js"
|
|
2
2
|
import "codemirror/mode/sparql/sparql.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Controlled as ControlledEditor } from "react-codemirror2";
|
|
@@ -74,7 +74,7 @@ const SingleLineCodeEditor = ({
|
|
|
74
74
|
placeholder,
|
|
75
75
|
scrollbarStyle: showScrollBar ? "native" : "null"
|
|
76
76
|
}}
|
|
77
|
-
onSelection={(
|
|
77
|
+
onSelection={(_editor, data) => {
|
|
78
78
|
if(Array.isArray(data?.ranges)) {
|
|
79
79
|
onSelection(data.ranges
|
|
80
80
|
.map((r: any) => ({from: r.from().ch, to: r.to().ch}))
|
|
@@ -84,7 +84,7 @@ const SingleLineCodeEditor = ({
|
|
|
84
84
|
onCursor={(editor, data) => {
|
|
85
85
|
onCursorChange(data, editor.cursorCoords(true, "div"));
|
|
86
86
|
}}
|
|
87
|
-
onBeforeChange={(
|
|
87
|
+
onBeforeChange={(_editor, _data, value) => {
|
|
88
88
|
const trimmedValue = value.replace(/\n/g, "");
|
|
89
89
|
onChange(trimmedValue);
|
|
90
90
|
}}
|
|
@@ -213,6 +213,7 @@ export function AutoCompleteField<T extends any, UPDATE_VALUE extends any>(props
|
|
|
213
213
|
setListLoading(false);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
+
return;
|
|
216
217
|
},
|
|
217
218
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
218
219
|
[hasFocus, query]
|
|
@@ -272,7 +273,8 @@ export function AutoCompleteField<T extends any, UPDATE_VALUE extends any>(props
|
|
|
272
273
|
// Disable highlighting, since we used empty string search
|
|
273
274
|
enableHighlighting = false;
|
|
274
275
|
// Put selected item at the top if it is not in the result list
|
|
275
|
-
if (!!selectedItem && itemIndexOf(emptyStringResults, selectedItem)
|
|
276
|
+
if (!!selectedItem && itemIndexOf(emptyStringResults, selectedItem) > -1) {
|
|
277
|
+
emptyStringResults.splice(itemIndexOf(emptyStringResults, selectedItem), 1)
|
|
276
278
|
result = [selectedItem, ...emptyStringResults];
|
|
277
279
|
} else {
|
|
278
280
|
result = emptyStringResults;
|
|
@@ -346,7 +348,7 @@ export function AutoCompleteField<T extends any, UPDATE_VALUE extends any>(props
|
|
|
346
348
|
};
|
|
347
349
|
const updatedPopOverProps: Partial<IPopoverProps> = {
|
|
348
350
|
minimal: true,
|
|
349
|
-
position: "bottom",
|
|
351
|
+
position: "bottom-left",
|
|
350
352
|
popoverClassName: `${eccgui}-autocompletefield__options`,
|
|
351
353
|
wrapperTagName: "div",
|
|
352
354
|
boundary: "window",
|
|
@@ -385,12 +387,12 @@ export function AutoCompleteField<T extends any, UPDATE_VALUE extends any>(props
|
|
|
385
387
|
onQueryChange={(q) => setQuery(q)}
|
|
386
388
|
closeOnSelect={true}
|
|
387
389
|
query={query}
|
|
388
|
-
//
|
|
390
|
+
// This leads to odd compile errors without "as any"
|
|
389
391
|
popoverProps={updatedPopOverProps as any}
|
|
390
392
|
selectedItem={selectedItem}
|
|
391
393
|
fill
|
|
392
394
|
{...createNewItemProps}
|
|
393
|
-
//
|
|
395
|
+
// This leads to odd compile errors without "as any"
|
|
394
396
|
inputProps={updatedInputProps as any}
|
|
395
397
|
itemListRenderer={listLoading ? () => <Menu><MenuItem disabled={true} text={<Spinner position={"inline"} />} style={fieldWidthLimits} /></Menu> : undefined}
|
|
396
398
|
/>
|
|
@@ -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
|
|
@@ -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
|
{
|
|
@@ -47,7 +47,7 @@ function Modal({
|
|
|
47
47
|
...otherProps
|
|
48
48
|
}: ModalProps) {
|
|
49
49
|
|
|
50
|
-
const alteredChildren = React.Children.map(children, (child
|
|
50
|
+
const alteredChildren = React.Children.map(children, (child) => {
|
|
51
51
|
if ((child as React.ReactElement).type && (child as React.ReactElement).type === Card) {
|
|
52
52
|
return React.cloneElement(
|
|
53
53
|
child as React.ReactElement,
|
|
@@ -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,13 +2,11 @@ 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
|
-
return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")}>{children}</div>;
|
|
9
|
+
return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")} {...otherProps}>{children}</div>;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
export default FieldItemRow;
|
|
@@ -10,7 +10,7 @@ interface IconButtonProps extends ButtonProps {
|
|
|
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
|
|
@@ -60,7 +60,7 @@ export const Iframe = React.forwardRef<HTMLIFrameElement, IframeProps>(({
|
|
|
60
60
|
const classNames = `${eccgui}-iframe` +
|
|
61
61
|
(!!useViewportHeight ? ` ${eccgui}-iframe--${useViewportHeight}height` : "") +
|
|
62
62
|
(!!useAvailableSpace ? ` ${eccgui}-iframe--useavailablespace` : "");
|
|
63
|
-
const { onLoad = (
|
|
63
|
+
const { onLoad = ()=>{}, style, ...otherOriginalIframeProps } = htmlIframeProps;
|
|
64
64
|
return (
|
|
65
65
|
<div className={classNames}>
|
|
66
66
|
{!isLoaded && <Spinner />}
|
|
@@ -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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
-
import {
|
|
3
|
+
import { loremIpsum } from "react-lorem-ipsum";
|
|
4
4
|
|
|
5
5
|
import MultiSelectExample from "./MultiSelect";
|
|
6
6
|
|
|
@@ -36,8 +36,16 @@ const Template: ComponentStory<typeof MultiSelectExample> = (args) => <MultiSele
|
|
|
36
36
|
|
|
37
37
|
export const Default = Template.bind({});
|
|
38
38
|
|
|
39
|
-
const
|
|
40
|
-
|
|
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];
|
|
41
49
|
return { testLabel, testId: `${testLabel}-id` };
|
|
42
50
|
});
|
|
43
51
|
|
|
@@ -45,8 +53,8 @@ Default.args = {
|
|
|
45
53
|
items,
|
|
46
54
|
canCreateNewItem: true,
|
|
47
55
|
prePopulateWithItems: false,
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
itemId: item => item.testId,
|
|
57
|
+
itemLabel: item => item.testLabel,
|
|
50
58
|
openOnKeyDown: true,
|
|
51
59
|
};
|
|
52
60
|
|
|
@@ -58,6 +66,6 @@ openDropdownWhenFocused.args = {
|
|
|
58
66
|
items,
|
|
59
67
|
canCreateNewItem: true,
|
|
60
68
|
prePopulateWithItems: false,
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
itemId: item => item.testId,
|
|
70
|
+
itemLabel: item => item.testLabel,
|
|
63
71
|
};
|