@norwegian/core-components 7.9.0 → 7.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/icon/icon.component.mjs +2 -2
- package/esm2022/lib/components/journey/journey.component.mjs +14 -14
- package/esm2022/lib/components/journey/models/journey-flight.model.mjs +1 -1
- package/esm2022/lib/components/journey/models/marketing-carrier.enum.mjs +8 -0
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +14 -14
- package/esm2022/lib/shared/models/journey-stopover.model.mjs +1 -1
- package/fesm2022/norwegian-core-components.mjs +33 -33
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/journey/journey.component.d.ts +2 -2
- package/lib/components/journey/models/journey-flight.model.d.ts +2 -2
- package/lib/components/journey/models/marketing-carrier.enum.d.ts +6 -0
- package/lib/components/journey-stopover/journey-stopover.component.d.ts +2 -2
- package/lib/shared/models/journey-stopover.model.d.ts +2 -2
- package/package.json +1 -1
- package/esm2022/lib/components/journey/models/flight-type.enum.mjs +0 -8
- package/lib/components/journey/models/flight-type.enum.d.ts +0 -6
- /package/assets/icons/{icon-flight-type-norwegian.svg → icon-marketing-carrier-norwegian.svg} +0 -0
- /package/assets/icons/{icon-flight-type-wideroe.svg → icon-marketing-carrier-wideroe.svg} +0 -0
|
@@ -27,7 +27,7 @@ export declare class JourneyComponent extends NasComponentBase implements OnChan
|
|
|
27
27
|
estimatedArrivalDate?: string;
|
|
28
28
|
estimatedDepartureDate?: string;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
marketingCarrierIcon: string;
|
|
31
31
|
/**
|
|
32
32
|
* @property Input
|
|
33
33
|
* @description
|
|
@@ -94,7 +94,7 @@ export declare class JourneyComponent extends NasComponentBase implements OnChan
|
|
|
94
94
|
ngOnChanges(changes: SimpleChanges): void;
|
|
95
95
|
getTimeClass(journeyFlight: JourneyFlightModel): ClassModel;
|
|
96
96
|
getLineClass(): ClassModel;
|
|
97
|
-
private
|
|
97
|
+
private getMarketingCarrierIcon;
|
|
98
98
|
private setDisplayDates;
|
|
99
99
|
private transformDate;
|
|
100
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<JourneyComponent, never>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UtcDate } from '../../../core/models/utc-date.model';
|
|
2
|
-
import {
|
|
2
|
+
import { MarketingCarrier } from './marketing-carrier.enum';
|
|
3
3
|
export interface JourneyFlightModel {
|
|
4
4
|
date: UtcDate;
|
|
5
5
|
airportName: string;
|
|
6
6
|
airportCode?: string;
|
|
7
7
|
airlineName?: string;
|
|
8
8
|
flightCode?: string;
|
|
9
|
-
|
|
9
|
+
marketingCarrier?: MarketingCarrier;
|
|
10
10
|
time: UtcDate;
|
|
11
11
|
estimatedTime?: UtcDate;
|
|
12
12
|
estimatedDate?: UtcDate;
|
|
@@ -18,7 +18,7 @@ export declare class JourneyStopoverComponent extends NasComponentBase implement
|
|
|
18
18
|
private datePipe;
|
|
19
19
|
private dateService;
|
|
20
20
|
stopoverTime: StopoverTimeModel;
|
|
21
|
-
|
|
21
|
+
marketingCarrierIcon: string;
|
|
22
22
|
currentStopover: {
|
|
23
23
|
departureTime: string;
|
|
24
24
|
arrivalTime: string;
|
|
@@ -124,7 +124,7 @@ export declare class JourneyStopoverComponent extends NasComponentBase implement
|
|
|
124
124
|
private setDisplayDates;
|
|
125
125
|
private transformDate;
|
|
126
126
|
private getStopoverTime;
|
|
127
|
-
private
|
|
127
|
+
private getMarketingCarrierIcon;
|
|
128
128
|
getTimeClass(estimatedTime: string, estimatedDate: string): ClassModel;
|
|
129
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<JourneyStopoverComponent, never>;
|
|
130
130
|
static ɵcmp: i0.ɵɵComponentDeclaration<JourneyStopoverComponent, "nas-journey-stopover", never, { "journeyStopoverModel": { "alias": "journeyStopoverModel"; "required": false; }; "transitLabel": { "alias": "transitLabel"; "required": false; }; "arrivalTimeLabel": { "alias": "arrivalTimeLabel"; "required": false; }; "departureTimeLabel": { "alias": "departureTimeLabel"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "transitHoursIndicator": { "alias": "transitHoursIndicator"; "required": false; }; "transitMinutesIndicator": { "alias": "transitMinutesIndicator"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarketingCarrier } from '../../components/journey/models/marketing-carrier.enum';
|
|
2
2
|
import { UtcDate } from '../../core/models/utc-date.model';
|
|
3
3
|
export interface JourneyStopoverModel {
|
|
4
4
|
airportName: string;
|
|
5
5
|
airportCode?: string;
|
|
6
6
|
airlineName?: string;
|
|
7
7
|
flightCode?: string;
|
|
8
|
-
|
|
8
|
+
marketingCarrier?: MarketingCarrier;
|
|
9
9
|
localArrivalTime: UtcDate;
|
|
10
10
|
localDepartureTime: UtcDate;
|
|
11
11
|
localArrivalDate?: UtcDate;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var FlightType;
|
|
2
|
-
(function (FlightType) {
|
|
3
|
-
FlightType[FlightType["None"] = 0] = "None";
|
|
4
|
-
FlightType[FlightType["DY"] = 1] = "DY";
|
|
5
|
-
FlightType[FlightType["D8"] = 2] = "D8";
|
|
6
|
-
FlightType[FlightType["WF"] = 3] = "WF";
|
|
7
|
-
})(FlightType || (FlightType = {}));
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxpZ2h0LXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvam91cm5leS9tb2RlbHMvZmxpZ2h0LXR5cGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxVQUtYO0FBTEQsV0FBWSxVQUFVO0lBQ2xCLDJDQUFRLENBQUE7SUFDUix1Q0FBTSxDQUFBO0lBQ04sdUNBQU0sQ0FBQTtJQUNOLHVDQUFNLENBQUE7QUFDVixDQUFDLEVBTFcsVUFBVSxLQUFWLFVBQVUsUUFLckIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBGbGlnaHRUeXBlIHtcbiAgICBOb25lID0gMCxcbiAgICBEWSA9IDEsXG4gICAgRDggPSAyLFxuICAgIFdGID0gM1xufVxuIl19
|
/package/assets/icons/{icon-flight-type-norwegian.svg → icon-marketing-carrier-norwegian.svg}
RENAMED
|
File without changes
|
|
File without changes
|