@rangertechnologies/ngnxt 2.1.245 → 2.1.247

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 (42) hide show
  1. package/esm2022/environments/version.mjs +2 -2
  2. package/esm2022/lib/components/button/nxt-button.component.mjs +1 -2
  3. package/esm2022/lib/components/custom-calendar/custom-calendar.component.mjs +3 -7
  4. package/esm2022/lib/components/custom-dropdown/custom-dropdown.component.mjs +11 -28
  5. package/esm2022/lib/components/custom-radio/custom-radio.component.mjs +11 -15
  6. package/esm2022/lib/components/datatable/datatable.component.mjs +29 -18
  7. package/esm2022/lib/components/file-upload/file-upload.component.mjs +16 -4
  8. package/esm2022/lib/components/list-view-filter/list-view-filter.component.mjs +9 -18
  9. package/esm2022/lib/components/nxt-input/nxt-input.component.mjs +22 -17
  10. package/esm2022/lib/components/pick-location/pick-location.component.mjs +11 -15
  11. package/esm2022/lib/components/search-box/search-box.component.mjs +103 -51
  12. package/esm2022/lib/interfaces/apimeta.mjs +1 -1
  13. package/esm2022/lib/interfaces/dependencyMeta.mjs +1 -1
  14. package/esm2022/lib/model/changeWrapper.mjs +1 -2
  15. package/esm2022/lib/pages/booklet/booklet.component.mjs +2 -2
  16. package/esm2022/lib/pages/builder/properties/common-fields.constants.mjs +2 -1
  17. package/esm2022/lib/pages/builder/properties/properties.component.mjs +46 -34
  18. package/esm2022/lib/pages/pdfDesigner/pdf-properties/pdf-properties.component.mjs +11 -8
  19. package/esm2022/lib/pages/questionbook/questionbook.component.mjs +27 -43
  20. package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +10 -28
  21. package/esm2022/lib/pipe/get-value.pipe.mjs +22 -17
  22. package/esm2022/lib/services/form-builder.service.mjs +17 -1
  23. package/esm2022/lib/services/storage.service.mjs +17 -1
  24. package/fesm2022/rangertechnologies-ngnxt.mjs +387 -328
  25. package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
  26. package/lib/components/custom-calendar/custom-calendar.component.d.ts +0 -1
  27. package/lib/components/custom-dropdown/custom-dropdown.component.d.ts +0 -1
  28. package/lib/components/list-view-filter/list-view-filter.component.d.ts +2 -5
  29. package/lib/components/nxt-input/nxt-input.component.d.ts +0 -1
  30. package/lib/components/pick-location/pick-location.component.d.ts +0 -1
  31. package/lib/components/search-box/search-box.component.d.ts +7 -2
  32. package/lib/interfaces/apimeta.d.ts +1 -1
  33. package/lib/interfaces/dependencyMeta.d.ts +1 -1
  34. package/lib/model/changeWrapper.d.ts +0 -1
  35. package/lib/pages/builder/properties/properties.component.d.ts +0 -4
  36. package/lib/pages/pdfDesigner/pdf-properties/pdf-properties.component.d.ts +3 -2
  37. package/lib/pages/questionbook/questionbook.component.d.ts +0 -1
  38. package/lib/pages/questionnaire/questionnaire.component.d.ts +0 -1
  39. package/lib/services/storage.service.d.ts +5 -0
  40. package/package.json +1 -1
  41. package/rangertechnologies-ngnxt-2.1.247.tgz +0 -0
  42. package/rangertechnologies-ngnxt-2.1.245.tgz +0 -0
@@ -58,7 +58,6 @@ export declare class CustomCalendarComponent implements OnInit {
58
58
  onSave(): void;
59
59
  generateId(): string;
60
60
  getEntryKeys(entryGroup: any): string[];
61
- removeCharacters(questionText: string): string;
62
61
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomCalendarComponent, never>;
63
62
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomCalendarComponent, "app-custom-calendar", never, { "allEvents": { "alias": "allEvents"; "required": false; }; "question": { "alias": "question"; "required": false; }; "nxtId": { "alias": "nxtId"; "required": false; }; }, { "eventSelected": "eventSelected"; "dateSelected": "dateSelected"; "openModal": "openModal"; "closeModal": "closeModal"; }, never, never, true, never>;
64
63
  }
