@rangertechnologies/ngnxt 2.0.41 → 2.0.43

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 (39) hide show
  1. package/esm2022/lib/components/custom-date/custom-date.component.mjs +27 -0
  2. package/esm2022/lib/components/custom-date-picker/custom-date-picker.component.mjs +2 -2
  3. package/esm2022/lib/components/custom-dropdown/custom-dropdown.component.mjs +6 -3
  4. package/esm2022/lib/components/custom-input/custom-input.component.mjs +9 -3
  5. package/esm2022/lib/components/custom-label/custom-label.component.mjs +18 -0
  6. package/esm2022/lib/components/custom-table/custom-table.component.mjs +8 -4
  7. package/esm2022/lib/components/custom-time/custom-time.component.mjs +27 -0
  8. package/esm2022/lib/components/dependent-table/dependent-table.component.mjs +42 -0
  9. package/esm2022/lib/components/file-upload/file-upload.component.mjs +6 -3
  10. package/esm2022/lib/components/search-box/search-box.component.mjs +4 -4
  11. package/esm2022/lib/components/table-appendix/table-appendix.component.mjs +117 -0
  12. package/esm2022/lib/interfaces/dependencyMeta.mjs +1 -1
  13. package/esm2022/lib/model/tableWrapper.mjs +5 -1
  14. package/esm2022/lib/nxt-app.module.mjs +18 -3
  15. package/esm2022/lib/pages/booklet/booklet.component.mjs +20 -8
  16. package/esm2022/lib/pages/questionbook/questionbook.component.mjs +26 -5
  17. package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +1 -1
  18. package/esm2022/lib/services/change.service.mjs +7 -1
  19. package/esm2022/lib/services/storage.service.mjs +2 -1
  20. package/fesm2022/rangertechnologies-ngnxt.mjs +307 -35
  21. package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
  22. package/lib/components/custom-date/custom-date.component.d.ts +12 -0
  23. package/lib/components/custom-dropdown/custom-dropdown.component.d.ts +2 -1
  24. package/lib/components/custom-label/custom-label.component.d.ts +9 -0
  25. package/lib/components/custom-table/custom-table.component.d.ts +2 -1
  26. package/lib/components/custom-time/custom-time.component.d.ts +12 -0
  27. package/lib/components/dependent-table/dependent-table.component.d.ts +15 -0
  28. package/lib/components/file-upload/file-upload.component.d.ts +2 -1
  29. package/lib/components/table-appendix/table-appendix.component.d.ts +28 -0
  30. package/lib/interfaces/dependencyMeta.d.ts +1 -0
  31. package/lib/model/tableWrapper.d.ts +3 -0
  32. package/lib/nxt-app.module.d.ts +15 -10
  33. package/lib/pages/booklet/booklet.component.d.ts +5 -1
  34. package/lib/pages/questionbook/questionbook.component.d.ts +5 -2
  35. package/lib/services/change.service.d.ts +3 -0
  36. package/lib/services/storage.service.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/rangertechnologies-ngnxt-2.0.43.tgz +0 -0
  39. package/rangertechnologies-ngnxt-2.0.41.tgz +0 -0
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomDateComponent implements OnInit {
4
+ date: string;
5
+ dateChange: EventEmitter<any>;
6
+ dateSelected: any;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ onDateChange(event: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomDateComponent, "app-custom-date", never, { "date": "date"; }, { "dateChange": "dateChange"; }, never, never, false>;
12
+ }
@@ -16,6 +16,7 @@ export declare class CustomDropdownComponent implements OnInit {
16
16
  errorMessage: string;
17
17
  error: any;
18
18
  fromShengel: boolean;
19
+ referenceField: string;
19
20
  valueChange: EventEmitter<ChangeWrapper>;
20
21
  invalidFieldIds: string[];
21
22
  constructor(http: HttpClient, changeService: ChangeService);
@@ -25,5 +26,5 @@ export declare class CustomDropdownComponent implements OnInit {
25
26
  apiResponse(endpoint: string): Observable<any>;
26
27
  selectChange(event: any): void;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDropdownComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomDropdownComponent, "app-custom-dropdown", never, { "options": "options"; "placeholder": "placeholder"; "apiMeta": "apiMeta"; "selectedValue": "selectedValue"; "progressBar": "progressBar"; "id": "id"; "errorMessage": "errorMessage"; "error": "error"; "fromShengel": "fromShengel"; }, { "valueChange": "valueChange"; }, never, never, false>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomDropdownComponent, "app-custom-dropdown", never, { "options": "options"; "placeholder": "placeholder"; "apiMeta": "apiMeta"; "selectedValue": "selectedValue"; "progressBar": "progressBar"; "id": "id"; "errorMessage": "errorMessage"; "error": "error"; "fromShengel": "fromShengel"; "referenceField": "referenceField"; }, { "valueChange": "valueChange"; }, never, never, false>;
29
30
  }
@@ -0,0 +1,9 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomLabelComponent implements OnInit {
4
+ labelValue: string;
5
+ constructor();
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomLabelComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomLabelComponent, "app-custom-label", never, { "labelValue": "labelValue"; }, {}, never, never, false>;
9
+ }
@@ -4,7 +4,7 @@ import { Question } from '../../wrapper';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CustomTableComponent implements OnInit {
6
6
  question: Question;
7
- valueChange: EventEmitter<any[]>;
7
+ valueChange: EventEmitter<any>;
8
8
  tableInfo: TableWrapper;
9
9
  tableHeader: any;
10
10
  tableData: any;
@@ -14,6 +14,7 @@ export declare class CustomTableComponent implements OnInit {
14
14
  addRow(): void;
15
15
  updateRadio(item: any, value: string): void;
16
16
  updateLabel(rowIndex: number, label: string, value: string): void;
17
+ updateNumber(item: any, label: string, value: string): void;
17
18
  emitTableDataValue(updatedTableData: any[]): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomTableComponent, never>;
19
20
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "question": "question"; }, { "valueChange": "valueChange"; }, never, never, false>;
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomTimeComponent implements OnInit {
4
+ time: string;
5
+ timeChange: EventEmitter<any>;
6
+ timeSelected: any;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ onTimeChange(event: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomTimeComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomTimeComponent, "app-custom-time", never, { "time": "time"; }, { "timeChange": "timeChange"; }, never, never, false>;
12
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ChangeService } from '../../services/change.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DependentTableComponent implements OnInit {
5
+ private changeService;
6
+ alertMessage: any;
7
+ ValueLength: boolean;
8
+ Value: any;
9
+ errorObj: any;
10
+ constructor(changeService: ChangeService);
11
+ ngOnInit(): void;
12
+ dependentData(data: any): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DependentTableComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DependentTableComponent, "app-dependent-table", never, { "alertMessage": "alertMessage"; }, {}, never, never, false>;
15
+ }
@@ -9,6 +9,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges {
9
9
  limitFileUploading: any;
10
10
  isDeleteFileButtonVisible: any;
11
11
  isShowNoFileIcon: any;
12
+ tableFile: any;
12
13
  selectedFileNameArray: string[];
13
14
  copyOfInputAllFiles: any;
14
15
  copyOfFileUploadingLimit: any;
@@ -20,5 +21,5 @@ export declare class FileUploadComponent implements OnInit, OnChanges {
20
21
  deleteFile(currentFileIndex: any): void;
21
22
  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";
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "allFiles": "allFiles"; "limitFileUploading": "limitFileUploading"; "isDeleteFileButtonVisible": "isDeleteFileButtonVisible"; "isShowNoFileIcon": "isShowNoFileIcon"; }, { "selectedFileData": "selectedFileData"; "deletedFileData": "deletedFileData"; }, never, never, false>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "allFiles": "allFiles"; "limitFileUploading": "limitFileUploading"; "isDeleteFileButtonVisible": "isDeleteFileButtonVisible"; "isShowNoFileIcon": "isShowNoFileIcon"; "tableFile": "tableFile"; }, { "selectedFileData": "selectedFileData"; "deletedFileData": "deletedFileData"; }, never, never, false>;
24
25
  }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { TableWrapper } from '../../model/tableWrapper';
3
+ import { Question } from '../../wrapper';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TableAppendixComponent implements OnInit {
6
+ question: Question;
7
+ valueChange: EventEmitter<any>;
8
+ tableInfo: TableWrapper;
9
+ tableHeader: any;
10
+ tableData: any;
11
+ addRowColSpan: number;
12
+ tableAppendix: any;
13
+ dropDownApi: any;
14
+ dropDownData: any;
15
+ constructor();
16
+ ngOnInit(): void;
17
+ addRow(): void;
18
+ updateLabel(rowIndex: number, label: string, value: string): void;
19
+ updateNumber(item: any, label: string, value: string): void;
20
+ updateToggle(item: any, header: string, value: any): void;
21
+ updateDropDown(item: any, label: string, value: any): void;
22
+ updateCheckText(item: any, label: string, value: any): void;
23
+ updateTableAppendix(item: any, label: string, value: any): void;
24
+ emitTableDataValue(updatedTableData: any[], tableAppendix: any): void;
25
+ getPreviousTestKey(item: any, currentTest: string): string;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableAppendixComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableAppendixComponent, "app-table-appendix", never, { "question": "question"; }, { "valueChange": "valueChange"; }, never, never, false>;
28
+ }
@@ -2,4 +2,5 @@ export interface DependencyMeta {
2
2
  sourceQuestionId: string;
3
3
  labelField: string;
4
4
  valueField: string;
5
+ disabled: string;
5
6
  }
@@ -8,8 +8,11 @@ export declare class TableHeader {
8
8
  export declare class TableWrapper {
9
9
  header: TableHeader[];
10
10
  data: any[];
11
+ tableAppendix: any[];
11
12
  keyValueField: string;
12
13
  rowFunction: any;
13
14
  addRow: boolean;
14
15
  newRowDefault: any;
16
+ tableType: string;
17
+ tableHeader: string;
15
18
  }
@@ -14,17 +14,22 @@ import * as i12 from "./pages/questionbook/questionbook.component";
14
14
  import * as i13 from "./components/file-upload/file-upload.component";
15
15
  import * as i14 from "./pages/summary-page/summary-page.component";
16
16
  import * as i15 from "./components/file-view/file-view.component";
17
- import * as i16 from "@angular/common";
18
- import * as i17 from "@angular/forms";
19
- import * as i18 from "mydatepicker";
20
- import * as i19 from "ng-pick-datetime";
21
- import * as i20 from "@angular/common/http";
22
- import * as i21 from "@ng-select/ng-select";
23
- import * as i22 from "@angular/google-maps";
24
- import * as i23 from "ngx-spinner";
25
- import * as i24 from "ng-circle-progress";
17
+ import * as i16 from "./components/dependent-table/dependent-table.component";
18
+ import * as i17 from "./components/custom-label/custom-label.component";
19
+ import * as i18 from "./components/table-appendix/table-appendix.component";
20
+ import * as i19 from "./components/custom-date/custom-date.component";
21
+ import * as i20 from "./components/custom-time/custom-time.component";
22
+ import * as i21 from "@angular/common";
23
+ import * as i22 from "@angular/forms";
24
+ import * as i23 from "mydatepicker";
25
+ import * as i24 from "ng-pick-datetime";
26
+ import * as i25 from "@angular/common/http";
27
+ import * as i26 from "@ng-select/ng-select";
28
+ import * as i27 from "@angular/google-maps";
29
+ import * as i28 from "ngx-spinner";
30
+ import * as i29 from "ng-circle-progress";
26
31
  export declare class NxtAppModule {
27
32
  static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
28
- 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.CommonModule, typeof i17.FormsModule, typeof i18.MyDatePickerModule, typeof i19.OwlDateTimeModule, typeof i19.OwlNativeDateTimeModule, typeof i20.HttpClientModule, typeof i21.NgSelectModule, typeof i22.GoogleMapsModule, typeof i17.ReactiveFormsModule, typeof i23.NgxSpinnerModule, typeof i24.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i10.BookletComponent, typeof i14.SummaryPageComponent]>;
33
+ 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.CommonModule, typeof i22.FormsModule, typeof i23.MyDatePickerModule, typeof i24.OwlDateTimeModule, typeof i24.OwlNativeDateTimeModule, typeof i25.HttpClientModule, typeof i26.NgSelectModule, typeof i27.GoogleMapsModule, typeof i22.ReactiveFormsModule, typeof i28.NgxSpinnerModule, typeof i29.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i10.BookletComponent, typeof i14.SummaryPageComponent]>;
29
34
  static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
30
35
  }
@@ -19,8 +19,11 @@ export declare class BookletComponent implements OnInit {
19
19
  serv: string;
20
20
  tkn: string;
21
21
  bookletJSON: any;
22
+ dropdownDependentData: any;
23
+ labelValue: string;
22
24
  handleBookletActionEvent: EventEmitter<any>;
23
25
  handlePage: EventEmitter<any>;
26
+ hadleDropDownDependent: EventEmitter<any>;
24
27
  nxtBooklet: BookletWrapper;
25
28
  booklet: any[];
26
29
  abItem: any;
@@ -40,6 +43,7 @@ export declare class BookletComponent implements OnInit {
40
43
  handleBookletActionClick(action: ActionMeta): void;
41
44
  readQuestions(qbId: string): any[];
42
45
  getText(value: any): SafeHtml;
46
+ getDropDown(event: any): void;
43
47
  static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": "bookletId"; "serv": "serv"; "tkn": "tkn"; "bookletJSON": "bookletJSON"; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; }, never, never, false>;
48
+ 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>;
45
49
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { Question, QuestionBook } from '../../wrapper';
3
3
  import { SalesforceService } from "../../services/salesforce.service";
4
4
  import { DataService } from '../../services/data.service';
@@ -14,6 +14,9 @@ export declare class QuestionbookComponent implements OnInit {
14
14
  questionItem: Question;
15
15
  questions: Question[];
16
16
  errorFieldId: any;
17
+ labelValue: string;
18
+ handleDropDown: EventEmitter<any>;
19
+ dropDownData: any;
17
20
  subQuestions: Question[];
18
21
  selectedFileData: any[];
19
22
  constructor(sfService: SalesforceService, dataService: DataService, changeService: ChangeService, storageService: StorageService);
@@ -23,5 +26,5 @@ export declare class QuestionbookComponent implements OnInit {
23
26
  childEventCapture(event: any, ques?: any): void;
24
27
  deleteFile(fileData: any): void;
25
28
  static ɵfac: i0.ɵɵFactoryDeclaration<QuestionbookComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": "qbItem"; "questionItem": "questionItem"; "questions": "questions"; "errorFieldId": "errorFieldId"; }, {}, never, never, false>;
29
+ 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>;
27
30
  }
@@ -5,12 +5,15 @@ export declare class ChangeService {
5
5
  private changeAnnouncedSource;
6
6
  private changeConfirmedSource;
7
7
  private validationSource;
8
+ private fieldSource;
8
9
  changeAnnounced$: import("rxjs").Observable<ChangeWrapper>;
9
10
  changeConfirmed$: import("rxjs").Observable<string>;
10
11
  submitValidate$: import("rxjs").Observable<string>;
12
+ changeField$: import("rxjs").Observable<any>;
11
13
  announceChange(changeValue: ChangeWrapper): void;
12
14
  confirmChange(childQuestion: string): void;
13
15
  submitChange(value: string): void;
16
+ fieldChange(value: any): void;
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ChangeService, never>;
15
18
  static ɵprov: i0.ɵɵInjectableDeclaration<ChangeService>;
16
19
  }
@@ -3,6 +3,7 @@ import { BookletWrapper } from '../model/bookletWrapper';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class StorageService {
5
5
  nxtBookletAnswer: BookletWrapper;
6
+ selectedData: any;
6
7
  constructor();
7
8
  save(qbJson: BookletWrapper): void;
8
9
  update(questionWithInput: Question): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.3",
6
6
  "@angular/core": "^14.2.3"
Binary file