aq-fe-framework 0.1.1081 → 0.1.1083
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/{MyButtonDeleteList-BABophjb.d.mts → MyButtonDeleteList-BcW55zHU.d.mts} +1 -25
- package/dist/MyDataTable-C_jIdiUh.d.mts +30 -0
- package/dist/{chunk-HKNSVCI4.mjs → chunk-EPA3QYP7.mjs} +154 -97
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.mjs +4 -4
- package/dist/const/index.mjs +1 -1
- package/dist/core/index.d.mts +4 -3
- package/dist/core/index.mjs +4 -4
- package/dist/enum/index.mjs +1 -2
- package/dist/modules-features/index.mjs +4 -4
- package/dist/shared/index.mjs +5 -6
- package/dist/utils-v2/index.d.mts +6 -3
- package/package.json +1 -1
- package/dist/chunk-NMY3UEY5.mjs +0 -0
- package/dist/{chunk-C74M5VPE.mjs → chunk-OHAOJE5F.mjs} +1 -1
- /package/dist/{chunk-J4WTZ3B4.mjs → chunk-VFTEXXA7.mjs} +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { DeepKeys } from '@tanstack/react-table';
|
|
3
|
-
import { MRT_RowData, MRT_TableOptions, MRT_ColumnDef } from 'mantine-react-table';
|
|
4
2
|
import { ReactNode, ComponentProps } from 'react';
|
|
5
3
|
import { ActionIconProps, TooltipProps, ButtonProps, ModalProps } from '@mantine/core';
|
|
6
4
|
import { useDisclosure } from '@mantine/hooks';
|
|
@@ -36,28 +34,6 @@ interface MyButtonModalProps {
|
|
|
36
34
|
}
|
|
37
35
|
declare function MyButtonModal({ disclosure, children, buttonProps, actionIconProps, modalProps, isActionIcon, toolTipProps, }: MyButtonModalProps): react_jsx_runtime.JSX.Element;
|
|
38
36
|
|
|
39
|
-
interface MyDataTableInternalProps<TData extends MRT_RowData> extends Omit<MyDataTableProps<TData>, "columns" | "data"> {
|
|
40
|
-
}
|
|
41
|
-
interface PaginationState {
|
|
42
|
-
pageIndex: number;
|
|
43
|
-
pageSize: number;
|
|
44
|
-
}
|
|
45
|
-
interface MyDataTableProps<TData extends MRT_RowData> extends MRT_TableOptions<TData> {
|
|
46
|
-
columns: MRT_ColumnDef<TData>[];
|
|
47
|
-
data: TData[];
|
|
48
|
-
rowActionSize?: number;
|
|
49
|
-
setSelectedRow?: (data: TData[]) => void;
|
|
50
|
-
isError?: boolean;
|
|
51
|
-
/** Dùng để loading bảng khi gọi api fetch data */
|
|
52
|
-
isLoading?: boolean;
|
|
53
|
-
exportAble?: boolean;
|
|
54
|
-
pagination?: PaginationState;
|
|
55
|
-
idSelectionOne?: string;
|
|
56
|
-
setIdSelectionOne?: (value: string) => void;
|
|
57
|
-
visibleFields?: (({} & string) | DeepKeys<TData>)[];
|
|
58
|
-
}
|
|
59
|
-
declare function MyDataTable<TData extends MRT_RowData>({ rowActionSize, columns, data, setSelectedRow, isError, isLoading, pagination, idSelectionOne, setIdSelectionOne, renderTopToolbarCustomActions, visibleFields, ...rest }: MyDataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
60
|
-
|
|
61
37
|
interface MyButtonDeleteListProps extends Omit<ComponentProps<typeof MyButtonModal>, "disclosure"> {
|
|
62
38
|
/** Callback khi bấm nút xóa trong modal */
|
|
63
39
|
onSubmit: () => void;
|
|
@@ -76,4 +52,4 @@ interface MyButtonDeleteListProps extends Omit<ComponentProps<typeof MyButtonMod
|
|
|
76
52
|
}
|
|
77
53
|
declare function MyButtonDeleteList({ onSubmit, onSuccess, onError, contextData, count, ...rest }: MyButtonDeleteListProps): react_jsx_runtime.JSX.Element;
|
|
78
54
|
|
|
79
|
-
export { type MyButtonModalProps as M, type
|
|
55
|
+
export { type MyButtonModalProps as M, type MyActionIconProps as a, type MyButtonProps as b, type MyButtonDeleteListProps as c, MyActionIcon as d, MyButton as e, MyButtonModal as f, MyButtonDeleteList as g };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { DeepKeys } from '@tanstack/react-table';
|
|
3
|
+
import { MRT_RowData, MRT_TableOptions, MRT_ColumnDef } from 'mantine-react-table';
|
|
4
|
+
|
|
5
|
+
interface MyDataTableInternalProps<TData extends MRT_RowData> extends Omit<MyDataTableProps<TData>, "columns" | "data"> {
|
|
6
|
+
}
|
|
7
|
+
interface MyColumnDef<TData extends MRT_RowData> extends MRT_ColumnDef<TData> {
|
|
8
|
+
type?: 'currency' | "currencyWithSuffix" | 'ddMMyyyy' | 'MMyyyy' | 'squareCheck' | "list" | "gender";
|
|
9
|
+
}
|
|
10
|
+
interface PaginationState {
|
|
11
|
+
pageIndex: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
}
|
|
14
|
+
interface MyDataTableProps<TData extends MRT_RowData> extends MRT_TableOptions<TData> {
|
|
15
|
+
columns: MyColumnDef<TData>[];
|
|
16
|
+
data: TData[];
|
|
17
|
+
rowActionSize?: number;
|
|
18
|
+
setSelectedRow?: (data: TData[]) => void;
|
|
19
|
+
isError?: boolean;
|
|
20
|
+
/** Dùng để loading bảng khi gọi api fetch data */
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
exportAble?: boolean;
|
|
23
|
+
pagination?: PaginationState;
|
|
24
|
+
idSelectionOne?: string;
|
|
25
|
+
setIdSelectionOne?: (value: string) => void;
|
|
26
|
+
visibleFields?: (({} & string) | DeepKeys<TData>)[];
|
|
27
|
+
}
|
|
28
|
+
declare function MyDataTable<TData extends MRT_RowData>({ rowActionSize, columns, data, setSelectedRow, isError, isLoading, pagination, idSelectionOne, setIdSelectionOne, renderTopToolbarCustomActions, visibleFields, ...rest }: MyDataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
export { type MyColumnDef as M, type PaginationState as P, type MyDataTableProps as a, type MyDataTableInternalProps as b, MyDataTable as c };
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
utils_excel,
|
|
4
|
-
utils_file,
|
|
5
|
-
utils_mantineReactTable,
|
|
6
|
-
utils_text
|
|
7
|
-
} from "./chunk-7ZI7IOEP.mjs";
|
|
8
|
-
import {
|
|
9
|
-
createGenericStore,
|
|
2
|
+
createGenericStore as createGenericStore2,
|
|
10
3
|
useAppStore,
|
|
11
4
|
useStore_Permission,
|
|
12
5
|
useStore_ProjectInfo
|
|
@@ -26,16 +19,24 @@ import {
|
|
|
26
19
|
utils_pdf_download
|
|
27
20
|
} from "./chunk-KGBXMHKR.mjs";
|
|
28
21
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
utils_currency,
|
|
23
|
+
utils_date,
|
|
24
|
+
utils_excel,
|
|
25
|
+
utils_file,
|
|
26
|
+
utils_mantineReactTable,
|
|
27
|
+
utils_text
|
|
28
|
+
} from "./chunk-7ZI7IOEP.mjs";
|
|
32
29
|
import {
|
|
33
|
-
createGenericStore
|
|
30
|
+
createGenericStore
|
|
34
31
|
} from "./chunk-BTITP4TN.mjs";
|
|
32
|
+
import {
|
|
33
|
+
const_object_colors,
|
|
34
|
+
const_object_documentTypes
|
|
35
|
+
} from "./chunk-OHAOJE5F.mjs";
|
|
35
36
|
import {
|
|
36
37
|
enumLabel_gender,
|
|
37
38
|
enum_daysOfWeek
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VFTEXXA7.mjs";
|
|
39
40
|
import {
|
|
40
41
|
baseAxios_default,
|
|
41
42
|
createBaseApi,
|
|
@@ -1881,7 +1882,7 @@ import { IconArrowBackUp, IconArrowBigLeft, IconArrowBigRight, IconSquareRounded
|
|
|
1881
1882
|
// src/components/Button/ButtonImport/useS_ButtonImport.ts
|
|
1882
1883
|
import { useEffect as useEffect5, useMemo as useMemo2 } from "react";
|
|
1883
1884
|
import * as XLSX2 from "xlsx";
|
|
1884
|
-
var useStore =
|
|
1885
|
+
var useStore = createGenericStore({
|
|
1885
1886
|
initialState: {
|
|
1886
1887
|
data: [],
|
|
1887
1888
|
title: [],
|
|
@@ -2131,8 +2132,15 @@ function SelectFieldModal({ stack, onImport }) {
|
|
|
2131
2132
|
] }));
|
|
2132
2133
|
}
|
|
2133
2134
|
|
|
2135
|
+
// src/components/CenterFull/MyCenterFull.tsx
|
|
2136
|
+
import { Center as Center3, Group as Group8 } from "@mantine/core";
|
|
2137
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2138
|
+
function MyCenterFull({ children }) {
|
|
2139
|
+
return /* @__PURE__ */ jsx34(Center3, { w: "100%", children: /* @__PURE__ */ jsx34(Group8, { children }) });
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2134
2142
|
// src/components/DataDisplay/DataTable/MyDataTable.tsx
|
|
2135
|
-
import { Alert, Center as
|
|
2143
|
+
import { Alert, Center as Center4, Group as Group9, List, Portal, Text as Text6 } from "@mantine/core";
|
|
2136
2144
|
import { IconBug } from "@tabler/icons-react";
|
|
2137
2145
|
import {
|
|
2138
2146
|
MantineReactTable,
|
|
@@ -2140,7 +2148,7 @@ import {
|
|
|
2140
2148
|
} from "mantine-react-table";
|
|
2141
2149
|
import { MRT_Localization_VI } from "mantine-react-table/locales/vi/index.cjs";
|
|
2142
2150
|
import { useEffect as useEffect6, useMemo as useMemo3 } from "react";
|
|
2143
|
-
import { jsx as
|
|
2151
|
+
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2144
2152
|
function MyDataTable(_a) {
|
|
2145
2153
|
var _b = _a, {
|
|
2146
2154
|
rowActionSize,
|
|
@@ -2174,9 +2182,65 @@ function MyDataTable(_a) {
|
|
|
2174
2182
|
const finalColumns = useMemo3(() => {
|
|
2175
2183
|
let filterColumns = utils_mantineReactTable.filterColumnsByVisibleKeys(columns, visibleFields);
|
|
2176
2184
|
filterColumns = utils_mantineReactTable.sortColumnsByKeyOrder(filterColumns, visibleFields);
|
|
2177
|
-
const cleanedColumns = filterColumns.filter(
|
|
2178
|
-
(col)
|
|
2179
|
-
|
|
2185
|
+
const cleanedColumns = filterColumns.filter((col) => col.accessorKey !== "modifiedWhen" && col.accessorKey !== "modifiedFullName").map((col) => {
|
|
2186
|
+
if (col.Cell) return col;
|
|
2187
|
+
switch (col.type) {
|
|
2188
|
+
case "currency":
|
|
2189
|
+
col.Cell = ({ cell }) => {
|
|
2190
|
+
const value = cell.getValue();
|
|
2191
|
+
return utils_currency.formatWithSuffix(value);
|
|
2192
|
+
};
|
|
2193
|
+
col.size = 120;
|
|
2194
|
+
break;
|
|
2195
|
+
case "currencyWithSuffix":
|
|
2196
|
+
col.Cell = ({ cell }) => {
|
|
2197
|
+
const value = cell.getValue();
|
|
2198
|
+
return utils_currency.formatWithSuffix(value, " VN\u0110");
|
|
2199
|
+
};
|
|
2200
|
+
col.size = 120;
|
|
2201
|
+
break;
|
|
2202
|
+
case "ddMMyyyy":
|
|
2203
|
+
col.Cell = ({ cell }) => {
|
|
2204
|
+
const value = cell.getValue();
|
|
2205
|
+
return utils_date.toDDMMYYYY(value);
|
|
2206
|
+
};
|
|
2207
|
+
break;
|
|
2208
|
+
case "MMyyyy":
|
|
2209
|
+
col.Cell = ({ cell }) => {
|
|
2210
|
+
const value = cell.getValue();
|
|
2211
|
+
return utils_date.toMMYYYY(value);
|
|
2212
|
+
};
|
|
2213
|
+
col.size = 120;
|
|
2214
|
+
break;
|
|
2215
|
+
case "squareCheck":
|
|
2216
|
+
col.Cell = ({ cell }) => {
|
|
2217
|
+
const value = cell.getValue();
|
|
2218
|
+
return /* @__PURE__ */ jsx35(MyCenterFull, { children: /* @__PURE__ */ jsx35(CustomThemeIconSquareCheck, { checked: value }) });
|
|
2219
|
+
};
|
|
2220
|
+
col.size = 100;
|
|
2221
|
+
break;
|
|
2222
|
+
case "gender":
|
|
2223
|
+
col.Cell = ({ cell }) => {
|
|
2224
|
+
const value = cell.getValue();
|
|
2225
|
+
return enumLabel_gender[value];
|
|
2226
|
+
};
|
|
2227
|
+
col.size = 100;
|
|
2228
|
+
break;
|
|
2229
|
+
case "list":
|
|
2230
|
+
col.Cell = ({ cell }) => {
|
|
2231
|
+
const value = cell.getValue();
|
|
2232
|
+
return /* @__PURE__ */ jsx35(List, { children: value.map((item, idx) => /* @__PURE__ */ jsx35(List.Item, { children: item }, idx)) });
|
|
2233
|
+
};
|
|
2234
|
+
col.size = 300;
|
|
2235
|
+
break;
|
|
2236
|
+
default:
|
|
2237
|
+
col.Cell = ({ cell }) => {
|
|
2238
|
+
var _a3;
|
|
2239
|
+
return /* @__PURE__ */ jsx35("span", { children: (_a3 = cell.getValue()) != null ? _a3 : "" });
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
return col;
|
|
2243
|
+
});
|
|
2180
2244
|
cleanedColumns.push(
|
|
2181
2245
|
{
|
|
2182
2246
|
accessorKey: "modifiedWhen",
|
|
@@ -2206,7 +2270,7 @@ function MyDataTable(_a) {
|
|
|
2206
2270
|
positionActionsColumn: "last",
|
|
2207
2271
|
enableColumnResizing: true,
|
|
2208
2272
|
renderTopToolbarCustomActions: ({ table: table2 }) => {
|
|
2209
|
-
return /* @__PURE__ */
|
|
2273
|
+
return /* @__PURE__ */ jsx35(Group9, { children: renderTopToolbarCustomActions == null ? void 0 : renderTopToolbarCustomActions({ table: table2 }) });
|
|
2210
2274
|
},
|
|
2211
2275
|
layoutMode: "semantic",
|
|
2212
2276
|
displayColumnDefOptions: {
|
|
@@ -2234,9 +2298,9 @@ function MyDataTable(_a) {
|
|
|
2234
2298
|
}
|
|
2235
2299
|
},
|
|
2236
2300
|
localization: MRT_Localization_VI,
|
|
2237
|
-
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */
|
|
2301
|
+
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */ jsx35(Alert, { icon: /* @__PURE__ */ jsx35(IconBug, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" }) : /* @__PURE__ */ jsxs18(Center4, { p: "md", children: [
|
|
2238
2302
|
" ",
|
|
2239
|
-
/* @__PURE__ */
|
|
2303
|
+
/* @__PURE__ */ jsx35(Text6, { c: "gray", fw: "600", size: "15px", fs: "italic", children: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u!" })
|
|
2240
2304
|
] }),
|
|
2241
2305
|
mantineTableContainerProps: { style: { maxHeight: "65vh" } },
|
|
2242
2306
|
enableStickyHeader: true
|
|
@@ -2266,13 +2330,13 @@ function MyDataTable(_a) {
|
|
|
2266
2330
|
useEffect6(() => {
|
|
2267
2331
|
setSelectedRow && setSelectedRow(table.getSelectedRowModel().rows.map((row) => row.original));
|
|
2268
2332
|
}, [table.getState().rowSelection]);
|
|
2269
|
-
return /* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ jsx35("main", { style: { position: "relative", zIndex: 1 }, children: table.getState().isFullScreen ? /* @__PURE__ */ jsx35(Portal, { children: /* @__PURE__ */ jsx35(MantineReactTable, { table }) }) : /* @__PURE__ */ jsx35(MantineReactTable, { table }) });
|
|
2270
2334
|
}
|
|
2271
2335
|
|
|
2272
2336
|
// src/components/Button/ButtonImport/SelectFileModal.tsx
|
|
2273
2337
|
import { Button as Button8, Fieldset as Fieldset2, FileInput as FileInput2, Modal as Modal8, NumberInput, Select as Select2, SimpleGrid as SimpleGrid2 } from "@mantine/core";
|
|
2274
2338
|
import { IconArrowBigRight as IconArrowBigRight2, IconSquareRoundedX as IconSquareRoundedX2 } from "@tabler/icons-react";
|
|
2275
|
-
import { jsx as
|
|
2339
|
+
import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2276
2340
|
function SelectFileModal({ onExportStructure, stack }) {
|
|
2277
2341
|
var _a;
|
|
2278
2342
|
const store = useS_ButtonImport();
|
|
@@ -2283,7 +2347,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2283
2347
|
fullScreen: true
|
|
2284
2348
|
}, stack.register("select-file-page")), {
|
|
2285
2349
|
children: [
|
|
2286
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ jsx36(
|
|
2287
2351
|
FileInput2,
|
|
2288
2352
|
{
|
|
2289
2353
|
value: store.state.file,
|
|
@@ -2294,7 +2358,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2294
2358
|
}
|
|
2295
2359
|
),
|
|
2296
2360
|
/* @__PURE__ */ jsxs19(SimpleGrid2, { cols: { base: 1, md: 2, lg: 2, xl: 4 }, children: [
|
|
2297
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ jsx36(
|
|
2298
2362
|
NumberInput,
|
|
2299
2363
|
{
|
|
2300
2364
|
label: "D\xF2ng ti\xEAu \u0111\u1EC1 b\u1EAFt \u0111\u1EA7u t\u1EEB",
|
|
@@ -2302,7 +2366,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2302
2366
|
onChange: (e4) => store.setProperty("startTitleIndex", e4)
|
|
2303
2367
|
}
|
|
2304
2368
|
),
|
|
2305
|
-
/* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ jsx36(
|
|
2306
2370
|
NumberInput,
|
|
2307
2371
|
{
|
|
2308
2372
|
label: "D\xF2ng d\u1EEF li\u1EC7u b\u1EAFt \u0111\u1EA7u t\u1EEB",
|
|
@@ -2310,7 +2374,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2310
2374
|
onChange: (e4) => store.setProperty("startDataIndex", e4)
|
|
2311
2375
|
}
|
|
2312
2376
|
),
|
|
2313
|
-
/* @__PURE__ */
|
|
2377
|
+
/* @__PURE__ */ jsx36(
|
|
2314
2378
|
Select2,
|
|
2315
2379
|
{
|
|
2316
2380
|
readOnly: true,
|
|
@@ -2319,7 +2383,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2319
2383
|
defaultValue: "100.000"
|
|
2320
2384
|
}
|
|
2321
2385
|
),
|
|
2322
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ jsx36(
|
|
2323
2387
|
Select2,
|
|
2324
2388
|
{
|
|
2325
2389
|
readOnly: true,
|
|
@@ -2329,7 +2393,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2329
2393
|
}
|
|
2330
2394
|
)
|
|
2331
2395
|
] }),
|
|
2332
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ jsx36(Fieldset2, { legend: "Danh s\xE1ch tr\u01B0\u1EDDng th\xF4ng tin trong file d\u1EEF li\u1EC7u", children: store.state.data && /* @__PURE__ */ jsx36(
|
|
2333
2397
|
MyDataTable,
|
|
2334
2398
|
{
|
|
2335
2399
|
columns: store.columns,
|
|
@@ -2337,7 +2401,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2337
2401
|
}
|
|
2338
2402
|
) }),
|
|
2339
2403
|
/* @__PURE__ */ jsxs19(MyFlexEnd, { children: [
|
|
2340
|
-
/* @__PURE__ */
|
|
2404
|
+
/* @__PURE__ */ jsx36(
|
|
2341
2405
|
Button8,
|
|
2342
2406
|
{
|
|
2343
2407
|
color: "teal.8",
|
|
@@ -2345,21 +2409,21 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2345
2409
|
children: "Xu\u1EA5t file c\u1EA5u tr\xFAc"
|
|
2346
2410
|
}
|
|
2347
2411
|
),
|
|
2348
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ jsx36(
|
|
2349
2413
|
Button8,
|
|
2350
2414
|
{
|
|
2351
2415
|
disabled: ((_a = store.state.data) == null ? void 0 : _a.length) == 0,
|
|
2352
2416
|
color: "blue.8",
|
|
2353
|
-
leftSection: /* @__PURE__ */
|
|
2417
|
+
leftSection: /* @__PURE__ */ jsx36(IconArrowBigRight2, {}),
|
|
2354
2418
|
onClick: () => stack.open("select-field-page"),
|
|
2355
2419
|
children: "Ti\u1EBFp t\u1EE5c"
|
|
2356
2420
|
}
|
|
2357
2421
|
),
|
|
2358
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ jsx36(
|
|
2359
2423
|
Button8,
|
|
2360
2424
|
{
|
|
2361
2425
|
color: "red.6",
|
|
2362
|
-
leftSection: /* @__PURE__ */
|
|
2426
|
+
leftSection: /* @__PURE__ */ jsx36(IconSquareRoundedX2, {}),
|
|
2363
2427
|
onClick: stack.closeAll,
|
|
2364
2428
|
children: "\u0110\xF3ng"
|
|
2365
2429
|
}
|
|
@@ -2371,7 +2435,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2371
2435
|
}
|
|
2372
2436
|
|
|
2373
2437
|
// src/components/Button/ButtonImport/MyButtonImport.tsx
|
|
2374
|
-
import { Fragment as Fragment10, jsx as
|
|
2438
|
+
import { Fragment as Fragment10, jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2375
2439
|
function MyButtonImport({
|
|
2376
2440
|
onExportStructure,
|
|
2377
2441
|
onImport
|
|
@@ -2379,10 +2443,10 @@ function MyButtonImport({
|
|
|
2379
2443
|
const stack = useModalsStack3(["select-file-page", "select-field-page", "implement-page"]);
|
|
2380
2444
|
const store = useS_ButtonImport();
|
|
2381
2445
|
return /* @__PURE__ */ jsxs20(Fragment10, { children: [
|
|
2382
|
-
/* @__PURE__ */
|
|
2446
|
+
/* @__PURE__ */ jsx37(Button9, { color: "teal.8", onClick: () => stack.open("select-file-page"), leftSection: /* @__PURE__ */ jsx37(IconFileImport3, {}), title: "Import", children: "Import" }),
|
|
2383
2447
|
/* @__PURE__ */ jsxs20(Modal9.Stack, { children: [
|
|
2384
|
-
/* @__PURE__ */
|
|
2385
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ jsx37(SelectFileModal, { stack, onExportStructure }),
|
|
2449
|
+
/* @__PURE__ */ jsx37(SelectFieldModal, { stack, onImport: () => onImport(store.getDataFinal()) })
|
|
2386
2450
|
] })
|
|
2387
2451
|
] });
|
|
2388
2452
|
}
|
|
@@ -2390,7 +2454,7 @@ function MyButtonImport({
|
|
|
2390
2454
|
// src/components/Button/ButtonModal/AQSelectTableByOpenModal.tsx
|
|
2391
2455
|
import { Button as Button10, Fieldset as Fieldset3, Modal as Modal10 } from "@mantine/core";
|
|
2392
2456
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
|
2393
|
-
import { Fragment as Fragment11, jsx as
|
|
2457
|
+
import { Fragment as Fragment11, jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2394
2458
|
function AQSelectTableByOpenModal(_a) {
|
|
2395
2459
|
var _b = _a, {
|
|
2396
2460
|
setSelectedData,
|
|
@@ -2419,7 +2483,7 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
2419
2483
|
]);
|
|
2420
2484
|
const disclosure = useDisclosure11(false);
|
|
2421
2485
|
return /* @__PURE__ */ jsxs21(Fragment11, { children: [
|
|
2422
|
-
/* @__PURE__ */
|
|
2486
|
+
/* @__PURE__ */ jsx38(
|
|
2423
2487
|
Button10,
|
|
2424
2488
|
__spreadProps(__spreadValues({
|
|
2425
2489
|
onClick: disclosure[1].open
|
|
@@ -2427,7 +2491,7 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
2427
2491
|
children: label ? label : `Ch\u1ECDn t\u1EEB danh s\xE1ch`
|
|
2428
2492
|
})
|
|
2429
2493
|
),
|
|
2430
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ jsx38(
|
|
2431
2495
|
Modal10,
|
|
2432
2496
|
{
|
|
2433
2497
|
fullScreen,
|
|
@@ -2435,11 +2499,11 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
2435
2499
|
title,
|
|
2436
2500
|
opened: disclosure == null ? void 0 : disclosure[0],
|
|
2437
2501
|
onClose: disclosure[1].close,
|
|
2438
|
-
children: /* @__PURE__ */
|
|
2502
|
+
children: /* @__PURE__ */ jsx38(MyFlexColumn, { children: /* @__PURE__ */ jsx38(Fieldset3, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: /* @__PURE__ */ jsx38(
|
|
2439
2503
|
MyDataTable,
|
|
2440
2504
|
__spreadValues({
|
|
2441
2505
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
2442
|
-
return /* @__PURE__ */
|
|
2506
|
+
return /* @__PURE__ */ jsx38(Button10, { onClick: () => {
|
|
2443
2507
|
setSelectedData(table.getSelectedRowModel().rows.map((row) => row.original));
|
|
2444
2508
|
closeAfterSelect && disclosure[1].close();
|
|
2445
2509
|
}, children: "Ch\u1ECDn" });
|
|
@@ -2459,7 +2523,7 @@ import { Button as Button11 } from "@mantine/core";
|
|
|
2459
2523
|
import { IconPrinter as IconPrinter5 } from "@tabler/icons-react";
|
|
2460
2524
|
import { useRef as useRef3 } from "react";
|
|
2461
2525
|
import { useReactToPrint as useReactToPrint2 } from "react-to-print";
|
|
2462
|
-
import { Fragment as Fragment12, jsx as
|
|
2526
|
+
import { Fragment as Fragment12, jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2463
2527
|
function MyButtonPrintPDF2(_a) {
|
|
2464
2528
|
var _b = _a, { contentToPrint, children, autoPadding = true } = _b, rest = __objRest(_b, ["contentToPrint", "children", "autoPadding"]);
|
|
2465
2529
|
const printRef = useRef3(null);
|
|
@@ -2474,23 +2538,23 @@ function MyButtonPrintPDF2(_a) {
|
|
|
2474
2538
|
handlePrint();
|
|
2475
2539
|
}
|
|
2476
2540
|
return /* @__PURE__ */ jsxs22(Fragment12, { children: [
|
|
2477
|
-
/* @__PURE__ */
|
|
2478
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ jsx39("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx39("div", { ref: printRef, style: { padding: autoPadding ? "2cm 2cm 2cm 3cm" : void 0, fontFamily: '"Times New Roman", Times, serif' }, children: contentToPrint }) }),
|
|
2542
|
+
/* @__PURE__ */ jsx39(Button11, __spreadProps(__spreadValues({ color: "orange", onClick: handleClick, leftSection: /* @__PURE__ */ jsx39(IconPrinter5, {}) }, rest), { children }))
|
|
2479
2543
|
] });
|
|
2480
2544
|
}
|
|
2481
2545
|
|
|
2482
2546
|
// src/components/Checkbox/MyCheckbox.tsx
|
|
2483
2547
|
import { Checkbox } from "@mantine/core";
|
|
2484
|
-
import { jsx as
|
|
2548
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2485
2549
|
function MyCheckbox(_a) {
|
|
2486
2550
|
var rest = __objRest(_a, []);
|
|
2487
|
-
return /* @__PURE__ */
|
|
2551
|
+
return /* @__PURE__ */ jsx40(Checkbox, __spreadValues({}, rest));
|
|
2488
2552
|
}
|
|
2489
2553
|
|
|
2490
2554
|
// src/components/Layouts/HtmlWrapper/MyHtmlWrapper.tsx
|
|
2491
2555
|
import { Typography } from "@mantine/core";
|
|
2492
2556
|
import pako from "pako";
|
|
2493
|
-
import { jsx as
|
|
2557
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2494
2558
|
function MyHtmlWrapper(_a) {
|
|
2495
2559
|
var _b = _a, { html, mah, zip = false } = _b, rest = __objRest(_b, ["html", "mah", "zip"]);
|
|
2496
2560
|
const extractHtmlFromZip = () => {
|
|
@@ -2499,7 +2563,7 @@ function MyHtmlWrapper(_a) {
|
|
|
2499
2563
|
const cleanedHtml = decompressedData == null ? void 0 : decompressedData.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
|
2500
2564
|
return cleanedHtml.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
|
2501
2565
|
};
|
|
2502
|
-
return /* @__PURE__ */
|
|
2566
|
+
return /* @__PURE__ */ jsx41(Typography, { children: /* @__PURE__ */ jsx41(
|
|
2503
2567
|
"div",
|
|
2504
2568
|
{
|
|
2505
2569
|
dangerouslySetInnerHTML: {
|
|
@@ -2511,7 +2575,7 @@ function MyHtmlWrapper(_a) {
|
|
|
2511
2575
|
|
|
2512
2576
|
// src/components/Button/ButtonPrintPDFTable/MyButtonPrintTablePDF.tsx
|
|
2513
2577
|
import { Box, Table as Table2 } from "@mantine/core";
|
|
2514
|
-
import { jsx as
|
|
2578
|
+
import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2515
2579
|
function MyButtonPrintTablePDF(_a) {
|
|
2516
2580
|
var _b = _a, {
|
|
2517
2581
|
printConfig,
|
|
@@ -2538,7 +2602,7 @@ function MyButtonPrintTablePDF(_a) {
|
|
|
2538
2602
|
const rows = data == null ? void 0 : data.map((item, index) => {
|
|
2539
2603
|
if (!(printConfig == null ? void 0 : printConfig.fields)) return null;
|
|
2540
2604
|
return /* @__PURE__ */ jsxs23(Table2.Tr, { children: [
|
|
2541
|
-
printConfig.showRowNumbers && /* @__PURE__ */
|
|
2605
|
+
printConfig.showRowNumbers && /* @__PURE__ */ jsx42(Table2.Td, { ta: "center", px: "xs", style: { border: "1px solid lightgray" }, children: index + 1 }),
|
|
2542
2606
|
printConfig.fields.map((field) => {
|
|
2543
2607
|
let value = item[field.fieldName];
|
|
2544
2608
|
if (field.formatFunction) {
|
|
@@ -2548,30 +2612,30 @@ function MyButtonPrintTablePDF(_a) {
|
|
|
2548
2612
|
}
|
|
2549
2613
|
const alignment = field.isCenter === false ? "left" : "center";
|
|
2550
2614
|
if (typeof value === "string" && (value.includes("<") || value.includes("<"))) {
|
|
2551
|
-
return /* @__PURE__ */
|
|
2615
|
+
return /* @__PURE__ */ jsx42(
|
|
2552
2616
|
Table2.Td,
|
|
2553
2617
|
{
|
|
2554
2618
|
px: "xs",
|
|
2555
2619
|
ta: alignment,
|
|
2556
2620
|
style: { border: "1px solid lightgray" },
|
|
2557
|
-
children: /* @__PURE__ */
|
|
2621
|
+
children: /* @__PURE__ */ jsx42(MyHtmlWrapper, { html: value })
|
|
2558
2622
|
},
|
|
2559
2623
|
field.fieldName
|
|
2560
2624
|
);
|
|
2561
2625
|
}
|
|
2562
2626
|
if (value === "true" || value === "false") {
|
|
2563
|
-
return /* @__PURE__ */
|
|
2627
|
+
return /* @__PURE__ */ jsx42(
|
|
2564
2628
|
Table2.Td,
|
|
2565
2629
|
{
|
|
2566
2630
|
ta: alignment,
|
|
2567
2631
|
px: "xs",
|
|
2568
2632
|
style: { border: "1px solid lightgray" },
|
|
2569
|
-
children: /* @__PURE__ */
|
|
2633
|
+
children: /* @__PURE__ */ jsx42(MyCheckbox, { type: "checkbox", checked: value === "true", readOnly: true })
|
|
2570
2634
|
},
|
|
2571
2635
|
field.fieldName
|
|
2572
2636
|
);
|
|
2573
2637
|
}
|
|
2574
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ jsx42(
|
|
2575
2639
|
Table2.Td,
|
|
2576
2640
|
{
|
|
2577
2641
|
ta: alignment,
|
|
@@ -2600,13 +2664,13 @@ function MyButtonPrintTablePDF(_a) {
|
|
|
2600
2664
|
"Ng\xE0y in: ",
|
|
2601
2665
|
formattedDate
|
|
2602
2666
|
] }),
|
|
2603
|
-
/* @__PURE__ */
|
|
2667
|
+
/* @__PURE__ */ jsx42("h2", { style: { textAlign: "center", fontSize: "24px", fontWeight: "bold", marginBottom: "20px" }, children: tableTitle }),
|
|
2604
2668
|
/* @__PURE__ */ jsxs23(Table2, { withColumnBorders: true, highlightOnHover: true, style: { border: "1px solid lightgray" }, children: [
|
|
2605
|
-
/* @__PURE__ */
|
|
2606
|
-
printConfig.showRowNumbers && /* @__PURE__ */
|
|
2669
|
+
/* @__PURE__ */ jsx42(Table2.Thead, { children: /* @__PURE__ */ jsxs23(Table2.Tr, { children: [
|
|
2670
|
+
printConfig.showRowNumbers && /* @__PURE__ */ jsx42(Table2.Th, { style: { border: "1px solid lightgray" }, w: "10%", ta: "center", px: "xs", children: "STT" }),
|
|
2607
2671
|
printConfig.fields.map((field) => {
|
|
2608
2672
|
const alignment = field.isCenter === false ? "left" : "center";
|
|
2609
|
-
return /* @__PURE__ */
|
|
2673
|
+
return /* @__PURE__ */ jsx42(
|
|
2610
2674
|
Table2.Th,
|
|
2611
2675
|
{
|
|
2612
2676
|
style: { border: "1px solid lightgray" },
|
|
@@ -2618,11 +2682,11 @@ function MyButtonPrintTablePDF(_a) {
|
|
|
2618
2682
|
);
|
|
2619
2683
|
})
|
|
2620
2684
|
] }) }),
|
|
2621
|
-
/* @__PURE__ */
|
|
2685
|
+
/* @__PURE__ */ jsx42(Table2.Tbody, { children: rows })
|
|
2622
2686
|
] })
|
|
2623
2687
|
] });
|
|
2624
2688
|
};
|
|
2625
|
-
return /* @__PURE__ */
|
|
2689
|
+
return /* @__PURE__ */ jsx42(
|
|
2626
2690
|
MyButtonPrintPDF2,
|
|
2627
2691
|
__spreadValues({
|
|
2628
2692
|
contentToPrint: renderContent()
|
|
@@ -2634,11 +2698,11 @@ function MyButtonPrintTablePDF(_a) {
|
|
|
2634
2698
|
import { ActionIcon as ActionIcon9 } from "@mantine/core";
|
|
2635
2699
|
import { IconArrowBack } from "@tabler/icons-react";
|
|
2636
2700
|
import { useRouter as useRouter2 } from "next/navigation.js";
|
|
2637
|
-
import { jsx as
|
|
2701
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2638
2702
|
function MyButtonRouterBack(_a) {
|
|
2639
2703
|
var _b = _a, { url, label } = _b, rest = __objRest(_b, ["url", "label"]);
|
|
2640
2704
|
const router = useRouter2();
|
|
2641
|
-
return /* @__PURE__ */
|
|
2705
|
+
return /* @__PURE__ */ jsx43(
|
|
2642
2706
|
ActionIcon9,
|
|
2643
2707
|
__spreadProps(__spreadValues({
|
|
2644
2708
|
size: "xl",
|
|
@@ -2651,7 +2715,7 @@ function MyButtonRouterBack(_a) {
|
|
|
2651
2715
|
router.back();
|
|
2652
2716
|
}
|
|
2653
2717
|
}, rest), {
|
|
2654
|
-
children: /* @__PURE__ */
|
|
2718
|
+
children: /* @__PURE__ */ jsx43(IconArrowBack, { stroke: 2 })
|
|
2655
2719
|
})
|
|
2656
2720
|
);
|
|
2657
2721
|
}
|
|
@@ -2660,7 +2724,7 @@ function MyButtonRouterBack(_a) {
|
|
|
2660
2724
|
import {
|
|
2661
2725
|
ActionIcon as ActionIcon10,
|
|
2662
2726
|
Button as Button12,
|
|
2663
|
-
Group as
|
|
2727
|
+
Group as Group10,
|
|
2664
2728
|
LoadingOverlay,
|
|
2665
2729
|
Modal as Modal11,
|
|
2666
2730
|
Paper as Paper3,
|
|
@@ -2671,7 +2735,7 @@ import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
|
|
2671
2735
|
import { IconLivePhoto as IconLivePhoto3, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
|
|
2672
2736
|
import { useQuery } from "@tanstack/react-query";
|
|
2673
2737
|
import { useEffect as useEffect7, useState as useState8 } from "react";
|
|
2674
|
-
import { Fragment as Fragment13, jsx as
|
|
2738
|
+
import { Fragment as Fragment13, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2675
2739
|
function MyButtonViewPDF({
|
|
2676
2740
|
id,
|
|
2677
2741
|
modalSize = "80%",
|
|
@@ -2722,8 +2786,8 @@ function MyButtonViewPDF({
|
|
|
2722
2786
|
}
|
|
2723
2787
|
}, [opened]);
|
|
2724
2788
|
return /* @__PURE__ */ jsxs24(Fragment13, { children: [
|
|
2725
|
-
/* @__PURE__ */
|
|
2726
|
-
/* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ jsx44(Tooltip5, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx44(ActionIcon10, { onClick: open, children: /* @__PURE__ */ jsx44(IconLivePhoto3, {}) }) : /* @__PURE__ */ jsx44(Button12, { color: "cyan", onClick: open, leftSection: /* @__PURE__ */ jsx44(IconLivePhoto3, {}), children: label }) }),
|
|
2790
|
+
/* @__PURE__ */ jsx44(
|
|
2727
2791
|
Modal11,
|
|
2728
2792
|
{
|
|
2729
2793
|
fullScreen: fullscreen,
|
|
@@ -2733,21 +2797,21 @@ function MyButtonViewPDF({
|
|
|
2733
2797
|
setBlobUrl(null);
|
|
2734
2798
|
},
|
|
2735
2799
|
size: modalSize,
|
|
2736
|
-
title: /* @__PURE__ */ jsxs24(
|
|
2737
|
-
/* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
2800
|
+
title: /* @__PURE__ */ jsxs24(Group10, { children: [
|
|
2801
|
+
/* @__PURE__ */ jsx44(Text7, { children: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp" }),
|
|
2802
|
+
/* @__PURE__ */ jsx44(
|
|
2739
2803
|
ActionIcon10,
|
|
2740
2804
|
{
|
|
2741
2805
|
onClick: () => {
|
|
2742
2806
|
setFullscreen(!fullscreen);
|
|
2743
2807
|
setHeight(fullscreen ? "80vh" : "90vh");
|
|
2744
2808
|
},
|
|
2745
|
-
children: fullscreen ? /* @__PURE__ */
|
|
2809
|
+
children: fullscreen ? /* @__PURE__ */ jsx44(IconMinimize3, {}) : /* @__PURE__ */ jsx44(IconMaximize3, {})
|
|
2746
2810
|
}
|
|
2747
2811
|
)
|
|
2748
2812
|
] }),
|
|
2749
2813
|
children: /* @__PURE__ */ jsxs24(Paper3, { h: height, p: "lg", pos: "relative", children: [
|
|
2750
|
-
/* @__PURE__ */
|
|
2814
|
+
/* @__PURE__ */ jsx44(
|
|
2751
2815
|
LoadingOverlay,
|
|
2752
2816
|
{
|
|
2753
2817
|
visible: query.isLoading || !blobUrl && !!query.data,
|
|
@@ -2755,7 +2819,7 @@ function MyButtonViewPDF({
|
|
|
2755
2819
|
overlayProps: { radius: "sm", blur: 2 }
|
|
2756
2820
|
}
|
|
2757
2821
|
),
|
|
2758
|
-
blobUrl || src ? /* @__PURE__ */
|
|
2822
|
+
blobUrl || src ? /* @__PURE__ */ jsx44(
|
|
2759
2823
|
"iframe",
|
|
2760
2824
|
{
|
|
2761
2825
|
src: blobUrl != null ? blobUrl : src,
|
|
@@ -2764,7 +2828,7 @@ function MyButtonViewPDF({
|
|
|
2764
2828
|
allow: "fullscreen",
|
|
2765
2829
|
style: { border: "none" }
|
|
2766
2830
|
}
|
|
2767
|
-
) : /* @__PURE__ */
|
|
2831
|
+
) : /* @__PURE__ */ jsx44(Text7, {})
|
|
2768
2832
|
] })
|
|
2769
2833
|
}
|
|
2770
2834
|
)
|
|
@@ -7431,7 +7495,7 @@ import { ScheduleXCalendar, useNextCalendarApp } from "@schedule-x/react";
|
|
|
7431
7495
|
import { Paper as Paper4, Text as Text8 } from "@mantine/core";
|
|
7432
7496
|
import "@schedule-x/theme-default/dist/index.css";
|
|
7433
7497
|
import { useEffect as useEffect8 } from "react";
|
|
7434
|
-
import { jsx as
|
|
7498
|
+
import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
7435
7499
|
function MyCalendar() {
|
|
7436
7500
|
const plugins = [createEventsServicePlugin(), createEventModalPlugin()];
|
|
7437
7501
|
const calendar = useNextCalendarApp({
|
|
@@ -7505,16 +7569,16 @@ function MyCalendar() {
|
|
|
7505
7569
|
useEffect8(() => {
|
|
7506
7570
|
calendar == null ? void 0 : calendar.events.getAll();
|
|
7507
7571
|
}, []);
|
|
7508
|
-
return /* @__PURE__ */
|
|
7572
|
+
return /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45(ScheduleXCalendar, { calendarApp: calendar, customComponents: {
|
|
7509
7573
|
timeGridEvent: ({ calendarEvent }) => {
|
|
7510
7574
|
console.log(calendarEvent);
|
|
7511
|
-
return /* @__PURE__ */
|
|
7575
|
+
return /* @__PURE__ */ jsx45(Paper4, { h: "100%", bg: calendarEvent.laLichThi ? "violet.2" : "blue.2", p: 4, children: /* @__PURE__ */ jsxs25(MyFlexColumn, { gap: 1, children: [
|
|
7512
7576
|
/* @__PURE__ */ jsxs25(Text8, { size: "sm", fw: "bold", children: [
|
|
7513
7577
|
calendarEvent.laLichThi ? "(Thi) " : "(H\u1ECDc) ",
|
|
7514
7578
|
calendarEvent.title
|
|
7515
7579
|
] }),
|
|
7516
|
-
calendarEvent.laLichThi == false && /* @__PURE__ */
|
|
7517
|
-
/* @__PURE__ */
|
|
7580
|
+
calendarEvent.laLichThi == false && /* @__PURE__ */ jsx45(Text8, { size: "sm", children: calendarEvent.giangvien }),
|
|
7581
|
+
/* @__PURE__ */ jsx45(Text8, { size: "sm", children: calendarEvent.location })
|
|
7518
7582
|
] }) });
|
|
7519
7583
|
}
|
|
7520
7584
|
// eventModal: ({ calendarEvent }) => {
|
|
@@ -7527,13 +7591,6 @@ function MyCalendar() {
|
|
|
7527
7591
|
} }) });
|
|
7528
7592
|
}
|
|
7529
7593
|
|
|
7530
|
-
// src/components/CenterFull/MyCenterFull.tsx
|
|
7531
|
-
import { Center as Center4, Group as Group10 } from "@mantine/core";
|
|
7532
|
-
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
7533
|
-
function MyCenterFull({ children }) {
|
|
7534
|
-
return /* @__PURE__ */ jsx45(Center4, { w: "100%", children: /* @__PURE__ */ jsx45(Group10, { children }) });
|
|
7535
|
-
}
|
|
7536
|
-
|
|
7537
7594
|
// src/components/Layouts/FlexRow/MyFlexRow.tsx
|
|
7538
7595
|
import { Flex as Flex3 } from "@mantine/core";
|
|
7539
7596
|
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
@@ -7825,7 +7882,7 @@ function AQStatCard2({
|
|
|
7825
7882
|
import { useEffect as useEffect9 } from "react";
|
|
7826
7883
|
|
|
7827
7884
|
// src/components/Layouts/BasicAppShell/useStore_BasicAppShell.ts
|
|
7828
|
-
var useStore2 =
|
|
7885
|
+
var useStore2 = createGenericStore({
|
|
7829
7886
|
initialState: {
|
|
7830
7887
|
menuCode: "",
|
|
7831
7888
|
moduleCode: "Module code",
|
|
@@ -10278,7 +10335,7 @@ import { IconSearch as IconSearch4 } from "@tabler/icons-react";
|
|
|
10278
10335
|
import { useEffect as useEffect20, useMemo as useMemo9, useState as useState18 } from "react";
|
|
10279
10336
|
|
|
10280
10337
|
// src/modules-features/admin/core/accountManagement/useStore_AccountManagement.ts
|
|
10281
|
-
var useStore3 =
|
|
10338
|
+
var useStore3 = createGenericStore2({
|
|
10282
10339
|
initialState: {}
|
|
10283
10340
|
});
|
|
10284
10341
|
function useStore_AccountManagement() {
|
|
@@ -12661,7 +12718,7 @@ function DepartmentCreateOrUpdateFeature({ mode, data }) {
|
|
|
12661
12718
|
const isCreateMode = mode === "create";
|
|
12662
12719
|
const isUpdateMode = mode === "update";
|
|
12663
12720
|
const form = useForm21({
|
|
12664
|
-
initialValues: isCreateMode ? getDefaultInitialValues() : data
|
|
12721
|
+
initialValues: isCreateMode ? getDefaultInitialValues() : __spreadProps(__spreadValues({}, data), { note: "" }),
|
|
12665
12722
|
validate: __spreadValues({
|
|
12666
12723
|
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
12667
12724
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
@@ -14338,7 +14395,7 @@ import { useEffect as useEffect28 } from "react";
|
|
|
14338
14395
|
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
|
14339
14396
|
|
|
14340
14397
|
// src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
|
|
14341
|
-
var useStore4 =
|
|
14398
|
+
var useStore4 = createGenericStore({
|
|
14342
14399
|
initialState: {}
|
|
14343
14400
|
});
|
|
14344
14401
|
function useS_moduleConfig() {
|
|
@@ -16504,7 +16561,7 @@ import { useRouter as useRouter4 } from "next/navigation.js";
|
|
|
16504
16561
|
import { useEffect as useEffect36 } from "react";
|
|
16505
16562
|
|
|
16506
16563
|
// src/modules-features/authenticate/useStore_Authenticate.ts
|
|
16507
|
-
var useStore5 =
|
|
16564
|
+
var useStore5 = createGenericStore({
|
|
16508
16565
|
initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0, roleIds: [] },
|
|
16509
16566
|
storageKey: "useStore_Authenticate"
|
|
16510
16567
|
});
|
|
@@ -17329,7 +17386,7 @@ import Link4 from "next/link.js";
|
|
|
17329
17386
|
import classes from "./css.module-4ICLUKPO.module.css";
|
|
17330
17387
|
|
|
17331
17388
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenuStore.ts
|
|
17332
|
-
var useStore6 =
|
|
17389
|
+
var useStore6 = createGenericStore({
|
|
17333
17390
|
initialState: { name: "\u0110\u0103ng k\xFD kh\xF3a h\u1ECDc" },
|
|
17334
17391
|
storageKey: "HeaderMegaMenuStore"
|
|
17335
17392
|
});
|
|
@@ -18708,9 +18765,9 @@ export {
|
|
|
18708
18765
|
MyFlexColumn2,
|
|
18709
18766
|
MyButtonCreateUpdate,
|
|
18710
18767
|
CustomThemeIconSquareCheck,
|
|
18768
|
+
MyCenterFull,
|
|
18711
18769
|
MyDataTable,
|
|
18712
18770
|
MyDataTableSelectOne,
|
|
18713
|
-
MyCenterFull,
|
|
18714
18771
|
MyDataTableStagedChanges,
|
|
18715
18772
|
MyFlexIconTitle,
|
|
18716
18773
|
MyInfoBox,
|
|
@@ -8,9 +8,10 @@ import { type_mantineSize } from '../types/index.mjs';
|
|
|
8
8
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
|
9
9
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
|
10
10
|
import { I as I_BasicAppShell_LinkItem, B as BasicAppShellProps } from '../types-km2g-xx5.mjs';
|
|
11
|
-
export {
|
|
11
|
+
export { g as MyButtonDeleteList, c as MyButtonDeleteListProps } from '../MyButtonDeleteList-BcW55zHU.mjs';
|
|
12
12
|
import { I as IExcelColumnConfig } from '../utils_excel-CuudSzBR.mjs';
|
|
13
13
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
|
14
|
+
export { M as MyColumnDef, c as MyDataTable, b as MyDataTableInternalProps, a as MyDataTableProps, P as PaginationState } from '../MyDataTable-C_jIdiUh.mjs';
|
|
14
15
|
import { DateInputProps } from '@mantine/dates';
|
|
15
16
|
import { RichTextEditorProps } from '@mantine/tiptap';
|
|
16
17
|
import { EditorOptions } from '@tiptap/react';
|
|
@@ -21,8 +22,8 @@ import { CalendarEventExternal } from '@schedule-x/calendar';
|
|
|
21
22
|
import '@tanstack/react-query';
|
|
22
23
|
import '../type_mutation-CCtnyeP3.mjs';
|
|
23
24
|
import '../IBaseEntity-BVJRftBU.mjs';
|
|
24
|
-
import '@tanstack/react-table';
|
|
25
25
|
import 'exceljs';
|
|
26
|
+
import '@tanstack/react-table';
|
|
26
27
|
|
|
27
28
|
declare const MyBoxesCore: ({ className, ...rest }: {
|
|
28
29
|
className?: string;
|
|
@@ -69,14 +69,14 @@ import {
|
|
|
69
69
|
useHeaderMegaMenuStore,
|
|
70
70
|
useS_ButtonImport,
|
|
71
71
|
useStore_BasicAppShell
|
|
72
|
-
} from "../chunk-
|
|
73
|
-
import "../chunk-7ZI7IOEP.mjs";
|
|
72
|
+
} from "../chunk-EPA3QYP7.mjs";
|
|
74
73
|
import "../chunk-WW55EZ4B.mjs";
|
|
75
74
|
import "../chunk-KGBXMHKR.mjs";
|
|
76
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-7ZI7IOEP.mjs";
|
|
77
76
|
import "../chunk-NYAWQRB7.mjs";
|
|
78
77
|
import "../chunk-BTITP4TN.mjs";
|
|
79
|
-
import "../chunk-
|
|
78
|
+
import "../chunk-OHAOJE5F.mjs";
|
|
79
|
+
import "../chunk-VFTEXXA7.mjs";
|
|
80
80
|
import "../chunk-Z76CSZFI.mjs";
|
|
81
81
|
import "../chunk-WZ6PXGGC.mjs";
|
|
82
82
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ButtonProps, ModalProps, ScrollAreaAutosizeProps, TooltipProps, TextProps, PaperProps, GroupProps, ThemeIconProps, BadgeProps, AutocompleteProps, NumberInputProps, TextInputProps, FileInputProps, InputWrapperProps, FlexProps, TabsProps, TabsTabProps, MantineColor } from '@mantine/core';
|
|
3
3
|
import { UseFormReturnType } from '@mantine/form';
|
|
4
4
|
import { ReactNode, ComponentProps } from 'react';
|
|
5
|
-
import { M as MyButtonModalProps, a as MyActionIconProps, b as MyButtonProps, c as
|
|
6
|
-
export {
|
|
5
|
+
import { M as MyButtonModalProps, a as MyActionIconProps, b as MyButtonProps, c as MyButtonDeleteListProps } from '../MyButtonDeleteList-BcW55zHU.mjs';
|
|
6
|
+
export { d as MyActionIcon, e as MyButton, f as MyButtonModal } from '../MyButtonDeleteList-BcW55zHU.mjs';
|
|
7
7
|
import { UseReactToPrintOptions } from 'react-to-print';
|
|
8
8
|
import { I as IAQFileDetail } from '../utils_file-JlhzjLGS.mjs';
|
|
9
9
|
import { useDisclosure } from '@mantine/hooks';
|
|
@@ -11,6 +11,7 @@ import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMuta
|
|
|
11
11
|
import { AxiosResponse } from 'axios';
|
|
12
12
|
import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
13
13
|
import { MRT_RowData, MRT_ColumnDef, MRT_TableInstance } from 'mantine-react-table';
|
|
14
|
+
import { a as MyDataTableProps } from '../MyDataTable-C_jIdiUh.mjs';
|
|
14
15
|
import { TablerIcon } from '@tabler/icons-react';
|
|
15
16
|
import { RichTextEditorProps, RichTextEditorToolbarProps, RichTextEditorContentProps } from '@mantine/tiptap';
|
|
16
17
|
import { UseEditorOptions } from '@tiptap/react';
|
|
@@ -18,9 +19,9 @@ import { M as MySelectProps } from '../MySelect-CEgpggSF.mjs';
|
|
|
18
19
|
export { a as MySelect } from '../MySelect-CEgpggSF.mjs';
|
|
19
20
|
import { I as IBaseEntity } from '../IBaseEntity-BVJRftBU.mjs';
|
|
20
21
|
import { M as MyReactQueryProps } from '../useMyReactQuery-CqXIs4-6.mjs';
|
|
21
|
-
import '@tanstack/react-table';
|
|
22
22
|
import '../type_action-hMF6_2Mr.mjs';
|
|
23
23
|
import '../type_mutation-CCtnyeP3.mjs';
|
|
24
|
+
import '@tanstack/react-table';
|
|
24
25
|
|
|
25
26
|
declare function CustomSwitchTheme(): react_jsx_runtime.JSX.Element | null;
|
|
26
27
|
|
package/dist/core/index.mjs
CHANGED
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
MyStatsCard,
|
|
35
35
|
MyTextInput2 as MyTextInput,
|
|
36
36
|
MyWeeklySessionSchedulerPicker
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-7ZI7IOEP.mjs";
|
|
37
|
+
} from "../chunk-EPA3QYP7.mjs";
|
|
39
38
|
import "../chunk-WW55EZ4B.mjs";
|
|
40
39
|
import "../chunk-KGBXMHKR.mjs";
|
|
41
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-7ZI7IOEP.mjs";
|
|
42
41
|
import "../chunk-NYAWQRB7.mjs";
|
|
43
42
|
import "../chunk-BTITP4TN.mjs";
|
|
44
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-OHAOJE5F.mjs";
|
|
44
|
+
import "../chunk-VFTEXXA7.mjs";
|
|
45
45
|
import "../chunk-Z76CSZFI.mjs";
|
|
46
46
|
import "../chunk-WZ6PXGGC.mjs";
|
|
47
47
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/enum/index.mjs
CHANGED
|
@@ -97,14 +97,14 @@ import {
|
|
|
97
97
|
MailTemplateDeleteButton,
|
|
98
98
|
useS_moduleConfig,
|
|
99
99
|
useStore_Authenticate
|
|
100
|
-
} from "../chunk-
|
|
101
|
-
import "../chunk-7ZI7IOEP.mjs";
|
|
100
|
+
} from "../chunk-EPA3QYP7.mjs";
|
|
102
101
|
import "../chunk-WW55EZ4B.mjs";
|
|
103
102
|
import "../chunk-KGBXMHKR.mjs";
|
|
104
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-7ZI7IOEP.mjs";
|
|
105
104
|
import "../chunk-NYAWQRB7.mjs";
|
|
106
105
|
import "../chunk-BTITP4TN.mjs";
|
|
107
|
-
import "../chunk-
|
|
106
|
+
import "../chunk-OHAOJE5F.mjs";
|
|
107
|
+
import "../chunk-VFTEXXA7.mjs";
|
|
108
108
|
import "../chunk-Z76CSZFI.mjs";
|
|
109
109
|
import "../chunk-WZ6PXGGC.mjs";
|
|
110
110
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import "../chunk-NMY3UEY5.mjs";
|
|
2
1
|
import {
|
|
3
2
|
MySelect
|
|
4
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-EPA3QYP7.mjs";
|
|
4
|
+
import "../chunk-WW55EZ4B.mjs";
|
|
5
|
+
import "../chunk-KGBXMHKR.mjs";
|
|
5
6
|
import {
|
|
6
7
|
utils_converter
|
|
7
8
|
} from "../chunk-7ZI7IOEP.mjs";
|
|
8
|
-
import "../chunk-WW55EZ4B.mjs";
|
|
9
|
-
import "../chunk-KGBXMHKR.mjs";
|
|
10
|
-
import "../chunk-C74M5VPE.mjs";
|
|
11
9
|
import "../chunk-NYAWQRB7.mjs";
|
|
12
10
|
import "../chunk-BTITP4TN.mjs";
|
|
11
|
+
import "../chunk-OHAOJE5F.mjs";
|
|
13
12
|
import {
|
|
14
13
|
enumLabel_gender,
|
|
15
14
|
enum_gender
|
|
16
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-VFTEXXA7.mjs";
|
|
17
16
|
import "../chunk-Z76CSZFI.mjs";
|
|
18
17
|
import "../chunk-WZ6PXGGC.mjs";
|
|
19
18
|
import {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ComboboxData } from '@mantine/core';
|
|
2
2
|
export { I as IExcelColumnConfig, n as normalizeDate, u as utils_excel } from '../utils_excel-CuudSzBR.mjs';
|
|
3
|
-
import { MRT_RowData
|
|
3
|
+
import { MRT_RowData } from 'mantine-react-table';
|
|
4
|
+
import { M as MyColumnDef } from '../MyDataTable-C_jIdiUh.mjs';
|
|
4
5
|
import 'exceljs';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
7
|
+
import '@tanstack/react-table';
|
|
5
8
|
|
|
6
9
|
declare const utils_build: {
|
|
7
10
|
createEnumKeyMap<T extends Record<string, number | string>>(enumObj: T): Record<Extract<T[keyof T], number>, keyof T>;
|
|
@@ -22,8 +25,8 @@ declare const utils_file: {
|
|
|
22
25
|
};
|
|
23
26
|
|
|
24
27
|
declare const utils_mantineReactTable: {
|
|
25
|
-
filterColumnsByVisibleKeys<T extends MRT_RowData>(allColumns:
|
|
26
|
-
sortColumnsByKeyOrder<T extends MRT_RowData>(columns:
|
|
28
|
+
filterColumnsByVisibleKeys<T extends MRT_RowData>(allColumns: MyColumnDef<T>[], visibleFields?: (keyof T)[]): MyColumnDef<T>[];
|
|
29
|
+
sortColumnsByKeyOrder<T extends MRT_RowData>(columns: MyColumnDef<T>[], orderedKeys?: (keyof T)[]): MyColumnDef<T>[];
|
|
27
30
|
};
|
|
28
31
|
|
|
29
32
|
declare const utils_text: {
|
package/package.json
CHANGED
package/dist/chunk-NMY3UEY5.mjs
DELETED
|
File without changes
|
|
File without changes
|