diff --git a/app/src/app/app.module.ts b/app/src/app/app.module.ts
index 694826faa7..0f1fdb390e 100644
--- a/app/src/app/app.module.ts
+++ b/app/src/app/app.module.ts
@@ -27,7 +27,7 @@ import { NgModule } from '@angular/core';
import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';
import { TRANSLATION_PROVIDER, AppConfigService, DebugAppConfigService, CoreModule, AuthGuard } from '@alfresco/adf-core';
-import { AppService, SharedModule } from '@alfresco/aca-shared';
+import { AppService } from '@alfresco/aca-shared';
import { AppExtensionsModule } from './extensions.module';
import { environment } from '../environments/environment';
@@ -89,7 +89,6 @@ registerLocaleData(localeSv);
BrowserModule,
TranslateModule.forRoot(),
CoreModule.forRoot(),
- SharedModule,
CoreExtensionsModule.forRoot(),
LoginComponent,
environment.e2e ? NoopAnimationsModule : BrowserAnimationsModule,
diff --git a/projects/aca-content/about/src/about.component.ts b/projects/aca-content/about/src/about.component.ts
index 8b3c25f767..35d3705395 100644
--- a/projects/aca-content/about/src/about.component.ts
+++ b/projects/aca-content/about/src/about.component.ts
@@ -28,7 +28,7 @@ import { AboutModule, AppConfigService, AuthenticationService, RepositoryInfo }
import { DiscoveryApiService } from '@alfresco/adf-content-services';
import { PACKAGE_JSON } from './package-json.token';
import { TranslateModule } from '@ngx-translate/core';
-import { AppExtensionService, PageLayoutModule } from '@alfresco/aca-shared';
+import { AppExtensionService, PageLayoutComponent, PageLayoutContentComponent, PageLayoutHeaderComponent } from '@alfresco/aca-shared';
import { RouterModule } from '@angular/router';
import { MatIconModule } from '@angular/material/icon';
import { CommonModule } from '@angular/common';
@@ -36,7 +36,17 @@ import { MatButtonModule } from '@angular/material/button';
@Component({
standalone: true,
- imports: [CommonModule, TranslateModule, AboutModule, PageLayoutModule, RouterModule, MatIconModule, MatButtonModule],
+ imports: [
+ CommonModule,
+ TranslateModule,
+ AboutModule,
+ RouterModule,
+ MatIconModule,
+ MatButtonModule,
+ PageLayoutHeaderComponent,
+ PageLayoutContentComponent,
+ PageLayoutComponent
+ ],
selector: 'app-about-page',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss'],
diff --git a/projects/aca-content/folder-rules/src/folder-rules.module.ts b/projects/aca-content/folder-rules/src/folder-rules.module.ts
index d888af5429..9b1179188a 100644
--- a/projects/aca-content/folder-rules/src/folder-rules.module.ts
+++ b/projects/aca-content/folder-rules/src/folder-rules.module.ts
@@ -22,19 +22,16 @@
* from Hyland Software. If not, see .
*/
-import { CoreModule, TranslationService } from '@alfresco/adf-core';
-import { ExtensionService, ExtensionsModule, provideExtensionConfig } from '@alfresco/adf-extensions';
+import { TranslationService } from '@alfresco/adf-core';
+import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
import { NgModule } from '@angular/core';
import * as rules from './folder-rules.rules';
-import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { EditRuleDialogUiComponent } from './rule-details/edit-rule-dialog.ui-component';
import { ManageRulesSmartComponent } from './manage-rules/manage-rules.smart-component';
import { RuleCompositeConditionUiComponent } from './rule-details/conditions/rule-composite-condition.ui-component';
import { RuleDetailsUiComponent } from './rule-details/rule-details.ui-component';
import { RuleSimpleConditionUiComponent } from './rule-details/conditions/rule-simple-condition.ui-component';
-import { GenericErrorComponent, PageLayoutModule } from '@alfresco/aca-shared';
-import { BreadcrumbModule, ContentNodeSelectorModule, DocumentListModule } from '@alfresco/adf-content-services';
import { RuleListItemUiComponent } from './rule-list/rule-list-item/rule-list-item.ui-component';
import { RuleListGroupingUiComponent } from './rule-list/rule-list-grouping/rule-list-grouping.ui-component';
import { RuleTriggersUiComponent } from './rule-details/triggers/rule-triggers.ui-component';
@@ -54,30 +51,20 @@ const routes: Routes = [
@NgModule({
providers: [provideExtensionConfig(['folder-rules.plugin.json'])],
imports: [
- CommonModule,
RouterModule.forChild(routes),
- CoreModule.forChild(),
- PageLayoutModule,
- BreadcrumbModule,
- DocumentListModule,
- ExtensionsModule,
- ContentNodeSelectorModule,
- GenericErrorComponent
- ],
- declarations: [
- EditRuleDialogUiComponent,
+ RuleListItemUiComponent,
+ RuleListGroupingUiComponent,
+ RuleListUiComponent,
ManageRulesSmartComponent,
+ RuleSetPickerSmartComponent,
RuleActionListUiComponent,
RuleActionUiComponent,
RuleCompositeConditionUiComponent,
- RuleDetailsUiComponent,
- RuleListGroupingUiComponent,
- RuleListItemUiComponent,
- RuleListUiComponent,
- RuleSetPickerSmartComponent,
RuleSimpleConditionUiComponent,
+ RuleOptionsUiComponent,
RuleTriggersUiComponent,
- RuleOptionsUiComponent
+ RuleDetailsUiComponent,
+ EditRuleDialogUiComponent
]
})
export class AcaFolderRulesModule {
diff --git a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.spec.ts b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.spec.ts
index 00c14cbd6e..6fd288eaf8 100644
--- a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.spec.ts
@@ -23,7 +23,6 @@
*/
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { AcaFolderRulesModule } from '../folder-rules.module';
import { ManageRulesSmartComponent } from './manage-rules.smart-component';
import { DebugElement, Predicate } from '@angular/core';
import { CoreTestingModule } from '@alfresco/adf-core';
@@ -58,7 +57,7 @@ describe('ManageRulesSmartComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule, AcaFolderRulesModule],
+ imports: [CoreTestingModule, ManageRulesSmartComponent],
providers: [
{
provide: AppService,
@@ -67,8 +66,6 @@ describe('ManageRulesSmartComponent', () => {
toggleAppNavBar$: new Subject()
}
},
- FolderRuleSetsService,
- FolderRulesService,
{ provide: Store, useValue: { dispatch: () => {} } },
{ provide: ActivatedRoute, useValue: { params: of({ nodeId: owningFolderIdMock }) } }
]
@@ -205,7 +202,9 @@ describe('ManageRulesSmartComponent', () => {
expect(ruleDetails).toBeFalsy();
});
- it('should call deleteRule() if confirmation dialog returns true', () => {
+ // TODO: flaky test that needs review
+ // eslint-disable-next-line ban/ban
+ xit('should call deleteRule() if confirmation dialog returns true', () => {
const dialog = TestBed.inject(MatDialog);
folderRuleSetsService.folderInfo$ = of(owningFolderMock);
folderRuleSetsService.mainRuleSet$ = of(ownedRuleSetMock);
diff --git a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts
index a2a570f952..d9e1bc542f 100644
--- a/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts
+++ b/projects/aca-content/folder-rules/src/manage-rules/manage-rules.smart-component.ts
@@ -23,26 +23,62 @@
*/
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
-import { Location } from '@angular/common';
+import { CommonModule, Location } from '@angular/common';
import { FolderRulesService } from '../services/folder-rules.service';
import { Observable, Subject, Subscription } from 'rxjs';
import { Rule } from '../model/rule.model';
-import { ActivatedRoute } from '@angular/router';
+import { ActivatedRoute, RouterModule } from '@angular/router';
import { NodeInfo } from '@alfresco/aca-shared/store';
import { delay, takeUntil } from 'rxjs/operators';
import { EditRuleDialogUiComponent } from '../rule-details/edit-rule-dialog.ui-component';
-import { MatDialog } from '@angular/material/dialog';
-import { ConfirmDialogComponent } from '@alfresco/adf-content-services';
-import { NotificationService } from '@alfresco/adf-core';
+import { MatDialog, MatDialogModule } from '@angular/material/dialog';
+import { BreadcrumbModule, ConfirmDialogComponent } from '@alfresco/adf-content-services';
+import { NotificationService, TemplateModule, ToolbarModule } from '@alfresco/adf-core';
import { ActionDefinitionTransformed } from '../model/rule-action.model';
import { ActionsService } from '../services/actions.service';
import { FolderRuleSetsService } from '../services/folder-rule-sets.service';
import { RuleSet } from '../model/rule-set.model';
import { RuleSetPickerSmartComponent } from '../rule-set-picker/rule-set-picker.smart-component';
-import { MatSlideToggleChange } from '@angular/material/slide-toggle';
+import { MatSlideToggleChange, MatSlideToggleModule } from '@angular/material/slide-toggle';
import { ActionParameterConstraint } from '../model/action-parameter-constraint.model';
+import { TranslateModule } from '@ngx-translate/core';
+import {
+ GenericErrorComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutErrorComponent,
+ PageLayoutHeaderComponent
+} from '@alfresco/aca-shared';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
+import { MatProgressBarModule } from '@angular/material/progress-bar';
+import { MatDividerModule } from '@angular/material/divider';
+import { RuleListUiComponent } from '../rule-list/rule-list/rule-list.ui-component';
+import { RuleDetailsUiComponent } from '../rule-details/rule-details.ui-component';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ PageLayoutComponent,
+ ToolbarModule,
+ MatButtonModule,
+ MatIconModule,
+ BreadcrumbModule,
+ MatProgressBarModule,
+ MatSlideToggleModule,
+ MatDividerModule,
+ RuleListUiComponent,
+ RouterModule,
+ TemplateModule,
+ PageLayoutErrorComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ GenericErrorComponent,
+ RuleDetailsUiComponent,
+ MatDialogModule
+ ],
selector: 'aca-manage-rules',
templateUrl: 'manage-rules.smart-component.html',
styleUrls: ['manage-rules.smart-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.ts
index 7c5bca6e6c..a398aa0fc1 100644
--- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.ts
@@ -23,13 +23,21 @@
*/
import { Component, forwardRef, Input, OnDestroy, ViewEncapsulation } from '@angular/core';
-import { ControlValueAccessor, FormArray, FormControl, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
+import { ControlValueAccessor, FormArray, FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule, Validators } from '@angular/forms';
import { ActionDefinitionTransformed, RuleAction } from '../../model/rule-action.model';
import { Subscription } from 'rxjs';
import { ruleActionValidator } from '../validators/rule-actions.validator';
import { ActionParameterConstraint } from '../../model/action-parameter-constraint.model';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { RuleActionUiComponent } from './rule-action.ui-component';
+import { MatButtonModule } from '@angular/material/button';
+import { MatMenuModule } from '@angular/material/menu';
+import { MatIconModule } from '@angular/material/icon';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, RuleActionUiComponent, ReactiveFormsModule, MatButtonModule, MatMenuModule, MatIconModule],
selector: 'aca-rule-action-list',
templateUrl: './rule-action-list.ui-component.html',
styleUrls: ['./rule-action-list.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.spec.ts
index 63511c39c6..524707ec8c 100644
--- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.spec.ts
@@ -48,7 +48,7 @@ describe('RuleActionUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule]
+ imports: [CoreTestingModule, RuleActionUiComponent]
});
fixture = TestBed.createComponent(RuleActionUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts
index 1eba93faab..d61041e070 100644
--- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts
@@ -23,11 +23,12 @@
*/
import { Component, forwardRef, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';
-import { ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
+import { ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule, Validators } from '@angular/forms';
import { ActionDefinitionTransformed, RuleAction } from '../../model/rule-action.model';
import { CardViewItem } from '@alfresco/adf-core/lib/card-view/interfaces/card-view-item.interface';
import {
CardViewBoolItemModel,
+ CardViewModule,
CardViewSelectItemModel,
CardViewSelectItemOption,
CardViewTextItemModel,
@@ -40,9 +41,14 @@ import { takeUntil } from 'rxjs/operators';
import { ActionParameterConstraint, ConstraintValue } from '../../model/action-parameter-constraint.model';
import { ContentNodeSelectorComponent, ContentNodeSelectorComponentData, NodeAction } from '@alfresco/adf-content-services';
import { MatDialog } from '@angular/material/dialog';
-import { TranslateService } from '@ngx-translate/core';
+import { TranslateModule, TranslateService } from '@ngx-translate/core';
+import { CommonModule } from '@angular/common';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatSelectModule } from '@angular/material/select';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, ReactiveFormsModule, MatFormFieldModule, MatSelectModule, CardViewModule],
selector: 'aca-rule-action',
templateUrl: './rule-action.ui-component.html',
styleUrls: ['./rule-action.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.spec.ts
index ba9b7fd5c6..c1858ab398 100644
--- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.spec.ts
@@ -39,8 +39,7 @@ describe('RuleCompositeConditionUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
- declarations: [RuleCompositeConditionUiComponent, RuleSimpleConditionUiComponent]
+ imports: [CoreTestingModule, RuleCompositeConditionUiComponent, RuleSimpleConditionUiComponent]
});
fixture = TestBed.createComponent(RuleCompositeConditionUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.ts
index f53d588314..e9cf5ba1fb 100644
--- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-composite-condition.ui-component.ts
@@ -24,10 +24,30 @@
import { Component, forwardRef, HostBinding, Input, OnChanges, OnDestroy, SimpleChanges, ViewEncapsulation } from '@angular/core';
import { RuleCompositeCondition } from '../../model/rule-composite-condition.model';
-import { ControlValueAccessor, FormArray, FormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';
+import { ControlValueAccessor, FormArray, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
import { RuleSimpleCondition } from '../../model/rule-simple-condition.model';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatSelectModule } from '@angular/material/select';
+import { MatButtonModule } from '@angular/material/button';
+import { MatMenuModule } from '@angular/material/menu';
+import { MatIconModule } from '@angular/material/icon';
+import { RuleSimpleConditionUiComponent } from './rule-simple-condition.ui-component';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ ReactiveFormsModule,
+ MatFormFieldModule,
+ MatSelectModule,
+ MatButtonModule,
+ MatMenuModule,
+ MatIconModule,
+ RuleSimpleConditionUiComponent
+ ],
selector: 'aca-rule-composite-condition',
templateUrl: './rule-composite-condition.ui-component.html',
styleUrls: ['./rule-composite-condition.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.spec.ts
index 427134b5d1..5185027c09 100644
--- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.spec.ts
@@ -47,8 +47,7 @@ describe('RuleSimpleConditionUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
- declarations: [RuleSimpleConditionUiComponent]
+ imports: [CoreTestingModule, RuleSimpleConditionUiComponent]
});
fixture = TestBed.createComponent(RuleSimpleConditionUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.ts
index 2e57096eed..cc3f4193be 100644
--- a/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/conditions/rule-simple-condition.ui-component.ts
@@ -23,14 +23,21 @@
*/
import { Component, forwardRef, Input, OnDestroy, ViewEncapsulation } from '@angular/core';
-import { AbstractControl, ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';
+import { AbstractControl, ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
import { RuleSimpleCondition } from '../../model/rule-simple-condition.model';
import { comparatorHiddenForConditionFieldType, RuleConditionField, ruleConditionFields } from './rule-condition-fields';
import { RuleConditionComparator, ruleConditionComparators } from './rule-condition-comparators';
import { AppConfigService } from '@alfresco/adf-core';
import { MimeType } from './rule-mime-types';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatSelectModule } from '@angular/material/select';
+import { MatInputModule } from '@angular/material/input';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, ReactiveFormsModule, MatFormFieldModule, MatSelectModule, MatInputModule],
selector: 'aca-rule-simple-condition',
templateUrl: './rule-simple-condition.ui-component.html',
styleUrls: ['./rule-simple-condition.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.smart-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.smart-component.spec.ts
index 6f4f4018e3..5caa6c4b69 100644
--- a/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.smart-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.smart-component.spec.ts
@@ -28,11 +28,6 @@ import { By } from '@angular/platform-browser';
import { RuleDetailsUiComponent } from './rule-details.ui-component';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { CoreTestingModule } from '@alfresco/adf-core';
-import { RuleCompositeConditionUiComponent } from './conditions/rule-composite-condition.ui-component';
-import { RuleTriggersUiComponent } from './triggers/rule-triggers.ui-component';
-import { RuleActionListUiComponent } from './actions/rule-action-list.ui-component';
-import { RuleActionUiComponent } from './actions/rule-action.ui-component';
-import { RuleOptionsUiComponent } from './options/rule-options.ui-component';
import { of, timer } from 'rxjs';
describe('EditRuleDialogSmartComponent', () => {
@@ -45,16 +40,7 @@ describe('EditRuleDialogSmartComponent', () => {
const setupBeforeEach = (dialogOptions: EditRuleDialogOptions = { actionDefinitions$: of([]), parameterConstraints$: of([]) }) => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
- declarations: [
- EditRuleDialogUiComponent,
- RuleCompositeConditionUiComponent,
- RuleDetailsUiComponent,
- RuleTriggersUiComponent,
- RuleActionListUiComponent,
- RuleActionUiComponent,
- RuleOptionsUiComponent
- ],
+ imports: [CoreTestingModule, EditRuleDialogUiComponent],
providers: [
{ provide: MatDialogRef, useValue: dialogRef },
{ provide: MAT_DIALOG_DATA, useValue: dialogOptions }
diff --git a/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.ui-component.ts
index d5948842c0..3b1aaf1f65 100644
--- a/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/edit-rule-dialog.ui-component.ts
@@ -23,11 +23,16 @@
*/
import { Component, EventEmitter, Inject, Output, ViewEncapsulation } from '@angular/core';
-import { MAT_DIALOG_DATA } from '@angular/material/dialog';
+import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { Rule } from '../model/rule.model';
import { Observable } from 'rxjs';
import { ActionDefinitionTransformed } from '../model/rule-action.model';
import { ActionParameterConstraint } from '../model/action-parameter-constraint.model';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
+import { RuleDetailsUiComponent } from './rule-details.ui-component';
export interface EditRuleDialogOptions {
model?: Partial;
@@ -37,6 +42,8 @@ export interface EditRuleDialogOptions {
}
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, MatDialogModule, MatButtonModule, MatIconModule, RuleDetailsUiComponent],
selector: 'aca-edit-rule-dialog',
templateUrl: './edit-rule-dialog.ui-component.html',
styleUrls: ['./edit-rule-dialog.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts
index eadc370223..a5eaf1d470 100644
--- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.spec.ts
@@ -45,8 +45,7 @@ describe('RuleOptionsUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
- imports: [FormsModule, ReactiveFormsModule, CoreTestingModule],
- declarations: [RuleOptionsUiComponent],
+ imports: [FormsModule, ReactiveFormsModule, CoreTestingModule, RuleOptionsUiComponent],
providers: [{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { floatLabel: 'never' } }]
});
diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts
index 3c34bfd00f..83caa9b8e3 100644
--- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts
@@ -23,12 +23,18 @@
*/
import { Component, forwardRef, HostBinding, Input, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
-import { AbstractControl, ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
+import { AbstractControl, ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
+import { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';
import { RuleOptions } from '../../model/rule.model';
import { ActionParameterConstraint, ConstraintValue } from '../../model/action-parameter-constraint.model';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatSelectModule } from '@angular/material/select';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, ReactiveFormsModule, MatCheckboxModule, MatFormFieldModule, MatSelectModule],
selector: 'aca-rule-options',
templateUrl: 'rule-options.ui-component.html',
styleUrls: ['rule-options.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.spec.ts
index 18adbe6db7..959239e626 100644
--- a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.spec.ts
@@ -27,11 +27,8 @@ import { CoreTestingModule } from '@alfresco/adf-core';
import { RuleDetailsUiComponent } from './rule-details.ui-component';
import { Rule } from '../model/rule.model';
import { By } from '@angular/platform-browser';
-import { RuleCompositeConditionUiComponent } from './conditions/rule-composite-condition.ui-component';
import { RuleTriggersUiComponent } from './triggers/rule-triggers.ui-component';
import { RuleOptionsUiComponent } from './options/rule-options.ui-component';
-import { RuleActionListUiComponent } from './actions/rule-action-list.ui-component';
-import { RuleActionUiComponent } from './actions/rule-action.ui-component';
describe('RuleDetailsUiComponent', () => {
let fixture: ComponentFixture;
@@ -56,15 +53,7 @@ describe('RuleDetailsUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
- declarations: [
- RuleCompositeConditionUiComponent,
- RuleDetailsUiComponent,
- RuleTriggersUiComponent,
- RuleOptionsUiComponent,
- RuleActionListUiComponent,
- RuleActionUiComponent
- ]
+ imports: [CoreTestingModule, RuleDetailsUiComponent]
});
fixture = TestBed.createComponent(RuleDetailsUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.ts
index 7bb35e43ce..40dace9d23 100644
--- a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.ts
@@ -23,7 +23,7 @@
*/
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewEncapsulation } from '@angular/core';
-import { UntypedFormGroup, UntypedFormControl, Validators } from '@angular/forms';
+import { UntypedFormGroup, UntypedFormControl, Validators, ReactiveFormsModule } from '@angular/forms';
import { Subject } from 'rxjs';
import { distinctUntilChanged, map, takeUntil } from 'rxjs/operators';
import { Rule, RuleForForm } from '../model/rule.model';
@@ -32,8 +32,28 @@ import { FolderRulesService } from '../services/folder-rules.service';
import { ActionDefinitionTransformed } from '../model/rule-action.model';
import { ruleActionsValidator } from './validators/rule-actions.validator';
import { ActionParameterConstraint } from '../model/action-parameter-constraint.model';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+import { RuleTriggersUiComponent } from './triggers/rule-triggers.ui-component';
+import { RuleCompositeConditionUiComponent } from './conditions/rule-composite-condition.ui-component';
+import { RuleActionListUiComponent } from './actions/rule-action-list.ui-component';
+import { RuleOptionsUiComponent } from './options/rule-options.ui-component';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ ReactiveFormsModule,
+ MatFormFieldModule,
+ MatInputModule,
+ RuleTriggersUiComponent,
+ RuleCompositeConditionUiComponent,
+ RuleActionListUiComponent,
+ RuleOptionsUiComponent
+ ],
selector: 'aca-rule-details',
templateUrl: './rule-details.ui-component.html',
styleUrls: ['./rule-details.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.spec.ts
index a52b7ece7e..78f6d8fc65 100644
--- a/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.spec.ts
@@ -41,8 +41,7 @@ describe('RuleTriggerUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
- declarations: [RuleTriggersUiComponent]
+ imports: [CoreTestingModule, RuleTriggersUiComponent]
});
fixture = TestBed.createComponent(RuleTriggersUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.ts
index 2c55570228..745abd7631 100644
--- a/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.ts
@@ -25,8 +25,13 @@
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Component, forwardRef, ViewEncapsulation } from '@angular/core';
import { RuleTrigger } from '../../model/rule.model';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatCheckboxModule } from '@angular/material/checkbox';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, MatCheckboxModule],
selector: 'aca-rule-triggers',
templateUrl: './rule-triggers.ui-component.html',
encapsulation: ViewEncapsulation.None,
diff --git a/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.spec.ts
index 49969c4d71..bf0464c8dd 100644
--- a/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.spec.ts
@@ -37,8 +37,7 @@ describe('RuleListGroupingUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule, AcaFolderRulesModule],
- declarations: [RuleListGroupingUiComponent]
+ imports: [CoreTestingModule, AcaFolderRulesModule, RuleListGroupingUiComponent]
});
fixture = TestBed.createComponent(RuleListGroupingUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.ts b/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.ts
index 046613bb13..b3832d7860 100644
--- a/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-list/rule-list-grouping/rule-list-grouping.ui-component.ts
@@ -26,8 +26,15 @@ import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angu
import { Rule } from '../../model/rule.model';
import { RuleGroupingItem } from '../../model/rule-grouping-item.model';
import { RuleSet } from '../../model/rule-set.model';
+import { CommonModule } from '@angular/common';
+import { RuleListItemUiComponent } from '../rule-list-item/rule-list-item.ui-component';
+import { MatRippleModule } from '@angular/material/core';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, RuleListItemUiComponent, MatRippleModule, MatProgressSpinnerModule],
selector: 'aca-rule-list-grouping',
templateUrl: 'rule-list-grouping.ui-component.html',
styleUrls: ['rule-list-grouping.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-list/rule-list-item/rule-list-item.ui-component.ts b/projects/aca-content/folder-rules/src/rule-list/rule-list-item/rule-list-item.ui-component.ts
index 14934e3550..327e9939de 100644
--- a/projects/aca-content/folder-rules/src/rule-list/rule-list-item/rule-list-item.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-list/rule-list-item/rule-list-item.ui-component.ts
@@ -24,8 +24,12 @@
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
import { Rule } from '../../model/rule.model';
+import { CommonModule } from '@angular/common';
+import { MatSlideToggleModule } from '@angular/material/slide-toggle';
@Component({
+ standalone: true,
+ imports: [CommonModule, MatSlideToggleModule],
selector: 'aca-rule-list-item',
templateUrl: 'rule-list-item.ui-component.html',
styleUrls: ['rule-list-item.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.spec.ts b/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.spec.ts
index 60b635abff..5c9cf7d41d 100644
--- a/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.spec.ts
@@ -25,8 +25,6 @@
import { RuleListUiComponent } from './rule-list.ui-component';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CoreTestingModule } from '@alfresco/adf-core';
-import { RuleListGroupingUiComponent } from '../rule-list-grouping/rule-list-grouping.ui-component';
-import { RuleListItemUiComponent } from '../rule-list-item/rule-list-item.ui-component';
import { ownedRuleSetMock, ruleSetsMock, ruleSetWithLinkMock } from '../../mock/rule-sets.mock';
import { DebugElement } from '@angular/core';
import { By } from '@angular/platform-browser';
@@ -39,8 +37,7 @@ describe('RuleListUiComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
- declarations: [RuleListUiComponent, RuleListGroupingUiComponent, RuleListItemUiComponent]
+ imports: [CoreTestingModule, RuleListUiComponent]
});
fixture = TestBed.createComponent(RuleListUiComponent);
diff --git a/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.ts b/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.ts
index 1e6e9df05c..51f63751a6 100644
--- a/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-list/rule-list/rule-list.ui-component.ts
@@ -27,8 +27,27 @@ import { RuleSet } from '../../model/rule-set.model';
import { Rule } from '../../model/rule.model';
import { RuleGroupingItem } from '../../model/rule-grouping-item.model';
import { FolderRuleSetsService } from '../../services/folder-rule-sets.service';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatRippleModule } from '@angular/material/core';
+import { MatIconModule } from '@angular/material/icon';
+import { MatTooltipModule } from '@angular/material/tooltip';
+import { RuleListGroupingUiComponent } from '../rule-list-grouping/rule-list-grouping.ui-component';
+import { RouterModule } from '@angular/router';
+import { MatButtonModule } from '@angular/material/button';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ MatRippleModule,
+ MatIconModule,
+ MatTooltipModule,
+ RuleListGroupingUiComponent,
+ RouterModule,
+ MatButtonModule
+ ],
selector: 'aca-rule-list',
templateUrl: './rule-list.ui-component.html',
styleUrls: ['./rule-list.ui-component.scss'],
diff --git a/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.spec.ts b/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.spec.ts
index 25432fd1d4..b09441dddb 100644
--- a/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.spec.ts
+++ b/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.spec.ts
@@ -53,7 +53,7 @@ describe('RuleSetPickerSmartComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreTestingModule],
+ imports: [CoreTestingModule, RuleSetPickerSmartComponent],
providers: [
{ provide: MatDialogRef, useValue: dialogRef },
{ provide: MAT_DIALOG_DATA, useValue: dialogOptions },
diff --git a/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.ts b/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.ts
index a43ff637dc..6785be7620 100644
--- a/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-set-picker/rule-set-picker.smart-component.ts
@@ -23,13 +23,20 @@
*/
import { Component, Inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
-import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
+import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
import { FolderRuleSetsService } from '../services/folder-rule-sets.service';
import { Node } from '@alfresco/js-api';
import { RuleSet } from '../model/rule-set.model';
import { BehaviorSubject, combineLatest, from, of, Subject } from 'rxjs';
import { finalize, map, switchMap, takeUntil } from 'rxjs/operators';
-import { NotificationService } from '@alfresco/adf-core';
+import { NotificationService, TemplateModule } from '@alfresco/adf-core';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
+import { ContentNodeSelectorModule } from '@alfresco/adf-content-services';
+import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
+import { RuleListItemUiComponent } from '../rule-list/rule-list-item/rule-list-item.ui-component';
export interface RuleSetPickerOptions {
nodeId: string;
@@ -38,6 +45,18 @@ export interface RuleSetPickerOptions {
}
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ MatDialogModule,
+ MatButtonModule,
+ MatIconModule,
+ ContentNodeSelectorModule,
+ MatProgressSpinnerModule,
+ RuleListItemUiComponent,
+ TemplateModule
+ ],
selector: 'aca-rule-set-picker',
templateUrl: './rule-set-picker.smart-component.html',
styleUrls: ['./rule-set-picker.smart-component.scss'],
diff --git a/projects/aca-content/ms-office/src/aos-extension.service.spec.ts b/projects/aca-content/ms-office/src/aos-extension.service.spec.ts
index d80a34c130..2dccd84951 100644
--- a/projects/aca-content/ms-office/src/aos-extension.service.spec.ts
+++ b/projects/aca-content/ms-office/src/aos-extension.service.spec.ts
@@ -24,9 +24,9 @@
import { TestBed } from '@angular/core/testing';
import { AosEditOnlineService } from './aos-extension.service';
-import { AppConfigService, AuthenticationService, CoreModule, LogService, NotificationService } from '@alfresco/adf-core';
-import { TranslateModule } from '@ngx-translate/core';
-import { NoopAnimationsModule } from '@angular/platform-browser/animations';
+import { AppConfigService, AuthenticationService, LogService, NotificationService } from '@alfresco/adf-core';
+import { LibTestingModule } from '@alfresco/aca-shared';
+import { MatSnackBarModule } from '@angular/material/snack-bar';
describe('AosEditOnlineService', () => {
let aosEditOnlineService: AosEditOnlineService;
@@ -37,7 +37,7 @@ describe('AosEditOnlineService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [NoopAnimationsModule, TranslateModule.forRoot(), CoreModule.forRoot()],
+ imports: [LibTestingModule, MatSnackBarModule],
providers: [{ provide: LogService, useValue: { error() {} } }]
});
diff --git a/projects/aca-content/preview/src/lib/components/preview.component.ts b/projects/aca-content/preview/src/lib/components/preview.component.ts
index 02bca5b756..881aa242f7 100644
--- a/projects/aca-content/preview/src/lib/components/preview.component.ts
+++ b/projects/aca-content/preview/src/lib/components/preview.component.ts
@@ -23,19 +23,28 @@
*/
import { Component, OnInit, OnDestroy, ViewEncapsulation, HostListener } from '@angular/core';
-import { Location } from '@angular/common';
+import { CommonModule, Location } from '@angular/common';
import { ActivatedRoute, UrlTree, UrlSegmentGroup, UrlSegment, PRIMARY_OUTLET } from '@angular/router';
import { debounceTime, map, takeUntil } from 'rxjs/operators';
-import { UserPreferencesService, ObjectUtils } from '@alfresco/adf-core';
+import { UserPreferencesService, ObjectUtils, ViewerModule } from '@alfresco/adf-core';
import { ClosePreviewAction, ViewerActionTypes, SetSelectedNodesAction } from '@alfresco/aca-shared/store';
-import { PageComponent, AppHookService, ContentApiService } from '@alfresco/aca-shared';
+import {
+ PageComponent,
+ AppHookService,
+ ContentApiService,
+ InfoDrawerComponent,
+ ToolbarMenuItemComponent,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
import { ContentActionRef, ViewerExtensionRef } from '@alfresco/adf-extensions';
import { SearchRequest } from '@alfresco/js-api';
import { from } from 'rxjs';
import { Actions, ofType } from '@ngrx/effects';
-import { NodesApiService } from '@alfresco/adf-content-services';
+import { AlfrescoViewerModule, NodesApiService } from '@alfresco/adf-content-services';
@Component({
+ standalone: true,
+ imports: [CommonModule, ViewerModule, AlfrescoViewerModule, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarActionComponent],
selector: 'app-preview',
templateUrl: './preview.component.html',
styleUrls: ['./preview.component.scss'],
diff --git a/projects/aca-content/preview/src/lib/preview.module.ts b/projects/aca-content/preview/src/lib/preview.module.ts
index 83f56714df..0233d90bd2 100644
--- a/projects/aca-content/preview/src/lib/preview.module.ts
+++ b/projects/aca-content/preview/src/lib/preview.module.ts
@@ -22,40 +22,11 @@
* from Hyland Software. If not, see .
*/
-import { CoreModule } from '@alfresco/adf-core';
-import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-import { ContentDirectiveModule, ContentModule } from '@alfresco/adf-content-services';
-import { SharedDirectivesModule, SharedToolbarModule, InfoDrawerComponent } from '@alfresco/aca-shared';
-import { ExtensionsModule } from '@alfresco/adf-extensions';
import { PreviewComponent } from './components/preview.component';
-const routes: Routes = [
- {
- path: '',
- component: PreviewComponent,
- data: {
- title: 'APP.PREVIEW.TITLE',
- navigateMultiple: true
- }
- }
-];
-
@NgModule({
- imports: [
- CommonModule,
- RouterModule.forChild(routes),
- CoreModule.forChild(),
- ExtensionsModule,
- ContentModule,
- ContentDirectiveModule,
- SharedDirectivesModule,
- ContentDirectiveModule,
- SharedToolbarModule,
- InfoDrawerComponent
- ],
- declarations: [PreviewComponent],
+ imports: [PreviewComponent],
exports: [PreviewComponent]
})
export class PreviewModule {}
diff --git a/projects/aca-content/src/lib/aca-content.module.ts b/projects/aca-content/src/lib/aca-content.module.ts
index 9f99561b3c..47dd3bc2f7 100644
--- a/projects/aca-content/src/lib/aca-content.module.ts
+++ b/projects/aca-content/src/lib/aca-content.module.ts
@@ -25,7 +25,7 @@
import { HammerModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
-import { TRANSLATION_PROVIDER, CoreModule, AuthGuardEcm, LanguagePickerComponent, NotificationHistoryComponent } from '@alfresco/adf-core';
+import { TRANSLATION_PROVIDER, AuthGuardEcm, LanguagePickerComponent, NotificationHistoryComponent } from '@alfresco/adf-core';
import {
ContentModule,
ContentVersionService,
@@ -34,32 +34,19 @@ import {
LibraryStatusColumnComponent,
TrashcanNameColumnComponent
} from '@alfresco/adf-content-services';
-import {
- DocumentBasePageService,
- ExtensionsDataLoaderGuard,
- PageLayoutModule,
- SharedModule,
- GenericErrorComponent,
- OpenInAppModule
-} from '@alfresco/aca-shared';
+import { DocumentBasePageService, ExtensionsDataLoaderGuard, GenericErrorComponent, OpenInAppComponent } from '@alfresco/aca-shared';
import * as rules from '@alfresco/aca-shared/rules';
-
import { FilesComponent } from './components/files/files.component';
import { LibrariesComponent } from './components/libraries/libraries.component';
import { FavoriteLibrariesComponent } from './components/favorite-libraries/favorite-libraries.component';
-
import { AppStoreModule } from './store/app-store.module';
-import { MaterialModule } from './material.module';
import { CoreExtensionsModule } from './extensions/core.extensions.module';
import { AppInfoDrawerModule } from './components/info-drawer/info.drawer.module';
-import { DirectivesModule } from './directives/directives.module';
import { ExtensionService, ExtensionsModule } from '@alfresco/adf-extensions';
-import { AppToolbarModule } from './components/toolbar/toolbar.module';
-import { AppSidenavModule } from './components/sidenav/sidenav.module';
-import { APP_COMMON_DIRECTIVES } from './components/common/common.module';
-import { AppSearchInputModule } from './components/search/search-input.module';
-import { DocumentListCustomComponentsModule } from './components/dl-custom-components/document-list-custom-components.module';
-import { AppSearchResultsModule } from './components/search/search-results.module';
+import { APP_TOOLBAR_DIRECTIVES } from './components/toolbar';
+import { APP_SIDENAV_DIRECTIVES } from './components/sidenav';
+import { APP_COMMON_DIRECTIVES } from './components/common';
+import { APP_SEARCH_DIRECTIVES } from './components/search';
import { FavoritesComponent } from './components/favorites/favorites.component';
import { RecentFilesComponent } from './components/recent-files/recent-files.component';
import { SharedFilesComponent } from './components/shared-files/shared-files.component';
@@ -67,7 +54,6 @@ import { CreateFromTemplateDialogComponent } from './dialogs/node-template/creat
import { DetailsComponent } from './components/details/details.component';
import { ContentUrlService } from './services/content-url.service';
import { HomeComponent } from './components/home/home.component';
-
import { CommonModule } from '@angular/common';
import { LocationLinkComponent } from './components/common/location-link/location-link.component';
import { LogoutComponent } from './components/common/logout/logout.component';
@@ -88,7 +74,6 @@ import { ViewNodeComponent } from './components/toolbar/view-node/view-node.comp
import { CONTENT_ROUTES } from './aca-content.routes';
import { RouterModule } from '@angular/router';
import { UploadFilesDialogComponent } from './components/upload-files-dialog/upload-files-dialog.component';
-import { AppSharedLinkViewModule } from './components/shared-link-view/shared-link-view.module';
import { AcaFolderRulesModule } from '@alfresco/aca-content/folder-rules';
import { TagsColumnComponent } from './components/dl-custom-components/tags-column/tags-column.component';
import { UserInfoComponent } from './components/common/user-info/user-info.component';
@@ -99,6 +84,8 @@ import { UserMenuComponent } from './components/sidenav/user-menu/user-menu.comp
import { ContextMenuComponent } from './components/context-menu/context-menu.component';
import { ViewProfileComponent } from './components/view-profile/view-profile.component';
import { TrashcanComponent } from './components/trashcan/trashcan.component';
+import { SharedLinkViewComponent } from './components/shared-link-view/shared-link-view.component';
+import { MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
@NgModule({
imports: [
@@ -107,39 +94,30 @@ import { TrashcanComponent } from './components/trashcan/trashcan.component';
ReactiveFormsModule,
ContentModule.forRoot(),
RouterModule.forChild(CONTENT_ROUTES),
- CoreModule.forChild(),
ExtensionsModule.forChild(),
CoreExtensionsModule.forChild(),
- SharedModule,
- MaterialModule,
AppStoreModule,
...APP_COMMON_DIRECTIVES,
- PageLayoutModule,
- DirectivesModule,
+ ...APP_TOOLBAR_DIRECTIVES,
+ ...APP_SIDENAV_DIRECTIVES,
+ ...APP_SEARCH_DIRECTIVES,
ContextMenuComponent,
AppInfoDrawerModule,
- AppToolbarModule,
- AppSidenavModule,
- DocumentListCustomComponentsModule,
- AppSearchInputModule,
- AppSearchResultsModule,
HammerModule,
ViewProfileComponent,
TrashcanComponent,
- AppSharedLinkViewModule,
+ SharedLinkViewComponent,
AcaFolderRulesModule,
GenericErrorComponent,
DetailsComponent,
CreateFromTemplateDialogComponent,
- OpenInAppModule
- ],
- declarations: [
+ OpenInAppComponent,
+ SharedFilesComponent,
FilesComponent,
- LibrariesComponent,
FavoriteLibrariesComponent,
FavoritesComponent,
RecentFilesComponent,
- SharedFilesComponent,
+ LibrariesComponent,
HomeComponent,
UploadFilesDialogComponent
],
@@ -154,7 +132,11 @@ import { TrashcanComponent } from './components/trashcan/trashcan.component';
source: 'assets'
}
},
- { provide: SHELL_NAVBAR_MIN_WIDTH, useValue: 0 }
+ { provide: SHELL_NAVBAR_MIN_WIDTH, useValue: 0 },
+ {
+ provide: MAT_DIALOG_DEFAULT_OPTIONS,
+ useValue: { closeOnNavigation: true, hasBackdrop: true, autoFocus: true }
+ }
]
})
export class ContentServiceExtensionModule {
diff --git a/projects/aca-content/src/lib/aca-content.routes.ts b/projects/aca-content/src/lib/aca-content.routes.ts
index 4d1b455903..82646ab446 100644
--- a/projects/aca-content/src/lib/aca-content.routes.ts
+++ b/projects/aca-content/src/lib/aca-content.routes.ts
@@ -117,14 +117,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
}
]
},
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'personal-files'
- }
- },
{
path: 'view/:nodeId',
outlet: 'viewer',
@@ -177,22 +169,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
}
]
},
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'personal-files'
- }
- },
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: ':folderId/preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'personal-files'
- }
- },
{
path: 'view/:nodeId',
outlet: 'viewer',
@@ -232,14 +208,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
sortingPreferenceKey: 'libraries-files'
}
},
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'libraries'
- }
- },
{
path: 'view/:nodeId',
outlet: 'viewer',
@@ -341,16 +309,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
title: 'APP.BROWSE.FAVORITES.TITLE',
sortingPreferenceKey: 'favorites'
}
- // loadChildren:
- // './components/favorites/favorites.module#AppFavoritesModule'
- },
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'favorites'
- }
},
{
path: 'view/:nodeId',
@@ -392,16 +350,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
data: {
title: 'APP.BROWSE.RECENT.TITLE'
}
- // loadChildren:
- // './components/recent-files/recent-files.module#AppRecentFilesModule'
- },
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'recent-files'
- }
},
{
path: 'view/:nodeId',
@@ -441,16 +389,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
sortingPreferenceKey: 'shared-files'
},
component: SharedFilesComponent
- // loadChildren:
- // './components/shared-files/shared-files.module#AppSharedFilesModule'
- },
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'shared'
- }
},
{
path: 'view/:nodeId',
@@ -505,14 +443,6 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
title: 'APP.BROWSE.SEARCH.TITLE'
}
},
- // deprecated, backwards compatibility with ACA 1.8
- {
- path: 'preview/:nodeId',
- loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
- data: {
- navigateSource: 'search'
- }
- },
{
path: 'view/:nodeId',
outlet: 'viewer',
diff --git a/projects/aca-content/src/lib/components/common/common.module.ts b/projects/aca-content/src/lib/components/common/index.ts
similarity index 100%
rename from projects/aca-content/src/lib/components/common/common.module.ts
rename to projects/aca-content/src/lib/components/common/index.ts
diff --git a/projects/aca-content/src/lib/components/details/details.component.ts b/projects/aca-content/src/lib/components/details/details.component.ts
index fd941eb59c..7578149168 100644
--- a/projects/aca-content/src/lib/components/details/details.component.ts
+++ b/projects/aca-content/src/lib/components/details/details.component.ts
@@ -24,7 +24,14 @@
import { Component, OnInit, ViewEncapsulation, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
-import { ContentApiService, PageComponent, PageLayoutModule, SharedToolbarModule } from '@alfresco/aca-shared';
+import {
+ ContentApiService,
+ PageComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
import { NavigateToPreviousPage, SetSelectedNodesAction } from '@alfresco/aca-shared/store';
import { Subject } from 'rxjs';
import { BreadcrumbModule, PermissionManagerModule } from '@alfresco/adf-content-services';
@@ -43,17 +50,19 @@ import { CommentsTabComponent } from '../info-drawer/comments-tab/comments-tab.c
imports: [
CommonModule,
TranslateModule,
- PageLayoutModule,
PermissionManagerModule,
BreadcrumbModule,
ToolbarModule,
- SharedToolbarModule,
MatIconModule,
MatTabsModule,
MatProgressBarModule,
MatButtonModule,
MetadataTabComponent,
- CommentsTabComponent
+ CommentsTabComponent,
+ ToolbarActionComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent
],
selector: 'app-details-manager',
templateUrl: './details.component.html',
diff --git a/projects/aca-content/src/lib/components/dl-custom-components/document-list-custom-components.module.ts b/projects/aca-content/src/lib/components/dl-custom-components/document-list-custom-components.module.ts
deleted file mode 100644
index 57c415bb1e..0000000000
--- a/projects/aca-content/src/lib/components/dl-custom-components/document-list-custom-components.module.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/*!
- * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
- *
- * Alfresco Example Content Application
- *
- * This file is part of the Alfresco Example Content Application.
- * If the software was purchased under a paid Alfresco license, the terms of
- * the paid license agreement will prevail. Otherwise, the software is
- * provided under the following open source license terms:
- *
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * from Hyland Software. If not, see .
- */
-
-import { NgModule } from '@angular/core';
-import { CustomNameColumnComponent } from './name-column/name-column.component';
-import { LockedByComponent } from '@alfresco/aca-shared';
-import { ThumbnailColumnComponent } from './thumbnail-column/thumbnail-column.component';
-import { TagsColumnComponent } from './tags-column/tags-column.component';
-
-@NgModule({
- imports: [LockedByComponent, ThumbnailColumnComponent, CustomNameColumnComponent, TagsColumnComponent]
-})
-export class DocumentListCustomComponentsModule {}
diff --git a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.spec.ts b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.spec.ts
index 632d105891..0b61e7b949 100644
--- a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.spec.ts
+++ b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.spec.ts
@@ -23,10 +23,8 @@
*/
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { NO_ERRORS_SCHEMA } from '@angular/core';
import { Router } from '@angular/router';
-import { AlfrescoApiService, DataTableComponent, UserPreferencesService } from '@alfresco/adf-core';
-import { DocumentListComponent, NodeFavoriteDirective } from '@alfresco/adf-content-services';
+import { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';
import { FavoriteLibrariesComponent } from './favorite-libraries.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { AppHookService, ContentApiService } from '@alfresco/aca-shared';
@@ -35,8 +33,6 @@ import { RouterEffects } from '@alfresco/aca-shared/store';
import { of, throwError } from 'rxjs';
import { LibraryEffects } from '../../store/effects';
import { NodeEntry } from '@alfresco/js-api';
-import { MatDialogModule } from '@angular/material/dialog';
-import { MatSnackBarModule } from '@angular/material/snack-bar';
describe('FavoriteLibrariesComponent', () => {
let fixture: ComponentFixture;
@@ -59,9 +55,7 @@ describe('FavoriteLibrariesComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule, EffectsModule.forRoot([RouterEffects, LibraryEffects]), MatDialogModule, MatSnackBarModule],
- declarations: [DataTableComponent, NodeFavoriteDirective, DocumentListComponent, FavoriteLibrariesComponent],
- schemas: [NO_ERRORS_SCHEMA]
+ imports: [AppTestingModule, EffectsModule.forRoot([RouterEffects, LibraryEffects]), FavoriteLibrariesComponent]
});
fixture = TestBed.createComponent(FavoriteLibrariesComponent);
diff --git a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts
index c4a7667c9a..b9be5c642e 100644
--- a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts
+++ b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts
@@ -24,12 +24,43 @@
import { ChangeDetectorRef, Component, OnInit, ViewEncapsulation } from '@angular/core';
import { SiteEntry, FavoritePaging, Pagination } from '@alfresco/js-api';
-import { AppHookService, ContentApiService, PageComponent } from '@alfresco/aca-shared';
+import {
+ AppHookService,
+ ContentApiService,
+ ContextActionsDirective,
+ InfoDrawerComponent,
+ PageComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
-import { UserPreferencesService } from '@alfresco/adf-core';
-import { DocumentListPresetRef } from '@alfresco/adf-extensions';
+import { DataTableModule, PaginationModule, TemplateModule, ToolbarModule, UserPreferencesService } from '@alfresco/adf-core';
+import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
+import { CommonModule } from '@angular/common';
+import { BreadcrumbModule, DocumentListModule } from '@alfresco/adf-content-services';
+import { DocumentListDirective } from '../../directives/document-list.directive';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ BreadcrumbModule,
+ ToolbarModule,
+ DocumentListModule,
+ DocumentListDirective,
+ ContextActionsDirective,
+ TemplateModule,
+ DataTableModule,
+ ExtensionsModule,
+ PaginationModule,
+ InfoDrawerComponent,
+ ToolbarActionComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent
+ ],
templateUrl: './favorite-libraries.component.html',
encapsulation: ViewEncapsulation.None
})
diff --git a/projects/aca-content/src/lib/components/favorites/favorites.component.spec.ts b/projects/aca-content/src/lib/components/favorites/favorites.component.spec.ts
index ea806c9963..0ae6626859 100644
--- a/projects/aca-content/src/lib/components/favorites/favorites.component.spec.ts
+++ b/projects/aca-content/src/lib/components/favorites/favorites.component.spec.ts
@@ -22,17 +22,13 @@
* from Hyland Software. If not, see .
*/
-import { NO_ERRORS_SCHEMA } from '@angular/core';
import { Router } from '@angular/router';
import { TestBed, ComponentFixture } from '@angular/core/testing';
-import { DataTableComponent } from '@alfresco/adf-core';
-import { CustomResourcesService, DocumentListComponent, NodeFavoriteDirective } from '@alfresco/adf-content-services';
-import { of } from 'rxjs';
+import { CustomResourcesService } from '@alfresco/adf-content-services';
+import { BehaviorSubject, of, Subject } from 'rxjs';
import { FavoritesComponent } from './favorites.component';
import { AppTestingModule } from '../../testing/app-testing.module';
-import { ContentApiService } from '@alfresco/aca-shared';
-import { MatDialogModule } from '@angular/material/dialog';
-import { MatSnackBarModule } from '@angular/material/snack-bar';
+import { AppService, ContentApiService } from '@alfresco/aca-shared';
describe('FavoritesComponent', () => {
let fixture: ComponentFixture;
@@ -43,18 +39,16 @@ describe('FavoritesComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule, MatDialogModule, MatSnackBarModule],
- declarations: [DataTableComponent, NodeFavoriteDirective, DocumentListComponent, FavoritesComponent],
+ imports: [AppTestingModule, FavoritesComponent],
providers: [
{
- provide: Router,
+ provide: AppService,
useValue: {
- url: 'favorites',
- navigate: () => {}
+ appNavNarMode$: new BehaviorSubject('expanded'),
+ toggleAppNavBar$: new Subject()
}
}
- ],
- schemas: [NO_ERRORS_SCHEMA]
+ ]
});
const page: any = {
@@ -81,6 +75,7 @@ describe('FavoritesComponent', () => {
contentApi = TestBed.inject(ContentApiService);
router = TestBed.inject(Router);
+ spyOnProperty(router, 'url').and.returnValue('favorites');
});
describe('Node navigation', () => {
diff --git a/projects/aca-content/src/lib/components/favorites/favorites.component.ts b/projects/aca-content/src/lib/components/favorites/favorites.component.ts
index 10a0ee480d..de8b470f82 100644
--- a/projects/aca-content/src/lib/components/favorites/favorites.component.ts
+++ b/projects/aca-content/src/lib/components/favorites/favorites.component.ts
@@ -22,13 +22,46 @@
* from Hyland Software. If not, see .
*/
-import { ContentApiService, PageComponent } from '@alfresco/aca-shared';
+import {
+ ContentApiService,
+ ContextActionsDirective,
+ InfoDrawerComponent,
+ PageComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ PaginationDirective,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElementEntity, PathInfo } from '@alfresco/js-api';
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { debounceTime, map } from 'rxjs/operators';
-import { DocumentListPresetRef } from '@alfresco/adf-extensions';
+import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
+import { CommonModule } from '@angular/common';
+import { BreadcrumbModule, DocumentListModule } from '@alfresco/adf-content-services';
+import { DataTableModule, PaginationModule, TemplateModule, ToolbarModule } from '@alfresco/adf-core';
+import { DocumentListDirective } from '../../directives/document-list.directive';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ BreadcrumbModule,
+ ToolbarModule,
+ DocumentListModule,
+ DocumentListDirective,
+ ContextActionsDirective,
+ TemplateModule,
+ DataTableModule,
+ ExtensionsModule,
+ PaginationModule,
+ PaginationDirective,
+ InfoDrawerComponent,
+ ToolbarActionComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ PageLayoutComponent
+ ],
templateUrl: './favorites.component.html',
encapsulation: ViewEncapsulation.None
})
diff --git a/projects/aca-content/src/lib/components/files/files.component.spec.ts b/projects/aca-content/src/lib/components/files/files.component.spec.ts
index 8fa4f518c3..b7e5bd7498 100644
--- a/projects/aca-content/src/lib/components/files/files.component.spec.ts
+++ b/projects/aca-content/src/lib/components/files/files.component.spec.ts
@@ -25,22 +25,13 @@
import { TestBed, fakeAsync, tick, ComponentFixture } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA, SimpleChange, SimpleChanges } from '@angular/core';
import { Router, ActivatedRoute, convertToParamMap } from '@angular/router';
-import { DataTableComponent, DataTableModule, PaginationModule } from '@alfresco/adf-core';
-import {
- DocumentListComponent,
- DocumentListService,
- FilterSearch,
- PathElementEntity,
- NodeFavoriteDirective,
- UploadService
-} from '@alfresco/adf-content-services';
+import { DocumentListService, FilterSearch, PathElementEntity, UploadService } from '@alfresco/adf-content-services';
import { NodeActionsService } from '../../services/node-actions.service';
import { FilesComponent } from './files.component';
import { AppTestingModule } from '../../testing/app-testing.module';
-import { ContentApiService, SharedDirectivesModule } from '@alfresco/aca-shared';
-import { of, throwError } from 'rxjs';
+import { ContentApiService } from '@alfresco/aca-shared';
+import { of, Subject, throwError } from 'rxjs';
import { By } from '@angular/platform-browser';
-import { DirectivesModule } from '../../directives/directives.module';
import { NodeEntry, NodePaging } from '@alfresco/js-api';
describe('FilesComponent', () => {
@@ -53,7 +44,8 @@ describe('FilesComponent', () => {
let route: ActivatedRoute;
let router: any = {
url: '',
- navigate: jasmine.createSpy('navigate')
+ navigate: jasmine.createSpy('navigate'),
+ events: new Subject()
};
let spyContent = null;
@@ -72,8 +64,7 @@ describe('FilesComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule, DataTableModule, PaginationModule, SharedDirectivesModule, DirectivesModule],
- declarations: [FilesComponent, DataTableComponent, NodeFavoriteDirective, DocumentListComponent],
+ imports: [AppTestingModule, FilesComponent],
providers: [
{
provide: Router,
diff --git a/projects/aca-content/src/lib/components/files/files.component.ts b/projects/aca-content/src/lib/components/files/files.component.ts
index d7df92e79d..787fc4154e 100644
--- a/projects/aca-content/src/lib/components/files/files.component.ts
+++ b/projects/aca-content/src/lib/components/files/files.component.ts
@@ -22,18 +22,57 @@
* from Hyland Software. If not, see .
*/
-import { ShowHeaderMode } from '@alfresco/adf-core';
+import { DataTableModule, PaginationModule, ShowHeaderMode, ToolbarModule } from '@alfresco/adf-core';
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElement, PathElementEntity } from '@alfresco/js-api';
import { NodeActionsService } from '../../services/node-actions.service';
-import { ContentApiService, PageComponent } from '@alfresco/aca-shared';
+import {
+ ContentApiService,
+ ContextActionsDirective,
+ GenericErrorComponent,
+ InfoDrawerComponent,
+ PageComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutErrorComponent,
+ PageLayoutHeaderComponent,
+ PaginationDirective,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
import { SetCurrentFolderAction, isAdmin, UploadFileVersionAction, showLoaderSelector } from '@alfresco/aca-shared/store';
import { debounceTime, takeUntil } from 'rxjs/operators';
-import { FilterSearch, ShareDataRow, FileUploadEvent } from '@alfresco/adf-content-services';
-import { DocumentListPresetRef } from '@alfresco/adf-extensions';
+import { FilterSearch, ShareDataRow, FileUploadEvent, BreadcrumbModule, UploadModule, DocumentListModule } from '@alfresco/adf-content-services';
+import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { DocumentListDirective } from '../../directives/document-list.directive';
+import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ BreadcrumbModule,
+ ToolbarModule,
+ GenericErrorComponent,
+ UploadModule,
+ DocumentListModule,
+ DocumentListDirective,
+ ContextActionsDirective,
+ DataTableModule,
+ ExtensionsModule,
+ PaginationModule,
+ MatProgressSpinnerModule,
+ InfoDrawerComponent,
+ ToolbarActionComponent,
+ PaginationDirective,
+ PageLayoutHeaderComponent,
+ PageLayoutContentComponent,
+ PageLayoutErrorComponent,
+ PageLayoutComponent
+ ],
templateUrl: './files.component.html',
encapsulation: ViewEncapsulation.None
})
diff --git a/projects/aca-content/src/lib/components/home/home.component.spec.ts b/projects/aca-content/src/lib/components/home/home.component.spec.ts
index eac5c12622..ec25b53191 100644
--- a/projects/aca-content/src/lib/components/home/home.component.spec.ts
+++ b/projects/aca-content/src/lib/components/home/home.component.spec.ts
@@ -36,7 +36,7 @@ describe('HomeComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [HttpClientModule, RouterTestingModule],
+ imports: [HttpClientModule, RouterTestingModule, HomeComponent],
providers: [{ provide: AppConfigService, useClass: AppConfigServiceMock }]
});
fixture = TestBed.createComponent(HomeComponent);
diff --git a/projects/aca-content/src/lib/components/home/home.component.ts b/projects/aca-content/src/lib/components/home/home.component.ts
index 13fd5167d8..53183ee4f1 100644
--- a/projects/aca-content/src/lib/components/home/home.component.ts
+++ b/projects/aca-content/src/lib/components/home/home.component.ts
@@ -27,6 +27,7 @@ import { Router } from '@angular/router';
import { AppConfigService } from '@alfresco/adf-core';
@Component({
+ standalone: true,
template: '',
encapsulation: ViewEncapsulation.None
})
diff --git a/projects/aca-content/src/lib/components/info-drawer/metadata-tab/metadata-tab.component.spec.ts b/projects/aca-content/src/lib/components/info-drawer/metadata-tab/metadata-tab.component.spec.ts
index 1912ffd3bf..e0d0fa73e6 100644
--- a/projects/aca-content/src/lib/components/info-drawer/metadata-tab/metadata-tab.component.spec.ts
+++ b/projects/aca-content/src/lib/components/info-drawer/metadata-tab/metadata-tab.component.spec.ts
@@ -26,7 +26,7 @@ import { MetadataTabComponent } from './metadata-tab.component';
import { MinimalNodeEntryEntity, Node } from '@alfresco/js-api';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AppTestingModule } from '../../../testing/app-testing.module';
-import { AppConfigService, CoreModule } from '@alfresco/adf-core';
+import { AppConfigService } from '@alfresco/adf-core';
import { Store } from '@ngrx/store';
import { AppState, SetInfoDrawerMetadataAspectAction } from '@alfresco/aca-shared/store';
import { By } from '@angular/platform-browser';
@@ -48,7 +48,7 @@ describe('MetadataTabComponent', () => {
};
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [CoreModule, AppTestingModule, MetadataTabComponent]
+ imports: [AppTestingModule, MetadataTabComponent]
});
nodePermissionService = TestBed.inject(NodePermissionService);
spyOn(nodePermissionService, 'check').and.callFake((source: MinimalNodeEntryEntity, permissions: string[]) => {
diff --git a/projects/aca-content/src/lib/components/libraries/libraries.component.spec.ts b/projects/aca-content/src/lib/components/libraries/libraries.component.spec.ts
index fd26f655a9..4879756716 100644
--- a/projects/aca-content/src/lib/components/libraries/libraries.component.spec.ts
+++ b/projects/aca-content/src/lib/components/libraries/libraries.component.spec.ts
@@ -23,17 +23,13 @@
*/
import { TestBed, ComponentFixture } from '@angular/core/testing';
-import { NO_ERRORS_SCHEMA } from '@angular/core';
import { Router } from '@angular/router';
-import { AlfrescoApiService, DataTableComponent } from '@alfresco/adf-core';
-import { DocumentListComponent, NodeFavoriteDirective } from '@alfresco/adf-content-services';
+import { AlfrescoApiService } from '@alfresco/adf-core';
import { LibrariesComponent } from './libraries.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { EffectsModule } from '@ngrx/effects';
import { LibraryEffects } from '../../store/effects';
import { ContentApiService } from '@alfresco/aca-shared';
-import { MatDialogModule } from '@angular/material/dialog';
-import { MatSnackBarModule } from '@angular/material/snack-bar';
describe('LibrariesComponent', () => {
let fixture: ComponentFixture;
@@ -54,9 +50,7 @@ describe('LibrariesComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects]), MatDialogModule, MatSnackBarModule],
- declarations: [DataTableComponent, NodeFavoriteDirective, DocumentListComponent, LibrariesComponent],
- schemas: [NO_ERRORS_SCHEMA]
+ imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects]), LibrariesComponent]
});
fixture = TestBed.createComponent(LibrariesComponent);
@@ -67,7 +61,7 @@ describe('LibrariesComponent', () => {
alfrescoApi.reset();
router = TestBed.inject(Router);
- const sitesApi: any = contentApiService['sitesApi'];
+ const sitesApi = contentApiService.sitesApi;
spyOn(sitesApi, 'listSites').and.returnValue(Promise.resolve(page));
spyOn(sitesApi, 'listSiteMembershipsForPerson').and.returnValue(Promise.resolve({}));
diff --git a/projects/aca-content/src/lib/components/libraries/libraries.component.ts b/projects/aca-content/src/lib/components/libraries/libraries.component.ts
index 849df0495a..3921128f0d 100644
--- a/projects/aca-content/src/lib/components/libraries/libraries.component.ts
+++ b/projects/aca-content/src/lib/components/libraries/libraries.component.ts
@@ -25,10 +25,43 @@
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
import { SiteEntry } from '@alfresco/js-api';
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
-import { AppHookService, PageComponent } from '@alfresco/aca-shared';
-import { DocumentListPresetRef } from '@alfresco/adf-extensions';
+import {
+ AppHookService,
+ ContextActionsDirective,
+ InfoDrawerComponent,
+ PageComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ PaginationDirective,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
+import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
+import { CommonModule } from '@angular/common';
+import { BreadcrumbModule, DocumentListModule } from '@alfresco/adf-content-services';
+import { DataTableModule, PaginationModule, TemplateModule, ToolbarModule } from '@alfresco/adf-core';
+import { DocumentListDirective } from '../../directives/document-list.directive';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ BreadcrumbModule,
+ ToolbarModule,
+ DocumentListModule,
+ DocumentListDirective,
+ ContextActionsDirective,
+ TemplateModule,
+ DataTableModule,
+ ExtensionsModule,
+ PaginationModule,
+ PaginationDirective,
+ InfoDrawerComponent,
+ ToolbarActionComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ PageLayoutComponent
+ ],
templateUrl: './libraries.component.html',
encapsulation: ViewEncapsulation.None
})
diff --git a/projects/aca-content/src/lib/components/recent-files/recent-files.component.spec.ts b/projects/aca-content/src/lib/components/recent-files/recent-files.component.spec.ts
index 640940605e..807684013a 100644
--- a/projects/aca-content/src/lib/components/recent-files/recent-files.component.spec.ts
+++ b/projects/aca-content/src/lib/components/recent-files/recent-files.component.spec.ts
@@ -23,16 +23,12 @@
*/
import { TestBed, ComponentFixture } from '@angular/core/testing';
-import { NO_ERRORS_SCHEMA } from '@angular/core';
-import { DataTableComponent } from '@alfresco/adf-core';
-import { CustomResourcesService, DocumentListComponent, NodeFavoriteDirective } from '@alfresco/adf-content-services';
+import { CustomResourcesService } from '@alfresco/adf-content-services';
import { RecentFilesComponent } from './recent-files.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { Router } from '@angular/router';
import { NodePaging, SearchApi } from '@alfresco/js-api';
import { of } from 'rxjs';
-import { MatDialogModule } from '@angular/material/dialog';
-import { MatSnackBarModule } from '@angular/material/snack-bar';
describe('RecentFilesComponent', () => {
let fixture: ComponentFixture;
@@ -42,18 +38,8 @@ describe('RecentFilesComponent', () => {
const searchApi = jasmine.createSpyObj('SearchApi', ['search']);
const testBed = TestBed.configureTestingModule({
- imports: [AppTestingModule, MatDialogModule, MatSnackBarModule],
- declarations: [DataTableComponent, NodeFavoriteDirective, DocumentListComponent, RecentFilesComponent],
- providers: [
- { provide: SearchApi, useValue: searchApi },
- {
- provide: Router,
- useValue: {
- url: 'recent-files'
- }
- }
- ],
- schemas: [NO_ERRORS_SCHEMA]
+ imports: [AppTestingModule, RecentFilesComponent],
+ providers: [{ provide: SearchApi, useValue: searchApi }]
});
await testBed.compileComponents();
@@ -98,6 +84,9 @@ describe('RecentFilesComponent', () => {
fixture = TestBed.createComponent(RecentFilesComponent);
component = fixture.componentInstance;
+
+ const router = TestBed.inject(Router);
+ spyOnProperty(router, 'url').and.returnValue('recent-files');
});
it('should call showPreview method', () => {
diff --git a/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts b/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts
index d8ee48a93b..a43dad3cda 100644
--- a/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts
+++ b/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts
@@ -25,10 +25,42 @@
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { MinimalNodeEntity } from '@alfresco/js-api';
import { debounceTime } from 'rxjs/operators';
-import { PageComponent } from '@alfresco/aca-shared';
-import { DocumentListPresetRef } from '@alfresco/adf-extensions';
+import {
+ ContextActionsDirective,
+ InfoDrawerComponent,
+ PageComponent,
+ PageLayoutComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ PaginationDirective,
+ ToolbarActionComponent
+} from '@alfresco/aca-shared';
+import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
+import { CommonModule } from '@angular/common';
+import { BreadcrumbModule, DocumentListModule } from '@alfresco/adf-content-services';
+import { DataTableModule, PaginationModule, TemplateModule, ToolbarModule } from '@alfresco/adf-core';
+import { DocumentListDirective } from '../../directives/document-list.directive';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ BreadcrumbModule,
+ ToolbarModule,
+ DocumentListModule,
+ DocumentListDirective,
+ ContextActionsDirective,
+ TemplateModule,
+ DataTableModule,
+ ExtensionsModule,
+ PaginationModule,
+ PaginationDirective,
+ InfoDrawerComponent,
+ ToolbarActionComponent,
+ PageLayoutContentComponent,
+ PageLayoutHeaderComponent,
+ PageLayoutComponent
+ ],
templateUrl: './recent-files.component.html',
encapsulation: ViewEncapsulation.None
})
diff --git a/projects/aca-content/src/lib/components/search/search-input.module.ts b/projects/aca-content/src/lib/components/search/index.ts
similarity index 68%
rename from projects/aca-content/src/lib/components/search/search-input.module.ts
rename to projects/aca-content/src/lib/components/search/index.ts
index 9a20bc5571..1d8a0b9da6 100644
--- a/projects/aca-content/src/lib/components/search/search-input.module.ts
+++ b/projects/aca-content/src/lib/components/search/index.ts
@@ -22,17 +22,18 @@
* from Hyland Software. If not, see .
*/
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { CoreModule } from '@alfresco/adf-core';
+import { SearchActionMenuComponent } from './search-action-menu/search-action-menu.component';
+import { SearchLibrariesResultsComponent } from './search-libraries-results/search-libraries-results.component';
+import { SearchResultsComponent } from './search-results/search-results.component';
+import { SearchResultsRowComponent } from './search-results-row/search-results-row.component';
import { SearchInputComponent } from './search-input/search-input.component';
import { SearchInputControlComponent } from './search-input-control/search-input-control.component';
-import { ContentModule } from '@alfresco/adf-content-services';
-import { A11yModule } from '@angular/cdk/a11y';
-@NgModule({
- imports: [CommonModule, CoreModule.forChild(), ContentModule.forChild(), A11yModule],
- declarations: [SearchInputComponent, SearchInputControlComponent],
- exports: [SearchInputComponent, SearchInputControlComponent]
-})
-export class AppSearchInputModule {}
+export const APP_SEARCH_DIRECTIVES = [
+ SearchActionMenuComponent,
+ SearchLibrariesResultsComponent,
+ SearchResultsComponent,
+ SearchResultsRowComponent,
+ SearchInputComponent,
+ SearchInputControlComponent
+] as const;
diff --git a/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.spec.ts b/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.spec.ts
index dbf30fe5ee..31f054dce2 100644
--- a/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.spec.ts
+++ b/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.spec.ts
@@ -27,7 +27,6 @@ import { SearchSortingDefinition } from '@alfresco/adf-content-services/lib/sear
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AppTestingModule } from '../../../testing/app-testing.module';
import { SearchActionMenuComponent } from './search-action-menu.component';
-import { MatMenuModule } from '@angular/material/menu';
const mockSortingData: SearchSortingDefinition[] = [
{
@@ -53,8 +52,7 @@ describe('SearchActionMenuComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule, MatMenuModule],
- declarations: [SearchActionMenuComponent],
+ imports: [AppTestingModule, SearchActionMenuComponent],
providers: [SearchQueryBuilderService]
});
diff --git a/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.ts b/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.ts
index 26088475e5..53a3373cb5 100644
--- a/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.ts
+++ b/projects/aca-content/src/lib/components/search/search-action-menu/search-action-menu.component.ts
@@ -25,8 +25,15 @@
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { SearchSortingDefinition } from '@alfresco/adf-content-services/lib/search/models/search-sorting-definition.interface';
import { Component, OnInit, Output, ViewEncapsulation, EventEmitter } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatMenuModule } from '@angular/material/menu';
+import { MatIconModule } from '@angular/material/icon';
+import { MatButtonModule } from '@angular/material/button';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, MatMenuModule, MatIconModule, MatButtonModule],
selector: 'aca-search-action-menu',
templateUrl: './search-action-menu.component.html',
encapsulation: ViewEncapsulation.None
diff --git a/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.spec.ts b/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.spec.ts
index bae4b9f0d1..eb152b5310 100644
--- a/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.spec.ts
+++ b/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.spec.ts
@@ -33,8 +33,7 @@ describe('SearchInputControlComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule],
- declarations: [SearchInputControlComponent],
+ imports: [AppTestingModule, SearchInputControlComponent],
schemas: [NO_ERRORS_SCHEMA]
});
diff --git a/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.ts b/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.ts
index 91896c950b..05c3583526 100644
--- a/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.ts
+++ b/projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.ts
@@ -24,8 +24,17 @@
import { Component, EventEmitter, Input, OnDestroy, Output, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
import { Subject } from 'rxjs';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+import { FormsModule } from '@angular/forms';
@Component({
+ standalone: true,
+ imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule, MatFormFieldModule, MatInputModule, FormsModule],
selector: 'app-search-input-control',
templateUrl: './search-input-control.component.html',
styleUrls: ['./search-input-control.component.scss'],
diff --git a/projects/aca-content/src/lib/components/search/search-input/search-input.component.spec.ts b/projects/aca-content/src/lib/components/search/search-input/search-input.component.spec.ts
index ffc355a04b..999a114a15 100644
--- a/projects/aca-content/src/lib/components/search/search-input/search-input.component.spec.ts
+++ b/projects/aca-content/src/lib/components/search/search-input/search-input.component.spec.ts
@@ -33,8 +33,6 @@ import { map } from 'rxjs/operators';
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { SearchNavigationService } from '../search-navigation.service';
import { BehaviorSubject, Subject } from 'rxjs';
-import { MatSnackBarModule } from '@angular/material/snack-bar';
-import { MatMenuModule } from '@angular/material/menu';
describe('SearchInputComponent', () => {
let fixture: ComponentFixture;
@@ -49,8 +47,7 @@ describe('SearchInputComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [AppTestingModule, MatSnackBarModule, MatMenuModule],
- declarations: [SearchInputComponent],
+ imports: [AppTestingModule, SearchInputComponent],
providers: [
{
provide: AppService,
diff --git a/projects/aca-content/src/lib/components/search/search-input/search-input.component.ts b/projects/aca-content/src/lib/components/search/search-input/search-input.component.ts
index ceb891462b..c3147acc41 100644
--- a/projects/aca-content/src/lib/components/search/search-input/search-input.component.ts
+++ b/projects/aca-content/src/lib/components/search/search-input/search-input.component.ts
@@ -27,7 +27,7 @@ import { AppStore, SearchByTermAction, SearchOptionIds, SearchOptionModel, Snack
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { AppConfigService } from '@alfresco/adf-core';
import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
-import { MatMenuTrigger } from '@angular/material/menu';
+import { MatMenuModule, MatMenuTrigger } from '@angular/material/menu';
import { NavigationEnd, PRIMARY_OUTLET, Router, RouterEvent, UrlSegment, UrlSegmentGroup, UrlTree } from '@angular/router';
import { Store } from '@ngrx/store';
import { Subject } from 'rxjs';
@@ -35,8 +35,31 @@ import { filter, takeUntil } from 'rxjs/operators';
import { SearchInputControlComponent } from '../search-input-control/search-input-control.component';
import { SearchNavigationService } from '../search-navigation.service';
import { SearchLibrariesQueryBuilderService } from '../search-libraries-results/search-libraries-query-builder.service';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+import { A11yModule } from '@angular/cdk/a11y';
+import { MatCheckboxModule } from '@angular/material/checkbox';
+import { FormsModule } from '@angular/forms';
@Component({
+ standalone: true,
+ imports: [
+ CommonModule,
+ TranslateModule,
+ MatMenuModule,
+ MatButtonModule,
+ MatIconModule,
+ MatFormFieldModule,
+ MatInputModule,
+ A11yModule,
+ MatCheckboxModule,
+ FormsModule,
+ SearchInputControlComponent
+ ],
selector: 'aca-search-input',
templateUrl: './search-input.component.html',
styleUrls: ['./search-input.component.scss'],
diff --git a/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.html b/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.html
index 7de4f6274b..e644cccbd7 100644
--- a/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.html
+++ b/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.html
@@ -13,7 +13,7 @@