From a5445100050e49e83f73424198d73cd72d672a4d Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 4 Mar 2018 14:53:33 +0200 Subject: Sync Integ to Master Change-Id: I71e3acc26fa612127756ac04073a522b9cc6cd74 Issue-ID: SDC-977 Signed-off-by: Gitelman, Tal (tg851x) --- .../ng2/components/logic/inputs-table/inputs-table.component.html | 6 +++--- .../ng2/components/logic/inputs-table/inputs-table.component.less | 7 +++---- .../ng2/components/logic/inputs-table/inputs-table.component.ts | 7 ++++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'catalog-ui/src/app/ng2/components/logic/inputs-table') diff --git a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.html b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.html index 57e0474c66..b7cde7eb23 100644 --- a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.html +++ b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.html @@ -30,11 +30,11 @@ + (elementChanged)="onInputChanged(input, $event)" + [readonly]="readonly">
diff --git a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.less b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.less index 0545874f53..d709f3f0c5 100644 --- a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.less +++ b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.less @@ -11,7 +11,7 @@ text-align:left; .inner-cell-div{ - width: 100%; + max-width: 100%; text-overflow: ellipsis; overflow: hidden; height: 20px; @@ -85,8 +85,8 @@ border-right:#d2d2d2 solid 1px; } &.col1 { - flex: 1 0 200px; - max-width:300px; + flex: 1 0 210px; + max-width:210px; display: flex; justify-content: space-between; @@ -121,7 +121,6 @@ .value-input { flex: 1; - max-height: 24px; border: none; background-color: inherit; diff --git a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts index 0add1cd707..ebecbc9390 100644 --- a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts +++ b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts @@ -36,7 +36,7 @@ export class InputsTableComponent { @Input() instanceNamesMap: Map; @Input() readonly:boolean; @Input() isLoading:boolean; - @Output() inputValueChanged: EventEmitter = new EventEmitter(); + @Output() inputChanged: EventEmitter = new EventEmitter(); @Output() deleteInput: EventEmitter = new EventEmitter(); selectedInputToDelete:InputFEModel; @@ -44,8 +44,9 @@ export class InputsTableComponent { constructor(private modalService: ModalService){ } - onInputValueChanged = (input) => { - this.inputValueChanged.emit(input); + onInputChanged = (input, event) => { + input.updateDefaultValueObj(event.value, event.isValid); + this.inputChanged.emit(input); }; onDeleteInput = () => { -- cgit 1.2.3-korg