[ACS-5627] migrate to standalone components (#3339)

* standalone preview component

* remove deprecated routes

* remove preview routes

* standalone viewer

* toggle favorite

* edit offline

* fix tests

* toggle info drawer

* toggle join library

* toggle favorite library

* view node

* convert app toolbar module to standalone directives

* convert sidenav module to standalone

* convert search module to standalone

* shared link view

* shared files

* reduce module files

* files component

* files component cleanup

* cleanup directives module

* favorite libraries

* favorites component

* recent files component

* libraries component

* cleanup

* remove material module barrel

* open in app component

* cleanup modules

* migrate toolbar module to standalone

* split page layout module

* remove incorrect import

* remove incorrect import

* rule list

* folder rules module

* folder rules module

* backwards compatibility for ADW

* reduce core module usage
This commit is contained in:
Denys Vuika
2023-07-17 09:52:29 +01:00
committed by GitHub
parent 48a502b805
commit 9cf317dfbc
136 changed files with 986 additions and 915 deletions

View File

@@ -25,6 +25,7 @@
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';
@Component({
standalone: true,
selector: 'aca-page-layout-content',
template: `<ng-content></ng-content>`,
encapsulation: ViewEncapsulation.None,

View File

@@ -25,6 +25,7 @@
import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
@Component({
standalone: true,
selector: 'aca-page-layout-error',
template: `<ng-content></ng-content>`,
encapsulation: ViewEncapsulation.None,

View File

@@ -25,6 +25,7 @@
import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
@Component({
standalone: true,
selector: 'aca-page-layout-header',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None,

View File

@@ -37,7 +37,7 @@ describe('PageLayoutComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [PageLayoutComponent],
imports: [PageLayoutComponent],
providers: [
{
provide: AppService,

View File

@@ -26,8 +26,14 @@ import { Component, ViewEncapsulation, Input, OnDestroy } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { AppService } from '../../services/app.service';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
@Component({
standalone: true,
imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule],
selector: 'aca-page-layout',
templateUrl: './page-layout.component.html',
styleUrls: ['./page-layout.component.scss'],

View File

@@ -27,14 +27,9 @@ import { PageLayoutContentComponent } from './page-layout-content.component';
import { PageLayoutErrorComponent } from './page-layout-error.component';
import { PageLayoutHeaderComponent } from './page-layout-header.component';
import { PageLayoutComponent } from './page-layout.component';
import { CommonModule } from '@angular/common';
import { MatIconModule } from '@angular/material/icon';
import { TranslateModule } from '@ngx-translate/core';
import { MatButtonModule } from '@angular/material/button';
@NgModule({
imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule],
declarations: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent],
imports: [PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent],
exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent]
})
export class PageLayoutModule {}