@bytebrand/fe-ui-core 4.1.195 → 4.1.197
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/AccordionWidget/AccordionWidget.styl +3 -1
- package/source/components/SearchFilters/filters/AlternativeID.tsx +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +7 -7
- package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +6 -6
- package/source/components/_common/IconSVG/SVG/common/InfoIcon.tsx +1 -1
- package/source/components/_common/TimePicker/TimePicker.tsx +2 -2
- package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.tsx +1 -1
- package/source/framework/vehiclesProps/decoratedProps.tsx +4 -4
- package/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
font-weight: bold
|
|
93
93
|
|
|
94
94
|
.tdContent
|
|
95
|
-
text-transform: capitalize
|
|
96
95
|
+media-tablet-landscape-down()
|
|
97
96
|
display: grid;
|
|
98
97
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -132,6 +131,9 @@
|
|
|
132
131
|
text-overflow: ellipsis;
|
|
133
132
|
overflow: hidden;
|
|
134
133
|
|
|
134
|
+
.checkedItem:first-letter
|
|
135
|
+
text-transform capitalize;
|
|
136
|
+
|
|
135
137
|
.subTitle
|
|
136
138
|
font-size 10px
|
|
137
139
|
font-weight normal
|
|
@@ -28,7 +28,7 @@ class AlternativeID extends React.Component<IAlternativeIDProps, IAlternativeIDS
|
|
|
28
28
|
value: ''
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
componentDidMount() { this.setState({ value: this.props.autoDeId }); }
|
|
31
|
+
componentDidMount() { this.setState({ value: this.props.autoDeId }); }
|
|
32
32
|
|
|
33
33
|
onFilterChange = (value: string) => {
|
|
34
34
|
this.setState({ value });
|
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx
CHANGED
|
@@ -93,11 +93,11 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
|
|
|
93
93
|
{React.createElement(linkTag, {
|
|
94
94
|
children: priceTitle,
|
|
95
95
|
...routeObj,
|
|
96
|
+
target,
|
|
97
|
+
rel,
|
|
96
98
|
onClick: this.routeToActiveTab,
|
|
97
99
|
className: priceItemCategoryClassName,
|
|
98
|
-
href: url
|
|
99
|
-
target,
|
|
100
|
-
rel
|
|
100
|
+
href: url
|
|
101
101
|
})}
|
|
102
102
|
{tooltipDescription && (
|
|
103
103
|
<Tooltip
|
|
@@ -137,7 +137,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
|
|
|
137
137
|
numbersAfterDot={0}
|
|
138
138
|
price={perMonthCurrent}
|
|
139
139
|
postfix={postfix}
|
|
140
|
-
className={classnames(styles.priceMtl, { [styles.priceMtlActive]: !!priceSub})}
|
|
140
|
+
className={classnames(styles.priceMtl, { [styles.priceMtlActive]: !!priceSub })}
|
|
141
141
|
isNew={isStrikeShown}
|
|
142
142
|
size='semimedium'
|
|
143
143
|
sub={priceSub}
|
|
@@ -173,11 +173,11 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
|
|
|
173
173
|
</>
|
|
174
174
|
),
|
|
175
175
|
...routeObj,
|
|
176
|
+
target,
|
|
177
|
+
rel,
|
|
176
178
|
onClick: this.routeToActiveTab,
|
|
177
179
|
className: styles.priceItemPrice,
|
|
178
|
-
href: url
|
|
179
|
-
target,
|
|
180
|
-
rel
|
|
180
|
+
href: url
|
|
181
181
|
})}
|
|
182
182
|
</div>
|
|
183
183
|
);
|
|
@@ -276,11 +276,11 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
276
276
|
{createElement(linkTag, {
|
|
277
277
|
children: <VehicleTitle {...favoriteProps} />,
|
|
278
278
|
...routeObj,
|
|
279
|
+
target,
|
|
280
|
+
rel,
|
|
279
281
|
className: `${styles.redirectClassLink} ${styles.gridAreaTitle}`,
|
|
280
282
|
onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
|
|
281
|
-
href: url
|
|
282
|
-
target,
|
|
283
|
-
rel
|
|
283
|
+
href: url
|
|
284
284
|
})}
|
|
285
285
|
|
|
286
286
|
{createElement(linkTag, {
|
|
@@ -329,11 +329,11 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
329
329
|
</>
|
|
330
330
|
),
|
|
331
331
|
...routeObj,
|
|
332
|
+
target,
|
|
333
|
+
rel,
|
|
332
334
|
className: `${styles.redirectClassLink} ${styles.gridAreaImage}`,
|
|
333
335
|
onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
|
|
334
|
-
href: url
|
|
335
|
-
target,
|
|
336
|
-
rel
|
|
336
|
+
href: url
|
|
337
337
|
})}
|
|
338
338
|
<VehicleInfo {...vehicleInfoProps} />
|
|
339
339
|
<VehiclePrice {...vehiclePriceProps} />
|
|
@@ -46,8 +46,8 @@ const TimePicker = ({
|
|
|
46
46
|
const nextWeekDays = [...Array(7).keys()].map((days, index) => (
|
|
47
47
|
{
|
|
48
48
|
value: index,
|
|
49
|
-
label: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { day: '
|
|
50
|
-
day: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { day: '
|
|
49
|
+
label: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { weekday: 'short', day: 'numeric', month: '2-digit' }).replace(',', ''),
|
|
50
|
+
day: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { weekday: 'short', day: 'numeric', month: '2-digit' }).replace(',', '')
|
|
51
51
|
}
|
|
52
52
|
));
|
|
53
53
|
const nextWeekDaysFull = [...Array(7).keys()].map(days => new Date(Date.now() + setNewDay + 86400000 * days));
|
|
@@ -387,8 +387,8 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
|
|
|
387
387
|
const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
|
|
388
388
|
const alternativeIDProps = {
|
|
389
389
|
t,
|
|
390
|
-
autoDeId: paramsFromQuery.autoDeId,
|
|
391
390
|
successTransition,
|
|
391
|
+
autoDeId: paramsFromQuery.autoDeId,
|
|
392
392
|
error: isErrorAlternativeField,
|
|
393
393
|
onChange: onAlternativeRedirect
|
|
394
394
|
};
|
|
@@ -307,9 +307,9 @@ const getDecoratedProps = (
|
|
|
307
307
|
chargingDurationMaxSpeed: {
|
|
308
308
|
title: t('vehicleProps:title.chargingDurationMaxSpeed'),
|
|
309
309
|
get value() {
|
|
310
|
-
const batteryChargingDurationMaxSelect = car.battery && car.battery.batteryChargingDurationMaxSelect
|
|
311
|
-
const batteryChargingDurationMaxHour = car.battery && car.battery.batteryChargingDurationMaxHour
|
|
312
|
-
const batteryCharchingDurationMaxSelectMinutesHours = car.battery && car.battery.batteryCharchingDurationMaxSelectMinutesHours
|
|
310
|
+
const batteryChargingDurationMaxSelect = car.battery && car.battery.batteryChargingDurationMaxSelect;
|
|
311
|
+
const batteryChargingDurationMaxHour = car.battery && car.battery.batteryChargingDurationMaxHour;
|
|
312
|
+
const batteryCharchingDurationMaxSelectMinutesHours = car.battery && car.battery.batteryCharchingDurationMaxSelectMinutesHours;
|
|
313
313
|
|
|
314
314
|
return batteryChargingDurationMaxSelect
|
|
315
315
|
? `${batteryChargingDurationMaxHour ? `${batteryChargingDurationMaxHour} ${isCheckedBatteryTime(batteryCharchingDurationMaxSelectMinutesHours, t)}` : ''} ${batteryChargingDurationMaxSelect}`
|
|
@@ -319,7 +319,7 @@ const getDecoratedProps = (
|
|
|
319
319
|
batteryChargerType: {
|
|
320
320
|
title: t('vehicleProps:title.batteryChargerType'),
|
|
321
321
|
get value() {
|
|
322
|
-
const batteryChargerType = car.battery && car.battery.batteryChargerType
|
|
322
|
+
const batteryChargerType = car.battery && car.battery.batteryChargerType;
|
|
323
323
|
|
|
324
324
|
return isPropDefined(batteryChargerType)
|
|
325
325
|
? batteryChargerType.map((item: any) => t(`cbd:${item}`)).join('\n')
|
package/utils.ts
CHANGED