aq-fe-framework 0.1.318 → 0.1.319
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-VECMRDKG.mjs → chunk-FBGCXKGK.mjs} +0 -36
- package/dist/chunk-I2XIN2R3.mjs +38 -0
- package/dist/columns/index.d.mts +6 -0
- package/dist/columns/index.mjs +20 -0
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/modules-features/index.mjs +16 -14
- package/dist/utils/index.mjs +7 -5
- package/package.json +5 -1
- package/dist/{chunk-ZZ7S4EA4.mjs → chunk-PSV5MULK.mjs} +3 -3
- package/dist/{chunk-FUHOV7NB.mjs → chunk-QMQQZF6X.mjs} +3 -3
@@ -46,38 +46,6 @@ function utils_currency_formatWithSuffix(amount, suffix = "") {
|
|
46
46
|
return `${formattedAmount}${suffix}`;
|
47
47
|
}
|
48
48
|
|
49
|
-
// src/utils/utils_date.ts
|
50
|
-
function U0DateToDDMMYYYString(date) {
|
51
|
-
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
52
|
-
const day = String(date.getDate()).padStart(2, "0");
|
53
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
54
|
-
const year = date.getFullYear();
|
55
|
-
return `${day}/${month}/${year}`;
|
56
|
-
}
|
57
|
-
function utils_date_dateToDDMMYYYString(date) {
|
58
|
-
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
59
|
-
const day = String(date.getDate()).padStart(2, "0");
|
60
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
61
|
-
const year = date.getFullYear();
|
62
|
-
return `${day}/${month}/${year}`;
|
63
|
-
}
|
64
|
-
function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
|
65
|
-
const startday = String(startDate.getDate()).padStart(2, "0");
|
66
|
-
const startmonth = String(startDate.getMonth() + 1).padStart(2, "0");
|
67
|
-
const startyear = startDate.getFullYear();
|
68
|
-
const starthour = String(startDate.getHours()).padStart(2, "0");
|
69
|
-
const startminute = String(startDate.getMinutes()).padStart(2, "0");
|
70
|
-
const endhour = String(endDate.getHours()).padStart(2, "0");
|
71
|
-
const endminuate = String(endDate.getMinutes()).padStart(2, "0");
|
72
|
-
return `${startday}/${startmonth}/${startyear} [${starthour}:${startminute} - ${endhour}:${endminuate}]`;
|
73
|
-
}
|
74
|
-
function utils_date_getHHmm(date) {
|
75
|
-
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
76
|
-
const hour = String(date.getHours()).padStart(2, "0");
|
77
|
-
const minute = String(date.getMinutes()).padStart(2, "0");
|
78
|
-
return `${hour}:${minute}`;
|
79
|
-
}
|
80
|
-
|
81
49
|
// src/utils/utils_excel.ts
|
82
50
|
import saveAs from "file-saver";
|
83
51
|
function isObjectPath(path) {
|
@@ -315,10 +283,6 @@ export {
|
|
315
283
|
U0MyValidateEmail,
|
316
284
|
utils_validator_validateCode,
|
317
285
|
updateEnableList,
|
318
|
-
U0DateToDDMMYYYString,
|
319
|
-
utils_date_dateToDDMMYYYString,
|
320
|
-
utils_date_formatToDateTimeStartEnd,
|
321
|
-
utils_date_getHHmm,
|
322
286
|
utils_file_fileToAQDocumentType,
|
323
287
|
utils_file_AQDocumentTypeToFile,
|
324
288
|
utils_file_docxtemplaterDownload,
|
@@ -0,0 +1,38 @@
|
|
1
|
+
// src/utils/utils_date.ts
|
2
|
+
function U0DateToDDMMYYYString(date) {
|
3
|
+
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
4
|
+
const day = String(date.getDate()).padStart(2, "0");
|
5
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
6
|
+
const year = date.getFullYear();
|
7
|
+
return `${day}/${month}/${year}`;
|
8
|
+
}
|
9
|
+
function utils_date_dateToDDMMYYYString(date) {
|
10
|
+
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
11
|
+
const day = String(date.getDate()).padStart(2, "0");
|
12
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
13
|
+
const year = date.getFullYear();
|
14
|
+
return `${day}/${month}/${year}`;
|
15
|
+
}
|
16
|
+
function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
|
17
|
+
const startday = String(startDate.getDate()).padStart(2, "0");
|
18
|
+
const startmonth = String(startDate.getMonth() + 1).padStart(2, "0");
|
19
|
+
const startyear = startDate.getFullYear();
|
20
|
+
const starthour = String(startDate.getHours()).padStart(2, "0");
|
21
|
+
const startminute = String(startDate.getMinutes()).padStart(2, "0");
|
22
|
+
const endhour = String(endDate.getHours()).padStart(2, "0");
|
23
|
+
const endminuate = String(endDate.getMinutes()).padStart(2, "0");
|
24
|
+
return `${startday}/${startmonth}/${startyear} [${starthour}:${startminute} - ${endhour}:${endminuate}]`;
|
25
|
+
}
|
26
|
+
function utils_date_getHHmm(date) {
|
27
|
+
if (!(date instanceof Date) || isNaN(date.getTime())) return "";
|
28
|
+
const hour = String(date.getHours()).padStart(2, "0");
|
29
|
+
const minute = String(date.getMinutes()).padStart(2, "0");
|
30
|
+
return `${hour}:${minute}`;
|
31
|
+
}
|
32
|
+
|
33
|
+
export {
|
34
|
+
U0DateToDDMMYYYString,
|
35
|
+
utils_date_dateToDDMMYYYString,
|
36
|
+
utils_date_formatToDateTimeStartEnd,
|
37
|
+
utils_date_getHHmm
|
38
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import {
|
2
|
+
utils_date_dateToDDMMYYYString
|
3
|
+
} from "../chunk-I2XIN2R3.mjs";
|
4
|
+
import "../chunk-FWCSY2DS.mjs";
|
5
|
+
|
6
|
+
// src/columns/baseColumns.ts
|
7
|
+
var baseColumns = [
|
8
|
+
{
|
9
|
+
header: "Ng\xE0y c\u1EADp nh\u1EADt",
|
10
|
+
accessorKey: "modifiedWhen",
|
11
|
+
Cell: ({ cell }) => utils_date_dateToDDMMYYYString(new Date(cell.getValue()))
|
12
|
+
},
|
13
|
+
{
|
14
|
+
header: "Ng\u01B0\u1EDDi c\u1EADp nh\u1EADt",
|
15
|
+
accessorKey: "modifiedFullName"
|
16
|
+
}
|
17
|
+
];
|
18
|
+
export {
|
19
|
+
baseColumns
|
20
|
+
};
|
@@ -64,7 +64,8 @@ import {
|
|
64
64
|
useS_BasicAppShell,
|
65
65
|
useS_ButtonImport,
|
66
66
|
utils_layout_getItemsWithoutLinks
|
67
|
-
} from "../chunk-
|
67
|
+
} from "../chunk-QMQQZF6X.mjs";
|
68
|
+
import "../chunk-Y3YGC5IH.mjs";
|
68
69
|
import "../chunk-5U2JSHSJ.mjs";
|
69
70
|
import {
|
70
71
|
MyFlexColumn,
|
@@ -73,7 +74,6 @@ import {
|
|
73
74
|
import "../chunk-NWBLJ3W3.mjs";
|
74
75
|
import "../chunk-YJ32RSH2.mjs";
|
75
76
|
import "../chunk-7ZCOFATU.mjs";
|
76
|
-
import "../chunk-Y3YGC5IH.mjs";
|
77
77
|
import "../chunk-FWCSY2DS.mjs";
|
78
78
|
export {
|
79
79
|
AQButtonCreateByImportFile,
|
package/dist/core/index.mjs
CHANGED
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
MyDayOfWeekPicker,
|
7
7
|
MyTextInput,
|
8
8
|
MyWeeklySessionSchedulerPicker
|
9
|
-
} from "../chunk-
|
10
|
-
import "../chunk-HHJFKKE7.mjs";
|
9
|
+
} from "../chunk-PSV5MULK.mjs";
|
11
10
|
import "../chunk-K6S7R6LU.mjs";
|
11
|
+
import "../chunk-HHJFKKE7.mjs";
|
12
12
|
import "../chunk-NWBLJ3W3.mjs";
|
13
13
|
import "../chunk-YJ32RSH2.mjs";
|
14
14
|
import "../chunk-7ZCOFATU.mjs";
|
@@ -1,11 +1,19 @@
|
|
1
1
|
import {
|
2
|
-
U0DateToDDMMYYYString,
|
3
2
|
U0MyValidateEmail,
|
4
3
|
updateEnableList,
|
5
4
|
utils_config_getBaseUrl,
|
6
5
|
utils_converter_enumToSelectOptions,
|
7
6
|
utils_file_fileToAQDocumentType
|
8
|
-
} from "../chunk-
|
7
|
+
} from "../chunk-FBGCXKGK.mjs";
|
8
|
+
import {
|
9
|
+
U0DateToDDMMYYYString
|
10
|
+
} from "../chunk-I2XIN2R3.mjs";
|
11
|
+
import {
|
12
|
+
const_object_documentTypes
|
13
|
+
} from "../chunk-GFEMKKFH.mjs";
|
14
|
+
import {
|
15
|
+
enum_emailConfigModule
|
16
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
9
17
|
import {
|
10
18
|
F_authenticate_Logout,
|
11
19
|
MyActionIconDelete,
|
@@ -29,23 +37,20 @@ import {
|
|
29
37
|
groupToTwoLevels,
|
30
38
|
useS_authenticate,
|
31
39
|
utils_layout_getItemsWithoutLinks
|
32
|
-
} from "../chunk-
|
40
|
+
} from "../chunk-QMQQZF6X.mjs";
|
41
|
+
import {
|
42
|
+
createGenericStore
|
43
|
+
} from "../chunk-Y3YGC5IH.mjs";
|
33
44
|
import "../chunk-5U2JSHSJ.mjs";
|
34
45
|
import {
|
35
46
|
MyButton as MyButton2,
|
36
47
|
MyTextInput as MyTextInput2
|
37
|
-
} from "../chunk-
|
48
|
+
} from "../chunk-PSV5MULK.mjs";
|
49
|
+
import "../chunk-K6S7R6LU.mjs";
|
38
50
|
import {
|
39
51
|
MyFlexColumn,
|
40
52
|
MyFlexRow
|
41
53
|
} from "../chunk-HHJFKKE7.mjs";
|
42
|
-
import {
|
43
|
-
enum_emailConfigModule
|
44
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
45
|
-
import "../chunk-K6S7R6LU.mjs";
|
46
|
-
import {
|
47
|
-
const_object_documentTypes
|
48
|
-
} from "../chunk-GFEMKKFH.mjs";
|
49
54
|
import {
|
50
55
|
const_object_colors
|
51
56
|
} from "../chunk-NWBLJ3W3.mjs";
|
@@ -62,9 +67,6 @@ import {
|
|
62
67
|
import {
|
63
68
|
utils_notification_show
|
64
69
|
} from "../chunk-7ZCOFATU.mjs";
|
65
|
-
import {
|
66
|
-
createGenericStore
|
67
|
-
} from "../chunk-Y3YGC5IH.mjs";
|
68
70
|
import {
|
69
71
|
__objRest,
|
70
72
|
__spreadProps,
|
package/dist/utils/index.mjs
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import {
|
2
|
-
U0DateToDDMMYYYString,
|
3
2
|
U0MyValidateEmail,
|
4
3
|
U0MyValidateEmpty,
|
5
4
|
updateEnableList,
|
@@ -7,9 +6,6 @@ import {
|
|
7
6
|
utils_converter_getKeyByValue,
|
8
7
|
utils_converter_getLabelByValue,
|
9
8
|
utils_currency_formatWithSuffix,
|
10
|
-
utils_date_dateToDDMMYYYString,
|
11
|
-
utils_date_formatToDateTimeStartEnd,
|
12
|
-
utils_date_getHHmm,
|
13
9
|
utils_excel_download,
|
14
10
|
utils_excel_exportExcel,
|
15
11
|
utils_file_AQDocumentTypeToFile,
|
@@ -20,7 +16,13 @@ import {
|
|
20
16
|
utils_time_extractHourMinute,
|
21
17
|
utils_time_getCurrentTimeString,
|
22
18
|
utils_validator_validateCode
|
23
|
-
} from "../chunk-
|
19
|
+
} from "../chunk-FBGCXKGK.mjs";
|
20
|
+
import {
|
21
|
+
U0DateToDDMMYYYString,
|
22
|
+
utils_date_dateToDDMMYYYString,
|
23
|
+
utils_date_formatToDateTimeStartEnd,
|
24
|
+
utils_date_getHHmm
|
25
|
+
} from "../chunk-I2XIN2R3.mjs";
|
24
26
|
import {
|
25
27
|
utils_pdf_download
|
26
28
|
} from "../chunk-5U2JSHSJ.mjs";
|
package/package.json
CHANGED
@@ -36,9 +36,13 @@
|
|
36
36
|
"./core": {
|
37
37
|
"import": "./dist/core/index.mjs",
|
38
38
|
"types": "./dist/core/index.d.mts"
|
39
|
+
},
|
40
|
+
"./columns": {
|
41
|
+
"import": "./dist/columns/index.mjs",
|
42
|
+
"types": "./dist/columns/index.d.mts"
|
39
43
|
}
|
40
44
|
},
|
41
|
-
"version": "0.1.
|
45
|
+
"version": "0.1.319",
|
42
46
|
"private": false,
|
43
47
|
"files": [
|
44
48
|
"dist"
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import {
|
2
|
+
enum_daysOfWeek
|
3
|
+
} from "./chunk-K6S7R6LU.mjs";
|
1
4
|
import {
|
2
5
|
MyFlexColumn,
|
3
6
|
MyFlexRow
|
4
7
|
} from "./chunk-HHJFKKE7.mjs";
|
5
|
-
import {
|
6
|
-
enum_daysOfWeek
|
7
|
-
} from "./chunk-K6S7R6LU.mjs";
|
8
8
|
import {
|
9
9
|
const_object_colors
|
10
10
|
} from "./chunk-NWBLJ3W3.mjs";
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import {
|
2
|
+
createGenericStore
|
3
|
+
} from "./chunk-Y3YGC5IH.mjs";
|
1
4
|
import {
|
2
5
|
utils_pdf_download
|
3
6
|
} from "./chunk-5U2JSHSJ.mjs";
|
@@ -16,9 +19,6 @@ import {
|
|
16
19
|
import {
|
17
20
|
utils_notification_show
|
18
21
|
} from "./chunk-7ZCOFATU.mjs";
|
19
|
-
import {
|
20
|
-
createGenericStore
|
21
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
22
22
|
import {
|
23
23
|
__objRest,
|
24
24
|
__spreadProps,
|