aq-fe-framework 0.1.529 → 0.1.531
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/MyModalDelete-D-gPkYBS.d.mts +13 -0
- package/dist/components/index.d.mts +1 -1
- package/dist/core/index.d.mts +2 -9
- package/dist/core/index.mjs +1 -1
- package/dist/coreService/index.d.mts +13 -1
- package/dist/coreService/index.mjs +39 -2
- package/dist/modules-features/index.mjs +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/{utils_file-Dy33UVzg.d.mts → utils_file-G8NTHCO-.d.mts} +1 -1
- package/package.json +1 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
import { ModalProps } from '@mantine/core';
|
3
|
+
import { useDisclosure } from '@mantine/hooks';
|
4
|
+
|
5
|
+
interface MyModalDeleteProps extends Omit<ModalProps, "opened" | "onClose"> {
|
6
|
+
disclosure: ReturnType<typeof useDisclosure>;
|
7
|
+
contextData?: string;
|
8
|
+
onSubmit?: () => void;
|
9
|
+
submitLoading?: boolean;
|
10
|
+
}
|
11
|
+
declare function MyModalDelete({ disclosure, contextData, onSubmit, submitLoading, ...rest }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
|
12
|
+
|
13
|
+
export { type MyModalDeleteProps as M, MyModalDelete as a };
|
@@ -8,7 +8,7 @@ import { useDisclosure, useListState } from '@mantine/hooks';
|
|
8
8
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
9
9
|
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-BOu5-Gvr.mjs';
|
10
10
|
export { a as BasicAppShell, B as BasicAppShell_transformMenuToEnum, f as flattenMenuGroups, g as groupToTwoLevels, u as utils_layout_getItemsWithoutLinks } from '../BasicAppShell-BOu5-Gvr.mjs';
|
11
|
-
import { I as IUtils_Excel_ColumnConfig,
|
11
|
+
import { I as IUtils_Excel_ColumnConfig, a as IAQFileDetail } from '../utils_file-G8NTHCO-.mjs';
|
12
12
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
13
13
|
import { DateInputProps } from '@mantine/dates';
|
14
14
|
import { RichTextEditorProps } from '@mantine/tiptap';
|
package/dist/core/index.d.mts
CHANGED
@@ -11,6 +11,7 @@ import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query
|
|
11
11
|
import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
|
12
12
|
import { RichTextEditorProps, RichTextEditorToolbarProps, RichTextEditorContentProps } from '@mantine/tiptap';
|
13
13
|
import { I as IBaseEntity } from '../IBaseEntity-ChMy9RzQ.mjs';
|
14
|
+
export { a as MyModalDelete, M as MyModalDeleteProps } from '../MyModalDelete-D-gPkYBS.mjs';
|
14
15
|
|
15
16
|
interface MyActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ActionIconProps {
|
16
17
|
actionType?: type_action;
|
@@ -196,12 +197,4 @@ interface MyFlexEndProps extends GroupProps {
|
|
196
197
|
}
|
197
198
|
declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
|
198
199
|
|
199
|
-
|
200
|
-
disclosure: ReturnType<typeof useDisclosure>;
|
201
|
-
contextData?: string;
|
202
|
-
onSubmit?: () => void;
|
203
|
-
submitLoading?: boolean;
|
204
|
-
}
|
205
|
-
declare function MyModalDelete({ disclosure, contextData, onSubmit, submitLoading, ...rest }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
|
206
|
-
|
207
|
-
export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalForm, type MyButtonModalFormProps, type MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyModalDelete, type MyModalDeleteProps, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectFromAPIProps, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
200
|
+
export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalForm, type MyButtonModalFormProps, type MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectFromAPIProps, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
package/dist/core/index.mjs
CHANGED
@@ -19,13 +19,13 @@ import {
|
|
19
19
|
MyTextInput,
|
20
20
|
MyWeeklySessionSchedulerPicker
|
21
21
|
} from "../chunk-IMBXTNPQ.mjs";
|
22
|
-
import "../chunk-GFEMKKFH.mjs";
|
23
22
|
import {
|
24
23
|
MyModalDelete
|
25
24
|
} from "../chunk-LWFI4LKU.mjs";
|
26
25
|
import "../chunk-PFOC2A7E.mjs";
|
27
26
|
import "../chunk-U62R2QKJ.mjs";
|
28
27
|
import "../chunk-5U2JSHSJ.mjs";
|
28
|
+
import "../chunk-GFEMKKFH.mjs";
|
29
29
|
import "../chunk-OMJJAHOC.mjs";
|
30
30
|
import "../chunk-K6S7R6LU.mjs";
|
31
31
|
import "../chunk-DH6RVK5I.mjs";
|
@@ -1,2 +1,14 @@
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
import { M as MyModalDeleteProps } from '../MyModalDelete-D-gPkYBS.mjs';
|
3
|
+
import { AxiosResponse } from 'axios';
|
4
|
+
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
5
|
+
import '@mantine/core';
|
6
|
+
import '@mantine/hooks';
|
7
|
+
import '../IBaseEntity-ChMy9RzQ.mjs';
|
1
8
|
|
2
|
-
|
9
|
+
interface MyModalDeleteServiceProps<IRes> extends MyModalDeleteProps {
|
10
|
+
axiosFn: () => Promise<AxiosResponse<MyApiResponse<IRes>>>;
|
11
|
+
}
|
12
|
+
declare function MyModalDeleteService<IRes>({ disclosure, axiosFn, contextData }: MyModalDeleteServiceProps<IRes>): react_jsx_runtime.JSX.Element;
|
13
|
+
|
14
|
+
export { MyModalDeleteService };
|
@@ -1,12 +1,49 @@
|
|
1
|
-
import
|
1
|
+
import {
|
2
|
+
MyModalDelete
|
3
|
+
} from "../chunk-LWFI4LKU.mjs";
|
2
4
|
import "../chunk-PFOC2A7E.mjs";
|
3
5
|
import "../chunk-U62R2QKJ.mjs";
|
4
6
|
import "../chunk-5U2JSHSJ.mjs";
|
5
7
|
import "../chunk-OMJJAHOC.mjs";
|
6
|
-
import
|
8
|
+
import {
|
9
|
+
useMyReactMutation
|
10
|
+
} from "../chunk-DH6RVK5I.mjs";
|
7
11
|
import "../chunk-7ZCOFATU.mjs";
|
8
12
|
import "../chunk-FWCSY2DS.mjs";
|
9
13
|
|
10
14
|
// src/coreService/overlays/MyModalDeleteService.tsx
|
11
15
|
import { useState } from "react";
|
12
16
|
import { jsx } from "react/jsx-runtime";
|
17
|
+
function MyModalDeleteService({
|
18
|
+
disclosure,
|
19
|
+
axiosFn,
|
20
|
+
contextData
|
21
|
+
}) {
|
22
|
+
const loadingState = useState();
|
23
|
+
const mutation = useMyReactMutation({
|
24
|
+
axiosFn,
|
25
|
+
mutationType: "delete",
|
26
|
+
options: {
|
27
|
+
onSuccess: () => {
|
28
|
+
loadingState[1];
|
29
|
+
disclosure[1].close();
|
30
|
+
close();
|
31
|
+
}
|
32
|
+
}
|
33
|
+
});
|
34
|
+
return /* @__PURE__ */ jsx(
|
35
|
+
MyModalDelete,
|
36
|
+
{
|
37
|
+
disclosure,
|
38
|
+
contextData,
|
39
|
+
onSubmit: () => {
|
40
|
+
mutation.mutate();
|
41
|
+
loadingState[1](true);
|
42
|
+
},
|
43
|
+
submitLoading: mutation.isPending
|
44
|
+
}
|
45
|
+
);
|
46
|
+
}
|
47
|
+
export {
|
48
|
+
MyModalDeleteService
|
49
|
+
};
|
@@ -17,9 +17,6 @@ import {
|
|
17
17
|
MyDataTableSelectOne,
|
18
18
|
MyTextInput as MyTextInput2
|
19
19
|
} from "../chunk-IMBXTNPQ.mjs";
|
20
|
-
import {
|
21
|
-
const_object_documentTypes
|
22
|
-
} from "../chunk-GFEMKKFH.mjs";
|
23
20
|
import "../chunk-LWFI4LKU.mjs";
|
24
21
|
import {
|
25
22
|
F_authenticate_Logout,
|
@@ -51,6 +48,9 @@ import {
|
|
51
48
|
createGenericStore
|
52
49
|
} from "../chunk-U62R2QKJ.mjs";
|
53
50
|
import "../chunk-5U2JSHSJ.mjs";
|
51
|
+
import {
|
52
|
+
const_object_documentTypes
|
53
|
+
} from "../chunk-GFEMKKFH.mjs";
|
54
54
|
import {
|
55
55
|
const_object_colors
|
56
56
|
} from "../chunk-OMJJAHOC.mjs";
|
package/dist/utils/index.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { a as IAQFileDetail, I as IUtils_Excel_ColumnConfig, b as utils_excel_download, u as utils_excel_exportExcel, d as utils_file_AQDocumentTypeToFile, e as utils_file_docxtemplaterDownload, c as utils_file_fileToAQDocumentType } from '../utils_file-G8NTHCO-.mjs';
|
2
2
|
import { I as IBaseEntity } from '../IBaseEntity-ChMy9RzQ.mjs';
|
3
3
|
import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
|
4
4
|
import { DefaultMantineColor } from '@mantine/core';
|
@@ -33,4 +33,4 @@ declare function utils_file_docxtemplaterDownload({ data, filePath, fileName }:
|
|
33
33
|
fileName?: string;
|
34
34
|
}): Promise<void>;
|
35
35
|
|
36
|
-
export { type IUtils_Excel_ColumnConfig as I,
|
36
|
+
export { type IUtils_Excel_ColumnConfig as I, type IAQFileDetail as a, utils_excel_download as b, utils_file_fileToAQDocumentType as c, utils_file_AQDocumentTypeToFile as d, utils_file_docxtemplaterDownload as e, utils_excel_exportExcel as u };
|