@rangertechnologies/ngnxt 2.0.32 → 2.0.34
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/components/custom-table/custom-table.component.mjs +1 -1
- package/esm2022/lib/model/bookletWrapper.mjs +9 -0
- package/esm2022/lib/pages/booklet/booklet.component.mjs +48 -12
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +30 -16
- package/esm2022/lib/services/storage.service.mjs +41 -0
- package/fesm2022/rangertechnologies-ngnxt.mjs +111 -24
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/custom-table/custom-table.component.d.ts +0 -7
- package/lib/model/bookletWrapper.d.ts +5 -0
- package/lib/pages/booklet/booklet.component.d.ts +8 -2
- package/lib/pages/questionbook/questionbook.component.d.ts +3 -1
- package/lib/services/storage.service.d.ts +12 -0
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.0.34.tgz +0 -0
- package/rangertechnologies-ngnxt-2.0.32.tgz +0 -0
|
@@ -18,10 +18,3 @@ export declare class CustomTableComponent implements OnInit {
|
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTableComponent, never>;
|
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "question": "question"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
20
20
|
}
|
|
21
|
-
export interface tableItem {
|
|
22
|
-
safety_precaution: string;
|
|
23
|
-
imageSrc: string;
|
|
24
|
-
altText: string;
|
|
25
|
-
name: string;
|
|
26
|
-
value: string;
|
|
27
|
-
}
|
|
@@ -4,25 +4,31 @@ import { DataService } from '../../services/data.service';
|
|
|
4
4
|
import { ActivatedRoute } from "@angular/router";
|
|
5
5
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
6
6
|
import { ActionMeta } from '../../interfaces/actionMeta';
|
|
7
|
+
import { BookletWrapper } from "../../model/bookletWrapper";
|
|
8
|
+
import { StorageService } from '../../services/storage.service';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class BookletComponent implements OnInit {
|
|
9
11
|
private sfService;
|
|
10
12
|
private dataService;
|
|
13
|
+
private storageService;
|
|
11
14
|
private route;
|
|
12
15
|
private sanitizer;
|
|
13
16
|
bookletId: string;
|
|
14
17
|
serv: string;
|
|
15
18
|
tkn: string;
|
|
19
|
+
bookletJSON: any;
|
|
16
20
|
handleBookletActionEvent: EventEmitter<any>;
|
|
17
21
|
handlePage: EventEmitter<any>;
|
|
22
|
+
nxtBooklet: BookletWrapper;
|
|
18
23
|
booklet: any[];
|
|
19
24
|
abItem: any;
|
|
20
25
|
actions: ActionMeta[];
|
|
21
26
|
bookQuestionsMap: any;
|
|
22
27
|
private sqOptions;
|
|
28
|
+
isAnswerFlag: boolean;
|
|
23
29
|
spinnerName: string;
|
|
24
30
|
spinnerType: string;
|
|
25
|
-
constructor(sfService: SalesforceService, dataService: DataService, route: ActivatedRoute, sanitizer: DomSanitizer, el: ElementRef);
|
|
31
|
+
constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, el: ElementRef);
|
|
26
32
|
ngOnInit(): void;
|
|
27
33
|
ngOnChanges(): void;
|
|
28
34
|
processBooklet(): void;
|
|
@@ -33,5 +39,5 @@ export declare class BookletComponent implements OnInit {
|
|
|
33
39
|
readQuestions(qbId: string): any[];
|
|
34
40
|
getText(value: any): SafeHtml;
|
|
35
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; }, never, never, false>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; "bookletJSON": "bookletJSON"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; }, never, never, false>;
|
|
37
43
|
}
|
|
@@ -3,17 +3,19 @@ import { Question, QuestionBook } from '../../wrapper';
|
|
|
3
3
|
import { SalesforceService } from "../../services/salesforce.service";
|
|
4
4
|
import { DataService } from '../../services/data.service';
|
|
5
5
|
import { ChangeService } from '../../services/change.service';
|
|
6
|
+
import { StorageService } from '../../services/storage.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class QuestionbookComponent implements OnInit {
|
|
8
9
|
private sfService;
|
|
9
10
|
private dataService;
|
|
10
11
|
private changeService;
|
|
12
|
+
private storageService;
|
|
11
13
|
qbItem: QuestionBook;
|
|
12
14
|
questionItem: Question;
|
|
13
15
|
questions: Question[];
|
|
14
16
|
subQuestions: Question[];
|
|
15
17
|
selectedFileData: any[];
|
|
16
|
-
constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService);
|
|
18
|
+
constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, storageService: StorageService);
|
|
17
19
|
ngOnInit(): void;
|
|
18
20
|
clearSQError(quesId: any): void;
|
|
19
21
|
setSubQuestions(records: any): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Question } from '../wrapper';
|
|
2
|
+
import { BookletWrapper } from '../model/bookletWrapper';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StorageService {
|
|
5
|
+
nxtBookletAnswer: BookletWrapper;
|
|
6
|
+
constructor();
|
|
7
|
+
save(qbJson: BookletWrapper): void;
|
|
8
|
+
update(questionWithInput: Question): void;
|
|
9
|
+
get(): BookletWrapper;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|