@norwegian/core-components 6.0.3 → 6.2.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 +17 -12
- package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +1 -1
- package/esm2022/lib/components/airport-select/airport-select.component.mjs +13 -1
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +7 -1
- package/esm2022/lib/components/backdrop/backdrop.component.mjs +3 -1
- package/esm2022/lib/components/box/box.component.mjs +4 -4
- package/esm2022/lib/components/button/button.component.mjs +5 -1
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -1
- package/esm2022/lib/components/chip/chip.component.mjs +2 -7
- package/esm2022/lib/components/container/container.component.mjs +1 -1
- package/esm2022/lib/components/continue/continue.component.mjs +6 -1
- package/esm2022/lib/components/cover/cover.component.mjs +1 -1
- package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +1 -1
- package/esm2022/lib/components/datepicker/datepicker.component.mjs +16 -1
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +17 -1
- package/esm2022/lib/components/divider/divider.component.mjs +1 -1
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -1
- package/esm2022/lib/components/filter/filter.component.mjs +36 -2
- package/esm2022/lib/components/grid/grid.component.mjs +1 -1
- package/esm2022/lib/components/icon/icon.component.mjs +1 -1
- package/esm2022/lib/components/icon-list/icon-list.component.mjs +1 -1
- package/esm2022/lib/components/icon-list/icon-list.model.mjs +1 -1
- package/esm2022/lib/components/info/info.component.mjs +5 -4
- package/esm2022/lib/components/input/input.component.mjs +6 -1
- package/esm2022/lib/components/journey/journey.component.mjs +5 -7
- package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +7 -5
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +22 -25
- package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +12 -4
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +18 -20
- package/esm2022/lib/components/list/list.component.mjs +1 -1
- package/esm2022/lib/components/modal/modal.component.mjs +5 -7
- package/esm2022/lib/components/number-field/number-field.component.mjs +4 -2
- package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -4
- package/esm2022/lib/components/page-header/page-header.component.mjs +30 -12
- package/esm2022/lib/components/page-header/page-header.module.mjs +5 -4
- package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
- package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +11 -7
- package/esm2022/lib/components/phone-number/phone-number.component.mjs +11 -15
- package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +3 -4
- package/esm2022/lib/components/radio/radio.component.mjs +4 -2
- package/esm2022/lib/components/select/select.component.mjs +11 -7
- package/esm2022/lib/components/simple-list/simple-list.component.mjs +1 -1
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +9 -5
- package/esm2022/lib/components/slider/slider.component.mjs +32 -18
- package/esm2022/lib/components/sort/sort.component.mjs +11 -7
- package/esm2022/lib/components/spinner/spinner.component.mjs +13 -18
- package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +13 -7
- package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -2
- package/esm2022/lib/components/tab-group/tab-group.component.mjs +3 -2
- package/esm2022/lib/components/table/table.component.mjs +1 -3
- package/esm2022/lib/components/textarea/textarea.component.mjs +6 -1
- package/esm2022/lib/components/toggle/toggle.component.mjs +5 -5
- package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +26 -31
- package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +3 -2
- package/fesm2022/norwegian-core-components.mjs +371 -221
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +81 -78
- package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +2 -2
- package/lib/components/airport-select/airport-select.component.d.ts +38 -2
- package/lib/components/autocomplete/autocomplete.component.d.ts +15 -2
- package/lib/components/backdrop/backdrop.component.d.ts +3 -0
- package/lib/components/box/box.component.d.ts +13 -3
- package/lib/components/button/button.component.d.ts +26 -0
- package/lib/components/checkbox/checkbox.component.d.ts +18 -2
- package/lib/components/chip/chip.component.d.ts +5 -21
- package/lib/components/container/container.component.d.ts +6 -0
- package/lib/components/continue/continue.component.d.ts +14 -0
- package/lib/components/cover/cover.component.d.ts +13 -3
- package/lib/components/datepicker/calendar/calendar.component.d.ts +2 -2
- package/lib/components/datepicker/datepicker.component.d.ts +33 -2
- package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +42 -0
- package/lib/components/divider/divider.component.d.ts +9 -0
- package/lib/components/dropdown/dropdown.component.d.ts +8 -0
- package/lib/components/filter/filter.component.d.ts +108 -2
- package/lib/components/grid/grid.component.d.ts +12 -0
- package/lib/components/icon/icon.component.d.ts +5 -8
- package/lib/components/icon-list/icon-list.component.d.ts +5 -0
- package/lib/components/icon-list/icon-list.model.d.ts +1 -0
- package/lib/components/info/info.component.d.ts +7 -18
- package/lib/components/input/input.component.d.ts +30 -5
- package/lib/components/journey/journey.component.d.ts +9 -16
- package/lib/components/journey-availability/journey-availability.component.d.ts +8 -8
- package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +29 -34
- package/lib/components/journey-selection/journey-selection.component.d.ts +14 -3
- package/lib/components/journey-stopover/journey-stopover.component.d.ts +35 -43
- package/lib/components/list/list.component.d.ts +8 -0
- package/lib/components/modal/modal.component.d.ts +16 -34
- package/lib/components/number-field/number-field.component.d.ts +26 -12
- package/lib/components/page-footer/page-footer.component.d.ts +9 -16
- package/lib/components/page-header/page-header.component.d.ts +30 -15
- package/lib/components/page-header/page-header.module.d.ts +2 -1
- package/lib/components/passenger-select/models/passengers.model.d.ts +2 -2
- package/lib/components/passenger-select/passenger-select.component.d.ts +33 -18
- package/lib/components/phone-number/phone-number.component.d.ts +80 -108
- package/lib/components/premium-toggle/premium-toggle.component.d.ts +9 -13
- package/lib/components/radio/radio.component.d.ts +35 -18
- package/lib/components/select/select.component.d.ts +47 -29
- package/lib/components/simple-list/simple-list.component.d.ts +16 -8
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +16 -9
- package/lib/components/slider/slider.component.d.ts +51 -28
- package/lib/components/sort/sort.component.d.ts +12 -7
- package/lib/components/spinner/spinner.component.d.ts +24 -37
- package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +14 -7
- package/lib/components/suggestions/suggestions.component.d.ts +6 -3
- package/lib/components/tab-group/tab-group.component.d.ts +6 -3
- package/lib/components/table/table.component.d.ts +3 -8
- package/lib/components/textarea/textarea.component.d.ts +42 -20
- package/lib/components/toggle/toggle.component.d.ts +44 -68
- package/lib/components/trip-summary/trip-summary.component.d.ts +68 -82
- package/lib/components/weather-icon/weather-icon.component.d.ts +12 -6
- package/package.json +3 -3
|
@@ -7,59 +7,69 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class BoxComponent extends NasComponentBase {
|
|
9
9
|
/**
|
|
10
|
+
* @property Input
|
|
10
11
|
* @description
|
|
11
12
|
* Boolean to set outlined style; white box with blue border.
|
|
12
13
|
*/
|
|
13
14
|
outlined: boolean;
|
|
14
15
|
/**
|
|
16
|
+
* @property Input
|
|
15
17
|
* @description
|
|
16
18
|
* Boolean to set primary style; red box.
|
|
17
19
|
*/
|
|
18
20
|
primary: boolean;
|
|
19
21
|
/**
|
|
22
|
+
* @property Input
|
|
20
23
|
* @description
|
|
21
24
|
* Boolean to set secondary style; blue box.
|
|
22
25
|
*/
|
|
23
26
|
secondary: boolean;
|
|
24
27
|
/**
|
|
28
|
+
* @property Input
|
|
25
29
|
* @description
|
|
26
30
|
* Boolean to set light style; white box.
|
|
27
31
|
*/
|
|
28
32
|
light: boolean;
|
|
29
33
|
/**
|
|
34
|
+
* @property Input
|
|
30
35
|
* @description
|
|
31
36
|
* Boolean to set transparent style. Box will be invisible, but include display properties as padding, margins etc.
|
|
32
37
|
*/
|
|
33
38
|
transparent: boolean;
|
|
34
39
|
/**
|
|
40
|
+
* @property Input
|
|
35
41
|
* @description
|
|
36
42
|
* Boolean to give content of box center alignement.
|
|
37
43
|
*/
|
|
38
44
|
center: boolean;
|
|
39
45
|
/**
|
|
46
|
+
* @property Input
|
|
40
47
|
* @description
|
|
41
48
|
* Boolean to remove all padding inside the box.
|
|
42
49
|
*/
|
|
43
50
|
nopadding: boolean;
|
|
44
51
|
/**
|
|
52
|
+
* @property Input
|
|
45
53
|
* @description
|
|
46
54
|
* Boolean to remove all margins around the box.
|
|
47
55
|
*/
|
|
48
56
|
nomargin: boolean;
|
|
49
57
|
/**
|
|
58
|
+
* @property Input
|
|
50
59
|
* @description
|
|
51
60
|
* Boolean to set 100% height of box.
|
|
52
61
|
*/
|
|
53
62
|
stretch: boolean;
|
|
54
63
|
/**
|
|
64
|
+
* @property Input
|
|
55
65
|
* @description
|
|
56
66
|
* Boolean to set grey style.
|
|
57
67
|
*/
|
|
58
68
|
grey: boolean;
|
|
59
69
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
* Represent a box component.
|
|
71
|
+
* Will initiate correct block style.
|
|
72
|
+
*/
|
|
63
73
|
constructor();
|
|
64
74
|
getModifiers(): Array<string>;
|
|
65
75
|
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
@@ -13,6 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
export declare class ButtonComponent extends NasComponentBase {
|
|
14
14
|
button: ElementRef<HTMLButtonElement>;
|
|
15
15
|
/**
|
|
16
|
+
* @property Input
|
|
16
17
|
* @description
|
|
17
18
|
* Boolean to set primary style of button (red).
|
|
18
19
|
*
|
|
@@ -21,6 +22,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
21
22
|
*/
|
|
22
23
|
primary?: boolean;
|
|
23
24
|
/**
|
|
25
|
+
* @property Input
|
|
24
26
|
* @description
|
|
25
27
|
* Boolean to set secondary style of button (blue).
|
|
26
28
|
* Primary is default style.
|
|
@@ -30,6 +32,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
30
32
|
*/
|
|
31
33
|
secondary?: boolean;
|
|
32
34
|
/**
|
|
35
|
+
* @property Input
|
|
33
36
|
* @description
|
|
34
37
|
* Boolean to set link style of button. Button will look like a link, with underlined text.
|
|
35
38
|
*
|
|
@@ -38,6 +41,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
38
41
|
*/
|
|
39
42
|
link?: boolean;
|
|
40
43
|
/**
|
|
44
|
+
* @property Input
|
|
41
45
|
* @description
|
|
42
46
|
* Boolean to set approved style of button (green).
|
|
43
47
|
*
|
|
@@ -46,6 +50,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
46
50
|
*/
|
|
47
51
|
approve?: boolean;
|
|
48
52
|
/**
|
|
53
|
+
* @property Input
|
|
49
54
|
* @description
|
|
50
55
|
* Boolean to set light style of button (grey).
|
|
51
56
|
*
|
|
@@ -54,6 +59,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
54
59
|
*/
|
|
55
60
|
light?: boolean;
|
|
56
61
|
/**
|
|
62
|
+
* @property Input
|
|
57
63
|
* @description
|
|
58
64
|
* Boolean to set large style of button. Can be compined with primary, secondary, approved and light.
|
|
59
65
|
*
|
|
@@ -62,6 +68,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
62
68
|
*/
|
|
63
69
|
large?: boolean;
|
|
64
70
|
/**
|
|
71
|
+
* @property Input
|
|
65
72
|
* @description
|
|
66
73
|
* Boolean to set block style of button. Will have block behaviour.
|
|
67
74
|
* Can be compined with primary, secondary, approved and light.
|
|
@@ -71,6 +78,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
71
78
|
*/
|
|
72
79
|
block?: boolean;
|
|
73
80
|
/**
|
|
81
|
+
* @property Input
|
|
74
82
|
* @description
|
|
75
83
|
* Boolean to set flex style of button. Will have flex box behaviour.
|
|
76
84
|
* Can be compined with primary, secondary, approved and light.
|
|
@@ -80,6 +88,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
80
88
|
*/
|
|
81
89
|
flex?: boolean;
|
|
82
90
|
/**
|
|
91
|
+
* @property Input
|
|
83
92
|
* @description
|
|
84
93
|
* Boolean to set compact style of button. Will be smaller, without "the line".
|
|
85
94
|
* Can be compined with primary, secondary, approved and light.
|
|
@@ -89,6 +98,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
89
98
|
*/
|
|
90
99
|
compact?: boolean;
|
|
91
100
|
/**
|
|
101
|
+
* @property Input
|
|
92
102
|
* @description
|
|
93
103
|
* Boolean to set right style of button. Will be aligned at right.
|
|
94
104
|
* Can be compined with primary, secondary, approved and light.
|
|
@@ -98,6 +108,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
98
108
|
*/
|
|
99
109
|
right?: boolean;
|
|
100
110
|
/**
|
|
111
|
+
* @property Input
|
|
101
112
|
* @description
|
|
102
113
|
* Boolean to set spaceless style of button. Will remove space around button.
|
|
103
114
|
* Can be compined with primary, secondary, approved and light.
|
|
@@ -107,6 +118,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
107
118
|
*/
|
|
108
119
|
spaceless?: boolean;
|
|
109
120
|
/**
|
|
121
|
+
* @property Input
|
|
110
122
|
* @description
|
|
111
123
|
* Boolean to set transparent style of button. Will be transparent.
|
|
112
124
|
*
|
|
@@ -115,6 +127,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
115
127
|
*/
|
|
116
128
|
transparent?: boolean;
|
|
117
129
|
/**
|
|
130
|
+
* @property Input
|
|
118
131
|
* @description
|
|
119
132
|
* String to support href.
|
|
120
133
|
* Can be combined with all other properties.
|
|
@@ -124,6 +137,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
124
137
|
*/
|
|
125
138
|
href?: string;
|
|
126
139
|
/**
|
|
140
|
+
* @property Input
|
|
127
141
|
* @description
|
|
128
142
|
* String to be tracked by e.x. GTM og GA.
|
|
129
143
|
* Can be combined with all other properties.
|
|
@@ -133,6 +147,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
133
147
|
*/
|
|
134
148
|
trackingvalue?: string;
|
|
135
149
|
/**
|
|
150
|
+
* @property Input
|
|
136
151
|
* @description
|
|
137
152
|
* Boolean to override disabled. Button will be clickable even though disabled is set.
|
|
138
153
|
*
|
|
@@ -141,6 +156,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
141
156
|
*/
|
|
142
157
|
canContinueOnDisabled?: boolean;
|
|
143
158
|
/**
|
|
159
|
+
* @property Input
|
|
144
160
|
* @description
|
|
145
161
|
* Boolean to set disabled. Button will get disabled styling.
|
|
146
162
|
*
|
|
@@ -149,6 +165,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
149
165
|
*/
|
|
150
166
|
disabled: boolean;
|
|
151
167
|
/**
|
|
168
|
+
* @property Input
|
|
152
169
|
* @description
|
|
153
170
|
* String to set button type. Default value is "button".
|
|
154
171
|
*
|
|
@@ -157,6 +174,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
157
174
|
*/
|
|
158
175
|
type: string;
|
|
159
176
|
/**
|
|
177
|
+
* @property Input
|
|
160
178
|
* @description
|
|
161
179
|
* Adds custom CSS class to the button. Button will sett additional custom styling.
|
|
162
180
|
*
|
|
@@ -165,6 +183,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
165
183
|
*/
|
|
166
184
|
cssClass?: ClassModel;
|
|
167
185
|
/**
|
|
186
|
+
* @property Input
|
|
168
187
|
* @description
|
|
169
188
|
* String to set aria label on button.
|
|
170
189
|
*
|
|
@@ -173,6 +192,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
173
192
|
*/
|
|
174
193
|
ariaLabel?: string;
|
|
175
194
|
/**
|
|
195
|
+
* @property Input
|
|
176
196
|
* @description
|
|
177
197
|
* Property to set custom styling on button.
|
|
178
198
|
*
|
|
@@ -181,6 +201,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
181
201
|
*/
|
|
182
202
|
cssStyle: any;
|
|
183
203
|
/**
|
|
204
|
+
* @property Input
|
|
184
205
|
* @description
|
|
185
206
|
* Number to set custom tab index on button.
|
|
186
207
|
*
|
|
@@ -189,6 +210,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
189
210
|
*/
|
|
190
211
|
tabindex: number;
|
|
191
212
|
/**
|
|
213
|
+
* @property Input
|
|
192
214
|
* @description
|
|
193
215
|
* Boolean to override base css class.
|
|
194
216
|
*
|
|
@@ -197,16 +219,19 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
197
219
|
*/
|
|
198
220
|
overrideBaseCssClass?: boolean;
|
|
199
221
|
/**
|
|
222
|
+
* @property Input
|
|
200
223
|
* @description
|
|
201
224
|
* Use router link instead of href on links
|
|
202
225
|
*/
|
|
203
226
|
useRouterLink?: boolean;
|
|
204
227
|
/**
|
|
228
|
+
* @property Input
|
|
205
229
|
* @description
|
|
206
230
|
* The ID of the native button element
|
|
207
231
|
*/
|
|
208
232
|
id: string;
|
|
209
233
|
/**
|
|
234
|
+
* @property Input
|
|
210
235
|
* @description
|
|
211
236
|
* The target attribute specifies where to open the link.
|
|
212
237
|
* @example
|
|
@@ -214,6 +239,7 @@ export declare class ButtonComponent extends NasComponentBase {
|
|
|
214
239
|
*/
|
|
215
240
|
target: string;
|
|
216
241
|
/**
|
|
242
|
+
* @property Output
|
|
217
243
|
* @description
|
|
218
244
|
* Change event when clicking on button.
|
|
219
245
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
6
|
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
7
7
|
import { ClassModel } from '../../core/models/class.model';
|
|
8
8
|
import { EventEmitter, ElementRef, OnInit } from '@angular/core';
|
|
@@ -15,72 +15,86 @@ export declare class CheckboxComponent extends NasComponentBase implements OnIni
|
|
|
15
15
|
input: ElementRef;
|
|
16
16
|
inputReactive: ElementRef;
|
|
17
17
|
/**
|
|
18
|
+
* @property Input
|
|
18
19
|
* @description
|
|
19
20
|
* Sets the Id of the native input element
|
|
20
21
|
*/
|
|
21
22
|
get inputId(): string;
|
|
22
23
|
set inputId(value: string);
|
|
23
24
|
/**
|
|
25
|
+
* @property Input
|
|
24
26
|
* @description
|
|
25
27
|
* The value attribute is bound to ngModel of the native input element.
|
|
26
28
|
*/
|
|
27
29
|
value: string;
|
|
28
30
|
/**
|
|
31
|
+
* @property Input
|
|
29
32
|
* @description
|
|
30
33
|
* Boolean setting error styling of the checkbox. Usefull for validation.
|
|
31
34
|
*/
|
|
32
35
|
error: boolean;
|
|
33
36
|
/**
|
|
37
|
+
* @property Input
|
|
34
38
|
* @description
|
|
35
39
|
* Boolean to disable the checkbox.
|
|
36
40
|
*/
|
|
37
41
|
disabled: boolean;
|
|
38
42
|
/**
|
|
43
|
+
* @property Input
|
|
39
44
|
* @description
|
|
40
45
|
* Boolean to set display as block
|
|
41
46
|
*/
|
|
42
47
|
block: boolean;
|
|
43
48
|
/**
|
|
49
|
+
* @property Input
|
|
44
50
|
* @description
|
|
45
51
|
* Boolean to set spaceless styling - remove space around component.
|
|
46
52
|
*/
|
|
47
53
|
spaceless: boolean;
|
|
48
54
|
/**
|
|
55
|
+
* @property Input
|
|
49
56
|
* @description
|
|
50
57
|
* Boolean to set inverted styling.
|
|
51
58
|
*/
|
|
52
59
|
inverted: boolean;
|
|
53
60
|
/**
|
|
61
|
+
* @property Input
|
|
54
62
|
* @description
|
|
55
63
|
* Boolean to set outlined styling
|
|
56
64
|
*/
|
|
57
65
|
outlined: boolean;
|
|
58
66
|
/**
|
|
67
|
+
* @property Input
|
|
59
68
|
* @description
|
|
60
69
|
* Used to set the 'aria-label' attribute on the underlying input element.
|
|
61
70
|
*/
|
|
62
71
|
ariaLabel: string;
|
|
63
72
|
/**
|
|
73
|
+
* @property Input
|
|
64
74
|
* @description
|
|
65
75
|
* The 'aria-labelledby' attribute takes precedence as the element's text alternative.
|
|
66
76
|
*/
|
|
67
77
|
ariaDescribedby: string;
|
|
68
78
|
/**
|
|
79
|
+
* @property Input
|
|
69
80
|
* @description
|
|
70
81
|
* The 'aria-describedby' attribute is read after the element's label and field type.
|
|
71
82
|
*/
|
|
72
83
|
ariaLabelledby: string;
|
|
73
84
|
/**
|
|
85
|
+
* @property Input
|
|
74
86
|
* @description
|
|
75
87
|
* String to set name on native input element
|
|
76
88
|
*/
|
|
77
89
|
name: string;
|
|
78
90
|
/**
|
|
91
|
+
* @property Input
|
|
79
92
|
* @description
|
|
80
93
|
* String to set required on native input element
|
|
81
94
|
*/
|
|
82
95
|
required: boolean;
|
|
83
96
|
/**
|
|
97
|
+
* @property Input
|
|
84
98
|
* @description
|
|
85
99
|
* String to set tabIndex on native input element
|
|
86
100
|
*/
|
|
@@ -88,6 +102,7 @@ export declare class CheckboxComponent extends NasComponentBase implements OnIni
|
|
|
88
102
|
get checked(): boolean;
|
|
89
103
|
set checked(value: boolean);
|
|
90
104
|
/**
|
|
105
|
+
* @property Input
|
|
91
106
|
* @description
|
|
92
107
|
* Sets a formControlName directive to the input.
|
|
93
108
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -95,12 +110,13 @@ export declare class CheckboxComponent extends NasComponentBase implements OnIni
|
|
|
95
110
|
*/
|
|
96
111
|
nasFormControlName: string;
|
|
97
112
|
/**
|
|
113
|
+
* @property Input
|
|
98
114
|
* @description
|
|
99
115
|
* Adds the parent's form group.
|
|
100
116
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
101
117
|
* It is requiered to be filled if nasFormControlName added.
|
|
102
118
|
*/
|
|
103
|
-
nasFormGroup:
|
|
119
|
+
nasFormGroup: FormGroup;
|
|
104
120
|
checkedChange: EventEmitter<boolean>;
|
|
105
121
|
focusOnPrevious: EventEmitter<KeyboardEvent>;
|
|
106
122
|
get mainClass(): ClassModel;
|
|
@@ -1,63 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
|
-
*/
|
|
5
|
-
import { OnInit } from '@angular/core';
|
|
6
1
|
import { NasComponentBase, ClassModel } from '../../core';
|
|
7
2
|
import * as i0 from "@angular/core";
|
|
8
3
|
/**
|
|
9
4
|
* @description
|
|
10
5
|
* Norwegian Chip Component | Buttons and Indicators
|
|
11
6
|
*/
|
|
12
|
-
export declare class ChipComponent extends NasComponentBase
|
|
7
|
+
export declare class ChipComponent extends NasComponentBase {
|
|
13
8
|
/**
|
|
9
|
+
* @property Input
|
|
14
10
|
* @description
|
|
15
11
|
* Boolean to set primary style of the chip (red).
|
|
16
12
|
*
|
|
17
13
|
* @example
|
|
18
|
-
*
|
|
19
|
-
* ```html
|
|
20
14
|
* <nas-chip primary>Primary</nas-chip>
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
15
|
*/
|
|
24
16
|
primary?: boolean;
|
|
25
17
|
/**
|
|
18
|
+
* @property Input
|
|
26
19
|
* @description
|
|
27
20
|
* Boolean to set approve style of the chip (green).
|
|
28
21
|
*
|
|
29
22
|
* @example
|
|
30
|
-
*
|
|
31
|
-
* ```html
|
|
32
23
|
* <nas-chip approve>Approve</nas-chip>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
24
|
*/
|
|
36
25
|
approve?: boolean;
|
|
37
26
|
/**
|
|
27
|
+
* @property Input
|
|
38
28
|
* @description
|
|
39
29
|
* Property to set custom styling on button.
|
|
40
30
|
*
|
|
41
31
|
* @example
|
|
42
|
-
*
|
|
43
|
-
* ```html
|
|
44
32
|
* <nas-chip [cssStyle]="{'width': '300px', 'height': '40px'}"></nas-chip>
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
33
|
*/
|
|
48
34
|
cssStyle: any;
|
|
49
35
|
/**
|
|
36
|
+
* @property Input
|
|
50
37
|
* @description
|
|
51
38
|
* Boolean to set the component style to small.
|
|
52
39
|
*
|
|
53
40
|
* @example
|
|
54
|
-
* ```html
|
|
55
41
|
* <nas-chip small>Small</nas-chip>
|
|
56
|
-
* ```
|
|
57
42
|
*/
|
|
58
43
|
small?: boolean;
|
|
59
44
|
constructor();
|
|
60
|
-
ngOnInit(): void;
|
|
61
45
|
getChipClass(): ClassModel;
|
|
62
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
63
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "nas-chip", never, { "primary": { "alias": "primary"; "required": false; }; "approve": { "alias": "approve"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "small": { "alias": "small"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
@@ -6,31 +6,37 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class ContainerComponent extends NasComponentBase {
|
|
8
8
|
/**
|
|
9
|
+
* @property Input
|
|
9
10
|
* @description
|
|
10
11
|
* Boolean which sets column styling.
|
|
11
12
|
*/
|
|
12
13
|
columns: boolean;
|
|
13
14
|
/**
|
|
15
|
+
* @property Input
|
|
14
16
|
* @description
|
|
15
17
|
* Boolean which sets spaceless styling.
|
|
16
18
|
*/
|
|
17
19
|
spaceless: boolean;
|
|
18
20
|
/**
|
|
21
|
+
* @property Input
|
|
19
22
|
* @description
|
|
20
23
|
* Boolean which sets centered styling. Will center align content.
|
|
21
24
|
*/
|
|
22
25
|
centered: boolean;
|
|
23
26
|
/**
|
|
27
|
+
* @property Input
|
|
24
28
|
* @description
|
|
25
29
|
* Boolean which sets full size styling.
|
|
26
30
|
*/
|
|
27
31
|
full: boolean;
|
|
28
32
|
/**
|
|
33
|
+
* @property Input
|
|
29
34
|
* @description
|
|
30
35
|
* Boolean which sets medium size styling.
|
|
31
36
|
*/
|
|
32
37
|
medium: boolean;
|
|
33
38
|
/**
|
|
39
|
+
* @property Input
|
|
34
40
|
* @description
|
|
35
41
|
* Boolean which sets tight size styling.
|
|
36
42
|
*/
|
|
@@ -18,6 +18,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
18
18
|
content: ElementRef;
|
|
19
19
|
button: ButtonComponent;
|
|
20
20
|
/**
|
|
21
|
+
* @property Input
|
|
21
22
|
* @description
|
|
22
23
|
* Boolean to set wide style of component. Will fill larger part of sceen width.
|
|
23
24
|
*
|
|
@@ -28,6 +29,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
28
29
|
*/
|
|
29
30
|
wide: boolean;
|
|
30
31
|
/**
|
|
32
|
+
* @property Input
|
|
31
33
|
* @description
|
|
32
34
|
* String to set icon on the call to action button.
|
|
33
35
|
*
|
|
@@ -38,6 +40,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
38
40
|
*/
|
|
39
41
|
icon: string;
|
|
40
42
|
/**
|
|
43
|
+
* @property Input
|
|
41
44
|
* @description
|
|
42
45
|
* Boolean to set disabled style of component.
|
|
43
46
|
*
|
|
@@ -48,11 +51,13 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
48
51
|
*/
|
|
49
52
|
disabled: boolean;
|
|
50
53
|
/**
|
|
54
|
+
* @property Input
|
|
51
55
|
* @description
|
|
52
56
|
* Sets CTA text on button. If not set, CTA-button will not be displayed.
|
|
53
57
|
*/
|
|
54
58
|
actionText: string;
|
|
55
59
|
/**
|
|
60
|
+
* @property Input
|
|
56
61
|
* @description
|
|
57
62
|
* Sets type on the CTA button. Default is "button".
|
|
58
63
|
* @example
|
|
@@ -60,6 +65,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
60
65
|
*/
|
|
61
66
|
actionType: string;
|
|
62
67
|
/**
|
|
68
|
+
* @property Input
|
|
63
69
|
* @description
|
|
64
70
|
* Boolean to set simple style of component.
|
|
65
71
|
*
|
|
@@ -70,6 +76,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
70
76
|
*/
|
|
71
77
|
simple?: boolean;
|
|
72
78
|
/**
|
|
79
|
+
* @property Input
|
|
73
80
|
* @description
|
|
74
81
|
* Boolean to set spaceless style of component.
|
|
75
82
|
*
|
|
@@ -80,6 +87,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
80
87
|
*/
|
|
81
88
|
spaceless?: boolean;
|
|
82
89
|
/**
|
|
90
|
+
* @property Input
|
|
83
91
|
* @description
|
|
84
92
|
* Boolean to set tiny style of component.
|
|
85
93
|
*
|
|
@@ -90,6 +98,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
90
98
|
*/
|
|
91
99
|
tiny?: boolean;
|
|
92
100
|
/**
|
|
101
|
+
* @property Input
|
|
93
102
|
* @description
|
|
94
103
|
* Boolean to override disabled. Button will be clickable even though disabled is set.
|
|
95
104
|
*
|
|
@@ -98,11 +107,13 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
98
107
|
*/
|
|
99
108
|
canContinueOnDisabled: boolean;
|
|
100
109
|
/**
|
|
110
|
+
* @property Input
|
|
101
111
|
* @description
|
|
102
112
|
* Set light style background style.
|
|
103
113
|
*/
|
|
104
114
|
light?: boolean;
|
|
105
115
|
/**
|
|
116
|
+
* @property Input
|
|
106
117
|
* @description
|
|
107
118
|
* Boolean to set sticky style of component.
|
|
108
119
|
*
|
|
@@ -114,11 +125,13 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
114
125
|
get sticky(): boolean;
|
|
115
126
|
set sticky(sticky: boolean);
|
|
116
127
|
/**
|
|
128
|
+
* @property Input
|
|
117
129
|
* @description
|
|
118
130
|
* The ID of the native button element
|
|
119
131
|
*/
|
|
120
132
|
actionId: string;
|
|
121
133
|
/**
|
|
134
|
+
* @property Output
|
|
122
135
|
* @description
|
|
123
136
|
* Boolean output for sticky changes.
|
|
124
137
|
*
|
|
@@ -128,6 +141,7 @@ export declare class ContinueComponent extends NasComponentBase implements OnCha
|
|
|
128
141
|
stickyChange: EventEmitter<boolean>;
|
|
129
142
|
stickyValue: boolean;
|
|
130
143
|
/**
|
|
144
|
+
* @property Output
|
|
131
145
|
* @description
|
|
132
146
|
* Boolean output for when call to action button has been clicked.
|
|
133
147
|
*
|
|
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class CoverComponent extends NasComponentBase {
|
|
10
10
|
/**
|
|
11
|
+
* @property Input
|
|
11
12
|
* @description
|
|
12
13
|
* Boolean to set wide style of component. Will fill larger part of sceen width.
|
|
13
14
|
* @example
|
|
@@ -16,6 +17,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
16
17
|
*/
|
|
17
18
|
wide: boolean;
|
|
18
19
|
/**
|
|
20
|
+
* @property Input
|
|
19
21
|
* @description
|
|
20
22
|
* Boolean to remove cloud icon on component
|
|
21
23
|
* @example
|
|
@@ -24,6 +26,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
24
26
|
*/
|
|
25
27
|
cloudless?: boolean;
|
|
26
28
|
/**
|
|
29
|
+
* @property Input
|
|
27
30
|
* @description
|
|
28
31
|
* Boolean to set spaceless style of component.
|
|
29
32
|
* @example
|
|
@@ -32,6 +35,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
32
35
|
*/
|
|
33
36
|
spaceless?: boolean;
|
|
34
37
|
/**
|
|
38
|
+
* @property Input
|
|
35
39
|
* @description
|
|
36
40
|
* Boolean to set small style of component.
|
|
37
41
|
* @example
|
|
@@ -40,6 +44,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
40
44
|
*/
|
|
41
45
|
small?: boolean;
|
|
42
46
|
/**
|
|
47
|
+
* @property Input
|
|
43
48
|
* @description
|
|
44
49
|
* String to set title text of component.
|
|
45
50
|
* @example
|
|
@@ -47,16 +52,15 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
47
52
|
*/
|
|
48
53
|
title: string;
|
|
49
54
|
/**
|
|
55
|
+
* @property Input
|
|
50
56
|
* @description
|
|
51
57
|
* String to set preamble text of component.
|
|
52
58
|
* @example
|
|
53
|
-
*
|
|
54
|
-
* ```html
|
|
55
59
|
* <nas-cover [preamble]="'And some preamble text'">You can put any kind of elements and content here...</nas-cover>
|
|
56
|
-
* ```
|
|
57
60
|
*/
|
|
58
61
|
preamble: string;
|
|
59
62
|
/**
|
|
63
|
+
* @property Input
|
|
60
64
|
* @description
|
|
61
65
|
* ClassModel to set custom css class on component.
|
|
62
66
|
* @example
|
|
@@ -66,6 +70,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
66
70
|
*/
|
|
67
71
|
cssClass: ClassModel;
|
|
68
72
|
/**
|
|
73
|
+
* @property Input
|
|
69
74
|
* @description
|
|
70
75
|
* String to set illustration icon of component. See Icon Component for existing icons.
|
|
71
76
|
* @example
|
|
@@ -73,6 +78,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
73
78
|
*/
|
|
74
79
|
illustration: string;
|
|
75
80
|
/**
|
|
81
|
+
* @property Input
|
|
76
82
|
* @description
|
|
77
83
|
* Boolean to set fluid style of component.
|
|
78
84
|
* @example
|
|
@@ -81,6 +87,7 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
81
87
|
*/
|
|
82
88
|
fluid: boolean;
|
|
83
89
|
/**
|
|
90
|
+
* @property Input
|
|
84
91
|
* @description
|
|
85
92
|
* Boolean to set stripped style of component.
|
|
86
93
|
* @example
|
|
@@ -89,16 +96,19 @@ export declare class CoverComponent extends NasComponentBase {
|
|
|
89
96
|
*/
|
|
90
97
|
stripped: boolean;
|
|
91
98
|
/**
|
|
99
|
+
* @property Input
|
|
92
100
|
* @description
|
|
93
101
|
* String to set description text of component.
|
|
94
102
|
*/
|
|
95
103
|
description: string;
|
|
96
104
|
/**
|
|
105
|
+
* @property Input
|
|
97
106
|
* @description
|
|
98
107
|
* This will be a href if useRouterLink is not added. Otherwise, routerLink.
|
|
99
108
|
*/
|
|
100
109
|
backLink: LinkModel;
|
|
101
110
|
/**
|
|
111
|
+
* @property Input
|
|
102
112
|
* @description
|
|
103
113
|
* Use router link instead of href on links
|
|
104
114
|
*/
|