aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/connection-wizard/properties-step
diff options
context:
space:
mode:
authorys9693 <ys9693@att.com>2020-01-19 13:50:02 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-01-22 12:33:31 +0000
commit16a9fce0e104a38371a9e5a567ec611ae3fc7f33 (patch)
tree03a2aff3060ddb5bc26a90115805a04becbaffc9 /catalog-ui/src/app/ng2/pages/connection-wizard/properties-step
parentaa83a2da4f911c3ac89318b8e9e8403b072942e1 (diff)
Catalog alignment
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/connection-wizard/properties-step')
-rw-r--r--catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.html30
-rw-r--r--catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.less15
-rw-r--r--catalog-ui/src/app/ng2/pages/connection-wizard/properties-step/properties-step.component.ts68
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;
- }
-}