@rangertechnologies/ngnxt 2.0.47 → 2.1.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 (56) hide show
  1. package/esm2022/lib/ar.i18n.mjs +29 -0
  2. package/esm2022/lib/components/custom-dropdown/custom-dropdown.component.mjs +13 -9
  3. package/esm2022/lib/components/custom-input/custom-input.component.mjs +12 -8
  4. package/esm2022/lib/components/custom-table/custom-table.component.mjs +13 -8
  5. package/esm2022/lib/components/custom-text-area/custom-text-area.component.mjs +13 -8
  6. package/esm2022/lib/components/dropdown-with-flag/dropdown-with-flag.component.mjs +14 -9
  7. package/esm2022/lib/components/file-upload/file-upload.component.mjs +11 -7
  8. package/esm2022/lib/components/file-view/file-view.component.mjs +11 -7
  9. package/esm2022/lib/components/pick-location/pick-location.component.mjs +13 -9
  10. package/esm2022/lib/components/search-box/search-box.component.mjs +11 -8
  11. package/esm2022/lib/components/table-appendix/table-appendix.component.mjs +15 -10
  12. package/esm2022/lib/en.i18n.mjs +29 -0
  13. package/esm2022/lib/i18n-config.service.mjs +4 -0
  14. package/esm2022/lib/i18n.component.mjs +47 -0
  15. package/esm2022/lib/i18n.module.mjs +38 -0
  16. package/esm2022/lib/i18n.pipe.mjs +25 -0
  17. package/esm2022/lib/i18n.service.mjs +54 -0
  18. package/esm2022/lib/nxt-app.module.mjs +41 -8
  19. package/esm2022/lib/pages/booklet/booklet.component.mjs +32 -16
  20. package/esm2022/lib/pages/questionbook/questionbook.component.mjs +66 -32
  21. package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +20 -16
  22. package/esm2022/lib/pages/summary-page/summary-page.component.mjs +13 -8
  23. package/esm2022/lib/sample.mjs +137 -6
  24. package/esm2022/lib/tam.i18n.mjs +29 -0
  25. package/esm2022/lib/wrapper.mjs +5 -1
  26. package/esm2022/public-api.mjs +3 -1
  27. package/fesm2022/rangertechnologies-ngnxt.mjs +592 -112
  28. package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
  29. package/lib/ar.i18n.d.ts +24 -0
  30. package/lib/components/custom-dropdown/custom-dropdown.component.d.ts +3 -1
  31. package/lib/components/custom-input/custom-input.component.d.ts +3 -1
  32. package/lib/components/custom-table/custom-table.component.d.ts +3 -1
  33. package/lib/components/custom-text-area/custom-text-area.component.d.ts +3 -1
  34. package/lib/components/dropdown-with-flag/dropdown-with-flag.component.d.ts +3 -1
  35. package/lib/components/file-upload/file-upload.component.d.ts +3 -1
  36. package/lib/components/file-view/file-view.component.d.ts +3 -1
  37. package/lib/components/pick-location/pick-location.component.d.ts +3 -1
  38. package/lib/components/search-box/search-box.component.d.ts +3 -1
  39. package/lib/components/table-appendix/table-appendix.component.d.ts +3 -1
  40. package/lib/en.i18n.d.ts +24 -0
  41. package/lib/i18n-config.service.d.ts +2 -0
  42. package/lib/i18n.component.d.ts +11 -0
  43. package/lib/i18n.module.d.ts +9 -0
  44. package/lib/i18n.pipe.d.ts +10 -0
  45. package/lib/i18n.service.d.ts +14 -0
  46. package/lib/nxt-app.module.d.ts +13 -10
  47. package/lib/pages/booklet/booklet.component.d.ts +5 -4
  48. package/lib/pages/questionbook/questionbook.component.d.ts +8 -3
  49. package/lib/pages/questionnaire/questionnaire.component.d.ts +3 -1
  50. package/lib/pages/summary-page/summary-page.component.d.ts +3 -1
  51. package/lib/tam.i18n.d.ts +24 -0
  52. package/lib/wrapper.d.ts +30 -0
  53. package/package.json +1 -1
  54. package/public-api.d.ts +2 -0
  55. package/rangertechnologies-ngnxt-2.1.0.tgz +0 -0
  56. package/rangertechnologies-ngnxt-2.0.47.tgz +0 -0
