@norwegian/core-components 6.54.3 → 6.55.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 (225) hide show
  1. package/assets/icons/medium/cloud--light.svg +6 -0
  2. package/assets/icons/medium/cloud.svg +6 -0
  3. package/assets/icons/medium/download--light.svg +3 -0
  4. package/assets/icons/medium/download.svg +3 -0
  5. package/assets/icons/medium/humidity--light.svg +6 -0
  6. package/assets/icons/medium/humidity.svg +6 -0
  7. package/assets/icons/medium/night--light.svg +6 -0
  8. package/assets/icons/medium/night.svg +6 -0
  9. package/assets/icons/medium/rain--light.svg +6 -0
  10. package/assets/icons/medium/rain-sun--light.svg +6 -0
  11. package/assets/icons/medium/rain-sun.svg +6 -0
  12. package/assets/icons/medium/rain.svg +6 -0
  13. package/assets/icons/medium/storm--light.svg +6 -0
  14. package/assets/icons/medium/storm.svg +6 -0
  15. package/assets/icons/medium/sun--light.svg +6 -0
  16. package/assets/icons/medium/sun-cloud--light.svg +6 -0
  17. package/assets/icons/medium/sun-cloud.svg +6 -0
  18. package/assets/icons/medium/sun.svg +6 -0
  19. package/assets/icons/medium/sunrise--light.svg +6 -0
  20. package/assets/icons/medium/sunrise.svg +6 -0
  21. package/assets/icons/medium/sunset--light.svg +6 -0
  22. package/assets/icons/medium/sunset.svg +6 -0
  23. package/assets/icons/medium/temperature--light.svg +6 -0
  24. package/assets/icons/medium/temperature.svg +6 -0
  25. package/assets/icons/medium/water--light.svg +8 -0
  26. package/assets/icons/medium/water.svg +8 -0
  27. package/assets/icons/small/download--light.svg +3 -0
  28. package/assets/icons/small/download.svg +3 -0
  29. package/assets/icons/small/rain--light.svg +1 -1
  30. package/assets/icons/small/rain-sun--light.svg +1 -1
  31. package/assets/icons/small/rain-sun.svg +1 -1
  32. package/assets/icons/small/rain.svg +1 -1
  33. package/assets/icons/small/storm--light.svg +1 -1
  34. package/assets/icons/small/storm.svg +1 -1
  35. package/assets/icons/small/sun-cloud--light.svg +1 -1
  36. package/assets/icons/small/sun-cloud.svg +1 -1
  37. package/assets/icons/xsmall/close--light.svg +7 -0
  38. package/assets/icons/xsmall/cloud--light.svg +6 -0
  39. package/assets/icons/xsmall/cloud.svg +6 -0
  40. package/assets/icons/xsmall/download--light.svg +3 -0
  41. package/assets/icons/xsmall/download.svg +3 -0
  42. package/assets/icons/xsmall/humidity--light.svg +6 -0
  43. package/assets/icons/xsmall/humidity.svg +6 -0
  44. package/assets/icons/xsmall/night--light.svg +6 -0
  45. package/assets/icons/xsmall/night.svg +6 -0
  46. package/assets/icons/xsmall/rain--light.svg +6 -0
  47. package/assets/icons/xsmall/rain-sun--light.svg +6 -0
  48. package/assets/icons/xsmall/rain-sun.svg +6 -0
  49. package/assets/icons/xsmall/rain.svg +6 -0
  50. package/assets/icons/xsmall/storm--light.svg +6 -0
  51. package/assets/icons/xsmall/storm.svg +6 -0
  52. package/assets/icons/xsmall/sun--light.svg +6 -0
  53. package/assets/icons/xsmall/sun-cloud--light.svg +6 -0
  54. package/assets/icons/xsmall/sun-cloud.svg +6 -0
  55. package/assets/icons/xsmall/sun.svg +6 -0
  56. package/assets/icons/xsmall/sunrise--light.svg +6 -0
  57. package/assets/icons/xsmall/sunrise.svg +6 -0
  58. package/assets/icons/xsmall/sunset--light.svg +6 -0
  59. package/assets/icons/xsmall/sunset.svg +6 -0
  60. package/assets/icons/xsmall/temperature--light.svg +6 -0
  61. package/assets/icons/xsmall/temperature.svg +6 -0
  62. package/assets/icons/xsmall/water--light.svg +8 -0
  63. package/assets/icons/xsmall/water.svg +8 -0
  64. package/esm2022/lib/components/accordion/accordion.module.mjs +1 -1
  65. package/esm2022/lib/components/airport-select/airport-select.component.mjs +2 -2
  66. package/esm2022/lib/components/airport-select/airport-select.module.mjs +3 -3
  67. package/esm2022/lib/components/airport-select/models/results-labels.model.mjs +1 -1
  68. package/esm2022/lib/components/airport-select/services/airport-select-dropdown.service.mjs +2 -2
  69. package/esm2022/lib/components/airport-select/services/airport-select.service.mjs +3 -3
  70. package/esm2022/lib/components/alert/alert.module.mjs +6 -16
  71. package/esm2022/lib/components/alert/models/alert.model.mjs +1 -1
  72. package/esm2022/lib/components/autocomplete/autocomplete.module.mjs +3 -3
  73. package/esm2022/lib/components/backdrop/backdrop.component.mjs +1 -1
  74. package/esm2022/lib/components/backdrop/backdrop.module.mjs +5 -10
  75. package/esm2022/lib/components/box/box.component.mjs +4 -6
  76. package/esm2022/lib/components/button/button.module.mjs +1 -1
  77. package/esm2022/lib/components/button-new/button-new.component.mjs +2 -2
  78. package/esm2022/lib/components/button-new/button-new.module.mjs +1 -1
  79. package/esm2022/lib/components/campaign-header/campaign-header.component.mjs +2 -2
  80. package/esm2022/lib/components/campaign-header/campaign-header.module.mjs +6 -16
  81. package/esm2022/lib/components/checkbox/checkbox.module.mjs +1 -1
  82. package/esm2022/lib/components/checkbox-new/checkbox-new.module.mjs +1 -1
  83. package/esm2022/lib/components/chip/chip.module.mjs +5 -10
  84. package/esm2022/lib/components/container/container.component.mjs +5 -5
  85. package/esm2022/lib/components/continue/continue.module.mjs +5 -16
  86. package/esm2022/lib/components/cover/cover.module.mjs +2 -2
  87. package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +1 -1
  88. package/esm2022/lib/components/datepicker/calendar/models/day.model.mjs +1 -1
  89. package/esm2022/lib/components/datepicker/calendar/models/select-option.model.mjs +1 -1
  90. package/esm2022/lib/components/datepicker/calendar/models/week.model.mjs +1 -1
  91. package/esm2022/lib/components/datepicker/datepicker.component.mjs +2 -2
  92. package/esm2022/lib/components/datepicker/datepicker.module.mjs +3 -3
  93. package/esm2022/lib/components/datepicker-combo/datepicker-combo.module.mjs +5 -13
  94. package/esm2022/lib/components/datepicker-new/calendar-new/calendar-new.component.mjs +1 -1
  95. package/esm2022/lib/components/datepicker-new/datepicker-new.component.mjs +2 -2
  96. package/esm2022/lib/components/divider/divider.component.mjs +5 -7
  97. package/esm2022/lib/components/divider/divider.module.mjs +12 -4
  98. package/esm2022/lib/components/dropdown/dropdown.module.mjs +5 -16
  99. package/esm2022/lib/components/filter/filter.component.mjs +2 -2
  100. package/esm2022/lib/components/filter/filter.module.mjs +3 -3
  101. package/esm2022/lib/components/filter-new/filter-new.component.mjs +2 -2
  102. package/esm2022/lib/components/grid/grid.component.mjs +2 -2
  103. package/esm2022/lib/components/icon/icon.component.mjs +2 -2
  104. package/esm2022/lib/components/icon/icon.module.mjs +5 -10
  105. package/esm2022/lib/components/info/info.module.mjs +3 -3
  106. package/esm2022/lib/components/info/models/info.model.mjs +1 -1
  107. package/esm2022/lib/components/input/input.module.mjs +18 -4
  108. package/esm2022/lib/components/input-text/index.mjs +1 -1
  109. package/esm2022/lib/components/input-text/input-text.module.mjs +18 -4
  110. package/esm2022/lib/components/journey/journey.module.mjs +5 -13
  111. package/esm2022/lib/components/journey/models/journey-flight.model.mjs +1 -1
  112. package/esm2022/lib/components/journey/models/journey.model.mjs +1 -1
  113. package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +2 -2
  114. package/esm2022/lib/components/journey-availability/journey-availability.module.mjs +3 -3
  115. package/esm2022/lib/components/journey-availability-list/journey-availability-list.module.mjs +3 -3
  116. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +2 -2
  117. package/esm2022/lib/components/journey-selection/journey-selection.module.mjs +5 -16
  118. package/esm2022/lib/components/journey-selection/models/journey-selection-collapsed.model.mjs +1 -1
  119. package/esm2022/lib/components/journey-selection/models/journey-selection-common.model.mjs +1 -1
  120. package/esm2022/lib/components/journey-selection/models/journey-selection-expanded.model.mjs +1 -1
  121. package/esm2022/lib/components/journey-selection/models/journey-selection.model.mjs +1 -1
  122. package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +2 -2
  123. package/esm2022/lib/components/journey-stopover/journey-stopover.module.mjs +5 -13
  124. package/esm2022/lib/components/journey-stopover/models/stopover-time.model.mjs +1 -1
  125. package/esm2022/lib/components/list/list.module.mjs +2 -2
  126. package/esm2022/lib/components/micro-button/micro-button.component.mjs +2 -2
  127. package/esm2022/lib/components/micro-button/micro-button.module.mjs +5 -13
  128. package/esm2022/lib/components/modal/modal.module.mjs +3 -3
  129. package/esm2022/lib/components/number-field/models/number-field.model.mjs +1 -1
  130. package/esm2022/lib/components/number-field/number-field.module.mjs +3 -3
  131. package/esm2022/lib/components/number-field-new/models/number-field-new.model.mjs +1 -1
  132. package/esm2022/lib/components/number-field-new/number-field-new.module.mjs +3 -3
  133. package/esm2022/lib/components/page-footer/page-footer.module.mjs +1 -1
  134. package/esm2022/lib/components/page-header/models/wallet.model.mjs +1 -1
  135. package/esm2022/lib/components/page-header/page-header.module.mjs +36 -5
  136. package/esm2022/lib/components/page-header/wallet/wallet.component.mjs +2 -2
  137. package/esm2022/lib/components/page-header-old/page-header-old.module.mjs +25 -5
  138. package/esm2022/lib/components/passenger-select/enums/passenger-type.enum.mjs +1 -1
  139. package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +1 -1
  140. package/esm2022/lib/components/passenger-select/passenger-select.module.mjs +5 -13
  141. package/esm2022/lib/components/phone-number/phone-number.component.mjs +1 -1
  142. package/esm2022/lib/components/phone-number/phone-number.module.mjs +2 -2
  143. package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +6 -6
  144. package/esm2022/lib/components/premium-toggle/premium-toggle.module.mjs +5 -13
  145. package/esm2022/lib/components/select/models/select-option.model.mjs +1 -1
  146. package/esm2022/lib/components/select/select.component.mjs +21 -19
  147. package/esm2022/lib/components/select/select.module.mjs +5 -13
  148. package/esm2022/lib/components/simple-list/simple-list.component.mjs +1 -1
  149. package/esm2022/lib/components/simple-list/simple-list.module.mjs +1 -1
  150. package/esm2022/lib/components/slide-toggle/slide-toggle.module.mjs +5 -16
  151. package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.component.mjs +1 -1
  152. package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.module.mjs +5 -16
  153. package/esm2022/lib/components/slider/slider.module.mjs +5 -13
  154. package/esm2022/lib/components/sort/sort.component.mjs +7 -6
  155. package/esm2022/lib/components/sort/sort.module.mjs +3 -3
  156. package/esm2022/lib/components/status-box/status-box.component.mjs +29 -9
  157. package/esm2022/lib/components/status-box/status-box.module.mjs +1 -1
  158. package/esm2022/lib/components/subsidy-discount/models/subsidy-discount.model.mjs +1 -1
  159. package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +1 -1
  160. package/esm2022/lib/components/subsidy-discount/subsidy-discount.module.mjs +3 -3
  161. package/esm2022/lib/components/suggestions/suggestions.component.mjs +2 -2
  162. package/esm2022/lib/components/suggestions/suggestions.module.mjs +5 -13
  163. package/esm2022/lib/components/tab-group/tab-group.module.mjs +5 -13
  164. package/esm2022/lib/components/table/column/column.component.mjs +1 -1
  165. package/esm2022/lib/components/table/services/table.service.mjs +6 -3
  166. package/esm2022/lib/components/table/table-row/table-data/table-data.component.mjs +1 -1
  167. package/esm2022/lib/components/table/table-row/table-header/table-header.component.mjs +1 -1
  168. package/esm2022/lib/components/table/table.component.mjs +3 -3
  169. package/esm2022/lib/components/table/table.module.mjs +7 -12
  170. package/esm2022/lib/components/tag/tag.component.mjs +7 -9
  171. package/esm2022/lib/components/tag/tag.module.mjs +4 -6
  172. package/esm2022/lib/components/textarea/textarea.module.mjs +5 -16
  173. package/esm2022/lib/components/toggle/toggle.module.mjs +3 -3
  174. package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +15 -13
  175. package/esm2022/lib/components/trip-summary/trip-summary.module.mjs +3 -3
  176. package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +5 -5
  177. package/esm2022/lib/core/base/nas-component.base.mjs +6 -5
  178. package/esm2022/lib/core/decorators/debounce.decorator.mjs +1 -1
  179. package/esm2022/lib/core/directives/nas-class/nas-class.module.mjs +3 -5
  180. package/esm2022/lib/core/models/abandoned-basket-item.model.mjs +1 -1
  181. package/esm2022/lib/core/models/animate.model.mjs +1 -1
  182. package/esm2022/lib/core/models/class.model.mjs +1 -1
  183. package/esm2022/lib/core/models/position.model.mjs +1 -1
  184. package/esm2022/lib/core/services/bem-helper/bem-helper.service.mjs +6 -6
  185. package/esm2022/lib/core/services/geolocation/geolocation.service.mjs +5 -5
  186. package/esm2022/lib/core/services/sort/sort.service.mjs +2 -2
  187. package/esm2022/lib/core/services/viewport/viewport.service.mjs +4 -3
  188. package/esm2022/lib/services/get-position.service.mjs +1 -1
  189. package/esm2022/lib/shared/models/journey-availability-sort.model.mjs +1 -1
  190. package/esm2022/lib/shared/models/journey-duration.model.mjs +1 -1
  191. package/esm2022/lib/shared/models/journey-stopover.model.mjs +1 -1
  192. package/esm2022/lib/shared/models/journey-transit-info.model.mjs +1 -1
  193. package/esm2022/lib/shared/models/operating-carrier.model.mjs +1 -1
  194. package/esm2022/lib/shared/models/sort-option.model.mjs +1 -1
  195. package/esm2022/lib/shared/models/sort.model.mjs +1 -1
  196. package/esm2022/lib/shared/models/trip-item-details.model.mjs +1 -1
  197. package/esm2022/lib/shared/models/trip-summary-details.model.mjs +1 -1
  198. package/esm2022/lib/shared/models/trip-summary.model.mjs +1 -1
  199. package/fesm2022/norwegian-core-components.mjs +378 -458
  200. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  201. package/lib/components/container/container.component.d.ts +3 -3
  202. package/lib/components/premium-toggle/premium-toggle.component.d.ts +5 -5
  203. package/lib/components/select/select.component.d.ts +13 -13
  204. package/lib/components/simple-list/simple-list.component.d.ts +8 -8
  205. package/lib/components/sort/sort.component.d.ts +5 -5
  206. package/lib/components/status-box/status-box.component.d.ts +24 -1
  207. package/lib/components/suggestions/suggestions.component.d.ts +3 -3
  208. package/lib/components/table/table.component.d.ts +3 -3
  209. package/lib/components/tag/tag.component.d.ts +16 -16
  210. package/lib/components/trip-summary/trip-summary.component.d.ts +16 -16
  211. package/lib/components/weather-icon/weather-icon.component.d.ts +7 -7
  212. package/package.json +1 -1
  213. package/assets/icons/small/my-profile-female--dark.svg +0 -48
  214. package/assets/icons/small/my-profile-male--dark.svg +0 -49
  215. package/assets/icons/weather/humidity.svg +0 -1
  216. package/assets/icons/weather/sun.svg +0 -1
  217. package/assets/icons/weather/sunrise.svg +0 -1
  218. package/assets/icons/weather/sunset.svg +0 -1
  219. package/assets/icons/weather/temperature.svg +0 -1
  220. package/assets/icons/weather/weather--cloud.svg +0 -1
  221. package/assets/icons/weather/weather--rain-sun.svg +0 -1
  222. package/assets/icons/weather/weather--rain.svg +0 -1
  223. package/assets/icons/weather/weather--storm.svg +0 -1
  224. package/assets/icons/weather/weather--sun-cloud.svg +0 -1
  225. package/assets/icons/weather/weather--sun.svg +0 -1
