@jsenv/navi 0.27.48 → 0.27.49
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/jsenv_navi.js +8 -8
- package/dist/jsenv_navi.js.map +8 -8
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -21294,7 +21294,7 @@ const isAncestorOpen = (ancestor) => {
|
|
|
21294
21294
|
* the browser's built-in scroll-into-view that accompanies focus.
|
|
21295
21295
|
* @param {boolean} [options.focusVisible]
|
|
21296
21296
|
* Passed as `focusVisible` to `element.focus()`.
|
|
21297
|
-
* @param {boolean} [options.
|
|
21297
|
+
* @param {boolean} [options.autoFocusSelect]
|
|
21298
21298
|
* When true, also calls `element.select()` after focusing (useful for text inputs).
|
|
21299
21299
|
* @returns {Function} triggerAutofocus — can be called manually with a synthetic
|
|
21300
21300
|
* event to re-run the focus logic outside of the layout-effect lifecycle.
|
|
@@ -21407,7 +21407,7 @@ const useAutoFocus = (
|
|
|
21407
21407
|
? ""
|
|
21408
21408
|
: autoFocus
|
|
21409
21409
|
: undefined,
|
|
21410
|
-
"navi-autofocus-select":
|
|
21410
|
+
"navi-autofocus-select": autoSelect ? "" : undefined,
|
|
21411
21411
|
};
|
|
21412
21412
|
};
|
|
21413
21413
|
|
|
@@ -21924,7 +21924,7 @@ const CONTROL_PROP_SET = new Set([
|
|
|
21924
21924
|
|
|
21925
21925
|
"autoFocus",
|
|
21926
21926
|
"autoFocusVisible",
|
|
21927
|
-
"
|
|
21927
|
+
"autoFocusSelect",
|
|
21928
21928
|
|
|
21929
21929
|
"onMouseDown",
|
|
21930
21930
|
"onClick",
|
|
@@ -24588,11 +24588,11 @@ const useInteractiveProps = (props, {
|
|
|
24588
24588
|
const {
|
|
24589
24589
|
autoFocus,
|
|
24590
24590
|
autoFocusVisible,
|
|
24591
|
-
|
|
24591
|
+
autoFocusSelect
|
|
24592
24592
|
} = props;
|
|
24593
24593
|
const autoFocusProps = useAutoFocus(ref, autoFocus, {
|
|
24594
24594
|
focusVisible: autoFocusVisible,
|
|
24595
|
-
autoSelect
|
|
24595
|
+
autoSelect: autoFocusSelect
|
|
24596
24596
|
});
|
|
24597
24597
|
Object.assign(controlHostProps, autoFocusProps);
|
|
24598
24598
|
}
|
|
@@ -33885,7 +33885,7 @@ const Editable = props => {
|
|
|
33885
33885
|
maxLength,
|
|
33886
33886
|
pattern,
|
|
33887
33887
|
wrapperProps,
|
|
33888
|
-
|
|
33888
|
+
autoFocusSelect = true,
|
|
33889
33889
|
width,
|
|
33890
33890
|
height,
|
|
33891
33891
|
...rest
|
|
@@ -33930,7 +33930,7 @@ const Editable = props => {
|
|
|
33930
33930
|
valueSignal: valueSignal,
|
|
33931
33931
|
autoFocus: editing,
|
|
33932
33932
|
autoFocusVisible: true,
|
|
33933
|
-
|
|
33933
|
+
autoFocusSelect: autoFocusSelect,
|
|
33934
33934
|
cancelOnEscape: true,
|
|
33935
33935
|
cancelOnBlurInvalid: true,
|
|
33936
33936
|
constraints: constraints,
|
|
@@ -35123,7 +35123,7 @@ const InputDurationPart = ({
|
|
|
35123
35123
|
// When autofocused this field should be selected
|
|
35124
35124
|
// this help to modify the value on mobile
|
|
35125
35125
|
, {
|
|
35126
|
-
|
|
35126
|
+
autoFocusSelect: true,
|
|
35127
35127
|
type: "navi_number",
|
|
35128
35128
|
"navi-input-type": unit,
|
|
35129
35129
|
name: unit,
|