aq-fe-framework 0.1.254 → 0.1.255
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.
@@ -148,6 +148,23 @@ interface IMyButtonCreate<T> extends Omit<ComponentProps<typeof MyButtonModal>,
|
|
148
148
|
}
|
149
149
|
declare function MyButtonCreate<T>({ form, onSubmit, onSuccess, onError, notCloseModalWhenSubmit, notResetFormWhenSubmit, children, disclosure: externalDisclosure, ...rest }: IMyButtonCreate<T>): react_jsx_runtime.JSX.Element;
|
150
150
|
|
151
|
+
type MyButtonProps = Omit<ComponentProps<typeof MyButtonModal>, "form" | "onSubmit" | "disclosure">;
|
152
|
+
type MyActionIconProps = Omit<ComponentProps<typeof MyActionIconModal>, "form" | "onSubmit" | "disclosure">;
|
153
|
+
interface MyButtonCreateUpdateProps<T> {
|
154
|
+
onSubmit: (values: T) => void;
|
155
|
+
onSuccess?: () => void;
|
156
|
+
onError?: () => void;
|
157
|
+
form: UseFormReturnType<T>;
|
158
|
+
closeModalWhenSubmit?: boolean;
|
159
|
+
resetFormWhenSubmit?: boolean;
|
160
|
+
disclosure?: ReturnType<typeof useDisclosure>;
|
161
|
+
isUpdate?: boolean;
|
162
|
+
buttonProps?: MyButtonProps;
|
163
|
+
actionIconProps?: MyActionIconProps;
|
164
|
+
children?: React.ReactNode;
|
165
|
+
}
|
166
|
+
declare function MyButtonCreateUpdate<T>({ form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, disclosure: externalDisclosure, isUpdate, children, buttonProps, actionIconProps, }: MyButtonCreateUpdateProps<T>): react_jsx_runtime.JSX.Element;
|
167
|
+
|
151
168
|
interface IMyButtonDeleteList extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure"> {
|
152
169
|
onSubmit: () => void;
|
153
170
|
onSuccess?: () => void;
|
@@ -543,4 +560,4 @@ interface IMySkeletonTable extends SkeletonProps {
|
|
543
560
|
}
|
544
561
|
declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
|
545
562
|
|
546
|
-
export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, 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 };
|
563
|
+
export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, 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 };
|
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
MyBoxesCore,
|
24
24
|
MyButton,
|
25
25
|
MyButtonCreate,
|
26
|
+
MyButtonCreateUpdate,
|
26
27
|
MyButtonDeleteList,
|
27
28
|
MyButtonImport,
|
28
29
|
MyButtonModal,
|
@@ -68,7 +69,7 @@ import {
|
|
68
69
|
useS_BasicAppShell,
|
69
70
|
useS_ButtonImport,
|
70
71
|
utils_layout_getItemsWithoutLinks
|
71
|
-
} from "../chunk-
|
72
|
+
} from "../chunk-XRE7MZK2.mjs";
|
72
73
|
import "../chunk-HMRYQTJT.mjs";
|
73
74
|
import "../chunk-Y3YGC5IH.mjs";
|
74
75
|
import "../chunk-5U2JSHSJ.mjs";
|
@@ -99,6 +100,7 @@ export {
|
|
99
100
|
MyBoxesCore,
|
100
101
|
MyButton,
|
101
102
|
MyButtonCreate,
|
103
|
+
MyButtonCreateUpdate,
|
102
104
|
MyButtonDeleteList,
|
103
105
|
MyButtonImport,
|
104
106
|
MyButtonModal,
|