vcomply-workflow-engine 6.2.3 → 6.2.4

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.
@@ -33,6 +33,15 @@ export declare class PolicyCategoryListComponent implements OnInit, OnChanges, O
33
33
  ASSETS: any;
34
34
  programCategoryList: any;
35
35
  policyCategoryList: any;
36
+ selectedCategory: any[];
37
+ searchConfig: {
38
+ [key: string]: {
39
+ term: string;
40
+ placeholder: string;
41
+ };
42
+ };
43
+ filteredCategories: any[];
44
+ filteredSubcategories: any[];
36
45
  /** Subject for handling debounced search */
37
46
  private searchSubject;
38
47
  /** Subject for cleanup subscriptions */
@@ -43,7 +52,7 @@ export declare class PolicyCategoryListComponent implements OnInit, OnChanges, O
43
52
  /** Handle changes to inputs */
44
53
  ngOnChanges(changes: SimpleChanges): void;
45
54
  /** Fetch program list from API */
46
- getProgramList(): void;
55
+ getPolicyCategoryList(): void;
47
56
  /**
48
57
  * Load data and initialize pagination
49
58
  * @param data Array of items to load
@@ -95,23 +104,7 @@ export declare class PolicyCategoryListComponent implements OnInit, OnChanges, O
95
104
  */
96
105
  viewCategory(item?: any): void;
97
106
  checkProgramCategoryExists(id: string): void;
98
- fetchProgramCategoryList(id: string): void;
99
- /**
100
- * Add parent tree information to categories
101
- * @param categories Array of categories
102
- * @returns Categories with parent tree information
103
- */
104
107
  addParentTreeToCategories(categories: any[]): any[];
105
- /**
106
- * Handle program type filter selection
107
- * @param event Selection event
108
- * @param item Program type being selected/deselected
109
- */
110
- selectFilter(event: any, item: any): void;
111
- /** Reset all applied filters */
112
- resetFilter(): void;
113
- /** Apply selected filters to the program list */
114
- onFilterChange(): void;
115
108
  checkCategoryAvailbility(): void;
116
109
  /** Trigger debounced search */
117
110
  search(header: string): void;
@@ -119,7 +112,6 @@ export declare class PolicyCategoryListComponent implements OnInit, OnChanges, O
119
112
  private performSearch;
120
113
  /** Cleanup subscriptions on component destruction */
121
114
  ngOnDestroy(): void;
122
- closePopover(event: any): void;
123
115
  static ɵfac: i0.ɵɵFactoryDeclaration<PolicyCategoryListComponent, never>;
124
116
  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>;
125
117
  }
@@ -18,3 +18,23 @@ export declare const POLICY_CATEGORY_LIST_STUBS: {
18
18
  })[];
19
19
  };
20
20
  };
21
+ export declare const POLICY_CATEGORY_LIST_STUBS_2: {
22
+ success: boolean;
23
+ statusCode: number;
24
+ statusMessage: string;
25
+ data: {
26
+ policyCategories: ({
27
+ id: number;
28
+ name: string;
29
+ parent: null;
30
+ origin: number;
31
+ level: number;
32
+ } | {
33
+ id: number;
34
+ name: string;
35
+ parent: number;
36
+ origin: number;
37
+ level: number;
38
+ })[];
39
+ };
40
+ };
@@ -8,7 +8,7 @@ export declare class PolicyListApiService {
8
8
  private authService;
9
9
  env: any;
10
10
  constructor(http: HttpClient, authService: AuthService, config?: Configurations);
11
- getPolicyCategoryList(apiUrl: string): Observable<any>;
11
+ getPolicyCategoryList(): Observable<any>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<PolicyListApiService, [null, null, { optional: true; }]>;
13
13
  static ɵprov: i0.ɵɵInjectableDeclaration<PolicyListApiService>;
14
14
  }
@@ -230,6 +230,7 @@ export declare class WorkflowPolicyComponent implements OnInit {
230
230
  selectedPrograms: any;
231
231
  allProgamSelected: ListItem[];
232
232
  linkProgram: any;
233
+ selectedPolicyCategory: any;
233
234
  constructor(policyService: PolicyService, snackBar: SnackBarService, uiKitService: UiKitService, authService: AuthService, responsibilityService: ResponsibilityService, router: Router, route: ActivatedRoute, frequencyService: FrequencyService, platformLocation: PlatformLocation, changeRef: ChangeDetectorRef, restApiService: RestApiService, commonService: CommonService, organizationUserService: OrganizationUserService, organizationCommonService: OrganizationCommonService, complianceCommonService: ComplianceCommonService, iframeService: IframeService);
234
235
  policyForm: PolicyForm;
235
236
  ngOnInit(): void;
@@ -418,6 +419,7 @@ export declare class WorkflowPolicyComponent implements OnInit {
418
419
  setNavigationUrl(): void;
419
420
  navigateToTemplate(): void;
420
421
  onItemsSelectedChange(items: ListItem[]): void;
422
+ onPolicyCategorySelected(event: any): void;
421
423
  selectCategory(): void;
422
424
  removeProgram(program: any): void;
423
425
  getLinkProgram(policyId: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "6.2.3",
3
+ "version": "6.2.4",
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 "