aq-fe-framework 0.1.598 → 0.1.599
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.
package/dist/core/index.mjs
CHANGED
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
MyTextInput,
|
|
24
24
|
MyWeeklySessionSchedulerPicker
|
|
25
25
|
} from "../chunk-S4K4K3X3.mjs";
|
|
26
|
-
import "../chunk-GFEMKKFH.mjs";
|
|
27
26
|
import {
|
|
28
27
|
MyModalDelete
|
|
29
28
|
} from "../chunk-GFW64WZ2.mjs";
|
|
@@ -31,6 +30,7 @@ import "../chunk-BCTZIPA2.mjs";
|
|
|
31
30
|
import "../chunk-PW6WTEVB.mjs";
|
|
32
31
|
import "../chunk-5COIJ2CE.mjs";
|
|
33
32
|
import "../chunk-EWDS5IOF.mjs";
|
|
33
|
+
import "../chunk-GFEMKKFH.mjs";
|
|
34
34
|
import "../chunk-OMJJAHOC.mjs";
|
|
35
35
|
import "../chunk-K6S7R6LU.mjs";
|
|
36
36
|
import "../chunk-AR64BQSX.mjs";
|
|
@@ -456,8 +456,9 @@ declare function F_documentCategories_Create({ documentType }: {
|
|
|
456
456
|
documentType: number;
|
|
457
457
|
}): react_jsx_runtime.JSX.Element;
|
|
458
458
|
|
|
459
|
-
declare function F_documentCategories_Delete({ id }: {
|
|
459
|
+
declare function F_documentCategories_Delete({ id, context }: {
|
|
460
460
|
id: number;
|
|
461
|
+
context?: string;
|
|
461
462
|
}): react_jsx_runtime.JSX.Element;
|
|
462
463
|
|
|
463
464
|
declare function F_documentCategories_Read({ documentType }: {
|
|
@@ -8,9 +8,6 @@ import {
|
|
|
8
8
|
MySelect as MySelect2,
|
|
9
9
|
MyTextInput as MyTextInput2
|
|
10
10
|
} from "../chunk-S4K4K3X3.mjs";
|
|
11
|
-
import {
|
|
12
|
-
const_object_documentTypes
|
|
13
|
-
} from "../chunk-GFEMKKFH.mjs";
|
|
14
11
|
import "../chunk-GFW64WZ2.mjs";
|
|
15
12
|
import {
|
|
16
13
|
F_authenticate_Logout,
|
|
@@ -51,6 +48,9 @@ import {
|
|
|
51
48
|
import {
|
|
52
49
|
U0DateToDDMMYYYString
|
|
53
50
|
} from "../chunk-EWDS5IOF.mjs";
|
|
51
|
+
import {
|
|
52
|
+
const_object_documentTypes
|
|
53
|
+
} from "../chunk-GFEMKKFH.mjs";
|
|
54
54
|
import {
|
|
55
55
|
const_object_colors
|
|
56
56
|
} from "../chunk-OMJJAHOC.mjs";
|
|
@@ -3038,6 +3038,7 @@ function F_documentCategories_Create({ documentType }) {
|
|
|
3038
3038
|
documentType
|
|
3039
3039
|
},
|
|
3040
3040
|
validate: {
|
|
3041
|
+
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
3041
3042
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
3042
3043
|
}
|
|
3043
3044
|
});
|
|
@@ -3049,10 +3050,11 @@ function F_documentCategories_Create({ documentType }) {
|
|
|
3049
3050
|
|
|
3050
3051
|
// src/modules-features/admin/core/documentCategories/F_documentCategories_Delete.tsx
|
|
3051
3052
|
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
3052
|
-
function F_documentCategories_Delete({ id }) {
|
|
3053
|
+
function F_documentCategories_Delete({ id, context }) {
|
|
3053
3054
|
return /* @__PURE__ */ jsx64(
|
|
3054
3055
|
MyActionIconDelete,
|
|
3055
3056
|
{
|
|
3057
|
+
contextData: context,
|
|
3056
3058
|
onSubmit: () => service_documentAttribute.delete(id)
|
|
3057
3059
|
}
|
|
3058
3060
|
);
|
|
@@ -3063,7 +3065,11 @@ import { useForm as useForm20 } from "@mantine/form";
|
|
|
3063
3065
|
import { jsx as jsx65, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3064
3066
|
function F_documentCategories_Update({ values }) {
|
|
3065
3067
|
const form = useForm20({
|
|
3066
|
-
initialValues: values
|
|
3068
|
+
initialValues: values,
|
|
3069
|
+
validate: {
|
|
3070
|
+
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
3071
|
+
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
3072
|
+
}
|
|
3067
3073
|
});
|
|
3068
3074
|
return /* @__PURE__ */ jsxs39(MyActionIconUpdate, { form, onSubmit: async (values2) => service_documentAttribute.update(values2), children: [
|
|
3069
3075
|
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
@@ -3103,7 +3109,7 @@ function F_documentCategories_Read({ documentType }) {
|
|
|
3103
3109
|
renderRowActions: ({ row }) => {
|
|
3104
3110
|
return /* @__PURE__ */ jsxs40(MyCenterFull, { children: [
|
|
3105
3111
|
/* @__PURE__ */ jsx66(F_documentCategories_Update, { values: row.original }),
|
|
3106
|
-
/* @__PURE__ */ jsx66(F_documentCategories_Delete, { id: row.original.id })
|
|
3112
|
+
/* @__PURE__ */ jsx66(F_documentCategories_Delete, { id: row.original.id, context: row.original.code })
|
|
3107
3113
|
] });
|
|
3108
3114
|
}
|
|
3109
3115
|
}
|