aq-fe-framework 0.1.528 → 0.1.530
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 +3 -10
- 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
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { t as type_action } from '../types-DbltiEAP.mjs';
|
3
|
-
import {
|
3
|
+
import { ActionIconProps, ButtonProps, ModalProps, ScrollAreaAutosizeProps, TextProps, PaperProps, GroupProps, ThemeIconProps, InputWrapperProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
4
4
|
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
5
5
|
import { UseFormReturnType } from '@mantine/form';
|
6
6
|
import { AxiosResponse } from 'axios';
|
@@ -11,14 +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
|
-
|
15
|
-
interface MyModalDeleteProps extends Omit<ModalProps, "opened" | "onClose"> {
|
16
|
-
disclosure: ReturnType<typeof useDisclosure>;
|
17
|
-
contextData?: string;
|
18
|
-
onSubmit?: () => void;
|
19
|
-
submitLoading?: boolean;
|
20
|
-
}
|
21
|
-
declare function MyModalDelete({ disclosure, contextData, onSubmit, submitLoading, ...rest }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
|
14
|
+
export { a as MyModalDelete, M as MyModalDeleteProps } from '../MyModalDelete-D-gPkYBS.mjs';
|
22
15
|
|
23
16
|
interface MyActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ActionIconProps {
|
24
17
|
actionType?: type_action;
|
@@ -204,4 +197,4 @@ interface MyFlexEndProps extends GroupProps {
|
|
204
197
|
}
|
205
198
|
declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
|
206
199
|
|
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,
|
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";
|
22
23
|
import {
|
23
24
|
MyModalDelete
|
24
25
|
} from "../chunk-LWFI4LKU.mjs";
|
25
26
|
import "../chunk-PFOC2A7E.mjs";
|
26
27
|
import "../chunk-U62R2QKJ.mjs";
|
27
28
|
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,6 +17,9 @@ 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";
|
20
23
|
import "../chunk-LWFI4LKU.mjs";
|
21
24
|
import {
|
22
25
|
F_authenticate_Logout,
|
@@ -48,9 +51,6 @@ import {
|
|
48
51
|
createGenericStore
|
49
52
|
} from "../chunk-U62R2QKJ.mjs";
|
50
53
|
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 };
|