@norwegian/core-components 6.33.1 → 6.34.1

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.
Files changed (40) hide show
  1. package/esm2022/lib/components/button-new/button-new.component.mjs +174 -0
  2. package/esm2022/lib/components/button-new/button-new.module.mjs +21 -0
  3. package/esm2022/lib/components/button-new/index.mjs +3 -0
  4. package/esm2022/lib/components/checkbox-new/checkbox-new.component.mjs +150 -0
  5. package/esm2022/lib/components/checkbox-new/checkbox-new.module.mjs +20 -0
  6. package/esm2022/lib/components/checkbox-new/index.mjs +3 -0
  7. package/esm2022/lib/components/filter/filter.component.mjs +5 -3
  8. package/esm2022/lib/components/index.mjs +7 -2
  9. package/esm2022/lib/components/number-field-new/index.mjs +3 -0
  10. package/esm2022/lib/components/number-field-new/models/number-field-new.model.mjs +2 -0
  11. package/esm2022/lib/components/number-field-new/number-field-new.component.mjs +155 -0
  12. package/esm2022/lib/components/number-field-new/number-field-new.module.mjs +39 -0
  13. package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +8 -11
  14. package/esm2022/lib/components/radio-new/index.mjs +3 -0
  15. package/esm2022/lib/components/radio-new/radio-new.component.mjs +100 -0
  16. package/esm2022/lib/components/radio-new/radio-new.module.mjs +20 -0
  17. package/esm2022/lib/components/slide-toggle-new/index.mjs +3 -0
  18. package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.component.mjs +115 -0
  19. package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.module.mjs +31 -0
  20. package/fesm2022/norwegian-core-components.mjs +1146 -389
  21. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  22. package/lib/components/button-new/button-new.component.d.ts +270 -0
  23. package/lib/components/button-new/button-new.module.d.ts +11 -0
  24. package/lib/components/button-new/index.d.ts +2 -0
  25. package/lib/components/checkbox-new/checkbox-new.component.d.ts +138 -0
  26. package/lib/components/checkbox-new/checkbox-new.module.d.ts +10 -0
  27. package/lib/components/checkbox-new/index.d.ts +2 -0
  28. package/lib/components/filter/filter.component.d.ts +7 -1
  29. package/lib/components/index.d.ts +6 -1
  30. package/lib/components/number-field-new/index.d.ts +2 -0
  31. package/lib/components/number-field-new/models/number-field-new.model.d.ts +5 -0
  32. package/lib/components/number-field-new/number-field-new.component.d.ts +116 -0
  33. package/lib/components/number-field-new/number-field-new.module.d.ts +12 -0
  34. package/lib/components/radio-new/index.d.ts +2 -0
  35. package/lib/components/radio-new/radio-new.component.d.ts +135 -0
  36. package/lib/components/radio-new/radio-new.module.d.ts +10 -0
  37. package/lib/components/slide-toggle-new/index.d.ts +2 -0
  38. package/lib/components/slide-toggle-new/slide-toggle-new.component.d.ts +70 -0
  39. package/lib/components/slide-toggle-new/slide-toggle-new.module.d.ts +10 -0
  40. package/package.json +1 -1
