@norwegian/core-components 6.6.0 → 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.
- package/assets/documentation/tag/tag.md +0 -0
- package/assets/icons/error.svg +3 -0
- package/assets/icons/information.svg +3 -0
- package/assets/icons/success.svg +3 -0
- package/assets/icons/warning.svg +3 -0
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/tag/index.mjs +3 -0
- package/esm2022/lib/components/tag/tag.component.mjs +72 -0
- package/esm2022/lib/components/tag/tag.module.mjs +26 -0
- package/fesm2022/norwegian-core-components.mjs +90 -1
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/tag/index.d.ts +2 -0
- package/lib/components/tag/tag.component.d.ts +65 -0
- package/lib/components/tag/tag.module.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|