@bytebrand/fe-ui-core 4.6.9 → 4.6.11
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 +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +2 -1
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +4 -0
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +4 -3
- package/source/framework/vehiclesProps/decoratedProps.tsx +5 -5
- package/source/framework/vehiclesProps/vehicleDetails.ts +2 -2
package/package.json
CHANGED
|
@@ -85,7 +85,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
|
|
|
85
85
|
description: decoratedProps[prop].value,
|
|
86
86
|
className: styles[decoratedProps[prop].name],
|
|
87
87
|
classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch,
|
|
88
|
-
|
|
88
|
+
smalltext: prop === 'consumptionCombinedAlternateView',
|
|
89
|
+
hybridPlugin: engineData.hybridPlugin
|
|
89
90
|
}));
|
|
90
91
|
|
|
91
92
|
return mainPropertiesList.map((property: any, index: number) => (
|
|
@@ -5,9 +5,10 @@ import styles from './VehicleProperty.styl';
|
|
|
5
5
|
export interface IVehicleProperty {
|
|
6
6
|
className?: string;
|
|
7
7
|
classNameIcon?: string;
|
|
8
|
-
|
|
8
|
+
smalltext?: boolean;
|
|
9
9
|
icon: string;
|
|
10
10
|
description: React.ReactNode;
|
|
11
|
+
hybridPlugin?: boolean;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
class VehicleProperty extends React.Component<IVehicleProperty, {}> {
|
|
@@ -17,8 +18,8 @@ class VehicleProperty extends React.Component<IVehicleProperty, {}> {
|
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
render(): React.ReactNode {
|
|
20
|
-
const { className, classNameIcon, icon, description, hybridPlugin } = this.props;
|
|
21
|
-
const propertyClass: string = `${styles.carProp} ${className ? className : ''} ${
|
|
21
|
+
const { className, classNameIcon, icon, description, smalltext, hybridPlugin } = this.props;
|
|
22
|
+
const propertyClass: string = `${styles.carProp} ${className ? className : ''} ${smalltext ? styles.smallProp : ''} ${hybridPlugin ? styles.pluginVal : ''}`;
|
|
22
23
|
const propertyClassIcon: string = `${styles.carIcon} ${classNameIcon ? classNameIcon : ''}`;
|
|
23
24
|
|
|
24
25
|
return (
|
|
@@ -1469,7 +1469,7 @@ const getDecoratedProps = (
|
|
|
1469
1469
|
}
|
|
1470
1470
|
},
|
|
1471
1471
|
wltpPowerCombinedPlugin: {
|
|
1472
|
-
title: t('vehicleProps:title.
|
|
1472
|
+
title: t('vehicleProps:title.wltpPowerCombined'),
|
|
1473
1473
|
get value() {
|
|
1474
1474
|
const wltpPowerCombined = car.consumption.wltpPowerCombined;
|
|
1475
1475
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
@@ -1480,7 +1480,7 @@ const getDecoratedProps = (
|
|
|
1480
1480
|
}
|
|
1481
1481
|
},
|
|
1482
1482
|
wltpPowerSlowPlugin: {
|
|
1483
|
-
title: t('vehicleProps:title.
|
|
1483
|
+
title: t('vehicleProps:title.wltpPowerSlow'),
|
|
1484
1484
|
get value() {
|
|
1485
1485
|
const wltpPowerSlow = car.consumption.wltpPowerSlow;
|
|
1486
1486
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
@@ -1491,7 +1491,7 @@ const getDecoratedProps = (
|
|
|
1491
1491
|
}
|
|
1492
1492
|
},
|
|
1493
1493
|
wltpPowerMediumPlugin: {
|
|
1494
|
-
title: t('vehicleProps:title.
|
|
1494
|
+
title: t('vehicleProps:title.wltpPowerMedium'),
|
|
1495
1495
|
get value() {
|
|
1496
1496
|
const wltpPowerMedium = car.consumption.wltpPowerMedium;
|
|
1497
1497
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
@@ -1502,7 +1502,7 @@ const getDecoratedProps = (
|
|
|
1502
1502
|
}
|
|
1503
1503
|
},
|
|
1504
1504
|
wltpPowerFastPlugin: {
|
|
1505
|
-
title: t('vehicleProps:title.
|
|
1505
|
+
title: t('vehicleProps:title.wltpPowerFast'),
|
|
1506
1506
|
get value() {
|
|
1507
1507
|
const wltpPowerFast = car.consumption.wltpPowerFast;
|
|
1508
1508
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
@@ -1513,7 +1513,7 @@ const getDecoratedProps = (
|
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
1515
|
wltpPowerVeryFastPlugin: {
|
|
1516
|
-
title: t('vehicleProps:title.
|
|
1516
|
+
title: t('vehicleProps:title.wltpPowerVeryFast'),
|
|
1517
1517
|
get value() {
|
|
1518
1518
|
const wltpPowerVeryFast = car.consumption.wltpPowerVeryFast;
|
|
1519
1519
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
@@ -43,8 +43,8 @@ const consumptionHydrogenCombinedAlternateView = ['consumptionHydrogenCombinedAl
|
|
|
43
43
|
const environmentElectroWLTP = ['wltpPowerCombined', 'wltpCo2', 'wltpRange', 'wltpPowerSlow', 'wltpPowerMedium',
|
|
44
44
|
'wltpPowerFast', 'wltpPowerVeryFast', 'powerPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
|
|
45
45
|
const environmentPluginHybridWLTP = ['wltpWeightedCombined', 'wltpTotalRange', 'wltpWeightedPowerCombined', 'wltpCo2Plugin',
|
|
46
|
-
'wltpCo2Discharged', '
|
|
47
|
-
'
|
|
46
|
+
'wltpCo2Discharged', 'wltpPowerCombinedPlugin', 'wltpPowerSlowPlugin', 'wltpPowerMediumPlugin', 'wltpPowerFastPlugin', 'wltpPowerVeryFastPlugin',
|
|
47
|
+
'wltpCombinedPlugin', 'wltpSlowPlugin', 'wltpMediumPlugin', 'wltpFastPlugin', 'wltpVeryFastPlugin',
|
|
48
48
|
'fuelPrice', 'powerPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
|
|
49
49
|
const environmentElectroBenzinDieselEthanolHybridWLTP = ['wltpCombined', 'wltpCo2', 'wltpSlow', 'wltpMedium', 'wltpFast', 'wltpVeryFast', 'fuelPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
|
|
50
50
|
const environmentHydrogenWLTP = ['wltpCombinedGas', 'wltpCo2', 'wltpSlowGas', 'wltpMediumGas', 'wltpFastGas', 'wltpVeryFastGas', 'fuelPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
|