@bytebrand/fe-ui-core 4.8.10 → 4.8.12
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/package.json
CHANGED
|
@@ -70,8 +70,8 @@ export const transformDataForDecoratedCar = (car: any) => {
|
|
|
70
70
|
capacityLoad: _get(car, 'sizeVolumeWeight.completeCapacity', null),
|
|
71
71
|
wltpCo2: _get(car, 'environmentEmissions.wltpCo2', null),
|
|
72
72
|
pluginHybrid: _get(car, 'engineData.pluginHybrid', null),
|
|
73
|
-
wltpCombined: _get(car, 'consumption.wltpCombined',
|
|
74
|
-
wltpPowerCombined: _get(car, 'consumption.wltpPowerCombined',
|
|
73
|
+
wltpCombined: _get(car, 'consumption.wltpCombined', null),
|
|
74
|
+
wltpPowerCombined: _get(car, 'consumption.wltpPowerCombined', null),
|
|
75
75
|
wltpWeightedCombined: _get(car, 'consumption.wltpWeightedCombined', null),
|
|
76
76
|
wltpWeightedPowerCombined: _get(car, 'consumption.wltpWeightedPowerCombined', null)
|
|
77
77
|
};
|
|
@@ -121,7 +121,7 @@ const getDecoratedLightProps = (
|
|
|
121
121
|
const consumptionCombined = car.consumption.consumptionCombined;
|
|
122
122
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
123
123
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
124
|
-
const wltpConsumptionCombined = car.consumption.wltpCombined
|
|
124
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
125
125
|
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
126
126
|
const consumptionPowerCombined = car.consumption.consumptionCombined;
|
|
127
127
|
|
|
@@ -189,7 +189,7 @@ const getDecoratedLightProps = (
|
|
|
189
189
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
190
190
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
191
191
|
const co2 = car.environmentEmissions.co2;
|
|
192
|
-
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined
|
|
192
|
+
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined;
|
|
193
193
|
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
194
194
|
|
|
195
195
|
const wltpConsumptionValue = Number.isFinite(wltpConsumptionPowerCombined)
|
|
@@ -222,9 +222,9 @@ const getDecoratedLightProps = (
|
|
|
222
222
|
get value() {
|
|
223
223
|
const consumptionCombined = +car.consumption.consumptionCombined;
|
|
224
224
|
const consumptionPowerCombined = +car.consumption.consumptionPowerCombined;
|
|
225
|
-
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined
|
|
225
|
+
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined;
|
|
226
226
|
|
|
227
|
-
const wltpConsumptionCombined = car.consumption.wltpCombined
|
|
227
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
228
228
|
|
|
229
229
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
230
230
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
@@ -816,7 +816,7 @@ const getDecoratedProps = (
|
|
|
816
816
|
const consumptionCombined = +car.consumption.consumptionCombined;
|
|
817
817
|
const consumptionPowerCombined = +car.consumption.consumptionPowerCombined;
|
|
818
818
|
// const wltpPowerCombined = car.consumption.wltpPowerCombined || car.consumption.wltpWeightedPowerCombined;
|
|
819
|
-
const wltpCombined = car.consumption.wltpCombined
|
|
819
|
+
const wltpCombined = car.consumption.wltpCombined;
|
|
820
820
|
const wltpWeightedCombined = car.consumption.wltpWeightedCombined;
|
|
821
821
|
const wltpWeightedPowerCombined = car.consumption.wltpWeightedPowerCombined;
|
|
822
822
|
|
|
@@ -1574,7 +1574,13 @@ const getDecoratedProps = (
|
|
|
1574
1574
|
? t('vehicleProps:value.wltpCo2Price', { price: getFormattedPrice(co2PriceLow, '$,.2f') })
|
|
1575
1575
|
: t('vehicleProps:value.na');
|
|
1576
1576
|
},
|
|
1577
|
-
valueDescription
|
|
1577
|
+
get valueDescription() {
|
|
1578
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
1579
|
+
|
|
1580
|
+
const { getCo2Price } = financingUtils;
|
|
1581
|
+
const { co2PriceLow } = getCo2Price(wltpCo2);
|
|
1582
|
+
return Number.isFinite(co2PriceLow) ? ('vehicleProps:value.wltpCo2PriceSpec') : '';
|
|
1583
|
+
}
|
|
1578
1584
|
},
|
|
1579
1585
|
wltpCo2CostsMiddle: {
|
|
1580
1586
|
get title() {
|
|
@@ -1590,7 +1596,13 @@ const getDecoratedProps = (
|
|
|
1590
1596
|
? t('vehicleProps:value.wltpCo2Price', { price: getFormattedPrice(co2PriceMedium, '$,.2f') })
|
|
1591
1597
|
: t('vehicleProps:value.na');
|
|
1592
1598
|
},
|
|
1593
|
-
valueDescription
|
|
1599
|
+
get valueDescription() {
|
|
1600
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
1601
|
+
|
|
1602
|
+
const { getCo2Price } = financingUtils;
|
|
1603
|
+
const { co2PriceMedium } = getCo2Price(wltpCo2);
|
|
1604
|
+
return Number.isFinite(co2PriceMedium) ? ('vehicleProps:value.wltpCo2PriceSpec') : '';
|
|
1605
|
+
}
|
|
1594
1606
|
},
|
|
1595
1607
|
wltpCo2CostsHigh: {
|
|
1596
1608
|
get title() {
|
|
@@ -1606,7 +1618,13 @@ const getDecoratedProps = (
|
|
|
1606
1618
|
? t('vehicleProps:value.wltpCo2Price', { price: getFormattedPrice(co2PriceHigh, '$,.2f') })
|
|
1607
1619
|
: t('vehicleProps:value.na');
|
|
1608
1620
|
},
|
|
1609
|
-
valueDescription
|
|
1621
|
+
get valueDescription() {
|
|
1622
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
1623
|
+
|
|
1624
|
+
const { getCo2Price } = financingUtils;
|
|
1625
|
+
const { co2PriceHigh } = getCo2Price(wltpCo2);
|
|
1626
|
+
return Number.isFinite(co2PriceHigh) ? ('vehicleProps:value.wltpCo2PriceSpec') : '';
|
|
1627
|
+
}
|
|
1610
1628
|
},
|
|
1611
1629
|
powerPrice: {
|
|
1612
1630
|
title: t('vehicleProps:title.powerPrice'),
|
package/source/locales/data.ts
CHANGED
|
@@ -86,11 +86,11 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
86
86
|
batteryCapacity: `${vehicleOption.batteryCapacity} kWh`,
|
|
87
87
|
wltpCo2Combined: `${getFormattedNumber(vehicleOption.wltpCo2)}g CO2/km (WLTP, komb)*`,
|
|
88
88
|
wltpCo2WtdCombined: `${getFormattedNumber(vehicleOption.wltpCo2)}g CO2/km (WLTP, gew., komb)*`,
|
|
89
|
-
wltpCombined: `${getFormattedNumber(vehicleOption.wltpCombined)
|
|
89
|
+
wltpCombined: `${getFormattedNumber(vehicleOption.wltpCombined)}l/100km`,
|
|
90
90
|
wltpWeightedCombined: `${getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km`,
|
|
91
91
|
wltpWeightedPowerCombined: `${getFormattedNumber(vehicleOption.wltpWeightedPowerCombined)}kWh/100km`,
|
|
92
|
-
wltpPowerCombined: `${getFormattedNumber(vehicleOption.wltpPowerCombined)
|
|
93
|
-
wltpCombinedGas: `${getFormattedNumber(vehicleOption.wltpCombined)
|
|
92
|
+
wltpPowerCombined: `${getFormattedNumber(vehicleOption.wltpPowerCombined)}kWh/100km`,
|
|
93
|
+
wltpCombinedGas: `${getFormattedNumber(vehicleOption.wltpCombined)}kg/100km`
|
|
94
94
|
},
|
|
95
95
|
title: {
|
|
96
96
|
'addOfferToMainSlide': 'Zum Schieberegler hinzufügen',
|