aq-fe-framework 0.1.1122 → 0.1.1124

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.
@@ -4,14 +4,6 @@ import {
4
4
  useStore_Permission,
5
5
  useStore_ProjectInfo
6
6
  } from "./chunk-WW55EZ4B.mjs";
7
- import {
8
- utils_currency,
9
- utils_date,
10
- utils_excel,
11
- utils_file,
12
- utils_mantineReactTable,
13
- utils_text
14
- } from "./chunk-7ZI7IOEP.mjs";
15
7
  import {
16
8
  utils_aq_mapBaseEntityToDomain,
17
9
  utils_aq_mapDomainToEntity,
@@ -25,6 +17,14 @@ import {
25
17
  utils_notification_show,
26
18
  utils_pdf_download
27
19
  } from "./chunk-KGBXMHKR.mjs";
20
+ import {
21
+ utils_currency,
22
+ utils_date,
23
+ utils_excel,
24
+ utils_file,
25
+ utils_mantineReactTable,
26
+ utils_text
27
+ } from "./chunk-7ZI7IOEP.mjs";
28
28
  import {
29
29
  createGenericStore
30
30
  } from "./chunk-BTITP4TN.mjs";
@@ -907,142 +907,11 @@ function MyActionIcon2(_a) {
907
907
  }
908
908
  }
909
909
 
910
- // src/components/Button/Button/MyButton.tsx
911
- import { Button as Button5 } from "@mantine/core";
912
- import { IconDeviceFloppy as IconDeviceFloppy4, IconEdit as IconEdit4, IconFileExport as IconFileExport2, IconFileImport as IconFileImport2, IconPlus as IconPlus4, IconPrinter as IconPrinter4, IconTrash as IconTrash4, IconX as IconX3 } from "@tabler/icons-react";
913
- import { jsx as jsx17 } from "react/jsx-runtime";
914
- function MyButton2(_a) {
915
- var _b = _a, { children, crudType = "default" } = _b, rest = __objRest(_b, ["children", "crudType"]);
916
- if (crudType == "default") {
917
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "indigo" }, rest), { children }));
918
- }
919
- if (crudType == "create") {
920
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "indigo", type: "submit", leftSection: /* @__PURE__ */ jsx17(IconPlus4, {}) }, rest), { children: children ? children : "L\u01B0u" }));
921
- }
922
- if (crudType == "createMultiple") {
923
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "green", type: "submit", leftSection: /* @__PURE__ */ jsx17(IconPlus4, {}) }, rest), { children: children ? children : "Th\xEAm danh s\xE1ch" }));
924
- }
925
- if (crudType == "delete") {
926
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "red", leftSection: /* @__PURE__ */ jsx17(IconTrash4, {}) }, rest), { children: children ? children : "X\xE1c nh\u1EADn x\xF3a" }));
927
- }
928
- if (crudType == "update") {
929
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "yellow", type: "submit", leftSection: /* @__PURE__ */ jsx17(IconEdit4, {}) }, rest), { children: children ? children : "Ch\u1EC9nh s\u1EEDa" }));
930
- }
931
- if (crudType == "save") {
932
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "blue", type: "submit", leftSection: /* @__PURE__ */ jsx17(IconDeviceFloppy4, {}) }, rest), { children: children ? children : "L\u01B0u" }));
933
- }
934
- if (crudType == "import") {
935
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "green.8", leftSection: /* @__PURE__ */ jsx17(IconFileImport2, {}) }, rest), { children: children ? children : "Import" }));
936
- }
937
- if (crudType == "print") {
938
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "orange.7", leftSection: /* @__PURE__ */ jsx17(IconPrinter4, {}) }, rest), { children: children ? children : "In" }));
939
- }
940
- if (crudType == "export") {
941
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "green.8", leftSection: /* @__PURE__ */ jsx17(IconFileExport2, {}) }, rest), { children: children ? children : "Export" }));
942
- }
943
- if (crudType == "cancel") {
944
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({ color: "gray", leftSection: /* @__PURE__ */ jsx17(IconX3, {}) }, rest), { children: children ? children : "H\u1EE7y thao t\xE1c" }));
945
- }
946
- if (crudType == "select") {
947
- return /* @__PURE__ */ jsx17(Button5, __spreadProps(__spreadValues({}, rest), { children: children ? children : "Ch\u1ECDn" }));
948
- }
949
- }
950
-
951
910
  // src/components/ActionIcons/ActionIconCRUD/MyActionIconDelete.tsx
