vcomply-workflow-engine 6.0.88 → 6.0.90

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.
Files changed (107) hide show
  1. package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +30 -7
  2. package/esm2022/lib/constants/api.constants.mjs +1 -6
  3. package/esm2022/lib/constants/policy.constant.mjs +6 -0
  4. package/esm2022/lib/constants/regix.constants.mjs +4 -0
  5. package/esm2022/lib/constants/responsibility.mjs +8 -0
  6. package/esm2022/lib/interfaces/policy.interface.mjs +2 -0
  7. package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
  8. package/esm2022/lib/more-option/more-option.component.mjs +183 -17
  9. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +2 -3
  10. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +7 -4
  11. package/esm2022/lib/services/common.service.mjs +1 -40
  12. package/esm2022/lib/services/iframe.service.mjs +1 -14
  13. package/esm2022/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.mjs +6 -3
  14. package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +21 -10
  15. package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
  16. package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
  17. package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
  18. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
  19. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
  20. package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -3
  21. package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
  22. package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
  23. package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +2 -9
  24. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
  25. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +5 -267
  26. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +16 -48
  27. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.module.mjs +4 -8
  28. package/esm2022/lib/sharedComponents/pipes/risk-class.pipe.mjs +19 -0
  29. package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +17 -45
  30. package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +10 -13
  31. package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +35 -62
  32. package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -15
  33. package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +3 -8
  34. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +453 -294
  35. package/esm2022/lib/workflow-engine-container/api-constants.mjs +2 -3
  36. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +53 -32
  37. package/esm2022/lib/workflow-engine.module.mjs +7 -11
  38. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +29 -46
  39. package/esm2022/lib/workflow-program/constants.mjs +3 -3
  40. package/esm2022/lib/workflow-program/workflow-program.component.mjs +338 -123
  41. package/esm2022/lib/workflow-services/policy.service.mjs +9 -8
  42. package/esm2022/lib/workflow-services/programs.service.mjs +113 -26
  43. package/esm2022/lib/workflow-services/responsibility.service.mjs +55 -60
  44. package/fesm2022/vcomply-workflow-engine.mjs +14780 -14946
  45. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  46. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +3 -0
  47. package/lib/constants/api.constants.d.ts +0 -5
  48. package/lib/constants/policy.constant.d.ts +2 -0
  49. package/lib/constants/regix.constants.d.ts +3 -0
  50. package/lib/constants/responsibility.d.ts +7 -0
  51. package/lib/interfaces/policy.interface.d.ts +5 -0
  52. package/lib/interfaces/responsibilty.interface.d.ts +13 -13
  53. package/lib/services/common.service.d.ts +0 -28
  54. package/lib/services/iframe.service.d.ts +0 -6
  55. package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +6 -0
  56. package/lib/sharedComponents/format-and-evidence/format-and-evidence.component.d.ts +4 -1
  57. package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +0 -1
  58. package/lib/sharedComponents/frequency/frequency.service.d.ts +2 -92
  59. package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +1 -2
  60. package/lib/sharedComponents/link-responsibility/link-responsibility.module.d.ts +1 -2
  61. package/lib/sharedComponents/pipes/risk-class.pipe.d.ts +7 -0
  62. package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -5
  63. package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +1 -3
  64. package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +2 -6
  65. package/lib/workflow/shared/services/grc.service.d.ts +0 -1
  66. package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +2 -3
  67. package/lib/workflow-compliance/workflow-compliance.component.d.ts +10 -32
  68. package/lib/workflow-engine-container/api-constants.d.ts +0 -1
  69. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -5
  70. package/lib/workflow-engine.module.d.ts +2 -3
  71. package/lib/workflow-policy/workflow-policy.component.d.ts +0 -9
  72. package/lib/workflow-program/workflow-program.component.d.ts +4 -8
  73. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  74. package/lib/workflow-services/policy.service.d.ts +1 -1
  75. package/lib/workflow-services/programs.service.d.ts +53 -13
  76. package/lib/workflow-services/responsibility.service.d.ts +4 -17
  77. package/package.json +1 -1
  78. package/esm2022/lib/constants/mock.mjs +0 -152
  79. package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
  80. package/esm2022/lib/interfaces/iframe-type.mjs +0 -7
  81. package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
  82. package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -16
  83. package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
  84. package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
  85. package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -23
  86. package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -182
  87. package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -47
  88. package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
  89. package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
  90. package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
  91. package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -19
  92. package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +0 -26
  93. package/lib/constants/mock.d.ts +0 -15
  94. package/lib/interfaces/frequency.interface.d.ts +0 -37
  95. package/lib/interfaces/iframe-type.d.ts +0 -5
  96. package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
  97. package/lib/sharedComponents/program-list/constant.d.ts +0 -9
  98. package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
  99. package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
  100. package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
  101. package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -45
  102. package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -14
  103. package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
  104. package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
  105. package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
  106. package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
  107. package/lib/workflow/shared/workflow-pipes/get-user-details.pipe.d.ts +0 -7
