novo-elements 13.1.0-next.4 → 13.1.0-next.6
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/elements/places/index.d.ts +13 -9
- package/elements/query-builder/index.d.ts +66 -35
- package/fesm2022/novo-elements-elements-form.mjs +2 -2
- package/fesm2022/novo-elements-elements-form.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-places.mjs +115 -127
- package/fesm2022/novo-elements-elements-places.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-query-builder.mjs +62 -15
- package/fesm2022/novo-elements-elements-query-builder.mjs.map +1 -1
- package/fesm2022/novo-elements.mjs +14 -0
- package/fesm2022/novo-elements.mjs.map +1 -1
- package/index.d.ts +14 -0
- package/package.json +1 -1
|
@@ -14,12 +14,13 @@ declare class GooglePlacesService {
|
|
|
14
14
|
private platformId;
|
|
15
15
|
private _global;
|
|
16
16
|
private _localStorageService;
|
|
17
|
+
private mapsLoad?;
|
|
18
|
+
private mapsLoadKey?;
|
|
17
19
|
constructor(_http: HttpClient, platformId: Object, _global: GlobalRef, _localStorageService: LocalStorageService);
|
|
20
|
+
loadGoogleMaps(settings: PlacesSettings): Promise<void>;
|
|
21
|
+
private injectGoogleMapsScript;
|
|
18
22
|
getPredictions(url: string, query: string, sessionToken?: string): Promise<any>;
|
|
19
|
-
getLatLngDetail(url: string, lat: number, lng: number): Promise<any>;
|
|
20
23
|
getPlaceDetails(url: string, placeId: string, sessionToken?: string): Promise<any>;
|
|
21
|
-
getGeoCurrentLocation(): Promise<any>;
|
|
22
|
-
getGeoLatLngDetail(latlng: any): Promise<any>;
|
|
23
24
|
getGeoPrediction(params: any): Promise<any>;
|
|
24
25
|
getGeoPlaceDetail(placeId: string): Promise<any>;
|
|
25
26
|
getGeoPaceDetailByReferance(referance: string): Promise<any>;
|
|
@@ -55,6 +56,12 @@ interface PlacesSettings {
|
|
|
55
56
|
currentLocIconUrl?: string;
|
|
56
57
|
searchIconUrl?: string;
|
|
57
58
|
locationIconUrl?: string;
|
|
59
|
+
/** Bullhorn-managed key; when set, the library lazy-loads the Maps JS SDK with it instead of relying on a host script tag. */
|
|
60
|
+
googleApiKey?: string;
|
|
61
|
+
/** Extra Maps JS loader query params, merged over the defaults (libraries=places, loading=async). */
|
|
62
|
+
googleMapsLoaderParams?: Record<string, string>;
|
|
63
|
+
/** When false/undefined, the address-block inline autocomplete overlay is suppressed even when this config is present. */
|
|
64
|
+
addressBlockEnabled?: boolean;
|
|
58
65
|
}
|
|
59
66
|
/** Normalized address prediction; raw provider records are mapped into this via normalizePrediction. */
|
|
60
67
|
interface AddressLookupPrediction {
|
|
@@ -67,18 +74,17 @@ interface AddressLookupPrediction {
|
|
|
67
74
|
raw?: any;
|
|
68
75
|
}
|
|
69
76
|
declare class PlacesListComponent extends BasePickerResults implements OnInit, OnChanges, ControlValueAccessor {
|
|
70
|
-
private platformId;
|
|
71
77
|
private _elmRef;
|
|
72
78
|
private _global;
|
|
73
79
|
private _googlePlacesService;
|
|
74
80
|
private cdr;
|
|
81
|
+
private addressConfig;
|
|
75
82
|
private static readonly SESSION_TOKEN_TIMEOUT_MS;
|
|
76
83
|
userSettings: PlacesSettings;
|
|
77
84
|
termChange: EventEmitter<any>;
|
|
78
85
|
select: EventEmitter<any>;
|
|
79
86
|
matchesUpdated: EventEmitter<AddressLookupPrediction[]>;
|
|
80
87
|
locationInput: string;
|
|
81
|
-
gettingCurrentLocationFlag: boolean;
|
|
82
88
|
dropdownOpen: boolean;
|
|
83
89
|
recentDropdownOpen: boolean;
|
|
84
90
|
isSettingsError: boolean;
|
|
@@ -94,7 +100,7 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
|
|
|
94
100
|
model: any;
|
|
95
101
|
onModelChange: Function;
|
|
96
102
|
onModelTouched: Function;
|
|
97
|
-
constructor(
|
|
103
|
+
constructor(_elmRef: ElementRef, _global: GlobalRef, _googlePlacesService: GooglePlacesService, cdr: ChangeDetectorRef, addressConfig?: PlacesSettings);
|
|
98
104
|
ngOnInit(): any;
|
|
99
105
|
ngOnChanges(): any;
|
|
100
106
|
writeValue(model: any): void;
|
|
@@ -107,7 +113,6 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
|
|
|
107
113
|
selectMatch(match: AddressLookupPrediction): any;
|
|
108
114
|
closeAutocomplete(event: any): any;
|
|
109
115
|
userQuerySubmit(selectedOption?: any): any;
|
|
110
|
-
currentLocationSelected(): any;
|
|
111
116
|
normalizePrediction(raw: any): AddressLookupPrediction;
|
|
112
117
|
onKeyDown(event: KeyboardEvent): void;
|
|
113
118
|
search(term: any, mode?: any): Observable<any>;
|
|
@@ -121,11 +126,10 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
|
|
|
121
126
|
private extractServerList;
|
|
122
127
|
private updateListItem;
|
|
123
128
|
private showRecentSearch;
|
|
124
|
-
private getCurrentLocationInfo;
|
|
125
129
|
private getPlaceLocationInfo;
|
|
126
130
|
private setRecentLocation;
|
|
127
131
|
private getRecentLocations;
|
|
128
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlacesListComponent,
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlacesListComponent, [null, null, null, null, { optional: true; }]>;
|
|
129
133
|
static ɵcmp: i0.ɵɵComponentDeclaration<PlacesListComponent, "google-places-list", never, { "userSettings": { "alias": "userSettings"; "required": false; }; }, { "termChange": "termChange"; "select": "select"; "matchesUpdated": "matchesUpdated"; }, never, never, false, never>;
|
|
130
134
|
}
|
|
131
135
|
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ViewContainerRef, OnInit, OnChanges, AfterContentInit, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef, SimpleChanges, QueryList, InputSignal, Signal, AfterContentChecked, InjectionToken } from '@angular/core';
|
|
3
|
-
import * as
|
|
2
|
+
import { TemplateRef, ViewContainerRef, OnInit, OnChanges, AfterContentInit, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef, SimpleChanges, QueryList, InputSignal, Signal, AfterContentChecked, PipeTransform, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as i16 from '@angular/forms';
|
|
4
4
|
import { FormGroup, FormControl, ControlContainer, FormControlName, UntypedFormGroup, AbstractControl, FormBuilder, FormArray } from '@angular/forms';
|
|
5
5
|
import { NovoLabelService } from 'novo-elements/services';
|
|
6
6
|
import { Subject, Subscription } from 'rxjs';
|
|
7
7
|
import { Day } from 'date-fns';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i26 from 'novo-elements/elements/field';
|
|
9
9
|
import { NovoPickerToggleElement } from 'novo-elements/elements/field';
|
|
10
|
-
import * as
|
|
11
|
-
import { PlacesListComponent } from 'novo-elements/elements/places';
|
|
12
|
-
import * as
|
|
10
|
+
import * as i19 from 'novo-elements/elements/places';
|
|
11
|
+
import { PlacesListComponent, PlacesSettings } from 'novo-elements/elements/places';
|
|
12
|
+
import * as i24 from 'novo-elements/elements/select';
|
|
13
13
|
import { NovoSelectElement } from 'novo-elements/elements/select';
|
|
14
|
-
import * as
|
|
14
|
+
import * as i29 from 'novo-elements/elements/tabbed-group-picker';
|
|
15
15
|
import { NovoTabbedGroupPickerElement, TabbedGroupPickerTab, TabbedGroupPickerButtonConfig } from 'novo-elements/elements/tabbed-group-picker';
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
16
|
+
import * as i15 from '@angular/common';
|
|
17
|
+
import * as i17 from '@angular/cdk/drag-drop';
|
|
18
|
+
import * as i18 from '@angular/cdk/table';
|
|
19
|
+
import * as i20 from 'novo-elements/elements/autocomplete';
|
|
20
|
+
import * as i21 from 'novo-elements/elements/button';
|
|
21
|
+
import * as i22 from 'novo-elements/elements/common';
|
|
22
|
+
import * as i23 from 'novo-elements/elements/form';
|
|
23
|
+
import * as i25 from 'novo-elements/elements/non-ideal-state';
|
|
24
|
+
import * as i27 from 'novo-elements/elements/flex';
|
|
25
|
+
import * as i28 from 'novo-elements/elements/tabs';
|
|
26
|
+
import * as i30 from 'novo-elements/elements/loading';
|
|
27
|
+
import * as i31 from 'novo-elements/elements/card';
|
|
28
|
+
import * as i32 from 'novo-elements/elements/date-picker';
|
|
29
|
+
import * as i33 from 'novo-elements/elements/date-time-picker';
|
|
30
|
+
import * as i34 from 'novo-elements/elements/icon';
|
|
31
|
+
import * as i35 from 'novo-elements/elements/radio';
|
|
32
|
+
import * as i36 from 'novo-elements/elements/search';
|
|
33
|
+
import * as i37 from 'novo-elements/elements/switch';
|
|
34
|
+
import * as i38 from 'novo-elements/elements/chips';
|
|
35
|
+
import * as i39 from 'novo-elements/elements/select-search';
|
|
36
|
+
import * as i40 from 'novo-elements/elements/dropdown';
|
|
37
|
+
import * as i41 from 'novo-elements/elements/tooltip';
|
|
38
38
|
|
|
39
39
|
/** Base interface for a condidation template directives. */
|
|
40
40
|
interface ConditionDef {
|
|
@@ -176,15 +176,35 @@ interface FieldConfig<T extends BaseFieldDef> {
|
|
|
176
176
|
find: (name: string) => T;
|
|
177
177
|
}
|
|
178
178
|
interface AddressData {
|
|
179
|
-
address_components
|
|
180
|
-
formatted_address
|
|
181
|
-
geometry
|
|
179
|
+
address_components?: AddressComponent[];
|
|
180
|
+
formatted_address?: string;
|
|
181
|
+
geometry?: AddressGeometry;
|
|
182
182
|
name?: string;
|
|
183
|
-
place_id
|
|
183
|
+
place_id?: string;
|
|
184
|
+
address1?: string;
|
|
185
|
+
address2?: string;
|
|
186
|
+
city?: string;
|
|
187
|
+
state?: string;
|
|
188
|
+
zip?: string;
|
|
189
|
+
countryName?: string;
|
|
190
|
+
countryCode?: string;
|
|
191
|
+
formattedAddress?: string;
|
|
192
|
+
location?: AddressGeoPoint;
|
|
193
|
+
viewport?: AddressDetailViewport;
|
|
194
|
+
placeId?: string;
|
|
195
|
+
postalCodes?: string[];
|
|
184
196
|
radius?: AddressRadius;
|
|
185
197
|
postal_codes?: string[];
|
|
186
198
|
types?: string[];
|
|
187
199
|
}
|
|
200
|
+
interface AddressGeoPoint {
|
|
201
|
+
latitude: number;
|
|
202
|
+
longitude: number;
|
|
203
|
+
}
|
|
204
|
+
interface AddressDetailViewport {
|
|
205
|
+
northeast: AddressGeoPoint;
|
|
206
|
+
southwest: AddressGeoPoint;
|
|
207
|
+
}
|
|
188
208
|
interface AddressRadius {
|
|
189
209
|
value: number;
|
|
190
210
|
units: AddressRadiusUnitsName;
|
|
@@ -431,6 +451,7 @@ declare class NovoDefaultAddressConditionDef extends AbstractConditionFieldDef i
|
|
|
431
451
|
term: string;
|
|
432
452
|
private _addressChangesSubscription;
|
|
433
453
|
element: ElementRef<any>;
|
|
454
|
+
protected readonly addressConfig: PlacesSettings;
|
|
434
455
|
constructor(labelService: NovoLabelService);
|
|
435
456
|
ngOnDestroy(): void;
|
|
436
457
|
onKeyup(event: any, viewIndex: any): void;
|
|
@@ -629,9 +650,19 @@ declare class CriteriaBuilderComponent implements OnInit, OnDestroy, AfterConten
|
|
|
629
650
|
static ɵcmp: i0.ɵɵComponentDeclaration<CriteriaBuilderComponent, "novo-criteria-builder", never, { "config": { "alias": "config"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "allowedGroupings": { "alias": "allowedGroupings"; "required": false; }; "editTypeFn": { "alias": "editTypeFn"; "required": false; }; "addressConfig": { "alias": "addressConfig"; "required": false; }; "dateConfig": { "alias": "dateConfig"; "required": false; }; "canBeEmpty": { "alias": "canBeEmpty"; "required": false; }; "HideFirstOperator": { "alias": "hideFirstOperator"; "required": false; }; }, {}, ["_contentFieldDefs"], never, false, never>;
|
|
630
651
|
}
|
|
631
652
|
|
|
653
|
+
/**
|
|
654
|
+
* Resolves a display label from an address value. Google client-SDK results use formatted_address;
|
|
655
|
+
* address-search-service results use formattedAddress.
|
|
656
|
+
*/
|
|
657
|
+
declare class AddressLabelPipe implements PipeTransform {
|
|
658
|
+
transform(item: AddressData): string;
|
|
659
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressLabelPipe, never>;
|
|
660
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AddressLabelPipe, "addressLabel", false>;
|
|
661
|
+
}
|
|
662
|
+
|
|
632
663
|
declare class NovoQueryBuilderModule {
|
|
633
664
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoQueryBuilderModule, never>;
|
|
634
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoQueryBuilderModule, [typeof CriteriaBuilderComponent, typeof ConditionBuilderComponent, typeof ConditionInputOutlet, typeof ConditionOperatorOutlet, typeof ConditionGroupComponent, typeof NovoDefaultAddressConditionDef, typeof NovoDefaultBooleanConditionDef, typeof NovoDefaultDateConditionDef, typeof NovoDefaultDateTimeConditionDef, typeof NovoConditionOperatorsDef, typeof NovoConditionInputDef, typeof NovoConditionFieldDef, typeof NovoDefaultStringConditionDef, typeof NovoDefaultNumberConditionDef, typeof NovoDefaultIdConditionDef, typeof NovoDefaultPickerConditionDef, typeof NovoConditionTemplatesComponent], [typeof
|
|
665
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoQueryBuilderModule, [typeof AddressLabelPipe, typeof CriteriaBuilderComponent, typeof ConditionBuilderComponent, typeof ConditionInputOutlet, typeof ConditionOperatorOutlet, typeof ConditionGroupComponent, typeof NovoDefaultAddressConditionDef, typeof NovoDefaultBooleanConditionDef, typeof NovoDefaultDateConditionDef, typeof NovoDefaultDateTimeConditionDef, typeof NovoConditionOperatorsDef, typeof NovoConditionInputDef, typeof NovoConditionFieldDef, typeof NovoDefaultStringConditionDef, typeof NovoDefaultNumberConditionDef, typeof NovoDefaultIdConditionDef, typeof NovoDefaultPickerConditionDef, typeof NovoConditionTemplatesComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i16.ReactiveFormsModule, typeof i17.DragDropModule, typeof i18.CdkTableModule, typeof i19.GooglePlacesModule, typeof i20.NovoAutoCompleteModule, typeof i21.NovoButtonModule, typeof i22.NovoCommonModule, typeof i23.NovoFormModule, typeof i24.NovoSelectModule, typeof i25.NovoNonIdealStateModule, typeof i26.NovoFieldModule, typeof i22.NovoOptionModule, typeof i27.NovoFlexModule, typeof i28.NovoTabModule, typeof i29.NovoTabbedGroupPickerModule, typeof i30.NovoLoadingModule, typeof i31.NovoCardModule, typeof i32.NovoDatePickerModule, typeof i33.NovoDateTimePickerModule, typeof i34.NovoIconModule, typeof i22.NovoOverlayModule, typeof i35.NovoRadioModule, typeof i36.NovoSearchBoxModule, typeof i37.NovoSwitchModule, typeof i38.NovoChipsModule, typeof i39.NovoSelectSearchModule, typeof i40.NovoDropdownModule, typeof i23.NovoFormExtrasModule, typeof i41.NovoTooltipModule], [typeof CriteriaBuilderComponent, typeof ConditionBuilderComponent, typeof NovoDefaultAddressConditionDef, typeof NovoDefaultBooleanConditionDef, typeof NovoDefaultDateConditionDef, typeof NovoDefaultDateTimeConditionDef, typeof NovoConditionOperatorsDef, typeof NovoConditionInputDef, typeof NovoConditionFieldDef, typeof NovoDefaultStringConditionDef, typeof NovoDefaultNumberConditionDef, typeof NovoDefaultIdConditionDef, typeof NovoDefaultPickerConditionDef, typeof NovoConditionTemplatesComponent]>;
|
|
635
666
|
static ɵinj: i0.ɵɵInjectorDeclaration<NovoQueryBuilderModule>;
|
|
636
667
|
}
|
|
637
668
|
|
|
@@ -640,4 +671,4 @@ declare const NOVO_CRITERIA_BUILDER: InjectionToken<any>;
|
|
|
640
671
|
declare const NOVO_CONDITION_BUILDER: InjectionToken<any>;
|
|
641
672
|
|
|
642
673
|
export { AbstractConditionFieldDef, BaseConditionFieldDef, ConditionBuilderComponent, ConditionInputOutlet, ConditionOperatorOutlet, Conjunction, CriteriaBuilderComponent, NOVO_CONDITION_BUILDER, NOVO_CRITERIA_BUILDER, NOVO_QUERY_BUILDER, NovoConditionFieldDef, NovoConditionInputDef, NovoConditionOperatorsDef, NovoConditionTemplatesComponent, NovoDefaultAddressConditionDef, NovoDefaultBooleanConditionDef, NovoDefaultDateConditionDef, NovoDefaultDateTimeConditionDef, NovoDefaultIdConditionDef, NovoDefaultNumberConditionDef, NovoDefaultPickerConditionDef, NovoDefaultStringConditionDef, NovoQueryBuilderModule, Operator, RadiusUnits };
|
|
643
|
-
export type { AddressComponent, AddressCriteriaConfig, AddressData, AddressGeometry, AddressGeometryLocation, AddressGeometryViewport, AddressRadius, AddressRadiusUnitsName, BaseFieldDef, Condition, ConditionDef, ConditionGroup, ConditionOrConditionGroup, ConditionType, Criteria, DateCriteriaConfig, FieldConfig, NestedConditionGroup, NestedCriteria, OperatorName, QueryBuilderConfig, QueryFilterOutlet };
|
|
674
|
+
export type { AddressComponent, AddressCriteriaConfig, AddressData, AddressDetailViewport, AddressGeoPoint, AddressGeometry, AddressGeometryLocation, AddressGeometryViewport, AddressRadius, AddressRadiusUnitsName, BaseFieldDef, Condition, ConditionDef, ConditionGroup, ConditionOrConditionGroup, ConditionType, Criteria, DateCriteriaConfig, FieldConfig, NestedConditionGroup, NestedCriteria, OperatorName, QueryBuilderConfig, QueryFilterOutlet };
|
|
@@ -4192,7 +4192,7 @@ class NovoAddressElement {
|
|
|
4192
4192
|
[disabled]="disabled.address1"
|
|
4193
4193
|
/>
|
|
4194
4194
|
</span>
|
|
4195
|
-
<novo-overlay-template *ngIf="addressConfig" [parent]="address1ElRef" position="above-below">
|
|
4195
|
+
<novo-overlay-template *ngIf="addressConfig?.addressBlockEnabled" [parent]="address1ElRef" position="above-below">
|
|
4196
4196
|
<google-places-list
|
|
4197
4197
|
[term]="debouncedSearch"
|
|
4198
4198
|
[userSettings]="addressConfig"
|
|
@@ -4354,7 +4354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
4354
4354
|
[disabled]="disabled.address1"
|
|
4355
4355
|
/>
|
|
4356
4356
|
</span>
|
|
4357
|
-
<novo-overlay-template *ngIf="addressConfig" [parent]="address1ElRef" position="above-below">
|
|
4357
|
+
<novo-overlay-template *ngIf="addressConfig?.addressBlockEnabled" [parent]="address1ElRef" position="above-below">
|
|
4358
4358
|
<google-places-list
|
|
4359
4359
|
[term]="debouncedSearch"
|
|
4360
4360
|
[userSettings]="addressConfig"
|