@norwegian/core-components 7.17.2 → 8.0.1
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.
- package/README.md +3 -3
- package/assets/documentation/accordion/accordion.md +1 -1
- package/assets/documentation/airport-select/airport-select.md +1 -0
- package/assets/documentation/alert/alert.md +1 -0
- package/assets/documentation/autocomplete/autocomplete.md +1 -1
- package/assets/documentation/backdrop/backdrop.md +1 -0
- package/assets/documentation/box/box.md +1 -1
- package/assets/documentation/button/button.md +1 -10
- package/assets/documentation/checkbox/checkbox.md +1 -7
- package/assets/documentation/container/container.md +1 -1
- package/assets/documentation/continue/continue.md +2 -1
- package/assets/documentation/cover/cover.md +1 -1
- package/assets/documentation/datepicker/datepicker.md +1 -3
- package/assets/documentation/datepicker-combo/datepicker-combo.md +2 -1
- package/assets/documentation/divider/divider.md +1 -1
- package/assets/documentation/dropdown/dropdown.md +1 -3
- package/assets/documentation/filter/filter.md +1 -0
- package/assets/documentation/grid/grid.md +1 -1
- package/assets/documentation/icon/icon.md +1 -1
- package/assets/documentation/icon-list/icon-list.md +1 -1
- package/assets/documentation/input/input.md +1 -1
- package/assets/documentation/journey/journey.md +2 -1
- package/assets/documentation/journey-availability/journey-availability.md +1 -3
- package/assets/documentation/journey-availability-list/journey-availability-list.md +1 -9
- package/assets/documentation/journey-selection/journey-selection.md +1 -1
- package/assets/documentation/journey-stopover/journey-stopover.md +2 -1
- package/assets/documentation/list/list.md +1 -1
- package/assets/documentation/micro-button/micro-button.md +2 -0
- package/assets/documentation/modal/modal.md +1 -0
- package/assets/documentation/number-field/number-field.md +1 -1
- package/assets/documentation/page-footer/page-footer.md +1 -1
- package/assets/documentation/page-header/page-header.md +1 -1
- package/assets/documentation/passenger-select/passenger-select.md +1 -1
- package/assets/documentation/phone-number/phone-number.md +1 -2
- package/assets/documentation/premium-toggle/premium-toggle.md +1 -9
- package/assets/documentation/radio/radio.md +1 -7
- package/assets/documentation/ribbon-banner/ribbon-banner.md +2 -1
- package/assets/documentation/select/select.md +1 -1
- package/assets/documentation/simple-list/simple-list.md +1 -1
- package/assets/documentation/slide-toggle/slide-toggle.md +1 -1
- package/assets/documentation/slider/slider.md +1 -1
- package/assets/documentation/sort/sort.md +1 -1
- package/assets/documentation/spinner/spinner.md +1 -1
- package/assets/documentation/status-box/status-box.md +2 -1
- package/assets/documentation/suggestions/suggestions.md +2 -1
- package/assets/documentation/tab-group/tab-group.md +1 -1
- package/assets/documentation/table/table.md +1 -8
- package/assets/documentation/tag/tag.md +1 -0
- package/assets/documentation/textarea/textarea.md +1 -1
- package/assets/documentation/toggle/toggle.md +1 -5
- package/assets/documentation/tooltip/tooltip.md +1 -0
- package/assets/documentation/trip-summary/trip-summary.md +1 -2
- package/fesm2022/norwegian-core-components.mjs +13636 -13565
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/index.d.ts +9449 -5
- package/package.json +14 -8
- package/styles/1__settings/_colors.scss +9 -9
- package/styles/1__settings/_mixins.scss +67 -40
- package/styles/1__settings/_type.scss +18 -6
- package/styles/1__settings/_vars.scss +7 -4
- package/styles/2__generic/_fonts.scss +7 -5
- package/styles/3__base/_animations.scss +84 -84
- package/styles/3__base/_body.scss +10 -8
- package/styles/3__base/_fixes.scss +1 -1
- package/styles/3__base/_form.scss +5 -3
- package/styles/3__base/_heading.scss +21 -12
- package/styles/3__base/_hr.scss +4 -0
- package/styles/3__base/_input.scss +5 -1
- package/styles/3__base/_link.scss +3 -0
- package/styles/3__base/_table.scss +8 -4
- package/styles/3__base/_type.scss +17 -13
- package/styles/_helpers.scss +4 -4
- package/styles/_index.scss +13 -13
- package/assets/documentation/campaign-header/campaign-header.md +0 -0
- package/assets/documentation/chip/chip.md +0 -1
- package/assets/documentation/info/info.md +0 -1
- package/assets/icons/small/info--light--light.svg +0 -4
- package/assets/images/logo--mobile.svg +0 -50
- package/assets/images/logo-reward.svg +0 -140
- package/assets/images/logo.svg +0 -135
- package/esm2022/lib/components/accordion/accordion.component.mjs +0 -163
- package/esm2022/lib/components/accordion/accordion.module.mjs +0 -20
- package/esm2022/lib/components/accordion/index.mjs +0 -3
- package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +0 -622
- package/esm2022/lib/components/airport-select/airport-select.component.mjs +0 -498
- package/esm2022/lib/components/airport-select/airport-select.module.mjs +0 -42
- package/esm2022/lib/components/airport-select/index.mjs +0 -7
- package/esm2022/lib/components/airport-select/models/airport-select-event.model.mjs +0 -2
- package/esm2022/lib/components/airport-select/models/airport-select-state.model.mjs +0 -2
- package/esm2022/lib/components/airport-select/models/airport.model.mjs +0 -2
- package/esm2022/lib/components/airport-select/models/results-labels.model.mjs +0 -3
- package/esm2022/lib/components/airport-select/services/airport-select-dropdown.service.mjs +0 -35
- package/esm2022/lib/components/airport-select/services/airport-select.service.mjs +0 -38
- package/esm2022/lib/components/alert/alert.component.mjs +0 -169
- package/esm2022/lib/components/alert/alert.module.mjs +0 -22
- package/esm2022/lib/components/alert/index.mjs +0 -4
- package/esm2022/lib/components/alert/models/alert.model.mjs +0 -2
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +0 -318
- package/esm2022/lib/components/autocomplete/autocomplete.module.mjs +0 -43
- package/esm2022/lib/components/autocomplete/index.mjs +0 -4
- package/esm2022/lib/components/autocomplete/models/autocomplete.model.mjs +0 -2
- package/esm2022/lib/components/backdrop/backdrop.component.mjs +0 -58
- package/esm2022/lib/components/backdrop/backdrop.module.mjs +0 -19
- package/esm2022/lib/components/backdrop/index.mjs +0 -3
- package/esm2022/lib/components/box/box.component.mjs +0 -66
- package/esm2022/lib/components/box/box.module.mjs +0 -19
- package/esm2022/lib/components/box/index.mjs +0 -3
- package/esm2022/lib/components/button/button.component.mjs +0 -192
- package/esm2022/lib/components/button/button.module.mjs +0 -21
- package/esm2022/lib/components/button/index.mjs +0 -3
- package/esm2022/lib/components/campaign-header/campaign-header.component.mjs +0 -51
- package/esm2022/lib/components/campaign-header/campaign-header.module.mjs +0 -20
- package/esm2022/lib/components/campaign-header/index.mjs +0 -3
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +0 -163
- package/esm2022/lib/components/checkbox/checkbox.module.mjs +0 -20
- package/esm2022/lib/components/checkbox/index.mjs +0 -3
- package/esm2022/lib/components/chip/chip.component.mjs +0 -48
- package/esm2022/lib/components/chip/chip.module.mjs +0 -19
- package/esm2022/lib/components/chip/index.mjs +0 -3
- package/esm2022/lib/components/container/container.component.mjs +0 -50
- package/esm2022/lib/components/container/container.module.mjs +0 -19
- package/esm2022/lib/components/container/index.mjs +0 -3
- package/esm2022/lib/components/continue/continue.component.mjs +0 -199
- package/esm2022/lib/components/continue/continue.module.mjs +0 -23
- package/esm2022/lib/components/continue/index.mjs +0 -3
- package/esm2022/lib/components/cover/cover.component.mjs +0 -75
- package/esm2022/lib/components/cover/cover.module.mjs +0 -21
- package/esm2022/lib/components/cover/index.mjs +0 -3
- package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +0 -606
- package/esm2022/lib/components/datepicker/calendar/enums/week-start.enum.mjs +0 -6
- package/esm2022/lib/components/datepicker/calendar/models/calendar-date.model.mjs +0 -2
- package/esm2022/lib/components/datepicker/calendar/models/calendar.model.mjs +0 -2
- package/esm2022/lib/components/datepicker/calendar/models/day.model.mjs +0 -2
- package/esm2022/lib/components/datepicker/calendar/models/select-option.model.mjs +0 -2
- package/esm2022/lib/components/datepicker/calendar/models/week.model.mjs +0 -2
- package/esm2022/lib/components/datepicker/datepicker.component.mjs +0 -613
- package/esm2022/lib/components/datepicker/datepicker.module.mjs +0 -55
- package/esm2022/lib/components/datepicker/index.mjs +0 -9
- package/esm2022/lib/components/datepicker/services/calendar.service.mjs +0 -215
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +0 -417
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.module.mjs +0 -31
- package/esm2022/lib/components/datepicker-combo/index.mjs +0 -3
- package/esm2022/lib/components/divider/divider.component.mjs +0 -59
- package/esm2022/lib/components/divider/divider.module.mjs +0 -28
- package/esm2022/lib/components/divider/index.mjs +0 -3
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -170
- package/esm2022/lib/components/dropdown/dropdown.module.mjs +0 -21
- package/esm2022/lib/components/dropdown/index.mjs +0 -3
- package/esm2022/lib/components/filter/enums/trip-type.enum.mjs +0 -8
- package/esm2022/lib/components/filter/filter.component.mjs +0 -1445
- package/esm2022/lib/components/filter/filter.module.mjs +0 -81
- package/esm2022/lib/components/filter/index.mjs +0 -4
- package/esm2022/lib/components/grid/col/col.component.mjs +0 -49
- package/esm2022/lib/components/grid/grid.component.mjs +0 -72
- package/esm2022/lib/components/grid/grid.module.mjs +0 -20
- package/esm2022/lib/components/grid/index.mjs +0 -4
- package/esm2022/lib/components/icon/icon.component.mjs +0 -44
- package/esm2022/lib/components/icon/icon.module.mjs +0 -19
- package/esm2022/lib/components/icon/index.mjs +0 -3
- package/esm2022/lib/components/icon-list/icon-list.component.mjs +0 -50
- package/esm2022/lib/components/icon-list/icon-list.module.mjs +0 -20
- package/esm2022/lib/components/icon-list/index.mjs +0 -4
- package/esm2022/lib/components/icon-list/models/icon-list.model.mjs +0 -2
- package/esm2022/lib/components/index.mjs +0 -68
- package/esm2022/lib/components/info/index.mjs +0 -4
- package/esm2022/lib/components/info/info.component.mjs +0 -116
- package/esm2022/lib/components/info/info.module.mjs +0 -36
- package/esm2022/lib/components/info/models/info.model.mjs +0 -2
- package/esm2022/lib/components/input/index.mjs +0 -3
- package/esm2022/lib/components/input/input.component.mjs +0 -228
- package/esm2022/lib/components/input/input.module.mjs +0 -35
- package/esm2022/lib/components/journey/index.mjs +0 -6
- package/esm2022/lib/components/journey/journey.component.mjs +0 -137
- package/esm2022/lib/components/journey/journey.module.mjs +0 -21
- package/esm2022/lib/components/journey/models/journey-flight.model.mjs +0 -2
- package/esm2022/lib/components/journey/models/journey.model.mjs +0 -2
- package/esm2022/lib/components/journey/models/marketing-carrier.enum.mjs +0 -8
- package/esm2022/lib/components/journey-availability/index.mjs +0 -3
- package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +0 -128
- package/esm2022/lib/components/journey-availability/journey-availability.module.mjs +0 -39
- package/esm2022/lib/components/journey-availability-list/enums/availability-sort-option.enum.mjs +0 -7
- package/esm2022/lib/components/journey-availability-list/index.mjs +0 -4
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +0 -182
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.module.mjs +0 -36
- package/esm2022/lib/components/journey-selection/index.mjs +0 -7
- package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +0 -120
- package/esm2022/lib/components/journey-selection/journey-selection.module.mjs +0 -24
- package/esm2022/lib/components/journey-selection/models/journey-selection-collapsed.model.mjs +0 -2
- package/esm2022/lib/components/journey-selection/models/journey-selection-common.model.mjs +0 -2
- package/esm2022/lib/components/journey-selection/models/journey-selection-expanded.model.mjs +0 -2
- package/esm2022/lib/components/journey-selection/models/journey-selection.model.mjs +0 -2
- package/esm2022/lib/components/journey-stopover/index.mjs +0 -4
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +0 -150
- package/esm2022/lib/components/journey-stopover/journey-stopover.module.mjs +0 -21
- package/esm2022/lib/components/journey-stopover/models/stopover-time.model.mjs +0 -2
- package/esm2022/lib/components/list/index.mjs +0 -4
- package/esm2022/lib/components/list/list-item/list-item.component.mjs +0 -52
- package/esm2022/lib/components/list/list.component.mjs +0 -78
- package/esm2022/lib/components/list/list.module.mjs +0 -20
- package/esm2022/lib/components/micro-button/index.mjs +0 -3
- package/esm2022/lib/components/micro-button/micro-button.component.mjs +0 -101
- package/esm2022/lib/components/micro-button/micro-button.module.mjs +0 -20
- package/esm2022/lib/components/modal/index.mjs +0 -3
- package/esm2022/lib/components/modal/modal.component.mjs +0 -156
- package/esm2022/lib/components/modal/modal.module.mjs +0 -38
- package/esm2022/lib/components/number-field/index.mjs +0 -4
- package/esm2022/lib/components/number-field/models/number-field.model.mjs +0 -2
- package/esm2022/lib/components/number-field/number-field.component.mjs +0 -162
- package/esm2022/lib/components/number-field/number-field.module.mjs +0 -39
- package/esm2022/lib/components/page-footer/index.mjs +0 -3
- package/esm2022/lib/components/page-footer/page-footer.component.mjs +0 -52
- package/esm2022/lib/components/page-footer/page-footer.module.mjs +0 -21
- package/esm2022/lib/components/page-header/hamburger/hamburger.component.mjs +0 -22
- package/esm2022/lib/components/page-header/index.mjs +0 -6
- package/esm2022/lib/components/page-header/models/wallet.model.mjs +0 -2
- package/esm2022/lib/components/page-header/page-header.component.mjs +0 -171
- package/esm2022/lib/components/page-header/page-header.module.mjs +0 -55
- package/esm2022/lib/components/page-header/search/search.component.mjs +0 -49
- package/esm2022/lib/components/page-header/wallet/wallet.component.mjs +0 -57
- package/esm2022/lib/components/passenger-select/enums/passenger-type.enum.mjs +0 -9
- package/esm2022/lib/components/passenger-select/index.mjs +0 -5
- package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +0 -2
- package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +0 -423
- package/esm2022/lib/components/passenger-select/passenger-select.module.mjs +0 -28
- package/esm2022/lib/components/phone-number/index.mjs +0 -3
- package/esm2022/lib/components/phone-number/phone-number.component.mjs +0 -182
- package/esm2022/lib/components/phone-number/phone-number.module.mjs +0 -44
- package/esm2022/lib/components/premium-toggle/index.mjs +0 -3
- package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +0 -68
- package/esm2022/lib/components/premium-toggle/premium-toggle.module.mjs +0 -20
- package/esm2022/lib/components/radio/index.mjs +0 -3
- package/esm2022/lib/components/radio/radio.component.mjs +0 -109
- package/esm2022/lib/components/radio/radio.module.mjs +0 -20
- package/esm2022/lib/components/ribbon-banner/index.mjs +0 -3
- package/esm2022/lib/components/ribbon-banner/ribbon-banner.component.mjs +0 -89
- package/esm2022/lib/components/ribbon-banner/ribbon-banner.module.mjs +0 -40
- package/esm2022/lib/components/select/index.mjs +0 -6
- package/esm2022/lib/components/select/models/select-option.model.mjs +0 -2
- package/esm2022/lib/components/select/optgroup/optgroup.component.mjs +0 -29
- package/esm2022/lib/components/select/option/option.component.mjs +0 -26
- package/esm2022/lib/components/select/select.component.mjs +0 -407
- package/esm2022/lib/components/select/select.module.mjs +0 -23
- package/esm2022/lib/components/select-new/index.mjs +0 -5
- package/esm2022/lib/components/select-new/models/select-option.model.mjs +0 -2
- package/esm2022/lib/components/select-new/optgroup/optgroup-new.component.mjs +0 -23
- package/esm2022/lib/components/select-new/option/option-new.component.mjs +0 -41
- package/esm2022/lib/components/select-new/select-new.component.mjs +0 -271
- package/esm2022/lib/components/select-new/select-new.module.mjs +0 -26
- package/esm2022/lib/components/select-new/services/select-new.service.mjs +0 -40
- package/esm2022/lib/components/simple-list/index.mjs +0 -3
- package/esm2022/lib/components/simple-list/simple-list.component.mjs +0 -48
- package/esm2022/lib/components/simple-list/simple-list.module.mjs +0 -19
- package/esm2022/lib/components/slide-toggle/index.mjs +0 -3
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +0 -121
- package/esm2022/lib/components/slide-toggle/slide-toggle.module.mjs +0 -20
- package/esm2022/lib/components/slider/index.mjs +0 -3
- package/esm2022/lib/components/slider/slider.component.mjs +0 -515
- package/esm2022/lib/components/slider/slider.module.mjs +0 -20
- package/esm2022/lib/components/sort/index.mjs +0 -3
- package/esm2022/lib/components/sort/sort.component.mjs +0 -98
- package/esm2022/lib/components/sort/sort.module.mjs +0 -36
- package/esm2022/lib/components/spinner/index.mjs +0 -3
- package/esm2022/lib/components/spinner/spinner.component.mjs +0 -127
- package/esm2022/lib/components/spinner/spinner.module.mjs +0 -19
- package/esm2022/lib/components/status-box/index.mjs +0 -4
- package/esm2022/lib/components/status-box/models/status-box.model.mjs +0 -2
- package/esm2022/lib/components/status-box/status-box.component.mjs +0 -109
- package/esm2022/lib/components/status-box/status-box.module.mjs +0 -21
- package/esm2022/lib/components/suggestions/index.mjs +0 -3
- package/esm2022/lib/components/suggestions/suggestions.component.mjs +0 -44
- package/esm2022/lib/components/suggestions/suggestions.module.mjs +0 -20
- package/esm2022/lib/components/tab-group/index.mjs +0 -4
- package/esm2022/lib/components/tab-group/tab/tab.component.mjs +0 -140
- package/esm2022/lib/components/tab-group/tab-group.component.mjs +0 -91
- package/esm2022/lib/components/tab-group/tab-group.module.mjs +0 -21
- package/esm2022/lib/components/table/column/column.component.mjs +0 -16
- package/esm2022/lib/components/table/column-group/column-group.component.mjs +0 -30
- package/esm2022/lib/components/table/index.mjs +0 -11
- package/esm2022/lib/components/table/services/table.service.mjs +0 -24
- package/esm2022/lib/components/table/table-body/table-body.component.mjs +0 -23
- package/esm2022/lib/components/table/table-foot/table-foot.component.mjs +0 -23
- package/esm2022/lib/components/table/table-head/table-head.component.mjs +0 -23
- package/esm2022/lib/components/table/table-row/table-data/table-data.component.mjs +0 -15
- package/esm2022/lib/components/table/table-row/table-header/table-header.component.mjs +0 -15
- package/esm2022/lib/components/table/table-row/table-row.component.mjs +0 -23
- package/esm2022/lib/components/table/table.component.mjs +0 -27
- package/esm2022/lib/components/table/table.module.mjs +0 -63
- package/esm2022/lib/components/tag/index.mjs +0 -3
- package/esm2022/lib/components/tag/tag.component.mjs +0 -71
- package/esm2022/lib/components/tag/tag.module.mjs +0 -28
- package/esm2022/lib/components/textarea/index.mjs +0 -3
- package/esm2022/lib/components/textarea/textarea.component.mjs +0 -139
- package/esm2022/lib/components/textarea/textarea.module.mjs +0 -21
- package/esm2022/lib/components/toggle/index.mjs +0 -3
- package/esm2022/lib/components/toggle/models/options.model.mjs +0 -3
- package/esm2022/lib/components/toggle/toggle.component.mjs +0 -102
- package/esm2022/lib/components/toggle/toggle.module.mjs +0 -35
- package/esm2022/lib/components/tooltip/index.mjs +0 -3
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -170
- package/esm2022/lib/components/tooltip/tooltip.module.mjs +0 -30
- package/esm2022/lib/components/trip-summary/index.mjs +0 -3
- package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +0 -167
- package/esm2022/lib/components/trip-summary/trip-summary.module.mjs +0 -36
- package/esm2022/lib/core/base/nas-component.base.mjs +0 -48
- package/esm2022/lib/core/decorators/debounce.decorator.mjs +0 -12
- package/esm2022/lib/core/directives/index.mjs +0 -3
- package/esm2022/lib/core/directives/nas-class/nas-class.directive.mjs +0 -80
- package/esm2022/lib/core/directives/nas-class/nas-class.module.mjs +0 -20
- package/esm2022/lib/core/extensions/html-element.extension.mjs +0 -31
- package/esm2022/lib/core/index.mjs +0 -5
- package/esm2022/lib/core/models/abandoned-basket-item.model.mjs +0 -2
- package/esm2022/lib/core/models/animate.model.mjs +0 -2
- package/esm2022/lib/core/models/class.model.mjs +0 -2
- package/esm2022/lib/core/models/index.mjs +0 -7
- package/esm2022/lib/core/models/link.model.mjs +0 -2
- package/esm2022/lib/core/models/position.model.mjs +0 -2
- package/esm2022/lib/core/models/utc-date.model.mjs +0 -40
- package/esm2022/lib/core/services/abandoned-basket/abandoned-basket.service.mjs +0 -61
- package/esm2022/lib/core/services/animate-helper/animate-helper.service.mjs +0 -49
- package/esm2022/lib/core/services/bem-helper/bem-helper.service.mjs +0 -44
- package/esm2022/lib/core/services/date/date-compare.enum.mjs +0 -7
- package/esm2022/lib/core/services/date/date-helper.service.mjs +0 -199
- package/esm2022/lib/core/services/device/device-helper.service.mjs +0 -46
- package/esm2022/lib/core/services/geolocation/geolocation-state.enum.mjs +0 -8
- package/esm2022/lib/core/services/geolocation/geolocation.service.mjs +0 -66
- package/esm2022/lib/core/services/index.mjs +0 -10
- package/esm2022/lib/core/services/language/language-helper.service.mjs +0 -114
- package/esm2022/lib/core/services/sort/sort.service.mjs +0 -25
- package/esm2022/lib/core/services/viewport/viewport.service.mjs +0 -36
- package/esm2022/lib/index.mjs +0 -5
- package/esm2022/lib/services/get-position.service.mjs +0 -23
- package/esm2022/lib/services/index.mjs +0 -2
- package/esm2022/lib/shared/index.mjs +0 -2
- package/esm2022/lib/shared/models/flight-details.mjs +0 -3
- package/esm2022/lib/shared/models/index.mjs +0 -6
- package/esm2022/lib/shared/models/journey-availability-sort.model.mjs +0 -2
- package/esm2022/lib/shared/models/journey-availability.model.mjs +0 -2
- package/esm2022/lib/shared/models/journey-details.model.mjs +0 -2
- package/esm2022/lib/shared/models/journey-duration.model.mjs +0 -2
- package/esm2022/lib/shared/models/journey-stopover.model.mjs +0 -2
- package/esm2022/lib/shared/models/journey-transit-info.model.mjs +0 -2
- package/esm2022/lib/shared/models/operating-carrier.model.mjs +0 -2
- package/esm2022/lib/shared/models/sort-option.model.mjs +0 -2
- package/esm2022/lib/shared/models/sort.model.mjs +0 -2
- package/esm2022/lib/shared/models/trip-item-details.model.mjs +0 -2
- package/esm2022/lib/shared/models/trip-summary-details.model.mjs +0 -2
- package/esm2022/lib/shared/models/trip-summary.model.mjs +0 -2
- package/esm2022/norwegian-core-components.mjs +0 -5
- package/esm2022/public_api.mjs +0 -2
- package/lib/components/accordion/accordion.component.d.ts +0 -241
- package/lib/components/accordion/accordion.module.d.ts +0 -10
- package/lib/components/accordion/index.d.ts +0 -2
- package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +0 -100
- package/lib/components/airport-select/airport-select.component.d.ts +0 -330
- package/lib/components/airport-select/airport-select.module.d.ts +0 -13
- package/lib/components/airport-select/index.d.ts +0 -6
- package/lib/components/airport-select/models/airport-select-event.model.d.ts +0 -4
- package/lib/components/airport-select/models/airport-select-state.model.d.ts +0 -5
- package/lib/components/airport-select/models/airport.model.d.ts +0 -11
- package/lib/components/airport-select/models/results-labels.model.d.ts +0 -8
- package/lib/components/airport-select/services/airport-select-dropdown.service.d.ts +0 -10
- package/lib/components/airport-select/services/airport-select.service.d.ts +0 -8
- package/lib/components/alert/alert.component.d.ts +0 -129
- package/lib/components/alert/alert.module.d.ts +0 -12
- package/lib/components/alert/index.d.ts +0 -3
- package/lib/components/alert/models/alert.model.d.ts +0 -10
- package/lib/components/autocomplete/autocomplete.component.d.ts +0 -135
- package/lib/components/autocomplete/autocomplete.module.d.ts +0 -13
- package/lib/components/autocomplete/index.d.ts +0 -3
- package/lib/components/autocomplete/models/autocomplete.model.d.ts +0 -5
- package/lib/components/backdrop/backdrop.component.d.ts +0 -38
- package/lib/components/backdrop/backdrop.module.d.ts +0 -9
- package/lib/components/backdrop/index.d.ts +0 -2
- package/lib/components/box/box.component.d.ts +0 -78
- package/lib/components/box/box.module.d.ts +0 -9
- package/lib/components/box/index.d.ts +0 -2
- package/lib/components/button/button.component.d.ts +0 -294
- package/lib/components/button/button.module.d.ts +0 -11
- package/lib/components/button/index.d.ts +0 -2
- package/lib/components/campaign-header/campaign-header.component.d.ts +0 -58
- package/lib/components/campaign-header/campaign-header.module.d.ts +0 -10
- package/lib/components/campaign-header/index.d.ts +0 -2
- package/lib/components/checkbox/checkbox.component.d.ts +0 -151
- package/lib/components/checkbox/checkbox.module.d.ts +0 -10
- package/lib/components/checkbox/index.d.ts +0 -2
- package/lib/components/chip/chip.component.d.ts +0 -48
- package/lib/components/chip/chip.module.d.ts +0 -9
- package/lib/components/chip/index.d.ts +0 -2
- package/lib/components/container/container.component.d.ts +0 -52
- package/lib/components/container/container.module.d.ts +0 -9
- package/lib/components/container/index.d.ts +0 -2
- package/lib/components/continue/continue.component.d.ts +0 -171
- package/lib/components/continue/continue.module.d.ts +0 -11
- package/lib/components/continue/index.d.ts +0 -2
- package/lib/components/cover/cover.component.d.ts +0 -125
- package/lib/components/cover/cover.module.d.ts +0 -11
- package/lib/components/cover/index.d.ts +0 -2
- package/lib/components/datepicker/calendar/calendar.component.d.ts +0 -169
- package/lib/components/datepicker/calendar/enums/week-start.enum.d.ts +0 -4
- package/lib/components/datepicker/calendar/models/calendar-date.model.d.ts +0 -5
- package/lib/components/datepicker/calendar/models/calendar.model.d.ts +0 -4
- package/lib/components/datepicker/calendar/models/day.model.d.ts +0 -10
- package/lib/components/datepicker/calendar/models/select-option.model.d.ts +0 -4
- package/lib/components/datepicker/calendar/models/week.model.d.ts +0 -5
- package/lib/components/datepicker/datepicker.component.d.ts +0 -289
- package/lib/components/datepicker/datepicker.module.d.ts +0 -16
- package/lib/components/datepicker/index.d.ts +0 -8
- package/lib/components/datepicker/services/calendar.service.d.ts +0 -27
- package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +0 -329
- package/lib/components/datepicker-combo/datepicker-combo.module.d.ts +0 -10
- package/lib/components/datepicker-combo/index.d.ts +0 -2
- package/lib/components/divider/divider.component.d.ts +0 -68
- package/lib/components/divider/divider.module.d.ts +0 -10
- package/lib/components/divider/index.d.ts +0 -2
- package/lib/components/dropdown/dropdown.component.d.ts +0 -80
- package/lib/components/dropdown/dropdown.module.d.ts +0 -11
- package/lib/components/dropdown/index.d.ts +0 -2
- package/lib/components/filter/enums/trip-type.enum.d.ts +0 -6
- package/lib/components/filter/filter.component.d.ts +0 -942
- package/lib/components/filter/filter.module.d.ts +0 -22
- package/lib/components/filter/index.d.ts +0 -3
- package/lib/components/grid/col/col.component.d.ts +0 -45
- package/lib/components/grid/grid.component.d.ts +0 -92
- package/lib/components/grid/grid.module.d.ts +0 -10
- package/lib/components/grid/index.d.ts +0 -3
- package/lib/components/icon/icon.component.d.ts +0 -53
- package/lib/components/icon/icon.module.d.ts +0 -9
- package/lib/components/icon/index.d.ts +0 -2
- package/lib/components/icon-list/icon-list.component.d.ts +0 -49
- package/lib/components/icon-list/icon-list.module.d.ts +0 -10
- package/lib/components/icon-list/index.d.ts +0 -3
- package/lib/components/icon-list/models/icon-list.model.d.ts +0 -8
- package/lib/components/index.d.ts +0 -67
- package/lib/components/info/index.d.ts +0 -3
- package/lib/components/info/info.component.d.ts +0 -108
- package/lib/components/info/info.module.d.ts +0 -12
- package/lib/components/info/models/info.model.d.ts +0 -9
- package/lib/components/input/index.d.ts +0 -2
- package/lib/components/input/input.component.d.ts +0 -214
- package/lib/components/input/input.module.d.ts +0 -11
- package/lib/components/journey/index.d.ts +0 -5
- package/lib/components/journey/journey.component.d.ts +0 -102
- package/lib/components/journey/journey.module.d.ts +0 -11
- package/lib/components/journey/models/journey-flight.model.d.ts +0 -13
- package/lib/components/journey/models/journey.model.d.ts +0 -5
- package/lib/components/journey/models/marketing-carrier.enum.d.ts +0 -6
- package/lib/components/journey-availability/index.d.ts +0 -2
- package/lib/components/journey-availability/journey-availability.component.d.ts +0 -93
- package/lib/components/journey-availability/journey-availability.module.d.ts +0 -12
- package/lib/components/journey-availability-list/enums/availability-sort-option.enum.d.ts +0 -5
- package/lib/components/journey-availability-list/index.d.ts +0 -3
- package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +0 -114
- package/lib/components/journey-availability-list/journey-availability-list.module.d.ts +0 -12
- package/lib/components/journey-selection/index.d.ts +0 -6
- package/lib/components/journey-selection/journey-selection.component.d.ts +0 -84
- package/lib/components/journey-selection/journey-selection.module.d.ts +0 -11
- package/lib/components/journey-selection/models/journey-selection-collapsed.model.d.ts +0 -11
- package/lib/components/journey-selection/models/journey-selection-common.model.d.ts +0 -7
- package/lib/components/journey-selection/models/journey-selection-expanded.model.d.ts +0 -5
- package/lib/components/journey-selection/models/journey-selection.model.d.ts +0 -14
- package/lib/components/journey-stopover/index.d.ts +0 -3
- package/lib/components/journey-stopover/journey-stopover.component.d.ts +0 -131
- package/lib/components/journey-stopover/journey-stopover.module.d.ts +0 -11
- package/lib/components/journey-stopover/models/stopover-time.model.d.ts +0 -4
- package/lib/components/list/index.d.ts +0 -3
- package/lib/components/list/list-item/list-item.component.d.ts +0 -35
- package/lib/components/list/list.component.d.ts +0 -76
- package/lib/components/list/list.module.d.ts +0 -10
- package/lib/components/micro-button/index.d.ts +0 -2
- package/lib/components/micro-button/micro-button.component.d.ts +0 -139
- package/lib/components/micro-button/micro-button.module.d.ts +0 -10
- package/lib/components/modal/index.d.ts +0 -2
- package/lib/components/modal/modal.component.d.ts +0 -119
- package/lib/components/modal/modal.module.d.ts +0 -12
- package/lib/components/number-field/index.d.ts +0 -3
- package/lib/components/number-field/models/number-field.model.d.ts +0 -5
- package/lib/components/number-field/number-field.component.d.ts +0 -124
- package/lib/components/number-field/number-field.module.d.ts +0 -12
- package/lib/components/page-footer/index.d.ts +0 -2
- package/lib/components/page-footer/page-footer.component.d.ts +0 -53
- package/lib/components/page-footer/page-footer.module.d.ts +0 -11
- package/lib/components/page-header/hamburger/hamburger.component.d.ts +0 -12
- package/lib/components/page-header/index.d.ts +0 -5
- package/lib/components/page-header/models/wallet.model.d.ts +0 -21
- package/lib/components/page-header/page-header.component.d.ts +0 -127
- package/lib/components/page-header/page-header.module.d.ts +0 -17
- package/lib/components/page-header/search/search.component.d.ts +0 -26
- package/lib/components/page-header/wallet/wallet.component.d.ts +0 -23
- package/lib/components/passenger-select/enums/passenger-type.enum.d.ts +0 -7
- package/lib/components/passenger-select/index.d.ts +0 -4
- package/lib/components/passenger-select/models/passengers.model.d.ts +0 -11
- package/lib/components/passenger-select/passenger-select.component.d.ts +0 -141
- package/lib/components/passenger-select/passenger-select.module.d.ts +0 -10
- package/lib/components/phone-number/index.d.ts +0 -2
- package/lib/components/phone-number/phone-number.component.d.ts +0 -263
- package/lib/components/phone-number/phone-number.module.d.ts +0 -13
- package/lib/components/premium-toggle/index.d.ts +0 -2
- package/lib/components/premium-toggle/premium-toggle.component.d.ts +0 -50
- package/lib/components/premium-toggle/premium-toggle.module.d.ts +0 -10
- package/lib/components/radio/index.d.ts +0 -2
- package/lib/components/radio/radio.component.d.ts +0 -137
- package/lib/components/radio/radio.module.d.ts +0 -10
- package/lib/components/ribbon-banner/index.d.ts +0 -2
- package/lib/components/ribbon-banner/ribbon-banner.component.d.ts +0 -66
- package/lib/components/ribbon-banner/ribbon-banner.module.d.ts +0 -13
- package/lib/components/select/index.d.ts +0 -5
- package/lib/components/select/models/select-option.model.d.ts +0 -4
- package/lib/components/select/optgroup/optgroup.component.d.ts +0 -25
- package/lib/components/select/option/option.component.d.ts +0 -24
- package/lib/components/select/select.component.d.ts +0 -204
- package/lib/components/select/select.module.d.ts +0 -13
- package/lib/components/select-new/index.d.ts +0 -4
- package/lib/components/select-new/models/select-option.model.d.ts +0 -6
- package/lib/components/select-new/optgroup/optgroup-new.component.d.ts +0 -8
- package/lib/components/select-new/option/option-new.component.d.ts +0 -16
- package/lib/components/select-new/select-new.component.d.ts +0 -173
- package/lib/components/select-new/select-new.module.d.ts +0 -14
- package/lib/components/select-new/services/select-new.service.d.ts +0 -10
- package/lib/components/simple-list/index.d.ts +0 -2
- package/lib/components/simple-list/simple-list.component.d.ts +0 -60
- package/lib/components/simple-list/simple-list.module.d.ts +0 -9
- package/lib/components/slide-toggle/index.d.ts +0 -2
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +0 -70
- package/lib/components/slide-toggle/slide-toggle.module.d.ts +0 -10
- package/lib/components/slider/index.d.ts +0 -2
- package/lib/components/slider/slider.component.d.ts +0 -216
- package/lib/components/slider/slider.module.d.ts +0 -10
- package/lib/components/sort/index.d.ts +0 -2
- package/lib/components/sort/sort.component.d.ts +0 -55
- package/lib/components/sort/sort.module.d.ts +0 -12
- package/lib/components/spinner/index.d.ts +0 -2
- package/lib/components/spinner/spinner.component.d.ts +0 -104
- package/lib/components/spinner/spinner.module.d.ts +0 -9
- package/lib/components/status-box/index.d.ts +0 -3
- package/lib/components/status-box/models/status-box.model.d.ts +0 -5
- package/lib/components/status-box/status-box.component.d.ts +0 -92
- package/lib/components/status-box/status-box.module.d.ts +0 -11
- package/lib/components/suggestions/index.d.ts +0 -2
- package/lib/components/suggestions/suggestions.component.d.ts +0 -36
- package/lib/components/suggestions/suggestions.module.d.ts +0 -10
- package/lib/components/tab-group/index.d.ts +0 -3
- package/lib/components/tab-group/tab/tab.component.d.ts +0 -97
- package/lib/components/tab-group/tab-group.component.d.ts +0 -42
- package/lib/components/tab-group/tab-group.module.d.ts +0 -11
- package/lib/components/table/column/column.component.d.ts +0 -6
- package/lib/components/table/column-group/column-group.component.d.ts +0 -15
- package/lib/components/table/index.d.ts +0 -10
- package/lib/components/table/services/table.service.d.ts +0 -8
- package/lib/components/table/table-body/table-body.component.d.ts +0 -15
- package/lib/components/table/table-foot/table-foot.component.d.ts +0 -15
- package/lib/components/table/table-head/table-head.component.d.ts +0 -15
- package/lib/components/table/table-row/table-data/table-data.component.d.ts +0 -5
- package/lib/components/table/table-row/table-header/table-header.component.d.ts +0 -5
- package/lib/components/table/table-row/table-row.component.d.ts +0 -15
- package/lib/components/table/table.component.d.ts +0 -19
- package/lib/components/table/table.module.d.ts +0 -17
- package/lib/components/tag/index.d.ts +0 -2
- package/lib/components/tag/tag.component.d.ts +0 -71
- package/lib/components/tag/tag.module.d.ts +0 -10
- package/lib/components/textarea/index.d.ts +0 -2
- package/lib/components/textarea/textarea.component.d.ts +0 -156
- package/lib/components/textarea/textarea.module.d.ts +0 -11
- package/lib/components/toggle/index.d.ts +0 -2
- package/lib/components/toggle/models/options.model.d.ts +0 -7
- package/lib/components/toggle/toggle.component.d.ts +0 -159
- package/lib/components/toggle/toggle.module.d.ts +0 -11
- package/lib/components/tooltip/index.d.ts +0 -2
- package/lib/components/tooltip/tooltip.component.d.ts +0 -63
- package/lib/components/tooltip/tooltip.module.d.ts +0 -10
- package/lib/components/trip-summary/index.d.ts +0 -2
- package/lib/components/trip-summary/trip-summary.component.d.ts +0 -162
- package/lib/components/trip-summary/trip-summary.module.d.ts +0 -12
- package/lib/core/base/nas-component.base.d.ts +0 -11
- package/lib/core/decorators/debounce.decorator.d.ts +0 -1
- package/lib/core/directives/index.d.ts +0 -2
- package/lib/core/directives/nas-class/nas-class.directive.d.ts +0 -14
- package/lib/core/directives/nas-class/nas-class.module.d.ts +0 -8
- package/lib/core/extensions/html-element.extension.d.ts +0 -6
- package/lib/core/index.d.ts +0 -4
- package/lib/core/models/abandoned-basket-item.model.d.ts +0 -14
- package/lib/core/models/animate.model.d.ts +0 -6
- package/lib/core/models/class.model.d.ts +0 -7
- package/lib/core/models/index.d.ts +0 -6
- package/lib/core/models/link.model.d.ts +0 -5
- package/lib/core/models/position.model.d.ts +0 -4
- package/lib/core/models/utc-date.model.d.ts +0 -13
- package/lib/core/services/abandoned-basket/abandoned-basket.service.d.ts +0 -10
- package/lib/core/services/animate-helper/animate-helper.service.d.ts +0 -9
- package/lib/core/services/bem-helper/bem-helper.service.d.ts +0 -7
- package/lib/core/services/date/date-compare.enum.d.ts +0 -5
- package/lib/core/services/date/date-helper.service.d.ts +0 -22
- package/lib/core/services/device/device-helper.service.d.ts +0 -16
- package/lib/core/services/geolocation/geolocation-state.enum.d.ts +0 -6
- package/lib/core/services/geolocation/geolocation.service.d.ts +0 -9
- package/lib/core/services/index.d.ts +0 -9
- package/lib/core/services/language/language-helper.service.d.ts +0 -12
- package/lib/core/services/sort/sort.service.d.ts +0 -6
- package/lib/core/services/viewport/viewport.service.d.ts +0 -11
- package/lib/index.d.ts +0 -4
- package/lib/services/get-position.service.d.ts +0 -9
- package/lib/services/index.d.ts +0 -1
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/models/flight-details.d.ts +0 -22
- package/lib/shared/models/index.d.ts +0 -5
- package/lib/shared/models/journey-availability-sort.model.d.ts +0 -8
- package/lib/shared/models/journey-availability.model.d.ts +0 -25
- package/lib/shared/models/journey-details.model.d.ts +0 -8
- package/lib/shared/models/journey-duration.model.d.ts +0 -7
- package/lib/shared/models/journey-stopover.model.d.ts +0 -15
- package/lib/shared/models/journey-transit-info.model.d.ts +0 -5
- package/lib/shared/models/operating-carrier.model.d.ts +0 -4
- package/lib/shared/models/sort-option.model.d.ts +0 -11
- package/lib/shared/models/sort.model.d.ts +0 -10
- package/lib/shared/models/trip-item-details.model.d.ts +0 -12
- package/lib/shared/models/trip-summary-details.model.d.ts +0 -5
- package/lib/shared/models/trip-summary.model.d.ts +0 -4
- package/public_api.d.ts +0 -1
- /package/assets/icons/{icon-chevron-left--light.svg → medium/chevron-left--light.svg} +0 -0
- /package/assets/icons/{icon-chevron-left.svg → medium/chevron-left.svg} +0 -0
- /package/assets/icons/{icon-chevron-right--light.svg → medium/chevron-right--light.svg} +0 -0
- /package/assets/icons/{icon-chevron-right.svg → medium/chevron-right.svg} +0 -0
- /package/assets/images/{cloud-1.svg → cloud.svg} +0 -0
package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts
DELETED
|
@@ -1,100 +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
|
-
id: string;
|
|
32
|
-
displayLatestSearches?: boolean;
|
|
33
|
-
displayClosestAirports?: boolean;
|
|
34
|
-
latestSearches: Array<AirportModel>;
|
|
35
|
-
resultsLabels: ResultsLabelsModel;
|
|
36
|
-
airportSelectLabel: string;
|
|
37
|
-
airportSelectPlaceholder: string;
|
|
38
|
-
airportSelectIconModifier: string;
|
|
39
|
-
labelOutside: boolean;
|
|
40
|
-
keepSelection: boolean;
|
|
41
|
-
nasFormControlName: string;
|
|
42
|
-
nasFormGroup: FormGroup;
|
|
43
|
-
enableGeolocation?: boolean;
|
|
44
|
-
ariaLabelClear: string;
|
|
45
|
-
ariaLabelBackdrop: string;
|
|
46
|
-
isValid: boolean;
|
|
47
|
-
invalidText: string;
|
|
48
|
-
noAirportsAvailable: boolean;
|
|
49
|
-
get closestAirports(): Array<AirportModel>;
|
|
50
|
-
set closestAirports(airports: Array<AirportModel>);
|
|
51
|
-
get airport(): AirportModel;
|
|
52
|
-
set airport(airport: AirportModel);
|
|
53
|
-
get open(): boolean;
|
|
54
|
-
set open(value: boolean);
|
|
55
|
-
get airports(): Array<AirportModel>;
|
|
56
|
-
set airports(airports: Array<AirportModel>);
|
|
57
|
-
selected: EventEmitter<AirportModel>;
|
|
58
|
-
openChange: EventEmitter<boolean>;
|
|
59
|
-
focusOnNext: EventEmitter<KeyboardEvent>;
|
|
60
|
-
focusOnPrevious: EventEmitter<any>;
|
|
61
|
-
positionChange: EventEmitter<GeolocationPosition>;
|
|
62
|
-
clearedSelection: EventEmitter<void>;
|
|
63
|
-
get selectedModel(): string;
|
|
64
|
-
set selectedModel(model: string);
|
|
65
|
-
get resultsId(): string;
|
|
66
|
-
get labelId(): string;
|
|
67
|
-
get inputId(): string;
|
|
68
|
-
get geolocationIcon(): string;
|
|
69
|
-
private lastSelectedModel;
|
|
70
|
-
private selectedModelValue;
|
|
71
|
-
private inputSelectionTimeout;
|
|
72
|
-
private closestAirportsValue;
|
|
73
|
-
private componentId;
|
|
74
|
-
constructor(document: any, selectService: AirportSelectService, airportSelectDropdownService: AirportSelectDropdownService, geolocationService: GeolocationService);
|
|
75
|
-
ngOnInit(): void;
|
|
76
|
-
getAllAirportsAirportId(airportCode: string): string;
|
|
77
|
-
getClosestAirportsAirportId(airportCode: string): string;
|
|
78
|
-
getLatestSearchesAirportId(airportCode: string): string;
|
|
79
|
-
updateCurrentPosition(): void;
|
|
80
|
-
setOpen(): void;
|
|
81
|
-
onGeolocationHover(hover: boolean): void;
|
|
82
|
-
blur(): void;
|
|
83
|
-
filter(): void;
|
|
84
|
-
clearSelected(event: Event): void;
|
|
85
|
-
focusDown(): void;
|
|
86
|
-
focusUp(): void;
|
|
87
|
-
setSelected(airport: AirportModel): void;
|
|
88
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
89
|
-
private resetFilter;
|
|
90
|
-
private updateSelected;
|
|
91
|
-
private focusDownLatestSearches;
|
|
92
|
-
private focusDownClosestAirports;
|
|
93
|
-
private focusDownAirports;
|
|
94
|
-
private focusUpAirports;
|
|
95
|
-
private autoScroll;
|
|
96
|
-
private focusUpLatestSearches;
|
|
97
|
-
private focusUpClosestAirports;
|
|
98
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectDropdownComponent, never>;
|
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AirportSelectDropdownComponent, "nas-airport-select-dropdown", never, { "id": { "alias": "id"; "required": false; }; "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; }; "labelOutside": { "alias": "labelOutside"; "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; }; "noAirportsAvailable": { "alias": "noAirportsAvailable"; "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>;
|
|
100
|
-
}
|
|
@@ -1,330 +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, ChangeDetectorRef } 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 { DeviceHelper } from '../../core/services/device/device-helper.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* @description
|
|
16
|
-
* Norwegian Airport Select Component | Functional | New design
|
|
17
|
-
*/
|
|
18
|
-
export declare class AirportSelectComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
19
|
-
private deviceHelper;
|
|
20
|
-
private cdr;
|
|
21
|
-
airportsOrigin: Array<AirportModel>;
|
|
22
|
-
airportsDestination: AirportModel[];
|
|
23
|
-
currentLatestSearchesDestination: Array<AirportModel>;
|
|
24
|
-
closestAirportsDestination: Array<AirportModel>;
|
|
25
|
-
focusDestination: boolean;
|
|
26
|
-
textSelectOriginFirst: string;
|
|
27
|
-
focusedLatestSearchesAirportCodeDestination: string;
|
|
28
|
-
focusedAirportCodeDestination: string;
|
|
29
|
-
focusedLatestSearchesIndexDestination: number;
|
|
30
|
-
focusedAirportIndexDestination: number;
|
|
31
|
-
switchType: string;
|
|
32
|
-
isDestinationValid: boolean;
|
|
33
|
-
inlineFlex: boolean;
|
|
34
|
-
noDestinationAirportsAvailable: boolean;
|
|
35
|
-
resultsLabels: ResultsLabelsModel;
|
|
36
|
-
originOpen: boolean;
|
|
37
|
-
destinationOpen: boolean;
|
|
38
|
-
cleared: boolean;
|
|
39
|
-
container: ElementRef;
|
|
40
|
-
switchButton: ElementRef;
|
|
41
|
-
airportSelectDropdownOrigin: AirportSelectDropdownComponent;
|
|
42
|
-
airportSelectDropdownDestination: AirportSelectDropdownComponent;
|
|
43
|
-
origin: AirportModel;
|
|
44
|
-
destination: AirportModel;
|
|
45
|
-
/**
|
|
46
|
-
* @property Input
|
|
47
|
-
* @description
|
|
48
|
-
* The outbound aiport select ID of the native input element
|
|
49
|
-
*/
|
|
50
|
-
outboundId: string;
|
|
51
|
-
/**
|
|
52
|
-
* @property Input
|
|
53
|
-
* @description
|
|
54
|
-
* The inbound aiport select ID of the native input element
|
|
55
|
-
*/
|
|
56
|
-
inboundId: string;
|
|
57
|
-
/**
|
|
58
|
-
* @property Input
|
|
59
|
-
* @required
|
|
60
|
-
* @description
|
|
61
|
-
* All airports that will be populated into the dropdown lists.
|
|
62
|
-
*/
|
|
63
|
-
airports: Array<AirportModel>;
|
|
64
|
-
/**
|
|
65
|
-
* @property Input
|
|
66
|
-
* @description
|
|
67
|
-
* A record containing keys with all airport codes with corresponding array of airport codes connected to the key.
|
|
68
|
-
*/
|
|
69
|
-
airportRelations: Record<string, Array<string>>;
|
|
70
|
-
/**
|
|
71
|
-
* @property Input
|
|
72
|
-
* @description
|
|
73
|
-
* An array of origin airports that the user has allready search for.
|
|
74
|
-
*/
|
|
75
|
-
latestSearchesOrigin: Array<AirportModel>;
|
|
76
|
-
/**
|
|
77
|
-
* @property Input
|
|
78
|
-
* @description
|
|
79
|
-
* An array of destination airports that the user has allready search for.
|
|
80
|
-
*/
|
|
81
|
-
latestSearchesDestination: Array<AirportModel>;
|
|
82
|
-
/**
|
|
83
|
-
* @property Input
|
|
84
|
-
* @description
|
|
85
|
-
* An array of airports that are close to the user.
|
|
86
|
-
*/
|
|
87
|
-
closestAirports: Array<AirportModel>;
|
|
88
|
-
/**
|
|
89
|
-
* @property Input
|
|
90
|
-
* @description
|
|
91
|
-
* A list of airports that should be displayed in the origin dropdown.
|
|
92
|
-
* If not included, all airports will be displayed.
|
|
93
|
-
*/
|
|
94
|
-
allowedOriginAiports: Array<AirportModel>;
|
|
95
|
-
/**
|
|
96
|
-
* @property Input
|
|
97
|
-
* @description
|
|
98
|
-
* An array of airports that are restricted for destination airports. It will default to airports if not set.
|
|
99
|
-
*/
|
|
100
|
-
allowedDestinationAirports: Array<AirportModel>;
|
|
101
|
-
/**
|
|
102
|
-
* @property Input
|
|
103
|
-
* @description
|
|
104
|
-
* A boolean indicating if airports that the user allready has searh for should be displayed.
|
|
105
|
-
*/
|
|
106
|
-
displayLatestSearches?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* @property Input
|
|
109
|
-
* @description
|
|
110
|
-
* A boolean indicating if airports that are close to the user should be displayed.
|
|
111
|
-
*/
|
|
112
|
-
displayClosestAirports?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* @property Input
|
|
115
|
-
* @description
|
|
116
|
-
* Display both orgin and destination airport selector.
|
|
117
|
-
*/
|
|
118
|
-
combo?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* @property Input
|
|
121
|
-
* @description
|
|
122
|
-
* Display switch UI to interchange origin and destination airport.
|
|
123
|
-
*/
|
|
124
|
-
useSwitch?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* @property Input
|
|
127
|
-
* @description
|
|
128
|
-
* A label that will appear on top of all airports in the drop down list.
|
|
129
|
-
*/
|
|
130
|
-
allAirportsLabel: string;
|
|
131
|
-
/**
|
|
132
|
-
* @property Input
|
|
133
|
-
* @description
|
|
134
|
-
* A label that will appear on top of the latest searches in the drop down list.
|
|
135
|
-
*/
|
|
136
|
-
latestSearchesLabel: string;
|
|
137
|
-
/**
|
|
138
|
-
* @property Input
|
|
139
|
-
* @description
|
|
140
|
-
* A label that will appear on top of the closest airports in the drop down list.
|
|
141
|
-
*/
|
|
142
|
-
closestAirportsLabel: string;
|
|
143
|
-
/**
|
|
144
|
-
* @property Input
|
|
145
|
-
* @description
|
|
146
|
-
* A label that will appear in my location in the drop down list.
|
|
147
|
-
*/
|
|
148
|
-
geolocationLabel: string;
|
|
149
|
-
/**
|
|
150
|
-
* @property Input
|
|
151
|
-
* @description
|
|
152
|
-
* A label that will appear in my location, in the drop down list if user has denied geolocation.
|
|
153
|
-
*/
|
|
154
|
-
geolocationBlockedLabel: string;
|
|
155
|
-
/**
|
|
156
|
-
* @property Input
|
|
157
|
-
* @description
|
|
158
|
-
* A label that will appear in the destination input field if the
|
|
159
|
-
* user tries to select a destination airport without selecting an origin airport.
|
|
160
|
-
*/
|
|
161
|
-
selectOriginFirstLabel: string;
|
|
162
|
-
/**
|
|
163
|
-
* @property Input
|
|
164
|
-
* @description
|
|
165
|
-
* A label that appear in the list that there is currently no airports
|
|
166
|
-
*/
|
|
167
|
-
noAirportsLabel: string;
|
|
168
|
-
/**
|
|
169
|
-
* @property Input
|
|
170
|
-
* @description
|
|
171
|
-
* A text that appears in the destinations dropdown list when origin airport is not set.
|
|
172
|
-
*/
|
|
173
|
-
invalidDestinationText: string;
|
|
174
|
-
/**
|
|
175
|
-
* @property Input
|
|
176
|
-
* @required
|
|
177
|
-
* @description
|
|
178
|
-
* A label that will appear on top of the origin airport input field.
|
|
179
|
-
*/
|
|
180
|
-
labelOrigin: string;
|
|
181
|
-
/**
|
|
182
|
-
* @property Input
|
|
183
|
-
* @description
|
|
184
|
-
* A placeholder that will appear on the origin airport input field.
|
|
185
|
-
*/
|
|
186
|
-
placeholderOrigin: string;
|
|
187
|
-
/**
|
|
188
|
-
* @property Input
|
|
189
|
-
* @description
|
|
190
|
-
* A label that will appear on top of the destination airport input field.
|
|
191
|
-
*/
|
|
192
|
-
labelDestination: string;
|
|
193
|
-
/**
|
|
194
|
-
* @property Input
|
|
195
|
-
* @description
|
|
196
|
-
* A placeholder that will appear on the destination airport input field.
|
|
197
|
-
*/
|
|
198
|
-
placeholderDestination: string;
|
|
199
|
-
/**
|
|
200
|
-
* @property Input
|
|
201
|
-
* @description
|
|
202
|
-
* Decides if a label should be outside of the container or not.
|
|
203
|
-
*/
|
|
204
|
-
labelOutside: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* @property Input
|
|
207
|
-
* @description
|
|
208
|
-
* A modifier that will allow always keeping the selected airport.
|
|
209
|
-
* The last selected airport will be shown once user clears the selection and blur.
|
|
210
|
-
*/
|
|
211
|
-
keepSelection: boolean;
|
|
212
|
-
/**
|
|
213
|
-
* @property Input
|
|
214
|
-
* @description
|
|
215
|
-
* Sets a formControlName directive to the input.
|
|
216
|
-
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
217
|
-
* It requiers that the nasFormGroup input is filled.
|
|
218
|
-
*/
|
|
219
|
-
nasFormControlNameOrigin: string;
|
|
220
|
-
/**
|
|
221
|
-
* @property Input
|
|
222
|
-
* @description
|
|
223
|
-
* Sets a formControlName directive to the input.
|
|
224
|
-
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
225
|
-
* It requiers that the nasFormGroup input is filled.
|
|
226
|
-
*/
|
|
227
|
-
nasFormControlNameDestination: string;
|
|
228
|
-
/**
|
|
229
|
-
* @property Input
|
|
230
|
-
* @description
|
|
231
|
-
* Adds the parent's form group.
|
|
232
|
-
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
233
|
-
* It is requiered to be filled if nasFormControlName added.
|
|
234
|
-
*/
|
|
235
|
-
nasFormGroup: FormGroup;
|
|
236
|
-
/**
|
|
237
|
-
* @property Input
|
|
238
|
-
* @description
|
|
239
|
-
* The airport code of the origin airport. It will set the selected origin airport based on this value.
|
|
240
|
-
*/
|
|
241
|
-
get originAirportCode(): string;
|
|
242
|
-
set originAirportCode(code: string);
|
|
243
|
-
/**
|
|
244
|
-
* @property Input
|
|
245
|
-
* @description
|
|
246
|
-
* The airport code of the destination airport. It will set the selected destination airport based on this value.
|
|
247
|
-
*/
|
|
248
|
-
get destinationAirportCode(): string;
|
|
249
|
-
set destinationAirportCode(code: string);
|
|
250
|
-
/**
|
|
251
|
-
* @property Input
|
|
252
|
-
* @description
|
|
253
|
-
* Adds 'aria-label' on the clear button inside the airport select inputs.
|
|
254
|
-
*/
|
|
255
|
-
ariaLabelClear: string;
|
|
256
|
-
/**
|
|
257
|
-
* @property Input
|
|
258
|
-
* @description
|
|
259
|
-
* Adds 'aria-label' to the backdrops.
|
|
260
|
-
*/
|
|
261
|
-
ariaLabelBackdrop: string;
|
|
262
|
-
/**
|
|
263
|
-
* @property Output
|
|
264
|
-
* @description
|
|
265
|
-
* An event that is fired every time the selected origin airport changes.
|
|
266
|
-
*/
|
|
267
|
-
originChange: EventEmitter<AirportModel>;
|
|
268
|
-
/**
|
|
269
|
-
* @property Output
|
|
270
|
-
* @description
|
|
271
|
-
* An event that is fired every time the origin dropdown selector opens or closes.
|
|
272
|
-
*/
|
|
273
|
-
originOpenChange: EventEmitter<boolean>;
|
|
274
|
-
/**
|
|
275
|
-
* @property Output
|
|
276
|
-
* @description
|
|
277
|
-
* An event that is fired every time the origin dropdown selector opens or closes.
|
|
278
|
-
*/
|
|
279
|
-
destinationChange: EventEmitter<AirportModel>;
|
|
280
|
-
/**
|
|
281
|
-
* @property Output
|
|
282
|
-
* @description
|
|
283
|
-
* An event that is fired every time the destination dropdown selector opens or closes.
|
|
284
|
-
*/
|
|
285
|
-
destinationOpenChange: EventEmitter<boolean>;
|
|
286
|
-
/**
|
|
287
|
-
* @property Output
|
|
288
|
-
* @description
|
|
289
|
-
* An event that is fired when the destination dropdown closes.
|
|
290
|
-
*/
|
|
291
|
-
focusOnNext: EventEmitter<KeyboardEvent>;
|
|
292
|
-
/**
|
|
293
|
-
* @property Output
|
|
294
|
-
* @description
|
|
295
|
-
* An event that is fired when geolocation position has changed.
|
|
296
|
-
*/
|
|
297
|
-
positionChange: EventEmitter<GeolocationPosition>;
|
|
298
|
-
private originAirportCodeValue;
|
|
299
|
-
private destinationAirportCodeValue;
|
|
300
|
-
constructor(deviceHelper: DeviceHelper, cdr: ChangeDetectorRef);
|
|
301
|
-
onResize(): void;
|
|
302
|
-
ngOnInit(): void;
|
|
303
|
-
ngAfterViewInit(): void;
|
|
304
|
-
getAirportSelectComboClass(element?: string, modifiersInput?: any): ClassModel;
|
|
305
|
-
onOriginOpen(open: boolean): void;
|
|
306
|
-
onDestinationOpen(open: boolean): void;
|
|
307
|
-
onSelectionCleared(): void;
|
|
308
|
-
setSelectedOrigin(airport: AirportModel): void;
|
|
309
|
-
setSelectedDestination(airport: AirportModel): void;
|
|
310
|
-
setFocusOnNext(event: KeyboardEvent): void;
|
|
311
|
-
onOriginFocus(): void;
|
|
312
|
-
changeSwitchIcon(): void;
|
|
313
|
-
swapAirports(): void;
|
|
314
|
-
swapKeyDown(event: KeyboardEvent): void;
|
|
315
|
-
setDestinationOpen(event: KeyboardEvent): void;
|
|
316
|
-
getClosestAirports(position: GeolocationPosition): void;
|
|
317
|
-
setInlineFlex(): void;
|
|
318
|
-
private getAirportsDestinations;
|
|
319
|
-
private setOrigin;
|
|
320
|
-
private setDestination;
|
|
321
|
-
private updateValidAirportDestinations;
|
|
322
|
-
private hasValidDestinations;
|
|
323
|
-
private getAirportRelations;
|
|
324
|
-
private clearOrigin;
|
|
325
|
-
clearDestination(): void;
|
|
326
|
-
private clearDestinations;
|
|
327
|
-
private setCurrentLatestSearchesDestination;
|
|
328
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectComponent, never>;
|
|
329
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AirportSelectComponent, "nas-airport-select", never, { "outboundId": { "alias": "outboundId"; "required": false; }; "inboundId": { "alias": "inboundId"; "required": false; }; "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; }; "noAirportsLabel": { "alias": "noAirportsLabel"; "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; }; "labelOutside": { "alias": "labelOutside"; "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>;
|
|
330
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./airport-select.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 AirportSelectModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AirportSelectModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AirportSelectModule, [typeof i1.AirportSelectComponent, typeof i2.AirportSelectDropdownComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.NasClassModule, typeof i6.IconModule, typeof i4.ReactiveFormsModule, typeof i7.ButtonModule], [typeof i1.AirportSelectComponent]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AirportSelectModule>;
|
|
13
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './airport-select.component';
|
|
2
|
-
export * from './airport-select.module';
|
|
3
|
-
export * from './models/airport.model';
|
|
4
|
-
export * from './models/airport-select-event.model';
|
|
5
|
-
export * from './models/airport-select-state.model';
|
|
6
|
-
export * from './models/results-labels.model';
|
|
@@ -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,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,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
|
-
*/
|
|
5
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
6
|
-
import { NasComponentBase } from '../../core';
|
|
7
|
-
import { ClassModel } from '../../core/models/class.model';
|
|
8
|
-
import { AlertModel } from './models/alert.model';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @description
|
|
12
|
-
* Norwegian alert Component | Dialogs and Modals
|
|
13
|
-
*/
|
|
14
|
-
export declare class AlertComponent extends NasComponentBase {
|
|
15
|
-
private alertModel;
|
|
16
|
-
showChange: EventEmitter<boolean>;
|
|
17
|
-
alertContainer: ElementRef;
|
|
18
|
-
timestamp: Date;
|
|
19
|
-
showValue: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @property Input
|
|
22
|
-
* @description
|
|
23
|
-
*String to give the alert title
|
|
24
|
-
*/
|
|
25
|
-
title: string;
|
|
26
|
-
/**
|
|
27
|
-
* @property Input
|
|
28
|
-
* @description
|
|
29
|
-
* Boolean to give the alert info.
|
|
30
|
-
*/
|
|
31
|
-
info: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* @property Input
|
|
34
|
-
* @description
|
|
35
|
-
* Boolean to give the alert a warning.
|
|
36
|
-
*/
|
|
37
|
-
warning: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* @property Input
|
|
40
|
-
* @description
|
|
41
|
-
* Boolean to give the alert an error.
|
|
42
|
-
*/
|
|
43
|
-
error: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* @property Input
|
|
46
|
-
* @description
|
|
47
|
-
* Boolean to give the alert a success.
|
|
48
|
-
*/
|
|
49
|
-
success: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* @property Input
|
|
52
|
-
* @description
|
|
53
|
-
* Boolean to give the alert as neutral.
|
|
54
|
-
*/
|
|
55
|
-
neutral: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* @property Input
|
|
58
|
-
* @description
|
|
59
|
-
* Sets text on the alert. If set to false the alert will not display any text.
|
|
60
|
-
*/
|
|
61
|
-
text: string;
|
|
62
|
-
/**
|
|
63
|
-
* @property Input
|
|
64
|
-
* @description
|
|
65
|
-
* Sets the stack trace label
|
|
66
|
-
*/
|
|
67
|
-
stackTraceLabel: string;
|
|
68
|
-
/**
|
|
69
|
-
* @property Input
|
|
70
|
-
* @description
|
|
71
|
-
* Flag for showing/hiding element. Defaults to true.
|
|
72
|
-
*/
|
|
73
|
-
get show(): boolean;
|
|
74
|
-
set show(value: boolean);
|
|
75
|
-
/**
|
|
76
|
-
* @property Input
|
|
77
|
-
* @description
|
|
78
|
-
* Boolean to give opportunity to close the alert box
|
|
79
|
-
*/
|
|
80
|
-
removable: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* @property Input
|
|
83
|
-
* @description
|
|
84
|
-
* Boolean to give opportunity to remove the icon
|
|
85
|
-
*/
|
|
86
|
-
removeIcon?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* @property Input
|
|
89
|
-
* @description
|
|
90
|
-
* Get or sets boolean value indicating whether text should be trusted as HTML. Defaults to false
|
|
91
|
-
*/
|
|
92
|
-
trustTextHtml: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* @property Input
|
|
95
|
-
* @description
|
|
96
|
-
* Flag for allowing autoscroll to top when showing. Default false.
|
|
97
|
-
*/
|
|
98
|
-
allowAutoScroll: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* @property Input
|
|
101
|
-
* @description
|
|
102
|
-
* Sets the server string value
|
|
103
|
-
*/
|
|
104
|
-
server: string;
|
|
105
|
-
/**
|
|
106
|
-
* @property Input
|
|
107
|
-
* @description
|
|
108
|
-
* Sets the correlation string value
|
|
109
|
-
*/
|
|
110
|
-
correlation: string;
|
|
111
|
-
/**
|
|
112
|
-
* @property Input
|
|
113
|
-
* @description
|
|
114
|
-
* A model that contains an optional title and an array of messages.
|
|
115
|
-
* @example
|
|
116
|
-
* <nas-alert [alert]="alert"></nas-alert>
|
|
117
|
-
*/
|
|
118
|
-
get alert(): AlertModel;
|
|
119
|
-
set alert(alert: AlertModel);
|
|
120
|
-
constructor();
|
|
121
|
-
getClasses(element?: string, modifiers?: Array<string>): Array<ClassModel>;
|
|
122
|
-
get modifiers(): Array<string>;
|
|
123
|
-
getIcon(): string;
|
|
124
|
-
removeAlertBox(): void;
|
|
125
|
-
private scrollToAlert;
|
|
126
|
-
private setAlertValues;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "nas-alert", never, { "timestamp": { "alias": "timestamp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "info": { "alias": "info"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "neutral": { "alias": "neutral"; "required": false; }; "text": { "alias": "text"; "required": false; }; "stackTraceLabel": { "alias": "stackTraceLabel"; "required": false; }; "show": { "alias": "show"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "trustTextHtml": { "alias": "trustTextHtml"; "required": false; }; "allowAutoScroll": { "alias": "allowAutoScroll"; "required": false; }; "server": { "alias": "server"; "required": false; }; "correlation": { "alias": "correlation"; "required": false; }; "alert": { "alias": "alert"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
|
|
129
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./alert.component";
|
|
3
|
-
import * as i2 from "../icon/icon.module";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "../../core/directives/nas-class/nas-class.module";
|
|
6
|
-
import * as i5 from "../button/button.module";
|
|
7
|
-
import * as i6 from "../accordion/accordion.module";
|
|
8
|
-
export declare class AlertModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertComponent], [typeof i2.IconModule, typeof i3.CommonModule, typeof i4.NasClassModule, typeof i5.ButtonModule, typeof i6.AccordionModule], [typeof i1.AlertComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
12
|
-
}
|