@cloud-ru/ds-fields 2.2.2-preview-41de8d8d.0 → 2.2.2-preview-3a2dc99b.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/dist/cjs/components/FieldColor/FieldColor.js +1 -1
- package/dist/cjs/components/FieldCombo/FieldCombo.js +1 -1
- package/dist/cjs/components/FieldDate/FieldDate.js +1 -1
- package/dist/cjs/components/FieldSecure/FieldSecure.js +1 -1
- package/dist/cjs/components/FieldTime/FieldTime.js +1 -1
- package/dist/esm/components/FieldColor/FieldColor.js +1 -1
- package/dist/esm/components/FieldCombo/FieldCombo.js +1 -1
- package/dist/esm/components/FieldDate/FieldDate.js +1 -1
- package/dist/esm/components/FieldSecure/FieldSecure.js +1 -1
- package/dist/esm/components/FieldTime/FieldTime.js +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/components/FieldColor/FieldColor.tsx +1 -1
- package/src/components/FieldCombo/FieldCombo.tsx +1 -1
- package/src/components/FieldDate/FieldDate.tsx +1 -1
- package/src/components/FieldSecure/FieldSecure.tsx +1 -1
- package/src/components/FieldTime/FieldTime.tsx +1 -1
|
@@ -88,7 +88,7 @@ exports.FieldColor = (0, react_1.forwardRef)(function FieldColor({ label = '', l
|
|
|
88
88
|
inputRef: localRef,
|
|
89
89
|
postfixButtons: (0, react_1.useMemo)(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
90
90
|
readonly: Boolean(readOnly),
|
|
91
|
-
submitKeys: ['Enter', '
|
|
91
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
92
92
|
});
|
|
93
93
|
const handleKeyDown = (0, react_1.useCallback)((event) => {
|
|
94
94
|
onInputKeyDown(event);
|
|
@@ -82,7 +82,7 @@ exports.FieldCombo = (0, react_1.forwardRef)(function FieldCombo({ label = '', l
|
|
|
82
82
|
postfixButtons: (0, react_1.useMemo)(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
83
83
|
onButtonKeyDown: onPostfixButtonKeyDown,
|
|
84
84
|
readonly: Boolean(readOnly),
|
|
85
|
-
submitKeys: ['Enter', '
|
|
85
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
86
86
|
});
|
|
87
87
|
const focusInput = (0, react_1.useCallback)(() => {
|
|
88
88
|
setInitialTabIndices();
|
|
@@ -295,7 +295,7 @@ exports.FieldDate = (0, react_1.forwardRef)(function FieldDate(props, ref) {
|
|
|
295
295
|
postfixButtons: (0, react_1.useMemo)(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
296
296
|
onButtonKeyDown: handlePostfixButtonKeyDown,
|
|
297
297
|
readonly: Boolean(readOnly),
|
|
298
|
-
submitKeys: ['Enter', '
|
|
298
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
299
299
|
});
|
|
300
300
|
// Нав-цепочка бежит безусловно ПОСЛЕ движка (легаси useHandlers): движок ставит каретку в конец
|
|
301
301
|
// на ArrowRight с последнего сегмента, nav читает её в том же keydown и забирает фокус на кнопку.
|
|
@@ -109,7 +109,7 @@ exports.FieldSecure = (0, react_1.forwardRef)(function FieldSecure({ label = '',
|
|
|
109
109
|
postfixButtons: (0, react_1.useMemo)(() => [copyButtonSettings], [copyButtonSettings]),
|
|
110
110
|
onButtonKeyDown: onPostfixKeyDown,
|
|
111
111
|
readonly: Boolean(readOnly),
|
|
112
|
-
submitKeys: ['Enter', '
|
|
112
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
113
113
|
});
|
|
114
114
|
const handleKeyDown = (0, react_1.useCallback)((event) => {
|
|
115
115
|
onKeyDownProp?.(event);
|
|
@@ -119,7 +119,7 @@ exports.FieldTime = (0, react_1.forwardRef)(function FieldTime({ label = '', lab
|
|
|
119
119
|
inputRef: localRef,
|
|
120
120
|
postfixButtons: (0, react_1.useMemo)(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
121
121
|
readonly: Boolean(readOnly),
|
|
122
|
-
submitKeys: ['Enter', '
|
|
122
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
123
123
|
});
|
|
124
124
|
const handleMouseEnter = (0, react_1.useCallback)(() => {
|
|
125
125
|
if (!readOnly && !disabled) {
|
|
@@ -82,7 +82,7 @@ export const FieldColor = forwardRef(function FieldColor({ label = '', labelTool
|
|
|
82
82
|
inputRef: localRef,
|
|
83
83
|
postfixButtons: useMemo(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
84
84
|
readonly: Boolean(readOnly),
|
|
85
|
-
submitKeys: ['Enter', '
|
|
85
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
86
86
|
});
|
|
87
87
|
const handleKeyDown = useCallback((event) => {
|
|
88
88
|
onInputKeyDown(event);
|
|
@@ -76,7 +76,7 @@ export const FieldCombo = forwardRef(function FieldCombo({ label = '', labelTool
|
|
|
76
76
|
postfixButtons: useMemo(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
77
77
|
onButtonKeyDown: onPostfixButtonKeyDown,
|
|
78
78
|
readonly: Boolean(readOnly),
|
|
79
|
-
submitKeys: ['Enter', '
|
|
79
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
80
80
|
});
|
|
81
81
|
const focusInput = useCallback(() => {
|
|
82
82
|
setInitialTabIndices();
|
|
@@ -289,7 +289,7 @@ export const FieldDate = forwardRef(function FieldDate(props, ref) {
|
|
|
289
289
|
postfixButtons: useMemo(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
290
290
|
onButtonKeyDown: handlePostfixButtonKeyDown,
|
|
291
291
|
readonly: Boolean(readOnly),
|
|
292
|
-
submitKeys: ['Enter', '
|
|
292
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
293
293
|
});
|
|
294
294
|
// Нав-цепочка бежит безусловно ПОСЛЕ движка (легаси useHandlers): движок ставит каретку в конец
|
|
295
295
|
// на ArrowRight с последнего сегмента, nav читает её в том же keydown и забирает фокус на кнопку.
|
|
@@ -103,7 +103,7 @@ export const FieldSecure = forwardRef(function FieldSecure({ label = '', labelTo
|
|
|
103
103
|
postfixButtons: useMemo(() => [copyButtonSettings], [copyButtonSettings]),
|
|
104
104
|
onButtonKeyDown: onPostfixKeyDown,
|
|
105
105
|
readonly: Boolean(readOnly),
|
|
106
|
-
submitKeys: ['Enter', '
|
|
106
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
107
107
|
});
|
|
108
108
|
const handleKeyDown = useCallback((event) => {
|
|
109
109
|
onKeyDownProp?.(event);
|
|
@@ -113,7 +113,7 @@ export const FieldTime = forwardRef(function FieldTime({ label = '', labelToolti
|
|
|
113
113
|
inputRef: localRef,
|
|
114
114
|
postfixButtons: useMemo(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
115
115
|
readonly: Boolean(readOnly),
|
|
116
|
-
submitKeys: ['Enter', '
|
|
116
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
117
117
|
});
|
|
118
118
|
const handleMouseEnter = useCallback(() => {
|
|
119
119
|
if (!readOnly && !disabled) {
|