sevago-library 1.3.7 → 1.3.9
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +5 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -78301,7 +78301,6 @@ const SystemMonitorSidebarPart = ({
|
|
|
78301
78301
|
)
|
|
78302
78302
|
] });
|
|
78303
78303
|
};
|
|
78304
|
-
const normalizeSearchText = (value) => value.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase().trim();
|
|
78305
78304
|
const SystemMonitorScreen = ({
|
|
78306
78305
|
blacklist,
|
|
78307
78306
|
onClickApp,
|
|
@@ -78311,8 +78310,6 @@ const SystemMonitorScreen = ({
|
|
|
78311
78310
|
}) => {
|
|
78312
78311
|
const theme = useTheme();
|
|
78313
78312
|
const [tab, setTab] = React.useState(AppGroup.ALL);
|
|
78314
|
-
const currentSearchText = searchText;
|
|
78315
|
-
const normalizedSearchText = normalizeSearchText(currentSearchText);
|
|
78316
78313
|
const availableApps = React.useMemo(
|
|
78317
78314
|
() => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
|
|
78318
78315
|
const appInfo = app;
|
|
@@ -78335,13 +78332,13 @@ const SystemMonitorScreen = ({
|
|
|
78335
78332
|
if (tab !== AppGroup.ALL && app.group !== tab) {
|
|
78336
78333
|
return false;
|
|
78337
78334
|
}
|
|
78338
|
-
if (!
|
|
78335
|
+
if (!searchText) {
|
|
78339
78336
|
return true;
|
|
78340
78337
|
}
|
|
78341
|
-
const searchableText =
|
|
78342
|
-
return searchableText.includes(
|
|
78338
|
+
const searchableText = `${app.title ?? ""} ${app.content}`.toLocaleLowerCase();
|
|
78339
|
+
return searchableText.includes(searchText.toLocaleLowerCase());
|
|
78343
78340
|
}),
|
|
78344
|
-
[availableApps,
|
|
78341
|
+
[availableApps, searchText, tab]
|
|
78345
78342
|
);
|
|
78346
78343
|
const availableGroups = React.useMemo(
|
|
78347
78344
|
() => Object.values(AppGroup).filter(
|
|
@@ -78411,7 +78408,7 @@ const SystemMonitorScreen = ({
|
|
|
78411
78408
|
onClickApp,
|
|
78412
78409
|
isShowAppHidden: true
|
|
78413
78410
|
},
|
|
78414
|
-
`${tab}-${
|
|
78411
|
+
`${tab}-${searchText}`
|
|
78415
78412
|
) : /* @__PURE__ */ jsxRuntime.jsx(EmptyComponent, { content: "Không tìm thấy ứng dụng phù hợp" }) })
|
|
78416
78413
|
]
|
|
78417
78414
|
}
|