aq-fe-framework 0.1.294 → 0.1.295

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.
@@ -1,9 +1,9 @@
1
- import {
2
- const_object_colors
3
- } from "./chunk-NWBLJ3W3.mjs";
4
1
  import {
5
2
  enum_daysOfWeek
6
3
  } from "./chunk-K6S7R6LU.mjs";
4
+ import {
5
+ const_object_colors
6
+ } from "./chunk-NWBLJ3W3.mjs";
7
7
  import {
8
8
  baseAxios_default,
9
9
  useMyReactMutation,
@@ -921,36 +921,13 @@ function CoreButton(_a) {
921
921
  );
922
922
  }
923
923
 
924
- // src/components/Buttons/CoreButtonModal.tsx
925
- import { Button as Button5, Modal as Modal4 } from "@mantine/core";
926
- import { Fragment as Fragment5, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
927
- function CoreButtonModal({
928
- disclosure,
929
- children,
930
- buttonProps,
931
- modalProps
932
- }) {
933
- return /* @__PURE__ */ jsxs8(Fragment5, { children: [
934
- /* @__PURE__ */ jsx19(Button5, __spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, buttonProps)),
935
- /* @__PURE__ */ jsx19(
936
- Modal4,
937
- __spreadProps(__spreadValues({
938
- opened: disclosure == null ? void 0 : disclosure[0],
939
- onClose: disclosure[1].close
940
- }, modalProps), {
941
- children: /* @__PURE__ */ jsx19(MyFlexColumn, { children })
942
- })
943
- )
944
- ] });
945
- }
946
-
947
- // src/components/Buttons/MyButtonCreateUpdate.tsx
924
+ // src/components/Buttons/CoreButtonCreateUpdate.tsx
948
925
  import { useDisclosure as useDisclosure5 } from "@mantine/hooks";
949
926
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
950
- import { ActionIcon as ActionIcon9, Button as Button6, Modal as Modal5 } from "@mantine/core";
927
+ import { ActionIcon as ActionIcon9, Button as Button5, Modal as Modal4 } from "@mantine/core";
951
928
  import { IconEdit as IconEdit6, IconPlus as IconPlus6 } from "@tabler/icons-react";
