aq-fe-framework 0.1.570 → 0.1.572

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.
@@ -0,0 +1,11 @@
1
+ // src/types/type_mutation.ts
2
+ var typeLabel_mutation = {
3
+ create: "T\u1EA1o th\xE0nh c\xF4ng!",
4
+ update: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng!",
5
+ delete: "X\xF3a th\xE0nh c\xF4ng!",
6
+ mutation: "Thao t\xE1c th\xE0nh c\xF4ng!"
7
+ };
8
+
9
+ export {
10
+ typeLabel_mutation
11
+ };
@@ -1,3 +1,6 @@
1
+ import {
2
+ typeLabel_mutation
3
+ } from "./chunk-2NS4LEOU.mjs";
1
4
  import {
2
5
  __spreadProps,
3
6
  __spreadValues
@@ -187,14 +190,6 @@ var useLoadAxiosConfig = ({
187
190
  // src/hooks/custom-hooks/useMutationAction.tsx
188
191
  import { useQueryClient } from "@tanstack/react-query";
189
192
 
190
- // src/types/type_mutation.ts
191
- var typeLabel_mutation = {
192
- create: "T\u1EA1o th\xE0nh c\xF4ng!",
193
- update: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng!",
194
- delete: "X\xF3a th\xE0nh c\xF4ng!",
195
- mutation: "Thao t\xE1c th\xE0nh c\xF4ng!"
196
- };
197
-
198
193
  // src/hooks/custom-hooks/useMyReactMutation.ts
199
194
  import { notifications } from "@mantine/notifications";
200
195
  import { useMutation, useQueryClient as useQueryClient2 } from "@tanstack/react-query";
@@ -3,7 +3,7 @@ import {
3
3
  MyFieldset,
4
4
  MyFlexColumn,
5
5
  MyFlexRow
6
- } from "./chunk-HETWN2YJ.mjs";
6
+ } from "./chunk-XRXYTRB5.mjs";
7
7
  import {
8
8
  const_object_colors
9
9
  } from "./chunk-OMJJAHOC.mjs";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  useMyReactMutation,
15
15
  useMyReactQuery
16
- } from "./chunk-HZAKEST5.mjs";
16
+ } from "./chunk-I6PPEZBF.mjs";
17
17
  import {
18
18
  utils_notification_show
19
19
  } from "./chunk-7ZCOFATU.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyButton
3
- } from "./chunk-HETWN2YJ.mjs";
3
+ } from "./chunk-XRXYTRB5.mjs";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadProps,
@@ -1,9 +1,9 @@
1
- import {
2
- createGenericStore
3
- } from "./chunk-U62R2QKJ.mjs";
4
1
  import {
5
2
  utils_pdf_download
6
3
  } from "./chunk-5U2JSHSJ.mjs";
4
+ import {
5
+ createGenericStore
6
+ } from "./chunk-U62R2QKJ.mjs";
7
7
  import {
8
8
  const_object_colors
9
9
  } from "./chunk-OMJJAHOC.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  baseAxios_default,
12
12
  useMyReactMutation,
13
13
  useQ_AQ_GetAQModule
14
- } from "./chunk-HZAKEST5.mjs";
14
+ } from "./chunk-I6PPEZBF.mjs";
15
15
  import {
16
16
  utils_notification_show
17
17
  } from "./chunk-7ZCOFATU.mjs";
@@ -1,12 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { ReactNode, ComponentProps } from 'react';
3
- import { t as type_action, a as type_mantineSize } from '../types-BwUJ1iPV.mjs';
3
+ import { type_action, type_mantineSize } from '../types/index.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
6
  import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
7
7
  import { useDisclosure, useListState } from '@mantine/hooks';
8
8
  import { UseFormReturnType, useForm } from '@mantine/form';
9
- import { M as MyReactMutationProps } from '../useMyReactMutation-Db7UOVxL.mjs';
9
+ import { M as MyReactMutationProps } from '../useMyReactMutation-2tiTf_qu.mjs';
10
10
  import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-BOu5-Gvr.mjs';
11
11
  export { a as BasicAppShell, B as BasicAppShell_transformMenuToEnum, f as flattenMenuGroups, g as groupToTwoLevels, u as utils_layout_getItemsWithoutLinks } from '../BasicAppShell-BOu5-Gvr.mjs';
12
12
  import { I as IUtils_Excel_ColumnConfig } from '../utils_excel-CLb5lfmI.mjs';
@@ -17,6 +17,7 @@ import { EditorOptions } from '@tiptap/react';
17
17
  import { I as IAQFileDetail } from '../utils_file-D9Yd0c4T.mjs';
18
18
  import { IconProps, Icon } from '@tabler/icons-react';
19
19
  import { CalendarEventExternal } from '@schedule-x/calendar';
20
+ import '../type_mutation-C-DWQOlQ.mjs';
20
21
  import '../IBaseEntity-ChMy9RzQ.mjs';
21
22
  import '@tanstack/react-query';
22
23
  import 'exceljs';
