mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-0000] - migration to ng19 with standalone schematics
This commit is contained in:
@@ -24,8 +24,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@NgModule({
|
||||
declarations: [DownloadZipDialogComponent],
|
||||
imports: [CommonModule, MatDialogModule, MatProgressBarModule, MatButtonModule, TranslateModule],
|
||||
imports: [CommonModule, MatDialogModule, MatProgressBarModule, MatButtonModule, TranslateModule, DownloadZipDialogComponent],
|
||||
exports: [DownloadZipDialogComponent]
|
||||
})
|
||||
export class DownloadZipDialogModule {}
|
||||
|
@@ -30,7 +30,8 @@ const fakeNode = {
|
||||
} as Node;
|
||||
|
||||
@Component({
|
||||
template: '<div [adf-node-lock]="node"></div>'
|
||||
template: '<div [adf-node-lock]="node"></div>',
|
||||
imports: [ContentTestingModule]
|
||||
})
|
||||
class TestComponent {
|
||||
node = null;
|
||||
@@ -44,8 +45,7 @@ describe('NodeLock Directive', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
declarations: [TestComponent]
|
||||
imports: [ContentTestingModule, TestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
@@ -26,7 +26,8 @@ import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
import { ContentService } from '../common/services/content.service';
|
||||
|
||||
@Component({
|
||||
template: '<div [adf-edit-folder]="folder" (success)="success($event)" title="edit-title"></div>'
|
||||
template: '<div [adf-edit-folder]="folder" (success)="success($event)" title="edit-title"></div>',
|
||||
imports: [ContentTestingModule, FolderEditDirective]
|
||||
})
|
||||
class TestComponent {
|
||||
folder = {};
|
||||
@@ -51,8 +52,7 @@ describe('FolderEditDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule, FolderEditDirective],
|
||||
declarations: [TestComponent]
|
||||
imports: [ContentTestingModule, FolderEditDirective, TestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
element = fixture.debugElement.query(By.directive(FolderEditDirective));
|
||||
|
@@ -81,7 +81,8 @@ class TestDataSource extends InfiniteScrollDatasource<TestData> {
|
||||
<div *cdkVirtualFor="let item of testDatasource" class="test-item" style="display: block; height: 100%; width: 100%;">
|
||||
{{ item.testDescription }}
|
||||
</div>
|
||||
</cdk-virtual-scroll-viewport>`
|
||||
</cdk-virtual-scroll-viewport>`,
|
||||
imports: [ContentTestingModule, ScrollingModule]
|
||||
})
|
||||
class TestComponent implements OnInit {
|
||||
testDatasource = new TestDataSource();
|
||||
@@ -99,8 +100,7 @@ describe('InfiniteScrollDatasource', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule, ScrollingModule],
|
||||
declarations: [TestComponent]
|
||||
imports: [ContentTestingModule, ScrollingModule, TestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
@@ -34,7 +34,8 @@ import { NewVersionUploaderService } from './new-version-uploader.service';
|
||||
import { Version, VersionPaging } from '@alfresco/js-api';
|
||||
|
||||
@Component({
|
||||
template: ''
|
||||
template: '',
|
||||
imports: [ContentTestingModule]
|
||||
})
|
||||
class TestDialogComponent {
|
||||
@Output()
|
||||
@@ -55,8 +56,7 @@ describe('NewVersionUploaderService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
declarations: [TestDialogComponent]
|
||||
imports: [ContentTestingModule, TestDialogComponent]
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -33,8 +33,7 @@ describe('InheritPermissionDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
declarations: [SimpleInheritedPermissionTestComponent]
|
||||
imports: [ContentTestingModule, SimpleInheritedPermissionTestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(SimpleInheritedPermissionTestComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
@@ -22,7 +22,8 @@ import { SearchFacetFiltersService } from '../services/search-facet-filters.serv
|
||||
import { SearchQueryBuilderService } from '../services/search-query-builder.service';
|
||||
|
||||
@Component({
|
||||
template: `<button adf-reset-search>Reset</button>`
|
||||
template: `<button adf-reset-search>Reset</button>`,
|
||||
imports: [ContentTestingModule]
|
||||
})
|
||||
class TestComponent {}
|
||||
|
||||
@@ -33,8 +34,7 @@ describe('Directive: ResetSearchDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
declarations: [TestComponent]
|
||||
imports: [ContentTestingModule, TestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
searchFacetFiltersService = TestBed.inject(SearchFacetFiltersService);
|
||||
|
@@ -32,7 +32,8 @@ import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||
<span id="custom-no-result">{{ customMessage }}</span>
|
||||
</adf-empty-search-result>
|
||||
</adf-search-control>
|
||||
`
|
||||
`,
|
||||
imports: [ContentTestingModule]
|
||||
})
|
||||
export class SimpleSearchTestCustomEmptyComponent {
|
||||
customMessage = '';
|
||||
@@ -59,8 +60,7 @@ describe('SearchControlComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
declarations: [SimpleSearchTestCustomEmptyComponent]
|
||||
imports: [ContentTestingModule, SimpleSearchTestCustomEmptyComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(SearchControlComponent);
|
||||
debugElement = fixture.debugElement;
|
||||
|
@@ -27,7 +27,8 @@ import { FileUploadErrorEvent } from '../../../common/events/file.event';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-upload-button-test',
|
||||
template: 'test component'
|
||||
template: 'test component',
|
||||
imports: [ContentTestingModule]
|
||||
})
|
||||
export class UploadTestComponent extends UploadBase {}
|
||||
|
||||
@@ -40,8 +41,7 @@ describe('UploadBase', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
declarations: [UploadTestComponent]
|
||||
imports: [ContentTestingModule, UploadTestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(UploadTestComponent);
|
||||
uploadService = TestBed.inject(UploadService);
|
||||
|
@@ -34,7 +34,8 @@ import { VersionCompatibilityDirective } from '@alfresco/adf-content-services';
|
||||
<div *adf-acs-version="'6.1.5'" class="visible-content-1">My visible content 1</div>
|
||||
<div *adf-acs-version="'6.1'" class="visible-content-2">My visible content 2</div>
|
||||
<div *adf-acs-version="'6'" class="visible-content-3">My visible content 3</div>
|
||||
`
|
||||
`,
|
||||
imports: [VersionCompatibilityDirective, HttpClientTestingModule]
|
||||
})
|
||||
class TestComponent {}
|
||||
|
||||
@@ -51,8 +52,7 @@ describe('VersionCompatibilityDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [VersionCompatibilityDirective, HttpClientTestingModule],
|
||||
declarations: [TestComponent],
|
||||
imports: [VersionCompatibilityDirective, HttpClientTestingModule, TestComponent],
|
||||
providers: [{ provide: RedirectAuthService, useValue: { onLogin: EMPTY, onTokenReceived: of() } }]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
|
@@ -27,7 +27,8 @@ import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
imports: [CommonModule, FeaturesDirective]
|
||||
})
|
||||
class TestWithEnabledFlagComponent {
|
||||
features = 'feature1';
|
||||
@@ -37,7 +38,8 @@ class TestWithEnabledFlagComponent {
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
imports: [CommonModule, FeaturesDirective]
|
||||
})
|
||||
class TestWithDisabledFlagComponent {
|
||||
features = ['feature1', 'feature2'];
|
||||
@@ -50,7 +52,7 @@ describe('FeaturesDirective', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CommonModule, FeaturesDirective],
|
||||
imports: [CommonModule, FeaturesDirective, TestWithEnabledFlagComponent, TestWithDisabledFlagComponent],
|
||||
providers: [
|
||||
provideMockFeatureFlags({
|
||||
feature1: true,
|
||||
@@ -58,8 +60,7 @@ describe('FeaturesDirective', () => {
|
||||
feature3: true
|
||||
}),
|
||||
FeaturesDirective
|
||||
],
|
||||
declarations: [TestWithEnabledFlagComponent, TestWithDisabledFlagComponent]
|
||||
]
|
||||
});
|
||||
enabledFixture = TestBed.createComponent(TestWithEnabledFlagComponent);
|
||||
enabledFixture.detectChanges();
|
||||
|
@@ -27,7 +27,8 @@ import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
imports: [CommonModule, NotFeaturesDirective]
|
||||
})
|
||||
class TestWithEnabledFlagComponent {
|
||||
features = ['feature1', 'feature3'];
|
||||
@@ -38,7 +39,8 @@ class TestWithEnabledFlagComponent {
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
imports: [CommonModule, NotFeaturesDirective]
|
||||
})
|
||||
class TestWithDisabledFlagComponent {
|
||||
features = 'feature2';
|
||||
@@ -51,7 +53,7 @@ describe('NotFeaturesDirective', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CommonModule, NotFeaturesDirective],
|
||||
imports: [CommonModule, NotFeaturesDirective, TestWithEnabledFlagComponent, TestWithDisabledFlagComponent],
|
||||
providers: [
|
||||
provideMockFeatureFlags({
|
||||
feature1: true,
|
||||
@@ -59,8 +61,7 @@ describe('NotFeaturesDirective', () => {
|
||||
feature3: true
|
||||
}),
|
||||
NotFeaturesDirective
|
||||
],
|
||||
declarations: [TestWithEnabledFlagComponent, TestWithDisabledFlagComponent]
|
||||
]
|
||||
});
|
||||
enabledFixture = TestBed.createComponent(TestWithEnabledFlagComponent);
|
||||
enabledFixture.detectChanges();
|
||||
|
@@ -51,8 +51,7 @@ export function oauthStorageFactory(): OAuthStorage {
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [AuthenticationConfirmationComponent],
|
||||
imports: [AuthRoutingModule, OAuthModule.forRoot()],
|
||||
imports: [AuthRoutingModule, OAuthModule.forRoot(), AuthenticationConfirmationComponent],
|
||||
providers: [
|
||||
{ provide: OAuthStorage, useFactory: oauthStorageFactory },
|
||||
{ provide: AuthenticationService },
|
||||
|
@@ -31,7 +31,8 @@ import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
||||
<button mat-button clipboard-notification="copy success" [adf-clipboard] [target]="ref">copy</button>
|
||||
|
||||
<input #ref />
|
||||
`
|
||||
`,
|
||||
imports: [NoopTranslateModule, MatSnackBarModule, ClipboardDirective]
|
||||
})
|
||||
class TestTargetClipboardComponent {}
|
||||
|
||||
@@ -43,8 +44,7 @@ describe('ClipboardDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopTranslateModule, MatSnackBarModule, ClipboardDirective],
|
||||
declarations: [TestTargetClipboardComponent]
|
||||
imports: [NoopTranslateModule, MatSnackBarModule, ClipboardDirective, TestTargetClipboardComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestTargetClipboardComponent);
|
||||
clipboardService = TestBed.inject(ClipboardService);
|
||||
@@ -73,7 +73,8 @@ describe('ClipboardDirective', () => {
|
||||
describe('CopyClipboardDirective', () => {
|
||||
@Component({
|
||||
selector: 'adf-copy-conent-test-component',
|
||||
template: `<span adf-clipboard="placeholder">{{ mockText }}</span>`
|
||||
template: `<span adf-clipboard="placeholder">{{ mockText }}</span>`,
|
||||
imports: [NoopTranslateModule, MatSnackBarModule, ClipboardDirective]
|
||||
})
|
||||
class TestCopyClipboardComponent {
|
||||
mockText = 'text to copy';
|
||||
@@ -88,8 +89,7 @@ describe('CopyClipboardDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopTranslateModule, MatSnackBarModule, ClipboardDirective],
|
||||
declarations: [TestCopyClipboardComponent]
|
||||
imports: [NoopTranslateModule, MatSnackBarModule, ClipboardDirective, TestCopyClipboardComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestCopyClipboardComponent);
|
||||
testingUtils = new UnitTestingUtils(fixture.debugElement);
|
||||
|
@@ -25,7 +25,8 @@ import { LogService } from './log.service';
|
||||
|
||||
@Component({
|
||||
template: '',
|
||||
providers: [LogService]
|
||||
providers: [LogService],
|
||||
imports: [HttpClientModule]
|
||||
})
|
||||
class ProvidesLogComponent {
|
||||
constructor(public logService: LogService) {}
|
||||
@@ -61,8 +62,7 @@ describe('LogService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule],
|
||||
declarations: [ProvidesLogComponent],
|
||||
imports: [HttpClientModule, ProvidesLogComponent],
|
||||
providers: [LogService, AppConfigService]
|
||||
});
|
||||
appConfigService = TestBed.inject(AppConfigService);
|
||||
|
@@ -25,7 +25,8 @@ import { UnitTestingUtils } from '../testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
template: ` <div id="target" [adf-context-menu]="actions" [adf-context-menu-enabled]="isEnabled"></div> `
|
||||
template: ` <div id="target" [adf-context-menu]="actions" [adf-context-menu-enabled]="isEnabled"></div> `,
|
||||
imports: [CoreTestingModule, CONTEXT_MENU_DIRECTIVES]
|
||||
})
|
||||
class TestComponent {
|
||||
actions: any[] | (() => any[]);
|
||||
@@ -118,8 +119,7 @@ testCases.forEach((testCase) => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule, CONTEXT_MENU_DIRECTIVES],
|
||||
declarations: [TestComponent]
|
||||
imports: [CoreTestingModule, CONTEXT_MENU_DIRECTIVES, TestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
fixture.componentInstance.isEnabled = false;
|
||||
|
@@ -23,8 +23,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@NgModule({
|
||||
declarations: [ConfirmDialogComponent],
|
||||
imports: [CommonModule, FormsModule, ReactiveFormsModule, TranslateModule, MatDialogModule, MatButtonModule],
|
||||
imports: [CommonModule, FormsModule, ReactiveFormsModule, TranslateModule, MatDialogModule, MatButtonModule, ConfirmDialogComponent],
|
||||
exports: [ConfirmDialogComponent]
|
||||
})
|
||||
export class ConfirmDialogModule {}
|
||||
|
@@ -25,7 +25,8 @@ import { Component, inject } from '@angular/core';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-dummy-component'
|
||||
selector: 'adf-dummy-component',
|
||||
imports: [CoreTestingModule]
|
||||
})
|
||||
class DummyComponent {
|
||||
data = inject(DIALOG_COMPONENT_DATA);
|
||||
@@ -55,8 +56,7 @@ describe('DialogComponent', () => {
|
||||
|
||||
const setupBeforeEach = (dialogOptions: DialogData = data) => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule],
|
||||
declarations: [DummyComponent],
|
||||
imports: [CoreTestingModule, DummyComponent],
|
||||
providers: [
|
||||
{ provide: MAT_DIALOG_DATA, useValue: dialogOptions },
|
||||
{ provide: MatDialogRef, useValue: dialogRef }
|
||||
|
@@ -23,8 +23,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@NgModule({
|
||||
declarations: [EditJsonDialogComponent],
|
||||
imports: [CommonModule, FormsModule, ReactiveFormsModule, TranslateModule, MatDialogModule, MatButtonModule],
|
||||
imports: [CommonModule, FormsModule, ReactiveFormsModule, TranslateModule, MatDialogModule, MatButtonModule, EditJsonDialogComponent],
|
||||
exports: [EditJsonDialogComponent]
|
||||
})
|
||||
export class EditJsonDialogModule {}
|
||||
|
@@ -29,7 +29,8 @@ import { UnitTestingUtils } from '../testing/unit-testing-utils';
|
||||
<mat-option *ngFor="let option of options; let idx = index">
|
||||
{{ option.text }}
|
||||
</mat-option>
|
||||
</mat-select>`
|
||||
</mat-select>`,
|
||||
imports: [MatSelectModule, InfiniteSelectScrollDirective]
|
||||
})
|
||||
class TestComponent {
|
||||
options = new Array(50).fill({ text: 'dummy' });
|
||||
@@ -54,8 +55,7 @@ describe('InfiniteSelectScrollDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [MatSelectModule, NoopAnimationsModule, InfiniteSelectScrollDirective],
|
||||
declarations: [TestComponent]
|
||||
imports: [MatSelectModule, NoopAnimationsModule, InfiniteSelectScrollDirective, TestComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
@@ -34,7 +34,8 @@ const IMAGE_URL = 'alfresco-logo.svg';
|
||||
[width]="'400'"
|
||||
[htmlContent]="'this is the <b>html</b> raw code'"
|
||||
class="test-component"
|
||||
></span>`
|
||||
></span>`,
|
||||
imports: [CommonModule, OverlayModule, TooltipCardDirective, TooltipCardComponent]
|
||||
})
|
||||
class TestComponent {
|
||||
@ViewChild(TooltipCardDirective, { static: true })
|
||||
@@ -52,8 +53,7 @@ describe('TooltipCardDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CommonModule, OverlayModule, NoopAnimationsModule, TooltipCardDirective, TooltipCardComponent],
|
||||
declarations: [TestComponent]
|
||||
imports: [CommonModule, OverlayModule, NoopAnimationsModule, TooltipCardDirective, TooltipCardComponent, TestComponent]
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
|
@@ -28,7 +28,8 @@ import { UnitTestingUtils } from '../../testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
template: '',
|
||||
providers: [NotificationService]
|
||||
providers: [NotificationService],
|
||||
imports: [NoopTranslateModule, MatSnackBarModule]
|
||||
})
|
||||
class ProvidesNotificationServiceComponent {
|
||||
constructor(public notificationService: NotificationService) {}
|
||||
@@ -92,8 +93,7 @@ describe('NotificationService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopTranslateModule, NoopAnimationsModule, MatSnackBarModule],
|
||||
declarations: [ProvidesNotificationServiceComponent]
|
||||
imports: [NoopTranslateModule, NoopAnimationsModule, MatSnackBarModule, ProvidesNotificationServiceComponent]
|
||||
});
|
||||
translationService = TestBed.inject(TranslationService);
|
||||
fixture = TestBed.createComponent(ProvidesNotificationServiceComponent);
|
||||
|
@@ -26,7 +26,8 @@ import { RequestPaginationModel } from '../models/request-pagination.model';
|
||||
import { UnitTestingUtils } from '../testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
template: ``
|
||||
template: ``,
|
||||
imports: [CoreTestingModule]
|
||||
})
|
||||
class TestPaginatedComponent implements PaginatedComponent {
|
||||
private _pagination: BehaviorSubject<PaginationModel>;
|
||||
@@ -58,8 +59,7 @@ describe('InfinitePaginationComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule],
|
||||
declarations: [TestPaginatedComponent]
|
||||
imports: [CoreTestingModule, TestPaginatedComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(InfinitePaginationComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
@@ -30,8 +30,7 @@ describe('SnackbarContentComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [SnackbarContentComponent],
|
||||
imports: [NoopTranslateModule, CoreTestingModule],
|
||||
imports: [NoopTranslateModule, CoreTestingModule, SnackbarContentComponent],
|
||||
providers: [
|
||||
{
|
||||
provide: MatSnackBarRef,
|
||||
|
@@ -24,8 +24,7 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, MatIconModule, MatSnackBarModule, MatButtonModule, TranslateModule],
|
||||
declarations: [SnackbarContentComponent],
|
||||
imports: [CommonModule, MatIconModule, MatSnackBarModule, MatButtonModule, TranslateModule, SnackbarContentComponent],
|
||||
exports: [SnackbarContentComponent]
|
||||
})
|
||||
export class SnackbarContentModule {}
|
||||
|
@@ -42,7 +42,8 @@ export class CustomContainerComponent {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-custom-empty-container',
|
||||
template: `<adf-buttons-action-menu />`
|
||||
template: `<adf-buttons-action-menu />`,
|
||||
imports: [ButtonsMenuComponent]
|
||||
})
|
||||
export class CustomEmptyContainerComponent {}
|
||||
|
||||
@@ -95,8 +96,7 @@ describe('ButtonsMenuComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ButtonsMenuComponent],
|
||||
declarations: [CustomEmptyContainerComponent]
|
||||
imports: [ButtonsMenuComponent, CustomEmptyContainerComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(CustomEmptyContainerComponent);
|
||||
element = fixture.nativeElement;
|
||||
|
@@ -22,7 +22,8 @@ import { DiagramTooltipComponent } from './diagram-tooltip.component';
|
||||
|
||||
@Component({
|
||||
template: ` <div id="diagram-element-id">Hover me</div>
|
||||
<diagram-tooltip [data]="data" />`
|
||||
<diagram-tooltip [data]="data" />`,
|
||||
imports: [DiagramTooltipComponent]
|
||||
})
|
||||
class TestHostComponent {
|
||||
data = {
|
||||
@@ -122,8 +123,7 @@ describe('DiagramTooltipComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [DiagramTooltipComponent],
|
||||
declarations: [TestHostComponent]
|
||||
imports: [DiagramTooltipComponent, TestHostComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(TestHostComponent);
|
||||
fixture.detectChanges();
|
||||
|
@@ -31,7 +31,8 @@ import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-cloud-overlay-test',
|
||||
template: `<div>adf-cloud-overlay-test</div>`
|
||||
template: `<div>adf-cloud-overlay-test</div>`,
|
||||
imports: [OverlayModule, PortalModule, MatProgressSpinnerModule, FormSpinnerComponent]
|
||||
})
|
||||
class SpinnerTestComponent {
|
||||
destroyRef = inject(DestroyRef);
|
||||
@@ -49,8 +50,7 @@ describe('FormCloudSpinnerService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [OverlayModule, PortalModule, MatProgressSpinnerModule, TranslateModule.forRoot(), FormSpinnerComponent],
|
||||
declarations: [SpinnerTestComponent],
|
||||
imports: [OverlayModule, PortalModule, MatProgressSpinnerModule, TranslateModule.forRoot(), FormSpinnerComponent, SpinnerTestComponent],
|
||||
providers: [
|
||||
FormCloudSpinnerService,
|
||||
{
|
||||
|
@@ -36,7 +36,8 @@ import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/te
|
||||
<data-column key="activityName" title="ADF_CLOUD_TASK_LIST.PROPERTIES.NAME" class="adf-full-width adf-name-column" [order]="2" />
|
||||
<data-column key="startedDate" title="ADF_CLOUD_TASK_LIST.PROPERTIES.CREATED" class="adf-hidden" />
|
||||
</data-columns>
|
||||
</adf-cloud-service-task-list>`
|
||||
</adf-cloud-service-task-list>`,
|
||||
imports: [ProcessServiceCloudTestingModule]
|
||||
})
|
||||
class CustomTaskListComponent {
|
||||
@ViewChild(ServiceTaskListCloudComponent)
|
||||
@@ -49,7 +50,8 @@ class CustomTaskListComponent {
|
||||
<p id="custom-id"></p>
|
||||
</adf-custom-empty-content-template>
|
||||
</adf-cloud-service-task-list>
|
||||
`
|
||||
`,
|
||||
imports: [ProcessServiceCloudTestingModule]
|
||||
})
|
||||
class EmptyTemplateComponent {}
|
||||
@Component({
|
||||
@@ -58,7 +60,8 @@ class EmptyTemplateComponent {}
|
||||
<data-column [copyContent]="true" key="id" title="ADF_CLOUD_TASK_LIST.PROPERTIES.ID" />
|
||||
<data-column key="activityName" title="ADF_CLOUD_TASK_LIST.PROPERTIES.NAME" />
|
||||
</data-columns>
|
||||
</adf-cloud-service-task-list>`
|
||||
</adf-cloud-service-task-list>`,
|
||||
imports: [ProcessServiceCloudTestingModule]
|
||||
})
|
||||
class CustomCopyContentTaskListComponent {
|
||||
@ViewChild(ServiceTaskListCloudComponent, { static: true })
|
||||
@@ -74,8 +77,7 @@ describe('ServiceTaskListCloudComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ProcessServiceCloudTestingModule],
|
||||
declarations: [EmptyTemplateComponent]
|
||||
imports: [ProcessServiceCloudTestingModule, EmptyTemplateComponent]
|
||||
});
|
||||
appConfig = TestBed.inject(AppConfigService);
|
||||
serviceTaskListCloudService = TestBed.inject(ServiceTaskListCloudService);
|
||||
@@ -351,8 +353,7 @@ describe('ServiceTaskListCloudComponent: Injecting custom columns for task list
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ProcessServiceCloudTestingModule],
|
||||
declarations: [CustomTaskListComponent, CustomCopyContentTaskListComponent]
|
||||
imports: [ProcessServiceCloudTestingModule, CustomTaskListComponent, CustomCopyContentTaskListComponent]
|
||||
});
|
||||
|
||||
serviceTaskListCloudService = TestBed.inject(ServiceTaskListCloudService);
|
||||
|
@@ -287,7 +287,8 @@ describe('TaskAttachmentList', () => {
|
||||
<div adf-empty-list-header class="adf-empty-list-header">Custom header</div>
|
||||
</adf-empty-list>
|
||||
</adf-task-attachment-list>
|
||||
`
|
||||
`,
|
||||
imports: [ProcessTestingModule]
|
||||
})
|
||||
class CustomEmptyTemplateComponent {}
|
||||
|
||||
@@ -296,8 +297,7 @@ describe('Custom CustomEmptyTemplateComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ProcessTestingModule],
|
||||
declarations: [CustomEmptyTemplateComponent],
|
||||
imports: [ProcessTestingModule, CustomEmptyTemplateComponent],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
});
|
||||
fixture = TestBed.createComponent(CustomEmptyTemplateComponent);
|
||||
|
@@ -65,7 +65,7 @@ describe('FormComponent', () => {
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [CustomWidget],
|
||||
imports: [CustomWidget],
|
||||
exports: [CustomWidget]
|
||||
})
|
||||
class CustomUploadModule {}
|
||||
|
25484
package-lock.json
generated
25484
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
90
package.json
90
package.json
@@ -29,22 +29,22 @@
|
||||
"process services-cloud"
|
||||
],
|
||||
"dependencies": {
|
||||
"@angular/animations": "18.2.13",
|
||||
"@angular/cdk": "18.2.14",
|
||||
"@angular/common": "18.2.13",
|
||||
"@angular/compiler": "18.2.13",
|
||||
"@angular/core": "18.2.13",
|
||||
"@angular/forms": "18.2.13",
|
||||
"@angular/material": "18.2.14",
|
||||
"@angular/material-date-fns-adapter": "18.2.14",
|
||||
"@angular/platform-browser": "18.2.13",
|
||||
"@angular/platform-browser-dynamic": "18.2.13",
|
||||
"@angular/router": "18.2.13",
|
||||
"@angular/animations": "19.2.9",
|
||||
"@angular/cdk": "19.2.9",
|
||||
"@angular/common": "19.2.9",
|
||||
"@angular/compiler": "19.2.9",
|
||||
"@angular/core": "19.2.9",
|
||||
"@angular/forms": "19.2.9",
|
||||
"@angular/material": "19.2.9",
|
||||
"@angular/material-date-fns-adapter": "19.2.9",
|
||||
"@angular/platform-browser": "19.2.9",
|
||||
"@angular/platform-browser-dynamic": "19.2.9",
|
||||
"@angular/router": "19.2.9",
|
||||
"@apollo/client": "3.13.1",
|
||||
"@cspell/eslint-plugin": "8.16.1",
|
||||
"@mat-datetimepicker/core": "14.0.0",
|
||||
"@mat-datetimepicker/core": "15.0.2",
|
||||
"@ngx-translate/core": "^14.0.0",
|
||||
"@nx/webpack": "^20.0.0",
|
||||
"@nx/webpack": "20.8.1",
|
||||
"angular-oauth2-oidc": "17.0.2",
|
||||
"angular-oauth2-oidc-jwks": "^17.0.2",
|
||||
"apollo-angular": "10.0.3",
|
||||
@@ -64,19 +64,19 @@
|
||||
"superagent": "^9.0.1",
|
||||
"ts-morph": "^20.0.0",
|
||||
"tslib": "2.8.1",
|
||||
"zone.js": "0.14.10"
|
||||
"zone.js": "0.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alfresco/eslint-plugin-eslint-angular": "file:lib/eslint-angular",
|
||||
"@angular-devkit/architect": "0.1802.13",
|
||||
"@angular-devkit/build-angular": "18.2.14",
|
||||
"@angular-devkit/core": "18.2.13",
|
||||
"@angular-devkit/schematics": "18.2.13",
|
||||
"@angular-eslint/eslint-plugin": "17.0.1",
|
||||
"@angular-eslint/eslint-plugin-template": "17.0.1",
|
||||
"@angular-devkit/architect": "0.1902.9",
|
||||
"@angular-devkit/build-angular": "19.2.9",
|
||||
"@angular-devkit/core": "19.2.9",
|
||||
"@angular-devkit/schematics": "19.2.9",
|
||||
"@angular-eslint/eslint-plugin": "19.4.0",
|
||||
"@angular-eslint/eslint-plugin-template": "19.4.0",
|
||||
"@angular-eslint/template-parser": "17.0.1",
|
||||
"@angular/cli": "~17.1.0",
|
||||
"@angular/compiler-cli": "18.2.13",
|
||||
"@angular/cli": "19.2.9",
|
||||
"@angular/compiler-cli": "19.2.9",
|
||||
"@chromatic-com/storybook": "1.7.0",
|
||||
"@editorjs/code": "2.9.3",
|
||||
"@editorjs/editorjs": "2.30.8",
|
||||
@@ -86,21 +86,21 @@
|
||||
"@editorjs/marker": "1.4.0",
|
||||
"@editorjs/paragraph": "^2.11.7",
|
||||
"@editorjs/underline": "1.2.1",
|
||||
"@nx/angular": "19.2.0",
|
||||
"@nx/eslint-plugin": "20.6.0",
|
||||
"@nx/js": "18.3.5",
|
||||
"@nx/node": "20.6.2",
|
||||
"@nx/storybook": "20.6.4",
|
||||
"@nx/workspace": "18.3.5",
|
||||
"@nx/angular": "20.8.1",
|
||||
"@nx/eslint-plugin": "20.8.1",
|
||||
"@nx/js": "20.8.1",
|
||||
"@nx/node": "20.8.1",
|
||||
"@nx/storybook": "20.8.1",
|
||||
"@nx/workspace": "20.8.1",
|
||||
"@paperist/types-remark": "0.1.3",
|
||||
"@playwright/test": "1.46.1",
|
||||
"@schematics/angular": "17.1.4",
|
||||
"@storybook/addon-essentials": "8.4.7",
|
||||
"@storybook/addon-interactions": "8.4.7",
|
||||
"@storybook/angular": "8.4.7",
|
||||
"@storybook/core-server": "8.4.7",
|
||||
"@storybook/manager-api": "^8.4.5",
|
||||
"@storybook/theming": "^8.2.9",
|
||||
"@storybook/addon-essentials": "8.6.14",
|
||||
"@storybook/addon-interactions": "8.6.14",
|
||||
"@storybook/angular": "8.6.14",
|
||||
"@storybook/core-server": "8.6.14",
|
||||
"@storybook/manager-api": "8.6.14",
|
||||
"@storybook/theming": "8.6.14",
|
||||
"@types/ejs": "^3.1.5",
|
||||
"@types/event-emitter": "^0.3.3",
|
||||
"@types/jasmine": "4.0.3",
|
||||
@@ -108,14 +108,14 @@
|
||||
"@types/jest": "^29.5.14",
|
||||
"@types/jsdom": "^21.1.5",
|
||||
"@types/minimatch": "5.1.2",
|
||||
"@types/node": "^18.16.9",
|
||||
"@types/node": "22.15.18",
|
||||
"@types/pdfjs-dist": "2.10.378",
|
||||
"@types/shelljs": "^0.8.15",
|
||||
"@types/shelljs": "0.8.16",
|
||||
"@types/superagent": "^4.1.22",
|
||||
"@typescript-eslint/eslint-plugin": "6.21.0",
|
||||
"@typescript-eslint/parser": "6.21.0",
|
||||
"@typescript-eslint/typescript-estree": "7.1.1",
|
||||
"@typescript-eslint/utils": "^8.8.1",
|
||||
"@typescript-eslint/utils": "8.32.1",
|
||||
"@valano/change-font-size": "^1.0.1",
|
||||
"ajv": "^8.12.0",
|
||||
"commander": "12.0.0",
|
||||
@@ -126,7 +126,7 @@
|
||||
"editorjs-text-color-plugin": "2.0.4",
|
||||
"ejs": "^3.1.10",
|
||||
"eslint": "^8.47.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"eslint-config-prettier": "10.1.5",
|
||||
"eslint-plugin-ban": "^1.6.0",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-jsdoc": "50.3.1",
|
||||
@@ -134,9 +134,9 @@
|
||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-rxjs": "^5.0.3",
|
||||
"eslint-plugin-storybook": "^0.11.1",
|
||||
"eslint-plugin-storybook": "0.12.0",
|
||||
"eslint-plugin-unicorn": "^49.0.0",
|
||||
"graphql": "^16.9.0",
|
||||
"graphql": "16.11.0",
|
||||
"husky": "^9.1.7",
|
||||
"jasmine-ajax": "4.0.0",
|
||||
"jasmine-core": "5.4.0",
|
||||
@@ -159,25 +159,25 @@
|
||||
"lint-staged": "15.2.9",
|
||||
"mocha": "10.7.3",
|
||||
"moment": "^2.29.4",
|
||||
"ng-packagr": "18.2.1",
|
||||
"ng-packagr": "19.2.2",
|
||||
"nock": "13.5.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nx": "^20.0.0",
|
||||
"nx": "20.8.1",
|
||||
"postcss": "8.4.41",
|
||||
"postcss-sass": "^0.5.0",
|
||||
"prettier": "2.8.8",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"rimraf": "6.0.1",
|
||||
"shelljs": "^0.8.5",
|
||||
"spdx-license-list": "^6.9.0",
|
||||
"spdx-license-list": "6.10.0",
|
||||
"storybook": "^8.2.9",
|
||||
"stylelint": "16.8.2",
|
||||
"stylelint-config-standard-scss": "^13.1.0",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig-paths": "^4.1.1",
|
||||
"typescript": "5.5.4",
|
||||
"typescript": "5.7.3",
|
||||
"webdriver-manager": "12.1.9",
|
||||
"webpack": "5.97.1",
|
||||
"webpack": "5.98.0",
|
||||
"webpack-cli": "^5.1.4"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
|
Reference in New Issue
Block a user