jconsumer-shared 0.0.2 → 0.0.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.
- package/esm2022/lib/account-service.mjs +21 -0
- package/esm2022/lib/auth-service.mjs +155 -0
- package/esm2022/lib/calendar/date-time/datetime-processor.service.mjs +448 -0
- package/esm2022/lib/common.service.mjs +38 -0
- package/esm2022/lib/error-message.service.mjs +22 -0
- package/esm2022/lib/file-service.mjs +229 -0
- package/esm2022/lib/group-storage.service.mjs +66 -0
- package/esm2022/lib/i8n.module.mjs +43 -0
- package/esm2022/lib/local-storage.service.mjs +77 -0
- package/esm2022/lib/phone-input/phone-input.component.mjs +127 -0
- package/esm2022/lib/phone-input/phone-input.module.mjs +24 -0
- package/esm2022/lib/pipes/autolink/autolink.pipe.mjs +22 -0
- package/esm2022/lib/pipes/capitalize/capitalize.module.mjs +20 -0
- package/esm2022/lib/pipes/capitalize/capitalize.pipe.mjs +18 -0
- package/esm2022/lib/pipes/filter/filter.pipe.mjs +24 -0
- package/esm2022/lib/pipes/limit-to/limitTo.pipe.mjs +18 -0
- package/esm2022/lib/pipes/safe-html/safehtml.module.mjs +20 -0
- package/esm2022/lib/pipes/safe-html/safehtml.pipe.mjs +19 -0
- package/esm2022/lib/project-messages.mjs +146 -0
- package/esm2022/lib/questionaire/edit/questionnaire.component.mjs +1422 -0
- package/esm2022/lib/questionaire/edit/questionnaire.module.mjs +77 -0
- package/esm2022/lib/questionaire/questionaire-service.mjs +92 -0
- package/esm2022/lib/session-storage.service.mjs +57 -0
- package/esm2022/lib/shared.service.mjs +24 -2
- package/esm2022/lib/showuploadfile/showuploadfile.component.mjs +61 -0
- package/esm2022/lib/showuploadfile/showuploadfile.module.mjs +28 -0
- package/esm2022/lib/spinner/loading-spinner.component.mjs +22 -0
- package/esm2022/lib/spinner/loading-spinner.module.mjs +28 -0
- package/esm2022/lib/storage.service.mjs +75 -0
- package/esm2022/lib/word-processor.service.mjs +181 -0
- package/esm2022/public-api.mjs +27 -1
- package/fesm2022/jconsumer-shared.mjs +3522 -26
- package/fesm2022/jconsumer-shared.mjs.map +1 -1
- package/jconsumer-shared-0.0.3.tgz +0 -0
- package/lib/account-service.d.ts +9 -0
- package/lib/auth-service.d.ts +43 -0
- package/lib/calendar/date-time/datetime-processor.service.d.ts +120 -0
- package/lib/common.service.d.ts +9 -0
- package/lib/error-message.service.d.ts +5 -0
- package/lib/file-service.d.ts +26 -0
- package/lib/group-storage.service.d.ts +14 -0
- package/lib/i8n.module.d.ts +12 -0
- package/lib/local-storage.service.d.ts +34 -0
- package/lib/phone-input/phone-input.component.d.ts +25 -0
- package/lib/phone-input/phone-input.module.d.ts +9 -0
- package/lib/pipes/autolink/autolink.pipe.d.ts +7 -0
- package/lib/pipes/capitalize/capitalize.module.d.ts +8 -0
- package/lib/pipes/capitalize/capitalize.pipe.d.ts +7 -0
- package/lib/pipes/filter/filter.pipe.d.ts +7 -0
- package/lib/pipes/limit-to/limitTo.pipe.d.ts +7 -0
- package/lib/pipes/safe-html/safehtml.module.d.ts +8 -0
- package/lib/pipes/safe-html/safehtml.pipe.d.ts +10 -0
- package/lib/project-messages.d.ts +1 -0
- package/lib/questionaire/edit/questionnaire.component.d.ts +151 -0
- package/lib/questionaire/edit/questionnaire.module.d.ts +19 -0
- package/lib/questionaire/questionaire-service.d.ts +28 -0
- package/lib/session-storage.service.d.ts +26 -0
- package/lib/shared.service.d.ts +12 -3
- package/lib/showuploadfile/showuploadfile.component.d.ts +21 -0
- package/lib/showuploadfile/showuploadfile.module.d.ts +9 -0
- package/lib/spinner/loading-spinner.component.d.ts +11 -0
- package/lib/spinner/loading-spinner.module.d.ts +9 -0
- package/lib/storage.service.d.ts +16 -0
- package/lib/word-processor.service.d.ts +80 -0
- package/package.json +1 -1
- package/public-api.d.ts +26 -0
- package/jconsumer-shared-0.0.2.tgz +0 -0
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AccountService {
|
|
3
|
+
store: any;
|
|
4
|
+
constructor();
|
|
5
|
+
setActiveStore(store: any): void;
|
|
6
|
+
getActiveStore(): any;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { ServiceMeta } from "./service-meta";
|
|
3
|
+
import { LocalStorageService } from "./local-storage.service";
|
|
4
|
+
import { SessionStorageService } from "./session-storage.service";
|
|
5
|
+
import { GroupStorageService } from "./group-storage.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AuthService {
|
|
8
|
+
private serviceMeta;
|
|
9
|
+
private lStorageService;
|
|
10
|
+
private sessionStorageService;
|
|
11
|
+
private groupService;
|
|
12
|
+
private subject;
|
|
13
|
+
getMessage(): Observable<any>;
|
|
14
|
+
sendMessage(message: any): void;
|
|
15
|
+
constructor(serviceMeta: ServiceMeta, lStorageService: LocalStorageService, sessionStorageService: SessionStorageService, groupService: GroupStorageService);
|
|
16
|
+
login(post_data: any): Promise<unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Set Credentials and User Type (provider/consumer) in Local Storage
|
|
19
|
+
* @param data
|
|
20
|
+
* @param post_data
|
|
21
|
+
* @param mod
|
|
22
|
+
*/
|
|
23
|
+
setLoginData(data: any, post_data: any): void;
|
|
24
|
+
signUp(post_data: any): Promise<unknown>;
|
|
25
|
+
doLogout(): Promise<void>;
|
|
26
|
+
signUpConsumer(body: any): Observable<ArrayBuffer>;
|
|
27
|
+
loginConsumer(body: any): Observable<ArrayBuffer>;
|
|
28
|
+
consumerLogout(): Observable<ArrayBuffer>;
|
|
29
|
+
sendConsumerOTP(body: any): Observable<ArrayBuffer>;
|
|
30
|
+
verifyConsumerOTP(otp: string): Observable<ArrayBuffer>;
|
|
31
|
+
verifyNewPhoneOTP(otp: string, body: any, origin?: string): Observable<ArrayBuffer>;
|
|
32
|
+
verifyNewPhone(phonenumber: string, origin?: string, countryCode?: string): Observable<ArrayBuffer>;
|
|
33
|
+
getProviderConsumer(): Observable<ArrayBuffer>;
|
|
34
|
+
/**
|
|
35
|
+
* To check whether user logged in or not
|
|
36
|
+
* @returns true/false
|
|
37
|
+
*/
|
|
38
|
+
goThroughLogin(): Promise<unknown>;
|
|
39
|
+
shareOTPforForm(uuid: string): Observable<ArrayBuffer>;
|
|
40
|
+
verifyOTPforForm(otp: string, uuid: string): Observable<ArrayBuffer>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import { ServiceMeta } from "../../service-meta";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DateTimeProcessor {
|
|
5
|
+
private servicemeta;
|
|
6
|
+
REGION_LANGUAGE: string;
|
|
7
|
+
TIME_ZONE_REGION: string;
|
|
8
|
+
myweekdaysSchedule: string[];
|
|
9
|
+
constructor(servicemeta: ServiceMeta);
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param date1
|
|
13
|
+
* @param date2
|
|
14
|
+
* @returns difference between the two dates
|
|
15
|
+
*/
|
|
16
|
+
getdaysdifffromDates(date1: any, date2: any): {
|
|
17
|
+
hours: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param time
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
getTimeAsNumberOfMinutes(time: string): number;
|
|
25
|
+
/**
|
|
26
|
+
* convert year-month-day to day-monthname-year
|
|
27
|
+
* @param psdate
|
|
28
|
+
* @param params
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
formatDate(psdate: string, params?: any): string | string[];
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param i
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
addZero(i: any): any;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param time
|
|
41
|
+
* @param secreq
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
convert24HourtoAmPm(time: string, secreq?: any): string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param mins
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
providerConvertMinutesToHourMinute(mins: any): string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @param mins
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
convertMinutesToHourMinute(mins: any): string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @param mins
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
convertMinutesToHourMinuteForCheckin(mins: any): string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @param time
|
|
66
|
+
* @returns
|
|
67
|
+
*/
|
|
68
|
+
getDateFromTimeString(time: string): Date;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @param dt
|
|
72
|
+
* @param mod
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
stringtoDate(dt: string, mod: string): string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param date
|
|
79
|
+
* @returns
|
|
80
|
+
*/
|
|
81
|
+
transformToYMDFormat(date: any): string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @param dateStr
|
|
85
|
+
* @returns
|
|
86
|
+
*/
|
|
87
|
+
formatDateDisplay(dateStr: string): string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
getMoment(): typeof moment;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param num
|
|
96
|
+
* @returns
|
|
97
|
+
*/
|
|
98
|
+
getDay(num: any): string;
|
|
99
|
+
/**
|
|
100
|
+
* Convert Date to String in YYYYMMDD format
|
|
101
|
+
* @param inputDate input date
|
|
102
|
+
* @returns string
|
|
103
|
+
*/
|
|
104
|
+
getStringFromDate_YYYYMMDD(inputDate: any): string;
|
|
105
|
+
getLocaleDateFromServer(serverDate: any): string;
|
|
106
|
+
getToday(serverDate: any): string;
|
|
107
|
+
isFutureDate(serverDate: any, appmtDate: any): boolean;
|
|
108
|
+
getMomentDate(pdate: any): string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @param date
|
|
112
|
+
* @returns
|
|
113
|
+
*/
|
|
114
|
+
transformToMMDDYYYY_(date: any): string;
|
|
115
|
+
getCurrentUTCdatetimestring(): string;
|
|
116
|
+
getSystemDate(): import("rxjs").Observable<ArrayBuffer>;
|
|
117
|
+
AMHourto24(date: any, time12: any): moment.Moment;
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeProcessor, never>;
|
|
119
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DateTimeProcessor>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CommonService {
|
|
3
|
+
constructor();
|
|
4
|
+
groupBy(xs: any, key: any): any;
|
|
5
|
+
isNumeric(evt: any): boolean;
|
|
6
|
+
showlogoicon(logo: any): any;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FileService {
|
|
3
|
+
IMAGE_FORMATS: string[];
|
|
4
|
+
FILETYPES_UPLOAD: string[];
|
|
5
|
+
imageSize: number;
|
|
6
|
+
FILE_MAX_SIZE: number;
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* Method returns supported formats of files which has to be uploaded
|
|
10
|
+
* @param source image/file
|
|
11
|
+
* @returns available formats
|
|
12
|
+
*/
|
|
13
|
+
getSupportedFormats(source: any): any[];
|
|
14
|
+
/**
|
|
15
|
+
* Method will return the maximum uploadable size of a file/image
|
|
16
|
+
* @returns Maximum size of the image to upload
|
|
17
|
+
*/
|
|
18
|
+
getMaximumImageSize(): number;
|
|
19
|
+
imageValidation(file: any, source?: any): any;
|
|
20
|
+
getImage(url: any, fileObj: any): any;
|
|
21
|
+
getImageByType(type: any): "./assets/images/pdf.png" | "./assets/images/xls.png" | "./assets/images/audio.png" | "./assets/images/video.png" | "./assets/images/ImgeFileIcon/wordDocsBgWhite.jpg" | "./assets/images/ImgeFileIcon/docTxt.png" | "./assets/images/img_uplod.png";
|
|
22
|
+
filesSelected(event: any, selectedMessage: any): Promise<unknown>;
|
|
23
|
+
filessSelected(event: any, selectedMessage: any): Promise<unknown>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SessionStorageService } from "./session-storage.service";
|
|
2
|
+
import { LocalStorageService } from "./local-storage.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GroupStorageService {
|
|
5
|
+
private sessionStorageService;
|
|
6
|
+
private lStorageService;
|
|
7
|
+
constructor(sessionStorageService: SessionStorageService, lStorageService: LocalStorageService);
|
|
8
|
+
getGroup(): any;
|
|
9
|
+
setitemToGroupStorage(itemname: any, itemvalue: any): void;
|
|
10
|
+
getitemFromGroupStorage(itemname: string, type?: any): any;
|
|
11
|
+
removeitemFromGroupStorage(itemname: string | number): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupStorageService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GroupStorageService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
3
|
+
import { SharedService } from './shared.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@ngx-translate/core";
|
|
7
|
+
export declare function HttpLoaderFactory(http: HttpClient, sharedService: SharedService): TranslateHttpLoader;
|
|
8
|
+
export declare class I8nModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I8nModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<I8nModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule], [typeof i2.TranslateModule]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<I8nModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class LocalStorageService {
|
|
3
|
+
dont_delete_localstorage: string[];
|
|
4
|
+
/**
|
|
5
|
+
* Default constructor
|
|
6
|
+
*/
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* function to get local storage item value
|
|
10
|
+
* @param itemname name of variable
|
|
11
|
+
*/
|
|
12
|
+
getitemfromLocalStorage(itemname: string): any;
|
|
13
|
+
/**
|
|
14
|
+
* // function to set local storage item value
|
|
15
|
+
* @param itemname name of variable
|
|
16
|
+
* @param itemvalue value to set
|
|
17
|
+
*/
|
|
18
|
+
setitemonLocalStorage(itemname: string, itemvalue: any): void;
|
|
19
|
+
/**
|
|
20
|
+
* Method to remove an item from local storage
|
|
21
|
+
* @param itemname item to be removed
|
|
22
|
+
*/
|
|
23
|
+
removeitemfromLocalStorage(itemname: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Method to clear the local storage items except the ones contained in 'dont_delete_localstorage'
|
|
26
|
+
*/
|
|
27
|
+
clearLocalstorage(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Method to clear the local storage items
|
|
30
|
+
*/
|
|
31
|
+
clearAll(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PhoneInputComponent implements AfterViewInit, ControlValueAccessor {
|
|
5
|
+
initialCountry: string;
|
|
6
|
+
preferredCountries: string[];
|
|
7
|
+
nationalMode: boolean;
|
|
8
|
+
separateDialCode: boolean;
|
|
9
|
+
otherOptions: any;
|
|
10
|
+
phoneInput: ElementRef;
|
|
11
|
+
phoneNumber: any;
|
|
12
|
+
phoneInputInstance: any;
|
|
13
|
+
phoneNumberChange: EventEmitter<any>;
|
|
14
|
+
onChange: (value: any) => void;
|
|
15
|
+
onTouched: () => void;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
initializePhoneInput(): void;
|
|
18
|
+
updatePhoneNumber(): void;
|
|
19
|
+
writeValue(value: any): void;
|
|
20
|
+
registerOnChange(fn: any): void;
|
|
21
|
+
registerOnTouched(fn: any): void;
|
|
22
|
+
validatePhoneNumber(): boolean;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneInputComponent, "app-phone-input", never, { "initialCountry": { "alias": "initialCountry"; "required": false; }; "preferredCountries": { "alias": "preferredCountries"; "required": false; }; "nationalMode": { "alias": "nationalMode"; "required": false; }; "separateDialCode": { "alias": "separateDialCode"; "required": false; }; "otherOptions": { "alias": "otherOptions"; "required": false; }; }, { "phoneNumberChange": "phoneNumberChange"; }, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./phone-input.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class PhoneInputModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PhoneInputModule, [typeof i1.PhoneInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.PhoneInputComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PhoneInputModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AutolinkPipe implements PipeTransform {
|
|
4
|
+
transform(value: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutolinkPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AutolinkPipe, "autolink", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./capitalize.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CapitalizeFirstPipeModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizeFirstPipeModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CapitalizeFirstPipeModule, [typeof i1.CapitalizeFirstPipe], [typeof i2.CommonModule], [typeof i1.CapitalizeFirstPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CapitalizeFirstPipeModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CapitalizeFirstPipe implements PipeTransform {
|
|
4
|
+
transform(value: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizeFirstPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizeFirstPipe, "capitalizeFirst", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilterPipe implements PipeTransform {
|
|
4
|
+
transform(items: any[], searchText: string): any[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TruncatePipe implements PipeTransform {
|
|
4
|
+
transform(value: string, args: any[]): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "limitTo", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./safehtml.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SafeHtmlModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SafeHtmlModule, [typeof i1.SafeHtmlPipe], [typeof i2.CommonModule], [typeof i1.SafeHtmlPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SafeHtmlModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SafeHtmlPipe implements PipeTransform {
|
|
5
|
+
private sanitized;
|
|
6
|
+
constructor(sanitized: DomSanitizer);
|
|
7
|
+
transform(value: any): import("@angular/platform-browser").SafeHtml;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Messages: any;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { ButtonsConfig, Image, ModalGalleryService } from '@ks89/angular-modal-gallery';
|
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
+
import { Subscription } from 'rxjs';
|
|
7
|
+
import { QuestionaireService } from '../questionaire-service';
|
|
8
|
+
import { LocalStorageService } from '../../local-storage.service';
|
|
9
|
+
import { FileService } from '../../file-service';
|
|
10
|
+
import { CommonService } from '../../common.service';
|
|
11
|
+
import { ToastService } from '../../toast.service';
|
|
12
|
+
import { DateTimeProcessor } from '../../calendar/date-time/datetime-processor.service';
|
|
13
|
+
import { ErrorMessagingService } from '../../error-message.service';
|
|
14
|
+
import { WordProcessor } from '../../word-processor.service';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare class QuestionnaireComponent implements OnInit, OnChanges {
|
|
17
|
+
private activated_route;
|
|
18
|
+
private wordProcessor;
|
|
19
|
+
private lStorageService;
|
|
20
|
+
private dateProcessor;
|
|
21
|
+
dialog: MatDialog;
|
|
22
|
+
private fileService;
|
|
23
|
+
private commonService;
|
|
24
|
+
private questionaireService;
|
|
25
|
+
private errorService;
|
|
26
|
+
private toastService;
|
|
27
|
+
private modalGalleryService;
|
|
28
|
+
private location;
|
|
29
|
+
questionnaireList: any;
|
|
30
|
+
source: any;
|
|
31
|
+
accountId: any;
|
|
32
|
+
questionAnswers: any;
|
|
33
|
+
customerDetails: any;
|
|
34
|
+
uuid: any;
|
|
35
|
+
type: any;
|
|
36
|
+
waitlistStatus: any;
|
|
37
|
+
orderStatus: any;
|
|
38
|
+
donationDetails: any;
|
|
39
|
+
service: any;
|
|
40
|
+
mode: any;
|
|
41
|
+
fileChanged: EventEmitter<any>;
|
|
42
|
+
returnAnswers: EventEmitter<any>;
|
|
43
|
+
tempType: any;
|
|
44
|
+
bookingType: any;
|
|
45
|
+
answers: any;
|
|
46
|
+
showDataGrid: any;
|
|
47
|
+
selectedMessage: any;
|
|
48
|
+
apiError: any;
|
|
49
|
+
params: any;
|
|
50
|
+
fileuploadpreAnswers: any;
|
|
51
|
+
loading: boolean;
|
|
52
|
+
buttonDisable: boolean;
|
|
53
|
+
questions: any;
|
|
54
|
+
selectedDocs: any;
|
|
55
|
+
documentsToUpload: any;
|
|
56
|
+
subscription: Subscription;
|
|
57
|
+
uploadFilesTemp: any;
|
|
58
|
+
filestoUpload: any;
|
|
59
|
+
changeHappened: boolean;
|
|
60
|
+
uploadedFiles: any;
|
|
61
|
+
uploadedImages: any;
|
|
62
|
+
bookingDetails: any;
|
|
63
|
+
file2: ElementRef;
|
|
64
|
+
customButtonsFontAwesomeConfig: ButtonsConfig;
|
|
65
|
+
image_list_popup: Image[];
|
|
66
|
+
questionnaire_heading: string;
|
|
67
|
+
customer_label: string;
|
|
68
|
+
editQuestionnaire: boolean;
|
|
69
|
+
audioVideoFiles: any;
|
|
70
|
+
groupedQnr: any;
|
|
71
|
+
dataGridColumns: any;
|
|
72
|
+
dataGridColumnsAnswerList: any;
|
|
73
|
+
updatedGridIndex: any;
|
|
74
|
+
newTimeDateFormat: string;
|
|
75
|
+
qnrStatus: string;
|
|
76
|
+
comments: any;
|
|
77
|
+
tday: Date;
|
|
78
|
+
minday: Date;
|
|
79
|
+
dataGridListColumns: any;
|
|
80
|
+
showqnr: boolean;
|
|
81
|
+
item: any;
|
|
82
|
+
showItem: boolean;
|
|
83
|
+
totalPrice: any;
|
|
84
|
+
itemLength: any;
|
|
85
|
+
itemArray: any;
|
|
86
|
+
dataGridList: any;
|
|
87
|
+
id: number;
|
|
88
|
+
post_Data: any;
|
|
89
|
+
dgList: any;
|
|
90
|
+
sequenceId: any;
|
|
91
|
+
finalObjectList: any;
|
|
92
|
+
showservice: boolean;
|
|
93
|
+
quesStore: any;
|
|
94
|
+
allList: string;
|
|
95
|
+
popSearches: any;
|
|
96
|
+
serviceTotalPrice: number;
|
|
97
|
+
editableItem: any;
|
|
98
|
+
constructor(activated_route: ActivatedRoute, wordProcessor: WordProcessor, lStorageService: LocalStorageService, dateProcessor: DateTimeProcessor, dialog: MatDialog, fileService: FileService, commonService: CommonService, questionaireService: QuestionaireService, errorService: ErrorMessagingService, toastService: ToastService, modalGalleryService: ModalGalleryService, location: Location);
|
|
99
|
+
ngOnDestroy(): void;
|
|
100
|
+
ngOnChanges(): void;
|
|
101
|
+
ngOnInit(): void;
|
|
102
|
+
disableField(): void;
|
|
103
|
+
asIsOrder(a: any, b: any): number;
|
|
104
|
+
groupQuestionsBySection(): void;
|
|
105
|
+
setValidateError(errors: any): void;
|
|
106
|
+
getAnswers(answerData: any, type?: any): void;
|
|
107
|
+
filesSelected(event: any, question: any, document: any): void;
|
|
108
|
+
changeImageSelected(question: any, document: any): void;
|
|
109
|
+
isNumeric(evt: any): boolean;
|
|
110
|
+
onSubmit(keytype?: any): void;
|
|
111
|
+
getDate(date: any): Date;
|
|
112
|
+
listChange(ev: any, value: any, question: any, column?: any): void;
|
|
113
|
+
isChecked(value: any, question: any, column?: any): boolean;
|
|
114
|
+
booleanChange(ev: any, value: any, question: any, column?: any): void;
|
|
115
|
+
isBooleanChecked(value: any, question: any, column?: any): boolean;
|
|
116
|
+
submitQuestionnaire(passData: any): void;
|
|
117
|
+
uploadAudioVideo(data: any, type: any): void;
|
|
118
|
+
goBack(): void;
|
|
119
|
+
getQuestion(question: any): any;
|
|
120
|
+
validateQuestionnaire(src?: any): void;
|
|
121
|
+
getImg(question: any, document: any): any;
|
|
122
|
+
onButtonBeforeHook(event: any): void;
|
|
123
|
+
openAttachmentGallery(question: any, document: any): void;
|
|
124
|
+
openImageModalRow(image: Image): void;
|
|
125
|
+
private getCurrentIndexCustomLayout;
|
|
126
|
+
openModal(id: number, imageIndex: number, buttonsConfig: ButtonsConfig): void;
|
|
127
|
+
showAudioVideoFile(file: any): void;
|
|
128
|
+
editQnr(): void;
|
|
129
|
+
getDocuments(question: any): any;
|
|
130
|
+
showProviderText(question: any): boolean;
|
|
131
|
+
successGoback(): void;
|
|
132
|
+
showDataGridAddSection(question: any, value: any): void;
|
|
133
|
+
showDataGridAddSectionn(question: any, value: any): void;
|
|
134
|
+
saveDataGridColumn(question: any): void;
|
|
135
|
+
editDataGrid(question: any, column: any): void;
|
|
136
|
+
deleteDataGrid(question: any, column: any): void;
|
|
137
|
+
cancelAddorUpdate(question: any): void;
|
|
138
|
+
getColumnType(columns: any, column: any): any;
|
|
139
|
+
getSectionCount(): number;
|
|
140
|
+
getBoolValue(value: any): "Yes" | "No";
|
|
141
|
+
getMaxdate(data: any): any;
|
|
142
|
+
getMindate(data: any): any;
|
|
143
|
+
reverse(s: string): string;
|
|
144
|
+
qnrPopup(question: any, value: any): void;
|
|
145
|
+
increment(item: any): void;
|
|
146
|
+
getItemQuantity(item: any): any;
|
|
147
|
+
decrement(removingItem: any): void;
|
|
148
|
+
disableInput(): boolean;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireComponent, never>;
|
|
150
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionnaireComponent, "app-questionnaire", never, { "questionnaireList": { "alias": "questionnaireList"; "required": false; }; "source": { "alias": "source"; "required": false; }; "accountId": { "alias": "accountId"; "required": false; }; "questionAnswers": { "alias": "questionAnswers"; "required": false; }; "customerDetails": { "alias": "customerDetails"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "type": { "alias": "type"; "required": false; }; "waitlistStatus": { "alias": "waitlistStatus"; "required": false; }; "orderStatus": { "alias": "orderStatus"; "required": false; }; "donationDetails": { "alias": "donationDetails"; "required": false; }; "service": { "alias": "service"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "tempType": { "alias": "tempType"; "required": false; }; "bookingType": { "alias": "bookingType"; "required": false; }; }, { "fileChanged": "fileChanged"; "returnAnswers": "returnAnswers"; }, never, never, false, never>;
|
|
151
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./questionnaire.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../spinner/loading-spinner.module";
|
|
6
|
+
import * as i5 from "../../pipes/capitalize/capitalize.module";
|
|
7
|
+
import * as i6 from "@ks89/angular-modal-gallery";
|
|
8
|
+
import * as i7 from "@angular/material/datepicker";
|
|
9
|
+
import * as i8 from "@angular/material/checkbox";
|
|
10
|
+
import * as i9 from "@angular/material/slide-toggle";
|
|
11
|
+
import * as i10 from "@angular/material/core";
|
|
12
|
+
import * as i11 from "@angular/material/select";
|
|
13
|
+
import * as i12 from "../../pipes/safe-html/safehtml.module";
|
|
14
|
+
import * as i13 from "@angular/material/icon";
|
|
15
|
+
export declare class QuestionnaireModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QuestionnaireModule, [typeof i1.QuestionnaireComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.LoadingSpinnerModule, typeof i5.CapitalizeFirstPipeModule, typeof i6.GalleryModule, typeof i7.MatDatepickerModule, typeof i8.MatCheckboxModule, typeof i9.MatSlideToggleModule, typeof i10.MatOptionModule, typeof i11.MatSelectModule, typeof i12.SafeHtmlModule, typeof i13.MatIconModule], [typeof i1.QuestionnaireComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<QuestionnaireModule>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { ServiceMeta } from "../service-meta";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class QuestionaireService {
|
|
5
|
+
private servicemeta;
|
|
6
|
+
private subject;
|
|
7
|
+
getMessage(): Observable<any>;
|
|
8
|
+
sendMessage(message: any): void;
|
|
9
|
+
constructor(servicemeta: ServiceMeta);
|
|
10
|
+
validateConsumerQuestionnaire(body: any, accountId: string): Observable<ArrayBuffer>;
|
|
11
|
+
validateConsumerQuestionnaireResbumit(body: any, accountId: string): Observable<ArrayBuffer>;
|
|
12
|
+
consumerOrderQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
|
|
13
|
+
consumerDonationQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
|
|
14
|
+
consumerApptQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
|
|
15
|
+
consumerWaitlistQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
|
|
16
|
+
videoaudioS3Upload(file: any, url: any): Observable<ArrayBuffer>;
|
|
17
|
+
resubmitConsumerWaitlistQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
18
|
+
submitConsumerWaitlistQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
19
|
+
resubmitConsumerDonationQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
20
|
+
resubmitConsumerApptQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
21
|
+
submitConsumerApptQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
22
|
+
resubmitConsumerOrderQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
23
|
+
submitConsumerOrderQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
|
|
24
|
+
validateConsumerIvrQuestionnaire(body: any, id: string): Observable<ArrayBuffer>;
|
|
25
|
+
submitDonationQuestionnaire(uuid: string, body: any, account_id: string): Observable<ArrayBuffer>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionaireService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuestionaireService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SessionStorageService {
|
|
3
|
+
constructor();
|
|
4
|
+
/**
|
|
5
|
+
* Method to set an item on session storage
|
|
6
|
+
* @param itemname
|
|
7
|
+
* @param itemvalue
|
|
8
|
+
*/
|
|
9
|
+
setitemOnSessionStorage(itemname: string, itemvalue: any): void;
|
|
10
|
+
/**
|
|
11
|
+
* Method to get an item from session storage
|
|
12
|
+
* @param itemname
|
|
13
|
+
*/
|
|
14
|
+
getitemfromSessionStorage(itemname: string): any;
|
|
15
|
+
/**
|
|
16
|
+
* Method to remove an item from session storage
|
|
17
|
+
* @param itemname
|
|
18
|
+
*/
|
|
19
|
+
removeitemfromSessionStorage(itemname: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Method to clear all the items from session storage
|
|
22
|
+
*/
|
|
23
|
+
clearSessionStorage(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
|
|
26
|
+
}
|