aq-fe-framework 0.1.535 → 0.1.537

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.
@@ -2,7 +2,7 @@ import {
2
2
  MyDataTable,
3
3
  MyFlexColumn,
4
4
  MyFlexRow
5
- } from "./chunk-PFOC2A7E.mjs";
5
+ } from "./chunk-KI4UPOLS.mjs";
6
6
  import {
7
7
  const_object_colors
8
8
  } from "./chunk-OMJJAHOC.mjs";
@@ -205,6 +205,7 @@ function MyButtonCreateUpdate({
205
205
  modalProps,
206
206
  actionIconProps,
207
207
  buttonProps,
208
+ submitButtonProps,
208
209
  form,
209
210
  onSubmit,
210
211
  onSuccess,
@@ -307,7 +308,7 @@ function MyButtonCreateUpdate({
307
308
  })
308
309
  ),
309
310
  /* @__PURE__ */ jsx4(Space, {}),
310
- /* @__PURE__ */ jsx4(MyButton, { fullWidth: true, actionType: "save" })
311
+ /* @__PURE__ */ jsx4(MyButton, __spreadValues({ fullWidth: true, actionType: "save" }, submitButtonProps))
311
312
  ]
312
313
  }
313
314
  )
@@ -396,6 +396,7 @@ function MyActionIconDelete(_a) {
396
396
  const disc = useDisclosure2();
397
397
  const loadingState = useState2();
398
398
  const mutation = useMyReactMutation({
399
+ mutationType: "delete",
399
400
  axiosFn: () => {
400
401
  if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
401
402
  console.log("X\xF3a th\xE0nh c\xF4ng (gi\u1EA3 l\u1EADp)");
@@ -429,9 +430,7 @@ function MyActionIconDelete(_a) {
429
430
  },
430
431
  options: __spreadValues(__spreadValues({
431
432
  onSuccess: () => {
432
- queryClient.invalidateQueries();
433
433
  loadingState[1](false);
434
- utils_notification_show({ crudType: "delete" });
435
434
  disc[1].close();
436
435
  }
437
436
  }, onSuccess && {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyButton
3
- } from "./chunk-PFOC2A7E.mjs";
3
+ } from "./chunk-KI4UPOLS.mjs";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadProps,
@@ -67,7 +67,7 @@ import {
67
67
  useS_BasicAppShell,
68
68
  useS_ButtonImport,
69
69
  utils_layout_getItemsWithoutLinks
70
- } from "../chunk-PFOC2A7E.mjs";
70
+ } from "../chunk-KI4UPOLS.mjs";
71
71
  import "../chunk-U62R2QKJ.mjs";
72
72
  import "../chunk-5U2JSHSJ.mjs";
73
73
  import "../chunk-OMJJAHOC.mjs";
@@ -29,6 +29,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
29
29
  modalProps?: Omit<ModalProps, "opened" | "onClose">;
30
30
  actionIconProps?: ActionIconProps;
31
31
  buttonProps?: MyButtonProps;
32
+ submitButtonProps?: MyButtonProps;
32
33
  scrollAreaAutosizeProps?: ScrollAreaAutosizeProps;
33
34
  isUpdate?: boolean;
34
35
  onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | false | void;
@@ -42,7 +43,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
42
43
  disclosure?: ReturnType<typeof useDisclosure>;
43
44
  children?: ReactNode;
44
45
  }
45
- declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
46
+ declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, submitButtonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
46
47
 
47
48
  interface IFieldStructure {
48
49
  fieldCode?: string;
@@ -18,12 +18,12 @@ import {
18
18
  MyStatsCard,
19
19
  MyTextInput,
20
20
  MyWeeklySessionSchedulerPicker
21
- } from "../chunk-TQJYE5FO.mjs";
21
+ } from "../chunk-2R7QTFQV.mjs";
22
22
  import "../chunk-GFEMKKFH.mjs";
23
23
  import {
24
24
  MyModalDelete
25
- } from "../chunk-LWFI4LKU.mjs";
26
- import "../chunk-PFOC2A7E.mjs";
25
+ } from "../chunk-MXQ76B6B.mjs";
26
+ import "../chunk-KI4UPOLS.mjs";
27
27
  import "../chunk-U62R2QKJ.mjs";
28
28
  import "../chunk-5U2JSHSJ.mjs";
29
29
  import "../chunk-OMJJAHOC.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-LWFI4LKU.mjs";
4
- import "../chunk-PFOC2A7E.mjs";
3
+ } from "../chunk-MXQ76B6B.mjs";
4
+ import "../chunk-KI4UPOLS.mjs";
5
5
  import "../chunk-U62R2QKJ.mjs";
6
6
  import "../chunk-5U2JSHSJ.mjs";
7
7
  import "../chunk-OMJJAHOC.mjs";
@@ -13,20 +13,20 @@ import {
13
13
  U0DateToDDMMYYYString
14
14
  } from "../chunk-EWDS5IOF.mjs";
15
15
  import {
16
- MyButton,
16
+ MyButton as MyButton2,
17
17
  MyDataTableSelectOne,
18
18
  MyTextInput as MyTextInput2
19
- } from "../chunk-TQJYE5FO.mjs";
19
+ } from "../chunk-2R7QTFQV.mjs";
20
20
  import {
21
21
  const_object_documentTypes
22
22
  } from "../chunk-GFEMKKFH.mjs";
