@norwegian/core-components 6.60.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/assets/fonts/NorwegianDisplay-Bold.ttf +0 -0
  2. package/assets/fonts/NorwegianDisplay-Regular.ttf +0 -0
  3. package/assets/fonts/NorwegianDisplayPro-Bold.otf +0 -0
  4. package/assets/fonts/NorwegianDisplayPro-Bold.woff +0 -0
  5. package/assets/fonts/NorwegianDisplayPro-Bold.woff2 +0 -0
  6. package/assets/fonts/NorwegianDisplayPro-Regular.otf +0 -0
  7. package/assets/fonts/NorwegianDisplayPro-Regular.woff +0 -0
  8. package/assets/fonts/NorwegianDisplayPro-Regular.woff2 +0 -0
  9. package/assets/fonts/NorwegianText-Bold.ttf +0 -0
  10. package/assets/fonts/NorwegianText-BoldItalic.ttf +0 -0
  11. package/assets/fonts/NorwegianText-Regular.ttf +0 -0
  12. package/assets/fonts/NorwegianText-RegularItalic.ttf +0 -0
  13. package/assets/fonts/NorwegianTextPro-Bold.otf +0 -0
  14. package/assets/fonts/NorwegianTextPro-Bold.woff +0 -0
  15. package/assets/fonts/NorwegianTextPro-Bold.woff2 +0 -0
  16. package/assets/fonts/NorwegianTextPro-BoldItalic.otf +0 -0
  17. package/assets/fonts/NorwegianTextPro-BoldItalic.woff +0 -0
  18. package/assets/fonts/NorwegianTextPro-BoldItalic.woff2 +0 -0
  19. package/assets/fonts/NorwegianTextPro-Regular.otf +0 -0
  20. package/assets/fonts/NorwegianTextPro-Regular.woff +0 -0
  21. package/assets/fonts/NorwegianTextPro-Regular.woff2 +0 -0
  22. package/assets/fonts/NorwegianTextPro-RegularItalic.otf +0 -0
  23. package/assets/fonts/NorwegianTextPro-RegularItalic.woff +0 -0
  24. package/assets/fonts/NorwegianTextPro-RegularItalic.woff2 +0 -0
  25. package/esm2022/lib/components/accordion/accordion.component.mjs +3 -3
  26. package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +10 -7
  27. package/esm2022/lib/components/airport-select/airport-select.component.mjs +43 -12
  28. package/esm2022/lib/components/airport-select/airport-select.module.mjs +4 -4
  29. package/esm2022/lib/components/airport-select/index.mjs +1 -2
  30. package/esm2022/lib/components/airport-select/models/results-labels.model.mjs +1 -1
  31. package/esm2022/lib/components/airport-select/services/airport-select-dropdown.service.mjs +2 -2
  32. package/esm2022/lib/components/airport-select/services/airport-select.service.mjs +3 -3
  33. package/esm2022/lib/components/alert/alert.component.mjs +5 -5
  34. package/esm2022/lib/components/alert/alert.module.mjs +4 -4
  35. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +25 -5
  36. package/esm2022/lib/components/autocomplete/autocomplete.module.mjs +4 -4
  37. package/esm2022/lib/components/autocomplete/index.mjs +1 -2
  38. package/esm2022/lib/components/box/box.component.mjs +2 -2
  39. package/esm2022/lib/components/button/button.component.mjs +16 -11
  40. package/esm2022/lib/components/button/button.module.mjs +1 -1
  41. package/esm2022/lib/components/campaign-header/campaign-header.component.mjs +2 -2
  42. package/esm2022/lib/components/checkbox/checkbox.component.mjs +4 -4
  43. package/esm2022/lib/components/checkbox/checkbox.module.mjs +1 -1
  44. package/esm2022/lib/components/continue/continue.component.mjs +2 -2
  45. package/esm2022/lib/components/continue/continue.module.mjs +1 -1
  46. package/esm2022/lib/components/cover/cover.component.mjs +2 -2
  47. package/esm2022/lib/components/cover/cover.module.mjs +1 -1
  48. package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +29 -5
  49. package/esm2022/lib/components/datepicker/calendar/models/day.model.mjs +1 -1
  50. package/esm2022/lib/components/datepicker/calendar/models/select-option.model.mjs +1 -1
  51. package/esm2022/lib/components/datepicker/calendar/models/week.model.mjs +1 -1
  52. package/esm2022/lib/components/datepicker/datepicker.component.mjs +25 -11
  53. package/esm2022/lib/components/datepicker/datepicker.module.mjs +4 -4
  54. package/esm2022/lib/components/datepicker/index.mjs +2 -1
  55. package/esm2022/lib/components/datepicker/services/calendar.service.mjs +7 -5
  56. package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +38 -11
  57. package/esm2022/lib/components/datepicker-combo/datepicker-combo.module.mjs +14 -6
  58. package/esm2022/lib/components/divider/divider.component.mjs +4 -4
  59. package/esm2022/lib/components/divider/divider.module.mjs +6 -6
  60. package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -2
  61. package/esm2022/lib/components/filter/filter.component.mjs +139 -72
  62. package/esm2022/lib/components/filter/filter.module.mjs +23 -11
  63. package/esm2022/lib/components/filter/index.mjs +2 -1
  64. package/esm2022/lib/components/icon-list/icon-list.component.mjs +2 -2
  65. package/esm2022/lib/components/index.mjs +13 -15
  66. package/esm2022/lib/components/info/info.component.mjs +2 -2
  67. package/esm2022/lib/components/input/input.component.mjs +61 -14
  68. package/esm2022/lib/components/input/input.module.mjs +2 -2
  69. package/esm2022/lib/components/journey/journey.component.mjs +2 -2
  70. package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +2 -2
  71. package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +2 -2
  72. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +2 -2
  73. package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +2 -2
  74. package/esm2022/lib/components/list/list.component.mjs +3 -3
  75. package/esm2022/lib/components/micro-button/micro-button.component.mjs +2 -2
  76. package/esm2022/lib/components/modal/modal.component.mjs +2 -2
  77. package/esm2022/lib/components/number-field/number-field.component.mjs +11 -4
  78. package/esm2022/lib/components/number-field/number-field.module.mjs +1 -1
  79. package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -2
  80. package/esm2022/lib/components/page-header/page-header.component.mjs +2 -2
  81. package/esm2022/lib/components/page-header/page-header.module.mjs +2 -6
  82. package/esm2022/lib/components/page-header/search/search.component.mjs +2 -2
  83. package/esm2022/lib/components/page-header/wallet/wallet.component.mjs +9 -6
  84. package/esm2022/lib/components/passenger-select/index.mjs +3 -1
  85. package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
  86. package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +5 -5
  87. package/esm2022/lib/components/passenger-select/passenger-select.module.mjs +14 -6
  88. package/esm2022/lib/components/phone-number/phone-number.component.mjs +2 -2
  89. package/esm2022/lib/components/radio/radio.component.mjs +4 -4
  90. package/esm2022/lib/components/ribbon-banner/ribbon-banner.component.mjs +2 -2
  91. package/esm2022/lib/components/select/select.component.mjs +2 -2
  92. package/esm2022/lib/components/simple-list/simple-list.component.mjs +2 -2
  93. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +14 -14
  94. package/esm2022/lib/components/slide-toggle/slide-toggle.module.mjs +1 -1
  95. package/esm2022/lib/components/slider/slider.component.mjs +4 -4
  96. package/esm2022/lib/components/sort/sort.component.mjs +2 -2
  97. package/esm2022/lib/components/sort/sort.module.mjs +1 -1
  98. package/esm2022/lib/components/spinner/spinner.component.mjs +2 -2
  99. package/esm2022/lib/components/status-box/status-box.component.mjs +5 -6
  100. package/esm2022/lib/components/status-box/status-box.module.mjs +5 -5
  101. package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +2 -2
  102. package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -3
  103. package/esm2022/lib/components/tab-group/tab/tab.component.mjs +2 -2
  104. package/esm2022/lib/components/table/table.component.mjs +2 -2
  105. package/esm2022/lib/components/tag/tag.component.mjs +2 -2
  106. package/esm2022/lib/components/textarea/textarea.component.mjs +2 -2
  107. package/esm2022/lib/components/toggle/toggle.component.mjs +2 -2
  108. package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +2 -2
  109. package/esm2022/lib/core/directives/nas-class/nas-class.module.mjs +1 -1
  110. package/fesm2022/norwegian-core-components.mjs +4603 -10823
  111. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  112. package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +3 -2
  113. package/lib/components/airport-select/airport-select.component.d.ts +21 -6
  114. package/lib/components/airport-select/index.d.ts +0 -1
  115. package/lib/components/alert/alert.module.d.ts +4 -4
  116. package/lib/components/autocomplete/autocomplete.component.d.ts +8 -4
  117. package/lib/components/autocomplete/index.d.ts +0 -1
  118. package/lib/components/button/button.component.d.ts +35 -26
  119. package/lib/components/checkbox/checkbox.component.d.ts +1 -1
  120. package/lib/components/datepicker/calendar/calendar.component.d.ts +11 -1
  121. package/lib/components/datepicker/calendar/models/day.model.d.ts +1 -0
  122. package/lib/components/datepicker/datepicker.component.d.ts +20 -2
  123. package/lib/components/datepicker/index.d.ts +1 -0
  124. package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +26 -3
  125. package/lib/components/divider/divider.module.d.ts +3 -3
  126. package/lib/components/filter/filter.component.d.ts +80 -24
  127. package/lib/components/filter/filter.module.d.ts +10 -7
  128. package/lib/components/filter/index.d.ts +1 -0
  129. package/lib/components/index.d.ts +12 -14
  130. package/lib/components/input/input.component.d.ts +21 -17
  131. package/lib/components/list/list.component.d.ts +1 -1
  132. package/lib/components/number-field/number-field.component.d.ts +10 -2
  133. package/lib/components/page-header/page-header.module.d.ts +2 -3
  134. package/lib/components/page-header/wallet/wallet.component.d.ts +1 -0
  135. package/lib/components/passenger-select/index.d.ts +2 -0
  136. package/lib/components/passenger-select/models/passengers.model.d.ts +1 -0
  137. package/lib/components/passenger-select/passenger-select.component.d.ts +2 -2
  138. package/lib/components/radio/radio.component.d.ts +1 -1
  139. package/lib/components/slide-toggle/slide-toggle.component.d.ts +9 -9
  140. package/lib/components/slider/slider.component.d.ts +3 -3
  141. package/lib/components/status-box/status-box.component.d.ts +3 -3
  142. package/lib/components/status-box/status-box.module.d.ts +2 -2
  143. package/package.json +1 -1
  144. package/styles/1__settings/_colors.scss +107 -53
  145. package/styles/1__settings/_mixins.scss +78 -30
  146. package/styles/1__settings/_type.scss +17 -43
  147. package/styles/2__generic/_fonts.scss +16 -28
  148. package/styles/3__base/_body.scss +3 -3
  149. package/styles/3__base/_heading.scss +28 -20
  150. package/styles/3__base/_hr.scss +4 -4
  151. package/styles/3__base/_input.scss +3 -3
  152. package/styles/3__base/_link.scss +17 -17
  153. package/styles/3__base/_table.scss +9 -5
  154. package/styles/3__base/_type.scss +4 -4
  155. package/assets/documentation/autocomplete-new/autocomplete-new.md +0 -1
  156. package/assets/documentation/datepicker/calendar/calendar.md +0 -3
  157. package/assets/documentation/filter-new/filter-new.md +0 -0
  158. package/assets/documentation/number-field-new/number-field-new.md +0 -1
  159. package/assets/documentation/page-header-old/page-header-old.md +0 -1
  160. package/assets/documentation/weather-icon/weather-icon.md +0 -1
  161. package/assets/fonts/apercu_bold_italic_pro-web.eot +0 -0
  162. package/assets/fonts/apercu_bold_italic_pro-web.svg +0 -12420
  163. package/assets/fonts/apercu_bold_italic_pro-web.ttf +0 -0
  164. package/assets/fonts/apercu_bold_italic_pro-web.woff +0 -0
  165. package/assets/fonts/apercu_bold_italic_pro-web.woff2 +0 -0
  166. package/assets/fonts/apercu_bold_italic_pro.otf +0 -0
  167. package/assets/fonts/apercu_bold_pro-web.eot +0 -0
  168. package/assets/fonts/apercu_bold_pro-web.svg +0 -10193
  169. package/assets/fonts/apercu_bold_pro-web.ttf +0 -0
  170. package/assets/fonts/apercu_bold_pro-web.woff +0 -0
  171. package/assets/fonts/apercu_bold_pro-web.woff2 +0 -0
  172. package/assets/fonts/apercu_bold_pro.otf +0 -0
  173. package/assets/fonts/apercu_light_italic_pro-web.eot +0 -0
  174. package/assets/fonts/apercu_light_italic_pro-web.svg +0 -12831
  175. package/assets/fonts/apercu_light_italic_pro-web.ttf +0 -0
  176. package/assets/fonts/apercu_light_italic_pro-web.woff +0 -0
  177. package/assets/fonts/apercu_light_italic_pro-web.woff2 +0 -0
  178. package/assets/fonts/apercu_light_pro-web.eot +0 -0
  179. package/assets/fonts/apercu_light_pro-web.svg +0 -9704
  180. package/assets/fonts/apercu_light_pro-web.ttf +0 -0
  181. package/assets/fonts/apercu_light_pro-web.woff +0 -0
  182. package/assets/fonts/apercu_light_pro-web.woff2 +0 -0
  183. package/assets/fonts/apercu_medium_italic_pro-web.eot +0 -0
  184. package/assets/fonts/apercu_medium_italic_pro-web.svg +0 -12354
  185. package/assets/fonts/apercu_medium_italic_pro-web.ttf +0 -0
  186. package/assets/fonts/apercu_medium_italic_pro-web.woff +0 -0
  187. package/assets/fonts/apercu_medium_italic_pro-web.woff2 +0 -0
  188. package/assets/fonts/apercu_medium_italic_pro.otf +0 -0
  189. package/assets/fonts/apercu_medium_pro-web.eot +0 -0
  190. package/assets/fonts/apercu_medium_pro-web.svg +0 -12254
  191. package/assets/fonts/apercu_medium_pro-web.ttf +0 -0
  192. package/assets/fonts/apercu_medium_pro-web.woff +0 -0
  193. package/assets/fonts/apercu_medium_pro-web.woff2 +0 -0
  194. package/assets/fonts/apercu_medium_pro.otf +0 -0
  195. package/assets/fonts/apercu_mono_pro-web.eot +0 -0
  196. package/assets/fonts/apercu_mono_pro-web.svg +0 -538
  197. package/assets/fonts/apercu_mono_pro-web.ttf +0 -0
  198. package/assets/fonts/apercu_mono_pro-web.woff +0 -0
  199. package/assets/fonts/apercu_mono_pro-web.woff2 +0 -0
  200. package/assets/fonts/apercu_regular_italic_pro-web.eot +0 -0
  201. package/assets/fonts/apercu_regular_italic_pro-web.svg +0 -13059
  202. package/assets/fonts/apercu_regular_italic_pro-web.ttf +0 -0
  203. package/assets/fonts/apercu_regular_italic_pro-web.woff +0 -0
  204. package/assets/fonts/apercu_regular_italic_pro-web.woff2 +0 -0
  205. package/assets/fonts/apercu_regular_italic_pro.otf +0 -0
  206. package/assets/fonts/apercu_regular_pro-web.eot +0 -0
  207. package/assets/fonts/apercu_regular_pro-web.svg +0 -11356
  208. package/assets/fonts/apercu_regular_pro-web.ttf +0 -0
  209. package/assets/fonts/apercu_regular_pro-web.woff +0 -0
  210. package/assets/fonts/apercu_regular_pro-web.woff2 +0 -0
  211. package/assets/fonts/apercu_regular_pro.otf +0 -0
  212. package/esm2022/lib/components/airport-select-new/airport-select-dropdown/airport-select-dropdown.component.mjs +0 -611
  213. package/esm2022/lib/components/airport-select-new/airport-select-new.component.mjs +0 -477
  214. package/esm2022/lib/components/airport-select-new/airport-select-new.module.mjs +0 -42
  215. package/esm2022/lib/components/airport-select-new/index.mjs +0 -4
  216. package/esm2022/lib/components/airport-select-new/models/airport.model.mjs +0 -2
  217. package/esm2022/lib/components/airport-select-new/models/results-labels.model.mjs +0 -3
  218. package/esm2022/lib/components/airport-select-new/services/airport-select-dropdown.service.mjs +0 -35
  219. package/esm2022/lib/components/airport-select-new/services/airport-select.service.mjs +0 -38
  220. package/esm2022/lib/components/autocomplete-new/autocomplete-new.component.mjs +0 -309
  221. package/esm2022/lib/components/autocomplete-new/autocomplete-new.module.mjs +0 -43
  222. package/esm2022/lib/components/autocomplete-new/index.mjs +0 -3
  223. package/esm2022/lib/components/autocomplete-new/models/autocomplete-new.model.mjs +0 -2
  224. package/esm2022/lib/components/button-new/button-new.component.mjs +0 -176
  225. package/esm2022/lib/components/button-new/button-new.module.mjs +0 -21
  226. package/esm2022/lib/components/button-new/index.mjs +0 -3
  227. package/esm2022/lib/components/checkbox-new/checkbox-new.component.mjs +0 -150
  228. package/esm2022/lib/components/checkbox-new/checkbox-new.module.mjs +0 -20
  229. package/esm2022/lib/components/checkbox-new/index.mjs +0 -3
  230. package/esm2022/lib/components/datepicker-combo-new/datepicker-combo-new.component.mjs +0 -397
  231. package/esm2022/lib/components/datepicker-combo-new/datepicker-combo-new.module.mjs +0 -31
  232. package/esm2022/lib/components/datepicker-combo-new/index.mjs +0 -3
  233. package/esm2022/lib/components/datepicker-new/calendar-new/calendar-date.model.mjs +0 -2
  234. package/esm2022/lib/components/datepicker-new/calendar-new/calendar-new.component.mjs +0 -594
  235. package/esm2022/lib/components/datepicker-new/calendar-new/enums/week-start.enum.mjs +0 -6
  236. package/esm2022/lib/components/datepicker-new/calendar-new/models/day.model.mjs +0 -2
  237. package/esm2022/lib/components/datepicker-new/calendar-new/models/select-option.model.mjs +0 -2
  238. package/esm2022/lib/components/datepicker-new/calendar-new/models/week.model.mjs +0 -2
  239. package/esm2022/lib/components/datepicker-new/datepicker-new.component.mjs +0 -572
  240. package/esm2022/lib/components/datepicker-new/datepicker-new.module.mjs +0 -55
  241. package/esm2022/lib/components/datepicker-new/index.mjs +0 -5
  242. package/esm2022/lib/components/datepicker-new/services/calendar.service.mjs +0 -215
  243. package/esm2022/lib/components/filter-new/enums/trip-type.enum.mjs +0 -8
  244. package/esm2022/lib/components/filter-new/filter-new.component.mjs +0 -1349
  245. package/esm2022/lib/components/filter-new/filter-new.module.mjs +0 -105
  246. package/esm2022/lib/components/filter-new/index.mjs +0 -4
  247. package/esm2022/lib/components/input-text/index.mjs +0 -3
  248. package/esm2022/lib/components/input-text/input-text.component.mjs +0 -231
  249. package/esm2022/lib/components/input-text/input-text.module.mjs +0 -35
  250. package/esm2022/lib/components/number-field-new/index.mjs +0 -3
  251. package/esm2022/lib/components/number-field-new/models/number-field-new.model.mjs +0 -2
  252. package/esm2022/lib/components/number-field-new/number-field-new.component.mjs +0 -155
  253. package/esm2022/lib/components/number-field-new/number-field-new.module.mjs +0 -39
  254. package/esm2022/lib/components/page-header-old/index.mjs +0 -5
  255. package/esm2022/lib/components/page-header-old/old-hamburger/old-hamburger.component.mjs +0 -22
  256. package/esm2022/lib/components/page-header-old/old-search/old-search.component.mjs +0 -49
  257. package/esm2022/lib/components/page-header-old/page-header-old.component.mjs +0 -160
  258. package/esm2022/lib/components/page-header-old/page-header-old.module.mjs +0 -44
  259. package/esm2022/lib/components/passenger-select-new/enums/passenger-type.enum.mjs +0 -9
  260. package/esm2022/lib/components/passenger-select-new/index.mjs +0 -5
  261. package/esm2022/lib/components/passenger-select-new/models/passengers.model.mjs +0 -2
  262. package/esm2022/lib/components/passenger-select-new/passenger-select-new.component.mjs +0 -423
  263. package/esm2022/lib/components/passenger-select-new/passenger-select-new.module.mjs +0 -28
  264. package/esm2022/lib/components/radio-new/index.mjs +0 -3
  265. package/esm2022/lib/components/radio-new/radio-new.component.mjs +0 -100
  266. package/esm2022/lib/components/radio-new/radio-new.module.mjs +0 -20
  267. package/esm2022/lib/components/slide-toggle-new/index.mjs +0 -3
  268. package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.component.mjs +0 -115
  269. package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.module.mjs +0 -20
  270. package/esm2022/lib/components/weather-icon/index.mjs +0 -3
  271. package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +0 -61
  272. package/esm2022/lib/components/weather-icon/weather-icon.module.mjs +0 -19
  273. package/lib/components/airport-select-new/airport-select-dropdown/airport-select-dropdown.component.d.ts +0 -97
  274. package/lib/components/airport-select-new/airport-select-new.component.d.ts +0 -302
  275. package/lib/components/airport-select-new/airport-select-new.module.d.ts +0 -13
  276. package/lib/components/airport-select-new/index.d.ts +0 -2
  277. package/lib/components/airport-select-new/models/airport.model.d.ts +0 -11
  278. package/lib/components/airport-select-new/models/results-labels.model.d.ts +0 -7
  279. package/lib/components/airport-select-new/services/airport-select-dropdown.service.d.ts +0 -10
  280. package/lib/components/airport-select-new/services/airport-select.service.d.ts +0 -8
  281. package/lib/components/autocomplete-new/autocomplete-new.component.d.ts +0 -135
  282. package/lib/components/autocomplete-new/autocomplete-new.module.d.ts +0 -13
  283. package/lib/components/autocomplete-new/index.d.ts +0 -2
  284. package/lib/components/autocomplete-new/models/autocomplete-new.model.d.ts +0 -5
  285. package/lib/components/button-new/button-new.component.d.ts +0 -276
  286. package/lib/components/button-new/button-new.module.d.ts +0 -11
  287. package/lib/components/button-new/index.d.ts +0 -2
  288. package/lib/components/checkbox-new/checkbox-new.component.d.ts +0 -138
  289. package/lib/components/checkbox-new/checkbox-new.module.d.ts +0 -10
  290. package/lib/components/checkbox-new/index.d.ts +0 -2
  291. package/lib/components/datepicker-combo-new/datepicker-combo-new.component.d.ts +0 -309
  292. package/lib/components/datepicker-combo-new/datepicker-combo-new.module.d.ts +0 -10
  293. package/lib/components/datepicker-combo-new/index.d.ts +0 -2
  294. package/lib/components/datepicker-new/calendar-new/calendar-date.model.d.ts +0 -5
  295. package/lib/components/datepicker-new/calendar-new/calendar-new.component.d.ts +0 -159
  296. package/lib/components/datepicker-new/calendar-new/enums/week-start.enum.d.ts +0 -4
  297. package/lib/components/datepicker-new/calendar-new/models/day.model.d.ts +0 -10
  298. package/lib/components/datepicker-new/calendar-new/models/select-option.model.d.ts +0 -4
  299. package/lib/components/datepicker-new/calendar-new/models/week.model.d.ts +0 -5
  300. package/lib/components/datepicker-new/datepicker-new.component.d.ts +0 -278
  301. package/lib/components/datepicker-new/datepicker-new.module.d.ts +0 -16
  302. package/lib/components/datepicker-new/index.d.ts +0 -4
  303. package/lib/components/datepicker-new/services/calendar.service.d.ts +0 -27
  304. package/lib/components/filter-new/enums/trip-type.enum.d.ts +0 -6
  305. package/lib/components/filter-new/filter-new.component.d.ts +0 -838
  306. package/lib/components/filter-new/filter-new.module.d.ts +0 -28
  307. package/lib/components/filter-new/index.d.ts +0 -3
  308. package/lib/components/input-text/index.d.ts +0 -2
  309. package/lib/components/input-text/input-text.component.d.ts +0 -203
  310. package/lib/components/input-text/input-text.module.d.ts +0 -11
  311. package/lib/components/number-field-new/index.d.ts +0 -2
  312. package/lib/components/number-field-new/models/number-field-new.model.d.ts +0 -5
  313. package/lib/components/number-field-new/number-field-new.component.d.ts +0 -116
  314. package/lib/components/number-field-new/number-field-new.module.d.ts +0 -12
  315. package/lib/components/page-header-old/index.d.ts +0 -4
  316. package/lib/components/page-header-old/old-hamburger/old-hamburger.component.d.ts +0 -12
  317. package/lib/components/page-header-old/old-search/old-search.component.d.ts +0 -26
  318. package/lib/components/page-header-old/page-header-old.component.d.ts +0 -112
  319. package/lib/components/page-header-old/page-header-old.module.d.ts +0 -14
  320. package/lib/components/passenger-select-new/enums/passenger-type.enum.d.ts +0 -7
  321. package/lib/components/passenger-select-new/index.d.ts +0 -4
  322. package/lib/components/passenger-select-new/models/passengers.model.d.ts +0 -10
  323. package/lib/components/passenger-select-new/passenger-select-new.component.d.ts +0 -141
  324. package/lib/components/passenger-select-new/passenger-select-new.module.d.ts +0 -10
  325. package/lib/components/radio-new/index.d.ts +0 -2
  326. package/lib/components/radio-new/radio-new.component.d.ts +0 -135
  327. package/lib/components/radio-new/radio-new.module.d.ts +0 -10
  328. package/lib/components/slide-toggle-new/index.d.ts +0 -2
  329. package/lib/components/slide-toggle-new/slide-toggle-new.component.d.ts +0 -70
  330. package/lib/components/slide-toggle-new/slide-toggle-new.module.d.ts +0 -10
  331. package/lib/components/weather-icon/index.d.ts +0 -2
  332. package/lib/components/weather-icon/weather-icon.component.d.ts +0 -60
  333. package/lib/components/weather-icon/weather-icon.module.d.ts +0 -9
