@propriety/court-calendar 1.0.123 → 1.0.124
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/index.mjs +1 -1
- package/package.json +1 -1
- package/src/_components/LoadingBar.tsx +2 -2
package/dist/index.mjs
CHANGED
|
@@ -21645,7 +21645,7 @@ function H2({
|
|
|
21645
21645
|
}, 500)), () => {
|
|
21646
21646
|
y.current && clearTimeout(y.current);
|
|
21647
21647
|
}), [d]), !l) return null;
|
|
21648
|
-
const H = t || r === 0 || f || u ? null : Math.min(n / r, 1), z = t ? "Loading court dates…" : f ? "Searching…" : u ? "Filtering…" : H !== null ? `Loading cases — ${n} / ${r}` : "Loading…";
|
|
21648
|
+
const H = t || r === 0 || f || u && !e ? null : Math.min(n / r, 1), z = t ? "Loading court dates…" : f ? "Searching…" : u && !e ? "Filtering…" : H !== null ? `Loading cases — ${n} / ${r}` : "Loading…";
|
|
21649
21649
|
return /* @__PURE__ */ V(kt, { children: [
|
|
21650
21650
|
/* @__PURE__ */ o("style", { children: p2 }),
|
|
21651
21651
|
/* @__PURE__ */ o(
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export default function LoadingBar({
|
|
|
49
49
|
if (!visible) return null;
|
|
50
50
|
|
|
51
51
|
const progress =
|
|
52
|
-
isFetchingDates || totalCount === 0 || isSearching || isFiltering
|
|
52
|
+
isFetchingDates || totalCount === 0 || isSearching || (isFiltering && !isFetchingCases)
|
|
53
53
|
? null
|
|
54
54
|
: Math.min(loadedCount / totalCount, 1);
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ export default function LoadingBar({
|
|
|
57
57
|
? "Loading court dates…"
|
|
58
58
|
: isSearching
|
|
59
59
|
? "Searching…"
|
|
60
|
-
: isFiltering
|
|
60
|
+
: isFiltering && !isFetchingCases
|
|
61
61
|
? "Filtering…"
|
|
62
62
|
: progress !== null
|
|
63
63
|
? `Loading cases — ${loadedCount} / ${totalCount}`
|