vcomply-workflow-engine 6.0.93 → 6.0.95
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/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +30 -7
- package/esm2022/lib/constants/api.constants.mjs +1 -6
- package/esm2022/lib/constants/policy.constant.mjs +6 -0
- package/esm2022/lib/constants/regix.constants.mjs +4 -0
- package/esm2022/lib/constants/responsibility.mjs +8 -0
- package/esm2022/lib/interfaces/policy.interface.mjs +2 -0
- package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/more-option/more-option.component.mjs +193 -13
- package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +2 -3
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +7 -4
- package/esm2022/lib/services/common.service.mjs +1 -40
- package/esm2022/lib/services/iframe.service.mjs +1 -14
- package/esm2022/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.mjs +6 -3
- package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +21 -10
- package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
- package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +2 -9
- package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +5 -267
- package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +16 -48
- package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.module.mjs +4 -8
- package/esm2022/lib/sharedComponents/pipes/risk-class.pipe.mjs +19 -0
- package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +17 -45
- package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +10 -13
- package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +35 -62
- package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -15
- package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +3 -8
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +453 -294
- package/esm2022/lib/workflow-engine-container/api-constants.mjs +2 -3
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +53 -32
- package/esm2022/lib/workflow-engine.module.mjs +7 -11
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +29 -46
- package/esm2022/lib/workflow-program/constants.mjs +3 -3
- package/esm2022/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.mjs +9 -13
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +365 -327
- package/esm2022/lib/workflow-services/policy.service.mjs +9 -8
- package/esm2022/lib/workflow-services/programs.service.mjs +114 -26
- package/esm2022/lib/workflow-services/responsibility.service.mjs +55 -60
- package/fesm2022/vcomply-workflow-engine.mjs +14037 -14465
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +3 -0
- package/lib/constants/api.constants.d.ts +0 -5
- package/lib/constants/policy.constant.d.ts +2 -0
- package/lib/constants/regix.constants.d.ts +3 -0
- package/lib/constants/responsibility.d.ts +7 -0
- package/lib/interfaces/policy.interface.d.ts +5 -0
- package/lib/interfaces/responsibilty.interface.d.ts +13 -13
- package/lib/services/common.service.d.ts +0 -28
- package/lib/services/iframe.service.d.ts +0 -6
- package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +6 -0
- package/lib/sharedComponents/format-and-evidence/format-and-evidence.component.d.ts +4 -1
- package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +0 -1
- package/lib/sharedComponents/frequency/frequency.service.d.ts +2 -92
- package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +1 -2
- package/lib/sharedComponents/link-responsibility/link-responsibility.module.d.ts +1 -2
- package/lib/sharedComponents/pipes/risk-class.pipe.d.ts +7 -0
- package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -5
- package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +1 -3
- package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +2 -6
- package/lib/workflow/shared/services/grc.service.d.ts +0 -1
- package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +2 -3
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +10 -32
- package/lib/workflow-engine-container/api-constants.d.ts +0 -1
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -5
- package/lib/workflow-engine.module.d.ts +2 -3
- package/lib/workflow-policy/workflow-policy.component.d.ts +0 -9
- package/lib/workflow-program/workflow-program.component.d.ts +9 -9
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/lib/workflow-services/policy.service.d.ts +1 -1
- package/lib/workflow-services/programs.service.d.ts +54 -13
- package/lib/workflow-services/responsibility.service.d.ts +4 -17
- package/package.json +1 -1
- package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
- package/esm2022/lib/interfaces/iframe-type.mjs +0 -7
- package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
- package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -27
- package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -23
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -269
- package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -51
- package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
- package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
- package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
- package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -19
- package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +0 -26
- package/lib/interfaces/frequency.interface.d.ts +0 -37
- package/lib/interfaces/iframe-type.d.ts +0 -5
- package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
- package/lib/sharedComponents/program-list/constant.d.ts +0 -20
- package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
- package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
- package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
- package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -125
- package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -15
- package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
- package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
- package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
- package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtbG9hZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Z4LXdvcmtmbG93LWVuZ2luZS9zcmMvbGliL3VpLWtpdC9sb2FkZXJzL3RhYmxlLWxvYWRlci90YWJsZS1sb2FkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdngtd29ya2Zsb3ctZW5naW5lL3NyYy9saWIvdW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IDEsIDFdO1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxufVxuIiwiPGRpdiBjbGFzcz1cInRhYmxlXCI+XG4gICAgPHRhYmxlIGNsYXNzPVwidGFibGUtbG9hZGVyXCI+XG4gICAgICAgIDx0Ym9keT5cbiAgICAgICAgICAgIDx0ciAqbmdGb3I9XCJsZXQgZGF0YSBvZiBsaXN0U2l6ZVwiPlxuICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz1cInNlcmlhbFwiPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInNlcmlhbFwiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz1cIm5hbWVcIiB3aWR0aD1cIjUwJVwiPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImxvYWRlclwiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz1cImFjdGlvblwiIHdpZHRoPVwiNTAlXCI+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXVzZXItZGV0YWlscy5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdngtd29ya2Zsb3ctZW5naW5lL3NyYy9saWIvd29ya2Zsb3cvc2hhcmVkL3dvcmtmbG93LXBpcGVzL2dldC11c2VyLWRldGFpbHMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFLcEQsTUFBTSxPQUFPLGtCQUFrQjtJQUM3QixTQUFTLENBQUMsR0FBYSxFQUFFLElBQVc7UUFDbEMsTUFBTSxXQUFXLEdBQUcsSUFBSTthQUNyQixNQUFNLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLEdBQUcsRUFBRSxRQUFRLENBQUMsSUFBSSxFQUFFLEVBQ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tcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICBuYW1lOiBpdGVtPy5uYW1lLFxuICAgICAgICAgIGVtYWlsOiBpdGVtPy5lbWFpbCxcbiAgICAgICAgICBzaG9ydF9uYW1lOiBpdGVtPy5uYW1lPy5zcGxpdCgnICcpLm1hcCgobjogc3RyaW5nKSA9PiBuWzBdKS5qb2luKCcnKSxcbiAgICAgICAgICBhdmF0YXI6IGl0ZW0/LmltYWdlUGF0aCB8fCAnJ1xuICAgICAgICB9O1xuICAgICAgfSk7XG4gICAgcmV0dXJuIHVzZXJEZXRhaWxzO1xuICB9XG59ICJdfQ==
|
|
@@ -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,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,20 +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
|
-
}[];
|
|
10
|
-
export declare const PROGRAM_OBJECT: {
|
|
11
|
-
regulations: number;
|
|
12
|
-
standards: number;
|
|
13
|
-
internal_controls: number;
|
|
14
|
-
others: number;
|
|
15
|
-
};
|
|
16
|
-
export declare const PROGRAM_NO_DATA: {
|
|
17
|
-
programList: string;
|
|
18
|
-
categoryList: string;
|
|
19
|
-
search: string;
|
|
20
|
-
};
|
|
@@ -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,125 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy } 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
|
-
/**
|
|
7
|
-
* A reusable component for displaying and managing a list of programs with filtering, pagination, and category viewing capabilities.
|
|
8
|
-
*
|
|
9
|
-
* Features:
|
|
10
|
-
* - Program listing with pagination
|
|
11
|
-
* - Search functionality with debounce
|
|
12
|
-
* - Program type filtering
|
|
13
|
-
* - Category viewing for selected programs
|
|
14
|
-
* - Multi-select capability
|
|
15
|
-
*
|
|
16
|
-
* @template T Extends ListItem interface for type safety of list items
|
|
17
|
-
*/
|
|
18
|
-
export declare class ProgramListComponent<T extends ListItem> implements OnInit, OnChanges, OnDestroy {
|
|
19
|
-
private listUtils;
|
|
20
|
-
private programListApiService;
|
|
21
|
-
/** Array of items to be displayed in the list */
|
|
22
|
-
items: T[];
|
|
23
|
-
/** Object containing selected items, keyed by program ID */
|
|
24
|
-
selectedItems: any | null;
|
|
25
|
-
/** URL configuration object for API endpoints */
|
|
26
|
-
url: any;
|
|
27
|
-
/** Event emitted when an item is selected */
|
|
28
|
-
itemSelected: EventEmitter<T>;
|
|
29
|
-
/** Event emitted when an item is deselected */
|
|
30
|
-
itemDeselected: EventEmitter<T>;
|
|
31
|
-
/** Event emitted when the selection changes */
|
|
32
|
-
itemsSelectedChange: EventEmitter<T[]>;
|
|
33
|
-
tableHeaders: string[];
|
|
34
|
-
currentPage: number;
|
|
35
|
-
pageSize: number;
|
|
36
|
-
totalPages: number;
|
|
37
|
-
searchTerm: string;
|
|
38
|
-
paginatedItems: T[];
|
|
39
|
-
activeProgram: any | null;
|
|
40
|
-
categoryList: any[];
|
|
41
|
-
programTypeList: any[];
|
|
42
|
-
selectedProgramType: any[];
|
|
43
|
-
loaderState: any;
|
|
44
|
-
appliedProgramType: any[];
|
|
45
|
-
PROGRAM_NO_DATA: any;
|
|
46
|
-
ASSETS: any;
|
|
47
|
-
/** Subject for handling debounced search */
|
|
48
|
-
private searchSubject;
|
|
49
|
-
/** Subject for cleanup subscriptions */
|
|
50
|
-
private destroy$;
|
|
51
|
-
constructor(listUtils: ListUtilsService, programListApiService: ProgramListApiService);
|
|
52
|
-
/** Initialize component by fetching program list */
|
|
53
|
-
ngOnInit(): void;
|
|
54
|
-
/** Handle changes to inputs */
|
|
55
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
56
|
-
/** Fetch program list from API */
|
|
57
|
-
getProgramList(): void;
|
|
58
|
-
/**
|
|
59
|
-
* Load data and initialize pagination
|
|
60
|
-
* @param data Array of items to load
|
|
61
|
-
*/
|
|
62
|
-
loadData(data: any): void;
|
|
63
|
-
/**
|
|
64
|
-
* Handle item selection/deselection
|
|
65
|
-
* @param event Selection event
|
|
66
|
-
* @param item Item being selected/deselected
|
|
67
|
-
*/
|
|
68
|
-
selectItem(event: any, item: any): void;
|
|
69
|
-
/**
|
|
70
|
-
* Deselect a specific item
|
|
71
|
-
* @param item Item to deselect
|
|
72
|
-
*/
|
|
73
|
-
deselectItem(item: T): void;
|
|
74
|
-
/**
|
|
75
|
-
* Check if an item is selected
|
|
76
|
-
* @param item Item to check
|
|
77
|
-
* @returns Boolean indicating if item is selected
|
|
78
|
-
*/
|
|
79
|
-
isSelected(item: T): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Navigate to specific page
|
|
82
|
-
* @param page Page number to navigate to
|
|
83
|
-
* @param data Data to paginate
|
|
84
|
-
*/
|
|
85
|
-
goToPage(page: number, data: any): void;
|
|
86
|
-
/**
|
|
87
|
-
* Get array of page numbers for pagination
|
|
88
|
-
* @returns Array of page numbers
|
|
89
|
-
*/
|
|
90
|
-
getPageNumbers(): number[];
|
|
91
|
-
/**
|
|
92
|
-
* Paginate items and update view
|
|
93
|
-
* @param data Data to paginate
|
|
94
|
-
*/
|
|
95
|
-
paginateItems(data: any): void;
|
|
96
|
-
/**
|
|
97
|
-
* View categories for a selected program
|
|
98
|
-
* @param item Program to view categories for
|
|
99
|
-
*/
|
|
100
|
-
viewCategory(item?: any): void;
|
|
101
|
-
/**
|
|
102
|
-
* Add parent tree information to categories
|
|
103
|
-
* @param categories Array of categories
|
|
104
|
-
* @returns Categories with parent tree information
|
|
105
|
-
*/
|
|
106
|
-
addParentTreeToCategories(categories: any[]): any[];
|
|
107
|
-
/**
|
|
108
|
-
* Handle program type filter selection
|
|
109
|
-
* @param event Selection event
|
|
110
|
-
* @param item Program type being selected/deselected
|
|
111
|
-
*/
|
|
112
|
-
selectFilter(event: any, item: any): void;
|
|
113
|
-
/** Reset all applied filters */
|
|
114
|
-
resetFilter(): void;
|
|
115
|
-
/** Apply selected filters to the program list */
|
|
116
|
-
onFilterChange(): void;
|
|
117
|
-
/** Trigger debounced search */
|
|
118
|
-
search(): void;
|
|
119
|
-
/** Perform search on items */
|
|
120
|
-
private performSearch;
|
|
121
|
-
/** Cleanup subscriptions on component destruction */
|
|
122
|
-
ngOnDestroy(): void;
|
|
123
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListComponent<any>, never>;
|
|
124
|
-
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>;
|
|
125
|
-
}
|
|
@@ -1,15 +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
|
-
import * as i9 from "../../pipes/pipes.module";
|
|
11
|
-
export declare class ProgramListModule {
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListModule, never>;
|
|
13
|
-
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 i9.PipesModule], [typeof i1.ProgramListComponent]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ProgramListModule>;
|
|
15
|
-
}
|
|
@@ -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
|
-
}
|