@norwegian/core-components 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -0
- package/assets/documentation/accordion/accordion.md +1 -0
- package/assets/documentation/airport-select/airport-select.md +0 -0
- package/assets/documentation/autocomplete/autocomplete.md +1 -0
- package/assets/documentation/box/box.md +1 -0
- package/assets/documentation/button/button.md +10 -0
- package/assets/documentation/checkbox/checkbox.md +7 -0
- package/assets/documentation/chip/chip.md +1 -0
- package/assets/documentation/container/container.md +1 -0
- package/assets/documentation/continue/continue.md +1 -0
- package/assets/documentation/cover/cover.md +1 -0
- package/assets/documentation/datepicker/calendar/calendar.md +3 -0
- package/assets/documentation/datepicker/datepicker.md +3 -0
- package/assets/documentation/datepicker-combo/datepicker-combo.md +1 -0
- package/assets/documentation/dropdown/dropdown.md +3 -0
- package/assets/documentation/filter/filter.md +0 -0
- package/assets/documentation/grid/grid.md +1 -0
- package/assets/documentation/icon/icon.md +4 -0
- package/assets/documentation/icon-list/icon-list.md +1 -0
- package/assets/documentation/info/info.md +1 -0
- package/assets/documentation/input/input.md +1 -0
- package/assets/documentation/journey/journey.md +1 -0
- package/assets/documentation/journey-availability/journey-availability.md +3 -0
- package/assets/documentation/journey-availability-list/journey-availability-list.md +9 -0
- package/assets/documentation/journey-selection/journey-selection.md +1 -0
- package/assets/documentation/journey-stopover/journey-stopover.md +1 -0
- package/assets/documentation/list/list.md +1 -0
- package/assets/documentation/modal/modal.md +0 -0
- package/assets/documentation/number-field/number-field.md +1 -0
- package/assets/documentation/page-footer/page-footer.md +1 -0
- package/assets/documentation/page-header/page-header.md +1 -0
- package/assets/documentation/passenger-select/passenger-select.md +1 -0
- package/assets/documentation/phone-number/phone-number.md +2 -0
- package/assets/documentation/premium-toggle/premium-toggle.md +9 -0
- package/assets/documentation/radio/radio.md +7 -0
- package/assets/documentation/select/select.md +1 -0
- package/assets/documentation/simple-list/simple-list.md +1 -0
- package/assets/documentation/slide-toggle/slide-toggle.md +1 -0
- package/assets/documentation/slider/slider.md +1 -0
- package/assets/documentation/sort/sort.md +1 -0
- package/assets/documentation/spinner/spinner.md +1 -0
- package/assets/documentation/subsidy-discount/subsidy-discount.md +3 -0
- package/assets/documentation/suggestions/suggestions.md +1 -0
- package/assets/documentation/tab-group/tab-group.md +1 -0
- package/assets/documentation/table/table.md +8 -0
- package/assets/documentation/textarea/textarea.md +1 -0
- package/assets/documentation/toggle/toggle.md +5 -0
- package/assets/documentation/trip-summary/trip-summary.md +2 -0
- package/assets/documentation/weather-icon/weather-icon.md +1 -0
- package/assets/fonts/TiemposHeadlineWeb-Bold.eot +0 -0
- package/assets/fonts/TiemposHeadlineWeb-Bold.woff +0 -0
- package/assets/fonts/TiemposHeadlineWeb-Bold.woff2 +0 -0
- package/assets/fonts/TiemposHeadlineWeb-BoldItalic.eot +0 -0
- package/assets/fonts/TiemposHeadlineWeb-BoldItalic.woff +0 -0
- package/assets/fonts/TiemposHeadlineWeb-BoldItalic.woff2 +0 -0
- package/assets/fonts/TiemposText-Medium.eot +0 -0
- package/assets/fonts/TiemposText-Medium.woff +0 -0
- package/assets/fonts/TiemposText-Medium.woff2 +0 -0
- package/assets/fonts/TiemposTextWeb-Italic.eot +0 -0
- package/assets/fonts/TiemposTextWeb-Italic.woff +0 -0
- package/assets/fonts/TiemposTextWeb-Italic.woff2 +0 -0
- package/assets/fonts/TiemposTextWeb-Regular.eot +0 -0
- package/assets/fonts/TiemposTextWeb-Regular.woff +0 -0
- package/assets/fonts/TiemposTextWeb-Regular.woff2 +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.svg +12420 -0
- package/assets/fonts/apercu_bold_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_bold_italic_pro.otf +0 -0
- package/assets/fonts/apercu_bold_pro-web.eot +0 -0
- package/assets/fonts/apercu_bold_pro-web.svg +10193 -0
- package/assets/fonts/apercu_bold_pro-web.ttf +0 -0
- package/assets/fonts/apercu_bold_pro-web.woff +0 -0
- package/assets/fonts/apercu_bold_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_bold_pro.otf +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.svg +12831 -0
- package/assets/fonts/apercu_light_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_light_pro-web.eot +0 -0
- package/assets/fonts/apercu_light_pro-web.svg +9704 -0
- package/assets/fonts/apercu_light_pro-web.ttf +0 -0
- package/assets/fonts/apercu_light_pro-web.woff +0 -0
- package/assets/fonts/apercu_light_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.svg +12354 -0
- package/assets/fonts/apercu_medium_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_medium_italic_pro.otf +0 -0
- package/assets/fonts/apercu_medium_pro-web.eot +0 -0
- package/assets/fonts/apercu_medium_pro-web.svg +12254 -0
- package/assets/fonts/apercu_medium_pro-web.ttf +0 -0
- package/assets/fonts/apercu_medium_pro-web.woff +0 -0
- package/assets/fonts/apercu_medium_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_medium_pro.otf +0 -0
- package/assets/fonts/apercu_mono_pro-web.eot +0 -0
- package/assets/fonts/apercu_mono_pro-web.svg +538 -0
- package/assets/fonts/apercu_mono_pro-web.ttf +0 -0
- package/assets/fonts/apercu_mono_pro-web.woff +0 -0
- package/assets/fonts/apercu_mono_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.svg +13059 -0
- package/assets/fonts/apercu_regular_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_regular_italic_pro.otf +0 -0
- package/assets/fonts/apercu_regular_pro-web.eot +0 -0
- package/assets/fonts/apercu_regular_pro-web.svg +11356 -0
- package/assets/fonts/apercu_regular_pro-web.ttf +0 -0
- package/assets/fonts/apercu_regular_pro-web.woff +0 -0
- package/assets/fonts/apercu_regular_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_regular_pro.otf +0 -0
- package/assets/icons/flags/ar.svg +20 -0
- package/assets/icons/flags/br.svg +30 -0
- package/assets/icons/flags/ca.svg +18 -0
- package/assets/icons/flags/de.svg +20 -0
- package/assets/icons/flags/dk.svg +20 -0
- package/assets/icons/flags/en.svg +20 -0
- package/assets/icons/flags/es.svg +20 -0
- package/assets/icons/flags/fi.svg +20 -0
- package/assets/icons/flags/fr.svg +20 -0
- package/assets/icons/flags/ie.svg +22 -0
- package/assets/icons/flags/it.svg +20 -0
- package/assets/icons/flags/nl.svg +20 -0
- package/assets/icons/flags/no.svg +20 -0
- package/assets/icons/flags/pl.svg +20 -0
- package/assets/icons/flags/se.svg +20 -0
- package/assets/icons/flags/uk.svg +20 -0
- package/assets/icons/flags/us.svg +20 -0
- package/assets/icons/icon-add--light.svg +11 -0
- package/assets/icons/icon-add.svg +7 -0
- package/assets/icons/icon-arrow-left--light.svg +7 -0
- package/assets/icons/icon-arrow-left.svg +7 -0
- package/assets/icons/icon-arrow-right--light.svg +7 -0
- package/assets/icons/icon-arrow-right.svg +6 -0
- package/assets/icons/icon-check.svg +7 -0
- package/assets/icons/icon-chevron-down.svg +1 -0
- package/assets/icons/icon-chevron-left--light.svg +1 -0
- package/assets/icons/icon-chevron-left-outlined.svg +4 -0
- package/assets/icons/icon-chevron-left.svg +1 -0
- package/assets/icons/icon-chevron-right--light.svg +1 -0
- package/assets/icons/icon-chevron-right-outlined.svg +4 -0
- package/assets/icons/icon-chevron-right.svg +1 -0
- package/assets/icons/icon-dropdown-arrow--disabled.svg +8 -0
- package/assets/icons/icon-dropdown-arrow--light.svg +8 -0
- package/assets/icons/icon-dropdown-arrow.svg +8 -0
- package/assets/icons/icon-error.svg +11 -0
- package/assets/icons/icon-flight-direct.svg +8 -0
- package/assets/icons/icon-flight-one-stop.svg +8 -0
- package/assets/icons/icon-flight-two-stops.svg +9 -0
- package/assets/icons/icon-geolocation--disabled.svg +8 -0
- package/assets/icons/icon-geolocation--light.svg +8 -0
- package/assets/icons/icon-geolocation.svg +8 -0
- package/assets/icons/icon-goto.svg +8 -0
- package/assets/icons/icon-home.svg +1 -0
- package/assets/icons/icon-marker.svg +8 -0
- package/assets/icons/icon-menu--dark.svg +9 -0
- package/assets/icons/icon-menu.svg +9 -0
- package/assets/icons/icon-nav_right--large.svg +7 -0
- package/assets/icons/icon-nav_right--small.svg +7 -0
- package/assets/icons/icon-nav_right.svg +7 -0
- package/assets/icons/icon-negative.svg +11 -0
- package/assets/icons/icon-ol_li.svg +7 -0
- package/assets/icons/icon-one-stop-arrow.svg +8 -0
- package/assets/icons/icon-passenger--children.svg +1 -0
- package/assets/icons/icon-passenger--female.svg +1 -0
- package/assets/icons/icon-passenger--infant.svg +1 -0
- package/assets/icons/icon-passenger--male.svg +1 -0
- package/assets/icons/icon-positive.svg +10 -0
- package/assets/icons/icon-red-circle.svg +7 -0
- package/assets/icons/icon-remove.svg +8 -0
- package/assets/icons/icon-share_facebook.svg +10 -0
- package/assets/icons/icon-share_instagram.svg +12 -0
- package/assets/icons/icon-share_twitter.svg +13 -0
- package/assets/icons/icon-share_youtube.svg +11 -0
- package/assets/icons/icon-star.svg +9 -0
- package/assets/icons/icon-subtract--light.svg +12 -0
- package/assets/icons/icon-subtract.svg +9 -0
- package/assets/icons/icon-switch--secondary.svg +1 -0
- package/assets/icons/icon-switch.svg +1 -0
- package/assets/icons/icon-two-stops-arrow.svg +10 -0
- package/assets/icons/large/baggage-hand-baggage.svg +41 -0
- package/assets/icons/large/baggage.svg +75 -0
- package/assets/icons/large/car-rentals.svg +61 -0
- package/assets/icons/large/cashpoints.svg +92 -0
- package/assets/icons/large/celebration.svg +77 -0
- package/assets/icons/large/central-airports.svg +44 -0
- package/assets/icons/large/customer-service.svg +47 -0
- package/assets/icons/large/destinations.svg +78 -0
- package/assets/icons/large/direct-flights.svg +73 -0
- package/assets/icons/large/entertainment.svg +89 -0
- package/assets/icons/large/family.svg +88 -0
- package/assets/icons/large/fast-track.svg +57 -0
- package/assets/icons/large/food.svg +48 -0
- package/assets/icons/large/from-a-to-b.svg +66 -0
- package/assets/icons/large/hotels.svg +84 -0
- package/assets/icons/large/lounge.svg +67 -0
- package/assets/icons/large/new-aircrafts.svg +60 -0
- package/assets/icons/large/personnel.svg +54 -0
- package/assets/icons/large/premium.svg +49 -0
- package/assets/icons/large/wifi.svg +112 -0
- package/assets/icons/list--journey.svg +207 -0
- package/assets/icons/medium/accommodation--light.svg +16 -0
- package/assets/icons/medium/accommodation.svg +15 -0
- package/assets/icons/medium/alert--error.svg +11 -0
- package/assets/icons/medium/alert--light.svg +10 -0
- package/assets/icons/medium/alert--success.svg +9 -0
- package/assets/icons/medium/alert.svg +11 -0
- package/assets/icons/medium/arrow-down--light.svg +11 -0
- package/assets/icons/medium/arrow-down.svg +11 -0
- package/assets/icons/medium/arrow-left--light.svg +11 -0
- package/assets/icons/medium/arrow-left.svg +11 -0
- package/assets/icons/medium/arrow-right--light.svg +11 -0
- package/assets/icons/medium/arrow-right.svg +11 -0
- package/assets/icons/medium/arrow-up--light.svg +11 -0
- package/assets/icons/medium/arrow-up.svg +11 -0
- package/assets/icons/medium/baggage--light.svg +10 -0
- package/assets/icons/medium/baggage-checked-in--light.svg +19 -0
- package/assets/icons/medium/baggage-checked-in.svg +20 -0
- package/assets/icons/medium/baggage-hand-baggage--light.svg +32 -0
- package/assets/icons/medium/baggage-hand-baggage.svg +36 -0
- package/assets/icons/medium/baggage-special-baggage--light.svg +21 -0
- package/assets/icons/medium/baggage-special-baggage.svg +23 -0
- package/assets/icons/medium/baggage-sports-equipment--light.svg +18 -0
- package/assets/icons/medium/baggage-sports-equipment.svg +21 -0
- package/assets/icons/medium/baggage.svg +11 -0
- package/assets/icons/medium/baggages--light.svg +1 -0
- package/assets/icons/medium/baggages.svg +1 -0
- package/assets/icons/medium/car-rental--light.svg +26 -0
- package/assets/icons/medium/car-rental.svg +26 -0
- package/assets/icons/medium/card--light.svg +18 -0
- package/assets/icons/medium/card.svg +18 -0
- package/assets/icons/medium/cashpoints--light.svg +29 -0
- package/assets/icons/medium/cashpoints.svg +31 -0
- package/assets/icons/medium/central-airports--light.svg +25 -0
- package/assets/icons/medium/central-airports.svg +25 -0
- package/assets/icons/medium/customer-service--light.svg +19 -0
- package/assets/icons/medium/customer-service.svg +22 -0
- package/assets/icons/medium/direct-flights--light.svg +24 -0
- package/assets/icons/medium/direct-flights.svg +25 -0
- package/assets/icons/medium/direct-to-gate--light.svg +18 -0
- package/assets/icons/medium/direct-to-gate.svg +18 -0
- package/assets/icons/medium/docs--light.svg +10 -0
- package/assets/icons/medium/docs.svg +10 -0
- package/assets/icons/medium/entertainment--light.svg +71 -0
- package/assets/icons/medium/entertainment.svg +81 -0
- package/assets/icons/medium/facebook.svg +12 -0
- package/assets/icons/medium/family.svg +29 -0
- package/assets/icons/medium/fast-track--light.svg +19 -0
- package/assets/icons/medium/fast-track.svg +23 -0
- package/assets/icons/medium/flexible-tickets--light.svg +16 -0
- package/assets/icons/medium/flexible-tickets.svg +18 -0
- package/assets/icons/medium/flight-arrival--light.svg +16 -0
- package/assets/icons/medium/flight-arrival.svg +15 -0
- package/assets/icons/medium/flight-departure--light.svg +12 -0
- package/assets/icons/medium/flight-departure.svg +12 -0
- package/assets/icons/medium/flight-oneway--light.svg +12 -0
- package/assets/icons/medium/flight-oneway.svg +13 -0
- package/assets/icons/medium/flight-outbound--light.svg +11 -0
- package/assets/icons/medium/flight-outbound.svg +11 -0
- package/assets/icons/medium/flight-return--light.svg +11 -0
- package/assets/icons/medium/flight-return-trip.svg +13 -0
- package/assets/icons/medium/flight-return.svg +11 -0
- package/assets/icons/medium/flight-tickets--light.svg +22 -0
- package/assets/icons/medium/flight-tickets.svg +21 -0
- package/assets/icons/medium/food--light.svg +16 -0
- package/assets/icons/medium/food.svg +19 -0
- package/assets/icons/medium/frequent-departures--light.svg +16 -0
- package/assets/icons/medium/frequent-departures.svg +16 -0
- package/assets/icons/medium/from-a-to-b--light.svg +17 -0
- package/assets/icons/medium/from-a-to-b.svg +17 -0
- package/assets/icons/medium/in-flight-entertainment--light.svg +20 -0
- package/assets/icons/medium/in-flight-entertainment.svg +21 -0
- package/assets/icons/medium/instagram.svg +14 -0
- package/assets/icons/medium/linkedin.svg +17 -0
- package/assets/icons/medium/lounge--light.svg +19 -0
- package/assets/icons/medium/lounge.svg +21 -0
- package/assets/icons/medium/mobile--light.svg +10 -0
- package/assets/icons/medium/mobile.svg +9 -0
- package/assets/icons/medium/my-profile-female.svg +55 -0
- package/assets/icons/medium/my-profile-male.svg +48 -0
- package/assets/icons/medium/new-airplanes--light.svg +14 -0
- package/assets/icons/medium/new-airplanes.svg +14 -0
- package/assets/icons/medium/personnel--light.svg +19 -0
- package/assets/icons/medium/personnel.svg +27 -0
- package/assets/icons/medium/phone--light.svg +15 -0
- package/assets/icons/medium/phone.svg +15 -0
- package/assets/icons/medium/premium--light.svg +23 -0
- package/assets/icons/medium/premium.svg +23 -0
- package/assets/icons/medium/print--light.svg +14 -0
- package/assets/icons/medium/printer.svg +14 -0
- package/assets/icons/medium/relax--light.svg +27 -0
- package/assets/icons/medium/relax.svg +28 -0
- package/assets/icons/medium/rewards--light.svg +19 -0
- package/assets/icons/medium/rewards-fast-track.svg +17 -0
- package/assets/icons/medium/rewards-luggage.svg +22 -0
- package/assets/icons/medium/rewards-seat.svg +21 -0
- package/assets/icons/medium/rewards.svg +19 -0
- package/assets/icons/medium/route-network--light.svg +28 -0
- package/assets/icons/medium/route-network.svg +28 -0
- package/assets/icons/medium/seat-reservation--light.svg +16 -0
- package/assets/icons/medium/seat-reservation.svg +16 -0
- package/assets/icons/medium/special-needs--light.svg +15 -0
- package/assets/icons/medium/special-needs.svg +15 -0
- package/assets/icons/medium/transit-stop--light.svg +30 -0
- package/assets/icons/medium/transit-stop.svg +33 -0
- package/assets/icons/medium/trash--light.svg +7 -0
- package/assets/icons/medium/trash.svg +7 -0
- package/assets/icons/medium/travel-deals--light.svg +24 -0
- package/assets/icons/medium/travel-deals.svg +24 -0
- package/assets/icons/medium/twitter.svg +17 -0
- package/assets/icons/medium/type-asia--light.svg +19 -0
- package/assets/icons/medium/type-asia.svg +19 -0
- package/assets/icons/medium/type-city-vibes--light.svg +14 -0
- package/assets/icons/medium/type-city-vibes.svg +14 -0
- package/assets/icons/medium/type-greece--light.svg +24 -0
- package/assets/icons/medium/type-greece.svg +28 -0
- package/assets/icons/medium/type-norway--light.svg +18 -0
- package/assets/icons/medium/type-norway.svg +18 -0
- package/assets/icons/medium/type-scandinavia--light.svg +32 -0
- package/assets/icons/medium/type-scandinavia.svg +32 -0
- package/assets/icons/medium/type-shopping--light.svg +20 -0
- package/assets/icons/medium/type-shopping.svg +20 -0
- package/assets/icons/medium/type-skiing--light.svg +32 -0
- package/assets/icons/medium/type-skiing.svg +32 -0
- package/assets/icons/medium/type-spain--light.svg +12 -0
- package/assets/icons/medium/type-spain.svg +12 -0
- package/assets/icons/medium/type-sun-and-sea--light.svg +34 -0
- package/assets/icons/medium/type-sun-and-sea.svg +34 -0
- package/assets/icons/medium/type-usa--light.svg +46 -0
- package/assets/icons/medium/type-usa.svg +46 -0
- package/assets/icons/medium/wifi--light.svg +15 -0
- package/assets/icons/medium/wifi.svg +15 -0
- package/assets/icons/medium/youtube.svg +12 -0
- package/assets/icons/mobile-landscape.svg +12 -0
- package/assets/icons/mobile-portrait.svg +12 -0
- package/assets/icons/small/accommodation--light.svg +15 -0
- package/assets/icons/small/accommodation.svg +21 -0
- package/assets/icons/small/alert--error.svg +7 -0
- package/assets/icons/small/alert--light.svg +10 -0
- package/assets/icons/small/alert.svg +10 -0
- package/assets/icons/small/arrow-down--light.svg +11 -0
- package/assets/icons/small/arrow-down.svg +11 -0
- package/assets/icons/small/arrow-left--light.svg +10 -0
- package/assets/icons/small/arrow-left.svg +10 -0
- package/assets/icons/small/arrow-right--light.svg +11 -0
- package/assets/icons/small/arrow-right.svg +11 -0
- package/assets/icons/small/arrow-up--light.svg +10 -0
- package/assets/icons/small/arrow-up.svg +10 -0
- package/assets/icons/small/baggage--light.svg +8 -0
- package/assets/icons/small/baggage-checked-in--light.svg +16 -0
- package/assets/icons/small/baggage-checked-in.svg +16 -0
- package/assets/icons/small/baggage-hand-baggage--light.svg +11 -0
- package/assets/icons/small/baggage-hand-baggage.svg +11 -0
- package/assets/icons/small/baggage-special-baggage--light.svg +20 -0
- package/assets/icons/small/baggage-special-baggage.svg +20 -0
- package/assets/icons/small/baggage-sports-equipment--light.svg +25 -0
- package/assets/icons/small/baggage-sports-equipment.svg +25 -0
- package/assets/icons/small/baggage.svg +10 -0
- package/assets/icons/small/baggages--light.svg +1 -0
- package/assets/icons/small/baggages.svg +1 -0
- package/assets/icons/small/calendar--disabled.svg +14 -0
- package/assets/icons/small/calendar--light.svg +14 -0
- package/assets/icons/small/calendar.svg +14 -0
- package/assets/icons/small/car-rental--light.svg +14 -0
- package/assets/icons/small/car-rental.svg +14 -0
- package/assets/icons/small/card--light.svg +8 -0
- package/assets/icons/small/card.svg +8 -0
- package/assets/icons/small/cashpoints--light.svg +21 -0
- package/assets/icons/small/cashpoints.svg +21 -0
- package/assets/icons/small/central-airports--light.svg +10 -0
- package/assets/icons/small/central-airports.svg +10 -0
- package/assets/icons/small/check-in--light.svg +11 -0
- package/assets/icons/small/check-in.svg +11 -0
- package/assets/icons/small/customer-service--light.svg +18 -0
- package/assets/icons/small/customer-service.svg +18 -0
- package/assets/icons/small/destination--light.svg +9 -0
- package/assets/icons/small/destination.svg +9 -0
- package/assets/icons/small/direct-flights--light.svg +16 -0
- package/assets/icons/small/direct-flights.svg +16 -0
- package/assets/icons/small/docs--light.svg +10 -0
- package/assets/icons/small/docs.svg +10 -0
- package/assets/icons/small/duty-free.svg +24 -0
- package/assets/icons/small/email.svg +1 -0
- package/assets/icons/small/facebook.svg +12 -0
- package/assets/icons/small/family.svg +24 -0
- package/assets/icons/small/fast-track--light.svg +15 -0
- package/assets/icons/small/fast-track.svg +15 -0
- package/assets/icons/small/flexible-tickets--light.svg +12 -0
- package/assets/icons/small/flexible-tickets.svg +12 -0
- package/assets/icons/small/flight-arrival--light.svg +13 -0
- package/assets/icons/small/flight-arrival.svg +16 -0
- package/assets/icons/small/flight-departure--light.svg +18 -0
- package/assets/icons/small/flight-departure-ground.svg +22 -0
- package/assets/icons/small/flight-departure-left.svg +18 -0
- package/assets/icons/small/flight-departure.svg +18 -0
- package/assets/icons/small/flight-outbound--light.svg +14 -0
- package/assets/icons/small/flight-outbound.svg +14 -0
- package/assets/icons/small/flight-return--light.svg +14 -0
- package/assets/icons/small/flight-return.svg +14 -0
- package/assets/icons/small/flight-tickets--light.svg +17 -0
- package/assets/icons/small/flight-tickets.svg +17 -0
- package/assets/icons/small/food--light.svg +15 -0
- package/assets/icons/small/food.svg +15 -0
- package/assets/icons/small/from-a-to-b--light.svg +21 -0
- package/assets/icons/small/from-a-to-b.svg +23 -0
- package/assets/icons/small/google-plus.svg +1 -0
- package/assets/icons/small/hotel--light.svg +10 -0
- package/assets/icons/small/hotel.svg +11 -0
- package/assets/icons/small/in-flight-entertainment--light.svg +10 -0
- package/assets/icons/small/in-flight-entertainment.svg +10 -0
- package/assets/icons/small/info--light.svg +4 -0
- package/assets/icons/small/info--outlined.svg +4 -0
- package/assets/icons/small/info.svg +4 -0
- package/assets/icons/small/instagram.svg +14 -0
- package/assets/icons/small/linkedin.svg +18 -0
- package/assets/icons/small/lounge--light.svg +18 -0
- package/assets/icons/small/lounge.svg +18 -0
- package/assets/icons/small/mail--light.svg +9 -0
- package/assets/icons/small/mail.svg +9 -0
- package/assets/icons/small/mobile--light.svg +8 -0
- package/assets/icons/small/mobile.svg +8 -0
- package/assets/icons/small/my-profile--light.svg +14 -0
- package/assets/icons/small/my-profile-female--light.svg +49 -0
- package/assets/icons/small/my-profile-female.svg +48 -0
- package/assets/icons/small/my-profile-male--light.svg +49 -0
- package/assets/icons/small/my-profile-male.svg +50 -0
- package/assets/icons/small/my-profile.svg +14 -0
- package/assets/icons/small/new-airplanes--light.svg +14 -0
- package/assets/icons/small/new-airplanes.svg +14 -0
- package/assets/icons/small/personnel--light.svg +14 -0
- package/assets/icons/small/personnel.svg +14 -0
- package/assets/icons/small/pintrest.svg +1 -0
- package/assets/icons/small/premium--light.svg +17 -0
- package/assets/icons/small/premium.svg +17 -0
- package/assets/icons/small/print.svg +14 -0
- package/assets/icons/small/reddit.svg +1 -0
- package/assets/icons/small/rewards--light.svg +19 -0
- package/assets/icons/small/rewards-fast-track.svg +17 -0
- package/assets/icons/small/rewards-luggage.svg +22 -0
- package/assets/icons/small/rewards-seat.svg +22 -0
- package/assets/icons/small/rewards.svg +19 -0
- package/assets/icons/small/route-network--light.svg +25 -0
- package/assets/icons/small/route-network.svg +25 -0
- package/assets/icons/small/search--light.svg +16 -0
- package/assets/icons/small/search.svg +16 -0
- package/assets/icons/small/seat-reservation--light.svg +14 -0
- package/assets/icons/small/seat-reservation.svg +14 -0
- package/assets/icons/small/skis--light.svg +24 -0
- package/assets/icons/small/skis.svg +24 -0
- package/assets/icons/small/special-needs--light.svg +16 -0
- package/assets/icons/small/special-needs.svg +16 -0
- package/assets/icons/small/sun--light.svg +17 -0
- package/assets/icons/small/sun.svg +19 -0
- package/assets/icons/small/transit-stop--light.svg +19 -0
- package/assets/icons/small/transit-stop.svg +21 -0
- package/assets/icons/small/trash--light.svg +7 -0
- package/assets/icons/small/trash.svg +7 -0
- package/assets/icons/small/travel-deals--light.svg +9 -0
- package/assets/icons/small/travel-deals.svg +9 -0
- package/assets/icons/small/twitter.svg +17 -0
- package/assets/icons/small/type-asia--light.svg +20 -0
- package/assets/icons/small/type-asia.svg +20 -0
- package/assets/icons/small/type-city-vibes--light.svg +10 -0
- package/assets/icons/small/type-city-vibes.svg +10 -0
- package/assets/icons/small/type-greece--light.svg +22 -0
- package/assets/icons/small/type-greece.svg +22 -0
- package/assets/icons/small/type-norway--light.svg +15 -0
- package/assets/icons/small/type-norway.svg +15 -0
- package/assets/icons/small/type-scandinavia--light.svg +17 -0
- package/assets/icons/small/type-scandinavia.svg +35 -0
- package/assets/icons/small/type-shopping--light.svg +13 -0
- package/assets/icons/small/type-shopping.svg +13 -0
- package/assets/icons/small/type-skiing--light.svg +18 -0
- package/assets/icons/small/type-skiing.svg +18 -0
- package/assets/icons/small/type-spain--light.svg +12 -0
- package/assets/icons/small/type-spain.svg +12 -0
- package/assets/icons/small/type-sun-and-sea--light.svg +59 -0
- package/assets/icons/small/type-sun-and-sea.svg +59 -0
- package/assets/icons/small/type-usa--light.svg +24 -0
- package/assets/icons/small/type-usa.svg +24 -0
- package/assets/icons/small/wifi--light.svg +17 -0
- package/assets/icons/small/wifi.svg +17 -0
- package/assets/icons/small/youtube.svg +11 -0
- package/assets/icons/tablet-landscape.svg +12 -0
- package/assets/icons/tablet-portrait.svg +12 -0
- package/assets/icons/upgrade.svg +8 -0
- package/assets/icons/weather/humidity.svg +1 -0
- package/assets/icons/weather/sun.svg +1 -0
- package/assets/icons/weather/sunrise.svg +1 -0
- package/assets/icons/weather/sunset.svg +1 -0
- package/assets/icons/weather/temperature.svg +1 -0
- package/assets/icons/weather/weather--cloud.svg +1 -0
- package/assets/icons/weather/weather--rain-sun.svg +1 -0
- package/assets/icons/weather/weather--rain.svg +1 -0
- package/assets/icons/weather/weather--storm.svg +1 -0
- package/assets/icons/weather/weather--sun-cloud.svg +1 -0
- package/assets/icons/weather/weather--sun.svg +1 -0
- package/assets/images/cloud-1.svg +1 -0
- package/assets/images/logo--mobile.svg +50 -0
- package/assets/images/logo.svg +135 -0
- package/assets/images/slider-bar.svg +7 -0
- package/assets/images/slider-thumb-disabled.svg +19 -0
- package/assets/images/slider-thumb.svg +14 -0
- package/bundles/norwegian-core-components.umd.js +11898 -0
- package/bundles/norwegian-core-components.umd.js.map +1 -0
- package/esm2015/lib/components/accordion/accordion.component.js +118 -0
- package/esm2015/lib/components/accordion/accordion.module.js +15 -0
- package/esm2015/lib/components/accordion/index.js +3 -0
- package/esm2015/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.js +583 -0
- package/esm2015/lib/components/airport-select/airport-select.component.js +400 -0
- package/esm2015/lib/components/airport-select/airport-select.module.js +27 -0
- package/esm2015/lib/components/airport-select/index.js +4 -0
- package/esm2015/lib/components/airport-select/models/airport.model.js +2 -0
- package/esm2015/lib/components/airport-select/models/results-labels.model.js +3 -0
- package/esm2015/lib/components/airport-select/services/airport-select-dropdown.service.js +34 -0
- package/esm2015/lib/components/airport-select/services/airport-select.service.js +29 -0
- package/esm2015/lib/components/autocomplete/autocomplete.component.js +265 -0
- package/esm2015/lib/components/autocomplete/autocomplete.module.js +26 -0
- package/esm2015/lib/components/autocomplete/index.js +4 -0
- package/esm2015/lib/components/autocomplete/models/autocomplete.model.js +2 -0
- package/esm2015/lib/components/backdrop/backdrop.component.js +54 -0
- package/esm2015/lib/components/backdrop/backdrop.module.js +17 -0
- package/esm2015/lib/components/backdrop/index.js +3 -0
- package/esm2015/lib/components/box/box.component.js +61 -0
- package/esm2015/lib/components/box/box.module.js +14 -0
- package/esm2015/lib/components/box/index.js +3 -0
- package/esm2015/lib/components/button/button.component.js +140 -0
- package/esm2015/lib/components/button/button.module.js +15 -0
- package/esm2015/lib/components/button/index.js +3 -0
- package/esm2015/lib/components/checkbox/checkbox.component.js +125 -0
- package/esm2015/lib/components/checkbox/checkbox.module.js +15 -0
- package/esm2015/lib/components/checkbox/index.js +3 -0
- package/esm2015/lib/components/chip/chip.component.js +50 -0
- package/esm2015/lib/components/chip/chip.module.js +17 -0
- package/esm2015/lib/components/chip/index.js +3 -0
- package/esm2015/lib/components/container/container.component.js +47 -0
- package/esm2015/lib/components/container/container.module.js +14 -0
- package/esm2015/lib/components/container/index.js +3 -0
- package/esm2015/lib/components/continue/continue.component.js +173 -0
- package/esm2015/lib/components/continue/continue.module.js +23 -0
- package/esm2015/lib/components/continue/index.js +3 -0
- package/esm2015/lib/components/cover/cover.component.js +61 -0
- package/esm2015/lib/components/cover/cover.module.js +16 -0
- package/esm2015/lib/components/cover/index.js +3 -0
- package/esm2015/lib/components/datepicker/calendar/calendar-date.model.js +2 -0
- package/esm2015/lib/components/datepicker/calendar/calendar.component.js +560 -0
- package/esm2015/lib/components/datepicker/calendar/enums/week-start.enum.js +6 -0
- package/esm2015/lib/components/datepicker/calendar/models/day.model.js +2 -0
- package/esm2015/lib/components/datepicker/calendar/models/select-option.model.js +2 -0
- package/esm2015/lib/components/datepicker/calendar/models/week.model.js +2 -0
- package/esm2015/lib/components/datepicker/datepicker.component.js +511 -0
- package/esm2015/lib/components/datepicker/datepicker.module.js +34 -0
- package/esm2015/lib/components/datepicker/index.js +5 -0
- package/esm2015/lib/components/datepicker/services/calendar.service.js +217 -0
- package/esm2015/lib/components/datepicker-combo/datepicker-combo.component.js +306 -0
- package/esm2015/lib/components/datepicker-combo/datepicker-combo.module.js +22 -0
- package/esm2015/lib/components/datepicker-combo/index.js +3 -0
- package/esm2015/lib/components/dropdown/dropdown.component.js +146 -0
- package/esm2015/lib/components/dropdown/dropdown.module.js +21 -0
- package/esm2015/lib/components/dropdown/index.js +3 -0
- package/esm2015/lib/components/filter/enums/trip-type.enum.js +8 -0
- package/esm2015/lib/components/filter/filter.component.js +1100 -0
- package/esm2015/lib/components/filter/filter.module.js +44 -0
- package/esm2015/lib/components/filter/index.js +4 -0
- package/esm2015/lib/components/grid/col/col.component.js +47 -0
- package/esm2015/lib/components/grid/grid.component.js +55 -0
- package/esm2015/lib/components/grid/grid.module.js +15 -0
- package/esm2015/lib/components/grid/index.js +4 -0
- package/esm2015/lib/components/icon/icon.component.js +42 -0
- package/esm2015/lib/components/icon/icon.module.js +17 -0
- package/esm2015/lib/components/icon/index.js +3 -0
- package/esm2015/lib/components/icon-list/icon-list.component.js +46 -0
- package/esm2015/lib/components/icon-list/icon-list.model.js +2 -0
- package/esm2015/lib/components/icon-list/icon-list.module.js +15 -0
- package/esm2015/lib/components/icon-list/index.js +4 -0
- package/esm2015/lib/components/index.js +49 -0
- package/esm2015/lib/components/info/index.js +4 -0
- package/esm2015/lib/components/info/info.component.js +81 -0
- package/esm2015/lib/components/info/info.module.js +21 -0
- package/esm2015/lib/components/info/models/info.model.js +2 -0
- package/esm2015/lib/components/input/index.js +3 -0
- package/esm2015/lib/components/input/input.component.js +139 -0
- package/esm2015/lib/components/input/input.module.js +16 -0
- package/esm2015/lib/components/journey/index.js +3 -0
- package/esm2015/lib/components/journey/journey.component.js +122 -0
- package/esm2015/lib/components/journey/journey.module.js +19 -0
- package/esm2015/lib/components/journey/models/journey-flight.model.js +2 -0
- package/esm2015/lib/components/journey/models/journey.model.js +2 -0
- package/esm2015/lib/components/journey-availability/index.js +3 -0
- package/esm2015/lib/components/journey-availability/journey-availability.component.js +125 -0
- package/esm2015/lib/components/journey-availability/journey-availability.module.js +26 -0
- package/esm2015/lib/components/journey-availability-list/enums/availability-sort-option.enum.js +7 -0
- package/esm2015/lib/components/journey-availability-list/index.js +3 -0
- package/esm2015/lib/components/journey-availability-list/journey-availability-list.component.js +175 -0
- package/esm2015/lib/components/journey-availability-list/journey-availability-list.module.js +23 -0
- package/esm2015/lib/components/journey-selection/index.js +6 -0
- package/esm2015/lib/components/journey-selection/journey-selection.component.js +110 -0
- package/esm2015/lib/components/journey-selection/journey-selection.module.js +24 -0
- package/esm2015/lib/components/journey-selection/models/journey-selection-collapsed.model.js +2 -0
- package/esm2015/lib/components/journey-selection/models/journey-selection-common.model.js +2 -0
- package/esm2015/lib/components/journey-selection/models/journey-selection-expanded.model.js +2 -0
- package/esm2015/lib/components/journey-selection/models/journey-selection.model.js +2 -0
- package/esm2015/lib/components/journey-stopover/index.js +3 -0
- package/esm2015/lib/components/journey-stopover/journey-stopover.component.js +121 -0
- package/esm2015/lib/components/journey-stopover/journey-stopover.module.js +19 -0
- package/esm2015/lib/components/journey-stopover/models/stopover-time.model.js +2 -0
- package/esm2015/lib/components/list/index.js +4 -0
- package/esm2015/lib/components/list/list-item/list-item.component.js +56 -0
- package/esm2015/lib/components/list/list.component.js +75 -0
- package/esm2015/lib/components/list/list.module.js +15 -0
- package/esm2015/lib/components/modal/index.js +3 -0
- package/esm2015/lib/components/modal/modal.component.js +131 -0
- package/esm2015/lib/components/modal/modal.module.js +25 -0
- package/esm2015/lib/components/number-field/index.js +3 -0
- package/esm2015/lib/components/number-field/number-field.component.js +118 -0
- package/esm2015/lib/components/number-field/number-field.module.js +24 -0
- package/esm2015/lib/components/page-footer/index.js +3 -0
- package/esm2015/lib/components/page-footer/page-footer.component.js +49 -0
- package/esm2015/lib/components/page-footer/page-footer.module.js +16 -0
- package/esm2015/lib/components/page-header/hamburger/hamburger.component.js +24 -0
- package/esm2015/lib/components/page-header/index.js +5 -0
- package/esm2015/lib/components/page-header/page-header.component.js +119 -0
- package/esm2015/lib/components/page-header/page-header.module.js +18 -0
- package/esm2015/lib/components/page-header/search/search.component.js +47 -0
- package/esm2015/lib/components/passenger-select/enums/passenger-type.enum.js +7 -0
- package/esm2015/lib/components/passenger-select/index.js +5 -0
- package/esm2015/lib/components/passenger-select/models/passengers.model.js +2 -0
- package/esm2015/lib/components/passenger-select/passenger-select.component.js +204 -0
- package/esm2015/lib/components/passenger-select/passenger-select.module.js +19 -0
- package/esm2015/lib/components/phone-number/index.js +3 -0
- package/esm2015/lib/components/phone-number/phone-number.component.js +115 -0
- package/esm2015/lib/components/phone-number/phone-number.module.js +27 -0
- package/esm2015/lib/components/premium-toggle/index.js +3 -0
- package/esm2015/lib/components/premium-toggle/premium-toggle.component.js +66 -0
- package/esm2015/lib/components/premium-toggle/premium-toggle.module.js +19 -0
- package/esm2015/lib/components/radio/index.js +3 -0
- package/esm2015/lib/components/radio/radio.component.js +79 -0
- package/esm2015/lib/components/radio/radio.module.js +15 -0
- package/esm2015/lib/components/select/index.js +6 -0
- package/esm2015/lib/components/select/models/select-option.model.js +2 -0
- package/esm2015/lib/components/select/optgroup/optgroup.component.js +31 -0
- package/esm2015/lib/components/select/option/option.component.js +29 -0
- package/esm2015/lib/components/select/select.component.js +316 -0
- package/esm2015/lib/components/select/select.module.js +21 -0
- package/esm2015/lib/components/simple-list/index.js +3 -0
- package/esm2015/lib/components/simple-list/simple-list.component.js +42 -0
- package/esm2015/lib/components/simple-list/simple-list.module.js +14 -0
- package/esm2015/lib/components/slide-toggle/index.js +3 -0
- package/esm2015/lib/components/slide-toggle/slide-toggle.component.js +105 -0
- package/esm2015/lib/components/slide-toggle/slide-toggle.module.js +20 -0
- package/esm2015/lib/components/slider/index.js +3 -0
- package/esm2015/lib/components/slider/slider.component.js +447 -0
- package/esm2015/lib/components/slider/slider.module.js +19 -0
- package/esm2015/lib/components/sort/index.js +3 -0
- package/esm2015/lib/components/sort/sort.component.js +87 -0
- package/esm2015/lib/components/sort/sort.module.js +23 -0
- package/esm2015/lib/components/spinner/index.js +3 -0
- package/esm2015/lib/components/spinner/spinner.component.js +57 -0
- package/esm2015/lib/components/spinner/spinner.module.js +14 -0
- package/esm2015/lib/components/subsidy-discount/index.js +4 -0
- package/esm2015/lib/components/subsidy-discount/models/subsidy-discount.model.js +2 -0
- package/esm2015/lib/components/subsidy-discount/subsidy-discount.component.js +101 -0
- package/esm2015/lib/components/subsidy-discount/subsidy-discount.module.js +23 -0
- package/esm2015/lib/components/suggestions/index.js +3 -0
- package/esm2015/lib/components/suggestions/suggestions.component.js +40 -0
- package/esm2015/lib/components/suggestions/suggestions.module.js +19 -0
- package/esm2015/lib/components/tab-group/index.js +4 -0
- package/esm2015/lib/components/tab-group/tab/tab.component.js +123 -0
- package/esm2015/lib/components/tab-group/tab-group.component.js +85 -0
- package/esm2015/lib/components/tab-group/tab-group.module.js +20 -0
- package/esm2015/lib/components/table/column/column.component.js +17 -0
- package/esm2015/lib/components/table/column-group/column-group.component.js +34 -0
- package/esm2015/lib/components/table/index.js +11 -0
- package/esm2015/lib/components/table/services/table.service.js +20 -0
- package/esm2015/lib/components/table/table-body/table-body.component.js +27 -0
- package/esm2015/lib/components/table/table-foot/table-foot.component.js +27 -0
- package/esm2015/lib/components/table/table-head/table-head.component.js +27 -0
- package/esm2015/lib/components/table/table-row/table-data/table-data.component.js +15 -0
- package/esm2015/lib/components/table/table-row/table-header/table-header.component.js +15 -0
- package/esm2015/lib/components/table/table-row/table-row.component.js +27 -0
- package/esm2015/lib/components/table/table.component.js +29 -0
- package/esm2015/lib/components/table/table.module.js +45 -0
- package/esm2015/lib/components/textarea/index.js +3 -0
- package/esm2015/lib/components/textarea/textarea.component.js +73 -0
- package/esm2015/lib/components/textarea/textarea.module.js +20 -0
- package/esm2015/lib/components/toggle/index.js +3 -0
- package/esm2015/lib/components/toggle/models/options.model.js +3 -0
- package/esm2015/lib/components/toggle/toggle.component.js +77 -0
- package/esm2015/lib/components/toggle/toggle.module.js +22 -0
- package/esm2015/lib/components/trip-summary/index.js +3 -0
- package/esm2015/lib/components/trip-summary/trip-summary.component.js +152 -0
- package/esm2015/lib/components/trip-summary/trip-summary.module.js +23 -0
- package/esm2015/lib/components/weather-icon/index.js +3 -0
- package/esm2015/lib/components/weather-icon/weather-icon.component.js +56 -0
- package/esm2015/lib/components/weather-icon/weather-icon.module.js +14 -0
- package/esm2015/lib/core/base/nas-component.base.js +48 -0
- package/esm2015/lib/core/decorators/debounce.decorator.js +12 -0
- package/esm2015/lib/core/directives/index.js +3 -0
- package/esm2015/lib/core/directives/nas-class/nas-class.directive.js +75 -0
- package/esm2015/lib/core/directives/nas-class/nas-class.module.js +17 -0
- package/esm2015/lib/core/extensions/html-element.extension.js +31 -0
- package/esm2015/lib/core/index.js +5 -0
- package/esm2015/lib/core/models/abandoned-basket-item.model.js +2 -0
- package/esm2015/lib/core/models/animate.model.js +2 -0
- package/esm2015/lib/core/models/class.model.js +2 -0
- package/esm2015/lib/core/models/index.js +7 -0
- package/esm2015/lib/core/models/link.model.js +2 -0
- package/esm2015/lib/core/models/position.model.js +2 -0
- package/esm2015/lib/core/models/utc-date.model.js +40 -0
- package/esm2015/lib/core/services/abandoned-basket/abandoned-basket.service.js +55 -0
- package/esm2015/lib/core/services/animate-helper/animate-helper.service.js +47 -0
- package/esm2015/lib/core/services/bem-helper/bem-helper.service.js +41 -0
- package/esm2015/lib/core/services/date/date-compare.enum.js +7 -0
- package/esm2015/lib/core/services/date/date-helper.service.js +196 -0
- package/esm2015/lib/core/services/device/device-helper.service.js +43 -0
- package/esm2015/lib/core/services/geolocation/geolocation-state.enum.js +8 -0
- package/esm2015/lib/core/services/geolocation/geolocation.service.js +60 -0
- package/esm2015/lib/core/services/index.js +10 -0
- package/esm2015/lib/core/services/language/language-helper.service.js +162 -0
- package/esm2015/lib/core/services/sort/sort.service.js +19 -0
- package/esm2015/lib/core/services/viewport/viewport.service.js +29 -0
- package/esm2015/lib/index.js +5 -0
- package/esm2015/lib/services/get-position.service.js +21 -0
- package/esm2015/lib/services/index.js +2 -0
- package/esm2015/lib/shared/index.js +2 -0
- package/esm2015/lib/shared/models/flight-details.js +3 -0
- package/esm2015/lib/shared/models/index.js +5 -0
- package/esm2015/lib/shared/models/journey-availability-sort.model.js +2 -0
- package/esm2015/lib/shared/models/journey-availability.model.js +2 -0
- package/esm2015/lib/shared/models/journey-details.model.js +2 -0
- package/esm2015/lib/shared/models/journey-duration.model.js +2 -0
- package/esm2015/lib/shared/models/journey-stopover.model.js +2 -0
- package/esm2015/lib/shared/models/journey-transit-info.model.js +2 -0
- package/esm2015/lib/shared/models/operating-carrier.model.js +2 -0
- package/esm2015/lib/shared/models/sort-option.model.js +2 -0
- package/esm2015/lib/shared/models/sort.model.js +2 -0
- package/esm2015/lib/shared/models/trip-item-details.model.js +2 -0
- package/esm2015/lib/shared/models/trip-summary-details.model.js +2 -0
- package/esm2015/lib/shared/models/trip-summary.model.js +2 -0
- package/esm2015/norwegian-core-components.js +12 -0
- package/esm2015/public_api.js +2 -0
- package/fesm2015/norwegian-core-components.js +10595 -0
- package/fesm2015/norwegian-core-components.js.map +1 -0
- package/lib/components/accordion/accordion.component.d.ts +205 -0
- package/lib/components/accordion/accordion.module.d.ts +2 -0
- package/lib/components/accordion/index.d.ts +2 -0
- package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +94 -0
- package/lib/components/airport-select/airport-select.component.d.ts +256 -0
- package/lib/components/airport-select/airport-select.module.d.ts +2 -0
- package/lib/components/airport-select/index.d.ts +3 -0
- package/lib/components/airport-select/models/airport.model.d.ts +10 -0
- package/lib/components/airport-select/models/results-labels.model.d.ts +7 -0
- package/lib/components/airport-select/services/airport-select-dropdown.service.d.ts +7 -0
- package/lib/components/airport-select/services/airport-select.service.d.ts +5 -0
- package/lib/components/autocomplete/autocomplete.component.d.ts +115 -0
- package/lib/components/autocomplete/autocomplete.module.d.ts +2 -0
- package/lib/components/autocomplete/index.d.ts +3 -0
- package/lib/components/autocomplete/models/autocomplete.model.d.ts +5 -0
- package/lib/components/backdrop/backdrop.component.d.ts +32 -0
- package/lib/components/backdrop/backdrop.module.d.ts +2 -0
- package/lib/components/backdrop/index.d.ts +2 -0
- package/lib/components/box/box.component.d.ts +69 -0
- package/lib/components/box/box.module.d.ts +2 -0
- package/lib/components/box/index.d.ts +2 -0
- package/lib/components/button/button.component.d.ts +238 -0
- package/lib/components/button/button.module.d.ts +2 -0
- package/lib/components/button/index.d.ts +2 -0
- package/lib/components/checkbox/checkbox.component.d.ts +119 -0
- package/lib/components/checkbox/checkbox.module.d.ts +2 -0
- package/lib/components/checkbox/index.d.ts +2 -0
- package/lib/components/chip/chip.component.d.ts +61 -0
- package/lib/components/chip/chip.module.d.ts +2 -0
- package/lib/components/chip/index.d.ts +2 -0
- package/lib/components/container/container.component.d.ts +47 -0
- package/lib/components/container/container.module.d.ts +2 -0
- package/lib/components/container/index.d.ts +2 -0
- package/lib/components/continue/continue.component.d.ts +154 -0
- package/lib/components/continue/continue.module.d.ts +2 -0
- package/lib/components/continue/index.d.ts +2 -0
- package/lib/components/cover/cover.component.d.ts +112 -0
- package/lib/components/cover/cover.module.d.ts +2 -0
- package/lib/components/cover/index.d.ts +2 -0
- package/lib/components/datepicker/calendar/calendar-date.model.d.ts +5 -0
- package/lib/components/datepicker/calendar/calendar.component.d.ts +156 -0
- package/lib/components/datepicker/calendar/enums/week-start.enum.d.ts +4 -0
- package/lib/components/datepicker/calendar/models/day.model.d.ts +9 -0
- package/lib/components/datepicker/calendar/models/select-option.model.d.ts +4 -0
- package/lib/components/datepicker/calendar/models/week.model.d.ts +5 -0
- package/lib/components/datepicker/datepicker.component.d.ts +235 -0
- package/lib/components/datepicker/datepicker.module.d.ts +2 -0
- package/lib/components/datepicker/index.d.ts +4 -0
- package/lib/components/datepicker/services/calendar.service.d.ts +24 -0
- package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +246 -0
- package/lib/components/datepicker-combo/datepicker-combo.module.d.ts +2 -0
- package/lib/components/datepicker-combo/index.d.ts +2 -0
- package/lib/components/dropdown/dropdown.component.d.ts +64 -0
- package/lib/components/dropdown/dropdown.module.d.ts +2 -0
- package/lib/components/dropdown/index.d.ts +2 -0
- package/lib/components/filter/enums/trip-type.enum.d.ts +6 -0
- package/lib/components/filter/filter.component.d.ts +693 -0
- package/lib/components/filter/filter.module.d.ts +2 -0
- package/lib/components/filter/index.d.ts +3 -0
- package/lib/components/grid/col/col.component.d.ts +37 -0
- package/lib/components/grid/grid.component.d.ts +61 -0
- package/lib/components/grid/grid.module.d.ts +2 -0
- package/lib/components/grid/index.d.ts +3 -0
- package/lib/components/icon/icon.component.d.ts +57 -0
- package/lib/components/icon/icon.module.d.ts +2 -0
- package/lib/components/icon/index.d.ts +2 -0
- package/lib/components/icon-list/icon-list.component.d.ts +41 -0
- package/lib/components/icon-list/icon-list.model.d.ts +7 -0
- package/lib/components/icon-list/icon-list.module.d.ts +2 -0
- package/lib/components/icon-list/index.d.ts +3 -0
- package/lib/components/index.d.ts +48 -0
- package/lib/components/info/index.d.ts +3 -0
- package/lib/components/info/info.component.d.ts +71 -0
- package/lib/components/info/info.module.d.ts +2 -0
- package/lib/components/info/models/info.model.d.ts +7 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input/input.component.d.ts +163 -0
- package/lib/components/input/input.module.d.ts +2 -0
- package/lib/components/journey/index.d.ts +2 -0
- package/lib/components/journey/journey.component.d.ts +119 -0
- package/lib/components/journey/journey.module.d.ts +2 -0
- package/lib/components/journey/models/journey-flight.model.d.ts +10 -0
- package/lib/components/journey/models/journey.model.d.ts +5 -0
- package/lib/components/journey-availability/index.d.ts +2 -0
- package/lib/components/journey-availability/journey-availability.component.d.ts +90 -0
- package/lib/components/journey-availability/journey-availability.module.d.ts +2 -0
- package/lib/components/journey-availability-list/enums/availability-sort-option.enum.d.ts +5 -0
- package/lib/components/journey-availability-list/index.d.ts +2 -0
- package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +116 -0
- package/lib/components/journey-availability-list/journey-availability-list.module.d.ts +2 -0
- package/lib/components/journey-selection/index.d.ts +5 -0
- package/lib/components/journey-selection/journey-selection.component.d.ts +70 -0
- package/lib/components/journey-selection/journey-selection.module.d.ts +2 -0
- package/lib/components/journey-selection/models/journey-selection-collapsed.model.d.ts +11 -0
- package/lib/components/journey-selection/models/journey-selection-common.model.d.ts +7 -0
- package/lib/components/journey-selection/models/journey-selection-expanded.model.d.ts +5 -0
- package/lib/components/journey-selection/models/journey-selection.model.d.ts +14 -0
- package/lib/components/journey-stopover/index.d.ts +2 -0
- package/lib/components/journey-stopover/journey-stopover.component.d.ts +132 -0
- package/lib/components/journey-stopover/journey-stopover.module.d.ts +2 -0
- package/lib/components/journey-stopover/models/stopover-time.model.d.ts +4 -0
- package/lib/components/list/index.d.ts +3 -0
- package/lib/components/list/list-item/list-item.component.d.ts +32 -0
- package/lib/components/list/list.component.d.ts +65 -0
- package/lib/components/list/list.module.d.ts +2 -0
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/modal.component.d.ts +119 -0
- package/lib/components/modal/modal.module.d.ts +2 -0
- package/lib/components/number-field/index.d.ts +2 -0
- package/lib/components/number-field/number-field.component.d.ts +96 -0
- package/lib/components/number-field/number-field.module.d.ts +2 -0
- package/lib/components/page-footer/index.d.ts +2 -0
- package/lib/components/page-footer/page-footer.component.d.ts +57 -0
- package/lib/components/page-footer/page-footer.module.d.ts +2 -0
- package/lib/components/page-header/hamburger/hamburger.component.d.ts +9 -0
- package/lib/components/page-header/index.d.ts +4 -0
- package/lib/components/page-header/page-header.component.d.ts +84 -0
- package/lib/components/page-header/page-header.module.d.ts +2 -0
- package/lib/components/page-header/search/search.component.d.ts +23 -0
- package/lib/components/passenger-select/enums/passenger-type.enum.d.ts +5 -0
- package/lib/components/passenger-select/index.d.ts +4 -0
- package/lib/components/passenger-select/models/passengers.model.d.ts +9 -0
- package/lib/components/passenger-select/passenger-select.component.d.ts +111 -0
- package/lib/components/passenger-select/passenger-select.module.d.ts +2 -0
- package/lib/components/phone-number/index.d.ts +2 -0
- package/lib/components/phone-number/phone-number.component.d.ts +278 -0
- package/lib/components/phone-number/phone-number.module.d.ts +2 -0
- package/lib/components/premium-toggle/index.d.ts +2 -0
- package/lib/components/premium-toggle/premium-toggle.component.d.ts +51 -0
- package/lib/components/premium-toggle/premium-toggle.module.d.ts +2 -0
- package/lib/components/radio/index.d.ts +2 -0
- package/lib/components/radio/radio.component.d.ts +115 -0
- package/lib/components/radio/radio.module.d.ts +2 -0
- package/lib/components/select/index.d.ts +5 -0
- package/lib/components/select/models/select-option.model.d.ts +4 -0
- package/lib/components/select/optgroup/optgroup.component.d.ts +22 -0
- package/lib/components/select/option/option.component.d.ts +21 -0
- package/lib/components/select/select.component.d.ts +156 -0
- package/lib/components/select/select.module.d.ts +2 -0
- package/lib/components/simple-list/index.d.ts +2 -0
- package/lib/components/simple-list/simple-list.component.d.ts +49 -0
- package/lib/components/simple-list/simple-list.module.d.ts +2 -0
- package/lib/components/slide-toggle/index.d.ts +2 -0
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +60 -0
- package/lib/components/slide-toggle/slide-toggle.module.d.ts +2 -0
- package/lib/components/slider/index.d.ts +2 -0
- package/lib/components/slider/slider.component.d.ts +177 -0
- package/lib/components/slider/slider.module.d.ts +2 -0
- package/lib/components/sort/index.d.ts +2 -0
- package/lib/components/sort/sort.component.d.ts +47 -0
- package/lib/components/sort/sort.module.d.ts +2 -0
- package/lib/components/spinner/index.d.ts +2 -0
- package/lib/components/spinner/spinner.component.d.ts +58 -0
- package/lib/components/spinner/spinner.module.d.ts +2 -0
- package/lib/components/subsidy-discount/index.d.ts +3 -0
- package/lib/components/subsidy-discount/models/subsidy-discount.model.d.ts +4 -0
- package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +57 -0
- package/lib/components/subsidy-discount/subsidy-discount.module.d.ts +2 -0
- package/lib/components/suggestions/index.d.ts +2 -0
- package/lib/components/suggestions/suggestions.component.d.ts +30 -0
- package/lib/components/suggestions/suggestions.module.d.ts +2 -0
- package/lib/components/tab-group/index.d.ts +3 -0
- package/lib/components/tab-group/tab/tab.component.d.ts +84 -0
- package/lib/components/tab-group/tab-group.component.d.ts +30 -0
- package/lib/components/tab-group/tab-group.module.d.ts +2 -0
- package/lib/components/table/column/column.component.d.ts +3 -0
- package/lib/components/table/column-group/column-group.component.d.ts +12 -0
- package/lib/components/table/index.d.ts +10 -0
- package/lib/components/table/services/table.service.d.ts +5 -0
- package/lib/components/table/table-body/table-body.component.d.ts +12 -0
- package/lib/components/table/table-foot/table-foot.component.d.ts +12 -0
- package/lib/components/table/table-head/table-head.component.d.ts +12 -0
- package/lib/components/table/table-row/table-data/table-data.component.d.ts +2 -0
- package/lib/components/table/table-row/table-header/table-header.component.d.ts +2 -0
- package/lib/components/table/table-row/table-row.component.d.ts +12 -0
- package/lib/components/table/table.component.d.ts +21 -0
- package/lib/components/table/table.module.d.ts +2 -0
- package/lib/components/textarea/index.d.ts +2 -0
- package/lib/components/textarea/textarea.component.d.ts +121 -0
- package/lib/components/textarea/textarea.module.d.ts +2 -0
- package/lib/components/toggle/index.d.ts +2 -0
- package/lib/components/toggle/models/options.model.d.ts +6 -0
- package/lib/components/toggle/toggle.component.d.ts +183 -0
- package/lib/components/toggle/toggle.module.d.ts +2 -0
- package/lib/components/trip-summary/index.d.ts +2 -0
- package/lib/components/trip-summary/trip-summary.component.d.ts +173 -0
- package/lib/components/trip-summary/trip-summary.module.d.ts +2 -0
- package/lib/components/weather-icon/index.d.ts +2 -0
- package/lib/components/weather-icon/weather-icon.component.d.ts +51 -0
- package/lib/components/weather-icon/weather-icon.module.d.ts +2 -0
- package/lib/core/base/nas-component.base.d.ts +11 -0
- package/lib/core/decorators/debounce.decorator.d.ts +1 -0
- package/lib/core/directives/index.d.ts +2 -0
- package/lib/core/directives/nas-class/nas-class.directive.d.ts +11 -0
- package/lib/core/directives/nas-class/nas-class.module.d.ts +2 -0
- package/lib/core/extensions/html-element.extension.d.ts +6 -0
- package/lib/core/index.d.ts +4 -0
- package/lib/core/models/abandoned-basket-item.model.d.ts +14 -0
- package/lib/core/models/animate.model.d.ts +6 -0
- package/lib/core/models/class.model.d.ts +6 -0
- package/lib/core/models/index.d.ts +6 -0
- package/lib/core/models/link.model.d.ts +4 -0
- package/lib/core/models/position.model.d.ts +4 -0
- package/lib/core/models/utc-date.model.d.ts +13 -0
- package/lib/core/services/abandoned-basket/abandoned-basket.service.d.ts +7 -0
- package/lib/core/services/animate-helper/animate-helper.service.d.ts +6 -0
- package/lib/core/services/bem-helper/bem-helper.service.d.ts +4 -0
- package/lib/core/services/date/date-compare.enum.d.ts +5 -0
- package/lib/core/services/date/date-helper.service.d.ts +19 -0
- package/lib/core/services/device/device-helper.service.d.ts +13 -0
- package/lib/core/services/geolocation/geolocation-state.enum.d.ts +6 -0
- package/lib/core/services/geolocation/geolocation.service.d.ts +6 -0
- package/lib/core/services/index.d.ts +9 -0
- package/lib/core/services/language/language-helper.service.d.ts +9 -0
- package/lib/core/services/sort/sort.service.d.ts +3 -0
- package/lib/core/services/viewport/viewport.service.d.ts +8 -0
- package/lib/index.d.ts +4 -0
- package/lib/services/get-position.service.d.ts +6 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/models/flight-details.d.ts +22 -0
- package/lib/shared/models/index.d.ts +4 -0
- package/lib/shared/models/journey-availability-sort.model.d.ts +8 -0
- package/lib/shared/models/journey-availability.model.d.ts +25 -0
- package/lib/shared/models/journey-details.model.d.ts +8 -0
- package/lib/shared/models/journey-duration.model.d.ts +7 -0
- package/lib/shared/models/journey-stopover.model.d.ts +11 -0
- package/lib/shared/models/journey-transit-info.model.d.ts +5 -0
- package/lib/shared/models/operating-carrier.model.d.ts +4 -0
- package/lib/shared/models/sort-option.model.d.ts +11 -0
- package/lib/shared/models/sort.model.d.ts +10 -0
- package/lib/shared/models/trip-item-details.model.d.ts +12 -0
- package/lib/shared/models/trip-summary-details.model.d.ts +5 -0
- package/lib/shared/models/trip-summary.model.d.ts +4 -0
- package/norwegian-core-components.d.ts +11 -0
- package/norwegian-core-components.metadata.json +1 -0
- package/package.json +19 -0
- package/public_api.d.ts +1 -0
- package/styles/1__settings/_colors.scss +65 -0
- package/styles/1__settings/_mixins.scss +226 -0
- package/styles/1__settings/_type.scss +53 -0
- package/styles/1__settings/_vars.scss +62 -0
- package/styles/2__generic/_fonts.scss +99 -0
- package/styles/2__generic/_reset.scss +275 -0
- package/styles/3__base/_animations.scss +138 -0
- package/styles/3__base/_body.scss +23 -0
- package/styles/3__base/_fixes.scss +5 -0
- package/styles/3__base/_form.scss +18 -0
- package/styles/3__base/_grid.scss +115 -0
- package/styles/3__base/_heading.scss +110 -0
- package/styles/3__base/_hr.scss +30 -0
- package/styles/3__base/_input.scss +38 -0
- package/styles/3__base/_link.scss +48 -0
- package/styles/3__base/_table.scss +44 -0
- package/styles/3__base/_type.scss +69 -0
- package/styles/_helpers.scss +4 -0
- package/styles/_index.scss +15 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Norwegian Simple List Component | Layout
|
|
6
|
+
*/
|
|
7
|
+
export class SimpleListComponent extends NasComponentBase {
|
|
8
|
+
constructor() {
|
|
9
|
+
super('nas-simple-list');
|
|
10
|
+
}
|
|
11
|
+
mainClass() {
|
|
12
|
+
return this.getClass('', [
|
|
13
|
+
this.exists(this.markers) && 'markers',
|
|
14
|
+
this.exists(this.note) && 'note',
|
|
15
|
+
this.exists(this.positive) && 'positive',
|
|
16
|
+
this.exists(this.negative) && 'negative',
|
|
17
|
+
this.exists(this.goto) && 'goto',
|
|
18
|
+
this.exists(this.spaceless) && 'spaceless',
|
|
19
|
+
this.exists(this.table) && 'table',
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
SimpleListComponent.decorators = [
|
|
24
|
+
{ type: Component, args: [{
|
|
25
|
+
selector: 'nas-simple-list',
|
|
26
|
+
template: "<ul [nasClass]=\"mainClass()\">\n <li *ngFor=\"let item of items\">{{item}}</li>\n <ng-content></ng-content>\n</ul>\n",
|
|
27
|
+
encapsulation: ViewEncapsulation.None,
|
|
28
|
+
styles: ["@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@-webkit-keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@-webkit-keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@-webkit-keyframes fade-out{to{opacity:0}}@keyframes fade-out{to{opacity:0}}@-webkit-keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@-webkit-keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@-webkit-keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}ul,ul li{list-style:none}.nas-simple-list{margin-bottom:24px;margin-left:24px;padding-top:3px}.nas-simple-list li{position:relative;display:inline-block;margin:0 36px 9px 0}.nas-simple-list li:before{content:\"\";display:block;position:absolute;height:8px;width:8px;left:-18px;top:7px;margin:0 12px 6px 0;border-radius:50%;background-color:#002a3a}@media (min-width: 640px){.nas-simple-list li{display:block;margin:0 12px 9px 0}}.nas-simple-list--markers{margin-left:0}.nas-simple-list--markers li{display:inline-block;padding-left:30px;margin:0 12px 9px 0;background:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 18.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%2224px%22 height%3D%2224px%22 viewBox%3D%220 0 24 24%22 enable-background%3D%22new 0 0 24 24%22 xml%3Aspace%3D%22preserve%22%3E%3Ccircle fill%3D%22%23C3C3C3%22 cx%3D%2212%22 cy%3D%2212%22 r%3D%2210%22%2F%3E%3Cpolygon fill%3D%22%23003D50%22 points%3D%2218.5%2C9.8 16.4%2C7.7 11.5%2C12.6 8.8%2C10 6.7%2C12.1 9.4%2C14.7 11.5%2C16.8 13.6%2C14.7 %22%2F%3E%3C%2Fsvg%3E\") 0 -1px no-repeat}.nas-simple-list--markers li:before{display:none}@media (min-width: 640px){.nas-simple-list--markers li{display:block}}.nas-simple-list--positive{margin-left:0}.nas-simple-list--positive li{display:inline-block;padding-left:30px;margin:0 12px 9px 0;background:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 18.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%2224px%22 height%3D%2224px%22 viewBox%3D%220 0 24 24%22 enable-background%3D%22new 0 0 24 24%22 xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%09%3Ccircle fill%3D%22%23238E00%22 cx%3D%2212%22 cy%3D%2212%22 r%3D%2210%22%2F%3E%3C%2Fg%3E%3Cpolygon fill%3D%22%23FFFFFF%22 points%3D%2218%2C10.3 15.9%2C8.2 11.5%2C12.6 8.8%2C10 6.7%2C12.1 9.4%2C14.7 11.5%2C16.8 13.6%2C14.7 %22%2F%3E%3C%2Fsvg%3E\") 0 -1px no-repeat}.nas-simple-list--positive li:before{display:none}@media (min-width: 640px){.nas-simple-list--positive li{display:block}}.nas-simple-list--negative{margin-left:0}.nas-simple-list--negative li{display:inline-block;padding-left:30px;margin:0 12px 9px 0;background:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 18.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%2224px%22 height%3D%2224px%22 viewBox%3D%220 0 24 24%22 enable-background%3D%22new 0 0 24 24%22 xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%09%3Ccircle fill%3D%22%23D81939%22 cx%3D%2212%22 cy%3D%2211.9%22 r%3D%2210%22%2F%3E%09%3Cpolygon fill%3D%22%23FFFFFF%22 points%3D%2217.2%2C8.8 15.1%2C6.7 12%2C9.8 8.9%2C6.7 6.8%2C8.8 9.9%2C11.9 6.8%2C15 8.9%2C17.1 12%2C14 15.1%2C17.1 17.2%2C15 %09%0914.1%2C11.9 %09%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\") 0 -1px no-repeat}.nas-simple-list--negative li:before{display:none}@media (min-width: 640px){.nas-simple-list--negative li{display:block}}.nas-simple-list--goto{margin-left:0}.nas-simple-list--goto li{display:inline-block;padding-left:30px;margin:0 12px 9px 0;background:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 18.1.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%2224px%22 height%3D%2224px%22 viewBox%3D%220 0 24 24%22 enable-background%3D%22new 0 0 24 24%22 xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%09%3Cpath fill%3D%22%23003D50%22 d%3D%22M20.4%2C10.5L13.1%2C3H8.9l8.9%2C9l-8.9%2C9h4.2l7.2-7.5c0.4-0.4%2C0.6-0.9%2C0.6-1.4C21.1%2C11.4%2C20.8%2C10.9%2C20.4%2C10.5z%22%09%09%2F%3E%09%3Crect x%3D%223%22 y%3D%2210.3%22 fill%3D%22%23003D50%22 width%3D%2216.1%22 height%3D%223.4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\") 0 -1px no-repeat}.nas-simple-list--goto li:before{display:none}@media (min-width: 640px){.nas-simple-list--goto li{display:block}}.nas-simple-list--spaceless{margin-bottom:0}.nas-simple-list--table{margin-left:0}.nas-simple-list--table li{display:block;border-top:2px solid #e3e3e3;padding:12px 0;margin:0}.nas-simple-list--table li:last-child{border-bottom:2px solid #e3e3e3}.nas-simple-list--table li:before{display:none}\n"]
|
|
29
|
+
},] }
|
|
30
|
+
];
|
|
31
|
+
SimpleListComponent.ctorParameters = () => [];
|
|
32
|
+
SimpleListComponent.propDecorators = {
|
|
33
|
+
markers: [{ type: Input }],
|
|
34
|
+
note: [{ type: Input }],
|
|
35
|
+
positive: [{ type: Input }],
|
|
36
|
+
negative: [{ type: Input }],
|
|
37
|
+
goto: [{ type: Input }],
|
|
38
|
+
table: [{ type: Input }],
|
|
39
|
+
spaceless: [{ type: Input }],
|
|
40
|
+
items: [{ type: Input }]
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9zaW1wbGUtbGlzdC9zaW1wbGUtbGlzdC5j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3Bvc2l0aXZlJyxcbiAgICAgIHRoaXMuZXhpc3RzKHRoaXMubmVnYXRpdmUpICYmICduZWdhdGl2ZScsXG4gICAgICB0aGlzLmV4aXN0cyh0aGlzLmdvdG8pICYmICdnb3RvJyxcbiAgICAgIHRoaXMuZXhpc3RzKHRoaXMuc3BhY2VsZXNzKSAmJiAnc3BhY2VsZXNzJyxcbiAgICAgIHRoaXMuZXhpc3RzKHRoaXMudGFibGUpICYmICd0YWJsZScsXG4gICAgXSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SimpleListComponent } from './simple-list.component';
|
|
4
|
+
import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
|
|
5
|
+
export class SimpleListModule {
|
|
6
|
+
}
|
|
7
|
+
SimpleListModule.decorators = [
|
|
8
|
+
{ type: NgModule, args: [{
|
|
9
|
+
declarations: [SimpleListComponent],
|
|
10
|
+
imports: [CommonModule, NasClassModule],
|
|
11
|
+
exports: [SimpleListComponent],
|
|
12
|
+
},] }
|
|
13
|
+
];
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLWxpc3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9zaW1wbGUtbGlzdC9zaW1wbGUtbGlzdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBT2xGLE1BQU0sT0FBTyxnQkFBZ0I7OztZQUw1QixRQUFRLFNBQUM7Z0JBQ1IsWUFBWSxFQUFFLENBQUMsbUJBQW1CLENBQUM7Z0JBQ25DLE9BQU8sRUFBRSxDQUFDLFlBQVksRUFBRSxjQUFjLENBQUM7Z0JBQ3ZDLE9BQU8sRUFBRSxDQUFDLG1CQUFtQixDQUFDO2FBQy9CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmltcG9ydCB7IFNpbXBsZUxpc3RDb21wb25lbnQgfSBmcm9tICcuL3NpbXBsZS1saXN0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBOYXNDbGFzc01vZHVsZSB9IGZyb20gJy4uLy4uL2NvcmUvZGlyZWN0aXZlcy9uYXMtY2xhc3MvbmFzLWNsYXNzLm1vZHVsZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1NpbXBsZUxpc3RDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBOYXNDbGFzc01vZHVsZV0sXG4gIGV4cG9ydHM6IFtTaW1wbGVMaXN0Q29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgU2ltcGxlTGlzdE1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './slide-toggle.component';
|
|
2
|
+
export * from './slide-toggle.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NsaWRlLXRvZ2dsZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NsaWRlLXRvZ2dsZS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zbGlkZS10b2dnbGUubW9kdWxlJztcbiJdfQ==
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
3
|
+
let nextId = 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Norwegian Slide Toogle Component | Buttons and Indicators
|
|
7
|
+
*/
|
|
8
|
+
export class SlideToggleComponent extends NasComponentBase {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('nas-slide-toggle');
|
|
11
|
+
/**
|
|
12
|
+
* @description
|
|
13
|
+
* Toggle change events.
|
|
14
|
+
*/
|
|
15
|
+
this.toggleChange = new EventEmitter();
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* Emits when the focus should be on the previous element.
|
|
19
|
+
*/
|
|
20
|
+
this.focusOnPrevious = new EventEmitter();
|
|
21
|
+
this.componentId = nextId++;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @description
|
|
25
|
+
* Sets the Id of the native input element.
|
|
26
|
+
*/
|
|
27
|
+
get inputId() {
|
|
28
|
+
return this.inputIdValue ? this.inputIdValue : `nas-slide-toggle-input-${this.componentId}`;
|
|
29
|
+
}
|
|
30
|
+
set inputId(value) {
|
|
31
|
+
this.inputIdValue = value;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @description
|
|
35
|
+
* Set the toggle value.
|
|
36
|
+
*/
|
|
37
|
+
get toggle() {
|
|
38
|
+
return this.toggleValue;
|
|
39
|
+
}
|
|
40
|
+
set toggle(value) {
|
|
41
|
+
if (value !== this.toggleValue) {
|
|
42
|
+
this.toggleValue = value;
|
|
43
|
+
this.toggleChange.emit(this.toggle);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
get mainClass() {
|
|
47
|
+
return this.getClass('', [
|
|
48
|
+
this.exists(this.disabled) && 'disabled'
|
|
49
|
+
]);
|
|
50
|
+
}
|
|
51
|
+
ngOnInit() {
|
|
52
|
+
if (this.nasFormGroup && this.nasFormControlName) {
|
|
53
|
+
const toggleControl = this.nasFormGroup.get(this.nasFormControlName);
|
|
54
|
+
if (!toggleControl) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (this.exists(this.disabled)) {
|
|
58
|
+
toggleControl.disable();
|
|
59
|
+
}
|
|
60
|
+
this.toggle = toggleControl.value;
|
|
61
|
+
toggleControl.valueChanges.subscribe((value) => {
|
|
62
|
+
if (!this.exists(this.disabled)) {
|
|
63
|
+
this.toggle = value;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
inputChanged(event) {
|
|
69
|
+
event.stopPropagation();
|
|
70
|
+
}
|
|
71
|
+
inputClicked(event) {
|
|
72
|
+
event.stopPropagation();
|
|
73
|
+
if (this.exists(this.disabled)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this.toggle = !this.toggle;
|
|
77
|
+
}
|
|
78
|
+
onKeydown(event) {
|
|
79
|
+
switch (event.key) {
|
|
80
|
+
case 'Tab':
|
|
81
|
+
if (event.shiftKey) {
|
|
82
|
+
this.focusOnPrevious.emit(event);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
SlideToggleComponent.decorators = [
|
|
88
|
+
{ type: Component, args: [{
|
|
89
|
+
selector: 'nas-slide-toggle',
|
|
90
|
+
template: "<ng-container *ngIf=\"!nasFormControlName; else reactiveForm\">\n <label [nasClass]=\"mainClass\">\n <div [nasClass]=\"getClass('thumb-container', exists(toggle) && 'toggled')\">\n <input type=\"checkbox\"\n role=\"switch\"\n [id]=\"inputId\"\n [checked]=\"exists(toggle)\"\n [attr.aria-checked]=\"exists(toggle)\"\n [disabled]=\"exists(disabled)\"\n (change)=\"inputChanged($event)\"\n (click)=\"inputClicked($event)\">\n <div [nasClass]=\"getClass('thumb')\"></div>\n </div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </label>\n</ng-container>\n\n<ng-template #reactiveForm>\n <label [nasClass]=\"mainClass\" [formGroup]=\"nasFormGroup\">\n <div [nasClass]=\"getClass('thumb-container', exists(toggle) && 'toggled')\">\n <input type=\"checkbox\"\n role=\"switch\"\n [formControlName]=\"nasFormControlName\"\n [id]=\"inputId\"\n [checked]=\"exists(toggle)\"\n [attr.aria-checked]=\"exists(toggle)\"\n (keydown)=\"onKeydown($event)\">\n <div [nasClass]=\"getClass('thumb')\"></div>\n </div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </label>\n</ng-template>\n\n<ng-template #content>\n <span [nasClass]=\"getClass('content')\">\n <ng-content></ng-content>\n </span>\n</ng-template>",
|
|
91
|
+
encapsulation: ViewEncapsulation.None,
|
|
92
|
+
styles: ["@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@-webkit-keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@-webkit-keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@-webkit-keyframes fade-out{to{opacity:0}}@keyframes fade-out{to{opacity:0}}@-webkit-keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@-webkit-keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@-webkit-keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-slide-toggle{cursor:pointer;position:relative;margin-bottom:24px;margin-right:24px;display:inline-flex}.nas-slide-toggle input{position:absolute;opacity:0;z-index:-1}.nas-slide-toggle--disabled{cursor:auto}.nas-slide-toggle--disabled .nas-slide-toggle__thumb-container{opacity:.3}.nas-slide-toggle__thumb-container{width:44px;background-color:#c3c3c3;height:24px;border-radius:30px;transition:all .2s cubic-bezier(0,0,.1,1)}.nas-slide-toggle__thumb-container--toggled{background-color:#238e00}.nas-slide-toggle__thumb-container--toggled .nas-slide-toggle__thumb{margin-left:21px}.nas-slide-toggle__thumb{background-color:#fff;height:20px;width:20px;border-radius:20px;margin:2px 3px;transition:all .2s cubic-bezier(0,0,.1,1)}.nas-slide-toggle__content{margin-left:12px;display:block}\n"]
|
|
93
|
+
},] }
|
|
94
|
+
];
|
|
95
|
+
SlideToggleComponent.ctorParameters = () => [];
|
|
96
|
+
SlideToggleComponent.propDecorators = {
|
|
97
|
+
nasFormControlName: [{ type: Input }],
|
|
98
|
+
nasFormGroup: [{ type: Input }],
|
|
99
|
+
disabled: [{ type: Input }],
|
|
100
|
+
inputId: [{ type: Input }],
|
|
101
|
+
toggle: [{ type: Input }],
|
|
102
|
+
toggleChange: [{ type: Output }],
|
|
103
|
+
focusOnPrevious: [{ type: Output }]
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGUtdG9nZ2xlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2xpZGUtdG9nZ2xlL3NsaWRlLXRvZ2dsZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUVMLE1BQU0sRUFDTixpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFJdEUsSUFBSSxNQUFNLEdBQUcsQ0FBQyxDQUFDO0FBRWY7OztFQUdFO0FBT0YsTUFBT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VDaGFuZ2VzLnN1YnNjcmliZSgodmFsdWU6IGJvb2xlYW4pID0+IHtcbiAgICAgICAgaWYgKCF0aGlzLmV4aXN0cyh0aGlzLmRpc2FibGVkKSkge1xuICAgICAgICAgIHRoaXMudG9nZ2xlID0gdmFsdWU7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIGlucHV0Q2hhbmdlZChldmVudDogRXZlbnQpOiB2b2lkIHtcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgfVxuXG4gIGlucHV0Q2xpY2tlZChldmVudDogRXZlbnQpOiB2b2lkIHtcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcblxuICAgIGlmICh0aGlzLmV4aXN0cyh0aGlzLmRpc2FibGVkKSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMudG9nZ2xlID0gIXRoaXMudG9nZ2xlO1xuICB9XG5cbiAgb25LZXlkb3duKGV2ZW50OiBLZXlib2FyZEV2ZW50KTogdm9pZCB7XG4gICAgc3dpdGNoIChldmVudC5rZXkpIHtcbiAgICAgIGNhc2UgJ1RhYic6XG4gICAgICAgIGlmIChldmVudC5zaGlmdEtleSkge1xuICAgICAgICAgIHRoaXMuZm9jdXNPblByZXZpb3VzLmVtaXQoZXZlbnQpO1xuICAgICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { SlideToggleComponent } from './slide-toggle.component';
|
|
5
|
+
import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
|
|
6
|
+
export class SlideToggleModule {
|
|
7
|
+
}
|
|
8
|
+
SlideToggleModule.decorators = [
|
|
9
|
+
{ type: NgModule, args: [{
|
|
10
|
+
declarations: [SlideToggleComponent],
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
NasClassModule,
|
|
14
|
+
ReactiveFormsModule,
|
|
15
|
+
FormsModule
|
|
16
|
+
],
|
|
17
|
+
exports: [SlideToggleComponent]
|
|
18
|
+
},] }
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGUtdG9nZ2xlLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2xpZGUtdG9nZ2xlL3NsaWRlLXRvZ2dsZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxrREFBa0QsQ0FBQztBQVlsRixNQUFNLE9BQU8saUJBQWlCOzs7WUFWN0IsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLG9CQUFvQixDQUFDO2dCQUNwQyxPQUFPLEVBQUU7b0JBQ1AsWUFBWTtvQkFDWixjQUFjO29CQUNkLG1CQUFtQjtvQkFDbkIsV0FBVztpQkFDWjtnQkFDRCxPQUFPLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQzthQUNoQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRm9ybXNNb2R1bGUsIFJlYWN0aXZlRm9ybXNNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9mb3Jtcyc7XG5pbXBvcnQgeyBTbGlkZVRvZ2dsZUNvbXBvbmVudCB9IGZyb20gJy4vc2xpZGUtdG9nZ2xlLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBOYXNDbGFzc01vZHVsZSB9IGZyb20gJy4uLy4uL2NvcmUvZGlyZWN0aXZlcy9uYXMtY2xhc3MvbmFzLWNsYXNzLm1vZHVsZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1NsaWRlVG9nZ2xlQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBOYXNDbGFzc01vZHVsZSxcbiAgICBSZWFjdGl2ZUZvcm1zTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtTbGlkZVRvZ2dsZUNvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgU2xpZGVUb2dnbGVNb2R1bGUgeyB9XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './slider.component';
|
|
2
|
+
export * from './slider.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NsaWRlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NsaWRlci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zbGlkZXIubW9kdWxlJztcbiJdfQ==
|