@norwegian/core-components 8.0.1 → 8.0.2
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/fesm2022/norwegian-core-components.mjs +939 -1381
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/index.d.ts +216 -502
- package/package.json +1 -1
- package/styles/2__generic/_fonts.scss +1 -1
- package/assets/documentation/select-new/select-new.md +0 -0
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,87 @@ 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
|
+
/**
|
|
3072
|
+
* @license
|
|
3073
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
3074
|
+
*/
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
*
|
|
3078
|
+
* @description
|
|
3079
|
+
* Norwegian Tooltip Component | Functional | Beta
|
|
3080
|
+
*/
|
|
3081
|
+
declare class TooltipComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
3082
|
+
private deviceHelper;
|
|
3083
|
+
container: ElementRef;
|
|
3084
|
+
content: ElementRef;
|
|
3085
|
+
tooltip: ElementRef;
|
|
3086
|
+
/**
|
|
3087
|
+
* @property Input
|
|
3088
|
+
*
|
|
3089
|
+
* @description
|
|
3090
|
+
* Sets text on the tooltip.
|
|
3091
|
+
*/
|
|
3092
|
+
text: string;
|
|
3093
|
+
/**
|
|
3094
|
+
* @property Input
|
|
3095
|
+
*
|
|
3096
|
+
* @description
|
|
3097
|
+
* Displays the tooltip; hover listener will be ignored.
|
|
3098
|
+
*/
|
|
3099
|
+
enabled: boolean;
|
|
3100
|
+
/**
|
|
3101
|
+
* @property Input
|
|
3102
|
+
*
|
|
3103
|
+
* @description
|
|
3104
|
+
* Sets left styling for the tooltip; auto-positioning on screen size will be ignored.
|
|
3105
|
+
*/
|
|
3106
|
+
left: boolean;
|
|
3107
|
+
/**
|
|
3108
|
+
* @property Input
|
|
3109
|
+
*
|
|
3110
|
+
* @description
|
|
3111
|
+
* Sets right styling for the tooltip; auto-positioning on screen size will be ignored.
|
|
3112
|
+
*/
|
|
3113
|
+
right: boolean;
|
|
3114
|
+
opacityTimer: any;
|
|
3115
|
+
private hostListenerIgnored;
|
|
3116
|
+
private innerWidth;
|
|
3117
|
+
constructor(deviceHelper: DeviceHelper);
|
|
3118
|
+
onMouseEnter(): void;
|
|
3119
|
+
onMouseLeave(): void;
|
|
3120
|
+
onScroll(): void;
|
|
3121
|
+
onClickOutside(event: MouseEvent): void;
|
|
3122
|
+
onResize(): void;
|
|
3123
|
+
ngOnInit(): void;
|
|
3124
|
+
ngAfterViewInit(): void;
|
|
3125
|
+
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
3126
|
+
onClickClose(): void;
|
|
3127
|
+
onClickOpenMobileView(): void;
|
|
3128
|
+
private adjustTooltipPosition;
|
|
3129
|
+
private renderViewHostListenerIgnoredOnInit;
|
|
3130
|
+
private hideToolTip;
|
|
3131
|
+
private setToolTipOpacity;
|
|
3132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
3133
|
+
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>;
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
declare class TooltipModule {
|
|
3137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
3138
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent], [typeof i2.CommonModule, typeof NasClassModule, typeof IconModule], [typeof TooltipComponent]>;
|
|
3139
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3141
3142
|
declare class SelectModule {
|
|
3142
3143
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
3143
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof SelectComponent, typeof OptionComponent, typeof
|
|
3144
|
+
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
3145
|
static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
|
|
3145
3146
|
}
|
|
3146
3147
|
|
|
@@ -4959,24 +4960,24 @@ declare class FilterModule {
|
|
|
4959
4960
|
}
|
|
4960
4961
|
|
|
4961
4962
|
interface SortOptionModel extends SelectOptionModel {
|
|
4963
|
+
disabled?: boolean;
|
|
4964
|
+
error?: boolean;
|
|
4962
4965
|
nasFormControlName?: string;
|
|
4963
4966
|
nasFormGroup?: string;
|
|
4964
4967
|
required?: boolean;
|
|
4965
4968
|
spaceless?: boolean;
|
|
4966
4969
|
strong?: boolean;
|
|
4967
4970
|
tabIndex?: number;
|
|
4968
|
-
disabled?: boolean;
|
|
4969
|
-
error?: boolean;
|
|
4970
4971
|
}
|
|
4971
4972
|
|
|
4972
4973
|
interface SortModel {
|
|
4973
|
-
label: string;
|
|
4974
|
-
sortOptions: Array<SortOptionModel>;
|
|
4975
4974
|
applyButtonLabel?: string;
|
|
4976
4975
|
closeDropdownOnApplyClick?: boolean;
|
|
4977
4976
|
closeDropdownOnOptionChange?: boolean;
|
|
4978
|
-
|
|
4977
|
+
label: string;
|
|
4979
4978
|
name: string;
|
|
4979
|
+
right?: boolean;
|
|
4980
|
+
sortOptions: Array<SortOptionModel>;
|
|
4980
4981
|
}
|
|
4981
4982
|
|
|
4982
4983
|
/**
|
|
@@ -5774,6 +5775,29 @@ declare class PageFooterModule {
|
|
|
5774
5775
|
static ɵinj: i0.ɵɵInjectorDeclaration<PageFooterModule>;
|
|
5775
5776
|
}
|
|
5776
5777
|
|
|
5778
|
+
interface TextModel {
|
|
5779
|
+
title?: string;
|
|
5780
|
+
rewardNumberTitle?: string;
|
|
5781
|
+
notAvailableTitle?: string;
|
|
5782
|
+
notAvailableMessage?: string;
|
|
5783
|
+
cashPointsDescription?: string;
|
|
5784
|
+
spennDescription?: string;
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5787
|
+
interface UrlModel {
|
|
5788
|
+
myTravelsUrl?: LinkModel;
|
|
5789
|
+
signOutUrl?: LinkModel;
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5792
|
+
interface WalletModel {
|
|
5793
|
+
spennBalance?: number;
|
|
5794
|
+
cashpointsBalance?: number;
|
|
5795
|
+
rewardNumber?: string;
|
|
5796
|
+
spennEnabled?: boolean;
|
|
5797
|
+
urls?: UrlModel;
|
|
5798
|
+
texts?: TextModel;
|
|
5799
|
+
}
|
|
5800
|
+
|
|
5777
5801
|
/**
|
|
5778
5802
|
* @license
|
|
5779
5803
|
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
@@ -5810,25 +5834,32 @@ declare class HamburgerComponent extends NasComponentBase {
|
|
|
5810
5834
|
static ɵcmp: i0.ɵɵComponentDeclaration<HamburgerComponent, "nas-hamburger", never, { "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, never, false, never>;
|
|
5811
5835
|
}
|
|
5812
5836
|
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5837
|
+
/**
|
|
5838
|
+
* @license
|
|
5839
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
5840
|
+
*/
|
|
5841
|
+
|
|
5842
|
+
declare class WalletComponent extends NasComponentBase implements AfterViewInit {
|
|
5843
|
+
private cdr;
|
|
5844
|
+
/**
|
|
5845
|
+
* @property Input
|
|
5846
|
+
*
|
|
5847
|
+
* Model to define the wallet in the header
|
|
5848
|
+
*/
|
|
5849
|
+
walletModel: WalletModel;
|
|
5850
|
+
showContent: boolean;
|
|
5851
|
+
get pointsBalance(): number;
|
|
5852
|
+
get showNotAvailableMessage(): boolean;
|
|
5853
|
+
get spennAndCashpointUnavailable(): boolean;
|
|
5854
|
+
get pointsDescription(): string;
|
|
5855
|
+
get icon(): string;
|
|
5856
|
+
constructor(cdr: ChangeDetectorRef);
|
|
5857
|
+
ngAfterViewInit(): void;
|
|
5858
|
+
onClickToggleContent(): void;
|
|
5859
|
+
getCurrentHref(): string;
|
|
5860
|
+
myTravelsPage(): boolean;
|
|
5861
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WalletComponent, never>;
|
|
5862
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WalletComponent, "nas-wallet", never, { "walletModel": { "alias": "walletModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
5832
5863
|
}
|
|
5833
5864
|
|
|
5834
5865
|
/**
|
|
@@ -5921,13 +5952,6 @@ declare class PageHeaderComponent extends NasComponentBase implements OnDestroy,
|
|
|
5921
5952
|
* Link to profile.
|
|
5922
5953
|
*/
|
|
5923
5954
|
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
5955
|
/**
|
|
5932
5956
|
* @property Input
|
|
5933
5957
|
*
|
|
@@ -5969,34 +5993,7 @@ declare class PageHeaderComponent extends NasComponentBase implements OnDestroy,
|
|
|
5969
5993
|
redirectToUrl(): string;
|
|
5970
5994
|
setBrandingCSSClass(): "disable-link" | "branding";
|
|
5971
5995
|
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>;
|
|
5996
|
+
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
5997
|
}
|
|
6001
5998
|
|
|
6002
5999
|
/**
|
|
@@ -6471,289 +6468,6 @@ declare class PremiumToggleModule {
|
|
|
6471
6468
|
static ɵinj: i0.ɵɵInjectorDeclaration<PremiumToggleModule>;
|
|
6472
6469
|
}
|
|
6473
6470
|
|
|
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
6471
|
interface StatusBoxModel {
|
|
6758
6472
|
title?: string;
|
|
6759
6473
|
text?: string;
|
|
@@ -9445,5 +9159,5 @@ declare class GetPositionService {
|
|
|
9445
9159
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetPositionService>;
|
|
9446
9160
|
}
|
|
9447
9161
|
|
|
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,
|
|
9162
|
+
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, TooltipModule, TripSummaryComponent, TripSummaryModule, TripType, UtcDate, ViewPortService, WalletComponent, WeekStart, bannerAnimation };
|
|
9163
|
+
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 };
|