aq-fe-framework 0.1.272 → 0.1.277
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-JCIYZBMG.mjs → chunk-UHTR5TVI.mjs} +893 -661
- package/dist/components/index.d.mts +21 -5
- package/dist/components/index.mjs +4 -2
- package/dist/hooks/index.d.mts +1 -1
- package/dist/modules-features/index.css +1 -1
- package/dist/modules-features/index.d.mts +4 -1
- package/dist/modules-features/index.mjs +15 -12
- package/package.json +1 -1
- /package/dist/modules-features/authenticate/{F_Authenticate_Login → F_authenticate_Login}/css.module.css +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import React$1, { ReactNode, ComponentProps } from 'react';
|
3
|
-
import { MantineSize, ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
|
3
|
+
import { MantineSize, ActionIconProps, ButtonProps, ModalProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
|
4
4
|
import { M as MyApiResponse } from '../createBaseApi-BAYnbGVT.mjs';
|
5
5
|
import { AxiosResponse } from 'axios';
|
6
6
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
@@ -56,7 +56,7 @@ interface IMyActionIconModal extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
|
|
56
56
|
declare function MyActionIconModal({ fullScreen, crudType, disclosure, modalSize, title, children, icon, ...rest }: IMyActionIconModal): react_jsx_runtime.JSX.Element | undefined;
|
57
57
|
|
58
58
|
interface IActionIconDelete<IRes> extends Omit<ComponentProps<typeof MyActionIconModal>, "disclosure" | "onSubmit"> {
|
59
|
-
onSubmit: () => Promise<AxiosResponse<MyApiResponse<IRes
|
59
|
+
onSubmit: () => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
|
60
60
|
onSuccess?: () => void;
|
61
61
|
onError?: () => void;
|
62
62
|
contextData?: string;
|
@@ -66,7 +66,7 @@ declare function MyActionIconDelete<IRes>({ onSubmit, onSuccess, onError, contex
|
|
66
66
|
|
67
67
|
interface IActionIconUpdate<IReq, IRes> extends Omit<ComponentProps<typeof MyActionIconModal>, "form" | "disclosure" | "onSubmit"> {
|
68
68
|
resetFormWhenclose?: boolean;
|
69
|
-
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes
|
69
|
+
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
|
70
70
|
onSuccess?: () => void;
|
71
71
|
onError?: () => void;
|
72
72
|
form: UseFormReturnType<IReq>;
|
@@ -141,7 +141,7 @@ interface AQButtonExportDataProps {
|
|
141
141
|
declare function AQButtonExportData({ isAllData, objectName, data, exportConfig }: AQButtonExportDataProps): react_jsx_runtime.JSX.Element;
|
142
142
|
|
143
143
|
interface IMyButtonCreate<IReq, IRes> extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure" | "form" | "onSubmit"> {
|
144
|
-
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes
|
144
|
+
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
|
145
145
|
onSuccess?: () => void;
|
146
146
|
onError?: () => void;
|
147
147
|
form: UseFormReturnType<IReq>;
|
@@ -151,6 +151,22 @@ interface IMyButtonCreate<IReq, IRes> extends Omit<ComponentProps<typeof MyButto
|
|
151
151
|
}
|
152
152
|
declare function MyButtonCreate<IReq, IRes>({ form, onSubmit, onSuccess, onError, notCloseModalWhenSubmit, notResetFormWhenSubmit, children, disclosure: externalDisclosure, ...rest }: IMyButtonCreate<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
153
153
|
|
154
|
+
interface IMyButtonCreateUpdate<IReq, IRes> {
|
155
|
+
modalProps?: ModalProps;
|
156
|
+
actionIconProps?: ActionIconProps;
|
157
|
+
buttonProps?: ButtonProps;
|
158
|
+
isCreate?: boolean;
|
159
|
+
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
|
160
|
+
onSuccess?: () => void;
|
161
|
+
onError?: () => void;
|
162
|
+
form: UseFormReturnType<IReq>;
|
163
|
+
closeModalWhenSubmit?: boolean;
|
164
|
+
resetFormWhenSubmit?: boolean;
|
165
|
+
disclosure?: ReturnType<typeof useDisclosure>;
|
166
|
+
children?: ReactNode;
|
167
|
+
}
|
168
|
+
declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isCreate, }: IMyButtonCreateUpdate<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
169
|
+
|
154
170
|
interface IMyButtonDeleteList extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure"> {
|
155
171
|
onSubmit: () => void;
|
156
172
|
onSuccess?: () => void;
|
@@ -546,4 +562,4 @@ interface IMySkeletonTable extends SkeletonProps {
|
|
546
562
|
}
|
547
563
|
declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
|
548
564
|
|
549
|
-
export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, type MyDataTableInternalProps, type MyDataTableProps, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
|
565
|
+
export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonCreateUpdate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, type MyDataTableInternalProps, type MyDataTableProps, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
|
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
MyBoxesCore,
|
24
24
|
MyButton,
|
25
25
|
MyButtonCreate,
|
26
|
+
MyButtonCreateUpdate,
|
26
27
|
MyButtonDeleteList,
|
27
28
|
MyButtonImport,
|
28
29
|
MyButtonModal,
|
@@ -68,9 +69,9 @@ import {
|
|
68
69
|
useS_BasicAppShell,
|
69
70
|
useS_ButtonImport,
|
70
71
|
utils_layout_getItemsWithoutLinks
|
71
|
-
} from "../chunk-
|
72
|
-
import "../chunk-NWBLJ3W3.mjs";
|
72
|
+
} from "../chunk-UHTR5TVI.mjs";
|
73
73
|
import "../chunk-K6S7R6LU.mjs";
|
74
|
+
import "../chunk-NWBLJ3W3.mjs";
|
74
75
|
import "../chunk-KKJ3OEEW.mjs";
|
75
76
|
import "../chunk-Y3YGC5IH.mjs";
|
76
77
|
import "../chunk-5U2JSHSJ.mjs";
|
@@ -101,6 +102,7 @@ export {
|
|
101
102
|
MyBoxesCore,
|
102
103
|
MyButton,
|
103
104
|
MyButtonCreate,
|
105
|
+
MyButtonCreateUpdate,
|
104
106
|
MyButtonDeleteList,
|
105
107
|
MyButtonImport,
|
106
108
|
MyButtonModal,
|
package/dist/hooks/index.d.mts
CHANGED
@@ -21,7 +21,7 @@ interface MyReactQueryProps<IRes, IBody> {
|
|
21
21
|
axiosFn: () => Promise<AxiosResponse<MyApiResponse<IRes>, IBody>>;
|
22
22
|
options?: Partial<UseQueryOptions<IRes, Error>>;
|
23
23
|
}
|
24
|
-
declare function useMyReactQuery<IRes, IBody>({ queryKey, axiosFn, options }: MyReactQueryProps<IRes, IBody>): _tanstack_react_query.UseQueryResult<IRes
|
24
|
+
declare function useMyReactQuery<IRes, IBody>({ queryKey, axiosFn, options }: MyReactQueryProps<IRes, IBody>): _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<IRes>, Error>;
|
25
25
|
|
26
26
|
declare function useQ_AQ_GetAQModule(): _tanstack_react_query.UseQueryResult<IAQModule, Error>;
|
27
27
|
|
@@ -93,7 +93,7 @@
|
|
93
93
|
border-top: 1px solid var(--mantine-color-dark-5);
|
94
94
|
}
|
95
95
|
|
96
|
-
/* src/modules-features/authenticate/
|
96
|
+
/* src/modules-features/authenticate/F_authenticate_Login/css.module.css */
|
97
97
|
.title {
|
98
98
|
font-family: Greycliff CF, var(--mantine-font-family);
|
99
99
|
font-weight: 900;
|
@@ -842,12 +842,15 @@ declare function useS_authenticate(): {
|
|
842
842
|
};
|
843
843
|
|
844
844
|
interface I {
|
845
|
+
header?: ReactNode;
|
845
846
|
showLoginButton?: boolean;
|
846
847
|
redirectUrlAfterLogin?: string;
|
847
848
|
additionalActions?: ReactNode;
|
848
849
|
backgroundImage?: string;
|
850
|
+
showSaveLogin?: boolean;
|
851
|
+
showForgotPassword?: boolean;
|
849
852
|
onSuccess?: (data?: any) => void;
|
850
853
|
}
|
851
|
-
declare function F_authenticate_Login({ redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess, showLoginButton }: I): react_jsx_runtime.JSX.Element;
|
854
|
+
declare function F_authenticate_Login({ header, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess, showLoginButton, showSaveLogin, showForgotPassword }: I): react_jsx_runtime.JSX.Element;
|
852
855
|
|
853
856
|
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, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, 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, type I_core38677_User, type I_core60524_AQModule, type I_core71678_Read, type I_core83092_RolePermission, useS_authenticate, useS_core60524, useS_core83092, utils_core83092_mergePage };
|
@@ -24,17 +24,17 @@ import {
|
|
24
24
|
useS_BasicAppShell,
|
25
25
|
useS_authenticate,
|
26
26
|
utils_layout_getItemsWithoutLinks
|
27
|
-
} from "../chunk-
|
27
|
+
} from "../chunk-UHTR5TVI.mjs";
|
28
|
+
import {
|
29
|
+
enum_emailConfigModule
|
30
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
31
|
+
import "../chunk-K6S7R6LU.mjs";
|
28
32
|
import {
|
29
33
|
const_object_documentTypes
|
30
34
|
} from "../chunk-GFEMKKFH.mjs";
|
31
35
|
import {
|
32
36
|
const_object_colors
|
33
37
|
} from "../chunk-NWBLJ3W3.mjs";
|
34
|
-
import {
|
35
|
-
enum_emailConfigModule
|
36
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
37
|
-
import "../chunk-K6S7R6LU.mjs";
|
38
38
|
import {
|
39
39
|
baseAxios_default,
|
40
40
|
useQ_AQ_GetAQModule,
|
@@ -5020,7 +5020,7 @@ function F_authenticate_SplashPage() {
|
|
5020
5020
|
return /* @__PURE__ */ jsx91(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
5021
5021
|
}
|
5022
5022
|
|
5023
|
-
// src/modules-features/authenticate/
|
5023
|
+
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5024
5024
|
import {
|
5025
5025
|
Anchor,
|
5026
5026
|
BackgroundImage,
|
@@ -5042,17 +5042,20 @@ import Link from "next/link";
|
|
5042
5042
|
import { useRouter as useRouter3 } from "next/navigation";
|
5043
5043
|
import { useEffect as useEffect12, useState as useState9 } from "react";
|
5044
5044
|
|
5045
|
-
// src/modules-features/authenticate/
|
5045
|
+
// src/modules-features/authenticate/F_authenticate_Login/css.module.css
|
5046
5046
|
var css_default = {};
|
5047
5047
|
|
5048
|
-
// src/modules-features/authenticate/
|
5048
|
+
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5049
5049
|
import { jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
|
5050
5050
|
function F_authenticate_Login({
|
5051
|
+
header,
|
5051
5052
|
redirectUrlAfterLogin = "/admin/dashboard",
|
5052
5053
|
additionalActions,
|
5053
5054
|
backgroundImage = "/imgs/0/IMG0AuthBackground.png",
|
5054
5055
|
onSuccess,
|
5055
|
-
showLoginButton = true
|
5056
|
+
showLoginButton = true,
|
5057
|
+
showSaveLogin = true,
|
5058
|
+
showForgotPassword = true
|
5056
5059
|
}) {
|
5057
5060
|
const router = useRouter3();
|
5058
5061
|
const authenticate_store = useS_authenticate();
|
@@ -5116,7 +5119,7 @@ function F_authenticate_Login({
|
|
5116
5119
|
src: backgroundImage,
|
5117
5120
|
h: "100vh",
|
5118
5121
|
children: /* @__PURE__ */ jsx92(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs61(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
5119
|
-
/* @__PURE__ */ jsxs61(Flex3, { direction: "column", mb: "md", children: [
|
5122
|
+
header ? header : /* @__PURE__ */ jsxs61(Flex3, { direction: "column", mb: "md", children: [
|
5120
5123
|
/* @__PURE__ */ jsx92(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
5121
5124
|
/* @__PURE__ */ jsxs61(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
5122
5125
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
@@ -5141,7 +5144,7 @@ function F_authenticate_Login({
|
|
5141
5144
|
})
|
5142
5145
|
),
|
5143
5146
|
/* @__PURE__ */ jsxs61(Group4, { justify: "space-between", children: [
|
5144
|
-
/* @__PURE__ */ jsx92(
|
5147
|
+
showSaveLogin && /* @__PURE__ */ jsx92(
|
5145
5148
|
Checkbox3,
|
5146
5149
|
{
|
5147
5150
|
checked: authenticate_store.state.saveLogin,
|
@@ -5149,7 +5152,7 @@ function F_authenticate_Login({
|
|
5149
5152
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
5150
5153
|
}
|
5151
5154
|
),
|
5152
|
-
/* @__PURE__ */ jsx92(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5155
|
+
showForgotPassword && /* @__PURE__ */ jsx92(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5153
5156
|
] }),
|
5154
5157
|
showLoginButton && /* @__PURE__ */ jsx92(
|
5155
5158
|
Button3,
|
package/package.json
CHANGED
File without changes
|