aq-fe-framework 0.1.93 → 0.1.95

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.
@@ -7580,12 +7580,12 @@ function MySkeletonTable({ h: h4 = 500 }) {
7580
7580
 
7581
7581
  // src/constants/object/documentTypes.ts
7582
7582
  var OBJECT_DOCUMENT_TYPES = {
7583
- Security: 30,
7584
- Refinement: 31,
7585
- Guideline: 32,
7586
- Regulations: 33,
7587
- Workflow: 34,
7588
- Form: 35
7583
+ Security: 1,
7584
+ Refinement: 2,
7585
+ Guideline: 3,
7586
+ Regulations: 4,
7587
+ Workflow: 5,
7588
+ Form: 6
7589
7589
  };
7590
7590
 
7591
7591
  // src/modules-features/admin/core/core12196/F_core12196_Create.tsx
@@ -7679,13 +7679,16 @@ import { useQuery as useQuery5 } from "@tanstack/react-query";
7679
7679
  import { useMemo as useMemo4 } from "react";
7680
7680
 
7681
7681
  // src/modules-features/admin/core/core16209/F_core16209_Create.tsx
7682
- import { FileInput as FileInput4 } from "@mantine/core";
7682
+ import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
7683
7683
  import { useForm as useForm3 } from "@mantine/form";
7684
7684
  import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
7685
- function F_core16209_Create({ RefinementTypeId }) {
7685
+ function F_core16209_Create({
7686
+ RefinementTypeId
7687
+ }) {
7686
7688
  const form = useForm3({
7687
7689
  mode: "uncontrolled",
7688
7690
  validate: {
7691
+ meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7689
7692
  departmentName: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7690
7693
  description: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7691
7694
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
@@ -7706,6 +7709,13 @@ function F_core16209_Create({ RefinementTypeId }) {
7706
7709
  }));
7707
7710
  },
7708
7711
  children: [
7712
+ /* @__PURE__ */ jsx63(
7713
+ MyDateInput,
7714
+ __spreadValues({
7715
+ withAsterisk: true,
7716
+ label: "Ng\xE0y h\u1ECDp"
7717
+ }, form.getInputProps("meetingDate"))
7718
+ ),
7709
7719
  /* @__PURE__ */ jsx63(
7710
7720
  MyTextInput,
7711
7721
  __spreadValues({
@@ -7720,6 +7730,7 @@ function F_core16209_Create({ RefinementTypeId }) {
7720
7730
  label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
7721
7731
  }, form.getInputProps("description"))
7722
7732
  ),
7733
+ /* @__PURE__ */ jsx63(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
7723
7734
  /* @__PURE__ */ jsx63(
7724
7735
  MyDateInput,
7725
7736
  __spreadValues({
@@ -7741,7 +7752,8 @@ function F_core16209_Create({ RefinementTypeId }) {
7741
7752
  withAsterisk: true,
7742
7753
  label: "T\xE0i li\u1EC7u"
7743
7754
  }, form.getInputProps("file"))
7744
- )
7755
+ ),
7756
+ /* @__PURE__ */ jsx63(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
7745
7757
  ]
7746
7758
  }
7747
7759
  );
@@ -7763,7 +7775,7 @@ function F_core16209_Delete({
7763
7775
  }
7764
7776
 
7765
7777
  // src/modules-features/admin/core/core16209/F_core16209_Update.tsx
7766
- import { FileInput as FileInput5 } from "@mantine/core";
7778
+ import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
7767
7779
  import { useForm as useForm4 } from "@mantine/form";
7768
7780
  import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
7769
7781
  function F_core16209_Update({ values }) {
@@ -7771,11 +7783,16 @@ function F_core16209_Update({ values }) {
7771
7783
  const form = useForm4({
7772
7784
  mode: "uncontrolled",
7773
7785
  initialValues: __spreadProps(__spreadValues({}, values), {
7774
- file: new File([], (_a = values.path) == null ? void 0 : _a.split("/")[values.path.split("/").length - 1]),
7786
+ file: new File(
7787
+ [],
7788
+ (_a = values.path) == null ? void 0 : _a.split("/")[values.path.split("/").length - 1]
7789
+ ),
7775
7790
  startDate: new Date(values.startDate),
7776
- endDate: new Date(values.endDate)
7791
+ endDate: new Date(values.endDate),
7792
+ meetingDate: new Date(values.meetingDate)
7777
7793
  }),
7778
7794
  validate: {
7795
+ meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7779
7796
  departmentName: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7780
7797
  description: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7781
7798
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
@@ -7783,17 +7800,64 @@ function F_core16209_Update({ values }) {
7783
7800
  endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
7784
7801
  }
7785
7802
  });
7786
- return /* @__PURE__ */ jsxs36(MyActionIconUpdate, { form, onSubmit: async (values2) => {
7787
- return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
7788
- fileDetail: await utils_file_fileToAQDocumentType(values2.file)
7789
- }));
7790
- }, children: [
7791
- /* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ withAsterisk: true, label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))),
7792
- /* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ withAsterisk: true, label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))),
7793
- /* @__PURE__ */ jsx65(MyDateInput, __spreadValues({ withAsterisk: true, label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))),
7794
- /* @__PURE__ */ jsx65(MyDateInput, __spreadValues({ withAsterisk: true, label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))),
7795
- /* @__PURE__ */ jsx65(FileInput5, __spreadValues({ withAsterisk: true, label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
7796
- ] });
7803
+ return /* @__PURE__ */ jsxs36(
7804
+ MyActionIconUpdate,
7805
+ {
7806
+ form,
7807
+ onSubmit: async (values2) => {
7808
+ return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
7809
+ fileDetail: await utils_file_fileToAQDocumentType(values2.file)
7810
+ }));
7811
+ },
7812
+ children: [
7813
+ /* @__PURE__ */ jsx65(
7814
+ MyDateInput,
7815
+ __spreadValues({
7816
+ withAsterisk: true,
7817
+ label: "Ng\xE0y h\u1ECDp"
7818
+ }, form.getInputProps("meetingDate"))
7819
+ ),
7820
+ /* @__PURE__ */ jsx65(
7821
+ MyTextInput,
7822
+ __spreadValues({
7823
+ withAsterisk: true,
7824
+ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
7825
+ }, form.getInputProps("departmentName"))
7826
+ ),
7827
+ /* @__PURE__ */ jsx65(
7828
+ MyTextInput,
7829
+ __spreadValues({
7830
+ withAsterisk: true,
7831
+ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
7832
+ }, form.getInputProps("description"))
7833
+ ),
7834
+ /* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
7835
+ /* @__PURE__ */ jsx65(
7836
+ MyDateInput,
7837
+ __spreadValues({
7838
+ withAsterisk: true,
7839
+ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
7840
+ }, form.getInputProps("startDate"))
7841
+ ),
7842
+ /* @__PURE__ */ jsx65(
7843
+ MyDateInput,
7844
+ __spreadValues({
7845
+ withAsterisk: true,
7846
+ label: "Ng\xE0y k\u1EBFt th\xFAc"
7847
+ }, form.getInputProps("endDate"))
7848
+ ),
7849
+ /* @__PURE__ */ jsx65(
7850
+ FileInput5,
7851
+ __spreadValues({
7852
+ placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
7853
+ withAsterisk: true,
7854
+ label: "T\xE0i li\u1EC7u"
7855
+ }, form.getInputProps("file"))
7856
+ ),
7857
+ /* @__PURE__ */ jsx65(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
7858
+ ]
7859
+ }
7860
+ );
7797
7861
  }
7798
7862
 
7799
7863
  // src/modules-features/admin/core/core16209/F_core16209.tsx
@@ -9179,7 +9243,7 @@ function F_core40207_Read({ GuidelineTypeId }) {
9179
9243
  {
9180
9244
  columns,
9181
9245
  data: query.data,
9182
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx90(F_core40207_Create, {}),
9246
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx90(F_core40207_Create, { GuidelineTypeId }),
9183
9247
  renderRowActions: ({ row }) => {
9184
9248
  return /* @__PURE__ */ jsxs55(MyCenterFull, { children: [
9185
9249
  /* @__PURE__ */ jsx90(F_core40207_Update, { values: row.original }),
@@ -63,7 +63,7 @@ import {
63
63
  useS_BasicAppShell,
64
64
  useS_ButtonImport,
65
65
  utils_layout_getItemsWithoutLinks
66
- } from "../chunk-4AZPPCLV.mjs";
66
+ } from "../chunk-AJYXBDE5.mjs";
67
67
  import "../chunk-EEQENBXZ.mjs";
68
68
  import "../chunk-Y3YGC5IH.mjs";
69
69
  import "../chunk-FWCSY2DS.mjs";
@@ -61,7 +61,7 @@ declare function F_core16209({ RefinementTypeId }: {
61
61
  RefinementTypeId: number;
62
62
  }): react_jsx_runtime.JSX.Element | "Loading..." | "có lỗi xảy ra!";
63
63
 
64
- declare function F_core16209_Create({ RefinementTypeId }: {
64
+ declare function F_core16209_Create({ RefinementTypeId, }: {
65
65
  RefinementTypeId: number;
66
66
  }): react_jsx_runtime.JSX.Element;
67
67
 
@@ -63,7 +63,7 @@ import {
63
63
  useS_authenticate,
64
64
  useS_core83092,
65
65
  utils_core83092_mergePage
66
- } from "../chunk-4AZPPCLV.mjs";
66
+ } from "../chunk-AJYXBDE5.mjs";
67
67
  import "../chunk-EEQENBXZ.mjs";
68
68
  import "../chunk-Y3YGC5IH.mjs";
69
69
  import "../chunk-FWCSY2DS.mjs";
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "types": "./dist/modules-features/index.d.mts"
19
19
  }
20
20
  },
21
- "version": "0.1.93",
21
+ "version": "0.1.95",
22
22
  "private": false,
23
23
  "files": [
24
24
  "dist"