diff --git a/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/Canvas.wrapper.tsx b/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/Canvas.wrapper.tsx index 3bbc0f6..ae0bea7 100644 --- a/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/Canvas.wrapper.tsx +++ b/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/Canvas.wrapper.tsx @@ -61,6 +61,9 @@ export class CanvasWrapper extends React.Component private ref = React.createRef(); public componentDidMount () { + window.addEventListener('error', function (e) { + console.error(e); + }); this.updateSize(); if (this.ref.current) { diff --git a/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/CanvasOuter.default.tsx b/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/CanvasOuter.default.tsx index 237529b..371188d 100644 --- a/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/CanvasOuter.default.tsx +++ b/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/CanvasOuter.default.tsx @@ -25,6 +25,7 @@ export interface ICanvasOuterDefaultProps { export const CanvasOuterDefault = styled.div` position: relative; + border-radius: 15px; background-size: 20px 20px; background-color: rgba(0,0,0,0.08); background-image: diff --git a/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/PropertiesPanel/PropertiesPanel.tsx b/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/PropertiesPanel/PropertiesPanel.tsx index 32d8efb..eb35e11 100644 --- a/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/PropertiesPanel/PropertiesPanel.tsx +++ b/src/components/generic/DiagramCanvas/flowDiagram/components/Canvas/PropertiesPanel/PropertiesPanel.tsx @@ -15,14 +15,11 @@ ******************************************************************************************************************** */ //import * as React from 'react'; -import ColumnLayout from '@cloudscape-design/components/column-layout'; -import Form from '@cloudscape-design/components/form'; -import FormField from '@cloudscape-design/components/form-field'; -import Textarea from '@cloudscape-design/components/textarea'; -import Checkbox from '@cloudscape-design/components/checkbox'; +import { ColumnLayout, Form, FormField, Textarea, Checkbox, TagEditor, ExpandableSection, Multiselect } from '@cloudscape-design/components'; +import { dataFeaturesOptions, securityFeaturesOptions, techFeaturesOptions } from './panel-config'; +//import { OptionDefinition } from '@cloudscape-design/components/internal/components/option/interfaces'; export default function PropertiesPanel(props) { - //console.log('clickedObjectProperties ', props); function handleNameChange(event) { props.onChangeName(event.detail.value); }; @@ -35,6 +32,18 @@ export default function PropertiesPanel(props) { function handleOutOfScopeReasonChange(event) { props.onChangeOutOfScopeReason(event.detail.value); }; + function handleTagsChange(event) { + props.onChangeTags(event.detail.tags); + }; + function handleDataFeaturesChange(event) { + props.onChangeDataFeatures(event.detail.selectedOptions); + }; + function handleTechFeaturesChange(event) { + props.onChangeTechFeatures(event.detail.selectedOptions); + }; + function handleSecurityFeaturesChange(event) { + props.onChangeSecurityFeatures(event.detail.selectedOptions); + }; return (
e.preventDefault()} > @@ -74,10 +83,66 @@ export default function PropertiesPanel(props) {