@norwegian/core-components 7.1.1 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/esm2022/lib/components/airport-select/airport-select.component.mjs +2 -2
  2. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +2 -2
  3. package/esm2022/lib/components/button/button.component.mjs +2 -2
  4. package/esm2022/lib/components/campaign-header/campaign-header.component.mjs +2 -2
  5. package/esm2022/lib/components/cover/cover.component.mjs +2 -2
  6. package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +2 -2
  7. package/esm2022/lib/components/datepicker/datepicker.component.mjs +2 -2
  8. package/esm2022/lib/components/filter/filter.component.mjs +9 -66
  9. package/esm2022/lib/components/filter/filter.module.mjs +1 -5
  10. package/esm2022/lib/components/index.mjs +1 -2
  11. package/esm2022/lib/components/input/input.component.mjs +2 -2
  12. package/esm2022/lib/components/journey/journey.component.mjs +2 -2
  13. package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +2 -2
  14. package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +2 -2
  15. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +2 -2
  16. package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +2 -2
  17. package/esm2022/lib/components/number-field/number-field.component.mjs +2 -2
  18. package/esm2022/lib/components/page-header/page-header.component.mjs +2 -2
  19. package/esm2022/lib/components/phone-number/phone-number.component.mjs +2 -2
  20. package/esm2022/lib/components/radio/radio.component.mjs +2 -2
  21. package/esm2022/lib/components/select/select.component.mjs +2 -2
  22. package/esm2022/lib/components/slider/slider.component.mjs +2 -2
  23. package/esm2022/lib/components/spinner/spinner.component.mjs +5 -5
  24. package/esm2022/lib/components/suggestions/suggestions.component.mjs +2 -2
  25. package/esm2022/lib/components/tab-group/tab/tab.component.mjs +2 -2
  26. package/esm2022/lib/components/textarea/textarea.component.mjs +2 -2
  27. package/esm2022/lib/components/toggle/toggle.component.mjs +2 -2
  28. package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +2 -2
  29. package/fesm2022/norwegian-core-components.mjs +639 -835
  30. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  31. package/lib/components/filter/filter.component.d.ts +1 -39
  32. package/lib/components/filter/filter.module.d.ts +6 -7
  33. package/lib/components/index.d.ts +0 -1
  34. package/lib/components/spinner/spinner.component.d.ts +4 -4
  35. package/package.json +1 -1
  36. package/styles/1__settings/_type.scss +1 -1
  37. package/assets/documentation/subsidy-discount/subsidy-discount.md +0 -3
  38. package/esm2022/lib/components/subsidy-discount/index.mjs +0 -4
  39. package/esm2022/lib/components/subsidy-discount/models/subsidy-discount.model.mjs +0 -2
  40. package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +0 -116
  41. package/esm2022/lib/components/subsidy-discount/subsidy-discount.module.mjs +0 -36
  42. package/lib/components/subsidy-discount/index.d.ts +0 -3
  43. package/lib/components/subsidy-discount/models/subsidy-discount.model.d.ts +0 -4
  44. package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +0 -67
  45. package/lib/components/subsidy-discount/subsidy-discount.module.d.ts +0 -12
@@ -16,9 +16,7 @@ import { SortService } from '../../core/services/sort/sort.service';
16
16
  import { AirportModel } from '../airport-select/models/airport.model';
17
17
  import { DropdownComponent } from '../dropdown/dropdown.component';
18
18
  import { PassengersModel } from '../passenger-select/models/passengers.model';
19
- import { SubsidyDiscountModel } from '../subsidy-discount/models/subsidy-discount.model';
20
19
  import { PassengerSelectComponent } from '../passenger-select/passenger-select.component';
21
- import { SubsidyDiscountComponent } from '../subsidy-discount/subsidy-discount.component';
22
20
  import { DatepickerComboComponent } from '../datepicker-combo/datepicker-combo.component';
23
21
  import { AirportSelectComponent } from '../airport-select/airport-select.component';
24
22
  import * as i0 from "@angular/core";
@@ -44,7 +42,6 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
44
42
  tripTypeRoundTrip: ElementRef;
45
43
  transitTypeDirectOnly: ElementRef;
46
44
  transitTypeTransit: ElementRef;
47
- subsidyDiscount: SubsidyDiscountComponent;
48
45
  latestSearchesOrigin: Array<AirportModel>;
49
46
  latestSearchesDestination: Array<AirportModel>;
50
47
  displaySummary: boolean;
@@ -398,14 +395,6 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
398
395
  * It requiers that the nasFormGroup input is filled.
399
396
  */
400
397
  nasFormControlGroupBooking: string;
401
- /**
402
- * @property Input
403
- * @description
404
- * Sets a formControlName directive to the input.
405
- * It requires that the consumer included ReactiveFormsModule in it's module.
406
- * It requiers that the nasFormGroup input is filled.
407
- */
408
- nasFormControlNameSubsidyDiscount: string;
409
398
  /**
410
399
  * @property Input
411
400
  * @description
@@ -455,24 +444,6 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
455
444
  * The limit for when the total amount of passengers exceeds to be a group booking.
456
445
  */
457
446
  groupBookingLimit: number;
458
- /**
459
- * @property Input
460
- * @description
461
- * Subsidy discounts
462
- */
463
- subsidyDiscounts: Array<SubsidyDiscountModel>;
464
- /**
465
- * @property Input
466
- * @description
467
- * Selected subsidy discount
468
- */
469
- selectedSubsidyDiscount: SubsidyDiscountModel;
470
- /**
471
- * @property Input
472
- * @description
473
- * Subsidy discount label
474
- */
475
- subsidyDiscountLabel: string;
476
447
  /**
477
448
  * @property Input
478
449
  * @description
@@ -797,12 +768,6 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
797
768
  * The geolocation of the user. Will be emitted if 'enableSuggestions' is true.
798
769
  */
