vcomply-workflow-engine 6.0.51 → 6.0.53
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-container/add-multiple-responsibility-container.component.mjs +2 -2
- package/esm2022/lib/add-multiple-risk/add-multiple-risk.component.mjs +2 -2
- package/esm2022/lib/constants/assets.constants.mjs +57 -0
- package/esm2022/lib/constants/link-responsibility.constants.mjs +2 -2
- package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/log-an-issue/log-an-issue.component.mjs +2 -2
- package/esm2022/lib/more-option/more-option.component.mjs +49 -6
- package/esm2022/lib/report-a-case/components/assignee/assignee.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-assignees/case-assignees.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-category/case-category.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-details/case-details.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-owners/case-owners.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-priority/case-priority.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/case-type-dropdown/case-dropdown.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/due-date/due-date.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/field-holder/field-holder.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/linked assessment/linked-assessment.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/linked-responsibilities/linked-responsibilities.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/rc-details/rc-details.component.mjs +2 -2
- package/esm2022/lib/report-a-case/components/report-date/report-date.component.mjs +2 -2
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +2 -2
- package/esm2022/lib/services/report-case-permission.service.mjs +3 -5
- package/esm2022/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/build/image-choice/image-choice.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/build/thank-you/thank-you.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/build/welcome/welcome.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/logic/logic.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/logic-questions/logic-image-choice/logic-image-choice.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/preview/thank-you/thank-you.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/preview/welcome/welcome.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-editor/components/welcome-thankyou/welcome-thankyou.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/assessment-list/assessment-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/audit-category-list/audit-category-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/category-list/category-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/category-list-selection/category-list-selection/category-list-selection.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/category-multiselect/category-multi-select.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/checkbox-list/checkbox-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/framework-list/framework-list.component.mjs +2 -2
- 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-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 +1 -2
- 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 +1 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-responsibility-list/frequency-responsibility-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +1 -185
- package/esm2022/lib/sharedComponents/group-users-list/group-users-list.component.mjs +4 -4
- package/esm2022/lib/sharedComponents/link-program/link-program/link-program.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/owner-list/owner-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/policy-access/policy-access.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/policy-template/constants/template.constant.mjs +2 -2
- package/esm2022/lib/sharedComponents/program-listing/program-listing.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/radio-list/radio-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/radio-list-with-pagination/radio-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/responsibility-centers-list/responsibility-centers-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/responsibility-risk-selector/responsibility-risk-selector.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/review-frequency/review-frequency.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/roles-list/roles-list.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/select-approvers/select-approvers.component.mjs +2 -2
- package/esm2022/lib/sharedComponents/users-radio-list/users-radio-list.component.mjs +2 -2
- package/esm2022/lib/ui-kit/pagination/pagination/pagination.component.mjs +2 -2
- package/esm2022/lib/workflow/shared/components/attributes/attributes-checkbox/attributes-checkbox.component.mjs +2 -2
- package/esm2022/lib/workflow/shared/constants/cdn-link.constant.mjs +2 -2
- package/esm2022/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.mjs +2 -2
- package/esm2022/lib/workflow-assessment/workflow-assessment.component.mjs +2 -2
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +133 -275
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +3 -5
- package/esm2022/lib/workflow-engine.module.mjs +6 -13
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +2 -2
- package/esm2022/lib/workflow-program/create-program-ui/assessment-picker/assessment-picker.component.mjs +2 -2
- package/esm2022/lib/workflow-program/create-program-ui/define-framework-listing/define-framework-listing.component.mjs +2 -2
- package/esm2022/lib/workflow-program/create-program-ui/pagination/pagination/pagination.component.mjs +2 -2
- package/esm2022/lib/workflow-program/create-program-ui/role-list/role-list.component.mjs +2 -2
- package/esm2022/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.mjs +2 -2
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +241 -84
- package/esm2022/lib/workflow-risk/workflow-risk.component.mjs +2 -2
- package/esm2022/lib/workflow-services/programs.service.mjs +112 -28
- package/esm2022/lib/workflow-services/responsibility.service.mjs +9 -9
- package/esm2022/lib/workflow-survey-form/workflow-survey-form.component.mjs +2 -2
- package/fesm2022/vcomply-workflow-engine.mjs +598 -1130
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/interfaces/responsibilty.interface.d.ts +1 -1
- package/lib/services/report-case-permission.service.d.ts +1 -3
- package/lib/sharedComponents/frequency/frequency.service.d.ts +0 -30
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +4 -29
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -2
- package/lib/workflow-engine.module.d.ts +40 -42
- package/lib/workflow-program/workflow-program.component.d.ts +4 -6
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/lib/workflow-services/programs.service.d.ts +53 -13
- package/package.json +1 -1
- package/esm2022/lib/constants/assessts.constants.mjs +0 -57
- package/esm2022/lib/constants/mock.mjs +0 -130
- package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
- package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -16
- 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 -20
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -171
- package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -43
- 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/lib/constants/mock.d.ts +0 -15
- package/lib/interfaces/frequency.interface.d.ts +0 -37
- package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
- package/lib/sharedComponents/program-list/constant.d.ts +0 -9
- 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 -46
- package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -13
- 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/constants/{assessts.constants.d.ts → assets.constants.d.ts} +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { ProgramListComponent } from './program-list/program-list.component';
|
|
5
|
-
import { FormgroupModule } from "../../formgroup/formgroup.module";
|
|
6
|
-
import { NoDataModule } from '../../ui-kit/no-data/no-data.module';
|
|
7
|
-
import { PopoverModule } from '../../ui-kit/popover/popover.module';
|
|
8
|
-
import { CheckSelectedItemsPipe } from './pipes/check-selected-items.pipes';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export class ProgramListModule {
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgramListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
12
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ProgramListModule, declarations: [ProgramListComponent,
|
|
13
|
-
CheckSelectedItemsPipe], imports: [CommonModule,
|
|
14
|
-
FormsModule,
|
|
15
|
-
FormgroupModule,
|
|
16
|
-
NoDataModule,
|
|
17
|
-
PopoverModule], exports: [ProgramListComponent] }); }
|
|
18
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgramListModule, imports: [CommonModule,
|
|
19
|
-
FormsModule,
|
|
20
|
-
FormgroupModule,
|
|
21
|
-
NoDataModule,
|
|
22
|
-
PopoverModule] }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgramListModule, decorators: [{
|
|
25
|
-
type: NgModule,
|
|
26
|
-
args: [{
|
|
27
|
-
declarations: [
|
|
28
|
-
ProgramListComponent,
|
|
29
|
-
CheckSelectedItemsPipe
|
|
30
|
-
],
|
|
31
|
-
imports: [
|
|
32
|
-
CommonModule,
|
|
33
|
-
FormsModule,
|
|
34
|
-
FormgroupModule,
|
|
35
|
-
NoDataModule,
|
|
36
|
-
PopoverModule
|
|
37
|
-
],
|
|
38
|
-
exports: [
|
|
39
|
-
ProgramListComponent
|
|
40
|
-
]
|
|
41
|
-
}]
|
|
42
|
-
}] });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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W1zUGlwZVxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIEZvcm1ncm91cE1vZHVsZSxcbiAgICBOb0RhdGFNb2R1bGUsXG4gICAgUG9wb3Zlck1vZHVsZVxuXSxcbiAgZXhwb3J0czogW1xuICAgIFByb2dyYW1MaXN0Q29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgUHJvZ3JhbUxpc3RNb2R1bGUgeyB9XG4iXX0=
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// list-utils.service.ts
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class ListUtilsService {
|
|
5
|
-
paginate(items, currentPage, pageSize) {
|
|
6
|
-
const startIndex = (currentPage - 1) * pageSize;
|
|
7
|
-
const endIndex = startIndex + pageSize;
|
|
8
|
-
return items.slice(startIndex, endIndex);
|
|
9
|
-
}
|
|
10
|
-
getPageNumbers(totalItems, pageSize) {
|
|
11
|
-
const totalPages = Math.ceil(totalItems / pageSize);
|
|
12
|
-
const pages = [];
|
|
13
|
-
for (let i = 1; i <= totalPages; i++) {
|
|
14
|
-
pages.push(i);
|
|
15
|
-
}
|
|
16
|
-
return pages;
|
|
17
|
-
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListUtilsService, providedIn: 'root' }); }
|
|
20
|
-
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListUtilsService, decorators: [{
|
|
22
|
-
type: Injectable,
|
|
23
|
-
args: [{
|
|
24
|
-
providedIn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1
|
-
import { Injectable, Optional } from '@angular/core';
|
|
2
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common/http";
|
|
5
|
-
import * as i2 from "../../../workflow-services/auth.service";
|
|
6
|
-
import * as i3 from "../../../configurations";
|
|
7
|
-
export class ProgramListApiService {
|
|
8
|
-
constructor(http, authService, config) {
|
|
9
|
-
this.http = http;
|
|
10
|
-
this.authService = authService;
|
|
11
|
-
if (config) {
|
|
12
|
-
this.env = config.envConfig;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
getProgramList(apiUrl) {
|
|
16
|
-
let httpOptions = {};
|
|
17
|
-
let headers = new HttpHeaders();
|
|
18
|
-
httpOptions.headers = headers.append('token', this.authService.getAuthorizationToken());
|
|
19
|
-
return this.http.get(`${this.env.complianceGet}${apiUrl}`, httpOptions);
|
|
20
|
-
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgramListApiService, deps: [{ token: i1.HttpClient }, { token: i2.AuthService }, { token: i3.Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgramListApiService, providedIn: 'root' }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgramListApiService, decorators: [{
|
|
25
|
-
type: Injectable,
|
|
26
|
-
args: [{
|
|
27
|
-
providedIn: 'root'
|
|
28
|
-
}]
|
|
29
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.Configurations, decorators: [{
|
|
30
|
-
type: Optional
|
|
31
|
-
}] }]; } });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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KTogT2JzZXJ2YWJsZTxhbnk+IHtcbiAgICAgICAgbGV0IGh0dHBPcHRpb25zOiBhbnkgPSB7fTtcbiAgICBsZXQgaGVhZGVycyA9IG5ldyBIdHRwSGVhZGVycygpO1xuICAgIGh0dHBPcHRpb25zLmhlYWRlcnMgPSBoZWFkZXJzLmFwcGVuZChcbiAgICAgICd0b2tlbicsXG4gICAgICB0aGlzLmF1dGhTZXJ2aWNlLmdldEF1dGhvcml6YXRpb25Ub2tlbigpXG4gICAgKTtcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQ8YW55PihgJHt0aGlzLmVudi5jb21wbGlhbmNlR2V0fSR7YXBpVXJsfWAsIGh0dHBPcHRpb25zKTtcbiAgICB9XG4gIH0iXX0=
|
package/lib/constants/mock.d.ts
DELETED
|
@@ -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,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,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,46 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ListItem } from '../interfaces/list-item.interface';
|
|
3
|
-
import { DataSource } from '../interfaces/data-source.interface';
|
|
4
|
-
import { ListUtilsService } from '../services/list-utils.service';
|
|
5
|
-
import { ProgramListApiService } from '../services/program-list-api.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ProgramListComponent<T extends ListItem> implements OnInit, OnChanges {
|
|
8
|
-
private listUtils;
|
|
9
|
-
private programListApiService;
|
|
10
|
-
items: T[];
|
|
11
|
-
selectedItems: any | null;
|
|
12
|
-
itemTemplate: TemplateRef<any> | undefined;
|
|
13
|
-
dataSource: DataSource<T> | undefined;
|
|
14
|
-
itemSelected: EventEmitter<T>;
|
|
15
|
-
itemDeselected: EventEmitter<T>;
|
|
16
|
-
itemsSelectedChange: EventEmitter<T[]>;
|
|
17
|
-
tableHeaders: string[];
|
|
18
|
-
currentPage: number;
|
|
19
|
-
pageSize: number;
|
|
20
|
-
totalPages: number;
|
|
21
|
-
searchTerm: string;
|
|
22
|
-
paginatedItems: T[];
|
|
23
|
-
activeProgram: any | null;
|
|
24
|
-
categoryList: any[];
|
|
25
|
-
programTypeList: any[];
|
|
26
|
-
selectedProgramType: any[];
|
|
27
|
-
constructor(listUtils: ListUtilsService, programListApiService: ProgramListApiService);
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
-
getProgramList(): void;
|
|
31
|
-
loadData(): void;
|
|
32
|
-
search(): void;
|
|
33
|
-
selectItem(event: any, item: any): void;
|
|
34
|
-
deselectItem(item: T): void;
|
|
35
|
-
isSelected(item: T): boolean;
|
|
36
|
-
goToPage(page: number): void;
|
|
37
|
-
getPageNumbers(): number[];
|
|
38
|
-
paginateItems(): void;
|
|
39
|
-
viewCategory(item?: any): void;
|
|
40
|
-
addParentTreeToCategories(categories: any[]): any[];
|
|
41
|
-
selectFilter(event: any, item: any): void;
|
|
42
|
-
resetFilter(): void;
|
|
43
|
-
onFilterChange(): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListComponent<any>, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgramListComponent<any>, "app-program-list", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "itemSelected": "itemSelected"; "itemDeselected": "itemDeselected"; "itemsSelectedChange": "itemsSelectedChange"; }, never, never, false, never>;
|
|
46
|
-
}
|
|
@@ -1,13 +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
|
-
export declare class ProgramListModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListModule, never>;
|
|
11
|
-
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 i1.ProgramListComponent]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ProgramListModule>;
|
|
13
|
-
}
|
|
@@ -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
|
-
}
|
|
File without changes
|