From 08881d4054251a475cb70113b0d637ec2af7aeae Mon Sep 17 00:00:00 2001 From: Ahmedeldeeb50 Date: Tue, 29 Sep 2020 11:39:40 +0200 Subject: Mapping Table Editing - add table opreation buttons. Issue-ID: CCSDK-2795 Signed-off-by: Ahmedeldeeb50 Change-Id: I1728b5bc3b72a8ebf60a3ad9465afe3f55cdaad0 --- .../templ-mapp-creation.component.html | 59 +++++++++++++++++----- .../templ-mapp-creation.component.ts | 6 ++- 2 files changed, 49 insertions(+), 16 deletions(-) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html index 34644c42c..870770ac5 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html @@ -123,18 +123,26 @@ - + - +
-
- +
+ -
- - -
+
+ + +
+ {{selectedProps.size}} selected + ({{resourceDictionaryRes.length}} attributes in total) +
+
@@ -152,13 +160,15 @@
-
- - -
- +
@@ -193,9 +203,22 @@
+ + @@ -208,6 +231,14 @@ +
Required Parameter Name Dictionary Name
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts index 94fa3db99..9d94b6bf8 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts @@ -53,8 +53,8 @@ export class TemplMappCreationComponent implements OnInit, OnDestroy { currentMapping: any; edit = false; fileToDelete: any = {}; - parserFactory = new ParserFactory(); - selectedProps = new Set(); + parserFactory: ParserFactory; + selectedProps: Set; constructor( private packageCreationStore: PackageCreationStore, @@ -68,6 +68,8 @@ export class TemplMappCreationComponent implements OnInit, OnDestroy { } ngOnInit() { + this.selectedProps = new Set(); + this.parserFactory = new ParserFactory(); this.templateStore.state$.subscribe(templateInfo => { // init Template&mapping vars console.log('Oninit'); -- cgit 1.2.3-korg