@jsenv/navi 0.25.6 → 0.25.7
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 +11 -5
- package/dist/jsenv_navi.js.map +4 -5
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -27043,8 +27043,8 @@ const ListUI = props => {
|
|
|
27043
27043
|
renderBudget = RENDER_BUDGET_DEFAULT,
|
|
27044
27044
|
listId,
|
|
27045
27045
|
listRole,
|
|
27046
|
-
fallback
|
|
27047
|
-
noMatchFallback
|
|
27046
|
+
fallback,
|
|
27047
|
+
noMatchFallback,
|
|
27048
27048
|
separator,
|
|
27049
27049
|
children,
|
|
27050
27050
|
popover,
|
|
@@ -27578,11 +27578,11 @@ const UnorderedList = ({
|
|
|
27578
27578
|
children: [jsx(TopFiller, {
|
|
27579
27579
|
virtualItemHeightSignal: virtualItemHeightSignal,
|
|
27580
27580
|
renderWindowStart: renderWindow.start
|
|
27581
|
-
}),
|
|
27581
|
+
}), jsx(NoMatchFallback, {
|
|
27582
27582
|
noMatchFallback: noMatchFallback,
|
|
27583
27583
|
tracker: tracker,
|
|
27584
27584
|
searchText: searchText
|
|
27585
|
-
}),
|
|
27585
|
+
}), jsx(Fallback, {
|
|
27586
27586
|
fallback: fallback,
|
|
27587
27587
|
tracker: tracker
|
|
27588
27588
|
}), jsx(RenderWindowContext.Provider, {
|
|
@@ -27614,12 +27614,15 @@ const NoMatchFallback = ({
|
|
|
27614
27614
|
const allHidden = itemCount > 0 && visibleItemCount === 0;
|
|
27615
27615
|
const noneMatch = searchText && visibleItemCount > 0 && matchCount === 0;
|
|
27616
27616
|
const showMatchFallback = allHidden || noneMatch;
|
|
27617
|
+
if (noMatchFallback === undefined) {
|
|
27618
|
+
noMatchFallback = allHidden ? "Aucun élément ne correspond à cette recherche." : "Aucun élément ne correspond à cette recherche. Le reste est affiché ci-dessous";
|
|
27619
|
+
}
|
|
27617
27620
|
return jsx(ListItem, {
|
|
27618
27621
|
role: "presentation",
|
|
27619
27622
|
className: "navi_list_item navi_list_no_match_fallback",
|
|
27620
27623
|
hidden: !showMatchFallback,
|
|
27621
27624
|
"navi-default": typeof noMatchFallback === "string" ? "" : undefined,
|
|
27622
|
-
children:
|
|
27625
|
+
children: noMatchFallback
|
|
27623
27626
|
});
|
|
27624
27627
|
};
|
|
27625
27628
|
const Fallback = ({
|
|
@@ -27628,6 +27631,9 @@ const Fallback = ({
|
|
|
27628
27631
|
}) => {
|
|
27629
27632
|
const itemCount = tracker.countSignal.value;
|
|
27630
27633
|
const showFallback = itemCount === 0;
|
|
27634
|
+
if (fallback === undefined) {
|
|
27635
|
+
fallback = "Aucun élément dans cette liste.";
|
|
27636
|
+
}
|
|
27631
27637
|
return jsx(ListItem, {
|
|
27632
27638
|
role: "presentation",
|
|
27633
27639
|
className: "navi_list_item navi_list_fallback",
|