aq-fe-framework 0.1.719 → 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,18 +8986,29 @@ 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({ pageNumber: paggingState[0].pageIndex + 1, pageSize: paggingState[0].pageSize }),
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
  }
8994
9001
  });
8995
9002
  const columns = useMemo7(() => [
9003
+ {
9004
+ header: "T\xE0i kho\u1EA3n",
9005
+ accessorKey: "code",
9006
+ size: 100
9007
+ },
8996
9008
  {
8997
9009
  header: "H\u1ECD v\xE0 t\xEAn",
8998
9010
  accessorKey: "userFullName",
8999
- size: 40
9011
+ size: 250
9000
9012
  },
9001
9013
  {
9002
9014
  header: "Email",
@@ -9011,6 +9023,7 @@ function Account_Table(_a) {
9011
9023
  return /* @__PURE__ */ jsx81(
9012
9024
  MyDataTable,
9013
9025
  __spreadValues({
9026
+ enableRowNumbers: false,
9014
9027
  columns,
9015
9028
  pagination: paggingState[0],
9016
9029
  onPaginationChange: paggingState[1],
@@ -9707,7 +9720,7 @@ function Adapter_UserSyncFormEdusoftnet() {
9707
9720
 
9708
9721
  // src/modules-features/admin/core/accountManagement/F_accountManagement_Read.tsx
9709
9722
  import { Badge as Badge5, Group as Group24, TextInput as TextInput4 } from "@mantine/core";
9710
- import { useDebouncedValue } from "@mantine/hooks";
9723
+ import { useDebouncedValue as useDebouncedValue2 } from "@mantine/hooks";
9711
9724
  import { IconSearch as IconSearch3 } from "@tabler/icons-react";
9712
9725
  import { useEffect as useEffect20, useMemo as useMemo9, useState as useState16 } from "react";
9713
9726
 
@@ -9741,9 +9754,9 @@ function F_accountManagement_Read() {
9741
9754
  var _a;
9742
9755
  const paginationState = useState16({ pageIndex: 0, pageSize: 10 });
9743
9756
  const [searchInput, setSearchInput] = useState16("");
9744
- const [debouncedSearch] = useDebouncedValue(searchInput, 500);
9745
- const store = useS_accountManagement();
9757
+ const [debouncedSearch] = useDebouncedValue2(searchInput, 500);
9746
9758
  const [globalFilter, setGlobalFilter] = useState16("");
9759
+ const store = useS_accountManagement();
9747
9760
  const AllUserQuery = useMyReactQuery({
9748
9761
  queryKey: ["AllUserQuery", paginationState[0].pageIndex + 1, paginationState[0].pageSize, globalFilter],
9749
9762
  axiosFn: () => {
@@ -16147,16 +16160,15 @@ function Feat_Authenticate_SSOHandler({
16147
16160
  async function loginSSO(studentCode2, token2) {
16148
16161
  var _a, _b, _c;
16149
16162
  try {
16150
- const body = new URLSearchParams();
16151
- body.set("Authorization", `Bearer ${token2}`);
16152
16163
  const res = await fetch(
16153
16164
  `${config3.data}/account/SignInWithToken?code=${studentCode2}`,
16154
16165
  {
16155
16166
  method: "POST",
16156
16167
  headers: {
16157
- "Content-Type": "application/x-www-form-urlencoded"
16168
+ "Content-Type": "application/x-www-form-urlencoded",
16169
+ "Authorization": `Bearer ${token2}`
16158
16170
  },
16159
- body: body.toString()
16171
+ body: new URLSearchParams().toString()
16160
16172
  }
16161
16173
  );
16162
16174
  const data2 = await res.json();
@@ -70,7 +70,7 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-3P5OYPWT.mjs";
73
+ } from "../chunk-KGHMMBOY.mjs";
74
74
  import "../chunk-SUH3FFFV.mjs";
75
75
  import "../chunk-2B2FKBKX.mjs";
76
76
  import "../chunk-7PUDC2WF.mjs";
@@ -25,7 +25,7 @@ import {
25
25
  MyStatsCard,
26
26
  MyTextInput2 as MyTextInput,
27
27
  MyWeeklySessionSchedulerPicker
28
- } from "../chunk-3P5OYPWT.mjs";
28
+ } from "../chunk-KGHMMBOY.mjs";
29
29
  import "../chunk-SUH3FFFV.mjs";
30
30
  import "../chunk-2B2FKBKX.mjs";
31
31
  import "../chunk-7PUDC2WF.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-3P5OYPWT.mjs";
3
+ } from "../chunk-KGHMMBOY.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-2B2FKBKX.mjs";
6
6
  import "../chunk-7PUDC2WF.mjs";
@@ -112,7 +112,7 @@ import {
112
112
  MailTemplateDeleteButton,
113
113
  useS_authenticate,
114
114
  useS_moduleConfig
115
- } from "../chunk-3P5OYPWT.mjs";
115
+ } from "../chunk-KGHMMBOY.mjs";
116
116
  import "../chunk-SUH3FFFV.mjs";
117
117
  import "../chunk-2B2FKBKX.mjs";
118
118
  import "../chunk-7PUDC2WF.mjs";
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.719",
53
+ "version": "0.1.721",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"