aq-fe-framework 0.1.534 → 0.1.536

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.
@@ -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,
@@ -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";
@@ -216,8 +216,7 @@ function MyButtonCreateUpdate({
216
216
  children,
217
217
  disclosure: externalDisclosure,
218
218
  isUpdate = false,
219
- scrollAreaAutosizeProps,
220
- formId
219
+ scrollAreaAutosizeProps
221
220
  }) {
222
221
  const theme = useMantineColorScheme3();
223
222
  const defaultDisclosure = useDisclosure();
@@ -276,8 +275,8 @@ function MyButtonCreateUpdate({
276
275
  children: /* @__PURE__ */ jsxs(
277
276
  "form",
278
277
  {
279
- id: formId,
280
- onSubmit: form.onSubmit((values) => {
278
+ onSubmit: form.onSubmit((values, event) => {
279
+ event.stopPropagation();
281
280
  const result = onSubmit(values);
282
281
  let axiosPromise;
283
282
  if (result == false) return;
@@ -308,7 +307,7 @@ function MyButtonCreateUpdate({
308
307
  })
309
308
  ),
310
309
  /* @__PURE__ */ jsx4(Space, {}),
311
- /* @__PURE__ */ jsx4(MyButton, { form: formId, fullWidth: true, actionType: "save" })
310
+ /* @__PURE__ */ jsx4(MyButton, { fullWidth: true, actionType: "save" })
312
311
  ]
313
312
  }
314
313
  )
@@ -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";
@@ -41,9 +41,8 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
41
41
  resetFormWhenSubmit?: boolean;
42
42
  disclosure?: ReturnType<typeof useDisclosure>;
43
43
  children?: ReactNode;
44
- formId?: string;
45
44
  }
46
- declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, formId }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
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;
47
46
 
48
47
  interface IFieldStructure {
49
48
  fieldCode?: string;
@@ -18,12 +18,12 @@ import {
18
18
  MyStatsCard,
19
19
  MyTextInput,
20
20
  MyWeeklySessionSchedulerPicker
21
- } from "../chunk-LI4VLIEK.mjs";
21
+ } from "../chunk-OKCPFSOJ.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";
@@ -16,11 +16,11 @@ import {
16
16
  MyButton as MyButton2,
17
17
  MyDataTableSelectOne,
18
18
  MyTextInput as MyTextInput2
19
- } from "../chunk-LI4VLIEK.mjs";
19
+ } from "../chunk-OKCPFSOJ.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,
@@ -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";
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "types": "./dist/coreService/index.d.mts"
47
47
  }
48
48
  },
49
- "version": "0.1.534",
49
+ "version": "0.1.536",
50
50
  "private": false,
51
51
  "files": [
52
52
  "dist"