vcomply-workflow-engine 6.0.84 → 6.0.85

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 (97) hide show
  1. package/esm2022/lib/constants/api.constants.mjs +1 -6
  2. package/esm2022/lib/constants/policy.constant.mjs +6 -0
  3. package/esm2022/lib/interfaces/policy.interface.mjs +2 -0
  4. package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
  5. package/esm2022/lib/more-option/more-option.component.mjs +183 -17
  6. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +2 -3
  7. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +7 -4
  8. package/esm2022/lib/services/common.service.mjs +1 -40
  9. package/esm2022/lib/services/iframe.service.mjs +1 -14
  10. package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +21 -10
  11. package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
  12. package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
  13. package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
  14. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
  15. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
  16. package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -3
  17. package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
  18. package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
  19. package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +2 -9
  20. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
  21. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +5 -267
  22. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +16 -48
  23. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.module.mjs +4 -8
  24. package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +17 -45
  25. package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +10 -13
  26. package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +35 -62
  27. package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -15
  28. package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +3 -8
  29. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +411 -283
  30. package/esm2022/lib/workflow-engine-container/api-constants.mjs +2 -3
  31. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +53 -32
  32. package/esm2022/lib/workflow-engine.module.mjs +6 -13
  33. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +29 -46
  34. package/esm2022/lib/workflow-program/constants.mjs +3 -3
  35. package/esm2022/lib/workflow-program/workflow-program.component.mjs +338 -123
  36. package/esm2022/lib/workflow-services/policy.service.mjs +9 -8
  37. package/esm2022/lib/workflow-services/programs.service.mjs +113 -26
  38. package/esm2022/lib/workflow-services/responsibility.service.mjs +56 -60
  39. package/fesm2022/vcomply-workflow-engine.mjs +14612 -14860
  40. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  41. package/lib/constants/api.constants.d.ts +0 -5
  42. package/lib/constants/policy.constant.d.ts +2 -0
  43. package/lib/interfaces/policy.interface.d.ts +5 -0
  44. package/lib/interfaces/responsibilty.interface.d.ts +13 -13
  45. package/lib/services/common.service.d.ts +0 -28
  46. package/lib/services/iframe.service.d.ts +0 -6
  47. package/lib/sharedComponents/format-and-evidence/format-and-evidence.component.d.ts +4 -1
  48. package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +0 -1
  49. package/lib/sharedComponents/frequency/frequency.service.d.ts +2 -92
  50. package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +1 -2
  51. package/lib/sharedComponents/link-responsibility/link-responsibility.module.d.ts +1 -2
  52. package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -5
  53. package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +1 -3
  54. package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +2 -6
  55. package/lib/workflow/shared/services/grc.service.d.ts +0 -1
  56. package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +2 -3
  57. package/lib/workflow-compliance/workflow-compliance.component.d.ts +6 -32
  58. package/lib/workflow-engine-container/api-constants.d.ts +0 -1
  59. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -5
  60. package/lib/workflow-engine.module.d.ts +40 -42
  61. package/lib/workflow-policy/workflow-policy.component.d.ts +0 -9
  62. package/lib/workflow-program/workflow-program.component.d.ts +4 -8
  63. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  64. package/lib/workflow-services/policy.service.d.ts +1 -1
  65. package/lib/workflow-services/programs.service.d.ts +53 -13
  66. package/lib/workflow-services/responsibility.service.d.ts +4 -17
  67. package/package.json +1 -1
  68. package/esm2022/lib/constants/mock.mjs +0 -152
  69. package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
  70. package/esm2022/lib/interfaces/iframe-type.mjs +0 -7
  71. package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
  72. package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -16
  73. package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
  74. package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
  75. package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -23
  76. package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -182
  77. package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -47
  78. package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
  79. package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
  80. package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
  81. package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -19
  82. package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +0 -26
  83. package/lib/constants/mock.d.ts +0 -15
  84. package/lib/interfaces/frequency.interface.d.ts +0 -37
  85. package/lib/interfaces/iframe-type.d.ts +0 -5
  86. package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
  87. package/lib/sharedComponents/program-list/constant.d.ts +0 -9
  88. package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
  89. package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
  90. package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
  91. package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -45
  92. package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -14
  93. package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
  94. package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
  95. package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
  96. package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
  97. package/lib/workflow/shared/workflow-pipes/get-user-details.pipe.d.ts +0 -7
