client-core-services 1.0.0

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 (120) hide show
  1. package/README.md +24 -0
  2. package/esm2020/client-core-services.mjs +5 -0
  3. package/esm2020/lib/my-lib.module.mjs +98 -0
  4. package/esm2020/lib/services/api/api-call/api-call.service.mjs +766 -0
  5. package/esm2020/lib/services/api/api-call-responce/api-call-responce.service.mjs +191 -0
  6. package/esm2020/lib/services/api/api.service.mjs +611 -0
  7. package/esm2020/lib/services/api/auth/auth-guard.service.mjs +37 -0
  8. package/esm2020/lib/services/api/auth/auth.service.mjs +500 -0
  9. package/esm2020/lib/services/api/aws-secret-manager/aws-secret-manager.service.mjs +78 -0
  10. package/esm2020/lib/services/api/common-api/common-api.service.mjs +97 -0
  11. package/esm2020/lib/services/api/doc-api/doc-api.service.mjs +221 -0
  12. package/esm2020/lib/services/api/public-api/public-api.service.mjs +37 -0
  13. package/esm2020/lib/services/chart/chart.service.mjs +166 -0
  14. package/esm2020/lib/services/check-if/check-if.service.mjs +830 -0
  15. package/esm2020/lib/services/common-utils/common-function.service.mjs +1277 -0
  16. package/esm2020/lib/services/common-utils/core-function/core-function.service.mjs +283 -0
  17. package/esm2020/lib/services/customvalidation/customvalidation.service.mjs +202 -0
  18. package/esm2020/lib/services/data-share/auth-data-share/auth-data-share.service.mjs +70 -0
  19. package/esm2020/lib/services/data-share/common-app-data-share/common-app-data-share.service.mjs +82 -0
  20. package/esm2020/lib/services/data-share/data-share.service.mjs +370 -0
  21. package/esm2020/lib/services/data-share/doc-data-share/doc-data-share.service.mjs +81 -0
  22. package/esm2020/lib/services/data-share/public-data-share/public-data-share.service.mjs +25 -0
  23. package/esm2020/lib/services/download/download.service.mjs +151 -0
  24. package/esm2020/lib/services/encryption/encryption.service.mjs +20 -0
  25. package/esm2020/lib/services/env/env.service.mjs +232 -0
  26. package/esm2020/lib/services/env/serverHostList.mjs +56 -0
  27. package/esm2020/lib/services/fileHandler/file-handler.service.mjs +136 -0
  28. package/esm2020/lib/services/form/form-control/form-control.service.mjs +654 -0
  29. package/esm2020/lib/services/form/form-creation/form-creation.service.mjs +880 -0
  30. package/esm2020/lib/services/form/form-value/form-value.service.mjs +464 -0
  31. package/esm2020/lib/services/form/multiple-form/multiple-form.service.mjs +346 -0
  32. package/esm2020/lib/services/grid/grid-common-function/grid-common-function.service.mjs +875 -0
  33. package/esm2020/lib/services/grid/grid-selection/grid-selection.service.mjs +84 -0
  34. package/esm2020/lib/services/lims-calculations/lims-calculations.service.mjs +2304 -0
  35. package/esm2020/lib/services/loader/loader.service.mjs +17 -0
  36. package/esm2020/lib/services/menu-or-module-common/menu-or-module-common.service.mjs +558 -0
  37. package/esm2020/lib/services/model/model.service.mjs +30 -0
  38. package/esm2020/lib/services/notify/notification.service.mjs +84 -0
  39. package/esm2020/lib/services/operator/operator.service.mjs +58 -0
  40. package/esm2020/lib/services/permission/permission.service.mjs +88 -0
  41. package/esm2020/lib/services/router/router.service.mjs +78 -0
  42. package/esm2020/lib/services/storage/cookies.service.mjs +56 -0
  43. package/esm2020/lib/services/storage/storage.service.mjs +749 -0
  44. package/esm2020/lib/services/tree-component/interface.mjs +6 -0
  45. package/esm2020/lib/services/tree-component/tree-component.service.mjs +394 -0
  46. package/esm2020/lib/services/userPrefrence/user-prefrence.service.mjs +767 -0
  47. package/esm2020/lib/services/voice-recognition/voice-recognition.service.mjs +97 -0
  48. package/esm2020/lib/shared/configuration/config.mjs +76 -0
  49. package/esm2020/lib/shared/configuration/editor-config.mjs +121 -0
  50. package/esm2020/lib/shared/enums/common.enum.mjs +18 -0
  51. package/esm2020/lib/shared/enums/config.enum.mjs +56 -0
  52. package/esm2020/lib/shared/enums/end-point.enum.mjs +69 -0
  53. package/esm2020/lib/shared/enums/flags.enum.mjs +20 -0
  54. package/esm2020/lib/shared/enums/keycodes.enum.mjs +122 -0
  55. package/esm2020/lib/shared/enums/operator_type.enum.mjs +13 -0
  56. package/esm2020/lib/shared/enums/storage-token-status.enum.mjs +10 -0
  57. package/esm2020/lib/shared/platform.mjs +2 -0
  58. package/esm2020/public-api.mjs +53 -0
  59. package/fesm2015/client-core-services.mjs +15487 -0
  60. package/fesm2015/client-core-services.mjs.map +1 -0
  61. package/fesm2020/client-core-services.mjs +15482 -0
  62. package/fesm2020/client-core-services.mjs.map +1 -0
  63. package/index.d.ts +5 -0
  64. package/lib/my-lib.module.d.ts +18 -0
  65. package/lib/services/api/api-call/api-call.service.d.ts +60 -0
  66. package/lib/services/api/api-call-responce/api-call-responce.service.d.ts +43 -0
  67. package/lib/services/api/api.service.d.ts +88 -0
  68. package/lib/services/api/auth/auth-guard.service.d.ts +13 -0
  69. package/lib/services/api/auth/auth.service.d.ts +50 -0
  70. package/lib/services/api/aws-secret-manager/aws-secret-manager.service.d.ts +22 -0
  71. package/lib/services/api/common-api/common-api.service.d.ts +22 -0
  72. package/lib/services/api/doc-api/doc-api.service.d.ts +35 -0
  73. package/lib/services/api/public-api/public-api.service.d.ts +14 -0
  74. package/lib/services/chart/chart.service.d.ts +21 -0
  75. package/lib/services/check-if/check-if.service.d.ts +50 -0
  76. package/lib/services/common-utils/common-function.service.d.ts +84 -0
  77. package/lib/services/common-utils/core-function/core-function.service.d.ts +21 -0
  78. package/lib/services/customvalidation/customvalidation.service.d.ts +21 -0
  79. package/lib/services/data-share/auth-data-share/auth-data-share.service.d.ts +33 -0
  80. package/lib/services/data-share/common-app-data-share/common-app-data-share.service.d.ts +36 -0
  81. package/lib/services/data-share/data-share.service.d.ts +174 -0
  82. package/lib/services/data-share/doc-data-share/doc-data-share.service.d.ts +33 -0
  83. package/lib/services/data-share/public-data-share/public-data-share.service.d.ts +12 -0
  84. package/lib/services/download/download.service.d.ts +35 -0
  85. package/lib/services/encryption/encryption.service.d.ts +8 -0
  86. package/lib/services/env/env.service.d.ts +44 -0
  87. package/lib/services/env/serverHostList.d.ts +9 -0
  88. package/lib/services/fileHandler/file-handler.service.d.ts +17 -0
  89. package/lib/services/form/form-control/form-control.service.d.ts +44 -0
  90. package/lib/services/form/form-creation/form-creation.service.d.ts +41 -0
  91. package/lib/services/form/form-value/form-value.service.d.ts +32 -0
  92. package/lib/services/form/multiple-form/multiple-form.service.d.ts +54 -0
  93. package/lib/services/grid/grid-common-function/grid-common-function.service.d.ts +74 -0
  94. package/lib/services/grid/grid-selection/grid-selection.service.d.ts +16 -0
  95. package/lib/services/lims-calculations/lims-calculations.service.d.ts +87 -0
  96. package/lib/services/loader/loader.service.d.ts +8 -0
  97. package/lib/services/menu-or-module-common/menu-or-module-common.service.d.ts +59 -0
  98. package/lib/services/model/model.service.d.ts +11 -0
  99. package/lib/services/notify/notification.service.d.ts +22 -0
  100. package/lib/services/operator/operator.service.d.ts +27 -0
  101. package/lib/services/permission/permission.service.d.ts +18 -0
  102. package/lib/services/router/router.service.d.ts +14 -0
  103. package/lib/services/storage/cookies.service.d.ts +11 -0
  104. package/lib/services/storage/storage.service.d.ts +132 -0
  105. package/lib/services/tree-component/interface.d.ts +13 -0
  106. package/lib/services/tree-component/tree-component.service.d.ts +38 -0
  107. package/lib/services/userPrefrence/user-prefrence.service.d.ts +75 -0
  108. package/lib/services/voice-recognition/voice-recognition.service.d.ts +36 -0
  109. package/lib/shared/configuration/config.d.ts +144 -0
  110. package/lib/shared/configuration/editor-config.d.ts +72 -0
  111. package/lib/shared/enums/common.enum.d.ts +16 -0
  112. package/lib/shared/enums/config.enum.d.ts +54 -0
  113. package/lib/shared/enums/end-point.enum.d.ts +66 -0
  114. package/lib/shared/enums/flags.enum.d.ts +18 -0
  115. package/lib/shared/enums/keycodes.enum.d.ts +120 -0
  116. package/lib/shared/enums/operator_type.enum.d.ts +9 -0
  117. package/lib/shared/enums/storage-token-status.enum.d.ts +8 -0
  118. package/lib/shared/platform.d.ts +1 -0
  119. package/package.json +40 -0
  120. package/public-api.d.ts +49 -0
