@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 CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.9.0-0*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.9.0-2*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -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";
@@ -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", "$")}`;
@@ -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",
@@ -13,4 +13,5 @@ exports.APP_DATASET_TYPE_LIST = [
13
13
  APP_TYPE_1.APP_TYPE.MS_SQL_LIVE,
14
14
  APP_TYPE_1.APP_TYPE.MYSQL_LIVE,
15
15
  APP_TYPE_1.APP_TYPE.ORACLE_LIVE,
16
+ APP_TYPE_1.APP_TYPE.LIVE,
16
17
  ];
@@ -12,5 +12,6 @@ export declare enum APP_TYPE {
12
12
  SURVEY = "SURVEY",
13
13
  FORM = "FORM",
14
14
  ONLINEFORM = "ONLINEFORM",
15
- QUIZ = "QUIZ"
15
+ QUIZ = "QUIZ",
16
+ LIVE = "LIVE"
16
17
  }
@@ -17,4 +17,5 @@ var APP_TYPE;
17
17
  APP_TYPE["FORM"] = "FORM";
18
18
  APP_TYPE["ONLINEFORM"] = "ONLINEFORM";
19
19
  APP_TYPE["QUIZ"] = "QUIZ";
20
+ APP_TYPE["LIVE"] = "LIVE";
20
21
  })(APP_TYPE = exports.APP_TYPE || (exports.APP_TYPE = {}));
@@ -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";
@@ -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", "$")}`;
@@ -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",
@@ -10,4 +10,5 @@ export const APP_DATASET_TYPE_LIST = [
10
10
  APP_TYPE.MS_SQL_LIVE,
11
11
  APP_TYPE.MYSQL_LIVE,
12
12
  APP_TYPE.ORACLE_LIVE,
13
+ APP_TYPE.LIVE,
13
14
  ];
@@ -12,5 +12,6 @@ export declare enum APP_TYPE {
12
12
  SURVEY = "SURVEY",
13
13
  FORM = "FORM",
14
14
  ONLINEFORM = "ONLINEFORM",
15
- QUIZ = "QUIZ"
15
+ QUIZ = "QUIZ",
16
+ LIVE = "LIVE"
16
17
  }
@@ -14,4 +14,5 @@ export var APP_TYPE;
14
14
  APP_TYPE["FORM"] = "FORM";
15
15
  APP_TYPE["ONLINEFORM"] = "ONLINEFORM";
16
16
  APP_TYPE["QUIZ"] = "QUIZ";
17
+ APP_TYPE["LIVE"] = "LIVE";
17
18
  })(APP_TYPE || (APP_TYPE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.9.0-0",
3
+ "version": "1.9.0-2",
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",