aq-fe-framework 0.1.568 → 0.1.570
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-BfH3xRRW.d.mts +11 -0
- package/dist/{chunk-RHSY3L7P.mjs → chunk-IHBXELA5.mjs} +2 -6
- package/dist/{chunk-JGU5ZCJ6.mjs → chunk-RDMOBCWH.mjs} +11 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/coreService/index.d.mts +2 -3
- package/dist/coreService/index.mjs +16 -12
- package/dist/modules-features/index.mjs +2 -2
- package/dist/{types-R8qp2Kru.d.mts → types-BwUJ1iPV.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/MyModalDelete-D-gPkYBS.d.mts +0 -13
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ModalProps } from '@mantine/core';
|
|
3
|
+
|
|
4
|
+
interface MyModalDeleteProps extends ModalProps {
|
|
5
|
+
contextData?: string;
|
|
6
|
+
onSubmit?: () => void;
|
|
7
|
+
submitLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function MyModalDelete({ contextData, onSubmit, submitLoading, ...rest }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { type MyModalDeleteProps as M, MyModalDelete as a };
|
|
@@ -12,12 +12,10 @@ import { Group, Highlight, Modal } from "@mantine/core";
|
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
function MyModalDelete(_a) {
|
|
14
14
|
var _b = _a, {
|
|
15
|
-
disclosure,
|
|
16
15
|
contextData,
|
|
17
16
|
onSubmit,
|
|
18
17
|
submitLoading
|
|
19
18
|
} = _b, rest = __objRest(_b, [
|
|
20
|
-
"disclosure",
|
|
21
19
|
"contextData",
|
|
22
20
|
"onSubmit",
|
|
23
21
|
"submitLoading"
|
|
@@ -25,9 +23,7 @@ function MyModalDelete(_a) {
|
|
|
25
23
|
return /* @__PURE__ */ jsxs(
|
|
26
24
|
Modal,
|
|
27
25
|
__spreadProps(__spreadValues({
|
|
28
|
-
title: "X\xF3a d\u1EEF li\u1EC7u"
|
|
29
|
-
onClose: disclosure[1].close,
|
|
30
|
-
opened: disclosure[0]
|
|
26
|
+
title: "X\xF3a d\u1EEF li\u1EC7u"
|
|
31
27
|
}, rest), {
|
|
32
28
|
children: [
|
|
33
29
|
/* @__PURE__ */ jsx(
|
|
@@ -56,7 +52,7 @@ function MyModalDelete(_a) {
|
|
|
56
52
|
MyButton,
|
|
57
53
|
{
|
|
58
54
|
crudType: "cancel",
|
|
59
|
-
onClick:
|
|
55
|
+
onClick: rest.onClose
|
|
60
56
|
}
|
|
61
57
|
)
|
|
62
58
|
] })
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
IconEdit,
|
|
31
31
|
IconFileExport,
|
|
32
32
|
IconFileImport,
|
|
33
|
+
IconPencil,
|
|
33
34
|
IconPlus,
|
|
34
35
|
IconPrinter,
|
|
35
36
|
IconTrash,
|
|
@@ -84,6 +85,10 @@ var getActionConfig = (colorScheme) => ({
|
|
|
84
85
|
tempDelete: {
|
|
85
86
|
color: "red",
|
|
86
87
|
children: /* @__PURE__ */ jsx(IconX, {})
|
|
88
|
+
},
|
|
89
|
+
tempUpdate: {
|
|
90
|
+
color: "yellow",
|
|
91
|
+
children: /* @__PURE__ */ jsx(IconPencil, {})
|
|
87
92
|
}
|
|
88
93
|
});
|
|
89
94
|
function MyActionIcon(_a) {
|
|
@@ -110,6 +115,7 @@ import {
|
|
|
110
115
|
IconDeviceFloppy as IconDeviceFloppy2,
|
|
111
116
|
IconDownload,
|
|
112
117
|
IconEdit as IconEdit2,
|
|
118
|
+
IconPencil as IconPencil2,
|
|
113
119
|
IconPlus as IconPlus2,
|
|
114
120
|
IconPrinter as IconPrinter2,
|
|
115
121
|
IconSearch,
|
|
@@ -179,7 +185,11 @@ var getActionConfig2 = (colorScheme) => ({
|
|
|
179
185
|
leftSection: /* @__PURE__ */ jsx2(IconSearch, {}),
|
|
180
186
|
children: "T\xECm"
|
|
181
187
|
},
|
|
182
|
-
tempDelete: {}
|
|
188
|
+
tempDelete: {},
|
|
189
|
+
tempUpdate: {
|
|
190
|
+
color: "yellow",
|
|
191
|
+
leftSection: /* @__PURE__ */ jsx2(IconPencil2, {})
|
|
192
|
+
}
|
|
183
193
|
});
|
|
184
194
|
function MyButton(_a) {
|
|
185
195
|
var _b = _a, { children, actionType } = _b, rest = __objRest(_b, ["children", "actionType"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode, ComponentProps } from 'react';
|
|
3
|
-
import { t as type_action, a as type_mantineSize } from '../types-
|
|
3
|
+
import { t as type_action, a as type_mantineSize } from '../types-BwUJ1iPV.mjs';
|
|
4
4
|
import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
|
|
5
5
|
import { AxiosResponse } from 'axios';
|
|
6
6
|
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { t as type_action } from '../types-
|
|
2
|
+
import { t as type_action } from '../types-BwUJ1iPV.mjs';
|
|
3
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';
|
|
@@ -12,7 +12,7 @@ import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query
|
|
|
12
12
|
import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
|
|
13
13
|
import { RichTextEditorProps, RichTextEditorToolbarProps, RichTextEditorContentProps } from '@mantine/tiptap';
|
|
14
14
|
import { I as IBaseEntity } from '../IBaseEntity-ChMy9RzQ.mjs';
|
|
15
|
-
export { a as MyModalDelete, M as MyModalDeleteProps } from '../MyModalDelete-
|
|
15
|
+
export { a as MyModalDelete, M as MyModalDeleteProps } from '../MyModalDelete-BfH3xRRW.mjs';
|
|
16
16
|
|
|
17
17
|
interface MyActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ActionIconProps {
|
|
18
18
|
actionType?: type_action;
|
package/dist/core/index.mjs
CHANGED
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
MyStatsCard,
|
|
21
21
|
MyTextInput,
|
|
22
22
|
MyWeeklySessionSchedulerPicker
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-RDMOBCWH.mjs";
|
|
24
24
|
import "../chunk-GFEMKKFH.mjs";
|
|
25
25
|
import {
|
|
26
26
|
MyModalDelete
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-IHBXELA5.mjs";
|
|
28
28
|
import "../chunk-HETWN2YJ.mjs";
|
|
29
29
|
import "../chunk-U62R2QKJ.mjs";
|
|
30
30
|
import "../chunk-5U2JSHSJ.mjs";
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { M as MyModalDeleteProps } from '../MyModalDelete-
|
|
2
|
+
import { M as MyModalDeleteProps } from '../MyModalDelete-BfH3xRRW.mjs';
|
|
3
3
|
import { AxiosResponse } from 'axios';
|
|
4
4
|
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
|
5
5
|
import '@mantine/core';
|
|
6
|
-
import '@mantine/hooks';
|
|
7
6
|
import '../IBaseEntity-ChMy9RzQ.mjs';
|
|
8
7
|
|
|
9
8
|
interface MyModalDeleteServiceProps<IRes> extends MyModalDeleteProps {
|
|
10
9
|
axiosFn: () => Promise<AxiosResponse<MyApiResponse<IRes>>>;
|
|
11
10
|
}
|
|
12
|
-
declare function MyModalDeleteService<IRes>({
|
|
11
|
+
declare function MyModalDeleteService<IRes>({ axiosFn, contextData, ...rest }: MyModalDeleteServiceProps<IRes>): react_jsx_runtime.JSX.Element;
|
|
13
12
|
|
|
14
13
|
export { MyModalDeleteService, type MyModalDeleteServiceProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-IHBXELA5.mjs";
|
|
4
4
|
import "../chunk-HETWN2YJ.mjs";
|
|
5
5
|
import "../chunk-U62R2QKJ.mjs";
|
|
6
6
|
import "../chunk-5U2JSHSJ.mjs";
|
|
@@ -9,39 +9,43 @@ import {
|
|
|
9
9
|
useMyReactMutation
|
|
10
10
|
} from "../chunk-HZAKEST5.mjs";
|
|
11
11
|
import "../chunk-7ZCOFATU.mjs";
|
|
12
|
-
import
|
|
12
|
+
import {
|
|
13
|
+
__objRest,
|
|
14
|
+
__spreadValues
|
|
15
|
+
} from "../chunk-FWCSY2DS.mjs";
|
|
13
16
|
|
|
14
17
|
// src/coreService/overlays/MyModalDeleteService.tsx
|
|
15
18
|
import { useState } from "react";
|
|
16
19
|
import { jsx } from "react/jsx-runtime";
|
|
17
|
-
function MyModalDeleteService({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
20
|
+
function MyModalDeleteService(_a) {
|
|
21
|
+
var _b = _a, {
|
|
22
|
+
axiosFn,
|
|
23
|
+
contextData
|
|
24
|
+
} = _b, rest = __objRest(_b, [
|
|
25
|
+
"axiosFn",
|
|
26
|
+
"contextData"
|
|
27
|
+
]);
|
|
22
28
|
const loadingState = useState();
|
|
23
29
|
const mutation = useMyReactMutation({
|
|
24
30
|
axiosFn,
|
|
25
31
|
mutationType: "delete",
|
|
26
32
|
options: {
|
|
27
33
|
onSuccess: () => {
|
|
34
|
+
rest.onClose();
|
|
28
35
|
loadingState[1];
|
|
29
|
-
disclosure[1].close();
|
|
30
|
-
close();
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
});
|
|
34
39
|
return /* @__PURE__ */ jsx(
|
|
35
40
|
MyModalDelete,
|
|
36
|
-
{
|
|
37
|
-
disclosure,
|
|
41
|
+
__spreadValues({
|
|
38
42
|
contextData,
|
|
39
43
|
onSubmit: () => {
|
|
40
44
|
mutation.mutate();
|
|
41
45
|
loadingState[1](true);
|
|
42
46
|
},
|
|
43
47
|
submitLoading: mutation.isPending
|
|
44
|
-
}
|
|
48
|
+
}, rest)
|
|
45
49
|
);
|
|
46
50
|
}
|
|
47
51
|
export {
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
MyButton as MyButton2,
|
|
16
16
|
MyDataTableSelectOne,
|
|
17
17
|
MyTextInput as MyTextInput2
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-RDMOBCWH.mjs";
|
|
19
19
|
import {
|
|
20
20
|
const_object_documentTypes
|
|
21
21
|
} from "../chunk-GFEMKKFH.mjs";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-IHBXELA5.mjs";
|
|
23
23
|
import {
|
|
24
24
|
F_authenticate_Logout,
|
|
25
25
|
MyActionIconDelete,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
2
|
|
|
3
3
|
type type_mantineSize = number | MantineSize | (string & {}) | undefined;
|
|
4
|
-
type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete";
|
|
4
|
+
type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete" | "tempUpdate";
|
|
5
5
|
|
|
6
6
|
export type { type_mantineSize as a, type_action as t };
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
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 };
|