@eccenca/gui-elements 6.3.0 → 22.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +98 -880
- package/LICENSE +202 -0
- package/README.md +56 -1240
- package/blueprint/constants.ts +7 -0
- package/blueprint/toaster/index.tsx +1 -0
- package/dist/cmem/ActivityControl/ActivityControlTypes.d.ts +15 -0
- package/dist/cmem/ActivityControl/ActivityControlTypes.js +1 -0
- package/dist/cmem/ActivityControl/ActivityControlWidget.d.ts +32 -0
- package/dist/cmem/ActivityControl/ActivityControlWidget.js +92 -0
- package/dist/cmem/ActivityControl/ActivityControlWidget.jsx +45 -0
- package/dist/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +12 -0
- package/dist/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +59 -0
- package/dist/cmem/ActivityControl/ActivityExecutionErrorReportModal.jsx +76 -0
- package/dist/cmem/ActivityControl/SilkActivityControl.d.ts +62 -0
- package/dist/cmem/ActivityControl/SilkActivityControl.js +219 -0
- package/dist/cmem/ActivityControl/SilkActivityControl.jsx +217 -0
- package/dist/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +34 -0
- package/dist/cmem/ContentBlobToggler/ContentBlobToggler.js +56 -0
- package/dist/cmem/ContentBlobToggler/ContentBlobToggler.jsx +62 -0
- package/dist/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +42 -0
- package/dist/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +52 -0
- package/dist/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.jsx +17 -0
- package/dist/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.d.ts +15 -0
- package/dist/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +80 -0
- package/dist/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.jsx +77 -0
- package/dist/cmem/index.d.ts +10 -0
- package/dist/cmem/index.js +67 -0
- package/dist/cmem/markdown/Markdown.d.ts +16 -0
- package/dist/cmem/markdown/Markdown.js +75 -0
- package/dist/cmem/markdown/Markdown.jsx +87 -0
- package/dist/cmem/markdown/highlightSearchWords.js +84 -0
- package/dist/common/Intent/index.d.ts +7 -0
- package/dist/common/Intent/index.js +33 -0
- package/dist/common/utils/openInNewTab.d.ts +3 -0
- package/dist/common/utils/openInNewTab.js +22 -0
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.js +31 -0
- package/dist/components/Accordion/Accordion.jsx +21 -0
- package/dist/components/Accordion/AccordionItem.d.ts +15 -0
- package/dist/components/Accordion/AccordionItem.js +37 -0
- package/dist/components/Accordion/AccordionItem.jsx +27 -0
- package/dist/components/Application/ApplicationContainer.d.ts +6 -0
- package/dist/components/Application/ApplicationContainer.js +27 -0
- package/dist/components/Application/ApplicationContainer.jsx +20 -0
- package/dist/components/Application/ApplicationContent.d.ts +22 -0
- package/dist/components/Application/ApplicationContent.js +48 -0
- package/dist/components/Application/ApplicationContent.jsx +34 -0
- package/dist/components/Application/ApplicationHeader.d.ts +3 -0
- package/dist/components/Application/ApplicationHeader.js +29 -0
- package/dist/components/Application/ApplicationHeader.jsx +22 -0
- package/dist/components/Application/ApplicationSidebarNavigation.d.ts +12 -0
- package/dist/components/Application/ApplicationSidebarNavigation.js +36 -0
- package/dist/components/Application/ApplicationSidebarNavigation.jsx +22 -0
- package/dist/components/Application/ApplicationSidebarToggler.d.ts +3 -0
- package/dist/components/Application/ApplicationSidebarToggler.js +28 -0
- package/dist/components/Application/ApplicationSidebarToggler.jsx +19 -0
- package/dist/components/Application/ApplicationTitle.d.ts +40 -0
- package/dist/components/Application/ApplicationTitle.js +53 -0
- package/dist/components/Application/ApplicationTitle.jsx +39 -0
- package/dist/components/Application/ApplicationToolbar.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbar.js +30 -0
- package/dist/components/Application/ApplicationToolbar.jsx +22 -0
- package/dist/components/Application/ApplicationToolbarAction.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbarAction.js +30 -0
- package/dist/components/Application/ApplicationToolbarAction.jsx +22 -0
- package/dist/components/Application/ApplicationToolbarPanel.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbarPanel.js +30 -0
- package/dist/components/Application/ApplicationToolbarPanel.jsx +22 -0
- package/dist/components/Application/ApplicationToolbarSection.d.ts +3 -0
- package/dist/components/Application/ApplicationToolbarSection.js +27 -0
- package/dist/components/Application/ApplicationToolbarSection.jsx +20 -0
- package/dist/components/AutocompleteField/AutoCompleteField.d.ts +110 -0
- package/dist/components/AutocompleteField/AutoCompleteField.js +309 -0
- package/dist/components/AutocompleteField/AutoCompleteField.jsx +295 -0
- package/dist/components/AutocompleteField/autoCompleteFieldUtils.js +42 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +5 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +45 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.jsx +30 -0
- package/dist/components/Breadcrumb/BreadcrumbList.d.ts +24 -0
- package/dist/components/Breadcrumb/BreadcrumbList.js +60 -0
- package/dist/components/Breadcrumb/BreadcrumbList.jsx +35 -0
- package/dist/components/Button/Button.d.ts +58 -0
- package/dist/components/Button/Button.js +84 -0
- package/dist/components/Button/Button.jsx +48 -0
- package/dist/components/Card/Card.d.ts +23 -0
- package/dist/components/Card/Card.js +44 -0
- package/dist/components/Card/Card.jsx +31 -0
- package/dist/components/Card/CardActions.d.ts +14 -0
- package/dist/components/Card/CardActions.js +33 -0
- package/dist/components/Card/CardActions.jsx +27 -0
- package/dist/components/Card/CardActionsAux.d.ts +9 -0
- package/dist/components/Card/CardActionsAux.js +32 -0
- package/dist/components/Card/CardActionsAux.jsx +26 -0
- package/dist/components/Card/CardContent.d.ts +9 -0
- package/dist/components/Card/CardContent.js +32 -0
- package/dist/components/Card/CardContent.jsx +25 -0
- package/dist/components/Card/CardHeader.d.ts +7 -0
- package/dist/components/Card/CardHeader.js +52 -0
- package/dist/components/Card/CardHeader.jsx +41 -0
- package/dist/components/Card/CardOptions.d.ts +11 -0
- package/dist/components/Card/CardOptions.js +35 -0
- package/dist/components/Card/CardOptions.jsx +28 -0
- package/dist/components/Card/CardTitle.d.ts +13 -0
- package/dist/components/Card/CardTitle.js +37 -0
- package/dist/components/Card/CardTitle.jsx +26 -0
- package/dist/components/Card/index.d.ts +8 -0
- package/dist/components/Card/index.js +63 -0
- package/dist/components/Card/index.jsx +8 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/Checkbox/Checkbox.jsx +22 -0
- package/dist/components/ContextOverlay/ContextMenu.d.ts +3 -0
- package/dist/components/ContextOverlay/ContextMenu.js +48 -0
- package/dist/components/ContextOverlay/ContextMenu.jsx +30 -0
- package/dist/components/ContextOverlay/ContextOverlay.d.ts +3 -0
- package/dist/components/ContextOverlay/ContextOverlay.js +37 -0
- package/dist/components/ContextOverlay/ContextOverlay.jsx +27 -0
- package/dist/components/Dialog/AlertDialog.d.ts +22 -0
- package/dist/components/Dialog/AlertDialog.js +56 -0
- package/dist/components/Dialog/AlertDialog.jsx +39 -0
- package/dist/components/Dialog/Modal.d.ts +25 -0
- package/dist/components/Dialog/Modal.js +67 -0
- package/dist/components/Dialog/Modal.jsx +49 -0
- package/dist/components/Dialog/SimpleDialog.d.ts +41 -0
- package/dist/components/Dialog/SimpleDialog.js +62 -0
- package/dist/components/Dialog/SimpleDialog.jsx +50 -0
- package/dist/components/Form/FieldItem.d.ts +16 -0
- package/dist/components/Form/FieldItem.js +82 -0
- package/dist/components/Form/FieldItem.jsx +48 -0
- package/dist/components/Form/FieldItemRow.d.ts +3 -0
- package/dist/components/Form/FieldItemRow.js +30 -0
- package/dist/components/Form/FieldItemRow.jsx +23 -0
- package/dist/components/Form/FieldSet.d.ts +3 -0
- package/dist/components/Form/FieldSet.js +73 -0
- package/dist/components/Form/FieldSet.jsx +49 -0
- package/dist/components/Grid/Grid.d.ts +3 -0
- package/dist/components/Grid/Grid.js +33 -0
- package/dist/components/Grid/Grid.jsx +25 -0
- package/dist/components/Grid/GridColumn.d.ts +3 -0
- package/dist/components/Grid/GridColumn.js +43 -0
- package/dist/components/Grid/GridColumn.jsx +29 -0
- package/dist/components/Grid/GridRow.d.ts +3 -0
- package/dist/components/Grid/GridRow.js +33 -0
- package/dist/components/Grid/GridRow.jsx +26 -0
- package/dist/components/Icon/Icon.d.ts +20 -0
- package/dist/components/Icon/Icon.js +91 -0
- package/dist/components/Icon/Icon.jsx +88 -0
- package/dist/components/Icon/IconButton.d.ts +17 -0
- package/dist/components/Icon/IconButton.js +49 -0
- package/dist/components/Icon/IconButton.jsx +21 -0
- package/dist/components/Icon/canonicalIconNames.d.ts +10 -0
- package/dist/components/Icon/canonicalIconNames.js +547 -0
- package/dist/components/Icon/canonicalIconNames.jsx +534 -0
- package/dist/components/Iframe/Iframe.d.ts +18 -0
- package/dist/components/Iframe/Iframe.js +92 -0
- package/dist/components/Iframe/Iframe.jsx +79 -0
- package/dist/components/Iframe/IframeModal.d.ts +12 -0
- package/dist/components/Iframe/IframeModal.js +66 -0
- package/dist/components/Iframe/IframeModal.jsx +49 -0
- package/dist/components/Label/Label.d.ts +3 -0
- package/dist/components/Label/Label.js +58 -0
- package/dist/components/Label/Label.jsx +32 -0
- package/dist/components/Link/Link.d.ts +3 -0
- package/dist/components/Link/Link.js +36 -0
- package/dist/components/Link/Link.jsx +22 -0
- package/dist/components/List/List.d.ts +17 -0
- package/dist/components/List/List.js +50 -0
- package/dist/components/List/List.jsx +44 -0
- package/dist/components/Menu/Menu.d.ts +3 -0
- package/dist/components/Menu/Menu.js +29 -0
- package/dist/components/Menu/Menu.jsx +19 -0
- package/dist/components/Menu/MenuDivider.d.ts +3 -0
- package/dist/components/Menu/MenuDivider.js +29 -0
- package/dist/components/Menu/MenuDivider.jsx +19 -0
- package/dist/components/Menu/MenuItem.d.ts +13 -0
- package/dist/components/Menu/MenuItem.js +45 -0
- package/dist/components/Menu/MenuItem.jsx +27 -0
- package/dist/components/Notification/Notification.d.ts +3 -0
- package/dist/components/Notification/Notification.js +79 -0
- package/dist/components/Notification/Notification.jsx +48 -0
- package/dist/components/Notification/Toast.d.ts +3 -0
- package/dist/components/Notification/Toast.js +31 -0
- package/dist/components/Notification/Toast.jsx +21 -0
- package/dist/components/NumericInput/NumericInput.d.ts +4 -0
- package/dist/components/NumericInput/NumericInput.js +14 -0
- package/dist/components/NumericInput/NumericInput.jsx +3 -0
- package/dist/components/OverviewItem/OverviewItem.d.ts +17 -0
- package/dist/components/OverviewItem/OverviewItem.js +45 -0
- package/dist/components/OverviewItem/OverviewItem.jsx +37 -0
- package/dist/components/OverviewItem/OverviewItemActions.d.ts +13 -0
- package/dist/components/OverviewItem/OverviewItemActions.js +32 -0
- package/dist/components/OverviewItem/OverviewItemActions.jsx +26 -0
- package/dist/components/OverviewItem/OverviewItemDepiction.d.ts +6 -0
- package/dist/components/OverviewItem/OverviewItemDepiction.js +28 -0
- package/dist/components/OverviewItem/OverviewItemDepiction.jsx +22 -0
- package/dist/components/OverviewItem/OverviewItemDescription.d.ts +3 -0
- package/dist/components/OverviewItem/OverviewItemDescription.js +27 -0
- package/dist/components/OverviewItem/OverviewItemDescription.jsx +20 -0
- package/dist/components/OverviewItem/OverviewItemLine.d.ts +19 -0
- package/dist/components/OverviewItem/OverviewItemLine.js +35 -0
- package/dist/components/OverviewItem/OverviewItemLine.jsx +29 -0
- package/dist/components/OverviewItem/OverviewItemList.d.ts +26 -0
- package/dist/components/OverviewItem/OverviewItemList.js +38 -0
- package/dist/components/OverviewItem/OverviewItemList.jsx +31 -0
- package/dist/components/OverviewItem/index.d.ts +7 -0
- package/dist/components/OverviewItem/index.js +55 -0
- package/dist/components/OverviewItem/index.jsx +7 -0
- package/dist/components/Pagination/Pagination.d.ts +17 -0
- package/dist/components/Pagination/Pagination.js +80 -0
- package/dist/components/Pagination/Pagination.jsx +81 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.js +12 -0
- package/dist/components/ProgressBar/ProgressBar.jsx +3 -0
- package/dist/components/PropertyValuePair/PropertyName.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyName.js +32 -0
- package/dist/components/PropertyValuePair/PropertyName.jsx +21 -0
- package/dist/components/PropertyValuePair/PropertyValue.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyValue.js +27 -0
- package/dist/components/PropertyValuePair/PropertyValue.jsx +20 -0
- package/dist/components/PropertyValuePair/PropertyValueList.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyValueList.js +27 -0
- package/dist/components/PropertyValuePair/PropertyValueList.jsx +20 -0
- package/dist/components/PropertyValuePair/PropertyValuePair.d.ts +3 -0
- package/dist/components/PropertyValuePair/PropertyValuePair.js +29 -0
- package/dist/components/PropertyValuePair/PropertyValuePair.jsx +23 -0
- package/dist/components/PropertyValuePair/index.d.ts +5 -0
- package/dist/components/PropertyValuePair/index.js +39 -0
- package/dist/components/PropertyValuePair/index.jsx +5 -0
- package/dist/components/RadioButton/RadioButton.d.ts +3 -0
- package/dist/components/RadioButton/RadioButton.js +30 -0
- package/dist/components/RadioButton/RadioButton.jsx +22 -0
- package/dist/components/Separation/Divider.d.ts +3 -0
- package/dist/components/Separation/Divider.js +23 -0
- package/dist/components/Separation/Divider.jsx +7 -0
- package/dist/components/Separation/Spacing.d.ts +9 -0
- package/dist/components/Separation/Spacing.js +27 -0
- package/dist/components/Separation/Spacing.jsx +11 -0
- package/dist/components/SimpleTable/TableContainer.d.ts +3 -0
- package/dist/components/SimpleTable/TableContainer.js +37 -0
- package/dist/components/SimpleTable/TableContainer.jsx +27 -0
- package/dist/components/SimpleTable/index.d.ts +3 -0
- package/dist/components/SimpleTable/index.js +53 -0
- package/dist/components/SimpleTable/index.jsx +3 -0
- package/dist/components/Spinner/Spinner.d.ts +19 -0
- package/dist/components/Spinner/Spinner.js +98 -0
- package/dist/components/Spinner/Spinner.jsx +83 -0
- package/dist/components/Structure/Section.d.ts +3 -0
- package/dist/components/Structure/Section.js +27 -0
- package/dist/components/Structure/Section.jsx +20 -0
- package/dist/components/Structure/SectionHeader.d.ts +3 -0
- package/dist/components/Structure/SectionHeader.js +27 -0
- package/dist/components/Structure/SectionHeader.jsx +20 -0
- package/dist/components/Structure/TitleMainsection.d.ts +3 -0
- package/dist/components/Structure/TitleMainsection.js +35 -0
- package/dist/components/Structure/TitleMainsection.jsx +26 -0
- package/dist/components/Structure/TitlePage.d.ts +3 -0
- package/dist/components/Structure/TitlePage.js +35 -0
- package/dist/components/Structure/TitlePage.jsx +26 -0
- package/dist/components/Structure/TitleSubsection.d.ts +3 -0
- package/dist/components/Structure/TitleSubsection.js +32 -0
- package/dist/components/Structure/TitleSubsection.jsx +23 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.js +39 -0
- package/dist/components/Switch/Switch.jsx +22 -0
- package/dist/components/Tabs/Tabs.d.ts +24 -0
- package/dist/components/Tabs/Tabs.js +95 -0
- package/dist/components/Tabs/Tabs.jsx +49 -0
- package/dist/components/Tag/Tag.d.ts +27 -0
- package/dist/components/Tag/Tag.js +50 -0
- package/dist/components/Tag/Tag.jsx +46 -0
- package/dist/components/Tag/TagList.d.ts +3 -0
- package/dist/components/Tag/TagList.js +44 -0
- package/dist/components/Tag/TagList.jsx +38 -0
- package/dist/components/TextField/SearchField.d.ts +23 -0
- package/dist/components/TextField/SearchField.js +54 -0
- package/dist/components/TextField/SearchField.jsx +27 -0
- package/dist/components/TextField/TextArea.d.ts +22 -0
- package/dist/components/TextField/TextArea.js +60 -0
- package/dist/components/TextField/TextArea.jsx +36 -0
- package/dist/components/TextField/TextField.d.ts +34 -0
- package/dist/components/TextField/TextField.js +73 -0
- package/dist/components/TextField/TextField.jsx +40 -0
- package/dist/components/Toolbar/Toolbar.d.ts +18 -0
- package/dist/components/Toolbar/Toolbar.js +32 -0
- package/dist/components/Toolbar/Toolbar.jsx +26 -0
- package/dist/components/Toolbar/ToolbarSection.d.ts +22 -0
- package/dist/components/Toolbar/ToolbarSection.js +34 -0
- package/dist/components/Toolbar/ToolbarSection.jsx +28 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +40 -0
- package/dist/components/Tooltip/Tooltip.jsx +25 -0
- package/dist/components/Typography/Highlighter.d.ts +18 -0
- package/dist/components/Typography/Highlighter.js +89 -0
- package/dist/components/Typography/Highlighter.jsx +58 -0
- package/dist/components/Typography/HtmlContentBlock.d.ts +6 -0
- package/dist/components/Typography/HtmlContentBlock.js +38 -0
- package/dist/components/Typography/HtmlContentBlock.jsx +31 -0
- package/dist/components/Typography/OverflowText.d.ts +12 -0
- package/dist/components/Typography/OverflowText.js +34 -0
- package/dist/components/Typography/OverflowText.jsx +31 -0
- package/dist/components/Typography/WhiteSpaceContainer.d.ts +5 -0
- package/dist/components/Typography/WhiteSpaceContainer.js +38 -0
- package/dist/components/Typography/WhiteSpaceContainer.jsx +34 -0
- package/dist/components/Typography/classnames.d.ts +7 -0
- package/dist/components/Typography/classnames.js +24 -0
- package/dist/components/Workspace/WorkspaceContent.d.ts +3 -0
- package/dist/components/Workspace/WorkspaceContent.js +34 -0
- package/dist/components/Workspace/WorkspaceContent.jsx +25 -0
- package/dist/components/Workspace/WorkspaceHeader.d.ts +10 -0
- package/dist/components/Workspace/WorkspaceHeader.js +27 -0
- package/dist/components/Workspace/WorkspaceHeader.jsx +20 -0
- package/dist/components/Workspace/WorkspaceMain.d.ts +3 -0
- package/dist/components/Workspace/WorkspaceMain.js +30 -0
- package/dist/components/Workspace/WorkspaceMain.jsx +22 -0
- package/dist/components/Workspace/WorkspaceSide.d.ts +3 -0
- package/dist/components/Workspace/WorkspaceSide.js +34 -0
- package/dist/components/Workspace/WorkspaceSide.jsx +22 -0
- package/dist/components/interfaces.d.ts +3 -0
- package/dist/components/interfaces.js +1 -0
- package/dist/configuration/constants.d.ts +1 -0
- package/dist/configuration/constants.js +9 -0
- package/dist/extensions/react-flow/edges/EdgeDefault.d.ts +10 -0
- package/dist/extensions/react-flow/edges/EdgeDefault.js +62 -0
- package/dist/extensions/react-flow/edges/EdgeDefault.jsx +45 -0
- package/dist/extensions/react-flow/edges/EdgeStep.d.ts +9 -0
- package/dist/extensions/react-flow/edges/EdgeStep.js +27 -0
- package/dist/extensions/react-flow/edges/EdgeStep.jsx +6 -0
- package/dist/extensions/react-flow/edges/EdgeTools.d.ts +12 -0
- package/dist/extensions/react-flow/edges/EdgeTools.js +48 -0
- package/dist/extensions/react-flow/edges/EdgeTools.jsx +32 -0
- package/dist/extensions/react-flow/edges/edgeTypes.d.ts +15 -0
- package/dist/extensions/react-flow/edges/edgeTypes.js +32 -0
- package/dist/extensions/react-flow/edges/utils.d.ts +4 -0
- package/dist/extensions/react-flow/edges/utils.js +41 -0
- package/dist/extensions/react-flow/handles/HandleContent.d.ts +6 -0
- package/dist/extensions/react-flow/handles/HandleContent.js +40 -0
- package/dist/extensions/react-flow/handles/HandleContent.jsx +15 -0
- package/dist/extensions/react-flow/handles/HandleDefault.d.ts +9 -0
- package/dist/extensions/react-flow/handles/HandleDefault.js +33 -0
- package/dist/extensions/react-flow/handles/HandleDefault.jsx +23 -0
- package/dist/extensions/react-flow/index.d.ts +14 -0
- package/dist/extensions/react-flow/index.js +83 -0
- package/dist/extensions/react-flow/minimap/MiniMap.d.ts +8 -0
- package/dist/extensions/react-flow/minimap/MiniMap.js +111 -0
- package/dist/extensions/react-flow/minimap/MiniMap.jsx +83 -0
- package/dist/extensions/react-flow/minimap/utils.d.ts +2 -0
- package/dist/extensions/react-flow/minimap/utils.js +29 -0
- package/dist/extensions/react-flow/nodes/NodeContentExtension.js +56 -0
- package/dist/extensions/react-flow/nodes/NodeDefault.d.ts +133 -0
- package/dist/extensions/react-flow/nodes/NodeDefault.js +223 -0
- package/dist/extensions/react-flow/nodes/NodeDefault.jsx +175 -0
- package/dist/extensions/react-flow/nodes/NodeTools.d.ts +9 -0
- package/dist/extensions/react-flow/nodes/NodeTools.js +58 -0
- package/dist/extensions/react-flow/nodes/NodeTools.jsx +46 -0
- package/dist/extensions/react-flow/nodes/nodeTypes.d.ts +13 -0
- package/dist/extensions/react-flow/nodes/nodeTypes.js +22 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +876 -0
- package/dist/legacy-replacements/Button/AffirmativeButton.js +23 -0
- package/dist/legacy-replacements/Button/Button.js +91 -0
- package/dist/legacy-replacements/Button/DismissiveButton.js +23 -0
- package/dist/legacy-replacements/Button/DisruptiveButton.js +23 -0
- package/dist/legacy-replacements/Checkbox/Checkbox.js +66 -0
- package/dist/legacy-replacements/Radio/RadioButton.js +48 -0
- package/dist/legacy-replacements/TextField/TextField.js +96 -0
- package/package.json +151 -70
- package/src/_shame.scss +111 -0
- package/src/cmem/ActivityControl/ActivityControlTypes.ts +28 -0
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +165 -0
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +55 -0
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +303 -0
- package/src/cmem/ActivityControl/activitycontrol.scss +27 -0
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +95 -0
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +76 -0
- package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +69 -0
- package/src/cmem/DateTimeDisplay/tests/ElapsedDateTimeDisplay.test.tsx +29 -0
- package/src/cmem/_index.scss +2 -0
- package/src/cmem/index.ts +35 -0
- package/src/cmem/markdown/Markdown.tsx +89 -0
- package/src/cmem/markdown/highlightSearchWords.test.ts +36 -0
- package/src/cmem/markdown/highlightSearchWords.ts +67 -0
- package/src/cmem/markdown/markdown.scss +32 -0
- package/src/common/Intent/index.ts +23 -0
- package/src/common/utils/openInNewTab.ts +17 -0
- package/src/components/Accordion/Accordion.tsx +13 -0
- package/src/components/Accordion/AccordionItem.tsx +73 -0
- package/src/components/Accordion/accordion.scss +96 -0
- package/src/components/Application/ApplicationContainer.tsx +21 -0
- package/src/components/Application/ApplicationContent.tsx +57 -0
- package/src/components/Application/ApplicationHeader.tsx +14 -0
- package/src/components/Application/ApplicationSidebarNavigation.tsx +39 -0
- package/src/components/Application/ApplicationSidebarToggler.tsx +15 -0
- package/src/components/Application/ApplicationTitle.tsx +95 -0
- package/src/components/Application/ApplicationToolbar.tsx +17 -0
- package/src/components/Application/ApplicationToolbarAction.tsx +17 -0
- package/src/components/Application/ApplicationToolbarPanel.tsx +17 -0
- package/src/components/Application/ApplicationToolbarSection.tsx +15 -0
- package/src/components/Application/_config.scss +40 -0
- package/src/components/Application/_content.scss +27 -0
- package/src/components/Application/_header.scss +237 -0
- package/src/components/Application/_sidebar.scss +37 -0
- package/src/components/Application/_toolbar.scss +75 -0
- package/src/components/Application/application.scss +9 -0
- package/src/components/AutocompleteField/AutoCompleteField.tsx +399 -0
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +32 -0
- package/src/components/AutocompleteField/autocompletefield.scss +6 -0
- package/src/components/Breadcrumb/BreadcrumbItem.tsx +46 -0
- package/src/components/Breadcrumb/BreadcrumbList.tsx +81 -0
- package/src/components/Breadcrumb/breadcrumb.scss +47 -0
- package/src/components/Button/Button.stories.tsx +199 -0
- package/src/components/Button/Button.test.tsx +37 -0
- package/src/components/Button/Button.tsx +127 -0
- package/src/components/Button/button.scss +55 -0
- package/src/components/Card/Card.tsx +58 -0
- package/src/components/Card/CardActions.tsx +36 -0
- package/src/components/Card/CardActionsAux.tsx +29 -0
- package/src/components/Card/CardContent.tsx +26 -0
- package/src/components/Card/CardHeader.tsx +44 -0
- package/src/components/Card/CardOptions.tsx +32 -0
- package/src/components/Card/CardTitle.tsx +32 -0
- package/src/components/Card/card.scss +138 -0
- package/src/components/Card/index.tsx +17 -0
- package/src/components/Card/stories/Card.stories.tsx +82 -0
- package/src/components/Card/stories/CardActions.stories.tsx +41 -0
- package/src/components/Card/stories/CardContent.stories.tsx +28 -0
- package/src/components/Card/stories/CardHeader.stories.tsx +38 -0
- package/src/components/Card/stories/CardOptions.stories.tsx +27 -0
- package/src/components/Card/stories/CardTitle.stories.tsx +27 -0
- package/src/components/Checkbox/Checkbox.tsx +20 -0
- package/src/components/Checkbox/checkbox.scss +61 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +36 -0
- package/src/components/ContextOverlay/ContextOverlay.tsx +29 -0
- package/src/components/ContextOverlay/contextoverlay.scss +15 -0
- package/src/components/Dialog/AlertDialog.tsx +52 -0
- package/src/components/Dialog/Modal.tsx +86 -0
- package/src/components/Dialog/SimpleDialog.tsx +113 -0
- package/src/components/Dialog/dialog.scss +75 -0
- package/src/components/Dialog/stories/AlertDialog.stories.tsx +42 -0
- package/src/components/Dialog/stories/Modal.stories.tsx +88 -0
- package/src/components/Dialog/stories/SimpleDialog.stories.tsx +39 -0
- package/src/components/Form/FieldItem.tsx +95 -0
- package/src/components/Form/FieldItemRow.tsx +14 -0
- package/src/components/Form/FieldSet.tsx +71 -0
- package/src/components/Form/form.scss +159 -0
- package/src/components/Grid/Grid.tsx +29 -0
- package/src/components/Grid/GridColumn.tsx +33 -0
- package/src/components/Grid/GridRow.tsx +30 -0
- package/src/components/Grid/grid.scss +89 -0
- package/src/components/Icon/Icon.tsx +96 -0
- package/src/components/Icon/IconButton.tsx +59 -0
- package/src/components/Icon/canonicalIconNames.json +120 -0
- package/src/components/Icon/canonicalIconNames.tsx +661 -0
- package/src/components/Icon/icon.scss +40 -0
- package/src/components/Iframe/Iframe.tsx +89 -0
- package/src/components/Iframe/IframeModal.tsx +77 -0
- package/src/components/Iframe/iframe.scss +49 -0
- package/src/components/Label/Label.tsx +43 -0
- package/src/components/Label/label.scss +75 -0
- package/src/components/Link/Link.tsx +19 -0
- package/src/components/Link/link.scss +6 -0
- package/src/components/List/List.tsx +46 -0
- package/src/components/Menu/Menu.tsx +9 -0
- package/src/components/Menu/MenuDivider.tsx +9 -0
- package/src/components/Menu/MenuItem.tsx +46 -0
- package/src/components/Menu/menu.scss +79 -0
- package/src/components/Notification/Notification.tsx +69 -0
- package/src/components/Notification/Toast.tsx +17 -0
- package/src/components/Notification/notification.scss +83 -0
- package/src/components/NumericInput/NumericInput.tsx +4 -0
- package/src/components/OverviewItem/OverviewItem.tsx +61 -0
- package/src/components/OverviewItem/OverviewItemActions.tsx +35 -0
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +29 -0
- package/src/components/OverviewItem/OverviewItemDescription.tsx +16 -0
- package/src/components/OverviewItem/OverviewItemLine.tsx +43 -0
- package/src/components/OverviewItem/OverviewItemList.tsx +58 -0
- package/src/components/OverviewItem/index.tsx +15 -0
- package/src/components/OverviewItem/overviewitem.scss +193 -0
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +56 -0
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +31 -0
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +26 -0
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +32 -0
- package/src/components/OverviewItem/stories/OverviewItemLine.stories.tsx +25 -0
- package/src/components/OverviewItem/stories/OverviewItemList.stories.tsx +41 -0
- package/src/components/Pagination/Pagination.tsx +80 -0
- package/src/components/Pagination/pagination.scss +47 -0
- package/src/components/ProgressBar/ProgressBar.tsx +8 -0
- package/src/components/PropertyValuePair/PropertyName.tsx +13 -0
- package/src/components/PropertyValuePair/PropertyValue.tsx +12 -0
- package/src/components/PropertyValuePair/PropertyValueList.tsx +12 -0
- package/src/components/PropertyValuePair/PropertyValuePair.tsx +20 -0
- package/src/components/PropertyValuePair/index.tsx +6 -0
- package/src/components/PropertyValuePair/propertyvalue.scss +56 -0
- package/src/components/RadioButton/RadioButton.tsx +20 -0
- package/src/components/RadioButton/radiobutton.scss +29 -0
- package/src/components/Separation/Divider.tsx +8 -0
- package/src/components/Separation/Spacing.tsx +25 -0
- package/src/components/Separation/separation.scss +77 -0
- package/src/components/SimpleTable/TableContainer.tsx +20 -0
- package/src/components/SimpleTable/index.tsx +4 -0
- package/src/components/SimpleTable/simpletable.scss +121 -0
- package/src/components/Spinner/Spinner.tsx +113 -0
- package/src/components/Spinner/spinner.scss +85 -0
- package/src/components/Structure/Section.tsx +15 -0
- package/src/components/Structure/SectionHeader.tsx +15 -0
- package/src/components/Structure/TitleMainsection.tsx +29 -0
- package/src/components/Structure/TitlePage.tsx +29 -0
- package/src/components/Structure/TitleSubsection.tsx +16 -0
- package/src/components/Structure/_titles.scss +56 -0
- package/src/components/Switch/Switch.tsx +17 -0
- package/src/components/Switch/switch.scss +4 -0
- package/src/components/Tabs/Tabs.tsx +121 -0
- package/src/components/Tabs/tabs.scss +65 -0
- package/src/components/Tag/Tag.stories.tsx +41 -0
- package/src/components/Tag/Tag.tsx +84 -0
- package/src/components/Tag/TagList.tsx +51 -0
- package/src/components/Tag/tag.scss +132 -0
- package/src/components/TagInput/taginput.scss +1 -0
- package/src/components/TextField/SearchField.tsx +71 -0
- package/src/components/TextField/TextArea.tsx +66 -0
- package/src/components/TextField/TextField.tsx +96 -0
- package/src/components/TextField/stories/SearchField.stories.tsx +40 -0
- package/src/components/TextField/stories/TextArea.stories.tsx +39 -0
- package/src/components/TextField/stories/TextField.stories.tsx +99 -0
- package/src/components/TextField/textfield.scss +63 -0
- package/src/components/Toolbar/Toolbar.stories.tsx +41 -0
- package/src/components/Toolbar/Toolbar.tsx +42 -0
- package/src/components/Toolbar/ToolbarSection.tsx +48 -0
- package/src/components/Toolbar/toolbar.scss +52 -0
- package/src/components/Tooltip/Tooltip.tsx +53 -0
- package/src/components/Tooltip/tooltip.scss +37 -0
- package/src/components/Typography/Highlighter.tsx +70 -0
- package/src/components/Typography/HtmlContentBlock.tsx +30 -0
- package/src/components/Typography/OverflowText.tsx +46 -0
- package/src/components/Typography/WhiteSpaceContainer.tsx +41 -0
- package/src/components/Typography/_reset.scss +36 -0
- package/src/components/Typography/classnames.ts +10 -0
- package/src/components/Typography/typography.scss +282 -0
- package/src/components/Workspace/WorkspaceContent.tsx +22 -0
- package/src/components/Workspace/WorkspaceHeader.tsx +20 -0
- package/src/components/Workspace/WorkspaceMain.tsx +14 -0
- package/src/components/Workspace/WorkspaceSide.tsx +18 -0
- package/src/components/Workspace/_header.scss +9 -0
- package/src/components/Workspace/workspace.scss +1 -0
- package/src/components/interfaces.ts +3 -0
- package/src/configuration/_variables.scss +130 -0
- package/src/configuration/constants.ts +2 -0
- package/src/extensions/_index.scss +1 -0
- package/src/extensions/react-flow/_config.scss +16 -0
- package/src/extensions/react-flow/_react-flow.scss +5 -0
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +77 -0
- package/src/extensions/react-flow/edges/EdgeStep.tsx +19 -0
- package/src/extensions/react-flow/edges/EdgeTools.tsx +39 -0
- package/src/extensions/react-flow/edges/_edges.scss +181 -0
- package/src/extensions/react-flow/edges/edgeTypes.ts +24 -0
- package/src/extensions/react-flow/edges/utils.ts +32 -0
- package/src/extensions/react-flow/handles/HandleContent.tsx +39 -0
- package/src/extensions/react-flow/handles/HandleDefault.tsx +29 -0
- package/src/extensions/react-flow/handles/_handles.scss +208 -0
- package/src/extensions/react-flow/index.ts +15 -0
- package/src/extensions/react-flow/minimap/MiniMap.tsx +110 -0
- package/src/extensions/react-flow/minimap/_minimap.scss +79 -0
- package/src/extensions/react-flow/minimap/utils.ts +13 -0
- package/src/extensions/react-flow/nodes/NodeContent.stories.tsx +83 -0
- package/src/extensions/react-flow/nodes/NodeContentExtension.stories.tsx +36 -0
- package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +87 -0
- package/src/extensions/react-flow/nodes/NodeDefault.stories.tsx +138 -0
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +376 -0
- package/src/extensions/react-flow/nodes/NodeTools.tsx +48 -0
- package/src/extensions/react-flow/nodes/_nodes.scss +490 -0
- package/src/extensions/react-flow/nodes/nodeTypes.ts +14 -0
- package/src/includes/blueprintjs/_variables.scss +195 -0
- package/src/includes/carbon-components/_variables.scss +107 -0
- package/src/index.scss +190 -0
- package/src/index.ts +238 -0
- package/src/legacy-replacements/Button/AffirmativeButton.tsx +16 -0
- package/src/legacy-replacements/Button/Button.tsx +73 -0
- package/src/legacy-replacements/Button/DismissiveButton.tsx +16 -0
- package/src/legacy-replacements/Button/DisruptiveButton.tsx +16 -0
- package/src/legacy-replacements/Checkbox/Checkbox.tsx +54 -0
- package/src/legacy-replacements/Radio/RadioButton.tsx +38 -0
- package/src/legacy-replacements/TextField/TextField.tsx +90 -0
- package/src/test/setupTests.js +2 -0
- package/.cached-fonts +0 -1
- package/Ruleset.md +0 -93
- package/additionalLicenses.yml +0 -21
- package/buildConfig.js +0 -25
- package/dist/fonts/iconfont/MaterialIcons-Regular.woff +0 -0
- package/dist/fonts/iconfont/MaterialIcons-Regular.woff2 +0 -0
- package/dist/fonts/iconfont/codepoints +0 -932
- package/dist/fonts/roboto/Black/Roboto-Black.woff +0 -0
- package/dist/fonts/roboto/Black/Roboto-Black.woff2 +0 -0
- package/dist/fonts/roboto/BlackItalic/Roboto-BlackItalic.woff +0 -0
- package/dist/fonts/roboto/BlackItalic/Roboto-BlackItalic.woff2 +0 -0
- package/dist/fonts/roboto/Bold/Roboto-Bold.woff +0 -0
- package/dist/fonts/roboto/Bold/Roboto-Bold.woff2 +0 -0
- package/dist/fonts/roboto/BoldItalic/Roboto-BoldItalic.woff +0 -0
- package/dist/fonts/roboto/BoldItalic/Roboto-BoldItalic.woff2 +0 -0
- package/dist/fonts/roboto/Italic/Roboto-Italic.woff +0 -0
- package/dist/fonts/roboto/Italic/Roboto-Italic.woff2 +0 -0
- package/dist/fonts/roboto/Light/Roboto-Light.woff +0 -0
- package/dist/fonts/roboto/Light/Roboto-Light.woff2 +0 -0
- package/dist/fonts/roboto/LightItalic/Roboto-LightItalic.woff +0 -0
- package/dist/fonts/roboto/LightItalic/Roboto-LightItalic.woff2 +0 -0
- package/dist/fonts/roboto/Medium/Roboto-Medium.woff +0 -0
- package/dist/fonts/roboto/Medium/Roboto-Medium.woff2 +0 -0
- package/dist/fonts/roboto/MediumItalic/Roboto-MediumItalic.woff +0 -0
- package/dist/fonts/roboto/MediumItalic/Roboto-MediumItalic.woff2 +0 -0
- package/dist/fonts/roboto/Regular/Roboto-Regular.woff +0 -0
- package/dist/fonts/roboto/Regular/Roboto-Regular.woff2 +0 -0
- package/dist/fonts/roboto/Thin/Roboto-Thin.woff +0 -0
- package/dist/fonts/roboto/Thin/Roboto-Thin.woff2 +0 -0
- package/dist/fonts/roboto/ThinItalic/Roboto-ThinItalic.woff +0 -0
- package/dist/fonts/roboto/ThinItalic/Roboto-ThinItalic.woff2 +0 -0
- package/docs/README.md +0 -953
- package/docs/docTemplate.md +0 -140
- package/es5/component.js +0 -6686
- package/index.js +0 -136
- package/jest.config.js +0 -42
- package/src/_configuration.default.scss +0 -97
- package/src/_configuration.mdl.scss +0 -518
- package/src/elements/Alert/Alert.jsx +0 -141
- package/src/elements/Alert/Error.jsx +0 -22
- package/src/elements/Alert/Info.jsx +0 -21
- package/src/elements/Alert/Success.jsx +0 -20
- package/src/elements/Alert/Warning.jsx +0 -19
- package/src/elements/Alert/_alert.scss +0 -93
- package/src/elements/Alert/index.js +0 -13
- package/src/elements/AutoCompleteBox/AutoCompleteBox.jsx +0 -149
- package/src/elements/AutoCompleteBox/_autocomplete.scss +0 -33
- package/src/elements/Breadcrumbs/BreadcrumbItem.jsx +0 -34
- package/src/elements/Breadcrumbs/BreadcrumbList.jsx +0 -56
- package/src/elements/Breadcrumbs/_breadcrumbs.scss +0 -47
- package/src/elements/Breadcrumbs/index.js +0 -7
- package/src/elements/Button/AffirmativeButton.jsx +0 -73
- package/src/elements/Button/Button.jsx +0 -216
- package/src/elements/Button/DismissiveButton.jsx +0 -77
- package/src/elements/Button/DisruptiveButton.jsx +0 -74
- package/src/elements/Button/ProgressButton.jsx +0 -95
- package/src/elements/Button/_button.scss +0 -61
- package/src/elements/Button/index.js +0 -13
- package/src/elements/Card/Card.jsx +0 -61
- package/src/elements/Card/CardActions.jsx +0 -37
- package/src/elements/Card/CardTitle.jsx +0 -78
- package/src/elements/Card/FloatingActionList.jsx +0 -260
- package/src/elements/Card/_card.scss +0 -179
- package/src/elements/Card/index.js +0 -18
- package/src/elements/Checkbox/Checkbox.jsx +0 -113
- package/src/elements/Checkbox/_checkbox.scss +0 -14
- package/src/elements/Chip/Chip.jsx +0 -141
- package/src/elements/Chip/ChipVisual.jsx +0 -88
- package/src/elements/Chip/_chip.scss +0 -82
- package/src/elements/Chip/index.js +0 -7
- package/src/elements/ContextMenu/ContextMenu.jsx +0 -101
- package/src/elements/ContextMenu/_contextmenu.scss +0 -23
- package/src/elements/DateField/DateField.jsx +0 -178
- package/src/elements/DateField/DateTimefield.jsx +0 -20
- package/src/elements/DateField/_datefield.scss +0 -116
- package/src/elements/DateField/index.js +0 -7
- package/src/elements/Dialog/BaseDialog.jsx +0 -161
- package/src/elements/Dialog/ConfirmationDialog.jsx +0 -48
- package/src/elements/Dialog/_dialog.scss +0 -58
- package/src/elements/Dialog/index.js +0 -7
- package/src/elements/Footer/Footer.jsx +0 -171
- package/src/elements/Footer/_footer.scss +0 -17
- package/src/elements/Grid/_grid.scss +0 -18
- package/src/elements/Icon/Icon.jsx +0 -97
- package/src/elements/Icon/canonicalicons.json +0 -32
- package/src/elements/Icon/canonicaltooltips.json +0 -32
- package/src/elements/Icon/icontable.json +0 -934
- package/src/elements/Layout/_layout.scss +0 -82
- package/src/elements/NotAvailable/NotAvailable.jsx +0 -87
- package/src/elements/NotAvailable/_notavailable.scss +0 -18
- package/src/elements/Pagination/Pagination.jsx +0 -431
- package/src/elements/Pagination/_pagination.scss +0 -98
- package/src/elements/Progressbar/Progressbar.jsx +0 -34
- package/src/elements/Progressbar/_progressbar.scss +0 -22
- package/src/elements/Radio/RadioButton.jsx +0 -129
- package/src/elements/Radio/RadioGroup.jsx +0 -35
- package/src/elements/Radio/_radio.scss +0 -46
- package/src/elements/Radio/index.js +0 -7
- package/src/elements/SelectBox/SelectBox.jsx +0 -321
- package/src/elements/SelectBox/_selectbox.scss +0 -144
- package/src/elements/Spinner/Spinner.jsx +0 -44
- package/src/elements/Spinner/_spinner.scss +0 -20
- package/src/elements/Switch/Switch.jsx +0 -38
- package/src/elements/Table/Table.jsx +0 -100
- package/src/elements/Table/TableBody.jsx +0 -66
- package/src/elements/Table/TableCell.jsx +0 -94
- package/src/elements/Table/TableHead.jsx +0 -66
- package/src/elements/Table/TableRow.jsx +0 -78
- package/src/elements/Table/_datatable.scss +0 -78
- package/src/elements/Table/_table.scss +0 -143
- package/src/elements/Tabs/Tabs.jsx +0 -116
- package/src/elements/TextField/TextField.jsx +0 -172
- package/src/elements/TextField/_textfield.scss +0 -80
- package/src/elements/Tooltip/Tooltip.jsx +0 -3
- package/src/elements/Tooltip/_tooltip.scss +0 -21
- package/src/elements/Version/Version.jsx +0 -19
- package/src/hocs/ScrollingHOC.js +0 -122
- package/src/main.scss +0 -83
- package/src/scss/_adjustments.scss +0 -16
- package/src/scss/_helpers.scss +0 -29
- package/src/scss/_iconfont.scss +0 -35
- package/src/scss/_patches.scss +0 -19
- package/src/scss/_roboto.scss +0 -30
- package/src/scss/main.build-css.scss +0 -4
- package/src/utils/classnameSeperator.js +0 -10
- package/src/utils/extendedOnChangeBoolean.jsx +0 -14
- package/src/utils/uniqueId.jsx +0 -36
- package/style/test.scss +0 -30
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// TODO: add vars and process them
|
|
2
|
+
$eccgui-size-typography-whitespace-regular: $eccgui-size-typo-base !default;
|
|
3
|
+
|
|
4
|
+
// lib requisites
|
|
5
|
+
@import "reset";
|
|
6
|
+
|
|
7
|
+
// basics
|
|
8
|
+
|
|
9
|
+
html {
|
|
10
|
+
font-size: $eccgui-size-typo-base;
|
|
11
|
+
line-height: $eccgui-size-typo-base-lineheight;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-family: $eccgui-font-family-default;
|
|
16
|
+
font-weight: $eccgui-font-weight-regular;
|
|
17
|
+
text-rendering: optimizeLegibility;
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
code {
|
|
23
|
+
font-family: $eccgui-font-family-monospace;
|
|
24
|
+
font-size: 0.9em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
strong {
|
|
28
|
+
font-weight: $eccgui-font-weight-bold;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
em {
|
|
32
|
+
font-family: $eccgui-font-family-cursive;
|
|
33
|
+
font-style: italic;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
sup {
|
|
37
|
+
vertical-align: super;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
sub {
|
|
41
|
+
vertical-align: sub;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a {
|
|
45
|
+
color: $eccgui-color-accent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
mark {
|
|
49
|
+
/*
|
|
50
|
+
we need to use important keyword overwrite here to prevent problems with
|
|
51
|
+
styles from other stylesheets we cannot control here
|
|
52
|
+
TODO: need to reevaluated when it is not used together with MDL anymore
|
|
53
|
+
*/
|
|
54
|
+
background-color: rgba(yellow, 0.61) !important;
|
|
55
|
+
color: black !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// HtmlContentBlock
|
|
59
|
+
|
|
60
|
+
.#{$eccgui}-typography__contentblock,
|
|
61
|
+
.#{$eccgui}-typography__text {
|
|
62
|
+
line-height: $eccgui-size-typo-text-lineheight;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$eccgui}-typography__contentblock.#{$eccgui}-typography--small {
|
|
66
|
+
line-height: $eccgui-size-typo-caption-lineheight;
|
|
67
|
+
font-size: $eccgui-size-typo-caption;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
h1 {
|
|
71
|
+
.#{$eccgui}-typography__contentblock &,
|
|
72
|
+
&.#{$eccgui}-typography__text {
|
|
73
|
+
font-size: $eccgui-size-typo-headline;
|
|
74
|
+
line-height: $eccgui-size-typo-headline-lineheight;
|
|
75
|
+
font-weight: $eccgui-font-weight-light;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
h2 {
|
|
80
|
+
.#{$eccgui}-typography__contentblock &,
|
|
81
|
+
&.#{$eccgui}-typography__text {
|
|
82
|
+
font-size: $eccgui-size-typo-title;
|
|
83
|
+
line-height: $eccgui-size-typo-title-lineheight;
|
|
84
|
+
font-weight: $eccgui-font-weight-light;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
h3 {
|
|
89
|
+
.#{$eccgui}-typography__contentblock &,
|
|
90
|
+
&.#{$eccgui}-typography__text {
|
|
91
|
+
font-size: $eccgui-size-typo-subtitle;
|
|
92
|
+
line-height: $eccgui-size-typo-subtitle-lineheight;
|
|
93
|
+
font-weight: $eccgui-font-weight-regular;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
h4 {
|
|
98
|
+
.#{$eccgui}-typography__contentblock &,
|
|
99
|
+
&.#{$eccgui}-typography__text {
|
|
100
|
+
font-size: $eccgui-size-typo-text;
|
|
101
|
+
line-height: $eccgui-size-typo-text-lineheight;
|
|
102
|
+
font-weight: $eccgui-font-weight-bold;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
h5 {
|
|
107
|
+
.#{$eccgui}-typography__contentblock &,
|
|
108
|
+
&.#{$eccgui}-typography__text {
|
|
109
|
+
font-size: $eccgui-size-typo-caption;
|
|
110
|
+
line-height: $eccgui-size-typo-caption-lineheight;
|
|
111
|
+
font-weight: $eccgui-font-weight-bold;
|
|
112
|
+
font-style: italic;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
h6 {
|
|
117
|
+
.#{$eccgui}-typography__contentblock &,
|
|
118
|
+
&.#{$eccgui}-typography__text {
|
|
119
|
+
font-size: $eccgui-size-typo-caption;
|
|
120
|
+
line-height: $eccgui-size-typo-caption-lineheight;
|
|
121
|
+
font-weight: $eccgui-font-weight-bold;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
ul {
|
|
126
|
+
.#{$eccgui}-typography__contentblock &,
|
|
127
|
+
&.#{$eccgui}-typography__text {
|
|
128
|
+
list-style: disc;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
ol {
|
|
133
|
+
.#{$eccgui}-typography__contentblock &,
|
|
134
|
+
&.#{$eccgui}-typography__text {
|
|
135
|
+
list-style: decimal;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
h1,
|
|
140
|
+
h2,
|
|
141
|
+
h3,
|
|
142
|
+
h4,
|
|
143
|
+
h5,
|
|
144
|
+
h6,
|
|
145
|
+
p,
|
|
146
|
+
blockquote,
|
|
147
|
+
pre,
|
|
148
|
+
ul,
|
|
149
|
+
ol,
|
|
150
|
+
table {
|
|
151
|
+
.#{$eccgui}-typography__contentblock &,
|
|
152
|
+
&.#{$eccgui}-typography__text {
|
|
153
|
+
&:not(:last-child) {
|
|
154
|
+
margin-bottom: $eccgui-size-block-whitespace;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
li {
|
|
160
|
+
.#{$eccgui}-typography__contentblock &,
|
|
161
|
+
&.#{$eccgui}-typography__text {
|
|
162
|
+
margin-left: $eccgui-size-block-whitespace * 2;
|
|
163
|
+
&:not(:last-child) {
|
|
164
|
+
margin-bottom: $eccgui-size-block-whitespace / 2;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
blockquote {
|
|
170
|
+
.#{$eccgui}-typography__contentblock &,
|
|
171
|
+
&.#{$eccgui}-typography__text {
|
|
172
|
+
margin: $eccgui-size-block-whitespace * 2;
|
|
173
|
+
|
|
174
|
+
&:last-child {
|
|
175
|
+
margin-bottom: 0;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
pre {
|
|
181
|
+
.#{$eccgui}-typography__contentblock &,
|
|
182
|
+
&.#{$eccgui}-typography__text {
|
|
183
|
+
background-color: $eccgui-color-workspace-background;
|
|
184
|
+
padding: $eccgui-size-block-whitespace / 2;
|
|
185
|
+
overflow-x: auto;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
table {
|
|
190
|
+
.#{$eccgui}-typography__contentblock & {
|
|
191
|
+
@extend .#{$prefix}--data-table;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.#{$eccgui}-typography__contentblock {
|
|
196
|
+
audio, canvas, iframe, img, svg, video {
|
|
197
|
+
max-width: 100%;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// OverflowText
|
|
202
|
+
|
|
203
|
+
.#{$ns}-text-overflow-ellipsis,
|
|
204
|
+
.#{$eccgui}-typography__overflowtext,
|
|
205
|
+
.#{$eccgui}-typography__overflowtext--passdown * {
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
word-wrap: normal;
|
|
209
|
+
white-space: nowrap;
|
|
210
|
+
// display: inherit;
|
|
211
|
+
max-width: 100%;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.#{$eccgui}-typography__overflowtext--inline {
|
|
215
|
+
display: inline-block;
|
|
216
|
+
|
|
217
|
+
&.#{$eccgui}-typography__overflowtext--passdown * {
|
|
218
|
+
display: inline;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.#{$eccgui}-typography__overflowtext--ellipsis-none {
|
|
223
|
+
text-overflow: clip;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.#{$eccgui}-typography__overflowtext--ellipsis-reverse {
|
|
227
|
+
direction: rtl;
|
|
228
|
+
text-overflow: ellipsis;
|
|
229
|
+
unicode-bidi: embed;
|
|
230
|
+
text-align: left;
|
|
231
|
+
|
|
232
|
+
&:after {
|
|
233
|
+
/*
|
|
234
|
+
hex value for ‎
|
|
235
|
+
@see https://stackoverflow.com/questions/20798667/#comment98304322_42551367
|
|
236
|
+
*/
|
|
237
|
+
content: "\200e";
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&:before {
|
|
241
|
+
/*
|
|
242
|
+
hex value for ‎
|
|
243
|
+
@see https://stackoverflow.com/questions/20798667/#comment98304322_42551367
|
|
244
|
+
*/
|
|
245
|
+
content: "\200e";
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// helpers
|
|
250
|
+
|
|
251
|
+
.#{$eccgui}-typography--nooverflow {
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.#{$eccgui}-typography--forcelinebreak {
|
|
256
|
+
word-break: break-all;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.#{$eccgui}-typography--preventlinebreak {
|
|
260
|
+
word-break: keep-all;
|
|
261
|
+
white-space: nowrap;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// white spaces
|
|
265
|
+
@each $whitespacePlace in ("margin", "padding") {
|
|
266
|
+
@each $whitespaceDirection in ("top", "right", "bottom", "left") {
|
|
267
|
+
@each $whitespaceSizeName,
|
|
268
|
+
$whitespaceSizeValue
|
|
269
|
+
in (
|
|
270
|
+
"tiny": $eccgui-size-typography-whitespace-regular/4,
|
|
271
|
+
"small": $eccgui-size-typography-whitespace-regular/2,
|
|
272
|
+
"regular": $eccgui-size-typography-whitespace-regular,
|
|
273
|
+
"large": $eccgui-size-typography-whitespace-regular * 1.5,
|
|
274
|
+
"xlarge": $eccgui-size-typography-whitespace-regular * 2
|
|
275
|
+
)
|
|
276
|
+
{
|
|
277
|
+
.#{$eccgui}-typography__whitespace-#{$whitespacePlace}#{$whitespaceDirection}-#{$whitespaceSizeName} {
|
|
278
|
+
#{$whitespacePlace}-#{$whitespaceDirection}: $whitespaceSizeValue;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
// import PropTypes from 'prop-types';
|
|
3
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
4
|
+
import Grid from "./../Grid/Grid";
|
|
5
|
+
import GridRow from "./../Grid/GridRow";
|
|
6
|
+
|
|
7
|
+
function WorkspaceContent({ children, className = '', ...restProps }: any) {
|
|
8
|
+
return (
|
|
9
|
+
<Grid
|
|
10
|
+
{...restProps}
|
|
11
|
+
as={'article'}
|
|
12
|
+
className={`${eccgui}-workspace__content ` + className}
|
|
13
|
+
fullWidth={true}
|
|
14
|
+
>
|
|
15
|
+
<GridRow>
|
|
16
|
+
{ children }
|
|
17
|
+
</GridRow>
|
|
18
|
+
</Grid>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default WorkspaceContent;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
|
+
|
|
4
|
+
interface IWorkspaceHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
children?: any;
|
|
6
|
+
/**
|
|
7
|
+
space-delimited list of class names
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function WorkspaceHeader({ children, className = '', ...otherProps }: IWorkspaceHeaderProps) {
|
|
13
|
+
return (
|
|
14
|
+
<div className={`${eccgui}-workspace__header ` + className} {...otherProps}>
|
|
15
|
+
{ children }
|
|
16
|
+
</div>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default WorkspaceHeader;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
|
+
// import PropTypes from 'prop-types';
|
|
4
|
+
import GridColumn from "./../Grid/GridColumn";
|
|
5
|
+
|
|
6
|
+
function WorkspaceMain({ children, className = "", ...restProps }: any) {
|
|
7
|
+
return (
|
|
8
|
+
<GridColumn {...restProps} className={`${eccgui}-workspace__main ` + className}>
|
|
9
|
+
{children}
|
|
10
|
+
</GridColumn>
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default WorkspaceMain;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
|
+
// import PropTypes from 'prop-types';
|
|
4
|
+
import GridColumn from "./../Grid/GridColumn";
|
|
5
|
+
|
|
6
|
+
function WorkspaceSide({ children, className = '', ...restProps }: any) {
|
|
7
|
+
return (
|
|
8
|
+
<GridColumn
|
|
9
|
+
{...restProps}
|
|
10
|
+
className={`${eccgui}-workspace__side `+className}
|
|
11
|
+
sm={4} md={8} lg={5} xlg={5}
|
|
12
|
+
>
|
|
13
|
+
{ children }
|
|
14
|
+
</GridColumn>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default WorkspaceSide;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'header';
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration base variables used to calculate config variables used in
|
|
3
|
+
* included libraries.
|
|
4
|
+
*
|
|
5
|
+
* @author Michael Haschke, eccenca GmbH
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
We use own prefix here to enable distinction to variables from other
|
|
10
|
+
libraries. Variables are only defined if they are not set before. Use those
|
|
11
|
+
variables to overwrite the default look of the application.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
$eccgui: "eccgui" !default;
|
|
15
|
+
|
|
16
|
+
// -- Configuration stack of colors --------------------------------------------
|
|
17
|
+
|
|
18
|
+
$eccgui-color-primary: rgb(254, 143, 1) !default;
|
|
19
|
+
$eccgui-color-primary-contrast: rgb(255, 255, 255) !default;
|
|
20
|
+
$eccgui-color-accent: rgb(10, 103, 163) !default;
|
|
21
|
+
$eccgui-color-accent-contrast: rgb(255, 255, 255) !default;
|
|
22
|
+
|
|
23
|
+
$eccgui-color-success-text: rgb(46, 125, 50) !default;
|
|
24
|
+
$eccgui-color-success-background: rgb(232, 245, 233) !default;
|
|
25
|
+
$eccgui-color-info-text: rgb(21, 101, 192) !default;
|
|
26
|
+
$eccgui-color-info-background: rgb(227, 242, 253) !default;
|
|
27
|
+
$eccgui-color-warning-text: rgb(239, 108, 0) !default;
|
|
28
|
+
$eccgui-color-warning-background: rgb(255, 243, 224) !default;
|
|
29
|
+
$eccgui-color-danger-text: rgb(198, 40, 40) !default;
|
|
30
|
+
$eccgui-color-danger-background: rgb(255, 235, 238) !default;
|
|
31
|
+
|
|
32
|
+
$eccgui-color-applicationheader-text: #222 !default;
|
|
33
|
+
$eccgui-color-applicationheader-background: #ddd !default;
|
|
34
|
+
$eccgui-color-workspace-text: #444 !default;
|
|
35
|
+
$eccgui-color-workspace-background: #f5f5f5 !default;
|
|
36
|
+
|
|
37
|
+
$eccgui-color-application-text: $eccgui-color-workspace-text !default; // deprecated
|
|
38
|
+
$eccgui-color-application-background: $eccgui-color-workspace-background !default; // deprecated
|
|
39
|
+
|
|
40
|
+
// -- Configuration stack of typography ----------------------------------------
|
|
41
|
+
|
|
42
|
+
$eccgui-font-family-serif: "Roboto Slab", serif !default;
|
|
43
|
+
$eccgui-font-family-serif-condensed: "Roboto Slab", serif !default;
|
|
44
|
+
$eccgui-font-family-sans: "Roboto", sans-serif !default;
|
|
45
|
+
$eccgui-font-family-sans-condensed: "Roboto Condensed", sans-serif !default;
|
|
46
|
+
$eccgui-font-family-monospace: "Roboto Mono", monospace !default;
|
|
47
|
+
$eccgui-font-family-monospace-condensed: "Roboto Mono", monospace !default;
|
|
48
|
+
$eccgui-font-family-cursive: #{$eccgui-font-family-serif-condensed}, cursive !default;
|
|
49
|
+
$eccgui-font-family-fantasy: fantasy !default;
|
|
50
|
+
$eccgui-font-family-default: $eccgui-font-family-sans !default;
|
|
51
|
+
$eccgui-size-typo-base: 14px !default; // size including absolute unit, preferable px
|
|
52
|
+
$eccgui-size-typo-base-lineheight: 1.39 !default; // only ratio to font size, no unit!
|
|
53
|
+
$eccgui-size-type-levelratio: 7/6 !default; // ratio without unit! used to calculate different text sizes, etc ...
|
|
54
|
+
|
|
55
|
+
$eccgui-font-weight-light: 300 !default;
|
|
56
|
+
$eccgui-font-weight-regular: 400 !default;
|
|
57
|
+
$eccgui-font-weight-bold: 600 !default;
|
|
58
|
+
$eccgui-font-spacing-condensed: -0.5px !default;
|
|
59
|
+
$eccgui-font-spacing-regular: 0 !default;
|
|
60
|
+
$eccgui-font-spacing-wide: 0.5px !default;
|
|
61
|
+
|
|
62
|
+
// -- Configuration stack of sizes ---------------------------------------------
|
|
63
|
+
|
|
64
|
+
$eccgui-size-block-whitespace: $eccgui-size-typo-base !default;
|
|
65
|
+
$eccgui-size-inline-whitespace: $eccgui-size-typo-base / 2 !default;
|
|
66
|
+
|
|
67
|
+
// -- Configuration stack of opacities -----------------------------------------
|
|
68
|
+
|
|
69
|
+
$eccgui-opacity-regular: 1 !default;
|
|
70
|
+
$eccgui-opacity-narrow: 0.8 !default;
|
|
71
|
+
$eccgui-opacity-muted: 0.61 !default;
|
|
72
|
+
$eccgui-opacity-disabled: 0.39 !default;
|
|
73
|
+
$eccgui-opacity-invisible: 0 !default;
|
|
74
|
+
|
|
75
|
+
// -- Calculation of more config vars ------------------------------------------
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
You can overwrite them by setting them before loading this configuration but
|
|
79
|
+
it is not recommended to do so.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
$eccgui-size-typo-caption: 1 / $eccgui-size-type-levelratio *
|
|
83
|
+
$eccgui-size-typo-base !default;
|
|
84
|
+
$eccgui-size-typo-caption-lineheight: max(
|
|
85
|
+
$eccgui-size-type-levelratio * $eccgui-size-typo-base-lineheight,
|
|
86
|
+
1
|
|
87
|
+
) !default;
|
|
88
|
+
$eccgui-size-typo-text: $eccgui-size-typo-base !default; // should be `1rem` but bp3 currently do not support rem units here, leads to errors in their calculations for values of other properties
|
|
89
|
+
$eccgui-size-typo-text-lineheight: max(
|
|
90
|
+
$eccgui-size-typo-base-lineheight,
|
|
91
|
+
1
|
|
92
|
+
) !default;
|
|
93
|
+
$eccgui-size-typo-subtitle: $eccgui-size-type-levelratio *
|
|
94
|
+
$eccgui-size-typo-text !default;
|
|
95
|
+
$eccgui-size-typo-subtitle-lineheight: max(
|
|
96
|
+
1 / $eccgui-size-type-levelratio * $eccgui-size-typo-text-lineheight,
|
|
97
|
+
1
|
|
98
|
+
) !default;
|
|
99
|
+
$eccgui-size-typo-title: $eccgui-size-type-levelratio *
|
|
100
|
+
$eccgui-size-typo-subtitle !default;
|
|
101
|
+
$eccgui-size-typo-title-lineheight: max(
|
|
102
|
+
1 / $eccgui-size-type-levelratio * $eccgui-size-typo-subtitle-lineheight,
|
|
103
|
+
1
|
|
104
|
+
) !default;
|
|
105
|
+
$eccgui-size-typo-headline: $eccgui-size-type-levelratio *
|
|
106
|
+
$eccgui-size-typo-title !default;
|
|
107
|
+
$eccgui-size-typo-headline-lineheight: max(
|
|
108
|
+
1 / $eccgui-size-type-levelratio * $eccgui-size-typo-title-lineheight,
|
|
109
|
+
1
|
|
110
|
+
) !default;
|
|
111
|
+
$eccgui-size-typo-display-1: $eccgui-size-type-levelratio *
|
|
112
|
+
$eccgui-size-typo-headline !default;
|
|
113
|
+
$eccgui-size-typo-display-1-lineheight: max(
|
|
114
|
+
1 / $eccgui-size-type-levelratio * $eccgui-size-typo-headline-lineheight,
|
|
115
|
+
1
|
|
116
|
+
) !default;
|
|
117
|
+
$eccgui-size-typo-display-2: $eccgui-size-type-levelratio *
|
|
118
|
+
$eccgui-size-typo-display-1 !default;
|
|
119
|
+
$eccgui-size-typo-display-2-lineheight: max(
|
|
120
|
+
1 / $eccgui-size-type-levelratio * $eccgui-size-typo-display-1-lineheight,
|
|
121
|
+
1
|
|
122
|
+
) !default;
|
|
123
|
+
$eccgui-size-typo-display-3: $eccgui-size-type-levelratio *
|
|
124
|
+
$eccgui-size-typo-display-2 !default;
|
|
125
|
+
$eccgui-size-typo-display-3-lineheight: max(
|
|
126
|
+
1 / $eccgui-size-type-levelratio * $eccgui-size-typo-display-2-lineheight,
|
|
127
|
+
1
|
|
128
|
+
) !default;
|
|
129
|
+
|
|
130
|
+
$eccgui-size-maxwidth-workview: 100 * $eccgui-size-typo-text;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./react-flow/react-flow";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$reactflow-node-basesize: $button-height !default;
|
|
2
|
+
$reactflow-node-border-color: $eccgui-color-workspace-text !default;
|
|
3
|
+
$reactflow-node-background-color: $button-background-color !default;
|
|
4
|
+
$reactflow-node-color: $eccgui-color-workspace-text !default;
|
|
5
|
+
$reactflow-node-font-size: $eccgui-size-typo-caption !default;
|
|
6
|
+
$reactflow-node-border-width: $button-border-width !default;
|
|
7
|
+
$reactflow-node-border-radius: $button-border-radius !default;
|
|
8
|
+
$reactflow-edge-stroke-color: rgba($eccgui-color-workspace-text, .61) !default;
|
|
9
|
+
$reactflow-edge-stroke-color-hover: $eccgui-color-workspace-text !default;
|
|
10
|
+
$reactflow-edge-stroke-color-selected: $eccgui-color-accent !default;
|
|
11
|
+
$reactflow-transition-time: 0.25s !default;
|
|
12
|
+
$reactflow-transition-function: !default;
|
|
13
|
+
|
|
14
|
+
$reactflow-edge-stroke-opacity: alpha($reactflow-edge-stroke-color) !default;
|
|
15
|
+
$reactflow-edge-stroke-opacity-hover: alpha($reactflow-edge-stroke-color) !default;
|
|
16
|
+
$reactflow-edge-stroke-opacity-selected: alpha($reactflow-edge-stroke-color) !default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
EdgeProps as ReactFlowEdgeProps,
|
|
4
|
+
} from "react-flow-renderer/dist/types";
|
|
5
|
+
import {
|
|
6
|
+
getMarkerEnd,
|
|
7
|
+
getEdgeCenter,
|
|
8
|
+
EdgeText,
|
|
9
|
+
} from "react-flow-renderer";
|
|
10
|
+
import { drawEdgeStraight} from "./utils";
|
|
11
|
+
|
|
12
|
+
export interface EdgeDefaultDataProps {
|
|
13
|
+
pathGlowWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface EdgeDefaultProps extends ReactFlowEdgeProps {
|
|
17
|
+
data?: EdgeDefaultDataProps,
|
|
18
|
+
drawSvgPath?: (edge: ReactFlowEdgeProps) => string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const EdgeDefault = memo(
|
|
22
|
+
(edge: EdgeDefaultProps) => {
|
|
23
|
+
const {
|
|
24
|
+
data = {},
|
|
25
|
+
drawSvgPath = drawEdgeStraight,
|
|
26
|
+
...edgeOriginalProperties
|
|
27
|
+
} = edge;
|
|
28
|
+
const {
|
|
29
|
+
pathGlowWidth = 10,
|
|
30
|
+
} = data;
|
|
31
|
+
|
|
32
|
+
const pathDisplay = drawSvgPath({...edgeOriginalProperties, data});
|
|
33
|
+
const markerEnd = getMarkerEnd(
|
|
34
|
+
edgeOriginalProperties.arrowHeadType,
|
|
35
|
+
edgeOriginalProperties.markerEndId
|
|
36
|
+
);
|
|
37
|
+
const edgeCenter = getEdgeCenter({
|
|
38
|
+
sourceX: edgeOriginalProperties.sourceX,
|
|
39
|
+
sourceY: edgeOriginalProperties.sourceY,
|
|
40
|
+
targetX: edgeOriginalProperties.targetX,
|
|
41
|
+
targetY: edgeOriginalProperties.targetY,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const edgeLabel = edgeOriginalProperties.label ? (
|
|
45
|
+
<EdgeText
|
|
46
|
+
x={edgeCenter[0]}
|
|
47
|
+
y={edgeCenter[1]}
|
|
48
|
+
label={edgeOriginalProperties.label}
|
|
49
|
+
labelStyle={edgeOriginalProperties.labelStyle}
|
|
50
|
+
labelShowBg={edgeOriginalProperties.labelShowBg}
|
|
51
|
+
labelBgStyle={edgeOriginalProperties.labelBgStyle}
|
|
52
|
+
labelBgPadding={edgeOriginalProperties.labelBgPadding || [5, 5]}
|
|
53
|
+
labelBgBorderRadius={edgeOriginalProperties.labelBgBorderRadius || 3}
|
|
54
|
+
/>
|
|
55
|
+
) : null;
|
|
56
|
+
|
|
57
|
+
const edgeStyle = edgeOriginalProperties.style ?? {};
|
|
58
|
+
return (
|
|
59
|
+
<g style={{...edgeStyle, color: edgeStyle.color || edgeStyle.stroke}}>
|
|
60
|
+
{ pathGlowWidth && (
|
|
61
|
+
<path
|
|
62
|
+
d={pathDisplay}
|
|
63
|
+
className="react-flow__edge-path-glow"
|
|
64
|
+
strokeWidth={pathGlowWidth}
|
|
65
|
+
/>
|
|
66
|
+
)}
|
|
67
|
+
<path
|
|
68
|
+
d={pathDisplay}
|
|
69
|
+
className="react-flow__edge-path"
|
|
70
|
+
|
|
71
|
+
markerEnd={markerEnd}
|
|
72
|
+
/>
|
|
73
|
+
{ edgeLabel }
|
|
74
|
+
</g>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { EdgeDefaultProps, EdgeDefaultDataProps, EdgeDefault} from "./EdgeDefault";
|
|
3
|
+
import { drawEdgeStep } from "./utils";
|
|
4
|
+
|
|
5
|
+
export interface EdgeStepDataProps extends EdgeDefaultDataProps {
|
|
6
|
+
stepCornerRadius?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface EdgeStepProps extends EdgeDefaultProps {
|
|
10
|
+
data?: EdgeStepDataProps,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const EdgeStep = memo(
|
|
14
|
+
(edge: EdgeStepProps) => {
|
|
15
|
+
return (
|
|
16
|
+
<EdgeDefault {...edge} drawSvgPath={drawEdgeStep} />
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, {memo} from 'react';
|
|
2
|
+
import {ContextOverlay} from "../../../index";
|
|
3
|
+
import {CLASSPREFIX as eccgui} from "../../../configuration/constants";
|
|
4
|
+
import {
|
|
5
|
+
IPopoverProps as IBlueprintPopoverProps,
|
|
6
|
+
PopoverInteractionKind as BlueprintPopoverInteractionKind,
|
|
7
|
+
} from "@blueprintjs/core";
|
|
8
|
+
|
|
9
|
+
interface PosOffset {
|
|
10
|
+
left: number;
|
|
11
|
+
top: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface EdgeToolsProps extends IBlueprintPopoverProps {
|
|
15
|
+
posOffset: PosOffset;
|
|
16
|
+
children: string | JSX.Element | JSX.Element[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const EdgeTools = memo(
|
|
20
|
+
({
|
|
21
|
+
posOffset,
|
|
22
|
+
children,
|
|
23
|
+
...otherProps
|
|
24
|
+
}: EdgeToolsProps) => {
|
|
25
|
+
return (
|
|
26
|
+
<div className={`${eccgui}-graphviz__edgetools-target`} style={{ ...posOffset }}>
|
|
27
|
+
<ContextOverlay
|
|
28
|
+
{...otherProps}
|
|
29
|
+
defaultIsOpen={true}
|
|
30
|
+
autoFocus={true}
|
|
31
|
+
interactionKind={BlueprintPopoverInteractionKind.HOVER}
|
|
32
|
+
content={<div className={`${eccgui}-graphviz__edgetools-content`}>{children}</div>}
|
|
33
|
+
target={<div className={`${eccgui}-graphviz__edgetools-target`} style={{ ...posOffset }} />}
|
|
34
|
+
popoverClassName={`${eccgui}-graphviz__edgetools-overlay`}
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
);
|