Skip to content

Commit 3867b6b

Browse files
committed
work
1 parent b2cea69 commit 3867b6b

8 files changed

Lines changed: 25 additions & 25 deletions

File tree

packages/frontend/navi/dist/jsenv_navi.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21294,7 +21294,7 @@ const isAncestorOpen = (ancestor) => {
2129421294
* the browser's built-in scroll-into-view that accompanies focus.
2129521295
* @param {boolean} [options.focusVisible]
2129621296
* Passed as `focusVisible` to `element.focus()`.
21297-
* @param {boolean} [options.autoSelect]
21297+
* @param {boolean} [options.autoFocusSelect]
2129821298
* When true, also calls `element.select()` after focusing (useful for text inputs).
2129921299
* @returns {Function} triggerAutofocus — can be called manually with a synthetic
2130021300
* event to re-run the focus logic outside of the layout-effect lifecycle.
@@ -21407,7 +21407,7 @@ const useAutoFocus = (
2140721407
? ""
2140821408
: autoFocus
2140921409
: undefined,
21410-
"navi-autofocus-select": autoFocus && autoSelect ? "" : undefined,
21410+
"navi-autofocus-select": autoSelect ? "" : undefined,
2141121411
};
2141221412
};
2141321413

@@ -21924,7 +21924,7 @@ const CONTROL_PROP_SET = new Set([
2192421924

2192521925
"autoFocus",
2192621926
"autoFocusVisible",
21927-
"autoSelect",
21927+
"autoFocusSelect",
2192821928

2192921929
"onMouseDown",
2193021930
"onClick",
@@ -24588,11 +24588,11 @@ const useInteractiveProps = (props, {
2458824588
const {
2458924589
autoFocus,
2459024590
autoFocusVisible,
24591-
autoSelect
24591+
autoFocusSelect
2459224592
} = props;
2459324593
const autoFocusProps = useAutoFocus(ref, autoFocus, {
2459424594
focusVisible: autoFocusVisible,
24595-
autoSelect
24595+
autoSelect: autoFocusSelect
2459624596
});
2459724597
Object.assign(controlHostProps, autoFocusProps);
2459824598
}
@@ -33885,7 +33885,7 @@ const Editable = props => {
3388533885
maxLength,
3388633886
pattern,
3388733887
wrapperProps,
33888-
autoSelect = true,
33888+
autoFocusSelect = true,
3388933889
width,
3389033890
height,
3389133891
...rest
@@ -33930,7 +33930,7 @@ const Editable = props => {
3393033930
valueSignal: valueSignal,
3393133931
autoFocus: editing,
3393233932
autoFocusVisible: true,
33933-
autoSelect: autoSelect,
33933+
autoFocusSelect: autoFocusSelect,
3393433934
cancelOnEscape: true,
3393533935
cancelOnBlurInvalid: true,
3393633936
constraints: constraints,
@@ -35123,7 +35123,7 @@ const InputDurationPart = ({
3512335123
// When autofocused this field should be selected
3512435124
// this help to modify the value on mobile
3512535125
, {
35126-
autoSelect: true,
35126+
autoFocusSelect: true,
3512735127
type: "navi_number",
3512835128
"navi-input-type": unit,
3512935129
name: unit,

packages/frontend/navi/dist/jsenv_navi.js.map

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/frontend/navi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsenv/navi",
3-
"version": "0.27.48",
3+
"version": "0.27.49",
44
"type": "module",
55
"description": "Library of components including navigation to create frontend applications",
66
"repository": {

packages/frontend/navi/src/control/control_context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const CONTROL_PROP_SET = new Set([
6363

6464
"autoFocus",
6565
"autoFocusVisible",
66-
"autoSelect",
66+
"autoFocusSelect",
6767

6868
"onMouseDown",
6969
"onClick",

packages/frontend/navi/src/control/control_hooks.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,10 +1097,10 @@ const useInteractiveProps = (
10971097
const debugFocus = useDebugFocus();
10981098

10991099
autofocus: {
1100-
const { autoFocus, autoFocusVisible, autoSelect } = props;
1100+
const { autoFocus, autoFocusVisible, autoFocusSelect } = props;
11011101
const autoFocusProps = useAutoFocus(ref, autoFocus, {
11021102
focusVisible: autoFocusVisible,
1103-
autoSelect,
1103+
autoSelect: autoFocusSelect,
11041104
});
11051105
Object.assign(controlHostProps, autoFocusProps);
11061106
}

packages/frontend/navi/src/control/edition/editable.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const Editable = (props) => {
8080
maxLength,
8181
pattern,
8282
wrapperProps,
83-
autoSelect = true,
83+
autoFocusSelect = true,
8484
width,
8585
height,
8686
...rest
@@ -134,7 +134,7 @@ export const Editable = (props) => {
134134
valueSignal={valueSignal}
135135
autoFocus={editing}
136136
autoFocusVisible
137-
autoSelect={autoSelect}
137+
autoFocusSelect={autoFocusSelect}
138138
cancelOnEscape
139139
cancelOnBlurInvalid
140140
constraints={constraints}

packages/frontend/navi/src/control/input/input_duration.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ const InputDurationPart = ({ unit, label, separator, ...props }) => {
619619
<Input
620620
// When autofocused this field should be selected
621621
// this help to modify the value on mobile
622-
autoSelect
622+
autoFocusSelect
623623
type="navi_number"
624624
navi-input-type={unit}
625625
name={unit}

packages/frontend/navi/src/utils/focus/use_auto_focus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { useDisplayedLayoutEffect } from "../use_displayed_layout_effect.js";
3939
* the browser's built-in scroll-into-view that accompanies focus.
4040
* @param {boolean} [options.focusVisible]
4141
* Passed as `focusVisible` to `element.focus()`.
42-
* @param {boolean} [options.autoSelect]
42+
* @param {boolean} [options.autoFocusSelect]
4343
* When true, also calls `element.select()` after focusing (useful for text inputs).
4444
* @returns {Function} triggerAutofocus — can be called manually with a synthetic
4545
* event to re-run the focus logic outside of the layout-effect lifecycle.
@@ -152,7 +152,7 @@ export const useAutoFocus = (
152152
? ""
153153
: autoFocus
154154
: undefined,
155-
"navi-autofocus-select": autoFocus && autoSelect ? "" : undefined,
155+
"navi-autofocus-select": autoSelect ? "" : undefined,
156156
};
157157
};
158158

0 commit comments

Comments
 (0)