@alfresco/adf-process-services-cloud 9.2.0-31162511335 → 9.2.0-31165460121
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.
|
@@ -3,7 +3,7 @@ import { inject, Injectable, InjectionToken, EventEmitter, DestroyRef, Output, I
|
|
|
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, StorageService, AuthenticationService, IconModule, DateFnsUtils, ADF_DATE_FORMATS, FullNamePipe, InitialUsernamePipe, FormService, FormModel, FormBaseComponent, WidgetVisibilityService, 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, FormFieldTypes, 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
5
|
import { from, EMPTY, isObservable, of, Subject, throwError, BehaviorSubject, combineLatest, firstValueFrom, forkJoin, catchError as catchError$1 } from 'rxjs';
|
|
6
|
-
import { map, take, switchMap, catchError, tap, filter, debounceTime, finalize, mergeMap, distinctUntilChanged, expand, reduce, mapTo, concatMap } from 'rxjs/operators';
|
|
6
|
+
import { map, take, switchMap, catchError, tap, filter, shareReplay, debounceTime, finalize, mergeMap, distinctUntilChanged, expand, reduce, mapTo, concatMap } from 'rxjs/operators';
|
|
7
7
|
import { AlfrescoApiService, NodeAction, ContentNodeSelectorComponent, NodesApiService, ContentService, ContentNodeSelectorPanelService, NewVersionUploaderService, NewVersionUploaderDataAction, ContentMetadataComponent, AlfrescoViewerComponent } from '@alfresco/adf-content-services';
|
|
8
8
|
import { AdfHttpClient } from '@alfresco/adf-core/api';
|
|
9
9
|
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
@@ -3462,7 +3462,9 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
3462
3462
|
ngOnInit() {
|
|
3463
3463
|
this.enableNotifications = this.appConfigService.get('notifications', true);
|
|
3464
3464
|
this.notificationDebounceTime = this.appConfigService.get('notificationDebounceTime', 3000);
|
|
3465
|
-
|
|
3465
|
+
if (!this.filtersLoadedFor) {
|
|
3466
|
+
this.getFilters(this.appName);
|
|
3467
|
+
}
|
|
3466
3468
|
this.initFilterCounterNotifications();
|
|
3467
3469
|
this.getFilterKeysAfterExternalRefreshing();
|
|
3468
3470
|
}
|
|
@@ -3482,8 +3484,10 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
3482
3484
|
* @param appName application name
|
|
3483
3485
|
*/
|
|
3484
3486
|
getFilters(appName) {
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3487
|
+
this.filtersLoadedFor = appName;
|
|
3488
|
+
const filters$ = this.taskFilterCloudService.getTaskListFilters(appName).pipe(shareReplay({ bufferSize: 1, refCount: true }));
|
|
3489
|
+
this.filters$ = filters$.pipe(catchError(() => EMPTY));
|
|
3490
|
+
filters$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
3487
3491
|
next: (res) => {
|
|
3488
3492
|
this.resetFilter();
|
|
3489
3493
|
this.filters = res || [];
|
|
@@ -6228,7 +6232,9 @@ class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
6228
6232
|
this.translationService = inject(TranslationService);
|
|
6229
6233
|
}
|
|
6230
6234
|
ngOnInit() {
|
|
6231
|
-
|
|
6235
|
+
if (!this.filtersLoadedFor) {
|
|
6236
|
+
this.getFilters(this.appName);
|
|
6237
|
+
}
|
|
6232
6238
|
}
|
|
6233
6239
|
ngOnChanges(changes) {
|
|
6234
6240
|
const appName = changes['appName'];
|
|
@@ -6246,8 +6252,10 @@ class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
6246
6252
|
* @param appName application name
|
|
6247
6253
|
*/
|
|
6248
6254
|
getFilters(appName) {
|
|
6249
|
-
this.
|
|
6250
|
-
this.
|
|
6255
|
+
this.filtersLoadedFor = appName;
|
|
6256
|
+
const filters$ = this.serviceTaskFilterCloudService.getTaskListFilters(appName).pipe(shareReplay({ bufferSize: 1, refCount: true }));
|
|
6257
|
+
this.filters$ = filters$.pipe(catchError(() => EMPTY));
|
|
6258
|
+
filters$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((res) => {
|
|
6251
6259
|
this.resetFilter();
|
|
6252
6260
|
this.filters = res || [];
|
|
6253
6261
|
this.selectFilterAndEmit(this.filterParam);
|
|
@@ -11408,7 +11416,7 @@ class ProcessFiltersCloudComponent {
|
|
|
11408
11416
|
ngOnInit() {
|
|
11409
11417
|
this.enableNotifications = this.appConfigService.get('notifications', true);
|
|
11410
11418
|
this.notificationDebounceTime = this.appConfigService.get('notificationDebounceTime', 3000);
|
|
11411
|
-
if (this.
|
|
11419
|
+
if (!this.filtersLoadedFor) {
|
|
11412
11420
|
this.getFilters(this.appName);
|
|
11413
11421
|
}
|
|
11414
11422
|
this.initProcessNotification();
|
|
@@ -11430,8 +11438,10 @@ class ProcessFiltersCloudComponent {
|
|
|
11430
11438
|
* @param appName application name
|
|
11431
11439
|
*/
|
|
11432
11440
|
getFilters(appName) {
|
|
11433
|
-
this.
|
|
11434
|
-
this.
|
|
11441
|
+
this.filtersLoadedFor = appName;
|
|
11442
|
+
const filters$ = this.processFilterCloudService.getProcessFilters(appName).pipe(shareReplay({ bufferSize: 1, refCount: true }));
|
|
11443
|
+
this.filters$ = filters$.pipe(catchError(() => EMPTY));
|
|
11444
|
+
filters$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
11435
11445
|
next: (res) => {
|
|
11436
11446
|
this.resetFilter();
|
|
11437
11447
|
this.filters = res || [];
|