@norwegian/core-components 6.7.0 → 6.7.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/esm2022/lib/components/alert/alert.component.mjs +26 -18
- package/fesm2022/norwegian-core-components.mjs +21 -14
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/alert/alert.component.d.ts +24 -6
- package/package.json +1 -1
- package/styles/1__settings/_vars.scss +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
6
|
import { NasComponentBase } from '../../core';
|
|
7
7
|
import { ClassModel } from '../../core/models/class.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -10,7 +10,8 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* @description
|
|
11
11
|
* Norwegian alert Component | Dialogs and Modals
|
|
12
12
|
*/
|
|
13
|
-
export declare class AlertComponent extends NasComponentBase
|
|
13
|
+
export declare class AlertComponent extends NasComponentBase {
|
|
14
|
+
showChange: EventEmitter<boolean>;
|
|
14
15
|
/**
|
|
15
16
|
* @text
|
|
16
17
|
* Used to determine that you want to show an error
|
|
@@ -19,6 +20,12 @@ export declare class AlertComponent extends NasComponentBase implements OnInit {
|
|
|
19
20
|
* <nas-alert error>Try again, we werent able to fetch...</nas-alert>
|
|
20
21
|
*
|
|
21
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* @property Input
|
|
25
|
+
* @description
|
|
26
|
+
* Boolean to give the alert info.
|
|
27
|
+
*/
|
|
28
|
+
title: string;
|
|
22
29
|
/**
|
|
23
30
|
* @property Input
|
|
24
31
|
* @description
|
|
@@ -49,15 +56,26 @@ export declare class AlertComponent extends NasComponentBase implements OnInit {
|
|
|
49
56
|
* Sets text on the alert. If set to false the alert will not display any text.
|
|
50
57
|
*/
|
|
51
58
|
text: string;
|
|
59
|
+
/**
|
|
60
|
+
* @property Input
|
|
61
|
+
* @description
|
|
62
|
+
* Flag for showing/hiding element. Defaults to true.
|
|
63
|
+
*/
|
|
64
|
+
show: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @property Input
|
|
67
|
+
* @description
|
|
68
|
+
* Boolean to give opportunity to close the alert box
|
|
69
|
+
*/
|
|
70
|
+
removable: boolean;
|
|
52
71
|
constructor();
|
|
53
|
-
|
|
54
|
-
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
72
|
+
getClasses(element?: string, modifiers?: Array<string>): Array<ClassModel>;
|
|
55
73
|
getModifiers(): Array<string>;
|
|
56
74
|
getAlertClass(): string;
|
|
57
75
|
private getValueFromModifiers;
|
|
58
76
|
getIconSrc(): string;
|
|
59
77
|
getIconAlt(): string;
|
|
60
|
-
|
|
78
|
+
removeAlertBox(): void;
|
|
61
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "nas-alert", never, { "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never,
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "nas-alert", never, { "title": { "alias": "title"; "required": false; }; "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "text": { "alias": "text"; "required": false; }; "show": { "alias": "show"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
|
|
63
81
|
}
|
package/package.json
CHANGED