@@ -67,11 +67,12 @@ import {
67
67
  useS_BasicAppShell,
68
68
  useS_ButtonImport,
69
69
  utils_layout_getItemsWithoutLinks
70
- } from "../chunk-HETWN2YJ.mjs";
71
- import "../chunk-U62R2QKJ.mjs";
70
+ } from "../chunk-XRXYTRB5.mjs";
72
71
  import "../chunk-5U2JSHSJ.mjs";
72
+ import "../chunk-U62R2QKJ.mjs";
73
73
  import "../chunk-OMJJAHOC.mjs";
74
- import "../chunk-HZAKEST5.mjs";
74
+ import "../chunk-I6PPEZBF.mjs";
75
+ import "../chunk-2NS4LEOU.mjs";
75
76
  import "../chunk-7ZCOFATU.mjs";
76
77
  import "../chunk-FWCSY2DS.mjs";
77
78
  export {
@@ -1,18 +1,19 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { t as type_action } from '../types-BwUJ1iPV.mjs';
2
+ import { type_action } from '../types/index.mjs';
3
3
  import { ActionIconProps, ButtonProps, ModalProps, ScrollAreaAutosizeProps, TextProps, PaperProps, GroupProps, ThemeIconProps, InputWrapperProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
4
4
  import { ReactNode, ButtonHTMLAttributes } from 'react';
5
5
  import { UseFormReturnType } from '@mantine/form';
6
6
  import { AxiosResponse } from 'axios';
7
7
  import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
8
8
  import { useDisclosure } from '@mantine/hooks';
9
- import { M as MyReactMutationProps } from '../useMyReactMutation-Db7UOVxL.mjs';
9
+ import { M as MyReactMutationProps } from '../useMyReactMutation-2tiTf_qu.mjs';
10
10
  import { UseReactToPrintOptions } from 'react-to-print';
11
11
  import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
12
12
  import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
13
13
  import { RichTextEditorProps, RichTextEditorToolbarProps, RichTextEditorContentProps } from '@mantine/tiptap';
14
14
  import { I as IBaseEntity } from '../IBaseEntity-ChMy9RzQ.mjs';
15
15
  export { a as MyModalDelete, M as MyModalDeleteProps } from '../MyModalDelete-BfH3xRRW.mjs';
16
+ import '../type_mutation-C-DWQOlQ.mjs';
16
17
 
17
18
  interface MyActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ActionIconProps {
18
19
  actionType?: type_action;
@@ -20,17 +20,18 @@ import {
20
20
  MyStatsCard,
21
21
  MyTextInput,
22
22
  MyWeeklySessionSchedulerPicker
23
- } from "../chunk-RDMOBCWH.mjs";
23
+ } from "../chunk-KY7M5UL3.mjs";
24
24
  import "../chunk-GFEMKKFH.mjs";
25
25
  import {
26
26
  MyModalDelete
27
- } from "../chunk-IHBXELA5.mjs";
28
- import "../chunk-HETWN2YJ.mjs";
29
- import "../chunk-U62R2QKJ.mjs";
27
+ } from "../chunk-LPMIEXIH.mjs";
28
+ import "../chunk-XRXYTRB5.mjs";
30
29
  import "../chunk-5U2JSHSJ.mjs";
30
+ import "../chunk-U62R2QKJ.mjs";
31
31
  import "../chunk-OMJJAHOC.mjs";
32
32
  import "../chunk-K6S7R6LU.mjs";
33
- import "../chunk-HZAKEST5.mjs";
33
+ import "../chunk-I6PPEZBF.mjs";
34
+ import "../chunk-2NS4LEOU.mjs";
34
35
  import "../chunk-7ZCOFATU.mjs";
35
36
  import "../chunk-FWCSY2DS.mjs";
36
37
  export {
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-IHBXELA5.mjs";
4
- import "../chunk-HETWN2YJ.mjs";
5
- import "../chunk-U62R2QKJ.mjs";
3
+ } from "../chunk-LPMIEXIH.mjs";
4
+ import "../chunk-XRXYTRB5.mjs";
6
5
  import "../chunk-5U2JSHSJ.mjs";
6
+ import "../chunk-U62R2QKJ.mjs";
7
7
  import "../chunk-OMJJAHOC.mjs";
8
8
  import {
9
9
  useMyReactMutation
10
- } from "../chunk-HZAKEST5.mjs";
10
+ } from "../chunk-I6PPEZBF.mjs";
11
+ import "../chunk-2NS4LEOU.mjs";
11
12
  import "../chunk-7ZCOFATU.mjs";
