vcomply-workflow-engine 3.9.2 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/esm2022/lib/link-related-policies/link-related-policies.component.mjs +2 -1
  2. package/esm2022/lib/sharedComponents/document-section/document-section.component.mjs +24 -49
  3. package/esm2022/lib/workflow-engine.module.mjs +3 -11
  4. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +26 -36
  5. package/fesm2022/vcomply-workflow-engine.mjs +39 -877
  6. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  7. package/lib/sharedComponents/document-section/document-section.component.d.ts +1 -3
  8. package/lib/workflow-engine.module.d.ts +1 -3
  9. package/lib/workflow-policy/workflow-policy.component.d.ts +0 -2
  10. package/package.json +1 -1
  11. package/esm2022/lib/constants/template.constant.mjs +0 -6
  12. package/esm2022/lib/services/auth.service.mjs +0 -172
  13. package/esm2022/lib/sharedComponents/policy-template/constants/template.constant.mjs +0 -3
  14. package/esm2022/lib/sharedComponents/policy-template/policy-template.module.mjs +0 -65
  15. package/esm2022/lib/sharedComponents/policy-template/select-template-list/select-template-list.component.mjs +0 -206
  16. package/esm2022/lib/sharedComponents/policy-template/services/template.service.mjs +0 -67
  17. package/esm2022/lib/sharedComponents/policy-template/template-list-table/template-list-table.component.mjs +0 -42
  18. package/esm2022/lib/sharedComponents/policy-template/template-pipes/get-template-category.pipe.mjs +0 -19
  19. package/esm2022/lib/sharedComponents/policy-template/template-pipes/search-template.pipe.mjs +0 -59
  20. package/esm2022/lib/sharedComponents/policy-template/template-pipes/template-pipes.module.mjs +0 -19
  21. package/esm2022/lib/sharedComponents/policy-template/view-policy/view-policy/view-policy.component.mjs +0 -91
  22. package/esm2022/lib/sharedComponents/policy-template/view-policy/view-policy.module.mjs +0 -19
  23. package/esm2022/lib/ui-kit/multi-select/cs-multiselect/cs-multiselect.component.mjs +0 -203
  24. package/esm2022/lib/ui-kit/multi-select/cs-multiselect-option/cs-multiselect-option.component.mjs +0 -31
  25. package/esm2022/lib/ui-kit/multi-select/multi-select.module.mjs +0 -37
  26. package/esm2022/lib/ui-kit/multi-select/multi-select.service.mjs +0 -16
  27. package/lib/constants/template.constant.d.ts +0 -5
  28. package/lib/services/auth.service.d.ts +0 -39
  29. package/lib/sharedComponents/policy-template/constants/template.constant.d.ts +0 -2
  30. package/lib/sharedComponents/policy-template/policy-template.module.d.ts +0 -20
  31. package/lib/sharedComponents/policy-template/select-template-list/select-template-list.component.d.ts +0 -49
  32. package/lib/sharedComponents/policy-template/services/template.service.d.ts +0 -19
  33. package/lib/sharedComponents/policy-template/template-list-table/template-list-table.component.d.ts +0 -14
  34. package/lib/sharedComponents/policy-template/template-pipes/get-template-category.pipe.d.ts +0 -7
  35. package/lib/sharedComponents/policy-template/template-pipes/search-template.pipe.d.ts +0 -37
  36. package/lib/sharedComponents/policy-template/template-pipes/template-pipes.module.d.ts +0 -9
  37. package/lib/sharedComponents/policy-template/view-policy/view-policy/view-policy.component.d.ts +0 -25
  38. package/lib/sharedComponents/policy-template/view-policy/view-policy.module.d.ts +0 -9
  39. package/lib/ui-kit/multi-select/cs-multiselect/cs-multiselect.component.d.ts +0 -69
  40. package/lib/ui-kit/multi-select/cs-multiselect-option/cs-multiselect-option.component.d.ts +0 -12
  41. package/lib/ui-kit/multi-select/multi-select.module.d.ts +0 -11
  42. package/lib/ui-kit/multi-select/multi-select.service.d.ts +0 -7
