@bytebrand/fe-ui-core 4.2.177 → 4.2.179
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
|
@@ -55,6 +55,11 @@ const OrderStatusCar = ({
|
|
|
55
55
|
{ icon: 'handingOverDashboard', selector: 'selector_status_handing_over' }
|
|
56
56
|
];
|
|
57
57
|
|
|
58
|
+
const steps = cardItems.map((step) => {
|
|
59
|
+
const { selector } = step;
|
|
60
|
+
return selector;
|
|
61
|
+
})
|
|
62
|
+
|
|
58
63
|
useEffect(
|
|
59
64
|
() => {
|
|
60
65
|
cardItems.map((step, index) => {
|
|
@@ -63,13 +68,12 @@ const OrderStatusCar = ({
|
|
|
63
68
|
setActiveStep(index + 1);
|
|
64
69
|
}
|
|
65
70
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
// }
|
|
71
|
+
if (!!ref && !!ref.current) {
|
|
72
|
+
ref.current.scrollTo({
|
|
73
|
+
behavior: 'smooth',
|
|
74
|
+
left: 156 * steps.indexOf(status)
|
|
75
|
+
})
|
|
76
|
+
}
|
|
73
77
|
},
|
|
74
78
|
[]
|
|
75
79
|
);
|
|
@@ -100,7 +104,7 @@ const OrderStatusCar = ({
|
|
|
100
104
|
</div>
|
|
101
105
|
</div>
|
|
102
106
|
</div>
|
|
103
|
-
<div className={styles.cardsSection}>
|
|
107
|
+
<div className={styles.cardsSection} ref={ref}>
|
|
104
108
|
{cardItems.map((card, index) => {
|
|
105
109
|
const { icon, selector } = card;
|
|
106
110
|
|
|
@@ -390,8 +390,8 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
|
|
|
390
390
|
|
|
391
391
|
onVehicleIdChange = (value: string) => {
|
|
392
392
|
const { filters, changeFilterValue, search } = this.props;
|
|
393
|
-
const upperCaseValue = value.toLocaleUpperCase();
|
|
394
|
-
if (
|
|
393
|
+
const upperCaseValue = value.toLocaleUpperCase().trim();
|
|
394
|
+
if (upperCaseValue.length === 6 || !value) {
|
|
395
395
|
this.onFilterChange('VEHICLE_ID', upperCaseValue);
|
|
396
396
|
changeFilterValue('VEHICLE_ID', upperCaseValue);
|
|
397
397
|
search(filters, 1, true);
|
|
@@ -434,7 +434,7 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
|
|
|
434
434
|
value={VEHICLE_ID.value}
|
|
435
435
|
onChange={this.onVehicleIdChange}
|
|
436
436
|
size='custom'
|
|
437
|
-
placeholder='
|
|
437
|
+
placeholder={t('SearchPage:vehicleIdexample')}
|
|
438
438
|
/>
|
|
439
439
|
</div>
|
|
440
440
|
{this.renderFilters()}
|