@norwegian/core-components 7.13.4 → 8.0.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 (597) hide show
  1. package/README.md +3 -3
  2. package/assets/documentation/accordion/accordion.md +1 -1
  3. package/assets/documentation/airport-select/airport-select.md +1 -0
  4. package/assets/documentation/alert/alert.md +1 -0
  5. package/assets/documentation/autocomplete/autocomplete.md +1 -1
  6. package/assets/documentation/backdrop/backdrop.md +1 -0
  7. package/assets/documentation/box/box.md +1 -1
  8. package/assets/documentation/button/button.md +1 -10
  9. package/assets/documentation/checkbox/checkbox.md +1 -7
  10. package/assets/documentation/container/container.md +1 -1
  11. package/assets/documentation/continue/continue.md +2 -1
  12. package/assets/documentation/cover/cover.md +1 -1
  13. package/assets/documentation/datepicker/datepicker.md +1 -3
  14. package/assets/documentation/datepicker-combo/datepicker-combo.md +2 -1
  15. package/assets/documentation/divider/divider.md +1 -1
  16. package/assets/documentation/dropdown/dropdown.md +1 -3
  17. package/assets/documentation/filter/filter.md +1 -0
  18. package/assets/documentation/grid/grid.md +1 -1
  19. package/assets/documentation/icon/icon.md +1 -1
  20. package/assets/documentation/icon-list/icon-list.md +1 -1
  21. package/assets/documentation/input/input.md +1 -1
  22. package/assets/documentation/journey/journey.md +2 -1
  23. package/assets/documentation/journey-availability/journey-availability.md +1 -3
  24. package/assets/documentation/journey-availability-list/journey-availability-list.md +1 -9
  25. package/assets/documentation/journey-selection/journey-selection.md +1 -1
  26. package/assets/documentation/journey-stopover/journey-stopover.md +2 -1
  27. package/assets/documentation/list/list.md +1 -1
  28. package/assets/documentation/micro-button/micro-button.md +2 -0
  29. package/assets/documentation/modal/modal.md +1 -0
  30. package/assets/documentation/number-field/number-field.md +1 -1
  31. package/assets/documentation/page-footer/page-footer.md +1 -1
  32. package/assets/documentation/page-header/page-header.md +1 -1
  33. package/assets/documentation/passenger-select/passenger-select.md +1 -1
  34. package/assets/documentation/phone-number/phone-number.md +1 -2
  35. package/assets/documentation/premium-toggle/premium-toggle.md +1 -9
  36. package/assets/documentation/radio/radio.md +1 -7
  37. package/assets/documentation/ribbon-banner/ribbon-banner.md +2 -1
  38. package/assets/documentation/select/select.md +1 -1
  39. package/assets/documentation/simple-list/simple-list.md +1 -1
  40. package/assets/documentation/slide-toggle/slide-toggle.md +1 -1
  41. package/assets/documentation/slider/slider.md +1 -1
  42. package/assets/documentation/sort/sort.md +1 -1
  43. package/assets/documentation/spinner/spinner.md +1 -1
  44. package/assets/documentation/status-box/status-box.md +2 -1
  45. package/assets/documentation/suggestions/suggestions.md +2 -1
  46. package/assets/documentation/tab-group/tab-group.md +1 -1
  47. package/assets/documentation/table/table.md +1 -8
  48. package/assets/documentation/tag/tag.md +1 -0
  49. package/assets/documentation/textarea/textarea.md +1 -1
  50. package/assets/documentation/toggle/toggle.md +1 -5
  51. package/assets/documentation/tooltip/tooltip.md +1 -0
  52. package/assets/documentation/trip-summary/trip-summary.md +1 -2
  53. package/fesm2022/norwegian-core-components.mjs +13107 -13022
  54. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  55. package/index.d.ts +9116 -5
  56. package/package.json +14 -8
  57. package/styles/1__settings/_colors.scss +9 -9
  58. package/styles/1__settings/_mixins.scss +29 -25
  59. package/styles/1__settings/_type.scss +18 -6
  60. package/styles/1__settings/_vars.scss +7 -4
  61. package/styles/2__generic/_fonts.scss +7 -5
  62. package/styles/3__base/_animations.scss +84 -84
  63. package/styles/3__base/_body.scss +6 -4
  64. package/styles/3__base/_fixes.scss +1 -1
  65. package/styles/3__base/_form.scss +5 -2
  66. package/styles/3__base/_heading.scss +22 -18
  67. package/styles/3__base/_hr.scss +4 -0
  68. package/styles/3__base/_input.scss +5 -1
  69. package/styles/3__base/_link.scss +3 -0
  70. package/styles/3__base/_table.scss +8 -4
  71. package/styles/3__base/_type.scss +11 -7
  72. package/styles/_helpers.scss +4 -4
  73. package/styles/_index.scss +13 -13
  74. package/assets/documentation/campaign-header/campaign-header.md +0 -0
  75. package/assets/documentation/chip/chip.md +0 -1
  76. package/assets/documentation/info/info.md +0 -1
  77. package/esm2022/lib/components/accordion/accordion.component.mjs +0 -145
  78. package/esm2022/lib/components/accordion/accordion.module.mjs +0 -20
  79. package/esm2022/lib/components/accordion/index.mjs +0 -3
  80. package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +0 -618
  81. package/esm2022/lib/components/airport-select/airport-select.component.mjs +0 -487
  82. package/esm2022/lib/components/airport-select/airport-select.module.mjs +0 -42
  83. package/esm2022/lib/components/airport-select/index.mjs +0 -7
  84. package/esm2022/lib/components/airport-select/models/airport-select-event.model.mjs +0 -2
  85. package/esm2022/lib/components/airport-select/models/airport-select-state.model.mjs +0 -2
  86. package/esm2022/lib/components/airport-select/models/airport.model.mjs +0 -2
  87. package/esm2022/lib/components/airport-select/models/results-labels.model.mjs +0 -3
  88. package/esm2022/lib/components/airport-select/services/airport-select-dropdown.service.mjs +0 -35
  89. package/esm2022/lib/components/airport-select/services/airport-select.service.mjs +0 -38
  90. package/esm2022/lib/components/alert/alert.component.mjs +0 -169
  91. package/esm2022/lib/components/alert/alert.module.mjs +0 -22
  92. package/esm2022/lib/components/alert/index.mjs +0 -3
  93. package/esm2022/lib/components/alert/models/alert.model.mjs +0 -2
  94. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +0 -318
  95. package/esm2022/lib/components/autocomplete/autocomplete.module.mjs +0 -43
  96. package/esm2022/lib/components/autocomplete/index.mjs +0 -4
  97. package/esm2022/lib/components/autocomplete/models/autocomplete.model.mjs +0 -2
  98. package/esm2022/lib/components/backdrop/backdrop.component.mjs +0 -58
  99. package/esm2022/lib/components/backdrop/backdrop.module.mjs +0 -19
  100. package/esm2022/lib/components/backdrop/index.mjs +0 -3
  101. package/esm2022/lib/components/box/box.component.mjs +0 -66
  102. package/esm2022/lib/components/box/box.module.mjs +0 -19
  103. package/esm2022/lib/components/box/index.mjs +0 -3
  104. package/esm2022/lib/components/button/button.component.mjs +0 -192
  105. package/esm2022/lib/components/button/button.module.mjs +0 -21
  106. package/esm2022/lib/components/button/index.mjs +0 -3
  107. package/esm2022/lib/components/campaign-header/campaign-header.component.mjs +0 -51
  108. package/esm2022/lib/components/campaign-header/campaign-header.module.mjs +0 -20
  109. package/esm2022/lib/components/campaign-header/index.mjs +0 -3
  110. package/esm2022/lib/components/checkbox/checkbox.component.mjs +0 -163
  111. package/esm2022/lib/components/checkbox/checkbox.module.mjs +0 -20
  112. package/esm2022/lib/components/checkbox/index.mjs +0 -3
  113. package/esm2022/lib/components/chip/chip.component.mjs +0 -48
  114. package/esm2022/lib/components/chip/chip.module.mjs +0 -19
  115. package/esm2022/lib/components/chip/index.mjs +0 -3
  116. package/esm2022/lib/components/container/container.component.mjs +0 -50
  117. package/esm2022/lib/components/container/container.module.mjs +0 -19
  118. package/esm2022/lib/components/container/index.mjs +0 -3
  119. package/esm2022/lib/components/continue/continue.component.mjs +0 -199
  120. package/esm2022/lib/components/continue/continue.module.mjs +0 -23
  121. package/esm2022/lib/components/continue/index.mjs +0 -3
  122. package/esm2022/lib/components/cover/cover.component.mjs +0 -75
  123. package/esm2022/lib/components/cover/cover.module.mjs +0 -21
  124. package/esm2022/lib/components/cover/index.mjs +0 -3
  125. package/esm2022/lib/components/datepicker/calendar/calendar-date.model.mjs +0 -2
  126. package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +0 -607
  127. package/esm2022/lib/components/datepicker/calendar/enums/week-start.enum.mjs +0 -6
  128. package/esm2022/lib/components/datepicker/calendar/models/day.model.mjs +0 -2
  129. package/esm2022/lib/components/datepicker/calendar/models/select-option.model.mjs +0 -2
  130. package/esm2022/lib/components/datepicker/calendar/models/week.model.mjs +0 -2
  131. package/esm2022/lib/components/datepicker/datepicker.component.mjs +0 -613
  132. package/esm2022/lib/components/datepicker/datepicker.module.mjs +0 -55
  133. package/esm2022/lib/components/datepicker/index.mjs +0 -5
  134. package/esm2022/lib/components/datepicker/services/calendar.service.mjs +0 -215
  135. package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +0 -401
  136. package/esm2022/lib/components/datepicker-combo/datepicker-combo.module.mjs +0 -31
  137. package/esm2022/lib/components/datepicker-combo/index.mjs +0 -3
  138. package/esm2022/lib/components/divider/divider.component.mjs +0 -59
  139. package/esm2022/lib/components/divider/divider.module.mjs +0 -28
  140. package/esm2022/lib/components/divider/index.mjs +0 -3
  141. package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -170
  142. package/esm2022/lib/components/dropdown/dropdown.module.mjs +0 -21
  143. package/esm2022/lib/components/dropdown/index.mjs +0 -3
  144. package/esm2022/lib/components/filter/enums/trip-type.enum.mjs +0 -8
  145. package/esm2022/lib/components/filter/filter.component.mjs +0 -1307
  146. package/esm2022/lib/components/filter/filter.module.mjs +0 -81
  147. package/esm2022/lib/components/filter/index.mjs +0 -4
  148. package/esm2022/lib/components/grid/col/col.component.mjs +0 -49
  149. package/esm2022/lib/components/grid/grid.component.mjs +0 -72
  150. package/esm2022/lib/components/grid/grid.module.mjs +0 -20
  151. package/esm2022/lib/components/grid/index.mjs +0 -4
  152. package/esm2022/lib/components/icon/icon.component.mjs +0 -44
  153. package/esm2022/lib/components/icon/icon.module.mjs +0 -19
  154. package/esm2022/lib/components/icon/index.mjs +0 -3
  155. package/esm2022/lib/components/icon-list/icon-list.component.mjs +0 -50
  156. package/esm2022/lib/components/icon-list/icon-list.model.mjs +0 -2
  157. package/esm2022/lib/components/icon-list/icon-list.module.mjs +0 -20
  158. package/esm2022/lib/components/icon-list/index.mjs +0 -4
  159. package/esm2022/lib/components/index.mjs +0 -67
  160. package/esm2022/lib/components/info/index.mjs +0 -4
  161. package/esm2022/lib/components/info/info.component.mjs +0 -116
  162. package/esm2022/lib/components/info/info.module.mjs +0 -36
  163. package/esm2022/lib/components/info/models/info.model.mjs +0 -2
  164. package/esm2022/lib/components/input/index.mjs +0 -3
  165. package/esm2022/lib/components/input/input.component.mjs +0 -228
  166. package/esm2022/lib/components/input/input.module.mjs +0 -35
  167. package/esm2022/lib/components/journey/index.mjs +0 -3
  168. package/esm2022/lib/components/journey/journey.component.mjs +0 -137
  169. package/esm2022/lib/components/journey/journey.module.mjs +0 -21
  170. package/esm2022/lib/components/journey/models/journey-flight.model.mjs +0 -2
  171. package/esm2022/lib/components/journey/models/journey.model.mjs +0 -2
  172. package/esm2022/lib/components/journey/models/marketing-carrier.enum.mjs +0 -8
  173. package/esm2022/lib/components/journey-availability/index.mjs +0 -3
  174. package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +0 -128
  175. package/esm2022/lib/components/journey-availability/journey-availability.module.mjs +0 -39
  176. package/esm2022/lib/components/journey-availability-list/enums/availability-sort-option.enum.mjs +0 -7
  177. package/esm2022/lib/components/journey-availability-list/index.mjs +0 -3
  178. package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +0 -182
  179. package/esm2022/lib/components/journey-availability-list/journey-availability-list.module.mjs +0 -36
  180. package/esm2022/lib/components/journey-selection/index.mjs +0 -6
  181. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +0 -120
  182. package/esm2022/lib/components/journey-selection/journey-selection.module.mjs +0 -24
  183. package/esm2022/lib/components/journey-selection/models/journey-selection-collapsed.model.mjs +0 -2
  184. package/esm2022/lib/components/journey-selection/models/journey-selection-common.model.mjs +0 -2
  185. package/esm2022/lib/components/journey-selection/models/journey-selection-expanded.model.mjs +0 -2
  186. package/esm2022/lib/components/journey-selection/models/journey-selection.model.mjs +0 -2
  187. package/esm2022/lib/components/journey-stopover/index.mjs +0 -3
  188. package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +0 -150
  189. package/esm2022/lib/components/journey-stopover/journey-stopover.module.mjs +0 -21
  190. package/esm2022/lib/components/journey-stopover/models/stopover-time.model.mjs +0 -2
  191. package/esm2022/lib/components/list/index.mjs +0 -4
  192. package/esm2022/lib/components/list/list-item/list-item.component.mjs +0 -52
  193. package/esm2022/lib/components/list/list.component.mjs +0 -78
  194. package/esm2022/lib/components/list/list.module.mjs +0 -20
  195. package/esm2022/lib/components/micro-button/index.mjs +0 -3
  196. package/esm2022/lib/components/micro-button/micro-button.component.mjs +0 -101
  197. package/esm2022/lib/components/micro-button/micro-button.module.mjs +0 -20
  198. package/esm2022/lib/components/modal/index.mjs +0 -3
  199. package/esm2022/lib/components/modal/modal.component.mjs +0 -156
  200. package/esm2022/lib/components/modal/modal.module.mjs +0 -38
  201. package/esm2022/lib/components/number-field/index.mjs +0 -3
  202. package/esm2022/lib/components/number-field/models/number-field.model.mjs +0 -2
  203. package/esm2022/lib/components/number-field/number-field.component.mjs +0 -162
  204. package/esm2022/lib/components/number-field/number-field.module.mjs +0 -39
  205. package/esm2022/lib/components/page-footer/index.mjs +0 -3
  206. package/esm2022/lib/components/page-footer/page-footer.component.mjs +0 -52
  207. package/esm2022/lib/components/page-footer/page-footer.module.mjs +0 -21
  208. package/esm2022/lib/components/page-header/hamburger/hamburger.component.mjs +0 -22
  209. package/esm2022/lib/components/page-header/index.mjs +0 -5
  210. package/esm2022/lib/components/page-header/models/wallet.model.mjs +0 -2
  211. package/esm2022/lib/components/page-header/page-header.component.mjs +0 -171
  212. package/esm2022/lib/components/page-header/page-header.module.mjs +0 -55
  213. package/esm2022/lib/components/page-header/search/search.component.mjs +0 -49
  214. package/esm2022/lib/components/page-header/wallet/wallet.component.mjs +0 -57
  215. package/esm2022/lib/components/passenger-select/enums/passenger-type.enum.mjs +0 -9
  216. package/esm2022/lib/components/passenger-select/index.mjs +0 -5
  217. package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +0 -2
  218. package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +0 -423
  219. package/esm2022/lib/components/passenger-select/passenger-select.module.mjs +0 -28
  220. package/esm2022/lib/components/phone-number/index.mjs +0 -3
  221. package/esm2022/lib/components/phone-number/phone-number.component.mjs +0 -182
  222. package/esm2022/lib/components/phone-number/phone-number.module.mjs +0 -44
  223. package/esm2022/lib/components/premium-toggle/index.mjs +0 -3
  224. package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +0 -68
  225. package/esm2022/lib/components/premium-toggle/premium-toggle.module.mjs +0 -20
  226. package/esm2022/lib/components/radio/index.mjs +0 -3
  227. package/esm2022/lib/components/radio/radio.component.mjs +0 -109
  228. package/esm2022/lib/components/radio/radio.module.mjs +0 -20
  229. package/esm2022/lib/components/ribbon-banner/index.mjs +0 -3
  230. package/esm2022/lib/components/ribbon-banner/ribbon-banner.component.mjs +0 -89
  231. package/esm2022/lib/components/ribbon-banner/ribbon-banner.module.mjs +0 -40
  232. package/esm2022/lib/components/select/index.mjs +0 -6
  233. package/esm2022/lib/components/select/models/select-option.model.mjs +0 -2
  234. package/esm2022/lib/components/select/optgroup/optgroup.component.mjs +0 -29
  235. package/esm2022/lib/components/select/option/option.component.mjs +0 -26
  236. package/esm2022/lib/components/select/select.component.mjs +0 -404
  237. package/esm2022/lib/components/select/select.module.mjs +0 -23
  238. package/esm2022/lib/components/simple-list/index.mjs +0 -3
  239. package/esm2022/lib/components/simple-list/simple-list.component.mjs +0 -48
  240. package/esm2022/lib/components/simple-list/simple-list.module.mjs +0 -19
  241. package/esm2022/lib/components/slide-toggle/index.mjs +0 -3
  242. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +0 -121
  243. package/esm2022/lib/components/slide-toggle/slide-toggle.module.mjs +0 -20
  244. package/esm2022/lib/components/slider/index.mjs +0 -3
  245. package/esm2022/lib/components/slider/slider.component.mjs +0 -515
  246. package/esm2022/lib/components/slider/slider.module.mjs +0 -20
  247. package/esm2022/lib/components/sort/index.mjs +0 -3
  248. package/esm2022/lib/components/sort/sort.component.mjs +0 -98
  249. package/esm2022/lib/components/sort/sort.module.mjs +0 -36
  250. package/esm2022/lib/components/spinner/index.mjs +0 -3
  251. package/esm2022/lib/components/spinner/spinner.component.mjs +0 -127
  252. package/esm2022/lib/components/spinner/spinner.module.mjs +0 -19
  253. package/esm2022/lib/components/status-box/index.mjs +0 -3
  254. package/esm2022/lib/components/status-box/models/status-box.model.mjs +0 -2
  255. package/esm2022/lib/components/status-box/status-box.component.mjs +0 -109
  256. package/esm2022/lib/components/status-box/status-box.module.mjs +0 -21
  257. package/esm2022/lib/components/suggestions/index.mjs +0 -3
  258. package/esm2022/lib/components/suggestions/suggestions.component.mjs +0 -44
  259. package/esm2022/lib/components/suggestions/suggestions.module.mjs +0 -20
  260. package/esm2022/lib/components/tab-group/index.mjs +0 -4
  261. package/esm2022/lib/components/tab-group/tab/tab.component.mjs +0 -140
  262. package/esm2022/lib/components/tab-group/tab-group.component.mjs +0 -91
  263. package/esm2022/lib/components/tab-group/tab-group.module.mjs +0 -21
  264. package/esm2022/lib/components/table/column/column.component.mjs +0 -16
  265. package/esm2022/lib/components/table/column-group/column-group.component.mjs +0 -30
  266. package/esm2022/lib/components/table/index.mjs +0 -11
  267. package/esm2022/lib/components/table/services/table.service.mjs +0 -24
  268. package/esm2022/lib/components/table/table-body/table-body.component.mjs +0 -23
  269. package/esm2022/lib/components/table/table-foot/table-foot.component.mjs +0 -23
  270. package/esm2022/lib/components/table/table-head/table-head.component.mjs +0 -23
  271. package/esm2022/lib/components/table/table-row/table-data/table-data.component.mjs +0 -15
  272. package/esm2022/lib/components/table/table-row/table-header/table-header.component.mjs +0 -15
  273. package/esm2022/lib/components/table/table-row/table-row.component.mjs +0 -23
  274. package/esm2022/lib/components/table/table.component.mjs +0 -27
  275. package/esm2022/lib/components/table/table.module.mjs +0 -63
  276. package/esm2022/lib/components/tag/index.mjs +0 -3
  277. package/esm2022/lib/components/tag/tag.component.mjs +0 -71
  278. package/esm2022/lib/components/tag/tag.module.mjs +0 -28
  279. package/esm2022/lib/components/textarea/index.mjs +0 -3
  280. package/esm2022/lib/components/textarea/textarea.component.mjs +0 -139
  281. package/esm2022/lib/components/textarea/textarea.module.mjs +0 -21
  282. package/esm2022/lib/components/toggle/index.mjs +0 -3
  283. package/esm2022/lib/components/toggle/models/options.model.mjs +0 -3
  284. package/esm2022/lib/components/toggle/toggle.component.mjs +0 -102
  285. package/esm2022/lib/components/toggle/toggle.module.mjs +0 -35
  286. package/esm2022/lib/components/tooltip/index.mjs +0 -3
  287. package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -170
  288. package/esm2022/lib/components/tooltip/tooltip.module.mjs +0 -30
  289. package/esm2022/lib/components/trip-summary/index.mjs +0 -3
  290. package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +0 -167
  291. package/esm2022/lib/components/trip-summary/trip-summary.module.mjs +0 -36
  292. package/esm2022/lib/core/base/nas-component.base.mjs +0 -48
  293. package/esm2022/lib/core/decorators/debounce.decorator.mjs +0 -12
  294. package/esm2022/lib/core/directives/index.mjs +0 -3
  295. package/esm2022/lib/core/directives/nas-class/nas-class.directive.mjs +0 -80
  296. package/esm2022/lib/core/directives/nas-class/nas-class.module.mjs +0 -20
  297. package/esm2022/lib/core/extensions/html-element.extension.mjs +0 -31
  298. package/esm2022/lib/core/index.mjs +0 -5
  299. package/esm2022/lib/core/models/abandoned-basket-item.model.mjs +0 -2
  300. package/esm2022/lib/core/models/animate.model.mjs +0 -2
  301. package/esm2022/lib/core/models/class.model.mjs +0 -2
  302. package/esm2022/lib/core/models/index.mjs +0 -7
  303. package/esm2022/lib/core/models/link.model.mjs +0 -2
  304. package/esm2022/lib/core/models/position.model.mjs +0 -2
  305. package/esm2022/lib/core/models/utc-date.model.mjs +0 -40
  306. package/esm2022/lib/core/services/abandoned-basket/abandoned-basket.service.mjs +0 -61
  307. package/esm2022/lib/core/services/animate-helper/animate-helper.service.mjs +0 -49
  308. package/esm2022/lib/core/services/bem-helper/bem-helper.service.mjs +0 -44
  309. package/esm2022/lib/core/services/date/date-compare.enum.mjs +0 -7
  310. package/esm2022/lib/core/services/date/date-helper.service.mjs +0 -199
  311. package/esm2022/lib/core/services/device/device-helper.service.mjs +0 -46
  312. package/esm2022/lib/core/services/geolocation/geolocation-state.enum.mjs +0 -8
  313. package/esm2022/lib/core/services/geolocation/geolocation.service.mjs +0 -66
  314. package/esm2022/lib/core/services/index.mjs +0 -10
  315. package/esm2022/lib/core/services/language/language-helper.service.mjs +0 -114
  316. package/esm2022/lib/core/services/sort/sort.service.mjs +0 -25
  317. package/esm2022/lib/core/services/viewport/viewport.service.mjs +0 -36
  318. package/esm2022/lib/index.mjs +0 -5
  319. package/esm2022/lib/services/get-position.service.mjs +0 -23
  320. package/esm2022/lib/services/index.mjs +0 -2
  321. package/esm2022/lib/shared/index.mjs +0 -2
  322. package/esm2022/lib/shared/models/flight-details.mjs +0 -3
  323. package/esm2022/lib/shared/models/index.mjs +0 -6
  324. package/esm2022/lib/shared/models/journey-availability-sort.model.mjs +0 -2
  325. package/esm2022/lib/shared/models/journey-availability.model.mjs +0 -2
  326. package/esm2022/lib/shared/models/journey-details.model.mjs +0 -2
  327. package/esm2022/lib/shared/models/journey-duration.model.mjs +0 -2
  328. package/esm2022/lib/shared/models/journey-stopover.model.mjs +0 -2
  329. package/esm2022/lib/shared/models/journey-transit-info.model.mjs +0 -2
  330. package/esm2022/lib/shared/models/operating-carrier.model.mjs +0 -2
  331. package/esm2022/lib/shared/models/sort-option.model.mjs +0 -2
  332. package/esm2022/lib/shared/models/sort.model.mjs +0 -2
  333. package/esm2022/lib/shared/models/trip-item-details.model.mjs +0 -2
  334. package/esm2022/lib/shared/models/trip-summary-details.model.mjs +0 -2
  335. package/esm2022/lib/shared/models/trip-summary.model.mjs +0 -2
  336. package/esm2022/norwegian-core-components.mjs +0 -5
  337. package/esm2022/public_api.mjs +0 -2
  338. package/lib/components/accordion/accordion.component.d.ts +0 -215
  339. package/lib/components/accordion/accordion.module.d.ts +0 -10
  340. package/lib/components/accordion/index.d.ts +0 -2
  341. package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +0 -99
  342. package/lib/components/airport-select/airport-select.component.d.ts +0 -323
  343. package/lib/components/airport-select/airport-select.module.d.ts +0 -13
  344. package/lib/components/airport-select/index.d.ts +0 -6
  345. package/lib/components/airport-select/models/airport-select-event.model.d.ts +0 -4
  346. package/lib/components/airport-select/models/airport-select-state.model.d.ts +0 -5
  347. package/lib/components/airport-select/models/airport.model.d.ts +0 -11
  348. package/lib/components/airport-select/models/results-labels.model.d.ts +0 -7
  349. package/lib/components/airport-select/services/airport-select-dropdown.service.d.ts +0 -10
  350. package/lib/components/airport-select/services/airport-select.service.d.ts +0 -8
  351. package/lib/components/alert/alert.component.d.ts +0 -129
  352. package/lib/components/alert/alert.module.d.ts +0 -12
  353. package/lib/components/alert/index.d.ts +0 -2
  354. package/lib/components/alert/models/alert.model.d.ts +0 -10
  355. package/lib/components/autocomplete/autocomplete.component.d.ts +0 -135
  356. package/lib/components/autocomplete/autocomplete.module.d.ts +0 -13
  357. package/lib/components/autocomplete/index.d.ts +0 -3
  358. package/lib/components/autocomplete/models/autocomplete.model.d.ts +0 -5
  359. package/lib/components/backdrop/backdrop.component.d.ts +0 -38
  360. package/lib/components/backdrop/backdrop.module.d.ts +0 -9
  361. package/lib/components/backdrop/index.d.ts +0 -2
  362. package/lib/components/box/box.component.d.ts +0 -78
  363. package/lib/components/box/box.module.d.ts +0 -9
  364. package/lib/components/box/index.d.ts +0 -2
  365. package/lib/components/button/button.component.d.ts +0 -294
  366. package/lib/components/button/button.module.d.ts +0 -11
  367. package/lib/components/button/index.d.ts +0 -2
  368. package/lib/components/campaign-header/campaign-header.component.d.ts +0 -58
  369. package/lib/components/campaign-header/campaign-header.module.d.ts +0 -10
  370. package/lib/components/campaign-header/index.d.ts +0 -2
  371. package/lib/components/checkbox/checkbox.component.d.ts +0 -151
  372. package/lib/components/checkbox/checkbox.module.d.ts +0 -10
  373. package/lib/components/checkbox/index.d.ts +0 -2
  374. package/lib/components/chip/chip.component.d.ts +0 -48
  375. package/lib/components/chip/chip.module.d.ts +0 -9
  376. package/lib/components/chip/index.d.ts +0 -2
  377. package/lib/components/container/container.component.d.ts +0 -52
  378. package/lib/components/container/container.module.d.ts +0 -9
  379. package/lib/components/container/index.d.ts +0 -2
  380. package/lib/components/continue/continue.component.d.ts +0 -171
  381. package/lib/components/continue/continue.module.d.ts +0 -11
  382. package/lib/components/continue/index.d.ts +0 -2
  383. package/lib/components/cover/cover.component.d.ts +0 -125
  384. package/lib/components/cover/cover.module.d.ts +0 -11
  385. package/lib/components/cover/index.d.ts +0 -2
  386. package/lib/components/datepicker/calendar/calendar-date.model.d.ts +0 -5
  387. package/lib/components/datepicker/calendar/calendar.component.d.ts +0 -169
  388. package/lib/components/datepicker/calendar/enums/week-start.enum.d.ts +0 -4
  389. package/lib/components/datepicker/calendar/models/day.model.d.ts +0 -10
  390. package/lib/components/datepicker/calendar/models/select-option.model.d.ts +0 -4
  391. package/lib/components/datepicker/calendar/models/week.model.d.ts +0 -5
  392. package/lib/components/datepicker/datepicker.component.d.ts +0 -289
  393. package/lib/components/datepicker/datepicker.module.d.ts +0 -16
  394. package/lib/components/datepicker/index.d.ts +0 -4
  395. package/lib/components/datepicker/services/calendar.service.d.ts +0 -27
  396. package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +0 -322
  397. package/lib/components/datepicker-combo/datepicker-combo.module.d.ts +0 -10
  398. package/lib/components/datepicker-combo/index.d.ts +0 -2
  399. package/lib/components/divider/divider.component.d.ts +0 -68
  400. package/lib/components/divider/divider.module.d.ts +0 -10
  401. package/lib/components/divider/index.d.ts +0 -2
  402. package/lib/components/dropdown/dropdown.component.d.ts +0 -80
  403. package/lib/components/dropdown/dropdown.module.d.ts +0 -11
  404. package/lib/components/dropdown/index.d.ts +0 -2
  405. package/lib/components/filter/enums/trip-type.enum.d.ts +0 -6
  406. package/lib/components/filter/filter.component.d.ts +0 -862
  407. package/lib/components/filter/filter.module.d.ts +0 -22
  408. package/lib/components/filter/index.d.ts +0 -3
  409. package/lib/components/grid/col/col.component.d.ts +0 -45
  410. package/lib/components/grid/grid.component.d.ts +0 -92
  411. package/lib/components/grid/grid.module.d.ts +0 -10
  412. package/lib/components/grid/index.d.ts +0 -3
  413. package/lib/components/icon/icon.component.d.ts +0 -53
  414. package/lib/components/icon/icon.module.d.ts +0 -9
  415. package/lib/components/icon/index.d.ts +0 -2
  416. package/lib/components/icon-list/icon-list.component.d.ts +0 -49
  417. package/lib/components/icon-list/icon-list.model.d.ts +0 -8
  418. package/lib/components/icon-list/icon-list.module.d.ts +0 -10
  419. package/lib/components/icon-list/index.d.ts +0 -3
  420. package/lib/components/index.d.ts +0 -66
  421. package/lib/components/info/index.d.ts +0 -3
  422. package/lib/components/info/info.component.d.ts +0 -108
  423. package/lib/components/info/info.module.d.ts +0 -12
  424. package/lib/components/info/models/info.model.d.ts +0 -9
  425. package/lib/components/input/index.d.ts +0 -2
  426. package/lib/components/input/input.component.d.ts +0 -214
  427. package/lib/components/input/input.module.d.ts +0 -11
  428. package/lib/components/journey/index.d.ts +0 -2
  429. package/lib/components/journey/journey.component.d.ts +0 -102
  430. package/lib/components/journey/journey.module.d.ts +0 -11
  431. package/lib/components/journey/models/journey-flight.model.d.ts +0 -13
  432. package/lib/components/journey/models/journey.model.d.ts +0 -5
  433. package/lib/components/journey/models/marketing-carrier.enum.d.ts +0 -6
  434. package/lib/components/journey-availability/index.d.ts +0 -2
  435. package/lib/components/journey-availability/journey-availability.component.d.ts +0 -93
  436. package/lib/components/journey-availability/journey-availability.module.d.ts +0 -12
  437. package/lib/components/journey-availability-list/enums/availability-sort-option.enum.d.ts +0 -5
  438. package/lib/components/journey-availability-list/index.d.ts +0 -2
  439. package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +0 -114
  440. package/lib/components/journey-availability-list/journey-availability-list.module.d.ts +0 -12
  441. package/lib/components/journey-selection/index.d.ts +0 -5
  442. package/lib/components/journey-selection/journey-selection.component.d.ts +0 -84
  443. package/lib/components/journey-selection/journey-selection.module.d.ts +0 -11
  444. package/lib/components/journey-selection/models/journey-selection-collapsed.model.d.ts +0 -11
  445. package/lib/components/journey-selection/models/journey-selection-common.model.d.ts +0 -7
  446. package/lib/components/journey-selection/models/journey-selection-expanded.model.d.ts +0 -5
  447. package/lib/components/journey-selection/models/journey-selection.model.d.ts +0 -14
  448. package/lib/components/journey-stopover/index.d.ts +0 -2
  449. package/lib/components/journey-stopover/journey-stopover.component.d.ts +0 -131
  450. package/lib/components/journey-stopover/journey-stopover.module.d.ts +0 -11
  451. package/lib/components/journey-stopover/models/stopover-time.model.d.ts +0 -4
  452. package/lib/components/list/index.d.ts +0 -3
  453. package/lib/components/list/list-item/list-item.component.d.ts +0 -35
  454. package/lib/components/list/list.component.d.ts +0 -76
  455. package/lib/components/list/list.module.d.ts +0 -10
  456. package/lib/components/micro-button/index.d.ts +0 -2
  457. package/lib/components/micro-button/micro-button.component.d.ts +0 -139
  458. package/lib/components/micro-button/micro-button.module.d.ts +0 -10
  459. package/lib/components/modal/index.d.ts +0 -2
  460. package/lib/components/modal/modal.component.d.ts +0 -119
  461. package/lib/components/modal/modal.module.d.ts +0 -12
  462. package/lib/components/number-field/index.d.ts +0 -2
  463. package/lib/components/number-field/models/number-field.model.d.ts +0 -5
  464. package/lib/components/number-field/number-field.component.d.ts +0 -124
  465. package/lib/components/number-field/number-field.module.d.ts +0 -12
  466. package/lib/components/page-footer/index.d.ts +0 -2
  467. package/lib/components/page-footer/page-footer.component.d.ts +0 -53
  468. package/lib/components/page-footer/page-footer.module.d.ts +0 -11
  469. package/lib/components/page-header/hamburger/hamburger.component.d.ts +0 -12
  470. package/lib/components/page-header/index.d.ts +0 -4
  471. package/lib/components/page-header/models/wallet.model.d.ts +0 -21
  472. package/lib/components/page-header/page-header.component.d.ts +0 -127
  473. package/lib/components/page-header/page-header.module.d.ts +0 -17
  474. package/lib/components/page-header/search/search.component.d.ts +0 -26
  475. package/lib/components/page-header/wallet/wallet.component.d.ts +0 -23
  476. package/lib/components/passenger-select/enums/passenger-type.enum.d.ts +0 -7
  477. package/lib/components/passenger-select/index.d.ts +0 -4
  478. package/lib/components/passenger-select/models/passengers.model.d.ts +0 -11
  479. package/lib/components/passenger-select/passenger-select.component.d.ts +0 -141
  480. package/lib/components/passenger-select/passenger-select.module.d.ts +0 -10
  481. package/lib/components/phone-number/index.d.ts +0 -2
  482. package/lib/components/phone-number/phone-number.component.d.ts +0 -263
  483. package/lib/components/phone-number/phone-number.module.d.ts +0 -13
  484. package/lib/components/premium-toggle/index.d.ts +0 -2
  485. package/lib/components/premium-toggle/premium-toggle.component.d.ts +0 -50
  486. package/lib/components/premium-toggle/premium-toggle.module.d.ts +0 -10
  487. package/lib/components/radio/index.d.ts +0 -2
  488. package/lib/components/radio/radio.component.d.ts +0 -137
  489. package/lib/components/radio/radio.module.d.ts +0 -10
  490. package/lib/components/ribbon-banner/index.d.ts +0 -2
  491. package/lib/components/ribbon-banner/ribbon-banner.component.d.ts +0 -66
  492. package/lib/components/ribbon-banner/ribbon-banner.module.d.ts +0 -13
  493. package/lib/components/select/index.d.ts +0 -5
  494. package/lib/components/select/models/select-option.model.d.ts +0 -4
  495. package/lib/components/select/optgroup/optgroup.component.d.ts +0 -25
  496. package/lib/components/select/option/option.component.d.ts +0 -24
  497. package/lib/components/select/select.component.d.ts +0 -197
  498. package/lib/components/select/select.module.d.ts +0 -13
  499. package/lib/components/simple-list/index.d.ts +0 -2
  500. package/lib/components/simple-list/simple-list.component.d.ts +0 -60
  501. package/lib/components/simple-list/simple-list.module.d.ts +0 -9
  502. package/lib/components/slide-toggle/index.d.ts +0 -2
  503. package/lib/components/slide-toggle/slide-toggle.component.d.ts +0 -70
  504. package/lib/components/slide-toggle/slide-toggle.module.d.ts +0 -10
  505. package/lib/components/slider/index.d.ts +0 -2
  506. package/lib/components/slider/slider.component.d.ts +0 -216
  507. package/lib/components/slider/slider.module.d.ts +0 -10
  508. package/lib/components/sort/index.d.ts +0 -2
  509. package/lib/components/sort/sort.component.d.ts +0 -55
  510. package/lib/components/sort/sort.module.d.ts +0 -12
  511. package/lib/components/spinner/index.d.ts +0 -2
  512. package/lib/components/spinner/spinner.component.d.ts +0 -104
  513. package/lib/components/spinner/spinner.module.d.ts +0 -9
  514. package/lib/components/status-box/index.d.ts +0 -2
  515. package/lib/components/status-box/models/status-box.model.d.ts +0 -5
  516. package/lib/components/status-box/status-box.component.d.ts +0 -92
  517. package/lib/components/status-box/status-box.module.d.ts +0 -11
  518. package/lib/components/suggestions/index.d.ts +0 -2
  519. package/lib/components/suggestions/suggestions.component.d.ts +0 -36
  520. package/lib/components/suggestions/suggestions.module.d.ts +0 -10
  521. package/lib/components/tab-group/index.d.ts +0 -3
  522. package/lib/components/tab-group/tab/tab.component.d.ts +0 -97
  523. package/lib/components/tab-group/tab-group.component.d.ts +0 -42
  524. package/lib/components/tab-group/tab-group.module.d.ts +0 -11
  525. package/lib/components/table/column/column.component.d.ts +0 -6
  526. package/lib/components/table/column-group/column-group.component.d.ts +0 -15
  527. package/lib/components/table/index.d.ts +0 -10
  528. package/lib/components/table/services/table.service.d.ts +0 -8
  529. package/lib/components/table/table-body/table-body.component.d.ts +0 -15
  530. package/lib/components/table/table-foot/table-foot.component.d.ts +0 -15
  531. package/lib/components/table/table-head/table-head.component.d.ts +0 -15
  532. package/lib/components/table/table-row/table-data/table-data.component.d.ts +0 -5
  533. package/lib/components/table/table-row/table-header/table-header.component.d.ts +0 -5
  534. package/lib/components/table/table-row/table-row.component.d.ts +0 -15
  535. package/lib/components/table/table.component.d.ts +0 -19
  536. package/lib/components/table/table.module.d.ts +0 -17
  537. package/lib/components/tag/index.d.ts +0 -2
  538. package/lib/components/tag/tag.component.d.ts +0 -71
  539. package/lib/components/tag/tag.module.d.ts +0 -10
  540. package/lib/components/textarea/index.d.ts +0 -2
  541. package/lib/components/textarea/textarea.component.d.ts +0 -156
  542. package/lib/components/textarea/textarea.module.d.ts +0 -11
  543. package/lib/components/toggle/index.d.ts +0 -2
  544. package/lib/components/toggle/models/options.model.d.ts +0 -7
  545. package/lib/components/toggle/toggle.component.d.ts +0 -159
  546. package/lib/components/toggle/toggle.module.d.ts +0 -11
  547. package/lib/components/tooltip/index.d.ts +0 -2
  548. package/lib/components/tooltip/tooltip.component.d.ts +0 -63
  549. package/lib/components/tooltip/tooltip.module.d.ts +0 -10
  550. package/lib/components/trip-summary/index.d.ts +0 -2
  551. package/lib/components/trip-summary/trip-summary.component.d.ts +0 -162
  552. package/lib/components/trip-summary/trip-summary.module.d.ts +0 -12
  553. package/lib/core/base/nas-component.base.d.ts +0 -11
  554. package/lib/core/decorators/debounce.decorator.d.ts +0 -1
  555. package/lib/core/directives/index.d.ts +0 -2
  556. package/lib/core/directives/nas-class/nas-class.directive.d.ts +0 -14
  557. package/lib/core/directives/nas-class/nas-class.module.d.ts +0 -8
  558. package/lib/core/extensions/html-element.extension.d.ts +0 -6
  559. package/lib/core/index.d.ts +0 -4
  560. package/lib/core/models/abandoned-basket-item.model.d.ts +0 -14
  561. package/lib/core/models/animate.model.d.ts +0 -6
  562. package/lib/core/models/class.model.d.ts +0 -7
  563. package/lib/core/models/index.d.ts +0 -6
  564. package/lib/core/models/link.model.d.ts +0 -5
  565. package/lib/core/models/position.model.d.ts +0 -4
  566. package/lib/core/models/utc-date.model.d.ts +0 -13
  567. package/lib/core/services/abandoned-basket/abandoned-basket.service.d.ts +0 -10
  568. package/lib/core/services/animate-helper/animate-helper.service.d.ts +0 -9
  569. package/lib/core/services/bem-helper/bem-helper.service.d.ts +0 -7
  570. package/lib/core/services/date/date-compare.enum.d.ts +0 -5
  571. package/lib/core/services/date/date-helper.service.d.ts +0 -22
  572. package/lib/core/services/device/device-helper.service.d.ts +0 -16
  573. package/lib/core/services/geolocation/geolocation-state.enum.d.ts +0 -6
  574. package/lib/core/services/geolocation/geolocation.service.d.ts +0 -9
  575. package/lib/core/services/index.d.ts +0 -9
  576. package/lib/core/services/language/language-helper.service.d.ts +0 -12
  577. package/lib/core/services/sort/sort.service.d.ts +0 -6
  578. package/lib/core/services/viewport/viewport.service.d.ts +0 -11
  579. package/lib/index.d.ts +0 -4
  580. package/lib/services/get-position.service.d.ts +0 -9
  581. package/lib/services/index.d.ts +0 -1
  582. package/lib/shared/index.d.ts +0 -1
  583. package/lib/shared/models/flight-details.d.ts +0 -22
  584. package/lib/shared/models/index.d.ts +0 -5
  585. package/lib/shared/models/journey-availability-sort.model.d.ts +0 -8
  586. package/lib/shared/models/journey-availability.model.d.ts +0 -25
  587. package/lib/shared/models/journey-details.model.d.ts +0 -8
  588. package/lib/shared/models/journey-duration.model.d.ts +0 -7
  589. package/lib/shared/models/journey-stopover.model.d.ts +0 -15
  590. package/lib/shared/models/journey-transit-info.model.d.ts +0 -5
  591. package/lib/shared/models/operating-carrier.model.d.ts +0 -4
  592. package/lib/shared/models/sort-option.model.d.ts +0 -11
  593. package/lib/shared/models/sort.model.d.ts +0 -10
  594. package/lib/shared/models/trip-item-details.model.d.ts +0 -12
  595. package/lib/shared/models/trip-summary-details.model.d.ts +0 -5
  596. package/lib/shared/models/trip-summary.model.d.ts +0 -4
  597. package/public_api.d.ts +0 -1
