@jsenv/navi 0.13.1 → 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 -27
- package/dist/jsenv_navi.js.map +7 -7
- 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%" };
|
|
@@ -5523,14 +5523,6 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
|
|
|
5523
5523
|
[data-flow-inline][data-flow-column] {
|
|
5524
5524
|
display: inline-flex;
|
|
5525
5525
|
}
|
|
5526
|
-
|
|
5527
|
-
[data-flow-row] > [data-flow-row],
|
|
5528
|
-
[data-flow-column] > [data-flow-row],
|
|
5529
|
-
[data-flow-row] > [data-flow-column],
|
|
5530
|
-
[data-flow-column] > [data-flow-column] {
|
|
5531
|
-
flex-shrink: 0;
|
|
5532
|
-
flex-basis: fit-content;
|
|
5533
|
-
}
|
|
5534
5526
|
`;
|
|
5535
5527
|
const PSEUDO_CLASSES_DEFAULT = [];
|
|
5536
5528
|
const PSEUDO_ELEMENTS_DEFAULT = [];
|
|
@@ -10734,6 +10726,7 @@ import.meta.css = /* css */ `
|
|
|
10734
10726
|
--callout-background-color: white;
|
|
10735
10727
|
--callout-icon-color: black;
|
|
10736
10728
|
--callout-padding: 8px;
|
|
10729
|
+
--callout-z-index: 1000;
|
|
10737
10730
|
}
|
|
10738
10731
|
}
|
|
10739
10732
|
|
|
@@ -10745,7 +10738,7 @@ import.meta.css = /* css */ `
|
|
|
10745
10738
|
position: absolute;
|
|
10746
10739
|
top: 0;
|
|
10747
10740
|
left: 0;
|
|
10748
|
-
z-index:
|
|
10741
|
+
z-index: var(--callout-z-index);
|
|
10749
10742
|
display: block;
|
|
10750
10743
|
height: auto;
|
|
10751
10744
|
opacity: 0;
|
|
@@ -11948,31 +11941,28 @@ const READONLY_CONSTRAINT = {
|
|
|
11948
11941
|
if (field.type === "hidden") {
|
|
11949
11942
|
return null;
|
|
11950
11943
|
}
|
|
11944
|
+
const isButton = field.tagName === "BUTTON";
|
|
11945
|
+
const isBusy = field.getAttribute("aria-busy") === "true";
|
|
11951
11946
|
const readonlySilent = field.hasAttribute("data-readonly-silent");
|
|
11947
|
+
const messageAttribute = field.getAttribute("data-readonly-message");
|
|
11952
11948
|
if (readonlySilent) {
|
|
11953
11949
|
return { silent: true };
|
|
11954
11950
|
}
|
|
11955
|
-
const messageAttribute = field.getAttribute("data-readonly-message");
|
|
11956
|
-
if (messageAttribute) {
|
|
11957
|
-
return {
|
|
11958
|
-
message: messageAttribute,
|
|
11959
|
-
status: "info",
|
|
11960
|
-
};
|
|
11961
|
-
}
|
|
11962
|
-
const isBusy = field.getAttribute("aria-busy") === "true";
|
|
11963
11951
|
if (isBusy) {
|
|
11964
11952
|
return {
|
|
11965
11953
|
target: field,
|
|
11966
|
-
message:
|
|
11954
|
+
message:
|
|
11955
|
+
messageAttribute || `Cette action est en cours. Veuillez patienter.`,
|
|
11967
11956
|
status: "info",
|
|
11968
11957
|
};
|
|
11969
11958
|
}
|
|
11970
11959
|
return {
|
|
11971
11960
|
target: field,
|
|
11972
11961
|
message:
|
|
11973
|
-
|
|
11962
|
+
messageAttribute ||
|
|
11963
|
+
(isButton
|
|
11974
11964
|
? `Cet action n'est pas disponible pour l'instant.`
|
|
11975
|
-
: `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é.`),
|
|
11976
11966
|
status: "info",
|
|
11977
11967
|
};
|
|
11978
11968
|
},
|
|
@@ -15397,12 +15387,12 @@ const ButtonBasic = props => {
|
|
|
15397
15387
|
};
|
|
15398
15388
|
const renderButtonContentMemoized = useCallback(renderButtonContent, [children]);
|
|
15399
15389
|
return jsxs(Box, {
|
|
15390
|
+
"data-readonly-silent": innerLoading ? "" : undefined,
|
|
15400
15391
|
...rest,
|
|
15401
15392
|
as: "button",
|
|
15402
15393
|
ref: ref,
|
|
15403
15394
|
"data-icon": icon ? "" : undefined,
|
|
15404
15395
|
"data-discrete": discrete ? "" : undefined,
|
|
15405
|
-
"data-readonly-silent": innerLoading ? "" : undefined,
|
|
15406
15396
|
"data-callout-arrow-x": "center",
|
|
15407
15397
|
"aria-busy": innerLoading
|
|
15408
15398
|
// style management
|