ebta-workflow-prod 4.1.2 → 4.1.3
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
|
@@ -1310,7 +1310,7 @@ function AttributeFilter(props: AttributeFilterProps): React.ReactElement {
|
|
|
1310
1310
|
setProperty("filteredValues" as any, filterrangeResult)
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
|
-
const normalizeNumber = (value: number) => Number(value.toFixed(
|
|
1313
|
+
const normalizeNumber = (value: number) => Number(value.toFixed(1));
|
|
1314
1314
|
|
|
1315
1315
|
const maxStringLength = 28
|
|
1316
1316
|
function itemText(item: fieldValue, type?: string) {
|
|
@@ -1419,8 +1419,8 @@ function AttributeFilter(props: AttributeFilterProps): React.ReactElement {
|
|
|
1419
1419
|
ISnumberAttribute && (attribute.uniqValue.length > 6) ?
|
|
1420
1420
|
//Display String search or number Range , don't display if value amount is limited
|
|
1421
1421
|
<Box display="flex" alignItems="center">
|
|
1422
|
-
<CustomNumberInput aria-label="min value input" placeholder={`Min (${attributeMin} ~ ${attributeMax})`} min={attributeMin - 1} max={attributeMax + 1}
|
|
1423
|
-
value={minValue == -Infinity ? undefined : minValue} step={0.1}
|
|
1422
|
+
<CustomNumberInput aria-label="min value input" placeholder={`Min (${normalizeNumber(attributeMin)} ~ ${normalizeNumber(attributeMax)})`} min={attributeMin - 1} max={attributeMax + 1}
|
|
1423
|
+
value={minValue == -Infinity ? undefined : normalizeNumber(minValue)} step={0.1}
|
|
1424
1424
|
onChange={(event, val) => {
|
|
1425
1425
|
const normalizedValue = typeof val === 'number' ? normalizeNumber(val) : val;
|
|
1426
1426
|
if (((normalizedValue || normalizedValue == 0) && (normalizedValue <= maxValue))) { setProperty("minValue" as any, normalizedValue) };
|
|
@@ -1437,8 +1437,8 @@ function AttributeFilter(props: AttributeFilterProps): React.ReactElement {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}}
|
|
1439
1439
|
/>
|
|
1440
|
-
<CustomNumberInput aria-label="max value input" placeholder={`Max (${attributeMin} ~ ${attributeMax})`} min={attributeMin - 1} max={attributeMax + 1}
|
|
1441
|
-
value={maxValue == Infinity ? undefined : maxValue} step={0.1}
|
|
1440
|
+
<CustomNumberInput aria-label="max value input" placeholder={`Max (${normalizeNumber(attributeMin)} ~ ${normalizeNumber(attributeMax)})`} min={attributeMin - 1} max={attributeMax + 1}
|
|
1441
|
+
value={maxValue == Infinity ? undefined : normalizeNumber(maxValue)} step={0.1}
|
|
1442
1442
|
onChange={(_event, val) => {
|
|
1443
1443
|
const normalizedValue = typeof val === 'number' ? normalizeNumber(val) : val;
|
|
1444
1444
|
if ((normalizedValue || normalizedValue == 0) && (normalizedValue >= minValue)) { setProperty("maxValue" as any, normalizedValue) };
|
|
@@ -114,6 +114,16 @@ const StyledButton = styled('button')(
|
|
|
114
114
|
`,
|
|
115
115
|
)
|
|
116
116
|
|
|
117
|
+
const StyledIncrementButton = styled(StyledButton)({
|
|
118
|
+
gridColumn: 2,
|
|
119
|
+
gridRow: 1,
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
const StyledDecrementButton = styled(StyledButton)({
|
|
123
|
+
gridColumn: 2,
|
|
124
|
+
gridRow: 2,
|
|
125
|
+
});
|
|
126
|
+
|
|
117
127
|
|
|
118
128
|
|
|
119
129
|
|
|
@@ -151,8 +161,8 @@ const CustomNumberInput = React.forwardRef(function CustomNumberInput(
|
|
|
151
161
|
slots={{
|
|
152
162
|
root: StyledInputRoot,
|
|
153
163
|
input: StyledInputElement,
|
|
154
|
-
incrementButton:
|
|
155
|
-
decrementButton:
|
|
164
|
+
incrementButton: StyledIncrementButton,
|
|
165
|
+
decrementButton: StyledDecrementButton,
|
|
156
166
|
}}
|
|
157
167
|
slotProps={{
|
|
158
168
|
incrementButton: {
|