@norwegian/core-components 8.0.1 → 8.0.3
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/assets/documentation/select/select.md +0 -1
- package/assets/icons/icon-spenn--light.svg +7 -12
- package/assets/icons/icon-spenn--secondary.svg +7 -12
- package/assets/icons/icon-spenn.svg +7 -8
- package/assets/icons/medium/spenn-extra.svg +11 -0
- package/assets/icons/medium/spenn-logo--light.svg +4 -3
- package/assets/icons/medium/spenn-logo--secondary.svg +5 -0
- package/assets/icons/medium/spenn-logo.svg +4 -3
- package/assets/icons/small/spenn-extra.svg +11 -0
- package/assets/icons/small/spenn-logo--light.svg +3 -2
- package/assets/icons/small/spenn-logo--secondary.svg +5 -0
- package/assets/icons/small/spenn-logo.svg +3 -2
- package/fesm2022/norwegian-core-components.mjs +1117 -1519
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/index.d.ts +276 -512
- package/package.json +1 -1
- package/styles/2__generic/_fonts.scss +1 -1
- package/assets/documentation/select-new/select-new.md +0 -0
- package/assets/icons/medium/spenn-extra-six--light.svg +0 -12
- package/assets/icons/medium/spenn-extra-six.svg +0 -12
- package/assets/icons/medium/spenn-extra-two--light.svg +0 -11
- package/assets/icons/medium/spenn-extra-two.svg +0 -11
- package/assets/icons/small/spenn-extra-six--light.svg +0 -12
- package/assets/icons/small/spenn-extra-six.svg +0 -12
- package/assets/icons/small/spenn-extra-two--light.svg +0 -11
- package/assets/icons/small/spenn-extra-two.svg +0 -11
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, OnInit, EventEmitter, ChangeDetectorRef, AfterViewInit, OnChanges, QueryList,
|
|
2
|
+
import { ElementRef, OnInit, EventEmitter, ChangeDetectorRef, AfterViewInit, OnChanges, QueryList, Renderer2, AfterViewChecked, OnDestroy, AfterContentChecked, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { DatePipe } from '@angular/common';
|
|
5
5
|
import * as i4$1 from '@angular/forms';
|
|
6
|
-
import { FormGroup,
|
|
6
|
+
import { FormGroup, AbstractControl } from '@angular/forms';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
8
8
|
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
9
9
|
import * as i4 from '@angular/router';
|
|
@@ -2373,83 +2373,55 @@ interface DayModel {
|
|
|
2373
2373
|
isWithinRange?: boolean;
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
|
-
interface SelectOptionModel$1 {
|
|
2377
|
-
value: string;
|
|
2378
|
-
title: string;
|
|
2379
|
-
}
|
|
2380
|
-
|
|
2381
2376
|
interface WeekModel {
|
|
2382
2377
|
days: Array<DayModel>;
|
|
2383
2378
|
weekNumber: number;
|
|
2384
2379
|
}
|
|
2385
2380
|
|
|
2386
2381
|
interface SelectOptionModel {
|
|
2382
|
+
displayValue?: string;
|
|
2383
|
+
icon?: string;
|
|
2384
|
+
label: string;
|
|
2387
2385
|
value: string;
|
|
2388
|
-
title: string;
|
|
2389
2386
|
}
|
|
2390
2387
|
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
*
|
|
2400
|
-
* Add option.
|
|
2401
|
-
* @example
|
|
2402
|
-
* ```html
|
|
2403
|
-
* <nas-option [option]="option"></nas-option>
|
|
2404
|
-
* ```
|
|
2405
|
-
*/
|
|
2406
|
-
option: SelectOptionModel;
|
|
2407
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
2408
|
-
ngAfterViewChecked(): void;
|
|
2409
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
|
|
2410
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "nas-option", never, { "option": { "alias": "option"; "required": false; }; }, {}, never, never, false, never>;
|
|
2388
|
+
declare class SelectService {
|
|
2389
|
+
private _selected$;
|
|
2390
|
+
selected$: rxjs.Observable<string>;
|
|
2391
|
+
select(value: string): void;
|
|
2392
|
+
getIconName(value: string): string;
|
|
2393
|
+
getIconType(value: string): string;
|
|
2394
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectService, never>;
|
|
2395
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SelectService>;
|
|
2411
2396
|
}
|
|
2412
2397
|
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
declare class OptgroupComponent extends NasComponentBase implements AfterViewChecked {
|
|
2419
|
-
private elementRef;
|
|
2420
|
-
optionComponents: QueryList<OptionComponent>;
|
|
2421
|
-
/**
|
|
2422
|
-
*
|
|
2423
|
-
* Sets the label on the group.
|
|
2424
|
-
* @example
|
|
2425
|
-
* ```html
|
|
2426
|
-
* <nas-optgroup [label]="'Label name'"></nas-optgroup>
|
|
2427
|
-
* ```
|
|
2428
|
-
*/
|
|
2398
|
+
declare class OptionComponent extends NasComponentBase {
|
|
2399
|
+
private selectService;
|
|
2400
|
+
displayValue: string;
|
|
2401
|
+
icon: string;
|
|
2429
2402
|
label: string;
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2403
|
+
value: string;
|
|
2404
|
+
constructor(selectService: SelectService);
|
|
2405
|
+
onSelect(value: string): void;
|
|
2406
|
+
getIconName(value: string): string;
|
|
2407
|
+
getIconType(value: string): string;
|
|
2408
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
|
|
2409
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "nas-option", never, { "displayValue": { "alias": "displayValue"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
2434
2410
|
}
|
|
2435
2411
|
|
|
2436
2412
|
/**
|
|
2437
2413
|
* @license
|
|
2438
2414
|
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
2439
|
-
*/
|
|
2415
|
+
*/
|
|
2440
2416
|
|
|
2441
2417
|
/**
|
|
2442
|
-
*
|
|
2443
2418
|
* @description
|
|
2444
|
-
* Norwegian Select Component | Form Controls |
|
|
2445
|
-
|
|
2446
|
-
declare class SelectComponent extends NasComponentBase implements
|
|
2447
|
-
private
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
selectTitleWrapper: ElementRef;
|
|
2451
|
-
optionComponents: QueryList<OptionComponent>;
|
|
2452
|
-
optgroupComponents: QueryList<OptgroupComponent>;
|
|
2419
|
+
* Norwegian Select Component | Form Controls | New design
|
|
2420
|
+
*/
|
|
2421
|
+
declare class SelectComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
2422
|
+
private selectService;
|
|
2423
|
+
selectBoxElement: ElementRef;
|
|
2424
|
+
optionsComponent: QueryList<OptionComponent>;
|
|
2453
2425
|
/**
|
|
2454
2426
|
* @property Input
|
|
2455
2427
|
*
|
|
@@ -2461,14 +2433,7 @@ declare class SelectComponent extends NasComponentBase implements OnChanges, Aft
|
|
|
2461
2433
|
* @property Input
|
|
2462
2434
|
*
|
|
2463
2435
|
* @description
|
|
2464
|
-
* Sets
|
|
2465
|
-
*/
|
|
2466
|
-
block?: boolean;
|
|
2467
|
-
/**
|
|
2468
|
-
* @property Input
|
|
2469
|
-
*
|
|
2470
|
-
* @description
|
|
2471
|
-
* Sets compact styling.
|
|
2436
|
+
* Sets compact styling. Slighty smaller then regular select box.
|
|
2472
2437
|
*/
|
|
2473
2438
|
compact?: boolean;
|
|
2474
2439
|
/**
|
|
@@ -2489,60 +2454,42 @@ declare class SelectComponent extends NasComponentBase implements OnChanges, Aft
|
|
|
2489
2454
|
* @property Input
|
|
2490
2455
|
*
|
|
2491
2456
|
* @description
|
|
2492
|
-
* The error message to display when error
|
|
2457
|
+
* The error message to display when error occur. Error attribute need to be true.
|
|
2493
2458
|
*/
|
|
2494
2459
|
errorMessage?: string;
|
|
2495
2460
|
/**
|
|
2496
2461
|
* @property Input
|
|
2497
2462
|
*
|
|
2498
2463
|
* @description
|
|
2499
|
-
*
|
|
2500
|
-
*/
|
|
2501
|
-
fill?: boolean;
|
|
2502
|
-
/**
|
|
2503
|
-
* @property Input
|
|
2504
|
-
*
|
|
2505
|
-
* @description
|
|
2506
|
-
* The ID of the native input element.
|
|
2464
|
+
* The ID of the native input element
|
|
2507
2465
|
*/
|
|
2508
2466
|
id: string;
|
|
2509
2467
|
/**
|
|
2510
2468
|
* @property Input
|
|
2511
2469
|
*
|
|
2512
2470
|
* @description
|
|
2513
|
-
*
|
|
2514
|
-
*/
|
|
2515
|
-
inline?: boolean;
|
|
2516
|
-
/**
|
|
2517
|
-
* @property Input
|
|
2518
|
-
*
|
|
2519
|
-
* @description
|
|
2520
|
-
* Sets light styling.
|
|
2471
|
+
* Sets information text to the tooltip. Info icon will be displayed between label text.
|
|
2521
2472
|
*/
|
|
2522
|
-
|
|
2473
|
+
infoText?: string;
|
|
2523
2474
|
/**
|
|
2524
2475
|
* @property Input
|
|
2525
2476
|
*
|
|
2526
2477
|
* @description
|
|
2527
|
-
*
|
|
2478
|
+
* Sets inline styling. Possible to be used in sentences.
|
|
2528
2479
|
*/
|
|
2529
|
-
|
|
2480
|
+
inline?: boolean;
|
|
2530
2481
|
/**
|
|
2531
2482
|
* @property Input
|
|
2532
2483
|
*
|
|
2533
2484
|
* @description
|
|
2534
|
-
*
|
|
2485
|
+
* Sets the label to the select box.
|
|
2535
2486
|
*/
|
|
2536
|
-
|
|
2487
|
+
label?: string;
|
|
2537
2488
|
/**
|
|
2538
2489
|
* @property Input
|
|
2539
2490
|
*
|
|
2540
2491
|
* @description
|
|
2541
2492
|
* Sets a formControlName directive to the select.
|
|
2542
|
-
* Requires ReactiveFormsModule and nasFormGroup must be provided.
|
|
2543
|
-
*
|
|
2544
|
-
* @example
|
|
2545
|
-
* <nas-select [nasFormControlName]="'fareClass'"></nas-select>
|
|
2546
2493
|
*/
|
|
2547
2494
|
nasFormControlName: string;
|
|
2548
2495
|
/**
|
|
@@ -2550,10 +2497,6 @@ declare class SelectComponent extends NasComponentBase implements OnChanges, Aft
|
|
|
2550
2497
|
*
|
|
2551
2498
|
* @description
|
|
2552
2499
|
* Adds the parent's form group.
|
|
2553
|
-
* Requires ReactiveFormsModule and is required if nasFormControlName is provided.
|
|
2554
|
-
*
|
|
2555
|
-
* @example
|
|
2556
|
-
* <nas-select [nasFormGroup]="classGroup"></nas-select>
|
|
2557
2500
|
*/
|
|
2558
2501
|
nasFormGroup: FormGroup;
|
|
2559
2502
|
/**
|
|
@@ -2575,84 +2518,63 @@ declare class SelectComponent extends NasComponentBase implements OnChanges, Aft
|
|
|
2575
2518
|
* @property Input
|
|
2576
2519
|
*
|
|
2577
2520
|
* @description
|
|
2578
|
-
*
|
|
2579
|
-
*/
|
|
2580
|
-
simple?: boolean;
|
|
2581
|
-
/**
|
|
2582
|
-
* @property Input
|
|
2583
|
-
*
|
|
2584
|
-
* @description
|
|
2585
|
-
* Sets spaceless styling.
|
|
2521
|
+
* Set selected value from option.
|
|
2586
2522
|
*/
|
|
2587
|
-
|
|
2523
|
+
get selected(): SelectOptionModel;
|
|
2524
|
+
set selected(option: SelectOptionModel);
|
|
2588
2525
|
/**
|
|
2589
2526
|
* @property Input
|
|
2590
2527
|
*
|
|
2591
2528
|
* @description
|
|
2592
|
-
*
|
|
2529
|
+
* Sets simple styling. Border and background color stylings are removed.
|
|
2593
2530
|
*/
|
|
2594
|
-
|
|
2531
|
+
simple?: boolean;
|
|
2595
2532
|
/**
|
|
2596
2533
|
* @property Input
|
|
2597
2534
|
*
|
|
2598
2535
|
* @description
|
|
2599
|
-
*
|
|
2536
|
+
* Sets spaceless styling. Removes margins for the select box.
|
|
2600
2537
|
*/
|
|
2601
|
-
|
|
2602
|
-
set selected(option: SelectOptionModel);
|
|
2538
|
+
spaceless?: boolean;
|
|
2603
2539
|
/**
|
|
2604
2540
|
* @property Input
|
|
2605
2541
|
*
|
|
2606
2542
|
* @description
|
|
2607
|
-
* Sets
|
|
2543
|
+
* Sets stretched styling.
|
|
2608
2544
|
*/
|
|
2609
|
-
|
|
2545
|
+
stretched?: boolean;
|
|
2610
2546
|
/**
|
|
2611
2547
|
* @property Output
|
|
2612
2548
|
*
|
|
2613
2549
|
* @description
|
|
2614
|
-
* An event that
|
|
2550
|
+
* An event that is fired every time a selection is done.
|
|
2615
2551
|
*/
|
|
2616
2552
|
selectedChange: EventEmitter<SelectOptionModel>;
|
|
2617
|
-
|
|
2618
|
-
* @property Output
|
|
2619
|
-
*
|
|
2620
|
-
* @description
|
|
2621
|
-
* An event that fires every time a keydown event occurs on the select element.
|
|
2622
|
-
*/
|
|
2623
|
-
keyDownEvent: EventEmitter<KeyboardEvent>;
|
|
2624
|
-
active: boolean;
|
|
2625
|
-
focus: boolean;
|
|
2553
|
+
open: boolean;
|
|
2626
2554
|
hasContent: boolean;
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
private open;
|
|
2555
|
+
optionsValue: Array<SelectOptionModel>;
|
|
2556
|
+
selectedValue: SelectOptionModel;
|
|
2557
|
+
get modifiers(): Array<string>;
|
|
2558
|
+
get selectControl(): AbstractControl;
|
|
2559
|
+
get selectId(): string;
|
|
2560
|
+
get selectedLabel(): string;
|
|
2634
2561
|
private componentId;
|
|
2635
|
-
private
|
|
2636
|
-
|
|
2637
|
-
|
|
2562
|
+
private activeIndex;
|
|
2563
|
+
private NAS_OPTION_TAG;
|
|
2564
|
+
constructor(selectService: SelectService);
|
|
2565
|
+
clickOutside(event: MouseEvent): void;
|
|
2566
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2638
2567
|
ngOnInit(): void;
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
getClasses(): Array<ClassModel>;
|
|
2648
|
-
activeSelect(): void;
|
|
2649
|
-
focusSelect(): void;
|
|
2650
|
-
private setSelectedAndEmitChange;
|
|
2651
|
-
private setFirstOptionSelected;
|
|
2652
|
-
private updateShadow;
|
|
2653
|
-
private setSelectedTitle;
|
|
2568
|
+
ngAfterViewInit(): void;
|
|
2569
|
+
onOpen(): void;
|
|
2570
|
+
getIconName(value: string): string;
|
|
2571
|
+
getIconType(value: string): string;
|
|
2572
|
+
private setSelected;
|
|
2573
|
+
private setOptionsFromContent;
|
|
2574
|
+
private selectKeyDown;
|
|
2575
|
+
private updateActiveOption;
|
|
2654
2576
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
2655
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "nas-select", never, { "autogrow": { "alias": "autogrow"; "required": false; }; "
|
|
2577
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "nas-select", never, { "autogrow": { "alias": "autogrow"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "id": { "alias": "id"; "required": false; }; "infoText": { "alias": "infoText"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "label": { "alias": "label"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "options": { "alias": "options"; "required": false; }; "presentValue": { "alias": "presentValue"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "stretched": { "alias": "stretched"; "required": false; }; }, { "selectedChange": "selectedChange"; }, ["optionsComponent"], ["*"], false, never>;
|
|
2656
2578
|
}
|
|
2657
2579
|
|
|
2658
2580
|
declare class CalendarService {
|
|
@@ -2684,8 +2606,9 @@ declare class CalendarComponent extends NasComponentBase implements OnInit {
|
|
|
2684
2606
|
dateService: DateHelper;
|
|
2685
2607
|
datePipe: DatePipe;
|
|
2686
2608
|
private calendarService;
|
|
2609
|
+
private cdr;
|
|
2687
2610
|
weeks: Array<WeekModel>;
|
|
2688
|
-
months: SelectOptionModel
|
|
2611
|
+
months: SelectOptionModel[];
|
|
2689
2612
|
weekdays: string[];
|
|
2690
2613
|
isPreviousMonthDisabled: boolean;
|
|
2691
2614
|
previousMonthRef: ElementRef<HTMLButtonElement>;
|
|
@@ -2786,8 +2709,8 @@ declare class CalendarComponent extends NasComponentBase implements OnInit {
|
|
|
2786
2709
|
* When active date has been changed.
|
|
2787
2710
|
*/
|
|
2788
2711
|
activeDateChange: EventEmitter<UtcDate>;
|
|
2789
|
-
get selectedMonth(): SelectOptionModel
|
|
2790
|
-
set selectedMonth(option: SelectOptionModel
|
|
2712
|
+
get selectedMonth(): SelectOptionModel;
|
|
2713
|
+
set selectedMonth(option: SelectOptionModel);
|
|
2791
2714
|
get nextMonthDisabled(): boolean;
|
|
2792
2715
|
get currentMonthModel(): string;
|
|
2793
2716
|
/**
|
|
@@ -2809,7 +2732,7 @@ declare class CalendarComponent extends NasComponentBase implements OnInit {
|
|
|
2809
2732
|
private selectedDateValue;
|
|
2810
2733
|
private shouldFocusCalendarOnAvailableDatesUpdate;
|
|
2811
2734
|
private componentId;
|
|
2812
|
-
constructor(dateService: DateHelper, datePipe: DatePipe, calendarService: CalendarService);
|
|
2735
|
+
constructor(dateService: DateHelper, datePipe: DatePipe, calendarService: CalendarService, cdr: ChangeDetectorRef);
|
|
2813
2736
|
ngOnInit(): void;
|
|
2814
2737
|
dateKeyDown(event: KeyboardEvent): void;
|
|
2815
2738
|
onPreviousMonthKeydown(event: KeyboardEvent): void;
|
|
@@ -3088,12 +3011,12 @@ declare class DatepickerComponent extends NasComponentBase implements OnInit {
|
|
|
3088
3011
|
* Month selected via dropdown or navigation buttons.
|
|
3089
3012
|
*/
|
|
3090
3013
|
selectedMonthChange: EventEmitter<UtcDate>;
|
|
3091
|
-
focusedTime: SelectOptionModel
|
|
3014
|
+
focusedTime: SelectOptionModel;
|
|
3092
3015
|
model: string;
|
|
3093
|
-
selectedTimeOption: SelectOptionModel
|
|
3016
|
+
selectedTimeOption: SelectOptionModel;
|
|
3094
3017
|
show: boolean;
|
|
3095
3018
|
showTimes: boolean;
|
|
3096
|
-
timeOptions: Array<SelectOptionModel
|
|
3019
|
+
timeOptions: Array<SelectOptionModel>;
|
|
3097
3020
|
utcDate: UtcDate;
|
|
3098
3021
|
get activeDate(): UtcDate;
|
|
3099
3022
|
set activeDate(date: UtcDate);
|
|
@@ -3121,7 +3044,7 @@ declare class DatepickerComponent extends NasComponentBase implements OnInit {
|
|
|
3121
3044
|
onMonthChange(currentMonth: UtcDate): void;
|
|
3122
3045
|
onMouseDownDatepicker(): void;
|
|
3123
3046
|
openCalendar(): void;
|
|
3124
|
-
onTimeSelected(option: SelectOptionModel
|
|
3047
|
+
onTimeSelected(option: SelectOptionModel): void;
|
|
3125
3048
|
getMainClass(): Array<ClassModel>;
|
|
3126
3049
|
getLabelClass(): ClassModel;
|
|
3127
3050
|
closeCalendar(): void;
|
|
@@ -3138,9 +3061,96 @@ declare class DatepickerComponent extends NasComponentBase implements OnInit {
|
|
|
3138
3061
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "nas-datepicker", never, { "disableBackdrop": { "alias": "disableBackdrop"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "availableDates": { "alias": "availableDates"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "open": { "alias": "open"; "required": false; }; "lowerLimitDate": { "alias": "lowerLimitDate"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "selectedMonth": { "alias": "selectedMonth"; "required": false; }; "selectedTime": { "alias": "selectedTime"; "required": false; }; "timepickerLabel": { "alias": "timepickerLabel"; "required": false; }; "times": { "alias": "times"; "required": false; }; }, { "focusOnNextChange": "focusOnNextChange"; "focusOnPreviousChange": "focusOnPreviousChange"; "openChange": "openChange"; "selectedDateChange": "selectedDateChange"; "selectedMonthChange": "selectedMonthChange"; }, never, ["*"], false, never>;
|
|
3139
3062
|
}
|
|
3140
3063
|
|
|
3064
|
+
declare class OptGroupComponent extends NasComponentBase {
|
|
3065
|
+
label: string;
|
|
3066
|
+
constructor();
|
|
3067
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptGroupComponent, never>;
|
|
3068
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptGroupComponent, "nas-optgroup", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
declare class TooltipContentComponent extends NasComponentBase {
|
|
3072
|
+
constructor();
|
|
3073
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipContentComponent, never>;
|
|
3074
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipContentComponent, "nas-tooltip-content", never, {}, {}, never, ["*"], false, never>;
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* @license
|
|
3079
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
3080
|
+
*/
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
*
|
|
3084
|
+
* @description
|
|
3085
|
+
* Norwegian Tooltip Component | Functional | Beta
|
|
3086
|
+
*/
|
|
3087
|
+
declare class TooltipComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
3088
|
+
private deviceHelper;
|
|
3089
|
+
container: ElementRef;
|
|
3090
|
+
content: ElementRef;
|
|
3091
|
+
tooltip: ElementRef;
|
|
3092
|
+
tooltipContent: TooltipContentComponent;
|
|
3093
|
+
/**
|
|
3094
|
+
* @property Input
|
|
3095
|
+
*
|
|
3096
|
+
* @description
|
|
3097
|
+
* Sets text on the tooltip.
|
|
3098
|
+
*/
|
|
3099
|
+
text: string;
|
|
3100
|
+
/**
|
|
3101
|
+
* @property Input
|
|
3102
|
+
*
|
|
3103
|
+
* @description
|
|
3104
|
+
* Displays the tooltip; hover listener will be ignored.
|
|
3105
|
+
*/
|
|
3106
|
+
enabled: boolean;
|
|
3107
|
+
/**
|
|
3108
|
+
* @property Input
|
|
3109
|
+
*
|
|
3110
|
+
* @description
|
|
3111
|
+
* Sets left styling for the tooltip; auto-positioning on screen size will be ignored.
|
|
3112
|
+
*/
|
|
3113
|
+
left: boolean;
|
|
3114
|
+
/**
|
|
3115
|
+
* @property Input
|
|
3116
|
+
*
|
|
3117
|
+
* @description
|
|
3118
|
+
* Sets right styling for the tooltip; auto-positioning on screen size will be ignored.
|
|
3119
|
+
*/
|
|
3120
|
+
right: boolean;
|
|
3121
|
+
get hasCustomToolTipContent(): boolean;
|
|
3122
|
+
get isTooltipValid(): boolean;
|
|
3123
|
+
opacityTimer: any;
|
|
3124
|
+
private hostListenerIgnored;
|
|
3125
|
+
private innerWidth;
|
|
3126
|
+
constructor(deviceHelper: DeviceHelper);
|
|
3127
|
+
onScroll(): void;
|
|
3128
|
+
onClickOutside(event: MouseEvent): void;
|
|
3129
|
+
onResize(): void;
|
|
3130
|
+
ngOnInit(): void;
|
|
3131
|
+
ngAfterViewInit(): void;
|
|
3132
|
+
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
3133
|
+
onHoverTooltip(): void;
|
|
3134
|
+
onHideTooltip(): void;
|
|
3135
|
+
onClickClose(): void;
|
|
3136
|
+
onClickOpenMobileView(): void;
|
|
3137
|
+
private adjustTooltipPosition;
|
|
3138
|
+
private renderViewHostListenerIgnoredOnInit;
|
|
3139
|
+
private hideToolTip;
|
|
3140
|
+
private setToolTipOpacity;
|
|
3141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
3142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "nas-tooltip", never, { "text": { "alias": "text"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "left": { "alias": "left"; "required": false; }; "right": { "alias": "right"; "required": false; }; }, {}, ["tooltipContent"], ["nas-tooltip-content", ":not(nas-tooltip-content)"], false, never>;
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
declare class TooltipModule {
|
|
3146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
3147
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent, typeof TooltipContentComponent], [typeof i2.CommonModule, typeof NasClassModule, typeof IconModule], [typeof TooltipComponent, typeof TooltipContentComponent]>;
|
|
3148
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3141
3151
|
declare class SelectModule {
|
|
3142
3152
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
3143
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof SelectComponent, typeof OptionComponent, typeof
|
|
3153
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof SelectComponent, typeof OptionComponent, typeof OptGroupComponent], [typeof i2.CommonModule, typeof i4$1.ReactiveFormsModule, typeof NasClassModule, typeof IconModule, typeof TooltipModule], [typeof SelectComponent, typeof OptionComponent, typeof OptGroupComponent]>;
|
|
3144
3154
|
static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
|
|
3145
3155
|
}
|
|
3146
3156
|
|
|
@@ -4493,6 +4503,20 @@ declare class FilterComponent extends NasComponentBase implements OnInit, AfterV
|
|
|
4493
4503
|
* Make latest searches and geolocation override default value in the origin airport selector.
|
|
4494
4504
|
*/
|
|
4495
4505
|
overrideOrigin?: boolean;
|
|
4506
|
+
/**
|
|
4507
|
+
* @property Input
|
|
4508
|
+
*
|
|
4509
|
+
* @description
|
|
4510
|
+
* Error state for passenger selection field
|
|
4511
|
+
*/
|
|
4512
|
+
passengerError: boolean;
|
|
4513
|
+
/**
|
|
4514
|
+
* @property Input
|
|
4515
|
+
*
|
|
4516
|
+
* @description
|
|
4517
|
+
* Error message for passenger selection field
|
|
4518
|
+
*/
|
|
4519
|
+
passengerErrorMessage: string;
|
|
4496
4520
|
/**
|
|
4497
4521
|
* @property Input
|
|
4498
4522
|
*
|
|
@@ -4887,7 +4911,7 @@ declare class FilterComponent extends NasComponentBase implements OnInit, AfterV
|
|
|
4887
4911
|
private setLatestSearches;
|
|
4888
4912
|
private closeDropdowns;
|
|
4889
4913
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
4890
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "nas-filter", never, { "airportRelations": { "alias": "airportRelations"; "required": false; }; "airportSelectInboundId": { "alias": "airportSelectInboundId"; "required": false; }; "airportSelectOutboundId": { "alias": "airportSelectOutboundId"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "allowedOriginAirports": { "alias": "allowedOriginAirports"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "datePickerComboInlineFlex": { "alias": "datePickerComboInlineFlex"; "required": false; }; "datePickerInboundId": { "alias": "datePickerInboundId"; "required": false; }; "datePickerOutboundId": { "alias": "datePickerOutboundId"; "required": false; }; "defaultSummarySeparator": { "alias": "defaultSummarySeparator"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "destination2AirportCode": { "alias": "destination2AirportCode"; "required": false; }; "directOnly": { "alias": "directOnly"; "required": false; }; "directOnlyLabel": { "alias": "directOnlyLabel"; "required": false; }; "directOnlyMobileLabel": { "alias": "directOnlyMobileLabel"; "required": false; }; "directTransitLabel": { "alias": "directTransitLabel"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "editSearchTitle": { "alias": "editSearchTitle"; "required": false; }; "enableDatepickers": { "alias": "enableDatepickers"; "required": false; }; "enableDestinationSelect": { "alias": "enableDestinationSelect"; "required": false; }; "enableMultiCity": { "alias": "enableMultiCity"; "required": false; }; "enablePassengersSelect": { "alias": "enablePassengersSelect"; "required": false; }; "enableSuggestions": { "alias": "enableSuggestions"; "required": false; }; "enableTransitSwitch": { "alias": "enableTransitSwitch"; "required": false; }; "enableTripSwitch": { "alias": "enableTripSwitch"; "required": false; }; "expandedAccordionMobile": { "alias": "expandedAccordionMobile"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "groupBookingLabel": { "alias": "groupBookingLabel"; "required": false; }; "groupBookingLimit": { "alias": "groupBookingLimit"; "required": false; }; "inboundAvailableDates": { "alias": "inboundAvailableDates"; "required": false; }; "inboundDisabled": { "alias": "inboundDisabled"; "required": false; }; "inboundLabel": { "alias": "inboundLabel"; "required": false; }; "inboundSelectedDate": { "alias": "inboundSelectedDate"; "required": false; }; "inlineOnDesktop": { "alias": "inlineOnDesktop"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "lastSummarySeparator": { "alias": "lastSummarySeparator"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxPaxCount": { "alias": "maxPaxCount"; "required": false; }; "maximizingLabel": { "alias": "maximizingLabel"; "required": false; }; "minAdultCount": { "alias": "minAdultCount"; "required": false; }; "minimize": { "alias": "minimize"; "required": false; }; "minimizeOnMobile": { "alias": "minimizeOnMobile"; "required": false; }; "minimizingLabel": { "alias": "minimizingLabel"; "required": false; }; "nasFormControlGroupBooking": { "alias": "nasFormControlGroupBooking"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormControlNameDestination2": { "alias": "nasFormControlNameDestination2"; "required": false; }; "nasFormControlNameDirectOnly": { "alias": "nasFormControlNameDirectOnly"; "required": false; }; "nasFormControlNameInbound": { "alias": "nasFormControlNameInbound"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameOrigin2": { "alias": "nasFormControlNameOrigin2"; "required": false; }; "nasFormControlNameOutbound": { "alias": "nasFormControlNameOutbound"; "required": false; }; "nasFormControlNameTripType": { "alias": "nasFormControlNameTripType"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "noAirportsLabel": { "alias": "noAirportsLabel"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "orLabel": { "alias": "orLabel"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "origin2AirportCode": { "alias": "origin2AirportCode"; "required": false; }; "outboundAvailableDates": { "alias": "outboundAvailableDates"; "required": false; }; "outboundDisabled": { "alias": "outboundDisabled"; "required": false; }; "outboundLabel": { "alias": "outboundLabel"; "required": false; }; "outboundSelectedDate": { "alias": "outboundSelectedDate"; "required": false; }; "overrideOrigin": { "alias": "overrideOrigin"; "required": false; }; "passengerSelectAdultsLabel": { "alias": "passengerSelectAdultsLabel"; "required": false; }; "passengerSelectChildrenLabel": { "alias": "passengerSelectChildrenLabel"; "required": false; }; "passengerSelectId": { "alias": "passengerSelectId"; "required": false; }; "passengerSelectInfantsLabel": { "alias": "passengerSelectInfantsLabel"; "required": false; }; "passengerSelectLabel": { "alias": "passengerSelectLabel"; "required": false; }; "passengerSelectTitle": { "alias": "passengerSelectTitle"; "required": false; }; "passengerSelectYoungAdultsLabel": { "alias": "passengerSelectYoungAdultsLabel"; "required": false; }; "passengerSelectYouthsLabel": { "alias": "passengerSelectYouthsLabel"; "required": false; }; "passengers": { "alias": "passengers"; "required": false; }; "passengersTitleLabel": { "alias": "passengersTitleLabel"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "times": { "alias": "times"; "required": false; }; "transitTypeId": { "alias": "transitTypeId"; "required": false; }; "tripSwitchOneWayLabel": { "alias": "tripSwitchOneWayLabel"; "required": false; }; "tripSwitchRoundTripLabel": { "alias": "tripSwitchRoundTripLabel"; "required": false; }; "tripSwitchMultiCityLabel": { "alias": "tripSwitchMultiCityLabel"; "required": false; }; "tripType": { "alias": "tripType"; "required": false; }; "tripTypeId": { "alias": "tripTypeId"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; }, { "destinationChange": "destinationChange"; "destination2Change": "destination2Change"; "destinationOpenChange": "destinationOpenChange"; "destination2OpenChange": "destination2OpenChange"; "directOnlyChange": "directOnlyChange"; "focusOnNextChange": "focusOnNextChange"; "inboundMonthChange": "inboundMonthChange"; "inboundOpenChange": "inboundOpenChange"; "inboundSelectedDateChange": "inboundSelectedDateChange"; "originChange": "originChange"; "origin2Change": "origin2Change"; "originOpenChange": "originOpenChange"; "origin2OpenChange": "origin2OpenChange"; "outboundMonthChange": "outboundMonthChange"; "outboundOpenChange": "outboundOpenChange"; "outboundSelectedDateChange": "outboundSelectedDateChange"; "passengerSelectOpenChange": "passengerSelectOpenChange"; "passengersChange": "passengersChange"; "positionChange": "positionChange"; "tripTypeChange": "tripTypeChange"; }, never, never, false, never>;
|
|
4914
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "nas-filter", never, { "airportRelations": { "alias": "airportRelations"; "required": false; }; "airportSelectInboundId": { "alias": "airportSelectInboundId"; "required": false; }; "airportSelectOutboundId": { "alias": "airportSelectOutboundId"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "allowedOriginAirports": { "alias": "allowedOriginAirports"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "datePickerComboInlineFlex": { "alias": "datePickerComboInlineFlex"; "required": false; }; "datePickerInboundId": { "alias": "datePickerInboundId"; "required": false; }; "datePickerOutboundId": { "alias": "datePickerOutboundId"; "required": false; }; "defaultSummarySeparator": { "alias": "defaultSummarySeparator"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "destination2AirportCode": { "alias": "destination2AirportCode"; "required": false; }; "directOnly": { "alias": "directOnly"; "required": false; }; "directOnlyLabel": { "alias": "directOnlyLabel"; "required": false; }; "directOnlyMobileLabel": { "alias": "directOnlyMobileLabel"; "required": false; }; "directTransitLabel": { "alias": "directTransitLabel"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "editSearchTitle": { "alias": "editSearchTitle"; "required": false; }; "enableDatepickers": { "alias": "enableDatepickers"; "required": false; }; "enableDestinationSelect": { "alias": "enableDestinationSelect"; "required": false; }; "enableMultiCity": { "alias": "enableMultiCity"; "required": false; }; "enablePassengersSelect": { "alias": "enablePassengersSelect"; "required": false; }; "enableSuggestions": { "alias": "enableSuggestions"; "required": false; }; "enableTransitSwitch": { "alias": "enableTransitSwitch"; "required": false; }; "enableTripSwitch": { "alias": "enableTripSwitch"; "required": false; }; "expandedAccordionMobile": { "alias": "expandedAccordionMobile"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "groupBookingLabel": { "alias": "groupBookingLabel"; "required": false; }; "groupBookingLimit": { "alias": "groupBookingLimit"; "required": false; }; "inboundAvailableDates": { "alias": "inboundAvailableDates"; "required": false; }; "inboundDisabled": { "alias": "inboundDisabled"; "required": false; }; "inboundLabel": { "alias": "inboundLabel"; "required": false; }; "inboundSelectedDate": { "alias": "inboundSelectedDate"; "required": false; }; "inlineOnDesktop": { "alias": "inlineOnDesktop"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "lastSummarySeparator": { "alias": "lastSummarySeparator"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxPaxCount": { "alias": "maxPaxCount"; "required": false; }; "maximizingLabel": { "alias": "maximizingLabel"; "required": false; }; "minAdultCount": { "alias": "minAdultCount"; "required": false; }; "minimize": { "alias": "minimize"; "required": false; }; "minimizeOnMobile": { "alias": "minimizeOnMobile"; "required": false; }; "minimizingLabel": { "alias": "minimizingLabel"; "required": false; }; "nasFormControlGroupBooking": { "alias": "nasFormControlGroupBooking"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormControlNameDestination2": { "alias": "nasFormControlNameDestination2"; "required": false; }; "nasFormControlNameDirectOnly": { "alias": "nasFormControlNameDirectOnly"; "required": false; }; "nasFormControlNameInbound": { "alias": "nasFormControlNameInbound"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameOrigin2": { "alias": "nasFormControlNameOrigin2"; "required": false; }; "nasFormControlNameOutbound": { "alias": "nasFormControlNameOutbound"; "required": false; }; "nasFormControlNameTripType": { "alias": "nasFormControlNameTripType"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "noAirportsLabel": { "alias": "noAirportsLabel"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "orLabel": { "alias": "orLabel"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "origin2AirportCode": { "alias": "origin2AirportCode"; "required": false; }; "outboundAvailableDates": { "alias": "outboundAvailableDates"; "required": false; }; "outboundDisabled": { "alias": "outboundDisabled"; "required": false; }; "outboundLabel": { "alias": "outboundLabel"; "required": false; }; "outboundSelectedDate": { "alias": "outboundSelectedDate"; "required": false; }; "overrideOrigin": { "alias": "overrideOrigin"; "required": false; }; "passengerError": { "alias": "passengerError"; "required": false; }; "passengerErrorMessage": { "alias": "passengerErrorMessage"; "required": false; }; "passengerSelectAdultsLabel": { "alias": "passengerSelectAdultsLabel"; "required": false; }; "passengerSelectChildrenLabel": { "alias": "passengerSelectChildrenLabel"; "required": false; }; "passengerSelectId": { "alias": "passengerSelectId"; "required": false; }; "passengerSelectInfantsLabel": { "alias": "passengerSelectInfantsLabel"; "required": false; }; "passengerSelectLabel": { "alias": "passengerSelectLabel"; "required": false; }; "passengerSelectTitle": { "alias": "passengerSelectTitle"; "required": false; }; "passengerSelectYoungAdultsLabel": { "alias": "passengerSelectYoungAdultsLabel"; "required": false; }; "passengerSelectYouthsLabel": { "alias": "passengerSelectYouthsLabel"; "required": false; }; "passengers": { "alias": "passengers"; "required": false; }; "passengersTitleLabel": { "alias": "passengersTitleLabel"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "times": { "alias": "times"; "required": false; }; "transitTypeId": { "alias": "transitTypeId"; "required": false; }; "tripSwitchOneWayLabel": { "alias": "tripSwitchOneWayLabel"; "required": false; }; "tripSwitchRoundTripLabel": { "alias": "tripSwitchRoundTripLabel"; "required": false; }; "tripSwitchMultiCityLabel": { "alias": "tripSwitchMultiCityLabel"; "required": false; }; "tripType": { "alias": "tripType"; "required": false; }; "tripTypeId": { "alias": "tripTypeId"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; }, { "destinationChange": "destinationChange"; "destination2Change": "destination2Change"; "destinationOpenChange": "destinationOpenChange"; "destination2OpenChange": "destination2OpenChange"; "directOnlyChange": "directOnlyChange"; "focusOnNextChange": "focusOnNextChange"; "inboundMonthChange": "inboundMonthChange"; "inboundOpenChange": "inboundOpenChange"; "inboundSelectedDateChange": "inboundSelectedDateChange"; "originChange": "originChange"; "origin2Change": "origin2Change"; "originOpenChange": "originOpenChange"; "origin2OpenChange": "origin2OpenChange"; "outboundMonthChange": "outboundMonthChange"; "outboundOpenChange": "outboundOpenChange"; "outboundSelectedDateChange": "outboundSelectedDateChange"; "passengerSelectOpenChange": "passengerSelectOpenChange"; "passengersChange": "passengersChange"; "positionChange": "positionChange"; "tripTypeChange": "tripTypeChange"; }, never, never, false, never>;
|
|
4891
4915
|
}
|
|
4892
4916
|
|
|
4893
4917
|
declare class PassengerSelectModule {
|
|
@@ -4959,24 +4983,24 @@ declare class FilterModule {
|
|
|
4959
4983
|
}
|
|
4960
4984
|
|
|
4961
4985
|
interface SortOptionModel extends SelectOptionModel {
|
|
4986
|
+
disabled?: boolean;
|
|
4987
|
+
error?: boolean;
|
|
4962
4988
|
nasFormControlName?: string;
|
|
4963
4989
|
nasFormGroup?: string;
|
|
4964
4990
|
required?: boolean;
|
|
4965
4991
|
spaceless?: boolean;
|
|
4966
4992
|
strong?: boolean;
|
|
4967
4993
|
tabIndex?: number;
|
|
4968
|
-
disabled?: boolean;
|
|
4969
|
-
error?: boolean;
|
|
4970
4994
|
}
|
|
4971
4995
|
|
|
4972
4996
|
interface SortModel {
|
|
4973
|
-
label: string;
|
|
4974
|
-
sortOptions: Array<SortOptionModel>;
|
|
4975
4997
|
applyButtonLabel?: string;
|
|
4976
4998
|
closeDropdownOnApplyClick?: boolean;
|
|
4977
4999
|
closeDropdownOnOptionChange?: boolean;
|
|
4978
|
-
|
|
5000
|
+
label: string;
|
|
4979
5001
|
name: string;
|
|
5002
|
+
right?: boolean;
|
|
5003
|
+
sortOptions: Array<SortOptionModel>;
|
|
4980
5004
|
}
|
|
4981
5005
|
|
|
4982
5006
|
/**
|
|
@@ -5185,8 +5209,8 @@ declare class GridModule {
|
|
|
5185
5209
|
}
|
|
5186
5210
|
|
|
5187
5211
|
interface IconListModel {
|
|
5188
|
-
icon: string;
|
|
5189
5212
|
title: string;
|
|
5213
|
+
icon?: string;
|
|
5190
5214
|
description?: string;
|
|
5191
5215
|
link?: string;
|
|
5192
5216
|
class?: string;
|
|
@@ -5774,13 +5798,36 @@ declare class PageFooterModule {
|
|
|
5774
5798
|
static ɵinj: i0.ɵɵInjectorDeclaration<PageFooterModule>;
|
|
5775
5799
|
}
|
|
5776
5800
|
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5801
|
+
interface TextModel {
|
|
5802
|
+
title?: string;
|
|
5803
|
+
rewardNumberTitle?: string;
|
|
5804
|
+
notAvailableTitle?: string;
|
|
5805
|
+
notAvailableMessage?: string;
|
|
5806
|
+
cashPointsDescription?: string;
|
|
5807
|
+
spennDescription?: string;
|
|
5808
|
+
}
|
|
5781
5809
|
|
|
5782
|
-
|
|
5783
|
-
|
|
5810
|
+
interface UrlModel {
|
|
5811
|
+
myTravelsUrl?: LinkModel;
|
|
5812
|
+
signOutUrl?: LinkModel;
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
interface WalletModel {
|
|
5816
|
+
spennBalance?: number;
|
|
5817
|
+
cashpointsBalance?: number;
|
|
5818
|
+
rewardNumber?: string;
|
|
5819
|
+
spennEnabled?: boolean;
|
|
5820
|
+
urls?: UrlModel;
|
|
5821
|
+
texts?: TextModel;
|
|
5822
|
+
}
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* @license
|
|
5826
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
5827
|
+
*/
|
|
5828
|
+
|
|
5829
|
+
declare class SearchComponent extends NasComponentBase {
|
|
5830
|
+
/**
|
|
5784
5831
|
*
|
|
5785
5832
|
* Sets the search label for the search form. Default value is "Search"
|
|
5786
5833
|
*/
|
|
@@ -5810,25 +5857,32 @@ declare class HamburgerComponent extends NasComponentBase {
|
|
|
5810
5857
|
static ɵcmp: i0.ɵɵComponentDeclaration<HamburgerComponent, "nas-hamburger", never, { "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, never, false, never>;
|
|
5811
5858
|
}
|
|
5812
5859
|
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5860
|
+
/**
|
|
5861
|
+
* @license
|
|
5862
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
5863
|
+
*/
|
|
5864
|
+
|
|
5865
|
+
declare class WalletComponent extends NasComponentBase implements AfterViewInit {
|
|
5866
|
+
private cdr;
|
|
5867
|
+
/**
|
|
5868
|
+
* @property Input
|
|
5869
|
+
*
|
|
5870
|
+
* Model to define the wallet in the header
|
|
5871
|
+
*/
|
|
5872
|
+
walletModel: WalletModel;
|
|
5873
|
+
showContent: boolean;
|
|
5874
|
+
get pointsBalance(): number;
|
|
5875
|
+
get showNotAvailableMessage(): boolean;
|
|
5876
|
+
get spennAndCashpointUnavailable(): boolean;
|
|
5877
|
+
get pointsDescription(): string;
|
|
5878
|
+
get icon(): string;
|
|
5879
|
+
constructor(cdr: ChangeDetectorRef);
|
|
5880
|
+
ngAfterViewInit(): void;
|
|
5881
|
+
onClickToggleContent(): void;
|
|
5882
|
+
getCurrentHref(): string;
|
|
5883
|
+
myTravelsPage(): boolean;
|
|
5884
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WalletComponent, never>;
|
|
5885
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WalletComponent, "nas-wallet", never, { "walletModel": { "alias": "walletModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
5832
5886
|
}
|
|
5833
5887
|
|
|
5834
5888
|
/**
|
|
@@ -5921,13 +5975,6 @@ declare class PageHeaderComponent extends NasComponentBase implements OnDestroy,
|
|
|
5921
5975
|
* Link to profile.
|
|
5922
5976
|
*/
|
|
5923
5977
|
profileLink: IconListModel;
|
|
5924
|
-
/**
|
|
5925
|
-
* @property Input
|
|
5926
|
-
*
|
|
5927
|
-
* @description
|
|
5928
|
-
* Will display the Norwegian Reward logo, set this to true to display it. It's false by default.
|
|
5929
|
-
*/
|
|
5930
|
-
reward: boolean;
|
|
5931
5978
|
/**
|
|
5932
5979
|
* @property Input
|
|
5933
5980
|
*
|
|
@@ -5969,34 +6016,7 @@ declare class PageHeaderComponent extends NasComponentBase implements OnDestroy,
|
|
|
5969
6016
|
redirectToUrl(): string;
|
|
5970
6017
|
setBrandingCSSClass(): "disable-link" | "branding";
|
|
5971
6018
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
5972
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "nas-page-header", never, { "closeText": { "alias": "closeText"; "required": false; }; "disableFrontPageUrl": { "alias": "disableFrontPageUrl"; "required": false; }; "displayProfile": { "alias": "displayProfile"; "required": false; }; "frontPageUrl": { "alias": "frontPageUrl"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "links": { "alias": "links"; "required": false; }; "logOutLink": { "alias": "logOutLink"; "required": false; }; "menuText": { "alias": "menuText"; "required": false; }; "nozindex": { "alias": "nozindex"; "required": false; }; "profileLink": { "alias": "profileLink"; "required": false; }; "
|
|
5973
|
-
}
|
|
5974
|
-
|
|
5975
|
-
/**
|
|
5976
|
-
* @license
|
|
5977
|
-
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
5978
|
-
*/
|
|
5979
|
-
|
|
5980
|
-
declare class WalletComponent extends NasComponentBase {
|
|
5981
|
-
private cdr;
|
|
5982
|
-
/**
|
|
5983
|
-
* @property Input
|
|
5984
|
-
*
|
|
5985
|
-
* Model to define the wallet in the header
|
|
5986
|
-
*/
|
|
5987
|
-
walletModel: WalletModel;
|
|
5988
|
-
showContent: boolean;
|
|
5989
|
-
get pointsBalance(): number;
|
|
5990
|
-
get showNotAvailableMessage(): boolean;
|
|
5991
|
-
get spennAndCashpointUnavailable(): boolean;
|
|
5992
|
-
get pointsDescription(): string;
|
|
5993
|
-
get icon(): string;
|
|
5994
|
-
constructor(cdr: ChangeDetectorRef);
|
|
5995
|
-
onClickToggleContent(): void;
|
|
5996
|
-
getCurrentHref(): string;
|
|
5997
|
-
myTravelsPage(): boolean;
|
|
5998
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WalletComponent, never>;
|
|
5999
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WalletComponent, "nas-wallet", never, { "walletModel": { "alias": "walletModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
6019
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "nas-page-header", never, { "closeText": { "alias": "closeText"; "required": false; }; "disableFrontPageUrl": { "alias": "disableFrontPageUrl"; "required": false; }; "displayProfile": { "alias": "displayProfile"; "required": false; }; "frontPageUrl": { "alias": "frontPageUrl"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "links": { "alias": "links"; "required": false; }; "logOutLink": { "alias": "logOutLink"; "required": false; }; "menuText": { "alias": "menuText"; "required": false; }; "nozindex": { "alias": "nozindex"; "required": false; }; "profileLink": { "alias": "profileLink"; "required": false; }; "searchForm": { "alias": "searchForm"; "required": false; }; "searchText": { "alias": "searchText"; "required": false; }; "useRouterLink": { "alias": "useRouterLink"; "required": false; }; "walletModel": { "alias": "walletModel"; "required": false; }; }, { "openChange": "openChange"; }, never, ["*"], false, never>;
|
|
6000
6020
|
}
|
|
6001
6021
|
|
|
6002
6022
|
/**
|
|
@@ -6345,6 +6365,26 @@ declare class ToggleComponent extends NasComponentBase implements OnInit {
|
|
|
6345
6365
|
* @property Input
|
|
6346
6366
|
*
|
|
6347
6367
|
* @description
|
|
6368
|
+
* Set light version of tab styling for toggle
|
|
6369
|
+
* @example
|
|
6370
|
+
* <nas-toggle tab light></nas-toggle>
|
|
6371
|
+
* or
|
|
6372
|
+
* <nas-toggle [tab]="true" [light]="true"></nas-toggle>
|
|
6373
|
+
*/
|
|
6374
|
+
light?: boolean;
|
|
6375
|
+
/**
|
|
6376
|
+
* @property Input
|
|
6377
|
+
* @description
|
|
6378
|
+
* Set tab styling for toggle
|
|
6379
|
+
* @example
|
|
6380
|
+
* <nas-toggle tab></nas-toggle>
|
|
6381
|
+
* or
|
|
6382
|
+
* <nas-toggle [tab]="true"></nas-toggle>
|
|
6383
|
+
*/
|
|
6384
|
+
tab?: boolean;
|
|
6385
|
+
/**
|
|
6386
|
+
* @property Input
|
|
6387
|
+
* @description
|
|
6348
6388
|
* Set vertical styling.
|
|
6349
6389
|
* @example
|
|
6350
6390
|
* <nas-toggle vertical></nas-toggle>
|
|
@@ -6456,7 +6496,7 @@ declare class ToggleComponent extends NasComponentBase implements OnInit {
|
|
|
6456
6496
|
mainClasses(): _norwegian_core_components.ClassModel;
|
|
6457
6497
|
onClickHref(event: MouseEvent, option: OptionModel): void;
|
|
6458
6498
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
6459
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "nas-toggle", never, { "options": { "alias": "options"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "group": { "alias": "group"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "large": { "alias": "large"; "required": false; }; "small": { "alias": "small"; "required": false; }; "big": { "alias": "big"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; }, { "handleChange": "handleChange"; }, never, never, false, never>;
|
|
6499
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "nas-toggle", never, { "options": { "alias": "options"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "light": { "alias": "light"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "group": { "alias": "group"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "large": { "alias": "large"; "required": false; }; "small": { "alias": "small"; "required": false; }; "big": { "alias": "big"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; }, { "handleChange": "handleChange"; }, never, never, false, never>;
|
|
6460
6500
|
}
|
|
6461
6501
|
|
|
6462
6502
|
declare class ToggleModule {
|
|
@@ -6471,289 +6511,6 @@ declare class PremiumToggleModule {
|
|
|
6471
6511
|
static ɵinj: i0.ɵɵInjectorDeclaration<PremiumToggleModule>;
|
|
6472
6512
|
}
|
|
6473
6513
|
|
|
6474
|
-
interface SelectOptionNewModel {
|
|
6475
|
-
value: string;
|
|
6476
|
-
label: string;
|
|
6477
|
-
displayValue?: string;
|
|
6478
|
-
icon?: string;
|
|
6479
|
-
}
|
|
6480
|
-
|
|
6481
|
-
declare class SelectNewService {
|
|
6482
|
-
private _selected$;
|
|
6483
|
-
selected$: rxjs.Observable<string>;
|
|
6484
|
-
select(value: string): void;
|
|
6485
|
-
getIconName(value: string): string;
|
|
6486
|
-
getIconType(value: string): string;
|
|
6487
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectNewService, never>;
|
|
6488
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SelectNewService>;
|
|
6489
|
-
}
|
|
6490
|
-
|
|
6491
|
-
declare class OptionNewComponent extends NasComponentBase {
|
|
6492
|
-
private selectService;
|
|
6493
|
-
displayValue: string;
|
|
6494
|
-
icon: string;
|
|
6495
|
-
label: string;
|
|
6496
|
-
value: string;
|
|
6497
|
-
constructor(selectService: SelectNewService);
|
|
6498
|
-
onSelect(value: string): void;
|
|
6499
|
-
getIconName(value: string): string;
|
|
6500
|
-
getIconType(value: string): string;
|
|
6501
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionNewComponent, never>;
|
|
6502
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionNewComponent, "nas-option-new", never, { "displayValue": { "alias": "displayValue"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
6503
|
-
}
|
|
6504
|
-
|
|
6505
|
-
/**
|
|
6506
|
-
* @license
|
|
6507
|
-
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
6508
|
-
*/
|
|
6509
|
-
|
|
6510
|
-
/**
|
|
6511
|
-
* @description
|
|
6512
|
-
* Norwegian Select Component | Form Controls | New design
|
|
6513
|
-
*/
|
|
6514
|
-
declare class SelectNewComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
6515
|
-
private selectService;
|
|
6516
|
-
selectBoxElement: ElementRef;
|
|
6517
|
-
optionsComponent: QueryList<OptionNewComponent>;
|
|
6518
|
-
/**
|
|
6519
|
-
* @property Input
|
|
6520
|
-
*
|
|
6521
|
-
* @description
|
|
6522
|
-
* Makes the select component autogrow.
|
|
6523
|
-
*/
|
|
6524
|
-
autogrow?: boolean;
|
|
6525
|
-
/**
|
|
6526
|
-
* @property Input
|
|
6527
|
-
*
|
|
6528
|
-
* @description
|
|
6529
|
-
* Sets compact styling. Slighty smaller then regular select box.
|
|
6530
|
-
*/
|
|
6531
|
-
compact?: boolean;
|
|
6532
|
-
/**
|
|
6533
|
-
* @property Input
|
|
6534
|
-
*
|
|
6535
|
-
* @description
|
|
6536
|
-
* Sets disabled styling.
|
|
6537
|
-
*/
|
|
6538
|
-
disabled?: boolean;
|
|
6539
|
-
/**
|
|
6540
|
-
* @property Input
|
|
6541
|
-
*
|
|
6542
|
-
* @description
|
|
6543
|
-
* Sets error styling.
|
|
6544
|
-
*/
|
|
6545
|
-
error?: boolean;
|
|
6546
|
-
/**
|
|
6547
|
-
* @property Input
|
|
6548
|
-
*
|
|
6549
|
-
* @description
|
|
6550
|
-
* The error message to display when error occur. Error attribute need to be true.
|
|
6551
|
-
*/
|
|
6552
|
-
errorMessage?: string;
|
|
6553
|
-
/**
|
|
6554
|
-
* @property Input
|
|
6555
|
-
*
|
|
6556
|
-
* @description
|
|
6557
|
-
* The ID of the native input element
|
|
6558
|
-
*/
|
|
6559
|
-
id: string;
|
|
6560
|
-
/**
|
|
6561
|
-
* @property Input
|
|
6562
|
-
*
|
|
6563
|
-
* @description
|
|
6564
|
-
* Sets information text to the tooltip. Info icon will be displayed between label text.
|
|
6565
|
-
*/
|
|
6566
|
-
infoText?: string;
|
|
6567
|
-
/**
|
|
6568
|
-
* @property Input
|
|
6569
|
-
*
|
|
6570
|
-
* @description
|
|
6571
|
-
* Sets inline styling. Possible to be used in sentences.
|
|
6572
|
-
*/
|
|
6573
|
-
inline?: boolean;
|
|
6574
|
-
/**
|
|
6575
|
-
* @property Input
|
|
6576
|
-
*
|
|
6577
|
-
* @description
|
|
6578
|
-
* Sets the label to the select box.
|
|
6579
|
-
*/
|
|
6580
|
-
label?: string;
|
|
6581
|
-
/**
|
|
6582
|
-
* @property Input
|
|
6583
|
-
*
|
|
6584
|
-
* @description
|
|
6585
|
-
* Sets a formControlName directive to the select.
|
|
6586
|
-
*/
|
|
6587
|
-
nasFormControlName: string;
|
|
6588
|
-
/**
|
|
6589
|
-
* @property Input
|
|
6590
|
-
*
|
|
6591
|
-
* @description
|
|
6592
|
-
* Adds the parent's form group.
|
|
6593
|
-
*/
|
|
6594
|
-
nasFormGroup: FormGroup;
|
|
6595
|
-
/**
|
|
6596
|
-
* @property Input
|
|
6597
|
-
*
|
|
6598
|
-
* @description
|
|
6599
|
-
* Add options to the selector.
|
|
6600
|
-
*/
|
|
6601
|
-
get options(): Array<SelectOptionNewModel>;
|
|
6602
|
-
set options(value: Array<SelectOptionNewModel>);
|
|
6603
|
-
/**
|
|
6604
|
-
* @property Input
|
|
6605
|
-
*
|
|
6606
|
-
* @description
|
|
6607
|
-
* Presenting value instead of title in the select box.
|
|
6608
|
-
*/
|
|
6609
|
-
presentValue?: boolean;
|
|
6610
|
-
/**
|
|
6611
|
-
* @property Input
|
|
6612
|
-
*
|
|
6613
|
-
* @description
|
|
6614
|
-
* Set selected value from option.
|
|
6615
|
-
*/
|
|
6616
|
-
get selected(): SelectOptionNewModel;
|
|
6617
|
-
set selected(option: SelectOptionNewModel);
|
|
6618
|
-
/**
|
|
6619
|
-
* @property Input
|
|
6620
|
-
*
|
|
6621
|
-
* @description
|
|
6622
|
-
* Sets simple styling. Border and background color stylings are removed.
|
|
6623
|
-
*/
|
|
6624
|
-
simple?: boolean;
|
|
6625
|
-
/**
|
|
6626
|
-
* @property Input
|
|
6627
|
-
*
|
|
6628
|
-
* @description
|
|
6629
|
-
* Sets spaceless styling. Removes margins for the select box.
|
|
6630
|
-
*/
|
|
6631
|
-
spaceless?: boolean;
|
|
6632
|
-
/**
|
|
6633
|
-
* @property Input
|
|
6634
|
-
*
|
|
6635
|
-
* @description
|
|
6636
|
-
* Sets stretched styling.
|
|
6637
|
-
*/
|
|
6638
|
-
stretched?: boolean;
|
|
6639
|
-
/**
|
|
6640
|
-
* @property Output
|
|
6641
|
-
*
|
|
6642
|
-
* @description
|
|
6643
|
-
* An event that is fired every time a selection is done.
|
|
6644
|
-
*/
|
|
6645
|
-
selectedChange: EventEmitter<SelectOptionNewModel>;
|
|
6646
|
-
get modifiers(): Array<string>;
|
|
6647
|
-
get selectControl(): AbstractControl;
|
|
6648
|
-
get selectId(): string;
|
|
6649
|
-
get selectedLabel(): string;
|
|
6650
|
-
open: boolean;
|
|
6651
|
-
hasContent: boolean;
|
|
6652
|
-
optionsValue: Array<SelectOptionNewModel>;
|
|
6653
|
-
selectedValue: SelectOptionNewModel;
|
|
6654
|
-
private componentId;
|
|
6655
|
-
private activeIndex;
|
|
6656
|
-
private NAS_OPTION_TAG;
|
|
6657
|
-
constructor(selectService: SelectNewService);
|
|
6658
|
-
clickOutside(event: MouseEvent): void;
|
|
6659
|
-
onKeydown(event: KeyboardEvent): void;
|
|
6660
|
-
ngOnInit(): void;
|
|
6661
|
-
ngAfterViewInit(): void;
|
|
6662
|
-
onOpen(): void;
|
|
6663
|
-
getIconName(value: string): string;
|
|
6664
|
-
getIconType(value: string): string;
|
|
6665
|
-
private setSelected;
|
|
6666
|
-
private setOptionsFromContent;
|
|
6667
|
-
private selectKeyDown;
|
|
6668
|
-
private updateActiveOption;
|
|
6669
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectNewComponent, never>;
|
|
6670
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectNewComponent, "nas-select-new", never, { "autogrow": { "alias": "autogrow"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "id": { "alias": "id"; "required": false; }; "infoText": { "alias": "infoText"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "label": { "alias": "label"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "options": { "alias": "options"; "required": false; }; "presentValue": { "alias": "presentValue"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "stretched": { "alias": "stretched"; "required": false; }; }, { "selectedChange": "selectedChange"; }, ["optionsComponent"], ["*"], false, never>;
|
|
6671
|
-
}
|
|
6672
|
-
|
|
6673
|
-
declare class OptGroupNewComponent extends NasComponentBase {
|
|
6674
|
-
label: string;
|
|
6675
|
-
constructor();
|
|
6676
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptGroupNewComponent, never>;
|
|
6677
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptGroupNewComponent, "nas-optgroup-new", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
6678
|
-
}
|
|
6679
|
-
|
|
6680
|
-
/**
|
|
6681
|
-
* @license
|
|
6682
|
-
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
6683
|
-
*/
|
|
6684
|
-
|
|
6685
|
-
/**
|
|
6686
|
-
*
|
|
6687
|
-
* @description
|
|
6688
|
-
* Norwegian Tooltip Component | Functional | Beta
|
|
6689
|
-
*/
|
|
6690
|
-
declare class TooltipComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
6691
|
-
private deviceHelper;
|
|
6692
|
-
container: ElementRef;
|
|
6693
|
-
content: ElementRef;
|
|
6694
|
-
tooltip: ElementRef;
|
|
6695
|
-
/**
|
|
6696
|
-
* @property Input
|
|
6697
|
-
*
|
|
6698
|
-
* @description
|
|
6699
|
-
* Sets text on the tooltip.
|
|
6700
|
-
*/
|
|
6701
|
-
text: string;
|
|
6702
|
-
/**
|
|
6703
|
-
* @property Input
|
|
6704
|
-
*
|
|
6705
|
-
* @description
|
|
6706
|
-
* Displays the tooltip; hover listener will be ignored.
|
|
6707
|
-
*/
|
|
6708
|
-
enabled: boolean;
|
|
6709
|
-
/**
|
|
6710
|
-
* @property Input
|
|
6711
|
-
*
|
|
6712
|
-
* @description
|
|
6713
|
-
* Sets left styling for the tooltip; auto-positioning on screen size will be ignored.
|
|
6714
|
-
*/
|
|
6715
|
-
left: boolean;
|
|
6716
|
-
/**
|
|
6717
|
-
* @property Input
|
|
6718
|
-
*
|
|
6719
|
-
* @description
|
|
6720
|
-
* Sets right styling for the tooltip; auto-positioning on screen size will be ignored.
|
|
6721
|
-
*/
|
|
6722
|
-
right: boolean;
|
|
6723
|
-
opacityTimer: any;
|
|
6724
|
-
private hostListenerIgnored;
|
|
6725
|
-
private innerWidth;
|
|
6726
|
-
constructor(deviceHelper: DeviceHelper);
|
|
6727
|
-
onMouseEnter(): void;
|
|
6728
|
-
onMouseLeave(): void;
|
|
6729
|
-
onScroll(): void;
|
|
6730
|
-
onClickOutside(event: MouseEvent): void;
|
|
6731
|
-
onResize(): void;
|
|
6732
|
-
ngOnInit(): void;
|
|
6733
|
-
ngAfterViewInit(): void;
|
|
6734
|
-
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
6735
|
-
onClickClose(): void;
|
|
6736
|
-
onClickOpenMobileView(): void;
|
|
6737
|
-
private adjustTooltipPosition;
|
|
6738
|
-
private renderViewHostListenerIgnoredOnInit;
|
|
6739
|
-
private hideToolTip;
|
|
6740
|
-
private setToolTipOpacity;
|
|
6741
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
6742
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "nas-tooltip", never, { "text": { "alias": "text"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "left": { "alias": "left"; "required": false; }; "right": { "alias": "right"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
6743
|
-
}
|
|
6744
|
-
|
|
6745
|
-
declare class TooltipModule {
|
|
6746
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
6747
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent], [typeof i2.CommonModule, typeof NasClassModule, typeof IconModule], [typeof TooltipComponent]>;
|
|
6748
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
6749
|
-
}
|
|
6750
|
-
|
|
6751
|
-
declare class SelectNewModule {
|
|
6752
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectNewModule, never>;
|
|
6753
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectNewModule, [typeof SelectNewComponent, typeof OptionNewComponent, typeof OptGroupNewComponent], [typeof i2.CommonModule, typeof i4$1.ReactiveFormsModule, typeof NasClassModule, typeof IconModule, typeof TooltipModule], [typeof SelectNewComponent, typeof OptionNewComponent, typeof OptGroupNewComponent]>;
|
|
6754
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SelectNewModule>;
|
|
6755
|
-
}
|
|
6756
|
-
|
|
6757
6514
|
interface StatusBoxModel {
|
|
6758
6515
|
title?: string;
|
|
6759
6516
|
text?: string;
|
|
@@ -8113,6 +7870,13 @@ declare class PhoneNumberComponent extends NasComponentBase implements OnInit, A
|
|
|
8113
7870
|
* Label for preferred options (used when preferredOptions are used).
|
|
8114
7871
|
*/
|
|
8115
7872
|
preferredOptionsLabel: string;
|
|
7873
|
+
/**
|
|
7874
|
+
* @property Input
|
|
7875
|
+
*
|
|
7876
|
+
* @description
|
|
7877
|
+
* Presenting label instead of value in the select box.
|
|
7878
|
+
*/
|
|
7879
|
+
disablePresentValue: boolean;
|
|
8116
7880
|
/**
|
|
8117
7881
|
* @property Input
|
|
8118
7882
|
*
|
|
@@ -8197,7 +7961,7 @@ declare class PhoneNumberComponent extends NasComponentBase implements OnInit, A
|
|
|
8197
7961
|
mainClass(): ClassModel;
|
|
8198
7962
|
setActiveOnFocus(active: boolean): void;
|
|
8199
7963
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberComponent, never>;
|
|
8200
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneNumberComponent, "nas-phone-number", never, { "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "error": { "alias": "error"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "info": { "alias": "info"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "model": { "alias": "model"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionsLabel": { "alias": "optionsLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "prefixCountryCode": { "alias": "prefixCountryCode"; "required": false; }; "preferredOptions": { "alias": "preferredOptions"; "required": false; }; "preferredOptionsLabel": { "alias": "preferredOptionsLabel"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormControlNamePrefix": { "alias": "nasFormControlNamePrefix"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "modelChange": "modelChange"; "selectedChange": "selectedChange"; }, never, never, false, never>;
|
|
7964
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneNumberComponent, "nas-phone-number", never, { "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "error": { "alias": "error"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "info": { "alias": "info"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "model": { "alias": "model"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionsLabel": { "alias": "optionsLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "prefixCountryCode": { "alias": "prefixCountryCode"; "required": false; }; "preferredOptions": { "alias": "preferredOptions"; "required": false; }; "preferredOptionsLabel": { "alias": "preferredOptionsLabel"; "required": false; }; "disablePresentValue": { "alias": "disablePresentValue"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormControlNamePrefix": { "alias": "nasFormControlNamePrefix"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "modelChange": "modelChange"; "selectedChange": "selectedChange"; }, never, never, false, never>;
|
|
8201
7965
|
}
|
|
8202
7966
|
|
|
8203
7967
|
declare class PhoneNumberModule {
|
|
@@ -9445,5 +9209,5 @@ declare class GetPositionService {
|
|
|
9445
9209
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetPositionService>;
|
|
9446
9210
|
}
|
|
9447
9211
|
|
|
9448
|
-
export { AbandonedBasketService, AccordionComponent, AccordionModule, AirportSelectComponent, AirportSelectModule, AlertComponent, AlertModule, AnimateHelper, AutocompleteComponent, AutocompleteModule, AvailabilitySortOption, BackdropComponent, BackdropModule, BemHelper, BoxComponent, BoxModule, ButtonComponent, ButtonModule, CalendarComponent, CheckboxComponent, CheckboxModule, ColComponent, ColumnComponent, ColumnGroupComponent, ContainerComponent, ContainerModule, ContinueComponent, ContinueModule, CoverComponent, CoverModule, DateHelper, DatepickerComboComponent, DatepickerComboModule, DatepickerComponent, DatepickerModule, DeviceHelper, DividerComponent, DividerModule, DropdownComponent, DropdownModule, FilterComponent, FilterModule, GeolocationService, GetPositionService, GridComponent, GridModule, HamburgerComponent, IconComponent, IconListComponent, IconListModule, IconModule, InputComponent, InputModule, JourneyAvailabilityComponent, JourneyAvailabilityListComponent, JourneyAvailabilityListModule, JourneyAvailabilityModule, JourneyComponent, JourneyModule, JourneySelectionComponent, JourneySelectionModule, JourneyStopoverComponent, JourneyStopoverModule, LanguageHelper, ListComponent, ListItemComponent, ListModule, MarketingCarrier, MicroButtonComponent, MicroButtonModule, ModalComponent, ModalModule, NasClassDirective, NasClassModule, NasComponentBase, NumberFieldComponent, NumberFieldModule,
|
|
9449
|
-
export type { AbandonedBasketItemModel, AirportModel, AirportSelectEventModel, AirportSelectStateModel, Animate, AutocompleteModel, CalendarDateModel, CalendarModel, ClassModel, DayModel, IconListModel, InfoModel, JourneyAvailabilityModel, JourneyAvailabilitySortModel, JourneyDetailsModel, JourneyDurationModel, JourneyFlightModel, JourneyModel, JourneySelectionCollapsedModel, JourneySelectionCommonModel, JourneySelectionExpandedModel, JourneySelectionModel, JourneyStopoverModel, JourneyTransitInfo, LinkModel, NumberFieldModel, OperatingCarriersModel, PassengersModel, Position, PositionModel,
|
|
9212
|
+
export { AbandonedBasketService, AccordionComponent, AccordionModule, AirportSelectComponent, AirportSelectModule, AlertComponent, AlertModule, AnimateHelper, AutocompleteComponent, AutocompleteModule, AvailabilitySortOption, BackdropComponent, BackdropModule, BemHelper, BoxComponent, BoxModule, ButtonComponent, ButtonModule, CalendarComponent, CheckboxComponent, CheckboxModule, ColComponent, ColumnComponent, ColumnGroupComponent, ContainerComponent, ContainerModule, ContinueComponent, ContinueModule, CoverComponent, CoverModule, DateHelper, DatepickerComboComponent, DatepickerComboModule, DatepickerComponent, DatepickerModule, DeviceHelper, DividerComponent, DividerModule, DropdownComponent, DropdownModule, FilterComponent, FilterModule, GeolocationService, GetPositionService, GridComponent, GridModule, HamburgerComponent, IconComponent, IconListComponent, IconListModule, IconModule, InputComponent, InputModule, JourneyAvailabilityComponent, JourneyAvailabilityListComponent, JourneyAvailabilityListModule, JourneyAvailabilityModule, JourneyComponent, JourneyModule, JourneySelectionComponent, JourneySelectionModule, JourneyStopoverComponent, JourneyStopoverModule, LanguageHelper, ListComponent, ListItemComponent, ListModule, MarketingCarrier, MicroButtonComponent, MicroButtonModule, ModalComponent, ModalModule, NasClassDirective, NasClassModule, NasComponentBase, NumberFieldComponent, NumberFieldModule, OptGroupComponent, OptionComponent, OptionModel, PageFooterComponent, PageFooterModule, PageHeaderComponent, PageHeaderModule, PassengerSelectComponent, PassengerSelectModule, PassengerType, PhoneNumberComponent, PhoneNumberModule, PremiumToggleComponent, PremiumToggleModule, RadioComponent, RadioModule, ResultsLabelsModel, RibbonBannerComponent, RibbonBannerModule, SearchComponent, SelectComponent, SelectModule, SimpleListComponent, SimpleListModule, SlideToggleComponent, SlideToggleModule, SliderComponent, SliderModule, SortComponent, SortModule, SortService, SpinnerComponent, SpinnerModule, StatusBoxComponent, StatusBoxModule, SuggestionsComponent, SuggestionsModule, TabComponent, TabGroupComponent, TabGroupModule, TableBodyComponent, TableComponent, TableDataComponent, TableFootComponent, TableHeadComponent, TableHeaderComponent, TableModule, TableRowComponent, TagComponent, TagModule, TextareaComponent, TextareaModule, ToggleComponent, ToggleModule, TooltipComponent, TooltipContentComponent, TooltipModule, TripSummaryComponent, TripSummaryModule, TripType, UtcDate, ViewPortService, WalletComponent, WeekStart, bannerAnimation };
|
|
9213
|
+
export type { AbandonedBasketItemModel, AirportModel, AirportSelectEventModel, AirportSelectStateModel, Animate, AutocompleteModel, CalendarDateModel, CalendarModel, ClassModel, DayModel, IconListModel, InfoModel, JourneyAvailabilityModel, JourneyAvailabilitySortModel, JourneyDetailsModel, JourneyDurationModel, JourneyFlightModel, JourneyModel, JourneySelectionCollapsedModel, JourneySelectionCommonModel, JourneySelectionExpandedModel, JourneySelectionModel, JourneyStopoverModel, JourneyTransitInfo, LinkModel, NumberFieldModel, OperatingCarriersModel, PassengersModel, Position, PositionModel, SortModel, SortOptionModel, StatusBoxModel, StopoverTimeModel, TextModel, TripSummaryModel, UrlModel, WalletModel, WeekModel };
|