pace-table-lib 1.0.42 → 1.0.43
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.
|
@@ -7892,7 +7892,8 @@ const DATE_FORMATS = [
|
|
|
7892
7892
|
"MMMM-YYYY",
|
|
7893
7893
|
"DD-MMM",
|
|
7894
7894
|
"DD-MMM-YY",
|
|
7895
|
-
"DD-MMM-YYYY"
|
|
7895
|
+
"DD-MMM-YYYY",
|
|
7896
|
+
"None"
|
|
7896
7897
|
];
|
|
7897
7898
|
const EXCEL_EPOCH_OFFSET = 25569;
|
|
7898
7899
|
const DATE_FORMAT_OBJ = {
|
|
@@ -7909,7 +7910,8 @@ const DATE_FORMAT_OBJ = {
|
|
|
7909
7910
|
MMMM_YY: "MMMM-YY",
|
|
7910
7911
|
DD_MMM: "DD-MMM",
|
|
7911
7912
|
DD_MMM_YY: "DD-MMM-YY",
|
|
7912
|
-
DD_MMM_YYYY: "DD-MMM-YYYY"
|
|
7913
|
+
DD_MMM_YYYY: "DD-MMM-YYYY",
|
|
7914
|
+
NONE: "None"
|
|
7913
7915
|
};
|
|
7914
7916
|
const COLOR_BAND_TYPE = {
|
|
7915
7917
|
NO_FILL: "No Fill",
|
|
@@ -8111,6 +8113,10 @@ function formatDate(value, formatKey) {
|
|
|
8111
8113
|
return `${day}-${monthShort}-${shortYear}`;
|
|
8112
8114
|
case DATE_FORMAT_OBJ.DD_MMM_YYYY:
|
|
8113
8115
|
return `${day}-${monthShort}-${year}`;
|
|
8116
|
+
case DATE_FORMAT_OBJ.NONE:
|
|
8117
|
+
return value;
|
|
8118
|
+
default:
|
|
8119
|
+
return value;
|
|
8114
8120
|
}
|
|
8115
8121
|
} catch (error) {
|
|
8116
8122
|
console.log(error);
|