@cloud-ru/ds-fields 2.2.2-preview-1c0446bf.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.
@@ -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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
112
+ submitKeys: ['Enter', ' ', 'Tab'],
113
113
  });
114
114
  const handleKeyDown = (0, react_1.useCallback)((event) => {
115
115
  onKeyDownProp?.(event);
@@ -277,7 +277,7 @@ exports.FieldSelect = (0, react_1.forwardRef)(function FieldSelect(props, ref) {
277
277
  inputRef: inputElementRef,
278
278
  postfixButtons: (0, react_1.useMemo)(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
279
279
  readonly: !searchable || Boolean(readOnly),
280
- submitKeys: ['Enter', 'Space', 'Tab'],
280
+ submitKeys: ['Enter', ' ', 'Tab'],
281
281
  });
282
282
  const handleTriggerKeyDown = (event) => {
283
283
  if (searchable && event.key === ' ') {
@@ -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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
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', 'Space', 'Tab'],
106
+ submitKeys: ['Enter', ' ', 'Tab'],
107
107
  });
108
108
  const handleKeyDown = useCallback((event) => {
109
109
  onKeyDownProp?.(event);
@@ -271,7 +271,7 @@ export const FieldSelect = forwardRef(function FieldSelect(props, ref) {
271
271
  inputRef: inputElementRef,
272
272
  postfixButtons: useMemo(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
273
273
  readonly: !searchable || Boolean(readOnly),
274
- submitKeys: ['Enter', 'Space', 'Tab'],
274
+ submitKeys: ['Enter', ' ', 'Tab'],
275
275
  });
276
276
  const handleTriggerKeyDown = (event) => {
277
277
  if (searchable && event.key === ' ') {
@@ -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', 'Space', 'Tab'],
116
+ submitKeys: ['Enter', ' ', 'Tab'],
117
117
  });
118
118
  const handleMouseEnter = useCallback(() => {
119
119
  if (!readOnly && !disabled) {