aq-fe-framework 0.1.516 → 0.1.518
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-OIIBQARW.mjs → chunk-3XSLM5GI.mjs} +47 -2
- package/dist/{chunk-AKZQQ7BT.mjs → chunk-CHSXCM2D.mjs} +4 -4
- package/dist/{chunk-6OZGJBBA.mjs → chunk-S7JWSEIN.mjs} +53 -8
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +3 -3
- package/dist/core/index.d.mts +11 -3
- package/dist/core/index.mjs +7 -5
- package/dist/hooks/index.d.mts +26 -5
- package/dist/hooks/index.mjs +3 -1
- package/dist/modules-features/index.mjs +22 -23
- package/package.json +1 -1
@@ -3,6 +3,50 @@ import {
|
|
3
3
|
__spreadValues
|
4
4
|
} from "./chunk-FWCSY2DS.mjs";
|
5
5
|
|
6
|
+
// src/hooks/useMutationForm.ts
|
7
|
+
import { useForm } from "@mantine/form";
|
8
|
+
import { useDisclosure } from "@mantine/hooks";
|
9
|
+
import { useEffect } from "react";
|
10
|
+
function useCreateUpdate({
|
11
|
+
initValues,
|
12
|
+
createFn,
|
13
|
+
updateFn,
|
14
|
+
mapInitToForm,
|
15
|
+
mapFormToMutateValue,
|
16
|
+
validate
|
17
|
+
}) {
|
18
|
+
const disclosure = useDisclosure();
|
19
|
+
const form = useForm({
|
20
|
+
mode: "uncontrolled",
|
21
|
+
validate
|
22
|
+
});
|
23
|
+
const mutation = useMyReactMutation({
|
24
|
+
axiosFn: (values) => initValues ? updateFn(values) : createFn(values),
|
25
|
+
mutationType: initValues ? "update" : "create",
|
26
|
+
options: {
|
27
|
+
onSuccess: () => {
|
28
|
+
disclosure[1].close();
|
29
|
+
form.reset();
|
30
|
+
}
|
31
|
+
}
|
32
|
+
});
|
33
|
+
useEffect(() => {
|
34
|
+
if (initValues) {
|
35
|
+
form.initialize(mapInitToForm(initValues));
|
36
|
+
}
|
37
|
+
}, [initValues]);
|
38
|
+
const handleSubmit = (formValues) => {
|
39
|
+
const entity = mapFormToMutateValue(formValues, initValues);
|
40
|
+
mutation.mutate(entity);
|
41
|
+
};
|
42
|
+
return {
|
43
|
+
form,
|
44
|
+
disclosure,
|
45
|
+
mutation,
|
46
|
+
handleSubmit
|
47
|
+
};
|
48
|
+
}
|
49
|
+
|
6
50
|
// src/hooks/useMyDevice.ts
|
7
51
|
import { useMediaQuery } from "@mantine/hooks";
|
8
52
|
function useMyDevice() {
|
@@ -119,13 +163,13 @@ baseAxios.interceptors.request.use(
|
|
119
163
|
var baseAxios_default = baseAxios;
|
120
164
|
|
121
165
|
// src/hooks/custom-hooks/useLoadAxiosConfig.ts
|
122
|
-
import { useEffect, useState } from "react";
|
166
|
+
import { useEffect as useEffect2, useState } from "react";
|
123
167
|
var useLoadAxiosConfig = ({
|
124
168
|
axiosInstance = baseAxios_default,
|
125
169
|
url
|
126
170
|
}) => {
|
127
171
|
const [flag, setFlag] = useState(false);
|
128
|
-
|
172
|
+
useEffect2(() => {
|
129
173
|
const loadConfig = async () => {
|
130
174
|
try {
|
131
175
|
const res = await fetch("/config.json");
|
@@ -267,6 +311,7 @@ function useQ_SkillCenter_GetAll() {
|
|
267
311
|
}
|
268
312
|
|
269
313
|
export {
|
314
|
+
useCreateUpdate,
|
270
315
|
useMyDevice,
|
271
316
|
useMyRouter,
|
272
317
|
createBaseApi,
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
createGenericStore
|
3
|
-
} from "./chunk-U62R2QKJ.mjs";
|
4
1
|
import {
|
5
2
|
utils_pdf_download
|
6
3
|
} from "./chunk-5U2JSHSJ.mjs";
|
@@ -11,10 +8,13 @@ import {
|
|
11
8
|
baseAxios_default,
|
12
9
|
useMyReactMutation,
|
13
10
|
useQ_AQ_GetAQModule
|
14
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-3XSLM5GI.mjs";
|
15
12
|
import {
|
16
13
|
utils_notification_show
|
17
14
|
} from "./chunk-7ZCOFATU.mjs";
|
15
|
+
import {
|
16
|
+
createGenericStore
|
17
|
+
} from "./chunk-U62R2QKJ.mjs";
|
18
18
|
import {
|
19
19
|
__objRest,
|
20
20
|
__spreadProps,
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import {
|
2
|
+
MyButton,
|
2
3
|
MyDataTable,
|
3
4
|
MyFlexColumn,
|
4
5
|
MyFlexRow
|
5
|
-
} from "./chunk-
|
6
|
+
} from "./chunk-CHSXCM2D.mjs";
|
6
7
|
import {
|
7
8
|
const_object_colors
|
8
9
|
} from "./chunk-OMJJAHOC.mjs";
|
@@ -12,7 +13,7 @@ import {
|
|
12
13
|
import {
|
13
14
|
useMyReactMutation,
|
14
15
|
useMyReactQuery
|
15
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-3XSLM5GI.mjs";
|
16
17
|
import {
|
17
18
|
utils_notification_show
|
18
19
|
} from "./chunk-7ZCOFATU.mjs";
|
@@ -175,7 +176,7 @@ var getActionConfig2 = (colorScheme) => ({
|
|
175
176
|
children: "T\xECm"
|
176
177
|
}
|
177
178
|
});
|
178
|
-
function
|
179
|
+
function MyButton2(_a) {
|
179
180
|
var _b = _a, { children, actionType } = _b, rest = __objRest(_b, ["children", "actionType"]);
|
180
181
|
const { colorScheme } = useMantineColorScheme2();
|
181
182
|
if (!actionType) {
|
@@ -307,7 +308,7 @@ function MyButtonCreateUpdate({
|
|
307
308
|
})
|
308
309
|
),
|
309
310
|
/* @__PURE__ */ jsx4(Space, {}),
|
310
|
-
/* @__PURE__ */ jsx4(
|
311
|
+
/* @__PURE__ */ jsx4(MyButton2, { fullWidth: true, actionType: "save" })
|
311
312
|
]
|
312
313
|
}
|
313
314
|
)
|
@@ -346,7 +347,7 @@ function MyButtonModal({
|
|
346
347
|
onClick: disclosure == null ? void 0 : disclosure[1].open
|
347
348
|
}, actionIconProps)
|
348
349
|
) : /* @__PURE__ */ jsx6(
|
349
|
-
|
350
|
+
MyButton2,
|
350
351
|
__spreadValues({
|
351
352
|
onClick: disclosure == null ? void 0 : disclosure[1].open
|
352
353
|
}, buttonProps)
|
@@ -396,7 +397,7 @@ function MyButtonModalForm(_a) {
|
|
396
397
|
children: /* @__PURE__ */ jsx8("form", { onSubmit: form.onSubmit(onSubmit), children: /* @__PURE__ */ jsxs4(Stack, { children: [
|
397
398
|
children,
|
398
399
|
/* @__PURE__ */ jsx8(
|
399
|
-
|
400
|
+
MyButton2,
|
400
401
|
{
|
401
402
|
actionType: "save",
|
402
403
|
loading: isLoading
|
@@ -1057,9 +1058,52 @@ function MyFlexEnd2(_a) {
|
|
1057
1058
|
return /* @__PURE__ */ jsx21(Group5, __spreadProps(__spreadValues({ justify: "end", mt: "md" }, rest), { children }));
|
1058
1059
|
}
|
1059
1060
|
|
1061
|
+
// src/core/overlays/MyModalDelete.tsx
|
1062
|
+
import { Group as Group6, Highlight as Highlight2, Modal as Modal3 } from "@mantine/core";
|
1063
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
1064
|
+
function MyModalDelete({
|
1065
|
+
disclosure,
|
1066
|
+
contextData,
|
1067
|
+
handleSubmit,
|
1068
|
+
submitLoading
|
1069
|
+
}) {
|
1070
|
+
return /* @__PURE__ */ jsxs12(Modal3, { onClose: disclosure[1].close, opened: disclosure[0], children: [
|
1071
|
+
/* @__PURE__ */ jsx22(
|
1072
|
+
Highlight2,
|
1073
|
+
{
|
1074
|
+
highlight: contextData || [],
|
1075
|
+
color: "red.6",
|
1076
|
+
highlightStyles: {
|
1077
|
+
fontWeight: 700,
|
1078
|
+
WebkitBackgroundClip: "text",
|
1079
|
+
WebkitTextFillColor: "transparent"
|
1080
|
+
},
|
1081
|
+
children: `B\u1EA1n s\u1EAFp x\xF3a d\u1EEF li\u1EC7u ${contextData || ""}. H\xE0nh \u0111\u1ED9ng n\xE0y kh\xF4ng th\u1EC3 ho\xE0n t\xE1c. B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n ti\u1EBFp t\u1EE5c?`
|
1082
|
+
}
|
1083
|
+
),
|
1084
|
+
/* @__PURE__ */ jsxs12(Group6, { grow: true, children: [
|
1085
|
+
/* @__PURE__ */ jsx22(
|
1086
|
+
MyButton,
|
1087
|
+
{
|
1088
|
+
crudType: "delete",
|
1089
|
+
onClick: handleSubmit,
|
1090
|
+
loading: submitLoading
|
1091
|
+
}
|
1092
|
+
),
|
1093
|
+
/* @__PURE__ */ jsx22(
|
1094
|
+
MyButton,
|
1095
|
+
{
|
1096
|
+
crudType: "cancel",
|
1097
|
+
onClick: disclosure[1].close
|
1098
|
+
}
|
1099
|
+
)
|
1100
|
+
] })
|
1101
|
+
] });
|
1102
|
+
}
|
1103
|
+
|
1060
1104
|
export {
|
1061
1105
|
MyActionIcon,
|
1062
|
-
MyButton,
|
1106
|
+
MyButton2 as MyButton,
|
1063
1107
|
MyFlexColumn2 as MyFlexColumn,
|
1064
1108
|
MyButtonCreateUpdate,
|
1065
1109
|
MyButtonModal,
|
@@ -1076,5 +1120,6 @@ export {
|
|
1076
1120
|
MySelectFromAPI,
|
1077
1121
|
MyTextInput,
|
1078
1122
|
MyWeeklySessionSchedulerPicker,
|
1079
|
-
MyFlexEnd2 as MyFlexEnd
|
1123
|
+
MyFlexEnd2 as MyFlexEnd,
|
1124
|
+
MyModalDelete
|
1080
1125
|
};
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode, ComponentProps } from 'react';
|
3
3
|
import { t as type_action, a as type_mantineSize } from '../types-DbltiEAP.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
|
-
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
6
5
|
import { AxiosResponse } from 'axios';
|
6
|
+
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
7
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';
|
@@ -67,12 +67,12 @@ import {
|
|
67
67
|
useS_BasicAppShell,
|
68
68
|
useS_ButtonImport,
|
69
69
|
utils_layout_getItemsWithoutLinks
|
70
|
-
} from "../chunk-
|
71
|
-
import "../chunk-U62R2QKJ.mjs";
|
70
|
+
} from "../chunk-CHSXCM2D.mjs";
|
72
71
|
import "../chunk-5U2JSHSJ.mjs";
|
73
72
|
import "../chunk-OMJJAHOC.mjs";
|
74
|
-
import "../chunk-
|
73
|
+
import "../chunk-3XSLM5GI.mjs";
|
75
74
|
import "../chunk-7ZCOFATU.mjs";
|
75
|
+
import "../chunk-U62R2QKJ.mjs";
|
76
76
|
import "../chunk-FWCSY2DS.mjs";
|
77
77
|
export {
|
78
78
|
AQButtonCreateByImportFile,
|
package/dist/core/index.d.mts
CHANGED
@@ -2,9 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { t as type_action } from '../types-DbltiEAP.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
|
-
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
6
|
-
import { AxiosResponse } from 'axios';
|
7
5
|
import { UseFormReturnType } from '@mantine/form';
|
6
|
+
import { AxiosResponse } from 'axios';
|
7
|
+
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
8
8
|
import { useDisclosure } from '@mantine/hooks';
|
9
9
|
import { UseReactToPrintOptions } from 'react-to-print';
|
10
10
|
import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
@@ -196,4 +196,12 @@ interface MyFlexEndProps extends GroupProps {
|
|
196
196
|
}
|
197
197
|
declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
|
198
198
|
|
199
|
-
|
199
|
+
interface MyModalDeleteProps {
|
200
|
+
disclosure: ReturnType<typeof useDisclosure>;
|
201
|
+
contextData?: string;
|
202
|
+
handleSubmit: () => void;
|
203
|
+
submitLoading?: boolean;
|
204
|
+
}
|
205
|
+
declare function MyModalDelete({ disclosure, contextData, handleSubmit, submitLoading }: 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, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectFromAPIProps, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
package/dist/core/index.mjs
CHANGED
@@ -12,21 +12,22 @@ import {
|
|
12
12
|
MyFlexIconTitle,
|
13
13
|
MyInfoBox,
|
14
14
|
MyLabelValueRow,
|
15
|
+
MyModalDelete,
|
15
16
|
MyRichTextEditor,
|
16
17
|
MySelect,
|
17
18
|
MySelectFromAPI,
|
18
19
|
MyStatsCard,
|
19
20
|
MyTextInput,
|
20
21
|
MyWeeklySessionSchedulerPicker
|
21
|
-
} from "../chunk-
|
22
|
-
import "../chunk-AKZQQ7BT.mjs";
|
23
|
-
import "../chunk-U62R2QKJ.mjs";
|
24
|
-
import "../chunk-5U2JSHSJ.mjs";
|
22
|
+
} from "../chunk-S7JWSEIN.mjs";
|
25
23
|
import "../chunk-GFEMKKFH.mjs";
|
24
|
+
import "../chunk-CHSXCM2D.mjs";
|
25
|
+
import "../chunk-5U2JSHSJ.mjs";
|
26
26
|
import "../chunk-OMJJAHOC.mjs";
|
27
27
|
import "../chunk-K6S7R6LU.mjs";
|
28
|
-
import "../chunk-
|
28
|
+
import "../chunk-3XSLM5GI.mjs";
|
29
29
|
import "../chunk-7ZCOFATU.mjs";
|
30
|
+
import "../chunk-U62R2QKJ.mjs";
|
30
31
|
import "../chunk-FWCSY2DS.mjs";
|
31
32
|
export {
|
32
33
|
MyActionIcon,
|
@@ -42,6 +43,7 @@ export {
|
|
42
43
|
MyFlexIconTitle,
|
43
44
|
MyInfoBox,
|
44
45
|
MyLabelValueRow,
|
46
|
+
MyModalDelete,
|
45
47
|
MyRichTextEditor,
|
46
48
|
MySelect,
|
47
49
|
MySelectFromAPI,
|
package/dist/hooks/index.d.mts
CHANGED
@@ -1,13 +1,34 @@
|
|
1
|
-
import * as
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
2
|
+
import { UseMutationOptions, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
3
|
+
import * as _mantine_form from '@mantine/form';
|
4
|
+
import { FormValidateInput } from '@mantine/form';
|
5
|
+
import { AxiosResponse, AxiosInstance } from 'axios';
|
2
6
|
import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
|
3
7
|
export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-75GHCO22.mjs';
|
8
|
+
import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
4
9
|
import * as React from 'react';
|
5
|
-
import { AxiosInstance, AxiosResponse } from 'axios';
|
6
|
-
import * as _tanstack_react_query from '@tanstack/react-query';
|
7
|
-
import { UseMutationOptions, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
8
10
|
import { I as IAQModule } from '../IAQModule-4U3n2emx.mjs';
|
9
11
|
import '../IBaseEntity-ChMy9RzQ.mjs';
|
10
12
|
|
13
|
+
interface UseCreateUpdateProps<TForm extends Record<string, any>, TEntity> {
|
14
|
+
initValues?: TEntity;
|
15
|
+
createFn: (initData: TEntity) => Promise<AxiosResponse<MyApiResponse<TEntity>>>;
|
16
|
+
updateFn: (initData: TEntity) => Promise<AxiosResponse<MyApiResponse<TEntity>>>;
|
17
|
+
mapInitToForm: (initData: TEntity) => TForm;
|
18
|
+
mapFormToMutateValue: (formData: TForm, initData?: TEntity) => TEntity;
|
19
|
+
validate?: FormValidateInput<TForm>;
|
20
|
+
}
|
21
|
+
declare function useCreateUpdate<TForm extends Record<string, any>, TEntity>({ initValues, createFn, updateFn, mapInitToForm, mapFormToMutateValue, validate, }: UseCreateUpdateProps<TForm, TEntity>): {
|
22
|
+
form: _mantine_form.UseFormReturnType<TForm, (values: TForm) => TForm>;
|
23
|
+
disclosure: readonly [boolean, {
|
24
|
+
readonly open: () => void;
|
25
|
+
readonly close: () => void;
|
26
|
+
readonly toggle: () => void;
|
27
|
+
}];
|
28
|
+
mutation: _tanstack_react_query.UseMutationResult<TEntity, Error, TEntity, unknown>;
|
29
|
+
handleSubmit: (formValues: TForm) => void;
|
30
|
+
};
|
31
|
+
|
11
32
|
declare function useMyDevice(): {
|
12
33
|
isMobile: boolean | undefined;
|
13
34
|
isTablet: boolean | undefined;
|
@@ -64,4 +85,4 @@ declare function useMyReactQuery<IRes, IBody>({ queryKey, axiosFn, options, mock
|
|
64
85
|
|
65
86
|
declare function useQ_AQ_GetAQModule(): _tanstack_react_query.UseQueryResult<IAQModule, Error>;
|
66
87
|
|
67
|
-
export { MyApiResponse, type MyReactQueryProps, createBaseUrl, useLoadAxiosConfig, useMyDevice, useMyReactMutation, useMyReactQuery, useMyRouter, useQ_AQ_GetAQModule };
|
88
|
+
export { MyApiResponse, type MyReactQueryProps, createBaseUrl, useCreateUpdate, useLoadAxiosConfig, useMyDevice, useMyReactMutation, useMyReactQuery, useMyRouter, useQ_AQ_GetAQModule };
|
package/dist/hooks/index.mjs
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
import {
|
2
2
|
createBaseApi,
|
3
3
|
createBaseUrl,
|
4
|
+
useCreateUpdate,
|
4
5
|
useLoadAxiosConfig,
|
5
6
|
useMyDevice,
|
6
7
|
useMyReactMutation,
|
7
8
|
useMyReactQuery,
|
8
9
|
useMyRouter,
|
9
10
|
useQ_AQ_GetAQModule
|
10
|
-
} from "../chunk-
|
11
|
+
} from "../chunk-3XSLM5GI.mjs";
|
11
12
|
import "../chunk-7ZCOFATU.mjs";
|
12
13
|
import "../chunk-FWCSY2DS.mjs";
|
13
14
|
export {
|
14
15
|
createBaseApi,
|
15
16
|
createBaseUrl,
|
17
|
+
useCreateUpdate,
|
16
18
|
useLoadAxiosConfig,
|
17
19
|
useMyDevice,
|
18
20
|
useMyReactMutation,
|
@@ -13,16 +13,19 @@ import {
|
|
13
13
|
U0DateToDDMMYYYString
|
14
14
|
} from "../chunk-EWDS5IOF.mjs";
|
15
15
|
import {
|
16
|
-
MyButton
|
16
|
+
MyButton,
|
17
17
|
MyDataTableSelectOne,
|
18
18
|
MyTextInput as MyTextInput2
|
19
|
-
} from "../chunk-
|
19
|
+
} from "../chunk-S7JWSEIN.mjs";
|
20
|
+
import {
|
21
|
+
const_object_documentTypes
|
22
|
+
} from "../chunk-GFEMKKFH.mjs";
|
20
23
|
import {
|
21
24
|
F_authenticate_Logout,
|
22
25
|
MyActionIconDelete,
|
23
26
|
MyActionIconUpdate,
|
24
27
|
MyBoxesBackground,
|
25
|
-
MyButton,
|
28
|
+
MyButton as MyButton2,
|
26
29
|
MyButtonCreate,
|
27
30
|
MyButtonModal,
|
28
31
|
MyButtonViewPDF,
|
@@ -42,14 +45,8 @@ import {
|
|
42
45
|
groupToTwoLevels,
|
43
46
|
useS_authenticate,
|
44
47
|
utils_layout_getItemsWithoutLinks
|
45
|
-
} from "../chunk-
|
46
|
-
import {
|
47
|
-
createGenericStore
|
48
|
-
} from "../chunk-U62R2QKJ.mjs";
|
48
|
+
} from "../chunk-CHSXCM2D.mjs";
|
49
49
|
import "../chunk-5U2JSHSJ.mjs";
|
50
|
-
import {
|
51
|
-
const_object_documentTypes
|
52
|
-
} from "../chunk-GFEMKKFH.mjs";
|
53
50
|
import {
|
54
51
|
const_object_colors
|
55
52
|
} from "../chunk-OMJJAHOC.mjs";
|
@@ -66,10 +63,13 @@ import {
|
|
66
63
|
useMyRouter,
|
67
64
|
useQ_AQ_GetAQModule,
|
68
65
|
useQ_SkillCenter_GetAll
|
69
|
-
} from "../chunk-
|
66
|
+
} from "../chunk-3XSLM5GI.mjs";
|
70
67
|
import {
|
71
68
|
utils_notification_show
|
72
69
|
} from "../chunk-7ZCOFATU.mjs";
|
70
|
+
import {
|
71
|
+
createGenericStore
|
72
|
+
} from "../chunk-U62R2QKJ.mjs";
|
73
73
|
import {
|
74
74
|
__objRest,
|
75
75
|
__spreadProps,
|
@@ -86,7 +86,7 @@ var service_account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER,
|
|
86
86
|
}
|
87
87
|
});
|
88
88
|
|
89
|
-
// src/module/Account/adapter/
|
89
|
+
// src/module/Account/adapter/Adapter_AccountTable.tsx
|
90
90
|
import { useEffect } from "react";
|
91
91
|
|
92
92
|
// src/module/Account/usecase/UseCase_AccountTable.tsx
|
@@ -109,8 +109,7 @@ function UseCase_AccountTable(_a) {
|
|
109
109
|
{
|
110
110
|
header: "Email",
|
111
111
|
accessorKey: "email"
|
112
|
-
}
|
113
|
-
...baseColumns
|
112
|
+
}
|
114
113
|
], []);
|
115
114
|
const columns = useMemo(() => {
|
116
115
|
return utils_mantineDataTable_filterColumns(allColumns, visibleFields);
|
@@ -124,7 +123,7 @@ function UseCase_AccountTable(_a) {
|
|
124
123
|
);
|
125
124
|
}
|
126
125
|
|
127
|
-
// src/module/Account/adapter/
|
126
|
+
// src/module/Account/adapter/Adapter_AccountTable.tsx
|
128
127
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
129
128
|
function Account_Table(_a) {
|
130
129
|
var rest = __objRest(_a, []);
|
@@ -211,7 +210,7 @@ function Permission_SaveMenuPermission({
|
|
211
210
|
}
|
212
211
|
});
|
213
212
|
return /* @__PURE__ */ jsx3(
|
214
|
-
|
213
|
+
MyButton,
|
215
214
|
{
|
216
215
|
onClick: () => {
|
217
216
|
mutation.mutate((values == null ? void 0 : values.filter((item) => item.id != "0").map((item) => ({
|
@@ -832,7 +831,7 @@ function F_accessControl_Save() {
|
|
832
831
|
}
|
833
832
|
disable[1](false);
|
834
833
|
}, [store.state.rolePermissions]);
|
835
|
-
return /* @__PURE__ */ jsx9(
|
834
|
+
return /* @__PURE__ */ jsx9(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
836
835
|
}
|
837
836
|
|
838
837
|
// src/modules-features/admin/core/accessControl/old/F_accessControl.tsx
|
@@ -1286,7 +1285,7 @@ function F_accessControlLevel_Save() {
|
|
1286
1285
|
}
|
1287
1286
|
disable[1](false);
|
1288
1287
|
}, [store.state.rolePermissions]);
|
1289
|
-
return /* @__PURE__ */ jsx16(
|
1288
|
+
return /* @__PURE__ */ jsx16(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
1290
1289
|
}
|
1291
1290
|
|
1292
1291
|
// src/modules-features/admin/core/accessControlLevel/old/F_accessControlLevel.tsx
|
@@ -3057,7 +3056,7 @@ function F_core35923() {
|
|
3057
3056
|
/* @__PURE__ */ jsx49(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx49(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
3058
3057
|
/* @__PURE__ */ jsx49(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx49(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
3059
3058
|
] }),
|
3060
|
-
/* @__PURE__ */ jsx49(MyFlexEnd, { children: /* @__PURE__ */ jsx49(
|
3059
|
+
/* @__PURE__ */ jsx49(MyFlexEnd, { children: /* @__PURE__ */ jsx49(MyButton2, { crudType: "save" }) })
|
3061
3060
|
] });
|
3062
3061
|
}
|
3063
3062
|
|
@@ -4444,7 +4443,7 @@ function F_moduleConfig_Save({
|
|
4444
4443
|
});
|
4445
4444
|
}
|
4446
4445
|
return /* @__PURE__ */ jsx83(
|
4447
|
-
|
4446
|
+
MyButton2,
|
4448
4447
|
{
|
4449
4448
|
disabled: !form.isDirty(),
|
4450
4449
|
crudType: "save",
|
@@ -4900,13 +4899,13 @@ import { useMemo as useMemo20 } from "react";
|
|
4900
4899
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4901
4900
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
4902
4901
|
function F_pageContentConfig_DeleteDescription() {
|
4903
|
-
return /* @__PURE__ */ jsx91(
|
4902
|
+
return /* @__PURE__ */ jsx91(MyButton, { actionType: "delete" });
|
4904
4903
|
}
|
4905
4904
|
|
4906
4905
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4907
4906
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
4908
4907
|
function F_pageContentConfig_Export() {
|
4909
|
-
return /* @__PURE__ */ jsx92(
|
4908
|
+
return /* @__PURE__ */ jsx92(MyButton, { actionType: "export" });
|
4910
4909
|
}
|
4911
4910
|
|
4912
4911
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
@@ -4918,7 +4917,7 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4918
4917
|
return service_pageContent.updateList([{ id: 1 }]);
|
4919
4918
|
}
|
4920
4919
|
});
|
4921
|
-
return /* @__PURE__ */ jsx93(
|
4920
|
+
return /* @__PURE__ */ jsx93(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4922
4921
|
}
|
4923
4922
|
|
4924
4923
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|