indicator-ui 1.1.92 → 1.1.93
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.cjs +1 -1
- package/dist/index.js +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26128,22 +26128,22 @@ function BK(r) {
|
|
|
26128
26128
|
}
|
|
26129
26129
|
const VK = 1e3;
|
|
26130
26130
|
function NK(r) {
|
|
26131
|
-
const { search: e, setOptions: t, isOpenRef: n, curOptions: i } = r, [o, s] = Me(""), c = T((
|
|
26132
|
-
n.current && s(
|
|
26133
|
-
}, [s]),
|
|
26134
|
-
if (!e) return;
|
|
26135
|
-
const
|
|
26136
|
-
|
|
26137
|
-
}, [t, e, o, i]), [
|
|
26131
|
+
const { search: e, setOptions: t, isOpenRef: n, curOptions: i } = r, [o, s] = Me(""), [c, u] = Me(!0), d = T((y) => {
|
|
26132
|
+
n.current && s(y || void 0);
|
|
26133
|
+
}, [s]), f = T(async () => {
|
|
26134
|
+
if (!e || !c) return;
|
|
26135
|
+
const y = await e({ search: o || "", curOptions: i });
|
|
26136
|
+
y != null ? t(y) : u(!1);
|
|
26137
|
+
}, [t, u, c, e, o, i]), [h, p] = $8(f), _ = Io(h, VK);
|
|
26138
26138
|
pe(() => {
|
|
26139
|
-
|
|
26139
|
+
_();
|
|
26140
26140
|
}, [o]);
|
|
26141
|
-
const
|
|
26141
|
+
const g = U(() => e !== void 0, [e]);
|
|
26142
26142
|
return {
|
|
26143
|
-
onChangeSearchString:
|
|
26144
|
-
canSearch:
|
|
26143
|
+
onChangeSearchString: d,
|
|
26144
|
+
canSearch: g,
|
|
26145
26145
|
searchString: o,
|
|
26146
|
-
isLoadingSearch:
|
|
26146
|
+
isLoadingSearch: p
|
|
26147
26147
|
};
|
|
26148
26148
|
}
|
|
26149
26149
|
const WK = 500;
|