@bytebrand/fe-ui-core 4.2.169 → 4.2.170

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.170",
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,8 @@ 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';
17
+ import { toJS } from 'mobx';
16
18
 
17
19
  type PathParamsType = {
18
20
  location?: any;
@@ -387,10 +389,22 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
387
389
  });
388
390
  };
389
391
 
392
+ onVehicleIdChange = (value: string) => {
393
+ const { filters, changeFilterValue, search } = this.props;
394
+ const upperCaseValue = value.toLocaleUpperCase();
395
+ if (value.length === 6 || !value) {
396
+ this.onFilterChange('VEHICLE_ID', upperCaseValue);
397
+ changeFilterValue('VEHICLE_ID', upperCaseValue);
398
+ search(toJS(filters), 1, true);
399
+ }
400
+ };
401
+
390
402
  render() {
391
- const { t, onAlternativeRedirect, isAlternative, isErrorAlternativeField, Link, locationSearch, successTransition } = this.props;
403
+ const { t, onAlternativeRedirect, isAlternative, isErrorAlternativeField, Link, locationSearch, successTransition, filters } = this.props;
392
404
  const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
393
405
 
406
+ const { VEHICLE_ID } = toJS(filters);
407
+
394
408
  const alternativeIDProps = {
395
409
  t,
396
410
  successTransition,
@@ -415,6 +429,15 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
415
429
  <div className={styles.title}>
416
430
  <h3 className={styles.titleText}>{this.props.t('SearchPage:filterBy')}</h3>
417
431
  </div>
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
+ label='z.B: FCEE67'
439
+ />
440
+ </div>
418
441
  {this.renderFilters()}
419
442
  <Link className={styles.linkToDetailed} to={`/${isAlternative ? 'alternative' : 'search'}/detailed${locationSearch}`}>{t('SearchPage:detailedSearch')}</Link>
420
443
  </div>