@norwegian/core-components 6.0.3 → 6.2.0
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/esm2022/lib/components/accordion/accordion.component.mjs +17 -12
- package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +1 -1
- package/esm2022/lib/components/airport-select/airport-select.component.mjs +13 -1
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +7 -1
- package/esm2022/lib/components/backdrop/backdrop.component.mjs +3 -1
- package/esm2022/lib/components/box/box.component.mjs +4 -4
- package/esm2022/lib/components/button/button.component.mjs +5 -1
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -1
- package/esm2022/lib/components/chip/chip.component.mjs +2 -7
- package/esm2022/lib/components/container/container.component.mjs +1 -1
- package/esm2022/lib/components/continue/continue.component.mjs +6 -1
- package/esm2022/lib/components/cover/cover.component.mjs +1 -1
- package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +1 -1
- package/esm2022/lib/components/datepicker/datepicker.component.mjs +16 -1
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +17 -1
- package/esm2022/lib/components/divider/divider.component.mjs +1 -1
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -1
- package/esm2022/lib/components/filter/filter.component.mjs +36 -2
- package/esm2022/lib/components/grid/grid.component.mjs +1 -1
- package/esm2022/lib/components/icon/icon.component.mjs +1 -1
- package/esm2022/lib/components/icon-list/icon-list.component.mjs +1 -1
- package/esm2022/lib/components/icon-list/icon-list.model.mjs +1 -1
- package/esm2022/lib/components/info/info.component.mjs +5 -4
- package/esm2022/lib/components/input/input.component.mjs +6 -1
- package/esm2022/lib/components/journey/journey.component.mjs +5 -7
- package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +7 -5
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +22 -25
- package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +12 -4
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +18 -20
- package/esm2022/lib/components/list/list.component.mjs +1 -1
- package/esm2022/lib/components/modal/modal.component.mjs +5 -7
- package/esm2022/lib/components/number-field/number-field.component.mjs +4 -2
- package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -4
- package/esm2022/lib/components/page-header/page-header.component.mjs +30 -12
- package/esm2022/lib/components/page-header/page-header.module.mjs +5 -4
- package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
- package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +11 -7
- package/esm2022/lib/components/phone-number/phone-number.component.mjs +11 -15
- package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +3 -4
- package/esm2022/lib/components/radio/radio.component.mjs +4 -2
- package/esm2022/lib/components/select/select.component.mjs +11 -7
- package/esm2022/lib/components/simple-list/simple-list.component.mjs +1 -1
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +9 -5
- package/esm2022/lib/components/slider/slider.component.mjs +32 -18
- package/esm2022/lib/components/sort/sort.component.mjs +11 -7
- package/esm2022/lib/components/spinner/spinner.component.mjs +13 -18
- package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +13 -7
- package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -2
- package/esm2022/lib/components/tab-group/tab-group.component.mjs +3 -2
- package/esm2022/lib/components/table/table.component.mjs +1 -3
- package/esm2022/lib/components/textarea/textarea.component.mjs +6 -1
- package/esm2022/lib/components/toggle/toggle.component.mjs +5 -5
- package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +26 -31
- package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +3 -2
- package/fesm2022/norwegian-core-components.mjs +371 -221
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +81 -78
- package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +2 -2
- package/lib/components/airport-select/airport-select.component.d.ts +38 -2
- package/lib/components/autocomplete/autocomplete.component.d.ts +15 -2
- package/lib/components/backdrop/backdrop.component.d.ts +3 -0
- package/lib/components/box/box.component.d.ts +13 -3
- package/lib/components/button/button.component.d.ts +26 -0
- package/lib/components/checkbox/checkbox.component.d.ts +18 -2
- package/lib/components/chip/chip.component.d.ts +5 -21
- package/lib/components/container/container.component.d.ts +6 -0
- package/lib/components/continue/continue.component.d.ts +14 -0
- package/lib/components/cover/cover.component.d.ts +13 -3
- package/lib/components/datepicker/calendar/calendar.component.d.ts +2 -2
- package/lib/components/datepicker/datepicker.component.d.ts +33 -2
- package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +42 -0
- package/lib/components/divider/divider.component.d.ts +9 -0
- package/lib/components/dropdown/dropdown.component.d.ts +8 -0
- package/lib/components/filter/filter.component.d.ts +108 -2
- package/lib/components/grid/grid.component.d.ts +12 -0
- package/lib/components/icon/icon.component.d.ts +5 -8
- package/lib/components/icon-list/icon-list.component.d.ts +5 -0
- package/lib/components/icon-list/icon-list.model.d.ts +1 -0
- package/lib/components/info/info.component.d.ts +7 -18
- package/lib/components/input/input.component.d.ts +30 -5
- package/lib/components/journey/journey.component.d.ts +9 -16
- package/lib/components/journey-availability/journey-availability.component.d.ts +8 -8
- package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +29 -34
- package/lib/components/journey-selection/journey-selection.component.d.ts +14 -3
- package/lib/components/journey-stopover/journey-stopover.component.d.ts +35 -43
- package/lib/components/list/list.component.d.ts +8 -0
- package/lib/components/modal/modal.component.d.ts +16 -34
- package/lib/components/number-field/number-field.component.d.ts +26 -12
- package/lib/components/page-footer/page-footer.component.d.ts +9 -16
- package/lib/components/page-header/page-header.component.d.ts +30 -15
- package/lib/components/page-header/page-header.module.d.ts +2 -1
- package/lib/components/passenger-select/models/passengers.model.d.ts +2 -2
- package/lib/components/passenger-select/passenger-select.component.d.ts +33 -18
- package/lib/components/phone-number/phone-number.component.d.ts +80 -108
- package/lib/components/premium-toggle/premium-toggle.component.d.ts +9 -13
- package/lib/components/radio/radio.component.d.ts +35 -18
- package/lib/components/select/select.component.d.ts +47 -29
- package/lib/components/simple-list/simple-list.component.d.ts +16 -8
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +16 -9
- package/lib/components/slider/slider.component.d.ts +51 -28
- package/lib/components/sort/sort.component.d.ts +12 -7
- package/lib/components/spinner/spinner.component.d.ts +24 -37
- package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +14 -7
- package/lib/components/suggestions/suggestions.component.d.ts +6 -3
- package/lib/components/tab-group/tab-group.component.d.ts +6 -3
- package/lib/components/table/table.component.d.ts +3 -8
- package/lib/components/textarea/textarea.component.d.ts +42 -20
- package/lib/components/toggle/toggle.component.d.ts +44 -68
- package/lib/components/trip-summary/trip-summary.component.d.ts +68 -82
- package/lib/components/weather-icon/weather-icon.component.d.ts +12 -6
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { AfterViewChecked, ElementRef, EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { FormGroup } from '@angular/forms';
|
|
7
7
|
import { BehaviorSubject } from 'rxjs';
|
|
8
8
|
import { TripType } from './enums/trip-type.enum';
|
|
9
9
|
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
@@ -59,120 +59,143 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
59
59
|
set inboundOpen(value: boolean);
|
|
60
60
|
private inboundOpenTimeout;
|
|
61
61
|
/**
|
|
62
|
+
* @property Input
|
|
62
63
|
* @required
|
|
63
64
|
* @description
|
|
64
65
|
* A record containing keys with all airport codes with corresponding array of airport codes connected to the key.
|
|
65
66
|
*/
|
|
66
67
|
airportRelations: Record<string, Array<string>>;
|
|
67
68
|
/**
|
|
69
|
+
* @property Input
|
|
68
70
|
* @description
|
|
69
71
|
* Adds 'aria-label' on the clear button inside the airport select inputs.
|
|
70
72
|
*/
|
|
71
73
|
ariaLabelClear: string;
|
|
72
74
|
/**
|
|
75
|
+
* @property Input
|
|
73
76
|
* @description
|
|
74
77
|
* ARIA label for the subtract buttons.
|
|
75
78
|
*/
|
|
76
79
|
ariaLabelSubtract: string;
|
|
77
80
|
/**
|
|
81
|
+
* @property Input
|
|
78
82
|
* @description
|
|
79
83
|
* Adds 'aria-label' to the backdrops.
|
|
80
84
|
*/
|
|
81
85
|
ariaLabelBackdrop: string;
|
|
82
86
|
/**
|
|
87
|
+
* @property Input
|
|
83
88
|
* @description
|
|
84
89
|
* ARIA label for the add buttons.
|
|
85
90
|
*/
|
|
86
91
|
ariaLabelAdd: string;
|
|
87
92
|
/**
|
|
93
|
+
* @property Input
|
|
88
94
|
* @description
|
|
89
95
|
* A list of airports that should be displayed in the origin dropdown.
|
|
90
96
|
* If not included, all airports will be displayed.
|
|
91
97
|
*/
|
|
92
98
|
allowedOriginAirports: Array<AirportModel>;
|
|
93
99
|
/**
|
|
100
|
+
* @property Input
|
|
94
101
|
* @description
|
|
95
102
|
* An array of airports that are restricted for destination airports. It will default to airports if not set.
|
|
96
103
|
*/
|
|
97
104
|
allowedDestinationAirports: Array<AirportModel>;
|
|
98
105
|
/**
|
|
106
|
+
* @property Input
|
|
99
107
|
* @description
|
|
100
108
|
* A boolean indicating if airports that the user allready has searh for should be displayed.
|
|
101
109
|
*/
|
|
102
110
|
displayLatestSearches: boolean;
|
|
103
111
|
/**
|
|
112
|
+
* @property Input
|
|
104
113
|
* @description
|
|
105
114
|
* Display switch UI to interchange origin and destination airport.
|
|
106
115
|
*/
|
|
107
116
|
useSwitch?: boolean;
|
|
108
117
|
/**
|
|
118
|
+
* @property Input
|
|
109
119
|
* @description
|
|
110
120
|
* A boolean indicating if airports that are close to the user should be displayed.
|
|
111
121
|
*/
|
|
112
122
|
displayClosestAirports: boolean;
|
|
113
123
|
/**
|
|
124
|
+
* @property Input
|
|
114
125
|
* @description
|
|
115
126
|
* The airport code of the origin airport. It will set the selected origin airport based on this value.
|
|
116
127
|
*/
|
|
117
128
|
originAirportCode: string;
|
|
118
129
|
/**
|
|
130
|
+
* @property Input
|
|
119
131
|
* @description
|
|
120
132
|
* The airport code of the destination airport. It will set the selected destination airport based on this value.
|
|
121
133
|
*/
|
|
122
134
|
destinationAirportCode: string;
|
|
123
135
|
/**
|
|
136
|
+
* @property Input
|
|
124
137
|
* @description
|
|
125
138
|
* A label that will be added to the passenger select dropdown.
|
|
126
139
|
*/
|
|
127
140
|
passengerSelectLabel: string;
|
|
128
141
|
/**
|
|
142
|
+
* @property Input
|
|
129
143
|
* @description
|
|
130
144
|
* The total maximum amount of passengers in the passenger select dropdown.
|
|
131
145
|
*/
|
|
132
146
|
maxPaxCount: number;
|
|
133
147
|
/**
|
|
148
|
+
* @property Input
|
|
134
149
|
* @description
|
|
135
150
|
* An array of different passenger types that will be displayed.
|
|
136
151
|
*/
|
|
137
152
|
get passengers(): Array<PassengersModel>;
|
|
138
153
|
set passengers(value: Array<PassengersModel>);
|
|
139
154
|
/**
|
|
155
|
+
* @property Input
|
|
140
156
|
* @description
|
|
141
157
|
* The minimum amount of adults that can be selected in the passenger select dropdown.
|
|
142
158
|
*/
|
|
143
159
|
minAdultCount: number;
|
|
144
160
|
/**
|
|
161
|
+
* @property Input
|
|
145
162
|
* @description
|
|
146
163
|
* A label for round trip selection in the trip switch dropdown.
|
|
147
164
|
*/
|
|
148
165
|
tripSwitchRoundTripLabel: string;
|
|
149
166
|
/**
|
|
167
|
+
* @property Input
|
|
150
168
|
* @description
|
|
151
169
|
* A label for one way selection in the trip switch dropdown.
|
|
152
170
|
*/
|
|
153
171
|
tripSwitchOneWayLabel: string;
|
|
154
172
|
/**
|
|
173
|
+
* @property Input
|
|
155
174
|
* @description
|
|
156
175
|
* A label for direct only selection in the transit switch dropdown.
|
|
157
176
|
*/
|
|
158
177
|
directOnlyLabel: string;
|
|
159
178
|
/**
|
|
179
|
+
* @property Input
|
|
160
180
|
* @description
|
|
161
181
|
* A label for both direct and transit selection in the transit switch dropdown.
|
|
162
182
|
*/
|
|
163
183
|
directTransitLabel: string;
|
|
164
184
|
/**
|
|
185
|
+
* @property Input
|
|
165
186
|
* @description
|
|
166
187
|
* Indicates if the filter should be minimized on mobile screen sizes.
|
|
167
188
|
*/
|
|
168
189
|
minimizeOnMobile?: boolean;
|
|
169
190
|
/**
|
|
191
|
+
* @property Input
|
|
170
192
|
* @description
|
|
171
193
|
* Indicates if the edit search of accordion should be expended on mobile screen sizes.
|
|
172
194
|
*/
|
|
173
195
|
get expandedAccordionMobile(): boolean;
|
|
174
196
|
set expandedAccordionMobile(value: boolean);
|
|
175
197
|
/**
|
|
198
|
+
* @property Input
|
|
176
199
|
* @description
|
|
177
200
|
* A separator for the filter summary that is dispayed if minimizeOnMobile is true.
|
|
178
201
|
*
|
|
@@ -188,102 +211,121 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
188
211
|
*/
|
|
189
212
|
lastSummarySeparator: string;
|
|
190
213
|
/**
|
|
214
|
+
* @property Input
|
|
191
215
|
* @description
|
|
192
216
|
* A title that will be added to the passenger select dropdown.
|
|
193
217
|
*/
|
|
194
218
|
passengerSelectTitle: string;
|
|
195
219
|
/**
|
|
220
|
+
* @property Input
|
|
196
221
|
* @description
|
|
197
222
|
* A label for the adults passenger type in the passenger select dropdown.
|
|
198
223
|
*/
|
|
199
224
|
passengerSelectAdultsLabel: string;
|
|
200
225
|
/**
|
|
226
|
+
* @property Input
|
|
201
227
|
* @description
|
|
202
228
|
* A label for the children passenger type in the passenger select dropdown.
|
|
203
229
|
*/
|
|
204
230
|
passengerSelectChildrenLabel: string;
|
|
205
231
|
/**
|
|
232
|
+
* @property Input
|
|
206
233
|
* @description
|
|
207
234
|
* A label for the infants passenger type in the passenger select dropdown.
|
|
208
235
|
*/
|
|
209
236
|
passengerSelectInfantsLabel: string;
|
|
210
237
|
/**
|
|
238
|
+
* @property Input
|
|
211
239
|
* @description
|
|
212
240
|
* A label that will appear when total number of selected passengers exceeds the group booking limit
|
|
213
241
|
*/
|
|
214
242
|
groupBookingLabel: string;
|
|
215
243
|
/**
|
|
244
|
+
* @property Input
|
|
216
245
|
* @description
|
|
217
246
|
* A label that will appear on top of all airports in the airport select drop down lists.
|
|
218
247
|
*/
|
|
219
248
|
allAirportsLabel: string;
|
|
220
249
|
/**
|
|
250
|
+
* @property Input
|
|
221
251
|
* @description
|
|
222
252
|
* A label that will appear on top of the latest searches in the airport select drop down lists.
|
|
223
253
|
*/
|
|
224
254
|
latestSearchesLabel: string;
|
|
225
255
|
/**
|
|
256
|
+
* @property Input
|
|
226
257
|
* @description
|
|
227
258
|
* A label that will appear on top of the closest airports in the airport select drop down lists.
|
|
228
259
|
*/
|
|
229
260
|
closestAirportsLabel: string;
|
|
230
261
|
/**
|
|
262
|
+
* @property Input
|
|
231
263
|
* @description
|
|
232
264
|
* A label that will appear in the destination input field in the airport select, if the
|
|
233
265
|
* user tries to select a destination airport without selecting an origin airport.
|
|
234
266
|
*/
|
|
235
267
|
selectOriginFirstLabel: string;
|
|
236
268
|
/**
|
|
269
|
+
* @property Input
|
|
237
270
|
* @required
|
|
238
271
|
* @description
|
|
239
272
|
* A label that will appear on top of the origin airport input field.
|
|
240
273
|
*/
|
|
241
274
|
labelOrigin: string;
|
|
242
275
|
/**
|
|
276
|
+
* @property Input
|
|
243
277
|
* @description
|
|
244
278
|
* A placeholder that will appear on the origin airport input field.
|
|
245
279
|
*/
|
|
246
280
|
placeholderOrigin: string;
|
|
247
281
|
/**
|
|
282
|
+
* @property Input
|
|
248
283
|
* @required
|
|
249
284
|
* @description
|
|
250
285
|
* A label that will appear on top of the destination airport input field.
|
|
251
286
|
*/
|
|
252
287
|
labelDestination: string;
|
|
253
288
|
/**
|
|
289
|
+
* @property Input
|
|
254
290
|
* @description
|
|
255
291
|
* A label that will appear in my location in the drop down list in airport select.
|
|
256
292
|
*/
|
|
257
293
|
geolocationLabel: string;
|
|
258
294
|
/**
|
|
295
|
+
* @property Input
|
|
259
296
|
* @description
|
|
260
297
|
* A label that will appear in my location, in the drop down list in airport select if user has denied geolocation.
|
|
261
298
|
*/
|
|
262
299
|
geolocationBlockedLabel: string;
|
|
263
300
|
/**
|
|
301
|
+
* @property Input
|
|
264
302
|
* @description
|
|
265
303
|
* A placeholder that will appear on the destination airport input field.
|
|
266
304
|
*/
|
|
267
305
|
placeholderDestination: string;
|
|
268
306
|
/**
|
|
307
|
+
* @property Input
|
|
269
308
|
* @description
|
|
270
309
|
* A modifier that will allow always keeping the selected airport.
|
|
271
310
|
* The last selected airport will be shown once user clears the selection and blur.
|
|
272
311
|
*/
|
|
273
312
|
keepSelection: boolean;
|
|
274
313
|
/**
|
|
314
|
+
* @property Input
|
|
275
315
|
* @description
|
|
276
316
|
* A title that will be assigned to edit search accordion.
|
|
277
317
|
*/
|
|
278
318
|
editSearchTitle: string;
|
|
279
319
|
/**
|
|
320
|
+
* @property Input
|
|
280
321
|
* @description
|
|
281
322
|
* Adds the parent's form group.
|
|
282
323
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
283
324
|
* It is requiered to be filled if nasFormControlName added.
|
|
284
325
|
*/
|
|
285
|
-
nasFormGroup:
|
|
326
|
+
nasFormGroup: FormGroup;
|
|
286
327
|
/**
|
|
328
|
+
* @property Input
|
|
287
329
|
* @description
|
|
288
330
|
* Sets a formControlName directive to the input.
|
|
289
331
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -291,6 +333,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
291
333
|
*/
|
|
292
334
|
nasFormControlNameOrigin: string;
|
|
293
335
|
/**
|
|
336
|
+
* @property Input
|
|
294
337
|
* @description
|
|
295
338
|
* Sets a formControlName directive to the input.
|
|
296
339
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -298,6 +341,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
298
341
|
*/
|
|
299
342
|
nasFormControlNameDestination: string;
|
|
300
343
|
/**
|
|
344
|
+
* @property Input
|
|
301
345
|
* @description
|
|
302
346
|
* Sets a formControlName directive to the input.
|
|
303
347
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -305,6 +349,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
305
349
|
*/
|
|
306
350
|
nasFormControlNameTripType: string;
|
|
307
351
|
/**
|
|
352
|
+
* @property Input
|
|
308
353
|
* @description
|
|
309
354
|
* Sets a formControlName directive to the input.
|
|
310
355
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -312,6 +357,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
312
357
|
*/
|
|
313
358
|
nasFormControlNameDirectOnly: string;
|
|
314
359
|
/**
|
|
360
|
+
* @property Input
|
|
315
361
|
* @description
|
|
316
362
|
* Sets a formControlName directive to the input.
|
|
317
363
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -319,6 +365,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
319
365
|
*/
|
|
320
366
|
nasFormControlNameOutbound: string;
|
|
321
367
|
/**
|
|
368
|
+
* @property Input
|
|
322
369
|
* @description
|
|
323
370
|
* Sets a formControlName directive to the input.
|
|
324
371
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -326,6 +373,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
326
373
|
*/
|
|
327
374
|
nasFormControlNameInbound: string;
|
|
328
375
|
/**
|
|
376
|
+
* @property Input
|
|
329
377
|
* @description
|
|
330
378
|
* Sets a formControlName directive to the input.
|
|
331
379
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -333,6 +381,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
333
381
|
*/
|
|
334
382
|
nasFormControlGroupBooking: string;
|
|
335
383
|
/**
|
|
384
|
+
* @property Input
|
|
336
385
|
* @description
|
|
337
386
|
* Sets a formControlName directive to the input.
|
|
338
387
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -340,11 +389,13 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
340
389
|
*/
|
|
341
390
|
nasFormControlNameSubsidyDiscount: string;
|
|
342
391
|
/**
|
|
392
|
+
* @property Input
|
|
343
393
|
* @description
|
|
344
394
|
* Make latest searches and geolocation override default value in the origin airport selector.
|
|
345
395
|
*/
|
|
346
396
|
overrideOrigin?: boolean;
|
|
347
397
|
/**
|
|
398
|
+
* @property Input
|
|
348
399
|
* @description
|
|
349
400
|
* This will make the filter display suggested airports based on geolocation and latest searches.
|
|
350
401
|
*/
|
|
@@ -352,10 +403,13 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
352
403
|
get closestAirports(): Array<AirportModel>;
|
|
353
404
|
set closestAirports(airports: Array<AirportModel>);
|
|
354
405
|
/**
|
|
406
|
+
* @property Input
|
|
407
|
+
* @description
|
|
355
408
|
* This will only display airport selection. When a city pair is selected, the rest of the filter will be visible.
|
|
356
409
|
*/
|
|
357
410
|
minimize?: boolean;
|
|
358
411
|
/**
|
|
412
|
+
* @property Input
|
|
359
413
|
* @required
|
|
360
414
|
* @description
|
|
361
415
|
* All airports that will be populated into the dropdown lists.
|
|
@@ -364,270 +418,322 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
364
418
|
get airports(): Array<AirportModel>;
|
|
365
419
|
set airports(airports: Array<AirportModel>);
|
|
366
420
|
/**
|
|
421
|
+
* @property Input
|
|
367
422
|
* @description
|
|
368
423
|
* Sets and gets the selected trip type.
|
|
369
424
|
*/
|
|
370
425
|
get tripType(): TripType;
|
|
371
426
|
set tripType(tripType: TripType);
|
|
372
427
|
/**
|
|
428
|
+
* @property Input
|
|
373
429
|
* @description
|
|
374
430
|
* Sets and gets whether the selected transit type is direct only or not.
|
|
375
431
|
*/
|
|
376
432
|
get directOnly(): boolean;
|
|
377
433
|
set directOnly(directOnly: boolean);
|
|
378
434
|
/**
|
|
435
|
+
* @property Input
|
|
379
436
|
* @description
|
|
380
437
|
* The limit for when the total amount of passengers exceeds to be a group booking.
|
|
381
438
|
*/
|
|
382
439
|
groupBookingLimit: number;
|
|
383
440
|
/**
|
|
441
|
+
* @property Input
|
|
384
442
|
* @description
|
|
385
443
|
* Subsidy discounts
|
|
386
444
|
*/
|
|
387
445
|
subsidyDiscounts: Array<SubsidyDiscountModel>;
|
|
388
446
|
/**
|
|
447
|
+
* @property Input
|
|
389
448
|
* @description
|
|
390
449
|
* Selected subsidy discount
|
|
391
450
|
*/
|
|
392
451
|
selectedSubsidyDiscount: SubsidyDiscountModel;
|
|
393
452
|
/**
|
|
453
|
+
* @property Input
|
|
394
454
|
* @description
|
|
395
455
|
* Subsidy discount label
|
|
396
456
|
*/
|
|
397
457
|
subsidyDiscountLabel: string;
|
|
398
458
|
/**
|
|
459
|
+
* @property Input
|
|
399
460
|
* @description
|
|
400
461
|
* ARIA label for the previous month button in the calendar.
|
|
401
462
|
*/
|
|
402
463
|
ariaLabelPreviousMonth: string;
|
|
403
464
|
/**
|
|
465
|
+
* @property Input
|
|
404
466
|
* @description
|
|
405
467
|
* ARIA label for the next month button in the calendar.
|
|
406
468
|
*/
|
|
407
469
|
ariaLabelNextMonth: string;
|
|
408
470
|
/**
|
|
471
|
+
* @property Output
|
|
409
472
|
* @description
|
|
410
473
|
* An event that is fired every time the origin dropdown selector opens or closes.
|
|
411
474
|
*/
|
|
412
475
|
originOpenChange: EventEmitter<boolean>;
|
|
413
476
|
/**
|
|
477
|
+
* @property Output
|
|
414
478
|
* @description
|
|
415
479
|
* An event that is fired every time the origin dropdown selector opens or closes.
|
|
416
480
|
*/
|
|
417
481
|
destinationOpenChange: EventEmitter<boolean>;
|
|
418
482
|
/**
|
|
483
|
+
* @property Output
|
|
419
484
|
* @description
|
|
420
485
|
* An event that is fired every time the passenger select dropdown opens or closes.
|
|
421
486
|
*/
|
|
422
487
|
passengerSelectOpenChange: EventEmitter<boolean>;
|
|
423
488
|
/**
|
|
489
|
+
* @property Output
|
|
424
490
|
* @description
|
|
425
491
|
* An event that is fired every time the selected origin airport changes.
|
|
426
492
|
*/
|
|
427
493
|
originChange: EventEmitter<AirportModel>;
|
|
428
494
|
/**
|
|
495
|
+
* @property Output
|
|
429
496
|
* @description
|
|
430
497
|
* An event that is fired every time the selected destination airport changes.
|
|
431
498
|
*/
|
|
432
499
|
destinationChange: EventEmitter<AirportModel>;
|
|
433
500
|
/**
|
|
501
|
+
* @property Output
|
|
434
502
|
* @description
|
|
435
503
|
* An event that is fired every time a passenger selection change is performed.
|
|
436
504
|
*/
|
|
437
505
|
passengersChange: EventEmitter<PassengersModel[]>;
|
|
438
506
|
/**
|
|
507
|
+
* @property Output
|
|
439
508
|
* @description
|
|
440
509
|
* Sets and gets the selected trip type.
|
|
441
510
|
*/
|
|
442
511
|
tripTypeChange: EventEmitter<TripType>;
|
|
443
512
|
/**
|
|
513
|
+
* @property Output
|
|
444
514
|
* @description
|
|
445
515
|
* Sets and gets whether the selected transit type is direct only or not.
|
|
446
516
|
*/
|
|
447
517
|
directOnlyChange: EventEmitter<boolean>;
|
|
448
518
|
/**
|
|
519
|
+
* @property Input
|
|
449
520
|
* @description
|
|
450
521
|
* Label for no available flights.
|
|
451
522
|
*/
|
|
452
523
|
noAvailableFlightsLabel: string;
|
|
453
524
|
/**
|
|
525
|
+
* @property Input
|
|
454
526
|
* @description
|
|
455
527
|
* Label for available flights.
|
|
456
528
|
*/
|
|
457
529
|
availableFlightsLabel: string;
|
|
458
530
|
/**
|
|
531
|
+
* @property Input
|
|
459
532
|
* @description
|
|
460
533
|
* Disable possibility to select dates in the past.
|
|
461
534
|
*/
|
|
462
535
|
disablePastSelection: boolean;
|
|
463
536
|
/**
|
|
537
|
+
* @property Input
|
|
464
538
|
* @description
|
|
465
539
|
* Label for outbound datepicker.
|
|
466
540
|
*/
|
|
467
541
|
outboundLabel: string;
|
|
468
542
|
/**
|
|
543
|
+
* @property Input
|
|
469
544
|
* @description
|
|
470
545
|
* Label for inbound datepicker.
|
|
471
546
|
*/
|
|
472
547
|
inboundLabel: string;
|
|
473
548
|
/**
|
|
549
|
+
* @property Input
|
|
474
550
|
* @description
|
|
475
551
|
* Sets the datepickers in availability mode where available dates can be added.
|
|
476
552
|
*/
|
|
477
553
|
availability: boolean;
|
|
478
554
|
/**
|
|
555
|
+
* @property Input
|
|
479
556
|
* @description
|
|
480
557
|
* Available dates for outbound calendar.
|
|
481
558
|
*/
|
|
482
559
|
outboundAvailableDates: Array<UtcDate>;
|
|
483
560
|
/**
|
|
561
|
+
* @property Input
|
|
484
562
|
* @description
|
|
485
563
|
* Available dates for inbound calendar.
|
|
486
564
|
*/
|
|
487
565
|
inboundAvailableDates: Array<UtcDate>;
|
|
488
566
|
/**
|
|
567
|
+
* @property Input
|
|
489
568
|
* @description
|
|
490
569
|
* If set, Enables the time dropdown selector alongside datepicker.
|
|
491
570
|
*/
|
|
492
571
|
times: Array<UtcDate>;
|
|
493
572
|
/**
|
|
573
|
+
* @property Input
|
|
494
574
|
* @description
|
|
495
575
|
* The display format of the date when user has selected the date and it is being shown in the input box for the date picker.
|
|
496
576
|
* Please look at the angular Date pipe for valid formats and variations.
|
|
497
577
|
*/
|
|
498
578
|
dateDisplayFormat: string;
|
|
499
579
|
/**
|
|
580
|
+
* @property Input
|
|
500
581
|
* @description
|
|
501
582
|
* The time display format.
|
|
502
583
|
*/
|
|
503
584
|
timeDisplayFormat: string;
|
|
504
585
|
/**
|
|
586
|
+
* @property Input
|
|
505
587
|
* @description
|
|
506
588
|
* A locale code for the locale format rules to use. When not supplied, uses the value of LOCALE_ID, which is en-US by default.
|
|
507
589
|
* This requires that registerLocaleData is called with the respective locale.
|
|
508
590
|
*/
|
|
509
591
|
locale: string;
|
|
510
592
|
/**
|
|
593
|
+
* @property Input
|
|
511
594
|
* @description
|
|
512
595
|
* A modifier to remove the padding and margins around the element.
|
|
513
596
|
*/
|
|
514
597
|
compact: boolean;
|
|
515
598
|
/**
|
|
599
|
+
* @property Input
|
|
516
600
|
* @description
|
|
517
601
|
* Disable possibility to select outbound dates.
|
|
518
602
|
*/
|
|
519
603
|
outboundDisabled: boolean;
|
|
520
604
|
/**
|
|
605
|
+
* @property Input
|
|
521
606
|
* @description
|
|
522
607
|
* Disable possibility to select inbound dates.
|
|
523
608
|
*/
|
|
524
609
|
inboundDisabled: boolean;
|
|
525
610
|
/**
|
|
611
|
+
* @property Input
|
|
526
612
|
* @description
|
|
527
613
|
* Show/Add date picker combo into the filter if set to true.
|
|
528
614
|
*/
|
|
529
615
|
enableDatepickers: boolean;
|
|
530
616
|
/**
|
|
617
|
+
* @property Input
|
|
531
618
|
* @required
|
|
532
619
|
* @description
|
|
533
620
|
* Label for the toggle icon for minimizing filter.
|
|
534
621
|
*/
|
|
535
622
|
minimizingLabel: string;
|
|
536
623
|
/**
|
|
624
|
+
* @property Input
|
|
537
625
|
* @required
|
|
538
626
|
* @description
|
|
539
627
|
* Label for the toggle icon for maximizing filter.
|
|
540
628
|
*/
|
|
541
629
|
maximizingLabel: string;
|
|
542
630
|
/**
|
|
631
|
+
* @property Input
|
|
543
632
|
* @required
|
|
544
633
|
* @description
|
|
545
634
|
* Label for the toggling transit type when filter is minimized.
|
|
546
635
|
*/
|
|
547
636
|
directOnlyMobileLabel: string;
|
|
548
637
|
/**
|
|
638
|
+
* @property Input
|
|
549
639
|
* @description
|
|
550
640
|
* Label for 'or' in the suggestioned airports.
|
|
551
641
|
*/
|
|
552
642
|
orLabel: string;
|
|
553
643
|
/**
|
|
644
|
+
* @property Input
|
|
554
645
|
* @description
|
|
555
646
|
* A text that appears in the destinations dropdown list when origin airport is not set.
|
|
556
647
|
*/
|
|
557
648
|
invalidDestinationText: string;
|
|
558
649
|
/**
|
|
650
|
+
* @property Input
|
|
559
651
|
* @description
|
|
560
652
|
* Selected datefor outbound calendar.
|
|
561
653
|
*/
|
|
562
654
|
get outboundSelectedDate(): UtcDate;
|
|
563
655
|
set outboundSelectedDate(date: UtcDate);
|
|
564
656
|
/**
|
|
657
|
+
* @property Input
|
|
565
658
|
* @description
|
|
566
659
|
* Selected datefor inbound calendar.
|
|
567
660
|
*/
|
|
568
661
|
get inboundSelectedDate(): UtcDate;
|
|
569
662
|
set inboundSelectedDate(date: UtcDate);
|
|
570
663
|
/**
|
|
664
|
+
* @property Input
|
|
571
665
|
* @description
|
|
572
666
|
* Will display the destination input, set this to false to remove it. It's true by default.
|
|
573
667
|
*/
|
|
574
668
|
enableDestinationSelect: boolean;
|
|
575
669
|
/**
|
|
670
|
+
* @property Input
|
|
576
671
|
* @description
|
|
577
672
|
* Will display passenger select, set this to false to remove it. It's true by default.
|
|
578
673
|
*/
|
|
579
674
|
enablePassengersSelect: boolean;
|
|
580
675
|
/**
|
|
676
|
+
* @property Input
|
|
581
677
|
* @description
|
|
582
678
|
* Will display the trip switch, set this to false to remove it. It's true by default.
|
|
583
679
|
*/
|
|
584
680
|
enableTripSwitch: boolean;
|
|
585
681
|
/**
|
|
682
|
+
* @property Input
|
|
586
683
|
* @description
|
|
587
684
|
* Will display the transit switch, set this to false to remove it. It's true by default.
|
|
588
685
|
*/
|
|
589
686
|
enableTransitSwitch: boolean;
|
|
590
687
|
/**
|
|
688
|
+
* @property Output
|
|
591
689
|
* @description
|
|
592
690
|
* When selected datehas been changed on the outbound calendar.
|
|
593
691
|
*/
|
|
594
692
|
outboundSelectedDateChange: EventEmitter<UtcDate>;
|
|
595
693
|
/**
|
|
694
|
+
* @property Output
|
|
596
695
|
* @description
|
|
597
696
|
* When selected datehas been changed on the inbound calendar.
|
|
598
697
|
*/
|
|
599
698
|
inboundSelectedDateChange: EventEmitter<UtcDate>;
|
|
600
699
|
/**
|
|
700
|
+
* @property Output
|
|
601
701
|
* @description
|
|
602
702
|
* Outbound datepicker is open or closed.
|
|
603
703
|
*/
|
|
604
704
|
outboundOpenChange: EventEmitter<boolean>;
|
|
605
705
|
/**
|
|
706
|
+
* @property Output
|
|
606
707
|
* @description
|
|
607
708
|
* Inbound datepicker is open or closed.
|
|
608
709
|
*/
|
|
609
710
|
inboundOpenChange: EventEmitter<boolean>;
|
|
610
711
|
/**
|
|
712
|
+
* @property Output
|
|
611
713
|
* @description
|
|
612
714
|
* Outbound calendar changes month.
|
|
613
715
|
*/
|
|
614
716
|
outboundMonthChange: EventEmitter<UtcDate>;
|
|
615
717
|
/**
|
|
718
|
+
* @property Output
|
|
616
719
|
* @description
|
|
617
720
|
* Inbound calendar changes month.
|
|
618
721
|
*/
|
|
619
722
|
inboundMonthChange: EventEmitter<UtcDate>;
|
|
620
723
|
/**
|
|
724
|
+
* @property Output
|
|
621
725
|
* @description
|
|
622
726
|
* When a user has actively changed the date.
|
|
623
727
|
*/
|
|
624
728
|
focusOnNextChange: EventEmitter<any>;
|
|
625
729
|
/**
|
|
730
|
+
* @property Output
|
|
626
731
|
* @description
|
|
627
732
|
* The geolocation of the user. Will be emitted if 'enableSuggestions' is true.
|
|
628
733
|
*/
|
|
629
734
|
positionChange: EventEmitter<GeolocationPosition>;
|
|
630
735
|
/**
|
|
736
|
+
* @property Output
|
|
631
737
|
* @description
|
|
632
738
|
* An even that is fired every time the info button on the subsidy discount is clicked.
|
|
633
739
|
*/
|