From 239846a86b081e0e681c2ac79517eabeb8227bfb Mon Sep 17 00:00:00 2001
From: swapnil-verma-gl <92505353+swapnil-verma-gl@users.noreply.github.com>
Date: Thu, 13 Jun 2024 16:00:34 +0530
Subject: [PATCH] [ACS-7979] Fixed UI for create tags dialog (#9793)
* [ACS-7979] Fixed UI for create tags dialog. Minor UI fixes of create categories dialog as well
* [ACS-7979] Fixed unit tests
* [ACS-7979] Replaced dependency of CoreModule from tag.module.ts with TranslateModule and DynamicChipListModule
---
.../categories-management.component.html | 4 +-
.../categories-management.component.scss | 24 ++++----
.../categories-management.component.ts | 5 +-
.../src/lib/tag/tag.module.ts | 28 ++++-----
.../tags-creator/tags-creator.component.html | 27 +++++----
.../tags-creator/tags-creator.component.scss | 59 ++++++++-----------
.../tags-creator.component.spec.ts | 2 +-
.../tags-creator/tags-creator.component.ts | 12 ++--
8 files changed, 76 insertions(+), 85 deletions(-)
diff --git a/lib/content-services/src/lib/category/categories-management/categories-management.component.html b/lib/content-services/src/lib/category/categories-management/categories-management.component.html
index 80195fd17d7..5dae3295617 100644
--- a/lib/content-services/src/lib/category/categories-management/categories-management.component.html
+++ b/lib/content-services/src/lib/category/categories-management/categories-management.component.html
@@ -8,7 +8,7 @@
/>
0))) { const selectedCategory: Category = category; this.categories.push(selectedCategory); this._existingCategories.splice(this._existingCategories.indexOf(selectedCategory), 1); diff --git a/lib/content-services/src/lib/tag/tag.module.ts b/lib/content-services/src/lib/tag/tag.module.ts index 03dc48fa708..abdfe8d58fa 100644 --- a/lib/content-services/src/lib/tag/tag.module.ts +++ b/lib/content-services/src/lib/tag/tag.module.ts @@ -15,17 +15,19 @@ * limitations under the License. */ -import { CommonModule } from '@angular/common'; +import { CommonModule, NgForOf } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; - import { MaterialModule } from '../material.module'; import { TagActionsComponent } from './tag-actions.component'; import { TagListComponent } from './tag-list.component'; import { TagNodeListComponent } from './tag-node-list.component'; -import { CoreModule } from '@alfresco/adf-core'; import { TagsCreatorComponent } from './tags-creator/tags-creator.component'; import { ContentDirectiveModule } from '../directives/content-directive.module'; +import { MatChipsModule } from '@angular/material/chips'; +import { MatIconModule } from '@angular/material/icon'; +import { TranslateModule } from '@ngx-translate/core'; +import { DynamicChipListModule } from '@alfresco/adf-core'; @NgModule({ imports: [ @@ -34,19 +36,13 @@ import { ContentDirectiveModule } from '../directives/content-directive.module'; MaterialModule, FormsModule, ReactiveFormsModule, - CoreModule - ], - exports: [ - TagActionsComponent, - TagListComponent, - TagNodeListComponent, - TagsCreatorComponent + TranslateModule, + DynamicChipListModule, + MatChipsModule, + MatIconModule, + NgForOf ], - declarations: [ - TagActionsComponent, - TagListComponent, - TagNodeListComponent, - TagsCreatorComponent - ] + exports: [TagActionsComponent, TagListComponent, TagNodeListComponent, TagsCreatorComponent], + declarations: [TagActionsComponent, TagListComponent, TagNodeListComponent, TagsCreatorComponent] }) export class TagModule {} diff --git a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html index 9e5ff198449..a45fec0dbb9 100644 --- a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html +++ b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html @@ -16,19 +16,20 @@ {{ 'TAG.TAGS_CREATOR.NO_TAGS_CREATED' | translate }}