@sd-angular/core 1.3.242 → 1.3.243
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/bundles/sd-angular-core-export.umd.js +3 -1
- package/bundles/sd-angular-core-export.umd.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.min.js +1 -1
- package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.js +11 -3
- package/bundles/sd-angular-core-table.umd.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.min.js +1 -1
- package/bundles/sd-angular-core-table.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js +4 -4
- package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.min.js +2 -2
- package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
- package/esm2015/export/src/lib/export.model.js +1 -1
- package/esm2015/export/src/lib/export.service.js +4 -2
- package/esm2015/table/src/lib/table.component.js +12 -4
- package/esm2015/upload-excel/src/lib/upload-excel.component.js +4 -4
- package/export/sd-angular-core-export.metadata.json +1 -1
- package/export/src/lib/export.model.d.ts +15 -34
- package/export/src/lib/export.service.d.ts +3 -3
- package/fesm2015/sd-angular-core-export.js +3 -1
- package/fesm2015/sd-angular-core-export.js.map +1 -1
- package/fesm2015/sd-angular-core-table.js +11 -3
- package/fesm2015/sd-angular-core-table.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-excel.js +2 -2
- package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.242.tgz → sd-angular-core-1.3.243.tgz} +0 -0
- package/upload-excel/sd-angular-core-upload-excel.metadata.json +1 -1
- package/upload-excel/src/lib/upload-excel.component.d.ts +4 -4
|
@@ -1521,12 +1521,14 @@ class SdTable {
|
|
|
1521
1521
|
else if (column.type === 'date') {
|
|
1522
1522
|
let date = item[column.field];
|
|
1523
1523
|
// Nếu là date thì convert theo đúng format
|
|
1524
|
-
obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy');
|
|
1524
|
+
// obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy');
|
|
1525
|
+
obj[column.field] = Date.isDate(date) ? new Date(date) : undefined;
|
|
1525
1526
|
}
|
|
1526
1527
|
else if (column.type === 'datetime') {
|
|
1527
1528
|
let date = item[column.field];
|
|
1528
1529
|
// Nếu là datetime thì convert theo đúng format
|
|
1529
|
-
obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy HH:mm');
|
|
1530
|
+
// obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy HH:mm');
|
|
1531
|
+
obj[column.field] = Date.isDate(date) ? new Date(date) : undefined;
|
|
1530
1532
|
}
|
|
1531
1533
|
else if (column.type === 'time') {
|
|
1532
1534
|
let date = item[column.field];
|
|
@@ -1635,7 +1637,13 @@ class SdTable {
|
|
|
1635
1637
|
});
|
|
1636
1638
|
return;
|
|
1637
1639
|
}
|
|
1638
|
-
tableColumns.push(
|
|
1640
|
+
tableColumns.push({
|
|
1641
|
+
field: column.field,
|
|
1642
|
+
title: column.title,
|
|
1643
|
+
description: column.description,
|
|
1644
|
+
width: column.width,
|
|
1645
|
+
numFmt: column.type === 'datetime' ? 'dd/mm/yyyy hh:mm:ss' : column.type === 'date' ? 'dd/mm/yyyy' : undefined
|
|
1646
|
+
});
|
|
1639
1647
|
});
|
|
1640
1648
|
// Lấy columns từ configuration
|
|
1641
1649
|
if (this.configuration) {
|