aq-fe-framework 0.1.634 → 0.1.635

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.
@@ -14030,7 +14030,7 @@ import { useEffect as useEffect22 } from "react";
14030
14030
 
14031
14031
  // src/modules-features/authenticate/useS_authenticate.ts
14032
14032
  var useStore5 = createGenericStore({
14033
- initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0 },
14033
+ initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0, roleIds: [] },
14034
14034
  storageKey: "useS_authenticate"
14035
14035
  });
14036
14036
  function useS_authenticate() {
@@ -14088,7 +14088,7 @@ function Feat_Authenticate_Login({
14088
14088
  "passWord": passWord
14089
14089
  }, {
14090
14090
  onSuccess: (data2) => {
14091
- var _a, _b, _c, _d, _e, _f;
14091
+ var _a, _b, _c, _d, _e, _f, _g;
14092
14092
  if (data2.isSuccess === false) {
14093
14093
  form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i");
14094
14094
  return;
@@ -14101,13 +14101,14 @@ function Feat_Authenticate_Login({
14101
14101
  authenticate_store.setProperty("fullName", (_b = data2.data) == null ? void 0 : _b.userFullName);
14102
14102
  authenticate_store.setProperty("userId", (_c = data2.data) == null ? void 0 : _c.userId);
14103
14103
  authenticate_store.setProperty("token", (_d = data2.data) == null ? void 0 : _d.token);
14104
- authenticate_store.setProperty("workingUnitId", (_e = data2.data) == null ? void 0 : _e.workingUnitId);
14104
+ authenticate_store.setProperty("roleIds", (_e = data2.data) == null ? void 0 : _e.roleIds);
14105
+ authenticate_store.setProperty("workingUnitId", (_f = data2.data) == null ? void 0 : _f.workingUnitId);
14105
14106
  if (authenticate_store.state.saveLogin == true) {
14106
14107
  authenticate_store.setProperty("username", userName);
14107
14108
  } else {
14108
14109
  authenticate_store.setProperty("username", "");
14109
14110
  }
14110
- permissionStore.setProperty("permission", (_f = data2.data) == null ? void 0 : _f.permissions);
14111
+ permissionStore.setProperty("permission", (_g = data2.data) == null ? void 0 : _g.permissions);
14111
14112
  if (onSuccess) {
14112
14113
  onSuccess(data2);
14113
14114
  return;
@@ -69,7 +69,7 @@ import {
69
69
  useHeaderMegaMenuStore,
70
70
  useS_ButtonImport,
71
71
  useStore_BasicAppShell
72
- } from "../chunk-WG5463JW.mjs";
72
+ } from "../chunk-TFRWRLQ2.mjs";
73
73
  import "../chunk-PW6WTEVB.mjs";
74
74
  import "../chunk-IKFZBEKW.mjs";
75
75
  import "../chunk-7PUDC2WF.mjs";
@@ -77,8 +77,8 @@ import "../chunk-EWDS5IOF.mjs";
77
77
  import "../chunk-YYH7V6LN.mjs";
78
78
  import "../chunk-MNJNQRZU.mjs";
79
79
  import "../chunk-AR64BQSX.mjs";
80
- import "../chunk-WZ6PXGGC.mjs";
81
80
  import "../chunk-7ZCOFATU.mjs";
81
+ import "../chunk-WZ6PXGGC.mjs";
82
82
  import "../chunk-FWCSY2DS.mjs";
83
83
  export {
84
84
  AQButtonCreateByImportFile,
@@ -23,7 +23,7 @@ import {
23
23
  MyStatsCard,
24
24
  MyTextInput2 as MyTextInput,
25
25
  MyWeeklySessionSchedulerPicker
26
- } from "../chunk-WG5463JW.mjs";
26
+ } from "../chunk-TFRWRLQ2.mjs";
27
27
  import "../chunk-PW6WTEVB.mjs";
28
28
  import "../chunk-IKFZBEKW.mjs";
29
29
  import "../chunk-7PUDC2WF.mjs";
@@ -31,8 +31,8 @@ import "../chunk-EWDS5IOF.mjs";
31
31
  import "../chunk-YYH7V6LN.mjs";
32
32
  import "../chunk-MNJNQRZU.mjs";
33
33
  import "../chunk-AR64BQSX.mjs";
34
- import "../chunk-WZ6PXGGC.mjs";
35
34
  import "../chunk-7ZCOFATU.mjs";
35
+ import "../chunk-WZ6PXGGC.mjs";
36
36
  import "../chunk-FWCSY2DS.mjs";
37
37
  export {
38
38
  DroppablePlaceholder,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-WG5463JW.mjs";
3
+ } from "../chunk-TFRWRLQ2.mjs";
4
4
  import "../chunk-PW6WTEVB.mjs";
5
5
  import "../chunk-IKFZBEKW.mjs";
6
6
  import "../chunk-7PUDC2WF.mjs";
@@ -10,8 +10,8 @@ import "../chunk-MNJNQRZU.mjs";
10
10
  import {
11
11
  useMyReactMutation
12
12
  } from "../chunk-AR64BQSX.mjs";
13
- import "../chunk-WZ6PXGGC.mjs";
14
13
  import "../chunk-7ZCOFATU.mjs";
14
+ import "../chunk-WZ6PXGGC.mjs";
15
15
  import {
16
16
  __objRest,
17
17
  __spreadValues
@@ -9,8 +9,8 @@ import {
9
9
  useMyRouter,
10
10
  useQ_AQ_GetAQModule
11
11
  } from "../chunk-AR64BQSX.mjs";
12
- import "../chunk-WZ6PXGGC.mjs";
13
12
  import "../chunk-7ZCOFATU.mjs";
13
+ import "../chunk-WZ6PXGGC.mjs";
14
14
  import "../chunk-FWCSY2DS.mjs";
15
15
  export {
16
16
  createBaseApi,
@@ -916,6 +916,7 @@ interface I {
916
916
  password?: string;
917
917
  saveLogin?: boolean;
918
918
  workingUnitId?: number;
919
+ roleIds?: number[];
919
920
  }
920
921
  declare function useS_authenticate(): {
921
922
  state: I;
@@ -102,7 +102,7 @@ import {
102
102
  Feat_accessControlLevel,
103
103
  useS_authenticate,
104
104
  useS_moduleConfig
105
- } from "../chunk-WG5463JW.mjs";
105
+ } from "../chunk-TFRWRLQ2.mjs";
106
106
  import "../chunk-PW6WTEVB.mjs";
107
107
  import "../chunk-IKFZBEKW.mjs";
108
108
  import "../chunk-7PUDC2WF.mjs";
@@ -110,8 +110,8 @@ import "../chunk-EWDS5IOF.mjs";
110
110
  import "../chunk-YYH7V6LN.mjs";
111
111
  import "../chunk-MNJNQRZU.mjs";
112
112
  import "../chunk-AR64BQSX.mjs";
113
- import "../chunk-WZ6PXGGC.mjs";
114
113
  import "../chunk-7ZCOFATU.mjs";
114
+ import "../chunk-WZ6PXGGC.mjs";
115
115
  import "../chunk-FWCSY2DS.mjs";
116
116
  export {
117
117
  F_accountManagement,
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.634",
53
+ "version": "0.1.635",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"