@alfresco/adf-process-services-cloud 8.1.0-16167952151 → 8.1.0-16168969238
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.
|
@@ -2666,179 +2666,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2666
2666
|
type: Input
|
|
2667
2667
|
}] } });
|
|
2668
2668
|
|
|
2669
|
-
/*!
|
|
2670
|
-
* @license
|
|
2671
|
-
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2672
|
-
*
|
|
2673
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2674
|
-
* you may not use this file except in compliance with the License.
|
|
2675
|
-
* You may obtain a copy of the License at
|
|
2676
|
-
*
|
|
2677
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2678
|
-
*
|
|
2679
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2680
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2681
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2682
|
-
* See the License for the specific language governing permissions and
|
|
2683
|
-
* limitations under the License.
|
|
2684
|
-
*/
|
|
2685
|
-
class TaskListCloudService extends BaseCloudService {
|
|
2686
|
-
/**
|
|
2687
|
-
* Finds a task using an object with optional query properties.
|
|
2688
|
-
*
|
|
2689
|
-
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
|
|
2690
|
-
* @param requestNode Query object
|
|
2691
|
-
* @param queryUrl Query url
|
|
2692
|
-
* @returns Task information
|
|
2693
|
-
*/
|
|
2694
|
-
getTaskByRequest(requestNode, queryUrl) {
|
|
2695
|
-
if (requestNode.appName || requestNode.appName === '') {
|
|
2696
|
-
queryUrl = queryUrl || `${this.getBasePath(requestNode.appName)}/query/v1/tasks`;
|
|
2697
|
-
const queryParams = this.buildQueryParams(requestNode);
|
|
2698
|
-
const sortingParams = this.buildSortingParam(requestNode.sorting);
|
|
2699
|
-
if (sortingParams) {
|
|
2700
|
-
queryParams['sort'] = sortingParams;
|
|
2701
|
-
}
|
|
2702
|
-
return this.get(queryUrl, queryParams).pipe(map((response) => {
|
|
2703
|
-
const entries = response.list?.entries;
|
|
2704
|
-
if (entries) {
|
|
2705
|
-
// TODO: this looks like a hack of the TaskCloudNodePaging collection
|
|
2706
|
-
response.list.entries = entries.map((entryData) => entryData.entry);
|
|
2707
|
-
}
|
|
2708
|
-
return response;
|
|
2709
|
-
}));
|
|
2710
|
-
}
|
|
2711
|
-
else {
|
|
2712
|
-
return throwError('Appname not configured');
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
/**
|
|
2716
|
-
* Available from Activiti version 8.7.0 onwards.
|
|
2717
|
-
* Retrieves a list of tasks using an object with optional query properties.
|
|
2718
|
-
*
|
|
2719
|
-
* @param requestNode Query object
|
|
2720
|
-
* @param queryUrl Query url
|
|
2721
|
-
* @returns List of tasks
|
|
2722
|
-
*/
|
|
2723
|
-
fetchTaskList(requestNode, queryUrl) {
|
|
2724
|
-
if (!requestNode?.appName) {
|
|
2725
|
-
return throwError(() => new Error('Appname not configured'));
|
|
2726
|
-
}
|
|
2727
|
-
queryUrl = queryUrl || `${this.getBasePath(requestNode.appName)}/query/v1/tasks/search`;
|
|
2728
|
-
const queryParams = {
|
|
2729
|
-
maxItems: requestNode.pagination?.maxItems || 25,
|
|
2730
|
-
skipCount: requestNode.pagination?.skipCount || 0
|
|
2731
|
-
};
|
|
2732
|
-
const queryData = this.buildQueryData(requestNode);
|
|
2733
|
-
return this.post(queryUrl, queryData, queryParams).pipe(map((response) => {
|
|
2734
|
-
const entries = response.list?.entries;
|
|
2735
|
-
if (entries) {
|
|
2736
|
-
response.list.entries = entries.map((entryData) => entryData.entry);
|
|
2737
|
-
}
|
|
2738
|
-
return response;
|
|
2739
|
-
}));
|
|
2740
|
-
}
|
|
2741
|
-
getTaskListCounter(requestNode) {
|
|
2742
|
-
if (!requestNode.appName) {
|
|
2743
|
-
return throwError(() => new Error('Appname not configured'));
|
|
2744
|
-
}
|
|
2745
|
-
return this.fetchTaskList(requestNode).pipe(map((tasks) => tasks.list.pagination.totalItems));
|
|
2746
|
-
}
|
|
2747
|
-
buildQueryData(requestNode) {
|
|
2748
|
-
const queryData = {
|
|
2749
|
-
id: requestNode.id,
|
|
2750
|
-
parentId: requestNode.parentId,
|
|
2751
|
-
processInstanceId: requestNode.processInstanceId,
|
|
2752
|
-
status: requestNode.status,
|
|
2753
|
-
processDefinitionName: requestNode.processDefinitionName,
|
|
2754
|
-
processName: requestNode.processName,
|
|
2755
|
-
assignee: requestNode.assignee,
|
|
2756
|
-
priority: requestNode.priority,
|
|
2757
|
-
name: requestNode.name,
|
|
2758
|
-
completedBy: requestNode.completedBy,
|
|
2759
|
-
completedFrom: requestNode.completedFrom,
|
|
2760
|
-
completedTo: requestNode.completedTo,
|
|
2761
|
-
createdFrom: requestNode.createdFrom,
|
|
2762
|
-
createdTo: requestNode.createdTo,
|
|
2763
|
-
dueDateFrom: requestNode.dueDateFrom,
|
|
2764
|
-
dueDateTo: requestNode.dueDateTo,
|
|
2765
|
-
processVariableKeys: requestNode.processVariableKeys,
|
|
2766
|
-
processVariableFilters: requestNode.processVariableFilters
|
|
2767
|
-
};
|
|
2768
|
-
if (requestNode.sorting) {
|
|
2769
|
-
queryData['sort'] = {
|
|
2770
|
-
field: requestNode.sorting.orderBy,
|
|
2771
|
-
direction: requestNode.sorting.direction.toLowerCase(),
|
|
2772
|
-
isProcessVariable: requestNode.sorting.isFieldProcessVariable
|
|
2773
|
-
};
|
|
2774
|
-
if (queryData['sort'].isProcessVariable) {
|
|
2775
|
-
queryData['sort'].processDefinitionKey = requestNode.sorting.processVariableData?.processDefinitionKey;
|
|
2776
|
-
queryData['sort'].type = requestNode.sorting.processVariableData?.type;
|
|
2777
|
-
}
|
|
2778
|
-
}
|
|
2779
|
-
/*
|
|
2780
|
-
* Remove process variable filter keys with empty values from the query data.
|
|
2781
|
-
*/
|
|
2782
|
-
if (queryData['processVariableFilters']) {
|
|
2783
|
-
queryData['processVariableFilters'] = queryData['processVariableFilters'].filter((filter) => filter.value !== '' && filter.value !== null && filter.value !== undefined);
|
|
2784
|
-
}
|
|
2785
|
-
/*
|
|
2786
|
-
* Remove keys with empty values from the query data.
|
|
2787
|
-
*/
|
|
2788
|
-
Object.keys(queryData).forEach((key) => {
|
|
2789
|
-
const value = queryData[key];
|
|
2790
|
-
const isValueEmpty = !value;
|
|
2791
|
-
const isValueArrayWithEmptyValue = Array.isArray(value) && (value.length === 0 || value[0] === null);
|
|
2792
|
-
if (isValueEmpty || isValueArrayWithEmptyValue) {
|
|
2793
|
-
delete queryData[key];
|
|
2794
|
-
}
|
|
2795
|
-
});
|
|
2796
|
-
return queryData;
|
|
2797
|
-
}
|
|
2798
|
-
buildQueryParams(requestNode) {
|
|
2799
|
-
const queryParam = {};
|
|
2800
|
-
for (const propertyKey in requestNode) {
|
|
2801
|
-
if (Object.prototype.hasOwnProperty.call(requestNode, propertyKey) &&
|
|
2802
|
-
!this.isExcludedField(propertyKey) &&
|
|
2803
|
-
this.isPropertyValueValid(requestNode, propertyKey)) {
|
|
2804
|
-
if (propertyKey === 'variableKeys' && requestNode[propertyKey]?.length > 0) {
|
|
2805
|
-
queryParam[propertyKey] = requestNode[propertyKey].join(',');
|
|
2806
|
-
}
|
|
2807
|
-
else {
|
|
2808
|
-
queryParam[propertyKey] = requestNode[propertyKey];
|
|
2809
|
-
}
|
|
2810
|
-
}
|
|
2811
|
-
}
|
|
2812
|
-
return queryParam;
|
|
2813
|
-
}
|
|
2814
|
-
isExcludedField(property) {
|
|
2815
|
-
return property === 'appName' || property === 'sorting';
|
|
2816
|
-
}
|
|
2817
|
-
isPropertyValueValid(requestNode, property) {
|
|
2818
|
-
return requestNode[property] !== '' && requestNode[property] !== null && requestNode[property] !== undefined;
|
|
2819
|
-
}
|
|
2820
|
-
buildSortingParam(models) {
|
|
2821
|
-
let finalSorting = '';
|
|
2822
|
-
if (models) {
|
|
2823
|
-
for (const sort of models) {
|
|
2824
|
-
if (!finalSorting) {
|
|
2825
|
-
finalSorting = `${sort.orderBy},${sort.direction}`;
|
|
2826
|
-
}
|
|
2827
|
-
else {
|
|
2828
|
-
finalSorting = `${finalSorting}&${sort.orderBy},${sort.direction}`;
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
return encodeURI(finalSorting);
|
|
2833
|
-
}
|
|
2834
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2835
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudService, providedIn: 'root' }); }
|
|
2836
|
-
}
|
|
2837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudService, decorators: [{
|
|
2838
|
-
type: Injectable,
|
|
2839
|
-
args: [{ providedIn: 'root' }]
|
|
2840
|
-
}] });
|
|
2841
|
-
|
|
2842
2669
|
/*!
|
|
2843
2670
|
* @license
|
|
2844
2671
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
@@ -2860,32 +2687,13 @@ const TASK_LIST_CLOUD_DIRECTIVES = [TaskListCloudComponent, ServiceTaskListCloud
|
|
|
2860
2687
|
class TaskListCloudModule {
|
|
2861
2688
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2862
2689
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudModule, imports: [TaskListCloudComponent, ServiceTaskListCloudComponent], exports: [TaskListCloudComponent, ServiceTaskListCloudComponent] }); }
|
|
2863
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudModule,
|
|
2864
|
-
{
|
|
2865
|
-
provide: TASK_LIST_CLOUD_TOKEN,
|
|
2866
|
-
useClass: TaskListCloudService
|
|
2867
|
-
},
|
|
2868
|
-
{
|
|
2869
|
-
provide: TASK_LIST_PREFERENCES_SERVICE_TOKEN,
|
|
2870
|
-
useClass: LocalPreferenceCloudService
|
|
2871
|
-
}
|
|
2872
|
-
], imports: [TASK_LIST_CLOUD_DIRECTIVES] }); }
|
|
2690
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudModule, imports: [TASK_LIST_CLOUD_DIRECTIVES] }); }
|
|
2873
2691
|
}
|
|
2874
2692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudModule, decorators: [{
|
|
2875
2693
|
type: NgModule,
|
|
2876
2694
|
args: [{
|
|
2877
2695
|
imports: [...TASK_LIST_CLOUD_DIRECTIVES],
|
|
2878
|
-
exports: [...TASK_LIST_CLOUD_DIRECTIVES]
|
|
2879
|
-
providers: [
|
|
2880
|
-
{
|
|
2881
|
-
provide: TASK_LIST_CLOUD_TOKEN,
|
|
2882
|
-
useClass: TaskListCloudService
|
|
2883
|
-
},
|
|
2884
|
-
{
|
|
2885
|
-
provide: TASK_LIST_PREFERENCES_SERVICE_TOKEN,
|
|
2886
|
-
useClass: LocalPreferenceCloudService
|
|
2887
|
-
}
|
|
2888
|
-
]
|
|
2696
|
+
exports: [...TASK_LIST_CLOUD_DIRECTIVES]
|
|
2889
2697
|
}]
|
|
2890
2698
|
}] });
|
|
2891
2699
|
|
|
@@ -3655,6 +3463,179 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
3655
3463
|
type: Output
|
|
3656
3464
|
}] } });
|
|
3657
3465
|
|
|
3466
|
+
/*!
|
|
3467
|
+
* @license
|
|
3468
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3469
|
+
*
|
|
3470
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3471
|
+
* you may not use this file except in compliance with the License.
|
|
3472
|
+
* You may obtain a copy of the License at
|
|
3473
|
+
*
|
|
3474
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3475
|
+
*
|
|
3476
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3477
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3478
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3479
|
+
* See the License for the specific language governing permissions and
|
|
3480
|
+
* limitations under the License.
|
|
3481
|
+
*/
|
|
3482
|
+
class TaskListCloudService extends BaseCloudService {
|
|
3483
|
+
/**
|
|
3484
|
+
* Finds a task using an object with optional query properties.
|
|
3485
|
+
*
|
|
3486
|
+
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
|
|
3487
|
+
* @param requestNode Query object
|
|
3488
|
+
* @param queryUrl Query url
|
|
3489
|
+
* @returns Task information
|
|
3490
|
+
*/
|
|
3491
|
+
getTaskByRequest(requestNode, queryUrl) {
|
|
3492
|
+
if (requestNode.appName || requestNode.appName === '') {
|
|
3493
|
+
queryUrl = queryUrl || `${this.getBasePath(requestNode.appName)}/query/v1/tasks`;
|
|
3494
|
+
const queryParams = this.buildQueryParams(requestNode);
|
|
3495
|
+
const sortingParams = this.buildSortingParam(requestNode.sorting);
|
|
3496
|
+
if (sortingParams) {
|
|
3497
|
+
queryParams['sort'] = sortingParams;
|
|
3498
|
+
}
|
|
3499
|
+
return this.get(queryUrl, queryParams).pipe(map((response) => {
|
|
3500
|
+
const entries = response.list?.entries;
|
|
3501
|
+
if (entries) {
|
|
3502
|
+
// TODO: this looks like a hack of the TaskCloudNodePaging collection
|
|
3503
|
+
response.list.entries = entries.map((entryData) => entryData.entry);
|
|
3504
|
+
}
|
|
3505
|
+
return response;
|
|
3506
|
+
}));
|
|
3507
|
+
}
|
|
3508
|
+
else {
|
|
3509
|
+
return throwError('Appname not configured');
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
/**
|
|
3513
|
+
* Available from Activiti version 8.7.0 onwards.
|
|
3514
|
+
* Retrieves a list of tasks using an object with optional query properties.
|
|
3515
|
+
*
|
|
3516
|
+
* @param requestNode Query object
|
|
3517
|
+
* @param queryUrl Query url
|
|
3518
|
+
* @returns List of tasks
|
|
3519
|
+
*/
|
|
3520
|
+
fetchTaskList(requestNode, queryUrl) {
|
|
3521
|
+
if (!requestNode?.appName) {
|
|
3522
|
+
return throwError(() => new Error('Appname not configured'));
|
|
3523
|
+
}
|
|
3524
|
+
queryUrl = queryUrl || `${this.getBasePath(requestNode.appName)}/query/v1/tasks/search`;
|
|
3525
|
+
const queryParams = {
|
|
3526
|
+
maxItems: requestNode.pagination?.maxItems || 25,
|
|
3527
|
+
skipCount: requestNode.pagination?.skipCount || 0
|
|
3528
|
+
};
|
|
3529
|
+
const queryData = this.buildQueryData(requestNode);
|
|
3530
|
+
return this.post(queryUrl, queryData, queryParams).pipe(map((response) => {
|
|
3531
|
+
const entries = response.list?.entries;
|
|
3532
|
+
if (entries) {
|
|
3533
|
+
response.list.entries = entries.map((entryData) => entryData.entry);
|
|
3534
|
+
}
|
|
3535
|
+
return response;
|
|
3536
|
+
}));
|
|
3537
|
+
}
|
|
3538
|
+
getTaskListCounter(requestNode) {
|
|
3539
|
+
if (!requestNode.appName) {
|
|
3540
|
+
return throwError(() => new Error('Appname not configured'));
|
|
3541
|
+
}
|
|
3542
|
+
return this.fetchTaskList(requestNode).pipe(map((tasks) => tasks.list.pagination.totalItems));
|
|
3543
|
+
}
|
|
3544
|
+
buildQueryData(requestNode) {
|
|
3545
|
+
const queryData = {
|
|
3546
|
+
id: requestNode.id,
|
|
3547
|
+
parentId: requestNode.parentId,
|
|
3548
|
+
processInstanceId: requestNode.processInstanceId,
|
|
3549
|
+
status: requestNode.status,
|
|
3550
|
+
processDefinitionName: requestNode.processDefinitionName,
|
|
3551
|
+
processName: requestNode.processName,
|
|
3552
|
+
assignee: requestNode.assignee,
|
|
3553
|
+
priority: requestNode.priority,
|
|
3554
|
+
name: requestNode.name,
|
|
3555
|
+
completedBy: requestNode.completedBy,
|
|
3556
|
+
completedFrom: requestNode.completedFrom,
|
|
3557
|
+
completedTo: requestNode.completedTo,
|
|
3558
|
+
createdFrom: requestNode.createdFrom,
|
|
3559
|
+
createdTo: requestNode.createdTo,
|
|
3560
|
+
dueDateFrom: requestNode.dueDateFrom,
|
|
3561
|
+
dueDateTo: requestNode.dueDateTo,
|
|
3562
|
+
processVariableKeys: requestNode.processVariableKeys,
|
|
3563
|
+
processVariableFilters: requestNode.processVariableFilters
|
|
3564
|
+
};
|
|
3565
|
+
if (requestNode.sorting) {
|
|
3566
|
+
queryData['sort'] = {
|
|
3567
|
+
field: requestNode.sorting.orderBy,
|
|
3568
|
+
direction: requestNode.sorting.direction.toLowerCase(),
|
|
3569
|
+
isProcessVariable: requestNode.sorting.isFieldProcessVariable
|
|
3570
|
+
};
|
|
3571
|
+
if (queryData['sort'].isProcessVariable) {
|
|
3572
|
+
queryData['sort'].processDefinitionKey = requestNode.sorting.processVariableData?.processDefinitionKey;
|
|
3573
|
+
queryData['sort'].type = requestNode.sorting.processVariableData?.type;
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
/*
|
|
3577
|
+
* Remove process variable filter keys with empty values from the query data.
|
|
3578
|
+
*/
|
|
3579
|
+
if (queryData['processVariableFilters']) {
|
|
3580
|
+
queryData['processVariableFilters'] = queryData['processVariableFilters'].filter((filter) => filter.value !== '' && filter.value !== null && filter.value !== undefined);
|
|
3581
|
+
}
|
|
3582
|
+
/*
|
|
3583
|
+
* Remove keys with empty values from the query data.
|
|
3584
|
+
*/
|
|
3585
|
+
Object.keys(queryData).forEach((key) => {
|
|
3586
|
+
const value = queryData[key];
|
|
3587
|
+
const isValueEmpty = !value;
|
|
3588
|
+
const isValueArrayWithEmptyValue = Array.isArray(value) && (value.length === 0 || value[0] === null);
|
|
3589
|
+
if (isValueEmpty || isValueArrayWithEmptyValue) {
|
|
3590
|
+
delete queryData[key];
|
|
3591
|
+
}
|
|
3592
|
+
});
|
|
3593
|
+
return queryData;
|
|
3594
|
+
}
|
|
3595
|
+
buildQueryParams(requestNode) {
|
|
3596
|
+
const queryParam = {};
|
|
3597
|
+
for (const propertyKey in requestNode) {
|
|
3598
|
+
if (Object.prototype.hasOwnProperty.call(requestNode, propertyKey) &&
|
|
3599
|
+
!this.isExcludedField(propertyKey) &&
|
|
3600
|
+
this.isPropertyValueValid(requestNode, propertyKey)) {
|
|
3601
|
+
if (propertyKey === 'variableKeys' && requestNode[propertyKey]?.length > 0) {
|
|
3602
|
+
queryParam[propertyKey] = requestNode[propertyKey].join(',');
|
|
3603
|
+
}
|
|
3604
|
+
else {
|
|
3605
|
+
queryParam[propertyKey] = requestNode[propertyKey];
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
return queryParam;
|
|
3610
|
+
}
|
|
3611
|
+
isExcludedField(property) {
|
|
3612
|
+
return property === 'appName' || property === 'sorting';
|
|
3613
|
+
}
|
|
3614
|
+
isPropertyValueValid(requestNode, property) {
|
|
3615
|
+
return requestNode[property] !== '' && requestNode[property] !== null && requestNode[property] !== undefined;
|
|
3616
|
+
}
|
|
3617
|
+
buildSortingParam(models) {
|
|
3618
|
+
let finalSorting = '';
|
|
3619
|
+
if (models) {
|
|
3620
|
+
for (const sort of models) {
|
|
3621
|
+
if (!finalSorting) {
|
|
3622
|
+
finalSorting = `${sort.orderBy},${sort.direction}`;
|
|
3623
|
+
}
|
|
3624
|
+
else {
|
|
3625
|
+
finalSorting = `${finalSorting}&${sort.orderBy},${sort.direction}`;
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
return encodeURI(finalSorting);
|
|
3630
|
+
}
|
|
3631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3632
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudService, providedIn: 'root' }); }
|
|
3633
|
+
}
|
|
3634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TaskListCloudService, decorators: [{
|
|
3635
|
+
type: Injectable,
|
|
3636
|
+
args: [{ providedIn: 'root' }]
|
|
3637
|
+
}] });
|
|
3638
|
+
|
|
3658
3639
|
/*!
|
|
3659
3640
|
* @license
|
|
3660
3641
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
@@ -15037,6 +15018,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
15037
15018
|
}]
|
|
15038
15019
|
}], ctorParameters: () => [] });
|
|
15039
15020
|
|
|
15021
|
+
/*!
|
|
15022
|
+
* @license
|
|
15023
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
15024
|
+
*
|
|
15025
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
15026
|
+
* you may not use this file except in compliance with the License.
|
|
15027
|
+
* You may obtain a copy of the License at
|
|
15028
|
+
*
|
|
15029
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15030
|
+
*
|
|
15031
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15032
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15033
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15034
|
+
* See the License for the specific language governing permissions and
|
|
15035
|
+
* limitations under the License.
|
|
15036
|
+
*/
|
|
15037
|
+
/**
|
|
15038
|
+
* Provides preferences service for the process services cloud components
|
|
15039
|
+
*
|
|
15040
|
+
* @param opts Optional settings
|
|
15041
|
+
* @param opts.filterPreferenceServiceInstance Custom filter instance for `PROCESS_FILTERS_SERVICE_TOKEN` and `TASK_FILTERS_SERVICE_TOKEN` (default: LocalPreferenceCloudService)
|
|
15042
|
+
* @param opts.listPreferenceServiceInstance Custom filter instance for `PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN` and `TASK_LIST_PREFERENCES_SERVICE_TOKEN` (default: LocalPreferenceCloudService)
|
|
15043
|
+
* @returns list of providers
|
|
15044
|
+
*/
|
|
15045
|
+
function provideCloudPreferences(opts) {
|
|
15046
|
+
return [
|
|
15047
|
+
{ provide: PROCESS_FILTERS_SERVICE_TOKEN, useExisting: opts?.filterPreferenceServiceInstance ?? LocalPreferenceCloudService },
|
|
15048
|
+
{ provide: TASK_FILTERS_SERVICE_TOKEN, useExisting: opts?.filterPreferenceServiceInstance ?? LocalPreferenceCloudService },
|
|
15049
|
+
{ provide: PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN, useExisting: opts?.listPreferenceServiceInstance ?? LocalPreferenceCloudService },
|
|
15050
|
+
{ provide: TASK_LIST_PREFERENCES_SERVICE_TOKEN, useExisting: opts?.listPreferenceServiceInstance ?? LocalPreferenceCloudService }
|
|
15051
|
+
];
|
|
15052
|
+
}
|
|
15053
|
+
/**
|
|
15054
|
+
* Provides form rendering services for process cloud components
|
|
15055
|
+
*
|
|
15056
|
+
* @returns list of providers
|
|
15057
|
+
*/
|
|
15058
|
+
function provideCloudFormRenderer() {
|
|
15059
|
+
return [FormRenderingService, { provide: FormRenderingService, useClass: CloudFormRenderingService }];
|
|
15060
|
+
}
|
|
15061
|
+
|
|
15040
15062
|
/*!
|
|
15041
15063
|
* @license
|
|
15042
15064
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
@@ -15060,18 +15082,30 @@ const PROCESS_SERVICES_CLOUD_DIRECTIVES = [
|
|
|
15060
15082
|
PeopleCloudComponent,
|
|
15061
15083
|
RichTextEditorComponent
|
|
15062
15084
|
];
|
|
15085
|
+
/**
|
|
15086
|
+
* @deprecated this module is deprecated and will be removed in the future versions
|
|
15087
|
+
*
|
|
15088
|
+
* Instead, import the standalone components directly, or use the following provider API to replicate the behaviour:
|
|
15089
|
+
*
|
|
15090
|
+
* providers: [
|
|
15091
|
+
* provideTranslations('adf-process-services-cloud', 'assets/adf-process-services-cloud')
|
|
15092
|
+
* provideCloudPreferences()
|
|
15093
|
+
* provideCloudFormRenderer(),
|
|
15094
|
+
* { provide: TASK_LIST_CLOUD_TOKEN, useClass: TaskListCloudService }
|
|
15095
|
+
* ]
|
|
15096
|
+
*/
|
|
15063
15097
|
class ProcessServicesCloudModule {
|
|
15064
15098
|
static forRoot(filterPreferenceServiceInstance, listPreferenceServiceInstance) {
|
|
15065
15099
|
return {
|
|
15066
15100
|
ngModule: ProcessServicesCloudModule,
|
|
15067
15101
|
providers: [
|
|
15068
15102
|
provideTranslations('adf-process-services-cloud', 'assets/adf-process-services-cloud'),
|
|
15069
|
-
{
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
{ provide:
|
|
15103
|
+
provideCloudPreferences({
|
|
15104
|
+
filterPreferenceServiceInstance,
|
|
15105
|
+
listPreferenceServiceInstance
|
|
15106
|
+
}),
|
|
15107
|
+
provideCloudFormRenderer(),
|
|
15108
|
+
{ provide: TASK_LIST_CLOUD_TOKEN, useClass: TaskListCloudService }
|
|
15075
15109
|
]
|
|
15076
15110
|
};
|
|
15077
15111
|
}
|
|
@@ -15084,13 +15118,12 @@ class ProcessServicesCloudModule {
|
|
|
15084
15118
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ProcessServicesCloudModule, imports: [ProcessCloudModule, TaskCloudModule, GroupCloudComponent, AppListCloudComponent, AppDetailsCloudComponent, RichTextEditorComponent, FormSpinnerComponent, PropertiesViewerWrapperComponent, PropertiesViewerWidgetComponent, DisplayRichTextWidgetComponent, FileViewerWidgetComponent, FilePropertiesTableCloudComponent, FormCustomOutcomesComponent, FormDefinitionSelectorCloudComponent, RadioButtonsCloudWidgetComponent, AttachFileCloudWidgetComponent, UploadCloudWidgetComponent, PeopleCloudWidgetComponent, GroupCloudWidgetComponent, FormCloudComponent, UserTaskCloudButtonsComponent, TaskFormCloudComponent, UserTaskCloudComponent, PeopleCloudComponent,
|
|
15085
15119
|
RichTextEditorComponent], exports: [ProcessCloudModule, TaskCloudModule, GroupCloudComponent, AppListCloudComponent, AppDetailsCloudComponent, RichTextEditorComponent, FormSpinnerComponent, PropertiesViewerWrapperComponent, PropertiesViewerWidgetComponent, DisplayRichTextWidgetComponent, FileViewerWidgetComponent, FilePropertiesTableCloudComponent, FormCustomOutcomesComponent, FormDefinitionSelectorCloudComponent, RadioButtonsCloudWidgetComponent, AttachFileCloudWidgetComponent, UploadCloudWidgetComponent, PeopleCloudWidgetComponent, GroupCloudWidgetComponent, FormCloudComponent, UserTaskCloudButtonsComponent, TaskFormCloudComponent, UserTaskCloudComponent, PeopleCloudComponent,
|
|
15086
15120
|
RichTextEditorComponent] }); }
|
|
15087
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProcessServicesCloudModule,
|
|
15121
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProcessServicesCloudModule, imports: [ProcessCloudModule, TaskCloudModule, GroupCloudComponent, AppListCloudComponent, AppDetailsCloudComponent, FormSpinnerComponent, PropertiesViewerWrapperComponent, PropertiesViewerWidgetComponent, FileViewerWidgetComponent, FilePropertiesTableCloudComponent, FormDefinitionSelectorCloudComponent, RadioButtonsCloudWidgetComponent, AttachFileCloudWidgetComponent, UploadCloudWidgetComponent, PeopleCloudWidgetComponent, GroupCloudWidgetComponent, FormCloudComponent, UserTaskCloudButtonsComponent, TaskFormCloudComponent, UserTaskCloudComponent, PeopleCloudComponent, ProcessCloudModule, TaskCloudModule] }); }
|
|
15088
15122
|
}
|
|
15089
15123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProcessServicesCloudModule, decorators: [{
|
|
15090
15124
|
type: NgModule,
|
|
15091
15125
|
args: [{
|
|
15092
15126
|
imports: [ProcessCloudModule, TaskCloudModule, GroupCloudComponent, ...PROCESS_SERVICES_CLOUD_DIRECTIVES],
|
|
15093
|
-
providers: [provideTranslations('adf-process-services-cloud', 'assets/adf-process-services-cloud')],
|
|
15094
15127
|
exports: [ProcessCloudModule, TaskCloudModule, GroupCloudComponent, ...PROCESS_SERVICES_CLOUD_DIRECTIVES]
|
|
15095
15128
|
}]
|
|
15096
15129
|
}] });
|
|
@@ -15997,5 +16030,5 @@ const DATE_FORMAT_CLOUD = 'YYYY-MM-DD';
|
|
|
15997
16030
|
* Generated bundle index. Do not edit.
|
|
15998
16031
|
*/
|
|
15999
16032
|
|
|
16000
|
-
export { APP_LIST_CLOUD_DIRECTIVES, AppDetailsCloudComponent, AppListCloudComponent, ApplicationVersionModel, ApplicationVersionResponseModel, AppsProcessCloudService, AssignmentType, AttachFileCloudWidgetComponent, BaseCloudService, CloudFormRenderingService, ContentCloudNodeSelectorService, DATE_FORMAT_CLOUD, DEFAULT_APP_INSTANCE_ICON, DEFAULT_APP_INSTANCE_THEME, DEFAULT_OPTION, DEFAULT_TASK_PRIORITIES, DEPLOYED_STATUS, DateCloudFilterType, DateCloudWidgetComponent, DateRangeFilterService, DescriptorCustomUIAuthFlowType, DisplayModeService, DisplayRichTextWidgetComponent, DropdownCloudWidgetComponent, EditProcessFilterCloudComponent, EditServiceTaskFilterCloudComponent, EditTaskFilterCloudComponent, FORM_CLOUD_DIRECTIVES, FORM_CLOUD_FIELD_VALIDATORS_TOKEN, FORM_CLOUD_SERVICE_FIELD_VALIDATORS_TOKEN, FilePropertiesTableCloudComponent, FileViewerWidgetComponent, FormCloudComponent, FormCloudDisplayMode, FormCloudModule, FormCloudService, FormCustomOutcomesComponent, FormDefinitionSelectorCloudComponent, FormDefinitionSelectorCloudService, FormFieldType, FormSpinnerComponent, GroupCloudComponent, GroupCloudModule, GroupCloudWidgetComponent, HIDE_FILTER_LIMIT, IdentityGroupService, IdentityUserService, LAYOUT_GRID, LAYOUT_LIST, LocalPreferenceCloudService, NotificationCloudService, PROCESS_CLOUD_DIRECTIVES, PROCESS_FILTERS_CLOUD_DIRECTIVES, PROCESS_FILTERS_SERVICE_TOKEN, PROCESS_FILTER_ACTION_DELETE, PROCESS_FILTER_ACTION_RESTORE, PROCESS_FILTER_ACTION_SAVE, PROCESS_FILTER_ACTION_SAVE_AS, PROCESS_FILTER_ACTION_SAVE_DEFAULT, PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN, PROCESS_SERVICES_CLOUD_DIRECTIVES, PeopleCloudComponent, PeopleCloudModule, PeopleCloudWidgetComponent, PeopleModeOptions, ProcessCloudContentService, ProcessCloudModule, ProcessCloudService, ProcessDefinitionCloud, ProcessFilterCloudAdapter, ProcessFilterCloudModel, ProcessFilterCloudService, ProcessFilterDialogCloudComponent, ProcessFiltersCloudComponent, ProcessFiltersCloudModule, ProcessHeaderCloudComponent, ProcessHeaderCloudModule, ProcessListCloudComponent, ProcessListCloudModule, ProcessListCloudPreferences, ProcessListCloudService, ProcessListCloudSortingModel, ProcessListRequestModel, ProcessListRequestSortingModel, ProcessPayloadCloud, ProcessQueryCloudRequestModel, ProcessServicesCloudModule, ProcessTaskListCloudService, PropertiesViewerWidgetComponent, PropertiesViewerWrapperComponent, RadioButtonsCloudWidgetComponent, RichTextEditorComponent, RichTextEditorModule, ScreenRenderingService, ServiceTaskFilterCloudService, ServiceTaskFiltersCloudComponent, ServiceTaskListCloudComponent, ServiceTaskListCloudService, StartProcessCloudComponent, StartProcessCloudService, StartTaskCloudRequestModel, TASK_ASSIGNED_STATE, TASK_CANCELLED_STATE, TASK_CLAIM_PERMISSION, TASK_COMPLETED_STATE, TASK_CREATED_STATE, TASK_FILTERS_CLOUD_DIRECTIVES, TASK_FILTERS_SERVICE_TOKEN, TASK_FORM_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_TOKEN, TASK_LIST_PREFERENCES_SERVICE_TOKEN, TASK_RELEASE_PERMISSION, TASK_SUSPENDED_STATE, TASK_UPDATE_PERMISSION, TASK_VIEW_PERMISSION, TaskAssignmentFilterCloudComponent, TaskCloudEntryModel, TaskCloudModule, TaskCloudNodePaging, TaskCloudPagingList, TaskCloudService, TaskFilterCloudAdapter, TaskFilterCloudModel, TaskFilterCloudService, TaskFilterDialogCloudComponent, TaskFiltersCloudComponent, TaskFiltersCloudModule, TaskFormCloudComponent, TaskFormModule, TaskHeaderCloudComponent, TaskHeaderCloudModule, TaskListCloudComponent, TaskListCloudModule, TaskListCloudService, TaskListCloudSortingModel, TaskListRequestModel, TaskListRequestSortingModel, TaskQueryCloudRequestModel, TaskStatusFilter, TaskVariableCloud, UploadCloudWidgetComponent, UserPreferenceCloudService, UserTaskCloudButtonsComponent, UserTaskCloudComponent, VariableMapperService, WebSocketService, processCloudPresetsDefaultModel, radioButtonsSchema };
|
|
16033
|
+
export { APP_LIST_CLOUD_DIRECTIVES, AppDetailsCloudComponent, AppListCloudComponent, ApplicationVersionModel, ApplicationVersionResponseModel, AppsProcessCloudService, AssignmentType, AttachFileCloudWidgetComponent, BaseCloudService, CloudFormRenderingService, ContentCloudNodeSelectorService, DATE_FORMAT_CLOUD, DEFAULT_APP_INSTANCE_ICON, DEFAULT_APP_INSTANCE_THEME, DEFAULT_OPTION, DEFAULT_TASK_PRIORITIES, DEPLOYED_STATUS, DateCloudFilterType, DateCloudWidgetComponent, DateRangeFilterService, DescriptorCustomUIAuthFlowType, DisplayModeService, DisplayRichTextWidgetComponent, DropdownCloudWidgetComponent, EditProcessFilterCloudComponent, EditServiceTaskFilterCloudComponent, EditTaskFilterCloudComponent, FORM_CLOUD_DIRECTIVES, FORM_CLOUD_FIELD_VALIDATORS_TOKEN, FORM_CLOUD_SERVICE_FIELD_VALIDATORS_TOKEN, FilePropertiesTableCloudComponent, FileViewerWidgetComponent, FormCloudComponent, FormCloudDisplayMode, FormCloudModule, FormCloudService, FormCustomOutcomesComponent, FormDefinitionSelectorCloudComponent, FormDefinitionSelectorCloudService, FormFieldType, FormSpinnerComponent, GroupCloudComponent, GroupCloudModule, GroupCloudWidgetComponent, HIDE_FILTER_LIMIT, IdentityGroupService, IdentityUserService, LAYOUT_GRID, LAYOUT_LIST, LocalPreferenceCloudService, NotificationCloudService, PROCESS_CLOUD_DIRECTIVES, PROCESS_FILTERS_CLOUD_DIRECTIVES, PROCESS_FILTERS_SERVICE_TOKEN, PROCESS_FILTER_ACTION_DELETE, PROCESS_FILTER_ACTION_RESTORE, PROCESS_FILTER_ACTION_SAVE, PROCESS_FILTER_ACTION_SAVE_AS, PROCESS_FILTER_ACTION_SAVE_DEFAULT, PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN, PROCESS_SERVICES_CLOUD_DIRECTIVES, PeopleCloudComponent, PeopleCloudModule, PeopleCloudWidgetComponent, PeopleModeOptions, ProcessCloudContentService, ProcessCloudModule, ProcessCloudService, ProcessDefinitionCloud, ProcessFilterCloudAdapter, ProcessFilterCloudModel, ProcessFilterCloudService, ProcessFilterDialogCloudComponent, ProcessFiltersCloudComponent, ProcessFiltersCloudModule, ProcessHeaderCloudComponent, ProcessHeaderCloudModule, ProcessListCloudComponent, ProcessListCloudModule, ProcessListCloudPreferences, ProcessListCloudService, ProcessListCloudSortingModel, ProcessListRequestModel, ProcessListRequestSortingModel, ProcessPayloadCloud, ProcessQueryCloudRequestModel, ProcessServicesCloudModule, ProcessTaskListCloudService, PropertiesViewerWidgetComponent, PropertiesViewerWrapperComponent, RadioButtonsCloudWidgetComponent, RichTextEditorComponent, RichTextEditorModule, ScreenRenderingService, ServiceTaskFilterCloudService, ServiceTaskFiltersCloudComponent, ServiceTaskListCloudComponent, ServiceTaskListCloudService, StartProcessCloudComponent, StartProcessCloudService, StartTaskCloudRequestModel, TASK_ASSIGNED_STATE, TASK_CANCELLED_STATE, TASK_CLAIM_PERMISSION, TASK_COMPLETED_STATE, TASK_CREATED_STATE, TASK_FILTERS_CLOUD_DIRECTIVES, TASK_FILTERS_SERVICE_TOKEN, TASK_FORM_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_TOKEN, TASK_LIST_PREFERENCES_SERVICE_TOKEN, TASK_RELEASE_PERMISSION, TASK_SUSPENDED_STATE, TASK_UPDATE_PERMISSION, TASK_VIEW_PERMISSION, TaskAssignmentFilterCloudComponent, TaskCloudEntryModel, TaskCloudModule, TaskCloudNodePaging, TaskCloudPagingList, TaskCloudService, TaskFilterCloudAdapter, TaskFilterCloudModel, TaskFilterCloudService, TaskFilterDialogCloudComponent, TaskFiltersCloudComponent, TaskFiltersCloudModule, TaskFormCloudComponent, TaskFormModule, TaskHeaderCloudComponent, TaskHeaderCloudModule, TaskListCloudComponent, TaskListCloudModule, TaskListCloudService, TaskListCloudSortingModel, TaskListRequestModel, TaskListRequestSortingModel, TaskQueryCloudRequestModel, TaskStatusFilter, TaskVariableCloud, UploadCloudWidgetComponent, UserPreferenceCloudService, UserTaskCloudButtonsComponent, UserTaskCloudComponent, VariableMapperService, WebSocketService, processCloudPresetsDefaultModel, provideCloudFormRenderer, provideCloudPreferences, radioButtonsSchema };
|
|
16001
16034
|
//# sourceMappingURL=adf-process-services-cloud.mjs.map
|