aq-fe-framework 0.1.116 → 0.1.117
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/dist/{chunk-ODP26FHU.mjs → chunk-VHVUJIOR.mjs} +20 -20
- package/dist/components/index.css +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/modules-features/index.css +1 -1
- package/dist/modules-features/index.d.mts +4 -4
- package/dist/modules-features/index.mjs +8 -8
- package/package.json +1 -1
@@ -2,9 +2,6 @@ import {
|
|
2
2
|
baseAxios_default,
|
3
3
|
useQ_AQ_GetAQModule
|
4
4
|
} from "./chunk-QAWKASVG.mjs";
|
5
|
-
import {
|
6
|
-
createGenericStore
|
7
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
8
5
|
import {
|
9
6
|
U0DateToDDMMYYYString,
|
10
7
|
U0MyValidateEmail,
|
@@ -15,6 +12,9 @@ import {
|
|
15
12
|
import {
|
16
13
|
utils_notification_show
|
17
14
|
} from "./chunk-7ZCOFATU.mjs";
|
15
|
+
import {
|
16
|
+
createGenericStore
|
17
|
+
} from "./chunk-Y3YGC5IH.mjs";
|
18
18
|
import {
|
19
19
|
__objRest,
|
20
20
|
__spreadProps,
|
@@ -7259,7 +7259,7 @@ function BasicAppShell({ children, menu }) {
|
|
7259
7259
|
/* @__PURE__ */ jsxs29(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7260
7260
|
/* @__PURE__ */ jsx53(RenderNavLinks, { items: menu }),
|
7261
7261
|
/* @__PURE__ */ jsx53(Divider2, {}),
|
7262
|
-
/* @__PURE__ */ jsx53(
|
7262
|
+
/* @__PURE__ */ jsx53(F_Authenticate_Logout, {})
|
7263
7263
|
] }),
|
7264
7264
|
/* @__PURE__ */ jsxs29(AppShell.Section, { p: "md", children: [
|
7265
7265
|
/* @__PURE__ */ jsx53(Divider2, {}),
|
@@ -11185,41 +11185,41 @@ function PieChart_VoucherUsedPercentage() {
|
|
11185
11185
|
] }) });
|
11186
11186
|
}
|
11187
11187
|
|
11188
|
-
// src/modules-features/
|
11188
|
+
// src/modules-features/Authenticate/F_Authenticate_Logout.tsx
|
11189
11189
|
import { Button as Button18 } from "@mantine/core";
|
11190
11190
|
import { IconLogout } from "@tabler/icons-react";
|
11191
11191
|
import { useRouter as useRouter4 } from "next/navigation";
|
11192
11192
|
|
11193
|
-
// src/modules-features/
|
11193
|
+
// src/modules-features/Authenticate/useS_Authenticate.ts
|
11194
11194
|
var useStore6 = createGenericStore({
|
11195
11195
|
initialState: { token: "" },
|
11196
11196
|
storageKey: "useS_authenticate"
|
11197
11197
|
});
|
11198
|
-
function
|
11198
|
+
function useS_Authenticate() {
|
11199
11199
|
const store = useStore6();
|
11200
11200
|
function logOut() {
|
11201
11201
|
}
|
11202
11202
|
return __spreadValues({}, store);
|
11203
11203
|
}
|
11204
11204
|
|
11205
|
-
// src/modules-features/
|
11205
|
+
// src/modules-features/Authenticate/F_Authenticate_Logout.tsx
|
11206
11206
|
import { jsx as jsx131 } from "react/jsx-runtime";
|
11207
|
-
function
|
11207
|
+
function F_Authenticate_Logout({ redirectURL = "/auth/login" }) {
|
11208
11208
|
const router = useRouter4();
|
11209
|
-
const S_Authenticate =
|
11209
|
+
const S_Authenticate = useS_Authenticate();
|
11210
11210
|
return /* @__PURE__ */ jsx131(Button18, { onClick: () => {
|
11211
11211
|
S_Authenticate.setProperty("token", "");
|
11212
11212
|
router.replace(redirectURL);
|
11213
11213
|
}, leftSection: /* @__PURE__ */ jsx131(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
11214
11214
|
}
|
11215
11215
|
|
11216
|
-
// src/modules-features/
|
11216
|
+
// src/modules-features/Authenticate/F_Authenticate_SplashPage.tsx
|
11217
11217
|
import { useRouter as useRouter5 } from "next/navigation";
|
11218
11218
|
import { useEffect as useEffect17 } from "react";
|
11219
11219
|
import { jsx as jsx132 } from "react/jsx-runtime";
|
11220
11220
|
function F_authenticate_SplashPage() {
|
11221
11221
|
const router = useRouter5();
|
11222
|
-
const S_Authenticate =
|
11222
|
+
const S_Authenticate = useS_Authenticate();
|
11223
11223
|
useEffect17(() => {
|
11224
11224
|
if (S_Authenticate.state.token == "") {
|
11225
11225
|
router.push("/authenticate/login");
|
@@ -11230,7 +11230,7 @@ function F_authenticate_SplashPage() {
|
|
11230
11230
|
return /* @__PURE__ */ jsx132(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
11231
11231
|
}
|
11232
11232
|
|
11233
|
-
// src/modules-features/
|
11233
|
+
// src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
|
11234
11234
|
import {
|
11235
11235
|
Anchor as Anchor2,
|
11236
11236
|
BackgroundImage,
|
@@ -11252,12 +11252,12 @@ import Link5 from "next/link";
|
|
11252
11252
|
import { useRouter as useRouter6 } from "next/navigation";
|
11253
11253
|
import { useState as useState17 } from "react";
|
11254
11254
|
|
11255
|
-
// src/modules-features/
|
11255
|
+
// src/modules-features/Authenticate/F_Authenticate_Login/css.module.css
|
11256
11256
|
var css_default3 = {};
|
11257
11257
|
|
11258
|
-
// src/modules-features/
|
11258
|
+
// src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
|
11259
11259
|
import { jsx as jsx133, jsxs as jsxs83 } from "react/jsx-runtime";
|
11260
|
-
function
|
11260
|
+
function F_Authenticate_Login({
|
11261
11261
|
loginInfo,
|
11262
11262
|
redirectUrlAfterLogin = "/admin/dashboard",
|
11263
11263
|
additionalActions,
|
@@ -11265,7 +11265,7 @@ function F_authenticate_Login({
|
|
11265
11265
|
onSuccess
|
11266
11266
|
}) {
|
11267
11267
|
const router = useRouter6();
|
11268
|
-
const authStore =
|
11268
|
+
const authStore = useS_Authenticate();
|
11269
11269
|
const loadingState = useState17(false);
|
11270
11270
|
const mutation = useM_Account_Sigin();
|
11271
11271
|
const form = useForm20({
|
@@ -11485,10 +11485,10 @@ export {
|
|
11485
11485
|
F_core83092,
|
11486
11486
|
PieChart_DiscountUsedPercentage,
|
11487
11487
|
PieChart_VoucherUsedPercentage,
|
11488
|
-
|
11489
|
-
|
11488
|
+
useS_Authenticate,
|
11489
|
+
F_Authenticate_Logout,
|
11490
11490
|
F_authenticate_SplashPage,
|
11491
|
-
|
11491
|
+
F_Authenticate_Login,
|
11492
11492
|
BasicAppShell_transformMenuToEnum,
|
11493
11493
|
BasicAppShell,
|
11494
11494
|
groupToTwoLevels,
|
@@ -16,7 +16,7 @@
|
|
16
16
|
display: block;
|
17
17
|
}
|
18
18
|
|
19
|
-
/* src/modules-features/
|
19
|
+
/* src/modules-features/Authenticate/F_Authenticate_Login/css.module.css */
|
20
20
|
.title {
|
21
21
|
font-family: Greycliff CF, var(--mantine-font-family);
|
22
22
|
font-weight: 900;
|
@@ -65,11 +65,11 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-VHVUJIOR.mjs";
|
69
69
|
import "../chunk-QAWKASVG.mjs";
|
70
|
-
import "../chunk-Y3YGC5IH.mjs";
|
71
70
|
import "../chunk-CJDXLINF.mjs";
|
72
71
|
import "../chunk-7ZCOFATU.mjs";
|
72
|
+
import "../chunk-Y3YGC5IH.mjs";
|
73
73
|
import "../chunk-FWCSY2DS.mjs";
|
74
74
|
export {
|
75
75
|
AQButtonCreateByImportFile,
|
@@ -111,7 +111,7 @@
|
|
111
111
|
border-top: 1px solid var(--mantine-color-dark-5);
|
112
112
|
}
|
113
113
|
|
114
|
-
/* src/modules-features/
|
114
|
+
/* src/modules-features/Authenticate/F_Authenticate_Login/css.module.css */
|
115
115
|
.title {
|
116
116
|
font-family: Greycliff CF, var(--mantine-font-family);
|
117
117
|
font-weight: 900;
|
@@ -501,7 +501,7 @@ declare function PieChart_VoucherUsedPercentage(): react_jsx_runtime.JSX.Element
|
|
501
501
|
interface I$2 {
|
502
502
|
redirectURL?: string;
|
503
503
|
}
|
504
|
-
declare function
|
504
|
+
declare function F_Authenticate_Logout({ redirectURL }: I$2): react_jsx_runtime.JSX.Element;
|
505
505
|
|
506
506
|
declare function F_authenticate_SplashPage(): react_jsx_runtime.JSX.Element;
|
507
507
|
|
@@ -511,7 +511,7 @@ interface I$1 {
|
|
511
511
|
fullName?: string;
|
512
512
|
code?: string;
|
513
513
|
}
|
514
|
-
declare function
|
514
|
+
declare function useS_Authenticate(): {
|
515
515
|
state: I$1;
|
516
516
|
setState: (newState: I$1) => void;
|
517
517
|
setProperty: <K extends keyof I$1>(key: K, value: I$1[K]) => void;
|
@@ -529,6 +529,6 @@ interface I {
|
|
529
529
|
backgroundImage?: string;
|
530
530
|
onSuccess?: (data?: any) => void;
|
531
531
|
}
|
532
|
-
declare function
|
532
|
+
declare function F_Authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess }: I): react_jsx_runtime.JSX.Element;
|
533
533
|
|
534
|
-
export {
|
534
|
+
export { F_Authenticate_Login, F_Authenticate_Logout, 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_core38677, F_core38677_ReadUser, F_core38677_Save, F_core38677_ViewMenuPermissions, 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_core60524, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core71678, F_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_core83092, F_core83092_ReadUser, F_core83092_Save, F_core83092_ViewMenuPermissions, type I_core38677_User, type I_core60524_AQModule, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_Authenticate, useS_core60524, useS_core83092, utils_core83092_mergePage };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
|
2
|
+
F_Authenticate_Login,
|
3
|
+
F_Authenticate_Logout,
|
4
4
|
F_authenticate_SplashPage,
|
5
5
|
F_core12196,
|
6
6
|
F_core12196_Create,
|
@@ -61,19 +61,19 @@ import {
|
|
61
61
|
F_core83092_ViewMenuPermissions,
|
62
62
|
PieChart_DiscountUsedPercentage,
|
63
63
|
PieChart_VoucherUsedPercentage,
|
64
|
-
|
64
|
+
useS_Authenticate,
|
65
65
|
useS_core60524,
|
66
66
|
useS_core83092,
|
67
67
|
utils_core83092_mergePage
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-VHVUJIOR.mjs";
|
69
69
|
import "../chunk-QAWKASVG.mjs";
|
70
|
-
import "../chunk-Y3YGC5IH.mjs";
|
71
70
|
import "../chunk-CJDXLINF.mjs";
|
72
71
|
import "../chunk-7ZCOFATU.mjs";
|
72
|
+
import "../chunk-Y3YGC5IH.mjs";
|
73
73
|
import "../chunk-FWCSY2DS.mjs";
|
74
74
|
export {
|
75
|
-
|
76
|
-
|
75
|
+
F_Authenticate_Login,
|
76
|
+
F_Authenticate_Logout,
|
77
77
|
F_authenticate_SplashPage,
|
78
78
|
F_core12196,
|
79
79
|
F_core12196_Create,
|
@@ -134,7 +134,7 @@ export {
|
|
134
134
|
F_core83092_ViewMenuPermissions,
|
135
135
|
PieChart_DiscountUsedPercentage,
|
136
136
|
PieChart_VoucherUsedPercentage,
|
137
|
-
|
137
|
+
useS_Authenticate,
|
138
138
|
useS_core60524,
|
139
139
|
useS_core83092,
|
140
140
|
utils_core83092_mergePage
|