aq-fe-framework 0.1.272 → 0.1.275

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.
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React$1, { ReactNode, ComponentProps } from 'react';
3
- import { MantineSize, ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
3
+ import { MantineSize, ActionIconProps, ButtonProps, ModalProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
4
4
  import { M as MyApiResponse } from '../createBaseApi-BAYnbGVT.mjs';
5
5
  import { AxiosResponse } from 'axios';
6
6
  import { useDisclosure, useListState } from '@mantine/hooks';
@@ -56,7 +56,7 @@ interface IMyActionIconModal extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
56
56
  declare function MyActionIconModal({ fullScreen, crudType, disclosure, modalSize, title, children, icon, ...rest }: IMyActionIconModal): react_jsx_runtime.JSX.Element | undefined;
57
57
 
58
58
  interface IActionIconDelete<IRes> extends Omit<ComponentProps<typeof MyActionIconModal>, "disclosure" | "onSubmit"> {
59
- onSubmit: () => Promise<AxiosResponse<MyApiResponse<IRes>>>;
59
+ onSubmit: () => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
60
60
  onSuccess?: () => void;
61
61
  onError?: () => void;
62
62
  contextData?: string;
@@ -66,7 +66,7 @@ declare function MyActionIconDelete<IRes>({ onSubmit, onSuccess, onError, contex
66
66
 
67
67
  interface IActionIconUpdate<IReq, IRes> extends Omit<ComponentProps<typeof MyActionIconModal>, "form" | "disclosure" | "onSubmit"> {
68
68
  resetFormWhenclose?: boolean;
69
- onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
69
+ onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
70
70
  onSuccess?: () => void;
71
71
  onError?: () => void;
72
72
  form: UseFormReturnType<IReq>;
@@ -141,7 +141,7 @@ interface AQButtonExportDataProps {
141
141
  declare function AQButtonExportData({ isAllData, objectName, data, exportConfig }: AQButtonExportDataProps): react_jsx_runtime.JSX.Element;
142
142
 
143
143
  interface IMyButtonCreate<IReq, IRes> extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure" | "form" | "onSubmit"> {
144
- onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
144
+ onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
145
145
  onSuccess?: () => void;
146
146
  onError?: () => void;
147
147
  form: UseFormReturnType<IReq>;
@@ -151,6 +151,22 @@ interface IMyButtonCreate<IReq, IRes> extends Omit<ComponentProps<typeof MyButto
151
151
  }
152
152
  declare function MyButtonCreate<IReq, IRes>({ form, onSubmit, onSuccess, onError, notCloseModalWhenSubmit, notResetFormWhenSubmit, children, disclosure: externalDisclosure, ...rest }: IMyButtonCreate<IReq, IRes>): react_jsx_runtime.JSX.Element;
153
153
 
154
+ interface IMyButtonCreateUpdate<IReq, IRes> {
155
+ modalProps?: ModalProps;
156
+ actionIconProps?: ActionIconProps;
157
+ buttonProps?: ButtonProps;
158
+ isCreate?: boolean;
159
+ onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
160
+ onSuccess?: () => void;
161
+ onError?: () => void;
162
+ form: UseFormReturnType<IReq>;
163
+ closeModalWhenSubmit?: boolean;
164
+ resetFormWhenSubmit?: boolean;
165
+ disclosure?: ReturnType<typeof useDisclosure>;
166
+ children?: ReactNode;
167
+ }
168
+ declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isCreate, }: IMyButtonCreateUpdate<IReq, IRes>): react_jsx_runtime.JSX.Element;
169
+
154
170
  interface IMyButtonDeleteList extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure"> {
155
171
  onSubmit: () => void;
156
172
  onSuccess?: () => void;
@@ -546,4 +562,4 @@ interface IMySkeletonTable extends SkeletonProps {
546
562
  }
547
563
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
548
564
 
549
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, 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, type MyDataTableInternalProps, type MyDataTableProps, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
565
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonCreateUpdate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, type MyDataTableInternalProps, type MyDataTableProps, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -23,6 +23,7 @@ import {
23
23
  MyBoxesCore,
24
24
  MyButton,
25
25
  MyButtonCreate,
26
+ MyButtonCreateUpdate,
26
27
  MyButtonDeleteList,
27
28
  MyButtonImport,
28
29
  MyButtonModal,
@@ -68,7 +69,7 @@ import {
68
69
  useS_BasicAppShell,
69
70
  useS_ButtonImport,
70
71
  utils_layout_getItemsWithoutLinks
71
- } from "../chunk-JCIYZBMG.mjs";
72
+ } from "../chunk-6H4QAHQE.mjs";
72
73
  import "../chunk-NWBLJ3W3.mjs";
73
74
  import "../chunk-K6S7R6LU.mjs";
74
75
  import "../chunk-KKJ3OEEW.mjs";
@@ -101,6 +102,7 @@ export {
101
102
  MyBoxesCore,
102
103
  MyButton,
103
104
  MyButtonCreate,
105
+ MyButtonCreateUpdate,
104
106
  MyButtonDeleteList,
105
107
  MyButtonImport,
106
108
  MyButtonModal,
@@ -24,7 +24,7 @@ import {
24
24
  useS_BasicAppShell,
25
25
  useS_authenticate,
26
26
  utils_layout_getItemsWithoutLinks
27
- } from "../chunk-JCIYZBMG.mjs";
27
+ } from "../chunk-6H4QAHQE.mjs";
28
28
  import {
29
29
  const_object_documentTypes
30
30
  } from "../chunk-GFEMKKFH.mjs";
package/package.json CHANGED
@@ -1,153 +1,153 @@
1
- {
2
- "name": "aq-fe-framework",
3
- "exports": {
4
- "./utils": {
5
- "import": "./dist/utils/index.mjs",
6
- "types": "./dist/utils/index.d.mts"
7
- },
8
- "./components": {
9
- "import": "./dist/components/index.mjs",
10
- "types": "./dist/components/index.d.mts"
11
- },
12
- "./stores": {
13
- "import": "./dist/stores/index.mjs",
14
- "types": "./dist/stores/index.d.mts"
15
- },
16
- "./modules-features": {
17
- "import": "./dist/modules-features/index.mjs",
18
- "types": "./dist/modules-features/index.d.mts"
19
- },
20
- "./hooks": {
21
- "import": "./dist/hooks/index.mjs",
22
- "types": "./dist/hooks/index.d.mts"
23
- },
24
- "./interfaces": {
25
- "import": "./dist/interfaces/index.mjs",
26
- "types": "./dist/interfaces/index.d.mts"
27
- },
28
- "./const": {
29
- "import": "./dist/const/index.mjs",
30
- "types": "./dist/const/index.d.mts"
31
- },
32
- "./enum": {
33
- "import": "./dist/enum/index.mjs",
34
- "types": "./dist/enum/index.d.mts"
35
- }
36
- },
37
- "version": "0.1.272",
38
- "private": false,
39
- "files": [
40
- "dist"
41
- ],
42
- "scripts": {
43
- "deploy": "node deploy.js",
44
- "update-mantine": "npx npm-check-updates @mantine/* @mantinex/* postcss-preset-mantine -u",
45
- "dev": "next dev --turbopack -p 3000",
46
- "build-next": "next build",
47
- "gen": "barrelsby --config barrelsby.json",
48
- "build": "tsup --tsconfig tsconfig.lib.json && cpx \"src/**/*.module.css\" dist",
49
- "start": "next start",
50
- "lint": "next lint",
51
- "debug": "next dev -p 3003"
52
- },
53
- "dependencies": {
54
- "@fullcalendar/core": "^6.1.15",
55
- "@fullcalendar/daygrid": "^6.1.15",
56
- "@fullcalendar/react": "^6.1.15",
57
- "@mantine/carousel": "^8.0.0",
58
- "@mantine/charts": "^8.0.0",
59
- "@mantine/code-highlight": "^8.0.0",
60
- "@mantine/core": "^8.0.0",
61
- "@mantine/dates": "^8.0.0",
62
- "@mantine/dropzone": "^8.0.0",
63
- "@mantine/form": "^8.0.0",
64
- "@mantine/hooks": "^8.0.0",
65
- "@mantine/modals": "^8.0.0",
66
- "@mantine/notifications": "^8.0.0",
67
- "@mantine/nprogress": "^8.0.0",
68
- "@mantine/spotlight": "^8.0.0",
69
- "@mantine/tiptap": "^8.0.0",
70
- "@mantinex/mantine-logo": "^2.0.0",
71
- "@schedule-x/event-modal": "^2.12.1",
72
- "@schedule-x/events-service": "^2.28.0",
73
- "@schedule-x/react": "^2.28.0",
74
- "@schedule-x/theme-default": "^2.28.0",
75
- "@tabler/icons-react": "^3.26.0",
76
- "@tanstack/react-query": "^5.62.8",
77
- "@tanstack/react-query-devtools": "^5.69.0",
78
- "@tiptap-pro/extension-file-handler": "^2.14.0",
79
- "@tiptap/extension-highlight": "^2.9.1",
80
- "@tiptap/extension-image": "^2.9.1",
81
- "@tiptap/extension-link": "^2.9.1",
82
- "@tiptap/extension-subscript": "^2.9.1",
83
- "@tiptap/extension-superscript": "^2.9.1",
84
- "@tiptap/extension-text-align": "^2.9.1",
85
- "@tiptap/extension-underline": "^2.9.1",
86
- "@tiptap/pm": "^2.9.1",
87
- "@tiptap/react": "^2.9.1",
88
- "@tiptap/starter-kit": "^2.9.1",
89
- "autoprefixer": "^10.4.20",
90
- "axios": "^1.7.7",
91
- "caniuse-lite": "^1.0.30001718",
92
- "clsx": "^2.1.1",
93
- "dayjs": "^1.11.13",
94
- "docxtemplater": "^3.54.1",
95
- "embla-carousel-react": "^7.1.0",
96
- "esbuild-css-modules-plugin": "^3.1.4",
97
- "exceljs": "^4.4.0",
98
- "export-to-csv": "^1.4.0",
99
- "file-saver": "^2.0.5",
100
- "framer-motion": "^11.11.11",
101
- "fs-extra": "^11.2.0",
102
- "glob": "^11.0.2",
103
- "json-server": "^1.0.0-beta.3",
104
- "ldrs": "^1.0.2",
105
- "lodash.debounce": "^4.0.8",
106
- "mantine-react-table": "^2.0.0-beta.7",
107
- "next": "15.0.3",
108
- "pako": "^2.1.0",
109
- "pizzip": "^3.1.7",
110
- "react": "^17.0.0 || ^18.0.0",
111
- "react-dom": "^17.0.0 || ^18.0.0",
112
- "react-to-print": "^3.0.6",
113
- "recharts": "^2.13.3",
114
- "sass": "^1.82.0",
115
- "tailwind-merge": "^2.5.4",
116
- "xlsx": "^0.18.5",
117
- "zustand": "^5.0.1"
118
- },
119
- "devDependencies": {
120
- "@types/file-saver": "^2.0.7",
121
- "@types/node": "^20.17.30",
122
- "@types/pako": "^2.0.3",
123
- "@types/react": "^18.3.20",
124
- "@types/react-dom": "^18",
125
- "barrelsby": "^2.8.1",
126
- "cpx": "^1.5.0",
127
- "esbuild-plugin-css-modules": "^0.3.0",
128
- "eslint": "^8",
129
- "eslint-config-next": "15.0.3",
130
- "postcss": "^8.5.3",
131
- "postcss-modules": "^6.0.1",
132
- "postcss-preset-mantine": "^1.17.0",
133
- "postcss-simple-vars": "^7.0.1",
134
- "tailwindcss": "^3.4.1",
135
- "tsup": "^8.4.0",
136
- "typescript": "^5.8.3"
137
- },
138
- "peerDependencies": {
139
- "react": "^17.0.0 || ^18.0.0",
140
- "react-dom": "^17.0.0 || ^18.0.0"
141
- },
142
- "description": "",
143
- "repository": {
144
- "type": "git",
145
- "url": "git+https://github.com/TranQuocThieu22/aq-fe-framework.git"
146
- },
147
- "author": "Quốc Thiệu",
148
- "license": "ISC",
149
- "bugs": {
150
- "url": "https://github.com/TranQuocThieu22/aq-fe-framework/issues"
151
- },
152
- "homepage": "https://github.com/TranQuocThieu22/aq-fe-framework#readme"
153
- }
1
+ {
2
+ "name": "aq-fe-framework",
3
+ "exports": {
4
+ "./utils": {
5
+ "import": "./dist/utils/index.mjs",
6
+ "types": "./dist/utils/index.d.mts"
7
+ },
8
+ "./components": {
9
+ "import": "./dist/components/index.mjs",
10
+ "types": "./dist/components/index.d.mts"
11
+ },
12
+ "./stores": {
13
+ "import": "./dist/stores/index.mjs",
14
+ "types": "./dist/stores/index.d.mts"
15
+ },
16
+ "./modules-features": {
17
+ "import": "./dist/modules-features/index.mjs",
18
+ "types": "./dist/modules-features/index.d.mts"
19
+ },
20
+ "./hooks": {
21
+ "import": "./dist/hooks/index.mjs",
22
+ "types": "./dist/hooks/index.d.mts"
23
+ },
24
+ "./interfaces": {
25
+ "import": "./dist/interfaces/index.mjs",
26
+ "types": "./dist/interfaces/index.d.mts"
27
+ },
28
+ "./const": {
29
+ "import": "./dist/const/index.mjs",
30
+ "types": "./dist/const/index.d.mts"
31
+ },
32
+ "./enum": {
33
+ "import": "./dist/enum/index.mjs",
34
+ "types": "./dist/enum/index.d.mts"
35
+ }
36
+ },
37
+ "version": "0.1.275",
38
+ "private": false,
39
+ "files": [
40
+ "dist"
41
+ ],
42
+ "scripts": {
43
+ "deploy": "node deploy.js",
44
+ "update-mantine": "npx npm-check-updates @mantine/* @mantinex/* postcss-preset-mantine -u",
45
+ "dev": "next dev --turbopack -p 3000",
46
+ "build-next": "next build",
47
+ "gen": "barrelsby --config barrelsby.json",
48
+ "build": "tsup --tsconfig tsconfig.lib.json && cpx \"src/**/*.module.css\" dist",
49
+ "start": "next start",
50
+ "lint": "next lint",
51
+ "debug": "next dev -p 3003"
52
+ },
53
+ "dependencies": {
54
+ "@fullcalendar/core": "^6.1.15",
55
+ "@fullcalendar/daygrid": "^6.1.15",
56
+ "@fullcalendar/react": "^6.1.15",
57
+ "@mantine/carousel": "^8.0.0",
58
+ "@mantine/charts": "^8.0.0",
59
+ "@mantine/code-highlight": "^8.0.0",
60
+ "@mantine/core": "^8.0.0",
61
+ "@mantine/dates": "^8.0.0",
62
+ "@mantine/dropzone": "^8.0.0",
63
+ "@mantine/form": "^8.0.0",
64
+ "@mantine/hooks": "^8.0.0",
65
+ "@mantine/modals": "^8.0.0",
66
+ "@mantine/notifications": "^8.0.0",
67
+ "@mantine/nprogress": "^8.0.0",
68
+ "@mantine/spotlight": "^8.0.0",
69
+ "@mantine/tiptap": "^8.0.0",
70
+ "@mantinex/mantine-logo": "^2.0.0",
71
+ "@schedule-x/event-modal": "^2.12.1",
72
+ "@schedule-x/events-service": "^2.28.0",
73
+ "@schedule-x/react": "^2.28.0",
74
+ "@schedule-x/theme-default": "^2.28.0",
75
+ "@tabler/icons-react": "^3.26.0",
76
+ "@tanstack/react-query": "^5.62.8",
77
+ "@tanstack/react-query-devtools": "^5.69.0",
78
+ "@tiptap-pro/extension-file-handler": "^2.14.0",
79
+ "@tiptap/extension-highlight": "^2.9.1",
80
+ "@tiptap/extension-image": "^2.9.1",
81
+ "@tiptap/extension-link": "^2.9.1",
82
+ "@tiptap/extension-subscript": "^2.9.1",
83
+ "@tiptap/extension-superscript": "^2.9.1",
84
+ "@tiptap/extension-text-align": "^2.9.1",
85
+ "@tiptap/extension-underline": "^2.9.1",
86
+ "@tiptap/pm": "^2.9.1",
87
+ "@tiptap/react": "^2.9.1",
88
+ "@tiptap/starter-kit": "^2.9.1",
89
+ "autoprefixer": "^10.4.20",
90
+ "axios": "^1.7.7",
91
+ "caniuse-lite": "^1.0.30001718",
92
+ "clsx": "^2.1.1",
93
+ "dayjs": "^1.11.13",
94
+ "docxtemplater": "^3.54.1",
95
+ "embla-carousel-react": "^7.1.0",
96
+ "esbuild-css-modules-plugin": "^3.1.4",
97
+ "exceljs": "^4.4.0",
98
+ "export-to-csv": "^1.4.0",
99
+ "file-saver": "^2.0.5",
100
+ "framer-motion": "^11.11.11",
101
+ "fs-extra": "^11.2.0",
102
+ "glob": "^11.0.2",
103
+ "json-server": "^1.0.0-beta.3",
104
+ "ldrs": "^1.0.2",
105
+ "lodash.debounce": "^4.0.8",
106
+ "mantine-react-table": "^2.0.0-beta.7",
107
+ "next": "15.0.3",
108
+ "pako": "^2.1.0",
109
+ "pizzip": "^3.1.7",
110
+ "react": "^17.0.0 || ^18.0.0",
111
+ "react-dom": "^17.0.0 || ^18.0.0",
112
+ "react-to-print": "^3.0.6",
113
+ "recharts": "^2.13.3",
114
+ "sass": "^1.82.0",
115
+ "tailwind-merge": "^2.5.4",
116
+ "xlsx": "^0.18.5",
117
+ "zustand": "^5.0.1"
118
+ },
119
+ "devDependencies": {
120
+ "@types/file-saver": "^2.0.7",
121
+ "@types/node": "^20.17.30",
122
+ "@types/pako": "^2.0.3",
123
+ "@types/react": "^18.3.20",
124
+ "@types/react-dom": "^18",
125
+ "barrelsby": "^2.8.1",
126
+ "cpx": "^1.5.0",
127
+ "esbuild-plugin-css-modules": "^0.3.0",
128
+ "eslint": "^8",
129
+ "eslint-config-next": "15.0.3",
130
+ "postcss": "^8.5.3",
131
+ "postcss-modules": "^6.0.1",
132
+ "postcss-preset-mantine": "^1.17.0",
133
+ "postcss-simple-vars": "^7.0.1",
134
+ "tailwindcss": "^3.4.1",
135
+ "tsup": "^8.4.0",
136
+ "typescript": "^5.8.3"
137
+ },
138
+ "peerDependencies": {
139
+ "react": "^17.0.0 || ^18.0.0",
140
+ "react-dom": "^17.0.0 || ^18.0.0"
141
+ },
142
+ "description": "",
143
+ "repository": {
144
+ "type": "git",
145
+ "url": "git+https://github.com/TranQuocThieu22/aq-fe-framework.git"
146
+ },
147
+ "author": "Quốc Thiệu",
148
+ "license": "ISC",
149
+ "bugs": {
150
+ "url": "https://github.com/TranQuocThieu22/aq-fe-framework/issues"
151
+ },
152
+ "homepage": "https://github.com/TranQuocThieu22/aq-fe-framework#readme"
153
+ }