@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.
Files changed (111) hide show
  1. package/esm2022/lib/components/accordion/accordion.component.mjs +17 -12
  2. package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +1 -1
  3. package/esm2022/lib/components/airport-select/airport-select.component.mjs +13 -1
  4. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +7 -1
  5. package/esm2022/lib/components/backdrop/backdrop.component.mjs +3 -1
  6. package/esm2022/lib/components/box/box.component.mjs +4 -4
  7. package/esm2022/lib/components/button/button.component.mjs +5 -1
  8. package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -1
  9. package/esm2022/lib/components/chip/chip.component.mjs +2 -7
  10. package/esm2022/lib/components/container/container.component.mjs +1 -1
  11. package/esm2022/lib/components/continue/continue.component.mjs +6 -1
  12. package/esm2022/lib/components/cover/cover.component.mjs +1 -1
  13. package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +1 -1
  14. package/esm2022/lib/components/datepicker/datepicker.component.mjs +16 -1
  15. package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +17 -1
  16. package/esm2022/lib/components/divider/divider.component.mjs +1 -1
  17. package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -1
  18. package/esm2022/lib/components/filter/filter.component.mjs +36 -2
  19. package/esm2022/lib/components/grid/grid.component.mjs +1 -1
  20. package/esm2022/lib/components/icon/icon.component.mjs +1 -1
  21. package/esm2022/lib/components/icon-list/icon-list.component.mjs +1 -1
  22. package/esm2022/lib/components/icon-list/icon-list.model.mjs +1 -1
  23. package/esm2022/lib/components/info/info.component.mjs +5 -4
  24. package/esm2022/lib/components/input/input.component.mjs +6 -1
  25. package/esm2022/lib/components/journey/journey.component.mjs +5 -7
  26. package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +7 -5
  27. package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +22 -25
  28. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +12 -4
  29. package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +18 -20
  30. package/esm2022/lib/components/list/list.component.mjs +1 -1
  31. package/esm2022/lib/components/modal/modal.component.mjs +5 -7
  32. package/esm2022/lib/components/number-field/number-field.component.mjs +4 -2
  33. package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -4
  34. package/esm2022/lib/components/page-header/page-header.component.mjs +30 -12
  35. package/esm2022/lib/components/page-header/page-header.module.mjs +5 -4
  36. package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
  37. package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +11 -7
  38. package/esm2022/lib/components/phone-number/phone-number.component.mjs +11 -15
  39. package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +3 -4
  40. package/esm2022/lib/components/radio/radio.component.mjs +4 -2
  41. package/esm2022/lib/components/select/select.component.mjs +11 -7
  42. package/esm2022/lib/components/simple-list/simple-list.component.mjs +1 -1
  43. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +9 -5
  44. package/esm2022/lib/components/slider/slider.component.mjs +32 -18
  45. package/esm2022/lib/components/sort/sort.component.mjs +11 -7
  46. package/esm2022/lib/components/spinner/spinner.component.mjs +13 -18
  47. package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +13 -7
  48. package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -2
  49. package/esm2022/lib/components/tab-group/tab-group.component.mjs +3 -2
  50. package/esm2022/lib/components/table/table.component.mjs +1 -3
  51. package/esm2022/lib/components/textarea/textarea.component.mjs +6 -1
  52. package/esm2022/lib/components/toggle/toggle.component.mjs +5 -5
  53. package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +26 -31
  54. package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +3 -2
  55. package/fesm2022/norwegian-core-components.mjs +371 -221
  56. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  57. package/lib/components/accordion/accordion.component.d.ts +81 -78
  58. package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +2 -2
  59. package/lib/components/airport-select/airport-select.component.d.ts +38 -2
  60. package/lib/components/autocomplete/autocomplete.component.d.ts +15 -2
  61. package/lib/components/backdrop/backdrop.component.d.ts +3 -0
  62. package/lib/components/box/box.component.d.ts +13 -3
  63. package/lib/components/button/button.component.d.ts +26 -0
  64. package/lib/components/checkbox/checkbox.component.d.ts +18 -2
  65. package/lib/components/chip/chip.component.d.ts +5 -21
  66. package/lib/components/container/container.component.d.ts +6 -0
  67. package/lib/components/continue/continue.component.d.ts +14 -0
  68. package/lib/components/cover/cover.component.d.ts +13 -3
  69. package/lib/components/datepicker/calendar/calendar.component.d.ts +2 -2
  70. package/lib/components/datepicker/datepicker.component.d.ts +33 -2
  71. package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +42 -0
  72. package/lib/components/divider/divider.component.d.ts +9 -0
  73. package/lib/components/dropdown/dropdown.component.d.ts +8 -0
  74. package/lib/components/filter/filter.component.d.ts +108 -2
  75. package/lib/components/grid/grid.component.d.ts +12 -0
  76. package/lib/components/icon/icon.component.d.ts +5 -8
  77. package/lib/components/icon-list/icon-list.component.d.ts +5 -0
  78. package/lib/components/icon-list/icon-list.model.d.ts +1 -0
  79. package/lib/components/info/info.component.d.ts +7 -18
  80. package/lib/components/input/input.component.d.ts +30 -5
  81. package/lib/components/journey/journey.component.d.ts +9 -16
  82. package/lib/components/journey-availability/journey-availability.component.d.ts +8 -8
  83. package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +29 -34
  84. package/lib/components/journey-selection/journey-selection.component.d.ts +14 -3
  85. package/lib/components/journey-stopover/journey-stopover.component.d.ts +35 -43
  86. package/lib/components/list/list.component.d.ts +8 -0
  87. package/lib/components/modal/modal.component.d.ts +16 -34
  88. package/lib/components/number-field/number-field.component.d.ts +26 -12
  89. package/lib/components/page-footer/page-footer.component.d.ts +9 -16
  90. package/lib/components/page-header/page-header.component.d.ts +30 -15
  91. package/lib/components/page-header/page-header.module.d.ts +2 -1
  92. package/lib/components/passenger-select/models/passengers.model.d.ts +2 -2
  93. package/lib/components/passenger-select/passenger-select.component.d.ts +33 -18
  94. package/lib/components/phone-number/phone-number.component.d.ts +80 -108
  95. package/lib/components/premium-toggle/premium-toggle.component.d.ts +9 -13
  96. package/lib/components/radio/radio.component.d.ts +35 -18
  97. package/lib/components/select/select.component.d.ts +47 -29
  98. package/lib/components/simple-list/simple-list.component.d.ts +16 -8
  99. package/lib/components/slide-toggle/slide-toggle.component.d.ts +16 -9
  100. package/lib/components/slider/slider.component.d.ts +51 -28
  101. package/lib/components/sort/sort.component.d.ts +12 -7
  102. package/lib/components/spinner/spinner.component.d.ts +24 -37
  103. package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +14 -7
  104. package/lib/components/suggestions/suggestions.component.d.ts +6 -3
  105. package/lib/components/tab-group/tab-group.component.d.ts +6 -3
  106. package/lib/components/table/table.component.d.ts +3 -8
  107. package/lib/components/textarea/textarea.component.d.ts +42 -20
  108. package/lib/components/toggle/toggle.component.d.ts +44 -68
  109. package/lib/components/trip-summary/trip-summary.component.d.ts +68 -82
  110. package/lib/components/weather-icon/weather-icon.component.d.ts +12 -6
  111. 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
