aq-fe-framework 0.1.969 → 0.1.970

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.
@@ -228,7 +228,7 @@ function useMyReactMutation({
228
228
  return res.data.data;
229
229
  }
230
230
  }, options), {
231
- onSuccess: (data, variables, result, context) => {
231
+ onSuccess: (data, variables, context) => {
232
232
  var _a;
233
233
  if (enableDefaultSuccess) {
234
234
  notifications.show({
@@ -237,9 +237,9 @@ function useMyReactMutation({
237
237
  });
238
238
  queryClient.invalidateQueries();
239
239
  }
240
- (_a = options == null ? void 0 : options.onSuccess) == null ? void 0 : _a.call(options, data, variables, result, context);
240
+ (_a = options == null ? void 0 : options.onSuccess) == null ? void 0 : _a.call(options, data, variables, context);
241
241
  },
242
- onError: (error, variables, result, context) => {
242
+ onError: (error, variables, context) => {
243
243
  var _a;
244
244
  let parsed;
245
245
  try {
@@ -255,7 +255,7 @@ function useMyReactMutation({
255
255
  });
256
256
  }
257
257
  }
258
- (_a = options == null ? void 0 : options.onError) == null ? void 0 : _a.call(options, error, variables, result, context);
258
+ (_a = options == null ? void 0 : options.onError) == null ? void 0 : _a.call(options, error, variables, context);
259
259
  }
260
260
  }));
261
261
  }
@@ -1,7 +1,3 @@
1
- import {
2
- useStore_Permission,
3
- useStore_ProjectInfo
4
- } from "./chunk-BJAYNNOF.mjs";
5
1
  import {
6
2
  utils_aq_mapBaseEntityToDomain,
7
3
  utils_aq_mapDomainToEntity,
@@ -16,6 +12,10 @@ import {
16
12
  utils_notification_show,
17
13
  utils_pdf_download
18
14
  } from "./chunk-KGBXMHKR.mjs";
15
+ import {
16
+ useStore_Permission,
17
+ useStore_ProjectInfo
18
+ } from "./chunk-BJAYNNOF.mjs";
19
19
  import {
20
20
  utils_date,
21
21
  utils_excel,
@@ -27,7 +27,7 @@ import {
27
27
  import {
28
28
  const_object_colors,
29
29
  const_object_documentTypes
30
- } from "./chunk-SPG47QW7.mjs";
30
+ } from "./chunk-4IP2EYUM.mjs";
31
31
  import {
32
32
  enum_daysOfWeek
33
33
  } from "./chunk-K6S7R6LU.mjs";
@@ -39,7 +39,7 @@ import {
39
39
  useMyReactMutation,
40
40
  useMyReactQuery,
41
41
  useQ_AQ_GetAQModule
42
- } from "./chunk-G4XP5MGI.mjs";
42
+ } from "./chunk-G2IMUVMM.mjs";
43
43
  import {
44
44
  baseAxios_default
45
45
  } from "./chunk-YWANA62C.mjs";
@@ -2754,7 +2754,7 @@ function M(n3) {
2754
2754
  (!n3.__d && (n3.__d = true) && i.push(n3) && !$.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)($);
2755
2755
  }
2756
2756
  function $() {
2757
- for (var n3, u5, t4, r4, o4, f5, c4, s4 = 1; i.length; ) i.length > s4 && i.sort(e), n3 = i.shift(), s4 = i.length, n3.__d && (t4 = void 0, r4 = void 0, o4 = (r4 = (u5 = n3).__v).__e, f5 = [], c4 = [], u5.__P && ((t4 = d({}, r4)).__v = r4.__v + 1, l.vnode && l.vnode(t4), O(u5.__P, t4, r4, u5.__n, u5.__P.namespaceURI, 32 & r4.__u ? [o4] : null, f5, null == o4 ? S(r4) : o4, !!(32 & r4.__u), c4), t4.__v = r4.__v, t4.__.__k[t4.__i] = t4, N(f5, t4, c4), r4.__e = r4.__ = null, t4.__e != o4 && C(t4)));
2757
+ for (var n3, u5, t4, r4, o4, f5, c4, s4 = 1; i.length; ) i.length > s4 && i.sort(e), n3 = i.shift(), s4 = i.length, n3.__d && (t4 = void 0, o4 = (r4 = (u5 = n3).__v).__e, f5 = [], c4 = [], u5.__P && ((t4 = d({}, r4)).__v = r4.__v + 1, l.vnode && l.vnode(t4), O(u5.__P, t4, r4, u5.__n, u5.__P.namespaceURI, 32 & r4.__u ? [o4] : null, f5, null == o4 ? S(r4) : o4, !!(32 & r4.__u), c4), t4.__v = r4.__v, t4.__.__k[t4.__i] = t4, N(f5, t4, c4), t4.__e != o4 && C(t4)));
2758
2758
  $.__r = 0;
2759
2759
  }
2760
2760
  function I(n3, l4, u5, t4, i5, r4, o4, e4, f5, c4, s4) {
@@ -3,7 +3,7 @@ import react__default, { ReactNode, ComponentProps } from 'react';
3
3
  import { t as type_action } from '../type_action-Bt__6lee.mjs';
4
4
  import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
5
5
  import { AxiosResponse } from 'axios';
6
- import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-cvZ3E83t.mjs';
6
+ import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-D8XdiELk.mjs';
7
7
  import { type_mantineSize } from '../types/index.mjs';
8
8
  import { useDisclosure, useListState } from '@mantine/hooks';
9
9
  import { UseFormReturnType, useForm } from '@mantine/form';
@@ -68,14 +68,14 @@ import {
68
68
  useHeaderMegaMenuStore,
69
69
  useS_ButtonImport,
70
70
  useStore_BasicAppShell
71
- } from "../chunk-2YHQKV4K.mjs";
72
- import "../chunk-BJAYNNOF.mjs";
71
+ } from "../chunk-TQJQYE4V.mjs";
73
72
  import "../chunk-KGBXMHKR.mjs";
73
+ import "../chunk-BJAYNNOF.mjs";
74
74
  import "../chunk-ZDINCHBS.mjs";
75
75
  import "../chunk-YGWSHSTG.mjs";
76
- import "../chunk-SPG47QW7.mjs";
76
+ import "../chunk-4IP2EYUM.mjs";
77
77
  import "../chunk-K6S7R6LU.mjs";
78
- import "../chunk-G4XP5MGI.mjs";
78
+ import "../chunk-G2IMUVMM.mjs";
79
79
  import "../chunk-WZ6PXGGC.mjs";
80
80
  import "../chunk-YWANA62C.mjs";
81
81
  import "../chunk-JD6AELXS.mjs";
@@ -5,7 +5,7 @@ import {
5
5
  const_object_colors,
6
6
  const_object_documentTypes,
7
7
  const_object_generalMenuData
8
- } from "../chunk-SPG47QW7.mjs";
8
+ } from "../chunk-4IP2EYUM.mjs";
9
9
  import "../chunk-JD6AELXS.mjs";
