@norwegian/core-components 5.1.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 (1004) hide show
  1. package/README.md +78 -0
  2. package/assets/documentation/accordion/accordion.md +1 -0
  3. package/assets/documentation/airport-select/airport-select.md +0 -0
  4. package/assets/documentation/autocomplete/autocomplete.md +1 -0
  5. package/assets/documentation/box/box.md +1 -0
  6. package/assets/documentation/button/button.md +10 -0
  7. package/assets/documentation/checkbox/checkbox.md +7 -0
  8. package/assets/documentation/chip/chip.md +1 -0
  9. package/assets/documentation/container/container.md +1 -0
  10. package/assets/documentation/continue/continue.md +1 -0
  11. package/assets/documentation/cover/cover.md +1 -0
  12. package/assets/documentation/datepicker/calendar/calendar.md +3 -0
  13. package/assets/documentation/datepicker/datepicker.md +3 -0
  14. package/assets/documentation/datepicker-combo/datepicker-combo.md +1 -0
  15. package/assets/documentation/dropdown/dropdown.md +3 -0
  16. package/assets/documentation/filter/filter.md +0 -0
  17. package/assets/documentation/grid/grid.md +1 -0
  18. package/assets/documentation/icon/icon.md +4 -0
  19. package/assets/documentation/icon-list/icon-list.md +1 -0
  20. package/assets/documentation/info/info.md +1 -0
  21. package/assets/documentation/input/input.md +1 -0
  22. package/assets/documentation/journey/journey.md +1 -0
  23. package/assets/documentation/journey-availability/journey-availability.md +3 -0
  24. package/assets/documentation/journey-availability-list/journey-availability-list.md +9 -0
  25. package/assets/documentation/journey-selection/journey-selection.md +1 -0
  26. package/assets/documentation/journey-stopover/journey-stopover.md +1 -0
  27. package/assets/documentation/list/list.md +1 -0
  28. package/assets/documentation/modal/modal.md +0 -0
  29. package/assets/documentation/number-field/number-field.md +1 -0
  30. package/assets/documentation/page-footer/page-footer.md +1 -0
  31. package/assets/documentation/page-header/page-header.md +1 -0
  32. package/assets/documentation/passenger-select/passenger-select.md +1 -0
  33. package/assets/documentation/phone-number/phone-number.md +2 -0
  34. package/assets/documentation/premium-toggle/premium-toggle.md +9 -0
  35. package/assets/documentation/radio/radio.md +7 -0
  36. package/assets/documentation/select/select.md +1 -0
  37. package/assets/documentation/simple-list/simple-list.md +1 -0
  38. package/assets/documentation/slide-toggle/slide-toggle.md +1 -0
  39. package/assets/documentation/slider/slider.md +1 -0
  40. package/assets/documentation/sort/sort.md +1 -0
  41. package/assets/documentation/spinner/spinner.md +1 -0
  42. package/assets/documentation/subsidy-discount/subsidy-discount.md +3 -0
  43. package/assets/documentation/suggestions/suggestions.md +1 -0
  44. package/assets/documentation/tab-group/tab-group.md +1 -0
  45. package/assets/documentation/table/table.md +8 -0
  46. package/assets/documentation/textarea/textarea.md +1 -0
  47. package/assets/documentation/toggle/toggle.md +5 -0
  48. package/assets/documentation/trip-summary/trip-summary.md +2 -0
  49. package/assets/documentation/weather-icon/weather-icon.md +1 -0
  50. package/assets/fonts/TiemposHeadlineWeb-Bold.eot +0 -0
  51. package/assets/fonts/TiemposHeadlineWeb-Bold.woff +0 -0
  52. package/assets/fonts/TiemposHeadlineWeb-Bold.woff2 +0 -0
  53. package/assets/fonts/TiemposHeadlineWeb-BoldItalic.eot +0 -0
  54. package/assets/fonts/TiemposHeadlineWeb-BoldItalic.woff +0 -0
  55. package/assets/fonts/TiemposHeadlineWeb-BoldItalic.woff2 +0 -0
  56. package/assets/fonts/TiemposText-Medium.eot +0 -0
  57. package/assets/fonts/TiemposText-Medium.woff +0 -0
  58. package/assets/fonts/TiemposText-Medium.woff2 +0 -0
  59. package/assets/fonts/TiemposTextWeb-Italic.eot +0 -0
  60. package/assets/fonts/TiemposTextWeb-Italic.woff +0 -0
  61. package/assets/fonts/TiemposTextWeb-Italic.woff2 +0 -0
  62. package/assets/fonts/TiemposTextWeb-Regular.eot +0 -0
  63. package/assets/fonts/TiemposTextWeb-Regular.woff +0 -0
  64. package/assets/fonts/TiemposTextWeb-Regular.woff2 +0 -0
  65. package/assets/fonts/apercu_bold_italic_pro-web.eot +0 -0
  66. package/assets/fonts/apercu_bold_italic_pro-web.svg +12420 -0
  67. package/assets/fonts/apercu_bold_italic_pro-web.ttf +0 -0
  68. package/assets/fonts/apercu_bold_italic_pro-web.woff +0 -0
  69. package/assets/fonts/apercu_bold_italic_pro-web.woff2 +0 -0
  70. package/assets/fonts/apercu_bold_italic_pro.otf +0 -0
  71. package/assets/fonts/apercu_bold_pro-web.eot +0 -0
  72. package/assets/fonts/apercu_bold_pro-web.svg +10193 -0
  73. package/assets/fonts/apercu_bold_pro-web.ttf +0 -0
  74. package/assets/fonts/apercu_bold_pro-web.woff +0 -0
  75. package/assets/fonts/apercu_bold_pro-web.woff2 +0 -0
  76. package/assets/fonts/apercu_bold_pro.otf +0 -0
  77. package/assets/fonts/apercu_light_italic_pro-web.eot +0 -0
  78. package/assets/fonts/apercu_light_italic_pro-web.svg +12831 -0
  79. package/assets/fonts/apercu_light_italic_pro-web.ttf +0 -0
  80. package/assets/fonts/apercu_light_italic_pro-web.woff +0 -0
  81. package/assets/fonts/apercu_light_italic_pro-web.woff2 +0 -0
  82. package/assets/fonts/apercu_light_pro-web.eot +0 -0
  83. package/assets/fonts/apercu_light_pro-web.svg +9704 -0
  84. package/assets/fonts/apercu_light_pro-web.ttf +0 -0
  85. package/assets/fonts/apercu_light_pro-web.woff +0 -0
  86. package/assets/fonts/apercu_light_pro-web.woff2 +0 -0
  87. package/assets/fonts/apercu_medium_italic_pro-web.eot +0 -0
  88. package/assets/fonts/apercu_medium_italic_pro-web.svg +12354 -0
  89. package/assets/fonts/apercu_medium_italic_pro-web.ttf +0 -0
  90. package/assets/fonts/apercu_medium_italic_pro-web.woff +0 -0
  91. package/assets/fonts/apercu_medium_italic_pro-web.woff2 +0 -0
  92. package/assets/fonts/apercu_medium_italic_pro.otf +0 -0
  93. package/assets/fonts/apercu_medium_pro-web.eot +0 -0
  94. package/assets/fonts/apercu_medium_pro-web.svg +12254 -0
  95. package/assets/fonts/apercu_medium_pro-web.ttf +0 -0
  96. package/assets/fonts/apercu_medium_pro-web.woff +0 -0
  97. package/assets/fonts/apercu_medium_pro-web.woff2 +0 -0
  98. package/assets/fonts/apercu_medium_pro.otf +0 -0
  99. package/assets/fonts/apercu_mono_pro-web.eot +0 -0
  100. package/assets/fonts/apercu_mono_pro-web.svg +538 -0
  101. package/assets/fonts/apercu_mono_pro-web.ttf +0 -0
  102. package/assets/fonts/apercu_mono_pro-web.woff +0 -0
  103. package/assets/fonts/apercu_mono_pro-web.woff2 +0 -0
  104. package/assets/fonts/apercu_regular_italic_pro-web.eot +0 -0
  105. package/assets/fonts/apercu_regular_italic_pro-web.svg +13059 -0
  106. package/assets/fonts/apercu_regular_italic_pro-web.ttf +0 -0
  107. package/assets/fonts/apercu_regular_italic_pro-web.woff +0 -0
  108. package/assets/fonts/apercu_regular_italic_pro-web.woff2 +0 -0
  109. package/assets/fonts/apercu_regular_italic_pro.otf +0 -0
  110. package/assets/fonts/apercu_regular_pro-web.eot +0 -0
  111. package/assets/fonts/apercu_regular_pro-web.svg +11356 -0
  112. package/assets/fonts/apercu_regular_pro-web.ttf +0 -0
  113. package/assets/fonts/apercu_regular_pro-web.woff +0 -0
  114. package/assets/fonts/apercu_regular_pro-web.woff2 +0 -0
  115. package/assets/fonts/apercu_regular_pro.otf +0 -0
  116. package/assets/icons/flags/ar.svg +20 -0
  117. package/assets/icons/flags/br.svg +30 -0
  118. package/assets/icons/flags/ca.svg +18 -0
  119. package/assets/icons/flags/de.svg +20 -0
  120. package/assets/icons/flags/dk.svg +20 -0
  121. package/assets/icons/flags/en.svg +20 -0
  122. package/assets/icons/flags/es.svg +20 -0
  123. package/assets/icons/flags/fi.svg +20 -0
  124. package/assets/icons/flags/fr.svg +20 -0
  125. package/assets/icons/flags/ie.svg +22 -0
  126. package/assets/icons/flags/it.svg +20 -0
  127. package/assets/icons/flags/nl.svg +20 -0
  128. package/assets/icons/flags/no.svg +20 -0
  129. package/assets/icons/flags/pl.svg +20 -0
  130. package/assets/icons/flags/se.svg +20 -0
  131. package/assets/icons/flags/uk.svg +20 -0
  132. package/assets/icons/flags/us.svg +20 -0
  133. package/assets/icons/icon-add--light.svg +11 -0
  134. package/assets/icons/icon-add.svg +7 -0
  135. package/assets/icons/icon-arrow-left--light.svg +7 -0
  136. package/assets/icons/icon-arrow-left.svg +7 -0
  137. package/assets/icons/icon-arrow-right--light.svg +7 -0
  138. package/assets/icons/icon-arrow-right.svg +6 -0
  139. package/assets/icons/icon-check.svg +7 -0
  140. package/assets/icons/icon-chevron-down.svg +1 -0
  141. package/assets/icons/icon-chevron-left--light.svg +1 -0
  142. package/assets/icons/icon-chevron-left-outlined.svg +4 -0
  143. package/assets/icons/icon-chevron-left.svg +1 -0
  144. package/assets/icons/icon-chevron-right--light.svg +1 -0
  145. package/assets/icons/icon-chevron-right-outlined.svg +4 -0
  146. package/assets/icons/icon-chevron-right.svg +1 -0
  147. package/assets/icons/icon-dropdown-arrow--disabled.svg +8 -0
  148. package/assets/icons/icon-dropdown-arrow--light.svg +8 -0
  149. package/assets/icons/icon-dropdown-arrow.svg +8 -0
  150. package/assets/icons/icon-error.svg +11 -0
  151. package/assets/icons/icon-flight-direct.svg +8 -0
  152. package/assets/icons/icon-flight-one-stop.svg +8 -0
  153. package/assets/icons/icon-flight-two-stops.svg +9 -0
  154. package/assets/icons/icon-geolocation--disabled.svg +8 -0
  155. package/assets/icons/icon-geolocation--light.svg +8 -0
  156. package/assets/icons/icon-geolocation.svg +8 -0
  157. package/assets/icons/icon-goto.svg +8 -0
  158. package/assets/icons/icon-home.svg +1 -0
  159. package/assets/icons/icon-marker.svg +8 -0
  160. package/assets/icons/icon-menu--dark.svg +9 -0
  161. package/assets/icons/icon-menu.svg +9 -0
  162. package/assets/icons/icon-nav_right--large.svg +7 -0
  163. package/assets/icons/icon-nav_right--small.svg +7 -0
  164. package/assets/icons/icon-nav_right.svg +7 -0
  165. package/assets/icons/icon-negative.svg +11 -0
  166. package/assets/icons/icon-ol_li.svg +7 -0
  167. package/assets/icons/icon-one-stop-arrow.svg +8 -0
  168. package/assets/icons/icon-passenger--children.svg +1 -0
  169. package/assets/icons/icon-passenger--female.svg +1 -0
  170. package/assets/icons/icon-passenger--infant.svg +1 -0
  171. package/assets/icons/icon-passenger--male.svg +1 -0
  172. package/assets/icons/icon-positive.svg +10 -0
  173. package/assets/icons/icon-red-circle.svg +7 -0
  174. package/assets/icons/icon-remove.svg +8 -0
  175. package/assets/icons/icon-share_facebook.svg +10 -0
  176. package/assets/icons/icon-share_instagram.svg +12 -0
  177. package/assets/icons/icon-share_twitter.svg +13 -0
  178. package/assets/icons/icon-share_youtube.svg +11 -0
  179. package/assets/icons/icon-star.svg +9 -0
  180. package/assets/icons/icon-subtract--light.svg +12 -0
  181. package/assets/icons/icon-subtract.svg +9 -0
  182. package/assets/icons/icon-switch--secondary.svg +1 -0
  183. package/assets/icons/icon-switch.svg +1 -0
  184. package/assets/icons/icon-two-stops-arrow.svg +10 -0
  185. package/assets/icons/large/baggage-hand-baggage.svg +41 -0
  186. package/assets/icons/large/baggage.svg +75 -0
  187. package/assets/icons/large/car-rentals.svg +61 -0
  188. package/assets/icons/large/cashpoints.svg +92 -0
  189. package/assets/icons/large/celebration.svg +77 -0
  190. package/assets/icons/large/central-airports.svg +44 -0
  191. package/assets/icons/large/customer-service.svg +47 -0
  192. package/assets/icons/large/destinations.svg +78 -0
  193. package/assets/icons/large/direct-flights.svg +73 -0
  194. package/assets/icons/large/entertainment.svg +89 -0
  195. package/assets/icons/large/family.svg +88 -0
  196. package/assets/icons/large/fast-track.svg +57 -0
  197. package/assets/icons/large/food.svg +48 -0
  198. package/assets/icons/large/from-a-to-b.svg +66 -0
  199. package/assets/icons/large/hotels.svg +84 -0
  200. package/assets/icons/large/lounge.svg +67 -0
  201. package/assets/icons/large/new-aircrafts.svg +60 -0
  202. package/assets/icons/large/personnel.svg +54 -0
  203. package/assets/icons/large/premium.svg +49 -0
  204. package/assets/icons/large/wifi.svg +112 -0
  205. package/assets/icons/list--journey.svg +207 -0
  206. package/assets/icons/medium/accommodation--light.svg +16 -0
  207. package/assets/icons/medium/accommodation.svg +15 -0
  208. package/assets/icons/medium/alert--error.svg +11 -0
  209. package/assets/icons/medium/alert--light.svg +10 -0
  210. package/assets/icons/medium/alert--success.svg +9 -0
  211. package/assets/icons/medium/alert.svg +11 -0
  212. package/assets/icons/medium/arrow-down--light.svg +11 -0
  213. package/assets/icons/medium/arrow-down.svg +11 -0
  214. package/assets/icons/medium/arrow-left--light.svg +11 -0
  215. package/assets/icons/medium/arrow-left.svg +11 -0
  216. package/assets/icons/medium/arrow-right--light.svg +11 -0
  217. package/assets/icons/medium/arrow-right.svg +11 -0
  218. package/assets/icons/medium/arrow-up--light.svg +11 -0
  219. package/assets/icons/medium/arrow-up.svg +11 -0
  220. package/assets/icons/medium/baggage--light.svg +10 -0
  221. package/assets/icons/medium/baggage-checked-in--light.svg +19 -0
  222. package/assets/icons/medium/baggage-checked-in.svg +20 -0
  223. package/assets/icons/medium/baggage-hand-baggage--light.svg +32 -0
  224. package/assets/icons/medium/baggage-hand-baggage.svg +36 -0
  225. package/assets/icons/medium/baggage-special-baggage--light.svg +21 -0
  226. package/assets/icons/medium/baggage-special-baggage.svg +23 -0
  227. package/assets/icons/medium/baggage-sports-equipment--light.svg +18 -0
  228. package/assets/icons/medium/baggage-sports-equipment.svg +21 -0
  229. package/assets/icons/medium/baggage.svg +11 -0
  230. package/assets/icons/medium/baggages--light.svg +1 -0
  231. package/assets/icons/medium/baggages.svg +1 -0
  232. package/assets/icons/medium/car-rental--light.svg +26 -0
  233. package/assets/icons/medium/car-rental.svg +26 -0
  234. package/assets/icons/medium/card--light.svg +18 -0
  235. package/assets/icons/medium/card.svg +18 -0
  236. package/assets/icons/medium/cashpoints--light.svg +29 -0
  237. package/assets/icons/medium/cashpoints.svg +31 -0
  238. package/assets/icons/medium/central-airports--light.svg +25 -0
  239. package/assets/icons/medium/central-airports.svg +25 -0
  240. package/assets/icons/medium/customer-service--light.svg +19 -0
  241. package/assets/icons/medium/customer-service.svg +22 -0
  242. package/assets/icons/medium/direct-flights--light.svg +24 -0
  243. package/assets/icons/medium/direct-flights.svg +25 -0
  244. package/assets/icons/medium/direct-to-gate--light.svg +18 -0
  245. package/assets/icons/medium/direct-to-gate.svg +18 -0
  246. package/assets/icons/medium/docs--light.svg +10 -0
  247. package/assets/icons/medium/docs.svg +10 -0
  248. package/assets/icons/medium/entertainment--light.svg +71 -0
  249. package/assets/icons/medium/entertainment.svg +81 -0
  250. package/assets/icons/medium/facebook.svg +12 -0
  251. package/assets/icons/medium/family.svg +29 -0
  252. package/assets/icons/medium/fast-track--light.svg +19 -0
  253. package/assets/icons/medium/fast-track.svg +23 -0
  254. package/assets/icons/medium/flexible-tickets--light.svg +16 -0
  255. package/assets/icons/medium/flexible-tickets.svg +18 -0
  256. package/assets/icons/medium/flight-arrival--light.svg +16 -0
  257. package/assets/icons/medium/flight-arrival.svg +15 -0
  258. package/assets/icons/medium/flight-departure--light.svg +12 -0
  259. package/assets/icons/medium/flight-departure.svg +12 -0
  260. package/assets/icons/medium/flight-oneway--light.svg +12 -0
  261. package/assets/icons/medium/flight-oneway.svg +13 -0
  262. package/assets/icons/medium/flight-outbound--light.svg +11 -0
  263. package/assets/icons/medium/flight-outbound.svg +11 -0
  264. package/assets/icons/medium/flight-return--light.svg +11 -0
  265. package/assets/icons/medium/flight-return-trip.svg +13 -0
  266. package/assets/icons/medium/flight-return.svg +11 -0
  267. package/assets/icons/medium/flight-tickets--light.svg +22 -0
  268. package/assets/icons/medium/flight-tickets.svg +21 -0
  269. package/assets/icons/medium/food--light.svg +16 -0
  270. package/assets/icons/medium/food.svg +19 -0
  271. package/assets/icons/medium/frequent-departures--light.svg +16 -0
  272. package/assets/icons/medium/frequent-departures.svg +16 -0
  273. package/assets/icons/medium/from-a-to-b--light.svg +17 -0
  274. package/assets/icons/medium/from-a-to-b.svg +17 -0
  275. package/assets/icons/medium/in-flight-entertainment--light.svg +20 -0
  276. package/assets/icons/medium/in-flight-entertainment.svg +21 -0
  277. package/assets/icons/medium/instagram.svg +14 -0
  278. package/assets/icons/medium/linkedin.svg +17 -0
  279. package/assets/icons/medium/lounge--light.svg +19 -0
  280. package/assets/icons/medium/lounge.svg +21 -0
  281. package/assets/icons/medium/mobile--light.svg +10 -0
  282. package/assets/icons/medium/mobile.svg +9 -0
  283. package/assets/icons/medium/my-profile-female.svg +55 -0
  284. package/assets/icons/medium/my-profile-male.svg +48 -0
  285. package/assets/icons/medium/new-airplanes--light.svg +14 -0
  286. package/assets/icons/medium/new-airplanes.svg +14 -0
  287. package/assets/icons/medium/personnel--light.svg +19 -0
  288. package/assets/icons/medium/personnel.svg +27 -0
  289. package/assets/icons/medium/phone--light.svg +15 -0
  290. package/assets/icons/medium/phone.svg +15 -0
  291. package/assets/icons/medium/premium--light.svg +23 -0
  292. package/assets/icons/medium/premium.svg +23 -0
  293. package/assets/icons/medium/print--light.svg +14 -0
  294. package/assets/icons/medium/printer.svg +14 -0
  295. package/assets/icons/medium/relax--light.svg +27 -0
  296. package/assets/icons/medium/relax.svg +28 -0
  297. package/assets/icons/medium/rewards--light.svg +19 -0
  298. package/assets/icons/medium/rewards-fast-track.svg +17 -0
  299. package/assets/icons/medium/rewards-luggage.svg +22 -0
  300. package/assets/icons/medium/rewards-seat.svg +21 -0
  301. package/assets/icons/medium/rewards.svg +19 -0
  302. package/assets/icons/medium/route-network--light.svg +28 -0
  303. package/assets/icons/medium/route-network.svg +28 -0
  304. package/assets/icons/medium/seat-reservation--light.svg +16 -0
  305. package/assets/icons/medium/seat-reservation.svg +16 -0
  306. package/assets/icons/medium/special-needs--light.svg +15 -0
  307. package/assets/icons/medium/special-needs.svg +15 -0
  308. package/assets/icons/medium/transit-stop--light.svg +30 -0
  309. package/assets/icons/medium/transit-stop.svg +33 -0
  310. package/assets/icons/medium/trash--light.svg +7 -0
  311. package/assets/icons/medium/trash.svg +7 -0
  312. package/assets/icons/medium/travel-deals--light.svg +24 -0
  313. package/assets/icons/medium/travel-deals.svg +24 -0
  314. package/assets/icons/medium/twitter.svg +17 -0
  315. package/assets/icons/medium/type-asia--light.svg +19 -0
  316. package/assets/icons/medium/type-asia.svg +19 -0
  317. package/assets/icons/medium/type-city-vibes--light.svg +14 -0
  318. package/assets/icons/medium/type-city-vibes.svg +14 -0
  319. package/assets/icons/medium/type-greece--light.svg +24 -0
  320. package/assets/icons/medium/type-greece.svg +28 -0
  321. package/assets/icons/medium/type-norway--light.svg +18 -0
  322. package/assets/icons/medium/type-norway.svg +18 -0
  323. package/assets/icons/medium/type-scandinavia--light.svg +32 -0
  324. package/assets/icons/medium/type-scandinavia.svg +32 -0
  325. package/assets/icons/medium/type-shopping--light.svg +20 -0
  326. package/assets/icons/medium/type-shopping.svg +20 -0
  327. package/assets/icons/medium/type-skiing--light.svg +32 -0
  328. package/assets/icons/medium/type-skiing.svg +32 -0
  329. package/assets/icons/medium/type-spain--light.svg +12 -0
  330. package/assets/icons/medium/type-spain.svg +12 -0
  331. package/assets/icons/medium/type-sun-and-sea--light.svg +34 -0
  332. package/assets/icons/medium/type-sun-and-sea.svg +34 -0
  333. package/assets/icons/medium/type-usa--light.svg +46 -0
  334. package/assets/icons/medium/type-usa.svg +46 -0
  335. package/assets/icons/medium/wifi--light.svg +15 -0
  336. package/assets/icons/medium/wifi.svg +15 -0
  337. package/assets/icons/medium/youtube.svg +12 -0
  338. package/assets/icons/mobile-landscape.svg +12 -0
  339. package/assets/icons/mobile-portrait.svg +12 -0
  340. package/assets/icons/small/accommodation--light.svg +15 -0
  341. package/assets/icons/small/accommodation.svg +21 -0
  342. package/assets/icons/small/alert--error.svg +7 -0
  343. package/assets/icons/small/alert--light.svg +10 -0
  344. package/assets/icons/small/alert.svg +10 -0
  345. package/assets/icons/small/arrow-down--light.svg +11 -0
  346. package/assets/icons/small/arrow-down.svg +11 -0
  347. package/assets/icons/small/arrow-left--light.svg +10 -0
  348. package/assets/icons/small/arrow-left.svg +10 -0
  349. package/assets/icons/small/arrow-right--light.svg +11 -0
  350. package/assets/icons/small/arrow-right.svg +11 -0
  351. package/assets/icons/small/arrow-up--light.svg +10 -0
  352. package/assets/icons/small/arrow-up.svg +10 -0
  353. package/assets/icons/small/baggage--light.svg +8 -0
  354. package/assets/icons/small/baggage-checked-in--light.svg +16 -0
  355. package/assets/icons/small/baggage-checked-in.svg +16 -0
  356. package/assets/icons/small/baggage-hand-baggage--light.svg +11 -0
  357. package/assets/icons/small/baggage-hand-baggage.svg +11 -0
  358. package/assets/icons/small/baggage-special-baggage--light.svg +20 -0
  359. package/assets/icons/small/baggage-special-baggage.svg +20 -0
  360. package/assets/icons/small/baggage-sports-equipment--light.svg +25 -0
  361. package/assets/icons/small/baggage-sports-equipment.svg +25 -0
  362. package/assets/icons/small/baggage.svg +10 -0
  363. package/assets/icons/small/baggages--light.svg +1 -0
  364. package/assets/icons/small/baggages.svg +1 -0
  365. package/assets/icons/small/calendar--disabled.svg +14 -0
  366. package/assets/icons/small/calendar--light.svg +14 -0
  367. package/assets/icons/small/calendar.svg +14 -0
  368. package/assets/icons/small/car-rental--light.svg +14 -0
  369. package/assets/icons/small/car-rental.svg +14 -0
  370. package/assets/icons/small/card--light.svg +8 -0
  371. package/assets/icons/small/card.svg +8 -0
  372. package/assets/icons/small/cashpoints--light.svg +21 -0
  373. package/assets/icons/small/cashpoints.svg +21 -0
  374. package/assets/icons/small/central-airports--light.svg +10 -0
  375. package/assets/icons/small/central-airports.svg +10 -0
  376. package/assets/icons/small/check-in--light.svg +11 -0
  377. package/assets/icons/small/check-in.svg +11 -0
  378. package/assets/icons/small/customer-service--light.svg +18 -0
  379. package/assets/icons/small/customer-service.svg +18 -0
  380. package/assets/icons/small/destination--light.svg +9 -0
  381. package/assets/icons/small/destination.svg +9 -0
  382. package/assets/icons/small/direct-flights--light.svg +16 -0
  383. package/assets/icons/small/direct-flights.svg +16 -0
  384. package/assets/icons/small/docs--light.svg +10 -0
  385. package/assets/icons/small/docs.svg +10 -0
  386. package/assets/icons/small/duty-free.svg +24 -0
  387. package/assets/icons/small/email.svg +1 -0
  388. package/assets/icons/small/facebook.svg +12 -0
  389. package/assets/icons/small/family.svg +24 -0
  390. package/assets/icons/small/fast-track--light.svg +15 -0
  391. package/assets/icons/small/fast-track.svg +15 -0
  392. package/assets/icons/small/flexible-tickets--light.svg +12 -0
  393. package/assets/icons/small/flexible-tickets.svg +12 -0
  394. package/assets/icons/small/flight-arrival--light.svg +13 -0
  395. package/assets/icons/small/flight-arrival.svg +16 -0
  396. package/assets/icons/small/flight-departure--light.svg +18 -0
  397. package/assets/icons/small/flight-departure-ground.svg +22 -0
  398. package/assets/icons/small/flight-departure-left.svg +18 -0
  399. package/assets/icons/small/flight-departure.svg +18 -0
  400. package/assets/icons/small/flight-outbound--light.svg +14 -0
  401. package/assets/icons/small/flight-outbound.svg +14 -0
  402. package/assets/icons/small/flight-return--light.svg +14 -0
  403. package/assets/icons/small/flight-return.svg +14 -0
  404. package/assets/icons/small/flight-tickets--light.svg +17 -0
  405. package/assets/icons/small/flight-tickets.svg +17 -0
  406. package/assets/icons/small/food--light.svg +15 -0
  407. package/assets/icons/small/food.svg +15 -0
  408. package/assets/icons/small/from-a-to-b--light.svg +21 -0
  409. package/assets/icons/small/from-a-to-b.svg +23 -0
  410. package/assets/icons/small/google-plus.svg +1 -0
  411. package/assets/icons/small/hotel--light.svg +10 -0
  412. package/assets/icons/small/hotel.svg +11 -0
  413. package/assets/icons/small/in-flight-entertainment--light.svg +10 -0
  414. package/assets/icons/small/in-flight-entertainment.svg +10 -0
  415. package/assets/icons/small/info--light.svg +4 -0
  416. package/assets/icons/small/info--outlined.svg +4 -0
  417. package/assets/icons/small/info.svg +4 -0
  418. package/assets/icons/small/instagram.svg +14 -0
  419. package/assets/icons/small/linkedin.svg +18 -0
  420. package/assets/icons/small/lounge--light.svg +18 -0
  421. package/assets/icons/small/lounge.svg +18 -0
  422. package/assets/icons/small/mail--light.svg +9 -0
  423. package/assets/icons/small/mail.svg +9 -0
  424. package/assets/icons/small/mobile--light.svg +8 -0
  425. package/assets/icons/small/mobile.svg +8 -0
  426. package/assets/icons/small/my-profile--light.svg +14 -0
  427. package/assets/icons/small/my-profile-female--light.svg +49 -0
  428. package/assets/icons/small/my-profile-female.svg +48 -0
  429. package/assets/icons/small/my-profile-male--light.svg +49 -0
  430. package/assets/icons/small/my-profile-male.svg +50 -0
  431. package/assets/icons/small/my-profile.svg +14 -0
  432. package/assets/icons/small/new-airplanes--light.svg +14 -0
  433. package/assets/icons/small/new-airplanes.svg +14 -0
  434. package/assets/icons/small/personnel--light.svg +14 -0
  435. package/assets/icons/small/personnel.svg +14 -0
  436. package/assets/icons/small/pintrest.svg +1 -0
  437. package/assets/icons/small/premium--light.svg +17 -0
  438. package/assets/icons/small/premium.svg +17 -0
  439. package/assets/icons/small/print.svg +14 -0
  440. package/assets/icons/small/reddit.svg +1 -0
  441. package/assets/icons/small/rewards--light.svg +19 -0
  442. package/assets/icons/small/rewards-fast-track.svg +17 -0
  443. package/assets/icons/small/rewards-luggage.svg +22 -0
  444. package/assets/icons/small/rewards-seat.svg +22 -0
  445. package/assets/icons/small/rewards.svg +19 -0
  446. package/assets/icons/small/route-network--light.svg +25 -0
  447. package/assets/icons/small/route-network.svg +25 -0
  448. package/assets/icons/small/search--light.svg +16 -0
  449. package/assets/icons/small/search.svg +16 -0
  450. package/assets/icons/small/seat-reservation--light.svg +14 -0
  451. package/assets/icons/small/seat-reservation.svg +14 -0
  452. package/assets/icons/small/skis--light.svg +24 -0
  453. package/assets/icons/small/skis.svg +24 -0
  454. package/assets/icons/small/special-needs--light.svg +16 -0
  455. package/assets/icons/small/special-needs.svg +16 -0
  456. package/assets/icons/small/sun--light.svg +17 -0
  457. package/assets/icons/small/sun.svg +19 -0
  458. package/assets/icons/small/transit-stop--light.svg +19 -0
  459. package/assets/icons/small/transit-stop.svg +21 -0
  460. package/assets/icons/small/trash--light.svg +7 -0
  461. package/assets/icons/small/trash.svg +7 -0
  462. package/assets/icons/small/travel-deals--light.svg +9 -0
  463. package/assets/icons/small/travel-deals.svg +9 -0
  464. package/assets/icons/small/twitter.svg +17 -0
  465. package/assets/icons/small/type-asia--light.svg +20 -0
  466. package/assets/icons/small/type-asia.svg +20 -0
  467. package/assets/icons/small/type-city-vibes--light.svg +10 -0
  468. package/assets/icons/small/type-city-vibes.svg +10 -0
  469. package/assets/icons/small/type-greece--light.svg +22 -0
  470. package/assets/icons/small/type-greece.svg +22 -0
  471. package/assets/icons/small/type-norway--light.svg +15 -0
  472. package/assets/icons/small/type-norway.svg +15 -0
  473. package/assets/icons/small/type-scandinavia--light.svg +17 -0
  474. package/assets/icons/small/type-scandinavia.svg +35 -0
  475. package/assets/icons/small/type-shopping--light.svg +13 -0
  476. package/assets/icons/small/type-shopping.svg +13 -0
  477. package/assets/icons/small/type-skiing--light.svg +18 -0
  478. package/assets/icons/small/type-skiing.svg +18 -0
  479. package/assets/icons/small/type-spain--light.svg +12 -0
  480. package/assets/icons/small/type-spain.svg +12 -0
  481. package/assets/icons/small/type-sun-and-sea--light.svg +59 -0
  482. package/assets/icons/small/type-sun-and-sea.svg +59 -0
  483. package/assets/icons/small/type-usa--light.svg +24 -0
  484. package/assets/icons/small/type-usa.svg +24 -0
  485. package/assets/icons/small/wifi--light.svg +17 -0
  486. package/assets/icons/small/wifi.svg +17 -0
  487. package/assets/icons/small/youtube.svg +11 -0
  488. package/assets/icons/tablet-landscape.svg +12 -0
  489. package/assets/icons/tablet-portrait.svg +12 -0
  490. package/assets/icons/upgrade.svg +8 -0
  491. package/assets/icons/weather/humidity.svg +1 -0
  492. package/assets/icons/weather/sun.svg +1 -0
  493. package/assets/icons/weather/sunrise.svg +1 -0
  494. package/assets/icons/weather/sunset.svg +1 -0
  495. package/assets/icons/weather/temperature.svg +1 -0
  496. package/assets/icons/weather/weather--cloud.svg +1 -0
  497. package/assets/icons/weather/weather--rain-sun.svg +1 -0
  498. package/assets/icons/weather/weather--rain.svg +1 -0
  499. package/assets/icons/weather/weather--storm.svg +1 -0
  500. package/assets/icons/weather/weather--sun-cloud.svg +1 -0
  501. package/assets/icons/weather/weather--sun.svg +1 -0
  502. package/assets/images/cloud-1.svg +1 -0
  503. package/assets/images/logo--mobile.svg +50 -0
  504. package/assets/images/logo.svg +135 -0
  505. package/assets/images/slider-bar.svg +7 -0
  506. package/assets/images/slider-thumb-disabled.svg +19 -0
  507. package/assets/images/slider-thumb.svg +14 -0
  508. package/bundles/norwegian-core-components.umd.js +11898 -0
  509. package/bundles/norwegian-core-components.umd.js.map +1 -0
  510. package/esm2015/lib/components/accordion/accordion.component.js +118 -0
  511. package/esm2015/lib/components/accordion/accordion.module.js +15 -0
  512. package/esm2015/lib/components/accordion/index.js +3 -0
  513. package/esm2015/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.js +583 -0
  514. package/esm2015/lib/components/airport-select/airport-select.component.js +400 -0
  515. package/esm2015/lib/components/airport-select/airport-select.module.js +27 -0
  516. package/esm2015/lib/components/airport-select/index.js +4 -0
  517. package/esm2015/lib/components/airport-select/models/airport.model.js +2 -0
  518. package/esm2015/lib/components/airport-select/models/results-labels.model.js +3 -0
  519. package/esm2015/lib/components/airport-select/services/airport-select-dropdown.service.js +34 -0
  520. package/esm2015/lib/components/airport-select/services/airport-select.service.js +29 -0
  521. package/esm2015/lib/components/autocomplete/autocomplete.component.js +265 -0
  522. package/esm2015/lib/components/autocomplete/autocomplete.module.js +26 -0
  523. package/esm2015/lib/components/autocomplete/index.js +4 -0
  524. package/esm2015/lib/components/autocomplete/models/autocomplete.model.js +2 -0
  525. package/esm2015/lib/components/backdrop/backdrop.component.js +54 -0
  526. package/esm2015/lib/components/backdrop/backdrop.module.js +17 -0
  527. package/esm2015/lib/components/backdrop/index.js +3 -0
  528. package/esm2015/lib/components/box/box.component.js +61 -0
  529. package/esm2015/lib/components/box/box.module.js +14 -0
  530. package/esm2015/lib/components/box/index.js +3 -0
  531. package/esm2015/lib/components/button/button.component.js +140 -0
  532. package/esm2015/lib/components/button/button.module.js +15 -0
  533. package/esm2015/lib/components/button/index.js +3 -0
  534. package/esm2015/lib/components/checkbox/checkbox.component.js +125 -0
  535. package/esm2015/lib/components/checkbox/checkbox.module.js +15 -0
  536. package/esm2015/lib/components/checkbox/index.js +3 -0
  537. package/esm2015/lib/components/chip/chip.component.js +50 -0
  538. package/esm2015/lib/components/chip/chip.module.js +17 -0
  539. package/esm2015/lib/components/chip/index.js +3 -0
  540. package/esm2015/lib/components/container/container.component.js +47 -0
  541. package/esm2015/lib/components/container/container.module.js +14 -0
  542. package/esm2015/lib/components/container/index.js +3 -0
  543. package/esm2015/lib/components/continue/continue.component.js +173 -0
  544. package/esm2015/lib/components/continue/continue.module.js +23 -0
  545. package/esm2015/lib/components/continue/index.js +3 -0
  546. package/esm2015/lib/components/cover/cover.component.js +61 -0
  547. package/esm2015/lib/components/cover/cover.module.js +16 -0
  548. package/esm2015/lib/components/cover/index.js +3 -0
  549. package/esm2015/lib/components/datepicker/calendar/calendar-date.model.js +2 -0
  550. package/esm2015/lib/components/datepicker/calendar/calendar.component.js +560 -0
  551. package/esm2015/lib/components/datepicker/calendar/enums/week-start.enum.js +6 -0
  552. package/esm2015/lib/components/datepicker/calendar/models/day.model.js +2 -0
  553. package/esm2015/lib/components/datepicker/calendar/models/select-option.model.js +2 -0
  554. package/esm2015/lib/components/datepicker/calendar/models/week.model.js +2 -0
  555. package/esm2015/lib/components/datepicker/datepicker.component.js +511 -0
  556. package/esm2015/lib/components/datepicker/datepicker.module.js +34 -0
  557. package/esm2015/lib/components/datepicker/index.js +5 -0
  558. package/esm2015/lib/components/datepicker/services/calendar.service.js +217 -0
  559. package/esm2015/lib/components/datepicker-combo/datepicker-combo.component.js +306 -0
  560. package/esm2015/lib/components/datepicker-combo/datepicker-combo.module.js +22 -0
  561. package/esm2015/lib/components/datepicker-combo/index.js +3 -0
  562. package/esm2015/lib/components/dropdown/dropdown.component.js +146 -0
  563. package/esm2015/lib/components/dropdown/dropdown.module.js +21 -0
  564. package/esm2015/lib/components/dropdown/index.js +3 -0
  565. package/esm2015/lib/components/filter/enums/trip-type.enum.js +8 -0
  566. package/esm2015/lib/components/filter/filter.component.js +1100 -0
  567. package/esm2015/lib/components/filter/filter.module.js +44 -0
  568. package/esm2015/lib/components/filter/index.js +4 -0
  569. package/esm2015/lib/components/grid/col/col.component.js +47 -0
  570. package/esm2015/lib/components/grid/grid.component.js +55 -0
  571. package/esm2015/lib/components/grid/grid.module.js +15 -0
  572. package/esm2015/lib/components/grid/index.js +4 -0
  573. package/esm2015/lib/components/icon/icon.component.js +42 -0
  574. package/esm2015/lib/components/icon/icon.module.js +17 -0
  575. package/esm2015/lib/components/icon/index.js +3 -0
  576. package/esm2015/lib/components/icon-list/icon-list.component.js +46 -0
  577. package/esm2015/lib/components/icon-list/icon-list.model.js +2 -0
  578. package/esm2015/lib/components/icon-list/icon-list.module.js +15 -0
  579. package/esm2015/lib/components/icon-list/index.js +4 -0
  580. package/esm2015/lib/components/index.js +49 -0
  581. package/esm2015/lib/components/info/index.js +4 -0
  582. package/esm2015/lib/components/info/info.component.js +81 -0
  583. package/esm2015/lib/components/info/info.module.js +21 -0
  584. package/esm2015/lib/components/info/models/info.model.js +2 -0
  585. package/esm2015/lib/components/input/index.js +3 -0
  586. package/esm2015/lib/components/input/input.component.js +139 -0
  587. package/esm2015/lib/components/input/input.module.js +16 -0
  588. package/esm2015/lib/components/journey/index.js +3 -0
  589. package/esm2015/lib/components/journey/journey.component.js +122 -0
  590. package/esm2015/lib/components/journey/journey.module.js +19 -0
  591. package/esm2015/lib/components/journey/models/journey-flight.model.js +2 -0
  592. package/esm2015/lib/components/journey/models/journey.model.js +2 -0
  593. package/esm2015/lib/components/journey-availability/index.js +3 -0
  594. package/esm2015/lib/components/journey-availability/journey-availability.component.js +125 -0
  595. package/esm2015/lib/components/journey-availability/journey-availability.module.js +26 -0
  596. package/esm2015/lib/components/journey-availability-list/enums/availability-sort-option.enum.js +7 -0
  597. package/esm2015/lib/components/journey-availability-list/index.js +3 -0
  598. package/esm2015/lib/components/journey-availability-list/journey-availability-list.component.js +175 -0
  599. package/esm2015/lib/components/journey-availability-list/journey-availability-list.module.js +23 -0
  600. package/esm2015/lib/components/journey-selection/index.js +6 -0
  601. package/esm2015/lib/components/journey-selection/journey-selection.component.js +110 -0
  602. package/esm2015/lib/components/journey-selection/journey-selection.module.js +24 -0
  603. package/esm2015/lib/components/journey-selection/models/journey-selection-collapsed.model.js +2 -0
  604. package/esm2015/lib/components/journey-selection/models/journey-selection-common.model.js +2 -0
  605. package/esm2015/lib/components/journey-selection/models/journey-selection-expanded.model.js +2 -0
  606. package/esm2015/lib/components/journey-selection/models/journey-selection.model.js +2 -0
  607. package/esm2015/lib/components/journey-stopover/index.js +3 -0
  608. package/esm2015/lib/components/journey-stopover/journey-stopover.component.js +121 -0
  609. package/esm2015/lib/components/journey-stopover/journey-stopover.module.js +19 -0
  610. package/esm2015/lib/components/journey-stopover/models/stopover-time.model.js +2 -0
  611. package/esm2015/lib/components/list/index.js +4 -0
  612. package/esm2015/lib/components/list/list-item/list-item.component.js +56 -0
  613. package/esm2015/lib/components/list/list.component.js +75 -0
  614. package/esm2015/lib/components/list/list.module.js +15 -0
  615. package/esm2015/lib/components/modal/index.js +3 -0
  616. package/esm2015/lib/components/modal/modal.component.js +131 -0
  617. package/esm2015/lib/components/modal/modal.module.js +25 -0
  618. package/esm2015/lib/components/number-field/index.js +3 -0
  619. package/esm2015/lib/components/number-field/number-field.component.js +118 -0
  620. package/esm2015/lib/components/number-field/number-field.module.js +24 -0
  621. package/esm2015/lib/components/page-footer/index.js +3 -0
  622. package/esm2015/lib/components/page-footer/page-footer.component.js +49 -0
  623. package/esm2015/lib/components/page-footer/page-footer.module.js +16 -0
  624. package/esm2015/lib/components/page-header/hamburger/hamburger.component.js +24 -0
  625. package/esm2015/lib/components/page-header/index.js +5 -0
  626. package/esm2015/lib/components/page-header/page-header.component.js +119 -0
  627. package/esm2015/lib/components/page-header/page-header.module.js +18 -0
  628. package/esm2015/lib/components/page-header/search/search.component.js +47 -0
  629. package/esm2015/lib/components/passenger-select/enums/passenger-type.enum.js +7 -0
  630. package/esm2015/lib/components/passenger-select/index.js +5 -0
  631. package/esm2015/lib/components/passenger-select/models/passengers.model.js +2 -0
  632. package/esm2015/lib/components/passenger-select/passenger-select.component.js +204 -0
  633. package/esm2015/lib/components/passenger-select/passenger-select.module.js +19 -0
  634. package/esm2015/lib/components/phone-number/index.js +3 -0
  635. package/esm2015/lib/components/phone-number/phone-number.component.js +115 -0
  636. package/esm2015/lib/components/phone-number/phone-number.module.js +27 -0
  637. package/esm2015/lib/components/premium-toggle/index.js +3 -0
  638. package/esm2015/lib/components/premium-toggle/premium-toggle.component.js +66 -0
  639. package/esm2015/lib/components/premium-toggle/premium-toggle.module.js +19 -0
  640. package/esm2015/lib/components/radio/index.js +3 -0
  641. package/esm2015/lib/components/radio/radio.component.js +79 -0
  642. package/esm2015/lib/components/radio/radio.module.js +15 -0
  643. package/esm2015/lib/components/select/index.js +6 -0
  644. package/esm2015/lib/components/select/models/select-option.model.js +2 -0
  645. package/esm2015/lib/components/select/optgroup/optgroup.component.js +31 -0
  646. package/esm2015/lib/components/select/option/option.component.js +29 -0
  647. package/esm2015/lib/components/select/select.component.js +316 -0
  648. package/esm2015/lib/components/select/select.module.js +21 -0
  649. package/esm2015/lib/components/simple-list/index.js +3 -0
  650. package/esm2015/lib/components/simple-list/simple-list.component.js +42 -0
  651. package/esm2015/lib/components/simple-list/simple-list.module.js +14 -0
  652. package/esm2015/lib/components/slide-toggle/index.js +3 -0
  653. package/esm2015/lib/components/slide-toggle/slide-toggle.component.js +105 -0
  654. package/esm2015/lib/components/slide-toggle/slide-toggle.module.js +20 -0
  655. package/esm2015/lib/components/slider/index.js +3 -0
  656. package/esm2015/lib/components/slider/slider.component.js +447 -0
  657. package/esm2015/lib/components/slider/slider.module.js +19 -0
  658. package/esm2015/lib/components/sort/index.js +3 -0
  659. package/esm2015/lib/components/sort/sort.component.js +87 -0
  660. package/esm2015/lib/components/sort/sort.module.js +23 -0
  661. package/esm2015/lib/components/spinner/index.js +3 -0
  662. package/esm2015/lib/components/spinner/spinner.component.js +57 -0
  663. package/esm2015/lib/components/spinner/spinner.module.js +14 -0
  664. package/esm2015/lib/components/subsidy-discount/index.js +4 -0
  665. package/esm2015/lib/components/subsidy-discount/models/subsidy-discount.model.js +2 -0
  666. package/esm2015/lib/components/subsidy-discount/subsidy-discount.component.js +101 -0
  667. package/esm2015/lib/components/subsidy-discount/subsidy-discount.module.js +23 -0
  668. package/esm2015/lib/components/suggestions/index.js +3 -0
  669. package/esm2015/lib/components/suggestions/suggestions.component.js +40 -0
  670. package/esm2015/lib/components/suggestions/suggestions.module.js +19 -0
  671. package/esm2015/lib/components/tab-group/index.js +4 -0
  672. package/esm2015/lib/components/tab-group/tab/tab.component.js +123 -0
  673. package/esm2015/lib/components/tab-group/tab-group.component.js +85 -0
  674. package/esm2015/lib/components/tab-group/tab-group.module.js +20 -0
  675. package/esm2015/lib/components/table/column/column.component.js +17 -0
  676. package/esm2015/lib/components/table/column-group/column-group.component.js +34 -0
  677. package/esm2015/lib/components/table/index.js +11 -0
  678. package/esm2015/lib/components/table/services/table.service.js +20 -0
  679. package/esm2015/lib/components/table/table-body/table-body.component.js +27 -0
  680. package/esm2015/lib/components/table/table-foot/table-foot.component.js +27 -0
  681. package/esm2015/lib/components/table/table-head/table-head.component.js +27 -0
  682. package/esm2015/lib/components/table/table-row/table-data/table-data.component.js +15 -0
  683. package/esm2015/lib/components/table/table-row/table-header/table-header.component.js +15 -0
  684. package/esm2015/lib/components/table/table-row/table-row.component.js +27 -0
  685. package/esm2015/lib/components/table/table.component.js +29 -0
  686. package/esm2015/lib/components/table/table.module.js +45 -0
  687. package/esm2015/lib/components/textarea/index.js +3 -0
  688. package/esm2015/lib/components/textarea/textarea.component.js +73 -0
  689. package/esm2015/lib/components/textarea/textarea.module.js +20 -0
  690. package/esm2015/lib/components/toggle/index.js +3 -0
  691. package/esm2015/lib/components/toggle/models/options.model.js +3 -0
  692. package/esm2015/lib/components/toggle/toggle.component.js +77 -0
  693. package/esm2015/lib/components/toggle/toggle.module.js +22 -0
  694. package/esm2015/lib/components/trip-summary/index.js +3 -0
  695. package/esm2015/lib/components/trip-summary/trip-summary.component.js +152 -0
  696. package/esm2015/lib/components/trip-summary/trip-summary.module.js +23 -0
  697. package/esm2015/lib/components/weather-icon/index.js +3 -0
  698. package/esm2015/lib/components/weather-icon/weather-icon.component.js +56 -0
  699. package/esm2015/lib/components/weather-icon/weather-icon.module.js +14 -0
  700. package/esm2015/lib/core/base/nas-component.base.js +48 -0
  701. package/esm2015/lib/core/decorators/debounce.decorator.js +12 -0
  702. package/esm2015/lib/core/directives/index.js +3 -0
  703. package/esm2015/lib/core/directives/nas-class/nas-class.directive.js +75 -0
  704. package/esm2015/lib/core/directives/nas-class/nas-class.module.js +17 -0
  705. package/esm2015/lib/core/extensions/html-element.extension.js +31 -0
  706. package/esm2015/lib/core/index.js +5 -0
  707. package/esm2015/lib/core/models/abandoned-basket-item.model.js +2 -0
  708. package/esm2015/lib/core/models/animate.model.js +2 -0
  709. package/esm2015/lib/core/models/class.model.js +2 -0
  710. package/esm2015/lib/core/models/index.js +7 -0
  711. package/esm2015/lib/core/models/link.model.js +2 -0
  712. package/esm2015/lib/core/models/position.model.js +2 -0
  713. package/esm2015/lib/core/models/utc-date.model.js +40 -0
  714. package/esm2015/lib/core/services/abandoned-basket/abandoned-basket.service.js +55 -0
  715. package/esm2015/lib/core/services/animate-helper/animate-helper.service.js +47 -0
  716. package/esm2015/lib/core/services/bem-helper/bem-helper.service.js +41 -0
  717. package/esm2015/lib/core/services/date/date-compare.enum.js +7 -0
  718. package/esm2015/lib/core/services/date/date-helper.service.js +196 -0
  719. package/esm2015/lib/core/services/device/device-helper.service.js +43 -0
  720. package/esm2015/lib/core/services/geolocation/geolocation-state.enum.js +8 -0
  721. package/esm2015/lib/core/services/geolocation/geolocation.service.js +60 -0
  722. package/esm2015/lib/core/services/index.js +10 -0
  723. package/esm2015/lib/core/services/language/language-helper.service.js +162 -0
  724. package/esm2015/lib/core/services/sort/sort.service.js +19 -0
  725. package/esm2015/lib/core/services/viewport/viewport.service.js +29 -0
  726. package/esm2015/lib/index.js +5 -0
  727. package/esm2015/lib/services/get-position.service.js +21 -0
  728. package/esm2015/lib/services/index.js +2 -0
  729. package/esm2015/lib/shared/index.js +2 -0
  730. package/esm2015/lib/shared/models/flight-details.js +3 -0
  731. package/esm2015/lib/shared/models/index.js +5 -0
  732. package/esm2015/lib/shared/models/journey-availability-sort.model.js +2 -0
  733. package/esm2015/lib/shared/models/journey-availability.model.js +2 -0
  734. package/esm2015/lib/shared/models/journey-details.model.js +2 -0
  735. package/esm2015/lib/shared/models/journey-duration.model.js +2 -0
  736. package/esm2015/lib/shared/models/journey-stopover.model.js +2 -0
  737. package/esm2015/lib/shared/models/journey-transit-info.model.js +2 -0
  738. package/esm2015/lib/shared/models/operating-carrier.model.js +2 -0
  739. package/esm2015/lib/shared/models/sort-option.model.js +2 -0
  740. package/esm2015/lib/shared/models/sort.model.js +2 -0
  741. package/esm2015/lib/shared/models/trip-item-details.model.js +2 -0
  742. package/esm2015/lib/shared/models/trip-summary-details.model.js +2 -0
  743. package/esm2015/lib/shared/models/trip-summary.model.js +2 -0
  744. package/esm2015/norwegian-core-components.js +12 -0
  745. package/esm2015/public_api.js +2 -0
  746. package/fesm2015/norwegian-core-components.js +10595 -0
  747. package/fesm2015/norwegian-core-components.js.map +1 -0
  748. package/lib/components/accordion/accordion.component.d.ts +205 -0
  749. package/lib/components/accordion/accordion.module.d.ts +2 -0
  750. package/lib/components/accordion/index.d.ts +2 -0
  751. package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +94 -0
  752. package/lib/components/airport-select/airport-select.component.d.ts +256 -0
  753. package/lib/components/airport-select/airport-select.module.d.ts +2 -0
  754. package/lib/components/airport-select/index.d.ts +3 -0
  755. package/lib/components/airport-select/models/airport.model.d.ts +10 -0
  756. package/lib/components/airport-select/models/results-labels.model.d.ts +7 -0
  757. package/lib/components/airport-select/services/airport-select-dropdown.service.d.ts +7 -0
  758. package/lib/components/airport-select/services/airport-select.service.d.ts +5 -0
  759. package/lib/components/autocomplete/autocomplete.component.d.ts +115 -0
  760. package/lib/components/autocomplete/autocomplete.module.d.ts +2 -0
  761. package/lib/components/autocomplete/index.d.ts +3 -0
  762. package/lib/components/autocomplete/models/autocomplete.model.d.ts +5 -0
  763. package/lib/components/backdrop/backdrop.component.d.ts +32 -0
  764. package/lib/components/backdrop/backdrop.module.d.ts +2 -0
  765. package/lib/components/backdrop/index.d.ts +2 -0
  766. package/lib/components/box/box.component.d.ts +69 -0
  767. package/lib/components/box/box.module.d.ts +2 -0
  768. package/lib/components/box/index.d.ts +2 -0
  769. package/lib/components/button/button.component.d.ts +238 -0
  770. package/lib/components/button/button.module.d.ts +2 -0
  771. package/lib/components/button/index.d.ts +2 -0
  772. package/lib/components/checkbox/checkbox.component.d.ts +119 -0
  773. package/lib/components/checkbox/checkbox.module.d.ts +2 -0
  774. package/lib/components/checkbox/index.d.ts +2 -0
  775. package/lib/components/chip/chip.component.d.ts +61 -0
  776. package/lib/components/chip/chip.module.d.ts +2 -0
  777. package/lib/components/chip/index.d.ts +2 -0
  778. package/lib/components/container/container.component.d.ts +47 -0
  779. package/lib/components/container/container.module.d.ts +2 -0
  780. package/lib/components/container/index.d.ts +2 -0
  781. package/lib/components/continue/continue.component.d.ts +154 -0
  782. package/lib/components/continue/continue.module.d.ts +2 -0
  783. package/lib/components/continue/index.d.ts +2 -0
  784. package/lib/components/cover/cover.component.d.ts +112 -0
  785. package/lib/components/cover/cover.module.d.ts +2 -0
  786. package/lib/components/cover/index.d.ts +2 -0
  787. package/lib/components/datepicker/calendar/calendar-date.model.d.ts +5 -0
  788. package/lib/components/datepicker/calendar/calendar.component.d.ts +156 -0
  789. package/lib/components/datepicker/calendar/enums/week-start.enum.d.ts +4 -0
  790. package/lib/components/datepicker/calendar/models/day.model.d.ts +9 -0
  791. package/lib/components/datepicker/calendar/models/select-option.model.d.ts +4 -0
  792. package/lib/components/datepicker/calendar/models/week.model.d.ts +5 -0
  793. package/lib/components/datepicker/datepicker.component.d.ts +235 -0
  794. package/lib/components/datepicker/datepicker.module.d.ts +2 -0
  795. package/lib/components/datepicker/index.d.ts +4 -0
  796. package/lib/components/datepicker/services/calendar.service.d.ts +24 -0
  797. package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +246 -0
  798. package/lib/components/datepicker-combo/datepicker-combo.module.d.ts +2 -0
  799. package/lib/components/datepicker-combo/index.d.ts +2 -0
  800. package/lib/components/dropdown/dropdown.component.d.ts +64 -0
  801. package/lib/components/dropdown/dropdown.module.d.ts +2 -0
  802. package/lib/components/dropdown/index.d.ts +2 -0
  803. package/lib/components/filter/enums/trip-type.enum.d.ts +6 -0
  804. package/lib/components/filter/filter.component.d.ts +693 -0
  805. package/lib/components/filter/filter.module.d.ts +2 -0
  806. package/lib/components/filter/index.d.ts +3 -0
  807. package/lib/components/grid/col/col.component.d.ts +37 -0
  808. package/lib/components/grid/grid.component.d.ts +61 -0
  809. package/lib/components/grid/grid.module.d.ts +2 -0
  810. package/lib/components/grid/index.d.ts +3 -0
  811. package/lib/components/icon/icon.component.d.ts +57 -0
  812. package/lib/components/icon/icon.module.d.ts +2 -0
  813. package/lib/components/icon/index.d.ts +2 -0
  814. package/lib/components/icon-list/icon-list.component.d.ts +41 -0
  815. package/lib/components/icon-list/icon-list.model.d.ts +7 -0
  816. package/lib/components/icon-list/icon-list.module.d.ts +2 -0
  817. package/lib/components/icon-list/index.d.ts +3 -0
  818. package/lib/components/index.d.ts +48 -0
  819. package/lib/components/info/index.d.ts +3 -0
  820. package/lib/components/info/info.component.d.ts +71 -0
  821. package/lib/components/info/info.module.d.ts +2 -0
  822. package/lib/components/info/models/info.model.d.ts +7 -0
  823. package/lib/components/input/index.d.ts +2 -0
  824. package/lib/components/input/input.component.d.ts +163 -0
  825. package/lib/components/input/input.module.d.ts +2 -0
  826. package/lib/components/journey/index.d.ts +2 -0
  827. package/lib/components/journey/journey.component.d.ts +119 -0
  828. package/lib/components/journey/journey.module.d.ts +2 -0
  829. package/lib/components/journey/models/journey-flight.model.d.ts +10 -0
  830. package/lib/components/journey/models/journey.model.d.ts +5 -0
  831. package/lib/components/journey-availability/index.d.ts +2 -0
  832. package/lib/components/journey-availability/journey-availability.component.d.ts +90 -0
  833. package/lib/components/journey-availability/journey-availability.module.d.ts +2 -0
  834. package/lib/components/journey-availability-list/enums/availability-sort-option.enum.d.ts +5 -0
  835. package/lib/components/journey-availability-list/index.d.ts +2 -0
  836. package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +116 -0
  837. package/lib/components/journey-availability-list/journey-availability-list.module.d.ts +2 -0
  838. package/lib/components/journey-selection/index.d.ts +5 -0
  839. package/lib/components/journey-selection/journey-selection.component.d.ts +70 -0
  840. package/lib/components/journey-selection/journey-selection.module.d.ts +2 -0
  841. package/lib/components/journey-selection/models/journey-selection-collapsed.model.d.ts +11 -0
  842. package/lib/components/journey-selection/models/journey-selection-common.model.d.ts +7 -0
  843. package/lib/components/journey-selection/models/journey-selection-expanded.model.d.ts +5 -0
  844. package/lib/components/journey-selection/models/journey-selection.model.d.ts +14 -0
  845. package/lib/components/journey-stopover/index.d.ts +2 -0
  846. package/lib/components/journey-stopover/journey-stopover.component.d.ts +132 -0
  847. package/lib/components/journey-stopover/journey-stopover.module.d.ts +2 -0
  848. package/lib/components/journey-stopover/models/stopover-time.model.d.ts +4 -0
  849. package/lib/components/list/index.d.ts +3 -0
  850. package/lib/components/list/list-item/list-item.component.d.ts +32 -0
  851. package/lib/components/list/list.component.d.ts +65 -0
  852. package/lib/components/list/list.module.d.ts +2 -0
  853. package/lib/components/modal/index.d.ts +2 -0
  854. package/lib/components/modal/modal.component.d.ts +119 -0
  855. package/lib/components/modal/modal.module.d.ts +2 -0
  856. package/lib/components/number-field/index.d.ts +2 -0
  857. package/lib/components/number-field/number-field.component.d.ts +96 -0
  858. package/lib/components/number-field/number-field.module.d.ts +2 -0
  859. package/lib/components/page-footer/index.d.ts +2 -0
  860. package/lib/components/page-footer/page-footer.component.d.ts +57 -0
  861. package/lib/components/page-footer/page-footer.module.d.ts +2 -0
  862. package/lib/components/page-header/hamburger/hamburger.component.d.ts +9 -0
  863. package/lib/components/page-header/index.d.ts +4 -0
  864. package/lib/components/page-header/page-header.component.d.ts +84 -0
  865. package/lib/components/page-header/page-header.module.d.ts +2 -0
  866. package/lib/components/page-header/search/search.component.d.ts +23 -0
  867. package/lib/components/passenger-select/enums/passenger-type.enum.d.ts +5 -0
  868. package/lib/components/passenger-select/index.d.ts +4 -0
  869. package/lib/components/passenger-select/models/passengers.model.d.ts +9 -0
  870. package/lib/components/passenger-select/passenger-select.component.d.ts +111 -0
  871. package/lib/components/passenger-select/passenger-select.module.d.ts +2 -0
  872. package/lib/components/phone-number/index.d.ts +2 -0
  873. package/lib/components/phone-number/phone-number.component.d.ts +278 -0
  874. package/lib/components/phone-number/phone-number.module.d.ts +2 -0
  875. package/lib/components/premium-toggle/index.d.ts +2 -0
  876. package/lib/components/premium-toggle/premium-toggle.component.d.ts +51 -0
  877. package/lib/components/premium-toggle/premium-toggle.module.d.ts +2 -0
  878. package/lib/components/radio/index.d.ts +2 -0
  879. package/lib/components/radio/radio.component.d.ts +115 -0
  880. package/lib/components/radio/radio.module.d.ts +2 -0
  881. package/lib/components/select/index.d.ts +5 -0
  882. package/lib/components/select/models/select-option.model.d.ts +4 -0
  883. package/lib/components/select/optgroup/optgroup.component.d.ts +22 -0
  884. package/lib/components/select/option/option.component.d.ts +21 -0
  885. package/lib/components/select/select.component.d.ts +156 -0
  886. package/lib/components/select/select.module.d.ts +2 -0
  887. package/lib/components/simple-list/index.d.ts +2 -0
  888. package/lib/components/simple-list/simple-list.component.d.ts +49 -0
  889. package/lib/components/simple-list/simple-list.module.d.ts +2 -0
  890. package/lib/components/slide-toggle/index.d.ts +2 -0
  891. package/lib/components/slide-toggle/slide-toggle.component.d.ts +60 -0
  892. package/lib/components/slide-toggle/slide-toggle.module.d.ts +2 -0
  893. package/lib/components/slider/index.d.ts +2 -0
  894. package/lib/components/slider/slider.component.d.ts +177 -0
  895. package/lib/components/slider/slider.module.d.ts +2 -0
  896. package/lib/components/sort/index.d.ts +2 -0
  897. package/lib/components/sort/sort.component.d.ts +47 -0
  898. package/lib/components/sort/sort.module.d.ts +2 -0
  899. package/lib/components/spinner/index.d.ts +2 -0
  900. package/lib/components/spinner/spinner.component.d.ts +58 -0
  901. package/lib/components/spinner/spinner.module.d.ts +2 -0
  902. package/lib/components/subsidy-discount/index.d.ts +3 -0
  903. package/lib/components/subsidy-discount/models/subsidy-discount.model.d.ts +4 -0
  904. package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +57 -0
  905. package/lib/components/subsidy-discount/subsidy-discount.module.d.ts +2 -0
  906. package/lib/components/suggestions/index.d.ts +2 -0
  907. package/lib/components/suggestions/suggestions.component.d.ts +30 -0
  908. package/lib/components/suggestions/suggestions.module.d.ts +2 -0
  909. package/lib/components/tab-group/index.d.ts +3 -0
  910. package/lib/components/tab-group/tab/tab.component.d.ts +84 -0
  911. package/lib/components/tab-group/tab-group.component.d.ts +30 -0
  912. package/lib/components/tab-group/tab-group.module.d.ts +2 -0
  913. package/lib/components/table/column/column.component.d.ts +3 -0
  914. package/lib/components/table/column-group/column-group.component.d.ts +12 -0
  915. package/lib/components/table/index.d.ts +10 -0
  916. package/lib/components/table/services/table.service.d.ts +5 -0
  917. package/lib/components/table/table-body/table-body.component.d.ts +12 -0
  918. package/lib/components/table/table-foot/table-foot.component.d.ts +12 -0
  919. package/lib/components/table/table-head/table-head.component.d.ts +12 -0
  920. package/lib/components/table/table-row/table-data/table-data.component.d.ts +2 -0
  921. package/lib/components/table/table-row/table-header/table-header.component.d.ts +2 -0
  922. package/lib/components/table/table-row/table-row.component.d.ts +12 -0
  923. package/lib/components/table/table.component.d.ts +21 -0
  924. package/lib/components/table/table.module.d.ts +2 -0
  925. package/lib/components/textarea/index.d.ts +2 -0
  926. package/lib/components/textarea/textarea.component.d.ts +121 -0
  927. package/lib/components/textarea/textarea.module.d.ts +2 -0
  928. package/lib/components/toggle/index.d.ts +2 -0
  929. package/lib/components/toggle/models/options.model.d.ts +6 -0
  930. package/lib/components/toggle/toggle.component.d.ts +183 -0
  931. package/lib/components/toggle/toggle.module.d.ts +2 -0
  932. package/lib/components/trip-summary/index.d.ts +2 -0
  933. package/lib/components/trip-summary/trip-summary.component.d.ts +173 -0
  934. package/lib/components/trip-summary/trip-summary.module.d.ts +2 -0
  935. package/lib/components/weather-icon/index.d.ts +2 -0
  936. package/lib/components/weather-icon/weather-icon.component.d.ts +51 -0
  937. package/lib/components/weather-icon/weather-icon.module.d.ts +2 -0
  938. package/lib/core/base/nas-component.base.d.ts +11 -0
  939. package/lib/core/decorators/debounce.decorator.d.ts +1 -0
  940. package/lib/core/directives/index.d.ts +2 -0
  941. package/lib/core/directives/nas-class/nas-class.directive.d.ts +11 -0
  942. package/lib/core/directives/nas-class/nas-class.module.d.ts +2 -0
  943. package/lib/core/extensions/html-element.extension.d.ts +6 -0
  944. package/lib/core/index.d.ts +4 -0
  945. package/lib/core/models/abandoned-basket-item.model.d.ts +14 -0
  946. package/lib/core/models/animate.model.d.ts +6 -0
  947. package/lib/core/models/class.model.d.ts +6 -0
  948. package/lib/core/models/index.d.ts +6 -0
  949. package/lib/core/models/link.model.d.ts +4 -0
  950. package/lib/core/models/position.model.d.ts +4 -0
  951. package/lib/core/models/utc-date.model.d.ts +13 -0
  952. package/lib/core/services/abandoned-basket/abandoned-basket.service.d.ts +7 -0
  953. package/lib/core/services/animate-helper/animate-helper.service.d.ts +6 -0
  954. package/lib/core/services/bem-helper/bem-helper.service.d.ts +4 -0
  955. package/lib/core/services/date/date-compare.enum.d.ts +5 -0
  956. package/lib/core/services/date/date-helper.service.d.ts +19 -0
  957. package/lib/core/services/device/device-helper.service.d.ts +13 -0
  958. package/lib/core/services/geolocation/geolocation-state.enum.d.ts +6 -0
  959. package/lib/core/services/geolocation/geolocation.service.d.ts +6 -0
  960. package/lib/core/services/index.d.ts +9 -0
  961. package/lib/core/services/language/language-helper.service.d.ts +9 -0
  962. package/lib/core/services/sort/sort.service.d.ts +3 -0
  963. package/lib/core/services/viewport/viewport.service.d.ts +8 -0
  964. package/lib/index.d.ts +4 -0
  965. package/lib/services/get-position.service.d.ts +6 -0
  966. package/lib/services/index.d.ts +1 -0
  967. package/lib/shared/index.d.ts +1 -0
  968. package/lib/shared/models/flight-details.d.ts +22 -0
  969. package/lib/shared/models/index.d.ts +4 -0
  970. package/lib/shared/models/journey-availability-sort.model.d.ts +8 -0
  971. package/lib/shared/models/journey-availability.model.d.ts +25 -0
  972. package/lib/shared/models/journey-details.model.d.ts +8 -0
  973. package/lib/shared/models/journey-duration.model.d.ts +7 -0
  974. package/lib/shared/models/journey-stopover.model.d.ts +11 -0
  975. package/lib/shared/models/journey-transit-info.model.d.ts +5 -0
  976. package/lib/shared/models/operating-carrier.model.d.ts +4 -0
  977. package/lib/shared/models/sort-option.model.d.ts +11 -0
  978. package/lib/shared/models/sort.model.d.ts +10 -0
  979. package/lib/shared/models/trip-item-details.model.d.ts +12 -0
  980. package/lib/shared/models/trip-summary-details.model.d.ts +5 -0
  981. package/lib/shared/models/trip-summary.model.d.ts +4 -0
  982. package/norwegian-core-components.d.ts +11 -0
  983. package/norwegian-core-components.metadata.json +1 -0
  984. package/package.json +19 -0
  985. package/public_api.d.ts +1 -0
  986. package/styles/1__settings/_colors.scss +65 -0
  987. package/styles/1__settings/_mixins.scss +226 -0
  988. package/styles/1__settings/_type.scss +53 -0
  989. package/styles/1__settings/_vars.scss +62 -0
  990. package/styles/2__generic/_fonts.scss +99 -0
  991. package/styles/2__generic/_reset.scss +275 -0
  992. package/styles/3__base/_animations.scss +138 -0
  993. package/styles/3__base/_body.scss +23 -0
  994. package/styles/3__base/_fixes.scss +5 -0
  995. package/styles/3__base/_form.scss +18 -0
  996. package/styles/3__base/_grid.scss +115 -0
  997. package/styles/3__base/_heading.scss +110 -0
  998. package/styles/3__base/_hr.scss +30 -0
  999. package/styles/3__base/_input.scss +38 -0
  1000. package/styles/3__base/_link.scss +48 -0
  1001. package/styles/3__base/_table.scss +44 -0
  1002. package/styles/3__base/_type.scss +69 -0
  1003. package/styles/_helpers.scss +4 -0
  1004. package/styles/_index.scss +15 -0
