@bytebrand/fe-ui-core 4.4.2 → 4.5.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.
package/package.json
CHANGED
|
@@ -115,9 +115,19 @@ const getDecoratedLightProps = (
|
|
|
115
115
|
const consumptionCombined = car.consumption.consumptionCombined;
|
|
116
116
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
117
117
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
118
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
119
|
+
const wltpCo2 = car.consumption.wltpCo2;
|
|
118
120
|
|
|
119
121
|
const co2 = car.environmentEmissions.co2;
|
|
120
122
|
|
|
123
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionCombined)
|
|
124
|
+
? t('vehicleProps:value.consumptionCombined', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
125
|
+
: null;
|
|
126
|
+
|
|
127
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
128
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
129
|
+
: null;
|
|
130
|
+
|
|
121
131
|
const consumptionValue = Number.isFinite(consumptionCombined)
|
|
122
132
|
? t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
123
133
|
: t('vehicleProps:value.na');
|
|
@@ -126,6 +136,10 @@ const getDecoratedLightProps = (
|
|
|
126
136
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
127
137
|
: t('vehicleProps:value.na');
|
|
128
138
|
|
|
139
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
140
|
+
return <>{wltpConsumptionValue} - {wltpCo2Value}</>;
|
|
141
|
+
}
|
|
142
|
+
|
|
129
143
|
return <>{consumptionValue} <br /> {co2Value}</>;
|
|
130
144
|
}
|
|
131
145
|
},
|
|
@@ -138,6 +152,16 @@ const getDecoratedLightProps = (
|
|
|
138
152
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
139
153
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
140
154
|
const co2 = car.environmentEmissions.co2;
|
|
155
|
+
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined;
|
|
156
|
+
const wltpCo2 = car.consumption.wltpCo2;
|
|
157
|
+
|
|
158
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionPowerCombined)
|
|
159
|
+
? t('vehicleProps:value.consumptionPower', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
160
|
+
: null;
|
|
161
|
+
|
|
162
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
163
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
164
|
+
: null;
|
|
141
165
|
|
|
142
166
|
const consumptionValue = Number.isFinite(consumptionPowerCombined)
|
|
143
167
|
? t('vehicleProps:value.consumptionPower', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
@@ -147,6 +171,10 @@ const getDecoratedLightProps = (
|
|
|
147
171
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
148
172
|
: t('vehicleProps:value.na');
|
|
149
173
|
|
|
174
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
175
|
+
return <>{wltpConsumptionValue} - {wltpCo2Value}</>;
|
|
176
|
+
}
|
|
177
|
+
|
|
150
178
|
return <>{consumptionValue} <br /> {co2Value} </>;
|
|
151
179
|
}
|
|
152
180
|
},
|
|
@@ -157,17 +185,41 @@ const getDecoratedLightProps = (
|
|
|
157
185
|
get value() {
|
|
158
186
|
const consumptionCombined = +car.consumption.consumptionCombined;
|
|
159
187
|
const consumptionPowerCombined = +car.consumption.consumptionPowerCombined;
|
|
188
|
+
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined;
|
|
189
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
160
190
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
161
191
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
162
192
|
|
|
163
193
|
const consumptionPowerCombinedContent = t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit });
|
|
164
194
|
const consumptionCombinedContent = t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit });
|
|
165
195
|
|
|
196
|
+
const wltpConsumptionPowerCombinedContent = wltpConsumptionPowerCombined
|
|
197
|
+
? t('vehicleProps:value.consumptionPowerCombined', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
198
|
+
: null;
|
|
199
|
+
const wltpConsumptionCombinedContent = wltpConsumptionCombined ?
|
|
200
|
+
t('vehicleProps:value.consumptionCombined', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
201
|
+
: null;
|
|
202
|
+
|
|
166
203
|
const co2 = car.environmentEmissions.co2;
|
|
204
|
+
const wltpCo2 = car.consumption.wltpCo2;
|
|
205
|
+
|
|
167
206
|
const co2Value = Number.isFinite(co2)
|
|
168
207
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
169
208
|
: t('vehicleProps:value.na');
|
|
170
209
|
|
|
210
|
+
const wltpCo2Value = Number.isFinite(co2)
|
|
211
|
+
? t('vehicleProps:value.wltpCo2WtdCombined', { co2: wltpCo2.toLocaleString(language) })
|
|
212
|
+
: null;
|
|
213
|
+
|
|
214
|
+
const hybridPlugin = car.engineData.hybridPlugin;
|
|
215
|
+
|
|
216
|
+
if (wltpConsumptionCombinedContent && wltpCo2Value) {
|
|
217
|
+
return <React.Fragment>
|
|
218
|
+
{wltpConsumptionPowerCombinedContent && hybridPlugin ? `${wltpConsumptionPowerCombinedContent} - ` : ''}
|
|
219
|
+
{wltpConsumptionCombinedContent}, {wltpCo2Value}
|
|
220
|
+
</React.Fragment>
|
|
221
|
+
}
|
|
222
|
+
|
|
171
223
|
return Number.isFinite(consumptionCombined) || Number.isFinite(consumptionPowerCombined)
|
|
172
224
|
? <React.Fragment>
|
|
173
225
|
{consumptionPowerCombined ? consumptionPowerCombinedContent : t('vehicleProps:value.na')} <br />{consumptionCombinedContent} <br /> {co2Value}
|
|
@@ -185,6 +237,8 @@ const getDecoratedLightProps = (
|
|
|
185
237
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
186
238
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
187
239
|
const co2 = car.environmentEmissions.co2;
|
|
240
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
241
|
+
const wltpCo2 = car.consumption.wltpCo2;
|
|
188
242
|
|
|
189
243
|
const consumptionValue = Number.isFinite(consumptionHydrogenCombined)
|
|
190
244
|
? t('vehicleProps:value.consumptionGas', { consumption: consumptionHydrogenCombined.toLocaleString(language), unit: translatedUnit })
|
|
@@ -194,6 +248,17 @@ const getDecoratedLightProps = (
|
|
|
194
248
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
195
249
|
: t('vehicleProps:value.na');
|
|
196
250
|
|
|
251
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionCombined)
|
|
252
|
+
? t('vehicleProps:value.consumptionGas', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
253
|
+
: null;
|
|
254
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
255
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
256
|
+
: null;
|
|
257
|
+
|
|
258
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
259
|
+
return <>{wltpConsumptionValue} - {wltpCo2Value}</>;
|
|
260
|
+
}
|
|
261
|
+
|
|
197
262
|
return <>{consumptionValue} <br /> {co2Value}</>;
|
|
198
263
|
}
|
|
199
264
|
},
|
|
@@ -206,6 +271,8 @@ const getDecoratedLightProps = (
|
|
|
206
271
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
207
272
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
208
273
|
const co2 = car.environmentEmissions.co2;
|
|
274
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
275
|
+
const wltpCo2 = car.consumption.wltpCo2;
|
|
209
276
|
|
|
210
277
|
const consumptionValue = Number.isFinite(consumptionGasCombined)
|
|
211
278
|
? t('vehicleProps:value.consumptionGas', { consumption: consumptionGasCombined.toLocaleString(language), unit: translatedUnit })
|
|
@@ -215,6 +282,18 @@ const getDecoratedLightProps = (
|
|
|
215
282
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
216
283
|
: t('vehicleProps:value.na');
|
|
217
284
|
|
|
285
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionCombined)
|
|
286
|
+
? t('vehicleProps:value.consumptionGas', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
287
|
+
: null;
|
|
288
|
+
|
|
289
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
290
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
291
|
+
: null;
|
|
292
|
+
|
|
293
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
294
|
+
return <>{wltpConsumptionValue} - {wltpCo2Value}</>;
|
|
295
|
+
}
|
|
296
|
+
|
|
218
297
|
return <>{consumptionValue} <br /> {co2Value}</>;
|
|
219
298
|
}
|
|
220
299
|
},
|
|
@@ -677,9 +677,19 @@ const getDecoratedProps = (
|
|
|
677
677
|
const consumptionCombined = car.consumption.consumptionCombined;
|
|
678
678
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
679
679
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
680
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
681
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
680
682
|
|
|
681
683
|
const co2 = car.environmentEmissions.co2;
|
|
682
684
|
|
|
685
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionCombined)
|
|
686
|
+
? t('vehicleProps:value.consumptionCombined', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
687
|
+
: null;
|
|
688
|
+
|
|
689
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
690
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
691
|
+
: null;
|
|
692
|
+
|
|
683
693
|
const consumptionValue = Number.isFinite(consumptionCombined)
|
|
684
694
|
? t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
685
695
|
: t('vehicleProps:value.na');
|
|
@@ -688,6 +698,10 @@ const getDecoratedProps = (
|
|
|
688
698
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
689
699
|
: t('vehicleProps:value.na');
|
|
690
700
|
|
|
701
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
702
|
+
return <>{wrapValue(wltpConsumptionValue)} - {wrapValue(wltpCo2Value)}</>;
|
|
703
|
+
}
|
|
704
|
+
|
|
691
705
|
return <>{wrapValue(consumptionValue)} <br /> {wrapValue(co2Value)}</>;
|
|
692
706
|
}
|
|
693
707
|
},
|
|
@@ -699,6 +713,16 @@ const getDecoratedProps = (
|
|
|
699
713
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
700
714
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
701
715
|
const co2 = car.environmentEmissions.co2;
|
|
716
|
+
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined;
|
|
717
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
718
|
+
|
|
719
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionPowerCombined)
|
|
720
|
+
? t('vehicleProps:value.consumptionPower', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
721
|
+
: null;
|
|
722
|
+
|
|
723
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
724
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
725
|
+
: null;
|
|
702
726
|
|
|
703
727
|
const consumptionValue = Number.isFinite(consumptionPowerCombined)
|
|
704
728
|
? t('vehicleProps:value.consumptionPower', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
@@ -708,6 +732,10 @@ const getDecoratedProps = (
|
|
|
708
732
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
709
733
|
: t('vehicleProps:value.na');
|
|
710
734
|
|
|
735
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
736
|
+
return <>{wrapValue(wltpConsumptionValue)} - {wrapValue(wltpCo2Value)}</>;
|
|
737
|
+
}
|
|
738
|
+
|
|
711
739
|
return <>{wrapValue(consumptionValue)} <br /> {wrapValue(co2Value)}</>;
|
|
712
740
|
}
|
|
713
741
|
},
|
|
@@ -716,18 +744,32 @@ const getDecoratedProps = (
|
|
|
716
744
|
title: t('vehicleProps:title.consumptionHydrogenCombined'),
|
|
717
745
|
get value() {
|
|
718
746
|
const consumptionHydrogenCombined = car.consumption.consumptionCombined;
|
|
747
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
719
748
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
720
749
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
721
750
|
const co2 = car.environmentEmissions.co2;
|
|
751
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
722
752
|
|
|
723
753
|
const consumptionValue = Number.isFinite(consumptionHydrogenCombined)
|
|
724
754
|
? t('vehicleProps:value.consumptionGas', { consumption: consumptionHydrogenCombined.toLocaleString(language), unit: translatedUnit })
|
|
725
755
|
: t('vehicleProps:value.na');
|
|
726
756
|
|
|
757
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionCombined)
|
|
758
|
+
? t('vehicleProps:value.consumptionGas', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
759
|
+
: null;
|
|
760
|
+
|
|
727
761
|
const co2Value = Number.isFinite(co2)
|
|
728
762
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
729
763
|
: t('vehicleProps:value.na');
|
|
730
764
|
|
|
765
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
766
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
767
|
+
: null;
|
|
768
|
+
|
|
769
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
770
|
+
return <>{wrapValue(wltpConsumptionValue)} - {wrapValue(wltpCo2Value)}</>;
|
|
771
|
+
}
|
|
772
|
+
|
|
731
773
|
return <>{wrapValue(consumptionValue)} <br /> {wrapValue(co2Value)}</>;
|
|
732
774
|
}
|
|
733
775
|
},
|
|
@@ -736,10 +778,12 @@ const getDecoratedProps = (
|
|
|
736
778
|
title: t('vehicleProps:title.consumptionGasCombined'),
|
|
737
779
|
get value() {
|
|
738
780
|
const consumptionGasCombined = car.consumption.consumptionCombined;
|
|
781
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
739
782
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
740
783
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
741
784
|
|
|
742
785
|
const co2 = car.environmentEmissions.co2;
|
|
786
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
743
787
|
|
|
744
788
|
const consumptionValue = Number.isFinite(consumptionGasCombined)
|
|
745
789
|
? t('vehicleProps:value.consumptionGas', { consumption: consumptionGasCombined.toLocaleString(language), unit: translatedUnit })
|
|
@@ -749,6 +793,18 @@ const getDecoratedProps = (
|
|
|
749
793
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
750
794
|
: t('vehicleProps:value.na');
|
|
751
795
|
|
|
796
|
+
const wltpConsumptionValue = Number.isFinite(wltpConsumptionCombined)
|
|
797
|
+
? t('vehicleProps:value.consumptionGas', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
798
|
+
: null;
|
|
799
|
+
|
|
800
|
+
const wltpCo2Value = Number.isFinite(wltpCo2)
|
|
801
|
+
? t('vehicleProps:value.wltpCo2Combined', { co2: wltpCo2.toLocaleString(language) })
|
|
802
|
+
: null;
|
|
803
|
+
|
|
804
|
+
if (wltpConsumptionValue && wltpCo2Value) {
|
|
805
|
+
return <>{wrapValue(wltpConsumptionValue)} - {wrapValue(wltpCo2Value)}</>;
|
|
806
|
+
}
|
|
807
|
+
|
|
752
808
|
return <>{wrapValue(consumptionValue)} <br /> {wrapValue(co2Value)}</>;
|
|
753
809
|
}
|
|
754
810
|
},
|
|
@@ -758,17 +814,40 @@ const getDecoratedProps = (
|
|
|
758
814
|
get value() {
|
|
759
815
|
const consumptionCombined = +car.consumption.consumptionCombined;
|
|
760
816
|
const consumptionPowerCombined = +car.consumption.consumptionPowerCombined;
|
|
817
|
+
const wltpConsumptionPowerCombined = car.consumption.wltpPowerCombined;
|
|
818
|
+
const wltpConsumptionCombined = car.consumption.wltpCombined;
|
|
819
|
+
|
|
761
820
|
const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
|
|
762
821
|
const translatedUnit = t(`cbd:${consumptionUnit}`);
|
|
763
822
|
|
|
764
823
|
const consumptionPowerCombinedContent = t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit });
|
|
824
|
+
const wltpConsumptionPowerCombinedContent = wltpConsumptionPowerCombined
|
|
825
|
+
? t('vehicleProps:value.consumptionPowerCombined', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
826
|
+
: null;
|
|
765
827
|
const consumptionCombinedContent = t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit });
|
|
828
|
+
const wltpConsumptionCombinedContent = wltpConsumptionCombined ?
|
|
829
|
+
t('vehicleProps:value.consumptionCombined', { consumption: wltpConsumptionCombined.toLocaleString(language), unit: translatedUnit })
|
|
830
|
+
: null;
|
|
766
831
|
|
|
767
832
|
const co2 = car.environmentEmissions.co2;
|
|
833
|
+
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
768
834
|
const co2Value = Number.isFinite(co2)
|
|
769
835
|
? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
|
|
770
836
|
: t('vehicleProps:value.na');
|
|
837
|
+
const wltpCo2Value = Number.isFinite(co2)
|
|
838
|
+
? t('vehicleProps:value.wltpCo2WtdCombined', { co2: wltpCo2.toLocaleString(language) })
|
|
839
|
+
: null;
|
|
771
840
|
const hybridPlugin = car.engineData.hybridPlugin;
|
|
841
|
+
|
|
842
|
+
if (wltpConsumptionCombinedContent && wltpCo2Value) {
|
|
843
|
+
return <React.Fragment>
|
|
844
|
+
{wltpConsumptionPowerCombinedContent && hybridPlugin ? wrapValue(wltpConsumptionPowerCombinedContent) : ''}
|
|
845
|
+
{wltpConsumptionPowerCombinedContent && hybridPlugin ? <br /> : ''}
|
|
846
|
+
{wrapValue(wltpConsumptionCombinedContent)} <br />
|
|
847
|
+
{wrapValue(wltpCo2Value)}
|
|
848
|
+
</React.Fragment>
|
|
849
|
+
}
|
|
850
|
+
|
|
772
851
|
return Number.isFinite(consumptionCombined) && Number.isFinite(consumptionPowerCombined)
|
|
773
852
|
? <React.Fragment>
|
|
774
853
|
{consumptionPowerCombined && hybridPlugin ? wrapValue(consumptionPowerCombinedContent) : ''}
|
|
@@ -1263,6 +1342,78 @@ const getDecoratedProps = (
|
|
|
1263
1342
|
? t('vehicleProps:value.consumptionPower', { consumption: wltpPowerVeryFast.toLocaleString(language), unit: translatedUnit })
|
|
1264
1343
|
: t('vehicleProps:value.na');
|
|
1265
1344
|
}
|
|
1345
|
+
},
|
|
1346
|
+
fuelPrice: {
|
|
1347
|
+
title: '',
|
|
1348
|
+
get value() {
|
|
1349
|
+
return ''
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
powerPrice: {
|
|
1353
|
+
title: '',
|
|
1354
|
+
get value() {
|
|
1355
|
+
return ''
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
consumptionPriceYear: {
|
|
1359
|
+
title: '',
|
|
1360
|
+
get value() {
|
|
1361
|
+
return ''
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
co2CostLowBasePrice: {
|
|
1365
|
+
title: '',
|
|
1366
|
+
get value() {
|
|
1367
|
+
return ''
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
co2CostMiddleBasePrice: {
|
|
1371
|
+
title: '',
|
|
1372
|
+
get value() {
|
|
1373
|
+
return ''
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
co2CostHighBasePrice: {
|
|
1377
|
+
title: '',
|
|
1378
|
+
get value() {
|
|
1379
|
+
return ''
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
co2CostLowAccumulatedPrice: {
|
|
1383
|
+
title: '',
|
|
1384
|
+
get value() {
|
|
1385
|
+
return ''
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
co2CostMiddleAccumulatedPrice: {
|
|
1389
|
+
title: '',
|
|
1390
|
+
get value() {
|
|
1391
|
+
return ''
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
co2CostHighAccumulatedPrice: {
|
|
1395
|
+
title: '',
|
|
1396
|
+
get value() {
|
|
1397
|
+
return ''
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
timeFrameFrom: {
|
|
1401
|
+
title: '',
|
|
1402
|
+
get value() {
|
|
1403
|
+
return ''
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
timeFrameT0: {
|
|
1407
|
+
title: '',
|
|
1408
|
+
get value() {
|
|
1409
|
+
return ''
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
consumptionCosts: {
|
|
1413
|
+
title: '',
|
|
1414
|
+
get value() {
|
|
1415
|
+
return ''
|
|
1416
|
+
}
|
|
1266
1417
|
}
|
|
1267
1418
|
};
|
|
1268
1419
|
return props;
|
|
@@ -47,6 +47,9 @@ const environmentPluginHybridWLTP = ['wltpWeightedCombined', 'wltpTotalRange', '
|
|
|
47
47
|
'wltpCombined', 'wltpSlow', 'wltpMedium', 'wltpFast', 'wltpVeryFast', 'wltpEnergyEfficiencyClass', 'wltpDischargedEnergyEfficiencyClass'];
|
|
48
48
|
const environmentElectroBenzinDieselEthanolHybridWLTP = ['wltpCombined', 'wltpCo2', 'wltpSlow', 'wltpMedium', 'wltpFast', 'wltpVeryFast', 'wltpEnergyEfficiencyClass'];
|
|
49
49
|
const environmentHydrogenWLTP = ['wltpCombined', 'wltpCo2', 'wltpSlow', 'wltpMedium', 'wltpFast', 'wltpVeryFast', 'wltpEnergyEfficiencyClass'];
|
|
50
|
+
const costModel = ['fuelPrice', 'powerPrice', 'consumptionPriceYear', 'co2CostLowBasePrice', 'co2CostMiddleBasePrice',
|
|
51
|
+
'co2CostHighBasePrice', 'co2CostLowAccumulatedPrice', 'co2CostMiddleAccumulatedPrice', 'co2CostHighAccumulatedPrice',
|
|
52
|
+
'timeFrameFrom', 'timeFrameT0', 'consumptionCosts',]
|
|
50
53
|
|
|
51
54
|
export const engineDetails: IEngineDetails = [
|
|
52
55
|
{
|
|
@@ -354,6 +357,10 @@ export const getWltpValues = (selector: any, hybridPlugin: any = false) => {
|
|
|
354
357
|
}, []);
|
|
355
358
|
};
|
|
356
359
|
|
|
360
|
+
export const getCostModelValues = () => {
|
|
361
|
+
return costModel;
|
|
362
|
+
}
|
|
363
|
+
|
|
357
364
|
export const getOverviewDetails = (selector: any) => {
|
|
358
365
|
if (Object.keys(filtered(selector)).length === 0) {
|
|
359
366
|
return [...mainPropertiesList, ...consumptionCombinedAlternateView];
|
package/source/locales/data.ts
CHANGED
|
@@ -80,6 +80,8 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
80
80
|
no: 'Nein',
|
|
81
81
|
yes: 'Ja',
|
|
82
82
|
batteryCapacity: `${vehicleOption.batteryCapacity} kWh`,
|
|
83
|
+
wltpCo2Combined: `${vehicleOption}g CO2/km (WLTP, comb)*`,
|
|
84
|
+
wltpCo2WtdCombined: `${vehicleOption}g CO2/km (WLTP, gew., comb)*`
|
|
83
85
|
|
|
84
86
|
},
|
|
85
87
|
title: {
|