@@ -1,84 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { DatePipe } from '@angular/common';
6
- import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
7
- import { JourneySelectionModel } from './models/journey-selection.model';
8
- import { NasComponentBase } from '../../core/base/nas-component.base';
9
- import { UtcDate } from '../../core/models/utc-date.model';
10
- import { DateHelper } from '../../core/services/date/date-helper.service';
11
- import { DeviceHelper } from '../../core/services/device/device-helper.service';
12
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
13
- import * as i0 from "@angular/core";
14
- /**
15
- * @description
16
- * Norwegian Journey Selection Component | Functional
17
- */
18
- export declare class JourneySelectionComponent extends NasComponentBase implements OnChanges {
19
- private dateService;
20
- private datePipe;
21
- deviceService: DeviceHelper;
22
- private sanitizer;
23
- animateDown: boolean;
24
- isCollapsed: boolean;
25
- imageMain: ElementRef;
26
- destinationCode: ElementRef;
27
- /**
28
- * @property Input
29
- * @description
30
- * Input data required to build the component.
31
- */
32
- model: JourneySelectionModel;
33
- /**
34
- * @property Output
35
- * @description
36
- * A EventEmitter that returns a boolean based on collapse change.
37
- */
38
- collapseChange: EventEmitter<boolean>;
39
- /**
40
- * @property Input
41
- * @description
42
- * A boolean that changes how journey selection component looks/behaves based on journey selected/not-selected.
43
- */
44
- get collapse(): boolean;
45
- set collapse(value: boolean);
46
- /**
47
- * @property Input
48
- * @description
49
- * If exists, it removes the marin accross.
50
- */
51
- compact: boolean;
52
- /**
53
- * @property Input
54
- * @description
55
- * Aria label for the component.
56
- * For example, it is needed to distinguish Outbound journey selection from inbound journey selection
57
- * when this component is used twice in the page.
58
- */
59
- ariaLabel: string;
60
- /**
61
- * @property Input
62
- * @description
63
- * User can input the timezone to localize the date.
64
- * Default is set to UTC and it will by default show the date exactly what is passed to it.
65
- * @example
66
- * ```html
67
- * <nas-journey-availability [timeZone]="'UTC'"></nas-journey-availability>
68
- */
69
- timeZone: string;
70
- /**
71
- * @property Output
72
- * @description
73
- * this event emits when button is clicked or date changes by nevigation icons.
74
- */
75
- selectedDateChanged: EventEmitter<UtcDate>;
76
- constructor(dateService: DateHelper, datePipe: DatePipe, deviceService: DeviceHelper, sanitizer: DomSanitizer);
77
- ngOnChanges(changes: SimpleChanges): void;
78
- changeFlightDate(): void;
79
- setupBackground(element: ElementRef, url: string): void;
80
- transformDisplayDate(format: string): string;
81
- getDestinationCode(): SafeHtml;
82
- static ɵfac: i0.ɵɵFactoryDeclaration<JourneySelectionComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<JourneySelectionComponent, "nas-journey-selection", never, { "model": { "alias": "model"; "required": false; }; "collapse": { "alias": "collapse"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; }, { "collapseChange": "collapseChange"; "selectedDateChanged": "selectedDateChanged"; }, never, never, false, never>;
84
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./journey-selection.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../core/directives/nas-class/nas-class.module";
5
- import * as i4 from "../button/button.module";
6
- import * as i5 from "../icon/icon.module";
7
- export declare class JourneySelectionModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<JourneySelectionModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<JourneySelectionModule, [typeof i1.JourneySelectionComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.ButtonModule, typeof i5.IconModule], [typeof i1.JourneySelectionComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<JourneySelectionModule>;
11
- }
@@ -1,11 +0,0 @@
1
- import { OperatingCarriersModel } from '../../../shared/models/operating-carrier.model';
2
- import { JourneySelectionCommonModel } from './journey-selection-common.model';
3
- export interface JourneySelectionCollapsedModel extends JourneySelectionCommonModel {
4
- departureLabel: string;
5
- durationLabel: string;
6
- durationTimeInfo: string;
7
- stopverAirportCodes?: Array<string>;
8
- changeFlightLabel: string;
9
- transitionInfo: string;
10
- operatingCarriers: OperatingCarriersModel;
11
- }
@@ -1,7 +0,0 @@
1
- export interface JourneySelectionCommonModel {
2
- title: string;
3
- destinationDisplayName: string;
4
- destination?: string;
5
- origin: string;
6
- originDisplayName: string;
7
- }
@@ -1,5 +0,0 @@
1
- import { JourneySelectionCommonModel } from './journey-selection-common.model';
2
- export interface JourneySelectionExpandedModel extends JourneySelectionCommonModel {
3
- toLabel: string;
4
- dateFormat: string;
5
- }
@@ -1,14 +0,0 @@
1
- import { UtcDate } from '../../../core';
2
- import { JourneySelectionCollapsedModel } from './journey-selection-collapsed.model';
3
- import { JourneySelectionExpandedModel } from './journey-selection-expanded.model';
4
- export interface JourneySelectionModel {
5
- date: UtcDate;
6
- dateFormat?: string;
7
- locale: string;
8
- backgroundImageUrl?: string;
9
- thumbnailUrl?: string;
10
- icon: string;
11
- fromLabel: string;
12
- expanded?: JourneySelectionExpandedModel;
13
- collapsed?: JourneySelectionCollapsedModel;
14
- }
@@ -1,2 +0,0 @@
1
- export * from './journey-stopover.component';
2
- export * from './journey-stopover.module';
@@ -1,131 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
6
- import { NasComponentBase } from '../../core/base/nas-component.base';
7
- import { JourneyStopoverModel } from '../../shared/models/journey-stopover.model';
8
- import { StopoverTimeModel } from './models/stopover-time.model';
9
- import { ClassModel } from '../../core/models/class.model';
10
- import { DatePipe } from '@angular/common';
11
- import { DateHelper } from '../../core/services/date/date-helper.service';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * @description
15
- * Norwegian journey-stopover Component | Functional
16
- */
17
- export declare class JourneyStopoverComponent extends NasComponentBase implements OnChanges, OnInit {
18
- private datePipe;
19
- private dateService;
20
- stopoverTime: StopoverTimeModel;
21
- marketingCarrierIcon: string;
22
- currentStopover: {
23
- departureTime: string;
24
- arrivalTime: string;
25
- departureDate: string;
26
- arrivalDate: string;
27
- estimatedArrivalTime?: string;
28
- estimatedDepartureTime?: string;
29
- estimatedArrivalDate?: string;
30
- estimatedDepartureDate?: string;
31
- };
32
- /**
33
- * @property Input
34
- * @description
35
- * A record containing Journey-stopover details.
36
- * @required
37
- * @example
38
- * <nas-journey-stopover [journeyStopoverModel]="journeyStopoverModel"></nas-journey-stopover>
39
- */
40
- journeyStopoverModel: JourneyStopoverModel;
41
- /**
42
- * @property Input
43
- * @description
44
- * A string representing label placed before transit stop time.
45
- * @example
46
- * <nas-journey-stopover [transitLabel]="'Transit stop'"></nas-journey-stopover>
47
- */
48
- transitLabel: string;
49
- /**
50
- * @property Input
51
- * @description
52
- * A string representing the label placed before arrival time.
53
- * @example
54
- * <nas-journey-stopover [arrivalTimeLabel]="'Arrival'"></nas-journey-stopover>
55
- */
56
- arrivalTimeLabel: string;
57
- /**
58
- * @property Input
59
- * @description
60
- * A string representing the label placed before departure time.
61
- * @example
62
- * <nas-journey-stopover [departureTimeLabel]="'Departure'"></nas-journey-stopover>
63
- */
64
- departureTimeLabel: string;
65
- /**
66
- * @property Input
67
- * @description
68
- * A string representing time display format, if not provided, default formatting on date will be applied
69
- * i.e 'HH:mm' , which will result in displaying time like '09:23'.
70
- * @example
71
- * <nas-journey-stopover [timeFormat]='HH:mm'></nas-journey-stopover>
72
- */
73
- timeFormat: string;
74
- /**
75
- * @property Input
76
- * @description
77
- * A string representing date display format, if not provided, default formatting on date will be applied
78
- * i.e 'dd MMM,' , which will result in displaying time like '21 Feb,'.
79
- * @example
80
- * <nas-journey-stopover [dateFormat]='dd MMM,'></nas-journey-stopover>
81
- */
82
- dateFormat: string;
83
- /**
84
- * @property Input
85
- * @description
86
- * A string representing Transit Hour indicator.
87
- * if not provided, transit time will not be shown
88
- * @example
89
- * <nas-journey-stopover [transitHoursIndicator]='h'></nas-journey-stopover>
90
- */
91
- transitHoursIndicator: string;
92
- /**
93
- * @property Input
94
- * @description
95
- * A string representing Transit Minutes indicator.
96
- * if not provided, transit time will not be shown
97
- * @example
98
- * <nas-journey-stopover [transitMinutesIndicator]='m'></nas-journey-stopover>
99
- */
100
- transitMinutesIndicator: string;
101
- /**
102
- * @property Input
103
- * @description
104
- * 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.
105
- * This requires that registerLocaleData is called with the respective locale.
106
- * @example
107
- * <nas-journey-stopover [locale]="'es'"></nas-journey-stopover>
108
- */
109
- locale: string;
110
- /**
111
- * @property Input
112
- * @description
113
- * User can input the timezone to localize the date.
114
- * Default is set to UTC and it will by default show the date exactly what is passed to it.
115
- * @example
116
- * <nas-journey-stopover [timeZone]="'UTC'"></nas-journey-stopover>
117
- */
118
- timeZone: string;
119
- get displayStopoverTime(): boolean;
120
- get lineClass(): ClassModel;
121
- constructor(datePipe: DatePipe, dateService: DateHelper);
122
- ngOnInit(): void;
123
- ngOnChanges(_changes: SimpleChanges): void;
124
- private setDisplayDates;
125
- private transformDate;
126
- private getStopoverTime;
127
- private getMarketingCarrierIcon;
128
- getTimeClass(estimatedTime: string, estimatedDate: string): ClassModel;
129
- static ɵfac: i0.ɵɵFactoryDeclaration<JourneyStopoverComponent, never>;
130
- static ɵcmp: i0.ɵɵComponentDeclaration<JourneyStopoverComponent, "nas-journey-stopover", never, { "journeyStopoverModel": { "alias": "journeyStopoverModel"; "required": false; }; "transitLabel": { "alias": "transitLabel"; "required": false; }; "arrivalTimeLabel": { "alias": "arrivalTimeLabel"; "required": false; }; "departureTimeLabel": { "alias": "departureTimeLabel"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "transitHoursIndicator": { "alias": "transitHoursIndicator"; "required": false; }; "transitMinutesIndicator": { "alias": "transitMinutesIndicator"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; }, {}, never, never, false, never>;
131
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./journey-stopover.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../core/directives/nas-class/nas-class.module";
5
- import * as i4 from "../accordion/accordion.module";
6
- import * as i5 from "../icon/icon.module";
7
- export declare class JourneyStopoverModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<JourneyStopoverModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<JourneyStopoverModule, [typeof i1.JourneyStopoverComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.AccordionModule, typeof i5.IconModule], [typeof i1.JourneyStopoverComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<JourneyStopoverModule>;
11
- }
@@ -1,4 +0,0 @@
1
- export interface StopoverTimeModel {
2
- numberOfHours: number;
3
- numberOfMinutes: number;
4
- }
@@ -1,3 +0,0 @@
1
- export * from './list.component';
2
- export * from './list-item/list-item.component';
3
- export * from './list.module';
@@ -1,35 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { OnInit, ElementRef } from '@angular/core';
6
- import { NasComponentBase } from '../../../core/base/nas-component.base';
7
- import { ClassModel } from '../../../core/models/class.model';
8
- import * as i0 from "@angular/core";
9
- export declare class ListItemComponent extends NasComponentBase implements OnInit {
10
- private elementRef;
11
- /**
12
- * @description
13
- * Adds custom CSS class to the list item. List item will sett additional custom styling.
14
- *
15
- * @example
16
- * ```html
17
- * <nas-list-item [cssClass]="'my-custom-class'">Earn 2-12% CashPoints on Premium Tickets</nas-button>
18
- * ```
19
- */
20
- cssClass?: ClassModel;
21
- constructor(elementRef: ElementRef);
22
- ngOnInit(): void;
23
- /**
24
- * @description
25
- * Angular generates 'nas-list-item' as the parent element which when is put into UL or OL breaks the semantics of
26
- * HTML, Initial solution we adopted was to remove 'nas-list-item' and add 'LI' as the parent element. which then
27
- * produced the problem of List template not being updated when the model(data) is upadted after initialization.
28
- * This solution keeps the element and encapsulates it with LI element, which is correct semantically and
29
- * let the list template update/manipulate.
30
- */
31
- nasListItemToListItemElement(): void;
32
- getClasses(): Array<ClassModel>;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<ListItemComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<ListItemComponent, "nas-list-item", never, { "cssClass": { "alias": "cssClass"; "required": false; }; }, {}, never, ["*"], false, never>;
35
- }
@@ -1,76 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { ElementRef, AfterContentChecked } from '@angular/core';
6
- import { NasComponentBase } from '../../core/base/nas-component.base';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @description
10
- * Norwegian Airport List Component | Layout
11
- */
12
- export declare class ListComponent extends NasComponentBase implements AfterContentChecked {
13
- elementRef: ElementRef<HTMLElement>;
14
- /**
15
- * @property Input
16
- * @description
17
- * List with grey and blue check-icon markers
18
- */
19
- markers: boolean;
20
- /**
21
- * @property Input
22
- * @description
23
- * List with note markers
24
- */
25
- note: boolean;
26
- /**
27
- * @property Input
28
- * @description
29
- * List with green check-icon markers
30
- */
31
- positive: boolean;
32
- /**
33
- * @property Input
34
- * @description
35
- * List with red x-icon markers
36
- */
37
- negative: boolean;
38
- /**
39
- * @property Input
40
- * @description
41
- * List with goto (arrow) icon markers
42
- */
43
- goto: boolean;
44
- /**
45
- * @property Input
46
- * @description
47
- * List styles as a table
48
- */
49
- table: boolean;
50
- /**
51
- * @property Input
52
- * @description
53
- * List without margin at bottom
54
- */
55
- spaceless: boolean;
56
- /**
57
- * @property Input
58
- * @description
59
- * The string elements within the list
60
- */
61
- items: Array<string>;
62
- constructor(elementRef: ElementRef<HTMLElement>);
63
- mainClass(): import("@norwegian/core-components").ClassModel;
64
- ngAfterContentChecked(): void;
65
- /**
66
- * @description
67
- * Angular generates 'nas-list-item' as the parent element which when is put into UL or OL breaks the semantics of
68
- * HTML. This solution keeps the element and encapsulates it with LI element, which is correct semantically and
69
- * let the list tempalte update/manipulte. But since we are manually adding LI elements in nas-list-item,
70
- * so those are not removed by angular automatically when data(model) is removed/reduced.
71
- * This function looks up for the empty LI elements when the content is updated and removes them manually.
72
- */
73
- removeEmptyListItems(): void;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "nas-list", never, { "markers": { "alias": "markers"; "required": false; }; "note": { "alias": "note"; "required": false; }; "positive": { "alias": "positive"; "required": false; }; "negative": { "alias": "negative"; "required": false; }; "goto": { "alias": "goto"; "required": false; }; "table": { "alias": "table"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, ["*"], false, never>;
76
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./list.component";
3
- import * as i2 from "./list-item/list-item.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../../core/directives/nas-class/nas-class.module";
6
- export declare class ListModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ListModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<ListModule, [typeof i1.ListComponent, typeof i2.ListItemComponent], [typeof i3.CommonModule, typeof i4.NasClassModule], [typeof i1.ListComponent, typeof i2.ListItemComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<ListModule>;
10
- }
@@ -1,2 +0,0 @@
1
- export * from './micro-button.component';
2
- export * from './micro-button.module';
@@ -1,139 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { EventEmitter } from '@angular/core';
6
- import { ClassModel, NasComponentBase } from '../../core';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @description
10
- * Norwegian alert Component | Buttons and Indicators
11
- */
12
- export declare class MicroButtonComponent extends NasComponentBase {
13
- /**
14
- * @property Input
15
- * @description
16
- * Sets the icon on the input
17
- */
18
- icon: string;
19
- /**
20
- * @property Input
21
- * @description
22
- * Sets the type of icon on the input
23
- */
24
- iconType: string;
25
- /**
26
- * @property Input
27
- * @description
28
- * String to support href.
29
- * Can be combined with all other properties.
30
- *
31
- * @example
32
- * <nas-micro-button [href]="http://www.norwegian.com">Click on me!</nas-micro-button>
33
- */
34
- href?: string;
35
- /**
36
- * @property Input
37
- * @description
38
- * The target attribute specifies where to open the link.
39
- * @example
40
- * <nas-button link href="https://www.norwegian.com" target="_blank">Click on me!</nas-button>
41
- */
42
- target: string;
43
- /**
44
- * @property Input
45
- * @description
46
- * Boolean to set primary style of button (blue).
47
- *
48
- * @example
49
- * <nas-micro-button primary>Click on me!</nas-micro-button>
50
- */
51
- primary?: boolean;
52
- /**
53
- * @property Input
54
- * @description
55
- * Boolean to set secondary style of button (transparent with border).
56
- * Primary is default style.
57
- *
58
- * @example
59
- * <nas-micro-button secondary>Click on me!</nas-micro-button>
60
- */
61
- secondary?: boolean;
62
- /**
63
- * @property Input
64
- * @description
65
- * Boolean to set white style of button (white).
66
- * Primary is default style.
67
- *
68
- * @example
69
- * <nas-micro-button secondary>Click on me!</nas-micro-button>
70
- */
71
- white?: boolean;
72
- /**
73
- * @property Input
74
- * @description
75
- * Boolean to set disabled state of button (white).
76
- * Primary is default style.
77
- */
78
- disabled?: boolean;
79
- /**
80
- * @property Input
81
- * @description
82
- * To set the icon on the right side of the button
83
- */
84
- iconLeft?: boolean;
85
- /**
86
- * @property Input
87
- * @description
88
- * String to be tracked by e.x. GTM og GA.
89
- * Can be combined with all other properties.
90
- *
91
- * @example
92
- * <nas-button [trackingValue]="trackingValue">Click on me!</nas-button>
93
- */
94
- trackingvalue?: string;
95
- /**
96
- * @property Input
97
- * @description
98
- * String to set aria label on button.
99
- *
100
- * @example
101
- * <nas-button [ariaLabel]="'this is my aria label'">Click on me!</nas-button>
102
- */
103
- ariaLabel?: string;
104
- /**
105
- * @property Input
106
- * @description
107
- * Number to set custom tab index on button.
108
- *
109
- * @example
110
- * <nas-button [tabIndex]="10">Click on me!</nas-button>
111
- */
112
- tabindex: number;
113
- /**
114
- * @property Input
115
- * @description
116
- * String to set button type. Default value is "button".
117
- *
118
- * @example
119
- * <nas-button [type]="'submit'">Click on me!</nas-button>
120
- */
121
- type: string;
122
- /**
123
- * @property Output
124
- * @description
125
- * Change event when clicking on button.
126
- *
127
- * @example
128
- * <nas-button (clickChange)="myFunction()">Click on me!</nas-button>
129
- */
130
- clickChange: EventEmitter<Event>;
131
- constructor();
132
- private trackingEventSource;
133
- trackingEvent$: import("rxjs").Observable<string>;
134
- get modifiers(): Array<string>;
135
- getClasses(element?: string, modifiers?: any): Array<ClassModel>;
136
- emitTrackingAndClickEvent(event: Event): void;
137
- static ɵfac: i0.ɵɵFactoryDeclaration<MicroButtonComponent, never>;
138
- static ɵcmp: i0.ɵɵComponentDeclaration<MicroButtonComponent, "nas-micro-button", never, { "icon": { "alias": "icon"; "required": false; }; "iconType": { "alias": "iconType"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "white": { "alias": "white"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "trackingvalue": { "alias": "trackingvalue"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "clickChange": "clickChange"; }, never, ["*"], false, never>;
139
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./micro-button.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../core/directives/nas-class/nas-class.module";
5
- import * as i4 from "../icon/icon.module";
6
- export declare class MicroButtonModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MicroButtonModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<MicroButtonModule, [typeof i1.MicroButtonComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.IconModule], [typeof i1.MicroButtonComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<MicroButtonModule>;
10
- }
@@ -1,2 +0,0 @@
1
- export * from './modal.component';
2
- export * from './modal.module';