799
770
  positionChange: EventEmitter<GeolocationPosition>;
800
- /**
801
- * @property Output
802
- * @description
803
- * An even that is fired every time the info button on the subsidy discount is clicked.
804
- */
805
- subsidyDiscountInfoClick: EventEmitter<any>;
806
771
  get inboundSelectedMonth(): UtcDate;
807
772
  set inboundSelectedMonth(month: UtcDate);
808
773
  get passengerSelectInputId(): string;
@@ -825,8 +790,6 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
825
790
  ngOnInit(): void;
826
791
  ngAfterViewInit(): void;
827
792
  ngAfterViewChecked(): void;
828
- onSubsidyDiscountInfoClick(): void;
829
- onSubsidyDiscountSelectChange(model: SubsidyDiscountModel): void;
830
793
  getClosestAirports(position: GeolocationPosition): void;
831
794
  getFilterClass(element?: string, modifiersInput?: any): ClassModel;
832
795
  getAirportSelectClass(): ClassModel;
@@ -839,7 +802,6 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
839
802
  passengerKeyDown(event: KeyboardEvent): void;
840
803
  onTripSwitchKeyDown(event: KeyboardEvent): void;
841
804
  transitKeyDown(event: KeyboardEvent): void;
842
- onSubsidyDiscountInfoButtonKeydown(event: KeyboardEvent): void;
843
805
  onPassengersSelectFocusOnNext(): void;
844
806
  focusAsync(refElement: ElementRef): void;
845
807
  onDatepickerFocusOnPrevious(event: KeyboardEvent | MouseEvent): void;
@@ -871,5 +833,5 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
871
833
  private setLatestSearches;
872
834
  private closeDropdowns;
