mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-4709] ensure all components have encapsulation set to none (#3271)
* ACA-4709 Added use-none-component-view-encapsulation eslint rule and correct part of components * ACA-4709 More changes for encapsulation * ACA-4709 Installed eslint-plugin-eslint-angular dependency * ACA-4709 Corrected rest places with did not use none encapsulation * ACA-4709 Exclude process inline templates plugin from spec files
This commit is contained in:
parent
22444744f1
commit
cc13551d2f
@ -5,6 +5,15 @@
|
|||||||
],
|
],
|
||||||
"plugins": ["@nrwl/nx"],
|
"plugins": ["@nrwl/nx"],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.ts"],
|
||||||
|
"plugins": ["@alfresco/eslint-angular"],
|
||||||
|
"extends": ["plugin:@angular-eslint/template/process-inline-templates"],
|
||||||
|
"excludedFiles": ["*.spec.ts"],
|
||||||
|
"rules": {
|
||||||
|
"@alfresco/eslint-angular/use-none-component-view-encapsulation": "error"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": [
|
"files": [
|
||||||
"*.ts"
|
"*.ts"
|
||||||
@ -15,7 +24,6 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"plugin:@nrwl/nx/typescript",
|
"plugin:@nrwl/nx/typescript",
|
||||||
"plugin:@nrwl/nx/angular",
|
"plugin:@nrwl/nx/angular",
|
||||||
"plugin:@angular-eslint/template/process-inline-templates",
|
|
||||||
"plugin:@cspell/recommended"
|
"plugin:@cspell/recommended"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
:host {
|
app-root {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
|
@ -22,14 +22,15 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component, ViewEncapsulation } from '@angular/core';
|
||||||
import { Observable, Subject } from 'rxjs';
|
import { Observable, Subject } from 'rxjs';
|
||||||
import { AppService } from '@alfresco/aca-shared';
|
import { AppService } from '@alfresco/aca-shared';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrls: ['./app.component.scss']
|
styleUrls: ['./app.component.scss'],
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
onDestroy$: Subject<boolean> = new Subject<boolean>();
|
onDestroy$: Subject<boolean> = new Subject<boolean>();
|
||||||
|
@ -23,12 +23,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { AppConfigModule, LoginModule } from '@alfresco/adf-core';
|
import { AppConfigModule, LoginModule } from '@alfresco/adf-core';
|
||||||
import { Component } from '@angular/core';
|
import { Component, ViewEncapsulation } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [LoginModule, AppConfigModule, TranslateModule],
|
imports: [LoginModule, AppConfigModule, TranslateModule],
|
||||||
templateUrl: './login.component.html'
|
templateUrl: './login.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LoginComponent {}
|
export class LoginComponent {}
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -13,6 +13,7 @@
|
|||||||
"@alfresco/adf-content-services": "6.1.0-5145838719",
|
"@alfresco/adf-content-services": "6.1.0-5145838719",
|
||||||
"@alfresco/adf-core": "6.1.0-5145838719",
|
"@alfresco/adf-core": "6.1.0-5145838719",
|
||||||
"@alfresco/adf-extensions": "6.1.0-5145838719",
|
"@alfresco/adf-extensions": "6.1.0-5145838719",
|
||||||
|
"@alfresco/eslint-plugin-eslint-angular": "6.2.0-5201142775",
|
||||||
"@alfresco/js-api": "6.1.0",
|
"@alfresco/js-api": "6.1.0",
|
||||||
"@angular/animations": "14.1.3",
|
"@angular/animations": "14.1.3",
|
||||||
"@angular/cdk": "14.1.3",
|
"@angular/cdk": "14.1.3",
|
||||||
@ -230,6 +231,11 @@
|
|||||||
"tslib": "^2.0.0"
|
"tslib": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@alfresco/eslint-plugin-eslint-angular": {
|
||||||
|
"version": "6.2.0-5201142775",
|
||||||
|
"resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-6.2.0-5201142775.tgz",
|
||||||
|
"integrity": "sha512-3rqok28L8paBXjgADymgZh8aHUeA26CBz/GpatXhkDCmZ92tiwFGpL3Q5/ArRn34CxCWeWgCI/xJzaLVrQxCQg=="
|
||||||
|
},
|
||||||
"node_modules/@alfresco/js-api": {
|
"node_modules/@alfresco/js-api": {
|
||||||
"version": "6.1.0",
|
"version": "6.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-6.1.0.tgz",
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
"@alfresco/adf-content-services": "6.1.0-5145838719",
|
"@alfresco/adf-content-services": "6.1.0-5145838719",
|
||||||
"@alfresco/adf-core": "6.1.0-5145838719",
|
"@alfresco/adf-core": "6.1.0-5145838719",
|
||||||
"@alfresco/adf-extensions": "6.1.0-5145838719",
|
"@alfresco/adf-extensions": "6.1.0-5145838719",
|
||||||
|
"@alfresco/eslint-plugin-eslint-angular": "6.2.0-5201142775",
|
||||||
"@alfresco/js-api": "6.1.0",
|
"@alfresco/js-api": "6.1.0",
|
||||||
"@angular/animations": "14.1.3",
|
"@angular/animations": "14.1.3",
|
||||||
"@angular/cdk": "14.1.3",
|
"@angular/cdk": "14.1.3",
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
adf-about {
|
app-about-page {
|
||||||
padding: 10px;
|
adf-about {
|
||||||
width: 100%;
|
padding: 10px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit, inject } from '@angular/core';
|
import { Component, inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { DEV_MODE_TOKEN } from './dev-mode.tokens';
|
import { DEV_MODE_TOKEN } from './dev-mode.tokens';
|
||||||
import { AppExtensionService } from '@alfresco/adf-extensions';
|
import { AppExtensionService } from '@alfresco/adf-extensions';
|
||||||
import { AboutModule, AppConfigService, AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';
|
import { AboutModule, AppConfigService, AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';
|
||||||
@ -40,7 +40,8 @@ import { MatButtonModule } from '@angular/material/button';
|
|||||||
imports: [CommonModule, TranslateModule, AboutModule, PageLayoutModule, RouterModule, MatIconModule, MatButtonModule],
|
imports: [CommonModule, TranslateModule, AboutModule, PageLayoutModule, RouterModule, MatIconModule, MatButtonModule],
|
||||||
selector: 'app-about-page',
|
selector: 'app-about-page',
|
||||||
templateUrl: './about.component.html',
|
templateUrl: './about.component.html',
|
||||||
styleUrls: ['./about.component.scss']
|
styleUrls: ['./about.component.scss'],
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class AboutComponent implements OnInit {
|
export class AboutComponent implements OnInit {
|
||||||
private authService = inject(AuthenticationService);
|
private authService = inject(AuthenticationService);
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { LanguageMenuModule } from '@alfresco/adf-core';
|
import { LanguageMenuModule } from '@alfresco/adf-core';
|
||||||
import { Component } from '@angular/core';
|
import { Component, ViewEncapsulation } from '@angular/core';
|
||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { MatMenuModule } from '@angular/material/menu';
|
import { MatMenuModule } from '@angular/material/menu';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
@ -40,6 +40,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
<mat-menu #langMenu="matMenu">
|
<mat-menu #langMenu="matMenu">
|
||||||
<adf-language-menu></adf-language-menu>
|
<adf-language-menu></adf-language-menu>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
`
|
`,
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LanguagePickerComponent {}
|
export class LanguagePickerComponent {}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component, ViewEncapsulation } from '@angular/core';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
import { SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
@ -39,7 +39,8 @@ import { DirectiveModule } from '@alfresco/adf-core';
|
|||||||
<mat-icon>exit_to_app</mat-icon>
|
<mat-icon>exit_to_app</mat-icon>
|
||||||
<span>{{ 'APP.SIGN_OUT' | translate }}</span>
|
<span>{{ 'APP.SIGN_OUT' | translate }}</span>
|
||||||
</button>
|
</button>
|
||||||
`
|
`,
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LogoutComponent {
|
export class LogoutComponent {
|
||||||
constructor(private store: Store) {}
|
constructor(private store: Store) {}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { Observable, Subject } from 'rxjs';
|
import { Observable, Subject } from 'rxjs';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { SelectionState } from '@alfresco/adf-extensions';
|
import { SelectionState } from '@alfresco/adf-extensions';
|
||||||
@ -38,7 +38,8 @@ import { takeUntil } from 'rxjs/operators';
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule, MatMenuModule, MatIconModule, TranslateModule, MatButtonModule],
|
imports: [CommonModule, MatMenuModule, MatIconModule, TranslateModule, MatButtonModule],
|
||||||
selector: 'app-toggle-shared',
|
selector: 'app-toggle-shared',
|
||||||
templateUrl: './toggle-shared.component.html'
|
templateUrl: './toggle-shared.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class ToggleSharedComponent implements OnInit, OnDestroy {
|
export class ToggleSharedComponent implements OnInit, OnDestroy {
|
||||||
@Input()
|
@Input()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
|
import { ChangeDetectorRef, Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { SiteEntry, FavoritePaging, Pagination } from '@alfresco/js-api';
|
import { SiteEntry, FavoritePaging, Pagination } from '@alfresco/js-api';
|
||||||
import { AppHookService, ContentApiService, PageComponent } from '@alfresco/aca-shared';
|
import { AppHookService, ContentApiService, PageComponent } from '@alfresco/aca-shared';
|
||||||
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
||||||
@ -30,7 +30,8 @@ import { UserPreferencesService } from '@alfresco/adf-core';
|
|||||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './favorite-libraries.component.html'
|
templateUrl: './favorite-libraries.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class FavoriteLibrariesComponent extends PageComponent implements OnInit {
|
export class FavoriteLibrariesComponent extends PageComponent implements OnInit {
|
||||||
pagination: Pagination = new Pagination({
|
pagination: Pagination = new Pagination({
|
||||||
|
@ -24,12 +24,13 @@
|
|||||||
|
|
||||||
import { ContentApiService, PageComponent } from '@alfresco/aca-shared';
|
import { ContentApiService, PageComponent } from '@alfresco/aca-shared';
|
||||||
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElementEntity, PathInfo } from '@alfresco/js-api';
|
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElementEntity, PathInfo } from '@alfresco/js-api';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { debounceTime, map } from 'rxjs/operators';
|
import { debounceTime, map } from 'rxjs/operators';
|
||||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './favorites.component.html'
|
templateUrl: './favorites.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class FavoritesComponent extends PageComponent implements OnInit {
|
export class FavoritesComponent extends PageComponent implements OnInit {
|
||||||
columns: DocumentListPresetRef[] = [];
|
columns: DocumentListPresetRef[] = [];
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { ShowHeaderMode } from '@alfresco/adf-core';
|
import { ShowHeaderMode } from '@alfresco/adf-core';
|
||||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { ActivatedRoute, Params } from '@angular/router';
|
import { ActivatedRoute, Params } from '@angular/router';
|
||||||
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElement, PathElementEntity } from '@alfresco/js-api';
|
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElement, PathElementEntity } from '@alfresco/js-api';
|
||||||
import { NodeActionsService } from '../../services/node-actions.service';
|
import { NodeActionsService } from '../../services/node-actions.service';
|
||||||
@ -34,7 +34,8 @@ import { FilterSearch, ShareDataRow, FileUploadEvent } from '@alfresco/adf-conte
|
|||||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './files.component.html'
|
templateUrl: './files.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
||||||
isValidPath = true;
|
isValidPath = true;
|
||||||
|
@ -22,12 +22,13 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { AppConfigService } from '@alfresco/adf-core';
|
import { AppConfigService } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: ''
|
template: '',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class HomeComponent implements OnInit {
|
export class HomeComponent implements OnInit {
|
||||||
readonly DEFAULT_LANDING_PAGE = '/personal-files';
|
readonly DEFAULT_LANDING_PAGE = '/personal-files';
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
|
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
|
||||||
import { NodePermissionService, isLocked } from '@alfresco/aca-shared';
|
import { NodePermissionService, isLocked } from '@alfresco/aca-shared';
|
||||||
import { MatCardModule } from '@angular/material/card';
|
import { MatCardModule } from '@angular/material/card';
|
||||||
@ -32,7 +32,8 @@ import { NodeCommentsModule } from '@alfresco/adf-content-services';
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [MatCardModule, NodeCommentsModule],
|
imports: [MatCardModule, NodeCommentsModule],
|
||||||
selector: 'app-comments-tab',
|
selector: 'app-comments-tab',
|
||||||
template: `<mat-card><adf-node-comments [readOnly]="!canUpdateNode" [nodeId]="node?.id"></adf-node-comments></mat-card>`
|
template: `<mat-card><adf-node-comments [readOnly]="!canUpdateNode" [nodeId]="node?.id"></adf-node-comments></mat-card>`,
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class CommentsTabComponent implements OnInit {
|
export class CommentsTabComponent implements OnInit {
|
||||||
@Input()
|
@Input()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input, OnInit, OnChanges, OnDestroy } from '@angular/core';
|
import { Component, Input, OnChanges, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { UntypedFormGroup, UntypedFormControl, Validators, FormGroupDirective, NgForm, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormControl, Validators, FormGroupDirective, NgForm, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { QueriesApi, SiteEntry, SitePaging } from '@alfresco/js-api';
|
import { QueriesApi, SiteEntry, SitePaging } from '@alfresco/js-api';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
@ -63,7 +63,8 @@ export class InstantErrorStateMatcher implements ErrorStateMatcher {
|
|||||||
MatButtonModule
|
MatButtonModule
|
||||||
],
|
],
|
||||||
selector: 'app-library-metadata-form',
|
selector: 'app-library-metadata-form',
|
||||||
templateUrl: './library-metadata-form.component.html'
|
templateUrl: './library-metadata-form.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestroy {
|
export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
private _queriesApi: QueriesApi;
|
private _queriesApi: QueriesApi;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
||||||
import { SiteEntry } from '@alfresco/js-api';
|
import { SiteEntry } from '@alfresco/js-api';
|
||||||
import { LibraryMetadataFormComponent } from './library-metadata-form.component';
|
import { LibraryMetadataFormComponent } from './library-metadata-form.component';
|
||||||
|
|
||||||
@ -31,7 +31,8 @@ import { LibraryMetadataFormComponent } from './library-metadata-form.component'
|
|||||||
imports: [LibraryMetadataFormComponent],
|
imports: [LibraryMetadataFormComponent],
|
||||||
selector: 'app-library-metadata-tab',
|
selector: 'app-library-metadata-tab',
|
||||||
template: '<app-library-metadata-form [node]="node"></app-library-metadata-form>',
|
template: '<app-library-metadata-form [node]="node"></app-library-metadata-form>',
|
||||||
host: { class: 'app-metadata-tab' }
|
host: { class: 'app-metadata-tab' },
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LibraryMetadataTabComponent {
|
export class LibraryMetadataTabComponent {
|
||||||
@Input()
|
@Input()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input, OnChanges, OnInit } from '@angular/core';
|
import { Component, Input, OnChanges, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
|
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { VersionManagerModule } from '@alfresco/adf-content-services';
|
import { VersionManagerModule } from '@alfresco/adf-content-services';
|
||||||
@ -50,7 +50,8 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
{{ 'VERSION.SELECTION.EMPTY' | translate }}
|
{{ 'VERSION.SELECTION.EMPTY' | translate }}
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
`
|
`,
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class VersionsTabComponent implements OnInit, OnChanges {
|
export class VersionsTabComponent implements OnInit, OnChanges {
|
||||||
@Input()
|
@Input()
|
||||||
|
@ -24,12 +24,13 @@
|
|||||||
|
|
||||||
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
||||||
import { SiteEntry } from '@alfresco/js-api';
|
import { SiteEntry } from '@alfresco/js-api';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { AppHookService, PageComponent } from '@alfresco/aca-shared';
|
import { AppHookService, PageComponent } from '@alfresco/aca-shared';
|
||||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './libraries.component.html'
|
templateUrl: './libraries.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LibrariesComponent extends PageComponent implements OnInit {
|
export class LibrariesComponent extends PageComponent implements OnInit {
|
||||||
columns: DocumentListPresetRef[] = [];
|
columns: DocumentListPresetRef[] = [];
|
||||||
|
@ -22,14 +22,15 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { MinimalNodeEntity } from '@alfresco/js-api';
|
import { MinimalNodeEntity } from '@alfresco/js-api';
|
||||||
import { debounceTime } from 'rxjs/operators';
|
import { debounceTime } from 'rxjs/operators';
|
||||||
import { PageComponent } from '@alfresco/aca-shared';
|
import { PageComponent } from '@alfresco/aca-shared';
|
||||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './recent-files.component.html'
|
templateUrl: './recent-files.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class RecentFilesComponent extends PageComponent implements OnInit {
|
export class RecentFilesComponent extends PageComponent implements OnInit {
|
||||||
columns: DocumentListPresetRef[] = [];
|
columns: DocumentListPresetRef[] = [];
|
||||||
|
@ -1,45 +1,47 @@
|
|||||||
@import '../../../ui/mixins';
|
@import '../../../ui/mixins';
|
||||||
|
|
||||||
.adf-search-results {
|
aca-search-results {
|
||||||
@include flex-row;
|
.adf-search-results {
|
||||||
|
|
||||||
&__content {
|
|
||||||
@include flex-column;
|
|
||||||
|
|
||||||
border-left: 1px solid #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__content-header {
|
|
||||||
display: flex;
|
|
||||||
padding: 0 25px;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--info-text {
|
|
||||||
flex: 1;
|
|
||||||
font-size: 16px;
|
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
|
||||||
|
|
||||||
.text--bold {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
@include flex-row;
|
@include flex-row;
|
||||||
|
|
||||||
flex: unset;
|
&__content {
|
||||||
height: unset;
|
|
||||||
padding-top: 8px;
|
|
||||||
padding-bottom: 8px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
&__side--left {
|
|
||||||
@include flex-column;
|
@include flex-column;
|
||||||
|
|
||||||
|
border-left: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content-header {
|
||||||
|
display: flex;
|
||||||
|
padding: 0 25px;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--info-text {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 16px;
|
||||||
|
color: rgba(0, 0, 0, 0.54);
|
||||||
|
}
|
||||||
|
|
||||||
|
.text--bold {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
@include flex-row;
|
||||||
|
|
||||||
|
flex: unset;
|
||||||
height: unset;
|
height: unset;
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
&__side--left {
|
||||||
|
@include flex-column;
|
||||||
|
|
||||||
|
height: unset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
||||||
import { NodePaging, Pagination, SiteEntry } from '@alfresco/js-api';
|
import { NodePaging, Pagination, SiteEntry } from '@alfresco/js-api';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { ActivatedRoute, Params } from '@angular/router';
|
import { ActivatedRoute, Params } from '@angular/router';
|
||||||
import { SearchLibrariesQueryBuilderService } from './search-libraries-query-builder.service';
|
import { SearchLibrariesQueryBuilderService } from './search-libraries-query-builder.service';
|
||||||
import { AppHookService, AppService, PageComponent } from '@alfresco/aca-shared';
|
import { AppHookService, AppService, PageComponent } from '@alfresco/aca-shared';
|
||||||
@ -33,7 +33,8 @@ import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'aca-search-results',
|
selector: 'aca-search-results',
|
||||||
templateUrl: './search-libraries-results.component.html',
|
templateUrl: './search-libraries-results.component.html',
|
||||||
styleUrls: ['./search-libraries-results.component.scss']
|
styleUrls: ['./search-libraries-results.component.scss'],
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class SearchLibrariesResultsComponent extends PageComponent implements OnInit {
|
export class SearchLibrariesResultsComponent extends PageComponent implements OnInit {
|
||||||
searchedWord: string;
|
searchedWord: string;
|
||||||
|
@ -22,13 +22,15 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { debounceTime } from 'rxjs/operators';
|
import { debounceTime } from 'rxjs/operators';
|
||||||
import { MinimalNodeEntity } from '@alfresco/js-api';
|
import { MinimalNodeEntity } from '@alfresco/js-api';
|
||||||
import { AppHookService, PageComponent } from '@alfresco/aca-shared';
|
import { AppHookService, PageComponent } from '@alfresco/aca-shared';
|
||||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './shared-files.component.html'
|
templateUrl: './shared-files.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class SharedFilesComponent extends PageComponent implements OnInit {
|
export class SharedFilesComponent extends PageComponent implements OnInit {
|
||||||
columns: DocumentListPresetRef[] = [];
|
columns: DocumentListPresetRef[] = [];
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
import { getUserProfile } from '@alfresco/aca-shared/store';
|
import { getUserProfile } from '@alfresco/aca-shared/store';
|
||||||
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
|
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { PageComponent, PageLayoutModule, SharedToolbarModule } from '@alfresco/aca-shared';
|
import { PageComponent, PageLayoutModule, SharedToolbarModule } from '@alfresco/aca-shared';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
@ -48,7 +48,8 @@ import { DirectivesModule } from '../../directives/directives.module';
|
|||||||
DataTableModule,
|
DataTableModule,
|
||||||
ExtensionsModule
|
ExtensionsModule
|
||||||
],
|
],
|
||||||
templateUrl: './trashcan.component.html'
|
templateUrl: './trashcan.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class TrashcanComponent extends PageComponent implements OnInit {
|
export class TrashcanComponent extends PageComponent implements OnInit {
|
||||||
user$ = this.store.select(getUserProfile);
|
user$ = this.store.select(getUserProfile);
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, HostListener, Input, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
import { Component, HostListener, Input, OnChanges, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { MinimalNodeEntity, MinimalNodeEntryEntity, SiteEntry } from '@alfresco/js-api';
|
import { MinimalNodeEntity, MinimalNodeEntryEntity, SiteEntry } from '@alfresco/js-api';
|
||||||
import { ContentActionRef, ExtensionsModule, SidebarTabRef } from '@alfresco/adf-extensions';
|
import { ContentActionRef, ExtensionsModule, SidebarTabRef } from '@alfresco/adf-extensions';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
@ -37,11 +37,13 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|||||||
import { InfoDrawerModule, ToolbarModule } from '@alfresco/adf-core';
|
import { InfoDrawerModule, ToolbarModule } from '@alfresco/adf-core';
|
||||||
import { SharedToolbarModule } from '../tool-bar/shared-toolbar.module';
|
import { SharedToolbarModule } from '../tool-bar/shared-toolbar.module';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule, TranslateModule, MatProgressBarModule, InfoDrawerModule, SharedToolbarModule, ExtensionsModule, ToolbarModule],
|
imports: [CommonModule, TranslateModule, MatProgressBarModule, InfoDrawerModule, SharedToolbarModule, ExtensionsModule, ToolbarModule],
|
||||||
selector: 'aca-info-drawer',
|
selector: 'aca-info-drawer',
|
||||||
templateUrl: './info-drawer.component.html'
|
templateUrl: './info-drawer.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
||||||
@Input()
|
@Input()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user