@norwegian/core-components 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,13 +2,13 @@
2
2
  * @license
3
3
  * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
4
  */
5
- import { EventEmitter } from '@angular/core';
5
+ import { EventEmitter, OnInit } from '@angular/core';
6
6
  import { NasComponentBase, ClassModel } from '../../core';
7
7
  /**
8
8
  * @description
9
9
  * Norwegian Accordion Component | Layout
10
10
  */
11
- export declare class AccordionComponent extends NasComponentBase {
11
+ export declare class AccordionComponent extends NasComponentBase implements OnInit {
12
12
  /**
13
13
  * @description
14
14
  * Boolean to set if accordion should be expanded or not. Default value is false.
@@ -192,14 +192,17 @@ export declare class AccordionComponent extends NasComponentBase {
192
192
  toggleChange: EventEmitter<boolean>;
193
193
  private animateIn;
194
194
  private animateOut;
195
+ regularHeader: boolean;
195
196
  /**
196
197
  * @description
197
198
  * Represent a accordion component.
198
199
  * Will initiate correct block style.
199
200
  */
200
201
  constructor();
202
+ ngOnInit(): void;
201
203
  getClasses(element?: string, modifiers?: any): Array<ClassModel>;
202
204
  getModifiers(): Array<string>;
203
205
  wrapperClass(): ClassModel;
204
206
  toggle(): void;
207
+ setHeaderType(): void;
205
208
  }
@@ -566,6 +566,11 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
566
566
  */
567
567
  get inboundSelectedDate(): UtcDate;
568
568
  set inboundSelectedDate(date: UtcDate);
569
+ /**
570
+ * @description
571
+ * Will display the destination input, set this to false to remove it. It's true by default.
572
+ */
573
+ enableDestinationSelect: boolean;
569
574
  /**
570
575
  * @description
571
576
  * Will display passenger select, set this to false to remove it. It's true by default.
@@ -34,6 +34,19 @@ export declare class InfoComponent extends NasComponentBase {
34
34
  * ```
35
35
  */
36
36
  error?: boolean;
37
+ /**
38
+ * @description
39
+ * A boolean input value to set the accordion to success info.
40
+ * @example
41
+ * ```html
42
+ * <nas-info [info]="info" success></nas-info>
43
+ * ```
44
+ * or
45
+ * ```html
46
+ * <nas-accordion [success]="isSuccessProperty"></nas-accordion>
47
+ * ```
48
+ */
49
+ success?: boolean;
37
50
  /**
38
51
  * @description
39
52
  * String to set stack trace label on the accordion.
@@ -68,4 +81,5 @@ export declare class InfoComponent extends NasComponentBase {
68
81
  removeInfoBox(): void;
69
82
  getListClass(element?: string, modifiersInput?: any): ClassModel;
70
83
  private scrollToInfo;
84
+ get modifiers(): Array<string>;
71
85
  }
@@ -1,7 +1,9 @@
1
+ import { LinkModel } from '../../../core';
1
2
  export interface InfoModel {
2
3
  title?: string;
3
4
  messages?: Array<string>;
4
5
  timestamp?: Date;
5
6
  stackTrace?: string;
6
7
  server?: string;
8
+ link?: LinkModel;
7
9
  }
@@ -36,6 +36,11 @@ export declare class PageHeaderComponent extends NasComponentBase implements OnD
36
36
  * Show the profile section.
37
37
  */
38
38
  displayProfile: boolean;
39
+ /**
40
+ * @description
41
+ * Will display the Norwegian Reward logo, set this to true display it. It's false by default.
42
+ */
43
+ reward: boolean;
39
44
  /**
40
45
  * @description
41
46
  * Is user authenticated. Only valid if displayProfile is true