@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
|
@@ -16,156 +16,142 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
|
|
|
16
16
|
journeyModel: JourneyModel;
|
|
17
17
|
journeyStopoverModelArray: JourneyStopoverModel;
|
|
18
18
|
/**
|
|
19
|
+
* @property Input
|
|
19
20
|
* @description
|
|
20
21
|
* A record containing trip summary record.
|
|
21
22
|
* @required
|
|
22
23
|
* @example
|
|
23
|
-
* ```html
|
|
24
24
|
* <nas-trip-summary [tripSummaryModel]="tripSummaryModel"></nas-trip-summary>
|
|
25
|
-
|
|
26
|
-
*/
|
|
25
|
+
*/
|
|
27
26
|
tripSummaryModel: TripSummaryModel;
|
|
28
27
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*/
|
|
28
|
+
* @property Input
|
|
29
|
+
* @description
|
|
30
|
+
* A boolean vlaue to set whether the trip summary details are expanded/minimized.
|
|
31
|
+
* Default is false
|
|
32
|
+
* @example
|
|
33
|
+
* <nas-trip-summary [expanded]="true"></nas-trip-summary>
|
|
34
|
+
*/
|
|
37
35
|
expanded: boolean;
|
|
38
36
|
/**
|
|
37
|
+
* @property Input
|
|
39
38
|
* @description
|
|
40
39
|
* A boolean value to enable expanding/collapsing the trip summary details. Default value is false
|
|
41
40
|
* @example
|
|
42
|
-
* ```html
|
|
43
41
|
* <nas-trip-summary [collapsable]="true"></nas-trip-summary>
|
|
44
|
-
|
|
45
|
-
*/
|
|
42
|
+
*/
|
|
46
43
|
collapsable: boolean;
|
|
47
44
|
/**
|
|
45
|
+
* @property Input
|
|
48
46
|
* @description
|
|
49
47
|
* A boolean value to show minimum summary.
|
|
50
48
|
* @example
|
|
51
|
-
* ```html
|
|
52
49
|
* <nas-trip-summary [displayMinimumInfo]="true"></nas-trip-summary>
|
|
53
50
|
* or
|
|
54
51
|
* <nas-trip-summary displayMinimumInfo></nas-trip-summary>
|
|
55
|
-
|
|
56
|
-
*/
|
|
52
|
+
*/
|
|
57
53
|
displayMinimumInfo: boolean;
|
|
58
54
|
/**
|
|
55
|
+
* @property Input
|
|
59
56
|
* @description
|
|
60
57
|
* A string represents the title of the expand/collase action.
|
|
61
58
|
* @example
|
|
62
|
-
* ```html
|
|
63
59
|
* <nas-trip-summary [expandTitle]="'Details'"></nas-trip-summary>
|
|
64
|
-
|
|
65
|
-
*/
|
|
60
|
+
*/
|
|
66
61
|
expandTitle: string;
|
|
67
62
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*/
|
|
63
|
+
* @property Input
|
|
64
|
+
* @description
|
|
65
|
+
* A string represents the Label before arrival time.
|
|
66
|
+
* @example
|
|
67
|
+
* <nas-trip-summary [arrivalLabel]="'Arrival'"></nas-trip-summary>
|
|
68
|
+
*/
|
|
75
69
|
arrivalLabel: string;
|
|
76
70
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*/
|
|
71
|
+
* @property Input
|
|
72
|
+
* @description
|
|
73
|
+
* A string represents the label before departure time.
|
|
74
|
+
* @example
|
|
75
|
+
* <nas-trip-summary [departureLabel]="'Departure'"></nas-trip-summary>
|
|
76
|
+
*/
|
|
84
77
|
departureLabel: string;
|
|
85
78
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
*/
|
|
79
|
+
* @property Input
|
|
80
|
+
* @description
|
|
81
|
+
* A string represents the Label before delayed arrival time for journey component.
|
|
82
|
+
* @example
|
|
83
|
+
* <nas-trip-summary [arrivalEstimatedLabel]="'New time'"></nas-trip-summary>
|
|
84
|
+
*/
|
|
93
85
|
arrivalEstimatedLabel: string;
|
|
94
86
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
*/
|
|
87
|
+
* @property Input
|
|
88
|
+
* @description
|
|
89
|
+
* A string represents the label before delayed departure time for journey component.
|
|
90
|
+
* @example
|
|
91
|
+
* <nas-trip-summary [departureEstimatedLabel]="'New time'"></nas-trip-summary>
|
|
92
|
+
*/
|
|
102
93
|
departureEstimatedLabel: string;
|
|
103
94
|
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
*/
|
|
95
|
+
* @property Input
|
|
96
|
+
* @description
|
|
97
|
+
* A string representing date display format, if not provided, default formatting on date will be applied
|
|
98
|
+
* i.e 'dd MMM yyyy', which will result in displaying date like '21, Feb 2019'.
|
|
99
|
+
* @example
|
|
100
|
+
* <nas-trip-summary [dateFormat]="'dd, MMM yyyy'"></nas-trip-summary>
|
|
101
|
+
*/
|
|
112
102
|
dateFormat: string;
|
|
113
103
|
/**
|
|
104
|
+
* @property Input
|
|
114
105
|
* @description
|
|
115
106
|
* A string representing time display format, if not provided, default formatting on date will be applied
|
|
116
107
|
* i.e 'HH:mm' , which will result in displaying time like '09:23'.
|
|
117
108
|
* @example
|
|
118
|
-
* ```html
|
|
119
109
|
* <nas-trip-summary [timeFormat]="'HH:mm'"></nas-trip-summary>
|
|
120
|
-
|
|
121
|
-
*/
|
|
110
|
+
*/
|
|
122
111
|
timeFormat: string;
|
|
123
112
|
/**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
*/
|
|
113
|
+
* @property Input
|
|
114
|
+
* @description
|
|
115
|
+
* A string representing Transit Hour indicator.
|
|
116
|
+
* if not provided, transit time will not be shown
|
|
117
|
+
* @example
|
|
118
|
+
* <nas-trip-summary [transitHoursIndicator]="'h'"></nas-trip-summary>
|
|
119
|
+
*/
|
|
132
120
|
transitHoursIndicator: string;
|
|
133
121
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
*/
|
|
122
|
+
* @property Input
|
|
123
|
+
* @description
|
|
124
|
+
* A string representing Transit Minutes indicator.
|
|
125
|
+
* if not provided, transit time will not be shown
|
|
126
|
+
* @example
|
|
127
|
+
* <nas-trip-summary [transitMinutesIndicator]="'m'"></nas-trip-summary>
|
|
128
|
+
*/
|
|
142
129
|
transitMinutesIndicator: string;
|
|
143
130
|
/**
|
|
131
|
+
* @property Input
|
|
144
132
|
* @description
|
|
145
133
|
* A string representing label placed before transit stop time.
|
|
146
134
|
* @example
|
|
147
|
-
* ```html
|
|
148
135
|
* <nas-trip-summary [transitLabel]="'Transit stop'"></nas-trip-summary>
|
|
149
|
-
|
|
150
|
-
*/
|
|
136
|
+
*/
|
|
151
137
|
transitLabel: string;
|
|
152
138
|
/**
|
|
139
|
+
* @property Input
|
|
153
140
|
* @description
|
|
154
141
|
* A locale code for the locale format rules to use. When not supplied, uses the value of LOCALE_ID, which is en-US by default.
|
|
155
142
|
* This requires that registerLocaleData is called with the respective locale.
|
|
156
143
|
* @example
|
|
157
|
-
* ```html
|
|
158
144
|
* <nas-trip-summary [locale]="'es'"></nas-trip-summary>
|
|
159
|
-
|
|
145
|
+
*/
|
|
160
146
|
locale: string;
|
|
161
147
|
/**
|
|
148
|
+
* @property Input
|
|
162
149
|
* @description
|
|
163
150
|
* User can input the timezone to localize the date.
|
|
164
151
|
* Default is set to UTC and it will by default show the date exactly what is passed to it.
|
|
165
152
|
* @example
|
|
166
|
-
* ```html
|
|
167
153
|
* <nas-trip-summary [timeZone]="'UTC'"></nas-trip-summary>
|
|
168
|
-
|
|
154
|
+
*/
|
|
169
155
|
timeZone: string;
|
|
170
156
|
constructor();
|
|
171
157
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -8,35 +8,41 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class WeatherIconComponent extends NasComponentBase implements AfterViewInit, OnInit {
|
|
10
10
|
/**
|
|
11
|
+
* @property Input
|
|
11
12
|
* @required
|
|
12
13
|
* @description
|
|
13
14
|
* String representing the type of weather; cloud-and-sun, rain, thunder, ssnow, sun, cloudy
|
|
14
|
-
|
|
15
|
+
*/
|
|
15
16
|
weather: string;
|
|
16
17
|
/**
|
|
18
|
+
* @property Input
|
|
17
19
|
* @description
|
|
18
20
|
* Number representing the temperature
|
|
19
|
-
|
|
21
|
+
*/
|
|
20
22
|
temperature: number;
|
|
21
23
|
/**
|
|
24
|
+
* @property Input
|
|
22
25
|
* @description
|
|
23
26
|
* Sets the text above the temperature. "Ex. Avg.:". Default value is "Avg.";
|
|
24
|
-
|
|
27
|
+
*/
|
|
25
28
|
temperatureText: string;
|
|
26
29
|
/**
|
|
30
|
+
* @property Input
|
|
27
31
|
* @description
|
|
28
32
|
* Boolean which sets the icon to have a small size
|
|
29
|
-
|
|
33
|
+
*/
|
|
30
34
|
small: boolean;
|
|
31
35
|
/**
|
|
36
|
+
* @property Input
|
|
32
37
|
* @description
|
|
33
38
|
* Boolean which sets the icon to have a medium size
|
|
34
|
-
|
|
39
|
+
*/
|
|
35
40
|
medium: boolean;
|
|
36
41
|
/**
|
|
42
|
+
* @property Input
|
|
37
43
|
* @description
|
|
38
44
|
* Boolean which sets the icon to have a light styling (used on dark backgrounds)
|
|
39
|
-
|
|
45
|
+
*/
|
|
40
46
|
light: boolean;
|
|
41
47
|
showTemperature: boolean;
|
|
42
48
|
/**
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norwegian/core-components",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": ">=
|
|
6
|
-
"@angular/core": ">=
|
|
5
|
+
"@angular/common": ">=16.0.0 < 17.0.0",
|
|
6
|
+
"@angular/core": ">=16.0.0 < 17.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.5.0"
|