- * @description
30
- * A boolean vlaue to set whether the trip summary details are expanded/minimized.
31
- * Default is false
32
- * @example
33
- * ```html
34
- * <nas-trip-summary [expanded]="true"></nas-trip-summary>
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
- * @description
69
- * A string represents the Label before arrival time.
70
- * @example
71
- * ```html
72
- * <nas-trip-summary [arrivalLabel]="'Arrival'"></nas-trip-summary>
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
- * @description
78
- * A string represents the label before departure time.
79
- * @example
80
- * ```html
81
- * <nas-trip-summary [departureLabel]="'Departure'"></nas-trip-summary>
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
- * @description
87
- * A string represents the Label before delayed arrival time for journey component.
88
- * @example
89
- * ```html
90
- * <nas-trip-summary [arrivalEstimatedLabel]="'New time'"></nas-trip-summary>
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
- * @description
96
- * A string represents the label before delayed departure time for journey component.
97
- * @example
98
- * ```html
99
- * <nas-trip-summary [departureEstimatedLabel]="'New time'"></nas-trip-summary>
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
- * @description
105
- * A string representing date display format, if not provided, default formatting on date will be applied
106
- * i.e 'dd MMM yyyy', which will result in displaying date like '21, Feb 2019'.
107
- * @example
108
- * ```html
109
- * <nas-trip-summary [dateFormat]="'dd, MMM yyyy'"></nas-trip-summary>
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
- * @description
125
- * A string representing Transit Hour indicator.
126
- * if not provided, transit time will not be shown
127
- * @example
128
- * ```html
129
- * <nas-trip-summary [transitHoursIndicator]="'h'"></nas-trip-summary>
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
- * @description
135
- * A string representing Transit Minutes indicator.
136
- * if not provided, transit time will not be shown
137
- * @example
138
- * ```html
139
- * <nas-trip-summary [transitMinutesIndicator]="'m'"></nas-trip-summary>
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",
3
+ "version": "6.2.0",
4
4
  "peerDependencies": {
5
- "@angular/common": ">=12.0.0 < 17.0.0",
6
- "@angular/core": ">=12.0.0 < 17.0.0"
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"