@@ -40,7 +40,6 @@ export declare class CustomDropdownComponent implements OnInit {
40
40
  toggle(): void;
41
41
  onDocumentClick(event: MouseEvent): void;
42
42
  clearSelection(): void;
43
- removeCharacters(questionText: string): string;
44
43
  inputValue(event: any, ques: any): void;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDropdownComponent, never>;
46
45
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomDropdownComponent, "app-custom-dropdown", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "progressBar": { "alias": "progressBar"; "required": false; }; "id": { "alias": "id"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "error": { "alias": "error"; "required": false; }; "fromShengel": { "alias": "fromShengel"; "required": false; }; "question": { "alias": "question"; "required": false; }; "referenceField": { "alias": "referenceField"; "required": false; }; "token": { "alias": "token"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "from": { "alias": "from"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
@@ -9,7 +9,6 @@ interface ListView {
9
9
  isDefault: boolean;
10
10
  conditions: ListViewFilter[];
11
11
  columns: ListViewColumn[];
12
- showActions?: boolean;
13
12
  }
14
13
  interface ListViewFilter {
15
14
  field: string;
@@ -51,11 +50,11 @@ export declare class ListViewFilterComponent implements OnInit {
51
50
  label: string;
52
51
  value: string;
53
52
  }[];
53
+ conditions: FormArray;
54
+ columns: FormArray;
54
55
  constructor(fb: FormBuilder, nxtCustomTranslate: NxtCustomTranslatePipe);
55
56
  ngOnInit(): void;
56
57
  ngOnChanges(changes: SimpleChanges): void;
57
- get conditions(): FormArray;
58
- get columns(): FormArray;
59
58
  addFilter(): void;
60
59
  removeFilter(index: number): void;
61
60
  addColumn(): void;
@@ -66,8 +65,6 @@ export declare class ListViewFilterComponent implements OnInit {
66
65
  startAdd(): void;
67
66
  save(): void;
68
67
  closeModal(): void;
69
- showActions(view: ListView): void;
70
- hideActions(): void;
71
68
  confirmDelete(view: ListView, event?: Event): void;
72
69
  closeDeleteModal(): void;
73
70
  deleteConfirmed(): void;
@@ -77,7 +77,6 @@ export declare class NxtInput implements AfterViewInit {
77
77
  timePicker: any;
78
78
  dtPicker: OwlDateTimeComponent<Date>;
79
79
  dPicker: OwlDateTimeComponent<Date>;
80
- tPicker: OwlDateTimeComponent<Date>;
81
80
  inputRef: ElementRef;
82
81
  inputs: FormArray<any>;
83
82
  control: FormControl;
@@ -41,7 +41,6 @@ export declare class PickLocationComponent implements OnInit, OnChanges {
41
41
  getAddress(latitude: number, longitude: number): void;
42
42
  openMap(): void;
43
43
  closeModal(): void;
44
- removeCharacters(questionText: string): string;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<PickLocationComponent, never>;
46
45
  static ɵcmp: i0.ɵɵComponentDeclaration<PickLocationComponent, "app-pick-location", never, { "address": { "alias": "address"; "required": false; }; "from": { "alias": "from"; "required": false; }; "question": { "alias": "question"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; }, { "locationSelected": "locationSelected"; }, never, never, true, never>;
47
46
  }
@@ -2,8 +2,13 @@ import { OnInit, OnDestroy, OnChanges, EventEmitter, ElementRef, SimpleChanges,
2
2
  import { DataService } from '../../services/data.service';
3
3
  import { I18nService } from "../../i18n.service";
4
4
  import { CountryService } from "../../services/country.service";
5
+ import { Subscription } from "rxjs";
6
+ import { ChangeService } from "../../services/change.service";
7
+ import { StorageService } from "../../services/storage.service";
5
8
  import * as i0 from "@angular/core";
6
9
  export declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
10
+ private storageService;
11
+ private changeService;
7
12
  private dataService;
8
13
  i18nService: I18nService;
9
14
  private countryService;
@@ -33,8 +38,9 @@ export declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
33
38
  filterName: string;
34
39
  private destroy$;
35
40
  private searchSubject;
41
+ subscription: Subscription;
36
42
  trackByFn: TrackByFunction<any>;
37
- constructor(dataService: DataService, i18nService: I18nService, countryService: CountryService, elementRef: ElementRef);
43
+ constructor(storageService: StorageService, changeService: ChangeService, dataService: DataService, i18nService: I18nService, countryService: CountryService, elementRef: ElementRef);
38
44
  ngOnInit(): void;
39
45
  ngOnChanges(changes: SimpleChanges): void;
40
46
  ngOnDestroy(): void;
@@ -56,7 +62,6 @@ export declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
56
62
  getValues(element: any, columns: any): any;
57
63
  getKeys(obj: any): string[];
58
64
  clickItem(event: any): void;
59
- removeCharacters(questionText: string): string;
60
65
  inputValue(event: any, ques: any): void;
61
66
  highlightText(text: string, searchTerm: string): string;
62
67
  private sanitizeHtml;
@@ -1,6 +1,6 @@
1
1
  export interface APIMeta {
2
2
  defaultField: any;
3
- sourceQuestionId: string;
3
+ sourceQuestionId: any;
4
4
  valueField: string;
5
5
  labelField: string;
6
6
  endpoint: string;
@@ -1,5 +1,5 @@
1
1
  export interface DependencyMeta {
2
- sourceQuestionId: string;
2
+ sourceQuestionId: any;
3
3
  labelField: string;
4
4
  valueField: string;
5
5
  disabled: string;
@@ -4,7 +4,6 @@ export declare class ChangeWrapper {
4
4
  toQuestionId: string;
5
5
  toQuestionName: string;
6
6
  valueObj: any;
7
- selectedObj: string;
8
7
  referenceField: string;
9
8
  field: string;
10
9
  }
@@ -414,10 +414,6 @@ export declare class PropertiesComponent implements OnInit {
414
414
  private draggedId;
415
415
  updateBookSubtext(key: 'endpoint' | 'variable' | 'defaultField', value: string): void;
416
416
  trackByProp(index: number, item: any): any;
417
- get currentElement(): any;
418
- get currentElementType(): any;
419
- get isTableElement(): boolean;
420
- get selectedColumnId(): any;
421
417
  getOptimizedSubPropValue(subProp: any): string;
422
418
  static ɵfac: i0.ɵɵFactoryDeclaration<PropertiesComponent, never>;
423
419
  static ɵcmp: i0.ɵɵComponentDeclaration<PropertiesComponent, "app-properties", never, { "templateSelected": { "alias": "templateSelected"; "required": false; }; "selectedElementType": { "alias": "selectedElementType"; "required": false; }; }, { "formButtonHandler": "formButtonHandler"; "templateSaveHandler": "templateSaveHandler"; }, never, never, true, never>;
@@ -42,6 +42,8 @@ export declare class PdfPropertiesComponent {
42
42
  defaultField: string;
43
43
  };
44
44
  isLinkDropdownOpen: boolean;
45
+ fieldAsString: string;
46
+ filteredColumns: any[];
45
47
  templateSelected: boolean;
46
48
  dropdown: ElementRef;
47
49
  draggedId: string | null;
@@ -714,9 +716,8 @@ export declare class PdfPropertiesComponent {
714
716
  handleTemplateSelection(event: any): void;
715
717
  ngOnInit(): void;
716
718
  updateTitle(event: any): void;
717
- get fieldAsString(): string;
719
+ updatePdfpData(): void;
718
720
  updateField(value: string): void;
719
- get filteredColumns(): any[];
720
721
  onCheckboxChange(targetArrayPath: any, targetArrayKey: any, key: any, apiName: string, isChecked: boolean): void;
721
722
  updateProperty(key: string, value: any): void;
722
723
  onRadioChange(targetArrayPath: any, targetArrayKey: any, key: any, value: any): void;
@@ -77,7 +77,6 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
77
77
  getDropDown(event: any): void;
78
78
  getCurrentCalendar(event: any): void;
79
79
  getCalendarEvent(event: any): void;
80
- removeCharacters(questionText: string): string;
81
80
  isCalendarModalOpen: boolean;
82
81
  calendarModalTitle: any;
83
82
  calendarModalSize: any;
@@ -211,7 +211,6 @@ export declare class QuestionnaireComponent implements OnInit {
211
211
  displayDate(dateSelected: any, ques: any): void;
212
212
  getKey(item: any): any;
213
213
  getValue(item: any): any;
214
- removeCharacters(questionText: string): string;
215
214
  static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireComponent, never>;
216
215
  static ɵcmp: i0.ɵɵComponentDeclaration<QuestionnaireComponent, "lib-questionnaire", never, { "qbId": { "alias": "qbId"; "required": false; }; "insuranceStartDate": { "alias": "insuranceStartDate"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "api": { "alias": "api"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; }, { "handleEvent": "handleEvent"; "handlePage": "handlePage"; "handleQuestion": "handleQuestion"; "handleBook": "handleBook"; "handleSubmit": "handleSubmit"; }, never, never, true, never>;
217
216
  }
@@ -4,10 +4,15 @@ import * as i0 from "@angular/core";
4
4
  export declare class StorageService {
5
5
  nxtBookletAnswer: BookletWrapper;
6
6
  selectedData: any;
7
+ private queryValueMap;
7
8
  constructor();
8
9
  save(qbJson: BookletWrapper): void;
9
10
  update(questionWithInput: Question): void;
10
11
  get(): BookletWrapper;
12
+ queryValueStore(questionId: string, key: string, value: any): void;
13
+ getQueryValue(questionId: string): any;
14
+ clearQueryValue(questionId: string): void;
15
+ clearAllQueryValues(): void;
11
16
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
12
17
  static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
13
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.1.245",
3
+ "version": "2.1.247",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13"