aq-fe-framework 0.1.747 → 0.1.749

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.
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  const_object_colors,
28
28
  const_object_documentTypes
29
- } from "./chunk-IUTUR43V.mjs";
29
+ } from "./chunk-REMYBOSK.mjs";
30
30
  import {
31
31
  enum_daysOfWeek
32
32
  } from "./chunk-K6S7R6LU.mjs";
@@ -39,7 +39,7 @@ import {
39
39
  useMyReactMutation,
40
40
  useMyReactQuery,
41
41
  useQ_AQ_GetAQModule
42
- } from "./chunk-2JFYOBBR.mjs";
42
+ } from "./chunk-NSBIYOKX.mjs";
43
43
  import {
44
44
  utils_notification_show
45
45
  } from "./chunk-7ZCOFATU.mjs";
@@ -16187,12 +16187,12 @@ import Link5 from "next/link";
16187
16187
  import { useRouter as useRouter3 } from "next/navigation";
16188
16188
  import { useEffect as useEffect32 } from "react";
16189
16189
 
16190
- // src/modules-features/authenticate/useS_authenticate.ts
16190
+ // src/modules-features/authenticate/useStore_Authenticate.ts
16191
16191
  var useStore5 = createGenericStore({
16192
16192
  initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0, roleIds: [] },
16193
- storageKey: "useS_authenticate"
16193
+ storageKey: "useStore_Authenticate"
16194
16194
  });
