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.
@@ -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<T extends ListItem> implements OnInit, OnChanges, OnDestroy {
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: T[];
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<T>;
15
+ itemSelected: EventEmitter<any>;
17
16
  /** Event emitted when an item is deselected */
18
- itemDeselected: EventEmitter<T>;
17
+ itemDeselected: EventEmitter<any>;
19
18
  /** Event emitted when the selection changes */
20
- itemsSelectedChange: EventEmitter<T[]>;
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: T[];
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: T): void;
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: T): boolean;
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<any>, never>;
117
- static ɵcmp: i0.ɵɵComponentDeclaration<PolicyCategoryListComponent<any>, "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>;
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
  }
@@ -34,6 +34,7 @@ export interface PolicyForm {
34
34
  addAssociatedDocuments: boolean;
35
35
  isPortalDisplayEnabled: boolean;
36
36
  addEffectiveDate: boolean;
37
+ addPolicyCategory: boolean;
37
38
  failed_time: string;
38
39
  frequency_details: string;
39
40
  frequency_text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "6.2.1",
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 "