vcomply-workflow-engine 6.2.1 → 6.2.3
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/more-option/more-option.component.mjs +10 -1
- package/esm2022/lib/sharedComponents/policy-category-list/category-list/category-list.component.mjs +82 -19
- package/esm2022/lib/sharedComponents/policy-category-list/constants/stubs.mjs +20 -20
- package/esm2022/lib/workflow-interfaces/create-policy-form.mjs +1 -1
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +10 -3
- package/fesm2022/vcomply-workflow-engine.mjs +114 -35
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/sharedComponents/policy-category-list/category-list/category-list.component.d.ts +19 -12
- package/lib/workflow-interfaces/create-policy-form.d.ts +1 -0
- package/package.json +1 -1
package/lib/sharedComponents/policy-category-list/category-list/category-list.component.d.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ListItem } from '../../program-list/interfaces/list-item.interface';
|
|
3
2
|
import { ListUtilsService } from '../../program-list/services/list-utils.service';
|
|
4
3
|
import { PolicyListApiService } from '../services/policy-list-api.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PolicyCategoryListComponent
|
|
5
|
+
export declare class PolicyCategoryListComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
6
|
private listUtils;
|
|
8
7
|
private policyListApiService;
|
|
9
8
|
/** Array of items to be displayed in the list */
|
|
10
|
-
items:
|
|
9
|
+
items: any[];
|
|
11
10
|
/** Object containing selected items, keyed by program ID */
|
|
12
11
|
selectedItems: any | null;
|
|
13
12
|
/** URL configuration object for API endpoints */
|
|
14
13
|
url: any;
|
|
15
14
|
/** Event emitted when an item is selected */
|
|
16
|
-
itemSelected: EventEmitter<
|
|
15
|
+
itemSelected: EventEmitter<any>;
|
|
17
16
|
/** Event emitted when an item is deselected */
|
|
18
|
-
itemDeselected: EventEmitter<
|
|
17
|
+
itemDeselected: EventEmitter<any>;
|
|
19
18
|
/** Event emitted when the selection changes */
|
|
20
|
-
itemsSelectedChange: EventEmitter<
|
|
19
|
+
itemsSelectedChange: EventEmitter<any[]>;
|
|
21
20
|
tableHeaders: string[];
|
|
22
21
|
currentPage: number;
|
|
23
22
|
pageSize: number;
|
|
24
23
|
totalPages: number;
|
|
25
24
|
searchTerm: string;
|
|
26
|
-
paginatedItems:
|
|
25
|
+
paginatedItems: any[];
|
|
27
26
|
activeProgram: any | null;
|
|
28
27
|
categoryList: any;
|
|
29
28
|
programTypeList: any[];
|
|
@@ -33,6 +32,7 @@ export declare class PolicyCategoryListComponent<T extends ListItem> implements
|
|
|
33
32
|
POLICY_NO_DATA: any;
|
|
34
33
|
ASSETS: any;
|
|
35
34
|
programCategoryList: any;
|
|
35
|
+
policyCategoryList: any;
|
|
36
36
|
/** Subject for handling debounced search */
|
|
37
37
|
private searchSubject;
|
|
38
38
|
/** Subject for cleanup subscriptions */
|
|
@@ -49,6 +49,13 @@ export declare class PolicyCategoryListComponent<T extends ListItem> implements
|
|
|
49
49
|
* @param data Array of items to load
|
|
50
50
|
*/
|
|
51
51
|
loadData(data: any): void;
|
|
52
|
+
prepareCategoryList(categories: any[]): {
|
|
53
|
+
id: any;
|
|
54
|
+
name: any;
|
|
55
|
+
children: any[];
|
|
56
|
+
}[];
|
|
57
|
+
buildPath(categories: any, map: any): string;
|
|
58
|
+
buildChildren(root: any, categories: any, map: any): any;
|
|
52
59
|
/**
|
|
53
60
|
* Handle item selection/deselection
|
|
54
61
|
* @param event Selection event
|
|
@@ -59,13 +66,13 @@ export declare class PolicyCategoryListComponent<T extends ListItem> implements
|
|
|
59
66
|
* Deselect a specific item
|
|
60
67
|
* @param item Item to deselect
|
|
61
68
|
*/
|
|
62
|
-
deselectItem(item:
|
|
69
|
+
deselectItem(item: any): void;
|
|
63
70
|
/**
|
|
64
71
|
* Check if an item is selected
|
|
65
72
|
* @param item Item to check
|
|
66
73
|
* @returns Boolean indicating if item is selected
|
|
67
74
|
*/
|
|
68
|
-
isSelected(item:
|
|
75
|
+
isSelected(item: any): boolean;
|
|
69
76
|
/**
|
|
70
77
|
* Navigate to specific page
|
|
71
78
|
* @param page Page number to navigate to
|
|
@@ -107,12 +114,12 @@ export declare class PolicyCategoryListComponent<T extends ListItem> implements
|
|
|
107
114
|
onFilterChange(): void;
|
|
108
115
|
checkCategoryAvailbility(): void;
|
|
109
116
|
/** Trigger debounced search */
|
|
110
|
-
search(): void;
|
|
117
|
+
search(header: string): void;
|
|
111
118
|
/** Perform search on items */
|
|
112
119
|
private performSearch;
|
|
113
120
|
/** Cleanup subscriptions on component destruction */
|
|
114
121
|
ngOnDestroy(): void;
|
|
115
122
|
closePopover(event: any): void;
|
|
116
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PolicyCategoryListComponent
|
|
117
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PolicyCategoryListComponent
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PolicyCategoryListComponent, never>;
|
|
124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PolicyCategoryListComponent, "app-policy-category-list", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "url": { "alias": "url"; "required": false; }; }, { "itemSelected": "itemSelected"; "itemDeselected": "itemDeselected"; "itemsSelectedChange": "itemsSelectedChange"; }, never, never, false, never>;
|
|
118
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vcomply-workflow-engine",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
|
|
6
6
|
"@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "
|