@norwegian/core-components 7.10.0 → 7.11.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/esm2022/lib/components/accordion/accordion.component.mjs +3 -3
- package/esm2022/lib/components/alert/alert.component.mjs +12 -12
- package/esm2022/lib/components/alert/alert.module.mjs +6 -4
- package/esm2022/lib/components/alert/models/alert.model.mjs +1 -1
- package/esm2022/lib/components/input/input.component.mjs +5 -3
- package/esm2022/lib/components/page-header/wallet/wallet.component.mjs +1 -1
- package/fesm2022/norwegian-core-components.mjs +19 -19
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/alert/alert.component.d.ts +12 -12
- package/lib/components/alert/alert.module.d.ts +3 -1
- package/lib/components/alert/models/alert.model.d.ts +4 -2
- package/lib/components/input/input.component.d.ts +7 -1
- package/package.json +1 -1
|
@@ -17,18 +17,10 @@ export declare class AlertComponent extends NasComponentBase {
|
|
|
17
17
|
alertContainer: ElementRef;
|
|
18
18
|
timestamp: Date;
|
|
19
19
|
showValue: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @text
|
|
22
|
-
* Used to determine that you want to show an error
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* <nas-alert error>Try again, we werent able to fetch...</nas-alert>
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
20
|
/**
|
|
29
21
|
* @property Input
|
|
30
22
|
* @description
|
|
31
|
-
*
|
|
23
|
+
*String to give the alert title
|
|
32
24
|
*/
|
|
33
25
|
title: string;
|
|
34
26
|
/**
|
|
@@ -58,7 +50,7 @@ export declare class AlertComponent extends NasComponentBase {
|
|
|
58
50
|
/**
|
|
59
51
|
* @property Input
|
|
60
52
|
* @description
|
|
61
|
-
* Boolean to give the alert
|
|
53
|
+
* Boolean to give the alert as neutral.
|
|
62
54
|
*/
|
|
63
55
|
neutral: boolean;
|
|
64
56
|
/**
|
|
@@ -67,6 +59,12 @@ export declare class AlertComponent extends NasComponentBase {
|
|
|
67
59
|
* Sets text on the alert. If set to false the alert will not display any text.
|
|
68
60
|
*/
|
|
69
61
|
text: string;
|
|
62
|
+
/**
|
|
63
|
+
* @property Input
|
|
64
|
+
* @description
|
|
65
|
+
* Sets the stack trace label
|
|
66
|
+
*/
|
|
67
|
+
stackTraceLabel: string;
|
|
70
68
|
/**
|
|
71
69
|
* @property Input
|
|
72
70
|
* @description
|
|
@@ -113,7 +111,9 @@ export declare class AlertComponent extends NasComponentBase {
|
|
|
113
111
|
/**
|
|
114
112
|
* @property Input
|
|
115
113
|
* @description
|
|
116
|
-
*
|
|
114
|
+
* A model that contains an optional title and an array of messages.
|
|
115
|
+
* @example
|
|
116
|
+
* <nas-alert [alert]="alert"></nas-alert>
|
|
117
117
|
*/
|
|
118
118
|
get alert(): AlertModel;
|
|
119
119
|
set alert(alert: AlertModel);
|
|
@@ -125,5 +125,5 @@ export declare class AlertComponent extends NasComponentBase {
|
|
|
125
125
|
private scrollToAlert;
|
|
126
126
|
private setAlertValues;
|
|
127
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "nas-alert", never, { "timestamp": { "alias": "timestamp"; "required": false; }; "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; }; "neutral": { "alias": "neutral"; "required": false; }; "text": { "alias": "text"; "required": false; }; "show": { "alias": "show"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "trustTextHtml": { "alias": "trustTextHtml"; "required": false; }; "allowAutoScroll": { "alias": "allowAutoScroll"; "required": false; }; "server": { "alias": "server"; "required": false; }; "correlation": { "alias": "correlation"; "required": false; }; "alert": { "alias": "alert"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "nas-alert", never, { "timestamp": { "alias": "timestamp"; "required": false; }; "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; }; "neutral": { "alias": "neutral"; "required": false; }; "text": { "alias": "text"; "required": false; }; "stackTraceLabel": { "alias": "stackTraceLabel"; "required": false; }; "show": { "alias": "show"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "trustTextHtml": { "alias": "trustTextHtml"; "required": false; }; "allowAutoScroll": { "alias": "allowAutoScroll"; "required": false; }; "server": { "alias": "server"; "required": false; }; "correlation": { "alias": "correlation"; "required": false; }; "alert": { "alias": "alert"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
|
|
129
129
|
}
|
|
@@ -3,8 +3,10 @@ import * as i1 from "./alert.component";
|
|
|
3
3
|
import * as i2 from "../icon/icon.module";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "../../core/directives/nas-class/nas-class.module";
|
|
6
|
+
import * as i5 from "../button/button.module";
|
|
7
|
+
import * as i6 from "../accordion/accordion.module";
|
|
6
8
|
export declare class AlertModule {
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertComponent], [typeof i2.IconModule, typeof i3.CommonModule, typeof i4.NasClassModule], [typeof i1.AlertComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertComponent], [typeof i2.IconModule, typeof i3.CommonModule, typeof i4.NasClassModule, typeof i5.ButtonModule, typeof i6.AccordionModule], [typeof i1.AlertComponent]>;
|
|
9
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
10
12
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { LinkModel } from '../../../core';
|
|
1
2
|
export interface AlertModel {
|
|
2
3
|
title?: string;
|
|
3
|
-
|
|
4
|
+
messages?: Array<string>;
|
|
4
5
|
timestamp?: Date;
|
|
6
|
+
stackTrace?: string;
|
|
5
7
|
server?: string;
|
|
6
8
|
correlation?: string;
|
|
7
|
-
|
|
9
|
+
link?: LinkModel;
|
|
8
10
|
}
|
|
@@ -97,6 +97,12 @@ export declare class InputComponent extends NasComponentBase implements OnInit {
|
|
|
97
97
|
* Sets the icon on the input
|
|
98
98
|
*/
|
|
99
99
|
icon: string;
|
|
100
|
+
/**
|
|
101
|
+
* @property Input
|
|
102
|
+
* @description
|
|
103
|
+
* Boolean that sets input mode to numeric if true, default false
|
|
104
|
+
*/
|
|
105
|
+
numeric: boolean;
|
|
100
106
|
/**
|
|
101
107
|
* @property Input
|
|
102
108
|
* @description
|
|
@@ -198,5 +204,5 @@ export declare class InputComponent extends NasComponentBase implements OnInit {
|
|
|
198
204
|
onKeyDown(): void;
|
|
199
205
|
setActiveInput(active: boolean): void;
|
|
200
206
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
201
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "nas-input", never, { "id": { "alias": "id"; "required": false; }; "model": { "alias": "model"; "required": false; }; "error": { "alias": "error"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelInside": { "alias": "labelInside"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "info": { "alias": "info"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "required": { "alias": "required"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "line": { "alias": "line"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; }, { "modelChange": "modelChange"; "blur": "blur"; }, never, never, false, never>;
|
|
207
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "nas-input", never, { "id": { "alias": "id"; "required": false; }; "model": { "alias": "model"; "required": false; }; "error": { "alias": "error"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelInside": { "alias": "labelInside"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "info": { "alias": "info"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "numeric": { "alias": "numeric"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "required": { "alias": "required"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "line": { "alias": "line"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; }, { "modelChange": "modelChange"; "blur": "blur"; }, never, never, false, never>;
|
|
202
208
|
}
|