@qrvey/utils 1.9.0-0 → 1.9.0-2
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/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/format/format.js +1 -0
- 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/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.js +1 -0
- package/dist/cjs/qrvey/constants/APP_TYPE.d.ts +2 -1
- package/dist/cjs/qrvey/constants/APP_TYPE.js +1 -0
- 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/format/format.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -2
- package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.js +1 -0
- package/dist/qrvey/constants/APP_TYPE.d.ts +2 -1
- package/dist/qrvey/constants/APP_TYPE.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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";
|
|
@@ -70,6 +70,7 @@ function formatNumber(num, outputFormat, _config) {
|
|
|
70
70
|
return formatAbbreviated(_num, num_decimals);
|
|
71
71
|
case "Numeric":
|
|
72
72
|
case "Decimal":
|
|
73
|
+
case "Default":
|
|
73
74
|
return (0, d3_format_1.format)(`,.${num_decimals}f`)(_num).replace(/\.(%*)$/, "$1");
|
|
74
75
|
case "Currency": {
|
|
75
76
|
const currency = `${_num < 0 ? "-" : ""} ${(0, get_1._get)(outputFormat, "currency.label", "$")}`;
|
|
@@ -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",
|
|
@@ -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";
|
package/dist/format/format.js
CHANGED
|
@@ -62,6 +62,7 @@ function formatNumber(num, outputFormat, _config) {
|
|
|
62
62
|
return formatAbbreviated(_num, num_decimals);
|
|
63
63
|
case "Numeric":
|
|
64
64
|
case "Decimal":
|
|
65
|
+
case "Default":
|
|
65
66
|
return d3Format(`,.${num_decimals}f`)(_num).replace(/\.(%*)$/, "$1");
|
|
66
67
|
case "Currency": {
|
|
67
68
|
const currency = `${_num < 0 ? "-" : ""} ${_get(outputFormat, "currency.label", "$")}`;
|
|
@@ -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",
|