@@ -0,0 +1,24 @@
1
+ declare const arI18n: {
2
+ required: string;
3
+ addMore: string;
4
+ select: string;
5
+ attachment: string;
6
+ chooseFiles: string;
7
+ uploadFile: string;
8
+ thisFieldIsRequired: string;
9
+ pickYourLocation: string;
10
+ calibrated: string;
11
+ enterValue: string;
12
+ ptwDetails: string;
13
+ pleaseMakeChoice: string;
14
+ attach: string;
15
+ add: string;
16
+ zeroOfZero: string;
17
+ selectDate: string;
18
+ toBuyTicket: string;
19
+ pickLocation: string;
20
+ enterLocation: string;
21
+ searchNearestLocation: string;
22
+ currentTheme: string;
23
+ };
24
+ export default arI18n;
@@ -3,10 +3,12 @@ import { HttpClient } from '@angular/common/http';
3
3
  import { Observable, Subscription } from 'rxjs';
4
4
  import { ChangeWrapper } from '../../model/changeWrapper';
5
5
  import { ChangeService } from '../../services/change.service';
6
+ import { I18nService } from '../../i18n.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class CustomDropdownComponent implements OnInit {
8
9
  private http;
9
10
  private changeService;
11
+ i18nService: I18nService;
10
12
  options: string[];
11
13
  placeholder: string;
12
14
  apiMeta: string;
