@rangertechnologies/ngnxt 2.1.281 → 2.1.283
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.
- package/fesm2022/rangertechnologies-ngnxt.mjs +535 -525
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/custom-dropdown/custom-dropdown.component.d.ts +0 -1
- package/lib/components/custom-radio/custom-radio.component.d.ts +5 -5
- package/lib/components/nxt-input/nxt-input.component.d.ts +24 -5
- package/lib/services/GoogleMapsLoaderService/google-maps-loader-service.service.d.ts +7 -0
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.1.283.tgz +0 -0
- package/src/lib/style.css +10 -3
- package/lib/components/pick-location/pick-location.component.d.ts +0 -43
- package/rangertechnologies-ngnxt-2.1.281.tgz +0 -0
|
@@ -27,7 +27,6 @@ export declare class CustomDropdownComponent implements OnInit {
|
|
|
27
27
|
from: any;
|
|
28
28
|
valueChange: EventEmitter<any>;
|
|
29
29
|
dropdownWrapper: ElementRef;
|
|
30
|
-
invalidFieldIds: string[];
|
|
31
30
|
constructor(translationService: TranslationService, changeService: ChangeService, dataService: DataService, storageService: StorageService);
|
|
32
31
|
subscription: Subscription;
|
|
33
32
|
showOptions: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ChangeWrapper } from '../../model/changeWrapper';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { ChangeService } from '../../services/change/change.service';
|
|
@@ -6,6 +6,7 @@ import { DataService } from '../../services/data/data.service';
|
|
|
6
6
|
import { StorageService } from '../../services/storage/storage.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class CustomRadioComponent implements OnInit {
|
|
9
|
+
private cdRef;
|
|
9
10
|
private changeService;
|
|
10
11
|
private dataService;
|
|
11
12
|
private storageService;
|
|
@@ -17,20 +18,19 @@ export declare class CustomRadioComponent implements OnInit {
|
|
|
17
18
|
id: string;
|
|
18
19
|
readOnly: boolean;
|
|
19
20
|
errorMessage: string;
|
|
20
|
-
error: any;
|
|
21
21
|
fromShengel: boolean;
|
|
22
22
|
referenceField: string;
|
|
23
23
|
token: string;
|
|
24
|
+
label: string;
|
|
24
25
|
mode: 'view' | 'edit' | 'print';
|
|
25
26
|
valueChange: EventEmitter<any>;
|
|
26
|
-
invalidFieldIds: string[];
|
|
27
27
|
labelField: string;
|
|
28
28
|
valueField: string;
|
|
29
29
|
subscription: Subscription;
|
|
30
30
|
originalValue: any;
|
|
31
31
|
value: ChangeWrapper;
|
|
32
32
|
selectedOptionId: any;
|
|
33
|
-
constructor(changeService: ChangeService, dataService: DataService, storageService: StorageService);
|
|
33
|
+
constructor(cdRef: ChangeDetectorRef, changeService: ChangeService, dataService: DataService, storageService: StorageService);
|
|
34
34
|
viewEdit: boolean;
|
|
35
35
|
ngOnInit(): void;
|
|
36
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -39,5 +39,5 @@ export declare class CustomRadioComponent implements OnInit {
|
|
|
39
39
|
discardChanges(): void;
|
|
40
40
|
saveChanges(): void;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomRadioComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomRadioComponent, "app-custom-radio", never, { "options": { "alias": "options"; "required": false; }; "question": { "alias": "question"; "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; }; "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomRadioComponent, "app-custom-radio", never, { "options": { "alias": "options"; "required": false; }; "question": { "alias": "question"; "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; }; "fromShengel": { "alias": "fromShengel"; "required": false; }; "referenceField": { "alias": "referenceField"; "required": false; }; "token": { "alias": "token"; "required": false; }; "label": { "alias": "label"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, QueryList, ElementRef, SimpleChanges, AfterViewInit, Renderer2 } from '@angular/core';
|
|
1
|
+
import { EventEmitter, QueryList, ElementRef, SimpleChanges, AfterViewInit, Renderer2, ChangeDetectorRef, NgZone } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormArray, FormControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { QuillModules } from 'ngx-quill';
|
|
@@ -7,9 +7,13 @@ import { DataService } from '../../services/data/data.service';
|
|
|
7
7
|
import { TranslationService } from '../../services/translation/translation.service';
|
|
8
8
|
import { StorageService } from '../../services/storage/storage.service';
|
|
9
9
|
import { CountryService } from '../../services/country/country.service';
|
|
10
|
+
import { GoogleMapsLoaderService } from '../../services/GoogleMapsLoaderService/google-maps-loader-service.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class NxtInput implements AfterViewInit {
|
|
12
13
|
#private;
|
|
14
|
+
private mapsLoader;
|
|
15
|
+
private cdr;
|
|
16
|
+
private ngZone;
|
|
13
17
|
private countryService;
|
|
14
18
|
private storageService;
|
|
15
19
|
private translationService;
|
|
@@ -70,13 +74,13 @@ export declare class NxtInput implements AfterViewInit {
|
|
|
70
74
|
direction: any;
|
|
71
75
|
currency: any;
|
|
72
76
|
helpText: any;
|
|
77
|
+
apiKey: any;
|
|
73
78
|
set size(size: number);
|
|
74
79
|
valueChange: EventEmitter<string>;
|
|
75
80
|
inputValue: EventEmitter<any>;
|
|
76
81
|
onBlur: EventEmitter<any>;
|
|
77
82
|
onFocus: EventEmitter<any>;
|
|
78
83
|
toggleEmit: EventEmitter<any>;
|
|
79
|
-
nativeInputRef: EventEmitter<ElementRef<any>>;
|
|
80
84
|
removeValueEmit: EventEmitter<any>;
|
|
81
85
|
inputEls: QueryList<ElementRef<HTMLInputElement>>;
|
|
82
86
|
inputRef: ElementRef;
|
|
@@ -127,8 +131,15 @@ export declare class NxtInput implements AfterViewInit {
|
|
|
127
131
|
languageCode: any;
|
|
128
132
|
currencyOptions: any;
|
|
129
133
|
currencySymbol: any;
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
showModal: boolean;
|
|
135
|
+
private geoCoder;
|
|
136
|
+
markerOptions: any;
|
|
137
|
+
markerPosition: {
|
|
138
|
+
lat: number;
|
|
139
|
+
lng: number;
|
|
140
|
+
};
|
|
141
|
+
private googleMapsPromise;
|
|
142
|
+
constructor(mapsLoader: GoogleMapsLoaderService, cdr: ChangeDetectorRef, ngZone: NgZone, countryService: CountryService, storageService: StorageService, translationService: TranslationService, renderer: Renderer2, elRef: ElementRef, elementRef: ElementRef, changeService: ChangeService, dataService: DataService);
|
|
132
143
|
ngAfterViewInit(): void;
|
|
133
144
|
ngOnChanges(changes: SimpleChanges): void;
|
|
134
145
|
ngOnInit(): void;
|
|
@@ -171,6 +182,14 @@ export declare class NxtInput implements AfterViewInit {
|
|
|
171
182
|
removeValue(): void;
|
|
172
183
|
onHijriInputClick(): void;
|
|
173
184
|
private searchFromApi;
|
|
185
|
+
initAutocomplete(): void;
|
|
186
|
+
openMap(): void;
|
|
187
|
+
closeModal(): void;
|
|
188
|
+
private setCurrentLocation;
|
|
189
|
+
getAddress(latitude: number, longitude: number): void;
|
|
190
|
+
onMapClick(event: google.maps.MapMouseEvent): void;
|
|
191
|
+
onMarkerDragEnd(event: google.maps.MapMouseEvent): void;
|
|
192
|
+
loadGoogleMaps(): Promise<void>;
|
|
174
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxtInput, never>;
|
|
175
|
-
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; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "valueChange": "valueChange"; "inputValue": "inputValue"; "onBlur": "onBlur"; "onFocus": "onFocus"; "toggleEmit": "toggleEmit"; "
|
|
194
|
+
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; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "valueChange": "valueChange"; "inputValue": "inputValue"; "onBlur": "onBlur"; "onFocus": "onFocus"; "toggleEmit": "toggleEmit"; "removeValueEmit": "removeValueEmit"; }, never, never, true, never>;
|
|
176
195
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GoogleMapsLoaderService {
|
|
3
|
+
private loadPromise;
|
|
4
|
+
load(apiKey: string): Promise<void>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleMapsLoaderService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GoogleMapsLoaderService>;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
package/src/lib/style.css
CHANGED
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.questiondiv1{
|
|
48
|
-
padding-left:
|
|
49
|
-
padding-right:
|
|
48
|
+
padding-left: 20px;
|
|
49
|
+
padding-right: 20px;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.questiondiv2{
|
|
@@ -1008,7 +1008,7 @@ select{
|
|
|
1008
1008
|
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
1009
1009
|
-webkit-border-radius: 2px;
|
|
1010
1010
|
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
1011
|
-
background-color: #
|
|
1011
|
+
background-color: #ffffff;
|
|
1012
1012
|
border-radius: 2px;
|
|
1013
1013
|
border: 1px solid #eeeeee;
|
|
1014
1014
|
box-shadow: none;
|
|
@@ -1870,3 +1870,10 @@ select{
|
|
|
1870
1870
|
width: 100% !important; /* 12/12 Full width */
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
+
/* SKS18SEP25 svg unwanted hight issue fix */
|
|
1874
|
+
div > svg {
|
|
1875
|
+
line-height: 0 !important;
|
|
1876
|
+
}
|
|
1877
|
+
div:has(> svg:only-child) {
|
|
1878
|
+
line-height: 0 !important;
|
|
1879
|
+
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, ChangeDetectorRef, NgZone, OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
|
-
import { ChangeWrapper } from '../../model/changeWrapper';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PickLocationComponent implements OnInit, OnChanges {
|
|
5
|
-
private ngZone;
|
|
6
|
-
private cdr;
|
|
7
|
-
latitude: any;
|
|
8
|
-
longitude: any;
|
|
9
|
-
zoom: number;
|
|
10
|
-
private geoCoder;
|
|
11
|
-
searchElementRef: ElementRef<HTMLInputElement>;
|
|
12
|
-
showModal: boolean;
|
|
13
|
-
address: string;
|
|
14
|
-
from: any;
|
|
15
|
-
question: any;
|
|
16
|
-
mode: 'view' | 'edit' | 'print';
|
|
17
|
-
locationSelected: EventEmitter<ChangeWrapper>;
|
|
18
|
-
navigatorGeolocation: any;
|
|
19
|
-
markerPosition: {
|
|
20
|
-
lat: any;
|
|
21
|
-
lng: any;
|
|
22
|
-
};
|
|
23
|
-
center: {
|
|
24
|
-
lat: any;
|
|
25
|
-
lng: any;
|
|
26
|
-
};
|
|
27
|
-
markerOptions: any;
|
|
28
|
-
apiKey: any;
|
|
29
|
-
constructor(ngZone: NgZone, cdr: ChangeDetectorRef);
|
|
30
|
-
ngOnInit(): void;
|
|
31
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
32
|
-
setInputRef(ref: ElementRef<HTMLInputElement>): void;
|
|
33
|
-
private loadGoogleMapsScript;
|
|
34
|
-
initAutocomplete(): void;
|
|
35
|
-
onMarkerDragEnd(): void;
|
|
36
|
-
onMapClick(event: google.maps.MapMouseEvent): void;
|
|
37
|
-
private setCurrentLocation;
|
|
38
|
-
getAddress(latitude: number, longitude: number): void;
|
|
39
|
-
openMap(): void;
|
|
40
|
-
closeModal(): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PickLocationComponent, never>;
|
|
42
|
-
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>;
|
|
43
|
-
}
|
|
Binary file
|