aq-fe-framework 0.1.306 → 0.1.308

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.
@@ -6945,6 +6945,7 @@ function MyFileInput(_a) {
6945
6945
 
6946
6946
  // src/components/Inputs/NumberInput/MyNumberInput.tsx
6947
6947
  import { NumberInput as NumberInput2 } from "@mantine/core";
6948
+ import { IconNumbers } from "@tabler/icons-react";
6948
6949
  import { jsx as jsx46 } from "react/jsx-runtime";
6949
6950
  function MyNumberInput(_a) {
6950
6951
  var _b = _a, { minValue, label } = _b, rest = __objRest(_b, ["minValue", "label"]);
@@ -6953,7 +6954,8 @@ function MyNumberInput(_a) {
6953
6954
  __spreadValues({
6954
6955
  label,
6955
6956
  min: minValue ? minValue : 0,
6956
- placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : ""
6957
+ placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "",
6958
+ rightSection: /* @__PURE__ */ jsx46(IconNumbers, {})
6957
6959
  }, rest)
6958
6960
  );
6959
6961
  }
@@ -65,7 +65,7 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-EVWPVCJT.mjs";
68
+ } from "../chunk-IMCUF52C.mjs";
69
69
  import "../chunk-5U2JSHSJ.mjs";
70
70
  import "../chunk-NWBLJ3W3.mjs";
71
71
  import {
@@ -24,7 +24,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
24
24
  actionIconProps?: ActionIconProps;
25
25
  buttonProps?: ButtonProps;
26
26
  isUpdate?: boolean;
27
- onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>>;
27
+ onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | void;
28
28
  onSuccess?: () => void;
29
29
  onError?: () => void;
30
30
  form: UseFormReturnType<IReq>;
@@ -205,7 +205,23 @@ function CoreButtonCreateUpdate({
205
205
  const disclosure = externalDisclosure != null ? externalDisclosure : defaultDisclosure;
206
206
  const queryClient = useQueryClient();
207
207
  const mutation = useMyReactMutation({
208
- axiosFn: (values) => onSubmit(values),
208
+ axiosFn: (values) => {
209
+ const result = onSubmit(values);
210
+ if (result === void 0) {
211
+ return Promise.resolve({
212
+ data: {
213
+ message: "T\u1EA1o th\xE0nh c\xF4ng (gi\u1EA3 l\u1EADp)",
214
+ data: {},
215
+ isSuccess: 1
216
+ },
217
+ status: 200,
218
+ statusText: "OK",
219
+ headers: {},
220
+ config: {}
221
+ });
222
+ }
223
+ return result;
224
+ },
209
225
  options: __spreadValues(__spreadValues({
210
226
  onSuccess: () => {
211
227
  queryClient.invalidateQueries();
@@ -6,6 +6,9 @@ import {
6
6
  utils_converter_enumToSelectOptions,
7
7
  utils_file_fileToAQDocumentType
8
8
  } from "../chunk-NRFQDAYS.mjs";
9
+ import {
10
+ const_object_documentTypes
11
+ } from "../chunk-GFEMKKFH.mjs";
9
12
  import {
10
13
  F_authenticate_Logout,
11
14
  MyActionIconDelete,
@@ -30,11 +33,8 @@ import {
30
33
  useS_BasicAppShell,
31
34
  useS_authenticate,
32
35
  utils_layout_getItemsWithoutLinks
33
- } from "../chunk-EVWPVCJT.mjs";
36
+ } from "../chunk-IMCUF52C.mjs";
34
37
  import "../chunk-5U2JSHSJ.mjs";
35
- import {
36
- const_object_documentTypes
37
- } from "../chunk-GFEMKKFH.mjs";
38
38
  import {
39
39
  const_object_colors
40
40
  } from "../chunk-NWBLJ3W3.mjs";
package/package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "types": "./dist/core/index.d.mts"
39
39
  }
40
40
  },
41
- "version": "0.1.306",
41
+ "version": "0.1.308",
42
42
  "private": false,
43
43
  "files": [
44
44
  "dist"