@qrvey/utils 1.8.0 → 1.9.0-0
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/README.md
CHANGED
|
@@ -73,14 +73,12 @@ const defineTableChartFormat = (column, settings) => {
|
|
|
73
73
|
case COLUMN_1.COLUMN.NUMERIC:
|
|
74
74
|
case COLUMN_1.COLUMN.RATING:
|
|
75
75
|
case COLUMN_1.COLUMN.SLIDEBAR: {
|
|
76
|
-
if (
|
|
76
|
+
if ((calculation === null || calculation === void 0 ? void 0 : calculation.value) === CALCULATION_LABEL_1.CALCULATION_LABEL.PDIFF)
|
|
77
|
+
return defaultPercentage;
|
|
78
|
+
if (selectedFormat && selectedFormat.format !== defaultText)
|
|
77
79
|
return selectedFormat;
|
|
78
|
-
}
|
|
79
80
|
let output;
|
|
80
|
-
if (
|
|
81
|
-
output = defaultPercentage;
|
|
82
|
-
}
|
|
83
|
-
else if (isGroupedTable &&
|
|
81
|
+
if (isGroupedTable &&
|
|
84
82
|
((aggregate === null || aggregate === void 0 ? void 0 : aggregate.label) === AGGREGATE_1.AGGREGATE.COUNT ||
|
|
85
83
|
(aggregate === null || aggregate === void 0 ? void 0 : aggregate.label) === AGGREGATE_1.AGGREGATE.DISTINCTCOUNT)) {
|
|
86
84
|
output = defaultNumeric;
|
|
@@ -70,14 +70,12 @@ export const defineTableChartFormat = (column, settings) => {
|
|
|
70
70
|
case COLUMN.NUMERIC:
|
|
71
71
|
case COLUMN.RATING:
|
|
72
72
|
case COLUMN.SLIDEBAR: {
|
|
73
|
-
if (
|
|
73
|
+
if ((calculation === null || calculation === void 0 ? void 0 : calculation.value) === CALCULATION_LABEL.PDIFF)
|
|
74
|
+
return defaultPercentage;
|
|
75
|
+
if (selectedFormat && selectedFormat.format !== defaultText)
|
|
74
76
|
return selectedFormat;
|
|
75
|
-
}
|
|
76
77
|
let output;
|
|
77
|
-
if (
|
|
78
|
-
output = defaultPercentage;
|
|
79
|
-
}
|
|
80
|
-
else if (isGroupedTable &&
|
|
78
|
+
if (isGroupedTable &&
|
|
81
79
|
((aggregate === null || aggregate === void 0 ? void 0 : aggregate.label) === AGGREGATE.COUNT ||
|
|
82
80
|
(aggregate === null || aggregate === void 0 ? void 0 : aggregate.label) === AGGREGATE.DISTINCTCOUNT)) {
|
|
83
81
|
output = defaultNumeric;
|