@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 CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.8.1*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.9.0-1*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -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 (selectedFormat && selectedFormat.format !== "Default") {
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 ((calculation === null || calculation === void 0 ? void 0 : calculation.value) === CALCULATION_LABEL_1.CALCULATION_LABEL.PDIFF) {
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 pages",
7
- [FILTER_SCOPE_1.FILTER_SCOPE.PAGE]: "Current page",
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
  };
@@ -2,7 +2,7 @@ export declare enum FILTER_SCOPE_LABEL {
2
2
  ADMIN = "Admin",
3
3
  DATA = "Data",
4
4
  GLOBAL = "Global",
5
- PAGE = "Page",
5
+ PAGE = "Dashboard",
6
6
  TAB = "Tab",
7
7
  DEFAULT = "Default",
8
8
  CHART = "Panel",
@@ -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"] = "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";
@@ -25,7 +25,7 @@ exports.I18N_FILTER = {
25
25
  admin: "Admin Filters",
26
26
  data: "Data Filters",
27
27
  global: "Global Filters",
28
- page: "Page Filters",
28
+ page: "Dashboard Filters",
29
29
  tab: "Tab Filters",
30
30
  chart: "Panel Filters",
31
31
  default: "Default Filters",
@@ -28,8 +28,8 @@ exports.I18N_FILTER_PANEL = {
28
28
  apply: "Delete",
29
29
  },
30
30
  scope_tooltip: {
31
- global: "Filters applied to all pages",
32
- page: "Filters applied to the current page",
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 (selectedFormat && selectedFormat.format !== "Default") {
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 ((calculation === null || calculation === void 0 ? void 0 : calculation.value) === CALCULATION_LABEL.PDIFF) {
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 pages",
4
- [FILTER_SCOPE.PAGE]: "Current page",
3
+ [FILTER_SCOPE.GLOBAL]: "All dashboards",
4
+ [FILTER_SCOPE.PAGE]: "Current dashboard",
5
5
  [FILTER_SCOPE.TAB]: "Current tab",
6
6
  };
@@ -2,7 +2,7 @@ export declare enum FILTER_SCOPE_LABEL {
2
2
  ADMIN = "Admin",
3
3
  DATA = "Data",
4
4
  GLOBAL = "Global",
5
- PAGE = "Page",
5
+ PAGE = "Dashboard",
6
6
  TAB = "Tab",
7
7
  DEFAULT = "Default",
8
8
  CHART = "Panel",
@@ -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"] = "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";
@@ -22,7 +22,7 @@ export const I18N_FILTER = {
22
22
  admin: "Admin Filters",
23
23
  data: "Data Filters",
24
24
  global: "Global Filters",
25
- page: "Page Filters",
25
+ page: "Dashboard Filters",
26
26
  tab: "Tab Filters",
27
27
  chart: "Panel Filters",
28
28
  default: "Default Filters",
@@ -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 pages",
29
- page: "Filters applied to the current page",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.8.1",
3
+ "version": "1.9.0-1",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",