10
10
  export {
11
11
  const_aqModuleId,
@@ -3,7 +3,7 @@ import { ReactNode, ComponentProps } from 'react';
3
3
  import { useDisclosure } from '@mantine/hooks';
4
4
  import { UseFormReturnType } from '@mantine/form';
5
5
  import { AxiosResponse } from 'axios';
6
- import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-cvZ3E83t.mjs';
6
+ import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-D8XdiELk.mjs';
7
7
  import { ModalProps, ScrollAreaAutosizeProps, TooltipProps, ButtonProps, BadgeProps, TextProps, PaperProps, GroupProps, ThemeIconProps, AutocompleteProps, NumberInputProps, TextInputProps, FileInputProps, InputWrapperProps, FlexProps } from '@mantine/core';
8
8
  import { M as MyActionIconProps, a as MyButtonProps, b as MyButtonModalProps, c as MyDataTableProps } from '../MyDataTable-Ra7SXzdJ.mjs';
9
9
  export { e as MyActionIcon, f as MyButton, d as MyButtonModal } from '../MyDataTable-Ra7SXzdJ.mjs';
@@ -31,14 +31,14 @@ import {
31
31
  MyStatsCard,
32
32
  MyTextInput2 as MyTextInput,
33
33
  MyWeeklySessionSchedulerPicker
34
- } from "../chunk-2YHQKV4K.mjs";
35
- import "../chunk-BJAYNNOF.mjs";
34
+ } from "../chunk-TQJQYE4V.mjs";
36
35
  import "../chunk-KGBXMHKR.mjs";
36
+ import "../chunk-BJAYNNOF.mjs";
37
37
  import "../chunk-ZDINCHBS.mjs";
38
38
  import "../chunk-YGWSHSTG.mjs";
39
- import "../chunk-SPG47QW7.mjs";
39
+ import "../chunk-4IP2EYUM.mjs";
40
40
  import "../chunk-K6S7R6LU.mjs";