@@ -0,0 +1,270 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { EventEmitter, ElementRef } from '@angular/core';
6
+ import { NasComponentBase } from '../../core/base/nas-component.base';
7
+ import { ClassModel } from '../../core/models/class.model';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @description
11
+ * Norwegian Button Component | New design | Beta
12
+ */
13
+ export declare class ButtonNewComponent extends NasComponentBase {
14
+ button: ElementRef<HTMLButtonElement>;
15
+ /**
16
+ * @property Input
17
+ * @description
18
+ * Boolean to set primary style of button (red).
19
+ *
20
+ * @example
21
+ * <nas-button primary>Click on me!</nas-button>
22
+ */
23
+ primary?: boolean;
24
+ /**
25
+ * @property Input
26
+ * @description
27
+ * Boolean to set secondary style of button (blue).
28
+ * Primary is default style.
29
+ *
30
+ * @example
31
+ * <nas-button secondary>Click on me!</nas-button>
32
+ */
33
+ secondary?: boolean;
34
+ /**
35
+ * @property Input
36
+ * @description
37
+ * Boolean to set link style of button. Button will look like a link, with underlined text.
38
+ *
39
+ * @example
40
+ * <nas-button link>Click on me!</nas-button>
41
+ */
42
+ link?: boolean;
43
+ /**
44
+ * @property Input
45
+ * @description
46
+ * Boolean to set light style of button (grey).
47
+ *
48
+ * @example
49
+ * <nas-button light>Click on me!</nas-button>
50
+ */
51
+ light?: boolean;
52
+ /**
53
+ * @property Input
54
+ * @description
55
+ * Boolean to set large style of button. Can be compined with primary, secondary and light.
56
+ *
57
+ * @example
58
+ * <nas-button large>Click on me!</nas-button>
59
+ */
60
+ large?: boolean;
61
+ /**
62
+ * @property Input
63
+ * @description
64
+ * Boolean to set block style of button. Will have block behaviour.
65
+ * Can be compined with primary, secondary and light.
66
+ *
67
+ * @example
68
+ * <nas-button block>Click on me!</nas-button>
69
+ */
70
+ block?: boolean;
71
+ /**
72
+ * @property Input
73
+ * @description
74
+ * Boolean to set flex style of button. Will have flex box behaviour.
75
+ * Can be compined with primary, secondary and light.
76
+ *
77
+ * @example
78
+ * <nas-button flex>Click on me!</nas-button>
79
+ */
80
+ flex?: boolean;
81
+ /**
82
+ * @property Input
83
+ * @description
84
+ * Boolean to set compact style of button. Will be smaller, without "the line".
85
+ * Can be compined with primary, secondary and light.
86
+ *
87
+ * @example
88
+ * <nas-button compact>Click on me!</nas-button>
89
+ */
90
+ compact?: boolean;
91
+ /**
92
+ * @property Input
93
+ * @description
94
+ * Boolean to set right style of button. Will be aligned at right.
95
+ * Can be compined with primary, secondary and light.
96
+ *
97
+ * @example
98
+ * <nas-button right>Click on me!</nas-button>
99
+ */
100
+ right?: boolean;
101
+ /**
102
+ * @property Input
103
+ * @description
104
+ * Boolean to set spaceless style of button. Will remove space around button.
105
+ * Can be compined with primary, secondary and light.
106
+ *
107
+ * @example
108
+ * <nas-button spaceless>Click on me!</nas-button>
109
+ */
110
+ spaceless?: boolean;
111
+ /**
112
+ * @property Input
113
+ * @description
114
+ * String to support href.
115
+ * Can be combined with all other properties.
116
+ *
117
+ * @example
118
+ * <nas-button [href]="http://www.norwegian.com">Click on me!</nas-button>
119
+ */
120
+ href?: string;
121
+ /**
122
+ * @property Input
123
+ * @description
124
+ * String to be tracked by e.x. GTM og GA.
125
+ * Can be combined with all other properties.
126
+ *
127
+ * @example
128
+ * <nas-button [trackingValue]="trackingValue">Click on me!</nas-button>
129
+ */
130
+ trackingvalue?: string;
131
+ /**
132
+ * @property Input
133
+ * @description
134
+ * Boolean to override disabled. Button will be clickable even though disabled is set.
135
+ *
136
+ * @example
137
+ * <nas-button canContinueOnDisabled>Click on me!</nas-button>
138
+ */
139
+ canContinueOnDisabled?: boolean;
140
+ /**
141
+ * @property Input
142
+ * @description
143
+ * Boolean to set disabled. Button will get disabled styling.
144
+ *
145
+ * @example
146
+ * <nas-button disabled>Click on me!</nas-button>
147
+ */
148
+ disabled: boolean;
149
+ /**
150
+ * @property Input
151
+ * @description
152
+ * String to set button type. Default value is "button".
153
+ *
154
+ * @example
155
+ * <nas-button [type]="'submit'">Click on me!</nas-button>
156
+ */
157
+ type: string;
158
+ /**
159
+ * @property Input
160
+ * @description
161
+ * Adds custom CSS class to the button. Button will sett additional custom styling.
162
+ *
163
+ * @example
164
+ * <nas-button [cssClass]="'my-custom-class'">Click on me!</nas-button>
165
+ */
166
+ cssClass?: ClassModel;
167
+ /**
168
+ * @property Input
169
+ * @description
170
+ * String to set aria label on button.
171
+ *
172
+ * @example
173
+ * <nas-button [ariaLabel]="'this is my aria label'">Click on me!</nas-button>
174
+ */
175
+ ariaLabel?: string;
176
+ /**
177
+ * @property Input
178
+ * @description
179
+ * Property to set custom styling on button.
180
+ *
181
+ * @example
182
+ * <nas-button [cssStyle]="{'width': '300px', 'height': '40px'}">Click on me!</nas-button>
183
+ */
184
+ cssStyle: any;
185
+ /**
186
+ * @property Input
187
+ * @description
188
+ * Number to set custom tab index on button.
189
+ *
190
+ * @example
191
+ * <nas-button [tabIndex]="10">Click on me!</nas-button>
192
+ */
193
+ tabindex: number;
194
+ /**
195
+ * @property Input
196
+ * @description
197
+ * Boolean to override base css class.
198
+ *
199
+ * @example
200
+ * <nas-button [overrideBaseCssClass]="true">Click on me!</nas-button>
201
+ */
202
+ overrideBaseCssClass?: boolean;
203
+ /**
204
+ * @property Input
205
+ * @description
206
+ * Use router link instead of href on links
207
+ */
208
+ useRouterLink?: boolean;
209
+ /**
210
+ * @property Input
211
+ * @description
212
+ * The ID of the native button element
213
+ */
214
+ id: string;
215
+ /**
216
+ * @property Input
217
+ * @description
218
+ * The target attribute specifies where to open the link.
219
+ * @example
220
+ * <nas-button link href="https://www.norwegian.com" target="_blank">Click on me!</nas-button>
221
+ */
222
+ target: string;
223
+ /**
224
+ * @property Input
225
+ * @description
226
+ * Sets the icon on the input
227
+ */
228
+ icon: string;
229
+ /**
230
+ * @property Input
231
+ * @description
232
+ * Boolean to display the icon on the left side of the button text
233
+ */
234
+ iconLeft?: boolean;
235
+ /**
236
+ * @property Input
237
+ * @description
238
+ * Boolean to set the button-link styling on the button
239
+ *
240
+ * @example
241
+ * <nas-button buttonlink>This is a button link!</nas-button>
242
+ */
243
+ buttonlink: boolean;
244
+ /**
245
+ * @property Output
246
+ * @description
247
+ * Change event when clicking on button.
248
+ *
249
+ * @example
250
+ * <nas-button (clickChange)="myFunction()">Click on me!</nas-button>
251
+ */
252
+ clickChange: EventEmitter<Event>;
253
+ get buttonStyle(): any;
254
+ get buttonId(): string;
255
+ get modifiers(): Array<string>;
256
+ private trackingEventSource;
257
+ trackingEvent$: import("rxjs").Observable<string>;
258
+ private componentId;
259
+ /**
260
+ * @description
261
+ * Represent a button component.
262
+ * Will initiate correct block style.
263
+ */
264
+ constructor();
265
+ getClasses(element?: string, modifiers?: any): Array<ClassModel>;
266
+ emitTrackingEvent(): void;
267
+ emitTrackingAndClickEvent(event: Event): void;
268
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonNewComponent, never>;
269
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonNewComponent, "nas-button-new", never, { "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "link": { "alias": "link"; "required": false; }; "light": { "alias": "light"; "required": false; }; "large": { "alias": "large"; "required": false; }; "block": { "alias": "block"; "required": false; }; "flex": { "alias": "flex"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "right": { "alias": "right"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "href": { "alias": "href"; "required": false; }; "trackingvalue": { "alias": "trackingvalue"; "required": false; }; "canContinueOnDisabled": { "alias": "canContinueOnDisabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "overrideBaseCssClass": { "alias": "overrideBaseCssClass"; "required": false; }; "useRouterLink": { "alias": "useRouterLink"; "required": false; }; "id": { "alias": "id"; "required": false; }; "target": { "alias": "target"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "buttonlink": { "alias": "buttonlink"; "required": false; }; }, { "clickChange": "clickChange"; }, never, ["*"], false, never>;
270
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button-new.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 "@angular/router";
6
+ import * as i5 from "../icon/icon.module";
7
+ export declare class ButtonNewModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonNewModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonNewModule, [typeof i1.ButtonNewComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.RouterModule, typeof i5.IconModule], [typeof i1.ButtonNewComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<ButtonNewModule>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './button-new.component';
2
+ export * from './button-new.module';
@@ -0,0 +1,138 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { FormGroup } from '@angular/forms';
6
+ import { NasComponentBase } from '../../core/base/nas-component.base';
7
+ import { ClassModel } from '../../core/models/class.model';
8
+ import { EventEmitter, ElementRef, OnInit } from '@angular/core';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * @description
12
+ * Norwegian Checkbox Component | New design | Beta
13
+ */
14
+ export declare class CheckboxNewComponent extends NasComponentBase implements OnInit {
15
+ input: ElementRef;
16
+ inputReactive: ElementRef;
17
+ /**
18
+ * @property Input
19
+ * @description
20
+ * Sets the Id of the native input element
21
+ */
22
+ get inputId(): string;
23
+ set inputId(value: string);
24
+ /**
25
+ * @property Input
26
+ * @description
27
+ * The value attribute is bound to ngModel of the native input element.
28
+ */
29
+ value: string;
30
+ /**
31
+ * @property Input
32
+ * @description
33
+ * Boolean setting error styling of the checkbox. Usefull for validation.
34
+ */
35
+ error: boolean;
36
+ /**
37
+ * @property Input
38
+ * @description
39
+ * Boolean to disable the checkbox.
40
+ */
41
+ disabled: boolean;
42
+ /**
43
+ * @property Input
44
+ * @description
45
+ * Boolean to set display as block
46
+ */
47
+ block: boolean;
48
+ /**
49
+ * @property Input
50
+ * @description
51
+ * Boolean to set spaceless styling - remove space around component.
52
+ */
53
+ spaceless: boolean;
54
+ /**
55
+ * @property Input
56
+ * @description
57
+ * Boolean to set inverted styling.
58
+ */
59
+ inverted: boolean;
60
+ /**
61
+ * @property Input
62
+ * @description
63
+ * Boolean to set outlined styling
64
+ */
65
+ outlined: boolean;
66
+ /**
67
+ * @property Input
68
+ * @description
69
+ * Used to set the 'aria-label' attribute on the underlying input element.
70
+ */
71
+ ariaLabel: string;
72
+ /**
73
+ * @property Input
74
+ * @description
75
+ * The 'aria-labelledby' attribute takes precedence as the element's text alternative.
76
+ */
77
+ ariaDescribedby: string;
78
+ /**
79
+ * @property Input
80
+ * @description
81
+ * The 'aria-describedby' attribute is read after the element's label and field type.
82
+ */
83
+ ariaLabelledby: string;
84
+ /**
85
+ * @property Input
86
+ * @description
87
+ * String to set name on native input element
88
+ */
89
+ name: string;
90
+ /**
91
+ * @property Input
92
+ * @description
93
+ * String to set required on native input element
94
+ */
95
+ required: boolean;
96
+ /**
97
+ * @property Input
98
+ * @description
99
+ * String to set tabIndex on native input element
100
+ */
101
+ tabIndex: number;
102
+ get checked(): boolean;
103
+ set checked(value: boolean);
104
+ /**
105
+ * @property Input
106
+ * @description
107
+ * Sets a formControlName directive to the input.
108
+ * It requires that the consumer included ReactiveFormsModule in it's module.
109
+ * It requiers that the nasFormGroup input is filled.
110
+ */
111
+ nasFormControlName: string;
112
+ /**
113
+ * @property Input
114
+ * @description
115
+ * Adds the parent's form group.
116
+ * It requires that the consumer included ReactiveFormsModule in it's module.
117
+ * It is requiered to be filled if nasFormControlName added.
118
+ */
119
+ nasFormGroup: FormGroup;
120
+ checkedChange: EventEmitter<boolean>;
121
+ focusOnPrevious: EventEmitter<KeyboardEvent>;
122
+ get mainClass(): ClassModel;
123
+ private checkedValue;
124
+ private componentId;
125
+ private inputIdValue;
126
+ /**
127
+ * @description
128
+ * Represent a checkbox component.
129
+ * Will initiate correct block style.
130
+ */
131
+ constructor();
132
+ ngOnInit(): void;
133
+ inputChanged(event: Event): void;
134
+ inputClicked(event: Event): void;
135
+ onKeydown(event: KeyboardEvent): void;
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxNewComponent, never>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxNewComponent, "nas-checkbox-new", never, { "inputId": { "alias": "inputId"; "required": false; }; "value": { "alias": "value"; "required": false; }; "error": { "alias": "error"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "block": { "alias": "block"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; }, { "checkedChange": "checkedChange"; "focusOnPrevious": "focusOnPrevious"; }, never, ["*"], false, never>;
138
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./checkbox-new.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "../../core/directives/nas-class/nas-class.module";
6
+ export declare class CheckboxNewModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxNewModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxNewModule, [typeof i1.CheckboxNewComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NasClassModule, typeof i3.ReactiveFormsModule], [typeof i1.CheckboxNewComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxNewModule>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './checkbox-new.component';
2
+ export * from './checkbox-new.module';
@@ -222,6 +222,12 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
222
222
  * A label for the adults passenger type in the passenger select dropdown.
223
223
  */
224
224
  passengerSelectAdultsLabel: string;
225
+ /**
226
+ * @property Input
227
+ * @description
228
+ * A label for the youths passenger type in the passenger select dropdown.
229
+ */
230
+ passengerSelectYouthsLabel: string;
225
231
  /**
226
232
  * @property Input
227
233
  * @description
@@ -803,5 +809,5 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
803
809
  private setLatestSearches;
804
810
  private closeDropdowns;
805
811
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
806
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "nas-filter", never, { "airportRelations": { "alias": "airportRelations"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "allowedOriginAirports": { "alias": "allowedOriginAirports"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "passengerSelectLabel": { "alias": "passengerSelectLabel"; "required": false; }; "maxPaxCount": { "alias": "maxPaxCount"; "required": false; }; "passengers": { "alias": "passengers"; "required": false; }; "minAdultCount": { "alias": "minAdultCount"; "required": false; }; "tripSwitchRoundTripLabel": { "alias": "tripSwitchRoundTripLabel"; "required": false; }; "tripSwitchOneWayLabel": { "alias": "tripSwitchOneWayLabel"; "required": false; }; "directOnlyLabel": { "alias": "directOnlyLabel"; "required": false; }; "directTransitLabel": { "alias": "directTransitLabel"; "required": false; }; "minimizeOnMobile": { "alias": "minimizeOnMobile"; "required": false; }; "expandedAccordionMobile": { "alias": "expandedAccordionMobile"; "required": false; }; "defaultSummarySeparator": { "alias": "defaultSummarySeparator"; "required": false; }; "lastSummarySeparator": { "alias": "lastSummarySeparator"; "required": false; }; "passengerSelectTitle": { "alias": "passengerSelectTitle"; "required": false; }; "passengerSelectAdultsLabel": { "alias": "passengerSelectAdultsLabel"; "required": false; }; "passengerSelectChildrenLabel": { "alias": "passengerSelectChildrenLabel"; "required": false; }; "passengerSelectInfantsLabel": { "alias": "passengerSelectInfantsLabel"; "required": false; }; "groupBookingLabel": { "alias": "groupBookingLabel"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "editSearchTitle": { "alias": "editSearchTitle"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormControlNameTripType": { "alias": "nasFormControlNameTripType"; "required": false; }; "nasFormControlNameDirectOnly": { "alias": "nasFormControlNameDirectOnly"; "required": false; }; "nasFormControlNameOutbound": { "alias": "nasFormControlNameOutbound"; "required": false; }; "nasFormControlNameInbound": { "alias": "nasFormControlNameInbound"; "required": false; }; "nasFormControlGroupBooking": { "alias": "nasFormControlGroupBooking"; "required": false; }; "nasFormControlNameSubsidyDiscount": { "alias": "nasFormControlNameSubsidyDiscount"; "required": false; }; "overrideOrigin": { "alias": "overrideOrigin"; "required": false; }; "enableSuggestions": { "alias": "enableSuggestions"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "minimize": { "alias": "minimize"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; "tripType": { "alias": "tripType"; "required": false; }; "directOnly": { "alias": "directOnly"; "required": false; }; "groupBookingLimit": { "alias": "groupBookingLimit"; "required": false; }; "subsidyDiscounts": { "alias": "subsidyDiscounts"; "required": false; }; "selectedSubsidyDiscount": { "alias": "selectedSubsidyDiscount"; "required": false; }; "subsidyDiscountLabel": { "alias": "subsidyDiscountLabel"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "outboundLabel": { "alias": "outboundLabel"; "required": false; }; "inboundLabel": { "alias": "inboundLabel"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "outboundAvailableDates": { "alias": "outboundAvailableDates"; "required": false; }; "inboundAvailableDates": { "alias": "inboundAvailableDates"; "required": false; }; "times": { "alias": "times"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "outboundDisabled": { "alias": "outboundDisabled"; "required": false; }; "inboundDisabled": { "alias": "inboundDisabled"; "required": false; }; "enableDatepickers": { "alias": "enableDatepickers"; "required": false; }; "minimizingLabel": { "alias": "minimizingLabel"; "required": false; }; "maximizingLabel": { "alias": "maximizingLabel"; "required": false; }; "directOnlyMobileLabel": { "alias": "directOnlyMobileLabel"; "required": false; }; "orLabel": { "alias": "orLabel"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "outboundSelectedDate": { "alias": "outboundSelectedDate"; "required": false; }; "inboundSelectedDate": { "alias": "inboundSelectedDate"; "required": false; }; "enableDestinationSelect": { "alias": "enableDestinationSelect"; "required": false; }; "enablePassengersSelect": { "alias": "enablePassengersSelect"; "required": false; }; "enableTripSwitch": { "alias": "enableTripSwitch"; "required": false; }; "enableTransitSwitch": { "alias": "enableTransitSwitch"; "required": false; }; }, { "originOpenChange": "originOpenChange"; "destinationOpenChange": "destinationOpenChange"; "passengerSelectOpenChange": "passengerSelectOpenChange"; "originChange": "originChange"; "destinationChange": "destinationChange"; "passengersChange": "passengersChange"; "tripTypeChange": "tripTypeChange"; "directOnlyChange": "directOnlyChange"; "outboundSelectedDateChange": "outboundSelectedDateChange"; "inboundSelectedDateChange": "inboundSelectedDateChange"; "outboundOpenChange": "outboundOpenChange"; "inboundOpenChange": "inboundOpenChange"; "outboundMonthChange": "outboundMonthChange"; "inboundMonthChange": "inboundMonthChange"; "focusOnNextChange": "focusOnNextChange"; "positionChange": "positionChange"; "subsidyDiscountInfoClick": "subsidyDiscountInfoClick"; }, never, never, false, never>;
812
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "nas-filter", never, { "airportRelations": { "alias": "airportRelations"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "allowedOriginAirports": { "alias": "allowedOriginAirports"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "passengerSelectLabel": { "alias": "passengerSelectLabel"; "required": false; }; "maxPaxCount": { "alias": "maxPaxCount"; "required": false; }; "passengers": { "alias": "passengers"; "required": false; }; "minAdultCount": { "alias": "minAdultCount"; "required": false; }; "tripSwitchRoundTripLabel": { "alias": "tripSwitchRoundTripLabel"; "required": false; }; "tripSwitchOneWayLabel": { "alias": "tripSwitchOneWayLabel"; "required": false; }; "directOnlyLabel": { "alias": "directOnlyLabel"; "required": false; }; "directTransitLabel": { "alias": "directTransitLabel"; "required": false; }; "minimizeOnMobile": { "alias": "minimizeOnMobile"; "required": false; }; "expandedAccordionMobile": { "alias": "expandedAccordionMobile"; "required": false; }; "defaultSummarySeparator": { "alias": "defaultSummarySeparator"; "required": false; }; "lastSummarySeparator": { "alias": "lastSummarySeparator"; "required": false; }; "passengerSelectTitle": { "alias": "passengerSelectTitle"; "required": false; }; "passengerSelectAdultsLabel": { "alias": "passengerSelectAdultsLabel"; "required": false; }; "passengerSelectYouthsLabel": { "alias": "passengerSelectYouthsLabel"; "required": false; }; "passengerSelectChildrenLabel": { "alias": "passengerSelectChildrenLabel"; "required": false; }; "passengerSelectInfantsLabel": { "alias": "passengerSelectInfantsLabel"; "required": false; }; "groupBookingLabel": { "alias": "groupBookingLabel"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "editSearchTitle": { "alias": "editSearchTitle"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormControlNameTripType": { "alias": "nasFormControlNameTripType"; "required": false; }; "nasFormControlNameDirectOnly": { "alias": "nasFormControlNameDirectOnly"; "required": false; }; "nasFormControlNameOutbound": { "alias": "nasFormControlNameOutbound"; "required": false; }; "nasFormControlNameInbound": { "alias": "nasFormControlNameInbound"; "required": false; }; "nasFormControlGroupBooking": { "alias": "nasFormControlGroupBooking"; "required": false; }; "nasFormControlNameSubsidyDiscount": { "alias": "nasFormControlNameSubsidyDiscount"; "required": false; }; "overrideOrigin": { "alias": "overrideOrigin"; "required": false; }; "enableSuggestions": { "alias": "enableSuggestions"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "minimize": { "alias": "minimize"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; "tripType": { "alias": "tripType"; "required": false; }; "directOnly": { "alias": "directOnly"; "required": false; }; "groupBookingLimit": { "alias": "groupBookingLimit"; "required": false; }; "subsidyDiscounts": { "alias": "subsidyDiscounts"; "required": false; }; "selectedSubsidyDiscount": { "alias": "selectedSubsidyDiscount"; "required": false; }; "subsidyDiscountLabel": { "alias": "subsidyDiscountLabel"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "outboundLabel": { "alias": "outboundLabel"; "required": false; }; "inboundLabel": { "alias": "inboundLabel"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "outboundAvailableDates": { "alias": "outboundAvailableDates"; "required": false; }; "inboundAvailableDates": { "alias": "inboundAvailableDates"; "required": false; }; "times": { "alias": "times"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "outboundDisabled": { "alias": "outboundDisabled"; "required": false; }; "inboundDisabled": { "alias": "inboundDisabled"; "required": false; }; "enableDatepickers": { "alias": "enableDatepickers"; "required": false; }; "minimizingLabel": { "alias": "minimizingLabel"; "required": false; }; "maximizingLabel": { "alias": "maximizingLabel"; "required": false; }; "directOnlyMobileLabel": { "alias": "directOnlyMobileLabel"; "required": false; }; "orLabel": { "alias": "orLabel"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "outboundSelectedDate": { "alias": "outboundSelectedDate"; "required": false; }; "inboundSelectedDate": { "alias": "inboundSelectedDate"; "required": false; }; "enableDestinationSelect": { "alias": "enableDestinationSelect"; "required": false; }; "enablePassengersSelect": { "alias": "enablePassengersSelect"; "required": false; }; "enableTripSwitch": { "alias": "enableTripSwitch"; "required": false; }; "enableTransitSwitch": { "alias": "enableTransitSwitch"; "required": false; }; }, { "originOpenChange": "originOpenChange"; "destinationOpenChange": "destinationOpenChange"; "passengerSelectOpenChange": "passengerSelectOpenChange"; "originChange": "originChange"; "destinationChange": "destinationChange"; "passengersChange": "passengersChange"; "tripTypeChange": "tripTypeChange"; "directOnlyChange": "directOnlyChange"; "outboundSelectedDateChange": "outboundSelectedDateChange"; "inboundSelectedDateChange": "inboundSelectedDateChange"; "outboundOpenChange": "outboundOpenChange"; "inboundOpenChange": "inboundOpenChange"; "outboundMonthChange": "outboundMonthChange"; "inboundMonthChange": "inboundMonthChange"; "focusOnNextChange": "focusOnNextChange"; "positionChange": "positionChange"; "subsidyDiscountInfoClick": "subsidyDiscountInfoClick"; }, never, never, false, never>;
807
813
  }
@@ -14,7 +14,6 @@ export * from './icon/index';
14
14
  export * from './icon-list/index';
15
15
  export * from './info/index';
16
16
  export * from './input/index';
17
- export * from './input-text/index';
18
17
  export * from './simple-list/index';
19
18
  export * from './modal/index';
20
19
  export * from './number-field/index';
@@ -53,3 +52,9 @@ export * from './tag/index';
53
52
  export * from './alert/index';
54
53
  export * from './micro-button/index';
55
54
  export * from './campaign-header/index';
55
+ export * from './button-new/index';
56
+ export * from './checkbox-new/index';
57
+ export * from './input-text/index';
58
+ export * from './number-field-new/index';
59
+ export * from './radio-new/index';
60
+ export * from './slide-toggle-new/index';
@@ -0,0 +1,2 @@
1
+ export * from './number-field-new.component';
2
+ export * from './number-field-new.module';
@@ -0,0 +1,5 @@
1
+ export interface NumberFieldNewModel {
2
+ icon: string;
3
+ styling: string;
4
+ disabled: boolean;
5
+ }
@@ -0,0 +1,116 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { EventEmitter, ElementRef, OnInit } from '@angular/core';
6
+ import { NasComponentBase } from '../../core/base/nas-component.base';
7
+ import { FormGroup } from '@angular/forms';
8
+ import { NumberFieldNewModel } from './models/number-field-new.model';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * @description
12
+ * Norwegian Number field Component | New design | Beta
13
+ */
14
+ export declare class NumberFieldNewComponent extends NasComponentBase implements OnInit {
15
+ input: ElementRef;
16
+ /**
17
+ * @property Input
18
+ * @description
19
+ * The selected number.
20
+ */
21
+ get number(): number;
22
+ set number(number: number);
23
+ /**
24
+ * @property Input
25
+ * @description
26
+ * Maximum limit.
27
+ */
28
+ max: number;
29
+ /**
30
+ * @property Input
31
+ * @description
32
+ * Minimum limit.
33
+ */
34
+ min: number;
35
+ /**
36
+ * @property Input
37
+ * @description
38
+ * A label for the number field input.
39
+ */
40
+ label: string;
41
+ /**
42
+ * @property Input
43
+ * @description
44
+ * Sets compact styling.
45
+ */
46
+ compact?: boolean;
47
+ /**
48
+ * @property Input
49
+ * @description
50
+ * Sets spaceless styling.
51
+ */
52
+ spaceless?: boolean;
53
+ /**
54
+ * @property Input
55
+ * @description
56
+ * Sets simple styling.
57
+ */
58
+ simple?: boolean;
59
+ /**
60
+ * @property Input
61
+ * @description
62
+ * Sets a formControlName directive to the input.
63
+ * It requires that the consumer included ReactiveFormsModule in it's module.
64
+ * It requiers that the nasFormGroup input is filled.
65
+ */
66
+ nasFormControlName: string;
67
+ /**
68
+ * @property Input
69
+ * @description
70
+ * Adds the parent's form group.
71
+ * It requires that the consumer included ReactiveFormsModule in it's module.
72
+ * It is requiered to be filled if nasFormControlName added.
73
+ */
74
+ nasFormGroup: FormGroup;
75
+ /**
76
+ * @property Input
77
+ * @description
78
+ * Hides the input field and displays a plus and minus button only.
79
+ */
80
+ hideInput?: boolean;
81
+ /**
82
+ * @property Input
83
+ * @description
84
+ * ARIA label for the subtract button.
85
+ */
86
+ ariaLabelSubtract: string;
87
+ /**
88
+ * @property Input
89
+ * @description
90
+ * ARIA label for the add button.
91
+ */
92
+ ariaLabelAdd: string;
93
+ /**
94
+ * @property Input
95
+ * @description
96
+ * ARIA label for the input field.
97
+ */
98
+ ariaLabel: string;
99
+ /**
100
+ * @property Output
101
+ * @description
102
+ * An event that is fired every time the number changes.
103
+ */
104
+ numberChange: EventEmitter<number>;
105
+ private numberValue;
106
+ constructor();
107
+ ngOnInit(): void;
108
+ inputFocus(): void;
109
+ add(): void;
110
+ subtract(): void;
111
+ private patchReactiveFormControlValue;
112
+ getPlusConfig(): NumberFieldNewModel;
113
+ getMinusConfig(): NumberFieldNewModel;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberFieldNewComponent, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberFieldNewComponent, "nas-number-field-new", never, { "number": { "alias": "number"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "label": { "alias": "label"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "hideInput": { "alias": "hideInput"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "numberChange": "numberChange"; }, never, never, false, never>;
116
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./number-field-new.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
+ import * as i5 from "../button/button.module";
7
+ import * as i6 from "@angular/forms";
8
+ export declare class NumberFieldNewModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberFieldNewModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumberFieldNewModule, [typeof i1.NumberFieldNewComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.IconModule, typeof i5.ButtonModule, typeof i6.ReactiveFormsModule, typeof i6.FormsModule], [typeof i1.NumberFieldNewComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<NumberFieldNewModule>;
12
+ }