@bytebrand/fe-ui-core 4.2.168 → 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 +1 -1
- package/source/components/UserDashboardPage/sections/OrderStatusSection/AdditionalOrderInfo.styl +4 -0
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.tsx +5 -1
- package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.tsx +3 -1
- package/source/components/VehicleDetailedSlider/partials/PriceData.tsx +1 -2
- package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.styl +11 -1
- package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.tsx +24 -1
package/package.json
CHANGED
package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.tsx
CHANGED
|
@@ -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
|
{
|
|
@@ -151,8 +151,10 @@ class VehicleDetailedSlider extends Component<IProps, IState> {
|
|
|
151
151
|
const prevSlide = (activeSlide - 1 % imagesCount + imagesCount) % imagesCount;
|
|
152
152
|
const nextSlide = (activeSlide + 1 % imagesCount + imagesCount) % imagesCount;
|
|
153
153
|
|
|
154
|
-
return photos.map((
|
|
154
|
+
return photos.map((item: IImage, index: number) => {
|
|
155
155
|
const showImage = index === currentSlide || index === prevSlide || index === nextSlide || this.imagesCache[index] !== undefined;
|
|
156
|
+
const imageUrlSmall = _get(item, 'imageUrlSmall', null);
|
|
157
|
+
const imageUrlLarge = _get(item, 'imageUrlLarge', null);
|
|
156
158
|
|
|
157
159
|
this.imagesCache[currentSlide] = imageUrlLarge;
|
|
158
160
|
this.imagesCache[prevSlide] = imageUrlLarge;
|
|
@@ -19,7 +19,6 @@ const MIN_PRICE_DIFFERENCE = 500;
|
|
|
19
19
|
const EUR = `\u20AC`;
|
|
20
20
|
|
|
21
21
|
const PriceData: React.FunctionComponent<IProps> = ({ t, showNewLabel, historyPriceDifference, historyPriceDifferencePerCent, financingConfig, activeTab }) => {
|
|
22
|
-
console.log('financingConfig', financingConfig);
|
|
23
22
|
const percentageOfFirstInstallment = activeTab === 0 ? financingConfig!.financing.percentageOfFirstInstallment : financingConfig!.leasing.percentageOfFirstInstallment;
|
|
24
23
|
return (
|
|
25
24
|
<div className={styles.topWrapper}>
|
|
@@ -30,7 +29,7 @@ const PriceData: React.FunctionComponent<IProps> = ({ t, showNewLabel, historyPr
|
|
|
30
29
|
{` ${EUR} ${t('slider.save')}`}
|
|
31
30
|
</Badge>
|
|
32
31
|
)}
|
|
33
|
-
{(!isNil(percentageOfFirstInstallment) && activeTab !== 2) &&
|
|
32
|
+
{(!isNil(percentageOfFirstInstallment) && activeTab !== 2) &&
|
|
34
33
|
<Badge type='lightBlue' className={styles.percentageOfFirstInstallment}>{`${percentageOfFirstInstallment}${percentageOfFirstInstallment > 0 ? '%' : EUR} ${t('slider.firstInstallment')}`}</Badge>}
|
|
35
34
|
{historyPriceDifferencePerCent >= MIN_PERCENT && (
|
|
36
35
|
<Badge type='red' className={styles.priceDifferencePerCent}>
|
|
@@ -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>
|