aq-fe-framework 0.1.233 → 0.1.235

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.
@@ -19,6 +19,12 @@ function createBaseApi(baseUrl, axiosInstance) {
19
19
  },
20
20
  delete: (id) => {
21
21
  return axiosInstance.post(`${baseUrl}/delete`, { id });
22
+ },
23
+ deleteList: (values) => {
24
+ return axiosInstance.post(`${baseUrl}/deleteList`, values.map((item) => ({
25
+ id: item.id,
26
+ isEnabled: false
27
+ })));
22
28
  }
23
29
  };
24
30
  }
@@ -148,6 +148,15 @@ 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
+ interface IMyButtonDeleteList extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure"> {
152
+ onSubmit: () => void;
153
+ onSuccess?: () => void;
154
+ onError?: () => void;
155
+ contextData?: string;
156
+ loading?: boolean;
157
+ }
158
+ declare function MyButtonDeleteList({ onSubmit, onSuccess, onError, contextData, ...rest }: IMyButtonDeleteList): react_jsx_runtime.JSX.Element;
159
+
151
160
  interface SelectFileModalProps {
152
161
  onExportStructure?: () => void;
153
162
  stack: ReturnType<typeof useModalsStack<"select-file-page" | "select-field-page" | "implement-page">>;
@@ -512,4 +521,4 @@ interface IMySkeletonTable extends SkeletonProps {
512
521
  }
513
522
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
514
523
 
515
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
524
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, 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, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -23,6 +23,7 @@ import {
23
23
  MyBoxesCore,
24
24
  MyButton,
25
25
  MyButtonCreate,
26
+ MyButtonDeleteList,
26
27
  MyButtonImport,
27
28
  MyButtonModal,
28
29
  MyButtonPrintPDF,
@@ -65,11 +66,11 @@ import {
65
66
  useS_BasicAppShell,
66
67
  useS_ButtonImport,
67
68
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-Z4HWHVNV.mjs";
69
- import "../chunk-P5TKOHP7.mjs";
70
- import "../chunk-Y3YGC5IH.mjs";
69
+ } from "../chunk-7FKPYUUJ.mjs";
70
+ import "../chunk-L2SCL3AF.mjs";
71
71
  import "../chunk-5U2JSHSJ.mjs";
72
72
  import "../chunk-7ZCOFATU.mjs";
73
+ import "../chunk-Y3YGC5IH.mjs";
73
74
  import "../chunk-FWCSY2DS.mjs";
74
75
  export {
75
76
  AQButtonCreateByImportFile,
@@ -96,6 +97,7 @@ export {
96
97
  MyBoxesCore,
97
98
  MyButton,
98
99
  MyButtonCreate,
100
+ MyButtonDeleteList,
99
101
  MyButtonImport,
100
102
  MyButtonModal,
101
103
  MyButtonPrintPDF,
@@ -17,6 +17,10 @@ declare function createBaseApi<T>(baseUrl: string, axiosInstance: AxiosInstance)
17
17
  update: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
18
18
  createOrUpdate: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
19
19
  delete: (id: number) => Promise<axios.AxiosResponse<any, any>>;
20
+ deleteList: (values: {
21
+ id: number;
22
+ isEnabled: boolean;
23
+ }[]) => Promise<axios.AxiosResponse<any, any>>;
20
24
  };
21
25
 
22
26
  declare const useLoadAxiosConfig: ({ axiosInstance }: {
@@ -4,7 +4,7 @@ import {
4
4
  useMyReactMutation,
5
5
  useMyReactQuery,
6
6
  useQ_AQ_GetAQModule
7
- } from "../chunk-P5TKOHP7.mjs";
7
+ } from "../chunk-L2SCL3AF.mjs";
8
8
  import "../chunk-7ZCOFATU.mjs";
9
9
  import "../chunk-FWCSY2DS.mjs";
10
10
  export {
@@ -25,15 +25,12 @@ import {
25
25
  useS_BasicAppShell,
26
26
  useS_authenticate,
27
27
  utils_layout_getItemsWithoutLinks
28
- } from "../chunk-Z4HWHVNV.mjs";
28
+ } from "../chunk-7FKPYUUJ.mjs";
29
29
  import {
30
30
  baseAxios_default,
31
31
  useQ_AQ_GetAQModule,
32
32
  useQ_SkillCenter_GetAll
33
- } from "../chunk-P5TKOHP7.mjs";
34
- import {
35
- createGenericStore
36
- } from "../chunk-Y3YGC5IH.mjs";
33
+ } from "../chunk-L2SCL3AF.mjs";
37
34
  import {
38
35
  U0DateToDDMMYYYString,
39
36
  U0MyValidateEmail,
@@ -46,6 +43,9 @@ import "../chunk-5U2JSHSJ.mjs";
46
43
  import {
47
44
  utils_notification_show
48
45
  } from "../chunk-7ZCOFATU.mjs";
46
+ import {
47
+ createGenericStore
48
+ } from "../chunk-Y3YGC5IH.mjs";
49
49
  import {
50
50
  __objRest,
51
51
  __spreadProps,
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.233",
25
+ "version": "0.1.235",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"