@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.
- package/assets/icons/medium/swish.svg +16 -0
- package/assets/icons/medium/trustly.svg +6 -0
- package/assets/icons/medium/vipps.svg +17 -0
- package/assets/icons/small/alert--success.svg +9 -0
- package/assets/icons/small/swish.svg +16 -0
- package/assets/icons/small/trustly.svg +6 -0
- package/assets/icons/small/vipps.svg +17 -0
- package/assets/images/logo-reward.svg +140 -0
- package/bundles/norwegian-core-components.umd.js +48 -10
- package/bundles/norwegian-core-components.umd.js.map +1 -1
- package/esm2015/lib/components/accordion/accordion.component.js +10 -3
- package/esm2015/lib/components/filter/filter.component.js +16 -3
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/info/info.component.js +10 -3
- package/esm2015/lib/components/info/info.module.js +4 -2
- package/esm2015/lib/components/info/models/info.model.js +1 -1
- package/esm2015/lib/components/page-header/page-header.component.js +9 -3
- package/fesm2015/norwegian-core-components.js +44 -10
- package/fesm2015/norwegian-core-components.js.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +5 -2
- package/lib/components/filter/filter.component.d.ts +5 -0
- package/lib/components/info/info.component.d.ts +14 -0
- package/lib/components/info/models/info.model.d.ts +2 -0
- package/lib/components/page-header/page-header.component.d.ts +5 -0
- package/norwegian-core-components.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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
|