@@ -42,9 +42,9 @@ export declare class ContainerComponent extends NasComponentBase {
42
42
  */
43
43
  tight: boolean;
44
44
  /**
45
- * Represent a container component.
46
- * Will initiate correct block style.
47
- */
45
+ * Represent a container component.
46
+ * Will initiate correct block style.
47
+ */
48
48
  constructor();
49
49
  getModifiers(): Array<string>;
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<ContainerComponent, never>;
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * @description
7
7
  * Norwegian Premium Toggle Component | Functional
8
- */
8
+ */
9
9
  export declare class PremiumToggleComponent extends NasComponentBase implements OnInit {
10
10
  selectedValue: OptionModel;
11
11
  options: Array<OptionModel>;
@@ -15,7 +15,7 @@ export declare class PremiumToggleComponent extends NasComponentBase implements
15
15
  * Sets the initial selected value on the toggle. Is either 'standard' or 'premium'.
16
16
  * @example
17
17
  * <nas-premium-toggle [defaultValue]="'premium'"></nas-premium-toggle>
18
- */
18
+ */
19
19
  defaultValue: string;
20
20
  /**
21
21
  * @property Input
@@ -23,7 +23,7 @@ export declare class PremiumToggleComponent extends NasComponentBase implements
23
23
  * A label for the standard alternative.
24
24
  * @example\
25
25
  * <nas-premium-toggle [standardLabel]="'Standard'"></nas-premium-toggle>
26
- */
26
+ */
27
27
  standardLabel: string;
28
28
  /**
29
29
  * @property Input
@@ -31,7 +31,7 @@ export declare class PremiumToggleComponent extends NasComponentBase implements
31
31
  * A label for the premium alternative.
32
32
  * @example
33
33
  * <nas-premium-toggle [premiumLabel]="'Premium'"></nas-premium-toggle>
34
- */
34
+ */
35
35
  premiumLabel: string;
36
36
  /**
37
37
  * @property Output
@@ -39,7 +39,7 @@ export declare class PremiumToggleComponent extends NasComponentBase implements
39
39
  * An event that is fired every time a toggle is performed.
40
40
  * @example
41
41
  * <nas-premium-toggle (handleChange)="onHandleChange($event)"></nas-premium-toggle>
42
- */
42
+ */
43
43
  handleChange: EventEmitter<string>;
44
44
  constructor();
45
45
  ngOnInit(): void;
@@ -25,12 +25,11 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
25
25
  select: ElementRef<HTMLSelectElement>;
26
26
  optionComponents: QueryList<OptionComponent>;
27
27
  optgroupComponents: QueryList<OptgroupComponent>;
28
- private optionsValue;
29
28
  /**
30
29
  * @property Input
31
30
  * @description
32
31
  * The ID of the native input element
33
- */
32
+ */
34
33
  id: string;
35
34
  /**
36
35
  * @property Input
@@ -46,14 +45,14 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
46
45
  label: string;
47
46
  /**
48
47
  * @property Input
49
- * @description
50
- * Sets block styling.
48
+ * @description
49
+ * Sets block styling.
51
50
  */
52
51
  block?: boolean;
53
52
  /**
54
53
  * @property Input
55
54
  * @description
56
- * Sets spaceless styling.
55
+ * Sets spaceless styling.
57
56
  */
58
57
  spaceless?: boolean;
59
58
  /**
@@ -72,7 +71,7 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
72
71
  * @property Input
73
72
  * @description
74
73
  * Sets simple styling.
75
- */
74
+ */
76
75
  simple?: boolean;
77
76
  /**
78
77
  * @property Input
@@ -123,7 +122,7 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
123
122
  * It requires that the consumer included ReactiveFormsModule in it's module.
124
123
  * It requiers that the nasFormGroup input is filled.
125
124
  * @example
126
- * <nas-select [nasFormControlName]="'fareClass'"></nas-select>
125
+ * <nas-select [nasFormControlName]="'fareClass'"></nas-select>
127
126
  */
128
127
  nasFormControlName: string;
129
128
  /**
@@ -138,8 +137,8 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
138
137
  nasFormGroup: FormGroup;
139
138
  /**
140
139
  * @property Input
141
- * @description
142
- * Add options to the selector.
140
+ * @description
141
+ * Add options to the selector.
143
142
  */
144
143
  get options(): Array<SelectOptionModel>;
145
144
  set options(value: Array<SelectOptionModel>);
@@ -153,21 +152,22 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
153
152
  * @property Input
154
153
  * @description
155
154
  * Gets or sets the selected value.
156
- */
155
+ */
157
156
  get selected(): SelectOptionModel;
158
157
  set selected(option: SelectOptionModel);
159
158
  /**
160
159
  * @property Output
161
160
  * @description
162
161
  * An event that is fired every time a selection is done.
163
- */
162
+ */
164
163
  selectedChange: EventEmitter<SelectOptionModel>;
165
164
  /**
166
165
  * @property Output
167
166
  * @description
168
167
  * An events that fires every type a keydown event has been pressed on the select element.
169
168
  */
170
- keydown: EventEmitter<KeyboardEvent>;
169
+ keyDownEvent: EventEmitter<KeyboardEvent>;
170
+ private optionsValue;
171
171
  private open;
172
172
  private componentId;
173
173
  constructor(change: ChangeDetectorRef);
@@ -185,5 +185,5 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
185
185
  private updateShadow;
186
186
  private setSelectedTitle;
187
187
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
188
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "nas-select", never, { "id": { "alias": "id"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "label": { "alias": "label"; "required": false; }; "block": { "alias": "block"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "light": { "alias": "light"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autogrow": { "alias": "autogrow"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; "keydown": "keydown"; }, ["optionComponents", "optgroupComponents"], ["*"], false, never>;
188
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "nas-select", never, { "id": { "alias": "id"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "label": { "alias": "label"; "required": false; }; "block": { "alias": "block"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "light": { "alias": "light"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autogrow": { "alias": "autogrow"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; "keyDownEvent": "keyDownEvent"; }, ["optionComponents", "optgroupComponents"], ["*"], false, never>;
189
189
  }
@@ -9,49 +9,49 @@ export declare class SimpleListComponent extends NasComponentBase {
9
9
  * @property Input
10
10
  * @description
11
11
  * List with grey and blue check-icon markers
12
- */
12
+ */
13
13
  markers: boolean;
14
14
  /**
15
15
  * @property Input
16
16
  * @description
17
17
  * List with note markers
18
- */
18
+ */
19
19
  note: boolean;
20
20
  /**
21
21
  * @property Input
22
22
  * @description
23
23
  * List with green check-icon markers
24
- */
24
+ */
25
25
  positive: boolean;
26
26
  /**
27
27
  * @property Input
28
28
  * @description
29
29
  * List with red x-icon markers
30
- */
30
+ */
31
31
  negative: boolean;
32
32
  /**
33
33
  * @property Input
34
34
  * @description
35
35
  * List with goto (arrow) icon markers
36
- */
36
+ */
37
37
  goto: boolean;
38
38
  /**
39
39
  * @property Input
40
40
  * @description
41
41
  * List styles as a table
42
- */
42
+ */
43
43
  table: boolean;
44
44
  /**
45
45
  * @property Input
46
46
  * @description
47
47
  * List without margin at bottom
48
- */
48
+ */
49
49
  spaceless: boolean;
50
50
  /**
51
51
  * @property Input
52
52
  * @description
53
53
  * The string elements within the list
54
- */
54
+ */
55
55
  items: Array<string>;
56
56
  constructor();
57
57
  mainClass(): import("@norwegian/core-components").ClassModel;
@@ -18,33 +18,33 @@ export declare class SortComponent extends NasComponentBase {
18
18
  * @property Input
19
19
  * @description
20
20
  * model for the sort component. containing all sort options and related meta data.
21
- */
21
+ */
22
22
  model: SortModel;
23
23
  /**
24
24
  * @property Input
25
25
  * @description
26
26
  * popup open set & get.
27
- */
27
+ */
28
28
  get open(): boolean;
29
29
  set open(value: boolean);
30
30
  /**
31
31
  * @property Input
32
32
  * @description
33
33
  * checked option set & get.
34
- */
34
+ */
35
35
  get selectedOption(): SortOptionModel;
36
36
  set selectedOption(option: SortOptionModel);
37
37
  /**
38
38
  * @property Output
39
39
  * @description
40
40
  * Listen for option change events.
41
- */
41
+ */
42
42
  selectedOptionChange: EventEmitter<SortOptionModel>;
43
43
  /**
44
44
  * @property Output
45
45
  * @description
46
46
  * Listen for apply button click events.
47
- */
47
+ */
48
48
  applyButtonClicked: EventEmitter<SortOptionModel>;
49
49
  constructor();
50
50
  checkSpaceless(option: SortOptionModel, index: number): boolean;
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { NasComponentBase } from '../../core/base/nas-component.base';
2
3
  import { StatusBoxModel } from './models/status-box.model';
3
4
  import * as i0 from "@angular/core";
@@ -11,6 +12,8 @@ import * as i0 from "@angular/core";
11
12
  */
12
13
  export declare class StatusBoxComponent extends NasComponentBase {
13
14
  private statusBoxModel;
15
+ private trackingEventSource;
16
+ trackingEvent$: import("rxjs").Observable<string>;
14
17
  /**
15
18
  * @property Input
16
19
  * @description
@@ -60,10 +63,30 @@ export declare class StatusBoxComponent extends NasComponentBase {
60
63
  */
61
64
  get statusBox(): StatusBoxModel;
62
65
  set statusBox(statusBox: StatusBoxModel);
66
+ /**
67
+ * @property Input
68
+ * @description
69
+ * String to be tracked by e.x. GTM og GA.
70
+ * Can be combined with all other properties.
71
+ *
72
+ * @example
73
+ * <nas-button [trackingValue]="trackingValue">Click on me!</nas-button>
74
+ */
75
+ trackingvalue?: string;
76
+ /**
77
+ * @property Output
78
+ * @description
79
+ * Change event when clicking on button.
80
+ *
81
+ * @example
82
+ * <nas-button (clickChange)="myFunction()">Click on me!</nas-button>
83
+ */
84
+ clickChange: EventEmitter<Event>;
63
85
  constructor();
64
86
  get modifiers(): Array<string>;
65
87
  getIcon(): string;
66
88
  private setStatusBoxValues;
89
+ statusBoxEvent(event: Event): void;
67
90
  static ɵfac: i0.ɵɵFactoryDeclaration<StatusBoxComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<StatusBoxComponent, "nas-status-box", never, { "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "statusBox": { "alias": "statusBox"; "required": false; }; }, {}, never, never, false, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusBoxComponent, "nas-status-box", never, { "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "statusBox": { "alias": "statusBox"; "required": false; }; "trackingvalue": { "alias": "trackingvalue"; "required": false; }; }, { "clickChange": "clickChange"; }, never, never, false, never>;
69
92
  }
@@ -15,19 +15,19 @@ export declare class SuggestionsComponent extends NasComponentBase {
15
15
  * @property Input
16
16
  * @description
17
17
  * Suggestions to be displayed
18
- */
18
+ */
19
19
  suggestions: Array<AirportModel>;
20
20
  /**
21
21
  * @property Input
22
22
  * @description
23
23
  * A label for 'or'
24
- */
24
+ */
25
25
  orLabel: string;
26
26
  /**
27
27
  * @property Output
28
28
  * @description
29
29
  * Fired when an airport is selected
30
- */
30
+ */
31
31
  airportSelect: EventEmitter<AirportModel>;
32
32
  constructor();
33
33
  onAirportSelect(airport: AirportModel): void;
@@ -2,8 +2,8 @@ import { NasComponentBase } from '../../core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * @description
5
- * Norwegian Table Component | Layout | Beta
6
- */
5
+ * Norwegian Table Component | Layout
6
+ */
7
7
  export declare class TableComponent extends NasComponentBase {
8
8
  /**
9
9
  * @property Input
@@ -11,7 +11,7 @@ export declare class TableComponent extends NasComponentBase {
11
11
  * Add caption to the table
12
12
  * @example
13
13
  * <nas-table [caption]="'Awesome caption'"></nas-table>
14
- */
14
+ */
15
15
  caption: string;
16
16
  constructor();
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
@@ -15,28 +15,28 @@ export declare class TagComponent extends NasComponentBase {
15
15
  *
16
16
  */
17
17
  /**
18
- * @property Input
19
- * @description
20
- * Boolean to give the tag info.
21
- */
18
+ * @property Input
19
+ * @description
20
+ * Boolean to give the tag info.
21
+ */
22
22
  info: boolean;
23
23
  /**
24
- * @property Input
25
- * @description
26
- * Boolean to give the tag a warning.
27
- */
24
+ * @property Input
25
+ * @description
26
+ * Boolean to give the tag a warning.
27
+ */
28
28
  warning: boolean;
29
29
  /**
30
- * @property Input
31
- * @description
32
- * Boolean to give the tag an error.
33
- */
30
+ * @property Input
31
+ * @description
32
+ * Boolean to give the tag an error.
33
+ */
34
34
  error: boolean;
35
35
  /**
36
- * @property Input
37
- * @description
38
- * Boolean to give the tag a success.
39
- */
36
+ * @property Input
37
+ * @description
38
+ * Boolean to give the tag a success.
39
+ */
40
40
  success: boolean;
41
41
  /**
42
42
  * @property Input
@@ -22,7 +22,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
22
22
  * @required
23
23
  * @example
24
24
  * <nas-trip-summary [tripSummaryModel]="tripSummaryModel"></nas-trip-summary>
25
- */
25
+ */
26
26
  tripSummaryModel: TripSummaryModel;
27
27
  /**
28
28
  * @property Input
@@ -31,7 +31,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
31
31
  * Default is false
32
32
  * @example
33
33
  * <nas-trip-summary [expanded]="true"></nas-trip-summary>
34
- */
34
+ */
35
35
  expanded: boolean;
36
36
  /**
37
37
  * @property Input
@@ -39,7 +39,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
39
39
  * A boolean value to enable expanding/collapsing the trip summary details. Default value is false
40
40
  * @example
41
41
  * <nas-trip-summary [collapsable]="true"></nas-trip-summary>
42
- */
42
+ */
43
43
  collapsable: boolean;
44
44
  /**
45
45
  * @property Input
@@ -49,7 +49,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
49
49
  * <nas-trip-summary [displayMinimumInfo]="true"></nas-trip-summary>
50
50
  * or
51
51
  * <nas-trip-summary displayMinimumInfo></nas-trip-summary>
52
- */
52
+ */
53
53
  displayMinimumInfo: boolean;
54
54
  /**
55
55
  * @property Input
@@ -57,7 +57,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
57
57
  * A string represents the title of the expand/collase action.
58
58
  * @example
59
59
  * <nas-trip-summary [expandTitle]="'Details'"></nas-trip-summary>
60
- */
60
+ */
61
61
  expandTitle: string;
62
62
  /**
63
63
  * @property Input
@@ -65,7 +65,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
65
65
  * A string represents the Label before arrival time.
66
66
  * @example
67
67
  * <nas-trip-summary [arrivalLabel]="'Arrival'"></nas-trip-summary>
68
- */
68
+ */
69
69
  arrivalLabel: string;
70
70
  /**
71
71
  * @property Input
@@ -73,7 +73,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
73
73
  * A string represents the label before departure time.
74
74
  * @example
75
75
  * <nas-trip-summary [departureLabel]="'Departure'"></nas-trip-summary>
76
- */
76
+ */
77
77
  departureLabel: string;
78
78
  /**
79
79
  * @property Input
@@ -81,7 +81,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
81
81
  * A string represents the Label before delayed arrival time for journey component.
82
82
  * @example
83
83
  * <nas-trip-summary [arrivalEstimatedLabel]="'New time'"></nas-trip-summary>
84
- */
84
+ */
85
85
  arrivalEstimatedLabel: string;
86
86
  /**
87
87
  * @property Input
@@ -89,7 +89,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
89
89
  * A string represents the label before delayed departure time for journey component.
90
90
  * @example
91
91
  * <nas-trip-summary [departureEstimatedLabel]="'New time'"></nas-trip-summary>
92
- */
92
+ */
93
93
  departureEstimatedLabel: string;
94
94
  /**
95
95
  * @property Input
@@ -98,7 +98,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
98
98
  * i.e 'dd MMM yyyy', which will result in displaying date like '21, Feb 2019'.
99
99
  * @example
100
100
  * <nas-trip-summary [dateFormat]="'dd, MMM yyyy'"></nas-trip-summary>
101
- */
101
+ */
102
102
  dateFormat: string;
103
103
  /**
104
104
  * @property Input
@@ -107,7 +107,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
107
107
  * i.e 'HH:mm' , which will result in displaying time like '09:23'.
108
108
  * @example
109
109
  * <nas-trip-summary [timeFormat]="'HH:mm'"></nas-trip-summary>
110
- */
110
+ */
111
111
  timeFormat: string;
112
112
  /**
113
113
  * @property Input
@@ -116,7 +116,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
116
116
  * if not provided, transit time will not be shown
117
117
  * @example
118
118
  * <nas-trip-summary [transitHoursIndicator]="'h'"></nas-trip-summary>
119
- */
119
+ */
120
120
  transitHoursIndicator: string;
121
121
  /**
122
122
  * @property Input
@@ -125,7 +125,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
125
125
  * if not provided, transit time will not be shown
126
126
  * @example
127
127
  * <nas-trip-summary [transitMinutesIndicator]="'m'"></nas-trip-summary>
128
- */
128
+ */
129
129
  transitMinutesIndicator: string;
130
130
  /**
131
131
  * @property Input
@@ -133,7 +133,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
133
133
  * A string representing label placed before transit stop time.
134
134
  * @example
135
135
  * <nas-trip-summary [transitLabel]="'Transit stop'"></nas-trip-summary>
136
- */
136
+ */
137
137
  transitLabel: string;
138
138
  /**
139
139
  * @property Input
@@ -142,7 +142,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
142
142
  * This requires that registerLocaleData is called with the respective locale.
143
143
  * @example
144
144
  * <nas-trip-summary [locale]="'es'"></nas-trip-summary>
145
- */
145
+ */
146
146
  locale: string;
147
147
  /**
148
148
  * @property Input
@@ -151,7 +151,7 @@ export declare class TripSummaryComponent extends NasComponentBase implements On
151
151
  * Default is set to UTC and it will by default show the date exactly what is passed to it.
152
152
  * @example
153
153
  * <nas-trip-summary [timeZone]="'UTC'"></nas-trip-summary>
154
- */
154
+ */
155
155
  timeZone: string;
156
156
  constructor();
157
157
  ngOnChanges(changes: SimpleChanges): void;
@@ -5,44 +5,44 @@ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * @description
7
7
  * Norwegian Weather Component | Buttons and Indicators
8
- */
8
+ */
9
9
  export declare class WeatherIconComponent extends NasComponentBase implements AfterViewInit, OnInit {
10
10
  /**
11
11
  * @property Input
12
12
  * @required
13
13
  * @description
14
14
  * String representing the type of weather; cloud-and-sun, rain, thunder, ssnow, sun, cloudy
15
- */
15
+ */
16
16
  weather: string;
17
17
  /**
18
18
  * @property Input
19
19
  * @description
20
20
  * Number representing the temperature
21
- */
21
+ */
22
22
  temperature: number;
23
23
  /**
24
24
  * @property Input
25
25
  * @description
26
26
  * Sets the text above the temperature. "Ex. Avg.:". Default value is "Avg.";
27
- */
27
+ */
28
28
  temperatureText: string;
29
29
  /**
30
30
  * @property Input
31
31
  * @description
32
32
  * Boolean which sets the icon to have a small size
33
- */
33
+ */
34
34
  small: boolean;
35
35
  /**
36
36
  * @property Input
37
37
  * @description
38
38
  * Boolean which sets the icon to have a medium size
39
- */
39
+ */
40
40
  medium: boolean;
41
41
  /**
42
42
  * @property Input
43
43
  * @description
44
44
  * Boolean which sets the icon to have a light styling (used on dark backgrounds)
45
- */
45
+ */
46
46
  light: boolean;
47
47
  showTemperature: boolean;
48
48
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "6.54.3",
3
+ "version": "6.55.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 19.0.0",
6
6
  "@angular/core": ">=16.0.0 < 19.0.0"
@@ -1,48 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
4
-
5
- <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px" height="24px"
6
- viewBox="-583 408.9 24 24" style="enable-background:new -583 408.9 24 24;" xml:space="preserve">
7
-
8
-
9
- <g>
10
- <g>
11
- <g>
12
- <path fill="#15273f" d="M-559.2,420.9c0,6.5-5.3,11.7-11.8,11.7s-11.8-5.3-11.8-11.7c0-6.5,5.3-11.7,11.8-11.7
13
- S-559.2,414.4-559.2,420.9z"/>
14
- </g>
15
- </g>
16
- <g>
17
- <g>
18
- <g>
19
- <g>
20
- <g>
21
- <defs>
22
- <path id="SVGID_1_" d="M-559.2,420.9c0,6.5-5.3,11.7-11.8,11.7s-11.8-5.3-11.8-11.7c0-6.5,5.3-11.7,11.8-11.7
23
- S-559.2,414.4-559.2,420.9z"/>
24
- </defs>
25
- <clipPath id="SVGID_2_">
26
- <use xlink:href="#SVGID_1_" style="overflow:visible;"/>
27
- </clipPath>
28
- <g clip-path="url(#SVGID_2_)">
29
- <g>
30
- <path fill="#FFFFFF" d="M-578,422.6c0,0.4,0.1,0.6,0.1,0.9c0.4,0.1,0.6,0.1,0.9,0.1c1.8,0,3.2-1.4,3.2-3.2
31
- c0-0.4-0.1-0.6-0.1-0.9c-0.4-0.1-0.6-0.1-0.9-0.1C-576.6,419.4-578,420.9-578,422.6z"/>
32
- <g>
33
- <path fill="#FFFFFF" d="M-558.2,438.4l-2.9-9.1c-0.5-1.5-2.2-2.8-3.9-2.8h-8.9c-1.6,0-3.3,1.3-3.9,2.8l-2.9,9.1
34
- c-0.5,1.5-0.1,3.9,1,5.1l2.8,3.3l-0.5,40.4h3.8l1.5-15.1h5.5l1.5,15.1h3.8l-0.5-40.5l2.8-3.3
35
- C-558.1,442.3-557.7,439.9-558.2,438.4z"/>
36
- <path fill="#FFFFFF" d="M-569.3,424.1c1.7,0,3.1-1.4,3.1-3.1v-3.1c-0.1-1.8-1.5-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1v3.1
37
- C-572.4,422.7-571,424.1-569.3,424.1z M-567.8,421.1c-0.1,0.7-0.8,1.2-1.5,1.2s-1.3-0.5-1.6-1.2H-567.8z"/>
38
- </g>
39
- </g>
40
- </g>
41
- </g>
42
- </g>
43
- </g>
44
- </g>
45
- </g>
46
- </g>
47
-
48
- </svg>