23
- import "../chunk-LWFI4LKU.mjs";
23
+ import "../chunk-MXQ76B6B.mjs";
24
24
  import {
25
25
  F_authenticate_Logout,
26
26
  MyActionIconDelete,
27
27
  MyActionIconUpdate,
28
28
  MyBoxesBackground,
29
- MyButton as MyButton2,
29
+ MyButton,
30
30
  MyButtonCreate,
31
31
  MyButtonModal,
32
32
  MyButtonViewPDF,
@@ -46,7 +46,7 @@ import {
46
46
  groupToTwoLevels,
47
47
  useS_authenticate,
48
48
  utils_layout_getItemsWithoutLinks
49
- } from "../chunk-PFOC2A7E.mjs";
49
+ } from "../chunk-KI4UPOLS.mjs";
50
50
  import {
51
51
  createGenericStore
52
52
  } from "../chunk-U62R2QKJ.mjs";
@@ -211,7 +211,7 @@ function Permission_SaveMenuPermission({
211
211
  }
212
212
  });
213
213
  return /* @__PURE__ */ jsx3(
214
- MyButton,
214
+ MyButton2,
215
215
  {
216
216
  onClick: () => {
217
217
  mutation.mutate((values == null ? void 0 : values.filter((item) => item.id != "0").map((item) => ({
@@ -832,7 +832,7 @@ function F_accessControl_Save() {
832
832
  }
833
833
  disable[1](false);
834
834
  }, [store.state.rolePermissions]);
835
- return /* @__PURE__ */ jsx9(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
835
+ return /* @__PURE__ */ jsx9(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
836
836
  }
837
837
 
838
838
  // src/modules-features/admin/core/accessControl/old/F_accessControl.tsx
@@ -1286,7 +1286,7 @@ function F_accessControlLevel_Save() {
1286
1286
  }
1287
1287
  disable[1](false);
1288
1288
  }, [store.state.rolePermissions]);
1289
- return /* @__PURE__ */ jsx16(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
1289
+ return /* @__PURE__ */ jsx16(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
1290
1290
  }
1291
1291
 
1292
1292
  // src/modules-features/admin/core/accessControlLevel/old/F_accessControlLevel.tsx
@@ -3057,7 +3057,7 @@ function F_core35923() {
3057
3057
  /* @__PURE__ */ jsx49(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx49(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
3058
3058
  /* @__PURE__ */ jsx49(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx49(MyFileInput, { label: "Logo (330px x 115px)" }) })
3059
3059
  ] }),
3060
- /* @__PURE__ */ jsx49(MyFlexEnd, { children: /* @__PURE__ */ jsx49(MyButton2, { crudType: "save" }) })
3060
+ /* @__PURE__ */ jsx49(MyFlexEnd, { children: /* @__PURE__ */ jsx49(MyButton, { crudType: "save" }) })
3061
3061
  ] });
3062
3062
  }
3063
3063
 
@@ -4444,7 +4444,7 @@ function F_moduleConfig_Save({
4444
4444
  });
4445
4445
  }
4446
4446
  return /* @__PURE__ */ jsx83(
4447
- MyButton2,
4447
+ MyButton,
4448
4448
  {
4449
4449
  disabled: !form.isDirty(),
4450
4450
  crudType: "save",
@@ -4900,13 +4900,13 @@ import { useMemo as useMemo20 } from "react";
4900
4900
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
4901
4901
  import { jsx as jsx91 } from "react/jsx-runtime";
4902
4902
  function F_pageContentConfig_DeleteDescription() {
4903
- return /* @__PURE__ */ jsx91(MyButton, { actionType: "delete" });
4903
+ return /* @__PURE__ */ jsx91(MyButton2, { actionType: "delete" });
4904
4904
  }
4905
4905
 
4906
4906
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
4907
4907
  import { jsx as jsx92 } from "react/jsx-runtime";
4908
4908
  function F_pageContentConfig_Export() {
4909
- return /* @__PURE__ */ jsx92(MyButton, { actionType: "export" });
4909
+ return /* @__PURE__ */ jsx92(MyButton2, { actionType: "export" });
4910
4910
  }
4911
4911
 
4912
4912
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
@@ -4918,7 +4918,7 @@ function F_pageContentConfig_Save({ menuValues }) {
4918
4918
  return service_pageContent.updateList([{ id: 1 }]);
4919
4919
  }
4920
4920
  });
4921
- return /* @__PURE__ */ jsx93(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
4921
+ return /* @__PURE__ */ jsx93(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
4922
4922
  }
4923
4923
 
4924
4924
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "types": "./dist/coreService/index.d.mts"
47
47
  }
48
48
  },
49
- "version": "0.1.535",
49
+ "version": "0.1.537",
50
50
  "private": false,
51
51
  "files": [
52
52
  "dist"