mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Ng17 migration (#10295)
* Migrate to NG17 * [ci:force] - fixed deps * [ci:force] - fixed build for testing 1 * Fixed build for all the packages * [ci:force] - fixing lint * [ci:force] - Fixed lint * AAE-26163 Fix infinite loop when authentication error event occured (#10272) * AAE-26163 Logout user after 3 login attempts failed, avoiding infinite loop when an authentication error occured, like when a user machine clock is significantly out of sync * AAE-26163 Wait to discovery document to be loaded and user not authenticated to perform a ssoLogin, logout user if login fails after 3 attempts * AAE-26163 Fix missed id_token_hint invoking logout when a login error occured due to a clock significantly out of sync * AAE-26163 Add fake observable to unit test * AAE-26163 Show oauth event logs if showDebugInformation is enabled, remove auth items if access token is not valid * AAE-26163 Improve tryLogin error message * AAE-26163 Check if token has expired to fix case when user access the application after the token is expired and with a clock significantly out of sync * AAE-26163 Test logout when clock is out of sync * AAE-26163 Create a service to check if local machine time is out of sync * AAE-26163 Update oauthErrorEvent$ and combinedOAuthErrorsStream$ to return errors * AAE-26163 Output error within combined oauth error event subscription * AAE-26163 Fix lint problems * AAE-26163 Logout user when token refresh error happens for the second time, if the token is not refreshed properly after first refresh error * AAE-26163 Logout user once an oauth error event occur due to clock out of sync * AAE-26163 Fix retry login error message if the OAuthErrorEvent doesn t return reason * AAE-26163 Fix the issue where the logout API call is canceled by the authorize call when login fails due to clock synchronization problems, causing an infinite loop. * remove console.log * AAE-26163 Fix retry login error message if the OAuthErrorEvent reason is an empty object * Cherry picked commit from oidc and run fix lint * [MIGRATION] - fixed build and lint * [MIGRATION] - Added injectionContext to avoid error NG0203 for unit tests * [MIGRATION] - Moving mocha to jest * [MIGRATION] - Fixing failing migrated tests * [MIGRATION] - Migrating to Jest - working but some tests fails * Trying to fix js-api unit tests * Removing testing lib to sync with develop * Fixed two excluded unit tests * Removed unused project parts * Removed unused project parts * Reduced tserrors on building storybook * Fixed sonarqube errors * Removing temporarily eslint rule from publishing * [MIGRATION] - Fixed lint * [MIGRATION] - Fixed type * [MIGRATION] - Rebased * [MIGRATION] - Readded removed action * [MIGRATION] - Checking deps * [MIGRATION] - updated lock * [ACS-9052] manage versions close button is too low (#10466) * [ci:force] - Fixed lint * [ACS-9052] Fixed close button in version manager position * [ACS-9052] Reverted unwanted changes --------- Co-authored-by: VitoAlbano <vito.albano.123@gmail.com> * [MIGRATION] - fixed storybook builds * [MIGRATION] - Checking if now eslint is releasable * [MIGRATION] - Changing the building executor for eslint-rules * Readded rule for peer deps * Fixed wrong rule * [ACS-9075] Fixed incorrect buttons labels color (#10489) * Update package.json * Fix ACA pipeline * [ACS-9084] Fixed incorrect color for notification bell icon (#10513) * Change dialog label padding * [AAE-26767] - Fixed lint * [AAE-26767] - Fixed lint * updated dependencies * AAE-30733 Fix incorrect alignment of icons in permission list header * [MIGRATION] - sync package-lock * [MIGRATION] - Fixed package on core lib * [MIGRATION] - Removed unused lock * Fixed licence * [MIGRATION] - sync lock file * [MIGRATION] - fixed lint issues * [ACS-9271][ACA] Login page input labels are cut if the input is not empty (#10637) * AAE-31453 Override card-view-textitem readonly color --------- Co-authored-by: Amedeo Lepore <amedeo.lepore@hyland.com> Co-authored-by: Ehsan Rezaei <ehsan.rezaei@hyland.com> Co-authored-by: AleksanderSklorz <115619721+AleksanderSklorz@users.noreply.github.com> Co-authored-by: DominikIwanek <dominik.iwanek@hyland.com> Co-authored-by: swapnil-verma-gl <92505353+swapnil-verma-gl@users.noreply.github.com> Co-authored-by: Wojciech Duda <69160975+wojd0@users.noreply.github.com> Co-authored-by: dominikiwanekhyland <141320833+dominikiwanekhyland@users.noreply.github.com>
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
"extends": "../../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"emitDecoratorMetadata": true
|
||||
|
||||
},
|
||||
|
||||
"exclude": ["../**/*.spec.ts" ],
|
||||
"include": ["../src/**/*", "*.js", "../../core/feature-flags"]
|
||||
"exclude": ["../**/*.spec.ts", "../**/*.mock.ts", "../**/test.ts", "../**/*.module.ts" ],
|
||||
"include": ["../src/**/*", "*.js"]
|
||||
}
|
||||
|
2143
lib/process-services-cloud/package-lock.json
generated
2143
lib/process-services-cloud/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@
|
||||
"@apollo/client": ">=3.7.2",
|
||||
"@ngx-translate/core": ">=14.0.0",
|
||||
"apollo-angular": ">=4.0.1",
|
||||
"subscriptions-transport-ws": "^0.11.0"
|
||||
"subscriptions-transport-ws": ">=0.11.0"
|
||||
},
|
||||
"keywords": [
|
||||
"process-services-cloud",
|
||||
|
@@ -33,7 +33,7 @@
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"executor": "@nx/eslint:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["lib/process-services-cloud/**/*.ts", "lib/process-services-cloud/**/*.html"]
|
||||
}
|
||||
@@ -45,10 +45,7 @@
|
||||
"browserTarget": "process-services-cloud:storybook",
|
||||
"configDir": "lib/process-services-cloud/.storybook",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
@@ -66,10 +63,7 @@
|
||||
"configDir": "lib/process-services-cloud/.storybook",
|
||||
"outputDir": "dist/storybook/process-services-cloud",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
|
@@ -23,8 +23,7 @@
|
||||
<ng-template #noApps>
|
||||
<div class="adf-app-list-empty">
|
||||
<ng-content select="adf-custom-empty-content-template" *ngIf="hasEmptyCustomContentTemplate; else defaultEmptyTemplate"
|
||||
class="adf-custom-empty-template">
|
||||
</ng-content>
|
||||
class="adf-custom-empty-template" />
|
||||
|
||||
<ng-template #defaultEmptyTemplate>
|
||||
<adf-empty-content icon="apps" [title]="'ADF_CLOUD_TASK_LIST.APPS.NO_APPS.TITLE' | translate"
|
||||
|
@@ -20,6 +20,6 @@ import { Component } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'adf-cloud-form-custom-outcomes',
|
||||
standalone: true,
|
||||
template: '<ng-content></ng-content>'
|
||||
template: '<ng-content />'
|
||||
})
|
||||
export class FormCustomOutcomesComponent {}
|
||||
|
@@ -1,6 +1,5 @@
|
||||
<div *ngIf="!hasForm()">
|
||||
<ng-content select="[empty-form]">
|
||||
</ng-content>
|
||||
<ng-content select="[empty-form]" />
|
||||
</div>
|
||||
|
||||
<div
|
||||
@@ -75,7 +74,7 @@
|
||||
<adf-form-renderer [formDefinition]="form" [readOnly]="readOnly" />
|
||||
</mat-card-content>
|
||||
<mat-card-actions *ngIf="form.hasOutcomes()" class="adf-form-mat-card-actions" align="end">
|
||||
<ng-content select="adf-cloud-form-custom-outcomes"></ng-content>
|
||||
<ng-content select="adf-cloud-form-custom-outcomes" />
|
||||
<ng-container *ngFor="let outcome of form.outcomes">
|
||||
<button
|
||||
*ngIf="outcome.isVisible"
|
||||
|
@@ -276,7 +276,7 @@ export class AttachFileCloudWidgetComponent extends UploadCloudWidgetComponent i
|
||||
}
|
||||
|
||||
isRetrieveMetadataOptionEnabled(): boolean {
|
||||
return this.field?.params?.menuOptions && this.field.params.menuOptions[RETRIEVE_METADATA_OPTION];
|
||||
return this.field?.params?.menuOptions?.[RETRIEVE_METADATA_OPTION];
|
||||
}
|
||||
|
||||
isValidAlias(alias: string): boolean {
|
||||
|
@@ -82,7 +82,7 @@ export class PropertiesViewerWrapperComponent implements OnInit, OnChanges {
|
||||
constructor(private nodesApiService: NodesApiService) {}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (changes?.['nodeId'] && changes['nodeId'].currentValue && !changes['nodeId'].isFirstChange()) {
|
||||
if (changes?.['nodeId']?.currentValue && !changes['nodeId'].isFirstChange()) {
|
||||
this.getNode(changes['nodeId'].currentValue);
|
||||
}
|
||||
}
|
||||
|
@@ -28,6 +28,6 @@ export class TaskVariableCloud {
|
||||
}
|
||||
|
||||
hasValue(obj: TaskVariableCloud): boolean {
|
||||
return typeof obj.value !== undefined && obj.value !== null;
|
||||
return obj.value !== undefined && obj.value !== null;
|
||||
}
|
||||
}
|
||||
|
@@ -35,9 +35,7 @@ export class FormDefinitionSelectorCloudService extends BaseCloudService impleme
|
||||
getForms(appName: string): Observable<FormRepresentation[]> {
|
||||
const url = `${this.getBasePath(appName)}/form/v1/forms`;
|
||||
|
||||
return this.get(url).pipe(
|
||||
map((data: any) => data.map((formData: any) => formData.formRepresentation))
|
||||
);
|
||||
return this.get(url).pipe(map((data: any) => data.map((formData: any) => formData.formRepresentation)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<form>
|
||||
<mat-form-field class="adf-cloud-group" [class.adf-invalid]="hasError() && isDirty()">
|
||||
<ng-content select="[label]"></ng-content>
|
||||
<ng-content select="[label]" />
|
||||
<mat-chip-grid #groupChipList data-automation-id="adf-cloud-group-chip-list">
|
||||
<mat-chip-row
|
||||
*ngFor="let group of selectedGroups"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
class="adf-people-cloud"
|
||||
[class.adf-invalid]="hasError() && isDirty()"
|
||||
>
|
||||
<ng-content *ngIf="!title" select="[label]"></ng-content>
|
||||
<ng-content *ngIf="!title" select="[label]" />
|
||||
<mat-label *ngIf="title">{{ title | translate }}</mat-label>
|
||||
<mat-chip-grid #userMultipleChipList data-automation-id="adf-cloud-people-chip-list">
|
||||
<mat-chip-row
|
||||
|
@@ -31,7 +31,7 @@
|
||||
class="adf-cloud-process-list-loading-margin"
|
||||
[color]="'primary'"
|
||||
[mode]="'indeterminate'" />
|
||||
<ng-content select="adf-custom-loading-content-template"></ng-content>
|
||||
<ng-content select="adf-custom-loading-content-template" />
|
||||
</ng-template>
|
||||
</adf-loading-content-template>
|
||||
<adf-no-content-template>
|
||||
@@ -40,7 +40,7 @@
|
||||
icon="assessment"
|
||||
[title]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.TITLE' | translate"
|
||||
[subtitle]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.SUBTITLE'| translate" />
|
||||
<ng-content select="adf-custom-empty-content-template"></ng-content>
|
||||
<ng-content select="adf-custom-empty-content-template" />
|
||||
</ng-template>
|
||||
</adf-no-content-template>
|
||||
|
||||
|
@@ -88,8 +88,7 @@
|
||||
(formLoaded)="onFormLoaded($event)"
|
||||
(executeOutcome)="onCustomOutcomeClicked($event.outcome.name)">
|
||||
<adf-cloud-form-custom-outcomes>
|
||||
<ng-template [ngTemplateOutlet]="taskFormCloudButtons">
|
||||
</ng-template>
|
||||
<ng-template [ngTemplateOutlet]="taskFormCloudButtons" />
|
||||
</adf-cloud-form-custom-outcomes>
|
||||
</adf-cloud-form>
|
||||
</ng-container>
|
||||
|
@@ -22,8 +22,7 @@ import { Observable, of } from 'rxjs';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class LocalPreferenceCloudService implements PreferenceCloudServiceInterface {
|
||||
|
||||
constructor(private storage: StorageService) { }
|
||||
constructor(private storage: StorageService) {}
|
||||
|
||||
/**
|
||||
* Gets local preferences
|
||||
@@ -36,13 +35,11 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
if (key || key === '') {
|
||||
return of(this.prepareLocalPreferenceResponse(key));
|
||||
}
|
||||
return of(
|
||||
{
|
||||
list: {
|
||||
entries: []
|
||||
}
|
||||
return of({
|
||||
list: {
|
||||
entries: []
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -63,8 +63,7 @@
|
||||
[subtitle]="'ADF_CLOUD_TASK_FORM.EMPTY_FORM.SUBTITLE'" />
|
||||
</mat-card-content>
|
||||
<mat-card-actions class="adf-task-form-actions" align="end">
|
||||
<ng-template [ngTemplateOutlet]="taskFormCloudButtons">
|
||||
</ng-template>
|
||||
<ng-template [ngTemplateOutlet]="taskFormCloudButtons" />
|
||||
<button
|
||||
*ngIf="canCompleteTask()"
|
||||
mat-button
|
||||
|
@@ -165,29 +165,29 @@ export abstract class BaseTaskListCloudComponent<T = unknown>
|
||||
|
||||
/** Emitted when rows are selected/unselected */
|
||||
@Output()
|
||||
rowsSelected: EventEmitter<any[]> = new EventEmitter<any[]>();
|
||||
rowsSelected: EventEmitter<unknown[]> = new EventEmitter<unknown[]>();
|
||||
|
||||
/** Emitted when the task list is loaded */
|
||||
@Output()
|
||||
success: EventEmitter<any> = new EventEmitter<any>();
|
||||
success: EventEmitter<unknown> = new EventEmitter<unknown>();
|
||||
|
||||
/** Emitted when an error occurs. */
|
||||
@Output()
|
||||
error: EventEmitter<any> = new EventEmitter<any>();
|
||||
error: EventEmitter<unknown> = new EventEmitter<unknown>();
|
||||
|
||||
pagination: BehaviorSubject<PaginationModel>;
|
||||
|
||||
requestNode: TaskQueryCloudRequestModel;
|
||||
rows: any[] = [];
|
||||
rows = [];
|
||||
size: number;
|
||||
skipCount: number = 0;
|
||||
currentInstanceId: any;
|
||||
selectedInstances: any[];
|
||||
formattedSorting: any[];
|
||||
currentInstanceId: string;
|
||||
selectedInstances: string[];
|
||||
formattedSorting: string[];
|
||||
dataAdapter: ObjectDataTableAdapter | undefined;
|
||||
|
||||
protected defaultSorting = { key: 'startDate', direction: 'desc' };
|
||||
boundReplacePriorityValues: (row: DataRow, col: DataColumn) => any;
|
||||
boundReplacePriorityValues: (row: DataRow, col: DataColumn) => unknown;
|
||||
|
||||
protected abstract isLoading$: Observable<boolean>;
|
||||
protected isLoadingPreferences$ = new BehaviorSubject<boolean>(true);
|
||||
|
@@ -42,7 +42,7 @@
|
||||
icon="assignment"
|
||||
[title]="'ADF_CLOUD_TASK_LIST.LIST.MESSAGES.TITLE' | translate"
|
||||
[subtitle]="'ADF_CLOUD_TASK_LIST.LIST.MESSAGES.SUBTITLE' | translate" />
|
||||
<ng-content select="adf-custom-empty-content-template"></ng-content>
|
||||
<ng-content select="adf-custom-empty-content-template" />
|
||||
</ng-template>
|
||||
</adf-no-content-template>
|
||||
|
||||
|
@@ -42,7 +42,7 @@
|
||||
icon="assignment"
|
||||
[title]="'ADF_CLOUD_TASK_LIST.LIST.MESSAGES.TITLE' | translate"
|
||||
[subtitle]="'ADF_CLOUD_TASK_LIST.LIST.MESSAGES.SUBTITLE' | translate" />
|
||||
<ng-content select="adf-custom-empty-content-template"></ng-content>
|
||||
<ng-content select="adf-custom-empty-content-template" />
|
||||
</ng-template>
|
||||
</adf-no-content-template>
|
||||
|
||||
|
@@ -17,5 +17,6 @@
|
||||
},
|
||||
"target": "ES2022",
|
||||
"useDefineForClassFields": false
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*.ts", "index.ts"]
|
||||
}
|
||||
|
@@ -6,5 +6,5 @@
|
||||
"useDefineForClassFields": false
|
||||
},
|
||||
"files": ["src/test.ts"],
|
||||
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
|
||||
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts", "index.ts"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user