@norwegian/core-components 6.5.2 → 6.7.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.
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { OnInit } from '@angular/core';
6
+ import { NasComponentBase } from '../../core';
7
+ import { ClassModel } from '../../core/models/class.model';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @description
11
+ * Norwegian alert Component | Dialogs and Modals
12
+ */
13
+ export declare class AlertComponent extends NasComponentBase implements OnInit {
14
+ /**
15
+ * @text
16
+ * Used to determine that you want to show an error
17
+ *
18
+ * @example
19
+ * <nas-alert error>Try again, we werent able to fetch...</nas-alert>
20
+ *
21
+ */
22
+ /**
23
+ * @property Input
24
+ * @description
25
+ * Boolean to give the alert info.
26
+ */
27
+ info: boolean;
28
+ /**
29
+ * @property Input
30
+ * @description
31
+ * Boolean to give the alert a warning.
32
+ */
33
+ warning: boolean;
34
+ /**
35
+ * @property Input
36
+ * @description
37
+ * Boolean to give the alert an error.
38
+ */
39
+ error: boolean;
40
+ /**
41
+ * @property Input
42
+ * @description
43
+ * Boolean to give the alert a success.
44
+ */
45
+ success: boolean;
46
+ /**
47
+ * @property Input
48
+ * @description
49
+ * Sets text on the alert. If set to false the alert will not display any text.
50
+ */
51
+ text: string;
52
+ constructor();
53
+ ngOnInit(): void;
54
+ getClasses(element?: string, modifiers?: any): Array<ClassModel>;
55
+ getModifiers(): Array<string>;
56
+ getAlertClass(): string;
57
+ private getValueFromModifiers;
58
+ getIconSrc(): string;
59
+ getIconAlt(): string;
60
+ getAlertTitle(): string;
61
+ 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>;
63
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./alert.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../core/directives/nas-class/nas-class.module";
5
+ import * as i4 from "../icon/icon.module";
6
+ export declare class AlertModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.IconModule], [typeof i1.AlertComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './alert.component';
2
+ export * from './alert.module';
@@ -47,3 +47,5 @@ export * from './slide-toggle/index';
47
47
  export * from './slider/index';
48
48
  export * from './table/index';
49
49
  export * from './divider/index';
50
+ export * from './tag/index';
51
+ export * from './alert/index';
@@ -0,0 +1,2 @@
1
+ export * from './tag.component';
2
+ export * from './tag.module';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { OnInit } from '@angular/core';
6
+ import { NasComponentBase } from '../../core';
7
+ import { ClassModel } from '../../core/models/class.model';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @description
11
+ * Norwegian alert Tag | Dialogs and Modals
12
+ */
13
+ export declare class TagComponent extends NasComponentBase implements OnInit {
14
+ /**
15
+ * @description
16
+ * Used to determine that you want to show a tag
17
+ *
18
+ * @example
19
+ * <nas-tag success>Success</nas-tag>
20
+ *
21
+ */
22
+ /**
23
+ * @property Input
24
+ * @description
25
+ * Boolean to give the tag info.
26
+ */
27
+ info: boolean;
28
+ /**
29
+ * @property Input
30
+ * @description
31
+ * Boolean to give the tag a warning.
32
+ */
33
+ warning: boolean;
34
+ /**
35
+ * @property Input
36
+ * @description
37
+ * Boolean to give the tag an error.
38
+ */
39
+ error: boolean;
40
+ /**
41
+ * @property Input
42
+ * @description
43
+ * Boolean to give the tag a success.
44
+ */
45
+ success: boolean;
46
+ /**
47
+ * @property Input
48
+ * @description
49
+ * Sets text on the tag. If set to false the tag will not display any text.
50
+ */
51
+ neutral: boolean;
52
+ /**
53
+ * @property Input
54
+ * @description
55
+ * Sets text on the tag. If set to false the tag will not display any text.
56
+ */
57
+ text: string;
58
+ constructor();
59
+ ngOnInit(): void;
60
+ getClasses(element?: string, modifiers?: any): Array<ClassModel>;
61
+ getModifiers(): Array<string>;
62
+ getTagClass(): string;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "nas-tag", never, { "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "neutral": { "alias": "neutral"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
65
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tag.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../core/directives/nas-class/nas-class.module";
5
+ export declare class TagModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TagModule, [typeof i1.TagComponent], [typeof i2.CommonModule, typeof i3.NasClassModule], [typeof i1.TagComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<TagModule>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "6.5.2",
3
+ "version": "6.7.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 17.0.0",
6
6
  "@angular/core": ">=16.0.0 < 17.0.0"