@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.
@@ -2,7 +2,7 @@
2
2
  * @license
3
3
  * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
4
  */
5
- import { OnInit } from '@angular/core';
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 implements OnInit {
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
- ngOnInit(): void;
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
- getAlertTitle(): string;
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, never, 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "6.7.0",
3
+ "version": "6.7.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 17.0.0",
6
6
  "@angular/core": ">=16.0.0 < 17.0.0"
@@ -6,7 +6,6 @@ $breakpoints: (
6
6
  xl: 1280px // Extra large and up
7
7
  );
8
8
 
9
-
10
9
  // Container max widths
11
10
  $container-width: 1180px;
12
11
  $container-width--medium: 820px;