aq-fe-framework 0.1.889 → 0.1.891

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.
@@ -41,7 +41,7 @@ import {
41
41
  useMyReactMutation,
42
42
  useMyReactQuery,
43
43
  useQ_AQ_GetAQModule
44
- } from "./chunk-7Y4HBY2D.mjs";
44
+ } from "./chunk-SFW5CGI3.mjs";
45
45
  import {
46
46
  utils_notification_show
47
47
  } from "./chunk-7ZCOFATU.mjs";
@@ -266,7 +266,6 @@ function MyButton(_a) {
266
266
  // src/core/button/MyButtonCreateUpdate.tsx
267
267
  import { Modal, ScrollArea, Space, Tooltip, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
268
268
  import { useDisclosure } from "@mantine/hooks";
269
- import { notifications } from "@mantine/notifications";
270
269
 
271
270
  // src/core/layout/MyFlexColumn.tsx
272
271
  import { Flex } from "@mantine/core";
@@ -317,13 +316,6 @@ function MyButtonCreateUpdate({
317
316
  onSuccess == null ? void 0 : onSuccess(...args);
318
317
  },
319
318
  onError: (error) => {
320
- if (error.message != null) {
321
- notifications.show({
322
- color: "green",
323
- message: error.message
324
- });
325
- return;
326
- }
327
319
  let parsed;
328
320
  try {
329
321
  parsed = JSON.parse(error.message);
@@ -13890,7 +13882,7 @@ function EmailTemplateButtonImport({ emailTemplateEnum }) {
13890
13882
  // src/modules-features/admin/core/EmailTemplate/EmailTemplateCreateUpdateButton.tsx
13891
13883
  import { Button as Button19, Grid as Grid6 } from "@mantine/core";
13892
13884
  import { useForm as useForm26 } from "@mantine/form";
13893
- import { notifications as notifications2 } from "@mantine/notifications";
13885
+ import { notifications } from "@mantine/notifications";
13894
13886
  import { useEffect as useEffect27, useMemo as useMemo24 } from "react";
13895
13887
  import { jsx as jsx171, jsxs as jsxs94 } from "react/jsx-runtime";
13896
13888
  var getDefaultBodyFortype1 = () => {
@@ -13998,7 +13990,7 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13998
13990
  const typeName = emailTemplateEnum[values.type || 0] || `Type ${values.type}`;
13999
13991
  const errorMessage = `Lo\u1EA1i h\xE0nh \u0111\u1ED9ng "${typeName}" \u0111\xE3 t\u1ED3n t\u1EA1i. Ch\u1EC9 \u0111\u01B0\u1EE3c t\u1EA1o 1 Template trong 1 lo\u1EA1i h\xE0nh \u0111\u1ED9ng.`;
14000
13992
  form.setFieldError("type", errorMessage);
14001
- notifications2.show({
13993
+ notifications.show({
14002
13994
  title: "L\u1ED7i t\u1EA1o template",
14003
13995
  message: errorMessage,
14004
13996
  color: "red",
@@ -15585,7 +15577,7 @@ function Feat_PageContentTable({ menuData }) {
15585
15577
 
15586
15578
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
15587
15579
  import { Group as Group32 } from "@mantine/core";
15588
- import { notifications as notifications3 } from "@mantine/notifications";
15580
+ import { notifications as notifications2 } from "@mantine/notifications";
15589
15581
  import { useMemo as useMemo33, useState as useState24 } from "react";
15590
15582
 
15591
15583
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
@@ -15690,7 +15682,7 @@ function F_pageContentConfig_ReadMenu({ menuData }) {
15690
15682
  });
15691
15683
  setEditedDescriptions((prev) => __spreadValues(__spreadValues({}, prev), updated));
15692
15684
  table.resetRowSelection();
15693
- notifications3.show({
15685
+ notifications2.show({
15694
15686
  message: "X\xF3a th\xE0nh c\xF4ng",
15695
15687
  color: "green"
15696
15688
  });
@@ -16138,7 +16130,7 @@ function Adapter_UserTable(_a) {
16138
16130
 
16139
16131
  // src/modules/User/adapter/Adapter_UserAddToRole.tsx
16140
16132
  import { useDisclosure as useDisclosure16 } from "@mantine/hooks";
16141
- import { notifications as notifications4 } from "@mantine/notifications";
16133
+ import { notifications as notifications3 } from "@mantine/notifications";
16142
16134
  import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
16143
16135
  import { useEffect as useEffect35, useState as useState26 } from "react";
16144
16136
  import { jsx as jsx214 } from "react/jsx-runtime";
@@ -16173,7 +16165,7 @@ function Adapter_UserAddToRole({
16173
16165
  onSuccess: () => {
16174
16166
  disc[1].close();
16175
16167
  queryClient.invalidateQueries();
16176
- notifications4.show({
16168
+ notifications3.show({
16177
16169
  message: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng",
16178
16170
  color: "green"
16179
16171
  });
@@ -17297,7 +17289,7 @@ import {
17297
17289
  Title as Title2
17298
17290
  } from "@mantine/core";
17299
17291
  import { useForm as useForm44 } from "@mantine/form";
17300
- import { notifications as notifications5 } from "@mantine/notifications";
17292
+ import { notifications as notifications4 } from "@mantine/notifications";
17301
17293
  import { useMutation as useMutation4 } from "@tanstack/react-query";
17302
17294
  import Link4 from "next/link.js";
17303
17295
  import { useRouter as useRouter4 } from "next/navigation.js";
@@ -17391,7 +17383,7 @@ function Feat_Authenticate_Login({
17391
17383
  router.replace(redirectUrlAfterLogin);
17392
17384
  },
17393
17385
  onError: (error) => {
17394
- notifications5.show({
17386
+ notifications4.show({
17395
17387
  message: "C\xF3 l\u1ED7i x\u1EA3y ra vui l\xF2ng th\u1EED l\u1EA1i",
17396
17388
  color: "red"
17397
17389
  });
@@ -18233,7 +18225,7 @@ var service_aq = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER12, ba
18233
18225
  // src/components/Layouts/PageContent/MyPageContent.tsx
18234
18226
  import { Badge as Badge6, Breadcrumbs, Center as Center12, Container as Container3, Divider as Divider6, Flex as Flex10, Group as Group39, Stack as Stack11, Text as Text29, Title as Title4, Tooltip as Tooltip8 } from "@mantine/core";
18235
18227
  import { useClipboard, useDisclosure as useDisclosure20 } from "@mantine/hooks";
18236
- import { notifications as notifications6 } from "@mantine/notifications";
18228
+ import { notifications as notifications5 } from "@mantine/notifications";
18237
18229
  import { IconBrandParsinta } from "@tabler/icons-react";
18238
18230
  import { useEffect as useEffect42 } from "react";
18239
18231
 
@@ -18387,7 +18379,7 @@ function MyPageContent({
18387
18379
  /* @__PURE__ */ jsx249(Breadcrumbs, { style: { cursor: "pointer" }, separatorMargin: "7", onClick: () => {
18388
18380
  var _a2;
18389
18381
  clipboard.copy((_a2 = basicAppShellStore.state.breadcrumb) == null ? void 0 : _a2.join(" / "));
18390
- notifications6.show({
18382
+ notifications5.show({
18391
18383
  message: "Sao ch\xE9p \u0111\u01B0\u1EDDng d\u1EABn menu th\xE0nh c\xF4ng"
18392
18384
  });
18393
18385
  }, children: (_a = basicAppShellStore.state.breadcrumb) == null ? void 0 : _a.map((item, idx) => /* @__PURE__ */ jsx249(Text29, { fw: "600", c: "blue", children: item }, idx)) })
@@ -18549,7 +18541,7 @@ import {
18549
18541
  Stack as Stack12,
18550
18542
  Text as Text30
18551
18543
  } from "@mantine/core";
18552
- import { notifications as notifications7 } from "@mantine/notifications";
18544
+ import { notifications as notifications6 } from "@mantine/notifications";
18553
18545
  import { IconCircleFilled } from "@tabler/icons-react";
18554
18546
  import { useEffect as useEffect43, useMemo as useMemo42, useState as useState32 } from "react";
18555
18547
  import * as XLSX4 from "xlsx";
@@ -18756,7 +18748,7 @@ function FileImportConfigModal(_a) {
18756
18748
  return;
18757
18749
  }
18758
18750
  if (dataStartIndex == "" || dataStartIndex == null) {
18759
- notifications7.show({
18751
+ notifications6.show({
18760
18752
  message: "D\xF2ng d\u1EEF li\u1EC7u b\u1EAFt \u0111\u1EA7u kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
18761
18753
  color: "red"
18762
18754
  });
@@ -314,18 +314,18 @@ function useMyReactMutation({
314
314
  },
315
315
  onError: (error, variables, context) => {
316
316
  var _a;
317
+ let parsed;
318
+ try {
319
+ parsed = JSON.parse(error.message);
320
+ } catch (e) {
321
+ parsed = null;
322
+ }
317
323
  if (enableDefaultError) {
318
- if (error.message === null || error.message === "null") {
319
- notifications.show({
320
- message: "Kh\xF4ng th\u1EC3 thao t\xE1c, l\u1ED7i ch\u01B0a x\xE1c \u0111\u1ECBnh!",
321
- color: "red"
322
- });
323
- return;
324
- }
325
324
  notifications.show({
326
- message: error.message,
325
+ message: (parsed == null ? void 0 : parsed.message) || "Kh\xF4ng th\u1EC3 thao t\xE1c, l\u1ED7i ch\u01B0a x\xE1c \u0111\u1ECBnh!",
327
326
  color: "red"
328
327
  });
328
+ return;
329
329
  }
330
330
  (_a = options == null ? void 0 : options.onError) == null ? void 0 : _a.call(options, error, variables, context);
331
331
  }
@@ -70,7 +70,7 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-ZBQMUP66.mjs";
73
+ } from "../chunk-LRXEVP6E.mjs";
74
74
  import "../chunk-3P5GXZPO.mjs";
75
75
  import "../chunk-E4JVWPXS.mjs";
76
76
  import "../chunk-PHIQKJYJ.mjs";
@@ -78,7 +78,7 @@ import "../chunk-O7YCQQO5.mjs";
78
78
  import "../chunk-QSWIVDXC.mjs";
79
79
  import "../chunk-J64W5V6F.mjs";
80
80
  import "../chunk-K6S7R6LU.mjs";
81
- import "../chunk-7Y4HBY2D.mjs";
81
+ import "../chunk-SFW5CGI3.mjs";
82
82
  import "../chunk-WZ6PXGGC.mjs";
83
83
  import "../chunk-7ZCOFATU.mjs";
84
84
  import "../chunk-JD6AELXS.mjs";
@@ -29,7 +29,7 @@ import {
29
29
  MyStatsCard,
30
30
  MyTextInput2 as MyTextInput,
31
31
  MyWeeklySessionSchedulerPicker
32
- } from "../chunk-ZBQMUP66.mjs";
32
+ } from "../chunk-LRXEVP6E.mjs";
33
33
  import "../chunk-3P5GXZPO.mjs";
34
34
  import "../chunk-E4JVWPXS.mjs";
35
35
  import "../chunk-PHIQKJYJ.mjs";
@@ -37,7 +37,7 @@ import "../chunk-O7YCQQO5.mjs";
37
37
  import "../chunk-QSWIVDXC.mjs";
38
38
  import "../chunk-J64W5V6F.mjs";
39
39
  import "../chunk-K6S7R6LU.mjs";
40
- import "../chunk-7Y4HBY2D.mjs";
40
+ import "../chunk-SFW5CGI3.mjs";
41
41
  import "../chunk-WZ6PXGGC.mjs";
42
42
  import "../chunk-7ZCOFATU.mjs";
43
43
  import "../chunk-JD6AELXS.mjs";
@@ -9,9 +9,12 @@ declare enum enum_daysOfWeek {
9
9
  }
10
10
 
11
11
  declare enum enum_gender {
12
+ /** Nam */
12
13
  Male = 1,
14
+ /** Nữ */
13
15
  Female = 2
14
16
  }
17
+ /** 1=Nam, 2=Nữ */
15
18
  declare const enumLabel_gender: Record<enum_gender, string>;
16
19
 
17
20
  export { enumLabel_gender, enum_daysOfWeek, enum_gender };
@@ -13,7 +13,7 @@ import {
13
13
  useMyReactQuery,
14
14
  useMyRouter,
15
15
  useQ_AQ_GetAQModule
16
- } from "../chunk-7Y4HBY2D.mjs";
16
+ } from "../chunk-SFW5CGI3.mjs";
17
17
  import "../chunk-WZ6PXGGC.mjs";
18
18
  import "../chunk-7ZCOFATU.mjs";
19
19
  import "../chunk-JD6AELXS.mjs";
@@ -113,7 +113,7 @@ import {
113
113
  MailTemplateDeleteButton,
114
114
  useS_moduleConfig,
115
115
  useStore_Authenticate
116
- } from "../chunk-ZBQMUP66.mjs";
116
+ } from "../chunk-LRXEVP6E.mjs";
117
117
  import "../chunk-3P5GXZPO.mjs";
118
118
  import "../chunk-E4JVWPXS.mjs";
119
119
  import "../chunk-PHIQKJYJ.mjs";
@@ -121,7 +121,7 @@ import "../chunk-O7YCQQO5.mjs";
121
121
  import "../chunk-QSWIVDXC.mjs";
122
122
  import "../chunk-J64W5V6F.mjs";
123
123
  import "../chunk-K6S7R6LU.mjs";
124
- import "../chunk-7Y4HBY2D.mjs";
124
+ import "../chunk-SFW5CGI3.mjs";
125
125
  import "../chunk-WZ6PXGGC.mjs";
126
126
  import "../chunk-7ZCOFATU.mjs";
127
127
  import "../chunk-JD6AELXS.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-RGUQWALX.mjs";
5
5
  import {
6
6
  MySelect
7
- } from "../chunk-ZBQMUP66.mjs";
7
+ } from "../chunk-LRXEVP6E.mjs";
8
8
  import "../chunk-3P5GXZPO.mjs";
9
9
  import "../chunk-E4JVWPXS.mjs";
10
10
  import {
@@ -14,7 +14,7 @@ import "../chunk-O7YCQQO5.mjs";
14
14
  import "../chunk-QSWIVDXC.mjs";
15
15
  import "../chunk-J64W5V6F.mjs";
16
16
  import "../chunk-K6S7R6LU.mjs";
17
- import "../chunk-7Y4HBY2D.mjs";
17
+ import "../chunk-SFW5CGI3.mjs";
18
18
  import "../chunk-WZ6PXGGC.mjs";
19
19
  import "../chunk-7ZCOFATU.mjs";
20
20
  import {
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "types": "./dist/types/index.d.mts"
55
55
  }
56
56
  },
57
- "version": "0.1.889",
57
+ "version": "0.1.891",
58
58
  "private": false,
59
59
  "files": [
60
60
  "dist"