@@ -1,15 +0,0 @@
1
- import { ListItem } from '../sharedComponents/program-list/interfaces/list-item.interface';
2
- export declare const MOCK_PROGRAMS: ListItem[];
3
- export declare const MOCK_CATEGORIES: ({
4
- id: string;
5
- name: string;
6
- description: string;
7
- level: number;
8
- parent: null;
9
- } | {
10
- id: string;
11
- name: string;
12
- description: string;
13
- level: number;
14
- parent: string;
15
- })[];
@@ -1,37 +0,0 @@
1
- export interface FrequencyObject {
2
- type: 'one_time' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semester' | 'yearly' | 'random' | 'ongoing' | 'on_completion_of' | 'biannually';
3
- endAfter: number;
4
- startBefore: number;
5
- autoDeactivate: number;
6
- day: number;
7
- time: string;
8
- repeatOptions?: RepeatOptions;
9
- random?: Random | {};
10
- onComplete?: OnComplete | {};
11
- onGoing?: OnGoing | {};
12
- }
13
- interface RepeatOptions {
14
- every: number;
15
- repeatOn: string;
16
- lifecycle: Lifecycle;
17
- }
18
- interface Random {
19
- type: string;
20
- occurrences: number;
21
- }
22
- interface OnComplete {
23
- rId: number;
24
- aId: number;
25
- rcId: number;
26
- startAfter: number;
27
- }
28
- interface OnGoing {
29
- reminders: number;
30
- startOf: 'week' | 'month' | 'quarter' | 'semester' | 'year';
31
- }
32
- interface Lifecycle {
33
- startFrom: string;
34
- endBy: string | undefined;
35
- endAfter: number | undefined;
36
- }
37
- export {};
@@ -1,5 +0,0 @@
1
- export declare enum PostMessageEvent {
2
- CLOSE_WEBVIEW = "closeWebview",
3
- PROGRAM_CREATED = "programCreated",
4
- PROGRAM_UPDATED = "programUpdated"
5
- }
@@ -1,9 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ListContainerComponent {
4
- heading: string;
5
- close: EventEmitter<void>;
6
- onClose(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ListContainerComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<ListContainerComponent, "app-list-container", never, { "heading": { "alias": "heading"; "required": false; }; }, { "close": "close"; }, never, ["[body]", "[footer]"], false, never>;
9
- }
@@ -1,9 +0,0 @@
1
- export declare const PROGRAM_TABLE_HEADERS: string[];
2
- export declare const PAGINATION_OPTIONS: {
3
- PAGE_SIZE: number;
4
- DEFAULT_CURRENT_PAGE: number;
5
- };
6
- export declare const PROGRAM_TYPE_LIST: {
7
- name: string;
8
- id: string;
9
- }[];
@@ -1,4 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export interface DataSource<T> {
3
- load(searchTerm?: string): Observable<T[]>;
4
- }
@@ -1,5 +0,0 @@
1
- export interface ListItem {
2
- id: string;
3
- name: string;
4
- type: "regulations" | "standards" | "internal_controls" | "others";
5
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class CheckSelectedItemsPipe implements PipeTransform {
4
- transform(id: string, selectedItems: any): boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckSelectedItemsPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CheckSelectedItemsPipe, "checkSelectedItems", false>;
7
- }
@@ -1,45 +0,0 @@
1
- import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ListItem } from '../interfaces/list-item.interface';
3
- import { ListUtilsService } from '../services/list-utils.service';
4
- import { ProgramListApiService } from '../services/program-list-api.service';
5
- import * as i0 from "@angular/core";
6
- export declare class ProgramListComponent<T extends ListItem> implements OnInit, OnChanges {
7
- private listUtils;
8
- private programListApiService;
9
- items: T[];
10
- selectedItems: any | null;
11
- url: any;
12
- itemSelected: EventEmitter<T>;
13
- itemDeselected: EventEmitter<T>;
14
- itemsSelectedChange: EventEmitter<T[]>;
15
- tableHeaders: string[];
16
- currentPage: number;
17
- pageSize: number;
18
- totalPages: number;
19
- searchTerm: string;
20
- paginatedItems: T[];
21
- activeProgram: any | null;
22
- categoryList: any[];
23
- programTypeList: any[];
24
- selectedProgramType: any[];
25
- loaderState: any;
26
- constructor(listUtils: ListUtilsService, programListApiService: ProgramListApiService);
27
- ngOnInit(): void;
28
- ngOnChanges(changes: SimpleChanges): void;
29
- getProgramList(): void;
30
- loadData(data: any): void;
31
- search(): void;
32
- selectItem(event: any, item: any): void;
33
- deselectItem(item: T): void;
34
- isSelected(item: T): boolean;
35
- goToPage(page: number): void;
36
- getPageNumbers(): number[];
37
- paginateItems(): void;
38
- viewCategory(item?: any): void;
39
- addParentTreeToCategories(categories: any[]): any[];
40
- selectFilter(event: any, item: any): void;
41
- resetFilter(): void;
42
- onFilterChange(): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListComponent<any>, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgramListComponent<any>, "app-program-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>;
45
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./program-list/program-list.component";
3
- import * as i2 from "./pipes/check-selected-items.pipes";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "../../formgroup/formgroup.module";
7
- import * as i6 from "../../ui-kit/no-data/no-data.module";
8
- import * as i7 from "../../ui-kit/popover/popover.module";
9
- import * as i8 from "../../ui-kit/loaders/loaders.module";
10
- export declare class ProgramListModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProgramListModule, [typeof i1.ProgramListComponent, typeof i2.CheckSelectedItemsPipe], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.FormgroupModule, typeof i6.NoDataModule, typeof i7.PopoverModule, typeof i8.LoadersModule], [typeof i1.ProgramListComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<ProgramListModule>;
14
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ListUtilsService {
3
- paginate<T>(items: T[], currentPage: number, pageSize: number): T[];
4
- getPageNumbers(totalItems: number, pageSize: number): number[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ListUtilsService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<ListUtilsService>;
7
- }
@@ -1,14 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { Configurations } from '../../../configurations';
4
- import { AuthService } from '../../../workflow-services/auth.service';
5
- import * as i0 from "@angular/core";
6
- export declare class ProgramListApiService {
7
- private http;
8
- private authService;
9
- env: any;
10
- constructor(http: HttpClient, authService: AuthService, config?: Configurations);
11
- getProgramList(apiUrl: string): Observable<any>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListApiService, [null, null, { optional: true; }]>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ProgramListApiService>;
14
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./table-loader/table-loader.component";
3
- import * as i2 from "@angular/common";
4
- export declare class LoadersModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadersModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<LoadersModule, [typeof i1.TableLoaderComponent], [typeof i2.CommonModule], [typeof i1.TableLoaderComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<LoadersModule>;
8
- }
@@ -1,9 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TableLoaderComponent implements OnInit {
4
- listSize: number[];
5
- constructor();
6
- ngOnInit(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TableLoaderComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<TableLoaderComponent, "app-table-loader", never, { "listSize": { "alias": "listSize"; "required": false; }; }, {}, never, never, false, never>;
9
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GetUserDetailsPipe implements PipeTransform {
4
- transform(ids: number[], list: any[]): any[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GetUserDetailsPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<GetUserDetailsPipe, "getUserDetails", false>;
7
- }