@qrvey/utils 1.12.0-13 → 1.12.0-13-memory-leak-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/dist/cjs/filters/helpers/common/mergeFilters.js +3 -3
- package/dist/cjs/general/object/index.d.ts +1 -1
- package/dist/cjs/general/object/index.js +1 -1
- package/dist/cjs/general/object/mergeDeep.js +2 -2
- package/dist/cjs/general/object/removeUndefinedDeep.js +2 -2
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +4 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +2 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +18 -3
- package/dist/filters/helpers/common/mergeFilters.js +3 -3
- package/dist/general/object/index.d.ts +1 -1
- package/dist/general/object/index.js +1 -1
- package/dist/general/object/mergeDeep.js +2 -2
- package/dist/general/object/removeUndefinedDeep.js +2 -2
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +8 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +4 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +2 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +18 -3
- package/package.json +1 -1
- package/dist/cjs/general/object/objectCopy.d.ts +0 -7
- package/dist/cjs/general/object/objectCopy.js +0 -34
- package/dist/general/object/objectCopy.d.ts +0 -7
- package/dist/general/object/objectCopy.js +0 -30
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.mergeFilters = void 0;
|
|
4
4
|
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
5
|
const mergeDeep_1 = require("../../../general/object/mergeDeep");
|
|
6
|
-
const
|
|
6
|
+
const cloneDeep_1 = require("../../../general/object/cloneDeep");
|
|
7
7
|
const getFilterid_1 = require("./getFilterid");
|
|
8
8
|
const getMergeFiltersSettings_1 = require("./getMergeFiltersSettings");
|
|
9
9
|
const mergeValues_1 = require("./mergeValues");
|
|
@@ -29,8 +29,8 @@ function mergeFilters(filterData1, filterData2, settings) {
|
|
|
29
29
|
}
|
|
30
30
|
if ((0, isEmpty_1.isEmpty)(filterData2) || (0, isEmpty_1.isEmpty)(filterData2.scopes))
|
|
31
31
|
return filterData1;
|
|
32
|
-
const newFilterData1 = (0,
|
|
33
|
-
const newFilterData2 = (0,
|
|
32
|
+
const newFilterData1 = (0, cloneDeep_1.cloneDeep)(filterData1);
|
|
33
|
+
const newFilterData2 = (0, cloneDeep_1.cloneDeep)(filterData2);
|
|
34
34
|
const defaultSettings = (0, getMergeFiltersSettings_1.getMergeFiltersSettings)(settings);
|
|
35
35
|
const scopes = mergeScopes(newFilterData1.scopes, newFilterData2.scopes, defaultSettings);
|
|
36
36
|
if (defaultSettings.mergeFilterDataProps) {
|
|
@@ -5,7 +5,7 @@ export * from "./getAttribute";
|
|
|
5
5
|
export * from "./hasProperty";
|
|
6
6
|
export * from "./isObject";
|
|
7
7
|
export * from "./mergeDeep";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./cloneDeep";
|
|
9
9
|
export * from "./omit";
|
|
10
10
|
export * from "./pick";
|
|
11
11
|
export * from "./mapValues";
|
|
@@ -21,7 +21,7 @@ __exportStar(require("./getAttribute"), exports);
|
|
|
21
21
|
__exportStar(require("./hasProperty"), exports);
|
|
22
22
|
__exportStar(require("./isObject"), exports);
|
|
23
23
|
__exportStar(require("./mergeDeep"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./cloneDeep"), exports);
|
|
25
25
|
__exportStar(require("./omit"), exports);
|
|
26
26
|
__exportStar(require("./pick"), exports);
|
|
27
27
|
__exportStar(require("./mapValues"), exports);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeDeep = void 0;
|
|
4
4
|
const isObject_1 = require("./isObject");
|
|
5
|
-
const
|
|
5
|
+
const cloneDeep_1 = require("./cloneDeep");
|
|
6
6
|
/**
|
|
7
7
|
* Merges two objects into a new one.
|
|
8
8
|
* The second given argument to the first given argument.
|
|
@@ -14,7 +14,7 @@ const objectCopy_1 = require("./objectCopy");
|
|
|
14
14
|
function mergeDeep(obj1, obj2, settings) {
|
|
15
15
|
const defaultSettings = getParamsToMergeDeep(settings);
|
|
16
16
|
if (!isValid(obj1, obj2))
|
|
17
|
-
return (0,
|
|
17
|
+
return (0, cloneDeep_1.cloneDeep)(obj1);
|
|
18
18
|
const result = Array.isArray(obj1) ? [] : {};
|
|
19
19
|
for (const i in obj1) {
|
|
20
20
|
if ((0, isObject_1.isObject)(obj1[i]) || Array.isArray(obj1[i])) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.removeUndefinedDeep = void 0;
|
|
4
4
|
const isObject_1 = require("./isObject");
|
|
5
|
-
const
|
|
5
|
+
const cloneDeep_1 = require("./cloneDeep");
|
|
6
6
|
/**
|
|
7
7
|
* Removes and returns the given object cleaning the undefined values
|
|
8
8
|
* @param obj an object
|
|
@@ -12,7 +12,7 @@ function removeUndefinedDeep(obj) {
|
|
|
12
12
|
const isArray = Array.isArray(obj);
|
|
13
13
|
if (obj == null || (!(0, isObject_1.isObject)(obj) && !isArray))
|
|
14
14
|
return obj;
|
|
15
|
-
let _obj = (0,
|
|
15
|
+
let _obj = (0, cloneDeep_1.cloneDeep)(obj);
|
|
16
16
|
if (isArray)
|
|
17
17
|
_obj = _obj.filter(Boolean);
|
|
18
18
|
Object.keys(_obj).forEach((key) => {
|
|
@@ -26,6 +26,14 @@ export interface II18nChartBuilderAxisStyle {
|
|
|
26
26
|
type_label: string;
|
|
27
27
|
values_axis_check: string;
|
|
28
28
|
values_check: string;
|
|
29
|
+
skip_labels_all_but_first_and_last: string;
|
|
30
|
+
skip_labels_all: string;
|
|
31
|
+
skip_labels_auto: string;
|
|
32
|
+
skip_labels_custom: string;
|
|
33
|
+
skip_labels_help: string;
|
|
34
|
+
skip_labels_none: string;
|
|
35
|
+
skip_labels_placeholder: string;
|
|
36
|
+
skip_labels: string;
|
|
29
37
|
values_rotation: string;
|
|
30
38
|
values_rotation_diagonal: string;
|
|
31
39
|
values_rotation_horizontal: string;
|
|
@@ -7,6 +7,7 @@ import { II18nDashboardViews } from "./II18nDashboardViews";
|
|
|
7
7
|
export interface II18nDashboard {
|
|
8
8
|
add_chart: II18nDashboardAddChart;
|
|
9
9
|
export_csv: string;
|
|
10
|
+
export_in_progress: string;
|
|
10
11
|
toast: II18nDashboardToast;
|
|
11
12
|
tooltips: II18nDashboardTooltips;
|
|
12
13
|
views: II18nDashboardViews;
|
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ import { II18nFormulaBuilderFunction } from "./II18nFormulaBuilderFunction";
|
|
|
2
2
|
export interface II18nFormulaBuilderV2FunctionHour extends II18nFormulaBuilderFunction {
|
|
3
3
|
param_date_value1_name: string;
|
|
4
4
|
param_date_value1_description: string;
|
|
5
|
+
param_time_format_name: string;
|
|
6
|
+
param_time_format_description: string;
|
|
5
7
|
}
|
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { II18nFormulaBuilderV2FunctionLength } from "./II18nFormulaBuilderV2Func
|
|
|
18
18
|
import { II18nFormulaBuilderV2FunctionLog } from "./II18nFormulaBuilderV2FunctionLog";
|
|
19
19
|
import { II18nFormulaBuilderV2FunctionMax } from "./II18nFormulaBuilderV2FunctionMax";
|
|
20
20
|
import { II18nFormulaBuilderV2FunctionMid } from "./II18nFormulaBuilderV2FunctionMid";
|
|
21
|
+
import { II18nFormulaBuilderV2FunctionMillisecond } from "./II18nFormulaBuilderV2FunctionMillisecond";
|
|
21
22
|
import { II18nFormulaBuilderV2FunctionMinute } from "./II18nFormulaBuilderV2FunctionMinute";
|
|
22
23
|
import { II18nFormulaBuilderV2FunctionMonth } from "./II18nFormulaBuilderV2FunctionMonth";
|
|
23
24
|
import { II18nFormulaBuilderV2FunctionOdd } from "./II18nFormulaBuilderV2FunctionOdd";
|
|
@@ -26,6 +27,7 @@ import { II18nFormulaBuilderV2FunctionReplace } from "./II18nFormulaBuilderV2Fun
|
|
|
26
27
|
import { II18nFormulaBuilderV2FunctionRound } from "./II18nFormulaBuilderV2FunctionRound";
|
|
27
28
|
import { II18nFormulaBuilderV2FunctionSecond } from "./II18nFormulaBuilderV2FunctionSecond";
|
|
28
29
|
import { II18nFormulaBuilderV2FunctionSqrt } from "./II18nFormulaBuilderV2FunctionSqrt";
|
|
30
|
+
import { II18nFormulaBuilderV2FunctionText } from "./II18nFormulaBuilderV2FunctionText";
|
|
29
31
|
import { II18nFormulaBuilderV2FunctionTrim } from "./II18nFormulaBuilderV2FunctionTrim";
|
|
30
32
|
import { II18nFormulaBuilderV2FunctionUpper } from "./II18nFormulaBuilderV2FunctionUpper";
|
|
31
33
|
import { II18nFormulaBuilderV2FunctionYear } from "./II18nFormulaBuilderV2FunctionYear";
|
|
@@ -69,4 +71,6 @@ export interface II18nFormulaBuilderV2Functions {
|
|
|
69
71
|
round: II18nFormulaBuilderV2FunctionRound;
|
|
70
72
|
rounddown: II18nFormulaBuilderV2FunctionRound;
|
|
71
73
|
roundup: II18nFormulaBuilderV2FunctionRound;
|
|
74
|
+
millisecond: II18nFormulaBuilderV2FunctionMillisecond;
|
|
75
|
+
text: II18nFormulaBuilderV2FunctionText;
|
|
72
76
|
}
|
|
@@ -104,6 +104,14 @@ exports.I18N_CHART_BUILDER_STYLE_OPTIONS = {
|
|
|
104
104
|
type_label: "Type",
|
|
105
105
|
values_axis_check: "Axis Values",
|
|
106
106
|
values_check: "Value Labels",
|
|
107
|
+
skip_labels_all_but_first_and_last: "All but first and last",
|
|
108
|
+
skip_labels_all: "All",
|
|
109
|
+
skip_labels_auto: "Auto",
|
|
110
|
+
skip_labels_custom: "Custom",
|
|
111
|
+
skip_labels_help: "Set the number of labels to skip in between labels",
|
|
112
|
+
skip_labels_none: "None",
|
|
113
|
+
skip_labels_placeholder: "Auto",
|
|
114
|
+
skip_labels: "Skip Labels",
|
|
107
115
|
values_rotation: "Values Rotation",
|
|
108
116
|
values_rotation_diagonal: "Diagonal",
|
|
109
117
|
values_rotation_horizontal: "Horizontal",
|
|
@@ -17,6 +17,7 @@ exports.I18N_DASHBOARD = {
|
|
|
17
17
|
learn_more: "Learn more",
|
|
18
18
|
},
|
|
19
19
|
export_csv: "Export to CSV",
|
|
20
|
+
export_in_progress: "Export in progress...",
|
|
20
21
|
messages: {
|
|
21
22
|
dataset_not_available: "Dataset not available at the moment.",
|
|
22
23
|
dataset_not_found: "Dataset not found.",
|
|
@@ -33,6 +34,7 @@ exports.I18N_DASHBOARD = {
|
|
|
33
34
|
delete_record_message: "Record Successfully Deleted.",
|
|
34
35
|
refresh_table_message: "Record Successfully Edited.",
|
|
35
36
|
failed_download: "The file(s) could not be exported at this time.",
|
|
37
|
+
successful_download: "{{fileType}} exported",
|
|
36
38
|
panels_loading: "Visualizations are currently loading. Try exporting again once all visualizations have loaded properly.",
|
|
37
39
|
},
|
|
38
40
|
tooltips: {
|
|
@@ -117,10 +117,12 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
117
117
|
param_date_value1_description: 'It can be a column or a datetime value entered with a format of either "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS".',
|
|
118
118
|
},
|
|
119
119
|
hour: {
|
|
120
|
-
description: "Returns the hour of a datetime value. The hour is given as an integer ranging from 0 to 23.",
|
|
121
|
-
function_placeholder: "HOUR(date_value1)",
|
|
120
|
+
description: "Returns the hour of a datetime value. The hour is given as an integer ranging from 0 to 23 or from 0 to 12 depending on the defined format.",
|
|
121
|
+
function_placeholder: "HOUR(date_value1,[time_format])",
|
|
122
122
|
param_date_value1_name: "date_value1",
|
|
123
123
|
param_date_value1_description: 'It can be a column or a datetime value entered with a format of either "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS", datetime values without time will be assumed as 00:00:00.',
|
|
124
|
+
param_time_format_name: "time_format (optional)",
|
|
125
|
+
param_time_format_description: "if set to “24h“ it will return a number from 0 to 23, if set to “12h“ it will return a number from 1 to 12. If not set it will always return the hour in 24h format.",
|
|
124
126
|
},
|
|
125
127
|
minute: {
|
|
126
128
|
description: "Returns the minute of a datetime value. The minute is given as an integer ranging from 0 to 59.",
|
|
@@ -360,6 +362,18 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
360
362
|
param_digits_name: "digits",
|
|
361
363
|
param_digits_description: "Number of decimal digits, up to 10 digits.",
|
|
362
364
|
},
|
|
365
|
+
millisecond: {
|
|
366
|
+
description: "Returns the millisecond of a datetime value. The millisecond is given as an integer ranging from 0 to 999.",
|
|
367
|
+
function_placeholder: "MILLISECOND(date_value1)",
|
|
368
|
+
param_date_value1_name: "date_value1",
|
|
369
|
+
param_date_value1_description: 'It can be a column or a datetime value entered with a format of either "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS", datetime values without time will be assumed as 00:00:00.',
|
|
370
|
+
},
|
|
371
|
+
text: {
|
|
372
|
+
description: "Transforms a number into a string.",
|
|
373
|
+
function_placeholder: "TEXT(num1)",
|
|
374
|
+
param_num1_name: "num1",
|
|
375
|
+
param_num1_description: "The number that you want to convert to text.",
|
|
376
|
+
},
|
|
363
377
|
},
|
|
364
378
|
editor: {
|
|
365
379
|
error_messages: {
|
|
@@ -391,7 +405,7 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
391
405
|
NOT_ALLOWED_OPERATION: "Expression not allowed. Allowed operators between {{i18n.function.expression.types}}: {{i18n.function.expression.operators}}",
|
|
392
406
|
NOT_ALLOWED_OPERATION_DIFFERENT_TYPES: "Expression not allowed {{i18n.function.expression.value}}",
|
|
393
407
|
NOT_ALLOWED_OPERATION_MISSING_OPERATOR: "Expression not allowed. Missing operator",
|
|
394
|
-
INVALID_ALLOW_VALUE: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.argument.allow_value}}",
|
|
408
|
+
INVALID_ALLOW_VALUE: "Argument {{i18n.function.argument.position}} has to be equal to {{i18n.function.argument.allow_value}}",
|
|
395
409
|
MATCH_RANGE: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.expression.dynamic}}",
|
|
396
410
|
GREATER_THAN: "greater than {{i18n.function.argument.greater_than}}",
|
|
397
411
|
LESS_THAN: "less than {{i18n.function.argument.less_than}}",
|
|
@@ -401,6 +415,7 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
401
415
|
special_words: {
|
|
402
416
|
and: "and",
|
|
403
417
|
between: "between",
|
|
418
|
+
or: "or",
|
|
404
419
|
},
|
|
405
420
|
},
|
|
406
421
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
2
|
import { mergeDeep } from "../../../general/object/mergeDeep";
|
|
3
|
-
import {
|
|
3
|
+
import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
4
4
|
import { getFilterid } from "./getFilterid";
|
|
5
5
|
import { getMergeFiltersSettings } from "./getMergeFiltersSettings";
|
|
6
6
|
import { mergeValues } from "./mergeValues";
|
|
@@ -26,8 +26,8 @@ export function mergeFilters(filterData1, filterData2, settings) {
|
|
|
26
26
|
}
|
|
27
27
|
if (isEmpty(filterData2) || isEmpty(filterData2.scopes))
|
|
28
28
|
return filterData1;
|
|
29
|
-
const newFilterData1 =
|
|
30
|
-
const newFilterData2 =
|
|
29
|
+
const newFilterData1 = cloneDeep(filterData1);
|
|
30
|
+
const newFilterData2 = cloneDeep(filterData2);
|
|
31
31
|
const defaultSettings = getMergeFiltersSettings(settings);
|
|
32
32
|
const scopes = mergeScopes(newFilterData1.scopes, newFilterData2.scopes, defaultSettings);
|
|
33
33
|
if (defaultSettings.mergeFilterDataProps) {
|
|
@@ -5,7 +5,7 @@ export * from "./getAttribute";
|
|
|
5
5
|
export * from "./hasProperty";
|
|
6
6
|
export * from "./isObject";
|
|
7
7
|
export * from "./mergeDeep";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./cloneDeep";
|
|
9
9
|
export * from "./omit";
|
|
10
10
|
export * from "./pick";
|
|
11
11
|
export * from "./mapValues";
|
|
@@ -5,7 +5,7 @@ export * from "./getAttribute";
|
|
|
5
5
|
export * from "./hasProperty";
|
|
6
6
|
export * from "./isObject";
|
|
7
7
|
export * from "./mergeDeep";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./cloneDeep";
|
|
9
9
|
export * from "./omit";
|
|
10
10
|
export * from "./pick";
|
|
11
11
|
export * from "./mapValues";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isObject } from "./isObject";
|
|
2
|
-
import {
|
|
2
|
+
import { cloneDeep } from "./cloneDeep";
|
|
3
3
|
/**
|
|
4
4
|
* Merges two objects into a new one.
|
|
5
5
|
* The second given argument to the first given argument.
|
|
@@ -11,7 +11,7 @@ import { objectCopy } from "./objectCopy";
|
|
|
11
11
|
export function mergeDeep(obj1, obj2, settings) {
|
|
12
12
|
const defaultSettings = getParamsToMergeDeep(settings);
|
|
13
13
|
if (!isValid(obj1, obj2))
|
|
14
|
-
return
|
|
14
|
+
return cloneDeep(obj1);
|
|
15
15
|
const result = Array.isArray(obj1) ? [] : {};
|
|
16
16
|
for (const i in obj1) {
|
|
17
17
|
if (isObject(obj1[i]) || Array.isArray(obj1[i])) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isObject } from "./isObject";
|
|
2
|
-
import {
|
|
2
|
+
import { cloneDeep } from "./cloneDeep";
|
|
3
3
|
/**
|
|
4
4
|
* Removes and returns the given object cleaning the undefined values
|
|
5
5
|
* @param obj an object
|
|
@@ -9,7 +9,7 @@ export function removeUndefinedDeep(obj) {
|
|
|
9
9
|
const isArray = Array.isArray(obj);
|
|
10
10
|
if (obj == null || (!isObject(obj) && !isArray))
|
|
11
11
|
return obj;
|
|
12
|
-
let _obj =
|
|
12
|
+
let _obj = cloneDeep(obj);
|
|
13
13
|
if (isArray)
|
|
14
14
|
_obj = _obj.filter(Boolean);
|
|
15
15
|
Object.keys(_obj).forEach((key) => {
|
|
@@ -26,6 +26,14 @@ export interface II18nChartBuilderAxisStyle {
|
|
|
26
26
|
type_label: string;
|
|
27
27
|
values_axis_check: string;
|
|
28
28
|
values_check: string;
|
|
29
|
+
skip_labels_all_but_first_and_last: string;
|
|
30
|
+
skip_labels_all: string;
|
|
31
|
+
skip_labels_auto: string;
|
|
32
|
+
skip_labels_custom: string;
|
|
33
|
+
skip_labels_help: string;
|
|
34
|
+
skip_labels_none: string;
|
|
35
|
+
skip_labels_placeholder: string;
|
|
36
|
+
skip_labels: string;
|
|
29
37
|
values_rotation: string;
|
|
30
38
|
values_rotation_diagonal: string;
|
|
31
39
|
values_rotation_horizontal: string;
|
|
@@ -7,6 +7,7 @@ import { II18nDashboardViews } from "./II18nDashboardViews";
|
|
|
7
7
|
export interface II18nDashboard {
|
|
8
8
|
add_chart: II18nDashboardAddChart;
|
|
9
9
|
export_csv: string;
|
|
10
|
+
export_in_progress: string;
|
|
10
11
|
toast: II18nDashboardToast;
|
|
11
12
|
tooltips: II18nDashboardTooltips;
|
|
12
13
|
views: II18nDashboardViews;
|
package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ import { II18nFormulaBuilderFunction } from "./II18nFormulaBuilderFunction";
|
|
|
2
2
|
export interface II18nFormulaBuilderV2FunctionHour extends II18nFormulaBuilderFunction {
|
|
3
3
|
param_date_value1_name: string;
|
|
4
4
|
param_date_value1_description: string;
|
|
5
|
+
param_time_format_name: string;
|
|
6
|
+
param_time_format_description: string;
|
|
5
7
|
}
|
package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,6 +18,7 @@ import { II18nFormulaBuilderV2FunctionLength } from "./II18nFormulaBuilderV2Func
|
|
|
18
18
|
import { II18nFormulaBuilderV2FunctionLog } from "./II18nFormulaBuilderV2FunctionLog";
|
|
19
19
|
import { II18nFormulaBuilderV2FunctionMax } from "./II18nFormulaBuilderV2FunctionMax";
|
|
20
20
|
import { II18nFormulaBuilderV2FunctionMid } from "./II18nFormulaBuilderV2FunctionMid";
|
|
21
|
+
import { II18nFormulaBuilderV2FunctionMillisecond } from "./II18nFormulaBuilderV2FunctionMillisecond";
|
|
21
22
|
import { II18nFormulaBuilderV2FunctionMinute } from "./II18nFormulaBuilderV2FunctionMinute";
|
|
22
23
|
import { II18nFormulaBuilderV2FunctionMonth } from "./II18nFormulaBuilderV2FunctionMonth";
|
|
23
24
|
import { II18nFormulaBuilderV2FunctionOdd } from "./II18nFormulaBuilderV2FunctionOdd";
|
|
@@ -26,6 +27,7 @@ import { II18nFormulaBuilderV2FunctionReplace } from "./II18nFormulaBuilderV2Fun
|
|
|
26
27
|
import { II18nFormulaBuilderV2FunctionRound } from "./II18nFormulaBuilderV2FunctionRound";
|
|
27
28
|
import { II18nFormulaBuilderV2FunctionSecond } from "./II18nFormulaBuilderV2FunctionSecond";
|
|
28
29
|
import { II18nFormulaBuilderV2FunctionSqrt } from "./II18nFormulaBuilderV2FunctionSqrt";
|
|
30
|
+
import { II18nFormulaBuilderV2FunctionText } from "./II18nFormulaBuilderV2FunctionText";
|
|
29
31
|
import { II18nFormulaBuilderV2FunctionTrim } from "./II18nFormulaBuilderV2FunctionTrim";
|
|
30
32
|
import { II18nFormulaBuilderV2FunctionUpper } from "./II18nFormulaBuilderV2FunctionUpper";
|
|
31
33
|
import { II18nFormulaBuilderV2FunctionYear } from "./II18nFormulaBuilderV2FunctionYear";
|
|
@@ -69,4 +71,6 @@ export interface II18nFormulaBuilderV2Functions {
|
|
|
69
71
|
round: II18nFormulaBuilderV2FunctionRound;
|
|
70
72
|
rounddown: II18nFormulaBuilderV2FunctionRound;
|
|
71
73
|
roundup: II18nFormulaBuilderV2FunctionRound;
|
|
74
|
+
millisecond: II18nFormulaBuilderV2FunctionMillisecond;
|
|
75
|
+
text: II18nFormulaBuilderV2FunctionText;
|
|
72
76
|
}
|
|
@@ -101,6 +101,14 @@ export const I18N_CHART_BUILDER_STYLE_OPTIONS = {
|
|
|
101
101
|
type_label: "Type",
|
|
102
102
|
values_axis_check: "Axis Values",
|
|
103
103
|
values_check: "Value Labels",
|
|
104
|
+
skip_labels_all_but_first_and_last: "All but first and last",
|
|
105
|
+
skip_labels_all: "All",
|
|
106
|
+
skip_labels_auto: "Auto",
|
|
107
|
+
skip_labels_custom: "Custom",
|
|
108
|
+
skip_labels_help: "Set the number of labels to skip in between labels",
|
|
109
|
+
skip_labels_none: "None",
|
|
110
|
+
skip_labels_placeholder: "Auto",
|
|
111
|
+
skip_labels: "Skip Labels",
|
|
104
112
|
values_rotation: "Values Rotation",
|
|
105
113
|
values_rotation_diagonal: "Diagonal",
|
|
106
114
|
values_rotation_horizontal: "Horizontal",
|
|
@@ -14,6 +14,7 @@ export const I18N_DASHBOARD = {
|
|
|
14
14
|
learn_more: "Learn more",
|
|
15
15
|
},
|
|
16
16
|
export_csv: "Export to CSV",
|
|
17
|
+
export_in_progress: "Export in progress...",
|
|
17
18
|
messages: {
|
|
18
19
|
dataset_not_available: "Dataset not available at the moment.",
|
|
19
20
|
dataset_not_found: "Dataset not found.",
|
|
@@ -30,6 +31,7 @@ export const I18N_DASHBOARD = {
|
|
|
30
31
|
delete_record_message: "Record Successfully Deleted.",
|
|
31
32
|
refresh_table_message: "Record Successfully Edited.",
|
|
32
33
|
failed_download: "The file(s) could not be exported at this time.",
|
|
34
|
+
successful_download: "{{fileType}} exported",
|
|
33
35
|
panels_loading: "Visualizations are currently loading. Try exporting again once all visualizations have loaded properly.",
|
|
34
36
|
},
|
|
35
37
|
tooltips: {
|
|
@@ -114,10 +114,12 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
114
114
|
param_date_value1_description: 'It can be a column or a datetime value entered with a format of either "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS".',
|
|
115
115
|
},
|
|
116
116
|
hour: {
|
|
117
|
-
description: "Returns the hour of a datetime value. The hour is given as an integer ranging from 0 to 23.",
|
|
118
|
-
function_placeholder: "HOUR(date_value1)",
|
|
117
|
+
description: "Returns the hour of a datetime value. The hour is given as an integer ranging from 0 to 23 or from 0 to 12 depending on the defined format.",
|
|
118
|
+
function_placeholder: "HOUR(date_value1,[time_format])",
|
|
119
119
|
param_date_value1_name: "date_value1",
|
|
120
120
|
param_date_value1_description: 'It can be a column or a datetime value entered with a format of either "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS", datetime values without time will be assumed as 00:00:00.',
|
|
121
|
+
param_time_format_name: "time_format (optional)",
|
|
122
|
+
param_time_format_description: "if set to “24h“ it will return a number from 0 to 23, if set to “12h“ it will return a number from 1 to 12. If not set it will always return the hour in 24h format.",
|
|
121
123
|
},
|
|
122
124
|
minute: {
|
|
123
125
|
description: "Returns the minute of a datetime value. The minute is given as an integer ranging from 0 to 59.",
|
|
@@ -357,6 +359,18 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
357
359
|
param_digits_name: "digits",
|
|
358
360
|
param_digits_description: "Number of decimal digits, up to 10 digits.",
|
|
359
361
|
},
|
|
362
|
+
millisecond: {
|
|
363
|
+
description: "Returns the millisecond of a datetime value. The millisecond is given as an integer ranging from 0 to 999.",
|
|
364
|
+
function_placeholder: "MILLISECOND(date_value1)",
|
|
365
|
+
param_date_value1_name: "date_value1",
|
|
366
|
+
param_date_value1_description: 'It can be a column or a datetime value entered with a format of either "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS", datetime values without time will be assumed as 00:00:00.',
|
|
367
|
+
},
|
|
368
|
+
text: {
|
|
369
|
+
description: "Transforms a number into a string.",
|
|
370
|
+
function_placeholder: "TEXT(num1)",
|
|
371
|
+
param_num1_name: "num1",
|
|
372
|
+
param_num1_description: "The number that you want to convert to text.",
|
|
373
|
+
},
|
|
360
374
|
},
|
|
361
375
|
editor: {
|
|
362
376
|
error_messages: {
|
|
@@ -388,7 +402,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
388
402
|
NOT_ALLOWED_OPERATION: "Expression not allowed. Allowed operators between {{i18n.function.expression.types}}: {{i18n.function.expression.operators}}",
|
|
389
403
|
NOT_ALLOWED_OPERATION_DIFFERENT_TYPES: "Expression not allowed {{i18n.function.expression.value}}",
|
|
390
404
|
NOT_ALLOWED_OPERATION_MISSING_OPERATOR: "Expression not allowed. Missing operator",
|
|
391
|
-
INVALID_ALLOW_VALUE: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.argument.allow_value}}",
|
|
405
|
+
INVALID_ALLOW_VALUE: "Argument {{i18n.function.argument.position}} has to be equal to {{i18n.function.argument.allow_value}}",
|
|
392
406
|
MATCH_RANGE: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.expression.dynamic}}",
|
|
393
407
|
GREATER_THAN: "greater than {{i18n.function.argument.greater_than}}",
|
|
394
408
|
LESS_THAN: "less than {{i18n.function.argument.less_than}}",
|
|
@@ -398,6 +412,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
398
412
|
special_words: {
|
|
399
413
|
and: "and",
|
|
400
414
|
between: "between",
|
|
415
|
+
or: "or",
|
|
401
416
|
},
|
|
402
417
|
},
|
|
403
418
|
},
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.objectCopy = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Created a new reference of the given argument
|
|
6
|
-
* @param entity The variable to be copied
|
|
7
|
-
* @param cache
|
|
8
|
-
* @returns A new reference of the given argument
|
|
9
|
-
*/
|
|
10
|
-
function objectCopy(entity, cache = new WeakMap()) {
|
|
11
|
-
if (!isClonable(entity))
|
|
12
|
-
return entity;
|
|
13
|
-
if (cache.has(entity))
|
|
14
|
-
return cache.get(entity);
|
|
15
|
-
const c = new entity.constructor();
|
|
16
|
-
if (c.name === "Date")
|
|
17
|
-
return new Date(entity);
|
|
18
|
-
if (entity instanceof Map) {
|
|
19
|
-
entity.forEach((value, key) => c.set(objectCopy(key), objectCopy(value)));
|
|
20
|
-
}
|
|
21
|
-
if (entity instanceof Set) {
|
|
22
|
-
entity.forEach((value) => c.add(objectCopy(value)));
|
|
23
|
-
}
|
|
24
|
-
cache.set(entity, c);
|
|
25
|
-
return Object.assign(c, ...Object.keys(entity).map((prop) => ({
|
|
26
|
-
[prop]: objectCopy(entity[prop], cache),
|
|
27
|
-
})));
|
|
28
|
-
}
|
|
29
|
-
exports.objectCopy = objectCopy;
|
|
30
|
-
function isClonable(entity) {
|
|
31
|
-
const referenceTypes = ["Array", "Object", "Map", "Set", "Date"];
|
|
32
|
-
const entityName = entity && entity.constructor.name;
|
|
33
|
-
return referenceTypes.includes(entityName);
|
|
34
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created a new reference of the given argument
|
|
3
|
-
* @param entity The variable to be copied
|
|
4
|
-
* @param cache
|
|
5
|
-
* @returns A new reference of the given argument
|
|
6
|
-
*/
|
|
7
|
-
export function objectCopy(entity, cache = new WeakMap()) {
|
|
8
|
-
if (!isClonable(entity))
|
|
9
|
-
return entity;
|
|
10
|
-
if (cache.has(entity))
|
|
11
|
-
return cache.get(entity);
|
|
12
|
-
const c = new entity.constructor();
|
|
13
|
-
if (c.name === "Date")
|
|
14
|
-
return new Date(entity);
|
|
15
|
-
if (entity instanceof Map) {
|
|
16
|
-
entity.forEach((value, key) => c.set(objectCopy(key), objectCopy(value)));
|
|
17
|
-
}
|
|
18
|
-
if (entity instanceof Set) {
|
|
19
|
-
entity.forEach((value) => c.add(objectCopy(value)));
|
|
20
|
-
}
|
|
21
|
-
cache.set(entity, c);
|
|
22
|
-
return Object.assign(c, ...Object.keys(entity).map((prop) => ({
|
|
23
|
-
[prop]: objectCopy(entity[prop], cache),
|
|
24
|
-
})));
|
|
25
|
-
}
|
|
26
|
-
function isClonable(entity) {
|
|
27
|
-
const referenceTypes = ["Array", "Object", "Map", "Set", "Date"];
|
|
28
|
-
const entityName = entity && entity.constructor.name;
|
|
29
|
-
return referenceTypes.includes(entityName);
|
|
30
|
-
}
|