16195
- function useS_authenticate() {
16195
+ function useStore_Authenticate() {
16196
16196
  const store = useStore5();
16197
16197
  return __spreadValues({}, store);
16198
16198
  }
@@ -16213,7 +16213,7 @@ function Feat_Authenticate_Login({
16213
16213
  loginButtonProps
16214
16214
  }) {
16215
16215
  const router = useRouter3();
16216
- const authenticate_store = useS_authenticate();
16216
+ const authenticateStore = useStore_Authenticate();
16217
16217
  const permissionStore = useStore_Permission();
16218
16218
  const mutation = useM_Account_Sigin();
16219
16219
  const form = useForm45({
@@ -16229,7 +16229,7 @@ function Feat_Authenticate_Login({
16229
16229
  useEffect32(() => {
16230
16230
  var _a;
16231
16231
  form.setValues({
16232
- username: ((_a = authenticate_store.state) == null ? void 0 : _a.username) || "",
16232
+ username: ((_a = authenticateStore.state) == null ? void 0 : _a.username) || "",
16233
16233
  password: ""
16234
16234
  });
16235
16235
  if (process.env.NEXT_PUBLIC_APP_PROTOTYPE != "1") return;
@@ -16237,7 +16237,7 @@ function Feat_Authenticate_Login({
16237
16237
  username: "admin",
16238
16238
  password: "123456"
16239
16239
  });
16240
- }, [authenticate_store.state.username]);
16240
+ }, [authenticateStore.state.username]);
16241
16241
  function handleSubmit(userName, passWord) {
16242
16242
  if (customSubmit) {
16243
16243
  return customSubmit(userName, passWord);
@@ -16256,16 +16256,16 @@ function Feat_Authenticate_Login({
16256
16256
  form.setFieldError("password", data2.message);
16257
16257
  return;
16258
16258
  }
16259
- authenticate_store.setProperty("code", (_a = data2.data) == null ? void 0 : _a.userName);
16260
- authenticate_store.setProperty("fullName", (_b = data2.data) == null ? void 0 : _b.userFullName);
16261
- authenticate_store.setProperty("userId", (_c = data2.data) == null ? void 0 : _c.userId);
16262
- authenticate_store.setProperty("token", (_d = data2.data) == null ? void 0 : _d.token);
16263
- authenticate_store.setProperty("roleIds", (_e = data2.data) == null ? void 0 : _e.roleIds);
16264
- authenticate_store.setProperty("workingUnitId", (_f = data2.data) == null ? void 0 : _f.workingUnitId);
16265
- if (authenticate_store.state.saveLogin == true) {
16266
- authenticate_store.setProperty("username", userName);
16259
+ authenticateStore.setProperty("code", (_a = data2.data) == null ? void 0 : _a.userName);
16260
+ authenticateStore.setProperty("fullName", (_b = data2.data) == null ? void 0 : _b.userFullName);
16261
+ authenticateStore.setProperty("userId", (_c = data2.data) == null ? void 0 : _c.userId);
16262
+ authenticateStore.setProperty("token", (_d = data2.data) == null ? void 0 : _d.token);
16263
+ authenticateStore.setProperty("roleIds", (_e = data2.data) == null ? void 0 : _e.roleIds);
16264
+ authenticateStore.setProperty("workingUnitId", (_f = data2.data) == null ? void 0 : _f.workingUnitId);
16265
+ if (authenticateStore.state.saveLogin == true) {
16266
+ authenticateStore.setProperty("username", userName);
16267
16267
  } else {
16268
- authenticate_store.setProperty("username", "");
16268
+ authenticateStore.setProperty("username", "");
16269
16269
  }
16270
16270
  permissionStore.setProperty("permission", (_g = data2.data) == null ? void 0 : _g.permissions);
16271
16271
  if (onSuccess) {
@@ -16317,8 +16317,8 @@ function Feat_Authenticate_Login({
16317
16317
  showSaveLogin && /* @__PURE__ */ jsx229(
16318
16318
  Checkbox7,
16319
16319
  {
16320
- checked: authenticate_store.state.saveLogin,
16321
- onChange: (e4) => authenticate_store.setProperty("saveLogin", e4.currentTarget.checked),
16320
+ checked: authenticateStore.state.saveLogin,
16321
+ onChange: (e4) => authenticateStore.setProperty("saveLogin", e4.currentTarget.checked),
16322
16322
  label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
16323
16323
  }
16324
16324
  ),
@@ -16357,7 +16357,7 @@ import { useRouter as useRouter4 } from "next/navigation";
16357
16357
  import { jsx as jsx230 } from "react/jsx-runtime";
16358
16358
  function Feat_Authenticate_Logout({ redirectURL = "/auth/login" }) {
16359
16359
  const router = useRouter4();
16360
- const authenticateStore = useS_authenticate();
16360
+ const authenticateStore = useStore_Authenticate();
16361
16361
  const permissionStore = useStore_Permission();
16362
16362
  return /* @__PURE__ */ jsx230(Button22, { onClick: () => {
16363
16363
  authenticateStore.setState({});
@@ -16372,7 +16372,7 @@ import { useEffect as useEffect33, useState as useState25 } from "react";
16372
16372
 
16373
16373
  // src/modules-features/authenticate/useAuthenticateManager.ts
16374
16374
  function useAuthenticateManager() {
16375
- const authenticateStore = useS_authenticate();
16375
+ const authenticateStore = useStore_Authenticate();
16376
16376
  const permissionStore = useStore_Permission();
16377
16377
  const onLoginSuccessSaveStore = ({
16378
16378
  data: data2
@@ -16455,14 +16455,14 @@ import { useEffect as useEffect34 } from "react";
16455
16455
  import { jsx as jsx232 } from "react/jsx-runtime";
16456
16456
  function F_authenticate_SplashPage() {
16457
16457
  const router = useRouter5();
16458
- const S_Authenticate = useS_authenticate();
16458
+ const authenticateStore = useStore_Authenticate();
16459
16459
  useEffect34(() => {
16460
- if (S_Authenticate.state.token == "") {
16460
+ if (authenticateStore.state.token == "") {
16461
16461
  router.push("/authenticate/login");
16462
16462
  return;
16463
16463
  }
16464
16464
  router.push("/admin/core71678");
16465
- }, [S_Authenticate.state.token]);
16465
+ }, [authenticateStore.state.token]);
16466
16466
  return /* @__PURE__ */ jsx232(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
16467
16467
  }
16468
16468
 
@@ -16542,7 +16542,7 @@ import { useForm as useForm46 } from "@mantine/form";
16542
16542
 
16543
16543
  // src/modules/User/components/ForgotPassword/useForgotPassword.ts
16544
16544
  function useForgotPassword() {
16545
- const { state } = useS_authenticate();
16545
+ const { state } = useStore_Authenticate();
16546
16546
  const changePassWordMutation = useMyReactMutation({
16547
16547
  axiosFn: ({ currentPassWord, newPassWord }) => service_account.changePassWord({
16548
16548
  currentPassWord,
@@ -18022,7 +18022,7 @@ export {
18022
18022
  F_workflowProcessDocs_Update,
18023
18023
  F_workflowProcessDocs_Read,
18024
18024
  F_workflowProcessDocs,
18025
- useS_authenticate,
18025
+ useStore_Authenticate,
18026
18026
  Feat_Authenticate_Login,
18027
18027
  Feat_Authenticate_Logout,
18028
18028
  Feat_Authenticate_SSOHandler,
@@ -357,7 +357,7 @@ var baseAxios = axios.create({
357
357
  baseAxios.interceptors.request.use(
358
358
  (config) => {
359
359
  var _a, _b;
360
- const tokenData = localStorage.getItem("useS_authenticate");
360
+ const tokenData = localStorage.getItem("useStore_Authenticate");
361
361
  const state = JSON.parse(tokenData);
362
362
  const token = (_b = (_a = state == null ? void 0 : state.state) == null ? void 0 : _a.state) == null ? void 0 : _b.token;
363
363
  if (token) {
@@ -70,14 +70,14 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-756CR5AJ.mjs";
73
+ } from "../chunk-4XLLSXPH.mjs";
74
74
  import "../chunk-SUH3FFFV.mjs";
75
75
  import "../chunk-2B2FKBKX.mjs";
76
76
  import "../chunk-O7YCQQO5.mjs";
77
77
  import "../chunk-QSWIVDXC.mjs";
78
- import "../chunk-IUTUR43V.mjs";
78
+ import "../chunk-REMYBOSK.mjs";
79
79
  import "../chunk-K6S7R6LU.mjs";
80
- import "../chunk-2JFYOBBR.mjs";
80
+ import "../chunk-NSBIYOKX.mjs";
81
81
  import "../chunk-WZ6PXGGC.mjs";
82
82
  import "../chunk-7ZCOFATU.mjs";
83
83
  import "../chunk-FWCSY2DS.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  const_object_colors,
4
4
  const_object_documentTypes,
5
5
  const_object_generalMenuData
6
- } from "../chunk-IUTUR43V.mjs";
6
+ } from "../chunk-REMYBOSK.mjs";
7
7
  import "../chunk-FWCSY2DS.mjs";
8
8
  export {
9
9
  const_array_daysOfWeek,
@@ -25,14 +25,14 @@ import {
25
25
  MyStatsCard,
26
26
  MyTextInput2 as MyTextInput,
27
27
  MyWeeklySessionSchedulerPicker
28
- } from "../chunk-756CR5AJ.mjs";
28
+ } from "../chunk-4XLLSXPH.mjs";
29
29
  import "../chunk-SUH3FFFV.mjs";
30
30
  import "../chunk-2B2FKBKX.mjs";
31
31
  import "../chunk-O7YCQQO5.mjs";
32
32
  import "../chunk-QSWIVDXC.mjs";
33
- import "../chunk-IUTUR43V.mjs";
33
+ import "../chunk-REMYBOSK.mjs";
34
34
  import "../chunk-K6S7R6LU.mjs";
35
- import "../chunk-2JFYOBBR.mjs";
35
+ import "../chunk-NSBIYOKX.mjs";
36
36
  import "../chunk-WZ6PXGGC.mjs";
37
37
  import "../chunk-7ZCOFATU.mjs";
38
38
  import "../chunk-FWCSY2DS.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-756CR5AJ.mjs";
3
+ } from "../chunk-4XLLSXPH.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-2B2FKBKX.mjs";
6
6
  import "../chunk-O7YCQQO5.mjs";
7
7
  import "../chunk-QSWIVDXC.mjs";
8
- import "../chunk-IUTUR43V.mjs";
8
+ import "../chunk-REMYBOSK.mjs";
9
9
  import "../chunk-K6S7R6LU.mjs";
10
10
  import {
11
11
  useMyReactMutation
12
- } from "../chunk-2JFYOBBR.mjs";
12
+ } from "../chunk-NSBIYOKX.mjs";
13
13
  import "../chunk-WZ6PXGGC.mjs";
14
14
  import "../chunk-7ZCOFATU.mjs";
15
15
  import {
@@ -12,7 +12,7 @@ import {
12
12
  useMyReactQuery,
13
13
  useMyRouter,
14
14
  useQ_AQ_GetAQModule
15
- } from "../chunk-2JFYOBBR.mjs";
15
+ } from "../chunk-NSBIYOKX.mjs";
16
16
  import "../chunk-WZ6PXGGC.mjs";
17
17
  import "../chunk-7ZCOFATU.mjs";
18
18
  import "../chunk-FWCSY2DS.mjs";
@@ -980,7 +980,7 @@ interface I {
980
980
  workingUnitId?: number;
981
981
  roleIds?: number[];
982
982
  }
983
- declare function useS_authenticate(): {
983
+ declare function useStore_Authenticate(): {
984
984
  state: I;
985
985
  setState: (newState: I) => void;
986
986
  setProperty: <K extends keyof I>(key: K, value: I[K]) => void;
@@ -992,4 +992,4 @@ interface Feat_TokenExpiredProps {
992
992
  }
993
993
  declare function Feat_TokenExpired({ loginRedirect }: Feat_TokenExpiredProps): react_jsx_runtime.JSX.Element;
994
994
 
995
- export { AcademicYearsCreate, AcademicYearsDelete, AcademicYearsDeleteList, AcademicYearsRead, AcademicYearsUpdate, DepartmentFeature, ENUM_BUSINESS_TYPE, ENUM_OBJECT_TYPE, ENUM_REPEAT_CYCLE, EmailTemplateCreateUpdateButton, EmailTemplateTable, F_accountManagement, F_accountManagement_Delete, F_accountManagement_Read, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Read, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core35923, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_documentCategories, F_documentCategories_Create, F_documentCategories_Delete, F_documentCategories_Read, F_documentCategories_Select, F_documentCategories_Update, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_mailConfig_CreateUpdate, F_mailConfig_Delete, F_mailConfig_Read, F_mailTemplate_CreateUpdate, F_mailTemplate_Delete, F_mailTemplate_Read, F_moduleConfig, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, F_pageContentConfig, F_roleCatalog, F_roleCatalog_Delete, F_roleCatalog_Form, F_roleCatalog_Read, F_securityPolicyDocs, F_securityPolicyDocs_Create, F_securityPolicyDocs_Delete, F_securityPolicyDocs_Update, F_systemUpdateDocs, F_systemUpdateDocs_Create, F_systemUpdateDocs_Delete, F_systemUpdateDocs_Update, F_userGuideDocs, F_userGuideDocs_Create, F_userGuideDocs_Delete, F_userGuideDocs_Read, F_userGuideDocs_Update, F_workflowProcessDocs, F_workflowProcessDocs_Create, F_workflowProcessDocs_Delete, F_workflowProcessDocs_Read, F_workflowProcessDocs_Update, Feat_Authenticate_Login, Feat_Authenticate_Logout, Feat_Authenticate_SSOHandler, Feat_PageContentTable, Feat_RoleManagement, Feat_TokenExpired, Feat_accessControl, Feat_accessControlLevel, type IUnit, type I_accountManagement_Read, type I_moduleConfig_AQModule, MailTemplateDeleteButton, useS_authenticate, useS_moduleConfig };
995
+ export { AcademicYearsCreate, AcademicYearsDelete, AcademicYearsDeleteList, AcademicYearsRead, AcademicYearsUpdate, DepartmentFeature, ENUM_BUSINESS_TYPE, ENUM_OBJECT_TYPE, ENUM_REPEAT_CYCLE, EmailTemplateCreateUpdateButton, EmailTemplateTable, F_accountManagement, F_accountManagement_Delete, F_accountManagement_Read, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Read, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core35923, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_documentCategories, F_documentCategories_Create, F_documentCategories_Delete, F_documentCategories_Read, F_documentCategories_Select, F_documentCategories_Update, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_mailConfig_CreateUpdate, F_mailConfig_Delete, F_mailConfig_Read, F_mailTemplate_CreateUpdate, F_mailTemplate_Delete, F_mailTemplate_Read, F_moduleConfig, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, F_pageContentConfig, F_roleCatalog, F_roleCatalog_Delete, F_roleCatalog_Form, F_roleCatalog_Read, F_securityPolicyDocs, F_securityPolicyDocs_Create, F_securityPolicyDocs_Delete, F_securityPolicyDocs_Update, F_systemUpdateDocs, F_systemUpdateDocs_Create, F_systemUpdateDocs_Delete, F_systemUpdateDocs_Update, F_userGuideDocs, F_userGuideDocs_Create, F_userGuideDocs_Delete, F_userGuideDocs_Read, F_userGuideDocs_Update, F_workflowProcessDocs, F_workflowProcessDocs_Create, F_workflowProcessDocs_Delete, F_workflowProcessDocs_Read, F_workflowProcessDocs_Update, Feat_Authenticate_Login, Feat_Authenticate_Logout, Feat_Authenticate_SSOHandler, Feat_PageContentTable, Feat_RoleManagement, Feat_TokenExpired, Feat_accessControl, Feat_accessControlLevel, type IUnit, type I_accountManagement_Read, type I_moduleConfig_AQModule, MailTemplateDeleteButton, useS_moduleConfig, useStore_Authenticate };
@@ -110,16 +110,16 @@ import {
110
110
  Feat_accessControl,
111
111
  Feat_accessControlLevel,
112
112
  MailTemplateDeleteButton,
113
- useS_authenticate,
114
- useS_moduleConfig
115
- } from "../chunk-756CR5AJ.mjs";
113
+ useS_moduleConfig,
114
+ useStore_Authenticate
115
+ } from "../chunk-4XLLSXPH.mjs";
116
116
  import "../chunk-SUH3FFFV.mjs";
117
117
  import "../chunk-2B2FKBKX.mjs";
118
118
  import "../chunk-O7YCQQO5.mjs";
119
119
  import "../chunk-QSWIVDXC.mjs";
120
- import "../chunk-IUTUR43V.mjs";
120
+ import "../chunk-REMYBOSK.mjs";
121
121
  import "../chunk-K6S7R6LU.mjs";
122
- import "../chunk-2JFYOBBR.mjs";
122
+ import "../chunk-NSBIYOKX.mjs";
123
123
  import "../chunk-WZ6PXGGC.mjs";
124
124
  import "../chunk-7ZCOFATU.mjs";
125
125
  import "../chunk-FWCSY2DS.mjs";
@@ -235,6 +235,6 @@ export {
235
235
  Feat_accessControl,
236
236
  Feat_accessControlLevel,
237
237
  MailTemplateDeleteButton,
238
- useS_authenticate,
239
- useS_moduleConfig
238
+ useS_moduleConfig,
239
+ useStore_Authenticate
240
240
  };
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.747",
53
+ "version": "0.1.749",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"
@@ -72,8 +72,8 @@ var const_object_generalMenuData = {
72
72
  };
73
73
 
74
74
  export {
75
- const_object_colors,
76
75
  const_array_daysOfWeek,
76
+ const_object_colors,
77
77
  const_object_documentTypes,
78
78
  const_object_generalMenuData
79
79
  };