41
- import "../chunk-G4XP5MGI.mjs";
41
+ import "../chunk-G2IMUVMM.mjs";
42
42
  import "../chunk-WZ6PXGGC.mjs";
43
43
  import "../chunk-YWANA62C.mjs";
44
44
  import "../chunk-JD6AELXS.mjs";
@@ -6,8 +6,8 @@ import * as _mantine_hooks from '@mantine/hooks';
6
6
  import * as _mantine_form from '@mantine/form';
7
7
  import { FormValidateInput } from '@mantine/form';
8
8
  import { AxiosResponse, AxiosInstance } from 'axios';
9
- import { M as MyApiResponse, B as BaseApiType } from '../useMyReactMutation-cvZ3E83t.mjs';
10
- export { I as IPagingParams, a as MyReactMutationProps, c as createBaseApi, u as useMyReactMutation } from '../useMyReactMutation-cvZ3E83t.mjs';
9
+ import { M as MyApiResponse, B as BaseApiType } from '../useMyReactMutation-D8XdiELk.mjs';
10
+ export { I as IPagingParams, a as MyReactMutationProps, c as createBaseApi, u as useMyReactMutation } from '../useMyReactMutation-D8XdiELk.mjs';
11
11
  import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
12
12
  import { I as IAQModule } from '../IAQModule-bW0dxQvX.mjs';
13
13
  import '../type_mutation-CCtnyeP3.mjs';
@@ -11,7 +11,7 @@ import {
11
11
  useMyReactQuery,
12
12
  useMyRouter,
13
13
  useQ_AQ_GetAQModule
14
- } from "../chunk-G4XP5MGI.mjs";
14
+ } from "../chunk-G2IMUVMM.mjs";
15
15
  import "../chunk-WZ6PXGGC.mjs";
16
16
  import "../chunk-YWANA62C.mjs";
17
17
  import "../chunk-JD6AELXS.mjs";
@@ -102,14 +102,14 @@ import {
102
102
  MailTemplateDeleteButton,
103
103
  useS_moduleConfig,
104
104
  useStore_Authenticate
105
- } from "../chunk-2YHQKV4K.mjs";
106
- import "../chunk-BJAYNNOF.mjs";
105
+ } from "../chunk-TQJQYE4V.mjs";
107
106
  import "../chunk-KGBXMHKR.mjs";
107
+ import "../chunk-BJAYNNOF.mjs";
108
108
  import "../chunk-ZDINCHBS.mjs";
109
109
  import "../chunk-YGWSHSTG.mjs";
110
- import "../chunk-SPG47QW7.mjs";
110
+ import "../chunk-4IP2EYUM.mjs";
111
111
  import "../chunk-K6S7R6LU.mjs";
112
- import "../chunk-G4XP5MGI.mjs";
112
+ import "../chunk-G2IMUVMM.mjs";
113
113
  import "../chunk-WZ6PXGGC.mjs";
114
114
  import "../chunk-YWANA62C.mjs";
115
115
  import "../chunk-JD6AELXS.mjs";
@@ -4,16 +4,16 @@ import {
4
4
  } from "../chunk-RGUQWALX.mjs";
5
5
  import {
6
6
  MySelect2 as MySelect
7
- } from "../chunk-2YHQKV4K.mjs";
8
- import "../chunk-BJAYNNOF.mjs";
7
+ } from "../chunk-TQJQYE4V.mjs";
9
8
  import "../chunk-KGBXMHKR.mjs";
9
+ import "../chunk-BJAYNNOF.mjs";
10
10
  import {
11
11
  utils_converter
12
12
  } from "../chunk-ZDINCHBS.mjs";
13
13
  import "../chunk-YGWSHSTG.mjs";
14
- import "../chunk-SPG47QW7.mjs";
14
+ import "../chunk-4IP2EYUM.mjs";
15
15
  import "../chunk-K6S7R6LU.mjs";
16
- import "../chunk-G4XP5MGI.mjs";
16
+ import "../chunk-G2IMUVMM.mjs";
17
17
  import "../chunk-WZ6PXGGC.mjs";
18
18
  import "../chunk-YWANA62C.mjs";
