@bytebrand/fe-ui-core 4.2.169 → 4.2.171

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.169",
3
+ "version": "4.2.171",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -28,6 +28,10 @@
28
28
  top: 0;
29
29
  left: -16px;
30
30
 
31
+ .overallRate
32
+ border-top: 1px solid rgba(76,78,100,0.12)
33
+ padding-top: 15px
34
+
31
35
  .labelText
32
36
  color: $black50
33
37
  font-size: 14px
@@ -136,7 +136,9 @@ const OrderStatusSection = ({
136
136
  registrationCost,
137
137
  transportationCost,
138
138
  customerAddress,
139
- deliveryAddress
139
+ deliveryAddress,
140
+ firstRate,
141
+ paymentProtectionInsuranceCost
140
142
  } = orderedCar;
141
143
 
142
144
  const additionalOrderData = {
@@ -150,6 +152,8 @@ const OrderStatusSection = ({
150
152
  ...registrationCost ? [getDataPriceItem(registrationCost, t('MyOrderPage:vehicleRegistration'))] : [],
151
153
  ...licensePlateCost ? [getDataPriceItem(licensePlateCost, t('MyOrderPage:licensePlates'))] : [],
152
154
  ...transportationCost ? [getDataPriceItem(transportationCost, t('MyOrderPage:delivery'))] : [],
155
+ ...paymentProtectionInsuranceCost ? [getDataPriceItem(paymentProtectionInsuranceCost, t('MyOrderPage:paymentProtectionInsuranceCost'))]: [],
156
+ ...firstRate ? [getDataPriceItem(firstRate, t('MyOrderPage:firstRate'))] : [],
153
157
  ...buyingType !== 'buy' ? [
154
158
  ...monthlyInstallment ? [
155
159
  {
@@ -52,4 +52,14 @@
52
52
  font-weight: 700
53
53
  font-size: 14px
54
54
  border-bottom-left-radius: 10px;
55
- border-bottom-right-radius: 10px;
55
+ border-bottom-right-radius: 10px;
56
+
57
+ .vehicleId
58
+ padding: 11px
59
+ background-color: #fff
60
+
61
+ .vehicleIdLabel
62
+ font-size: 14px
63
+ font-weight: 700
64
+ line-height: 16px
65
+ margin-bottom: 12px
@@ -13,6 +13,7 @@ import { resolveMmsValue } from '../../../../framework/utils/FiltersUtils';
13
13
  import FilterBlock from '../../../SearchFilters/common/FilterBlock/FilterBlock';
14
14
  import styles from './FiltersContainer.styl';
15
15
  import AlternativeID from '../../../SearchFilters/filters/AlternativeID';
16
+ import MaterialField from '../../../_common/MaterialField/MaterialField';
16
17
 
17
18
  type PathParamsType = {
18
19
  location?: any;
@@ -387,10 +388,22 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
387
388
  });
388
389
  };
389
390
 
391
+ onVehicleIdChange = (value: string) => {
392
+ const { filters, changeFilterValue, search } = this.props;
393
+ const upperCaseValue = value.toLocaleUpperCase();
394
+ if (value.length === 6 || !value) {
395
+ this.onFilterChange('VEHICLE_ID', upperCaseValue);
396
+ changeFilterValue('VEHICLE_ID', upperCaseValue);
397
+ search(filters, 1, true);
398
+ }
399
+ };
400
+
390
401
  render() {
391
- const { t, onAlternativeRedirect, isAlternative, isErrorAlternativeField, Link, locationSearch, successTransition } = this.props;
402
+ const { t, onAlternativeRedirect, isAlternative, isErrorAlternativeField, Link, locationSearch, successTransition, filters } = this.props;
392
403
  const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
393
404
 
405
+ const { VEHICLE_ID } = filters;
406
+
394
407
  const alternativeIDProps = {
395
408
  t,
396
409
  successTransition,
@@ -415,6 +428,15 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
415
428
  <div className={styles.title}>
416
429
  <h3 className={styles.titleText}>{this.props.t('SearchPage:filterBy')}</h3>
417
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
+ label='z.B: FCEE67'
438
+ />
439
+ </div>
418
440
  {this.renderFilters()}
419
441
  <Link className={styles.linkToDetailed} to={`/${isAlternative ? 'alternative' : 'search'}/detailed${locationSearch}`}>{t('SearchPage:detailedSearch')}</Link>
420
442
  </div>