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