@@ -1,97 +0,0 @@
1
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { NasComponentBase } from '../../../core/base/nas-component.base';
4
- import { GeolocationService } from '../../../core/services/geolocation/geolocation.service';
5
- import { AirportModel } from '../models/airport.model';
6
- import { ResultsLabelsModel } from '../models/results-labels.model';
7
- import { AirportSelectDropdownService } from '../services/airport-select-dropdown.service';
8
- import { AirportSelectService } from '../services/airport-select.service';
9
- import { GeolocationState } from '../../../core/services/geolocation/geolocation-state.enum';
10
- import * as i0 from "@angular/core";
11
- export declare class AirportSelectDropdownComponent extends NasComponentBase implements OnInit {
12
- private document;
13
- private selectService;
14
- private airportSelectDropdownService;
15
- private geolocationService;
16
- airportValue: AirportModel;
17
- airportsValue: Array<AirportModel>;
18
- focusedAirportIndex: number;
19
- focusedLatestSearchesIndex: number;
20
- focusedClosestAirportIndex: number;
21
- focusedClosestAirportCode: string;
22
- focusedAirportCode: string;
23
- focusedLatestSearchesAirportCode: string;
24
- filteredAirports: Array<AirportModel>;
25
- displayAllAirportsLabel: boolean;
26
- openValue: boolean;
27
- focusOnGeolocation: boolean;
28
- geolocationState: GeolocationState;
29
- input: ElementRef;
30
- results: ElementRef;
31
- displayLatestSearches?: boolean;
32
- displayClosestAirports?: boolean;
33
- latestSearches: Array<AirportModel>;
34
- resultsLabels: ResultsLabelsModel;
35
- airportSelectLabel: string;
36
- airportSelectPlaceholder: string;
37
- airportSelectIconModifier: string;
38
- keepSelection: boolean;
39
- nasFormControlName: string;
40
- nasFormGroup: FormGroup;
41
- enableGeolocation?: boolean;
42
- ariaLabelClear: string;
43
- ariaLabelBackdrop: string;
44
- isValid: boolean;
45
- invalidText: string;
46
- get closestAirports(): Array<AirportModel>;
47
- set closestAirports(airports: Array<AirportModel>);
48
- get airport(): AirportModel;
49
- set airport(airport: AirportModel);
50
- get open(): boolean;
51
- set open(value: boolean);
52
- get airports(): Array<AirportModel>;
53
- set airports(airports: Array<AirportModel>);
54
- selected: EventEmitter<AirportModel>;
55
- openChange: EventEmitter<boolean>;
56
- focusOnNext: EventEmitter<KeyboardEvent>;
57
- focusOnPrevious: EventEmitter<any>;
58
- positionChange: EventEmitter<GeolocationPosition>;
59
- clearedSelection: EventEmitter<void>;
60
- get selectedModel(): string;
61
- set selectedModel(model: string);
62
- get resultsId(): string;
63
- get labelId(): string;
64
- get inputId(): string;
65
- get geolocationIcon(): string;
66
- private lastSelectedModel;
67
- private selectedModelValue;
68
- private inputSelectionTimeout;
69
- private closestAirportsValue;
70
- private componentId;
71
- constructor(document: any, selectService: AirportSelectService, airportSelectDropdownService: AirportSelectDropdownService, geolocationService: GeolocationService);
72
- ngOnInit(): void;
73
- getAllAirportsAirportId(airportCode: string): string;
74
- getClosestAirportsAirportId(airportCode: string): string;
75
- getLatestSearchesAirportId(airportCode: string): string;
76
- updateCurrentPosition(): void;
77
- setOpen(): void;
78
- onGeolocationHover(hover: boolean): void;
79
- blur(): void;
80
- filter(): void;
81
- clearSelected(event: Event): void;
82
- focusDown(): void;
83
- focusUp(): void;
84
- setSelected(airport: AirportModel): void;
85
- onKeyDown(event: KeyboardEvent): void;
86
- private resetFilter;
87
- private updateSelected;
88
- private focusDownLatestSearches;
89
- private focusDownClosestAirports;
90
- private focusDownAirports;
91
- private focusUpAirports;
92
- private autoScroll;
93
- private focusUpLatestSearches;
94
- private focusUpClosestAirports;
95
- static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectDropdownComponent, never>;
96
- static ɵcmp: i0.ɵɵComponentDeclaration<AirportSelectDropdownComponent, "nas-airport-select-dropdown", never, { "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "latestSearches": { "alias": "latestSearches"; "required": false; }; "resultsLabels": { "alias": "resultsLabels"; "required": false; }; "airportSelectLabel": { "alias": "airportSelectLabel"; "required": false; }; "airportSelectPlaceholder": { "alias": "airportSelectPlaceholder"; "required": false; }; "airportSelectIconModifier": { "alias": "airportSelectIconModifier"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "enableGeolocation": { "alias": "enableGeolocation"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "invalidText": { "alias": "invalidText"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "airport": { "alias": "airport"; "required": false; }; "open": { "alias": "open"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; }, { "selected": "selected"; "openChange": "openChange"; "focusOnNext": "focusOnNext"; "focusOnPrevious": "focusOnPrevious"; "positionChange": "positionChange"; "clearedSelection": "clearedSelection"; }, never, never, false, never>;
97
- }
@@ -1,302 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { AirportModel } from './models/airport.model';
6
- import { ClassModel } from '../../core/models/class.model';
7
- import { EventEmitter, ElementRef, OnInit, AfterViewInit } from '@angular/core';
8
- import { FormGroup } from '@angular/forms';
9
- import { NasComponentBase } from '../../core';
10
- import { ResultsLabelsModel } from './models/results-labels.model';
11
- import { AirportSelectDropdownComponent } from './airport-select-dropdown/airport-select-dropdown.component';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * @description
15
- * Norwegian Airport Select Component | New design | Beta
16
- */
17
- export declare class AirportSelectNewComponent extends NasComponentBase implements OnInit, AfterViewInit {
18
- airportsOrigin: Array<AirportModel>;
19
- airportsDestination: AirportModel[];
20
- currentLatestSearchesDestination: Array<AirportModel>;
21
- closestAirportsDestination: Array<AirportModel>;
22
- focusDestination: boolean;
23
- textSelectOriginFirst: string;
24
- focusedLatestSearchesAirportCodeDestination: string;
25
- focusedAirportCodeDestination: string;
26
- focusedLatestSearchesIndexDestination: number;
27
- focusedAirportIndexDestination: number;
28
- switchType: string;
29
- isDestinationValid: boolean;
30
- inlineFlex: boolean;
31
- resultsLabels: ResultsLabelsModel;
32
- originOpen: boolean;
33
- destinationOpen: boolean;
34
- cleared: boolean;
35
- container: ElementRef;
36
- switchButton: ElementRef;
37
- airportSelectDropdownOrigin: ElementRef;
38
- airportSelectDropdownDestination: AirportSelectDropdownComponent;
39
- origin: AirportModel;
40
- destination: AirportModel;
41
- /**
42
- * @property Input
43
- * @required
44
- * @description
45
- * All airports that will be populated into the dropdown lists.
46
- */
47
- airports: Array<AirportModel>;
48
- /**
49
- * @property Input
50
- * @description
51
- * A record containing keys with all airport codes with corresponding array of airport codes connected to the key.
52
- */
53
- airportRelations: Record<string, Array<string>>;
54
- /**
55
- * @property Input
56
- * @description
57
- * An array of origin airports that the user has allready search for.
58
- */
59
- latestSearchesOrigin: Array<AirportModel>;
60
- /**
61
- * @property Input
62
- * @description
63
- * An array of destination airports that the user has allready search for.
64
- */
65
- latestSearchesDestination: Array<AirportModel>;
66
- /**
67
- * @property Input
68
- * @description
69
- * An array of airports that are close to the user.
70
- */
71
- closestAirports: Array<AirportModel>;
72
- /**
73
- * @property Input
74
- * @description
75
- * A list of airports that should be displayed in the origin dropdown.
76
- * If not included, all airports will be displayed.
77
- */
78
- allowedOriginAiports: Array<AirportModel>;
79
- /**
80
- * @property Input
81
- * @description
82
- * An array of airports that are restricted for destination airports. It will default to airports if not set.
83
- */
84
- allowedDestinationAirports: Array<AirportModel>;
85
- /**
86
- * @property Input
87
- * @description
88
- * A boolean indicating if airports that the user allready has searh for should be displayed.
89
- */
90
- displayLatestSearches?: boolean;
91
- /**
92
- * @property Input
93
- * @description
94
- * A boolean indicating if airports that are close to the user should be displayed.
95
- */
96
- displayClosestAirports?: boolean;
97
- /**
98
- * @property Input
99
- * @description
100
- * Display both orgin and destination airport selector.
101
- */
102
- combo?: boolean;
103
- /**
104
- * @property Input
105
- * @description
106
- * Display switch UI to interchange origin and destination airport.
107
- */
108
- useSwitch?: boolean;
109
- /**
110
- * @property Input
111
- * @description
112
- * A label that will appear on top of all airports in the drop down list.
113
- */
114
- allAirportsLabel: string;
115
- /**
116
- * @property Input
117
- * @description
118
- * A label that will appear on top of the latest searches in the drop down list.
119
- */
120
- latestSearchesLabel: string;
121
- /**
122
- * @property Input
123
- * @description
124
- * A label that will appear on top of the closest airports in the drop down list.
125
- */
126
- closestAirportsLabel: string;
127
- /**
128
- * @property Input
129
- * @description
130
- * A label that will appear in my location in the drop down list.
131
- */
132
- geolocationLabel: string;
133
- /**
134
- * @property Input
135
- * @description
136
- * A label that will appear in my location, in the drop down list if user has denied geolocation.
137
- */
138
- geolocationBlockedLabel: string;
139
- /**
140
- * @property Input
141
- * @description
142
- * A label that will appear in the destination input field if the
143
- * user tries to select a destination airport without selecting an origin airport.
144
- */
145
- selectOriginFirstLabel: string;
146
- /**
147
- * @property Input
148
- * @description
149
- * A text that appears in the destinations dropdown list when origin airport is not set.
150
- */
151
- invalidDestinationText: string;
152
- /**
153
- * @property Input
154
- * @required
155
- * @description
156
- * A label that will appear on top of the origin airport input field.
157
- */
158
- labelOrigin: string;
159
- /**
160
- * @property Input
161
- * @description
162
- * A placeholder that will appear on the origin airport input field.
163
- */
164
- placeholderOrigin: string;
165
- /**
166
- * @property Input
167
- * @description
168
- * A label that will appear on top of the destination airport input field.
169
- */
170
- labelDestination: string;
171
- /**
172
- * @property Input
173
- * @description
174
- * A placeholder that will appear on the destination airport input field.
175
- */
176
- placeholderDestination: string;
177
- /**
178
- * @property Input
179
- * @description
180
- * A modifier that will allow always keeping the selected airport.
181
- * The last selected airport will be shown once user clears the selection and blur.
182
- */
183
- keepSelection: boolean;
184
- /**
185
- * @property Input
186
- * @description
187
- * Sets a formControlName directive to the input.
188
- * It requires that the consumer included ReactiveFormsModule in it's module.
189
- * It requiers that the nasFormGroup input is filled.
190
- */
191
- nasFormControlNameOrigin: string;
192
- /**
193
- * @property Input
194
- * @description
195
- * Sets a formControlName directive to the input.
196
- * It requires that the consumer included ReactiveFormsModule in it's module.
197
- * It requiers that the nasFormGroup input is filled.
198
- */
199
- nasFormControlNameDestination: string;
200
- /**
201
- * @property Input
202
- * @description
203
- * Adds the parent's form group.
204
- * It requires that the consumer included ReactiveFormsModule in it's module.
205
- * It is requiered to be filled if nasFormControlName added.
206
- */
207
- nasFormGroup: FormGroup;
208
- /**
209
- * @property Input
210
- * @description
211
- * The airport code of the origin airport. It will set the selected origin airport based on this value.
212
- */
213
- get originAirportCode(): string;
214
- set originAirportCode(code: string);
215
- /**
216
- * @property Input
217
- * @description
218
- * The airport code of the destination airport. It will set the selected destination airport based on this value.
219
- */
220
- get destinationAirportCode(): string;
221
- set destinationAirportCode(code: string);
222
- /**
223
- * @property Input
224
- * @description
225
- * Adds 'aria-label' on the clear button inside the airport select inputs.
226
- */
227
- ariaLabelClear: string;
228
- /**
229
- * @property Input
230
- * @description
231
- * Adds 'aria-label' to the backdrops.
232
- */
233
- ariaLabelBackdrop: string;
234
- /**
235
- * @property Output
236
- * @description
237
- * An event that is fired every time the selected origin airport changes.
238
- */
239
- originChange: EventEmitter<AirportModel>;
240
- /**
241
- * @property Output
242
- * @description
243
- * An event that is fired every time the origin dropdown selector opens or closes.
244
- */
245
- originOpenChange: EventEmitter<boolean>;
246
- /**
247
- * @property Output
248
- * @description
249
- * An event that is fired every time the origin dropdown selector opens or closes.
250
- */
251
- destinationChange: EventEmitter<AirportModel>;
252
- /**
253
- * @property Output
254
- * @description
255
- * An event that is fired every time the destination dropdown selector opens or closes.
256
- */
257
- destinationOpenChange: EventEmitter<boolean>;
258
- /**
259
- * @property Output
260
- * @description
261
- * An event that is fired when the destination dropdown closes.
262
- */
263
- focusOnNext: EventEmitter<KeyboardEvent>;
264
- /**
265
- * @property Output
266
- * @description
267
- * An event that is fired when geolocation position has changed.
268
- */
269
- positionChange: EventEmitter<GeolocationPosition>;
270
- private originAirportCodeValue;
271
- private destinationAirportCodeValue;
272
- constructor();
273
- onResize(): void;
274
- ngOnInit(): void;
275
- ngAfterViewInit(): void;
276
- getAirportSelectComboClass(element?: string, modifiersInput?: any): ClassModel;
277
- onOriginOpen(open: boolean): void;
278
- onDestinationOpen(open: boolean): void;
279
- onSelectionCleared(): void;
280
- setSelectedOrigin(airport: AirportModel): void;
281
- setSelectedDestination(airport: AirportModel): void;
282
- setFocusOnNext(event: KeyboardEvent): void;
283
- onOriginFocus(): void;
284
- changeSwitchIcon(): void;
285
- swapAirports(): void;
286
- swapKeyDown(event: KeyboardEvent): void;
287
- setDestinationOpen(event: KeyboardEvent): void;
288
- getClosestAirports(position: GeolocationPosition): void;
289
- setInlineFlex(): void;
290
- private getAirportsDestinations;
291
- private setOrigin;
292
- private setDestination;
293
- private updateValidAirportDestinations;
294
- private hasValidDestinations;
295
- private getAirportRelations;
296
- private clearOrigin;
297
- private clearDestination;
298
- private clearDestinations;
299
- private setCurrentLatestSearchesDestination;
300
- static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectNewComponent, never>;
301
- static ɵcmp: i0.ɵɵComponentDeclaration<AirportSelectNewComponent, "nas-airport-select-new", never, { "airports": { "alias": "airports"; "required": false; }; "airportRelations": { "alias": "airportRelations"; "required": false; }; "latestSearchesOrigin": { "alias": "latestSearchesOrigin"; "required": false; }; "latestSearchesDestination": { "alias": "latestSearchesDestination"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "allowedOriginAiports": { "alias": "allowedOriginAiports"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "combo": { "alias": "combo"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; }, { "originChange": "originChange"; "originOpenChange": "originOpenChange"; "destinationChange": "destinationChange"; "destinationOpenChange": "destinationOpenChange"; "focusOnNext": "focusOnNext"; "positionChange": "positionChange"; }, never, never, false, never>;
302
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./airport-select-new.component";
3
- import * as i2 from "./airport-select-dropdown/airport-select-dropdown.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "../../core/directives/nas-class/nas-class.module";
7
- import * as i6 from "../icon/icon.module";
8
- import * as i7 from "../button/button.module";
9
- export declare class AirportSelectNewModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectNewModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<AirportSelectNewModule, [typeof i1.AirportSelectNewComponent, typeof i2.AirportSelectDropdownComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.NasClassModule, typeof i6.IconModule, typeof i4.ReactiveFormsModule, typeof i7.ButtonModule], [typeof i1.AirportSelectNewComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<AirportSelectNewModule>;
13
- }
@@ -1,2 +0,0 @@
1
- export * from './airport-select-new.component';
2
- export * from './airport-select-new.module';
@@ -1,11 +0,0 @@
1
- export interface AirportModel {
2
- name: string;
3
- displayName: string;
4
- normalizedAirportName: string;
5
- code: string;
6
- countryName: string;
7
- airportName: string;
8
- countryCode?: string;
9
- norwegianHolidayAreaId?: string;
10
- norwegianHolidayAreaType?: string;
11
- }
@@ -1,7 +0,0 @@
1
- export declare class ResultsLabelsModel {
2
- allAirports: string;
3
- latestSearches: string;
4
- closestAirports: string;
5
- geolocation: string;
6
- geolocationDenied: string;
7
- }
@@ -1,10 +0,0 @@
1
- import { AirportModel } from '../models/airport.model';
2
- import * as i0 from "@angular/core";
3
- export declare class AirportSelectDropdownService {
4
- constructor();
5
- hasLatestSearches(displayLatestSearches: boolean, latestSearches: Array<AirportModel>): boolean;
6
- hasClosestAirports(displayClosestAirports: boolean, closestAirports: Array<AirportModel>): boolean;
7
- isIndexInClosestAirports(focusedClosestAirportIndex: number, closestAirports: Array<AirportModel>): boolean;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectDropdownService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<AirportSelectDropdownService>;
10
- }
@@ -1,8 +0,0 @@
1
- import { AirportModel } from '../models/airport.model';
2
- import * as i0 from "@angular/core";
3
- export declare class AirportSelectService {
4
- constructor();
5
- filter(airports: AirportModel[], name: string): AirportModel[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<AirportSelectService>;
8
- }
@@ -1,135 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { AutocompleteModel } from './models/autocomplete-new.model';
6
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
7
- import { NasComponentBase } from '../../core';
8
- import { FormGroup } from '@angular/forms';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * @description
12
- * Norwegian Airport Select Component | New design | Beta
13
- */
14
- export declare class AutocompleteNewComponent extends NasComponentBase implements OnInit {
15
- private document;
16
- filteredItems: Array<AutocompleteModel>;
17
- focused: AutocompleteModel;
18
- get showBackdrop(): boolean;
19
- set showBackdrop(value: boolean);
20
- input: ElementRef;
21
- span: ElementRef;
22
- results: ElementRef;
23
- labelElement: ElementRef<HTMLElement>;
24
- /**
25
- * @property Input
26
- * @description
27
- * A label that will appear inside the text field.
28
- */
29
- label: string;
30
- /**
31
- * @property Input
32
- * @description
33
- * A placeholder that will appear inside the text field.
34
- */
35
- placeholder: string;
36
- /**
37
- * @property Input
38
- * @description
39
- * An icon that will appear inside the text field.
40
- */
41
- icon: string;
42
- /**
43
- * @property Input
44
- * @description
45
- * An array of items that will appear inside the dropdown list.
46
- */
47
- get items(): Array<AutocompleteModel>;
48
- set items(items: Array<AutocompleteModel>);
49
- /**
50
- * @property Input
51
- * @description
52
- * Can set and listen to wheather the dropdown list is or should be open or not.
53
- */
54
- get open(): boolean;
55
- set open(open: boolean);
56
- /**
57
- * @property Input
58
- * @description
59
- * Can set and listen to changes in the model of the text field.
60
- */
61
- get model(): string;
62
- set model(model: string);
63
- /**
64
- * @property Input
65
- * @description
66
- * Disables the backdrop on focus.
67
- */
68
- disableBackdrop: boolean;
69
- /**
70
- * @property Input
71
- * @description
72
- * Sets a formControlName directive to the input.
73
- * It requires that the consumer included ReactiveFormsModule in it's module.
74
- * It requiers that the nasFormGroup input is filled.
75
- */
76
- nasFormControlName: string;
77
- /**
78
- * @property Input
79
- * @description
80
- * Adds the parent's form group.
81
- * It requires that the consumer included ReactiveFormsModule in it's module.
82
- * It is requiered to be filled if nasFormControlName added.
83
- */
84
- nasFormGroup: FormGroup;
85
- /**
86
- * @property Input
87
- * @description
88
- * Adds an aria-label attribute to the backdrop button.
89
- */
90
- ariaLabelBackdrop: string;
91
- /**
92
- * @property Input
93
- * @description
94
- * Adds 'aria-label' on the clear button inside input.
95
- */
96
- ariaLabelClear: string;
97
- /**
98
- * @property Output
99
- * @description
100
- * Is fired when the next element should be focused.
101
- */
102
- focusOnNext: EventEmitter<any>;
103
- /**
104
- * @property Output
105
- * @description
106
- * Is fired when the user selects an item in the dropdown list.
107
- */
108
- selectedChange: EventEmitter<AutocompleteModel>;
109
- openChange: EventEmitter<boolean>;
110
- modelChange: EventEmitter<string>;
111
- private index;
112
- private openValue;
113
- private itemsValue;
114
- private modelValue;
115
- private componentId;
116
- constructor(document: any);
117
- ngOnInit(): void;
118
- getResultsId(): string;
119
- getLabelId(): string;
120
- getInputId(): string;
121
- setOpen(): void;
122
- filter(): void;
123
- onKeyDown(event: KeyboardEvent): void;
124
- clearSelected(event: any): void;
125
- select(item: AutocompleteModel): void;
126
- blur(): void;
127
- private focusDown;
128
- private focusUp;
129
- private pathReactiveFormControl;
130
- private autoScroll;
131
- onInput(event: Event): void;
132
- setRemoveIcon(): string;
133
- static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteNewComponent, never>;
134
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteNewComponent, "nas-autocomplete-new", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "open": { "alias": "open"; "required": false; }; "model": { "alias": "model"; "required": false; }; "disableBackdrop": { "alias": "disableBackdrop"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; }, { "focusOnNext": "focusOnNext"; "selectedChange": "selectedChange"; "openChange": "openChange"; "modelChange": "modelChange"; }, never, never, false, never>;
135
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./autocomplete-new.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../core/directives/nas-class/nas-class.module";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "../icon/icon.module";
7
- import * as i6 from "../spinner/spinner.module";
8
- import * as i7 from "../backdrop/backdrop.module";
9
- export declare class AutocompleteNewModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteNewModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteNewModule, [typeof i1.AutocompleteNewComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.FormsModule, typeof i5.IconModule, typeof i6.SpinnerModule, typeof i7.BackdropModule, typeof i4.ReactiveFormsModule], [typeof i1.AutocompleteNewComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<AutocompleteNewModule>;
13
- }
@@ -1,2 +0,0 @@
1
- export * from './autocomplete-new.component';
2
- export * from './autocomplete-new.module';
@@ -1,5 +0,0 @@
1
- export interface AutocompleteModel {
2
- title: string;
3
- preamble?: string;
4
- id: string;
5
- }