@qrvey/utils 1.6.0-3 → 1.6.0-4
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.
|
@@ -58,6 +58,18 @@ const defineTableChartFormat = (column, settings) => {
|
|
|
58
58
|
return selectedFormat;
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
+
case COLUMN_1.COLUMN.TIME: {
|
|
62
|
+
if (noFormatSupported)
|
|
63
|
+
return STRING_FORMAT_1.STRING_FORMAT.NONE;
|
|
64
|
+
if (selectedFormat)
|
|
65
|
+
return selectedFormat;
|
|
66
|
+
if (hasDefaultFormat) {
|
|
67
|
+
const columnDefaultFormat = defaultFormat ||
|
|
68
|
+
outputFormat || { type: "TIME", format: "HH:mm:ss" };
|
|
69
|
+
return Object.assign(Object.assign({}, defaultFormat), { format: defaultText, originalFormat: Object.assign({}, columnDefaultFormat), type: "TIME" });
|
|
70
|
+
}
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
61
73
|
case COLUMN_1.COLUMN.NUMERIC:
|
|
62
74
|
case COLUMN_1.COLUMN.RATING:
|
|
63
75
|
case COLUMN_1.COLUMN.SLIDEBAR: {
|
|
@@ -55,6 +55,18 @@ export const defineTableChartFormat = (column, settings) => {
|
|
|
55
55
|
return selectedFormat;
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
+
case COLUMN.TIME: {
|
|
59
|
+
if (noFormatSupported)
|
|
60
|
+
return STRING_FORMAT.NONE;
|
|
61
|
+
if (selectedFormat)
|
|
62
|
+
return selectedFormat;
|
|
63
|
+
if (hasDefaultFormat) {
|
|
64
|
+
const columnDefaultFormat = defaultFormat ||
|
|
65
|
+
outputFormat || { type: "TIME", format: "HH:mm:ss" };
|
|
66
|
+
return Object.assign(Object.assign({}, defaultFormat), { format: defaultText, originalFormat: Object.assign({}, columnDefaultFormat), type: "TIME" });
|
|
67
|
+
}
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
58
70
|
case COLUMN.NUMERIC:
|
|
59
71
|
case COLUMN.RATING:
|
|
60
72
|
case COLUMN.SLIDEBAR: {
|