19
19
  import {
@@ -21,20 +21,20 @@ declare function createBaseApi<T>(baseUrl: string, axiosInstance: AxiosInstance)
21
21
  params?: string;
22
22
  id?: number;
23
23
  paging?: IPagingParams;
24
- }) => Promise<axios.AxiosResponse<MyApiResponse<T>, any, {}>>;
24
+ }) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
25
25
  getAll: ({ params, cols, paging }?: {
26
26
  params?: string;
27
27
  paging?: IPagingParams;
28
28
  cols?: string[];
29
- }) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any, {}>>;
30
- create: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any, {}>>;
31
- update: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any, {}>>;
32
- updateList: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any, {}>>;
33
- createOrUpdateList: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any, {}>>;
34
- createList: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any, {}>>;
35
- delete: (id: number) => Promise<axios.AxiosResponse<any, any, {}>>;
36
- deleteList: (values: IBaseEntity[]) => Promise<axios.AxiosResponse<any, any, {}>>;
37
- deleteListIds: (ids: number[]) => Promise<axios.AxiosResponse<any, any, {}>>;
29
+ }) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
30
+ create: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
31
+ update: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
32
+ updateList: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
33
+ createOrUpdateList: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
34
+ createList: (data: Partial<T[]>) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
35
+ delete: (id: number) => Promise<axios.AxiosResponse<any, any>>;
36
+ deleteList: (values: IBaseEntity[]) => Promise<axios.AxiosResponse<any, any>>;
37
+ deleteListIds: (ids: number[]) => Promise<axios.AxiosResponse<any, any>>;
38
38
  };
39
39
 
40
40
  interface MyReactMutationProps<IReq = void, IRes = void> {
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "types": "./dist/build-object/index.d.mts"
55
55
  }
56
56
  },
57
- "version": "0.1.969",
57
+ "version": "0.1.970",
58
58
  "private": false,
59
59
  "files": [
60
60
  "dist"
@@ -77,19 +77,19 @@
77
77
  "@fullcalendar/core": "^6.1.15",
78
78
  "@fullcalendar/daygrid": "^6.1.15",
79
79
  "@fullcalendar/react": "^6.1.15",
80
- "@mantine/carousel": "8.2.7",
81
- "@mantine/charts": "8.2.7",
82
- "@mantine/code-highlight": "8.2.7",
83
- "@mantine/core": "8.2.7",
84
- "@mantine/dates": "8.2.7",
85
- "@mantine/dropzone": "8.2.7",
86
- "@mantine/form": "8.2.7",
87
- "@mantine/hooks": "8.2.7",
88
- "@mantine/modals": "8.2.7",
89
- "@mantine/notifications": "8.2.7",
90
- "@mantine/nprogress": "8.2.7",
91
- "@mantine/spotlight": "8.2.7",
92
- "@mantine/tiptap": "8.2.7",
80
+ "@mantine/carousel": "8.3.1",
81
+ "@mantine/charts": "8.3.1",
82
+ "@mantine/code-highlight": "8.3.1",
83
+ "@mantine/core": "8.3.1",
84
+ "@mantine/dates": "8.3.1",
85
+ "@mantine/dropzone": "8.3.1",
86
+ "@mantine/form": "8.3.1",
87
+ "@mantine/hooks": "8.3.1",
88
+ "@mantine/modals": "8.3.1",
89
+ "@mantine/notifications": "8.3.1",
90
+ "@mantine/nprogress": "8.3.1",
91
+ "@mantine/spotlight": "8.3.1",
92
+ "@mantine/tiptap": "8.3.1",
93
93
  "@mantinex/mantine-logo": "^2.0.0",
94
94
  "@schedule-x/event-modal": "^2.12.1",
95
95
  "@schedule-x/events-service": "^2.28.0",
@@ -158,8 +158,8 @@
158
158
  "@types/lodash": "^4.17.20",
159
159
  "@types/node": "^20.17.30",
160
160
  "@types/pako": "^2.0.3",
161
- "@types/react": "^18.3.23",
162
- "@types/react-dom": "^18.3.7",
161
+ "@types/react": "^18",
162
+ "@types/react-dom": "^18",
163
163
  "@vitest/browser": "^3.2.4",
164
164
  "@vitest/coverage-v8": "^3.2.4",
165
165
  "barrelsby": "^2.8.1",
@@ -87,10 +87,10 @@ var const_object_generalMenuData = {
87
87
  };
88
88
 
89
89
  export {
90
- const_object_colors,
91
90
  const_array_daysOfWeek,
92
91
  const_aqModuleId,
93
92
  const_columnSize,
93
+ const_object_colors,
94
94
  const_object_documentTypes,
95
95
  const_object_generalMenuData
96
96
  };