@@ -0,0 +1,3 @@
1
+ export * from './sort.component';
2
+ export * from './sort.module';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NvcnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc29ydC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zb3J0Lm1vZHVsZSc7XG4iXX0=
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { Component, Input, Output, EventEmitter } from '@angular/core';
6
+ import { NasComponentBase } from '../../core';
7
+ /**
8
+ * @description
9
+ * Norwegian Sort Component | Functional
10
+ */
11
+ export class SortComponent extends NasComponentBase {
12
+ constructor() {
13
+ super('nas-sort');
14
+ /**
15
+ * @description
16
+ * Listen for option change events.
17
+ */
18
+ this.selectedOptionChange = new EventEmitter();
19
+ /**
20
+ * @description
21
+ * Listen for apply button click events.
22
+ */
23
+ this.applyButtonClicked = new EventEmitter();
24
+ }
25
+ /**
26
+ * @description
27
+ * popup open set & get.
28
+ */
29
+ get open() {
30
+ return this.dropdownOpen;
31
+ }
32
+ set open(value) {
33
+ this.dropdownOpen = value;
34
+ }
35
+ /**
36
+ * @description
37
+ * checked option set & get.
38
+ */
39
+ get selectedOption() {
40
+ return this.checkedOptionObject;
41
+ }
42
+ set selectedOption(option) {
43
+ if (!option) {
44
+ return;
45
+ }
46
+ this.checkedOptionObject = option;
47
+ }
48
+ checkSpaceless(option, index) {
49
+ var _a;
50
+ if (option.spaceless) {
51
+ return true;
52
+ }
53
+ else {
54
+ return index === this.model.sortOptions.length - 1 && !((_a = this.model.applyButtonLabel) === null || _a === void 0 ? void 0 : _a.length);
55
+ }
56
+ }
57
+ applyButtonClick() {
58
+ if (this.model && this.model.closeDropdownOnApplyClick) {
59
+ this.open = false;
60
+ }
61
+ this.applyButtonClicked.emit(this.selectedOption);
62
+ }
63
+ optionChanged(option, isChecked) {
64
+ if (isChecked) {
65
+ this.selectedOptionChange.emit(option);
66
+ }
67
+ if (this.model && this.model.closeDropdownOnOptionChange && this.open) {
68
+ this.open = false;
69
+ }
70
+ }
71
+ }
72
+ SortComponent.decorators = [
73
+ { type: Component, args: [{
74
+ selector: 'nas-sort',
75
+ template: "<div [nasClass]=\"getContainerClass('', exists(model?.right) && 'right')\" *ngIf=\"model\">\n <nas-dropdown [label]=\"model?.label\" [(open)]=\"open\">\n <nas-radio\n block\n [name]=\"model?.name\"\n [value]=\"option.value\"\n *ngFor=\"let option of model?.sortOptions; let optionIndex = index\"\n [nasFormControlName]=\"option?.nasFormControlName\"\n [nasFormGroup]=\"option?.nasFormGroup\"\n [required]=\"exists(option?.required)\"\n [spaceless]=\"checkSpaceless(option, optionIndex)\"\n [strong]=\"exists(option?.strong)\"\n [tabIndex]=\"option?.tabIndex\"\n [disabled]=\"exists(option?.disabled)\"\n [error]=\"exists(option?.error)\"\n [checked]=\"selectedOption?.value === option?.value\"\n (checkedChange)=\"optionChanged(option, $event)\"\n >\n {{option.title}}\n </nas-radio>\n <nas-button *ngIf=\"model?.applyButtonLabel && model?.applyButtonLabel.length\" primary compact spaceless (click)=\"applyButtonClick()\">{{model?.applyButtonLabel}}</nas-button>\n </nas-dropdown>\n</div>\n",
76
+ styles: ["@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@-webkit-keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@-webkit-keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@-webkit-keyframes fade-out{to{opacity:0}}@keyframes fade-out{to{opacity:0}}@-webkit-keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@-webkit-keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@-webkit-keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-sort ::ng-deep .nas-dropdown__content{padding:16px;margin-top:3px;left:auto;right:6px;border:none;min-width:auto;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:250px}.nas-sort ::ng-deep .nas-dropdown__arrow{display:none}.nas-sort ::ng-deep .nas-dropdown__toggle{background-color:transparent}.nas-sort ::ng-deep .nas-dropdown__toggle--active{background-color:#fff}.nas-sort ::ng-deep .nas-dropdown .nas-radio{margin-bottom:16px;margin-right:0}.nas-sort ::ng-deep .nas-dropdown .nas-radio--spaceless{margin-bottom:0}.nas-sort ::ng-deep .nas-dropdown .nas-radio__indicator{background-color:#c3c3c3}.nas-sort--right{align-self:flex-end;float:right;clear:both}\n"]
77
+ },] }
78
+ ];
79
+ SortComponent.ctorParameters = () => [];
80
+ SortComponent.propDecorators = {
81
+ model: [{ type: Input }],
82
+ open: [{ type: Input }],
83
+ selectedOption: [{ type: Input }],
84
+ selectedOptionChange: [{ type: Output }],
85
+ applyButtonClicked: [{ type: Output }]
86
+ };
87
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NvcnQvc29ydC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBQ0gsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLG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W9kZWwuc29ydE9wdGlvbnMubGVuZ3RoIC0gMSAmJiAhdGhpcy5tb2RlbC5hcHBseUJ1dHRvbkxhYmVsPy5sZW5ndGg7XG4gICAgfVxuICB9XG5cbiAgYXBwbHlCdXR0b25DbGljaygpOiB2b2lkIHtcbiAgICBpZiAodGhpcy5tb2RlbCAmJiB0aGlzLm1vZGVsLmNsb3NlRHJvcGRvd25PbkFwcGx5Q2xpY2spIHtcbiAgICAgIHRoaXMub3BlbiA9IGZhbHNlO1xuICAgIH1cbiAgICB0aGlzLmFwcGx5QnV0dG9uQ2xpY2tlZC5lbWl0KHRoaXMuc2VsZWN0ZWRPcHRpb24pO1xuICB9XG5cbiAgb3B0aW9uQ2hhbmdlZChvcHRpb246IFNvcnRPcHRpb25Nb2RlbCwgaXNDaGVja2VkOiBib29sZWFuKTogdm9pZCB7XG4gICAgaWYgKGlzQ2hlY2tlZCkge1xuICAgICAgdGhpcy5zZWxlY3RlZE9wdGlvbkNoYW5nZS5lbWl0KG9wdGlvbik7XG4gICAgfVxuICAgIGlmICh0aGlzLm1vZGVsICYmIHRoaXMubW9kZWwuY2xvc2VEcm9wZG93bk9uT3B0aW9uQ2hhbmdlICYmIHRoaXMub3Blbikge1xuICAgICAgdGhpcy5vcGVuID0gZmFsc2U7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ==
@@ -0,0 +1,23 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
4
+ import { SortComponent } from './sort.component';
5
+ import { DropdownModule } from '../dropdown/dropdown.module';
6
+ import { RadioModule } from '../radio/radio.module';
7
+ import { ButtonModule } from '../button/button.module';
8
+ export class SortModule {
9
+ }
10
+ SortModule.decorators = [
11
+ { type: NgModule, args: [{
12
+ imports: [
13
+ CommonModule,
14
+ NasClassModule,
15
+ DropdownModule,
16
+ RadioModule,
17
+ ButtonModule
18
+ ],
19
+ declarations: [SortComponent],
20
+ exports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GFyL2NvbW1vbic7XG5pbXBvcnQgeyBOYXNDbGFzc01vZHVsZSB9IGZyb20gJy4uLy4uL2NvcmUvZGlyZWN0aXZlcy9uYXMtY2xhc3MvbmFzLWNsYXNzLm1vZHVsZSc7XG5pbXBvcnQgeyBTb3J0Q29tcG9uZW50IH0gZnJvbSAnLi9zb3J0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBEcm9wZG93bk1vZHVsZSB9IGZyb20gJy4uL2Ryb3Bkb3duL2Ryb3Bkb3duLm1vZHVsZSc7XG5pbXBvcnQgeyBSYWRpb01vZHVsZSB9IGZyb20gJy4uL3JhZGlvL3JhZGlvLm1vZHVsZSc7XG5pbXBvcnQgeyBCdXR0b25Nb2R1bGUgfSBmcm9tICcuLi9idXR0b24vYnV0dG9uLm1vZHVsZSc7XG5cblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBOYXNDbGFzc01vZHVsZSxcbiAgICBEcm9wZG93bk1vZHVsZSxcbiAgICBSYWRpb01vZHVsZSxcbiAgICBCdXR0b25Nb2R1bGVcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbU29ydENvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtTb3J0Q29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBTb3J0TW9kdWxlIHsgfVxuIl19
@@ -0,0 +1,3 @@
1
+ export * from './spinner.component';
2
+ export * from './spinner.module';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NwaW5uZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcGlubmVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3NwaW5uZXIubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,57 @@
1
+ import { Component, Input, ViewEncapsulation, Renderer2 } from '@angular/core';
2
+ import { NasComponentBase } from '../../core';
3
+ /**
4
+ * @description
5
+ * Norwegian Spinner Component | Layout
6
+ */
7
+ export class SpinnerComponent extends NasComponentBase {
8
+ constructor(renderer) {
9
+ super('nas-spinner');
10
+ this.renderer = renderer;
11
+ }
12
+ /**
13
+ * @description
14
+ * Enables the spinner after 500ms. If false again within 500ms, the spinner will not be displayed at all.
15
+ * @example
16
+ * ```html
17
+ * <nas-spinner [enable]="enable"></nas-spinner>
18
+ * ```
19
+ */
20
+ get enable() {
21
+ return this.enableValue;
22
+ }
23
+ set enable(enable) {
24
+ this.setEnabled(enable);
25
+ }
26
+ setEnabled(enabled) {
27
+ if (enabled) {
28
+ this.loadingTimeout = setTimeout(() => {
29
+ this.enableValue = true;
30
+ this.renderer.addClass(document.body, 'block-scrolling');
31
+ }, 500);
32
+ }
33
+ else {
34
+ clearTimeout(this.loadingTimeout);
35
+ this.enableValue = false;
36
+ this.renderer.removeClass(document.body, 'block-scrolling');
37
+ }
38
+ }
39
+ }
40
+ SpinnerComponent.decorators = [
41
+ { type: Component, args: [{
42
+ selector: 'nas-spinner',
43
+ template: "<div [nasClass]=\"getClass('', [exists(overlay) && 'overlay', exists(small) && 'small'])\" *ngIf=\"enable\">\n <span [nasClass]=\"getClass('box')\">\n <span [nasClass]=\"getClass('border')\"></span>\n </span>\n <p *ngIf=\"text\" [nasClass]=\"getClass('text')\">{{text}}</p>\n</div>\n",
44
+ encapsulation: ViewEncapsulation.None,
45
+ styles: ["@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@-webkit-keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@-webkit-keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@-webkit-keyframes fade-out{to{opacity:0}}@keyframes fade-out{to{opacity:0}}@-webkit-keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@-webkit-keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@-webkit-keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-spinner{position:relative;text-align:center}.nas-spinner__box{position:relative;display:block;z-index:2;margin-left:auto;margin-right:auto;margin-bottom:8px;width:48px;height:48px;background-color:#d81939}.nas-spinner__border{position:absolute;display:block;top:52px;left:0;width:48px;height:8px;background-color:#003251;-webkit-animation:spinner ease 1s;animation:spinner ease 1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;transform-origin:left}.nas-spinner__text{font-family:\"Apercu\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:normal;position:relative;z-index:2;margin-top:24px}.nas-spinner--small .nas-spinner__box{width:24px;height:24px}.nas-spinner--small .nas-spinner__text{margin-top:16px}.nas-spinner--small .nas-spinner__border{position:absolute;top:27px;left:0;width:24px;height:3px;background-color:#003251;-webkit-animation:spinner ease 1s;animation:spinner ease 1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;transform-origin:left}.nas-spinner--overlay{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;top:0;left:0;width:100%;height:100%;z-index:40}.nas-spinner--overlay:before{content:\"\";display:block;position:fixed;top:0;left:0;width:100%;height:100%;color:transparent;background-color:#ffffffb3;-webkit-animation:fade-in .5s ease-out both;animation:fade-in .5s ease-out both}@-webkit-keyframes spinner{0%{transform:translate(0) scaleX(0)}50%{transform:translate(0) scaleX(1)}to{transform:translate(100%) scaleX(0)}}@keyframes spinner{0%{transform:translate(0) scaleX(0)}50%{transform:translate(0) scaleX(1)}to{transform:translate(100%) scaleX(0)}}\n"]
46
+ },] }
47
+ ];
48
+ SpinnerComponent.ctorParameters = () => [
49
+ { type: Renderer2 }
50
+ ];
51
+ SpinnerComponent.propDecorators = {
52
+ text: [{ type: Input }],
53
+ small: [{ type: Input }],
54
+ overlay: [{ type: Input }],
55
+ enable: [{ type: Input }]
56
+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m9keSwgJ2Jsb2NrLXNjcm9sbGluZycpO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -0,0 +1,14 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
4
+ import { SpinnerComponent } from './spinner.component';
5
+ export class SpinnerModule {
6
+ }
7
+ SpinnerModule.decorators = [
8
+ { type: NgModule, args: [{
9
+ declarations: [SpinnerComponent],
10
+ imports: [CommonModule, NasClassModule],
11
+ exports: [SpinnerComponent],
12
+ },] }
13
+ ];
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bpbm5lci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NwaW5uZXIvc3Bpbm5lci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBT3ZELE1BQU0sT0FBTyxhQUFhOzs7WUFMekIsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLGdCQUFnQixDQUFDO2dCQUNoQyxPQUFPLEVBQUUsQ0FBQyxZQUFZLEVBQUUsY0FBYyxDQUFDO2dCQUN2QyxPQUFPLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQzthQUM1QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBOYXNDbGFzc01vZHVsZSB9IGZyb20gJy4uLy4uL2NvcmUvZGlyZWN0aXZlcy9uYXMtY2xhc3MvbmFzLWNsYXNzLm1vZHVsZSc7XG5pbXBvcnQgeyBTcGlubmVyQ29tcG9uZW50IH0gZnJvbSAnLi9zcGlubmVyLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1NwaW5uZXJDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBOYXNDbGFzc01vZHVsZV0sXG4gIGV4cG9ydHM6IFtTcGlubmVyQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgU3Bpbm5lck1vZHVsZSB7fVxuIl19
@@ -0,0 +1,4 @@
1
+ export * from './subsidy-discount.component';
2
+ export * from './subsidy-discount.module';
3
+ export * from './models/subsidy-discount.model';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N1YnNpZHktZGlzY291bnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1YnNpZHktZGlzY291bnQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vc3Vic2lkeS1kaXNjb3VudC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9tb2RlbHMvc3Vic2lkeS1kaXNjb3VudC5tb2RlbCc7XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2lkeS1kaXNjb3VudC5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc3Vic2lkeS1kaXNjb3VudC9tb2RlbHMvc3Vic2lkeS1kaXNjb3VudC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTdWJzaWR5RGlzY291bnRNb2RlbCB7XG4gICAgY29kZTogc3RyaW5nO1xuICAgIGRpc3BsYXlOYW1lOiBzdHJpbmc7XG59XG4iXX0=
@@ -0,0 +1,101 @@
1
+ import { Component, Input, Output, EventEmitter, ViewEncapsulation, ViewChild } from '@angular/core';
2
+ import { NasComponentBase } from '../../core/base/nas-component.base';
3
+ /**
4
+ * @description
5
+ * Norwegian Subsidy Discount Component | Functional
6
+ */
7
+ export class SubsidyDiscountComponent extends NasComponentBase {
8
+ constructor() {
9
+ super('nas-subsidy-discount');
10
+ /**
11
+ * @description
12
+ * Set icon on component. Icon need to exist in medium size. Default value is 'family'
13
+ */
14
+ this.icon = 'family';
15
+ /**
16
+ * @description
17
+ * An even that is fired every time the info button is clicked.
18
+ */
19
+ this.infoButtonClick = new EventEmitter();
20
+ /**
21
+ * @description
22
+ * Fires when info button has a keydown event.
23
+ */
24
+ this.infoButtonKeydown = new EventEmitter();
25
+ /**
26
+ * @description
27
+ * An even that is fired every time the info button is clicked.
28
+ */
29
+ this.discountSelectChange = new EventEmitter();
30
+ }
31
+ /**
32
+ * @description
33
+ * Gets or sets the selected discount value.
34
+ */
35
+ get selectedDiscount() {
36
+ return this.selectedDiscountValue;
37
+ }
38
+ set selectedDiscount(discount) {
39
+ if (!discount || this.selectedDiscountValue && this.selectedDiscountValue.code === discount.code) {
40
+ return;
41
+ }
42
+ this.selectedDiscountValue = discount;
43
+ if (this.options) {
44
+ this.selectedOption = this.options.find(x => x.value === discount.code);
45
+ }
46
+ }
47
+ /**
48
+ * @description
49
+ * Gets or sets discounts value.
50
+ */
51
+ get discounts() {
52
+ return this.discountsValue;
53
+ }
54
+ set discounts(discounts) {
55
+ if (this.options) {
56
+ return;
57
+ }
58
+ this.options = discounts.map(x => {
59
+ const selectOption = {
60
+ title: x.displayName,
61
+ value: x.code
62
+ };
63
+ return selectOption;
64
+ });
65
+ this.discountsValue = discounts;
66
+ if (this.selectedDiscountValue) {
67
+ this.selectedOption = this.options.find(x => x.value === this.selectedDiscountValue.code);
68
+ }
69
+ }
70
+ onInfoButtonClick() {
71
+ this.infoButtonClick.emit();
72
+ }
73
+ onSelectedChange(option) {
74
+ const selectedDiscount = this.discounts.find(x => x.code === option.value);
75
+ this.selectedOption = option;
76
+ this.discountSelectChange.emit(selectedDiscount);
77
+ }
78
+ onInfoButtonKeydown(event) {
79
+ this.infoButtonKeydown.emit(event);
80
+ }
81
+ }
82
+ SubsidyDiscountComponent.decorators = [
83
+ { type: Component, args: [{
84
+ selector: 'nas-subsidy-discount',
85
+ template: "<div [nasClass]=\"getContainerClass()\">\n <div [nasClass]=\"getClass('box')\">\n <nas-icon [cssClass]=\"getClass('icon')\"\n [type]=\"'medium'\"\n [icon]=\"icon\"></nas-icon>\n <div [nasClass]=\"getClass('content')\">\n <div>\n <label [nasClass]=\"getClass('label')\">{{label}}</label>\n <nas-button #infoButton\n [cssClass]=\"getClass('info')\"\n [overrideBaseCssClass]=\"true\"\n [ariaLabel]=\"label\"\n (clickChange)=\"onInfoButtonClick()\"\n (keydown)=\"onInfoButtonKeydown($event)\"></nas-button>\n </div>\n <nas-select [spaceless]=\"true\"\n [fill]=\"true\"\n [cssClass]=\"getClass('select')\"\n [options]=\"options\"\n (selectedChange)=\"onSelectedChange($event)\"\n [selected]=\"selectedOption\"></nas-select>\n </div>\n </div>\n</div>",
86
+ encapsulation: ViewEncapsulation.None,
87
+ styles: ["@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@-webkit-keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@-webkit-keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@-webkit-keyframes fade-out{to{opacity:0}}@keyframes fade-out{to{opacity:0}}@-webkit-keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@-webkit-keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@-webkit-keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-subsidy-discount{margin-bottom:36px}@media (min-width: 640px){.nas-subsidy-discount{margin-top:16px}}@media (min-width: 1000px){.nas-subsidy-discount{margin-top:36px;margin-bottom:0}}.nas-subsidy-discount__box{display:flex;align-items:center;padding:16px;border:3px solid #c3c3c3;max-width:600px}@media (min-width: 1000px){.nas-subsidy-discount__box{display:inline-flex}}.nas-subsidy-discount__content{display:flex;flex-direction:column;align-items:flex-start}.nas-subsidy-discount__icon{margin-right:16px;display:none}@media (min-width: 640px){.nas-subsidy-discount__icon{display:block}}.nas-subsidy-discount__label{font-family:\"Apercu\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:bold;display:inline-block;margin-right:9px;margin-bottom:9px}.nas-subsidy-discount__select{margin-bottom:12px}.nas-subsidy-discount__info{margin-left:9px;width:21px;height:21px;border-radius:50%;background-color:#d8d8d8}.nas-subsidy-discount__info:before{content:\"?\";font-family:\"Apercu\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:bold}\n"]
88
+ },] }
89
+ ];
90
+ SubsidyDiscountComponent.ctorParameters = () => [];
91
+ SubsidyDiscountComponent.propDecorators = {
92
+ infoButton: [{ type: ViewChild, args: ['infoButton',] }],
93
+ label: [{ type: Input }],
94
+ icon: [{ type: Input }],
95
+ selectedDiscount: [{ type: Input }],
96
+ discounts: [{ type: Input }],
97
+ infoButtonClick: [{ type: Output }],
98
+ infoButtonKeydown: [{ type: Output }],
99
+ discountSelectChange: [{ type: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TtcbiAgfVxufVxuIl19
@@ -0,0 +1,23 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
4
+ import { ButtonModule } from '../button/button.module';
5
+ import { IconModule } from '../icon/icon.module';
6
+ import { SelectModule } from '../select/select.module';
7
+ import { SubsidyDiscountComponent } from './subsidy-discount.component';
8
+ export class SubsidyDiscountModule {
9
+ }
10
+ SubsidyDiscountModule.decorators = [
11
+ { type: NgModule, args: [{
12
+ imports: [
13
+ CommonModule,
14
+ SelectModule,
15
+ NasClassModule,
16
+ IconModule,
17
+ ButtonModule
18
+ ],
19
+ declarations: [SubsidyDiscountComponent],
20
+ exports: [SubsidyDiscountComponent]
21
+ },] }
22
+ ];
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2lkeS1kaXNjb3VudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N1YnNpZHktZGlzY291bnQvc3Vic2lkeS1kaXNjb3VudC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN2RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHlCQUF5QixDQUFDO0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V0dG9uTW9kdWxlXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1N1YnNpZHlEaXNjb3VudENvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtTdWJzaWR5RGlzY291bnRDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIFN1YnNpZHlEaXNjb3VudE1vZHVsZSB7IH1cbiJdfQ==
@@ -0,0 +1,3 @@
1
+ export * from './suggestions.component';
2
+ export * from './suggestions.module';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N1Z2dlc3Rpb25zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3VnZ2VzdGlvbnMuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vc3VnZ2VzdGlvbnMubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @license
3
+ * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
+ */
5
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
6
+ import { NasComponentBase } from '../../core/base/nas-component.base';
7
+ /**
8
+ * @description
9
+ * Norwegian Suggestions Component | Functional
10
+ */
11
+ export class SuggestionsComponent extends NasComponentBase {
12
+ constructor() {
13
+ super('nas-suggestions');
14
+ /**
15
+ * @description
16
+ * Fired when an airport is selected
17
+ */
18
+ this.airportSelect = new EventEmitter();
19
+ }
20
+ onAirportSelect(airport) {
21
+ if (!airport) {
22
+ return;
23
+ }
24
+ this.airportSelect.emit(airport);
25
+ }
26
+ }
27
+ SuggestionsComponent.decorators = [
28
+ { type: Component, args: [{
29
+ selector: 'nas-suggestions',
30
+ template: "<div *ngIf=\"suggestions\"\n [nasClass]=\"getClass()\">\n <span *ngFor=\"let suggestion of suggestions?.slice(0, 3); let index = index\">\n <nas-button link\n [tabindex]=\"-1\"\n (clickChange)=\"onAirportSelect(suggestion)\">\n {{suggestion.displayName}}\n </nas-button>\n <span *ngIf=\"index === 0 && suggestions.length > 2\">,&nbsp;</span>\n <span *ngIf=\"index === (suggestions.length - 2)\">&nbsp;{{orLabel}}&nbsp;</span>\n <span *ngIf=\"index === (suggestions.length - 1)\">?</span>\n </span>\n</div>",
31
+ styles: ["@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@-webkit-keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@-webkit-keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@-webkit-keyframes fade-out{to{opacity:0}}@keyframes fade-out{to{opacity:0}}@-webkit-keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@-webkit-keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@-webkit-keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-suggestions{margin:6px 0 12px;display:flex}::ng-deep .nas-suggestions .nas-button--link{color:#002a3a}\n"]
32
+ },] }
33
+ ];
34
+ SuggestionsComponent.ctorParameters = () => [];
35
+ SuggestionsComponent.propDecorators = {
36
+ suggestions: [{ type: Input }],
37
+ orLabel: [{ type: Input }],
38
+ airportSelect: [{ type: Output }]
39
+ };
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VnZ2VzdGlvbnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9zdWdnZXN0aW9ucy9zdWdnZXN0aW9ucy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBRUgsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sRUFDTCxNQUFNLGVBQWUsQ0FBQztBQUN6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core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
4
+ import { ButtonModule } from '../button/button.module';
5
+ import { SuggestionsComponent } from './suggestions.component';
6
+ export class SuggestionsModule {
7
+ }
8
+ SuggestionsModule.decorators = [
9
+ { type: NgModule, args: [{
10
+ imports: [
11
+ CommonModule,
12
+ NasClassModule,
13
+ ButtonModule,
14
+ ],
15
+ declarations: [SuggestionsComponent],
16
+ exports: [SuggestionsComponent]
17
+ },] }
18
+ ];
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VnZ2VzdGlvbnMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9zdWdnZXN0aW9ucy9zdWdnZXN0aW9ucy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN2RCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQVcvRCxNQUFNLE9BQU8saUJBQWlCOzs7WUFUN0IsUUFBUSxTQUFDO2dCQUNSLE9BQU8sRUFBRTtvQkFDUCxZQUFZO29CQUNaLGNBQWM7b0JBQ2QsWUFBWTtpQkFDYjtnQkFDRCxZQUFZLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQztnQkFDcEMsT0FBTyxFQUFFLENBQUMsb0JBQW9CLENBQUM7YUFDaEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IE5hc0NsYXNzTW9kdWxlIH0gZnJvbSAnLi4vLi4vY29yZS9kaXJlY3RpdmVzL25hcy1jbGFzcy9uYXMtY2xhc3MubW9kdWxlJztcbmltcG9ydCB7IEJ1dHRvbk1vZHVsZSB9IGZyb20gJy4uL2J1dHRvbi9idXR0b24ubW9kdWxlJztcbmltcG9ydCB7IFN1Z2dlc3Rpb25zQ29tcG9uZW50IH0gZnJvbSAnLi9zdWdnZXN0aW9ucy5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIE5hc0NsYXNzTW9kdWxlLFxuICAgIEJ1dHRvbk1vZHVsZSxcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbU3VnZ2VzdGlvbnNDb21wb25lbnRdLFxuICBleHBvcnRzOiBbU3VnZ2VzdGlvbnNDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIFN1Z2dlc3Rpb25zTW9kdWxlIHsgfVxuIl19
@@ -0,0 +1,4 @@
1
+ export * from './tab-group.component';
2
+ export * from './tab-group.module';
3
+ export * from './tab/tab.component';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3RhYi1ncm91cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdGFiLWdyb3VwLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3RhYi1ncm91cC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi90YWIvdGFiLmNvbXBvbmVudCc7XG4iXX0=