@jsenv/navi 0.29.471 → 0.29.472
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/dev/jsenv_navi.js +19 -10
- package/dist/dev/jsenv_navi.js.map +6 -6
- package/dist/jsenv_navi.js +10 -8
- package/dist/jsenv_navi.js.map +6 -6
- package/package.json +1 -1
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -52857,10 +52857,16 @@ const LinkWithRoute = ({
|
|
|
52857
52857
|
currentExcept,
|
|
52858
52858
|
currentAlso,
|
|
52859
52859
|
children,
|
|
52860
|
+
// Kept out of `rest`: spread after the route's url, an `href={undefined}`
|
|
52861
|
+
// riding along would erase it.
|
|
52862
|
+
href,
|
|
52860
52863
|
...rest
|
|
52861
52864
|
}) => {
|
|
52862
52865
|
{
|
|
52863
52866
|
assertRoute(route);
|
|
52867
|
+
if (href !== undefined) {
|
|
52868
|
+
console.warn(`A link with a "route" ignores its "href" (${href}): the route builds the address.`);
|
|
52869
|
+
}
|
|
52864
52870
|
}
|
|
52865
52871
|
const url = route.buildUrl(routeParams);
|
|
52866
52872
|
{
|
|
@@ -58039,15 +58045,21 @@ const ButtonRouteResolver = props => {
|
|
|
58039
58045
|
};
|
|
58040
58046
|
const ButtonWithRoute = props => {
|
|
58041
58047
|
const Next = useNextResolver();
|
|
58048
|
+
// `href` is kept out of `rest`: spread after the route's url, an
|
|
58049
|
+
// `href={undefined}` riding along would erase it.
|
|
58042
58050
|
const {
|
|
58043
58051
|
route,
|
|
58044
58052
|
routeParams,
|
|
58045
58053
|
children,
|
|
58046
58054
|
pseudoState,
|
|
58055
|
+
href,
|
|
58047
58056
|
...rest
|
|
58048
58057
|
} = props;
|
|
58049
58058
|
{
|
|
58050
58059
|
assertRoute(route);
|
|
58060
|
+
if (href !== undefined) {
|
|
58061
|
+
console.warn(`A button with a "route" ignores its "href" (${href}): the route builds the address.`);
|
|
58062
|
+
}
|
|
58051
58063
|
}
|
|
58052
58064
|
const url = route.buildUrl(routeParams);
|
|
58053
58065
|
const linkMatching = useRouteCurrent(route, routeParams);
|
|
@@ -74434,8 +74446,9 @@ const PickerCustom = props => {
|
|
|
74434
74446
|
props.id = props.id || controlId || idDefault;
|
|
74435
74447
|
// Given no value, the picker holds what the control in its popup holds (see
|
|
74436
74448
|
// the `mount` decision below) — and a group around it collects that from the
|
|
74437
|
-
// moment both exist.
|
|
74438
|
-
|
|
74449
|
+
// moment both exist. A picker that picks nothing holds none: its popup's
|
|
74450
|
+
// controls are never adopted (see canRegisterAsFacadeChild).
|
|
74451
|
+
const valueInPopup = !props.picksNothing && !isControlValueGivenByProps(props);
|
|
74439
74452
|
const parentController = useContext(ParentUIStateControllerContext);
|
|
74440
74453
|
const answersToGroup = Boolean(parentController) && !props.standalone;
|
|
74441
74454
|
// Same narrow-container/maxWidth-compact heuristic Popup itself uses (see
|
|
@@ -75631,12 +75644,7 @@ const PickerConfirmResolver = props => {
|
|
|
75631
75644
|
mode: mode,
|
|
75632
75645
|
focusCapture: focusCapture,
|
|
75633
75646
|
openWhileReadOnly: openWhileReadOnly,
|
|
75634
|
-
onConfirm: onConfirm
|
|
75635
|
-
// A question holds no value to read before it is asked: the popup is
|
|
75636
|
-
// built on the first open, like that of a picker told its value (see
|
|
75637
|
-
// the `mount` resolution in picker_custom.jsx).
|
|
75638
|
-
,
|
|
75639
|
-
mount: MOUNT_DEFAULT,
|
|
75647
|
+
onConfirm: onConfirm,
|
|
75640
75648
|
message: undefined,
|
|
75641
75649
|
confirmLabel: undefined,
|
|
75642
75650
|
cancelLabel: undefined,
|
|
@@ -87594,8 +87602,9 @@ const PickerFirstResolver = props => {
|
|
|
87594
87602
|
* it (no `ui`, a `Picker.UI.*`, a component `ui`), when there is a clear
|
|
87595
87603
|
* cross, or when a form or group around the picker collects it; when an
|
|
87596
87604
|
* element `ui` calls `usePickerState()`. Read by nothing, it waits for the
|
|
87597
|
-
* first open, like a picker told a value. A `
|
|
87598
|
-
* builds them early: its popup
|
|
87605
|
+
* first open, like a picker told a value. A `picksNothing` picker (and so
|
|
87606
|
+
* `type="confirm"`) never builds them early: its popup holds no value, there
|
|
87607
|
+
* is nothing to read.
|
|
87599
87608
|
*/
|
|
87600
87609
|
// Every picker type is resolved into one of these before it gets here (see
|
|
87601
87610
|
// PickerTypeResolver and resolveInputProps): a native input type, or navi_js
|