@@ -1,19 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export class TableLoaderComponent {
5
- constructor() {
6
- this.listSize = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
7
- }
8
- ngOnInit() {
9
- }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TableLoaderComponent, selector: "app-table-loader", inputs: { listSize: "listSize" }, ngImport: i0, template: "<div class=\"table\">\n <table class=\"table-loader\">\n <tbody>\n <tr *ngFor=\"let data of listSize\">\n <td class=\"serial\">\n <span class=\"serial\"></span>\n </td>\n <td class=\"name\" width=\"50%\">\n <span class=\"loader\"></span>\n </td>\n <td class=\"action\" width=\"50%\">\n <span class=\"loader\"></span>\n </td>\n </tr>\n </tbody>\n </table>\n</div>", styles: [".table table.table-loader{width:100%;position:relative;border-collapse:separate;border-spacing:0 .1875rem;border:none;table-layout:auto}.table table.table-loader thead tr th{font-size:.6875rem;padding:.75rem .625rem;background:#f1f1f1;text-transform:uppercase;color:#747576;font-weight:600;line-height:1.0625rem;text-align:left;position:sticky;top:.1875rem;font-weight:400;white-space:nowrap;z-index:2}.table table.table-loader thead tr th:before{height:.3125rem;content:\"\";position:absolute;top:-.1875rem;right:0;left:0;background:#f1f1f1;z-index:1}.table table.table-loader thead tr th:first-child{border-radius:2px 0 0;text-align:center;width:2.75rem}.table table.table-loader thead tr th:last-child{border-radius:0 2px 0 0}.table table.table-loader thead tr th:last-child:before{border-radius:0 2px 0 0}.table table.table-loader tbody tr{margin-bottom:.1875rem;table-layout:auto;position:relative;transition:all .2s ease-in-out}.table table.table-loader tbody tr td{background:#fff;padding:0 .5rem;height:3.125rem;max-width:15.625rem;border:none;width:50%;table-layout:auto}.table table.table-loader tbody tr td.serial{width:2rem}.table table.table-loader tbody tr td span.serial{width:1rem;margin:0;background:#f8f8f8;writing-mode:vertical-lr;color:#747576;font-size:.625rem;display:flex;align-items:center;justify-content:center;height:3.125rem;font-weight:500}.table table.table-loader tbody tr td span.loader{display:block;width:100%;height:.75rem;border-radius:.75rem;background:#f3f3f3}.table table.table-loader tbody tr td.name{width:calc(100% - 31.25rem);padding-left:0}.table table.table-loader tbody tr td:first-child{border-radius:2px 0 0 2px}.table table.table-loader tbody tr td:last-child{text-align:right;border-radius:0 2px 2px 0}.table table.table-loader tbody tr td:last-child .loader{border-radius:.5rem;width:1.5rem;float:right}.table table.table-loader tbody tr:hover{box-shadow:0 0 15px #1e5dd359;z-index:2}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableLoaderComponent, decorators: [{
14
- type: Component,
15
- args: [{ selector: 'app-table-loader', template: "<div class=\"table\">\n <table class=\"table-loader\">\n <tbody>\n <tr *ngFor=\"let data of listSize\">\n <td class=\"serial\">\n <span class=\"serial\"></span>\n </td>\n <td class=\"name\" width=\"50%\">\n <span class=\"loader\"></span>\n </td>\n <td class=\"action\" width=\"50%\">\n <span class=\"loader\"></span>\n </td>\n </tr>\n </tbody>\n </table>\n</div>", styles: [".table table.table-loader{width:100%;position:relative;border-collapse:separate;border-spacing:0 .1875rem;border:none;table-layout:auto}.table table.table-loader thead tr th{font-size:.6875rem;padding:.75rem .625rem;background:#f1f1f1;text-transform:uppercase;color:#747576;font-weight:600;line-height:1.0625rem;text-align:left;position:sticky;top:.1875rem;font-weight:400;white-space:nowrap;z-index:2}.table table.table-loader thead tr th:before{height:.3125rem;content:\"\";position:absolute;top:-.1875rem;right:0;left:0;background:#f1f1f1;z-index:1}.table table.table-loader thead tr th:first-child{border-radius:2px 0 0;text-align:center;width:2.75rem}.table table.table-loader thead tr th:last-child{border-radius:0 2px 0 0}.table table.table-loader thead tr th:last-child:before{border-radius:0 2px 0 0}.table table.table-loader tbody tr{margin-bottom:.1875rem;table-layout:auto;position:relative;transition:all .2s ease-in-out}.table table.table-loader tbody tr td{background:#fff;padding:0 .5rem;height:3.125rem;max-width:15.625rem;border:none;width:50%;table-layout:auto}.table table.table-loader tbody tr td.serial{width:2rem}.table table.table-loader tbody tr td span.serial{width:1rem;margin:0;background:#f8f8f8;writing-mode:vertical-lr;color:#747576;font-size:.625rem;display:flex;align-items:center;justify-content:center;height:3.125rem;font-weight:500}.table table.table-loader tbody tr td span.loader{display:block;width:100%;height:.75rem;border-radius:.75rem;background:#f3f3f3}.table table.table-loader tbody tr td.name{width:calc(100% - 31.25rem);padding-left:0}.table table.table-loader tbody tr td:first-child{border-radius:2px 0 0 2px}.table table.table-loader tbody tr td:last-child{text-align:right;border-radius:0 2px 2px 0}.table table.table-loader tbody tr td:last-child .loader{border-radius:.5rem;width:1.5rem;float:right}.table table.table-loader tbody tr:hover{box-shadow:0 0 15px #1e5dd359;z-index:2}\n"] }]
16
- }], ctorParameters: function () { return []; }, propDecorators: { listSize: [{
17
- type: Input
18
- }] } });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtbG9hZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Z4LXdvcmtmbG93LWVuZ2luZS9zcmMvbGliL3VpLWtpdC9sb2FkZXJzL3RhYmxlLWxvYWRlci90YWJsZS1sb2FkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdngtd29ya2Zsb3ctZW5naW5lL3NyYy9saWIvdWkta2l0L2xvYWRlcnMvdGFibGUtbG9hZGVyL3RhYmxlLWxvYWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQzs7O0FBT3pELE1BQU0sT0FBTyxvQkFBb0I7SUFJL0I7UUFGUyxhQUFRLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSx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8c3BhbiBjbGFzcz1cInNlcmlhbFwiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz1cIm5hbWVcIiB3aWR0aD1cIjUwJVwiPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImxvYWRlclwiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz1cImFjdGlvblwiIHdpZHRoPVwiNTAlXCI+XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwibG9hZGVyXCI+PC9zcGFuPlxuICAgICAgICAgICAgICAgIDwvdGQ+XG4gICAgICAgICAgICA8L3RyPlxuICAgICAgICA8L3Rib2R5PlxuICAgIDwvdGFibGU+XG48L2Rpdj4iXX0=
@@ -1,26 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class GetUserDetailsPipe {
4
- transform(ids, list) {
5
- const userDetails = list
6
- .filter((item) => ids?.includes(item?.id))
7
- .map((item) => {
8
- return {
9
- name: item?.name,
10
- email: item?.email,
11
- short_name: item?.name?.split(' ').map((n) => n[0]).join(''),
12
- avatar: item?.imagePath || ''
13
- };
14
- });
15
- return userDetails;
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetUserDetailsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
18
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GetUserDetailsPipe, name: "getUserDetails" }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetUserDetailsPipe, decorators: [{
21
- type: Pipe,
22
- args: [{
23
- name: 'getUserDetails',
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,ey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2R0FBbEIsa0JBQWtCOzs0RkFBbEIsa0JBQWtCO2tCQUg5QixJQUFJO21CQUFDO29CQUNKLElBQUksRUFBRSxnQkFBZ0I7aUJBQ3ZCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AUGlwZSh7XG4gIG5hbWU6ICdnZXRVc2VyRGV0YWlscycsXG59KVxuZXhwb3J0IGNsYXNzIEdldFVzZXJEZXRhaWxzUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0oaWRzOiBudW1iZXJbXSwgbGlzdDogYW55W10pOiBhbnlbXSB7XG4gICAgY29uc3QgdXNlckRldGFpbHMgPSBsaXN0XG4gICAgICAuZmlsdGVyKChpdGVtKSA9PiBpZHM/LmluY2x1ZGVzKGl0ZW0/LmlkKSlcbiAgICAgIC5tYXAoKGl0ZW0pID0+IHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICBuYW1lOiBpdGVtPy5uYW1lLFxuICAgICAgICAgIGVtYWlsOiBpdGVtPy5lbWFpbCxcbiAgICAgICAgICBzaG9ydF9uYW1lOiBpdGVtPy5uYW1lPy5zcGxpdCgnICcpLm1hcCgobjogc3RyaW5nKSA9PiBuWzBdKS5qb2luKCcnKSxcbiAgICAgICAgICBhdmF0YXI6IGl0ZW0/LmltYWdlUGF0aCB8fCAnJ1xuICAgICAgICB9O1xuICAgICAgfSk7XG4gICAgcmV0dXJuIHVzZXJEZXRhaWxzO1xuICB9XG59ICJdfQ==
@@ -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
- }