@bytebrand/fe-ui-core 4.1.153 → 4.1.155
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
|
@@ -275,7 +275,7 @@ const getDecoratedProps = (
|
|
|
275
275
|
fuelCapacity: {
|
|
276
276
|
title: t('vehicleProps:title.fuelCapacity'),
|
|
277
277
|
get value() {
|
|
278
|
-
const fuelCapacity = car.sizeVolumeWeight.fuelCapacity;
|
|
278
|
+
const fuelCapacity = car.sizeVolumeWeight && car.sizeVolumeWeight.fuelCapacity;
|
|
279
279
|
return Number.isFinite(fuelCapacity)
|
|
280
280
|
? t('vehicleProps:value.fuelCapacity', { capacity: fuelCapacity.toLocaleString(language) })
|
|
281
281
|
: t('vehicleProps:value.na');
|
|
@@ -285,7 +285,7 @@ const getDecoratedProps = (
|
|
|
285
285
|
batteryCapacity: {
|
|
286
286
|
title: t('vehicleProps:title.batteryCapacityTitle'),
|
|
287
287
|
get value() {
|
|
288
|
-
const
|
|
288
|
+
const batteryCapacity = car.battery && car.battery.batteryCapacity;
|
|
289
289
|
return batteryCapacity && Number.isFinite(batteryCapacity)
|
|
290
290
|
? t('vehicleProps:value.batteryCapacity', { batteryCapacity: batteryCapacity.toLocaleString(language) })
|
|
291
291
|
: t('vehicleProps:value.na');
|
|
@@ -356,7 +356,7 @@ const getDecoratedProps = (
|
|
|
356
356
|
length: {
|
|
357
357
|
title: t('vehicleProps:title.length'),
|
|
358
358
|
get value() {
|
|
359
|
-
const length = car.sizeVolumeWeight.length;
|
|
359
|
+
const length = car.sizeVolumeWeight && car.sizeVolumeWeight.length;
|
|
360
360
|
return Number.isFinite(length)
|
|
361
361
|
? t('vehicleProps:value.length', { size: length.toLocaleString(language) })
|
|
362
362
|
: t('vehicleProps:value.na');
|
|
@@ -366,7 +366,7 @@ const getDecoratedProps = (
|
|
|
366
366
|
width: {
|
|
367
367
|
title: t('vehicleProps:title.width'),
|
|
368
368
|
get value() {
|
|
369
|
-
const width = car.sizeVolumeWeight.width;
|
|
369
|
+
const width = car.sizeVolumeWeight && car.sizeVolumeWeight.width;
|
|
370
370
|
return Number.isFinite(width)
|
|
371
371
|
? t('vehicleProps:value.width', { size: width.toLocaleString(language) })
|
|
372
372
|
: t('vehicleProps:value.na');
|
|
@@ -376,7 +376,7 @@ const getDecoratedProps = (
|
|
|
376
376
|
height: {
|
|
377
377
|
title: t('vehicleProps:title.height'),
|
|
378
378
|
get value() {
|
|
379
|
-
const height = car.sizeVolumeWeight.height;
|
|
379
|
+
const height = car.sizeVolumeWeight && car.sizeVolumeWeight.height;
|
|
380
380
|
return Number.isFinite(height)
|
|
381
381
|
? t('vehicleProps:value.height', { size: height.toLocaleString(language) })
|
|
382
382
|
: t('vehicleProps:value.na');
|
|
@@ -396,7 +396,7 @@ const getDecoratedProps = (
|
|
|
396
396
|
capacityLoad: {
|
|
397
397
|
title: t('vehicleProps:title.loadingVolume'),
|
|
398
398
|
get value() {
|
|
399
|
-
const completeCapacity = car.sizeVolumeWeight.completeCapacity;
|
|
399
|
+
const completeCapacity = car.sizeVolumeWeight && car.sizeVolumeWeight.completeCapacity;
|
|
400
400
|
return Number.isFinite(completeCapacity)
|
|
401
401
|
? t('vehicleProps:value.capacityLoad', { capacity: completeCapacity.toLocaleString(language) })
|
|
402
402
|
: t('vehicleProps:value.na');
|
|
@@ -406,7 +406,7 @@ const getDecoratedProps = (
|
|
|
406
406
|
bootCapacity: {
|
|
407
407
|
title: t('vehicleProps:title.bootCapacity'),
|
|
408
408
|
get value() {
|
|
409
|
-
const cargoCapacity = car.sizeVolumeWeight.cargoCapacity;
|
|
409
|
+
const cargoCapacity = car.sizeVolumeWeight && car.sizeVolumeWeight.cargoCapacity;
|
|
410
410
|
return Number.isFinite(cargoCapacity)
|
|
411
411
|
? t('vehicleProps:value.bootCapacity', { capacity: cargoCapacity.toLocaleString(language) })
|
|
412
412
|
: t('vehicleProps:value.na');
|
|
@@ -426,7 +426,7 @@ const getDecoratedProps = (
|
|
|
426
426
|
tare: {
|
|
427
427
|
title: t('vehicleProps:title.tare'),
|
|
428
428
|
get value() {
|
|
429
|
-
const emptyWeight = car.sizeVolumeWeight.emptyWeight;
|
|
429
|
+
const emptyWeight = car.sizeVolumeWeight && car.sizeVolumeWeight.emptyWeight;
|
|
430
430
|
return Number.isFinite(emptyWeight)
|
|
431
431
|
? t('vehicleProps:value.tareWeight', { weight: (emptyWeight).toLocaleString(language) })
|
|
432
432
|
: t('vehicleProps:value.na');
|
|
@@ -436,7 +436,7 @@ const getDecoratedProps = (
|
|
|
436
436
|
maximumWeight: {
|
|
437
437
|
title: t('vehicleProps:title.maximumWeight'),
|
|
438
438
|
get value() {
|
|
439
|
-
const cargoCapacity = car.sizeVolumeWeight.cargoCapacity;
|
|
439
|
+
const cargoCapacity = car.sizeVolumeWeight && car.sizeVolumeWeight.cargoCapacity;
|
|
440
440
|
return Number.isFinite(cargoCapacity)
|
|
441
441
|
? t('vehicleProps:value.maximumWeightCapacity', { capacity: cargoCapacity.toLocaleString(language) })
|
|
442
442
|
: t('vehicleProps:value.na');
|
|
@@ -446,7 +446,7 @@ const getDecoratedProps = (
|
|
|
446
446
|
trailerWeightBraked: {
|
|
447
447
|
title: t('vehicleProps:title.trailerLoadBraked'),
|
|
448
448
|
get value() {
|
|
449
|
-
const trailerWeightBraked = car.sizeVolumeWeight.trailerWeightBraked;
|
|
449
|
+
const trailerWeightBraked = car.sizeVolumeWeight && car.sizeVolumeWeight.trailerWeightBraked;
|
|
450
450
|
return Number.isFinite(trailerWeightBraked)
|
|
451
451
|
? t('vehicleProps:value.weight', { weight: trailerWeightBraked.toLocaleString(language) })
|
|
452
452
|
: t('vehicleProps:value.na');
|
|
@@ -456,7 +456,7 @@ const getDecoratedProps = (
|
|
|
456
456
|
trailerWeightUnbraked: {
|
|
457
457
|
title: t('vehicleProps:title.trailerLoadUnbraked'),
|
|
458
458
|
get value() {
|
|
459
|
-
const trailerWeightUnbraked = car.sizeVolumeWeight.trailerWeightUnbraked;
|
|
459
|
+
const trailerWeightUnbraked = car.sizeVolumeWeight && car.sizeVolumeWeight.trailerWeightUnbraked;
|
|
460
460
|
return Number.isFinite(trailerWeightUnbraked)
|
|
461
461
|
? t('vehicleProps:value.weight', { weight: trailerWeightUnbraked.toLocaleString(language) })
|
|
462
462
|
: t('vehicleProps:value.na');
|