12
13
  import {
13
14
  __objRest,
@@ -7,9 +7,10 @@ import { M as MyApiResponse } from '../createBaseApi-75GHCO22.mjs';
7
7
  export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-75GHCO22.mjs';
8
8
  import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
9
9
  import * as React from 'react';
10
- export { M as MyReactMutationProps, u as useMyReactMutation } from '../useMyReactMutation-Db7UOVxL.mjs';
10
+ export { M as MyReactMutationProps, u as useMyReactMutation } from '../useMyReactMutation-2tiTf_qu.mjs';
11
11
  import { I as IAQModule } from '../IAQModule-4U3n2emx.mjs';
12
12
  import '../IBaseEntity-ChMy9RzQ.mjs';
13
+ import '../type_mutation-C-DWQOlQ.mjs';
13
14
 
14
15
  interface UseCreateUpdateProps<TForm extends Record<string, any>, TEntity> {
15
16
  initValues?: TEntity;
@@ -8,7 +8,8 @@ import {
8
8
  useMyReactQuery,
9
9
  useMyRouter,
10
10
  useQ_AQ_GetAQModule
11
- } from "../chunk-HZAKEST5.mjs";
11
+ } from "../chunk-I6PPEZBF.mjs";
12
+ import "../chunk-2NS4LEOU.mjs";
12
13
  import "../chunk-7ZCOFATU.mjs";
13
14
  import "../chunk-FWCSY2DS.mjs";
14
15
  export {
@@ -15,11 +15,11 @@ import {
15
15
  MyButton as MyButton2,
16
16
  MyDataTableSelectOne,
17
17
  MyTextInput as MyTextInput2
18
- } from "../chunk-RDMOBCWH.mjs";
18
+ } from "../chunk-KY7M5UL3.mjs";
19
19
  import {
20
20
  const_object_documentTypes
21
21
  } from "../chunk-GFEMKKFH.mjs";
22
- import "../chunk-IHBXELA5.mjs";
22
+ import "../chunk-LPMIEXIH.mjs";
23
23
  import {
24
24
  F_authenticate_Logout,
25
25
  MyActionIconDelete,
@@ -45,11 +45,11 @@ import {
45
45
  groupToTwoLevels,
46
46
  useS_authenticate,
47
47
  utils_layout_getItemsWithoutLinks
48
- } from "../chunk-HETWN2YJ.mjs";
48
+ } from "../chunk-XRXYTRB5.mjs";
49
+ import "../chunk-5U2JSHSJ.mjs";
49
50
  import {
50
51
  createGenericStore
51
52
  } from "../chunk-U62R2QKJ.mjs";
52
- import "../chunk-5U2JSHSJ.mjs";
53
53
  import {
54
54
  const_object_colors
55
55
  } from "../chunk-OMJJAHOC.mjs";
@@ -66,7 +66,8 @@ import {
66
66
  useMyRouter,
67
67
  useQ_AQ_GetAQModule,
68
68
  useQ_SkillCenter_GetAll
69
- } from "../chunk-HZAKEST5.mjs";
69
+ } from "../chunk-I6PPEZBF.mjs";
70
+ import "../chunk-2NS4LEOU.mjs";
70
71
  import {
71
72
  utils_notification_show
72
73
  } from "../chunk-7ZCOFATU.mjs";
@@ -0,0 +1,4 @@
1
+ type type_mutation = "create" | "update" | "delete" | "mutation";
2
+ declare const typeLabel_mutation: Record<type_mutation, string>;
3
+
4
+ export { typeLabel_mutation as a, type type_mutation as t };
@@ -1,6 +1,8 @@
1
1
  import { MantineSize } from '@mantine/core';
2
+ export { a as typeLabel_mutation, t as type_mutation } from '../type_mutation-C-DWQOlQ.mjs';
2
3
 
3
4
  type type_mantineSize = number | MantineSize | (string & {}) | undefined;
5
+ type type_tempStatus = "default" | "created" | "updated" | "deleted";
4
6
  type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete" | "tempUpdate";
5
7
 
6
- export type { type_mantineSize as a, type_action as t };
8
+ export type { type_action, type_mantineSize, type_tempStatus };
@@ -0,0 +1,7 @@
1
+ import {
2
+ typeLabel_mutation
3
+ } from "../chunk-2NS4LEOU.mjs";
4
+ import "../chunk-FWCSY2DS.mjs";
5
+ export {
6
+ typeLabel_mutation
7
+ };
@@ -1,10 +1,9 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseMutationOptions } from '@tanstack/react-query';
3
+ import { t as type_mutation } from './type_mutation-C-DWQOlQ.mjs';
3
4
  import { AxiosResponse } from 'axios';
4
5
  import { M as MyApiResponse } from './createBaseApi-75GHCO22.mjs';
5
6
 
6
- type type_mutation = "create" | "update" | "delete" | "mutation";
7
-
8
7
  interface MyReactMutationProps<IReq, IRes> {
9
8
  axiosFn: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
10
9
  options?: UseMutationOptions<IRes, Error, IReq>;
package/package.json CHANGED
@@ -44,9 +44,13 @@
44
44
  "./coreService": {
45
45
  "import": "./dist/coreService/index.mjs",
46
46
  "types": "./dist/coreService/index.d.mts"
47
+ },
48
+ "./types": {
49
+ "import": "./dist/types/index.mjs",
50
+ "types": "./dist/types/index.d.mts"
47
51
  }
48
52
  },
49
- "version": "0.1.570",
53
+ "version": "0.1.572",
50
54
  "private": false,
51
55
  "files": [
52
56
  "dist"