@bytebrand/fe-ui-core 4.2.181 → 4.2.183

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.181",
3
+ "version": "4.2.183",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -428,15 +428,17 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
428
428
  <div className={styles.title}>
429
429
  <h3 className={styles.titleText}>{this.props.t('SearchPage:filterBy')}</h3>
430
430
  </div>
431
- <div className={styles.vehicleId}>
432
- <div className={styles.vehicleIdLabel}>auto.de-ID</div>
433
- <MaterialField
434
- value={VEHICLE_ID.value}
435
- onChange={this.onVehicleIdChange}
436
- size='custom'
437
- placeholder={t('SearchPage:vehicleIdexample')}
438
- />
439
- </div>
431
+ {!isAlternative ? (
432
+ <div className={styles.vehicleId}>
433
+ <div className={styles.vehicleIdLabel}>auto.de-ID</div>
434
+ <MaterialField
435
+ value={VEHICLE_ID.value}
436
+ onChange={this.onVehicleIdChange}
437
+ size='custom'
438
+ placeholder={t('SearchPage:vehicleIdexample')}
439
+ />
440
+ </div>
441
+ ) : ''}
440
442
  {this.renderFilters()}
441
443
  <Link className={styles.linkToDetailed} to={`/${isAlternative ? 'alternative' : 'search'}/detailed${locationSearch}`}>{t('SearchPage:detailedSearch')}</Link>
442
444
  </div>
@@ -463,7 +463,9 @@ export function getChipFilterValue(
463
463
  case 'SEATS':
464
464
  case 'CUBIC_CAPACITY':
465
465
  title = t(`SearchPage:filters.${chipFilterKey.toLocaleLowerCase()}`);
466
- const fromTo = `${chipFilterValue.from} - ${chipFilterValue.to}`;
466
+ const from = !!chipFilterValue.from ? `${t('SearchPage:filters.from')} ${chipFilterValue.from}` : '';
467
+ const to = !!chipFilterValue.to ? `${t('SearchPage:filters.to')} ${chipFilterValue.to}` : '';
468
+ const fromTo = (from && to) ? `${chipFilterValue.from} - ${chipFilterValue.to}` : `${from || to}`;
467
469
  filterValue = `${title} ${fromTo}`;
468
470
  break;
469
471