aq-fe-framework 0.1.364 → 0.1.365
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.
|
@@ -205,7 +205,8 @@ function MyButtonCreateUpdate({
|
|
|
205
205
|
resetFormWhenSubmit = true,
|
|
206
206
|
children,
|
|
207
207
|
disclosure: externalDisclosure,
|
|
208
|
-
isUpdate = false
|
|
208
|
+
isUpdate = false,
|
|
209
|
+
scrollAreaAutosizeProps
|
|
209
210
|
}) {
|
|
210
211
|
const theme = useMantineColorScheme();
|
|
211
212
|
const defaultDisclosure = useDisclosure();
|
|
@@ -286,12 +287,13 @@ function MyButtonCreateUpdate({
|
|
|
286
287
|
children: [
|
|
287
288
|
/* @__PURE__ */ jsx3(
|
|
288
289
|
ScrollArea.Autosize,
|
|
289
|
-
{
|
|
290
|
+
__spreadProps(__spreadValues({
|
|
290
291
|
w: modalProps == null ? void 0 : modalProps.size,
|
|
291
292
|
offsetScrollbars: true,
|
|
292
|
-
mah: (modalProps == null ? void 0 : modalProps.fullScreen) ? "calc(100vh - 140px)" : "75vh"
|
|
293
|
+
mah: (modalProps == null ? void 0 : modalProps.fullScreen) ? "calc(100vh - 140px)" : "75vh"
|
|
294
|
+
}, scrollAreaAutosizeProps), {
|
|
293
295
|
children: /* @__PURE__ */ jsx3(MyFlexColumn, { children })
|
|
294
|
-
}
|
|
296
|
+
})
|
|
295
297
|
),
|
|
296
298
|
/* @__PURE__ */ jsx3(Space, {}),
|
|
297
299
|
/* @__PURE__ */ jsx3(MyButton, { fullWidth: true, actionType: "create" })
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { t as type_action } from '../types-B5rmBuXz.mjs';
|
|
3
|
-
import { ActionIconProps, ButtonProps, ModalProps, TextProps, GroupProps, ThemeIconProps, InputWrapperProps,
|
|
3
|
+
import { ActionIconProps, ButtonProps, ModalProps, ScrollAreaAutosizeProps, TextProps, GroupProps, ThemeIconProps, InputWrapperProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
|
6
6
|
import { AxiosResponse } from 'axios';
|
|
@@ -26,6 +26,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
|
26
26
|
modalProps?: Omit<ModalProps, "opened" | "onClose">;
|
|
27
27
|
actionIconProps?: ActionIconProps;
|
|
28
28
|
buttonProps?: ButtonProps;
|
|
29
|
+
scrollAreaAutosizeProps?: ScrollAreaAutosizeProps;
|
|
29
30
|
isUpdate?: boolean;
|
|
30
31
|
onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
|
|
31
32
|
onSuccess?: () => void;
|
|
@@ -36,7 +37,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
|
|
|
36
37
|
disclosure?: ReturnType<typeof useDisclosure>;
|
|
37
38
|
children?: ReactNode;
|
|
38
39
|
}
|
|
39
|
-
declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
|
|
40
41
|
|
|
41
42
|
interface CoreButtonModalProps {
|
|
42
43
|
children?: ReactNode;
|
package/dist/core/index.mjs
CHANGED
|
@@ -2,10 +2,6 @@ export { I as IEmailConfig } from '../EmailConfig-Bza2PzTi.mjs';
|
|
|
2
2
|
export { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
|
|
3
3
|
import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
|
|
4
4
|
|
|
5
|
-
interface IPageContent extends IBaseEntity {
|
|
6
|
-
description?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
5
|
interface IFile {
|
|
10
6
|
fileName?: string | undefined;
|
|
11
7
|
fileExtension?: string | undefined;
|
|
@@ -55,4 +51,8 @@ interface IUser extends IBaseEntity {
|
|
|
55
51
|
email?: string;
|
|
56
52
|
}
|
|
57
53
|
|
|
54
|
+
interface IPageContent extends IBaseEntity {
|
|
55
|
+
description?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
58
|
export { IBaseEntity, type IDocument, type IFile, type IPageContent, type IPagePermission, type IRole, type IUser };
|
|
@@ -5,6 +5,12 @@ import {
|
|
|
5
5
|
utils_converter_enumToSelectOptions,
|
|
6
6
|
utils_file_fileToAQDocumentType
|
|
7
7
|
} from "../chunk-VJUY7DLP.mjs";
|
|
8
|
+
import {
|
|
9
|
+
baseColumns
|
|
10
|
+
} from "../chunk-2SBUKAGS.mjs";
|
|
11
|
+
import {
|
|
12
|
+
U0DateToDDMMYYYString
|
|
13
|
+
} from "../chunk-I2XIN2R3.mjs";
|
|
8
14
|
import {
|
|
9
15
|
F_authenticate_Logout,
|
|
10
16
|
MyActionIconDelete,
|
|
@@ -32,25 +38,19 @@ import {
|
|
|
32
38
|
createGenericStore
|
|
33
39
|
} from "../chunk-Y3YGC5IH.mjs";
|
|
34
40
|
import "../chunk-5U2JSHSJ.mjs";
|
|
35
|
-
import {
|
|
36
|
-
const_object_documentTypes
|
|
37
|
-
} from "../chunk-BZMQOGL6.mjs";
|
|
38
|
-
import {
|
|
39
|
-
baseColumns
|
|
40
|
-
} from "../chunk-2SBUKAGS.mjs";
|
|
41
|
-
import {
|
|
42
|
-
U0DateToDDMMYYYString
|
|
43
|
-
} from "../chunk-I2XIN2R3.mjs";
|
|
44
41
|
import {
|
|
45
42
|
MyButton as MyButton2,
|
|
46
43
|
MyDataTableSelectOne,
|
|
47
44
|
MyTextInput as MyTextInput2
|
|
48
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-AHO6TFZV.mjs";
|
|
49
46
|
import {
|
|
50
47
|
MyDataTable,
|
|
51
48
|
MyFlexColumn,
|
|
52
49
|
MyFlexRow
|
|
53
50
|
} from "../chunk-GEYCGM75.mjs";
|
|
51
|
+
import {
|
|
52
|
+
const_object_documentTypes
|
|
53
|
+
} from "../chunk-BZMQOGL6.mjs";
|
|
54
54
|
import {
|
|
55
55
|
const_object_colors
|
|
56
56
|
} from "../chunk-7ORPZMGL.mjs";
|
package/dist/utils/index.mjs
CHANGED
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
utils_time_getCurrentTimeString,
|
|
19
19
|
utils_validator_validateCode
|
|
20
20
|
} from "../chunk-VJUY7DLP.mjs";
|
|
21
|
-
import {
|
|
22
|
-
utils_pdf_download
|
|
23
|
-
} from "../chunk-5U2JSHSJ.mjs";
|
|
24
21
|
import {
|
|
25
22
|
U0DateToDDMMYYYString,
|
|
26
23
|
utils_date_dateToDDMMYYYString,
|
|
27
24
|
utils_date_formatToDateTimeStartEnd,
|
|
28
25
|
utils_date_getHHmm
|
|
29
26
|
} from "../chunk-I2XIN2R3.mjs";
|
|
27
|
+
import {
|
|
28
|
+
utils_pdf_download
|
|
29
|
+
} from "../chunk-5U2JSHSJ.mjs";
|
|
30
30
|
import {
|
|
31
31
|
utils_notification_show
|
|
32
32
|
} from "../chunk-7ZCOFATU.mjs";
|