@qrvey/utils 1.8.1 → 1.9.0-1
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 +1 -1
- package/dist/cjs/column_format/helpers/defineTableChartFormat.js +4 -6
- package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +2 -2
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_LABEL.d.ts +1 -1
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_LABEL.js +1 -1
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -2
- package/dist/column_format/helpers/defineTableChartFormat.js +4 -6
- package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +2 -2
- package/dist/filters/constants/common/FILTER_SCOPE_LABEL.d.ts +1 -1
- package/dist/filters/constants/common/FILTER_SCOPE_LABEL.js +1 -1
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -2
- package/package.json +1 -1
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;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FILTER_BUILDER_SCOPE_LABEL = void 0;
|
|
4
4
|
const FILTER_SCOPE_1 = require("../common/FILTER_SCOPE");
|
|
5
5
|
exports.FILTER_BUILDER_SCOPE_LABEL = {
|
|
6
|
-
[FILTER_SCOPE_1.FILTER_SCOPE.GLOBAL]: "All
|
|
7
|
-
[FILTER_SCOPE_1.FILTER_SCOPE.PAGE]: "Current
|
|
6
|
+
[FILTER_SCOPE_1.FILTER_SCOPE.GLOBAL]: "All dashboards",
|
|
7
|
+
[FILTER_SCOPE_1.FILTER_SCOPE.PAGE]: "Current dashboard",
|
|
8
8
|
[FILTER_SCOPE_1.FILTER_SCOPE.TAB]: "Current tab",
|
|
9
9
|
};
|
|
@@ -6,7 +6,7 @@ var FILTER_SCOPE_LABEL;
|
|
|
6
6
|
FILTER_SCOPE_LABEL["ADMIN"] = "Admin";
|
|
7
7
|
FILTER_SCOPE_LABEL["DATA"] = "Data";
|
|
8
8
|
FILTER_SCOPE_LABEL["GLOBAL"] = "Global";
|
|
9
|
-
FILTER_SCOPE_LABEL["PAGE"] = "
|
|
9
|
+
FILTER_SCOPE_LABEL["PAGE"] = "Dashboard";
|
|
10
10
|
FILTER_SCOPE_LABEL["TAB"] = "Tab";
|
|
11
11
|
FILTER_SCOPE_LABEL["DEFAULT"] = "Default";
|
|
12
12
|
FILTER_SCOPE_LABEL["CHART"] = "Panel";
|
|
@@ -28,8 +28,8 @@ exports.I18N_FILTER_PANEL = {
|
|
|
28
28
|
apply: "Delete",
|
|
29
29
|
},
|
|
30
30
|
scope_tooltip: {
|
|
31
|
-
global: "Filters applied to all
|
|
32
|
-
page: "Filters applied to the current
|
|
31
|
+
global: "Filters applied to all dashboards",
|
|
32
|
+
page: "Filters applied to the current dashboard",
|
|
33
33
|
chart: "Filters applied to selected chart",
|
|
34
34
|
tab: "Filters applied to the current tab",
|
|
35
35
|
data: "Filters applied to the selected dataset for this user group",
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FILTER_SCOPE } from "../common/FILTER_SCOPE";
|
|
2
2
|
export const FILTER_BUILDER_SCOPE_LABEL = {
|
|
3
|
-
[FILTER_SCOPE.GLOBAL]: "All
|
|
4
|
-
[FILTER_SCOPE.PAGE]: "Current
|
|
3
|
+
[FILTER_SCOPE.GLOBAL]: "All dashboards",
|
|
4
|
+
[FILTER_SCOPE.PAGE]: "Current dashboard",
|
|
5
5
|
[FILTER_SCOPE.TAB]: "Current tab",
|
|
6
6
|
};
|
|
@@ -3,7 +3,7 @@ export var FILTER_SCOPE_LABEL;
|
|
|
3
3
|
FILTER_SCOPE_LABEL["ADMIN"] = "Admin";
|
|
4
4
|
FILTER_SCOPE_LABEL["DATA"] = "Data";
|
|
5
5
|
FILTER_SCOPE_LABEL["GLOBAL"] = "Global";
|
|
6
|
-
FILTER_SCOPE_LABEL["PAGE"] = "
|
|
6
|
+
FILTER_SCOPE_LABEL["PAGE"] = "Dashboard";
|
|
7
7
|
FILTER_SCOPE_LABEL["TAB"] = "Tab";
|
|
8
8
|
FILTER_SCOPE_LABEL["DEFAULT"] = "Default";
|
|
9
9
|
FILTER_SCOPE_LABEL["CHART"] = "Panel";
|
|
@@ -25,8 +25,8 @@ export const I18N_FILTER_PANEL = {
|
|
|
25
25
|
apply: "Delete",
|
|
26
26
|
},
|
|
27
27
|
scope_tooltip: {
|
|
28
|
-
global: "Filters applied to all
|
|
29
|
-
page: "Filters applied to the current
|
|
28
|
+
global: "Filters applied to all dashboards",
|
|
29
|
+
page: "Filters applied to the current dashboard",
|
|
30
30
|
chart: "Filters applied to selected chart",
|
|
31
31
|
tab: "Filters applied to the current tab",
|
|
32
32
|
data: "Filters applied to the selected dataset for this user group",
|