vcomply-workflow-engine 6.0.41 → 6.0.43

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.
@@ -3,11 +3,13 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { SnackBarService } from '../../ui-kit/snack-bar/snack-bar.service';
5
5
  import { PolicyService } from '../../workflow-services/policy.service';
6
+ import { PolicyAPIService } from '../../workflow-services/policy-api.service';
6
7
  import { IframeService } from '../../services/iframe.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class DocumentSectionComponent implements OnInit, OnChanges {
9
10
  private snackBar;
10
11
  private policyService;
12
+ private policyAPIService;
11
13
  private router;
12
14
  private route;
13
15
  private iframeService;
@@ -19,7 +21,10 @@ export declare class DocumentSectionComponent implements OnInit, OnChanges {
19
21
  doc: boolean;
20
22
  isUploading: boolean;
21
23
  isLoader: boolean;
24
+ ff_policy_ms_word_integration: boolean;
25
+ createWordPolicyText: string;
22
26
  selectedDocumentType: string;
27
+ feature: any;
23
28
  templateView: boolean;
24
29
  policyId: any;
25
30
  policyName: any;
@@ -36,9 +41,12 @@ export declare class DocumentSectionComponent implements OnInit, OnChanges {
36
41
  visible: boolean;
37
42
  message: string;
38
43
  };
39
- constructor(snackBar: SnackBarService, policyService: PolicyService, router: Router, route: ActivatedRoute, platformLocation: PlatformLocation, iframeService: IframeService);
44
+ constructor(snackBar: SnackBarService, policyService: PolicyService, policyAPIService: PolicyAPIService, router: Router, route: ActivatedRoute, platformLocation: PlatformLocation, iframeService: IframeService);
40
45
  ngOnChanges(changes: SimpleChanges): void;
41
46
  ngOnInit(): void;
47
+ initialiseFeatureFlags(): void;
48
+ redirectUserToWordPolicy(): void;
49
+ createWordPolicy(): void;
42
50
  handleFileInput(files: FileList): void;
43
51
  showPdfBlock: boolean;
44
52
  showDocxBlock: boolean;
@@ -50,5 +58,5 @@ export declare class DocumentSectionComponent implements OnInit, OnChanges {
50
58
  editPolicyEmit(): void;
51
59
  openTemplateList(): void;
52
60
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentSectionComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentSectionComponent, "lib-document-section", never, { "selectedDocumentType": { "alias": "selectedDocumentType"; "required": false; }; "templateView": { "alias": "templateView"; "required": false; }; "policyId": { "alias": "policyId"; "required": false; }; "policyName": { "alias": "policyName"; "required": false; }; "organization_id": { "alias": "organization_id"; "required": false; }; "member_obj_id": { "alias": "member_obj_id"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "templateUrl": { "alias": "templateUrl"; "required": false; }; "isTemplateOpened": { "alias": "isTemplateOpened"; "required": false; }; }, { "disconnectRefresh": "disconnectRefresh"; "editPolicy": "editPolicy"; "openTemplate": "openTemplate"; }, never, never, false, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentSectionComponent, "lib-document-section", never, { "selectedDocumentType": { "alias": "selectedDocumentType"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "templateView": { "alias": "templateView"; "required": false; }; "policyId": { "alias": "policyId"; "required": false; }; "policyName": { "alias": "policyName"; "required": false; }; "organization_id": { "alias": "organization_id"; "required": false; }; "member_obj_id": { "alias": "member_obj_id"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "templateUrl": { "alias": "templateUrl"; "required": false; }; "isTemplateOpened": { "alias": "isTemplateOpened"; "required": false; }; }, { "disconnectRefresh": "disconnectRefresh"; "editPolicy": "editPolicy"; "openTemplate": "openTemplate"; }, never, never, false, never>;
54
62
  }
@@ -23,7 +23,6 @@ export declare class SelectTemplateListComponent {
23
23
  NO_DATA_FOUND_MESSAGE: string;
24
24
  selectedTemplate: any[];
25
25
  isPreview: boolean;
26
- docData: any | null;
27
26
  previewTemplate: any;
28
27
  selectedCategoryId: number[];
29
28
  feature: any;
@@ -45,7 +44,6 @@ export declare class SelectTemplateListComponent {
45
44
  deleteEvent(): void;
46
45
  onPreview(details: any): void;
47
46
  onClosePreview(): void;
48
- getPreviewData(templateId: any): void;
49
47
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectTemplateListComponent, never>;
50
48
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectTemplateListComponent, "app-select-template-list", never, { "selectedCategoryId": { "alias": "selectedCategoryId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "onTemplateSelect": "onTemplateSelect"; }, never, never, false, never>;
51
49
  }
@@ -0,0 +1,21 @@
1
+ export declare const WORD_CONSTANTS: {
2
+ MS_WORD_OPTION: string;
3
+ ff_policy_ms_word_integration: string;
4
+ createWordPolicy_snackbar_message: string;
5
+ };
6
+ export declare const WORD_PAYLOAD: {
7
+ module_name: string;
8
+ increment: string;
9
+ action: string;
10
+ ms_word_type: number;
11
+ docx_file_path: string;
12
+ url: {
13
+ edit: string;
14
+ preview: string;
15
+ };
16
+ };
17
+ export declare const WORD_URL_CONSTANTS: {
18
+ new_word_policy_url: string;
19
+ createVersion: string;
20
+ workroom_url: string;
21
+ };
@@ -0,0 +1,27 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { AuthService } from './auth.service';
3
+ import { Configurations } from '../configurations';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PolicyAPIService {
6
+ private http;
7
+ private authService;
8
+ private config;
9
+ env: any;
10
+ constructor(http: HttpClient, authService: AuthService, config: Configurations);
11
+ payloadBuilder_wordPolicy(policyId: string): {
12
+ module_name: string;
13
+ increment: string;
14
+ action: string;
15
+ ms_word_type: number;
16
+ docx_file_path: string;
17
+ url: {
18
+ edit: string;
19
+ preview: string;
20
+ };
21
+ member_id: any;
22
+ document_id: string;
23
+ };
24
+ createWordPolicy(policyId: string): import("rxjs").Observable<any>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<PolicyAPIService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<PolicyAPIService>;
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "6.0.41",
3
+ "version": "6.0.43",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "