@norwegian/core-components 6.7.0 → 6.7.1

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.
@@ -1,8 +1,3 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { OnInit } from '@angular/core';
6
1
  import { NasComponentBase } from '../../core';
7
2
  import { ClassModel } from '../../core/models/class.model';
8
3
  import * as i0 from "@angular/core";
@@ -10,7 +5,7 @@ import * as i0 from "@angular/core";
10
5
  * @description
11
6
  * Norwegian alert Component | Dialogs and Modals
12
7
  */
13
- export declare class AlertComponent extends NasComponentBase implements OnInit {
8
+ export declare class AlertComponent extends NasComponentBase {
14
9
  /**
15
10
  * @text
16
11
  * Used to determine that you want to show an error
@@ -19,6 +14,12 @@ export declare class AlertComponent extends NasComponentBase implements OnInit {
19
14
  * <nas-alert error>Try again, we werent able to fetch...</nas-alert>
20
15
  *
21
16
  */
17
+ /**
18
+ * @property Input
19
+ * @description
20
+ * Boolean to give the alert info.
21
+ */
22
+ title: string;
22
23
  /**
23
24
  * @property Input
24
25
  * @description
@@ -50,14 +51,12 @@ export declare class AlertComponent extends NasComponentBase implements OnInit {
50
51
  */
51
52
  text: string;
52
53
  constructor();
53
- ngOnInit(): void;
54
- getClasses(element?: string, modifiers?: any): Array<ClassModel>;
54
+ getClasses(element?: string, modifiers?: Array<string>): Array<ClassModel>;
55
55
  getModifiers(): Array<string>;
56
56
  getAlertClass(): string;
57
57
  private getValueFromModifiers;
58
58
  getIconSrc(): string;
59
59
  getIconAlt(): string;
60
- getAlertTitle(): string;
61
60
  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>;
61
+ 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; }; }, {}, never, ["*"], false, never>;
63
62
  }
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.1",
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;