@rangertechnologies/ngnxt 2.0.28 → 2.0.30
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/README.md +1 -23
- package/esm2022/lib/components/custom-table/custom-table.component.mjs +23 -22
- package/esm2022/lib/components/pick-location/pick-location.component.mjs +21 -19
- package/esm2022/lib/model/errorWrapper.mjs +6 -0
- package/esm2022/lib/model/tableWrapper.mjs +16 -0
- package/esm2022/lib/nxt-app.module.mjs +6 -3
- package/esm2022/lib/pages/booklet/booklet.component.mjs +41 -7
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +65 -0
- package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +5 -78
- package/esm2022/lib/wrapper.mjs +1 -6
- package/fesm2022/rangertechnologies-ngnxt.mjs +156 -138
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/custom-table/custom-table.component.d.ts +11 -7
- package/lib/components/pick-location/pick-location.component.d.ts +2 -5
- package/lib/model/errorWrapper.d.ts +5 -0
- package/lib/model/tableWrapper.d.ts +15 -0
- package/lib/nxt-app.module.d.ts +11 -10
- package/lib/pages/booklet/booklet.component.d.ts +5 -1
- package/lib/pages/questionbook/questionbook.component.d.ts +22 -0
- package/lib/pages/questionnaire/questionnaire.component.d.ts +0 -3
- package/lib/wrapper.d.ts +1 -5
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.0.30.tgz +0 -0
- package/rangertechnologies-ngnxt-2.0.28.tgz +0 -0
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TableWrapper } from '../../model/tableWrapper';
|
|
3
|
+
import { Question } from '../../wrapper';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class CustomTableComponent implements OnInit {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
question: Question;
|
|
7
|
+
valueChange: EventEmitter<any[]>;
|
|
8
|
+
tableInfo: TableWrapper;
|
|
9
|
+
tableHeader: any;
|
|
10
|
+
tableData: any;
|
|
11
|
+
addRowColSpan: number;
|
|
8
12
|
constructor();
|
|
9
13
|
ngOnInit(): void;
|
|
10
14
|
addRow(): void;
|
|
11
15
|
updateRadio(item: any, value: string): void;
|
|
12
|
-
updateLabel(rowIndex: number, label: string): void;
|
|
16
|
+
updateLabel(rowIndex: number, label: string, value: string): void;
|
|
13
17
|
emitTableDataValue(updatedTableData: any[]): void;
|
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTableComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "question": "question"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
16
20
|
}
|
|
17
21
|
export interface tableItem {
|
|
18
|
-
|
|
22
|
+
safety_precaution: string;
|
|
19
23
|
imageSrc: string;
|
|
20
24
|
altText: string;
|
|
21
25
|
name: string;
|
|
@@ -20,14 +20,11 @@ export declare class PickLocationComponent implements OnInit {
|
|
|
20
20
|
lat: any;
|
|
21
21
|
lng: any;
|
|
22
22
|
};
|
|
23
|
-
markerOptions:
|
|
24
|
-
draggable: boolean;
|
|
25
|
-
animation: google.maps.Animation;
|
|
26
|
-
};
|
|
23
|
+
markerOptions: any;
|
|
27
24
|
constructor(ngZone: NgZone);
|
|
28
25
|
ngOnInit(): void;
|
|
29
26
|
initAutocomplete(): void;
|
|
30
|
-
onMarkerDragEnd(
|
|
27
|
+
onMarkerDragEnd(): void;
|
|
31
28
|
onMapClick(event: google.maps.MapMouseEvent): void;
|
|
32
29
|
private setCurrentLocation;
|
|
33
30
|
getAddress(latitude: number, longitude: number): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class TableHeader {
|
|
2
|
+
label: string;
|
|
3
|
+
fieldName: string;
|
|
4
|
+
fieldId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
isReadOnly: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class TableWrapper {
|
|
9
|
+
header: TableHeader[];
|
|
10
|
+
data: any[];
|
|
11
|
+
keyValueField: string;
|
|
12
|
+
rowFunction: any;
|
|
13
|
+
addRow: boolean;
|
|
14
|
+
newRowDefault: any;
|
|
15
|
+
}
|
package/lib/nxt-app.module.d.ts
CHANGED
|
@@ -10,17 +10,18 @@ import * as i8 from "./components/dropdown-with-flag/dropdown-with-flag.componen
|
|
|
10
10
|
import * as i9 from "./components/custom-dropdown/custom-dropdown.component";
|
|
11
11
|
import * as i10 from "./pages/booklet/booklet.component";
|
|
12
12
|
import * as i11 from "./components/search-box/search-box.component";
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "@angular/
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "@
|
|
19
|
-
import * as i18 from "@
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
13
|
+
import * as i12 from "./pages/questionbook/questionbook.component";
|
|
14
|
+
import * as i13 from "@angular/common";
|
|
15
|
+
import * as i14 from "@angular/forms";
|
|
16
|
+
import * as i15 from "mydatepicker";
|
|
17
|
+
import * as i16 from "ng-pick-datetime";
|
|
18
|
+
import * as i17 from "@angular/common/http";
|
|
19
|
+
import * as i18 from "@ng-select/ng-select";
|
|
20
|
+
import * as i19 from "@angular/google-maps";
|
|
21
|
+
import * as i20 from "ngx-spinner";
|
|
22
|
+
import * as i21 from "ng-circle-progress";
|
|
22
23
|
export declare class NxtAppModule {
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i3.PickLocationComponent, typeof i4.CustomInputComponent, typeof i5.CustomTextAreaComponent, typeof i6.CustomTableComponent, typeof i7.CustomDatePickerComponent, typeof i8.DropdownWithFlagComponent, typeof i9.CustomDropdownComponent, typeof i10.BookletComponent, typeof i11.SearchBoxComponent], [typeof
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i3.PickLocationComponent, typeof i4.CustomInputComponent, typeof i5.CustomTextAreaComponent, typeof i6.CustomTableComponent, typeof i7.CustomDatePickerComponent, typeof i8.DropdownWithFlagComponent, typeof i9.CustomDropdownComponent, typeof i10.BookletComponent, typeof i11.SearchBoxComponent, typeof i12.QuestionbookComponent], [typeof i13.CommonModule, typeof i14.FormsModule, typeof i15.MyDatePickerModule, typeof i16.OwlDateTimeModule, typeof i16.OwlNativeDateTimeModule, typeof i17.HttpClientModule, typeof i18.NgSelectModule, typeof i19.GoogleMapsModule, typeof i14.ReactiveFormsModule, typeof i20.NgxSpinnerModule, typeof i21.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i10.BookletComponent]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
|
|
26
27
|
}
|
|
@@ -2,7 +2,7 @@ import { OnInit, EventEmitter, ElementRef } from "@angular/core";
|
|
|
2
2
|
import { SalesforceService } from "../../services/salesforce.service";
|
|
3
3
|
import { DataService } from '../../services/data.service';
|
|
4
4
|
import { ActivatedRoute } from "@angular/router";
|
|
5
|
-
import { DomSanitizer } from "@angular/platform-browser";
|
|
5
|
+
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
6
6
|
import { ActionMeta } from '../../interfaces/actionMeta';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class BookletComponent implements OnInit {
|
|
@@ -18,6 +18,8 @@ export declare class BookletComponent implements OnInit {
|
|
|
18
18
|
booklet: any[];
|
|
19
19
|
abItem: any;
|
|
20
20
|
actions: ActionMeta[];
|
|
21
|
+
bookQuestionsMap: any;
|
|
22
|
+
private sqOptions;
|
|
21
23
|
spinnerName: string;
|
|
22
24
|
spinnerType: string;
|
|
23
25
|
constructor(sfService: SalesforceService, dataService: DataService, route: ActivatedRoute, sanitizer: DomSanitizer, el: ElementRef);
|
|
@@ -28,6 +30,8 @@ export declare class BookletComponent implements OnInit {
|
|
|
28
30
|
private successReadBooklet;
|
|
29
31
|
private failureReadBooklet;
|
|
30
32
|
handleBookletActionClick(action: ActionMeta): void;
|
|
33
|
+
readQuestions(qbId: string): any[];
|
|
34
|
+
getText(value: any): SafeHtml;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
|
|
32
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; }, never, never, false>;
|
|
33
37
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Question, QuestionBook } from '../../wrapper';
|
|
3
|
+
import { SalesforceService } from "../../services/salesforce.service";
|
|
4
|
+
import { DataService } from '../../services/data.service';
|
|
5
|
+
import { ChangeService } from '../../services/change.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class QuestionbookComponent implements OnInit {
|
|
8
|
+
private sfService;
|
|
9
|
+
private dataService;
|
|
10
|
+
private changeService;
|
|
11
|
+
qbItem: QuestionBook;
|
|
12
|
+
questionItem: Question;
|
|
13
|
+
questions: Question[];
|
|
14
|
+
subQuestions: Question[];
|
|
15
|
+
constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
clearSQError(quesId: any): void;
|
|
18
|
+
setSubQuestions(records: any): void;
|
|
19
|
+
childEventCapture(event: any, ques?: any): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionbookComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": "qbItem"; "questionItem": "questionItem"; "questions": "questions"; }, {}, never, never, false>;
|
|
22
|
+
}
|
|
@@ -90,8 +90,6 @@ export declare class QuestionnaireComponent implements OnInit {
|
|
|
90
90
|
possibilities: any;
|
|
91
91
|
innerhtml1: any;
|
|
92
92
|
summaryData: any[];
|
|
93
|
-
tableData1: any[];
|
|
94
|
-
tableData2: any[];
|
|
95
93
|
hours: any[];
|
|
96
94
|
minutes: string[];
|
|
97
95
|
selectedHour: string;
|
|
@@ -203,7 +201,6 @@ export declare class QuestionnaireComponent implements OnInit {
|
|
|
203
201
|
displayDate(dateSelected: any, ques: any): void;
|
|
204
202
|
getKey(item: any): any;
|
|
205
203
|
getValue(item: any): any;
|
|
206
|
-
getTableData(ques: any): any[];
|
|
207
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireComponent, never>;
|
|
208
205
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionnaireComponent, "lib-questionnaire", never, { "qbId": "qbId"; "insuranceStartDate": "insuranceStartDate"; "serv": "serv"; "tkn": "tkn"; }, { "handleEvent": "handleEvent"; "handlePage": "handlePage"; }, never, never, false>;
|
|
209
206
|
}
|
package/lib/wrapper.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ErrorWrapper } from "./model/errorWrapper";
|
|
1
2
|
export declare class QuestionBook {
|
|
2
3
|
Id: number;
|
|
3
4
|
Name: string;
|
|
@@ -146,11 +147,6 @@ export declare class AnswerWrapper {
|
|
|
146
147
|
groupText: string;
|
|
147
148
|
squesValue: string;
|
|
148
149
|
}
|
|
149
|
-
export declare class ErrorWrapper {
|
|
150
|
-
errorCode: string;
|
|
151
|
-
errorMsg: string;
|
|
152
|
-
errorDetails: string;
|
|
153
|
-
}
|
|
154
150
|
export declare class AttachmentWrapper {
|
|
155
151
|
parentId: string;
|
|
156
152
|
fileName: string;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|