952
911
  import { Group, Highlight } from "@mantine/core";
953
912
  import { useDisclosure as useDisclosure4 } from "@mantine/hooks";
954
913
  import { useState as useState3 } from "react";
955
-
956
- // src/components/ActionIcons/ActionIconModal/MyActionIconModal.tsx
957
- import { ActionIcon as ActionIcon4, Modal as Modal3 } from "@mantine/core";
958
- import { IconEdit as IconEdit5, IconPlus as IconPlus5, IconTrash as IconTrash5 } from "@tabler/icons-react";
959
- import { Fragment as Fragment5, jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
960
- function MyActionIconModal(_a) {
961
- var _b = _a, {
962
- fullScreen = false,
963
- crudType,
964
- disclosure,
965
- modalSize,
966
- title,
967
- children,
968
- icon
969
- } = _b, rest = __objRest(_b, [
970
- "fullScreen",
971
- "crudType",
972
- "disclosure",
973
- "modalSize",
974
- "title",
975
- "children",
976
- "icon"
977
- ]);
978
- if (!crudType) {
979
- return /* @__PURE__ */ jsxs7(Fragment5, { children: [
980
- /* @__PURE__ */ jsx18(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, rest), { children: icon })),
981
- /* @__PURE__ */ jsx18(
982
- Modal3,
983
- {
984
- fullScreen,
985
- size: modalSize,
986
- title,
987
- opened: disclosure == null ? void 0 : disclosure[0],
988
- onClose: disclosure[1].close,
989
- children: /* @__PURE__ */ jsx18(MyFlexColumn, { children })
990
- }
991
- )
992
- ] });
993
- }
994
- if (crudType == "create") {
995
- return /* @__PURE__ */ jsxs7(Fragment5, { children: [
996
- /* @__PURE__ */ jsx18(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open }, rest), { children: icon ? icon : /* @__PURE__ */ jsx18(IconPlus5, {}) })),
997
- /* @__PURE__ */ jsx18(
998
- Modal3,
999
- {
1000
- fullScreen,
1001
- size: modalSize,
1002
- title: title ? title : "T\u1EA1o d\u1EEF li\u1EC7u m\u1EDBi",
1003
- opened: disclosure == null ? void 0 : disclosure[0],
1004
- onClose: disclosure[1].close,
1005
- children: /* @__PURE__ */ jsx18(MyFlexColumn, { children })
1006
- }
1007
- )
1008
- ] });
1009
- }
1010
- if (crudType == "update") {
1011
- return /* @__PURE__ */ jsxs7(Fragment5, { children: [
1012
- /* @__PURE__ */ jsx18(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "yellow" }, rest), { children: icon ? icon : /* @__PURE__ */ jsx18(IconEdit5, {}) })),
1013
- /* @__PURE__ */ jsx18(
1014
- Modal3,
1015
- {
1016
- fullScreen,
1017
- size: modalSize,
1018
- title: title ? title : "S\u1EEDa d\u1EEF li\u1EC7u",
1019
- opened: disclosure == null ? void 0 : disclosure[0],
1020
- onClose: disclosure[1].close,
1021
- children: /* @__PURE__ */ jsx18(MyFlexColumn, { children })
1022
- }
1023
- )
1024
- ] });
1025
- }
1026
- if (crudType == "delete") {
1027
- return /* @__PURE__ */ jsxs7(Fragment5, { children: [
1028
- /* @__PURE__ */ jsx18(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "red" }, rest), { children: icon ? icon : /* @__PURE__ */ jsx18(IconTrash5, {}) })),
1029
- /* @__PURE__ */ jsx18(
1030
- Modal3,
1031
- {
1032
- fullScreen,
1033
- size: modalSize,
1034
- title: title ? title : "X\xF3a d\u1EEF li\u1EC7u",
1035
- opened: disclosure == null ? void 0 : disclosure[0],
1036
- onClose: disclosure[1].close,
1037
- children: /* @__PURE__ */ jsx18(MyFlexColumn, { children })
1038
- }
1039
- )
1040
- ] });
1041
- }
1042
- }
1043
-
1044
- // src/components/ActionIcons/ActionIconCRUD/MyActionIconDelete.tsx
1045
- import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
914
+ import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
1046
915
  function MyActionIconDelete(_a) {
1047
916
  var _b = _a, {
1048
917
  onSubmit,
@@ -1055,8 +924,6 @@ function MyActionIconDelete(_a) {
1055
924
  "onError",
1056
925
  "contextData"
1057
926
  ]);
1058
- var _a2;
1059
- const store = useStore_Permission();
1060
927
  const disc = useDisclosure4();
1061
928
  const loadingState = useState3();
1062
929
  const mutation = useMyReactMutation({
@@ -1111,15 +978,17 @@ function MyActionIconDelete(_a) {
1111
978
  loadingState[1](true);
1112
979
  mutation.mutate(void 0);
1113
980
  }
1114
- return /* @__PURE__ */ jsxs8(
1115
- MyActionIconModal,
981
+ return /* @__PURE__ */ jsxs7(
982
+ MyButtonModal,
1116
983
  __spreadProps(__spreadValues({
1117
- hidden: process.env.NEXT_PUBLIC_IS_DEV == "1" ? false : !((_a2 = store.state.currentPermissionPage) == null ? void 0 : _a2.isDelete),
1118
984
  disclosure: disc,
1119
- crudType: "delete"
985
+ actionIconProps: {
986
+ actionType: "delete"
987
+ },
988
+ isActionIcon: true
1120
989
  }, rest), {
1121
990
  children: [
1122
- /* @__PURE__ */ jsx19(
991
+ /* @__PURE__ */ jsx17(
1123
992
  Highlight,
1124
993
  {
1125
994
  highlight: contextData || [],
@@ -1132,19 +1001,19 @@ function MyActionIconDelete(_a) {
1132
1001
  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?`
1133
1002
  }
1134
1003
  ),
1135
- /* @__PURE__ */ jsxs8(Group, { grow: true, children: [
1136
- /* @__PURE__ */ jsx19(
1137
- MyButton2,
1004
+ /* @__PURE__ */ jsxs7(Group, { grow: true, children: [
1005
+ /* @__PURE__ */ jsx17(
1006
+ MyButton,
1138
1007
  {
1139
- crudType: "delete",
1008
+ actionType: "delete",
1140
1009
  onClick: handleCLick,
1141
1010
  loading: mutation.isPending
1142
1011
  }
1143
1012
  ),
1144
- /* @__PURE__ */ jsx19(
1145
- MyButton2,
1013
+ /* @__PURE__ */ jsx17(
1014
+ MyButton,
1146
1015
  {
1147
- crudType: "cancel",
1016
+ actionType: "cancel",
1148
1017
  onClick: disc[1].close
1149
1018
  }
1150
1019
  )
@@ -1154,9 +1023,140 @@ function MyActionIconDelete(_a) {
1154
1023
  );
1155
1024
  }
1156
1025
 
1026
+ // src/components/Button/Button/MyButton.tsx
1027
+ import { Button as Button5 } from "@mantine/core";
1028
+ import { IconDeviceFloppy as IconDeviceFloppy4, IconEdit as IconEdit4, IconFileExport as IconFileExport2, IconFileImport as IconFileImport2, IconPlus as IconPlus4, IconPrinter as IconPrinter4, IconTrash as IconTrash4, IconX as IconX3 } from "@tabler/icons-react";
1029
+ import { jsx as jsx18 } from "react/jsx-runtime";
1030
+ function MyButton2(_a) {
1031
+ var _b = _a, { children, crudType = "default" } = _b, rest = __objRest(_b, ["children", "crudType"]);
1032
+ if (crudType == "default") {
1033
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "indigo" }, rest), { children }));
1034
+ }
1035
+ if (crudType == "create") {
1036
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "indigo", type: "submit", leftSection: /* @__PURE__ */ jsx18(IconPlus4, {}) }, rest), { children: children ? children : "L\u01B0u" }));
1037
+ }
1038
+ if (crudType == "createMultiple") {
1039
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "green", type: "submit", leftSection: /* @__PURE__ */ jsx18(IconPlus4, {}) }, rest), { children: children ? children : "Th\xEAm danh s\xE1ch" }));
1040
+ }
1041
+ if (crudType == "delete") {
1042
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "red", leftSection: /* @__PURE__ */ jsx18(IconTrash4, {}) }, rest), { children: children ? children : "X\xE1c nh\u1EADn x\xF3a" }));
1043
+ }
1044
+ if (crudType == "update") {
1045
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "yellow", type: "submit", leftSection: /* @__PURE__ */ jsx18(IconEdit4, {}) }, rest), { children: children ? children : "Ch\u1EC9nh s\u1EEDa" }));
1046
+ }
1047
+ if (crudType == "save") {
1048
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "blue", type: "submit", leftSection: /* @__PURE__ */ jsx18(IconDeviceFloppy4, {}) }, rest), { children: children ? children : "L\u01B0u" }));
1049
+ }
1050
+ if (crudType == "import") {
1051
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "green.8", leftSection: /* @__PURE__ */ jsx18(IconFileImport2, {}) }, rest), { children: children ? children : "Import" }));
1052
+ }
1053
+ if (crudType == "print") {
1054
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "orange.7", leftSection: /* @__PURE__ */ jsx18(IconPrinter4, {}) }, rest), { children: children ? children : "In" }));
1055
+ }
1056
+ if (crudType == "export") {
1057
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "green.8", leftSection: /* @__PURE__ */ jsx18(IconFileExport2, {}) }, rest), { children: children ? children : "Export" }));
1058
+ }
1059
+ if (crudType == "cancel") {
1060
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({ color: "gray", leftSection: /* @__PURE__ */ jsx18(IconX3, {}) }, rest), { children: children ? children : "H\u1EE7y thao t\xE1c" }));
1061
+ }
1062
+ if (crudType == "select") {
1063
+ return /* @__PURE__ */ jsx18(Button5, __spreadProps(__spreadValues({}, rest), { children: children ? children : "Ch\u1ECDn" }));
1064
+ }
1065
+ }
1066
+
1157
1067
  // src/components/ActionIcons/ActionIconCRUD/MyActionIconUpdate.tsx
1158
1068
  import { useDisclosure as useDisclosure5 } from "@mantine/hooks";
1159
1069
  import { useEffect as useEffect4 } from "react";
1070
+
1071
+ // src/components/ActionIcons/ActionIconModal/MyActionIconModal.tsx
1072
+ import { ActionIcon as ActionIcon4, Modal as Modal3 } from "@mantine/core";
1073
+ import { IconEdit as IconEdit5, IconPlus as IconPlus5, IconTrash as IconTrash5 } from "@tabler/icons-react";
1074
+ import { Fragment as Fragment5, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
1075
+ function MyActionIconModal(_a) {
1076
+ var _b = _a, {
1077
+ fullScreen = false,
1078
+ crudType,
1079
+ disclosure,
1080
+ modalSize,
1081
+ title,
1082
+ children,
1083
+ icon
1084
+ } = _b, rest = __objRest(_b, [
1085
+ "fullScreen",
1086
+ "crudType",
1087
+ "disclosure",
1088
+ "modalSize",
1089
+ "title",
1090
+ "children",
1091
+ "icon"
1092
+ ]);
1093
+ if (!crudType) {
1094
+ return /* @__PURE__ */ jsxs8(Fragment5, { children: [
1095
+ /* @__PURE__ */ jsx19(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, rest), { children: icon })),
1096
+ /* @__PURE__ */ jsx19(
1097
+ Modal3,
1098
+ {
1099
+ fullScreen,
1100
+ size: modalSize,
1101
+ title,
1102
+ opened: disclosure == null ? void 0 : disclosure[0],
1103
+ onClose: disclosure[1].close,
1104
+ children: /* @__PURE__ */ jsx19(MyFlexColumn, { children })
1105
+ }
1106
+ )
1107
+ ] });
1108
+ }
1109
+ if (crudType == "create") {
1110
+ return /* @__PURE__ */ jsxs8(Fragment5, { children: [
1111
+ /* @__PURE__ */ jsx19(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open }, rest), { children: icon ? icon : /* @__PURE__ */ jsx19(IconPlus5, {}) })),
1112
+ /* @__PURE__ */ jsx19(
1113
+ Modal3,
1114
+ {
1115
+ fullScreen,
1116
+ size: modalSize,
1117
+ title: title ? title : "T\u1EA1o d\u1EEF li\u1EC7u m\u1EDBi",
1118
+ opened: disclosure == null ? void 0 : disclosure[0],
1119
+ onClose: disclosure[1].close,
1120
+ children: /* @__PURE__ */ jsx19(MyFlexColumn, { children })
1121
+ }
1122
+ )
1123
+ ] });
1124
+ }
1125
+ if (crudType == "update") {
1126
+ return /* @__PURE__ */ jsxs8(Fragment5, { children: [
1127
+ /* @__PURE__ */ jsx19(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "yellow" }, rest), { children: icon ? icon : /* @__PURE__ */ jsx19(IconEdit5, {}) })),
1128
+ /* @__PURE__ */ jsx19(
1129
+ Modal3,
1130
+ {
1131
+ fullScreen,
1132
+ size: modalSize,
1133
+ title: title ? title : "S\u1EEDa d\u1EEF li\u1EC7u",
1134
+ opened: disclosure == null ? void 0 : disclosure[0],
1135
+ onClose: disclosure[1].close,
1136
+ children: /* @__PURE__ */ jsx19(MyFlexColumn, { children })
1137
+ }
1138
+ )
1139
+ ] });
1140
+ }
1141
+ if (crudType == "delete") {
1142
+ return /* @__PURE__ */ jsxs8(Fragment5, { children: [
1143
+ /* @__PURE__ */ jsx19(ActionIcon4, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "red" }, rest), { children: icon ? icon : /* @__PURE__ */ jsx19(IconTrash5, {}) })),
1144
+ /* @__PURE__ */ jsx19(
1145
+ Modal3,
1146
+ {
1147
+ fullScreen,
1148
+ size: modalSize,
1149
+ title: title ? title : "X\xF3a d\u1EEF li\u1EC7u",
1150
+ opened: disclosure == null ? void 0 : disclosure[0],
1151
+ onClose: disclosure[1].close,
1152
+ children: /* @__PURE__ */ jsx19(MyFlexColumn, { children })
1153
+ }
1154
+ )
1155
+ ] });
1156
+ }
1157
+ }
1158
+
1159
+ // src/components/ActionIcons/ActionIconCRUD/MyActionIconUpdate.tsx
1160
1160
  import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
1161
1161
  function MyActionIconUpdate(_a) {
1162
1162
  var _b = _a, {
@@ -16876,23 +16876,11 @@ export {
16876
16876
  MyCardioLoader,
16877
16877
  MyBoxesBackground,
16878
16878
  MyActionIcon2 as MyActionIcon,
16879
- MyButton2 as MyButton,
16880
- MyFlexColumn,
16881
- MyActionIconModal,
16882
- MyActionIconDelete,
16883
- MyActionIconUpdate,
16884
- MyActionIconDownloadPDF,
16885
- MyActionIconUpload,
16886
- MyActionIconViewPDF,
16887
- MyAppSpotlight,
16888
- getMenuStatusBadge,
16889
- MyAnchorViewPDF,
16890
- MyButtonModal2 as MyButtonModal,
16891
- AQButtonCreateByImportFile,
16892
16879
  CustomSwitchTheme,
16893
- MyButton as MyButton2,
16880
+ MyButton,
16881
+ MyFlexColumn,
16894
16882
  MyActionIcon as MyActionIcon2,
16895
- MyButtonModal as MyButtonModal2,
16883
+ MyButtonModal,
16896
16884
  MyButtonModalForm,
16897
16885
  MyButtonPrintPDF,
16898
16886
  MyButtonViewFile,
@@ -16930,6 +16918,18 @@ export {
16930
16918
  CustomDataTableAPI,
16931
16919
  CustomSelectAPI,
16932
16920
  MyButtonViewFileAPI,
16921
+ MyActionIconDelete,
16922
+ MyButton2,
16923
+ MyActionIconModal,
16924
+ MyActionIconUpdate,
16925
+ MyActionIconDownloadPDF,
16926
+ MyActionIconUpload,
16927
+ MyActionIconViewPDF,
16928
+ MyAppSpotlight,
16929
+ getMenuStatusBadge,
16930
+ MyAnchorViewPDF,
16931
+ MyButtonModal2,
16932
+ AQButtonCreateByImportFile,
16933
16933
  AQButtonExportData,
16934
16934
  MyButtonCreate,
16935
16935
  MyButtonDeleteList,
@@ -2,13 +2,14 @@ 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 } from '../type_action-hMF6_2Mr.mjs';
4
4
  import { ActionIconProps, ButtonProps, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
5
+ import { M as MyButtonModalProps } from '../MyButtonDeleteList-BcW55zHU.mjs';
6
+ export { g as MyButtonDeleteList, c as MyButtonDeleteListProps } from '../MyButtonDeleteList-BcW55zHU.mjs';
5
7
  import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-C4T2Bi5O.mjs';
6
8
  import { AxiosResponse } from 'axios';
7
- import { type_mantineSize } from '../types/index.mjs';
8
- import { useDisclosure, useListState } from '@mantine/hooks';
9
9
  import { UseFormReturnType, useForm } from '@mantine/form';
10
+ import { useDisclosure, useListState } from '@mantine/hooks';
11
+ import { type_mantineSize } from '../types/index.mjs';
10
12
  import { I as I_BasicAppShell_LinkItem, B as BasicAppShellProps } from '../types-mIsH5BBF.mjs';
11
- export { g as MyButtonDeleteList, c as MyButtonDeleteListProps } from '../MyButtonDeleteList-BcW55zHU.mjs';
12
13
  import { MRT_RowData, MRT_TableOptions, MRT_ColumnDef, MRT_TableInstance } from 'mantine-react-table';
13
14
  export { M as MyColumnDef, c as MyDataTable, b as MyDataTableInternalProps, a as MyDataTableProps, P as PaginationState } from '../MyDataTable-D02NxkDu.mjs';
14
15
  import { DateInputProps } from '@mantine/dates';
@@ -45,6 +46,15 @@ interface IMyActionIcon extends Omit<React.ButtonHTMLAttributes<HTMLButtonElemen
45
46
  }
46
47
  declare function MyActionIcon({ children, crudType, ...rest }: IMyActionIcon): react_jsx_runtime.JSX.Element | undefined;
47
48
 
49
+ interface IActionIconDelete<IRes> extends Omit<MyButtonModalProps, "disclosure"> {
50
+ onSubmit: () => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
51
+ onSuccess?: () => void;
52
+ onError?: () => void;
53
+ contextData?: string;
54
+ loading?: boolean;
55
+ }
56
+ declare function MyActionIconDelete<IRes>({ onSubmit, onSuccess, onError, contextData, ...rest }: IActionIconDelete<IRes>): react_jsx_runtime.JSX.Element;
57
+
48
58
  interface IMyActionIconModal extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style" | "title">, ActionIconProps {
49
59
  title?: ReactNode;
50
60
  children?: ReactNode;
@@ -60,15 +70,6 @@ interface IMyActionIconModal extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
60
70
  */
61
71
  declare function MyActionIconModal({ fullScreen, crudType, disclosure, modalSize, title, children, icon, ...rest }: IMyActionIconModal): react_jsx_runtime.JSX.Element | undefined;
62
72
 
63
- interface IActionIconDelete<IRes> extends Omit<ComponentProps<typeof MyActionIconModal>, "disclosure" | "onSubmit"> {
64
- onSubmit: () => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
65
- onSuccess?: () => void;
66
- onError?: () => void;
67
- contextData?: string;
68
- loading?: boolean;
69
- }
70
- declare function MyActionIconDelete<IRes>({ onSubmit, onSuccess, onError, contextData, ...rest }: IActionIconDelete<IRes>): react_jsx_runtime.JSX.Element;
71
-
72
73
  interface IActionIconUpdate<IReq, IRes> extends Omit<ComponentProps<typeof MyActionIconModal>, "form" | "disclosure" | "onSubmit"> {
73
74
  resetFormWhenclose?: boolean;
74
75
  onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | false | void;
@@ -199,6 +200,10 @@ interface I$5 extends ButtonProps {
199
200
  children?: ReactNode;
200
201
  autoPadding?: boolean;
201
202
  }
203
+ /**
204
+ * @deprecated Component này không xài nữa
205
+ * Vui lòng dùng `MyButtonPrintPDF` từ `core` thay thế.
206
+ */
202
207
  declare function MyButtonPrintPDF({ contentToPrint, children, autoPadding, ...rest }: I$5): react_jsx_runtime.JSX.Element;
203
208
 
204
209
  interface FieldConfig {
@@ -20,10 +20,10 @@ import {
20
20
  MyAppSpotlight,
21
21
  MyBoxesBackground,
22
22
  MyBoxesCore,
23
- MyButton,
23
+ MyButton2 as MyButton,
24
24
  MyButtonCreate,
25
25
  MyButtonDeleteList,
26
- MyButtonModal,
26
+ MyButtonModal2 as MyButtonModal,
27
27
  MyButtonPrintPDF2 as MyButtonPrintPDF,
28
28
  MyButtonPrintTablePDF,
29
29
  MyButtonRouterBack,
@@ -65,10 +65,10 @@ import {
65
65
  getReadablePageIdSet,
66
66
  useHeaderMegaMenuStore,
67
67
  useStore_BasicAppShell
68
- } from "../chunk-Q7VBG5TR.mjs";
68
+ } from "../chunk-CN54GKEW.mjs";
69
69
  import "../chunk-WW55EZ4B.mjs";
70
- import "../chunk-7ZI7IOEP.mjs";
71
70
  import "../chunk-KGBXMHKR.mjs";
71
+ import "../chunk-7ZI7IOEP.mjs";
72
72
  import "../chunk-NYAWQRB7.mjs";
73
73
  import "../chunk-BTITP4TN.mjs";
74
74
  import "../chunk-N5DFWFM6.mjs";
@@ -11,9 +11,9 @@ import {
11
11
  CustomThemeIconSquareCheck,
12
12
  DroppablePlaceholder,
13
13
  MyActionIcon2 as MyActionIcon,
14
- MyButton2 as MyButton,
14
+ MyButton,
15
15
  MyButtonCreateUpdate,
16
- MyButtonModal2 as MyButtonModal,
16
+ MyButtonModal,
17
17
  MyButtonModalForm,
18
18
  MyButtonPrintPDF,
19
19
  MyButtonViewFile,
@@ -35,10 +35,10 @@ import {
35
35
  MyStatsCard,
36
36
  MyTextInput2 as MyTextInput,
37
37
  MyWeeklySessionSchedulerPicker
38
- } from "../chunk-Q7VBG5TR.mjs";
38
+ } from "../chunk-CN54GKEW.mjs";
39
39
  import "../chunk-WW55EZ4B.mjs";
40
- import "../chunk-7ZI7IOEP.mjs";
41
40
  import "../chunk-KGBXMHKR.mjs";
41
+ import "../chunk-7ZI7IOEP.mjs";
42
42
  import "../chunk-NYAWQRB7.mjs";
43
43
  import "../chunk-BTITP4TN.mjs";
44
44
  import "../chunk-N5DFWFM6.mjs";
@@ -64,10 +64,10 @@ import {
64
64
  MailTemplateDeleteButton,
65
65
  useS_moduleConfig,
66
66
  useStore_Authenticate
67
- } from "../chunk-Q7VBG5TR.mjs";
67
+ } from "../chunk-CN54GKEW.mjs";
68
68
  import "../chunk-WW55EZ4B.mjs";
69
- import "../chunk-7ZI7IOEP.mjs";
70
69
  import "../chunk-KGBXMHKR.mjs";
70
+ import "../chunk-7ZI7IOEP.mjs";
71
71
  import "../chunk-NYAWQRB7.mjs";
72
72
  import "../chunk-BTITP4TN.mjs";
73
73
  import "../chunk-N5DFWFM6.mjs";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  MySelect,
3
3
  Shared_DocTypeSelect
4
- } from "../chunk-Q7VBG5TR.mjs";
4
+ } from "../chunk-CN54GKEW.mjs";
5
5
  import "../chunk-WW55EZ4B.mjs";
6
+ import "../chunk-KGBXMHKR.mjs";
6
7
  import {
7
8
  utils_converter
8
9
  } from "../chunk-7ZI7IOEP.mjs";
9
- import "../chunk-KGBXMHKR.mjs";
10
10
  import "../chunk-NYAWQRB7.mjs";
11
11
  import "../chunk-BTITP4TN.mjs";
12
12
  import "../chunk-N5DFWFM6.mjs";
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "types": "./dist/zod-schemas/index.d.mts"
59
59
  }
60
60
  },
61
- "version": "0.1.1122",
61
+ "version": "0.1.1124",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"