@alfresco/adf-process-services-cloud 9.2.0-38362903178 → 9.2.0-38422715132
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.
|
@@ -3960,7 +3960,6 @@ const FilterCounterEntityType = {
|
|
|
3960
3960
|
* See the License for the specific language governing permissions and
|
|
3961
3961
|
* limitations under the License.
|
|
3962
3962
|
*/
|
|
3963
|
-
const BATCHED_COUNTERS_UNAVAILABLE_STATUSES = [404, 501];
|
|
3964
3963
|
const ENGINE_EVENTS_SUBSCRIPTION_QUERIES = {
|
|
3965
3964
|
[FilterCounterEntityType.TASK]: `
|
|
3966
3965
|
subscription {
|
|
@@ -4006,9 +4005,7 @@ class FilterCountersCloudService extends BaseCloudService {
|
|
|
4006
4005
|
this.eventRecountPerApp = new Map();
|
|
4007
4006
|
this.activeEntityTypesPerApp = new Map();
|
|
4008
4007
|
this.subscribersPerEntityType = new Map();
|
|
4009
|
-
this.batchedCountersPerEntityType = new Map();
|
|
4010
4008
|
this.eventSubscriptionsPerEntityType = new Map();
|
|
4011
|
-
this.appsWithoutBatchedCounters = new Set();
|
|
4012
4009
|
this.taskFiltersPerApp = new Map();
|
|
4013
4010
|
this.processFiltersPerApp = new Map();
|
|
4014
4011
|
this.countersPerApp = new Map();
|
|
@@ -4022,14 +4019,14 @@ class FilterCountersCloudService extends BaseCloudService {
|
|
|
4022
4019
|
getProcessFilters(appName) {
|
|
4023
4020
|
return this.shareFilters(this.processFiltersPerApp, appName, () => this.injector.get(ProcessFilterCloudService).getProcessFilters(appName));
|
|
4024
4021
|
}
|
|
4025
|
-
getFilterCounters(appName, entityType
|
|
4022
|
+
getFilterCounters(appName, entityType) {
|
|
4026
4023
|
if (!appName) {
|
|
4027
4024
|
return EMPTY;
|
|
4028
4025
|
}
|
|
4029
4026
|
return defer(() => {
|
|
4030
|
-
this.activateEntityType(appName, entityType
|
|
4027
|
+
this.activateEntityType(appName, entityType);
|
|
4031
4028
|
return this.getCounters(appName);
|
|
4032
|
-
}).pipe(map((
|
|
4029
|
+
}).pipe(map((counters) => ({ counters: counters[entityType] ?? {} })), finalize(() => this.deactivateEntityType(appName, entityType)));
|
|
4033
4030
|
}
|
|
4034
4031
|
refreshFilterCounters(appName) {
|
|
4035
4032
|
this.recount(appName);
|
|
@@ -4058,14 +4055,13 @@ class FilterCountersCloudService extends BaseCloudService {
|
|
|
4058
4055
|
get notificationsEnabled() {
|
|
4059
4056
|
return this.appConfigService.get('notifications', true);
|
|
4060
4057
|
}
|
|
4061
|
-
activateEntityType(appName, entityType
|
|
4058
|
+
activateEntityType(appName, entityType) {
|
|
4062
4059
|
const key = this.entityTypeKey(appName, entityType);
|
|
4063
4060
|
const subscribers = (this.subscribersPerEntityType.get(key) ?? 0) + 1;
|
|
4064
4061
|
this.subscribersPerEntityType.set(key, subscribers);
|
|
4065
4062
|
if (subscribers > 1) {
|
|
4066
4063
|
return;
|
|
4067
4064
|
}
|
|
4068
|
-
this.batchedCountersPerEntityType.set(key, batchedCounters);
|
|
4069
4065
|
const activeEntityTypes = this.activeEntityTypes(appName);
|
|
4070
4066
|
const joinsResolvedCounters = activeEntityTypes.size > 0;
|
|
4071
4067
|
activeEntityTypes.add(entityType);
|
|
@@ -4084,7 +4080,6 @@ class FilterCountersCloudService extends BaseCloudService {
|
|
|
4084
4080
|
return;
|
|
4085
4081
|
}
|
|
4086
4082
|
this.subscribersPerEntityType.delete(key);
|
|
4087
|
-
this.batchedCountersPerEntityType.delete(key);
|
|
4088
4083
|
this.activeEntityTypes(appName).delete(entityType);
|
|
4089
4084
|
this.eventSubscriptionsPerEntityType.get(key)?.unsubscribe();
|
|
4090
4085
|
this.eventSubscriptionsPerEntityType.delete(key);
|
|
@@ -4131,20 +4126,10 @@ class FilterCountersCloudService extends BaseCloudService {
|
|
|
4131
4126
|
return counters$;
|
|
4132
4127
|
}
|
|
4133
4128
|
resolveCounters(appName) {
|
|
4134
|
-
if (
|
|
4135
|
-
return of({
|
|
4129
|
+
if (this.activeEntityTypes(appName).size === 0) {
|
|
4130
|
+
return of({});
|
|
4136
4131
|
}
|
|
4137
|
-
return this.getFiltersForCounters(appName).pipe(take(1), switchMap((filters) => this.fetchFilterCounters(appName, this.buildRequest(filters))),
|
|
4138
|
-
if (BATCHED_COUNTERS_UNAVAILABLE_STATUSES.includes(error?.status)) {
|
|
4139
|
-
this.appsWithoutBatchedCounters.add(appName);
|
|
4140
|
-
}
|
|
4141
|
-
return of({ counters: {}, batched: false });
|
|
4142
|
-
}));
|
|
4143
|
-
}
|
|
4144
|
-
batchedCountersEnabled(appName) {
|
|
4145
|
-
const activeEntityTypes = [...this.activeEntityTypes(appName)];
|
|
4146
|
-
return (activeEntityTypes.length > 0 &&
|
|
4147
|
-
activeEntityTypes.every((entityType) => this.batchedCountersPerEntityType.get(this.entityTypeKey(appName, entityType))));
|
|
4132
|
+
return this.getFiltersForCounters(appName).pipe(take(1), switchMap((filters) => this.fetchFilterCounters(appName, this.buildRequest(filters))), catchError(() => of({})));
|
|
4148
4133
|
}
|
|
4149
4134
|
recounts(appName) {
|
|
4150
4135
|
return merge(merge(of(undefined), this.recountTrigger(appName)).pipe(debounceTime(0, asapScheduler)), this.eventRecountTrigger(appName).pipe(debounceTime(this.notificationDebounceTime)));
|
|
@@ -4733,12 +4718,6 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
4733
4718
|
*
|
|
4734
4719
|
*/
|
|
4735
4720
|
this.searchApiMethod = 'GET';
|
|
4736
|
-
/**
|
|
4737
|
-
* (optional) Resolves the counters of the task and the process filters with a single call to
|
|
4738
|
-
* `POST /query/v1/count`. Both filter components have to
|
|
4739
|
-
* ask for it, otherwise the counters are resolved one filter at a time.
|
|
4740
|
-
*/
|
|
4741
|
-
this.useBatchedCounters = false;
|
|
4742
4721
|
/** Emitted when a filter is being selected based on the filterParam input. */
|
|
4743
4722
|
this.filterSelected = new EventEmitter();
|
|
4744
4723
|
/** Emitted when a filter is being clicked from the UI. */
|
|
@@ -4751,7 +4730,6 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
4751
4730
|
this.enableNotifications = true;
|
|
4752
4731
|
this.notificationDebounceTime = 3000;
|
|
4753
4732
|
this.currentFiltersValues = {};
|
|
4754
|
-
this.batchedCounters = true;
|
|
4755
4733
|
this.taskFilterCloudService = inject(TaskFilterCloudService);
|
|
4756
4734
|
this.taskListCloudService = inject(TaskListCloudService);
|
|
4757
4735
|
this.filterCountersCloudService = inject(FilterCountersCloudService);
|
|
@@ -4778,9 +4756,6 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
4778
4756
|
else if (filter && filter.currentValue !== filter.previousValue) {
|
|
4779
4757
|
this.selectFilterAndEmit(filter.currentValue);
|
|
4780
4758
|
}
|
|
4781
|
-
else if (changes['useBatchedCounters'] && !changes['useBatchedCounters'].firstChange && this.filtersLoadedFor) {
|
|
4782
|
-
this.loadFilterCounters(this.filtersLoadedFor);
|
|
4783
|
-
}
|
|
4784
4759
|
}
|
|
4785
4760
|
/**
|
|
4786
4761
|
* Loads the filter list filtered by appName
|
|
@@ -4897,7 +4872,7 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
4897
4872
|
onFilterClick(filter) {
|
|
4898
4873
|
if (filter) {
|
|
4899
4874
|
this.selectFilter(filter);
|
|
4900
|
-
this.refreshFilterCounter(
|
|
4875
|
+
this.refreshFilterCounter();
|
|
4901
4876
|
this.filterClicked.emit(this.currentFilter);
|
|
4902
4877
|
this.updatedCountersSet.delete(filter.key);
|
|
4903
4878
|
}
|
|
@@ -4945,17 +4920,11 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
4945
4920
|
this.countersSubscription?.unsubscribe();
|
|
4946
4921
|
this.countersSubscription = combineLatest([
|
|
4947
4922
|
this.countersFilters$.pipe(catchError(() => of([]))),
|
|
4948
|
-
this.filterCountersCloudService.getFilterCounters(appName, FilterCounterEntityType.TASK
|
|
4923
|
+
this.filterCountersCloudService.getFilterCounters(appName, FilterCounterEntityType.TASK)
|
|
4949
4924
|
])
|
|
4950
4925
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
4951
|
-
.subscribe(([, { counters
|
|
4952
|
-
this.
|
|
4953
|
-
if (batched) {
|
|
4954
|
-
this.applyFilterCounters(counters);
|
|
4955
|
-
}
|
|
4956
|
-
else {
|
|
4957
|
-
this.updateFilterCounters();
|
|
4958
|
-
}
|
|
4926
|
+
.subscribe(([, { counters }]) => {
|
|
4927
|
+
this.applyFilterCounters(counters);
|
|
4959
4928
|
});
|
|
4960
4929
|
}
|
|
4961
4930
|
applyFilterCounters(counters) {
|
|
@@ -4985,24 +4954,17 @@ class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent {
|
|
|
4985
4954
|
this.filters = [];
|
|
4986
4955
|
this.currentFilter = undefined;
|
|
4987
4956
|
}
|
|
4988
|
-
refreshFilterCounter(
|
|
4989
|
-
|
|
4990
|
-
this.filterCountersCloudService.refreshFilterCounters(this.appName);
|
|
4991
|
-
}
|
|
4992
|
-
else {
|
|
4993
|
-
this.updateFilterCounter(filter);
|
|
4994
|
-
}
|
|
4957
|
+
refreshFilterCounter() {
|
|
4958
|
+
this.filterCountersCloudService.refreshFilterCounters(this.appName);
|
|
4995
4959
|
}
|
|
4996
4960
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TaskFiltersCloudComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4997
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TaskFiltersCloudComponent, isStandalone: true, selector: "adf-cloud-task-filters", inputs: { searchApiMethod: "searchApiMethod"
|
|
4961
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TaskFiltersCloudComponent, isStandalone: true, selector: "adf-cloud-task-filters", inputs: { searchApiMethod: "searchApiMethod" }, outputs: { filterSelected: "filterSelected", filterClicked: "filterClicked", filterCounterUpdated: "filterCounterUpdated", updatedFilter: "updatedFilter" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (filters$ | async; as filterList) {\n <mat-nav-list>\n @for (filter of filterList; track filter.id) {\n <a mat-list-item\n [activated]=\"filter.id === currentRouteFilterId()\"\n [routerLink]=\"[TASKS_ROUTE]\"\n [queryParams]=\"{ filterId: filter.id }\"\n [attr.data-automation-id]=\"filter.key + '_filter'\"\n class=\"adf-task-filters__entry\"\n [class.adf-active]=\"filter.id === currentRouteFilterId()\"\n [attr.aria-current]=\"filter.id === currentRouteFilterId() ? 'page' : null\"\n [id]=\"filter.id\"\n [title]=\"filter.name | translate\"\n [attr.aria-label]=\"filter.name | translate\"\n (click)=\"onFilterClick(filter)\">\n <span matListItemTitle>\n {{ filter.name | translate }}\n </span>\n @if (showIcons) {\n <mat-icon matListItemIcon\n data-automation-id=\"adf-filter-icon\"\n [adf-icon]=\"filter.icon\"\n aria-hidden=\"true\" />\n }\n @if (counters[filter.key]) {\n <span matListItemMeta\n [attr.data-automation-id]=\"filter.key + '_filter-counter'\"\n class=\"adf-task-filters__entry-counter\"\n [class.adf-active]=\"wasFilterUpdated(filter.key)\"\n >\n {{ counters[filter.key] }}\n </span>\n }\n </a>\n }\n </mat-nav-list>\n} @else {\n <div class=\"adf-app-list-spinner\">\n <mat-spinner [attr.aria-label]=\"'ADF_CLOUD_TASK_LIST.LOADING' | translate\" aria-live=\"polite\" />\n </div>\n}\n", styles: [".adf-task-filters__entry-counter{padding:0 5px;border-radius:var(--mat-sys-corner-large)}.adf-task-filters__entry-counter.adf-active{background-color:var(--mat-sys-secondary);--mat-list-list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary)}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2$1.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i2$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i2$1.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i2$1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i2$1.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.IconDirective, selector: "mat-icon[adf-icon]", inputs: ["adf-icon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
4998
4962
|
}
|
|
4999
4963
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TaskFiltersCloudComponent, decorators: [{
|
|
5000
4964
|
type: Component,
|
|
5001
4965
|
args: [{ selector: 'adf-cloud-task-filters', imports: [AsyncPipe, MatProgressSpinnerModule, TranslatePipe, MatListModule, RouterLink, IconModule], template: "@if (filters$ | async; as filterList) {\n <mat-nav-list>\n @for (filter of filterList; track filter.id) {\n <a mat-list-item\n [activated]=\"filter.id === currentRouteFilterId()\"\n [routerLink]=\"[TASKS_ROUTE]\"\n [queryParams]=\"{ filterId: filter.id }\"\n [attr.data-automation-id]=\"filter.key + '_filter'\"\n class=\"adf-task-filters__entry\"\n [class.adf-active]=\"filter.id === currentRouteFilterId()\"\n [attr.aria-current]=\"filter.id === currentRouteFilterId() ? 'page' : null\"\n [id]=\"filter.id\"\n [title]=\"filter.name | translate\"\n [attr.aria-label]=\"filter.name | translate\"\n (click)=\"onFilterClick(filter)\">\n <span matListItemTitle>\n {{ filter.name | translate }}\n </span>\n @if (showIcons) {\n <mat-icon matListItemIcon\n data-automation-id=\"adf-filter-icon\"\n [adf-icon]=\"filter.icon\"\n aria-hidden=\"true\" />\n }\n @if (counters[filter.key]) {\n <span matListItemMeta\n [attr.data-automation-id]=\"filter.key + '_filter-counter'\"\n class=\"adf-task-filters__entry-counter\"\n [class.adf-active]=\"wasFilterUpdated(filter.key)\"\n >\n {{ counters[filter.key] }}\n </span>\n }\n </a>\n }\n </mat-nav-list>\n} @else {\n <div class=\"adf-app-list-spinner\">\n <mat-spinner [attr.aria-label]=\"'ADF_CLOUD_TASK_LIST.LOADING' | translate\" aria-live=\"polite\" />\n </div>\n}\n", styles: [".adf-task-filters__entry-counter{padding:0 5px;border-radius:var(--mat-sys-corner-large)}.adf-task-filters__entry-counter.adf-active{background-color:var(--mat-sys-secondary);--mat-list-list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary)}\n"] }]
|
|
5002
4966
|
}], propDecorators: { searchApiMethod: [{
|
|
5003
4967
|
type: Input
|
|
5004
|
-
}], useBatchedCounters: [{
|
|
5005
|
-
type: Input
|
|
5006
4968
|
}], filterSelected: [{
|
|
5007
4969
|
type: Output
|
|
5008
4970
|
}], filterClicked: [{
|
|
@@ -12016,12 +11978,6 @@ class ProcessFiltersCloudComponent {
|
|
|
12016
11978
|
*
|
|
12017
11979
|
*/
|
|
12018
11980
|
this.searchApiMethod = 'GET';
|
|
12019
|
-
/**
|
|
12020
|
-
* (optional) Resolves the counters of the task and the process filters with a single call to
|
|
12021
|
-
* `POST /query/v1/count`. Both filter components have to
|
|
12022
|
-
* ask for it, otherwise the counters are resolved one filter at a time.
|
|
12023
|
-
*/
|
|
12024
|
-
this.useBatchedCounters = false;
|
|
12025
11981
|
/** (optional) Toggles showing an icon by the side of each filter */
|
|
12026
11982
|
this.showIcons = false;
|
|
12027
11983
|
/** Emitted when a filter is being selected based on the filterParam input. */
|
|
@@ -12040,7 +11996,6 @@ class ProcessFiltersCloudComponent {
|
|
|
12040
11996
|
this.updatedFiltersSet = new Set();
|
|
12041
11997
|
this.enableNotifications = true;
|
|
12042
11998
|
this.notificationDebounceTime = 3000;
|
|
12043
|
-
this.batchedCounters = true;
|
|
12044
11999
|
this.destroyRef = inject(DestroyRef);
|
|
12045
12000
|
this.processFilterCloudService = inject(ProcessFilterCloudService);
|
|
12046
12001
|
this.translationService = inject(TranslationService);
|
|
@@ -12067,9 +12022,6 @@ class ProcessFiltersCloudComponent {
|
|
|
12067
12022
|
else if (filter && filter.currentValue !== filter.previousValue) {
|
|
12068
12023
|
this.selectFilterAndEmit(filter.currentValue);
|
|
12069
12024
|
}
|
|
12070
|
-
else if (changes['useBatchedCounters'] && !changes['useBatchedCounters'].firstChange && this.filtersLoadedFor) {
|
|
12071
|
-
this.loadFilterCounters(this.filtersLoadedFor);
|
|
12072
|
-
}
|
|
12073
12025
|
}
|
|
12074
12026
|
/**
|
|
12075
12027
|
* Fetch the filter list based on appName
|
|
@@ -12153,7 +12105,7 @@ class ProcessFiltersCloudComponent {
|
|
|
12153
12105
|
if (filter) {
|
|
12154
12106
|
this.selectFilter(filter);
|
|
12155
12107
|
this.filterClicked.emit(this.currentFilter);
|
|
12156
|
-
this.refreshFilterCounter(
|
|
12108
|
+
this.refreshFilterCounter();
|
|
12157
12109
|
this.updatedFiltersSet.delete(filter.key);
|
|
12158
12110
|
}
|
|
12159
12111
|
else {
|
|
@@ -12262,17 +12214,11 @@ class ProcessFiltersCloudComponent {
|
|
|
12262
12214
|
this.countersSubscription?.unsubscribe();
|
|
12263
12215
|
this.countersSubscription = combineLatest([
|
|
12264
12216
|
this.countersFilters$.pipe(catchError(() => of([]))),
|
|
12265
|
-
this.filterCountersCloudService.getFilterCounters(appName, FilterCounterEntityType.PROCESS_INSTANCE
|
|
12217
|
+
this.filterCountersCloudService.getFilterCounters(appName, FilterCounterEntityType.PROCESS_INSTANCE)
|
|
12266
12218
|
])
|
|
12267
12219
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
12268
|
-
.subscribe(([, { counters
|
|
12269
|
-
this.
|
|
12270
|
-
if (batched) {
|
|
12271
|
-
this.applyFilterCounters(counters);
|
|
12272
|
-
}
|
|
12273
|
-
else {
|
|
12274
|
-
this.updateFilterCounters();
|
|
12275
|
-
}
|
|
12220
|
+
.subscribe(([, { counters }]) => {
|
|
12221
|
+
this.applyFilterCounters(counters);
|
|
12276
12222
|
});
|
|
12277
12223
|
}
|
|
12278
12224
|
applyFilterCounters(counters) {
|
|
@@ -12290,13 +12236,8 @@ class ProcessFiltersCloudComponent {
|
|
|
12290
12236
|
this.counters = { ...this.counters, [filterKey]: counter };
|
|
12291
12237
|
});
|
|
12292
12238
|
}
|
|
12293
|
-
refreshFilterCounter(
|
|
12294
|
-
|
|
12295
|
-
this.filterCountersCloudService.refreshFilterCounters(this.appName);
|
|
12296
|
-
}
|
|
12297
|
-
else if (filter) {
|
|
12298
|
-
this.updateFilterCounter(filter);
|
|
12299
|
-
}
|
|
12239
|
+
refreshFilterCounter() {
|
|
12240
|
+
this.filterCountersCloudService.refreshFilterCounters(this.appName);
|
|
12300
12241
|
}
|
|
12301
12242
|
fetchProcessFilterCounter(filter) {
|
|
12302
12243
|
return this.searchApiMethod === 'POST'
|
|
@@ -12304,7 +12245,7 @@ class ProcessFiltersCloudComponent {
|
|
|
12304
12245
|
: this.processListCloudService.getProcessCounter(filter.appName, filter.status);
|
|
12305
12246
|
}
|
|
12306
12247
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ProcessFiltersCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12307
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ProcessFiltersCloudComponent, isStandalone: true, selector: "adf-cloud-process-filters", inputs: { appName: "appName", searchApiMethod: "searchApiMethod",
|
|
12248
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ProcessFiltersCloudComponent, isStandalone: true, selector: "adf-cloud-process-filters", inputs: { appName: "appName", searchApiMethod: "searchApiMethod", filterParam: "filterParam", showIcons: "showIcons" }, outputs: { filterSelected: "filterSelected", filterClicked: "filterClicked", success: "success", error: "error", updatedFilter: "updatedFilter" }, usesOnChanges: true, ngImport: i0, template: "@if (filters$ | async; as filterList) {\n <mat-nav-list>\n @for (filter of filterList; track filter.id) {\n <a mat-list-item\n [activated]=\"filter.id === currentRouteFilterId()\"\n [routerLink]=\"[PROCESSES_ROUTE]\"\n [queryParams]=\"{ filterId: filter.id }\"\n [attr.data-automation-id]=\"filter.key + '_filter'\"\n class=\"adf-process-filters__entry\"\n [class.adf-active]=\"filter.id === currentRouteFilterId()\"\n [attr.aria-current]=\"filter.id === currentRouteFilterId() ? 'page' : null\"\n [id]=\"filter.id\"\n [title]=\"filter.name ?? '' | translate\"\n [attr.aria-label]=\"filter.name ?? '' | translate\"\n (click)=\"onFilterClick(filter)\">\n <span matListItemTitle>\n {{ filter.name ?? '' | translate }}\n </span>\n @if (showIcons) {\n <mat-icon matListItemIcon\n data-automation-id=\"adf-filter-icon\"\n [adf-icon]=\"filter.icon ?? ''\"\n aria-hidden=\"true\" />\n }\n @if (counters[filter.key ?? '']) {\n <span matListItemMeta\n [attr.data-automation-id]=\"filter.key + '_filter-counter'\"\n class=\"adf-process-filters__entry-counter\"\n [class.adf-active]=\"isFilterUpdated(filter.key ?? '')\"\n >\n {{ counters[filter.key ?? ''] }}\n </span>\n }\n </a>\n }\n </mat-nav-list>\n} @else {\n <div class=\"adf-app-list-spinner\">\n <mat-spinner [attr.aria-label]=\"'ADF_CLOUD_PROCESS_LIST.LOADING' | translate\" aria-live=\"polite\" />\n </div>\n}\n\n", styles: [".adf-process-filters__entry-counter{padding:0 5px;border-radius:var(--mat-sys-corner-large)}.adf-process-filters__entry-counter.adf-active{background-color:var(--mat-sys-secondary);--mat-list-list-item-trailing-supporting-text-color: var(--mat-sys-on-secondary)}\n"], dependencies: [{ kind: "ngmodule", type: IconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.IconDirective, selector: "mat-icon[adf-icon]", inputs: ["adf-icon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2$1.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i2$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i2$1.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i2$1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i2$1.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
|
|
12308
12249
|
}
|
|
12309
12250
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ProcessFiltersCloudComponent, decorators: [{
|
|
12310
12251
|
type: Component,
|
|
@@ -12313,8 +12254,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
12313
12254
|
type: Input
|
|
12314
12255
|
}], searchApiMethod: [{
|
|
12315
12256
|
type: Input
|
|
12316
|
-
}], useBatchedCounters: [{
|
|
12317
|
-
type: Input
|
|
12318
12257
|
}], filterParam: [{
|
|
12319
12258
|
type: Input
|
|
12320
12259
|
}], showIcons: [{
|