@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
|
@@ -11,210 +11,213 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class AccordionComponent extends NasComponentBase implements OnInit {
|
|
13
13
|
/**
|
|
14
|
+
* @property Input
|
|
14
15
|
* @description
|
|
15
16
|
* Boolean to set if accordion should be expanded or not. Default value is false.
|
|
16
|
-
|
|
17
|
+
*/
|
|
17
18
|
expanded: boolean;
|
|
18
19
|
/**
|
|
20
|
+
* @property Input
|
|
19
21
|
* @description
|
|
20
22
|
* A string input value to set title text of component.
|
|
21
23
|
* @example
|
|
22
|
-
* ```html
|
|
23
24
|
* <nas-accordion [title]="'This is a title'">You can put any kind of elements and content here...</nas-accordion>
|
|
24
|
-
|
|
25
|
-
*/
|
|
25
|
+
*/
|
|
26
26
|
title: string;
|
|
27
27
|
/**
|
|
28
|
+
* @property Input
|
|
28
29
|
* @description
|
|
29
30
|
* A string input value to set subheader text of component.
|
|
30
31
|
* @example
|
|
31
|
-
* ```html
|
|
32
32
|
* <nas-accordion [subheader]="'This is a subheader'">You can put any kind of elements and content here...</nas-accordion>
|
|
33
|
-
|
|
34
|
-
*/
|
|
33
|
+
*/
|
|
35
34
|
subheader: string;
|
|
36
35
|
/**
|
|
36
|
+
* @property Input
|
|
37
|
+
* @description
|
|
38
|
+
* A string input value to set text to the badge of component.
|
|
39
|
+
* @example
|
|
40
|
+
* <nas-accordion [title]="'This is a title'" [badge]="'Text to the badge'">You can put any kind of elements and content here...</nas-accordion>
|
|
41
|
+
*/
|
|
42
|
+
badge: string;
|
|
43
|
+
/**
|
|
44
|
+
* @property Input
|
|
37
45
|
* @description
|
|
38
46
|
* A string input value to set icon text of component. Specifies the icon name, defaults to 'small'.
|
|
39
47
|
* @example
|
|
40
|
-
* ```html
|
|
41
48
|
* <nas-accordion [icon]="'small'">You can put any kind of elements and content here...</nas-accordion>
|
|
42
|
-
|
|
43
|
-
*/
|
|
49
|
+
*/
|
|
44
50
|
icon: string;
|
|
45
51
|
/**
|
|
52
|
+
* @property Input
|
|
46
53
|
* @description
|
|
47
54
|
* A boolean input value to set simple styling.
|
|
48
55
|
* @example
|
|
49
|
-
* ```html
|
|
50
56
|
* <nas-accordion simple>You can put any kind of elements and content here...</nas-accordion>
|
|
51
|
-
* ```
|
|
52
57
|
* or
|
|
53
|
-
* ```html
|
|
54
58
|
* <nas-accordion [simple]="isSimpleProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
55
|
-
|
|
56
|
-
*/
|
|
59
|
+
*/
|
|
57
60
|
simple?: boolean;
|
|
58
61
|
/**
|
|
62
|
+
* @property Input
|
|
59
63
|
* @description
|
|
60
64
|
* A boolean input value to set spaced styling.
|
|
61
65
|
* @example
|
|
62
|
-
* ```html
|
|
63
66
|
* <nas-accordion spaced>You can put any kind of elements and content here...</nas-accordion>
|
|
64
|
-
* ```
|
|
65
67
|
* or
|
|
66
|
-
* ```html
|
|
67
68
|
* <nas-accordion [spaced]="isSpacedProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
68
|
-
|
|
69
|
-
*/
|
|
69
|
+
*/
|
|
70
70
|
spaced?: boolean;
|
|
71
71
|
/**
|
|
72
|
+
* @property Input
|
|
72
73
|
* @description
|
|
73
74
|
* A boolean input value to set small styling.
|
|
74
75
|
* @example
|
|
75
|
-
* ```html
|
|
76
76
|
* <nas-accordion small>You can put any kind of elements and content here...</nas-accordion>
|
|
77
|
-
* ```
|
|
78
77
|
* or
|
|
79
|
-
* ```html
|
|
80
78
|
* <nas-accordion [small]="isSmallProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
81
|
-
|
|
82
|
-
*/
|
|
79
|
+
*/
|
|
83
80
|
small?: boolean;
|
|
84
81
|
/**
|
|
82
|
+
* @property Input
|
|
85
83
|
* @description
|
|
86
84
|
* A boolean input value to set inverted styling.
|
|
87
85
|
* @example
|
|
88
|
-
* ```html
|
|
89
86
|
* <nas-accordion inverted>You can put any kind of elements and content here...</nas-accordion>
|
|
90
|
-
* ```
|
|
91
87
|
* or
|
|
92
|
-
* ```html
|
|
93
88
|
* <nas-accordion [inverted]="isInvertedProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
94
|
-
|
|
95
|
-
*/
|
|
89
|
+
*/
|
|
96
90
|
inverted?: boolean;
|
|
97
91
|
/**
|
|
92
|
+
* @property Input
|
|
98
93
|
* @description
|
|
99
94
|
* A boolean input value to set a container on the toggle.
|
|
100
95
|
* @example
|
|
101
|
-
* ```html
|
|
102
96
|
* <nas-accordion containerOnToggle>You can put any kind of elements and content here...</nas-accordion>
|
|
103
|
-
* ```
|
|
104
97
|
* or
|
|
105
|
-
* ```html
|
|
106
98
|
* <nas-accordion [containerOnToggle]="isContainerOnToggleProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
107
|
-
|
|
108
|
-
*/
|
|
99
|
+
*/
|
|
109
100
|
containerOnToggle?: boolean;
|
|
110
101
|
/**
|
|
102
|
+
* @property Input
|
|
111
103
|
* @description
|
|
112
104
|
* A boolean input value to remove padding on accodion.
|
|
113
105
|
* @example
|
|
114
|
-
* ```html
|
|
115
106
|
* <nas-accordion nopadding>You can put any kind of elements and content here...</nas-accordion>
|
|
116
|
-
* ```
|
|
117
107
|
* or
|
|
118
|
-
* ```html
|
|
119
108
|
* <nas-accordion [nopadding]="includePaddingProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
120
|
-
|
|
121
|
-
*/
|
|
109
|
+
*/
|
|
122
110
|
nopadding?: boolean;
|
|
123
111
|
/**
|
|
112
|
+
* @property Input
|
|
124
113
|
* @description
|
|
125
114
|
* A boolean input value to set transparent background color.
|
|
126
115
|
* @example
|
|
127
|
-
* ```html
|
|
128
116
|
* <nas-accordion transparent>You can put any kind of elements and content here...</nas-accordion>
|
|
129
|
-
* ```
|
|
130
117
|
* or
|
|
131
|
-
* ```html
|
|
132
118
|
* <nas-accordion [transparent]="isTransparentProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
133
|
-
|
|
134
|
-
*/
|
|
119
|
+
*/
|
|
135
120
|
transparent?: boolean;
|
|
136
121
|
/**
|
|
122
|
+
* @property Input
|
|
137
123
|
* @description
|
|
138
124
|
* A boolean input value to set the accordion to approve style.
|
|
139
125
|
* @example
|
|
140
|
-
* ```html
|
|
141
126
|
* <nas-accordion approve>You can put any kind of elements and content here...</nas-accordion>
|
|
142
|
-
* ```
|
|
143
127
|
* or
|
|
144
|
-
* ```html
|
|
145
128
|
* <nas-accordion [approve]="isApproveProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
146
|
-
|
|
147
|
-
*/
|
|
129
|
+
*/
|
|
148
130
|
approve?: boolean;
|
|
149
131
|
/**
|
|
132
|
+
* @property Input
|
|
150
133
|
* @description
|
|
151
134
|
* A boolean input value to set the accordion to primary style.
|
|
152
135
|
* @example
|
|
153
|
-
* ```html
|
|
154
136
|
* <nas-accordion primary>You can put any kind of elements and content here...</nas-accordion>
|
|
155
|
-
* ```
|
|
156
137
|
* or
|
|
157
|
-
* ```html
|
|
158
138
|
* <nas-accordion [primary]="isPrimaryProperty">You can put any kind of elements and content here...</nas-accordion>
|
|
159
|
-
|
|
160
|
-
*/
|
|
139
|
+
*/
|
|
161
140
|
primary?: boolean;
|
|
162
141
|
/**
|
|
142
|
+
* @property Input
|
|
143
|
+
* @description
|
|
163
144
|
* A boolean input value to set the accordion to info style.
|
|
164
145
|
* @example
|
|
165
|
-
* ```html
|
|
166
146
|
* <nas-accordion info>You can put any kind of elements and content here...</nas-accordion>
|
|
167
|
-
|
|
168
|
-
*/
|
|
147
|
+
*/
|
|
169
148
|
info?: boolean;
|
|
170
149
|
/**
|
|
150
|
+
* @property Input
|
|
151
|
+
* @description
|
|
171
152
|
* A boolean input value to set the accordion to subheader positive style.
|
|
172
153
|
* @example
|
|
173
|
-
* ```html
|
|
174
154
|
* <nas-accordion subheader="This is subheader" subheaderPositive>You can put any kind of elements and content here...</nas-accordion>
|
|
175
|
-
* ```
|
|
176
155
|
*/
|
|
177
156
|
subheaderPositive?: boolean;
|
|
178
157
|
/**
|
|
158
|
+
* @property Input
|
|
159
|
+
* @description
|
|
179
160
|
* A boolean input value to set the accordion to subheader negative style.
|
|
180
161
|
* @example
|
|
181
|
-
* ```html
|
|
182
162
|
* <nas-accordion subheader="This is subheader" subheaderNegative>You can put any kind of elements and content here...</nas-accordion>
|
|
183
|
-
|
|
184
|
-
*/
|
|
163
|
+
*/
|
|
185
164
|
subheaderNegative?: boolean;
|
|
186
165
|
/**
|
|
166
|
+
* @property Input
|
|
167
|
+
* @description
|
|
168
|
+
* A boolean input value to set the accordion to badge info style.
|
|
169
|
+
* @example
|
|
170
|
+
* <nas-accordion badge="Info" badgeInfo>You can put any kind of elements and content here...</nas-accordion>
|
|
171
|
+
*/
|
|
172
|
+
badgeInfo?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* @property Input
|
|
175
|
+
* @description
|
|
176
|
+
* A boolean input value to set the accordion to badge success style.
|
|
177
|
+
* @example
|
|
178
|
+
* <nas-accordion badge="Success" badgeSuccess>You can put any kind of elements and content here...</nas-accordion>
|
|
179
|
+
*/
|
|
180
|
+
badgeSuccess?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* @property Input
|
|
183
|
+
* @description
|
|
184
|
+
* A boolean input value to set the accordion to badge warning style.
|
|
185
|
+
* @example
|
|
186
|
+
* <nas-accordion badge="Warning" badgeWarning>You can put any kind of elements and content here...</nas-accordion>
|
|
187
|
+
*/
|
|
188
|
+
badgeWarning?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* @property Input
|
|
191
|
+
* @description
|
|
192
|
+
* A boolean input value to set the accordion to badge error style.
|
|
193
|
+
* @example
|
|
194
|
+
* <nas-accordion badge="Error" badgeError>You can put any kind of elements and content here...</nas-accordion>
|
|
195
|
+
*/
|
|
196
|
+
badgeError?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* @property Input
|
|
187
199
|
* @description
|
|
188
200
|
* Adds custom CSS class to the accordion. Accordion will sett additional custom styling.
|
|
189
201
|
*
|
|
190
202
|
* @example
|
|
191
|
-
*
|
|
192
|
-
* ```html
|
|
193
203
|
* <nas-accordion [cssClass]="'my-custom-class'">You can put any kind of elements and content here...</nas-accordion>
|
|
194
|
-
|
|
195
|
-
*
|
|
196
|
-
*/
|
|
204
|
+
*/
|
|
197
205
|
cssClass?: ClassModel;
|
|
198
206
|
/**
|
|
207
|
+
* @property Input
|
|
199
208
|
* @description
|
|
200
209
|
* Property to set custom styling on accordion.
|
|
201
|
-
*
|
|
202
210
|
* @example
|
|
203
|
-
*
|
|
204
|
-
* ```html
|
|
205
211
|
* <nas-accordion [cssStyle]="{'width': '300px', 'height': '40px'}}">You can put any kind of elements and content here...</nas-accordion>
|
|
206
|
-
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
212
|
+
*/
|
|
209
213
|
cssStyle: any;
|
|
210
214
|
/**
|
|
215
|
+
* @property Output
|
|
211
216
|
* @description
|
|
212
217
|
* A boolean event that is fired on toggle.
|
|
213
218
|
* @example
|
|
214
|
-
* ```html
|
|
215
219
|
* <nas-accordion (toggleChange)="onToggleChange($event)">You can put any kind of elements and content here...</nas-accordion>
|
|
216
|
-
|
|
217
|
-
*/
|
|
220
|
+
*/
|
|
218
221
|
toggleChange: EventEmitter<boolean>;
|
|
219
222
|
private animateIn;
|
|
220
223
|
private animateOut;
|
|
@@ -232,5 +235,5 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
232
235
|
toggle(): void;
|
|
233
236
|
setHeaderType(): void;
|
|
234
237
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
235
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "nas-accordion", never, { "expanded": { "alias": "expanded"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subheader": { "alias": "subheader"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "spaced": { "alias": "spaced"; "required": false; }; "small": { "alias": "small"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "containerOnToggle": { "alias": "containerOnToggle"; "required": false; }; "nopadding": { "alias": "nopadding"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "approve": { "alias": "approve"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "info": { "alias": "info"; "required": false; }; "subheaderPositive": { "alias": "subheaderPositive"; "required": false; }; "subheaderNegative": { "alias": "subheaderNegative"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, ["*"], false, never>;
|
|
238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "nas-accordion", never, { "expanded": { "alias": "expanded"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subheader": { "alias": "subheader"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "spaced": { "alias": "spaced"; "required": false; }; "small": { "alias": "small"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "containerOnToggle": { "alias": "containerOnToggle"; "required": false; }; "nopadding": { "alias": "nopadding"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "approve": { "alias": "approve"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "info": { "alias": "info"; "required": false; }; "subheaderPositive": { "alias": "subheaderPositive"; "required": false; }; "subheaderNegative": { "alias": "subheaderNegative"; "required": false; }; "badgeInfo": { "alias": "badgeInfo"; "required": false; }; "badgeSuccess": { "alias": "badgeSuccess"; "required": false; }; "badgeWarning": { "alias": "badgeWarning"; "required": false; }; "badgeError": { "alias": "badgeError"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, ["*"], false, never>;
|
|
236
239
|
}
|
package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { NasComponentBase } from '../../../core/base/nas-component.base';
|
|
4
4
|
import { GeolocationService } from '../../../core/services/geolocation/geolocation.service';
|
|
5
5
|
import { AirportModel } from '../models/airport.model';
|
|
@@ -38,7 +38,7 @@ export declare class AirportSelectDropdownComponent extends NasComponentBase imp
|
|
|
38
38
|
airportSelectIconModifier: string;
|
|
39
39
|
keepSelection: boolean;
|
|
40
40
|
nasFormControlName: string;
|
|
41
|
-
nasFormGroup:
|
|
41
|
+
nasFormGroup: FormGroup;
|
|
42
42
|
enableGeolocation?: boolean;
|
|
43
43
|
ariaLabelClear: string;
|
|
44
44
|
ariaLabelBackdrop: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { AirportModel } from './models/airport.model';
|
|
6
6
|
import { ClassModel } from '../../core/models/class.model';
|
|
7
7
|
import { EventEmitter, ElementRef, OnInit } from '@angular/core';
|
|
8
|
-
import {
|
|
8
|
+
import { FormGroup } from '@angular/forms';
|
|
9
9
|
import { NasComponentBase } from '../../core';
|
|
10
10
|
import { ResultsLabelsModel } from './models/results-labels.model';
|
|
11
11
|
import { AirportSelectDropdownComponent } from './airport-select-dropdown/airport-select-dropdown.component';
|
|
@@ -36,126 +36,150 @@ export declare class AirportSelectComponent extends NasComponentBase implements
|
|
|
36
36
|
origin: AirportModel;
|
|
37
37
|
destination: AirportModel;
|
|
38
38
|
/**
|
|
39
|
+
* @property Input
|
|
39
40
|
* @required
|
|
40
41
|
* @description
|
|
41
42
|
* All airports that will be populated into the dropdown lists.
|
|
42
43
|
*/
|
|
43
44
|
airports: Array<AirportModel>;
|
|
44
45
|
/**
|
|
46
|
+
* @property Input
|
|
45
47
|
* @description
|
|
46
48
|
* A record containing keys with all airport codes with corresponding array of airport codes connected to the key.
|
|
47
49
|
*/
|
|
48
50
|
airportRelations: Record<string, Array<string>>;
|
|
49
51
|
/**
|
|
52
|
+
* @property Input
|
|
50
53
|
* @description
|
|
51
54
|
* An array of origin airports that the user has allready search for.
|
|
52
55
|
*/
|
|
53
56
|
latestSearchesOrigin: Array<AirportModel>;
|
|
54
57
|
/**
|
|
58
|
+
* @property Input
|
|
55
59
|
* @description
|
|
56
60
|
* An array of destination airports that the user has allready search for.
|
|
57
61
|
*/
|
|
58
62
|
latestSearchesDestination: Array<AirportModel>;
|
|
59
63
|
/**
|
|
64
|
+
* @property Input
|
|
60
65
|
* @description
|
|
61
66
|
* An array of airports that are close to the user.
|
|
62
67
|
*/
|
|
63
68
|
closestAirports: Array<AirportModel>;
|
|
64
69
|
/**
|
|
70
|
+
* @property Input
|
|
65
71
|
* @description
|
|
66
72
|
* A list of airports that should be displayed in the origin dropdown.
|
|
67
73
|
* If not included, all airports will be displayed.
|
|
68
74
|
*/
|
|
69
75
|
allowedOriginAiports: Array<AirportModel>;
|
|
70
76
|
/**
|
|
77
|
+
* @property Input
|
|
71
78
|
* @description
|
|
72
79
|
* An array of airports that are restricted for destination airports. It will default to airports if not set.
|
|
73
80
|
*/
|
|
74
81
|
allowedDestinationAirports: Array<AirportModel>;
|
|
75
82
|
/**
|
|
83
|
+
* @property Input
|
|
76
84
|
* @description
|
|
77
85
|
* A boolean indicating if airports that the user allready has searh for should be displayed.
|
|
78
86
|
*/
|
|
79
87
|
displayLatestSearches?: boolean;
|
|
80
88
|
/**
|
|
89
|
+
* @property Input
|
|
81
90
|
* @description
|
|
82
91
|
* A boolean indicating if airports that are close to the user should be displayed.
|
|
83
92
|
*/
|
|
84
93
|
displayClosestAirports?: boolean;
|
|
85
94
|
/**
|
|
95
|
+
* @property Input
|
|
86
96
|
* @description
|
|
87
97
|
* Display both orgin and destination airport selector.
|
|
88
98
|
*/
|
|
89
99
|
combo?: boolean;
|
|
90
100
|
/**
|
|
101
|
+
* @property Input
|
|
91
102
|
* @description
|
|
92
103
|
* Display switch UI to interchange origin and destination airport.
|
|
93
104
|
*/
|
|
94
105
|
useSwitch?: boolean;
|
|
95
106
|
/**
|
|
107
|
+
* @property Input
|
|
96
108
|
* @description
|
|
97
109
|
* A label that will appear on top of all airports in the drop down list.
|
|
98
110
|
*/
|
|
99
111
|
allAirportsLabel: string;
|
|
100
112
|
/**
|
|
113
|
+
* @property Input
|
|
101
114
|
* @description
|
|
102
115
|
* A label that will appear on top of the latest searches in the drop down list.
|
|
103
116
|
*/
|
|
104
117
|
latestSearchesLabel: string;
|
|
105
118
|
/**
|
|
119
|
+
* @property Input
|
|
106
120
|
* @description
|
|
107
121
|
* A label that will appear on top of the closest airports in the drop down list.
|
|
108
122
|
*/
|
|
109
123
|
closestAirportsLabel: string;
|
|
110
124
|
/**
|
|
125
|
+
* @property Input
|
|
111
126
|
* @description
|
|
112
127
|
* A label that will appear in my location in the drop down list.
|
|
113
128
|
*/
|
|
114
129
|
geolocationLabel: string;
|
|
115
130
|
/**
|
|
131
|
+
* @property Input
|
|
116
132
|
* @description
|
|
117
133
|
* A label that will appear in my location, in the drop down list if user has denied geolocation.
|
|
118
134
|
*/
|
|
119
135
|
geolocationBlockedLabel: string;
|
|
120
136
|
/**
|
|
137
|
+
* @property Input
|
|
121
138
|
* @description
|
|
122
139
|
* A label that will appear in the destination input field if the
|
|
123
140
|
* user tries to select a destination airport without selecting an origin airport.
|
|
124
141
|
*/
|
|
125
142
|
selectOriginFirstLabel: string;
|
|
126
143
|
/**
|
|
144
|
+
* @property Input
|
|
127
145
|
* @description
|
|
128
146
|
* A text that appears in the destinations dropdown list when origin airport is not set.
|
|
129
147
|
*/
|
|
130
148
|
invalidDestinationText: string;
|
|
131
149
|
/**
|
|
150
|
+
* @property Input
|
|
132
151
|
* @required
|
|
133
152
|
* @description
|
|
134
153
|
* A label that will appear on top of the origin airport input field.
|
|
135
154
|
*/
|
|
136
155
|
labelOrigin: string;
|
|
137
156
|
/**
|
|
157
|
+
* @property Input
|
|
138
158
|
* @description
|
|
139
159
|
* A placeholder that will appear on the origin airport input field.
|
|
140
160
|
*/
|
|
141
161
|
placeholderOrigin: string;
|
|
142
162
|
/**
|
|
163
|
+
* @property Input
|
|
143
164
|
* @description
|
|
144
165
|
* A label that will appear on top of the destination airport input field.
|
|
145
166
|
*/
|
|
146
167
|
labelDestination: string;
|
|
147
168
|
/**
|
|
169
|
+
* @property Input
|
|
148
170
|
* @description
|
|
149
171
|
* A placeholder that will appear on the destination airport input field.
|
|
150
172
|
*/
|
|
151
173
|
placeholderDestination: string;
|
|
152
174
|
/**
|
|
175
|
+
* @property Input
|
|
153
176
|
* @description
|
|
154
177
|
* A modifier that will allow always keeping the selected airport.
|
|
155
178
|
* The last selected airport will be shown once user clears the selection and blur.
|
|
156
179
|
*/
|
|
157
180
|
keepSelection: boolean;
|
|
158
181
|
/**
|
|
182
|
+
* @property Input
|
|
159
183
|
* @description
|
|
160
184
|
* Sets a formControlName directive to the input.
|
|
161
185
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -163,6 +187,7 @@ export declare class AirportSelectComponent extends NasComponentBase implements
|
|
|
163
187
|
*/
|
|
164
188
|
nasFormControlNameOrigin: string;
|
|
165
189
|
/**
|
|
190
|
+
* @property Input
|
|
166
191
|
* @description
|
|
167
192
|
* Sets a formControlName directive to the input.
|
|
168
193
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -170,60 +195,71 @@ export declare class AirportSelectComponent extends NasComponentBase implements
|
|
|
170
195
|
*/
|
|
171
196
|
nasFormControlNameDestination: string;
|
|
172
197
|
/**
|
|
198
|
+
* @property Input
|
|
173
199
|
* @description
|
|
174
200
|
* Adds the parent's form group.
|
|
175
201
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
176
202
|
* It is requiered to be filled if nasFormControlName added.
|
|
177
203
|
*/
|
|
178
|
-
nasFormGroup:
|
|
204
|
+
nasFormGroup: FormGroup;
|
|
179
205
|
/**
|
|
206
|
+
* @property Input
|
|
180
207
|
* @description
|
|
181
208
|
* The airport code of the origin airport. It will set the selected origin airport based on this value.
|
|
182
209
|
*/
|
|
183
210
|
get originAirportCode(): string;
|
|
184
211
|
set originAirportCode(code: string);
|
|
185
212
|
/**
|
|
213
|
+
* @property Input
|
|
186
214
|
* @description
|
|
187
215
|
* The airport code of the destination airport. It will set the selected destination airport based on this value.
|
|
188
216
|
*/
|
|
189
217
|
get destinationAirportCode(): string;
|
|
190
218
|
set destinationAirportCode(code: string);
|
|
191
219
|
/**
|
|
220
|
+
* @property Input
|
|
192
221
|
* @description
|
|
193
222
|
* Adds 'aria-label' on the clear button inside the airport select inputs.
|
|
194
223
|
*/
|
|
195
224
|
ariaLabelClear: string;
|
|
196
225
|
/**
|
|
226
|
+
* @property Input
|
|
197
227
|
* @description
|
|
198
228
|
* Adds 'aria-label' to the backdrops.
|
|
199
229
|
*/
|
|
200
230
|
ariaLabelBackdrop: string;
|
|
201
231
|
/**
|
|
232
|
+
* @property Output
|
|
202
233
|
* @description
|
|
203
234
|
* An event that is fired every time the selected origin airport changes.
|
|
204
235
|
*/
|
|
205
236
|
originChange: EventEmitter<AirportModel>;
|
|
206
237
|
/**
|
|
238
|
+
* @property Output
|
|
207
239
|
* @description
|
|
208
240
|
* An event that is fired every time the origin dropdown selector opens or closes.
|
|
209
241
|
*/
|
|
210
242
|
originOpenChange: EventEmitter<boolean>;
|
|
211
243
|
/**
|
|
244
|
+
* @property Output
|
|
212
245
|
* @description
|
|
213
246
|
* An event that is fired every time the origin dropdown selector opens or closes.
|
|
214
247
|
*/
|
|
215
248
|
destinationChange: EventEmitter<AirportModel>;
|
|
216
249
|
/**
|
|
250
|
+
* @property Output
|
|
217
251
|
* @description
|
|
218
252
|
* An event that is fired every time the destination dropdown selector opens or closes.
|
|
219
253
|
*/
|
|
220
254
|
destinationOpenChange: EventEmitter<boolean>;
|
|
221
255
|
/**
|
|
256
|
+
* @property Output
|
|
222
257
|
* @description
|
|
223
258
|
* An event that is fired when the destination dropdown closes.
|
|
224
259
|
*/
|
|
225
260
|
focusOnNext: EventEmitter<KeyboardEvent>;
|
|
226
261
|
/**
|
|
262
|
+
* @property Output
|
|
227
263
|
* @description
|
|
228
264
|
* An event that is fired when geolocation position has changed.
|
|
229
265
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { AutocompleteModel } from './models/autocomplete.model';
|
|
6
6
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
7
7
|
import { NasComponentBase } from '../../core';
|
|
8
|
-
import {
|
|
8
|
+
import { FormGroup } from '@angular/forms';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* @description
|
|
@@ -20,44 +20,52 @@ export declare class AutocompleteComponent extends NasComponentBase implements O
|
|
|
20
20
|
input: ElementRef;
|
|
21
21
|
results: ElementRef;
|
|
22
22
|
/**
|
|
23
|
+
* @property Input
|
|
23
24
|
* @description
|
|
24
25
|
* A label that will appear inside the text field.
|
|
25
26
|
*/
|
|
26
27
|
label: string;
|
|
27
28
|
/**
|
|
29
|
+
* @property Input
|
|
28
30
|
* @description
|
|
29
31
|
* A placeholder that will appear inside the text field.
|
|
30
32
|
*/
|
|
31
33
|
placeholder: string;
|
|
32
34
|
/**
|
|
35
|
+
* @property Input
|
|
33
36
|
* @description
|
|
34
37
|
* An icon that will appear inside the text field.
|
|
35
38
|
*/
|
|
36
39
|
icon: string;
|
|
37
40
|
/**
|
|
41
|
+
* @property Input
|
|
38
42
|
* @description
|
|
39
43
|
* An array of items that will appear inside the dropdown list.
|
|
40
44
|
*/
|
|
41
45
|
get items(): Array<AutocompleteModel>;
|
|
42
46
|
set items(items: Array<AutocompleteModel>);
|
|
43
47
|
/**
|
|
48
|
+
* @property Input
|
|
44
49
|
* @description
|
|
45
50
|
* Can set and listen to wheather the dropdown list is or should be open or not.
|
|
46
51
|
*/
|
|
47
52
|
get open(): boolean;
|
|
48
53
|
set open(open: boolean);
|
|
49
54
|
/**
|
|
55
|
+
* @property Input
|
|
50
56
|
* @description
|
|
51
57
|
* Can set and listen to changes in the model of the text field.
|
|
52
58
|
*/
|
|
53
59
|
get model(): string;
|
|
54
60
|
set model(model: string);
|
|
55
61
|
/**
|
|
62
|
+
* @property Input
|
|
56
63
|
* @description
|
|
57
64
|
* Disables the backdrop on focus.
|
|
58
65
|
*/
|
|
59
66
|
disableBackdrop: boolean;
|
|
60
67
|
/**
|
|
68
|
+
* @property Input
|
|
61
69
|
* @description
|
|
62
70
|
* Sets a formControlName directive to the input.
|
|
63
71
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
@@ -65,28 +73,33 @@ export declare class AutocompleteComponent extends NasComponentBase implements O
|
|
|
65
73
|
*/
|
|
66
74
|
nasFormControlName: string;
|
|
67
75
|
/**
|
|
76
|
+
* @property Input
|
|
68
77
|
* @description
|
|
69
78
|
* Adds the parent's form group.
|
|
70
79
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
71
80
|
* It is requiered to be filled if nasFormControlName added.
|
|
72
81
|
*/
|
|
73
|
-
nasFormGroup:
|
|
82
|
+
nasFormGroup: FormGroup;
|
|
74
83
|
/**
|
|
84
|
+
* @property Input
|
|
75
85
|
* @description
|
|
76
86
|
* Adds an aria-label attribute to the backdrop button.
|
|
77
87
|
*/
|
|
78
88
|
ariaLabelBackdrop: string;
|
|
79
89
|
/**
|
|
90
|
+
* @property Input
|
|
80
91
|
* @description
|
|
81
92
|
* Adds 'aria-label' on the clear button inside input.
|
|
82
93
|
*/
|
|
83
94
|
ariaLabelClear: string;
|
|
84
95
|
/**
|
|
96
|
+
* @property Output
|
|
85
97
|
* @description
|
|
86
98
|
* Is fired when the next element should be focused.
|
|
87
99
|
*/
|
|
88
100
|
focusOnNext: EventEmitter<any>;
|
|
89
101
|
/**
|
|
102
|
+
* @property Output
|
|
90
103
|
* @description
|
|
91
104
|
* Is fired when the user selects an item in the dropdown list.
|
|
92
105
|
*/
|
|
@@ -12,17 +12,20 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class BackdropComponent extends NasComponentBase implements OnInit {
|
|
13
13
|
show: boolean;
|
|
14
14
|
/**
|
|
15
|
+
* @property Output
|
|
15
16
|
* @description
|
|
16
17
|
* Event emmitted when showBackdrop is changed.
|
|
17
18
|
*/
|
|
18
19
|
showBackdropChange: EventEmitter<boolean>;
|
|
19
20
|
/**
|
|
21
|
+
* @property Input
|
|
20
22
|
* @description
|
|
21
23
|
* backdrop show/hide.
|
|
22
24
|
*/
|
|
23
25
|
get showBackdrop(): boolean;
|
|
24
26
|
set showBackdrop(value: boolean);
|
|
25
27
|
/**
|
|
28
|
+
* @property Input
|
|
26
29
|
* @description
|
|
27
30
|
* Adds an aria-label attribute to the button
|
|
28
31
|
*/
|