@norwegian/core-components 6.48.1 → 6.49.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/status-box/status-box.md +1 -0
- package/assets/icons/icon-status-error.svg +21 -0
- package/assets/icons/icon-status-info.svg +21 -0
- package/assets/icons/icon-status-success.svg +21 -0
- package/assets/icons/icon-status-warning.svg +21 -0
- package/esm2022/lib/components/icon/icon.component.mjs +2 -2
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/spinner/spinner.component.mjs +26 -3
- package/esm2022/lib/components/status-box/index.mjs +3 -0
- package/esm2022/lib/components/status-box/models/status-box.model.mjs +2 -0
- package/esm2022/lib/components/status-box/status-box.component.mjs +90 -0
- package/esm2022/lib/components/status-box/status-box.module.mjs +21 -0
- package/fesm2022/norwegian-core-components.mjs +125 -5
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/spinner/spinner.component.d.ts +21 -1
- package/lib/components/status-box/index.d.ts +2 -0
- package/lib/components/status-box/models/status-box.model.d.ts +5 -0
- package/lib/components/status-box/status-box.component.d.ts +69 -0
- package/lib/components/status-box/status-box.module.d.ts +11 -0
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ export * from './premium-toggle/index';
|
|
|
25
25
|
export * from './radio/index';
|
|
26
26
|
export * from './select/index';
|
|
27
27
|
export * from './spinner/index';
|
|
28
|
+
export * from './status-box/index';
|
|
28
29
|
export * from './subsidy-discount/index';
|
|
29
30
|
export * from './toggle/index';
|
|
30
31
|
export * from './weather-icon/index';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Renderer2, OnInit } from '@angular/core';
|
|
2
2
|
import { NasComponentBase } from '../../core';
|
|
3
|
+
import { ClassModel } from '../../core/models/class.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* @description
|
|
@@ -76,10 +77,29 @@ export declare class SpinnerComponent extends NasComponentBase implements OnInit
|
|
|
76
77
|
* <nas-select [blockScrolling]="true"></nas-select>
|
|
77
78
|
*/
|
|
78
79
|
blockScrolling: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* @property Input
|
|
82
|
+
* @description
|
|
83
|
+
* New round spinner design
|
|
84
|
+
* @example
|
|
85
|
+
* <nas-spinner rounded></nas-spinner>
|
|
86
|
+
*/
|
|
87
|
+
rounded?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @property Input
|
|
90
|
+
* @description
|
|
91
|
+
* Adds custom CSS class to the spinner. Spinner will sett additional custom styling.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* <nas-spinner [cssClass]="'my-custom-class'"> </nas-spinner>
|
|
95
|
+
*/
|
|
96
|
+
cssClass?: ClassModel;
|
|
79
97
|
constructor(renderer: Renderer2);
|
|
80
98
|
ngOnInit(): void;
|
|
81
99
|
private setEnabled;
|
|
82
100
|
refreshPage(): void;
|
|
101
|
+
get modifiers(): Array<string>;
|
|
102
|
+
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
83
103
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "nas-spinner", never, { "text": { "alias": "text"; "required": false; }; "refreshText": { "alias": "refreshText"; "required": false; }; "small": { "alias": "small"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "enable": { "alias": "enable"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "blockScrolling": { "alias": "blockScrolling"; "required": false; }; }, {}, never, never, false, never>;
|
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "nas-spinner", never, { "text": { "alias": "text"; "required": false; }; "refreshText": { "alias": "refreshText"; "required": false; }; "small": { "alias": "small"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "enable": { "alias": "enable"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "blockScrolling": { "alias": "blockScrolling"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, {}, never, never, false, never>;
|
|
85
105
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
2
|
+
import { StatusBoxModel } from './models/status-box.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* Norwegian Status Box Component | Dialogs and Modals
|
|
11
|
+
*/
|
|
12
|
+
export declare class StatusBoxComponent extends NasComponentBase {
|
|
13
|
+
private statusBoxModel;
|
|
14
|
+
/**
|
|
15
|
+
* @property Input
|
|
16
|
+
* @description
|
|
17
|
+
* Boolean to set the info icon.
|
|
18
|
+
*/
|
|
19
|
+
info: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @property Input
|
|
22
|
+
* @description
|
|
23
|
+
* Boolean to set the warning icon.
|
|
24
|
+
*/
|
|
25
|
+
warning: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @property Input
|
|
28
|
+
* @description
|
|
29
|
+
* Boolean to set the error icon.
|
|
30
|
+
*/
|
|
31
|
+
error: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @property Input
|
|
34
|
+
* @description
|
|
35
|
+
* Boolean to set success icon.
|
|
36
|
+
*/
|
|
37
|
+
success: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @property Input
|
|
40
|
+
* @description
|
|
41
|
+
* String to set the status title.
|
|
42
|
+
*/
|
|
43
|
+
title: string;
|
|
44
|
+
/**
|
|
45
|
+
* @property Input
|
|
46
|
+
* @description
|
|
47
|
+
* String to give the status info.
|
|
48
|
+
*/
|
|
49
|
+
text: string;
|
|
50
|
+
/**
|
|
51
|
+
* @property Input
|
|
52
|
+
* @description
|
|
53
|
+
* String to set the button text.
|
|
54
|
+
*/
|
|
55
|
+
buttonText: string;
|
|
56
|
+
/**
|
|
57
|
+
* @property Input
|
|
58
|
+
* @description
|
|
59
|
+
* Flag for showing/hiding element. Defaults to true.
|
|
60
|
+
*/
|
|
61
|
+
get statusBox(): StatusBoxModel;
|
|
62
|
+
set statusBox(statusBox: StatusBoxModel);
|
|
63
|
+
constructor();
|
|
64
|
+
get modifiers(): Array<string>;
|
|
65
|
+
getIcon(): string;
|
|
66
|
+
private setStatusBoxValues;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusBoxComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusBoxComponent, "nas-status-box", never, { "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "statusBox": { "alias": "statusBox"; "required": false; }; }, {}, never, never, false, never>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./status-box.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 "../button-new/button-new.module";
|
|
6
|
+
import * as i5 from "../icon/icon.module";
|
|
7
|
+
export declare class StatusBoxModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusBoxModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StatusBoxModule, [typeof i1.StatusBoxComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.ButtonNewModule, typeof i5.IconModule], [typeof i1.StatusBoxComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StatusBoxModule>;
|
|
11
|
+
}
|