@@ -0,0 +1,87 @@
1
+ import { ApiCallService } from './../api/api-call/api-call.service';
2
+ import { UntypedFormGroup } from '@angular/forms';
3
+ import { CommonFunctionService } from '../../services/common-utils/common-function.service';
4
+ import { CoreFunctionService } from '../common-utils/core-function/core-function.service';
5
+ import { NotificationService } from '../notify/notification.service';
6
+ import { StorageService } from '../storage/storage.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class LimsCalculationsService {
9
+ private commonFunctionService;
10
+ private coreFunctionService;
11
+ private notificationService;
12
+ private storageService;
13
+ private apiCallService;
14
+ constructor(commonFunctionService: CommonFunctionService, coreFunctionService: CoreFunctionService, notificationService: NotificationService, storageService: StorageService, apiCallService: ApiCallService);
15
+ calculateBalanceAmountEngLetter(tamplateFormValue: any, multiFormValue: any): {
16
+ balanceAmount: number;
17
+ };
18
+ getTaWithCalculation(value: any): {
19
+ claimSheet: {
20
+ localTa: number;
21
+ };
22
+ };
23
+ calculateTotalAmount(formValue: any): {
24
+ totalAmountOfTravelCliam: number;
25
+ };
26
+ calculateTotalFair(value: any): {
27
+ totalForTheDay: number;
28
+ } | {
29
+ claimSheet: {
30
+ totalForTheDay: number;
31
+ };
32
+ };
33
+ buggetForcastCalc(templateForm: any): void;
34
+ calculateAutoEffRate(data: any): any;
35
+ calculate_next_calibration_due_date(templateForm: any): void;
36
+ calculation_of_script_for_tds(object: any, field: any): any[];
37
+ getDecimalAmount(value: any): any;
38
+ legacyQuotationParameterCalculation(data: any, fieldName: any): void;
39
+ calculate_pharma_claim_values(new_element: any): void;
40
+ calculatePharamaParameterAmount(data: any, offer_rate: number, quantity: number, field_name?: any): void;
41
+ calculateParameterAmtOnInjection(data: any, rate: any, quantity: any): any;
42
+ getDiscountPercentage(current_disount: number, discount_amount: number, gross_amount: number, quantity: number): number;
43
+ calculateQuotationParameterAmountForAutomotiveLims(data: any, fieldName: any): void;
44
+ sanitizeParameterAmount(data: any): void;
45
+ calculateQuotationParameterAmountForLims(data: any, fieldName: any): void;
46
+ calculate_invoice_amount_row_wise(data: any, fieldName: any): void;
47
+ calculateNetAmount(data: any, fieldName: any, grid_cell_function: any): void;
48
+ calculateQquoteAmount(templateValue: any, field: any): any;
49
+ calculate_lims_invoice_with_manual_items(templateValue: any, lims_segment: any, calculate_on_field: any): any;
50
+ calculate_lims_invoice_with_po_items(templateValue: any, lims_segment: any, calculate_on_field: any): any;
51
+ calculate_manual_row_item(templateValue: any, lims_segment: any, calculate_on_field: any): any;
52
+ calculate_po_row_item(templateValue: any, lims_segment: any, calculate_on_field: any): any;
53
+ credit_note_invoice_calculation(templateValue: any, lims_segment: any, calculate_on_field: any): any;
54
+ calculate_lims_invoice(templateValue: any, lims_segment: any, calculate_on_field: any): any;
55
+ calculate_lims_invoice_extra_amount(templateValue: any, lims_segment: any, calculate_on_field: any): any;
56
+ getPercent(templateValue: any, parent: any, field: any): any;
57
+ calculate_quotation(templateValue: any, lims_segment: any, field: any): any;
58
+ calculate_quotation_for_lims(templateValue: any, lims_segment: any, field: any): any;
59
+ calculateParameterLimsSegmentWise(lims_segment: any, data: any, fieldName: string): void;
60
+ samplingAmountAddition(templateValue: any): any;
61
+ quote_amount_via_discount_percent(listOfParm: any, templateValue: any): any;
62
+ calculateInvoiceTotalAmount(formValue: any, invoiceInfos: any): {
63
+ totalAmount: string;
64
+ payAmount: string;
65
+ };
66
+ quote_amount_via_sample_no(templateValue: any, listOfParm: any): any;
67
+ calculateInvoiceOrderAmount(templateForm: UntypedFormGroup, field: any): UntypedFormGroup;
68
+ setValueInVieldsForChild(templateForm: UntypedFormGroup, field: any): UntypedFormGroup;
69
+ calculateAdditionalCost(obj: any): any;
70
+ update_invoice_totatl(templateValue: any, gross_amount: number, discount_amount: number, discount_percent: any, net_amount: number, surcharge: number, taxable_amount: number, field?: any): any;
71
+ update_invoice_totatl_extra_amount(templateValue: any, gross_amount: number, discount_amount: number, discount_percent: any, net_amount: number, surcharge: number, extraAmount: number, taxable_amount: number, field?: any): any;
72
+ update_invoice_total_on_custom_field(templateValue: any, lims_segment: any, field: any): any;
73
+ populateParameterAmount(data: any, net_amount: number, discount_percent: number, discount_amount: number, quantity: number, gross_amount: number): void;
74
+ setValueInVields(templateForm: UntypedFormGroup, field: any): UntypedFormGroup;
75
+ create_professional_email(templateForm: UntypedFormGroup): void;
76
+ autopopulateFields(templateForm: any): void;
77
+ /**
78
+ * start point for subsequet calculation for quotation
79
+ */
80
+ populateParameterAmountWithSubsequent(data: any, net_amount: number, discount_percent: number, discount_amount: number, quantity: number, gross_amount: number, subsequent_discount_amount?: number, subsequent_discount_percent?: number): void;
81
+ calculateQuotationParameterAmountForLimsWithSubsequent(data: any, fieldName: any): void;
82
+ calculateQuotationParameterAmountForAutomotiveLimsWithSubsequent(data: any, fieldName: any): void;
83
+ calculateParameterLimsSegmentWiseForSubsequent(lims_segment: any, data: any, fieldName: string): void;
84
+ calculate_quotation_with_subsequent(templateValue: any, lims_segment: any, field: any): any;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<LimsCalculationsService, never>;
86
+ static ɵprov: i0.ɵɵInjectableDeclaration<LimsCalculationsService>;
87
+ }
@@ -0,0 +1,8 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoaderService {
4
+ isLoading: BehaviorSubject<boolean>;
5
+ constructor();
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
8
+ }
@@ -0,0 +1,59 @@
1
+ import { Router } from '@angular/router';
2
+ import { ApiService } from '../api/api.service';
3
+ import { CommonFunctionService } from '../common-utils/common-function.service';
4
+ import { DataShareService } from '../data-share/data-share.service';
5
+ import { PermissionService } from '../permission/permission.service';
6
+ import { StorageService } from '../storage/storage.service';
7
+ import { CommonAppDataShareService } from '../data-share/common-app-data-share/common-app-data-share.service';
8
+ import { UserPrefrenceService } from '../userPrefrence/user-prefrence.service';
9
+ import { CoreFunctionService } from '../common-utils/core-function/core-function.service';
10
+ import * as i0 from "@angular/core";
11
+ export declare class MenuOrModuleCommonService {
12
+ private storageService;
13
+ private permissionService;
14
+ private commonFunctionService;
15
+ private dataShareService;
16
+ private apiService;
17
+ private router;
18
+ private commonAppDataShareService;
19
+ private userPrefrenceService;
20
+ private coreFunctionService;
21
+ constructor(storageService: StorageService, permissionService: PermissionService, commonFunctionService: CommonFunctionService, dataShareService: DataShareService, apiService: ApiService, router: Router, commonAppDataShareService: CommonAppDataShareService, userPrefrenceService: UserPrefrenceService, coreFunctionService: CoreFunctionService);
22
+ getDefaultMenuIndex(menuList: any): {
23
+ defaultmenuIndex: number;
24
+ defaultSubmenuIndex: number;
25
+ };
26
+ getDefaultIndex(menuList: any): number;
27
+ getDefaultMenu(menuList: any): any;
28
+ setModuleName(moduleName: string): void;
29
+ getModuleIndexById(moduleId: any): number;
30
+ shareMenuIndex(menuIndex: number, subMenuIndex: number, moduleIndex?: number): void;
31
+ getIndexsByMenuName(menuList: any, menuName: any): {
32
+ menuindex: number;
33
+ submenuindex: number;
34
+ };
35
+ getMenuNameById(module: any, menuId: any, submenuId: any, key?: any): any;
36
+ getTemplateData(module: any, submenu: any): void;
37
+ GoToSelectedModule(item: any): void;
38
+ goToMOdule(): void;
39
+ viewPermissionInTabs(tabs: any): any;
40
+ addPermissionInTab(tab: any): any;
41
+ checkFebMenuAddOrNot(tab: any, parent: any): boolean;
42
+ getModuleBySelectedIndex(): any;
43
+ getCard(index: any): {
44
+ tabs: any;
45
+ card: any;
46
+ selectedTabIndex: number;
47
+ popoverTabbing: boolean;
48
+ };
49
+ getUserAutherisedCards(cardMasterList: any): any;
50
+ getNestedCard(cardGrid: any, cardGridName: any): any;
51
+ getModulesFromObject(obj: any): any[];
52
+ getMenuList: (menus: any) => any;
53
+ getTabList: (tabs: any) => any[];
54
+ getMenuDetails(module: any): any;
55
+ getTempDetails(tabs: any): any;
56
+ getActiveAlerts(tab: any): string[];
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuOrModuleCommonService, never>;
58
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenuOrModuleCommonService>;
59
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModelService {
3
+ private modals;
4
+ constructor();
5
+ add(modal: any): void;
6
+ remove(id: string): void;
7
+ open(id: string, object: object): void;
8
+ close(id: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModelService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModelService>;
11
+ }
@@ -0,0 +1,22 @@
1
+ import { MatSnackBar, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar';
2
+ import { ApiService } from '../api/api.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NotificationService {
5
+ private _snackBar;
6
+ private apiService;
7
+ horizontalPosition: MatSnackBarHorizontalPosition;
8
+ verticalPosition: MatSnackBarVerticalPosition;
9
+ private synth;
10
+ private voices;
11
+ private selectedLanguage;
12
+ constructor(_snackBar: MatSnackBar, apiService: ApiService);
13
+ notify(className: string, message: string): void;
14
+ markUsRead(data: any): void;
15
+ setLanguage(language: string): void;
16
+ private getVoiceByLanguage;
17
+ private loadVoices;
18
+ private getFemaleVoice;
19
+ speak(message: string): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
22
+ }
@@ -0,0 +1,27 @@
1
+ import { OperatorType } from "../../shared/enums/operator_type.enum";
2
+ export declare class Operator {
3
+ fullName: string;
4
+ shortName: string;
5
+ name: string;
6
+ types: OperatorType[];
7
+ constructor(fullName: string, shortName: string, name: string, types: OperatorType[]);
8
+ static readonly EQUAL: Operator;
9
+ static readonly CONTAINS: Operator;
10
+ static readonly NOT_EQUAL: Operator;
11
+ static readonly IN: Operator;
12
+ static readonly LESS_THAN: Operator;
13
+ static readonly RANGE_BORDER_LESS_THAN_INCLUSIVE: Operator;
14
+ static readonly GREATER_THAN: Operator;
15
+ static readonly RANGE_BORDER_GREATER_THAN_INCLUSIVE: Operator;
16
+ static readonly NOT_CONTAINS_IGNORE_CASE: Operator;
17
+ static readonly ENDS_WITH: Operator;
18
+ static readonly ENDS_WITH_IGNORE_CASE: Operator;
19
+ static readonly STARTS_WITH: Operator;
20
+ static readonly STARTS_WITH_IGNORE_CASE: Operator;
21
+ static readonly NOT_CONTAINS: Operator;
22
+ static readonly CONTAINS_IGNORE_CASE: Operator;
23
+ static getAllFullNames(): string[];
24
+ static getAllShortNames(): string[];
25
+ static getAllNames(): string[];
26
+ static getOperators(type: OperatorType, name: string): Map<string, string>;
27
+ }
@@ -0,0 +1,18 @@
1
+ import { AuthService } from '../api/auth/auth.service';
2
+ import { NotificationService } from '../notify/notification.service';
3
+ import { StorageService } from '../storage/storage.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PermissionService {
6
+ private storageService;
7
+ private authService;
8
+ private notificationService;
9
+ permission: any;
10
+ constructor(storageService: StorageService, authService: AuthService, notificationService: NotificationService);
11
+ checkPermission(template: string, option: string): boolean;
12
+ checkPermissionWithParent(template: any, option: string): boolean;
13
+ checkList(template: string, option: string): boolean;
14
+ check(list: any, actionName: string): boolean;
15
+ checkTokenStatusForPermission(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
18
+ }
@@ -0,0 +1,14 @@
1
+ import { Location } from '@angular/common';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RouterService {
4
+ private _location;
5
+ private document;
6
+ constructor(_location: Location, document: Document);
7
+ updateRouteUrl(selectedRowIndex: number, elements: any, currentBrowseUrl: any): {
8
+ currentBrowseUrl: any;
9
+ };
10
+ getCurrentBrowseUrl(): string;
11
+ openInSameTabWithoutHistory(url: string): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
14
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CookiesService {
3
+ constructor();
4
+ setCookieByName(cname: string, cvalue: string, exdays?: number): void;
5
+ getCookieByName(cname: string): string;
6
+ deleteCookieByName(name: string): void;
7
+ deleteAllCookies(): void;
8
+ isCookieExpired(cName: string): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CookiesService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CookiesService>;
11
+ }
@@ -0,0 +1,132 @@
1
+ import { CoreFunctionService } from './../common-utils/core-function/core-function.service';
2
+ import { EncryptionService } from './../encryption/encryption.service';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { Observable } from 'rxjs';
5
+ import { StorageTokenStatus } from '../../shared/enums/storage-token-status.enum';
6
+ import { Common } from '../../shared/enums/common.enum';
7
+ import { CookiesService } from './cookies.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class StorageService {
10
+ private http;
11
+ private env;
12
+ private document;
13
+ private encryptionService;
14
+ private coreFunctionService;
15
+ private cookiesService;
16
+ ID_TOKEN: string;
17
+ ACCESS_TOKEN: string;
18
+ REFRESH_TOKEN: string;
19
+ RESET_PASS_SESSION: string;
20
+ EXPIRY_IN: any;
21
+ USER_KEY: string;
22
+ ROLE: string;
23
+ ACTIVE_MENU: string;
24
+ MENU_TYPE: string;
25
+ ID_TOKEN_EXPIRY_TIME: string;
26
+ REFRESH_TOKEN_EXPIRY_TIME: string;
27
+ userInfo: any;
28
+ log: any;
29
+ age: any;
30
+ refreshTokenAge: any;
31
+ packDetails: any;
32
+ HOST_NAME: string;
33
+ PROJECT_FOLDER_NAME: string;
34
+ TEMP_NAME: string;
35
+ TEMP_THEME: string;
36
+ PAGE_TITLE: string;
37
+ VERIFY_TYPE: string;
38
+ MODULE: string;
39
+ TEAM_NAME: string;
40
+ USER_PREFERENCE: any;
41
+ REDIRECT_URL: string;
42
+ CHILD_WINDOW_URL: string;
43
+ MODIFY_MODULES: any;
44
+ appName: any;
45
+ CLIENT_NAME: any;
46
+ ALL_TEMPLATE: any;
47
+ TEMPLATE_INDEX: any;
48
+ TAB_COUNTS: any;
49
+ constructor(http: HttpClient, env: any, document: Document, encryptionService: EncryptionService, coreFunctionService: CoreFunctionService, cookiesService: CookiesService);
50
+ load(): Observable<any>;
51
+ setAppName(appname: string): void;
52
+ setModule(module: string): void;
53
+ getModule(): string | null;
54
+ setChildWindowUrl(url: string): void;
55
+ getChildWindowUrl(): string | null;
56
+ setRedirectUrl(url: string): void;
57
+ getRedirectUrl(): string | null;
58
+ setUserPreference(user_preference: any): void;
59
+ getUserPreference(): any;
60
+ setThemeSetting(settingObj: any): void;
61
+ getThemeSetting(): any;
62
+ setApplicationSetting(applicationSetting: any): void;
63
+ getApplicationSetting(): any;
64
+ setAppId(appId: string): void;
65
+ getAppId(): any;
66
+ setExpiresIn(expiry: any): void;
67
+ getExpiresIn(): string | null;
68
+ SetIdToken(token: any): void;
69
+ GetIdToken(): any;
70
+ IsJsonString(str: any): boolean;
71
+ SetAccessToken(token: any): void;
72
+ GetAccessToken(): any;
73
+ SetRefreshToken(token: string): void;
74
+ GetRefreshToken(): string | null;
75
+ GetIdTokenStatus(): StorageTokenStatus.ID_TOKEN_NOT_CREATED | StorageTokenStatus.ID_TOKEN_ACTIVE | StorageTokenStatus.ID_TOKEN_EXPIRED;
76
+ GetRefreshTokenStatus(): StorageTokenStatus.REFRESH_TOKEN_NOT_CREATED | StorageTokenStatus.REFRESH_TOKEN_ACTIVE | StorageTokenStatus.REFRESH_TOKEN_EXPIRED;
77
+ SetUserInfo(user: any): void;
78
+ GetUserInfo(): any;
79
+ GetRoleList(): any;
80
+ setActiveRole(role: any): void;
81
+ getActiveRole(): any;
82
+ GetUserReference(): any;
83
+ GetPermission(): any;
84
+ GetModules(): any;
85
+ GetMenuType(): any;
86
+ getUserLog(): any;
87
+ SetActiveMenu(menu: any): void;
88
+ GetActiveMenu(): any;
89
+ getRefCode(): any;
90
+ getUserAppId(): any;
91
+ removeDataFormStorage(all?: string): void;
92
+ setIdTokenExpiry(): void;
93
+ setRefreshTokenExpiry(): void;
94
+ search(url: string, term: string): Observable<Object>;
95
+ setResetNewPasswordSession(session: any): void;
96
+ getResetNewPasswordSession(): string | null;
97
+ searchPostMethod(url: string, payload: any): Observable<Object>;
98
+ setHostNameDinamically(host: string): void;
99
+ getHostNameDinamically(): string | null;
100
+ getLogoPath(): string;
101
+ getPageTitle(): any;
102
+ getVerifyType(): any;
103
+ getPageThmem(): any;
104
+ getTemplateName(): any;
105
+ getTeamName(): any;
106
+ getBucketName(): any;
107
+ getAuthenticationSetting(): any;
108
+ getAdminEmail(): string;
109
+ getApplicationValueByKey(key: any): any;
110
+ setClientNAme(name: string): void;
111
+ getClientName(): string | null;
112
+ removeKeyFromStorage(key: string): void;
113
+ getPlatform(): any;
114
+ getClientCodeEnviorment(): any;
115
+ checkPlatForm(): string;
116
+ getDefaultNumOfItem(): Common;
117
+ getApplicationDefaultSettings(): any;
118
+ getApplicationAuthenticationSettings(): any;
119
+ getTwoFactorAuthenticationType(): any;
120
+ getDefaultSearchOperator(): Common;
121
+ storeAllTemplate(data: any): void;
122
+ modifyTemplateList(obj: any): {
123
+ templatList: any;
124
+ templateIndexList: any;
125
+ };
126
+ getAllTemplateList(): any;
127
+ getTemplate(tempName: string, moduleName: string): any;
128
+ SetTabCounts(tabCounts: any): void;
129
+ GetTabCounts(): any;
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
131
+ static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
132
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Node for to-do item
3
+ */
4
+ export declare class TodoItemNode {
5
+ "children": TodoItemNode[];
6
+ "item": string;
7
+ "reference": any;
8
+ "criteria": any;
9
+ "pId": string;
10
+ "pIndex": string;
11
+ "_id": string;
12
+ "action": any;
13
+ }
@@ -0,0 +1,38 @@
1
+ import { CheckIfService } from './../check-if/check-if.service';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { CommonFunctionService } from '../common-utils/common-function.service';
4
+ import { TodoItemNode } from './interface';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TreeComponentService {
7
+ private commonfunctionService;
8
+ private checkIfService;
9
+ dataChange: BehaviorSubject<TodoItemNode[]>;
10
+ get data(): TodoItemNode[];
11
+ constructor(commonfunctionService: CommonFunctionService, checkIfService: CheckIfService);
12
+ /**
13
+ * Build the file structure tree. The `value` is the Json object, or a sub-tree of a Json object.
14
+ * The return value is the list of `TodoItemNode`.
15
+ */
16
+ buildFileTree(obj: {
17
+ [key: string]: any;
18
+ }, level: number, keys: any): TodoItemNode[];
19
+ convertParentNodeToChildNodeList(list: any, fields: any): any;
20
+ addChildParentList(parentList: any, ChildList: any, fields: any, result: any): void;
21
+ getSelectedNodeWithParent(allNodes: any, selectedNodes: any, keys: any): any;
22
+ findChildToParentNode(allNodes: any, selectNode: any, groupList: any, selectedNodesWithParent: any): any;
23
+ modifyParentChild(selectedNodesWithParent: any, groupList: any): any;
24
+ modifySelectedDataWithParentId(selectedData: any): any;
25
+ convertTreeToList(list: any, result: any): any;
26
+ applyRelationships: (data: any) => any;
27
+ listToTree: (arr?: never[]) => any;
28
+ treeToObject: (tree?: any, result?: any) => any;
29
+ buildTreeObject(arr?: never[]): any;
30
+ /** Add an item to to-do list */
31
+ insertItem(parent: TodoItemNode, name: string): void;
32
+ updateItem(node: TodoItemNode, name: string): void;
33
+ updateTreeViewData(responce: any, field: any, treeViewData: any): {
34
+ treeViewData: any;
35
+ };
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponentService, never>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<TreeComponentService>;
38
+ }
@@ -0,0 +1,75 @@
1
+ import { StorageService } from '../storage/storage.service';
2
+ import { ApiService } from '../api/api.service';
3
+ import { DataShareService } from '../data-share/data-share.service';
4
+ import { CommonFunctionService } from '../common-utils/common-function.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UserPrefrenceService {
7
+ private storageService;
8
+ private apiService;
9
+ private dataShareService;
10
+ private commonFunctionService;
11
+ constructor(storageService: StorageService, apiService: ApiService, dataShareService: DataShareService, commonFunctionService: CommonFunctionService);
12
+ updateUserPreference(data: object, fieldName: string, parent?: string): Promise<{
13
+ success: boolean;
14
+ }>;
15
+ addOrRemoveTabs(tab: any): any;
16
+ modifiedMenuObj(data: any, fieldName: string, parent?: string): any;
17
+ prepareMenuJson(menuItems: any, fieldName: string, parent?: any): any;
18
+ createUserPreference(fieldName: string): any;
19
+ getModuleRef(moduleName: any): any;
20
+ getTemplateTabs(): any;
21
+ getAllTabs(tabs: any): any;
22
+ getFebTabs(tabs: any): any;
23
+ getTabRef(tab: any, optKey?: string): any;
24
+ mergeMenus(existingMenus: any, newMenus: any, parent: any): any;
25
+ deleteEmptyMenus(menus: any): any;
26
+ checkFebMenuAddOrNot(menu: any, parent: any): boolean;
27
+ isIdExist(obj: any, targetId: any): boolean;
28
+ isMenuAlreadyPresentOrNot(targetMenu: any, userFebMenu: any): boolean;
29
+ getUserPreferenceByFieldName(fieldName: string): any;
30
+ extractMenuDetails(tab: any, data: any[], indices: {
31
+ menuIndex: number;
32
+ submenuIndex: number;
33
+ moduleIndex: number;
34
+ }): any;
35
+ updateFavTabs(newMenus: any, tab: any): any;
36
+ checkFebTabAddOrNot(tab: any): boolean;
37
+ isIdExistInTemplateTabs(obj: any, targetId: string): boolean;
38
+ getUserPreferenceObj(data: any, fieldName: string, parent?: string): any;
39
+ saveColumn(data: any): {
40
+ preferenceMap: {
41
+ [x: number]: {
42
+ reference: any;
43
+ menus: {
44
+ [x: number]: {
45
+ reference: any;
46
+ submenus: {
47
+ [x: number]: {
48
+ reference: any;
49
+ templateTabs: {
50
+ [x: number]: any;
51
+ };
52
+ };
53
+ };
54
+ };
55
+ };
56
+ };
57
+ } | {
58
+ [x: number]: {
59
+ reference: any;
60
+ menus: {
61
+ [x: number]: {
62
+ reference: any;
63
+ templateTabs: {
64
+ [x: number]: any;
65
+ };
66
+ };
67
+ };
68
+ };
69
+ };
70
+ userId: any;
71
+ };
72
+ addHideKeyInExistingTab(columns: any, fId: String, fieldName: String): void;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserPrefrenceService, never>;
74
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserPrefrenceService>;
75
+ }
@@ -0,0 +1,36 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class VoiceRecognitionService {
3
+ recognition: any;
4
+ isStoppedSpeechRecog: boolean;
5
+ text: string;
6
+ private voiceToTextSubject;
7
+ private speakingPaused;
8
+ private tempWords;
9
+ constructor();
10
+ /**
11
+ * @description Function to return observable so voice sample text can be send to input.
12
+ */
13
+ speechInput(): import("rxjs").Observable<string>;
14
+ /**
15
+ * @description Function to initialize voice recognition.
16
+ */
17
+ init(): import("rxjs").Observable<any>;
18
+ /**
19
+ * @description Add event listeners to get the updated input and when stoped
20
+ */
21
+ initListeners(): import("rxjs").Observable<any>;
22
+ /**
23
+ * @description Function to mic on to listen.
24
+ */
25
+ start(): void;
26
+ /**
27
+ * @description Function to stop recognition.
28
+ */
29
+ stop(): void;
30
+ /**
31
+ * @description Merge previous input with latest input.
32
+ */
33
+ wordConcat(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecognitionService, never>;
35
+ static ɵprov: i0.ɵɵInjectableDeclaration<VoiceRecognitionService>;
36
+ }