@eccenca/gui-elements 22.1.0-rc.1 → 23.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -4
- package/README.md +1 -11
- 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/ReactFlow/ReactFlow.js +7 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/customLabel.js +13 -0
- package/dist/cjs/cmem/react-flow/configuration/customLabel.js.map +1 -0
- 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/inverseEdge.js +13 -0
- package/dist/cjs/cmem/react-flow/configuration/inverseEdge.js.map +1 -0
- 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/components/AutoSuggestion/AutoSuggestion.js +2 -0
- 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 +1 -0
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.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/Dialog/SimpleDialog.js +9 -4
- package/dist/cjs/components/Dialog/SimpleDialog.js.map +1 -1
- package/dist/cjs/components/Form/FieldItemRow.js +1 -1
- 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/Icon/canonicalIconNames.js +10 -0
- package/dist/cjs/components/Icon/canonicalIconNames.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/Iframe/IframeModal.js +2 -6
- package/dist/cjs/components/Iframe/IframeModal.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemList.js +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +1 -0
- package/dist/cjs/components/Spinner/Spinner.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/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 +5 -5
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/index.js +5 -1
- package/dist/cjs/extensions/react-flow/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/markers/MarkerArrowClosedInverse.js +13 -0
- package/dist/cjs/extensions/react-flow/markers/MarkerArrowClosedInverse.js.map +1 -0
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js +15 -0
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -0
- 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/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 +2 -2
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlWidget.js.map +0 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +1 -1
- package/dist/{es5 → esm}/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +0 -0
- package/dist/{es5 → esm}/cmem/ActivityControl/SilkActivityControl.js +4 -4
- package/dist/{es5 → esm}/cmem/ActivityControl/SilkActivityControl.js.map +0 -0
- 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 +11 -5
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -0
- package/dist/esm/cmem/react-flow/configuration/customLabel.js +10 -0
- package/dist/esm/cmem/react-flow/configuration/customLabel.js.map +1 -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/esm/cmem/react-flow/configuration/inverseEdge.js +10 -0
- package/dist/esm/cmem/react-flow/configuration/inverseEdge.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/{es5 → esm}/common/utils/stringUtils.js +0 -0
- package/dist/{es5 → esm}/common/utils/stringUtils.js.map +0 -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 +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationContent.js.map +0 -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 +1 -1
- package/dist/{es5 → esm}/components/Application/ApplicationTitle.js.map +0 -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 -3
- 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 +3 -2
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -0
- package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbItem.js +2 -2
- 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 +3 -3
- package/dist/{es5 → esm}/components/Button/Button.js.map +0 -0
- package/dist/{es5 → esm}/components/Card/Card.js +1 -1
- package/dist/{es5 → esm}/components/Card/Card.js.map +0 -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 +29 -8
- package/dist/esm/components/Dialog/SimpleDialog.js.map +1 -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 +10 -0
- package/dist/{es5 → esm}/components/Icon/canonicalIconNames.js.map +1 -1
- 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 +5 -25
- package/dist/esm/components/Iframe/IframeModal.js.map +1 -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 +5 -5
- package/dist/{es5 → esm}/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/{es5 → esm}/components/Notification/Notification.js +3 -3
- package/dist/{es5 → esm}/components/Notification/Notification.js.map +0 -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 +2 -2
- 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 +2 -1
- 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 +2 -2
- package/dist/{es5 → esm}/components/Tabs/Tab.js.map +0 -0
- 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 +2 -2
- package/dist/{es5 → esm}/components/Tabs/Tabs.js.map +0 -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/{es5 → esm}/components/Typography/HtmlContentBlock.js +2 -2
- package/dist/{es5 → esm}/components/Typography/HtmlContentBlock.js.map +0 -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 +1 -1
- package/dist/{es5 → esm}/components/Typography/classnames.js.map +0 -0
- 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 +7 -7
- package/dist/esm/extensions/react-flow/edges/EdgeDefault.js.map +1 -0
- 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/{es5 → esm}/extensions/react-flow/edges/getSmoothStepPath.js +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/edges/getSmoothStepPath.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/edges/utils.js +1 -1
- package/dist/{es5 → esm}/extensions/react-flow/edges/utils.js.map +0 -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 +14 -0
- package/dist/{es5 → esm}/extensions/react-flow/index.js.map +1 -1
- package/dist/esm/extensions/react-flow/markers/MarkerArrowClosedInverse.js +6 -0
- package/dist/esm/extensions/react-flow/markers/MarkerArrowClosedInverse.js.map +1 -0
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js +8 -0
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -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 +3 -3
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContent.js.map +0 -0
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContentExtension.js +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContentExtension.js.map +0 -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 +2 -2
- package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeTools.js.map +0 -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/react-flow/ReactFlow/ReactFlow.d.ts +2 -3
- package/dist/types/cmem/react-flow/configuration/customLabel.d.ts +8 -0
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +1 -2
- package/dist/types/cmem/react-flow/configuration/inverseEdge.d.ts +8 -0
- 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/components/AutoSuggestion/SingleLineCodeEditor.d.ts +1 -1
- package/dist/types/components/Dialog/SimpleDialog.d.ts +5 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +1 -1
- 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/EdgeDefault.d.ts +3 -0
- package/dist/types/extensions/react-flow/index.d.ts +2 -0
- package/dist/types/extensions/react-flow/markers/MarkerArrowClosedInverse.d.ts +2 -0
- package/dist/types/extensions/react-flow/markers/ReactFlowMarkers.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +15 -10
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +1 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +115 -39
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +10 -3
- 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/customLabel.ts +11 -0
- package/src/cmem/react-flow/configuration/graph.ts +0 -2
- package/src/cmem/react-flow/configuration/inverseEdge.ts +11 -0
- 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 +133 -0
- package/src/common/utils/getColorConfiguration.ts +21 -0
- package/src/components/Accordion/accordion.scss +8 -2
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +2 -0
- package/src/components/AutoSuggestion/SingleLineCodeEditor.tsx +3 -3
- package/src/components/AutocompleteField/AutoCompleteField.tsx +1 -0
- package/src/components/Dialog/Modal.tsx +1 -1
- package/src/components/Dialog/SimpleDialog.tsx +25 -4
- package/src/components/Form/FieldItemRow.tsx +1 -1
- package/src/components/Form/FieldSet.tsx +1 -0
- package/src/components/Icon/canonicalIconNames.tsx +12 -0
- package/src/components/Iframe/Iframe.tsx +1 -1
- package/src/components/Iframe/IframeModal.tsx +6 -17
- package/src/components/MultiSelect/MultiSelect.tsx +2 -2
- package/src/components/OverviewItem/OverviewItemList.tsx +1 -1
- package/src/components/Spinner/Spinner.tsx +1 -0
- package/src/components/Tag/TagList.tsx +1 -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/edges/EdgeDefault.tsx +7 -2
- package/src/extensions/react-flow/index.ts +2 -0
- package/src/extensions/react-flow/markers/MarkerArrowClosedInverse.tsx +25 -0
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +13 -0
- package/src/extensions/react-flow/minimap/MiniMap.tsx +1 -1
- package/src/index.scss +1 -4
- package/src/index.ts +1 -1
- 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/index.js +0 -4
- package/dist/es5/cmem/ContentBlobToggler/index.js +0 -3
- package/dist/es5/cmem/react-flow/ReactFlow/ReactFlow.js.map +0 -1
- 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/AutoSuggestion/AutoSuggestion.js.map +0 -1
- package/dist/es5/components/AutocompleteField/AutoCompleteField.js.map +0 -1
- package/dist/es5/components/Card/index.js +0 -9
- package/dist/es5/components/Dialog/SimpleDialog.js.map +0 -1
- package/dist/es5/components/Form/FieldItemRow.js +0 -23
- package/dist/es5/components/Form/FieldItemRow.js.map +0 -1
- package/dist/es5/components/Form/FieldSet.js.map +0 -1
- package/dist/es5/components/Iframe/IframeModal.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/Tag/TagList.js.map +0 -1
- package/dist/es5/extensions/react-flow/edges/EdgeDefault.js.map +0 -1
- package/dist/es5/extensions/react-flow/index.js +0 -12
- package/dist/es5/index.js +0 -97
- 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
|
@@ -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
|
|
|
@@ -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
|
|
@@ -266,6 +267,7 @@ const AutoSuggestion = ({
|
|
|
266
267
|
handleEditorInputChange(value, cursorPosition)
|
|
267
268
|
return handleEditorInputChange.cancel
|
|
268
269
|
}
|
|
270
|
+
return;
|
|
269
271
|
}, [cursorPosition, value, isFocused, handleEditorInputChange]);
|
|
270
272
|
|
|
271
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
|
}}
|
|
@@ -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,
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
import Divider from "./../Separation/Divider";
|
|
17
17
|
import Modal, { ModalProps } from "./Modal";
|
|
18
18
|
import {TestableComponent} from "../interfaces";
|
|
19
|
+
import IconButton from "../Icon/IconButton";
|
|
19
20
|
|
|
20
21
|
export interface SimpleDialogProps extends ModalProps, TestableComponent {
|
|
21
22
|
/**
|
|
@@ -49,6 +50,10 @@ export interface SimpleDialogProps extends ModalProps, TestableComponent {
|
|
|
49
50
|
intent?: IntentTypes;
|
|
50
51
|
/** Optional props for the wrapper div element inside the modal. */
|
|
51
52
|
wrapperDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
|
|
53
|
+
/** If a full screen toggler is shown that will allow to switch to full screen mode. */
|
|
54
|
+
showFullScreenToggler?: boolean
|
|
55
|
+
/** Starts the modal in full screen mode. The show full screen toggler will be automatically enabled. */
|
|
56
|
+
startInFullScreenMode?: boolean
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
/**
|
|
@@ -66,8 +71,13 @@ function SimpleDialog({
|
|
|
66
71
|
preventSimpleClosing = false,
|
|
67
72
|
intent,
|
|
68
73
|
headerOptions,
|
|
74
|
+
showFullScreenToggler = false,
|
|
75
|
+
startInFullScreenMode = false,
|
|
76
|
+
size,
|
|
69
77
|
...otherProps
|
|
70
78
|
}: SimpleDialogProps) {
|
|
79
|
+
const [displayFullscreen, setDisplayFullscreen] = React.useState<boolean>(startInFullScreenMode);
|
|
80
|
+
const showToggler = startInFullScreenMode || showFullScreenToggler
|
|
71
81
|
const intentClassName = intent ? `${eccgui}-intent--${intent}` : "";
|
|
72
82
|
return (
|
|
73
83
|
<Modal
|
|
@@ -76,21 +86,32 @@ function SimpleDialog({
|
|
|
76
86
|
data-test-id={otherProps["data-test-id"] ?? "simpleDialogWidget"}
|
|
77
87
|
canOutsideClickClose={canOutsideClickClose || !preventSimpleClosing}
|
|
78
88
|
canEscapeKeyClose={canEscapeKeyClose || !preventSimpleClosing}
|
|
89
|
+
size={displayFullscreen ? "fullscreen" : size}
|
|
79
90
|
>
|
|
80
91
|
<Card className={intentClassName}
|
|
81
92
|
>
|
|
82
|
-
{(title || headerOptions)
|
|
93
|
+
{(title || headerOptions || showToggler) ? (
|
|
83
94
|
<CardHeader>
|
|
84
95
|
<CardTitle
|
|
85
96
|
className={intentClassName}
|
|
86
97
|
>
|
|
87
98
|
{title}
|
|
88
99
|
</CardTitle>
|
|
89
|
-
{headerOptions
|
|
90
|
-
<CardOptions>
|
|
100
|
+
{(headerOptions || showToggler) ? (
|
|
101
|
+
<CardOptions>
|
|
102
|
+
{ headerOptions }
|
|
103
|
+
{showToggler && (
|
|
104
|
+
<IconButton
|
|
105
|
+
name={displayFullscreen ? "toggler-minimize" : "toggler-maximize"}
|
|
106
|
+
onClick={() => setDisplayFullscreen(!displayFullscreen)}
|
|
107
|
+
/>
|
|
108
|
+
)}
|
|
109
|
+
</CardOptions>
|
|
110
|
+
) : (
|
|
111
|
+
<></>
|
|
91
112
|
)}
|
|
92
113
|
</CardHeader>
|
|
93
|
-
)}
|
|
114
|
+
) : null}
|
|
94
115
|
{hasBorder && <Divider />}
|
|
95
116
|
<CardContent>{children}</CardContent>
|
|
96
117
|
{hasBorder && <Divider />}
|
|
@@ -6,7 +6,7 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
|
6
6
|
*/
|
|
7
7
|
/** Allows to layout field items horizontally. */
|
|
8
8
|
function FieldItemRow({ children, className, ...otherProps }: any) {
|
|
9
|
-
return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")}>{children}</div>;
|
|
9
|
+
return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")} {...otherProps}>{children}</div>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export default FieldItemRow;
|
|
@@ -67,6 +67,8 @@ export type ValidIconName = "application-dataintegration"
|
|
|
67
67
|
| "operation-comparison"
|
|
68
68
|
| "operation-transform"
|
|
69
69
|
| "operation-aggregation"
|
|
70
|
+
| "operation-commit"
|
|
71
|
+
| "operation-sharelink"
|
|
70
72
|
| "data-sourcepath"
|
|
71
73
|
| "data-targetpath"
|
|
72
74
|
| "list-sort"
|
|
@@ -453,6 +455,16 @@ const canonicalIconNames: Record<ValidIconName, IconSized> = {
|
|
|
453
455
|
normal: icons.DataCollection20,
|
|
454
456
|
large: icons.DataCollection32
|
|
455
457
|
},
|
|
458
|
+
"operation-commit": {
|
|
459
|
+
small: icons.Commit16,
|
|
460
|
+
normal: icons.Commit20,
|
|
461
|
+
large: icons.Commit32
|
|
462
|
+
},
|
|
463
|
+
"operation-sharelink": {
|
|
464
|
+
small: icons.CopyLink16,
|
|
465
|
+
normal: icons.CopyLink20,
|
|
466
|
+
large: icons.CopyLink32
|
|
467
|
+
},
|
|
456
468
|
|
|
457
469
|
"data-sourcepath": {
|
|
458
470
|
small: icons.Data_216,
|
|
@@ -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 />}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import SimpleDialog, {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Iframe, IframeProps } from "./Iframe";
|
|
2
|
+
import SimpleDialog, {SimpleDialogProps} from "../Dialog/SimpleDialog";
|
|
3
|
+
import {CLASSPREFIX as eccgui} from "../../configuration/constants";
|
|
4
|
+
import {Iframe, IframeProps} from "./Iframe";
|
|
6
5
|
|
|
7
6
|
export interface IframeModalProps extends Omit<SimpleDialogProps, "children"> {
|
|
8
7
|
// The title of the dialog
|
|
@@ -29,7 +28,6 @@ export function IframeModal({
|
|
|
29
28
|
size = "large",
|
|
30
29
|
...otherSimpleDialogProps
|
|
31
30
|
}: IframeModalProps) {
|
|
32
|
-
const [displayFullscreen, setDisplayFullscreen] = React.useState<boolean>(startFullscreen);
|
|
33
31
|
const {
|
|
34
32
|
useViewportHeight,
|
|
35
33
|
useAvailableSpace,
|
|
@@ -44,22 +42,13 @@ export function IframeModal({
|
|
|
44
42
|
<SimpleDialog
|
|
45
43
|
hasBorder
|
|
46
44
|
title={title}
|
|
47
|
-
headerOptions={
|
|
48
|
-
<>
|
|
49
|
-
<IconButton
|
|
50
|
-
name={displayFullscreen ? "toggler-minimize" : "toggler-maximize"}
|
|
51
|
-
onClick={()=>setDisplayFullscreen(!displayFullscreen)}
|
|
52
|
-
/>
|
|
53
|
-
<>
|
|
54
|
-
{headerOptions}
|
|
55
|
-
</>
|
|
56
|
-
</>
|
|
57
|
-
)}
|
|
45
|
+
headerOptions={headerOptions}
|
|
58
46
|
className={
|
|
59
47
|
`${eccgui}-iframemodal` +
|
|
60
48
|
(className ? ` ${className}` : "")
|
|
61
49
|
}
|
|
62
|
-
|
|
50
|
+
showFullScreenToggler={true}
|
|
51
|
+
startInFullScreenMode={startFullscreen}
|
|
63
52
|
{...otherSimpleDialogProps}
|
|
64
53
|
>
|
|
65
54
|
<Iframe
|
|
@@ -8,7 +8,7 @@ import OverflowText from "../Typography/OverflowText";
|
|
|
8
8
|
import {HTMLInputProps} from "@blueprintjs/core/src/common/props";
|
|
9
9
|
import {removeExtraSpaces} from "../../common/utils/stringUtils";
|
|
10
10
|
|
|
11
|
-
interface SelectedParamsType<T> {
|
|
11
|
+
export interface SelectedParamsType<T> {
|
|
12
12
|
newlySelected: T;
|
|
13
13
|
selectedItems: T[];
|
|
14
14
|
createdItems: Partial<T>[];
|
|
@@ -254,7 +254,7 @@ function MultiSelect<T>({
|
|
|
254
254
|
* @param label
|
|
255
255
|
* @param index
|
|
256
256
|
*/
|
|
257
|
-
const removeTagFromSelectionViaIndex = (label:
|
|
257
|
+
const removeTagFromSelectionViaIndex = (label: React.ReactNode, index: number) => {
|
|
258
258
|
setSelectedItems([...selectedItems.slice(0, index), ...selectedItems.slice(index + 1)]);
|
|
259
259
|
setCreatedItems(items => items.filter(item => itemLabel(item) !== label));
|
|
260
260
|
};
|
|
@@ -41,6 +41,7 @@ function Spinner({
|
|
|
41
41
|
const timeoutId = setTimeout(() => setShowSpinner(true), delay);
|
|
42
42
|
return () => clearTimeout(timeoutId);
|
|
43
43
|
}
|
|
44
|
+
return;
|
|
44
45
|
}, [showSpinner, delay]);
|
|
45
46
|
const availableIntent = ["primary", "success", "warning", "danger", "inherit"];
|
|
46
47
|
const internSizes = {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
+
|
|
4
|
+
import { CodeEditor } from "./CodeMirror";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Extensions/CodeEditor",
|
|
8
|
+
component: CodeEditor,
|
|
9
|
+
//parameters: { actions: { argTypesRegex: '^on.*' } },
|
|
10
|
+
argTypes: {
|
|
11
|
+
onChange: {
|
|
12
|
+
action: "value changed"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
} as ComponentMeta<typeof CodeEditor>;
|
|
16
|
+
|
|
17
|
+
const TemplateFull: ComponentStory<typeof CodeEditor> = (args) => (
|
|
18
|
+
<CodeEditor {...args} />
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export const BasicExample = TemplateFull.bind({});
|
|
22
|
+
BasicExample.args = {
|
|
23
|
+
name: "codeinput",
|
|
24
|
+
mode: "markdown",
|
|
25
|
+
defaultValue: "**test me**",
|
|
26
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from "react";
|
|
2
|
+
import CodeMirror from "codemirror";
|
|
3
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
4
|
+
import "codemirror/mode/markdown/markdown.js";
|
|
5
|
+
import "codemirror/mode/python/python.js";
|
|
6
|
+
import "codemirror/mode/sparql/sparql.js";
|
|
7
|
+
import "codemirror/mode/sql/sql.js";
|
|
8
|
+
import "codemirror/mode/turtle/turtle.js";
|
|
9
|
+
import "codemirror/mode/xml/xml.js";
|
|
10
|
+
|
|
11
|
+
export interface CodeEditorProps {
|
|
12
|
+
/**
|
|
13
|
+
* `name` attribute of connected textarea element.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* `id` attribute of connected textarea element.
|
|
18
|
+
* If not set then the default value is created by `codemirror-${name-attribute}`.
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Handler method to receive onChange events.
|
|
23
|
+
* As input the new value is given.
|
|
24
|
+
*/
|
|
25
|
+
onChange: (v: any) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Syntax mode of the code editor.
|
|
28
|
+
*/
|
|
29
|
+
mode?: "markdown" | "python" | "sparql" | "sql" | "turtle" | "xml" | "undefined";
|
|
30
|
+
/**
|
|
31
|
+
* Default value used first when the editor is instanciated.
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: any;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Includes a code editor, currently we use CodeMirror library as base.
|
|
38
|
+
*/
|
|
39
|
+
export const CodeEditor = ({
|
|
40
|
+
onChange,
|
|
41
|
+
name,
|
|
42
|
+
id,
|
|
43
|
+
mode = "undefined",
|
|
44
|
+
defaultValue
|
|
45
|
+
}: CodeEditorProps) => {
|
|
46
|
+
const domRef = useRef<HTMLTextAreaElement>(null);
|
|
47
|
+
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const editorInstance = CodeMirror.fromTextArea(domRef.current!, {
|
|
50
|
+
mode: mode === "undefined" ? undefined : mode,
|
|
51
|
+
lineWrapping: true,
|
|
52
|
+
lineNumbers: true,
|
|
53
|
+
tabSize: 2,
|
|
54
|
+
theme: "xq-light",
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
editorInstance.on("change", (api) => {
|
|
58
|
+
onChange(api.getValue());
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return function cleanup() {
|
|
62
|
+
editorInstance.toTextArea();
|
|
63
|
+
};
|
|
64
|
+
}, [onChange, mode]);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<div className={`${eccgui}-codeeditor`}>
|
|
68
|
+
<textarea
|
|
69
|
+
ref={domRef}
|
|
70
|
+
/**
|
|
71
|
+
* FIXME: same `data-test-id` for multiple code editor elements are valid
|
|
72
|
+
* but may not make really sense for testing purposes. Currently let it
|
|
73
|
+
* unchanged from the code what was took over here.
|
|
74
|
+
*/
|
|
75
|
+
data-test-id="codemirror-wrapper"
|
|
76
|
+
id={!!id ? id : `codemirror-${name}`}
|
|
77
|
+
name={name}
|
|
78
|
+
defaultValue={defaultValue}
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import "~codemirror/lib/codemirror.css";
|
|
2
|
+
@import "~codemirror/theme/xq-light.css";
|
|
3
|
+
|
|
4
|
+
// adjustments
|
|
5
|
+
|
|
6
|
+
.#{$eccgui}-codeeditor {
|
|
7
|
+
.CodeMirror {
|
|
8
|
+
border-radius: $pt-border-radius;
|
|
9
|
+
|
|
10
|
+
// get them a "border" like input boxes from blueprintjs
|
|
11
|
+
box-shadow: input-transition-shadow($input-shadow-color-focus), $pt-input-box-shadow;
|
|
12
|
+
&.CodeMirror-focused {
|
|
13
|
+
box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.CodeMirror-gutters {
|
|
17
|
+
// allow "borders" to shine through
|
|
18
|
+
background-color: rgba(0,0,0,0.05);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.CodeMirror-scroll {
|
|
22
|
+
cursor: text;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.#{$prefix}--accordion__content {
|
|
28
|
+
.CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
|
|
29
|
+
box-sizing: content-box;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -11,6 +11,9 @@ import { drawEdgeStraight} from "./utils";
|
|
|
11
11
|
|
|
12
12
|
export interface EdgeDefaultDataProps {
|
|
13
13
|
pathGlowWidth?: number;
|
|
14
|
+
inversePath?: boolean;
|
|
15
|
+
markerStart?: string;
|
|
16
|
+
renderLabel?: (edgeCenter: [number, number, number, number]) => React.ReactNode;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
export interface EdgeDefaultProps extends ReactFlowEdgeProps {
|
|
@@ -27,6 +30,7 @@ export const EdgeDefault = memo(
|
|
|
27
30
|
} = edge;
|
|
28
31
|
const {
|
|
29
32
|
pathGlowWidth = 10,
|
|
33
|
+
markerStart
|
|
30
34
|
} = data;
|
|
31
35
|
|
|
32
36
|
const pathDisplay = drawSvgPath({...edgeOriginalProperties, data});
|
|
@@ -41,7 +45,7 @@ export const EdgeDefault = memo(
|
|
|
41
45
|
targetY: edgeOriginalProperties.targetY,
|
|
42
46
|
});
|
|
43
47
|
|
|
44
|
-
const edgeLabel = edgeOriginalProperties.label ? (
|
|
48
|
+
const edgeLabel = data.renderLabel?.(edgeCenter) ?? (edgeOriginalProperties.label ? (
|
|
45
49
|
<EdgeText
|
|
46
50
|
x={edgeCenter[0]}
|
|
47
51
|
y={edgeCenter[1]}
|
|
@@ -52,7 +56,7 @@ export const EdgeDefault = memo(
|
|
|
52
56
|
labelBgPadding={edgeOriginalProperties.labelBgPadding || [5, 5]}
|
|
53
57
|
labelBgBorderRadius={edgeOriginalProperties.labelBgBorderRadius || 3}
|
|
54
58
|
/>
|
|
55
|
-
) : null;
|
|
59
|
+
) : null);
|
|
56
60
|
|
|
57
61
|
const edgeStyle = edgeOriginalProperties.style ?? {};
|
|
58
62
|
return (
|
|
@@ -67,6 +71,7 @@ export const EdgeDefault = memo(
|
|
|
67
71
|
<path
|
|
68
72
|
d={pathDisplay}
|
|
69
73
|
className="react-flow__edge-path"
|
|
74
|
+
markerStart={markerStart}
|
|
70
75
|
markerEnd={markerEnd}
|
|
71
76
|
/>
|
|
72
77
|
{ edgeLabel }
|
|
@@ -7,6 +7,8 @@ export { EdgeDefault } from "./edges/EdgeDefault";
|
|
|
7
7
|
export { EdgeStep } from "./edges/EdgeStep";
|
|
8
8
|
export { EdgeTools } from "./edges/EdgeTools";
|
|
9
9
|
export { edgeTypes } from "./edges/edgeTypes";
|
|
10
|
+
export { MarkerArrowClosedInverse } from "./markers/MarkerArrowClosedInverse";
|
|
11
|
+
export { ReactFlowMarkers } from "./markers/ReactFlowMarkers";
|
|
10
12
|
export { MiniMap } from "./minimap/MiniMap";
|
|
11
13
|
export { minimapNodeClassName, minimapNodeColor } from "./minimap/utils";
|
|
12
14
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
|
|
3
|
+
export const MarkerArrowClosedInverse: FC = () => {
|
|
4
|
+
return (
|
|
5
|
+
<marker
|
|
6
|
+
className="react-flow__arrowhead"
|
|
7
|
+
id="react-flow__arrowclosed-inverse"
|
|
8
|
+
markerWidth="12.5"
|
|
9
|
+
markerHeight="12.5"
|
|
10
|
+
viewBox="-10 -10 20 20"
|
|
11
|
+
orient="auto"
|
|
12
|
+
refX="0"
|
|
13
|
+
refY="0"
|
|
14
|
+
>
|
|
15
|
+
<polyline
|
|
16
|
+
stroke="#b1b1b7"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth="1"
|
|
20
|
+
fill="#b1b1b7"
|
|
21
|
+
points="5,-4 0,0 5,4 5,-4"
|
|
22
|
+
></polyline>
|
|
23
|
+
</marker>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
@@ -91,7 +91,7 @@ export const MiniMap = memo(({
|
|
|
91
91
|
/**
|
|
92
92
|
enables the mini-map fake drag effect see "handleMiniMapMouseMove" above.
|
|
93
93
|
**/
|
|
94
|
-
const handleMiniMapMouseDown = (
|
|
94
|
+
const handleMiniMapMouseDown = () => {
|
|
95
95
|
if (enableNavigation && flowInstance) { minimapCalcConf.navigationOn = true; }
|
|
96
96
|
};
|
|
97
97
|
|
package/src/index.scss
CHANGED
|
@@ -130,10 +130,6 @@
|
|
|
130
130
|
// currently not needed @import '~carbon-components/scss/components/pagination-nav/pagination-nav';
|
|
131
131
|
// used in own component @import '~carbon-components/scss/components/ui-shell/ui-shell'; // experimental
|
|
132
132
|
|
|
133
|
-
// other 3rd party libs
|
|
134
|
-
@import "~codemirror/lib/codemirror.css";
|
|
135
|
-
@import "~codemirror/theme/xq-light.css";
|
|
136
|
-
|
|
137
133
|
// == Load element styles ======================================================
|
|
138
134
|
|
|
139
135
|
@import "./components/Typography/typography";
|
|
@@ -170,6 +166,7 @@
|
|
|
170
166
|
@import "./components/PropertyValuePair/propertyvalue";
|
|
171
167
|
@import "./components/Iframe/iframe";
|
|
172
168
|
@import "./components/AutoSuggestion/AutoSuggestion";
|
|
169
|
+
@import "./extensions/codemirror/codemirror";
|
|
173
170
|
|
|
174
171
|
// == load tweaks ==============================================================
|
|
175
172
|
|
package/src/index.ts
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
$reactflow-color-graph-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-class-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-instance-node: #0097a7 !default;
|
|
4
|
-
$reactflow-color-property-node: #ffd54f !default;
|
|
5
|
-
|
|
6
|
-
$reactflow-color-implicit-edge: #ae3c74 !default;
|
|
7
|
-
$reactflow-color-import-edge: $reactflow-color-graph-node !default;
|
|
8
|
-
$reactflow-color-subclass-edge: $reactflow-color-class-node !default;
|
|
9
|
-
$reactflow-color-subproperty-edge: $reactflow-color-property-node !default;
|
|
10
|
-
$reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
|
|
11
|
-
|
|
12
|
-
@function bright($color) {
|
|
13
|
-
@return mix($color, #fff, 24%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:export {
|
|
17
|
-
graphNode: $reactflow-color-graph-node;
|
|
18
|
-
classNode: $reactflow-color-class-node;
|
|
19
|
-
instanceNode: $reactflow-color-instance-node;
|
|
20
|
-
propertyNode: $reactflow-color-property-node;
|
|
21
|
-
implicitEdge: $reactflow-color-implicit-edge;
|
|
22
|
-
importEdge: $reactflow-color-import-edge;
|
|
23
|
-
subclassEdge: $reactflow-color-subclass-edge;
|
|
24
|
-
subpropertyEdge: $reactflow-color-subproperty-edge;
|
|
25
|
-
rdftypeEdge: $reactflow-color-rdftype-edge;
|
|
26
|
-
graphNodeBright: bright($reactflow-color-graph-node);
|
|
27
|
-
classNodeBright: bright($reactflow-color-class-node);
|
|
28
|
-
instanceNodeBright: bright($reactflow-color-instance-node);
|
|
29
|
-
propertyNodeBright: bright($reactflow-color-property-node);
|
|
30
|
-
implicitEdgeBright: bright($reactflow-color-implicit-edge);
|
|
31
|
-
importEdgeBright: bright($reactflow-color-import-edge);
|
|
32
|
-
subclassEdgeBright: bright($reactflow-color-subclass-edge);
|
|
33
|
-
subpropertyEdgeBright: bright($reactflow-color-subproperty-edge);
|
|
34
|
-
rdftypeEdgeBright: bright($reactflow-color-rdftype-edge);
|
|
35
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$reactflow-color-sourcepath-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-targetpath-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-transformation-node: #ae3c74 !default;
|
|
4
|
-
$reactflow-color-comparator-node: #40a691 !default;
|
|
5
|
-
$reactflow-color-aggregator-node: #0097a7 !default;
|
|
6
|
-
|
|
7
|
-
$reactflow-color-value-edge: #222 !default;
|
|
8
|
-
$reactflow-color-score-edge: $reactflow-color-aggregator-node !default;
|
|
9
|
-
|
|
10
|
-
@function bright($color) {
|
|
11
|
-
@return mix($color, #fff, 24%);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:export {
|
|
15
|
-
sourcepathNode: $reactflow-color-sourcepath-node;
|
|
16
|
-
targetpathNode: $reactflow-color-targetpath-node;
|
|
17
|
-
transformationNode: $reactflow-color-transformation-node;
|
|
18
|
-
comparatorNode: $reactflow-color-comparator-node;
|
|
19
|
-
aggregatorNode: $reactflow-color-aggregator-node;
|
|
20
|
-
valueEdge: $reactflow-color-value-edge;
|
|
21
|
-
scoreEdge: $reactflow-color-score-edge;
|
|
22
|
-
sourcepathNodeBright: bright($reactflow-color-sourcepath-node);
|
|
23
|
-
targetpathNodeBright: bright($reactflow-color-targetpath-node);
|
|
24
|
-
transformationNodeBright: bright($reactflow-color-transformation-node);
|
|
25
|
-
comparatorNodeBright: bright($reactflow-color-comparator-node);
|
|
26
|
-
aggregatorNodeBright: bright($reactflow-color-aggregator-node);
|
|
27
|
-
valueEdgeBright: bright($reactflow-color-value-edge);
|
|
28
|
-
scoreEdgeBright: bright($reactflow-color-score-edge);
|
|
29
|
-
}
|