@@ -19,7 +21,7 @@ export declare class CustomDropdownComponent implements OnInit {
19
21
  referenceField: string;
20
22
  valueChange: EventEmitter<ChangeWrapper>;
21
23
  invalidFieldIds: string[];
22
- constructor(http: HttpClient, changeService: ChangeService);
24
+ constructor(http: HttpClient, changeService: ChangeService, i18nService: I18nService);
23
25
  labelField: string;
24
26
  valueField: string;
25
27
  subscription: Subscription;
@@ -2,9 +2,11 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { ChangeService } from '../../services/change.service';
4
4
  import { Question } from '../../wrapper';
5
+ import { I18nService } from '../../i18n.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class CustomInputComponent implements OnInit {
7
8
  private changeService;
9
+ i18nService: I18nService;
8
10
  value: any | any[];
9
11
  question: Question;
10
12
  disabled: boolean;
@@ -16,7 +18,7 @@ export declare class CustomInputComponent implements OnInit {
16
18
  focusEvent: any;
17
19
  inputValue: EventEmitter<any>;
18
20
  subscription: Subscription;
19
- constructor(changeService: ChangeService);
21
+ constructor(changeService: ChangeService, i18nService: I18nService);
20
22
  ngOnInit(): void;
21
23
  ngOnChange(): void;
22
24
  ngOnDestroy(): void;
@@ -1,15 +1,17 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import { TableWrapper } from '../../model/tableWrapper';
3
4
  import { Question } from '../../wrapper';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class CustomTableComponent implements OnInit {
7
+ i18nService: I18nService;
6
8
  question: Question;
7
9
  valueChange: EventEmitter<any>;
8
10
  tableInfo: TableWrapper;
9
11
  tableHeader: any;
10
12
  tableData: any;
11
13
  addRowColSpan: number;
12
- constructor();
14
+ constructor(i18nService: I18nService);
13
15
  ngOnInit(): void;
14
16
  addRow(): void;
15
17
  updateRadio(item: any, value: string): void;
@@ -1,12 +1,14 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class CustomTextAreaComponent implements OnInit {
5
+ i18nService: I18nService;
4
6
  value: any | any[];
5
7
  placeholder: string;
6
8
  rows: Number;
7
9
  error: any;
8
10
  textareaValueChange: EventEmitter<string>;
9
- constructor();
11
+ constructor(i18nService: I18nService);
10
12
  ngOnInit(): void;
11
13
  onTextareaChange(event: any): void;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextAreaComponent, never>;
@@ -1,11 +1,13 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class DropdownWithFlagComponent implements OnInit {
5
+ i18nService: I18nService;
4
6
  certified: boolean;
5
7
  JobPerformerCertificates: any[];
6
8
  flagDropDownChange: EventEmitter<any>;
7
9
  selectedValue: string;
8
- constructor();
10
+ constructor(i18nService: I18nService);
9
11
  ngOnInit(): void;
10
12
  ngOnChanges(): void;
11
13
  onJobPerformerCertified(event: any): void;
@@ -1,8 +1,10 @@
1
1
  import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import { SharedService } from '../../services/shared.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class FileUploadComponent implements OnInit, OnChanges {
5
6
  private SharedService;
7
+ i18nService: I18nService;
6
8
  selectedFileData: EventEmitter<any[]>;
7
9
  deletedFileData: EventEmitter<any>;
8
10
  allFiles: any;
@@ -13,7 +15,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges {
13
15
  selectedFileNameArray: string[];
14
16
  copyOfInputAllFiles: any;
15
17
  copyOfFileUploadingLimit: any;
16
- constructor(SharedService: SharedService);
18
+ constructor(SharedService: SharedService, i18nService: I18nService);
17
19
  ngOnInit(): void;
18
20
  onFileUpload(event: any): void;
19
21
  ngOnChanges(simpleChanges: SimpleChanges): void;
@@ -1,11 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import { SharedService } from '../../services/shared.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class FileViewComponent implements OnInit {
5
6
  private SharedService;
7
+ i18nService: I18nService;
6
8
  documentData: any;
7
9
  api: any;
8
- constructor(SharedService: SharedService);
10
+ constructor(SharedService: SharedService, i18nService: I18nService);
9
11
  ngOnInit(): void;
10
12
  viewDoc(link: any): void;
11
13
  getDocIcon(docName: any): "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-PDF.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-XLSX.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-DOCX.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-AVI.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-DOC.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-GIF.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-JPG.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-MOV.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-MP3.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-MP4.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-MPEG.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-MPG.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-PNG.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-PPT.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-TXT.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/img-file-XLS.png" | "https://rnxt.s3.amazonaws.com/Icons/fileTypeIcons/ic_document.svg";
@@ -1,7 +1,9 @@
1
1
  /// <reference types="google.maps" />
2
2
  import { ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
3
+ import { I18nService } from '../../i18n.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class PickLocationComponent implements OnInit {
6
+ i18nService: I18nService;
5
7
  private ngZone;
6
8
  latitude: any;
7
9
  longitude: any;
@@ -21,7 +23,7 @@ export declare class PickLocationComponent implements OnInit {
21
23
  lng: any;
22
24
  };
23
25
  markerOptions: any;
24
- constructor(ngZone: NgZone);
26
+ constructor(i18nService: I18nService, ngZone: NgZone);
25
27
  ngOnInit(): void;
26
28
  initAutocomplete(): void;
27
29
  onMarkerDragEnd(): void;
@@ -5,12 +5,14 @@ import { ActivatedRoute } from "@angular/router";
5
5
  import { HttpClient } from '@angular/common/http';
6
6
  import { Observable } from 'rxjs';
7
7
  import { ChangeWrapper } from "../../model/changeWrapper";
8
+ import { I18nService } from "../../i18n.service";
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class SearchBoxComponent implements OnInit {
10
11
  private sfService;
11
12
  private dataService;
12
13
  private route;
13
14
  private http;
15
+ i18nService: I18nService;
14
16
  placeHolderText: string;
15
17
  auto: any;
16
18
  question: any;
@@ -28,7 +30,7 @@ export declare class SearchBoxComponent implements OnInit {
28
30
  private el;
29
31
  private serv;
30
32
  private tkn;
31
- constructor(sfService: SalesforceService, dataService: DataService, route: ActivatedRoute, http: HttpClient, el: ElementRef);
33
+ constructor(sfService: SalesforceService, dataService: DataService, route: ActivatedRoute, http: HttpClient, el: ElementRef, i18nService: I18nService);
32
34
  ngOnInit(): void;
33
35
  clearList(): void;
34
36
  getSourceDataLocal(event: any): void;
@@ -1,8 +1,10 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import { TableWrapper } from '../../model/tableWrapper';
3
4
  import { Question } from '../../wrapper';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TableAppendixComponent implements OnInit {
7
+ i18nService: I18nService;
6
8
  question: Question;
7
9
  valueChange: EventEmitter<any>;
8
10
  tableInfo: TableWrapper;
@@ -12,7 +14,7 @@ export declare class TableAppendixComponent implements OnInit {
12
14
  tableAppendix: any;
13
15
  dropDownApi: any;
14
16
  dropDownData: any;
15
- constructor();
17
+ constructor(i18nService: I18nService);
16
18
  ngOnInit(): void;
17
19
  addRow(): void;
18
20
  updateLabel(rowIndex: number, label: string, value: string): void;
@@ -0,0 +1,24 @@
1
+ declare const enI18n: {
2
+ required: string;
3
+ addMore: string;
4
+ select: string;
5
+ attachment: string;
6
+ chooseFiles: string;
7
+ uploadFile: string;
8
+ thisFieldIsRequired: string;
9
+ pickYourLocation: string;
10
+ calibrated: string;
11
+ enterValue: string;
12
+ ptwDetails: string;
13
+ pleaseMakeChoice: string;
14
+ attach: string;
15
+ add: string;
16
+ zeroOfZero: string;
17
+ selectDate: string;
18
+ toBuyTicket: string;
19
+ pickLocation: string;
20
+ enterLocation: string;
21
+ searchNearestLocation: string;
22
+ currentTheme: string;
23
+ };
24
+ export default enI18n;
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const i18nConfigService: InjectionToken<any>;
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { I18nService } from './i18n.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class I18nComponent implements OnInit {
5
+ i18nService: I18nService;
6
+ constructor(i18nService: I18nService);
7
+ ngOnInit(): void;
8
+ firstClick(event: any): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<I18nComponent, "app-i18n", never, {}, {}, never, never, false>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ export declare class I18nModule {
5
+ static forRoot(config: any): ModuleWithProviders<I18nModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<I18nModule, never, [typeof i1.CommonModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<I18nModule>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { I18nService } from './i18n.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class I18nPipe implements PipeTransform {
5
+ private i18nService;
6
+ constructor(i18nService: I18nService);
7
+ transform(value: any, ...args: any[]): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n", false>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class I18nService {
4
+ langList: any;
5
+ private document;
6
+ dropdownChanged: EventEmitter<string>;
7
+ currentLanguage: string;
8
+ constructor(langList: any, document: Document);
9
+ initLang(): void;
10
+ getString(key: any): any;
11
+ languageChange(lang: any): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
14
+ }
@@ -20,17 +20,20 @@ import * as i18 from "./components/table-appendix/table-appendix.component";
20
20
  import * as i19 from "./components/custom-date/custom-date.component";
21
21
  import * as i20 from "./components/custom-time/custom-time.component";
22
22
  import * as i21 from "./components/custom-button/custom-button.component";
23
- import * as i22 from "@angular/common";
24
- import * as i23 from "@angular/forms";
25
- import * as i24 from "mydatepicker";
26
- import * as i25 from "ng-pick-datetime";
27
- import * as i26 from "@angular/common/http";
28
- import * as i27 from "@ng-select/ng-select";
29
- import * as i28 from "@angular/google-maps";
30
- import * as i29 from "ngx-spinner";
31
- import * as i30 from "ng-circle-progress";
23
+ import * as i22 from "./i18n.component";
24
+ import * as i23 from "./i18n.pipe";
25
+ import * as i24 from "@angular/common";
26
+ import * as i25 from "@angular/forms";
27
+ import * as i26 from "mydatepicker";
28
+ import * as i27 from "ng-pick-datetime";
29
+ import * as i28 from "@angular/common/http";
30
+ import * as i29 from "@ng-select/ng-select";
31
+ import * as i30 from "@angular/google-maps";
32
+ import * as i31 from "ngx-spinner";
33
+ import * as i32 from "./i18n.module";
34
+ import * as i33 from "ng-circle-progress";
32
35
  export declare class NxtAppModule {
33
36
  static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
34
- 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.FileUploadComponent, typeof i14.SummaryPageComponent, typeof i15.FileViewComponent, typeof i16.DependentTableComponent, typeof i17.CustomLabelComponent, typeof i18.TableAppendixComponent, typeof i19.CustomDateComponent, typeof i20.CustomTimeComponent, typeof i21.CustomButtonComponent], [typeof i22.CommonModule, typeof i23.FormsModule, typeof i24.MyDatePickerModule, typeof i25.OwlDateTimeModule, typeof i25.OwlNativeDateTimeModule, typeof i26.HttpClientModule, typeof i27.NgSelectModule, typeof i28.GoogleMapsModule, typeof i23.ReactiveFormsModule, typeof i29.NgxSpinnerModule, typeof i30.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i10.BookletComponent, typeof i14.SummaryPageComponent]>;
37
+ 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.FileUploadComponent, typeof i14.SummaryPageComponent, typeof i15.FileViewComponent, typeof i16.DependentTableComponent, typeof i17.CustomLabelComponent, typeof i18.TableAppendixComponent, typeof i19.CustomDateComponent, typeof i20.CustomTimeComponent, typeof i21.CustomButtonComponent, typeof i22.I18nComponent, typeof i23.I18nPipe], [typeof i24.CommonModule, typeof i25.FormsModule, typeof i26.MyDatePickerModule, typeof i27.OwlDateTimeModule, typeof i27.OwlNativeDateTimeModule, typeof i28.HttpClientModule, typeof i29.NgSelectModule, typeof i30.GoogleMapsModule, typeof i25.ReactiveFormsModule, typeof i31.NgxSpinnerModule, typeof i32.I18nModule, typeof i33.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i10.BookletComponent, typeof i14.SummaryPageComponent, typeof i23.I18nPipe, typeof i22.I18nComponent]>;
35
38
  static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
36
39
  }
@@ -7,6 +7,7 @@ import { ActionMeta } from '../../interfaces/actionMeta';
7
7
  import { BookletWrapper } from "../../model/bookletWrapper";
8
8
  import { StorageService } from '../../services/storage.service';
9
9
  import { ChangeService } from "../../services/change.service";
10
+ import { I18nService } from "../../i18n.service";
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class BookletComponent implements OnInit {
12
13
  private sfService;
@@ -15,6 +16,7 @@ export declare class BookletComponent implements OnInit {
15
16
  private route;
16
17
  private sanitizer;
17
18
  private changeService;
19
+ i18nService: I18nService;
18
20
  bookletId: string;
19
21
  serv: string;
20
22
  tkn: string;
@@ -24,7 +26,6 @@ export declare class BookletComponent implements OnInit {
24
26
  handleBookletActionEvent: EventEmitter<any>;
25
27
  handlePage: EventEmitter<any>;
26
28
  hadleDropDownDependent: EventEmitter<any>;
27
- handleButtonQuestion: EventEmitter<any>;
28
29
  nxtBooklet: BookletWrapper;
29
30
  booklet: any[];
30
31
  abItem: any;
@@ -34,7 +35,8 @@ export declare class BookletComponent implements OnInit {
34
35
  isAnswerFlag: boolean;
35
36
  spinnerName: string;
36
37
  spinnerType: string;
37
- constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, changeService: ChangeService, el: ElementRef);
38
+ langDirection: string;
39
+ constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, changeService: ChangeService, el: ElementRef, i18nService: I18nService);
38
40
  ngOnInit(): void;
39
41
  ngOnChanges(simplechanges: SimpleChanges): void;
40
42
  processBooklet(): void;
@@ -45,7 +47,6 @@ export declare class BookletComponent implements OnInit {
45
47
  readQuestions(qbId: string): any[];
46
48
  getText(value: any): SafeHtml;
47
49
  getDropDown(event: any): void;
48
- getButtonQues(event: any): void;
49
50
  static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; "bookletJSON": "bookletJSON"; "dropdownDependentData": "dropdownDependentData"; "labelValue": "labelValue"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleButtonQuestion": "handleButtonQuestion"; }, never, never, false>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; "bookletJSON": "bookletJSON"; "dropdownDependentData": "dropdownDependentData"; "labelValue": "labelValue"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; }, never, never, false>;
51
52
  }
@@ -4,28 +4,33 @@ import { SalesforceService } from "../../services/salesforce.service";
4
4
  import { DataService } from '../../services/data.service';
5
5
  import { ChangeService } from '../../services/change.service';
6
6
  import { StorageService } from '../../services/storage.service';
7
+ import { I18nService } from '../../i18n.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class QuestionbookComponent implements OnInit {
9
10
  private sfService;
10
11
  private dataService;
11
12
  private changeService;
12
13
  private storageService;
14
+ i18nService: I18nService;
15
+ private document;
13
16
  qbItem: QuestionBook;
14
17
  questionItem: Question;
15
18
  questions: Question[];
16
19
  errorFieldId: any;
17
20
  labelValue: string;
18
21
  handleDropDown: EventEmitter<any>;
19
- handleButton: EventEmitter<any>;
20
22
  dropDownData: any;
21
23
  subQuestions: Question[];
22
24
  selectedFileData: any[];
23
- constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, storageService: StorageService);
25
+ style: any;
26
+ langDirection: string;
27
+ bookStyle: any;
28
+ constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, storageService: StorageService, i18nService: I18nService, document: Document);
24
29
  ngOnInit(): void;
25
30
  clearSQError(quesId: any): void;
26
31
  setSubQuestions(records: any): void;
27
32
  childEventCapture(event: any, ques?: any): void;
28
33
  deleteFile(fileData: any): void;
29
34
  static ɵfac: i0.ɵɵFactoryDeclaration<QuestionbookComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": "qbItem"; "questionItem": "questionItem"; "questions": "questions"; "errorFieldId": "errorFieldId"; "labelValue": "labelValue"; "dropDownData": "dropDownData"; }, { "handleDropDown": "handleDropDown"; "handleButton": "handleButton"; }, never, never, false>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": "qbItem"; "questionItem": "questionItem"; "questions": "questions"; "errorFieldId": "errorFieldId"; "labelValue": "labelValue"; "dropDownData": "dropDownData"; }, { "handleDropDown": "handleDropDown"; }, never, never, false>;
31
36
  }
@@ -9,6 +9,7 @@ import { DeviceDetectorService } from 'ngx-device-detector';
9
9
  import { DataService } from '../../services/data.service';
10
10
  import { ChangeService } from '../../services/change.service';
11
11
  import { Question, QuestionBook, AnswerBook, AnswerWrapper, OptionValue, LocalQuestion } from "../../wrapper";
12
+ import { I18nService } from "../../i18n.service";
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class QuestionnaireComponent implements OnInit {
14
15
  private sfService;
@@ -19,6 +20,7 @@ export declare class QuestionnaireComponent implements OnInit {
19
20
  private spinner;
20
21
  private _formBuilder;
21
22
  private deviceService;
23
+ i18nService: I18nService;
22
24
  qbId: string;
23
25
  insuranceStartDate: string;
24
26
  serv: string;
@@ -121,7 +123,7 @@ export declare class QuestionnaireComponent implements OnInit {
121
123
  addFlag: boolean;
122
124
  myDatePickerOptions: IMyDpOptions;
123
125
  individualBookButton: boolean;
124
- constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, route: ActivatedRoute, sanitizer: DomSanitizer, spinner: NgxSpinnerService, _formBuilder: UntypedFormBuilder, deviceService: DeviceDetectorService, el: ElementRef);
126
+ constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, route: ActivatedRoute, sanitizer: DomSanitizer, spinner: NgxSpinnerService, _formBuilder: UntypedFormBuilder, deviceService: DeviceDetectorService, el: ElementRef, i18nService: I18nService);
125
127
  onDateChanged(event: IMyDateModel): void;
126
128
  ngOnInit(): void;
127
129
  ngOnChanges(): void;
@@ -1,7 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { I18nService } from '../../i18n.service';
2
3
  import { ActionMeta } from '../../interfaces/actionMeta';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SummaryPageComponent implements OnInit {
6
+ i18nService: I18nService;
5
7
  answerJson: any;
6
8
  api: string;
7
9
  booklet: any[];
@@ -10,7 +12,7 @@ export declare class SummaryPageComponent implements OnInit {
10
12
  private sqOptions;
11
13
  questions: any[];
12
14
  filteredQuestion: any[];
13
- constructor();
15
+ constructor(i18nService: I18nService);
14
16
  ngOnInit(): void;
15
17
  processSummary(data: any): void;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SummaryPageComponent, never>;
@@ -0,0 +1,24 @@
1
+ declare const tamI18n: {
2
+ required: string;
3
+ addMore: string;
4
+ select: string;
5
+ attachment: string;
6
+ chooseFiles: string;
7
+ uploadFile: string;
8
+ thisFieldIsRequired: string;
9
+ pickYourLocation: string;
10
+ calibrated: string;
11
+ enterValue: string;
12
+ ptwDetails: string;
13
+ pleaseMakeChoice: string;
14
+ attach: string;
15
+ add: string;
16
+ zeroOfZero: string;
17
+ selectDate: string;
18
+ toBuyTicket: string;
19
+ pickLocation: string;
20
+ enterLocation: string;
21
+ searchNearestLocation: string;
22
+ currentTheme: string;
23
+ };
24
+ export default tamI18n;
package/lib/wrapper.d.ts CHANGED
@@ -23,6 +23,16 @@ export declare class QuestionBook {
23
23
  Possibilities__c: string;
24
24
  Summary_Sub_Text__c: string;
25
25
  isShengel__c?: boolean;
26
+ Style__c: {
27
+ labelClass: any;
28
+ labelStyle: any;
29
+ inputClass: any;
30
+ inputStyle: any;
31
+ showLabel: boolean;
32
+ bookStyle: any;
33
+ direction: any;
34
+ questionStyle: any;
35
+ };
26
36
  }
27
37
  export declare class Question {
28
38
  Id: string;
@@ -65,6 +75,16 @@ export declare class Question {
65
75
  startDate?: any;
66
76
  minDate?: any;
67
77
  isShengel__c?: boolean;
78
+ Style__c: {
79
+ labelClass: any;
80
+ labelStyle: any;
81
+ inputClass: any;
82
+ inputStyle: any;
83
+ showLabel: boolean;
84
+ bookStyle: any;
85
+ direction: any;
86
+ questionStyle: any;
87
+ };
68
88
  }
69
89
  export declare class LocalQuestion {
70
90
  Id: string;
@@ -99,6 +119,16 @@ export declare class LocalQuestion {
99
119
  error?: ErrorWrapper;
100
120
  static X24_Hours__c: boolean;
101
121
  uniqueSubQId: string;
122
+ Style__c: {
123
+ labelClass: any;
124
+ labelStyle: any;
125
+ inputClass: any;
126
+ inputStyle: any;
127
+ showLabel: boolean;
128
+ bookStyle: any;
129
+ direction: any;
130
+ questionStyle: any;
131
+ };
102
132
  }
103
133
  export declare class QuestionR {
104
134
  records?: Question[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.0.47",
3
+ "version": "2.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.3",
6
6
  "@angular/core": "^14.2.3"
package/public-api.d.ts CHANGED
@@ -5,3 +5,5 @@ export * from './lib/pages/questionnaire/questionnaire.component';
5
5
  export * from './lib/pages/booklet/booklet.component';
6
6
  export * from './lib/pages/summary-page/summary-page.component';
7
7
  export * from './lib/services/salesforce.service';
8
+ export * from './lib/i18n.component';
9
+ export * from './lib/i18n.pipe';
Binary file