873
835
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
874
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "nas-filter", never, { "airportRelations": { "alias": "airportRelations"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "allowedOriginAirports": { "alias": "allowedOriginAirports"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "passengerSelectLabel": { "alias": "passengerSelectLabel"; "required": false; }; "maxPaxCount": { "alias": "maxPaxCount"; "required": false; }; "passengers": { "alias": "passengers"; "required": false; }; "minAdultCount": { "alias": "minAdultCount"; "required": false; }; "tripSwitchRoundTripLabel": { "alias": "tripSwitchRoundTripLabel"; "required": false; }; "tripSwitchOneWayLabel": { "alias": "tripSwitchOneWayLabel"; "required": false; }; "directOnlyLabel": { "alias": "directOnlyLabel"; "required": false; }; "directTransitLabel": { "alias": "directTransitLabel"; "required": false; }; "minimizeOnMobile": { "alias": "minimizeOnMobile"; "required": false; }; "expandedAccordionMobile": { "alias": "expandedAccordionMobile"; "required": false; }; "defaultSummarySeparator": { "alias": "defaultSummarySeparator"; "required": false; }; "lastSummarySeparator": { "alias": "lastSummarySeparator"; "required": false; }; "passengerSelectTitle": { "alias": "passengerSelectTitle"; "required": false; }; "passengerSelectAdultsLabel": { "alias": "passengerSelectAdultsLabel"; "required": false; }; "passengerSelectYouthsLabel": { "alias": "passengerSelectYouthsLabel"; "required": false; }; "passengerSelectYoungAdultsLabel": { "alias": "passengerSelectYoungAdultsLabel"; "required": false; }; "passengerSelectChildrenLabel": { "alias": "passengerSelectChildrenLabel"; "required": false; }; "passengerSelectInfantsLabel": { "alias": "passengerSelectInfantsLabel"; "required": false; }; "groupBookingLabel": { "alias": "groupBookingLabel"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "editSearchTitle": { "alias": "editSearchTitle"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormControlNameTripType": { "alias": "nasFormControlNameTripType"; "required": false; }; "nasFormControlNameDirectOnly": { "alias": "nasFormControlNameDirectOnly"; "required": false; }; "nasFormControlNameOutbound": { "alias": "nasFormControlNameOutbound"; "required": false; }; "nasFormControlNameInbound": { "alias": "nasFormControlNameInbound"; "required": false; }; "nasFormControlGroupBooking": { "alias": "nasFormControlGroupBooking"; "required": false; }; "nasFormControlNameSubsidyDiscount": { "alias": "nasFormControlNameSubsidyDiscount"; "required": false; }; "overrideOrigin": { "alias": "overrideOrigin"; "required": false; }; "enableSuggestions": { "alias": "enableSuggestions"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "minimize": { "alias": "minimize"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; "tripType": { "alias": "tripType"; "required": false; }; "directOnly": { "alias": "directOnly"; "required": false; }; "groupBookingLimit": { "alias": "groupBookingLimit"; "required": false; }; "subsidyDiscounts": { "alias": "subsidyDiscounts"; "required": false; }; "selectedSubsidyDiscount": { "alias": "selectedSubsidyDiscount"; "required": false; }; "subsidyDiscountLabel": { "alias": "subsidyDiscountLabel"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "outboundLabel": { "alias": "outboundLabel"; "required": false; }; "inboundLabel": { "alias": "inboundLabel"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "outboundAvailableDates": { "alias": "outboundAvailableDates"; "required": false; }; "inboundAvailableDates": { "alias": "inboundAvailableDates"; "required": false; }; "times": { "alias": "times"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "outboundDisabled": { "alias": "outboundDisabled"; "required": false; }; "inboundDisabled": { "alias": "inboundDisabled"; "required": false; }; "enableDatepickers": { "alias": "enableDatepickers"; "required": false; }; "minimizingLabel": { "alias": "minimizingLabel"; "required": false; }; "maximizingLabel": { "alias": "maximizingLabel"; "required": false; }; "directOnlyMobileLabel": { "alias": "directOnlyMobileLabel"; "required": false; }; "orLabel": { "alias": "orLabel"; "required": false; }; "passengersTitleLabel": { "alias": "passengersTitleLabel"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "outboundSelectedDate": { "alias": "outboundSelectedDate"; "required": false; }; "inboundSelectedDate": { "alias": "inboundSelectedDate"; "required": false; }; "enableDestinationSelect": { "alias": "enableDestinationSelect"; "required": false; }; "enablePassengersSelect": { "alias": "enablePassengersSelect"; "required": false; }; "enableTripSwitch": { "alias": "enableTripSwitch"; "required": false; }; "enableTransitSwitch": { "alias": "enableTransitSwitch"; "required": false; }; "datePickerComboInlineFlex": { "alias": "datePickerComboInlineFlex"; "required": false; }; "aiportSelectId": { "alias": "aiportSelectId"; "required": false; }; "passengerSelectId": { "alias": "passengerSelectId"; "required": false; }; "datePickerId": { "alias": "datePickerId"; "required": false; }; "tripTypeId": { "alias": "tripTypeId"; "required": false; }; "transitTypeId": { "alias": "transitTypeId"; "required": false; }; }, { "originOpenChange": "originOpenChange"; "destinationOpenChange": "destinationOpenChange"; "passengerSelectOpenChange": "passengerSelectOpenChange"; "originChange": "originChange"; "destinationChange": "destinationChange"; "passengersChange": "passengersChange"; "tripTypeChange": "tripTypeChange"; "directOnlyChange": "directOnlyChange"; "outboundSelectedDateChange": "outboundSelectedDateChange"; "inboundSelectedDateChange": "inboundSelectedDateChange"; "outboundOpenChange": "outboundOpenChange"; "inboundOpenChange": "inboundOpenChange"; "outboundMonthChange": "outboundMonthChange"; "inboundMonthChange": "inboundMonthChange"; "focusOnNextChange": "focusOnNextChange"; "positionChange": "positionChange"; "subsidyDiscountInfoClick": "subsidyDiscountInfoClick"; }, never, never, false, never>;
836
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "nas-filter", never, { "airportRelations": { "alias": "airportRelations"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; "ariaLabelSubtract": { "alias": "ariaLabelSubtract"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelAdd": { "alias": "ariaLabelAdd"; "required": false; }; "allowedOriginAirports": { "alias": "allowedOriginAirports"; "required": false; }; "allowedDestinationAirports": { "alias": "allowedDestinationAirports"; "required": false; }; "displayLatestSearches": { "alias": "displayLatestSearches"; "required": false; }; "useSwitch": { "alias": "useSwitch"; "required": false; }; "displayClosestAirports": { "alias": "displayClosestAirports"; "required": false; }; "originAirportCode": { "alias": "originAirportCode"; "required": false; }; "destinationAirportCode": { "alias": "destinationAirportCode"; "required": false; }; "passengerSelectLabel": { "alias": "passengerSelectLabel"; "required": false; }; "maxPaxCount": { "alias": "maxPaxCount"; "required": false; }; "passengers": { "alias": "passengers"; "required": false; }; "minAdultCount": { "alias": "minAdultCount"; "required": false; }; "tripSwitchRoundTripLabel": { "alias": "tripSwitchRoundTripLabel"; "required": false; }; "tripSwitchOneWayLabel": { "alias": "tripSwitchOneWayLabel"; "required": false; }; "directOnlyLabel": { "alias": "directOnlyLabel"; "required": false; }; "directTransitLabel": { "alias": "directTransitLabel"; "required": false; }; "minimizeOnMobile": { "alias": "minimizeOnMobile"; "required": false; }; "expandedAccordionMobile": { "alias": "expandedAccordionMobile"; "required": false; }; "defaultSummarySeparator": { "alias": "defaultSummarySeparator"; "required": false; }; "lastSummarySeparator": { "alias": "lastSummarySeparator"; "required": false; }; "passengerSelectTitle": { "alias": "passengerSelectTitle"; "required": false; }; "passengerSelectAdultsLabel": { "alias": "passengerSelectAdultsLabel"; "required": false; }; "passengerSelectYouthsLabel": { "alias": "passengerSelectYouthsLabel"; "required": false; }; "passengerSelectYoungAdultsLabel": { "alias": "passengerSelectYoungAdultsLabel"; "required": false; }; "passengerSelectChildrenLabel": { "alias": "passengerSelectChildrenLabel"; "required": false; }; "passengerSelectInfantsLabel": { "alias": "passengerSelectInfantsLabel"; "required": false; }; "groupBookingLabel": { "alias": "groupBookingLabel"; "required": false; }; "allAirportsLabel": { "alias": "allAirportsLabel"; "required": false; }; "latestSearchesLabel": { "alias": "latestSearchesLabel"; "required": false; }; "closestAirportsLabel": { "alias": "closestAirportsLabel"; "required": false; }; "selectOriginFirstLabel": { "alias": "selectOriginFirstLabel"; "required": false; }; "labelOrigin": { "alias": "labelOrigin"; "required": false; }; "placeholderOrigin": { "alias": "placeholderOrigin"; "required": false; }; "labelDestination": { "alias": "labelDestination"; "required": false; }; "geolocationLabel": { "alias": "geolocationLabel"; "required": false; }; "geolocationBlockedLabel": { "alias": "geolocationBlockedLabel"; "required": false; }; "placeholderDestination": { "alias": "placeholderDestination"; "required": false; }; "keepSelection": { "alias": "keepSelection"; "required": false; }; "editSearchTitle": { "alias": "editSearchTitle"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "nasFormControlNameOrigin": { "alias": "nasFormControlNameOrigin"; "required": false; }; "nasFormControlNameDestination": { "alias": "nasFormControlNameDestination"; "required": false; }; "nasFormControlNameTripType": { "alias": "nasFormControlNameTripType"; "required": false; }; "nasFormControlNameDirectOnly": { "alias": "nasFormControlNameDirectOnly"; "required": false; }; "nasFormControlNameOutbound": { "alias": "nasFormControlNameOutbound"; "required": false; }; "nasFormControlNameInbound": { "alias": "nasFormControlNameInbound"; "required": false; }; "nasFormControlGroupBooking": { "alias": "nasFormControlGroupBooking"; "required": false; }; "overrideOrigin": { "alias": "overrideOrigin"; "required": false; }; "enableSuggestions": { "alias": "enableSuggestions"; "required": false; }; "closestAirports": { "alias": "closestAirports"; "required": false; }; "minimize": { "alias": "minimize"; "required": false; }; "airports": { "alias": "airports"; "required": false; }; "tripType": { "alias": "tripType"; "required": false; }; "directOnly": { "alias": "directOnly"; "required": false; }; "groupBookingLimit": { "alias": "groupBookingLimit"; "required": false; }; "ariaLabelPreviousMonth": { "alias": "ariaLabelPreviousMonth"; "required": false; }; "ariaLabelNextMonth": { "alias": "ariaLabelNextMonth"; "required": false; }; "noAvailableFlightsLabel": { "alias": "noAvailableFlightsLabel"; "required": false; }; "availableFlightsLabel": { "alias": "availableFlightsLabel"; "required": false; }; "disablePastSelection": { "alias": "disablePastSelection"; "required": false; }; "outboundLabel": { "alias": "outboundLabel"; "required": false; }; "inboundLabel": { "alias": "inboundLabel"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "outboundAvailableDates": { "alias": "outboundAvailableDates"; "required": false; }; "inboundAvailableDates": { "alias": "inboundAvailableDates"; "required": false; }; "times": { "alias": "times"; "required": false; }; "dateDisplayFormat": { "alias": "dateDisplayFormat"; "required": false; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "outboundDisabled": { "alias": "outboundDisabled"; "required": false; }; "inboundDisabled": { "alias": "inboundDisabled"; "required": false; }; "enableDatepickers": { "alias": "enableDatepickers"; "required": false; }; "minimizingLabel": { "alias": "minimizingLabel"; "required": false; }; "maximizingLabel": { "alias": "maximizingLabel"; "required": false; }; "directOnlyMobileLabel": { "alias": "directOnlyMobileLabel"; "required": false; }; "orLabel": { "alias": "orLabel"; "required": false; }; "passengersTitleLabel": { "alias": "passengersTitleLabel"; "required": false; }; "invalidDestinationText": { "alias": "invalidDestinationText"; "required": false; }; "outboundSelectedDate": { "alias": "outboundSelectedDate"; "required": false; }; "inboundSelectedDate": { "alias": "inboundSelectedDate"; "required": false; }; "enableDestinationSelect": { "alias": "enableDestinationSelect"; "required": false; }; "enablePassengersSelect": { "alias": "enablePassengersSelect"; "required": false; }; "enableTripSwitch": { "alias": "enableTripSwitch"; "required": false; }; "enableTransitSwitch": { "alias": "enableTransitSwitch"; "required": false; }; "datePickerComboInlineFlex": { "alias": "datePickerComboInlineFlex"; "required": false; }; "aiportSelectId": { "alias": "aiportSelectId"; "required": false; }; "passengerSelectId": { "alias": "passengerSelectId"; "required": false; }; "datePickerId": { "alias": "datePickerId"; "required": false; }; "tripTypeId": { "alias": "tripTypeId"; "required": false; }; "transitTypeId": { "alias": "transitTypeId"; "required": false; }; }, { "originOpenChange": "originOpenChange"; "destinationOpenChange": "destinationOpenChange"; "passengerSelectOpenChange": "passengerSelectOpenChange"; "originChange": "originChange"; "destinationChange": "destinationChange"; "passengersChange": "passengersChange"; "tripTypeChange": "tripTypeChange"; "directOnlyChange": "directOnlyChange"; "outboundSelectedDateChange": "outboundSelectedDateChange"; "inboundSelectedDateChange": "inboundSelectedDateChange"; "outboundOpenChange": "outboundOpenChange"; "inboundOpenChange": "inboundOpenChange"; "outboundMonthChange": "outboundMonthChange"; "inboundMonthChange": "inboundMonthChange"; "focusOnNextChange": "focusOnNextChange"; "positionChange": "positionChange"; }, never, never, false, never>;
875
837
  }
@@ -10,14 +10,13 @@ import * as i8 from "../icon/icon.module";
10
10
  import * as i9 from "../checkbox/checkbox.module";
11
11
  import * as i10 from "@angular/forms";
12
12
  import * as i11 from "../button/button.module";
13
- import * as i12 from "../subsidy-discount/subsidy-discount.module";
14
- import * as i13 from "../suggestions/suggestions.module";
15
- import * as i14 from "../datepicker-combo/datepicker-combo.module";
16
- import * as i15 from "../datepicker/datepicker.module";
17
- import * as i16 from "../radio/radio.module";
18
- import * as i17 from "../backdrop/backdrop.module";
13
+ import * as i12 from "../suggestions/suggestions.module";
14
+ import * as i13 from "../datepicker-combo/datepicker-combo.module";
15
+ import * as i14 from "../datepicker/datepicker.module";
16
+ import * as i15 from "../radio/radio.module";
17
+ import * as i16 from "../backdrop/backdrop.module";
19
18
  export declare class FilterModule {
20
19
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<FilterModule, [typeof i1.FilterComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.AirportSelectModule, typeof i5.DropdownModule, typeof i6.PassengerSelectModule, typeof i7.AccordionModule, typeof i8.IconModule, typeof i9.CheckboxModule, typeof i10.ReactiveFormsModule, typeof i11.ButtonModule, typeof i12.SubsidyDiscountModule, typeof i13.SuggestionsModule, typeof i14.DatepickerComboModule, typeof i15.DatepickerModule, typeof i16.RadioModule, typeof i17.BackdropModule], [typeof i1.FilterComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FilterModule, [typeof i1.FilterComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.AirportSelectModule, typeof i5.DropdownModule, typeof i6.PassengerSelectModule, typeof i7.AccordionModule, typeof i8.IconModule, typeof i9.CheckboxModule, typeof i10.ReactiveFormsModule, typeof i11.ButtonModule, typeof i12.SuggestionsModule, typeof i13.DatepickerComboModule, typeof i14.DatepickerModule, typeof i15.RadioModule, typeof i16.BackdropModule], [typeof i1.FilterComponent]>;
22
21
  static ɵinj: i0.ɵɵInjectorDeclaration<FilterModule>;
23
22
  }
@@ -28,7 +28,6 @@ export * from './radio/index';
28
28
  export * from './select/index';
29
29
  export * from './spinner/index';
30
30
  export * from './status-box/index';
31
- export * from './subsidy-discount/index';
32
31
  export * from './toggle/index';
33
32
  export * from './list/index';
34
33
  export * from './journey-availability-list/index';
@@ -89,9 +89,9 @@ export declare class SpinnerComponent extends NasComponentBase implements OnInit
89
89
  * @description
90
90
  * New round small spinner design
91
91
  * @example
92
- * <nas-spinner roundedsmall></nas-spinner>
93
- */
94
- roundedsmall?: boolean;
92
+ * <nas-spinner roundedSmall></nas-spinner>
93
+ */
94
+ roundedSmall?: boolean;
95
95
  /**
96
96
  * @property Input
97
97
  * @description
@@ -108,5 +108,5 @@ export declare class SpinnerComponent extends NasComponentBase implements OnInit
108
108
  get modifiers(): Array<string>;
109
109
  getClasses(element?: string, modifiers?: any): Array<ClassModel>;
110
110
  static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "nas-spinner", never, { "text": { "alias": "text"; "required": false; }; "refreshText": { "alias": "refreshText"; "required": false; }; "small": { "alias": "small"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "enable": { "alias": "enable"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "blockScrolling": { "alias": "blockScrolling"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "roundedsmall": { "alias": "roundedsmall"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, {}, never, never, false, never>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "nas-spinner", never, { "text": { "alias": "text"; "required": false; }; "refreshText": { "alias": "refreshText"; "required": false; }; "small": { "alias": "small"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "enable": { "alias": "enable"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "blockScrolling": { "alias": "blockScrolling"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "roundedSmall": { "alias": "roundedSmall"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, {}, never, never, false, never>;
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "7.1.1",
3
+ "version": "7.1.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 22.0.0",
6
6
  "@angular/core": ">=16.0.0 < 22.0.0"
@@ -1,4 +1,4 @@
1
- $fallback: 'Apercu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1
+ $fallback: Arial, 'Apercu', 'Helvetica Neue', Helvetica, sans-serif;
2
2
 
3
3
  $fonts: (
4
4
  base: (font: 'NorwegianTextPro',
@@ -1,3 +0,0 @@
1
- The `nas-subsidy-discount` component is an extended dropdown/ select component, with label, icon, frame/border, and info button made for subsidy discount selection. The icon is customizable, but defaults to the medium family icon. Icons which is provided into the component must exist in medium size (see nas-icon documentation). It is used e.x. to select domestic spain resident subsidies.
2
-
3
- The icon button can be used to trigger e.x. a model, info-box, or other events to inform user about the subsidy discount.
@@ -1,4 +0,0 @@
1
- export * from './subsidy-discount.component';
2
- export * from './subsidy-discount.module';
3
- export * from './models/subsidy-discount.model';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N1YnNpZHktZGlzY291bnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1YnNpZHktZGlzY291bnQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vc3Vic2lkeS1kaXNjb3VudC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9tb2RlbHMvc3Vic2lkeS1kaXNjb3VudC5tb2RlbCc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2lkeS1kaXNjb3VudC5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc3Vic2lkeS1kaXNjb3VudC9tb2RlbHMvc3Vic2lkeS1kaXNjb3VudC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTdWJzaWR5RGlzY291bnRNb2RlbCB7XG4gIGNvZGU6IHN0cmluZztcbiAgZGlzcGxheU5hbWU6IHN0cmluZztcbn1cbiJdfQ==
@@ -1,116 +0,0 @@
1
- import { Component, Input, Output, EventEmitter, ViewEncapsulation, ViewChild } from '@angular/core';
2
- import { NasComponentBase } from '../../core/base/nas-component.base';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../select/select.component";
5
- import * as i2 from "../../core/directives/nas-class/nas-class.directive";
6
- import * as i3 from "../icon/icon.component";
7
- import * as i4 from "../button/button.component";
8
- /**
9
- * @description
10
- * Norwegian Subsidy Discount Component | Functional
11
- */
12
- export class SubsidyDiscountComponent extends NasComponentBase {
13
- /**
14
- * @property Input
15
- * @description
16
- * Gets or sets the selected discount value.
17
- */
18
- get selectedDiscount() {
19
- return this.selectedDiscountValue;
20
- }
21
- set selectedDiscount(discount) {
22
- if (!discount || this.selectedDiscountValue && this.selectedDiscountValue.code === discount.code) {
23
- return;
24
- }
25
- this.selectedDiscountValue = discount;
26
- if (this.options) {
27
- this.selectedOption = this.options.find(x => x.value === discount.code);
28
- }
29
- }
30
- /**
31
- * @property Input
32
- * @description
33
- * Gets or sets discounts value.
34
- */
35
- get discounts() {
36
- return this.discountsValue;
37
- }
38
- set discounts(discounts) {
39
- if (this.options) {
40
- return;
41
- }
42
- this.options = discounts.map(x => {
43
- const selectOption = {
44
- title: x.displayName,
45
- value: x.code
46
- };
47
- return selectOption;
48
- });
49
- this.discountsValue = discounts;
50
- if (this.selectedDiscountValue) {
51
- this.selectedOption = this.options.find(x => x.value === this.selectedDiscountValue.code);
52
- }
53
- }
54
- constructor() {
55
- super('nas-subsidy-discount');
56
- /**
57
- * @property Input
58
- * @description
59
- * Set icon on component. Icon need to exist in medium size. Default value is 'family'
60
- */
61
- this.icon = 'family';
62
- /**
63
- * @property Output
64
- * @description
65
- * An even that is fired every time the info button is clicked.
66
- */
67
- this.infoButtonClick = new EventEmitter();
68
- /**
69
- * @property Output
70
- * @description
71
- * Fires when info button has a keydown event.
72
- */
73
- this.infoButtonKeydown = new EventEmitter();
74
- /**
75
- * @property Output
76
- * @description
77
- * An even that is fired every time the info button is clicked.
78
- */
79
- this.discountSelectChange = new EventEmitter();
80
- }
81
- onInfoButtonClick() {
82
- this.infoButtonClick.emit();
83
- }
84
- onSelectedChange(option) {
85
- const selectedDiscount = this.discounts.find(x => x.code === option.value);
86
- this.selectedOption = option;
87
- this.discountSelectChange.emit(selectedDiscount);
88
- }
89
- onInfoButtonKeydown(event) {
90
- this.infoButtonKeydown.emit(event);
91
- }
92
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: SubsidyDiscountComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
93
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: SubsidyDiscountComponent, selector: "nas-subsidy-discount", inputs: { label: "label", icon: "icon", selectedDiscount: "selectedDiscount", discounts: "discounts" }, outputs: { infoButtonClick: "infoButtonClick", infoButtonKeydown: "infoButtonKeydown", discountSelectChange: "discountSelectChange" }, viewQueries: [{ propertyName: "infoButton", first: true, predicate: ["infoButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div [nasClass]=\"getContainerClass()\">\n <div [nasClass]=\"getClass('box')\">\n <nas-icon [cssClass]=\"getClass('icon')\"\n [type]=\"'medium'\"\n [icon]=\"icon\"></nas-icon>\n <div [nasClass]=\"getClass('content')\">\n <div>\n <label [nasClass]=\"getClass('label')\">{{label}}</label>\n <nas-button #infoButton\n [cssClass]=\"getClass('info')\"\n [overrideBaseCssClass]=\"true\"\n [ariaLabel]=\"label\"\n (clickChange)=\"onInfoButtonClick()\"\n (keydown)=\"onInfoButtonKeydown($event)\"></nas-button>\n </div>\n <nas-select [spaceless]=\"true\"\n [fill]=\"true\"\n [cssClass]=\"getClass('select')\"\n [options]=\"options\"\n (selectedChange)=\"onSelectedChange($event)\"\n [selected]=\"selectedOption\"></nas-select>\n </div>\n </div>\n</div>", styles: ["@keyframes fade-in{0%{opacity:0}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-out{to{opacity:0}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-subsidy-discount{margin-bottom:36px}@media (min-width: 640px){.nas-subsidy-discount{margin-top:16px}}@media (min-width: 1000px){.nas-subsidy-discount{margin-top:36px;margin-bottom:0}}.nas-subsidy-discount__box{display:flex;align-items:center;padding:16px;border:2px solid #E9E7E4;max-width:600px}@media (min-width: 1000px){.nas-subsidy-discount__box{display:inline-flex}}.nas-subsidy-discount__content{display:flex;flex-direction:column;align-items:flex-start}.nas-subsidy-discount__icon{margin-right:16px;display:none}@media (min-width: 640px){.nas-subsidy-discount__icon{display:block}}.nas-subsidy-discount__label{font-family:NorwegianTextPro,Apercu,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;display:inline-block;margin-right:9px;margin-bottom:9px}.nas-subsidy-discount__select{margin-bottom:12px}.nas-subsidy-discount__info{margin-left:9px;width:21px;height:21px;border-radius:50%;background-color:#e9e7e4}.nas-subsidy-discount__info:before{content:\"?\";font-family:NorwegianTextPro,Apercu,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700}\n"], dependencies: [{ kind: "component", type: i1.SelectComponent, selector: "nas-select", inputs: ["id", "inline", "label", "block", "spaceless", "stretch", "compact", "simple", "light", "fill", "error", "errorMessage", "disabled", "autogrow", "cssClass", "nasFormControlName", "nasFormGroup", "options", "selectedValue", "selected"], outputs: ["selectedChange", "keyDownEvent"] }, { kind: "directive", type: i2.NasClassDirective, selector: "[nasClass]", inputs: ["nasClass", "attr.class"] }, { kind: "component", type: i3.IconComponent, selector: "nas-icon", inputs: ["icon", "type", "isIndicator", "lightCircularBackground", "cssClass"] }, { kind: "component", type: i4.ButtonComponent, selector: "nas-button", inputs: ["primary", "secondary", "link", "light", "large", "block", "flex", "compact", "right", "spaceless", "href", "trackingvalue", "canContinueOnDisabled", "disabled", "type", "cssClass", "ariaLabel", "cssStyle", "tabindex", "overrideBaseCssClass", "useRouterLink", "id", "target", "icon", "iconLeft", "iconType", "buttonlink"], outputs: ["clickChange"] }], encapsulation: i0.ViewEncapsulation.None }); }
94
- }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: SubsidyDiscountComponent, decorators: [{
96
- type: Component,
97
- args: [{ selector: 'nas-subsidy-discount', encapsulation: ViewEncapsulation.None, template: "<div [nasClass]=\"getContainerClass()\">\n <div [nasClass]=\"getClass('box')\">\n <nas-icon [cssClass]=\"getClass('icon')\"\n [type]=\"'medium'\"\n [icon]=\"icon\"></nas-icon>\n <div [nasClass]=\"getClass('content')\">\n <div>\n <label [nasClass]=\"getClass('label')\">{{label}}</label>\n <nas-button #infoButton\n [cssClass]=\"getClass('info')\"\n [overrideBaseCssClass]=\"true\"\n [ariaLabel]=\"label\"\n (clickChange)=\"onInfoButtonClick()\"\n (keydown)=\"onInfoButtonKeydown($event)\"></nas-button>\n </div>\n <nas-select [spaceless]=\"true\"\n [fill]=\"true\"\n [cssClass]=\"getClass('select')\"\n [options]=\"options\"\n (selectedChange)=\"onSelectedChange($event)\"\n [selected]=\"selectedOption\"></nas-select>\n </div>\n </div>\n</div>", styles: ["@keyframes fade-in{0%{opacity:0}}@keyframes fade-in-down{0%{opacity:0;transform:translateY(-30px)}}@keyframes fade-in-left{0%{opacity:0;transform:translate(-30px)}}@keyframes fade-in-right{0%{opacity:0;transform:translate(30px)}}@keyframes fade-out{to{opacity:0}}@keyframes flip-in{0%{opacity:0;transform:rotateX(-90deg)}40%{opacity:1;transform:rotateX(10deg)}}@keyframes flip-out{to{opacity:0;transform:rotateX(-90deg)}}@keyframes pop-in-from-top{0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-100,1,1);opacity:0}6.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-30.227,1,1)}13.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,1.76,1,1)}20%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,7.08,1,1)}26.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,3.838,1,1)}33.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.902,1,1);opacity:1}40%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.237,1,1)}46.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.312,1,1)}53.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.141,1,1)}60%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.021,1,1)}66.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.015,1,1)}73.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.013,1,1)}80%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,.005,1,1)}86.67%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1)}93.33%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}to{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,-.001,1,1);-webkit-transform:translate3d(0,0,0)}}.nas-subsidy-discount{margin-bottom:36px}@media (min-width: 640px){.nas-subsidy-discount{margin-top:16px}}@media (min-width: 1000px){.nas-subsidy-discount{margin-top:36px;margin-bottom:0}}.nas-subsidy-discount__box{display:flex;align-items:center;padding:16px;border:2px solid #E9E7E4;max-width:600px}@media (min-width: 1000px){.nas-subsidy-discount__box{display:inline-flex}}.nas-subsidy-discount__content{display:flex;flex-direction:column;align-items:flex-start}.nas-subsidy-discount__icon{margin-right:16px;display:none}@media (min-width: 640px){.nas-subsidy-discount__icon{display:block}}.nas-subsidy-discount__label{font-family:NorwegianTextPro,Apercu,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;display:inline-block;margin-right:9px;margin-bottom:9px}.nas-subsidy-discount__select{margin-bottom:12px}.nas-subsidy-discount__info{margin-left:9px;width:21px;height:21px;border-radius:50%;background-color:#e9e7e4}.nas-subsidy-discount__info:before{content:\"?\";font-family:NorwegianTextPro,Apercu,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700}\n"] }]
98
- }], ctorParameters: function () { return []; }, propDecorators: { infoButton: [{
99
- type: ViewChild,
100
- args: ['infoButton']
101
- }], label: [{
102
- type: Input
103
- }], icon: [{
104
- type: Input
105
- }], selectedDiscount: [{
106
- type: Input
107
- }], discounts: [{
108
- type: Input
109
- }], infoButtonClick: [{
110
- type: Output
111
- }], infoButtonKeydown: [{
112
- type: Output
113
- }], discountSelectChange: [{
114
- type: Output
115
- }] } });
116
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2lkeS1kaXNjb3VudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N1YnNpZHktZGlzY291bnQvc3Vic2lkeS1kaXNjb3VudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N1YnNpZHktZGlzY291bnQvc3Vic2lkeS1kaXNjb3VudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0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IFtzZWxlY3RlZF09XCJzZWxlY3RlZE9wdGlvblwiPjwvbmFzLXNlbGVjdD5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj4iXX0=
@@ -1,36 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { NasClassModule } from '../../core/directives/nas-class/nas-class.module';
4
- import { ButtonModule } from '../button/button.module';
5
- import { IconModule } from '../icon/icon.module';
6
- import { SelectModule } from '../select/select.module';
7
- import { SubsidyDiscountComponent } from './subsidy-discount.component';
8
- import * as i0 from "@angular/core";
9
- export class SubsidyDiscountModule {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: SubsidyDiscountModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
11
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: SubsidyDiscountModule, declarations: [SubsidyDiscountComponent], imports: [CommonModule,
12
- SelectModule,
13
- NasClassModule,
14
- IconModule,
15
- ButtonModule], exports: [SubsidyDiscountComponent] }); }
16
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: SubsidyDiscountModule, imports: [CommonModule,
17
- SelectModule,
18
- NasClassModule,
19
- IconModule,
20
- ButtonModule] }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: SubsidyDiscountModule, decorators: [{
23
- type: NgModule,
24
- args: [{
25
- imports: [
26
- CommonModule,
27
- SelectModule,
28
- NasClassModule,
29
- IconModule,
30
- ButtonModule,
31
- ],
32
- declarations: [SubsidyDiscountComponent],
33
- exports: [SubsidyDiscountComponent],
34
- }]
35
- }] });
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2lkeS1kaXNjb3VudC5tb2R1bGUu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CQUN4QyxPQUFPLEVBQUUsQ0FBQyx3QkFBd0IsQ0FBQztpQkFDcEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuaW1wb3J0IHsgTmFzQ2xhc3NNb2R1bGUgfSBmcm9tICcuLi8uLi9jb3JlL2RpcmVjdGl2ZXMvbmFzLWNsYXNzL25hcy1jbGFzcy5tb2R1bGUnO1xuaW1wb3J0IHsgQnV0dG9uTW9kdWxlIH0gZnJvbSAnLi4vYnV0dG9uL2J1dHRvbi5tb2R1bGUnO1xuaW1wb3J0IHsgSWNvbk1vZHVsZSB9IGZyb20gJy4uL2ljb24vaWNvbi5tb2R1bGUnO1xuaW1wb3J0IHsgU2VsZWN0TW9kdWxlIH0gZnJvbSAnLi4vc2VsZWN0L3NlbGVjdC5tb2R1bGUnO1xuaW1wb3J0IHsgU3Vic2lkeURpc2NvdW50Q29tcG9uZW50IH0gZnJvbSAnLi9zdWJzaWR5LWRpc2NvdW50LmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgU2VsZWN0TW9kdWxlLFxuICAgIE5hc0NsYXNzTW9kdWxlLFxuICAgIEljb25Nb2R1bGUsXG4gICAgQnV0dG9uTW9kdWxlLFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtTdWJzaWR5RGlzY291bnRDb21wb25lbnRdLFxuICBleHBvcnRzOiBbU3Vic2lkeURpc2NvdW50Q29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgU3Vic2lkeURpc2NvdW50TW9kdWxlIHt9XG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './subsidy-discount.component';
2
- export * from './subsidy-discount.module';
3
- export * from './models/subsidy-discount.model';
@@ -1,4 +0,0 @@
1
- export interface SubsidyDiscountModel {
2
- code: string;
3
- displayName: string;
4
- }
@@ -1,67 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { NasComponentBase } from '../../core/base/nas-component.base';
3
- import { SelectOptionModel } from '../select/models/select-option.model';
4
- import { SubsidyDiscountModel } from './models/subsidy-discount.model';
5
- import { ButtonComponent } from '../button/button.component';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @description
9
- * Norwegian Subsidy Discount Component | Functional
10
- */
11
- export declare class SubsidyDiscountComponent extends NasComponentBase {
12
- infoButton: ButtonComponent;
13
- options: Array<SelectOptionModel>;
14
- selectedOption: SelectOptionModel;
15
- /**
16
- * @property Input
17
- * @description
18
- * Add custom label styling.
19
- */
20
- label: string;
21
- /**
22
- * @property Input
23
- * @description
24
- * Set icon on component. Icon need to exist in medium size. Default value is 'family'
25
- */
26
- icon: string;
27
- /**
28
- * @property Input
29
- * @description
30
- * Gets or sets the selected discount value.
31
- */
32
- get selectedDiscount(): SubsidyDiscountModel;
33
- set selectedDiscount(discount: SubsidyDiscountModel);
34
- /**
35
- * @property Input
36
- * @description
37
- * Gets or sets discounts value.
38
- */
39
- get discounts(): Array<SubsidyDiscountModel>;
40
- set discounts(discounts: Array<SubsidyDiscountModel>);
41
- /**
42
- * @property Output
43
- * @description
44
- * An even that is fired every time the info button is clicked.
45
- */
46
- infoButtonClick: EventEmitter<any>;
47
- /**
48
- * @property Output
49
- * @description
50
- * Fires when info button has a keydown event.
51
- */
52
- infoButtonKeydown: EventEmitter<KeyboardEvent>;
53
- /**
54
- * @property Output
55
- * @description
56
- * An even that is fired every time the info button is clicked.
57
- */
58
- discountSelectChange: EventEmitter<SubsidyDiscountModel>;
59
- private discountsValue;
60
- private selectedDiscountValue;
61
- constructor();
62
- onInfoButtonClick(): void;
63
- onSelectedChange(option: SelectOptionModel): void;
64
- onInfoButtonKeydown(event: KeyboardEvent): void;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<SubsidyDiscountComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<SubsidyDiscountComponent, "nas-subsidy-discount", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "selectedDiscount": { "alias": "selectedDiscount"; "required": false; }; "discounts": { "alias": "discounts"; "required": false; }; }, { "infoButtonClick": "infoButtonClick"; "infoButtonKeydown": "infoButtonKeydown"; "discountSelectChange": "discountSelectChange"; }, never, never, false, never>;
67
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./subsidy-discount.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../select/select.module";
5
- import * as i4 from "../../core/directives/nas-class/nas-class.module";
6
- import * as i5 from "../icon/icon.module";
7
- import * as i6 from "../button/button.module";
8
- export declare class SubsidyDiscountModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SubsidyDiscountModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SubsidyDiscountModule, [typeof i1.SubsidyDiscountComponent], [typeof i2.CommonModule, typeof i3.SelectModule, typeof i4.NasClassModule, typeof i5.IconModule, typeof i6.ButtonModule], [typeof i1.SubsidyDiscountComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<SubsidyDiscountModule>;
12
- }