@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.
@@ -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
- tableHeader: string;
5
- tableData: tableItem[];
6
- tableDataChange: EventEmitter<any[]>;
7
- tableIndex: number;
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, { "tableHeader": "tableHeader"; "tableData": "tableData"; "tableIndex": "tableIndex"; }, { "tableDataChange": "tableDataChange"; }, never, never, false>;
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
- label: string;
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(event: google.maps.MapMouseEvent): void;
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,5 @@
1
+ export declare class ErrorWrapper {
2
+ errorCode: string;
3
+ errorMsg: string;
4
+ errorDetails: string;
5
+ }
@@ -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
+ }
@@ -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 "@angular/common";
14
- import * as i13 from "@angular/forms";
15
- import * as i14 from "mydatepicker";
16
- import * as i15 from "ng-pick-datetime";
17
- import * as i16 from "@angular/common/http";
18
- import * as i17 from "@ng-select/ng-select";
19
- import * as i18 from "@angular/google-maps";
20
- import * as i19 from "ngx-spinner";
21
- import * as i20 from "ng-circle-progress";
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 i12.CommonModule, typeof i13.FormsModule, typeof i14.MyDatePickerModule, typeof i15.OwlDateTimeModule, typeof i15.OwlNativeDateTimeModule, typeof i16.HttpClientModule, typeof i17.NgSelectModule, typeof i18.GoogleMapsModule, typeof i13.ReactiveFormsModule, typeof i19.NgxSpinnerModule, typeof i20.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i10.BookletComponent]>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.0.28",
3
+ "version": "2.0.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.3",
6
6
  "@angular/core": "^14.2.3"
Binary file