From 16a9fce0e104a38371a9e5a567ec611ae3fc7f33 Mon Sep 17 00:00:00 2001 From: ys9693 Date: Sun, 19 Jan 2020 13:50:02 +0200 Subject: Catalog alignment Issue-ID: SDC-2724 Signed-off-by: ys9693 Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe --- .../properties-step/properties-step.component.html | 30 ---------- .../properties-step/properties-step.component.less | 15 ----- .../properties-step/properties-step.component.ts | 68 ---------------------- 3 files changed, 113 deletions(-) delete mode 100644 catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.html delete mode 100644 catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.less delete mode 100644 catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.ts (limited to 'catalog-ui/src/app/ng2/pages/connection-wizard/properties-step') diff --git a/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.html b/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.html deleted file mode 100644 index 293ebf9822..0000000000 --- a/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -
- - {{(connectWizardService.selectedMatch.capability && connectWizardService.selectedMatch.capability.getTitle()) || connectWizardService.selectedMatch.relationship.relation.capability}} - -
-
- - -
\ No newline at end of file diff --git a/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.less b/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.less deleted file mode 100644 index 8e9e07c0d5..0000000000 --- a/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.less +++ /dev/null @@ -1,15 +0,0 @@ -@import '../../../../../assets/styles/variables'; -.title{ - margin-bottom: 20px; - .capability-name-label{ - font-size: 13px; - } - .capability-name{ - font-family: @font-opensans-medium; - color: @main_color_a; - } -} -.properties-table-container{ - height: 362px; - overflow-y: auto; -} \ No newline at end of file diff --git a/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.ts b/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.ts deleted file mode 100644 index 946d1858dc..0000000000 --- a/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Created by ob0695 on 9/4/2017. - */ -/** - * Created by rc2122 on 9/4/2017. - */ -import {Component, Inject, forwardRef} from '@angular/core'; -import {IStepComponent} from "app/models" -import {ConnectionWizardService} from "../connection-wizard.service"; -import {PropertyFEModel} from "../../../../models/properties-inputs/property-fe-model"; -import {InstanceFePropertiesMap} from "../../../../models/properties-inputs/property-fe-map"; -import {PropertiesUtils} from "../../properties-assignment/services/properties.utils"; -import {ComponentInstanceServiceNg2} from "../../../services/component-instance-services/component-instance.service"; - -@Component({ - selector: 'properties-step', - templateUrl: './properties-step.component.html', - styleUrls: ['./properties-step.component.less'] -}) - -export class PropertiesStepComponent implements IStepComponent{ - - capabilityPropertiesMap: InstanceFePropertiesMap; - savingProperty:boolean = false; - - constructor(@Inject(forwardRef(() => ConnectionWizardService)) public connectWizardService: ConnectionWizardService, private componentInstanceServiceNg2:ComponentInstanceServiceNg2, private propertiesUtils:PropertiesUtils) { - - this.capabilityPropertiesMap = this.propertiesUtils.convertPropertiesMapToFEAndCreateChildren({'capability' : connectWizardService.selectedMatch.capability.properties}, false); - } - - ngOnInit() { - this.connectWizardService.changedCapabilityProperties = []; - } - - onPropertySelectedUpdate = ($event) => { - console.log("==>" + 'PROPERTY VALUE SELECTED'); - // this.selectedFlatProperty = $event; - // let parentProperty:PropertyFEModel = this.propertiesService.getParentPropertyFEModelFromPath(this.instanceFePropertiesMap[this.selectedFlatProperty.instanceName], this.selectedFlatProperty.path); - // parentProperty.expandedChildPropertyId = this.selectedFlatProperty.path; - }; - - propertyValueChanged = (property: PropertyFEModel) => { - if (!property.isDeclared) { - const propChangedIdx = this.connectWizardService.changedCapabilityProperties.indexOf(property); - if (property.hasValueObjChanged()) { - // if (this.componentInstanceServiceNg2.hasPropertyChanged(property)) { - console.log("==>" + this.constructor.name + ": propertyValueChanged " + property); - if (propChangedIdx === -1) { - this.connectWizardService.changedCapabilityProperties.push(property); - } - } - else { - if (propChangedIdx !== -1) { - console.log("==>" + this.constructor.name + ": propertyValueChanged (reset to original) " + property); - this.connectWizardService.changedCapabilityProperties.splice(propChangedIdx, 1); - } - } - } - }; - - preventNext = ():boolean => { - return false; - } - - preventBack = ():boolean => { - return this.savingProperty; - } -} -- cgit 1.2.3-korg