aq-fe-framework 0.1.82 → 0.1.83
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/{chunk-WNGACHRD.mjs → chunk-BNC4S63Y.mjs} +8 -8
- package/dist/{chunk-QJYFL44D.mjs → chunk-WITBUG5F.mjs} +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/modules-features/index.mjs +2 -2
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{excel-CP9z_HOI.d.mts → utils_excel-CP9z_HOI.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/utils/
|
|
1
|
+
// src/utils/utils_converter.ts
|
|
2
2
|
var utils_converter_getLabelByValue = (data, value) => {
|
|
3
3
|
const numericValue = Number(value);
|
|
4
4
|
return data[numericValue] || "Kh\xF4ng x\xE1c \u0111\u1ECBnh";
|
|
@@ -22,7 +22,7 @@ function utils_converter_enumToSelectOptions(enumObject) {
|
|
|
22
22
|
return result;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// src/utils/
|
|
25
|
+
// src/utils/utils_date.ts
|
|
26
26
|
function U0DateToDDMMYYYString(date) {
|
|
27
27
|
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
|
28
28
|
const day = String(date.getDate()).padStart(2, "0");
|
|
@@ -47,7 +47,7 @@ function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
|
|
|
47
47
|
return `${startday}/${startmonth}/${startyear} [${starthour}:${startminute} - ${endhour}:${endminuate}]`;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// src/utils/
|
|
50
|
+
// src/utils/utils_excel.ts
|
|
51
51
|
import saveAs from "file-saver";
|
|
52
52
|
function getValueByPath(obj, path) {
|
|
53
53
|
return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
|
|
@@ -135,7 +135,7 @@ async function utils_excel_download({
|
|
|
135
135
|
saveAs(blob, name);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// src/utils/
|
|
138
|
+
// src/utils/utils_file.ts
|
|
139
139
|
import Docxtemplater from "docxtemplater";
|
|
140
140
|
import { saveAs as saveAs2 } from "file-saver";
|
|
141
141
|
import PizZip from "pizzip";
|
|
@@ -171,7 +171,7 @@ async function utils_file_docxtemplaterDownload({
|
|
|
171
171
|
saveAs2(buffer, fileName || "output.docx");
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// src/utils/
|
|
174
|
+
// src/utils/utils_notification.ts
|
|
175
175
|
import { notifications } from "@mantine/notifications";
|
|
176
176
|
function utils_notification_show({ crudType = "create", message, color }) {
|
|
177
177
|
if (crudType == "create") {
|
|
@@ -210,7 +210,7 @@ function utils_notification_show({ crudType = "create", message, color }) {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// src/utils/
|
|
213
|
+
// src/utils/utils_pdf.ts
|
|
214
214
|
import axios from "axios";
|
|
215
215
|
async function utils_pdf_download(url) {
|
|
216
216
|
try {
|
|
@@ -229,7 +229,7 @@ async function utils_pdf_download(url) {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
// src/utils/
|
|
232
|
+
// src/utils/utils_time.ts
|
|
233
233
|
var utils_time_convertTimeStringToSeconds = (time) => {
|
|
234
234
|
const [hours, minutes, seconds] = time.split(":").map(Number);
|
|
235
235
|
return hours * 3600 + minutes * 60 + seconds;
|
|
@@ -245,7 +245,7 @@ var utils_time_getCurrentTimeString = () => {
|
|
|
245
245
|
return `${hours}:${minutes}:${seconds}`;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
// src/utils/
|
|
248
|
+
// src/utils/utils_validateForm.ts
|
|
249
249
|
import { isNotEmpty } from "@mantine/form";
|
|
250
250
|
function U0MyValidateEmpty(message) {
|
|
251
251
|
return isNotEmpty(message ? message : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng");
|
|
@@ -3,7 +3,7 @@ import react__default, { ReactNode, ComponentProps } from 'react';
|
|
|
3
3
|
import { MantineSize, ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
|
|
4
4
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
|
5
5
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
|
6
|
-
import { I as IUtils_Excel_ColumnConfig } from '../
|
|
6
|
+
import { I as IUtils_Excel_ColumnConfig } from '../utils_excel-CP9z_HOI.mjs';
|
|
7
7
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
|
8
8
|
import { ConfigOptions } from 'export-to-csv';
|
|
9
9
|
import { DateInputProps } from '@mantine/dates';
|
|
@@ -62,9 +62,9 @@ import {
|
|
|
62
62
|
useHeaderMegaMenuStore,
|
|
63
63
|
useS_ButtonImport,
|
|
64
64
|
utils_layout_getItemsWithoutLinks
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-WITBUG5F.mjs";
|
|
66
66
|
import "../chunk-AL73DX37.mjs";
|
|
67
|
-
import "../chunk-
|
|
67
|
+
import "../chunk-BNC4S63Y.mjs";
|
|
68
68
|
import "../chunk-FWCSY2DS.mjs";
|
|
69
69
|
export {
|
|
70
70
|
AQButtonCreateByImportFile,
|
|
@@ -57,9 +57,9 @@ import {
|
|
|
57
57
|
useS_authenticate,
|
|
58
58
|
useS_core83092,
|
|
59
59
|
utils_core83092_mergePage
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-WITBUG5F.mjs";
|
|
61
61
|
import "../chunk-AL73DX37.mjs";
|
|
62
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-BNC4S63Y.mjs";
|
|
63
63
|
import "../chunk-FWCSY2DS.mjs";
|
|
64
64
|
export {
|
|
65
65
|
F_authenticate_Login,
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as IUtils_Excel_ColumnConfig, a as utils_excel_download, u as utils_excel_exportExcel } from '../
|
|
1
|
+
export { I as IUtils_Excel_ColumnConfig, a as utils_excel_download, u as utils_excel_exportExcel } from '../utils_excel-CP9z_HOI.mjs';
|
|
2
2
|
import { DefaultMantineColor } from '@mantine/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import 'exceljs';
|
package/dist/utils/index.mjs
CHANGED
package/package.json
CHANGED
|
File without changes
|