mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Revert "[ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)" (#3918)
* Revert "[ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)"
This reverts commit 457ddb2e39
.
* [ci:force]
This commit is contained in:
@@ -98,8 +98,7 @@
|
|||||||
"CREATE_TOOLTIP": "Create content",
|
"CREATE_TOOLTIP": "Create content",
|
||||||
"UPLOAD": "Upload",
|
"UPLOAD": "Upload",
|
||||||
"UPLOAD_TOOLTIP": "Upload content"
|
"UPLOAD_TOOLTIP": "Upload content"
|
||||||
},
|
}
|
||||||
"SELECTED": "Selected ({{ count }})"
|
|
||||||
},
|
},
|
||||||
"BROWSE": {
|
"BROWSE": {
|
||||||
"FILE": {
|
"FILE": {
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
<aca-page-layout>
|
<aca-page-layout>
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<h1 class="aca-page-title">
|
<h1 class="aca-page-title">{{ 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE' | translate }}</h1>
|
||||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
|
||||||
</h1>
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -21,7 +19,6 @@
|
|||||||
[sortingMode]="'client'"
|
[sortingMode]="'client'"
|
||||||
(node-dblclick)="handleNodeClick($event)"
|
(node-dblclick)="handleNodeClick($event)"
|
||||||
[imageResolver]="imageResolver"
|
[imageResolver]="imageResolver"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
[isResizingEnabled]="true"
|
[isResizingEnabled]="true"
|
||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
(name-click)="handleNodeClick($event)"
|
(name-click)="handleNodeClick($event)"
|
||||||
|
@@ -33,7 +33,6 @@ import { RouterEffects } from '@alfresco/aca-shared/store';
|
|||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
import { LibraryEffects } from '../../store/effects';
|
import { LibraryEffects } from '../../store/effects';
|
||||||
import { NodeEntry } from '@alfresco/js-api';
|
import { NodeEntry } from '@alfresco/js-api';
|
||||||
import { getTitleElementText } from '../../testing/test-utils';
|
|
||||||
|
|
||||||
describe('FavoriteLibrariesComponent', () => {
|
describe('FavoriteLibrariesComponent', () => {
|
||||||
let fixture: ComponentFixture<FavoriteLibrariesComponent>;
|
let fixture: ComponentFixture<FavoriteLibrariesComponent>;
|
||||||
@@ -100,17 +99,6 @@ describe('FavoriteLibrariesComponent', () => {
|
|||||||
expect(component.pagination).toBe(null);
|
expect(component.pagination).toBe(null);
|
||||||
expect(component.isLoading).toBe(false);
|
expect(component.isLoading).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set title based on selectedRowItemsCount', () => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE');
|
|
||||||
|
|
||||||
component.selectedRowItemsCount = 5;
|
|
||||||
fixture.detectChanges();
|
|
||||||
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Node navigation', () => {
|
describe('Node navigation', () => {
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
<aca-page-layout>
|
<aca-page-layout>
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<h1 class="aca-page-title">
|
<h1 class="aca-page-title">{{ 'APP.BROWSE.FAVORITES.TITLE' | translate }}</h1>
|
||||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.FAVORITES.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
|
||||||
</h1>
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -19,7 +17,6 @@
|
|||||||
[sorting]="['modifiedAt', 'desc']"
|
[sorting]="['modifiedAt', 'desc']"
|
||||||
[sortingMode]="'client'"
|
[sortingMode]="'client'"
|
||||||
[imageResolver]="imageResolver"
|
[imageResolver]="imageResolver"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
[isResizingEnabled]="true"
|
[isResizingEnabled]="true"
|
||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
(node-dblclick)="handleNodeClick($event)"
|
(node-dblclick)="handleNodeClick($event)"
|
||||||
|
@@ -29,7 +29,6 @@ import { BehaviorSubject, of, Subject } from 'rxjs';
|
|||||||
import { FavoritesComponent } from './favorites.component';
|
import { FavoritesComponent } from './favorites.component';
|
||||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
import { AppTestingModule } from '../../testing/app-testing.module';
|
||||||
import { AppService, ContentApiService } from '@alfresco/aca-shared';
|
import { AppService, ContentApiService } from '@alfresco/aca-shared';
|
||||||
import { getTitleElementText } from '../../testing/test-utils';
|
|
||||||
|
|
||||||
describe('FavoritesComponent', () => {
|
describe('FavoritesComponent', () => {
|
||||||
let fixture: ComponentFixture<FavoritesComponent>;
|
let fixture: ComponentFixture<FavoritesComponent>;
|
||||||
@@ -130,13 +129,4 @@ describe('FavoritesComponent', () => {
|
|||||||
location: 'favorites'
|
location: 'favorites'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set title based on selectedRowItemsCount', () => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.FAVORITES.TITLE');
|
|
||||||
|
|
||||||
component.selectedRowItemsCount = 5;
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
@@ -1,11 +1,6 @@
|
|||||||
<aca-page-layout [hasError]="!isValidPath">
|
<aca-page-layout [hasError]="!isValidPath">
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<adf-breadcrumb [root]="title"
|
<adf-breadcrumb [root]="title" [folderNode]="node" [maxItems]="isSmallScreen ? 1 : 0" (navigate)="onBreadcrumbNavigate($event)"> </adf-breadcrumb>
|
||||||
[folderNode]="node"
|
|
||||||
[selectedRowItemsCount]="selectedRowItemsCount"
|
|
||||||
[maxItems]="isSmallScreen ? 1 : 0"
|
|
||||||
(navigate)="onBreadcrumbNavigate($event)">
|
|
||||||
</adf-breadcrumb>
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -36,7 +31,6 @@
|
|||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
(node-dblclick)="handleNodeClick($event)"
|
(node-dblclick)="handleNodeClick($event)"
|
||||||
(name-click)="handleNodeClick($event)"
|
(name-click)="handleNodeClick($event)"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
(filterSelection)="onFilterSelected($event)"
|
(filterSelection)="onFilterSelected($event)"
|
||||||
(error)="onError()"
|
(error)="onError()"
|
||||||
>
|
>
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
<aca-page-layout>
|
<aca-page-layout>
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<h1 class="aca-page-title">
|
<h1 class="aca-page-title">{{ 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE' | translate }}</h1>
|
||||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
|
||||||
</h1>
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -20,7 +18,6 @@
|
|||||||
[sortingMode]="'client'"
|
[sortingMode]="'client'"
|
||||||
[imageResolver]="imageResolver"
|
[imageResolver]="imageResolver"
|
||||||
[isResizingEnabled]="true"
|
[isResizingEnabled]="true"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
(node-dblclick)="handleNodeClick($event)"
|
(node-dblclick)="handleNodeClick($event)"
|
||||||
(name-click)="handleNodeClick($event)"
|
(name-click)="handleNodeClick($event)"
|
||||||
|
@@ -30,7 +30,6 @@ import { AppTestingModule } from '../../testing/app-testing.module';
|
|||||||
import { EffectsModule } from '@ngrx/effects';
|
import { EffectsModule } from '@ngrx/effects';
|
||||||
import { LibraryEffects } from '../../store/effects';
|
import { LibraryEffects } from '../../store/effects';
|
||||||
import { ContentApiService } from '@alfresco/aca-shared';
|
import { ContentApiService } from '@alfresco/aca-shared';
|
||||||
import { getTitleElementText } from '../../testing/test-utils';
|
|
||||||
|
|
||||||
describe('LibrariesComponent', () => {
|
describe('LibrariesComponent', () => {
|
||||||
let fixture: ComponentFixture<LibrariesComponent>;
|
let fixture: ComponentFixture<LibrariesComponent>;
|
||||||
@@ -68,17 +67,6 @@ describe('LibrariesComponent', () => {
|
|||||||
spyOn(sitesApi, 'listSiteMembershipsForPerson').and.returnValue(Promise.resolve({}));
|
spyOn(sitesApi, 'listSiteMembershipsForPerson').and.returnValue(Promise.resolve({}));
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Initialization', () => {
|
|
||||||
it('should set title to MY_LIBRARIES.TITLE based on selectedRowItemsCount', () => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE');
|
|
||||||
|
|
||||||
component.selectedRowItemsCount = 2;
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('Node navigation', () => {
|
describe('Node navigation', () => {
|
||||||
it('does not navigate when id is not passed', () => {
|
it('does not navigate when id is not passed', () => {
|
||||||
spyOn(router, 'navigate').and.stub();
|
spyOn(router, 'navigate').and.stub();
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
<aca-page-layout>
|
<aca-page-layout>
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<h1 class="aca-page-title">
|
<h1 class="aca-page-title">{{ 'APP.BROWSE.RECENT.TITLE' | translate }}</h1>
|
||||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.RECENT.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
|
||||||
</h1>
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -20,7 +18,6 @@
|
|||||||
[sortingMode]="'client'"
|
[sortingMode]="'client'"
|
||||||
[imageResolver]="imageResolver"
|
[imageResolver]="imageResolver"
|
||||||
[isResizingEnabled]="true"
|
[isResizingEnabled]="true"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
(node-dblclick)="handleNodeClick($event)"
|
(node-dblclick)="handleNodeClick($event)"
|
||||||
(name-click)="handleNodeClick($event)"
|
(name-click)="handleNodeClick($event)"
|
||||||
|
@@ -29,7 +29,6 @@ import { AppTestingModule } from '../../testing/app-testing.module';
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { NodePaging, SearchApi } from '@alfresco/js-api';
|
import { NodePaging, SearchApi } from '@alfresco/js-api';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { getTitleElementText } from '../../testing/test-utils';
|
|
||||||
|
|
||||||
describe('RecentFilesComponent', () => {
|
describe('RecentFilesComponent', () => {
|
||||||
let fixture: ComponentFixture<RecentFilesComponent>;
|
let fixture: ComponentFixture<RecentFilesComponent>;
|
||||||
@@ -100,13 +99,4 @@ describe('RecentFilesComponent', () => {
|
|||||||
location: 'recent-files'
|
location: 'recent-files'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set title based on selectedRowItemsCount', () => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.RECENT.TITLE');
|
|
||||||
|
|
||||||
component.selectedRowItemsCount = 5;
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
@@ -1,9 +1,6 @@
|
|||||||
<aca-page-layout>
|
<aca-page-layout>
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<h1 class="aca-page-title">
|
<h1 class="aca-page-title">{{ 'APP.BROWSE.SHARED.TITLE' | translate }}</h1>
|
||||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.SHARED.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -20,7 +17,6 @@
|
|||||||
[imageResolver]="imageResolver"
|
[imageResolver]="imageResolver"
|
||||||
[sortingMode]="'client'"
|
[sortingMode]="'client'"
|
||||||
[isResizingEnabled]="true"
|
[isResizingEnabled]="true"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
(node-dblclick)="handleNodeClick($event)"
|
(node-dblclick)="handleNodeClick($event)"
|
||||||
(name-click)="handleNodeClick($event)"
|
(name-click)="handleNodeClick($event)"
|
||||||
|
@@ -26,28 +26,15 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
|
|||||||
import { CustomResourcesService } from '@alfresco/adf-content-services';
|
import { CustomResourcesService } from '@alfresco/adf-content-services';
|
||||||
import { SharedFilesComponent } from './shared-files.component';
|
import { SharedFilesComponent } from './shared-files.component';
|
||||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
import { AppTestingModule } from '../../testing/app-testing.module';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
import { BehaviorSubject, of, Subject } from 'rxjs';
|
import { BehaviorSubject, of, Subject } from 'rxjs';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { SharedLinkPaging } from '@alfresco/js-api';
|
import { SharedLinkPaging } from '@alfresco/js-api';
|
||||||
import { AppService } from '@alfresco/aca-shared';
|
import { AppService } from '@alfresco/aca-shared';
|
||||||
import { getTitleElementText } from '../../testing/test-utils';
|
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
|
||||||
|
|
||||||
describe('SharedFilesComponent', () => {
|
describe('SharedFilesComponent', () => {
|
||||||
let fixture: ComponentFixture<SharedFilesComponent>;
|
let fixture: ComponentFixture<SharedFilesComponent>;
|
||||||
let page: SharedLinkPaging;
|
let page: SharedLinkPaging;
|
||||||
let component: SharedFilesComponent;
|
|
||||||
const routerMock = {
|
|
||||||
routerState: { root: '' },
|
|
||||||
url: 'shared-files'
|
|
||||||
};
|
|
||||||
const route = {
|
|
||||||
snapshot: {
|
|
||||||
data: {
|
|
||||||
sortingPreferenceKey: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const appServiceMock = {
|
const appServiceMock = {
|
||||||
appNavNarMode$: new BehaviorSubject('collapsed'),
|
appNavNarMode$: new BehaviorSubject('collapsed'),
|
||||||
@@ -58,10 +45,11 @@ describe('SharedFilesComponent', () => {
|
|||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [AppTestingModule, SharedFilesComponent],
|
imports: [AppTestingModule, SharedFilesComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: ActivatedRoute, useValue: route },
|
|
||||||
{
|
{
|
||||||
provide: Router,
|
provide: Router,
|
||||||
useValue: routerMock
|
useValue: {
|
||||||
|
url: 'shared-files'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
provide: AppService,
|
provide: AppService,
|
||||||
@@ -80,16 +68,6 @@ describe('SharedFilesComponent', () => {
|
|||||||
const customResourcesService = TestBed.inject(CustomResourcesService);
|
const customResourcesService = TestBed.inject(CustomResourcesService);
|
||||||
spyOn(customResourcesService, 'loadSharedLinks').and.returnValue(of(page));
|
spyOn(customResourcesService, 'loadSharedLinks').and.returnValue(of(page));
|
||||||
fixture = TestBed.createComponent(SharedFilesComponent);
|
fixture = TestBed.createComponent(SharedFilesComponent);
|
||||||
component = fixture.componentInstance;
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should set title based on selectedRowItemsCount', () => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.SHARED.TITLE');
|
|
||||||
|
|
||||||
component.selectedRowItemsCount = 5;
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: needs better testing strategy
|
// TODO: needs better testing strategy
|
||||||
|
@@ -1,9 +1,6 @@
|
|||||||
<aca-page-layout>
|
<aca-page-layout>
|
||||||
<div class="aca-page-layout-header">
|
<div class="aca-page-layout-header">
|
||||||
<h1 class="aca-page-title">
|
<h1 class="aca-page-title">{{ 'APP.BROWSE.TRASHCAN.TITLE' | translate }}</h1>
|
||||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.TRASHCAN.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -19,7 +16,6 @@
|
|||||||
[navigate]="false"
|
[navigate]="false"
|
||||||
[sortingMode]="'client'"
|
[sortingMode]="'client'"
|
||||||
[imageResolver]="imageResolver"
|
[imageResolver]="imageResolver"
|
||||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
|
||||||
[sorting]="['archivedAt', 'desc']"
|
[sorting]="['archivedAt', 'desc']"
|
||||||
[isResizingEnabled]="true"
|
[isResizingEnabled]="true"
|
||||||
[blurOnResize]="false"
|
[blurOnResize]="false"
|
||||||
|
@@ -26,7 +26,6 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
|
|||||||
import { AlfrescoApiService } from '@alfresco/adf-core';
|
import { AlfrescoApiService } from '@alfresco/adf-core';
|
||||||
import { TrashcanComponent } from './trashcan.component';
|
import { TrashcanComponent } from './trashcan.component';
|
||||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
import { AppTestingModule } from '../../testing/app-testing.module';
|
||||||
import { getTitleElementText } from '../../testing/test-utils';
|
|
||||||
|
|
||||||
describe('TrashcanComponent', () => {
|
describe('TrashcanComponent', () => {
|
||||||
let fixture: ComponentFixture<TrashcanComponent>;
|
let fixture: ComponentFixture<TrashcanComponent>;
|
||||||
@@ -55,13 +54,4 @@ describe('TrashcanComponent', () => {
|
|||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
expect(fixture.nativeElement.querySelector('adf-document-list')).not.toBeNull();
|
expect(fixture.nativeElement.querySelector('adf-document-list')).not.toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set title based on selectedRowItemsCount', () => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.TRASHCAN.TITLE');
|
|
||||||
|
|
||||||
component.selectedRowItemsCount = 5;
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
@@ -1,29 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Copyright © 2005-2024 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 <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { ComponentFixture } from '@angular/core/testing';
|
|
||||||
|
|
||||||
export const getTitleElementText = (fixture: ComponentFixture<any>): string => {
|
|
||||||
return fixture.nativeElement.querySelector('.aca-page-title').innerText.trim();
|
|
||||||
};
|
|
@@ -49,44 +49,6 @@ mat-toolbar.mat-toolbar.mat-toolbar-single-row {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-checkbox-indeterminate,
|
|
||||||
.mat-checkbox-checked {
|
|
||||||
&.mat-accent {
|
|
||||||
.mat-checkbox-background {
|
|
||||||
background-color: var(--theme-blue-checkbox-color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-datatable-list {
|
|
||||||
.adf-datatable-row:is(adf-datatable-row) {
|
|
||||||
&:focus {
|
|
||||||
outline: 1px solid var(--theme-blue-checkbox-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-cell-value:focus {
|
|
||||||
outline: 1px solid var(--theme-blue-checkbox-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-datatable-cell-header:focus {
|
|
||||||
outline: 1px solid var(--theme-blue-checkbox-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-datatable-link:hover {
|
|
||||||
color: var(--theme-blue-checkbox-color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-datatable-body {
|
|
||||||
.adf-datatable-row:is(adf-datatable-row) {
|
|
||||||
&.adf-is-selected,
|
|
||||||
&.adf-is-selected:hover {
|
|
||||||
background-color: var(--theme-blue-active-table-row-color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-property-field {
|
.adf-property-field {
|
||||||
.adf-textitem-edit-icon.mat-icon {
|
.adf-textitem-edit-icon.mat-icon {
|
||||||
color: var(--theme-secondary-text);
|
color: var(--theme-secondary-text);
|
||||||
|
@@ -25,8 +25,6 @@ $grey-background: rgba(33, 33, 33, 0.12);
|
|||||||
$grey-text-background: rgba(33, 33, 33, 0.05);
|
$grey-text-background: rgba(33, 33, 33, 0.05);
|
||||||
$grey-hover-background: rgba(33, 33, 33, 0.24);
|
$grey-hover-background: rgba(33, 33, 33, 0.24);
|
||||||
$blue-save-button-background: #1f74db;
|
$blue-save-button-background: #1f74db;
|
||||||
$blue-checkbox-background: rgb(10,96,206);
|
|
||||||
$blue-active-table-row: rgb(10,96,206, 0.24);
|
|
||||||
$black-heading: #4e4c4c;
|
$black-heading: #4e4c4c;
|
||||||
$theme-dropdown-background: darken($background-color, 5%);
|
$theme-dropdown-background: darken($background-color, 5%);
|
||||||
$theme-dropdown-background-hover: darken($background-color, 10%);
|
$theme-dropdown-background-hover: darken($background-color, 10%);
|
||||||
@@ -69,8 +67,6 @@ $defaults: (
|
|||||||
--theme-grey-background-color: $grey-background,
|
--theme-grey-background-color: $grey-background,
|
||||||
--theme-grey-hover-background-color: $grey-hover-background,
|
--theme-grey-hover-background-color: $grey-hover-background,
|
||||||
--theme-blue-button-color: $blue-save-button-background,
|
--theme-blue-button-color: $blue-save-button-background,
|
||||||
--theme-blue-checkbox-color: $blue-checkbox-background,
|
|
||||||
--theme-blue-active-table-row-color: $blue-active-table-row,
|
|
||||||
--theme-heading-color: $black-heading,
|
--theme-heading-color: $black-heading,
|
||||||
--theme-dropdown-color: $theme-dropdown-background,
|
--theme-dropdown-color: $theme-dropdown-background,
|
||||||
--theme-dropdown-background-hover: $theme-dropdown-background-hover,
|
--theme-dropdown-background-hover: $theme-dropdown-background-hover,
|
||||||
|
@@ -70,7 +70,6 @@ export abstract class PageComponent implements OnInit, OnDestroy, OnChanges {
|
|||||||
filterSorting = 'name-asc';
|
filterSorting = 'name-asc';
|
||||||
createActions: Array<ContentActionRef> = [];
|
createActions: Array<ContentActionRef> = [];
|
||||||
isSmallScreen = false;
|
isSmallScreen = false;
|
||||||
selectedRowItemsCount = 0;
|
|
||||||
|
|
||||||
protected extensions = inject(AppExtensionService);
|
protected extensions = inject(AppExtensionService);
|
||||||
protected content = inject(DocumentBasePageService);
|
protected content = inject(DocumentBasePageService);
|
||||||
@@ -163,10 +162,6 @@ export abstract class PageComponent implements OnInit, OnDestroy, OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onSelectedItemsCountChanged(count: number) {
|
|
||||||
this.selectedRowItemsCount = count;
|
|
||||||
}
|
|
||||||
|
|
||||||
getParentNodeId(): string {
|
getParentNodeId(): string {
|
||||||
return this.node ? this.node.id : null;
|
return this.node ? this.node.id : null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user