diff options
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/connection-wizard/properties-step')
3 files changed, 0 insertions, 113 deletions
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 @@ -<!-- - ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. - ~ - ~ Licensed under the Apache License, Version 2.0 (the "License"); - ~ you may not use this file except in compliance with the License. - ~ You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, software - ~ distributed under the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ~ See the License for the specific language governing permissions and - ~ limitations under the License. - --> - - -<div class="title"> - <span class="capability-name"> - {{(connectWizardService.selectedMatch.capability && connectWizardService.selectedMatch.capability.getTitle()) || connectWizardService.selectedMatch.relationship.relation.capability}} - </span> -</div> -<div class="properties-table-container"> - <properties-table class="properties-table" - (propertyChanged)="propertyValueChanged($event)" - [fePropertiesMap]="capabilityPropertiesMap" - [selectedPropertyId]="''" - [hidePropertyType]="true"> - </properties-table> -</div>
\ 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; - } -} |