aq-fe-framework 0.1.728 → 0.1.729

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.
@@ -292,13 +292,10 @@ function MyButtonCreateUpdate({
292
292
  if (resetFormWhenSubmit) form.reset();
293
293
  }
294
294
  onSuccess == null ? void 0 : onSuccess(...args);
295
- },
296
- onError: (...args) => {
297
- if (!ignoreDefaultOnError) {
298
- utils_notification_show({ message: "L\u1ED7i khi l\u01B0u d\u1EEF li\u1EC7u", color: "error" });
299
- }
300
- onError == null ? void 0 : onError(...args);
301
295
  }
296
+ // onError: (...args) => {
297
+ // onError?.(...args);
298
+ // },
302
299
  }
303
300
  }, useMyReactMutationProps));
304
301
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -9630,11 +9627,6 @@ function Adapter_UserCreateUpdate({ values }) {
9630
9627
  if (!/[!@#$%^&*(),.?\":{}|<>]/.test(value)) return "M\u1EADt kh\u1EA9u ph\u1EA3i ch\u1EE9a \xEDt nh\u1EA5t 1 k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t";
9631
9628
  return null;
9632
9629
  },
9633
- // confirmPassword: (value, values) => {
9634
- // if (!value) return "Không được để trống!";
9635
- // if (value !== values.password) return "Mật khẩu xác nhận không khớp";
9636
- // return null;
9637
- // },
9638
9630
  fullName: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
9639
9631
  email: (value) => U0MyValidateEmail(value)
9640
9632
  }
@@ -9645,7 +9637,9 @@ function Adapter_UserCreateUpdate({ values }) {
9645
9637
  });
9646
9638
  useEffect19(() => {
9647
9639
  if (!values) return;
9648
- form.initialize(values);
9640
+ form.initialize(__spreadProps(__spreadValues({}, values), {
9641
+ accountStatus: values.isBlocked ? "0" : "1"
9642
+ }));
9649
9643
  }, [values]);
