rsuite 5.22.2 → 5.23.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 +12 -0
- package/cjs/InputNumber/InputNumber.js +7 -2
- package/cjs/Menu/MenuItem.js +3 -1
- package/cjs/locales/index.d.ts +2 -0
- package/cjs/locales/index.js +9 -1
- package/cjs/locales/kk_KZ.d.ts +105 -0
- package/cjs/locales/kk_KZ.js +84 -0
- package/cjs/locales/tr_TR.d.ts +105 -0
- package/cjs/locales/tr_TR.js +84 -0
- package/dist/rsuite.js +18 -7
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/InputNumber/InputNumber.js +7 -2
- package/esm/Menu/MenuItem.js +3 -1
- package/esm/locales/index.d.ts +2 -0
- package/esm/locales/index.js +2 -0
- package/esm/locales/kk_KZ.d.ts +105 -0
- package/esm/locales/kk_KZ.js +74 -0
- package/esm/locales/tr_TR.d.ts +105 -0
- package/esm/locales/tr_TR.js +74 -0
- package/locales/kk_KZ/package.json +7 -0
- package/locales/tr_TR/package.json +7 -0
- package/package.json +4 -4
|
@@ -188,6 +188,11 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
188
188
|
}
|
|
189
189
|
}, [handleStepUp, handleStepDown, minProp, maxProp, handleChangeValue, getSafeValue]);
|
|
190
190
|
var handleWheel = useCallback(function (event) {
|
|
191
|
+
if (!scrollable) {
|
|
192
|
+
event.preventDefault();
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
|
|
191
196
|
if (!disabled && !readOnly && event.target === document.activeElement) {
|
|
192
197
|
event.preventDefault();
|
|
193
198
|
var delta = event['wheelDelta'] || -event.deltaY || -(event === null || event === void 0 ? void 0 : event.detail);
|
|
@@ -202,7 +207,7 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
202
207
|
}
|
|
203
208
|
|
|
204
209
|
onWheel === null || onWheel === void 0 ? void 0 : onWheel(event);
|
|
205
|
-
}, [disabled, handleStepDown, handleStepUp, onWheel, readOnly]);
|
|
210
|
+
}, [disabled, handleStepDown, handleStepUp, onWheel, readOnly, scrollable]);
|
|
206
211
|
var handleChange = useCallback(function (value, event) {
|
|
207
212
|
if (!/^-?(?:\d+)?(\.)?\d*$/.test(value) && value !== '') {
|
|
208
213
|
return;
|
|
@@ -219,7 +224,7 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
219
224
|
useEffect(function () {
|
|
220
225
|
var wheelListener;
|
|
221
226
|
|
|
222
|
-
if (inputRef.current
|
|
227
|
+
if (inputRef.current) {
|
|
223
228
|
wheelListener = on(inputRef.current, 'wheel', handleWheel, {
|
|
224
229
|
passive: false
|
|
225
230
|
});
|
package/esm/Menu/MenuItem.js
CHANGED
|
@@ -9,6 +9,8 @@ import MenuContext, { MenuActionTypes, MoveFocusTo } from './MenuContext';
|
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
11
|
function MenuItem(props) {
|
|
12
|
+
var _menuState$items$menu;
|
|
13
|
+
|
|
12
14
|
var children = props.children,
|
|
13
15
|
_props$selected = props.selected,
|
|
14
16
|
selected = _props$selected === void 0 ? false : _props$selected,
|
|
@@ -26,7 +28,7 @@ function MenuItem(props) {
|
|
|
26
28
|
var menuState = menu[0],
|
|
27
29
|
dispatch = menu[1]; // Whether this menuitem has focus (indicated by `aria-activedescendant` from parent menu)
|
|
28
30
|
|
|
29
|
-
var hasFocus = !isNil(menuitemRef.current) && !isNil(menuState.activeItemIndex) && menuState.items[menuState.activeItemIndex].element === menuitemRef.current;
|
|
31
|
+
var hasFocus = !isNil(menuitemRef.current) && !isNil(menuState.activeItemIndex) && ((_menuState$items$menu = menuState.items[menuState.activeItemIndex]) === null || _menuState$items$menu === void 0 ? void 0 : _menuState$items$menu.element) === menuitemRef.current;
|
|
30
32
|
var handleClick = useCallback(function (event) {
|
|
31
33
|
if (disabled) {
|
|
32
34
|
return;
|
package/esm/locales/index.d.ts
CHANGED
|
@@ -8,10 +8,12 @@ export { default as esAR } from './es_AR';
|
|
|
8
8
|
export { default as esES } from './es_ES';
|
|
9
9
|
export { default as fiFI } from './fi_FI';
|
|
10
10
|
export { default as itIT } from './it_IT';
|
|
11
|
+
export { default as kkKZ } from './kk_KZ';
|
|
11
12
|
export { default as koKR } from './ko_KR';
|
|
12
13
|
export { default as ptBR } from './pt_BR';
|
|
13
14
|
export { default as ruRU } from './ru_RU';
|
|
14
15
|
export { default as svSE } from './sv_SE';
|
|
16
|
+
export { default as trTR } from './tr_TR';
|
|
15
17
|
export { default as zhCN } from './zh_CN';
|
|
16
18
|
export { default as zhTw } from './zh_TW';
|
|
17
19
|
export { default as faIR } from './fa_IR';
|
package/esm/locales/index.js
CHANGED
|
@@ -7,10 +7,12 @@ export { default as esAR } from './es_AR';
|
|
|
7
7
|
export { default as esES } from './es_ES';
|
|
8
8
|
export { default as fiFI } from './fi_FI';
|
|
9
9
|
export { default as itIT } from './it_IT';
|
|
10
|
+
export { default as kkKZ } from './kk_KZ';
|
|
10
11
|
export { default as koKR } from './ko_KR';
|
|
11
12
|
export { default as ptBR } from './pt_BR';
|
|
12
13
|
export { default as ruRU } from './ru_RU';
|
|
13
14
|
export { default as svSE } from './sv_SE';
|
|
15
|
+
export { default as trTR } from './tr_TR';
|
|
14
16
|
export { default as zhCN } from './zh_CN';
|
|
15
17
|
export { default as zhTw } from './zh_TW';
|
|
16
18
|
export { default as faIR } from './fa_IR';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
common: {
|
|
3
|
+
loading: string;
|
|
4
|
+
emptyMessage: string;
|
|
5
|
+
};
|
|
6
|
+
Plaintext: {
|
|
7
|
+
unfilled: string;
|
|
8
|
+
notSelected: string;
|
|
9
|
+
notUploaded: string;
|
|
10
|
+
};
|
|
11
|
+
Pagination: {
|
|
12
|
+
more: string;
|
|
13
|
+
prev: string;
|
|
14
|
+
next: string;
|
|
15
|
+
first: string;
|
|
16
|
+
last: string;
|
|
17
|
+
limit: string;
|
|
18
|
+
total: string;
|
|
19
|
+
skip: string;
|
|
20
|
+
};
|
|
21
|
+
Calendar: {
|
|
22
|
+
sunday: string;
|
|
23
|
+
monday: string;
|
|
24
|
+
tuesday: string;
|
|
25
|
+
wednesday: string;
|
|
26
|
+
thursday: string;
|
|
27
|
+
friday: string;
|
|
28
|
+
saturday: string;
|
|
29
|
+
ok: string;
|
|
30
|
+
today: string;
|
|
31
|
+
yesterday: string;
|
|
32
|
+
hours: string;
|
|
33
|
+
minutes: string;
|
|
34
|
+
seconds: string;
|
|
35
|
+
formattedMonthPattern: string;
|
|
36
|
+
formattedDayPattern: string;
|
|
37
|
+
dateLocale: any;
|
|
38
|
+
};
|
|
39
|
+
DatePicker: {
|
|
40
|
+
sunday: string;
|
|
41
|
+
monday: string;
|
|
42
|
+
tuesday: string;
|
|
43
|
+
wednesday: string;
|
|
44
|
+
thursday: string;
|
|
45
|
+
friday: string;
|
|
46
|
+
saturday: string;
|
|
47
|
+
ok: string;
|
|
48
|
+
today: string;
|
|
49
|
+
yesterday: string;
|
|
50
|
+
hours: string;
|
|
51
|
+
minutes: string;
|
|
52
|
+
seconds: string;
|
|
53
|
+
formattedMonthPattern: string;
|
|
54
|
+
formattedDayPattern: string;
|
|
55
|
+
dateLocale: any;
|
|
56
|
+
};
|
|
57
|
+
DateRangePicker: {
|
|
58
|
+
last7Days: string;
|
|
59
|
+
sunday: string;
|
|
60
|
+
monday: string;
|
|
61
|
+
tuesday: string;
|
|
62
|
+
wednesday: string;
|
|
63
|
+
thursday: string;
|
|
64
|
+
friday: string;
|
|
65
|
+
saturday: string;
|
|
66
|
+
ok: string;
|
|
67
|
+
today: string;
|
|
68
|
+
yesterday: string;
|
|
69
|
+
hours: string;
|
|
70
|
+
minutes: string;
|
|
71
|
+
seconds: string;
|
|
72
|
+
formattedMonthPattern: string;
|
|
73
|
+
formattedDayPattern: string;
|
|
74
|
+
dateLocale: any;
|
|
75
|
+
};
|
|
76
|
+
Picker: {
|
|
77
|
+
noResultsText: string;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
searchPlaceholder: string;
|
|
80
|
+
checkAll: string;
|
|
81
|
+
};
|
|
82
|
+
InputPicker: {
|
|
83
|
+
newItem: string;
|
|
84
|
+
createOption: string;
|
|
85
|
+
};
|
|
86
|
+
Uploader: {
|
|
87
|
+
inited: string;
|
|
88
|
+
progress: string;
|
|
89
|
+
error: string;
|
|
90
|
+
complete: string;
|
|
91
|
+
emptyFile: string;
|
|
92
|
+
upload: string;
|
|
93
|
+
};
|
|
94
|
+
CloseButton: {
|
|
95
|
+
closeLabel: string;
|
|
96
|
+
};
|
|
97
|
+
Breadcrumb: {
|
|
98
|
+
expandText: string;
|
|
99
|
+
};
|
|
100
|
+
Toggle: {
|
|
101
|
+
on: string;
|
|
102
|
+
off: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import kk from 'date-fns/locale/kk';
|
|
3
|
+
var Calendar = {
|
|
4
|
+
sunday: 'Жк',
|
|
5
|
+
monday: 'Дс',
|
|
6
|
+
tuesday: 'Сс',
|
|
7
|
+
wednesday: 'Ср',
|
|
8
|
+
thursday: 'Бс',
|
|
9
|
+
friday: 'Жм',
|
|
10
|
+
saturday: 'Сн',
|
|
11
|
+
ok: 'ОК',
|
|
12
|
+
today: 'Бүгін',
|
|
13
|
+
yesterday: 'Кеше',
|
|
14
|
+
hours: 'Сағат',
|
|
15
|
+
minutes: 'Минут',
|
|
16
|
+
seconds: 'Секунд',
|
|
17
|
+
formattedMonthPattern: 'MMM, yyyy',
|
|
18
|
+
formattedDayPattern: 'MMM dd, yyyy',
|
|
19
|
+
dateLocale: kk
|
|
20
|
+
};
|
|
21
|
+
export default {
|
|
22
|
+
common: {
|
|
23
|
+
loading: 'Жүктелуде...',
|
|
24
|
+
emptyMessage: 'Мәліметтер жоқ'
|
|
25
|
+
},
|
|
26
|
+
Plaintext: {
|
|
27
|
+
unfilled: 'Мәліметтер жоқ',
|
|
28
|
+
notSelected: 'Таңдалмаған',
|
|
29
|
+
notUploaded: 'Жүктелмеген'
|
|
30
|
+
},
|
|
31
|
+
Pagination: {
|
|
32
|
+
more: 'Көбірек',
|
|
33
|
+
prev: 'Алдыңғы',
|
|
34
|
+
next: 'Келесі',
|
|
35
|
+
first: 'Бірінші',
|
|
36
|
+
last: 'Соңғы',
|
|
37
|
+
limit: '{0} / бет',
|
|
38
|
+
total: 'Барлығы: {0}',
|
|
39
|
+
skip: '{0}-бетке өтіңіз'
|
|
40
|
+
},
|
|
41
|
+
Calendar: Calendar,
|
|
42
|
+
DatePicker: _extends({}, Calendar),
|
|
43
|
+
DateRangePicker: _extends({}, Calendar, {
|
|
44
|
+
last7Days: 'Соңғы 7 күн'
|
|
45
|
+
}),
|
|
46
|
+
Picker: {
|
|
47
|
+
noResultsText: 'Нәтижелер жоқ',
|
|
48
|
+
placeholder: 'Таңдаңыз',
|
|
49
|
+
searchPlaceholder: 'Іздеу',
|
|
50
|
+
checkAll: 'Барлығын таңдау'
|
|
51
|
+
},
|
|
52
|
+
InputPicker: {
|
|
53
|
+
newItem: 'Жаңа элемент',
|
|
54
|
+
createOption: 'Жаңа элемент "{0}" құру'
|
|
55
|
+
},
|
|
56
|
+
Uploader: {
|
|
57
|
+
inited: 'Бастау',
|
|
58
|
+
progress: 'Жүктеу',
|
|
59
|
+
error: 'Қате',
|
|
60
|
+
complete: 'Жүктелді',
|
|
61
|
+
emptyFile: 'Бос',
|
|
62
|
+
upload: 'Жүктеу'
|
|
63
|
+
},
|
|
64
|
+
CloseButton: {
|
|
65
|
+
closeLabel: 'Жабу'
|
|
66
|
+
},
|
|
67
|
+
Breadcrumb: {
|
|
68
|
+
expandText: 'Көрсету'
|
|
69
|
+
},
|
|
70
|
+
Toggle: {
|
|
71
|
+
on: 'Қосу',
|
|
72
|
+
off: 'Өшіру'
|
|
73
|
+
}
|
|
74
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
common: {
|
|
3
|
+
loading: string;
|
|
4
|
+
emptyMessage: string;
|
|
5
|
+
};
|
|
6
|
+
Plaintext: {
|
|
7
|
+
unfilled: string;
|
|
8
|
+
notSelected: string;
|
|
9
|
+
notUploaded: string;
|
|
10
|
+
};
|
|
11
|
+
Pagination: {
|
|
12
|
+
more: string;
|
|
13
|
+
prev: string;
|
|
14
|
+
next: string;
|
|
15
|
+
first: string;
|
|
16
|
+
last: string;
|
|
17
|
+
limit: string;
|
|
18
|
+
total: string;
|
|
19
|
+
skip: string;
|
|
20
|
+
};
|
|
21
|
+
Calendar: {
|
|
22
|
+
sunday: string;
|
|
23
|
+
monday: string;
|
|
24
|
+
tuesday: string;
|
|
25
|
+
wednesday: string;
|
|
26
|
+
thursday: string;
|
|
27
|
+
friday: string;
|
|
28
|
+
saturday: string;
|
|
29
|
+
ok: string;
|
|
30
|
+
today: string;
|
|
31
|
+
yesterday: string;
|
|
32
|
+
hours: string;
|
|
33
|
+
minutes: string;
|
|
34
|
+
seconds: string;
|
|
35
|
+
formattedMonthPattern: string;
|
|
36
|
+
formattedDayPattern: string;
|
|
37
|
+
dateLocale: any;
|
|
38
|
+
};
|
|
39
|
+
DatePicker: {
|
|
40
|
+
sunday: string;
|
|
41
|
+
monday: string;
|
|
42
|
+
tuesday: string;
|
|
43
|
+
wednesday: string;
|
|
44
|
+
thursday: string;
|
|
45
|
+
friday: string;
|
|
46
|
+
saturday: string;
|
|
47
|
+
ok: string;
|
|
48
|
+
today: string;
|
|
49
|
+
yesterday: string;
|
|
50
|
+
hours: string;
|
|
51
|
+
minutes: string;
|
|
52
|
+
seconds: string;
|
|
53
|
+
formattedMonthPattern: string;
|
|
54
|
+
formattedDayPattern: string;
|
|
55
|
+
dateLocale: any;
|
|
56
|
+
};
|
|
57
|
+
DateRangePicker: {
|
|
58
|
+
last7Days: string;
|
|
59
|
+
sunday: string;
|
|
60
|
+
monday: string;
|
|
61
|
+
tuesday: string;
|
|
62
|
+
wednesday: string;
|
|
63
|
+
thursday: string;
|
|
64
|
+
friday: string;
|
|
65
|
+
saturday: string;
|
|
66
|
+
ok: string;
|
|
67
|
+
today: string;
|
|
68
|
+
yesterday: string;
|
|
69
|
+
hours: string;
|
|
70
|
+
minutes: string;
|
|
71
|
+
seconds: string;
|
|
72
|
+
formattedMonthPattern: string;
|
|
73
|
+
formattedDayPattern: string;
|
|
74
|
+
dateLocale: any;
|
|
75
|
+
};
|
|
76
|
+
Picker: {
|
|
77
|
+
noResultsText: string;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
searchPlaceholder: string;
|
|
80
|
+
checkAll: string;
|
|
81
|
+
};
|
|
82
|
+
InputPicker: {
|
|
83
|
+
newItem: string;
|
|
84
|
+
createOption: string;
|
|
85
|
+
};
|
|
86
|
+
Uploader: {
|
|
87
|
+
inited: string;
|
|
88
|
+
progress: string;
|
|
89
|
+
error: string;
|
|
90
|
+
complete: string;
|
|
91
|
+
emptyFile: string;
|
|
92
|
+
upload: string;
|
|
93
|
+
};
|
|
94
|
+
CloseButton: {
|
|
95
|
+
closeLabel: string;
|
|
96
|
+
};
|
|
97
|
+
Breadcrumb: {
|
|
98
|
+
expandText: string;
|
|
99
|
+
};
|
|
100
|
+
Toggle: {
|
|
101
|
+
on: string;
|
|
102
|
+
off: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import tr from 'date-fns/locale/tr';
|
|
3
|
+
var Calendar = {
|
|
4
|
+
sunday: 'Pz',
|
|
5
|
+
monday: 'Pt',
|
|
6
|
+
tuesday: 'Sa',
|
|
7
|
+
wednesday: 'Ça',
|
|
8
|
+
thursday: 'Pe',
|
|
9
|
+
friday: 'Cu',
|
|
10
|
+
saturday: 'Ct',
|
|
11
|
+
ok: 'Tamam',
|
|
12
|
+
today: 'Bugün',
|
|
13
|
+
yesterday: 'Dün',
|
|
14
|
+
hours: 'Saat',
|
|
15
|
+
minutes: 'Dakika',
|
|
16
|
+
seconds: 'Saniye',
|
|
17
|
+
formattedMonthPattern: 'MMM yyyy',
|
|
18
|
+
formattedDayPattern: 'dd MMM yyyy',
|
|
19
|
+
dateLocale: tr
|
|
20
|
+
};
|
|
21
|
+
export default {
|
|
22
|
+
common: {
|
|
23
|
+
loading: 'Yükleniyor...',
|
|
24
|
+
emptyMessage: 'Veri bulunamadı'
|
|
25
|
+
},
|
|
26
|
+
Plaintext: {
|
|
27
|
+
unfilled: 'Doldurulmadı',
|
|
28
|
+
notSelected: 'Seçilmedi',
|
|
29
|
+
notUploaded: 'Yüklenmedi'
|
|
30
|
+
},
|
|
31
|
+
Pagination: {
|
|
32
|
+
more: 'Daha',
|
|
33
|
+
prev: 'Önceki',
|
|
34
|
+
next: 'Sonraki',
|
|
35
|
+
first: 'İlk',
|
|
36
|
+
last: 'Son',
|
|
37
|
+
limit: '{0} / sayfa',
|
|
38
|
+
total: 'Toplam Satır: {0}',
|
|
39
|
+
skip: 'Git{0}'
|
|
40
|
+
},
|
|
41
|
+
Calendar: Calendar,
|
|
42
|
+
DatePicker: _extends({}, Calendar),
|
|
43
|
+
DateRangePicker: _extends({}, Calendar, {
|
|
44
|
+
last7Days: 'Son 7 Gün'
|
|
45
|
+
}),
|
|
46
|
+
Picker: {
|
|
47
|
+
noResultsText: 'Sonuç bulunamadı',
|
|
48
|
+
placeholder: 'Seç',
|
|
49
|
+
searchPlaceholder: 'Ara',
|
|
50
|
+
checkAll: 'Tümü'
|
|
51
|
+
},
|
|
52
|
+
InputPicker: {
|
|
53
|
+
newItem: 'Yeni öğe',
|
|
54
|
+
createOption: 'Seçenek ekle "{0}"'
|
|
55
|
+
},
|
|
56
|
+
Uploader: {
|
|
57
|
+
inited: 'Başlangıç',
|
|
58
|
+
progress: 'Yükleniyor',
|
|
59
|
+
error: 'Hata',
|
|
60
|
+
complete: 'Tamamlandı',
|
|
61
|
+
emptyFile: 'Boş',
|
|
62
|
+
upload: 'Yükle'
|
|
63
|
+
},
|
|
64
|
+
CloseButton: {
|
|
65
|
+
closeLabel: 'Kapat'
|
|
66
|
+
},
|
|
67
|
+
Breadcrumb: {
|
|
68
|
+
expandText: 'Yolu göster'
|
|
69
|
+
},
|
|
70
|
+
Toggle: {
|
|
71
|
+
on: 'Açık',
|
|
72
|
+
off: 'Kapalı'
|
|
73
|
+
}
|
|
74
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.23.0",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "git@github.com:rsuite/rsuite.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/runtime": "^7.
|
|
27
|
+
"@babel/runtime": "^7.20.1",
|
|
28
28
|
"@juggle/resize-observer": "^3.4.0",
|
|
29
29
|
"@rsuite/icons": "^1.0.2",
|
|
30
30
|
"@types/chai": "^4.3.3",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dom-lib": "^3.1.3",
|
|
37
37
|
"lodash": "^4.17.11",
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
|
-
"react-window": "^1.8.
|
|
40
|
-
"rsuite-table": "^5.8.
|
|
39
|
+
"react-window": "^1.8.8",
|
|
40
|
+
"rsuite-table": "^5.8.1",
|
|
41
41
|
"schema-typed": "^2.0.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|