@rangertechnologies/ngnxt 2.1.257 → 2.1.259

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.
@@ -2,10 +2,14 @@ import { OnInit, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { ChangeService } from '../../services/change/change.service';
4
4
  import { DataService } from '../../services/data/data.service';
5
+ import { TranslationService } from '../../services/translation/translation.service';
6
+ import { StorageService } from '../../services/storage/storage.service';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class CustomDropdownComponent implements OnInit {
9
+ private translationService;
7
10
  private changeService;
8
11
  private dataService;
12
+ private storageService;
9
13
  options: any[];
10
14
  placeholder: string;
11
15
  apiMeta: string;
@@ -24,13 +28,14 @@ export declare class CustomDropdownComponent implements OnInit {
24
28
  valueChange: EventEmitter<any>;
25
29
  dropdownWrapper: ElementRef;
26
30
  invalidFieldIds: string[];
27
- constructor(changeService: ChangeService, dataService: DataService);
31
+ constructor(translationService: TranslationService, changeService: ChangeService, dataService: DataService, storageService: StorageService);
28
32
  labelField: string;
29
33
  valueField: string;
30
34
  subscription: Subscription;
31
35
  uniqueKey: string;
32
36
  apiObj: any;
33
37
  showOptions: boolean;
38
+ selectedOption: any;
34
39
  ngOnInit(): void;
35
40
  ngOnChanges(changes: SimpleChanges): void;
36
41
  getOptions(): void;
@@ -3,10 +3,12 @@ import { ChangeWrapper } from '../../model/changeWrapper';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { ChangeService } from '../../services/change/change.service';
5
5
  import { DataService } from '../../services/data/data.service';
6
+ import { StorageService } from '../../services/storage/storage.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class CustomRadioComponent implements OnInit {
8
9
  private changeService;
9
10
  private dataService;
11
+ private storageService;
10
12
  options: any[];
11
13
  question: any;
12
14
  apiMeta: string;
@@ -29,7 +31,8 @@ export declare class CustomRadioComponent implements OnInit {
29
31
  isSaveHovered: boolean;
30
32
  isDiscardHovered: boolean;
31
33
  value: ChangeWrapper;
32
- constructor(changeService: ChangeService, dataService: DataService);
34
+ selectedOptionId: any;
35
+ constructor(changeService: ChangeService, dataService: DataService, storageService: StorageService);
33
36
  viewEdit: boolean;
34
37
  ngOnInit(): void;
35
38
  ngOnChanges(changes: SimpleChanges): void;
@@ -4,8 +4,10 @@ import { Subscription } from 'rxjs';
4
4
  import { TranslationService } from '../../services/translation/translation.service';
5
5
  import { DataService } from '../../services/data/data.service';
6
6
  import { ChangeService } from '../../services/change/change.service';
7
+ import { StorageService } from '../../services/storage/storage.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class NxtDatatable {
10
+ private storageService;
9
11
  private cdRef;
10
12
  private translationService;
11
13
  private renderer;
@@ -138,7 +140,7 @@ export declare class NxtDatatable {
138
140
  private startX;
139
141
  private startWidth;
140
142
  private resizeFrameId;
141
- constructor(cdRef: ChangeDetectorRef, translationService: TranslationService, renderer: Renderer2, dataService: DataService, changeService: ChangeService);
143
+ constructor(storageService: StorageService, cdRef: ChangeDetectorRef, translationService: TranslationService, renderer: Renderer2, dataService: DataService, changeService: ChangeService);
142
144
  ngOnChanges(changes: SimpleChanges): void;
143
145
  ngOnInit(): void;
144
146
  ngAfterViewInit(): void;
@@ -0,0 +1,37 @@
1
+ import { EventEmitter, AfterViewInit, ElementRef } from '@angular/core';
2
+ import { NgbCalendar, NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IslamicI18n extends NgbDatepickerI18n {
5
+ toArabicNumber(value: string | number): string;
6
+ getMonthShortName(month: number): string;
7
+ getMonthFullName(month: number): string;
8
+ getWeekdayLabel(weekday: number): string;
9
+ getDayAriaLabel(date: NgbDateStruct): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<IslamicI18n, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<IslamicI18n>;
12
+ }
13
+ export declare class HijriDatepickerComponent implements AfterViewInit {
14
+ calendar: NgbCalendar;
15
+ model: NgbDateStruct;
16
+ type: 'date' | 'month' | 'datetime' | 'time';
17
+ value: any;
18
+ dateChange: EventEmitter<any>;
19
+ datepickerRef?: ElementRef;
20
+ months: string[];
21
+ years: number[];
22
+ hour: number;
23
+ minute: number;
24
+ hours: number[];
25
+ minutes: number[];
26
+ ngAfterViewInit(): void;
27
+ generateYears(): void;
28
+ onDateChange(date: NgbDateStruct): void;
29
+ onMonthChange(): void;
30
+ onTimeChange(): void;
31
+ emitDateTime(): void;
32
+ toArabicNumber(value: string | number): string;
33
+ applyArabicNumerals(): void;
34
+ toArabicTime(value: string): string;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<HijriDatepickerComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<HijriDatepickerComponent, "app-hijri-datepicker", never, { "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
37
+ }
@@ -1,13 +1,18 @@
1
- import { EventEmitter, QueryList, ElementRef, SimpleChanges, AfterViewInit, Renderer2 } from '@angular/core';
1
+ import { EventEmitter, QueryList, ElementRef, SimpleChanges, AfterViewInit, Renderer2, ChangeDetectorRef } from '@angular/core';
2
2
  import { AbstractControl, FormArray, FormControl, ValidationErrors, ValidatorFn } from '@angular/forms';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { OwlDateTimeComponent } from '@danielmoncada/angular-datetime-picker';
5
5
  import { QuillModules } from 'ngx-quill';
6
6
  import { ChangeService } from '../../services/change/change.service';
7
7
  import { DataService } from '../../services/data/data.service';
8
+ import { TranslationService } from '../../services/translation/translation.service';
9
+ import { StorageService } from '../../services/storage/storage.service';
8
10
  import * as i0 from "@angular/core";
9
11
  export declare class NxtInput implements AfterViewInit {
10
12
  #private;
13
+ private cdr;
14
+ private storageService;
15
+ private translationService;
11
16
  private renderer;
12
17
  private elRef;
13
18
  private elementRef;
@@ -61,7 +66,10 @@ export declare class NxtInput implements AfterViewInit {
61
66
  rows: number;
62
67
  from: any;
63
68
  hyperLink: any;
69
+ selectedOption: any;
70
+ apiMeta: any;
64
71
  rawInputVal: any;
72
+ languageCode: any;
65
73
  set size(size: number);
66
74
  valueChange: EventEmitter<string>;
67
75
  inputValue: EventEmitter<any>;
@@ -121,7 +129,9 @@ export declare class NxtInput implements AfterViewInit {
121
129
  isDiscardHovered: boolean;
122
130
  private lastClickTime;
123
131
  cachedInputList: any[];
124
- constructor(renderer: Renderer2, elRef: ElementRef, elementRef: ElementRef, changeService: ChangeService, dataService: DataService);
132
+ showHijriPicker: boolean;
133
+ displayedHijriDate: any;
134
+ constructor(cdr: ChangeDetectorRef, storageService: StorageService, translationService: TranslationService, renderer: Renderer2, elRef: ElementRef, elementRef: ElementRef, changeService: ChangeService, dataService: DataService);
125
135
  hasEmittedRef: boolean;
126
136
  ngAfterViewInit(): void;
127
137
  ngOnChanges(changes: SimpleChanges): void;
@@ -131,6 +141,7 @@ export declare class NxtInput implements AfterViewInit {
131
141
  getQuillModules(questionId: string): QuillModules;
132
142
  private setupValidators;
133
143
  closeDropdown(event: Event): void;
144
+ onClickOutside(event: Event): void;
134
145
  onChange: (value: string) => void;
135
146
  onTouched: () => void;
136
147
  registerOnTouched(fn: any): void;
@@ -138,7 +149,7 @@ export declare class NxtInput implements AfterViewInit {
138
149
  togglePasswordVisibility(): void;
139
150
  passwordMatchValidator(): ValidatorFn;
140
151
  getErrorMessage(): string;
141
- writeValue(value: any): void;
152
+ writeValue(value: any, from?: any): void;
142
153
  registerOnChange(fn: any): void;
143
154
  setDisabledState(isDisabled: boolean): void;
144
155
  private updateControlState;
@@ -163,6 +174,8 @@ export declare class NxtInput implements AfterViewInit {
163
174
  openDatePicker(type: string): void;
164
175
  removeValue(): void;
165
176
  onClickHyperlink(event: Event): void;
177
+ onHijriInputClick(): void;
178
+ private searchFromApi;
166
179
  static ɵfac: i0.ɵɵFactoryDeclaration<NxtInput, never>;
167
- static ɵcmp: i0.ɵɵComponentDeclaration<NxtInput, "nxt-input", never, { "label": { "alias": "label"; "required": false; }; "labelFont": { "alias": "labelFont"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "inputWeight": { "alias": "inputWeight"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "inputValueSize": { "alias": "inputValueSize"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "svgHeight": { "alias": "svgHeight"; "required": false; }; "svgWidth": { "alias": "svgWidth"; "required": false; }; "type": { "alias": "type"; "required": false; }; "inputIconRightSrc": { "alias": "inputIconRightSrc"; "required": false; }; "inputIconLeftSrc": { "alias": "inputIconLeftSrc"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "placeholderFont": { "alias": "placeholderFont"; "required": false; }; "placeholderWeight": { "alias": "placeholderWeight"; "required": false; }; "placeholderSize": { "alias": "placeholderSize"; "required": false; }; "inputTextColor": { "alias": "inputTextColor"; "required": false; }; "inputHeight": { "alias": "inputHeight"; "required": false; }; "inputWidth": { "alias": "inputWidth"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "inputBorderSize": { "alias": "inputBorderSize"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "confPassVal": { "alias": "confPassVal"; "required": false; }; "confPass": { "alias": "confPass"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "question": { "alias": "question"; "required": false; }; "showSuggestion": { "alias": "showSuggestion"; "required": false; }; "ariaOwns": { "alias": "ariaOwns"; "required": false; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "from": { "alias": "from"; "required": false; }; "hyperLink": { "alias": "hyperLink"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "valueChange": "valueChange"; "inputValue": "inputValue"; "onBlur": "onBlur"; "onFocus": "onFocus"; "toggleEmit": "toggleEmit"; "nativeInputRef": "nativeInputRef"; "removeValueEmit": "removeValueEmit"; "hyperlinkEmit": "hyperlinkEmit"; }, never, never, true, never>;
180
+ static ɵcmp: i0.ɵɵComponentDeclaration<NxtInput, "nxt-input", never, { "label": { "alias": "label"; "required": false; }; "labelFont": { "alias": "labelFont"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "inputWeight": { "alias": "inputWeight"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "inputValueSize": { "alias": "inputValueSize"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "svgHeight": { "alias": "svgHeight"; "required": false; }; "svgWidth": { "alias": "svgWidth"; "required": false; }; "type": { "alias": "type"; "required": false; }; "inputIconRightSrc": { "alias": "inputIconRightSrc"; "required": false; }; "inputIconLeftSrc": { "alias": "inputIconLeftSrc"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "placeholderFont": { "alias": "placeholderFont"; "required": false; }; "placeholderWeight": { "alias": "placeholderWeight"; "required": false; }; "placeholderSize": { "alias": "placeholderSize"; "required": false; }; "inputTextColor": { "alias": "inputTextColor"; "required": false; }; "inputHeight": { "alias": "inputHeight"; "required": false; }; "inputWidth": { "alias": "inputWidth"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "inputBorderSize": { "alias": "inputBorderSize"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "confPassVal": { "alias": "confPassVal"; "required": false; }; "confPass": { "alias": "confPass"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "question": { "alias": "question"; "required": false; }; "showSuggestion": { "alias": "showSuggestion"; "required": false; }; "ariaOwns": { "alias": "ariaOwns"; "required": false; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "from": { "alias": "from"; "required": false; }; "hyperLink": { "alias": "hyperLink"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "valueChange": "valueChange"; "inputValue": "inputValue"; "onBlur": "onBlur"; "onFocus": "onFocus"; "toggleEmit": "toggleEmit"; "nativeInputRef": "nativeInputRef"; "removeValueEmit": "removeValueEmit"; "hyperlinkEmit": "hyperlinkEmit"; }, never, never, true, never>;
168
181
  }
@@ -311,6 +311,11 @@ export declare class PropertiesComponent implements OnInit {
311
311
  fieldProps: any[];
312
312
  appearance: any[];
313
313
  };
314
+ month: {
315
+ elementProps: any[];
316
+ fieldProps: any[];
317
+ appearance: any[];
318
+ };
314
319
  Email: {
315
320
  elementProps: any[];
316
321
  fieldProps: any[];
@@ -69,7 +69,7 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
69
69
  hideDependentElements(elementId: any): void;
70
70
  clearSQError(quesId: any): void;
71
71
  setSubQuestions(records: any): void;
72
- childEventCapture(event: any, ques?: any): void;
72
+ childEventCapture(event: any, ques?: any, input?: any): void;
73
73
  deleteFile(fileData: any): void;
74
74
  getDropDown(event: any): void;
75
75
  getCurrentCalendar(event: any): void;
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import 'moment/locale/ar-sa';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HijriArabicPipe implements PipeTransform {
5
+ transform(hijriDate: any): string;
6
+ toArabicNumbers(input: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<HijriArabicPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<HijriArabicPipe, "hijriArabic", true>;
9
+ }
@@ -10,6 +10,8 @@ export declare class DataService {
10
10
  getValue(element: any, columns: any): any;
11
11
  apikey(apidata: any): void;
12
12
  apiResponse(endpoint: string): Observable<any>;
13
+ formatToHijriString(date: any, type?: 'year' | 'month' | 'date' | 'time' | any): any;
14
+ formatToGregorianString(date: any): string;
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DataService, [{ optional: true; }]>;
14
16
  static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
15
17
  }
@@ -5,6 +5,7 @@ export declare class StorageService {
5
5
  nxtBookletAnswer: BookletWrapper;
6
6
  selectedData: any;
7
7
  private queryValueMap;
8
+ private apiResponseData;
8
9
  constructor();
9
10
  save(qbJson: BookletWrapper): void;
10
11
  update(questionWithInput: Question): void;
@@ -13,6 +14,10 @@ export declare class StorageService {
13
14
  getQueryValue(questionId: string): any;
14
15
  clearQueryValue(questionId: string): void;
15
16
  clearAllQueryValues(): void;
17
+ apiResponseStore(questionId: string, value: any): void;
18
+ getApiResponseValue(questionId: string): any;
19
+ clearApiResponseValue(questionId: string): void;
20
+ clearAllApiResponseValues(): void;
16
21
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
17
22
  static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
18
23
  }
@@ -6,6 +6,8 @@ export declare class TranslationService {
6
6
  private currentLang;
7
7
  private translationsLoaded;
8
8
  translationsLoaded$: import("rxjs").Observable<void>;
9
+ private languageChange;
10
+ languageChange$: import("rxjs").Observable<any>;
9
11
  private formBuilderTranslations;
10
12
  private formBuilderCurrentLang;
11
13
  private formBuilderTranslationsLoaded;
@@ -15,7 +17,6 @@ export declare class TranslationService {
15
17
  flattenAppTranslations(translations: any): any;
16
18
  updateTranslations(newTranslations: any): void;
17
19
  private deepMerge;
18
- setTranslations(translations: any): void;
19
20
  getLanguage(): string;
20
21
  setLanguage(lang: string): void;
21
22
  translate(key: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.1.257",
3
+ "version": "2.1.259",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14"