@materialui-reactjs/admin 1.0.4
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/README.md +453 -0
- package/dist/assets/css/SpinnerLoader.css +1 -0
- package/dist/assets/css/form.css +1 -0
- package/dist/assets/css/index.css +1 -0
- package/dist/assets/css/meta.css +1 -0
- package/dist/chunks/Common-C_ZhT4L6.js +217 -0
- package/dist/chunks/Env-DRXhvUcb.js +16 -0
- package/dist/chunks/HeaderUpdate-lrSYWsKp.js +474 -0
- package/dist/chunks/SortableItem-B4-Zsso3.js +31 -0
- package/dist/chunks/SpinnerLoader-h8RDIarB.js +21 -0
- package/dist/chunks/UDragFile-CAiSfTsp.js +92 -0
- package/dist/chunks/Validator-DjZz2bJs.js +203 -0
- package/dist/chunks/echarts-CRmndsxC.js +322 -0
- package/dist/chunks/form-C8gzkYMW.js +45843 -0
- package/dist/chunks/loader-BUiOnhOH.js +1 -0
- package/dist/chunks/meta-k8MmuQjS.js +758 -0
- package/dist/chunks/sidebar-Dj4Xr9du.js +84 -0
- package/dist/chunks/single-DyPwG6ZR.js +1082 -0
- package/dist/chunks/top-navbar-FBw88y_o.js +78 -0
- package/dist/components/echarts/BarChart.d.ts +11 -0
- package/dist/components/echarts/LineChart.d.ts +10 -0
- package/dist/components/echarts/MultiBarChart.d.ts +14 -0
- package/dist/components/echarts/MultiLineChart.d.ts +14 -0
- package/dist/components/echarts/PieChart.d.ts +12 -0
- package/dist/components/echarts/index.d.ts +5 -0
- package/dist/components/echarts/index.js +2 -0
- package/dist/components/form/AdvancedMultiSelect.d.ts +16 -0
- package/dist/components/form/AsxhUImages.d.ts +15 -0
- package/dist/components/form/BoxAddRow.d.ts +26 -0
- package/dist/components/form/CheckTreeBox.d.ts +18 -0
- package/dist/components/form/CusForm.d.ts +105 -0
- package/dist/components/form/DateInput.d.ts +14 -0
- package/dist/components/form/DateTimeInput.d.ts +11 -0
- package/dist/components/form/Editor.d.ts +12 -0
- package/dist/components/form/EfFile.d.ts +15 -0
- package/dist/components/form/EfImage.d.ts +15 -0
- package/dist/components/form/EfImages.d.ts +14 -0
- package/dist/components/form/PImage.d.ts +15 -0
- package/dist/components/form/SelectAddRowBox.d.ts +17 -0
- package/dist/components/form/SelectAddRowBoxAdvanced.d.ts +16 -0
- package/dist/components/form/SelectBox.d.ts +32 -0
- package/dist/components/form/UDragFile.d.ts +13 -0
- package/dist/components/form/UFile.d.ts +15 -0
- package/dist/components/form/UFiles.d.ts +15 -0
- package/dist/components/form/UImages.d.ts +15 -0
- package/dist/components/form/index.d.ts +19 -0
- package/dist/components/form/index.js +3 -0
- package/dist/components/loader/SpinnerLoader.d.ts +8 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader/index.js +3 -0
- package/dist/components/meta/BtnGroup.d.ts +8 -0
- package/dist/components/meta/CardTable.d.ts +37 -0
- package/dist/components/meta/CusTooltip.d.ts +7 -0
- package/dist/components/meta/ElfinderModal.d.ts +10 -0
- package/dist/components/meta/Error403.d.ts +8 -0
- package/dist/components/meta/Error404.d.ts +8 -0
- package/dist/components/meta/Head.d.ts +1 -0
- package/dist/components/meta/HeaderDetail.d.ts +9 -0
- package/dist/components/meta/HeaderIndex.d.ts +17 -0
- package/dist/components/meta/HeaderUpdate.d.ts +9 -0
- package/dist/components/meta/ModalForm.d.ts +18 -0
- package/dist/components/meta/Navtabs.d.ts +12 -0
- package/dist/components/meta/PDFEmbed.d.ts +11 -0
- package/dist/components/meta/Pagination.d.ts +7 -0
- package/dist/components/meta/Pdfviewer.d.ts +0 -0
- package/dist/components/meta/ScrollTable.d.ts +16 -0
- package/dist/components/meta/SearchBox.d.ts +9 -0
- package/dist/components/meta/SortableItem.d.ts +1 -0
- package/dist/components/meta/index.d.ts +17 -0
- package/dist/components/meta/index.js +4 -0
- package/dist/components/sidebar/Sidebar.d.ts +3 -0
- package/dist/components/sidebar/Sidebar.types.d.ts +25 -0
- package/dist/components/sidebar/Sidebar.utils.d.ts +2 -0
- package/dist/components/sidebar/SidebarItem.d.ts +10 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/index.js +2 -0
- package/dist/components/single/Detail.d.ts +25 -0
- package/dist/components/single/Fields.d.ts +31 -0
- package/dist/components/single/Import.d.ts +24 -0
- package/dist/components/single/List.d.ts +44 -0
- package/dist/components/single/Update.d.ts +33 -0
- package/dist/components/single/UpdateDetail.d.ts +7 -0
- package/dist/components/single/UpdateTableDetail.d.ts +18 -0
- package/dist/components/single/index.d.ts +7 -0
- package/dist/components/single/index.js +2 -0
- package/dist/components/top-navbar/TopNavbar.d.ts +6 -0
- package/dist/components/top-navbar/index.d.ts +1 -0
- package/dist/components/top-navbar/index.js +2 -0
- package/dist/fontawesome/css/all.css +8 -0
- package/dist/fontawesome/css/all.min.css +1 -0
- package/dist/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-duotone-900.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-duotone-900.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-light-300.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-light-300.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-sharp-light-300.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-sharp-light-300.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-sharp-regular-400.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-sharp-regular-400.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-sharp-solid-900.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-sharp-solid-900.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-thin-100.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-thin-100.woff2 +0 -0
- package/dist/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/dist/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/dist/hook/detail.d.ts +14 -0
- package/dist/hook/detail.js +12 -0
- package/dist/hook/fields.d.ts +14 -0
- package/dist/hook/fields.js +12 -0
- package/dist/hook/import.d.ts +15 -0
- package/dist/hook/import.js +0 -0
- package/dist/hook/index.d.ts +61 -0
- package/dist/hook/index.js +41 -0
- package/dist/hook/update.d.ts +24 -0
- package/dist/hook/update.js +29 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +11 -0
- package/dist/utils/Common.d.ts +136 -0
- package/dist/utils/CusRoute.d.ts +7 -0
- package/dist/utils/Env.d.ts +2 -0
- package/dist/utils/Group.d.ts +1 -0
- package/dist/utils/Validator.d.ts +53 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +671 -0
- package/package.json +171 -0
- package/scripts/postinstall.cjs +80 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { v as e, y as t } from "./Common-C_ZhT4L6.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Link as i, useNavigate as a } from "react-router-dom";
|
|
5
|
+
//#region src/components/top-navbar/TopNavbar.tsx
|
|
6
|
+
var o = ({ userName: o, role: s }) => {
|
|
7
|
+
let c = a(), l = async () => {
|
|
8
|
+
c("/", { replace: !0 }), localStorage.removeItem("isLogin"), window.dispatchEvent(new Event("storage"));
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ n("nav", {
|
|
11
|
+
className: "navbar navbar-main navbar-expand-lg position-sticky z-index-sticky shadow-none bg-gradient-dark py-3 px-0",
|
|
12
|
+
"data-scroll": "true",
|
|
13
|
+
children: /* @__PURE__ */ n("div", {
|
|
14
|
+
className: "container-fluid",
|
|
15
|
+
children: /* @__PURE__ */ n("div", {
|
|
16
|
+
className: "collapse navbar-collapse mt-sm-0 mt-2 me-md-0 me-sm-4",
|
|
17
|
+
children: /* @__PURE__ */ n("ul", {
|
|
18
|
+
className: "navbar-nav justify-content-end ms-auto",
|
|
19
|
+
children: /* @__PURE__ */ r("li", {
|
|
20
|
+
className: "nav-item dropdown py-0",
|
|
21
|
+
children: [/* @__PURE__ */ r("button", {
|
|
22
|
+
className: "btn btn-sm btn-outline-light dropdown-toggle",
|
|
23
|
+
"data-bs-toggle": "dropdown",
|
|
24
|
+
"aria-expanded": "false",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ n("i", { className: "fa-regular fa-user-circle me-1" }),
|
|
27
|
+
o,
|
|
28
|
+
s && /* @__PURE__ */ n("span", {
|
|
29
|
+
className: "badge bg-warning text-white ms-2",
|
|
30
|
+
children: s
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}), /* @__PURE__ */ r("ul", {
|
|
34
|
+
className: "dropdown-menu dropdown-menu-end dropdown-menu-animation dropdown-md p-2 border border-radius-xl mt-0 mt-lg-3",
|
|
35
|
+
role: "menu",
|
|
36
|
+
children: [
|
|
37
|
+
o && /* @__PURE__ */ n("li", {
|
|
38
|
+
className: "dropdown-item border-radius-md",
|
|
39
|
+
children: /* @__PURE__ */ n(i, {
|
|
40
|
+
className: "d-block w-100 nav-link py-1",
|
|
41
|
+
to: "/profile",
|
|
42
|
+
children: "Thông tin tài khoản"
|
|
43
|
+
})
|
|
44
|
+
}),
|
|
45
|
+
o && /* @__PURE__ */ n("li", {
|
|
46
|
+
className: "dropdown-item border-radius-md",
|
|
47
|
+
children: /* @__PURE__ */ n(i, {
|
|
48
|
+
className: "d-block w-100 nav-link py-1",
|
|
49
|
+
to: "/userlogs",
|
|
50
|
+
children: "Nhật ký hoạt động"
|
|
51
|
+
})
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ n("li", {
|
|
54
|
+
className: "dropdown-item border-radius-md",
|
|
55
|
+
children: /* @__PURE__ */ n(i, {
|
|
56
|
+
className: "d-block w-100 nav-link py-1",
|
|
57
|
+
to: "#",
|
|
58
|
+
onClick: async (n) => {
|
|
59
|
+
n.preventDefault();
|
|
60
|
+
try {
|
|
61
|
+
await l(), t("Đăng xuất thành công", "top-end", !0);
|
|
62
|
+
} catch (t) {
|
|
63
|
+
e(t.message);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
children: "Đăng xuất"
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
})]
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
export { o as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface BarChartProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
labels: string[];
|
|
5
|
+
values: number[];
|
|
6
|
+
color?: string;
|
|
7
|
+
showGrid?: boolean;
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const BarChart: React.FC<BarChartProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface BarSeries {
|
|
3
|
+
name: string;
|
|
4
|
+
data: number[];
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
interface MultiBarChartProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
labels: string[];
|
|
10
|
+
series: BarSeries[];
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const MultiBarChart: React.FC<MultiBarChartProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface LineSeries {
|
|
3
|
+
name: string;
|
|
4
|
+
data: number[];
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
interface MultiLineChartProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
labels: string[];
|
|
10
|
+
series: LineSeries[];
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const MultiLineChart: React.FC<MultiLineChartProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface PieDataItem {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}
|
|
6
|
+
interface PieChartProps {
|
|
7
|
+
title?: string;
|
|
8
|
+
data: PieDataItem[];
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const PieChart: React.FC<PieChartProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface SelectProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
lists?: any[];
|
|
5
|
+
keyValue?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
value?: string | number | any;
|
|
8
|
+
cpnClass?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
all?: boolean;
|
|
12
|
+
zero?: boolean;
|
|
13
|
+
onChange?: (e: any) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const AdvancedMultiSelect: React.FC<SelectProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface UImageProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string[];
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const AsxhUImages: React.FC<UImageProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type FieldType = "text" | "textarea" | "select" | "selectMulti" | "image" | "editor";
|
|
2
|
+
export interface Option {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: FieldType;
|
|
6
|
+
options?: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: any;
|
|
9
|
+
}[];
|
|
10
|
+
keyValue?: string;
|
|
11
|
+
keyName?: string;
|
|
12
|
+
all?: boolean;
|
|
13
|
+
zero?: boolean;
|
|
14
|
+
df?: string;
|
|
15
|
+
ext?: string;
|
|
16
|
+
colClass?: string;
|
|
17
|
+
}
|
|
18
|
+
type Row = Record<string, string | File | any | null | any[]>;
|
|
19
|
+
interface BoxAddRowProps {
|
|
20
|
+
layout?: number;
|
|
21
|
+
options: Option[];
|
|
22
|
+
onChange?: (rows: Row[]) => void;
|
|
23
|
+
data?: Row[];
|
|
24
|
+
}
|
|
25
|
+
export declare const BoxAddRow: React.FC<BoxAddRowProps>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface CheckTreeBoxProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
values?: any[];
|
|
5
|
+
lists: any[];
|
|
6
|
+
col?: string;
|
|
7
|
+
keyValue?: string;
|
|
8
|
+
keyName?: string;
|
|
9
|
+
minLength?: number;
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
cpnClass?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
onChange?: (e: any) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const CheckTreeBox: React.FC<CheckTreeBoxProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
interface TextProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
value?: string | number;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
cpnClass?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Text: React.FC<TextProps>;
|
|
15
|
+
interface EmailProps {
|
|
16
|
+
label: string;
|
|
17
|
+
name: string;
|
|
18
|
+
value?: string;
|
|
19
|
+
minLength?: number;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
cpnClass?: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
readonly?: boolean;
|
|
25
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const Email: React.FC<EmailProps>;
|
|
28
|
+
interface TextareaProps {
|
|
29
|
+
label: string;
|
|
30
|
+
name: string;
|
|
31
|
+
value?: string;
|
|
32
|
+
cpnClass?: string;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
readonly?: boolean;
|
|
36
|
+
rows?: number;
|
|
37
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare const Textarea: React.FC<TextareaProps>;
|
|
40
|
+
interface NumberProps {
|
|
41
|
+
label: string;
|
|
42
|
+
name: string;
|
|
43
|
+
style?: React.CSSProperties;
|
|
44
|
+
value?: number | string;
|
|
45
|
+
step?: number;
|
|
46
|
+
cpnClass?: string;
|
|
47
|
+
required?: boolean;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
readonly?: boolean;
|
|
50
|
+
min?: number | string;
|
|
51
|
+
max?: number | string;
|
|
52
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
53
|
+
}
|
|
54
|
+
export declare const NumberText: React.FC<NumberProps>;
|
|
55
|
+
interface PassowrdProps {
|
|
56
|
+
label: string;
|
|
57
|
+
name: string;
|
|
58
|
+
value?: string;
|
|
59
|
+
cpnClass?: string;
|
|
60
|
+
required?: boolean;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
readonly?: boolean;
|
|
63
|
+
autoComplete?: string;
|
|
64
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
65
|
+
}
|
|
66
|
+
export declare const Password: React.FC<PassowrdProps>;
|
|
67
|
+
interface PhoneVnProps {
|
|
68
|
+
label: string;
|
|
69
|
+
name: string;
|
|
70
|
+
value: string;
|
|
71
|
+
cpnClass: string;
|
|
72
|
+
required?: boolean;
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
readonly?: boolean;
|
|
75
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
76
|
+
}
|
|
77
|
+
export declare const PhoneVn: React.FC<PhoneVnProps>;
|
|
78
|
+
interface RatioKeyValProps {
|
|
79
|
+
label: string;
|
|
80
|
+
lists: any;
|
|
81
|
+
name: string;
|
|
82
|
+
value?: string | number;
|
|
83
|
+
cpnClass?: string;
|
|
84
|
+
required?: boolean;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export declare const RatioKeyVal: React.FC<RatioKeyValProps>;
|
|
88
|
+
interface CheckBoxProps {
|
|
89
|
+
label: string;
|
|
90
|
+
name: string;
|
|
91
|
+
value?: any[];
|
|
92
|
+
lists: any[];
|
|
93
|
+
col: string;
|
|
94
|
+
keyValue?: string;
|
|
95
|
+
keyName?: string;
|
|
96
|
+
minLength?: number;
|
|
97
|
+
maxLength?: number;
|
|
98
|
+
cpnClass?: string;
|
|
99
|
+
required?: boolean;
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
readonly?: boolean;
|
|
102
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
103
|
+
}
|
|
104
|
+
export declare const CheckBox: React.FC<CheckBoxProps>;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface DateProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
cpnClass?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
placeholderText?: string;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const DateInput: React.FC<DateProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
|
|
2
|
+
interface DateTimeProps extends Omit<DateTimePickerProps, "value" | "defaultValue" | "onChange"> {
|
|
3
|
+
label: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string | Date;
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DateTimeInput: React.FC<DateTimeProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface EditorProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
cpnClass?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Editor: React.FC<EditorProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface EfFileProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const EfFile: React.FC<EfFileProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface EfImageProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const EfImage: React.FC<EfImageProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface EfImagesProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string[];
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
onChange?: ((e: any) => void);
|
|
12
|
+
}
|
|
13
|
+
export declare const EfImages: React.FC<EfImagesProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface PImageProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const PImage: React.FC<PImageProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface SelectProps {
|
|
2
|
+
itemLabel: string;
|
|
3
|
+
itemName: string;
|
|
4
|
+
selectName?: string;
|
|
5
|
+
keyName?: string;
|
|
6
|
+
keyValue?: string;
|
|
7
|
+
lists: any[];
|
|
8
|
+
clsWidth?: string;
|
|
9
|
+
btnTxt?: string;
|
|
10
|
+
rendeRowData?: any;
|
|
11
|
+
detailRow?: any;
|
|
12
|
+
isEdit?: boolean;
|
|
13
|
+
onSubmit?: (data: any, frmRef: any) => void;
|
|
14
|
+
onChangeRow?: (data: any) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const SelectAddRowBox: React.FC<SelectProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface SelectProps {
|
|
2
|
+
itemLabel: string;
|
|
3
|
+
itemName: string;
|
|
4
|
+
selectName?: string;
|
|
5
|
+
lists: any[];
|
|
6
|
+
clsWidth?: string;
|
|
7
|
+
btnTxt?: string;
|
|
8
|
+
rendeRowData?: any;
|
|
9
|
+
detailRow?: any;
|
|
10
|
+
isEdit?: boolean;
|
|
11
|
+
keyValue?: string;
|
|
12
|
+
keyName?: string;
|
|
13
|
+
onSubmit?: (data: any, frmRef: any) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const SelectAddRowBoxAdvanced: React.FC<SelectProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface SelectProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
lists: any[];
|
|
5
|
+
keyValue?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
value?: string | number | any;
|
|
8
|
+
cpnClass?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
all?: boolean;
|
|
12
|
+
zero?: boolean;
|
|
13
|
+
style?: any;
|
|
14
|
+
onChange?: (e: any) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const SelectBox: React.FC<SelectProps>;
|
|
17
|
+
interface SelectMProps {
|
|
18
|
+
label: string;
|
|
19
|
+
name: string;
|
|
20
|
+
lists: any[];
|
|
21
|
+
keyValue?: string;
|
|
22
|
+
keyName?: string;
|
|
23
|
+
value?: any[];
|
|
24
|
+
cpnClass?: string;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
all?: boolean;
|
|
28
|
+
zero?: boolean;
|
|
29
|
+
onChange?: (e: any) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const SelectMBox: React.FC<SelectMProps>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface UFileProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
cpnClass?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
ext: string;
|
|
10
|
+
onChange: ((e: any) => void);
|
|
11
|
+
}
|
|
12
|
+
export declare const UDragFile: React.FC<UFileProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface UFileProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const UFile: React.FC<UFileProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface UFileProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string[];
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const UFiles: React.FC<UFileProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface UImageProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isEdit?: boolean;
|
|
5
|
+
value?: string[];
|
|
6
|
+
cpnClass?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
ext: string;
|
|
11
|
+
df?: string;
|
|
12
|
+
onChange?: ((e: any) => void);
|
|
13
|
+
}
|
|
14
|
+
export declare const UImages: React.FC<UImageProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './AdvancedMultiSelect';
|
|
2
|
+
export * from './AsxhUImages';
|
|
3
|
+
export * from './BoxAddRow';
|
|
4
|
+
export * from './CheckTreeBox';
|
|
5
|
+
export * from './CusForm';
|
|
6
|
+
export * from './DateInput';
|
|
7
|
+
export * from './DateTimeInput';
|
|
8
|
+
export * from './Editor';
|
|
9
|
+
export * from './EfFile';
|
|
10
|
+
export * from './EfImage';
|
|
11
|
+
export * from './EfImages';
|
|
12
|
+
export * from './PImage';
|
|
13
|
+
export * from './SelectAddRowBox';
|
|
14
|
+
export * from './SelectAddRowBoxAdvanced';
|
|
15
|
+
export * from './SelectBox';
|
|
16
|
+
export * from './UDragFile';
|
|
17
|
+
export * from './UFile';
|
|
18
|
+
export * from './UFiles';
|
|
19
|
+
export * from './UImages';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { C as e, E as t, S as n, T as r, _ as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, w as C, x as w, y as T } from "../../chunks/form-C8gzkYMW.js";
|
|
2
|
+
import { t as E } from "../../chunks/UDragFile-CAiSfTsp.js";
|
|
3
|
+
export { t as AdvancedMultiSelect, r as AsxhUImages, l as BoxAddRow, i as CheckBox, c as CheckTreeBox, x as DateInput, p as DateTimeInput, _ as Editor, s as EfFile, m as EfImage, y as EfImages, S as Email, T as NumberText, g as PImage, o as Password, w as PhoneVn, n as RatioKeyVal, a as SelectAddRowBox, f as SelectAddRowBoxAdvanced, d as SelectBox, u as SelectMBox, e as Text, C as Textarea, E as UDragFile, v as UFile, h as UFiles, b as UImages };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SpinnerLoader';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface ApiOptionType {
|
|
2
|
+
cUri: string;
|
|
3
|
+
filter?: any;
|
|
4
|
+
formData?: any;
|
|
5
|
+
apiGetData: string;
|
|
6
|
+
apiGetDetail: string;
|
|
7
|
+
apiCreate: string;
|
|
8
|
+
apiEdit: string;
|
|
9
|
+
apiDelete: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TbOption {
|
|
12
|
+
title: string;
|
|
13
|
+
tbfield: string[];
|
|
14
|
+
ftfield: string[];
|
|
15
|
+
columnWidth: number;
|
|
16
|
+
numOfFirst: number;
|
|
17
|
+
numOfLast: number;
|
|
18
|
+
}
|
|
19
|
+
export interface RoleOption {
|
|
20
|
+
isCre: boolean;
|
|
21
|
+
isEdit: boolean;
|
|
22
|
+
isDetail: boolean;
|
|
23
|
+
isDelOne: boolean;
|
|
24
|
+
isIndex: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface CardTableProps {
|
|
27
|
+
frmBody: any;
|
|
28
|
+
service: any;
|
|
29
|
+
options: any;
|
|
30
|
+
tbOption: TbOption;
|
|
31
|
+
roleOption: RoleOption;
|
|
32
|
+
apiOption: ApiOptionType;
|
|
33
|
+
clsWidth?: string;
|
|
34
|
+
btnTxt?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const CardTable: React.FC<CardTableProps>;
|
|
37
|
+
export {};
|