@jsenv/navi 0.13.2 → 0.13.3
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 +17 -19
- package/dist/jsenv_navi.js.map +6 -6
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -4561,19 +4561,19 @@ const DIMENSION_PROPS = {
|
|
|
4561
4561
|
return { minHeight: "100%", height: "auto" }; // Take full height outside flex
|
|
4562
4562
|
},
|
|
4563
4563
|
shrinkX: (value, { parentBoxFlow }) => {
|
|
4564
|
-
if (!value) {
|
|
4565
|
-
return null;
|
|
4566
|
-
}
|
|
4567
4564
|
if (parentBoxFlow === "row" || parentBoxFlow === "inline-row") {
|
|
4565
|
+
if (!value) {
|
|
4566
|
+
return { flexShrink: 0 };
|
|
4567
|
+
}
|
|
4568
4568
|
return { flexShrink: 1 };
|
|
4569
4569
|
}
|
|
4570
4570
|
return { maxWidth: "100%" };
|
|
4571
4571
|
},
|
|
4572
4572
|
shrinkY: (value, { parentBoxFlow }) => {
|
|
4573
|
-
if (!value) {
|
|
4574
|
-
return null;
|
|
4575
|
-
}
|
|
4576
4573
|
if (parentBoxFlow === "column" || parentBoxFlow === "inline-column") {
|
|
4574
|
+
if (!value) {
|
|
4575
|
+
return { flexShrink: 0 };
|
|
4576
|
+
}
|
|
4577
4577
|
return { flexShrink: 1 };
|
|
4578
4578
|
}
|
|
4579
4579
|
return { maxHeight: "100%" };
|
|
@@ -10726,6 +10726,7 @@ import.meta.css = /* css */ `
|
|
|
10726
10726
|
--callout-background-color: white;
|
|
10727
10727
|
--callout-icon-color: black;
|
|
10728
10728
|
--callout-padding: 8px;
|
|
10729
|
+
--callout-z-index: 1000;
|
|
10729
10730
|
}
|
|
10730
10731
|
}
|
|
10731
10732
|
|
|
@@ -10737,7 +10738,7 @@ import.meta.css = /* css */ `
|
|
|
10737
10738
|
position: absolute;
|
|
10738
10739
|
top: 0;
|
|
10739
10740
|
left: 0;
|
|
10740
|
-
z-index:
|
|
10741
|
+
z-index: var(--callout-z-index);
|
|
10741
10742
|
display: block;
|
|
10742
10743
|
height: auto;
|
|
10743
10744
|
opacity: 0;
|
|
@@ -11940,31 +11941,28 @@ const READONLY_CONSTRAINT = {
|
|
|
11940
11941
|
if (field.type === "hidden") {
|
|
11941
11942
|
return null;
|
|
11942
11943
|
}
|
|
11944
|
+
const isButton = field.tagName === "BUTTON";
|
|
11945
|
+
const isBusy = field.getAttribute("aria-busy") === "true";
|
|
11943
11946
|
const readonlySilent = field.hasAttribute("data-readonly-silent");
|
|
11947
|
+
const messageAttribute = field.getAttribute("data-readonly-message");
|
|
11944
11948
|
if (readonlySilent) {
|
|
11945
11949
|
return { silent: true };
|
|
11946
11950
|
}
|
|
11947
|
-
const messageAttribute = field.getAttribute("data-readonly-message");
|
|
11948
|
-
if (messageAttribute) {
|
|
11949
|
-
return {
|
|
11950
|
-
message: messageAttribute,
|
|
11951
|
-
status: "info",
|
|
11952
|
-
};
|
|
11953
|
-
}
|
|
11954
|
-
const isBusy = field.getAttribute("aria-busy") === "true";
|
|
11955
11951
|
if (isBusy) {
|
|
11956
11952
|
return {
|
|
11957
11953
|
target: field,
|
|
11958
|
-
message:
|
|
11954
|
+
message:
|
|
11955
|
+
messageAttribute || `Cette action est en cours. Veuillez patienter.`,
|
|
11959
11956
|
status: "info",
|
|
11960
11957
|
};
|
|
11961
11958
|
}
|
|
11962
11959
|
return {
|
|
11963
11960
|
target: field,
|
|
11964
11961
|
message:
|
|
11965
|
-
|
|
11962
|
+
messageAttribute ||
|
|
11963
|
+
(isButton
|
|
11966
11964
|
? `Cet action n'est pas disponible pour l'instant.`
|
|
11967
|
-
: `Cet élément est en lecture seule et ne peut pas être modifi
|
|
11965
|
+
: `Cet élément est en lecture seule et ne peut pas être modifié.`),
|
|
11968
11966
|
status: "info",
|
|
11969
11967
|
};
|
|
11970
11968
|
},
|
|
@@ -15389,12 +15387,12 @@ const ButtonBasic = props => {
|
|
|
15389
15387
|
};
|
|
15390
15388
|
const renderButtonContentMemoized = useCallback(renderButtonContent, [children]);
|
|
15391
15389
|
return jsxs(Box, {
|
|
15390
|
+
"data-readonly-silent": innerLoading ? "" : undefined,
|
|
15392
15391
|
...rest,
|
|
15393
15392
|
as: "button",
|
|
15394
15393
|
ref: ref,
|
|
15395
15394
|
"data-icon": icon ? "" : undefined,
|
|
15396
15395
|
"data-discrete": discrete ? "" : undefined,
|
|
15397
|
-
"data-readonly-silent": innerLoading ? "" : undefined,
|
|
15398
15396
|
"data-callout-arrow-x": "center",
|
|
15399
15397
|
"aria-busy": innerLoading
|
|
15400
15398
|
// style management
|