@@ -1,39 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { BehaviorSubject, Observable } from 'rxjs';
3
- import { AuthorizerService } from '@vcomply/authorizer';
4
- import { Configurations } from '../configurations';
5
- import { OrganizationCommonService } from '../workflow-services/common-workflow-services/organization-common.service';
6
- import * as i0 from "@angular/core";
7
- export declare class AuthService {
8
- private http;
9
- private authorizer;
10
- private organizationCommonService;
11
- subscriptionDetails: BehaviorSubject<any[]>;
12
- userDetails: BehaviorSubject<any>;
13
- env: any;
14
- permissions: any;
15
- roleBasedPermission: any;
16
- constructor(http: HttpClient, authorizer: AuthorizerService, organizationCommonService: OrganizationCommonService, config?: Configurations);
17
- setPermission(): void;
18
- /**
19
- * Returns weather the user data loaded or not
20
- * @returns
21
- */
22
- startApp(): Promise<unknown>;
23
- /**
24
- * Gets user details
25
- * @returns
26
- */
27
- getUser(): Observable<void>;
28
- getSubscriptionDetails(): import("rxjs").Subscription;
29
- getUserRole(): 'KEY_ADMIN' | 'ADMIN' | 'MANAGER' | 'EXECUTIVE';
30
- logout(): void;
31
- convertUtcToLocalDateTime(timestamp: string | number): string;
32
- getNotificationDetails(): Observable<number>;
33
- userId(): number | "";
34
- getBussinessCycle(): Observable<Object>;
35
- getOrgId(): number | null;
36
- resetBusinessCycle(): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, [null, null, null, { optional: true; }]>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
39
- }
@@ -1,2 +0,0 @@
1
- export declare const NO_DATA_FOUND_IMAGE = "https://cdn.v-comply.com/libraries/workflow-engine/assets/workflow/search-data.svg";
2
- export declare const NO_DATA_FOUND_MESSAGE = "No results matched your search criteria.";
@@ -1,20 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./template-list-table/template-list-table.component";
3
- import * as i2 from "./select-template-list/select-template-list.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../../ui-kit/tooltip/tooltip.module";
6
- import * as i5 from "../../ui-kit/popover/popover.module";
7
- import * as i6 from "../no-data/no-data.module";
8
- import * as i7 from "../v-loader/v-loader.module";
9
- import * as i8 from "../../ui-kit/multi-select/multi-select.module";
10
- import * as i9 from "../floating-bar/floating-bar.module";
11
- import * as i10 from "./template-pipes/template-pipes.module";
12
- import * as i11 from "@angular/forms";
13
- import * as i12 from "../../pipes/pipes.module";
14
- import * as i13 from "../../formgroup/formgroup.module";
15
- import * as i14 from "./view-policy/view-policy.module";
16
- export declare class PolicyTemplateModule {
17
- static ɵfac: i0.ɵɵFactoryDeclaration<PolicyTemplateModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<PolicyTemplateModule, [typeof i1.TemplateListTableComponent, typeof i2.SelectTemplateListComponent], [typeof i3.CommonModule, typeof i4.TooltipModule, typeof i5.PopoverModule, typeof i6.NoDataModule, typeof i7.VLoaderModule, typeof i8.MultiSelectModule, typeof i9.FloatingBarModule, typeof i10.TemplatePipesModule, typeof i11.FormsModule, typeof i12.PipesModule, typeof i13.FormgroupModule, typeof i14.ViewPolicyModule], [typeof i1.TemplateListTableComponent, typeof i2.SelectTemplateListComponent]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<PolicyTemplateModule>;
20
- }
@@ -1,49 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { TemplateService } from '../services/template.service';
3
- import { PolicyService } from '../../../workflow-services/policy.service';
4
- import * as i0 from "@angular/core";
5
- export declare class SelectTemplateListComponent {
6
- private templateService;
7
- private policyService;
8
- animation: boolean;
9
- defaultTemplates: any[];
10
- customTemplates: any[] | null;
11
- templateList: any[];
12
- currentTab: string;
13
- loader: boolean;
14
- categoryList: any[];
15
- defaultCategoryList: any[];
16
- userCreatedCategoryList: any[];
17
- sortStatus: number;
18
- searchCategory: string;
19
- searchTemplate: string;
20
- selectedCategory: any[];
21
- NO_DATA_FOUND_IMAGE: string;
22
- NO_DATA_FOUND_MESSAGE: string;
23
- selectedTemplate: any[];
24
- isPreview: boolean;
25
- docData: any | null;
26
- previewTemplate: any;
27
- selectedCategoryId: number[];
28
- onTemplateSelect: EventEmitter<any>;
29
- constructor(templateService: TemplateService, policyService: PolicyService);
30
- ngOnInit(): void;
31
- setAnimation(): void;
32
- switchTab(tab: string): void;
33
- getCustomTemplates(): void;
34
- mapCustomTemplate(): void;
35
- getTemplate(): void;
36
- mapDefaultTemplate(): void;
37
- sortBy(key: string): void;
38
- onSelectCategory(category: any, event: any): void;
39
- onApplyFilter(event: any): void;
40
- onSelectTemplate(template: any): void;
41
- save(): void;
42
- close(): void;
43
- deleteEvent(): void;
44
- onPreview(details: any): void;
45
- onClosePreview(): void;
46
- getPreviewData(templateId: any): void;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectTemplateListComponent, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectTemplateListComponent, "app-select-template-list", never, { "selectedCategoryId": { "alias": "selectedCategoryId"; "required": false; }; }, { "onTemplateSelect": "onTemplateSelect"; }, never, never, false, never>;
49
- }
@@ -1,19 +0,0 @@
1
- import { HttpClient, HttpHeaders } from '@angular/common/http';
2
- import { AuthorizerService } from '@vcomply/authorizer';
3
- import { Configurations } from '../../../configurations';
4
- import { Observable } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare class TemplateService {
7
- private http;
8
- private authService;
9
- env: any;
10
- private tokenDetails;
11
- constructor(http: HttpClient, authService: AuthorizerService, config?: Configurations);
12
- sortByKey(array: any[], key: string, order?: number): any[];
13
- get headerToken(): HttpHeaders;
14
- fetchTemplates(payload: any): Observable<Object>;
15
- fetchDefaultCategories(): Observable<any>;
16
- getTemplateContent(id: string, type?: string): Observable<any>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, [null, null, { optional: true; }]>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
19
- }
@@ -1,14 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TemplateListTableComponent {
4
- selectedTemplate: any;
5
- templateList: any[];
6
- loader: boolean;
7
- categoryList: any[];
8
- onSort: EventEmitter<string>;
9
- onSelectTemplate: EventEmitter<any>;
10
- onPreview: EventEmitter<any>;
11
- onSelect(template: any): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateListTableComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplateListTableComponent, "app-template-list-table", never, { "selectedTemplate": { "alias": "selectedTemplate"; "required": false; }; "templateList": { "alias": "templateList"; "required": false; }; "loader": { "alias": "loader"; "required": false; }; "categoryList": { "alias": "categoryList"; "required": false; }; }, { "onSort": "onSort"; "onSelectTemplate": "onSelectTemplate"; "onPreview": "onPreview"; }, never, never, false, never>;
14
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GetTemplateCategoryPipe implements PipeTransform {
4
- transform(value: number[], list: any[]): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GetTemplateCategoryPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<GetTemplateCategoryPipe, "getTemplateCategory", false>;
7
- }
@@ -1,37 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @Pipe SearchByKeys
5
- *
6
- * A custom Angular pipe that filters an array of objects based on a search value and specified keys.
7
- *
8
- * @example
9
- * <div *ngFor="let item of items | SearchByKeys: ['name', 'description']: searchValue">
10
- * {{ item.name }}
11
- * </div>
12
- *
13
- * @class
14
- * @implements {PipeTransform}
15
- */
16
- /**
17
- * Transforms an array of objects by filtering them based on the provided keys and search value.
18
- *
19
- * @param {any[]} items - The array of objects to be filtered.
20
- * @param {string[]} keys - The keys of the objects to be searched.
21
- * @param {string} value - The search value to filter the objects.
22
- * @returns {any[]} - The filtered array of objects.
23
- */
24
- /**
25
- * Searches within an object for a value.
26
- *
27
- * @private
28
- * @param {any} obj - The object to search within.
29
- * @param {string} value - The search value.
30
- * @returns {boolean} - True if the value is found within the object, otherwise false.
31
- */
32
- export declare class SearchByKeysPipe implements PipeTransform {
33
- transform(items: any[], keys: string[], value: string): any[];
34
- private searchInObject;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchByKeysPipe, never>;
36
- static ɵpipe: i0.ɵɵPipeDeclaration<SearchByKeysPipe, "SearchByKeys", false>;
37
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./get-template-category.pipe";
3
- import * as i2 from "./search-template.pipe";
4
- import * as i3 from "@angular/common";
5
- export declare class TemplatePipesModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePipesModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<TemplatePipesModule, [typeof i1.GetTemplateCategoryPipe, typeof i2.SearchByKeysPipe], [typeof i3.CommonModule], [typeof i1.GetTemplateCategoryPipe, typeof i2.SearchByKeysPipe]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<TemplatePipesModule>;
9
- }
@@ -1,25 +0,0 @@
1
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { DocumentEditorContainerComponent, DocumentEditorSettingsModel } from '@syncfusion/ej2-angular-documenteditor';
3
- import { Configurations } from '../../../../configurations';
4
- import * as i0 from "@angular/core";
5
- export declare class ViewPolicyComponent implements OnInit, OnChanges {
6
- resizeEditor: boolean;
7
- serviceUrl: string;
8
- settings: DocumentEditorSettingsModel;
9
- isContentLoaded: boolean;
10
- hasComments: boolean;
11
- private readonly palette;
12
- contents: any;
13
- userName: string;
14
- documentEditor: DocumentEditorContainerComponent;
15
- constructor(config?: Configurations);
16
- ngOnChanges(changes: SimpleChanges): void;
17
- ngOnInit(): void;
18
- private onCreating;
19
- onCreated(): void;
20
- configureEditor(): void;
21
- checkComments(): void;
22
- viewComment(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewPolicyComponent, [{ optional: true; }]>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ViewPolicyComponent, "app-view-policy", never, { "contents": { "alias": "contents"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; }, {}, never, never, false, never>;
25
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./view-policy/view-policy.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@syncfusion/ej2-angular-documenteditor";
5
- export declare class ViewPolicyModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewPolicyModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<ViewPolicyModule, [typeof i1.ViewPolicyComponent], [typeof i2.CommonModule, typeof i3.DocumentEditorContainerModule], [typeof i1.ViewPolicyComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<ViewPolicyModule>;
9
- }
@@ -1,69 +0,0 @@
1
- import { ElementRef, EventEmitter, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core';
2
- import { MultiSelectService } from '../multi-select.service';
3
- import * as i0 from "@angular/core";
4
- export declare class CsMultiselectComponent implements OnChanges, AfterViewInit {
5
- multiSelectService: MultiSelectService;
6
- isRequired: boolean;
7
- dropdownLabel: string;
8
- dropdownSubLabel: string;
9
- disabled: boolean;
10
- placeholder: string;
11
- searchPlaceholder: string;
12
- value: any;
13
- selectedItem: any;
14
- valueChange: EventEmitter<any[]>;
15
- applyFilter: EventEmitter<any>;
16
- searchText: EventEmitter<string>;
17
- resetSelectedData: EventEmitter<any>;
18
- dropdownOption: boolean;
19
- positionReset: boolean;
20
- getLeft: number;
21
- getTop: number;
22
- getWidth: number;
23
- maxWidth: number;
24
- activeDropdown: boolean;
25
- items: any[];
26
- previousItems: any[];
27
- itemsDisplayedList: any[];
28
- name: string;
29
- filterApplied: boolean;
30
- searchKey: any;
31
- timer: any;
32
- tempSelectedData: any;
33
- private optionList;
34
- set content(content: ElementRef);
35
- constructor(multiSelectService: MultiSelectService);
36
- /**
37
- *
38
- * @param index - Represents the index of the value to be removed
39
- */
40
- removeValue(index: number): void;
41
- resetState(type?: any): void;
42
- ngOnChanges(changes: SimpleChanges): void;
43
- ngAfterViewInit(): void;
44
- set CheckBoxVal(val: any[]);
45
- search(event: any): void;
46
- writeValue(value: any[]): void;
47
- /**
48
- *
49
- * @param obj - Represents the object which is added to the value list
50
- */
51
- addValue(obj: {
52
- key: string;
53
- value: any;
54
- }): void;
55
- /**
56
- *
57
- * @param value - Represents the value to be removed from the value list
58
- */
59
- removeValueFromCheckbox(value: any): void;
60
- openDropdown(event: any): void;
61
- /**
62
- *
63
- * @param applyFilter - Determines whether filter is applied or not
64
- */
65
- closeDropdown(applyFilter: boolean): void;
66
- checkChanges(): boolean;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<CsMultiselectComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<CsMultiselectComponent, "cs-multi-select", never, { "isRequired": { "alias": "isRequired"; "required": false; }; "dropdownLabel": { "alias": "dropdownLabel"; "required": false; }; "dropdownSubLabel": { "alias": "dropdownSubLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; }, { "valueChange": "valueChange"; "applyFilter": "applyFilter"; "searchText": "searchText"; "resetSelectedData": "resetSelectedData"; }, never, ["*"], false, never>;
69
- }
@@ -1,12 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { CsMultiselectComponent } from '../cs-multiselect/cs-multiselect.component';
3
- import * as i0 from "@angular/core";
4
- export declare class CsMultiselectOptionComponent {
5
- select: CsMultiselectComponent;
6
- value: any;
7
- option: ElementRef;
8
- constructor(select: CsMultiselectComponent);
9
- change(event: any): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<CsMultiselectOptionComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<CsMultiselectOptionComponent, "cs-multi-select-option", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], false, never>;
12
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./cs-multiselect/cs-multiselect.component";
3
- import * as i2 from "./cs-multiselect-option/cs-multiselect-option.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "../popover/popover.module";
7
- export declare class MultiSelectModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<MultiSelectModule, [typeof i1.CsMultiselectComponent, typeof i2.CsMultiselectOptionComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.PopoverModule], [typeof i1.CsMultiselectComponent, typeof i2.CsMultiselectOptionComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<MultiSelectModule>;
11
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class MultiSelectService {
3
- constructor();
4
- overflowHidden: boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<MultiSelectService>;
7
- }