9650
9644
  return /* @__PURE__ */ jsxs47(
9651
9645
  MyButtonCreateUpdate,
@@ -9655,11 +9649,14 @@ function Adapter_UserCreateUpdate({ values }) {
9655
9649
  scrollAreaAutosizeProps: { h: "auto" },
9656
9650
  form,
9657
9651
  onSubmit: (formValues) => {
9658
- if (values) return service_account.update(__spreadProps(__spreadValues({}, formValues), {
9659
- code: formValues.userName
9652
+ const _a2 = formValues, { accountStatus } = _a2, finalFormValues = __objRest(_a2, ["accountStatus"]);
9653
+ if (values) return service_account.update(__spreadProps(__spreadValues({}, finalFormValues), {
9654
+ code: finalFormValues.userName,
9655
+ isBlocked: accountStatus == "0" ? false : true
9660
9656
  }));
9661
- return service_account.create(__spreadProps(__spreadValues({}, formValues), {
9662
- code: formValues.userName
9657
+ return service_account.create(__spreadProps(__spreadValues({}, finalFormValues), {
9658
+ code: finalFormValues.userName,
9659
+ isBlocked: accountStatus == "0" ? false : true
9663
9660
  }));
9664
9661
  },
9665
9662
  children: [
@@ -9686,23 +9683,19 @@ function Adapter_UserCreateUpdate({ values }) {
9686
9683
  /* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
9687
9684
  /* @__PURE__ */ jsx90(
9688
9685
  MySelect,
9689
- {
9686
+ __spreadValues({
9690
9687
  label: "Tr\u1EA1ng th\xE1i t\xE0i kho\u1EA3n",
9691
9688
  data: [
9692
- {
9693
- label: "Ch\u01B0a k\xEDch ho\u1EA1t",
9694
- value: "0"
9695
- },
9696
9689
  {
9697
9690
  label: "\u0110ang ho\u1EA1t \u0111\u1ED9ng",
9698
9691
  value: "1"
9699
9692
  },
9700
9693
  {
9701
9694
  label: "Kh\xF3a t\xE0i kho\u1EA3n",
9702
- value: "2"
9695
+ value: "0"
9703
9696
  }
9704
9697
  ]
9705
- }
9698
+ }, form.getInputProps("accountStatus"))
9706
9699
  )
9707
9700
  ] }),
9708
9701
  /* @__PURE__ */ jsx90(Textarea2, { label: "Ghi ch\xFA", placeholder: "Nh\u1EADp ghi ch\xFA" })
@@ -9841,15 +9834,11 @@ function F_accountManagement_Read() {
9841
9834
  {
9842
9835
  header: "Tr\u1EA1ng th\xE1i t\xE0i kho\u1EA3n",
9843
9836
  accessorKey: "isBlocked",
9844
- accessorFn: (row) => row.isBlocked ? "Ch\u01B0a k\xEDch ho\u1EA1t" : "\u0110ang ho\u1EA1t \u0111\u1ED9ng",
9837
+ accessorFn: (row) => row.isBlocked ? "Kh\xF3a t\xE0i kho\u1EA3n" : "\u0110ang ho\u1EA1t \u0111\u1ED9ng",
9845
9838
  Cell: ({ row }) => {
9846
- return row.original.isBlocked ? /* @__PURE__ */ jsx95(Badge5, { color: "gray", children: "Ch\u01B0a k\xEDch ho\u1EA1t" }) : /* @__PURE__ */ jsx95(Badge5, { color: "green", children: "\u0110ang ho\u1EA1t \u0111\u1ED9ng" });
9839
+ return row.original.isBlocked ? /* @__PURE__ */ jsx95(Badge5, { color: "gray", children: "Kh\xF3a t\xE0i kho\u1EA3n" }) : /* @__PURE__ */ jsx95(Badge5, { color: "green", children: "\u0110ang ho\u1EA1t \u0111\u1ED9ng" });
9847
9840
  }
9848
9841
  }
9849
- // {
9850
- // header: "Quyền",
9851
- // accessorFn: (row) => <F_accountManagement_ChangePermission user={row} />
9852
- // },
9853
9842
  ];
9854
9843
  if (((_a2 = store.state) == null ? void 0 : _a2.isRequireSkillCenter) === true) {
9855
9844
  baseColumns2.splice(3, 0, {
@@ -70,7 +70,7 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-2SYUJFND.mjs";
73
+ } from "../chunk-6SALAN7Y.mjs";
74
74
  import "../chunk-SUH3FFFV.mjs";
75
75
  import "../chunk-2B2FKBKX.mjs";
76
76
  import "../chunk-O7YCQQO5.mjs";
@@ -25,7 +25,7 @@ import {
25
25
  MyStatsCard,
26
26
  MyTextInput2 as MyTextInput,
27
27
  MyWeeklySessionSchedulerPicker
28
- } from "../chunk-2SYUJFND.mjs";
28
+ } from "../chunk-6SALAN7Y.mjs";
29
29
  import "../chunk-SUH3FFFV.mjs";
30
30
  import "../chunk-2B2FKBKX.mjs";
31
31
  import "../chunk-O7YCQQO5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-2SYUJFND.mjs";
3
+ } from "../chunk-6SALAN7Y.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-2B2FKBKX.mjs";
6
6
  import "../chunk-O7YCQQO5.mjs";
@@ -112,7 +112,7 @@ import {
112
112
  MailTemplateDeleteButton,
113
113
  useS_authenticate,
114
114
  useS_moduleConfig
115
- } from "../chunk-2SYUJFND.mjs";
115
+ } from "../chunk-6SALAN7Y.mjs";
116
116
  import "../chunk-SUH3FFFV.mjs";
117
117
  import "../chunk-2B2FKBKX.mjs";
118
118
  import "../chunk-O7YCQQO5.mjs";
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.728",
53
+ "version": "0.1.729",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"