@alfresco/adf-process-services-cloud 9.2.0-35333750885 → 9.2.0-35569866168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,11 +2,11 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, Injectable, InjectionToken, EventEmitter, DestroyRef, Output, Input, ContentChild, Directive, ViewEncapsulation, Component, Injector, NgModule, effect, ViewChild, ChangeDetectorRef, HostListener, ElementRef, Renderer2, signal, ViewContainerRef, ChangeDetectionStrategy, input, output, SecurityContext } from '@angular/core';
|
|
3
3
|
import * as i3 from '@alfresco/adf-core';
|
|
4
4
|
import { AppConfigService, JwtHelperService, OAuth2Service, TranslationService, DataTableSchema, UserPreferencesService, UserPreferenceValues, CustomEmptyContentTemplateDirective, ObjectDataTableAdapter, ColumnsSelectorComponent, MainMenuDataTableTemplateDirective, EmptyContentComponent, NoContentTemplateDirective, LoadingContentTemplateDirective, DataTableComponent, AdfDateFnsAdapter, MOMENT_DATE_FORMATS, AuthenticationService, StorageService, IconModule, DateFnsUtils, ADF_DATE_FORMATS, FullNamePipe, InitialUsernamePipe, FormService, FormModel, FormFieldTypes, ROW_ID_PREFIX, FormBaseComponent, ADF_DISPLAY_TEXT_SETTINGS, WidgetVisibilityService, FormExpressionService, UploadWidgetContentLinkModel, FormEvent, FormOutcomeModel, ConfirmDialogComponent, FormRulesEvent, FormOutcomeEvent, FormRendererComponent, ToolbarDividerComponent, ToolbarComponent, FormatSpacePipe, NotificationService, DownloadService, WidgetComponent, ThumbnailService, ErrorWidgetComponent, LocalizedDatePipe, UploadDirective, ContentLinkModel, ErrorMessageModel, DEFAULT_DATE_FORMAT, FormFieldValueFormatterService, ADF_TYPED_VALUE_FORMATTING_ENABLED, FormFieldEvent, SelectFilterInputComponent, FormRenderingService, DynamicComponentMapper, CardViewUpdateService, ClipboardService, CardViewTextItemModel, CardViewSelectItemModel, CardViewDatetimeItemModel, CardViewDateItemModel, CardViewArrayItemModel, CardViewComponent, CustomLoadingContentTemplateDirective, isOutcomeButtonVisible, InplaceFormInputComponent, BaseViewerWidgetComponent, BaseDisplayTextWidgetComponent, ObjectDataColumn, ObjectDataRow, FormBaseModule, provideTranslations } from '@alfresco/adf-core';
|
|
5
|
-
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
6
5
|
import { from, EMPTY, isObservable, of, Subject, throwError, BehaviorSubject, combineLatest, defer, merge, asapScheduler, firstValueFrom, forkJoin, catchError as catchError$1 } from 'rxjs';
|
|
7
|
-
import { map, take, switchMap, catchError,
|
|
6
|
+
import { map, take, switchMap, catchError, tap, filter, finalize, debounceTime, shareReplay, mergeMap, distinctUntilChanged, expand, reduce, mapTo, concatMap } from 'rxjs/operators';
|
|
8
7
|
import { AlfrescoApiService, NodeAction, ContentNodeSelectorComponent, NodesApiService, ContentService, ContentNodeSelectorPanelService, NewVersionUploaderService, NewVersionUploaderDataAction, ContentMetadataComponent, AlfrescoViewerComponent } from '@alfresco/adf-content-services';
|
|
9
8
|
import { AdfHttpClient } from '@alfresco/adf-core/api';
|
|
9
|
+
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
10
10
|
import * as i1 from '@angular/common';
|
|
11
11
|
import { CommonModule, AsyncPipe, UpperCasePipe, NgIf, NgForOf } from '@angular/common';
|
|
12
12
|
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
@@ -992,7 +992,6 @@ class BaseTaskListCloudComponent extends DataTableSchema {
|
|
|
992
992
|
this.appConfigService = inject(AppConfigService);
|
|
993
993
|
this.taskCloudService = inject(TaskCloudService);
|
|
994
994
|
this.userPreferences = inject(UserPreferencesService);
|
|
995
|
-
this.appNameSubject$ = new Subject();
|
|
996
995
|
this.cloudPreferenceService = cloudPreferenceService;
|
|
997
996
|
this.size = this.userPreferences.paginationSize;
|
|
998
997
|
this.pagination = new BehaviorSubject({
|
|
@@ -1000,9 +999,6 @@ class BaseTaskListCloudComponent extends DataTableSchema {
|
|
|
1000
999
|
skipCount: 0,
|
|
1001
1000
|
totalItems: 0
|
|
1002
1001
|
});
|
|
1003
|
-
this.appNameSubject$.pipe(takeUntilDestroyed(this.destroyRef), distinctUntilChanged()).subscribe((appName) => {
|
|
1004
|
-
this.retrieveTasksPreferences(appName);
|
|
1005
|
-
});
|
|
1006
1002
|
this.boundReplacePriorityValues = this.replacePriorityValues.bind(this);
|
|
1007
1003
|
}
|
|
1008
1004
|
ngOnInit() {
|
|
@@ -1016,14 +1012,14 @@ class BaseTaskListCloudComponent extends DataTableSchema {
|
|
|
1016
1012
|
this.formatSorting(changes['sorting'].currentValue);
|
|
1017
1013
|
}
|
|
1018
1014
|
if (changes['appName']) {
|
|
1019
|
-
this.
|
|
1015
|
+
this.retrieveTasksPreferences();
|
|
1020
1016
|
}
|
|
1021
1017
|
this.reload();
|
|
1022
1018
|
}
|
|
1023
|
-
retrieveTasksPreferences(
|
|
1019
|
+
retrieveTasksPreferences() {
|
|
1024
1020
|
this.isLoadingPreferences$.next(true);
|
|
1025
1021
|
this.cloudPreferenceService
|
|
1026
|
-
.getPreferences(appName)
|
|
1022
|
+
.getPreferences(this.appName)
|
|
1027
1023
|
.pipe(take(1), map((preferences) => {
|
|
1028
1024
|
const preferencesList = preferences?.list?.entries ?? [];
|
|
1029
1025
|
const columnsOrder = preferencesList.find((preference) => preference.entry.key === TasksListCloudPreferences.columnOrder);
|
|
@@ -1054,7 +1050,7 @@ class BaseTaskListCloudComponent extends DataTableSchema {
|
|
|
1054
1050
|
});
|
|
1055
1051
|
}
|
|
1056
1052
|
ngAfterContentInit() {
|
|
1057
|
-
this.
|
|
1053
|
+
this.retrieveTasksPreferences();
|
|
1058
1054
|
}
|
|
1059
1055
|
isListEmpty() {
|
|
1060
1056
|
return !this.rows || this.rows.length === 0;
|