952
- import { Fragment as Fragment6, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
953
- function MyButtonCreateUpdate({
929
+ import { Fragment as Fragment5, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
930
+ function CoreButtonCreateUpdate({
954
931
  modalProps,
955
932
  actionIconProps,
956
933
  buttonProps,
@@ -987,42 +964,65 @@ function MyButtonCreateUpdate({
987
964
  }
988
965
  })
989
966
  });
990
- return /* @__PURE__ */ jsxs9(Fragment6, { children: [
991
- isUpdate ? /* @__PURE__ */ jsx20(
967
+ return /* @__PURE__ */ jsxs8(Fragment5, { children: [
968
+ isUpdate ? /* @__PURE__ */ jsx19(
992
969
  ActionIcon9,
993
970
  __spreadProps(__spreadValues({
994
971
  color: "yellow",
995
972
  onClick: disclosure[1].open
996
973
  }, actionIconProps), {
997
- children: /* @__PURE__ */ jsx20(IconEdit6, {})
974
+ children: /* @__PURE__ */ jsx19(IconEdit6, {})
998
975
  })
999
- ) : /* @__PURE__ */ jsx20(
1000
- Button6,
976
+ ) : /* @__PURE__ */ jsx19(
977
+ Button5,
1001
978
  __spreadProps(__spreadValues({
1002
979
  onClick: disclosure[1].open,
1003
- leftSection: /* @__PURE__ */ jsx20(IconPlus6, {})
980
+ leftSection: /* @__PURE__ */ jsx19(IconPlus6, {})
1004
981
  }, buttonProps), {
1005
982
  children: "Th\xEAm"
1006
983
  })
1007
984
  ),
1008
- /* @__PURE__ */ jsx20(
1009
- Modal5,
985
+ /* @__PURE__ */ jsx19(
986
+ Modal4,
1010
987
  __spreadProps(__spreadValues({
1011
988
  title: isUpdate ? "S\u1EEDa d\u1EEF li\u1EC7u" : "Th\xEAm d\u1EEF li\u1EC7u",
1012
989
  opened: disclosure[0],
1013
990
  onClose: disclosure[1].close
1014
991
  }, modalProps), {
1015
- children: /* @__PURE__ */ jsx20("form", { onSubmit: form.onSubmit((values) => {
992
+ children: /* @__PURE__ */ jsx19("form", { onSubmit: form.onSubmit((values) => {
1016
993
  mutation.mutate(values);
1017
- }), children: /* @__PURE__ */ jsxs9(MyFlexColumn, { children: [
994
+ }), children: /* @__PURE__ */ jsxs8(MyFlexColumn, { children: [
1018
995
  children,
1019
- /* @__PURE__ */ jsx20(CoreButton, { actionType: "create" })
996
+ /* @__PURE__ */ jsx19(CoreButton, { actionType: "create" })
1020
997
  ] }) })
1021
998
  })
1022
999
  )
1023
1000
  ] });
1024
1001
  }
1025
1002
 
1003
+ // src/components/Buttons/CoreButtonModal.tsx
1004
+ import { Button as Button6, Modal as Modal5 } from "@mantine/core";
1005
+ import { Fragment as Fragment6, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
1006
+ function CoreButtonModal({
1007
+ disclosure,
1008
+ children,
1009
+ buttonProps,
1010
+ modalProps
1011
+ }) {
1012
+ return /* @__PURE__ */ jsxs9(Fragment6, { children: [
1013
+ /* @__PURE__ */ jsx20(Button6, __spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, buttonProps)),
1014
+ /* @__PURE__ */ jsx20(
1015
+ Modal5,
1016
+ __spreadProps(__spreadValues({
1017
+ opened: disclosure == null ? void 0 : disclosure[0],
1018
+ onClose: disclosure[1].close
1019
+ }, modalProps), {
1020
+ children: /* @__PURE__ */ jsx20(MyFlexColumn, { children })
1021
+ })
1022
+ )
1023
+ ] });
1024
+ }
1025
+
1026
1026
  // src/components/Buttons/Anchor/MyAnchorViewPDF.tsx
1027
1027
  import { ActionIcon as ActionIcon10, Anchor, Group as Group4, Modal as Modal6, Paper as Paper2, Text as Text5 } from "@mantine/core";
1028
1028
  import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
@@ -8317,8 +8317,8 @@ export {
8317
8317
  MyAppSpotlight,
8318
8318
  CoreActionIcon,
8319
8319
  CoreButton,
8320
+ CoreButtonCreateUpdate,
8320
8321
  CoreButtonModal,
8321
- MyButtonCreateUpdate,
8322
8322
  MyAnchorViewPDF,
8323
8323
  MyButtonModal,
8324
8324
  AQButtonCreateByImportFile,
@@ -104,14 +104,6 @@ interface CoreButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElem
104
104
  }
105
105
  declare function CoreButton({ children, actionType, ...rest }: CoreButtonProps): react_jsx_runtime.JSX.Element;
106
106
 
107
- interface CoreButtonModalProps {
108
- children?: ReactNode;
109
- disclosure: ReturnType<typeof useDisclosure>;
110
- buttonProps?: ButtonProps;
111
- modalProps?: ModalProps;
112
- }
113
- declare function CoreButtonModal({ disclosure, children, buttonProps, modalProps, }: CoreButtonModalProps): react_jsx_runtime.JSX.Element;
114
-
115
107
  interface CoreButtonCreateUpdateProps<IReq, IRes> {
116
108
  modalProps?: ModalProps;
117
109
  actionIconProps?: ActionIconProps;
@@ -126,7 +118,15 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
126
118
  disclosure?: ReturnType<typeof useDisclosure>;
127
119
  children?: ReactNode;
128
120
  }
129
- declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
121
+ declare function CoreButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
122
+
123
+ interface CoreButtonModalProps {
124
+ children?: ReactNode;
125
+ disclosure: ReturnType<typeof useDisclosure>;
126
+ buttonProps?: ButtonProps;
127
+ modalProps?: ModalProps;
128
+ }
129
+ declare function CoreButtonModal({ disclosure, children, buttonProps, modalProps, }: CoreButtonModalProps): react_jsx_runtime.JSX.Element;
130
130
 
131
131
  declare function MyAnchorViewPDF({ label, pdfLink }: {
132
132
  label: string;
@@ -584,4 +584,4 @@ interface IMySkeletonTable extends SkeletonProps {
584
584
  }
585
585
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
586
586
 
587
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, CoreActionIcon, CoreButton, CoreButtonModal, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonCreateUpdate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, type MyDataTableInternalProps, type MyDataTableProps, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
587
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, CoreActionIcon, CoreButton, CoreButtonCreateUpdate, CoreButtonModal, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, type MyDataTableInternalProps, type MyDataTableProps, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -9,6 +9,7 @@ import {
9
9
  Boxes,
10
10
  CoreActionIcon,
11
11
  CoreButton,
12
+ CoreButtonCreateUpdate,
12
13
  CoreButtonModal,
13
14
  FaviconSetter,
14
15
  HeaderMegaMenu,
@@ -26,7 +27,6 @@ import {
26
27
  MyBoxesCore,
27
28
  MyButton,
28
29
  MyButtonCreate,
29
- MyButtonCreateUpdate,
30
30
  MyButtonDeleteList,
31
31
  MyButtonImport,
32
32
  MyButtonModal,
@@ -72,9 +72,9 @@ import {
72
72
  useS_BasicAppShell,
73
73
  useS_ButtonImport,
74
74
  utils_layout_getItemsWithoutLinks
75
- } from "../chunk-W3M7WO2A.mjs";
76
- import "../chunk-NWBLJ3W3.mjs";
75
+ } from "../chunk-W2UH4UHQ.mjs";
77
76
  import "../chunk-K6S7R6LU.mjs";
77
+ import "../chunk-NWBLJ3W3.mjs";
78
78
  import "../chunk-KKJ3OEEW.mjs";
79
79
  import "../chunk-Y3YGC5IH.mjs";
80
80
  import "../chunk-5U2JSHSJ.mjs";
@@ -91,6 +91,7 @@ export {
91
91
  Boxes,
92
92
  CoreActionIcon,
93
93
  CoreButton,
94
+ CoreButtonCreateUpdate,
94
95
  CoreButtonModal,
95
96
  FaviconSetter,
96
97
  HeaderMegaMenu,
@@ -108,7 +109,6 @@ export {
108
109
  MyBoxesCore,
109
110
  MyButton,
110
111
  MyButtonCreate,
111
- MyButtonCreateUpdate,
112
112
  MyButtonDeleteList,
113
113
  MyButtonImport,
114
114
  MyButtonModal,
@@ -1,9 +1,3 @@
1
- import {
2
- const_object_documentTypes
3
- } from "../chunk-GFEMKKFH.mjs";
4
- import {
5
- enum_emailConfigModule
6
- } from "../chunk-VH4ZAD6M.mjs";
7
1
  import {
8
2
  F_authenticate_Logout,
9
3
  MyActionIconDelete,
@@ -30,11 +24,17 @@ import {
30
24
  useS_BasicAppShell,
31
25
  useS_authenticate,
32
26
  utils_layout_getItemsWithoutLinks
33
- } from "../chunk-W3M7WO2A.mjs";
27
+ } from "../chunk-W2UH4UHQ.mjs";
28
+ import {
29
+ enum_emailConfigModule
30
+ } from "../chunk-VH4ZAD6M.mjs";
31
+ import "../chunk-K6S7R6LU.mjs";
32
+ import {
33
+ const_object_documentTypes
34
+ } from "../chunk-GFEMKKFH.mjs";
34
35
  import {
35
36
  const_object_colors
36
37
  } from "../chunk-NWBLJ3W3.mjs";
37
- import "../chunk-K6S7R6LU.mjs";
38
38
  import {
39
39
  baseAxios_default,
40
40
  useQ_AQ_GetAQModule,
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "types": "./dist/enum/index.d.mts"
35
35
  }
36
36
  },
37
- "version": "0.1.294",
37
+ "version": "0.1.295",
38
38
  "private": false,
39
39
  "files": [
40
40
  "dist"