aq-fe-framework 0.1.720 → 0.1.721
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.
|
@@ -8976,6 +8976,7 @@ var service_account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER3
|
|
|
8976
8976
|
});
|
|
8977
8977
|
|
|
8978
8978
|
// src/module/Account/adapter/Adapter_AccountTable.tsx
|
|
8979
|
+
import { useDebouncedValue } from "@mantine/hooks";
|
|
8979
8980
|
import { useEffect as useEffect15, useMemo as useMemo7, useState as useState11 } from "react";
|
|
8980
8981
|
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
8981
8982
|
function Account_Table(_a) {
|
|
@@ -8985,9 +8986,15 @@ function Account_Table(_a) {
|
|
|
8985
8986
|
pageSize: 50,
|
|
8986
8987
|
pageIndex: 0
|
|
8987
8988
|
});
|
|
8989
|
+
const [searchInput, setSearchInput] = useState11("");
|
|
8990
|
+
const [debouncedSearch] = useDebouncedValue(searchInput, 500);
|
|
8991
|
+
const [globalFilter, setGlobalFilter] = useState11("");
|
|
8988
8992
|
const query = useMyReactQuery({
|
|
8989
|
-
queryKey: ["accounts", paggingState[0]],
|
|
8990
|
-
axiosFn: () => service_account.getAdminAccount({
|
|
8993
|
+
queryKey: ["accounts", paggingState[0], globalFilter],
|
|
8994
|
+
axiosFn: () => service_account.getAdminAccount({
|
|
8995
|
+
pageNumber: paggingState[0].pageIndex + 1,
|
|
8996
|
+
pageSize: paggingState[0].pageSize
|
|
8997
|
+
}),
|
|
8991
8998
|
options: {
|
|
8992
8999
|
refetchOnWindowFocus: false
|
|
8993
9000
|
}
|
|
@@ -9713,7 +9720,7 @@ function Adapter_UserSyncFormEdusoftnet() {
|
|
|
9713
9720
|
|
|
9714
9721
|
// src/modules-features/admin/core/accountManagement/F_accountManagement_Read.tsx
|
|
9715
9722
|
import { Badge as Badge5, Group as Group24, TextInput as TextInput4 } from "@mantine/core";
|
|
9716
|
-
import { useDebouncedValue } from "@mantine/hooks";
|
|
9723
|
+
import { useDebouncedValue as useDebouncedValue2 } from "@mantine/hooks";
|
|
9717
9724
|
import { IconSearch as IconSearch3 } from "@tabler/icons-react";
|
|
9718
9725
|
import { useEffect as useEffect20, useMemo as useMemo9, useState as useState16 } from "react";
|
|
9719
9726
|
|
|
@@ -9747,9 +9754,9 @@ function F_accountManagement_Read() {
|
|
|
9747
9754
|
var _a;
|
|
9748
9755
|
const paginationState = useState16({ pageIndex: 0, pageSize: 10 });
|
|
9749
9756
|
const [searchInput, setSearchInput] = useState16("");
|
|
9750
|
-
const [debouncedSearch] =
|
|
9751
|
-
const store = useS_accountManagement();
|
|
9757
|
+
const [debouncedSearch] = useDebouncedValue2(searchInput, 500);
|
|
9752
9758
|
const [globalFilter, setGlobalFilter] = useState16("");
|
|
9759
|
+
const store = useS_accountManagement();
|
|
9753
9760
|
const AllUserQuery = useMyReactQuery({
|
|
9754
9761
|
queryKey: ["AllUserQuery", paginationState[0].pageIndex + 1, paginationState[0].pageSize, globalFilter],
|
|
9755
9762
|
axiosFn: () => {
|
|
@@ -16153,16 +16160,15 @@ function Feat_Authenticate_SSOHandler({
|
|
|
16153
16160
|
async function loginSSO(studentCode2, token2) {
|
|
16154
16161
|
var _a, _b, _c;
|
|
16155
16162
|
try {
|
|
16156
|
-
const body = new URLSearchParams();
|
|
16157
|
-
body.set("Authorization", `Bearer ${token2}`);
|
|
16158
16163
|
const res = await fetch(
|
|
16159
16164
|
`${config3.data}/account/SignInWithToken?code=${studentCode2}`,
|
|
16160
16165
|
{
|
|
16161
16166
|
method: "POST",
|
|
16162
16167
|
headers: {
|
|
16163
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
16168
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
16169
|
+
"Authorization": `Bearer ${token2}`
|
|
16164
16170
|
},
|
|
16165
|
-
body:
|
|
16171
|
+
body: new URLSearchParams().toString()
|
|
16166
16172
|
}
|
|
16167
16173
|
);
|
|
16168
16174
|
const data2 = await res.json();
|
package/dist/core/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
MyStatsCard,
|
|
26
26
|
MyTextInput2 as MyTextInput,
|
|
27
27
|
MyWeeklySessionSchedulerPicker
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-KGHMMBOY.mjs";
|
|
29
29
|
import "../chunk-SUH3FFFV.mjs";
|
|
30
30
|
import "../chunk-2B2FKBKX.mjs";
|
|
31
31
|
import "../chunk-7PUDC2WF.mjs";
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
MailTemplateDeleteButton,
|
|
113
113
|
useS_authenticate,
|
|
114
114
|
useS_moduleConfig
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-KGHMMBOY.mjs";
|
|
116
116
|
import "../chunk-SUH3FFFV.mjs";
|
|
117
117
|
import "../chunk-2B2FKBKX.mjs";
|
|
118
118
|
import "../chunk-7PUDC2WF.mjs";
|