@snack-uikit/fields 0.20.6 → 0.20.8-preview-a6b157cc.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.20.7 (2024-05-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **FF-0000:** add forgotten ([96e1334](https://github.com/cloud-ru-tech/snack-uikit/commit/96e13348e646f581a97cabe873cdfe02c5a96658))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.20.6 (2024-05-13)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
|
@@ -121,8 +121,12 @@ export const FieldSelectMultiple = forwardRef((_a, ref) => {
|
|
|
121
121
|
mode: 'multiple',
|
|
122
122
|
value: value,
|
|
123
123
|
onChange: value => {
|
|
124
|
+
var _a;
|
|
124
125
|
setValue(value);
|
|
125
|
-
|
|
126
|
+
if (inputValue) {
|
|
127
|
+
(_a = localRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
128
|
+
updateInputValue();
|
|
129
|
+
}
|
|
126
130
|
},
|
|
127
131
|
}, dataFiltered: (_b = rest.dataFiltered) !== null && _b !== void 0 ? _b : Boolean(inputValue.length), size: size, open: !disabled && !readonly && open, onOpenChange: handleOpenChange, children: ({ onKeyDown }) => {
|
|
128
132
|
var _a, _b, _c, _d;
|
|
@@ -114,7 +114,9 @@ export const FieldSlider = forwardRef((_a, ref) => {
|
|
|
114
114
|
handleChange(mark);
|
|
115
115
|
};
|
|
116
116
|
const handleTextValueChange = () => {
|
|
117
|
-
const
|
|
117
|
+
const parsedValue = parseInt(textFieldInputValue);
|
|
118
|
+
const actualMin = parseInt(String(getMarkValue(min)));
|
|
119
|
+
const textFieldNumValue = textFieldInputValue ? parsedValue : actualMin;
|
|
118
120
|
if (Number.isNaN(textFieldNumValue)) {
|
|
119
121
|
return;
|
|
120
122
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.20.
|
|
7
|
+
"version": "0.20.8-preview-a6b157cc.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@snack-uikit/locale": "*"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1987147ed600b424330ed25eedb83e7b3fc96904"
|
|
63
63
|
}
|
|
@@ -184,7 +184,10 @@ export const FieldSelectMultiple = forwardRef<HTMLInputElement, FieldSelectMulti
|
|
|
184
184
|
value: value,
|
|
185
185
|
onChange: value => {
|
|
186
186
|
setValue(value);
|
|
187
|
-
|
|
187
|
+
if (inputValue) {
|
|
188
|
+
localRef.current?.focus();
|
|
189
|
+
updateInputValue();
|
|
190
|
+
}
|
|
188
191
|
},
|
|
189
192
|
}}
|
|
190
193
|
dataFiltered={rest.dataFiltered ?? Boolean(inputValue.length)}
|
|
@@ -204,7 +204,10 @@ export const FieldSlider = forwardRef<HTMLInputElement, FieldSliderProps>(
|
|
|
204
204
|
};
|
|
205
205
|
|
|
206
206
|
const handleTextValueChange = () => {
|
|
207
|
-
const
|
|
207
|
+
const parsedValue = parseInt(textFieldInputValue);
|
|
208
|
+
const actualMin = parseInt(String(getMarkValue(min)));
|
|
209
|
+
|
|
210
|
+
const textFieldNumValue = textFieldInputValue ? parsedValue : actualMin;
|
|
208
211
|
|
|
209
212
|
if (Number.isNaN(textFieldNumValue)) {
|
|
210
213
|
return;
|